* fix(module: date-picker): year would out of range
* prevent out of range
* add two methods
* fix(module: datepicker): out of range error
* fix: decadePanel is still out of range
Co-authored-by: 钟迪龙 <musicvs@163.com>
* fix(module:DatePicker): input OnClick has new event handler
* fix(module:DateTime): remove misleading reliance on picker index
* fix(module: DatePicker & RangePicker): DefaultValue type change
DefaultValue type change to align with Value type
* fix(module:rangepicker): add default values helper with tests
* fix(module:datepicker): ChangePickerValue action declaration fix
Picker value is served based on input index (start/end)
* fix(module:DatePicker): optimization
ViewStartDate, MaxRow & MaxCol do not cause refresh if not changed
* fix(module:DatePicker): min date fix
ArgumentOutOfRangeException fix for dates before DateTime.MinValue
* fix(module:RangePicker): sorted values
Values get ordered on set
* fix(module:DatePicker): OneOf switch to TValue
* fix(module:DatePicker): code optimization and PickerValue fix
PickerValue fix gets first panel value and evaluates second panel value
* fix(module:DatePicker): default values evaluation
* fix(module:RangePicker): default picker value fix
* docs(module:DatePicker): switch to TValue for DefaultValue
* fix(module:RangePicker): other value picker fix
* fix(module:RangePicker): on value init include DefaultValue
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* Issue#915,and fix the issue that can not render correctly when change carousel DotPosition
* Resolve exception exception of server side when refresh the browser.
* Fix Fade style.
* refactor(module: modal): refactor the code of Modal, Confirm and Dialog
refactor details:
- Add DialogWrapper compontent to control the logic of dialog removal from DOM
- Add the appropriate folders for Dialog, Modal, and Confirm
- Remove methods with the same logic but different names in ConfirmService
- Split Title into Title (string) and Titletemplate (renderfragment)
- Add comments to code
- Rename ConfirmDialog to Confirm
- Specification of method name in ConfirmService
- Adjust the time of throttle function for draggabe modal
- Extract the common part of ModalOptions, ConfirmOptions and DialogOptions as DialogOptionsBase
* refactor: move DefaultCloseIcon etc. static members to DialogOptionsBase
* docs(module: modal): update docs
* fix: dialog incorrect waiting
* fix: pickup missing pr/7
* Expose SubMenu's Placement
The Placement of SubMenu can now be changed and it will be set to BottomLeft or RightTop as before if you don't set it.
* Try fix#922
I'm not sure if it will bring new problems, but it solved my problem. I hope someone can help me review it to make sure it doesn't break other things.
* Just optimize code style
* fix(module:slider): drag lag and reposition fix
remove unnecessary check from OnMouseMove
change position calculation - remove handle size
* fix(module:slider): text select issue while slider drag fix
* fix: remove the style
* clean value
* fix(module:slider): text select while slider drag fix
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* Implement optional key debouncing
* Fixes & refactor
* Force update value on blur
* Only change value on blur if debounce is disabled
* fix: default to enable debounce and change value on blur directly
Co-authored-by: Luke Parker <10430890+TheRealHona@users.noreply.github.com>
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* fix(module: alert): make description element visible if passed in ChildContent (#875)
* docs(module: alert): modified example - instead of Description parameter ChildContent is used (#875)
* fix:(module: slider): changed to lock to clicked edge
add new OnMouseDownEdge event handler to razor and base class to detect which edge was clicked
add new helper method IsMoveInEdgeBoundary and helper variables
add IsMoveInEdgeBoundary evaluation to OnMouseMove and OnMouseUp event handlers to detec if
value update needs to run
feature: added click-able edges to support forcing of left/right scenarios
* fix:(module:slider): Range property replaced with nullable backing field.
Evaluation of Range is happening in getter (only first time).
Removed evaluation of Range from OnInitialized().
* fix:(module:slider): Reset _leftValue & _rightValue when both change.
Fixes the prolem when both lef&right values are changing significantly compared to original values.
* fix:(module:slider): single edge slider was broken after previous commits
changed IsMoveInEdgeBoundary method to handle null event arguments
added OnMouseDownEdge event to single edged slider
* fix(module:slider): change Value evaluation to handle reversed order
value property is overridden to ensure the delivered tuple is in ascending order
fixes#867
* fix(module:slider): change evaluation of left and right values
fixes#865
* fix(module:slider) reverse parameter is refreshing styles on change
fixes #
* feat(module: table): add TitleTemplate for column title
* fix: action column templated title and add a demo
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* feat(module: form): make the form validator customizable
* docs: simplify form custom validators demo
* modify the demo
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* start trying to add a different first day of the week based on localization.
* add first day of week parameter and get weekday local from .net
* fix some issues
* extend demo
* remove no longed needed Locale parameter
* fix range for selection
* add german localization
* add entry for API section
* remove obsolet things from the react ant documentation
* add description to chart documentation
* translate general configuration to english.
* code cleanup
* use LocalProvider to get first day of week.
* use localeprovider instead of date picker localization
* remove no longer used parameter
* delete no longer used interface
* change from enum to string due to parsing issue.
* add missing formats and use culture info from localprovider
* correct locales
* us Sunday as a default
* remove no longer used culture info parameter
* adjust locales
* add parameter for Locale instead of directly accessing it.
* add inheritance to access locale
* typo
* readd culture info parameter
* fixes for locale jsons
* adjust demo and api
* small adjustments on docs, set monday in chinese as first day of the week.
* use locale in calendar as well.
* adjust docs
* use enum
* adjust demo
* adjust for different starting date.
* add defaults for DatePickerLocale
* add short week days to locale files
* use days from locale file
* code cleanup
use consts instead of magic numbers, add code comment and use dayOfWeek As param instead of the whole locale object. Remove no longed used method.
* not sure about the chinese translation so I remove them
* Revert "not sure about the chinese translation so I remove them"
This reverts commit 54017513c7b684494cf06184b4051a4dcfc43850.
* fix(module: modal): throw error when using ModalService (#807)
If ModalOptions.AfterClose is null, the exception will be thrown: delegate to an instance method cannot have null 'this'
* refactor: use automatic properties for ModalOptions
* Add OnRowClick to Table component
This adds a new Parameter to the Table component called OnRowClick that will trigger whenever a user clicks on any of the rows in the table.
* Updated Table row click to pass RowData
* refactor: clean code
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* Fix ribbon syle
Text color was same as background color.
* Ribbon documentation
Added two ribbon examples with color set (preset and custom)
* fix : badgeribbon html content
Html content must be the same as in the react version
* revert changes
We don't change less files. They are copied from react version.
* revert
* tests: fix badgeribbon unit tests
Modified expected html to match markup from react version.
* Update tests/badge/RibbonTests.cs
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix: the issue #762 switch loading icon has a little shift
* test: comment the table tests provisionally
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* fix: hide footer from range time picker so no duplicate footer
* fix: invoke onopenchange for datepicker when panel state changes
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* fix: rangepicker parameter error
* refactor: use EventCallback instead of Action
* refactor: use EventCallback instead of Action
* fix: rename the class name
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* fix(module: transfer): Fixed multiple issues
fix(module: transfer): Added localization support (LocaleProvider.CurrentLocale.Transfer). Property name is 'Locale'. #645
fix(module: transfer): Fixed no data image.
fix(module: transfer): Header alignment
fix(module: transfer): Fixed header count suffix
fix(module: transfer): Fixed a bug in the checkbox state if there is 'no item' or no 'not deactivated' item in the selection list.
fix(module: transfer): Duplicate item filter bug fixed (#711)
feat(module: transfer): Added clear button to the filter input
feat(module: transfer): Filter option is now InvariantCultureIgnoreCase (please change it if there is a problem with chinese language)
style(module: transfer): removed unused usings, fixed some style issues
docs(module: transfer): Added Local Property description - Please take a look at the chinese version (Google translate)
* Update index.zh-CN.md
Co-authored-by: Lars Diederich <diederich@evodata.de>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* ### tree enhancement
1. change `TreeNode`'s `ChildNodes` accessbility to public
2. add `FindFirstOrDefaultNode` funcation
3. add `ExpandToNode` function
* fix `FindFirstOrDefaultNode` not correct recursive problem
* Update components/tree/TreeNode.razor.cs
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* refactor: change the name of ModalRef to ConfirmRef
in order to create a Modal dialog in service mode
BREAKING CHANGE: all using of ModalRef must rename to ConfirmRef
* refactor: chang the name of ModalTemplate to ConfirmTemplate
in order to create a Modal dialog in service mode
BREAKING CHANGE: all using of ModalTemplate must rename to ConfirmTemplate
* feat(module: modal): support creating Modal dialog from ModalService
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* Replaced IdGeneratorHelper with DI service that can be replaced by user
* removed license comments and unnecessary usings
* check Id null before assigning autogenerated id
* fix: unit test
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* When Panel is set as active, call parent Collapse in case it is in a accordion mode, Allow shortcut Toggle method and always null-check referenced Collapse.
* Alllow de/activating child Panels by their keys.
* docs: update the demo and api doc
Co-authored-by: James Yeung <shunjiey@hotmail.com>
When Menu is in Sider, Initial state of being collapsed not reflected in menu.
Co-authored-by: Micah Osborne <micah@blockarray.com>
Co-authored-by: Diego Frata <d@frata.io>
* feat: add locale
* feat: add locale interfaces
* fix: add locale interfaces for components
* fix: use local classes instead of interfaces
* feat: implement the locale provider
* feat: make some components to support localization
* fix: default language
* fix: test
* chore: remove the useless reference
* feat(module: modal): allow drag Modal
* feat(module: demo): add draggable modal demo
* fix(module: modal): support reset position on show in draggable mode
* fix: width error when modal close immediately after opening
* docs: change demo order of Modal compontent
* fix: modal reset to antd style when close immediately after opening
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat(module: confirm): support blocking to get the result of confirm
* refactor: change modalservice Confirm return value,add ConfirmAsync FUNC
* feat: add ConfirmService
* fix: button text
Co-authored-by: ElderJames <shunjiey@hotmail.com>
* feat(module: range-picker): support form
* fix(module: range-picker): has no default value in from
* fix: picker's close behaviour and range arrow's style is wrong
* feat(module: datepicker): change placeholder on mouse over
* style(module: datepicker): adjust range arrow
Co-authored-by: James Yeung <shunjiey@hotmail.com>
* feat: add icon list for demo page of icon
* feat: add copy function for icon list
* feat: get existed icon
* feat: remove some blanks in list.razor
* feat: remove some blanks
* fix: default value is outline for icon list
* fix: click to copy for icon list
* feat: add async to load icon list
* feat: update iconlistService
* chore: update icons
* fix: icon load async
* feat: add application icons in IconlistServices
* fix: remove the exist icon from existed catogory if duplicated
* fix: add @key for list items
* fix: revert the change
Co-authored-by: ElderJames <shunjiey@hotmail.com>