@siemens/element-ng 47.3.0 → 47.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (177) hide show
  1. package/badge/si-badge.component.d.ts +1 -1
  2. package/breadcrumb/breadcrumb-item.model.d.ts +36 -0
  3. package/breadcrumb/index.d.ts +7 -0
  4. package/breadcrumb/package.json +3 -0
  5. package/breadcrumb/si-breadcrumb-item-template.directive.d.ts +10 -0
  6. package/breadcrumb/si-breadcrumb.component.d.ts +46 -0
  7. package/breadcrumb/si-breadcrumb.module.d.ts +7 -0
  8. package/card/index.d.ts +6 -0
  9. package/card/package.json +3 -0
  10. package/card/si-card.component.d.ts +79 -0
  11. package/card/si-card.module.d.ts +7 -0
  12. package/circle-status/index.d.ts +6 -0
  13. package/circle-status/package.json +3 -0
  14. package/circle-status/si-circle-status.component.d.ts +66 -0
  15. package/circle-status/si-circle-status.module.d.ts +7 -0
  16. package/column-selection-dialog/column-selection-editor/si-column-selection-editor.component.d.ts +23 -0
  17. package/column-selection-dialog/index.d.ts +6 -0
  18. package/column-selection-dialog/package.json +3 -0
  19. package/column-selection-dialog/si-column-selection-dialog.component.d.ts +114 -0
  20. package/column-selection-dialog/si-column-selection-dialog.service.d.ts +20 -0
  21. package/column-selection-dialog/si-column-selection-dialog.types.d.ts +68 -0
  22. package/common/models/status-type.model.d.ts +2 -2
  23. package/date-range-filter/index.d.ts +8 -0
  24. package/date-range-filter/package.json +3 -0
  25. package/date-range-filter/si-date-range-calculation.service.d.ts +33 -0
  26. package/date-range-filter/si-date-range-filter.component.d.ts +248 -0
  27. package/date-range-filter/si-date-range-filter.module.d.ts +7 -0
  28. package/date-range-filter/si-date-range-filter.types.d.ts +40 -0
  29. package/date-range-filter/si-relative-date.component.d.ts +31 -0
  30. package/datepicker/components/si-calendar-body.component.d.ts +137 -0
  31. package/datepicker/components/si-calendar-date-cell.directive.d.ts +16 -0
  32. package/datepicker/components/si-calendar-direction-button.component.d.ts +18 -0
  33. package/datepicker/components/si-compare-adapter.d.ts +37 -0
  34. package/datepicker/components/si-day-selection.component.d.ts +76 -0
  35. package/datepicker/components/si-initial-focus.component.d.ts +74 -0
  36. package/datepicker/components/si-month-selection.component.d.ts +62 -0
  37. package/datepicker/components/si-year-selection.component.d.ts +65 -0
  38. package/datepicker/date-time-helper.d.ts +302 -0
  39. package/datepicker/index.d.ts +15 -0
  40. package/datepicker/package.json +3 -0
  41. package/datepicker/si-calendar-button.component.d.ts +49 -0
  42. package/datepicker/si-date-input.directive.d.ts +114 -0
  43. package/datepicker/si-date-range.component.d.ts +150 -0
  44. package/datepicker/si-datepicker-overlay.component.d.ts +82 -0
  45. package/datepicker/si-datepicker-overlay.directive.d.ts +104 -0
  46. package/datepicker/si-datepicker.component.d.ts +228 -0
  47. package/datepicker/si-datepicker.directive.d.ts +62 -0
  48. package/datepicker/si-datepicker.model.d.ts +129 -0
  49. package/datepicker/si-datepicker.module.d.ts +12 -0
  50. package/datepicker/si-timepicker.component.d.ts +214 -0
  51. package/electron-titlebar/electron.helpers.d.ts +5 -0
  52. package/electron-titlebar/index.d.ts +7 -0
  53. package/electron-titlebar/package.json +3 -0
  54. package/electron-titlebar/si-electron-titlebar.component.d.ts +72 -0
  55. package/electron-titlebar/si-electron-titlebar.module.d.ts +7 -0
  56. package/fesm2022/siemens-element-ng-badge.mjs.map +1 -1
  57. package/fesm2022/siemens-element-ng-breadcrumb.mjs +302 -0
  58. package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -0
  59. package/fesm2022/siemens-element-ng-card.mjs +122 -0
  60. package/fesm2022/siemens-element-ng-card.mjs.map +1 -0
  61. package/fesm2022/siemens-element-ng-circle-status.mjs +146 -0
  62. package/fesm2022/siemens-element-ng-circle-status.mjs.map +1 -0
  63. package/fesm2022/siemens-element-ng-column-selection-dialog.mjs +369 -0
  64. package/fesm2022/siemens-element-ng-column-selection-dialog.mjs.map +1 -0
  65. package/fesm2022/siemens-element-ng-common.mjs.map +1 -1
  66. package/fesm2022/siemens-element-ng-date-range-filter.mjs +649 -0
  67. package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -0
  68. package/fesm2022/siemens-element-ng-datepicker.mjs +4231 -0
  69. package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -0
  70. package/fesm2022/siemens-element-ng-electron-titlebar.mjs +142 -0
  71. package/fesm2022/siemens-element-ng-electron-titlebar.mjs.map +1 -0
  72. package/fesm2022/siemens-element-ng-file-uploader.mjs +751 -0
  73. package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -0
  74. package/fesm2022/siemens-element-ng-filter-bar.mjs +153 -0
  75. package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -0
  76. package/fesm2022/siemens-element-ng-icon.mjs +11 -1
  77. package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
  78. package/fesm2022/siemens-element-ng-info-page.mjs +63 -0
  79. package/fesm2022/siemens-element-ng-info-page.mjs.map +1 -0
  80. package/fesm2022/siemens-element-ng-inline-notification.mjs +4 -6
  81. package/fesm2022/siemens-element-ng-inline-notification.mjs.map +1 -1
  82. package/fesm2022/siemens-element-ng-ip-input.mjs +451 -0
  83. package/fesm2022/siemens-element-ng-ip-input.mjs.map +1 -0
  84. package/fesm2022/siemens-element-ng-localization.mjs +306 -0
  85. package/fesm2022/siemens-element-ng-localization.mjs.map +1 -0
  86. package/fesm2022/siemens-element-ng-photo-upload.mjs +480 -0
  87. package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -0
  88. package/fesm2022/siemens-element-ng-search-bar.mjs +193 -0
  89. package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -0
  90. package/fesm2022/siemens-element-ng-slider.mjs +313 -0
  91. package/fesm2022/siemens-element-ng-slider.mjs.map +1 -0
  92. package/fesm2022/siemens-element-ng-sort-bar.mjs +89 -0
  93. package/fesm2022/siemens-element-ng-sort-bar.mjs.map +1 -0
  94. package/fesm2022/siemens-element-ng-split.mjs +575 -0
  95. package/fesm2022/siemens-element-ng-split.mjs.map +1 -0
  96. package/fesm2022/siemens-element-ng-status-toggle.mjs +196 -0
  97. package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -0
  98. package/fesm2022/siemens-element-ng-system-banner.mjs +47 -0
  99. package/fesm2022/siemens-element-ng-system-banner.mjs.map +1 -0
  100. package/fesm2022/siemens-element-ng-tabs.mjs +395 -0
  101. package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -0
  102. package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
  103. package/fesm2022/siemens-element-ng-unauthorized-page.mjs +76 -0
  104. package/fesm2022/siemens-element-ng-unauthorized-page.mjs.map +1 -0
  105. package/file-uploader/index.d.ts +8 -0
  106. package/file-uploader/package.json +3 -0
  107. package/file-uploader/si-file-dropzone.component.d.ts +106 -0
  108. package/file-uploader/si-file-uploader.component.d.ts +296 -0
  109. package/file-uploader/si-file-uploader.model.d.ts +12 -0
  110. package/file-uploader/si-file-uploader.module.d.ts +8 -0
  111. package/filter-bar/filter.d.ts +26 -0
  112. package/filter-bar/index.d.ts +8 -0
  113. package/filter-bar/package.json +3 -0
  114. package/filter-bar/si-filter-bar.component.d.ts +65 -0
  115. package/filter-bar/si-filter-bar.module.d.ts +7 -0
  116. package/filter-bar/si-filter-pill.component.d.ts +20 -0
  117. package/icon/element-icons.d.ts +10 -0
  118. package/info-page/index.d.ts +5 -0
  119. package/info-page/package.json +3 -0
  120. package/info-page/si-info-page.component.d.ts +38 -0
  121. package/inline-notification/si-inline-notification.component.d.ts +0 -2
  122. package/ip-input/address-utils.d.ts +28 -0
  123. package/ip-input/address-validators.d.ts +21 -0
  124. package/ip-input/index.d.ts +7 -0
  125. package/ip-input/package.json +3 -0
  126. package/ip-input/si-ip-input.directive.d.ts +53 -0
  127. package/ip-input/si-ip4-input.directive.d.ts +9 -0
  128. package/ip-input/si-ip6-input.directive.d.ts +10 -0
  129. package/localization/index.d.ts +8 -0
  130. package/localization/package.json +3 -0
  131. package/localization/si-directionality.d.ts +41 -0
  132. package/localization/si-locale-id.d.ts +22 -0
  133. package/localization/si-locale-store.d.ts +16 -0
  134. package/localization/si-locale.service.d.ts +73 -0
  135. package/package.json +91 -3
  136. package/photo-upload/index.d.ts +6 -0
  137. package/photo-upload/package.json +3 -0
  138. package/photo-upload/si-image-cropper-style.component.d.ts +5 -0
  139. package/photo-upload/si-photo-upload.component.d.ts +298 -0
  140. package/search-bar/index.d.ts +6 -0
  141. package/search-bar/package.json +3 -0
  142. package/search-bar/si-search-bar.component.d.ts +87 -0
  143. package/search-bar/si-search-bar.module.d.ts +7 -0
  144. package/slider/index.d.ts +6 -0
  145. package/slider/package.json +3 -0
  146. package/slider/si-slider.component.d.ts +129 -0
  147. package/slider/si-slider.module.d.ts +7 -0
  148. package/sort-bar/index.d.ts +6 -0
  149. package/sort-bar/package.json +3 -0
  150. package/sort-bar/si-sort-bar.component.d.ts +42 -0
  151. package/sort-bar/si-sort-bar.module.d.ts +7 -0
  152. package/split/index.d.ts +8 -0
  153. package/split/package.json +3 -0
  154. package/split/si-split-part.component.d.ts +154 -0
  155. package/split/si-split.component.d.ts +48 -0
  156. package/split/si-split.interfaces.d.ts +17 -0
  157. package/split/si-split.module.d.ts +8 -0
  158. package/status-toggle/index.d.ts +6 -0
  159. package/status-toggle/package.json +3 -0
  160. package/status-toggle/si-status-toggle.component.d.ts +54 -0
  161. package/status-toggle/status-toggle.model.d.ts +26 -0
  162. package/system-banner/index.d.ts +5 -0
  163. package/system-banner/package.json +3 -0
  164. package/system-banner/system-banner.component.d.ts +23 -0
  165. package/tabs/index.d.ts +7 -0
  166. package/tabs/package.json +3 -0
  167. package/tabs/si-tab/index.d.ts +5 -0
  168. package/tabs/si-tab/si-tab.component.d.ts +58 -0
  169. package/tabs/si-tabs.module.d.ts +8 -0
  170. package/tabs/si-tabset/index.d.ts +5 -0
  171. package/tabs/si-tabset/si-tabset.component.d.ts +100 -0
  172. package/template-i18n.json +82 -0
  173. package/translate/si-translatable-keys.interface.d.ts +82 -0
  174. package/unauthorized-page/index.d.ts +6 -0
  175. package/unauthorized-page/package.json +3 -0
  176. package/unauthorized-page/si-unauthorized-page.component.d.ts +35 -0
  177. package/unauthorized-page/si-unauthorized-page.module.d.ts +7 -0
@@ -0,0 +1,74 @@
1
+ /**
2
+ * Copyright Siemens 2016 - 2025.
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ import { AfterViewInit } from '@angular/core';
6
+ import { Cell, SiCalendarBodyComponent } from './si-calendar-body.component';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Helper directive to set the initial focus to the calendar body cell.
10
+ */
11
+ export declare class SiInitialFocusComponent implements AfterViewInit {
12
+ /** The cell which has the mouse hover. */
13
+ readonly activeHover: import("@angular/core").ModelSignal<Cell | undefined>;
14
+ /** The date which is displayed as selected. */
15
+ readonly startDate: import("@angular/core").InputSignal<Date | undefined>;
16
+ /** The date which is displayed as selected end. The value is only considered with enableRangeSelection. */
17
+ readonly endDate: import("@angular/core").InputSignal<Date | undefined>;
18
+ /**
19
+ * Guard to set the focus during ngAfterViewInit, we just set the focus after we first initialized the view
20
+ *
21
+ * @defaultValue true
22
+ */
23
+ readonly initialFocus: import("@angular/core").InputSignal<boolean>;
24
+ /** The minimum selectable date. */
25
+ readonly minDate: import("@angular/core").InputSignal<Date | undefined>;
26
+ /** The maximum selectable date. */
27
+ readonly maxDate: import("@angular/core").InputSignal<Date | undefined>;
28
+ /**
29
+ * Optional input to control the minimum month the datepicker can show and the user can navigate.
30
+ * The `minMonth` can be larger than the `minDate` This option enables the usage of multiple
31
+ * datepickers next to each other while the more left calendar always
32
+ * shows an earlier month the more right one.
33
+ */
34
+ readonly minMonth: import("@angular/core").InputSignal<Date | undefined>;
35
+ /**
36
+ * Optional input to control the maximum month the datepicker can show and the user can navigate.
37
+ * The `maxMonth` can be smaller than the `maxDate` This option enables the usage of multiple
38
+ * datepickers next to each other while the more left calendar always
39
+ * shows an earlier month the more right one.
40
+ */
41
+ readonly maxMonth: import("@angular/core").InputSignal<Date | undefined>;
42
+ /** Aria label for the next button. Needed for a11y. */
43
+ readonly previousLabel: import("@angular/core").InputSignal<string>;
44
+ /** Aria label for the next button. Needed for a11y. */
45
+ readonly nextLabel: import("@angular/core").InputSignal<string>;
46
+ /**
47
+ * Is range selection enabled, when enabled it shows a preview between the startDate and the focused date.
48
+ *
49
+ * @defaultValue false
50
+ */
51
+ readonly isRangeSelection: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
52
+ /**
53
+ * Indicate whether a range preview shall be displayed.
54
+ * When enabled a preview is visible between startDate and focusedDate.
55
+ *
56
+ * @defaultValue true
57
+ */
58
+ readonly previewRange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
59
+ /**
60
+ * Emits when a new value is selected. In case where the value is null to
61
+ * user aborted the selection by Escape.
62
+ */
63
+ readonly selectedValueChange: import("@angular/core").OutputEmitterRef<Date | null>;
64
+ /** The body of calendar table */
65
+ protected readonly calendarBody: import("@angular/core").Signal<SiCalendarBodyComponent>;
66
+ ngAfterViewInit(): void;
67
+ /**
68
+ * Focus calendar cell which is marked as active cell.
69
+ */
70
+ focusActiveCell(): void;
71
+ protected onActiveHoverChange(event?: Cell): void;
72
+ static ɵfac: i0.ɵɵFactoryDeclaration<SiInitialFocusComponent, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<SiInitialFocusComponent, "ng-component", never, { "activeHover": { "alias": "activeHover"; "required": false; "isSignal": true; }; "startDate": { "alias": "startDate"; "required": false; "isSignal": true; }; "endDate": { "alias": "endDate"; "required": false; "isSignal": true; }; "initialFocus": { "alias": "initialFocus"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minMonth": { "alias": "minMonth"; "required": false; "isSignal": true; }; "maxMonth": { "alias": "maxMonth"; "required": false; "isSignal": true; }; "previousLabel": { "alias": "previousLabel"; "required": true; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": true; "isSignal": true; }; "isRangeSelection": { "alias": "isRangeSelection"; "required": false; "isSignal": true; }; "previewRange": { "alias": "previewRange"; "required": false; "isSignal": true; }; }, { "activeHover": "activeHoverChange"; "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
74
+ }
@@ -0,0 +1,62 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { Cell } from './si-calendar-body.component';
3
+ import { MonthCompareAdapter } from './si-compare-adapter';
4
+ import { SiInitialFocusComponent } from './si-initial-focus.component';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Show months of a single year as table and handles the keyboard interactions.
8
+ * The focus and focusedDate is handled according the keyboard interactions.
9
+ */
10
+ export declare class SiMonthSelectionComponent extends SiInitialFocusComponent implements OnChanges {
11
+ /**
12
+ * The translated list of months.
13
+ *
14
+ * @defaultValue []
15
+ */
16
+ readonly months: import("@angular/core").InputSignal<string[]>;
17
+ /**
18
+ * The active date, the cell which will receive the focus.
19
+ */
20
+ readonly focusedDate: import("@angular/core").ModelSignal<Date>;
21
+ /** Emits when the active focused date is changed to another month / year, typically during keyboard navigation. */
22
+ readonly activeMonthChange: import("@angular/core").OutputEmitterRef<Date>;
23
+ /** Emits when the user requests a different to show a different view. */
24
+ readonly viewChange: import("@angular/core").OutputEmitterRef<"year">;
25
+ /** Listen Escape event to switch view back */
26
+ triggerEsc(event: KeyboardEvent): void;
27
+ /**
28
+ * The current visible list of calendar months.
29
+ * Every time the focusedDate changes to another year the list will update.
30
+ */
31
+ protected monthCells: Cell[][];
32
+ protected compareAdapter: MonthCompareAdapter;
33
+ /** Number of column before the row is wrapped */
34
+ private readonly columnCount;
35
+ /**
36
+ * Indicate the previous button shall be disabled.
37
+ * This happens when the focusedDate is equal or before the minDate.
38
+ */
39
+ protected readonly isPreviousButtonDisabled: import("@angular/core").Signal<boolean | undefined>;
40
+ /**
41
+ * Indicate the next button shall be disabled.
42
+ * This happens when the focusedDate is equal or after the maxDate.
43
+ */
44
+ protected readonly isNextButtonDisabled: import("@angular/core").Signal<boolean | undefined>;
45
+ ngOnChanges(changes: SimpleChanges): void;
46
+ protected calendarBodyKeyDown(event: KeyboardEvent): void;
47
+ protected updateFocusedDate(offset: number): void;
48
+ /**
49
+ * Add offset to year and update focusedDate.
50
+ */
51
+ protected setYearOffset(offset: number): void;
52
+ protected emitSelectedValue(selected: Date): void;
53
+ protected emitFocusedDate(focused: Date): void;
54
+ protected emitActiveMonthChange(focus: Date, prevFocus: Date): void;
55
+ protected emitViewChange(): void;
56
+ /**
57
+ * Initialize view based on the focusedDate.
58
+ */
59
+ private initView;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<SiMonthSelectionComponent, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<SiMonthSelectionComponent, "si-month-selection", never, { "months": { "alias": "months"; "required": false; "isSignal": true; }; "focusedDate": { "alias": "focusedDate"; "required": true; "isSignal": true; }; }, { "focusedDate": "focusedDateChange"; "activeMonthChange": "activeMonthChange"; "viewChange": "viewChange"; }, never, never, true, never>;
62
+ }
@@ -0,0 +1,65 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { Cell } from './si-calendar-body.component';
3
+ import { YearCompareAdapter } from './si-compare-adapter';
4
+ import { SiInitialFocusComponent } from './si-initial-focus.component';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Show months of a single year as table and handles the keyboard interactions.
8
+ * The focus and focusedDate is handled according the keyboard interactions.
9
+ */
10
+ export declare class SiYearSelectionComponent extends SiInitialFocusComponent implements OnChanges {
11
+ /**
12
+ * The active date, the cell which will receive the focus.
13
+ */
14
+ readonly focusedDate: import("@angular/core").ModelSignal<Date>;
15
+ /** Emits when the active focused date changed to another month / year, typically during keyboard navigation. */
16
+ readonly yearRangeChange: import("@angular/core").OutputEmitterRef<Date[]>;
17
+ /** Listen Escape event to switch view back */
18
+ triggerEsc(event: KeyboardEvent): void;
19
+ /** Number of column before the row is wrapped */
20
+ private readonly columnCount;
21
+ /** The number of years which shall be displayed, this number should be even and dividable by columnCount */
22
+ private readonly yearsToDisplay;
23
+ /** Lower windows bound for displayed year range */
24
+ protected readonly fromYear: import("@angular/core").WritableSignal<Date | undefined>;
25
+ /** Upper windows bound for displayed year range */
26
+ protected readonly toYear: import("@angular/core").WritableSignal<Date | undefined>;
27
+ /**
28
+ * The current visible list of calendar years.
29
+ * Every time the focusedDate changes to another year the list will be rebuilt.
30
+ */
31
+ protected yearCells: Cell[][];
32
+ protected compareAdapter: YearCompareAdapter;
33
+ /** Is previous button disabled based on the minDate. */
34
+ protected readonly isPreviousButtonDisabled: import("@angular/core").Signal<boolean>;
35
+ /** Is next button disabled based on the maxDate */
36
+ protected readonly isNextButtonDisabled: import("@angular/core").Signal<boolean>;
37
+ ngOnChanges(changes: SimpleChanges): void;
38
+ protected calendarBodyKeyDown(event: KeyboardEvent): void;
39
+ /**
40
+ * Change the active date and the range of displayed years.
41
+ * The windowOffset control the amount of ranges the view shall move forward or backward.
42
+ * The number of displayed years ia controlled by yearsToDisplay.
43
+ */
44
+ protected changeVisibleYearRange(windowOffset: number): void;
45
+ protected emitSelectedValue(selected: Date): void;
46
+ /**
47
+ * Determine the year range start and end year.
48
+ * - Based on the active date this function will find the start and
49
+ * ending year of the current displayed range.
50
+ * - In case the focusedDate is either before or after the current range the
51
+ * start and end year will move the entire window (yearsToDisplay)
52
+ */
53
+ private initYearRange;
54
+ /**
55
+ * Initialize view based on the focusedDate.
56
+ */
57
+ private initView;
58
+ /**
59
+ * Add offset to year and update focusedDate.
60
+ * If the new year is outside min/max date the year will set to the closest year in range.
61
+ */
62
+ private setYearOffset;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<SiYearSelectionComponent, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<SiYearSelectionComponent, "si-year-selection", never, { "focusedDate": { "alias": "focusedDate"; "required": true; "isSignal": true; }; }, { "focusedDate": "focusedDateChange"; "yearRangeChange": "yearRangeChange"; }, never, never, true, never>;
65
+ }
@@ -0,0 +1,302 @@
1
+ import { WeekStart } from './si-datepicker.model';
2
+ export interface DayOfWeek {
3
+ id: string;
4
+ index: number;
5
+ offset: number;
6
+ isWeekend: boolean;
7
+ }
8
+ export declare const WEEK_START_OFFSET: {
9
+ monday: number;
10
+ saturday: number;
11
+ sunday: number;
12
+ };
13
+ export declare const getDaysOfWeek: (weekStart: WeekStart) => DayOfWeek[];
14
+ /**
15
+ * Get local specific months using DateTimeFormat.
16
+ * @param locale - current locale
17
+ */
18
+ export declare const getLocaleMonthNames: (locale: string) => string[];
19
+ /**
20
+ * Get local specific weekdays as string using DateTimeFormat.
21
+ * @param locale - current local
22
+ * @param weekStart - start of the week
23
+ * @param format - display format
24
+ * @returns array of week days.
25
+ */
26
+ export declare const getDayStrings: (locale: string, weekStart?: WeekStart, format?: "narrow" | "short" | "long") => string[];
27
+ /**
28
+ * Gets the first day in the specified month.
29
+ * Expects the month as a value between 1 and 12.
30
+ * The year is required to handle leap years.
31
+ *
32
+ * @returns The first day of the month as a Date.
33
+ */
34
+ export declare const getFirstDayInMonth: (year: number, month: number) => Date;
35
+ /**
36
+ * Gets the week number of the specified date.
37
+ * Week number according to the ISO-8601 standard, weeks starting on Monday.
38
+ * The first week of a year is the week that contains the first Thursday of the year (='First 4-day week').
39
+ * The highest week number in a year is either 52 or 53.
40
+ *
41
+ * @param date -The JavaScript date object.
42
+ * @param weekStart -Name of the first day of the week
43
+ * @returns The number of the Week
44
+ */
45
+ export declare const getWeekOfYear: (date: Date, weekStart: WeekStart) => number;
46
+ export declare const getWeekDayOffset: (date: Date, weekStart: WeekStart) => number;
47
+ /** returns the date string in format YYYY-MM-DD for given date */
48
+ export declare const getStringforDate: (date: Date) => string;
49
+ /**
50
+ * Creates a new date object on from a date with or without time.
51
+ * @param value - The date from with the year, month and day is taken.
52
+ * @param hours - Optional numeric value of the hours, otherwise 0.
53
+ * @param minutes - Optional numeric value of the minutes, otherwise 0.
54
+ * @param seconds - Optional numeric value of the seconds, otherwise 0.
55
+ * @param milliseconds - Optional numeric value of the milliseconds, otherwise 0.
56
+ * @returns
57
+ */
58
+ export declare const createDate: (value: Date, hours?: number, minutes?: number, seconds?: number, milliseconds?: number) => Date;
59
+ /**
60
+ * @param input - String containing a date or dateTime value (Ex. "05/15/2020"
61
+ * @param format - Format of the input value (Ex. "M/d/YYYY")
62
+ * @param locale - Locale of the input value
63
+ * @returns A JS Date in accordance of the three parameters
64
+ */
65
+ export declare const parseDate: (input: string, format: string, locale: string) => Date | undefined;
66
+ export declare const getNamedFormat: (locale: string, format: string) => string;
67
+ export declare const getDateWithoutTime: (date: Date) => Date;
68
+ /**
69
+ * Get today
70
+ * @returns date of today
71
+ */
72
+ export declare const today: () => Date;
73
+ /**
74
+ * Calculate a new date based on the offset while considering the min and max date.
75
+ * @param current - input date.
76
+ * @param daysOffset - numeric offset of days.
77
+ * @returns new date if the range is valid or original date
78
+ */
79
+ export declare const addDaysInRange: (current: Date, daysOffset: number, minDate?: Date, maxDate?: Date) => Date;
80
+ /**
81
+ * Get date delta based on the offset.
82
+ * @param date - source date object.
83
+ * @param days - numeric offset of days.
84
+ * @returns new date.
85
+ */
86
+ export declare const addDays: (date: Date, days: number) => Date;
87
+ /**
88
+ * Update date/day of give date without changing the month.
89
+ * In case the day exceed the number of days in the current month the last day in month will be assigned.
90
+ * @param date - the date object to update the day.
91
+ * @param day - the day which shall be set.
92
+ * @returns the updated date object.
93
+ */
94
+ export declare const changeDay: (date: Date, day: number) => Date;
95
+ /**
96
+ * Get date delta specifically for months based on the offset.
97
+ * @param current - starting date.
98
+ * @param monthsOffset - numeric offset of months.
99
+ * @param minDate - optional minimum allowed date.
100
+ * @param maxDate - optional maximum allowed date.
101
+ * @returns a new date object with the updated month.
102
+ */
103
+ export declare const addMonthsInRange: (current: Date, monthsOffset: number, minDate?: Date, maxDate?: Date) => Date;
104
+ /**
105
+ * Get date delta specifically for years based on the offset.
106
+ * @param current - starting date.
107
+ * @param yearsOffset - numeric offset of years.
108
+ * @param minDate - optional minimum allowed date.
109
+ * @param maxDate - optional maximum allowed date.
110
+ * @returns a new date object with the updated year.
111
+ */
112
+ export declare const addYearsInRange: (current: Date, yearsOffset: number, minDate?: Date, maxDate?: Date) => Date;
113
+ /**
114
+ * Get number of days for the given month and year.
115
+ * @param month - month as number (0..11).
116
+ * @param year - year as number.
117
+ * @returns the number of days for the given month.
118
+ */
119
+ export declare const daysInMonth: (month: number, year: number) => number;
120
+ /**
121
+ * Get the first date of the week based on the input date.
122
+ * @param current - a date object from where the last date of a week is derived.
123
+ * @param weekStartDay - optional when a week shall start.
124
+ * @returns a new date object which is the start of the current week.
125
+ */
126
+ export declare const getWeekStartDate: (current: Date, weekStartDay?: WeekStart) => Date;
127
+ /**
128
+ * Get the last date of the week based on the input date.
129
+ * @param current - a date object from where the last date of a week is derived.
130
+ * @param weekStartDay - optional when a week shall start.
131
+ * @returns the last date within the week.
132
+ */
133
+ export declare const getWeekEndDate: (current: Date, weekStartDay?: WeekStart) => Date;
134
+ /**
135
+ * Get the beginning of the month.
136
+ * @param current - a date object from where the first date in a month is derived.
137
+ * @returns a new date object which starts a the first.
138
+ */
139
+ export declare const getFirstDateInMonth: (current: Date) => Date;
140
+ /**
141
+ * Get the last date of the month.
142
+ * @param current - a date object from where we derive the last date in a month.
143
+ * @returns a new date object which is the last day in the current month.
144
+ */
145
+ export declare const getLastDateInMonth: (current: Date) => Date;
146
+ /**
147
+ * Get the beginning of the year.
148
+ * @param current - a date object from where the first date in a year is derived.
149
+ * @returns a new date object which starts a the first.
150
+ */
151
+ export declare const getFirstDateInYear: (current: Date) => Date;
152
+ /**
153
+ * Are the two dates identical without considering time.
154
+ */
155
+ export declare const isSameDate: (current: Date, compareTo?: Date) => boolean;
156
+ /**
157
+ * Are the two months identical without considering time.
158
+ */
159
+ export declare const isSameMonth: (current: Date, compareTo?: Date) => boolean;
160
+ /**
161
+ * Are the two years identical.
162
+ */
163
+ export declare const isSameYear: (current: Date, compareTo?: Date) => boolean;
164
+ /**
165
+ * Compares two dates.
166
+ * @param first - The first date to compare.
167
+ * @param second - The second date to compare.
168
+ * @returns 0 if the dates are equal, a number less than 0 if the first date is earlier,
169
+ * a number greater than 0 if the first date is later.
170
+ */
171
+ export declare const compareDate: (first: Date, second: Date) => number;
172
+ /**
173
+ * Compares two months.
174
+ * @param first - The first month to compare.
175
+ * @param second - The second month to compare.
176
+ * @returns 0 if the months are equal, a number less than 0 if the first month is earlier,
177
+ * a number greater than 0 if the first month is later.
178
+ */
179
+ export declare const compareMonth: (first: Date, second: Date) => number;
180
+ /**
181
+ * Compares two years.
182
+ * @param first - The first year to compare.
183
+ * @param second - The second year to compare.
184
+ * @returns 0 if the years are equal, a number less than 0 if the first year is earlier,
185
+ * a number greater than 0 if the first year is later.
186
+ */
187
+ export declare const compareYear: (first: Date, second: Date) => number;
188
+ /**
189
+ * Compare the current date is the same date or between start and end date.
190
+ * @param current - the date object.
191
+ * @param from - optional min date, if no value is provided we assume true for the min value.
192
+ * @param to - optional max date, if no value is provided we assume true for the max value.
193
+ * @returns true if the date is in the provided range.
194
+ */
195
+ export declare const isSameOrBetween: (current: Date, from?: Date, to?: Date) => boolean;
196
+ /**
197
+ * Compare the current month is the same month or between start and end month.
198
+ * @param current - the month object.
199
+ * @param from - optional min month, if no value is provided we assume true for the min value.
200
+ * @param to - optional max month, if no value is provided we assume true for the max value.
201
+ * @returns true if the date is in the provided range.
202
+ */
203
+ export declare const isSameOrBetweenMonth: (current: Date, from?: Date, to?: Date) => boolean;
204
+ /**
205
+ * Compare the current year is the same year or between start and end year.
206
+ * @param current - the year object.
207
+ * @param from - optional min year, if no value is provided we assume true for the min value.
208
+ * @param to - optional max year, if no value is provided we assume true for the max value.
209
+ * @returns true if the date is in the provided range.
210
+ */
211
+ export declare const isSameOrBetweenYears: (current: Date, from?: Date, to?: Date) => boolean;
212
+ /**
213
+ * Compare the current date is between start and end date.
214
+ * from \< current \< to
215
+ */
216
+ export declare const isBetween: (current: Date, from?: Date, to?: Date) => boolean;
217
+ /**
218
+ * Compare the current month is between start and end month.
219
+ * from \< current \< to
220
+ */
221
+ export declare const isBetweenMonth: (current: Date, from?: Date, to?: Date) => boolean;
222
+ /**
223
+ * Compare the current year is between start and end year.
224
+ * from \< current \< to
225
+ */
226
+ export declare const isBetweenYears: (current: Date, from?: Date, to?: Date) => boolean;
227
+ /**
228
+ * Is first date after the second date (without considering the time).
229
+ * current \> compareTo
230
+ */
231
+ export declare const isAfter: (current: Date, compareTo: Date) => boolean;
232
+ /**
233
+ * Is first month after the second month (without considering the time).
234
+ * current \> compareTo
235
+ */
236
+ export declare const isAfterMonth: (current: Date, compareTo: Date) => boolean;
237
+ /**
238
+ * Is first year after the second year.
239
+ * current \> compareTo
240
+ */
241
+ export declare const isAfterYear: (current: Date, compareTo: Date) => boolean;
242
+ /**
243
+ * Is first date equal or before the second date (without considering the time).
244
+ * current \>= compareTo
245
+ */
246
+ export declare const isSameOrBefore: (current: Date, compareTo: Date) => boolean;
247
+ /**
248
+ * Is first month equal or before the second month.
249
+ * current \>= compareTo
250
+ */
251
+ export declare const isSameOrBeforeMonth: (current: Date, compareTo: Date) => boolean;
252
+ /**
253
+ * Is first year equal or before the second year.
254
+ * current \>= compareTo
255
+ */
256
+ export declare const isSameOrBeforeYear: (current: Date, compareTo: Date) => boolean;
257
+ /**
258
+ * Are the two dates in different months.
259
+ */
260
+ export declare const isAnotherMonth: (current: Date, compareTo: Date) => boolean;
261
+ /**
262
+ * Are the two dates in different years.
263
+ */
264
+ export declare const isAnotherYear: (current: Date, compareTo: Date) => boolean;
265
+ /**
266
+ * Are the two dates either in different months or years.
267
+ */
268
+ export declare const isAnotherMonthOrYear: (current: Date, compareTo: Date) => boolean;
269
+ /**
270
+ * Get a date which is in within the range and the close to current.
271
+ */
272
+ export declare const getDateSameOrBetween: (current: Date, minDate?: Date, maxDate?: Date) => Date;
273
+ /**
274
+ * Get date or absolute min date.
275
+ * @param date - input date.
276
+ * @returns date or date of 1.1.1900
277
+ */
278
+ export declare const getMinDate: (date?: Date) => Date;
279
+ /**
280
+ * Get date or absolute max date.
281
+ * @param date - input date.
282
+ * @returns date or date of 31.12.2154
283
+ */
284
+ export declare const getMaxDate: (date?: Date) => Date;
285
+ /**
286
+ * Is valid date object.
287
+ */
288
+ export declare const isValid: (date?: Date) => date is NonNullable<Date>;
289
+ /**
290
+ * Returns the next months of the given date.
291
+ * @param date - The date for which the next month is returned.
292
+ * @returns A date of the first day of the following month of the given day.
293
+ */
294
+ export declare const nextMonth: (date: Date) => Date;
295
+ /**
296
+ * Returns the last day of the previous month of the given date object.
297
+ * @param date - The date for which the previous month is returned.
298
+ * @returns A date of the last day of the previous month of the given day.
299
+ */
300
+ export declare const previousMonth: (date: Date) => Date;
301
+ export declare const minDate: (first?: Date, second?: Date) => Date | undefined;
302
+ export declare const maxDate: (first?: Date, second?: Date) => Date | undefined;
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Copyright Siemens 2016 - 2025.
3
+ * SPDX-License-Identifier: MIT
4
+ */
5
+ export * from './si-datepicker.model';
6
+ export * from './si-date-input.directive';
7
+ export * from './si-datepicker.directive';
8
+ export * from './si-datepicker.component';
9
+ export * from './si-datepicker-overlay.directive';
10
+ export * from './si-timepicker.component';
11
+ export * from './si-date-range.component';
12
+ export * from './si-datepicker-overlay.component';
13
+ export * from './si-calendar-button.component';
14
+ export * from './si-datepicker.module';
15
+ export * from './date-time-helper';
@@ -0,0 +1,3 @@
1
+ {
2
+ "module": "../fesm2022/siemens-element-ng-datepicker.mjs"
3
+ }
@@ -0,0 +1,49 @@
1
+ import { AfterContentInit, DoCheck, ElementRef, OnInit } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import { SiDatepickerOverlayDirective } from './si-datepicker-overlay.directive';
4
+ import { SiDatepickerDirective } from './si-datepicker.directive';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Calendar toggle button used in combination with a datepicker directive.
8
+ *
9
+ * @example
10
+ * ```
11
+ * <si-calendar-button class="w-100">
12
+ * <input
13
+ * class="form-control"
14
+ * type="text"
15
+ * siDatepicker
16
+ * [siDatepickerConfig]="config"
17
+ * />
18
+ * </si-calendar-button>
19
+ * ```
20
+ */
21
+ export declare class SiCalendarButtonComponent implements OnInit, AfterContentInit, DoCheck {
22
+ /**
23
+ * Aria label for the calendar toggle button.
24
+ *
25
+ * @defaultValue
26
+ * ```
27
+ * $localize`:@@SI_DATEPICKER.CALENDAR_TOGGLE_BUTTON:Open calendar`
28
+ * ```
29
+ */
30
+ readonly ariaLabel: import("@angular/core").InputSignal<import("@siemens/element-translate-ng/translate").TranslatableString>;
31
+ protected readonly button: import("@angular/core").Signal<ElementRef<HTMLButtonElement>>;
32
+ /** Datepicker input directive instance used to watch for state changes and required to open the calendar. */
33
+ protected readonly datepicker: import("@angular/core").Signal<SiDatepickerDirective>;
34
+ protected readonly datepickerOverlay: import("@angular/core").Signal<SiDatepickerOverlayDirective>;
35
+ protected readonly ngControl: import("@angular/core").Signal<NgControl | undefined>;
36
+ protected readonly disabled: import("@angular/core").WritableSignal<boolean>;
37
+ protected readonly icons: Record<"elementCalendar", string>;
38
+ private readonly destroyerRef;
39
+ private readonly focusMonitor;
40
+ private readonly elementRef;
41
+ private readonly showValidationMessages;
42
+ ngOnInit(): void;
43
+ ngDoCheck(): void;
44
+ ngAfterContentInit(): void;
45
+ protected show(): void;
46
+ private updateState;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<SiCalendarButtonComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<SiCalendarButtonComponent, "si-calendar-button", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, ["datepicker", "datepickerOverlay", "ngControl"], ["*"], true, never>;
49
+ }