@i-cell/ids-angular 0.1.13 → 0.2.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/accordion/index.d.ts +81 -5
- package/avatar/index.d.ts +66 -5
- package/badge/index.d.ts +61 -5
- package/breadcrumb/index.d.ts +67 -5
- package/button/index.d.ts +81 -5
- package/card/index.d.ts +91 -5
- package/checkbox/index.d.ts +137 -5
- package/chip/index.d.ts +82 -5
- package/core/index.d.ts +168 -5
- package/datepicker/index.d.ts +112 -5
- package/dialog/index.d.ts +66 -5
- package/divider/index.d.ts +45 -5
- package/fesm2022/i-cell-ids-angular-accordion.mjs +32 -32
- package/fesm2022/i-cell-ids-angular-accordion.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-avatar.mjs +19 -19
- package/fesm2022/i-cell-ids-angular-avatar.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-badge.mjs +25 -25
- package/fesm2022/i-cell-ids-angular-badge.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-breadcrumb.mjs +41 -41
- package/fesm2022/i-cell-ids-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-button.mjs +18 -18
- package/fesm2022/i-cell-ids-angular-button.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-card.mjs +36 -36
- package/fesm2022/i-cell-ids-angular-card.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-checkbox.mjs +44 -44
- package/fesm2022/i-cell-ids-angular-checkbox.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-chip.mjs +28 -28
- package/fesm2022/i-cell-ids-angular-chip.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-core.mjs +17 -17
- package/fesm2022/i-cell-ids-angular-core.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-datepicker.mjs +66 -66
- package/fesm2022/i-cell-ids-angular-datepicker.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-dialog.mjs +22 -22
- package/fesm2022/i-cell-ids-angular-dialog.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-divider.mjs +13 -13
- package/fesm2022/i-cell-ids-angular-divider.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-forms.mjs +156 -156
- package/fesm2022/i-cell-ids-angular-forms.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-icon-button.mjs +13 -13
- package/fesm2022/i-cell-ids-angular-icon-button.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-icon.mjs +16 -17
- package/fesm2022/i-cell-ids-angular-icon.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-menu.mjs +19 -19
- package/fesm2022/i-cell-ids-angular-menu.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-notification.mjs +27 -27
- package/fesm2022/i-cell-ids-angular-notification.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-overlay-panel.mjs +9 -9
- package/fesm2022/i-cell-ids-angular-overlay-panel.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-paginator.mjs +34 -34
- package/fesm2022/i-cell-ids-angular-paginator.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-radio.mjs +30 -30
- package/fesm2022/i-cell-ids-angular-radio.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-segmented-control-toggle.mjs +31 -31
- package/fesm2022/i-cell-ids-angular-segmented-control-toggle.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-segmented-control.mjs +32 -32
- package/fesm2022/i-cell-ids-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-select.mjs +32 -32
- package/fesm2022/i-cell-ids-angular-select.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-side-sheet.mjs +27 -27
- package/fesm2022/i-cell-ids-angular-side-sheet.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-snackbar.mjs +29 -29
- package/fesm2022/i-cell-ids-angular-snackbar.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-spinner.mjs +10 -10
- package/fesm2022/i-cell-ids-angular-spinner.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-switch.mjs +35 -35
- package/fesm2022/i-cell-ids-angular-switch.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-tab.mjs +27 -27
- package/fesm2022/i-cell-ids-angular-tab.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-table.mjs +79 -79
- package/fesm2022/i-cell-ids-angular-table.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-tag.mjs +18 -18
- package/fesm2022/i-cell-ids-angular-tag.mjs.map +1 -1
- package/fesm2022/i-cell-ids-angular-tooltip.mjs +30 -31
- package/fesm2022/i-cell-ids-angular-tooltip.mjs.map +1 -1
- package/forms/index.d.ts +468 -3
- package/icon/index.d.ts +69 -5
- package/icon-button/index.d.ts +66 -5
- package/index.d.ts +2 -5
- package/menu/index.d.ts +68 -5
- package/notification/index.d.ts +68 -5
- package/overlay-panel/index.d.ts +41 -5
- package/package.json +10 -10
- package/paginator/index.d.ts +122 -5
- package/radio/index.d.ts +95 -5
- package/segmented-control/index.d.ts +98 -5
- package/segmented-control-toggle/index.d.ts +103 -5
- package/select/index.d.ts +103 -5
- package/side-sheet/index.d.ts +84 -5
- package/snackbar/index.d.ts +149 -5
- package/spinner/index.d.ts +41 -5
- package/switch/index.d.ts +89 -5
- package/tab/index.d.ts +78 -5
- package/table/index.d.ts +390 -3
- package/tag/index.d.ts +70 -5
- package/tooltip/index.d.ts +96 -5
- package/accordion/accordion-animations.d.ts +0 -1
- package/accordion/accordion-defaults.d.ts +0 -18
- package/accordion/accordion-item/accordion-item.component.d.ts +0 -27
- package/accordion/accordion.component.d.ts +0 -29
- package/accordion/public-api.d.ts +0 -5
- package/accordion/types/accordion-appearance.type.d.ts +0 -5
- package/avatar/avatar-defaults.d.ts +0 -12
- package/avatar/avatar-image.directive.d.ts +0 -5
- package/avatar/avatar.component.d.ts +0 -28
- package/avatar/public-api.d.ts +0 -6
- package/avatar/tokens/avatar-parent.d.ts +0 -6
- package/avatar/types/avatar-type.type.d.ts +0 -6
- package/avatar/types/avatar-variant.type.d.ts +0 -8
- package/badge/badge-defaults.d.ts +0 -13
- package/badge/badge-limit.pipe.d.ts +0 -7
- package/badge/badge.component.d.ts +0 -17
- package/badge/badge.directive.d.ts +0 -25
- package/badge/public-api.d.ts +0 -5
- package/badge/types/badge-appearance.type.d.ts +0 -4
- package/badge/types/badge-variant.type.d.ts +0 -12
- package/breadcrumb/breadcrumb-defaults.d.ts +0 -17
- package/breadcrumb/breadcrumb.component.d.ts +0 -35
- package/breadcrumb/libs/breadcrumb-divider.component.d.ts +0 -13
- package/breadcrumb/libs/breadcrumb-link.directive.d.ts +0 -10
- package/breadcrumb/libs/breadcrumb-list.directive.d.ts +0 -5
- package/breadcrumb/libs/breadcrumb-page.directive.d.ts +0 -5
- package/breadcrumb/libs/breadcrumb-truncation.component.d.ts +0 -15
- package/breadcrumb/public-api.d.ts +0 -5
- package/breadcrumb/types/breadcrumb-divider.type.d.ts +0 -5
- package/breadcrumb/types/breadcrumb-hierarchy.type.d.ts +0 -5
- package/breadcrumb/types/breadcrumb-variant.type.d.ts +0 -6
- package/button/button-defaults.d.ts +0 -11
- package/button/button-group-defaults.d.ts +0 -7
- package/button/button-group.component.d.ts +0 -11
- package/button/button.component.d.ts +0 -29
- package/button/public-api.d.ts +0 -7
- package/button/tokens/button-parent.d.ts +0 -6
- package/button/types/button-appearance.type.d.ts +0 -6
- package/button/types/button-variant.type.d.ts +0 -14
- package/card/card-body.directive.d.ts +0 -6
- package/card/card-defaults.d.ts +0 -12
- package/card/card-footer.directive.d.ts +0 -6
- package/card/card-header.component.d.ts +0 -6
- package/card/card-media.directive.d.ts +0 -7
- package/card/card-section-base.directive.d.ts +0 -9
- package/card/card-subtitle.directive.d.ts +0 -5
- package/card/card-title.directive.d.ts +0 -5
- package/card/card.component.d.ts +0 -21
- package/card/public-api.d.ts +0 -10
- package/card/types/card-appearances.type.d.ts +0 -6
- package/card/types/card-variant.type.d.ts +0 -13
- package/checkbox/checkbox-defaults.d.ts +0 -9
- package/checkbox/checkbox-group-defaults.d.ts +0 -9
- package/checkbox/checkbox-group.component.d.ts +0 -28
- package/checkbox/checkbox.component.d.ts +0 -70
- package/checkbox/public-api.d.ts +0 -7
- package/checkbox/types/checkbox-events.class.d.ts +0 -6
- package/checkbox/types/checkbox-group-child.d.ts +0 -8
- package/checkbox/types/checkbox-parent.d.ts +0 -8
- package/checkbox/types/checkbox-state.type.d.ts +0 -6
- package/checkbox/types/checkbox-variant.type.d.ts +0 -6
- package/chip/chip-defaults.d.ts +0 -12
- package/chip/chip-group-defaults.d.ts +0 -9
- package/chip/chip-group.component.d.ts +0 -14
- package/chip/chip.component.d.ts +0 -35
- package/chip/public-api.d.ts +0 -7
- package/chip/types/chip-appearance.type.d.ts +0 -5
- package/chip/types/chip-events.type.d.ts +0 -4
- package/chip/types/chip-variant.type.d.ts +0 -8
- package/core/base-classes/component-base.d.ts +0 -13
- package/core/base-classes/directive-base.d.ts +0 -16
- package/core/directives/detect-scrollable.directive.d.ts +0 -11
- package/core/pipes/sentence-case.pipe.d.ts +0 -7
- package/core/public-api.d.ts +0 -17
- package/core/services/resize-observer.service.d.ts +0 -13
- package/core/types/orientation.type.d.ts +0 -5
- package/core/types/position.type.d.ts +0 -39
- package/core/types/size-collection.type.d.ts +0 -5
- package/core/types/size.type.d.ts +0 -7
- package/core/utils/class-prefix.d.ts +0 -2
- package/core/utils/class.d.ts +0 -2
- package/core/utils/coercion.d.ts +0 -6
- package/core/utils/compare.d.ts +0 -1
- package/core/utils/date.d.ts +0 -25
- package/core/utils/fallback-value.d.ts +0 -1
- package/core/utils/number.d.ts +0 -4
- package/core/utils/string.d.ts +0 -1
- package/datepicker/calendar/calendar-page.d.ts +0 -26
- package/datepicker/calendar/calendar.component.d.ts +0 -40
- package/datepicker/datepicker-defaults.d.ts +0 -7
- package/datepicker/datepicker-intl.d.ts +0 -22
- package/datepicker/datepicker-positions.d.ts +0 -2
- package/datepicker/datepicker.directive.d.ts +0 -58
- package/datepicker/day-selector/day-selector.component.d.ts +0 -26
- package/datepicker/month-selector/month-selector.component.d.ts +0 -20
- package/datepicker/public-api.d.ts +0 -7
- package/datepicker/tokens/date-formatter.d.ts +0 -3
- package/datepicker/tokens/date-parser.d.ts +0 -3
- package/datepicker/tokens/datepicker-view.d.ts +0 -6
- package/datepicker/trigger/datepicker-trigger.component.d.ts +0 -12
- package/datepicker/year-selector/year-selector.component.d.ts +0 -20
- package/dialog/custom-dialog-base.d.ts +0 -15
- package/dialog/dialog-defaults.d.ts +0 -9
- package/dialog/dialog-header.directive.d.ts +0 -7
- package/dialog/dialog.component.d.ts +0 -22
- package/dialog/dialog.service.d.ts +0 -17
- package/dialog/public-api.d.ts +0 -5
- package/divider/divider-defaults.d.ts +0 -12
- package/divider/divider.component.d.ts +0 -18
- package/divider/public-api.d.ts +0 -3
- package/divider/types/divider-variant.type.d.ts +0 -13
- package/forms/common/error/error-state.d.ts +0 -23
- package/forms/common/success/success-state.d.ts +0 -23
- package/forms/components/fieldset/fieldset-defaults.d.ts +0 -9
- package/forms/components/fieldset/fieldset-message.directive.d.ts +0 -5
- package/forms/components/fieldset/fieldset-row/fieldset-row.component.d.ts +0 -8
- package/forms/components/fieldset/fieldset.component.d.ts +0 -16
- package/forms/components/form-field/form-field-control.d.ts +0 -44
- package/forms/components/form-field/form-field-defaults.d.ts +0 -9
- package/forms/components/form-field/form-field.component.d.ts +0 -41
- package/forms/components/form-field/tokens/form-field-control.d.ts +0 -3
- package/forms/components/form-field/types/form-field-variant.type.d.ts +0 -5
- package/forms/components/input/input-defaults.d.ts +0 -9
- package/forms/components/input/input.directive.d.ts +0 -31
- package/forms/components/input/types/input.type.d.ts +0 -1
- package/forms/components/message/error-message/error-definition.directive.d.ts +0 -49
- package/forms/components/message/error-message/error-message.component.d.ts +0 -20
- package/forms/components/message/hint-message/hint-message.component.d.ts +0 -10
- package/forms/components/message/message-defaults.d.ts +0 -9
- package/forms/components/message/success-message/success-message.component.d.ts +0 -11
- package/forms/components/message/types/error-message-mapping.d.ts +0 -9
- package/forms/components/message/types/message-parent-form-field.d.ts +0 -9
- package/forms/components/message/types/message-variant.type.d.ts +0 -6
- package/forms/components/message/types/message.type.d.ts +0 -6
- package/forms/components/option/option-group.component.d.ts +0 -13
- package/forms/components/option/option.component.d.ts +0 -47
- package/forms/components/option/tokens/option-group.d.ts +0 -3
- package/forms/components/option/tokens/option-parent.d.ts +0 -11
- package/forms/components/option/types/option-events.class.d.ts +0 -7
- package/forms/components/pseudo-checkbox/pseudo-checkbox.component.d.ts +0 -14
- package/forms/components/pseudo-checkbox/tokens/pseudo-checkbox-parent.d.ts +0 -7
- package/forms/components/pseudo-checkbox/types/pseudo-checkbox-state.type.d.ts +0 -6
- package/forms/directives/form-field-action.directive.d.ts +0 -5
- package/forms/directives/label.directive.d.ts +0 -5
- package/forms/directives/message-prefix.directive.d.ts +0 -5
- package/forms/directives/message-suffix.directive.d.ts +0 -5
- package/forms/directives/message.directive.d.ts +0 -17
- package/forms/directives/prefix.directive.d.ts +0 -7
- package/forms/directives/suffix.directive.d.ts +0 -7
- package/forms/public-api.d.ts +0 -37
- package/forms/validators.d.ts +0 -9
- package/icon/icon-defaults.d.ts +0 -12
- package/icon/icon.component.d.ts +0 -33
- package/icon/public-api.d.ts +0 -5
- package/icon/tokens/icon-parent.d.ts +0 -6
- package/icon/types/icon-source.type.d.ts +0 -5
- package/icon/types/icon-variant.type.d.ts +0 -12
- package/icon-button/icon-button-defaults.d.ts +0 -11
- package/icon-button/icon-button.component.d.ts +0 -28
- package/icon-button/public-api.d.ts +0 -5
- package/icon-button/tokens/icon-button-parent.d.ts +0 -9
- package/icon-button/types/icon-button-appearance.type.d.ts +0 -6
- package/icon-button/types/icon-button-variant.type.d.ts +0 -13
- package/menu/action-menu/action-menu-trigger.directive.d.ts +0 -12
- package/menu/active-indicator/active-indicator.directive.d.ts +0 -7
- package/menu/menu-item/menu-item-defaults.d.ts +0 -12
- package/menu/menu-item/menu-item.component.d.ts +0 -27
- package/menu/menu-item/types/menu-item-appearance.type.d.ts +0 -5
- package/menu/menu-item/types/menu-item-variant.type.d.ts +0 -5
- package/menu/public-api.d.ts +0 -6
- package/notification/notification-action-button.directive.d.ts +0 -5
- package/notification/notification-defaults.d.ts +0 -15
- package/notification/notification.component.d.ts +0 -34
- package/notification/public-api.d.ts +0 -5
- package/notification/types/notification-appearance.type.d.ts +0 -5
- package/notification/types/notification-variant.type.d.ts +0 -10
- package/overlay-panel/overlay-panel-defaults.d.ts +0 -11
- package/overlay-panel/overlay-panel.component.d.ts +0 -18
- package/overlay-panel/public-api.d.ts +0 -4
- package/overlay-panel/types/overlay-panel-appearance.type.d.ts +0 -6
- package/overlay-panel/types/overlay-panel-variant.type.d.ts +0 -5
- package/paginator/paginator-defaults.d.ts +0 -22
- package/paginator/paginator-intl.d.ts +0 -24
- package/paginator/paginator.component.d.ts +0 -67
- package/paginator/public-api.d.ts +0 -5
- package/paginator/types/paginator-appearance.type.d.ts +0 -4
- package/paginator/types/paginator-events.class.d.ts +0 -6
- package/paginator/types/paginator-variant.type.d.ts +0 -7
- package/public-api.d.ts +0 -2
- package/radio/public-api.d.ts +0 -5
- package/radio/radio-defaults.d.ts +0 -11
- package/radio/radio-group.directive.d.ts +0 -46
- package/radio/radio.component.d.ts +0 -30
- package/radio/types/radio-events.class.d.ts +0 -6
- package/radio/types/radio-variant.type.d.ts +0 -6
- package/segmented-control/public-api.d.ts +0 -6
- package/segmented-control/segmented-control-defaults.d.ts +0 -11
- package/segmented-control/segmented-control-item.component.d.ts +0 -33
- package/segmented-control/segmented-control.directive.d.ts +0 -42
- package/segmented-control/types/segmented-control-appearance.type.d.ts +0 -4
- package/segmented-control/types/segmented-control-item-change.class.d.ts +0 -7
- package/segmented-control/types/segmented-control-variant.type.d.ts +0 -6
- package/segmented-control-toggle/public-api.d.ts +0 -6
- package/segmented-control-toggle/segmented-control-toggle-defaults.d.ts +0 -12
- package/segmented-control-toggle/segmented-control-toggle-item.component.d.ts +0 -32
- package/segmented-control-toggle/segmented-control-toggle.directive.d.ts +0 -43
- package/segmented-control-toggle/types/segmented-control-toggle-appearance.type.d.ts +0 -5
- package/segmented-control-toggle/types/segmented-control-toggle-item-change.class.d.ts +0 -6
- package/segmented-control-toggle/types/segmented-control-toggle-variant.type.d.ts +0 -11
- package/select/public-api.d.ts +0 -3
- package/select/select-defaults.d.ts +0 -9
- package/select/select-positions.d.ts +0 -2
- package/select/select-trigger.directive.d.ts +0 -5
- package/select/select.component.d.ts +0 -85
- package/side-sheet/public-api.d.ts +0 -3
- package/side-sheet/side-sheet-defaults.d.ts +0 -20
- package/side-sheet/side-sheet-header/side-sheet-header.component.d.ts +0 -19
- package/side-sheet/side-sheet.component.d.ts +0 -40
- package/side-sheet/types/side-sheet.type.d.ts +0 -20
- package/snackbar/animations.d.ts +0 -2
- package/snackbar/public-api.d.ts +0 -7
- package/snackbar/services/snackbar.service.d.ts +0 -28
- package/snackbar/snackbar-defaults.d.ts +0 -16
- package/snackbar/snackbar-group.component.d.ts +0 -25
- package/snackbar/snackbar-position-strategies.d.ts +0 -4
- package/snackbar/snackbar.component.d.ts +0 -51
- package/snackbar/types/snackbar-data.type.d.ts +0 -15
- package/snackbar/types/snackbar-inner-data.type.d.ts +0 -4
- package/snackbar/types/snackbar-position.type.d.ts +0 -9
- package/snackbar/types/snackbar-variant.type.d.ts +0 -8
- package/spinner/public-api.d.ts +0 -3
- package/spinner/spinner-defaults.d.ts +0 -11
- package/spinner/spinner.component.d.ts +0 -17
- package/spinner/types/spinner-variant.type.d.ts +0 -11
- package/switch/public-api.d.ts +0 -5
- package/switch/switch-animations.d.ts +0 -2
- package/switch/switch-defaults.d.ts +0 -13
- package/switch/switch-group.component.d.ts +0 -14
- package/switch/switch.component.d.ts +0 -45
- package/switch/types/switch-positions.type.d.ts +0 -10
- package/switch/types/switch-variant.type.d.ts +0 -6
- package/tab/public-api.d.ts +0 -6
- package/tab/tab-group-defaults.d.ts +0 -15
- package/tab/tab-group.component.d.ts +0 -30
- package/tab/tab.component.d.ts +0 -18
- package/tab/types/tab-group-position.type.d.ts +0 -6
- package/tab/types/tab-group-variant.type.d.ts +0 -6
- package/tab/types/tab-indicator-position.type.d.ts +0 -7
- package/table/components/cell-content/cell-content.component.d.ts +0 -25
- package/table/datasource/server-side-datasource.d.ts +0 -37
- package/table/directives/cell-renderer.d.ts +0 -13
- package/table/directives/cell-template.d.ts +0 -8
- package/table/directives/row-info-holder.d.ts +0 -9
- package/table/public-api.d.ts +0 -18
- package/table/table-defaults.d.ts +0 -22
- package/table/table-intl.d.ts +0 -25
- package/table/table.component.d.ts +0 -142
- package/table/types/pagination-params.d.ts +0 -9
- package/table/types/request-factory.d.ts +0 -5
- package/table/types/request-pagination-data.d.ts +0 -6
- package/table/types/response-data.d.ts +0 -5
- package/table/types/table-appearance.type.d.ts +0 -6
- package/table/types/table-cell-click-event.d.ts +0 -6
- package/table/types/table-column-def.d.ts +0 -97
- package/table/types/table-row-click-event.d.ts +0 -4
- package/table/types/table-row-keydown-event.d.ts +0 -4
- package/table/types/table-sort-direction.d.ts +0 -6
- package/table/types/table-sort-info.d.ts +0 -6
- package/table/types/table-variant.type.d.ts +0 -6
- package/tag/public-api.d.ts +0 -6
- package/tag/tag-defaults.d.ts +0 -11
- package/tag/tag-group-defaults.d.ts +0 -9
- package/tag/tag-group.component.d.ts +0 -13
- package/tag/tag.component.d.ts +0 -23
- package/tag/types/tag-appearance.type.d.ts +0 -5
- package/tag/types/tag-variant.type.d.ts +0 -13
- package/tooltip/public-api.d.ts +0 -5
- package/tooltip/tooltip-defaults.d.ts +0 -18
- package/tooltip/tooltip-position-strategies.d.ts +0 -3
- package/tooltip/tooltip.component.d.ts +0 -31
- package/tooltip/tooltip.directive.d.ts +0 -60
- package/tooltip/types/tooltip-position.type.d.ts +0 -11
- package/tooltip/types/tooltip-variant.type.d.ts +0 -5
- package/tooltip/types/tooltip.type.d.ts +0 -2
- package/tooltip/utils/tooltip-converters.d.ts +0 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i-cell-ids-angular-core.mjs","sources":["../../../projects/widgets/core/utils/class-prefix.ts","../../../projects/widgets/core/base-classes/directive-base.ts","../../../projects/widgets/core/utils/fallback-value.ts","../../../projects/widgets/core/base-classes/component-base.ts","../../../projects/widgets/core/services/resize-observer.service.ts","../../../projects/widgets/core/directives/detect-scrollable.directive.ts","../../../projects/widgets/core/pipes/sentence-case.pipe.ts","../../../projects/widgets/core/types/orientation.type.ts","../../../projects/widgets/core/types/position.type.ts","../../../projects/widgets/core/types/size-collection.type.ts","../../../projects/widgets/core/types/size.type.ts","../../../projects/widgets/core/utils/class.ts","../../../projects/widgets/core/utils/coercion.ts","../../../projects/widgets/core/utils/number.ts","../../../projects/widgets/core/utils/string.ts","../../../projects/widgets/core/utils/date.ts","../../../projects/widgets/core/utils/compare.ts","../../../projects/widgets/core/i-cell-ids-angular-core.ts"],"sourcesContent":["export function addClassPrefix(\n hostClass: string,\n className: string | Array<string | null | undefined> | null | undefined,\n): string | null {\n if (className == null) {\n return null;\n }\n\n if (Array.isArray(className)) {\n if (className.some((item) => item == null)) {\n return null;\n }\n return `${hostClass}-${className.filter(Boolean).join('-')}`;\n }\n\n return `${hostClass}-${className}`;\n}\n\nexport function createClassList(\n hostClass: string,\n appendableClassNames: Array<string | Array<string | null | undefined> | null | undefined> = [],\n nonAppendableClassNames: Array<string | null> = [],\n): string {\n return [\n hostClass,\n ...appendableClassNames.map((className) => addClassPrefix(hostClass, className)),\n ...nonAppendableClassNames,\n ].filter(Boolean).join(' ');\n}\n","import { createClassList } from '../utils/class-prefix';\n\nimport { DestroyRef, Directive, inject, InjectionToken, Signal } from '@angular/core';\n\n@Directive({\n host: {\n '[class]': '_hostClasses()',\n },\n standalone: false,\n})\nexport abstract class DirectiveBase {\n protected get _hostName(): string {\n return '';\n }\n\n protected readonly _hostClassName = `ids-${this._hostName}`;\n\n protected readonly _destroyRef = inject(DestroyRef);\n\n protected abstract _hostClasses: Signal<string>;\n protected _getHostClasses(\n appendableClassNames: Array<string | Array<string | null | undefined> | null | undefined> = [],\n nonAppendableClassNames: Array<string | null> = [],\n ): string {\n return createClassList(this._hostClassName, appendableClassNames, nonAppendableClassNames);\n }\n\n protected _createHostError(message: string): Error {\n return new Error(`${this._hostClassName}: ${message}`);\n }\n}\n\nexport abstract class DirectiveBaseWithDefaults<D> extends DirectiveBase {\n protected abstract readonly _defaultConfig: D;\n\n protected _getDefaultConfig(defaultConfig: Required<D>, injectionToken: InjectionToken<D>): Required<D> {\n return {\n ...defaultConfig,\n ...inject(injectionToken, { optional: true }),\n };\n }\n}\n","export function fallbackValue<T>(value: T | undefined, fallbackValue: T): T {\n return value ? value : fallbackValue;\n}\n","import { DirectiveBase } from './directive-base';\n\nimport { fallbackValue } from '../utils/fallback-value';\n\nimport { Directive, inject, InjectionToken, input } from '@angular/core';\n\nlet nextUniqueId = 0;\n\n@Directive({\n host: {\n '[id]': 'id()',\n },\n standalone: false,\n})\nexport abstract class ComponentBase extends DirectiveBase {\n protected readonly _uniqueId = `${this._hostClassName}-${++nextUniqueId}`;\n\n public readonly id = input<string, string | undefined>(this._uniqueId, { transform: (val) => fallbackValue(val, this._uniqueId) });\n}\n\nexport abstract class ComponentBaseWithDefaults<D> extends ComponentBase {\n protected abstract readonly _defaultConfig: D;\n\n protected _getDefaultConfig(defaultConfig: Required<D>, injectionToken: InjectionToken<D>): Required<D> {\n return {\n ...defaultConfig,\n ...inject(injectionToken, { optional: true }),\n };\n }\n}\n","import { Injectable, NgZone, OnDestroy, inject } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class ResizeObserverService implements OnDestroy {\n private _zone = inject(NgZone);\n\n private _observers = new Map<Element, Subject<ResizeObserverEntry>>();\n private _resizeObserver = new ResizeObserver((entries) => {\n entries.forEach((entry) => {\n const observer = this._observers.get(entry.target);\n this._zone.run(() => observer?.next(entry));\n });\n });\n\n public observe(target: Element): Observable<ResizeObserverEntry> {\n if (this._observers.has(target)) {\n return this._observers.get(target)!.asObservable();\n }\n\n const newObserver = new Subject<ResizeObserverEntry>();\n\n this._observers.set(target, newObserver);\n this._resizeObserver.observe(target);\n\n return newObserver.asObservable();\n }\n\n public unobserve(target: Element): void {\n const observer = this._observers.get(target);\n\n if (observer) {\n observer.complete();\n this._observers.delete(target);\n }\n\n this._resizeObserver.unobserve(target);\n }\n\n public ngOnDestroy(): void {\n this._resizeObserver.disconnect();\n }\n}\n","import { ResizeObserverService } from '../services/resize-observer.service';\n\nimport { Directive, ElementRef, OnDestroy, OnInit, inject, signal } from '@angular/core';\n\n@Directive({\n selector: '[idsDetectScrollable]',\n standalone: true,\n exportAs: 'idsDetectScrollable',\n})\nexport class IdsDetectScrollableDirective implements OnInit, OnDestroy {\n private _hostElement = inject(ElementRef).nativeElement;\n private _resizeObserver = inject(ResizeObserverService);\n\n public isScrollable = signal(false);\n\n public ngOnInit(): void {\n this._resizeObserver.observe(this._hostElement).subscribe(() => {\n this.isScrollable.set(this._hostElement.scrollHeight > this._hostElement.clientHeight);\n },\n );\n }\n\n public ngOnDestroy(): void {\n this._resizeObserver.unobserve(this._hostElement);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'sentenceCase',\n standalone: true,\n})\nexport class IdsSentenceCasePipe implements PipeTransform {\n public transform(value: string): unknown {\n return value.charAt(0).toUpperCase().concat(value.substring(1));\n }\n\n}\n","export const IdsOrientation = {\n VERTICAL: 'vertical',\n HORIZONTAL: 'horizontal',\n} as const;\n\nexport type IdsOrientationType = (typeof IdsOrientation)[keyof typeof IdsOrientation];\n","export const IdsHorizontalPosition = {\n LEFT: 'left',\n RIGHT: 'right',\n} as const;\n\nexport type IdsHorizontalPositionType = (typeof IdsHorizontalPosition)[keyof typeof IdsHorizontalPosition];\n\nexport const IdsExtendedHorizontalPosition = {\n ...IdsHorizontalPosition,\n CENTER: 'center',\n} as const;\n\nexport type IdsExtendedHorizontalPositionType = (typeof IdsExtendedHorizontalPosition)[keyof typeof IdsExtendedHorizontalPosition];\n\nexport const IdsVerticalPosition = {\n TOP: 'top',\n BOTTOM: 'bottom',\n} as const;\n\nexport type IdsVerticalPositionType = (typeof IdsVerticalPosition)[keyof typeof IdsVerticalPosition];\n\nexport const IdsExtendedVerticalPosition = {\n ...IdsVerticalPosition,\n CENTER: 'center',\n} as const;\n\nexport type IdsExtendedVerticalPositionType = (typeof IdsExtendedVerticalPosition)[keyof typeof IdsExtendedVerticalPosition];\n\nexport const IdsPosition = {\n ...IdsHorizontalPosition,\n ...IdsVerticalPosition,\n} as const;\n\nexport type IdsPositionType = (typeof IdsPosition)[keyof typeof IdsPosition];\n\nexport type IdsPositionPairType = [IdsHorizontalPositionType, IdsVerticalPositionType];\n\nexport const IdsExtendedPosition = {\n ...IdsExtendedHorizontalPosition,\n ...IdsExtendedVerticalPosition,\n} as const;\n\nexport type IdsExtendedPositionType = (typeof IdsExtendedPosition)[keyof typeof IdsExtendedPosition];\n\nexport type IdsExtendedPositionPairType = [IdsExtendedHorizontalPositionType, IdsExtendedVerticalPositionType];\n","export const IdsSizeCollection = {\n SMALL: 'small',\n BIG: 'big',\n} as const;\n\nexport type IdsSizeCollectionType = (typeof IdsSizeCollection)[keyof typeof IdsSizeCollection];\n","export const IdsSize = {\n DENSE: 'dense',\n COMPACT: 'compact',\n COMFORTABLE: 'comfortable',\n SPACIOUS: 'spacious',\n} as const;\n\nexport type IdsSizeType = (typeof IdsSize)[keyof typeof IdsSize];\n","import { AbstractType, Type } from '@angular/core';\n\nexport function isTypeDerivedFrom<T1, T2>(type: Type<T1> | AbstractType<T1>, ancestorType: Type<T2> | AbstractType<T2>): boolean {\n if (!type || !ancestorType) {\n return false;\n }\n\n const superType = Object.getPrototypeOf(type);\n\n return superType === ancestorType || isTypeDerivedFrom(superType, ancestorType);\n}\n","/** Converts a bound attribute's value to a boolean. */\nexport function coerceBooleanAttribute(value: unknown): boolean {\n return value != null && `${value}` !== 'false';\n}\n\n/** Converts a bound attribute's value to a number. */\nexport function coerceNumberAttribute(value: unknown, fallbackValue = NaN): number {\n const isNumberValue = !isNaN(Number(value));\n return isNumberValue ? Number(value) : fallbackValue;\n}\n\n/** Converts a bound attribute's value to a string and trim. */\nexport function coerceStringAttribute(value: unknown): string {\n return value ? String(value).trim() : '';\n}\n","export function isNumber(value: unknown): value is number {\n return typeof value === 'number' || value instanceof Number;\n}\n\nexport function isNumberEven(val: number): boolean {\n return val % 2 === 0;\n}\n\nexport function isNumberOdd(val: number): boolean {\n return val % 2 === 1;\n}\n\nexport function positiveModulus(num: number, divisor: number): number {\n return ((num % divisor) + divisor) % divisor;\n}\n","export function isString(value: unknown): value is string {\n return typeof value == 'string' || value instanceof String;\n}\n","/* eslint-disable no-magic-numbers */\n\nimport { isNumber, positiveModulus } from './number';\nimport { isString } from './string';\n\nconst ISO_8601_REGEXP = /^\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|(?:(?:\\+|-)\\d{2}:\\d{2}))?)?$/;\n\nconst weekLength = 7;\n\nfunction padDigits(num: number): string {\n return num > 9 ? String(num) : `0${num}`;\n}\n\nfunction dayOfWeekWithOffset(weekDay: Date, offset: number): number {\n return (weekLength + weekDay.getDay() - offset) % weekLength;\n}\n\nexport function isDate(value: unknown): value is Date {\n return value instanceof Date;\n}\n\nexport function isValidDate(value: unknown): value is Date {\n return isDate(value) && !isNaN(value.getTime());\n}\n\nexport function getValidDateOrNull(value: unknown): Date | null {\n return isValidDate(value) ? value : null;\n}\n\nexport function equalDates(date1: Date | null, date2: Date | null): boolean {\n // eslint-disable-next-line eqeqeq\n return date1 && date2 ? Object.is(+startOfDay(date1), +startOfDay(date2)) : date1 == date2;\n}\n\nexport function compareDates(date1: Date, date2: Date): number {\n return Math.sign(+date1 - +date2);\n}\n\nexport function clampDate(date: Date, min: Date | null, max: Date | null): Date;\nexport function clampDate(date: Date | null, min: Date | null, max: Date | null): Date | null {\n if (!isValidDate(date)) {\n return date;\n }\n\n const dateMillis = date.getTime();\n const minDate = isValidDate(min) ? min.getTime() : dateMillis;\n const maxDate = isValidDate(max) ? max.getTime() : dateMillis;\n\n return new Date(Math.max(minDate, Math.min(dateMillis, maxDate)));\n}\n\nexport function invalidDate(): Date {\n return new Date(NaN);\n}\n\nexport function cloneDate(date: Date): Date {\n return new Date(date);\n}\n\nexport function parseDate(value: string, utc = false): Date | null {\n if (!value) {\n return null;\n }\n if (ISO_8601_REGEXP.test(value)) {\n return new Date(utc ? value : `${value}T00:00:00`);\n }\n return invalidDate();\n}\n\nexport function deserializeDate(value: unknown): Date | null {\n // Numeric timestamp\n if (isNumber(value)) {\n return new Date(value);\n }\n\n // Empty value -> null\n if (!value) {\n return null;\n }\n\n // value is a Date instance, nothing to process\n if (isDate(value)) {\n return value;\n }\n\n if (isString(value)) {\n return parseDate(value);\n }\n\n return invalidDate();\n}\n\nexport function formatDate(date: Date): string {\n const year = date.getFullYear();\n const month = date.getMonth() + 1;\n const day = date.getDate();\n\n return `${year}-${padDigits(month)}-${padDigits(day)}`;\n}\n\nexport function formatUTCDate(date: Date): string {\n return date.toISOString().split('T')[0];\n}\n\nexport function addDays(date: Date, days: number): Date {\n const clonedDate = cloneDate(date);\n clonedDate.setDate(clonedDate.getDate() + days);\n return clonedDate;\n}\n\nexport function addMonths(date: Date, months: number): Date {\n const newDate = new Date();\n newDate.setFullYear(date.getFullYear(), date.getMonth() + months, date.getDate());\n newDate.setHours(0, 0, 0, 0);\n\n const newMonth = newDate.getMonth();\n const desiredMonth = positiveModulus(date.getMonth() + months, 12);\n\n if (newMonth !== desiredMonth) {\n newDate.setDate(0);\n }\n\n return newDate;\n}\n\nexport function addYears(date: Date, years: number): Date {\n return addMonths(date, years * 12);\n}\n\nexport function startOfDay(date: Date): Date {\n const clonedDate = cloneDate(date);\n clonedDate.setHours(0, 0, 0, 0);\n return clonedDate;\n}\n\nexport function endOfDay(date: Date): Date {\n const clonedDate = cloneDate(date);\n clonedDate.setHours(23, 59, 59, 999);\n return clonedDate;\n}\n\nexport function startOfWeek(weekDay: Date, offset: number): Date {\n return addDays(weekDay, -dayOfWeekWithOffset(weekDay, offset));\n}\n\nexport function endOfWeek(weekDay: Date, offset: number): Date {\n return addDays(weekDay, 6 - dayOfWeekWithOffset(weekDay, offset));\n}\n\nexport function startOfMonth(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth(), 1);\n}\n\nexport function endOfMonth(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth() + 1, 0);\n}\n\nexport function startOfYear(date: Date): Date {\n return new Date(date.getFullYear(), 0, 1);\n}\n\nexport function endOfYear(date: Date): Date {\n return new Date(date.getFullYear(), 12, 0);\n}\n\nexport function getDatesBetween(startDate: Date, endDate: Date): Date[] {\n if (!isValidDate(startDate) || !isValidDate(endDate)) {\n return [];\n }\n\n let current = startOfDay(startDate);\n const end = startOfDay(endDate);\n const result = [];\n\n while (current <= end) {\n result.push(new Date(current));\n current = addDays(current, 1);\n }\n\n return result;\n}\n\nexport function createNormalizedDate(year: number, month: number, date: number): Date {\n const daysInMonth = new Date(year, month + 1, 0).getDate();\n return new Date(year, month, Math.min(date, daysInMonth));\n}\n","import { isValidDate } from './date';\n\nexport function compare(value1: unknown, value2: unknown): number {\n if (Number.isFinite(value1) && Number.isFinite(value2)) {\n return Math.sign((value1 as number) - (value2 as number));\n }\n\n if (isValidDate(value1) && isValidDate(value2)) {\n return compare(value1.valueOf(), value2.valueOf());\n }\n\n return String(value1).localeCompare(String(value2));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAAgB,SAAA,cAAc,CAC5B,SAAiB,EACjB,SAAuE,EAAA;AAEvE,IAAA,IAAI,SAAS,IAAI,IAAI,EAAE;AACrB,QAAA,OAAO,IAAI;;AAGb,IAAA,IAAI,KAAK,CA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AAE;AAC9C,QAAA,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;;AAGpD,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACrD;;ACZA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"i-cell-ids-angular-core.mjs","sources":["../../../projects/widgets/core/utils/class-prefix.ts","../../../projects/widgets/core/base-classes/directive-base.ts","../../../projects/widgets/core/utils/fallback-value.ts","../../../projects/widgets/core/base-classes/component-base.ts","../../../projects/widgets/core/services/resize-observer.service.ts","../../../projects/widgets/core/directives/detect-scrollable.directive.ts","../../../projects/widgets/core/pipes/sentence-case.pipe.ts","../../../projects/widgets/core/types/orientation.type.ts","../../../projects/widgets/core/types/position.type.ts","../../../projects/widgets/core/types/size-collection.type.ts","../../../projects/widgets/core/types/size.type.ts","../../../projects/widgets/core/utils/class.ts","../../../projects/widgets/core/utils/coercion.ts","../../../projects/widgets/core/utils/number.ts","../../../projects/widgets/core/utils/string.ts","../../../projects/widgets/core/utils/date.ts","../../../projects/widgets/core/utils/compare.ts","../../../projects/widgets/core/i-cell-ids-angular-core.ts"],"sourcesContent":["export function addClassPrefix(\n hostClass: string,\n className: string | Array<string | null | undefined> | null | undefined,\n): string | null {\n if (className == null) {\n return null;\n }\n\n if (Array.isArray(className)) {\n if (className.some((item) => item == null)) {\n return null;\n }\n return `${hostClass}-${className.filter(Boolean).join('-')}`;\n }\n\n return `${hostClass}-${className}`;\n}\n\nexport function createClassList(\n hostClass: string,\n appendableClassNames: Array<string | Array<string | null | undefined> | null | undefined> = [],\n nonAppendableClassNames: Array<string | null> = [],\n): string {\n return [\n hostClass,\n ...appendableClassNames.map((className) => addClassPrefix(hostClass, className)),\n ...nonAppendableClassNames,\n ].filter(Boolean).join(' ');\n}\n","import { createClassList } from '../utils/class-prefix';\n\nimport { DestroyRef, Directive, inject, InjectionToken, Signal } from '@angular/core';\n\n@Directive({\n host: {\n '[class]': '_hostClasses()',\n },\n standalone: false,\n})\nexport abstract class DirectiveBase {\n protected get _hostName(): string {\n return '';\n }\n\n protected readonly _hostClassName = `ids-${this._hostName}`;\n\n protected readonly _destroyRef = inject(DestroyRef);\n\n protected abstract _hostClasses: Signal<string>;\n protected _getHostClasses(\n appendableClassNames: Array<string | Array<string | null | undefined> | null | undefined> = [],\n nonAppendableClassNames: Array<string | null> = [],\n ): string {\n return createClassList(this._hostClassName, appendableClassNames, nonAppendableClassNames);\n }\n\n protected _createHostError(message: string): Error {\n return new Error(`${this._hostClassName}: ${message}`);\n }\n}\n\nexport abstract class DirectiveBaseWithDefaults<D> extends DirectiveBase {\n protected abstract readonly _defaultConfig: D;\n\n protected _getDefaultConfig(defaultConfig: Required<D>, injectionToken: InjectionToken<D>): Required<D> {\n return {\n ...defaultConfig,\n ...inject(injectionToken, { optional: true }),\n };\n }\n}\n","export function fallbackValue<T>(value: T | undefined, fallbackValue: T): T {\n return value ? value : fallbackValue;\n}\n","import { DirectiveBase } from './directive-base';\n\nimport { fallbackValue } from '../utils/fallback-value';\n\nimport { Directive, inject, InjectionToken, input } from '@angular/core';\n\nlet nextUniqueId = 0;\n\n@Directive({\n host: {\n '[id]': 'id()',\n },\n standalone: false,\n})\nexport abstract class ComponentBase extends DirectiveBase {\n protected readonly _uniqueId = `${this._hostClassName}-${++nextUniqueId}`;\n\n public readonly id = input<string, string | undefined>(this._uniqueId, { transform: (val) => fallbackValue(val, this._uniqueId) });\n}\n\nexport abstract class ComponentBaseWithDefaults<D> extends ComponentBase {\n protected abstract readonly _defaultConfig: D;\n\n protected _getDefaultConfig(defaultConfig: Required<D>, injectionToken: InjectionToken<D>): Required<D> {\n return {\n ...defaultConfig,\n ...inject(injectionToken, { optional: true }),\n };\n }\n}\n","import { Injectable, NgZone, OnDestroy, inject } from '@angular/core';\nimport { Observable, Subject } from 'rxjs';\n\n@Injectable({ providedIn: 'root' })\nexport class ResizeObserverService implements OnDestroy {\n private _zone = inject(NgZone);\n\n private _observers = new Map<Element, Subject<ResizeObserverEntry>>();\n private _resizeObserver = new ResizeObserver((entries) => {\n entries.forEach((entry) => {\n const observer = this._observers.get(entry.target);\n this._zone.run(() => observer?.next(entry));\n });\n });\n\n public observe(target: Element): Observable<ResizeObserverEntry> {\n if (this._observers.has(target)) {\n return this._observers.get(target)!.asObservable();\n }\n\n const newObserver = new Subject<ResizeObserverEntry>();\n\n this._observers.set(target, newObserver);\n this._resizeObserver.observe(target);\n\n return newObserver.asObservable();\n }\n\n public unobserve(target: Element): void {\n const observer = this._observers.get(target);\n\n if (observer) {\n observer.complete();\n this._observers.delete(target);\n }\n\n this._resizeObserver.unobserve(target);\n }\n\n public ngOnDestroy(): void {\n this._resizeObserver.disconnect();\n }\n}\n","import { ResizeObserverService } from '../services/resize-observer.service';\n\nimport { Directive, ElementRef, OnDestroy, OnInit, inject, signal } from '@angular/core';\n\n@Directive({\n selector: '[idsDetectScrollable]',\n standalone: true,\n exportAs: 'idsDetectScrollable',\n})\nexport class IdsDetectScrollableDirective implements OnInit, OnDestroy {\n private _hostElement = inject(ElementRef).nativeElement;\n private _resizeObserver = inject(ResizeObserverService);\n\n public isScrollable = signal(false);\n\n public ngOnInit(): void {\n this._resizeObserver.observe(this._hostElement).subscribe(() => {\n this.isScrollable.set(this._hostElement.scrollHeight > this._hostElement.clientHeight);\n },\n );\n }\n\n public ngOnDestroy(): void {\n this._resizeObserver.unobserve(this._hostElement);\n }\n}\n","import { Pipe, PipeTransform } from '@angular/core';\n\n@Pipe({\n name: 'sentenceCase',\n standalone: true,\n})\nexport class IdsSentenceCasePipe implements PipeTransform {\n public transform(value: string): unknown {\n return value.charAt(0).toUpperCase().concat(value.substring(1));\n }\n\n}\n","export const IdsOrientation = {\n VERTICAL: 'vertical',\n HORIZONTAL: 'horizontal',\n} as const;\n\nexport type IdsOrientationType = (typeof IdsOrientation)[keyof typeof IdsOrientation];\n","export const IdsHorizontalPosition = {\n LEFT: 'left',\n RIGHT: 'right',\n} as const;\n\nexport type IdsHorizontalPositionType = (typeof IdsHorizontalPosition)[keyof typeof IdsHorizontalPosition];\n\nexport const IdsExtendedHorizontalPosition = {\n ...IdsHorizontalPosition,\n CENTER: 'center',\n} as const;\n\nexport type IdsExtendedHorizontalPositionType = (typeof IdsExtendedHorizontalPosition)[keyof typeof IdsExtendedHorizontalPosition];\n\nexport const IdsVerticalPosition = {\n TOP: 'top',\n BOTTOM: 'bottom',\n} as const;\n\nexport type IdsVerticalPositionType = (typeof IdsVerticalPosition)[keyof typeof IdsVerticalPosition];\n\nexport const IdsExtendedVerticalPosition = {\n ...IdsVerticalPosition,\n CENTER: 'center',\n} as const;\n\nexport type IdsExtendedVerticalPositionType = (typeof IdsExtendedVerticalPosition)[keyof typeof IdsExtendedVerticalPosition];\n\nexport const IdsPosition = {\n ...IdsHorizontalPosition,\n ...IdsVerticalPosition,\n} as const;\n\nexport type IdsPositionType = (typeof IdsPosition)[keyof typeof IdsPosition];\n\nexport type IdsPositionPairType = [IdsHorizontalPositionType, IdsVerticalPositionType];\n\nexport const IdsExtendedPosition = {\n ...IdsExtendedHorizontalPosition,\n ...IdsExtendedVerticalPosition,\n} as const;\n\nexport type IdsExtendedPositionType = (typeof IdsExtendedPosition)[keyof typeof IdsExtendedPosition];\n\nexport type IdsExtendedPositionPairType = [IdsExtendedHorizontalPositionType, IdsExtendedVerticalPositionType];\n","export const IdsSizeCollection = {\n SMALL: 'small',\n BIG: 'big',\n} as const;\n\nexport type IdsSizeCollectionType = (typeof IdsSizeCollection)[keyof typeof IdsSizeCollection];\n","export const IdsSize = {\n DENSE: 'dense',\n COMPACT: 'compact',\n COMFORTABLE: 'comfortable',\n SPACIOUS: 'spacious',\n} as const;\n\nexport type IdsSizeType = (typeof IdsSize)[keyof typeof IdsSize];\n","import { AbstractType, Type } from '@angular/core';\n\nexport function isTypeDerivedFrom<T1, T2>(type: Type<T1> | AbstractType<T1>, ancestorType: Type<T2> | AbstractType<T2>): boolean {\n if (!type || !ancestorType) {\n return false;\n }\n\n const superType = Object.getPrototypeOf(type);\n\n return superType === ancestorType || isTypeDerivedFrom(superType, ancestorType);\n}\n","/** Converts a bound attribute's value to a boolean. */\nexport function coerceBooleanAttribute(value: unknown): boolean {\n return value != null && `${value}` !== 'false';\n}\n\n/** Converts a bound attribute's value to a number. */\nexport function coerceNumberAttribute(value: unknown, fallbackValue = NaN): number {\n const isNumberValue = !isNaN(Number(value));\n return isNumberValue ? Number(value) : fallbackValue;\n}\n\n/** Converts a bound attribute's value to a string and trim. */\nexport function coerceStringAttribute(value: unknown): string {\n return value ? String(value).trim() : '';\n}\n","export function isNumber(value: unknown): value is number {\n return typeof value === 'number' || value instanceof Number;\n}\n\nexport function isNumberEven(val: number): boolean {\n return val % 2 === 0;\n}\n\nexport function isNumberOdd(val: number): boolean {\n return val % 2 === 1;\n}\n\nexport function positiveModulus(num: number, divisor: number): number {\n return ((num % divisor) + divisor) % divisor;\n}\n","export function isString(value: unknown): value is string {\n return typeof value == 'string' || value instanceof String;\n}\n","/* eslint-disable no-magic-numbers */\n\nimport { isNumber, positiveModulus } from './number';\nimport { isString } from './string';\n\nconst ISO_8601_REGEXP = /^\\d{4}-\\d{2}-\\d{2}(?:T\\d{2}:\\d{2}:\\d{2}(?:\\.\\d+)?(?:Z|(?:(?:\\+|-)\\d{2}:\\d{2}))?)?$/;\n\nconst weekLength = 7;\n\nfunction padDigits(num: number): string {\n return num > 9 ? String(num) : `0${num}`;\n}\n\nfunction dayOfWeekWithOffset(weekDay: Date, offset: number): number {\n return (weekLength + weekDay.getDay() - offset) % weekLength;\n}\n\nexport function isDate(value: unknown): value is Date {\n return value instanceof Date;\n}\n\nexport function isValidDate(value: unknown): value is Date {\n return isDate(value) && !isNaN(value.getTime());\n}\n\nexport function getValidDateOrNull(value: unknown): Date | null {\n return isValidDate(value) ? value : null;\n}\n\nexport function equalDates(date1: Date | null, date2: Date | null): boolean {\n // eslint-disable-next-line eqeqeq\n return date1 && date2 ? Object.is(+startOfDay(date1), +startOfDay(date2)) : date1 == date2;\n}\n\nexport function compareDates(date1: Date, date2: Date): number {\n return Math.sign(+date1 - +date2);\n}\n\nexport function clampDate(date: Date, min: Date | null, max: Date | null): Date;\nexport function clampDate(date: Date | null, min: Date | null, max: Date | null): Date | null {\n if (!isValidDate(date)) {\n return date;\n }\n\n const dateMillis = date.getTime();\n const minDate = isValidDate(min) ? min.getTime() : dateMillis;\n const maxDate = isValidDate(max) ? max.getTime() : dateMillis;\n\n return new Date(Math.max(minDate, Math.min(dateMillis, maxDate)));\n}\n\nexport function invalidDate(): Date {\n return new Date(NaN);\n}\n\nexport function cloneDate(date: Date): Date {\n return new Date(date);\n}\n\nexport function parseDate(value: string, utc = false): Date | null {\n if (!value) {\n return null;\n }\n if (ISO_8601_REGEXP.test(value)) {\n return new Date(utc ? value : `${value}T00:00:00`);\n }\n return invalidDate();\n}\n\nexport function deserializeDate(value: unknown): Date | null {\n // Numeric timestamp\n if (isNumber(value)) {\n return new Date(value);\n }\n\n // Empty value -> null\n if (!value) {\n return null;\n }\n\n // value is a Date instance, nothing to process\n if (isDate(value)) {\n return value;\n }\n\n if (isString(value)) {\n return parseDate(value);\n }\n\n return invalidDate();\n}\n\nexport function formatDate(date: Date): string {\n const year = date.getFullYear();\n const month = date.getMonth() + 1;\n const day = date.getDate();\n\n return `${year}-${padDigits(month)}-${padDigits(day)}`;\n}\n\nexport function formatUTCDate(date: Date): string {\n return date.toISOString().split('T')[0];\n}\n\nexport function addDays(date: Date, days: number): Date {\n const clonedDate = cloneDate(date);\n clonedDate.setDate(clonedDate.getDate() + days);\n return clonedDate;\n}\n\nexport function addMonths(date: Date, months: number): Date {\n const newDate = new Date();\n newDate.setFullYear(date.getFullYear(), date.getMonth() + months, date.getDate());\n newDate.setHours(0, 0, 0, 0);\n\n const newMonth = newDate.getMonth();\n const desiredMonth = positiveModulus(date.getMonth() + months, 12);\n\n if (newMonth !== desiredMonth) {\n newDate.setDate(0);\n }\n\n return newDate;\n}\n\nexport function addYears(date: Date, years: number): Date {\n return addMonths(date, years * 12);\n}\n\nexport function startOfDay(date: Date): Date {\n const clonedDate = cloneDate(date);\n clonedDate.setHours(0, 0, 0, 0);\n return clonedDate;\n}\n\nexport function endOfDay(date: Date): Date {\n const clonedDate = cloneDate(date);\n clonedDate.setHours(23, 59, 59, 999);\n return clonedDate;\n}\n\nexport function startOfWeek(weekDay: Date, offset: number): Date {\n return addDays(weekDay, -dayOfWeekWithOffset(weekDay, offset));\n}\n\nexport function endOfWeek(weekDay: Date, offset: number): Date {\n return addDays(weekDay, 6 - dayOfWeekWithOffset(weekDay, offset));\n}\n\nexport function startOfMonth(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth(), 1);\n}\n\nexport function endOfMonth(date: Date): Date {\n return new Date(date.getFullYear(), date.getMonth() + 1, 0);\n}\n\nexport function startOfYear(date: Date): Date {\n return new Date(date.getFullYear(), 0, 1);\n}\n\nexport function endOfYear(date: Date): Date {\n return new Date(date.getFullYear(), 12, 0);\n}\n\nexport function getDatesBetween(startDate: Date, endDate: Date): Date[] {\n if (!isValidDate(startDate) || !isValidDate(endDate)) {\n return [];\n }\n\n let current = startOfDay(startDate);\n const end = startOfDay(endDate);\n const result = [];\n\n while (current <= end) {\n result.push(new Date(current));\n current = addDays(current, 1);\n }\n\n return result;\n}\n\nexport function createNormalizedDate(year: number, month: number, date: number): Date {\n const daysInMonth = new Date(year, month + 1, 0).getDate();\n return new Date(year, month, Math.min(date, daysInMonth));\n}\n","import { isValidDate } from './date';\n\nexport function compare(value1: unknown, value2: unknown): number {\n if (Number.isFinite(value1) && Number.isFinite(value2)) {\n return Math.sign((value1 as number) - (value2 as number));\n }\n\n if (isValidDate(value1) && isValidDate(value2)) {\n return compare(value1.valueOf(), value2.valueOf());\n }\n\n return String(value1).localeCompare(String(value2));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;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I,EAAE,KAAK,EAAE,IAAI,CAAC,GAAG,CAAC,IAAI,EAAE,WAAW,CAAC,CAAC;AAC3D;;ACvLM,SAAU,OAAO,CAAC,MAAe,EAAE,MAAe,EAAA;AACtD,IAAA,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QACtD,OAAO,IAAI,CAAC,IAAI,CAAE,MAAiB,GAAI,MAAiB,CAAC;IAC3D;IAEA,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,WAAW,CAAC,MAAM,CAAC,EAAE;AAC9C,QAAA,OAAO,OAAO,CAAC,MAAM,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC;IACpD;AAEA,IAAA,OAAO,MAAM,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;AACrD;;ACZA;;AAEG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injectable, inject, input,
|
|
2
|
+
import { InjectionToken, Injectable, inject, input, ChangeDetectionStrategy, ViewEncapsulation, Component, ElementRef, Injector, ChangeDetectorRef, model, output, afterNextRender, Directive, computed, viewChild, linkedSignal, signal, ViewContainerRef, effect, booleanAttribute, forwardRef } from '@angular/core';
|
|
3
3
|
import { formatDate, parseDate, isValidDate, startOfMonth, addMonths, startOfWeek, endOfWeek, endOfMonth, getDatesBetween, addDays, compareDates, equalDates, addYears, clampDate, createNormalizedDate, positiveModulus, ComponentBaseWithDefaults, IdsSize, startOfYear, DirectiveBaseWithDefaults, getValidDateOrNull, deserializeDate } from '@i-cell/ids-angular/core';
|
|
4
4
|
import { Subject, startWith, map, Subscription, merge, filter } from 'rxjs';
|
|
5
5
|
import { IdsFormFieldComponent } from '@i-cell/ids-angular/forms';
|
|
@@ -67,10 +67,10 @@ class IdsDatepickerIntl {
|
|
|
67
67
|
_formatDate(date, dateFormat) {
|
|
68
68
|
return isValidDate(date) ? dateFormat.format(date) : null;
|
|
69
69
|
}
|
|
70
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
71
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsDatepickerIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
71
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsDatepickerIntl, providedIn: 'root' }); }
|
|
72
72
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsDatepickerIntl, decorators: [{
|
|
74
74
|
type: Injectable,
|
|
75
75
|
args: [{ providedIn: 'root' }]
|
|
76
76
|
}] });
|
|
@@ -79,13 +79,13 @@ class IdsDatepickerTriggerComponent {
|
|
|
79
79
|
constructor() {
|
|
80
80
|
this._parent = inject(IdsFormFieldComponent);
|
|
81
81
|
this._intl = inject(IdsDatepickerIntl);
|
|
82
|
-
this.datepicker = input.required({ alias: 'for' });
|
|
83
|
-
this.ariaLabel = input(null, { alias: 'aria-label' });
|
|
82
|
+
this.datepicker = input.required(...(ngDevMode ? [{ debugName: "datepicker", alias: 'for' }] : [{ alias: 'for' }]));
|
|
83
|
+
this.ariaLabel = input(null, ...(ngDevMode ? [{ debugName: "ariaLabel", alias: 'aria-label' }] : [{ alias: 'aria-label' }]));
|
|
84
84
|
}
|
|
85
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
86
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
85
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsDatepickerTriggerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
86
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.1.7", type: IdsDatepickerTriggerComponent, isStandalone: true, selector: "ids-datepicker-trigger", inputs: { datepicker: { classPropertyName: "datepicker", publicName: "for", isSignal: true, isRequired: true, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "aria-label", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button\n type=\"button\"\n idsIconButton\n aria-haspopup=\"true\"\n [size]=\"'dense'\"\n [variant]=\"'surface'\"\n [disabled]=\"_parent.disabled()\"\n [attr.aria-label]=\"ariaLabel() || _intl.triggerButtonLabel\"\n [attr.aria-expanded]=\"datepicker() ? datepicker().opened() : null\"\n (click)=\"datepicker().open()\"\n>\n <ids-icon aria-hidden=\"true\" fontIcon=\"calendar-days\" [attr.alt]=\"ariaLabel() || _intl.triggerButtonLabel\" />\n</button>\n", dependencies: [{ kind: "component", type: IdsIconComponent, selector: "ids-icon", inputs: ["size", "sizeCollection", "variant", "fontIcon", "svgIcon", "aria-hidden"] }, { kind: "component", type: IdsIconButtonComponent, selector: "button[idsIconButton], a[idsIconButton]", inputs: ["appearance", "size", "variant", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
87
87
|
}
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsDatepickerTriggerComponent, decorators: [{
|
|
89
89
|
type: Component,
|
|
90
90
|
args: [{ selector: 'ids-datepicker-trigger', imports: [
|
|
91
91
|
IdsIconComponent,
|
|
@@ -110,10 +110,10 @@ class IdsCalendarPage {
|
|
|
110
110
|
this._injector = inject(Injector);
|
|
111
111
|
this._cdRef = inject(ChangeDetectorRef);
|
|
112
112
|
this._intl = inject(IdsDatepickerIntl);
|
|
113
|
-
this.value = input(null);
|
|
114
|
-
this.focusedDate = model.required();
|
|
115
|
-
this.min = input(null);
|
|
116
|
-
this.max = input(null);
|
|
113
|
+
this.value = input(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
114
|
+
this.focusedDate = model.required(...(ngDevMode ? [{ debugName: "focusedDate" }] : []));
|
|
115
|
+
this.min = input(null, ...(ngDevMode ? [{ debugName: "min" }] : []));
|
|
116
|
+
this.max = input(null, ...(ngDevMode ? [{ debugName: "max" }] : []));
|
|
117
117
|
this.selected = output();
|
|
118
118
|
this._today = new Date();
|
|
119
119
|
toObservable(this.focusedDate).pipe(takeUntilDestroyed()).subscribe(() => this._moveFocusToCurrent());
|
|
@@ -130,10 +130,10 @@ class IdsCalendarPage {
|
|
|
130
130
|
}
|
|
131
131
|
}, { injector: this._injector });
|
|
132
132
|
}
|
|
133
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
134
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsCalendarPage, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
134
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.7", type: IdsCalendarPage, isStandalone: true, inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, focusedDate: { classPropertyName: "focusedDate", publicName: "focusedDate", isSignal: true, isRequired: true, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { focusedDate: "focusedDateChange", selected: "selected" }, ngImport: i0 }); }
|
|
135
135
|
}
|
|
136
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsCalendarPage, decorators: [{
|
|
137
137
|
type: Directive
|
|
138
138
|
}], ctorParameters: () => [] });
|
|
139
139
|
|
|
@@ -142,14 +142,14 @@ const daysPerWeek = 7;
|
|
|
142
142
|
class IdsDaySelectorComponent extends IdsCalendarPage {
|
|
143
143
|
constructor() {
|
|
144
144
|
super(...arguments);
|
|
145
|
-
this.headerLabel = computed(() => (this._intl.getDaySelectorHeaderLabel(this._currentMonth()) ?? ''));
|
|
146
|
-
this._currentMonth = computed(() => startOfMonth(this.focusedDate()));
|
|
147
|
-
this._previousMonth = computed(() => addMonths(this._currentMonth(), -1));
|
|
148
|
-
this._nextMonth = computed(() => addMonths(this._currentMonth(), 1));
|
|
149
|
-
this._gridStartDate = computed(() => startOfWeek(this._currentMonth(), firstDayOfWeekOffset));
|
|
150
|
-
this._gridEndDate = computed(() => endOfWeek(endOfMonth(this._currentMonth()), firstDayOfWeekOffset));
|
|
151
|
-
this._days = computed(() => getDatesBetween(this._gridStartDate(), this._gridEndDate()));
|
|
152
|
-
this._weekdayLabels = computed(() => this._days().slice(0, daysPerWeek).map((date) => this._intl.getWeekdayHeaderLabel(date) ?? ''));
|
|
145
|
+
this.headerLabel = computed(() => (this._intl.getDaySelectorHeaderLabel(this._currentMonth()) ?? ''), ...(ngDevMode ? [{ debugName: "headerLabel" }] : []));
|
|
146
|
+
this._currentMonth = computed(() => startOfMonth(this.focusedDate()), ...(ngDevMode ? [{ debugName: "_currentMonth" }] : []));
|
|
147
|
+
this._previousMonth = computed(() => addMonths(this._currentMonth(), -1), ...(ngDevMode ? [{ debugName: "_previousMonth" }] : []));
|
|
148
|
+
this._nextMonth = computed(() => addMonths(this._currentMonth(), 1), ...(ngDevMode ? [{ debugName: "_nextMonth" }] : []));
|
|
149
|
+
this._gridStartDate = computed(() => startOfWeek(this._currentMonth(), firstDayOfWeekOffset), ...(ngDevMode ? [{ debugName: "_gridStartDate" }] : []));
|
|
150
|
+
this._gridEndDate = computed(() => endOfWeek(endOfMonth(this._currentMonth()), firstDayOfWeekOffset), ...(ngDevMode ? [{ debugName: "_gridEndDate" }] : []));
|
|
151
|
+
this._days = computed(() => getDatesBetween(this._gridStartDate(), this._gridEndDate()), ...(ngDevMode ? [{ debugName: "_days" }] : []));
|
|
152
|
+
this._weekdayLabels = computed(() => this._days().slice(0, daysPerWeek).map((date) => this._intl.getWeekdayHeaderLabel(date) ?? ''), ...(ngDevMode ? [{ debugName: "_weekdayLabels" }] : []));
|
|
153
153
|
}
|
|
154
154
|
hasPreviousPage() {
|
|
155
155
|
const dayOnPrevPage = addDays(this._gridStartDate(), -1);
|
|
@@ -224,15 +224,15 @@ class IdsDaySelectorComponent extends IdsCalendarPage {
|
|
|
224
224
|
_hasShiftModifierKey(event) {
|
|
225
225
|
return event.shiftKey && !event.ctrlKey && !event.altKey && !event.metaKey;
|
|
226
226
|
}
|
|
227
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
228
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
227
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsDaySelectorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
228
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: IdsDaySelectorComponent, isStandalone: true, selector: "ids-day-selector", host: { listeners: { "keydown": "_handleKeydown($event)" }, classAttribute: "ids-day-selector" }, providers: [
|
|
229
229
|
{
|
|
230
230
|
provide: IdsCalendarPage,
|
|
231
231
|
useExisting: IdsDaySelectorComponent,
|
|
232
232
|
},
|
|
233
233
|
], usesInheritance: true, ngImport: i0, template: "<div class=\"ids-day-selector__days-grid ids-calendar-grid\">\n @for (label of _weekdayLabels(); track $index) {\n <div class=\"ids-calendar-cell\">\n <span class=\"ids-day-selector__header--label ids-calendar-weekday-label\">{{ label }}</span>\n </div>\n }\n @for (day of _days(); track $index) {\n @let dayLabel = day.getDate();\n @let isSelected = _isDateSelected(day);\n @let isFocused = _isDateFocused(day);\n @let isToday = _isDateToday(day);\n @let isDisabled = _isDateDisabled(day) || !_isDateInCurrentMonth(day);\n @let tabIndex = isFocused ? 0 : -1;\n @let ariaLabel = _intl.getDayAriaLabel(day);\n <div class=\"ids-calendar-cell\" [class.ids-calendar-cell-selected]=\"isSelected\">\n <button\n type=\"button\"\n class=\"ids-day-selector__day-button ids-calendar-button\"\n [attr.disabled]=\"isDisabled || null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-pressed]=\"isSelected\"\n [attr.aria-current]=\"isToday\"\n [tabIndex]=\"tabIndex\"\n [class.ids-calendar-button-today]=\"isToday\"\n [class.ids-calendar-button-selected]=\"isSelected\"\n [class.ids-calendar-button-focused]=\"isFocused\"\n (click)=\"_selectDate($event, day)\"\n >{{ dayLabel }}</button>\n </div>\n }\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
234
234
|
}
|
|
235
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
235
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsDaySelectorComponent, decorators: [{
|
|
236
236
|
type: Component,
|
|
237
237
|
args: [{ selector: 'ids-day-selector', imports: [], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
238
238
|
{
|
|
@@ -250,14 +250,14 @@ const lastMonth = 11;
|
|
|
250
250
|
class IdsMonthSelectorComponent extends IdsCalendarPage {
|
|
251
251
|
constructor() {
|
|
252
252
|
super(...arguments);
|
|
253
|
-
this._focusedYear = computed(() => this.focusedDate().getFullYear());
|
|
253
|
+
this._focusedYear = computed(() => this.focusedDate().getFullYear(), ...(ngDevMode ? [{ debugName: "_focusedYear" }] : []));
|
|
254
254
|
this._monthLabels = toSignal(this._intl.changes.pipe(startWith(null), map(() => {
|
|
255
255
|
const currentYear = new Date().getFullYear();
|
|
256
256
|
const monthLabels = Array.from({ length: 12 })
|
|
257
257
|
.map((nil, month) => this._intl.getMonthLabel(createNormalizedDate(currentYear, month, 1)) ?? '');
|
|
258
258
|
return monthLabels;
|
|
259
259
|
})));
|
|
260
|
-
this.headerLabel = computed(() => String(this._focusedYear()));
|
|
260
|
+
this.headerLabel = computed(() => String(this._focusedYear()), ...(ngDevMode ? [{ debugName: "headerLabel" }] : []));
|
|
261
261
|
}
|
|
262
262
|
hasPreviousPage() {
|
|
263
263
|
const min = this.min();
|
|
@@ -341,15 +341,15 @@ class IdsMonthSelectorComponent extends IdsCalendarPage {
|
|
|
341
341
|
}
|
|
342
342
|
this.focusedDate.set(clampDate(focusedDate, this.min(), this.max()));
|
|
343
343
|
}
|
|
344
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
345
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
344
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsMonthSelectorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
345
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: IdsMonthSelectorComponent, isStandalone: true, selector: "ids-month-selector", host: { listeners: { "keydown": "_handleKeydown($event)" }, classAttribute: "ids-month-selector" }, providers: [
|
|
346
346
|
{
|
|
347
347
|
provide: IdsCalendarPage,
|
|
348
348
|
useExisting: IdsMonthSelectorComponent,
|
|
349
349
|
},
|
|
350
350
|
], usesInheritance: true, ngImport: i0, template: "<div class=\"ids-month-selector__months-grid ids-calendar-grid\">\n @for (monthLabel of _monthLabels(); track $index; let month = $index) {\n @let isSelected = _isMonthSelected(month);\n @let isFocused = _isMonthFocused(month);\n @let isCurrentMonth = _isCurrentMonth(month);\n @let tabIndex = isFocused ? 0 : -1;\n @let isDisabled = _isMonthDisabled(month);\n @let ariaLabel = _intl.getMonthAriaLabel(_getMonthAsDate(month));\n <div class=\"ids-calendar-cell\">\n <button\n type=\"button\"\n class=\"ids-month-selector__month-button ids-calendar-button\"\n [attr.disabled]=\"isDisabled || null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-pressed]=\"isSelected\"\n [attr.aria-current]=\"isCurrentMonth\"\n [tabIndex]=\"tabIndex\"\n [class.ids-month-selector__month-button--current-month]=\"isCurrentMonth\"\n [class.ids-calendar-button-selected]=\"isSelected\"\n [class.ids-calendar-button-focused]=\"isFocused\"\n (click)=\"_selectMonth($event, month)\"\n >{{ monthLabel }}</button>\n </div>\n }\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
351
351
|
}
|
|
352
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
352
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsMonthSelectorComponent, decorators: [{
|
|
353
353
|
type: Component,
|
|
354
354
|
args: [{ selector: 'ids-month-selector', imports: [], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
355
355
|
{
|
|
@@ -372,13 +372,13 @@ class IdsYearSelectorComponent extends IdsCalendarPage {
|
|
|
372
372
|
const firstYearOffset = this._getFirstYearOffset(focusedYear, this.min()?.getFullYear(), this.max()?.getFullYear());
|
|
373
373
|
const firstYearOnPage = focusedYear - firstYearOffset;
|
|
374
374
|
return firstYearOnPage;
|
|
375
|
-
});
|
|
375
|
+
}, ...(ngDevMode ? [{ debugName: "_firstYearOnPage" }] : []));
|
|
376
376
|
this._years = computed(() => {
|
|
377
377
|
const firstYearOnPage = this._firstYearOnPage();
|
|
378
378
|
const years = Array.from({ length: yearsPerPage }).map((_nil, index) => firstYearOnPage + index);
|
|
379
379
|
return years;
|
|
380
|
-
});
|
|
381
|
-
this.headerLabel = computed(() => `${this._years()[0]} - ${this._years().at(-1)}
|
|
380
|
+
}, ...(ngDevMode ? [{ debugName: "_years" }] : []));
|
|
381
|
+
this.headerLabel = computed(() => `${this._years()[0]} - ${this._years().at(-1)}`, ...(ngDevMode ? [{ debugName: "headerLabel" }] : []));
|
|
382
382
|
}
|
|
383
383
|
hasPreviousPage() {
|
|
384
384
|
const min = Number.isFinite(this.min()?.getFullYear()) ? this.min().getFullYear() : Number.POSITIVE_INFINITY;
|
|
@@ -457,15 +457,15 @@ class IdsYearSelectorComponent extends IdsCalendarPage {
|
|
|
457
457
|
const minMaxOffset = maxYear - yearsPerPage + 1 || minYear || 0;
|
|
458
458
|
return positiveModulus(focusedYear - minMaxOffset, yearsPerPage);
|
|
459
459
|
}
|
|
460
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
461
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsYearSelectorComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
461
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: IdsYearSelectorComponent, isStandalone: true, selector: "ids-year-selector", host: { listeners: { "keydown": "_handleKeydown($event)" }, classAttribute: "ids-year-selector" }, providers: [
|
|
462
462
|
{
|
|
463
463
|
provide: IdsCalendarPage,
|
|
464
464
|
useExisting: IdsYearSelectorComponent,
|
|
465
465
|
},
|
|
466
466
|
], usesInheritance: true, ngImport: i0, template: "<div class=\"ids-year-selector__years-grid ids-calendar-grid\">\n @for (year of _years(); track $index) {\n @let isSelected = _isYearSelected(year);\n @let isFocused = _isYearFocused(year);\n @let isCurrentYear = _isCurrentYear(year);\n @let tabIndex = isFocused ? 0 : -1;\n @let isDisabled = _isYearDisabled(year);\n <div class=\"ids-calendar-cell\">\n <button\n type=\"button\"\n class=\"ids-year-selector__year-button ids-calendar-button\"\n [attr.disabled]=\"isDisabled || null\"\n [attr.aria-pressed]=\"isSelected\"\n [attr.aria-current]=\"isCurrentYear\"\n [tabIndex]=\"tabIndex\"\n [class.ids-year-selector__year-button--current-year]=\"isCurrentYear\"\n [class.ids-calendar-button-selected]=\"isSelected\"\n [class.ids-calendar-button-focused]=\"isFocused\"\n (click)=\"_selectYear($event, year)\"\n >{{ year }}</button>\n </div>\n }\n</div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
467
467
|
}
|
|
468
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
468
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsYearSelectorComponent, decorators: [{
|
|
469
469
|
type: Component,
|
|
470
470
|
args: [{ selector: 'ids-year-selector', imports: [], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
471
471
|
{
|
|
@@ -484,19 +484,19 @@ class IdsCalendarComponent extends ComponentBaseWithDefaults {
|
|
|
484
484
|
this._defaultConfig = {};
|
|
485
485
|
this._cdRef = inject(ChangeDetectorRef);
|
|
486
486
|
this._intl = inject(IdsDatepickerIntl);
|
|
487
|
-
this.value = input(null);
|
|
488
|
-
this.size = input.required();
|
|
489
|
-
this.view = input.required();
|
|
490
|
-
this.min = input(null);
|
|
491
|
-
this.max = input(null);
|
|
487
|
+
this.value = input(null, ...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
488
|
+
this.size = input.required(...(ngDevMode ? [{ debugName: "size" }] : []));
|
|
489
|
+
this.view = input.required(...(ngDevMode ? [{ debugName: "view" }] : []));
|
|
490
|
+
this.min = input(null, ...(ngDevMode ? [{ debugName: "min" }] : []));
|
|
491
|
+
this.max = input(null, ...(ngDevMode ? [{ debugName: "max" }] : []));
|
|
492
492
|
this.selected = output();
|
|
493
493
|
this.monthSelected = output();
|
|
494
494
|
this.yearSelected = output();
|
|
495
|
-
this._calendarPage = viewChild(IdsCalendarPage);
|
|
495
|
+
this._calendarPage = viewChild(IdsCalendarPage, ...(ngDevMode ? [{ debugName: "_calendarPage" }] : []));
|
|
496
496
|
this._view = linkedSignal(() => this.view());
|
|
497
|
-
this._hostClasses = computed(() => this._getHostClasses([this.size()]));
|
|
498
|
-
this._headerButtonSize = computed(() => (this.size() === IdsSize.DENSE ? IdsSize.COMPACT : this.size()));
|
|
499
|
-
this._headerLabel = computed(() => this._calendarPage()?.headerLabel() ?? '');
|
|
497
|
+
this._hostClasses = computed(() => this._getHostClasses([this.size()]), ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
498
|
+
this._headerButtonSize = computed(() => (this.size() === IdsSize.DENSE ? IdsSize.COMPACT : this.size()), ...(ngDevMode ? [{ debugName: "_headerButtonSize" }] : []));
|
|
499
|
+
this._headerLabel = computed(() => this._calendarPage()?.headerLabel() ?? '', ...(ngDevMode ? [{ debugName: "_headerLabel" }] : []));
|
|
500
500
|
this._prevPageLabel = computed(() => {
|
|
501
501
|
switch (this._view()) {
|
|
502
502
|
case IdsDatepickerView.DAY:
|
|
@@ -506,7 +506,7 @@ class IdsCalendarComponent extends ComponentBaseWithDefaults {
|
|
|
506
506
|
case IdsDatepickerView.YEAR:
|
|
507
507
|
return this._intl.prevYearsPageLabel;
|
|
508
508
|
}
|
|
509
|
-
});
|
|
509
|
+
}, ...(ngDevMode ? [{ debugName: "_prevPageLabel" }] : []));
|
|
510
510
|
this._nextPageLabel = computed(() => {
|
|
511
511
|
switch (this._view()) {
|
|
512
512
|
case IdsDatepickerView.DAY:
|
|
@@ -516,8 +516,8 @@ class IdsCalendarComponent extends ComponentBaseWithDefaults {
|
|
|
516
516
|
case IdsDatepickerView.YEAR:
|
|
517
517
|
return this._intl.nextYearsPageLabel;
|
|
518
518
|
}
|
|
519
|
-
});
|
|
520
|
-
this._switchViewLabel = computed(() => (this._view() === IdsDatepickerView.DAY ? this._intl.switchToYearSelectorLabel : this._intl.switchToDaySelectorLabel));
|
|
519
|
+
}, ...(ngDevMode ? [{ debugName: "_nextPageLabel" }] : []));
|
|
520
|
+
this._switchViewLabel = computed(() => (this._view() === IdsDatepickerView.DAY ? this._intl.switchToYearSelectorLabel : this._intl.switchToDaySelectorLabel), ...(ngDevMode ? [{ debugName: "_switchViewLabel" }] : []));
|
|
521
521
|
this._focusedDate = new Date();
|
|
522
522
|
}
|
|
523
523
|
get _hostName() {
|
|
@@ -568,10 +568,10 @@ class IdsCalendarComponent extends ComponentBaseWithDefaults {
|
|
|
568
568
|
this._focusedDate = clampDate(safeValue, this.min(), this.max());
|
|
569
569
|
this._cdRef.markForCheck();
|
|
570
570
|
}
|
|
571
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
572
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
571
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsCalendarComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
572
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.7", type: IdsCalendarComponent, isStandalone: true, selector: "ids-calendar", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: true, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: true, isRequired: true, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selected: "selected", monthSelected: "monthSelected", yearSelected: "yearSelected" }, host: { classAttribute: "ids-calendar-surface" }, viewQueries: [{ propertyName: "_calendarPage", first: true, predicate: IdsCalendarPage, descendants: true, isSignal: true }], usesInheritance: true, hostDirectives: [{ directive: i1.CdkTrapFocus }], ngImport: i0, template: "<div class=\"ids-calendar__header\">\n <button\n type=\"button\"\n idsIconButton\n [size]=\"_headerButtonSize()\"\n [variant]=\"'surface'\"\n [appearance]=\"'standard'\"\n [disabled]=\"!_hasPrevPage()\"\n [attr.aria-label]=\"_prevPageLabel()\"\n (click)=\"_gotoPrevPage()\"\n >\n <ids-icon aria-hidden=\"true\" alt=\"\" fontIcon=\"chevron-left\" [sizeCollection]=\"'big'\" />\n </button>\n <button\n type=\"button\"\n idsButton\n [size]=\"_headerButtonSize()\"\n [variant]=\"'surface'\"\n [appearance]=\"'text'\"\n [attr.aria-label]=\"_switchViewLabel()\"\n [attr.aria-description]=\"_headerLabel()\"\n (click)=\"_switchView()\"\n >\n {{ _headerLabel() }}\n <ids-icon icon-trailing aria-hidden=\"true\" alt=\"\" fontIcon=\"chevron-down\" />\n </button>\n <button\n type=\"button\"\n idsIconButton\n [size]=\"_headerButtonSize()\"\n [variant]=\"'surface'\"\n [appearance]=\"'standard'\"\n [disabled]=\"!_hasNextPage()\"\n [attr.aria-label]=\"_nextPageLabel()\"\n (click)=\"_gotoNextPage()\"\n >\n <ids-icon aria-hidden=\"true\" alt=\"\" fontIcon=\"chevron-right\" />\n </button>\n</div>\n@switch (_view()) {\n @case ('day') {\n <ids-day-selector [value]=\"value()\" [min]=\"min()\" [max]=\"max()\" [(focusedDate)]=\"_focusedDate\" (selected)=\"_selectDate($event)\" />\n }\n @case ('month') {\n <ids-month-selector [value]=\"value()\" [min]=\"min()\" [max]=\"max()\" [(focusedDate)]=\"_focusedDate\" (selected)=\"_selectMonth($event)\" />\n }\n @case ('year') {\n <ids-year-selector [value]=\"value()\" [min]=\"min()\" [max]=\"max()\" [(focusedDate)]=\"_focusedDate\" (selected)=\"_selectYear($event)\" />\n }\n}\n", dependencies: [{ kind: "component", type: IdsButtonComponent, selector: "button[idsButton], a[idsButton]", inputs: ["appearance", "size", "variant", "disabled"] }, { kind: "component", type: IdsIconComponent, selector: "ids-icon", inputs: ["size", "sizeCollection", "variant", "fontIcon", "svgIcon", "aria-hidden"] }, { kind: "component", type: IdsIconButtonComponent, selector: "button[idsIconButton], a[idsIconButton]", inputs: ["appearance", "size", "variant", "disabled"] }, { kind: "component", type: IdsDaySelectorComponent, selector: "ids-day-selector" }, { kind: "component", type: IdsMonthSelectorComponent, selector: "ids-month-selector" }, { kind: "component", type: IdsYearSelectorComponent, selector: "ids-year-selector" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
573
573
|
}
|
|
574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsCalendarComponent, decorators: [{
|
|
575
575
|
type: Component,
|
|
576
576
|
args: [{ selector: 'ids-calendar', imports: [
|
|
577
577
|
IdsButtonComponent,
|
|
@@ -619,17 +619,17 @@ class IdsDatepickerDirective extends DirectiveBaseWithDefaults {
|
|
|
619
619
|
constructor() {
|
|
620
620
|
super(...arguments);
|
|
621
621
|
this._defaultConfig = this._getDefaultConfig(defaultConfig, IDS_DATEPICKER_DEFAULT_CONFIG);
|
|
622
|
-
this._hostClasses = signal('');
|
|
622
|
+
this._hostClasses = signal('', ...(ngDevMode ? [{ debugName: "_hostClasses" }] : []));
|
|
623
623
|
this._viewContainerRef = inject(ViewContainerRef);
|
|
624
624
|
this._elementRef = inject(ElementRef);
|
|
625
625
|
this._parent = inject(IdsFormFieldComponent);
|
|
626
626
|
this._overlay = inject(Overlay);
|
|
627
627
|
this._injector = inject(Injector);
|
|
628
|
-
this.formatter = input(inject(IDS_DATE_FORMATTER));
|
|
629
|
-
this.parser = input(inject(IDS_DATE_PARSER));
|
|
630
|
-
this.view = input(this._defaultConfig.view);
|
|
631
|
-
this.minDate = input(null, { transform: (value) => getValidDateOrNull(deserializeDate(value)) });
|
|
632
|
-
this.maxDate = input(null, { transform: (value) => getValidDateOrNull(deserializeDate(value)) });
|
|
628
|
+
this.formatter = input(inject(IDS_DATE_FORMATTER), ...(ngDevMode ? [{ debugName: "formatter" }] : []));
|
|
629
|
+
this.parser = input(inject(IDS_DATE_PARSER), ...(ngDevMode ? [{ debugName: "parser" }] : []));
|
|
630
|
+
this.view = input(this._defaultConfig.view, ...(ngDevMode ? [{ debugName: "view" }] : []));
|
|
631
|
+
this.minDate = input(null, ...(ngDevMode ? [{ debugName: "minDate", transform: (value) => getValidDateOrNull(deserializeDate(value)) }] : [{ transform: (value) => getValidDateOrNull(deserializeDate(value)) }]));
|
|
632
|
+
this.maxDate = input(null, ...(ngDevMode ? [{ debugName: "maxDate", transform: (value) => getValidDateOrNull(deserializeDate(value)) }] : [{ transform: (value) => getValidDateOrNull(deserializeDate(value)) }]));
|
|
633
633
|
this._inputChanges = effect(() => {
|
|
634
634
|
const min = this.minDate();
|
|
635
635
|
const max = this.maxDate();
|
|
@@ -651,9 +651,9 @@ class IdsDatepickerDirective extends DirectiveBaseWithDefaults {
|
|
|
651
651
|
if (size !== calendar.size()) {
|
|
652
652
|
this._componentRef?.setInput('size', size);
|
|
653
653
|
}
|
|
654
|
-
});
|
|
655
|
-
this.openedInput = input(false, { transform: booleanAttribute, alias: 'opened' });
|
|
656
|
-
this._opened = signal(this.openedInput() ?? false);
|
|
654
|
+
}, ...(ngDevMode ? [{ debugName: "_inputChanges" }] : []));
|
|
655
|
+
this.openedInput = input(false, ...(ngDevMode ? [{ debugName: "openedInput", transform: booleanAttribute, alias: 'opened' }] : [{ transform: booleanAttribute, alias: 'opened' }]));
|
|
656
|
+
this._opened = signal(this.openedInput() ?? false, ...(ngDevMode ? [{ debugName: "_opened" }] : []));
|
|
657
657
|
this.opened = this._opened.asReadonly();
|
|
658
658
|
this.monthSelected = output();
|
|
659
659
|
this.yearSelected = output();
|
|
@@ -664,7 +664,7 @@ class IdsDatepickerDirective extends DirectiveBaseWithDefaults {
|
|
|
664
664
|
this._componentRef = null;
|
|
665
665
|
this._scrollStrategy = this._overlay.scrollStrategies.reposition();
|
|
666
666
|
this._overlayCloseSub = Subscription.EMPTY;
|
|
667
|
-
this._isValid = signal(false);
|
|
667
|
+
this._isValid = signal(false, ...(ngDevMode ? [{ debugName: "_isValid" }] : []));
|
|
668
668
|
this._dateFormatValidator = () => (this._isValid() ? null : { idsDateFormat: true });
|
|
669
669
|
this._minValidator = () => {
|
|
670
670
|
const current = getValidDateOrNull(deserializeDate(this.value));
|
|
@@ -812,8 +812,8 @@ class IdsDatepickerDirective extends DirectiveBaseWithDefaults {
|
|
|
812
812
|
'PageDown',
|
|
813
813
|
].includes(event.code)));
|
|
814
814
|
}
|
|
815
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
816
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
815
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsDatepickerDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
|
|
816
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.1.7", type: IdsDatepickerDirective, isStandalone: true, selector: "input[idsDatepicker]", inputs: { formatter: { classPropertyName: "formatter", publicName: "formatter", isSignal: true, isRequired: false, transformFunction: null }, parser: { classPropertyName: "parser", publicName: "parser", isSignal: true, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", 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 }, openedInput: { classPropertyName: "openedInput", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { monthSelected: "monthSelected", yearSelected: "yearSelected" }, host: { listeners: { "input": "_handleInput($event.target.value)", "blur": "_handleBlur()", "keydown": "_handleKeydown($event)" }, properties: { "disabled": "disabled" } }, providers: [
|
|
817
817
|
{
|
|
818
818
|
provide: NG_VALUE_ACCESSOR,
|
|
819
819
|
useExisting: forwardRef(() => IdsDatepickerDirective),
|
|
@@ -826,7 +826,7 @@ class IdsDatepickerDirective extends DirectiveBaseWithDefaults {
|
|
|
826
826
|
},
|
|
827
827
|
], exportAs: ["idsDatepicker"], usesInheritance: true, usesOnChanges: true, ngImport: i0 }); }
|
|
828
828
|
}
|
|
829
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
829
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.7", ngImport: i0, type: IdsDatepickerDirective, decorators: [{
|
|
830
830
|
type: Directive,
|
|
831
831
|
args: [{
|
|
832
832
|
selector: 'input[idsDatepicker]',
|