Commit Graph

856 Commits

Author SHA1 Message Date
James Yeung
451dd5ce86
chore: update the building staff to .NET 9 target (#4335)
* chore: update the building staff to .NET 9 target

* Update AntDesign.TestKit.csproj
2024-11-18 06:32:26 -08:00
Pat Hartl
bdd5aad78d
docs: Various updates to English documentation for Table (#4331) 2024-11-17 07:45:14 -08:00
James Yeung
21a90da9ff
Update to .NET 9 GA (#4330)
* Update to .NET 9 GA

* update doc

* update deps
2024-11-14 22:28:42 +08:00
James Yeung
95d424efa0
fix(module: tabs): make it possible to work without setting keys of TabPane (#4297) 2024-10-23 00:29:57 +08:00
James Yeung
a8a05e0e5b
Revert "Revert "refacotr(module: space): Add space string constants (#4263)" …" (#4292)
This reverts commit 5bc763172b.
2024-10-22 14:49:38 +08:00
James Yeung
aeac4a0cff
fix(module: overlay): dropdown should follow the scrolling with trigger (#4285)
* fix(module: overlay): dropdown should follow the scrolling with trigger

* fix comment

* fix test

* fix scrolling in modal
2024-10-21 13:33:41 +08:00
James Yeung
e5a369e0d7
fix(module: auto-complete): prevent opening empty panel (#4284) 2024-10-20 01:21:36 +08:00
James Yeung
809490ea1c
fix(module: select): clear and discovery the search value (#4281) 2024-10-19 23:20:47 +08:00
James Yeung
c3d8c5ad1e
feat(module: upload): set up AntiforgeryToken automatically (#4271) 2024-10-18 12:37:52 +08:00
ysj265
926cbb7f19
fix(module: tabs): fix the issue where TabPanes cannot render (#4269)
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-10-18 12:36:08 +08:00
James Yeung
5bc763172b
Revert "refacotr(module: space): Add space string constants (#4263)" (#4277)
This reverts commit afeeb57631.
2024-10-18 00:43:49 +08:00
Pat Hartl
2ea81fc38c
refactor(module: steps): Add steps constants (#4267)
* Add constants for various steps attributes

* Use new constants in Step component
2024-10-15 08:46:09 +08:00
James Yeung
9dbf90baf7
fix(module: reuse-tabs): page filter after getting the config from pages (#4266)
* add ignroe demo

* fix filter page
2024-10-13 20:09:40 +08:00
Weihan Li
7d1a0d3c18
chore: update .NET 9 target usage (#4262)
* refactor: update target framework net9 to net9.0

* ci: simplify dotnet 9 sdk setup
2024-10-13 00:29:29 +08:00
Pat Hartl
afeeb57631
refacotr(module: space): Add space string constants (#4263)
* Add string constants for space size

* Add align constants

* Update docs
2024-10-12 15:51:15 +08:00
James Yeung
d2f5a1a8c1
chore: Support .NET 9 (#4196)
* Update .NET 9.0 RC 1

* fix actions

* fix actions

* fix build

* fix actions

* discover aot for preview

* update the packages

* revert wasm site to net8

* remove .net sdk for site

* fix

* fix build

* update to rc2

* fix tfm

* wasm-tools

* remoev BlazorWasmPreRendering.Build

* update BlazorWasmPreRendering.Build

* update actions
2024-10-09 18:56:57 +08:00
agolub-s
803177f41a
fix(module: tabs): resize tabs when adding new tabPane (#4239) 2024-09-26 22:04:01 +08:00
ysj265
772cfda2ee
fix(module: table): fix AutoHeight algorithm (#4238)
* fix AutoHeight of table

* fix(module:table) Optimize tableHelper.ts code

* Update components/table/Table.razor.cs

* Update components/table/Table.razor.cs

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-09-26 13:58:30 +08:00
pankey888
5a59f87d25
feat(module: tree): Add Selectable & SelectableExpression to mark whether TreeNode can be selected or not. (#4229) 2024-09-24 12:36:17 +08:00
James Yeung
e73f5d223d
docs: fix file name for prerendering html (#4223)
* docs: fix file name for prerendering html

* replace the duplicated title element

* fix path

* fix subtitle
2024-09-22 18:02:59 +08:00
rhodon-jargon
136828fdc3
feat(module: input): Allow overriding when clear button is shown (#4221)
* feat(module: input): Allow overriding when clear button is shown

* fix(module: input): Fix doc comments for ShowClear

---------

Co-authored-by: Rhodon <rhodonvantilburg@gmail.com>
2024-09-21 01:18:46 +08:00
James Yeung
5830d9a601
docs: fix component descption generate (#4219)
* docs: fix component descption generate

* fix

* fix the url rewrite of azrure static webapp

* fix build

* fix js import

* remove the doc dir from gitignore

* test doc files

* fix path

* Revert "fix js import"

This reverts commit f87f532c4476b184a797b4f6b4b0043aa4bd0132.
2024-09-21 01:11:44 +08:00
James Yeung
8b6ad399c6
fix(module: popconfirm): hidding button by setting ButtonProps=null (#3895)
* docs(module: popconfirm): add button props demo

* fix build

* support hiding buttons
2024-09-20 13:06:26 +08:00
James Yeung
e9b7beb2bc
Changelog 1.0.0 RC 1 (#4213)
* changelog 1.0.0 RC 1

* update

* update doc
2024-09-19 07:38:35 +08:00
James Yeung
23c15d2963
feat(module: reusetabs): Allow reusetabs to work without cascaded route data (#4205)
* feat(module: reusetabs): allows routedata to be passed without cascading

* tab activative is curretly

* fix keepalive

* render body after navigation

* rename body

* fix closing and updating

* update docs

* clean

* update docs
2024-09-19 00:45:35 +08:00
jeffersyuan1976
6fa0aeda73
feat(module: form): add tooltip (#4211)
* feat(FormItemTooltip): Add tooltips parameter to display formitem tooltips

* feat(FormItemTooltip) align to center

* Demo & Translation of Parameter added.

* fix class name and demo

---------

Co-authored-by: Jeffers <shaobo.yuan@waes.cn>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-09-19 00:18:25 +08:00
jsakamoto
6c624ec06c
docs: Enable static pre-rendering on the Docs WebAssembly app (#4207)
* Add the "BlazorWasmPreRendering.Build" package reference

* Cut out the service configuration to static method

- it is required for static pre-rendering

* Specify locale for pre-rendering to 'en-US' explicitly

- otherwise, an exception, "JsonException: '<' is an invalid start of a value" will happen.
- because there aren't "*.en.json" files, there are "*.en-US.json" files.

* Avoid doing "NavigateTo" during pre-rendering

- otherwise, the "NavigationException" will happen.

* Move caches of the DemoService to an individual singleton service.

- otherwise, a disposed HttpClient object will cause the "ObjectDisposedException" on a Blazor Server
- because a static field of a scoped service captures the HttpClient object that will disposed of after that scoped service has expired.

* Make it to be pre-rendered the zh-CN locale contents too

* Fix the invalid URL in the FAQ document

- both en-US and zh-CN.
- this caused 404 Not Found and a crash during the pre-rendering process.

* Change the pre-rendering output style to '{path}/{to}.html'.

- from the '{path}/{to}/index.html' style.

* Make the description part of the component pages be included in the static pre-rendering.

- To achieve that, load a DemoComponent object in the `OnIntializedAsync` life cycle method.
- and make sure to avoid invoking `NavigationTo` in the `OnIntializedAsync` life cycle method.
2024-09-18 00:54:16 +08:00
pankey888
dc3ed2ad27
feat(module: reusetabs): Add singleton page setting for reusing page instance. (#4151)
* feat(module: reusetabs): Add `NewPageForParams` to ReuseTabsPageAttribute.

* Update NewPageForParams's default value.

* rename the property

* add a demo

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-09-14 19:54:38 +08:00
算神
57ad7125fe
feat(module: form): GenerateFormItem support recognize ReadOnlyAttribute to set component's disabled (#4191)
* GenerateFormItem自动生成表单时,识别TModel属性中的ReadOnlyAttribute标识,并使其生效

* fix indent

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-09-14 16:09:27 +08:00
James Yeung
65ae78f904
fix(module: tabs): draggable and contextmenu incottectly (#4199)
* fix(module: tabs): draggable and context menu

* update position after exchange

* only update scroll list position when active tab is not the last one

* refactor navigate

* update doc

* fix test
2024-09-13 22:39:40 +08:00
James Yeung
f0690f7d56
feat(module: button): add AutoLoading parameter (#4193) 2024-09-12 07:15:18 +08:00
James Yeung
3377ead53e
fix(module: treeselect): select content reference throwing exception (#4188) 2024-09-11 07:31:16 +08:00
James Yeung
d0f46490db
docs: fix doc demo (#4184) 2024-09-10 12:30:05 +08:00
James Yeung
beb9491bb1
docs: add monaco code view for demos (#3499)
* docs: add monaco code view

* fix code view render

* clean up

* fix css

* clean up

* try load wasm

* try copy dll files to output

* fix directory

* fix directory

* enable aot in preview build

* fix copy dll

* fix action

* fix

* show code before loaded
2024-09-10 01:15:18 +08:00
James Yeung
ba1e5e407a
docs: fix demo name (#4174)
* docs: fix demo name

* update the radio translate

* add doc files back

* add the markdown description back
2024-09-09 00:50:28 +08:00
ysj265
eaf4130c39
feat(module: table): Add AutoHeight property to table (#4168)
* Fix the issue where the Tabs under the Card cannot remember the input status

* optimize performance

* Simplified writing style

* Revert "Simplified writing style"

This reverts commit 44ce256b0cbf3971574ae233d3215e83a196487b.

* Simplified writing style

* Fix test case(Card.Render.Tests.razor)

* Add AutoHeight property to table

* docs:add api comments

* add demo

* fix algorithm for AutoHeight

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-09-08 21:55:03 +08:00
James Yeung
5598edf584
fix(module: drawer): closing effects (#4166)
* fix(module: drawer): closing effects

* fix build

* fix events

* fix test

* fix overflow hidden

* fix test
2024-09-07 18:29:28 +08:00
ysj265
94dfdfe447
fix(module: card): where the Tabs under the Card cannot remember the input status (#4164)
* Fix the issue where the Tabs under the Card cannot remember the input status

* optimize performance

* Simplified writing style

* Revert "Simplified writing style"

This reverts commit 44ce256b0cbf3971574ae233d3215e83a196487b.

* Simplified writing style

* Fix test case(Card.Render.Tests.razor)
2024-09-05 12:46:55 +08:00
James Yeung
4459d3ea8c
refactor(module: tree): make some api public(#4162) 2024-09-04 06:36:12 +08:00
James Yeung
3ad90ba49e
docs: fix cascader subtitle (#4161)
* docs: fix subtitle

* fix anchor

* fix datepicker
2024-09-03 23:24:48 +08:00
James Yeung
9c8d6288eb
docs: fix demo discovery (#4159)
* docs: fix demo discovery

* fix
2024-09-03 15:12:58 +08:00
James Yeung
238b73310f
docs: fix menu generator (#4157)
* docs: fix menu generator

* fix subtitle

* ignore submenu in en
2024-09-03 13:29:19 +08:00
James Yeung
fbb175f629
docs: add more api commonets (#4149)
* fix api comments

* update

* update

* update table doc

* refactor

* recognize componetns by doc files

* refactor datepicker

* update comments

* fix tests

* update

* update

* fix JSInvokable

* update

* update

* update xml
2024-09-03 00:23:44 +08:00
James Yeung
dc1188dfc1
fix(module: tabs): dnd and reorder (#4147)
* fix(module: tabs): dnd and reorder

* update ink position after dnd

* fix position

* fix card tabs

* fix ink render

* fix test

* fix tests

* clean

* fix tests
2024-09-01 14:33:24 +08:00
James Yeung
946b89405b
feat(module: table): add SelectAll event callback (#4142)
* feat(module: table): add select all callback

* update demo
2024-08-29 09:48:57 +08:00
Weihan Li
9fa391449a
chore: Enable some code analyze rules (#4126)
* style: update editorconfig

- update editorconfig encoding to utf8
- add CA1852 and IDE0005 rules

* style: apply dotnet-format

* style: add IDE0040 rule

* style: apply dotnet-format

* refactor: sealed SimpleEmbeddedJsonLocalizerFactory

* style: add style rule for modifiers

* fix: resolve dotnet-format unmerged issue

* fix: add back translation

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-08-28 00:54:33 +08:00
Key Roche
4ad8e7ceab
docs: enhance documentation automation (#3013)
* Documentation automation. Build will generate documentation based on XML comments and attributes in the library. Translation will be done where necessary to generate the Chineese site.

Did some small code clean up on the way.
Removed or removed from public APIs:

AnchorLink.LinkDom
Button.RemoveAnimationAfter
Button.Icons - never used
Calendar.PrefixCls
All date pickers - method OnOkClick
Descriptions.Items
ListItem.PrefixName
AntList.PrefixName
ListItemMeta.PrefixName
Menu.Submenus
Menu.MenuItems
Transfer.ChildContent
Table.ColumnContext
Space.SetClass
Steps.Handler
Radio.OnClick

* Add Azure translation service. Requires adding your own key to a private appsettings JSON file to translate locally with it.

* Make translation services return null when unable to translate, have cache not cache it and return text asked to translate.

* Update documentation markdown file for new translation service

* Update DOCUMENTATION.md

* fix datepickerbase

* fix tree-select

* add docs for Flex and Watermark

* add zh

* add UserSecrets

* fix keywords

* fix button doc

* fix page

* fix internals visible to

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-08-25 14:37:41 +08:00
kx500
8692221e7b
refactor(module: drawer): Change the Height and Width of the Drawer to the string type to support the percentage argument (#4120)
* #

* Drawer Width和Height 修改为string类型
2024-08-23 22:57:22 +08:00
James Yeung
6d871fe30f
docs: add a demo for static form validation (#4105)
* docs: add a demo for static form validation

* fix build
2024-08-20 22:18:37 +08:00
阿蒙
bf9cd7cd9e
docs: Update GroupedColumn demo (#3524)
Fix error example code for incorrect examples of grouping bar charts

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2024-08-20 22:16:21 +08:00