@koobiq/components 19.8.3 → 20.1.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/accordion-trigger.component.scss +0 -18
- package/accordion/accordion.component.scss +9 -2
- package/accordion/index.d.ts +238 -1
- package/actions-panel/index.d.ts +304 -5
- package/alert/_alert-theme.scss +0 -4
- package/alert/alert-tokens.scss +4 -4
- package/alert/index.d.ts +54 -1
- package/app-switcher/app-switcher-dropdown-app.scss +2 -0
- 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 +4 -0
- package/breadcrumbs/index.d.ts +244 -1
- package/button/button-group.scss +42 -2
- package/button/index.d.ts +153 -1
- package/button-toggle/button-toggle.scss +23 -0
- package/button-toggle/index.d.ts +157 -1
- package/checkbox/checkbox.scss +5 -4
- package/checkbox/index.d.ts +159 -1
- package/clamped-text/index.d.ts +145 -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 +4794 -1
- package/core/styles/_koobiq-theme.scss +1 -0
- package/core/styles/common/_animation.scss +4 -0
- package/core/styles/common/_overlay.scss +3 -4
- package/core/styles/theming/_components-theming.scss +1 -63
- package/core/styles/theming/_scrollbar-theme.scss +4 -0
- package/datepicker/_datepicker-theme.scss +1 -1
- package/datepicker/datepicker-toggle.scss +3 -3
- package/datepicker/index.d.ts +699 -1
- package/divider/index.d.ts +20 -1
- package/dl/index.d.ts +38 -1
- package/dropdown/dropdown.scss +2 -2
- 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 +104 -115
- 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 +82 -87
- 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 +79 -101
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +92 -88
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +56 -51
- 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 +46 -49
- package/fesm2022/koobiq-components-clamped-text.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +115 -136
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-content-panel.mjs +90 -107
- package/fesm2022/koobiq-components-content-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +2048 -703
- 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 +30 -31
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +159 -160
- 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 +160 -248
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +1160 -1184
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-flag.mjs +66 -0
- package/fesm2022/koobiq-components-flag.mjs.map +1 -0
- 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 +85 -61
- 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 +138 -128
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +38 -45
- 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 +174 -164
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +164 -169
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-notification-center.mjs +80 -59
- package/fesm2022/koobiq-components-notification-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +40 -36
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +94 -85
- 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 +95 -85
- 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 +279 -244
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +63 -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 +13 -13
- package/fesm2022/koobiq-components-skeleton.mjs.map +1 -1
- package/fesm2022/koobiq-components-split-button.mjs +29 -22
- package/fesm2022/koobiq-components-split-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +114 -96
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +23 -23
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +260 -275
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +179 -267
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +42 -68
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-time-range.mjs +65 -66
- 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 +58 -58
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +150 -39
- 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 +141 -121
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-top-bar.mjs +22 -25
- package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +264 -231
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +273 -239
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/fesm2022/koobiq-components-username.mjs +62 -49
- package/fesm2022/koobiq-components-username.mjs.map +1 -1
- package/file-upload/file-upload-tokens.scss +1 -0
- package/file-upload/index.d.ts +577 -1
- package/filter-bar/_filter-bar-theme.scss +86 -0
- package/filter-bar/filter-bar-tokens.scss +6 -0
- package/filter-bar/filter-bar.scss +10 -4
- package/filter-bar/filter-refresher.scss +1 -1
- package/filter-bar/filters.scss +23 -19
- package/filter-bar/index.d.ts +1165 -1
- package/filter-bar/pipes/base-pipe.scss +14 -35
- package/filter-bar/pipes/pipe-date.scss +20 -14
- package/filter-bar/pipes/pipe-multi-tree-select.scss +5 -3
- package/filter-bar/pipes/pipe-multiselect.scss +5 -3
- package/filter-bar/pipes/pipe-readonly.scss +4 -13
- package/filter-bar/pipes/pipe-select.scss +3 -1
- package/filter-bar/pipes/pipe-tree-select.scss +3 -1
- package/flag/flag.scss +53 -0
- package/flag/index.d.ts +44 -0
- 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 +176 -2
- package/inline-edit/inline-edit.scss +7 -7
- package/input/index.d.ts +339 -1
- package/link/index.d.ts +56 -1
- package/link/link-tokens.scss +2 -2
- package/list/index.d.ts +229 -1
- package/loader-overlay/index.d.ts +57 -1
- package/loader-overlay/loader-overlay-tokens.scss +1 -1
- package/markdown/index.d.ts +68 -1
- package/modal/_modal-animation.scss +6 -6
- package/modal/_modal-theme.scss +3 -6
- package/modal/index.d.ts +313 -1
- package/modal/modal.scss +15 -0
- package/navbar/index.d.ts +305 -1
- package/navbar/navbar.scss +1 -2
- package/notification-center/index.d.ts +322 -1
- package/notification-center/notification-center.scss +14 -9
- package/notification-center/notification-item.scss +2 -1
- package/overflow-items/index.d.ts +162 -2
- package/package.json +13 -17
- package/popover/index.d.ts +182 -1
- package/popover/popover.scss +8 -12
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/progress-bar/index.d.ts +31 -1
- package/progress-bar/progress-bar.scss +4 -0
- package/progress-spinner/index.d.ts +37 -1
- package/progress-spinner/progress-spinner.scss +5 -1
- package/radio/index.d.ts +203 -1
- package/radio/radio.scss +18 -4
- package/resizer/index.d.ts +85 -2
- package/schematics/collection.json +10 -0
- package/schematics/migrations/css-selectors/index.js +1 -1
- package/schematics/migrations/deprecated-icons/index.js +1 -1
- package/schematics/migrations/filter-bar-signals/README.md +66 -0
- package/schematics/migrations/filter-bar-signals/data.js +72 -0
- package/schematics/migrations/filter-bar-signals/index.js +316 -0
- package/schematics/migrations/filter-bar-signals/schema.json +20 -0
- 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 +15 -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 +701 -1
- package/sidebar/index.d.ts +93 -1
- package/sidepanel/index.d.ts +263 -1
- package/sidepanel/sidepanel.scss +0 -8
- package/skeleton/index.d.ts +26 -2
- package/skeleton/skeleton.scss +4 -0
- package/split-button/_split-button-theme.scss +2 -2
- package/split-button/index.d.ts +46 -1
- package/splitter/_splitter-theme.scss +2 -2
- package/splitter/index.d.ts +142 -1
- package/table/_table-theme.scss +4 -0
- package/table/index.d.ts +24 -1
- package/tabs/index.d.ts +647 -1
- package/tabs/tab-header.scss +1 -0
- package/tabs/tabs-tokens.scss +1 -1
- package/tags/index.d.ts +706 -1
- package/textarea/index.d.ts +133 -1
- package/time-range/index.d.ts +310 -7
- package/time-range/time-range.scss +0 -8
- package/timepicker/index.d.ts +193 -1
- package/timepicker/timepicker.scss +2 -2
- package/timezone/index.d.ts +123 -1
- package/title/index.d.ts +131 -1
- package/toast/index.d.ts +164 -1
- package/toggle/index.d.ts +84 -1
- package/tooltip/index.d.ts +211 -1
- package/top-bar/index.d.ts +33 -1
- package/top-bar/top-bar.scss +1 -2
- package/tree/_tree-theme.scss +2 -7
- package/tree/index.d.ts +733 -1
- package/tree/toggle.scss +5 -0
- package/tree/tree-option.scss +20 -11
- package/tree-select/_tree-select-theme.scss +1 -1
- package/tree-select/index.d.ts +384 -1
- package/username/index.d.ts +194 -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 -85
- 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 -121
- 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-slots.d.ts +0 -11
- package/button/button.component.d.ts +0 -74
- package/button/button.dropdown-trigger.directive.d.ts +0 -14
- package/button/button.module.d.ts +0 -13
- package/button/public-api.d.ts +0 -5
- package/button-toggle/button-toggle.component.d.ts +0 -146
- package/button-toggle/button-toggle.module.d.ts +0 -9
- package/button-toggle/public-api.d.ts +0 -2
- package/checkbox/checkbox-config.d.ts +0 -13
- package/checkbox/checkbox-module.d.ts +0 -9
- package/checkbox/checkbox-required-validator.d.ts +0 -13
- package/checkbox/checkbox.d.ts +0 -128
- package/checkbox/public-api.d.ts +0 -4
- package/clamped-text/clamped-list.d.ts +0 -41
- package/clamped-text/clamped-text.d.ts +0 -65
- package/clamped-text/constants.d.ts +0 -34
- package/clamped-text/module.d.ts +0 -8
- package/code-block/code-block-highlight.d.ts +0 -98
- package/code-block/code-block.d.ts +0 -259
- package/code-block/code-block.module.d.ts +0 -7
- package/code-block/public-api.d.ts +0 -4
- package/code-block/types.d.ts +0 -36
- package/content-panel/content-panel.d.ts +0 -149
- package/content-panel/module.d.ts +0 -7
- package/core/animation/animation.d.ts +0 -37
- package/core/animation/fade-animations.d.ts +0 -2
- package/core/animation/index.d.ts +0 -3
- package/core/animation/select-animations.d.ts +0 -12
- package/core/common-behaviors/checkbox.d.ts +0 -5
- package/core/common-behaviors/clipboard.d.ts +0 -12
- package/core/common-behaviors/color.d.ts +0 -50
- package/core/common-behaviors/common-module.d.ts +0 -38
- package/core/common-behaviors/constructor.d.ts +0 -9
- package/core/common-behaviors/disabled.d.ts +0 -8
- package/core/common-behaviors/error-state.d.ts +0 -46
- package/core/common-behaviors/flex.d.ts +0 -4
- package/core/common-behaviors/hover.d.ts +0 -15
- package/core/common-behaviors/index.d.ts +0 -14
- package/core/common-behaviors/orientation.d.ts +0 -4
- package/core/common-behaviors/read-state.d.ts +0 -12
- package/core/common-behaviors/size.d.ts +0 -4
- package/core/common-behaviors/tabindex.d.ts +0 -8
- package/core/datetime/date-adapter.d.ts +0 -12
- package/core/datetime/date-formats.d.ts +0 -4
- package/core/datetime/index.d.ts +0 -2
- package/core/error/error-state-matcher.d.ts +0 -39
- package/core/form-field/field-sizing-content.d.ts +0 -21
- package/core/form-field/form-field-ref.d.ts +0 -28
- package/core/form-field/index.d.ts +0 -2
- package/core/formatters/date/formatter.d.ts +0 -11
- package/core/formatters/date/formatter.pipe.d.ts +0 -139
- package/core/formatters/filesize/config.d.ts +0 -66
- package/core/formatters/filesize/formatter.d.ts +0 -17
- package/core/formatters/filesize/index.d.ts +0 -3
- package/core/formatters/filesize/size.d.ts +0 -52
- package/core/formatters/index.d.ts +0 -13
- package/core/formatters/number/formatter.d.ts +0 -101
- package/core/forms/forms-module.d.ts +0 -7
- package/core/forms/forms.directive.d.ts +0 -22
- package/core/forms/index.d.ts +0 -3
- package/core/forms/validators.d.ts +0 -120
- package/core/highlight/highlight.pipe.d.ts +0 -10
- package/core/highlight/index.d.ts +0 -9
- package/core/line/line.d.ts +0 -23
- package/core/locales/en-US.d.ts +0 -176
- package/core/locales/es-LA.d.ts +0 -175
- package/core/locales/formatters.d.ts +0 -190
- package/core/locales/index.d.ts +0 -9
- package/core/locales/locale-service.d.ts +0 -1117
- package/core/locales/locale-service.module.d.ts +0 -6
- package/core/locales/pt-BR.d.ts +0 -175
- package/core/locales/ru-RU.d.ts +0 -176
- package/core/locales/tk-TM.d.ts +0 -176
- package/core/locales/types.d.ts +0 -77
- package/core/navbar/index.d.ts +0 -1
- package/core/navbar/rectangle-item.d.ts +0 -14
- package/core/option/action-container.d.ts +0 -5
- package/core/option/action.d.ts +0 -38
- package/core/option/index.d.ts +0 -5
- package/core/option/optgroup.d.ts +0 -16
- package/core/option/option-module.d.ts +0 -10
- package/core/option/option.d.ts +0 -170
- package/core/overlay/overlay-position-map.d.ts +0 -40
- package/core/pop-up/constants.d.ts +0 -56
- package/core/pop-up/focus-trap-strategy.d.ts +0 -5
- package/core/pop-up/index.d.ts +0 -5
- package/core/pop-up/pop-up-styles.d.ts +0 -2
- package/core/pop-up/pop-up-trigger.d.ts +0 -104
- package/core/pop-up/pop-up.d.ts +0 -57
- package/core/public-api.d.ts +0 -23
- package/core/select/common.d.ts +0 -59
- package/core/select/constants.d.ts +0 -22
- package/core/select/errors.d.ts +0 -19
- package/core/select/events.d.ts +0 -1
- package/core/select/index.d.ts +0 -4
- package/core/selection/constants.d.ts +0 -4
- package/core/selection/index.d.ts +0 -3
- package/core/selection/pseudo-checkbox/pseudo-checkbox.d.ts +0 -23
- package/core/selection/pseudo-checkbox/pseudo-checkbox.module.d.ts +0 -8
- package/core/services/measure-scrollbar.service.d.ts +0 -11
- package/core/services/theme.service.d.ts +0 -41
- package/core/title/index.d.ts +0 -1
- package/core/title/title-text-ref.d.ts +0 -6
- package/core/tokens/index.d.ts +0 -1
- package/core/tokens/window.d.ts +0 -5
- package/core/utils/dom.d.ts +0 -4
- package/core/utils/index.d.ts +0 -2
- package/core/utils/public-api.d.ts +0 -1
- package/core/utils/utils.d.ts +0 -25
- package/core/validation/index.d.ts +0 -1
- package/core/validation/validation.d.ts +0 -29
- package/core/version.d.ts +0 -2
- package/datepicker/calendar-body.component.d.ts +0 -55
- package/datepicker/calendar-header.component.d.ts +0 -51
- package/datepicker/calendar.component.d.ts +0 -89
- package/datepicker/datepicker-animations.d.ts +0 -9
- package/datepicker/datepicker-errors.d.ts +0 -2
- package/datepicker/datepicker-input.directive.d.ts +0 -221
- package/datepicker/datepicker-intl.d.ts +0 -32
- package/datepicker/datepicker-module.d.ts +0 -21
- package/datepicker/datepicker-toggle.component.d.ts +0 -57
- package/datepicker/datepicker.component.d.ts +0 -148
- package/datepicker/month-view.component.d.ts +0 -73
- package/datepicker/public-api.d.ts +0 -10
- package/divider/divider.component.d.ts +0 -18
- package/divider/divider.module.d.ts +0 -8
- package/divider/public-api.d.ts +0 -2
- package/dl/dl.component.d.ts +0 -26
- package/dl/dl.module.d.ts +0 -9
- package/dl/public-api.d.ts +0 -2
- package/dropdown/dropdown-animations.d.ts +0 -11
- package/dropdown/dropdown-content.directive.d.ts +0 -32
- package/dropdown/dropdown-errors.d.ts +0 -17
- package/dropdown/dropdown-item.component.d.ts +0 -52
- package/dropdown/dropdown-trigger.directive.d.ts +0 -167
- package/dropdown/dropdown.component.d.ts +0 -134
- package/dropdown/dropdown.module.d.ts +0 -13
- package/dropdown/dropdown.types.d.ts +0 -67
- package/dropdown/public-api.d.ts +0 -8
- package/dynamic-translation/dynamic-translation.d.ts +0 -72
- package/dynamic-translation/module.d.ts +0 -7
- package/ellipsis-center/ellipsis-center.directive.d.ts +0 -36
- package/ellipsis-center/public-api.d.ts +0 -1
- package/empty-state/empty-state.component.d.ts +0 -36
- package/empty-state/empty-state.module.d.ts +0 -9
- package/empty-state/public-api.d.ts +0 -2
- package/fesm2022/koobiq-components-navbar-ic.mjs +0 -863
- package/fesm2022/koobiq-components-navbar-ic.mjs.map +0 -1
- package/fesm2022/koobiq-components-risk-level.mjs +0 -75
- package/fesm2022/koobiq-components-risk-level.mjs.map +0 -1
- package/file-upload/dropzone.d.ts +0 -147
- package/file-upload/file-upload.d.ts +0 -102
- package/file-upload/file-upload.module.d.ts +0 -20
- package/file-upload/multiple-file-upload.component.d.ts +0 -138
- package/file-upload/primitives/file-drop.d.ts +0 -35
- package/file-upload/primitives/file-picker.d.ts +0 -82
- package/file-upload/primitives/index.d.ts +0 -2
- package/file-upload/public-api.d.ts +0 -7
- package/file-upload/single-file-upload.component.d.ts +0 -118
- package/filter-bar/filter-bar-button.d.ts +0 -14
- package/filter-bar/filter-bar.d.ts +0 -81
- package/filter-bar/filter-bar.module.d.ts +0 -17
- package/filter-bar/filter-bar.types.d.ts +0 -143
- package/filter-bar/filter-refresher.d.ts +0 -5
- package/filter-bar/filter-reset.d.ts +0 -15
- package/filter-bar/filter-search.d.ts +0 -54
- package/filter-bar/filter-search.scss +0 -12
- package/filter-bar/filters.d.ts +0 -122
- package/filter-bar/pipe-add.d.ts +0 -28
- package/filter-bar/pipe.directive.d.ts +0 -13
- package/filter-bar/pipes/base-pipe.d.ts +0 -74
- package/filter-bar/pipes/pipe-button.d.ts +0 -21
- package/filter-bar/pipes/pipe-date.d.ts +0 -65
- package/filter-bar/pipes/pipe-datetime.d.ts +0 -66
- package/filter-bar/pipes/pipe-multi-select.d.ts +0 -56
- package/filter-bar/pipes/pipe-multi-tree-select.d.ts +0 -67
- package/filter-bar/pipes/pipe-readonly.d.ts +0 -7
- package/filter-bar/pipes/pipe-select.d.ts +0 -30
- package/filter-bar/pipes/pipe-state.d.ts +0 -21
- package/filter-bar/pipes/pipe-text.d.ts +0 -26
- package/filter-bar/pipes/pipe-title.d.ts +0 -27
- package/filter-bar/pipes/pipe-tree-select.d.ts +0 -42
- package/filter-bar/public-api.d.ts +0 -21
- package/form-field/cleaner.d.ts +0 -11
- package/form-field/error.d.ts +0 -8
- package/form-field/fieldset.d.ts +0 -27
- package/form-field/form-field-control.d.ts +0 -40
- package/form-field/form-field.d.ts +0 -298
- package/form-field/form-field.module.d.ts +0 -19
- package/form-field/hint.d.ts +0 -15
- package/form-field/label.d.ts +0 -6
- package/form-field/password-hint.d.ts +0 -53
- package/form-field/password-toggle.d.ts +0 -56
- package/form-field/prefix.d.ts +0 -6
- package/form-field/public-api.d.ts +0 -15
- package/form-field/reactive-password-hint.d.ts +0 -20
- package/form-field/stepper.d.ts +0 -59
- package/form-field/suffix.d.ts +0 -6
- package/form-field/validate.directive.d.ts +0 -53
- package/icon/icon-button.component.d.ts +0 -28
- package/icon/icon-item.component.d.ts +0 -11
- package/icon/icon-registry-providers.d.ts +0 -34
- package/icon/icon-registry.d.ts +0 -50
- package/icon/icon.component.d.ts +0 -33
- package/icon/icon.module.d.ts +0 -9
- package/icon/public-api.d.ts +0 -6
- package/inline-edit/inline-edit.d.ts +0 -161
- package/inline-edit/module.d.ts +0 -7
- package/input/input-errors.d.ts +0 -1
- package/input/input-number-validators.d.ts +0 -35
- package/input/input-number.d.ts +0 -96
- package/input/input-password.d.ts +0 -99
- package/input/input-value-accessor.d.ts +0 -4
- package/input/input.d.ts +0 -109
- package/input/input.module.d.ts +0 -14
- package/input/public-api.d.ts +0 -6
- package/link/link.component.d.ts +0 -53
- package/link/link.module.d.ts +0 -8
- package/link/public-api.d.ts +0 -2
- package/list/list-selection.component.d.ts +0 -196
- package/list/list.component.d.ts +0 -18
- package/list/list.module.d.ts +0 -11
- package/list/public-api.d.ts +0 -3
- package/loader-overlay/loader-overlay.component.d.ts +0 -47
- package/loader-overlay/loader-overlay.module.d.ts +0 -10
- package/loader-overlay/public-api.d.ts +0 -2
- package/markdown/markdown.component.d.ts +0 -31
- package/markdown/markdown.module.d.ts +0 -7
- package/markdown/markdown.service.d.ts +0 -19
- package/markdown/markdown.values.d.ts +0 -10
- package/markdown/public-api.d.ts +0 -4
- package/modal/css-unit.pipe.d.ts +0 -7
- package/modal/modal-control.service.d.ts +0 -20
- package/modal/modal-ref.class.d.ts +0 -37
- package/modal/modal-util.d.ts +0 -15
- package/modal/modal.component.d.ts +0 -141
- package/modal/modal.directive.d.ts +0 -20
- package/modal/modal.module.d.ts +0 -15
- package/modal/modal.service.d.ts +0 -42
- package/modal/modal.type.d.ts +0 -72
- package/modal/public-api.d.ts +0 -6
- package/navbar/navbar-brand.component.d.ts +0 -41
- package/navbar/navbar-item.component.d.ts +0 -131
- package/navbar/navbar-toggle.component.d.ts +0 -23
- package/navbar/navbar.component.d.ts +0 -68
- package/navbar/navbar.module.d.ts +0 -15
- package/navbar/public-api.d.ts +0 -6
- package/navbar/vertical-navbar.component.d.ts +0 -47
- package/navbar-ic/_navbar-ic-theme.scss +0 -81
- package/navbar-ic/index.d.ts +0 -1
- package/navbar-ic/navbar-ic-divider.scss +0 -7
- package/navbar-ic/navbar-ic-header.d.ts +0 -22
- package/navbar-ic/navbar-ic-header.scss +0 -49
- package/navbar-ic/navbar-ic-item.d.ts +0 -144
- package/navbar-ic/navbar-ic-item.scss +0 -92
- package/navbar-ic/navbar-ic-tokens.scss +0 -22
- package/navbar-ic/navbar-ic.animation.d.ts +0 -3
- package/navbar-ic/navbar-ic.d.ts +0 -118
- package/navbar-ic/navbar-ic.module.d.ts +0 -14
- package/navbar-ic/navbar-ic.scss +0 -32
- package/navbar-ic/public-api.d.ts +0 -4
- package/notification-center/notification-center-animations.d.ts +0 -5
- package/notification-center/notification-center.d.ts +0 -184
- package/notification-center/notification-center.module.d.ts +0 -7
- package/notification-center/notification-center.service.d.ts +0 -115
- package/notification-center/notification-item.d.ts +0 -27
- package/notification-center/public-api.d.ts +0 -4
- package/overflow-items/module.d.ts +0 -7
- package/overflow-items/overflow-items.d.ts +0 -152
- package/popover/popover-animations.d.ts +0 -4
- package/popover/popover-confirm.component.d.ts +0 -28
- package/popover/popover.component.d.ts +0 -139
- package/popover/popover.module.d.ts +0 -14
- package/popover/public-api.d.ts +0 -4
- package/progress-bar/progress-bar.component.d.ts +0 -20
- package/progress-bar/progress-bar.module.d.ts +0 -8
- package/progress-bar/public-api.d.ts +0 -2
- package/progress-spinner/progress-spinner.component.d.ts +0 -26
- package/progress-spinner/progress-spinner.module.d.ts +0 -9
- package/progress-spinner/public-api.d.ts +0 -2
- package/public-api.d.ts +0 -1
- package/radio/public-api.d.ts +0 -2
- package/radio/radio.component.d.ts +0 -200
- package/radio/radio.module.d.ts +0 -8
- package/resizer/module.d.ts +0 -7
- package/resizer/resizer.d.ts +0 -75
- package/risk-level/_risk-level-theme.scss +0 -74
- package/risk-level/index.d.ts +0 -1
- package/risk-level/public-api.d.ts +0 -2
- package/risk-level/risk-level-tokens.scss +0 -33
- package/risk-level/risk-level.component.d.ts +0 -21
- package/risk-level/risk-level.component.scss +0 -22
- package/risk-level/risk-level.module.d.ts +0 -12
- package/scrollbar/public-api.d.ts +0 -4
- package/scrollbar/scrollbar.component.d.ts +0 -37
- package/scrollbar/scrollbar.directive.d.ts +0 -29
- package/scrollbar/scrollbar.module.d.ts +0 -8
- package/scrollbar/scrollbar.types.d.ts +0 -33
- package/search-expandable/public-api.d.ts +0 -2
- package/search-expandable/search-expandable.d.ts +0 -89
- package/search-expandable/search-expandable.module.d.ts +0 -7
- package/select/public-api.d.ts +0 -4
- package/select/select-common.d.ts +0 -30
- package/select/select-option.directive.d.ts +0 -21
- package/select/select.component.d.ts +0 -627
- package/select/select.module.d.ts +0 -17
- package/sidebar/public-api.d.ts +0 -2
- package/sidebar/sidebar-animations.d.ts +0 -8
- package/sidebar/sidebar.component.d.ts +0 -80
- package/sidebar/sidebar.module.d.ts +0 -8
- package/sidepanel/public-api.d.ts +0 -6
- package/sidepanel/sidepanel-animations.d.ts +0 -20
- package/sidepanel/sidepanel-config.d.ts +0 -43
- package/sidepanel/sidepanel-container.component.d.ts +0 -67
- package/sidepanel/sidepanel-directives.d.ts +0 -61
- package/sidepanel/sidepanel-ref.d.ts +0 -36
- package/sidepanel/sidepanel.module.d.ts +0 -14
- package/sidepanel/sidepanel.service.d.ts +0 -58
- package/skeleton/module.d.ts +0 -7
- package/skeleton/skeleton.d.ts +0 -17
- package/split-button/public-api.d.ts +0 -2
- package/split-button/split-button.d.ts +0 -37
- package/split-button/split-button.module.d.ts +0 -7
- package/splitter/public-api.d.ts +0 -2
- package/splitter/splitter.component.d.ts +0 -136
- package/splitter/splitter.module.d.ts +0 -8
- package/table/public-api.d.ts +0 -2
- package/table/table.component.d.ts +0 -12
- package/table/table.module.d.ts +0 -9
- package/tabs/paginated-tab-header.d.ts +0 -182
- package/tabs/public-api.d.ts +0 -10
- package/tabs/tab-body.component.d.ts +0 -95
- package/tabs/tab-content.directive.d.ts +0 -9
- package/tabs/tab-group.component.d.ts +0 -137
- package/tabs/tab-header.component.d.ts +0 -34
- package/tabs/tab-label-wrapper.directive.d.ts +0 -29
- package/tabs/tab-label.directive.d.ts +0 -11
- package/tabs/tab-nav-bar.d.ts +0 -91
- package/tabs/tab.component.d.ts +0 -70
- 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
|
*
|
|
@@ -972,6 +950,8 @@ class KbqTagList {
|
|
|
972
950
|
// it back to the first tag when the user tabs out.
|
|
973
951
|
this.keyManager.tabOut.pipe(takeUntilDestroyed(this.destroyRef)).subscribe(() => {
|
|
974
952
|
this._tabIndex = -1;
|
|
953
|
+
// Direct DOM write since the binding update is deferred with eventCoalescing.
|
|
954
|
+
this.elementRef.nativeElement.tabIndex = -1;
|
|
975
955
|
setTimeout(() => {
|
|
976
956
|
this._tabIndex = this.userTabIndex || 0;
|
|
977
957
|
this.changeDetectorRef.markForCheck();
|
|
@@ -1102,7 +1082,7 @@ class KbqTagList {
|
|
|
1102
1082
|
const target = event.target;
|
|
1103
1083
|
if (this.disabled || isNull(target))
|
|
1104
1084
|
return;
|
|
1105
|
-
const shouldSelectAll = this.selectable && isSelectAll(event);
|
|
1085
|
+
const shouldSelectAll = this.selectable() && isSelectAll(event);
|
|
1106
1086
|
if (this.isInputEmpty(target)) {
|
|
1107
1087
|
if (event.keyCode === BACKSPACE ||
|
|
1108
1088
|
event.keyCode === LEFT_ARROW ||
|
|
@@ -1138,12 +1118,6 @@ class KbqTagList {
|
|
|
1138
1118
|
this.stateChanges.next();
|
|
1139
1119
|
}
|
|
1140
1120
|
}
|
|
1141
|
-
/**
|
|
1142
|
-
* @docs-private
|
|
1143
|
-
*
|
|
1144
|
-
* @deprecated Unused. Will be removed in next major release.
|
|
1145
|
-
*/
|
|
1146
|
-
setSelectionByValue(_value, _isUserInput = true) { }
|
|
1147
1121
|
/** When blurred, mark the field as touched when focus moved outside the tag list. */
|
|
1148
1122
|
blur() {
|
|
1149
1123
|
if (!this.hasFocusedTag()) {
|
|
@@ -1158,14 +1132,12 @@ class KbqTagList {
|
|
|
1158
1132
|
setTimeout(() => {
|
|
1159
1133
|
if (!this.focused) {
|
|
1160
1134
|
this.markAsTouched();
|
|
1161
|
-
this.revalidate();
|
|
1162
1135
|
}
|
|
1163
1136
|
});
|
|
1164
1137
|
}
|
|
1165
1138
|
else {
|
|
1166
1139
|
// If there's no tag input, then mark the field as touched.
|
|
1167
1140
|
this.markAsTouched();
|
|
1168
|
-
this.revalidate();
|
|
1169
1141
|
}
|
|
1170
1142
|
}
|
|
1171
1143
|
}
|
|
@@ -1298,14 +1270,6 @@ class KbqTagList {
|
|
|
1298
1270
|
syncTagsRemovableState() {
|
|
1299
1271
|
this.tags?.forEach((tag) => (tag.removable = this.removable));
|
|
1300
1272
|
}
|
|
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
1273
|
setupDropListInitialProperties() {
|
|
1310
1274
|
this.syncDropListDisabledState();
|
|
1311
1275
|
this.dropList.elementContainerSelector = '.kbq-tags-list__list-container';
|
|
@@ -1327,8 +1291,8 @@ class KbqTagList {
|
|
|
1327
1291
|
this.unselectAll();
|
|
1328
1292
|
});
|
|
1329
1293
|
}
|
|
1330
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1331
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
1294
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagList, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1295
|
+
/** @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
1296
|
<div class="kbq-tags-list__list-container">
|
|
1333
1297
|
<ng-content />
|
|
1334
1298
|
</div>
|
|
@@ -1340,9 +1304,9 @@ class KbqTagList {
|
|
|
1340
1304
|
}
|
|
1341
1305
|
`, 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
1306
|
}
|
|
1343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1307
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagList, decorators: [{
|
|
1344
1308
|
type: Component,
|
|
1345
|
-
args: [{ selector: 'kbq-tag-list',
|
|
1309
|
+
args: [{ selector: 'kbq-tag-list', template: `
|
|
1346
1310
|
<div class="kbq-tags-list__list-container">
|
|
1347
1311
|
<ng-content />
|
|
1348
1312
|
</div>
|
|
@@ -1352,12 +1316,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1352
1316
|
<ng-content select="kbq-cleaner" />
|
|
1353
1317
|
</div>
|
|
1354
1318
|
}
|
|
1355
|
-
`, host: {
|
|
1319
|
+
`, providers: [{ provide: KbqFormFieldControl, useExisting: KbqTagList }], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
1356
1320
|
class: 'kbq-tag-list',
|
|
1357
1321
|
'[class.kbq-disabled]': 'disabled',
|
|
1358
1322
|
'[class.kbq-invalid]': 'errorState',
|
|
1359
|
-
'[class.kbq-tag-list_selectable]': 'selectable',
|
|
1360
|
-
'[class.kbq-tag-list_editable]': 'editable',
|
|
1323
|
+
'[class.kbq-tag-list_selectable]': 'selectable()',
|
|
1324
|
+
'[class.kbq-tag-list_editable]': 'editable()',
|
|
1361
1325
|
'[class.kbq-tag-list_removable]': 'removable',
|
|
1362
1326
|
'[class.kbq-tag-list_draggable]': 'draggable',
|
|
1363
1327
|
'[attr.tabindex]': 'tabIndex',
|
|
@@ -1365,23 +1329,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1365
1329
|
'(focus)': 'focus()',
|
|
1366
1330
|
'(blur)': 'blur()',
|
|
1367
1331
|
'(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: [{
|
|
1332
|
+
}, 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"] }]
|
|
1333
|
+
}], ctorParameters: () => [], propDecorators: { value: [{
|
|
1385
1334
|
type: Input
|
|
1386
1335
|
}], required: [{
|
|
1387
1336
|
type: Input
|
|
@@ -1393,34 +1342,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1393
1342
|
}], draggable: [{
|
|
1394
1343
|
type: Input,
|
|
1395
1344
|
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: [{
|
|
1345
|
+
}], 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
1346
|
type: Input,
|
|
1409
1347
|
args: [{ transform: booleanAttribute }]
|
|
1410
1348
|
}], tabIndex: [{
|
|
1411
1349
|
type: Input
|
|
1412
|
-
}], valueChange: [{
|
|
1413
|
-
type: Output
|
|
1414
|
-
}], errorStateMatcher: [{
|
|
1415
|
-
type: Input
|
|
1416
|
-
}], orientation: [{
|
|
1350
|
+
}], valueChange: [{ type: i0.Output, args: ["valueChange"] }], errorStateMatcher: [{
|
|
1417
1351
|
type: Input
|
|
1418
|
-
}], change: [{
|
|
1419
|
-
type: Output
|
|
1420
|
-
}], cleaner: [{
|
|
1421
|
-
type: ContentChild,
|
|
1422
|
-
args: ['kbqTagListCleaner', { static: true }]
|
|
1423
|
-
}], tags: [{
|
|
1352
|
+
}], change: [{ type: i0.Output, args: ["change"] }], cleaner: [{ type: i0.ContentChild, args: ['kbqTagListCleaner', { isSignal: true }] }], tags: [{
|
|
1424
1353
|
type: ContentChildren,
|
|
1425
1354
|
args: [forwardRef(() => KbqTag), {
|
|
1426
1355
|
// Need to use `descendants: true`,
|
|
@@ -1448,6 +1377,8 @@ class KbqTagInput {
|
|
|
1448
1377
|
*
|
|
1449
1378
|
* Defaults to `[ENTER]`.
|
|
1450
1379
|
*/
|
|
1380
|
+
// TODO: Skipped for migration because:
|
|
1381
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
1451
1382
|
set separatorKeyCodes(value) {
|
|
1452
1383
|
this._separatorKeyCodes = value || [];
|
|
1453
1384
|
}
|
|
@@ -1459,6 +1390,8 @@ class KbqTagInput {
|
|
|
1459
1390
|
}, []);
|
|
1460
1391
|
}
|
|
1461
1392
|
/** Register input for tag list */
|
|
1393
|
+
// TODO: Skipped for migration because:
|
|
1394
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
1462
1395
|
set tagList(value) {
|
|
1463
1396
|
if (value) {
|
|
1464
1397
|
this._tagList = value;
|
|
@@ -1468,6 +1401,8 @@ class KbqTagInput {
|
|
|
1468
1401
|
/**
|
|
1469
1402
|
* Whether or not the tagEnd event will be emitted when the input is blurred.
|
|
1470
1403
|
*/
|
|
1404
|
+
// TODO: Skipped for migration because:
|
|
1405
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
1471
1406
|
get addOnBlur() {
|
|
1472
1407
|
return this._addOnBlur;
|
|
1473
1408
|
}
|
|
@@ -1475,6 +1410,8 @@ class KbqTagInput {
|
|
|
1475
1410
|
this._addOnBlur = coerceBooleanProperty(value);
|
|
1476
1411
|
}
|
|
1477
1412
|
/** Whether the input is disabled. */
|
|
1413
|
+
// TODO: Skipped for migration because:
|
|
1414
|
+
// Accessor inputs cannot be migrated as they are too complex.
|
|
1478
1415
|
get disabled() {
|
|
1479
1416
|
return this._disabled || (this._tagList && this._tagList.disabled);
|
|
1480
1417
|
}
|
|
@@ -1485,37 +1422,41 @@ class KbqTagInput {
|
|
|
1485
1422
|
get empty() {
|
|
1486
1423
|
return !this.inputElement.value;
|
|
1487
1424
|
}
|
|
1488
|
-
constructor(
|
|
1489
|
-
this.elementRef =
|
|
1490
|
-
this.defaultOptions =
|
|
1491
|
-
this.trimDirective =
|
|
1492
|
-
this.ngControl =
|
|
1493
|
-
this.autocompleteTrigger =
|
|
1425
|
+
constructor() {
|
|
1426
|
+
this.elementRef = inject(ElementRef);
|
|
1427
|
+
this.defaultOptions = inject(KBQ_TAGS_DEFAULT_OPTIONS);
|
|
1428
|
+
this.trimDirective = inject(KbqTrim, { optional: true, self: true });
|
|
1429
|
+
this.ngControl = inject(NgControl, { optional: true, self: true });
|
|
1430
|
+
this.autocompleteTrigger = inject(KbqAutocompleteTrigger, { optional: true, self: true });
|
|
1494
1431
|
/** Whether the control is focused. */
|
|
1495
1432
|
this.focused = false;
|
|
1496
1433
|
this._separatorKeyCodes = this.defaultOptions.separatorKeyCodes;
|
|
1497
1434
|
this._separators = this.defaultOptions.separators || KBQ_TAG_INPUT_DEFAULT_SEPARATORS;
|
|
1498
1435
|
/** Emitted when a tag is to be added. */
|
|
1499
|
-
this.tagEnd =
|
|
1436
|
+
this.tagEnd = output({ alias: 'kbqTagInputTokenEnd' });
|
|
1500
1437
|
/** A value indicating whether allow/prevent tags duplication */
|
|
1501
|
-
this.distinct = false;
|
|
1438
|
+
this.distinct = input(false, ...(ngDevMode ? [{ debugName: "distinct" }] : []));
|
|
1502
1439
|
/** The input's placeholder text. */
|
|
1440
|
+
// TODO: Skipped for migration because:
|
|
1441
|
+
// This input overrides a field from a superclass, while the superclass field
|
|
1442
|
+
// is not migrated.
|
|
1503
1443
|
this.placeholder = '';
|
|
1504
1444
|
/** Unique id for the input. */
|
|
1445
|
+
// TODO: Skipped for migration because:
|
|
1446
|
+
// This input overrides a field from a superclass, while the superclass field
|
|
1447
|
+
// is not migrated.
|
|
1505
1448
|
this.id = `kbq-tag-list-input-${nextUniqueId++}`;
|
|
1506
1449
|
this._addOnBlur = true;
|
|
1507
1450
|
/**
|
|
1508
1451
|
* Whether the tagEnd event will be emitted when the text pasted.
|
|
1509
1452
|
* @default true
|
|
1510
1453
|
*/
|
|
1511
|
-
this.addOnPaste = this.defaultOptions.addOnPaste ?? true
|
|
1454
|
+
this.addOnPaste = input(this.defaultOptions.addOnPaste ?? true, ...(ngDevMode ? [{ debugName: "addOnPaste", alias: 'kbqTagInputAddOnPaste',
|
|
1455
|
+
transform: booleanAttribute }] : [{
|
|
1456
|
+
alias: 'kbqTagInputAddOnPaste',
|
|
1457
|
+
transform: booleanAttribute
|
|
1458
|
+
}]));
|
|
1512
1459
|
this._disabled = false;
|
|
1513
|
-
/**
|
|
1514
|
-
* @docs-private
|
|
1515
|
-
*
|
|
1516
|
-
* @deprecated Unused. Will be removed in next major release.
|
|
1517
|
-
*/
|
|
1518
|
-
this.countOfSymbolsForUpdateWidth = 3;
|
|
1519
1460
|
this.inputElement = this.elementRef.nativeElement;
|
|
1520
1461
|
}
|
|
1521
1462
|
ngOnChanges() {
|
|
@@ -1550,7 +1491,7 @@ class KbqTagInput {
|
|
|
1550
1491
|
this.triggerValidation();
|
|
1551
1492
|
this._tagList.blur();
|
|
1552
1493
|
}
|
|
1553
|
-
if (this.addOnBlur && (this.autocompleteTrigger?.onInputBlur(event) || true)) {
|
|
1494
|
+
if (this.addOnBlur && (this.autocompleteTrigger?.onInputBlur()(event) || true)) {
|
|
1554
1495
|
this.emitTagEnd();
|
|
1555
1496
|
}
|
|
1556
1497
|
this._tagList.stateChanges.next();
|
|
@@ -1564,7 +1505,7 @@ class KbqTagInput {
|
|
|
1564
1505
|
/** Checks to see if the (tagEnd) event needs to be emitted. */
|
|
1565
1506
|
emitTagEnd() {
|
|
1566
1507
|
if (!this.hasControl() || (this.hasControl() && !this.ngControl.invalid)) {
|
|
1567
|
-
if (this.distinct && this.hasDuplicates)
|
|
1508
|
+
if (this.distinct() && this.hasDuplicates)
|
|
1568
1509
|
return;
|
|
1569
1510
|
this._tagList?.notifyPendingTagChange();
|
|
1570
1511
|
this.tagEnd.emit({ input: this.inputElement, value: this.trimValue(this.inputElement.value) });
|
|
@@ -1584,7 +1525,7 @@ class KbqTagInput {
|
|
|
1584
1525
|
return;
|
|
1585
1526
|
}
|
|
1586
1527
|
const data = $event.clipboardData.getData('text');
|
|
1587
|
-
if ((data && data.length === 0) || !this.addOnPaste) {
|
|
1528
|
+
if ((data && data.length === 0) || !this.addOnPaste()) {
|
|
1588
1529
|
return;
|
|
1589
1530
|
}
|
|
1590
1531
|
const separatorsInString = this.getSeparatorsForString(data);
|
|
@@ -1596,7 +1537,7 @@ class KbqTagInput {
|
|
|
1596
1537
|
if (items.length === 0) {
|
|
1597
1538
|
items.push(data);
|
|
1598
1539
|
}
|
|
1599
|
-
if (this.distinct) {
|
|
1540
|
+
if (this.distinct()) {
|
|
1600
1541
|
const tagValues = this._tagList.tags.map(({ value }) => value);
|
|
1601
1542
|
items = items.filter((item) => !tagValues.includes(item));
|
|
1602
1543
|
}
|
|
@@ -1607,12 +1548,6 @@ class KbqTagInput {
|
|
|
1607
1548
|
$event.preventDefault();
|
|
1608
1549
|
$event.stopPropagation();
|
|
1609
1550
|
}
|
|
1610
|
-
/**
|
|
1611
|
-
* @docs-private
|
|
1612
|
-
*
|
|
1613
|
-
* @deprecated Unused. Will be removed in next major release.
|
|
1614
|
-
*/
|
|
1615
|
-
updateInputWidth() { }
|
|
1616
1551
|
/** @docs-private */
|
|
1617
1552
|
onFocus() {
|
|
1618
1553
|
this.focused = true;
|
|
@@ -1645,14 +1580,13 @@ class KbqTagInput {
|
|
|
1645
1580
|
isSeparatorKey(event) {
|
|
1646
1581
|
return this.separators.some((separator) => separator.key === event.key && !hasModifierKey(event));
|
|
1647
1582
|
}
|
|
1648
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1649
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
1583
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagInput, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
1584
|
+
/** @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 }); }
|
|
1650
1585
|
}
|
|
1651
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagInput, decorators: [{
|
|
1652
1587
|
type: Directive,
|
|
1653
1588
|
args: [{
|
|
1654
1589
|
selector: 'input[kbqTagInputFor]',
|
|
1655
|
-
exportAs: 'kbqTagInput, kbqTagInputFor',
|
|
1656
1590
|
host: {
|
|
1657
1591
|
class: 'kbq-tag-input',
|
|
1658
1592
|
'[id]': 'id',
|
|
@@ -1664,32 +1598,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1664
1598
|
'(input)': 'onInput()',
|
|
1665
1599
|
'(paste)': 'onPaste($event)'
|
|
1666
1600
|
},
|
|
1667
|
-
hostDirectives: [KbqFieldSizingContent]
|
|
1601
|
+
hostDirectives: [KbqFieldSizingContent],
|
|
1602
|
+
exportAs: 'kbqTagInput, kbqTagInputFor'
|
|
1668
1603
|
}]
|
|
1669
|
-
}], ctorParameters: () => [
|
|
1670
|
-
type: Inject,
|
|
1671
|
-
args: [KBQ_TAGS_DEFAULT_OPTIONS]
|
|
1672
|
-
}] }, { type: i1$1.KbqTrim, decorators: [{
|
|
1673
|
-
type: Optional
|
|
1674
|
-
}, {
|
|
1675
|
-
type: Self
|
|
1676
|
-
}] }, { type: i3.NgControl, decorators: [{
|
|
1677
|
-
type: Optional
|
|
1678
|
-
}, {
|
|
1679
|
-
type: Self
|
|
1680
|
-
}] }, { type: i3$1.KbqAutocompleteTrigger, decorators: [{
|
|
1681
|
-
type: Optional
|
|
1682
|
-
}, {
|
|
1683
|
-
type: Self
|
|
1684
|
-
}] }], propDecorators: { separatorKeyCodes: [{
|
|
1604
|
+
}], ctorParameters: () => [], propDecorators: { separatorKeyCodes: [{
|
|
1685
1605
|
type: Input,
|
|
1686
1606
|
args: ['kbqTagInputSeparatorKeyCodes']
|
|
1687
|
-
}], tagEnd: [{
|
|
1688
|
-
type: Output,
|
|
1689
|
-
args: ['kbqTagInputTokenEnd']
|
|
1690
|
-
}], distinct: [{
|
|
1691
|
-
type: Input
|
|
1692
|
-
}], placeholder: [{
|
|
1607
|
+
}], tagEnd: [{ type: i0.Output, args: ["kbqTagInputTokenEnd"] }], distinct: [{ type: i0.Input, args: [{ isSignal: true, alias: "distinct", required: false }] }], placeholder: [{
|
|
1693
1608
|
type: Input
|
|
1694
1609
|
}], id: [{
|
|
1695
1610
|
type: Input
|
|
@@ -1699,10 +1614,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1699
1614
|
}], addOnBlur: [{
|
|
1700
1615
|
type: Input,
|
|
1701
1616
|
args: ['kbqTagInputAddOnBlur']
|
|
1702
|
-
}], addOnPaste: [{
|
|
1703
|
-
type: Input,
|
|
1704
|
-
args: [{ alias: 'kbqTagInputAddOnPaste', transform: booleanAttribute }]
|
|
1705
|
-
}], disabled: [{
|
|
1617
|
+
}], addOnPaste: [{ type: i0.Input, args: [{ isSignal: true, alias: "kbqTagInputAddOnPaste", required: false }] }], disabled: [{
|
|
1706
1618
|
type: Input
|
|
1707
1619
|
}] } });
|
|
1708
1620
|
|
|
@@ -1711,8 +1623,8 @@ const COMPONENTS = [
|
|
|
1711
1623
|
KbqTagEditInput
|
|
1712
1624
|
];
|
|
1713
1625
|
class KbqTagsModule {
|
|
1714
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1715
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1626
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1627
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.25", ngImport: i0, type: KbqTagsModule, imports: [PlatformModule, KbqTagEditSubmit,
|
|
1716
1628
|
KbqTagEditInput, KbqTagList,
|
|
1717
1629
|
KbqTag,
|
|
1718
1630
|
KbqTagInput,
|
|
@@ -1725,14 +1637,14 @@ class KbqTagsModule {
|
|
|
1725
1637
|
KbqTagAvatar,
|
|
1726
1638
|
KbqTagRemove, KbqTagEditSubmit,
|
|
1727
1639
|
KbqTagEditInput] }); }
|
|
1728
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1640
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagsModule, providers: [
|
|
1729
1641
|
{
|
|
1730
1642
|
provide: KBQ_TAGS_DEFAULT_OPTIONS,
|
|
1731
1643
|
useValue: { separatorKeyCodes: [ENTER$1] }
|
|
1732
1644
|
}
|
|
1733
1645
|
], imports: [PlatformModule] }); }
|
|
1734
1646
|
}
|
|
1735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: KbqTagsModule, decorators: [{
|
|
1736
1648
|
type: NgModule,
|
|
1737
1649
|
args: [{
|
|
1738
1650
|
imports: [
|
|
@@ -1745,6 +1657,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1745
1657
|
KbqTagAvatar,
|
|
1746
1658
|
KbqTagRemove
|
|
1747
1659
|
],
|
|
1660
|
+
providers: [
|
|
1661
|
+
{
|
|
1662
|
+
provide: KBQ_TAGS_DEFAULT_OPTIONS,
|
|
1663
|
+
useValue: { separatorKeyCodes: [ENTER$1] }
|
|
1664
|
+
}
|
|
1665
|
+
],
|
|
1748
1666
|
exports: [
|
|
1749
1667
|
KbqTagList,
|
|
1750
1668
|
KbqTag,
|
|
@@ -1753,12 +1671,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.21", ngImpo
|
|
|
1753
1671
|
KbqTagAvatar,
|
|
1754
1672
|
KbqTagRemove,
|
|
1755
1673
|
...COMPONENTS
|
|
1756
|
-
],
|
|
1757
|
-
providers: [
|
|
1758
|
-
{
|
|
1759
|
-
provide: KBQ_TAGS_DEFAULT_OPTIONS,
|
|
1760
|
-
useValue: { separatorKeyCodes: [ENTER$1] }
|
|
1761
|
-
}
|
|
1762
1674
|
]
|
|
1763
1675
|
}]
|
|
1764
1676
|
}] });
|