@koobiq/components 18.35.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.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/locales/en-US.d.ts +62 -0
- package/core/locales/es-LA.d.ts +62 -0
- package/core/locales/fa-IR.d.ts +62 -0
- package/core/locales/locale-service.d.ts +434 -0
- package/core/locales/pt-BR.d.ts +62 -0
- package/core/locales/ru-RU.d.ts +62 -0
- package/core/locales/tk-TM.d.ts +62 -0
- package/core/locales/types.d.ts +22 -0
- package/core/locales/zh-CN.d.ts +62 -0
- package/core/navbar/rectangle-item.d.ts +1 -1
- package/core/option/action.d.ts +1 -1
- package/core/option/option.d.ts +1 -1
- package/core/pop-up/constants.d.ts +2 -1
- package/core/pop-up/pop-up-trigger.d.ts +3 -3
- package/core/pop-up/pop-up.d.ts +2 -1
- 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 +1 -6
- package/divider/divider.scss +1 -0
- 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 +7 -7
- 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 +3 -3
- 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 +105 -1
- package/esm2022/core/locales/es-LA.mjs +105 -1
- package/esm2022/core/locales/fa-IR.mjs +75 -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 +105 -1
- package/esm2022/core/locales/ru-RU.mjs +119 -1
- package/esm2022/core/locales/tk-TM.mjs +105 -1
- package/esm2022/core/locales/types.mjs +1 -1
- package/esm2022/core/locales/zh-CN.mjs +63 -1
- package/esm2022/core/navbar/rectangle-item.mjs +7 -6
- 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 +4 -4
- package/esm2022/core/pop-up/constants.mjs +2 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +6 -6
- package/esm2022/core/pop-up/pop-up.mjs +4 -4
- 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 +2 -8
- 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 +6 -6
- 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 +3 -3
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +5 -5
- 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 +1 -1
- package/esm2022/file-upload/file-upload.module.mjs +4 -4
- package/esm2022/file-upload/multiple-file-upload.component.mjs +19 -8
- package/esm2022/file-upload/single-file-upload.component.mjs +13 -5
- package/esm2022/filter-bar/filter-bar-button.mjs +3 -3
- package/esm2022/filter-bar/filter-bar.mjs +3 -3
- 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 +4 -4
- 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 +12 -7
- 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/navbar-ic-header.mjs +7 -7
- package/esm2022/navbar-ic/navbar-ic-item.mjs +30 -38
- package/esm2022/navbar-ic/navbar-ic.mjs +18 -13
- package/esm2022/navbar-ic/navbar-ic.module.mjs +4 -4
- 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 +18 -13
- 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 +236 -194
- package/esm2022/tags/tag.component.mjs +209 -138
- package/esm2022/tags/tag.module.mjs +4 -4
- 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 +19 -19
- 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 +13 -13
- 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 +1032 -263
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +40 -40
- 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 +39 -25
- 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 +36 -18
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-filter-bar.mjs +96 -86
- 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 +53 -56
- package/fesm2022/koobiq-components-navbar-ic.mjs.map +1 -1
- 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 +30 -25
- 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 +461 -346
- 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 +22 -22
- 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 +1 -1
- package/file-upload/multiple-file-upload.component.d.ts +1 -0
- package/file-upload/single-file-upload.component.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 +1 -9
- 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-header.d.ts +1 -1
- package/navbar-ic/navbar-ic-item.d.ts +2 -2
- package/navbar-ic/navbar-ic.d.ts +4 -2
- 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 +46 -10
- package/popover/popover.component.d.ts +5 -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 +5 -5
- 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 +21 -15
- package/tags/tag-input.d.ts +2 -0
- package/tags/tag-list.component.d.ts +133 -45
- package/tags/tag-list.scss +11 -0
- package/tags/tag-tokens.scss +17 -1
- package/tags/tag.component.d.ts +79 -20
- package/tags/tag.scss +9 -0
- 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/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
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { CdkScrollable, Overlay, OverlayConfig, ScrollStrategy } from '@angular/cdk/overlay';
|
|
2
|
+
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, EventEmitter, InjectionToken, OnInit, TemplateRef, Type } from '@angular/core';
|
|
3
|
+
import { KbqButton } from '@koobiq/components/button';
|
|
4
|
+
import { DateAdapter, KbqPopUp, KbqPopUpTrigger, PopUpPlacements, PopUpSizes } from '@koobiq/components/core';
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
6
|
+
import { KbqNotificationCenterService } from './notification-center.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
/**default configuration of notification-center */
|
|
9
|
+
export declare const KBQ_NOTIFICATION_CENTER_DEFAULT_CONFIGURATION: {
|
|
10
|
+
notifications: string;
|
|
11
|
+
remove: string;
|
|
12
|
+
doNotDisturb: string;
|
|
13
|
+
showPopUpNotifications: string;
|
|
14
|
+
noNotifications: string;
|
|
15
|
+
failedToLoadNotifications: string;
|
|
16
|
+
repeat: string;
|
|
17
|
+
};
|
|
18
|
+
/** Injection Token for providing configuration of notification-center */
|
|
19
|
+
export declare const KBQ_NOTIFICATION_CENTER_CONFIGURATION: InjectionToken<unknown>;
|
|
20
|
+
/** @docs-private */
|
|
21
|
+
export declare const KBQ_NOTIFICATION_CENTER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
22
|
+
/** @docs-private */
|
|
23
|
+
export declare function kbqNotificationCenterScrollStrategyFactory(overlay: Overlay): () => ScrollStrategy;
|
|
24
|
+
/** @docs-private */
|
|
25
|
+
export declare const KBQ_NOTIFICATION_CENTER_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
26
|
+
provide: InjectionToken<() => ScrollStrategy>;
|
|
27
|
+
deps: (typeof Overlay)[];
|
|
28
|
+
useFactory: typeof kbqNotificationCenterScrollStrategyFactory;
|
|
29
|
+
};
|
|
30
|
+
/** @docs-private */
|
|
31
|
+
export declare class KbqNotificationCenterComponent extends KbqPopUp implements AfterViewInit {
|
|
32
|
+
/** @docs-private */
|
|
33
|
+
protected readonly changeDetectorRef: ChangeDetectorRef;
|
|
34
|
+
/** @docs-private */
|
|
35
|
+
protected readonly localeService: import("@koobiq/components/core").KbqLocaleService | null;
|
|
36
|
+
/** @docs-private */
|
|
37
|
+
protected readonly dateAdapter: DateAdapter<any>;
|
|
38
|
+
/** @docs-private */
|
|
39
|
+
protected readonly service: KbqNotificationCenterService;
|
|
40
|
+
private scrollContainer;
|
|
41
|
+
readonly externalConfiguration: unknown;
|
|
42
|
+
configuration: any;
|
|
43
|
+
/** @docs-private */
|
|
44
|
+
protected popoverMode: boolean;
|
|
45
|
+
/** @docs-private */
|
|
46
|
+
protected isTopOverflow: boolean;
|
|
47
|
+
/** @docs-private */
|
|
48
|
+
protected isBottomOverflow: boolean;
|
|
49
|
+
/** localized data
|
|
50
|
+
* @docs-private */
|
|
51
|
+
get localeData(): any;
|
|
52
|
+
/** @docs-private */
|
|
53
|
+
prefix: string;
|
|
54
|
+
/** @docs-private */
|
|
55
|
+
trigger: KbqNotificationCenterTrigger;
|
|
56
|
+
/** @docs-private */
|
|
57
|
+
isTrapFocus: boolean;
|
|
58
|
+
switcher: KbqButton;
|
|
59
|
+
get popoverHeight(): string;
|
|
60
|
+
set popoverHeight(value: string);
|
|
61
|
+
private _popoverHeight;
|
|
62
|
+
constructor();
|
|
63
|
+
ngAfterViewInit(): void;
|
|
64
|
+
/** @docs-private */
|
|
65
|
+
updateClassMap(placement: string, customClass: string, size: PopUpSizes): void;
|
|
66
|
+
/** @docs-private */
|
|
67
|
+
updateTrapFocus(isTrapFocus: boolean): void;
|
|
68
|
+
/** @docs-private */
|
|
69
|
+
escapeHandler(): void;
|
|
70
|
+
protected checkOverflow: () => void;
|
|
71
|
+
private updateLocaleParams;
|
|
72
|
+
private initDefaultParams;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqNotificationCenterComponent, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqNotificationCenterComponent, "kbq-notification-center", never, {}, {}, never, never, true, never>;
|
|
75
|
+
}
|
|
76
|
+
export declare class KbqNotificationCenterTrigger extends KbqPopUpTrigger<KbqNotificationCenterComponent> implements AfterContentInit, OnInit {
|
|
77
|
+
/** @docs-private */
|
|
78
|
+
protected scrollStrategy: () => ScrollStrategy;
|
|
79
|
+
/** @docs-private */
|
|
80
|
+
protected readonly service: KbqNotificationCenterService;
|
|
81
|
+
/** @docs-private */
|
|
82
|
+
arrow: boolean;
|
|
83
|
+
/** @docs-private */
|
|
84
|
+
customClass: string;
|
|
85
|
+
/** @docs-private */
|
|
86
|
+
private hasBackdrop;
|
|
87
|
+
/** @docs-private */
|
|
88
|
+
private size;
|
|
89
|
+
/** @docs-private */
|
|
90
|
+
content: string | TemplateRef<any>;
|
|
91
|
+
/** @docs-private */
|
|
92
|
+
header: string | TemplateRef<any>;
|
|
93
|
+
/** @docs-private */
|
|
94
|
+
footer: string | TemplateRef<any>;
|
|
95
|
+
/** @docs-private */
|
|
96
|
+
private closeOnScroll;
|
|
97
|
+
/** Number of unread notifications */
|
|
98
|
+
get unreadItemsCounter(): import("rxjs").Observable<string>;
|
|
99
|
+
/** Placement of popUp */
|
|
100
|
+
placement: PopUpPlacements;
|
|
101
|
+
/** Class that will be used in the background */
|
|
102
|
+
backdropClass: string;
|
|
103
|
+
/** Class that will be used in the panel */
|
|
104
|
+
panelClass: string;
|
|
105
|
+
/** Offset of popUp */
|
|
106
|
+
offset: number | null;
|
|
107
|
+
/** Use popover or not */
|
|
108
|
+
get popoverMode(): boolean;
|
|
109
|
+
set popoverMode(value: boolean);
|
|
110
|
+
private _popoverMode;
|
|
111
|
+
/** Set height of popover. Default is calc(100vh - 48px). 48px - height of navbar */
|
|
112
|
+
get popoverHeight(): string;
|
|
113
|
+
set popoverHeight(value: string);
|
|
114
|
+
private _popoverHeight;
|
|
115
|
+
/** Whether the trigger is disabled. */
|
|
116
|
+
get disabled(): boolean;
|
|
117
|
+
set disabled(value: boolean);
|
|
118
|
+
/** @docs-private */
|
|
119
|
+
get hasClickTrigger(): boolean;
|
|
120
|
+
/** Emits a change event whenever the placement state changes. */
|
|
121
|
+
readonly placementChange: EventEmitter<any>;
|
|
122
|
+
/** Emits a change event whenever the visible state changes. */
|
|
123
|
+
readonly visibleChange: EventEmitter<boolean>;
|
|
124
|
+
/** @docs-private */
|
|
125
|
+
trigger: string;
|
|
126
|
+
/** @docs-private */
|
|
127
|
+
protected originSelector: string;
|
|
128
|
+
/** @docs-private */
|
|
129
|
+
protected get overlayConfig(): OverlayConfig;
|
|
130
|
+
/** @docs-private */
|
|
131
|
+
protected preventClosingByInnerScrollSubscription: Subscription;
|
|
132
|
+
constructor();
|
|
133
|
+
ngOnInit(): void;
|
|
134
|
+
ngAfterContentInit(): void;
|
|
135
|
+
/** @docs-private */
|
|
136
|
+
updateData(): void;
|
|
137
|
+
/** Updates the current position.
|
|
138
|
+
*
|
|
139
|
+
* @docs-private */
|
|
140
|
+
updatePosition(reapplyPosition?: boolean): void;
|
|
141
|
+
/** @docs-private */
|
|
142
|
+
getOverlayHandleComponentType(): Type<KbqNotificationCenterComponent>;
|
|
143
|
+
/** @docs-private */
|
|
144
|
+
updateClassMap(newPlacement?: string): void;
|
|
145
|
+
/** @docs-private */
|
|
146
|
+
closingActions(): import("rxjs").Observable<void | CdkScrollable | MouseEvent>;
|
|
147
|
+
private hideIfNotInViewPort;
|
|
148
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqNotificationCenterTrigger, never>;
|
|
149
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqNotificationCenterTrigger, "[kbqNotificationCenterTrigger]", ["kbqNotificationCenterTrigger"], { "placement": { "alias": "kbqNotificationCenterPlacement"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "panelClass": { "alias": "kbqNotificationCenterPanelClass"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "popoverMode": { "alias": "popoverMode"; "required": false; }; "popoverHeight": { "alias": "popoverHeight"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "placementChange": "kbqPlacementChange"; "visibleChange": "kbqVisibleChange"; }, never, never, true, never>;
|
|
150
|
+
static ngAcceptInputType_offset: unknown;
|
|
151
|
+
static ngAcceptInputType_popoverMode: unknown;
|
|
152
|
+
static ngAcceptInputType_disabled: unknown;
|
|
153
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./notification-center";
|
|
3
|
+
export declare class KbqNotificationCenterModule {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqNotificationCenterModule, never>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqNotificationCenterModule, never, [typeof i1.KbqNotificationCenterComponent, typeof i1.KbqNotificationCenterTrigger], [typeof i1.KbqNotificationCenterComponent, typeof i1.KbqNotificationCenterTrigger]>;
|
|
6
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KbqNotificationCenterModule>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
@use './notification-center-theme' as *;
|
|
2
|
+
|
|
3
|
+
.kbq-notification-center {
|
|
4
|
+
position: relative;
|
|
5
|
+
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
|
|
9
|
+
width: 400px;
|
|
10
|
+
height: 100vh;
|
|
11
|
+
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
|
|
14
|
+
z-index: 1;
|
|
15
|
+
|
|
16
|
+
&:not(.kbq-notification-center_popover) {
|
|
17
|
+
border-right: 1px solid;
|
|
18
|
+
border-left: 1px solid;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&.kbq-notification-center_popover {
|
|
22
|
+
margin-top: var(--kbq-size-xxs);
|
|
23
|
+
margin-bottom: var(--kbq-size-xxs);
|
|
24
|
+
|
|
25
|
+
border-radius: var(--kbq-size-xs);
|
|
26
|
+
|
|
27
|
+
height: calc(100vh - 48px);
|
|
28
|
+
|
|
29
|
+
box-shadow: var(--kbq-shadow-popup);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.kbq-notification-center-header {
|
|
34
|
+
display: flex;
|
|
35
|
+
flex-direction: row;
|
|
36
|
+
|
|
37
|
+
justify-content: space-between;
|
|
38
|
+
|
|
39
|
+
padding: var(--kbq-size-xl) var(--kbq-size-xl) var(--kbq-size-xxs) var(--kbq-size-xxl);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.kbq-notification-center-title {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: row;
|
|
45
|
+
|
|
46
|
+
align-items: center;
|
|
47
|
+
|
|
48
|
+
gap: var(--kbq-size-xxs);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
.kbq-notification-center-toolbar {
|
|
52
|
+
display: flex;
|
|
53
|
+
flex-direction: row;
|
|
54
|
+
|
|
55
|
+
align-items: center;
|
|
56
|
+
|
|
57
|
+
& .kbq-divider.kbq-divider_vertical {
|
|
58
|
+
height: var(--kbq-size-m);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.kbq-notification-center-sub-header {
|
|
63
|
+
position: sticky;
|
|
64
|
+
top: 0;
|
|
65
|
+
z-index: 100;
|
|
66
|
+
|
|
67
|
+
display: flex;
|
|
68
|
+
flex-direction: row;
|
|
69
|
+
|
|
70
|
+
padding: var(--kbq-size-s) var(--kbq-size-xxl);
|
|
71
|
+
|
|
72
|
+
& .kbq-notification-center-sub-header__button {
|
|
73
|
+
position: absolute;
|
|
74
|
+
|
|
75
|
+
top: 0;
|
|
76
|
+
right: var(--kbq-size-xl);
|
|
77
|
+
|
|
78
|
+
display: none;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
&:hover .kbq-notification-center-sub-header__button {
|
|
82
|
+
display: flex;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:first-child.kbq-notification-center_top-overflow {
|
|
86
|
+
box-shadow: var(--kbq-shadow-overflow-normal-bottom);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.kbq-notification-center-container {
|
|
91
|
+
height: 100%;
|
|
92
|
+
|
|
93
|
+
border-radius: inherit;
|
|
94
|
+
|
|
95
|
+
padding-bottom: var(--kbq-size-m);
|
|
96
|
+
|
|
97
|
+
& .kbq-loader-overlay_parent {
|
|
98
|
+
border-radius: inherit;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&.kbq-notification-center_bottom-overflow {
|
|
102
|
+
box-shadow: var(--kbq-shadow-overflow-normal-bottom);
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.kbq-notification-center-empty-container,
|
|
107
|
+
.kbq-notification-center-error-container {
|
|
108
|
+
display: flex;
|
|
109
|
+
flex-direction: column;
|
|
110
|
+
|
|
111
|
+
align-items: center;
|
|
112
|
+
justify-content: center;
|
|
113
|
+
|
|
114
|
+
height: 100%;
|
|
115
|
+
|
|
116
|
+
& .kbq-icon {
|
|
117
|
+
margin-bottom: var(--kbq-size-xl);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
& .kbq-button {
|
|
121
|
+
margin-top: var(--kbq-size-s);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
@include kbq-notification-center-theme();
|
|
126
|
+
@include kbq-notification-center-typography();
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import { KbqToastData, KbqToastStyle } from '@koobiq/components/toast';
|
|
3
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export interface KbqNotificationItem extends Omit<KbqToastData, 'closeButton'> {
|
|
6
|
+
id?: string;
|
|
7
|
+
title?: string | TemplateRef<unknown>;
|
|
8
|
+
style?: string | KbqToastStyle;
|
|
9
|
+
icon?: boolean | TemplateRef<unknown>;
|
|
10
|
+
iconClass?: string;
|
|
11
|
+
caption?: string | TemplateRef<unknown>;
|
|
12
|
+
content?: string | TemplateRef<unknown>;
|
|
13
|
+
actions?: TemplateRef<unknown>;
|
|
14
|
+
date: string;
|
|
15
|
+
read?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const maxUnreadItemsLength = 99;
|
|
18
|
+
type KbqNotificationsGroup = {
|
|
19
|
+
title: string;
|
|
20
|
+
items: KbqNotificationItem[];
|
|
21
|
+
};
|
|
22
|
+
export declare class KbqNotificationCenterService {
|
|
23
|
+
/** @docs-private */
|
|
24
|
+
private readonly adapter;
|
|
25
|
+
/** @docs-private */
|
|
26
|
+
private readonly formatter;
|
|
27
|
+
/** @docs-private */
|
|
28
|
+
private readonly toastService;
|
|
29
|
+
/** @docs-private */
|
|
30
|
+
readonly silentMode: BehaviorSubject<boolean>;
|
|
31
|
+
/** @docs-private */
|
|
32
|
+
readonly loadingMode: BehaviorSubject<boolean>;
|
|
33
|
+
/** @docs-private */
|
|
34
|
+
readonly errorMode: BehaviorSubject<boolean>;
|
|
35
|
+
/** @docs-private */
|
|
36
|
+
readonly onRead: BehaviorSubject<KbqNotificationItem | null>;
|
|
37
|
+
/** Triggers an event when the user presses the reload button. */
|
|
38
|
+
readonly onReload: EventEmitter<void>;
|
|
39
|
+
private originalItems;
|
|
40
|
+
/** @docs-private */
|
|
41
|
+
readonly groupedItems: Observable<KbqNotificationsGroup[]>;
|
|
42
|
+
/** Emits an event whenever the changes. */
|
|
43
|
+
readonly changes: Observable<boolean | KbqNotificationItem | KbqNotificationItem[] | null>;
|
|
44
|
+
/** Notification items */
|
|
45
|
+
get items(): KbqNotificationItem[];
|
|
46
|
+
set items(values: KbqNotificationItem[]);
|
|
47
|
+
/** Number of unread notifications */
|
|
48
|
+
get unreadItemsCounter(): Observable<string>;
|
|
49
|
+
/** true if there are no notifications. */
|
|
50
|
+
get isEmpty(): boolean;
|
|
51
|
+
constructor();
|
|
52
|
+
/** Set silent mode */
|
|
53
|
+
setSilentMode(value: boolean): void;
|
|
54
|
+
/** Set loading mode */
|
|
55
|
+
setLoadingMode(value: boolean): void;
|
|
56
|
+
/** Set error mode */
|
|
57
|
+
setErrorMode(value: boolean): void;
|
|
58
|
+
/** Push new notification item in center */
|
|
59
|
+
push(item: KbqNotificationItem): void;
|
|
60
|
+
/** Remove notification item */
|
|
61
|
+
remove(removedItem: KbqNotificationItem): void;
|
|
62
|
+
/** Remove group of notification items */
|
|
63
|
+
removeGroup(group: KbqNotificationsGroup): void;
|
|
64
|
+
/** Remove all notification items */
|
|
65
|
+
removeAll(): void;
|
|
66
|
+
private makeGroup;
|
|
67
|
+
private setIds;
|
|
68
|
+
private setReadState;
|
|
69
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqNotificationCenterService, never>;
|
|
70
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KbqNotificationCenterService>;
|
|
71
|
+
}
|
|
72
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { KbqReadStateDirective, PopUpPlacements, ThemePalette } from '@koobiq/components/core';
|
|
2
|
+
import { KbqNotificationCenterComponent } from './notification-center';
|
|
3
|
+
import { KbqNotificationCenterService, KbqNotificationItem } from './notification-center.service';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
import * as i1 from "@koobiq/components/core";
|
|
6
|
+
/** @docs-private */
|
|
7
|
+
export declare class KbqNotificationItemComponent {
|
|
8
|
+
private readonly adapter;
|
|
9
|
+
protected readonly service: KbqNotificationCenterService;
|
|
10
|
+
protected readonly readStateDirective: KbqReadStateDirective;
|
|
11
|
+
protected readonly center: KbqNotificationCenterComponent;
|
|
12
|
+
protected popUpPlacements: typeof PopUpPlacements;
|
|
13
|
+
themePalette: typeof ThemePalette;
|
|
14
|
+
id: number;
|
|
15
|
+
time: string;
|
|
16
|
+
$implicit: any;
|
|
17
|
+
get style(): {
|
|
18
|
+
[x: string]: boolean;
|
|
19
|
+
};
|
|
20
|
+
get data(): KbqNotificationItem;
|
|
21
|
+
set data(value: KbqNotificationItem);
|
|
22
|
+
private _data;
|
|
23
|
+
constructor();
|
|
24
|
+
isTemplateRef(value: any): boolean;
|
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqNotificationItemComponent, never>;
|
|
26
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqNotificationItemComponent, "kbq-notification-item", never, { "data": { "alias": "data"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.KbqReadStateDirective; inputs: {}; outputs: {}; }]>;
|
|
27
|
+
}
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
@use '../core/styles/common/tokens' as *;
|
|
2
|
+
|
|
3
|
+
.kbq-notification-item {
|
|
4
|
+
display: flex;
|
|
5
|
+
box-sizing: border-box;
|
|
6
|
+
|
|
7
|
+
position: relative;
|
|
8
|
+
|
|
9
|
+
border-radius: var(--kbq-size-s);
|
|
10
|
+
|
|
11
|
+
height: auto;
|
|
12
|
+
|
|
13
|
+
margin-left: var(--kbq-size-m);
|
|
14
|
+
margin-right: var(--kbq-size-m);
|
|
15
|
+
|
|
16
|
+
&:hover {
|
|
17
|
+
& .kbq-notification-item-time {
|
|
18
|
+
visibility: hidden;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
& .kbq-notification-item__remove-button {
|
|
22
|
+
display: block;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.kbq-notification-item__icon-container {
|
|
28
|
+
flex-shrink: 0;
|
|
29
|
+
|
|
30
|
+
width: var(--kbq-size-l);
|
|
31
|
+
max-width: var(--kbq-size-l);
|
|
32
|
+
|
|
33
|
+
height: var(--kbq-size-l);
|
|
34
|
+
max-height: var(--kbq-size-l);
|
|
35
|
+
|
|
36
|
+
margin-right: var(--kbq-size-s);
|
|
37
|
+
padding-left: var(--kbq-size-m);
|
|
38
|
+
|
|
39
|
+
padding-top: 14px;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.kbq-notification-item__container {
|
|
43
|
+
display: flex;
|
|
44
|
+
flex-direction: column;
|
|
45
|
+
|
|
46
|
+
flex: 1;
|
|
47
|
+
|
|
48
|
+
padding-top: var(--kbq-size-m);
|
|
49
|
+
padding-right: var(--kbq-size-l);
|
|
50
|
+
padding-bottom: var(--kbq-size-m);
|
|
51
|
+
|
|
52
|
+
overflow: hidden;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.kbq-notification-item__title {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: row;
|
|
58
|
+
|
|
59
|
+
justify-content: space-between;
|
|
60
|
+
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
text-overflow: ellipsis;
|
|
63
|
+
|
|
64
|
+
& > p {
|
|
65
|
+
margin: 0;
|
|
66
|
+
overflow: hidden;
|
|
67
|
+
text-overflow: ellipsis;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&.kbq-notification-item__title_with-content {
|
|
71
|
+
margin-bottom: var(--kbq-size-xxs);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.kbq-notification-item-time {
|
|
76
|
+
display: flex;
|
|
77
|
+
flex-direction: row;
|
|
78
|
+
|
|
79
|
+
height: var(--kbq-size-xl);
|
|
80
|
+
|
|
81
|
+
align-items: center;
|
|
82
|
+
|
|
83
|
+
padding-left: 22px;
|
|
84
|
+
|
|
85
|
+
& .kbq-notification-item-time__value {
|
|
86
|
+
margin-right: var(--kbq-size-3xs);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
&.kbq-notification-item-time_read .kbq-notification-item-time__state {
|
|
90
|
+
display: none;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
.kbq-notification-item__text {
|
|
95
|
+
display: flex;
|
|
96
|
+
flex: 1;
|
|
97
|
+
align-items: center;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
.kbq-notification-item__content {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
|
|
104
|
+
white-space: pre-wrap;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.kbq-notification-item__actions {
|
|
108
|
+
display: flex;
|
|
109
|
+
|
|
110
|
+
padding-top: var(--kbq-size-s);
|
|
111
|
+
|
|
112
|
+
gap: var(--kbq-size-m);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.kbq-notification-item__remove-button {
|
|
116
|
+
position: absolute;
|
|
117
|
+
|
|
118
|
+
top: var(--kbq-size-xs);
|
|
119
|
+
right: var(--kbq-size-s);
|
|
120
|
+
|
|
121
|
+
display: none;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
@mixin _kbq-notification-item-theme() {
|
|
125
|
+
.kbq-notification-item {
|
|
126
|
+
background: var(--kbq-background-card);
|
|
127
|
+
|
|
128
|
+
.kbq-notification-item__title {
|
|
129
|
+
color: var(--kbq-foreground-contrast);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.kbq-notification-item__text {
|
|
133
|
+
color: var(--kbq-foreground-contrast-secondary);
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
& .kbq-notification-item-time.kbq-notification-item-time_read .kbq-notification-item-time__value {
|
|
137
|
+
color: var(--kbq-foreground-contrast-secondary);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
&:hover {
|
|
141
|
+
background: var(--kbq-states-background-transparent-hover);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
@mixin _kbq-notification-item-typography() {
|
|
147
|
+
.kbq-notification-item {
|
|
148
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-normal);
|
|
149
|
+
|
|
150
|
+
& .kbq-notification-item-time {
|
|
151
|
+
@include kbq-typography-level-to-styles-css-variables(typography, text-compact);
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
@include _kbq-notification-item-theme();
|
|
157
|
+
@include _kbq-notification-item-typography();
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { KbqOrientation } from '@koobiq/components/core';
|
|
1
2
|
import * as i0 from "@angular/core";
|
|
2
3
|
/**
|
|
3
4
|
* Manages the visibility of the element.
|
|
@@ -6,8 +7,11 @@ import * as i0 from "@angular/core";
|
|
|
6
7
|
*/
|
|
7
8
|
export declare class ElementVisibilityManager {
|
|
8
9
|
private readonly renderer;
|
|
9
|
-
private readonly elementRef;
|
|
10
10
|
private readonly hiddenState;
|
|
11
|
+
/**
|
|
12
|
+
* @docs-private
|
|
13
|
+
*/
|
|
14
|
+
readonly element: HTMLElement;
|
|
11
15
|
/**
|
|
12
16
|
* Whether the element is hidden.
|
|
13
17
|
*
|
|
@@ -65,10 +69,11 @@ export declare class KbqOverflowItem extends ElementVisibilityManager {
|
|
|
65
69
|
* Directive for managing the visibility of items that overflow the container.
|
|
66
70
|
*/
|
|
67
71
|
export declare class KbqOverflowItems {
|
|
68
|
-
private readonly
|
|
72
|
+
private readonly element;
|
|
69
73
|
private readonly resizeObserver;
|
|
70
74
|
private readonly renderer;
|
|
71
75
|
private readonly document;
|
|
76
|
+
private readonly window;
|
|
72
77
|
/**
|
|
73
78
|
* `KbqOverflowItem` directive references.
|
|
74
79
|
*/
|
|
@@ -80,6 +85,11 @@ export declare class KbqOverflowItems {
|
|
|
80
85
|
/**
|
|
81
86
|
* Whether the overflow order should be reversed.
|
|
82
87
|
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```
|
|
90
|
+
* [0, 1, hidden, hidden] ---> [hidden, hidden, 2, 3]
|
|
91
|
+
* ```
|
|
92
|
+
*
|
|
83
93
|
* @default false
|
|
84
94
|
*/
|
|
85
95
|
readonly reverseOverflowOrder: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
@@ -103,6 +113,13 @@ export declare class KbqOverflowItems {
|
|
|
103
113
|
* Set of hidden item IDs.
|
|
104
114
|
*/
|
|
105
115
|
readonly hiddenItemIDs: import("@angular/core").Signal<ReadonlySet<unknown>>;
|
|
116
|
+
/**
|
|
117
|
+
* Defines the orientation of the overflow items.
|
|
118
|
+
*
|
|
119
|
+
* @default 'horizontal'
|
|
120
|
+
*/
|
|
121
|
+
readonly orientation: import("@angular/core").InputSignal<KbqOrientation>;
|
|
122
|
+
private readonly orientationConfig;
|
|
106
123
|
constructor();
|
|
107
124
|
private setupObservers;
|
|
108
125
|
/**
|
|
@@ -110,10 +127,6 @@ export declare class KbqOverflowItems {
|
|
|
110
127
|
* If an item does not have an `order` defined, its index is used as a fallback.
|
|
111
128
|
*/
|
|
112
129
|
private sortItemsByOrder;
|
|
113
|
-
/**
|
|
114
|
-
* Excludes items that have the `alwaysVisible` attribute.
|
|
115
|
-
*/
|
|
116
|
-
private excludeAlwaysVisibleItems;
|
|
117
130
|
/**
|
|
118
131
|
* Manages the visibility of items based on the available space in the container and returns the hidden items.
|
|
119
132
|
* Direction of hiding is determined by the `reverseOverflowOrder` attribute.
|
|
@@ -123,10 +136,11 @@ export declare class KbqOverflowItems {
|
|
|
123
136
|
* This method sets the necessary styles for the directive.
|
|
124
137
|
*/
|
|
125
138
|
private setStyles;
|
|
139
|
+
private hasOverflown;
|
|
126
140
|
/**
|
|
127
|
-
*
|
|
141
|
+
* @TODO Should be removed when `Array.prototype.findLast` is supported.
|
|
128
142
|
*/
|
|
129
|
-
private
|
|
143
|
+
private findLast;
|
|
130
144
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOverflowItems, never>;
|
|
131
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqOverflowItems, "[kbqOverflowItems]", ["kbqOverflowItems"], { "reverseOverflowOrder": { "alias": "reverseOverflowOrder"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; "additionalResizeObserverTargets": { "alias": "additionalResizeObserverTargets"; "required": false; "isSignal": true; }; }, { "changes": "changes"; }, ["items", "result"], never, true, never>;
|
|
145
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqOverflowItems, "[kbqOverflowItems]", ["kbqOverflowItems"], { "reverseOverflowOrder": { "alias": "reverseOverflowOrder"; "required": false; "isSignal": true; }; "debounceTime": { "alias": "debounceTime"; "required": false; "isSignal": true; }; "additionalResizeObserverTargets": { "alias": "additionalResizeObserverTargets"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, { "changes": "changes"; }, ["items", "result"], never, true, never>;
|
|
132
146
|
}
|