@koobiq/components 20.4.2 → 21.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/accordion/accordion-trigger.scss +3 -10
- package/accordion/accordion.scss +4 -6
- package/actions-panel/actions-panel-container.scss +45 -1
- package/alert/alert.component.scss +3 -2
- package/app-switcher/_app-switcher-theme.scss +0 -4
- package/app-switcher/app-switcher-dropdown-app.scss +3 -2
- package/app-switcher/app-switcher-dropdown-site.scss +2 -1
- package/app-switcher/{kbq-app-switcher-list-item.scss → app-switcher-list-item.scss} +18 -4
- package/app-switcher/app-switcher-tokens.scss +15 -0
- package/app-switcher/app-switcher.scss +14 -4
- package/autocomplete/autocomplete.scss +7 -6
- package/badge/badge.component.scss +5 -8
- package/breadcrumbs/breadcrumbs.scss +25 -10
- package/button/_button-base.scss +30 -7
- package/button/_button-theme.scss +16 -0
- package/button/button-group.scss +7 -0
- package/button/button-tokens.scss +0 -2
- package/button/button.scss +34 -2
- package/button-toggle/_button-toggle-theme.scss +7 -2
- package/button-toggle/button-toggle.scss +65 -15
- package/checkbox/_checkbox-theme.scss +4 -3
- package/checkbox/checkbox.scss +3 -6
- package/clamped-text/clamped-text.scss +6 -2
- package/code-block/code-block-tokens.scss +0 -224
- package/code-block/code-block.scss +20 -9
- package/content-panel/content-panel-aside.scss +3 -2
- package/content-panel/content-panel-container.scss +37 -0
- package/content-panel/content-panel.scss +4 -3
- package/core/highlight/_highlight-theme.scss +3 -1
- package/core/option/action-container.scss +2 -2
- package/core/option/action.scss +2 -1
- package/core/option/option.scss +2 -1
- package/core/pop-up/_pop-up.scss +0 -37
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +5 -10
- package/core/styles/_core.scss +3 -0
- package/core/styles/_koobiq-theme.scss +5 -6
- package/core/styles/common/_animation.scss +44 -16
- package/core/styles/common/_groups-mixins.scss +21 -19
- package/core/styles/common/_groups.scss +4 -32
- package/core/styles/common/_index.scss +0 -2
- package/core/styles/common/_link.scss +117 -0
- package/core/styles/common/_list.scss +0 -26
- package/core/styles/common/_overlay.scss +8 -10
- package/core/styles/common/_rtl.scss +0 -14
- package/core/styles/common/_select.scss +33 -15
- package/core/styles/common/_squircle.scss +63 -0
- package/core/styles/common/_tokens.scss +0 -11
- package/core/styles/common/_vendor-prefixes.scss +0 -20
- package/core/styles/functions/_timing.scss +0 -22
- package/core/styles/theming/_scrollbar-theme.scss +6 -1
- package/core/styles/theming/_theming.scss +13 -65
- package/core/styles/typography/_index.scss +0 -1
- package/core/styles/typography/_typography.scss +0 -143
- package/core/styles/visual/_body.scss +1 -6
- package/core/styles/visual/_layout.scss +0 -12
- package/datepicker/calendar-body.scss +3 -1
- package/datepicker/calendar-header.scss +0 -1
- package/datepicker/datepicker-content.scss +33 -1
- package/datepicker/datepicker-toggle.scss +0 -38
- package/dl/dl-tokens.scss +10 -0
- package/dl/dl.scss +113 -13
- package/dropdown/_dropdown-theme.scss +4 -16
- package/dropdown/dropdown-item.scss +4 -10
- package/dropdown/dropdown.scss +2 -1
- package/empty-state/_empty-state-theme.scss +10 -4
- package/empty-state/empty-state-tokens.scss +4 -4
- package/empty-state/empty-state.scss +4 -0
- package/fesm2022/koobiq-components-accordion.mjs +347 -229
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
- package/fesm2022/koobiq-components-actions-panel.mjs +302 -187
- package/fesm2022/koobiq-components-actions-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-alert.mjs +39 -39
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-app-switcher.mjs +677 -367
- package/fesm2022/koobiq-components-app-switcher.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +620 -253
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +46 -48
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs +221 -169
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +565 -196
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +332 -116
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +172 -132
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-clamped-text.mjs +165 -158
- package/fesm2022/koobiq-components-clamped-text.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +755 -601
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-content-panel.mjs +260 -143
- package/fesm2022/koobiq-components-content-panel.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +4342 -1595
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +1713 -1606
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-divider.mjs +73 -36
- package/fesm2022/koobiq-components-divider.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +447 -89
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +703 -599
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-dynamic-translation.mjs +20 -20
- package/fesm2022/koobiq-components-dynamic-translation.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +46 -31
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +116 -60
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +550 -290
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +2810 -2538
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-flag.mjs +79 -24
- package/fesm2022/koobiq-components-flag.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +389 -525
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +366 -136
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-inline-edit.mjs +429 -212
- package/fesm2022/koobiq-components-inline-edit.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +601 -459
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-link-deprecated.mjs +196 -0
- package/fesm2022/koobiq-components-link-deprecated.mjs.map +1 -0
- package/fesm2022/koobiq-components-link.mjs +328 -125
- package/fesm2022/koobiq-components-link.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +583 -433
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +167 -68
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +55 -78
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +853 -475
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +895 -556
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-notification-center.mjs +680 -310
- package/fesm2022/koobiq-components-notification-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-overflow-items.mjs +46 -64
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +684 -285
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-bar.mjs +87 -33
- package/fesm2022/koobiq-components-progress-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs +52 -43
- package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +450 -231
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-resizer.mjs +127 -21
- package/fesm2022/koobiq-components-resizer.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar-deprecated.mjs +299 -0
- package/fesm2022/koobiq-components-scrollbar-deprecated.mjs.map +1 -0
- package/fesm2022/koobiq-components-scrollbar.mjs +745 -222
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-search-expandable.mjs +288 -126
- package/fesm2022/koobiq-components-search-expandable.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +883 -693
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +207 -88
- package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +689 -296
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-skeleton.mjs +815 -41
- package/fesm2022/koobiq-components-skeleton.mjs.map +1 -1
- package/fesm2022/koobiq-components-split-button.mjs +109 -88
- package/fesm2022/koobiq-components-split-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter-deprecated.mjs +591 -0
- package/fesm2022/koobiq-components-splitter-deprecated.mjs.map +1 -0
- package/fesm2022/koobiq-components-splitter.mjs +890 -501
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +63 -49
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +1062 -603
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +886 -733
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +213 -185
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-time-range.mjs +299 -147
- package/fesm2022/koobiq-components-time-range.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +233 -245
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +344 -142
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +229 -145
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +463 -143
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +177 -130
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +657 -214
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-top-bar.mjs +61 -32
- package/fesm2022/koobiq-components-top-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +719 -488
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +1506 -558
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/fesm2022/koobiq-components-username.mjs +290 -135
- package/fesm2022/koobiq-components-username.mjs.map +1 -1
- package/file-upload/dropzone.scss +31 -3
- package/file-upload/file-upload-tokens.scss +2 -22
- package/file-upload/file-upload.scss +6 -0
- package/file-upload/multiple-file-upload.component.scss +14 -12
- package/file-upload/single-file-upload.component.scss +3 -2
- package/filter-bar/filters.scss +7 -0
- package/filter-bar/pipes/base-pipe.scss +3 -3
- package/filter-bar/pipes/pipe-date.scss +8 -1
- package/flag/flag-tokens.scss +22 -0
- package/flag/flag.scss +34 -21
- package/form-field/{_fiedset-theme.scss → _fieldset-theme.scss} +1 -5
- package/form-field/_form-field-theme.scss +4 -9
- package/form-field/cleaner.scss +3 -1
- package/form-field/fieldset.scss +3 -4
- package/form-field/form-field.scss +26 -21
- package/form-field/password-toggle.scss +3 -1
- package/icon/_icon-button-theme.scss +7 -0
- package/icon/_icon-theme.scss +10 -7
- package/icon/icon-button.scss +0 -2
- package/icon/icon-tokens.scss +12 -9
- package/inline-edit/inline-edit.scss +40 -54
- package/input/input.scss +4 -0
- package/link/{_link-theme.scss → deprecated/_link-theme.scss} +11 -6
- package/link/deprecated/link-tokens.scss +27 -0
- package/link/link-tokens.scss +6 -25
- package/link/link.scss +137 -0
- package/list/list.scss +3 -2
- package/loader-overlay/_loader-overlay-theme.scss +19 -10
- package/loader-overlay/loader-overlay-tokens.scss +0 -2
- package/loader-overlay/loader-overlay.scss +7 -1
- package/markdown/_markdown-theme.scss +16 -0
- package/markdown/markdown-tokens.scss +5 -0
- package/markdown/markdown.scss +2 -1
- package/modal/_modal-animation.scss +23 -14
- package/modal/modal-tokens.scss +2 -1
- package/modal/modal.scss +35 -31
- package/navbar/_navbar-item_horizontal.scss +8 -6
- package/navbar/_navbar-item_vertical.scss +18 -6
- package/navbar/_navbar-theme.scss +9 -1
- package/navbar/navbar-brand.scss +8 -6
- package/navbar/navbar-divider.scss +1 -1
- package/navbar/navbar-item.scss +8 -9
- package/navbar/navbar-toggle.scss +3 -3
- package/navbar/navbar-tokens.scss +14 -0
- package/navbar/navbar.scss +1 -2
- package/navbar/vertical-navbar.scss +2 -2
- package/notification-center/_notification-center-theme.scss +11 -6
- package/notification-center/notification-center-tokens.scss +33 -0
- package/notification-center/notification-center.scss +58 -20
- package/notification-center/notification-item.scss +15 -6
- package/package.json +112 -81
- package/popover/popover-tokens.scss +0 -2
- package/popover/popover.scss +41 -19
- package/prebuilt-themes/theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +20 -3
- package/progress-bar/progress-bar-tokens.scss +3 -0
- package/progress-bar/progress-bar.scss +36 -8
- package/progress-spinner/progress-spinner.scss +4 -3
- package/radio/_radio-theme.scss +21 -4
- package/radio/radio-tokens.scss +7 -3
- package/radio/radio.scss +55 -8
- package/schematics/collection.json +399 -7
- package/schematics/migrations/accordion-state-saving-default/README.md +60 -0
- package/schematics/migrations/accordion-state-saving-default/data.js +75 -0
- package/schematics/migrations/accordion-state-saving-default/index.js +60 -0
- package/schematics/migrations/accordion-state-saving-default/schema.json +15 -0
- package/schematics/migrations/actions-panel-overlay-container/README.md +35 -0
- package/schematics/migrations/actions-panel-overlay-container/data.js +47 -0
- package/schematics/migrations/actions-panel-overlay-container/index.js +54 -0
- package/schematics/migrations/actions-panel-overlay-container/schema.json +15 -0
- package/schematics/migrations/alert-signals/README.md +13 -7
- package/schematics/migrations/alert-signals/data.js +3 -0
- package/schematics/migrations/alert-signals/index.js +70 -203
- package/schematics/migrations/angular-animations-removal/README.md +46 -0
- package/schematics/migrations/angular-animations-removal/data.js +150 -0
- package/schematics/migrations/angular-animations-removal/index.js +20 -0
- package/schematics/migrations/angular-animations-removal/schema.json +15 -0
- package/schematics/migrations/app-switcher-signals/README.md +88 -0
- package/schematics/migrations/app-switcher-signals/data.js +136 -0
- package/schematics/migrations/app-switcher-signals/index.js +365 -0
- package/schematics/migrations/app-switcher-signals/schema.json +20 -0
- package/schematics/migrations/autocomplete-panel-width-auto/README.md +2 -2
- package/schematics/migrations/autocomplete-panel-width-auto/index.js +1 -1
- package/schematics/migrations/autocomplete-signals/README.md +92 -0
- package/schematics/migrations/autocomplete-signals/data.js +149 -0
- package/schematics/migrations/autocomplete-signals/index.js +706 -0
- package/schematics/migrations/autocomplete-signals/schema.json +20 -0
- package/schematics/migrations/badge-signals/README.md +77 -0
- package/schematics/migrations/badge-signals/data.js +109 -0
- package/schematics/migrations/badge-signals/index.js +693 -0
- package/schematics/migrations/badge-signals/schema.json +20 -0
- package/schematics/migrations/button-state-and-styles/README.md +129 -0
- package/schematics/migrations/button-state-and-styles/data.js +136 -0
- package/schematics/migrations/button-state-and-styles/index.js +220 -0
- package/schematics/migrations/button-state-and-styles/schema.json +20 -0
- package/schematics/migrations/button-supported-colors/README.md +73 -0
- package/schematics/migrations/button-supported-colors/data.js +106 -0
- package/schematics/migrations/button-supported-colors/index.js +260 -0
- package/schematics/migrations/button-supported-colors/schema.json +20 -0
- package/schematics/migrations/button-toggle-signals-and-aria/README.md +137 -0
- package/schematics/migrations/button-toggle-signals-and-aria/data.js +200 -0
- package/schematics/migrations/button-toggle-signals-and-aria/index.js +496 -0
- package/schematics/migrations/button-toggle-signals-and-aria/schema.json +20 -0
- package/schematics/migrations/button-truncation/README.md +110 -0
- package/schematics/migrations/button-truncation/data.js +88 -0
- package/schematics/migrations/button-truncation/index.js +269 -0
- package/schematics/migrations/button-truncation/schema.json +20 -0
- package/schematics/migrations/checkbox-signals/README.md +76 -0
- package/schematics/migrations/checkbox-signals/data.js +114 -0
- package/schematics/migrations/checkbox-signals/index.js +634 -0
- package/schematics/migrations/checkbox-signals/schema.json +20 -0
- package/schematics/migrations/clamped-text-disclosure/README.md +62 -0
- package/schematics/migrations/clamped-text-disclosure/data.js +101 -0
- package/schematics/migrations/clamped-text-disclosure/index.js +59 -0
- package/schematics/migrations/clamped-text-disclosure/schema.json +15 -0
- package/schematics/migrations/code-block-signals/README.md +84 -0
- package/schematics/migrations/code-block-signals/data.js +121 -0
- package/schematics/migrations/code-block-signals/index.js +700 -0
- package/schematics/migrations/code-block-signals/schema.json +20 -0
- package/schematics/migrations/color-signals/README.md +46 -0
- package/schematics/migrations/color-signals/data.js +131 -0
- package/schematics/migrations/color-signals/index.js +19 -0
- package/schematics/migrations/color-signals/schema.json +20 -0
- package/schematics/migrations/core-mixins-removal/README.md +20 -0
- package/schematics/migrations/core-mixins-removal/data.js +27 -0
- package/schematics/migrations/core-mixins-removal/index.js +17 -0
- package/schematics/migrations/core-mixins-removal/schema.json +15 -0
- package/schematics/migrations/css-selectors/README.md +2 -2
- package/schematics/migrations/css-selectors/index.js +1 -1
- package/schematics/migrations/datepicker-signals/README.md +24 -0
- package/schematics/migrations/datepicker-signals/data.js +49 -0
- package/schematics/migrations/datepicker-signals/index.js +17 -0
- package/schematics/migrations/datepicker-signals/schema.json +15 -0
- package/schematics/migrations/deprecated-icons/README.md +2 -2
- package/schematics/migrations/deprecated-icons/index.js +1 -1
- package/schematics/migrations/design-tokens-v4/README.md +75 -0
- package/schematics/migrations/design-tokens-v4/index.js +59 -0
- package/schematics/migrations/design-tokens-v4/schema.json +15 -0
- package/schematics/migrations/divider-signals-and-aria/README.md +47 -0
- package/schematics/migrations/divider-signals-and-aria/data.js +62 -0
- package/schematics/migrations/divider-signals-and-aria/index.js +211 -0
- package/schematics/migrations/divider-signals-and-aria/schema.json +15 -0
- package/schematics/migrations/dl-attribute-coercion/README.md +59 -0
- package/schematics/migrations/dl-attribute-coercion/data.js +85 -0
- package/schematics/migrations/dl-attribute-coercion/index.js +161 -0
- package/schematics/migrations/dl-attribute-coercion/schema.json +15 -0
- package/schematics/migrations/dl-standalone-names/README.md +49 -0
- package/schematics/migrations/dl-standalone-names/data.js +44 -0
- package/schematics/migrations/dl-standalone-names/index.js +321 -0
- package/schematics/migrations/dl-standalone-names/schema.json +20 -0
- package/schematics/migrations/dropdown-demote-overlay/README.md +137 -0
- package/schematics/migrations/dropdown-demote-overlay/data.js +84 -0
- package/schematics/migrations/dropdown-demote-overlay/index.js +288 -0
- package/schematics/migrations/dropdown-demote-overlay/schema.json +20 -0
- package/schematics/migrations/dropdown-signals/README.md +83 -0
- package/schematics/migrations/dropdown-signals/data.js +152 -0
- package/schematics/migrations/dropdown-signals/index.js +19 -0
- package/schematics/migrations/dropdown-signals/schema.json +20 -0
- package/schematics/migrations/empty-state-error-color/README.md +84 -0
- package/schematics/migrations/empty-state-error-color/data.js +85 -0
- package/schematics/migrations/empty-state-error-color/index.js +71 -0
- package/schematics/migrations/empty-state-error-color/schema.json +15 -0
- package/schematics/migrations/empty-state-size-attr/README.md +2 -2
- package/schematics/migrations/empty-state-size-attr/index.js +1 -1
- package/schematics/migrations/file-upload-cva-and-primitives/README.md +70 -0
- package/schematics/migrations/file-upload-cva-and-primitives/data.js +97 -0
- package/schematics/migrations/file-upload-cva-and-primitives/index.js +60 -0
- package/schematics/migrations/file-upload-cva-and-primitives/schema.json +15 -0
- package/schematics/migrations/file-upload-deprecated-outputs/README.md +90 -0
- package/schematics/migrations/file-upload-deprecated-outputs/data.js +20 -0
- package/schematics/migrations/file-upload-deprecated-outputs/index.js +70 -0
- package/schematics/migrations/file-upload-deprecated-outputs/schema.json +20 -0
- package/schematics/migrations/filter-bar-rename-action/README.md +183 -0
- package/schematics/migrations/filter-bar-rename-action/data.js +151 -0
- package/schematics/migrations/filter-bar-rename-action/index.js +177 -0
- package/schematics/migrations/filter-bar-rename-action/schema.json +20 -0
- package/schematics/migrations/filter-bar-signals/README.md +27 -16
- package/schematics/migrations/filter-bar-signals/data.js +1 -2
- package/schematics/migrations/filter-bar-signals/index.js +100 -195
- package/schematics/migrations/filter-bar-state-saving-default/README.md +53 -0
- package/schematics/migrations/filter-bar-state-saving-default/data.js +87 -0
- package/schematics/migrations/filter-bar-state-saving-default/index.js +61 -0
- package/schematics/migrations/filter-bar-state-saving-default/schema.json +15 -0
- package/schematics/migrations/flag-inner-html/README.md +67 -0
- package/schematics/migrations/flag-inner-html/data.js +58 -0
- package/schematics/migrations/flag-inner-html/index.js +61 -0
- package/schematics/migrations/flag-inner-html/schema.json +15 -0
- package/schematics/migrations/form-field-signals/README.md +125 -0
- package/schematics/migrations/form-field-signals/data.js +288 -0
- package/schematics/migrations/form-field-signals/index.js +382 -0
- package/schematics/migrations/form-field-signals/schema.json +20 -0
- package/schematics/migrations/icon-semantics-and-api/README.md +65 -0
- package/schematics/migrations/icon-semantics-and-api/data.js +97 -0
- package/schematics/migrations/icon-semantics-and-api/index.js +64 -0
- package/schematics/migrations/icon-semantics-and-api/schema.json +15 -0
- package/schematics/migrations/icons-replacement/README.md +5 -5
- package/schematics/migrations/icons-replacement/index.js +1 -1
- package/schematics/migrations/inline-edit-a11y-and-types/README.md +82 -0
- package/schematics/migrations/inline-edit-a11y-and-types/data.js +117 -0
- package/schematics/migrations/inline-edit-a11y-and-types/index.js +97 -0
- package/schematics/migrations/inline-edit-a11y-and-types/schema.json +20 -0
- package/schematics/migrations/input-number-surface/README.md +140 -0
- package/schematics/migrations/input-number-surface/data.js +135 -0
- package/schematics/migrations/input-number-surface/index.js +292 -0
- package/schematics/migrations/input-number-surface/schema.json +20 -0
- package/schematics/migrations/input-signals/README.md +20 -0
- package/schematics/migrations/input-signals/data.js +30 -0
- package/schematics/migrations/input-signals/index.js +17 -0
- package/schematics/migrations/input-signals/schema.json +15 -0
- package/schematics/migrations/link-deprecated-path/README.md +144 -0
- package/schematics/migrations/link-deprecated-path/index.js +19 -0
- package/schematics/migrations/link-deprecated-path/schema.json +20 -0
- package/schematics/migrations/link-signals/README.md +71 -0
- package/schematics/migrations/link-signals/data.js +116 -0
- package/schematics/migrations/link-signals/index.js +415 -0
- package/schematics/migrations/link-signals/schema.json +20 -0
- package/schematics/migrations/list-signals/README.md +22 -0
- package/schematics/migrations/list-signals/data.js +35 -0
- package/schematics/migrations/list-signals/index.js +17 -0
- package/schematics/migrations/list-signals/schema.json +15 -0
- package/schematics/migrations/list-tree-multiple-input/README.md +105 -0
- package/schematics/migrations/list-tree-multiple-input/data.js +74 -0
- package/schematics/migrations/list-tree-multiple-input/index.js +221 -0
- package/schematics/migrations/list-tree-multiple-input/schema.json +20 -0
- package/schematics/migrations/loader-overlay-signals/README.md +62 -0
- package/schematics/migrations/loader-overlay-signals/data.js +101 -0
- package/schematics/migrations/loader-overlay-signals/index.js +697 -0
- package/schematics/migrations/loader-overlay-signals/schema.json +20 -0
- package/schematics/migrations/loader-overlay-size-attr/README.md +2 -2
- package/schematics/migrations/loader-overlay-size-attr/index.js +1 -1
- package/schematics/migrations/locale-configuration-providers/README.md +163 -0
- package/schematics/migrations/locale-configuration-providers/data.js +257 -0
- package/schematics/migrations/locale-configuration-providers/index.js +294 -0
- package/schematics/migrations/locale-configuration-providers/schema.json +20 -0
- package/schematics/migrations/mandatory-peer-dependencies/README.md +70 -0
- package/schematics/migrations/mandatory-peer-dependencies/index.js +42 -0
- package/schematics/migrations/mandatory-peer-dependencies/schema.json +15 -0
- package/schematics/migrations/markdown-signals/README.md +58 -0
- package/schematics/migrations/markdown-signals/data.js +79 -0
- package/schematics/migrations/markdown-signals/index.js +639 -0
- package/schematics/migrations/markdown-signals/schema.json +20 -0
- package/schematics/migrations/modal-dialog-semantics/README.md +106 -0
- package/schematics/migrations/modal-dialog-semantics/data.js +110 -0
- package/schematics/migrations/modal-dialog-semantics/index.js +58 -0
- package/schematics/migrations/modal-dialog-semantics/schema.json +15 -0
- package/schematics/migrations/modal-signals/README.md +88 -0
- package/schematics/migrations/modal-signals/data.js +132 -0
- package/schematics/migrations/modal-signals/index.js +19 -0
- package/schematics/migrations/modal-signals/schema.json +20 -0
- package/schematics/migrations/navbar-signals-and-aria/README.md +111 -0
- package/schematics/migrations/navbar-signals-and-aria/data.js +198 -0
- package/schematics/migrations/navbar-signals-and-aria/index.js +568 -0
- package/schematics/migrations/navbar-signals-and-aria/schema.json +20 -0
- package/schematics/migrations/new-icons-pack/README.md +10 -10
- package/schematics/migrations/new-icons-pack/index.js +1 -1
- package/schematics/migrations/notification-center-signals/README.md +67 -0
- package/schematics/migrations/notification-center-signals/data.js +66 -0
- package/schematics/migrations/notification-center-signals/index.js +61 -0
- package/schematics/migrations/notification-center-signals/schema.json +15 -0
- package/schematics/migrations/option-signals/README.md +37 -0
- package/schematics/migrations/option-signals/data.js +86 -0
- package/schematics/migrations/option-signals/index.js +19 -0
- package/schematics/migrations/option-signals/schema.json +20 -0
- package/schematics/migrations/popover-leave-delay/README.md +51 -0
- package/schematics/migrations/popover-leave-delay/data.js +61 -0
- package/schematics/migrations/popover-leave-delay/index.js +54 -0
- package/schematics/migrations/popover-leave-delay/schema.json +15 -0
- package/schematics/migrations/progress-bar-percentage-and-aria/README.md +54 -0
- package/schematics/migrations/progress-bar-percentage-and-aria/data.js +76 -0
- package/schematics/migrations/progress-bar-percentage-and-aria/index.js +58 -0
- package/schematics/migrations/progress-bar-percentage-and-aria/schema.json +15 -0
- package/schematics/migrations/progress-spinner-signals/README.md +72 -0
- package/schematics/migrations/progress-spinner-signals/data.js +83 -0
- package/schematics/migrations/progress-spinner-signals/index.js +694 -0
- package/schematics/migrations/progress-spinner-signals/schema.json +20 -0
- package/schematics/migrations/query-list-signals/README.md +32 -0
- package/schematics/migrations/query-list-signals/data.js +70 -0
- package/schematics/migrations/query-list-signals/index.js +17 -0
- package/schematics/migrations/query-list-signals/schema.json +15 -0
- package/schematics/migrations/radio-signals-and-aria/README.md +82 -0
- package/schematics/migrations/radio-signals-and-aria/data.js +163 -0
- package/schematics/migrations/radio-signals-and-aria/index.js +39 -0
- package/schematics/migrations/radio-signals-and-aria/schema.json +20 -0
- package/schematics/migrations/read-state-dwell-handlers/README.md +125 -0
- package/schematics/migrations/read-state-dwell-handlers/data.js +45 -0
- package/schematics/migrations/read-state-dwell-handlers/index.js +215 -0
- package/schematics/migrations/read-state-dwell-handlers/schema.json +20 -0
- package/schematics/migrations/scrollbar-deprecated-path/README.md +128 -0
- package/schematics/migrations/scrollbar-deprecated-path/index.js +20 -0
- package/schematics/migrations/scrollbar-deprecated-path/schema.json +20 -0
- package/schematics/migrations/select-signal-inputs/README.md +61 -0
- package/schematics/migrations/select-signal-inputs/data.js +99 -0
- package/schematics/migrations/select-signal-inputs/index.js +57 -0
- package/schematics/migrations/select-signal-inputs/schema.json +15 -0
- package/schematics/migrations/sidepanel-non-modal-behavior/README.md +57 -0
- package/schematics/migrations/sidepanel-non-modal-behavior/data.js +111 -0
- package/schematics/migrations/sidepanel-non-modal-behavior/index.js +57 -0
- package/schematics/migrations/sidepanel-non-modal-behavior/schema.json +15 -0
- package/schematics/migrations/signal-inputs-subclasses/README.md +28 -0
- package/schematics/migrations/signal-inputs-subclasses/data.js +69 -0
- package/schematics/migrations/signal-inputs-subclasses/index.js +17 -0
- package/schematics/migrations/signal-inputs-subclasses/schema.json +15 -0
- package/schematics/migrations/split-button-optional-disabled/README.md +47 -0
- package/schematics/migrations/split-button-optional-disabled/data.js +53 -0
- package/schematics/migrations/split-button-optional-disabled/index.js +57 -0
- package/schematics/migrations/split-button-optional-disabled/schema.json +15 -0
- package/schematics/migrations/splitter-deprecated-path/README.md +136 -0
- package/schematics/migrations/splitter-deprecated-path/index.js +20 -0
- package/schematics/migrations/splitter-deprecated-path/schema.json +20 -0
- package/schematics/migrations/state-saving-default/README.md +67 -0
- package/schematics/migrations/state-saving-default/data.js +88 -0
- package/schematics/migrations/state-saving-default/index.js +62 -0
- package/schematics/migrations/state-saving-default/schema.json +15 -0
- package/schematics/migrations/table-cell-content/README.md +55 -0
- package/schematics/migrations/table-cell-content/data.js +66 -0
- package/schematics/migrations/table-cell-content/index.js +66 -0
- package/schematics/migrations/table-cell-content/schema.json +15 -0
- package/schematics/migrations/tabs-signals-and-aria/README.md +93 -0
- package/schematics/migrations/tabs-signals-and-aria/data.js +139 -0
- package/schematics/migrations/tabs-signals-and-aria/index.js +65 -0
- package/schematics/migrations/tabs-signals-and-aria/schema.json +15 -0
- package/schematics/migrations/tag-list-cleaner/README.md +58 -0
- package/schematics/migrations/tag-list-cleaner/data.js +42 -0
- package/schematics/migrations/tag-list-cleaner/index.js +196 -0
- package/schematics/migrations/tag-list-cleaner/schema.json +20 -0
- package/schematics/migrations/tag-slots/README.md +41 -0
- package/schematics/migrations/tag-slots/index.js +190 -0
- package/schematics/migrations/tag-slots/schema.json +20 -0
- package/schematics/migrations/tags-signals/README.md +85 -0
- package/schematics/migrations/tags-signals/data.js +103 -0
- package/schematics/migrations/tags-signals/index.js +673 -0
- package/schematics/migrations/tags-signals/schema.json +20 -0
- package/schematics/migrations/textarea-signals/README.md +72 -0
- package/schematics/migrations/textarea-signals/data.js +121 -0
- package/schematics/migrations/textarea-signals/index.js +379 -0
- package/schematics/migrations/textarea-signals/schema.json +20 -0
- package/schematics/migrations/time-range-title-for/README.md +164 -0
- package/schematics/migrations/time-range-title-for/data.js +139 -0
- package/schematics/migrations/time-range-title-for/index.js +163 -0
- package/schematics/migrations/time-range-title-for/schema.json +20 -0
- package/schematics/migrations/timepicker-signals/README.md +78 -0
- package/schematics/migrations/timepicker-signals/data.js +82 -0
- package/schematics/migrations/timepicker-signals/index.js +709 -0
- package/schematics/migrations/timepicker-signals/schema.json +20 -0
- package/schematics/migrations/timezone-grouping-utils/README.md +73 -0
- package/schematics/migrations/timezone-grouping-utils/data.js +101 -0
- package/schematics/migrations/timezone-grouping-utils/index.js +64 -0
- package/schematics/migrations/timezone-grouping-utils/schema.json +15 -0
- package/schematics/migrations/title-encapsulation/README.md +49 -0
- package/schematics/migrations/title-encapsulation/data.js +69 -0
- package/schematics/migrations/title-encapsulation/index.js +57 -0
- package/schematics/migrations/title-encapsulation/schema.json +15 -0
- package/schematics/migrations/toast-stack-and-defaults/README.md +102 -0
- package/schematics/migrations/toast-stack-and-defaults/data.js +79 -0
- package/schematics/migrations/toast-stack-and-defaults/index.js +53 -0
- package/schematics/migrations/toast-stack-and-defaults/schema.json +15 -0
- package/schematics/migrations/tooltip-pointer-events-and-types/README.md +53 -0
- package/schematics/migrations/tooltip-pointer-events-and-types/data.js +89 -0
- package/schematics/migrations/tooltip-pointer-events-and-types/index.js +60 -0
- package/schematics/migrations/tooltip-pointer-events-and-types/schema.json +15 -0
- package/schematics/migrations/top-bar-container-selectors/README.md +111 -0
- package/schematics/migrations/top-bar-container-selectors/data.js +56 -0
- package/schematics/migrations/top-bar-container-selectors/index.js +84 -0
- package/schematics/migrations/top-bar-container-selectors/schema.json +20 -0
- package/schematics/migrations/tree-select-signals/README.md +61 -0
- package/schematics/migrations/tree-select-signals/data.js +106 -0
- package/schematics/migrations/tree-select-signals/index.js +58 -0
- package/schematics/migrations/tree-select-signals/schema.json +15 -0
- package/schematics/migrations/tree-signals/README.md +82 -0
- package/schematics/migrations/tree-signals/data.js +123 -0
- package/schematics/migrations/tree-signals/index.js +54 -0
- package/schematics/migrations/tree-signals/schema.json +15 -0
- package/schematics/migrations/tree-state-saving-default/README.md +66 -0
- package/schematics/migrations/tree-state-saving-default/data.js +78 -0
- package/schematics/migrations/tree-state-saving-default/index.js +60 -0
- package/schematics/migrations/tree-state-saving-default/schema.json +15 -0
- package/schematics/migrations/username-pipe-injection/README.md +59 -0
- package/schematics/migrations/username-pipe-injection/data.js +78 -0
- package/schematics/migrations/username-pipe-injection/index.js +58 -0
- package/schematics/migrations/username-pipe-injection/schema.json +15 -0
- package/schematics/migrations/v20-upgrade/README.md +36 -16
- package/schematics/migrations/v20-upgrade/data.js +124 -77
- package/schematics/migrations/v20-upgrade/index.js +6 -213
- package/schematics/migrations/v21-upgrade/README.md +271 -0
- package/schematics/migrations/v21-upgrade/data.js +1371 -0
- package/schematics/migrations/v21-upgrade/index.js +94 -0
- package/schematics/migrations/v21-upgrade/schema.json +20 -0
- package/schematics/migrations/zoneless-change-detection/README.md +30 -0
- package/schematics/migrations/zoneless-change-detection/data.js +29 -0
- package/schematics/migrations/zoneless-change-detection/index.js +20 -0
- package/schematics/migrations/zoneless-change-detection/schema.json +15 -0
- package/schematics/migrations.json +392 -2
- package/schematics/ng-add/index.js +515 -14
- package/schematics/ng-add/schema.json +15 -0
- package/schematics/utils/deprecated-path-migration.js +61 -0
- package/schematics/utils/package-config.js +9 -105
- package/scrollbar/{_scrollbar-component-theme.scss → deprecated/_scrollbar-component-theme.scss} +1 -1
- package/scrollbar/{scrollbar.component.scss → deprecated/scrollbar.component.scss} +1 -1
- package/scrollbar/native-scrollbar.scss +68 -0
- package/scrollbar/scrollbar-tokens.scss +13 -22
- package/scrollbar/scrollbar-track.scss +94 -0
- package/scrollbar/scrollbar-viewport.scss +33 -0
- package/scrollbar/scrollbar.scss +24 -0
- package/search-expandable/search-expandable-tokens.scss +4 -0
- package/search-expandable/search-expandable.scss +4 -2
- package/select/_select-theme.scss +3 -16
- package/select/select.scss +0 -6
- package/sidebar/sidebar.scss +20 -0
- package/sidepanel/_sidepanel-theme.scss +1 -1
- package/sidepanel/sidepanel-tokens.scss +7 -1
- package/sidepanel/sidepanel.scss +41 -5
- package/skeleton/skeleton-presets.scss +350 -0
- package/skeleton/skeleton-tokens.scss +127 -0
- package/skeleton/skeleton.scss +53 -45
- package/split-button/_split-button-theme.scss +4 -4
- package/split-button/split-button.scss +2 -6
- package/splitter/{_splitter-theme.scss → deprecated/_splitter-theme.scss} +1 -1
- package/splitter/deprecated/splitter.scss +51 -0
- package/splitter/splitter-tokens.scss +19 -0
- package/splitter/splitter.scss +148 -28
- package/table/_table-theme.scss +13 -12
- package/table/table-tokens.scss +8 -0
- package/table/table.scss +47 -22
- package/tabs/_tabs-common.scss +14 -14
- package/tabs/_tabs-theme.scss +4 -5
- package/tabs/tab-body.scss +49 -1
- package/tabs/tab-header.scss +2 -1
- package/tags/tag-list.scss +4 -0
- package/tags/tag.scss +19 -1
- package/time-range/time-range.scss +9 -0
- package/timezone/timezone-option.component.scss +4 -7
- package/timezone/timezone-select.component.scss +3 -0
- package/toast/_toast-theme.scss +1 -4
- package/toast/toast-container.component.scss +19 -13
- package/toast/toast-tokens.scss +12 -6
- package/toast/toast.component.scss +42 -19
- package/toggle/_toggle-theme.scss +4 -10
- package/toggle/toggle.scss +67 -26
- package/tooltip/_tooltip-theme.scss +7 -1
- package/tooltip/tooltip-tokens.scss +1 -2
- package/tooltip/tooltip.scss +55 -9
- package/top-bar/top-bar-tokens.scss +13 -2
- package/top-bar/top-bar.scss +24 -19
- package/tree/_tree-theme.scss +0 -1
- package/tree/toggle.scss +5 -9
- package/tree/tree-option.scss +2 -4
- package/tree/tree-tokens.scss +2 -1
- package/tree/tree.scss +3 -5
- package/tree-select/_tree-select-theme.scss +4 -15
- package/tree-select/tree-select-tokens.scss +16 -0
- package/tree-select/tree-select.scss +0 -6
- package/{accordion/index.d.ts → types/koobiq-components-accordion.d.ts} +102 -84
- package/{actions-panel/index.d.ts → types/koobiq-components-actions-panel.d.ts} +44 -59
- package/{alert/index.d.ts → types/koobiq-components-alert.d.ts} +8 -3
- package/types/koobiq-components-app-switcher.d.ts +406 -0
- package/types/koobiq-components-autocomplete.d.ts +443 -0
- package/{badge/index.d.ts → types/koobiq-components-badge.d.ts} +25 -20
- package/{breadcrumbs/index.d.ts → types/koobiq-components-breadcrumbs.d.ts} +97 -46
- package/types/koobiq-components-button-toggle.d.ts +340 -0
- package/types/koobiq-components-button.d.ts +296 -0
- package/types/koobiq-components-checkbox.d.ts +172 -0
- package/types/koobiq-components-clamped-text.d.ts +184 -0
- package/{code-block/index.d.ts → types/koobiq-components-code-block.d.ts} +114 -79
- package/{content-panel/index.d.ts → types/koobiq-components-content-panel.d.ts} +81 -25
- package/{core/index.d.ts → types/koobiq-components-core.d.ts} +2827 -865
- package/{datepicker/index.d.ts → types/koobiq-components-datepicker.d.ts} +161 -116
- package/types/koobiq-components-divider.d.ts +43 -0
- package/types/koobiq-components-dl.d.ts +235 -0
- package/{dropdown/index.d.ts → types/koobiq-components-dropdown.d.ts} +245 -239
- package/types/koobiq-components-ellipsis-center.d.ts +85 -0
- package/types/koobiq-components-empty-state.d.ts +106 -0
- package/{file-upload/index.d.ts → types/koobiq-components-file-upload.d.ts} +214 -107
- package/{filter-bar/index.d.ts → types/koobiq-components-filter-bar.d.ts} +410 -495
- package/types/koobiq-components-flag.d.ts +68 -0
- package/{form-field/index.d.ts → types/koobiq-components-form-field.d.ts} +167 -191
- package/types/koobiq-components-icon.d.ts +333 -0
- package/{inline-edit/index.d.ts → types/koobiq-components-inline-edit.d.ts} +109 -46
- package/types/koobiq-components-input.d.ts +477 -0
- package/types/koobiq-components-link-deprecated.d.ts +101 -0
- package/types/koobiq-components-link.d.ts +176 -0
- package/{list/index.d.ts → types/koobiq-components-list.d.ts} +162 -99
- package/types/koobiq-components-loader-overlay.d.ts +101 -0
- package/{markdown/index.d.ts → types/koobiq-components-markdown.d.ts} +16 -24
- package/types/koobiq-components-modal.d.ts +666 -0
- package/types/koobiq-components-navbar.d.ts +569 -0
- package/types/koobiq-components-notification-center.d.ts +500 -0
- package/{overflow-items/index.d.ts → types/koobiq-components-overflow-items.d.ts} +8 -22
- package/types/koobiq-components-popover.d.ts +468 -0
- package/types/koobiq-components-progress-bar.d.ts +67 -0
- package/{progress-spinner/index.d.ts → types/koobiq-components-progress-spinner.d.ts} +33 -10
- package/types/koobiq-components-radio.d.ts +294 -0
- package/{resizer/index.d.ts → types/koobiq-components-resizer.d.ts} +37 -2
- package/{scrollbar/index.d.ts → types/koobiq-components-scrollbar-deprecated.d.ts} +18 -1
- package/types/koobiq-components-scrollbar.d.ts +154 -0
- package/types/koobiq-components-search-expandable.d.ts +164 -0
- package/{select/index.d.ts → types/koobiq-components-select.d.ts} +360 -167
- package/types/koobiq-components-sidebar.d.ts +152 -0
- package/types/koobiq-components-sidepanel.d.ts +436 -0
- package/types/koobiq-components-skeleton.d.ts +234 -0
- package/types/koobiq-components-split-button.d.ts +65 -0
- package/{splitter/index.d.ts → types/koobiq-components-splitter-deprecated.d.ts} +44 -1
- package/types/koobiq-components-splitter.d.ts +406 -0
- package/types/koobiq-components-table.d.ts +44 -0
- package/types/koobiq-components-tabs.d.ts +888 -0
- package/{tags/index.d.ts → types/koobiq-components-tags.d.ts} +249 -133
- package/types/koobiq-components-textarea.d.ts +178 -0
- package/{time-range/index.d.ts → types/koobiq-components-time-range.d.ts} +135 -62
- package/types/koobiq-components-timepicker.d.ts +223 -0
- package/types/koobiq-components-timezone.d.ts +266 -0
- package/types/koobiq-components-title.d.ts +184 -0
- package/types/koobiq-components-toast.d.ts +289 -0
- package/types/koobiq-components-toggle.d.ts +121 -0
- package/types/koobiq-components-tooltip.d.ts +610 -0
- package/types/koobiq-components-top-bar.d.ts +61 -0
- package/types/koobiq-components-tree-select.d.ts +667 -0
- package/types/koobiq-components-tree.d.ts +1290 -0
- package/types/koobiq-components-username.d.ts +340 -0
- package/username/_username-theme.scss +35 -0
- package/username/username.scss +10 -34
- package/app-switcher/index.d.ts +0 -276
- package/autocomplete/index.d.ts +0 -286
- package/button/index.d.ts +0 -153
- package/button-toggle/index.d.ts +0 -162
- package/checkbox/index.d.ts +0 -163
- package/clamped-text/index.d.ts +0 -146
- package/core/styles/_tokens.scss +0 -7
- package/core/styles/common/_clearfix.scss +0 -13
- package/core/styles/common/_popup.scss +0 -6
- package/core/styles/functions/_index.scss +0 -3
- package/core/styles/functions/_number.scss +0 -60
- package/core/styles/functions/_string.scss +0 -18
- package/core/styles/theming/scrollbar-tokens.scss +0 -25
- package/core/styles/typography/_typography-utils.scss +0 -84
- package/divider/index.d.ts +0 -20
- package/dl/index.d.ts +0 -45
- package/ellipsis-center/index.d.ts +0 -71
- package/empty-state/index.d.ts +0 -45
- package/flag/index.d.ts +0 -44
- package/icon/index.d.ts +0 -200
- package/input/index.d.ts +0 -354
- package/link/index.d.ts +0 -56
- package/loader-overlay/index.d.ts +0 -57
- package/modal/index.d.ts +0 -339
- package/navbar/index.d.ts +0 -372
- package/notification-center/index.d.ts +0 -323
- package/popover/index.d.ts +0 -182
- package/prebuilt-themes/dark-theme.css +0 -1
- package/prebuilt-themes/light-theme.css +0 -1
- package/progress-bar/index.d.ts +0 -31
- package/radio/index.d.ts +0 -203
- package/search-expandable/index.d.ts +0 -101
- package/sidebar/index.d.ts +0 -94
- package/sidepanel/index.d.ts +0 -272
- package/skeleton/index.d.ts +0 -26
- package/split-button/index.d.ts +0 -46
- package/table/index.d.ts +0 -25
- package/tabs/index.d.ts +0 -677
- package/textarea/index.d.ts +0 -138
- package/timepicker/index.d.ts +0 -197
- package/timezone/index.d.ts +0 -125
- package/title/index.d.ts +0 -139
- package/toast/index.d.ts +0 -178
- package/toggle/index.d.ts +0 -104
- package/tooltip/index.d.ts +0 -335
- package/top-bar/index.d.ts +0 -33
- package/tree/index.d.ts +0 -802
- package/tree-select/index.d.ts +0 -475
- package/username/index.d.ts +0 -194
- /package/{dynamic-translation/index.d.ts → types/koobiq-components-dynamic-translation.d.ts} +0 -0
- /package/{index.d.ts → types/koobiq-components.d.ts} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { AfterViewInit, OnDestroy, InjectionToken, AfterContentInit, OnInit, DoCheck, ElementRef, DestroyRef, QueryList, TemplateRef, EventEmitter, Provider } from '@angular/core';
|
|
2
|
+
import { AfterViewInit, OnDestroy, InjectionToken, AfterViewChecked, AfterContentChecked, AfterContentInit, OnInit, DoCheck, ElementRef, DestroyRef, QueryList, TemplateRef, EventEmitter, Provider } from '@angular/core';
|
|
3
3
|
import * as i5 from '@koobiq/components/tooltip';
|
|
4
4
|
import { KbqTooltipTrigger } from '@koobiq/components/tooltip';
|
|
5
|
-
import * as _angular_cdk_overlay_module_d from '@angular/cdk/overlay-module.d';
|
|
6
5
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
7
6
|
import * as i1 from '@angular/cdk/overlay';
|
|
8
|
-
import { ConnectedPosition, CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
7
|
+
import { ScrollStrategy, ConnectedPosition, CdkConnectedOverlay, CdkOverlayOrigin } from '@angular/cdk/overlay';
|
|
9
8
|
import { CdkVirtualForOf, CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
10
9
|
import { ControlValueAccessor, NgForm, FormGroupDirective, NgControl } from '@angular/forms';
|
|
11
10
|
import * as i2 from '@koobiq/components/core';
|
|
12
|
-
import { KbqPanelWidth, KbqPanelMinWidth, KbqPanelMaxWidth, KbqPanelMaxHeight, KbqAbstractSelect, CanUpdateErrorState, KbqSiblingPopup,
|
|
11
|
+
import { KbqPanelWidth, KbqPanelMinWidth, KbqPanelMaxWidth, KbqPanelMaxHeight, KbqOptionBase, KbqAbstractSelect, CanUpdateErrorState, KbqSiblingPopup, KbqOptionParentComponent, ErrorStateMatcher, ActiveDescendantKeyManager, KbqOption, KbqSelectTrigger, KbqSelectMatcher, KbqOptgroup, KbqSelectSearch, KbqSelectSearchEmptyResult, KbqOptionSelectionChange, KbqSelectAllEvent, KbqVirtualOption, KbqPseudoCheckboxState, KbqComponentColors } from '@koobiq/components/core';
|
|
13
12
|
import * as i11 from '@koobiq/components/form-field';
|
|
14
13
|
import { KbqFormFieldControl, KbqCleaner } from '@koobiq/components/form-field';
|
|
14
|
+
import { KbqScrollbarMode } from '@koobiq/components/scrollbar';
|
|
15
15
|
import * as i4 from '@koobiq/components/tags';
|
|
16
16
|
import { KbqTag } from '@koobiq/components/tags';
|
|
17
17
|
import { Subject, Observable } from 'rxjs';
|
|
@@ -19,6 +19,55 @@ import * as i3 from '@koobiq/components/icon';
|
|
|
19
19
|
import * as i6 from '@angular/common';
|
|
20
20
|
import * as i7 from '@angular/cdk/a11y';
|
|
21
21
|
|
|
22
|
+
/** Class that reveals the "+N" counter the matcher reserves room for. */
|
|
23
|
+
declare const KBQ_SELECT_HIDDEN_TEXT_VISIBLE_CLASS = "kbq-select__match-hidden-text_visible";
|
|
24
|
+
/** Widths the matcher needs in order to work out how many of the selected tags actually fit. */
|
|
25
|
+
type KbqSelectMatcherMeasurement = {
|
|
26
|
+
/** Total width of the selected tags, laid out without the "+N" counter. */
|
|
27
|
+
totalItemsWidth: number;
|
|
28
|
+
/** Total width of the tags that stay on the first line while the counter is shown. */
|
|
29
|
+
totalVisibleItemsWidth: number;
|
|
30
|
+
/** How many tags stay on the first line while the counter is shown. */
|
|
31
|
+
visibleItems: number;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* Measures how much room the selected values take in a multiple select's trigger.
|
|
35
|
+
*
|
|
36
|
+
* Provided by the select rather than injected globally: it writes into (and reads back from) that
|
|
37
|
+
* select's own trigger element. Kept apart from the component because it is pure DOM geometry with no
|
|
38
|
+
* bearing on the select's state — and because the two measurements it makes have to share a single
|
|
39
|
+
* layout pass, which is easy to lose sight of when they live among the component's other concerns.
|
|
40
|
+
*
|
|
41
|
+
* @docs-private
|
|
42
|
+
*/
|
|
43
|
+
declare class KbqSelectHiddenItemsMeasurer {
|
|
44
|
+
private readonly renderer;
|
|
45
|
+
private readonly window;
|
|
46
|
+
/**
|
|
47
|
+
* Measures the trigger against two layouts: one without the "+N" counter and one with it.
|
|
48
|
+
*
|
|
49
|
+
* Both clones are attached before either is read, so the browser resolves layout once for the pair
|
|
50
|
+
* instead of once per clone.
|
|
51
|
+
*
|
|
52
|
+
* @param trigger Trigger element of the select, used both as the source of the clones and as their host.
|
|
53
|
+
*/
|
|
54
|
+
measure(trigger: HTMLElement): KbqSelectMatcherMeasurement;
|
|
55
|
+
/**
|
|
56
|
+
* Calculates the width of a single item including margins.
|
|
57
|
+
*
|
|
58
|
+
* The elements measured here are `kbq-tag`s, which are `border-box` and carry horizontal
|
|
59
|
+
* padding. `getComputedStyle().width` resolves to the used content-box width whatever
|
|
60
|
+
* `box-sizing` says, so it dropped that padding from every tag and the matcher believed more
|
|
61
|
+
* tags fit than actually do. `getBoundingClientRect()` is always the border box — the same fix
|
|
62
|
+
* `kbqGetPanelWidthOrigin()` carries.
|
|
63
|
+
*/
|
|
64
|
+
private getItemWidth;
|
|
65
|
+
/** Creates a hidden clone of the trigger element, positioned so that it cannot affect the layout. */
|
|
66
|
+
private buildTriggerClone;
|
|
67
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KbqSelectHiddenItemsMeasurer, never>;
|
|
68
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<KbqSelectHiddenItemsMeasurer>;
|
|
69
|
+
}
|
|
70
|
+
|
|
22
71
|
declare class KbqSelectLoading {
|
|
23
72
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KbqSelectLoading, never>;
|
|
24
73
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KbqSelectLoading, "kbq-select-loading, [kbq-select-loading]", ["kbqSelectLoading"], {}, {}, never, ["kbq-progress-spinner"], true, never>;
|
|
@@ -30,7 +79,7 @@ declare class KbqSelectLoading {
|
|
|
30
79
|
*/
|
|
31
80
|
declare class KbqSelectError {
|
|
32
81
|
/** Indicates whether styles for pagination controls should be used. */
|
|
33
|
-
paging: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
82
|
+
readonly paging: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
34
83
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KbqSelectError, never>;
|
|
35
84
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KbqSelectError, "kbq-select-error, [kbq-select-error]", ["kbqSelectError"], { "paging": { "alias": "paging"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
36
85
|
}
|
|
@@ -59,6 +108,18 @@ declare class KbqOptionTooltip extends KbqTooltipTrigger implements AfterViewIni
|
|
|
59
108
|
private resizeSubscription;
|
|
60
109
|
private contentObserverSubscription;
|
|
61
110
|
private focusMonitorSubscription;
|
|
111
|
+
/**
|
|
112
|
+
* Overrides the tooltip's hoverable default. The overflow hint floats over the neighbouring options of a
|
|
113
|
+
* scrolling list, so a pointer-capturing pane would swallow the click that selects them.
|
|
114
|
+
*/
|
|
115
|
+
readonly ignoreTooltipPointerEvents: _angular_core.InputSignal<boolean>;
|
|
116
|
+
/**
|
|
117
|
+
* The hint repeats text the option had to clip, so `kbqTooltipDisabled="false"` cannot conjure one for an
|
|
118
|
+
* option that fits.
|
|
119
|
+
*
|
|
120
|
+
* @docs-private
|
|
121
|
+
*/
|
|
122
|
+
protected readonly derivedDisabledWins = true;
|
|
62
123
|
get textElement(): HTMLElement;
|
|
63
124
|
get isOverflown(): boolean;
|
|
64
125
|
/**
|
|
@@ -72,7 +133,7 @@ declare class KbqOptionTooltip extends KbqTooltipTrigger implements AfterViewIni
|
|
|
72
133
|
handleElementEnter(): void;
|
|
73
134
|
handleElementLeave(): void;
|
|
74
135
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KbqOptionTooltip, never>;
|
|
75
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<KbqOptionTooltip, "kbq-option", never, {}, {}, never, never, true, never>;
|
|
136
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<KbqOptionTooltip, "kbq-option", never, { "ignoreTooltipPointerEvents": { "alias": "ignoreTooltipPointerEvents"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
76
137
|
}
|
|
77
138
|
|
|
78
139
|
/** Change event object that is emitted when the select value has changed. */
|
|
@@ -81,11 +142,6 @@ declare class KbqSelectChange {
|
|
|
81
142
|
value: any;
|
|
82
143
|
constructor(source: KbqSelect, value: any);
|
|
83
144
|
}
|
|
84
|
-
/**
|
|
85
|
-
* Select panel width type.
|
|
86
|
-
* @deprecated Use `KbqPanelWidth` from `@koobiq/components/core` instead.
|
|
87
|
-
*/
|
|
88
|
-
type KbqSelectPanelWidth = KbqPanelWidth;
|
|
89
145
|
/** Options for the `kbq-select` that can be configured using the `KBQ_SELECT_OPTIONS` injection token. */
|
|
90
146
|
type KbqSelectOptions = Partial<{
|
|
91
147
|
/**
|
|
@@ -110,11 +166,15 @@ type KbqSelectOptions = Partial<{
|
|
|
110
166
|
/**
|
|
111
167
|
* Whether to enable hiding search by default if options is less than minimum.
|
|
112
168
|
*
|
|
113
|
-
* - `'auto'` uses
|
|
169
|
+
* - `'auto'` uses {@link KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD} as min value.
|
|
114
170
|
* - number - will enables search hiding and uses value as min.
|
|
115
|
-
* @see KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD
|
|
116
171
|
*/
|
|
117
172
|
searchMinOptionsThreshold: 'auto' | number;
|
|
173
|
+
/**
|
|
174
|
+
* Decides which selected options the projected `KbqCleaner` removes. Disabled options are kept when
|
|
175
|
+
* this is not set. Overridden per instance by the `clearPredicate` attribute.
|
|
176
|
+
*/
|
|
177
|
+
clearPredicate: (option: KbqOptionBase) => boolean;
|
|
118
178
|
}>;
|
|
119
179
|
/** Injection token that can be used to provide the default options for the `kbq-select`. */
|
|
120
180
|
declare const KBQ_SELECT_OPTIONS: InjectionToken<Partial<{
|
|
@@ -140,11 +200,15 @@ declare const KBQ_SELECT_OPTIONS: InjectionToken<Partial<{
|
|
|
140
200
|
/**
|
|
141
201
|
* Whether to enable hiding search by default if options is less than minimum.
|
|
142
202
|
*
|
|
143
|
-
* - `'auto'` uses
|
|
203
|
+
* - `'auto'` uses {@link KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD} as min value.
|
|
144
204
|
* - number - will enables search hiding and uses value as min.
|
|
145
|
-
* @see KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD
|
|
146
205
|
*/
|
|
147
206
|
searchMinOptionsThreshold: "auto" | number;
|
|
207
|
+
/**
|
|
208
|
+
* Decides which selected options the projected `KbqCleaner` removes. Disabled options are kept when
|
|
209
|
+
* this is not set. Overridden per instance by the `clearPredicate` attribute.
|
|
210
|
+
*/
|
|
211
|
+
clearPredicate: (option: KbqOptionBase) => boolean;
|
|
148
212
|
}>>;
|
|
149
213
|
/** Utility provider for `KBQ_SELECT_OPTIONS`. */
|
|
150
214
|
declare const kbqSelectOptionsProvider: (options: KbqSelectOptions) => Provider;
|
|
@@ -152,21 +216,25 @@ declare const kbqSelectOptionsProvider: (options: KbqSelectOptions) => Provider;
|
|
|
152
216
|
declare const delayBeforeDisplayingResultWithoutOptions = 101;
|
|
153
217
|
/** Minimum time in milliseconds to display the loading state. */
|
|
154
218
|
declare const minimumTimeToDisplayLoading = 300;
|
|
155
|
-
declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, OnDestroy, OnInit, DoCheck, ControlValueAccessor, KbqFormFieldControl<any>, CanUpdateErrorState, KbqSiblingPopup {
|
|
219
|
+
declare class KbqSelect extends KbqAbstractSelect implements AfterViewChecked, AfterContentChecked, AfterContentInit, OnDestroy, OnInit, DoCheck, ControlValueAccessor, KbqFormFieldControl<any>, CanUpdateErrorState, KbqSiblingPopup, KbqOptionParentComponent {
|
|
156
220
|
private readonly _changeDetectorRef;
|
|
157
221
|
private readonly _ngZone;
|
|
158
|
-
private readonly
|
|
222
|
+
private readonly injector;
|
|
223
|
+
private readonly hiddenItemsMeasurer;
|
|
159
224
|
private readonly interactivityChecker;
|
|
160
225
|
defaultErrorStateMatcher: ErrorStateMatcher;
|
|
161
226
|
elementRef: ElementRef<HTMLElement>;
|
|
162
227
|
private overlayContainer;
|
|
228
|
+
private readonly overlayLayers;
|
|
163
229
|
private readonly _dir;
|
|
164
230
|
parentForm: NgForm | null;
|
|
165
231
|
parentFormGroup: FormGroupDirective | null;
|
|
166
232
|
private readonly parentFormField;
|
|
167
233
|
ngControl: NgControl | null;
|
|
168
234
|
private readonly scrollStrategyFactory;
|
|
169
|
-
|
|
235
|
+
private readonly carrier;
|
|
236
|
+
/** Localized strings of the select, following the active locale. */
|
|
237
|
+
private readonly localeConfiguration;
|
|
170
238
|
/** @docs-private */
|
|
171
239
|
protected readonly destroyRef: DestroyRef;
|
|
172
240
|
protected readonly isBrowser: boolean;
|
|
@@ -193,31 +261,48 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
193
261
|
/**
|
|
194
262
|
* Whether to enable hiding search by default if options is less than minimum.
|
|
195
263
|
*
|
|
196
|
-
* - `'auto'` uses
|
|
264
|
+
* - `'auto'` uses {@link KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD} as min value.
|
|
197
265
|
* - number - will enables search hiding and uses value as min.
|
|
198
|
-
* @see KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD
|
|
199
266
|
*/
|
|
200
267
|
searchMinOptionsThreshold: "auto" | number;
|
|
268
|
+
/**
|
|
269
|
+
* Decides which selected options the projected `KbqCleaner` removes. Disabled options are kept when
|
|
270
|
+
* this is not set. Overridden per instance by the `clearPredicate` attribute.
|
|
271
|
+
*/
|
|
272
|
+
clearPredicate: (option: KbqOptionBase) => boolean;
|
|
201
273
|
}> | null;
|
|
274
|
+
private readonly scrollbarOptions;
|
|
275
|
+
private readonly errorStateTracker;
|
|
202
276
|
/** Whether the component is in an error state. */
|
|
203
|
-
errorState: boolean
|
|
204
|
-
/**
|
|
205
|
-
* Emits whenever the component state changes and should cause the parent
|
|
206
|
-
* form-field to update. Implemented as part of `KbqFormFieldControl`.
|
|
207
|
-
* @docs-private
|
|
208
|
-
*/
|
|
209
|
-
readonly stateChanges: Subject<void>;
|
|
277
|
+
readonly errorState: _angular_core.Signal<boolean>;
|
|
210
278
|
/** A name for this control that can be used by `kbq-form-field`. */
|
|
211
279
|
controlType: string;
|
|
212
|
-
|
|
280
|
+
/**
|
|
281
|
+
* A `kbq-select` is not a native labelable element, so the form-field's `<label for>` cannot
|
|
282
|
+
* associate with it. The select is named through `aria-labelledby` instead.
|
|
283
|
+
*/
|
|
284
|
+
readonly isNativeLabelSupported = false;
|
|
285
|
+
private readonly hiddenItemsCount;
|
|
286
|
+
/** Number of the selected items that do not fit into the trigger. */
|
|
287
|
+
readonly hiddenItems: _angular_core.Signal<number>;
|
|
288
|
+
/**
|
|
289
|
+
* How many of the rendered tags stay on the trigger's single line.
|
|
290
|
+
*
|
|
291
|
+
* `null` while the answer is unknown — the trigger has not been measured yet, or the measurement found
|
|
292
|
+
* no tag on the first line at all, which a laid-out trigger never does and so means there was no layout
|
|
293
|
+
* to measure. Both cases leave every tag treated as visible.
|
|
294
|
+
*/
|
|
295
|
+
private readonly visibleTriggerItems;
|
|
213
296
|
/** The last measured value for the trigger's client bounding rect. */
|
|
214
|
-
triggerRect: DOMRect;
|
|
297
|
+
protected triggerRect: DOMRect;
|
|
215
298
|
/** The cached font-size of the trigger element in pixels. */
|
|
216
299
|
triggerFontSize: number;
|
|
217
300
|
/** Deals with the selection logic. Manages selected options and their states. */
|
|
218
301
|
selectionModel: SelectionModel<KbqOptionBase>;
|
|
219
302
|
/** Previously selected options before the current selection was made. */
|
|
220
303
|
previousSelectionModelSelected: KbqOptionBase[];
|
|
304
|
+
/** Whether the selection is being set to a written value, which is no selection of the user. */
|
|
305
|
+
private writingValue;
|
|
221
306
|
/**
|
|
222
307
|
* Detached copies of the selected options, captured while the option was still rendered.
|
|
223
308
|
* `cdk-virtual-scroll` recycles option views, so a `KbqOption` kept in `selectionModel` can
|
|
@@ -226,20 +311,13 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
226
311
|
private readonly selectedOptionCopies;
|
|
227
312
|
/** Manages keyboard events for options in the panel. */
|
|
228
313
|
keyManager: ActiveDescendantKeyManager<KbqOption>;
|
|
229
|
-
/** The value of the select panel's transform-origin property
|
|
314
|
+
/** The value of the select panel's transform-origin property. */
|
|
230
315
|
transformOrigin: string;
|
|
231
|
-
/** Emits
|
|
316
|
+
/** Emits once the panel has rendered (`'showing'`) or has been removed (`'void'`). */
|
|
232
317
|
panelDoneAnimatingStream: Subject<string>;
|
|
318
|
+
private panelRender?;
|
|
233
319
|
/** Strategy that will be used to handle scrolling while the select panel is open. */
|
|
234
|
-
scrollStrategy:
|
|
235
|
-
/**
|
|
236
|
-
* The y-offset of the overlay panel in relation to the trigger.
|
|
237
|
-
*
|
|
238
|
-
* @deprecated noop. The trigger↔panel gap is now controlled by the `--kbq-connected-overlay-gap` CSS
|
|
239
|
-
* variable (transparent padding inside the pane via the `kbq-connected-overlay_below/_above` panel
|
|
240
|
-
* classes), not by a physical overlay offset — so setting this has no effect. Will be removed in 21.0.0.
|
|
241
|
-
*/
|
|
242
|
-
offsetY: number;
|
|
320
|
+
scrollStrategy: ScrollStrategy;
|
|
243
321
|
/**
|
|
244
322
|
* Minimum space to keep between the overlay and the viewport edge.
|
|
245
323
|
* At least `defaultOffsetY` so CDK's fit check — which runs before the `kbq-connected-overlay_below/_above`
|
|
@@ -262,18 +340,23 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
262
340
|
readonly panel: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
263
341
|
/** Reference to the container element that holds the options. */
|
|
264
342
|
readonly optionsContainer: _angular_core.Signal<ElementRef<any>>;
|
|
343
|
+
private readonly scrollbarViewport;
|
|
344
|
+
private readonly projectedScrollbarViewport;
|
|
265
345
|
/** Reference to the built-in "select all" row, rendered only while `selectAll` is on. */
|
|
266
346
|
readonly selectAllOption: _angular_core.Signal<KbqOption | undefined>;
|
|
347
|
+
private readonly overlayDirQuery;
|
|
267
348
|
/** Reference to the CDK connected overlay directive. */
|
|
268
|
-
overlayDir: CdkConnectedOverlay;
|
|
349
|
+
protected get overlayDir(): CdkConnectedOverlay;
|
|
269
350
|
/** Reference to the optional footer element in the panel. */
|
|
270
351
|
readonly footer: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
271
352
|
/** Reference to the CDK virtual scroll directive for virtual scrolling support. */
|
|
272
353
|
readonly cdkVirtualForOf: _angular_core.Signal<CdkVirtualForOf<any> | undefined>;
|
|
273
354
|
/** Reference to the CDK virtual scroll viewport for tracking scroll position in virtual mode. */
|
|
274
355
|
readonly virtualScrollViewport: _angular_core.Signal<CdkVirtualScrollViewport | undefined>;
|
|
356
|
+
private readonly tagsQuery;
|
|
357
|
+
private readonly tagsList;
|
|
275
358
|
/** Query list of tags displayed in multiple selection mode. */
|
|
276
|
-
tags: QueryList<KbqTag>;
|
|
359
|
+
get tags(): QueryList<KbqTag>;
|
|
277
360
|
/** User-supplied override of the trigger element for custom rendering. */
|
|
278
361
|
readonly customTrigger: _angular_core.Signal<KbqSelectTrigger | undefined>;
|
|
279
362
|
/** User-supplied matcher component for custom value matching logic. */
|
|
@@ -282,11 +365,16 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
282
365
|
readonly customTagTemplateRef: _angular_core.Signal<TemplateRef<any> | undefined>;
|
|
283
366
|
/**
|
|
284
367
|
* Reference to the optional cleaner element for clearing selection.
|
|
368
|
+
*
|
|
285
369
|
* @docs-private
|
|
286
370
|
*/
|
|
287
371
|
readonly cleaner: _angular_core.Signal<KbqCleaner | undefined>;
|
|
372
|
+
private readonly optionsQuery;
|
|
373
|
+
private readonly optionsList;
|
|
288
374
|
/** All of the defined select options. */
|
|
289
|
-
options: QueryList<KbqOption>;
|
|
375
|
+
get options(): QueryList<KbqOption>;
|
|
376
|
+
/** Whether `ngAfterContentInit` has run. The options are not settled before that, so nothing reads them. */
|
|
377
|
+
private contentReady;
|
|
290
378
|
/**
|
|
291
379
|
* Everything the key manager navigates: the built-in "select all" row first, then `options`.
|
|
292
380
|
*
|
|
@@ -294,6 +382,7 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
294
382
|
* Kept as a separate list rather than folded into `options` because `options` is public API — the
|
|
295
383
|
* filter-bar pipes, `firstFiltered` and the tallies below all mean "the options the consumer
|
|
296
384
|
* projected", and a synthetic entry there would quietly corrupt every one of them.
|
|
385
|
+
*
|
|
297
386
|
* @docs-private
|
|
298
387
|
*/
|
|
299
388
|
readonly navigableOptions: QueryList<KbqOption>;
|
|
@@ -303,10 +392,30 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
303
392
|
readonly search: _angular_core.Signal<KbqSelectSearch | undefined>;
|
|
304
393
|
/** Reference to the optional empty search result component. */
|
|
305
394
|
readonly searchEmpty: _angular_core.Signal<KbqSelectSearchEmptyResult | undefined>;
|
|
306
|
-
/**
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
395
|
+
/**
|
|
396
|
+
* Template string for the hidden items counter. Supports the `{{ number }}` placeholder.
|
|
397
|
+
*
|
|
398
|
+
* Takes precedence over the value the locale service provides, and keeps it for the whole lifetime of
|
|
399
|
+
* the select — switching the locale no longer overwrites what the consumer asked for.
|
|
400
|
+
*/
|
|
401
|
+
readonly hiddenItemsText: _angular_core.InputSignal<string | undefined>;
|
|
402
|
+
/**
|
|
403
|
+
* Formats the hidden items counter.
|
|
404
|
+
*
|
|
405
|
+
* @param hiddenItemsText Template string with the `{{ number }}` placeholder.
|
|
406
|
+
* @param hiddenItems Number of hidden items to display.
|
|
407
|
+
*/
|
|
408
|
+
readonly hiddenItemsTextFormatter: _angular_core.InputSignal<(hiddenItemsText: string, hiddenItems: number) => string>;
|
|
409
|
+
/** Rendered hidden items counter. */
|
|
410
|
+
protected get hiddenItemsLabel(): string;
|
|
411
|
+
/** Label of the "select all" row. Follows the active locale. */
|
|
412
|
+
protected get selectAllText(): string;
|
|
413
|
+
/**
|
|
414
|
+
* Accessible name of the trigger and of the option list.
|
|
415
|
+
*
|
|
416
|
+
* Only needed for a select rendered without a `kbq-form-field` label — with one, the label names both.
|
|
417
|
+
*/
|
|
418
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
310
419
|
/** Determines whether preselected values are displayed. */
|
|
311
420
|
readonly showPreselectedValues: _angular_core.InputSignal<boolean>;
|
|
312
421
|
/**
|
|
@@ -317,16 +426,18 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
317
426
|
*/
|
|
318
427
|
readonly triggerValuesLimit: _angular_core.InputSignal<number>;
|
|
319
428
|
/** Classes to be passed to the select panel. Supports the same syntax as the `[class]` binding. */
|
|
320
|
-
readonly panelClass: _angular_core.InputSignal<string | string[] | Set<string> |
|
|
321
|
-
[key: string]: any;
|
|
322
|
-
}>;
|
|
429
|
+
readonly panelClass: _angular_core.InputSignal<string | string[] | Set<string> | Record<string, boolean>>;
|
|
323
430
|
/** Classes to be passed to the overlay backdrop. */
|
|
324
431
|
readonly backdropClass: _angular_core.InputSignal<string>;
|
|
325
432
|
/** Object used to control when error messages are shown. */
|
|
326
|
-
errorStateMatcher: ErrorStateMatcher
|
|
433
|
+
readonly errorStateMatcher: _angular_core.InputSignal<ErrorStateMatcher | undefined>;
|
|
327
434
|
/**
|
|
328
435
|
* Function used to sort the values in a select in multiple mode.
|
|
329
436
|
* Follows the same logic as `Array.prototype.sort`.
|
|
437
|
+
*
|
|
438
|
+
* Without one the values are emitted in panel order — the order the options are declared in, not the
|
|
439
|
+
* order they were picked in. A value whose option is not rendered (a `KbqVirtualOption` under virtual
|
|
440
|
+
* scroll or `showPreselectedValues`) has no place in that order and sorts after everything that has.
|
|
330
441
|
*/
|
|
331
442
|
readonly sortComparator: _angular_core.InputSignal<(a: KbqOptionBase, b: KbqOptionBase, options: KbqOptionBase[]) => number>;
|
|
332
443
|
/**
|
|
@@ -338,13 +449,17 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
338
449
|
* Controls when the search functionality is displayed based on the number of available options.
|
|
339
450
|
*
|
|
340
451
|
* Automatically enables search hiding if value provided, even if `defaultOptions.searchMinOptionsThreshold` is provided.
|
|
341
|
-
*
|
|
452
|
+
*
|
|
453
|
+
* Accepts `'auto'`, which resolves to `KBQ_SELECT_SEARCH_MIN_OPTIONS_THRESHOLD`; the getter therefore
|
|
454
|
+
* reports the resolved number, never `'auto'`. Defaults to `undefined`.
|
|
342
455
|
*/
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
456
|
+
readonly searchMinOptionsThreshold: _angular_core.Signal<number | undefined>;
|
|
457
|
+
/** @docs-private */
|
|
458
|
+
readonly searchMinOptionsThresholdInput: _angular_core.InputSignal<number | "auto" | undefined>;
|
|
346
459
|
/** Combined stream of all of the child options' change events. */
|
|
347
460
|
readonly optionSelectionChanges: Observable<KbqOptionSelectionChange>;
|
|
461
|
+
/** Emits once the content queries are resolved, for subscribers that arrive before `options` exist. */
|
|
462
|
+
private readonly contentInitialized;
|
|
348
463
|
/**
|
|
349
464
|
* Event emitted when the select panel has been toggled. Emits true when opened, false when closed.
|
|
350
465
|
* Also serves as the `openedChange` member of the `KbqSiblingPopup` contract — a tooltip sharing
|
|
@@ -352,12 +467,18 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
352
467
|
* `ngOnInit`) matters beyond this output's original consumers.
|
|
353
468
|
*/
|
|
354
469
|
readonly openedChange: EventEmitter<boolean>;
|
|
470
|
+
/** @docs-private */
|
|
471
|
+
readonly openedChangeOutput: _angular_core.OutputRef<boolean>;
|
|
355
472
|
/** Event emitted before the select panel starts opening. */
|
|
356
473
|
readonly beforeOpened: _angular_core.OutputEmitterRef<void>;
|
|
357
474
|
/** Event emitted when the select has been opened. */
|
|
358
475
|
readonly openedStream: Observable<void>;
|
|
476
|
+
/** @docs-private */
|
|
477
|
+
readonly openedOutput: _angular_core.OutputRef<void>;
|
|
359
478
|
/** Event emitted when the select has been closed. */
|
|
360
479
|
readonly closedStream: Observable<void>;
|
|
480
|
+
/** @docs-private */
|
|
481
|
+
readonly closedOutput: _angular_core.OutputRef<void>;
|
|
361
482
|
/** Event emitted when the selected value has been changed by the user. */
|
|
362
483
|
readonly selectionChange: _angular_core.OutputEmitterRef<KbqSelectChange>;
|
|
363
484
|
/**
|
|
@@ -368,6 +489,7 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
368
489
|
/**
|
|
369
490
|
* Event that emits whenever the raw value of the select changes. This is here primarily
|
|
370
491
|
* to facilitate the two-way binding for the `value` input.
|
|
492
|
+
*
|
|
371
493
|
* @docs-private
|
|
372
494
|
*/
|
|
373
495
|
readonly valueChange: _angular_core.OutputEmitterRef<any>;
|
|
@@ -382,29 +504,25 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
382
504
|
* Whether the overlay should have a backdrop.
|
|
383
505
|
* When true, clicking the backdrop will close the select.
|
|
384
506
|
*/
|
|
385
|
-
|
|
386
|
-
set hasBackdrop(value: boolean);
|
|
387
|
-
private _hasBackdrop;
|
|
507
|
+
readonly hasBackdrop: _angular_core.InputSignalWithTransform<boolean, string | boolean | null | undefined>;
|
|
388
508
|
/**
|
|
389
509
|
* Placeholder text to be shown when no value is selected.
|
|
390
510
|
* Displayed in the trigger when the select is closed and no value is selected.
|
|
391
511
|
*/
|
|
392
|
-
|
|
393
|
-
set placeholder(value: string);
|
|
394
|
-
private _placeholder;
|
|
512
|
+
readonly placeholder: _angular_core.InputSignal<string | undefined>;
|
|
395
513
|
/**
|
|
396
514
|
* Whether the select is required. Affects validation and display of placeholder.
|
|
397
515
|
*/
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
516
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, string | boolean | null | undefined>;
|
|
517
|
+
/** @docs-private */
|
|
518
|
+
readonly multipleInput: _angular_core.InputSignalWithTransform<boolean, string | boolean | null | undefined>;
|
|
401
519
|
/**
|
|
402
520
|
* Whether multiple options can be selected.
|
|
403
521
|
* Note: This cannot be changed dynamically after initialization.
|
|
404
522
|
*/
|
|
405
523
|
get multiple(): boolean;
|
|
406
|
-
|
|
407
|
-
private
|
|
524
|
+
/** The multiplicity the selection model was created with; a later binding change is refused. */
|
|
525
|
+
private multipleValue;
|
|
408
526
|
/**
|
|
409
527
|
* Function to compare the option values with the selected values.
|
|
410
528
|
* The first argument is a value from an option.
|
|
@@ -412,8 +530,7 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
412
530
|
* Should return true if the values match.
|
|
413
531
|
* Defaults to strict equality comparison.
|
|
414
532
|
*/
|
|
415
|
-
|
|
416
|
-
set compareWith(fn: (o1: any, o2: any) => boolean);
|
|
533
|
+
readonly compareWith: _angular_core.InputSignalWithTransform<(o1: any, o2: any) => boolean, (o1: any, o2: any) => boolean>;
|
|
417
534
|
/**
|
|
418
535
|
* Factory used to construct a `KbqVirtualOption` for selected values whose
|
|
419
536
|
* `KbqOption` is not currently rendered (e.g. virtual scroll out of viewport,
|
|
@@ -424,10 +541,18 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
424
541
|
* customise per-value `disabled` state or any future `KbqVirtualOption`
|
|
425
542
|
* fields without adding new `@Input`s.
|
|
426
543
|
*
|
|
427
|
-
* Defaults to `new KbqVirtualOption(value, this.disabled)`, which is correct
|
|
544
|
+
* Defaults to `new KbqVirtualOption(value, this.disabled())`, which is correct
|
|
428
545
|
* for primitive values where `value` itself is the display label.
|
|
429
546
|
*/
|
|
430
547
|
readonly virtualOptionFactory: _angular_core.InputSignal<((value: any) => KbqVirtualOption) | undefined>;
|
|
548
|
+
/**
|
|
549
|
+
* Decides which selected options the projected `KbqCleaner` removes: return `true` to clear the
|
|
550
|
+
* option, `false` to keep it. Disabled options are kept by default. Bind a stable reference — a new
|
|
551
|
+
* function on every change detection re-runs the predicate over the whole selection.
|
|
552
|
+
*
|
|
553
|
+
* Not consulted by `writeValue` / `reset()`, which always clear everything.
|
|
554
|
+
*/
|
|
555
|
+
readonly clearPredicate: _angular_core.InputSignalWithTransform<(option: KbqOptionBase) => boolean, (option: KbqOptionBase) => boolean>;
|
|
431
556
|
/** When `true`, a repeated Ctrl/Cmd+A deselects all options. Off by default (Ctrl+A only selects). */
|
|
432
557
|
readonly selectAllToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
433
558
|
/**
|
|
@@ -439,14 +564,14 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
439
564
|
* never disagree (`selectAllToggle` is implied).
|
|
440
565
|
*/
|
|
441
566
|
readonly selectAll: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
567
|
+
/** @docs-private */
|
|
568
|
+
readonly selectAllHandlerInput: _angular_core.InputSignalWithTransform<((event: KeyboardEvent, select: KbqSelect) => void) | undefined, ((event: KeyboardEvent, select: KbqSelect) => void) | undefined>;
|
|
442
569
|
/**
|
|
443
570
|
* Function for handling the Ctrl + A (select all) keyboard combination.
|
|
444
571
|
* By default, the internal handler selects all options.
|
|
445
|
-
*
|
|
446
|
-
* @param select Reference to this select component.
|
|
572
|
+
* It is called with the keyboard event that triggered it and a reference to this select component.
|
|
447
573
|
*/
|
|
448
574
|
get selectAllHandler(): (event: KeyboardEvent, select: KbqSelect) => void;
|
|
449
|
-
set selectAllHandler(fn: (event: KeyboardEvent, select: KbqSelect) => void);
|
|
450
575
|
/**
|
|
451
576
|
* Width of the panel. If set to `auto`, the panel will match the trigger width, but will never be
|
|
452
577
|
* narrower than `panelMinWidth`. If set to null or an empty string, the panel will grow to match the
|
|
@@ -476,44 +601,56 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
476
601
|
/**
|
|
477
602
|
* `panelMaxHeight` rendered as a CSS length for the `--kbq-select-panel-size-max-height` token.
|
|
478
603
|
* A non-finite value (e.g. `null`) leaves the stylesheet default in place.
|
|
604
|
+
*
|
|
479
605
|
* @docs-private
|
|
480
606
|
*/
|
|
481
607
|
protected readonly panelMaxHeightToken: _angular_core.Signal<string | null>;
|
|
482
|
-
/**
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
608
|
+
/** @docs-private */
|
|
609
|
+
readonly valueInput: _angular_core.InputSignal<any>;
|
|
610
|
+
/**
|
|
611
|
+
* Value of the select control. Can be a single value or array of values for multiple selection. Follows
|
|
612
|
+
* `[value]`, the form control and the user's selection. A value set in code selects its options on the next
|
|
613
|
+
* change detection, without emitting `valueChange`.
|
|
614
|
+
*/
|
|
615
|
+
readonly value: _angular_core.WritableSignal<any>;
|
|
616
|
+
/** The value the selection was last made from or reported as. */
|
|
617
|
+
private selectionValue;
|
|
618
|
+
/** @docs-private */
|
|
619
|
+
readonly idInput: _angular_core.InputSignal<string | undefined>;
|
|
486
620
|
/**
|
|
487
621
|
* Unique identifier for the select component.
|
|
488
622
|
* Auto-generates an ID if not provided.
|
|
489
623
|
*/
|
|
490
|
-
|
|
491
|
-
set id(value: string);
|
|
492
|
-
private _id;
|
|
624
|
+
readonly id: _angular_core.Signal<string>;
|
|
493
625
|
/**
|
|
494
626
|
* Sets the tabIndex of the select element.
|
|
495
627
|
* Automatically set to -1 when disabled.
|
|
496
628
|
*/
|
|
629
|
+
/** @docs-private */
|
|
630
|
+
readonly tabIndexInput: _angular_core.InputSignalWithTransform<number, string | number | null | undefined>;
|
|
497
631
|
get tabIndex(): number;
|
|
498
|
-
|
|
499
|
-
|
|
632
|
+
/** @docs-private */
|
|
633
|
+
readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, string | boolean | null | undefined>;
|
|
500
634
|
/**
|
|
501
635
|
* Whether the select is disabled.
|
|
502
|
-
* When disabled, the select cannot be opened and its value cannot be changed.
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
private
|
|
636
|
+
* When disabled, the select cannot be opened and its value cannot be changed. Also set by the bound form
|
|
637
|
+
* control.
|
|
638
|
+
*/
|
|
639
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
640
|
+
private readonly resolvedTabIndex;
|
|
641
|
+
private readonly resolvedAriaLabelValue;
|
|
642
|
+
private readonly focusedValue;
|
|
643
|
+
private readonly panelOpenValue;
|
|
507
644
|
/** Whether the select is focused. */
|
|
508
|
-
|
|
509
|
-
set focused(value: boolean);
|
|
645
|
+
readonly focused: _angular_core.Signal<boolean>;
|
|
510
646
|
/** Whether the select panel is currently open. */
|
|
511
|
-
panelOpen: boolean;
|
|
647
|
+
get panelOpen(): boolean;
|
|
648
|
+
set panelOpen(value: boolean);
|
|
512
649
|
/** Whether the overlay panel is currently on screen. Part of the `KbqSiblingPopup` contract. */
|
|
513
650
|
get isAttached(): boolean;
|
|
514
651
|
/** Whether virtual scrolling is enabled for the options panel. */
|
|
515
652
|
withVirtualScroll: boolean;
|
|
516
|
-
|
|
653
|
+
protected get scrollbarMode(): KbqScrollbarMode;
|
|
517
654
|
/** Whether the search returned no results. */
|
|
518
655
|
get isEmptySearchResult(): boolean;
|
|
519
656
|
/**
|
|
@@ -541,33 +678,55 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
541
678
|
private get selectAllAdapter();
|
|
542
679
|
/**
|
|
543
680
|
* Whether the cleaner (clear button) should be shown.
|
|
681
|
+
*
|
|
544
682
|
* @docs-private
|
|
545
683
|
*/
|
|
546
684
|
get canShowCleaner(): boolean;
|
|
685
|
+
/**
|
|
686
|
+
* Whether the cleaner still has an option to remove.
|
|
687
|
+
*
|
|
688
|
+
* @docs-private
|
|
689
|
+
*/
|
|
690
|
+
get canClear(): boolean;
|
|
691
|
+
/** Selected options the cleaner removes, in selection order. */
|
|
692
|
+
private get clearTargets();
|
|
693
|
+
/**
|
|
694
|
+
* Passes the resolved option, so a view recycled by `cdk-virtual-scroll` cannot answer for another
|
|
695
|
+
* item.
|
|
696
|
+
*/
|
|
697
|
+
private shouldClear;
|
|
547
698
|
/** Returns the currently selected option(s). Single value or array for multiple selection. */
|
|
548
699
|
get selected(): KbqOptionBase | KbqOptionBase[];
|
|
549
700
|
/** Returns the display value for the trigger element. */
|
|
550
701
|
get triggerValue(): string;
|
|
551
702
|
/** Returns all selected options in display order. */
|
|
552
703
|
get triggerValues(): KbqOptionBase[];
|
|
704
|
+
/**
|
|
705
|
+
* Whether the tag at `index` is one the trigger actually shows.
|
|
706
|
+
*
|
|
707
|
+
* The trigger renders every selected value and clips the overflow with `overflow: hidden`, so a tag
|
|
708
|
+
* that wrapped past the single line is still in the DOM. Its remove control has to leave the tab order
|
|
709
|
+
* with it, or focus lands on something the user cannot see — and the browser scrolls the clipped list
|
|
710
|
+
* to reveal it, shifting the row that is on screen.
|
|
711
|
+
*
|
|
712
|
+
* @docs-private
|
|
713
|
+
*/
|
|
714
|
+
protected isTriggerValueVisible(index: number): boolean;
|
|
715
|
+
private readonly emptyValue;
|
|
553
716
|
/** Whether no option is currently selected. */
|
|
554
|
-
|
|
717
|
+
readonly empty: _angular_core.Signal<boolean>;
|
|
555
718
|
/** Whether there are no options available. */
|
|
556
719
|
get noOptions(): boolean;
|
|
557
720
|
/** Returns the first selected option that is not disabled. */
|
|
558
721
|
get firstSelected(): KbqOptionBase | null;
|
|
559
722
|
/** Whether the first selected option is filtered (not visible in the list). */
|
|
560
723
|
get firstFiltered(): boolean;
|
|
561
|
-
/**
|
|
562
|
-
* Whether the legacy `KbqValidateDirective` marks this control. The class it writes never changes
|
|
563
|
-
* after the host is created, so it is probed once instead of on every change detection pass.
|
|
564
|
-
*/
|
|
565
|
-
private hasLegacyValidateDirective;
|
|
566
|
-
private readonly invalidState;
|
|
567
724
|
/** @docs-private */
|
|
568
725
|
get colorForState(): KbqComponentColors;
|
|
569
726
|
/** Whether multiple choice is enabled. True if multiple or multiline mode is active. */
|
|
570
727
|
get multiSelection(): boolean;
|
|
728
|
+
/** `panelClass` flattened into a class string. */
|
|
729
|
+
private readonly customPanelClasses;
|
|
571
730
|
/** Whether a "select all" batch is running, so the per-option changes propagate only once. */
|
|
572
731
|
private selectAllInProgress;
|
|
573
732
|
/** Subscription to the close event of the overlay. */
|
|
@@ -578,32 +737,65 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
578
737
|
private scrollTop;
|
|
579
738
|
/** Unique id for this input. Auto-incremented for each instance. */
|
|
580
739
|
private readonly uid;
|
|
740
|
+
/**
|
|
741
|
+
* Id of the listbox the trigger owns, referenced by `aria-controls` while the panel is open.
|
|
742
|
+
*
|
|
743
|
+
* @docs-private
|
|
744
|
+
*/
|
|
745
|
+
protected readonly panelId: string;
|
|
746
|
+
/**
|
|
747
|
+
* Id of the `kbq-form-field` label naming this select, when it has one.
|
|
748
|
+
*
|
|
749
|
+
* A `<label for>` does not associate with a custom element, so the relationship is expressed the
|
|
750
|
+
* other way around — from the control to the label.
|
|
751
|
+
*
|
|
752
|
+
* @docs-private
|
|
753
|
+
*/
|
|
754
|
+
protected get ariaLabelledby(): string | null;
|
|
755
|
+
/**
|
|
756
|
+
* Accessible name put on the trigger and on the option list.
|
|
757
|
+
*
|
|
758
|
+
* Both a `combobox` and a `listbox` are required to have one, and neither takes its name from its
|
|
759
|
+
* contents — the placeholder is rendered as a plain `<span>`, so it names nothing. Falling back to it
|
|
760
|
+
* keeps the ordinary label-less select named. A form-field label still wins: it names the select
|
|
761
|
+
* through `aria-labelledby`, which takes precedence over `aria-label`.
|
|
762
|
+
*
|
|
763
|
+
* @docs-private
|
|
764
|
+
*/
|
|
765
|
+
protected get resolvedAriaLabel(): string | null;
|
|
766
|
+
/**
|
|
767
|
+
* Whether the option list is currently showing something other than options — the loading, error or
|
|
768
|
+
* empty state, or an empty search result.
|
|
769
|
+
*
|
|
770
|
+
* The same container is both the `listbox` and the projection target for those states, and a `listbox`
|
|
771
|
+
* is required to own `option` children. `aria-busy` says the list is still being filled in rather than
|
|
772
|
+
* malformed, and keeps it from being announced as an option list with nothing in it.
|
|
773
|
+
*
|
|
774
|
+
* @docs-private
|
|
775
|
+
*/
|
|
776
|
+
protected get isOptionsListBusy(): boolean;
|
|
581
777
|
/** Subject that emits when the component visibility changes. */
|
|
582
778
|
private visibleChanges;
|
|
583
779
|
/** Origin element for the overlay panel positioning. */
|
|
584
780
|
protected overlayOrigin?: CdkOverlayOrigin | ElementRef;
|
|
585
|
-
/** Flag indicating if the dropdown class has been added to the overlay container. */
|
|
586
|
-
private classAddedToOverlayContainer;
|
|
587
781
|
private openPanelTimeout;
|
|
782
|
+
/** Pending re-highlight scheduled by a search keystroke. */
|
|
783
|
+
private highlightOptionTimeout;
|
|
784
|
+
/** Accessible names of the controls the select renders itself. */
|
|
785
|
+
private readonly a11yLocaleConfiguration;
|
|
588
786
|
constructor();
|
|
589
787
|
/** Lifecycle hook called after component initialization. Initializes selection model and subscriptions. */
|
|
590
788
|
ngOnInit(): void;
|
|
591
|
-
/** Lifecycle hook for change detection. Updates
|
|
789
|
+
/** Lifecycle hook for change detection. Updates the error state. */
|
|
592
790
|
ngDoCheck(): void;
|
|
593
791
|
/** Lifecycle hook after content initialization. Sets up key manager and option subscriptions. */
|
|
594
792
|
ngAfterContentInit(): void;
|
|
793
|
+
ngAfterContentChecked(): void;
|
|
794
|
+
ngAfterViewChecked(): void;
|
|
595
795
|
/** Lifecycle hook when component is destroyed. Cleans up subscriptions. */
|
|
596
796
|
ngOnDestroy(): void;
|
|
597
797
|
/** Updates the error state based on the error state matcher. */
|
|
598
798
|
updateErrorState(): void;
|
|
599
|
-
private syncInvalidState;
|
|
600
|
-
/**
|
|
601
|
-
* Formats the hidden items text with the number of hidden items.
|
|
602
|
-
* @param hiddenItemsText Template string with {{ number }} placeholder.
|
|
603
|
-
* @param hiddenItems Number of hidden items to display.
|
|
604
|
-
* @returns Formatted string with the number of hidden items.
|
|
605
|
-
*/
|
|
606
|
-
hiddenItemsTextFormatter(hiddenItemsText: string, hiddenItems: number): string;
|
|
607
799
|
/**
|
|
608
800
|
* Selects every option "select all" can act on, or deselects them all when they are already selected.
|
|
609
801
|
*
|
|
@@ -612,19 +804,22 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
612
804
|
*/
|
|
613
805
|
protected toggleSelectAll(): void;
|
|
614
806
|
/**
|
|
615
|
-
* Clears the
|
|
807
|
+
* Clears the options `clearPredicate` accepts, which by default leaves the disabled ones selected.
|
|
808
|
+
*
|
|
616
809
|
* @docs-private
|
|
617
810
|
*/
|
|
618
811
|
clear(): void;
|
|
619
812
|
/**
|
|
620
|
-
*
|
|
621
|
-
*
|
|
813
|
+
* Called when the value changes. Needed to properly implement `ControlValueAccessor`.
|
|
814
|
+
*
|
|
622
815
|
* @docs-private
|
|
623
816
|
*/
|
|
624
|
-
clearValue(event: Event): void;
|
|
625
|
-
/** `View -> model callback called when value changes` */
|
|
626
817
|
onChange: (value: any) => void;
|
|
627
|
-
/**
|
|
818
|
+
/**
|
|
819
|
+
* Called when the control is blurred. Needed to properly implement `ControlValueAccessor`.
|
|
820
|
+
*
|
|
821
|
+
* @docs-private
|
|
822
|
+
*/
|
|
628
823
|
onTouched: () => void;
|
|
629
824
|
/** Resets the search component if present. */
|
|
630
825
|
resetSearch(): void;
|
|
@@ -643,8 +838,14 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
643
838
|
* Sets up the overlay dimensions based on trigger size and configured options.
|
|
644
839
|
*/
|
|
645
840
|
openPanel(): void;
|
|
841
|
+
private attachPanel;
|
|
646
842
|
/** Closes the overlay panel. */
|
|
647
843
|
close(): void;
|
|
844
|
+
/**
|
|
845
|
+
* Reports the panel rendered or removed once the next render has applied `panelOpen`; only the latest
|
|
846
|
+
* report of a frame is delivered.
|
|
847
|
+
*/
|
|
848
|
+
private reportPanelRendered;
|
|
648
849
|
/**
|
|
649
850
|
* Sets the select's value. Part of the ControlValueAccessor interface
|
|
650
851
|
* required to integrate with Angular's core forms API.
|
|
@@ -677,12 +878,14 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
677
878
|
setDisabledState(isDisabled: boolean): void;
|
|
678
879
|
/**
|
|
679
880
|
* Checks if the current direction is RTL (right-to-left).
|
|
881
|
+
*
|
|
680
882
|
* @returns True if RTL mode is active, false otherwise.
|
|
681
883
|
*/
|
|
682
884
|
isRtl(): boolean;
|
|
683
885
|
/**
|
|
684
886
|
* Handles all keyboard events for the select.
|
|
685
887
|
* Delegates to appropriate handler based on panel state.
|
|
888
|
+
*
|
|
686
889
|
* @param event The keyboard event to handle.
|
|
687
890
|
*/
|
|
688
891
|
handleKeydown(event: KeyboardEvent): void;
|
|
@@ -708,34 +911,43 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
708
911
|
protected isListHeightPinnedToCap(): boolean;
|
|
709
912
|
/** Returns the theme to be used on the panel based on parent form field color. */
|
|
710
913
|
getPanelTheme(): string;
|
|
711
|
-
/**
|
|
914
|
+
/**
|
|
915
|
+
* Returns the full set of classes for the panel: base class, theme and custom `panelClass`.
|
|
916
|
+
*
|
|
917
|
+
* Only the theme is read per change detection — it comes from the form field, which does not expose
|
|
918
|
+
* its color as a signal — while the `panelClass` expansion is memoised.
|
|
919
|
+
*/
|
|
712
920
|
protected getPanelClasses(): string;
|
|
713
921
|
/** Focuses the select element. */
|
|
714
922
|
focus(): void;
|
|
715
923
|
/**
|
|
716
924
|
* Implemented as part of KbqFormFieldControl.
|
|
925
|
+
*
|
|
717
926
|
* @docs-private
|
|
718
927
|
*/
|
|
719
|
-
onContainerClick(): void;
|
|
928
|
+
onContainerClick(event?: MouseEvent): void;
|
|
720
929
|
/**
|
|
721
930
|
* Handles removal of a matched item in the trigger.
|
|
931
|
+
*
|
|
722
932
|
* @param option The option to remove from selection.
|
|
723
|
-
* @param $event The mouse event that triggered the removal.
|
|
724
|
-
*/
|
|
725
|
-
onRemoveMatcherItem(option: KbqOptionBase, $event: any): void;
|
|
726
|
-
/**
|
|
727
|
-
* Calculates the number of hidden items in multiple selection mode.
|
|
728
|
-
* Updates the hiddenItems property and triggers change detection.
|
|
933
|
+
* @param $event The mouse or keyboard event that triggered the removal.
|
|
729
934
|
*/
|
|
935
|
+
onRemoveMatcherItem(option: KbqOptionBase, $event: Event): void;
|
|
936
|
+
/** Accessible name of the control that removes a selected value from the trigger. */
|
|
937
|
+
protected removeItemAriaLabel(option: KbqOptionBase): string;
|
|
938
|
+
/** Calculates the number of hidden items in multiple selection mode and updates `hiddenItems`. */
|
|
730
939
|
calculateHiddenItems: () => void;
|
|
940
|
+
private measureHiddenItems;
|
|
731
941
|
/**
|
|
732
942
|
* Gets the height of a single option item.
|
|
943
|
+
*
|
|
733
944
|
* @returns The height in pixels of the first option, or 0 if no options exist.
|
|
734
945
|
*/
|
|
735
946
|
getItemHeight(): number;
|
|
736
947
|
/**
|
|
737
948
|
* Handles click events on the select.
|
|
738
949
|
* Closes the panel if click is inside the footer.
|
|
950
|
+
*
|
|
739
951
|
* @param $event The mouse event to handle.
|
|
740
952
|
*/
|
|
741
953
|
handleClick($event: MouseEvent): void;
|
|
@@ -750,16 +962,25 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
750
962
|
private focusNextInFooter;
|
|
751
963
|
/** @docs-private */
|
|
752
964
|
setSelectedOptionsByClick(option: KbqOption): void;
|
|
965
|
+
/**
|
|
966
|
+
* Flips the selected state of a single option through the option itself.
|
|
967
|
+
*
|
|
968
|
+
* Toggling the selection model directly would not do: only the option's own selection change reaches
|
|
969
|
+
* `onSelect`, which is what writes the value back to the form control — every branch above relies on
|
|
970
|
+
* the same path.
|
|
971
|
+
*/
|
|
972
|
+
private toggleOption;
|
|
753
973
|
/** @docs-private */
|
|
754
974
|
protected shouldShowSearch(): boolean;
|
|
755
|
-
/**
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
975
|
+
/**
|
|
976
|
+
* Reports whether the trigger is on screen, so the hidden items are re-measured once it appears.
|
|
977
|
+
*
|
|
978
|
+
* An `IntersectionObserver` rather than a geometry probe in `ngDoCheck`: reading `offsetTop` forces a
|
|
979
|
+
* synchronous layout, and `ngDoCheck` runs on every change detection cycle of every ancestor.
|
|
980
|
+
*/
|
|
981
|
+
private observeVisibility;
|
|
982
|
+
/** Whether a modal paints over the panel, so that clicks inside the modal leave the panel open. */
|
|
983
|
+
private isCoveredByModal;
|
|
763
984
|
/**
|
|
764
985
|
* Creates an observable of actions that should close the select panel.
|
|
765
986
|
* Includes outside pointer events and overlay detachments.
|
|
@@ -776,20 +997,6 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
776
997
|
* or the component is destroyed.
|
|
777
998
|
*/
|
|
778
999
|
private subscribeToScrolledToBottom;
|
|
779
|
-
/** Calculates the total width of all selected items in the matcher. */
|
|
780
|
-
private getTotalItemsWidthInMatcher;
|
|
781
|
-
/**
|
|
782
|
-
* Calculates the width of a single item including margins.
|
|
783
|
-
*
|
|
784
|
-
* The elements measured here are `kbq-tag`s, which are `border-box` and carry horizontal
|
|
785
|
-
* padding. `getComputedStyle().width` resolves to the used content-box width whatever
|
|
786
|
-
* `box-sizing` says, so it dropped that padding from every tag and the matcher believed more
|
|
787
|
-
* tags fit than actually do. `getBoundingClientRect()` is always the border box — the same fix
|
|
788
|
-
* `kbqGetPanelWidthOrigin()` carries for the dropdown trigger.
|
|
789
|
-
* @param element The DOM element to measure.
|
|
790
|
-
* @returns Total width including margins and gap.
|
|
791
|
-
*/
|
|
792
|
-
private getItemWidth;
|
|
793
1000
|
/** Handles keyboard events while the select is closed. */
|
|
794
1001
|
private handleClosedKeydown;
|
|
795
1002
|
/** Handles keyboard events when the select is open. */
|
|
@@ -810,20 +1017,25 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
810
1017
|
* it is already part of.
|
|
811
1018
|
*/
|
|
812
1019
|
private syncNavigableOptions;
|
|
1020
|
+
/** Selects the options of `value` once the options are settled; until then `initializeSelection` does. */
|
|
1021
|
+
private applyValue;
|
|
813
1022
|
/**
|
|
814
1023
|
* Sets the selected option based on a value.
|
|
815
1024
|
* If no option can be found with the designated value, the select trigger is cleared.
|
|
1025
|
+
*
|
|
816
1026
|
* @param value The value to select. Can be a single value or array for multiple selection.
|
|
817
1027
|
*/
|
|
818
1028
|
private setSelectionByValue;
|
|
819
1029
|
/**
|
|
820
1030
|
* Finds the option that corresponds to the given value.
|
|
1031
|
+
*
|
|
821
1032
|
* @param value The value to find.
|
|
822
1033
|
* @returns The matching option or undefined if not found.
|
|
823
1034
|
*/
|
|
824
1035
|
private getCorrespondOption;
|
|
825
1036
|
/**
|
|
826
1037
|
* Finds and selects an option based on its value.
|
|
1038
|
+
*
|
|
827
1039
|
* @returns Option that has the corresponding value, when it is currently rendered.
|
|
828
1040
|
*/
|
|
829
1041
|
private selectValue;
|
|
@@ -861,29 +1073,10 @@ declare class KbqSelect extends KbqAbstractSelect implements AfterContentInit, O
|
|
|
861
1073
|
*/
|
|
862
1074
|
private highlightCorrectOption;
|
|
863
1075
|
private scrollActiveOptionIntoView;
|
|
864
|
-
/** Comparison function to specify which option is displayed. Defaults to object equality. */
|
|
865
|
-
private _compareWith;
|
|
866
1076
|
/** Function for handling the combination Ctrl + A (select all). By default, the internal handler is used. */
|
|
867
|
-
private
|
|
868
|
-
/**
|
|
869
|
-
* Calculates the total width and count of visible items.
|
|
870
|
-
* @returns Tuple of [totalVisibleItemsWidth, visibleItemsCount].
|
|
871
|
-
*/
|
|
872
|
-
private getTotalVisibleItems;
|
|
873
|
-
/**
|
|
874
|
-
* Creates a hidden clone of the trigger element for width calculations.
|
|
875
|
-
* @returns Clone of the trigger element positioned off-screen.
|
|
876
|
-
*/
|
|
877
|
-
private buildTriggerClone;
|
|
878
|
-
/** Adds the dropdown class to the overlay container when first select opens. */
|
|
879
|
-
private addClassToOverlayContainer;
|
|
880
|
-
/** Removes the dropdown class from the overlay container when select closes. */
|
|
881
|
-
private removeClassFromOverlayContainer;
|
|
1077
|
+
private defaultSelectAllHandler;
|
|
882
1078
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<KbqSelect, never>;
|
|
883
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KbqSelect, "kbq-select", ["kbqSelect"], { "hiddenItemsText": { "alias": "hiddenItemsText"; "required": false; }; "showPreselectedValues": { "alias": "showPreselectedValues"; "required": false; "isSignal": true; }; "triggerValuesLimit": { "alias": "triggerValuesLimit"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "sortComparator": { "alias": "sortComparator"; "required": false; "isSignal": true; }; "multiline": { "alias": "multiline"; "required": false; "isSignal": true; }; "
|
|
884
|
-
static ngAcceptInputType_multiple: unknown;
|
|
885
|
-
static ngAcceptInputType_tabIndex: unknown;
|
|
886
|
-
static ngAcceptInputType_disabled: unknown;
|
|
1079
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<KbqSelect, "kbq-select", ["kbqSelect"], { "hiddenItemsText": { "alias": "hiddenItemsText"; "required": false; "isSignal": true; }; "hiddenItemsTextFormatter": { "alias": "hiddenItemsTextFormatter"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "showPreselectedValues": { "alias": "showPreselectedValues"; "required": false; "isSignal": true; }; "triggerValuesLimit": { "alias": "triggerValuesLimit"; "required": false; "isSignal": true; }; "panelClass": { "alias": "panelClass"; "required": false; "isSignal": true; }; "backdropClass": { "alias": "backdropClass"; "required": false; "isSignal": true; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; "isSignal": true; }; "sortComparator": { "alias": "sortComparator"; "required": false; "isSignal": true; }; "multiline": { "alias": "multiline"; "required": false; "isSignal": true; }; "searchMinOptionsThresholdInput": { "alias": "searchMinOptionsThreshold"; "required": false; "isSignal": true; }; "scrolledToBottomOffset": { "alias": "scrolledToBottomOffset"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "multipleInput": { "alias": "multiple"; "required": false; "isSignal": true; }; "compareWith": { "alias": "compareWith"; "required": false; "isSignal": true; }; "virtualOptionFactory": { "alias": "virtualOptionFactory"; "required": false; "isSignal": true; }; "clearPredicate": { "alias": "clearPredicate"; "required": false; "isSignal": true; }; "selectAllToggle": { "alias": "selectAllToggle"; "required": false; "isSignal": true; }; "selectAll": { "alias": "selectAll"; "required": false; "isSignal": true; }; "selectAllHandlerInput": { "alias": "selectAllHandler"; "required": false; "isSignal": true; }; "panelWidth": { "alias": "panelWidth"; "required": false; "isSignal": true; }; "panelMinWidth": { "alias": "panelMinWidth"; "required": false; "isSignal": true; }; "panelMaxWidth": { "alias": "panelMaxWidth"; "required": false; "isSignal": true; }; "panelMaxHeight": { "alias": "panelMaxHeight"; "required": false; "isSignal": true; }; "valueInput": { "alias": "value"; "required": false; "isSignal": true; }; "idInput": { "alias": "id"; "required": false; "isSignal": true; }; "tabIndexInput": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "openedChangeOutput": "openedChange"; "beforeOpened": "beforeOpened"; "openedOutput": "opened"; "closedOutput": "closed"; "selectionChange": "selectionChange"; "onSelectAll": "onSelectAll"; "valueChange": "valueChange"; "scrolledToBottom": "scrolledToBottom"; }, ["projectedScrollbarViewport", "footer", "cdkVirtualForOf", "virtualScrollViewport", "customTrigger", "customMatcher", "customTagTemplateRef", "cleaner", "optionsQuery", "optionGroups", "search", "searchEmpty"], ["kbq-select-matcher, [kbq-select-matcher]", "kbq-select-trigger, [kbq-select-trigger]", "kbq-cleaner", "[kbqSelectSearch]", "[kbq-select-search-empty-result]", "*", "kbq-select-footer,[kbq-select-footer]"], true, [{ directive: typeof i2.KbqLocaleOverridesDirective; inputs: { "kbqLocaleOverrides": "localeOverrides"; }; outputs: {}; }]>;
|
|
887
1080
|
}
|
|
888
1081
|
|
|
889
1082
|
declare class KbqSelectModule {
|
|
@@ -892,5 +1085,5 @@ declare class KbqSelectModule {
|
|
|
892
1085
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<KbqSelectModule>;
|
|
893
1086
|
}
|
|
894
1087
|
|
|
895
|
-
export { KBQ_SELECT_OPTIONS, KbqOptionTooltip, KbqSelect, KbqSelectChange, KbqSelectError, KbqSelectErrorText, KbqSelectLoading, KbqSelectModule, KbqSelectNoOptions, delayBeforeDisplayingResultWithoutOptions, kbqSelectOptionsProvider, minimumTimeToDisplayLoading };
|
|
896
|
-
export type {
|
|
1088
|
+
export { KBQ_SELECT_HIDDEN_TEXT_VISIBLE_CLASS, KBQ_SELECT_OPTIONS, KbqOptionTooltip, KbqSelect, KbqSelectChange, KbqSelectError, KbqSelectErrorText, KbqSelectHiddenItemsMeasurer, KbqSelectLoading, KbqSelectModule, KbqSelectNoOptions, delayBeforeDisplayingResultWithoutOptions, kbqSelectOptionsProvider, minimumTimeToDisplayLoading };
|
|
1089
|
+
export type { KbqSelectMatcherMeasurement, KbqSelectOptions };
|