@siemens/element-ng 47.2.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.
- package/README.md +18 -6
- package/autocomplete/index.d.ts +8 -0
- package/autocomplete/package.json +3 -0
- package/autocomplete/si-autocomplete-listbox.directive.d.ts +31 -0
- package/autocomplete/si-autocomplete-option.directive.d.ts +31 -0
- package/autocomplete/si-autocomplete.directive.d.ts +14 -0
- package/autocomplete/si-autocomplete.model.d.ts +7 -0
- package/autocomplete/si-autocomplete.module.d.ts +9 -0
- package/badge/index.d.ts +5 -0
- package/badge/package.json +3 -0
- package/badge/si-badge.component.d.ts +17 -0
- package/breadcrumb/breadcrumb-item.model.d.ts +36 -0
- package/breadcrumb/index.d.ts +7 -0
- package/breadcrumb/package.json +3 -0
- package/breadcrumb/si-breadcrumb-item-template.directive.d.ts +10 -0
- package/breadcrumb/si-breadcrumb.component.d.ts +46 -0
- package/breadcrumb/si-breadcrumb.module.d.ts +7 -0
- package/card/index.d.ts +6 -0
- package/card/package.json +3 -0
- package/card/si-card.component.d.ts +79 -0
- package/card/si-card.module.d.ts +7 -0
- package/circle-status/index.d.ts +6 -0
- package/circle-status/package.json +3 -0
- package/circle-status/si-circle-status.component.d.ts +66 -0
- package/circle-status/si-circle-status.module.d.ts +7 -0
- package/column-selection-dialog/column-selection-editor/si-column-selection-editor.component.d.ts +23 -0
- package/column-selection-dialog/index.d.ts +6 -0
- package/column-selection-dialog/package.json +3 -0
- package/column-selection-dialog/si-column-selection-dialog.component.d.ts +114 -0
- package/column-selection-dialog/si-column-selection-dialog.service.d.ts +20 -0
- package/column-selection-dialog/si-column-selection-dialog.types.d.ts +68 -0
- package/common/models/status-type.model.d.ts +2 -2
- package/content-action-bar/index.d.ts +7 -0
- package/content-action-bar/package.json +3 -0
- package/content-action-bar/si-content-action-bar-toggle.component.d.ts +6 -0
- package/content-action-bar/si-content-action-bar.component.d.ts +72 -0
- package/content-action-bar/si-content-action-bar.model.d.ts +9 -0
- package/content-action-bar/si-content-action-bar.module.d.ts +7 -0
- package/date-range-filter/index.d.ts +8 -0
- package/date-range-filter/package.json +3 -0
- package/date-range-filter/si-date-range-calculation.service.d.ts +33 -0
- package/date-range-filter/si-date-range-filter.component.d.ts +248 -0
- package/date-range-filter/si-date-range-filter.module.d.ts +7 -0
- package/date-range-filter/si-date-range-filter.types.d.ts +40 -0
- package/date-range-filter/si-relative-date.component.d.ts +31 -0
- package/datepicker/components/si-calendar-body.component.d.ts +137 -0
- package/datepicker/components/si-calendar-date-cell.directive.d.ts +16 -0
- package/datepicker/components/si-calendar-direction-button.component.d.ts +18 -0
- package/datepicker/components/si-compare-adapter.d.ts +37 -0
- package/datepicker/components/si-day-selection.component.d.ts +76 -0
- package/datepicker/components/si-initial-focus.component.d.ts +74 -0
- package/datepicker/components/si-month-selection.component.d.ts +62 -0
- package/datepicker/components/si-year-selection.component.d.ts +65 -0
- package/datepicker/date-time-helper.d.ts +302 -0
- package/datepicker/index.d.ts +15 -0
- package/datepicker/package.json +3 -0
- package/datepicker/si-calendar-button.component.d.ts +49 -0
- package/datepicker/si-date-input.directive.d.ts +114 -0
- package/datepicker/si-date-range.component.d.ts +150 -0
- package/datepicker/si-datepicker-overlay.component.d.ts +82 -0
- package/datepicker/si-datepicker-overlay.directive.d.ts +104 -0
- package/datepicker/si-datepicker.component.d.ts +228 -0
- package/datepicker/si-datepicker.directive.d.ts +62 -0
- package/datepicker/si-datepicker.model.d.ts +129 -0
- package/datepicker/si-datepicker.module.d.ts +12 -0
- package/datepicker/si-timepicker.component.d.ts +214 -0
- package/electron-titlebar/electron.helpers.d.ts +5 -0
- package/electron-titlebar/index.d.ts +7 -0
- package/electron-titlebar/package.json +3 -0
- package/electron-titlebar/si-electron-titlebar.component.d.ts +72 -0
- package/electron-titlebar/si-electron-titlebar.module.d.ts +7 -0
- package/fesm2022/siemens-element-ng-application-header.mjs +2 -2
- package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-autocomplete.mjs +235 -0
- package/fesm2022/siemens-element-ng-autocomplete.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-badge.mjs +59 -0
- package/fesm2022/siemens-element-ng-badge.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-breadcrumb.mjs +302 -0
- package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-card.mjs +122 -0
- package/fesm2022/siemens-element-ng-card.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-circle-status.mjs +146 -0
- package/fesm2022/siemens-element-ng-circle-status.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs +369 -0
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-common.mjs +1 -1
- package/fesm2022/siemens-element-ng-common.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-content-action-bar.mjs +200 -0
- package/fesm2022/siemens-element-ng-content-action-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-date-range-filter.mjs +649 -0
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-datepicker.mjs +4231 -0
- package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs +142 -0
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-file-uploader.mjs +751 -0
- package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-filter-bar.mjs +153 -0
- package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-form.mjs +827 -0
- package/fesm2022/siemens-element-ng-form.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-icon-status.mjs +65 -0
- package/fesm2022/siemens-element-ng-icon-status.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-icon.mjs +22 -2
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-info-page.mjs +63 -0
- package/fesm2022/siemens-element-ng-info-page.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-inline-notification.mjs +4 -6
- package/fesm2022/siemens-element-ng-inline-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-ip-input.mjs +451 -0
- package/fesm2022/siemens-element-ng-ip-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-language-switcher.mjs +90 -0
- package/fesm2022/siemens-element-ng-language-switcher.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-localization.mjs +306 -0
- package/fesm2022/siemens-element-ng-localization.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-number-input.mjs +267 -0
- package/fesm2022/siemens-element-ng-number-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-password-strength.mjs +177 -0
- package/fesm2022/siemens-element-ng-password-strength.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-photo-upload.mjs +480 -0
- package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-pills-input.mjs +397 -0
- package/fesm2022/siemens-element-ng-pills-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-popover-next.mjs +259 -0
- package/fesm2022/siemens-element-ng-popover-next.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-popover.mjs +256 -0
- package/fesm2022/siemens-element-ng-popover.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-progressbar.mjs +83 -0
- package/fesm2022/siemens-element-ng-progressbar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-search-bar.mjs +193 -0
- package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-select.mjs +1166 -0
- package/fesm2022/siemens-element-ng-select.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-skip-links.mjs +117 -0
- package/fesm2022/siemens-element-ng-skip-links.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-slider.mjs +313 -0
- package/fesm2022/siemens-element-ng-slider.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-sort-bar.mjs +89 -0
- package/fesm2022/siemens-element-ng-sort-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-split.mjs +575 -0
- package/fesm2022/siemens-element-ng-split.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-status-toggle.mjs +196 -0
- package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-summary-widget.mjs +77 -0
- package/fesm2022/siemens-element-ng-summary-widget.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-system-banner.mjs +47 -0
- package/fesm2022/siemens-element-ng-system-banner.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-tabs.mjs +395 -0
- package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-toast-notification.mjs +227 -0
- package/fesm2022/siemens-element-ng-toast-notification.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-typeahead.mjs +746 -0
- package/fesm2022/siemens-element-ng-typeahead.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs +76 -0
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-wizard.mjs +465 -0
- package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -0
- package/file-uploader/index.d.ts +8 -0
- package/file-uploader/package.json +3 -0
- package/file-uploader/si-file-dropzone.component.d.ts +106 -0
- package/file-uploader/si-file-uploader.component.d.ts +296 -0
- package/file-uploader/si-file-uploader.model.d.ts +12 -0
- package/file-uploader/si-file-uploader.module.d.ts +8 -0
- package/filter-bar/filter.d.ts +26 -0
- package/filter-bar/index.d.ts +8 -0
- package/filter-bar/package.json +3 -0
- package/filter-bar/si-filter-bar.component.d.ts +65 -0
- package/filter-bar/si-filter-bar.module.d.ts +7 -0
- package/filter-bar/si-filter-pill.component.d.ts +20 -0
- package/form/form-fieldset/si-form-fieldset.component.d.ts +40 -0
- package/form/index.d.ts +14 -0
- package/form/package.json +3 -0
- package/form/si-form-container/si-form-container.component.d.ts +155 -0
- package/form/si-form-item/si-form-field-native.control.d.ts +22 -0
- package/form/si-form-item/si-form-item.component.d.ts +90 -0
- package/form/si-form-item-control-input.directive.d.ts +18 -0
- package/form/si-form-item.control.d.ts +35 -0
- package/form/si-form-validation-error.model.d.ts +55 -0
- package/form/si-form-validation-error.provider.d.ts +11 -0
- package/form/si-form-validation-error.service.d.ts +42 -0
- package/form/si-form-validation-tooltip/si-form-validation-tooltip.component.d.ts +13 -0
- package/form/si-form-validation-tooltip/si-form-validation-tooltip.directive.d.ts +42 -0
- package/form/si-form.module.d.ts +25 -0
- package/icon/element-icons.d.ts +20 -0
- package/icon-status/index.d.ts +6 -0
- package/icon-status/package.json +3 -0
- package/icon-status/si-icon-status.component.d.ts +24 -0
- package/icon-status/si-icon-status.module.d.ts +7 -0
- package/info-page/index.d.ts +5 -0
- package/info-page/package.json +3 -0
- package/info-page/si-info-page.component.d.ts +38 -0
- package/inline-notification/si-inline-notification.component.d.ts +0 -2
- package/ip-input/address-utils.d.ts +28 -0
- package/ip-input/address-validators.d.ts +21 -0
- package/ip-input/index.d.ts +7 -0
- package/ip-input/package.json +3 -0
- package/ip-input/si-ip-input.directive.d.ts +53 -0
- package/ip-input/si-ip4-input.directive.d.ts +9 -0
- package/ip-input/si-ip6-input.directive.d.ts +10 -0
- package/language-switcher/index.d.ts +7 -0
- package/language-switcher/iso-language-value.d.ts +14 -0
- package/language-switcher/package.json +3 -0
- package/language-switcher/si-language-switcher.component.d.ts +32 -0
- package/language-switcher/si-language-switcher.module.d.ts +7 -0
- package/localization/index.d.ts +8 -0
- package/localization/package.json +3 -0
- package/localization/si-directionality.d.ts +41 -0
- package/localization/si-locale-id.d.ts +22 -0
- package/localization/si-locale-store.d.ts +16 -0
- package/localization/si-locale.service.d.ts +73 -0
- package/number-input/index.d.ts +6 -0
- package/number-input/package.json +3 -0
- package/number-input/si-number-input.component.d.ts +106 -0
- package/number-input/si-number-input.module.d.ts +7 -0
- package/package.json +163 -3
- package/password-strength/index.d.ts +7 -0
- package/password-strength/package.json +3 -0
- package/password-strength/si-password-strength.component.d.ts +25 -0
- package/password-strength/si-password-strength.directive.d.ts +54 -0
- package/password-strength/si-password-strength.module.d.ts +8 -0
- package/photo-upload/index.d.ts +6 -0
- package/photo-upload/package.json +3 -0
- package/photo-upload/si-image-cropper-style.component.d.ts +5 -0
- package/photo-upload/si-photo-upload.component.d.ts +298 -0
- package/pills-input/index.d.ts +9 -0
- package/pills-input/package.json +3 -0
- package/pills-input/si-input-pill.component.d.ts +9 -0
- package/pills-input/si-pills-input-csv.directive.d.ts +8 -0
- package/pills-input/si-pills-input-email.directive.d.ts +10 -0
- package/pills-input/si-pills-input-pattern-base.d.ts +19 -0
- package/pills-input/si-pills-input-value-handler.d.ts +12 -0
- package/pills-input/si-pills-input.component.d.ts +87 -0
- package/pills-input/si-pills-input.module.d.ts +9 -0
- package/popover/index.d.ts +6 -0
- package/popover/package.json +3 -0
- package/popover/si-popover.component.d.ts +26 -0
- package/popover/si-popover.directive.d.ts +89 -0
- package/popover/si-popover.module.d.ts +7 -0
- package/popover-next/index.d.ts +7 -0
- package/popover-next/package.json +3 -0
- package/popover-next/si-popover-description.directive.d.ts +7 -0
- package/popover-next/si-popover-next.directive.d.ts +61 -0
- package/popover-next/si-popover-title.directive.d.ts +7 -0
- package/popover-next/si-popover.component.d.ts +27 -0
- package/progressbar/index.d.ts +6 -0
- package/progressbar/package.json +3 -0
- package/progressbar/si-progressbar.component.d.ts +43 -0
- package/progressbar/si-progressbar.module.d.ts +7 -0
- package/search-bar/index.d.ts +6 -0
- package/search-bar/package.json +3 -0
- package/search-bar/si-search-bar.component.d.ts +87 -0
- package/search-bar/si-search-bar.module.d.ts +7 -0
- package/select/index.d.ts +18 -0
- package/select/options/si-select-complex-options.directive.d.ts +69 -0
- package/select/options/si-select-lazy-options.directive.d.ts +38 -0
- package/select/options/si-select-option.source.d.ts +49 -0
- package/select/options/si-select-options-strategy.base.d.ts +35 -0
- package/select/options/si-select-options-strategy.d.ts +37 -0
- package/select/options/si-select-simple-options.directive.d.ts +34 -0
- package/select/package.json +3 -0
- package/select/select-input/si-select-input.component.d.ts +43 -0
- package/select/select-list/si-select-list-has-filter.component.d.ts +20 -0
- package/select/select-list/si-select-list.base.d.ts +37 -0
- package/select/select-list/si-select-list.component.d.ts +15 -0
- package/select/select-option/si-select-option-row.component.d.ts +16 -0
- package/select/select-option/si-select-option.component.d.ts +9 -0
- package/select/selection/si-select-multi-value.directive.d.ts +26 -0
- package/select/selection/si-select-selection-strategy.d.ts +58 -0
- package/select/selection/si-select-single-value.directive.d.ts +26 -0
- package/select/si-select-action.directive.d.ts +12 -0
- package/select/si-select-actions.directive.d.ts +5 -0
- package/select/si-select-group-template.directive.d.ts +20 -0
- package/select/si-select-option-row-template.directive.d.ts +9 -0
- package/select/si-select-option-template.directive.d.ts +21 -0
- package/select/si-select.component.d.ts +96 -0
- package/select/si-select.module.d.ts +15 -0
- package/select/si-select.types.d.ts +65 -0
- package/skip-links/index.d.ts +5 -0
- package/skip-links/package.json +3 -0
- package/skip-links/si-skip-link-target.directive.d.ts +27 -0
- package/skip-links/si-skip-links.component.d.ts +9 -0
- package/skip-links/skip-link.service.d.ts +14 -0
- package/slider/index.d.ts +6 -0
- package/slider/package.json +3 -0
- package/slider/si-slider.component.d.ts +129 -0
- package/slider/si-slider.module.d.ts +7 -0
- package/sort-bar/index.d.ts +6 -0
- package/sort-bar/package.json +3 -0
- package/sort-bar/si-sort-bar.component.d.ts +42 -0
- package/sort-bar/si-sort-bar.module.d.ts +7 -0
- package/split/index.d.ts +8 -0
- package/split/package.json +3 -0
- package/split/si-split-part.component.d.ts +154 -0
- package/split/si-split.component.d.ts +48 -0
- package/split/si-split.interfaces.d.ts +17 -0
- package/split/si-split.module.d.ts +8 -0
- package/status-toggle/index.d.ts +6 -0
- package/status-toggle/package.json +3 -0
- package/status-toggle/si-status-toggle.component.d.ts +54 -0
- package/status-toggle/status-toggle.model.d.ts +26 -0
- package/summary-widget/index.d.ts +5 -0
- package/summary-widget/package.json +3 -0
- package/summary-widget/si-summary-widget.component.d.ts +44 -0
- package/system-banner/index.d.ts +5 -0
- package/system-banner/package.json +3 -0
- package/system-banner/system-banner.component.d.ts +23 -0
- package/tabs/index.d.ts +7 -0
- package/tabs/package.json +3 -0
- package/tabs/si-tab/index.d.ts +5 -0
- package/tabs/si-tab/si-tab.component.d.ts +58 -0
- package/tabs/si-tabs.module.d.ts +8 -0
- package/tabs/si-tabset/index.d.ts +5 -0
- package/tabs/si-tabset/si-tabset.component.d.ts +100 -0
- package/template-i18n.json +111 -1
- package/toast-notification/index.d.ts +6 -0
- package/toast-notification/package.json +3 -0
- package/toast-notification/si-toast-notification/si-toast-notification.component.d.ts +17 -0
- package/toast-notification/si-toast-notification-drawer/si-toast-notification-drawer.component.d.ts +9 -0
- package/toast-notification/si-toast-notification.service.d.ts +41 -0
- package/toast-notification/si-toast.model.d.ts +25 -0
- package/translate/si-translatable-keys.interface.d.ts +110 -0
- package/typeahead/index.d.ts +8 -0
- package/typeahead/package.json +3 -0
- package/typeahead/si-typeahead-item-template.directive.d.ts +7 -0
- package/typeahead/si-typeahead.component.d.ts +22 -0
- package/typeahead/si-typeahead.directive.d.ts +196 -0
- package/typeahead/si-typeahead.model.d.ts +60 -0
- package/typeahead/si-typeahead.module.d.ts +8 -0
- package/typeahead/si-typeahead.sorting.d.ts +10 -0
- package/unauthorized-page/index.d.ts +6 -0
- package/unauthorized-page/package.json +3 -0
- package/unauthorized-page/si-unauthorized-page.component.d.ts +35 -0
- package/unauthorized-page/si-unauthorized-page.module.d.ts +7 -0
- package/wizard/index.d.ts +7 -0
- package/wizard/package.json +3 -0
- package/wizard/si-wizard-step.component.d.ts +21 -0
- package/wizard/si-wizard.component.d.ts +196 -0
- package/wizard/si-wizard.module.d.ts +8 -0
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { AfterViewInit, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Cell } from './components/si-calendar-body.component';
|
|
3
|
+
import { SiDatepickerComponent } from './si-datepicker.component';
|
|
4
|
+
import { DatepickerConfig, DateRange } from './si-datepicker.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class SiDatepickerOverlayComponent implements OnChanges, OnInit, AfterViewInit, OnDestroy {
|
|
7
|
+
protected readonly minMonth: import("@angular/core").WritableSignal<Date | undefined>;
|
|
8
|
+
protected readonly maxMonth: import("@angular/core").WritableSignal<Date | undefined>;
|
|
9
|
+
protected readonly datepicker: import("@angular/core").Signal<SiDatepickerComponent>;
|
|
10
|
+
/**
|
|
11
|
+
* {@inheritDoc SiDatepickerComponent#initialFocus}
|
|
12
|
+
* @defaultValue false
|
|
13
|
+
*/
|
|
14
|
+
readonly initialFocus: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
15
|
+
/**
|
|
16
|
+
* {@inheritDoc SiDatepickerComponent#config}
|
|
17
|
+
* @defaultValue
|
|
18
|
+
* ```
|
|
19
|
+
* {}
|
|
20
|
+
* ```
|
|
21
|
+
*/
|
|
22
|
+
readonly config: import("@angular/core").InputSignal<DatepickerConfig>;
|
|
23
|
+
/**
|
|
24
|
+
* {@inheritDoc SiDatepickerComponent#date}
|
|
25
|
+
*/
|
|
26
|
+
readonly date: import("@angular/core").ModelSignal<Date | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* {@inheritDoc SiDatepickerComponent#dateRange}
|
|
29
|
+
*/
|
|
30
|
+
readonly dateRange: import("@angular/core").ModelSignal<DateRange | undefined>;
|
|
31
|
+
/**
|
|
32
|
+
* {@inheritDoc SiDatepickerComponent#rangeType}
|
|
33
|
+
*/
|
|
34
|
+
readonly rangeType: import("@angular/core").ModelSignal<"START" | "END" | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* {@inheritDoc SiDatepickerComponent#time12h}
|
|
37
|
+
* @defaultValue false
|
|
38
|
+
*/
|
|
39
|
+
readonly time12h: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
40
|
+
/**
|
|
41
|
+
* Emits an event to notify about disabling the time from the datepicker.
|
|
42
|
+
* When time is disable, we construct a pure date object in UTC 00:00:00 time.
|
|
43
|
+
*/
|
|
44
|
+
readonly disabledTimeChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
45
|
+
/**
|
|
46
|
+
* @deprecated Property provides internal information that should not be used.
|
|
47
|
+
*
|
|
48
|
+
* @defaultValue false
|
|
49
|
+
*/
|
|
50
|
+
isFocused: boolean;
|
|
51
|
+
private readonly document;
|
|
52
|
+
private readonly elementRef;
|
|
53
|
+
private readonly focusMonitor;
|
|
54
|
+
private readonly focusTrapFactory;
|
|
55
|
+
private focusTrap;
|
|
56
|
+
private previousActiveElement?;
|
|
57
|
+
protected disableTime: boolean;
|
|
58
|
+
protected activeHover?: Cell;
|
|
59
|
+
protected readonly isTwoMonthDateRange: import("@angular/core").Signal<boolean>;
|
|
60
|
+
protected readonly firstDatepickerConfig: import("@angular/core").WritableSignal<DatepickerConfig>;
|
|
61
|
+
protected readonly secondDatepickerConfig: import("@angular/core").WritableSignal<DatepickerConfig>;
|
|
62
|
+
/**
|
|
63
|
+
* Indicate that the overlay is opened in small screen.
|
|
64
|
+
* A modal dialog animation display when true and a wrapped two month calendar layout is displayed.
|
|
65
|
+
*
|
|
66
|
+
* @defaultValue false
|
|
67
|
+
*/
|
|
68
|
+
readonly isMobile: import("@angular/core").InputSignal<boolean>;
|
|
69
|
+
protected readonly completeAnimation: import("@angular/core").WritableSignal<boolean>;
|
|
70
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
71
|
+
ngOnInit(): void;
|
|
72
|
+
ngAfterViewInit(): void;
|
|
73
|
+
ngOnDestroy(): void;
|
|
74
|
+
/**
|
|
75
|
+
* Focus active cell in the current datepicker view.
|
|
76
|
+
*/
|
|
77
|
+
focusActiveCell(): void;
|
|
78
|
+
protected firstDatepickerFocusDateChange(newFocusedDate?: Date): void;
|
|
79
|
+
protected secondDatepickerFocusDateChange(newFocusedDate?: Date): void;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiDatepickerOverlayComponent, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiDatepickerOverlayComponent, "si-datepicker-overlay", never, { "initialFocus": { "alias": "initialFocus"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "dateRange": { "alias": "dateRange"; "required": false; "isSignal": true; }; "rangeType": { "alias": "rangeType"; "required": false; "isSignal": true; }; "time12h": { "alias": "time12h"; "required": false; "isSignal": true; }; "isMobile": { "alias": "isMobile"; "required": false; "isSignal": true; }; }, { "date": "dateChange"; "dateRange": "dateRangeChange"; "rangeType": "rangeTypeChange"; "disabledTimeChange": "disabledTimeChange"; }, never, never, true, never>;
|
|
82
|
+
}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
2
|
+
import { ComponentRef, OnDestroy } from '@angular/core';
|
|
3
|
+
import { SiDatepickerOverlayComponent } from './si-datepicker-overlay.component';
|
|
4
|
+
import { DatepickerConfig, DateRange } from './si-datepicker.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare enum CloseCause {
|
|
7
|
+
Backdrop = "backdrop",
|
|
8
|
+
Detach = "detach",
|
|
9
|
+
Escape = "escape",
|
|
10
|
+
Select = "select"
|
|
11
|
+
}
|
|
12
|
+
export type DatepickerInput = {
|
|
13
|
+
config: DatepickerConfig;
|
|
14
|
+
date: Date;
|
|
15
|
+
dateRange: DateRange;
|
|
16
|
+
rangeType: 'START' | 'END';
|
|
17
|
+
time12h: boolean;
|
|
18
|
+
showTime: true;
|
|
19
|
+
};
|
|
20
|
+
/** Partial datepicker inputs */
|
|
21
|
+
export type DatepickerInputPartial = Partial<DatepickerInput>;
|
|
22
|
+
/**
|
|
23
|
+
* Directive with the responsibility to open/close datepicker overlay.
|
|
24
|
+
*/
|
|
25
|
+
export declare class SiDatepickerOverlayDirective implements OnDestroy {
|
|
26
|
+
/**
|
|
27
|
+
* Position of the datepicker overlay. Accepts an array of positions or a single position.
|
|
28
|
+
* The position will be chosen based on the first position that fits into the viewport.
|
|
29
|
+
* The input is necessary since the positions between the siDatepicker directive and si-date-range
|
|
30
|
+
* component are different.
|
|
31
|
+
* @internal
|
|
32
|
+
*/
|
|
33
|
+
readonly placement: import("@angular/core").WritableSignal<"auto" | "top" | "start" | "end" | "bottom" | ConnectionPositionPair[]>;
|
|
34
|
+
/**
|
|
35
|
+
* Output event on closing datepicker e.g. by clicking backdrop or escape key.
|
|
36
|
+
*/
|
|
37
|
+
readonly siDatepickerClose: import("@angular/core").OutputEmitterRef<CloseCause>;
|
|
38
|
+
private overlayRef?;
|
|
39
|
+
private datepickerRef?;
|
|
40
|
+
private autoCloseSelection;
|
|
41
|
+
/** Guard for siDatepickerClose event emitter to make sure the cause is emitter just once */
|
|
42
|
+
private ignoreClose;
|
|
43
|
+
private readonly overlay;
|
|
44
|
+
private readonly triggerElementRef;
|
|
45
|
+
private readonly mediaMatcher;
|
|
46
|
+
private readonly breakpointObserver;
|
|
47
|
+
private readonly destroyRef;
|
|
48
|
+
/**
|
|
49
|
+
* When the media query matches on open the overlay is displayed like a modal dialog.
|
|
50
|
+
* In case, users change the screen size to the matching media query we close the overlay
|
|
51
|
+
* if it is open with a connected overlay strategy.
|
|
52
|
+
*/
|
|
53
|
+
private readonly smallScreenQuery;
|
|
54
|
+
ngOnDestroy(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Toggle open/close overlay.
|
|
57
|
+
* @param focus - move focus to the datepicker.
|
|
58
|
+
* @param inputs - for datepicker.
|
|
59
|
+
* @returns create datepicker overlay instance or undefined
|
|
60
|
+
*
|
|
61
|
+
* @deprecated Use {@link showOverlay} or {@link closeOverlay} instead.
|
|
62
|
+
*/
|
|
63
|
+
toggleOverlay(focus: boolean, inputs?: DatepickerInputPartial): ComponentRef<SiDatepickerOverlayComponent> | undefined;
|
|
64
|
+
/**
|
|
65
|
+
* Show datepicker overlay.
|
|
66
|
+
* @param focus - move focus to the datepicker.
|
|
67
|
+
* @returns create datepicker overlay instance
|
|
68
|
+
*/
|
|
69
|
+
showOverlay(focus?: boolean, inputs?: DatepickerInputPartial): ComponentRef<SiDatepickerOverlayComponent>;
|
|
70
|
+
/**
|
|
71
|
+
* Close datepicker.
|
|
72
|
+
*/
|
|
73
|
+
closeOverlay(): undefined;
|
|
74
|
+
/**
|
|
75
|
+
* Focus active cell in datepicker.
|
|
76
|
+
* @param focus - show transfer focus.
|
|
77
|
+
* @returns current instance.
|
|
78
|
+
*/
|
|
79
|
+
focus(focus?: boolean): this;
|
|
80
|
+
/** @deprecated Property provides internal information that should not be used. */
|
|
81
|
+
isFocused(): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Indicate the datepicker is visible.
|
|
84
|
+
* @returns is visible.
|
|
85
|
+
*/
|
|
86
|
+
isShown(): ComponentRef<SiDatepickerOverlayComponent> | undefined;
|
|
87
|
+
/** Set datepicker inputs */
|
|
88
|
+
setInputs(inputs?: DatepickerInputPartial): this;
|
|
89
|
+
/** Close overlay with cause select, which will recover the focus */
|
|
90
|
+
closeAfterSelection(): void;
|
|
91
|
+
/** Indicate whether the HTML element is a child of the datepicker overlay. */
|
|
92
|
+
contains(element: HTMLElement): boolean;
|
|
93
|
+
private showDatepicker;
|
|
94
|
+
protected createMobileOverlay(): void;
|
|
95
|
+
protected createDesktopOverlay(): void;
|
|
96
|
+
/**
|
|
97
|
+
* Merge events which shall close the overlay
|
|
98
|
+
* @param overlayRef - source for backdrop, detach or escape events.
|
|
99
|
+
* @returns merged observable
|
|
100
|
+
*/
|
|
101
|
+
private closeStream;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiDatepickerOverlayDirective, never>;
|
|
103
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiDatepickerOverlayDirective, "[siDatepickerOverlay]", ["siDatepickerOverlay"], {}, { "siDatepickerClose": "siDatepickerClose"; }, never, never, true, never>;
|
|
104
|
+
}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
import { AfterViewInit, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
3
|
+
import { Cell } from './components/si-calendar-body.component';
|
|
4
|
+
import { DatepickerConfig, DateRange, WeekStart } from './si-datepicker.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Choose which view shall be shown.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
type ViewType = 'week' | 'month' | 'year' | undefined;
|
|
11
|
+
export type RangeType = 'START' | 'END' | undefined;
|
|
12
|
+
export declare class SiDatepickerComponent implements OnInit, OnChanges, AfterViewInit {
|
|
13
|
+
private readonly locale;
|
|
14
|
+
/**
|
|
15
|
+
* The date which is currently focused
|
|
16
|
+
* Compare to the selected date or range the calendar requires to have one element to focus.
|
|
17
|
+
*/
|
|
18
|
+
readonly focusedDate: import("@angular/core").ModelSignal<Date | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* The selected date of the datepicker. Use for
|
|
21
|
+
* initialization and for bidirectional binding.
|
|
22
|
+
*/
|
|
23
|
+
readonly date: import("@angular/core").ModelSignal<Date | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* The selected date range of the datepicker. Use for
|
|
26
|
+
* initialization and for bidirectional binding.
|
|
27
|
+
*/
|
|
28
|
+
readonly dateRange: import("@angular/core").ModelSignal<DateRange | undefined>;
|
|
29
|
+
/** @internal */
|
|
30
|
+
readonly dateRangeRole: import("@angular/core").InputSignal<RangeType>;
|
|
31
|
+
/**
|
|
32
|
+
* Set initial focus to calendar body.
|
|
33
|
+
*
|
|
34
|
+
* @defaultValue false
|
|
35
|
+
*/
|
|
36
|
+
readonly initialFocus: import("@angular/core").InputSignal<boolean>;
|
|
37
|
+
/**
|
|
38
|
+
* Disabled the optional visible time picker.
|
|
39
|
+
*
|
|
40
|
+
* @defaultValue false
|
|
41
|
+
*/
|
|
42
|
+
readonly disabledTime: import("@angular/core").ModelSignal<boolean>;
|
|
43
|
+
/**
|
|
44
|
+
* Object to configure the datepicker.
|
|
45
|
+
*
|
|
46
|
+
* @defaultValue
|
|
47
|
+
* ```
|
|
48
|
+
* {}
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
readonly config: import("@angular/core").ModelSignal<DatepickerConfig>;
|
|
52
|
+
/**
|
|
53
|
+
* Aria label for the previous button. Needed for a11y.
|
|
54
|
+
*
|
|
55
|
+
* @defaultValue
|
|
56
|
+
* ```
|
|
57
|
+
* $localize`:@@SI_DATEPICKER.PREVIOUS:Previous`
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
readonly previousLabel: import("@angular/core").InputSignal<TranslatableString>;
|
|
61
|
+
/**
|
|
62
|
+
* Aria label for the next button. Needed for a11y.
|
|
63
|
+
*
|
|
64
|
+
* @defaultValue
|
|
65
|
+
* ```
|
|
66
|
+
* $localize`:@@SI_DATEPICKER.NEXT:Next`
|
|
67
|
+
* ```
|
|
68
|
+
*/
|
|
69
|
+
readonly nextLabel: import("@angular/core").InputSignal<TranslatableString>;
|
|
70
|
+
/**
|
|
71
|
+
* Aria label for week number column
|
|
72
|
+
*
|
|
73
|
+
* @defaultValue
|
|
74
|
+
* ```
|
|
75
|
+
* $localize`:@@SI_DATEPICKER.CALENDAR_WEEK_LABEL:Calendar week`
|
|
76
|
+
* ```
|
|
77
|
+
*/
|
|
78
|
+
readonly calenderWeekLabel: import("@angular/core").InputSignal<TranslatableString>;
|
|
79
|
+
/**
|
|
80
|
+
* Enable/disable 12H mode in timepicker. Defaults to locale
|
|
81
|
+
*
|
|
82
|
+
* @defaultValue undefined
|
|
83
|
+
*/
|
|
84
|
+
readonly time12h: import("@angular/core").InputSignalWithTransform<boolean | undefined, unknown>;
|
|
85
|
+
/**
|
|
86
|
+
* Use this to force date range operation to select either start date or end date.
|
|
87
|
+
*
|
|
88
|
+
* @defaultValue 'START'
|
|
89
|
+
*/
|
|
90
|
+
readonly rangeType: import("@angular/core").ModelSignal<RangeType>;
|
|
91
|
+
/**
|
|
92
|
+
* Optional input to control the minimum month the datepicker can show and the user can navigate.
|
|
93
|
+
* The `minMonth` can be larger than the `minDate` This option enables the usage of multiple
|
|
94
|
+
* datepickers next to each other while the more left calendar always
|
|
95
|
+
* shows a earlier month the the more right one.
|
|
96
|
+
* @internal
|
|
97
|
+
*/
|
|
98
|
+
readonly minMonth: import("@angular/core").InputSignal<Date | undefined>;
|
|
99
|
+
/**
|
|
100
|
+
* Optional input to control the maximum month the datepicker can show and the user can navigate.
|
|
101
|
+
* The `maxMonth` can be smaller than the `maxDate` This option enables the usage of multiple
|
|
102
|
+
* datepickers next to each other while the more left calendar always
|
|
103
|
+
* shows a earlier month the the more right one.
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
readonly maxMonth: import("@angular/core").InputSignal<Date | undefined>;
|
|
107
|
+
/**
|
|
108
|
+
* Option to hide the time switch.
|
|
109
|
+
*
|
|
110
|
+
* @defaultValue false
|
|
111
|
+
*/
|
|
112
|
+
readonly hideTimeToggle: import("@angular/core").InputSignal<boolean>;
|
|
113
|
+
/** @internal */
|
|
114
|
+
readonly hideCalendar: import("@angular/core").InputSignal<boolean>;
|
|
115
|
+
/**
|
|
116
|
+
* Optional timepicker label.
|
|
117
|
+
*/
|
|
118
|
+
readonly timepickerLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
119
|
+
protected get startDate(): Date | undefined;
|
|
120
|
+
protected get endDate(): Date | undefined;
|
|
121
|
+
/**
|
|
122
|
+
* Returns the date object if not range selection is enabled. Otherwise, if
|
|
123
|
+
* the date range role is 'END', the date range end date is returned. If
|
|
124
|
+
* date range role is not 'END', the date range start date is returned.
|
|
125
|
+
*/
|
|
126
|
+
private getRelevantDate;
|
|
127
|
+
private readonly defaultDisabledTimeText;
|
|
128
|
+
private readonly defaultEnableTimeText;
|
|
129
|
+
protected readonly includeTimeLabel: import("@angular/core").Signal<TranslatableString>;
|
|
130
|
+
protected get weekStartDay(): WeekStart;
|
|
131
|
+
protected get hideWeekNumbers(): boolean;
|
|
132
|
+
/**
|
|
133
|
+
* The active view
|
|
134
|
+
*/
|
|
135
|
+
protected readonly view: import("@angular/core").WritableSignal<ViewType>;
|
|
136
|
+
/**
|
|
137
|
+
* Get the current shown view.
|
|
138
|
+
*/
|
|
139
|
+
private readonly activeView;
|
|
140
|
+
protected readonly actualFocusedDate: import("@angular/core").Signal<Date>;
|
|
141
|
+
protected readonly requireFocus: import("@angular/core").WritableSignal<boolean>;
|
|
142
|
+
/** When the user switch from the year or month view via keyboard selection we force the focus. */
|
|
143
|
+
protected readonly forceFocus: import("@angular/core").Signal<boolean>;
|
|
144
|
+
protected months: string[];
|
|
145
|
+
protected switchId: string;
|
|
146
|
+
protected timepickerId: string;
|
|
147
|
+
/**
|
|
148
|
+
* Configuration which view shall be shown after year selection,
|
|
149
|
+
* when onlyMonthSelection is enabled the month view is shown otherwise the week view.
|
|
150
|
+
*/
|
|
151
|
+
protected yearViewSwitchTo: 'month' | 'week';
|
|
152
|
+
protected monthViewSwitchTo: 'month' | 'week';
|
|
153
|
+
private readonly cdRef;
|
|
154
|
+
private readonly localeWeekStart;
|
|
155
|
+
/**
|
|
156
|
+
* Date object to track and change the time. Keeping time and date
|
|
157
|
+
* in separate objects to not change the date when flipping time.
|
|
158
|
+
* After change, a new date object is created with an adapted time.
|
|
159
|
+
*/
|
|
160
|
+
protected time?: Date;
|
|
161
|
+
/**
|
|
162
|
+
* Used to hold the last time when setting the time to disabled.
|
|
163
|
+
* Value will be reset on enabling the time again.
|
|
164
|
+
*/
|
|
165
|
+
private previousTime?;
|
|
166
|
+
private readonly timePicker;
|
|
167
|
+
/** Reference to the current day selection component. Shown when view === 'week' */
|
|
168
|
+
private readonly daySelection;
|
|
169
|
+
/** Reference to the current month selection component. Shown when view === 'month' */
|
|
170
|
+
private readonly monthSelection;
|
|
171
|
+
/** Reference to the current year selection component. Shown when view === 'year' */
|
|
172
|
+
private readonly yearSelection;
|
|
173
|
+
/**
|
|
174
|
+
* The cell which which has the mouse hover.
|
|
175
|
+
* @internal
|
|
176
|
+
*/
|
|
177
|
+
readonly activeHover: import("@angular/core").ModelSignal<Cell | undefined>;
|
|
178
|
+
constructor();
|
|
179
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
180
|
+
ngOnInit(): void;
|
|
181
|
+
ngAfterViewInit(): void;
|
|
182
|
+
/** Initialize day and month labels */
|
|
183
|
+
private initCalendarLabels;
|
|
184
|
+
/**
|
|
185
|
+
* Validates and sets a new date to the this.date model object of this component
|
|
186
|
+
* and fires the related events. The model object shall not be updated elsewhere
|
|
187
|
+
* with a new date object. Shall only be called on simple date selection and not
|
|
188
|
+
* on date range selection.
|
|
189
|
+
*
|
|
190
|
+
* @param newDate - The new date to be set.
|
|
191
|
+
*/
|
|
192
|
+
private setDate;
|
|
193
|
+
/**
|
|
194
|
+
* Validates and sets the new date range to the dateRange model
|
|
195
|
+
* object.
|
|
196
|
+
* @param newDateRange - The new range to be set.
|
|
197
|
+
* @returns True if the new range is valid and set. Otherwise false.
|
|
198
|
+
*/
|
|
199
|
+
private setDateRange;
|
|
200
|
+
protected timeSelected(newTime: Date): void;
|
|
201
|
+
protected toggleDisabledTime(): void;
|
|
202
|
+
private onDisabledTimeChanged;
|
|
203
|
+
private validateTime;
|
|
204
|
+
/**
|
|
205
|
+
* Handle selection in the day view.
|
|
206
|
+
* @param selection - selected date.
|
|
207
|
+
*/
|
|
208
|
+
protected selectionChange(selection: Date): void;
|
|
209
|
+
/**
|
|
210
|
+
* Handle month/year changes
|
|
211
|
+
* @param selection - the selected month or null of cancelled.
|
|
212
|
+
*/
|
|
213
|
+
protected activeMonthChange(selection: Date | null): void;
|
|
214
|
+
/**
|
|
215
|
+
* Handle year changes
|
|
216
|
+
* @param selection - the selected year or null of cancelled.
|
|
217
|
+
*/
|
|
218
|
+
protected activeYearChange(selection: Date | null): void;
|
|
219
|
+
/**
|
|
220
|
+
* Focus the active cell in view.
|
|
221
|
+
* The function is required to transfer the focus from input to the active date cell.
|
|
222
|
+
*/
|
|
223
|
+
focusActiveCell(): void;
|
|
224
|
+
protected onActiveHoverChange(event?: Cell): void;
|
|
225
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiDatepickerComponent, never>;
|
|
226
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiDatepickerComponent, "si-datepicker", never, { "focusedDate": { "alias": "focusedDate"; "required": false; "isSignal": true; }; "date": { "alias": "date"; "required": false; "isSignal": true; }; "dateRange": { "alias": "dateRange"; "required": false; "isSignal": true; }; "dateRangeRole": { "alias": "dateRangeRole"; "required": false; "isSignal": true; }; "initialFocus": { "alias": "initialFocus"; "required": false; "isSignal": true; }; "disabledTime": { "alias": "disabledTime"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; "previousLabel": { "alias": "previousLabel"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "calenderWeekLabel": { "alias": "calenderWeekLabel"; "required": false; "isSignal": true; }; "time12h": { "alias": "time12h"; "required": false; "isSignal": true; }; "rangeType": { "alias": "rangeType"; "required": false; "isSignal": true; }; "minMonth": { "alias": "minMonth"; "required": false; "isSignal": true; }; "maxMonth": { "alias": "maxMonth"; "required": false; "isSignal": true; }; "hideTimeToggle": { "alias": "hideTimeToggle"; "required": false; "isSignal": true; }; "hideCalendar": { "alias": "hideCalendar"; "required": false; "isSignal": true; }; "timepickerLabel": { "alias": "timepickerLabel"; "required": false; "isSignal": true; }; "activeHover": { "alias": "activeHover"; "required": false; "isSignal": true; }; }, { "focusedDate": "focusedDateChange"; "date": "dateChange"; "dateRange": "dateRangeChange"; "disabledTime": "disabledTimeChange"; "config": "configChange"; "rangeType": "rangeTypeChange"; "activeHover": "activeHoverChange"; }, never, never, true, never>;
|
|
227
|
+
}
|
|
228
|
+
export {};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { AfterViewInit, ElementRef } from '@angular/core';
|
|
6
|
+
import { SiDateInputDirective } from './si-date-input.directive';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "./si-datepicker-overlay.directive";
|
|
9
|
+
export declare class SiDatepickerDirective extends SiDateInputDirective implements AfterViewInit {
|
|
10
|
+
/**
|
|
11
|
+
* Automatically close overlay on date selection.
|
|
12
|
+
* Do not use this behavior with config showTime = true, because it
|
|
13
|
+
* will close the overlay when the user change one of the time units.
|
|
14
|
+
*
|
|
15
|
+
* @defaultValue false
|
|
16
|
+
*/
|
|
17
|
+
readonly autoClose: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* @deprecated Property has no effect and will be removed without replacement.
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue inject(ElementRef)
|
|
22
|
+
*/
|
|
23
|
+
readonly triggeringInput: import("@angular/core").InputSignal<ElementRef<any>>;
|
|
24
|
+
/**
|
|
25
|
+
* During focus on close the datepicker will not show since we recover the focus on element.
|
|
26
|
+
* The focus on close is only relevant when the directive is configured without a calendar button.
|
|
27
|
+
*/
|
|
28
|
+
private overlaySubscriptions?;
|
|
29
|
+
private externalTrigger?;
|
|
30
|
+
private readonly overlayToggle;
|
|
31
|
+
ngAfterViewInit(): void;
|
|
32
|
+
/** @internal */
|
|
33
|
+
touch(): void;
|
|
34
|
+
/**
|
|
35
|
+
* On click shall show datepicker.
|
|
36
|
+
*/
|
|
37
|
+
protected onClick(): void;
|
|
38
|
+
/**
|
|
39
|
+
* Focus out shall close the datepicker except we are moving the focus to the datepicker.
|
|
40
|
+
* @param event - focus out event with the related target
|
|
41
|
+
*/
|
|
42
|
+
protected onBlur(event: FocusEvent): void;
|
|
43
|
+
protected onTab(): void;
|
|
44
|
+
/**
|
|
45
|
+
* @internal
|
|
46
|
+
*/
|
|
47
|
+
show(initialFocus?: boolean): void;
|
|
48
|
+
/**
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
useExternalTrigger(element: ElementRef<HTMLElement>): void;
|
|
52
|
+
protected focusChange(): void;
|
|
53
|
+
private getTime12h;
|
|
54
|
+
private subscribeDateChanges;
|
|
55
|
+
/**
|
|
56
|
+
* Callback when the datepicker changes his value.
|
|
57
|
+
* @param date - updated date
|
|
58
|
+
*/
|
|
59
|
+
protected onDateChanged(date?: Date): void;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiDatepickerDirective, never>;
|
|
61
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiDatepickerDirective, "[siDatepicker]", ["siDatepicker"], { "autoClose": { "alias": "autoClose"; "required": false; "isSignal": true; }; "triggeringInput": { "alias": "triggeringInput"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.SiDatepickerOverlayDirective; inputs: {}; outputs: { "siDatepickerClose": "siDatepickerClose"; }; }]>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { TranslatableString } from '@siemens/element-translate-ng/translate';
|
|
6
|
+
export type WeekStart = 'monday' | 'saturday' | 'sunday' | undefined;
|
|
7
|
+
export interface DatepickerConfig {
|
|
8
|
+
/**
|
|
9
|
+
* Text or translation key for today button title. Default is `Today`.
|
|
10
|
+
*/
|
|
11
|
+
todayText?: TranslatableString;
|
|
12
|
+
/**
|
|
13
|
+
* Defines the starting day of the week. Default is `monday`.
|
|
14
|
+
*/
|
|
15
|
+
weekStartDay?: WeekStart;
|
|
16
|
+
/**
|
|
17
|
+
* Configuration for hiding week numbers. Default is `false`.
|
|
18
|
+
*/
|
|
19
|
+
hideWeekNumbers?: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Defines the timepicker visibility. Default is `false`.
|
|
22
|
+
*/
|
|
23
|
+
showTime?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Defines the timepicker minutes visibility. Default is `true`.
|
|
26
|
+
*/
|
|
27
|
+
showMinutes?: boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Defines the timepicker seconds visibility . Default is `false`.
|
|
30
|
+
*/
|
|
31
|
+
showSeconds?: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Defines the timepicker milliseconds visibility . Default is `false`.
|
|
34
|
+
*/
|
|
35
|
+
showMilliseconds?: boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Hides disable time switch in the timepicker part and includes mandatory the
|
|
38
|
+
* time in the picker.
|
|
39
|
+
*/
|
|
40
|
+
mandatoryTime?: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Defines the time is disabled when visible. Will also be updated on user change. Default is `false`.
|
|
43
|
+
*/
|
|
44
|
+
disabledTime?: boolean;
|
|
45
|
+
/**
|
|
46
|
+
* Text or translation key for the `enabled` disable time. Default is `Consider time`.
|
|
47
|
+
*/
|
|
48
|
+
enabledTimeText?: TranslatableString;
|
|
49
|
+
/**
|
|
50
|
+
* Text or translation key for the `disabled` disable time. Default is `Ignore time`.
|
|
51
|
+
*/
|
|
52
|
+
disabledTimeText?: TranslatableString;
|
|
53
|
+
/**
|
|
54
|
+
* Minimal (earliest) selectable date.
|
|
55
|
+
*/
|
|
56
|
+
minDate?: Date;
|
|
57
|
+
/**
|
|
58
|
+
* Maximal (latest) selectable date.
|
|
59
|
+
*/
|
|
60
|
+
maxDate?: Date;
|
|
61
|
+
/**
|
|
62
|
+
* Options to turn on date range selection.
|
|
63
|
+
*/
|
|
64
|
+
enableDateRange?: boolean;
|
|
65
|
+
/**
|
|
66
|
+
* Option to use two months view for date range picking.
|
|
67
|
+
*/
|
|
68
|
+
enableTwoMonthDateRange?: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Consider time with minDate and maxDate
|
|
71
|
+
*/
|
|
72
|
+
enableTimeValidation?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Only month and year are selectable.
|
|
75
|
+
*/
|
|
76
|
+
onlyMonthSelection?: boolean;
|
|
77
|
+
hoursLabel?: string;
|
|
78
|
+
minutesLabel?: string;
|
|
79
|
+
secondsLabel?: string;
|
|
80
|
+
millisecondsLabel?: string;
|
|
81
|
+
hideLabels?: boolean;
|
|
82
|
+
hoursAriaLabel?: string;
|
|
83
|
+
minutesAriaLabel?: string;
|
|
84
|
+
secondsAriaLabel?: string;
|
|
85
|
+
millisecondsAriaLabel?: string;
|
|
86
|
+
hoursPlaceholder?: string;
|
|
87
|
+
minutesPlaceholder?: string;
|
|
88
|
+
secondsPlaceholder?: string;
|
|
89
|
+
millisecondsPlaceholder?: string;
|
|
90
|
+
meridians?: string[];
|
|
91
|
+
meridiansLabel?: string;
|
|
92
|
+
meridiansAriaLabel?: string;
|
|
93
|
+
startTimeLabel?: string;
|
|
94
|
+
endTimeLabel?: string;
|
|
95
|
+
}
|
|
96
|
+
export interface DatepickerInputConfig extends DatepickerConfig {
|
|
97
|
+
/**
|
|
98
|
+
* A custom date/time format according the Angular date pipe (see {@link https://angular.dev/api/common/DatePipe}).
|
|
99
|
+
* Only numeric date formats are supported.
|
|
100
|
+
* The format is used to render the time of a date-time criterion. If not specified, `mediumTime` is
|
|
101
|
+
* used if the `showSeconds` flag is true, otherwise `shortTime` as default. For the date-only
|
|
102
|
+
* case, 'shortDate' is used.
|
|
103
|
+
*/
|
|
104
|
+
dateTimeFormat?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Similar to `dateTimeFormat`, but used when only a date is displayed
|
|
107
|
+
* (e.g. when `showTime === false` or `disabledTime === true`).
|
|
108
|
+
* Only numeric date formats are supported.
|
|
109
|
+
*/
|
|
110
|
+
dateFormat?: string;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Returns date / datetime format to be used for rendering a date object as text
|
|
114
|
+
* to an Html input element, which has the `SiDatepickerDirective`.
|
|
115
|
+
*
|
|
116
|
+
* @see https://angular.dev/api/common/DatePipe?tab=usage-notes
|
|
117
|
+
* @param locale - The locale for which the format is returned.
|
|
118
|
+
* @param config - The config object of the datepicker.
|
|
119
|
+
* @param timeWhenDisabled - If `true`, a format with time (medium or short) is returned, even if the `disabledTime` config is `true`.
|
|
120
|
+
* @returns Either
|
|
121
|
+
* - a custom format provided by the config,
|
|
122
|
+
* - the localized `medium` format when time and seconds included
|
|
123
|
+
* - the localized `short` format when time and no seconds included
|
|
124
|
+
*/
|
|
125
|
+
export declare const getDatepickerFormat: (locale: string, config?: DatepickerInputConfig, timeWhenDisabled?: boolean) => string;
|
|
126
|
+
export type DateRange = {
|
|
127
|
+
start: Date | undefined;
|
|
128
|
+
end: Date | undefined;
|
|
129
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./si-calendar-button.component";
|
|
3
|
+
import * as i2 from "./si-date-input.directive";
|
|
4
|
+
import * as i3 from "./si-datepicker.component";
|
|
5
|
+
import * as i4 from "./si-datepicker.directive";
|
|
6
|
+
import * as i5 from "./si-date-range.component";
|
|
7
|
+
import * as i6 from "./si-timepicker.component";
|
|
8
|
+
export declare class SiDatepickerModule {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiDatepickerModule, never>;
|
|
10
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SiDatepickerModule, never, [typeof i1.SiCalendarButtonComponent, typeof i2.SiDateInputDirective, typeof i3.SiDatepickerComponent, typeof i4.SiDatepickerDirective, typeof i5.SiDateRangeComponent, typeof i6.SiTimepickerComponent], [typeof i1.SiCalendarButtonComponent, typeof i2.SiDateInputDirective, typeof i3.SiDatepickerComponent, typeof i4.SiDatepickerDirective, typeof i5.SiDateRangeComponent, typeof i6.SiTimepickerComponent]>;
|
|
11
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SiDatepickerModule>;
|
|
12
|
+
}
|