Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core/datepicker/timepicker/datetimepicker): refactor #737

Merged
merged 132 commits into from
Nov 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
132 commits
Select commit Hold shift + click to select a range
85be804
refactor: dayjs, fix: infinite scroll
lzeiml Aug 29, 2023
de564b6
feat: configure starting day of week
lzeiml Aug 29, 2023
1e56e1c
refactor: calculateCalender simplified, remove luxon
lzeiml Aug 29, 2023
4dac621
refactor: day styling
lzeiml Aug 30, 2023
2561b32
refactor: min/max-date
lzeiml Aug 30, 2023
4275aee
docs: date-picker breaking change
lzeiml Aug 30, 2023
59d4071
refactor: year list
lzeiml Aug 30, 2023
6ecffae
fix: calculateCalendar, refactor: more dayjs
lzeiml Aug 30, 2023
b6909a9
refactor: add CalendarWeek interface
lzeiml Aug 31, 2023
04909a3
docs: add breaking change
lzeiml Aug 31, 2023
8fd26b4
refactor: day selection
lzeiml Aug 31, 2023
ac45bfd
refactor: don't mutate properties from/to, refactor: getCurrentDate l…
lzeiml Aug 31, 2023
d342eab
refactor: class property order
lzeiml Aug 31, 2023
381f8c0
refactor: function order
lzeiml Aug 31, 2023
94dc13c
feat: disable year outside min/max-date (first draft)
lzeiml Aug 31, 2023
d3bd416
feat: disable years based on min/max-date
lzeiml Sep 4, 2023
aad19fe
fix: isWithinMinMaxYear
lzeiml Sep 4, 2023
885fc52
fix: infinite-scroll
lzeiml Sep 4, 2023
f9c5054
feat: disable months based on min/max-date
lzeiml Sep 4, 2023
29b0b2a
refactor: remove default values
lzeiml Sep 4, 2023
88424e9
fix: correctly display the calendar when weekStartIndex is set
lzeiml Sep 4, 2023
864cf81
fix: incorrect display if last week-number is 1
lzeiml Sep 4, 2023
3851913
refactor: remove dayjs from workspace root
lzeiml Sep 4, 2023
22aff48
Merge branch 'main' into date-picker-refactor
lzeiml Sep 4, 2023
f97e1f2
fix: merge
lzeiml Sep 4, 2023
b66141b
chore: update yarn.lock
danielleroux Sep 5, 2023
5fc5d35
fix: dayjs 53rd week bug correction
lzeiml Sep 5, 2023
0abae4a
Merge branch 'date-picker-refactor' of https://github.com/siemens/ix …
lzeiml Sep 5, 2023
5548110
refactor: dateChange-event
lzeiml Sep 5, 2023
bbc60eb
docs: dateChange event breaking change
lzeiml Sep 5, 2023
00e143a
refactor: remove default selection of date
lzeiml Sep 6, 2023
4d1376d
refactor: onDone method
lzeiml Sep 6, 2023
e9f3332
test: date-picker snapshot tests
lzeiml Sep 6, 2023
1f45525
refactor: rebuild
lzeiml Sep 6, 2023
d860aed
fix: date format
lzeiml Sep 6, 2023
4949eea
fix: only fire daterangechange event in range mode
lzeiml Sep 6, 2023
1358ff7
docs: format
lzeiml Sep 6, 2023
354a70e
test: add date-picker playwright tests
lzeiml Sep 7, 2023
b6f8827
fix: build
lzeiml Sep 7, 2023
b999dce
docs: update date-picker docs
lzeiml Sep 7, 2023
dbae563
fix: lint
lzeiml Sep 8, 2023
ac9e24a
Merge remote-tracking branch 'origin/main' into date-picker-refactor
danielleroux Sep 8, 2023
e5364e3
docs: revert modal import path
danielleroux Sep 8, 2023
009a6e4
Merge remote-tracking branch 'origin/main' into date-picker-refactor
danielleroux Sep 8, 2023
2930086
test: fix datetime-picker snapshot tests
lzeiml Sep 8, 2023
689579a
test: update date-picker snapshots
lzeiml Sep 8, 2023
44813d9
fix: snapshot
lzeiml Sep 11, 2023
ddc87a1
fix: styles, tests, docs
lzeiml Sep 11, 2023
c0c2fed
refactor: remove comment
lzeiml Sep 11, 2023
30d9c52
fix: styles
lzeiml Sep 11, 2023
f472422
refactor: remove tests from core index
lzeiml Sep 12, 2023
2b84ce9
refactor: remove automatically setting 'to' date in range mode
lzeiml Sep 13, 2023
2a4a368
fix: error from last commit
lzeiml Sep 13, 2023
a7e34b7
fix: date-picker style (remove border)
lzeiml Sep 14, 2023
68848d2
fix: endless render loop bug when updating from/to properties
lzeiml Sep 18, 2023
9afc80e
Merge branch 'main' into date-picker-refactor
lzeiml Sep 18, 2023
63a788b
refactor: add strict date parsing
lzeiml Sep 18, 2023
52fc717
Merge branch 'date-picker-refactor' of https://github.com/siemens/ix …
lzeiml Sep 18, 2023
58b2206
fix: visual tests
lzeiml Sep 18, 2023
8f2900b
fix: build
lzeiml Sep 18, 2023
0ad4c8a
feat(timepicker): refactor component
danielleroux Sep 14, 2023
bc68b0e
feat(core/timepicker): refactor component
danielleroux Sep 19, 2023
cbff4a4
refactor: add standaloneappearance
lzeiml Sep 19, 2023
6dd284c
Merge remote-tracking branch 'origin/dinm5CG3222QB0/time_picker' into…
lzeiml Sep 19, 2023
71477c4
Merge branch 'main' into date-picker-refactor
lzeiml Sep 19, 2023
392f6b3
fix: hide done second done button in datetime-picker
lzeiml Sep 19, 2023
c2542c0
chore: yarn check-files/build
lzeiml Sep 20, 2023
3dad833
refactor: remove useless code from datetime-picker
lzeiml Sep 20, 2023
4afd6e2
chore: remove test code from my-component
lzeiml Sep 20, 2023
3b3710a
Merge branch 'main' into date-picker-refactor
lzeiml Sep 20, 2023
ed870f8
feat(core/timepicker): outsourced / improved tests, tests for datetim…
matthiashader Sep 20, 2023
e97618c
chore: yarn check-files/build
lzeiml Sep 20, 2023
0a8ed0d
Merge branch 'date-picker-refactor' of https://github.com/siemens/ix …
lzeiml Sep 20, 2023
dbfc6ca
fix: date-picker tests
lzeiml Sep 20, 2023
d349078
fix: datetime-picker range selection
lzeiml Sep 20, 2023
436a3b7
feat(core/timepicker): fixes for changed icon locators
matthiashader Sep 20, 2023
1589b17
chore: rebuild
lzeiml Sep 20, 2023
d2a3134
fix: date-picker test
lzeiml Sep 20, 2023
325ca47
refactor: date-picker to/from watch logic
lzeiml Sep 20, 2023
f4a86a0
feat(core/timepicker): responsive behavior
matthiashader Sep 20, 2023
469892c
feat(core/timepicker): fixes responsive behavior, fixes time-picker l…
matthiashader Sep 21, 2023
c0ecd9b
feat(core/timepicker): responsive grid datetimepicker
matthiashader Sep 21, 2023
84184f7
chore: fix build
lzeiml Sep 22, 2023
339db40
fix: date-picker width
lzeiml Sep 25, 2023
ebd9d97
chore: fix lint
lzeiml Sep 25, 2023
1f77bad
Merge branch 'main' into date-picker-refactor
lzeiml Sep 25, 2023
512545f
chore: fix test naming
lzeiml Sep 26, 2023
7e56a57
Merge branch 'main' into date-picker-refactor
lzeiml Sep 26, 2023
a88c8b4
feat(core/timepicker): fix conditional behaviour
matthiashader Oct 2, 2023
ec05f44
feat(core/timepicker): fixes responsive behavior
matthiashader Oct 2, 2023
15ab7af
feat(core/date-picker): update selected year & month when updating fr…
lzeiml Oct 2, 2023
1dacd79
test: update snaphots
danielleroux Oct 4, 2023
a2067ac
fix(core/date-picker): fix cannot read value of undefined error
lzeiml Oct 10, 2023
6859b79
feat(core/time-picker): update time if time prop changes
lzeiml Oct 10, 2023
d7f6f3c
fix(core/modal): use percentage to align modal centered
danielleroux Oct 11, 2023
6101b0d
feat(core/time-picker): added support for external time change, added…
matthiashader Oct 11, 2023
385806d
test: add some timeout to solve animejs animation slide
danielleroux Oct 11, 2023
cf1e3c3
fix: adjust the comment
danielleroux Oct 11, 2023
e13e0cb
feat(core/date-picker-refactor): refactored internal components to av…
matthiashader Oct 11, 2023
c56b93e
Merge branch 'fix/modal-center' into date-picker-refactor
matthiashader Oct 11, 2023
086f708
feat(core/date-picker-refactor): fixed tests
matthiashader Oct 12, 2023
40bd126
feat(core/date-picker-refactor): fixed tests
matthiashader Oct 12, 2023
0d02074
fix(core/date-picker): manually close month selection
lzeiml Oct 16, 2023
7a1c47b
feat(core/date-picker-refactor): e2e test fixes
matthiashader Oct 16, 2023
64fa271
feat(core/date-dropdown): lint
matthiashader Oct 16, 2023
3c24175
feat(core/date-picker-refactor): lint
matthiashader Oct 16, 2023
3b47475
feat(core/date-picker-refactor): snapshot assertions
matthiashader Oct 17, 2023
c3529de
feat(core/date-picker-refactor): test fixes
matthiashader Oct 17, 2023
c7f02bc
docs(core/date-picker): small correction
lzeiml Oct 17, 2023
c3b2d40
feat(core/date-picker-refactor): corrections based on feedback
matthiashader Oct 18, 2023
70314af
feat(core/date-picker-refactor): corrections based on feedback
matthiashader Oct 18, 2023
bb27459
feat(core/date-picker-refactor): adjustments according to changes
matthiashader Oct 18, 2023
ebb002a
feat(core/date-picker-refactor): fixed tests
matthiashader Oct 19, 2023
9a7966a
test(core/date-picker): translation test
lzeiml Oct 23, 2023
43da9a1
fix(core/datepicker-refactor): rebuild
matthiashader Oct 24, 2023
00916b7
feat(date-/datetime-picker): add locale property for translation
lzeiml Oct 24, 2023
14893e2
Merge branch 'date-picker-refactor' of https://github.com/siemens/ix …
lzeiml Oct 24, 2023
b8c3fad
docs: add translation documentation
lzeiml Oct 24, 2023
6c4d56a
chore: rebuild
lzeiml Oct 24, 2023
aec0615
Merge branch 'main' into date-picker-refactor
lzeiml Oct 24, 2023
c64d85b
chore: remove test from my-component
lzeiml Oct 24, 2023
c6bce6c
fix(core/date-picker-rework): fix import
lzeiml Oct 25, 2023
b8d2615
feat(core/datepicker/timepicker/datetimepicker): fixes
matthiashader Nov 3, 2023
d8b8cc0
fix(core/date-picker-rework): calendar day tab selection
lzeiml Nov 3, 2023
7c762d3
fix(core/date-picker-rework): fixes behavior on key press
matthiashader Nov 3, 2023
4fccf77
fix(core/date-picker-rework): change weeknumber color
lzeiml Nov 3, 2023
2823ca7
Merge branch 'date-picker-refactor' of https://github.com/siemens/ix …
lzeiml Nov 3, 2023
673e029
fix(core/date-picker-rework): add month tab selection
lzeiml Nov 3, 2023
3682d54
test(date-/datetime-picker): update snapshots
lzeiml Nov 3, 2023
7f45d25
feat(core/date-picker-rework): add arrow selection to date-picker days
lzeiml Nov 6, 2023
a85f19b
fix(core/date-picker-rework): fix focus outlines
lzeiml Nov 6, 2023
d10705e
test(core/date-picker-rework): fix snapshots
lzeiml Nov 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion BREAKING_CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,8 @@ Change `Primary` and `Secondary` to lower case `primary` and `secondary`
**_Now_**

```typescript
@Event() close: EventEmitter<{
@Event()
close: EventEmitter<{
nativeEvent: MouseEvent;
name: string;
}>;
Expand Down
72 changes: 63 additions & 9 deletions packages/core/component-doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -795,13 +795,16 @@
"dependents": [
"ix-card-list",
"ix-date-picker",
"ix-date-picker-rework",
"ix-datetime-picker",
"ix-datetime-picker-rework",
"ix-dropdown-button",
"ix-empty-state",
"ix-menu-about-news",
"ix-modal-example",
"ix-split-button",
"ix-time-picker",
"ix-time-picker-rework",
"ix-upload"
],
"dependencies": [
Expand All @@ -817,9 +820,15 @@
"ix-date-picker": [
"ix-button"
],
"ix-date-picker-rework": [
"ix-button"
],
"ix-datetime-picker": [
"ix-button"
],
"ix-datetime-picker-rework": [
"ix-button"
],
"ix-dropdown-button": [
"ix-button"
],
Expand All @@ -838,6 +847,9 @@
"ix-time-picker": [
"ix-button"
],
"ix-time-picker-rework": [
"ix-button"
],
"ix-upload": [
"ix-button"
]
Expand Down Expand Up @@ -1877,9 +1889,15 @@
}
],
"encapsulation": "shadow",
"dependents": [],
"dependents": [
"ix-datetime-picker-rework"
],
"dependencies": [],
"dependencyGraph": {},
"dependencyGraph": {
"ix-datetime-picker-rework": [
"ix-col"
]
},
"props": [
{
"name": "size",
Expand Down Expand Up @@ -2314,7 +2332,7 @@
"props": [
{
"name": "corners",
"type": "\"left\" | \"right\" | \"rounded\"",
"type": "\"left\" | \"right\" | \"rounded\" | \"straight\"",
"mutable": false,
"attr": "corners",
"reflectToAttr": false,
Expand All @@ -2333,6 +2351,10 @@
{
"value": "rounded",
"type": "string"
},
{
"value": "straight",
"type": "string"
}
],
"optional": false,
Expand Down Expand Up @@ -2366,7 +2388,7 @@
"mutable": false,
"attr": "format",
"reflectToAttr": false,
"docs": "Date format string.\nSee @link https://moment.github.io/luxon/#/formatting?id=table-of-tokens for all available tokens.",
"docs": "Date format string.\nSee {@link \"https://moment.github.io/luxon/#/formatting?id=table-of-tokens\"} for all available tokens.",
"docsTags": [],
"default": "'yyyy/LL/dd'",
"values": [
Expand Down Expand Up @@ -3238,6 +3260,7 @@
"ix-breadcrumb",
"ix-category-filter",
"ix-date-picker",
"ix-date-picker-rework",
"ix-dropdown-button",
"ix-menu-avatar",
"ix-menu-category",
Expand All @@ -3255,6 +3278,9 @@
"ix-date-picker": [
"ix-dropdown"
],
"ix-date-picker-rework": [
"ix-dropdown"
],
"ix-dropdown-button": [
"ix-dropdown"
],
Expand Down Expand Up @@ -5045,6 +5071,7 @@
"ix-chip",
"ix-content-header",
"ix-date-picker",
"ix-date-picker-rework",
"ix-drawer",
"ix-dropdown-button",
"ix-expanding-search",
Expand All @@ -5063,6 +5090,7 @@
"ix-select",
"ix-split-button",
"ix-time-picker",
"ix-time-picker-rework",
"ix-toast"
],
"dependencies": [
Expand Down Expand Up @@ -5090,6 +5118,9 @@
"ix-date-picker": [
"ix-icon-button"
],
"ix-date-picker-rework": [
"ix-icon-button"
],
"ix-drawer": [
"ix-icon-button"
],
Expand Down Expand Up @@ -5144,6 +5175,9 @@
"ix-time-picker": [
"ix-icon-button"
],
"ix-time-picker-rework": [
"ix-icon-button"
],
"ix-toast": [
"ix-icon-button"
]
Expand Down Expand Up @@ -5866,9 +5900,15 @@
}
],
"encapsulation": "shadow",
"dependents": [],
"dependents": [
"ix-datetime-picker-rework"
],
"dependencies": [],
"dependencyGraph": {},
"dependencyGraph": {
"ix-datetime-picker-rework": [
"ix-layout-grid"
]
},
"props": [
{
"name": "columns",
Expand Down Expand Up @@ -8681,9 +8721,15 @@
}
],
"encapsulation": "shadow",
"dependents": [],
"dependents": [
"ix-datetime-picker-rework"
],
"dependencies": [],
"dependencyGraph": {},
"dependencyGraph": {
"ix-datetime-picker-rework": [
"ix-row"
]
},
"props": [],
"methods": [],
"events": [],
Expand Down Expand Up @@ -10227,7 +10273,7 @@
"props": [
{
"name": "corners",
"type": "\"left\" | \"right\" | \"rounded\"",
"type": "\"left\" | \"right\" | \"rounded\" | \"straight\"",
"mutable": false,
"attr": "corners",
"reflectToAttr": false,
Expand All @@ -10246,6 +10292,10 @@
{
"value": "rounded",
"type": "string"
},
{
"value": "straight",
"type": "string"
}
],
"optional": false,
Expand Down Expand Up @@ -11471,6 +11521,7 @@
"ix-push-card",
"ix-slider",
"ix-time-picker",
"ix-time-picker-rework",
"ix-tooltip"
],
"dependencies": [],
Expand Down Expand Up @@ -11514,6 +11565,9 @@
"ix-time-picker": [
"ix-typography"
],
"ix-time-picker-rework": [
"ix-typography"
],
"ix-tooltip": [
"ix-typography"
]
Expand Down
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"@stencil/core": "^3.2.1",
"@types/luxon": "^3.3.0",
"animejs": "~3.2.1",
"dayjs": "^1.11.9",
"hyperlist": "^1.0.0",
"luxon": "^3.3.0"
},
Expand Down
Loading