@koobiq/components 19.8.1 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/index.d.ts +238 -1
- package/actions-panel/index.d.ts +303 -5
- package/alert/index.d.ts +54 -1
- package/app-switcher/index.d.ts +239 -1
- package/autocomplete/index.d.ts +265 -1
- package/badge/index.d.ts +57 -1
- package/breadcrumbs/breadcrumbs.scss +7 -0
- package/breadcrumbs/index.d.ts +243 -1
- package/button/_button-base.scss +20 -0
- package/button/_button-theme.scss +3 -11
- package/button/button.scss +0 -11
- package/button/index.d.ts +153 -1
- package/button-toggle/index.d.ts +155 -1
- package/checkbox/index.d.ts +159 -1
- package/clamped-text/index.d.ts +144 -4
- package/code-block/_code-block-theme.scss +0 -6
- package/code-block/code-block-tokens.scss +0 -2
- package/code-block/index.d.ts +383 -1
- package/content-panel/content-panel.scss +0 -8
- package/content-panel/index.d.ts +158 -2
- package/core/highlight/_highlight-theme.scss +9 -0
- package/core/index.d.ts +4405 -1
- package/core/option/_option-theme.scss +5 -14
- package/core/styles/_koobiq-theme.scss +1 -0
- package/core/styles/theming/_components-theming.scss +0 -62
- package/datepicker/index.d.ts +699 -1
- package/divider/index.d.ts +20 -1
- package/dl/index.d.ts +37 -1
- package/dropdown/_dropdown-theme.scss +4 -8
- package/dropdown/dropdown.scss +4 -0
- package/dropdown/index.d.ts +473 -1
- package/dynamic-translation/index.d.ts +81 -2
- package/ellipsis-center/index.d.ts +38 -1
- package/empty-state/index.d.ts +45 -1
- package/fesm2022/koobiq-components-accordion.mjs +103 -114
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
- package/fesm2022/koobiq-components-actions-panel.mjs +16 -16
- package/fesm2022/koobiq-components-actions-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-alert.mjs +35 -49
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-app-switcher.mjs +81 -86
- package/fesm2022/koobiq-components-app-switcher.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +294 -304
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +35 -42
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs +154 -163
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +87 -86
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +209 -96
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +50 -52
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-clamped-text.mjs +42 -49
- package/fesm2022/koobiq-components-clamped-text.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +111 -136
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-content-panel.mjs +90 -107
- package/fesm2022/koobiq-components-content-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +1635 -628
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +285 -349
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-divider.mjs +14 -25
- package/fesm2022/koobiq-components-divider.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +27 -29
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +202 -167
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-dynamic-translation.mjs +23 -23
- package/fesm2022/koobiq-components-dynamic-translation.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +16 -21
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +35 -39
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +135 -234
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +321 -561
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +211 -430
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +42 -43
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-inline-edit.mjs +65 -60
- package/fesm2022/koobiq-components-inline-edit.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +116 -155
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-link.mjs +38 -53
- package/fesm2022/koobiq-components-link.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +105 -114
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +37 -44
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +31 -35
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +169 -163
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +162 -164
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-notification-center.mjs +65 -203
- package/fesm2022/koobiq-components-notification-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +36 -36
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +95 -86
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-bar.mjs +24 -30
- package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs +25 -32
- package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +94 -80
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-resizer.mjs +17 -17
- package/fesm2022/koobiq-components-resizer.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +69 -60
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-search-expandable.mjs +44 -35
- package/fesm2022/koobiq-components-search-expandable.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +249 -234
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +59 -55
- package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +88 -128
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-skeleton.mjs +12 -12
- package/fesm2022/koobiq-components-skeleton.mjs.map +1 -1
- package/fesm2022/koobiq-components-split-button.mjs +27 -20
- package/fesm2022/koobiq-components-split-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +110 -96
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +21 -23
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +269 -275
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +177 -267
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +37 -56
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-time-range.mjs +64 -65
- package/fesm2022/koobiq-components-time-range.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +46 -38
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +52 -58
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +23 -30
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +54 -69
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +51 -63
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +91 -119
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-top-bar.mjs +25 -23
- package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +227 -227
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +217 -209
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/fesm2022/koobiq-components-username.mjs +48 -48
- package/fesm2022/koobiq-components-username.mjs.map +1 -1
- package/file-upload/index.d.ts +574 -1
- package/filter-bar/_filter-bar-theme.scss +0 -4
- package/filter-bar/index.d.ts +796 -1
- package/form-field/index.d.ts +569 -1
- package/icon/index.d.ts +162 -1
- package/index.d.ts +2 -1
- package/inline-edit/index.d.ts +171 -2
- package/input/index.d.ts +339 -1
- package/link/index.d.ts +56 -1
- package/list/index.d.ts +220 -1
- package/loader-overlay/index.d.ts +57 -1
- package/markdown/index.d.ts +68 -1
- package/modal/_modal-theme.scss +0 -8
- package/modal/index.d.ts +311 -1
- package/navbar/index.d.ts +304 -1
- package/navbar/navbar-item.scss +0 -9
- package/notification-center/_notification-center-theme.scss +1 -2
- package/notification-center/index.d.ts +237 -1
- package/notification-center/notification-center.scss +3 -36
- package/notification-center/notification-item.scss +1 -1
- package/overflow-items/index.d.ts +161 -2
- package/package.json +9 -17
- package/popover/index.d.ts +182 -1
- package/popover/popover.scss +8 -12
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/progress-bar/index.d.ts +31 -1
- package/progress-spinner/index.d.ts +37 -1
- package/radio/index.d.ts +207 -1
- package/resizer/index.d.ts +85 -2
- package/schematics/collection.json +5 -0
- package/schematics/migrations/css-selectors/index.js +1 -1
- package/schematics/migrations/deprecated-icons/index.js +1 -1
- package/schematics/migrations/new-icons-pack/index.js +1 -1
- package/schematics/migrations/v20-upgrade/README.md +72 -0
- package/schematics/migrations/v20-upgrade/data.js +274 -0
- package/schematics/migrations/v20-upgrade/index.js +222 -0
- package/schematics/migrations/v20-upgrade/schema.json +20 -0
- package/schematics/migrations.json +10 -0
- package/schematics/ng-add/index.js +3 -4
- package/scrollbar/index.d.ts +136 -1
- package/search-expandable/index.d.ts +98 -1
- package/select/index.d.ts +693 -1
- package/sidebar/index.d.ts +92 -1
- package/sidepanel/index.d.ts +263 -1
- package/sidepanel/sidepanel.scss +0 -8
- package/skeleton/index.d.ts +26 -2
- package/split-button/index.d.ts +46 -1
- package/splitter/index.d.ts +141 -1
- package/table/index.d.ts +23 -1
- package/tabs/_tabs-common.scss +27 -0
- package/tabs/_tabs-theme.scss +2 -2
- package/tabs/index.d.ts +645 -1
- package/tags/index.d.ts +706 -1
- package/textarea/index.d.ts +134 -1
- package/time-range/index.d.ts +310 -7
- package/timepicker/index.d.ts +193 -1
- package/timezone/index.d.ts +122 -1
- package/title/index.d.ts +41 -1
- package/toast/index.d.ts +164 -1
- package/toggle/index.d.ts +84 -1
- package/tooltip/index.d.ts +163 -1
- package/top-bar/index.d.ts +33 -1
- package/tree/_tree-theme.scss +4 -0
- package/tree/index.d.ts +718 -1
- package/tree/tree-option.scss +20 -7
- package/tree-select/_tree-select-theme.scss +39 -0
- package/tree-select/index.d.ts +377 -1
- package/username/index.d.ts +176 -5
- package/accordion/accordion-content.d.ts +0 -6
- package/accordion/accordion-content.directive.d.ts +0 -27
- package/accordion/accordion-header.d.ts +0 -6
- package/accordion/accordion-header.directive.d.ts +0 -7
- package/accordion/accordion-item.d.ts +0 -77
- package/accordion/accordion-trigger.component.d.ts +0 -24
- package/accordion/accordion-trigger.directive.d.ts +0 -21
- package/accordion/accordion.component.d.ts +0 -79
- package/accordion/accordion.module.d.ts +0 -12
- package/accordion/public-api.d.ts +0 -9
- package/actions-panel/actions-panel-config.d.ts +0 -82
- package/actions-panel/actions-panel-container.d.ts +0 -90
- package/actions-panel/actions-panel-ref.d.ts +0 -44
- package/actions-panel/actions-panel.d.ts +0 -84
- package/actions-panel/module.d.ts +0 -7
- package/alert/alert.component.d.ts +0 -43
- package/alert/alert.module.d.ts +0 -9
- package/alert/public-api.d.ts +0 -2
- package/app-switcher/app-switcher-animations.d.ts +0 -5
- package/app-switcher/app-switcher-dropdown-app.d.ts +0 -11
- package/app-switcher/app-switcher-dropdown-site.d.ts +0 -9
- package/app-switcher/app-switcher.d.ts +0 -198
- package/app-switcher/app-switcher.module.d.ts +0 -10
- package/app-switcher/kbq-app-switcher-list-item.d.ts +0 -16
- package/app-switcher/public-api.d.ts +0 -6
- package/autocomplete/autocomplete-origin.directive.d.ts +0 -12
- package/autocomplete/autocomplete-trigger.directive.d.ts +0 -169
- package/autocomplete/autocomplete.component.d.ts +0 -88
- package/autocomplete/autocomplete.module.d.ts +0 -12
- package/autocomplete/public-api.d.ts +0 -4
- package/badge/badge.component.d.ts +0 -46
- package/badge/badge.module.d.ts +0 -9
- package/badge/public-api.d.ts +0 -2
- package/breadcrumbs/breadcrumbs.d.ts +0 -127
- package/breadcrumbs/breadcrumbs.module.d.ts +0 -7
- package/breadcrumbs/breadcrumbs.types.d.ts +0 -22
- package/breadcrumbs/public-api.d.ts +0 -5
- package/breadcrumbs/roving-focus-group.directive.d.ts +0 -50
- package/breadcrumbs/roving-focus-item.directive.d.ts +0 -50
- package/breadcrumbs/utils.d.ts +0 -19
- package/button/button-group.d.ts +0 -45
- package/button/button.component.d.ts +0 -59
- package/button/button.dropdown-trigger.directive.d.ts +0 -14
- package/button/button.module.d.ts +0 -12
- package/button/public-api.d.ts +0 -4
- package/button-toggle/button-toggle.component.d.ts +0 -146
- package/button-toggle/button-toggle.module.d.ts +0 -9
- package/button-toggle/public-api.d.ts +0 -2
- package/checkbox/checkbox-config.d.ts +0 -13
- package/checkbox/checkbox-module.d.ts +0 -9
- package/checkbox/checkbox-required-validator.d.ts +0 -13
- package/checkbox/checkbox.d.ts +0 -128
- package/checkbox/public-api.d.ts +0 -4
- package/clamped-text/clamped-list.d.ts +0 -41
- package/clamped-text/clamped-text.d.ts +0 -65
- package/clamped-text/constants.d.ts +0 -34
- package/clamped-text/module.d.ts +0 -8
- package/code-block/code-block-highlight.d.ts +0 -98
- package/code-block/code-block.d.ts +0 -259
- package/code-block/code-block.module.d.ts +0 -7
- package/code-block/public-api.d.ts +0 -4
- package/code-block/types.d.ts +0 -36
- package/content-panel/content-panel.d.ts +0 -149
- package/content-panel/module.d.ts +0 -7
- package/core/animation/animation.d.ts +0 -37
- package/core/animation/fade-animations.d.ts +0 -2
- package/core/animation/index.d.ts +0 -3
- package/core/animation/select-animations.d.ts +0 -12
- package/core/common-behaviors/checkbox.d.ts +0 -5
- package/core/common-behaviors/clipboard.d.ts +0 -12
- package/core/common-behaviors/color.d.ts +0 -50
- package/core/common-behaviors/common-module.d.ts +0 -38
- package/core/common-behaviors/constructor.d.ts +0 -9
- package/core/common-behaviors/disabled.d.ts +0 -8
- package/core/common-behaviors/error-state.d.ts +0 -46
- package/core/common-behaviors/flex.d.ts +0 -4
- package/core/common-behaviors/hover.d.ts +0 -15
- package/core/common-behaviors/index.d.ts +0 -14
- package/core/common-behaviors/orientation.d.ts +0 -4
- package/core/common-behaviors/read-state.d.ts +0 -12
- package/core/common-behaviors/size.d.ts +0 -4
- package/core/common-behaviors/tabindex.d.ts +0 -8
- package/core/datetime/date-adapter.d.ts +0 -12
- package/core/datetime/date-formats.d.ts +0 -4
- package/core/datetime/index.d.ts +0 -2
- package/core/error/error-state-matcher.d.ts +0 -39
- package/core/form-field/field-sizing-content.d.ts +0 -21
- package/core/form-field/form-field-ref.d.ts +0 -28
- package/core/form-field/index.d.ts +0 -2
- package/core/formatters/date/formatter.d.ts +0 -11
- package/core/formatters/date/formatter.pipe.d.ts +0 -139
- package/core/formatters/filesize/config.d.ts +0 -66
- package/core/formatters/filesize/formatter.d.ts +0 -17
- package/core/formatters/filesize/index.d.ts +0 -3
- package/core/formatters/filesize/size.d.ts +0 -52
- package/core/formatters/index.d.ts +0 -13
- package/core/formatters/number/formatter.d.ts +0 -101
- package/core/forms/forms-module.d.ts +0 -7
- package/core/forms/forms.directive.d.ts +0 -22
- package/core/forms/index.d.ts +0 -3
- package/core/forms/validators.d.ts +0 -120
- package/core/highlight/highlight.pipe.d.ts +0 -10
- package/core/highlight/index.d.ts +0 -9
- package/core/line/line.d.ts +0 -23
- package/core/locales/en-US.d.ts +0 -176
- package/core/locales/es-LA.d.ts +0 -175
- package/core/locales/formatters.d.ts +0 -190
- package/core/locales/index.d.ts +0 -9
- package/core/locales/locale-service.d.ts +0 -1117
- package/core/locales/locale-service.module.d.ts +0 -6
- package/core/locales/pt-BR.d.ts +0 -175
- package/core/locales/ru-RU.d.ts +0 -176
- package/core/locales/tk-TM.d.ts +0 -176
- package/core/locales/types.d.ts +0 -77
- package/core/navbar/index.d.ts +0 -1
- package/core/navbar/rectangle-item.d.ts +0 -14
- package/core/option/action-container.d.ts +0 -5
- package/core/option/action.d.ts +0 -38
- package/core/option/index.d.ts +0 -5
- package/core/option/optgroup.d.ts +0 -16
- package/core/option/option-module.d.ts +0 -10
- package/core/option/option.d.ts +0 -170
- package/core/overlay/overlay-position-map.d.ts +0 -40
- package/core/pop-up/constants.d.ts +0 -56
- package/core/pop-up/focus-trap-strategy.d.ts +0 -5
- package/core/pop-up/index.d.ts +0 -5
- package/core/pop-up/pop-up-styles.d.ts +0 -2
- package/core/pop-up/pop-up-trigger.d.ts +0 -104
- package/core/pop-up/pop-up.d.ts +0 -57
- package/core/public-api.d.ts +0 -23
- package/core/select/common.d.ts +0 -59
- package/core/select/constants.d.ts +0 -22
- package/core/select/errors.d.ts +0 -19
- package/core/select/events.d.ts +0 -1
- package/core/select/index.d.ts +0 -4
- package/core/selection/constants.d.ts +0 -4
- package/core/selection/index.d.ts +0 -3
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +0 -23
- package/core/selection/pseudo-checkbox/pseudo-checkbox.module.d.ts +0 -8
- package/core/services/measure-scrollbar.service.d.ts +0 -11
- package/core/services/theme.service.d.ts +0 -41
- package/core/title/index.d.ts +0 -1
- package/core/title/title-text-ref.d.ts +0 -6
- package/core/tokens/index.d.ts +0 -1
- package/core/tokens/window.d.ts +0 -5
- package/core/utils/dom.d.ts +0 -4
- package/core/utils/index.d.ts +0 -2
- package/core/utils/public-api.d.ts +0 -1
- package/core/utils/utils.d.ts +0 -25
- package/core/validation/index.d.ts +0 -1
- package/core/validation/validation.d.ts +0 -29
- package/core/version.d.ts +0 -2
- package/datepicker/calendar-body.component.d.ts +0 -55
- package/datepicker/calendar-header.component.d.ts +0 -51
- package/datepicker/calendar.component.d.ts +0 -89
- package/datepicker/datepicker-animations.d.ts +0 -9
- package/datepicker/datepicker-errors.d.ts +0 -2
- package/datepicker/datepicker-input.directive.d.ts +0 -221
- package/datepicker/datepicker-intl.d.ts +0 -32
- package/datepicker/datepicker-module.d.ts +0 -21
- package/datepicker/datepicker-toggle.component.d.ts +0 -57
- package/datepicker/datepicker.component.d.ts +0 -148
- package/datepicker/month-view.component.d.ts +0 -73
- package/datepicker/public-api.d.ts +0 -10
- package/divider/divider.component.d.ts +0 -18
- package/divider/divider.module.d.ts +0 -8
- package/divider/public-api.d.ts +0 -2
- package/dl/dl.component.d.ts +0 -26
- package/dl/dl.module.d.ts +0 -9
- package/dl/public-api.d.ts +0 -2
- package/dropdown/dropdown-animations.d.ts +0 -11
- package/dropdown/dropdown-content.directive.d.ts +0 -32
- package/dropdown/dropdown-errors.d.ts +0 -17
- package/dropdown/dropdown-item.component.d.ts +0 -52
- package/dropdown/dropdown-trigger.directive.d.ts +0 -156
- package/dropdown/dropdown.component.d.ts +0 -126
- package/dropdown/dropdown.module.d.ts +0 -13
- package/dropdown/dropdown.types.d.ts +0 -67
- package/dropdown/public-api.d.ts +0 -8
- package/dynamic-translation/dynamic-translation.d.ts +0 -72
- package/dynamic-translation/module.d.ts +0 -7
- package/ellipsis-center/ellipsis-center.directive.d.ts +0 -36
- package/ellipsis-center/public-api.d.ts +0 -1
- package/empty-state/empty-state.component.d.ts +0 -36
- package/empty-state/empty-state.module.d.ts +0 -9
- package/empty-state/public-api.d.ts +0 -2
- package/fesm2022/koobiq-components-navbar-ic.mjs +0 -863
- package/fesm2022/koobiq-components-navbar-ic.mjs.map +0 -1
- package/fesm2022/koobiq-components-risk-level.mjs +0 -75
- package/fesm2022/koobiq-components-risk-level.mjs.map +0 -1
- package/file-upload/dropzone.d.ts +0 -147
- package/file-upload/file-upload.d.ts +0 -102
- package/file-upload/file-upload.module.d.ts +0 -20
- package/file-upload/multiple-file-upload.component.d.ts +0 -138
- package/file-upload/primitives/file-drop.d.ts +0 -35
- package/file-upload/primitives/file-picker.d.ts +0 -82
- package/file-upload/primitives/index.d.ts +0 -2
- package/file-upload/public-api.d.ts +0 -7
- package/file-upload/single-file-upload.component.d.ts +0 -118
- package/filter-bar/filter-bar-button.d.ts +0 -14
- package/filter-bar/filter-bar.d.ts +0 -81
- package/filter-bar/filter-bar.module.d.ts +0 -17
- package/filter-bar/filter-bar.types.d.ts +0 -143
- package/filter-bar/filter-refresher.d.ts +0 -5
- package/filter-bar/filter-reset.d.ts +0 -15
- package/filter-bar/filter-search.d.ts +0 -54
- package/filter-bar/filter-search.scss +0 -12
- package/filter-bar/filters.d.ts +0 -122
- package/filter-bar/pipe-add.d.ts +0 -28
- package/filter-bar/pipe.directive.d.ts +0 -13
- package/filter-bar/pipes/base-pipe.d.ts +0 -74
- package/filter-bar/pipes/pipe-button.d.ts +0 -21
- package/filter-bar/pipes/pipe-date.d.ts +0 -65
- package/filter-bar/pipes/pipe-datetime.d.ts +0 -66
- package/filter-bar/pipes/pipe-multi-select.d.ts +0 -56
- package/filter-bar/pipes/pipe-multi-tree-select.d.ts +0 -67
- package/filter-bar/pipes/pipe-readonly.d.ts +0 -7
- package/filter-bar/pipes/pipe-select.d.ts +0 -30
- package/filter-bar/pipes/pipe-state.d.ts +0 -21
- package/filter-bar/pipes/pipe-text.d.ts +0 -26
- package/filter-bar/pipes/pipe-title.d.ts +0 -27
- package/filter-bar/pipes/pipe-tree-select.d.ts +0 -42
- package/filter-bar/public-api.d.ts +0 -21
- package/form-field/cleaner.d.ts +0 -11
- package/form-field/error.d.ts +0 -8
- package/form-field/fieldset.d.ts +0 -27
- package/form-field/form-field-control.d.ts +0 -40
- package/form-field/form-field.d.ts +0 -298
- package/form-field/form-field.module.d.ts +0 -19
- package/form-field/hint.d.ts +0 -15
- package/form-field/label.d.ts +0 -6
- package/form-field/password-hint.d.ts +0 -53
- package/form-field/password-toggle.d.ts +0 -56
- package/form-field/prefix.d.ts +0 -6
- package/form-field/public-api.d.ts +0 -15
- package/form-field/reactive-password-hint.d.ts +0 -20
- package/form-field/stepper.d.ts +0 -59
- package/form-field/suffix.d.ts +0 -6
- package/form-field/validate.directive.d.ts +0 -53
- package/icon/icon-button.component.d.ts +0 -28
- package/icon/icon-item.component.d.ts +0 -11
- package/icon/icon-registry-providers.d.ts +0 -34
- package/icon/icon-registry.d.ts +0 -50
- package/icon/icon.component.d.ts +0 -33
- package/icon/icon.module.d.ts +0 -9
- package/icon/public-api.d.ts +0 -6
- package/inline-edit/inline-edit.d.ts +0 -161
- package/inline-edit/module.d.ts +0 -7
- package/input/input-errors.d.ts +0 -1
- package/input/input-number-validators.d.ts +0 -35
- package/input/input-number.d.ts +0 -96
- package/input/input-password.d.ts +0 -99
- package/input/input-value-accessor.d.ts +0 -4
- package/input/input.d.ts +0 -109
- package/input/input.module.d.ts +0 -14
- package/input/public-api.d.ts +0 -6
- package/link/link.component.d.ts +0 -53
- package/link/link.module.d.ts +0 -8
- package/link/public-api.d.ts +0 -2
- package/list/list-selection.component.d.ts +0 -196
- package/list/list.component.d.ts +0 -18
- package/list/list.module.d.ts +0 -11
- package/list/public-api.d.ts +0 -3
- package/loader-overlay/loader-overlay.component.d.ts +0 -47
- package/loader-overlay/loader-overlay.module.d.ts +0 -10
- package/loader-overlay/public-api.d.ts +0 -2
- package/markdown/markdown.component.d.ts +0 -31
- package/markdown/markdown.module.d.ts +0 -7
- package/markdown/markdown.service.d.ts +0 -19
- package/markdown/markdown.values.d.ts +0 -10
- package/markdown/public-api.d.ts +0 -4
- package/modal/css-unit.pipe.d.ts +0 -7
- package/modal/modal-control.service.d.ts +0 -20
- package/modal/modal-ref.class.d.ts +0 -37
- package/modal/modal-util.d.ts +0 -15
- package/modal/modal.component.d.ts +0 -141
- package/modal/modal.directive.d.ts +0 -20
- package/modal/modal.module.d.ts +0 -15
- package/modal/modal.service.d.ts +0 -42
- package/modal/modal.type.d.ts +0 -72
- package/modal/public-api.d.ts +0 -6
- package/navbar/navbar-brand.component.d.ts +0 -41
- package/navbar/navbar-item.component.d.ts +0 -131
- package/navbar/navbar-toggle.component.d.ts +0 -23
- package/navbar/navbar.component.d.ts +0 -68
- package/navbar/navbar.module.d.ts +0 -15
- package/navbar/public-api.d.ts +0 -6
- package/navbar/vertical-navbar.component.d.ts +0 -47
- package/navbar-ic/_navbar-ic-theme.scss +0 -81
- package/navbar-ic/index.d.ts +0 -1
- package/navbar-ic/navbar-ic-divider.scss +0 -7
- package/navbar-ic/navbar-ic-header.d.ts +0 -22
- package/navbar-ic/navbar-ic-header.scss +0 -49
- package/navbar-ic/navbar-ic-item.d.ts +0 -144
- package/navbar-ic/navbar-ic-item.scss +0 -92
- package/navbar-ic/navbar-ic-tokens.scss +0 -22
- package/navbar-ic/navbar-ic.animation.d.ts +0 -3
- package/navbar-ic/navbar-ic.d.ts +0 -118
- package/navbar-ic/navbar-ic.module.d.ts +0 -14
- package/navbar-ic/navbar-ic.scss +0 -32
- package/navbar-ic/public-api.d.ts +0 -4
- package/notification-center/notification-center-animations.d.ts +0 -5
- package/notification-center/notification-center.d.ts +0 -184
- package/notification-center/notification-center.module.d.ts +0 -7
- package/notification-center/notification-center.service.d.ts +0 -115
- package/notification-center/notification-item.d.ts +0 -27
- package/notification-center/public-api.d.ts +0 -4
- package/overflow-items/module.d.ts +0 -7
- package/overflow-items/overflow-items.d.ts +0 -152
- package/popover/popover-animations.d.ts +0 -4
- package/popover/popover-confirm.component.d.ts +0 -28
- package/popover/popover.component.d.ts +0 -139
- package/popover/popover.module.d.ts +0 -14
- package/popover/public-api.d.ts +0 -4
- package/progress-bar/progress-bar.component.d.ts +0 -20
- package/progress-bar/progress-bar.module.d.ts +0 -8
- package/progress-bar/public-api.d.ts +0 -2
- package/progress-spinner/progress-spinner.component.d.ts +0 -26
- package/progress-spinner/progress-spinner.module.d.ts +0 -9
- package/progress-spinner/public-api.d.ts +0 -2
- package/public-api.d.ts +0 -1
- package/radio/public-api.d.ts +0 -2
- package/radio/radio.component.d.ts +0 -200
- package/radio/radio.module.d.ts +0 -8
- package/resizer/module.d.ts +0 -7
- package/resizer/resizer.d.ts +0 -75
- package/risk-level/_risk-level-theme.scss +0 -74
- package/risk-level/index.d.ts +0 -1
- package/risk-level/public-api.d.ts +0 -2
- package/risk-level/risk-level-tokens.scss +0 -33
- package/risk-level/risk-level.component.d.ts +0 -21
- package/risk-level/risk-level.component.scss +0 -22
- package/risk-level/risk-level.module.d.ts +0 -12
- package/scrollbar/public-api.d.ts +0 -4
- package/scrollbar/scrollbar.component.d.ts +0 -37
- package/scrollbar/scrollbar.directive.d.ts +0 -29
- package/scrollbar/scrollbar.module.d.ts +0 -8
- package/scrollbar/scrollbar.types.d.ts +0 -33
- package/search-expandable/public-api.d.ts +0 -2
- package/search-expandable/search-expandable.d.ts +0 -89
- package/search-expandable/search-expandable.module.d.ts +0 -7
- package/select/public-api.d.ts +0 -4
- package/select/select-common.d.ts +0 -30
- package/select/select-option.directive.d.ts +0 -21
- package/select/select.component.d.ts +0 -627
- package/select/select.module.d.ts +0 -17
- package/sidebar/public-api.d.ts +0 -2
- package/sidebar/sidebar-animations.d.ts +0 -8
- package/sidebar/sidebar.component.d.ts +0 -80
- package/sidebar/sidebar.module.d.ts +0 -8
- package/sidepanel/public-api.d.ts +0 -6
- package/sidepanel/sidepanel-animations.d.ts +0 -20
- package/sidepanel/sidepanel-config.d.ts +0 -43
- package/sidepanel/sidepanel-container.component.d.ts +0 -67
- package/sidepanel/sidepanel-directives.d.ts +0 -61
- package/sidepanel/sidepanel-ref.d.ts +0 -36
- package/sidepanel/sidepanel.module.d.ts +0 -14
- package/sidepanel/sidepanel.service.d.ts +0 -58
- package/skeleton/module.d.ts +0 -7
- package/skeleton/skeleton.d.ts +0 -17
- package/split-button/public-api.d.ts +0 -2
- package/split-button/split-button.d.ts +0 -37
- package/split-button/split-button.module.d.ts +0 -7
- package/splitter/public-api.d.ts +0 -2
- package/splitter/splitter.component.d.ts +0 -136
- package/splitter/splitter.module.d.ts +0 -8
- package/table/public-api.d.ts +0 -2
- package/table/table.component.d.ts +0 -12
- package/table/table.module.d.ts +0 -9
- package/tabs/paginated-tab-header.d.ts +0 -182
- package/tabs/public-api.d.ts +0 -10
- package/tabs/tab-body.component.d.ts +0 -95
- package/tabs/tab-content.directive.d.ts +0 -9
- package/tabs/tab-group.component.d.ts +0 -137
- package/tabs/tab-header.component.d.ts +0 -32
- package/tabs/tab-label-wrapper.directive.d.ts +0 -29
- package/tabs/tab-label.directive.d.ts +0 -9
- package/tabs/tab-nav-bar.d.ts +0 -91
- package/tabs/tab.component.d.ts +0 -68
- package/tabs/tabs-animations.d.ts +0 -4
- package/tabs/tabs.module.d.ts +0 -20
- package/tags/public-api.d.ts +0 -5
- package/tags/tag-default-options.d.ts +0 -13
- package/tags/tag-input.d.ts +0 -110
- package/tags/tag-list.component.d.ts +0 -373
- package/tags/tag-text-control.d.ts +0 -10
- package/tags/tag.component.d.ts +0 -272
- package/tags/tag.module.d.ts +0 -10
- package/textarea/public-api.d.ts +0 -2
- package/textarea/textarea.component.d.ts +0 -123
- package/textarea/textarea.module.d.ts +0 -10
- package/time-range/constants.d.ts +0 -19
- package/time-range/module.d.ts +0 -10
- package/time-range/time-range-editor.d.ts +0 -65
- package/time-range/time-range-title-as-form-field.d.ts +0 -41
- package/time-range/time-range-title.d.ts +0 -18
- package/time-range/time-range.d.ts +0 -78
- package/time-range/time-range.service.d.ts +0 -25
- package/time-range/types.d.ts +0 -69
- package/timepicker/public-api.d.ts +0 -3
- package/timepicker/timepicker.constants.d.ts +0 -22
- package/timepicker/timepicker.directive.d.ts +0 -159
- package/timepicker/timepicker.module.d.ts +0 -11
- package/timezone/cities-by-filter.pipe.d.ts +0 -7
- package/timezone/public-api.d.ts +0 -6
- package/timezone/timezone-option.component.d.ts +0 -15
- package/timezone/timezone-option.directive.d.ts +0 -22
- package/timezone/timezone-select.component.d.ts +0 -16
- package/timezone/timezone.models.d.ts +0 -16
- package/timezone/timezone.module.d.ts +0 -20
- package/timezone/timezone.utils.d.ts +0 -22
- package/timezone/utc-offset.pipe.d.ts +0 -9
- package/title/public-api.d.ts +0 -2
- package/title/title.directive.d.ts +0 -33
- package/title/title.module.d.ts +0 -8
- package/toast/public-api.d.ts +0 -5
- package/toast/toast-animations.d.ts +0 -5
- package/toast/toast-container.component.d.ts +0 -19
- package/toast/toast.component.d.ts +0 -41
- package/toast/toast.module.d.ts +0 -8
- package/toast/toast.service.d.ts +0 -61
- package/toast/toast.type.d.ts +0 -44
- package/toggle/public-api.d.ts +0 -2
- package/toggle/toggle.component.d.ts +0 -77
- package/toggle/toggle.module.d.ts +0 -8
- package/tooltip/public-api.d.ts +0 -2
- package/tooltip/tooltip.animations.d.ts +0 -8
- package/tooltip/tooltip.component.d.ts +0 -156
- package/tooltip/tooltip.module.d.ts +0 -7
- package/top-bar/module.d.ts +0 -7
- package/top-bar/public-api.d.ts +0 -2
- package/top-bar/top-bar.d.ts +0 -25
- package/tree/control/base-tree-control.d.ts +0 -40
- package/tree/control/flat-tree-control.d.ts +0 -55
- package/tree/control/flat-tree-control.filters.d.ts +0 -27
- package/tree/control/nested-tree-control.d.ts +0 -19
- package/tree/control/tree-control.d.ts +0 -44
- package/tree/data-source/flat-data-source.d.ts +0 -80
- package/tree/data-source/nested-data-source.d.ts +0 -15
- package/tree/node.d.ts +0 -34
- package/tree/outlet.d.ts +0 -9
- package/tree/padding.directive.d.ts +0 -45
- package/tree/public-api.d.ts +0 -16
- package/tree/toggle.d.ts +0 -28
- package/tree/tree-base.d.ts +0 -96
- package/tree/tree-errors.d.ts +0 -25
- package/tree/tree-option.component.d.ts +0 -89
- package/tree/tree-selection.component.d.ts +0 -156
- package/tree/tree.d.ts +0 -6
- package/tree/tree.module.d.ts +0 -16
- package/tree-select/public-api.d.ts +0 -2
- package/tree-select/tree-select.component.d.ts +0 -360
- package/tree-select/tree-select.module.d.ts +0 -15
- package/username/constants.d.ts +0 -15
- package/username/module.d.ts +0 -8
- package/username/types.d.ts +0 -62
- package/username/username.d.ts +0 -68
- package/username/username.pipe.d.ts +0 -23
|
@@ -1,35 +1,590 @@
|
|
|
1
|
-
import { trigger, state, transition, style, animate, group } from '@angular/animations';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, ElementRef, Directive, isDevMode, Input,
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
2
|
+
import { QueryList, inject, ElementRef, Directive, isDevMode, Input, ChangeDetectorRef, InjectionToken, LOCALE_ID, Type, Injectable, Renderer2, DestroyRef, afterNextRender, NgModule, Pipe, contentChildren, booleanAttribute, ViewEncapsulation, ChangeDetectionStrategy, Component, input, EventEmitter, Output, ViewChild, numberAttribute, signal, TemplateRef, NgZone, ViewContainerRef, RendererFactory2, Version } from '@angular/core';
|
|
3
|
+
import { Subject, Subscription, merge, fromEvent, map as map$1, BehaviorSubject, interval, pairwise } from 'rxjs';
|
|
4
|
+
import { tap, debounceTime, filter, map, distinctUntilChanged, delay } from 'rxjs/operators';
|
|
5
|
+
import { _getEventTarget, Platform } from '@angular/cdk/platform';
|
|
6
|
+
import { trigger, state, transition, style, animate, group } from '@angular/animations';
|
|
6
7
|
import { coerceBooleanProperty, coerceNumberProperty, coerceCssPixelValue } from '@angular/cdk/coercion';
|
|
7
8
|
import { toSignal, takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
8
|
-
import { merge, fromEvent, map, BehaviorSubject, Subject, interval, Subscription, pairwise } from 'rxjs';
|
|
9
|
-
import * as i1 from '@koobiq/date-adapter';
|
|
10
9
|
import { DateAdapter as DateAdapter$1 } from '@koobiq/date-adapter';
|
|
10
|
+
import { DOCUMENT } from '@angular/common';
|
|
11
11
|
import { DateFormatter as DateFormatter$1 } from '@koobiq/date-formatter';
|
|
12
|
-
import { Platform } from '@angular/cdk/platform';
|
|
13
12
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
14
|
-
import {
|
|
13
|
+
import { SharedResizeObserver } from '@angular/cdk/observers/private';
|
|
15
14
|
import { Overlay, ScrollDispatcher, CdkScrollable } from '@angular/cdk/overlay';
|
|
16
15
|
import { TooltipSizeArrowSize } from '@koobiq/design-tokens';
|
|
16
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
17
17
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
18
18
|
import { AsyncScheduler } from 'rxjs/internal/scheduler/AsyncScheduler';
|
|
19
|
-
|
|
19
|
+
|
|
20
|
+
const MAC_ENTER = 3;
|
|
21
|
+
const BACKSPACE = 8;
|
|
22
|
+
const TAB = 9;
|
|
23
|
+
const NUM_CENTER = 12;
|
|
24
|
+
const ENTER = 13;
|
|
25
|
+
const SHIFT = 16;
|
|
26
|
+
const CONTROL = 17;
|
|
27
|
+
const ALT = 18;
|
|
28
|
+
const PAUSE = 19;
|
|
29
|
+
const CAPS_LOCK = 20;
|
|
30
|
+
const ESCAPE = 27;
|
|
31
|
+
const SPACE = 32;
|
|
32
|
+
const PAGE_UP = 33;
|
|
33
|
+
const PAGE_DOWN = 34;
|
|
34
|
+
const END = 35;
|
|
35
|
+
const HOME = 36;
|
|
36
|
+
const LEFT_ARROW = 37;
|
|
37
|
+
const UP_ARROW = 38;
|
|
38
|
+
const RIGHT_ARROW = 39;
|
|
39
|
+
const DOWN_ARROW = 40;
|
|
40
|
+
const PLUS_SIGN = 43;
|
|
41
|
+
const PRINT_SCREEN = 44;
|
|
42
|
+
const INSERT = 45;
|
|
43
|
+
const DELETE = 46;
|
|
44
|
+
const ZERO = 48;
|
|
45
|
+
const ONE = 49;
|
|
46
|
+
const TWO = 50;
|
|
47
|
+
const THREE = 51;
|
|
48
|
+
const FOUR = 52;
|
|
49
|
+
const FIVE = 53;
|
|
50
|
+
const SIX = 54;
|
|
51
|
+
const SEVEN = 55;
|
|
52
|
+
const EIGHT = 56;
|
|
53
|
+
const NINE = 57;
|
|
54
|
+
const FF_SEMICOLON = 59; // Firefox (Gecko) fires this for semicolon instead of 186
|
|
55
|
+
const FF_EQUALS = 61; // Firefox (Gecko) fires this for equals instead of 187
|
|
56
|
+
const QUESTION_MARK = 63;
|
|
57
|
+
const AT_SIGN = 64;
|
|
58
|
+
const A = 65;
|
|
59
|
+
const B = 66;
|
|
60
|
+
const C = 67;
|
|
61
|
+
const D = 68;
|
|
62
|
+
const E = 69;
|
|
63
|
+
const F = 70;
|
|
64
|
+
const G = 71;
|
|
65
|
+
const H = 72;
|
|
66
|
+
const I = 73;
|
|
67
|
+
const J = 74;
|
|
68
|
+
const K = 75;
|
|
69
|
+
const L = 76;
|
|
70
|
+
const M = 77;
|
|
71
|
+
const N = 78;
|
|
72
|
+
const O = 79;
|
|
73
|
+
const P = 80;
|
|
74
|
+
const Q = 81;
|
|
75
|
+
const R = 82;
|
|
76
|
+
const S = 83;
|
|
77
|
+
const T = 84;
|
|
78
|
+
const U = 85;
|
|
79
|
+
const V = 86;
|
|
80
|
+
const W = 87;
|
|
81
|
+
const X = 88;
|
|
82
|
+
const Y = 89;
|
|
83
|
+
const Z = 90;
|
|
84
|
+
const META = 91; // WIN_KEY_LEFT
|
|
85
|
+
const MAC_WK_CMD_LEFT = 91;
|
|
86
|
+
const MAC_WK_CMD_RIGHT = 93;
|
|
87
|
+
const CONTEXT_MENU = 93;
|
|
88
|
+
const NUMPAD_ZERO = 96;
|
|
89
|
+
const NUMPAD_ONE = 97;
|
|
90
|
+
const NUMPAD_TWO = 98;
|
|
91
|
+
const NUMPAD_THREE = 99;
|
|
92
|
+
const NUMPAD_FOUR = 100;
|
|
93
|
+
const NUMPAD_FIVE = 101;
|
|
94
|
+
const NUMPAD_SIX = 102;
|
|
95
|
+
const NUMPAD_SEVEN = 103;
|
|
96
|
+
const NUMPAD_EIGHT = 104;
|
|
97
|
+
const NUMPAD_NINE = 105;
|
|
98
|
+
const NUMPAD_MULTIPLY = 106;
|
|
99
|
+
const NUMPAD_PLUS = 107;
|
|
100
|
+
const NUMPAD_MINUS = 109;
|
|
101
|
+
const NUMPAD_PERIOD = 110;
|
|
102
|
+
const NUMPAD_DIVIDE = 111;
|
|
103
|
+
const F1 = 112;
|
|
104
|
+
const F2 = 113;
|
|
105
|
+
const F3 = 114;
|
|
106
|
+
const F4 = 115;
|
|
107
|
+
const F5 = 116;
|
|
108
|
+
const F6 = 117;
|
|
109
|
+
const F7 = 118;
|
|
110
|
+
const F8 = 119;
|
|
111
|
+
const F9 = 120;
|
|
112
|
+
const F10 = 121;
|
|
113
|
+
const F11 = 122;
|
|
114
|
+
const F12 = 123;
|
|
115
|
+
const NUM_LOCK = 144;
|
|
116
|
+
const SCROLL_LOCK = 145;
|
|
117
|
+
const FIRST_MEDIA = 166;
|
|
118
|
+
const FF_MINUS = 173;
|
|
119
|
+
const MUTE = 173; // Firefox (Gecko) fires 181 for MUTE
|
|
120
|
+
const VOLUME_DOWN = 174; // Firefox (Gecko) fires 182 for VOLUME_DOWN
|
|
121
|
+
const VOLUME_UP = 175; // Firefox (Gecko) fires 183 for VOLUME_UP
|
|
122
|
+
const FF_MUTE = 181;
|
|
123
|
+
const FF_VOLUME_DOWN = 182;
|
|
124
|
+
const LAST_MEDIA = 183;
|
|
125
|
+
const FF_VOLUME_UP = 183;
|
|
126
|
+
const SEMICOLON = 186; // Firefox (Gecko) fires 59 for SEMICOLON
|
|
127
|
+
const EQUALS = 187; // Firefox (Gecko) fires 61 for EQUALS
|
|
128
|
+
const COMMA = 188;
|
|
129
|
+
const DASH = 189; // Firefox (Gecko) fires 173 for DASH/MINUS
|
|
130
|
+
const PERIOD = 190;
|
|
131
|
+
const SLASH = 191;
|
|
132
|
+
const APOSTROPHE = 192;
|
|
133
|
+
const TILDE = 192;
|
|
134
|
+
const OPEN_SQUARE_BRACKET = 219;
|
|
135
|
+
const BACKSLASH = 220;
|
|
136
|
+
const CLOSE_SQUARE_BRACKET = 221;
|
|
137
|
+
const SINGLE_QUOTE = 222;
|
|
138
|
+
const MAC_META = 224;
|
|
139
|
+
function hasModifierKey(event, ...modifiers) {
|
|
140
|
+
if (modifiers.length) {
|
|
141
|
+
return modifiers.some((modifier) => event[modifier]);
|
|
142
|
+
}
|
|
143
|
+
return event.altKey || event.shiftKey || event.ctrlKey || event.metaKey;
|
|
144
|
+
}
|
|
145
|
+
function isControl(event) {
|
|
146
|
+
const keyCode = event.keyCode;
|
|
147
|
+
switch (keyCode) {
|
|
148
|
+
case SHIFT:
|
|
149
|
+
case CONTROL:
|
|
150
|
+
case ALT:
|
|
151
|
+
return true;
|
|
152
|
+
default:
|
|
153
|
+
return event.metaKey;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
function isNumberKey({ keyCode }) {
|
|
157
|
+
return keyCode >= ZERO && keyCode <= NINE;
|
|
158
|
+
}
|
|
159
|
+
function isNumpadKey({ keyCode }) {
|
|
160
|
+
return keyCode >= NUMPAD_ZERO && keyCode <= NUMPAD_NINE;
|
|
161
|
+
}
|
|
162
|
+
function isLetterKey({ keyCode }) {
|
|
163
|
+
return keyCode >= A && keyCode <= Z;
|
|
164
|
+
}
|
|
165
|
+
function isFunctionKey({ keyCode }) {
|
|
166
|
+
return keyCode >= F1 && keyCode <= F12;
|
|
167
|
+
}
|
|
168
|
+
function isVerticalMovement({ keyCode }) {
|
|
169
|
+
return [UP_ARROW, DOWN_ARROW, PAGE_DOWN, PAGE_UP, HOME, END].includes(keyCode);
|
|
170
|
+
}
|
|
171
|
+
function isHorizontalMovement({ keyCode }) {
|
|
172
|
+
return [LEFT_ARROW, RIGHT_ARROW, BACKSPACE, DELETE].includes(keyCode);
|
|
173
|
+
}
|
|
174
|
+
function isSelectAll(event) {
|
|
175
|
+
return (event.ctrlKey || event.metaKey) && event.keyCode === A;
|
|
176
|
+
}
|
|
177
|
+
function isCopy(event) {
|
|
178
|
+
return (event.ctrlKey || event.metaKey) && event.keyCode === C;
|
|
179
|
+
}
|
|
180
|
+
function isInput(event) {
|
|
181
|
+
const target = _getEventTarget(event);
|
|
182
|
+
return !!target && (target.tagName === 'INPUT' || target.tagName === 'TEXTAREA');
|
|
183
|
+
}
|
|
184
|
+
function isLeftBracket(event) {
|
|
185
|
+
return event.code === 'BracketLeft';
|
|
186
|
+
}
|
|
187
|
+
function isRightBracket(event) {
|
|
188
|
+
return event.code === 'BracketRight';
|
|
189
|
+
}
|
|
190
|
+
function isDigit({ keyCode }) {
|
|
191
|
+
return [ZERO, ONE, TWO, THREE, FOUR, FIVE, SIX, SEVEN, EIGHT, NINE].includes(keyCode);
|
|
192
|
+
}
|
|
20
193
|
|
|
21
194
|
/**
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* @docs-private
|
|
195
|
+
* This class manages keyboard events for selectable lists. If you pass it a query list
|
|
196
|
+
* of items, it will set the active item correctly when arrow events occur.
|
|
25
197
|
*/
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
198
|
+
class ListKeyManager {
|
|
199
|
+
// Index of the currently active item.
|
|
200
|
+
get activeItemIndex() {
|
|
201
|
+
return this._activeItemIndex;
|
|
202
|
+
}
|
|
203
|
+
// The active item.
|
|
204
|
+
get activeItem() {
|
|
205
|
+
return this._activeItem;
|
|
206
|
+
}
|
|
207
|
+
constructor(_items) {
|
|
208
|
+
this._items = _items;
|
|
209
|
+
/**
|
|
210
|
+
* Stream that emits any time the TAB key is pressed, so components can react
|
|
211
|
+
* when focus is shifted off of the list.
|
|
212
|
+
*/
|
|
213
|
+
this.tabOut = new Subject();
|
|
214
|
+
/** Stream that emits whenever the active item of the list manager changes. */
|
|
215
|
+
this.change = new Subject();
|
|
216
|
+
this.previousActiveItemIndex = -1;
|
|
217
|
+
this._activeItemIndex = -1;
|
|
218
|
+
this.wrap = false;
|
|
219
|
+
this.letterKeyStream = new Subject();
|
|
220
|
+
this.typeaheadSubscription = Subscription.EMPTY;
|
|
221
|
+
this.vertical = true;
|
|
222
|
+
this.scrollSize = 0;
|
|
223
|
+
// Buffer for the letters that the user has pressed when the typeahead option is turned on.
|
|
224
|
+
this.pressedLetters = [];
|
|
225
|
+
this.homeAndEnd = false;
|
|
226
|
+
this.allowedModifierKeys = [];
|
|
227
|
+
/**
|
|
228
|
+
* Predicate function that can be used to check whether an item should be skipped
|
|
229
|
+
* by the key manager. By default, disabled items are skipped.
|
|
230
|
+
*/
|
|
231
|
+
this.skipPredicateFn = (item) => item.disabled;
|
|
232
|
+
if (_items instanceof QueryList) {
|
|
233
|
+
_items.changes.subscribe((newItems) => {
|
|
234
|
+
if (this._activeItem) {
|
|
235
|
+
const itemArray = newItems.toArray();
|
|
236
|
+
const newIndex = itemArray.indexOf(this._activeItem);
|
|
237
|
+
if (newIndex > -1 && newIndex !== this._activeItemIndex) {
|
|
238
|
+
this._activeItemIndex = newIndex;
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
});
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
/** Gets whether the user is currently typing into the manager using the typeahead feature. */
|
|
245
|
+
isTyping() {
|
|
246
|
+
return this.pressedLetters.length > 0;
|
|
247
|
+
}
|
|
248
|
+
withScrollSize(scrollSize) {
|
|
249
|
+
this.scrollSize = scrollSize;
|
|
250
|
+
return this;
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Modifier keys which are allowed to be held down and whose default actions will be prevented
|
|
254
|
+
* as the user is pressing the arrow keys. Defaults to not allowing any modifier keys.
|
|
255
|
+
*/
|
|
256
|
+
withAllowedModifierKeys(keys) {
|
|
257
|
+
this.allowedModifierKeys = keys;
|
|
258
|
+
return this;
|
|
259
|
+
}
|
|
260
|
+
/**
|
|
261
|
+
* Turns on wrapping mode, which ensures that the active item will wrap to
|
|
262
|
+
* the other end of list when there are no more items in the given direction.
|
|
263
|
+
*/
|
|
264
|
+
withWrap(shouldWrap = true) {
|
|
265
|
+
this.wrap = shouldWrap;
|
|
266
|
+
return this;
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Sets the predicate function that determines which items should be skipped by the
|
|
270
|
+
* list key manager.
|
|
271
|
+
* @param predicate Function that determines whether the given item should be skipped.
|
|
272
|
+
*/
|
|
273
|
+
skipPredicate(predicate) {
|
|
274
|
+
this.skipPredicateFn = predicate;
|
|
275
|
+
return this;
|
|
276
|
+
}
|
|
277
|
+
/**
|
|
278
|
+
* Configures whether the key manager should be able to move the selection vertically.
|
|
279
|
+
* @param enabled Whether vertical selection should be enabled.
|
|
280
|
+
*/
|
|
281
|
+
withVerticalOrientation(enabled = true) {
|
|
282
|
+
this.vertical = enabled;
|
|
283
|
+
return this;
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
* Configures the key manager to move the selection horizontally.
|
|
287
|
+
* Passing in `null` will disable horizontal movement.
|
|
288
|
+
* @param direction Direction in which the selection can be moved.
|
|
289
|
+
*/
|
|
290
|
+
withHorizontalOrientation(direction) {
|
|
291
|
+
this.horizontal = direction;
|
|
292
|
+
return this;
|
|
293
|
+
}
|
|
294
|
+
/**
|
|
295
|
+
* Turns on typeahead mode which allows users to set the active item by typing.
|
|
296
|
+
* @param searchLetterIndex letter index for incremental search, if is -1 search is disabled
|
|
297
|
+
* @param debounceInterval Time to wait after the last keystroke before setting the active item.
|
|
298
|
+
*/
|
|
299
|
+
withTypeAhead(debounceInterval = 200, searchLetterIndex = 0) {
|
|
300
|
+
if (this._items.length && this._items.some((item) => typeof item.getLabel !== 'function')) {
|
|
301
|
+
throw Error('ListKeyManager items in typeahead mode must implement the `getLabel` method.');
|
|
302
|
+
}
|
|
303
|
+
this.typeaheadSubscription.unsubscribe();
|
|
304
|
+
// Debounce the presses of non-navigational keys, collect the ones that correspond to letters and convert those
|
|
305
|
+
// letters back into a string. Afterwards find the first item that starts with that string and select it.
|
|
306
|
+
this.typeaheadSubscription = this.letterKeyStream
|
|
307
|
+
.pipe(tap((keyCode) => this.pressedLetters.push(keyCode)), debounceTime(debounceInterval), filter(() => this.pressedLetters.length > 0), map(() => this.pressedLetters.join('')))
|
|
308
|
+
.subscribe((inputString) => {
|
|
309
|
+
if (searchLetterIndex === -1) {
|
|
310
|
+
this.pressedLetters = [];
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
const items = this._items.toArray();
|
|
314
|
+
// Start at 1 because we want to start searching at the item immediately
|
|
315
|
+
// following the current active item.
|
|
316
|
+
for (let i = 1; i < items.length + 1; i++) {
|
|
317
|
+
const index = (this._activeItemIndex + i) % items.length;
|
|
318
|
+
const item = items[index];
|
|
319
|
+
if (!item.disabled &&
|
|
320
|
+
item.getLabel().toUpperCase().trim().indexOf(inputString) === searchLetterIndex) {
|
|
321
|
+
this.setActiveItem(index);
|
|
322
|
+
break;
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
this.pressedLetters = [];
|
|
326
|
+
});
|
|
327
|
+
return this;
|
|
328
|
+
}
|
|
329
|
+
/**
|
|
330
|
+
* Configures the key manager to activate the first and last items
|
|
331
|
+
* respectively when the Home or End key is pressed.
|
|
332
|
+
* @param enabled Whether pressing the Home or End key activates the first/last item.
|
|
333
|
+
*/
|
|
334
|
+
withHomeAndEnd(enabled = true) {
|
|
335
|
+
this.homeAndEnd = enabled;
|
|
336
|
+
return this;
|
|
337
|
+
}
|
|
338
|
+
/**
|
|
339
|
+
* Sets the active item to the item at the index specified.
|
|
340
|
+
* @param item The index of the item to be set as active.
|
|
341
|
+
*/
|
|
342
|
+
setActiveItem(item) {
|
|
343
|
+
this.previousActiveItemIndex = this._activeItemIndex;
|
|
344
|
+
this.updateActiveItem(item);
|
|
345
|
+
if (this._activeItemIndex !== this.previousActiveItemIndex) {
|
|
346
|
+
this.change.next(this._activeItemIndex);
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
/**
|
|
350
|
+
* Sets the active item depending on the key event passed in.
|
|
351
|
+
* @param event Keyboard event to be used for determining which element should be active.
|
|
352
|
+
*/
|
|
353
|
+
onKeydown(event) {
|
|
354
|
+
const keyCode = event.keyCode;
|
|
355
|
+
const modifiers = ['altKey', 'ctrlKey', 'metaKey', 'shiftKey'];
|
|
356
|
+
const isModifierAllowed = modifiers.every((modifier) => {
|
|
357
|
+
return !event[modifier] || this.allowedModifierKeys.indexOf(modifier) > -1;
|
|
358
|
+
});
|
|
359
|
+
switch (keyCode) {
|
|
360
|
+
case TAB:
|
|
361
|
+
this.tabOut.next();
|
|
362
|
+
return;
|
|
363
|
+
case DOWN_ARROW:
|
|
364
|
+
if (this.vertical) {
|
|
365
|
+
this.setNextItemActive();
|
|
366
|
+
break;
|
|
367
|
+
}
|
|
368
|
+
else {
|
|
369
|
+
return;
|
|
370
|
+
}
|
|
371
|
+
case UP_ARROW:
|
|
372
|
+
if (this.vertical) {
|
|
373
|
+
this.setPreviousItemActive();
|
|
374
|
+
break;
|
|
375
|
+
}
|
|
376
|
+
else {
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
case RIGHT_ARROW:
|
|
380
|
+
if (this.horizontal === 'ltr') {
|
|
381
|
+
this.setNextItemActive();
|
|
382
|
+
break;
|
|
383
|
+
}
|
|
384
|
+
else if (this.horizontal === 'rtl') {
|
|
385
|
+
this.setPreviousItemActive();
|
|
386
|
+
break;
|
|
387
|
+
}
|
|
388
|
+
else {
|
|
389
|
+
return;
|
|
390
|
+
}
|
|
391
|
+
case LEFT_ARROW:
|
|
392
|
+
if (this.horizontal === 'ltr') {
|
|
393
|
+
this.setPreviousItemActive();
|
|
394
|
+
break;
|
|
395
|
+
}
|
|
396
|
+
else if (this.horizontal === 'rtl') {
|
|
397
|
+
this.setNextItemActive();
|
|
398
|
+
break;
|
|
399
|
+
}
|
|
400
|
+
else {
|
|
401
|
+
return;
|
|
402
|
+
}
|
|
403
|
+
case HOME:
|
|
404
|
+
if (this.homeAndEnd && isModifierAllowed) {
|
|
405
|
+
this.setFirstItemActive();
|
|
406
|
+
break;
|
|
407
|
+
}
|
|
408
|
+
else {
|
|
409
|
+
return;
|
|
410
|
+
}
|
|
411
|
+
case END:
|
|
412
|
+
if (this.homeAndEnd && isModifierAllowed) {
|
|
413
|
+
this.setLastItemActive();
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
else {
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
default:
|
|
420
|
+
// Attempt to use the `event.key` which also maps it to the user's keyboard language,
|
|
421
|
+
// otherwise fall back to resolving alphanumeric characters via the keyCode.
|
|
422
|
+
if (event.key && event.key.length === 1) {
|
|
423
|
+
this.letterKeyStream.next(event.key.toLocaleUpperCase());
|
|
424
|
+
}
|
|
425
|
+
else if ((keyCode >= A && keyCode <= Z) || (keyCode >= ZERO && keyCode <= NINE)) {
|
|
426
|
+
this.letterKeyStream.next(String.fromCharCode(keyCode));
|
|
427
|
+
}
|
|
428
|
+
// Note that we return here, in order to avoid preventing
|
|
429
|
+
// the default action of non-navigational keys.
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
this.pressedLetters = [];
|
|
433
|
+
event.preventDefault();
|
|
434
|
+
}
|
|
435
|
+
// Sets the active item to the first enabled item in the list.
|
|
436
|
+
setFirstItemActive() {
|
|
437
|
+
this.setActiveItemByIndex(0, 1);
|
|
438
|
+
}
|
|
439
|
+
// Sets the active item to the last enabled item in the list.
|
|
440
|
+
setLastItemActive() {
|
|
441
|
+
this.setActiveItemByIndex(this._items.length - 1, -1);
|
|
442
|
+
}
|
|
443
|
+
// Sets the active item to the next enabled item in the list.
|
|
444
|
+
setNextItemActive() {
|
|
445
|
+
if (this._activeItemIndex < 0) {
|
|
446
|
+
this.setFirstItemActive();
|
|
447
|
+
}
|
|
448
|
+
else {
|
|
449
|
+
this.setActiveItemByDelta(1);
|
|
450
|
+
}
|
|
451
|
+
}
|
|
452
|
+
// Sets the active item to a previous enabled item in the list.
|
|
453
|
+
setPreviousItemActive() {
|
|
454
|
+
if (this._activeItemIndex < 0 && this.wrap) {
|
|
455
|
+
this.setLastItemActive();
|
|
456
|
+
}
|
|
457
|
+
else {
|
|
458
|
+
this.setActiveItemByDelta(-1);
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
setNextPageItemActive(delta = this.scrollSize) {
|
|
462
|
+
const nextItemIndex = this._activeItemIndex + delta;
|
|
463
|
+
if (nextItemIndex >= this._items.length) {
|
|
464
|
+
this.setLastItemActive();
|
|
465
|
+
}
|
|
466
|
+
else {
|
|
467
|
+
this.setActiveItemByDelta(delta);
|
|
468
|
+
}
|
|
469
|
+
}
|
|
470
|
+
setPreviousPageItemActive(delta = this.scrollSize) {
|
|
471
|
+
const nextItemIndex = this._activeItemIndex - delta;
|
|
472
|
+
if (nextItemIndex <= 0) {
|
|
473
|
+
this.setFirstItemActive();
|
|
474
|
+
}
|
|
475
|
+
else {
|
|
476
|
+
this.setActiveItemByDelta(-delta);
|
|
477
|
+
}
|
|
478
|
+
}
|
|
479
|
+
updateActiveItem(item) {
|
|
480
|
+
const itemArray = this._items.toArray();
|
|
481
|
+
const index = typeof item === 'number' ? item : itemArray.indexOf(item);
|
|
482
|
+
this._activeItemIndex = index;
|
|
483
|
+
this._activeItem = itemArray[index];
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* This method sets the active item, given a list of items and the delta between the
|
|
487
|
+
* currently active item and the new active item. It will calculate differently
|
|
488
|
+
* depending on whether wrap mode is turned on.
|
|
489
|
+
*/
|
|
490
|
+
setActiveItemByDelta(delta) {
|
|
491
|
+
if (this.wrap) {
|
|
492
|
+
this.setActiveInWrapMode(delta);
|
|
493
|
+
}
|
|
494
|
+
else {
|
|
495
|
+
this.setActiveInDefaultMode(delta);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Sets the active item properly given "wrap" mode. In other words, it will continue to move
|
|
500
|
+
* down the list until it finds an item that is not disabled, and it will wrap if it
|
|
501
|
+
* encounters either end of the list.
|
|
502
|
+
*/
|
|
503
|
+
setActiveInWrapMode(delta) {
|
|
504
|
+
const items = this.getItemsArray();
|
|
505
|
+
for (let i = 1; i <= items.length; i++) {
|
|
506
|
+
const index = (this._activeItemIndex + delta * i + items.length) % items.length;
|
|
507
|
+
const item = items[index];
|
|
508
|
+
if (!this.skipPredicateFn(item)) {
|
|
509
|
+
this.setActiveItem(index);
|
|
510
|
+
return;
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
/**
|
|
515
|
+
* Sets the active item properly given the default mode. In other words, it will
|
|
516
|
+
* continue to move down the list until it finds an item that is not disabled. If
|
|
517
|
+
* it encounters either end of the list, it will stop and not wrap.
|
|
518
|
+
*/
|
|
519
|
+
setActiveInDefaultMode(delta) {
|
|
520
|
+
this.setActiveItemByIndex(this._activeItemIndex + delta, delta);
|
|
521
|
+
}
|
|
522
|
+
/**
|
|
523
|
+
* Sets the active item to the first enabled item starting at the index specified. If the
|
|
524
|
+
* item is disabled, it will move in the fallbackDelta direction until it either
|
|
525
|
+
* finds an enabled item or encounters the end of the list.
|
|
526
|
+
*/
|
|
527
|
+
setActiveItemByIndex(index, fallbackDelta) {
|
|
528
|
+
const items = this.getItemsArray();
|
|
529
|
+
if (!items[index]) {
|
|
530
|
+
return;
|
|
531
|
+
}
|
|
532
|
+
let curIndex = index;
|
|
533
|
+
while (this.skipPredicateFn(items[curIndex])) {
|
|
534
|
+
curIndex += fallbackDelta;
|
|
535
|
+
if (!items[curIndex]) {
|
|
536
|
+
return;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
this.setActiveItem(curIndex);
|
|
540
|
+
}
|
|
541
|
+
/** Returns the items as an array. */
|
|
542
|
+
getItemsArray() {
|
|
543
|
+
return this._items instanceof QueryList ? this._items.toArray() : this._items;
|
|
544
|
+
}
|
|
545
|
+
}
|
|
546
|
+
|
|
547
|
+
class ActiveDescendantKeyManager extends ListKeyManager {
|
|
548
|
+
/**
|
|
549
|
+
* This method sets the active item to the item at the specified index.
|
|
550
|
+
* It also adds active styles to the newly active item and removes active
|
|
551
|
+
* styles from the previously active item.
|
|
552
|
+
*/
|
|
553
|
+
setActiveItem(index) {
|
|
554
|
+
if (this.activeItem) {
|
|
555
|
+
this.activeItem.setInactiveStyles();
|
|
556
|
+
}
|
|
557
|
+
super.setActiveItem(index);
|
|
558
|
+
if (this.activeItem) {
|
|
559
|
+
this.activeItem.setActiveStyles();
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
class FocusKeyManager extends ListKeyManager {
|
|
565
|
+
constructor() {
|
|
566
|
+
super(...arguments);
|
|
567
|
+
this.origin = 'program';
|
|
568
|
+
}
|
|
569
|
+
setActiveItem(item) {
|
|
570
|
+
super.setActiveItem(item);
|
|
571
|
+
if (this.activeItem) {
|
|
572
|
+
this.activeItem.focus(this.origin);
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
/**
|
|
576
|
+
* Sets the focus origin that will be passed in to the items for any subsequent `focus` calls.
|
|
577
|
+
* @param origin Focus origin to be used when focusing items.
|
|
578
|
+
*/
|
|
579
|
+
setFocusOrigin(origin) {
|
|
580
|
+
this.origin = origin;
|
|
581
|
+
return this;
|
|
582
|
+
}
|
|
583
|
+
getFocusOrigin() {
|
|
584
|
+
return this.origin;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
|
|
33
588
|
/**
|
|
34
589
|
* Koobiq components animation curves
|
|
35
590
|
*
|
|
@@ -126,10 +681,10 @@ class KbqNormalizeWhitespace {
|
|
|
126
681
|
$event.clipboardData?.setData('text', value?.replace(/\u2009/g, ' '));
|
|
127
682
|
}
|
|
128
683
|
}
|
|
129
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
130
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
684
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqNormalizeWhitespace, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
685
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqNormalizeWhitespace, isStandalone: true, selector: "[kbqNormalizeWhitespace]", host: { listeners: { "copy": "onCopy($event)" } }, ngImport: i0 }); }
|
|
131
686
|
}
|
|
132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqNormalizeWhitespace, decorators: [{
|
|
133
688
|
type: Directive,
|
|
134
689
|
args: [{
|
|
135
690
|
selector: '[kbqNormalizeWhitespace]',
|
|
@@ -194,6 +749,8 @@ class KbqColorDirective {
|
|
|
194
749
|
get colorClassName() {
|
|
195
750
|
return `kbq-${this._color}`;
|
|
196
751
|
}
|
|
752
|
+
// TODO: Skipped for migration because:
|
|
753
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
197
754
|
get color() {
|
|
198
755
|
return this._color;
|
|
199
756
|
}
|
|
@@ -218,104 +775,16 @@ class KbqColorDirective {
|
|
|
218
775
|
setDefaultColor(color) {
|
|
219
776
|
this.defaultColor = color;
|
|
220
777
|
}
|
|
221
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
222
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
778
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqColorDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
779
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqColorDirective, isStandalone: true, inputs: { color: "color" }, ngImport: i0 }); }
|
|
223
780
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
781
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqColorDirective, decorators: [{
|
|
225
782
|
type: Directive
|
|
226
783
|
}], ctorParameters: () => [], propDecorators: { color: [{
|
|
227
784
|
type: Input
|
|
228
785
|
}] } });
|
|
229
786
|
|
|
230
|
-
|
|
231
|
-
* An abstraction over the global `window` object.
|
|
232
|
-
*/
|
|
233
|
-
const KBQ_WINDOW = new InjectionToken('[KBQ_WINDOW]', {
|
|
234
|
-
factory: () => {
|
|
235
|
-
const _window = inject(DOCUMENT).defaultView ||
|
|
236
|
-
// Backward compatibility for older Angular versions
|
|
237
|
-
// https://github.com/angular/universal/blob/main/docs/gotchas.md#strategy-3-shims
|
|
238
|
-
// eslint-disable-next-line no-restricted-globals
|
|
239
|
-
window;
|
|
240
|
-
if (!_window) {
|
|
241
|
-
throw new Error('[KBQ_WINDOW] window is not available.');
|
|
242
|
-
}
|
|
243
|
-
return _window;
|
|
244
|
-
}
|
|
245
|
-
});
|
|
246
|
-
|
|
247
|
-
/**
|
|
248
|
-
* Injection token that configures whether the koobiq sanity checks are enabled.
|
|
249
|
-
*
|
|
250
|
-
* @deprecated No longer used and will be removed in next major release.
|
|
251
|
-
*
|
|
252
|
-
* @docs-private
|
|
253
|
-
*/
|
|
254
|
-
const KBQ_SANITY_CHECKS = new InjectionToken('kbq-sanity-checks', {
|
|
255
|
-
providedIn: 'root',
|
|
256
|
-
factory: mcSanityChecksFactory
|
|
257
|
-
});
|
|
258
|
-
/**
|
|
259
|
-
* @deprecated No longer used and will be removed in next major release.
|
|
260
|
-
*
|
|
261
|
-
* @docs-private
|
|
262
|
-
*/
|
|
263
|
-
function mcSanityChecksFactory() {
|
|
264
|
-
return true;
|
|
265
|
-
}
|
|
266
|
-
/**
|
|
267
|
-
* Module that captures anything that should be loaded and/or run for *all* Koobiq
|
|
268
|
-
* components. This includes Bidi, etc.
|
|
269
|
-
*
|
|
270
|
-
* @deprecated No longer used and will be removed in next major release.
|
|
271
|
-
*
|
|
272
|
-
* @docs-private
|
|
273
|
-
*/
|
|
274
|
-
class KbqCommonModule {
|
|
275
|
-
constructor(_sanityChecksEnabled) {
|
|
276
|
-
this._sanityChecksEnabled = _sanityChecksEnabled;
|
|
277
|
-
this.document = inject(DOCUMENT);
|
|
278
|
-
this.window = inject(KBQ_WINDOW);
|
|
279
|
-
// Whether we've done the global sanity checks (e.g. a theme is loaded, there is a doctype).
|
|
280
|
-
this.hasDoneGlobalChecks = false;
|
|
281
|
-
if (this.areChecksEnabled() && !this.hasDoneGlobalChecks) {
|
|
282
|
-
this.checkDoctypeIsDefined();
|
|
283
|
-
this.hasDoneGlobalChecks = true;
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
// Whether any sanity checks are enabled
|
|
287
|
-
areChecksEnabled() {
|
|
288
|
-
return this._sanityChecksEnabled && isDevMode() && !this.isTestEnv();
|
|
289
|
-
}
|
|
290
|
-
// Whether the code is running in tests.
|
|
291
|
-
isTestEnv() {
|
|
292
|
-
return !!(this.window && this.window['__jest__']);
|
|
293
|
-
}
|
|
294
|
-
checkDoctypeIsDefined() {
|
|
295
|
-
if (this.document && !this.document.doctype && isDevMode()) {
|
|
296
|
-
// eslint-disable-next-line no-console
|
|
297
|
-
console.warn('Current document does not have a doctype. This may cause ' +
|
|
298
|
-
'some koobiq components not to behave as expected.');
|
|
299
|
-
}
|
|
300
|
-
}
|
|
301
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: KbqCommonModule, deps: [{ token: KBQ_SANITY_CHECKS, optional: true }], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
302
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.21", ngImport: i0, type: KbqCommonModule, imports: [BidiModule], exports: [BidiModule] }); }
|
|
303
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: KbqCommonModule, imports: [BidiModule, BidiModule] }); }
|
|
304
|
-
}
|
|
305
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: KbqCommonModule, decorators: [{
|
|
306
|
-
type: NgModule,
|
|
307
|
-
args: [{
|
|
308
|
-
imports: [BidiModule],
|
|
309
|
-
exports: [BidiModule]
|
|
310
|
-
}]
|
|
311
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
312
|
-
type: Optional
|
|
313
|
-
}, {
|
|
314
|
-
type: Inject,
|
|
315
|
-
args: [KBQ_SANITY_CHECKS]
|
|
316
|
-
}] }] });
|
|
317
|
-
|
|
318
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
787
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-object-type
|
|
319
788
|
function mixinDisabled(base) {
|
|
320
789
|
return class extends base {
|
|
321
790
|
get disabled() {
|
|
@@ -415,14 +884,6 @@ const isElement = (value) => value instanceof Element;
|
|
|
415
884
|
const isHtmlElementOrNull = (value) => {
|
|
416
885
|
return isHtmlElement(value) || isNull(value);
|
|
417
886
|
};
|
|
418
|
-
/**
|
|
419
|
-
* Will be removed in the next major release
|
|
420
|
-
*
|
|
421
|
-
* @deprecated Use `booleanAttribute` instead
|
|
422
|
-
*/
|
|
423
|
-
function toBoolean(value) {
|
|
424
|
-
return value != null && `${value}` !== 'false';
|
|
425
|
-
}
|
|
426
887
|
const getNodesWithoutComments = (nodes) => {
|
|
427
888
|
const COMMENT_NODE = 8;
|
|
428
889
|
return Array.from(nodes).filter((node) => node.nodeType !== COMMENT_NODE);
|
|
@@ -446,20 +907,20 @@ class KbqHover {
|
|
|
446
907
|
/**
|
|
447
908
|
* Whether the element is hovered.
|
|
448
909
|
*/
|
|
449
|
-
this.hovered = toSignal(merge(fromEvent(this.element, 'mouseenter'), fromEvent(this.element, 'mouseleave')).pipe(map(({ type }) => type === 'mouseenter')), { initialValue: false });
|
|
910
|
+
this.hovered = toSignal(merge(fromEvent(this.element, 'mouseenter'), fromEvent(this.element, 'mouseleave')).pipe(map$1(({ type }) => type === 'mouseenter')), { initialValue: false });
|
|
450
911
|
}
|
|
451
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
452
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
912
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqHover, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
913
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqHover, isStandalone: true, selector: "[kbqHover]", host: { properties: { "class.kbq-hovered": "hovered()" }, classAttribute: "kbq-hover" }, exportAs: ["kbqHover"], ngImport: i0 }); }
|
|
453
914
|
}
|
|
454
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqHover, decorators: [{
|
|
455
916
|
type: Directive,
|
|
456
917
|
args: [{
|
|
457
918
|
selector: '[kbqHover]',
|
|
458
|
-
exportAs: 'kbqHover',
|
|
459
919
|
host: {
|
|
460
920
|
class: 'kbq-hover',
|
|
461
921
|
'[class.kbq-hovered]': 'hovered()'
|
|
462
|
-
}
|
|
922
|
+
},
|
|
923
|
+
exportAs: 'kbqHover'
|
|
463
924
|
}]
|
|
464
925
|
}] });
|
|
465
926
|
|
|
@@ -478,10 +939,10 @@ class KbqReadStateDirective {
|
|
|
478
939
|
}
|
|
479
940
|
this.changeDetectorRef.markForCheck();
|
|
480
941
|
}
|
|
481
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
482
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
942
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqReadStateDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
943
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqReadStateDirective, isStandalone: true, host: { listeners: { "mouseenter": "mouseenterHandler()", "mouseleave": "mouseleaveHandler()", "click": "read.next(true)" } }, ngImport: i0 }); }
|
|
483
944
|
}
|
|
484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
945
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqReadStateDirective, decorators: [{
|
|
485
946
|
type: Directive,
|
|
486
947
|
args: [{
|
|
487
948
|
host: {
|
|
@@ -550,10 +1011,10 @@ class ShowOnFormSubmitErrorStateMatcher {
|
|
|
550
1011
|
isErrorState(control, form) {
|
|
551
1012
|
return !!(control?.invalid && form?.submitted);
|
|
552
1013
|
}
|
|
553
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
554
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1014
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ShowOnFormSubmitErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1015
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ShowOnFormSubmitErrorStateMatcher }); }
|
|
555
1016
|
}
|
|
556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1017
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ShowOnFormSubmitErrorStateMatcher, decorators: [{
|
|
557
1018
|
type: Injectable
|
|
558
1019
|
}] });
|
|
559
1020
|
/**
|
|
@@ -567,10 +1028,10 @@ class ShowRequiredOnSubmitErrorStateMatcher {
|
|
|
567
1028
|
? !!(control?.invalid && form?.submitted)
|
|
568
1029
|
: !!(control?.invalid && control.touched);
|
|
569
1030
|
}
|
|
570
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
571
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1031
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ShowRequiredOnSubmitErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1032
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ShowRequiredOnSubmitErrorStateMatcher }); }
|
|
572
1033
|
}
|
|
573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1034
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ShowRequiredOnSubmitErrorStateMatcher, decorators: [{
|
|
574
1035
|
type: Injectable
|
|
575
1036
|
}] });
|
|
576
1037
|
/** Error state matcher that matches when a control is invalid and dirty or form is submitted. */
|
|
@@ -578,10 +1039,10 @@ class ShowOnControlDirtyErrorStateMatcher {
|
|
|
578
1039
|
isErrorState(control, form) {
|
|
579
1040
|
return !!(control?.invalid && (control.dirty || form?.submitted));
|
|
580
1041
|
}
|
|
581
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
582
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1042
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ShowOnControlDirtyErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1043
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ShowOnControlDirtyErrorStateMatcher }); }
|
|
583
1044
|
}
|
|
584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1045
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ShowOnControlDirtyErrorStateMatcher, decorators: [{
|
|
585
1046
|
type: Injectable
|
|
586
1047
|
}] });
|
|
587
1048
|
/**
|
|
@@ -592,14 +1053,31 @@ class ErrorStateMatcher {
|
|
|
592
1053
|
isErrorState(control, form) {
|
|
593
1054
|
return !!(control?.invalid && (control.touched || form?.submitted));
|
|
594
1055
|
}
|
|
595
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
596
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1056
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ErrorStateMatcher, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1057
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ErrorStateMatcher, providedIn: 'root' }); }
|
|
597
1058
|
}
|
|
598
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ErrorStateMatcher, decorators: [{
|
|
599
1060
|
type: Injectable,
|
|
600
1061
|
args: [{ providedIn: 'root' }]
|
|
601
1062
|
}] });
|
|
602
1063
|
|
|
1064
|
+
/**
|
|
1065
|
+
* An abstraction over the global `window` object.
|
|
1066
|
+
*/
|
|
1067
|
+
const KBQ_WINDOW = new InjectionToken('[KBQ_WINDOW]', {
|
|
1068
|
+
factory: () => {
|
|
1069
|
+
const _window = inject(DOCUMENT).defaultView ||
|
|
1070
|
+
// Backward compatibility for older Angular versions
|
|
1071
|
+
// https://github.com/angular/universal/blob/main/docs/gotchas.md#strategy-3-shims
|
|
1072
|
+
// eslint-disable-next-line no-restricted-globals
|
|
1073
|
+
window;
|
|
1074
|
+
if (!_window) {
|
|
1075
|
+
throw new Error('[KBQ_WINDOW] window is not available.');
|
|
1076
|
+
}
|
|
1077
|
+
return _window;
|
|
1078
|
+
}
|
|
1079
|
+
});
|
|
1080
|
+
|
|
603
1081
|
const INITIAL_PROPERTIES = {
|
|
604
1082
|
all: 'initial',
|
|
605
1083
|
position: 'absolute',
|
|
@@ -694,17 +1172,17 @@ class KbqFieldSizingContent {
|
|
|
694
1172
|
}
|
|
695
1173
|
return ruler.scrollWidth;
|
|
696
1174
|
}
|
|
697
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
698
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1175
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFieldSizingContent, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1176
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqFieldSizingContent, isStandalone: true, selector: "[kbqFieldSizingContent]", host: { classAttribute: "kbq-field-sizing-content" }, exportAs: ["kbqFieldSizingContent"], ngImport: i0 }); }
|
|
699
1177
|
}
|
|
700
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFieldSizingContent, decorators: [{
|
|
701
1179
|
type: Directive,
|
|
702
1180
|
args: [{
|
|
703
1181
|
selector: '[kbqFieldSizingContent]',
|
|
704
|
-
exportAs: 'kbqFieldSizingContent',
|
|
705
1182
|
host: {
|
|
706
1183
|
class: 'kbq-field-sizing-content'
|
|
707
|
-
}
|
|
1184
|
+
},
|
|
1185
|
+
exportAs: 'kbqFieldSizingContent'
|
|
708
1186
|
}]
|
|
709
1187
|
}], ctorParameters: () => [] });
|
|
710
1188
|
|
|
@@ -929,8 +1407,7 @@ const enUSLocaleData = {
|
|
|
929
1407
|
showPopUpNotifications: 'Show pop-up notifications',
|
|
930
1408
|
noNotifications: 'No notifications',
|
|
931
1409
|
failedToLoadNotifications: 'Failed to load notifications',
|
|
932
|
-
repeat: 'Repeat'
|
|
933
|
-
loadingMore: 'Loading more notifications'
|
|
1410
|
+
repeat: 'Repeat'
|
|
934
1411
|
}
|
|
935
1412
|
};
|
|
936
1413
|
|
|
@@ -1145,8 +1622,7 @@ const esLALocaleData = {
|
|
|
1145
1622
|
showPopUpNotifications: 'Mostrar notificaciones emergentes',
|
|
1146
1623
|
noNotifications: 'Sin notificaciones',
|
|
1147
1624
|
failedToLoadNotifications: 'Error al cargar las notificaciones',
|
|
1148
|
-
repeat: 'Repetir'
|
|
1149
|
-
loadingMore: 'Cargando más notificaciones'
|
|
1625
|
+
repeat: 'Repetir'
|
|
1150
1626
|
}
|
|
1151
1627
|
};
|
|
1152
1628
|
|
|
@@ -1361,8 +1837,7 @@ const ptBRLocaleData = {
|
|
|
1361
1837
|
showPopUpNotifications: 'Mostrar notificações pop-up',
|
|
1362
1838
|
noNotifications: 'Sem notificações',
|
|
1363
1839
|
failedToLoadNotifications: 'Falha ao carregar notificações',
|
|
1364
|
-
repeat: 'Repetir'
|
|
1365
|
-
loadingMore: 'Carregando mais notificações'
|
|
1840
|
+
repeat: 'Repetir'
|
|
1366
1841
|
}
|
|
1367
1842
|
};
|
|
1368
1843
|
|
|
@@ -1592,8 +2067,7 @@ const ruRULocaleData = {
|
|
|
1592
2067
|
showPopUpNotifications: 'Показывать всплывающие уведомления',
|
|
1593
2068
|
noNotifications: 'Нет уведомлений',
|
|
1594
2069
|
failedToLoadNotifications: 'Не удалось загрузить уведомления',
|
|
1595
|
-
repeat: 'Повторить'
|
|
1596
|
-
loadingMore: 'Загрузка уведомлений'
|
|
2070
|
+
repeat: 'Повторить'
|
|
1597
2071
|
}
|
|
1598
2072
|
};
|
|
1599
2073
|
|
|
@@ -1809,8 +2283,7 @@ const tkTMLocaleData = {
|
|
|
1809
2283
|
showPopUpNotifications: 'Açylýan bildirişleri görkeziň',
|
|
1810
2284
|
noNotifications: 'Duýduryş ýok',
|
|
1811
2285
|
failedToLoadNotifications: 'Duýduryşlary ýükläp bilmedi',
|
|
1812
|
-
repeat: 'Gaýtalama'
|
|
1813
|
-
loadingMore: 'Duýduryşlar ýüklenýär'
|
|
2286
|
+
repeat: 'Gaýtalama'
|
|
1814
2287
|
}
|
|
1815
2288
|
};
|
|
1816
2289
|
|
|
@@ -2052,10 +2525,12 @@ const kbqLocaleServiceLangAttrNameProvider = (attrName) => ({
|
|
|
2052
2525
|
useValue: attrName
|
|
2053
2526
|
});
|
|
2054
2527
|
class KbqLocaleService {
|
|
2055
|
-
constructor(
|
|
2528
|
+
constructor() {
|
|
2056
2529
|
this.locales = {};
|
|
2057
2530
|
this.document = inject(DOCUMENT);
|
|
2058
2531
|
this.langAttrName = inject(KBQ_LOCALE_SERVICE_LANG_ATTR_NAME);
|
|
2532
|
+
const id = inject(KBQ_LOCALE_ID, { optional: true });
|
|
2533
|
+
const localeData = inject(KBQ_LOCALE_DATA, { optional: true });
|
|
2059
2534
|
this.locales = localeData;
|
|
2060
2535
|
this.id = id || KBQ_DEFAULT_LOCALE_ID;
|
|
2061
2536
|
this.current = this.locales[this.id];
|
|
@@ -2075,23 +2550,13 @@ class KbqLocaleService {
|
|
|
2075
2550
|
getParams(componentName) {
|
|
2076
2551
|
return this.current[componentName];
|
|
2077
2552
|
}
|
|
2078
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2079
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2553
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLocaleService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2554
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLocaleService, providedIn: 'root' }); }
|
|
2080
2555
|
}
|
|
2081
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLocaleService, decorators: [{
|
|
2082
2557
|
type: Injectable,
|
|
2083
2558
|
args: [{ providedIn: 'root' }]
|
|
2084
|
-
}], ctorParameters: () => [
|
|
2085
|
-
type: Optional
|
|
2086
|
-
}, {
|
|
2087
|
-
type: Inject,
|
|
2088
|
-
args: [KBQ_LOCALE_ID]
|
|
2089
|
-
}] }, { type: undefined, decorators: [{
|
|
2090
|
-
type: Optional
|
|
2091
|
-
}, {
|
|
2092
|
-
type: Inject,
|
|
2093
|
-
args: [KBQ_LOCALE_DATA]
|
|
2094
|
-
}] }] });
|
|
2559
|
+
}], ctorParameters: () => [] });
|
|
2095
2560
|
// todo code below need refactor or delete in DS-3603
|
|
2096
2561
|
/** @docs-private */
|
|
2097
2562
|
const KBQ_DEFAULT_PRECISION_SEPARATOR = '.';
|
|
@@ -2171,13 +2636,13 @@ function checkAndNormalizeLocalizedNumber(num, locale) {
|
|
|
2171
2636
|
}
|
|
2172
2637
|
|
|
2173
2638
|
class KbqLocaleServiceModule {
|
|
2174
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2175
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2176
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2639
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLocaleServiceModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
2640
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqLocaleServiceModule }); }
|
|
2641
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLocaleServiceModule, providers: [
|
|
2177
2642
|
{ provide: KBQ_LOCALE_SERVICE, useClass: KbqLocaleService }
|
|
2178
2643
|
] }); }
|
|
2179
2644
|
}
|
|
2180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLocaleServiceModule, decorators: [{
|
|
2181
2646
|
type: NgModule,
|
|
2182
2647
|
args: [{
|
|
2183
2648
|
providers: [
|
|
@@ -2187,21 +2652,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
2187
2652
|
}] });
|
|
2188
2653
|
|
|
2189
2654
|
class DateFormatter extends DateFormatter$1 {
|
|
2190
|
-
constructor(
|
|
2655
|
+
constructor() {
|
|
2656
|
+
const adapter = inject(DateAdapter);
|
|
2657
|
+
const locale = inject(KBQ_DATE_LOCALE);
|
|
2191
2658
|
super(adapter, locale);
|
|
2192
|
-
this.adapter = adapter;
|
|
2193
2659
|
this.localeService = inject(KBQ_LOCALE_SERVICE, { optional: true });
|
|
2660
|
+
this.adapter = adapter;
|
|
2194
2661
|
this.localeService?.changes.pipe(takeUntilDestroyed()).subscribe((locale) => this.setLocale(locale));
|
|
2195
2662
|
}
|
|
2196
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2197
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2663
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: DateFormatter, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2664
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: DateFormatter }); }
|
|
2198
2665
|
}
|
|
2199
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: DateFormatter, decorators: [{
|
|
2200
2667
|
type: Injectable
|
|
2201
|
-
}], ctorParameters: () => [
|
|
2202
|
-
type: Inject,
|
|
2203
|
-
args: [KBQ_DATE_LOCALE]
|
|
2204
|
-
}] }] });
|
|
2668
|
+
}], ctorParameters: () => [] });
|
|
2205
2669
|
|
|
2206
2670
|
class BaseFormatterPipe {
|
|
2207
2671
|
constructor() {
|
|
@@ -2209,15 +2673,72 @@ class BaseFormatterPipe {
|
|
|
2209
2673
|
this.formatter = inject((DateFormatter));
|
|
2210
2674
|
}
|
|
2211
2675
|
}
|
|
2676
|
+
/**
|
|
2677
|
+
* Base class for impure date-formatter pipes that recompute their result
|
|
2678
|
+
* whenever the active locale changes via `KbqLocaleService`.
|
|
2679
|
+
*
|
|
2680
|
+
* The base class owns:
|
|
2681
|
+
* - a subscription to `KbqLocaleService.changes` that invalidates the cache and
|
|
2682
|
+
* marks the host for check (the same approach the built-in `AsyncPipe` uses);
|
|
2683
|
+
* - caching by `(value, args, localeId)`, so the impure `transform()` only does
|
|
2684
|
+
* real work when an input or the active locale actually changed.
|
|
2685
|
+
*
|
|
2686
|
+
* Subclasses implement `format()`, which receives the raw pipe input(s) — a
|
|
2687
|
+
* single value for absolute/relative pipes, or a `[from, to]` tuple for range
|
|
2688
|
+
* pipes — deserializes via `this.adapter` and calls the matching
|
|
2689
|
+
* `DateFormatter` method.
|
|
2690
|
+
*
|
|
2691
|
+
* @docs-private
|
|
2692
|
+
*/
|
|
2693
|
+
class BaseLocaleAwareFormatterPipe extends BaseFormatterPipe {
|
|
2694
|
+
constructor() {
|
|
2695
|
+
super();
|
|
2696
|
+
this.changeDetectorRef = inject(ChangeDetectorRef);
|
|
2697
|
+
this.localeService = inject(KBQ_LOCALE_SERVICE, { optional: true });
|
|
2698
|
+
this.cachedValue = null;
|
|
2699
|
+
this.cachedArgs = [];
|
|
2700
|
+
this.cachedLocaleId = null;
|
|
2701
|
+
this.cachedResult = '';
|
|
2702
|
+
this.hasCache = false;
|
|
2703
|
+
this.localeService?.changes.pipe(takeUntilDestroyed()).subscribe(() => {
|
|
2704
|
+
this.hasCache = false;
|
|
2705
|
+
this.changeDetectorRef.markForCheck();
|
|
2706
|
+
});
|
|
2707
|
+
}
|
|
2708
|
+
transform(value, ...args) {
|
|
2709
|
+
const currentLocaleId = this.localeService?.id ?? null;
|
|
2710
|
+
if (this.hasCache &&
|
|
2711
|
+
value === this.cachedValue &&
|
|
2712
|
+
currentLocaleId === this.cachedLocaleId &&
|
|
2713
|
+
this.argsEqual(args)) {
|
|
2714
|
+
return this.cachedResult;
|
|
2715
|
+
}
|
|
2716
|
+
this.cachedResult = this.format(value, ...args);
|
|
2717
|
+
this.cachedValue = value;
|
|
2718
|
+
this.cachedArgs = args;
|
|
2719
|
+
this.cachedLocaleId = currentLocaleId;
|
|
2720
|
+
this.hasCache = true;
|
|
2721
|
+
return this.cachedResult;
|
|
2722
|
+
}
|
|
2723
|
+
argsEqual(args) {
|
|
2724
|
+
if (args.length !== this.cachedArgs.length)
|
|
2725
|
+
return false;
|
|
2726
|
+
for (let i = 0; i < args.length; i++) {
|
|
2727
|
+
if (args[i] !== this.cachedArgs[i])
|
|
2728
|
+
return false;
|
|
2729
|
+
}
|
|
2730
|
+
return true;
|
|
2731
|
+
}
|
|
2732
|
+
}
|
|
2212
2733
|
class AbsoluteDateFormatterPipe extends BaseFormatterPipe {
|
|
2213
2734
|
transform(value, currYear) {
|
|
2214
2735
|
const date = this.adapter.deserialize(value);
|
|
2215
2736
|
return date ? this.formatter.absoluteLongDate(date, currYear) : '';
|
|
2216
2737
|
}
|
|
2217
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2218
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2738
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2739
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateFormatterPipe, isStandalone: true, name: "absoluteLongDate" }); }
|
|
2219
2740
|
}
|
|
2220
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateFormatterPipe, decorators: [{
|
|
2221
2742
|
type: Pipe,
|
|
2222
2743
|
args: [{
|
|
2223
2744
|
name: 'absoluteLongDate'
|
|
@@ -2228,10 +2749,10 @@ class AbsoluteDateFormatterImpurePipe extends AbsoluteDateFormatterPipe {
|
|
|
2228
2749
|
transform(value, currYear) {
|
|
2229
2750
|
return super.transform(value, currYear);
|
|
2230
2751
|
}
|
|
2231
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2232
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2752
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2753
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateFormatterImpurePipe, isStandalone: true, name: "absoluteLongDateImpurePipe", pure: false }); }
|
|
2233
2754
|
}
|
|
2234
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateFormatterImpurePipe, decorators: [{
|
|
2235
2756
|
type: Pipe,
|
|
2236
2757
|
args: [{
|
|
2237
2758
|
name: 'absoluteLongDateImpurePipe',
|
|
@@ -2243,10 +2764,10 @@ class AbsoluteDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
|
2243
2764
|
const date = this.adapter.deserialize(value);
|
|
2244
2765
|
return date ? this.formatter.absoluteLongDateTime(date, options) : '';
|
|
2245
2766
|
}
|
|
2246
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2247
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2767
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2768
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, isStandalone: true, name: "absoluteLongDateTime" }); }
|
|
2248
2769
|
}
|
|
2249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, decorators: [{
|
|
2250
2771
|
type: Pipe,
|
|
2251
2772
|
args: [{
|
|
2252
2773
|
name: 'absoluteLongDateTime'
|
|
@@ -2257,10 +2778,10 @@ class AbsoluteDateTimeFormatterImpurePipe extends AbsoluteDateTimeFormatterPipe
|
|
|
2257
2778
|
transform(value, options) {
|
|
2258
2779
|
return super.transform(value, options);
|
|
2259
2780
|
}
|
|
2260
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2261
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2781
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2782
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateTimeFormatterImpurePipe, isStandalone: true, name: "absoluteLongDateTimeImpurePipe", pure: false }); }
|
|
2262
2783
|
}
|
|
2263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateTimeFormatterImpurePipe, decorators: [{
|
|
2264
2785
|
type: Pipe,
|
|
2265
2786
|
args: [{
|
|
2266
2787
|
name: 'absoluteLongDateTimeImpurePipe',
|
|
@@ -2272,10 +2793,10 @@ class AbsoluteDateShortFormatterPipe extends BaseFormatterPipe {
|
|
|
2272
2793
|
const date = this.adapter.deserialize(value);
|
|
2273
2794
|
return date ? this.formatter.absoluteShortDate(date, currYear) : '';
|
|
2274
2795
|
}
|
|
2275
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2276
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2796
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateShortFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2797
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateShortFormatterPipe, isStandalone: true, name: "absoluteShortDate" }); }
|
|
2277
2798
|
}
|
|
2278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateShortFormatterPipe, decorators: [{
|
|
2279
2800
|
type: Pipe,
|
|
2280
2801
|
args: [{
|
|
2281
2802
|
name: 'absoluteShortDate'
|
|
@@ -2286,10 +2807,10 @@ class AbsoluteDateShortFormatterImpurePipe extends AbsoluteDateShortFormatterPip
|
|
|
2286
2807
|
transform(value, currYear) {
|
|
2287
2808
|
return super.transform(value, currYear);
|
|
2288
2809
|
}
|
|
2289
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2290
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2810
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateShortFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2811
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateShortFormatterImpurePipe, isStandalone: true, name: "absoluteShortDateImpurePipe", pure: false }); }
|
|
2291
2812
|
}
|
|
2292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateShortFormatterImpurePipe, decorators: [{
|
|
2293
2814
|
type: Pipe,
|
|
2294
2815
|
args: [{
|
|
2295
2816
|
name: 'absoluteShortDateImpurePipe',
|
|
@@ -2301,10 +2822,10 @@ class AbsoluteShortDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
|
2301
2822
|
const date = this.adapter.deserialize(value);
|
|
2302
2823
|
return date ? this.formatter.absoluteShortDateTime(date, options) : '';
|
|
2303
2824
|
}
|
|
2304
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2305
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2825
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2826
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, isStandalone: true, name: "absoluteShortDateTime" }); }
|
|
2306
2827
|
}
|
|
2307
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, decorators: [{
|
|
2308
2829
|
type: Pipe,
|
|
2309
2830
|
args: [{
|
|
2310
2831
|
name: 'absoluteShortDateTime'
|
|
@@ -2315,10 +2836,10 @@ class AbsoluteShortDateTimeFormatterImpurePipe extends AbsoluteShortDateTimeForm
|
|
|
2315
2836
|
transform(value, options) {
|
|
2316
2837
|
return super.transform(value, options);
|
|
2317
2838
|
}
|
|
2318
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2319
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2839
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteShortDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2840
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteShortDateTimeFormatterImpurePipe, isStandalone: true, name: "absoluteShortDateTimeImpurePipe", pure: false }); }
|
|
2320
2841
|
}
|
|
2321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteShortDateTimeFormatterImpurePipe, decorators: [{
|
|
2322
2843
|
type: Pipe,
|
|
2323
2844
|
args: [{
|
|
2324
2845
|
name: 'absoluteShortDateTimeImpurePipe',
|
|
@@ -2330,10 +2851,10 @@ class RelativeDateFormatterPipe extends BaseFormatterPipe {
|
|
|
2330
2851
|
const date = this.adapter.deserialize(value);
|
|
2331
2852
|
return date ? this.formatter.relativeLongDate(date) : '';
|
|
2332
2853
|
}
|
|
2333
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2334
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2854
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2855
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateFormatterPipe, isStandalone: true, name: "relativeLongDate" }); }
|
|
2335
2856
|
}
|
|
2336
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateFormatterPipe, decorators: [{
|
|
2337
2858
|
type: Pipe,
|
|
2338
2859
|
args: [{
|
|
2339
2860
|
name: 'relativeLongDate'
|
|
@@ -2344,10 +2865,10 @@ class RelativeDateFormatterImpurePipe extends RelativeDateFormatterPipe {
|
|
|
2344
2865
|
transform(value) {
|
|
2345
2866
|
return super.transform(value);
|
|
2346
2867
|
}
|
|
2347
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2348
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2868
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2869
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateFormatterImpurePipe, isStandalone: true, name: "relativeLongDateImpurePipe", pure: false }); }
|
|
2349
2870
|
}
|
|
2350
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateFormatterImpurePipe, decorators: [{
|
|
2351
2872
|
type: Pipe,
|
|
2352
2873
|
args: [{
|
|
2353
2874
|
name: 'relativeLongDateImpurePipe',
|
|
@@ -2359,10 +2880,10 @@ class RelativeDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
|
2359
2880
|
const date = this.adapter.deserialize(value);
|
|
2360
2881
|
return date ? this.formatter.relativeLongDateTime(date, options) : '';
|
|
2361
2882
|
}
|
|
2362
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2363
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2883
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2884
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateTimeFormatterPipe, isStandalone: true, name: "relativeLongDateTime" }); }
|
|
2364
2885
|
}
|
|
2365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateTimeFormatterPipe, decorators: [{
|
|
2366
2887
|
type: Pipe,
|
|
2367
2888
|
args: [{
|
|
2368
2889
|
name: 'relativeLongDateTime'
|
|
@@ -2373,10 +2894,10 @@ class RelativeDateTimeFormatterImpurePipe extends RelativeDateTimeFormatterPipe
|
|
|
2373
2894
|
transform(value, options) {
|
|
2374
2895
|
return super.transform(value, options);
|
|
2375
2896
|
}
|
|
2376
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2377
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2897
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2898
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateTimeFormatterImpurePipe, isStandalone: true, name: "relativeLongDateTimeImpurePipe", pure: false }); }
|
|
2378
2899
|
}
|
|
2379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateTimeFormatterImpurePipe, decorators: [{
|
|
2380
2901
|
type: Pipe,
|
|
2381
2902
|
args: [{
|
|
2382
2903
|
name: 'relativeLongDateTimeImpurePipe',
|
|
@@ -2388,10 +2909,10 @@ class RelativeShortDateFormatterPipe extends BaseFormatterPipe {
|
|
|
2388
2909
|
const date = this.adapter.deserialize(value);
|
|
2389
2910
|
return date ? this.formatter.relativeShortDate(date) : '';
|
|
2390
2911
|
}
|
|
2391
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2392
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2912
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2913
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateFormatterPipe, isStandalone: true, name: "relativeShortDate" }); }
|
|
2393
2914
|
}
|
|
2394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateFormatterPipe, decorators: [{
|
|
2395
2916
|
type: Pipe,
|
|
2396
2917
|
args: [{
|
|
2397
2918
|
name: 'relativeShortDate'
|
|
@@ -2402,10 +2923,10 @@ class RelativeShortDateFormatterImpurePipe extends RelativeShortDateFormatterPip
|
|
|
2402
2923
|
transform(value) {
|
|
2403
2924
|
return super.transform(value);
|
|
2404
2925
|
}
|
|
2405
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2406
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2926
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2927
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateFormatterImpurePipe, isStandalone: true, name: "relativeShortDateImpurePipe", pure: false }); }
|
|
2407
2928
|
}
|
|
2408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateFormatterImpurePipe, decorators: [{
|
|
2409
2930
|
type: Pipe,
|
|
2410
2931
|
args: [{
|
|
2411
2932
|
name: 'relativeShortDateImpurePipe',
|
|
@@ -2417,10 +2938,10 @@ class RelativeShortDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
|
2417
2938
|
const date = this.adapter.deserialize(value);
|
|
2418
2939
|
return date ? this.formatter.relativeShortDateTime(date, options) : '';
|
|
2419
2940
|
}
|
|
2420
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2421
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2941
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2942
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, isStandalone: true, name: "relativeShortDateTime" }); }
|
|
2422
2943
|
}
|
|
2423
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, decorators: [{
|
|
2424
2945
|
type: Pipe,
|
|
2425
2946
|
args: [{
|
|
2426
2947
|
name: 'relativeShortDateTime'
|
|
@@ -2431,10 +2952,10 @@ class RelativeShortDateTimeFormatterImpurePipe extends RelativeShortDateTimeForm
|
|
|
2431
2952
|
transform(value, options) {
|
|
2432
2953
|
return super.transform(value, options);
|
|
2433
2954
|
}
|
|
2434
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2435
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2955
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2956
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateTimeFormatterImpurePipe, isStandalone: true, name: "relativeShortDateTimeImpurePipe", pure: false }); }
|
|
2436
2957
|
}
|
|
2437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2958
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateTimeFormatterImpurePipe, decorators: [{
|
|
2438
2959
|
type: Pipe,
|
|
2439
2960
|
args: [{
|
|
2440
2961
|
name: 'relativeShortDateTimeImpurePipe',
|
|
@@ -2447,10 +2968,10 @@ class RangeDateFormatterPipe extends BaseFormatterPipe {
|
|
|
2447
2968
|
const date2 = this.adapter.deserialize(value2);
|
|
2448
2969
|
return this.formatter.rangeLongDate(date1, date2);
|
|
2449
2970
|
}
|
|
2450
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2451
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2971
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2972
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RangeDateFormatterPipe, isStandalone: true, name: "rangeLongDate" }); }
|
|
2452
2973
|
}
|
|
2453
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateFormatterPipe, decorators: [{
|
|
2454
2975
|
type: Pipe,
|
|
2455
2976
|
args: [{
|
|
2456
2977
|
name: 'rangeLongDate'
|
|
@@ -2461,10 +2982,10 @@ class RangeDateFormatterImpurePipe extends RangeDateFormatterPipe {
|
|
|
2461
2982
|
transform([value1, value2]) {
|
|
2462
2983
|
return super.transform([value1, value2]);
|
|
2463
2984
|
}
|
|
2464
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2465
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2985
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
2986
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RangeDateFormatterImpurePipe, isStandalone: true, name: "rangeLongDateImpurePipe", pure: false }); }
|
|
2466
2987
|
}
|
|
2467
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateFormatterImpurePipe, decorators: [{
|
|
2468
2989
|
type: Pipe,
|
|
2469
2990
|
args: [{
|
|
2470
2991
|
name: 'rangeLongDateImpurePipe',
|
|
@@ -2477,10 +2998,10 @@ class RangeShortDateFormatterPipe extends BaseFormatterPipe {
|
|
|
2477
2998
|
const date2 = this.adapter.deserialize(value2);
|
|
2478
2999
|
return this.formatter.rangeShortDate(date1, date2);
|
|
2479
3000
|
}
|
|
2480
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2481
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3001
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3002
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateFormatterPipe, isStandalone: true, name: "rangeShortDate" }); }
|
|
2482
3003
|
}
|
|
2483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateFormatterPipe, decorators: [{
|
|
2484
3005
|
type: Pipe,
|
|
2485
3006
|
args: [{
|
|
2486
3007
|
name: 'rangeShortDate'
|
|
@@ -2491,10 +3012,10 @@ class RangeShortDateFormatterImpurePipe extends RangeShortDateFormatterPipe {
|
|
|
2491
3012
|
transform([value1, value2]) {
|
|
2492
3013
|
return super.transform([value1, value2]);
|
|
2493
3014
|
}
|
|
2494
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2495
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3015
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3016
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateFormatterImpurePipe, isStandalone: true, name: "rangeShortDateImpurePipe", pure: false }); }
|
|
2496
3017
|
}
|
|
2497
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateFormatterImpurePipe, decorators: [{
|
|
2498
3019
|
type: Pipe,
|
|
2499
3020
|
args: [{
|
|
2500
3021
|
name: 'rangeShortDateImpurePipe',
|
|
@@ -2507,10 +3028,10 @@ class RangeDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
|
2507
3028
|
const date2 = this.adapter.deserialize(value2);
|
|
2508
3029
|
return this.formatter.rangeLongDateTime(date1, date2, options);
|
|
2509
3030
|
}
|
|
2510
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2511
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3031
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3032
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RangeDateTimeFormatterPipe, isStandalone: true, name: "rangeLongDateTime" }); }
|
|
2512
3033
|
}
|
|
2513
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3034
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateTimeFormatterPipe, decorators: [{
|
|
2514
3035
|
type: Pipe,
|
|
2515
3036
|
args: [{
|
|
2516
3037
|
name: 'rangeLongDateTime'
|
|
@@ -2521,86 +3042,319 @@ class RangeDateTimeFormatterImpurePipe extends RangeDateTimeFormatterPipe {
|
|
|
2521
3042
|
transform([value1, value2], options) {
|
|
2522
3043
|
return super.transform([value1, value2], options);
|
|
2523
3044
|
}
|
|
2524
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2525
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3045
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3046
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RangeDateTimeFormatterImpurePipe, isStandalone: true, name: "rangeLongDateTimeImpurePipe", pure: false }); }
|
|
3047
|
+
}
|
|
3048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateTimeFormatterImpurePipe, decorators: [{
|
|
3049
|
+
type: Pipe,
|
|
3050
|
+
args: [{
|
|
3051
|
+
name: 'rangeLongDateTimeImpurePipe',
|
|
3052
|
+
pure: false
|
|
3053
|
+
}]
|
|
3054
|
+
}] });
|
|
3055
|
+
class RangeMiddleDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
3056
|
+
transform([value1, value2], options) {
|
|
3057
|
+
const date1 = this.adapter.deserialize(value1);
|
|
3058
|
+
const date2 = this.adapter.deserialize(value2);
|
|
3059
|
+
return this.formatter.rangeMiddleDateTime(date1, date2, options);
|
|
3060
|
+
}
|
|
3061
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3062
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, isStandalone: true, name: "rangeMiddleDateTime" }); }
|
|
3063
|
+
}
|
|
3064
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeMiddleDateTimeFormatterPipe, decorators: [{
|
|
3065
|
+
type: Pipe,
|
|
3066
|
+
args: [{
|
|
3067
|
+
name: 'rangeMiddleDateTime'
|
|
3068
|
+
}]
|
|
3069
|
+
}] });
|
|
3070
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
3071
|
+
class RangeMiddleDateTimeFormatterImpurePipe extends RangeMiddleDateTimeFormatterPipe {
|
|
3072
|
+
transform([value1, value2], options) {
|
|
3073
|
+
return super.transform([value1, value2], options);
|
|
3074
|
+
}
|
|
3075
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeMiddleDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3076
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RangeMiddleDateTimeFormatterImpurePipe, isStandalone: true, name: "rangeMiddleDateTimeImpurePipe", pure: false }); }
|
|
3077
|
+
}
|
|
3078
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeMiddleDateTimeFormatterImpurePipe, decorators: [{
|
|
3079
|
+
type: Pipe,
|
|
3080
|
+
args: [{
|
|
3081
|
+
name: 'rangeMiddleDateTimeImpurePipe',
|
|
3082
|
+
pure: false
|
|
3083
|
+
}]
|
|
3084
|
+
}] });
|
|
3085
|
+
class RangeShortDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
3086
|
+
transform([value1, value2], options) {
|
|
3087
|
+
const date1 = this.adapter.deserialize(value1);
|
|
3088
|
+
const date2 = this.adapter.deserialize(value2);
|
|
3089
|
+
return this.formatter.rangeShortDateTime(date1, date2, options);
|
|
3090
|
+
}
|
|
3091
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateTimeFormatterPipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3092
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateTimeFormatterPipe, isStandalone: true, name: "rangeShortDateTime" }); }
|
|
3093
|
+
}
|
|
3094
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateTimeFormatterPipe, decorators: [{
|
|
3095
|
+
type: Pipe,
|
|
3096
|
+
args: [{
|
|
3097
|
+
name: 'rangeShortDateTime'
|
|
3098
|
+
}]
|
|
3099
|
+
}] });
|
|
3100
|
+
// eslint-disable-next-line @angular-eslint/use-pipe-transform-interface
|
|
3101
|
+
class RangeShortDateTimeFormatterImpurePipe extends RangeShortDateTimeFormatterPipe {
|
|
3102
|
+
transform([value1, value2], options) {
|
|
3103
|
+
return super.transform([value1, value2], options);
|
|
3104
|
+
}
|
|
3105
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateTimeFormatterImpurePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3106
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateTimeFormatterImpurePipe, isStandalone: true, name: "rangeShortDateTimeImpurePipe", pure: false }); }
|
|
3107
|
+
}
|
|
3108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateTimeFormatterImpurePipe, decorators: [{
|
|
3109
|
+
type: Pipe,
|
|
3110
|
+
args: [{
|
|
3111
|
+
name: 'rangeShortDateTimeImpurePipe',
|
|
3112
|
+
pure: false
|
|
3113
|
+
}]
|
|
3114
|
+
}] });
|
|
3115
|
+
// Impure pipes that recompute on `KbqLocaleService` locale changes (see `BaseLocaleAwareFormatterPipe`).
|
|
3116
|
+
// Prefer these `kbq`-prefixed pipes when the locale can change at runtime; the pure pipes above are
|
|
3117
|
+
// kept for static usages and backward compatibility.
|
|
3118
|
+
class KbqAbsoluteLongDatePipe extends BaseLocaleAwareFormatterPipe {
|
|
3119
|
+
transform(value, currYear) {
|
|
3120
|
+
return super.transform(value, currYear);
|
|
3121
|
+
}
|
|
3122
|
+
format(value, currYear) {
|
|
3123
|
+
const date = this.adapter.deserialize(value);
|
|
3124
|
+
return date ? this.formatter.absoluteLongDate(date, currYear) : '';
|
|
3125
|
+
}
|
|
3126
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteLongDatePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3127
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteLongDatePipe, isStandalone: true, name: "kbqAbsoluteLongDate", pure: false }); }
|
|
3128
|
+
}
|
|
3129
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteLongDatePipe, decorators: [{
|
|
3130
|
+
type: Pipe,
|
|
3131
|
+
args: [{
|
|
3132
|
+
name: 'kbqAbsoluteLongDate',
|
|
3133
|
+
pure: false
|
|
3134
|
+
}]
|
|
3135
|
+
}] });
|
|
3136
|
+
class KbqAbsoluteShortDatePipe extends BaseLocaleAwareFormatterPipe {
|
|
3137
|
+
transform(value, currYear) {
|
|
3138
|
+
return super.transform(value, currYear);
|
|
3139
|
+
}
|
|
3140
|
+
format(value, currYear) {
|
|
3141
|
+
const date = this.adapter.deserialize(value);
|
|
3142
|
+
return date ? this.formatter.absoluteShortDate(date, currYear) : '';
|
|
3143
|
+
}
|
|
3144
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteShortDatePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3145
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteShortDatePipe, isStandalone: true, name: "kbqAbsoluteShortDate", pure: false }); }
|
|
3146
|
+
}
|
|
3147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteShortDatePipe, decorators: [{
|
|
3148
|
+
type: Pipe,
|
|
3149
|
+
args: [{
|
|
3150
|
+
name: 'kbqAbsoluteShortDate',
|
|
3151
|
+
pure: false
|
|
3152
|
+
}]
|
|
3153
|
+
}] });
|
|
3154
|
+
class KbqAbsoluteLongDateTimePipe extends BaseLocaleAwareFormatterPipe {
|
|
3155
|
+
transform(value, options) {
|
|
3156
|
+
return super.transform(value, options);
|
|
3157
|
+
}
|
|
3158
|
+
format(value, options) {
|
|
3159
|
+
const date = this.adapter.deserialize(value);
|
|
3160
|
+
return date ? this.formatter.absoluteLongDateTime(date, options) : '';
|
|
3161
|
+
}
|
|
3162
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteLongDateTimePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3163
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteLongDateTimePipe, isStandalone: true, name: "kbqAbsoluteLongDateTime", pure: false }); }
|
|
3164
|
+
}
|
|
3165
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteLongDateTimePipe, decorators: [{
|
|
3166
|
+
type: Pipe,
|
|
3167
|
+
args: [{
|
|
3168
|
+
name: 'kbqAbsoluteLongDateTime',
|
|
3169
|
+
pure: false
|
|
3170
|
+
}]
|
|
3171
|
+
}] });
|
|
3172
|
+
class KbqAbsoluteShortDateTimePipe extends BaseLocaleAwareFormatterPipe {
|
|
3173
|
+
transform(value, options) {
|
|
3174
|
+
return super.transform(value, options);
|
|
3175
|
+
}
|
|
3176
|
+
format(value, options) {
|
|
3177
|
+
const date = this.adapter.deserialize(value);
|
|
3178
|
+
return date ? this.formatter.absoluteShortDateTime(date, options) : '';
|
|
3179
|
+
}
|
|
3180
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteShortDateTimePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3181
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteShortDateTimePipe, isStandalone: true, name: "kbqAbsoluteShortDateTime", pure: false }); }
|
|
3182
|
+
}
|
|
3183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbsoluteShortDateTimePipe, decorators: [{
|
|
3184
|
+
type: Pipe,
|
|
3185
|
+
args: [{
|
|
3186
|
+
name: 'kbqAbsoluteShortDateTime',
|
|
3187
|
+
pure: false
|
|
3188
|
+
}]
|
|
3189
|
+
}] });
|
|
3190
|
+
class KbqRelativeLongDatePipe extends BaseLocaleAwareFormatterPipe {
|
|
3191
|
+
transform(value) {
|
|
3192
|
+
return super.transform(value);
|
|
3193
|
+
}
|
|
3194
|
+
format(value) {
|
|
3195
|
+
const date = this.adapter.deserialize(value);
|
|
3196
|
+
return date ? this.formatter.relativeLongDate(date) : '';
|
|
3197
|
+
}
|
|
3198
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeLongDatePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3199
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeLongDatePipe, isStandalone: true, name: "kbqRelativeLongDate", pure: false }); }
|
|
3200
|
+
}
|
|
3201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeLongDatePipe, decorators: [{
|
|
3202
|
+
type: Pipe,
|
|
3203
|
+
args: [{
|
|
3204
|
+
name: 'kbqRelativeLongDate',
|
|
3205
|
+
pure: false
|
|
3206
|
+
}]
|
|
3207
|
+
}] });
|
|
3208
|
+
class KbqRelativeShortDatePipe extends BaseLocaleAwareFormatterPipe {
|
|
3209
|
+
transform(value) {
|
|
3210
|
+
return super.transform(value);
|
|
3211
|
+
}
|
|
3212
|
+
format(value) {
|
|
3213
|
+
const date = this.adapter.deserialize(value);
|
|
3214
|
+
return date ? this.formatter.relativeShortDate(date) : '';
|
|
3215
|
+
}
|
|
3216
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeShortDatePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3217
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeShortDatePipe, isStandalone: true, name: "kbqRelativeShortDate", pure: false }); }
|
|
3218
|
+
}
|
|
3219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeShortDatePipe, decorators: [{
|
|
3220
|
+
type: Pipe,
|
|
3221
|
+
args: [{
|
|
3222
|
+
name: 'kbqRelativeShortDate',
|
|
3223
|
+
pure: false
|
|
3224
|
+
}]
|
|
3225
|
+
}] });
|
|
3226
|
+
class KbqRelativeLongDateTimePipe extends BaseLocaleAwareFormatterPipe {
|
|
3227
|
+
transform(value, options) {
|
|
3228
|
+
return super.transform(value, options);
|
|
3229
|
+
}
|
|
3230
|
+
format(value, options) {
|
|
3231
|
+
const date = this.adapter.deserialize(value);
|
|
3232
|
+
return date ? this.formatter.relativeLongDateTime(date, options) : '';
|
|
3233
|
+
}
|
|
3234
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeLongDateTimePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3235
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeLongDateTimePipe, isStandalone: true, name: "kbqRelativeLongDateTime", pure: false }); }
|
|
3236
|
+
}
|
|
3237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeLongDateTimePipe, decorators: [{
|
|
3238
|
+
type: Pipe,
|
|
3239
|
+
args: [{
|
|
3240
|
+
name: 'kbqRelativeLongDateTime',
|
|
3241
|
+
pure: false
|
|
3242
|
+
}]
|
|
3243
|
+
}] });
|
|
3244
|
+
class KbqRelativeShortDateTimePipe extends BaseLocaleAwareFormatterPipe {
|
|
3245
|
+
transform(value, options) {
|
|
3246
|
+
return super.transform(value, options);
|
|
3247
|
+
}
|
|
3248
|
+
format(value, options) {
|
|
3249
|
+
const date = this.adapter.deserialize(value);
|
|
3250
|
+
return date ? this.formatter.relativeShortDateTime(date, options) : '';
|
|
3251
|
+
}
|
|
3252
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeShortDateTimePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3253
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeShortDateTimePipe, isStandalone: true, name: "kbqRelativeShortDateTime", pure: false }); }
|
|
3254
|
+
}
|
|
3255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRelativeShortDateTimePipe, decorators: [{
|
|
3256
|
+
type: Pipe,
|
|
3257
|
+
args: [{
|
|
3258
|
+
name: 'kbqRelativeShortDateTime',
|
|
3259
|
+
pure: false
|
|
3260
|
+
}]
|
|
3261
|
+
}] });
|
|
3262
|
+
class KbqRangeLongDatePipe extends BaseLocaleAwareFormatterPipe {
|
|
3263
|
+
transform(value) {
|
|
3264
|
+
return super.transform(value);
|
|
3265
|
+
}
|
|
3266
|
+
format([value1, value2]) {
|
|
3267
|
+
const date1 = this.adapter.deserialize(value1);
|
|
3268
|
+
const date2 = this.adapter.deserialize(value2);
|
|
3269
|
+
return this.formatter.rangeLongDate(date1, date2);
|
|
3270
|
+
}
|
|
3271
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeLongDatePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3272
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeLongDatePipe, isStandalone: true, name: "kbqRangeLongDate", pure: false }); }
|
|
2526
3273
|
}
|
|
2527
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeLongDatePipe, decorators: [{
|
|
2528
3275
|
type: Pipe,
|
|
2529
3276
|
args: [{
|
|
2530
|
-
name: '
|
|
3277
|
+
name: 'kbqRangeLongDate',
|
|
2531
3278
|
pure: false
|
|
2532
3279
|
}]
|
|
2533
3280
|
}] });
|
|
2534
|
-
class
|
|
2535
|
-
transform(
|
|
3281
|
+
class KbqRangeShortDatePipe extends BaseLocaleAwareFormatterPipe {
|
|
3282
|
+
transform(value) {
|
|
3283
|
+
return super.transform(value);
|
|
3284
|
+
}
|
|
3285
|
+
format([value1, value2]) {
|
|
2536
3286
|
const date1 = this.adapter.deserialize(value1);
|
|
2537
3287
|
const date2 = this.adapter.deserialize(value2);
|
|
2538
|
-
return this.formatter.
|
|
3288
|
+
return this.formatter.rangeShortDate(date1, date2);
|
|
2539
3289
|
}
|
|
2540
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2541
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3290
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeShortDatePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3291
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeShortDatePipe, isStandalone: true, name: "kbqRangeShortDate", pure: false }); }
|
|
2542
3292
|
}
|
|
2543
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeShortDatePipe, decorators: [{
|
|
2544
3294
|
type: Pipe,
|
|
2545
3295
|
args: [{
|
|
2546
|
-
name: '
|
|
3296
|
+
name: 'kbqRangeShortDate',
|
|
3297
|
+
pure: false
|
|
2547
3298
|
}]
|
|
2548
3299
|
}] });
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
3300
|
+
class KbqRangeLongDateTimePipe extends BaseLocaleAwareFormatterPipe {
|
|
3301
|
+
transform(value, options) {
|
|
3302
|
+
return super.transform(value, options);
|
|
3303
|
+
}
|
|
3304
|
+
format([value1, value2], options) {
|
|
3305
|
+
const date1 = this.adapter.deserialize(value1);
|
|
3306
|
+
const date2 = this.adapter.deserialize(value2);
|
|
3307
|
+
return this.formatter.rangeLongDateTime(date1, date2, options);
|
|
2553
3308
|
}
|
|
2554
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2555
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3309
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeLongDateTimePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3310
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeLongDateTimePipe, isStandalone: true, name: "kbqRangeLongDateTime", pure: false }); }
|
|
2556
3311
|
}
|
|
2557
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeLongDateTimePipe, decorators: [{
|
|
2558
3313
|
type: Pipe,
|
|
2559
3314
|
args: [{
|
|
2560
|
-
name: '
|
|
3315
|
+
name: 'kbqRangeLongDateTime',
|
|
2561
3316
|
pure: false
|
|
2562
3317
|
}]
|
|
2563
3318
|
}] });
|
|
2564
|
-
class
|
|
2565
|
-
transform(
|
|
3319
|
+
class KbqRangeMiddleDateTimePipe extends BaseLocaleAwareFormatterPipe {
|
|
3320
|
+
transform(value, options) {
|
|
3321
|
+
return super.transform(value, options);
|
|
3322
|
+
}
|
|
3323
|
+
format([value1, value2], options) {
|
|
2566
3324
|
const date1 = this.adapter.deserialize(value1);
|
|
2567
3325
|
const date2 = this.adapter.deserialize(value2);
|
|
2568
|
-
return this.formatter.
|
|
3326
|
+
return this.formatter.rangeMiddleDateTime(date1, date2, options);
|
|
2569
3327
|
}
|
|
2570
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2571
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3328
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeMiddleDateTimePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3329
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeMiddleDateTimePipe, isStandalone: true, name: "kbqRangeMiddleDateTime", pure: false }); }
|
|
2572
3330
|
}
|
|
2573
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeMiddleDateTimePipe, decorators: [{
|
|
2574
3332
|
type: Pipe,
|
|
2575
3333
|
args: [{
|
|
2576
|
-
name: '
|
|
3334
|
+
name: 'kbqRangeMiddleDateTime',
|
|
3335
|
+
pure: false
|
|
2577
3336
|
}]
|
|
2578
3337
|
}] });
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
3338
|
+
class KbqRangeShortDateTimePipe extends BaseLocaleAwareFormatterPipe {
|
|
3339
|
+
transform(value, options) {
|
|
3340
|
+
return super.transform(value, options);
|
|
3341
|
+
}
|
|
3342
|
+
format([value1, value2], options) {
|
|
3343
|
+
const date1 = this.adapter.deserialize(value1);
|
|
3344
|
+
const date2 = this.adapter.deserialize(value2);
|
|
3345
|
+
return this.formatter.rangeShortDateTime(date1, date2, options);
|
|
2583
3346
|
}
|
|
2584
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2585
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3347
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeShortDateTimePipe, deps: null, target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3348
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeShortDateTimePipe, isStandalone: true, name: "kbqRangeShortDateTime", pure: false }); }
|
|
2586
3349
|
}
|
|
2587
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeShortDateTimePipe, decorators: [{
|
|
2588
3351
|
type: Pipe,
|
|
2589
3352
|
args: [{
|
|
2590
|
-
name: '
|
|
3353
|
+
name: 'kbqRangeShortDateTime',
|
|
2591
3354
|
pure: false
|
|
2592
3355
|
}]
|
|
2593
3356
|
}] });
|
|
2594
3357
|
|
|
2595
|
-
/**
|
|
2596
|
-
* @deprecated Will be removed in next major release. Use `KbqMeasurementSystem` instead.
|
|
2597
|
-
* @docs-private
|
|
2598
|
-
*/
|
|
2599
|
-
var MeasurementSystem;
|
|
2600
|
-
(function (MeasurementSystem) {
|
|
2601
|
-
MeasurementSystem["SI"] = "SI";
|
|
2602
|
-
MeasurementSystem["IEC"] = "IEC";
|
|
2603
|
-
})(MeasurementSystem || (MeasurementSystem = {}));
|
|
2604
3358
|
/**
|
|
2605
3359
|
* Available unit systems for file size formatting.
|
|
2606
3360
|
* - SI (Metric): 1 KB = 1000 bytes
|
|
@@ -2706,10 +3460,10 @@ function parseDigitsInfo(digitsInfo) {
|
|
|
2706
3460
|
return result;
|
|
2707
3461
|
}
|
|
2708
3462
|
class KbqDecimalPipe {
|
|
2709
|
-
constructor(
|
|
2710
|
-
this.id =
|
|
2711
|
-
this.localeService =
|
|
2712
|
-
this.options =
|
|
3463
|
+
constructor() {
|
|
3464
|
+
this.id = inject(KBQ_LOCALE_ID, { optional: true });
|
|
3465
|
+
this.localeService = inject(KBQ_LOCALE_SERVICE, { optional: true });
|
|
3466
|
+
this.options = inject(KBQ_NUMBER_FORMATTER_OPTIONS, { optional: true });
|
|
2713
3467
|
this.options = this.options || KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS;
|
|
2714
3468
|
this.localeService?.changes.subscribe((newId) => (this.id = newId));
|
|
2715
3469
|
}
|
|
@@ -2756,11 +3510,11 @@ class KbqDecimalPipe {
|
|
|
2756
3510
|
grouping === undefined &&
|
|
2757
3511
|
Math.abs(value) < defaultValueForGroupingInRULocale);
|
|
2758
3512
|
}
|
|
2759
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2760
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2761
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3513
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqDecimalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3514
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqDecimalPipe, isStandalone: true, name: "kbqNumber", pure: false }); }
|
|
3515
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqDecimalPipe, providedIn: 'root' }); }
|
|
2762
3516
|
}
|
|
2763
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqDecimalPipe, decorators: [{
|
|
2764
3518
|
type: Injectable,
|
|
2765
3519
|
args: [{ providedIn: 'root' }]
|
|
2766
3520
|
}, {
|
|
@@ -2769,27 +3523,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
2769
3523
|
name: 'kbqNumber',
|
|
2770
3524
|
pure: false
|
|
2771
3525
|
}]
|
|
2772
|
-
}], ctorParameters: () => [
|
|
2773
|
-
type: Optional
|
|
2774
|
-
}, {
|
|
2775
|
-
type: Inject,
|
|
2776
|
-
args: [KBQ_LOCALE_ID]
|
|
2777
|
-
}] }, { type: KbqLocaleService, decorators: [{
|
|
2778
|
-
type: Optional
|
|
2779
|
-
}, {
|
|
2780
|
-
type: Inject,
|
|
2781
|
-
args: [KBQ_LOCALE_SERVICE]
|
|
2782
|
-
}] }, { type: ParsedDigitsInfo, decorators: [{
|
|
2783
|
-
type: Optional
|
|
2784
|
-
}, {
|
|
2785
|
-
type: Inject,
|
|
2786
|
-
args: [KBQ_NUMBER_FORMATTER_OPTIONS]
|
|
2787
|
-
}] }] });
|
|
3526
|
+
}], ctorParameters: () => [] });
|
|
2788
3527
|
class KbqTableNumberPipe {
|
|
2789
|
-
constructor(
|
|
2790
|
-
this.id =
|
|
2791
|
-
this.localeService =
|
|
2792
|
-
this.options =
|
|
3528
|
+
constructor() {
|
|
3529
|
+
this.id = inject(KBQ_LOCALE_ID, { optional: true });
|
|
3530
|
+
this.localeService = inject(KBQ_LOCALE_SERVICE, { optional: true });
|
|
3531
|
+
this.options = inject(KBQ_NUMBER_FORMATTER_OPTIONS, { optional: true });
|
|
2793
3532
|
this.options = this.options || KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS;
|
|
2794
3533
|
this.localeService?.changes.subscribe((newId) => (this.id = newId));
|
|
2795
3534
|
}
|
|
@@ -2828,11 +3567,11 @@ class KbqTableNumberPipe {
|
|
|
2828
3567
|
throw Error(`InvalidPipeArgument: KbqTableNumberPipe for pipe '${JSON.stringify(error.message)}'`);
|
|
2829
3568
|
}
|
|
2830
3569
|
}
|
|
2831
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2832
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2833
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3570
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTableNumberPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3571
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqTableNumberPipe, isStandalone: true, name: "kbqTableNumber", pure: false }); }
|
|
3572
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTableNumberPipe, providedIn: 'root' }); }
|
|
2834
3573
|
}
|
|
2835
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTableNumberPipe, decorators: [{
|
|
2836
3575
|
type: Injectable,
|
|
2837
3576
|
args: [{ providedIn: 'root' }]
|
|
2838
3577
|
}, {
|
|
@@ -2841,29 +3580,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
2841
3580
|
name: 'kbqTableNumber',
|
|
2842
3581
|
pure: false
|
|
2843
3582
|
}]
|
|
2844
|
-
}], ctorParameters: () => [
|
|
2845
|
-
type: Optional
|
|
2846
|
-
}, {
|
|
2847
|
-
type: Inject,
|
|
2848
|
-
args: [KBQ_LOCALE_ID]
|
|
2849
|
-
}] }, { type: KbqLocaleService, decorators: [{
|
|
2850
|
-
type: Optional
|
|
2851
|
-
}, {
|
|
2852
|
-
type: Inject,
|
|
2853
|
-
args: [KBQ_LOCALE_SERVICE]
|
|
2854
|
-
}] }, { type: ParsedDigitsInfo, decorators: [{
|
|
2855
|
-
type: Optional
|
|
2856
|
-
}, {
|
|
2857
|
-
type: Inject,
|
|
2858
|
-
args: [KBQ_NUMBER_FORMATTER_OPTIONS]
|
|
2859
|
-
}] }] });
|
|
3583
|
+
}], ctorParameters: () => [] });
|
|
2860
3584
|
function isWithin(startRange, endRange, valueToCheck) {
|
|
2861
3585
|
return startRange <= valueToCheck && valueToCheck < endRange;
|
|
2862
3586
|
}
|
|
2863
3587
|
class KbqRoundDecimalPipe {
|
|
2864
|
-
constructor(
|
|
2865
|
-
this.id =
|
|
2866
|
-
this.localeService =
|
|
3588
|
+
constructor() {
|
|
3589
|
+
this.id = inject(KBQ_LOCALE_ID, { optional: true });
|
|
3590
|
+
this.localeService = inject(KBQ_LOCALE_SERVICE, { optional: true });
|
|
2867
3591
|
this.localeService?.changes.subscribe((newId) => (this.id = newId));
|
|
2868
3592
|
}
|
|
2869
3593
|
transform(value, locale) {
|
|
@@ -2948,11 +3672,11 @@ class KbqRoundDecimalPipe {
|
|
|
2948
3672
|
});
|
|
2949
3673
|
return currentUnit;
|
|
2950
3674
|
}
|
|
2951
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2952
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2953
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3675
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRoundDecimalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3676
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqRoundDecimalPipe, isStandalone: true, name: "kbqRoundNumber", pure: false }); }
|
|
3677
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRoundDecimalPipe, providedIn: 'root' }); }
|
|
2954
3678
|
}
|
|
2955
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRoundDecimalPipe, decorators: [{
|
|
2956
3680
|
type: Injectable,
|
|
2957
3681
|
args: [{ providedIn: 'root' }]
|
|
2958
3682
|
}, {
|
|
@@ -2961,49 +3685,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
2961
3685
|
name: 'kbqRoundNumber',
|
|
2962
3686
|
pure: false
|
|
2963
3687
|
}]
|
|
2964
|
-
}], ctorParameters: () => [
|
|
2965
|
-
type: Optional
|
|
2966
|
-
}, {
|
|
2967
|
-
type: Inject,
|
|
2968
|
-
args: [KBQ_LOCALE_ID]
|
|
2969
|
-
}] }, { type: KbqLocaleService, decorators: [{
|
|
2970
|
-
type: Optional
|
|
2971
|
-
}, {
|
|
2972
|
-
type: Inject,
|
|
2973
|
-
args: [KBQ_LOCALE_SERVICE]
|
|
2974
|
-
}] }] });
|
|
3688
|
+
}], ctorParameters: () => [] });
|
|
2975
3689
|
|
|
2976
3690
|
const KBQ_INVALID_VALUE_ERROR = 'Argument "value" must be a finite number!';
|
|
2977
3691
|
/**
|
|
2978
|
-
*
|
|
2979
|
-
*
|
|
3692
|
+
* Converts a byte value into locale-independent file size parts: numeric value and unit abbreviation.
|
|
3693
|
+
*
|
|
3694
|
+
* @param value - size in bytes.
|
|
3695
|
+
* @param system - unit system defining abbreviations and base scaling (SI/IEC).
|
|
3696
|
+
* @returns Object with the formatted size info.
|
|
3697
|
+
*
|
|
3698
|
+
* @example
|
|
3699
|
+
* getFormattedSizeParts(1500, 'SI'); // { value: "1.50", unit: "KB" }
|
|
2980
3700
|
*/
|
|
2981
|
-
|
|
3701
|
+
function getFormattedSizeParts(value, system) {
|
|
2982
3702
|
const { result, unit } = getHumanizedBytes(value, system);
|
|
2983
|
-
let volume;
|
|
2984
|
-
if (system.abbreviations[0] === unit) {
|
|
2985
|
-
volume = result.toString();
|
|
2986
|
-
}
|
|
2987
|
-
else {
|
|
2988
|
-
volume = result.toFixed(precision).replace(/\./g, ',');
|
|
2989
|
-
}
|
|
2990
|
-
return {
|
|
2991
|
-
value: volume,
|
|
2992
|
-
unit
|
|
2993
|
-
};
|
|
2994
|
-
};
|
|
2995
|
-
function getFormattedSizeParts(value, _precision, system) {
|
|
2996
|
-
let resolvedSystem = null;
|
|
2997
|
-
if (arguments.length === 2 && typeof _precision === 'object') {
|
|
2998
|
-
resolvedSystem = _precision;
|
|
2999
|
-
}
|
|
3000
|
-
if (arguments.length === 3 && typeof _precision === 'number' && system) {
|
|
3001
|
-
resolvedSystem = system;
|
|
3002
|
-
}
|
|
3003
|
-
if (!resolvedSystem) {
|
|
3004
|
-
throw new Error('Unexpected arguments size');
|
|
3005
|
-
}
|
|
3006
|
-
const { result, unit } = getHumanizedBytes(value, resolvedSystem);
|
|
3007
3703
|
return {
|
|
3008
3704
|
value: result.toString(),
|
|
3009
3705
|
unit
|
|
@@ -3062,10 +3758,10 @@ class KbqDataSizePipe {
|
|
|
3062
3758
|
const formattedValue = this.numberPipe?.transform(value, `1.0-${precision}`, locale) || value;
|
|
3063
3759
|
return formattedValue ? `${formattedValue}${this.nonBreakingSpace}${unit}` : '';
|
|
3064
3760
|
}
|
|
3065
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3066
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3761
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqDataSizePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3762
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqDataSizePipe, isStandalone: true, name: "kbqDataSize", pure: false }); }
|
|
3067
3763
|
}
|
|
3068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqDataSizePipe, decorators: [{
|
|
3069
3765
|
type: Pipe,
|
|
3070
3766
|
args: [{
|
|
3071
3767
|
name: 'kbqDataSize',
|
|
@@ -3074,8 +3770,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
3074
3770
|
}], ctorParameters: () => [] });
|
|
3075
3771
|
|
|
3076
3772
|
class KbqFormattersModule {
|
|
3077
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3078
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3773
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormattersModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3774
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqFormattersModule, imports: [AbsoluteDateFormatterPipe,
|
|
3079
3775
|
AbsoluteDateTimeFormatterPipe,
|
|
3080
3776
|
AbsoluteDateShortFormatterPipe,
|
|
3081
3777
|
AbsoluteShortDateTimeFormatterPipe,
|
|
@@ -3101,6 +3797,19 @@ class KbqFormattersModule {
|
|
|
3101
3797
|
RangeDateTimeFormatterImpurePipe,
|
|
3102
3798
|
RangeShortDateTimeFormatterImpurePipe,
|
|
3103
3799
|
RangeMiddleDateTimeFormatterImpurePipe,
|
|
3800
|
+
KbqAbsoluteLongDatePipe,
|
|
3801
|
+
KbqAbsoluteLongDateTimePipe,
|
|
3802
|
+
KbqAbsoluteShortDatePipe,
|
|
3803
|
+
KbqAbsoluteShortDateTimePipe,
|
|
3804
|
+
KbqRelativeLongDatePipe,
|
|
3805
|
+
KbqRelativeLongDateTimePipe,
|
|
3806
|
+
KbqRelativeShortDatePipe,
|
|
3807
|
+
KbqRelativeShortDateTimePipe,
|
|
3808
|
+
KbqRangeLongDatePipe,
|
|
3809
|
+
KbqRangeLongDateTimePipe,
|
|
3810
|
+
KbqRangeMiddleDateTimePipe,
|
|
3811
|
+
KbqRangeShortDatePipe,
|
|
3812
|
+
KbqRangeShortDateTimePipe,
|
|
3104
3813
|
KbqDataSizePipe,
|
|
3105
3814
|
KbqDecimalPipe,
|
|
3106
3815
|
KbqRoundDecimalPipe,
|
|
@@ -3133,10 +3842,23 @@ class KbqFormattersModule {
|
|
|
3133
3842
|
RangeDateTimeFormatterImpurePipe,
|
|
3134
3843
|
RangeShortDateTimeFormatterImpurePipe,
|
|
3135
3844
|
RangeMiddleDateTimeFormatterImpurePipe,
|
|
3845
|
+
KbqAbsoluteLongDatePipe,
|
|
3846
|
+
KbqAbsoluteLongDateTimePipe,
|
|
3847
|
+
KbqAbsoluteShortDatePipe,
|
|
3848
|
+
KbqAbsoluteShortDateTimePipe,
|
|
3849
|
+
KbqRelativeLongDatePipe,
|
|
3850
|
+
KbqRelativeLongDateTimePipe,
|
|
3851
|
+
KbqRelativeShortDatePipe,
|
|
3852
|
+
KbqRelativeShortDateTimePipe,
|
|
3853
|
+
KbqRangeLongDatePipe,
|
|
3854
|
+
KbqRangeLongDateTimePipe,
|
|
3855
|
+
KbqRangeMiddleDateTimePipe,
|
|
3856
|
+
KbqRangeShortDatePipe,
|
|
3857
|
+
KbqRangeShortDateTimePipe,
|
|
3136
3858
|
KbqDataSizePipe] }); }
|
|
3137
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3859
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormattersModule, providers: [DateFormatter] }); }
|
|
3138
3860
|
}
|
|
3139
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormattersModule, decorators: [{
|
|
3140
3862
|
type: NgModule,
|
|
3141
3863
|
args: [{
|
|
3142
3864
|
imports: [
|
|
@@ -3166,11 +3888,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
3166
3888
|
RangeDateTimeFormatterImpurePipe,
|
|
3167
3889
|
RangeShortDateTimeFormatterImpurePipe,
|
|
3168
3890
|
RangeMiddleDateTimeFormatterImpurePipe,
|
|
3891
|
+
KbqAbsoluteLongDatePipe,
|
|
3892
|
+
KbqAbsoluteLongDateTimePipe,
|
|
3893
|
+
KbqAbsoluteShortDatePipe,
|
|
3894
|
+
KbqAbsoluteShortDateTimePipe,
|
|
3895
|
+
KbqRelativeLongDatePipe,
|
|
3896
|
+
KbqRelativeLongDateTimePipe,
|
|
3897
|
+
KbqRelativeShortDatePipe,
|
|
3898
|
+
KbqRelativeShortDateTimePipe,
|
|
3899
|
+
KbqRangeLongDatePipe,
|
|
3900
|
+
KbqRangeLongDateTimePipe,
|
|
3901
|
+
KbqRangeMiddleDateTimePipe,
|
|
3902
|
+
KbqRangeShortDatePipe,
|
|
3903
|
+
KbqRangeShortDateTimePipe,
|
|
3169
3904
|
KbqDataSizePipe,
|
|
3170
3905
|
KbqDecimalPipe,
|
|
3171
3906
|
KbqRoundDecimalPipe,
|
|
3172
3907
|
KbqTableNumberPipe
|
|
3173
3908
|
],
|
|
3909
|
+
providers: [DateFormatter],
|
|
3174
3910
|
exports: [
|
|
3175
3911
|
KbqDecimalPipe,
|
|
3176
3912
|
KbqRoundDecimalPipe,
|
|
@@ -3201,20 +3937,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
3201
3937
|
RangeDateTimeFormatterImpurePipe,
|
|
3202
3938
|
RangeShortDateTimeFormatterImpurePipe,
|
|
3203
3939
|
RangeMiddleDateTimeFormatterImpurePipe,
|
|
3940
|
+
KbqAbsoluteLongDatePipe,
|
|
3941
|
+
KbqAbsoluteLongDateTimePipe,
|
|
3942
|
+
KbqAbsoluteShortDatePipe,
|
|
3943
|
+
KbqAbsoluteShortDateTimePipe,
|
|
3944
|
+
KbqRelativeLongDatePipe,
|
|
3945
|
+
KbqRelativeLongDateTimePipe,
|
|
3946
|
+
KbqRelativeShortDatePipe,
|
|
3947
|
+
KbqRelativeShortDateTimePipe,
|
|
3948
|
+
KbqRangeLongDatePipe,
|
|
3949
|
+
KbqRangeLongDateTimePipe,
|
|
3950
|
+
KbqRangeMiddleDateTimePipe,
|
|
3951
|
+
KbqRangeShortDatePipe,
|
|
3952
|
+
KbqRangeShortDateTimePipe,
|
|
3204
3953
|
KbqDataSizePipe
|
|
3205
|
-
]
|
|
3206
|
-
providers: [{ provide: DateFormatter, deps: [DateAdapter, KBQ_DATE_LOCALE] }]
|
|
3954
|
+
]
|
|
3207
3955
|
}]
|
|
3208
3956
|
}] });
|
|
3209
3957
|
|
|
3210
3958
|
class KbqFormElement {
|
|
3211
|
-
constructor(
|
|
3212
|
-
this.element =
|
|
3959
|
+
constructor() {
|
|
3960
|
+
this.element = inject(ElementRef);
|
|
3213
3961
|
this.margin = false;
|
|
3214
3962
|
this.isRow = false;
|
|
3215
3963
|
this.isFieldSet = false;
|
|
3216
3964
|
this.hasLegend = false;
|
|
3217
3965
|
this.isHorizontal = false;
|
|
3966
|
+
this.elements = contentChildren(KbqFormElement, ...(ngDevMode ? [{ debugName: "elements" }] : []));
|
|
3218
3967
|
}
|
|
3219
3968
|
ngAfterContentInit() {
|
|
3220
3969
|
const classList = this.element.nativeElement.classList;
|
|
@@ -3225,60 +3974,57 @@ class KbqFormElement {
|
|
|
3225
3974
|
this.hasLegend = this.element.nativeElement.firstElementChild.classList.contains('kbq-form__legend');
|
|
3226
3975
|
}
|
|
3227
3976
|
}
|
|
3228
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3229
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
3977
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormElement, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3978
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.3.25", type: KbqFormElement, isStandalone: true, selector: ".kbq-form__row, .kbq-form__fieldset, .kbq-form__legend", host: { properties: { "class.kbq-form-row_margin": "margin" } }, queries: [{ propertyName: "elements", predicate: KbqFormElement, isSignal: true }], exportAs: ["kbqFormElement"], ngImport: i0 }); }
|
|
3230
3979
|
}
|
|
3231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormElement, decorators: [{
|
|
3232
3981
|
type: Directive,
|
|
3233
3982
|
args: [{
|
|
3234
3983
|
selector: '.kbq-form__row, .kbq-form__fieldset, .kbq-form__legend',
|
|
3235
|
-
exportAs: 'kbqFormElement',
|
|
3236
3984
|
host: {
|
|
3237
3985
|
'[class.kbq-form-row_margin]': 'margin'
|
|
3238
|
-
}
|
|
3986
|
+
},
|
|
3987
|
+
exportAs: 'kbqFormElement'
|
|
3239
3988
|
}]
|
|
3240
|
-
}],
|
|
3241
|
-
type: ContentChildren,
|
|
3242
|
-
args: [KbqFormElement]
|
|
3243
|
-
}] } });
|
|
3989
|
+
}], propDecorators: { elements: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KbqFormElement), { isSignal: true }] }] } });
|
|
3244
3990
|
class KbqForm {
|
|
3991
|
+
constructor() {
|
|
3992
|
+
this.elements = contentChildren(KbqFormElement, ...(ngDevMode ? [{ debugName: "elements" }] : []));
|
|
3993
|
+
}
|
|
3245
3994
|
ngAfterContentInit() {
|
|
3246
|
-
this.handleElements(this.elements);
|
|
3995
|
+
this.handleElements(this.elements());
|
|
3247
3996
|
}
|
|
3248
3997
|
handleElements(elements) {
|
|
3249
3998
|
elements.forEach((element, index) => {
|
|
3250
|
-
const nextElement = elements
|
|
3999
|
+
const nextElement = elements[index + 1];
|
|
3251
4000
|
if (element.isFieldSet && !element.isHorizontal) {
|
|
3252
|
-
this.handleElements(element.elements);
|
|
4001
|
+
this.handleElements(element.elements());
|
|
3253
4002
|
}
|
|
3254
4003
|
element.margin = !!(nextElement && !nextElement.hasLegend);
|
|
3255
4004
|
});
|
|
3256
4005
|
}
|
|
3257
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3258
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
4006
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqForm, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4007
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "20.3.25", type: KbqForm, isStandalone: true, selector: ".kbq-form-vertical, .kbq-form-horizontal", host: { classAttribute: "kbq-form" }, queries: [{ propertyName: "elements", predicate: KbqFormElement, isSignal: true }], exportAs: ["kbqForm"], ngImport: i0 }); }
|
|
3259
4008
|
}
|
|
3260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqForm, decorators: [{
|
|
3261
4010
|
type: Directive,
|
|
3262
4011
|
args: [{
|
|
3263
4012
|
selector: '.kbq-form-vertical, .kbq-form-horizontal',
|
|
3264
|
-
exportAs: 'kbqForm',
|
|
3265
4013
|
host: {
|
|
3266
4014
|
class: 'kbq-form'
|
|
3267
|
-
}
|
|
4015
|
+
},
|
|
4016
|
+
exportAs: 'kbqForm'
|
|
3268
4017
|
}]
|
|
3269
|
-
}], propDecorators: { elements: [{
|
|
3270
|
-
type: ContentChildren,
|
|
3271
|
-
args: [KbqFormElement]
|
|
3272
|
-
}] } });
|
|
4018
|
+
}], propDecorators: { elements: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KbqFormElement), { isSignal: true }] }] } });
|
|
3273
4019
|
|
|
3274
4020
|
class KbqFormsModule {
|
|
3275
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3276
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4021
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4022
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqFormsModule, imports: [KbqForm,
|
|
3277
4023
|
KbqFormElement], exports: [KbqForm,
|
|
3278
4024
|
KbqFormElement] }); }
|
|
3279
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4025
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormsModule }); }
|
|
3280
4026
|
}
|
|
3281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormsModule, decorators: [{
|
|
3282
4028
|
type: NgModule,
|
|
3283
4029
|
args: [{
|
|
3284
4030
|
imports: [
|
|
@@ -3477,8 +4223,7 @@ class FileValidators {
|
|
|
3477
4223
|
const HTML_ESCAPES = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' };
|
|
3478
4224
|
const HTML_SPECIAL_CHARS = /[&<>"']/;
|
|
3479
4225
|
const HTML_SPECIAL_CHARS_GLOBAL = new RegExp(HTML_SPECIAL_CHARS.source, 'g');
|
|
3480
|
-
/**
|
|
3481
|
-
const kbqHighlightMark = (text) => `<mark class="kbq-highlight">${text}</mark>`;
|
|
4226
|
+
/** Escapes characters in the specified string that have special meaning in a regular expression. */
|
|
3482
4227
|
function escapeRegExp(value) {
|
|
3483
4228
|
if (value) {
|
|
3484
4229
|
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
@@ -3490,39 +4235,60 @@ function escapeHtml(value) {
|
|
|
3490
4235
|
return value;
|
|
3491
4236
|
return value.replace(HTML_SPECIAL_CHARS_GLOBAL, (chr) => HTML_ESCAPES[chr] ?? chr);
|
|
3492
4237
|
}
|
|
4238
|
+
/** @docs-private */
|
|
4239
|
+
function highlight(value, keyword, mark) {
|
|
4240
|
+
if (typeof value !== 'string')
|
|
4241
|
+
return '';
|
|
4242
|
+
if (!keyword || typeof keyword !== 'string')
|
|
4243
|
+
return escapeHtml(value);
|
|
4244
|
+
const parts = value.split(new RegExp(`(${escapeRegExp(keyword)})`, 'gi'));
|
|
4245
|
+
return parts
|
|
4246
|
+
.map((part, i) => {
|
|
4247
|
+
const escaped = escapeHtml(part);
|
|
4248
|
+
const isMatch = i % 2 === 1;
|
|
4249
|
+
return isMatch ? mark(escaped) : escaped;
|
|
4250
|
+
})
|
|
4251
|
+
.join('');
|
|
4252
|
+
}
|
|
4253
|
+
|
|
4254
|
+
/** @docs-private */
|
|
4255
|
+
const kbqHighlightBackgroundMark = (text) => `<mark class="kbq-highlight-background">${text}</mark>`;
|
|
4256
|
+
class KbqHighlightBackgroundPipe {
|
|
4257
|
+
transform(value, keyword) {
|
|
4258
|
+
return highlight(value, keyword, kbqHighlightBackgroundMark);
|
|
4259
|
+
}
|
|
4260
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightBackgroundPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4261
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightBackgroundPipe, isStandalone: true, name: "kbqHighlightBackground" }); }
|
|
4262
|
+
}
|
|
4263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightBackgroundPipe, decorators: [{
|
|
4264
|
+
type: Pipe,
|
|
4265
|
+
args: [{ name: 'kbqHighlightBackground' }]
|
|
4266
|
+
}] });
|
|
4267
|
+
|
|
4268
|
+
/** @docs-private */
|
|
4269
|
+
const kbqHighlightMark = (text) => `<mark class="kbq-highlight">${text}</mark>`;
|
|
3493
4270
|
class KbqHighlightPipe {
|
|
3494
|
-
transform(value,
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
.map((part, i) => {
|
|
3502
|
-
const escaped = escapeHtml(part);
|
|
3503
|
-
const isMatch = i % 2 === 1;
|
|
3504
|
-
return isMatch ? kbqHighlightMark(escaped) : escaped;
|
|
3505
|
-
})
|
|
3506
|
-
.join('');
|
|
3507
|
-
}
|
|
3508
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: KbqHighlightPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3509
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.21", ngImport: i0, type: KbqHighlightPipe, isStandalone: true, name: "mcHighlight" }); }
|
|
3510
|
-
}
|
|
3511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: KbqHighlightPipe, decorators: [{
|
|
4271
|
+
transform(value, keyword) {
|
|
4272
|
+
return highlight(value, keyword, kbqHighlightMark);
|
|
4273
|
+
}
|
|
4274
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
4275
|
+
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightPipe, isStandalone: true, name: "mcHighlight" }); }
|
|
4276
|
+
}
|
|
4277
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightPipe, decorators: [{
|
|
3512
4278
|
type: Pipe,
|
|
3513
4279
|
args: [{ name: 'mcHighlight' }]
|
|
3514
4280
|
}] });
|
|
3515
4281
|
|
|
3516
4282
|
class KbqHighlightModule {
|
|
3517
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3518
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3519
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4283
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4284
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightModule, imports: [KbqHighlightPipe, KbqHighlightBackgroundPipe], exports: [KbqHighlightPipe, KbqHighlightBackgroundPipe] }); }
|
|
4285
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightModule }); }
|
|
3520
4286
|
}
|
|
3521
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightModule, decorators: [{
|
|
3522
4288
|
type: NgModule,
|
|
3523
4289
|
args: [{
|
|
3524
|
-
imports: [
|
|
3525
|
-
exports: [KbqHighlightPipe]
|
|
4290
|
+
imports: [KbqHighlightPipe, KbqHighlightBackgroundPipe],
|
|
4291
|
+
exports: [KbqHighlightPipe, KbqHighlightBackgroundPipe]
|
|
3526
4292
|
}]
|
|
3527
4293
|
}] });
|
|
3528
4294
|
|
|
@@ -3532,10 +4298,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
3532
4298
|
* counted by checking the query list's length.
|
|
3533
4299
|
*/
|
|
3534
4300
|
class KbqLine {
|
|
3535
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3536
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4301
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLine, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4302
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqLine, isStandalone: true, selector: "[kbq-line], [mcLine]", host: { classAttribute: "kbq-line" }, ngImport: i0 }); }
|
|
3537
4303
|
}
|
|
3538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLine, decorators: [{
|
|
3539
4305
|
type: Directive,
|
|
3540
4306
|
args: [{
|
|
3541
4307
|
selector: '[kbq-line], [mcLine]',
|
|
@@ -3601,10 +4367,10 @@ class KbqRectangleItem {
|
|
|
3601
4367
|
const { width, marginLeft, marginRight } = this.window.getComputedStyle(this.nativeElement);
|
|
3602
4368
|
return [width, marginLeft, marginRight].reduce((acc, item) => acc + parseInt(item), 0);
|
|
3603
4369
|
}
|
|
3604
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3605
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4370
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRectangleItem, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
4371
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqRectangleItem, isStandalone: true, host: { properties: { "class.kbq-expanded": "!collapsed", "class.kbq-collapsed": "collapsed" } }, ngImport: i0 }); }
|
|
3606
4372
|
}
|
|
3607
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRectangleItem, decorators: [{
|
|
3608
4374
|
type: Directive,
|
|
3609
4375
|
args: [{
|
|
3610
4376
|
host: {
|
|
@@ -3624,6 +4390,8 @@ class KbqOptionActionComponent {
|
|
|
3624
4390
|
this.hasFocus = false;
|
|
3625
4391
|
this.destroyRef = inject(DestroyRef);
|
|
3626
4392
|
}
|
|
4393
|
+
// TODO: Skipped for migration because:
|
|
4394
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
3627
4395
|
get disabled() {
|
|
3628
4396
|
return this._disabled;
|
|
3629
4397
|
}
|
|
@@ -3687,20 +4455,20 @@ class KbqOptionActionComponent {
|
|
|
3687
4455
|
this.option.tooltipTrigger.disabled = true;
|
|
3688
4456
|
setTimeout(() => (this.option.tooltipTrigger.disabled = false));
|
|
3689
4457
|
}
|
|
3690
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3691
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
4458
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOptionActionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4459
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "20.3.25", type: KbqOptionActionComponent, isStandalone: true, selector: "kbq-option-action", inputs: { disabled: ["disabled", "disabled", booleanAttribute] }, host: { listeners: { "click": "onClick($event)", "keydown": "onKeyDown($event)" }, properties: { "class.kbq-expanded": "false", "class.kbq-disabled": "disabled", "attr.disabled": "disabled || null", "attr.tabIndex": "-1" }, classAttribute: "kbq-option-action" }, exportAs: ["kbqOptionAction"], ngImport: i0, template: `
|
|
3692
4460
|
<ng-content select="[kbq-icon]">
|
|
3693
4461
|
<i class="kbq kbq-icon kbq-contrast-fade kbq-ellipsis-vertical_16"></i>
|
|
3694
4462
|
</ng-content>
|
|
3695
4463
|
`, isInline: true, styles: [".kbq-option-action{display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;border:var(--kbq-size-3xs) solid transparent;border-radius:var(--kbq-size-xs);width:var(--kbq-size-xl);height:var(--kbq-size-xl)}.kbq-option-action:not(.kbq-disabled):hover .kbq-icon,.kbq-option-action:not(.kbq-disabled):focus .kbq-icon{color:var(--kbq-icon-button-fade-contrast-states-hover)}.kbq-option-action.kbq-disabled{cursor:default}.kbq-option-action.cdk-keyboard-focused{z-index:1;border-color:var(--kbq-states-line-focus-theme)}.kbq-option-action:active .kbq-icon.kbq-empty,.kbq-option-action.kbq-pressed .kbq-icon.kbq-empty{color:var(--kbq-states-icon-contrast-fade-active)}.kbq-option-action:active,.kbq-option-action.kbq-pressed{background-color:var(--kbq-background-transparent)}.kbq-option-action:hover .kbq-icon.kbq-empty{color:var(--kbq-states-icon-contrast-fade-hover)}.kbq-option-action.kbq-disabled .kbq-icon.kbq-empty{color:var(--kbq-states-icon-disabled)}.kbq-option-action.kbq-disabled{background-color:var(--kbq-background-transparent)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
3696
4464
|
}
|
|
3697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOptionActionComponent, decorators: [{
|
|
3698
4466
|
type: Component,
|
|
3699
|
-
args: [{ selector: 'kbq-option-action',
|
|
4467
|
+
args: [{ selector: 'kbq-option-action', template: `
|
|
3700
4468
|
<ng-content select="[kbq-icon]">
|
|
3701
4469
|
<i class="kbq kbq-icon kbq-contrast-fade kbq-ellipsis-vertical_16"></i>
|
|
3702
4470
|
</ng-content>
|
|
3703
|
-
`, host: {
|
|
4471
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
3704
4472
|
class: 'kbq-option-action',
|
|
3705
4473
|
'[class.kbq-expanded]': 'false',
|
|
3706
4474
|
'[class.kbq-disabled]': 'disabled',
|
|
@@ -3708,31 +4476,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
3708
4476
|
'[attr.tabIndex]': '-1',
|
|
3709
4477
|
'(click)': 'onClick($event)',
|
|
3710
4478
|
'(keydown)': 'onKeyDown($event)'
|
|
3711
|
-
},
|
|
4479
|
+
}, exportAs: 'kbqOptionAction', styles: [".kbq-option-action{display:flex;align-items:center;justify-content:center;cursor:pointer;outline:none;border:var(--kbq-size-3xs) solid transparent;border-radius:var(--kbq-size-xs);width:var(--kbq-size-xl);height:var(--kbq-size-xl)}.kbq-option-action:not(.kbq-disabled):hover .kbq-icon,.kbq-option-action:not(.kbq-disabled):focus .kbq-icon{color:var(--kbq-icon-button-fade-contrast-states-hover)}.kbq-option-action.kbq-disabled{cursor:default}.kbq-option-action.cdk-keyboard-focused{z-index:1;border-color:var(--kbq-states-line-focus-theme)}.kbq-option-action:active .kbq-icon.kbq-empty,.kbq-option-action.kbq-pressed .kbq-icon.kbq-empty{color:var(--kbq-states-icon-contrast-fade-active)}.kbq-option-action:active,.kbq-option-action.kbq-pressed{background-color:var(--kbq-background-transparent)}.kbq-option-action:hover .kbq-icon.kbq-empty{color:var(--kbq-states-icon-contrast-fade-hover)}.kbq-option-action.kbq-disabled .kbq-icon.kbq-empty{color:var(--kbq-states-icon-disabled)}.kbq-option-action.kbq-disabled{background-color:var(--kbq-background-transparent)}\n"] }]
|
|
3712
4480
|
}], propDecorators: { disabled: [{
|
|
3713
4481
|
type: Input,
|
|
3714
4482
|
args: [{ transform: booleanAttribute }]
|
|
3715
4483
|
}] } });
|
|
3716
4484
|
|
|
3717
4485
|
class KbqActionContainer {
|
|
3718
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3719
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4486
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqActionContainer, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4487
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: KbqActionContainer, isStandalone: true, selector: "kbq-action-container", host: { classAttribute: "kbq-action-container" }, exportAs: ["kbqActionContainer"], ngImport: i0, template: `
|
|
3720
4488
|
<div class="kbq-action-container__gradient"></div>
|
|
3721
4489
|
<div class="kbq-action-container__box">
|
|
3722
4490
|
<ng-content />
|
|
3723
4491
|
</div>
|
|
3724
|
-
`, isInline: true, styles: [".kbq-action-container{box-sizing:border-box;position:absolute;right:0;top:0;bottom:0;display:none;align-items:center;overflow:hidden;border:1px solid transparent;border-top-right-radius:var(--kbq-size-xs);border-bottom-right-radius:var(--kbq-size-xs)}.kbq-action-container__gradient{display:flex;margin-right:calc(var(--kbq-size-xs) * -1);width:var(--kbq-size-3xl);height:100%;background:linear-gradient(var(--kbq-option-background),var(--kbq-option-background)),var(--kbq-background-bg);mask-image:linear-gradient(to right,transparent 0%,black var(--kbq-size-xxl))}.kbq-action-container__box{height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(var(--kbq-option-background),var(--kbq-option-background)),var(--kbq-background-bg)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
4492
|
+
`, isInline: true, styles: [".kbq-action-container{box-sizing:border-box;position:absolute;right:0;top:0;bottom:0;display:none;align-items:center;overflow:hidden;border:1px solid transparent;border-top-right-radius:var(--kbq-size-xs);border-bottom-right-radius:var(--kbq-size-xs)}.kbq-action-container__gradient{display:flex;margin-right:calc(var(--kbq-size-xs) * -1);width:var(--kbq-size-3xl);height:100%;background:linear-gradient(var(--kbq-option-background),var(--kbq-option-background)),var(--kbq-background-bg);-webkit-mask-image:linear-gradient(to right,transparent 0%,black var(--kbq-size-xxl));mask-image:linear-gradient(to right,transparent 0%,black var(--kbq-size-xxl))}.kbq-action-container__box{height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(var(--kbq-option-background),var(--kbq-option-background)),var(--kbq-background-bg)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
3725
4493
|
}
|
|
3726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqActionContainer, decorators: [{
|
|
3727
4495
|
type: Component,
|
|
3728
|
-
args: [{ selector: 'kbq-action-container',
|
|
4496
|
+
args: [{ selector: 'kbq-action-container', template: `
|
|
3729
4497
|
<div class="kbq-action-container__gradient"></div>
|
|
3730
4498
|
<div class="kbq-action-container__box">
|
|
3731
4499
|
<ng-content />
|
|
3732
4500
|
</div>
|
|
3733
|
-
`, host: {
|
|
4501
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
3734
4502
|
class: 'kbq-action-container'
|
|
3735
|
-
},
|
|
4503
|
+
}, exportAs: 'kbqActionContainer', styles: [".kbq-action-container{box-sizing:border-box;position:absolute;right:0;top:0;bottom:0;display:none;align-items:center;overflow:hidden;border:1px solid transparent;border-top-right-radius:var(--kbq-size-xs);border-bottom-right-radius:var(--kbq-size-xs)}.kbq-action-container__gradient{display:flex;margin-right:calc(var(--kbq-size-xs) * -1);width:var(--kbq-size-3xl);height:100%;background:linear-gradient(var(--kbq-option-background),var(--kbq-option-background)),var(--kbq-background-bg);-webkit-mask-image:linear-gradient(to right,transparent 0%,black var(--kbq-size-xxl));mask-image:linear-gradient(to right,transparent 0%,black var(--kbq-size-xxl))}.kbq-action-container__box{height:100%;display:flex;align-items:center;justify-content:center;background:linear-gradient(var(--kbq-option-background),var(--kbq-option-background)),var(--kbq-background-bg)}\n"] }]
|
|
3736
4504
|
}] });
|
|
3737
4505
|
|
|
3738
4506
|
let uniqueOptgroupIdCounter = 0;
|
|
@@ -3742,10 +4510,13 @@ let uniqueOptgroupIdCounter = 0;
|
|
|
3742
4510
|
*/
|
|
3743
4511
|
class KbqOptgroup {
|
|
3744
4512
|
constructor() {
|
|
4513
|
+
this.label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
3745
4514
|
this._disabled = false;
|
|
3746
4515
|
/** Unique id for the underlying label. */
|
|
3747
4516
|
this.labelId = `kbq-optgroup-label-${uniqueOptgroupIdCounter++}`;
|
|
3748
4517
|
}
|
|
4518
|
+
// TODO: Skipped for migration because:
|
|
4519
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
3749
4520
|
get disabled() {
|
|
3750
4521
|
return this._disabled;
|
|
3751
4522
|
}
|
|
@@ -3754,18 +4525,16 @@ class KbqOptgroup {
|
|
|
3754
4525
|
this._disabled = value;
|
|
3755
4526
|
}
|
|
3756
4527
|
}
|
|
3757
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3758
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
4528
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOptgroup, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
4529
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.25", type: KbqOptgroup, isStandalone: true, selector: "kbq-optgroup", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute } }, host: { properties: { "class.kbq-disabled": "disabled" }, classAttribute: "kbq-optgroup" }, exportAs: ["kbqOptgroup"], ngImport: i0, template: "<label class=\"kbq-optgroup-label\" [id]=\"labelId\">\n {{ label() }}\n</label>\n<ng-content select=\"kbq-option, kbq-list-option, kbq-timezone-option, ng-container\" />\n", styles: [".kbq-optgroup-label{display:flex;align-items:center;box-sizing:border-box;padding:var(--kbq-size-s) var(--kbq-size-l) var(--kbq-size-s) var(--kbq-size-m);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.kbq-optgroup-label{--kbq-optgroup-label-color: var(--kbq-foreground-contrast-secondary);color:var(--kbq-optgroup-label-color)}.kbq-disabled .kbq-optgroup-label{--kbq-optgroup-label-color: var(--kbq-states-foreground-disabled)}.kbq-optgroup-label{font-size:var(--kbq-typography-caps-compact-strong-font-size);font-style:var(--kbq-typography-caps-compact-strong-font-style);font-weight:var(--kbq-typography-caps-compact-strong-font-weight);line-height:var(--kbq-typography-caps-compact-strong-line-height);font-family:var(--kbq-typography-caps-compact-strong-font-family);text-transform:var(--kbq-typography-caps-compact-strong-text-transform);font-feature-settings:var(--kbq-typography-caps-compact-strong-font-feature-settings);letter-spacing:var(--kbq-typography-caps-compact-strong-letter-spacing)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
3759
4530
|
}
|
|
3760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOptgroup, decorators: [{
|
|
3761
4532
|
type: Component,
|
|
3762
|
-
args: [{ selector: 'kbq-optgroup',
|
|
4533
|
+
args: [{ selector: 'kbq-optgroup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
3763
4534
|
class: 'kbq-optgroup',
|
|
3764
4535
|
'[class.kbq-disabled]': 'disabled'
|
|
3765
|
-
}, template: "<label class=\"kbq-optgroup-label\" [id]=\"labelId\">\n {{ label }}\n</label>\n<ng-content select=\"kbq-option, kbq-list-option, kbq-timezone-option, ng-container\" />\n", styles: [".kbq-optgroup-label{display:flex;align-items:center;box-sizing:border-box;padding:var(--kbq-size-s) var(--kbq-size-l) var(--kbq-size-s) var(--kbq-size-m);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.kbq-optgroup-label{--kbq-optgroup-label-color: var(--kbq-foreground-contrast-secondary);color:var(--kbq-optgroup-label-color)}.kbq-disabled .kbq-optgroup-label{--kbq-optgroup-label-color: var(--kbq-states-foreground-disabled)}.kbq-optgroup-label{font-size:var(--kbq-typography-caps-compact-strong-font-size);font-style:var(--kbq-typography-caps-compact-strong-font-style);font-weight:var(--kbq-typography-caps-compact-strong-font-weight);line-height:var(--kbq-typography-caps-compact-strong-line-height);font-family:var(--kbq-typography-caps-compact-strong-font-family);text-transform:var(--kbq-typography-caps-compact-strong-text-transform);font-feature-settings:var(--kbq-typography-caps-compact-strong-font-feature-settings);letter-spacing:var(--kbq-typography-caps-compact-strong-letter-spacing)}\n"] }]
|
|
3766
|
-
}], propDecorators: { label: [{
|
|
3767
|
-
type: Input
|
|
3768
|
-
}], disabled: [{
|
|
4536
|
+
}, exportAs: 'kbqOptgroup', template: "<label class=\"kbq-optgroup-label\" [id]=\"labelId\">\n {{ label() }}\n</label>\n<ng-content select=\"kbq-option, kbq-list-option, kbq-timezone-option, ng-container\" />\n", styles: [".kbq-optgroup-label{display:flex;align-items:center;box-sizing:border-box;padding:var(--kbq-size-s) var(--kbq-size-l) var(--kbq-size-s) var(--kbq-size-m);-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.kbq-optgroup-label{--kbq-optgroup-label-color: var(--kbq-foreground-contrast-secondary);color:var(--kbq-optgroup-label-color)}.kbq-disabled .kbq-optgroup-label{--kbq-optgroup-label-color: var(--kbq-states-foreground-disabled)}.kbq-optgroup-label{font-size:var(--kbq-typography-caps-compact-strong-font-size);font-style:var(--kbq-typography-caps-compact-strong-font-style);font-weight:var(--kbq-typography-caps-compact-strong-font-weight);line-height:var(--kbq-typography-caps-compact-strong-line-height);font-family:var(--kbq-typography-caps-compact-strong-font-family);text-transform:var(--kbq-typography-caps-compact-strong-text-transform);font-feature-settings:var(--kbq-typography-caps-compact-strong-font-feature-settings);letter-spacing:var(--kbq-typography-caps-compact-strong-letter-spacing)}\n"] }]
|
|
4537
|
+
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], disabled: [{
|
|
3769
4538
|
type: Input,
|
|
3770
4539
|
args: [{ transform: booleanAttribute }]
|
|
3771
4540
|
}] } });
|
|
@@ -3792,39 +4561,33 @@ var MultipleMode;
|
|
|
3792
4561
|
class KbqPseudoCheckbox extends KbqColorDirective {
|
|
3793
4562
|
constructor() {
|
|
3794
4563
|
super(...arguments);
|
|
3795
|
-
this.big = false;
|
|
3796
|
-
this.state = 'unchecked';
|
|
3797
|
-
this.disabled = false;
|
|
4564
|
+
this.big = input(false, ...(ngDevMode ? [{ debugName: "big" }] : []));
|
|
4565
|
+
this.state = input('unchecked', ...(ngDevMode ? [{ debugName: "state" }] : []));
|
|
4566
|
+
this.disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled" }] : []));
|
|
3798
4567
|
}
|
|
3799
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3800
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
4568
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPseudoCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4569
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.25", type: KbqPseudoCheckbox, isStandalone: true, selector: "kbq-pseudo-checkbox", inputs: { big: { classPropertyName: "big", publicName: "big", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.kbq-checkbox_big": "big()", "class.kbq-indeterminate": "state() === \"indeterminate\"", "class.kbq-checked": "state() === true || state() === \"checked\"", "class.kbq-disabled": "disabled()" }, classAttribute: "kbq-pseudo-checkbox" }, usesInheritance: true, ngImport: i0, template: "<i class=\"kbq-checkbox-checkmark kbq kbq-check-s_16\"></i>\n<i class=\"kbq-checkbox-mixedmark kbq kbq-minus-s_16\"></i>\n", styles: [".kbq-pseudo-checkbox{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;width:var(--kbq-checkbox-size-normal-width);height:var(--kbq-checkbox-size-normal-width);border-radius:var(--kbq-checkbox-size-normal-border-radius);border-width:var(--kbq-checkbox-size-normal-border-width);border-style:solid;cursor:pointer;vertical-align:middle;flex-shrink:0}.kbq-pseudo-checkbox .kbq-checkbox-checkmark,.kbq-pseudo-checkbox .kbq-checkbox-mixedmark{display:none}.kbq-pseudo-checkbox.kbq-pseudo-checkbox-checked,.kbq-pseudo-checkbox.kbq-pseudo-checkbox-indeterminate{border-color:transparent}.kbq-pseudo-checkbox.kbq-checked .kbq-checkbox-checkmark,.kbq-pseudo-checkbox.kbq-indeterminate .kbq-checkbox-mixedmark{display:inline-block}.kbq-pseudo-checkbox.kbq-disabled{cursor:default}.kbq-pseudo-checkbox.kbq-pseudo-checkbox_big{width:var(--kbq-checkbox-size-big-width);height:var(--kbq-checkbox-size-big-width);border-radius:var(--kbq-checkbox-size-big-border-radius);border-width:var(--kbq-checkbox-size-big-border-width)}.kbq-pseudo-checkbox{border-color:var(--kbq-checkbox-theme-default-border);background:var(--kbq-checkbox-theme-default-background)}.kbq-pseudo-checkbox .kbq-checkbox-checkmark,.kbq-pseudo-checkbox .kbq-checkbox-mixedmark{color:var(--kbq-checkbox-theme-default-color)}.kbq-pseudo-checkbox.kbq-checked,.kbq-pseudo-checkbox.kbq-indeterminate{border-color:var(--kbq-checkbox-theme-states-checked-border);background:var(--kbq-checkbox-theme-states-checked-background)}.kbq-pseudo-checkbox.kbq-disabled .kbq-checkbox-checkmark,.kbq-pseudo-checkbox.kbq-disabled .kbq-checkbox-mixedmark{color:var(--kbq-checkbox-theme-states-disabled-color)}.kbq-pseudo-checkbox.kbq-disabled{border-color:var(--kbq-checkbox-theme-states-disabled-border);background:var(--kbq-checkbox-theme-states-disabled-background)}.kbq-pseudo-checkbox.kbq-error{border-color:var(--kbq-checkbox-error-default-border);background:var(--kbq-checkbox-error-default-background)}.kbq-pseudo-checkbox.kbq-error .kbq-checkbox-checkmark,.kbq-pseudo-checkbox.kbq-error .kbq-checkbox-mixedmark{color:var(--kbq-checkbox-error-default-color)}.kbq-pseudo-checkbox.kbq-error.kbq-checked,.kbq-pseudo-checkbox.kbq-error.kbq-indeterminate{border-color:var(--kbq-checkbox-error-states-checked-border);background:var(--kbq-checkbox-error-states-checked-background)}.kbq-pseudo-checkbox.kbq-error.kbq-disabled .kbq-checkbox-checkmark,.kbq-pseudo-checkbox.kbq-error.kbq-disabled .kbq-checkbox-mixedmark{color:var(--kbq-checkbox-error-states-disabled-color)}.kbq-pseudo-checkbox.kbq-error.kbq-disabled{border-color:var(--kbq-checkbox-error-states-disabled-border);background:var(--kbq-checkbox-error-states-disabled-background)}\n", ".kbq-pseudo-checkbox{--kbq-checkbox-size-normal-width: var(--kbq-size-l);--kbq-checkbox-size-normal-border-width: var(--kbq-size-border-width);--kbq-checkbox-size-normal-border-radius: var(--kbq-size-xxs);--kbq-checkbox-size-normal-horizontal-content-padding: var(--kbq-size-s);--kbq-checkbox-size-normal-vertical-content-padding: var(--kbq-size-3xs);--kbq-checkbox-size-normal-top: var(--kbq-size-3xs);--kbq-checkbox-size-big-width: var(--kbq-size-l);--kbq-checkbox-size-big-border-width: var(--kbq-size-border-width);--kbq-checkbox-size-big-border-radius: var(--kbq-size-xxs);--kbq-checkbox-size-big-horizontal-content-padding: var(--kbq-size-s);--kbq-checkbox-size-big-vertical-content-padding: var(--kbq-size-3xs);--kbq-checkbox-size-big-top: var(--kbq-size-xxs);--kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);--kbq-checkbox-theme-default-color: var(--kbq-icon-white);--kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);--kbq-checkbox-theme-default-background: var(--kbq-background-bg);--kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);--kbq-checkbox-theme-states-hover-border: var(--kbq-line-contrast-fade);--kbq-checkbox-theme-states-hover-background: var(--kbq-states-background-transparent-hover);--kbq-checkbox-theme-states-checked-border: transparent;--kbq-checkbox-theme-states-checked-background: var(--kbq-background-theme);--kbq-checkbox-theme-states-checked-hover-border: transparent;--kbq-checkbox-theme-states-checked-hover-background: var(--kbq-states-background-theme-hover);--kbq-checkbox-theme-states-focused-border: var(--kbq-states-line-focus-theme);--kbq-checkbox-theme-states-focused-background: var(--kbq-background-bg);--kbq-checkbox-theme-states-focused-outline: 1px solid var(--kbq-states-line-focus-theme);--kbq-checkbox-theme-states-checked-focused-border: var(--kbq-states-line-focus-theme);--kbq-checkbox-theme-states-checked-focused-background: var(--kbq-background-theme);--kbq-checkbox-theme-states-checked-focused-outline: 1px solid var(--kbq-states-line-focus-theme);--kbq-checkbox-theme-states-disabled-border: var(--kbq-states-line-disabled);--kbq-checkbox-theme-states-disabled-color: var(--kbq-states-icon-disabled);--kbq-checkbox-theme-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);--kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);--kbq-checkbox-error-default-border: var(--kbq-line-error);--kbq-checkbox-error-default-color: var(--kbq-icon-white);--kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);--kbq-checkbox-error-default-background: var(--kbq-background-error-less);--kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);--kbq-checkbox-error-states-hover-border: var(--kbq-line-error);--kbq-checkbox-error-states-hover-background: var(--kbq-states-background-error-fade-hover);--kbq-checkbox-error-states-checked-border: transparent;--kbq-checkbox-error-states-checked-background: var(--kbq-background-error);--kbq-checkbox-error-states-checked-hover-border: transparent;--kbq-checkbox-error-states-checked-hover-background: var(--kbq-states-background-error-hover);--kbq-checkbox-error-states-focused-border: var(--kbq-line-error);--kbq-checkbox-error-states-focused-background: var(--kbq-background-error-less);--kbq-checkbox-error-states-focused-outline: 1px solid var(--kbq-states-line-focus-error);--kbq-checkbox-error-states-checked-focused-border: var(--kbq-states-line-focus-error);--kbq-checkbox-error-states-checked-focused-background: var(--kbq-background-error);--kbq-checkbox-error-states-checked-focused-outline: 1px solid var(--kbq-states-line-focus-error);--kbq-checkbox-error-states-disabled-border: var(--kbq-states-line-disabled);--kbq-checkbox-error-states-disabled-color: var(--kbq-states-icon-disabled);--kbq-checkbox-error-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-checkbox-error-states-disabled-background: var(--kbq-states-background-disabled);--kbq-checkbox-error-states-disabled-caption: var(--kbq-states-icon-disabled)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
3801
4570
|
}
|
|
3802
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPseudoCheckbox, decorators: [{
|
|
3803
4572
|
type: Component,
|
|
3804
|
-
args: [{ selector: 'kbq-pseudo-checkbox',
|
|
4573
|
+
args: [{ selector: 'kbq-pseudo-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
3805
4574
|
class: 'kbq-pseudo-checkbox',
|
|
3806
|
-
'[class.kbq-checkbox_big]': 'big',
|
|
3807
|
-
'[class.kbq-indeterminate]': 'state === "indeterminate"',
|
|
3808
|
-
'[class.kbq-checked]': 'state === true || state === "checked"',
|
|
3809
|
-
'[class.kbq-disabled]': 'disabled'
|
|
4575
|
+
'[class.kbq-checkbox_big]': 'big()',
|
|
4576
|
+
'[class.kbq-indeterminate]': 'state() === "indeterminate"',
|
|
4577
|
+
'[class.kbq-checked]': 'state() === true || state() === "checked"',
|
|
4578
|
+
'[class.kbq-disabled]': 'disabled()'
|
|
3810
4579
|
}, preserveWhitespaces: false, template: "<i class=\"kbq-checkbox-checkmark kbq kbq-check-s_16\"></i>\n<i class=\"kbq-checkbox-mixedmark kbq kbq-minus-s_16\"></i>\n", styles: [".kbq-pseudo-checkbox{position:relative;display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;width:var(--kbq-checkbox-size-normal-width);height:var(--kbq-checkbox-size-normal-width);border-radius:var(--kbq-checkbox-size-normal-border-radius);border-width:var(--kbq-checkbox-size-normal-border-width);border-style:solid;cursor:pointer;vertical-align:middle;flex-shrink:0}.kbq-pseudo-checkbox .kbq-checkbox-checkmark,.kbq-pseudo-checkbox .kbq-checkbox-mixedmark{display:none}.kbq-pseudo-checkbox.kbq-pseudo-checkbox-checked,.kbq-pseudo-checkbox.kbq-pseudo-checkbox-indeterminate{border-color:transparent}.kbq-pseudo-checkbox.kbq-checked .kbq-checkbox-checkmark,.kbq-pseudo-checkbox.kbq-indeterminate .kbq-checkbox-mixedmark{display:inline-block}.kbq-pseudo-checkbox.kbq-disabled{cursor:default}.kbq-pseudo-checkbox.kbq-pseudo-checkbox_big{width:var(--kbq-checkbox-size-big-width);height:var(--kbq-checkbox-size-big-width);border-radius:var(--kbq-checkbox-size-big-border-radius);border-width:var(--kbq-checkbox-size-big-border-width)}.kbq-pseudo-checkbox{border-color:var(--kbq-checkbox-theme-default-border);background:var(--kbq-checkbox-theme-default-background)}.kbq-pseudo-checkbox .kbq-checkbox-checkmark,.kbq-pseudo-checkbox .kbq-checkbox-mixedmark{color:var(--kbq-checkbox-theme-default-color)}.kbq-pseudo-checkbox.kbq-checked,.kbq-pseudo-checkbox.kbq-indeterminate{border-color:var(--kbq-checkbox-theme-states-checked-border);background:var(--kbq-checkbox-theme-states-checked-background)}.kbq-pseudo-checkbox.kbq-disabled .kbq-checkbox-checkmark,.kbq-pseudo-checkbox.kbq-disabled .kbq-checkbox-mixedmark{color:var(--kbq-checkbox-theme-states-disabled-color)}.kbq-pseudo-checkbox.kbq-disabled{border-color:var(--kbq-checkbox-theme-states-disabled-border);background:var(--kbq-checkbox-theme-states-disabled-background)}.kbq-pseudo-checkbox.kbq-error{border-color:var(--kbq-checkbox-error-default-border);background:var(--kbq-checkbox-error-default-background)}.kbq-pseudo-checkbox.kbq-error .kbq-checkbox-checkmark,.kbq-pseudo-checkbox.kbq-error .kbq-checkbox-mixedmark{color:var(--kbq-checkbox-error-default-color)}.kbq-pseudo-checkbox.kbq-error.kbq-checked,.kbq-pseudo-checkbox.kbq-error.kbq-indeterminate{border-color:var(--kbq-checkbox-error-states-checked-border);background:var(--kbq-checkbox-error-states-checked-background)}.kbq-pseudo-checkbox.kbq-error.kbq-disabled .kbq-checkbox-checkmark,.kbq-pseudo-checkbox.kbq-error.kbq-disabled .kbq-checkbox-mixedmark{color:var(--kbq-checkbox-error-states-disabled-color)}.kbq-pseudo-checkbox.kbq-error.kbq-disabled{border-color:var(--kbq-checkbox-error-states-disabled-border);background:var(--kbq-checkbox-error-states-disabled-background)}\n", ".kbq-pseudo-checkbox{--kbq-checkbox-size-normal-width: var(--kbq-size-l);--kbq-checkbox-size-normal-border-width: var(--kbq-size-border-width);--kbq-checkbox-size-normal-border-radius: var(--kbq-size-xxs);--kbq-checkbox-size-normal-horizontal-content-padding: var(--kbq-size-s);--kbq-checkbox-size-normal-vertical-content-padding: var(--kbq-size-3xs);--kbq-checkbox-size-normal-top: var(--kbq-size-3xs);--kbq-checkbox-size-big-width: var(--kbq-size-l);--kbq-checkbox-size-big-border-width: var(--kbq-size-border-width);--kbq-checkbox-size-big-border-radius: var(--kbq-size-xxs);--kbq-checkbox-size-big-horizontal-content-padding: var(--kbq-size-s);--kbq-checkbox-size-big-vertical-content-padding: var(--kbq-size-3xs);--kbq-checkbox-size-big-top: var(--kbq-size-xxs);--kbq-checkbox-theme-default-border: var(--kbq-line-contrast-fade);--kbq-checkbox-theme-default-color: var(--kbq-icon-white);--kbq-checkbox-theme-default-text: var(--kbq-foreground-contrast);--kbq-checkbox-theme-default-background: var(--kbq-background-bg);--kbq-checkbox-theme-default-caption: var(--kbq-foreground-contrast-secondary);--kbq-checkbox-theme-states-hover-border: var(--kbq-line-contrast-fade);--kbq-checkbox-theme-states-hover-background: var(--kbq-states-background-transparent-hover);--kbq-checkbox-theme-states-checked-border: transparent;--kbq-checkbox-theme-states-checked-background: var(--kbq-background-theme);--kbq-checkbox-theme-states-checked-hover-border: transparent;--kbq-checkbox-theme-states-checked-hover-background: var(--kbq-states-background-theme-hover);--kbq-checkbox-theme-states-focused-border: var(--kbq-states-line-focus-theme);--kbq-checkbox-theme-states-focused-background: var(--kbq-background-bg);--kbq-checkbox-theme-states-focused-outline: 1px solid var(--kbq-states-line-focus-theme);--kbq-checkbox-theme-states-checked-focused-border: var(--kbq-states-line-focus-theme);--kbq-checkbox-theme-states-checked-focused-background: var(--kbq-background-theme);--kbq-checkbox-theme-states-checked-focused-outline: 1px solid var(--kbq-states-line-focus-theme);--kbq-checkbox-theme-states-disabled-border: var(--kbq-states-line-disabled);--kbq-checkbox-theme-states-disabled-color: var(--kbq-states-icon-disabled);--kbq-checkbox-theme-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-checkbox-theme-states-disabled-background: var(--kbq-states-background-disabled);--kbq-checkbox-theme-states-disabled-caption: var(--kbq-states-icon-disabled);--kbq-checkbox-error-default-border: var(--kbq-line-error);--kbq-checkbox-error-default-color: var(--kbq-icon-white);--kbq-checkbox-error-default-text: var(--kbq-foreground-contrast);--kbq-checkbox-error-default-background: var(--kbq-background-error-less);--kbq-checkbox-error-default-caption: var(--kbq-foreground-contrast-secondary);--kbq-checkbox-error-states-hover-border: var(--kbq-line-error);--kbq-checkbox-error-states-hover-background: var(--kbq-states-background-error-fade-hover);--kbq-checkbox-error-states-checked-border: transparent;--kbq-checkbox-error-states-checked-background: var(--kbq-background-error);--kbq-checkbox-error-states-checked-hover-border: transparent;--kbq-checkbox-error-states-checked-hover-background: var(--kbq-states-background-error-hover);--kbq-checkbox-error-states-focused-border: var(--kbq-line-error);--kbq-checkbox-error-states-focused-background: var(--kbq-background-error-less);--kbq-checkbox-error-states-focused-outline: 1px solid var(--kbq-states-line-focus-error);--kbq-checkbox-error-states-checked-focused-border: var(--kbq-states-line-focus-error);--kbq-checkbox-error-states-checked-focused-background: var(--kbq-background-error);--kbq-checkbox-error-states-checked-focused-outline: 1px solid var(--kbq-states-line-focus-error);--kbq-checkbox-error-states-disabled-border: var(--kbq-states-line-disabled);--kbq-checkbox-error-states-disabled-color: var(--kbq-states-icon-disabled);--kbq-checkbox-error-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-checkbox-error-states-disabled-background: var(--kbq-states-background-disabled);--kbq-checkbox-error-states-disabled-caption: var(--kbq-states-icon-disabled)}\n"] }]
|
|
3811
|
-
}], propDecorators: { big: [{
|
|
3812
|
-
type: Input
|
|
3813
|
-
}], state: [{
|
|
3814
|
-
type: Input
|
|
3815
|
-
}], disabled: [{
|
|
3816
|
-
type: Input
|
|
3817
|
-
}] } });
|
|
4580
|
+
}], propDecorators: { big: [{ type: i0.Input, args: [{ isSignal: true, alias: "big", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
3818
4581
|
|
|
3819
4582
|
class KbqPseudoCheckboxModule {
|
|
3820
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3821
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3822
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4583
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPseudoCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4584
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqPseudoCheckboxModule, imports: [KbqPseudoCheckbox], exports: [KbqPseudoCheckbox] }); }
|
|
4585
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPseudoCheckboxModule }); }
|
|
3823
4586
|
}
|
|
3824
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPseudoCheckboxModule, decorators: [{
|
|
3825
4588
|
type: NgModule,
|
|
3826
4589
|
args: [{
|
|
3827
|
-
imports: [
|
|
4590
|
+
imports: [KbqPseudoCheckbox],
|
|
3828
4591
|
exports: [KbqPseudoCheckbox]
|
|
3829
4592
|
}]
|
|
3830
4593
|
}] });
|
|
@@ -3891,6 +4654,35 @@ class KbqVirtualOption extends KbqOptionBase {
|
|
|
3891
4654
|
* Single option inside of a `<kbq-select>` element.
|
|
3892
4655
|
*/
|
|
3893
4656
|
class KbqOption extends KbqOptionBase {
|
|
4657
|
+
constructor() {
|
|
4658
|
+
super(...arguments);
|
|
4659
|
+
this.elementRef = inject(ElementRef);
|
|
4660
|
+
this.changeDetectorRef = inject(ChangeDetectorRef);
|
|
4661
|
+
this.parent = inject(KBQ_OPTION_PARENT_COMPONENT, { optional: true });
|
|
4662
|
+
this.group = inject(KbqOptgroup, { optional: true });
|
|
4663
|
+
this.selectable = input(true, ...(ngDevMode ? [{ debugName: "selectable", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
4664
|
+
// todo this flag will need to be rethought in the future (added for filter panel)
|
|
4665
|
+
this.userSelect = input(false, ...(ngDevMode ? [{ debugName: "userSelect", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
4666
|
+
/** Event emitted when the option is selected or deselected. */
|
|
4667
|
+
this.onSelectionChange = new EventEmitter();
|
|
4668
|
+
/** Emits when the state of the option changes and any parents have to be notified. */
|
|
4669
|
+
this.stateChanges = new Subject();
|
|
4670
|
+
this._id = `kbq-option-${uniqueIdCounter++}`;
|
|
4671
|
+
this._selected = false;
|
|
4672
|
+
this._disabled = false;
|
|
4673
|
+
this._active = false;
|
|
4674
|
+
this.mostRecentViewValue = '';
|
|
4675
|
+
/**
|
|
4676
|
+
* Flag that indicates whether the component is currently focused by a mouse interaction.
|
|
4677
|
+
*
|
|
4678
|
+
* When set to `true`, the component has focus resulting from a mouse click or
|
|
4679
|
+
* other pointer event. It is automatically cleared when the component loses
|
|
4680
|
+
* focus or if focus is obtained through keyboard navigation or programmatic means.
|
|
4681
|
+
*/
|
|
4682
|
+
this.isFocusedByMouse = false;
|
|
4683
|
+
}
|
|
4684
|
+
// TODO: Skipped for migration because:
|
|
4685
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
3894
4686
|
get showCheckbox() {
|
|
3895
4687
|
return this._showCheckbox === undefined ? this.multiple : this._showCheckbox;
|
|
3896
4688
|
}
|
|
@@ -3901,6 +4693,8 @@ class KbqOption extends KbqOptionBase {
|
|
|
3901
4693
|
* The displayed value of the option. It is necessary to show the selected option in the
|
|
3902
4694
|
* select's trigger.
|
|
3903
4695
|
*/
|
|
4696
|
+
// TODO: Skipped for migration because:
|
|
4697
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
3904
4698
|
get viewValue() {
|
|
3905
4699
|
return this._viewValue || (this.getHostElement().textContent || '').trim();
|
|
3906
4700
|
}
|
|
@@ -3917,6 +4711,8 @@ class KbqOption extends KbqOptionBase {
|
|
|
3917
4711
|
get selected() {
|
|
3918
4712
|
return this._selected;
|
|
3919
4713
|
}
|
|
4714
|
+
// TODO: Skipped for migration because:
|
|
4715
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
3920
4716
|
get disabled() {
|
|
3921
4717
|
return (this.group && this.group.disabled) || this._disabled;
|
|
3922
4718
|
}
|
|
@@ -3932,33 +4728,6 @@ class KbqOption extends KbqOptionBase {
|
|
|
3932
4728
|
get active() {
|
|
3933
4729
|
return this._active;
|
|
3934
4730
|
}
|
|
3935
|
-
constructor(elementRef, changeDetectorRef, parent, group) {
|
|
3936
|
-
super();
|
|
3937
|
-
this.elementRef = elementRef;
|
|
3938
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
3939
|
-
this.parent = parent;
|
|
3940
|
-
this.group = group;
|
|
3941
|
-
this.selectable = true;
|
|
3942
|
-
// todo this flag will need to be rethought in the future (added for filter panel)
|
|
3943
|
-
this.userSelect = false;
|
|
3944
|
-
/** Event emitted when the option is selected or deselected. */
|
|
3945
|
-
this.onSelectionChange = new EventEmitter();
|
|
3946
|
-
/** Emits when the state of the option changes and any parents have to be notified. */
|
|
3947
|
-
this.stateChanges = new Subject();
|
|
3948
|
-
this._id = `kbq-option-${uniqueIdCounter++}`;
|
|
3949
|
-
this._selected = false;
|
|
3950
|
-
this._disabled = false;
|
|
3951
|
-
this._active = false;
|
|
3952
|
-
this.mostRecentViewValue = '';
|
|
3953
|
-
/**
|
|
3954
|
-
* Flag that indicates whether the component is currently focused by a mouse interaction.
|
|
3955
|
-
*
|
|
3956
|
-
* When set to `true`, the component has focus resulting from a mouse click or
|
|
3957
|
-
* other pointer event. It is automatically cleared when the component loses
|
|
3958
|
-
* focus or if focus is obtained through keyboard navigation or programmatic means.
|
|
3959
|
-
*/
|
|
3960
|
-
this.isFocusedByMouse = false;
|
|
3961
|
-
}
|
|
3962
4731
|
ngAfterViewChecked() {
|
|
3963
4732
|
// Since parent components could be using the option's label to display the selected values
|
|
3964
4733
|
// (e.g. `kbq-select`) and they don't have a way of knowing if the option's label has changed
|
|
@@ -4056,9 +4825,9 @@ class KbqOption extends KbqOptionBase {
|
|
|
4056
4825
|
* determine if the select's view -> model callback should be invoked.`
|
|
4057
4826
|
*/
|
|
4058
4827
|
selectViaInteraction() {
|
|
4059
|
-
if (this.userSelect)
|
|
4828
|
+
if (this.userSelect())
|
|
4060
4829
|
return;
|
|
4061
|
-
if (!this.disabled && this.selectable) {
|
|
4830
|
+
if (!this.disabled && this.selectable()) {
|
|
4062
4831
|
this._selected = this.multiple ? !this._selected : true;
|
|
4063
4832
|
this.changeDetectorRef.markForCheck();
|
|
4064
4833
|
this.emitSelectionChangeEvent(true);
|
|
@@ -4077,19 +4846,24 @@ class KbqOption extends KbqOptionBase {
|
|
|
4077
4846
|
this.isFocusedByMouse = true;
|
|
4078
4847
|
this.parent?.keyManager?.setActiveItem(this);
|
|
4079
4848
|
}
|
|
4080
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4081
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
4849
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOption, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
4850
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: KbqOption, isStandalone: true, selector: "kbq-option", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, userSelect: { classPropertyName: "userSelect", publicName: "userSelect", isSignal: true, isRequired: false, transformFunction: null }, showCheckbox: { classPropertyName: "showCheckbox", publicName: "showCheckbox", isSignal: false, isRequired: false, transformFunction: null }, viewValue: { classPropertyName: "viewValue", publicName: "viewValue", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { onSelectionChange: "onSelectionChange" }, host: { listeners: { "click": "handleClick($event)", "mouseenter": "onMouseenter()", "keydown": "handleKeydown($event)" }, properties: { "attr.tabindex": "getTabIndex()", "class.kbq-selected": "selected", "class.kbq-option-multiple": "multiple", "class.kbq-active": "active", "class.kbq-disabled": "disabled", "id": "id" }, classAttribute: "kbq-option" }, providers: [
|
|
4082
4851
|
{
|
|
4083
4852
|
provide: KBQ_TITLE_TEXT_REF,
|
|
4084
4853
|
useExisting: KbqOption
|
|
4085
4854
|
}
|
|
4086
|
-
], viewQueries: [{ propertyName: "textElement", first: true, predicate: ["kbqTitleText"], descendants: true }], exportAs: ["kbqOption"], usesInheritance: true, ngImport: i0, template: "@if (showCheckbox) {\n <ng-content select=\"kbq-pseudo-checkbox\">\n <kbq-pseudo-checkbox [disabled]=\"disabled\" [state]=\"selected ? 'checked' : 'unchecked'\" />\n </ng-content>\n}\n\n<span #kbqTitleText class=\"kbq-option-text\">\n <ng-content />\n</span>\n", styles: [".kbq-truncate-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-option{position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;min-height:32px;gap:var(--kbq-size-s);border:var(--kbq-size-3xs) solid transparent;padding:var(--kbq-size-xxs) calc(var(--kbq-size-m) - var(--kbq-size-3xs))}.kbq-option .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-option .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;overflow:hidden}.kbq-option .kbq-list-text:empty{display:none}.kbq-option .kbq-list-text{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-option .kbq-list-option-caption{padding-top:var(--kbq-size-3xs)}.kbq-option{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-option>.kbq-pseudo-checkbox{margin-top:var(--kbq-size-3xs);align-self:baseline}.kbq-option{border-radius:var(--kbq-option-border-radius)}.kbq-option:not(.kbq-disabled){cursor:pointer}.kbq-option-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-option-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;overflow:hidden}.kbq-option-text:empty{display:none}.kbq-option-text{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-option{background:var(--kbq-list-default-container-background)}.kbq-option .kbq-option-text{color:var(--kbq-list-default-text-color)}.kbq-option .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-default-icon-button-color)}.kbq-option .kbq-option-caption{color:var(--kbq-list-default-caption-color)}.kbq-option.kbq-hovered:not(.kbq-disabled),.kbq-option:hover:not(.kbq-disabled){background:var(--kbq-list-states-hover-container-background)}.kbq-option.kbq-hovered:not(.kbq-disabled) .kbq-option-text,.kbq-option:hover:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-states-hover-text-color)}.kbq-option.kbq-hovered:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty,.kbq-option:hover:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-hover-icon-button-color)}.kbq-option.kbq-hovered:not(.kbq-disabled) .kbq-option-caption,.kbq-option:hover:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-states-hover-caption-color)}.kbq-option.kbq-selected:not(.kbq-disabled){background:var(--kbq-list-states-selected-container-background)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-states-selected-text-color)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-selected-icon-button-color)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-states-selected-caption-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-hovered,.kbq-option.kbq-selected:not(.kbq-disabled):hover{background:var(--kbq-list-states-selected-hover-container-background)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-text,.kbq-option.kbq-selected:not(.kbq-disabled):hover .kbq-option-text{color:var(--kbq-list-states-selected-hover-text-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-action .kbq-icon.kbq-empty,.kbq-option.kbq-selected:not(.kbq-disabled):hover .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-selected-hover-icon-button-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-caption,.kbq-option.kbq-selected:not(.kbq-disabled):hover .kbq-option-caption{color:var(--kbq-list-states-selected-hover-caption-color)}.kbq-option.kbq-disabled{background:var(--kbq-list-states-disabled-container-background)}.kbq-option.kbq-disabled .kbq-option-text{color:var(--kbq-list-states-disabled-text-color)}.kbq-option.kbq-disabled .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-disabled-icon-button-color)}.kbq-option.kbq-disabled .kbq-option-caption{color:var(--kbq-list-states-disabled-caption-color)}.kbq-option:is(.kbq-selected,.kbq-focused):has(+:is(.kbq-selected,.kbq-focused)){border-bottom-left-radius:0;border-bottom-right-radius:0}.kbq-option:is(.kbq-selected,.kbq-focused)+:is(.kbq-selected,.kbq-focused){border-top-left-radius:0;border-top-right-radius:0}.kbq-option-multiple.kbq-selected:not(.kbq-disabled){background:var(--kbq-list-multiple-states-selected-container-background)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-multiple-states-selected-text-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-multiple-states-selected-icon-button-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-multiple-states-selected-caption-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-hovered,.kbq-option-multiple.kbq-selected:not(.kbq-disabled):hover{background:var(--kbq-list-multiple-states-selected-hover-container-background)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-text,.kbq-option-multiple.kbq-selected:not(.kbq-disabled):hover .kbq-option-text{color:var(--kbq-list-multiple-states-selected-hover-text-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-action .kbq-icon.kbq-empty,.kbq-option-multiple.kbq-selected:not(.kbq-disabled):hover .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-multiple-states-selected-hover-icon-button-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-caption,.kbq-option-multiple.kbq-selected:not(.kbq-disabled):hover .kbq-option-caption{color:var(--kbq-list-multiple-states-selected-hover-caption-color)}.cdk-keyboard-focused .kbq-option.kbq-active{border-color:var(--kbq-list-states-focused-focus-outline-color)}.kbq-option{font-size:var(--kbq-typography-text-normal-font-size);font-style:var(--kbq-typography-text-normal-font-style);font-weight:var(--kbq-typography-text-normal-font-weight);line-height:var(--kbq-typography-text-normal-line-height);font-family:var(--kbq-typography-text-normal-font-family);text-transform:var(--kbq-typography-text-normal-text-transform);font-feature-settings:var(--kbq-typography-text-normal-font-feature-settings);letter-spacing:var(--kbq-typography-text-normal-letter-spacing)}.kbq-list-option-caption{font-size:var(--kbq-typography-text-compact-font-size);font-style:var(--kbq-typography-text-compact-font-style);font-weight:var(--kbq-typography-text-compact-font-weight);line-height:var(--kbq-typography-text-compact-line-height);font-family:var(--kbq-typography-text-compact-font-family);text-transform:var(--kbq-typography-text-compact-text-transform);font-feature-settings:var(--kbq-typography-text-compact-font-feature-settings);letter-spacing:var(--kbq-typography-text-compact-letter-spacing)}\n", ".kbq-list,.kbq-list-selection{--kbq-list-size-container-padding-left: var(--kbq-size-m);--kbq-list-size-container-padding-right: var(--kbq-size-m);--kbq-list-size-container-padding-vertical: var(--kbq-size-xs);--kbq-list-size-container-content-gap-horizontal: var(--kbq-size-s);--kbq-list-size-container-content-gap-vertical: var(--kbq-size-3xs);--kbq-list-size-container-focus-outline-width: var(--kbq-size-3xs);--kbq-list-size-header-padding-top: var(--kbq-size-s);--kbq-list-size-header-padding-bottom: var(--kbq-size-xxs);--kbq-list-size-header-padding-horizontal: var(--kbq-size-m);--kbq-list-size-subheading-padding-top: var(--kbq-size-m);--kbq-list-size-subheading-padding-bottom: var(--kbq-size-xxs);--kbq-list-size-subheading-padding-horizontal: var(--kbq-size-m);--kbq-list-default-container-background: transparent;--kbq-list-default-text-color: var(--kbq-foreground-contrast);--kbq-list-default-icon-color: var(--kbq-icon-contrast);--kbq-list-default-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-default-caption-color: var(--kbq-foreground-contrast-secondary);--kbq-list-states-hover-container-background: var(--kbq-states-background-transparent-hover);--kbq-list-states-active-container-background: var(--kbq-states-background-transparent-active);--kbq-list-states-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-container-background: var(--kbq-background-theme-less);--kbq-list-multiple-states-selected-container-background: var(--kbq-background-contrast-less);--kbq-list-states-selected-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-hover-container-background: var(--kbq-states-background-theme-less-hover);--kbq-list-multiple-states-selected-hover-container-background: var(--kbq-states-background-contrast-less-hover);--kbq-list-states-selected-active-container-background: var(--kbq-states-background-theme-less-active);--kbq-list-multiple-states-selected-active-container-background: var(--kbq-states-background-contrast-less-active);--kbq-list-states-selected-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);--kbq-list-states-disabled-container-background: transparent;--kbq-list-states-disabled-text-color: var(--kbq-states-foreground-disabled);--kbq-list-states-disabled-icon-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-icon-button-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-caption-color: var(--kbq-states-foreground-disabled)}.kbq-option{--kbq-option-size-horizontal-padding: var(--kbq-size-m);--kbq-option-size-height: var(--kbq-size-3xl);--kbq-option-size-border-width: 2px;--kbq-option-border-radius: var(--kbq-size-xs)}.kbq-option{--kbq-list-default-container-background: transparent;--kbq-list-default-text-color: var(--kbq-foreground-contrast);--kbq-list-default-icon-color: var(--kbq-icon-contrast);--kbq-list-default-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-default-caption-color: var(--kbq-foreground-contrast-secondary);--kbq-list-states-hover-container-background: var(--kbq-states-background-transparent-hover);--kbq-list-states-active-container-background: var(--kbq-states-background-transparent-active);--kbq-list-states-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-container-background: var(--kbq-background-theme-less);--kbq-list-multiple-states-selected-container-background: var(--kbq-background-contrast-less);--kbq-list-states-selected-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-hover-container-background: var(--kbq-states-background-theme-less-hover);--kbq-list-multiple-states-selected-hover-container-background: var(--kbq-states-background-contrast-less-hover);--kbq-list-states-selected-active-container-background: var(--kbq-states-background-theme-less-active);--kbq-list-multiple-states-selected-active-container-background: var(--kbq-states-background-contrast-less-active);--kbq-list-states-selected-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);--kbq-list-states-disabled-container-background: transparent;--kbq-list-states-disabled-text-color: var(--kbq-states-foreground-disabled);--kbq-list-states-disabled-icon-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-icon-button-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-caption-color: var(--kbq-states-foreground-disabled)}\n"], dependencies: [{ kind: "ngmodule", type: KbqPseudoCheckboxModule }, { kind: "component", type: KbqPseudoCheckbox, selector: "kbq-pseudo-checkbox", inputs: ["big", "state", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
4855
|
+
], viewQueries: [{ propertyName: "textElement", first: true, predicate: ["kbqTitleText"], descendants: true }], exportAs: ["kbqOption"], usesInheritance: true, ngImport: i0, template: "@if (showCheckbox) {\n <ng-content select=\"kbq-pseudo-checkbox\">\n <kbq-pseudo-checkbox [disabled]=\"disabled\" [state]=\"selected ? 'checked' : 'unchecked'\" />\n </ng-content>\n}\n\n<span #kbqTitleText class=\"kbq-option-text\">\n <ng-content />\n</span>\n", styles: [".kbq-truncate-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-option{position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;min-height:32px;gap:var(--kbq-size-s);border:var(--kbq-size-3xs) solid transparent;padding:var(--kbq-size-xxs) calc(var(--kbq-size-m) - var(--kbq-size-3xs))}.kbq-option .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-option .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;overflow:hidden}.kbq-option .kbq-list-text:empty{display:none}.kbq-option .kbq-list-text{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-option .kbq-list-option-caption{padding-top:var(--kbq-size-3xs)}.kbq-option{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-option>.kbq-pseudo-checkbox{margin-top:var(--kbq-size-3xs);align-self:baseline}.kbq-option{border-radius:var(--kbq-option-border-radius)}.kbq-option:not(.kbq-disabled){cursor:pointer}.kbq-option-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-option-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;overflow:hidden}.kbq-option-text:empty{display:none}.kbq-option-text{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-option{background:var(--kbq-list-default-container-background)}.kbq-option .kbq-option-text{color:var(--kbq-list-default-text-color)}.kbq-option .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-default-icon-button-color)}.kbq-option .kbq-option-caption{color:var(--kbq-list-default-caption-color)}.kbq-option.kbq-active:not(.kbq-disabled){background:var(--kbq-list-states-hover-container-background)}.kbq-option.kbq-active:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-states-hover-text-color)}.kbq-option.kbq-active:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-hover-icon-button-color)}.kbq-option.kbq-active:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-states-hover-caption-color)}.kbq-option.kbq-selected:not(.kbq-disabled){background:var(--kbq-list-states-selected-container-background)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-states-selected-text-color)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-selected-icon-button-color)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-states-selected-caption-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-active{background:var(--kbq-list-states-selected-hover-container-background)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-text{color:var(--kbq-list-states-selected-hover-text-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-selected-hover-icon-button-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-caption{color:var(--kbq-list-states-selected-hover-caption-color)}.kbq-option.kbq-disabled{background:var(--kbq-list-states-disabled-container-background)}.kbq-option.kbq-disabled .kbq-option-text{color:var(--kbq-list-states-disabled-text-color)}.kbq-option.kbq-disabled .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-disabled-icon-button-color)}.kbq-option.kbq-disabled .kbq-option-caption{color:var(--kbq-list-states-disabled-caption-color)}.kbq-option:is(.kbq-selected,.kbq-active):has(+:is(.kbq-selected,.kbq-active)){border-bottom-left-radius:0;border-bottom-right-radius:0}.kbq-option:is(.kbq-selected,.kbq-active)+:is(.kbq-selected,.kbq-active){border-top-left-radius:0;border-top-right-radius:0}.kbq-option-multiple.kbq-selected:not(.kbq-disabled){background:var(--kbq-list-multiple-states-selected-container-background)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-multiple-states-selected-text-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-multiple-states-selected-icon-button-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-multiple-states-selected-caption-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-active{background:var(--kbq-list-multiple-states-selected-hover-container-background)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-text{color:var(--kbq-list-multiple-states-selected-hover-text-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-multiple-states-selected-hover-icon-button-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-caption{color:var(--kbq-list-multiple-states-selected-hover-caption-color)}.kbq-option{font-size:var(--kbq-typography-text-normal-font-size);font-style:var(--kbq-typography-text-normal-font-style);font-weight:var(--kbq-typography-text-normal-font-weight);line-height:var(--kbq-typography-text-normal-line-height);font-family:var(--kbq-typography-text-normal-font-family);text-transform:var(--kbq-typography-text-normal-text-transform);font-feature-settings:var(--kbq-typography-text-normal-font-feature-settings);letter-spacing:var(--kbq-typography-text-normal-letter-spacing)}.kbq-list-option-caption{font-size:var(--kbq-typography-text-compact-font-size);font-style:var(--kbq-typography-text-compact-font-style);font-weight:var(--kbq-typography-text-compact-font-weight);line-height:var(--kbq-typography-text-compact-line-height);font-family:var(--kbq-typography-text-compact-font-family);text-transform:var(--kbq-typography-text-compact-text-transform);font-feature-settings:var(--kbq-typography-text-compact-font-feature-settings);letter-spacing:var(--kbq-typography-text-compact-letter-spacing)}\n", ".kbq-list,.kbq-list-selection{--kbq-list-size-container-padding-left: var(--kbq-size-m);--kbq-list-size-container-padding-right: var(--kbq-size-m);--kbq-list-size-container-padding-vertical: var(--kbq-size-xs);--kbq-list-size-container-content-gap-horizontal: var(--kbq-size-s);--kbq-list-size-container-content-gap-vertical: var(--kbq-size-3xs);--kbq-list-size-container-focus-outline-width: var(--kbq-size-3xs);--kbq-list-size-header-padding-top: var(--kbq-size-s);--kbq-list-size-header-padding-bottom: var(--kbq-size-xxs);--kbq-list-size-header-padding-horizontal: var(--kbq-size-m);--kbq-list-size-subheading-padding-top: var(--kbq-size-m);--kbq-list-size-subheading-padding-bottom: var(--kbq-size-xxs);--kbq-list-size-subheading-padding-horizontal: var(--kbq-size-m);--kbq-list-default-container-background: transparent;--kbq-list-default-text-color: var(--kbq-foreground-contrast);--kbq-list-default-icon-color: var(--kbq-icon-contrast);--kbq-list-default-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-default-caption-color: var(--kbq-foreground-contrast-secondary);--kbq-list-states-hover-container-background: var(--kbq-states-background-transparent-hover);--kbq-list-states-active-container-background: var(--kbq-states-background-transparent-active);--kbq-list-states-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-container-background: var(--kbq-background-theme-less);--kbq-list-multiple-states-selected-container-background: var(--kbq-background-contrast-less);--kbq-list-states-selected-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-hover-container-background: var(--kbq-states-background-theme-less-hover);--kbq-list-multiple-states-selected-hover-container-background: var(--kbq-states-background-contrast-less-hover);--kbq-list-states-selected-active-container-background: var(--kbq-states-background-theme-less-active);--kbq-list-multiple-states-selected-active-container-background: var(--kbq-states-background-contrast-less-active);--kbq-list-states-selected-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);--kbq-list-states-disabled-container-background: transparent;--kbq-list-states-disabled-text-color: var(--kbq-states-foreground-disabled);--kbq-list-states-disabled-icon-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-icon-button-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-caption-color: var(--kbq-states-foreground-disabled)}.kbq-option{--kbq-option-size-horizontal-padding: var(--kbq-size-m);--kbq-option-size-height: var(--kbq-size-3xl);--kbq-option-size-border-width: 2px;--kbq-option-border-radius: var(--kbq-size-xs)}.kbq-option{--kbq-list-default-container-background: transparent;--kbq-list-default-text-color: var(--kbq-foreground-contrast);--kbq-list-default-icon-color: var(--kbq-icon-contrast);--kbq-list-default-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-default-caption-color: var(--kbq-foreground-contrast-secondary);--kbq-list-states-hover-container-background: var(--kbq-states-background-transparent-hover);--kbq-list-states-active-container-background: var(--kbq-states-background-transparent-active);--kbq-list-states-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-container-background: var(--kbq-background-theme-less);--kbq-list-multiple-states-selected-container-background: var(--kbq-background-contrast-less);--kbq-list-states-selected-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-hover-container-background: var(--kbq-states-background-theme-less-hover);--kbq-list-multiple-states-selected-hover-container-background: var(--kbq-states-background-contrast-less-hover);--kbq-list-states-selected-active-container-background: var(--kbq-states-background-theme-less-active);--kbq-list-multiple-states-selected-active-container-background: var(--kbq-states-background-contrast-less-active);--kbq-list-states-selected-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);--kbq-list-states-disabled-container-background: transparent;--kbq-list-states-disabled-text-color: var(--kbq-states-foreground-disabled);--kbq-list-states-disabled-icon-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-icon-button-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-caption-color: var(--kbq-states-foreground-disabled)}\n"], dependencies: [{ kind: "ngmodule", type: KbqPseudoCheckboxModule }, { kind: "component", type: KbqPseudoCheckbox, selector: "kbq-pseudo-checkbox", inputs: ["big", "state", "disabled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
4087
4856
|
}
|
|
4088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOption, decorators: [{
|
|
4089
4858
|
type: Component,
|
|
4090
4859
|
args: [{ selector: 'kbq-option', imports: [
|
|
4091
4860
|
KbqPseudoCheckboxModule
|
|
4092
|
-
],
|
|
4861
|
+
], providers: [
|
|
4862
|
+
{
|
|
4863
|
+
provide: KBQ_TITLE_TEXT_REF,
|
|
4864
|
+
useExisting: KbqOption
|
|
4865
|
+
}
|
|
4866
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
4093
4867
|
'[attr.tabindex]': 'getTabIndex()',
|
|
4094
4868
|
class: 'kbq-option',
|
|
4095
4869
|
'[class.kbq-selected]': 'selected',
|
|
@@ -4100,31 +4874,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
4100
4874
|
'(click)': 'handleClick($event)',
|
|
4101
4875
|
'(mouseenter)': 'onMouseenter()',
|
|
4102
4876
|
'(keydown)': 'handleKeydown($event)'
|
|
4103
|
-
}, providers: [
|
|
4104
|
-
|
|
4105
|
-
provide: KBQ_TITLE_TEXT_REF,
|
|
4106
|
-
useExisting: KbqOption
|
|
4107
|
-
}
|
|
4108
|
-
], template: "@if (showCheckbox) {\n <ng-content select=\"kbq-pseudo-checkbox\">\n <kbq-pseudo-checkbox [disabled]=\"disabled\" [state]=\"selected ? 'checked' : 'unchecked'\" />\n </ng-content>\n}\n\n<span #kbqTitleText class=\"kbq-option-text\">\n <ng-content />\n</span>\n", styles: [".kbq-truncate-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-option{position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;min-height:32px;gap:var(--kbq-size-s);border:var(--kbq-size-3xs) solid transparent;padding:var(--kbq-size-xxs) calc(var(--kbq-size-m) - var(--kbq-size-3xs))}.kbq-option .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-option .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;overflow:hidden}.kbq-option .kbq-list-text:empty{display:none}.kbq-option .kbq-list-text{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-option .kbq-list-option-caption{padding-top:var(--kbq-size-3xs)}.kbq-option{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-option>.kbq-pseudo-checkbox{margin-top:var(--kbq-size-3xs);align-self:baseline}.kbq-option{border-radius:var(--kbq-option-border-radius)}.kbq-option:not(.kbq-disabled){cursor:pointer}.kbq-option-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-option-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;overflow:hidden}.kbq-option-text:empty{display:none}.kbq-option-text{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-option{background:var(--kbq-list-default-container-background)}.kbq-option .kbq-option-text{color:var(--kbq-list-default-text-color)}.kbq-option .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-default-icon-button-color)}.kbq-option .kbq-option-caption{color:var(--kbq-list-default-caption-color)}.kbq-option.kbq-hovered:not(.kbq-disabled),.kbq-option:hover:not(.kbq-disabled){background:var(--kbq-list-states-hover-container-background)}.kbq-option.kbq-hovered:not(.kbq-disabled) .kbq-option-text,.kbq-option:hover:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-states-hover-text-color)}.kbq-option.kbq-hovered:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty,.kbq-option:hover:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-hover-icon-button-color)}.kbq-option.kbq-hovered:not(.kbq-disabled) .kbq-option-caption,.kbq-option:hover:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-states-hover-caption-color)}.kbq-option.kbq-selected:not(.kbq-disabled){background:var(--kbq-list-states-selected-container-background)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-states-selected-text-color)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-selected-icon-button-color)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-states-selected-caption-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-hovered,.kbq-option.kbq-selected:not(.kbq-disabled):hover{background:var(--kbq-list-states-selected-hover-container-background)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-text,.kbq-option.kbq-selected:not(.kbq-disabled):hover .kbq-option-text{color:var(--kbq-list-states-selected-hover-text-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-action .kbq-icon.kbq-empty,.kbq-option.kbq-selected:not(.kbq-disabled):hover .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-selected-hover-icon-button-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-caption,.kbq-option.kbq-selected:not(.kbq-disabled):hover .kbq-option-caption{color:var(--kbq-list-states-selected-hover-caption-color)}.kbq-option.kbq-disabled{background:var(--kbq-list-states-disabled-container-background)}.kbq-option.kbq-disabled .kbq-option-text{color:var(--kbq-list-states-disabled-text-color)}.kbq-option.kbq-disabled .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-disabled-icon-button-color)}.kbq-option.kbq-disabled .kbq-option-caption{color:var(--kbq-list-states-disabled-caption-color)}.kbq-option:is(.kbq-selected,.kbq-focused):has(+:is(.kbq-selected,.kbq-focused)){border-bottom-left-radius:0;border-bottom-right-radius:0}.kbq-option:is(.kbq-selected,.kbq-focused)+:is(.kbq-selected,.kbq-focused){border-top-left-radius:0;border-top-right-radius:0}.kbq-option-multiple.kbq-selected:not(.kbq-disabled){background:var(--kbq-list-multiple-states-selected-container-background)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-multiple-states-selected-text-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-multiple-states-selected-icon-button-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-multiple-states-selected-caption-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-hovered,.kbq-option-multiple.kbq-selected:not(.kbq-disabled):hover{background:var(--kbq-list-multiple-states-selected-hover-container-background)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-text,.kbq-option-multiple.kbq-selected:not(.kbq-disabled):hover .kbq-option-text{color:var(--kbq-list-multiple-states-selected-hover-text-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-action .kbq-icon.kbq-empty,.kbq-option-multiple.kbq-selected:not(.kbq-disabled):hover .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-multiple-states-selected-hover-icon-button-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-hovered .kbq-option-caption,.kbq-option-multiple.kbq-selected:not(.kbq-disabled):hover .kbq-option-caption{color:var(--kbq-list-multiple-states-selected-hover-caption-color)}.cdk-keyboard-focused .kbq-option.kbq-active{border-color:var(--kbq-list-states-focused-focus-outline-color)}.kbq-option{font-size:var(--kbq-typography-text-normal-font-size);font-style:var(--kbq-typography-text-normal-font-style);font-weight:var(--kbq-typography-text-normal-font-weight);line-height:var(--kbq-typography-text-normal-line-height);font-family:var(--kbq-typography-text-normal-font-family);text-transform:var(--kbq-typography-text-normal-text-transform);font-feature-settings:var(--kbq-typography-text-normal-font-feature-settings);letter-spacing:var(--kbq-typography-text-normal-letter-spacing)}.kbq-list-option-caption{font-size:var(--kbq-typography-text-compact-font-size);font-style:var(--kbq-typography-text-compact-font-style);font-weight:var(--kbq-typography-text-compact-font-weight);line-height:var(--kbq-typography-text-compact-line-height);font-family:var(--kbq-typography-text-compact-font-family);text-transform:var(--kbq-typography-text-compact-text-transform);font-feature-settings:var(--kbq-typography-text-compact-font-feature-settings);letter-spacing:var(--kbq-typography-text-compact-letter-spacing)}\n", ".kbq-list,.kbq-list-selection{--kbq-list-size-container-padding-left: var(--kbq-size-m);--kbq-list-size-container-padding-right: var(--kbq-size-m);--kbq-list-size-container-padding-vertical: var(--kbq-size-xs);--kbq-list-size-container-content-gap-horizontal: var(--kbq-size-s);--kbq-list-size-container-content-gap-vertical: var(--kbq-size-3xs);--kbq-list-size-container-focus-outline-width: var(--kbq-size-3xs);--kbq-list-size-header-padding-top: var(--kbq-size-s);--kbq-list-size-header-padding-bottom: var(--kbq-size-xxs);--kbq-list-size-header-padding-horizontal: var(--kbq-size-m);--kbq-list-size-subheading-padding-top: var(--kbq-size-m);--kbq-list-size-subheading-padding-bottom: var(--kbq-size-xxs);--kbq-list-size-subheading-padding-horizontal: var(--kbq-size-m);--kbq-list-default-container-background: transparent;--kbq-list-default-text-color: var(--kbq-foreground-contrast);--kbq-list-default-icon-color: var(--kbq-icon-contrast);--kbq-list-default-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-default-caption-color: var(--kbq-foreground-contrast-secondary);--kbq-list-states-hover-container-background: var(--kbq-states-background-transparent-hover);--kbq-list-states-active-container-background: var(--kbq-states-background-transparent-active);--kbq-list-states-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-container-background: var(--kbq-background-theme-less);--kbq-list-multiple-states-selected-container-background: var(--kbq-background-contrast-less);--kbq-list-states-selected-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-hover-container-background: var(--kbq-states-background-theme-less-hover);--kbq-list-multiple-states-selected-hover-container-background: var(--kbq-states-background-contrast-less-hover);--kbq-list-states-selected-active-container-background: var(--kbq-states-background-theme-less-active);--kbq-list-multiple-states-selected-active-container-background: var(--kbq-states-background-contrast-less-active);--kbq-list-states-selected-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);--kbq-list-states-disabled-container-background: transparent;--kbq-list-states-disabled-text-color: var(--kbq-states-foreground-disabled);--kbq-list-states-disabled-icon-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-icon-button-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-caption-color: var(--kbq-states-foreground-disabled)}.kbq-option{--kbq-option-size-horizontal-padding: var(--kbq-size-m);--kbq-option-size-height: var(--kbq-size-3xl);--kbq-option-size-border-width: 2px;--kbq-option-border-radius: var(--kbq-size-xs)}.kbq-option{--kbq-list-default-container-background: transparent;--kbq-list-default-text-color: var(--kbq-foreground-contrast);--kbq-list-default-icon-color: var(--kbq-icon-contrast);--kbq-list-default-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-default-caption-color: var(--kbq-foreground-contrast-secondary);--kbq-list-states-hover-container-background: var(--kbq-states-background-transparent-hover);--kbq-list-states-active-container-background: var(--kbq-states-background-transparent-active);--kbq-list-states-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-container-background: var(--kbq-background-theme-less);--kbq-list-multiple-states-selected-container-background: var(--kbq-background-contrast-less);--kbq-list-states-selected-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-hover-container-background: var(--kbq-states-background-theme-less-hover);--kbq-list-multiple-states-selected-hover-container-background: var(--kbq-states-background-contrast-less-hover);--kbq-list-states-selected-active-container-background: var(--kbq-states-background-theme-less-active);--kbq-list-multiple-states-selected-active-container-background: var(--kbq-states-background-contrast-less-active);--kbq-list-states-selected-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);--kbq-list-states-disabled-container-background: transparent;--kbq-list-states-disabled-text-color: var(--kbq-states-foreground-disabled);--kbq-list-states-disabled-icon-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-icon-button-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-caption-color: var(--kbq-states-foreground-disabled)}\n"] }]
|
|
4109
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
4110
|
-
type: Optional
|
|
4111
|
-
}, {
|
|
4112
|
-
type: Inject,
|
|
4113
|
-
args: [KBQ_OPTION_PARENT_COMPONENT]
|
|
4114
|
-
}] }, { type: KbqOptgroup, decorators: [{
|
|
4115
|
-
type: Optional
|
|
4116
|
-
}] }], propDecorators: { textElement: [{
|
|
4877
|
+
}, exportAs: 'kbqOption', template: "@if (showCheckbox) {\n <ng-content select=\"kbq-pseudo-checkbox\">\n <kbq-pseudo-checkbox [disabled]=\"disabled\" [state]=\"selected ? 'checked' : 'unchecked'\" />\n </ng-content>\n}\n\n<span #kbqTitleText class=\"kbq-option-text\">\n <ng-content />\n</span>\n", styles: [".kbq-truncate-line{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-no-select{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-option{position:relative;display:flex;flex-direction:row;align-items:center;box-sizing:border-box;outline:none;-webkit-tap-highlight-color:transparent;min-height:32px;gap:var(--kbq-size-s);border:var(--kbq-size-3xs) solid transparent;padding:var(--kbq-size-xxs) calc(var(--kbq-size-m) - var(--kbq-size-3xs))}.kbq-option .kbq-list-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-option .kbq-list-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;overflow:hidden}.kbq-option .kbq-list-text:empty{display:none}.kbq-option .kbq-list-text{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-option .kbq-list-option-caption{padding-top:var(--kbq-size-3xs)}.kbq-option{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.kbq-option>.kbq-pseudo-checkbox{margin-top:var(--kbq-size-3xs);align-self:baseline}.kbq-option{border-radius:var(--kbq-option-border-radius)}.kbq-option:not(.kbq-disabled){cursor:pointer}.kbq-option-text>*{margin:0;padding:0;font-weight:400;font-size:inherit}.kbq-option-text{display:flex;flex-direction:column;width:100%;box-sizing:content-box;overflow:hidden}.kbq-option-text:empty{display:none}.kbq-option-text{display:inline-block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.kbq-option{background:var(--kbq-list-default-container-background)}.kbq-option .kbq-option-text{color:var(--kbq-list-default-text-color)}.kbq-option .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-default-icon-button-color)}.kbq-option .kbq-option-caption{color:var(--kbq-list-default-caption-color)}.kbq-option.kbq-active:not(.kbq-disabled){background:var(--kbq-list-states-hover-container-background)}.kbq-option.kbq-active:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-states-hover-text-color)}.kbq-option.kbq-active:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-hover-icon-button-color)}.kbq-option.kbq-active:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-states-hover-caption-color)}.kbq-option.kbq-selected:not(.kbq-disabled){background:var(--kbq-list-states-selected-container-background)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-states-selected-text-color)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-selected-icon-button-color)}.kbq-option.kbq-selected:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-states-selected-caption-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-active{background:var(--kbq-list-states-selected-hover-container-background)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-text{color:var(--kbq-list-states-selected-hover-text-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-selected-hover-icon-button-color)}.kbq-option.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-caption{color:var(--kbq-list-states-selected-hover-caption-color)}.kbq-option.kbq-disabled{background:var(--kbq-list-states-disabled-container-background)}.kbq-option.kbq-disabled .kbq-option-text{color:var(--kbq-list-states-disabled-text-color)}.kbq-option.kbq-disabled .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-states-disabled-icon-button-color)}.kbq-option.kbq-disabled .kbq-option-caption{color:var(--kbq-list-states-disabled-caption-color)}.kbq-option:is(.kbq-selected,.kbq-active):has(+:is(.kbq-selected,.kbq-active)){border-bottom-left-radius:0;border-bottom-right-radius:0}.kbq-option:is(.kbq-selected,.kbq-active)+:is(.kbq-selected,.kbq-active){border-top-left-radius:0;border-top-right-radius:0}.kbq-option-multiple.kbq-selected:not(.kbq-disabled){background:var(--kbq-list-multiple-states-selected-container-background)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-text{color:var(--kbq-list-multiple-states-selected-text-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-multiple-states-selected-icon-button-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled) .kbq-option-caption{color:var(--kbq-list-multiple-states-selected-caption-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-active{background:var(--kbq-list-multiple-states-selected-hover-container-background)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-text{color:var(--kbq-list-multiple-states-selected-hover-text-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-action .kbq-icon.kbq-empty{color:var(--kbq-list-multiple-states-selected-hover-icon-button-color)}.kbq-option-multiple.kbq-selected:not(.kbq-disabled).kbq-active .kbq-option-caption{color:var(--kbq-list-multiple-states-selected-hover-caption-color)}.kbq-option{font-size:var(--kbq-typography-text-normal-font-size);font-style:var(--kbq-typography-text-normal-font-style);font-weight:var(--kbq-typography-text-normal-font-weight);line-height:var(--kbq-typography-text-normal-line-height);font-family:var(--kbq-typography-text-normal-font-family);text-transform:var(--kbq-typography-text-normal-text-transform);font-feature-settings:var(--kbq-typography-text-normal-font-feature-settings);letter-spacing:var(--kbq-typography-text-normal-letter-spacing)}.kbq-list-option-caption{font-size:var(--kbq-typography-text-compact-font-size);font-style:var(--kbq-typography-text-compact-font-style);font-weight:var(--kbq-typography-text-compact-font-weight);line-height:var(--kbq-typography-text-compact-line-height);font-family:var(--kbq-typography-text-compact-font-family);text-transform:var(--kbq-typography-text-compact-text-transform);font-feature-settings:var(--kbq-typography-text-compact-font-feature-settings);letter-spacing:var(--kbq-typography-text-compact-letter-spacing)}\n", ".kbq-list,.kbq-list-selection{--kbq-list-size-container-padding-left: var(--kbq-size-m);--kbq-list-size-container-padding-right: var(--kbq-size-m);--kbq-list-size-container-padding-vertical: var(--kbq-size-xs);--kbq-list-size-container-content-gap-horizontal: var(--kbq-size-s);--kbq-list-size-container-content-gap-vertical: var(--kbq-size-3xs);--kbq-list-size-container-focus-outline-width: var(--kbq-size-3xs);--kbq-list-size-header-padding-top: var(--kbq-size-s);--kbq-list-size-header-padding-bottom: var(--kbq-size-xxs);--kbq-list-size-header-padding-horizontal: var(--kbq-size-m);--kbq-list-size-subheading-padding-top: var(--kbq-size-m);--kbq-list-size-subheading-padding-bottom: var(--kbq-size-xxs);--kbq-list-size-subheading-padding-horizontal: var(--kbq-size-m);--kbq-list-default-container-background: transparent;--kbq-list-default-text-color: var(--kbq-foreground-contrast);--kbq-list-default-icon-color: var(--kbq-icon-contrast);--kbq-list-default-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-default-caption-color: var(--kbq-foreground-contrast-secondary);--kbq-list-states-hover-container-background: var(--kbq-states-background-transparent-hover);--kbq-list-states-active-container-background: var(--kbq-states-background-transparent-active);--kbq-list-states-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-container-background: var(--kbq-background-theme-less);--kbq-list-multiple-states-selected-container-background: var(--kbq-background-contrast-less);--kbq-list-states-selected-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-hover-container-background: var(--kbq-states-background-theme-less-hover);--kbq-list-multiple-states-selected-hover-container-background: var(--kbq-states-background-contrast-less-hover);--kbq-list-states-selected-active-container-background: var(--kbq-states-background-theme-less-active);--kbq-list-multiple-states-selected-active-container-background: var(--kbq-states-background-contrast-less-active);--kbq-list-states-selected-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);--kbq-list-states-disabled-container-background: transparent;--kbq-list-states-disabled-text-color: var(--kbq-states-foreground-disabled);--kbq-list-states-disabled-icon-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-icon-button-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-caption-color: var(--kbq-states-foreground-disabled)}.kbq-option{--kbq-option-size-horizontal-padding: var(--kbq-size-m);--kbq-option-size-height: var(--kbq-size-3xl);--kbq-option-size-border-width: 2px;--kbq-option-border-radius: var(--kbq-size-xs)}.kbq-option{--kbq-list-default-container-background: transparent;--kbq-list-default-text-color: var(--kbq-foreground-contrast);--kbq-list-default-icon-color: var(--kbq-icon-contrast);--kbq-list-default-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-default-caption-color: var(--kbq-foreground-contrast-secondary);--kbq-list-states-hover-container-background: var(--kbq-states-background-transparent-hover);--kbq-list-states-active-container-background: var(--kbq-states-background-transparent-active);--kbq-list-states-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-container-background: var(--kbq-background-theme-less);--kbq-list-multiple-states-selected-container-background: var(--kbq-background-contrast-less);--kbq-list-states-selected-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-selected-hover-container-background: var(--kbq-states-background-theme-less-hover);--kbq-list-multiple-states-selected-hover-container-background: var(--kbq-states-background-contrast-less-hover);--kbq-list-states-selected-active-container-background: var(--kbq-states-background-theme-less-active);--kbq-list-multiple-states-selected-active-container-background: var(--kbq-states-background-contrast-less-active);--kbq-list-states-selected-hover-text-color: var(--kbq-foreground-contrast);--kbq-list-states-selected-hover-icon-color: var(--kbq-icon-contrast);--kbq-list-states-selected-hover-icon-button-color: var(--kbq-icon-contrast-fade);--kbq-list-states-focused-focus-outline-color: var(--kbq-states-line-focus-theme);--kbq-list-states-disabled-container-background: transparent;--kbq-list-states-disabled-text-color: var(--kbq-states-foreground-disabled);--kbq-list-states-disabled-icon-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-icon-button-color: var(--kbq-states-icon-disabled);--kbq-list-states-disabled-caption-color: var(--kbq-states-foreground-disabled)}\n"] }]
|
|
4878
|
+
}], propDecorators: { textElement: [{
|
|
4117
4879
|
type: ViewChild,
|
|
4118
4880
|
args: ['kbqTitleText', { static: false }]
|
|
4119
4881
|
}], value: [{
|
|
4120
4882
|
type: Input
|
|
4121
|
-
}], selectable: [{
|
|
4122
|
-
type: Input,
|
|
4123
|
-
args: [{ transform: booleanAttribute }]
|
|
4124
|
-
}], userSelect: [{
|
|
4125
|
-
type: Input,
|
|
4126
|
-
args: [{ transform: booleanAttribute }]
|
|
4127
|
-
}], showCheckbox: [{
|
|
4883
|
+
}], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], userSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "userSelect", required: false }] }], showCheckbox: [{
|
|
4128
4884
|
type: Input
|
|
4129
4885
|
}], onSelectionChange: [{
|
|
4130
4886
|
type: Output
|
|
@@ -4174,11 +4930,11 @@ function getOptionScrollPosition(optionIndex, optionHeight, currentScrollPositio
|
|
|
4174
4930
|
}
|
|
4175
4931
|
|
|
4176
4932
|
class KbqOptionModule {
|
|
4177
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4178
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4179
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4933
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOptionModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
4934
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqOptionModule, imports: [KbqPseudoCheckbox, KbqOption, KbqOptgroup, KbqOptionActionComponent], exports: [KbqOption, KbqOptgroup, KbqOptionActionComponent] }); }
|
|
4935
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOptionModule }); }
|
|
4180
4936
|
}
|
|
4181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4937
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOptionModule, decorators: [{
|
|
4182
4938
|
type: NgModule,
|
|
4183
4939
|
args: [{
|
|
4184
4940
|
imports: [KbqPseudoCheckbox, KbqOption, KbqOptgroup, KbqOptionActionComponent],
|
|
@@ -4186,6 +4942,149 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
4186
4942
|
}]
|
|
4187
4943
|
}] });
|
|
4188
4944
|
|
|
4945
|
+
/**
|
|
4946
|
+
* DI token a scrollable wrapper component can provide to expose itself as the scroll source
|
|
4947
|
+
* for a co-located `KbqOverflowShadowContainer` (see `KbqScrollbar`).
|
|
4948
|
+
*/
|
|
4949
|
+
const KBQ_OVERFLOW_SHADOW_SOURCE = new InjectionToken('KBQ_OVERFLOW_SHADOW_SOURCE');
|
|
4950
|
+
/**
|
|
4951
|
+
* Container directive that sits on the scrollable element. Listens for scroll events and
|
|
4952
|
+
* keeps the `overflow` signal up to date, which is then read by `KbqOverflowShadowTop` and
|
|
4953
|
+
* `KbqOverflowShadowBottom`.
|
|
4954
|
+
*
|
|
4955
|
+
* The scroll source is auto-detected: if `KBQ_OVERFLOW_SHADOW_SOURCE` is provided in the
|
|
4956
|
+
* host's DI, that source is used; otherwise the native `scroll` event on the host element
|
|
4957
|
+
* is observed.
|
|
4958
|
+
*
|
|
4959
|
+
* In addition to scroll events, the directive observes the scroll source's box-size changes
|
|
4960
|
+
* via CDK's `SharedResizeObserver` — this covers layout changes that happen without a scroll
|
|
4961
|
+
* and alter the viewport size (modal open/close animation, window resize, reflow that resizes
|
|
4962
|
+
* the element). Content that only grows `scrollHeight` without changing the element's box size
|
|
4963
|
+
* is not detected by the resize observer; call `checkOverflow()` manually for those cases.
|
|
4964
|
+
*/
|
|
4965
|
+
class KbqOverflowShadowContainer {
|
|
4966
|
+
constructor() {
|
|
4967
|
+
this.destroyRef = inject(DestroyRef);
|
|
4968
|
+
this.hostElement = kbqInjectNativeElement();
|
|
4969
|
+
this.externalSource = inject(KBQ_OVERFLOW_SHADOW_SOURCE, { optional: true, self: true });
|
|
4970
|
+
this.sharedResizeObserver = inject(SharedResizeObserver);
|
|
4971
|
+
/** Optional debounce for scroll events, in milliseconds. Default is 0. */
|
|
4972
|
+
this.debounce = input(0, ...(ngDevMode ? [{ debugName: "debounce", transform: numberAttribute }] : [{ transform: numberAttribute }]));
|
|
4973
|
+
/** Current shadow state. Updated on every scroll event. */
|
|
4974
|
+
this.overflow = signal({ top: false, bottom: false }, ...(ngDevMode ? [{ debugName: "overflow" }] : []));
|
|
4975
|
+
afterNextRender(() => {
|
|
4976
|
+
this.checkOverflow();
|
|
4977
|
+
this.observeResize();
|
|
4978
|
+
});
|
|
4979
|
+
}
|
|
4980
|
+
ngOnInit() {
|
|
4981
|
+
const source$ = this.externalSource
|
|
4982
|
+
? this.externalSource.onScroll
|
|
4983
|
+
: fromEvent(this.hostElement, 'scroll', { passive: true });
|
|
4984
|
+
const stream$ = this.debounce() > 0 ? source$.pipe(debounceTime(this.debounce())) : source$;
|
|
4985
|
+
stream$.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => this.checkOverflow());
|
|
4986
|
+
}
|
|
4987
|
+
/**
|
|
4988
|
+
* Force-rechecks overflow and updates the signal. Calling this manually is normally not
|
|
4989
|
+
* necessary — scroll events plus `SharedResizeObserver` cover the standard scenarios. Kept
|
|
4990
|
+
* for rare cases when external code knows about a layout change more precisely than the
|
|
4991
|
+
* browser observers (e.g. content that only grows `scrollHeight`).
|
|
4992
|
+
*/
|
|
4993
|
+
checkOverflow() {
|
|
4994
|
+
const source = this.getScrollSource();
|
|
4995
|
+
if (!source)
|
|
4996
|
+
return;
|
|
4997
|
+
// `clientHeight` (content-box) is the visible scroll-viewport height. `Math.round` on the
|
|
4998
|
+
// bottom comparison absorbs sub-pixel scroll metrics (HiDPI / browser zoom) so the bottom
|
|
4999
|
+
// shadow reliably clears at the very bottom instead of lingering on a fractional gap.
|
|
5000
|
+
const { scrollTop, clientHeight, scrollHeight } = source;
|
|
5001
|
+
this.overflow.set({
|
|
5002
|
+
top: scrollTop > 0,
|
|
5003
|
+
bottom: Math.round(scrollTop + clientHeight) < scrollHeight
|
|
5004
|
+
});
|
|
5005
|
+
}
|
|
5006
|
+
getScrollSource() {
|
|
5007
|
+
return this.externalSource ? this.externalSource.getScrollElement() : this.hostElement;
|
|
5008
|
+
}
|
|
5009
|
+
observeResize() {
|
|
5010
|
+
const source = this.getScrollSource();
|
|
5011
|
+
if (!source)
|
|
5012
|
+
return;
|
|
5013
|
+
this.sharedResizeObserver
|
|
5014
|
+
.observe(source)
|
|
5015
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
5016
|
+
.subscribe(() => this.checkOverflow());
|
|
5017
|
+
}
|
|
5018
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOverflowShadowContainer, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5019
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.25", type: KbqOverflowShadowContainer, isStandalone: true, selector: "[kbqOverflowShadowContainer]", inputs: { debounce: { classPropertyName: "debounce", publicName: "debounce", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["kbqOverflowShadowContainer"], ngImport: i0 }); }
|
|
5020
|
+
}
|
|
5021
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOverflowShadowContainer, decorators: [{
|
|
5022
|
+
type: Directive,
|
|
5023
|
+
args: [{
|
|
5024
|
+
selector: '[kbqOverflowShadowContainer]',
|
|
5025
|
+
exportAs: 'kbqOverflowShadowContainer'
|
|
5026
|
+
}]
|
|
5027
|
+
}], ctorParameters: () => [], propDecorators: { debounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "debounce", required: false }] }] } });
|
|
5028
|
+
/**
|
|
5029
|
+
* Marker directive for the top-shadow indicator. Linked to the container directive via a
|
|
5030
|
+
* template ref: `<header [kbqOverflowShadowTop]="containerRef">`.
|
|
5031
|
+
*
|
|
5032
|
+
* Sets an inline `box-shadow` on the host element using the value from the `shadow` input
|
|
5033
|
+
* (the Koobiq token by default). Consumers can override the shadow from the outside by
|
|
5034
|
+
* overriding the token `--kbq-shadow-overflow-normal-bottom` (or whichever token is passed
|
|
5035
|
+
* via the `shadow` input) in the relevant cascade scope.
|
|
5036
|
+
*/
|
|
5037
|
+
class KbqOverflowShadowTop {
|
|
5038
|
+
constructor() {
|
|
5039
|
+
/**
|
|
5040
|
+
* Reference to the container directive. May be `undefined` if the container has not
|
|
5041
|
+
* been rendered yet (e.g. the indicator lives in one @if block and the container in
|
|
5042
|
+
* another).
|
|
5043
|
+
*/
|
|
5044
|
+
this.ref = input(undefined, ...(ngDevMode ? [{ debugName: "ref", alias: 'kbqOverflowShadowTop' }] : [{ alias: 'kbqOverflowShadowTop' }]));
|
|
5045
|
+
/** Value of `box-shadow` when the shadow is active. Defaults to the standard Koobiq token. */
|
|
5046
|
+
this.shadow = input('var(--kbq-shadow-overflow-normal-bottom)', ...(ngDevMode ? [{ debugName: "shadow" }] : []));
|
|
5047
|
+
}
|
|
5048
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOverflowShadowTop, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5049
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.25", type: KbqOverflowShadowTop, isStandalone: true, selector: "[kbqOverflowShadowTop]", inputs: { ref: { classPropertyName: "ref", publicName: "kbqOverflowShadowTop", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.box-shadow": "ref()?.overflow()?.top ? shadow() : null" } }, exportAs: ["kbqOverflowShadowTop"], ngImport: i0 }); }
|
|
5050
|
+
}
|
|
5051
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOverflowShadowTop, decorators: [{
|
|
5052
|
+
type: Directive,
|
|
5053
|
+
args: [{
|
|
5054
|
+
selector: '[kbqOverflowShadowTop]',
|
|
5055
|
+
host: {
|
|
5056
|
+
'[style.box-shadow]': 'ref()?.overflow()?.top ? shadow() : null'
|
|
5057
|
+
},
|
|
5058
|
+
exportAs: 'kbqOverflowShadowTop'
|
|
5059
|
+
}]
|
|
5060
|
+
}], propDecorators: { ref: [{ type: i0.Input, args: [{ isSignal: true, alias: "kbqOverflowShadowTop", required: false }] }], shadow: [{ type: i0.Input, args: [{ isSignal: true, alias: "shadow", required: false }] }] } });
|
|
5061
|
+
/**
|
|
5062
|
+
* Marker directive for the bottom-shadow indicator. Linked to the container directive via a
|
|
5063
|
+
* template ref: `<footer [kbqOverflowShadowBottom]="containerRef">`.
|
|
5064
|
+
*
|
|
5065
|
+
* Sets an inline `box-shadow` on the host element. See {@link KbqOverflowShadowTop}.
|
|
5066
|
+
*/
|
|
5067
|
+
class KbqOverflowShadowBottom {
|
|
5068
|
+
constructor() {
|
|
5069
|
+
/** Reference to the container directive. See {@link KbqOverflowShadowTop.ref}. */
|
|
5070
|
+
this.ref = input(undefined, ...(ngDevMode ? [{ debugName: "ref", alias: 'kbqOverflowShadowBottom' }] : [{ alias: 'kbqOverflowShadowBottom' }]));
|
|
5071
|
+
/** Value of `box-shadow` when the shadow is active. Defaults to the standard Koobiq token. */
|
|
5072
|
+
this.shadow = input('var(--kbq-shadow-overflow-normal-top)', ...(ngDevMode ? [{ debugName: "shadow" }] : []));
|
|
5073
|
+
}
|
|
5074
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOverflowShadowBottom, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5075
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.25", type: KbqOverflowShadowBottom, isStandalone: true, selector: "[kbqOverflowShadowBottom]", inputs: { ref: { classPropertyName: "ref", publicName: "kbqOverflowShadowBottom", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.box-shadow": "ref()?.overflow()?.bottom ? shadow() : null" } }, exportAs: ["kbqOverflowShadowBottom"], ngImport: i0 }); }
|
|
5076
|
+
}
|
|
5077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOverflowShadowBottom, decorators: [{
|
|
5078
|
+
type: Directive,
|
|
5079
|
+
args: [{
|
|
5080
|
+
selector: '[kbqOverflowShadowBottom]',
|
|
5081
|
+
host: {
|
|
5082
|
+
'[style.box-shadow]': 'ref()?.overflow()?.bottom ? shadow() : null'
|
|
5083
|
+
},
|
|
5084
|
+
exportAs: 'kbqOverflowShadowBottom'
|
|
5085
|
+
}]
|
|
5086
|
+
}], propDecorators: { ref: [{ type: i0.Input, args: [{ isSignal: true, alias: "kbqOverflowShadowBottom", required: false }] }], shadow: [{ type: i0.Input, args: [{ isSignal: true, alias: "shadow", required: false }] }] } });
|
|
5087
|
+
|
|
4189
5088
|
const POSITION_MAP = {
|
|
4190
5089
|
top: {
|
|
4191
5090
|
originX: 'center',
|
|
@@ -4473,9 +5372,8 @@ var PopUpSizes;
|
|
|
4473
5372
|
(function (PopUpSizes) {
|
|
4474
5373
|
PopUpSizes["Small"] = "small";
|
|
4475
5374
|
PopUpSizes["Medium"] = "medium";
|
|
4476
|
-
// Normal is deprecated and will be deleted in 16.x
|
|
4477
|
-
PopUpSizes["Normal"] = "medium";
|
|
4478
5375
|
PopUpSizes["Large"] = "large";
|
|
5376
|
+
PopUpSizes["Custom"] = "custom";
|
|
4479
5377
|
})(PopUpSizes || (PopUpSizes = {}));
|
|
4480
5378
|
/**
|
|
4481
5379
|
* Default value when configuring overlay in popups (Autocomplete, Datepicker, Dropdown, Select, Tags Autocomplete,
|
|
@@ -4561,9 +5459,16 @@ class KbqPopUp {
|
|
|
4561
5459
|
return this.visibility === PopUpVisibility.Visible;
|
|
4562
5460
|
}
|
|
4563
5461
|
updateClassMap(placement, customClass, classMap) {
|
|
5462
|
+
// `customClass` may be a whitespace-separated list of class names; expand it into
|
|
5463
|
+
// individual keys so the native `[class]` binding (which doesn't tokenise object keys)
|
|
5464
|
+
// applies each class correctly.
|
|
5465
|
+
const customClasses = {};
|
|
5466
|
+
for (const token of (customClass ?? '').split(/\s+/).filter(Boolean)) {
|
|
5467
|
+
customClasses[token] = true;
|
|
5468
|
+
}
|
|
4564
5469
|
this.classMap = {
|
|
4565
5470
|
[`${this.prefix}_placement-${placement}`]: true,
|
|
4566
|
-
|
|
5471
|
+
...customClasses,
|
|
4567
5472
|
...classMap
|
|
4568
5473
|
};
|
|
4569
5474
|
}
|
|
@@ -4629,10 +5534,10 @@ class KbqPopUp {
|
|
|
4629
5534
|
this.renderer.setStyle(this.trigger.overlayRef?.overlayElement, oppositeSide, 'unset');
|
|
4630
5535
|
}
|
|
4631
5536
|
}
|
|
4632
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4633
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5537
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPopUp, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5538
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqPopUp, isStandalone: true, host: { listeners: { "mouseenter": "hovered.next(true)", "mouseleave": "hovered.next(false)" } }, ngImport: i0 }); }
|
|
4634
5539
|
}
|
|
4635
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPopUp, decorators: [{
|
|
4636
5541
|
type: Directive,
|
|
4637
5542
|
args: [{
|
|
4638
5543
|
host: {
|
|
@@ -4999,10 +5904,10 @@ class KbqPopUpTrigger {
|
|
|
4999
5904
|
this.hide();
|
|
5000
5905
|
});
|
|
5001
5906
|
}
|
|
5002
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5003
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5907
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPopUpTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5908
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqPopUpTrigger, isStandalone: true, host: { listeners: { "mouseenter": "hovered.next(true)", "mouseleave": "hovered.next(false)" } }, ngImport: i0 }); }
|
|
5004
5909
|
}
|
|
5005
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPopUpTrigger, decorators: [{
|
|
5006
5911
|
type: Directive,
|
|
5007
5912
|
args: [{
|
|
5008
5913
|
host: {
|
|
@@ -5036,10 +5941,10 @@ const KBQ_SELECT_SCROLL_STRATEGY_PROVIDER = {
|
|
|
5036
5941
|
};
|
|
5037
5942
|
|
|
5038
5943
|
class KbqSelectTrigger {
|
|
5039
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5040
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5944
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5945
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqSelectTrigger, isStandalone: true, selector: "kbq-select-trigger, [kbq-select-trigger]", ngImport: i0 }); }
|
|
5041
5946
|
}
|
|
5042
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectTrigger, decorators: [{
|
|
5043
5948
|
type: Directive,
|
|
5044
5949
|
args: [{
|
|
5045
5950
|
selector: 'kbq-select-trigger, [kbq-select-trigger]'
|
|
@@ -5047,39 +5952,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
5047
5952
|
}] });
|
|
5048
5953
|
class KbqSelectMatcher {
|
|
5049
5954
|
constructor() {
|
|
5050
|
-
this.useDefaultHandlers = true;
|
|
5955
|
+
this.useDefaultHandlers = input(true, ...(ngDevMode ? [{ debugName: "useDefaultHandlers", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
5051
5956
|
}
|
|
5052
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5053
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
5957
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectMatcher, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5958
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.25", type: KbqSelectMatcher, isStandalone: true, selector: "kbq-select-matcher, [kbq-select-matcher]", inputs: { useDefaultHandlers: { classPropertyName: "useDefaultHandlers", publicName: "useDefaultHandlers", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
5054
5959
|
}
|
|
5055
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectMatcher, decorators: [{
|
|
5056
5961
|
type: Directive,
|
|
5057
5962
|
args: [{
|
|
5058
5963
|
selector: 'kbq-select-matcher, [kbq-select-matcher]'
|
|
5059
5964
|
}]
|
|
5060
|
-
}], propDecorators: { useDefaultHandlers: [{
|
|
5061
|
-
type: Input,
|
|
5062
|
-
args: [{ transform: booleanAttribute }]
|
|
5063
|
-
}] } });
|
|
5965
|
+
}], propDecorators: { useDefaultHandlers: [{ type: i0.Input, args: [{ isSignal: true, alias: "useDefaultHandlers", required: false }] }] } });
|
|
5064
5966
|
class KbqSelectSearchEmptyResult {
|
|
5065
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5066
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5967
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectSearchEmptyResult, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5968
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqSelectSearchEmptyResult, isStandalone: true, selector: "[kbq-select-search-empty-result]", host: { classAttribute: "kbq-select-search-empty-result kbq-select__no-options-message" }, exportAs: ["kbqSelectSearchEmptyResult"], ngImport: i0 }); }
|
|
5067
5969
|
}
|
|
5068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectSearchEmptyResult, decorators: [{
|
|
5069
5971
|
type: Directive,
|
|
5070
5972
|
args: [{
|
|
5071
5973
|
selector: '[kbq-select-search-empty-result]',
|
|
5072
|
-
exportAs: 'kbqSelectSearchEmptyResult',
|
|
5073
5974
|
host: {
|
|
5074
5975
|
class: 'kbq-select-search-empty-result kbq-select__no-options-message'
|
|
5075
|
-
}
|
|
5976
|
+
},
|
|
5977
|
+
exportAs: 'kbqSelectSearchEmptyResult'
|
|
5076
5978
|
}]
|
|
5077
5979
|
}] });
|
|
5078
5980
|
class KbqSelectFooter {
|
|
5079
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5080
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
5981
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
5982
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqSelectFooter, isStandalone: true, selector: "kbq-select-footer, [kbq-select-footer]", host: { classAttribute: "kbq-select__footer" }, ngImport: i0 }); }
|
|
5081
5983
|
}
|
|
5082
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectFooter, decorators: [{
|
|
5083
5985
|
type: Directive,
|
|
5084
5986
|
args: [{
|
|
5085
5987
|
selector: 'kbq-select-footer, [kbq-select-footer]',
|
|
@@ -5088,10 +5990,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
5088
5990
|
}] });
|
|
5089
5991
|
class KbqSelectSearch {
|
|
5090
5992
|
get ngControl() {
|
|
5091
|
-
return this.formField.control.ngControl;
|
|
5993
|
+
return this.formField.control().ngControl;
|
|
5092
5994
|
}
|
|
5093
|
-
constructor(
|
|
5094
|
-
this.formField =
|
|
5995
|
+
constructor() {
|
|
5996
|
+
this.formField = inject(KBQ_FORM_FIELD_REF, { optional: true });
|
|
5095
5997
|
this.changes = new EventEmitter();
|
|
5096
5998
|
this.isSearchChanged = false;
|
|
5097
5999
|
this.searchChangesSubscription = new Subscription();
|
|
@@ -5099,22 +6001,22 @@ class KbqSelectSearch {
|
|
|
5099
6001
|
this.formField.inOverlay.set(true);
|
|
5100
6002
|
}
|
|
5101
6003
|
setPlaceholder(value) {
|
|
5102
|
-
this.formField.control.placeholder = value;
|
|
6004
|
+
this.formField.control().placeholder = value;
|
|
5103
6005
|
}
|
|
5104
6006
|
hasPlaceholder() {
|
|
5105
6007
|
return !!this.formField?.control.placeholder;
|
|
5106
6008
|
}
|
|
5107
6009
|
focus() {
|
|
5108
|
-
this.formField.
|
|
6010
|
+
this.formField.focus();
|
|
5109
6011
|
}
|
|
5110
6012
|
reset() {
|
|
5111
6013
|
this.ngControl?.reset();
|
|
5112
6014
|
}
|
|
5113
6015
|
value() {
|
|
5114
|
-
return this.formField.control.value;
|
|
6016
|
+
return this.formField.control().value;
|
|
5115
6017
|
}
|
|
5116
6018
|
ngAfterContentInit() {
|
|
5117
|
-
if (this.formField.control.controlType !== 'input') {
|
|
6019
|
+
if (this.formField.control().controlType !== 'input') {
|
|
5118
6020
|
throw Error('KbqSelectSearch does not work without kbqInput');
|
|
5119
6021
|
}
|
|
5120
6022
|
if (!this.ngControl) {
|
|
@@ -5141,24 +6043,19 @@ class KbqSelectSearch {
|
|
|
5141
6043
|
event.stopPropagation();
|
|
5142
6044
|
}
|
|
5143
6045
|
}
|
|
5144
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5145
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
6046
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectSearch, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6047
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqSelectSearch, isStandalone: true, selector: "[kbqSelectSearch]", host: { listeners: { "keydown": "handleKeydown($event)" } }, exportAs: ["kbqSelectSearch"], ngImport: i0 }); }
|
|
5146
6048
|
}
|
|
5147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectSearch, decorators: [{
|
|
5148
6050
|
type: Directive,
|
|
5149
6051
|
args: [{
|
|
5150
6052
|
selector: '[kbqSelectSearch]',
|
|
5151
|
-
exportAs: 'kbqSelectSearch',
|
|
5152
6053
|
host: {
|
|
5153
6054
|
'(keydown)': 'handleKeydown($event)'
|
|
5154
|
-
}
|
|
6055
|
+
},
|
|
6056
|
+
exportAs: 'kbqSelectSearch'
|
|
5155
6057
|
}]
|
|
5156
|
-
}], ctorParameters: () => [
|
|
5157
|
-
type: Optional
|
|
5158
|
-
}, {
|
|
5159
|
-
type: Inject,
|
|
5160
|
-
args: [KBQ_FORM_FIELD_REF]
|
|
5161
|
-
}] }] });
|
|
6058
|
+
}], ctorParameters: () => [] });
|
|
5162
6059
|
/**
|
|
5163
6060
|
* Abstract class representing a customizable select component with an overlay.
|
|
5164
6061
|
*
|
|
@@ -5224,10 +6121,10 @@ class KbqAbstractSelect {
|
|
|
5224
6121
|
resolveSearchMinOptionsThreshold(value) {
|
|
5225
6122
|
return value === 'auto' ? KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD : value;
|
|
5226
6123
|
}
|
|
5227
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5228
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
6124
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbstractSelect, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
6125
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqAbstractSelect, isStandalone: true, ngImport: i0 }); }
|
|
5229
6126
|
}
|
|
5230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbstractSelect, decorators: [{
|
|
5231
6128
|
type: Directive
|
|
5232
6129
|
}] });
|
|
5233
6130
|
|
|
@@ -5290,10 +6187,10 @@ class KbqMeasureScrollbarService {
|
|
|
5290
6187
|
this.document.body.removeChild(scrollDiv);
|
|
5291
6188
|
this._scrollBarWidth = width;
|
|
5292
6189
|
}
|
|
5293
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5294
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6190
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqMeasureScrollbarService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6191
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqMeasureScrollbarService, providedIn: 'root' }); }
|
|
5295
6192
|
}
|
|
5296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqMeasureScrollbarService, decorators: [{
|
|
5297
6194
|
type: Injectable,
|
|
5298
6195
|
args: [{ providedIn: 'root' }]
|
|
5299
6196
|
}], ctorParameters: () => [] });
|
|
@@ -5366,45 +6263,155 @@ class ThemeService {
|
|
|
5366
6263
|
getTheme() {
|
|
5367
6264
|
return this.current.value;
|
|
5368
6265
|
}
|
|
5369
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5370
|
-
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6266
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ThemeService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6267
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ThemeService, providedIn: 'root' }); }
|
|
5371
6268
|
}
|
|
5372
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ThemeService, decorators: [{
|
|
5373
6270
|
type: Injectable,
|
|
5374
6271
|
args: [{ providedIn: 'root' }]
|
|
5375
6272
|
}], ctorParameters: () => [] });
|
|
5376
6273
|
|
|
6274
|
+
/* eslint-disable no-restricted-globals -- testing utilities legitimately use raw `document`/`window` */
|
|
6275
|
+
/** Creates a browser MouseEvent with the specified options. */
|
|
6276
|
+
function createMouseEvent(type, x = 0, y = 0, button = 0) {
|
|
6277
|
+
const event = document.createEvent('MouseEvent');
|
|
6278
|
+
event.initMouseEvent(type, false, false, window /* view */, 0, x /* screenX */, y /* screenY */, x /* clientX */, y /* clientY */, false, false, false, false, button /* button */, null);
|
|
6279
|
+
return event;
|
|
6280
|
+
}
|
|
6281
|
+
/** Creates a browser TouchEvent with the specified pointer coordinates. */
|
|
6282
|
+
function createTouchEvent(type, pageX = 0, pageY = 0) {
|
|
6283
|
+
// In favor of creating events that work for most of the browsers, the event is created
|
|
6284
|
+
// as a basic UI Event. The necessary details for the event will be set manually.
|
|
6285
|
+
const event = document.createEvent('UIEvent');
|
|
6286
|
+
const touchDetails = { pageX, pageY };
|
|
6287
|
+
event.initUIEvent(type, true, true, window, 0);
|
|
6288
|
+
// Most of the browsers don't have a "initTouchEvent" method that can be used to define
|
|
6289
|
+
// the touch details.
|
|
6290
|
+
Object.defineProperties(event, {
|
|
6291
|
+
touches: { value: [touchDetails] }
|
|
6292
|
+
});
|
|
6293
|
+
return event;
|
|
6294
|
+
}
|
|
6295
|
+
/** Dispatches a keydown event from an element. */
|
|
6296
|
+
function createKeyboardEvent(type, keyCode, target, key) {
|
|
6297
|
+
const event = document.createEvent('KeyboardEvent');
|
|
6298
|
+
// Firefox does not support `initKeyboardEvent`, but supports `initKeyEvent`.
|
|
6299
|
+
if (event.initKeyEvent) {
|
|
6300
|
+
event.initKeyEvent(type, true, true, window, 0, 0, 0, 0, 0, keyCode);
|
|
6301
|
+
}
|
|
6302
|
+
else {
|
|
6303
|
+
event.initKeyboardEvent(type, true, true, window, 0, key, 0, '', false);
|
|
6304
|
+
}
|
|
6305
|
+
// Webkit Browsers don't set the keyCode when calling the init function.
|
|
6306
|
+
// See related bug https://bugs.webkit.org/show_bug.cgi?id=16735
|
|
6307
|
+
Object.defineProperties(event, {
|
|
6308
|
+
keyCode: { get: () => keyCode },
|
|
6309
|
+
key: { get: () => key }
|
|
6310
|
+
});
|
|
6311
|
+
// Only override `target` when explicitly provided; otherwise let jsdom set it during dispatch.
|
|
6312
|
+
if (target !== undefined) {
|
|
6313
|
+
Object.defineProperty(event, 'target', { get: () => target });
|
|
6314
|
+
}
|
|
6315
|
+
return event;
|
|
6316
|
+
}
|
|
6317
|
+
/** Creates a fake event object with any desired event type. */
|
|
6318
|
+
function createFakeEvent(type, canBubble = false, cancelable = true) {
|
|
6319
|
+
const event = document.createEvent('Event');
|
|
6320
|
+
event.initEvent(type, canBubble, cancelable);
|
|
6321
|
+
return event;
|
|
6322
|
+
}
|
|
6323
|
+
|
|
6324
|
+
/** Utility to dispatch any event on a Node. */
|
|
6325
|
+
function dispatchEvent(node, event) {
|
|
6326
|
+
node.dispatchEvent(event);
|
|
6327
|
+
return event;
|
|
6328
|
+
}
|
|
6329
|
+
/** Shorthand to dispatch a fake event on a specified node. */
|
|
6330
|
+
function dispatchFakeEvent(node, type, canBubble) {
|
|
6331
|
+
return dispatchEvent(node, createFakeEvent(type, canBubble));
|
|
6332
|
+
}
|
|
6333
|
+
/** Shorthand to dispatch a keyboard event with a specified key code. */
|
|
6334
|
+
function dispatchKeyboardEvent(node, type, keyCode, target) {
|
|
6335
|
+
return dispatchEvent(node, createKeyboardEvent(type, keyCode, target));
|
|
6336
|
+
}
|
|
6337
|
+
/** Shorthand to dispatch a mouse event on the specified coordinates. */
|
|
6338
|
+
function dispatchMouseEvent(node, type, x = 0, y = 0, event = createMouseEvent(type, x, y)) {
|
|
6339
|
+
return dispatchEvent(node, event);
|
|
6340
|
+
}
|
|
6341
|
+
/** Shorthand to dispatch a touch event on the specified coordinates. */
|
|
6342
|
+
function dispatchTouchEvent(node, type, x = 0, y = 0) {
|
|
6343
|
+
return dispatchEvent(node, createTouchEvent(type, x, y));
|
|
6344
|
+
}
|
|
6345
|
+
|
|
5377
6346
|
/**
|
|
5378
|
-
*
|
|
6347
|
+
* Patches an elements focus and blur methods to emit events consistently and predictably.
|
|
6348
|
+
* This is necessary, because some browsers, like IE11, will call the focus handlers asynchronously,
|
|
6349
|
+
* while others won't fire them at all if the browser window is not focused.
|
|
5379
6350
|
*/
|
|
5380
|
-
|
|
6351
|
+
function patchElementFocus(element) {
|
|
6352
|
+
element.focus = () => dispatchFakeEvent(element, 'focus');
|
|
6353
|
+
element.blur = () => dispatchFakeEvent(element, 'blur');
|
|
6354
|
+
}
|
|
6355
|
+
|
|
5381
6356
|
/**
|
|
6357
|
+
* Mock synchronous NgZone implementation that can be used
|
|
6358
|
+
* to flush out `onStable` subscriptions in tests.
|
|
6359
|
+
*
|
|
6360
|
+
* via: https://github.com/angular/angular/blob/master/packages/core/testing/src/ng_zone_mock.ts
|
|
5382
6361
|
* @docs-private
|
|
5383
6362
|
*/
|
|
5384
|
-
|
|
6363
|
+
class MockNgZone extends NgZone {
|
|
6364
|
+
constructor() {
|
|
6365
|
+
super({ enableLongStackTrace: false });
|
|
6366
|
+
this.onStable = new EventEmitter(false);
|
|
6367
|
+
}
|
|
6368
|
+
run(fn) {
|
|
6369
|
+
return fn();
|
|
6370
|
+
}
|
|
6371
|
+
runOutsideAngular(fn) {
|
|
6372
|
+
return fn();
|
|
6373
|
+
}
|
|
6374
|
+
simulateZoneExit() {
|
|
6375
|
+
this.onStable.emit(null);
|
|
6376
|
+
}
|
|
6377
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: MockNgZone, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6378
|
+
/** @nocollapse */ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: MockNgZone }); }
|
|
6379
|
+
}
|
|
6380
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: MockNgZone, decorators: [{
|
|
6381
|
+
type: Injectable
|
|
6382
|
+
}], ctorParameters: () => [] });
|
|
6383
|
+
|
|
6384
|
+
/**
|
|
6385
|
+
* Focuses an input, sets its value and dispatches
|
|
6386
|
+
* the `input` event, simulating the user typing.
|
|
6387
|
+
* @param value Value to be set on the input.
|
|
6388
|
+
* @param element Element onto which to set the value.
|
|
6389
|
+
*/
|
|
6390
|
+
function typeInElement(value, element) {
|
|
6391
|
+
element.focus();
|
|
6392
|
+
element.value = value;
|
|
6393
|
+
dispatchFakeEvent(element, 'input');
|
|
6394
|
+
}
|
|
6395
|
+
|
|
6396
|
+
function wrappedErrorMessage(e) {
|
|
6397
|
+
const escapedMessage = e.message.replace(/[|\\{}()[\]^$+*?.]/g, '\\$&');
|
|
6398
|
+
return new RegExp(escapedMessage);
|
|
6399
|
+
}
|
|
6400
|
+
|
|
5385
6401
|
/**
|
|
5386
|
-
* @deprecated Will be removed in next major release.
|
|
5387
|
-
*
|
|
5388
6402
|
* @docs-private
|
|
5389
6403
|
*/
|
|
5390
|
-
const
|
|
5391
|
-
factory: () => ({ useValidation: true })
|
|
5392
|
-
});
|
|
6404
|
+
const validationTooltipShowDelay = 10;
|
|
5393
6405
|
/**
|
|
5394
|
-
*
|
|
5395
|
-
*
|
|
5396
|
-
* Will be removed in next major release, so legacy validation will be disabled by default.
|
|
6406
|
+
* @docs-private
|
|
5397
6407
|
*/
|
|
5398
|
-
const
|
|
5399
|
-
provide: KBQ_VALIDATION,
|
|
5400
|
-
useValue: { useValidation: false }
|
|
5401
|
-
});
|
|
6408
|
+
const validationTooltipHideDelay = 3000;
|
|
5402
6409
|
|
|
5403
|
-
const VERSION = new Version('
|
|
6410
|
+
const VERSION = new Version('20.0.0+sha-17501d3');
|
|
5404
6411
|
|
|
5405
6412
|
/**
|
|
5406
6413
|
* Generated bundle index. Do not edit.
|
|
5407
6414
|
*/
|
|
5408
6415
|
|
|
5409
|
-
export { ARROW_BOTTOM_MARGIN_AND_HALF_HEIGHT, AbsoluteDateFormatterImpurePipe, AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterImpurePipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterImpurePipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterImpurePipe, AbsoluteShortDateTimeFormatterPipe,
|
|
6416
|
+
export { A, ALT, APOSTROPHE, ARROW_BOTTOM_MARGIN_AND_HALF_HEIGHT, AT_SIGN, AbsoluteDateFormatterImpurePipe, AbsoluteDateFormatterPipe, AbsoluteDateShortFormatterImpurePipe, AbsoluteDateShortFormatterPipe, AbsoluteDateTimeFormatterImpurePipe, AbsoluteDateTimeFormatterPipe, AbsoluteShortDateTimeFormatterImpurePipe, AbsoluteShortDateTimeFormatterPipe, ActiveDescendantKeyManager, B, BACKSLASH, BACKSPACE, BOTTOM_LEFT_POSITION_PRIORITY, BOTTOM_POSITION_PRIORITY, BOTTOM_RIGHT_POSITION_PRIORITY, BaseFormatterPipe, BaseLocaleAwareFormatterPipe, C, CAPS_LOCK, CLOSE_SQUARE_BRACKET, COMMA, CONTEXT_MENU, CONTROL, D, DASH, DELETE, DOWN_ARROW, DateAdapter, DateFormatter, E, EIGHT, END, ENTER, EQUALS, ESCAPE, EXTENDED_OVERLAY_POSITIONS, EmptyFocusTrapStrategy, ErrorStateMatcher, F, F1, F10, F11, F12, F2, F3, F4, F5, F6, F7, F8, F9, FF_EQUALS, FF_MINUS, FF_MUTE, FF_SEMICOLON, FF_VOLUME_DOWN, FF_VOLUME_UP, FIRST_MEDIA, FIVE, FOUR, FileValidators, FocusKeyManager, G, H, HOME, I, INSERT, J, K, KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER, KBQ_DATE_FORMATS, KBQ_DATE_LOCALE, KBQ_DATE_LOCALE_FACTORY, KBQ_DEFAULT_LOCALE_DATA_FACTORY, KBQ_DEFAULT_LOCALE_ID, KBQ_DEFAULT_PRECISION_SEPARATOR, KBQ_FORM_FIELD_REF, KBQ_INVALID_VALUE_ERROR, KBQ_LOCALE_DATA, KBQ_LOCALE_ID, KBQ_LOCALE_SERVICE, KBQ_LOCALE_SERVICE_LANG_ATTR_NAME, KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS, KBQ_NUMBER_FORMATTER_OPTIONS, KBQ_OPTION_ACTION_PARENT, KBQ_OPTION_PARENT_COMPONENT, KBQ_OVERFLOW_SHADOW_SOURCE, KBQ_PARENT_ANIMATION_COMPONENT, KBQ_PARENT_POPUP, KBQ_SELECT_SCROLL_STRATEGY, KBQ_SELECT_SCROLL_STRATEGY_PROVIDER, KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD, KBQ_SIZE_UNITS_CONFIG, KBQ_SIZE_UNITS_DEFAULT_CONFIG, KBQ_TITLE_TEXT_REF, KBQ_WINDOW, KbqAbsoluteLongDatePipe, KbqAbsoluteLongDateTimePipe, KbqAbsoluteShortDatePipe, KbqAbsoluteShortDateTimePipe, KbqAbstractSelect, KbqActionContainer, KbqAnimationCurves, KbqAnimationDurations, KbqColorDirective, KbqComponentColors, KbqDataSizePipe, KbqDecimalPipe, KbqDefaultThemes, KbqErrorStateTracker, KbqFieldSizingContent, KbqForm, KbqFormElement, KbqFormattersModule, KbqFormsModule, KbqHighlightBackgroundPipe, KbqHighlightModule, KbqHighlightPipe, KbqHover, KbqLine, KbqLineSetter, KbqLocaleService, KbqLocaleServiceModule, KbqMeasureScrollbarService, KbqMeasurementSystem, KbqNormalizeWhitespace, KbqOptgroup, KbqOption, KbqOptionActionComponent, KbqOptionBase, KbqOptionModule, KbqOptionSelectionChange, KbqOverflowShadowBottom, KbqOverflowShadowContainer, KbqOverflowShadowTop, KbqPopUp, KbqPopUpTrigger, KbqPseudoCheckbox, KbqPseudoCheckboxModule, KbqRangeLongDatePipe, KbqRangeLongDateTimePipe, KbqRangeMiddleDateTimePipe, KbqRangeShortDatePipe, KbqRangeShortDateTimePipe, KbqReadStateDirective, KbqRectangleItem, KbqRelativeLongDatePipe, KbqRelativeLongDateTimePipe, KbqRelativeShortDatePipe, KbqRelativeShortDateTimePipe, KbqRoundDecimalPipe, KbqSelectFooter, KbqSelectMatcher, KbqSelectSearch, KbqSelectSearchEmptyResult, KbqSelectTrigger, KbqTableNumberPipe, KbqThemeSelector, KbqVirtualOption, L, LAST_MEDIA, LEFT_ARROW, LEFT_BOTTOM_POSITION_PRIORITY, LEFT_POSITION_PRIORITY, LEFT_TOP_POSITION_PRIORITY, ListKeyManager, M, MAC_ENTER, MAC_META, MAC_WK_CMD_LEFT, MAC_WK_CMD_RIGHT, META, MUTE, MockNgZone, MultipleMode, N, NINE, NUMBER_FORMAT_REGEXP, NUMPAD_DIVIDE, NUMPAD_EIGHT, NUMPAD_FIVE, NUMPAD_FOUR, NUMPAD_MINUS, NUMPAD_MULTIPLY, NUMPAD_NINE, NUMPAD_ONE, NUMPAD_PERIOD, NUMPAD_PLUS, NUMPAD_SEVEN, NUMPAD_SIX, NUMPAD_THREE, NUMPAD_TWO, NUMPAD_ZERO, NUM_CENTER, NUM_LOCK, O, ONE, OPEN_SQUARE_BRACKET, P, PAGE_DOWN, PAGE_UP, PAUSE, PERIOD, PLUS_SIGN, POSITION_MAP, POSITION_PRIORITY_STRATEGY, POSITION_TO_CSS_MAP, PRINT_SCREEN, PasswordValidators, PopUpPlacements, PopUpSizes, PopUpTriggers, PopUpVisibility, Q, QUESTION_MARK, R, RIGHT_ARROW, RIGHT_BOTTOM_POSITION_PRIORITY, RIGHT_POSITION_PRIORITY, RIGHT_TOP_POSITION_PRIORITY, RangeDateFormatterImpurePipe, RangeDateFormatterPipe, RangeDateTimeFormatterImpurePipe, RangeDateTimeFormatterPipe, RangeMiddleDateTimeFormatterImpurePipe, RangeMiddleDateTimeFormatterPipe, RangeShortDateFormatterImpurePipe, RangeShortDateFormatterPipe, RangeShortDateTimeFormatterImpurePipe, RangeShortDateTimeFormatterPipe, RelativeDateFormatterImpurePipe, RelativeDateFormatterPipe, RelativeDateTimeFormatterImpurePipe, RelativeDateTimeFormatterPipe, RelativeShortDateFormatterImpurePipe, RelativeShortDateFormatterPipe, RelativeShortDateTimeFormatterImpurePipe, RelativeShortDateTimeFormatterPipe, S, SCROLL_LOCK, SELECT_PANEL_VIEWPORT_PADDING, SEMICOLON, SEVEN, SHIFT, SINGLE_QUOTE, SIX, SLASH, SPACE, ShowOnControlDirtyErrorStateMatcher, ShowOnFormSubmitErrorStateMatcher, ShowRequiredOnSubmitErrorStateMatcher, T, TAB, THREE, TILDE, TOP_LEFT_POSITION_PRIORITY, TOP_POSITION_PRIORITY, TOP_RIGHT_POSITION_PRIORITY, TWO, ThemePalette, ThemeService, U, UP_ARROW, V, VERSION, VOLUME_DOWN, VOLUME_UP, W, X, Y, Z, ZERO, applyPopupMargins, checkAndNormalizeLocalizedNumber, countGroupLabelsBeforeOption, createFakeEvent, createKeyboardEvent, createMouseEvent, createTouchEvent, defaultOffsetY, dispatchEvent, dispatchFakeEvent, dispatchKeyboardEvent, dispatchMouseEvent, dispatchTouchEvent, enUSFormattersData, enUSLocaleData, esLAFormattersData, esLALocaleData, escapeRegExp, fadeAnimation, formatNumberWithLocale, getFormattedSizeParts, getHumanizedBytes, getKbqSelectDynamicMultipleError, getKbqSelectNonArrayValueError, getKbqSelectNonFunctionValueError, getNodesWithoutComments, getOptionScrollPosition, hasModifierKey, isBoolean, isControl, isCopy, isDigit, isElement, isFunctionKey, isHorizontalMovement, isHtmlElement, isHtmlElementOrNull, isInput, isLeftBracket, isLetterKey, isMac, isNull, isNumberKey, isNumpadKey, isRightBracket, isSelectAll, isUndefined, isVerticalMovement, isWithin, kbqErrorStateMatcherProvider, kbqFilesizeFormatterConfigurationProvider, kbqHighlightBackgroundMark, kbqHighlightMark, kbqInjectNativeElement, kbqLocaleServiceLangAttrNameProvider, kbqSelectAnimations, kbqSelectScrollStrategyProviderFactory, leftIconClassName, mixinColor, mixinDisabled, mixinErrorState, mixinTabIndex, normalizeNumber, numberByParts, patchElementFocus, ptBRFormattersData, ptBRLocaleData, rightIconClassName, ruRUFormattersData, ruRULocaleData, selectEvents, tkTMFormattersData, tkTMLocaleData, typeInElement, validationTooltipHideDelay, validationTooltipShowDelay, wrappedErrorMessage };
|
|
5410
6417
|
//# sourceMappingURL=koobiq-components-core.mjs.map
|