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/date-/datetime-input): Add new components ix-date-input and ix-datetime-input #861

Closed
wants to merge 222 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
222 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
e012972
feat: add basic component
lzeiml Sep 12, 2023
f472422
refactor: remove tests from core index
lzeiml Sep 12, 2023
eeb45b1
feat: add basic datepicker-input
lzeiml Sep 13, 2023
2b84ce9
refactor: remove automatically setting 'to' date in range mode
lzeiml Sep 13, 2023
e295d28
Merge branch 'date-picker-refactor' into feat/date-input
lzeiml Sep 13, 2023
2a4a368
fix: error from last commit
lzeiml Sep 13, 2023
35531e2
Merge branch 'date-picker-refactor' into feat/date-input
lzeiml Sep 13, 2023
4fec4a1
feat: add missing attributes
lzeiml Sep 13, 2023
c015598
test: dropdown test
lzeiml Sep 14, 2023
b1c6646
fix: add trigger ref
danielleroux Sep 14, 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
ee46726
feat: date-input binding to date-picker
lzeiml Sep 18, 2023
9a33bd3
Merge branch 'date-picker-refactor' into feat/date-input
lzeiml Sep 18, 2023
58b2206
fix: visual tests
lzeiml Sep 18, 2023
8f2900b
fix: build
lzeiml Sep 18, 2023
a1e02da
feat: add clear button
lzeiml Sep 18, 2023
a74b80c
feat: add custom date validation
lzeiml Sep 19, 2023
0ad4c8a
feat(timepicker): refactor component
danielleroux Sep 14, 2023
23e7ae9
feat: set custom validity
lzeiml Sep 19, 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
89c1d60
Merge branch 'date-picker-refactor' into feat/date-input
lzeiml Sep 20, 2023
b08dfe4
feat: label position property
lzeiml Sep 20, 2023
f4a86a0
feat(core/timepicker): responsive behavior
matthiashader Sep 20, 2023
76928f8
feat: add events for date-input
lzeiml Sep 20, 2023
a2606b3
feat: basic datetime input
lzeiml 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
2f7727a
feat: add range datetime input
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
7c45b93
fix(ix-dropdown): fix nested dropdown dispose
lzeiml Sep 27, 2023
6283fca
feat: add range datetime input
lzeiml Sep 27, 2023
c1c140d
fix: close behaviour
lzeiml Sep 27, 2023
d7fc82b
feat: datetime input validation
lzeiml Sep 27, 2023
fd80a99
test(ix-dropdown): add nested dropdown test
lzeiml Sep 28, 2023
23355fd
feat(core/date-input): set label position
lzeiml Sep 28, 2023
c29a4a1
refactor(core/date-input): remove useless css
lzeiml Sep 28, 2023
a88c8b4
feat(core/timepicker): fix conditional behaviour
matthiashader Oct 2, 2023
ec05f44
feat(core/timepicker): fixes responsive behavior
matthiashader Oct 2, 2023
08ceea3
fix(core/dropdown): fix nested dropdown dispose
lzeiml Sep 28, 2023
15ab7af
feat(core/date-picker): update selected year & month when updating fr…
lzeiml Oct 2, 2023
6580d46
feat(core/date-input): add missing events
lzeiml Oct 2, 2023
291a3a4
test(core/date-input): add date-input tests
lzeiml Oct 2, 2023
ae7498f
fix(core/date-input): fix 'to' watch
lzeiml Oct 3, 2023
691bc81
test(core/date-input): add additional tests
lzeiml Oct 3, 2023
811ece9
refactor(core/datetime-input): rename properties
lzeiml Oct 3, 2023
1d2d7ee
test(core/datetime-input): add tests
lzeiml Oct 3, 2023
56fd197
chore: rebuild
lzeiml Oct 3, 2023
1dacd79
test: update snaphots
danielleroux Oct 4, 2023
0360606
feat(core/date-input): labels and other small changes
lzeiml Oct 5, 2023
21c85af
fix: add validation logic
danielleroux Oct 5, 2023
e7f625a
test(core/date-input): fix test
lzeiml Oct 5, 2023
d76efea
test(core/datetime-input): add additional input
lzeiml Oct 5, 2023
128fa31
Merge branch 'feat/date-input' of https://github.com/siemens/ix into …
lzeiml Oct 5, 2023
40bc627
fix(core/date-input): only trigger submit event call back on submit
lzeiml Oct 6, 2023
c542a16
refactor(core/date-input): remove unnecessary code
lzeiml Oct 6, 2023
dc0ebd1
feat(core/date-input): continue updating validation on input change a…
lzeiml Oct 6, 2023
1334e12
refactor(core/date-input): remove unnecessary code
lzeiml Oct 6, 2023
1086770
refactor(core/date-input): refactor validity update
lzeiml Oct 6, 2023
c81eda9
test(core/datetime-input): add more tests
lzeiml Oct 6, 2023
550b1ad
fix(core/ix-dropdown): fix nested dropdown inside shadowroot
lzeiml Oct 9, 2023
b13126d
feat(core/date-input): add validation configuration
lzeiml Oct 9, 2023
a2067ac
fix(core/date-picker): fix cannot read value of undefined error
lzeiml Oct 10, 2023
d30e3f4
refactor(core/date-input): refactor validation customization
lzeiml Oct 10, 2023
0c35b6c
feat(core/datetime-input): add validation customization
lzeiml Oct 10, 2023
6859b79
feat(core/time-picker): update time if time prop changes
lzeiml Oct 10, 2023
162880a
feat(core/date-/datetime-picker): add hover styling
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
9801eb2
feat(core/date-/datetime-picker): add input events
lzeiml 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
b7293f5
docs(core/date-/datetime-input): add documentation
lzeiml Oct 18, 2023
6116934
docs(core/datetime-input): small correction
lzeiml Oct 18, 2023
824e4b1
docs(core/datetime-input): update preview examples
lzeiml Oct 18, 2023
f787d87
docs(core/date-/datetime-input): update @since tags
lzeiml Oct 18, 2023
ebb002a
feat(core/date-picker-refactor): fixed tests
matthiashader Oct 19, 2023
26e9749
test(core/date-/datetime-input): add snapshot tests
lzeiml Oct 19, 2023
43eb281
Merge branch 'main' into feat/date-input
lzeiml Oct 20, 2023
e7704ff
chore: fix build
lzeiml Oct 23, 2023
d03bb1a
chore: check-files/rebuild
lzeiml Oct 23, 2023
9a7966a
test(core/date-picker): translation test
lzeiml Oct 23, 2023
c8a348e
test(core/date-input): fix tests
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
d7a4382
Merge branch 'main' into feat/date-input
lzeiml Oct 25, 2023
e562b07
Merge branch 'date-picker-refactor' into feat/date-input
lzeiml Oct 25, 2023
fcb6571
refactor(feat/date-/datetime-input): use rework components
lzeiml Oct 25, 2023
31dc68b
fix(core/datetime-input): show time-picker inputs
lzeiml Nov 2, 2023
013eb37
chore(core/date-picker-rework): rename datechange type to fix build i…
lzeiml Nov 6, 2023
ff40fb5
Merge branch 'main' into feat/date-input
lzeiml Nov 14, 2023
a91bc5d
test(core/date-picker-rework): update snapshots
lzeiml Nov 14, 2023
1127610
test(core/date-/datetime-input): update snapshots
lzeiml Nov 14, 2023
ba92205
test(core/date-picker): fix snapshots
lzeiml Nov 14, 2023
e61fd0b
fix(core/datetime-input): fix "Invalid Date" error
lzeiml Nov 15, 2023
5a56d5b
chore(core/angular): revert changes
lzeiml Nov 20, 2023
7eeb8ef
refactor(core/date-input): use relative units
lzeiml Nov 20, 2023
8eeb26d
docs(core/date-input): change since version
lzeiml Nov 20, 2023
5d0d612
docs(core/date-input): remove dash
lzeiml Nov 20, 2023
a140f27
fix(core/date-/datetime-picker): suppressErrorMessage
lzeiml Nov 20, 2023
79ed2d9
refactor(core/date-/datetime-input): rename events
lzeiml Nov 20, 2023
f44e26c
refactor(core/datetime-input): change margin
lzeiml Nov 20, 2023
b729162
fix(core/date-/datetime-input): fix label position/styling
lzeiml Nov 20, 2023
30957b3
docs(core/datetime-input): change prop doc
lzeiml Nov 20, 2023
e4208c2
refactor: remove comment
lzeiml Nov 20, 2023
9534563
Merge branch 'feat/date-input' of https://github.com/siemens/ix into …
lzeiml Nov 20, 2023
2885654
docs(datetime-input): fix validation documentation
lzeiml Nov 20, 2023
44a8bac
docs(core/date-input): fix validation documentation
lzeiml Nov 20, 2023
043724f
docs(core/datetime-input/date-time-picker): fix titles
lzeiml Nov 20, 2023
e48829e
Merge branch 'feat/date-input' of https://github.com/siemens/ix into …
lzeiml Nov 20, 2023
e98290a
fix(core/date/datetime-input): remove useless tabIndex
lzeiml Nov 20, 2023
9059520
chore: rebuild
lzeiml Nov 20, 2023
6e53d81
feat(core/date-picker-rework/date-input): add a11y features
lzeiml Nov 20, 2023
c2ba2a6
feat(core/date-/datetime-input): add disabled property
lzeiml Nov 21, 2023
5952691
fix(core/date-/datetime-input): remove margins
lzeiml Nov 21, 2023
9cc640e
docs: update jsdoc for labelPosition
lzeiml Nov 27, 2023
99c8083
fix(core/date-/datetime-input): adjust input width
lzeiml Nov 27, 2023
b455531
refactor(core/date-components): set range default to false
lzeiml Nov 27, 2023
5af1fea
fix(core/date-/datetime-input): set input width by placeholder width
lzeiml Nov 27, 2023
e3c4d4f
test(core/date-components): fix/add VRTs
lzeiml Nov 27, 2023
16f64da
chore: rebuild
lzeiml Nov 27, 2023
083dc0a
test: fix tests
lzeiml Nov 27, 2023
2929a09
docs: fix range jsdoc
lzeiml Dec 11, 2023
719585f
fix: add padding when setting input width
lzeiml Dec 11, 2023
1e5ae7c
chore: build
lzeiml Dec 11, 2023
ab3204d
chore: rebuild
lzeiml Dec 11, 2023
75cd835
Merge remote-tracking branch 'origin/main' into feat/date-input
danielleroux Apr 4, 2024
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
16 changes: 16 additions & 0 deletions packages/angular-test-app/src/preview-examples/date-input-range.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: 2023 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { Component } from '@angular/core';

@Component({
selector: 'app-example',
template: ` <ix-date-input></ix-date-input> `,
})
export default class DateInput {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* SPDX-FileCopyrightText: 2023 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { Component } from '@angular/core';

@Component({
selector: 'app-example',
template: `
<form
class="needs-validation"
[ngClass]="{ 'was-validated': wasValidated }"
no-validate
(submit)="onSubmit($event)"
>
<ix-layout-grid>
<ix-row>
<ix-col size="8">
<ix-date-input></ix-date-input>
<div class="valid-feedback">Looks good!</div>
</ix-col>
</ix-row>
<ix-row>
<ix-col>
<ix-button type="submit">Submit form</ix-button>
</ix-col>
</ix-row>
</ix-layout-grid>
</form>
`,
})
export default class DateInput {
wasValidated = false;

onSubmit(event: SubmitEvent) {
event.preventDefault();

this.wasValidated = true;
}
}
16 changes: 16 additions & 0 deletions packages/angular-test-app/src/preview-examples/date-input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: 2023 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { Component } from '@angular/core';

@Component({
selector: 'app-example',
template: ` <ix-date-input [range]="false"></ix-date-input> `,
})
export default class DateInput {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: 2023 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { Component } from '@angular/core';

@Component({
selector: 'app-example',
template: ` <ix-datetime-input></ix-datetime-input> `,
})
export default class DateInput {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
/*
* SPDX-FileCopyrightText: 2023 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { Component } from '@angular/core';

@Component({
selector: 'app-example',
template: `
<form
class="needs-validation"
[ngClass]="{ 'was-validated': wasValidated }"
no-validate
(submit)="onSubmit($event)"
>
<ix-layout-grid>
<ix-row>
<ix-col size="10">
<ix-datetime-input></ix-datetime-input>
<div class="valid-feedback">Looks good!</div>
</ix-col>
</ix-row>
<ix-row>
<ix-col>
<ix-button type="submit">Submit form</ix-button>
</ix-col>
</ix-row>
</ix-layout-grid>
</form>
`,
})
export default class DateInput {
wasValidated = false;

onSubmit(event: SubmitEvent) {
event.preventDefault();

this.wasValidated = true;
}
}
16 changes: 16 additions & 0 deletions packages/angular-test-app/src/preview-examples/datetime-input.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/*
* SPDX-FileCopyrightText: 2023 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/

import { Component } from '@angular/core';

@Component({
selector: 'app-example',
template: ` <ix-datetime-input [range]="false"></ix-datetime-input> `,
})
export default class DateInput {}
114 changes: 114 additions & 0 deletions packages/angular/src/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,57 @@ The event payload contains information about the selected date range.
}


@ProxyCmp({
inputs: ['corners', 'disabled', 'format', 'from', 'i18nSelectDate', 'label', 'labelPosition', 'maxDate', 'minDate', 'range', 'suppressErrorMessage', 'to', 'validators', 'weekStartIndex'],
methods: ['getCurrentInput']
})
@Component({
selector: 'ix-date-input',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['corners', 'disabled', 'format', 'from', 'i18nSelectDate', 'label', 'labelPosition', 'maxDate', 'minDate', 'range', 'suppressErrorMessage', 'to', 'validators', 'weekStartIndex'],
})
export class IxDateInput {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
proxyOutputs(this, this.el, ['dateChange', 'dateSelect', 'ixChange', 'ixFocus', 'ixBlur', 'ixClear']);
}
}


import type { DateInputEvent as IIxDateInputDateInputEvent } from '@siemens/ix';

export declare interface IxDateInput extends Components.IxDateInput {
/**
* Triggers if the date selection changes.
*/
dateChange: EventEmitter<CustomEvent<DateChangeEventRework>>;
/**
* Date selection confirmed via button action
*/
dateSelect: EventEmitter<CustomEvent<DateChangeEventRework>>;
/**
* Triggers if one of the inputs changes @emits DateInputEvent
*/
ixChange: EventEmitter<CustomEvent<IIxDateInputDateInputEvent>>;
/**
* Triggers if one of the inputs gets focus @emits DateInputEvent
*/
ixFocus: EventEmitter<CustomEvent<IIxDateInputDateInputEvent>>;
/**
* Triggers if one of the inputs loses focus @emits DateInputEvent
*/
ixBlur: EventEmitter<CustomEvent<IIxDateInputDateInputEvent>>;
/**
* Triggers if the inputs get cleared by pressing the clear button @emits void
*/
ixClear: EventEmitter<CustomEvent<void>>;
}


@ProxyCmp({
inputs: ['corners', 'eventDelimiter', 'format', 'from', 'i18nDone', 'individual', 'locale', 'maxDate', 'minDate', 'range', 'textSelectDate', 'to', 'weekStartIndex'],
methods: ['getCurrentDate']
Expand Down Expand Up @@ -560,6 +611,69 @@ Only triggered if date-picker-rework is in range mode. @since 2.1.0
}


@ProxyCmp({
inputs: ['dateFormat', 'disabled', 'fromDate', 'fromTime', 'i18nSelectDate', 'label', 'labelPosition', 'maxDate', 'minDate', 'range', 'showHour', 'showMinutes', 'showSeconds', 'showTimeReference', 'suppressErrorMessage', 'timeFormat', 'timeReference', 'toDate', 'toTime', 'validators', 'weekStartIndex'],
methods: ['getCurrentInput']
})
@Component({
selector: 'ix-datetime-input',
changeDetection: ChangeDetectionStrategy.OnPush,
template: '<ng-content></ng-content>',
// eslint-disable-next-line @angular-eslint/no-inputs-metadata-property
inputs: ['dateFormat', 'disabled', 'fromDate', 'fromTime', 'i18nSelectDate', 'label', 'labelPosition', 'maxDate', 'minDate', 'range', 'showHour', 'showMinutes', 'showSeconds', 'showTimeReference', 'suppressErrorMessage', 'timeFormat', 'timeReference', 'toDate', 'toTime', 'validators', 'weekStartIndex'],
})
export class IxDatetimeInput {
protected el: HTMLElement;
constructor(c: ChangeDetectorRef, r: ElementRef, protected z: NgZone) {
c.detach();
this.el = r.nativeElement;
proxyOutputs(this, this.el, ['fromDateChange', 'toDateChange', 'fromTimeChange', 'toTimeChange', 'dateSelect', 'ixChange', 'ixFocus', 'ixBlur', 'ixClear']);
}
}


import type { DatetimeInputEvent as IIxDatetimeInputDatetimeInputEvent } from '@siemens/ix';

export declare interface IxDatetimeInput extends Components.IxDatetimeInput {
/**
* Triggers if the first date selection changes. @emits string
*/
fromDateChange: EventEmitter<CustomEvent<string>>;
/**
* Triggers if the second date selection changes. @emits string
*/
toDateChange: EventEmitter<CustomEvent<string>>;
/**
* Triggers if the first time selection changes. @emits string
*/
fromTimeChange: EventEmitter<CustomEvent<string>>;
/**
* Triggers if the second time selection changes. @emits string
*/
toTimeChange: EventEmitter<CustomEvent<string>>;
/**
* Date selection confirmed via button action @emits DateTimeSelectEvent
*/
dateSelect: EventEmitter<CustomEvent<DateTimeSelectEvent>>;
/**
* Triggers every time one of the inputs changes @emits DatetimeInputChangeEvent
*/
ixChange: EventEmitter<CustomEvent<IIxDatetimeInputDatetimeInputEvent>>;
/**
* Triggers if one of the inputs gets focus @emits DatetimeInputEvent
*/
ixFocus: EventEmitter<CustomEvent<IIxDatetimeInputDatetimeInputEvent>>;
/**
* Triggers if one of the inputs loses focus @emits DatetimeInputEvent
*/
ixBlur: EventEmitter<CustomEvent<IIxDatetimeInputDatetimeInputEvent>>;
/**
* Triggers if the inputs get cleared by pressing the clear button @emits string with the name of the input that was cleared
*/
ixClear: EventEmitter<CustomEvent<string>>;
}


@ProxyCmp({
inputs: ['dateFormat', 'eventDelimiter', 'from', 'i18nDone', 'locale', 'maxDate', 'minDate', 'range', 'showHour', 'showMinutes', 'showSeconds', 'showTimeReference', 'textSelectDate', 'time', 'timeFormat', 'timeReference', 'to', 'weekStartIndex']
})
Expand Down
2 changes: 2 additions & 0 deletions packages/angular/src/declare-components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@ export const DIRECTIVES = [
d.IxContent,
d.IxContentHeader,
d.IxDateDropdown,
d.IxDateInput,
d.IxDatePicker,
d.IxDatetimeInput,
d.IxDatetimePicker,
d.IxDivider,
d.IxDrawer,
Expand Down
Loading
Loading