@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,20 +1,17 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, Directive, inject, DestroyRef, ElementRef,
|
|
2
|
+
import { InjectionToken, Directive, inject, ChangeDetectorRef, DestroyRef, ElementRef, input, booleanAttribute, contentChild, output, signal, contentChildren, forwardRef, Input, ViewChild, ViewEncapsulation, ChangeDetectionStrategy, Component, ContentChildren, NgModule } from '@angular/core';
|
|
3
3
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import * as i3$1 from '@koobiq/components/autocomplete';
|
|
4
|
+
import { NgForm, FormGroupDirective, NgControl } from '@angular/forms';
|
|
5
|
+
import { KbqAutocompleteTrigger } from '@koobiq/components/autocomplete';
|
|
7
6
|
import * as i1 from '@koobiq/components/core';
|
|
8
|
-
import { KbqFieldSizingContent, KbqColorDirective, KbqComponentColors, isNull, KBQ_TITLE_TEXT_REF,
|
|
9
|
-
import
|
|
10
|
-
import { KbqFormFieldControl } from '@koobiq/components/form-field';
|
|
7
|
+
import { KbqFieldSizingContent, KbqColorDirective, KbqComponentColors, hasModifierKey, isNull, KBQ_TITLE_TEXT_REF, ErrorStateMatcher, FocusKeyManager, isSelectAll, SEMICOLON, COMMA, SPACE as SPACE$1, TAB as TAB$1, ENTER as ENTER$1 } from '@koobiq/components/core';
|
|
8
|
+
import { KbqFormFieldControl, KbqTrim } from '@koobiq/components/form-field';
|
|
11
9
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
12
|
-
import
|
|
10
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
13
11
|
import * as i2 from '@angular/cdk/drag-drop';
|
|
14
12
|
import { CdkDrag, CdkDropList } from '@angular/cdk/drag-drop';
|
|
15
13
|
import { DELETE, SPACE, BACKSPACE, ENTER, ESCAPE, F2, LEFT_ARROW, TAB, HOME, END } from '@angular/cdk/keycodes';
|
|
16
|
-
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
17
|
-
import { FocusKeyManager } from '@koobiq/cdk/a11y';
|
|
14
|
+
import { takeUntilDestroyed, outputToObservable } from '@angular/core/rxjs-interop';
|
|
18
15
|
import { Subject, merge } from 'rxjs';
|
|
19
16
|
import { startWith, takeUntil, filter } from 'rxjs/operators';
|
|
20
17
|
import { KbqIcon } from '@koobiq/components/icon';
|
|
@@ -50,10 +47,10 @@ const getTagEditInputMissingError = () => {
|
|
|
50
47
|
* @docs-private
|
|
51
48
|
*/
|
|
52
49
|
class KbqTagAvatar {
|
|
53
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
54
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
50
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagAvatar, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
51
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqTagAvatar, isStandalone: true, selector: "kbq-tag-avatar, [kbqTagAvatar]", host: { classAttribute: "kbq-tag-avatar" }, ngImport: i0 }); }
|
|
55
52
|
}
|
|
56
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagAvatar, decorators: [{
|
|
57
54
|
type: Directive,
|
|
58
55
|
args: [{
|
|
59
56
|
selector: 'kbq-tag-avatar, [kbqTagAvatar]',
|
|
@@ -65,10 +62,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
65
62
|
* @docs-private
|
|
66
63
|
*/
|
|
67
64
|
class KbqTagTrailingIcon {
|
|
68
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
69
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
65
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagTrailingIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
66
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqTagTrailingIcon, isStandalone: true, selector: "kbq-tag-trailing-icon, [kbqTagTrailingIcon]", host: { classAttribute: "kbq-tag-trailing-icon" }, ngImport: i0 }); }
|
|
70
67
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagTrailingIcon, decorators: [{
|
|
72
69
|
type: Directive,
|
|
73
70
|
args: [{
|
|
74
71
|
selector: 'kbq-tag-trailing-icon, [kbqTagTrailingIcon]',
|
|
@@ -83,19 +80,19 @@ class KbqTagEditSubmit {
|
|
|
83
80
|
/** @docs-private */
|
|
84
81
|
this.tag = inject(KbqTag);
|
|
85
82
|
}
|
|
86
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
87
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
83
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagEditSubmit, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
84
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqTagEditSubmit, isStandalone: true, selector: "[kbqTagEditSubmit]", host: { listeners: { "click": "tag.submitEditing(\"click\")" }, properties: { "attr.tabindex": "-1" }, classAttribute: "kbq-tag-edit-submit" }, exportAs: ["kbqTagEditSubmit"], ngImport: i0 }); }
|
|
88
85
|
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagEditSubmit, decorators: [{
|
|
90
87
|
type: Directive,
|
|
91
88
|
args: [{
|
|
92
89
|
selector: '[kbqTagEditSubmit]',
|
|
93
|
-
exportAs: 'kbqTagEditSubmit',
|
|
94
90
|
host: {
|
|
95
91
|
class: 'kbq-tag-edit-submit',
|
|
96
92
|
'[attr.tabindex]': '-1',
|
|
97
93
|
'(click)': 'tag.submitEditing("click")'
|
|
98
|
-
}
|
|
94
|
+
},
|
|
95
|
+
exportAs: 'kbqTagEditSubmit'
|
|
99
96
|
}]
|
|
100
97
|
}] });
|
|
101
98
|
/**
|
|
@@ -132,31 +129,35 @@ class KbqTagEditInput {
|
|
|
132
129
|
default:
|
|
133
130
|
}
|
|
134
131
|
}
|
|
135
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
136
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
132
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagEditInput, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
133
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqTagEditInput, isStandalone: true, selector: "[kbqTagEditInput]", host: { listeners: { "keydown": "handleKeydown($event)", "click": "handleClick($event)" }, classAttribute: "kbq-tag-edit-input" }, exportAs: ["kbqTagEditInput"], hostDirectives: [{ directive: i1.KbqFieldSizingContent }], ngImport: i0 }); }
|
|
137
134
|
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagEditInput, decorators: [{
|
|
139
136
|
type: Directive,
|
|
140
137
|
args: [{
|
|
141
138
|
selector: '[kbqTagEditInput]',
|
|
142
|
-
exportAs: 'kbqTagEditInput',
|
|
143
139
|
host: {
|
|
144
140
|
class: 'kbq-tag-edit-input',
|
|
145
141
|
'(keydown)': 'handleKeydown($event)',
|
|
146
142
|
'(click)': 'handleClick($event)'
|
|
147
143
|
},
|
|
148
|
-
hostDirectives: [KbqFieldSizingContent]
|
|
144
|
+
hostDirectives: [KbqFieldSizingContent],
|
|
145
|
+
exportAs: 'kbqTagEditInput'
|
|
149
146
|
}]
|
|
150
147
|
}] });
|
|
151
148
|
class KbqTag extends KbqColorDirective {
|
|
152
149
|
/** Whether the tag is editable. */
|
|
150
|
+
// TODO: Skipped for migration because:
|
|
151
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
153
152
|
get editable() {
|
|
154
|
-
return this._editable ?? !!this.tagList?.editable;
|
|
153
|
+
return this._editable ?? !!this.tagList?.editable();
|
|
155
154
|
}
|
|
156
155
|
set editable(value) {
|
|
157
156
|
this._editable = value;
|
|
158
157
|
}
|
|
159
158
|
/** Whether the tag is selected. */
|
|
159
|
+
// TODO: Skipped for migration because:
|
|
160
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
160
161
|
get selected() {
|
|
161
162
|
return this._selected;
|
|
162
163
|
}
|
|
@@ -164,6 +165,8 @@ class KbqTag extends KbqColorDirective {
|
|
|
164
165
|
this.setSelectedState(value, { emitEvent: true });
|
|
165
166
|
}
|
|
166
167
|
/** The value of the tag. Defaults to the content inside `<kbq-tag>` tags. */
|
|
168
|
+
// TODO: Skipped for migration because:
|
|
169
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
167
170
|
get value() {
|
|
168
171
|
return this._value ?? this.elementRef.nativeElement.textContent?.trim();
|
|
169
172
|
}
|
|
@@ -173,8 +176,10 @@ class KbqTag extends KbqColorDirective {
|
|
|
173
176
|
/**
|
|
174
177
|
* Whether the tag is selectable.
|
|
175
178
|
*/
|
|
179
|
+
// TODO: Skipped for migration because:
|
|
180
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
176
181
|
get selectable() {
|
|
177
|
-
return this._selectable || !!this.tagList?.selectable;
|
|
182
|
+
return this._selectable || !!this.tagList?.selectable();
|
|
178
183
|
}
|
|
179
184
|
set selectable(value) {
|
|
180
185
|
this._selectable = value;
|
|
@@ -182,12 +187,16 @@ class KbqTag extends KbqColorDirective {
|
|
|
182
187
|
/**
|
|
183
188
|
* Determines whether the tag is removable.
|
|
184
189
|
*/
|
|
190
|
+
// TODO: Skipped for migration because:
|
|
191
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
185
192
|
get removable() {
|
|
186
193
|
return this._removable && (this.tagList?.removable ?? true);
|
|
187
194
|
}
|
|
188
195
|
set removable(value) {
|
|
189
196
|
this._removable = value;
|
|
190
197
|
}
|
|
198
|
+
// TODO: Skipped for migration because:
|
|
199
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
191
200
|
get tabindex() {
|
|
192
201
|
if (this.disabled)
|
|
193
202
|
return null;
|
|
@@ -201,6 +210,8 @@ class KbqTag extends KbqColorDirective {
|
|
|
201
210
|
/**
|
|
202
211
|
* Whether the tag is disabled.
|
|
203
212
|
*/
|
|
213
|
+
// TODO: Skipped for migration because:
|
|
214
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
204
215
|
get disabled() {
|
|
205
216
|
return this._disabled || (this.tagList?.disabled ?? false);
|
|
206
217
|
}
|
|
@@ -216,9 +227,9 @@ class KbqTag extends KbqColorDirective {
|
|
|
216
227
|
get draggable() {
|
|
217
228
|
return (this.tagList?.draggable ?? false) && !this.disabled;
|
|
218
229
|
}
|
|
219
|
-
constructor(
|
|
230
|
+
constructor() {
|
|
220
231
|
super();
|
|
221
|
-
this.changeDetectorRef =
|
|
232
|
+
this.changeDetectorRef = inject(ChangeDetectorRef);
|
|
222
233
|
this.focusMonitor = inject(FocusMonitor);
|
|
223
234
|
this.tagList = inject(KbqTagList, { optional: true });
|
|
224
235
|
this.drag = inject(CdkDrag, { host: true });
|
|
@@ -246,24 +257,32 @@ class KbqTag extends KbqColorDirective {
|
|
|
246
257
|
*/
|
|
247
258
|
this.hasFocus = false;
|
|
248
259
|
/** Whether the tag edits can't be submitted. */
|
|
249
|
-
this.preventEditSubmit = false;
|
|
260
|
+
this.preventEditSubmit = input(false, ...(ngDevMode ? [{ debugName: "preventEditSubmit", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
261
|
+
this.editInputElementRef = contentChild(KbqTagEditInput, ...(ngDevMode ? [{ debugName: "editInputElementRef", read: ElementRef }] : [{ read: ElementRef }]));
|
|
250
262
|
/**
|
|
251
263
|
* Emits event when the tag is edited.
|
|
252
264
|
*/
|
|
253
|
-
this.editChange =
|
|
265
|
+
this.editChange = output();
|
|
254
266
|
/**
|
|
255
267
|
* @docs-private
|
|
256
268
|
*/
|
|
257
|
-
this.editing = signal(false);
|
|
269
|
+
this.editing = signal(false, ...(ngDevMode ? [{ debugName: "editing" }] : []));
|
|
270
|
+
this.contentChildren = contentChildren(KbqIcon);
|
|
271
|
+
/** The tag avatar */
|
|
272
|
+
this.avatar = contentChild(KbqTagAvatar, ...(ngDevMode ? [{ debugName: "avatar" }] : []));
|
|
273
|
+
/** The tag's trailing icon. */
|
|
274
|
+
this.trailingIcon = contentChild(KbqTagTrailingIcon, ...(ngDevMode ? [{ debugName: "trailingIcon" }] : []));
|
|
275
|
+
/** The tag's remove toggler. */
|
|
276
|
+
this.removeIcon = contentChild(forwardRef(() => KbqTagRemove), ...(ngDevMode ? [{ debugName: "removeIcon" }] : []));
|
|
258
277
|
/** Emitted when the tag is selected or deselected. */
|
|
259
|
-
this.selectionChange =
|
|
278
|
+
this.selectionChange = output();
|
|
260
279
|
/** Emitted when the tag is destroyed and leaving the DOM. */
|
|
261
|
-
this.destroyed =
|
|
280
|
+
this.destroyed = output();
|
|
262
281
|
/**
|
|
263
282
|
* Emitted when a tag is to be removed.
|
|
264
283
|
* Fires on programmatic and UI removal (click or keyboard).
|
|
265
284
|
*/
|
|
266
|
-
this.removed =
|
|
285
|
+
this.removed = output();
|
|
267
286
|
this._selected = false;
|
|
268
287
|
this._selectable = false;
|
|
269
288
|
this._removable = true;
|
|
@@ -287,7 +306,7 @@ class KbqTag extends KbqColorDirective {
|
|
|
287
306
|
}
|
|
288
307
|
/** @docs-private */
|
|
289
308
|
addClassModificatorForIcons() {
|
|
290
|
-
const icons = this.contentChildren.map((item) => item.elementRef.nativeElement);
|
|
309
|
+
const icons = this.contentChildren().map((item) => item.elementRef.nativeElement);
|
|
291
310
|
if (icons.length === 1) {
|
|
292
311
|
const iconElement = icons[0];
|
|
293
312
|
if (iconElement.classList.contains('kbq-tag-remove')) {
|
|
@@ -399,7 +418,12 @@ class KbqTag extends KbqColorDirective {
|
|
|
399
418
|
case DELETE:
|
|
400
419
|
case BACKSPACE: {
|
|
401
420
|
// If there is a tag list and it has selected tags, remove them, otherwise remove focused tag.
|
|
402
|
-
this.tagList?.selected.length
|
|
421
|
+
if (this.tagList?.selected.length) {
|
|
422
|
+
this.tagList.removeSelected();
|
|
423
|
+
}
|
|
424
|
+
else {
|
|
425
|
+
this.remove();
|
|
426
|
+
}
|
|
403
427
|
// Always prevent so page navigation does not occur
|
|
404
428
|
event.preventDefault();
|
|
405
429
|
break;
|
|
@@ -435,7 +459,7 @@ class KbqTag extends KbqColorDirective {
|
|
|
435
459
|
this.editing.set(true);
|
|
436
460
|
this.editChange.emit({ tag: this, type: 'start', reason });
|
|
437
461
|
setTimeout(() => {
|
|
438
|
-
const input = this.editInputElementRef?.nativeElement;
|
|
462
|
+
const input = this.editInputElementRef()?.nativeElement;
|
|
439
463
|
if (!input)
|
|
440
464
|
throw getTagEditInputMissingError();
|
|
441
465
|
this.focusMonitor.focusVia(this.elementRef.nativeElement, 'keyboard');
|
|
@@ -452,7 +476,7 @@ class KbqTag extends KbqColorDirective {
|
|
|
452
476
|
}
|
|
453
477
|
/** @docs-private */
|
|
454
478
|
submitEditing(reason) {
|
|
455
|
-
if (!this.editing() || this.preventEditSubmit)
|
|
479
|
+
if (!this.editing() || this.preventEditSubmit())
|
|
456
480
|
return;
|
|
457
481
|
this.editing.set(false);
|
|
458
482
|
this.editChange.emit({ tag: this, type: 'submit', reason });
|
|
@@ -508,8 +532,8 @@ class KbqTag extends KbqColorDirective {
|
|
|
508
532
|
}
|
|
509
533
|
});
|
|
510
534
|
}
|
|
511
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
512
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
535
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTag, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
536
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: KbqTag, isStandalone: true, selector: "kbq-tag, [kbq-tag], kbq-basic-tag, [kbq-basic-tag]", inputs: { editable: { classPropertyName: "editable", publicName: "editable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, preventEditSubmit: { classPropertyName: "preventEditSubmit", publicName: "preventEditSubmit", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute } }, outputs: { editChange: "editChange", selectionChange: "selectionChange", destroyed: "destroyed", removed: "removed" }, host: { listeners: { "dblclick": "handleDblClick($event)", "click": "handleClick($event)", "keydown": "handleKeydown($event)" }, properties: { "attr.tabindex": "tabindex", "attr.disabled": "disabled || null", "class.kbq-selected": "selected", "class.kbq-tag-with-avatar": "avatar()", "class.kbq-tag-with-icon": "contentChildren()", "class.kbq-tag-with-trailing-icon": "trailingIcon() || removeIcon()", "class.kbq-disabled": "disabled", "class.kbq-tag_editable": "editable", "class.kbq-tag_editing": "editing()", "class.kbq-tag_removable": "removable", "class.kbq-tag_selectable": "selectable", "class.kbq-tag_draggable": "draggable" }, classAttribute: "kbq-tag" }, providers: [{ provide: KBQ_TITLE_TEXT_REF, useExisting: KbqTag }], queries: [{ propertyName: "editInputElementRef", first: true, predicate: KbqTagEditInput, descendants: true, read: ElementRef, isSignal: true }, { propertyName: "contentChildren", predicate: KbqIcon, isSignal: true }, { propertyName: "avatar", first: true, predicate: KbqTagAvatar, descendants: true, isSignal: true }, { propertyName: "trailingIcon", first: true, predicate: KbqTagTrailingIcon, descendants: true, isSignal: true }, { propertyName: "removeIcon", first: true, predicate: i0.forwardRef(() => KbqTagRemove), descendants: true, isSignal: true }], viewQueries: [{ propertyName: "textElement", first: true, predicate: ["kbqTitleText"], descendants: true }], exportAs: ["kbqTag"], usesInheritance: true, hostDirectives: [{ directive: i2.CdkDrag }], ngImport: i0, template: `
|
|
513
537
|
<div class="kbq-tag__wrapper">
|
|
514
538
|
<ng-content select="[kbq-icon]:not([kbqTagRemove]):not([kbqTagEditSubmit])" />
|
|
515
539
|
<span #kbqTitleText class="kbq-tag__text">
|
|
@@ -529,7 +553,7 @@ class KbqTag extends KbqColorDirective {
|
|
|
529
553
|
</div>
|
|
530
554
|
`, isInline: true, styles: [".kbq-tag{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:inline-block;max-width:100%;height:var(--kbq-size-xxl);padding:var(--kbq-tag-size-padding-vertical) var(--kbq-tag-size-padding-horizontal);border-radius:4px;cursor:default;outline:none;box-sizing:border-box}.kbq-tag .kbq-icon.kbq-tag-remove{display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:var(--kbq-tag-size-close-button-margin-right)}.kbq-tag .kbq-icon.kbq-tag-remove:hover{cursor:pointer}.kbq-tag.kbq-disabled .kbq-icon.kbq-tag-remove:hover{cursor:default}.kbq-tag .kbq-tag__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin:0 var(--kbq-tag-size-content-gap-horizontal)}.kbq-tag .kbq-icon_left{margin-left:var(--kbq-tag-size-icon-margin-left)}.kbq-tag .kbq-tag-edit-input{background:transparent;padding:0;margin:0;border:none;outline:none}.kbq-tag .kbq-tag-edit-input::-ms-clear{display:none;width:0;height:0}.kbq-tag .kbq-tag-edit-input::-ms-reveal{display:none;width:0;height:0}.kbq-tag .kbq-tag-edit-input::-webkit-search-decoration,.kbq-tag .kbq-tag-edit-input::-webkit-search-cancel-button,.kbq-tag .kbq-tag-edit-input::-webkit-search-results-button,.kbq-tag .kbq-tag-edit-input::-webkit-search-results-decoration{display:none}.kbq-tag .kbq-tag-edit-input{min-width:var(--kbq-size-xs);max-width:100%}.kbq-tag .kbq-tag-edit-input.kbq-input{min-height:unset!important;border-radius:unset!important;padding:unset!important}.kbq-tag .kbq-tag-edit-submit{margin-right:var(--kbq-size-3xs)}.kbq-tag.cdk-drag-placeholder{opacity:var(--kbq-opacity-disabled)}.kbq-tag.cdk-drag-animating{transition:transform .3s cubic-bezier(0,0,.2,1)}.kbq-tag__wrapper{display:flex;align-items:center;height:100%;flex:1 1 100%}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
531
555
|
}
|
|
532
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
556
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTag, decorators: [{
|
|
533
557
|
type: Component,
|
|
534
558
|
args: [{ selector: 'kbq-tag, [kbq-tag], kbq-basic-tag, [kbq-basic-tag]', template: `
|
|
535
559
|
<div class="kbq-tag__wrapper">
|
|
@@ -549,14 +573,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
549
573
|
}
|
|
550
574
|
}
|
|
551
575
|
</div>
|
|
552
|
-
`,
|
|
576
|
+
`, providers: [{ provide: KBQ_TITLE_TEXT_REF, useExisting: KbqTag }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
553
577
|
class: 'kbq-tag',
|
|
554
578
|
'[attr.tabindex]': 'tabindex',
|
|
555
579
|
'[attr.disabled]': 'disabled || null',
|
|
556
580
|
'[class.kbq-selected]': 'selected',
|
|
557
|
-
'[class.kbq-tag-with-avatar]': 'avatar',
|
|
558
|
-
'[class.kbq-tag-with-icon]': 'contentChildren',
|
|
559
|
-
'[class.kbq-tag-with-trailing-icon]': 'trailingIcon || removeIcon',
|
|
581
|
+
'[class.kbq-tag-with-avatar]': 'avatar()',
|
|
582
|
+
'[class.kbq-tag-with-icon]': 'contentChildren()',
|
|
583
|
+
'[class.kbq-tag-with-trailing-icon]': 'trailingIcon() || removeIcon()',
|
|
560
584
|
'[class.kbq-disabled]': 'disabled',
|
|
561
585
|
'[class.kbq-tag_editable]': 'editable',
|
|
562
586
|
'[class.kbq-tag_editing]': 'editing()',
|
|
@@ -566,40 +590,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
566
590
|
'(dblclick)': 'handleDblClick($event)',
|
|
567
591
|
'(click)': 'handleClick($event)',
|
|
568
592
|
'(keydown)': 'handleKeydown($event)'
|
|
569
|
-
},
|
|
570
|
-
}], ctorParameters: () => [
|
|
571
|
-
type: Input,
|
|
572
|
-
args: [{ transform: booleanAttribute }]
|
|
573
|
-
}], preventEditSubmit: [{
|
|
593
|
+
}, hostDirectives: [CdkDrag], exportAs: 'kbqTag', styles: [".kbq-tag{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:inline-block;max-width:100%;height:var(--kbq-size-xxl);padding:var(--kbq-tag-size-padding-vertical) var(--kbq-tag-size-padding-horizontal);border-radius:4px;cursor:default;outline:none;box-sizing:border-box}.kbq-tag .kbq-icon.kbq-tag-remove{display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-right:var(--kbq-tag-size-close-button-margin-right)}.kbq-tag .kbq-icon.kbq-tag-remove:hover{cursor:pointer}.kbq-tag.kbq-disabled .kbq-icon.kbq-tag-remove:hover{cursor:default}.kbq-tag .kbq-tag__text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;margin:0 var(--kbq-tag-size-content-gap-horizontal)}.kbq-tag .kbq-icon_left{margin-left:var(--kbq-tag-size-icon-margin-left)}.kbq-tag .kbq-tag-edit-input{background:transparent;padding:0;margin:0;border:none;outline:none}.kbq-tag .kbq-tag-edit-input::-ms-clear{display:none;width:0;height:0}.kbq-tag .kbq-tag-edit-input::-ms-reveal{display:none;width:0;height:0}.kbq-tag .kbq-tag-edit-input::-webkit-search-decoration,.kbq-tag .kbq-tag-edit-input::-webkit-search-cancel-button,.kbq-tag .kbq-tag-edit-input::-webkit-search-results-button,.kbq-tag .kbq-tag-edit-input::-webkit-search-results-decoration{display:none}.kbq-tag .kbq-tag-edit-input{min-width:var(--kbq-size-xs);max-width:100%}.kbq-tag .kbq-tag-edit-input.kbq-input{min-height:unset!important;border-radius:unset!important;padding:unset!important}.kbq-tag .kbq-tag-edit-submit{margin-right:var(--kbq-size-3xs)}.kbq-tag.cdk-drag-placeholder{opacity:var(--kbq-opacity-disabled)}.kbq-tag.cdk-drag-animating{transition:transform .3s cubic-bezier(0,0,.2,1)}.kbq-tag__wrapper{display:flex;align-items:center;height:100%;flex:1 1 100%}\n"] }]
|
|
594
|
+
}], ctorParameters: () => [], propDecorators: { editable: [{
|
|
574
595
|
type: Input,
|
|
575
596
|
args: [{ transform: booleanAttribute }]
|
|
576
|
-
}], editInputElementRef: [{
|
|
577
|
-
type: ContentChild,
|
|
578
|
-
args: [KbqTagEditInput, { read: ElementRef }]
|
|
579
|
-
}], editChange: [{
|
|
580
|
-
type: Output
|
|
581
|
-
}], textElement: [{
|
|
597
|
+
}], preventEditSubmit: [{ type: i0.Input, args: [{ isSignal: true, alias: "preventEditSubmit", required: false }] }], editInputElementRef: [{ type: i0.ContentChild, args: [i0.forwardRef(() => KbqTagEditInput), { ...{ read: ElementRef }, isSignal: true }] }], editChange: [{ type: i0.Output, args: ["editChange"] }], textElement: [{
|
|
582
598
|
type: ViewChild,
|
|
583
599
|
args: ['kbqTitleText']
|
|
584
|
-
}], contentChildren: [{
|
|
585
|
-
type: ContentChildren,
|
|
586
|
-
args: [KbqIcon]
|
|
587
|
-
}], avatar: [{
|
|
588
|
-
type: ContentChild,
|
|
589
|
-
args: [KbqTagAvatar, { static: false }]
|
|
590
|
-
}], trailingIcon: [{
|
|
591
|
-
type: ContentChild,
|
|
592
|
-
args: [KbqTagTrailingIcon, { static: false }]
|
|
593
|
-
}], removeIcon: [{
|
|
594
|
-
type: ContentChild,
|
|
595
|
-
args: [forwardRef(() => KbqTagRemove), { static: false }]
|
|
596
|
-
}], selectionChange: [{
|
|
597
|
-
type: Output
|
|
598
|
-
}], destroyed: [{
|
|
599
|
-
type: Output
|
|
600
|
-
}], removed: [{
|
|
601
|
-
type: Output
|
|
602
|
-
}], selected: [{
|
|
600
|
+
}], contentChildren: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => KbqIcon), { isSignal: true }] }], avatar: [{ type: i0.ContentChild, args: [i0.forwardRef(() => KbqTagAvatar), { isSignal: true }] }], trailingIcon: [{ type: i0.ContentChild, args: [i0.forwardRef(() => KbqTagTrailingIcon), { isSignal: true }] }], removeIcon: [{ type: i0.ContentChild, args: [forwardRef(() => KbqTagRemove), { isSignal: true }] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], destroyed: [{ type: i0.Output, args: ["destroyed"] }], removed: [{ type: i0.Output, args: ["removed"] }], selected: [{
|
|
603
601
|
type: Input,
|
|
604
602
|
args: [{ transform: booleanAttribute }]
|
|
605
603
|
}], value: [{
|
|
@@ -628,8 +626,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
628
626
|
* styles to properly center the icon within the tag.
|
|
629
627
|
*/
|
|
630
628
|
class KbqTagRemove {
|
|
631
|
-
constructor(
|
|
632
|
-
this.parentTag =
|
|
629
|
+
constructor() {
|
|
630
|
+
this.parentTag = inject(KbqTag);
|
|
633
631
|
}
|
|
634
632
|
/** @docs-private */
|
|
635
633
|
focus(event) {
|
|
@@ -652,10 +650,10 @@ class KbqTagRemove {
|
|
|
652
650
|
// that the tag is being removed before the event bubbles up.
|
|
653
651
|
event.stopPropagation();
|
|
654
652
|
}
|
|
655
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
656
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
653
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagRemove, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
654
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: KbqTagRemove, isStandalone: true, selector: "[kbqTagRemove]", host: { listeners: { "click": "handleClick($event)", "focus": "focus($event)" }, properties: { "attr.tabindex": "-1" }, classAttribute: "kbq-tag-remove kbq-tag-trailing-icon" }, ngImport: i0 }); }
|
|
657
655
|
}
|
|
658
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
656
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagRemove, decorators: [{
|
|
659
657
|
type: Directive,
|
|
660
658
|
args: [{
|
|
661
659
|
selector: '[kbqTagRemove]',
|
|
@@ -666,10 +664,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
666
664
|
'(focus)': 'focus($event)'
|
|
667
665
|
}
|
|
668
666
|
}]
|
|
669
|
-
}]
|
|
670
|
-
type: Inject,
|
|
671
|
-
args: [forwardRef(() => KbqTag)]
|
|
672
|
-
}] }] });
|
|
667
|
+
}] });
|
|
673
668
|
|
|
674
669
|
// Increasing integer for generating unique ids for tag-list components.
|
|
675
670
|
let nextUniqueId$1 = 0;
|
|
@@ -687,7 +682,7 @@ class KbqTagList {
|
|
|
687
682
|
* @docs-private
|
|
688
683
|
*/
|
|
689
684
|
get tagSelectionChanges() {
|
|
690
|
-
return merge(...this.tags.map((tag) => tag.selectionChange));
|
|
685
|
+
return merge(...this.tags.map((tag) => outputToObservable(tag.selectionChange)));
|
|
691
686
|
}
|
|
692
687
|
/**
|
|
693
688
|
* Combined stream of all of the child tags' focus change events.
|
|
@@ -711,7 +706,7 @@ class KbqTagList {
|
|
|
711
706
|
* @docs-private
|
|
712
707
|
*/
|
|
713
708
|
get tagRemoveChanges() {
|
|
714
|
-
return merge(...this.tags.map((tag) => tag.destroyed));
|
|
709
|
+
return merge(...this.tags.map((tag) => outputToObservable(tag.destroyed)));
|
|
715
710
|
}
|
|
716
711
|
/**
|
|
717
712
|
* Combined stream of all of the child tags' removal request events.
|
|
@@ -719,7 +714,7 @@ class KbqTagList {
|
|
|
719
714
|
* @docs-private
|
|
720
715
|
*/
|
|
721
716
|
get tagBeforeRemoveChanges() {
|
|
722
|
-
return merge(...this.tags.map((tag) => tag.removed));
|
|
717
|
+
return merge(...this.tags.map((tag) => outputToObservable(tag.removed)));
|
|
723
718
|
}
|
|
724
719
|
/**
|
|
725
720
|
* Combined stream of all of the child tags' edit change events.
|
|
@@ -727,7 +722,7 @@ class KbqTagList {
|
|
|
727
722
|
* @docs-private
|
|
728
723
|
*/
|
|
729
724
|
get tagEditChanges() {
|
|
730
|
-
return merge(...this.tags.map((tag) => tag.editChange));
|
|
725
|
+
return merge(...this.tags.map((tag) => outputToObservable(tag.editChange)));
|
|
731
726
|
}
|
|
732
727
|
/**
|
|
733
728
|
* The array of selected tags inside tag list.
|
|
@@ -739,12 +734,14 @@ class KbqTagList {
|
|
|
739
734
|
}
|
|
740
735
|
/** @docs-private */
|
|
741
736
|
get canShowCleaner() {
|
|
742
|
-
return this.cleaner && this.tags.length > 0;
|
|
737
|
+
return !!this.cleaner() && this.tags.length > 0;
|
|
743
738
|
}
|
|
744
739
|
/**
|
|
745
740
|
* Implemented as part of KbqFormFieldControl.
|
|
746
741
|
* @docs-private
|
|
747
742
|
*/
|
|
743
|
+
// TODO: Skipped for migration because:
|
|
744
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
748
745
|
get value() {
|
|
749
746
|
return this._value;
|
|
750
747
|
}
|
|
@@ -762,6 +759,8 @@ class KbqTagList {
|
|
|
762
759
|
* Implemented as part of KbqFormFieldControl.
|
|
763
760
|
* @docs-private
|
|
764
761
|
*/
|
|
762
|
+
// TODO: Skipped for migration because:
|
|
763
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
765
764
|
get required() {
|
|
766
765
|
return this._required;
|
|
767
766
|
}
|
|
@@ -773,6 +772,8 @@ class KbqTagList {
|
|
|
773
772
|
* Implemented as part of KbqFormFieldControl.
|
|
774
773
|
* @docs-private
|
|
775
774
|
*/
|
|
775
|
+
// TODO: Skipped for migration because:
|
|
776
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
776
777
|
get placeholder() {
|
|
777
778
|
return this.tagInput ? this.tagInput.placeholder : this._placeholder;
|
|
778
779
|
}
|
|
@@ -802,6 +803,8 @@ class KbqTagList {
|
|
|
802
803
|
* Implemented as part of KbqFormFieldControl.
|
|
803
804
|
* @docs-private
|
|
804
805
|
*/
|
|
806
|
+
// TODO: Skipped for migration because:
|
|
807
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
805
808
|
get disabled() {
|
|
806
809
|
return this.ngControl ? !!this.ngControl.disabled : this._disabled;
|
|
807
810
|
}
|
|
@@ -809,6 +812,8 @@ class KbqTagList {
|
|
|
809
812
|
this._disabled = value;
|
|
810
813
|
this.syncDropListDisabledState();
|
|
811
814
|
}
|
|
815
|
+
// TODO: Skipped for migration because:
|
|
816
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
812
817
|
get draggable() {
|
|
813
818
|
return this._draggable && !this.disabled;
|
|
814
819
|
}
|
|
@@ -817,6 +822,8 @@ class KbqTagList {
|
|
|
817
822
|
this.syncDropListDisabledState();
|
|
818
823
|
}
|
|
819
824
|
/** Whether the tags in the list are removable. */
|
|
825
|
+
// TODO: Skipped for migration because:
|
|
826
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
820
827
|
get removable() {
|
|
821
828
|
return this._removable;
|
|
822
829
|
}
|
|
@@ -829,6 +836,8 @@ class KbqTagList {
|
|
|
829
836
|
*
|
|
830
837
|
* @docs-private
|
|
831
838
|
*/
|
|
839
|
+
// TODO: Skipped for migration because:
|
|
840
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
832
841
|
get tabIndex() {
|
|
833
842
|
return this.disabled || this.tagInput ? null : this._tabIndex;
|
|
834
843
|
}
|
|
@@ -836,15 +845,14 @@ class KbqTagList {
|
|
|
836
845
|
this.userTabIndex = value;
|
|
837
846
|
this._tabIndex = value;
|
|
838
847
|
}
|
|
839
|
-
constructor(
|
|
840
|
-
this.elementRef =
|
|
841
|
-
this.changeDetectorRef =
|
|
842
|
-
this.defaultErrorStateMatcher =
|
|
843
|
-
this.dir =
|
|
844
|
-
this.parentForm =
|
|
845
|
-
this.parentFormGroup =
|
|
846
|
-
this.ngControl =
|
|
847
|
-
this.useLegacyValidation = inject(KBQ_VALIDATION, { optional: true })?.useValidation ?? false;
|
|
848
|
+
constructor() {
|
|
849
|
+
this.elementRef = inject(ElementRef);
|
|
850
|
+
this.changeDetectorRef = inject(ChangeDetectorRef);
|
|
851
|
+
this.defaultErrorStateMatcher = inject(ErrorStateMatcher);
|
|
852
|
+
this.dir = inject(Directionality, { optional: true });
|
|
853
|
+
this.parentForm = inject(NgForm, { optional: true });
|
|
854
|
+
this.parentFormGroup = inject(FormGroupDirective, { optional: true });
|
|
855
|
+
this.ngControl = inject(NgControl, { optional: true, self: true });
|
|
848
856
|
this.dropList = inject(CdkDropList, { host: true });
|
|
849
857
|
this.destroyRef = inject(DestroyRef);
|
|
850
858
|
this.focusMonitor = inject(FocusMonitor);
|
|
@@ -860,40 +868,20 @@ class KbqTagList {
|
|
|
860
868
|
* @docs-private
|
|
861
869
|
*/
|
|
862
870
|
this.stateChanges = new Subject();
|
|
863
|
-
/**
|
|
864
|
-
* @deprecated Unused. Will be removed in next major release.
|
|
865
|
-
*
|
|
866
|
-
* @docs-private
|
|
867
|
-
*/
|
|
868
|
-
this.multiple = false;
|
|
869
|
-
/**
|
|
870
|
-
* A function to compare the option values with the selected values. The first argument
|
|
871
|
-
* is a value from an option. The second is a value from the selection. A boolean
|
|
872
|
-
* should be returned.
|
|
873
|
-
*
|
|
874
|
-
* @deprecated Unused. Will be removed in next major release.
|
|
875
|
-
*/
|
|
876
|
-
this.compareWith = (o1, o2) => o1 === o2;
|
|
877
871
|
this._required = false;
|
|
878
872
|
this._disabled = false;
|
|
879
873
|
this._draggable = false;
|
|
880
874
|
/**
|
|
881
875
|
* Emits when the user drops tag inside tag list container.
|
|
882
876
|
*/
|
|
883
|
-
this.dropped =
|
|
877
|
+
this.dropped = output();
|
|
884
878
|
/**
|
|
885
879
|
* Whether or not this tag list is selectable. When a tag list is not selectable,
|
|
886
880
|
* the selected states for all the tags inside the tag list are always ignored.
|
|
887
881
|
*/
|
|
888
|
-
this.selectable = true;
|
|
882
|
+
this.selectable = input(true, ...(ngDevMode ? [{ debugName: "selectable", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
889
883
|
/** Whether the tags in the list are editable. */
|
|
890
|
-
this.editable = false;
|
|
891
|
-
/**
|
|
892
|
-
* Whether to emit change events when tags are added/removed.
|
|
893
|
-
*
|
|
894
|
-
* @deprecated No longer needed. Will be removed in the next major release.
|
|
895
|
-
*/
|
|
896
|
-
this.emitOnTagChanges = true;
|
|
884
|
+
this.editable = input(false, ...(ngDevMode ? [{ debugName: "editable", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
|
|
897
885
|
this._removable = true;
|
|
898
886
|
this._tabIndex = 0;
|
|
899
887
|
/**
|
|
@@ -901,7 +889,7 @@ class KbqTagList {
|
|
|
901
889
|
* to facilitate the two-way binding for the `value` input.
|
|
902
890
|
* @docs-private
|
|
903
891
|
*/
|
|
904
|
-
this.valueChange =
|
|
892
|
+
this.valueChange = output();
|
|
905
893
|
/** @docs-private */
|
|
906
894
|
this.uid = `kbq-tag-list-${nextUniqueId$1++}`;
|
|
907
895
|
/**
|
|
@@ -911,20 +899,10 @@ class KbqTagList {
|
|
|
911
899
|
* @docs-private
|
|
912
900
|
*/
|
|
913
901
|
this.userTabIndex = null;
|
|
914
|
-
/**
|
|
915
|
-
* @docs-private
|
|
916
|
-
*
|
|
917
|
-
* @deprecated Unused. Will be removed in next major release.
|
|
918
|
-
*/
|
|
919
|
-
this.tagChanges = new EventEmitter();
|
|
920
|
-
/**
|
|
921
|
-
* Orientation of the tag list.
|
|
922
|
-
*
|
|
923
|
-
* @deprecated Unused. Will be removed in next major release.
|
|
924
|
-
*/
|
|
925
|
-
this.orientation = 'horizontal';
|
|
926
902
|
/** Event emitted when the selected tag list value has been changed by the user. */
|
|
927
|
-
this.change =
|
|
903
|
+
this.change = output();
|
|
904
|
+
/** @docs-private */
|
|
905
|
+
this.cleaner = contentChild('kbqTagListCleaner', ...(ngDevMode ? [{ debugName: "cleaner" }] : []));
|
|
928
906
|
/**
|
|
929
907
|
* Whether the component is in an error state.
|
|
930
908
|
*
|
|
@@ -1102,7 +1080,7 @@ class KbqTagList {
|
|
|
1102
1080
|
const target = event.target;
|
|
1103
1081
|
if (this.disabled || isNull(target))
|
|
1104
1082
|
return;
|
|
1105
|
-
const shouldSelectAll = this.selectable && isSelectAll(event);
|
|
1083
|
+
const shouldSelectAll = this.selectable() && isSelectAll(event);
|
|
1106
1084
|
if (this.isInputEmpty(target)) {
|
|
1107
1085
|
if (event.keyCode === BACKSPACE ||
|
|
1108
1086
|
event.keyCode === LEFT_ARROW ||
|
|
@@ -1138,12 +1116,6 @@ class KbqTagList {
|
|
|
1138
1116
|
this.stateChanges.next();
|
|
1139
1117
|
}
|
|
1140
1118
|
}
|
|
1141
|
-
/**
|
|
1142
|
-
* @docs-private
|
|
1143
|
-
*
|
|
1144
|
-
* @deprecated Unused. Will be removed in next major release.
|
|
1145
|
-
*/
|
|
1146
|
-
setSelectionByValue(_value, _isUserInput = true) { }
|
|
1147
1119
|
/** When blurred, mark the field as touched when focus moved outside the tag list. */
|
|
1148
1120
|
blur() {
|
|
1149
1121
|
if (!this.hasFocusedTag()) {
|
|
@@ -1158,14 +1130,12 @@ class KbqTagList {
|
|
|
1158
1130
|
setTimeout(() => {
|
|
1159
1131
|
if (!this.focused) {
|
|
1160
1132
|
this.markAsTouched();
|
|
1161
|
-
this.revalidate();
|
|
1162
1133
|
}
|
|
1163
1134
|
});
|
|
1164
1135
|
}
|
|
1165
1136
|
else {
|
|
1166
1137
|
// If there's no tag input, then mark the field as touched.
|
|
1167
1138
|
this.markAsTouched();
|
|
1168
|
-
this.revalidate();
|
|
1169
1139
|
}
|
|
1170
1140
|
}
|
|
1171
1141
|
}
|
|
@@ -1298,14 +1268,6 @@ class KbqTagList {
|
|
|
1298
1268
|
syncTagsRemovableState() {
|
|
1299
1269
|
this.tags?.forEach((tag) => (tag.removable = this.removable));
|
|
1300
1270
|
}
|
|
1301
|
-
/** Revalidate control. */
|
|
1302
|
-
revalidate() {
|
|
1303
|
-
if (this.useLegacyValidation && this.ngControl?.control) {
|
|
1304
|
-
const control = this.ngControl.control;
|
|
1305
|
-
control.updateValueAndValidity({ emitEvent: false });
|
|
1306
|
-
control.statusChanges.emit(control.status);
|
|
1307
|
-
}
|
|
1308
|
-
}
|
|
1309
1271
|
setupDropListInitialProperties() {
|
|
1310
1272
|
this.syncDropListDisabledState();
|
|
1311
1273
|
this.dropList.elementContainerSelector = '.kbq-tags-list__list-container';
|
|
@@ -1327,8 +1289,8 @@ class KbqTagList {
|
|
|
1327
1289
|
this.unselectAll();
|
|
1328
1290
|
});
|
|
1329
1291
|
}
|
|
1330
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1331
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1292
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1293
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: KbqTagList, isStandalone: true, selector: "kbq-tag-list", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: false, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, draggable: { classPropertyName: "draggable", publicName: "draggable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, editable: { classPropertyName: "editable", publicName: "editable", isSignal: true, isRequired: false, transformFunction: null }, removable: { classPropertyName: "removable", publicName: "removable", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, tabIndex: { classPropertyName: "tabIndex", publicName: "tabIndex", isSignal: false, isRequired: false, transformFunction: null }, errorStateMatcher: { classPropertyName: "errorStateMatcher", publicName: "errorStateMatcher", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { dropped: "dropped", valueChange: "valueChange", change: "change" }, host: { listeners: { "focus": "focus()", "blur": "blur()", "keydown": "keydown($event)" }, properties: { "class.kbq-disabled": "disabled", "class.kbq-invalid": "errorState", "class.kbq-tag-list_selectable": "selectable()", "class.kbq-tag-list_editable": "editable()", "class.kbq-tag-list_removable": "removable", "class.kbq-tag-list_draggable": "draggable", "attr.tabindex": "tabIndex", "id": "uid" }, classAttribute: "kbq-tag-list" }, providers: [{ provide: KbqFormFieldControl, useExisting: KbqTagList }], queries: [{ propertyName: "cleaner", first: true, predicate: ["kbqTagListCleaner"], descendants: true, isSignal: true }, { propertyName: "tags", predicate: i0.forwardRef(() => KbqTag), descendants: true }], exportAs: ["kbqTagList"], hostDirectives: [{ directive: i2.CdkDropList }], ngImport: i0, template: `
|
|
1332
1294
|
<div class="kbq-tags-list__list-container">
|
|
1333
1295
|
<ng-content />
|
|
1334
1296
|
</div>
|
|
@@ -1340,9 +1302,9 @@ class KbqTagList {
|
|
|
1340
1302
|
}
|
|
1341
1303
|
`, isInline: true, styles: [".kbq-tag-list{display:flex;flex-direction:row;min-height:var(--kbq-size-xxl);box-sizing:border-box}.kbq-tag-list:focus-visible{outline:none}.kbq-tag-list.cdk-drop-list-dragging .cdk-drag{transition:transform .25s cubic-bezier(0,0,.2,1)}.kbq-tag-input{background:transparent;padding:0;margin:0;border:none;outline:none}.kbq-tag-input::-ms-clear{display:none;width:0;height:0}.kbq-tag-input::-ms-reveal{display:none;width:0;height:0}.kbq-tag-input::-webkit-search-decoration,.kbq-tag-input::-webkit-search-cancel-button,.kbq-tag-input::-webkit-search-results-button,.kbq-tag-input::-webkit-search-results-decoration{display:none}.kbq-tag-input{padding-top:var(--kbq-tag-size-padding-vertical);padding-bottom:var(--kbq-tag-size-padding-vertical);padding-left:var(--kbq-size-xxs);padding-right:unset;min-width:var(--kbq-size-3xl);max-width:100%;flex-grow:1}.kbq-tag-input.kbq-input{--kbq-input-size-padding-vertical: 0;--kbq-form-field-size-border-radius: 0;padding-left:var(--kbq-size-xxs);min-height:unset!important;width:auto}.kbq-tags-list__list-container{display:flex;flex-wrap:wrap;flex:1 1 100%;box-sizing:border-box;min-width:0;gap:var(--kbq-tag-list-size-content-gap)}.kbq-tags-list__list-container .kbq-tag-input:first-child{padding-left:var(--kbq-size-s)}.kbq-tags-list__cleaner .kbq-cleaner{max-height:24px}.kbq-form-field-type-tag-list .kbq-form-field__container{padding-top:calc(var(--kbq-tag-input-size-padding-vertical) - var(--kbq-form-field-size-border-width));padding-bottom:calc(var(--kbq-tag-input-size-padding-vertical) - var(--kbq-form-field-size-border-width))}body:has(.kbq-tag-list.cdk-drop-list-dragging){cursor:grabbing}\n", ".kbq-tag,.kbq-tag-list,.kbq-tag-input{--kbq-tag-list-size-content-gap: var(--kbq-size-xxs);--kbq-tag-size-padding-horizontal: var(--kbq-size-xxs);--kbq-tag-size-padding-vertical: var(--kbq-size-3xs);--kbq-tag-size-content-gap-horizontal: var(--kbq-size-3xs);--kbq-tag-size-icon-margin-left: var(--kbq-size-3xs);--kbq-tag-size-close-button-margin-right: var(--kbq-size-3xs);--kbq-tag-theme-fade-on-default-background: var(--kbq-background-theme-fade);--kbq-tag-theme-fade-on-default-text: var(--kbq-foreground-theme);--kbq-tag-theme-fade-on-default-icon: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-default-close-button: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-states-hover-background: var(--kbq-states-background-theme-fade-hover);--kbq-tag-theme-fade-on-states-hover-text: var(--kbq-foreground-theme);--kbq-tag-theme-fade-on-states-hover-icon: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-states-hover-close-button: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-states-focus-background: var(--kbq-background-theme-fade);--kbq-tag-theme-fade-on-states-focus-text: var(--kbq-foreground-theme);--kbq-tag-theme-fade-on-states-focus-icon: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-states-focus-close-button: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-states-focus-outline: var(--kbq-states-line-focus-theme);--kbq-tag-theme-fade-on-states-selected-background: var(--kbq-background-theme);--kbq-tag-theme-fade-on-states-selected-text: var(--kbq-foreground-white);--kbq-tag-theme-fade-on-states-selected-icon: var(--kbq-icon-white);--kbq-tag-theme-fade-on-states-selected-close-button: var(--kbq-icon-white);--kbq-tag-theme-fade-on-states-disabled-background: var(--kbq-states-background-disabled);--kbq-tag-theme-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-tag-theme-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);--kbq-tag-theme-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);--kbq-tag-contrast-fade-on-default-background: var(--kbq-background-contrast-fade);--kbq-tag-contrast-fade-on-default-text: var(--kbq-foreground-contrast);--kbq-tag-contrast-fade-on-default-icon: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-default-close-button: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-states-hover-background: var(--kbq-states-background-contrast-fade-hover);--kbq-tag-contrast-fade-on-states-hover-text: var(--kbq-foreground-contrast);--kbq-tag-contrast-fade-on-states-hover-icon: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-states-hover-close-button: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-states-focus-background: var(--kbq-background-contrast-fade);--kbq-tag-contrast-fade-on-states-focus-text: var(--kbq-foreground-contrast);--kbq-tag-contrast-fade-on-states-focus-icon: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-states-focus-close-button: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-states-focus-outline: var(--kbq-states-line-focus-theme);--kbq-tag-contrast-fade-on-states-selected-background: var(--kbq-background-theme);--kbq-tag-contrast-fade-on-states-selected-text: var(--kbq-foreground-white);--kbq-tag-contrast-fade-on-states-selected-icon: var(--kbq-icon-white);--kbq-tag-contrast-fade-on-states-selected-close-button: var(--kbq-icon-white);--kbq-tag-contrast-fade-on-states-disabled-background: var(--kbq-states-background-disabled);--kbq-tag-contrast-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-tag-contrast-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);--kbq-tag-contrast-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);--kbq-tag-error-fade-on-default-background: var(--kbq-background-error-fade);--kbq-tag-error-fade-on-default-text: var(--kbq-foreground-error);--kbq-tag-error-fade-on-default-icon: var(--kbq-icon-error);--kbq-tag-error-fade-on-default-close-button: var(--kbq-icon-error);--kbq-tag-error-fade-on-states-hover-background: var(--kbq-states-background-error-fade-hover);--kbq-tag-error-fade-on-states-hover-text: var(--kbq-foreground-error);--kbq-tag-error-fade-on-states-hover-icon: var(--kbq-icon-error);--kbq-tag-error-fade-on-states-hover-close-button: var(--kbq-icon-error);--kbq-tag-error-fade-on-states-focus-background: var(--kbq-background-error-fade);--kbq-tag-error-fade-on-states-focus-text: var(--kbq-foreground-error);--kbq-tag-error-fade-on-states-focus-icon: var(--kbq-icon-error);--kbq-tag-error-fade-on-states-focus-close-button: var(--kbq-icon-error);--kbq-tag-error-fade-on-states-focus-outline: var(--kbq-states-line-focus-error);--kbq-tag-error-fade-on-states-selected-background: var(--kbq-background-error);--kbq-tag-error-fade-on-states-selected-text: var(--kbq-foreground-white);--kbq-tag-error-fade-on-states-selected-icon: var(--kbq-icon-white);--kbq-tag-error-fade-on-states-selected-close-button: var(--kbq-icon-white);--kbq-tag-error-fade-on-states-disabled-background: var(--kbq-states-background-disabled);--kbq-tag-error-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-tag-error-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);--kbq-tag-error-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);--kbq-tag-warning-fade-default-background: var(--kbq-background-warning-fade);--kbq-tag-warning-fade-default-text: var(--kbq-foreground-warning);--kbq-tag-warning-fade-default-icon: var(--kbq-icon-warning);--kbq-tag-warning-fade-default-close-button: var(--kbq-icon-warning);--kbq-tag-warning-fade-states-hover-background: var(--kbq-states-background-warning-fade-hover);--kbq-tag-warning-fade-states-hover-text: var(--kbq-foreground-warning);--kbq-tag-warning-fade-states-hover-icon: var(--kbq-icon-warning);--kbq-tag-warning-fade-states-hover-close-button: var(--kbq-icon-warning);--kbq-tag-warning-fade-states-focus-background: var(--kbq-background-warning-fade);--kbq-tag-warning-fade-states-focus-text: var(--kbq-foreground-warning);--kbq-tag-warning-fade-states-focus-icon: var(--kbq-icon-warning);--kbq-tag-warning-fade-states-focus-close-button: var(--kbq-icon-warning);--kbq-tag-warning-fade-states-focus-outline: var(--kbq-states-line-focus-theme);--kbq-tag-warning-fade-states-selected-background: var(--kbq-background-warning);--kbq-tag-warning-fade-states-selected-text: var(--kbq-foreground-contrast);--kbq-tag-warning-fade-states-selected-icon: var(--kbq-icon-contrast);--kbq-tag-warning-fade-states-selected-close-button: var(--kbq-icon-contrast);--kbq-tag-warning-fade-states-disabled-background: var(--kbq-states-background-disabled);--kbq-tag-warning-fade-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-tag-warning-fade-states-disabled-icon: var(--kbq-states-icon-disabled);--kbq-tag-warning-fade-states-disabled-close-button: var(--kbq-states-icon-disabled)}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1342
1304
|
}
|
|
1343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagList, decorators: [{
|
|
1344
1306
|
type: Component,
|
|
1345
|
-
args: [{ selector: 'kbq-tag-list',
|
|
1307
|
+
args: [{ selector: 'kbq-tag-list', template: `
|
|
1346
1308
|
<div class="kbq-tags-list__list-container">
|
|
1347
1309
|
<ng-content />
|
|
1348
1310
|
</div>
|
|
@@ -1352,12 +1314,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1352
1314
|
<ng-content select="kbq-cleaner" />
|
|
1353
1315
|
</div>
|
|
1354
1316
|
}
|
|
1355
|
-
`, host: {
|
|
1317
|
+
`, providers: [{ provide: KbqFormFieldControl, useExisting: KbqTagList }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
1356
1318
|
class: 'kbq-tag-list',
|
|
1357
1319
|
'[class.kbq-disabled]': 'disabled',
|
|
1358
1320
|
'[class.kbq-invalid]': 'errorState',
|
|
1359
|
-
'[class.kbq-tag-list_selectable]': 'selectable',
|
|
1360
|
-
'[class.kbq-tag-list_editable]': 'editable',
|
|
1321
|
+
'[class.kbq-tag-list_selectable]': 'selectable()',
|
|
1322
|
+
'[class.kbq-tag-list_editable]': 'editable()',
|
|
1361
1323
|
'[class.kbq-tag-list_removable]': 'removable',
|
|
1362
1324
|
'[class.kbq-tag-list_draggable]': 'draggable',
|
|
1363
1325
|
'[attr.tabindex]': 'tabIndex',
|
|
@@ -1365,23 +1327,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1365
1327
|
'(focus)': 'focus()',
|
|
1366
1328
|
'(blur)': 'blur()',
|
|
1367
1329
|
'(keydown)': 'keydown($event)'
|
|
1368
|
-
},
|
|
1369
|
-
}], ctorParameters: () => [
|
|
1370
|
-
type: Optional
|
|
1371
|
-
}] }, { type: i3.NgForm, decorators: [{
|
|
1372
|
-
type: Optional
|
|
1373
|
-
}] }, { type: i3.FormGroupDirective, decorators: [{
|
|
1374
|
-
type: Optional
|
|
1375
|
-
}] }, { type: i3.NgControl, decorators: [{
|
|
1376
|
-
type: Optional
|
|
1377
|
-
}, {
|
|
1378
|
-
type: Self
|
|
1379
|
-
}] }], propDecorators: { multiple: [{
|
|
1380
|
-
type: Input,
|
|
1381
|
-
args: [{ transform: booleanAttribute }]
|
|
1382
|
-
}], compareWith: [{
|
|
1383
|
-
type: Input
|
|
1384
|
-
}], value: [{
|
|
1330
|
+
}, hostDirectives: [CdkDropList], exportAs: 'kbqTagList', styles: [".kbq-tag-list{display:flex;flex-direction:row;min-height:var(--kbq-size-xxl);box-sizing:border-box}.kbq-tag-list:focus-visible{outline:none}.kbq-tag-list.cdk-drop-list-dragging .cdk-drag{transition:transform .25s cubic-bezier(0,0,.2,1)}.kbq-tag-input{background:transparent;padding:0;margin:0;border:none;outline:none}.kbq-tag-input::-ms-clear{display:none;width:0;height:0}.kbq-tag-input::-ms-reveal{display:none;width:0;height:0}.kbq-tag-input::-webkit-search-decoration,.kbq-tag-input::-webkit-search-cancel-button,.kbq-tag-input::-webkit-search-results-button,.kbq-tag-input::-webkit-search-results-decoration{display:none}.kbq-tag-input{padding-top:var(--kbq-tag-size-padding-vertical);padding-bottom:var(--kbq-tag-size-padding-vertical);padding-left:var(--kbq-size-xxs);padding-right:unset;min-width:var(--kbq-size-3xl);max-width:100%;flex-grow:1}.kbq-tag-input.kbq-input{--kbq-input-size-padding-vertical: 0;--kbq-form-field-size-border-radius: 0;padding-left:var(--kbq-size-xxs);min-height:unset!important;width:auto}.kbq-tags-list__list-container{display:flex;flex-wrap:wrap;flex:1 1 100%;box-sizing:border-box;min-width:0;gap:var(--kbq-tag-list-size-content-gap)}.kbq-tags-list__list-container .kbq-tag-input:first-child{padding-left:var(--kbq-size-s)}.kbq-tags-list__cleaner .kbq-cleaner{max-height:24px}.kbq-form-field-type-tag-list .kbq-form-field__container{padding-top:calc(var(--kbq-tag-input-size-padding-vertical) - var(--kbq-form-field-size-border-width));padding-bottom:calc(var(--kbq-tag-input-size-padding-vertical) - var(--kbq-form-field-size-border-width))}body:has(.kbq-tag-list.cdk-drop-list-dragging){cursor:grabbing}\n", ".kbq-tag,.kbq-tag-list,.kbq-tag-input{--kbq-tag-list-size-content-gap: var(--kbq-size-xxs);--kbq-tag-size-padding-horizontal: var(--kbq-size-xxs);--kbq-tag-size-padding-vertical: var(--kbq-size-3xs);--kbq-tag-size-content-gap-horizontal: var(--kbq-size-3xs);--kbq-tag-size-icon-margin-left: var(--kbq-size-3xs);--kbq-tag-size-close-button-margin-right: var(--kbq-size-3xs);--kbq-tag-theme-fade-on-default-background: var(--kbq-background-theme-fade);--kbq-tag-theme-fade-on-default-text: var(--kbq-foreground-theme);--kbq-tag-theme-fade-on-default-icon: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-default-close-button: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-states-hover-background: var(--kbq-states-background-theme-fade-hover);--kbq-tag-theme-fade-on-states-hover-text: var(--kbq-foreground-theme);--kbq-tag-theme-fade-on-states-hover-icon: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-states-hover-close-button: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-states-focus-background: var(--kbq-background-theme-fade);--kbq-tag-theme-fade-on-states-focus-text: var(--kbq-foreground-theme);--kbq-tag-theme-fade-on-states-focus-icon: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-states-focus-close-button: var(--kbq-icon-theme);--kbq-tag-theme-fade-on-states-focus-outline: var(--kbq-states-line-focus-theme);--kbq-tag-theme-fade-on-states-selected-background: var(--kbq-background-theme);--kbq-tag-theme-fade-on-states-selected-text: var(--kbq-foreground-white);--kbq-tag-theme-fade-on-states-selected-icon: var(--kbq-icon-white);--kbq-tag-theme-fade-on-states-selected-close-button: var(--kbq-icon-white);--kbq-tag-theme-fade-on-states-disabled-background: var(--kbq-states-background-disabled);--kbq-tag-theme-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-tag-theme-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);--kbq-tag-theme-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);--kbq-tag-contrast-fade-on-default-background: var(--kbq-background-contrast-fade);--kbq-tag-contrast-fade-on-default-text: var(--kbq-foreground-contrast);--kbq-tag-contrast-fade-on-default-icon: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-default-close-button: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-states-hover-background: var(--kbq-states-background-contrast-fade-hover);--kbq-tag-contrast-fade-on-states-hover-text: var(--kbq-foreground-contrast);--kbq-tag-contrast-fade-on-states-hover-icon: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-states-hover-close-button: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-states-focus-background: var(--kbq-background-contrast-fade);--kbq-tag-contrast-fade-on-states-focus-text: var(--kbq-foreground-contrast);--kbq-tag-contrast-fade-on-states-focus-icon: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-states-focus-close-button: var(--kbq-icon-contrast-fade);--kbq-tag-contrast-fade-on-states-focus-outline: var(--kbq-states-line-focus-theme);--kbq-tag-contrast-fade-on-states-selected-background: var(--kbq-background-theme);--kbq-tag-contrast-fade-on-states-selected-text: var(--kbq-foreground-white);--kbq-tag-contrast-fade-on-states-selected-icon: var(--kbq-icon-white);--kbq-tag-contrast-fade-on-states-selected-close-button: var(--kbq-icon-white);--kbq-tag-contrast-fade-on-states-disabled-background: var(--kbq-states-background-disabled);--kbq-tag-contrast-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-tag-contrast-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);--kbq-tag-contrast-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);--kbq-tag-error-fade-on-default-background: var(--kbq-background-error-fade);--kbq-tag-error-fade-on-default-text: var(--kbq-foreground-error);--kbq-tag-error-fade-on-default-icon: var(--kbq-icon-error);--kbq-tag-error-fade-on-default-close-button: var(--kbq-icon-error);--kbq-tag-error-fade-on-states-hover-background: var(--kbq-states-background-error-fade-hover);--kbq-tag-error-fade-on-states-hover-text: var(--kbq-foreground-error);--kbq-tag-error-fade-on-states-hover-icon: var(--kbq-icon-error);--kbq-tag-error-fade-on-states-hover-close-button: var(--kbq-icon-error);--kbq-tag-error-fade-on-states-focus-background: var(--kbq-background-error-fade);--kbq-tag-error-fade-on-states-focus-text: var(--kbq-foreground-error);--kbq-tag-error-fade-on-states-focus-icon: var(--kbq-icon-error);--kbq-tag-error-fade-on-states-focus-close-button: var(--kbq-icon-error);--kbq-tag-error-fade-on-states-focus-outline: var(--kbq-states-line-focus-error);--kbq-tag-error-fade-on-states-selected-background: var(--kbq-background-error);--kbq-tag-error-fade-on-states-selected-text: var(--kbq-foreground-white);--kbq-tag-error-fade-on-states-selected-icon: var(--kbq-icon-white);--kbq-tag-error-fade-on-states-selected-close-button: var(--kbq-icon-white);--kbq-tag-error-fade-on-states-disabled-background: var(--kbq-states-background-disabled);--kbq-tag-error-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-tag-error-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);--kbq-tag-error-fade-on-states-disabled-close-button: var(--kbq-states-icon-disabled);--kbq-tag-warning-fade-default-background: var(--kbq-background-warning-fade);--kbq-tag-warning-fade-default-text: var(--kbq-foreground-warning);--kbq-tag-warning-fade-default-icon: var(--kbq-icon-warning);--kbq-tag-warning-fade-default-close-button: var(--kbq-icon-warning);--kbq-tag-warning-fade-states-hover-background: var(--kbq-states-background-warning-fade-hover);--kbq-tag-warning-fade-states-hover-text: var(--kbq-foreground-warning);--kbq-tag-warning-fade-states-hover-icon: var(--kbq-icon-warning);--kbq-tag-warning-fade-states-hover-close-button: var(--kbq-icon-warning);--kbq-tag-warning-fade-states-focus-background: var(--kbq-background-warning-fade);--kbq-tag-warning-fade-states-focus-text: var(--kbq-foreground-warning);--kbq-tag-warning-fade-states-focus-icon: var(--kbq-icon-warning);--kbq-tag-warning-fade-states-focus-close-button: var(--kbq-icon-warning);--kbq-tag-warning-fade-states-focus-outline: var(--kbq-states-line-focus-theme);--kbq-tag-warning-fade-states-selected-background: var(--kbq-background-warning);--kbq-tag-warning-fade-states-selected-text: var(--kbq-foreground-contrast);--kbq-tag-warning-fade-states-selected-icon: var(--kbq-icon-contrast);--kbq-tag-warning-fade-states-selected-close-button: var(--kbq-icon-contrast);--kbq-tag-warning-fade-states-disabled-background: var(--kbq-states-background-disabled);--kbq-tag-warning-fade-states-disabled-text: var(--kbq-states-foreground-disabled);--kbq-tag-warning-fade-states-disabled-icon: var(--kbq-states-icon-disabled);--kbq-tag-warning-fade-states-disabled-close-button: var(--kbq-states-icon-disabled)}\n"] }]
|
|
1331
|
+
}], ctorParameters: () => [], propDecorators: { value: [{
|
|
1385
1332
|
type: Input
|
|
1386
1333
|
}], required: [{
|
|
1387
1334
|
type: Input
|
|
@@ -1393,34 +1340,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1393
1340
|
}], draggable: [{
|
|
1394
1341
|
type: Input,
|
|
1395
1342
|
args: [{ transform: booleanAttribute }]
|
|
1396
|
-
}], dropped: [{
|
|
1397
|
-
type: Output
|
|
1398
|
-
}], selectable: [{
|
|
1399
|
-
type: Input,
|
|
1400
|
-
args: [{ transform: booleanAttribute }]
|
|
1401
|
-
}], editable: [{
|
|
1402
|
-
type: Input,
|
|
1403
|
-
args: [{ transform: booleanAttribute }]
|
|
1404
|
-
}], emitOnTagChanges: [{
|
|
1405
|
-
type: Input,
|
|
1406
|
-
args: [{ transform: booleanAttribute }]
|
|
1407
|
-
}], removable: [{
|
|
1343
|
+
}], dropped: [{ type: i0.Output, args: ["dropped"] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], editable: [{ type: i0.Input, args: [{ isSignal: true, alias: "editable", required: false }] }], removable: [{
|
|
1408
1344
|
type: Input,
|
|
1409
1345
|
args: [{ transform: booleanAttribute }]
|
|
1410
1346
|
}], tabIndex: [{
|
|
1411
1347
|
type: Input
|
|
1412
|
-
}], valueChange: [{
|
|
1413
|
-
type: Output
|
|
1414
|
-
}], errorStateMatcher: [{
|
|
1415
|
-
type: Input
|
|
1416
|
-
}], orientation: [{
|
|
1348
|
+
}], valueChange: [{ type: i0.Output, args: ["valueChange"] }], errorStateMatcher: [{
|
|
1417
1349
|
type: Input
|
|
1418
|
-
}], change: [{
|
|
1419
|
-
type: Output
|
|
1420
|
-
}], cleaner: [{
|
|
1421
|
-
type: ContentChild,
|
|
1422
|
-
args: ['kbqTagListCleaner', { static: true }]
|
|
1423
|
-
}], tags: [{
|
|
1350
|
+
}], change: [{ type: i0.Output, args: ["change"] }], cleaner: [{ type: i0.ContentChild, args: ['kbqTagListCleaner', { isSignal: true }] }], tags: [{
|
|
1424
1351
|
type: ContentChildren,
|
|
1425
1352
|
args: [forwardRef(() => KbqTag), {
|
|
1426
1353
|
// Need to use `descendants: true`,
|
|
@@ -1448,6 +1375,8 @@ class KbqTagInput {
|
|
|
1448
1375
|
*
|
|
1449
1376
|
* Defaults to `[ENTER]`.
|
|
1450
1377
|
*/
|
|
1378
|
+
// TODO: Skipped for migration because:
|
|
1379
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
1451
1380
|
set separatorKeyCodes(value) {
|
|
1452
1381
|
this._separatorKeyCodes = value || [];
|
|
1453
1382
|
}
|
|
@@ -1459,6 +1388,8 @@ class KbqTagInput {
|
|
|
1459
1388
|
}, []);
|
|
1460
1389
|
}
|
|
1461
1390
|
/** Register input for tag list */
|
|
1391
|
+
// TODO: Skipped for migration because:
|
|
1392
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
1462
1393
|
set tagList(value) {
|
|
1463
1394
|
if (value) {
|
|
1464
1395
|
this._tagList = value;
|
|
@@ -1468,6 +1399,8 @@ class KbqTagInput {
|
|
|
1468
1399
|
/**
|
|
1469
1400
|
* Whether or not the tagEnd event will be emitted when the input is blurred.
|
|
1470
1401
|
*/
|
|
1402
|
+
// TODO: Skipped for migration because:
|
|
1403
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
1471
1404
|
get addOnBlur() {
|
|
1472
1405
|
return this._addOnBlur;
|
|
1473
1406
|
}
|
|
@@ -1475,6 +1408,8 @@ class KbqTagInput {
|
|
|
1475
1408
|
this._addOnBlur = coerceBooleanProperty(value);
|
|
1476
1409
|
}
|
|
1477
1410
|
/** Whether the input is disabled. */
|
|
1411
|
+
// TODO: Skipped for migration because:
|
|
1412
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
1478
1413
|
get disabled() {
|
|
1479
1414
|
return this._disabled || (this._tagList && this._tagList.disabled);
|
|
1480
1415
|
}
|
|
@@ -1485,37 +1420,41 @@ class KbqTagInput {
|
|
|
1485
1420
|
get empty() {
|
|
1486
1421
|
return !this.inputElement.value;
|
|
1487
1422
|
}
|
|
1488
|
-
constructor(
|
|
1489
|
-
this.elementRef =
|
|
1490
|
-
this.defaultOptions =
|
|
1491
|
-
this.trimDirective =
|
|
1492
|
-
this.ngControl =
|
|
1493
|
-
this.autocompleteTrigger =
|
|
1423
|
+
constructor() {
|
|
1424
|
+
this.elementRef = inject(ElementRef);
|
|
1425
|
+
this.defaultOptions = inject(KBQ_TAGS_DEFAULT_OPTIONS);
|
|
1426
|
+
this.trimDirective = inject(KbqTrim, { optional: true, self: true });
|
|
1427
|
+
this.ngControl = inject(NgControl, { optional: true, self: true });
|
|
1428
|
+
this.autocompleteTrigger = inject(KbqAutocompleteTrigger, { optional: true, self: true });
|
|
1494
1429
|
/** Whether the control is focused. */
|
|
1495
1430
|
this.focused = false;
|
|
1496
1431
|
this._separatorKeyCodes = this.defaultOptions.separatorKeyCodes;
|
|
1497
1432
|
this._separators = this.defaultOptions.separators || KBQ_TAG_INPUT_DEFAULT_SEPARATORS;
|
|
1498
1433
|
/** Emitted when a tag is to be added. */
|
|
1499
|
-
this.tagEnd =
|
|
1434
|
+
this.tagEnd = output({ alias: 'kbqTagInputTokenEnd' });
|
|
1500
1435
|
/** A value indicating whether allow/prevent tags duplication */
|
|
1501
|
-
this.distinct = false;
|
|
1436
|
+
this.distinct = input(false, ...(ngDevMode ? [{ debugName: "distinct" }] : []));
|
|
1502
1437
|
/** The input's placeholder text. */
|
|
1438
|
+
// TODO: Skipped for migration because:
|
|
1439
|
+
// This input overrides a field from a superclass, while the superclass field
|
|
1440
|
+
// is not migrated.
|
|
1503
1441
|
this.placeholder = '';
|
|
1504
1442
|
/** Unique id for the input. */
|
|
1443
|
+
// TODO: Skipped for migration because:
|
|
1444
|
+
// This input overrides a field from a superclass, while the superclass field
|
|
1445
|
+
// is not migrated.
|
|
1505
1446
|
this.id = `kbq-tag-list-input-${nextUniqueId++}`;
|
|
1506
1447
|
this._addOnBlur = true;
|
|
1507
1448
|
/**
|
|
1508
1449
|
* Whether the tagEnd event will be emitted when the text pasted.
|
|
1509
1450
|
* @default true
|
|
1510
1451
|
*/
|
|
1511
|
-
this.addOnPaste = this.defaultOptions.addOnPaste ?? true
|
|
1452
|
+
this.addOnPaste = input(this.defaultOptions.addOnPaste ?? true, ...(ngDevMode ? [{ debugName: "addOnPaste", alias: 'kbqTagInputAddOnPaste',
|
|
1453
|
+
transform: booleanAttribute }] : [{
|
|
1454
|
+
alias: 'kbqTagInputAddOnPaste',
|
|
1455
|
+
transform: booleanAttribute
|
|
1456
|
+
}]));
|
|
1512
1457
|
this._disabled = false;
|
|
1513
|
-
/**
|
|
1514
|
-
* @docs-private
|
|
1515
|
-
*
|
|
1516
|
-
* @deprecated Unused. Will be removed in next major release.
|
|
1517
|
-
*/
|
|
1518
|
-
this.countOfSymbolsForUpdateWidth = 3;
|
|
1519
1458
|
this.inputElement = this.elementRef.nativeElement;
|
|
1520
1459
|
}
|
|
1521
1460
|
ngOnChanges() {
|
|
@@ -1545,7 +1484,7 @@ class KbqTagInput {
|
|
|
1545
1484
|
this.triggerValidation();
|
|
1546
1485
|
this._tagList.blur();
|
|
1547
1486
|
}
|
|
1548
|
-
if (this.addOnBlur && (this.autocompleteTrigger?.onInputBlur(event) || true)) {
|
|
1487
|
+
if (this.addOnBlur && (this.autocompleteTrigger?.onInputBlur()(event) || true)) {
|
|
1549
1488
|
this.emitTagEnd();
|
|
1550
1489
|
}
|
|
1551
1490
|
this._tagList.stateChanges.next();
|
|
@@ -1559,7 +1498,7 @@ class KbqTagInput {
|
|
|
1559
1498
|
/** Checks to see if the (tagEnd) event needs to be emitted. */
|
|
1560
1499
|
emitTagEnd() {
|
|
1561
1500
|
if (!this.hasControl() || (this.hasControl() && !this.ngControl.invalid)) {
|
|
1562
|
-
if (this.distinct && this.hasDuplicates)
|
|
1501
|
+
if (this.distinct() && this.hasDuplicates)
|
|
1563
1502
|
return;
|
|
1564
1503
|
this._tagList?.notifyPendingTagChange();
|
|
1565
1504
|
this.tagEnd.emit({ input: this.inputElement, value: this.trimValue(this.inputElement.value) });
|
|
@@ -1579,7 +1518,7 @@ class KbqTagInput {
|
|
|
1579
1518
|
return;
|
|
1580
1519
|
}
|
|
1581
1520
|
const data = $event.clipboardData.getData('text');
|
|
1582
|
-
if ((data && data.length === 0) || !this.addOnPaste) {
|
|
1521
|
+
if ((data && data.length === 0) || !this.addOnPaste()) {
|
|
1583
1522
|
return;
|
|
1584
1523
|
}
|
|
1585
1524
|
const separatorsInString = this.getSeparatorsForString(data);
|
|
@@ -1591,7 +1530,7 @@ class KbqTagInput {
|
|
|
1591
1530
|
if (items.length === 0) {
|
|
1592
1531
|
items.push(data);
|
|
1593
1532
|
}
|
|
1594
|
-
if (this.distinct) {
|
|
1533
|
+
if (this.distinct()) {
|
|
1595
1534
|
const tagValues = this._tagList.tags.map(({ value }) => value);
|
|
1596
1535
|
items = items.filter((item) => !tagValues.includes(item));
|
|
1597
1536
|
}
|
|
@@ -1602,12 +1541,6 @@ class KbqTagInput {
|
|
|
1602
1541
|
$event.preventDefault();
|
|
1603
1542
|
$event.stopPropagation();
|
|
1604
1543
|
}
|
|
1605
|
-
/**
|
|
1606
|
-
* @docs-private
|
|
1607
|
-
*
|
|
1608
|
-
* @deprecated Unused. Will be removed in next major release.
|
|
1609
|
-
*/
|
|
1610
|
-
updateInputWidth() { }
|
|
1611
1544
|
/** @docs-private */
|
|
1612
1545
|
onFocus() {
|
|
1613
1546
|
this.focused = true;
|
|
@@ -1640,14 +1573,13 @@ class KbqTagInput {
|
|
|
1640
1573
|
isSeparatorKey(event) {
|
|
1641
1574
|
return this.separators.some((separator) => separator.key === event.key && !hasModifierKey(event));
|
|
1642
1575
|
}
|
|
1643
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1644
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1576
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagInput, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1577
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "20.3.25", type: KbqTagInput, isStandalone: true, selector: "input[kbqTagInputFor]", inputs: { separatorKeyCodes: { classPropertyName: "separatorKeyCodes", publicName: "kbqTagInputSeparatorKeyCodes", isSignal: false, isRequired: false, transformFunction: null }, distinct: { classPropertyName: "distinct", publicName: "distinct", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, id: { classPropertyName: "id", publicName: "id", isSignal: false, isRequired: false, transformFunction: null }, tagList: { classPropertyName: "tagList", publicName: "kbqTagInputFor", isSignal: false, isRequired: false, transformFunction: null }, addOnBlur: { classPropertyName: "addOnBlur", publicName: "kbqTagInputAddOnBlur", isSignal: false, isRequired: false, transformFunction: null }, addOnPaste: { classPropertyName: "addOnPaste", publicName: "kbqTagInputAddOnPaste", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: false, isRequired: false, transformFunction: null } }, outputs: { tagEnd: "kbqTagInputTokenEnd" }, host: { listeners: { "keydown": "onKeydown($event)", "blur": "blur($event)", "focus": "onFocus()", "input": "onInput()", "paste": "onPaste($event)" }, properties: { "id": "id", "attr.disabled": "disabled || null", "attr.placeholder": "placeholder || null" }, classAttribute: "kbq-tag-input" }, exportAs: ["kbqTagInput", "kbqTagInputFor"], usesOnChanges: true, hostDirectives: [{ directive: i1.KbqFieldSizingContent }], ngImport: i0 }); }
|
|
1645
1578
|
}
|
|
1646
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1579
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagInput, decorators: [{
|
|
1647
1580
|
type: Directive,
|
|
1648
1581
|
args: [{
|
|
1649
1582
|
selector: 'input[kbqTagInputFor]',
|
|
1650
|
-
exportAs: 'kbqTagInput, kbqTagInputFor',
|
|
1651
1583
|
host: {
|
|
1652
1584
|
class: 'kbq-tag-input',
|
|
1653
1585
|
'[id]': 'id',
|
|
@@ -1659,32 +1591,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1659
1591
|
'(input)': 'onInput()',
|
|
1660
1592
|
'(paste)': 'onPaste($event)'
|
|
1661
1593
|
},
|
|
1662
|
-
hostDirectives: [KbqFieldSizingContent]
|
|
1594
|
+
hostDirectives: [KbqFieldSizingContent],
|
|
1595
|
+
exportAs: 'kbqTagInput, kbqTagInputFor'
|
|
1663
1596
|
}]
|
|
1664
|
-
}], ctorParameters: () => [
|
|
1665
|
-
type: Inject,
|
|
1666
|
-
args: [KBQ_TAGS_DEFAULT_OPTIONS]
|
|
1667
|
-
}] }, { type: i1$1.KbqTrim, decorators: [{
|
|
1668
|
-
type: Optional
|
|
1669
|
-
}, {
|
|
1670
|
-
type: Self
|
|
1671
|
-
}] }, { type: i3.NgControl, decorators: [{
|
|
1672
|
-
type: Optional
|
|
1673
|
-
}, {
|
|
1674
|
-
type: Self
|
|
1675
|
-
}] }, { type: i3$1.KbqAutocompleteTrigger, decorators: [{
|
|
1676
|
-
type: Optional
|
|
1677
|
-
}, {
|
|
1678
|
-
type: Self
|
|
1679
|
-
}] }], propDecorators: { separatorKeyCodes: [{
|
|
1597
|
+
}], ctorParameters: () => [], propDecorators: { separatorKeyCodes: [{
|
|
1680
1598
|
type: Input,
|
|
1681
1599
|
args: ['kbqTagInputSeparatorKeyCodes']
|
|
1682
|
-
}], tagEnd: [{
|
|
1683
|
-
type: Output,
|
|
1684
|
-
args: ['kbqTagInputTokenEnd']
|
|
1685
|
-
}], distinct: [{
|
|
1686
|
-
type: Input
|
|
1687
|
-
}], placeholder: [{
|
|
1600
|
+
}], tagEnd: [{ type: i0.Output, args: ["kbqTagInputTokenEnd"] }], distinct: [{ type: i0.Input, args: [{ isSignal: true, alias: "distinct", required: false }] }], placeholder: [{
|
|
1688
1601
|
type: Input
|
|
1689
1602
|
}], id: [{
|
|
1690
1603
|
type: Input
|
|
@@ -1694,10 +1607,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1694
1607
|
}], addOnBlur: [{
|
|
1695
1608
|
type: Input,
|
|
1696
1609
|
args: ['kbqTagInputAddOnBlur']
|
|
1697
|
-
}], addOnPaste: [{
|
|
1698
|
-
type: Input,
|
|
1699
|
-
args: [{ alias: 'kbqTagInputAddOnPaste', transform: booleanAttribute }]
|
|
1700
|
-
}], disabled: [{
|
|
1610
|
+
}], addOnPaste: [{ type: i0.Input, args: [{ isSignal: true, alias: "kbqTagInputAddOnPaste", required: false }] }], disabled: [{
|
|
1701
1611
|
type: Input
|
|
1702
1612
|
}] } });
|
|
1703
1613
|
|
|
@@ -1706,8 +1616,8 @@ const COMPONENTS = [
|
|
|
1706
1616
|
KbqTagEditInput
|
|
1707
1617
|
];
|
|
1708
1618
|
class KbqTagsModule {
|
|
1709
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1710
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1619
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1620
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqTagsModule, imports: [PlatformModule, KbqTagEditSubmit,
|
|
1711
1621
|
KbqTagEditInput, KbqTagList,
|
|
1712
1622
|
KbqTag,
|
|
1713
1623
|
KbqTagInput,
|
|
@@ -1720,14 +1630,14 @@ class KbqTagsModule {
|
|
|
1720
1630
|
KbqTagAvatar,
|
|
1721
1631
|
KbqTagRemove, KbqTagEditSubmit,
|
|
1722
1632
|
KbqTagEditInput] }); }
|
|
1723
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1633
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagsModule, providers: [
|
|
1724
1634
|
{
|
|
1725
1635
|
provide: KBQ_TAGS_DEFAULT_OPTIONS,
|
|
1726
1636
|
useValue: { separatorKeyCodes: [ENTER$1] }
|
|
1727
1637
|
}
|
|
1728
1638
|
], imports: [PlatformModule] }); }
|
|
1729
1639
|
}
|
|
1730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagsModule, decorators: [{
|
|
1731
1641
|
type: NgModule,
|
|
1732
1642
|
args: [{
|
|
1733
1643
|
imports: [
|
|
@@ -1740,6 +1650,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1740
1650
|
KbqTagAvatar,
|
|
1741
1651
|
KbqTagRemove
|
|
1742
1652
|
],
|
|
1653
|
+
providers: [
|
|
1654
|
+
{
|
|
1655
|
+
provide: KBQ_TAGS_DEFAULT_OPTIONS,
|
|
1656
|
+
useValue: { separatorKeyCodes: [ENTER$1] }
|
|
1657
|
+
}
|
|
1658
|
+
],
|
|
1743
1659
|
exports: [
|
|
1744
1660
|
KbqTagList,
|
|
1745
1661
|
KbqTag,
|
|
@@ -1748,12 +1664,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1748
1664
|
KbqTagAvatar,
|
|
1749
1665
|
KbqTagRemove,
|
|
1750
1666
|
...COMPONENTS
|
|
1751
|
-
],
|
|
1752
|
-
providers: [
|
|
1753
|
-
{
|
|
1754
|
-
provide: KBQ_TAGS_DEFAULT_OPTIONS,
|
|
1755
|
-
useValue: { separatorKeyCodes: [ENTER$1] }
|
|
1756
|
-
}
|
|
1757
1667
|
]
|
|
1758
1668
|
}]
|
|
1759
1669
|
}] });
|