@koobiq/components 17.0.0-rc.10 → 17.0.0-rc.11
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/alert/public-api.d.ts +1 -1
- package/autocomplete/public-api.d.ts +2 -2
- package/badge/public-api.d.ts +1 -1
- package/button/button.component.d.ts +2 -2
- package/button/public-api.d.ts +1 -1
- package/button-toggle/public-api.d.ts +1 -1
- package/card/card.component.d.ts +1 -1
- package/card/public-api.d.ts +1 -1
- package/code-block/code-block.component.d.ts +2 -2
- package/code-block/public-api.d.ts +1 -1
- package/core/animation/index.d.ts +1 -1
- package/core/common-behaviors/index.d.ts +3 -3
- package/core/datetime/index.d.ts +1 -1
- package/core/formatters/index.d.ts +1 -1
- package/core/forms/index.d.ts +1 -1
- package/core/locales/index.d.ts +1 -1
- package/core/option/index.d.ts +2 -2
- package/core/option/optgroup.scss +2 -2
- package/core/pop-up/pop-up-trigger.d.ts +1 -1
- package/core/public-api.d.ts +3 -3
- package/core/select/constants.d.ts +1 -1
- package/core/select/index.d.ts +3 -3
- package/core/styles/common/_list.scss +23 -62
- package/core/styles/theming/_components-theming.scss +331 -331
- package/core/styles/theming/_theming.scss +3 -3
- package/core/styles/typography/_typography.scss +7 -7
- package/core/styles/visual/_layout.scss +1 -1
- package/core/utils/data-size/index.d.ts +1 -1
- package/core/utils/public-api.d.ts +1 -1
- package/datepicker/datepicker-input.directive.d.ts +1 -0
- package/datepicker/public-api.d.ts +4 -4
- package/dl/public-api.d.ts +1 -1
- package/dropdown/_dropdown-theme.scss +4 -1
- package/dropdown/dropdown-content.directive.d.ts +1 -1
- package/dropdown/dropdown-item.component.d.ts +1 -1
- package/dropdown/dropdown-item.scss +9 -6
- package/dropdown/dropdown.component.d.ts +1 -1
- package/dropdown/public-api.d.ts +5 -5
- package/ellipsis-center/ellipsis-center.directive.d.ts +1 -1
- package/empty-state/public-api.d.ts +1 -1
- package/esm2022/alert/alert.component.mjs +3 -3
- package/esm2022/alert/alert.module.mjs +1 -1
- package/esm2022/alert/public-api.mjs +2 -2
- package/esm2022/autocomplete/autocomplete-origin.directive.mjs +1 -1
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +23 -31
- package/esm2022/autocomplete/autocomplete.component.mjs +14 -9
- package/esm2022/autocomplete/autocomplete.module.mjs +3 -3
- package/esm2022/autocomplete/public-api.mjs +3 -3
- package/esm2022/badge/badge.component.mjs +6 -4
- package/esm2022/badge/badge.module.mjs +1 -1
- package/esm2022/badge/public-api.mjs +2 -2
- package/esm2022/button/button.component.mjs +12 -9
- package/esm2022/button/button.module.mjs +1 -1
- package/esm2022/button/public-api.mjs +2 -2
- package/esm2022/button-toggle/button-toggle.component.mjs +22 -14
- package/esm2022/button-toggle/button-toggle.module.mjs +1 -1
- package/esm2022/button-toggle/public-api.mjs +2 -2
- package/esm2022/card/card.component.mjs +2 -2
- package/esm2022/card/card.module.mjs +1 -1
- package/esm2022/card/public-api.mjs +2 -2
- package/esm2022/checkbox/checkbox-config.mjs +1 -1
- package/esm2022/checkbox/checkbox-module.mjs +1 -1
- package/esm2022/checkbox/checkbox-required-validator.mjs +1 -1
- package/esm2022/checkbox/checkbox.mjs +6 -6
- package/esm2022/checkbox/public-api.mjs +1 -1
- package/esm2022/code-block/actionbar.component.mjs +4 -6
- package/esm2022/code-block/code-block.component.mjs +16 -13
- package/esm2022/code-block/code-block.module.mjs +9 -5
- package/esm2022/code-block/public-api.mjs +2 -2
- package/esm2022/core/animation/fade-animations.mjs +1 -1
- package/esm2022/core/animation/index.mjs +2 -2
- package/esm2022/core/animation/select-animations.mjs +2 -2
- package/esm2022/core/common-behaviors/color.mjs +4 -2
- package/esm2022/core/common-behaviors/common-module.mjs +2 -2
- package/esm2022/core/common-behaviors/constructor.mjs +1 -1
- package/esm2022/core/common-behaviors/disabled.mjs +1 -1
- package/esm2022/core/common-behaviors/error-state.mjs +1 -1
- package/esm2022/core/common-behaviors/index.mjs +4 -4
- package/esm2022/core/common-behaviors/tabindex.mjs +1 -1
- package/esm2022/core/datetime/date-adapter.mjs +1 -1
- package/esm2022/core/datetime/date-formats.mjs +1 -1
- package/esm2022/core/datetime/index.mjs +2 -2
- package/esm2022/core/error/error-options.mjs +1 -1
- package/esm2022/core/form-field/form-field-ref.mjs +1 -1
- package/esm2022/core/formatters/date/formatter.mjs +1 -1
- package/esm2022/core/formatters/date/formatter.pipe.mjs +1 -1
- package/esm2022/core/formatters/index.mjs +2 -2
- package/esm2022/core/formatters/number/formatter.mjs +19 -20
- package/esm2022/core/forms/forms-module.mjs +1 -1
- package/esm2022/core/forms/forms.directive.mjs +1 -1
- package/esm2022/core/forms/index.mjs +2 -2
- package/esm2022/core/highlight/highlight.pipe.mjs +1 -1
- package/esm2022/core/highlight/index.mjs +1 -1
- package/esm2022/core/label/label-options.mjs +1 -1
- package/esm2022/core/line/line.mjs +2 -2
- package/esm2022/core/locales/en-US.mjs +1 -1
- package/esm2022/core/locales/es-LA.mjs +1 -1
- package/esm2022/core/locales/fa-IR.mjs +1 -1
- package/esm2022/core/locales/index.mjs +2 -2
- package/esm2022/core/locales/locale-service.mjs +8 -5
- package/esm2022/core/locales/locale-service.module.mjs +1 -1
- package/esm2022/core/locales/pt-BR.mjs +1 -1
- package/esm2022/core/locales/ru-RU.mjs +3 -3
- package/esm2022/core/locales/zh-CN.mjs +1 -1
- package/esm2022/core/option/action.mjs +20 -12
- package/esm2022/core/option/index.mjs +3 -3
- package/esm2022/core/option/optgroup.mjs +4 -4
- package/esm2022/core/option/option-module.mjs +1 -1
- package/esm2022/core/option/option.mjs +13 -7
- package/esm2022/core/overlay/overlay-position-map.mjs +1 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +15 -23
- package/esm2022/core/pop-up/pop-up.mjs +1 -1
- package/esm2022/core/public-api.mjs +4 -4
- package/esm2022/core/select/common.mjs +2 -2
- package/esm2022/core/select/constants.mjs +1 -1
- package/esm2022/core/select/index.mjs +4 -4
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +1 -1
- package/esm2022/core/services/measure-scrollbar.service.mjs +1 -1
- package/esm2022/core/services/theme.service.mjs +2 -4
- package/esm2022/core/title/title-text-ref.mjs +1 -1
- package/esm2022/core/utils/data-size/config.mjs +1 -1
- package/esm2022/core/utils/data-size/data-size.pipe.mjs +2 -3
- package/esm2022/core/utils/data-size/index.mjs +2 -2
- package/esm2022/core/utils/data-size/size.mjs +3 -6
- package/esm2022/core/utils/public-api.mjs +2 -2
- package/esm2022/core/utils/utils.mjs +4 -2
- package/esm2022/core/validation/validation.mjs +4 -2
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-body.component.mjs +3 -3
- package/esm2022/datepicker/calendar-header.component.mjs +8 -7
- package/esm2022/datepicker/calendar.component.mjs +6 -6
- package/esm2022/datepicker/datepicker-animations.mjs +1 -1
- package/esm2022/datepicker/datepicker-errors.mjs +1 -1
- package/esm2022/datepicker/datepicker-input.directive.mjs +42 -34
- package/esm2022/datepicker/datepicker-intl.mjs +1 -1
- package/esm2022/datepicker/datepicker-module.mjs +2 -2
- package/esm2022/datepicker/datepicker-toggle.component.mjs +11 -10
- package/esm2022/datepicker/datepicker.component.mjs +15 -15
- package/esm2022/datepicker/month-view.component.mjs +14 -13
- package/esm2022/datepicker/public-api.mjs +5 -5
- package/esm2022/divider/divider.component.mjs +1 -1
- package/esm2022/divider/divider.module.mjs +1 -1
- package/esm2022/dl/dl.component.mjs +1 -1
- package/esm2022/dl/dl.module.mjs +2 -2
- package/esm2022/dl/public-api.mjs +2 -2
- package/esm2022/dropdown/dropdown-animations.mjs +2 -2
- package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
- package/esm2022/dropdown/dropdown-item.component.mjs +5 -5
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +22 -28
- package/esm2022/dropdown/dropdown.component.mjs +10 -18
- package/esm2022/dropdown/dropdown.module.mjs +1 -1
- package/esm2022/dropdown/dropdown.types.mjs +1 -1
- package/esm2022/dropdown/public-api.mjs +6 -6
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +3 -3
- package/esm2022/empty-state/empty-state.component.mjs +1 -1
- package/esm2022/empty-state/empty-state.module.mjs +2 -2
- package/esm2022/empty-state/public-api.mjs +2 -2
- package/esm2022/file-upload/file-drop.mjs +2 -2
- package/esm2022/file-upload/file-upload.mjs +1 -1
- package/esm2022/file-upload/file-upload.module.mjs +2 -2
- package/esm2022/file-upload/index.mjs +1 -1
- package/esm2022/file-upload/multiple-file-upload.component.mjs +16 -12
- package/esm2022/file-upload/public-api.mjs +2 -2
- package/esm2022/file-upload/single-file-upload.component.mjs +14 -10
- package/esm2022/form-field/cleaner.mjs +13 -3
- package/esm2022/form-field/form-field-control.mjs +1 -1
- package/esm2022/form-field/form-field-errors.mjs +1 -1
- package/esm2022/form-field/form-field.mjs +8 -13
- package/esm2022/form-field/form-field.module.mjs +1 -1
- package/esm2022/form-field/hint.mjs +2 -2
- package/esm2022/form-field/password-hint.mjs +13 -13
- package/esm2022/form-field/password-toggle.mjs +4 -7
- package/esm2022/form-field/prefix.mjs +1 -1
- package/esm2022/form-field/public-api.mjs +4 -4
- package/esm2022/form-field/stepper.mjs +33 -29
- package/esm2022/form-field/suffix.mjs +1 -1
- package/esm2022/form-field/validate.directive.mjs +6 -5
- package/esm2022/icon/icon-button.component.mjs +2 -2
- package/esm2022/icon/icon-item.component.mjs +1 -1
- package/esm2022/icon/icon.component.mjs +3 -4
- package/esm2022/icon/icon.module.mjs +1 -1
- package/esm2022/icon/public-api.mjs +3 -3
- package/esm2022/input/input-number-validators.mjs +1 -1
- package/esm2022/input/input-number.mjs +34 -35
- package/esm2022/input/input-password.mjs +13 -7
- package/esm2022/input/input-value-accessor.mjs +1 -1
- package/esm2022/input/input.mjs +13 -7
- package/esm2022/input/input.module.mjs +1 -1
- package/esm2022/input/public-api.mjs +3 -3
- package/esm2022/link/link.component.mjs +2 -2
- package/esm2022/link/link.module.mjs +1 -1
- package/esm2022/link/public-api.mjs +2 -2
- package/esm2022/list/list-selection.component.mjs +34 -36
- package/esm2022/list/list.component.mjs +3 -3
- package/esm2022/list/list.module.mjs +2 -2
- package/esm2022/list/public-api.mjs +3 -3
- package/esm2022/loader-overlay/loader-overlay.component.mjs +3 -3
- package/esm2022/loader-overlay/loader-overlay.module.mjs +1 -1
- package/esm2022/loader-overlay/public-api.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +20 -6
- package/esm2022/markdown/markdown.module.mjs +1 -1
- package/esm2022/markdown/markdown.service.mjs +1 -1
- package/esm2022/modal/css-unit.pipe.mjs +1 -1
- package/esm2022/modal/modal-control.service.mjs +3 -2
- package/esm2022/modal/modal-ref.class.mjs +1 -1
- package/esm2022/modal/modal-util.mjs +1 -1
- package/esm2022/modal/modal.component.mjs +50 -27
- package/esm2022/modal/modal.directive.mjs +27 -11
- package/esm2022/modal/modal.module.mjs +2 -2
- package/esm2022/modal/modal.service.mjs +3 -2
- package/esm2022/modal/modal.type.mjs +1 -1
- package/esm2022/modal/public-api.mjs +3 -3
- package/esm2022/navbar/index.mjs +1 -1
- package/esm2022/navbar/navbar-item.component.mjs +37 -28
- package/esm2022/navbar/navbar.component.mjs +19 -28
- package/esm2022/navbar/navbar.module.mjs +2 -2
- package/esm2022/navbar/public-api.mjs +3 -3
- package/esm2022/navbar/vertical-navbar.component.mjs +17 -18
- package/esm2022/popover/popover-animations.mjs +1 -1
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +5 -5
- package/esm2022/popover/popover.module.mjs +1 -1
- package/esm2022/popover/public-api.mjs +3 -3
- package/esm2022/progress-bar/progress-bar.component.mjs +4 -4
- package/esm2022/progress-bar/progress-bar.module.mjs +2 -2
- package/esm2022/progress-bar/public-api.mjs +2 -2
- package/esm2022/progress-spinner/progress-spinner.component.mjs +4 -4
- package/esm2022/progress-spinner/progress-spinner.module.mjs +1 -1
- package/esm2022/progress-spinner/public-api.mjs +2 -2
- package/esm2022/radio/public-api.mjs +2 -2
- package/esm2022/radio/radio.component.mjs +9 -10
- package/esm2022/radio/radio.module.mjs +1 -1
- package/esm2022/risk-level/public-api.mjs +2 -2
- package/esm2022/risk-level/risk-level.component.mjs +1 -1
- package/esm2022/risk-level/risk-level.module.mjs +1 -1
- package/esm2022/scrollbar/public-api.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.component.mjs +13 -11
- package/esm2022/scrollbar/scrollbar.directive.mjs +3 -3
- package/esm2022/scrollbar/scrollbar.module.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.types.mjs +3 -2
- package/esm2022/select/public-api.mjs +3 -3
- package/esm2022/select/select-option.directive.mjs +8 -5
- package/esm2022/select/select.component.mjs +41 -64
- package/esm2022/select/select.module.mjs +1 -1
- package/esm2022/sidebar/public-api.mjs +2 -2
- package/esm2022/sidebar/sidebar-animations.mjs +1 -1
- package/esm2022/sidebar/sidebar.component.mjs +3 -3
- package/esm2022/sidebar/sidebar.module.mjs +1 -1
- package/esm2022/sidepanel/public-api.mjs +4 -4
- package/esm2022/sidepanel/sidepanel-animations.mjs +7 -3
- package/esm2022/sidepanel/sidepanel-config.mjs +1 -1
- package/esm2022/sidepanel/sidepanel-container.component.mjs +4 -4
- package/esm2022/sidepanel/sidepanel-directives.mjs +30 -16
- package/esm2022/sidepanel/sidepanel-ref.mjs +10 -4
- package/esm2022/sidepanel/sidepanel.module.mjs +1 -1
- package/esm2022/sidepanel/sidepanel.service.mjs +11 -14
- package/esm2022/splitter/public-api.mjs +2 -2
- package/esm2022/splitter/splitter.component.mjs +13 -23
- package/esm2022/splitter/splitter.module.mjs +1 -1
- package/esm2022/table/public-api.mjs +2 -2
- package/esm2022/table/table.component.mjs +1 -1
- package/esm2022/table/table.module.mjs +1 -1
- package/esm2022/tabs/paginated-tab-header.mjs +8 -11
- package/esm2022/tabs/public-api.mjs +6 -6
- package/esm2022/tabs/tab-body.component.mjs +9 -9
- package/esm2022/tabs/tab-content.directive.mjs +1 -1
- package/esm2022/tabs/tab-group.component.mjs +11 -13
- package/esm2022/tabs/tab-header.component.mjs +4 -4
- package/esm2022/tabs/tab-label-wrapper.directive.mjs +1 -1
- package/esm2022/tabs/tab-label.directive.mjs +1 -1
- package/esm2022/tabs/tab-nav-bar/index.mjs +1 -1
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tabs/tab.component.mjs +4 -6
- package/esm2022/tabs/tabs-animations.mjs +1 -1
- package/esm2022/tabs/tabs.module.mjs +2 -2
- package/esm2022/tags/public-api.mjs +5 -5
- package/esm2022/tags/tag-default-options.mjs +1 -1
- package/esm2022/tags/tag-input.mjs +12 -14
- package/esm2022/tags/tag-list.component.mjs +14 -20
- package/esm2022/tags/tag-text-control.mjs +1 -1
- package/esm2022/tags/tag.component.mjs +5 -7
- package/esm2022/tags/tag.module.mjs +9 -5
- package/esm2022/textarea/index.mjs +1 -1
- package/esm2022/textarea/textarea.component.mjs +4 -6
- package/esm2022/textarea/textarea.module.mjs +1 -1
- package/esm2022/timepicker/public-api.mjs +2 -2
- package/esm2022/timepicker/timepicker.constants.mjs +6 -1
- package/esm2022/timepicker/timepicker.directive.mjs +62 -26
- package/esm2022/timepicker/timepicker.module.mjs +1 -1
- package/esm2022/timezone/cities-by-filter.pipe.mjs +1 -1
- package/esm2022/timezone/timezone-option.component.mjs +12 -11
- package/esm2022/timezone/timezone-option.directive.mjs +3 -3
- package/esm2022/timezone/timezone-select.component.mjs +5 -5
- package/esm2022/timezone/timezone.module.mjs +1 -1
- package/esm2022/timezone/timezone.utils.mjs +5 -9
- package/esm2022/timezone/utc-offset.pipe.mjs +1 -1
- package/esm2022/title/public-api.mjs +2 -2
- package/esm2022/title/title.directive.mjs +9 -5
- package/esm2022/title/title.module.mjs +1 -1
- package/esm2022/toast/public-api.mjs +4 -4
- package/esm2022/toast/toast-animations.mjs +2 -2
- package/esm2022/toast/toast-container.component.mjs +3 -4
- package/esm2022/toast/toast.component.mjs +5 -5
- package/esm2022/toast/toast.module.mjs +1 -1
- package/esm2022/toast/toast.service.mjs +14 -30
- package/esm2022/toast/toast.type.mjs +1 -1
- package/esm2022/toggle/public-api.mjs +2 -2
- package/esm2022/toggle/toggle.component.mjs +17 -9
- package/esm2022/toggle/toggle.module.mjs +1 -1
- package/esm2022/tooltip/public-api.mjs +2 -2
- package/esm2022/tooltip/tooltip.animations.mjs +1 -1
- package/esm2022/tooltip/tooltip.component.mjs +7 -5
- package/esm2022/tooltip/tooltip.module.mjs +2 -2
- package/esm2022/tree/control/base-tree-control.mjs +1 -1
- package/esm2022/tree/control/flat-tree-control.filters.mjs +4 -7
- package/esm2022/tree/control/flat-tree-control.mjs +4 -7
- package/esm2022/tree/control/nested-tree-control.mjs +1 -1
- package/esm2022/tree/control/tree-control.mjs +1 -1
- package/esm2022/tree/data-source/flat-data-source.mjs +3 -8
- package/esm2022/tree/data-source/nested-data-source.mjs +2 -3
- package/esm2022/tree/node.mjs +1 -1
- package/esm2022/tree/outlet.mjs +1 -1
- package/esm2022/tree/padding.directive.mjs +4 -5
- package/esm2022/tree/public-api.mjs +11 -11
- package/esm2022/tree/toggle.mjs +8 -5
- package/esm2022/tree/tree-base.mjs +3 -3
- package/esm2022/tree/tree-errors.mjs +1 -1
- package/esm2022/tree/tree-option.component.mjs +9 -13
- package/esm2022/tree/tree-selection.component.mjs +17 -36
- package/esm2022/tree/tree.mjs +7 -3
- package/esm2022/tree/tree.module.mjs +4 -4
- package/esm2022/tree-select/public-api.mjs +2 -2
- package/esm2022/tree-select/tree-select.component.mjs +54 -64
- package/esm2022/tree-select/tree-select.module.mjs +1 -1
- package/fesm2022/koobiq-components-alert.mjs +6 -6
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +58 -61
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +8 -6
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +26 -18
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +14 -11
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-card.mjs +2 -2
- package/fesm2022/koobiq-components-card.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +3 -3
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +33 -28
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +323 -315
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +100 -89
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-divider.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +3 -3
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +124 -138
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +3 -3
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +45 -37
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +69 -62
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +3 -4
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +61 -50
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-link.mjs +1 -1
- package/fesm2022/koobiq-components-link.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +39 -41
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +6 -6
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +18 -4
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +84 -44
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +74 -75
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +12 -12
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-bar.mjs +5 -5
- package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs +5 -5
- package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +11 -12
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-risk-level.mjs +2 -2
- package/fesm2022/koobiq-components-risk-level.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +15 -12
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +52 -72
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +3 -3
- package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +108 -87
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +15 -25
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +3 -3
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +36 -43
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +38 -44
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +2 -4
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +69 -28
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +16 -19
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +11 -7
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +69 -86
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +17 -9
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +10 -8
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +63 -73
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +506 -535
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/multiple-file-upload.component.d.ts +2 -2
- package/file-upload/public-api.d.ts +1 -1
- package/file-upload/single-file-upload.component.d.ts +2 -2
- package/form-field/public-api.d.ts +3 -3
- package/icon/public-api.d.ts +2 -2
- package/input/public-api.d.ts +2 -2
- package/link/_link-theme.scss +2 -0
- package/link/link.component.d.ts +1 -1
- package/link/public-api.d.ts +1 -1
- package/list/list-selection.component.d.ts +2 -2
- package/list/list.scss +1 -1
- package/list/public-api.d.ts +2 -2
- package/loader-overlay/public-api.d.ts +1 -1
- package/modal/README.md +1 -1
- package/modal/modal.directive.d.ts +3 -3
- package/modal/modal.type.d.ts +2 -2
- package/modal/public-api.d.ts +2 -2
- package/navbar/_navbar-item_horizontal.scss +31 -23
- package/navbar/_navbar-item_vertical.scss +0 -2
- package/navbar/navbar-item.scss +7 -0
- package/navbar/public-api.d.ts +2 -2
- package/package.json +4 -4
- package/popover/popover.component.d.ts +1 -1
- package/popover/public-api.d.ts +2 -2
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-bar/public-api.d.ts +1 -1
- package/progress-spinner/public-api.d.ts +1 -1
- package/radio/_radio-theme.scss +1 -0
- package/radio/public-api.d.ts +1 -1
- package/radio/radio.scss +12 -2
- package/risk-level/public-api.d.ts +1 -1
- package/schematics/ng-add/index.js +2 -2
- package/scrollbar/public-api.d.ts +1 -1
- package/scrollbar/scrollbar.directive.d.ts +1 -1
- package/scrollbar/scrollbar.types.d.ts +1 -1
- package/select/public-api.d.ts +2 -2
- package/select/select.component.d.ts +1 -1
- package/sidebar/public-api.d.ts +1 -1
- package/sidepanel/public-api.d.ts +3 -3
- package/sidepanel/sidepanel.scss +1 -1
- package/splitter/public-api.d.ts +1 -1
- package/table/public-api.d.ts +1 -1
- package/tabs/paginated-tab-header.d.ts +1 -1
- package/tabs/public-api.d.ts +5 -5
- package/tabs/tab-body.component.d.ts +3 -3
- package/tabs/tab-group.component.d.ts +1 -1
- package/tags/public-api.d.ts +4 -4
- package/tags/tag-input.d.ts +1 -1
- package/textarea/textarea.component.d.ts +1 -1
- package/timepicker/public-api.d.ts +1 -1
- package/timepicker/timepicker.constants.d.ts +2 -0
- package/timepicker/timepicker.directive.d.ts +10 -3
- package/timezone/timezone-option.directive.d.ts +1 -1
- package/timezone/timezone.utils.d.ts +1 -1
- package/title/public-api.d.ts +1 -1
- package/toast/public-api.d.ts +3 -3
- package/toast/toast.service.d.ts +2 -2
- package/toast/toast.type.d.ts +1 -1
- package/toggle/public-api.d.ts +1 -1
- package/tooltip/public-api.d.ts +1 -1
- package/tooltip/tooltip.component.d.ts +2 -2
- package/tree/public-api.d.ts +10 -10
- package/tree/tree-base.d.ts +1 -1
- package/tree/tree-option.component.d.ts +1 -1
- package/tree/tree-selection.component.d.ts +1 -1
- package/tree-select/public-api.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +6 -4
|
@@ -1,29 +1,29 @@
|
|
|
1
|
-
import { A11yModule } from '@angular/cdk/a11y';
|
|
2
|
-
import * as i3$1 from '@angular/cdk/overlay';
|
|
3
|
-
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
4
|
-
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
5
|
-
import * as i1 from '@angular/common';
|
|
6
|
-
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
7
1
|
import * as i0 from '@angular/core';
|
|
8
2
|
import { EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, Injectable, Optional, ViewChild, InjectionToken, Inject, forwardRef, Directive, ContentChild, NgModule } from '@angular/core';
|
|
9
|
-
import * as
|
|
10
|
-
import {
|
|
11
|
-
import * as i6 from '@koobiq/components/icon';
|
|
12
|
-
import { KbqIconModule } from '@koobiq/components/icon';
|
|
13
|
-
import * as i5 from '@koobiq/components/select';
|
|
14
|
-
import { KbqSelectModule } from '@koobiq/components/select';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
15
5
|
import * as i1$1 from '@koobiq/components/core';
|
|
16
6
|
import { validationTooltipShowDelay, validationTooltipHideDelay, KBQ_DATE_FORMATS, KBQ_LOCALE_SERVICE } from '@koobiq/components/core';
|
|
7
|
+
import * as i3 from '@koobiq/components/button';
|
|
8
|
+
import { KbqButtonModule } from '@koobiq/components/button';
|
|
17
9
|
import * as i4 from '@koobiq/components/form-field';
|
|
18
10
|
import { KbqFormFieldControl } from '@koobiq/components/form-field';
|
|
11
|
+
import * as i5 from '@koobiq/components/select';
|
|
12
|
+
import { KbqSelectModule } from '@koobiq/components/select';
|
|
13
|
+
import * as i6 from '@koobiq/components/icon';
|
|
14
|
+
import { KbqIconModule } from '@koobiq/components/icon';
|
|
19
15
|
import { Subject, Subscription, merge, of } from 'rxjs';
|
|
16
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
20
17
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
21
18
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators } from '@angular/forms';
|
|
22
19
|
import { TAB, SPACE, UP_ARROW, DOWN_ARROW, LEFT_ARROW, RIGHT_ARROW, HOME, PAGE_UP, END, PAGE_DOWN, ESCAPE, isLetterKey, hasModifierKey, isVerticalMovement, isHorizontalMovement, DELETE, BACKSPACE } from '@koobiq/cdk/keycodes';
|
|
23
20
|
import '@koobiq/components/tooltip';
|
|
24
21
|
import * as i5$1 from '@angular/cdk/bidi';
|
|
22
|
+
import * as i3$1 from '@angular/cdk/overlay';
|
|
23
|
+
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
24
|
+
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
25
25
|
import { take } from 'rxjs/operators';
|
|
26
|
-
import {
|
|
26
|
+
import { A11yModule } from '@angular/cdk/a11y';
|
|
27
27
|
|
|
28
28
|
// tslint:disable:no-magic-numbers
|
|
29
29
|
/**
|
|
@@ -86,13 +86,13 @@ class KbqCalendarBody {
|
|
|
86
86
|
return cellNumber === this.activeCell;
|
|
87
87
|
}
|
|
88
88
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCalendarBody, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
89
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqCalendarBody, selector: "[kbq-calendar-body]", inputs: { rows: "rows", todayValue: "todayValue", selectedValue: "selectedValue", labelMinRequiredCells: "labelMinRequiredCells", numCols: "numCols", activeCell: "activeCell", cellAspectRatio: "cellAspectRatio" }, outputs: { selectedValueChange: "selectedValueChange" }, host: { classAttribute: "kbq-calendar__body" }, exportAs: ["kbqCalendarBody"], usesOnChanges: true, ngImport: i0, template: "<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\">\n <!--\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\n percentage of the width (a variant of the trick described here:\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td
|
|
89
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqCalendarBody, selector: "[kbq-calendar-body]", inputs: { rows: "rows", todayValue: "todayValue", selectedValue: "selectedValue", labelMinRequiredCells: "labelMinRequiredCells", numCols: "numCols", activeCell: "activeCell", cellAspectRatio: "cellAspectRatio" }, outputs: { selectedValueChange: "selectedValueChange" }, host: { classAttribute: "kbq-calendar__body" }, exportAs: ["kbqCalendarBody"], usesOnChanges: true, ngImport: i0, template: "<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\">\n <!--\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\n percentage of the width (a variant of the trick described here:\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td\n *ngIf=\"rowIndex === 0 && firstRowOffset\"\n class=\"kbq-calendar__body-label\"\n [attr.colspan]=\"firstRowOffset\"\n ></td>\n\n <td\n *ngFor=\"let item of row; let colIndex = index\"\n class=\"kbq-calendar__body-cell\"\n [class.kbq-calendar__body_active]=\"isActiveCell(rowIndex, colIndex)\"\n [ngClass]=\"item.cssClasses!\"\n [style.paddingBottom]=\"cellPadding\"\n [style.paddingTop]=\"cellPadding\"\n [style.width]=\"cellWidth\"\n [tabindex]=\"isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n (click)=\"cellClicked(item)\"\n >\n <div\n class=\"kbq-calendar__body-cell-content\"\n [class.kbq-calendar__body-today]=\"todayValue === item.value\"\n [class.kbq-disabled]=\"!item.enabled\"\n [class.kbq-selected]=\"selectedValue === item.value\"\n >\n {{ item.displayValue }}\n </div>\n </td>\n</tr>\n", styles: [".kbq-calendar__body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer;padding:0}.kbq-disabled{cursor:default}.kbq-calendar__body-cell-content{display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:32px;line-height:1;border-radius:var(--kbq-datepicker-size-grid-cell-border-radius, 8px);margin-bottom:var(--kbq-datepicker-size-grid-content-gap-vertical, 2px)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
90
90
|
}
|
|
91
91
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCalendarBody, decorators: [{
|
|
92
92
|
type: Component,
|
|
93
93
|
args: [{ selector: '[kbq-calendar-body]', exportAs: 'kbqCalendarBody', host: {
|
|
94
94
|
class: 'kbq-calendar__body'
|
|
95
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\">\n <!--\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\n percentage of the width (a variant of the trick described here:\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td
|
|
95
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\">\n <!--\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\n The aspect ratio of the table cells is maintained by setting the top and bottom padding as a\n percentage of the width (a variant of the trick described here:\n https://www.w3schools.com/howto/howto_css_aspect_ratio.asp).\n -->\n <td\n *ngIf=\"rowIndex === 0 && firstRowOffset\"\n class=\"kbq-calendar__body-label\"\n [attr.colspan]=\"firstRowOffset\"\n ></td>\n\n <td\n *ngFor=\"let item of row; let colIndex = index\"\n class=\"kbq-calendar__body-cell\"\n [class.kbq-calendar__body_active]=\"isActiveCell(rowIndex, colIndex)\"\n [ngClass]=\"item.cssClasses!\"\n [style.paddingBottom]=\"cellPadding\"\n [style.paddingTop]=\"cellPadding\"\n [style.width]=\"cellWidth\"\n [tabindex]=\"isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n (click)=\"cellClicked(item)\"\n >\n <div\n class=\"kbq-calendar__body-cell-content\"\n [class.kbq-calendar__body-today]=\"todayValue === item.value\"\n [class.kbq-disabled]=\"!item.enabled\"\n [class.kbq-selected]=\"selectedValue === item.value\"\n >\n {{ item.displayValue }}\n </div>\n </td>\n</tr>\n", styles: [".kbq-calendar__body-cell{position:relative;height:0;line-height:0;text-align:center;outline:none;cursor:pointer;padding:0}.kbq-disabled{cursor:default}.kbq-calendar__body-cell-content{display:flex;align-items:center;justify-content:center;box-sizing:border-box;height:32px;line-height:1;border-radius:var(--kbq-datepicker-size-grid-cell-border-radius, 8px);margin-bottom:var(--kbq-datepicker-size-grid-content-gap-vertical, 2px)}\n"] }]
|
|
96
96
|
}], propDecorators: { rows: [{
|
|
97
97
|
type: Input
|
|
98
98
|
}], todayValue: [{
|
|
@@ -158,8 +158,7 @@ class KbqCalendarHeader {
|
|
|
158
158
|
this.activeDateChange = new EventEmitter();
|
|
159
159
|
this.monthSelected = new EventEmitter();
|
|
160
160
|
this.yearSelected = new EventEmitter();
|
|
161
|
-
this.monthNames = this.adapter.getMonthNames('long')
|
|
162
|
-
.map((name, i) => ({ name, value: i }));
|
|
161
|
+
this.monthNames = this.adapter.getMonthNames('long').map((name, i) => ({ name, value: i }));
|
|
163
162
|
}
|
|
164
163
|
ngAfterContentInit() {
|
|
165
164
|
this.updateYearsArray();
|
|
@@ -204,8 +203,10 @@ class KbqCalendarHeader {
|
|
|
204
203
|
updateSelectedValues() {
|
|
205
204
|
this.selectedMonth = this.monthNames[this.adapter.getMonth(this.activeDate)].value;
|
|
206
205
|
const year = this.adapter.getYear(this.activeDate);
|
|
207
|
-
this.selectedYear = this.years.find(({ name }) => name === year)
|
|
208
|
-
|
|
206
|
+
this.selectedYear = this.years.find(({ name }) => name === year) || {
|
|
207
|
+
name: year,
|
|
208
|
+
value: this.adapter.getYearName(this.activeDate)
|
|
209
|
+
};
|
|
209
210
|
}
|
|
210
211
|
updateYearsArray() {
|
|
211
212
|
const minYear = this.adapter.getYear(this.minDate);
|
|
@@ -216,13 +217,13 @@ class KbqCalendarHeader {
|
|
|
216
217
|
}
|
|
217
218
|
}
|
|
218
219
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCalendarHeader, deps: [{ token: i1$1.DateAdapter }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
219
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqCalendarHeader, selector: "kbq-calendar-header", inputs: { activeDate: "activeDate", maxDate: "maxDate", minDate: "minDate" }, outputs: { activeDateChange: "activeDateChange", monthSelected: "monthSelected", yearSelected: "yearSelected" }, host: { classAttribute: "kbq-calendar-header" }, exportAs: ["kbqCalendarHeader"], ngImport: i0, template: "<div class=\"kbq-calendar-header__select-group\">\n <kbq-select\n
|
|
220
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqCalendarHeader, selector: "kbq-calendar-header", inputs: { activeDate: "activeDate", maxDate: "maxDate", minDate: "minDate" }, outputs: { activeDateChange: "activeDateChange", monthSelected: "monthSelected", yearSelected: "yearSelected" }, host: { classAttribute: "kbq-calendar-header" }, exportAs: ["kbqCalendarHeader"], ngImport: i0, template: "<div class=\"kbq-calendar-header__select-group\">\n <kbq-select\n #monthSelect=\"kbqSelect\"\n class=\"kbq-calendar-header__select\"\n [panelClass]=\"'kbq-calendar-select-panel'\"\n [value]=\"selectedMonth\"\n (selectionChange)=\"onMonthSelected($event.value)\"\n >\n <button\n kbq-button\n kbq-select-matcher\n class=\"layout-padding-right-xs\"\n [class.kbq-active]=\"monthSelect.panelOpen\"\n [color]=\"'contrast'\"\n [kbqStyle]=\"'transparent'\"\n [tabindex]=\"-1\"\n >\n {{ monthSelect.triggerValue }}\n\n <i\n kbq-icon=\"mc-angle-down-S_16\"\n class=\"layout-padding-left-3xs\"\n [color]=\"'contrast'\"\n ></i>\n </button>\n\n <kbq-option\n *ngFor=\"let month of monthNames\"\n [kbqTooltipDisabled]=\"true\"\n [value]=\"month.value\"\n >\n {{ month.name }}\n </kbq-option>\n </kbq-select>\n\n <kbq-select\n #yearSelect=\"kbqSelect\"\n [panelClass]=\"'kbq-calendar-select-panel'\"\n [value]=\"selectedYear\"\n (selectionChange)=\"onYearSelected($event.value.name)\"\n >\n <button\n kbq-button\n kbq-select-matcher\n class=\"layout-padding-right-xs\"\n [class.kbq-active]=\"yearSelect.panelOpen\"\n [color]=\"'contrast'\"\n [kbqStyle]=\"'transparent'\"\n [tabindex]=\"-1\"\n >\n {{ selectedYear.value }}\n\n <i\n kbq-icon=\"mc-angle-down-S_16\"\n class=\"layout-padding-left-3xs\"\n ></i>\n </button>\n\n <kbq-option\n *ngFor=\"let year of years\"\n [kbqTooltipDisabled]=\"true\"\n [value]=\"year\"\n >\n {{ year.value }}\n </kbq-option>\n </kbq-select>\n</div>\n\n<div class=\"kbq-calendar-header__button-group\">\n <button\n kbq-button\n class=\"kbq-calendar-header__previous-button\"\n [color]=\"'contrast'\"\n [disabled]=\"previousDisabled\"\n [kbqStyle]=\"'transparent'\"\n [tabindex]=\"-1\"\n (click)=\"selectPreviousMonth()\"\n >\n <i kbq-icon=\"mc-angle-left-L_16\"></i>\n </button>\n\n <button\n kbq-button\n [color]=\"'contrast'\"\n [kbqStyle]=\"'transparent'\"\n [tabindex]=\"-1\"\n (click)=\"selectCurrentDate()\"\n >\n <i kbq-icon=\"mc-circle-8_16\"></i>\n </button>\n\n <button\n kbq-button\n class=\"kbq-calendar-header__next-button\"\n [color]=\"'contrast'\"\n [disabled]=\"nextDisabled\"\n [kbqStyle]=\"'transparent'\"\n [tabindex]=\"-1\"\n (click)=\"selectNextMonth()\"\n >\n <i kbq-icon=\"mc-angle-right-L_16\"></i>\n </button>\n</div>\n", styles: [".kbq-calendar-header{display:flex;flex-direction:row;justify-content:space-between;padding-right:var(--kbq-datepicker-size-header-padding-horizontal, 4px);padding-left:var(--kbq-datepicker-size-header-padding-horizontal, 4px);margin-bottom:var(--kbq-datepicker-size-header-margin-bottom, 2px)}.kbq-calendar-header__select{width:auto!important}.kbq-calendar-header__button-group,.kbq-calendar-header__select-group{display:flex;flex-direction:row}.kbq-calendar-select-panel{margin-top:2px;min-width:98%!important}.kbq-calendar-select-panel .kbq-select__content{max-height:384px;overflow-x:hidden;scrollbar-gutter:auto}.kbq-calendar-select-panel .kbq-select__content .kbq-option{min-width:65px}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3.KbqButton, selector: "[kbq-button]", inputs: ["color", "tabIndex", "kbqStyle", "disabled"] }, { kind: "directive", type: i3.KbqButtonCssStyler, selector: "[kbq-button]" }, { kind: "directive", type: i4.KbqValidateDirective, selector: " input[kbqInput], input[kbqInputPassword], input[kbqTimepicker], input[kbqDatepicker], textarea[kbqTextarea], kbq-select, kbq-tree-select, kbq-tag-list ", exportAs: ["KbqValidate"] }, { kind: "component", type: i5.KbqSelect, selector: "kbq-select", inputs: ["disabled", "tabIndex", "hiddenItemsText", "panelClass", "backdropClass", "errorStateMatcher", "sortComparator", "hasBackdrop", "placeholder", "required", "multiple", "compareWith", "value", "id", "hiddenItemsTextFormatter"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["kbqSelect"] }, { kind: "directive", type: i5.KbqOptionTooltip, selector: "kbq-option" }, { kind: "component", type: i1$1.KbqOption, selector: "kbq-option", inputs: ["value", "showCheckbox", "disabled"], outputs: ["onSelectionChange"], exportAs: ["kbqOption"] }, { kind: "directive", type: i1$1.KbqSelectMatcher, selector: "kbq-select-matcher, [kbq-select-matcher]" }, { kind: "component", type: i6.KbqIcon, selector: "[kbq-icon]", inputs: ["color", "small", "autoColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
220
221
|
}
|
|
221
222
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCalendarHeader, decorators: [{
|
|
222
223
|
type: Component,
|
|
223
224
|
args: [{ selector: 'kbq-calendar-header', exportAs: 'kbqCalendarHeader', host: {
|
|
224
225
|
class: 'kbq-calendar-header'
|
|
225
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"kbq-calendar-header__select-group\">\n <kbq-select\n
|
|
226
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"kbq-calendar-header__select-group\">\n <kbq-select\n #monthSelect=\"kbqSelect\"\n class=\"kbq-calendar-header__select\"\n [panelClass]=\"'kbq-calendar-select-panel'\"\n [value]=\"selectedMonth\"\n (selectionChange)=\"onMonthSelected($event.value)\"\n >\n <button\n kbq-button\n kbq-select-matcher\n class=\"layout-padding-right-xs\"\n [class.kbq-active]=\"monthSelect.panelOpen\"\n [color]=\"'contrast'\"\n [kbqStyle]=\"'transparent'\"\n [tabindex]=\"-1\"\n >\n {{ monthSelect.triggerValue }}\n\n <i\n kbq-icon=\"mc-angle-down-S_16\"\n class=\"layout-padding-left-3xs\"\n [color]=\"'contrast'\"\n ></i>\n </button>\n\n <kbq-option\n *ngFor=\"let month of monthNames\"\n [kbqTooltipDisabled]=\"true\"\n [value]=\"month.value\"\n >\n {{ month.name }}\n </kbq-option>\n </kbq-select>\n\n <kbq-select\n #yearSelect=\"kbqSelect\"\n [panelClass]=\"'kbq-calendar-select-panel'\"\n [value]=\"selectedYear\"\n (selectionChange)=\"onYearSelected($event.value.name)\"\n >\n <button\n kbq-button\n kbq-select-matcher\n class=\"layout-padding-right-xs\"\n [class.kbq-active]=\"yearSelect.panelOpen\"\n [color]=\"'contrast'\"\n [kbqStyle]=\"'transparent'\"\n [tabindex]=\"-1\"\n >\n {{ selectedYear.value }}\n\n <i\n kbq-icon=\"mc-angle-down-S_16\"\n class=\"layout-padding-left-3xs\"\n ></i>\n </button>\n\n <kbq-option\n *ngFor=\"let year of years\"\n [kbqTooltipDisabled]=\"true\"\n [value]=\"year\"\n >\n {{ year.value }}\n </kbq-option>\n </kbq-select>\n</div>\n\n<div class=\"kbq-calendar-header__button-group\">\n <button\n kbq-button\n class=\"kbq-calendar-header__previous-button\"\n [color]=\"'contrast'\"\n [disabled]=\"previousDisabled\"\n [kbqStyle]=\"'transparent'\"\n [tabindex]=\"-1\"\n (click)=\"selectPreviousMonth()\"\n >\n <i kbq-icon=\"mc-angle-left-L_16\"></i>\n </button>\n\n <button\n kbq-button\n [color]=\"'contrast'\"\n [kbqStyle]=\"'transparent'\"\n [tabindex]=\"-1\"\n (click)=\"selectCurrentDate()\"\n >\n <i kbq-icon=\"mc-circle-8_16\"></i>\n </button>\n\n <button\n kbq-button\n class=\"kbq-calendar-header__next-button\"\n [color]=\"'contrast'\"\n [disabled]=\"nextDisabled\"\n [kbqStyle]=\"'transparent'\"\n [tabindex]=\"-1\"\n (click)=\"selectNextMonth()\"\n >\n <i kbq-icon=\"mc-angle-right-L_16\"></i>\n </button>\n</div>\n", styles: [".kbq-calendar-header{display:flex;flex-direction:row;justify-content:space-between;padding-right:var(--kbq-datepicker-size-header-padding-horizontal, 4px);padding-left:var(--kbq-datepicker-size-header-padding-horizontal, 4px);margin-bottom:var(--kbq-datepicker-size-header-margin-bottom, 2px)}.kbq-calendar-header__select{width:auto!important}.kbq-calendar-header__button-group,.kbq-calendar-header__select-group{display:flex;flex-direction:row}.kbq-calendar-select-panel{margin-top:2px;min-width:98%!important}.kbq-calendar-select-panel .kbq-select__content{max-height:384px;overflow-x:hidden;scrollbar-gutter:auto}.kbq-calendar-select-panel .kbq-select__content .kbq-option{min-width:65px}\n"] }]
|
|
226
227
|
}], ctorParameters: () => [{ type: i1$1.DateAdapter }], propDecorators: { activeDate: [{
|
|
227
228
|
type: Input
|
|
228
229
|
}], maxDate: [{
|
|
@@ -327,9 +328,7 @@ class KbqMonthView {
|
|
|
327
328
|
const weekdays = longWeekdays.map((long, i) => {
|
|
328
329
|
return { long, narrow: narrowWeekdays[i] };
|
|
329
330
|
});
|
|
330
|
-
this.weekdays = weekdays
|
|
331
|
-
.slice(firstDayOfWeek)
|
|
332
|
-
.concat(weekdays.slice(0, firstDayOfWeek));
|
|
331
|
+
this.weekdays = weekdays.slice(firstDayOfWeek).concat(weekdays.slice(0, firstDayOfWeek));
|
|
333
332
|
this._activeDate = this.adapter.today();
|
|
334
333
|
}
|
|
335
334
|
ngAfterContentInit() {
|
|
@@ -350,7 +349,9 @@ class KbqMonthView {
|
|
|
350
349
|
this.selectedDate = this.getDateInCurrentMonth(this.selected);
|
|
351
350
|
this.todayDate = this.getDateInCurrentMonth(this.adapter.today());
|
|
352
351
|
const firstOfMonth = this.adapter.createDate(this.adapter.getYear(this.activeDate), this.adapter.getMonth(this.activeDate));
|
|
353
|
-
this.firstWeekOffset =
|
|
352
|
+
this.firstWeekOffset =
|
|
353
|
+
(DAYS_PER_WEEK + this.adapter.getDayOfWeek(firstOfMonth) - this.adapter.getFirstDayOfWeek()) %
|
|
354
|
+
DAYS_PER_WEEK;
|
|
354
355
|
this.createWeekCells();
|
|
355
356
|
this.changeDetectorRef.markForCheck();
|
|
356
357
|
}
|
|
@@ -367,16 +368,15 @@ class KbqMonthView {
|
|
|
367
368
|
const date = this.adapter.createDate(this.adapter.getYear(this.activeDate), this.adapter.getMonth(this.activeDate), i + 1);
|
|
368
369
|
const enabled = this.shouldEnableDate(date);
|
|
369
370
|
const cellClasses = this.dateClass ? this.dateClass(date) : undefined;
|
|
370
|
-
this.weeks[this.weeks.length - 1]
|
|
371
|
-
.push(new KbqCalendarCell(i + 1, dateNames[i], enabled, cellClasses));
|
|
371
|
+
this.weeks[this.weeks.length - 1].push(new KbqCalendarCell(i + 1, dateNames[i], enabled, cellClasses));
|
|
372
372
|
}
|
|
373
373
|
}
|
|
374
374
|
/** Date filter for the month */
|
|
375
375
|
shouldEnableDate(date) {
|
|
376
|
-
return !!date &&
|
|
376
|
+
return (!!date &&
|
|
377
377
|
(!this.dateFilter || this.dateFilter(date)) &&
|
|
378
378
|
(!this.minDate || this.adapter.compareDate(date, this.minDate) >= 0) &&
|
|
379
|
-
(!this.maxDate || this.adapter.compareDate(date, this.maxDate) <= 0);
|
|
379
|
+
(!this.maxDate || this.adapter.compareDate(date, this.maxDate) <= 0));
|
|
380
380
|
}
|
|
381
381
|
/**
|
|
382
382
|
* Gets the date in this month that the given Date falls on.
|
|
@@ -387,15 +387,17 @@ class KbqMonthView {
|
|
|
387
387
|
}
|
|
388
388
|
/** Checks whether the 2 dates are non-null and fall within the same month of the same year. */
|
|
389
389
|
hasSameMonthAndYear(d1, d2) {
|
|
390
|
-
return !!(d1 &&
|
|
390
|
+
return !!(d1 &&
|
|
391
|
+
d2 &&
|
|
392
|
+
this.adapter.getMonth(d1) === this.adapter.getMonth(d2) &&
|
|
391
393
|
this.adapter.getYear(d1) === this.adapter.getYear(d2));
|
|
392
394
|
}
|
|
393
395
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqMonthView, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.DateAdapter, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
394
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqMonthView, selector: "kbq-month-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", userSelection: "userSelection", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "kbqCalendarBody", first: true, predicate: KbqCalendarBody, descendants: true }], exportAs: ["kbqMonthView"], ngImport: i0, template: "<table class=\"kbq-calendar__table\">\n <thead class=\"kbq-calendar__table-header\">\n <tr>\n <th
|
|
396
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqMonthView, selector: "kbq-month-view", inputs: { activeDate: "activeDate", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", userSelection: "userSelection", activeDateChange: "activeDateChange" }, viewQueries: [{ propertyName: "kbqCalendarBody", first: true, predicate: KbqCalendarBody, descendants: true }], exportAs: ["kbqMonthView"], ngImport: i0, template: "<table class=\"kbq-calendar__table\">\n <thead class=\"kbq-calendar__table-header\">\n <tr>\n <th\n *ngFor=\"let day of weekdays\"\n [attr.aria-label]=\"day.long\"\n >\n {{ day.narrow }}\n </th>\n </tr>\n <tr>\n <th\n colspan=\"7\"\n class=\"kbq-calendar__table-header-divider\"\n ></th>\n </tr>\n </thead>\n <tbody\n kbq-calendar-body\n [activeCell]=\"adapter.getDate(activeDate) - 1\"\n [labelMinRequiredCells]=\"3\"\n [rows]=\"weeks\"\n [selectedValue]=\"selectedDate!\"\n [todayValue]=\"todayDate!\"\n (selectedValueChange)=\"dateSelected($event)\"\n ></tbody>\n</table>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: KbqCalendarBody, selector: "[kbq-calendar-body]", inputs: ["rows", "todayValue", "selectedValue", "labelMinRequiredCells", "numCols", "activeCell", "cellAspectRatio"], outputs: ["selectedValueChange"], exportAs: ["kbqCalendarBody"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
395
397
|
}
|
|
396
398
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqMonthView, decorators: [{
|
|
397
399
|
type: Component,
|
|
398
|
-
args: [{ selector: 'kbq-month-view', exportAs: 'kbqMonthView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<table class=\"kbq-calendar__table\">\n <thead class=\"kbq-calendar__table-header\">\n <tr>\n <th
|
|
400
|
+
args: [{ selector: 'kbq-month-view', exportAs: 'kbqMonthView', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<table class=\"kbq-calendar__table\">\n <thead class=\"kbq-calendar__table-header\">\n <tr>\n <th\n *ngFor=\"let day of weekdays\"\n [attr.aria-label]=\"day.long\"\n >\n {{ day.narrow }}\n </th>\n </tr>\n <tr>\n <th\n colspan=\"7\"\n class=\"kbq-calendar__table-header-divider\"\n ></th>\n </tr>\n </thead>\n <tbody\n kbq-calendar-body\n [activeCell]=\"adapter.getDate(activeDate) - 1\"\n [labelMinRequiredCells]=\"3\"\n [rows]=\"weeks\"\n [selectedValue]=\"selectedDate!\"\n [todayValue]=\"todayDate!\"\n (selectedValueChange)=\"dateSelected($event)\"\n ></tbody>\n</table>\n" }]
|
|
399
401
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }, { type: i1$1.DateAdapter, decorators: [{
|
|
400
402
|
type: Optional
|
|
401
403
|
}] }], propDecorators: { activeDate: [{
|
|
@@ -432,8 +434,8 @@ class KbqCalendar {
|
|
|
432
434
|
}
|
|
433
435
|
set startAt(value) {
|
|
434
436
|
const deserializedValue = this.getValidDateOrNull(this.adapter.deserialize(value));
|
|
435
|
-
this._startAt =
|
|
436
|
-
this.adapter.clampDate(deserializedValue, this.minDate, this.maxDate) : null;
|
|
437
|
+
this._startAt =
|
|
438
|
+
deserializedValue !== null ? this.adapter.clampDate(deserializedValue, this.minDate, this.maxDate) : null;
|
|
437
439
|
}
|
|
438
440
|
/** The currently selected date. */
|
|
439
441
|
get selected() {
|
|
@@ -536,19 +538,19 @@ class KbqCalendar {
|
|
|
536
538
|
*/
|
|
537
539
|
// todo выглядит как костыль от которого нужно избавиться
|
|
538
540
|
getValidDateOrNull(obj) {
|
|
539
|
-
return
|
|
541
|
+
return this.adapter.isDateInstance(obj) && this.adapter.isValid(obj) ? obj : null;
|
|
540
542
|
}
|
|
541
543
|
getActiveDateDefault() {
|
|
542
544
|
return this.startAt || this.adapter.today();
|
|
543
545
|
}
|
|
544
546
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCalendar, deps: [{ token: KbqDatepickerIntl }, { token: i1$1.DateAdapter, optional: true }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
545
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqCalendar, selector: "kbq-calendar", inputs: { startAt: "startAt", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", yearSelected: "yearSelected", monthSelected: "monthSelected", userSelection: "userSelection" }, host: { classAttribute: "kbq-calendar" }, viewQueries: [{ propertyName: "monthView", first: true, predicate: KbqMonthView, descendants: true }], exportAs: ["kbqCalendar"], usesOnChanges: true, ngImport: i0, template: "<kbq-calendar-header\n [
|
|
547
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqCalendar, selector: "kbq-calendar", inputs: { startAt: "startAt", selected: "selected", minDate: "minDate", maxDate: "maxDate", dateFilter: "dateFilter", dateClass: "dateClass" }, outputs: { selectedChange: "selectedChange", yearSelected: "yearSelected", monthSelected: "monthSelected", userSelection: "userSelection" }, host: { classAttribute: "kbq-calendar" }, viewQueries: [{ propertyName: "monthView", first: true, predicate: KbqMonthView, descendants: true }], exportAs: ["kbqCalendar"], usesOnChanges: true, ngImport: i0, template: "<kbq-calendar-header\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [(activeDate)]=\"activeDate\"\n (monthSelected)=\"monthSelected.emit(activeDate)\"\n (yearSelected)=\"yearSelected.emit(activeDate)\"\n></kbq-calendar-header>\n\n<div class=\"kbq-calendar__content\">\n <kbq-month-view\n [dateClass]=\"dateClass\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [selected]=\"selected\"\n [(activeDate)]=\"activeDate\"\n (selectedChange)=\"dateSelected($event!)\"\n (userSelection)=\"userSelected()\"\n ></kbq-month-view>\n</div>\n", styles: [".kbq-calendar{display:block}.kbq-calendar__content{padding-right:var(--kbq-datepicker-size-grid-padding-horizontal, 12px);padding-left:var(--kbq-datepicker-size-grid-padding-horizontal, 12px);outline:none}.kbq-calendar__table{border-spacing:0;border-collapse:collapse;width:100%}.kbq-calendar__table-header th{text-align:center;height:30px}.kbq-calendar__table-header th.kbq-calendar__table-header-divider{position:relative;box-sizing:border-box;height:var(--kbq-datepicker-size-grid-content-gap-vertical, 2px)}.kbq-calendar__table-header th.kbq-calendar__table-header-divider:after{content:\"\";position:absolute;top:0;left:calc(-1 * var(--kbq-datepicker-size-grid-padding-horizontal, 12px));right:calc(-1 * var(--kbq-datepicker-size-grid-padding-horizontal, 12px));height:var(--kbq-datepicker-size-grid-divider-height, 1px)}\n"], dependencies: [{ kind: "component", type: KbqMonthView, selector: "kbq-month-view", inputs: ["activeDate", "selected", "minDate", "maxDate", "dateFilter", "dateClass"], outputs: ["selectedChange", "userSelection", "activeDateChange"], exportAs: ["kbqMonthView"] }, { kind: "component", type: KbqCalendarHeader, selector: "kbq-calendar-header", inputs: ["activeDate", "maxDate", "minDate"], outputs: ["activeDateChange", "monthSelected", "yearSelected"], exportAs: ["kbqCalendarHeader"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
546
548
|
}
|
|
547
549
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqCalendar, decorators: [{
|
|
548
550
|
type: Component,
|
|
549
551
|
args: [{ selector: 'kbq-calendar', exportAs: 'kbqCalendar', host: {
|
|
550
552
|
class: 'kbq-calendar'
|
|
551
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<kbq-calendar-header\n [
|
|
553
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<kbq-calendar-header\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [(activeDate)]=\"activeDate\"\n (monthSelected)=\"monthSelected.emit(activeDate)\"\n (yearSelected)=\"yearSelected.emit(activeDate)\"\n></kbq-calendar-header>\n\n<div class=\"kbq-calendar__content\">\n <kbq-month-view\n [dateClass]=\"dateClass\"\n [dateFilter]=\"dateFilter\"\n [maxDate]=\"maxDate\"\n [minDate]=\"minDate\"\n [selected]=\"selected\"\n [(activeDate)]=\"activeDate\"\n (selectedChange)=\"dateSelected($event!)\"\n (userSelection)=\"userSelected()\"\n ></kbq-month-view>\n</div>\n", styles: [".kbq-calendar{display:block}.kbq-calendar__content{padding-right:var(--kbq-datepicker-size-grid-padding-horizontal, 12px);padding-left:var(--kbq-datepicker-size-grid-padding-horizontal, 12px);outline:none}.kbq-calendar__table{border-spacing:0;border-collapse:collapse;width:100%}.kbq-calendar__table-header th{text-align:center;height:30px}.kbq-calendar__table-header th.kbq-calendar__table-header-divider{position:relative;box-sizing:border-box;height:var(--kbq-datepicker-size-grid-content-gap-vertical, 2px)}.kbq-calendar__table-header th.kbq-calendar__table-header-divider:after{content:\"\";position:absolute;top:0;left:calc(-1 * var(--kbq-datepicker-size-grid-padding-horizontal, 12px));right:calc(-1 * var(--kbq-datepicker-size-grid-padding-horizontal, 12px));height:var(--kbq-datepicker-size-grid-divider-height, 1px)}\n"] }]
|
|
552
554
|
}], ctorParameters: () => [{ type: KbqDatepickerIntl }, { type: i1$1.DateAdapter, decorators: [{
|
|
553
555
|
type: Optional
|
|
554
556
|
}] }, { type: i0.ChangeDetectorRef }], propDecorators: { startAt: [{
|
|
@@ -652,7 +654,7 @@ class KbqDatepickerContent {
|
|
|
652
654
|
this.changeDetectorRef.markForCheck();
|
|
653
655
|
}
|
|
654
656
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqDatepickerContent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
655
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqDatepickerContent, selector: "kbq-datepicker__content", host: { listeners: { "@transformPanel.done": "animationDone.next()" }, properties: { "@transformPanel": "animationState" }, classAttribute: "kbq-datepicker__content" }, viewQueries: [{ propertyName: "calendar", first: true, predicate: KbqCalendar, descendants: true }], exportAs: ["kbqDatepickerContent"], ngImport: i0, template: "<kbq-calendar
|
|
657
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqDatepickerContent, selector: "kbq-datepicker__content", host: { listeners: { "@transformPanel.done": "animationDone.next()" }, properties: { "@transformPanel": "animationState" }, classAttribute: "kbq-datepicker__content" }, viewQueries: [{ propertyName: "calendar", first: true, predicate: KbqCalendar, descendants: true }], exportAs: ["kbqDatepickerContent"], ngImport: i0, template: "<kbq-calendar\n [dateClass]=\"datepicker.dateClass\"\n [dateFilter]=\"datepicker.dateFilter\"\n [id]=\"datepicker.id\"\n [maxDate]=\"datepicker.maxDate\"\n [minDate]=\"datepicker.minDate\"\n [ngClass]=\"datepicker.panelClass\"\n [selected]=\"datepicker.selected\"\n [startAt]=\"datepicker.startAt\"\n (monthSelected)=\"datepicker.selectMonth($event)\"\n (selectedChange)=\"datepicker.select($event)\"\n (userSelection)=\"datepicker.close()\"\n (yearSelected)=\"datepicker.selectYear($event)\"\n [@fadeInCalendar]=\"'enter'\"\n></kbq-calendar>\n", styles: [".kbq-datepicker__content{display:block;border-radius:var(--kbq-datepicker-size-container-border-radius, 8px)}.kbq-datepicker__content .kbq-calendar{width:304px;height:270px;padding-top:var(--kbq-datepicker-size-container-padding-vertical, 12px);padding-bottom:var(--kbq-datepicker-size-container-padding-vertical, 12px)}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: KbqCalendar, selector: "kbq-calendar", inputs: ["startAt", "selected", "minDate", "maxDate", "dateFilter", "dateClass"], outputs: ["selectedChange", "yearSelected", "monthSelected", "userSelection"], exportAs: ["kbqCalendar"] }], animations: [
|
|
656
658
|
kbqDatepickerAnimations.transformPanel,
|
|
657
659
|
kbqDatepickerAnimations.fadeInCalendar
|
|
658
660
|
], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
@@ -666,7 +668,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
|
|
|
666
668
|
}, animations: [
|
|
667
669
|
kbqDatepickerAnimations.transformPanel,
|
|
668
670
|
kbqDatepickerAnimations.fadeInCalendar
|
|
669
|
-
], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<kbq-calendar
|
|
671
|
+
], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<kbq-calendar\n [dateClass]=\"datepicker.dateClass\"\n [dateFilter]=\"datepicker.dateFilter\"\n [id]=\"datepicker.id\"\n [maxDate]=\"datepicker.maxDate\"\n [minDate]=\"datepicker.minDate\"\n [ngClass]=\"datepicker.panelClass\"\n [selected]=\"datepicker.selected\"\n [startAt]=\"datepicker.startAt\"\n (monthSelected)=\"datepicker.selectMonth($event)\"\n (selectedChange)=\"datepicker.select($event)\"\n (userSelection)=\"datepicker.close()\"\n (yearSelected)=\"datepicker.selectYear($event)\"\n [@fadeInCalendar]=\"'enter'\"\n></kbq-calendar>\n", styles: [".kbq-datepicker__content{display:block;border-radius:var(--kbq-datepicker-size-container-border-radius, 8px)}.kbq-datepicker__content .kbq-calendar{width:304px;height:270px;padding-top:var(--kbq-datepicker-size-container-padding-vertical, 12px);padding-bottom:var(--kbq-datepicker-size-container-padding-vertical, 12px)}\n"] }]
|
|
670
672
|
}], ctorParameters: () => [{ type: i0.ChangeDetectorRef }], propDecorators: { calendar: [{
|
|
671
673
|
type: ViewChild,
|
|
672
674
|
args: [KbqCalendar]
|
|
@@ -690,8 +692,10 @@ class KbqDatepicker {
|
|
|
690
692
|
}
|
|
691
693
|
set startAt(value) {
|
|
692
694
|
const deserializedValue = this.dateAdapter.deserialize(value);
|
|
693
|
-
this._startAt =
|
|
694
|
-
|
|
695
|
+
this._startAt =
|
|
696
|
+
deserializedValue !== null
|
|
697
|
+
? this.dateAdapter.clampDate(deserializedValue, this.minDate, this.maxDate)
|
|
698
|
+
: null;
|
|
695
699
|
}
|
|
696
700
|
/** Whether the datepicker pop-up should be disabled. */
|
|
697
701
|
get disabled() {
|
|
@@ -798,8 +802,7 @@ class KbqDatepicker {
|
|
|
798
802
|
throw Error('A KbqDatepicker can only be associated with a single input.');
|
|
799
803
|
}
|
|
800
804
|
this.datepickerInput = input;
|
|
801
|
-
this.inputSubscription = this.datepickerInput.valueChange
|
|
802
|
-
.subscribe((value) => {
|
|
805
|
+
this.inputSubscription = this.datepickerInput.valueChange.subscribe((value) => {
|
|
803
806
|
this.selected = value;
|
|
804
807
|
if (this.popupComponentRef) {
|
|
805
808
|
this.popupComponentRef.instance.calendar.monthView?.init();
|
|
@@ -830,9 +833,7 @@ class KbqDatepicker {
|
|
|
830
833
|
if (this.popupComponentRef) {
|
|
831
834
|
const instance = this.popupComponentRef.instance;
|
|
832
835
|
instance.startExitAnimation();
|
|
833
|
-
instance.animationDone
|
|
834
|
-
.pipe(take(1))
|
|
835
|
-
.subscribe(() => this.destroyOverlay());
|
|
836
|
+
instance.animationDone.pipe(take(1)).subscribe(() => this.destroyOverlay());
|
|
836
837
|
}
|
|
837
838
|
if (restoreFocus) {
|
|
838
839
|
this.focusedElementBeforeOpen.focus();
|
|
@@ -866,7 +867,8 @@ class KbqDatepicker {
|
|
|
866
867
|
this.popupComponentRef = this.popupRef.attach(this.calendarPortal);
|
|
867
868
|
this.popupComponentRef.instance.datepicker = this;
|
|
868
869
|
// Update the position once the calendar has rendered.
|
|
869
|
-
this.ngZone.onStable
|
|
870
|
+
this.ngZone.onStable
|
|
871
|
+
.asObservable()
|
|
870
872
|
.pipe(take(1))
|
|
871
873
|
.subscribe(() => this.popupRef?.updatePosition());
|
|
872
874
|
}
|
|
@@ -882,8 +884,7 @@ class KbqDatepicker {
|
|
|
882
884
|
panelClass: 'kbq-datepicker__popup'
|
|
883
885
|
});
|
|
884
886
|
this.popupRef = this.overlay.create(overlayConfig);
|
|
885
|
-
this.closeSubscription = this.closingActions()
|
|
886
|
-
.subscribe(() => this.close(this.restoreFocus()));
|
|
887
|
+
this.closeSubscription = this.closingActions().subscribe(() => this.close(this.restoreFocus()));
|
|
887
888
|
}
|
|
888
889
|
restoreFocus() {
|
|
889
890
|
return this.document.activeElement === this.document.body;
|
|
@@ -893,7 +894,8 @@ class KbqDatepicker {
|
|
|
893
894
|
}
|
|
894
895
|
/** Create the popup PositionStrategy. */
|
|
895
896
|
createPopupPositionStrategy() {
|
|
896
|
-
return this.overlay
|
|
897
|
+
return this.overlay
|
|
898
|
+
.position()
|
|
897
899
|
.flexibleConnectedTo(this.datepickerInput.elementRef)
|
|
898
900
|
.withTransformOriginOn('.kbq-datepicker__content')
|
|
899
901
|
.withFlexibleDimensions(false)
|
|
@@ -1115,8 +1117,7 @@ class KbqDatepickerInput {
|
|
|
1115
1117
|
this.datepicker = value;
|
|
1116
1118
|
this.datepicker.registerInput(this);
|
|
1117
1119
|
this.datepickerSubscription.unsubscribe();
|
|
1118
|
-
this.datepickerSubscription = this.datepicker.selectedChanged
|
|
1119
|
-
.subscribe((selected) => {
|
|
1120
|
+
this.datepickerSubscription = this.datepicker.selectedChanged.subscribe((selected) => {
|
|
1120
1121
|
const newValue = this.saveTimePart(selected);
|
|
1121
1122
|
this.value = newValue;
|
|
1122
1123
|
this.cvaOnChange(newValue);
|
|
@@ -1299,8 +1300,7 @@ class KbqDatepickerInput {
|
|
|
1299
1300
|
date[this.firstDigit.fullName] = this.firstDigit.parse(firsViewDigit);
|
|
1300
1301
|
date[this.secondDigit.fullName] = this.secondDigit.parse(secondViewDigit);
|
|
1301
1302
|
date[this.thirdDigit.fullName] = this.thirdDigit.parse(thirdViewDigit);
|
|
1302
|
-
const [digitWithYear, viewDigitWithYear] = [this.firstDigit, this.secondDigit, this.thirdDigit]
|
|
1303
|
-
.reduce((acc, digit, index) => digit.value === DateParts.year ? [digit, viewDigits[index]] : acc, []);
|
|
1303
|
+
const [digitWithYear, viewDigitWithYear] = [this.firstDigit, this.secondDigit, this.thirdDigit].reduce((acc, digit, index) => (digit.value === DateParts.year ? [digit, viewDigits[index]] : acc), []);
|
|
1304
1304
|
// tslint:disable-next-line:no-magic-numbers
|
|
1305
1305
|
if (viewDigitWithYear.length < 3) {
|
|
1306
1306
|
// tslint:disable-next-line:no-magic-numbers
|
|
@@ -1339,29 +1339,30 @@ class KbqDatepickerInput {
|
|
|
1339
1339
|
this.validatorOnChange = () => { };
|
|
1340
1340
|
/** The form control validator for whether the input parses. */
|
|
1341
1341
|
this.parseValidator = () => {
|
|
1342
|
-
return this.focused ||
|
|
1343
|
-
|
|
1344
|
-
|
|
1342
|
+
return this.focused || this.empty || this.lastValueValid
|
|
1343
|
+
? null
|
|
1344
|
+
: { kbqDatepickerParse: { text: this.elementRef.nativeElement.value } };
|
|
1345
1345
|
};
|
|
1346
1346
|
/** The form control validator for the min date. */
|
|
1347
1347
|
this.minValidator = (control) => {
|
|
1348
1348
|
const controlValue = this.adapter.deserialize(control.value);
|
|
1349
|
-
return !this.min || !controlValue || this.adapter.compareDateTime(this.min, controlValue) <= 0
|
|
1350
|
-
null
|
|
1351
|
-
{ kbqDatepickerMin: { min: this.min, actual: controlValue } };
|
|
1349
|
+
return !this.min || !controlValue || this.adapter.compareDateTime(this.min, controlValue) <= 0
|
|
1350
|
+
? null
|
|
1351
|
+
: { kbqDatepickerMin: { min: this.min, actual: controlValue } };
|
|
1352
1352
|
};
|
|
1353
1353
|
/** The form control validator for the max date. */
|
|
1354
1354
|
this.maxValidator = (control) => {
|
|
1355
1355
|
const controlValue = this.adapter.deserialize(control.value);
|
|
1356
|
-
return !this.max || !controlValue || this.adapter.compareDateTime(this.max, controlValue) >= 0
|
|
1357
|
-
null
|
|
1358
|
-
{ kbqDatepickerMax: { max: this.max, actual: controlValue } };
|
|
1356
|
+
return !this.max || !controlValue || this.adapter.compareDateTime(this.max, controlValue) >= 0
|
|
1357
|
+
? null
|
|
1358
|
+
: { kbqDatepickerMax: { max: this.max, actual: controlValue } };
|
|
1359
1359
|
};
|
|
1360
1360
|
/** The form control validator for the date filter. */
|
|
1361
1361
|
this.filterValidator = (control) => {
|
|
1362
1362
|
const controlValue = this.adapter.deserialize(control.value);
|
|
1363
|
-
return !this.dateFilter || !controlValue || this.dateFilter(controlValue)
|
|
1364
|
-
null
|
|
1363
|
+
return !this.dateFilter || !controlValue || this.dateFilter(controlValue)
|
|
1364
|
+
? null
|
|
1365
|
+
: { kbqDatepickerFilter: true };
|
|
1365
1366
|
};
|
|
1366
1367
|
this.validator = Validators.compose([
|
|
1367
1368
|
this.parseValidator,
|
|
@@ -1373,8 +1374,7 @@ class KbqDatepickerInput {
|
|
|
1373
1374
|
throw createMissingDateImplError('DateAdapter');
|
|
1374
1375
|
}
|
|
1375
1376
|
this.setFormat(this.dateInputFormat);
|
|
1376
|
-
this.localeSubscription = adapter.localeChanges
|
|
1377
|
-
.subscribe(this.updateLocaleParams);
|
|
1377
|
+
this.localeSubscription = adapter.localeChanges.subscribe(this.updateLocaleParams);
|
|
1378
1378
|
}
|
|
1379
1379
|
onContainerClick() {
|
|
1380
1380
|
this.focus();
|
|
@@ -1527,7 +1527,7 @@ class KbqDatepickerInput {
|
|
|
1527
1527
|
this.separator = format.match(/[aA-zZ]+(?<separator>\W|\D)[aA-zZ]+/).groups.separator;
|
|
1528
1528
|
this.separatorPositions = format
|
|
1529
1529
|
.split('')
|
|
1530
|
-
.reduce((acc, item, index) => this.separator === item ? [...acc, index + 1] : acc, []);
|
|
1530
|
+
.reduce((acc, item, index) => (this.separator === item ? [...acc, index + 1] : acc), []);
|
|
1531
1531
|
this.getDigitPositions(format);
|
|
1532
1532
|
}
|
|
1533
1533
|
updateValue(newValue) {
|
|
@@ -1549,9 +1549,10 @@ class KbqDatepickerInput {
|
|
|
1549
1549
|
return isLetterKey(event) && !event.ctrlKey && !event.metaKey;
|
|
1550
1550
|
}
|
|
1551
1551
|
isKeyForByPass(event) {
|
|
1552
|
-
return (hasModifierKey(event) && (isVerticalMovement(event) || isHorizontalMovement(event))) ||
|
|
1553
|
-
event.ctrlKey ||
|
|
1554
|
-
|
|
1552
|
+
return ((hasModifierKey(event) && (isVerticalMovement(event) || isHorizontalMovement(event))) ||
|
|
1553
|
+
event.ctrlKey ||
|
|
1554
|
+
event.metaKey ||
|
|
1555
|
+
[DELETE, BACKSPACE, TAB].includes(event.keyCode));
|
|
1555
1556
|
}
|
|
1556
1557
|
spaceKeyHandler(event) {
|
|
1557
1558
|
event.preventDefault();
|
|
@@ -1590,9 +1591,7 @@ class KbqDatepickerInput {
|
|
|
1590
1591
|
return null;
|
|
1591
1592
|
}
|
|
1592
1593
|
const date = this.getDefaultValue();
|
|
1593
|
-
const viewDigits = timeString
|
|
1594
|
-
.split(this.separator)
|
|
1595
|
-
.map((value) => value);
|
|
1594
|
+
const viewDigits = timeString.split(this.separator).map((value) => value);
|
|
1596
1595
|
const [firsViewDigit, secondViewDigit, thirdViewDigit] = viewDigits;
|
|
1597
1596
|
if (viewDigits.length === 1) {
|
|
1598
1597
|
if (/\D/.test(firsViewDigit) || firsViewDigit.length < this.firstDigit.length) {
|
|
@@ -1624,7 +1623,7 @@ class KbqDatepickerInput {
|
|
|
1624
1623
|
digitViewValue[dateDigit.fullName] = parseInt(viewDigits[index]);
|
|
1625
1624
|
}
|
|
1626
1625
|
if (this.value && digitViewValue.month && digitViewValue.month <= this.firstDigit.maxMonth) {
|
|
1627
|
-
dateDigits.forEach((digit) => digit.maxDays = this.getLastDayFor(digitViewValue.year, digitViewValue.month - 1));
|
|
1626
|
+
dateDigits.forEach((digit) => (digit.maxDays = this.getLastDayFor(digitViewValue.year, digitViewValue.month - 1)));
|
|
1628
1627
|
}
|
|
1629
1628
|
date[this.firstDigit.fullName] = this.firstDigit.parse(firsViewDigit);
|
|
1630
1629
|
date[this.secondDigit.fullName] = this.secondDigit.parse(secondViewDigit);
|
|
@@ -1759,14 +1758,28 @@ class KbqDatepickerInput {
|
|
|
1759
1758
|
cursorPos = this.viewValue.length;
|
|
1760
1759
|
}
|
|
1761
1760
|
else if (keyCode === LEFT_ARROW) {
|
|
1761
|
+
this.fixEmptyDigit();
|
|
1762
1762
|
cursorPos = cursorPos === 0 ? this.viewValue.length : cursorPos - 1;
|
|
1763
1763
|
}
|
|
1764
1764
|
else if (keyCode === RIGHT_ARROW) {
|
|
1765
|
+
this.fixEmptyDigit();
|
|
1765
1766
|
const nextSeparatorPos = this.viewValue.indexOf(this.separator, cursorPos);
|
|
1766
1767
|
cursorPos = nextSeparatorPos ? nextSeparatorPos + 1 : 0;
|
|
1767
1768
|
}
|
|
1768
1769
|
this.selectDigitByCursor(cursorPos);
|
|
1769
1770
|
}
|
|
1771
|
+
fixEmptyDigit() {
|
|
1772
|
+
const hasEmptyDigit = this.viewValue
|
|
1773
|
+
.split(this.separator)
|
|
1774
|
+
.map((part) => part.length)
|
|
1775
|
+
.some((item) => !item);
|
|
1776
|
+
if (hasEmptyDigit && this.value) {
|
|
1777
|
+
const year = this.adapter.getYear(this.value);
|
|
1778
|
+
const month = this.adapter.getMonth(this.value);
|
|
1779
|
+
const day = this.adapter.getDate(this.value);
|
|
1780
|
+
this.value = this.createDate(year, month, day);
|
|
1781
|
+
}
|
|
1782
|
+
}
|
|
1770
1783
|
selectDigitByCursor(cursorPos) {
|
|
1771
1784
|
setTimeout(() => {
|
|
1772
1785
|
const [, selectionStart, selectionEnd] = this.getDateEditMetrics(cursorPos);
|
|
@@ -1807,23 +1820,20 @@ class KbqDatepickerInput {
|
|
|
1807
1820
|
return;
|
|
1808
1821
|
}
|
|
1809
1822
|
this.control = control;
|
|
1810
|
-
this.control.valueChanges
|
|
1811
|
-
.subscribe((value) => this._value = value);
|
|
1823
|
+
this.control.valueChanges.subscribe((value) => (this._value = value));
|
|
1812
1824
|
}
|
|
1813
1825
|
/**
|
|
1814
1826
|
* @param obj The object to check.
|
|
1815
1827
|
* @returns The given object if it is both a date instance and valid, otherwise null.
|
|
1816
1828
|
*/
|
|
1817
1829
|
getValidDateOrNull(obj) {
|
|
1818
|
-
return
|
|
1830
|
+
return this.adapter.isDateInstance(obj) && this.adapter.isValid(obj) ? obj : null;
|
|
1819
1831
|
}
|
|
1820
1832
|
getDigitPositions(format) {
|
|
1821
1833
|
this.firstDigit = this.secondDigit = this.thirdDigit = null;
|
|
1822
1834
|
const formatInLowerCase = format.toLowerCase();
|
|
1823
|
-
formatInLowerCase
|
|
1824
|
-
.
|
|
1825
|
-
.reduce(({ prev, length, start }, value, index, arr) => {
|
|
1826
|
-
if (value === this.separator || (arr.length - 1) === index) {
|
|
1835
|
+
formatInLowerCase.split('').reduce(({ prev, length, start }, value, index, arr) => {
|
|
1836
|
+
if (value === this.separator || arr.length - 1 === index) {
|
|
1827
1837
|
if (!this.firstDigit) {
|
|
1828
1838
|
this.firstDigit = new DateDigit(prev, start, length);
|
|
1829
1839
|
}
|
|
@@ -1975,23 +1985,24 @@ class KbqDatepickerToggle {
|
|
|
1975
1985
|
}
|
|
1976
1986
|
watchStateChanges() {
|
|
1977
1987
|
const datepickerDisabled = this.datepicker ? this.datepicker.disabledChange : of();
|
|
1978
|
-
const inputDisabled = this.datepicker && this.datepicker.datepickerInput
|
|
1979
|
-
this.datepicker.datepickerInput.disabledChange
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1988
|
+
const inputDisabled = this.datepicker && this.datepicker.datepickerInput
|
|
1989
|
+
? this.datepicker.datepickerInput.disabledChange
|
|
1990
|
+
: of();
|
|
1991
|
+
const datepickerToggled = this.datepicker
|
|
1992
|
+
? merge(this.datepicker.openedStream, this.datepicker.closedStream)
|
|
1993
|
+
: of();
|
|
1983
1994
|
this.stateChanges.unsubscribe();
|
|
1984
1995
|
this.stateChanges = merge(this.intl.changes, datepickerDisabled, inputDisabled, datepickerToggled).subscribe(() => this.changeDetectorRef.markForCheck());
|
|
1985
1996
|
}
|
|
1986
1997
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqDatepickerToggle, deps: [{ token: KbqDatepickerIntl }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1987
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqDatepickerToggle, selector: "kbq-datepicker-toggle", inputs: { disabled: "disabled", datepicker: ["for", "datepicker"], tabIndex: "tabIndex" }, host: { properties: { "class.kbq-active": "datepicker && datepicker.opened" }, classAttribute: "kbq-datepicker-toggle" }, queries: [{ propertyName: "customIcon", first: true, predicate: KbqDatepickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true }], exportAs: ["kbqDatepickerToggle"], usesOnChanges: true, ngImport: i0, template: "<!--todo need simplify this-->\n<button\n #button\n kbq-button\n type=\"button\"\n class=\"kbq-datepicker-toggle__button\"\n
|
|
1998
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqDatepickerToggle, selector: "kbq-datepicker-toggle", inputs: { disabled: "disabled", datepicker: ["for", "datepicker"], tabIndex: "tabIndex" }, host: { properties: { "class.kbq-active": "datepicker && datepicker.opened" }, classAttribute: "kbq-datepicker-toggle" }, queries: [{ propertyName: "customIcon", first: true, predicate: KbqDatepickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "button", first: true, predicate: ["button"], descendants: true }], exportAs: ["kbqDatepickerToggle"], usesOnChanges: true, ngImport: i0, template: "<!--todo need simplify this-->\n<button\n #button\n aria-haspopup=\"true\"\n kbq-button\n type=\"button\"\n class=\"kbq-datepicker-toggle__button\"\n [attr.aria-label]=\"intl.openCalendarLabel\"\n [disabled]=\"disabled\"\n [tabIndex]=\"tabIndex\"\n (click)=\"open($event)\"\n>\n <i\n *ngIf=\"!customIcon\"\n kbq-icon=\"mc-calendar_16\"\n class=\"kbq-datepicker-toggle__default-icon\"\n ></i>\n\n <ng-content select=\"[kbqDatepickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".kbq-datepicker-toggle:focus{outline:0}.kbq-datepicker-toggle__button.kbq-button-icon{width:var(--kbq-datepicker-toggle-size-width, );height:var(--kbq-datepicker-toggle-size-height, );margin-left:2px}.kbq-form-field-appearance-legacy .kbq-form-field-prefix .kbq-datepicker-toggle__default-icon,.kbq-form-field-appearance-legacy .kbq-form-field-suffix .kbq-datepicker-toggle__default-icon{width:1em}.kbq-form-field:not(.kbq-form-field-appearance-legacy) .kbq-form-field-prefix .kbq-datepicker-toggle__default-icon,.kbq-form-field:not(.kbq-form-field-appearance-legacy) .kbq-form-field-suffix .kbq-datepicker-toggle__default-icon{display:block;width:1.5em;height:1.5em}.kbq-form-field:not(.kbq-form-field-appearance-legacy) .kbq-form-field-prefix .kbq-button-icon .kbq-datepicker-toggle__default-icon,.kbq-form-field:not(.kbq-form-field-appearance-legacy) .kbq-form-field-suffix .kbq-button-icon .kbq-datepicker-toggle__default-icon{margin:auto}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.KbqButton, selector: "[kbq-button]", inputs: ["color", "tabIndex", "kbqStyle", "disabled"] }, { kind: "directive", type: i3.KbqButtonCssStyler, selector: "[kbq-button]" }, { kind: "component", type: i6.KbqIcon, selector: "[kbq-icon]", inputs: ["color", "small", "autoColor"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1988
1999
|
}
|
|
1989
2000
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqDatepickerToggle, decorators: [{
|
|
1990
2001
|
type: Component,
|
|
1991
2002
|
args: [{ selector: 'kbq-datepicker-toggle', host: {
|
|
1992
2003
|
class: 'kbq-datepicker-toggle',
|
|
1993
2004
|
'[class.kbq-active]': 'datepicker && datepicker.opened'
|
|
1994
|
-
}, exportAs: 'kbqDatepickerToggle', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--todo need simplify this-->\n<button\n #button\n kbq-button\n type=\"button\"\n class=\"kbq-datepicker-toggle__button\"\n
|
|
2005
|
+
}, exportAs: 'kbqDatepickerToggle', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--todo need simplify this-->\n<button\n #button\n aria-haspopup=\"true\"\n kbq-button\n type=\"button\"\n class=\"kbq-datepicker-toggle__button\"\n [attr.aria-label]=\"intl.openCalendarLabel\"\n [disabled]=\"disabled\"\n [tabIndex]=\"tabIndex\"\n (click)=\"open($event)\"\n>\n <i\n *ngIf=\"!customIcon\"\n kbq-icon=\"mc-calendar_16\"\n class=\"kbq-datepicker-toggle__default-icon\"\n ></i>\n\n <ng-content select=\"[kbqDatepickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".kbq-datepicker-toggle:focus{outline:0}.kbq-datepicker-toggle__button.kbq-button-icon{width:var(--kbq-datepicker-toggle-size-width, );height:var(--kbq-datepicker-toggle-size-height, );margin-left:2px}.kbq-form-field-appearance-legacy .kbq-form-field-prefix .kbq-datepicker-toggle__default-icon,.kbq-form-field-appearance-legacy .kbq-form-field-suffix .kbq-datepicker-toggle__default-icon{width:1em}.kbq-form-field:not(.kbq-form-field-appearance-legacy) .kbq-form-field-prefix .kbq-datepicker-toggle__default-icon,.kbq-form-field:not(.kbq-form-field-appearance-legacy) .kbq-form-field-suffix .kbq-datepicker-toggle__default-icon{display:block;width:1.5em;height:1.5em}.kbq-form-field:not(.kbq-form-field-appearance-legacy) .kbq-form-field-prefix .kbq-button-icon .kbq-datepicker-toggle__default-icon,.kbq-form-field:not(.kbq-form-field-appearance-legacy) .kbq-form-field-suffix .kbq-button-icon .kbq-datepicker-toggle__default-icon{margin:auto}\n"] }]
|
|
1995
2006
|
}], ctorParameters: () => [{ type: KbqDatepickerIntl }, { type: i0.ChangeDetectorRef }], propDecorators: { disabled: [{
|
|
1996
2007
|
type: Input
|
|
1997
2008
|
}], datepicker: [{
|