@siemens/element-ng 48.9.0 → 49.0.0-rc.1
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/about/package.json +2 -1
- package/accordion/package.json +2 -1
- package/action-modal/package.json +2 -1
- package/ag-grid/package.json +4 -0
- package/application-header/package.json +2 -1
- package/auto-collapsable-list/package.json +2 -1
- package/autocomplete/package.json +2 -1
- package/avatar/package.json +2 -1
- package/badge/package.json +2 -1
- package/breadcrumb/package.json +2 -1
- package/breadcrumb-router/package.json +2 -1
- package/card/package.json +2 -1
- package/chat-messages/package.json +2 -1
- package/circle-status/package.json +2 -1
- package/color-picker/package.json +2 -1
- package/column-selection-dialog/package.json +2 -1
- package/common/package.json +2 -1
- package/connection-strength/package.json +2 -1
- package/content-action-bar/package.json +2 -1
- package/copyright-notice/package.json +2 -1
- package/dashboard/package.json +2 -1
- package/datatable/package.json +2 -1
- package/date-range-filter/package.json +2 -1
- package/datepicker/package.json +2 -1
- package/electron-titlebar/package.json +2 -1
- package/empty-state/package.json +2 -1
- package/fesm2022/siemens-element-ng-about.mjs +23 -23
- package/fesm2022/siemens-element-ng-about.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-accordion.mjs +39 -40
- package/fesm2022/siemens-element-ng-accordion.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-action-modal.mjs +50 -50
- package/fesm2022/siemens-element-ng-action-modal.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-ag-grid.mjs +842 -0
- package/fesm2022/siemens-element-ng-ag-grid.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-application-header.mjs +103 -134
- package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-auto-collapsable-list.mjs +30 -32
- package/fesm2022/siemens-element-ng-auto-collapsable-list.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-autocomplete.mjs +22 -24
- package/fesm2022/siemens-element-ng-autocomplete.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-avatar.mjs +23 -24
- package/fesm2022/siemens-element-ng-avatar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-badge.mjs +6 -6
- package/fesm2022/siemens-element-ng-badge.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-breadcrumb-router.mjs +14 -14
- package/fesm2022/siemens-element-ng-breadcrumb-router.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-breadcrumb.mjs +15 -15
- package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-card.mjs +32 -34
- package/fesm2022/siemens-element-ng-card.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-chat-messages.mjs +97 -99
- package/fesm2022/siemens-element-ng-chat-messages.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-circle-status.mjs +24 -25
- package/fesm2022/siemens-element-ng-circle-status.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-color-picker.mjs +15 -15
- package/fesm2022/siemens-element-ng-color-picker.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs +32 -32
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-common.mjs +13 -38
- package/fesm2022/siemens-element-ng-common.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-connection-strength.mjs +11 -11
- package/fesm2022/siemens-element-ng-connection-strength.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-content-action-bar.mjs +27 -27
- package/fesm2022/siemens-element-ng-content-action-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-copyright-notice.mjs +13 -13
- package/fesm2022/siemens-element-ng-copyright-notice.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-dashboard.mjs +159 -168
- package/fesm2022/siemens-element-ng-dashboard.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-datatable.mjs +9 -9
- package/fesm2022/siemens-element-ng-datatable.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-date-range-filter.mjs +124 -147
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-datepicker.mjs +225 -252
- package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs +16 -16
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-empty-state.mjs +11 -11
- package/fesm2022/siemens-element-ng-empty-state.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-file-uploader.mjs +58 -62
- package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-filter-bar.mjs +22 -22
- package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-filtered-search.mjs +131 -135
- package/fesm2022/siemens-element-ng-filtered-search.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-footer.mjs +10 -10
- package/fesm2022/siemens-element-ng-footer.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-form.mjs +66 -65
- package/fesm2022/siemens-element-ng-form.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-formly.mjs +90 -90
- package/fesm2022/siemens-element-ng-formly.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-header-dropdown.mjs +29 -29
- package/fesm2022/siemens-element-ng-header-dropdown.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-help-button.mjs +3 -3
- package/fesm2022/siemens-element-ng-icon-status.mjs +4 -4
- package/fesm2022/siemens-element-ng-icon.mjs +65 -44
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-info-page.mjs +10 -10
- package/fesm2022/siemens-element-ng-info-page.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-inline-notification.mjs +15 -16
- package/fesm2022/siemens-element-ng-inline-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-ip-input.mjs +16 -16
- package/fesm2022/siemens-element-ng-ip-input.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-landing-page.mjs +71 -71
- package/fesm2022/siemens-element-ng-landing-page.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-language-switcher.mjs +13 -13
- package/fesm2022/siemens-element-ng-language-switcher.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-link.mjs +22 -22
- package/fesm2022/siemens-element-ng-link.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-list-details.mjs +66 -77
- package/fesm2022/siemens-element-ng-list-details.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-loading-spinner.mjs +38 -52
- package/fesm2022/siemens-element-ng-loading-spinner.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-localization.mjs +10 -10
- package/fesm2022/siemens-element-ng-localization.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-main-detail-container.mjs +26 -26
- package/fesm2022/siemens-element-ng-main-detail-container.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-markdown-renderer.mjs +5 -5
- package/fesm2022/siemens-element-ng-markdown-renderer.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-menu.mjs +46 -46
- package/fesm2022/siemens-element-ng-menu.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-modal.mjs +10 -13
- package/fesm2022/siemens-element-ng-modal.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs +79 -83
- package/fesm2022/siemens-element-ng-navbar-vertical.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-navbar.mjs +41 -42
- package/fesm2022/siemens-element-ng-navbar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-notification-item.mjs +12 -12
- package/fesm2022/siemens-element-ng-notification-item.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-number-input.mjs +27 -29
- package/fesm2022/siemens-element-ng-number-input.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-pagination.mjs +19 -19
- package/fesm2022/siemens-element-ng-pagination.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-password-strength.mjs +21 -21
- package/fesm2022/siemens-element-ng-password-strength.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-password-toggle.mjs +12 -12
- package/fesm2022/siemens-element-ng-password-toggle.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-phone-number.mjs +51 -47
- package/fesm2022/siemens-element-ng-phone-number.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-photo-upload.mjs +43 -43
- package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-pills-input.mjs +40 -40
- package/fesm2022/siemens-element-ng-pills-input.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-popover-legacy.mjs +29 -29
- package/fesm2022/siemens-element-ng-popover-legacy.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-popover.mjs +29 -29
- package/fesm2022/siemens-element-ng-popover.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-progressbar.mjs +15 -15
- package/fesm2022/siemens-element-ng-progressbar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-resize-observer.mjs +25 -61
- package/fesm2022/siemens-element-ng-resize-observer.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-result-details-list.mjs +10 -10
- package/fesm2022/siemens-element-ng-result-details-list.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-search-bar.mjs +21 -21
- package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-select.mjs +200 -346
- package/fesm2022/siemens-element-ng-select.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-shadow-root.mjs +3 -3
- package/fesm2022/siemens-element-ng-shadow-root.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-side-panel.mjs +132 -67
- package/fesm2022/siemens-element-ng-side-panel.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-skip-links.mjs +13 -13
- package/fesm2022/siemens-element-ng-skip-links.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-slider.mjs +26 -26
- package/fesm2022/siemens-element-ng-slider.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-sort-bar.mjs +11 -11
- package/fesm2022/siemens-element-ng-sort-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-split.mjs +24 -24
- package/fesm2022/siemens-element-ng-split.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-bar.mjs +37 -38
- package/fesm2022/siemens-element-ng-status-bar.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-counter.mjs +11 -12
- package/fesm2022/siemens-element-ng-status-counter.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-status-toggle.mjs +12 -12
- package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-summary-chip.mjs +16 -17
- package/fesm2022/siemens-element-ng-summary-chip.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-summary-widget.mjs +16 -16
- package/fesm2022/siemens-element-ng-summary-widget.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-system-banner.mjs +7 -7
- package/fesm2022/siemens-element-ng-system-banner.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tabs-legacy.mjs +14 -15
- package/fesm2022/siemens-element-ng-tabs-legacy.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tabs.mjs +40 -44
- package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-theme.mjs +4 -4
- package/fesm2022/siemens-element-ng-theme.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-threshold.mjs +49 -70
- package/fesm2022/siemens-element-ng-threshold.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-toast-notification.mjs +23 -45
- package/fesm2022/siemens-element-ng-toast-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tooltip.mjs +30 -30
- package/fesm2022/siemens-element-ng-tooltip.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tour.mjs +18 -19
- package/fesm2022/siemens-element-ng-tour.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-tree-view.mjs +92 -117
- package/fesm2022/siemens-element-ng-tree-view.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-typeahead.mjs +46 -62
- package/fesm2022/siemens-element-ng-typeahead.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-wizard.mjs +47 -47
- package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -1
- package/file-uploader/package.json +2 -1
- package/filter-bar/package.json +2 -1
- package/filtered-search/package.json +2 -1
- package/footer/package.json +2 -1
- package/form/package.json +2 -1
- package/formly/package.json +2 -1
- package/header-dropdown/package.json +2 -1
- package/help-button/package.json +2 -1
- package/icon/package.json +2 -1
- package/icon-status/package.json +2 -1
- package/info-page/package.json +2 -1
- package/inline-notification/package.json +2 -1
- package/ip-input/package.json +2 -1
- package/landing-page/package.json +2 -1
- package/language-switcher/package.json +2 -1
- package/link/package.json +2 -1
- package/list-details/package.json +2 -1
- package/loading-spinner/package.json +2 -1
- package/localization/package.json +2 -1
- package/main-detail-container/package.json +2 -1
- package/markdown-renderer/package.json +2 -1
- package/menu/package.json +2 -1
- package/modal/package.json +2 -1
- package/navbar/package.json +2 -1
- package/navbar-vertical/package.json +2 -1
- package/notification-item/package.json +2 -1
- package/number-input/package.json +2 -1
- package/package.json +116 -112
- package/pagination/package.json +2 -1
- package/password-strength/package.json +2 -1
- package/password-toggle/package.json +2 -1
- package/phone-number/package.json +2 -1
- package/photo-upload/package.json +2 -1
- package/pills-input/package.json +2 -1
- package/popover/package.json +2 -1
- package/popover-legacy/package.json +2 -1
- package/progressbar/package.json +2 -1
- package/resize-observer/package.json +2 -1
- package/result-details-list/package.json +2 -1
- package/schematics/migrations/data/component-names.js +4 -0
- package/schematics/migrations/data/symbol-removals.js +5 -0
- package/schematics/ts-import-to-siemens-migration/mappings/element-ng-mappings.js +0 -3
- package/search-bar/package.json +2 -1
- package/select/package.json +2 -1
- package/shadow-root/package.json +2 -1
- package/side-panel/package.json +2 -1
- package/skip-links/package.json +2 -1
- package/slider/package.json +2 -1
- package/sort-bar/package.json +2 -1
- package/split/package.json +2 -1
- package/status-bar/package.json +2 -1
- package/status-counter/package.json +2 -1
- package/status-toggle/package.json +2 -1
- package/summary-chip/package.json +2 -1
- package/summary-widget/package.json +2 -1
- package/system-banner/package.json +2 -1
- package/tabs/package.json +2 -1
- package/tabs-legacy/package.json +2 -1
- package/test-styles.scss +5 -0
- package/theme/package.json +2 -1
- package/threshold/package.json +2 -1
- package/toast-notification/package.json +2 -1
- package/tooltip/package.json +2 -1
- package/tour/package.json +2 -1
- package/translate/package.json +2 -1
- package/tree-view/package.json +2 -1
- package/typeahead/package.json +2 -1
- package/types/siemens-element-ng-ag-grid.d.ts +162 -0
- package/{application-header/index.d.ts → types/siemens-element-ng-application-header.d.ts} +16 -11
- package/{breadcrumb/index.d.ts → types/siemens-element-ng-breadcrumb.d.ts} +2 -2
- package/{chat-messages/index.d.ts → types/siemens-element-ng-chat-messages.d.ts} +6 -6
- package/{common/index.d.ts → types/siemens-element-ng-common.d.ts} +2 -30
- package/{content-action-bar/index.d.ts → types/siemens-element-ng-content-action-bar.d.ts} +2 -2
- package/{dashboard/index.d.ts → types/siemens-element-ng-dashboard.d.ts} +6 -6
- package/{date-range-filter/index.d.ts → types/siemens-element-ng-date-range-filter.d.ts} +28 -27
- package/{datepicker/index.d.ts → types/siemens-element-ng-datepicker.d.ts} +2 -2
- package/{electron-titlebar/index.d.ts → types/siemens-element-ng-electron-titlebar.d.ts} +4 -4
- package/{file-uploader/index.d.ts → types/siemens-element-ng-file-uploader.d.ts} +21 -21
- package/{filter-bar/index.d.ts → types/siemens-element-ng-filter-bar.d.ts} +4 -4
- package/{form/index.d.ts → types/siemens-element-ng-form.d.ts} +1 -1
- package/{icon/index.d.ts → types/siemens-element-ng-icon.d.ts} +24 -2
- package/{landing-page/index.d.ts → types/siemens-element-ng-landing-page.d.ts} +15 -15
- package/{language-switcher/index.d.ts → types/siemens-element-ng-language-switcher.d.ts} +1 -2
- package/{list-details/index.d.ts → types/siemens-element-ng-list-details.d.ts} +4 -3
- package/{loading-spinner/index.d.ts → types/siemens-element-ng-loading-spinner.d.ts} +2 -3
- package/{modal/index.d.ts → types/siemens-element-ng-modal.d.ts} +0 -6
- package/{navbar-vertical/index.d.ts → types/siemens-element-ng-navbar-vertical.d.ts} +7 -7
- package/{navbar/index.d.ts → types/siemens-element-ng-navbar.d.ts} +11 -11
- package/{pagination/index.d.ts → types/siemens-element-ng-pagination.d.ts} +4 -4
- package/{password-toggle/index.d.ts → types/siemens-element-ng-password-toggle.d.ts} +3 -3
- package/{phone-number/index.d.ts → types/siemens-element-ng-phone-number.d.ts} +7 -11
- package/{pills-input/index.d.ts → types/siemens-element-ng-pills-input.d.ts} +2 -2
- package/{popover/index.d.ts → types/siemens-element-ng-popover.d.ts} +2 -2
- package/{resize-observer/index.d.ts → types/siemens-element-ng-resize-observer.d.ts} +0 -30
- package/{search-bar/index.d.ts → types/siemens-element-ng-search-bar.d.ts} +2 -2
- package/{select/index.d.ts → types/siemens-element-ng-select.d.ts} +30 -105
- package/{side-panel/index.d.ts → types/siemens-element-ng-side-panel.d.ts} +25 -4
- package/{slider/index.d.ts → types/siemens-element-ng-slider.d.ts} +4 -4
- package/{status-bar/index.d.ts → types/siemens-element-ng-status-bar.d.ts} +6 -6
- package/{tabs-legacy/index.d.ts → types/siemens-element-ng-tabs-legacy.d.ts} +5 -0
- package/{threshold/index.d.ts → types/siemens-element-ng-threshold.d.ts} +7 -7
- package/{tour/index.d.ts → types/siemens-element-ng-tour.d.ts} +1 -10
- package/{tree-view/index.d.ts → types/siemens-element-ng-tree-view.d.ts} +0 -1
- package/{typeahead/index.d.ts → types/siemens-element-ng-typeahead.d.ts} +0 -2
- package/{wizard/index.d.ts → types/siemens-element-ng-wizard.d.ts} +6 -6
- package/wizard/package.json +2 -1
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs +0 -75
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs.map +0 -1
- package/unauthorized-page/index.d.ts +0 -44
- package/unauthorized-page/package.json +0 -3
- /package/{about/index.d.ts → types/siemens-element-ng-about.d.ts} +0 -0
- /package/{accordion/index.d.ts → types/siemens-element-ng-accordion.d.ts} +0 -0
- /package/{action-modal/index.d.ts → types/siemens-element-ng-action-modal.d.ts} +0 -0
- /package/{auto-collapsable-list/index.d.ts → types/siemens-element-ng-auto-collapsable-list.d.ts} +0 -0
- /package/{autocomplete/index.d.ts → types/siemens-element-ng-autocomplete.d.ts} +0 -0
- /package/{avatar/index.d.ts → types/siemens-element-ng-avatar.d.ts} +0 -0
- /package/{badge/index.d.ts → types/siemens-element-ng-badge.d.ts} +0 -0
- /package/{breadcrumb-router/index.d.ts → types/siemens-element-ng-breadcrumb-router.d.ts} +0 -0
- /package/{card/index.d.ts → types/siemens-element-ng-card.d.ts} +0 -0
- /package/{circle-status/index.d.ts → types/siemens-element-ng-circle-status.d.ts} +0 -0
- /package/{color-picker/index.d.ts → types/siemens-element-ng-color-picker.d.ts} +0 -0
- /package/{column-selection-dialog/index.d.ts → types/siemens-element-ng-column-selection-dialog.d.ts} +0 -0
- /package/{connection-strength/index.d.ts → types/siemens-element-ng-connection-strength.d.ts} +0 -0
- /package/{copyright-notice/index.d.ts → types/siemens-element-ng-copyright-notice.d.ts} +0 -0
- /package/{datatable/index.d.ts → types/siemens-element-ng-datatable.d.ts} +0 -0
- /package/{empty-state/index.d.ts → types/siemens-element-ng-empty-state.d.ts} +0 -0
- /package/{filtered-search/index.d.ts → types/siemens-element-ng-filtered-search.d.ts} +0 -0
- /package/{footer/index.d.ts → types/siemens-element-ng-footer.d.ts} +0 -0
- /package/{formly/index.d.ts → types/siemens-element-ng-formly.d.ts} +0 -0
- /package/{header-dropdown/index.d.ts → types/siemens-element-ng-header-dropdown.d.ts} +0 -0
- /package/{help-button/index.d.ts → types/siemens-element-ng-help-button.d.ts} +0 -0
- /package/{icon-status/index.d.ts → types/siemens-element-ng-icon-status.d.ts} +0 -0
- /package/{info-page/index.d.ts → types/siemens-element-ng-info-page.d.ts} +0 -0
- /package/{inline-notification/index.d.ts → types/siemens-element-ng-inline-notification.d.ts} +0 -0
- /package/{ip-input/index.d.ts → types/siemens-element-ng-ip-input.d.ts} +0 -0
- /package/{link/index.d.ts → types/siemens-element-ng-link.d.ts} +0 -0
- /package/{localization/index.d.ts → types/siemens-element-ng-localization.d.ts} +0 -0
- /package/{main-detail-container/index.d.ts → types/siemens-element-ng-main-detail-container.d.ts} +0 -0
- /package/{markdown-renderer/index.d.ts → types/siemens-element-ng-markdown-renderer.d.ts} +0 -0
- /package/{menu/index.d.ts → types/siemens-element-ng-menu.d.ts} +0 -0
- /package/{notification-item/index.d.ts → types/siemens-element-ng-notification-item.d.ts} +0 -0
- /package/{number-input/index.d.ts → types/siemens-element-ng-number-input.d.ts} +0 -0
- /package/{password-strength/index.d.ts → types/siemens-element-ng-password-strength.d.ts} +0 -0
- /package/{photo-upload/index.d.ts → types/siemens-element-ng-photo-upload.d.ts} +0 -0
- /package/{popover-legacy/index.d.ts → types/siemens-element-ng-popover-legacy.d.ts} +0 -0
- /package/{progressbar/index.d.ts → types/siemens-element-ng-progressbar.d.ts} +0 -0
- /package/{result-details-list/index.d.ts → types/siemens-element-ng-result-details-list.d.ts} +0 -0
- /package/{shadow-root/index.d.ts → types/siemens-element-ng-shadow-root.d.ts} +0 -0
- /package/{skip-links/index.d.ts → types/siemens-element-ng-skip-links.d.ts} +0 -0
- /package/{sort-bar/index.d.ts → types/siemens-element-ng-sort-bar.d.ts} +0 -0
- /package/{split/index.d.ts → types/siemens-element-ng-split.d.ts} +0 -0
- /package/{status-counter/index.d.ts → types/siemens-element-ng-status-counter.d.ts} +0 -0
- /package/{status-toggle/index.d.ts → types/siemens-element-ng-status-toggle.d.ts} +0 -0
- /package/{summary-chip/index.d.ts → types/siemens-element-ng-summary-chip.d.ts} +0 -0
- /package/{summary-widget/index.d.ts → types/siemens-element-ng-summary-widget.d.ts} +0 -0
- /package/{system-banner/index.d.ts → types/siemens-element-ng-system-banner.d.ts} +0 -0
- /package/{tabs/index.d.ts → types/siemens-element-ng-tabs.d.ts} +0 -0
- /package/{theme/index.d.ts → types/siemens-element-ng-theme.d.ts} +0 -0
- /package/{toast-notification/index.d.ts → types/siemens-element-ng-toast-notification.d.ts} +0 -0
- /package/{tooltip/index.d.ts → types/siemens-element-ng-tooltip.d.ts} +0 -0
- /package/{translate/index.d.ts → types/siemens-element-ng-translate.d.ts} +0 -0
- /package/{index.d.ts → types/siemens-element-ng.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getLocaleDayPeriods, FormStyle, TranslationWidth, getLocaleId, getLocaleDateTimeFormat, FormatWidth, getLocaleTimeFormat, getLocaleDateFormat, formatDate,
|
|
1
|
+
import { getLocaleDayPeriods, FormStyle, TranslationWidth, getLocaleId, getLocaleDateTimeFormat, FormatWidth, getLocaleTimeFormat, getLocaleDateFormat, formatDate, DatePipe, NgTemplateOutlet, getLocaleFirstDayOfWeek, WeekDay } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
import { input, model, output, booleanAttribute, computed, signal, inject, LOCALE_ID, HostListener, Directive, ElementRef, viewChildren, Component, ChangeDetectionStrategy, viewChild, HostAttributeToken, effect, ChangeDetectorRef, SimpleChange, DOCUMENT, DestroyRef, contentChild, NgModule } from '@angular/core';
|
|
4
4
|
import * as i2 from '@angular/forms';
|
|
@@ -748,7 +748,7 @@ class SiDateInputDirective {
|
|
|
748
748
|
* `si-date-input-${SiDateInputDirective.idCounter++}`
|
|
749
749
|
* ```
|
|
750
750
|
*/
|
|
751
|
-
id = input(`si-date-input-${SiDateInputDirective.idCounter++}
|
|
751
|
+
id = input(`si-date-input-${SiDateInputDirective.idCounter++}`, ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
752
752
|
/**
|
|
753
753
|
* Configuration object for the datepicker.
|
|
754
754
|
*
|
|
@@ -757,7 +757,7 @@ class SiDateInputDirective {
|
|
|
757
757
|
* {}
|
|
758
758
|
* ```
|
|
759
759
|
*/
|
|
760
|
-
siDatepickerConfig = model({});
|
|
760
|
+
siDatepickerConfig = model({}, ...(ngDevMode ? [{ debugName: "siDatepickerConfig" }] : []));
|
|
761
761
|
/**
|
|
762
762
|
* Emits an event to notify about disabling the time from the datepicker.
|
|
763
763
|
* When time is disable, we construct a pure date object in UTC 00:00:00 time.
|
|
@@ -772,12 +772,12 @@ class SiDateInputDirective {
|
|
|
772
772
|
* @defaultValue false
|
|
773
773
|
*/
|
|
774
774
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
775
|
-
disabledInput = input(false, { alias: 'disabled' });
|
|
775
|
+
disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : {}), alias: 'disabled' });
|
|
776
776
|
/**
|
|
777
777
|
* Whether the date range input is readonly.
|
|
778
778
|
* @defaultValue false
|
|
779
779
|
*/
|
|
780
|
-
readonly = input(false, { transform: booleanAttribute });
|
|
780
|
+
readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : {}), transform: booleanAttribute });
|
|
781
781
|
/**
|
|
782
782
|
* This ID will be bound to the `aria-describedby` attribute of the date-input.
|
|
783
783
|
* Use this to reference the element containing the error message(s) for the date-input.
|
|
@@ -788,7 +788,7 @@ class SiDateInputDirective {
|
|
|
788
788
|
* `${this.id()}-errormessage`
|
|
789
789
|
* ```
|
|
790
790
|
*/
|
|
791
|
-
errormessageId = input(`${this.id()}-errormessage
|
|
791
|
+
errormessageId = input(`${this.id()}-errormessage`, ...(ngDevMode ? [{ debugName: "errormessageId" }] : []));
|
|
792
792
|
/** @internal */
|
|
793
793
|
validatorOnChange = () => { };
|
|
794
794
|
/**
|
|
@@ -805,11 +805,11 @@ class SiDateInputDirective {
|
|
|
805
805
|
*/
|
|
806
806
|
dateChange = output();
|
|
807
807
|
/** @internal */
|
|
808
|
-
disabled = computed(() => this.disabledInput() || this.disabledNgControl());
|
|
808
|
+
disabled = computed(() => this.disabledInput() || this.disabledNgControl(), ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
809
809
|
onTouched = () => { };
|
|
810
810
|
onModelChange = () => { };
|
|
811
|
-
dateString = signal('');
|
|
812
|
-
disabledNgControl = signal(false);
|
|
811
|
+
dateString = signal('', ...(ngDevMode ? [{ debugName: "dateString" }] : []));
|
|
812
|
+
disabledNgControl = signal(false, ...(ngDevMode ? [{ debugName: "disabledNgControl" }] : []));
|
|
813
813
|
locale = inject(LOCALE_ID).toString();
|
|
814
814
|
format = '';
|
|
815
815
|
ngOnChanges(changes) {
|
|
@@ -952,8 +952,8 @@ class SiDateInputDirective {
|
|
|
952
952
|
? null
|
|
953
953
|
: { maxDate: { max, actual: controlValue } };
|
|
954
954
|
}
|
|
955
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
956
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
955
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDateInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
956
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.8", type: SiDateInputDirective, isStandalone: true, selector: "input[siDateInput]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, siDatepickerConfig: { classPropertyName: "siDatepickerConfig", publicName: "siDatepickerConfig", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, errormessageId: { classPropertyName: "errormessageId", publicName: "errormessageId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { siDatepickerConfig: "siDatepickerConfigChange", siDatepickerDisabledTime: "siDatepickerDisabledTime", stateChange: "stateChange", dateChange: "dateChange" }, host: { listeners: { "input": "onInput($event)", "blur": "onBlur($event)" }, properties: { "attr.id": "id()", "attr.disabled": "disabled() || null", "attr.readonly": "readonly() || null", "class.readonly": "readonly()", "attr.aria-describedby": "errormessageId()", "value": "dateString()" } }, providers: [
|
|
957
957
|
{
|
|
958
958
|
provide: NG_VALUE_ACCESSOR,
|
|
959
959
|
useExisting: SiDateInputDirective,
|
|
@@ -970,7 +970,7 @@ class SiDateInputDirective {
|
|
|
970
970
|
}
|
|
971
971
|
], exportAs: ["siDateInput"], usesOnChanges: true, ngImport: i0 });
|
|
972
972
|
}
|
|
973
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
973
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDateInputDirective, decorators: [{
|
|
974
974
|
type: Directive,
|
|
975
975
|
args: [{
|
|
976
976
|
selector: 'input[siDateInput]',
|
|
@@ -1000,7 +1000,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
1000
1000
|
},
|
|
1001
1001
|
exportAs: 'siDateInput'
|
|
1002
1002
|
}]
|
|
1003
|
-
}], propDecorators: { onInput: [{
|
|
1003
|
+
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], siDatepickerConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "siDatepickerConfig", required: false }] }, { type: i0.Output, args: ["siDatepickerConfigChange"] }], siDatepickerDisabledTime: [{ type: i0.Output, args: ["siDatepickerDisabledTime"] }], stateChange: [{ type: i0.Output, args: ["stateChange"] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], errormessageId: [{ type: i0.Input, args: [{ isSignal: true, alias: "errormessageId", required: false }] }], dateChange: [{ type: i0.Output, args: ["dateChange"] }], onInput: [{
|
|
1004
1004
|
type: HostListener,
|
|
1005
1005
|
args: ['input', ['$event']]
|
|
1006
1006
|
}], onBlur: [{
|
|
@@ -1013,14 +1013,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
1013
1013
|
* SPDX-License-Identifier: MIT
|
|
1014
1014
|
*/
|
|
1015
1015
|
class SiCalendarDateCellDirective {
|
|
1016
|
-
cell = input.required();
|
|
1017
|
-
compareAdapter = input.required();
|
|
1016
|
+
cell = input.required(...(ngDevMode ? [{ debugName: "cell" }] : []));
|
|
1017
|
+
compareAdapter = input.required(...(ngDevMode ? [{ debugName: "compareAdapter" }] : []));
|
|
1018
1018
|
/** @defaultValue inject(ElementRef) */
|
|
1019
1019
|
ref = inject(ElementRef);
|
|
1020
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1021
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
1020
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiCalendarDateCellDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1021
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.8", type: SiCalendarDateCellDirective, isStandalone: true, selector: "[siCalendarDateCell]", inputs: { cell: { classPropertyName: "cell", publicName: "cell", isSignal: true, isRequired: true, transformFunction: null }, compareAdapter: { classPropertyName: "compareAdapter", publicName: "compareAdapter", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "attr.aria-disabled": "cell().disabled", "class.disabled": "cell().disabled", "attr.aria-label": "cell().ariaLabel", "class.today": "this.cell().isToday", "attr.aria-current": "this.cell().isToday ? \"date\" : null" }, classAttribute: "si-calendar-date-cell" }, ngImport: i0 });
|
|
1022
1022
|
}
|
|
1023
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1023
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiCalendarDateCellDirective, decorators: [{
|
|
1024
1024
|
type: Directive,
|
|
1025
1025
|
args: [{
|
|
1026
1026
|
selector: '[siCalendarDateCell]',
|
|
@@ -1033,7 +1033,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
1033
1033
|
'[attr.aria-current]': 'this.cell().isToday ? "date" : null'
|
|
1034
1034
|
}
|
|
1035
1035
|
}]
|
|
1036
|
-
}] });
|
|
1036
|
+
}], propDecorators: { cell: [{ type: i0.Input, args: [{ isSignal: true, alias: "cell", required: true }] }], compareAdapter: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareAdapter", required: true }] }] } });
|
|
1037
1037
|
|
|
1038
1038
|
/**
|
|
1039
1039
|
* Copyright (c) Siemens 2016 - 2025
|
|
@@ -1166,54 +1166,54 @@ class RangeSelectionStrategy extends SelectionStrategy {
|
|
|
1166
1166
|
}
|
|
1167
1167
|
class SiCalendarBodyComponent {
|
|
1168
1168
|
/** The active date, the cell which will receive the focus. */
|
|
1169
|
-
focusedDate = model.required();
|
|
1169
|
+
focusedDate = model.required(...(ngDevMode ? [{ debugName: "focusedDate" }] : []));
|
|
1170
1170
|
/** The date which shall be indicated as currently selected. */
|
|
1171
|
-
startDate = input();
|
|
1171
|
+
startDate = input(...(ngDevMode ? [undefined, { debugName: "startDate" }] : []));
|
|
1172
1172
|
/** Selected end value which is only considered with enableRangeSelection. */
|
|
1173
|
-
endDate = input();
|
|
1173
|
+
endDate = input(...(ngDevMode ? [undefined, { debugName: "endDate" }] : []));
|
|
1174
1174
|
/**
|
|
1175
1175
|
* The cells to display in the table.
|
|
1176
1176
|
*
|
|
1177
1177
|
* @defaultValue []
|
|
1178
1178
|
*/
|
|
1179
|
-
rows = input([]);
|
|
1179
|
+
rows = input([], ...(ngDevMode ? [{ debugName: "rows" }] : []));
|
|
1180
1180
|
/**
|
|
1181
1181
|
* Labels for each row, which can be used to display the week number.
|
|
1182
1182
|
* @defaultValue undefined
|
|
1183
1183
|
*/
|
|
1184
|
-
rowLabels = input(undefined);
|
|
1184
|
+
rowLabels = input(undefined, ...(ngDevMode ? [{ debugName: "rowLabels" }] : []));
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Additional row label CSS class(es).
|
|
1187
1187
|
*
|
|
1188
1188
|
* @defaultValue []
|
|
1189
1189
|
*/
|
|
1190
|
-
rowLabelCssClasses = input([]);
|
|
1190
|
+
rowLabelCssClasses = input([], ...(ngDevMode ? [{ debugName: "rowLabelCssClasses" }] : []));
|
|
1191
1191
|
/**
|
|
1192
1192
|
* Choose the selection strategy between single or range selection.
|
|
1193
1193
|
* @defaultValue false
|
|
1194
1194
|
*/
|
|
1195
|
-
enableRangeSelection = input(false);
|
|
1195
|
+
enableRangeSelection = input(false, ...(ngDevMode ? [{ debugName: "enableRangeSelection" }] : []));
|
|
1196
1196
|
/**
|
|
1197
1197
|
* Indicate whether a range preview shall be displayed.
|
|
1198
1198
|
* It's necessary since to display a preview also datepicker has a valid endDate.
|
|
1199
1199
|
*
|
|
1200
1200
|
* @defaultValue true
|
|
1201
1201
|
*/
|
|
1202
|
-
previewRange = input(true, { transform: booleanAttribute });
|
|
1202
|
+
previewRange = input(true, { ...(ngDevMode ? { debugName: "previewRange" } : {}), transform: booleanAttribute });
|
|
1203
1203
|
/** The cell which which has the mouse hover. */
|
|
1204
|
-
activeHover = model();
|
|
1204
|
+
activeHover = model(...(ngDevMode ? [undefined, { debugName: "activeHover" }] : []));
|
|
1205
1205
|
/**
|
|
1206
1206
|
* Compare date functions which are necessary to compare a the dates according the current view.
|
|
1207
1207
|
*
|
|
1208
1208
|
* @defaultValue new DayCompareAdapter()
|
|
1209
1209
|
*/
|
|
1210
|
-
compareAdapter = input(new DayCompareAdapter());
|
|
1210
|
+
compareAdapter = input(new DayCompareAdapter(), ...(ngDevMode ? [{ debugName: "compareAdapter" }] : []));
|
|
1211
1211
|
/** Emits when a user select a cell via click, space or enter. */
|
|
1212
1212
|
selectedValueChange = output();
|
|
1213
|
-
calendarDateCells = viewChildren(SiCalendarDateCellDirective);
|
|
1213
|
+
calendarDateCells = viewChildren(SiCalendarDateCellDirective, ...(ngDevMode ? [{ debugName: "calendarDateCells" }] : []));
|
|
1214
1214
|
selection = computed(() => this.enableRangeSelection()
|
|
1215
1215
|
? new RangeSelectionStrategy(this.compareAdapter())
|
|
1216
|
-
: new SingleSelectionStrategy(this.compareAdapter()));
|
|
1216
|
+
: new SingleSelectionStrategy(this.compareAdapter()), ...(ngDevMode ? [{ debugName: "selection" }] : []));
|
|
1217
1217
|
/**
|
|
1218
1218
|
* Focus calendar cell which is marked as active cell.
|
|
1219
1219
|
*/
|
|
@@ -1247,67 +1247,42 @@ class SiCalendarBodyComponent {
|
|
|
1247
1247
|
this.focusedDate.set(cell.valueRaw);
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1251
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1250
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiCalendarBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1251
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiCalendarBodyComponent, isStandalone: true, selector: "[si-calendar-body]", inputs: { focusedDate: { classPropertyName: "focusedDate", publicName: "focusedDate", isSignal: true, isRequired: true, transformFunction: null }, startDate: { classPropertyName: "startDate", publicName: "startDate", isSignal: true, isRequired: false, transformFunction: null }, endDate: { classPropertyName: "endDate", publicName: "endDate", isSignal: true, isRequired: false, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: false, transformFunction: null }, rowLabels: { classPropertyName: "rowLabels", publicName: "rowLabels", isSignal: true, isRequired: false, transformFunction: null }, rowLabelCssClasses: { classPropertyName: "rowLabelCssClasses", publicName: "rowLabelCssClasses", isSignal: true, isRequired: false, transformFunction: null }, enableRangeSelection: { classPropertyName: "enableRangeSelection", publicName: "enableRangeSelection", isSignal: true, isRequired: false, transformFunction: null }, previewRange: { classPropertyName: "previewRange", publicName: "previewRange", isSignal: true, isRequired: false, transformFunction: null }, activeHover: { classPropertyName: "activeHover", publicName: "activeHover", isSignal: true, isRequired: false, transformFunction: null }, compareAdapter: { classPropertyName: "compareAdapter", publicName: "compareAdapter", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { focusedDate: "focusedDateChange", activeHover: "activeHoverChange", selectedValueChange: "selectedValueChange" }, host: { classAttribute: "si-calendar-body" }, viewQueries: [{ propertyName: "calendarDateCells", predicate: SiCalendarDateCellDirective, descendants: true, isSignal: true }], exportAs: ["siCalendarBody"], ngImport: i0, template: "@for (row of rows(); track rowIndex; let rowIndex = $index) {\n <tr role=\"row\">\n <!-- Typically used for week numbers -->\n @if (rowLabels()) {\n <td [class]=\"`si-calendar-row-label ${rowLabelCssClasses()}`\" [attr.data-row]=\"rowIndex\">\n {{ rowLabels()?.at(rowIndex) ?? '' }}\n </td>\n }\n @for (col of row; track colIndex; let colIndex = $index) {\n <td\n role=\"gridcell\"\n class=\"si-calendar-cell\"\n [attr.data-row]=\"rowIndex\"\n [attr.data-col]=\"colIndex\"\n [class.range-hover]=\"\n previewRange() && selection().previewRangeHover(col, activeHover(), startDate())\n \"\n [class.range-hover-end]=\"\n previewRange() && selection().previewRangeHoverEnd(col, activeHover(), startDate())\n \"\n [class.range]=\"selection().inRange(col, startDate(), endDate())\"\n [class.range-start]=\"selection().isRangeSelected(col, startDate())\"\n [class.range-end]=\"selection().isRangeSelected(col, endDate())\"\n >\n <button\n siCalendarDateCell\n type=\"button\"\n [cell]=\"col\"\n [compareAdapter]=\"compareAdapter()\"\n [attr.cdkFocusInitial]=\"isActive(col) ? '' : null\"\n [class]=\"cellCss(col)\"\n [class.selected]=\"selection().isSelected(col, startDate(), endDate())\"\n [class.text-secondary]=\"\n col.isPreview &&\n !col.disabled &&\n !selection().isRangeSelected(col, startDate()) &&\n !selection().isRangeSelected(col, endDate()) &&\n !selection().inRange(col, startDate(), endDate())\n \"\n [tabindex]=\"isActive(col) ? '0' : '-1'\"\n (mouseover)=\"emitActiveHover(col)\"\n (click)=\"emitSelectCell(col)\"\n (focus)=\"emitActiveDateChange(col)\"\n >\n {{ col.displayValue }}\n </button>\n </td>\n }\n </tr>\n}\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: SiCalendarDateCellDirective, selector: "[siCalendarDateCell]", inputs: ["cell", "compareAdapter"] }] });
|
|
1252
1252
|
}
|
|
1253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiCalendarBodyComponent, decorators: [{
|
|
1254
1254
|
type: Component,
|
|
1255
|
-
args: [{ selector: '[si-calendar-body]', imports: [
|
|
1255
|
+
args: [{ selector: '[si-calendar-body]', imports: [A11yModule, SiCalendarDateCellDirective], host: {
|
|
1256
1256
|
class: 'si-calendar-body'
|
|
1257
|
-
}, exportAs: 'siCalendarBody', template: "@for (row of rows(); track rowIndex; let rowIndex = $index) {\n <tr role=\"row\">\n <!-- Typically used for week numbers -->\n @if (rowLabels()) {\n <td class=\"si-calendar-row-label
|
|
1258
|
-
}] });
|
|
1257
|
+
}, exportAs: 'siCalendarBody', template: "@for (row of rows(); track rowIndex; let rowIndex = $index) {\n <tr role=\"row\">\n <!-- Typically used for week numbers -->\n @if (rowLabels()) {\n <td [class]=\"`si-calendar-row-label ${rowLabelCssClasses()}`\" [attr.data-row]=\"rowIndex\">\n {{ rowLabels()?.at(rowIndex) ?? '' }}\n </td>\n }\n @for (col of row; track colIndex; let colIndex = $index) {\n <td\n role=\"gridcell\"\n class=\"si-calendar-cell\"\n [attr.data-row]=\"rowIndex\"\n [attr.data-col]=\"colIndex\"\n [class.range-hover]=\"\n previewRange() && selection().previewRangeHover(col, activeHover(), startDate())\n \"\n [class.range-hover-end]=\"\n previewRange() && selection().previewRangeHoverEnd(col, activeHover(), startDate())\n \"\n [class.range]=\"selection().inRange(col, startDate(), endDate())\"\n [class.range-start]=\"selection().isRangeSelected(col, startDate())\"\n [class.range-end]=\"selection().isRangeSelected(col, endDate())\"\n >\n <button\n siCalendarDateCell\n type=\"button\"\n [cell]=\"col\"\n [compareAdapter]=\"compareAdapter()\"\n [attr.cdkFocusInitial]=\"isActive(col) ? '' : null\"\n [class]=\"cellCss(col)\"\n [class.selected]=\"selection().isSelected(col, startDate(), endDate())\"\n [class.text-secondary]=\"\n col.isPreview &&\n !col.disabled &&\n !selection().isRangeSelected(col, startDate()) &&\n !selection().isRangeSelected(col, endDate()) &&\n !selection().inRange(col, startDate(), endDate())\n \"\n [tabindex]=\"isActive(col) ? '0' : '-1'\"\n (mouseover)=\"emitActiveHover(col)\"\n (click)=\"emitSelectCell(col)\"\n (focus)=\"emitActiveDateChange(col)\"\n >\n {{ col.displayValue }}\n </button>\n </td>\n }\n </tr>\n}\n" }]
|
|
1258
|
+
}], propDecorators: { focusedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedDate", required: true }] }, { type: i0.Output, args: ["focusedDateChange"] }], startDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "startDate", required: false }] }], endDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "endDate", required: false }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: false }] }], rowLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowLabels", required: false }] }], rowLabelCssClasses: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowLabelCssClasses", required: false }] }], enableRangeSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "enableRangeSelection", required: false }] }], previewRange: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewRange", required: false }] }], activeHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeHover", required: false }] }, { type: i0.Output, args: ["activeHoverChange"] }], compareAdapter: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareAdapter", required: false }] }], selectedValueChange: [{ type: i0.Output, args: ["selectedValueChange"] }], calendarDateCells: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => SiCalendarDateCellDirective), { isSignal: true }] }] } });
|
|
1259
1259
|
|
|
1260
1260
|
/**
|
|
1261
1261
|
* Copyright (c) Siemens 2016 - 2025
|
|
1262
1262
|
* SPDX-License-Identifier: MIT
|
|
1263
1263
|
*/
|
|
1264
1264
|
class SiCalendarDirectionButtonComponent {
|
|
1265
|
-
ariaLabel = input.required();
|
|
1265
|
+
ariaLabel = input.required(...(ngDevMode ? [{ debugName: "ariaLabel" }] : []));
|
|
1266
1266
|
/** @defaultValue false */
|
|
1267
|
-
disabled = input(false, { transform: booleanAttribute });
|
|
1268
|
-
direction = input();
|
|
1267
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : {}), transform: booleanAttribute });
|
|
1268
|
+
direction = input(...(ngDevMode ? [undefined, { debugName: "direction" }] : []));
|
|
1269
1269
|
/**
|
|
1270
1270
|
* Emit on button click.
|
|
1271
1271
|
*/
|
|
1272
1272
|
clicked = output();
|
|
1273
|
-
icon = computed(() => this.direction() === 'left' ? this.icons.elementLeft2 : this.icons.elementRight2);
|
|
1274
|
-
buttonClass = computed(() => this.direction() === 'left' ? 'previous-button' : 'next-button');
|
|
1273
|
+
icon = computed(() => this.direction() === 'left' ? this.icons.elementLeft2 : this.icons.elementRight2, ...(ngDevMode ? [{ debugName: "icon" }] : []));
|
|
1274
|
+
buttonClass = computed(() => this.direction() === 'left' ? 'previous-button' : 'next-button', ...(ngDevMode ? [{ debugName: "buttonClass" }] : []));
|
|
1275
1275
|
icons = addIcons({ elementLeft2, elementRight2 });
|
|
1276
1276
|
onClick() {
|
|
1277
1277
|
this.clicked.emit();
|
|
1278
1278
|
}
|
|
1279
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1280
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1281
|
-
role="button"
|
|
1282
|
-
type="button"
|
|
1283
|
-
class="btn btn-circle btn-sm btn-tertiary"
|
|
1284
|
-
[ngClass]="buttonClass()"
|
|
1285
|
-
[disabled]="disabled() || null"
|
|
1286
|
-
[attr.aria-label]="ariaLabel()"
|
|
1287
|
-
(click)="onClick()"
|
|
1288
|
-
>
|
|
1289
|
-
<si-icon class="icon flip-rtl" [icon]="icon()" />
|
|
1290
|
-
</button>`, isInline: true, dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1279
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiCalendarDirectionButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1280
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.8", type: SiCalendarDirectionButtonComponent, isStandalone: true, selector: "si-calendar-direction-button", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, direction: { classPropertyName: "direction", publicName: "direction", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clicked: "clicked" }, ngImport: i0, template: "<button\n role=\"button\"\n type=\"button\"\n [class]=\"`btn btn-circle btn-sm btn-tertiary ${buttonClass()}`\"\n [disabled]=\"disabled() || null\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"onClick()\"\n>\n <si-icon class=\"icon flip-rtl\" [icon]=\"icon()\" />\n</button>\n", dependencies: [{ kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1291
1281
|
}
|
|
1292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1282
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiCalendarDirectionButtonComponent, decorators: [{
|
|
1293
1283
|
type: Component,
|
|
1294
|
-
args: [{
|
|
1295
|
-
|
|
1296
|
-
imports: [NgClass, SiIconComponent],
|
|
1297
|
-
template: `<button
|
|
1298
|
-
role="button"
|
|
1299
|
-
type="button"
|
|
1300
|
-
class="btn btn-circle btn-sm btn-tertiary"
|
|
1301
|
-
[ngClass]="buttonClass()"
|
|
1302
|
-
[disabled]="disabled() || null"
|
|
1303
|
-
[attr.aria-label]="ariaLabel()"
|
|
1304
|
-
(click)="onClick()"
|
|
1305
|
-
>
|
|
1306
|
-
<si-icon class="icon flip-rtl" [icon]="icon()" />
|
|
1307
|
-
</button>`,
|
|
1308
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
1309
|
-
}]
|
|
1310
|
-
}] });
|
|
1284
|
+
args: [{ selector: 'si-calendar-direction-button', imports: [SiIconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<button\n role=\"button\"\n type=\"button\"\n [class]=\"`btn btn-circle btn-sm btn-tertiary ${buttonClass()}`\"\n [disabled]=\"disabled() || null\"\n [attr.aria-label]=\"ariaLabel()\"\n (click)=\"onClick()\"\n>\n <si-icon class=\"icon flip-rtl\" [icon]=\"icon()\" />\n</button>\n" }]
|
|
1285
|
+
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], direction: [{ type: i0.Input, args: [{ isSignal: true, alias: "direction", required: false }] }], clicked: [{ type: i0.Output, args: ["clicked"] }] } });
|
|
1311
1286
|
|
|
1312
1287
|
/**
|
|
1313
1288
|
* Copyright (c) Siemens 2016 - 2025
|
|
@@ -1318,52 +1293,52 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
1318
1293
|
*/
|
|
1319
1294
|
class SiInitialFocusComponent {
|
|
1320
1295
|
/** The cell which has the mouse hover. */
|
|
1321
|
-
activeHover = model();
|
|
1296
|
+
activeHover = model(...(ngDevMode ? [undefined, { debugName: "activeHover" }] : []));
|
|
1322
1297
|
/** The date which is displayed as selected. */
|
|
1323
|
-
startDate = input();
|
|
1298
|
+
startDate = input(...(ngDevMode ? [undefined, { debugName: "startDate" }] : []));
|
|
1324
1299
|
/** The date which is displayed as selected end. The value is only considered with enableRangeSelection. */
|
|
1325
|
-
endDate = input();
|
|
1300
|
+
endDate = input(...(ngDevMode ? [undefined, { debugName: "endDate" }] : []));
|
|
1326
1301
|
/**
|
|
1327
1302
|
* Guard to set the focus during ngAfterViewInit, we just set the focus after we first initialized the view
|
|
1328
1303
|
*
|
|
1329
1304
|
* @defaultValue true
|
|
1330
1305
|
*/
|
|
1331
|
-
initialFocus = input(true);
|
|
1306
|
+
initialFocus = input(true, ...(ngDevMode ? [{ debugName: "initialFocus" }] : []));
|
|
1332
1307
|
/** The minimum selectable date. */
|
|
1333
|
-
minDate = input();
|
|
1308
|
+
minDate = input(...(ngDevMode ? [undefined, { debugName: "minDate" }] : []));
|
|
1334
1309
|
/** The maximum selectable date. */
|
|
1335
|
-
maxDate = input();
|
|
1310
|
+
maxDate = input(...(ngDevMode ? [undefined, { debugName: "maxDate" }] : []));
|
|
1336
1311
|
/**
|
|
1337
1312
|
* Optional input to control the minimum month the datepicker can show and the user can navigate.
|
|
1338
1313
|
* The `minMonth` can be larger than the `minDate` This option enables the usage of multiple
|
|
1339
1314
|
* datepickers next to each other while the more left calendar always
|
|
1340
1315
|
* shows an earlier month the more right one.
|
|
1341
1316
|
*/
|
|
1342
|
-
minMonth = input();
|
|
1317
|
+
minMonth = input(...(ngDevMode ? [undefined, { debugName: "minMonth" }] : []));
|
|
1343
1318
|
/**
|
|
1344
1319
|
* Optional input to control the maximum month the datepicker can show and the user can navigate.
|
|
1345
1320
|
* The `maxMonth` can be smaller than the `maxDate` This option enables the usage of multiple
|
|
1346
1321
|
* datepickers next to each other while the more left calendar always
|
|
1347
1322
|
* shows an earlier month the more right one.
|
|
1348
1323
|
*/
|
|
1349
|
-
maxMonth = input();
|
|
1324
|
+
maxMonth = input(...(ngDevMode ? [undefined, { debugName: "maxMonth" }] : []));
|
|
1350
1325
|
/** Aria label for the next button. Needed for a11y. */
|
|
1351
|
-
previousLabel = input.required();
|
|
1326
|
+
previousLabel = input.required(...(ngDevMode ? [{ debugName: "previousLabel" }] : []));
|
|
1352
1327
|
/** Aria label for the next button. Needed for a11y. */
|
|
1353
|
-
nextLabel = input.required();
|
|
1328
|
+
nextLabel = input.required(...(ngDevMode ? [{ debugName: "nextLabel" }] : []));
|
|
1354
1329
|
/**
|
|
1355
1330
|
* Is range selection enabled, when enabled it shows a preview between the startDate and the focused date.
|
|
1356
1331
|
*
|
|
1357
1332
|
* @defaultValue false
|
|
1358
1333
|
*/
|
|
1359
|
-
isRangeSelection = input(false, { transform: booleanAttribute });
|
|
1334
|
+
isRangeSelection = input(false, { ...(ngDevMode ? { debugName: "isRangeSelection" } : {}), transform: booleanAttribute });
|
|
1360
1335
|
/**
|
|
1361
1336
|
* Indicate whether a range preview shall be displayed.
|
|
1362
1337
|
* When enabled a preview is visible between startDate and focusedDate.
|
|
1363
1338
|
*
|
|
1364
1339
|
* @defaultValue true
|
|
1365
1340
|
*/
|
|
1366
|
-
previewRange = input(true, { transform: booleanAttribute });
|
|
1341
|
+
previewRange = input(true, { ...(ngDevMode ? { debugName: "previewRange" } : {}), transform: booleanAttribute });
|
|
1367
1342
|
/**
|
|
1368
1343
|
* Emits when a new value is selected. In case where the value is null to
|
|
1369
1344
|
* user aborted the selection by Escape.
|
|
@@ -1385,15 +1360,15 @@ class SiInitialFocusComponent {
|
|
|
1385
1360
|
onActiveHoverChange(event) {
|
|
1386
1361
|
this.activeHover.set(event);
|
|
1387
1362
|
}
|
|
1388
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1389
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
1363
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiInitialFocusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1364
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.8", type: SiInitialFocusComponent, isStandalone: true, selector: "ng-component", inputs: { activeHover: { classPropertyName: "activeHover", publicName: "activeHover", isSignal: true, isRequired: false, transformFunction: null }, startDate: { classPropertyName: "startDate", publicName: "startDate", isSignal: true, isRequired: false, transformFunction: null }, endDate: { classPropertyName: "endDate", publicName: "endDate", isSignal: true, isRequired: false, transformFunction: null }, initialFocus: { classPropertyName: "initialFocus", publicName: "initialFocus", isSignal: true, isRequired: false, transformFunction: null }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: true, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: true, isRequired: false, transformFunction: null }, minMonth: { classPropertyName: "minMonth", publicName: "minMonth", isSignal: true, isRequired: false, transformFunction: null }, maxMonth: { classPropertyName: "maxMonth", publicName: "maxMonth", isSignal: true, isRequired: false, transformFunction: null }, previousLabel: { classPropertyName: "previousLabel", publicName: "previousLabel", isSignal: true, isRequired: true, transformFunction: null }, nextLabel: { classPropertyName: "nextLabel", publicName: "nextLabel", isSignal: true, isRequired: true, transformFunction: null }, isRangeSelection: { classPropertyName: "isRangeSelection", publicName: "isRangeSelection", isSignal: true, isRequired: false, transformFunction: null }, previewRange: { classPropertyName: "previewRange", publicName: "previewRange", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeHover: "activeHoverChange", selectedValueChange: "selectedValueChange" }, viewQueries: [{ propertyName: "calendarBody", first: true, predicate: SiCalendarBodyComponent, descendants: true, isSignal: true }], ngImport: i0, template: '', isInline: true });
|
|
1390
1365
|
}
|
|
1391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiInitialFocusComponent, decorators: [{
|
|
1392
1367
|
type: Component,
|
|
1393
1368
|
args: [{
|
|
1394
1369
|
template: ''
|
|
1395
1370
|
}]
|
|
1396
|
-
}] });
|
|
1371
|
+
}], propDecorators: { activeHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeHover", required: false }] }, { type: i0.Output, args: ["activeHoverChange"] }], startDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "startDate", required: false }] }], endDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "endDate", required: false }] }], initialFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialFocus", required: false }] }], minDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "minDate", required: false }] }], maxDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxDate", required: false }] }], minMonth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minMonth", required: false }] }], maxMonth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxMonth", required: false }] }], previousLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousLabel", required: true }] }], nextLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextLabel", required: true }] }], isRangeSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "isRangeSelection", required: false }] }], previewRange: [{ type: i0.Input, args: [{ isSignal: true, alias: "previewRange", required: false }] }], selectedValueChange: [{ type: i0.Output, args: ["selectedValueChange"] }], calendarBody: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SiCalendarBodyComponent), { isSignal: true }] }] } });
|
|
1397
1372
|
|
|
1398
1373
|
/**
|
|
1399
1374
|
* Copyright (c) Siemens 2016 - 2025
|
|
@@ -1410,31 +1385,31 @@ class SiDaySelectionComponent extends SiInitialFocusComponent {
|
|
|
1410
1385
|
*
|
|
1411
1386
|
* @defaultValue false
|
|
1412
1387
|
*/
|
|
1413
|
-
hideWeekNumbers = input(false, { transform: booleanAttribute });
|
|
1388
|
+
hideWeekNumbers = input(false, { ...(ngDevMode ? { debugName: "hideWeekNumbers" } : {}), transform: booleanAttribute });
|
|
1414
1389
|
/**
|
|
1415
1390
|
* Defines the starting day of the week. Default is `monday`.
|
|
1416
1391
|
*
|
|
1417
1392
|
* @defaultValue 'monday'
|
|
1418
1393
|
*/
|
|
1419
|
-
weekStartDay = input('monday');
|
|
1394
|
+
weekStartDay = input('monday', ...(ngDevMode ? [{ debugName: "weekStartDay" }] : []));
|
|
1420
1395
|
/**
|
|
1421
1396
|
* The active date, the cell which will receive the focus.
|
|
1422
1397
|
* @defaultValue calendarUtils.today()
|
|
1423
1398
|
*/
|
|
1424
|
-
focusedDate = model.required();
|
|
1399
|
+
focusedDate = model.required(...(ngDevMode ? [{ debugName: "focusedDate" }] : []));
|
|
1425
1400
|
/** Today button text */
|
|
1426
|
-
todayLabel = input();
|
|
1401
|
+
todayLabel = input(...(ngDevMode ? [undefined, { debugName: "todayLabel" }] : []));
|
|
1427
1402
|
/** Aria label for calendar week column */
|
|
1428
|
-
calendarWeekLabel = input();
|
|
1403
|
+
calendarWeekLabel = input(...(ngDevMode ? [undefined, { debugName: "calendarWeekLabel" }] : []));
|
|
1429
1404
|
/** Emits when the active focused date changed to another month / year, typically during keyboard navigation */
|
|
1430
1405
|
activeMonthChange = output();
|
|
1431
1406
|
/** Emits when the user requests a different to show a different view */
|
|
1432
1407
|
viewChange = output();
|
|
1433
|
-
today = computed(() => this.todayLabel() ?? this.todayDefaultText);
|
|
1408
|
+
today = computed(() => this.todayLabel() ?? this.todayDefaultText, ...(ngDevMode ? [{ debugName: "today" }] : []));
|
|
1434
1409
|
/** The translated list of week days. */
|
|
1435
|
-
days = computed(() => getDayStrings(this.locale, this.weekStartDay()));
|
|
1410
|
+
days = computed(() => getDayStrings(this.locale, this.weekStartDay()), ...(ngDevMode ? [{ debugName: "days" }] : []));
|
|
1436
1411
|
/** The week numbers which are shown as row label */
|
|
1437
|
-
weekNumbers = computed(() => this.weeks().map(w => getWeekOfYear(w[0].valueRaw, this.weekStartDay()).toString()));
|
|
1412
|
+
weekNumbers = computed(() => this.weeks().map(w => getWeekOfYear(w[0].valueRaw, this.weekStartDay()).toString()), ...(ngDevMode ? [{ debugName: "weekNumbers" }] : []));
|
|
1438
1413
|
/**
|
|
1439
1414
|
* The current visible list of calendar days.
|
|
1440
1415
|
* Every time the focusedDate changes to either another month or year the list will be rebuild.
|
|
@@ -1471,11 +1446,11 @@ class SiDaySelectionComponent extends SiInitialFocusComponent {
|
|
|
1471
1446
|
});
|
|
1472
1447
|
}
|
|
1473
1448
|
return weeks;
|
|
1474
|
-
});
|
|
1449
|
+
}, ...(ngDevMode ? [{ debugName: "weeks" }] : []));
|
|
1475
1450
|
/** Compare date based on the current view */
|
|
1476
1451
|
compareAdapter = new DayCompareAdapter();
|
|
1477
1452
|
/** Disable today button if it is the same month */
|
|
1478
|
-
isTodayButtonDisabled = computed(() => isSameMonth(today(), this.focusedDate()));
|
|
1453
|
+
isTodayButtonDisabled = computed(() => isSameMonth(today(), this.focusedDate()), ...(ngDevMode ? [{ debugName: "isTodayButtonDisabled" }] : []));
|
|
1479
1454
|
/**
|
|
1480
1455
|
* Indicate the previous button shall be disabled.
|
|
1481
1456
|
* This happens when the focusedDate is equal or before the minDate.
|
|
@@ -1484,7 +1459,7 @@ class SiDaySelectionComponent extends SiInitialFocusComponent {
|
|
|
1484
1459
|
const minDate = this.minDate();
|
|
1485
1460
|
const focusedDate = this.focusedDate();
|
|
1486
1461
|
return minDate && (isSameMonth(focusedDate, minDate) || isAfterMonth(minDate, focusedDate));
|
|
1487
|
-
});
|
|
1462
|
+
}, ...(ngDevMode ? [{ debugName: "isPreviousButtonDisabled" }] : []));
|
|
1488
1463
|
/**
|
|
1489
1464
|
* Indicate the next button shall be disabled.
|
|
1490
1465
|
* This happens when the focusedDate is equal or after the maxDate.
|
|
@@ -1493,7 +1468,7 @@ class SiDaySelectionComponent extends SiInitialFocusComponent {
|
|
|
1493
1468
|
const maxDate = this.maxDate();
|
|
1494
1469
|
const focusedDate = this.focusedDate();
|
|
1495
1470
|
return maxDate && (isSameMonth(focusedDate, maxDate) || isAfterMonth(focusedDate, maxDate));
|
|
1496
|
-
});
|
|
1471
|
+
}, ...(ngDevMode ? [{ debugName: "isNextButtonDisabled" }] : []));
|
|
1497
1472
|
locale = inject(LOCALE_ID).toString();
|
|
1498
1473
|
calendarBodyKeyDown(event) {
|
|
1499
1474
|
const isRtl = isRTL();
|
|
@@ -1573,13 +1548,13 @@ class SiDaySelectionComponent extends SiInitialFocusComponent {
|
|
|
1573
1548
|
emitViewChange(view) {
|
|
1574
1549
|
this.viewChange.emit(view);
|
|
1575
1550
|
}
|
|
1576
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1577
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1551
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDaySelectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1552
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiDaySelectionComponent, isStandalone: true, selector: "si-day-selection", inputs: { hideWeekNumbers: { classPropertyName: "hideWeekNumbers", publicName: "hideWeekNumbers", isSignal: true, isRequired: false, transformFunction: null }, weekStartDay: { classPropertyName: "weekStartDay", publicName: "weekStartDay", isSignal: true, isRequired: false, transformFunction: null }, focusedDate: { classPropertyName: "focusedDate", publicName: "focusedDate", isSignal: true, isRequired: true, transformFunction: null }, todayLabel: { classPropertyName: "todayLabel", publicName: "todayLabel", isSignal: true, isRequired: false, transformFunction: null }, calendarWeekLabel: { classPropertyName: "calendarWeekLabel", publicName: "calendarWeekLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { focusedDate: "focusedDateChange", activeMonthChange: "activeMonthChange", viewChange: "viewChange" }, usesInheritance: true, ngImport: i0, template: "<div class=\"header\">\n <si-calendar-direction-button\n direction=\"left\"\n [ariaLabel]=\"previousLabel() | translate\"\n [disabled]=\"isPreviousButtonDisabled()\"\n (clicked)=\"setMonthOffset(-1)\"\n />\n <div class=\"flex-fill\">\n <button\n type=\"button\"\n class=\"open-month-view flex-fill text-end px-2 btn btn-tertiary calendar-button\"\n tabindex=\"0\"\n (click)=\"emitViewChange('month')\"\n >\n {{ focusedDate() | date: 'MMMM' }}\n </button>\n <button\n type=\"button\"\n class=\"open-year-view flex-fill text-start px-2 btn btn-tertiary calendar-button\"\n tabindex=\"0\"\n (click)=\"emitViewChange('year')\"\n >\n {{ focusedDate() | date: 'yyyy' }}\n </button>\n </div>\n <si-calendar-direction-button\n direction=\"right\"\n [ariaLabel]=\"nextLabel() | translate\"\n [disabled]=\"isNextButtonDisabled()\"\n (clicked)=\"setMonthOffset(1)\"\n />\n</div>\n<table class=\"px-9 mt-6\" role=\"grid\">\n <thead class=\"si-calendar-table-header\">\n <tr>\n @if (!hideWeekNumbers()) {\n <th scope=\"col\" class=\"week-num\">\n <span class=\"visually-hidden\">{{ calendarWeekLabel() | translate }}</span>\n </th>\n }\n @for (day of days(); track $index) {\n <th scope=\"col\">\n <span class=\"si-hidden-xs si-hidden-sm\">{{ day }}</span>\n </th>\n }\n </tr>\n </thead>\n <tbody\n si-calendar-body\n rowLabelCssClasses=\"week-num\"\n [focusedDate]=\"focusedDate()\"\n [compareAdapter]=\"compareAdapter\"\n [startDate]=\"startDate()\"\n [endDate]=\"endDate()\"\n [enableRangeSelection]=\"isRangeSelection()\"\n [previewRange]=\"previewRange()\"\n [rows]=\"weeks()\"\n [rowLabels]=\"hideWeekNumbers() ? undefined : weekNumbers()\"\n [activeHover]=\"activeHover()\"\n (activeHoverChange)=\"onActiveHoverChange($event)\"\n (selectedValueChange)=\"emitSelectedValue($event)\"\n (focusedDateChange)=\"emitActiveDate($event!)\"\n (keydown)=\"calendarBodyKeyDown($event)\"\n >\n </tbody>\n</table>\n<div class=\"footer pt-2 ps-8 pe-8\">\n <button\n type=\"button\"\n class=\"today-button btn btn-tertiary flex-fill\"\n [disabled]=\"isTodayButtonDisabled()\"\n (click)=\"goToToday()\"\n >\n {{ today() | translate }}\n </button>\n</div>\n", dependencies: [{ kind: "component", type: SiCalendarBodyComponent, selector: "[si-calendar-body]", inputs: ["focusedDate", "startDate", "endDate", "rows", "rowLabels", "rowLabelCssClasses", "enableRangeSelection", "previewRange", "activeHover", "compareAdapter"], outputs: ["focusedDateChange", "activeHoverChange", "selectedValueChange"], exportAs: ["siCalendarBody"] }, { kind: "component", type: SiCalendarDirectionButtonComponent, selector: "si-calendar-direction-button", inputs: ["ariaLabel", "disabled", "direction"], outputs: ["clicked"] }, { kind: "pipe", type: DatePipe, name: "date" }, { kind: "pipe", type: SiTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1578
1553
|
}
|
|
1579
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1554
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDaySelectionComponent, decorators: [{
|
|
1580
1555
|
type: Component,
|
|
1581
1556
|
args: [{ selector: 'si-day-selection', imports: [DatePipe, SiCalendarBodyComponent, SiCalendarDirectionButtonComponent, SiTranslatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"header\">\n <si-calendar-direction-button\n direction=\"left\"\n [ariaLabel]=\"previousLabel() | translate\"\n [disabled]=\"isPreviousButtonDisabled()\"\n (clicked)=\"setMonthOffset(-1)\"\n />\n <div class=\"flex-fill\">\n <button\n type=\"button\"\n class=\"open-month-view flex-fill text-end px-2 btn btn-tertiary calendar-button\"\n tabindex=\"0\"\n (click)=\"emitViewChange('month')\"\n >\n {{ focusedDate() | date: 'MMMM' }}\n </button>\n <button\n type=\"button\"\n class=\"open-year-view flex-fill text-start px-2 btn btn-tertiary calendar-button\"\n tabindex=\"0\"\n (click)=\"emitViewChange('year')\"\n >\n {{ focusedDate() | date: 'yyyy' }}\n </button>\n </div>\n <si-calendar-direction-button\n direction=\"right\"\n [ariaLabel]=\"nextLabel() | translate\"\n [disabled]=\"isNextButtonDisabled()\"\n (clicked)=\"setMonthOffset(1)\"\n />\n</div>\n<table class=\"px-9 mt-6\" role=\"grid\">\n <thead class=\"si-calendar-table-header\">\n <tr>\n @if (!hideWeekNumbers()) {\n <th scope=\"col\" class=\"week-num\">\n <span class=\"visually-hidden\">{{ calendarWeekLabel() | translate }}</span>\n </th>\n }\n @for (day of days(); track $index) {\n <th scope=\"col\">\n <span class=\"si-hidden-xs si-hidden-sm\">{{ day }}</span>\n </th>\n }\n </tr>\n </thead>\n <tbody\n si-calendar-body\n rowLabelCssClasses=\"week-num\"\n [focusedDate]=\"focusedDate()\"\n [compareAdapter]=\"compareAdapter\"\n [startDate]=\"startDate()\"\n [endDate]=\"endDate()\"\n [enableRangeSelection]=\"isRangeSelection()\"\n [previewRange]=\"previewRange()\"\n [rows]=\"weeks()\"\n [rowLabels]=\"hideWeekNumbers() ? undefined : weekNumbers()\"\n [activeHover]=\"activeHover()\"\n (activeHoverChange)=\"onActiveHoverChange($event)\"\n (selectedValueChange)=\"emitSelectedValue($event)\"\n (focusedDateChange)=\"emitActiveDate($event!)\"\n (keydown)=\"calendarBodyKeyDown($event)\"\n >\n </tbody>\n</table>\n<div class=\"footer pt-2 ps-8 pe-8\">\n <button\n type=\"button\"\n class=\"today-button btn btn-tertiary flex-fill\"\n [disabled]=\"isTodayButtonDisabled()\"\n (click)=\"goToToday()\"\n >\n {{ today() | translate }}\n </button>\n</div>\n" }]
|
|
1582
|
-
}] });
|
|
1557
|
+
}], propDecorators: { hideWeekNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideWeekNumbers", required: false }] }], weekStartDay: [{ type: i0.Input, args: [{ isSignal: true, alias: "weekStartDay", required: false }] }], focusedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedDate", required: true }] }, { type: i0.Output, args: ["focusedDateChange"] }], todayLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "todayLabel", required: false }] }], calendarWeekLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "calendarWeekLabel", required: false }] }], activeMonthChange: [{ type: i0.Output, args: ["activeMonthChange"] }], viewChange: [{ type: i0.Output, args: ["viewChange"] }] } });
|
|
1583
1558
|
|
|
1584
1559
|
/**
|
|
1585
1560
|
* Copyright (c) Siemens 2016 - 2025
|
|
@@ -1595,11 +1570,11 @@ class SiMonthSelectionComponent extends SiInitialFocusComponent {
|
|
|
1595
1570
|
*
|
|
1596
1571
|
* @defaultValue []
|
|
1597
1572
|
*/
|
|
1598
|
-
months = input([]);
|
|
1573
|
+
months = input([], ...(ngDevMode ? [{ debugName: "months" }] : []));
|
|
1599
1574
|
/**
|
|
1600
1575
|
* The active date, the cell which will receive the focus.
|
|
1601
1576
|
*/
|
|
1602
|
-
focusedDate = model.required();
|
|
1577
|
+
focusedDate = model.required(...(ngDevMode ? [{ debugName: "focusedDate" }] : []));
|
|
1603
1578
|
/** Emits when the active focused date is changed to another month / year, typically during keyboard navigation. */
|
|
1604
1579
|
activeMonthChange = output();
|
|
1605
1580
|
/** Emits when the user requests a different to show a different view. */
|
|
@@ -1626,7 +1601,7 @@ class SiMonthSelectionComponent extends SiInitialFocusComponent {
|
|
|
1626
1601
|
const minDate = this.minDate();
|
|
1627
1602
|
const focusedDate = this.focusedDate();
|
|
1628
1603
|
return minDate && (isSameYear(focusedDate, minDate) || isAfterYear(minDate, focusedDate));
|
|
1629
|
-
});
|
|
1604
|
+
}, ...(ngDevMode ? [{ debugName: "isPreviousButtonDisabled" }] : []));
|
|
1630
1605
|
/**
|
|
1631
1606
|
* Indicate the next button shall be disabled.
|
|
1632
1607
|
* This happens when the focusedDate is equal or after the maxDate.
|
|
@@ -1635,7 +1610,7 @@ class SiMonthSelectionComponent extends SiInitialFocusComponent {
|
|
|
1635
1610
|
const maxDate = this.maxDate();
|
|
1636
1611
|
const focusedDate = this.focusedDate();
|
|
1637
1612
|
return maxDate && (isSameYear(focusedDate, maxDate) || isAfterYear(focusedDate, maxDate));
|
|
1638
|
-
});
|
|
1613
|
+
}, ...(ngDevMode ? [{ debugName: "isNextButtonDisabled" }] : []));
|
|
1639
1614
|
ngOnChanges(changes) {
|
|
1640
1615
|
if (changes.maxDate ||
|
|
1641
1616
|
changes.minDate ||
|
|
@@ -1744,13 +1719,13 @@ class SiMonthSelectionComponent extends SiInitialFocusComponent {
|
|
|
1744
1719
|
}
|
|
1745
1720
|
this.monthCells.push(row);
|
|
1746
1721
|
}
|
|
1747
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1748
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1722
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiMonthSelectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1723
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.8", type: SiMonthSelectionComponent, isStandalone: true, selector: "si-month-selection", inputs: { months: { classPropertyName: "months", publicName: "months", isSignal: true, isRequired: false, transformFunction: null }, focusedDate: { classPropertyName: "focusedDate", publicName: "focusedDate", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { focusedDate: "focusedDateChange", activeMonthChange: "activeMonthChange", viewChange: "viewChange" }, host: { listeners: { "keydown.Escape": "triggerEsc($event)" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"header\">\n <si-calendar-direction-button\n direction=\"left\"\n [ariaLabel]=\"previousLabel()\"\n [disabled]=\"isPreviousButtonDisabled()\"\n (clicked)=\"setYearOffset(-1)\"\n />\n <button\n type=\"button\"\n class=\"open-year-view flex-fill mx-4 btn btn-tertiary calendar-button\"\n tabindex=\"0\"\n (click)=\"emitViewChange()\"\n >\n {{ focusedDate() | date: 'yyyy' }}\n </button>\n <si-calendar-direction-button\n direction=\"right\"\n [ariaLabel]=\"nextLabel()\"\n [disabled]=\"isNextButtonDisabled()\"\n (clicked)=\"setYearOffset(1)\"\n />\n</div>\n<table class=\"px-9 mt-6\" role=\"grid\">\n <tbody\n si-calendar-body\n [focusedDate]=\"focusedDate()\"\n [compareAdapter]=\"compareAdapter\"\n [startDate]=\"startDate()\"\n [endDate]=\"endDate()\"\n [enableRangeSelection]=\"isRangeSelection()\"\n [previewRange]=\"previewRange()\"\n [rows]=\"monthCells\"\n [activeHover]=\"activeHover()\"\n (activeHoverChange)=\"onActiveHoverChange($event)\"\n (selectedValueChange)=\"emitSelectedValue($event)\"\n (focusedDateChange)=\"emitFocusedDate($event)\"\n (keydown)=\"calendarBodyKeyDown($event)\"\n >\n </tbody>\n</table>\n", dependencies: [{ kind: "component", type: SiCalendarDirectionButtonComponent, selector: "si-calendar-direction-button", inputs: ["ariaLabel", "disabled", "direction"], outputs: ["clicked"] }, { kind: "component", type: SiCalendarBodyComponent, selector: "[si-calendar-body]", inputs: ["focusedDate", "startDate", "endDate", "rows", "rowLabels", "rowLabelCssClasses", "enableRangeSelection", "previewRange", "activeHover", "compareAdapter"], outputs: ["focusedDateChange", "activeHoverChange", "selectedValueChange"], exportAs: ["siCalendarBody"] }, { kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1749
1724
|
}
|
|
1750
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiMonthSelectionComponent, decorators: [{
|
|
1751
1726
|
type: Component,
|
|
1752
1727
|
args: [{ selector: 'si-month-selection', imports: [SiCalendarDirectionButtonComponent, SiCalendarBodyComponent, DatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"header\">\n <si-calendar-direction-button\n direction=\"left\"\n [ariaLabel]=\"previousLabel()\"\n [disabled]=\"isPreviousButtonDisabled()\"\n (clicked)=\"setYearOffset(-1)\"\n />\n <button\n type=\"button\"\n class=\"open-year-view flex-fill mx-4 btn btn-tertiary calendar-button\"\n tabindex=\"0\"\n (click)=\"emitViewChange()\"\n >\n {{ focusedDate() | date: 'yyyy' }}\n </button>\n <si-calendar-direction-button\n direction=\"right\"\n [ariaLabel]=\"nextLabel()\"\n [disabled]=\"isNextButtonDisabled()\"\n (clicked)=\"setYearOffset(1)\"\n />\n</div>\n<table class=\"px-9 mt-6\" role=\"grid\">\n <tbody\n si-calendar-body\n [focusedDate]=\"focusedDate()\"\n [compareAdapter]=\"compareAdapter\"\n [startDate]=\"startDate()\"\n [endDate]=\"endDate()\"\n [enableRangeSelection]=\"isRangeSelection()\"\n [previewRange]=\"previewRange()\"\n [rows]=\"monthCells\"\n [activeHover]=\"activeHover()\"\n (activeHoverChange)=\"onActiveHoverChange($event)\"\n (selectedValueChange)=\"emitSelectedValue($event)\"\n (focusedDateChange)=\"emitFocusedDate($event)\"\n (keydown)=\"calendarBodyKeyDown($event)\"\n >\n </tbody>\n</table>\n" }]
|
|
1753
|
-
}], propDecorators: { triggerEsc: [{
|
|
1728
|
+
}], propDecorators: { months: [{ type: i0.Input, args: [{ isSignal: true, alias: "months", required: false }] }], focusedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedDate", required: true }] }, { type: i0.Output, args: ["focusedDateChange"] }], activeMonthChange: [{ type: i0.Output, args: ["activeMonthChange"] }], viewChange: [{ type: i0.Output, args: ["viewChange"] }], triggerEsc: [{
|
|
1754
1729
|
type: HostListener,
|
|
1755
1730
|
args: ['keydown.Escape', ['$event']]
|
|
1756
1731
|
}] } });
|
|
@@ -1767,7 +1742,7 @@ class SiYearSelectionComponent extends SiInitialFocusComponent {
|
|
|
1767
1742
|
/**
|
|
1768
1743
|
* The active date, the cell which will receive the focus.
|
|
1769
1744
|
*/
|
|
1770
|
-
focusedDate = model.required();
|
|
1745
|
+
focusedDate = model.required(...(ngDevMode ? [{ debugName: "focusedDate" }] : []));
|
|
1771
1746
|
/** Emits when the active focused date changed to another month / year, typically during keyboard navigation. */
|
|
1772
1747
|
yearRangeChange = output();
|
|
1773
1748
|
/** Listen Escape event to switch view back */
|
|
@@ -1781,9 +1756,9 @@ class SiYearSelectionComponent extends SiInitialFocusComponent {
|
|
|
1781
1756
|
/** The number of years which shall be displayed, this number should be even and dividable by columnCount */
|
|
1782
1757
|
yearsToDisplay = 18;
|
|
1783
1758
|
/** Lower windows bound for displayed year range */
|
|
1784
|
-
fromYear = signal(undefined);
|
|
1759
|
+
fromYear = signal(undefined, ...(ngDevMode ? [{ debugName: "fromYear" }] : []));
|
|
1785
1760
|
/** Upper windows bound for displayed year range */
|
|
1786
|
-
toYear = signal(undefined);
|
|
1761
|
+
toYear = signal(undefined, ...(ngDevMode ? [{ debugName: "toYear" }] : []));
|
|
1787
1762
|
/**
|
|
1788
1763
|
* The current visible list of calendar years.
|
|
1789
1764
|
* Every time the focusedDate changes to another year the list will be rebuilt.
|
|
@@ -1800,7 +1775,7 @@ class SiYearSelectionComponent extends SiInitialFocusComponent {
|
|
|
1800
1775
|
const min = minDate(minDate$1, minMonth);
|
|
1801
1776
|
return (this.compareAdapter.isEqual(this.fromYear(), min) ||
|
|
1802
1777
|
this.compareAdapter.isAfter(min, this.fromYear()));
|
|
1803
|
-
});
|
|
1778
|
+
}, ...(ngDevMode ? [{ debugName: "isPreviousButtonDisabled" }] : []));
|
|
1804
1779
|
/** Is next button disabled based on the maxDate */
|
|
1805
1780
|
isNextButtonDisabled = computed(() => {
|
|
1806
1781
|
const maxDate = this.maxDate();
|
|
@@ -1809,7 +1784,7 @@ class SiYearSelectionComponent extends SiInitialFocusComponent {
|
|
|
1809
1784
|
}
|
|
1810
1785
|
return (this.compareAdapter.isEqual(this.toYear(), maxDate) ||
|
|
1811
1786
|
this.compareAdapter.isAfter(this.toYear(), maxDate));
|
|
1812
|
-
});
|
|
1787
|
+
}, ...(ngDevMode ? [{ debugName: "isNextButtonDisabled" }] : []));
|
|
1813
1788
|
ngOnChanges(changes) {
|
|
1814
1789
|
if (changes.startDate || changes.focusedDate || changes.maxDate || changes.minDate) {
|
|
1815
1790
|
this.initView();
|
|
@@ -1953,13 +1928,13 @@ class SiYearSelectionComponent extends SiInitialFocusComponent {
|
|
|
1953
1928
|
this.initView();
|
|
1954
1929
|
}
|
|
1955
1930
|
}
|
|
1956
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1957
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
1931
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiYearSelectionComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
1932
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.0.8", type: SiYearSelectionComponent, isStandalone: true, selector: "si-year-selection", inputs: { focusedDate: { classPropertyName: "focusedDate", publicName: "focusedDate", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { focusedDate: "focusedDateChange", yearRangeChange: "yearRangeChange" }, host: { listeners: { "keydown.Escape": "triggerEsc($event)" } }, usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div class=\"header\">\n <si-calendar-direction-button\n direction=\"left\"\n [ariaLabel]=\"previousLabel()\"\n [disabled]=\"isPreviousButtonDisabled()\"\n (clicked)=\"changeVisibleYearRange(-1)\"\n />\n <span class=\"year-range-label flex-fill mx-4 si-h4 text-secondary calendar-button\">\n {{ fromYear() | date: 'yyyy' }} - {{ toYear() | date: 'yyyy' }}\n </span>\n <si-calendar-direction-button\n direction=\"right\"\n [ariaLabel]=\"nextLabel()\"\n [disabled]=\"isNextButtonDisabled()\"\n (clicked)=\"changeVisibleYearRange(1)\"\n />\n</div>\n<table class=\"px-9 mt-6\" role=\"grid\">\n <tbody\n si-calendar-body\n [focusedDate]=\"focusedDate()\"\n [compareAdapter]=\"compareAdapter\"\n [startDate]=\"startDate()\"\n [endDate]=\"endDate()\"\n [enableRangeSelection]=\"isRangeSelection()\"\n [previewRange]=\"previewRange()\"\n [rows]=\"yearCells\"\n (selectedValueChange)=\"emitSelectedValue($event)\"\n (keydown)=\"calendarBodyKeyDown($event)\"\n >\n </tbody>\n</table>\n", dependencies: [{ kind: "component", type: SiCalendarDirectionButtonComponent, selector: "si-calendar-direction-button", inputs: ["ariaLabel", "disabled", "direction"], outputs: ["clicked"] }, { kind: "component", type: SiCalendarBodyComponent, selector: "[si-calendar-body]", inputs: ["focusedDate", "startDate", "endDate", "rows", "rowLabels", "rowLabelCssClasses", "enableRangeSelection", "previewRange", "activeHover", "compareAdapter"], outputs: ["focusedDateChange", "activeHoverChange", "selectedValueChange"], exportAs: ["siCalendarBody"] }, { kind: "pipe", type: DatePipe, name: "date" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1958
1933
|
}
|
|
1959
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1934
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiYearSelectionComponent, decorators: [{
|
|
1960
1935
|
type: Component,
|
|
1961
1936
|
args: [{ selector: 'si-year-selection', imports: [SiCalendarDirectionButtonComponent, SiCalendarBodyComponent, DatePipe], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"header\">\n <si-calendar-direction-button\n direction=\"left\"\n [ariaLabel]=\"previousLabel()\"\n [disabled]=\"isPreviousButtonDisabled()\"\n (clicked)=\"changeVisibleYearRange(-1)\"\n />\n <span class=\"year-range-label flex-fill mx-4 si-h4 text-secondary calendar-button\">\n {{ fromYear() | date: 'yyyy' }} - {{ toYear() | date: 'yyyy' }}\n </span>\n <si-calendar-direction-button\n direction=\"right\"\n [ariaLabel]=\"nextLabel()\"\n [disabled]=\"isNextButtonDisabled()\"\n (clicked)=\"changeVisibleYearRange(1)\"\n />\n</div>\n<table class=\"px-9 mt-6\" role=\"grid\">\n <tbody\n si-calendar-body\n [focusedDate]=\"focusedDate()\"\n [compareAdapter]=\"compareAdapter\"\n [startDate]=\"startDate()\"\n [endDate]=\"endDate()\"\n [enableRangeSelection]=\"isRangeSelection()\"\n [previewRange]=\"previewRange()\"\n [rows]=\"yearCells\"\n (selectedValueChange)=\"emitSelectedValue($event)\"\n (keydown)=\"calendarBodyKeyDown($event)\"\n >\n </tbody>\n</table>\n" }]
|
|
1962
|
-
}], propDecorators: { triggerEsc: [{
|
|
1937
|
+
}], propDecorators: { focusedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedDate", required: true }] }, { type: i0.Output, args: ["focusedDateChange"] }], yearRangeChange: [{ type: i0.Output, args: ["yearRangeChange"] }], triggerEsc: [{
|
|
1963
1938
|
type: HostListener,
|
|
1964
1939
|
args: ['keydown.Escape', ['$event']]
|
|
1965
1940
|
}] } });
|
|
@@ -1979,7 +1954,7 @@ class SiTimepickerComponent {
|
|
|
1979
1954
|
* `__si-timepicker-${SiTimepickerComponent.idCounter++}`
|
|
1980
1955
|
* ```
|
|
1981
1956
|
*/
|
|
1982
|
-
id = input(`__si-timepicker-${SiTimepickerComponent.idCounter++}
|
|
1957
|
+
id = input(`__si-timepicker-${SiTimepickerComponent.idCounter++}`, ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
1983
1958
|
labelledby = inject(new HostAttributeToken('aria-labelledby'), {
|
|
1984
1959
|
optional: true
|
|
1985
1960
|
}) ?? `${this.id()}-label`;
|
|
@@ -1989,108 +1964,108 @@ class SiTimepickerComponent {
|
|
|
1989
1964
|
* @defaultValue false
|
|
1990
1965
|
*/
|
|
1991
1966
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
1992
|
-
disabledInput = input(false, { alias: 'disabled' });
|
|
1967
|
+
disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : {}), alias: 'disabled' });
|
|
1993
1968
|
/**
|
|
1994
1969
|
* @defaultValue 'hh'
|
|
1995
1970
|
*/
|
|
1996
|
-
hoursLabel = input('hh');
|
|
1971
|
+
hoursLabel = input('hh', ...(ngDevMode ? [{ debugName: "hoursLabel" }] : []));
|
|
1997
1972
|
/**
|
|
1998
1973
|
* @defaultValue 'mm'
|
|
1999
1974
|
*/
|
|
2000
|
-
minutesLabel = input('mm');
|
|
1975
|
+
minutesLabel = input('mm', ...(ngDevMode ? [{ debugName: "minutesLabel" }] : []));
|
|
2001
1976
|
/**
|
|
2002
1977
|
* @defaultValue 'ss'
|
|
2003
1978
|
*/
|
|
2004
|
-
secondsLabel = input('ss');
|
|
1979
|
+
secondsLabel = input('ss', ...(ngDevMode ? [{ debugName: "secondsLabel" }] : []));
|
|
2005
1980
|
/**
|
|
2006
1981
|
* @defaultValue 'ms'
|
|
2007
1982
|
*/
|
|
2008
|
-
millisecondsLabel = input('ms');
|
|
1983
|
+
millisecondsLabel = input('ms', ...(ngDevMode ? [{ debugName: "millisecondsLabel" }] : []));
|
|
2009
1984
|
/**
|
|
2010
1985
|
* Hide the labels of the input fields.
|
|
2011
1986
|
* @defaultValue false
|
|
2012
1987
|
*/
|
|
2013
|
-
hideLabels = input(false, { transform: booleanAttribute });
|
|
1988
|
+
hideLabels = input(false, { ...(ngDevMode ? { debugName: "hideLabels" } : {}), transform: booleanAttribute });
|
|
2014
1989
|
/**
|
|
2015
1990
|
* @defaultValue
|
|
2016
1991
|
* ```
|
|
2017
1992
|
* t(() => $localize`:@@SI_DATEPICKER.HOURS:Hours`)
|
|
2018
1993
|
* ```
|
|
2019
1994
|
*/
|
|
2020
|
-
hoursAriaLabel = input(t(() => $localize `:@@SI_DATEPICKER.HOURS:Hours`));
|
|
1995
|
+
hoursAriaLabel = input(t(() => $localize `:@@SI_DATEPICKER.HOURS:Hours`), ...(ngDevMode ? [{ debugName: "hoursAriaLabel" }] : []));
|
|
2021
1996
|
/**
|
|
2022
1997
|
* @defaultValue
|
|
2023
1998
|
* ```
|
|
2024
1999
|
* t(() => $localize`:@@SI_DATEPICKER.MINUTES:Minutes`)
|
|
2025
2000
|
* ```
|
|
2026
2001
|
*/
|
|
2027
|
-
minutesAriaLabel = input(t(() => $localize `:@@SI_DATEPICKER.MINUTES:Minutes`));
|
|
2002
|
+
minutesAriaLabel = input(t(() => $localize `:@@SI_DATEPICKER.MINUTES:Minutes`), ...(ngDevMode ? [{ debugName: "minutesAriaLabel" }] : []));
|
|
2028
2003
|
/**
|
|
2029
2004
|
* @defaultValue
|
|
2030
2005
|
* ```
|
|
2031
2006
|
* t(() => $localize`:@@SI_DATEPICKER.SECONDS:Seconds`)
|
|
2032
2007
|
* ```
|
|
2033
2008
|
*/
|
|
2034
|
-
secondsAriaLabel = input(t(() => $localize `:@@SI_DATEPICKER.SECONDS:Seconds`));
|
|
2009
|
+
secondsAriaLabel = input(t(() => $localize `:@@SI_DATEPICKER.SECONDS:Seconds`), ...(ngDevMode ? [{ debugName: "secondsAriaLabel" }] : []));
|
|
2035
2010
|
/**
|
|
2036
2011
|
* @defaultValue
|
|
2037
2012
|
* ```
|
|
2038
2013
|
* t(() => $localize`:@@SI_DATEPICKER.MILLISECONDS:Milliseconds`)
|
|
2039
2014
|
* ```
|
|
2040
2015
|
*/
|
|
2041
|
-
millisecondsAriaLabel = input(t(() => $localize `:@@SI_DATEPICKER.MILLISECONDS:Milliseconds`));
|
|
2016
|
+
millisecondsAriaLabel = input(t(() => $localize `:@@SI_DATEPICKER.MILLISECONDS:Milliseconds`), ...(ngDevMode ? [{ debugName: "millisecondsAriaLabel" }] : []));
|
|
2042
2017
|
/**
|
|
2043
2018
|
* @defaultValue 'hh'
|
|
2044
2019
|
*/
|
|
2045
|
-
hoursPlaceholder = input('hh');
|
|
2020
|
+
hoursPlaceholder = input('hh', ...(ngDevMode ? [{ debugName: "hoursPlaceholder" }] : []));
|
|
2046
2021
|
/**
|
|
2047
2022
|
* @defaultValue 'mm'
|
|
2048
2023
|
*/
|
|
2049
|
-
minutesPlaceholder = input('mm');
|
|
2024
|
+
minutesPlaceholder = input('mm', ...(ngDevMode ? [{ debugName: "minutesPlaceholder" }] : []));
|
|
2050
2025
|
/**
|
|
2051
2026
|
* @defaultValue 'ss'
|
|
2052
2027
|
*/
|
|
2053
|
-
secondsPlaceholder = input('ss');
|
|
2028
|
+
secondsPlaceholder = input('ss', ...(ngDevMode ? [{ debugName: "secondsPlaceholder" }] : []));
|
|
2054
2029
|
/**
|
|
2055
2030
|
* @defaultValue 'ms'
|
|
2056
2031
|
*/
|
|
2057
|
-
millisecondsPlaceholder = input('ms');
|
|
2058
|
-
meridians = input();
|
|
2032
|
+
millisecondsPlaceholder = input('ms', ...(ngDevMode ? [{ debugName: "millisecondsPlaceholder" }] : []));
|
|
2033
|
+
meridians = input(...(ngDevMode ? [undefined, { debugName: "meridians" }] : []));
|
|
2059
2034
|
/**
|
|
2060
2035
|
* @defaultValue 'am/pm'
|
|
2061
2036
|
*/
|
|
2062
|
-
meridiansLabel = input('am/pm');
|
|
2037
|
+
meridiansLabel = input('am/pm', ...(ngDevMode ? [{ debugName: "meridiansLabel" }] : []));
|
|
2063
2038
|
/**
|
|
2064
2039
|
* @defaultValue
|
|
2065
2040
|
* ```
|
|
2066
2041
|
* t(() => $localize`:@@SI_DATEPICKER.PERIOD:Period`)
|
|
2067
2042
|
* ```
|
|
2068
2043
|
*/
|
|
2069
|
-
meridiansAriaLabel = input(t(() => $localize `:@@SI_DATEPICKER.PERIOD:Period`));
|
|
2044
|
+
meridiansAriaLabel = input(t(() => $localize `:@@SI_DATEPICKER.PERIOD:Period`), ...(ngDevMode ? [{ debugName: "meridiansAriaLabel" }] : []));
|
|
2070
2045
|
/** @defaultValue true */
|
|
2071
|
-
showMinutes = input(true, { transform: booleanAttribute });
|
|
2046
|
+
showMinutes = input(true, { ...(ngDevMode ? { debugName: "showMinutes" } : {}), transform: booleanAttribute });
|
|
2072
2047
|
/** @defaultValue false */
|
|
2073
|
-
showSeconds = input(false, { transform: booleanAttribute });
|
|
2048
|
+
showSeconds = input(false, { ...(ngDevMode ? { debugName: "showSeconds" } : {}), transform: booleanAttribute });
|
|
2074
2049
|
/** @defaultValue false */
|
|
2075
|
-
showMilliseconds = input(false, { transform: booleanAttribute });
|
|
2050
|
+
showMilliseconds = input(false, { ...(ngDevMode ? { debugName: "showMilliseconds" } : {}), transform: booleanAttribute });
|
|
2076
2051
|
/**
|
|
2077
2052
|
* Show time in 12-hour period including the select to toggle between AM/PM.
|
|
2078
2053
|
*/
|
|
2079
|
-
showMeridian = input();
|
|
2054
|
+
showMeridian = input(...(ngDevMode ? [undefined, { debugName: "showMeridian" }] : []));
|
|
2080
2055
|
/**
|
|
2081
2056
|
* A minimum time limit. The date part of the date object will be ignored.
|
|
2082
2057
|
*/
|
|
2083
|
-
min = input();
|
|
2058
|
+
min = input(...(ngDevMode ? [undefined, { debugName: "min" }] : []));
|
|
2084
2059
|
/**
|
|
2085
2060
|
* A maximum time limit. The date part of the date object will be ignored.
|
|
2086
2061
|
*/
|
|
2087
|
-
max = input();
|
|
2062
|
+
max = input(...(ngDevMode ? [undefined, { debugName: "max" }] : []));
|
|
2088
2063
|
/** @defaultValue false */
|
|
2089
|
-
readonly = input(false, { transform: booleanAttribute });
|
|
2064
|
+
readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : {}), transform: booleanAttribute });
|
|
2090
2065
|
isValid = output();
|
|
2091
2066
|
meridianChange = output();
|
|
2092
2067
|
inputCompleted = output();
|
|
2093
|
-
inputParts = viewChildren('inputPart');
|
|
2068
|
+
inputParts = viewChildren('inputPart', ...(ngDevMode ? [{ debugName: "inputParts" }] : []));
|
|
2094
2069
|
/**
|
|
2095
2070
|
* This ID will be bound to the `aria-describedby` attribute of the timepicker.
|
|
2096
2071
|
* Use this to reference the element containing the error message(s) for the timepicker.
|
|
@@ -2101,17 +2076,17 @@ class SiTimepickerComponent {
|
|
|
2101
2076
|
* `${this.id()}-errormessage`
|
|
2102
2077
|
* ```
|
|
2103
2078
|
*/
|
|
2104
|
-
errormessageId = input(`${this.id()}-errormessage
|
|
2079
|
+
errormessageId = input(`${this.id()}-errormessage`, ...(ngDevMode ? [{ debugName: "errormessageId" }] : []));
|
|
2105
2080
|
onChange = () => { };
|
|
2106
2081
|
onTouched = () => { };
|
|
2107
2082
|
// The following are the time values for the ui.
|
|
2108
2083
|
periods = computed(() => {
|
|
2109
2084
|
const meridians = this.meridians();
|
|
2110
2085
|
return meridians?.length ? meridians : this.periodDefaults;
|
|
2111
|
-
});
|
|
2112
|
-
use12HourClock = computed(() => this.showMeridian() ?? getLocaleTimeFormat(this.locale, FormatWidth.Full).includes('a'));
|
|
2113
|
-
disabled = computed(() => this.disabledInput() || this.disabledNgControl());
|
|
2114
|
-
meridian = signal('');
|
|
2086
|
+
}, ...(ngDevMode ? [{ debugName: "periods" }] : []));
|
|
2087
|
+
use12HourClock = computed(() => this.showMeridian() ?? getLocaleTimeFormat(this.locale, FormatWidth.Full).includes('a'), ...(ngDevMode ? [{ debugName: "use12HourClock" }] : []));
|
|
2088
|
+
disabled = computed(() => this.disabledInput() || this.disabledNgControl(), ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
2089
|
+
meridian = signal('', ...(ngDevMode ? [{ debugName: "meridian" }] : []));
|
|
2115
2090
|
units = computed(() => {
|
|
2116
2091
|
const config = [
|
|
2117
2092
|
{
|
|
@@ -2155,7 +2130,7 @@ class SiTimepickerComponent {
|
|
|
2155
2130
|
});
|
|
2156
2131
|
}
|
|
2157
2132
|
return config;
|
|
2158
|
-
});
|
|
2133
|
+
}, ...(ngDevMode ? [{ debugName: "units" }] : []));
|
|
2159
2134
|
/* Input fields state */
|
|
2160
2135
|
timeControls = this.formBuilder.group({
|
|
2161
2136
|
hours: this.formBuilder.nonNullable.control('', [this.validateTime('hours')]),
|
|
@@ -2174,7 +2149,7 @@ class SiTimepickerComponent {
|
|
|
2174
2149
|
}
|
|
2175
2150
|
return false;
|
|
2176
2151
|
}
|
|
2177
|
-
disabledNgControl = signal(false);
|
|
2152
|
+
disabledNgControl = signal(false, ...(ngDevMode ? [{ debugName: "disabledNgControl" }] : []));
|
|
2178
2153
|
/**
|
|
2179
2154
|
* Holds the time as date object that is presented by this control.
|
|
2180
2155
|
*/
|
|
@@ -2515,8 +2490,8 @@ class SiTimepickerComponent {
|
|
|
2515
2490
|
return null;
|
|
2516
2491
|
};
|
|
2517
2492
|
}
|
|
2518
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2519
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
2493
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiTimepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2494
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiTimepickerComponent, isStandalone: true, selector: "si-timepicker", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, hoursLabel: { classPropertyName: "hoursLabel", publicName: "hoursLabel", isSignal: true, isRequired: false, transformFunction: null }, minutesLabel: { classPropertyName: "minutesLabel", publicName: "minutesLabel", isSignal: true, isRequired: false, transformFunction: null }, secondsLabel: { classPropertyName: "secondsLabel", publicName: "secondsLabel", isSignal: true, isRequired: false, transformFunction: null }, millisecondsLabel: { classPropertyName: "millisecondsLabel", publicName: "millisecondsLabel", isSignal: true, isRequired: false, transformFunction: null }, hideLabels: { classPropertyName: "hideLabels", publicName: "hideLabels", isSignal: true, isRequired: false, transformFunction: null }, hoursAriaLabel: { classPropertyName: "hoursAriaLabel", publicName: "hoursAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, minutesAriaLabel: { classPropertyName: "minutesAriaLabel", publicName: "minutesAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, secondsAriaLabel: { classPropertyName: "secondsAriaLabel", publicName: "secondsAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, millisecondsAriaLabel: { classPropertyName: "millisecondsAriaLabel", publicName: "millisecondsAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, hoursPlaceholder: { classPropertyName: "hoursPlaceholder", publicName: "hoursPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, minutesPlaceholder: { classPropertyName: "minutesPlaceholder", publicName: "minutesPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, secondsPlaceholder: { classPropertyName: "secondsPlaceholder", publicName: "secondsPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, millisecondsPlaceholder: { classPropertyName: "millisecondsPlaceholder", publicName: "millisecondsPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, meridians: { classPropertyName: "meridians", publicName: "meridians", isSignal: true, isRequired: false, transformFunction: null }, meridiansLabel: { classPropertyName: "meridiansLabel", publicName: "meridiansLabel", isSignal: true, isRequired: false, transformFunction: null }, meridiansAriaLabel: { classPropertyName: "meridiansAriaLabel", publicName: "meridiansAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, showMinutes: { classPropertyName: "showMinutes", publicName: "showMinutes", isSignal: true, isRequired: false, transformFunction: null }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: true, isRequired: false, transformFunction: null }, showMilliseconds: { classPropertyName: "showMilliseconds", publicName: "showMilliseconds", isSignal: true, isRequired: false, transformFunction: null }, showMeridian: { classPropertyName: "showMeridian", publicName: "showMeridian", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, errormessageId: { classPropertyName: "errormessageId", publicName: "errormessageId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isValid: "isValid", meridianChange: "meridianChange", inputCompleted: "inputCompleted" }, host: { attributes: { "role": "group" }, properties: { "class.readonly": "readonly()", "attr.aria-labelledby": "labelledby" }, classAttribute: "form-custom-control" }, providers: [
|
|
2520
2495
|
{
|
|
2521
2496
|
provide: NG_VALUE_ACCESSOR,
|
|
2522
2497
|
useExisting: SiTimepickerComponent,
|
|
@@ -2533,7 +2508,7 @@ class SiTimepickerComponent {
|
|
|
2533
2508
|
}
|
|
2534
2509
|
], viewQueries: [{ propertyName: "inputParts", predicate: ["inputPart"], descendants: true, isSignal: true }], ngImport: i0, template: "<div\n class=\"d-flex flex-row flex-wrap\"\n cdkMonitorSubtreeFocus\n (cdkFocusChange)=\"focusChange($event)\"\n>\n @for (config of units(); track $index) {\n @if (!$first) {\n <ng-container *ngTemplateOutlet=\"separator; context: { separator: config.separator }\" />\n }\n <label class=\"min-width\">\n @if (!hideLabels()) {\n <span class=\"form-label\">{{ (config.label | translate) || ' ' }}</span>\n }\n <input\n #inputPart\n autocomplete=\"off\"\n class=\"form-control hide-feedback-icon\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"config.ariaLabel | translate\"\n [attr.aria-describedby]=\"errormessageId()\"\n [attr.maxlength]=\"config.maxLength\"\n [formControl]=\"timeControls.controls[config.name]\"\n [name]=\"config.name\"\n [placeholder]=\"config.placeholder\"\n [readonly]=\"readonly()\"\n (blur)=\"updateField(config.name, toHtmlInputElement($event.target).value)\"\n (keydown)=\"handleKeyPressEvent($event)\"\n />\n </label>\n }\n @if (use12HourClock()) {\n <label class=\"ms-2\">\n @if (!hideLabels()) {\n <span class=\"form-label\">{{ (meridiansLabel() | translate) || ' ' }}</span>\n }\n <select\n #inputPart\n class=\"form-control\"\n [attr.aria-label]=\"meridiansAriaLabel() | translate\"\n [attr.aria-describedby]=\"errormessageId()\"\n [class.readonly]=\"readonly()\"\n [disabled]=\"disabled()\"\n (change)=\"toggleMeridian()\"\n (keydown)=\"handleKeyPressEvent($event)\"\n >\n <option value=\"am\" [selected]=\"meridian() === 'am'\">{{ periods()[0] }}</option>\n <option value=\"pm\" [selected]=\"meridian() === 'pm'\">{{ periods()[1] }}</option>\n </select>\n </label>\n }\n</div>\n\n<ng-template #separator let-separator=\"separator\">\n <div class=\"align-self-end pb-3 px-1\" aria-hidden=\"true\">{{ separator ? separator : ':' }}</div>\n</ng-template>\n", styles: [":host{display:block}:host.ng-touched.ng-invalid:not(:has(.ng-touched.ng-invalid)) .form-control{--border-color: var(--element-status-danger)}.min-width{inline-size:100%;max-inline-size:45px;min-inline-size:35px}\n"], dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.CdkMonitorFocus, selector: "[cdkMonitorElementFocus], [cdkMonitorSubtreeFocus]", outputs: ["cdkFocusChange"], exportAs: ["cdkMonitorFocus"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "pipe", type: SiTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
2535
2510
|
}
|
|
2536
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2511
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiTimepickerComponent, decorators: [{
|
|
2537
2512
|
type: Component,
|
|
2538
2513
|
args: [{ selector: 'si-timepicker', imports: [A11yModule, NgTemplateOutlet, ReactiveFormsModule, SiTranslatePipe], providers: [
|
|
2539
2514
|
{
|
|
@@ -2556,7 +2531,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
2556
2531
|
'[class.readonly]': 'readonly()',
|
|
2557
2532
|
'[attr.aria-labelledby]': 'labelledby'
|
|
2558
2533
|
}, template: "<div\n class=\"d-flex flex-row flex-wrap\"\n cdkMonitorSubtreeFocus\n (cdkFocusChange)=\"focusChange($event)\"\n>\n @for (config of units(); track $index) {\n @if (!$first) {\n <ng-container *ngTemplateOutlet=\"separator; context: { separator: config.separator }\" />\n }\n <label class=\"min-width\">\n @if (!hideLabels()) {\n <span class=\"form-label\">{{ (config.label | translate) || ' ' }}</span>\n }\n <input\n #inputPart\n autocomplete=\"off\"\n class=\"form-control hide-feedback-icon\"\n type=\"text\"\n inputmode=\"numeric\"\n [attr.aria-label]=\"config.ariaLabel | translate\"\n [attr.aria-describedby]=\"errormessageId()\"\n [attr.maxlength]=\"config.maxLength\"\n [formControl]=\"timeControls.controls[config.name]\"\n [name]=\"config.name\"\n [placeholder]=\"config.placeholder\"\n [readonly]=\"readonly()\"\n (blur)=\"updateField(config.name, toHtmlInputElement($event.target).value)\"\n (keydown)=\"handleKeyPressEvent($event)\"\n />\n </label>\n }\n @if (use12HourClock()) {\n <label class=\"ms-2\">\n @if (!hideLabels()) {\n <span class=\"form-label\">{{ (meridiansLabel() | translate) || ' ' }}</span>\n }\n <select\n #inputPart\n class=\"form-control\"\n [attr.aria-label]=\"meridiansAriaLabel() | translate\"\n [attr.aria-describedby]=\"errormessageId()\"\n [class.readonly]=\"readonly()\"\n [disabled]=\"disabled()\"\n (change)=\"toggleMeridian()\"\n (keydown)=\"handleKeyPressEvent($event)\"\n >\n <option value=\"am\" [selected]=\"meridian() === 'am'\">{{ periods()[0] }}</option>\n <option value=\"pm\" [selected]=\"meridian() === 'pm'\">{{ periods()[1] }}</option>\n </select>\n </label>\n }\n</div>\n\n<ng-template #separator let-separator=\"separator\">\n <div class=\"align-self-end pb-3 px-1\" aria-hidden=\"true\">{{ separator ? separator : ':' }}</div>\n</ng-template>\n", styles: [":host{display:block}:host.ng-touched.ng-invalid:not(:has(.ng-touched.ng-invalid)) .form-control{--border-color: var(--element-status-danger)}.min-width{inline-size:100%;max-inline-size:45px;min-inline-size:35px}\n"] }]
|
|
2559
|
-
}], ctorParameters: () => [] });
|
|
2534
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], hoursLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hoursLabel", required: false }] }], minutesLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "minutesLabel", required: false }] }], secondsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondsLabel", required: false }] }], millisecondsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "millisecondsLabel", required: false }] }], hideLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideLabels", required: false }] }], hoursAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "hoursAriaLabel", required: false }] }], minutesAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "minutesAriaLabel", required: false }] }], secondsAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondsAriaLabel", required: false }] }], millisecondsAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "millisecondsAriaLabel", required: false }] }], hoursPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "hoursPlaceholder", required: false }] }], minutesPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "minutesPlaceholder", required: false }] }], secondsPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "secondsPlaceholder", required: false }] }], millisecondsPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "millisecondsPlaceholder", required: false }] }], meridians: [{ type: i0.Input, args: [{ isSignal: true, alias: "meridians", required: false }] }], meridiansLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "meridiansLabel", required: false }] }], meridiansAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "meridiansAriaLabel", required: false }] }], showMinutes: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMinutes", required: false }] }], showSeconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSeconds", required: false }] }], showMilliseconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMilliseconds", required: false }] }], showMeridian: [{ type: i0.Input, args: [{ isSignal: true, alias: "showMeridian", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], isValid: [{ type: i0.Output, args: ["isValid"] }], meridianChange: [{ type: i0.Output, args: ["meridianChange"] }], inputCompleted: [{ type: i0.Output, args: ["inputCompleted"] }], inputParts: [{ type: i0.ViewChildren, args: ['inputPart', { isSignal: true }] }], errormessageId: [{ type: i0.Input, args: [{ isSignal: true, alias: "errormessageId", required: false }] }] } });
|
|
2560
2535
|
|
|
2561
2536
|
/**
|
|
2562
2537
|
* Copyright (c) Siemens 2016 - 2025
|
|
@@ -2569,31 +2544,31 @@ class SiDatepickerComponent {
|
|
|
2569
2544
|
* The date which is currently focused
|
|
2570
2545
|
* Compare to the selected date or range the calendar requires to have one element to focus.
|
|
2571
2546
|
*/
|
|
2572
|
-
focusedDate = model();
|
|
2547
|
+
focusedDate = model(...(ngDevMode ? [undefined, { debugName: "focusedDate" }] : []));
|
|
2573
2548
|
/**
|
|
2574
2549
|
* The selected date of the datepicker. Use for
|
|
2575
2550
|
* initialization and for bidirectional binding.
|
|
2576
2551
|
*/
|
|
2577
|
-
date = model();
|
|
2552
|
+
date = model(...(ngDevMode ? [undefined, { debugName: "date" }] : []));
|
|
2578
2553
|
/**
|
|
2579
2554
|
* The selected date range of the datepicker. Use for
|
|
2580
2555
|
* initialization and for bidirectional binding.
|
|
2581
2556
|
*/
|
|
2582
|
-
dateRange = model();
|
|
2557
|
+
dateRange = model(...(ngDevMode ? [undefined, { debugName: "dateRange" }] : []));
|
|
2583
2558
|
/** @internal */
|
|
2584
|
-
dateRangeRole = input();
|
|
2559
|
+
dateRangeRole = input(...(ngDevMode ? [undefined, { debugName: "dateRangeRole" }] : []));
|
|
2585
2560
|
/**
|
|
2586
2561
|
* Set initial focus to calendar body.
|
|
2587
2562
|
*
|
|
2588
2563
|
* @defaultValue false
|
|
2589
2564
|
*/
|
|
2590
|
-
initialFocus = input(false);
|
|
2565
|
+
initialFocus = input(false, ...(ngDevMode ? [{ debugName: "initialFocus" }] : []));
|
|
2591
2566
|
/**
|
|
2592
2567
|
* Disabled the optional visible time picker.
|
|
2593
2568
|
*
|
|
2594
2569
|
* @defaultValue false
|
|
2595
2570
|
*/
|
|
2596
|
-
disabledTime = model(false);
|
|
2571
|
+
disabledTime = model(false, ...(ngDevMode ? [{ debugName: "disabledTime" }] : []));
|
|
2597
2572
|
/**
|
|
2598
2573
|
* Object to configure the datepicker.
|
|
2599
2574
|
*
|
|
@@ -2602,7 +2577,7 @@ class SiDatepickerComponent {
|
|
|
2602
2577
|
* {}
|
|
2603
2578
|
* ```
|
|
2604
2579
|
*/
|
|
2605
|
-
config = model({});
|
|
2580
|
+
config = model({}, ...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
2606
2581
|
/**
|
|
2607
2582
|
* Aria label for the previous button. Needed for a11y.
|
|
2608
2583
|
*
|
|
@@ -2611,7 +2586,7 @@ class SiDatepickerComponent {
|
|
|
2611
2586
|
* t(() => $localize`:@@SI_DATEPICKER.PREVIOUS:Previous`)
|
|
2612
2587
|
* ```
|
|
2613
2588
|
*/
|
|
2614
|
-
previousLabel = input(t(() => $localize `:@@SI_DATEPICKER.PREVIOUS:Previous`));
|
|
2589
|
+
previousLabel = input(t(() => $localize `:@@SI_DATEPICKER.PREVIOUS:Previous`), ...(ngDevMode ? [{ debugName: "previousLabel" }] : []));
|
|
2615
2590
|
/**
|
|
2616
2591
|
* Aria label for the next button. Needed for a11y.
|
|
2617
2592
|
*
|
|
@@ -2620,7 +2595,7 @@ class SiDatepickerComponent {
|
|
|
2620
2595
|
* t(() => $localize`:@@SI_DATEPICKER.NEXT:Next`)
|
|
2621
2596
|
* ```
|
|
2622
2597
|
*/
|
|
2623
|
-
nextLabel = input(t(() => $localize `:@@SI_DATEPICKER.NEXT:Next`));
|
|
2598
|
+
nextLabel = input(t(() => $localize `:@@SI_DATEPICKER.NEXT:Next`), ...(ngDevMode ? [{ debugName: "nextLabel" }] : []));
|
|
2624
2599
|
/**
|
|
2625
2600
|
* Aria label for week number column
|
|
2626
2601
|
*
|
|
@@ -2630,7 +2605,7 @@ class SiDatepickerComponent {
|
|
|
2630
2605
|
* t(() => $localize`:@@SI_DATEPICKER.CALENDAR_WEEK_LABEL:Calendar week`)
|
|
2631
2606
|
* ```
|
|
2632
2607
|
*/
|
|
2633
|
-
calenderWeekLabel = input();
|
|
2608
|
+
calenderWeekLabel = input(...(ngDevMode ? [undefined, { debugName: "calenderWeekLabel" }] : []));
|
|
2634
2609
|
/**
|
|
2635
2610
|
* Aria label for week number column
|
|
2636
2611
|
*
|
|
@@ -2639,22 +2614,20 @@ class SiDatepickerComponent {
|
|
|
2639
2614
|
* t(() => $localize`:@@SI_DATEPICKER.CALENDAR_WEEK_LABEL:Calendar week`)
|
|
2640
2615
|
* ```
|
|
2641
2616
|
*/
|
|
2642
|
-
calendarWeekLabel = input(t(() => $localize `:@@SI_DATEPICKER.CALENDAR_WEEK_LABEL:Calendar week`));
|
|
2643
|
-
derivedWeekLabel = computed(() => this.calenderWeekLabel() ?? this.calendarWeekLabel());
|
|
2617
|
+
calendarWeekLabel = input(t(() => $localize `:@@SI_DATEPICKER.CALENDAR_WEEK_LABEL:Calendar week`), ...(ngDevMode ? [{ debugName: "calendarWeekLabel" }] : []));
|
|
2618
|
+
derivedWeekLabel = computed(() => this.calenderWeekLabel() ?? this.calendarWeekLabel(), ...(ngDevMode ? [{ debugName: "derivedWeekLabel" }] : []));
|
|
2644
2619
|
/**
|
|
2645
2620
|
* Enable/disable 12H mode in timepicker. Defaults to locale
|
|
2646
2621
|
*
|
|
2647
2622
|
* @defaultValue undefined
|
|
2648
2623
|
*/
|
|
2649
|
-
time12h = input(undefined, {
|
|
2650
|
-
transform: booleanAttribute
|
|
2651
|
-
});
|
|
2624
|
+
time12h = input(undefined, { ...(ngDevMode ? { debugName: "time12h" } : {}), transform: booleanAttribute });
|
|
2652
2625
|
/**
|
|
2653
2626
|
* Use this to force date range operation to select either start date or end date.
|
|
2654
2627
|
*
|
|
2655
2628
|
* @defaultValue 'START'
|
|
2656
2629
|
*/
|
|
2657
|
-
rangeType = model('START');
|
|
2630
|
+
rangeType = model('START', ...(ngDevMode ? [{ debugName: "rangeType" }] : []));
|
|
2658
2631
|
/**
|
|
2659
2632
|
* Optional input to control the minimum month the datepicker can show and the user can navigate.
|
|
2660
2633
|
* The `minMonth` can be larger than the `minDate` This option enables the usage of multiple
|
|
@@ -2662,7 +2635,7 @@ class SiDatepickerComponent {
|
|
|
2662
2635
|
* shows a earlier month the the more right one.
|
|
2663
2636
|
* @internal
|
|
2664
2637
|
*/
|
|
2665
|
-
minMonth = input();
|
|
2638
|
+
minMonth = input(...(ngDevMode ? [undefined, { debugName: "minMonth" }] : []));
|
|
2666
2639
|
/**
|
|
2667
2640
|
* Optional input to control the maximum month the datepicker can show and the user can navigate.
|
|
2668
2641
|
* The `maxMonth` can be smaller than the `maxDate` This option enables the usage of multiple
|
|
@@ -2670,19 +2643,19 @@ class SiDatepickerComponent {
|
|
|
2670
2643
|
* shows a earlier month the the more right one.
|
|
2671
2644
|
* @internal
|
|
2672
2645
|
*/
|
|
2673
|
-
maxMonth = input();
|
|
2646
|
+
maxMonth = input(...(ngDevMode ? [undefined, { debugName: "maxMonth" }] : []));
|
|
2674
2647
|
/**
|
|
2675
2648
|
* Option to hide the time switch.
|
|
2676
2649
|
*
|
|
2677
2650
|
* @defaultValue false
|
|
2678
2651
|
*/
|
|
2679
|
-
hideTimeToggle = input(false);
|
|
2652
|
+
hideTimeToggle = input(false, ...(ngDevMode ? [{ debugName: "hideTimeToggle" }] : []));
|
|
2680
2653
|
/** @internal */
|
|
2681
|
-
hideCalendar = input(false);
|
|
2654
|
+
hideCalendar = input(false, ...(ngDevMode ? [{ debugName: "hideCalendar" }] : []));
|
|
2682
2655
|
/**
|
|
2683
2656
|
* Optional timepicker label.
|
|
2684
2657
|
*/
|
|
2685
|
-
timepickerLabel = input();
|
|
2658
|
+
timepickerLabel = input(...(ngDevMode ? [undefined, { debugName: "timepickerLabel" }] : []));
|
|
2686
2659
|
get startDate() {
|
|
2687
2660
|
return this.config().enableDateRange ? this.dateRange()?.start : this.date();
|
|
2688
2661
|
}
|
|
@@ -2705,7 +2678,7 @@ class SiDatepickerComponent {
|
|
|
2705
2678
|
defaultEnableTimeText = t(() => $localize `:@@SI_DATEPICKER.ENABLED_TIME_TEXT:Consider time`);
|
|
2706
2679
|
includeTimeLabel = computed(() => this.disabledTime()
|
|
2707
2680
|
? (this.config().disabledTimeText ?? this.defaultDisabledTimeText)
|
|
2708
|
-
: (this.config().enabledTimeText ?? this.defaultEnableTimeText));
|
|
2681
|
+
: (this.config().enabledTimeText ?? this.defaultEnableTimeText), ...(ngDevMode ? [{ debugName: "includeTimeLabel" }] : []));
|
|
2709
2682
|
get weekStartDay() {
|
|
2710
2683
|
return this.config().weekStartDay ?? this.localeWeekStart;
|
|
2711
2684
|
}
|
|
@@ -2715,7 +2688,7 @@ class SiDatepickerComponent {
|
|
|
2715
2688
|
/**
|
|
2716
2689
|
* The active view
|
|
2717
2690
|
*/
|
|
2718
|
-
view = signal('week');
|
|
2691
|
+
view = signal('week', ...(ngDevMode ? [{ debugName: "view" }] : []));
|
|
2719
2692
|
/**
|
|
2720
2693
|
* Get the current shown view.
|
|
2721
2694
|
*/
|
|
@@ -2728,11 +2701,11 @@ class SiDatepickerComponent {
|
|
|
2728
2701
|
default:
|
|
2729
2702
|
return this.daySelection();
|
|
2730
2703
|
}
|
|
2731
|
-
});
|
|
2732
|
-
actualFocusedDate = computed(() => this.focusedDate() ?? today());
|
|
2733
|
-
requireFocus = signal(this.initialFocus());
|
|
2704
|
+
}, ...(ngDevMode ? [{ debugName: "activeView" }] : []));
|
|
2705
|
+
actualFocusedDate = computed(() => this.focusedDate() ?? today(), ...(ngDevMode ? [{ debugName: "actualFocusedDate" }] : []));
|
|
2706
|
+
requireFocus = signal(this.initialFocus(), ...(ngDevMode ? [{ debugName: "requireFocus" }] : []));
|
|
2734
2707
|
/** When the user switch from the year or month view via keyboard selection we force the focus. */
|
|
2735
|
-
forceFocus = computed(() => this.requireFocus() || this.initialFocus());
|
|
2708
|
+
forceFocus = computed(() => this.requireFocus() || this.initialFocus(), ...(ngDevMode ? [{ debugName: "forceFocus" }] : []));
|
|
2736
2709
|
months = [];
|
|
2737
2710
|
switchId = `__si-datepicker-switch-id-${idCounter++}`;
|
|
2738
2711
|
timepickerId = `__si-datepicker-timepicker-id-${idCounter++}`;
|
|
@@ -2759,16 +2732,16 @@ class SiDatepickerComponent {
|
|
|
2759
2732
|
*/
|
|
2760
2733
|
previousTime;
|
|
2761
2734
|
/** Reference to the current day selection component. Shown when view === 'week' */
|
|
2762
|
-
daySelection = viewChild(SiDaySelectionComponent);
|
|
2735
|
+
daySelection = viewChild(SiDaySelectionComponent, ...(ngDevMode ? [{ debugName: "daySelection" }] : []));
|
|
2763
2736
|
/** Reference to the current month selection component. Shown when view === 'month' */
|
|
2764
|
-
monthSelection = viewChild(SiMonthSelectionComponent);
|
|
2737
|
+
monthSelection = viewChild(SiMonthSelectionComponent, ...(ngDevMode ? [{ debugName: "monthSelection" }] : []));
|
|
2765
2738
|
/** Reference to the current year selection component. Shown when view === 'year' */
|
|
2766
|
-
yearSelection = viewChild(SiYearSelectionComponent);
|
|
2739
|
+
yearSelection = viewChild(SiYearSelectionComponent, ...(ngDevMode ? [{ debugName: "yearSelection" }] : []));
|
|
2767
2740
|
/**
|
|
2768
2741
|
* The cell which which has the mouse hover.
|
|
2769
2742
|
* @internal
|
|
2770
2743
|
*/
|
|
2771
|
-
activeHover = model();
|
|
2744
|
+
activeHover = model(...(ngDevMode ? [undefined, { debugName: "activeHover" }] : []));
|
|
2772
2745
|
constructor() {
|
|
2773
2746
|
this.initCalendarLabels();
|
|
2774
2747
|
const weekStart = getLocaleFirstDayOfWeek(this.locale);
|
|
@@ -3078,10 +3051,10 @@ class SiDatepickerComponent {
|
|
|
3078
3051
|
onActiveHoverChange(event) {
|
|
3079
3052
|
this.activeHover.set(event);
|
|
3080
3053
|
}
|
|
3081
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3082
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.0.6", type: SiDatepickerComponent, isStandalone: true, selector: "si-datepicker", inputs: { focusedDate: { classPropertyName: "focusedDate", publicName: "focusedDate", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, dateRange: { classPropertyName: "dateRange", publicName: "dateRange", isSignal: true, isRequired: false, transformFunction: null }, dateRangeRole: { classPropertyName: "dateRangeRole", publicName: "dateRangeRole", isSignal: true, isRequired: false, transformFunction: null }, initialFocus: { classPropertyName: "initialFocus", publicName: "initialFocus", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, previousLabel: { classPropertyName: "previousLabel", publicName: "previousLabel", isSignal: true, isRequired: false, transformFunction: null }, nextLabel: { classPropertyName: "nextLabel", publicName: "nextLabel", isSignal: true, isRequired: false, transformFunction: null }, calenderWeekLabel: { classPropertyName: "calenderWeekLabel", publicName: "calenderWeekLabel", isSignal: true, isRequired: false, transformFunction: null }, calendarWeekLabel: { classPropertyName: "calendarWeekLabel", publicName: "calendarWeekLabel", isSignal: true, isRequired: false, transformFunction: null }, time12h: { classPropertyName: "time12h", publicName: "time12h", isSignal: true, isRequired: false, transformFunction: null }, rangeType: { classPropertyName: "rangeType", publicName: "rangeType", isSignal: true, isRequired: false, transformFunction: null }, minMonth: { classPropertyName: "minMonth", publicName: "minMonth", isSignal: true, isRequired: false, transformFunction: null }, maxMonth: { classPropertyName: "maxMonth", publicName: "maxMonth", isSignal: true, isRequired: false, transformFunction: null }, hideTimeToggle: { classPropertyName: "hideTimeToggle", publicName: "hideTimeToggle", isSignal: true, isRequired: false, transformFunction: null }, hideCalendar: { classPropertyName: "hideCalendar", publicName: "hideCalendar", isSignal: true, isRequired: false, transformFunction: null }, timepickerLabel: { classPropertyName: "timepickerLabel", publicName: "timepickerLabel", isSignal: true, isRequired: false, transformFunction: null }, activeHover: { classPropertyName: "activeHover", publicName: "activeHover", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { focusedDate: "focusedDateChange", date: "dateChange", dateRange: "dateRangeChange", disabledTime: "disabledTimeChange", config: "configChange", rangeType: "rangeTypeChange", activeHover: "activeHoverChange" }, viewQueries: [{ propertyName: "daySelection", first: true, predicate: SiDaySelectionComponent, descendants: true, isSignal: true }, { propertyName: "monthSelection", first: true, predicate: SiMonthSelectionComponent, descendants: true, isSignal: true }, { propertyName: "yearSelection", first: true, predicate: SiYearSelectionComponent, descendants: true, isSignal: true }], usesOnChanges: true, ngImport: i0, template: "@if (!hideCalendar()) {\n <div class=\"text-center pb-6 calendar\">\n @switch (view()) {\n @case ('year') {\n <si-year-selection\n [focusedDate]=\"actualFocusedDate()\"\n [startDate]=\"startDate\"\n [endDate]=\"endDate\"\n [minDate]=\"config().minDate\"\n [maxDate]=\"config().maxDate\"\n [minMonth]=\"minMonth()\"\n [maxMonth]=\"maxMonth()\"\n [isRangeSelection]=\"config().enableDateRange!\"\n [previousLabel]=\"previousLabel() | translate\"\n [nextLabel]=\"nextLabel() | translate\"\n (selectedValueChange)=\"activeYearChange($event)\"\n />\n }\n @case ('month') {\n <si-month-selection\n [startDate]=\"startDate\"\n [endDate]=\"endDate\"\n [months]=\"months\"\n [minDate]=\"config().minDate\"\n [maxDate]=\"config().maxDate\"\n [minMonth]=\"minMonth()\"\n [maxMonth]=\"maxMonth()\"\n [isRangeSelection]=\"config().enableDateRange!\"\n [previewRange]=\"rangeType() === 'END'\"\n [previousLabel]=\"previousLabel() | translate\"\n [nextLabel]=\"nextLabel() | translate\"\n [activeHover]=\"activeHover()\"\n [focusedDate]=\"actualFocusedDate()\"\n (activeHoverChange)=\"onActiveHoverChange($event)\"\n (focusedDateChange)=\"focusedDate.set($event)\"\n (selectedValueChange)=\"activeMonthChange($event)\"\n (viewChange)=\"view.set($event)\"\n />\n }\n @case ('week') {\n <si-day-selection\n [initialFocus]=\"forceFocus()\"\n [startDate]=\"startDate\"\n [endDate]=\"dateRange()?.end\"\n [isRangeSelection]=\"config().enableDateRange!\"\n [previewRange]=\"rangeType() === 'END'\"\n [hideWeekNumbers]=\"hideWeekNumbers\"\n [minDate]=\"config().minDate\"\n [maxDate]=\"config().maxDate\"\n [minMonth]=\"minMonth()\"\n [weekStartDay]=\"weekStartDay\"\n [calendarWeekLabel]=\"derivedWeekLabel()\"\n [previousLabel]=\"previousLabel() | translate\"\n [nextLabel]=\"nextLabel() | translate\"\n [todayLabel]=\"config().todayText\"\n [activeHover]=\"activeHover()\"\n [focusedDate]=\"actualFocusedDate()\"\n (activeHoverChange)=\"onActiveHoverChange($event)\"\n (focusedDateChange)=\"focusedDate.set($event)\"\n (selectedValueChange)=\"selectionChange($event!)\"\n (viewChange)=\"view.set($event)\"\n />\n }\n }\n </div>\n}\n@if (this.config().showTime) {\n <div\n class=\"timepicker-container px-9 pb-6\"\n [class.pt-6]=\"!hideCalendar()\"\n [class.border-top]=\"!hideCalendar()\"\n >\n @if (!config().mandatoryTime && !hideTimeToggle()) {\n <div class=\"mb-5 form-check form-switch\">\n <input\n type=\"checkbox\"\n class=\"form-check-input\"\n role=\"switch\"\n [id]=\"switchId\"\n [checked]=\"!disabledTime()\"\n (change)=\"toggleDisabledTime()\"\n />\n <label class=\"form-check-label\" [for]=\"switchId\">{{\n includeTimeLabel() | translate\n }}</label>\n </div>\n }\n <div class=\"mt-auto\">\n @if (timepickerLabel()) {\n <label class=\"form-label\" [for]=\"timepickerId\">{{ timepickerLabel() | translate }}</label>\n }\n <si-timepicker\n #timePicker\n [id]=\"timepickerId\"\n [formControl]=\"time\"\n [hoursLabel]=\"config().hoursLabel ?? timePicker.hoursLabel()\"\n [minutesLabel]=\"config().minutesLabel ?? timePicker.minutesLabel()\"\n [secondsLabel]=\"config().secondsLabel ?? timePicker.secondsLabel()\"\n [millisecondsLabel]=\"config().millisecondsLabel ?? timePicker.millisecondsLabel()\"\n [hideLabels]=\"config().hideLabels ?? timePicker.hideLabels()\"\n [hoursAriaLabel]=\"config().hoursAriaLabel ?? timePicker.hoursAriaLabel()\"\n [minutesAriaLabel]=\"config().minutesAriaLabel ?? timePicker.minutesAriaLabel()\"\n [secondsAriaLabel]=\"config().secondsAriaLabel ?? timePicker.secondsAriaLabel()\"\n [millisecondsAriaLabel]=\"\n config().millisecondsAriaLabel ?? timePicker.millisecondsAriaLabel()\n \"\n [hoursPlaceholder]=\"config().hoursPlaceholder ?? timePicker.hoursPlaceholder()\"\n [minutesPlaceholder]=\"config().minutesPlaceholder ?? timePicker.minutesPlaceholder()\"\n [secondsPlaceholder]=\"config().secondsPlaceholder ?? timePicker.secondsPlaceholder()\"\n [millisecondsPlaceholder]=\"\n config().millisecondsPlaceholder ?? timePicker.millisecondsPlaceholder()\n \"\n [meridians]=\"config().meridians ?? timePicker.meridians()\"\n [meridiansLabel]=\"config().meridiansLabel ?? timePicker.meridiansLabel()\"\n [meridiansAriaLabel]=\"config().meridiansAriaLabel ?? timePicker.meridiansAriaLabel()\"\n [showMinutes]=\"config().showMinutes ?? true\"\n [showSeconds]=\"config().showSeconds ?? false\"\n [showMilliseconds]=\"config().showMilliseconds ?? false\"\n [showMeridian]=\"time12h()\"\n />\n </div>\n </div>\n}\n", styles: [":host ::ng-deep .selection .month:not(.disabled):hover,:host ::ng-deep .selection .year:not(.disabled):hover,:host ::ng-deep .year:not(.disabled):not(.selected):hover,:host ::ng-deep .month:not(.disabled):not(.selected):hover,:host ::ng-deep .day:not(.disabled):not(.selected):hover{background:var(--element-base-1-hover);color:var(--element-ui-0)}:host ::ng-deep .year,:host ::ng-deep .month,:host ::ng-deep .day{block-size:32px;line-height:32px;inline-size:100%}:host ::ng-deep .day{inline-size:32px}:host ::ng-deep .year,:host ::ng-deep .month,:host ::ng-deep .day{margin-inline:auto;position:relative;border:unset;background-color:unset;padding:0;cursor:pointer;border-radius:var(--element-button-radius)}:host{background:var(--element-base-1);border-radius:var(--element-radius-2);display:flex;flex-direction:column;inline-size:348px}:host ::ng-deep .header,:host ::ng-deep .footer{display:flex;align-items:center}:host ::ng-deep .header{padding-block-start:12px;padding-block-end:16px;padding-inline:32px;border-block-end:1px solid var(--element-ui-4)}:host ::ng-deep .header a{text-decoration:none;cursor:pointer}:host ::ng-deep .footer{margin-block-start:4px;text-align:center}:host ::ng-deep table{inline-size:100%;border-collapse:separate;border-spacing:0 3px;table-layout:fixed;margin-block-end:-3px}:host ::ng-deep .day.selected{background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep .month.selected{background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep .year.selected{background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep td[role=gridcell]{text-align:center}:host ::ng-deep th{font-weight:400;text-align:center;block-size:32px}:host ::ng-deep .week-num,:host ::ng-deep th{font-size:.75rem;color:var(--element-text-secondary);inline-size:32px;cursor:default}:host ::ng-deep .today.selected:before{border-color:var(--element-ui-5)}:host ::ng-deep .today:before{position:absolute;content:\"\";inset:1px;border:1px solid var(--element-ui-1);border-radius:var(--element-radius-2);display:inline-block}:host ::ng-deep .selection .month,:host ::ng-deep .selection .year{block-size:30px;line-height:30px;cursor:pointer}:host ::ng-deep .selection .month{inline-size:50%}:host ::ng-deep .selection .year{inline-size:33.3%}:host ::ng-deep .disabled{color:var(--element-text-disabled);font-weight:400!important;cursor:default!important}:host ::ng-deep .range{background-color:var(--element-ui-4)}:host ::ng-deep .range:hover{background:var(--element-base-1-hover)}:host ::ng-deep .range:hover div.si-h4:hover{background:transparent}:host ::ng-deep .range-hover{background-color:var(--element-base-1-hover)}:host ::ng-deep .range-hover-end{border-start-end-radius:var(--element-button-radius);border-end-end-radius:var(--element-button-radius)}:host ::ng-deep td:is(.range-start,.range-end){background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep td:is(.range-start,.range-end) div.si-h4:hover,:host ::ng-deep td:is(.range-start,.range-end) div.si-body-lg:hover{background:transparent;color:var(--element-base-1)}:host ::ng-deep td:is(.range-start,.range-end) .today:before{border-color:var(--element-ui-5)}:host ::ng-deep td.range-start{border-start-start-radius:var(--element-button-radius);border-end-start-radius:var(--element-button-radius)}:host ::ng-deep td.range-end{border-start-end-radius:var(--element-button-radius);border-end-end-radius:var(--element-button-radius)}:host ::ng-deep .calendar-button{font-weight:600;font-size:.875rem;line-height:1.1428571429;color:var(--element-text-active);min-inline-size:0!important}:host ::ng-deep .calendar{block-size:28em}:host ::ng-deep .timepicker-container{display:flex;flex:1 1 auto;flex-direction:column}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: SiYearSelectionComponent, selector: "si-year-selection", inputs: ["focusedDate"], outputs: ["focusedDateChange", "yearRangeChange"] }, { kind: "component", type: SiMonthSelectionComponent, selector: "si-month-selection", inputs: ["months", "focusedDate"], outputs: ["focusedDateChange", "activeMonthChange", "viewChange"] }, { kind: "component", type: SiDaySelectionComponent, selector: "si-day-selection", inputs: ["hideWeekNumbers", "weekStartDay", "focusedDate", "todayLabel", "calendarWeekLabel"], outputs: ["focusedDateChange", "activeMonthChange", "viewChange"] }, { kind: "component", type: SiTimepickerComponent, selector: "si-timepicker", inputs: ["id", "disabled", "hoursLabel", "minutesLabel", "secondsLabel", "millisecondsLabel", "hideLabels", "hoursAriaLabel", "minutesAriaLabel", "secondsAriaLabel", "millisecondsAriaLabel", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder", "millisecondsPlaceholder", "meridians", "meridiansLabel", "meridiansAriaLabel", "showMinutes", "showSeconds", "showMilliseconds", "showMeridian", "min", "max", "readonly", "errormessageId"], outputs: ["isValid", "meridianChange", "inputCompleted"] }, { kind: "pipe", type: SiTranslatePipe, name: "translate" }] });
|
|
3054
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3055
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiDatepickerComponent, isStandalone: true, selector: "si-datepicker", inputs: { focusedDate: { classPropertyName: "focusedDate", publicName: "focusedDate", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, dateRange: { classPropertyName: "dateRange", publicName: "dateRange", isSignal: true, isRequired: false, transformFunction: null }, dateRangeRole: { classPropertyName: "dateRangeRole", publicName: "dateRangeRole", isSignal: true, isRequired: false, transformFunction: null }, initialFocus: { classPropertyName: "initialFocus", publicName: "initialFocus", isSignal: true, isRequired: false, transformFunction: null }, disabledTime: { classPropertyName: "disabledTime", publicName: "disabledTime", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, previousLabel: { classPropertyName: "previousLabel", publicName: "previousLabel", isSignal: true, isRequired: false, transformFunction: null }, nextLabel: { classPropertyName: "nextLabel", publicName: "nextLabel", isSignal: true, isRequired: false, transformFunction: null }, calenderWeekLabel: { classPropertyName: "calenderWeekLabel", publicName: "calenderWeekLabel", isSignal: true, isRequired: false, transformFunction: null }, calendarWeekLabel: { classPropertyName: "calendarWeekLabel", publicName: "calendarWeekLabel", isSignal: true, isRequired: false, transformFunction: null }, time12h: { classPropertyName: "time12h", publicName: "time12h", isSignal: true, isRequired: false, transformFunction: null }, rangeType: { classPropertyName: "rangeType", publicName: "rangeType", isSignal: true, isRequired: false, transformFunction: null }, minMonth: { classPropertyName: "minMonth", publicName: "minMonth", isSignal: true, isRequired: false, transformFunction: null }, maxMonth: { classPropertyName: "maxMonth", publicName: "maxMonth", isSignal: true, isRequired: false, transformFunction: null }, hideTimeToggle: { classPropertyName: "hideTimeToggle", publicName: "hideTimeToggle", isSignal: true, isRequired: false, transformFunction: null }, hideCalendar: { classPropertyName: "hideCalendar", publicName: "hideCalendar", isSignal: true, isRequired: false, transformFunction: null }, timepickerLabel: { classPropertyName: "timepickerLabel", publicName: "timepickerLabel", isSignal: true, isRequired: false, transformFunction: null }, activeHover: { classPropertyName: "activeHover", publicName: "activeHover", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { focusedDate: "focusedDateChange", date: "dateChange", dateRange: "dateRangeChange", disabledTime: "disabledTimeChange", config: "configChange", rangeType: "rangeTypeChange", activeHover: "activeHoverChange" }, viewQueries: [{ propertyName: "daySelection", first: true, predicate: SiDaySelectionComponent, descendants: true, isSignal: true }, { propertyName: "monthSelection", first: true, predicate: SiMonthSelectionComponent, descendants: true, isSignal: true }, { propertyName: "yearSelection", first: true, predicate: SiYearSelectionComponent, descendants: true, isSignal: true }], usesOnChanges: true, ngImport: i0, template: "@if (!hideCalendar()) {\n <div class=\"text-center pb-6 calendar\">\n @switch (view()) {\n @case ('year') {\n <si-year-selection\n [focusedDate]=\"actualFocusedDate()\"\n [startDate]=\"startDate\"\n [endDate]=\"endDate\"\n [minDate]=\"config().minDate\"\n [maxDate]=\"config().maxDate\"\n [minMonth]=\"minMonth()\"\n [maxMonth]=\"maxMonth()\"\n [isRangeSelection]=\"config().enableDateRange!\"\n [previousLabel]=\"previousLabel() | translate\"\n [nextLabel]=\"nextLabel() | translate\"\n (selectedValueChange)=\"activeYearChange($event)\"\n />\n }\n @case ('month') {\n <si-month-selection\n [startDate]=\"startDate\"\n [endDate]=\"endDate\"\n [months]=\"months\"\n [minDate]=\"config().minDate\"\n [maxDate]=\"config().maxDate\"\n [minMonth]=\"minMonth()\"\n [maxMonth]=\"maxMonth()\"\n [isRangeSelection]=\"config().enableDateRange!\"\n [previewRange]=\"rangeType() === 'END'\"\n [previousLabel]=\"previousLabel() | translate\"\n [nextLabel]=\"nextLabel() | translate\"\n [activeHover]=\"activeHover()\"\n [focusedDate]=\"actualFocusedDate()\"\n (activeHoverChange)=\"onActiveHoverChange($event)\"\n (focusedDateChange)=\"focusedDate.set($event)\"\n (selectedValueChange)=\"activeMonthChange($event)\"\n (viewChange)=\"view.set($event)\"\n />\n }\n @case ('week') {\n <si-day-selection\n [initialFocus]=\"forceFocus()\"\n [startDate]=\"startDate\"\n [endDate]=\"dateRange()?.end\"\n [isRangeSelection]=\"config().enableDateRange!\"\n [previewRange]=\"rangeType() === 'END'\"\n [hideWeekNumbers]=\"hideWeekNumbers\"\n [minDate]=\"config().minDate\"\n [maxDate]=\"config().maxDate\"\n [minMonth]=\"minMonth()\"\n [weekStartDay]=\"weekStartDay\"\n [calendarWeekLabel]=\"derivedWeekLabel()\"\n [previousLabel]=\"previousLabel() | translate\"\n [nextLabel]=\"nextLabel() | translate\"\n [todayLabel]=\"config().todayText\"\n [activeHover]=\"activeHover()\"\n [focusedDate]=\"actualFocusedDate()\"\n (activeHoverChange)=\"onActiveHoverChange($event)\"\n (focusedDateChange)=\"focusedDate.set($event)\"\n (selectedValueChange)=\"selectionChange($event!)\"\n (viewChange)=\"view.set($event)\"\n />\n }\n }\n </div>\n}\n@if (this.config().showTime) {\n <div\n class=\"timepicker-container px-9 pb-6\"\n [class.pt-6]=\"!hideCalendar()\"\n [class.border-top]=\"!hideCalendar()\"\n >\n @if (!config().mandatoryTime && !hideTimeToggle()) {\n <div class=\"mb-5 form-check form-switch\">\n <input\n type=\"checkbox\"\n class=\"form-check-input\"\n role=\"switch\"\n [id]=\"switchId\"\n [checked]=\"!disabledTime()\"\n (change)=\"toggleDisabledTime()\"\n />\n <label class=\"form-check-label\" [for]=\"switchId\">{{\n includeTimeLabel() | translate\n }}</label>\n </div>\n }\n <div class=\"mt-auto\">\n @if (timepickerLabel()) {\n <label class=\"form-label\" [for]=\"timepickerId\">{{ timepickerLabel() | translate }}</label>\n }\n <si-timepicker\n #timePicker\n [id]=\"timepickerId\"\n [formControl]=\"time\"\n [hoursLabel]=\"config().hoursLabel ?? timePicker.hoursLabel()\"\n [minutesLabel]=\"config().minutesLabel ?? timePicker.minutesLabel()\"\n [secondsLabel]=\"config().secondsLabel ?? timePicker.secondsLabel()\"\n [millisecondsLabel]=\"config().millisecondsLabel ?? timePicker.millisecondsLabel()\"\n [hideLabels]=\"config().hideLabels ?? timePicker.hideLabels()\"\n [hoursAriaLabel]=\"config().hoursAriaLabel ?? timePicker.hoursAriaLabel()\"\n [minutesAriaLabel]=\"config().minutesAriaLabel ?? timePicker.minutesAriaLabel()\"\n [secondsAriaLabel]=\"config().secondsAriaLabel ?? timePicker.secondsAriaLabel()\"\n [millisecondsAriaLabel]=\"\n config().millisecondsAriaLabel ?? timePicker.millisecondsAriaLabel()\n \"\n [hoursPlaceholder]=\"config().hoursPlaceholder ?? timePicker.hoursPlaceholder()\"\n [minutesPlaceholder]=\"config().minutesPlaceholder ?? timePicker.minutesPlaceholder()\"\n [secondsPlaceholder]=\"config().secondsPlaceholder ?? timePicker.secondsPlaceholder()\"\n [millisecondsPlaceholder]=\"\n config().millisecondsPlaceholder ?? timePicker.millisecondsPlaceholder()\n \"\n [meridians]=\"config().meridians ?? timePicker.meridians()\"\n [meridiansLabel]=\"config().meridiansLabel ?? timePicker.meridiansLabel()\"\n [meridiansAriaLabel]=\"config().meridiansAriaLabel ?? timePicker.meridiansAriaLabel()\"\n [showMinutes]=\"config().showMinutes ?? true\"\n [showSeconds]=\"config().showSeconds ?? false\"\n [showMilliseconds]=\"config().showMilliseconds ?? false\"\n [showMeridian]=\"time12h()\"\n />\n </div>\n </div>\n}\n", styles: [":host ::ng-deep .selection .month:not(.disabled):hover,:host ::ng-deep .selection .year:not(.disabled):hover,:host ::ng-deep .year:not(.disabled):not(.selected):hover,:host ::ng-deep .month:not(.disabled):not(.selected):hover,:host ::ng-deep .day:not(.disabled):not(.selected):hover{background:var(--element-base-1-hover);color:var(--element-ui-0)}:host ::ng-deep .year,:host ::ng-deep .month,:host ::ng-deep .day{block-size:32px;line-height:32px;inline-size:100%}:host ::ng-deep .day{inline-size:32px}:host ::ng-deep .year,:host ::ng-deep .month,:host ::ng-deep .day{margin-inline:auto;position:relative;border:unset;background-color:unset;padding:0;cursor:pointer;border-radius:var(--element-button-radius)}:host{background:var(--element-base-1);border-radius:var(--element-radius-2);display:flex;flex-direction:column;inline-size:348px}:host ::ng-deep .header,:host ::ng-deep .footer{display:flex;align-items:center}:host ::ng-deep .header{padding-block-start:12px;padding-block-end:16px;padding-inline:32px;border-block-end:1px solid var(--element-ui-4)}:host ::ng-deep .header a{text-decoration:none;cursor:pointer}:host ::ng-deep .footer{margin-block-start:4px;text-align:center}:host ::ng-deep table{inline-size:100%;border-collapse:separate;border-spacing:0 3px;table-layout:fixed;margin-block-end:-3px}:host ::ng-deep .day.selected{background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep .month.selected{background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep .year.selected{background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep td[role=gridcell]{text-align:center}:host ::ng-deep th{font-weight:400;text-align:center;block-size:32px}:host ::ng-deep .week-num,:host ::ng-deep th{font-size:.75rem;color:var(--element-text-secondary);inline-size:32px;cursor:default}:host ::ng-deep .today.selected:before{border-color:var(--element-ui-5)}:host ::ng-deep .today:before{position:absolute;content:\"\";inset:1px;border:1px solid var(--element-ui-1);border-radius:var(--element-radius-2);display:inline-block}:host ::ng-deep .selection .month,:host ::ng-deep .selection .year{block-size:30px;line-height:30px;cursor:pointer}:host ::ng-deep .selection .month{inline-size:50%}:host ::ng-deep .selection .year{inline-size:33.3%}:host ::ng-deep .disabled{color:var(--element-text-disabled);font-weight:400!important;cursor:default!important}:host ::ng-deep .range{background-color:var(--element-ui-4)}:host ::ng-deep .range:hover{background:var(--element-base-1-hover)}:host ::ng-deep .range:hover div.si-h4:hover{background:transparent}:host ::ng-deep .range-hover{background-color:var(--element-base-1-hover)}:host ::ng-deep .range-hover-end{border-start-end-radius:var(--element-button-radius);border-end-end-radius:var(--element-button-radius)}:host ::ng-deep td:is(.range-start,.range-end){background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep td:is(.range-start,.range-end) div.si-h4:hover,:host ::ng-deep td:is(.range-start,.range-end) div.si-body-lg:hover{background:transparent;color:var(--element-base-1)}:host ::ng-deep td:is(.range-start,.range-end) .today:before{border-color:var(--element-ui-5)}:host ::ng-deep td.range-start{border-start-start-radius:var(--element-button-radius);border-end-start-radius:var(--element-button-radius)}:host ::ng-deep td.range-end{border-start-end-radius:var(--element-button-radius);border-end-end-radius:var(--element-button-radius)}:host ::ng-deep .calendar-button{font-weight:600;font-size:.875rem;line-height:1.1428571429;color:var(--element-text-active);min-inline-size:0!important}:host ::ng-deep .calendar{block-size:28em}:host ::ng-deep .timepicker-container{display:flex;flex:1 1 auto;flex-direction:column}\n"], dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: SiYearSelectionComponent, selector: "si-year-selection", inputs: ["focusedDate"], outputs: ["focusedDateChange", "yearRangeChange"] }, { kind: "component", type: SiMonthSelectionComponent, selector: "si-month-selection", inputs: ["months", "focusedDate"], outputs: ["focusedDateChange", "activeMonthChange", "viewChange"] }, { kind: "component", type: SiDaySelectionComponent, selector: "si-day-selection", inputs: ["hideWeekNumbers", "weekStartDay", "focusedDate", "todayLabel", "calendarWeekLabel"], outputs: ["focusedDateChange", "activeMonthChange", "viewChange"] }, { kind: "component", type: SiTimepickerComponent, selector: "si-timepicker", inputs: ["id", "disabled", "hoursLabel", "minutesLabel", "secondsLabel", "millisecondsLabel", "hideLabels", "hoursAriaLabel", "minutesAriaLabel", "secondsAriaLabel", "millisecondsAriaLabel", "hoursPlaceholder", "minutesPlaceholder", "secondsPlaceholder", "millisecondsPlaceholder", "meridians", "meridiansLabel", "meridiansAriaLabel", "showMinutes", "showSeconds", "showMilliseconds", "showMeridian", "min", "max", "readonly", "errormessageId"], outputs: ["isValid", "meridianChange", "inputCompleted"] }, { kind: "pipe", type: SiTranslatePipe, name: "translate" }] });
|
|
3083
3056
|
}
|
|
3084
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerComponent, decorators: [{
|
|
3085
3058
|
type: Component,
|
|
3086
3059
|
args: [{ selector: 'si-datepicker', imports: [
|
|
3087
3060
|
ReactiveFormsModule,
|
|
@@ -3091,21 +3064,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
3091
3064
|
SiTimepickerComponent,
|
|
3092
3065
|
SiTranslatePipe
|
|
3093
3066
|
], template: "@if (!hideCalendar()) {\n <div class=\"text-center pb-6 calendar\">\n @switch (view()) {\n @case ('year') {\n <si-year-selection\n [focusedDate]=\"actualFocusedDate()\"\n [startDate]=\"startDate\"\n [endDate]=\"endDate\"\n [minDate]=\"config().minDate\"\n [maxDate]=\"config().maxDate\"\n [minMonth]=\"minMonth()\"\n [maxMonth]=\"maxMonth()\"\n [isRangeSelection]=\"config().enableDateRange!\"\n [previousLabel]=\"previousLabel() | translate\"\n [nextLabel]=\"nextLabel() | translate\"\n (selectedValueChange)=\"activeYearChange($event)\"\n />\n }\n @case ('month') {\n <si-month-selection\n [startDate]=\"startDate\"\n [endDate]=\"endDate\"\n [months]=\"months\"\n [minDate]=\"config().minDate\"\n [maxDate]=\"config().maxDate\"\n [minMonth]=\"minMonth()\"\n [maxMonth]=\"maxMonth()\"\n [isRangeSelection]=\"config().enableDateRange!\"\n [previewRange]=\"rangeType() === 'END'\"\n [previousLabel]=\"previousLabel() | translate\"\n [nextLabel]=\"nextLabel() | translate\"\n [activeHover]=\"activeHover()\"\n [focusedDate]=\"actualFocusedDate()\"\n (activeHoverChange)=\"onActiveHoverChange($event)\"\n (focusedDateChange)=\"focusedDate.set($event)\"\n (selectedValueChange)=\"activeMonthChange($event)\"\n (viewChange)=\"view.set($event)\"\n />\n }\n @case ('week') {\n <si-day-selection\n [initialFocus]=\"forceFocus()\"\n [startDate]=\"startDate\"\n [endDate]=\"dateRange()?.end\"\n [isRangeSelection]=\"config().enableDateRange!\"\n [previewRange]=\"rangeType() === 'END'\"\n [hideWeekNumbers]=\"hideWeekNumbers\"\n [minDate]=\"config().minDate\"\n [maxDate]=\"config().maxDate\"\n [minMonth]=\"minMonth()\"\n [weekStartDay]=\"weekStartDay\"\n [calendarWeekLabel]=\"derivedWeekLabel()\"\n [previousLabel]=\"previousLabel() | translate\"\n [nextLabel]=\"nextLabel() | translate\"\n [todayLabel]=\"config().todayText\"\n [activeHover]=\"activeHover()\"\n [focusedDate]=\"actualFocusedDate()\"\n (activeHoverChange)=\"onActiveHoverChange($event)\"\n (focusedDateChange)=\"focusedDate.set($event)\"\n (selectedValueChange)=\"selectionChange($event!)\"\n (viewChange)=\"view.set($event)\"\n />\n }\n }\n </div>\n}\n@if (this.config().showTime) {\n <div\n class=\"timepicker-container px-9 pb-6\"\n [class.pt-6]=\"!hideCalendar()\"\n [class.border-top]=\"!hideCalendar()\"\n >\n @if (!config().mandatoryTime && !hideTimeToggle()) {\n <div class=\"mb-5 form-check form-switch\">\n <input\n type=\"checkbox\"\n class=\"form-check-input\"\n role=\"switch\"\n [id]=\"switchId\"\n [checked]=\"!disabledTime()\"\n (change)=\"toggleDisabledTime()\"\n />\n <label class=\"form-check-label\" [for]=\"switchId\">{{\n includeTimeLabel() | translate\n }}</label>\n </div>\n }\n <div class=\"mt-auto\">\n @if (timepickerLabel()) {\n <label class=\"form-label\" [for]=\"timepickerId\">{{ timepickerLabel() | translate }}</label>\n }\n <si-timepicker\n #timePicker\n [id]=\"timepickerId\"\n [formControl]=\"time\"\n [hoursLabel]=\"config().hoursLabel ?? timePicker.hoursLabel()\"\n [minutesLabel]=\"config().minutesLabel ?? timePicker.minutesLabel()\"\n [secondsLabel]=\"config().secondsLabel ?? timePicker.secondsLabel()\"\n [millisecondsLabel]=\"config().millisecondsLabel ?? timePicker.millisecondsLabel()\"\n [hideLabels]=\"config().hideLabels ?? timePicker.hideLabels()\"\n [hoursAriaLabel]=\"config().hoursAriaLabel ?? timePicker.hoursAriaLabel()\"\n [minutesAriaLabel]=\"config().minutesAriaLabel ?? timePicker.minutesAriaLabel()\"\n [secondsAriaLabel]=\"config().secondsAriaLabel ?? timePicker.secondsAriaLabel()\"\n [millisecondsAriaLabel]=\"\n config().millisecondsAriaLabel ?? timePicker.millisecondsAriaLabel()\n \"\n [hoursPlaceholder]=\"config().hoursPlaceholder ?? timePicker.hoursPlaceholder()\"\n [minutesPlaceholder]=\"config().minutesPlaceholder ?? timePicker.minutesPlaceholder()\"\n [secondsPlaceholder]=\"config().secondsPlaceholder ?? timePicker.secondsPlaceholder()\"\n [millisecondsPlaceholder]=\"\n config().millisecondsPlaceholder ?? timePicker.millisecondsPlaceholder()\n \"\n [meridians]=\"config().meridians ?? timePicker.meridians()\"\n [meridiansLabel]=\"config().meridiansLabel ?? timePicker.meridiansLabel()\"\n [meridiansAriaLabel]=\"config().meridiansAriaLabel ?? timePicker.meridiansAriaLabel()\"\n [showMinutes]=\"config().showMinutes ?? true\"\n [showSeconds]=\"config().showSeconds ?? false\"\n [showMilliseconds]=\"config().showMilliseconds ?? false\"\n [showMeridian]=\"time12h()\"\n />\n </div>\n </div>\n}\n", styles: [":host ::ng-deep .selection .month:not(.disabled):hover,:host ::ng-deep .selection .year:not(.disabled):hover,:host ::ng-deep .year:not(.disabled):not(.selected):hover,:host ::ng-deep .month:not(.disabled):not(.selected):hover,:host ::ng-deep .day:not(.disabled):not(.selected):hover{background:var(--element-base-1-hover);color:var(--element-ui-0)}:host ::ng-deep .year,:host ::ng-deep .month,:host ::ng-deep .day{block-size:32px;line-height:32px;inline-size:100%}:host ::ng-deep .day{inline-size:32px}:host ::ng-deep .year,:host ::ng-deep .month,:host ::ng-deep .day{margin-inline:auto;position:relative;border:unset;background-color:unset;padding:0;cursor:pointer;border-radius:var(--element-button-radius)}:host{background:var(--element-base-1);border-radius:var(--element-radius-2);display:flex;flex-direction:column;inline-size:348px}:host ::ng-deep .header,:host ::ng-deep .footer{display:flex;align-items:center}:host ::ng-deep .header{padding-block-start:12px;padding-block-end:16px;padding-inline:32px;border-block-end:1px solid var(--element-ui-4)}:host ::ng-deep .header a{text-decoration:none;cursor:pointer}:host ::ng-deep .footer{margin-block-start:4px;text-align:center}:host ::ng-deep table{inline-size:100%;border-collapse:separate;border-spacing:0 3px;table-layout:fixed;margin-block-end:-3px}:host ::ng-deep .day.selected{background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep .month.selected{background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep .year.selected{background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep td[role=gridcell]{text-align:center}:host ::ng-deep th{font-weight:400;text-align:center;block-size:32px}:host ::ng-deep .week-num,:host ::ng-deep th{font-size:.75rem;color:var(--element-text-secondary);inline-size:32px;cursor:default}:host ::ng-deep .today.selected:before{border-color:var(--element-ui-5)}:host ::ng-deep .today:before{position:absolute;content:\"\";inset:1px;border:1px solid var(--element-ui-1);border-radius:var(--element-radius-2);display:inline-block}:host ::ng-deep .selection .month,:host ::ng-deep .selection .year{block-size:30px;line-height:30px;cursor:pointer}:host ::ng-deep .selection .month{inline-size:50%}:host ::ng-deep .selection .year{inline-size:33.3%}:host ::ng-deep .disabled{color:var(--element-text-disabled);font-weight:400!important;cursor:default!important}:host ::ng-deep .range{background-color:var(--element-ui-4)}:host ::ng-deep .range:hover{background:var(--element-base-1-hover)}:host ::ng-deep .range:hover div.si-h4:hover{background:transparent}:host ::ng-deep .range-hover{background-color:var(--element-base-1-hover)}:host ::ng-deep .range-hover-end{border-start-end-radius:var(--element-button-radius);border-end-end-radius:var(--element-button-radius)}:host ::ng-deep td:is(.range-start,.range-end){background:var(--element-ui-0);color:var(--element-base-1)}:host ::ng-deep td:is(.range-start,.range-end) div.si-h4:hover,:host ::ng-deep td:is(.range-start,.range-end) div.si-body-lg:hover{background:transparent;color:var(--element-base-1)}:host ::ng-deep td:is(.range-start,.range-end) .today:before{border-color:var(--element-ui-5)}:host ::ng-deep td.range-start{border-start-start-radius:var(--element-button-radius);border-end-start-radius:var(--element-button-radius)}:host ::ng-deep td.range-end{border-start-end-radius:var(--element-button-radius);border-end-end-radius:var(--element-button-radius)}:host ::ng-deep .calendar-button{font-weight:600;font-size:.875rem;line-height:1.1428571429;color:var(--element-text-active);min-inline-size:0!important}:host ::ng-deep .calendar{block-size:28em}:host ::ng-deep .timepicker-container{display:flex;flex:1 1 auto;flex-direction:column}\n"] }]
|
|
3094
|
-
}], ctorParameters: () => [] });
|
|
3067
|
+
}], ctorParameters: () => [], propDecorators: { focusedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedDate", required: false }] }, { type: i0.Output, args: ["focusedDateChange"] }], date: [{ type: i0.Input, args: [{ isSignal: true, alias: "date", required: false }] }, { type: i0.Output, args: ["dateChange"] }], dateRange: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateRange", required: false }] }, { type: i0.Output, args: ["dateRangeChange"] }], dateRangeRole: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateRangeRole", required: false }] }], initialFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialFocus", required: false }] }], disabledTime: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledTime", required: false }] }, { type: i0.Output, args: ["disabledTimeChange"] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }, { type: i0.Output, args: ["configChange"] }], previousLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousLabel", required: false }] }], nextLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextLabel", required: false }] }], calenderWeekLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "calenderWeekLabel", required: false }] }], calendarWeekLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "calendarWeekLabel", required: false }] }], time12h: [{ type: i0.Input, args: [{ isSignal: true, alias: "time12h", required: false }] }], rangeType: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeType", required: false }] }, { type: i0.Output, args: ["rangeTypeChange"] }], minMonth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minMonth", required: false }] }], maxMonth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxMonth", required: false }] }], hideTimeToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideTimeToggle", required: false }] }], hideCalendar: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideCalendar", required: false }] }], timepickerLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "timepickerLabel", required: false }] }], daySelection: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SiDaySelectionComponent), { isSignal: true }] }], monthSelection: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SiMonthSelectionComponent), { isSignal: true }] }], yearSelection: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SiYearSelectionComponent), { isSignal: true }] }], activeHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeHover", required: false }] }, { type: i0.Output, args: ["activeHoverChange"] }] } });
|
|
3095
3068
|
|
|
3096
3069
|
/**
|
|
3097
3070
|
* Copyright (c) Siemens 2016 - 2025
|
|
3098
3071
|
* SPDX-License-Identifier: MIT
|
|
3099
3072
|
*/
|
|
3100
3073
|
class SiDatepickerOverlayComponent {
|
|
3101
|
-
minMonth = signal(undefined);
|
|
3102
|
-
maxMonth = signal(undefined);
|
|
3074
|
+
minMonth = signal(undefined, ...(ngDevMode ? [{ debugName: "minMonth" }] : []));
|
|
3075
|
+
maxMonth = signal(undefined, ...(ngDevMode ? [{ debugName: "maxMonth" }] : []));
|
|
3103
3076
|
datepicker = viewChild.required(SiDatepickerComponent);
|
|
3104
3077
|
/**
|
|
3105
3078
|
* {@inheritDoc SiDatepickerComponent#initialFocus}
|
|
3106
3079
|
* @defaultValue false
|
|
3107
3080
|
*/
|
|
3108
|
-
initialFocus = input(false, { transform: booleanAttribute });
|
|
3081
|
+
initialFocus = input(false, { ...(ngDevMode ? { debugName: "initialFocus" } : {}), transform: booleanAttribute });
|
|
3109
3082
|
/**
|
|
3110
3083
|
* {@inheritDoc SiDatepickerComponent#config}
|
|
3111
3084
|
* @defaultValue
|
|
@@ -3113,24 +3086,24 @@ class SiDatepickerOverlayComponent {
|
|
|
3113
3086
|
* {}
|
|
3114
3087
|
* ```
|
|
3115
3088
|
*/
|
|
3116
|
-
config = input({});
|
|
3089
|
+
config = input({}, ...(ngDevMode ? [{ debugName: "config" }] : []));
|
|
3117
3090
|
/**
|
|
3118
3091
|
* {@inheritDoc SiDatepickerComponent#date}
|
|
3119
3092
|
*/
|
|
3120
|
-
date = model();
|
|
3093
|
+
date = model(...(ngDevMode ? [undefined, { debugName: "date" }] : []));
|
|
3121
3094
|
/**
|
|
3122
3095
|
* {@inheritDoc SiDatepickerComponent#dateRange}
|
|
3123
3096
|
*/
|
|
3124
|
-
dateRange = model();
|
|
3097
|
+
dateRange = model(...(ngDevMode ? [undefined, { debugName: "dateRange" }] : []));
|
|
3125
3098
|
/**
|
|
3126
3099
|
* {@inheritDoc SiDatepickerComponent#rangeType}
|
|
3127
3100
|
*/
|
|
3128
|
-
rangeType = model();
|
|
3101
|
+
rangeType = model(...(ngDevMode ? [undefined, { debugName: "rangeType" }] : []));
|
|
3129
3102
|
/**
|
|
3130
3103
|
* {@inheritDoc SiDatepickerComponent#time12h}
|
|
3131
3104
|
* @defaultValue false
|
|
3132
3105
|
*/
|
|
3133
|
-
time12h = input(false, { transform: booleanAttribute });
|
|
3106
|
+
time12h = input(false, { ...(ngDevMode ? { debugName: "time12h" } : {}), transform: booleanAttribute });
|
|
3134
3107
|
/**
|
|
3135
3108
|
* Emits an event to notify about disabling the time from the datepicker.
|
|
3136
3109
|
* When time is disable, we construct a pure date object in UTC 00:00:00 time.
|
|
@@ -3145,17 +3118,17 @@ class SiDatepickerOverlayComponent {
|
|
|
3145
3118
|
disableTime = false;
|
|
3146
3119
|
activeHover;
|
|
3147
3120
|
isTwoMonthDateRange = computed(() => !!this.config().enableDateRange &&
|
|
3148
|
-
(!!this.config().enableTwoMonthDateRange || !!this.config().showTime));
|
|
3149
|
-
firstDatepickerConfig = signal({});
|
|
3150
|
-
secondDatepickerConfig = signal({});
|
|
3121
|
+
(!!this.config().enableTwoMonthDateRange || !!this.config().showTime), ...(ngDevMode ? [{ debugName: "isTwoMonthDateRange" }] : []));
|
|
3122
|
+
firstDatepickerConfig = signal({}, ...(ngDevMode ? [{ debugName: "firstDatepickerConfig" }] : []));
|
|
3123
|
+
secondDatepickerConfig = signal({}, ...(ngDevMode ? [{ debugName: "secondDatepickerConfig" }] : []));
|
|
3151
3124
|
/**
|
|
3152
3125
|
* Indicate that the overlay is opened in small screen.
|
|
3153
3126
|
* A modal dialog animation display when true and a wrapped two month calendar layout is displayed.
|
|
3154
3127
|
*
|
|
3155
3128
|
* @defaultValue false
|
|
3156
3129
|
*/
|
|
3157
|
-
isMobile = input(false);
|
|
3158
|
-
completeAnimation = signal(false);
|
|
3130
|
+
isMobile = input(false, ...(ngDevMode ? [{ debugName: "isMobile" }] : []));
|
|
3131
|
+
completeAnimation = signal(false, ...(ngDevMode ? [{ debugName: "completeAnimation" }] : []));
|
|
3159
3132
|
ngOnChanges(changes) {
|
|
3160
3133
|
if (changes.config) {
|
|
3161
3134
|
const config = this.config();
|
|
@@ -3214,8 +3187,8 @@ class SiDatepickerOverlayComponent {
|
|
|
3214
3187
|
}
|
|
3215
3188
|
}
|
|
3216
3189
|
}
|
|
3217
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3218
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
3190
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerOverlayComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3191
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.8", type: SiDatepickerOverlayComponent, isStandalone: true, selector: "si-datepicker-overlay", inputs: { initialFocus: { classPropertyName: "initialFocus", publicName: "initialFocus", isSignal: true, isRequired: false, transformFunction: null }, config: { classPropertyName: "config", publicName: "config", isSignal: true, isRequired: false, transformFunction: null }, date: { classPropertyName: "date", publicName: "date", isSignal: true, isRequired: false, transformFunction: null }, dateRange: { classPropertyName: "dateRange", publicName: "dateRange", isSignal: true, isRequired: false, transformFunction: null }, rangeType: { classPropertyName: "rangeType", publicName: "rangeType", isSignal: true, isRequired: false, transformFunction: null }, time12h: { classPropertyName: "time12h", publicName: "time12h", isSignal: true, isRequired: false, transformFunction: null }, isMobile: { classPropertyName: "isMobile", publicName: "isMobile", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { date: "dateChange", dateRange: "dateRangeChange", rangeType: "rangeTypeChange", disabledTimeChange: "disabledTimeChange" }, host: { properties: { "class.flex-wrap": "isMobile()", "class.mobile-datepicker-overlay": "isMobile()", "class.fade": "isMobile()", "class.show": "completeAnimation()" }, classAttribute: "mt-md-1 d-flex elevation-2 rounded-2 overflow-auto align-items-stretch" }, viewQueries: [{ propertyName: "datepicker", first: true, predicate: SiDatepickerComponent, descendants: true, isSignal: true }], usesOnChanges: true, ngImport: i0, template: `
|
|
3219
3192
|
<si-datepicker
|
|
3220
3193
|
#datepicker
|
|
3221
3194
|
tabindex="-1"
|
|
@@ -3264,7 +3237,7 @@ class SiDatepickerOverlayComponent {
|
|
|
3264
3237
|
}
|
|
3265
3238
|
`, isInline: true, styles: [":host{max-block-size:max-content;max-inline-size:min-content}:host.fade{transition:transform calc(.3s * var(--element-animations-enabled, 1)) ease-out;transform:translateY(-50px)}:host.show{transform:none}.mobile-datepicker-overlay{max-inline-size:348px}.first-datepicker{border-inline-end:0;border-start-end-radius:0;border-end-end-radius:0}.second-datepicker{border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}.first-datepicker-mobile{border-block-end:0;border-end-start-radius:0;border-end-end-radius:0}.second-datepicker-mobile{border-block-start:0;border-start-start-radius:0;border-start-end-radius:0}\n"], dependencies: [{ kind: "component", type: SiDatepickerComponent, selector: "si-datepicker", inputs: ["focusedDate", "date", "dateRange", "dateRangeRole", "initialFocus", "disabledTime", "config", "previousLabel", "nextLabel", "calenderWeekLabel", "calendarWeekLabel", "time12h", "rangeType", "minMonth", "maxMonth", "hideTimeToggle", "hideCalendar", "timepickerLabel", "activeHover"], outputs: ["focusedDateChange", "dateChange", "dateRangeChange", "disabledTimeChange", "configChange", "rangeTypeChange", "activeHoverChange"] }, { kind: "ngmodule", type: A11yModule }], changeDetection: i0.ChangeDetectionStrategy.Default });
|
|
3266
3239
|
}
|
|
3267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3240
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerOverlayComponent, decorators: [{
|
|
3268
3241
|
type: Component,
|
|
3269
3242
|
args: [{ selector: 'si-datepicker-overlay', imports: [SiDatepickerComponent, A11yModule], template: `
|
|
3270
3243
|
<si-datepicker
|
|
@@ -3320,7 +3293,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
3320
3293
|
'[class.fade]': 'isMobile()',
|
|
3321
3294
|
'[class.show]': 'completeAnimation()'
|
|
3322
3295
|
}, styles: [":host{max-block-size:max-content;max-inline-size:min-content}:host.fade{transition:transform calc(.3s * var(--element-animations-enabled, 1)) ease-out;transform:translateY(-50px)}:host.show{transform:none}.mobile-datepicker-overlay{max-inline-size:348px}.first-datepicker{border-inline-end:0;border-start-end-radius:0;border-end-end-radius:0}.second-datepicker{border-inline-start:0;border-start-start-radius:0;border-end-start-radius:0}.first-datepicker-mobile{border-block-end:0;border-end-start-radius:0;border-end-end-radius:0}.second-datepicker-mobile{border-block-start:0;border-start-start-radius:0;border-start-end-radius:0}\n"] }]
|
|
3323
|
-
}] });
|
|
3296
|
+
}], propDecorators: { datepicker: [{ type: i0.ViewChild, args: [i0.forwardRef(() => SiDatepickerComponent), { isSignal: true }] }], initialFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialFocus", required: false }] }], config: [{ type: i0.Input, args: [{ isSignal: true, alias: "config", required: false }] }], date: [{ type: i0.Input, args: [{ isSignal: true, alias: "date", required: false }] }, { type: i0.Output, args: ["dateChange"] }], dateRange: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateRange", required: false }] }, { type: i0.Output, args: ["dateRangeChange"] }], rangeType: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeType", required: false }] }, { type: i0.Output, args: ["rangeTypeChange"] }], time12h: [{ type: i0.Input, args: [{ isSignal: true, alias: "time12h", required: false }] }], disabledTimeChange: [{ type: i0.Output, args: ["disabledTimeChange"] }], isMobile: [{ type: i0.Input, args: [{ isSignal: true, alias: "isMobile", required: false }] }] } });
|
|
3324
3297
|
|
|
3325
3298
|
/**
|
|
3326
3299
|
* Copyright (c) Siemens 2016 - 2025
|
|
@@ -3358,7 +3331,7 @@ class SiDatepickerOverlayDirective {
|
|
|
3358
3331
|
originX: 'start',
|
|
3359
3332
|
originY: 'top'
|
|
3360
3333
|
}
|
|
3361
|
-
]);
|
|
3334
|
+
], ...(ngDevMode ? [{ debugName: "placement" }] : []));
|
|
3362
3335
|
/**
|
|
3363
3336
|
* Output event on closing datepicker e.g. by clicking backdrop or escape key.
|
|
3364
3337
|
*/
|
|
@@ -3513,16 +3486,16 @@ class SiDatepickerOverlayDirective {
|
|
|
3513
3486
|
return merge(this.autoCloseSelection.pipe(map(() => CloseCause.Select)), overlayRef.backdropClick().pipe(map(() => CloseCause.Backdrop)), overlayRef.detachments().pipe(map(() => CloseCause.Detach)), overlayRef.keydownEvents().pipe(filter(event => event.key === 'Escape'), tap(event => event.stopPropagation()), // ESC handled, prevent closing modal, etc.
|
|
3514
3487
|
map(() => CloseCause.Escape)));
|
|
3515
3488
|
}
|
|
3516
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3517
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3489
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerOverlayDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
3490
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.8", type: SiDatepickerOverlayDirective, isStandalone: true, selector: "[siDatepickerOverlay]", outputs: { siDatepickerClose: "siDatepickerClose" }, exportAs: ["siDatepickerOverlay"], ngImport: i0 });
|
|
3518
3491
|
}
|
|
3519
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3492
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerOverlayDirective, decorators: [{
|
|
3520
3493
|
type: Directive,
|
|
3521
3494
|
args: [{
|
|
3522
3495
|
selector: '[siDatepickerOverlay]',
|
|
3523
3496
|
exportAs: 'siDatepickerOverlay'
|
|
3524
3497
|
}]
|
|
3525
|
-
}] });
|
|
3498
|
+
}], propDecorators: { siDatepickerClose: [{ type: i0.Output, args: ["siDatepickerClose"] }] } });
|
|
3526
3499
|
|
|
3527
3500
|
/**
|
|
3528
3501
|
* Copyright (c) Siemens 2016 - 2025
|
|
@@ -3536,7 +3509,7 @@ class SiDatepickerDirective extends SiDateInputDirective {
|
|
|
3536
3509
|
*
|
|
3537
3510
|
* @defaultValue false
|
|
3538
3511
|
*/
|
|
3539
|
-
autoClose = input(false, { transform: booleanAttribute });
|
|
3512
|
+
autoClose = input(false, { ...(ngDevMode ? { debugName: "autoClose" } : {}), transform: booleanAttribute });
|
|
3540
3513
|
/**
|
|
3541
3514
|
* During focus on close the datepicker will not show since we recover the focus on element.
|
|
3542
3515
|
* The focus on close is only relevant when the directive is configured without a calendar button.
|
|
@@ -3621,8 +3594,8 @@ class SiDatepickerDirective extends SiDateInputDirective {
|
|
|
3621
3594
|
setTimeout(() => this.overlayToggle.closeAfterSelection());
|
|
3622
3595
|
}
|
|
3623
3596
|
}
|
|
3624
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3625
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
3597
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
3598
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.0.8", type: SiDatepickerDirective, isStandalone: true, selector: "[siDatepicker]", inputs: { autoClose: { classPropertyName: "autoClose", publicName: "autoClose", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "onClick()", "keydown.tab": "onTab()", "focus": "focusChange()" } }, providers: [
|
|
3626
3599
|
{
|
|
3627
3600
|
provide: NG_VALUE_ACCESSOR,
|
|
3628
3601
|
useExisting: SiDatepickerDirective,
|
|
@@ -3639,7 +3612,7 @@ class SiDatepickerDirective extends SiDateInputDirective {
|
|
|
3639
3612
|
}
|
|
3640
3613
|
], exportAs: ["siDatepicker"], usesInheritance: true, hostDirectives: [{ directive: SiDatepickerOverlayDirective, outputs: ["siDatepickerClose", "siDatepickerClose"] }], ngImport: i0 });
|
|
3641
3614
|
}
|
|
3642
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3615
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerDirective, decorators: [{
|
|
3643
3616
|
type: Directive,
|
|
3644
3617
|
args: [{
|
|
3645
3618
|
selector: '[siDatepicker]',
|
|
@@ -3667,7 +3640,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
3667
3640
|
],
|
|
3668
3641
|
exportAs: 'siDatepicker'
|
|
3669
3642
|
}]
|
|
3670
|
-
}], propDecorators: { onClick: [{
|
|
3643
|
+
}], propDecorators: { autoClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoClose", required: false }] }], onClick: [{
|
|
3671
3644
|
type: HostListener,
|
|
3672
3645
|
args: ['click']
|
|
3673
3646
|
}], onTab: [{
|
|
@@ -3684,7 +3657,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
3684
3657
|
*/
|
|
3685
3658
|
class SiDateRangeComponent {
|
|
3686
3659
|
static idCounter = 0;
|
|
3687
|
-
inputDirectives = viewChildren(SiDateInputDirective);
|
|
3660
|
+
inputDirectives = viewChildren(SiDateInputDirective, ...(ngDevMode ? [{ debugName: "inputDirectives" }] : []));
|
|
3688
3661
|
startInput = viewChild.required('startInput');
|
|
3689
3662
|
endInput = viewChild.required('endInput');
|
|
3690
3663
|
button = viewChild.required('button');
|
|
@@ -3694,7 +3667,7 @@ class SiDateRangeComponent {
|
|
|
3694
3667
|
* `__si-date-range-${SiDateRangeComponent.idCounter++}`
|
|
3695
3668
|
* ```
|
|
3696
3669
|
*/
|
|
3697
|
-
id = input(`__si-date-range-${SiDateRangeComponent.idCounter++}
|
|
3670
|
+
id = input(`__si-date-range-${SiDateRangeComponent.idCounter++}`, ...(ngDevMode ? [{ debugName: "id" }] : []));
|
|
3698
3671
|
labelledby = inject(new HostAttributeToken('aria-labelledby'), {
|
|
3699
3672
|
optional: true
|
|
3700
3673
|
}) ?? `${this.id()}-label`;
|
|
@@ -3706,7 +3679,7 @@ class SiDateRangeComponent {
|
|
|
3706
3679
|
* { enableDateRange: true }
|
|
3707
3680
|
* ```
|
|
3708
3681
|
*/
|
|
3709
|
-
siDatepickerConfig = model({ enableDateRange: true });
|
|
3682
|
+
siDatepickerConfig = model({ enableDateRange: true }, ...(ngDevMode ? [{ debugName: "siDatepickerConfig" }] : []));
|
|
3710
3683
|
/**
|
|
3711
3684
|
* Placeholder of the start date input.
|
|
3712
3685
|
*
|
|
@@ -3715,7 +3688,7 @@ class SiDateRangeComponent {
|
|
|
3715
3688
|
* t(() => $localize`:@@SI_DATEPICKER.START_DATE_PLACEHOLDER:Start date`)
|
|
3716
3689
|
* ```
|
|
3717
3690
|
*/
|
|
3718
|
-
startDatePlaceholder = input(t(() => $localize `:@@SI_DATEPICKER.START_DATE_PLACEHOLDER:Start date`));
|
|
3691
|
+
startDatePlaceholder = input(t(() => $localize `:@@SI_DATEPICKER.START_DATE_PLACEHOLDER:Start date`), ...(ngDevMode ? [{ debugName: "startDatePlaceholder" }] : []));
|
|
3719
3692
|
/**
|
|
3720
3693
|
* Placeholder of the end date input.
|
|
3721
3694
|
*
|
|
@@ -3724,7 +3697,7 @@ class SiDateRangeComponent {
|
|
|
3724
3697
|
* t(() => $localize`:@@SI_DATEPICKER.END_DATE_PLACEHOLDER:End date`)
|
|
3725
3698
|
* ```
|
|
3726
3699
|
*/
|
|
3727
|
-
endDatePlaceholder = input(t(() => $localize `:@@SI_DATEPICKER.END_DATE_PLACEHOLDER:End date`));
|
|
3700
|
+
endDatePlaceholder = input(t(() => $localize `:@@SI_DATEPICKER.END_DATE_PLACEHOLDER:End date`), ...(ngDevMode ? [{ debugName: "endDatePlaceholder" }] : []));
|
|
3728
3701
|
/**
|
|
3729
3702
|
* Aria label of the date-range calendar toggle button.
|
|
3730
3703
|
*
|
|
@@ -3733,7 +3706,7 @@ class SiDateRangeComponent {
|
|
|
3733
3706
|
* t(() => $localize`:@@SI_DATEPICKER.CALENDAR_TOGGLE_BUTTON:Open calendar`)
|
|
3734
3707
|
* ```
|
|
3735
3708
|
*/
|
|
3736
|
-
ariaLabelCalendarButton = input(t(() => $localize `:@@SI_DATEPICKER.CALENDAR_TOGGLE_BUTTON:Open calendar`));
|
|
3709
|
+
ariaLabelCalendarButton = input(t(() => $localize `:@@SI_DATEPICKER.CALENDAR_TOGGLE_BUTTON:Open calendar`), ...(ngDevMode ? [{ debugName: "ariaLabelCalendarButton" }] : []));
|
|
3737
3710
|
/**
|
|
3738
3711
|
* Form label of the start timepicker.
|
|
3739
3712
|
*
|
|
@@ -3742,7 +3715,7 @@ class SiDateRangeComponent {
|
|
|
3742
3715
|
* t(() => $localize`:@@SI_DATEPICKER.START_TIME_LABEL:from`)
|
|
3743
3716
|
* ```
|
|
3744
3717
|
*/
|
|
3745
|
-
startTimeLabel = input(t(() => $localize `:@@SI_DATEPICKER.START_TIME_LABEL:from`));
|
|
3718
|
+
startTimeLabel = input(t(() => $localize `:@@SI_DATEPICKER.START_TIME_LABEL:from`), ...(ngDevMode ? [{ debugName: "startTimeLabel" }] : []));
|
|
3746
3719
|
/**
|
|
3747
3720
|
* Form label of the start timepicker.
|
|
3748
3721
|
*
|
|
@@ -3751,13 +3724,13 @@ class SiDateRangeComponent {
|
|
|
3751
3724
|
* t(() => $localize`:@@SI_DATEPICKER.END_TIME_LABEL:to`)
|
|
3752
3725
|
* ```
|
|
3753
3726
|
*/
|
|
3754
|
-
endTimeLabel = input(t(() => $localize `:@@SI_DATEPICKER.END_TIME_LABEL:to`));
|
|
3727
|
+
endTimeLabel = input(t(() => $localize `:@@SI_DATEPICKER.END_TIME_LABEL:to`), ...(ngDevMode ? [{ debugName: "endTimeLabel" }] : []));
|
|
3755
3728
|
/**
|
|
3756
3729
|
* Automatically close overlay on date selection.
|
|
3757
3730
|
*
|
|
3758
3731
|
* @defaultValue false
|
|
3759
3732
|
*/
|
|
3760
|
-
autoClose = input(false, { transform: booleanAttribute });
|
|
3733
|
+
autoClose = input(false, { ...(ngDevMode ? { debugName: "autoClose" } : {}), transform: booleanAttribute });
|
|
3761
3734
|
/** Emits on the date range value changes. */
|
|
3762
3735
|
siDatepickerRangeChange = output();
|
|
3763
3736
|
/**
|
|
@@ -3771,18 +3744,18 @@ class SiDateRangeComponent {
|
|
|
3771
3744
|
* @defaultValue false
|
|
3772
3745
|
*/
|
|
3773
3746
|
// eslint-disable-next-line @angular-eslint/no-input-rename
|
|
3774
|
-
disabledInput = input(false, { alias: 'disabled' });
|
|
3747
|
+
disabledInput = input(false, { ...(ngDevMode ? { debugName: "disabledInput" } : {}), alias: 'disabled' });
|
|
3775
3748
|
/**
|
|
3776
3749
|
* Whether the date range input is readonly.
|
|
3777
3750
|
*
|
|
3778
3751
|
* @defaultValue false
|
|
3779
3752
|
*/
|
|
3780
|
-
readonly = input(false, { transform: booleanAttribute });
|
|
3753
|
+
readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : {}), transform: booleanAttribute });
|
|
3781
3754
|
/**
|
|
3782
3755
|
* Set the date-range object displayed in the control.
|
|
3783
3756
|
* The input can be used if the control is used outside Angular forms.
|
|
3784
3757
|
*/
|
|
3785
|
-
value = model();
|
|
3758
|
+
value = model(...(ngDevMode ? [undefined, { debugName: "value" }] : []));
|
|
3786
3759
|
/**
|
|
3787
3760
|
* This ID will be bound to the `aria-describedby` attribute of the date-range.
|
|
3788
3761
|
* Use this to reference the element containing the error message(s) for the date-range.
|
|
@@ -3793,13 +3766,13 @@ class SiDateRangeComponent {
|
|
|
3793
3766
|
* `${this.id()}-errormessage`
|
|
3794
3767
|
* ```
|
|
3795
3768
|
*/
|
|
3796
|
-
errormessageId = input(`${this.id()}-errormessage
|
|
3769
|
+
errormessageId = input(`${this.id()}-errormessage`, ...(ngDevMode ? [{ debugName: "errormessageId" }] : []));
|
|
3797
3770
|
validator;
|
|
3798
3771
|
onChange = (val) => { };
|
|
3799
3772
|
onTouch = () => { };
|
|
3800
3773
|
icons = addIcons({ elementCalendar });
|
|
3801
|
-
disabled = computed(() => this.disabledInput() || this.disabledNgControl());
|
|
3802
|
-
disabledNgControl = signal(false);
|
|
3774
|
+
disabled = computed(() => this.disabledInput() || this.disabledNgControl(), ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
3775
|
+
disabledNgControl = signal(false, ...(ngDevMode ? [{ debugName: "disabledNgControl" }] : []));
|
|
3803
3776
|
cdRef = inject(ChangeDetectorRef);
|
|
3804
3777
|
locale = inject(LOCALE_ID).toString();
|
|
3805
3778
|
overlayToggle = inject(SiDatepickerOverlayDirective);
|
|
@@ -3967,8 +3940,8 @@ class SiDateRangeComponent {
|
|
|
3967
3940
|
this.value.set(value);
|
|
3968
3941
|
}
|
|
3969
3942
|
}
|
|
3970
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3971
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
3943
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDateRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
3944
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.8", type: SiDateRangeComponent, isStandalone: true, selector: "si-date-range", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, siDatepickerConfig: { classPropertyName: "siDatepickerConfig", publicName: "siDatepickerConfig", isSignal: true, isRequired: false, transformFunction: null }, startDatePlaceholder: { classPropertyName: "startDatePlaceholder", publicName: "startDatePlaceholder", isSignal: true, isRequired: false, transformFunction: null }, endDatePlaceholder: { classPropertyName: "endDatePlaceholder", publicName: "endDatePlaceholder", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelCalendarButton: { classPropertyName: "ariaLabelCalendarButton", publicName: "ariaLabelCalendarButton", isSignal: true, isRequired: false, transformFunction: null }, startTimeLabel: { classPropertyName: "startTimeLabel", publicName: "startTimeLabel", isSignal: true, isRequired: false, transformFunction: null }, endTimeLabel: { classPropertyName: "endTimeLabel", publicName: "endTimeLabel", isSignal: true, isRequired: false, transformFunction: null }, autoClose: { classPropertyName: "autoClose", publicName: "autoClose", isSignal: true, isRequired: false, transformFunction: null }, disabledInput: { classPropertyName: "disabledInput", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, errormessageId: { classPropertyName: "errormessageId", publicName: "errormessageId", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { siDatepickerConfig: "siDatepickerConfigChange", siDatepickerRangeChange: "siDatepickerRangeChange", disabledTimeChange: "disabledTimeChange", value: "valueChange" }, host: { attributes: { "role": "group" }, listeners: { "focusout": "onFocusOut($event)" }, properties: { "class.disabled": "disabled()", "class.readonly": "readonly()", "attr.aria-labelledby": "labelledby" }, classAttribute: "form-control d-flex align-items-center pe-2" }, providers: [
|
|
3972
3945
|
{
|
|
3973
3946
|
provide: NG_VALUE_ACCESSOR,
|
|
3974
3947
|
useExisting: SiDateRangeComponent,
|
|
@@ -3983,9 +3956,9 @@ class SiDateRangeComponent {
|
|
|
3983
3956
|
provide: SI_FORM_ITEM_CONTROL,
|
|
3984
3957
|
useExisting: SiDateRangeComponent
|
|
3985
3958
|
}
|
|
3986
|
-
], viewQueries: [{ propertyName: "inputDirectives", predicate: SiDateInputDirective, descendants: true, isSignal: true }, { propertyName: "startInput", first: true, predicate: ["startInput"], descendants: true, isSignal: true }, { propertyName: "endInput", first: true, predicate: ["endInput"], descendants: true, isSignal: true }, { propertyName: "button", first: true, predicate: ["button"], descendants: true, isSignal: true }], usesOnChanges: true, hostDirectives: [{ directive: SiDatepickerOverlayDirective, outputs: ["siDatepickerClose", "siDatepickerClose"] }], ngImport: i0, template: "<input\n #startInput=\"ngModel\"\n type=\"text\"\n class=\"border-0 p-0 focus-none\"\n siDateInput\n [ngModel]=\"value()?.start ?? null\"\n [siDatepickerConfig]=\"siDatepickerConfig()\"\n [placeholder]=\"startDatePlaceholder() | translate\"\n [attr.aria-label]=\"startDatePlaceholder() | translate\"\n [errormessageId]=\"errormessageId()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (ngModelChange)=\"onInputChanged({ start: $event, end: value()?.end })\"\n/>\n<span class=\"mx-3\">-</span>\n<input\n #endInput=\"ngModel\"\n type=\"text\"\n class=\"border-0 p-0 focus-none text-end\"\n siDateInput\n [ngModel]=\"value()?.end ?? null\"\n [siDatepickerConfig]=\"siDatepickerConfig()\"\n [placeholder]=\"endDatePlaceholder() | translate\"\n [attr.aria-label]=\"endDatePlaceholder() | translate\"\n [errormessageId]=\"errormessageId()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (ngModelChange)=\"onInputChanged({ start: value()?.start, end: $event })\"\n/>\n<button\n #button\n type=\"button\"\n class=\"btn btn-circle btn-tertiary btn-xs\"\n [attr.aria-label]=\"ariaLabelCalendarButton() | translate\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"show()\"\n>\n <si-icon [icon]=\"icons.elementCalendar\" />\n</button>\n", styles: [":host{display:block;min-inline-size:237px;--si-action-icon-offset: 22px}:host(:focus-within){outline:var(--element-button-focus-width) solid var(--element-focus-default);outline-offset:var(--element-button-focus-overlay-width)}input{flex-grow:1;background-color:transparent;min-inline-size:80px}input::placeholder{opacity:1;color:var(--element-text-secondary)}input:disabled,input[readonly]{background-color:var(--element-base-1);opacity:1}input:disabled::placeholder{color:transparent}input:not([readonly]):focus::placeholder,input:focus:not([readonly]):focus::placeholder{color:transparent}.disabled,.disabled:hover,.disabled:focus{--border-color: var(--element-ui-3);color:var(--element-text-disabled)}.btn-circle{margin-inline-start:var(--si-feedback-icon-offset, 4px)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: SiDateInputDirective, selector: "input[siDateInput]", inputs: ["id", "siDatepickerConfig", "disabled", "readonly", "errormessageId"], outputs: ["siDatepickerConfigChange", "siDatepickerDisabledTime", "stateChange", "dateChange"], exportAs: ["siDateInput"] }, { kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }, { kind: "
|
|
3959
|
+
], viewQueries: [{ propertyName: "inputDirectives", predicate: SiDateInputDirective, descendants: true, isSignal: true }, { propertyName: "startInput", first: true, predicate: ["startInput"], descendants: true, isSignal: true }, { propertyName: "endInput", first: true, predicate: ["endInput"], descendants: true, isSignal: true }, { propertyName: "button", first: true, predicate: ["button"], descendants: true, isSignal: true }], usesOnChanges: true, hostDirectives: [{ directive: SiDatepickerOverlayDirective, outputs: ["siDatepickerClose", "siDatepickerClose"] }], ngImport: i0, template: "<input\n #startInput=\"ngModel\"\n type=\"text\"\n class=\"border-0 p-0 focus-none\"\n siDateInput\n [ngModel]=\"value()?.start ?? null\"\n [siDatepickerConfig]=\"siDatepickerConfig()\"\n [placeholder]=\"startDatePlaceholder() | translate\"\n [attr.aria-label]=\"startDatePlaceholder() | translate\"\n [errormessageId]=\"errormessageId()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (ngModelChange)=\"onInputChanged({ start: $event, end: value()?.end })\"\n/>\n<span class=\"mx-3\">-</span>\n<input\n #endInput=\"ngModel\"\n type=\"text\"\n class=\"border-0 p-0 focus-none text-end\"\n siDateInput\n [ngModel]=\"value()?.end ?? null\"\n [siDatepickerConfig]=\"siDatepickerConfig()\"\n [placeholder]=\"endDatePlaceholder() | translate\"\n [attr.aria-label]=\"endDatePlaceholder() | translate\"\n [errormessageId]=\"errormessageId()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (ngModelChange)=\"onInputChanged({ start: value()?.start, end: $event })\"\n/>\n<button\n #button\n type=\"button\"\n class=\"btn btn-circle btn-tertiary btn-xs\"\n [attr.aria-label]=\"ariaLabelCalendarButton() | translate\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"show()\"\n>\n <si-icon [icon]=\"icons.elementCalendar\" />\n</button>\n", styles: [":host{display:block;min-inline-size:237px;--si-action-icon-offset: 22px}:host(:focus-within){outline:var(--element-button-focus-width) solid var(--element-focus-default);outline-offset:var(--element-button-focus-overlay-width)}input{flex-grow:1;background-color:transparent;min-inline-size:80px}input::placeholder{opacity:1;color:var(--element-text-secondary)}input:disabled,input[readonly]{background-color:var(--element-base-1);opacity:1}input:disabled::placeholder{color:transparent}input:not([readonly]):focus::placeholder,input:focus:not([readonly]):focus::placeholder{color:transparent}.disabled,.disabled:hover,.disabled:focus{--border-color: var(--element-ui-3);color:var(--element-text-disabled)}.btn-circle{margin-inline-start:var(--si-feedback-icon-offset, 4px)}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: SiDateInputDirective, selector: "input[siDateInput]", inputs: ["id", "siDatepickerConfig", "disabled", "readonly", "errormessageId"], outputs: ["siDatepickerConfigChange", "siDatepickerDisabledTime", "stateChange", "dateChange"], exportAs: ["siDateInput"] }, { kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }, { kind: "ngmodule", type: A11yModule }, { kind: "pipe", type: SiTranslatePipe, name: "translate" }] });
|
|
3987
3960
|
}
|
|
3988
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3961
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDateRangeComponent, decorators: [{
|
|
3989
3962
|
type: Component,
|
|
3990
3963
|
args: [{ selector: 'si-date-range', imports: [FormsModule, SiDateInputDirective, SiIconComponent, SiTranslatePipe, A11yModule], providers: [
|
|
3991
3964
|
{
|
|
@@ -4014,7 +3987,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
4014
3987
|
outputs: ['siDatepickerClose']
|
|
4015
3988
|
}
|
|
4016
3989
|
], template: "<input\n #startInput=\"ngModel\"\n type=\"text\"\n class=\"border-0 p-0 focus-none\"\n siDateInput\n [ngModel]=\"value()?.start ?? null\"\n [siDatepickerConfig]=\"siDatepickerConfig()\"\n [placeholder]=\"startDatePlaceholder() | translate\"\n [attr.aria-label]=\"startDatePlaceholder() | translate\"\n [errormessageId]=\"errormessageId()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (ngModelChange)=\"onInputChanged({ start: $event, end: value()?.end })\"\n/>\n<span class=\"mx-3\">-</span>\n<input\n #endInput=\"ngModel\"\n type=\"text\"\n class=\"border-0 p-0 focus-none text-end\"\n siDateInput\n [ngModel]=\"value()?.end ?? null\"\n [siDatepickerConfig]=\"siDatepickerConfig()\"\n [placeholder]=\"endDatePlaceholder() | translate\"\n [attr.aria-label]=\"endDatePlaceholder() | translate\"\n [errormessageId]=\"errormessageId()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly()\"\n (ngModelChange)=\"onInputChanged({ start: value()?.start, end: $event })\"\n/>\n<button\n #button\n type=\"button\"\n class=\"btn btn-circle btn-tertiary btn-xs\"\n [attr.aria-label]=\"ariaLabelCalendarButton() | translate\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"show()\"\n>\n <si-icon [icon]=\"icons.elementCalendar\" />\n</button>\n", styles: [":host{display:block;min-inline-size:237px;--si-action-icon-offset: 22px}:host(:focus-within){outline:var(--element-button-focus-width) solid var(--element-focus-default);outline-offset:var(--element-button-focus-overlay-width)}input{flex-grow:1;background-color:transparent;min-inline-size:80px}input::placeholder{opacity:1;color:var(--element-text-secondary)}input:disabled,input[readonly]{background-color:var(--element-base-1);opacity:1}input:disabled::placeholder{color:transparent}input:not([readonly]):focus::placeholder,input:focus:not([readonly]):focus::placeholder{color:transparent}.disabled,.disabled:hover,.disabled:focus{--border-color: var(--element-ui-3);color:var(--element-text-disabled)}.btn-circle{margin-inline-start:var(--si-feedback-icon-offset, 4px)}\n"] }]
|
|
4017
|
-
}], propDecorators: { onFocusOut: [{
|
|
3990
|
+
}], propDecorators: { inputDirectives: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => SiDateInputDirective), { isSignal: true }] }], startInput: [{ type: i0.ViewChild, args: ['startInput', { isSignal: true }] }], endInput: [{ type: i0.ViewChild, args: ['endInput', { isSignal: true }] }], button: [{ type: i0.ViewChild, args: ['button', { isSignal: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], siDatepickerConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "siDatepickerConfig", required: false }] }, { type: i0.Output, args: ["siDatepickerConfigChange"] }], startDatePlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "startDatePlaceholder", required: false }] }], endDatePlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "endDatePlaceholder", required: false }] }], ariaLabelCalendarButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelCalendarButton", required: false }] }], startTimeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "startTimeLabel", required: false }] }], endTimeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "endTimeLabel", required: false }] }], autoClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoClose", required: false }] }], siDatepickerRangeChange: [{ type: i0.Output, args: ["siDatepickerRangeChange"] }], disabledTimeChange: [{ type: i0.Output, args: ["disabledTimeChange"] }], disabledInput: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], errormessageId: [{ type: i0.Input, args: [{ isSignal: true, alias: "errormessageId", required: false }] }], onFocusOut: [{
|
|
4018
3991
|
type: HostListener,
|
|
4019
3992
|
args: ['focusout', ['$event']]
|
|
4020
3993
|
}] } });
|
|
@@ -4047,19 +4020,19 @@ class SiCalendarButtonComponent {
|
|
|
4047
4020
|
* t(() => $localize`:@@SI_DATEPICKER.CALENDAR_TOGGLE_BUTTON:Open calendar`)
|
|
4048
4021
|
* ```
|
|
4049
4022
|
*/
|
|
4050
|
-
ariaLabel = input(t(() => $localize `:@@SI_DATEPICKER.CALENDAR_TOGGLE_BUTTON:Open calendar`));
|
|
4023
|
+
ariaLabel = input(t(() => $localize `:@@SI_DATEPICKER.CALENDAR_TOGGLE_BUTTON:Open calendar`), ...(ngDevMode ? [{ debugName: "ariaLabel" }] : []));
|
|
4051
4024
|
button = viewChild.required('calendarButton');
|
|
4052
4025
|
/** Datepicker input directive instance used to watch for state changes and required to open the calendar. */
|
|
4053
4026
|
datepicker = contentChild.required(SiDatepickerDirective);
|
|
4054
4027
|
datepickerOverlay = contentChild.required(SiDatepickerOverlayDirective);
|
|
4055
|
-
ngControl = contentChild(NgControl);
|
|
4056
|
-
disabled = signal(false);
|
|
4028
|
+
ngControl = contentChild(NgControl, ...(ngDevMode ? [{ debugName: "ngControl" }] : []));
|
|
4029
|
+
disabled = signal(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
4057
4030
|
icons = addIcons({ elementCalendar });
|
|
4058
4031
|
destroyerRef = inject(DestroyRef);
|
|
4059
4032
|
focusMonitor = inject(FocusMonitor);
|
|
4060
4033
|
elementRef = inject(ElementRef);
|
|
4061
4034
|
// Add classes here to enable error messages in si-form-item
|
|
4062
|
-
showValidationMessages = signal(false);
|
|
4035
|
+
showValidationMessages = signal(false, ...(ngDevMode ? [{ debugName: "showValidationMessages" }] : []));
|
|
4063
4036
|
ngOnInit() {
|
|
4064
4037
|
// Monitor input state changes and update the button accordingly
|
|
4065
4038
|
this.datepicker().stateChange.subscribe(() => this.updateState());
|
|
@@ -4089,8 +4062,8 @@ class SiCalendarButtonComponent {
|
|
|
4089
4062
|
const datepicker = this.datepicker();
|
|
4090
4063
|
this.disabled.set(datepicker.disabled() || datepicker.readonly());
|
|
4091
4064
|
}
|
|
4092
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4093
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "
|
|
4065
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiCalendarButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
4066
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.0.8", type: SiCalendarButtonComponent, isStandalone: true, selector: "si-calendar-button", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.ng-invalid": "showValidationMessages()", "class.ng-touched": "showValidationMessages()" }, classAttribute: "d-inline-block position-relative form-control-wrapper" }, queries: [{ propertyName: "datepicker", first: true, predicate: SiDatepickerDirective, descendants: true, isSignal: true }, { propertyName: "datepickerOverlay", first: true, predicate: SiDatepickerOverlayDirective, descendants: true, isSignal: true }, { propertyName: "ngControl", first: true, predicate: NgControl, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["calendarButton"], descendants: true, isSignal: true }], ngImport: i0, template: `<ng-content />
|
|
4094
4067
|
<button
|
|
4095
4068
|
#calendarButton
|
|
4096
4069
|
name="open-calendar"
|
|
@@ -4103,7 +4076,7 @@ class SiCalendarButtonComponent {
|
|
|
4103
4076
|
<si-icon [icon]="icons.elementCalendar" />
|
|
4104
4077
|
</button>`, isInline: true, styles: [":host{--si-action-icon-offset: 24px}\n"], dependencies: [{ kind: "component", type: SiIconComponent, selector: "si-icon", inputs: ["icon"] }, { kind: "pipe", type: SiTranslatePipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
4105
4078
|
}
|
|
4106
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiCalendarButtonComponent, decorators: [{
|
|
4107
4080
|
type: Component,
|
|
4108
4081
|
args: [{ selector: 'si-calendar-button', imports: [SiIconComponent, SiTranslatePipe], template: `<ng-content />
|
|
4109
4082
|
<button
|
|
@@ -4121,15 +4094,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.0.6", ngImpor
|
|
|
4121
4094
|
'[class.ng-invalid]': 'showValidationMessages()',
|
|
4122
4095
|
'[class.ng-touched]': 'showValidationMessages()'
|
|
4123
4096
|
}, styles: [":host{--si-action-icon-offset: 24px}\n"] }]
|
|
4124
|
-
}] });
|
|
4097
|
+
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], button: [{ type: i0.ViewChild, args: ['calendarButton', { isSignal: true }] }], datepicker: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SiDatepickerDirective), { isSignal: true }] }], datepickerOverlay: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SiDatepickerOverlayDirective), { isSignal: true }] }], ngControl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NgControl), { isSignal: true }] }] } });
|
|
4125
4098
|
|
|
4126
4099
|
/**
|
|
4127
4100
|
* Copyright (c) Siemens 2016 - 2025
|
|
4128
4101
|
* SPDX-License-Identifier: MIT
|
|
4129
4102
|
*/
|
|
4130
4103
|
class SiDatepickerModule {
|
|
4131
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4132
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4104
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4105
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerModule, imports: [SiCalendarButtonComponent,
|
|
4133
4106
|
SiDateInputDirective,
|
|
4134
4107
|
SiDatepickerComponent,
|
|
4135
4108
|
SiDatepickerDirective,
|
|
@@ -4140,12 +4113,12 @@ class SiDatepickerModule {
|
|
|
4140
4113
|
SiDatepickerDirective,
|
|
4141
4114
|
SiDateRangeComponent,
|
|
4142
4115
|
SiTimepickerComponent] });
|
|
4143
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4116
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerModule, imports: [SiCalendarButtonComponent,
|
|
4144
4117
|
SiDatepickerComponent,
|
|
4145
4118
|
SiDateRangeComponent,
|
|
4146
4119
|
SiTimepickerComponent] });
|
|
4147
4120
|
}
|
|
4148
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4121
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.8", ngImport: i0, type: SiDatepickerModule, decorators: [{
|
|
4149
4122
|
type: NgModule,
|
|
4150
4123
|
args: [{
|
|
4151
4124
|
imports: [
|