Commit Graph

141 Commits

Author SHA1 Message Date
Alex Kryvdyk
ed0e864946
fix(module: datepicker): ArgumentOutOfRangeException in TimePicker (#3501)
* fix:(module:datepicker): ArgumentOutOfRangeException in TimePicker

* fix the issue

* add: TimePicker unit tests

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-11-12 16:30:07 +08:00
Alex Kryvdyk
46eba4291b
fix(module: datepicker): RangePicker focus not cleared (#3488)
* fix(module:datepicker): RangePicker focus not cleared

* fix:(module:datepicker): Enter/Tab keys clear the value

* fix:(module:datepicker): remove invalid unit test
2023-11-07 13:14:23 +08:00
James Yeung
27b9084a52 merge feature to master 2023-10-22 19:35:09 +08:00
James Yeung
f469aea9a7
fix(module: datepicker): the reference value of initValue (#3459)
* fix initValue reference

* fix name
2023-10-20 00:21:04 +08:00
Alex Kryvdyk
6b0a8f45de
feat(module: datepicker): Add DateTimeOffset, DateOnly, TimeOnly support (#3443)
* fix:(module:datepicker): OnChange event in Docs project

add(module:datepicker): generic OnPanelChange event

add(module:datepicker): generic OnChange event

fix(module:datepicker): DateTimeKind is not preserved

add(module:datepicker): DateTimeOffset unit tests

add(module:datepicker): add DateTimeOffset to range picker unit tests

add(module:datepicker): refactor unit tests

fix(module:datepicker): DateTime.Kind is not preserved

feat(module: datepicker). Add DateTimeOffset, DateOnly, TimeOnly support

* fix(module:datepicker): unit test fails

* fix: moment helper test fails in VS Test Explorer in some cases

See https://xunit.net/faq/theory-data-stability-in-vs

* update the docs and demo

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-10-19 00:44:03 +08:00
LeaFrock
faa26e202d fix(module: rangepicker): override ResetValue so that Reset works in a form 2023-10-18 23:08:35 +08:00
agolub-s
8e60219b35
feat(module: datepicker): add mask to DatePickerBase for input value constraint (#3120)
* Add support multiple date formats for DatePickerBase

* Fix test

* Extend docs

* Fix merge

* Revert "Add support multiple date formats for DatePickerBase"

This reverts commit 9021dcdd

* Refactoring. Add mask property for DatePickerBase. For input value constraint.

* Some fixes

* Refactoring

* Add value converter for MaskInput

* Some fix

* fix Chinese

* Refactoring

* Fix tests

* Fix tests

* clean up

* Fix tests

* Pass mask to RangePicker

* Fix AvatarTests

* Fix merge

* Stage

* Stabilized tests

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-10-05 17:24:16 +08:00
agolub-s
b329aa68d0
feat(module: datepicker): Add 'ChangeOnClose' to apply the entered value when the panel is closed (#3087)
* Add EnterOnBlur for DatePickerBase. Add clear value on input empty value when AllowClear.

* Fix click on suffix icon in Calendar.

* Add docs

* Add support multiple date formats for DatePickerBase

* Fix docs

* Fix docs

* Fix docs

* Fix

* Fix

* Fix test

* Extend docs

* Revert "Add support multiple date formats for DatePickerBase"

This reverts commit 179667d0

* rename ChangeOnBlur

* rename ChangeOnClose

* Fix tests

* Fix review

* Fix docs

* Fix build

* Fix tests

* fix docs

* fix docs

* revert doc

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: Aleksandr Golub <deanornys@gmail.com>
2023-08-15 23:44:33 +08:00
James Yeung
4972324cfd feat(module: datepicker): support specific popup placement (#3345)
* feat(module: datepicker): support specific popup placement

* remove tsx
2023-08-01 00:35:39 +08:00
Alex Kryvdyk
53527d5d13
fix(module: datepicker): RangePicker.OnOpenChange called twice on close (#3307) 2023-06-18 01:13:26 +08:00
Sebastian Wachsmuth
5285bf97b2
fix(module: DatePicker): Change Calculation of Calendarweek for WeekPicker (#3214)
* Escape format string
Some languages have reserved letters in their Week.
for example the german Week is Woche and the 'h'
will be replaced by the hour resulting int 'Woc12e'
or similar

* Use Current Culture for Week of year operations

---------

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2023-04-08 15:57:13 +08:00
Alex Kryvdyk
478420714c
fix(module: datepicker): DisabledDate does not affect keyboard input (#3134) 2023-02-26 21:57:01 +08:00
James Yeung
d3f9596201
Revert "feat(module: overlay): support avoid show/hide in OnVisibleChange (#3094)" (#3112)
This reverts commit 0289f1433b.
2023-02-18 11:12:35 +08:00
James Yeung
0289f1433b
feat(module: overlay): support avoid show/hide in OnVisibleChange (#3094) 2023-02-13 23:08:16 +08:00
James Yeung
c56873aac2 merge feature to master 2023-01-20 15:57:43 +08:00
James Yeung
06d5169bc9
fix(module: menu): submenu montion & style (#3024)
* fix(module: menu): submenu open montion & style

* fix test
2023-01-18 18:44:57 +08:00
James Yeung
95c4f13aa4
fix(module: form): validation status styles (#3005)
* fix(module: form): validation status styles

* fix validation change for input

* fix count

* add test
2023-01-13 23:27:35 +08:00
Key Roche - WSS
a2fbb936e0
fix(module: RangePicker): Always run default disabled logic, even with custom function provided (#2947) 2023-01-04 16:58:00 +08:00
wss-javeney
eb1ac6b06e
feat(module: datepicker): support for custom suffix icon (#2935)
* 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>
2022-12-16 00:49:34 +08:00
Alex Kryvdyk
1df5727ce4
fix(module: datepicker): Exception on input with time when Value is null (#2920) 2022-12-01 18:08:28 +08:00
James Yeung
ba60651b16
chore: sync ant-design v4.24.2 (#2877) 2022-11-24 23:11:02 +08:00
Alex Kryvdyk
247cf1b6cd
feat(module: datepicker): Add selected week range visualization (#2892) 2022-11-23 19:40:19 +08:00
Alex Kryvdyk
b83175b3f0
fix(module: datepicker): incorrect week comparison causes disabled input (#2889) 2022-11-20 22:56:52 +08:00
James Yeung
ff7031ffec merge master into feature 2022-11-14 17:43:54 +08:00
James Yeung
609f14b2dc
fix(module: datepicker): wrong day order and fallback to use globalization libaray when there is no day locale (#2855)
* 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
2022-11-04 13:46:24 +08:00
Alex Kryvdyk
8e7405eb4b
fix(module: datepicker): smoothScrollTo causes an infinite loop (#2854) 2022-11-03 22:12:41 +08:00
Alex Kryvdyk
29143db2a8
fix(module: datepicker): tab key does not confirm the value (#2847)
* 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>
2022-11-01 04:14:27 +00:00
Alex Kryvdyk
594c5f3061
feat(module: datepicker): add OnOk event, rename OnClearClick to OnClear (#2840)
* feat:(module: datepicker): add OnOk event

* refactor: (module: datepicker): rename OnClearClick to OnClear

* chore: (module: datepicker): update docs

* refactor:(module: datepicker): keep OnClearClick [Obsolete]

* fix docs

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-10-31 13:52:23 +08:00
Alex Kryvdyk
3b45058a34
fix(module: datepicker): OnChange event behavior is incorrect (#2741)
* 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
2022-09-27 14:41:02 +08:00
Alex Kryvdyk
11dc934d45
fix(module: datepicker): correct culture not applied when manual input (#2715)
* fix:(module:datepicker): correct culture not applied when manual input

* fix:(module:datepicker): adjust FormatAnalyzer property access modifier
2022-09-16 11:40:56 +08:00
Alex Kryvdyk
504de0d7bf
fix(module: datepicker): RangePicker has incorrect start/end panels (#2707)
* fix:(module:datepicker): RangePicker has incorrect start/end panels

* fix:(module:datepicker): RangePicker not reset when second value not set

* fix:(module:datepicker): RangePicker end panel not shown in RTL mode

* fix:(module:datepicker): range preset canceled when time input enabled

* fix:(module:datepicker): RangePicker cannot clear value when focused

* fix:(module:datepicker): RangePicker keeps focus when input canceled
2022-09-14 22:16:30 +08:00
James Yeung
093e6064be
fix(module: datepicker): an exception is caused when passes the value as null (#2688) 2022-09-08 08:00:17 +08:00
Alex Kryvdyk
3e9bb25a37
fix(module: datepicker): timepicker value resets to default (#2660) 2022-09-02 23:25:33 +08:00
James Yeung
ec4b8ddd58
fix(module: form): fix error status for entry components (#2647) 2022-08-28 13:30:56 +08:00
Alex Kryvdyk
1983611f60
fix(module: datepicker): culture is not applied correctly to the year (#2589) 2022-08-04 10:05:43 +08:00
Alex Kryvdyk
894439adec
fix:(module: DatePicker): wrong day headers when FirstDayOfWeek!=Sunday (#2571)
* fix:(module:datepicker): wrong day headers when FirstDayOfWeek!=Sunday

* add:(module:datepicker): localization note

* fix the order of shortWeekDays in zh-CN

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-07-26 13:34:35 +08:00
Alex Kryvdyk
09337d8119
fix:(module: DatePicker): Fixed RangePicker boundary value limit when selecting second value (#2570)
* 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
2022-07-25 13:13:51 +08:00
WhyILoveSpringRoll
5d22ffb190
feat(module: DatePicker): support perset time ranges (#2487)
* fix-rangepick-ranges

add-rangepicker-doc

add-rangePicker-defaultRange

* fix footer

* fix indent

Co-authored-by: James Yeung <shunjiey@hotmail.com>
2022-07-21 14:36:24 +08:00
Alex Kryvdyk
c00dd6f23d
fix(module: datepicker): value not updated when changed programmatically (#2551)
* 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
2022-07-10 10:46:51 +08:00
Alex Kryvdyk
26ff941cc6
fix(module: DatePicker): Ok button does not confirm selected time value (#2531)
* 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
2022-06-29 20:56:27 +08:00
Alex Kryvdyk
8585bba9db
feat(module: datepicker): Scroll to selected time in DatePicker/TimePicker (#2512)
* feat(module: datetimepicker): scroll to selected time

* refactor(module: datepicker): move scroll to code behind

* fix(module: datetimepicker): no scroll to selected time on manual input

* fix(module: datetimepicker): 12-hour time is not parsed on manual input

* fix(module: datetimepicker): entered time ignored on manual input

* feat(module: datepicker): add animation to time picker

* Revert "fix(module: datetimepicker): entered time ignored on manual input"

This reverts commit 9211cf8e628173e59fbd3b110bb5fe84a2c77efa.

* refactor(module: datepicker): cleanup redundant code

* refactor(module: datepicker): reduce size of animation function

* fix(module: datepicker):duplicate calls to StateHasChanged on date hover
2022-06-15 23:50:53 +08:00
Alex Kryvdyk
acb6c892b5
feat(module: timepicker): add 12-hour time support (#2501)
* feat(module: datepicker): add 12-hour time support

* fix(module: datepicker): revert 24-hour time format

* fix(module: datepicker): AM/PM not localized in the date input component

* fix(module: datepicker): AM/PM in the selection panel are not localized

* Update components/date-picker/internal/DatePickerDatetimePanel.razor

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: datepicker). AM/PM switches toggling incorrectly

* fix(module: datepicker): 24-hour format in DatePicker when Use12Hours

* fix(module: datepicker): time format in docs

* refactor(module: datepicker): code cleanup

* feat(module: datepicker): add 12-hour format to en-US locale
2022-06-10 19:43:33 +08:00
James Yeung
1659aef02d
chore: sync ant-design v4.20.7 (#2497)
* chore: sync ant-design v4.20.7

* fix style build

* clean the style

* fix dropdown overlay

* remove cdk styles

* fix dropdown overwrite styles

* fix doc styles
2022-06-04 00:44:34 +08:00
WhyILoveSpringRoll
240f04f79f
fix(module: datepicker): unable to click date button to select the week selection (#2463)
日期选择时Click触发范围
周选择时无法点击日期选择的问题
2022-05-28 13:07:54 +08:00
karim fereidoni
ba5fc4737d fix(module: datepicker): missing SuffixIcon (#2226)
Fix up SuffixIcon show issue
2022-01-07 08:58:50 +08:00
James Yeung
ef020b532b Revert "feat(module: form): Allow controls to be used in default EditForm (#2138)" (#2194)
This reverts commit aa200f925c.
2021-12-23 01:09:26 +08:00
Daniel Matthews
c7ee5c90c6 feat(module: form): Allow controls to be used in default EditForm (#2138)
* refactoring EditContext to be injected properly by both AndDesign.Form and EditForm.

* Allowing FormItem to be used in default EditF
2021-12-10 15:36:00 +08:00
Andrzej Bakun
58c5f2b6cc tests: added tests for Button, Checkbox & DateHelper to increase the coverage (#2060)
* tests: added

* missed scenarios for Button and ButtonGroup
2021-10-28 11:21:10 +08:00
Hao Sun
34899650df fix(module: locale): fix custom locale resource (#1988)
* fix(module: locale): fix custom locale resource

* update doc

* Update LocaleProvider,cs

* Update i18n.zh-CN.md

* Update LocaleProvider

* Update docs
2021-10-12 17:48:19 +08:00
James Yeung
0ef438cc30 Merge 0.9.4 to feature (#1942)
* fix(module: form): remove `FormItem` from `Form` when it was disposed (#1901)

* pref(module: table): put fixed column style into js (#1897)

* pref(module: table): put fixed column style into js

* fix resize listener

* docs: Add building demo assets to the Readme (#1904)

* feat(module: table): add `CellData` for `CellRender` (#1907)

* docs: add dynamic table demo (#1908)

* feat(module: table): add dynamic data demo

* add scroll x

* fix(module: select): value no longer reset on datasource set (#1906)

* 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

* docs: Fixed typo (#1915)

* fix(module: input): Add stop propagation (#1917)

* docs(module: select): update coordinate demo (#1914)

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: textarea): add rows parameter (#1920)

doc: adjust to match antD
tests: sizing tests

* test(module: select): Add some unit tests for Select (#1891)

* Add Select clear tests

* Add Select DataSource to null test

* Change the implement of Throw tests

* Change int to int?

* fix(module: button): loading icon styles (#1902)

* Fix loading icon styles

* Fix button render test

* feat(module: InputNumber): Add inputmode for mobile keyboard (#1923)

* perf: avoid memory leak issue of event listener (#1857)

* 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: textarea): replace wrong event (#1927)

* tests(module: textarea): include js function mock to avoid bunit exceptions (#1930)

* perf(module: overlay): positioning moved to js (#1848)

* fix(module:overlay): move postion calculation to js

fixes #1836

* docs: TriggerBoundaryAdjustMode explanation

* docs: select & datepicker got BoundaryAdjustmetMode

cleanup

* test: fixes

optimization & cleanup

* fix(module:overlay): recalculate overlay position when trigger resizes

* Minor clean-up

* fix(module:overlay): wait for Show to finish in Hide

* fix: prevent vertical scrollbar on overlay adding

* fix: extract waiting function

* fix: overlay not to repostion when trigger vanishes (menu issue)

* fix: scroll adjustment for position: fixed

* fix: on menu mode change, keep

* merge conflict fix

* fix: nominal calculation reset on failed adjustment

* fix: bugs

* test: exclude log method from test coverage in overlay.ts

* fix(module: table): It would be load twice at first time if pagesize is not 10 (#1933)

* fix(module: menu): collapsed menu title can't hide while use router link (#1934)

* fix(module: select): fix data source of type IEnumerable<object> (#1932)

* 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>

* feat(module: InputNumber): Add OnFocus event (#1931)

* Add on textbox focus

* Adjust naming

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* fix(module: list): resposive style doesn't work (#1937)

* docs: Update index.zh-CN.md (#1936)

Update document ConfigProvider global configuration example code

Co-authored-by: James Yeung <shunjiey@hotmail.com>

* change log 0.9.4 (#1938)

* chore: test cs project to include test runner adapter (#1939)

test: add general overlay disposal method mock

Co-authored-by: Alan.Liu <lxyruanjian@126.com>
Co-authored-by: James Yeung <shunjiey@hotmail.com>
Co-authored-by: rabberbock <rabberbock@gmail.com>
Co-authored-by: Andrzej Bakun <anddrzejb@poczta.fm>
Co-authored-by: Chandan Rauniyar <chandankkrr@gmail.com>
Co-authored-by: Luke Parker [SSW] <10430890+Hona@users.noreply.github.com>
Co-authored-by: SmallY <45689960+iamSmallY@users.noreply.github.com>
Co-authored-by: Maksim <maksalmak@gmail.com>
Co-authored-by: Tony Yip <tonyyip1969@gmail.com>
Co-authored-by: SmRiley <45205313+SmRiley@users.noreply.github.com>
2021-09-14 22:00:55 +08:00