@siemens/element-ng 47.2.0 → 47.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +18 -6
- package/autocomplete/index.d.ts +8 -0
- package/autocomplete/package.json +3 -0
- package/autocomplete/si-autocomplete-listbox.directive.d.ts +31 -0
- package/autocomplete/si-autocomplete-option.directive.d.ts +31 -0
- package/autocomplete/si-autocomplete.directive.d.ts +14 -0
- package/autocomplete/si-autocomplete.model.d.ts +7 -0
- package/autocomplete/si-autocomplete.module.d.ts +9 -0
- package/badge/index.d.ts +5 -0
- package/badge/package.json +3 -0
- package/badge/si-badge.component.d.ts +17 -0
- package/breadcrumb/breadcrumb-item.model.d.ts +36 -0
- package/breadcrumb/index.d.ts +7 -0
- package/breadcrumb/package.json +3 -0
- package/breadcrumb/si-breadcrumb-item-template.directive.d.ts +10 -0
- package/breadcrumb/si-breadcrumb.component.d.ts +46 -0
- package/breadcrumb/si-breadcrumb.module.d.ts +7 -0
- package/card/index.d.ts +6 -0
- package/card/package.json +3 -0
- package/card/si-card.component.d.ts +79 -0
- package/card/si-card.module.d.ts +7 -0
- package/circle-status/index.d.ts +6 -0
- package/circle-status/package.json +3 -0
- package/circle-status/si-circle-status.component.d.ts +66 -0
- package/circle-status/si-circle-status.module.d.ts +7 -0
- package/column-selection-dialog/column-selection-editor/si-column-selection-editor.component.d.ts +23 -0
- package/column-selection-dialog/index.d.ts +6 -0
- package/column-selection-dialog/package.json +3 -0
- package/column-selection-dialog/si-column-selection-dialog.component.d.ts +114 -0
- package/column-selection-dialog/si-column-selection-dialog.service.d.ts +20 -0
- package/column-selection-dialog/si-column-selection-dialog.types.d.ts +68 -0
- package/common/models/status-type.model.d.ts +2 -2
- package/content-action-bar/index.d.ts +7 -0
- package/content-action-bar/package.json +3 -0
- package/content-action-bar/si-content-action-bar-toggle.component.d.ts +6 -0
- package/content-action-bar/si-content-action-bar.component.d.ts +72 -0
- package/content-action-bar/si-content-action-bar.model.d.ts +9 -0
- package/content-action-bar/si-content-action-bar.module.d.ts +7 -0
- package/date-range-filter/index.d.ts +8 -0
- package/date-range-filter/package.json +3 -0
- package/date-range-filter/si-date-range-calculation.service.d.ts +33 -0
- package/date-range-filter/si-date-range-filter.component.d.ts +248 -0
- package/date-range-filter/si-date-range-filter.module.d.ts +7 -0
- package/date-range-filter/si-date-range-filter.types.d.ts +40 -0
- package/date-range-filter/si-relative-date.component.d.ts +31 -0
- package/datepicker/components/si-calendar-body.component.d.ts +137 -0
- package/datepicker/components/si-calendar-date-cell.directive.d.ts +16 -0
- package/datepicker/components/si-calendar-direction-button.component.d.ts +18 -0
- package/datepicker/components/si-compare-adapter.d.ts +37 -0
- package/datepicker/components/si-day-selection.component.d.ts +76 -0
- package/datepicker/components/si-initial-focus.component.d.ts +74 -0
- package/datepicker/components/si-month-selection.component.d.ts +62 -0
- package/datepicker/components/si-year-selection.component.d.ts +65 -0
- package/datepicker/date-time-helper.d.ts +302 -0
- package/datepicker/index.d.ts +15 -0
- package/datepicker/package.json +3 -0
- package/datepicker/si-calendar-button.component.d.ts +49 -0
- package/datepicker/si-date-input.directive.d.ts +114 -0
- package/datepicker/si-date-range.component.d.ts +150 -0
- package/datepicker/si-datepicker-overlay.component.d.ts +82 -0
- package/datepicker/si-datepicker-overlay.directive.d.ts +104 -0
- package/datepicker/si-datepicker.component.d.ts +228 -0
- package/datepicker/si-datepicker.directive.d.ts +62 -0
- package/datepicker/si-datepicker.model.d.ts +129 -0
- package/datepicker/si-datepicker.module.d.ts +12 -0
- package/datepicker/si-timepicker.component.d.ts +214 -0
- package/electron-titlebar/electron.helpers.d.ts +5 -0
- package/electron-titlebar/index.d.ts +7 -0
- package/electron-titlebar/package.json +3 -0
- package/electron-titlebar/si-electron-titlebar.component.d.ts +72 -0
- package/electron-titlebar/si-electron-titlebar.module.d.ts +7 -0
- package/fesm2022/siemens-element-ng-application-header.mjs +2 -2
- package/fesm2022/siemens-element-ng-application-header.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-autocomplete.mjs +235 -0
- package/fesm2022/siemens-element-ng-autocomplete.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-badge.mjs +59 -0
- package/fesm2022/siemens-element-ng-badge.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-breadcrumb.mjs +302 -0
- package/fesm2022/siemens-element-ng-breadcrumb.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-card.mjs +122 -0
- package/fesm2022/siemens-element-ng-card.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-circle-status.mjs +146 -0
- package/fesm2022/siemens-element-ng-circle-status.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs +369 -0
- package/fesm2022/siemens-element-ng-column-selection-dialog.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-common.mjs +1 -1
- package/fesm2022/siemens-element-ng-common.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-content-action-bar.mjs +200 -0
- package/fesm2022/siemens-element-ng-content-action-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-date-range-filter.mjs +649 -0
- package/fesm2022/siemens-element-ng-date-range-filter.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-datepicker.mjs +4231 -0
- package/fesm2022/siemens-element-ng-datepicker.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs +142 -0
- package/fesm2022/siemens-element-ng-electron-titlebar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-file-uploader.mjs +751 -0
- package/fesm2022/siemens-element-ng-file-uploader.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-filter-bar.mjs +153 -0
- package/fesm2022/siemens-element-ng-filter-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-form.mjs +827 -0
- package/fesm2022/siemens-element-ng-form.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-icon-status.mjs +65 -0
- package/fesm2022/siemens-element-ng-icon-status.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-icon.mjs +22 -2
- package/fesm2022/siemens-element-ng-icon.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-info-page.mjs +63 -0
- package/fesm2022/siemens-element-ng-info-page.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-inline-notification.mjs +4 -6
- package/fesm2022/siemens-element-ng-inline-notification.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-ip-input.mjs +451 -0
- package/fesm2022/siemens-element-ng-ip-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-language-switcher.mjs +90 -0
- package/fesm2022/siemens-element-ng-language-switcher.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-localization.mjs +306 -0
- package/fesm2022/siemens-element-ng-localization.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-number-input.mjs +267 -0
- package/fesm2022/siemens-element-ng-number-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-password-strength.mjs +177 -0
- package/fesm2022/siemens-element-ng-password-strength.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-photo-upload.mjs +480 -0
- package/fesm2022/siemens-element-ng-photo-upload.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-pills-input.mjs +397 -0
- package/fesm2022/siemens-element-ng-pills-input.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-popover-next.mjs +259 -0
- package/fesm2022/siemens-element-ng-popover-next.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-popover.mjs +256 -0
- package/fesm2022/siemens-element-ng-popover.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-progressbar.mjs +83 -0
- package/fesm2022/siemens-element-ng-progressbar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-search-bar.mjs +193 -0
- package/fesm2022/siemens-element-ng-search-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-select.mjs +1166 -0
- package/fesm2022/siemens-element-ng-select.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-skip-links.mjs +117 -0
- package/fesm2022/siemens-element-ng-skip-links.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-slider.mjs +313 -0
- package/fesm2022/siemens-element-ng-slider.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-sort-bar.mjs +89 -0
- package/fesm2022/siemens-element-ng-sort-bar.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-split.mjs +575 -0
- package/fesm2022/siemens-element-ng-split.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-status-toggle.mjs +196 -0
- package/fesm2022/siemens-element-ng-status-toggle.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-summary-widget.mjs +77 -0
- package/fesm2022/siemens-element-ng-summary-widget.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-system-banner.mjs +47 -0
- package/fesm2022/siemens-element-ng-system-banner.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-tabs.mjs +395 -0
- package/fesm2022/siemens-element-ng-tabs.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-toast-notification.mjs +227 -0
- package/fesm2022/siemens-element-ng-toast-notification.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-translate.mjs.map +1 -1
- package/fesm2022/siemens-element-ng-typeahead.mjs +746 -0
- package/fesm2022/siemens-element-ng-typeahead.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs +76 -0
- package/fesm2022/siemens-element-ng-unauthorized-page.mjs.map +1 -0
- package/fesm2022/siemens-element-ng-wizard.mjs +465 -0
- package/fesm2022/siemens-element-ng-wizard.mjs.map +1 -0
- package/file-uploader/index.d.ts +8 -0
- package/file-uploader/package.json +3 -0
- package/file-uploader/si-file-dropzone.component.d.ts +106 -0
- package/file-uploader/si-file-uploader.component.d.ts +296 -0
- package/file-uploader/si-file-uploader.model.d.ts +12 -0
- package/file-uploader/si-file-uploader.module.d.ts +8 -0
- package/filter-bar/filter.d.ts +26 -0
- package/filter-bar/index.d.ts +8 -0
- package/filter-bar/package.json +3 -0
- package/filter-bar/si-filter-bar.component.d.ts +65 -0
- package/filter-bar/si-filter-bar.module.d.ts +7 -0
- package/filter-bar/si-filter-pill.component.d.ts +20 -0
- package/form/form-fieldset/si-form-fieldset.component.d.ts +40 -0
- package/form/index.d.ts +14 -0
- package/form/package.json +3 -0
- package/form/si-form-container/si-form-container.component.d.ts +155 -0
- package/form/si-form-item/si-form-field-native.control.d.ts +22 -0
- package/form/si-form-item/si-form-item.component.d.ts +90 -0
- package/form/si-form-item-control-input.directive.d.ts +18 -0
- package/form/si-form-item.control.d.ts +35 -0
- package/form/si-form-validation-error.model.d.ts +55 -0
- package/form/si-form-validation-error.provider.d.ts +11 -0
- package/form/si-form-validation-error.service.d.ts +42 -0
- package/form/si-form-validation-tooltip/si-form-validation-tooltip.component.d.ts +13 -0
- package/form/si-form-validation-tooltip/si-form-validation-tooltip.directive.d.ts +42 -0
- package/form/si-form.module.d.ts +25 -0
- package/icon/element-icons.d.ts +20 -0
- package/icon-status/index.d.ts +6 -0
- package/icon-status/package.json +3 -0
- package/icon-status/si-icon-status.component.d.ts +24 -0
- package/icon-status/si-icon-status.module.d.ts +7 -0
- package/info-page/index.d.ts +5 -0
- package/info-page/package.json +3 -0
- package/info-page/si-info-page.component.d.ts +38 -0
- package/inline-notification/si-inline-notification.component.d.ts +0 -2
- package/ip-input/address-utils.d.ts +28 -0
- package/ip-input/address-validators.d.ts +21 -0
- package/ip-input/index.d.ts +7 -0
- package/ip-input/package.json +3 -0
- package/ip-input/si-ip-input.directive.d.ts +53 -0
- package/ip-input/si-ip4-input.directive.d.ts +9 -0
- package/ip-input/si-ip6-input.directive.d.ts +10 -0
- package/language-switcher/index.d.ts +7 -0
- package/language-switcher/iso-language-value.d.ts +14 -0
- package/language-switcher/package.json +3 -0
- package/language-switcher/si-language-switcher.component.d.ts +32 -0
- package/language-switcher/si-language-switcher.module.d.ts +7 -0
- package/localization/index.d.ts +8 -0
- package/localization/package.json +3 -0
- package/localization/si-directionality.d.ts +41 -0
- package/localization/si-locale-id.d.ts +22 -0
- package/localization/si-locale-store.d.ts +16 -0
- package/localization/si-locale.service.d.ts +73 -0
- package/number-input/index.d.ts +6 -0
- package/number-input/package.json +3 -0
- package/number-input/si-number-input.component.d.ts +106 -0
- package/number-input/si-number-input.module.d.ts +7 -0
- package/package.json +163 -3
- package/password-strength/index.d.ts +7 -0
- package/password-strength/package.json +3 -0
- package/password-strength/si-password-strength.component.d.ts +25 -0
- package/password-strength/si-password-strength.directive.d.ts +54 -0
- package/password-strength/si-password-strength.module.d.ts +8 -0
- package/photo-upload/index.d.ts +6 -0
- package/photo-upload/package.json +3 -0
- package/photo-upload/si-image-cropper-style.component.d.ts +5 -0
- package/photo-upload/si-photo-upload.component.d.ts +298 -0
- package/pills-input/index.d.ts +9 -0
- package/pills-input/package.json +3 -0
- package/pills-input/si-input-pill.component.d.ts +9 -0
- package/pills-input/si-pills-input-csv.directive.d.ts +8 -0
- package/pills-input/si-pills-input-email.directive.d.ts +10 -0
- package/pills-input/si-pills-input-pattern-base.d.ts +19 -0
- package/pills-input/si-pills-input-value-handler.d.ts +12 -0
- package/pills-input/si-pills-input.component.d.ts +87 -0
- package/pills-input/si-pills-input.module.d.ts +9 -0
- package/popover/index.d.ts +6 -0
- package/popover/package.json +3 -0
- package/popover/si-popover.component.d.ts +26 -0
- package/popover/si-popover.directive.d.ts +89 -0
- package/popover/si-popover.module.d.ts +7 -0
- package/popover-next/index.d.ts +7 -0
- package/popover-next/package.json +3 -0
- package/popover-next/si-popover-description.directive.d.ts +7 -0
- package/popover-next/si-popover-next.directive.d.ts +61 -0
- package/popover-next/si-popover-title.directive.d.ts +7 -0
- package/popover-next/si-popover.component.d.ts +27 -0
- package/progressbar/index.d.ts +6 -0
- package/progressbar/package.json +3 -0
- package/progressbar/si-progressbar.component.d.ts +43 -0
- package/progressbar/si-progressbar.module.d.ts +7 -0
- package/search-bar/index.d.ts +6 -0
- package/search-bar/package.json +3 -0
- package/search-bar/si-search-bar.component.d.ts +87 -0
- package/search-bar/si-search-bar.module.d.ts +7 -0
- package/select/index.d.ts +18 -0
- package/select/options/si-select-complex-options.directive.d.ts +69 -0
- package/select/options/si-select-lazy-options.directive.d.ts +38 -0
- package/select/options/si-select-option.source.d.ts +49 -0
- package/select/options/si-select-options-strategy.base.d.ts +35 -0
- package/select/options/si-select-options-strategy.d.ts +37 -0
- package/select/options/si-select-simple-options.directive.d.ts +34 -0
- package/select/package.json +3 -0
- package/select/select-input/si-select-input.component.d.ts +43 -0
- package/select/select-list/si-select-list-has-filter.component.d.ts +20 -0
- package/select/select-list/si-select-list.base.d.ts +37 -0
- package/select/select-list/si-select-list.component.d.ts +15 -0
- package/select/select-option/si-select-option-row.component.d.ts +16 -0
- package/select/select-option/si-select-option.component.d.ts +9 -0
- package/select/selection/si-select-multi-value.directive.d.ts +26 -0
- package/select/selection/si-select-selection-strategy.d.ts +58 -0
- package/select/selection/si-select-single-value.directive.d.ts +26 -0
- package/select/si-select-action.directive.d.ts +12 -0
- package/select/si-select-actions.directive.d.ts +5 -0
- package/select/si-select-group-template.directive.d.ts +20 -0
- package/select/si-select-option-row-template.directive.d.ts +9 -0
- package/select/si-select-option-template.directive.d.ts +21 -0
- package/select/si-select.component.d.ts +96 -0
- package/select/si-select.module.d.ts +15 -0
- package/select/si-select.types.d.ts +65 -0
- package/skip-links/index.d.ts +5 -0
- package/skip-links/package.json +3 -0
- package/skip-links/si-skip-link-target.directive.d.ts +27 -0
- package/skip-links/si-skip-links.component.d.ts +9 -0
- package/skip-links/skip-link.service.d.ts +14 -0
- package/slider/index.d.ts +6 -0
- package/slider/package.json +3 -0
- package/slider/si-slider.component.d.ts +129 -0
- package/slider/si-slider.module.d.ts +7 -0
- package/sort-bar/index.d.ts +6 -0
- package/sort-bar/package.json +3 -0
- package/sort-bar/si-sort-bar.component.d.ts +42 -0
- package/sort-bar/si-sort-bar.module.d.ts +7 -0
- package/split/index.d.ts +8 -0
- package/split/package.json +3 -0
- package/split/si-split-part.component.d.ts +154 -0
- package/split/si-split.component.d.ts +48 -0
- package/split/si-split.interfaces.d.ts +17 -0
- package/split/si-split.module.d.ts +8 -0
- package/status-toggle/index.d.ts +6 -0
- package/status-toggle/package.json +3 -0
- package/status-toggle/si-status-toggle.component.d.ts +54 -0
- package/status-toggle/status-toggle.model.d.ts +26 -0
- package/summary-widget/index.d.ts +5 -0
- package/summary-widget/package.json +3 -0
- package/summary-widget/si-summary-widget.component.d.ts +44 -0
- package/system-banner/index.d.ts +5 -0
- package/system-banner/package.json +3 -0
- package/system-banner/system-banner.component.d.ts +23 -0
- package/tabs/index.d.ts +7 -0
- package/tabs/package.json +3 -0
- package/tabs/si-tab/index.d.ts +5 -0
- package/tabs/si-tab/si-tab.component.d.ts +58 -0
- package/tabs/si-tabs.module.d.ts +8 -0
- package/tabs/si-tabset/index.d.ts +5 -0
- package/tabs/si-tabset/si-tabset.component.d.ts +100 -0
- package/template-i18n.json +111 -1
- package/toast-notification/index.d.ts +6 -0
- package/toast-notification/package.json +3 -0
- package/toast-notification/si-toast-notification/si-toast-notification.component.d.ts +17 -0
- package/toast-notification/si-toast-notification-drawer/si-toast-notification-drawer.component.d.ts +9 -0
- package/toast-notification/si-toast-notification.service.d.ts +41 -0
- package/toast-notification/si-toast.model.d.ts +25 -0
- package/translate/si-translatable-keys.interface.d.ts +110 -0
- package/typeahead/index.d.ts +8 -0
- package/typeahead/package.json +3 -0
- package/typeahead/si-typeahead-item-template.directive.d.ts +7 -0
- package/typeahead/si-typeahead.component.d.ts +22 -0
- package/typeahead/si-typeahead.directive.d.ts +196 -0
- package/typeahead/si-typeahead.model.d.ts +60 -0
- package/typeahead/si-typeahead.module.d.ts +8 -0
- package/typeahead/si-typeahead.sorting.d.ts +10 -0
- package/unauthorized-page/index.d.ts +6 -0
- package/unauthorized-page/package.json +3 -0
- package/unauthorized-page/si-unauthorized-page.component.d.ts +35 -0
- package/unauthorized-page/si-unauthorized-page.module.d.ts +7 -0
- package/wizard/index.d.ts +7 -0
- package/wizard/package.json +3 -0
- package/wizard/si-wizard-step.component.d.ts +21 -0
- package/wizard/si-wizard.component.d.ts +196 -0
- package/wizard/si-wizard.module.d.ts +8 -0
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { CompareAdapter } from './si-compare-adapter';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/** CSS classes that can be associated with a calendar cell. */
|
|
4
|
+
export type CellCssClasses = string | string[] | Set<string> | {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
};
|
|
7
|
+
export interface Cell {
|
|
8
|
+
value: number;
|
|
9
|
+
/** Indicate that the cell is disabled */
|
|
10
|
+
disabled: boolean;
|
|
11
|
+
/** Cell specific aria label */
|
|
12
|
+
ariaLabel: string;
|
|
13
|
+
/** Display value */
|
|
14
|
+
displayValue: string;
|
|
15
|
+
/**
|
|
16
|
+
* Indicate that the cell is a preview, this is dedicated to the calendar month
|
|
17
|
+
* view to where a day could be part of the previous or next month
|
|
18
|
+
*/
|
|
19
|
+
isPreview: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* The cell corresponds to today.
|
|
22
|
+
*/
|
|
23
|
+
isToday: boolean;
|
|
24
|
+
/** Raw value */
|
|
25
|
+
valueRaw: Date;
|
|
26
|
+
/** Additional CSS classes for the cell */
|
|
27
|
+
cssClasses: CellCssClasses;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Base interface for selections.
|
|
31
|
+
*/
|
|
32
|
+
declare abstract class SelectionStrategy {
|
|
33
|
+
protected compare: CompareAdapter;
|
|
34
|
+
constructor(compare: CompareAdapter);
|
|
35
|
+
/**
|
|
36
|
+
* Indicate whether the cell is selected
|
|
37
|
+
*/
|
|
38
|
+
abstract isSelected(cell: Cell, start?: Date, end?: Date): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Cell is between start and end value.
|
|
41
|
+
* start \< Cell value \< end
|
|
42
|
+
*/
|
|
43
|
+
abstract inRange(c: Cell, start?: Date, end?: Date): boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Cell is either startValue or endValue
|
|
46
|
+
*/
|
|
47
|
+
abstract isRangeSelected(cell: Cell, date?: Date): boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Preview selection range on mouse hover.
|
|
50
|
+
*/
|
|
51
|
+
abstract previewRangeHover(cell: Cell, hoverCell?: Cell, start?: Date): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Preview selection range on mouse hover end of range.
|
|
54
|
+
*/
|
|
55
|
+
abstract previewRangeHoverEnd(cell: Cell, hoverCell?: Cell, start?: Date): boolean;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Strategy the handle single selection within the {@link SiCalendarBodyComponent}.
|
|
59
|
+
*/
|
|
60
|
+
declare class SingleSelectionStrategy extends SelectionStrategy {
|
|
61
|
+
isSelected(cell: Cell, start?: Date, end?: Date): boolean;
|
|
62
|
+
inRange(cell: Cell, start?: Date, end?: Date): boolean;
|
|
63
|
+
isRangeSelected(cell: Cell, date?: Date): boolean;
|
|
64
|
+
previewRangeHover(cell: Cell, hoverCell?: Cell, start?: Date): boolean;
|
|
65
|
+
previewRangeHoverEnd(cell: Cell, hoverCell?: Cell, start?: Date): boolean;
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Strategy the handle range selection within the {@link SiCalendarBodyComponent}.
|
|
69
|
+
*/
|
|
70
|
+
declare class RangeSelectionStrategy extends SelectionStrategy {
|
|
71
|
+
isSelected(cell: Cell, start?: Date, end?: Date): boolean;
|
|
72
|
+
inRange(c: Cell, start?: Date, end?: Date): boolean;
|
|
73
|
+
isRangeSelected(cell: Cell, date?: Date): boolean;
|
|
74
|
+
previewRangeHover(cell: Cell, hoverCell?: Cell, start?: Date): boolean;
|
|
75
|
+
previewRangeHoverEnd(cell: Cell, hoverCell?: Cell, start?: Date): boolean;
|
|
76
|
+
}
|
|
77
|
+
export declare class SiCalendarBodyComponent {
|
|
78
|
+
/** The active date, the cell which will receive the focus. */
|
|
79
|
+
readonly focusedDate: import("@angular/core").ModelSignal<Date>;
|
|
80
|
+
/** The date which shall be indicated as currently selected. */
|
|
81
|
+
readonly startDate: import("@angular/core").InputSignal<Date | undefined>;
|
|
82
|
+
/** Selected end value which is only considered with enableRangeSelection. */
|
|
83
|
+
readonly endDate: import("@angular/core").InputSignal<Date | undefined>;
|
|
84
|
+
/**
|
|
85
|
+
* The cells to display in the table.
|
|
86
|
+
*
|
|
87
|
+
* @defaultValue []
|
|
88
|
+
*/
|
|
89
|
+
readonly rows: import("@angular/core").InputSignal<Cell[][]>;
|
|
90
|
+
/**
|
|
91
|
+
* Labels for each row, which can be used to display the week number.
|
|
92
|
+
* @defaultValue undefined
|
|
93
|
+
*/
|
|
94
|
+
readonly rowLabels: import("@angular/core").InputSignal<string[] | undefined>;
|
|
95
|
+
/**
|
|
96
|
+
* Additional row label CSS class(es).
|
|
97
|
+
*
|
|
98
|
+
* @defaultValue []
|
|
99
|
+
*/
|
|
100
|
+
readonly rowLabelCssClasses: import("@angular/core").InputSignal<CellCssClasses>;
|
|
101
|
+
/**
|
|
102
|
+
* Choose the selection strategy between single or range selection.
|
|
103
|
+
* @defaultValue false
|
|
104
|
+
*/
|
|
105
|
+
readonly enableRangeSelection: import("@angular/core").InputSignal<boolean>;
|
|
106
|
+
/**
|
|
107
|
+
* Indicate whether a range preview shall be displayed.
|
|
108
|
+
* It's necessary since to display a preview also datepicker has a valid endDate.
|
|
109
|
+
*
|
|
110
|
+
* @defaultValue true
|
|
111
|
+
*/
|
|
112
|
+
readonly previewRange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
113
|
+
/** The cell which which has the mouse hover. */
|
|
114
|
+
readonly activeHover: import("@angular/core").ModelSignal<Cell | undefined>;
|
|
115
|
+
/**
|
|
116
|
+
* Compare date functions which are necessary to compare a the dates according the current view.
|
|
117
|
+
*
|
|
118
|
+
* @defaultValue new DayCompareAdapter()
|
|
119
|
+
*/
|
|
120
|
+
readonly compareAdapter: import("@angular/core").InputSignal<CompareAdapter>;
|
|
121
|
+
/** Emits when a user select a cell via click, space or enter. */
|
|
122
|
+
readonly selectedValueChange: import("@angular/core").OutputEmitterRef<Date>;
|
|
123
|
+
private readonly calendarDateCells;
|
|
124
|
+
protected readonly selection: import("@angular/core").Signal<SingleSelectionStrategy | RangeSelectionStrategy>;
|
|
125
|
+
/**
|
|
126
|
+
* Focus calendar cell which is marked as active cell.
|
|
127
|
+
*/
|
|
128
|
+
focusActiveCell(): void;
|
|
129
|
+
protected isActive(cell: Cell): boolean;
|
|
130
|
+
protected cellCss(cell: Cell): CellCssClasses;
|
|
131
|
+
protected emitActiveHover(cell: Cell): void;
|
|
132
|
+
protected emitSelectCell(selection: Cell): void;
|
|
133
|
+
protected emitActiveDateChange(cell: Cell): void;
|
|
134
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiCalendarBodyComponent, never>;
|
|
135
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiCalendarBodyComponent, "[si-calendar-body]", ["siCalendarBody"], { "focusedDate": { "alias": "focusedDate"; "required": true; "isSignal": true; }; "startDate": { "alias": "startDate"; "required": false; "isSignal": true; }; "endDate": { "alias": "endDate"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "rowLabels": { "alias": "rowLabels"; "required": false; "isSignal": true; }; "rowLabelCssClasses": { "alias": "rowLabelCssClasses"; "required": false; "isSignal": true; }; "enableRangeSelection": { "alias": "enableRangeSelection"; "required": false; "isSignal": true; }; "previewRange": { "alias": "previewRange"; "required": false; "isSignal": true; }; "activeHover": { "alias": "activeHover"; "required": false; "isSignal": true; }; "compareAdapter": { "alias": "compareAdapter"; "required": false; "isSignal": true; }; }, { "focusedDate": "focusedDateChange"; "activeHover": "activeHoverChange"; "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
|
|
136
|
+
}
|
|
137
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { ElementRef } from '@angular/core';
|
|
6
|
+
import { Cell } from './si-calendar-body.component';
|
|
7
|
+
import { CompareAdapter } from './si-compare-adapter';
|
|
8
|
+
import * as i0 from "@angular/core";
|
|
9
|
+
export declare class SiCalendarDateCellDirective {
|
|
10
|
+
readonly cell: import("@angular/core").InputSignal<Cell>;
|
|
11
|
+
readonly compareAdapter: import("@angular/core").InputSignal<CompareAdapter>;
|
|
12
|
+
/** @defaultValue inject(ElementRef) */
|
|
13
|
+
readonly ref: ElementRef<any>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiCalendarDateCellDirective, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SiCalendarDateCellDirective, "[siCalendarDateCell]", never, { "cell": { "alias": "cell"; "required": true; "isSignal": true; }; "compareAdapter": { "alias": "compareAdapter"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type Direction = 'left' | 'right';
|
|
3
|
+
export declare class SiCalendarDirectionButtonComponent {
|
|
4
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
5
|
+
/** @defaultValue false */
|
|
6
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
7
|
+
readonly direction: import("@angular/core").InputSignal<Direction | undefined>;
|
|
8
|
+
/**
|
|
9
|
+
* Emit on button click.
|
|
10
|
+
*/
|
|
11
|
+
readonly clicked: import("@angular/core").OutputEmitterRef<void>;
|
|
12
|
+
protected readonly icon: import("@angular/core").Signal<string>;
|
|
13
|
+
protected readonly buttonClass: import("@angular/core").Signal<"previous-button" | "next-button">;
|
|
14
|
+
protected readonly icons: Record<"elementLeft2" | "elementRight2", string>;
|
|
15
|
+
protected onClick(): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiCalendarDirectionButtonComponent, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiCalendarDirectionButtonComponent, "si-calendar-direction-button", never, { "ariaLabel": { "alias": "ariaLabel"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "direction": { "alias": "direction"; "required": false; "isSignal": true; }; }, { "clicked": "clicked"; }, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Compare the dates based on the active view.
|
|
3
|
+
*/
|
|
4
|
+
export interface CompareAdapter {
|
|
5
|
+
isAfter(current: Date, start: Date): boolean;
|
|
6
|
+
isBetween(current: Date, from?: Date, to?: Date): boolean;
|
|
7
|
+
isEqual(current: Date, other?: Date): boolean;
|
|
8
|
+
isEqualOrBefore(current: Date, other: Date): boolean;
|
|
9
|
+
isEqualOrBetween(current: Date, from?: Date, to?: Date): boolean;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Compare dates in the month view.
|
|
13
|
+
*/
|
|
14
|
+
export declare class DayCompareAdapter implements CompareAdapter {
|
|
15
|
+
isAfter(current: Date, start: Date): boolean;
|
|
16
|
+
isBetween(current: Date, from?: Date | undefined, to?: Date | undefined): boolean;
|
|
17
|
+
isEqual(current: Date, other: Date): boolean;
|
|
18
|
+
isEqualOrBefore(current: Date, other: Date): boolean;
|
|
19
|
+
isEqualOrBetween(current: Date, from?: Date, to?: Date): boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Compare dates in the year view.
|
|
23
|
+
*/
|
|
24
|
+
export declare class MonthCompareAdapter implements CompareAdapter {
|
|
25
|
+
isAfter(current: Date, start: Date): boolean;
|
|
26
|
+
isBetween(current: Date, from?: Date | undefined, to?: Date | undefined): boolean;
|
|
27
|
+
isEqual(current: Date, other: Date): boolean;
|
|
28
|
+
isEqualOrBefore(current: Date, other: Date): boolean;
|
|
29
|
+
isEqualOrBetween(current: Date, from?: Date, to?: Date): boolean;
|
|
30
|
+
}
|
|
31
|
+
export declare class YearCompareAdapter implements CompareAdapter {
|
|
32
|
+
isAfter(current: Date, other: Date): boolean;
|
|
33
|
+
isBetween(current: Date, from?: Date | undefined, to?: Date | undefined): boolean;
|
|
34
|
+
isEqual(current: Date, other: Date): boolean;
|
|
35
|
+
isEqualOrBefore(current: Date, other?: Date): boolean;
|
|
36
|
+
isEqualOrBetween(current: Date, from?: Date, to?: Date): boolean;
|
|
37
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { WeekStart } from '../si-datepicker.model';
|
|
2
|
+
import { Cell } from './si-calendar-body.component';
|
|
3
|
+
import { DayCompareAdapter } from './si-compare-adapter';
|
|
4
|
+
import { SiInitialFocusComponent } from './si-initial-focus.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Show dates of a single month as table and handles the keyboard interactions.
|
|
8
|
+
* The focusedDate is handled according the keyboard interactions.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SiDaySelectionComponent extends SiInitialFocusComponent {
|
|
11
|
+
/**
|
|
12
|
+
* Indicate whether the week numbers shall be hidden.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue false
|
|
15
|
+
*/
|
|
16
|
+
readonly hideWeekNumbers: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
17
|
+
/**
|
|
18
|
+
* Defines the starting day of the week. Default is `monday`.
|
|
19
|
+
*
|
|
20
|
+
* @defaultValue 'monday'
|
|
21
|
+
*/
|
|
22
|
+
readonly weekStartDay: import("@angular/core").InputSignal<WeekStart>;
|
|
23
|
+
/**
|
|
24
|
+
* The active date, the cell which will receive the focus.
|
|
25
|
+
* @defaultValue calendarUtils.today()
|
|
26
|
+
*/
|
|
27
|
+
readonly focusedDate: import("@angular/core").ModelSignal<Date>;
|
|
28
|
+
/** Today button text */
|
|
29
|
+
readonly todayLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
30
|
+
/** Aria label for calendar week column */
|
|
31
|
+
readonly calenderWeekLabel: import("@angular/core").InputSignal<string | undefined>;
|
|
32
|
+
/** Emits when the active focused date changed to another month / year, typically during keyboard navigation */
|
|
33
|
+
readonly activeMonthChange: import("@angular/core").OutputEmitterRef<Date>;
|
|
34
|
+
/** Emits when the user requests a different to show a different view */
|
|
35
|
+
readonly viewChange: import("@angular/core").OutputEmitterRef<"month" | "year">;
|
|
36
|
+
/** The translated list of week days. */
|
|
37
|
+
protected readonly days: import("@angular/core").Signal<string[]>;
|
|
38
|
+
/** The week numbers which are shown as row label */
|
|
39
|
+
protected readonly weekNumbers: import("@angular/core").Signal<string[]>;
|
|
40
|
+
/**
|
|
41
|
+
* The current visible list of calendar days.
|
|
42
|
+
* Every time the focusedDate changes to either another month or year the list will be rebuild.
|
|
43
|
+
*/
|
|
44
|
+
protected readonly weeks: import("@angular/core").Signal<Cell[][]>;
|
|
45
|
+
/** Compare date based on the current view */
|
|
46
|
+
protected compareAdapter: DayCompareAdapter;
|
|
47
|
+
/** Disable today button if it is the same month */
|
|
48
|
+
protected readonly isTodayButtonDisabled: import("@angular/core").Signal<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* Indicate the previous button shall be disabled.
|
|
51
|
+
* This happens when the focusedDate is equal or before the minDate.
|
|
52
|
+
*/
|
|
53
|
+
protected readonly isPreviousButtonDisabled: import("@angular/core").Signal<boolean | undefined>;
|
|
54
|
+
/**
|
|
55
|
+
* Indicate the next button shall be disabled.
|
|
56
|
+
* This happens when the focusedDate is equal or after the maxDate.
|
|
57
|
+
*/
|
|
58
|
+
protected readonly isNextButtonDisabled: import("@angular/core").Signal<boolean | undefined>;
|
|
59
|
+
private readonly locale;
|
|
60
|
+
protected calendarBodyKeyDown(event: KeyboardEvent): void;
|
|
61
|
+
protected updateFocusedDateByDay(offset: number): void;
|
|
62
|
+
protected updateFocusedDateByMonth(offset: number): void;
|
|
63
|
+
protected updateFocusedDate(newDate: Date): void;
|
|
64
|
+
/**
|
|
65
|
+
* Update month of focusedDate.
|
|
66
|
+
* @param offset -1 or -1.
|
|
67
|
+
*/
|
|
68
|
+
protected setMonthOffset(offset: number): void;
|
|
69
|
+
/** Change the focusedDate to today */
|
|
70
|
+
protected goToToday(): void;
|
|
71
|
+
protected emitSelectedValue(selected: Date): void;
|
|
72
|
+
protected emitActiveDate(active: Date): void;
|
|
73
|
+
protected emitViewChange(view: 'year' | 'month'): void;
|
|
74
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiDaySelectionComponent, never>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiDaySelectionComponent, "si-day-selection", never, { "hideWeekNumbers": { "alias": "hideWeekNumbers"; "required": false; "isSignal": true; }; "weekStartDay": { "alias": "weekStartDay"; "required": false; "isSignal": true; }; "focusedDate": { "alias": "focusedDate"; "required": true; "isSignal": true; }; "todayLabel": { "alias": "todayLabel"; "required": false; "isSignal": true; }; "calenderWeekLabel": { "alias": "calenderWeekLabel"; "required": false; "isSignal": true; }; }, { "focusedDate": "focusedDateChange"; "activeMonthChange": "activeMonthChange"; "viewChange": "viewChange"; }, never, never, true, never>;
|
|
76
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copyright Siemens 2016 - 2025.
|
|
3
|
+
* SPDX-License-Identifier: MIT
|
|
4
|
+
*/
|
|
5
|
+
import { AfterViewInit } from '@angular/core';
|
|
6
|
+
import { Cell, SiCalendarBodyComponent } from './si-calendar-body.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**
|
|
9
|
+
* Helper directive to set the initial focus to the calendar body cell.
|
|
10
|
+
*/
|
|
11
|
+
export declare class SiInitialFocusComponent implements AfterViewInit {
|
|
12
|
+
/** The cell which has the mouse hover. */
|
|
13
|
+
readonly activeHover: import("@angular/core").ModelSignal<Cell | undefined>;
|
|
14
|
+
/** The date which is displayed as selected. */
|
|
15
|
+
readonly startDate: import("@angular/core").InputSignal<Date | undefined>;
|
|
16
|
+
/** The date which is displayed as selected end. The value is only considered with enableRangeSelection. */
|
|
17
|
+
readonly endDate: import("@angular/core").InputSignal<Date | undefined>;
|
|
18
|
+
/**
|
|
19
|
+
* Guard to set the focus during ngAfterViewInit, we just set the focus after we first initialized the view
|
|
20
|
+
*
|
|
21
|
+
* @defaultValue true
|
|
22
|
+
*/
|
|
23
|
+
readonly initialFocus: import("@angular/core").InputSignal<boolean>;
|
|
24
|
+
/** The minimum selectable date. */
|
|
25
|
+
readonly minDate: import("@angular/core").InputSignal<Date | undefined>;
|
|
26
|
+
/** The maximum selectable date. */
|
|
27
|
+
readonly maxDate: import("@angular/core").InputSignal<Date | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* Optional input to control the minimum month the datepicker can show and the user can navigate.
|
|
30
|
+
* The `minMonth` can be larger than the `minDate` This option enables the usage of multiple
|
|
31
|
+
* datepickers next to each other while the more left calendar always
|
|
32
|
+
* shows an earlier month the more right one.
|
|
33
|
+
*/
|
|
34
|
+
readonly minMonth: import("@angular/core").InputSignal<Date | undefined>;
|
|
35
|
+
/**
|
|
36
|
+
* Optional input to control the maximum month the datepicker can show and the user can navigate.
|
|
37
|
+
* The `maxMonth` can be smaller than the `maxDate` This option enables the usage of multiple
|
|
38
|
+
* datepickers next to each other while the more left calendar always
|
|
39
|
+
* shows an earlier month the more right one.
|
|
40
|
+
*/
|
|
41
|
+
readonly maxMonth: import("@angular/core").InputSignal<Date | undefined>;
|
|
42
|
+
/** Aria label for the next button. Needed for a11y. */
|
|
43
|
+
readonly previousLabel: import("@angular/core").InputSignal<string>;
|
|
44
|
+
/** Aria label for the next button. Needed for a11y. */
|
|
45
|
+
readonly nextLabel: import("@angular/core").InputSignal<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Is range selection enabled, when enabled it shows a preview between the startDate and the focused date.
|
|
48
|
+
*
|
|
49
|
+
* @defaultValue false
|
|
50
|
+
*/
|
|
51
|
+
readonly isRangeSelection: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
52
|
+
/**
|
|
53
|
+
* Indicate whether a range preview shall be displayed.
|
|
54
|
+
* When enabled a preview is visible between startDate and focusedDate.
|
|
55
|
+
*
|
|
56
|
+
* @defaultValue true
|
|
57
|
+
*/
|
|
58
|
+
readonly previewRange: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
59
|
+
/**
|
|
60
|
+
* Emits when a new value is selected. In case where the value is null to
|
|
61
|
+
* user aborted the selection by Escape.
|
|
62
|
+
*/
|
|
63
|
+
readonly selectedValueChange: import("@angular/core").OutputEmitterRef<Date | null>;
|
|
64
|
+
/** The body of calendar table */
|
|
65
|
+
protected readonly calendarBody: import("@angular/core").Signal<SiCalendarBodyComponent>;
|
|
66
|
+
ngAfterViewInit(): void;
|
|
67
|
+
/**
|
|
68
|
+
* Focus calendar cell which is marked as active cell.
|
|
69
|
+
*/
|
|
70
|
+
focusActiveCell(): void;
|
|
71
|
+
protected onActiveHoverChange(event?: Cell): void;
|
|
72
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiInitialFocusComponent, never>;
|
|
73
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiInitialFocusComponent, "ng-component", never, { "activeHover": { "alias": "activeHover"; "required": false; "isSignal": true; }; "startDate": { "alias": "startDate"; "required": false; "isSignal": true; }; "endDate": { "alias": "endDate"; "required": false; "isSignal": true; }; "initialFocus": { "alias": "initialFocus"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minMonth": { "alias": "minMonth"; "required": false; "isSignal": true; }; "maxMonth": { "alias": "maxMonth"; "required": false; "isSignal": true; }; "previousLabel": { "alias": "previousLabel"; "required": true; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": true; "isSignal": true; }; "isRangeSelection": { "alias": "isRangeSelection"; "required": false; "isSignal": true; }; "previewRange": { "alias": "previewRange"; "required": false; "isSignal": true; }; }, { "activeHover": "activeHoverChange"; "selectedValueChange": "selectedValueChange"; }, never, never, true, never>;
|
|
74
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Cell } from './si-calendar-body.component';
|
|
3
|
+
import { MonthCompareAdapter } from './si-compare-adapter';
|
|
4
|
+
import { SiInitialFocusComponent } from './si-initial-focus.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Show months of a single year as table and handles the keyboard interactions.
|
|
8
|
+
* The focus and focusedDate is handled according the keyboard interactions.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SiMonthSelectionComponent extends SiInitialFocusComponent implements OnChanges {
|
|
11
|
+
/**
|
|
12
|
+
* The translated list of months.
|
|
13
|
+
*
|
|
14
|
+
* @defaultValue []
|
|
15
|
+
*/
|
|
16
|
+
readonly months: import("@angular/core").InputSignal<string[]>;
|
|
17
|
+
/**
|
|
18
|
+
* The active date, the cell which will receive the focus.
|
|
19
|
+
*/
|
|
20
|
+
readonly focusedDate: import("@angular/core").ModelSignal<Date>;
|
|
21
|
+
/** Emits when the active focused date is changed to another month / year, typically during keyboard navigation. */
|
|
22
|
+
readonly activeMonthChange: import("@angular/core").OutputEmitterRef<Date>;
|
|
23
|
+
/** Emits when the user requests a different to show a different view. */
|
|
24
|
+
readonly viewChange: import("@angular/core").OutputEmitterRef<"year">;
|
|
25
|
+
/** Listen Escape event to switch view back */
|
|
26
|
+
triggerEsc(event: KeyboardEvent): void;
|
|
27
|
+
/**
|
|
28
|
+
* The current visible list of calendar months.
|
|
29
|
+
* Every time the focusedDate changes to another year the list will update.
|
|
30
|
+
*/
|
|
31
|
+
protected monthCells: Cell[][];
|
|
32
|
+
protected compareAdapter: MonthCompareAdapter;
|
|
33
|
+
/** Number of column before the row is wrapped */
|
|
34
|
+
private readonly columnCount;
|
|
35
|
+
/**
|
|
36
|
+
* Indicate the previous button shall be disabled.
|
|
37
|
+
* This happens when the focusedDate is equal or before the minDate.
|
|
38
|
+
*/
|
|
39
|
+
protected readonly isPreviousButtonDisabled: import("@angular/core").Signal<boolean | undefined>;
|
|
40
|
+
/**
|
|
41
|
+
* Indicate the next button shall be disabled.
|
|
42
|
+
* This happens when the focusedDate is equal or after the maxDate.
|
|
43
|
+
*/
|
|
44
|
+
protected readonly isNextButtonDisabled: import("@angular/core").Signal<boolean | undefined>;
|
|
45
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
46
|
+
protected calendarBodyKeyDown(event: KeyboardEvent): void;
|
|
47
|
+
protected updateFocusedDate(offset: number): void;
|
|
48
|
+
/**
|
|
49
|
+
* Add offset to year and update focusedDate.
|
|
50
|
+
*/
|
|
51
|
+
protected setYearOffset(offset: number): void;
|
|
52
|
+
protected emitSelectedValue(selected: Date): void;
|
|
53
|
+
protected emitFocusedDate(focused: Date): void;
|
|
54
|
+
protected emitActiveMonthChange(focus: Date, prevFocus: Date): void;
|
|
55
|
+
protected emitViewChange(): void;
|
|
56
|
+
/**
|
|
57
|
+
* Initialize view based on the focusedDate.
|
|
58
|
+
*/
|
|
59
|
+
private initView;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiMonthSelectionComponent, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiMonthSelectionComponent, "si-month-selection", never, { "months": { "alias": "months"; "required": false; "isSignal": true; }; "focusedDate": { "alias": "focusedDate"; "required": true; "isSignal": true; }; }, { "focusedDate": "focusedDateChange"; "activeMonthChange": "activeMonthChange"; "viewChange": "viewChange"; }, never, never, true, never>;
|
|
62
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { Cell } from './si-calendar-body.component';
|
|
3
|
+
import { YearCompareAdapter } from './si-compare-adapter';
|
|
4
|
+
import { SiInitialFocusComponent } from './si-initial-focus.component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Show months of a single year as table and handles the keyboard interactions.
|
|
8
|
+
* The focus and focusedDate is handled according the keyboard interactions.
|
|
9
|
+
*/
|
|
10
|
+
export declare class SiYearSelectionComponent extends SiInitialFocusComponent implements OnChanges {
|
|
11
|
+
/**
|
|
12
|
+
* The active date, the cell which will receive the focus.
|
|
13
|
+
*/
|
|
14
|
+
readonly focusedDate: import("@angular/core").ModelSignal<Date>;
|
|
15
|
+
/** Emits when the active focused date changed to another month / year, typically during keyboard navigation. */
|
|
16
|
+
readonly yearRangeChange: import("@angular/core").OutputEmitterRef<Date[]>;
|
|
17
|
+
/** Listen Escape event to switch view back */
|
|
18
|
+
triggerEsc(event: KeyboardEvent): void;
|
|
19
|
+
/** Number of column before the row is wrapped */
|
|
20
|
+
private readonly columnCount;
|
|
21
|
+
/** The number of years which shall be displayed, this number should be even and dividable by columnCount */
|
|
22
|
+
private readonly yearsToDisplay;
|
|
23
|
+
/** Lower windows bound for displayed year range */
|
|
24
|
+
protected readonly fromYear: import("@angular/core").WritableSignal<Date | undefined>;
|
|
25
|
+
/** Upper windows bound for displayed year range */
|
|
26
|
+
protected readonly toYear: import("@angular/core").WritableSignal<Date | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* The current visible list of calendar years.
|
|
29
|
+
* Every time the focusedDate changes to another year the list will be rebuilt.
|
|
30
|
+
*/
|
|
31
|
+
protected yearCells: Cell[][];
|
|
32
|
+
protected compareAdapter: YearCompareAdapter;
|
|
33
|
+
/** Is previous button disabled based on the minDate. */
|
|
34
|
+
protected readonly isPreviousButtonDisabled: import("@angular/core").Signal<boolean>;
|
|
35
|
+
/** Is next button disabled based on the maxDate */
|
|
36
|
+
protected readonly isNextButtonDisabled: import("@angular/core").Signal<boolean>;
|
|
37
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
38
|
+
protected calendarBodyKeyDown(event: KeyboardEvent): void;
|
|
39
|
+
/**
|
|
40
|
+
* Change the active date and the range of displayed years.
|
|
41
|
+
* The windowOffset control the amount of ranges the view shall move forward or backward.
|
|
42
|
+
* The number of displayed years ia controlled by yearsToDisplay.
|
|
43
|
+
*/
|
|
44
|
+
protected changeVisibleYearRange(windowOffset: number): void;
|
|
45
|
+
protected emitSelectedValue(selected: Date): void;
|
|
46
|
+
/**
|
|
47
|
+
* Determine the year range start and end year.
|
|
48
|
+
* - Based on the active date this function will find the start and
|
|
49
|
+
* ending year of the current displayed range.
|
|
50
|
+
* - In case the focusedDate is either before or after the current range the
|
|
51
|
+
* start and end year will move the entire window (yearsToDisplay)
|
|
52
|
+
*/
|
|
53
|
+
private initYearRange;
|
|
54
|
+
/**
|
|
55
|
+
* Initialize view based on the focusedDate.
|
|
56
|
+
*/
|
|
57
|
+
private initView;
|
|
58
|
+
/**
|
|
59
|
+
* Add offset to year and update focusedDate.
|
|
60
|
+
* If the new year is outside min/max date the year will set to the closest year in range.
|
|
61
|
+
*/
|
|
62
|
+
private setYearOffset;
|
|
63
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SiYearSelectionComponent, never>;
|
|
64
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SiYearSelectionComponent, "si-year-selection", never, { "focusedDate": { "alias": "focusedDate"; "required": true; "isSignal": true; }; }, { "focusedDate": "focusedDateChange"; "yearRangeChange": "yearRangeChange"; }, never, never, true, never>;
|
|
65
|
+
}
|