@koobiq/components 18.34.0 → 18.36.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.component.d.ts +1 -1
- package/app-switcher/_app-switcher-theme.scss +34 -0
- package/app-switcher/app-switcher-animations.d.ts +5 -0
- package/app-switcher/app-switcher-dropdown-app.d.ts +11 -0
- package/app-switcher/app-switcher-dropdown-app.scss +85 -0
- package/app-switcher/app-switcher-dropdown-site.d.ts +9 -0
- package/app-switcher/app-switcher-dropdown-site.scss +53 -0
- package/app-switcher/app-switcher.d.ts +191 -0
- package/app-switcher/app-switcher.module.d.ts +10 -0
- package/app-switcher/app-switcher.scss +64 -0
- package/app-switcher/index.d.ts +1 -0
- package/app-switcher/kbq-app-switcher-list-item.d.ts +16 -0
- package/app-switcher/kbq-app-switcher-list-item.scss +180 -0
- package/app-switcher/public-api.d.ts +6 -0
- package/badge/badge.component.d.ts +1 -1
- package/badge/badge.component.scss +2 -0
- package/breadcrumbs/breadcrumbs.scss +4 -0
- package/button/_button-theme.scss +1 -0
- package/button/button.component.d.ts +2 -2
- package/core/common-behaviors/clipboard.d.ts +1 -1
- package/core/common-behaviors/color.d.ts +5 -5
- package/core/common-behaviors/focus-monitor.d.ts +19 -0
- package/core/common-behaviors/hovered.d.ts +13 -0
- package/core/common-behaviors/index.d.ts +4 -0
- package/core/common-behaviors/orientation.d.ts +4 -0
- package/core/common-behaviors/read-state.d.ts +12 -0
- package/core/form-field/field-sizing-content.d.ts +21 -0
- package/core/form-field/index.d.ts +1 -0
- package/core/locales/en-US.d.ts +68 -0
- package/core/locales/es-LA.d.ts +68 -0
- package/core/locales/fa-IR.d.ts +68 -0
- package/core/locales/locale-service.d.ts +476 -0
- package/core/locales/pt-BR.d.ts +68 -0
- package/core/locales/ru-RU.d.ts +68 -0
- package/core/locales/tk-TM.d.ts +68 -0
- package/core/locales/types.d.ts +22 -0
- package/core/locales/zh-CN.d.ts +68 -0
- package/core/navbar/index.d.ts +1 -0
- package/core/navbar/rectangle-item.d.ts +14 -0
- package/core/option/action.d.ts +1 -1
- package/core/option/option.d.ts +4 -2
- package/core/pop-up/constants.d.ts +2 -1
- package/core/pop-up/pop-up-trigger.d.ts +5 -3
- package/core/pop-up/pop-up.d.ts +2 -1
- package/core/public-api.d.ts +1 -0
- package/core/select/common.d.ts +3 -0
- package/core/select/constants.d.ts +5 -0
- package/core/styles/common/_select.scss +5 -0
- package/core/utils/dom.d.ts +4 -0
- package/core/utils/index.d.ts +1 -0
- package/core/utils/utils.d.ts +4 -0
- package/datepicker/datepicker-input.directive.d.ts +18 -7
- package/divider/divider.scss +1 -0
- package/dropdown/dropdown-item.scss +1 -0
- package/dropdown/dropdown-trigger.directive.d.ts +7 -1
- package/dropdown/dropdown.component.d.ts +5 -1
- package/dropdown/dropdown.module.d.ts +1 -1
- package/esm2022/accordion/accordion-content.mjs +3 -3
- package/esm2022/accordion/accordion-header.mjs +3 -3
- package/esm2022/accordion/accordion-item.mjs +3 -3
- package/esm2022/accordion/accordion-trigger.component.mjs +3 -3
- package/esm2022/accordion/accordion.component.mjs +5 -5
- package/esm2022/accordion/accordion.module.mjs +4 -4
- package/esm2022/actions-panel/actions-panel-container.mjs +3 -3
- package/esm2022/actions-panel/actions-panel.mjs +3 -3
- package/esm2022/actions-panel/module.mjs +4 -4
- package/esm2022/alert/alert.component.mjs +12 -12
- package/esm2022/alert/alert.module.mjs +4 -4
- package/esm2022/app-switcher/app-switcher-animations.mjs +18 -0
- package/esm2022/app-switcher/app-switcher-dropdown-app.mjs +75 -0
- package/esm2022/app-switcher/app-switcher-dropdown-site.mjs +60 -0
- package/esm2022/app-switcher/app-switcher.mjs +446 -0
- package/esm2022/app-switcher/app-switcher.module.mjs +45 -0
- package/esm2022/app-switcher/index.mjs +2 -0
- package/esm2022/app-switcher/kbq-app-switcher-list-item.mjs +84 -0
- package/esm2022/app-switcher/koobiq-components-app-switcher.mjs +5 -0
- package/esm2022/app-switcher/public-api.mjs +7 -0
- package/esm2022/autocomplete/autocomplete-origin.directive.mjs +3 -3
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +3 -3
- package/esm2022/autocomplete/autocomplete.component.mjs +3 -3
- package/esm2022/autocomplete/autocomplete.module.mjs +4 -4
- package/esm2022/badge/badge.component.mjs +11 -11
- package/esm2022/badge/badge.module.mjs +4 -4
- package/esm2022/breadcrumbs/breadcrumbs.mjs +17 -17
- package/esm2022/breadcrumbs/breadcrumbs.module.mjs +4 -4
- package/esm2022/button/button.component.mjs +9 -9
- package/esm2022/button/button.dropdown-trigger.directive.mjs +3 -3
- package/esm2022/button/button.module.mjs +4 -4
- package/esm2022/button-toggle/button-toggle.component.mjs +6 -6
- package/esm2022/button-toggle/button-toggle.module.mjs +4 -4
- package/esm2022/checkbox/checkbox-module.mjs +4 -4
- package/esm2022/checkbox/checkbox-required-validator.mjs +3 -3
- package/esm2022/checkbox/checkbox.mjs +3 -3
- package/esm2022/clamped-text/clamped-text.mjs +3 -3
- package/esm2022/clamped-text/module.mjs +4 -4
- package/esm2022/code-block/code-block-highlight.mjs +7 -7
- package/esm2022/code-block/code-block.mjs +4 -4
- package/esm2022/code-block/code-block.module.mjs +4 -4
- package/esm2022/content-panel/content-panel.mjs +24 -24
- package/esm2022/content-panel/module.mjs +4 -4
- package/esm2022/content-panel/resizable.mjs +6 -6
- package/esm2022/core/common-behaviors/clipboard.mjs +4 -4
- package/esm2022/core/common-behaviors/color.mjs +6 -7
- package/esm2022/core/common-behaviors/common-module.mjs +4 -4
- package/esm2022/core/common-behaviors/focus-monitor.mjs +37 -0
- package/esm2022/core/common-behaviors/hovered.mjs +31 -0
- package/esm2022/core/common-behaviors/index.mjs +5 -1
- package/esm2022/core/common-behaviors/orientation.mjs +2 -0
- package/esm2022/core/common-behaviors/read-state.mjs +33 -0
- package/esm2022/core/error/error-state-matcher.mjs +9 -9
- package/esm2022/core/form-field/field-sizing-content.mjs +114 -0
- package/esm2022/core/form-field/index.mjs +2 -1
- package/esm2022/core/formatters/date/formatter.mjs +3 -3
- package/esm2022/core/formatters/date/formatter.pipe.mjs +78 -78
- package/esm2022/core/formatters/filesize/formatter.mjs +3 -3
- package/esm2022/core/formatters/index.mjs +4 -4
- package/esm2022/core/formatters/number/formatter.mjs +12 -12
- package/esm2022/core/forms/forms-module.mjs +4 -4
- package/esm2022/core/forms/forms.directive.mjs +6 -6
- package/esm2022/core/highlight/highlight.pipe.mjs +3 -3
- package/esm2022/core/highlight/index.mjs +4 -4
- package/esm2022/core/line/line.mjs +7 -7
- package/esm2022/core/locales/en-US.mjs +111 -1
- package/esm2022/core/locales/es-LA.mjs +111 -1
- package/esm2022/core/locales/fa-IR.mjs +81 -1
- package/esm2022/core/locales/locale-service.mjs +3 -3
- package/esm2022/core/locales/locale-service.module.mjs +4 -4
- package/esm2022/core/locales/pt-BR.mjs +111 -1
- package/esm2022/core/locales/ru-RU.mjs +125 -1
- package/esm2022/core/locales/tk-TM.mjs +111 -1
- package/esm2022/core/locales/types.mjs +1 -1
- package/esm2022/core/locales/zh-CN.mjs +69 -1
- package/esm2022/core/navbar/index.mjs +2 -0
- package/esm2022/core/navbar/rectangle-item.mjs +40 -0
- package/esm2022/core/option/action-container.mjs +3 -3
- package/esm2022/core/option/action.mjs +4 -4
- package/esm2022/core/option/optgroup.mjs +3 -3
- package/esm2022/core/option/option-module.mjs +4 -4
- package/esm2022/core/option/option.mjs +10 -6
- package/esm2022/core/pop-up/constants.mjs +2 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +10 -6
- package/esm2022/core/pop-up/pop-up.mjs +4 -4
- package/esm2022/core/public-api.mjs +2 -1
- package/esm2022/core/select/common.mjs +27 -17
- package/esm2022/core/select/constants.mjs +6 -1
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.module.mjs +4 -4
- package/esm2022/core/services/measure-scrollbar.service.mjs +3 -3
- package/esm2022/core/services/theme.service.mjs +3 -3
- package/esm2022/core/utils/dom.mjs +8 -0
- package/esm2022/core/utils/index.mjs +2 -1
- package/esm2022/core/utils/utils.mjs +9 -1
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-body.component.mjs +3 -3
- package/esm2022/datepicker/calendar-header.component.mjs +3 -3
- package/esm2022/datepicker/calendar.component.mjs +3 -3
- package/esm2022/datepicker/datepicker-input.directive.mjs +29 -26
- package/esm2022/datepicker/datepicker-intl.mjs +3 -3
- package/esm2022/datepicker/datepicker-module.mjs +4 -4
- package/esm2022/datepicker/datepicker-toggle.component.mjs +9 -9
- package/esm2022/datepicker/datepicker.component.mjs +6 -6
- package/esm2022/datepicker/month-view.component.mjs +3 -3
- package/esm2022/divider/divider.component.mjs +4 -4
- package/esm2022/divider/divider.module.mjs +4 -4
- package/esm2022/dl/dl.component.mjs +9 -9
- package/esm2022/dl/dl.module.mjs +4 -4
- package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
- package/esm2022/dropdown/dropdown-item.component.mjs +5 -5
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +33 -13
- package/esm2022/dropdown/dropdown.component.mjs +18 -8
- package/esm2022/dropdown/dropdown.module.mjs +14 -10
- package/esm2022/dynamic-translation/dynamic-translation.mjs +9 -9
- package/esm2022/dynamic-translation/module.mjs +4 -4
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -7
- package/esm2022/empty-state/empty-state.component.mjs +15 -15
- package/esm2022/empty-state/empty-state.module.mjs +4 -4
- package/esm2022/file-upload/file-drop.mjs +3 -3
- package/esm2022/file-upload/file-upload.mjs +6 -1
- package/esm2022/file-upload/file-upload.module.mjs +4 -4
- package/esm2022/file-upload/multiple-file-upload.component.mjs +29 -13
- package/esm2022/file-upload/single-file-upload.component.mjs +25 -10
- package/esm2022/filter-bar/filter-bar-button.mjs +3 -3
- package/esm2022/filter-bar/filter-bar.mjs +6 -6
- package/esm2022/filter-bar/filter-bar.module.mjs +4 -4
- package/esm2022/filter-bar/filter-refresher.mjs +3 -3
- package/esm2022/filter-bar/filter-reset.mjs +3 -3
- package/esm2022/filter-bar/filter-search.mjs +3 -3
- package/esm2022/filter-bar/filters.mjs +18 -6
- package/esm2022/filter-bar/pipe-add.mjs +5 -5
- package/esm2022/filter-bar/pipe.directive.mjs +3 -3
- package/esm2022/filter-bar/pipes/base-pipe.mjs +7 -7
- package/esm2022/filter-bar/pipes/pipe-button.mjs +3 -3
- package/esm2022/filter-bar/pipes/pipe-date.mjs +6 -6
- package/esm2022/filter-bar/pipes/pipe-datetime.mjs +6 -6
- package/esm2022/filter-bar/pipes/pipe-multi-select.mjs +19 -14
- package/esm2022/filter-bar/pipes/pipe-multi-tree-select.mjs +12 -7
- package/esm2022/filter-bar/pipes/pipe-readonly.mjs +6 -6
- package/esm2022/filter-bar/pipes/pipe-select.mjs +6 -6
- package/esm2022/filter-bar/pipes/pipe-state.mjs +3 -3
- package/esm2022/filter-bar/pipes/pipe-text.mjs +6 -6
- package/esm2022/filter-bar/pipes/pipe-title.mjs +3 -3
- package/esm2022/filter-bar/pipes/pipe-tree-select.mjs +6 -6
- package/esm2022/form-field/cleaner.mjs +3 -3
- package/esm2022/form-field/error.mjs +3 -3
- package/esm2022/form-field/fieldset.mjs +11 -11
- package/esm2022/form-field/form-field.mjs +11 -11
- package/esm2022/form-field/form-field.module.mjs +4 -4
- package/esm2022/form-field/hint.mjs +3 -3
- package/esm2022/form-field/label.mjs +3 -3
- package/esm2022/form-field/password-hint.mjs +3 -3
- package/esm2022/form-field/password-toggle.mjs +7 -7
- package/esm2022/form-field/prefix.mjs +3 -3
- package/esm2022/form-field/reactive-password-hint.mjs +3 -3
- package/esm2022/form-field/stepper.mjs +3 -3
- package/esm2022/form-field/suffix.mjs +3 -3
- package/esm2022/form-field/validate.directive.mjs +3 -3
- package/esm2022/icon/icon-button.component.mjs +3 -3
- package/esm2022/icon/icon-item.component.mjs +3 -3
- package/esm2022/icon/icon.component.mjs +4 -4
- package/esm2022/icon/icon.module.mjs +4 -4
- package/esm2022/inline-edit/index.mjs +3 -0
- package/esm2022/inline-edit/inline-edit.mjs +378 -0
- package/esm2022/inline-edit/koobiq-components-inline-edit.mjs +5 -0
- package/esm2022/inline-edit/module.mjs +25 -0
- package/esm2022/input/input-number-validators.mjs +6 -6
- package/esm2022/input/input-number.mjs +4 -4
- package/esm2022/input/input-password.mjs +4 -4
- package/esm2022/input/input.mjs +7 -7
- package/esm2022/input/input.module.mjs +4 -4
- package/esm2022/link/link.component.mjs +6 -6
- package/esm2022/link/link.module.mjs +4 -4
- package/esm2022/list/list-selection.component.mjs +10 -10
- package/esm2022/list/list.component.mjs +6 -6
- package/esm2022/list/list.module.mjs +4 -4
- package/esm2022/loader-overlay/loader-overlay.component.mjs +13 -13
- package/esm2022/loader-overlay/loader-overlay.module.mjs +4 -4
- package/esm2022/markdown/markdown.component.mjs +5 -5
- package/esm2022/markdown/markdown.module.mjs +4 -4
- package/esm2022/markdown/markdown.service.mjs +3 -3
- package/esm2022/modal/css-unit.pipe.mjs +3 -3
- package/esm2022/modal/modal-control.service.mjs +3 -3
- package/esm2022/modal/modal.component.mjs +4 -4
- package/esm2022/modal/modal.directive.mjs +12 -12
- package/esm2022/modal/modal.module.mjs +4 -4
- package/esm2022/modal/modal.service.mjs +3 -3
- package/esm2022/navbar/navbar-item.component.mjs +49 -38
- package/esm2022/navbar/navbar.component.mjs +10 -10
- package/esm2022/navbar/navbar.module.mjs +4 -4
- package/esm2022/navbar/vertical-navbar.component.mjs +4 -4
- package/esm2022/navbar-ic/index.mjs +2 -0
- package/esm2022/navbar-ic/koobiq-components-navbar-ic.mjs +5 -0
- package/esm2022/navbar-ic/navbar-ic-header.mjs +58 -0
- package/esm2022/navbar-ic/navbar-ic-item.mjs +391 -0
- package/esm2022/navbar-ic/navbar-ic.animation.mjs +9 -0
- package/esm2022/navbar-ic/navbar-ic.mjs +286 -0
- package/esm2022/navbar-ic/navbar-ic.module.mjs +74 -0
- package/esm2022/navbar-ic/public-api.mjs +5 -0
- package/esm2022/notification-center/index.mjs +2 -0
- package/esm2022/notification-center/koobiq-components-notification-center.mjs +5 -0
- package/esm2022/notification-center/notification-center-animations.mjs +18 -0
- package/esm2022/notification-center/notification-center.mjs +353 -0
- package/esm2022/notification-center/notification-center.module.mjs +38 -0
- package/esm2022/notification-center/notification-center.service.mjs +127 -0
- package/esm2022/notification-center/notification-item.mjs +70 -0
- package/esm2022/notification-center/public-api.mjs +5 -0
- package/esm2022/overflow-items/module.mjs +4 -4
- package/esm2022/overflow-items/overflow-items.mjs +95 -41
- package/esm2022/popover/popover-confirm.component.mjs +10 -10
- package/esm2022/popover/popover.component.mjs +24 -14
- package/esm2022/popover/popover.module.mjs +4 -4
- package/esm2022/progress-bar/progress-bar.component.mjs +9 -9
- package/esm2022/progress-bar/progress-bar.module.mjs +4 -4
- package/esm2022/progress-spinner/progress-spinner.component.mjs +9 -9
- package/esm2022/progress-spinner/progress-spinner.module.mjs +4 -4
- package/esm2022/radio/radio.component.mjs +6 -6
- package/esm2022/radio/radio.module.mjs +4 -4
- package/esm2022/risk-level/risk-level.component.mjs +3 -3
- package/esm2022/risk-level/risk-level.module.mjs +4 -4
- package/esm2022/scrollbar/scrollbar.component.mjs +3 -3
- package/esm2022/scrollbar/scrollbar.directive.mjs +3 -3
- package/esm2022/scrollbar/scrollbar.module.mjs +4 -4
- package/esm2022/search-expandable/index.mjs +2 -0
- package/esm2022/search-expandable/koobiq-components-search-expandable.mjs +5 -0
- package/esm2022/search-expandable/public-api.mjs +3 -0
- package/esm2022/search-expandable/search-expandable.mjs +177 -0
- package/esm2022/search-expandable/search-expandable.module.mjs +18 -0
- package/esm2022/select/select-option.directive.mjs +3 -3
- package/esm2022/select/select.component.mjs +37 -10
- package/esm2022/select/select.module.mjs +4 -4
- package/esm2022/sidebar/sidebar.component.mjs +9 -9
- package/esm2022/sidebar/sidebar.module.mjs +4 -4
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-directives.mjs +15 -15
- package/esm2022/sidepanel/sidepanel.module.mjs +4 -4
- package/esm2022/sidepanel/sidepanel.service.mjs +3 -3
- package/esm2022/split-button/index.mjs +2 -0
- package/esm2022/split-button/koobiq-components-split-button.mjs +5 -0
- package/esm2022/split-button/public-api.mjs +3 -0
- package/esm2022/split-button/split-button.mjs +92 -0
- package/esm2022/split-button/split-button.module.mjs +18 -0
- package/esm2022/splitter/splitter.component.mjs +13 -13
- package/esm2022/splitter/splitter.module.mjs +4 -4
- package/esm2022/table/table.component.mjs +6 -6
- package/esm2022/table/table.module.mjs +4 -4
- package/esm2022/tabs/paginated-tab-header.mjs +4 -4
- package/esm2022/tabs/tab-body.component.mjs +6 -6
- package/esm2022/tabs/tab-content.directive.mjs +3 -3
- package/esm2022/tabs/tab-group.component.mjs +15 -15
- package/esm2022/tabs/tab-header.component.mjs +4 -4
- package/esm2022/tabs/tab-label-wrapper.directive.mjs +4 -4
- package/esm2022/tabs/tab-label.directive.mjs +3 -3
- package/esm2022/tabs/tab-nav-bar.mjs +10 -10
- package/esm2022/tabs/tab.component.mjs +3 -3
- package/esm2022/tabs/tabs.module.mjs +4 -4
- package/esm2022/tags/tag-input.mjs +17 -11
- package/esm2022/tags/tag-list.component.mjs +256 -195
- package/esm2022/tags/tag.component.mjs +398 -118
- package/esm2022/tags/tag.module.mjs +20 -10
- package/esm2022/textarea/textarea.component.mjs +5 -5
- package/esm2022/textarea/textarea.module.mjs +4 -4
- package/esm2022/time-range/constants.mjs +21 -0
- package/esm2022/time-range/index.mjs +8 -0
- package/esm2022/time-range/koobiq-components-time-range.mjs +5 -0
- package/esm2022/time-range/module.mjs +36 -0
- package/esm2022/time-range/time-range-editor.mjs +219 -0
- package/esm2022/time-range/time-range-title-as-form-field.mjs +59 -0
- package/esm2022/time-range/time-range-title.mjs +112 -0
- package/esm2022/time-range/time-range.mjs +229 -0
- package/esm2022/time-range/time-range.service.mjs +189 -0
- package/esm2022/time-range/types.mjs +2 -0
- package/esm2022/timepicker/timepicker.directive.mjs +4 -4
- package/esm2022/timepicker/timepicker.module.mjs +4 -4
- package/esm2022/timezone/cities-by-filter.pipe.mjs +3 -3
- package/esm2022/timezone/timezone-option.component.mjs +3 -3
- package/esm2022/timezone/timezone-option.directive.mjs +3 -3
- package/esm2022/timezone/timezone-select.component.mjs +9 -9
- package/esm2022/timezone/timezone.module.mjs +4 -4
- package/esm2022/timezone/utc-offset.pipe.mjs +3 -3
- package/esm2022/title/title.directive.mjs +3 -3
- package/esm2022/title/title.module.mjs +4 -4
- package/esm2022/toast/toast-container.component.mjs +3 -3
- package/esm2022/toast/toast.component.mjs +20 -14
- package/esm2022/toast/toast.module.mjs +4 -4
- package/esm2022/toast/toast.service.mjs +5 -4
- package/esm2022/toast/toast.type.mjs +1 -1
- package/esm2022/toggle/toggle.component.mjs +3 -3
- package/esm2022/toggle/toggle.module.mjs +4 -4
- package/esm2022/tooltip/tooltip.component.mjs +20 -20
- package/esm2022/tooltip/tooltip.module.mjs +4 -4
- package/esm2022/top-bar/module.mjs +4 -4
- package/esm2022/top-bar/top-bar.mjs +9 -9
- package/esm2022/tree/node.mjs +3 -3
- package/esm2022/tree/outlet.mjs +3 -3
- package/esm2022/tree/padding.directive.mjs +3 -3
- package/esm2022/tree/toggle.mjs +16 -12
- package/esm2022/tree/tree-base.mjs +7 -7
- package/esm2022/tree/tree-option.component.mjs +5 -9
- package/esm2022/tree/tree-selection.component.mjs +4 -4
- package/esm2022/tree/tree.mjs +3 -3
- package/esm2022/tree/tree.module.mjs +4 -4
- package/esm2022/tree-select/tree-select.component.mjs +54 -14
- package/esm2022/tree-select/tree-select.module.mjs +4 -4
- package/esm2022/username/module.mjs +4 -4
- package/esm2022/username/username.mjs +15 -15
- package/esm2022/username/username.pipe.mjs +8 -8
- package/fesm2022/koobiq-components-accordion.mjs +20 -20
- package/fesm2022/koobiq-components-accordion.mjs.map +1 -1
- package/fesm2022/koobiq-components-actions-panel.mjs +10 -10
- package/fesm2022/koobiq-components-alert.mjs +16 -16
- package/fesm2022/koobiq-components-app-switcher.mjs +704 -0
- package/fesm2022/koobiq-components-app-switcher.mjs.map +1 -0
- package/fesm2022/koobiq-components-autocomplete.mjs +13 -13
- package/fesm2022/koobiq-components-badge.mjs +14 -14
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-breadcrumbs.mjs +20 -20
- package/fesm2022/koobiq-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +10 -10
- package/fesm2022/koobiq-components-button.mjs +15 -15
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +10 -10
- package/fesm2022/koobiq-components-clamped-text.mjs +7 -7
- package/fesm2022/koobiq-components-code-block.mjs +13 -13
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-content-panel.mjs +34 -34
- package/fesm2022/koobiq-components-core.mjs +1218 -237
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +62 -60
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-divider.mjs +8 -8
- package/fesm2022/koobiq-components-divider.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +13 -13
- package/fesm2022/koobiq-components-dropdown.mjs +69 -35
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-dynamic-translation.mjs +13 -13
- package/fesm2022/koobiq-components-ellipsis-center.mjs +7 -7
- package/fesm2022/koobiq-components-empty-state.mjs +19 -19
- package/fesm2022/koobiq-components-file-upload.mjs +60 -25
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +118 -96
- package/fesm2022/koobiq-components-filter-bar.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +60 -60
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +13 -13
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-inline-edit.mjs +407 -0
- package/fesm2022/koobiq-components-inline-edit.mjs.map +1 -0
- package/fesm2022/koobiq-components-input.mjs +22 -22
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-link.mjs +10 -10
- package/fesm2022/koobiq-components-link.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +19 -19
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +16 -16
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +12 -12
- package/fesm2022/koobiq-components-markdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +28 -28
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar-ic.mjs +797 -0
- package/fesm2022/koobiq-components-navbar-ic.mjs.map +1 -0
- package/fesm2022/koobiq-components-navbar.mjs +65 -54
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-notification-center.mjs +586 -0
- package/fesm2022/koobiq-components-notification-center.mjs.map +1 -0
- package/fesm2022/koobiq-components-overflow-items.mjs +98 -44
- package/fesm2022/koobiq-components-overflow-items.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +36 -26
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-bar.mjs +13 -13
- package/fesm2022/koobiq-components-progress-spinner.mjs +13 -13
- package/fesm2022/koobiq-components-radio.mjs +10 -10
- package/fesm2022/koobiq-components-risk-level.mjs +7 -7
- package/fesm2022/koobiq-components-scrollbar.mjs +10 -10
- package/fesm2022/koobiq-components-search-expandable.mjs +199 -0
- package/fesm2022/koobiq-components-search-expandable.mjs.map +1 -0
- package/fesm2022/koobiq-components-select.mjs +43 -16
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +13 -13
- package/fesm2022/koobiq-components-sidepanel.mjs +25 -25
- package/fesm2022/koobiq-components-split-button.mjs +114 -0
- package/fesm2022/koobiq-components-split-button.mjs.map +1 -0
- package/fesm2022/koobiq-components-splitter.mjs +16 -16
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +10 -10
- package/fesm2022/koobiq-components-tabs.mjs +52 -52
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +683 -331
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +8 -8
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-time-range.mjs +840 -0
- package/fesm2022/koobiq-components-time-range.mjs.map +1 -0
- package/fesm2022/koobiq-components-timepicker.mjs +7 -7
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +24 -24
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +7 -7
- package/fesm2022/koobiq-components-toast.mjs +28 -21
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +7 -7
- package/fesm2022/koobiq-components-tooltip.mjs +23 -23
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-top-bar.mjs +13 -13
- package/fesm2022/koobiq-components-tree-select.mjs +57 -17
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +44 -44
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/fesm2022/koobiq-components-username.mjs +27 -27
- package/file-upload/_file-upload-theme.scss +1 -1
- package/file-upload/file-upload.d.ts +6 -3
- package/file-upload/multiple-file-upload.component.d.ts +4 -1
- package/file-upload/single-file-upload.component.d.ts +4 -1
- package/filter-bar/_filter-bar-theme.scss +2 -2
- package/filter-bar/filters.d.ts +1 -0
- package/filter-bar/pipes/base-pipe.d.ts +1 -1
- package/filter-bar/pipes/base-pipe.scss +3 -3
- package/filter-bar/pipes/pipe-date.scss +1 -0
- package/form-field/fieldset-tokens.scss +1 -1
- package/form-field/form-field-tokens.scss +1 -1
- package/form-field/form-field.d.ts +1 -1
- package/form-field/form-field.scss +8 -10
- package/form-field/password-toggle.d.ts +1 -1
- package/icon/icon.component.d.ts +2 -2
- package/inline-edit/index.d.ts +2 -0
- package/inline-edit/inline-edit-tokens.scss +8 -0
- package/inline-edit/inline-edit.d.ts +136 -0
- package/inline-edit/inline-edit.scss +208 -0
- package/inline-edit/module.d.ts +7 -0
- package/input/input-number.d.ts +1 -1
- package/input/input-password.d.ts +2 -2
- package/input/input.d.ts +2 -2
- package/link/link.component.d.ts +3 -3
- package/list/list-selection.component.d.ts +1 -1
- package/loader-overlay/loader-overlay.component.d.ts +1 -1
- package/markdown/_markdown-theme.scss +1 -1
- package/markdown/markdown-tokens.scss +1 -0
- package/markdown/markdown.scss +8 -0
- package/modal/modal.component.d.ts +1 -1
- package/navbar/navbar-item.component.d.ts +3 -2
- package/navbar/navbar.component.d.ts +4 -4
- package/navbar/vertical-navbar.component.d.ts +2 -2
- package/navbar-ic/_navbar-ic-theme.scss +81 -0
- package/navbar-ic/index.d.ts +1 -0
- package/navbar-ic/navbar-ic-divider.scss +7 -0
- package/navbar-ic/navbar-ic-header.d.ts +18 -0
- package/navbar-ic/navbar-ic-header.scss +53 -0
- package/navbar-ic/navbar-ic-item.d.ts +125 -0
- package/navbar-ic/navbar-ic-item.scss +96 -0
- package/navbar-ic/navbar-ic-tokens.scss +22 -0
- package/navbar-ic/navbar-ic.animation.d.ts +2 -0
- package/navbar-ic/navbar-ic.d.ts +105 -0
- package/navbar-ic/navbar-ic.module.d.ts +14 -0
- package/navbar-ic/navbar-ic.scss +32 -0
- package/navbar-ic/public-api.d.ts +4 -0
- package/notification-center/_notification-center-theme.scss +27 -0
- package/notification-center/index.d.ts +1 -0
- package/notification-center/notification-center-animations.d.ts +5 -0
- package/notification-center/notification-center.d.ts +153 -0
- package/notification-center/notification-center.module.d.ts +7 -0
- package/notification-center/notification-center.scss +126 -0
- package/notification-center/notification-center.service.d.ts +72 -0
- package/notification-center/notification-item.d.ts +27 -0
- package/notification-center/notification-item.scss +157 -0
- package/notification-center/public-api.d.ts +4 -0
- package/overflow-items/overflow-items.d.ts +23 -9
- package/package.json +52 -10
- package/popover/_popover-theme.scss +6 -2
- package/popover/popover-tokens.scss +2 -0
- package/popover/popover.component.d.ts +8 -1
- package/popover/popover.scss +15 -7
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/prebuilt-themes/theme.css +1 -1
- package/schematics/ng-add/index.js +6 -6
- package/search-expandable/index.d.ts +1 -0
- package/search-expandable/public-api.d.ts +2 -0
- package/search-expandable/search-expandable.d.ts +70 -0
- package/search-expandable/search-expandable.module.d.ts +7 -0
- package/search-expandable/search-expandable.scss +21 -0
- package/select/select.component.d.ts +38 -3
- package/split-button/_split-button-theme.scss +59 -0
- package/split-button/index.d.ts +1 -0
- package/split-button/public-api.d.ts +2 -0
- package/split-button/split-button.d.ts +31 -0
- package/split-button/split-button.module.d.ts +7 -0
- package/split-button/split-button.scss +83 -0
- package/splitter/splitter.component.d.ts +5 -5
- package/tabs/paginated-tab-header.d.ts +1 -1
- package/tabs/tab-header.component.d.ts +2 -2
- package/tabs/tab-label-wrapper.directive.d.ts +2 -2
- package/tabs/tab-nav-bar.d.ts +3 -3
- package/tags/_tag-theme.scss +31 -16
- package/tags/tag-input.d.ts +2 -0
- package/tags/tag-list.component.d.ts +141 -45
- package/tags/tag-list.scss +16 -0
- package/tags/tag-tokens.scss +17 -1
- package/tags/tag.component.d.ts +151 -22
- package/tags/tag.module.d.ts +1 -1
- package/tags/tag.scss +27 -0
- package/textarea/textarea-tokens.scss +1 -1
- package/textarea/textarea.component.d.ts +2 -2
- package/time-range/constants.d.ts +8 -0
- package/time-range/index.d.ts +7 -0
- package/time-range/module.d.ts +10 -0
- package/time-range/time-range-editor.d.ts +67 -0
- package/time-range/time-range-title-as-form-field.d.ts +40 -0
- package/time-range/time-range-title.d.ts +18 -0
- package/time-range/time-range.d.ts +75 -0
- package/time-range/time-range.scss +66 -0
- package/time-range/time-range.service.d.ts +29 -0
- package/time-range/types.d.ts +43 -0
- package/timepicker/timepicker.directive.d.ts +2 -2
- package/toast/toast.component.d.ts +6 -4
- package/toast/toast.component.scss +11 -1
- package/toast/toast.service.d.ts +1 -0
- package/toast/toast.type.d.ts +1 -0
- package/tooltip/_tooltip-theme.scss +9 -2
- package/tooltip/tooltip-tokens.scss +2 -0
- package/tree/toggle.d.ts +1 -1
- package/tree/tree-base.d.ts +2 -2
- package/tree/tree-option.component.d.ts +1 -1
- package/tree/tree-selection.component.d.ts +1 -1
- package/tree-select/tree-select.component.d.ts +44 -3
|
@@ -1,21 +1,26 @@
|
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { SelectionModel } from '@angular/cdk/collections';
|
|
3
|
-
import {
|
|
3
|
+
import { CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
4
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
4
5
|
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
5
6
|
import { FocusKeyManager } from '@koobiq/cdk/a11y';
|
|
6
|
-
import { CanUpdateErrorState, ErrorStateMatcher } from '@koobiq/components/core';
|
|
7
|
+
import { CanUpdateErrorState, ErrorStateMatcher, KbqOrientation } from '@koobiq/components/core';
|
|
7
8
|
import { KbqCleaner, KbqFormFieldControl } from '@koobiq/components/form-field';
|
|
8
9
|
import { Observable, Subject } from 'rxjs';
|
|
9
10
|
import { KbqTagTextControl } from './tag-text-control';
|
|
10
|
-
import { KbqTag, KbqTagEvent, KbqTagSelectionChange } from './tag.component';
|
|
11
|
+
import { KbqTag, KbqTagEditChange, KbqTagEvent, KbqTagSelectionChange } from './tag.component';
|
|
11
12
|
import * as i0 from "@angular/core";
|
|
13
|
+
import * as i1 from "@angular/cdk/drag-drop";
|
|
12
14
|
/** Change event object that is emitted when the tag list value has changed. */
|
|
13
15
|
export declare class KbqTagListChange {
|
|
14
16
|
source: KbqTagList;
|
|
15
17
|
value: any;
|
|
16
18
|
constructor(source: KbqTagList, value: any);
|
|
17
19
|
}
|
|
18
|
-
export
|
|
20
|
+
export type KbqTagListDroppedEvent = Pick<CdkDragDrop<unknown>, 'event' | 'previousIndex' | 'currentIndex'> & {
|
|
21
|
+
tag: KbqTag;
|
|
22
|
+
};
|
|
23
|
+
export declare class KbqTagList implements KbqFormFieldControl<any>, ControlValueAccessor, AfterContentInit, DoCheck, OnDestroy, CanUpdateErrorState, AfterViewInit {
|
|
19
24
|
protected elementRef: ElementRef<HTMLElement>;
|
|
20
25
|
private changeDetectorRef;
|
|
21
26
|
defaultErrorStateMatcher: ErrorStateMatcher;
|
|
@@ -23,6 +28,14 @@ export declare class KbqTagList implements KbqFormFieldControl<any>, ControlValu
|
|
|
23
28
|
parentForm: NgForm;
|
|
24
29
|
parentFormGroup: FormGroupDirective;
|
|
25
30
|
ngControl: NgControl;
|
|
31
|
+
private readonly dropList;
|
|
32
|
+
private readonly destroyRef;
|
|
33
|
+
private readonly focusMonitor;
|
|
34
|
+
/**
|
|
35
|
+
* Implemented as part of KbqFormFieldControl.
|
|
36
|
+
*
|
|
37
|
+
* @docs-private
|
|
38
|
+
*/
|
|
26
39
|
readonly controlType: string;
|
|
27
40
|
/**
|
|
28
41
|
* Emits whenever the component state changes and should cause the parent
|
|
@@ -38,25 +51,37 @@ export declare class KbqTagList implements KbqFormFieldControl<any>, ControlValu
|
|
|
38
51
|
get tagBlurChanges(): Observable<KbqTagEvent>;
|
|
39
52
|
/** Combined stream of all of the child tags' remove change events. */
|
|
40
53
|
get tagRemoveChanges(): Observable<KbqTagEvent>;
|
|
41
|
-
/**
|
|
54
|
+
/** Combined stream of all of the child tags' edit change events. */
|
|
55
|
+
get tagEditChanges(): Observable<KbqTagEditChange>;
|
|
56
|
+
/**
|
|
57
|
+
* The array of selected tags inside tag list.
|
|
58
|
+
*
|
|
59
|
+
* @docs-private
|
|
60
|
+
*/
|
|
42
61
|
get selected(): KbqTag[] | KbqTag;
|
|
62
|
+
/** @docs-private */
|
|
43
63
|
get canShowCleaner(): boolean;
|
|
44
|
-
/**
|
|
45
|
-
|
|
46
|
-
|
|
64
|
+
/**
|
|
65
|
+
* Whether the user should be allowed to select multiple tags.
|
|
66
|
+
*
|
|
67
|
+
* NOTE! Component does not support dynamic multiple attribute changes.
|
|
68
|
+
*/
|
|
69
|
+
multiple: boolean;
|
|
47
70
|
/**
|
|
48
71
|
* A function to compare the option values with the selected values. The first argument
|
|
49
72
|
* is a value from an option. The second is a value from the selection. A boolean
|
|
50
73
|
* should be returned.
|
|
74
|
+
*
|
|
75
|
+
* @deprecated Unused. Will be removed in next major release.
|
|
51
76
|
*/
|
|
52
|
-
|
|
53
|
-
set compareWith(fn: (o1: any, o2: any) => boolean);
|
|
77
|
+
compareWith: (o1: any, o2: any) => boolean;
|
|
54
78
|
/**
|
|
55
79
|
* Implemented as part of KbqFormFieldControl.
|
|
56
80
|
* @docs-private
|
|
57
81
|
*/
|
|
58
82
|
get value(): any;
|
|
59
83
|
set value(value: any);
|
|
84
|
+
private _value;
|
|
60
85
|
/**
|
|
61
86
|
* Implemented as part of KbqFormFieldControl.
|
|
62
87
|
* @docs-private
|
|
@@ -68,12 +93,14 @@ export declare class KbqTagList implements KbqFormFieldControl<any>, ControlValu
|
|
|
68
93
|
*/
|
|
69
94
|
get required(): boolean;
|
|
70
95
|
set required(value: boolean);
|
|
96
|
+
private _required;
|
|
71
97
|
/**
|
|
72
98
|
* Implemented as part of KbqFormFieldControl.
|
|
73
99
|
* @docs-private
|
|
74
100
|
*/
|
|
75
101
|
get placeholder(): string;
|
|
76
102
|
set placeholder(value: string);
|
|
103
|
+
private _placeholder;
|
|
77
104
|
/** Whether any tags or the kbqTagInput inside of this tag-list has focus. */
|
|
78
105
|
get focused(): boolean;
|
|
79
106
|
/**
|
|
@@ -92,12 +119,25 @@ export declare class KbqTagList implements KbqFormFieldControl<any>, ControlValu
|
|
|
92
119
|
*/
|
|
93
120
|
get disabled(): boolean;
|
|
94
121
|
set disabled(value: boolean);
|
|
122
|
+
private _disabled;
|
|
123
|
+
get draggable(): boolean;
|
|
124
|
+
set draggable(value: boolean);
|
|
125
|
+
private _draggable;
|
|
126
|
+
/**
|
|
127
|
+
* Emits when the user drops tag inside tag list container.
|
|
128
|
+
*/
|
|
129
|
+
readonly dropped: EventEmitter<KbqTagListDroppedEvent>;
|
|
95
130
|
/**
|
|
96
131
|
* Whether or not this tag list is selectable. When a tag list is not selectable,
|
|
97
132
|
* the selected states for all the tags inside the tag list are always ignored.
|
|
98
133
|
*/
|
|
99
|
-
|
|
100
|
-
|
|
134
|
+
selectable: boolean;
|
|
135
|
+
/** Whether the tags in the list are editable. */
|
|
136
|
+
editable: boolean;
|
|
137
|
+
/** Whether the tags in the list are removable. */
|
|
138
|
+
get removable(): boolean;
|
|
139
|
+
set removable(value: boolean);
|
|
140
|
+
private _removable;
|
|
101
141
|
get tabIndex(): number;
|
|
102
142
|
set tabIndex(value: number);
|
|
103
143
|
private _tabIndex;
|
|
@@ -107,34 +147,55 @@ export declare class KbqTagList implements KbqFormFieldControl<any>, ControlValu
|
|
|
107
147
|
* @docs-private
|
|
108
148
|
*/
|
|
109
149
|
readonly valueChange: EventEmitter<any>;
|
|
150
|
+
/** @docs-private */
|
|
110
151
|
uid: string;
|
|
111
152
|
/**
|
|
112
153
|
* User defined tab index.
|
|
113
154
|
* When it is not null, use user defined tab index. Otherwise use tabIndex
|
|
155
|
+
*
|
|
156
|
+
* @docs-private
|
|
114
157
|
*/
|
|
115
158
|
userTabIndex: number | null;
|
|
159
|
+
/** @docs-private */
|
|
116
160
|
keyManager: FocusKeyManager<KbqTag>;
|
|
161
|
+
/**
|
|
162
|
+
* @docs-private
|
|
163
|
+
*
|
|
164
|
+
* @deprecated Unused. Will be removed in next major release.
|
|
165
|
+
*/
|
|
117
166
|
selectionModel: SelectionModel<KbqTag>;
|
|
167
|
+
/**
|
|
168
|
+
* @docs-private
|
|
169
|
+
*
|
|
170
|
+
* @deprecated Unused. Will be removed in next major release.
|
|
171
|
+
*/
|
|
118
172
|
tagChanges: EventEmitter<any>;
|
|
119
173
|
/** An object used to control when error messages are shown. */
|
|
120
174
|
errorStateMatcher: ErrorStateMatcher;
|
|
121
|
-
/**
|
|
122
|
-
|
|
175
|
+
/**
|
|
176
|
+
* Orientation of the tag list.
|
|
177
|
+
*
|
|
178
|
+
* @deprecated Unused. Will be removed in next major release.
|
|
179
|
+
*/
|
|
180
|
+
orientation: KbqOrientation;
|
|
123
181
|
/** Event emitted when the selected tag list value has been changed by the user. */
|
|
124
182
|
readonly change: EventEmitter<KbqTagListChange>;
|
|
183
|
+
/** @docs-private */
|
|
125
184
|
cleaner: KbqCleaner;
|
|
126
|
-
/**
|
|
185
|
+
/**
|
|
186
|
+
* The tag components contained within this tag list.
|
|
187
|
+
*
|
|
188
|
+
* @docs-private
|
|
189
|
+
*/
|
|
127
190
|
tags: QueryList<KbqTag>;
|
|
128
|
-
/**
|
|
191
|
+
/**
|
|
192
|
+
* Whether the component is in an error state.
|
|
193
|
+
*
|
|
194
|
+
* @docs-private
|
|
195
|
+
*/
|
|
129
196
|
errorState: boolean;
|
|
130
|
-
private _value;
|
|
131
|
-
private _required;
|
|
132
|
-
private _placeholder;
|
|
133
|
-
private _disabled;
|
|
134
|
-
private _selectable;
|
|
135
197
|
/** The tag input to add more tags */
|
|
136
198
|
private tagInput;
|
|
137
|
-
private _multiple;
|
|
138
199
|
/**
|
|
139
200
|
* When a tag is destroyed, we store the index of the destroyed tag until the tags
|
|
140
201
|
* query list notifies about the update. This is necessary because we cannot determine an
|
|
@@ -149,23 +210,44 @@ export declare class KbqTagList implements KbqFormFieldControl<any>, ControlValu
|
|
|
149
210
|
private tagSelectionSubscription;
|
|
150
211
|
/** Subscription to remove changes in tags. */
|
|
151
212
|
private tagRemoveSubscription;
|
|
152
|
-
|
|
213
|
+
/** Subscription to edit changes in tags. */
|
|
214
|
+
private tagEditSubscription;
|
|
153
215
|
constructor(elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, defaultErrorStateMatcher: ErrorStateMatcher, dir: Directionality, parentForm: NgForm, parentFormGroup: FormGroupDirective, ngControl: NgControl);
|
|
154
|
-
ngOnInit(): void;
|
|
155
216
|
ngDoCheck(): void;
|
|
156
217
|
ngAfterContentInit(): void;
|
|
218
|
+
ngAfterViewInit(): void;
|
|
157
219
|
ngOnDestroy(): void;
|
|
220
|
+
/** @docs-private */
|
|
158
221
|
updateErrorState(): void;
|
|
222
|
+
/** @docs-private */
|
|
159
223
|
onTouched: () => void;
|
|
224
|
+
/** @docs-private */
|
|
160
225
|
onChange: (value: any) => void;
|
|
161
|
-
/**
|
|
226
|
+
/**
|
|
227
|
+
* Associates an HTML input element with this tag list.
|
|
228
|
+
*
|
|
229
|
+
* @docs-private
|
|
230
|
+
*/
|
|
162
231
|
registerInput(inputElement: KbqTagTextControl): void;
|
|
232
|
+
/**
|
|
233
|
+
* Implemented as part of ControlValueAccessor.
|
|
234
|
+
*/
|
|
163
235
|
writeValue(value: any): void;
|
|
236
|
+
/**
|
|
237
|
+
* Implemented as part of ControlValueAccessor.
|
|
238
|
+
*/
|
|
164
239
|
registerOnChange(fn: (value: any) => void): void;
|
|
240
|
+
/**
|
|
241
|
+
* Implemented as part of ControlValueAccessor.
|
|
242
|
+
*/
|
|
165
243
|
registerOnTouched(fn: () => void): void;
|
|
244
|
+
/**
|
|
245
|
+
* Implemented as part of ControlValueAccessor.
|
|
246
|
+
*/
|
|
166
247
|
setDisabledState(isDisabled: boolean): void;
|
|
167
248
|
/**
|
|
168
249
|
* Implemented as part of KbqFormFieldControl.
|
|
250
|
+
*
|
|
169
251
|
* @docs-private
|
|
170
252
|
*/
|
|
171
253
|
onContainerClick(event: MouseEvent): void;
|
|
@@ -178,23 +260,33 @@ export declare class KbqTagList implements KbqFormFieldControl<any>, ControlValu
|
|
|
178
260
|
focusInput(): void;
|
|
179
261
|
/**
|
|
180
262
|
* Pass events to the keyboard manager. Available here for tests.
|
|
263
|
+
*
|
|
264
|
+
* @docs-private
|
|
181
265
|
*/
|
|
182
266
|
keydown(event: KeyboardEvent): void;
|
|
183
|
-
|
|
267
|
+
/**
|
|
268
|
+
* @docs-private
|
|
269
|
+
*
|
|
270
|
+
* @deprecated Unused. Will be removed in next major release.
|
|
271
|
+
*/
|
|
272
|
+
setSelectionByValue(_value: any, _isUserInput?: boolean): void;
|
|
184
273
|
/** When blurred, mark the field as touched when focus moved outside the tag list. */
|
|
185
274
|
blur(): void;
|
|
186
275
|
/** Mark the field as touched */
|
|
187
276
|
markAsTouched(): void;
|
|
188
277
|
/**
|
|
189
278
|
* Check the tab index as you should not be allowed to focus an empty list.
|
|
279
|
+
*
|
|
280
|
+
* @docs-private
|
|
190
281
|
*/
|
|
191
282
|
protected updateTabIndex(): void;
|
|
192
283
|
/**
|
|
193
284
|
* If the amount of tags changed, we need to update the
|
|
194
285
|
* key manager state and focus the next closest tag.
|
|
286
|
+
*
|
|
287
|
+
* @docs-private
|
|
195
288
|
*/
|
|
196
289
|
protected updateFocusForDestroyedTags(): void;
|
|
197
|
-
private _compareWith;
|
|
198
290
|
/**
|
|
199
291
|
* Utility to ensure all indexes are valid.
|
|
200
292
|
*
|
|
@@ -203,24 +295,20 @@ export declare class KbqTagList implements KbqFormFieldControl<any>, ControlValu
|
|
|
203
295
|
*/
|
|
204
296
|
private isValidIndex;
|
|
205
297
|
private isInputEmpty;
|
|
298
|
+
private isTagElement;
|
|
299
|
+
private selectAll;
|
|
206
300
|
/**
|
|
207
|
-
*
|
|
208
|
-
*
|
|
209
|
-
|
|
210
|
-
private selectValue;
|
|
211
|
-
private initializeSelection;
|
|
212
|
-
/**
|
|
213
|
-
* Deselects every tag in the list.
|
|
214
|
-
* @param skip Tag that should not be deselected.
|
|
301
|
+
* Unselects all tags in the list.
|
|
302
|
+
*
|
|
303
|
+
* @docs-private
|
|
215
304
|
*/
|
|
216
|
-
|
|
305
|
+
unselectAll(): void;
|
|
217
306
|
/**
|
|
218
|
-
*
|
|
219
|
-
*
|
|
307
|
+
* Removes all selected tags from the list.
|
|
308
|
+
*
|
|
309
|
+
* @docs-private
|
|
220
310
|
*/
|
|
221
|
-
|
|
222
|
-
/** Emits change event to set the model value. */
|
|
223
|
-
private propagateChanges;
|
|
311
|
+
removeSelected(): void;
|
|
224
312
|
private propagateTagsChanges;
|
|
225
313
|
private resetTags;
|
|
226
314
|
private dropSubscriptions;
|
|
@@ -229,15 +317,23 @@ export declare class KbqTagList implements KbqFormFieldControl<any>, ControlValu
|
|
|
229
317
|
/** Listens to user-generated selection events on each tag. */
|
|
230
318
|
private listenToTagsFocus;
|
|
231
319
|
private listenToTagsRemoved;
|
|
320
|
+
private listenToTagsEdit;
|
|
232
321
|
/** Checks whether an event comes from inside a tag element. */
|
|
233
322
|
private originatesFromTag;
|
|
234
323
|
/** Checks whether any of the tags is focused. */
|
|
235
324
|
private hasFocusedTag;
|
|
236
|
-
|
|
237
|
-
private syncTagsDisabledState;
|
|
325
|
+
private syncTagsRemovableState;
|
|
238
326
|
/** Revalidate control. */
|
|
239
327
|
private revalidate;
|
|
240
|
-
private
|
|
328
|
+
private setupDropListInitialProperties;
|
|
329
|
+
private syncDropListDisabledState;
|
|
330
|
+
private setupFocusMonitor;
|
|
241
331
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTagList, [null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
|
|
242
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTagList, "kbq-tag-list", ["kbqTagList"], { "multiple": { "alias": "multiple"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; }, { "valueChange": "valueChange"; "change": "change"; }, ["cleaner", "tags"], ["*", "kbq-cleaner"], false,
|
|
332
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTagList, "kbq-tag-list", ["kbqTagList"], { "multiple": { "alias": "multiple"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "value": { "alias": "value"; "required": false; }; "required": { "alias": "required"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "draggable": { "alias": "draggable"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; }, { "dropped": "dropped"; "valueChange": "valueChange"; "change": "change"; }, ["cleaner", "tags"], ["*", "kbq-cleaner"], false, [{ directive: typeof i1.CdkDropList; inputs: {}; outputs: {}; }]>;
|
|
333
|
+
static ngAcceptInputType_multiple: unknown;
|
|
334
|
+
static ngAcceptInputType_disabled: unknown;
|
|
335
|
+
static ngAcceptInputType_draggable: unknown;
|
|
336
|
+
static ngAcceptInputType_selectable: unknown;
|
|
337
|
+
static ngAcceptInputType_editable: unknown;
|
|
338
|
+
static ngAcceptInputType_removable: unknown;
|
|
243
339
|
}
|
package/tags/tag-list.scss
CHANGED
|
@@ -3,12 +3,17 @@
|
|
|
3
3
|
.kbq-tag-list {
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: row;
|
|
6
|
+
min-height: var(--kbq-size-xxl);
|
|
6
7
|
|
|
7
8
|
box-sizing: border-box;
|
|
8
9
|
|
|
9
10
|
&:focus-visible {
|
|
10
11
|
outline: none;
|
|
11
12
|
}
|
|
13
|
+
|
|
14
|
+
&.cdk-drop-list-dragging .cdk-drag {
|
|
15
|
+
transition: transform 250ms cubic-bezier(0, 0, 0.2, 1);
|
|
16
|
+
}
|
|
12
17
|
}
|
|
13
18
|
|
|
14
19
|
.kbq-tag-input {
|
|
@@ -24,6 +29,11 @@
|
|
|
24
29
|
padding-bottom: var(--kbq-tag-size-padding-vertical);
|
|
25
30
|
padding-left: 4px;
|
|
26
31
|
padding-right: unset;
|
|
32
|
+
|
|
33
|
+
&.kbq-input {
|
|
34
|
+
padding: unset;
|
|
35
|
+
min-height: unset;
|
|
36
|
+
}
|
|
27
37
|
}
|
|
28
38
|
|
|
29
39
|
.kbq-tags-list__list-container {
|
|
@@ -67,3 +77,9 @@
|
|
|
67
77
|
);
|
|
68
78
|
}
|
|
69
79
|
}
|
|
80
|
+
|
|
81
|
+
// We should apply `cursor: grabbing` to the body, not to the dragged element itself.
|
|
82
|
+
// Reason: https://github.com/angular/components/blob/18.2.14/src/cdk/drag-drop/resets.scss#L14-L15
|
|
83
|
+
body:has(.kbq-tag-list.cdk-drop-list-dragging) {
|
|
84
|
+
cursor: grabbing;
|
|
85
|
+
}
|
package/tags/tag-tokens.scss
CHANGED
|
@@ -21,6 +21,10 @@
|
|
|
21
21
|
--kbq-tag-theme-fade-on-states-focus-icon: var(--kbq-icon-theme);
|
|
22
22
|
--kbq-tag-theme-fade-on-states-focus-close-button: var(--kbq-icon-theme);
|
|
23
23
|
--kbq-tag-theme-fade-on-states-focus-outline: var(--kbq-states-line-focus-theme);
|
|
24
|
+
--kbq-tag-theme-fade-on-states-selected-background: var(--kbq-background-theme);
|
|
25
|
+
--kbq-tag-theme-fade-on-states-selected-text: var(--kbq-foreground-white);
|
|
26
|
+
--kbq-tag-theme-fade-on-states-selected-icon: var(--kbq-icon-white);
|
|
27
|
+
--kbq-tag-theme-fade-on-states-selected-close-button: var(--kbq-icon-white);
|
|
24
28
|
--kbq-tag-theme-fade-on-states-disabled-background: var(--kbq-states-background-disabled);
|
|
25
29
|
--kbq-tag-theme-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
26
30
|
--kbq-tag-theme-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);
|
|
@@ -38,6 +42,10 @@
|
|
|
38
42
|
--kbq-tag-contrast-fade-on-states-focus-icon: var(--kbq-icon-contrast-fade);
|
|
39
43
|
--kbq-tag-contrast-fade-on-states-focus-close-button: var(--kbq-icon-contrast-fade);
|
|
40
44
|
--kbq-tag-contrast-fade-on-states-focus-outline: var(--kbq-states-line-focus-theme);
|
|
45
|
+
--kbq-tag-contrast-fade-on-states-selected-background: var(--kbq-background-theme);
|
|
46
|
+
--kbq-tag-contrast-fade-on-states-selected-text: var(--kbq-foreground-white);
|
|
47
|
+
--kbq-tag-contrast-fade-on-states-selected-icon: var(--kbq-icon-white);
|
|
48
|
+
--kbq-tag-contrast-fade-on-states-selected-close-button: var(--kbq-icon-white);
|
|
41
49
|
--kbq-tag-contrast-fade-on-states-disabled-background: var(--kbq-states-background-disabled);
|
|
42
50
|
--kbq-tag-contrast-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
43
51
|
--kbq-tag-contrast-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);
|
|
@@ -55,6 +63,10 @@
|
|
|
55
63
|
--kbq-tag-error-fade-on-states-focus-icon: var(--kbq-icon-error);
|
|
56
64
|
--kbq-tag-error-fade-on-states-focus-close-button: var(--kbq-icon-error);
|
|
57
65
|
--kbq-tag-error-fade-on-states-focus-outline: var(--kbq-states-line-focus-error);
|
|
66
|
+
--kbq-tag-error-fade-on-states-selected-background: var(--kbq-background-error);
|
|
67
|
+
--kbq-tag-error-fade-on-states-selected-text: var(--kbq-foreground-white);
|
|
68
|
+
--kbq-tag-error-fade-on-states-selected-icon: var(--kbq-icon-white);
|
|
69
|
+
--kbq-tag-error-fade-on-states-selected-close-button: var(--kbq-icon-white);
|
|
58
70
|
--kbq-tag-error-fade-on-states-disabled-background: var(--kbq-states-background-disabled);
|
|
59
71
|
--kbq-tag-error-fade-on-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
60
72
|
--kbq-tag-error-fade-on-states-disabled-icon: var(--kbq-states-icon-disabled);
|
|
@@ -71,7 +83,11 @@
|
|
|
71
83
|
--kbq-tag-warning-fade-states-focus-text: var(--kbq-foreground-warning);
|
|
72
84
|
--kbq-tag-warning-fade-states-focus-icon: var(--kbq-icon-warning);
|
|
73
85
|
--kbq-tag-warning-fade-states-focus-close-button: var(--kbq-icon-warning);
|
|
74
|
-
--kbq-tag-warning-fade-states-focus-outline: var(--kbq-
|
|
86
|
+
--kbq-tag-warning-fade-states-focus-outline: var(--kbq-line-warning);
|
|
87
|
+
--kbq-tag-warning-fade-states-selected-background: var(--kbq-background-warning);
|
|
88
|
+
--kbq-tag-warning-fade-states-selected-text: var(--kbq-foreground-white);
|
|
89
|
+
--kbq-tag-warning-fade-states-selected-icon: var(--kbq-icon-white);
|
|
90
|
+
--kbq-tag-warning-fade-states-selected-close-button: var(--kbq-icon-white);
|
|
75
91
|
--kbq-tag-warning-fade-states-disabled-background: var(--kbq-states-background-disabled);
|
|
76
92
|
--kbq-tag-warning-fade-states-disabled-text: var(--kbq-states-foreground-disabled);
|
|
77
93
|
--kbq-tag-warning-fade-states-disabled-icon: var(--kbq-states-icon-disabled);
|
package/tags/tag.component.d.ts
CHANGED
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
2
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
2
3
|
import { IFocusableOption } from '@koobiq/cdk/a11y';
|
|
3
4
|
import { KbqColorDirective, KbqTitleTextRef } from '@koobiq/components/core';
|
|
4
5
|
import { KbqIcon } from '@koobiq/components/icon';
|
|
5
6
|
import { Subject } from 'rxjs';
|
|
6
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
import * as i1 from "@koobiq/components/core";
|
|
9
|
+
import * as i2 from "@angular/cdk/drag-drop";
|
|
7
10
|
export interface KbqTagEvent {
|
|
8
11
|
tag: KbqTag;
|
|
9
12
|
}
|
|
13
|
+
/**
|
|
14
|
+
* Event object emitted by KbqTag when the tag is edited.
|
|
15
|
+
*/
|
|
16
|
+
export declare class KbqTagEditChange {
|
|
17
|
+
readonly tag: KbqTag;
|
|
18
|
+
readonly type: 'start' | 'submit' | 'cancel';
|
|
19
|
+
readonly reason: string;
|
|
20
|
+
constructor(tag: KbqTag, type: 'start' | 'submit' | 'cancel', reason: string);
|
|
21
|
+
}
|
|
10
22
|
/** Event object emitted by KbqTag when selected or deselected. */
|
|
11
23
|
export declare class KbqTagSelectionChange {
|
|
12
24
|
source: KbqTag;
|
|
@@ -14,6 +26,12 @@ export declare class KbqTagSelectionChange {
|
|
|
14
26
|
isUserInput: boolean;
|
|
15
27
|
constructor(source: KbqTag, selected: boolean, isUserInput?: boolean);
|
|
16
28
|
}
|
|
29
|
+
/** @docs-private */
|
|
30
|
+
export type KbqDragData = {
|
|
31
|
+
tag: KbqTag;
|
|
32
|
+
hasFocus: boolean;
|
|
33
|
+
focusOrigin: FocusOrigin;
|
|
34
|
+
};
|
|
17
35
|
/**
|
|
18
36
|
* Dummy directive to add CSS class to tag avatar.
|
|
19
37
|
* @docs-private
|
|
@@ -30,20 +48,73 @@ export declare class KbqTagTrailingIcon {
|
|
|
30
48
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTagTrailingIcon, never>;
|
|
31
49
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTagTrailingIcon, "kbq-tag-trailing-icon, [kbqTagTrailingIcon]", never, {}, {}, never, never, false, never>;
|
|
32
50
|
}
|
|
33
|
-
|
|
34
|
-
|
|
51
|
+
/**
|
|
52
|
+
* Directive to add submit behavior for the editable tag.
|
|
53
|
+
*/
|
|
54
|
+
export declare class KbqTagEditSubmit {
|
|
55
|
+
/** @docs-private */
|
|
56
|
+
protected readonly tag: KbqTag;
|
|
57
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTagEditSubmit, never>;
|
|
58
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTagEditSubmit, "[kbqTagEditSubmit]", ["kbqTagEditSubmit"], {}, {}, never, never, true, never>;
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Directive to add input behavior for the editable tag.
|
|
62
|
+
*/
|
|
63
|
+
export declare class KbqTagEditInput {
|
|
64
|
+
private readonly tag;
|
|
65
|
+
/** @docs-private */
|
|
66
|
+
protected handleKeydown(event: KeyboardEvent): void;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTagEditInput, never>;
|
|
68
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTagEditInput, "[kbqTagEditInput]", ["kbqTagEditInput"], {}, {}, never, never, true, [{ directive: typeof i1.KbqFieldSizingContent; inputs: {}; outputs: {}; }]>;
|
|
69
|
+
}
|
|
70
|
+
export declare class KbqTag extends KbqColorDirective implements IFocusableOption, OnDestroy, KbqTitleTextRef, AfterContentInit, AfterViewInit {
|
|
35
71
|
changeDetectorRef: ChangeDetectorRef;
|
|
36
|
-
private
|
|
37
|
-
|
|
72
|
+
private readonly focusMonitor;
|
|
73
|
+
private readonly tagList;
|
|
74
|
+
private readonly drag;
|
|
75
|
+
private readonly destroyRef;
|
|
76
|
+
/** @docs-private */
|
|
77
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
78
|
+
/**
|
|
79
|
+
* Emits when the tag is focused.
|
|
80
|
+
*
|
|
81
|
+
* @docs-private
|
|
82
|
+
*/
|
|
38
83
|
readonly onFocus: Subject<KbqTagEvent>;
|
|
39
|
-
/**
|
|
84
|
+
/**
|
|
85
|
+
* Emits when the tag is blurred.
|
|
86
|
+
*
|
|
87
|
+
* @docs-private
|
|
88
|
+
*/
|
|
40
89
|
readonly onBlur: Subject<KbqTagEvent>;
|
|
41
|
-
|
|
42
|
-
|
|
90
|
+
/** @docs-private */
|
|
91
|
+
readonly nativeElement: HTMLElement;
|
|
92
|
+
/**
|
|
93
|
+
* Whether the tag has focus.
|
|
94
|
+
*
|
|
95
|
+
* @docs-private
|
|
96
|
+
*/
|
|
43
97
|
hasFocus: boolean;
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
98
|
+
private focusOrigin;
|
|
99
|
+
/** Whether the tag is editable. */
|
|
100
|
+
get editable(): boolean;
|
|
101
|
+
set editable(value: boolean);
|
|
102
|
+
private _editable;
|
|
103
|
+
/** Whether the tag edits can't be submitted. */
|
|
104
|
+
preventEditSubmit: boolean;
|
|
105
|
+
private readonly editInputElementRef;
|
|
106
|
+
/**
|
|
107
|
+
* Emits event when the tag is edited.
|
|
108
|
+
*/
|
|
109
|
+
readonly editChange: EventEmitter<KbqTagEditChange>;
|
|
110
|
+
/**
|
|
111
|
+
* @docs-private
|
|
112
|
+
*/
|
|
113
|
+
protected readonly editing: import("@angular/core").WritableSignal<boolean>;
|
|
114
|
+
/**
|
|
115
|
+
* @docs-private
|
|
116
|
+
*/
|
|
117
|
+
readonly textElement: ElementRef<HTMLSpanElement>;
|
|
47
118
|
contentChildren: QueryList<KbqIcon>;
|
|
48
119
|
/** The tag avatar */
|
|
49
120
|
avatar: KbqTagAvatar;
|
|
@@ -75,7 +146,7 @@ export declare class KbqTag extends KbqColorDirective implements IFocusableOptio
|
|
|
75
146
|
set selectable(value: boolean);
|
|
76
147
|
private _selectable;
|
|
77
148
|
/**
|
|
78
|
-
* Determines whether
|
|
149
|
+
* Determines whether the tag is removable.
|
|
79
150
|
*/
|
|
80
151
|
get removable(): boolean;
|
|
81
152
|
set removable(value: boolean);
|
|
@@ -83,19 +154,45 @@ export declare class KbqTag extends KbqColorDirective implements IFocusableOptio
|
|
|
83
154
|
get tabindex(): any;
|
|
84
155
|
set tabindex(value: any);
|
|
85
156
|
private _tabindex;
|
|
86
|
-
|
|
87
|
-
|
|
157
|
+
/**
|
|
158
|
+
* Whether the tag is disabled.
|
|
159
|
+
*/
|
|
160
|
+
get disabled(): boolean;
|
|
161
|
+
set disabled(value: boolean);
|
|
88
162
|
private _disabled;
|
|
89
|
-
|
|
163
|
+
/**
|
|
164
|
+
* Whether the tag is draggable.
|
|
165
|
+
*
|
|
166
|
+
* @docs-private
|
|
167
|
+
*/
|
|
168
|
+
protected get draggable(): boolean;
|
|
169
|
+
constructor(changeDetectorRef: ChangeDetectorRef);
|
|
90
170
|
ngAfterContentInit(): void;
|
|
171
|
+
ngAfterViewInit(): void;
|
|
172
|
+
ngOnDestroy(): void;
|
|
173
|
+
/** @docs-private */
|
|
91
174
|
addClassModificatorForIcons(): void;
|
|
175
|
+
/** @docs-private */
|
|
92
176
|
addHostClassName(): void;
|
|
93
|
-
|
|
177
|
+
/**
|
|
178
|
+
* Selects the tag.
|
|
179
|
+
*/
|
|
94
180
|
select(): void;
|
|
181
|
+
/**
|
|
182
|
+
* Deselects the tag.
|
|
183
|
+
*/
|
|
95
184
|
deselect(): void;
|
|
185
|
+
/**
|
|
186
|
+
* Selects the tag and emits event with isUserInput flag.
|
|
187
|
+
*
|
|
188
|
+
* @docs-private
|
|
189
|
+
*/
|
|
96
190
|
selectViaInteraction(): void;
|
|
191
|
+
/**
|
|
192
|
+
* Toggles the current selected state of the tag.
|
|
193
|
+
*/
|
|
97
194
|
toggleSelected(isUserInput?: boolean): boolean;
|
|
98
|
-
/**
|
|
195
|
+
/** Focuses the tag. */
|
|
99
196
|
focus(): void;
|
|
100
197
|
/**
|
|
101
198
|
* Allows for programmatic removal of the tag. Called by the KbqTagList when the DELETE or
|
|
@@ -104,12 +201,39 @@ export declare class KbqTag extends KbqColorDirective implements IFocusableOptio
|
|
|
104
201
|
* Informs any listeners of the removal request. Does not remove the tag from the DOM.
|
|
105
202
|
*/
|
|
106
203
|
remove(): void;
|
|
107
|
-
|
|
204
|
+
/** @docs-private */
|
|
205
|
+
handleMousedown(event: MouseEvent): void;
|
|
206
|
+
/** @docs-private */
|
|
108
207
|
handleKeydown(event: KeyboardEvent): void;
|
|
208
|
+
/** @docs-private */
|
|
109
209
|
blur(): void;
|
|
110
|
-
private
|
|
210
|
+
/** @docs-private */
|
|
211
|
+
protected handleDblClick(event: MouseEvent): void;
|
|
212
|
+
private startEditing;
|
|
213
|
+
/** @docs-private */
|
|
214
|
+
cancelEditing(reason: string): void;
|
|
215
|
+
/** @docs-private */
|
|
216
|
+
submitEditing(reason: string): void;
|
|
217
|
+
/**
|
|
218
|
+
* Sets the selected state of the tag.
|
|
219
|
+
*
|
|
220
|
+
* @docs-private
|
|
221
|
+
*/
|
|
222
|
+
setSelectedState(selected: boolean, options?: Partial<{
|
|
223
|
+
isUserInput: boolean;
|
|
224
|
+
emitEvent: boolean;
|
|
225
|
+
}>): void;
|
|
226
|
+
private setupDragInitialProperties;
|
|
227
|
+
private syncDragDisabledState;
|
|
228
|
+
private setupFocusMonitor;
|
|
111
229
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTag, never>;
|
|
112
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTag, "kbq-tag, [kbq-tag], kbq-basic-tag, [kbq-basic-tag]", ["kbqTag"], { "selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "destroyed": "destroyed"; "removed": "removed"; }, ["avatar", "trailingIcon", "removeIcon", "contentChildren"], ["[kbq-icon]:not([kbqTagRemove])", "*", "[kbqTagRemove]"], false,
|
|
230
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTag, "kbq-tag, [kbq-tag], kbq-basic-tag, [kbq-basic-tag]", ["kbqTag"], { "editable": { "alias": "editable"; "required": false; }; "preventEditSubmit": { "alias": "preventEditSubmit"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "editChange": "editChange"; "selectionChange": "selectionChange"; "destroyed": "destroyed"; "removed": "removed"; }, ["editInputElementRef", "avatar", "trailingIcon", "removeIcon", "contentChildren"], ["[kbq-icon]:not([kbqTagRemove]):not([kbqTagEditSubmit])", "[kbqTagEditInput]", "*", "[kbqTagEditSubmit]", "[kbqTagRemove]"], false, [{ directive: typeof i1.KbqHovered; inputs: {}; outputs: {}; }, { directive: typeof i2.CdkDrag; inputs: {}; outputs: {}; }]>;
|
|
231
|
+
static ngAcceptInputType_editable: unknown;
|
|
232
|
+
static ngAcceptInputType_preventEditSubmit: unknown;
|
|
233
|
+
static ngAcceptInputType_selected: unknown;
|
|
234
|
+
static ngAcceptInputType_selectable: unknown;
|
|
235
|
+
static ngAcceptInputType_removable: unknown;
|
|
236
|
+
static ngAcceptInputType_disabled: unknown;
|
|
113
237
|
}
|
|
114
238
|
/**
|
|
115
239
|
*
|
|
@@ -125,8 +249,13 @@ export declare class KbqTag extends KbqColorDirective implements IFocusableOptio
|
|
|
125
249
|
export declare class KbqTagRemove {
|
|
126
250
|
protected parentTag: KbqTag;
|
|
127
251
|
constructor(parentTag: KbqTag);
|
|
128
|
-
|
|
129
|
-
|
|
252
|
+
/** @docs-private */
|
|
253
|
+
focus(event: FocusEvent): void;
|
|
254
|
+
/**
|
|
255
|
+
* Calls the parent tag's public `remove()` method if applicable.
|
|
256
|
+
*
|
|
257
|
+
* @docs-private
|
|
258
|
+
*/
|
|
130
259
|
handleClick(event: Event): void;
|
|
131
260
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTagRemove, never>;
|
|
132
261
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTagRemove, "[kbqTagRemove]", never, {}, {}, never, never, false, never>;
|