* fix(module: tree): skip `ToList()` when type is `IList`
This allow DataSource to be modify by TreeNode draggable methods.
* test(module: tree): add test for TreeNode modify DataSource
* Fix: Add `type="button"` to Drawer close button.
Without this close button triggers form submit if drawer is defined within form.
* Fix tests
---------
Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: Dmitri Afanasjev <dafanasjev@microsoft.com>
* feat(module: mentions): Add ability to customize the rendering of the textarea. This allows using the TextArea component if you want its extended functionality. Add tests. Update demos.
* fix test
* fix test
---------
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat(module: datepicker): use custom suffix icon in RangePicker component
* fix whitespace in test file
* Update suffix-icon.md
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix(module: datepicker): wrong day order and fallback to use globalization libaray when there is no day locale
* fix date locale
* refactor the scroll method
* fix ShortestDayNames
* update the doc
* fix:(module: datepicker): tab key does not confirm the value
* fix:(module: datepicker): bad value when click on panel after key input
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat(module: input): add ChangeOnInput, modify the default binding behavior to bind in the onchange event
* fix can't change immediately when debounce milliseconds is 0
* add tests
* Drawer Tests
* Remove code that doesn't appear to be needed. If you set Placement to be null or empty the drawer closes with or without this code in place.
* Documentation update
* Doc update
* Docs update...including chinese
* Add tests for Badge component. Format component file to editorconfig settings. Small bug fix for invalid class showing when custom color is set.
* Fix bug where Title parameter was not being used. Update tests. Update documentation
* Add tests for `StyleHelperTests`&`EnumHelperTests`
* Add tests for `ClassMapper`
* Add tests for `MomentHelper`
* Code style fixes for `JsonElementHelper`
* Code style fixes for `THelper`
* Roll back some break changes
* Update tag tests and mark a couple parameters as obsolete. Documentation updates.
* Update documentation demos for Tags to remove usage of PresetColor
* refactor:(module:datepicker): DatePickerBase should be abstract
* fix:(module:datepicker): date not highlighted in range picker after ok
* fix:(module:datepicker): OnChange event behavior is incorrect
* fix:(module:datepicker): wrong input panels when start/end same period
* fix:(module:datepicker): ending week is not highlighted correctly
* fix:(module:datepicker): cannot switch year/month in RangePicker header
* Add OnClick parameter to BreadcrumbItem. Add tests for Breadcrumb and BreadcrumbItem. Remove unused and unreachable code until needed at a later date. Documented parameters not in use, but left to avoid breaking the existing public API.
* Fix whitespace
* Update signature of OnClick for BreadcrumbItem to pass a Tuple<MouseEventArgs, BreadcrumbItem> giving access to the click arguments and the item clicked.
* Add ExludeFromCodeCoverage to POCO
* Update HTML markup for Breadcrumbs to match React Ant.Design (use nav, ol and li elements instead of div and spans only)
* fix naming
* fix error
* fix test
Co-authored-by: James Yeung <shunjiey@hotmail.com>
Small refactors:
- Fix typo in Avatar
- Remove code in Avatar that wasn't affecting visuals as expected
- Make Avatar shape a constant. Update Skeleton component and demos to use it
- Update Avatar component to calculate size after parameters set method due to it changing one of the properties it relies on.
* fix: (module: rangepicker): same quarter when end set first is disabled
* feat:(module:rangepicker): disable time input according to range values
* fix:(module:rangepicker): input allows to set later start or earlier end
* InputNumber value display correction with test when step value notation is scientific
* fix NumberFormatInfo of ToString()
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix(module: datepicker): value not updated when changed programmatically
* fix(module: rangepicker): value not updated when set programmatically
* fix:(module: datepicker): placeholder attribute not applied to input
* fix:(module: rangepicker): end date placeholder is not cleared
* fix(module: datepicker): Ok button does not confirm selected time value
* fix(module: datepicker): value stays in the input after clear clicked
* fix(module: datepicker): suffix icon click does not open input panel
* fix(module: datepicker): manual input reverted on blur
* fix(module: datepicker): wrong behavior when Open is set to true
* feat/ApplyPredefinedQueryModel: add opportunity to serialize/deserialize QueryModel and apply to Table with ITable.ReloadData(QueryModel queryModel) method; fix current selected value in 'PageSize / page' selection (value was not updated in case using ReloadData(PageIndex, PageSize) method)
* feat/applyPredefinedQueryModel: implement System.Text.Json instead Newtonsoft.Json for serializing/deserializing QueryModel
* feat/applyPredefinedQueryModel: add minor change
* feat/applyPredefinedQueryModel: add method for converting from JsonElement to object type
* feat/applyPredefinedQueryModel: add demo file for save and load table configuration
* feature/applyPredefinedQueryModel: add minor change
* feat/applyPredefinedQueryModel: prevent applying before not saved configuration
* fix sorter restore
* reest data before reload data
* fix test
Co-authored-by: Ana Nikolasevic <23nikolasevic@gmail.com>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* feat(module:checkbox) Adds For/Id attrs
Moves the Id attr from the label to the input and
adds the For attr to the label for ADA.
* feat(module:checkbox) Remove blank line
Remove blank line from Button
* Updates CheckboxGroup unit tests.
* Updates case of for attr.
* feat(module:button) Adds AriaLabel Parameter
Adds in a Parameter for AriaLabel that's used as the value for the aria-label attribute on the button.
* feat(module:button) Adds AriaLabel Parameter
Updates zh-CN documentation and removes blank line.
* Fix FieldIdentifier equality check in Rules Mode OnFieldChanged
* Added test for RulesMode validation with duplicate FieldName
* Aligned whitespaces with repo
Co-authored-by: György Hingyi <ghingyi@gmail.com>
* fix(module:Radio) Default name value
Default the name value so the tab order is preserved.
* use property name as the fallback
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix the layout of upload for drag'n'drop scenarios to center the icon and text across the whole element
* Rework test to reflect changes in upload component.
Closes#1969
* fix(module:overlay): submenu causing crash
* fix(module:overlay): submenu causing crash
* fix(module:menu): show missing chevron
mark top menu as selected on init
do not render non-active overlay submenus
* tests: common js mock extracted
nullable enabled for test project
* tests: menu
* fix(module:menu): incorrect behavior in layout
* fix(module:select): fix data source of type IEnumerable<object>
* Update Select.razor.cs
* Update Select.OnDataSourceChangeTests.razor
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* 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(module:select): value no longer reset on datasource set
* fix(module:select): dataSource change detection
* fix: improve datasource detection
add item & set value in SelectOption
* tests: scenario from issue #1207
* fix: DataSourceEqualityComparer default
* Update Tag compliance with Blazor conventions
Add the missing 'd' to CheckedChanged callback in order to properly support two ways binding on the Checked property
* Fix references to renamed method in Tag component
* Update tests for Tag
Co-authored-by: Stefano Drussi <stefano.driussi@hotmail.it>
Co-authored-by: James Yeung <shunjiey@hotmail.com>