@koobiq/components 19.8.0 → 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 +125 -125
- 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 +1630 -618
- 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 +159 -161
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-notification-center.mjs +54 -55
- 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/notification-center/index.d.ts +237 -1
- package/notification-center/notification-center.scss +0 -8
- package/overflow-items/index.d.ts +161 -2
- package/package.json +10 -18
- 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 +31 -1
- 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 -255
- 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 -175
- package/core/locales/es-LA.d.ts +0 -174
- package/core/locales/formatters.d.ts +0 -190
- package/core/locales/index.d.ts +0 -9
- package/core/locales/locale-service.d.ts +0 -1112
- package/core/locales/locale-service.module.d.ts +0 -6
- package/core/locales/pt-BR.d.ts +0 -174
- package/core/locales/ru-RU.d.ts +0 -175
- package/core/locales/tk-TM.d.ts +0 -175
- 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 -156
- package/notification-center/notification-center.module.d.ts +0 -7
- package/notification-center/notification-center.service.d.ts +0 -72
- 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
|
|
|
@@ -2047,10 +2525,12 @@ const kbqLocaleServiceLangAttrNameProvider = (attrName) => ({
|
|
|
2047
2525
|
useValue: attrName
|
|
2048
2526
|
});
|
|
2049
2527
|
class KbqLocaleService {
|
|
2050
|
-
constructor(
|
|
2528
|
+
constructor() {
|
|
2051
2529
|
this.locales = {};
|
|
2052
2530
|
this.document = inject(DOCUMENT);
|
|
2053
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 });
|
|
2054
2534
|
this.locales = localeData;
|
|
2055
2535
|
this.id = id || KBQ_DEFAULT_LOCALE_ID;
|
|
2056
2536
|
this.current = this.locales[this.id];
|
|
@@ -2070,23 +2550,13 @@ class KbqLocaleService {
|
|
|
2070
2550
|
getParams(componentName) {
|
|
2071
2551
|
return this.current[componentName];
|
|
2072
2552
|
}
|
|
2073
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2074
|
-
/** @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' }); }
|
|
2075
2555
|
}
|
|
2076
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLocaleService, decorators: [{
|
|
2077
2557
|
type: Injectable,
|
|
2078
2558
|
args: [{ providedIn: 'root' }]
|
|
2079
|
-
}], ctorParameters: () => [
|
|
2080
|
-
type: Optional
|
|
2081
|
-
}, {
|
|
2082
|
-
type: Inject,
|
|
2083
|
-
args: [KBQ_LOCALE_ID]
|
|
2084
|
-
}] }, { type: undefined, decorators: [{
|
|
2085
|
-
type: Optional
|
|
2086
|
-
}, {
|
|
2087
|
-
type: Inject,
|
|
2088
|
-
args: [KBQ_LOCALE_DATA]
|
|
2089
|
-
}] }] });
|
|
2559
|
+
}], ctorParameters: () => [] });
|
|
2090
2560
|
// todo code below need refactor or delete in DS-3603
|
|
2091
2561
|
/** @docs-private */
|
|
2092
2562
|
const KBQ_DEFAULT_PRECISION_SEPARATOR = '.';
|
|
@@ -2166,13 +2636,13 @@ function checkAndNormalizeLocalizedNumber(num, locale) {
|
|
|
2166
2636
|
}
|
|
2167
2637
|
|
|
2168
2638
|
class KbqLocaleServiceModule {
|
|
2169
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2170
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2171
|
-
/** @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: [
|
|
2172
2642
|
{ provide: KBQ_LOCALE_SERVICE, useClass: KbqLocaleService }
|
|
2173
2643
|
] }); }
|
|
2174
2644
|
}
|
|
2175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLocaleServiceModule, decorators: [{
|
|
2176
2646
|
type: NgModule,
|
|
2177
2647
|
args: [{
|
|
2178
2648
|
providers: [
|
|
@@ -2182,21 +2652,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
2182
2652
|
}] });
|
|
2183
2653
|
|
|
2184
2654
|
class DateFormatter extends DateFormatter$1 {
|
|
2185
|
-
constructor(
|
|
2655
|
+
constructor() {
|
|
2656
|
+
const adapter = inject(DateAdapter);
|
|
2657
|
+
const locale = inject(KBQ_DATE_LOCALE);
|
|
2186
2658
|
super(adapter, locale);
|
|
2187
|
-
this.adapter = adapter;
|
|
2188
2659
|
this.localeService = inject(KBQ_LOCALE_SERVICE, { optional: true });
|
|
2660
|
+
this.adapter = adapter;
|
|
2189
2661
|
this.localeService?.changes.pipe(takeUntilDestroyed()).subscribe((locale) => this.setLocale(locale));
|
|
2190
2662
|
}
|
|
2191
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2192
|
-
/** @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 }); }
|
|
2193
2665
|
}
|
|
2194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2666
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: DateFormatter, decorators: [{
|
|
2195
2667
|
type: Injectable
|
|
2196
|
-
}], ctorParameters: () => [
|
|
2197
|
-
type: Inject,
|
|
2198
|
-
args: [KBQ_DATE_LOCALE]
|
|
2199
|
-
}] }] });
|
|
2668
|
+
}], ctorParameters: () => [] });
|
|
2200
2669
|
|
|
2201
2670
|
class BaseFormatterPipe {
|
|
2202
2671
|
constructor() {
|
|
@@ -2204,15 +2673,72 @@ class BaseFormatterPipe {
|
|
|
2204
2673
|
this.formatter = inject((DateFormatter));
|
|
2205
2674
|
}
|
|
2206
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
|
+
}
|
|
2207
2733
|
class AbsoluteDateFormatterPipe extends BaseFormatterPipe {
|
|
2208
2734
|
transform(value, currYear) {
|
|
2209
2735
|
const date = this.adapter.deserialize(value);
|
|
2210
2736
|
return date ? this.formatter.absoluteLongDate(date, currYear) : '';
|
|
2211
2737
|
}
|
|
2212
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2213
|
-
/** @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" }); }
|
|
2214
2740
|
}
|
|
2215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2741
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateFormatterPipe, decorators: [{
|
|
2216
2742
|
type: Pipe,
|
|
2217
2743
|
args: [{
|
|
2218
2744
|
name: 'absoluteLongDate'
|
|
@@ -2223,10 +2749,10 @@ class AbsoluteDateFormatterImpurePipe extends AbsoluteDateFormatterPipe {
|
|
|
2223
2749
|
transform(value, currYear) {
|
|
2224
2750
|
return super.transform(value, currYear);
|
|
2225
2751
|
}
|
|
2226
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2227
|
-
/** @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 }); }
|
|
2228
2754
|
}
|
|
2229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateFormatterImpurePipe, decorators: [{
|
|
2230
2756
|
type: Pipe,
|
|
2231
2757
|
args: [{
|
|
2232
2758
|
name: 'absoluteLongDateImpurePipe',
|
|
@@ -2238,10 +2764,10 @@ class AbsoluteDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
|
2238
2764
|
const date = this.adapter.deserialize(value);
|
|
2239
2765
|
return date ? this.formatter.absoluteLongDateTime(date, options) : '';
|
|
2240
2766
|
}
|
|
2241
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2242
|
-
/** @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" }); }
|
|
2243
2769
|
}
|
|
2244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2770
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateTimeFormatterPipe, decorators: [{
|
|
2245
2771
|
type: Pipe,
|
|
2246
2772
|
args: [{
|
|
2247
2773
|
name: 'absoluteLongDateTime'
|
|
@@ -2252,10 +2778,10 @@ class AbsoluteDateTimeFormatterImpurePipe extends AbsoluteDateTimeFormatterPipe
|
|
|
2252
2778
|
transform(value, options) {
|
|
2253
2779
|
return super.transform(value, options);
|
|
2254
2780
|
}
|
|
2255
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2256
|
-
/** @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 }); }
|
|
2257
2783
|
}
|
|
2258
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2784
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateTimeFormatterImpurePipe, decorators: [{
|
|
2259
2785
|
type: Pipe,
|
|
2260
2786
|
args: [{
|
|
2261
2787
|
name: 'absoluteLongDateTimeImpurePipe',
|
|
@@ -2267,10 +2793,10 @@ class AbsoluteDateShortFormatterPipe extends BaseFormatterPipe {
|
|
|
2267
2793
|
const date = this.adapter.deserialize(value);
|
|
2268
2794
|
return date ? this.formatter.absoluteShortDate(date, currYear) : '';
|
|
2269
2795
|
}
|
|
2270
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2271
|
-
/** @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" }); }
|
|
2272
2798
|
}
|
|
2273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2799
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateShortFormatterPipe, decorators: [{
|
|
2274
2800
|
type: Pipe,
|
|
2275
2801
|
args: [{
|
|
2276
2802
|
name: 'absoluteShortDate'
|
|
@@ -2281,10 +2807,10 @@ class AbsoluteDateShortFormatterImpurePipe extends AbsoluteDateShortFormatterPip
|
|
|
2281
2807
|
transform(value, currYear) {
|
|
2282
2808
|
return super.transform(value, currYear);
|
|
2283
2809
|
}
|
|
2284
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2285
|
-
/** @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 }); }
|
|
2286
2812
|
}
|
|
2287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2813
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteDateShortFormatterImpurePipe, decorators: [{
|
|
2288
2814
|
type: Pipe,
|
|
2289
2815
|
args: [{
|
|
2290
2816
|
name: 'absoluteShortDateImpurePipe',
|
|
@@ -2296,10 +2822,10 @@ class AbsoluteShortDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
|
2296
2822
|
const date = this.adapter.deserialize(value);
|
|
2297
2823
|
return date ? this.formatter.absoluteShortDateTime(date, options) : '';
|
|
2298
2824
|
}
|
|
2299
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2300
|
-
/** @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" }); }
|
|
2301
2827
|
}
|
|
2302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteShortDateTimeFormatterPipe, decorators: [{
|
|
2303
2829
|
type: Pipe,
|
|
2304
2830
|
args: [{
|
|
2305
2831
|
name: 'absoluteShortDateTime'
|
|
@@ -2310,10 +2836,10 @@ class AbsoluteShortDateTimeFormatterImpurePipe extends AbsoluteShortDateTimeForm
|
|
|
2310
2836
|
transform(value, options) {
|
|
2311
2837
|
return super.transform(value, options);
|
|
2312
2838
|
}
|
|
2313
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2314
|
-
/** @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 }); }
|
|
2315
2841
|
}
|
|
2316
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: AbsoluteShortDateTimeFormatterImpurePipe, decorators: [{
|
|
2317
2843
|
type: Pipe,
|
|
2318
2844
|
args: [{
|
|
2319
2845
|
name: 'absoluteShortDateTimeImpurePipe',
|
|
@@ -2325,10 +2851,10 @@ class RelativeDateFormatterPipe extends BaseFormatterPipe {
|
|
|
2325
2851
|
const date = this.adapter.deserialize(value);
|
|
2326
2852
|
return date ? this.formatter.relativeLongDate(date) : '';
|
|
2327
2853
|
}
|
|
2328
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2329
|
-
/** @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" }); }
|
|
2330
2856
|
}
|
|
2331
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateFormatterPipe, decorators: [{
|
|
2332
2858
|
type: Pipe,
|
|
2333
2859
|
args: [{
|
|
2334
2860
|
name: 'relativeLongDate'
|
|
@@ -2339,10 +2865,10 @@ class RelativeDateFormatterImpurePipe extends RelativeDateFormatterPipe {
|
|
|
2339
2865
|
transform(value) {
|
|
2340
2866
|
return super.transform(value);
|
|
2341
2867
|
}
|
|
2342
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2343
|
-
/** @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 }); }
|
|
2344
2870
|
}
|
|
2345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2871
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateFormatterImpurePipe, decorators: [{
|
|
2346
2872
|
type: Pipe,
|
|
2347
2873
|
args: [{
|
|
2348
2874
|
name: 'relativeLongDateImpurePipe',
|
|
@@ -2354,10 +2880,10 @@ class RelativeDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
|
2354
2880
|
const date = this.adapter.deserialize(value);
|
|
2355
2881
|
return date ? this.formatter.relativeLongDateTime(date, options) : '';
|
|
2356
2882
|
}
|
|
2357
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2358
|
-
/** @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" }); }
|
|
2359
2885
|
}
|
|
2360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2886
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateTimeFormatterPipe, decorators: [{
|
|
2361
2887
|
type: Pipe,
|
|
2362
2888
|
args: [{
|
|
2363
2889
|
name: 'relativeLongDateTime'
|
|
@@ -2368,10 +2894,10 @@ class RelativeDateTimeFormatterImpurePipe extends RelativeDateTimeFormatterPipe
|
|
|
2368
2894
|
transform(value, options) {
|
|
2369
2895
|
return super.transform(value, options);
|
|
2370
2896
|
}
|
|
2371
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2372
|
-
/** @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 }); }
|
|
2373
2899
|
}
|
|
2374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2900
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeDateTimeFormatterImpurePipe, decorators: [{
|
|
2375
2901
|
type: Pipe,
|
|
2376
2902
|
args: [{
|
|
2377
2903
|
name: 'relativeLongDateTimeImpurePipe',
|
|
@@ -2383,10 +2909,10 @@ class RelativeShortDateFormatterPipe extends BaseFormatterPipe {
|
|
|
2383
2909
|
const date = this.adapter.deserialize(value);
|
|
2384
2910
|
return date ? this.formatter.relativeShortDate(date) : '';
|
|
2385
2911
|
}
|
|
2386
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2387
|
-
/** @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" }); }
|
|
2388
2914
|
}
|
|
2389
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateFormatterPipe, decorators: [{
|
|
2390
2916
|
type: Pipe,
|
|
2391
2917
|
args: [{
|
|
2392
2918
|
name: 'relativeShortDate'
|
|
@@ -2397,10 +2923,10 @@ class RelativeShortDateFormatterImpurePipe extends RelativeShortDateFormatterPip
|
|
|
2397
2923
|
transform(value) {
|
|
2398
2924
|
return super.transform(value);
|
|
2399
2925
|
}
|
|
2400
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2401
|
-
/** @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 }); }
|
|
2402
2928
|
}
|
|
2403
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateFormatterImpurePipe, decorators: [{
|
|
2404
2930
|
type: Pipe,
|
|
2405
2931
|
args: [{
|
|
2406
2932
|
name: 'relativeShortDateImpurePipe',
|
|
@@ -2412,10 +2938,10 @@ class RelativeShortDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
|
2412
2938
|
const date = this.adapter.deserialize(value);
|
|
2413
2939
|
return date ? this.formatter.relativeShortDateTime(date, options) : '';
|
|
2414
2940
|
}
|
|
2415
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2416
|
-
/** @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" }); }
|
|
2417
2943
|
}
|
|
2418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2944
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateTimeFormatterPipe, decorators: [{
|
|
2419
2945
|
type: Pipe,
|
|
2420
2946
|
args: [{
|
|
2421
2947
|
name: 'relativeShortDateTime'
|
|
@@ -2426,10 +2952,10 @@ class RelativeShortDateTimeFormatterImpurePipe extends RelativeShortDateTimeForm
|
|
|
2426
2952
|
transform(value, options) {
|
|
2427
2953
|
return super.transform(value, options);
|
|
2428
2954
|
}
|
|
2429
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2430
|
-
/** @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 }); }
|
|
2431
2957
|
}
|
|
2432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2958
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RelativeShortDateTimeFormatterImpurePipe, decorators: [{
|
|
2433
2959
|
type: Pipe,
|
|
2434
2960
|
args: [{
|
|
2435
2961
|
name: 'relativeShortDateTimeImpurePipe',
|
|
@@ -2442,10 +2968,10 @@ class RangeDateFormatterPipe extends BaseFormatterPipe {
|
|
|
2442
2968
|
const date2 = this.adapter.deserialize(value2);
|
|
2443
2969
|
return this.formatter.rangeLongDate(date1, date2);
|
|
2444
2970
|
}
|
|
2445
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2446
|
-
/** @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" }); }
|
|
2447
2973
|
}
|
|
2448
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateFormatterPipe, decorators: [{
|
|
2449
2975
|
type: Pipe,
|
|
2450
2976
|
args: [{
|
|
2451
2977
|
name: 'rangeLongDate'
|
|
@@ -2456,10 +2982,10 @@ class RangeDateFormatterImpurePipe extends RangeDateFormatterPipe {
|
|
|
2456
2982
|
transform([value1, value2]) {
|
|
2457
2983
|
return super.transform([value1, value2]);
|
|
2458
2984
|
}
|
|
2459
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2460
|
-
/** @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 }); }
|
|
2461
2987
|
}
|
|
2462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2988
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateFormatterImpurePipe, decorators: [{
|
|
2463
2989
|
type: Pipe,
|
|
2464
2990
|
args: [{
|
|
2465
2991
|
name: 'rangeLongDateImpurePipe',
|
|
@@ -2472,10 +2998,10 @@ class RangeShortDateFormatterPipe extends BaseFormatterPipe {
|
|
|
2472
2998
|
const date2 = this.adapter.deserialize(value2);
|
|
2473
2999
|
return this.formatter.rangeShortDate(date1, date2);
|
|
2474
3000
|
}
|
|
2475
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2476
|
-
/** @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" }); }
|
|
2477
3003
|
}
|
|
2478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3004
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateFormatterPipe, decorators: [{
|
|
2479
3005
|
type: Pipe,
|
|
2480
3006
|
args: [{
|
|
2481
3007
|
name: 'rangeShortDate'
|
|
@@ -2486,10 +3012,10 @@ class RangeShortDateFormatterImpurePipe extends RangeShortDateFormatterPipe {
|
|
|
2486
3012
|
transform([value1, value2]) {
|
|
2487
3013
|
return super.transform([value1, value2]);
|
|
2488
3014
|
}
|
|
2489
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2490
|
-
/** @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 }); }
|
|
2491
3017
|
}
|
|
2492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3018
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeShortDateFormatterImpurePipe, decorators: [{
|
|
2493
3019
|
type: Pipe,
|
|
2494
3020
|
args: [{
|
|
2495
3021
|
name: 'rangeShortDateImpurePipe',
|
|
@@ -2502,10 +3028,10 @@ class RangeDateTimeFormatterPipe extends BaseFormatterPipe {
|
|
|
2502
3028
|
const date2 = this.adapter.deserialize(value2);
|
|
2503
3029
|
return this.formatter.rangeLongDateTime(date1, date2, options);
|
|
2504
3030
|
}
|
|
2505
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2506
|
-
/** @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" }); }
|
|
2507
3033
|
}
|
|
2508
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3034
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RangeDateTimeFormatterPipe, decorators: [{
|
|
2509
3035
|
type: Pipe,
|
|
2510
3036
|
args: [{
|
|
2511
3037
|
name: 'rangeLongDateTime'
|
|
@@ -2516,86 +3042,319 @@ class RangeDateTimeFormatterImpurePipe extends RangeDateTimeFormatterPipe {
|
|
|
2516
3042
|
transform([value1, value2], options) {
|
|
2517
3043
|
return super.transform([value1, value2], options);
|
|
2518
3044
|
}
|
|
2519
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2520
|
-
/** @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 }); }
|
|
2521
3273
|
}
|
|
2522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeLongDatePipe, decorators: [{
|
|
2523
3275
|
type: Pipe,
|
|
2524
3276
|
args: [{
|
|
2525
|
-
name: '
|
|
3277
|
+
name: 'kbqRangeLongDate',
|
|
2526
3278
|
pure: false
|
|
2527
3279
|
}]
|
|
2528
3280
|
}] });
|
|
2529
|
-
class
|
|
2530
|
-
transform(
|
|
3281
|
+
class KbqRangeShortDatePipe extends BaseLocaleAwareFormatterPipe {
|
|
3282
|
+
transform(value) {
|
|
3283
|
+
return super.transform(value);
|
|
3284
|
+
}
|
|
3285
|
+
format([value1, value2]) {
|
|
2531
3286
|
const date1 = this.adapter.deserialize(value1);
|
|
2532
3287
|
const date2 = this.adapter.deserialize(value2);
|
|
2533
|
-
return this.formatter.
|
|
3288
|
+
return this.formatter.rangeShortDate(date1, date2);
|
|
2534
3289
|
}
|
|
2535
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2536
|
-
/** @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 }); }
|
|
2537
3292
|
}
|
|
2538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3293
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeShortDatePipe, decorators: [{
|
|
2539
3294
|
type: Pipe,
|
|
2540
3295
|
args: [{
|
|
2541
|
-
name: '
|
|
3296
|
+
name: 'kbqRangeShortDate',
|
|
3297
|
+
pure: false
|
|
2542
3298
|
}]
|
|
2543
3299
|
}] });
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
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);
|
|
2548
3308
|
}
|
|
2549
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2550
|
-
/** @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 }); }
|
|
2551
3311
|
}
|
|
2552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3312
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeLongDateTimePipe, decorators: [{
|
|
2553
3313
|
type: Pipe,
|
|
2554
3314
|
args: [{
|
|
2555
|
-
name: '
|
|
3315
|
+
name: 'kbqRangeLongDateTime',
|
|
2556
3316
|
pure: false
|
|
2557
3317
|
}]
|
|
2558
3318
|
}] });
|
|
2559
|
-
class
|
|
2560
|
-
transform(
|
|
3319
|
+
class KbqRangeMiddleDateTimePipe extends BaseLocaleAwareFormatterPipe {
|
|
3320
|
+
transform(value, options) {
|
|
3321
|
+
return super.transform(value, options);
|
|
3322
|
+
}
|
|
3323
|
+
format([value1, value2], options) {
|
|
2561
3324
|
const date1 = this.adapter.deserialize(value1);
|
|
2562
3325
|
const date2 = this.adapter.deserialize(value2);
|
|
2563
|
-
return this.formatter.
|
|
3326
|
+
return this.formatter.rangeMiddleDateTime(date1, date2, options);
|
|
2564
3327
|
}
|
|
2565
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2566
|
-
/** @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 }); }
|
|
2567
3330
|
}
|
|
2568
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeMiddleDateTimePipe, decorators: [{
|
|
2569
3332
|
type: Pipe,
|
|
2570
3333
|
args: [{
|
|
2571
|
-
name: '
|
|
3334
|
+
name: 'kbqRangeMiddleDateTime',
|
|
3335
|
+
pure: false
|
|
2572
3336
|
}]
|
|
2573
3337
|
}] });
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
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);
|
|
2578
3346
|
}
|
|
2579
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2580
|
-
/** @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 }); }
|
|
2581
3349
|
}
|
|
2582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRangeShortDateTimePipe, decorators: [{
|
|
2583
3351
|
type: Pipe,
|
|
2584
3352
|
args: [{
|
|
2585
|
-
name: '
|
|
3353
|
+
name: 'kbqRangeShortDateTime',
|
|
2586
3354
|
pure: false
|
|
2587
3355
|
}]
|
|
2588
3356
|
}] });
|
|
2589
3357
|
|
|
2590
|
-
/**
|
|
2591
|
-
* @deprecated Will be removed in next major release. Use `KbqMeasurementSystem` instead.
|
|
2592
|
-
* @docs-private
|
|
2593
|
-
*/
|
|
2594
|
-
var MeasurementSystem;
|
|
2595
|
-
(function (MeasurementSystem) {
|
|
2596
|
-
MeasurementSystem["SI"] = "SI";
|
|
2597
|
-
MeasurementSystem["IEC"] = "IEC";
|
|
2598
|
-
})(MeasurementSystem || (MeasurementSystem = {}));
|
|
2599
3358
|
/**
|
|
2600
3359
|
* Available unit systems for file size formatting.
|
|
2601
3360
|
* - SI (Metric): 1 KB = 1000 bytes
|
|
@@ -2701,10 +3460,10 @@ function parseDigitsInfo(digitsInfo) {
|
|
|
2701
3460
|
return result;
|
|
2702
3461
|
}
|
|
2703
3462
|
class KbqDecimalPipe {
|
|
2704
|
-
constructor(
|
|
2705
|
-
this.id =
|
|
2706
|
-
this.localeService =
|
|
2707
|
-
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 });
|
|
2708
3467
|
this.options = this.options || KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS;
|
|
2709
3468
|
this.localeService?.changes.subscribe((newId) => (this.id = newId));
|
|
2710
3469
|
}
|
|
@@ -2751,11 +3510,11 @@ class KbqDecimalPipe {
|
|
|
2751
3510
|
grouping === undefined &&
|
|
2752
3511
|
Math.abs(value) < defaultValueForGroupingInRULocale);
|
|
2753
3512
|
}
|
|
2754
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2755
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2756
|
-
/** @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' }); }
|
|
2757
3516
|
}
|
|
2758
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3517
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqDecimalPipe, decorators: [{
|
|
2759
3518
|
type: Injectable,
|
|
2760
3519
|
args: [{ providedIn: 'root' }]
|
|
2761
3520
|
}, {
|
|
@@ -2764,27 +3523,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
2764
3523
|
name: 'kbqNumber',
|
|
2765
3524
|
pure: false
|
|
2766
3525
|
}]
|
|
2767
|
-
}], ctorParameters: () => [
|
|
2768
|
-
type: Optional
|
|
2769
|
-
}, {
|
|
2770
|
-
type: Inject,
|
|
2771
|
-
args: [KBQ_LOCALE_ID]
|
|
2772
|
-
}] }, { type: KbqLocaleService, decorators: [{
|
|
2773
|
-
type: Optional
|
|
2774
|
-
}, {
|
|
2775
|
-
type: Inject,
|
|
2776
|
-
args: [KBQ_LOCALE_SERVICE]
|
|
2777
|
-
}] }, { type: ParsedDigitsInfo, decorators: [{
|
|
2778
|
-
type: Optional
|
|
2779
|
-
}, {
|
|
2780
|
-
type: Inject,
|
|
2781
|
-
args: [KBQ_NUMBER_FORMATTER_OPTIONS]
|
|
2782
|
-
}] }] });
|
|
3526
|
+
}], ctorParameters: () => [] });
|
|
2783
3527
|
class KbqTableNumberPipe {
|
|
2784
|
-
constructor(
|
|
2785
|
-
this.id =
|
|
2786
|
-
this.localeService =
|
|
2787
|
-
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 });
|
|
2788
3532
|
this.options = this.options || KBQ_NUMBER_FORMATTER_DEFAULT_OPTIONS;
|
|
2789
3533
|
this.localeService?.changes.subscribe((newId) => (this.id = newId));
|
|
2790
3534
|
}
|
|
@@ -2823,11 +3567,11 @@ class KbqTableNumberPipe {
|
|
|
2823
3567
|
throw Error(`InvalidPipeArgument: KbqTableNumberPipe for pipe '${JSON.stringify(error.message)}'`);
|
|
2824
3568
|
}
|
|
2825
3569
|
}
|
|
2826
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2827
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2828
|
-
/** @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' }); }
|
|
2829
3573
|
}
|
|
2830
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3574
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTableNumberPipe, decorators: [{
|
|
2831
3575
|
type: Injectable,
|
|
2832
3576
|
args: [{ providedIn: 'root' }]
|
|
2833
3577
|
}, {
|
|
@@ -2836,29 +3580,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
2836
3580
|
name: 'kbqTableNumber',
|
|
2837
3581
|
pure: false
|
|
2838
3582
|
}]
|
|
2839
|
-
}], ctorParameters: () => [
|
|
2840
|
-
type: Optional
|
|
2841
|
-
}, {
|
|
2842
|
-
type: Inject,
|
|
2843
|
-
args: [KBQ_LOCALE_ID]
|
|
2844
|
-
}] }, { type: KbqLocaleService, decorators: [{
|
|
2845
|
-
type: Optional
|
|
2846
|
-
}, {
|
|
2847
|
-
type: Inject,
|
|
2848
|
-
args: [KBQ_LOCALE_SERVICE]
|
|
2849
|
-
}] }, { type: ParsedDigitsInfo, decorators: [{
|
|
2850
|
-
type: Optional
|
|
2851
|
-
}, {
|
|
2852
|
-
type: Inject,
|
|
2853
|
-
args: [KBQ_NUMBER_FORMATTER_OPTIONS]
|
|
2854
|
-
}] }] });
|
|
3583
|
+
}], ctorParameters: () => [] });
|
|
2855
3584
|
function isWithin(startRange, endRange, valueToCheck) {
|
|
2856
3585
|
return startRange <= valueToCheck && valueToCheck < endRange;
|
|
2857
3586
|
}
|
|
2858
3587
|
class KbqRoundDecimalPipe {
|
|
2859
|
-
constructor(
|
|
2860
|
-
this.id =
|
|
2861
|
-
this.localeService =
|
|
3588
|
+
constructor() {
|
|
3589
|
+
this.id = inject(KBQ_LOCALE_ID, { optional: true });
|
|
3590
|
+
this.localeService = inject(KBQ_LOCALE_SERVICE, { optional: true });
|
|
2862
3591
|
this.localeService?.changes.subscribe((newId) => (this.id = newId));
|
|
2863
3592
|
}
|
|
2864
3593
|
transform(value, locale) {
|
|
@@ -2943,11 +3672,11 @@ class KbqRoundDecimalPipe {
|
|
|
2943
3672
|
});
|
|
2944
3673
|
return currentUnit;
|
|
2945
3674
|
}
|
|
2946
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2947
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
2948
|
-
/** @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' }); }
|
|
2949
3678
|
}
|
|
2950
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRoundDecimalPipe, decorators: [{
|
|
2951
3680
|
type: Injectable,
|
|
2952
3681
|
args: [{ providedIn: 'root' }]
|
|
2953
3682
|
}, {
|
|
@@ -2956,49 +3685,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
2956
3685
|
name: 'kbqRoundNumber',
|
|
2957
3686
|
pure: false
|
|
2958
3687
|
}]
|
|
2959
|
-
}], ctorParameters: () => [
|
|
2960
|
-
type: Optional
|
|
2961
|
-
}, {
|
|
2962
|
-
type: Inject,
|
|
2963
|
-
args: [KBQ_LOCALE_ID]
|
|
2964
|
-
}] }, { type: KbqLocaleService, decorators: [{
|
|
2965
|
-
type: Optional
|
|
2966
|
-
}, {
|
|
2967
|
-
type: Inject,
|
|
2968
|
-
args: [KBQ_LOCALE_SERVICE]
|
|
2969
|
-
}] }] });
|
|
3688
|
+
}], ctorParameters: () => [] });
|
|
2970
3689
|
|
|
2971
3690
|
const KBQ_INVALID_VALUE_ERROR = 'Argument "value" must be a finite number!';
|
|
2972
3691
|
/**
|
|
2973
|
-
*
|
|
2974
|
-
*
|
|
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" }
|
|
2975
3700
|
*/
|
|
2976
|
-
|
|
3701
|
+
function getFormattedSizeParts(value, system) {
|
|
2977
3702
|
const { result, unit } = getHumanizedBytes(value, system);
|
|
2978
|
-
let volume;
|
|
2979
|
-
if (system.abbreviations[0] === unit) {
|
|
2980
|
-
volume = result.toString();
|
|
2981
|
-
}
|
|
2982
|
-
else {
|
|
2983
|
-
volume = result.toFixed(precision).replace(/\./g, ',');
|
|
2984
|
-
}
|
|
2985
|
-
return {
|
|
2986
|
-
value: volume,
|
|
2987
|
-
unit
|
|
2988
|
-
};
|
|
2989
|
-
};
|
|
2990
|
-
function getFormattedSizeParts(value, _precision, system) {
|
|
2991
|
-
let resolvedSystem = null;
|
|
2992
|
-
if (arguments.length === 2 && typeof _precision === 'object') {
|
|
2993
|
-
resolvedSystem = _precision;
|
|
2994
|
-
}
|
|
2995
|
-
if (arguments.length === 3 && typeof _precision === 'number' && system) {
|
|
2996
|
-
resolvedSystem = system;
|
|
2997
|
-
}
|
|
2998
|
-
if (!resolvedSystem) {
|
|
2999
|
-
throw new Error('Unexpected arguments size');
|
|
3000
|
-
}
|
|
3001
|
-
const { result, unit } = getHumanizedBytes(value, resolvedSystem);
|
|
3002
3703
|
return {
|
|
3003
3704
|
value: result.toString(),
|
|
3004
3705
|
unit
|
|
@@ -3057,10 +3758,10 @@ class KbqDataSizePipe {
|
|
|
3057
3758
|
const formattedValue = this.numberPipe?.transform(value, `1.0-${precision}`, locale) || value;
|
|
3058
3759
|
return formattedValue ? `${formattedValue}${this.nonBreakingSpace}${unit}` : '';
|
|
3059
3760
|
}
|
|
3060
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3061
|
-
/** @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 }); }
|
|
3062
3763
|
}
|
|
3063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqDataSizePipe, decorators: [{
|
|
3064
3765
|
type: Pipe,
|
|
3065
3766
|
args: [{
|
|
3066
3767
|
name: 'kbqDataSize',
|
|
@@ -3069,8 +3770,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
3069
3770
|
}], ctorParameters: () => [] });
|
|
3070
3771
|
|
|
3071
3772
|
class KbqFormattersModule {
|
|
3072
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3073
|
-
/** @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,
|
|
3074
3775
|
AbsoluteDateTimeFormatterPipe,
|
|
3075
3776
|
AbsoluteDateShortFormatterPipe,
|
|
3076
3777
|
AbsoluteShortDateTimeFormatterPipe,
|
|
@@ -3096,6 +3797,19 @@ class KbqFormattersModule {
|
|
|
3096
3797
|
RangeDateTimeFormatterImpurePipe,
|
|
3097
3798
|
RangeShortDateTimeFormatterImpurePipe,
|
|
3098
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,
|
|
3099
3813
|
KbqDataSizePipe,
|
|
3100
3814
|
KbqDecimalPipe,
|
|
3101
3815
|
KbqRoundDecimalPipe,
|
|
@@ -3128,10 +3842,23 @@ class KbqFormattersModule {
|
|
|
3128
3842
|
RangeDateTimeFormatterImpurePipe,
|
|
3129
3843
|
RangeShortDateTimeFormatterImpurePipe,
|
|
3130
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,
|
|
3131
3858
|
KbqDataSizePipe] }); }
|
|
3132
|
-
/** @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] }); }
|
|
3133
3860
|
}
|
|
3134
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormattersModule, decorators: [{
|
|
3135
3862
|
type: NgModule,
|
|
3136
3863
|
args: [{
|
|
3137
3864
|
imports: [
|
|
@@ -3161,11 +3888,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
3161
3888
|
RangeDateTimeFormatterImpurePipe,
|
|
3162
3889
|
RangeShortDateTimeFormatterImpurePipe,
|
|
3163
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,
|
|
3164
3904
|
KbqDataSizePipe,
|
|
3165
3905
|
KbqDecimalPipe,
|
|
3166
3906
|
KbqRoundDecimalPipe,
|
|
3167
3907
|
KbqTableNumberPipe
|
|
3168
3908
|
],
|
|
3909
|
+
providers: [DateFormatter],
|
|
3169
3910
|
exports: [
|
|
3170
3911
|
KbqDecimalPipe,
|
|
3171
3912
|
KbqRoundDecimalPipe,
|
|
@@ -3196,20 +3937,33 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
3196
3937
|
RangeDateTimeFormatterImpurePipe,
|
|
3197
3938
|
RangeShortDateTimeFormatterImpurePipe,
|
|
3198
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,
|
|
3199
3953
|
KbqDataSizePipe
|
|
3200
|
-
]
|
|
3201
|
-
providers: [{ provide: DateFormatter, deps: [DateAdapter, KBQ_DATE_LOCALE] }]
|
|
3954
|
+
]
|
|
3202
3955
|
}]
|
|
3203
3956
|
}] });
|
|
3204
3957
|
|
|
3205
3958
|
class KbqFormElement {
|
|
3206
|
-
constructor(
|
|
3207
|
-
this.element =
|
|
3959
|
+
constructor() {
|
|
3960
|
+
this.element = inject(ElementRef);
|
|
3208
3961
|
this.margin = false;
|
|
3209
3962
|
this.isRow = false;
|
|
3210
3963
|
this.isFieldSet = false;
|
|
3211
3964
|
this.hasLegend = false;
|
|
3212
3965
|
this.isHorizontal = false;
|
|
3966
|
+
this.elements = contentChildren(KbqFormElement, ...(ngDevMode ? [{ debugName: "elements" }] : []));
|
|
3213
3967
|
}
|
|
3214
3968
|
ngAfterContentInit() {
|
|
3215
3969
|
const classList = this.element.nativeElement.classList;
|
|
@@ -3220,60 +3974,57 @@ class KbqFormElement {
|
|
|
3220
3974
|
this.hasLegend = this.element.nativeElement.firstElementChild.classList.contains('kbq-form__legend');
|
|
3221
3975
|
}
|
|
3222
3976
|
}
|
|
3223
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3224
|
-
/** @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 }); }
|
|
3225
3979
|
}
|
|
3226
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormElement, decorators: [{
|
|
3227
3981
|
type: Directive,
|
|
3228
3982
|
args: [{
|
|
3229
3983
|
selector: '.kbq-form__row, .kbq-form__fieldset, .kbq-form__legend',
|
|
3230
|
-
exportAs: 'kbqFormElement',
|
|
3231
3984
|
host: {
|
|
3232
3985
|
'[class.kbq-form-row_margin]': 'margin'
|
|
3233
|
-
}
|
|
3986
|
+
},
|
|
3987
|
+
exportAs: 'kbqFormElement'
|
|
3234
3988
|
}]
|
|
3235
|
-
}],
|
|
3236
|
-
type: ContentChildren,
|
|
3237
|
-
args: [KbqFormElement]
|
|
3238
|
-
}] } });
|
|
3989
|
+
}], propDecorators: { elements: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KbqFormElement), { isSignal: true }] }] } });
|
|
3239
3990
|
class KbqForm {
|
|
3991
|
+
constructor() {
|
|
3992
|
+
this.elements = contentChildren(KbqFormElement, ...(ngDevMode ? [{ debugName: "elements" }] : []));
|
|
3993
|
+
}
|
|
3240
3994
|
ngAfterContentInit() {
|
|
3241
|
-
this.handleElements(this.elements);
|
|
3995
|
+
this.handleElements(this.elements());
|
|
3242
3996
|
}
|
|
3243
3997
|
handleElements(elements) {
|
|
3244
3998
|
elements.forEach((element, index) => {
|
|
3245
|
-
const nextElement = elements
|
|
3999
|
+
const nextElement = elements[index + 1];
|
|
3246
4000
|
if (element.isFieldSet && !element.isHorizontal) {
|
|
3247
|
-
this.handleElements(element.elements);
|
|
4001
|
+
this.handleElements(element.elements());
|
|
3248
4002
|
}
|
|
3249
4003
|
element.margin = !!(nextElement && !nextElement.hasLegend);
|
|
3250
4004
|
});
|
|
3251
4005
|
}
|
|
3252
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3253
|
-
/** @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 }); }
|
|
3254
4008
|
}
|
|
3255
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4009
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqForm, decorators: [{
|
|
3256
4010
|
type: Directive,
|
|
3257
4011
|
args: [{
|
|
3258
4012
|
selector: '.kbq-form-vertical, .kbq-form-horizontal',
|
|
3259
|
-
exportAs: 'kbqForm',
|
|
3260
4013
|
host: {
|
|
3261
4014
|
class: 'kbq-form'
|
|
3262
|
-
}
|
|
4015
|
+
},
|
|
4016
|
+
exportAs: 'kbqForm'
|
|
3263
4017
|
}]
|
|
3264
|
-
}], propDecorators: { elements: [{
|
|
3265
|
-
type: ContentChildren,
|
|
3266
|
-
args: [KbqFormElement]
|
|
3267
|
-
}] } });
|
|
4018
|
+
}], propDecorators: { elements: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KbqFormElement), { isSignal: true }] }] } });
|
|
3268
4019
|
|
|
3269
4020
|
class KbqFormsModule {
|
|
3270
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3271
|
-
/** @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,
|
|
3272
4023
|
KbqFormElement], exports: [KbqForm,
|
|
3273
4024
|
KbqFormElement] }); }
|
|
3274
|
-
/** @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 }); }
|
|
3275
4026
|
}
|
|
3276
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqFormsModule, decorators: [{
|
|
3277
4028
|
type: NgModule,
|
|
3278
4029
|
args: [{
|
|
3279
4030
|
imports: [
|
|
@@ -3472,8 +4223,7 @@ class FileValidators {
|
|
|
3472
4223
|
const HTML_ESCAPES = { '&': '&', '<': '<', '>': '>', '"': '"', "'": ''' };
|
|
3473
4224
|
const HTML_SPECIAL_CHARS = /[&<>"']/;
|
|
3474
4225
|
const HTML_SPECIAL_CHARS_GLOBAL = new RegExp(HTML_SPECIAL_CHARS.source, 'g');
|
|
3475
|
-
/**
|
|
3476
|
-
const kbqHighlightMark = (text) => `<mark class="kbq-highlight">${text}</mark>`;
|
|
4226
|
+
/** Escapes characters in the specified string that have special meaning in a regular expression. */
|
|
3477
4227
|
function escapeRegExp(value) {
|
|
3478
4228
|
if (value) {
|
|
3479
4229
|
return value.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
@@ -3485,39 +4235,60 @@ function escapeHtml(value) {
|
|
|
3485
4235
|
return value;
|
|
3486
4236
|
return value.replace(HTML_SPECIAL_CHARS_GLOBAL, (chr) => HTML_ESCAPES[chr] ?? chr);
|
|
3487
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>`;
|
|
3488
4270
|
class KbqHighlightPipe {
|
|
3489
|
-
transform(value,
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
.map((part, i) => {
|
|
3497
|
-
const escaped = escapeHtml(part);
|
|
3498
|
-
const isMatch = i % 2 === 1;
|
|
3499
|
-
return isMatch ? kbqHighlightMark(escaped) : escaped;
|
|
3500
|
-
})
|
|
3501
|
-
.join('');
|
|
3502
|
-
}
|
|
3503
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.21", ngImport: i0, type: KbqHighlightPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3504
|
-
/** @nocollapse */ static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.21", ngImport: i0, type: KbqHighlightPipe, isStandalone: true, name: "mcHighlight" }); }
|
|
3505
|
-
}
|
|
3506
|
-
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: [{
|
|
3507
4278
|
type: Pipe,
|
|
3508
4279
|
args: [{ name: 'mcHighlight' }]
|
|
3509
4280
|
}] });
|
|
3510
4281
|
|
|
3511
4282
|
class KbqHighlightModule {
|
|
3512
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3513
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3514
|
-
/** @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 }); }
|
|
3515
4286
|
}
|
|
3516
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4287
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqHighlightModule, decorators: [{
|
|
3517
4288
|
type: NgModule,
|
|
3518
4289
|
args: [{
|
|
3519
|
-
imports: [
|
|
3520
|
-
exports: [KbqHighlightPipe]
|
|
4290
|
+
imports: [KbqHighlightPipe, KbqHighlightBackgroundPipe],
|
|
4291
|
+
exports: [KbqHighlightPipe, KbqHighlightBackgroundPipe]
|
|
3521
4292
|
}]
|
|
3522
4293
|
}] });
|
|
3523
4294
|
|
|
@@ -3527,10 +4298,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
3527
4298
|
* counted by checking the query list's length.
|
|
3528
4299
|
*/
|
|
3529
4300
|
class KbqLine {
|
|
3530
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3531
|
-
/** @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 }); }
|
|
3532
4303
|
}
|
|
3533
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4304
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqLine, decorators: [{
|
|
3534
4305
|
type: Directive,
|
|
3535
4306
|
args: [{
|
|
3536
4307
|
selector: '[kbq-line], [mcLine]',
|
|
@@ -3596,10 +4367,10 @@ class KbqRectangleItem {
|
|
|
3596
4367
|
const { width, marginLeft, marginRight } = this.window.getComputedStyle(this.nativeElement);
|
|
3597
4368
|
return [width, marginLeft, marginRight].reduce((acc, item) => acc + parseInt(item), 0);
|
|
3598
4369
|
}
|
|
3599
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3600
|
-
/** @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 }); }
|
|
3601
4372
|
}
|
|
3602
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4373
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqRectangleItem, decorators: [{
|
|
3603
4374
|
type: Directive,
|
|
3604
4375
|
args: [{
|
|
3605
4376
|
host: {
|
|
@@ -3619,6 +4390,8 @@ class KbqOptionActionComponent {
|
|
|
3619
4390
|
this.hasFocus = false;
|
|
3620
4391
|
this.destroyRef = inject(DestroyRef);
|
|
3621
4392
|
}
|
|
4393
|
+
// TODO: Skipped for migration because:
|
|
4394
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
3622
4395
|
get disabled() {
|
|
3623
4396
|
return this._disabled;
|
|
3624
4397
|
}
|
|
@@ -3682,20 +4455,20 @@ class KbqOptionActionComponent {
|
|
|
3682
4455
|
this.option.tooltipTrigger.disabled = true;
|
|
3683
4456
|
setTimeout(() => (this.option.tooltipTrigger.disabled = false));
|
|
3684
4457
|
}
|
|
3685
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3686
|
-
/** @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: `
|
|
3687
4460
|
<ng-content select="[kbq-icon]">
|
|
3688
4461
|
<i class="kbq kbq-icon kbq-contrast-fade kbq-ellipsis-vertical_16"></i>
|
|
3689
4462
|
</ng-content>
|
|
3690
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 }); }
|
|
3691
4464
|
}
|
|
3692
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOptionActionComponent, decorators: [{
|
|
3693
4466
|
type: Component,
|
|
3694
|
-
args: [{ selector: 'kbq-option-action',
|
|
4467
|
+
args: [{ selector: 'kbq-option-action', template: `
|
|
3695
4468
|
<ng-content select="[kbq-icon]">
|
|
3696
4469
|
<i class="kbq kbq-icon kbq-contrast-fade kbq-ellipsis-vertical_16"></i>
|
|
3697
4470
|
</ng-content>
|
|
3698
|
-
`, host: {
|
|
4471
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
3699
4472
|
class: 'kbq-option-action',
|
|
3700
4473
|
'[class.kbq-expanded]': 'false',
|
|
3701
4474
|
'[class.kbq-disabled]': 'disabled',
|
|
@@ -3703,31 +4476,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
3703
4476
|
'[attr.tabIndex]': '-1',
|
|
3704
4477
|
'(click)': 'onClick($event)',
|
|
3705
4478
|
'(keydown)': 'onKeyDown($event)'
|
|
3706
|
-
},
|
|
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"] }]
|
|
3707
4480
|
}], propDecorators: { disabled: [{
|
|
3708
4481
|
type: Input,
|
|
3709
4482
|
args: [{ transform: booleanAttribute }]
|
|
3710
4483
|
}] } });
|
|
3711
4484
|
|
|
3712
4485
|
class KbqActionContainer {
|
|
3713
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3714
|
-
/** @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: `
|
|
3715
4488
|
<div class="kbq-action-container__gradient"></div>
|
|
3716
4489
|
<div class="kbq-action-container__box">
|
|
3717
4490
|
<ng-content />
|
|
3718
4491
|
</div>
|
|
3719
|
-
`, 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 }); }
|
|
3720
4493
|
}
|
|
3721
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4494
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqActionContainer, decorators: [{
|
|
3722
4495
|
type: Component,
|
|
3723
|
-
args: [{ selector: 'kbq-action-container',
|
|
4496
|
+
args: [{ selector: 'kbq-action-container', template: `
|
|
3724
4497
|
<div class="kbq-action-container__gradient"></div>
|
|
3725
4498
|
<div class="kbq-action-container__box">
|
|
3726
4499
|
<ng-content />
|
|
3727
4500
|
</div>
|
|
3728
|
-
`, host: {
|
|
4501
|
+
`, changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
3729
4502
|
class: 'kbq-action-container'
|
|
3730
|
-
},
|
|
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"] }]
|
|
3731
4504
|
}] });
|
|
3732
4505
|
|
|
3733
4506
|
let uniqueOptgroupIdCounter = 0;
|
|
@@ -3737,10 +4510,13 @@ let uniqueOptgroupIdCounter = 0;
|
|
|
3737
4510
|
*/
|
|
3738
4511
|
class KbqOptgroup {
|
|
3739
4512
|
constructor() {
|
|
4513
|
+
this.label = input(undefined, ...(ngDevMode ? [{ debugName: "label" }] : []));
|
|
3740
4514
|
this._disabled = false;
|
|
3741
4515
|
/** Unique id for the underlying label. */
|
|
3742
4516
|
this.labelId = `kbq-optgroup-label-${uniqueOptgroupIdCounter++}`;
|
|
3743
4517
|
}
|
|
4518
|
+
// TODO: Skipped for migration because:
|
|
4519
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
3744
4520
|
get disabled() {
|
|
3745
4521
|
return this._disabled;
|
|
3746
4522
|
}
|
|
@@ -3749,18 +4525,16 @@ class KbqOptgroup {
|
|
|
3749
4525
|
this._disabled = value;
|
|
3750
4526
|
}
|
|
3751
4527
|
}
|
|
3752
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3753
|
-
/** @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 }); }
|
|
3754
4530
|
}
|
|
3755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4531
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOptgroup, decorators: [{
|
|
3756
4532
|
type: Component,
|
|
3757
|
-
args: [{ selector: 'kbq-optgroup',
|
|
4533
|
+
args: [{ selector: 'kbq-optgroup', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
3758
4534
|
class: 'kbq-optgroup',
|
|
3759
4535
|
'[class.kbq-disabled]': 'disabled'
|
|
3760
|
-
}, 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"] }]
|
|
3761
|
-
}], propDecorators: { label: [{
|
|
3762
|
-
type: Input
|
|
3763
|
-
}], 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: [{
|
|
3764
4538
|
type: Input,
|
|
3765
4539
|
args: [{ transform: booleanAttribute }]
|
|
3766
4540
|
}] } });
|
|
@@ -3787,39 +4561,33 @@ var MultipleMode;
|
|
|
3787
4561
|
class KbqPseudoCheckbox extends KbqColorDirective {
|
|
3788
4562
|
constructor() {
|
|
3789
4563
|
super(...arguments);
|
|
3790
|
-
this.big = false;
|
|
3791
|
-
this.state = 'unchecked';
|
|
3792
|
-
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" }] : []));
|
|
3793
4567
|
}
|
|
3794
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3795
|
-
/** @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 }); }
|
|
3796
4570
|
}
|
|
3797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4571
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPseudoCheckbox, decorators: [{
|
|
3798
4572
|
type: Component,
|
|
3799
|
-
args: [{ selector: 'kbq-pseudo-checkbox',
|
|
4573
|
+
args: [{ selector: 'kbq-pseudo-checkbox', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
3800
4574
|
class: 'kbq-pseudo-checkbox',
|
|
3801
|
-
'[class.kbq-checkbox_big]': 'big',
|
|
3802
|
-
'[class.kbq-indeterminate]': 'state === "indeterminate"',
|
|
3803
|
-
'[class.kbq-checked]': 'state === true || state === "checked"',
|
|
3804
|
-
'[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()'
|
|
3805
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"] }]
|
|
3806
|
-
}], propDecorators: { big: [{
|
|
3807
|
-
type: Input
|
|
3808
|
-
}], state: [{
|
|
3809
|
-
type: Input
|
|
3810
|
-
}], disabled: [{
|
|
3811
|
-
type: Input
|
|
3812
|
-
}] } });
|
|
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 }] }] } });
|
|
3813
4581
|
|
|
3814
4582
|
class KbqPseudoCheckboxModule {
|
|
3815
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3816
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3817
|
-
/** @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 }); }
|
|
3818
4586
|
}
|
|
3819
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4587
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPseudoCheckboxModule, decorators: [{
|
|
3820
4588
|
type: NgModule,
|
|
3821
4589
|
args: [{
|
|
3822
|
-
imports: [
|
|
4590
|
+
imports: [KbqPseudoCheckbox],
|
|
3823
4591
|
exports: [KbqPseudoCheckbox]
|
|
3824
4592
|
}]
|
|
3825
4593
|
}] });
|
|
@@ -3886,6 +4654,35 @@ class KbqVirtualOption extends KbqOptionBase {
|
|
|
3886
4654
|
* Single option inside of a `<kbq-select>` element.
|
|
3887
4655
|
*/
|
|
3888
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.
|
|
3889
4686
|
get showCheckbox() {
|
|
3890
4687
|
return this._showCheckbox === undefined ? this.multiple : this._showCheckbox;
|
|
3891
4688
|
}
|
|
@@ -3896,6 +4693,8 @@ class KbqOption extends KbqOptionBase {
|
|
|
3896
4693
|
* The displayed value of the option. It is necessary to show the selected option in the
|
|
3897
4694
|
* select's trigger.
|
|
3898
4695
|
*/
|
|
4696
|
+
// TODO: Skipped for migration because:
|
|
4697
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
3899
4698
|
get viewValue() {
|
|
3900
4699
|
return this._viewValue || (this.getHostElement().textContent || '').trim();
|
|
3901
4700
|
}
|
|
@@ -3912,6 +4711,8 @@ class KbqOption extends KbqOptionBase {
|
|
|
3912
4711
|
get selected() {
|
|
3913
4712
|
return this._selected;
|
|
3914
4713
|
}
|
|
4714
|
+
// TODO: Skipped for migration because:
|
|
4715
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
3915
4716
|
get disabled() {
|
|
3916
4717
|
return (this.group && this.group.disabled) || this._disabled;
|
|
3917
4718
|
}
|
|
@@ -3927,33 +4728,6 @@ class KbqOption extends KbqOptionBase {
|
|
|
3927
4728
|
get active() {
|
|
3928
4729
|
return this._active;
|
|
3929
4730
|
}
|
|
3930
|
-
constructor(elementRef, changeDetectorRef, parent, group) {
|
|
3931
|
-
super();
|
|
3932
|
-
this.elementRef = elementRef;
|
|
3933
|
-
this.changeDetectorRef = changeDetectorRef;
|
|
3934
|
-
this.parent = parent;
|
|
3935
|
-
this.group = group;
|
|
3936
|
-
this.selectable = true;
|
|
3937
|
-
// todo this flag will need to be rethought in the future (added for filter panel)
|
|
3938
|
-
this.userSelect = false;
|
|
3939
|
-
/** Event emitted when the option is selected or deselected. */
|
|
3940
|
-
this.onSelectionChange = new EventEmitter();
|
|
3941
|
-
/** Emits when the state of the option changes and any parents have to be notified. */
|
|
3942
|
-
this.stateChanges = new Subject();
|
|
3943
|
-
this._id = `kbq-option-${uniqueIdCounter++}`;
|
|
3944
|
-
this._selected = false;
|
|
3945
|
-
this._disabled = false;
|
|
3946
|
-
this._active = false;
|
|
3947
|
-
this.mostRecentViewValue = '';
|
|
3948
|
-
/**
|
|
3949
|
-
* Flag that indicates whether the component is currently focused by a mouse interaction.
|
|
3950
|
-
*
|
|
3951
|
-
* When set to `true`, the component has focus resulting from a mouse click or
|
|
3952
|
-
* other pointer event. It is automatically cleared when the component loses
|
|
3953
|
-
* focus or if focus is obtained through keyboard navigation or programmatic means.
|
|
3954
|
-
*/
|
|
3955
|
-
this.isFocusedByMouse = false;
|
|
3956
|
-
}
|
|
3957
4731
|
ngAfterViewChecked() {
|
|
3958
4732
|
// Since parent components could be using the option's label to display the selected values
|
|
3959
4733
|
// (e.g. `kbq-select`) and they don't have a way of knowing if the option's label has changed
|
|
@@ -4051,9 +4825,9 @@ class KbqOption extends KbqOptionBase {
|
|
|
4051
4825
|
* determine if the select's view -> model callback should be invoked.`
|
|
4052
4826
|
*/
|
|
4053
4827
|
selectViaInteraction() {
|
|
4054
|
-
if (this.userSelect)
|
|
4828
|
+
if (this.userSelect())
|
|
4055
4829
|
return;
|
|
4056
|
-
if (!this.disabled && this.selectable) {
|
|
4830
|
+
if (!this.disabled && this.selectable()) {
|
|
4057
4831
|
this._selected = this.multiple ? !this._selected : true;
|
|
4058
4832
|
this.changeDetectorRef.markForCheck();
|
|
4059
4833
|
this.emitSelectionChangeEvent(true);
|
|
@@ -4072,19 +4846,24 @@ class KbqOption extends KbqOptionBase {
|
|
|
4072
4846
|
this.isFocusedByMouse = true;
|
|
4073
4847
|
this.parent?.keyManager?.setActiveItem(this);
|
|
4074
4848
|
}
|
|
4075
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4076
|
-
/** @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: [
|
|
4077
4851
|
{
|
|
4078
4852
|
provide: KBQ_TITLE_TEXT_REF,
|
|
4079
4853
|
useExisting: KbqOption
|
|
4080
4854
|
}
|
|
4081
|
-
], 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 }); }
|
|
4082
4856
|
}
|
|
4083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4857
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOption, decorators: [{
|
|
4084
4858
|
type: Component,
|
|
4085
4859
|
args: [{ selector: 'kbq-option', imports: [
|
|
4086
4860
|
KbqPseudoCheckboxModule
|
|
4087
|
-
],
|
|
4861
|
+
], providers: [
|
|
4862
|
+
{
|
|
4863
|
+
provide: KBQ_TITLE_TEXT_REF,
|
|
4864
|
+
useExisting: KbqOption
|
|
4865
|
+
}
|
|
4866
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
4088
4867
|
'[attr.tabindex]': 'getTabIndex()',
|
|
4089
4868
|
class: 'kbq-option',
|
|
4090
4869
|
'[class.kbq-selected]': 'selected',
|
|
@@ -4095,31 +4874,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
4095
4874
|
'(click)': 'handleClick($event)',
|
|
4096
4875
|
'(mouseenter)': 'onMouseenter()',
|
|
4097
4876
|
'(keydown)': 'handleKeydown($event)'
|
|
4098
|
-
}, providers: [
|
|
4099
|
-
|
|
4100
|
-
provide: KBQ_TITLE_TEXT_REF,
|
|
4101
|
-
useExisting: KbqOption
|
|
4102
|
-
}
|
|
4103
|
-
], 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"] }]
|
|
4104
|
-
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
4105
|
-
type: Optional
|
|
4106
|
-
}, {
|
|
4107
|
-
type: Inject,
|
|
4108
|
-
args: [KBQ_OPTION_PARENT_COMPONENT]
|
|
4109
|
-
}] }, { type: KbqOptgroup, decorators: [{
|
|
4110
|
-
type: Optional
|
|
4111
|
-
}] }], 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: [{
|
|
4112
4879
|
type: ViewChild,
|
|
4113
4880
|
args: ['kbqTitleText', { static: false }]
|
|
4114
4881
|
}], value: [{
|
|
4115
4882
|
type: Input
|
|
4116
|
-
}], selectable: [{
|
|
4117
|
-
type: Input,
|
|
4118
|
-
args: [{ transform: booleanAttribute }]
|
|
4119
|
-
}], userSelect: [{
|
|
4120
|
-
type: Input,
|
|
4121
|
-
args: [{ transform: booleanAttribute }]
|
|
4122
|
-
}], 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: [{
|
|
4123
4884
|
type: Input
|
|
4124
4885
|
}], onSelectionChange: [{
|
|
4125
4886
|
type: Output
|
|
@@ -4169,11 +4930,11 @@ function getOptionScrollPosition(optionIndex, optionHeight, currentScrollPositio
|
|
|
4169
4930
|
}
|
|
4170
4931
|
|
|
4171
4932
|
class KbqOptionModule {
|
|
4172
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4173
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4174
|
-
/** @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 }); }
|
|
4175
4936
|
}
|
|
4176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4937
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqOptionModule, decorators: [{
|
|
4177
4938
|
type: NgModule,
|
|
4178
4939
|
args: [{
|
|
4179
4940
|
imports: [KbqPseudoCheckbox, KbqOption, KbqOptgroup, KbqOptionActionComponent],
|
|
@@ -4181,6 +4942,149 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
4181
4942
|
}]
|
|
4182
4943
|
}] });
|
|
4183
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
|
+
|
|
4184
5088
|
const POSITION_MAP = {
|
|
4185
5089
|
top: {
|
|
4186
5090
|
originX: 'center',
|
|
@@ -4468,9 +5372,8 @@ var PopUpSizes;
|
|
|
4468
5372
|
(function (PopUpSizes) {
|
|
4469
5373
|
PopUpSizes["Small"] = "small";
|
|
4470
5374
|
PopUpSizes["Medium"] = "medium";
|
|
4471
|
-
// Normal is deprecated and will be deleted in 16.x
|
|
4472
|
-
PopUpSizes["Normal"] = "medium";
|
|
4473
5375
|
PopUpSizes["Large"] = "large";
|
|
5376
|
+
PopUpSizes["Custom"] = "custom";
|
|
4474
5377
|
})(PopUpSizes || (PopUpSizes = {}));
|
|
4475
5378
|
/**
|
|
4476
5379
|
* Default value when configuring overlay in popups (Autocomplete, Datepicker, Dropdown, Select, Tags Autocomplete,
|
|
@@ -4556,9 +5459,16 @@ class KbqPopUp {
|
|
|
4556
5459
|
return this.visibility === PopUpVisibility.Visible;
|
|
4557
5460
|
}
|
|
4558
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
|
+
}
|
|
4559
5469
|
this.classMap = {
|
|
4560
5470
|
[`${this.prefix}_placement-${placement}`]: true,
|
|
4561
|
-
|
|
5471
|
+
...customClasses,
|
|
4562
5472
|
...classMap
|
|
4563
5473
|
};
|
|
4564
5474
|
}
|
|
@@ -4624,10 +5534,10 @@ class KbqPopUp {
|
|
|
4624
5534
|
this.renderer.setStyle(this.trigger.overlayRef?.overlayElement, oppositeSide, 'unset');
|
|
4625
5535
|
}
|
|
4626
5536
|
}
|
|
4627
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4628
|
-
/** @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 }); }
|
|
4629
5539
|
}
|
|
4630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5540
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPopUp, decorators: [{
|
|
4631
5541
|
type: Directive,
|
|
4632
5542
|
args: [{
|
|
4633
5543
|
host: {
|
|
@@ -4994,10 +5904,10 @@ class KbqPopUpTrigger {
|
|
|
4994
5904
|
this.hide();
|
|
4995
5905
|
});
|
|
4996
5906
|
}
|
|
4997
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4998
|
-
/** @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 }); }
|
|
4999
5909
|
}
|
|
5000
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5910
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqPopUpTrigger, decorators: [{
|
|
5001
5911
|
type: Directive,
|
|
5002
5912
|
args: [{
|
|
5003
5913
|
host: {
|
|
@@ -5031,10 +5941,10 @@ const KBQ_SELECT_SCROLL_STRATEGY_PROVIDER = {
|
|
|
5031
5941
|
};
|
|
5032
5942
|
|
|
5033
5943
|
class KbqSelectTrigger {
|
|
5034
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5035
|
-
/** @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 }); }
|
|
5036
5946
|
}
|
|
5037
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5947
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectTrigger, decorators: [{
|
|
5038
5948
|
type: Directive,
|
|
5039
5949
|
args: [{
|
|
5040
5950
|
selector: 'kbq-select-trigger, [kbq-select-trigger]'
|
|
@@ -5042,39 +5952,36 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
5042
5952
|
}] });
|
|
5043
5953
|
class KbqSelectMatcher {
|
|
5044
5954
|
constructor() {
|
|
5045
|
-
this.useDefaultHandlers = true;
|
|
5955
|
+
this.useDefaultHandlers = input(true, ...(ngDevMode ? [{ debugName: "useDefaultHandlers", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
5046
5956
|
}
|
|
5047
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5048
|
-
/** @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 }); }
|
|
5049
5959
|
}
|
|
5050
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5960
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectMatcher, decorators: [{
|
|
5051
5961
|
type: Directive,
|
|
5052
5962
|
args: [{
|
|
5053
5963
|
selector: 'kbq-select-matcher, [kbq-select-matcher]'
|
|
5054
5964
|
}]
|
|
5055
|
-
}], propDecorators: { useDefaultHandlers: [{
|
|
5056
|
-
type: Input,
|
|
5057
|
-
args: [{ transform: booleanAttribute }]
|
|
5058
|
-
}] } });
|
|
5965
|
+
}], propDecorators: { useDefaultHandlers: [{ type: i0.Input, args: [{ isSignal: true, alias: "useDefaultHandlers", required: false }] }] } });
|
|
5059
5966
|
class KbqSelectSearchEmptyResult {
|
|
5060
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5061
|
-
/** @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 }); }
|
|
5062
5969
|
}
|
|
5063
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5970
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectSearchEmptyResult, decorators: [{
|
|
5064
5971
|
type: Directive,
|
|
5065
5972
|
args: [{
|
|
5066
5973
|
selector: '[kbq-select-search-empty-result]',
|
|
5067
|
-
exportAs: 'kbqSelectSearchEmptyResult',
|
|
5068
5974
|
host: {
|
|
5069
5975
|
class: 'kbq-select-search-empty-result kbq-select__no-options-message'
|
|
5070
|
-
}
|
|
5976
|
+
},
|
|
5977
|
+
exportAs: 'kbqSelectSearchEmptyResult'
|
|
5071
5978
|
}]
|
|
5072
5979
|
}] });
|
|
5073
5980
|
class KbqSelectFooter {
|
|
5074
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5075
|
-
/** @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 }); }
|
|
5076
5983
|
}
|
|
5077
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5984
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectFooter, decorators: [{
|
|
5078
5985
|
type: Directive,
|
|
5079
5986
|
args: [{
|
|
5080
5987
|
selector: 'kbq-select-footer, [kbq-select-footer]',
|
|
@@ -5083,10 +5990,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
5083
5990
|
}] });
|
|
5084
5991
|
class KbqSelectSearch {
|
|
5085
5992
|
get ngControl() {
|
|
5086
|
-
return this.formField.control.ngControl;
|
|
5993
|
+
return this.formField.control().ngControl;
|
|
5087
5994
|
}
|
|
5088
|
-
constructor(
|
|
5089
|
-
this.formField =
|
|
5995
|
+
constructor() {
|
|
5996
|
+
this.formField = inject(KBQ_FORM_FIELD_REF, { optional: true });
|
|
5090
5997
|
this.changes = new EventEmitter();
|
|
5091
5998
|
this.isSearchChanged = false;
|
|
5092
5999
|
this.searchChangesSubscription = new Subscription();
|
|
@@ -5094,22 +6001,22 @@ class KbqSelectSearch {
|
|
|
5094
6001
|
this.formField.inOverlay.set(true);
|
|
5095
6002
|
}
|
|
5096
6003
|
setPlaceholder(value) {
|
|
5097
|
-
this.formField.control.placeholder = value;
|
|
6004
|
+
this.formField.control().placeholder = value;
|
|
5098
6005
|
}
|
|
5099
6006
|
hasPlaceholder() {
|
|
5100
6007
|
return !!this.formField?.control.placeholder;
|
|
5101
6008
|
}
|
|
5102
6009
|
focus() {
|
|
5103
|
-
this.formField.
|
|
6010
|
+
this.formField.focus();
|
|
5104
6011
|
}
|
|
5105
6012
|
reset() {
|
|
5106
6013
|
this.ngControl?.reset();
|
|
5107
6014
|
}
|
|
5108
6015
|
value() {
|
|
5109
|
-
return this.formField.control.value;
|
|
6016
|
+
return this.formField.control().value;
|
|
5110
6017
|
}
|
|
5111
6018
|
ngAfterContentInit() {
|
|
5112
|
-
if (this.formField.control.controlType !== 'input') {
|
|
6019
|
+
if (this.formField.control().controlType !== 'input') {
|
|
5113
6020
|
throw Error('KbqSelectSearch does not work without kbqInput');
|
|
5114
6021
|
}
|
|
5115
6022
|
if (!this.ngControl) {
|
|
@@ -5136,24 +6043,19 @@ class KbqSelectSearch {
|
|
|
5136
6043
|
event.stopPropagation();
|
|
5137
6044
|
}
|
|
5138
6045
|
}
|
|
5139
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5140
|
-
/** @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 }); }
|
|
5141
6048
|
}
|
|
5142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6049
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqSelectSearch, decorators: [{
|
|
5143
6050
|
type: Directive,
|
|
5144
6051
|
args: [{
|
|
5145
6052
|
selector: '[kbqSelectSearch]',
|
|
5146
|
-
exportAs: 'kbqSelectSearch',
|
|
5147
6053
|
host: {
|
|
5148
6054
|
'(keydown)': 'handleKeydown($event)'
|
|
5149
|
-
}
|
|
6055
|
+
},
|
|
6056
|
+
exportAs: 'kbqSelectSearch'
|
|
5150
6057
|
}]
|
|
5151
|
-
}], ctorParameters: () => [
|
|
5152
|
-
type: Optional
|
|
5153
|
-
}, {
|
|
5154
|
-
type: Inject,
|
|
5155
|
-
args: [KBQ_FORM_FIELD_REF]
|
|
5156
|
-
}] }] });
|
|
6058
|
+
}], ctorParameters: () => [] });
|
|
5157
6059
|
/**
|
|
5158
6060
|
* Abstract class representing a customizable select component with an overlay.
|
|
5159
6061
|
*
|
|
@@ -5219,10 +6121,10 @@ class KbqAbstractSelect {
|
|
|
5219
6121
|
resolveSearchMinOptionsThreshold(value) {
|
|
5220
6122
|
return value === 'auto' ? KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD : value;
|
|
5221
6123
|
}
|
|
5222
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5223
|
-
/** @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 }); }
|
|
5224
6126
|
}
|
|
5225
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqAbstractSelect, decorators: [{
|
|
5226
6128
|
type: Directive
|
|
5227
6129
|
}] });
|
|
5228
6130
|
|
|
@@ -5285,10 +6187,10 @@ class KbqMeasureScrollbarService {
|
|
|
5285
6187
|
this.document.body.removeChild(scrollDiv);
|
|
5286
6188
|
this._scrollBarWidth = width;
|
|
5287
6189
|
}
|
|
5288
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5289
|
-
/** @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' }); }
|
|
5290
6192
|
}
|
|
5291
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6193
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqMeasureScrollbarService, decorators: [{
|
|
5292
6194
|
type: Injectable,
|
|
5293
6195
|
args: [{ providedIn: 'root' }]
|
|
5294
6196
|
}], ctorParameters: () => [] });
|
|
@@ -5361,45 +6263,155 @@ class ThemeService {
|
|
|
5361
6263
|
getTheme() {
|
|
5362
6264
|
return this.current.value;
|
|
5363
6265
|
}
|
|
5364
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5365
|
-
/** @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' }); }
|
|
5366
6268
|
}
|
|
5367
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6269
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ThemeService, decorators: [{
|
|
5368
6270
|
type: Injectable,
|
|
5369
6271
|
args: [{ providedIn: 'root' }]
|
|
5370
6272
|
}], ctorParameters: () => [] });
|
|
5371
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
|
+
|
|
5372
6346
|
/**
|
|
5373
|
-
*
|
|
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.
|
|
5374
6350
|
*/
|
|
5375
|
-
|
|
6351
|
+
function patchElementFocus(element) {
|
|
6352
|
+
element.focus = () => dispatchFakeEvent(element, 'focus');
|
|
6353
|
+
element.blur = () => dispatchFakeEvent(element, 'blur');
|
|
6354
|
+
}
|
|
6355
|
+
|
|
5376
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
|
|
5377
6361
|
* @docs-private
|
|
5378
6362
|
*/
|
|
5379
|
-
|
|
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
|
+
|
|
5380
6401
|
/**
|
|
5381
|
-
* @deprecated Will be removed in next major release.
|
|
5382
|
-
*
|
|
5383
6402
|
* @docs-private
|
|
5384
6403
|
*/
|
|
5385
|
-
const
|
|
5386
|
-
factory: () => ({ useValidation: true })
|
|
5387
|
-
});
|
|
6404
|
+
const validationTooltipShowDelay = 10;
|
|
5388
6405
|
/**
|
|
5389
|
-
*
|
|
5390
|
-
*
|
|
5391
|
-
* Will be removed in next major release, so legacy validation will be disabled by default.
|
|
6406
|
+
* @docs-private
|
|
5392
6407
|
*/
|
|
5393
|
-
const
|
|
5394
|
-
provide: KBQ_VALIDATION,
|
|
5395
|
-
useValue: { useValidation: false }
|
|
5396
|
-
});
|
|
6408
|
+
const validationTooltipHideDelay = 3000;
|
|
5397
6409
|
|
|
5398
|
-
const VERSION = new Version('
|
|
6410
|
+
const VERSION = new Version('20.0.0+sha-17501d3');
|
|
5399
6411
|
|
|
5400
6412
|
/**
|
|
5401
6413
|
* Generated bundle index. Do not edit.
|
|
5402
6414
|
*/
|
|
5403
6415
|
|
|
5404
|
-
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 };
|
|
5405
6417
|
//# sourceMappingURL=koobiq-components-core.mjs.map
|