* perf: avoid memory leak #1834
Avoid memory leak by remove the exclusive parameter and logic in the code block on AddEventListener method in DomEventService class.
The following are the components affected:
components/affix/Affix.razor.cs
components/anchor/Anchor.razor.cs
components/carousel/Carousel.razor.cs
components/core/Component/Overlay/Overlay.razor.cs
components/core/Component/Overlay/OverlayTrigger.razor.cs
components/core/JsInterop/DomEventService.cs
components/descriptions/Descriptions.razor.cs
components/dropdown/DropdownButton.cs
components/grid/Row.razor.cs
components/input/Input.cs
components/input/TextArea.razor.cs
components/layout/Sider.razor.cs
components/list/ListItem.razor.cs
components/select/Select.razor.cs
components/select/internal/SelectContent.razor.cs
components/slider/Slider.razor.cs
components/table/Table.razor.cs
components/tabs/Tabs.razor.cs
* fix override AddEventListener method in AntDesign.TestKit project
* add register/remove event listerner for exclusive use in DomEventService class
* move _dotNetObjects to DomEventListerner class/service, so that users not required to maintain it in each component.
* * move share/reuse dom event listerner methods to DomEventListerner class
* remove method 'AddEventListener' that no longer exists in DomEventService class in AntDesign.TestKit project
* * change the component referring to an IDomEventListerner interface instead of a concrete class,
so that the component can be tested via a mock TestDomEventListerner.
* introduce DisposeShared and Dispose method in DomEventListerner to ease user remove callback from DomEventListerner
* register IDomEventListerner into DI container instead of create manually
* fix FormatKey
* fix FormatKey
* fix tests
* fix test
* fix test
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix: second opening of focus in modal fails if DestroyOnClose is false
* fix: confirm cannot get focus element
* fix: set ConfirmAutoFocusButton is OK
* fix: module ImagePreview cannot close on second click
* fix: blur active element when comfirm focus element is disabled
* feat(module: select): add EnumSelect for select componet with enum
* refactor: extract EnumLabelValue to the core directory
* feat: add enum select demo
* refactor: extracts the GetLabelValueList method to EnumHelper
* refactor: refactor EnumSelect with simple data source
* feat: add enum DisplayName support
* fix: modify the reflection of the enum get attribute with field
* add test
Co-authored-by: wangjun <wangjun@chemical.ai>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix: unexpected behavior of Drawer(#1749)
1. The scroll bar of the body is enabled after closing one of the
multiple drawers
2. Bad parameter NoAnimation.
* chore: remove debug output
* chore: add comments for ComponentStatus
* fix: different behaviors in WASM and Server modes
* chore: remove debug output
* feat(module: table): allow access to filter operator and condition
* feat(module: table): allow access to filter operator and condition
* feat(module:table): allow remove the first filter
* Update Column.razor
* feat(module:table): modify closing button position
* feat(module:table): match new style
* feat(module:table): add header column divider
* fix(module:table): apply filter when close the filter panel by clicking the filter icon
* Update Column.razor
* style(module:table): trim Column.razor
* Update Column.razor
* Update Column.razor
* Update Column.razor
* Update Column.razor
* fix(module:overlaytrigger): fix overlay not close after overlay size changes
* unify muiltiple filter popup containers to one
* fix(module: drawer): OffsetX and offsetY do not work (#1435)
* docs: demo update
* fix: Placement is switched to the relative direction, the animation appears
* fix: the bug of closing animation missed
* fix: incorrect animation
* fix: different behaviors in WASM and Server side
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* merge
* feat(tag): add custom colors and enum presets
* Update package.json
fix: remove vscode rubbish
* feat: add global PresetColor, and new PresetColor param
* feat: add preset color to Badge
* feat: tag style calcuated on setter
* fix: user style is appended to stringbuilder
* empty commit
Co-authored-by: Patryk Grzelak <pgrzelak@mutate.app>
* fix(module:input): fix Input component for Guid type
* docs(module:input): add Guid generic sample code
* fix(module:input): add a comment to explain the change
* feat(module:table): add built-in filter for not composable enum types, support null value for List filter type
* feat(module:table): throw an exception for composable enum types when use built-in filter
* Revert "feat(module:table): throw an exception for composable enum types when use built-in filter"
This reverts commit 0e04ed91f58e23b93a441ac2aa00a794ae1a9b46.
* feat(module:table): add support for null value localization
* docs(module: table): update for enum build-in filter
* feat(module:table): add built-in filter for composable enum types
* docs(module: table): update for enum built-in filter
* feat(module: table): add enum built-in filter
* feat: add static constructor to EnumHelper
Co-authored-by: 令远 孔 <lingyuan.kong@outlook.com>
* fix(module:select): fix dropdown width for IE
* fix(module:select): add a comment to explain the change
* revert 'merge local branch'
* revert 'merge local branch'
* revert 'merge local branch'
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix(module:datepicker): validate manually entered date against format
* fix(module:datepicker): keep frozen the panel until valid date entered
* fix(module:datepicker): switch to current culture format
* fix(module:datepicker): build fix
* fix(module:datepicker): use InvariantCulture when calling ToString on date
* fix(module:datepicker): FormatAnalyzer handles also year, week, month & quarter picker
* fix(module:datepicker): FormatAnalyzer broken tests
* fix: FormatAnalyzer handles prefixes in format.
Suffix is handled for picker type = "year"
Tests include validation of not changing state
* fix: all modes go through format analyzing (inluding week&quarter)
* fix(module:datepickerbase): InternalFormat initalized properly for all modes
* fix(module:rangepicker): reset opposing date when in conflict with current
* fix(module:rangePicker): handle null in second part of range
* fix(module:datepicker): switch from BindConverter to partials
* tests(module:datepicker): FormatAnalyzer new tests to cover switch from BindConverter
* tests(module:datepicker): missed change in tests
* fix: focus, key events, reset value to original if not confirmed
* fix: bug fix on range & clean-up
* Update DatePicker.razor
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat: use ResizeObserver Api instead of window.resize
* fix(module:select): fall back to window.resize in IE11.
* fix(module:domEventService): switch from IsIE11 to IsResizeObserverSupported
* fix: Console.WriteLine removed
Co-authored-by: James Yeung <shunjiey@hotmail.com>