@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
package/tags/tag.module.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ import * as i3 from "./tag-input";
|
|
|
5
5
|
import * as i4 from "@angular/cdk/platform";
|
|
6
6
|
export declare class KbqTagsModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTagsModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTagsModule, [typeof i1.KbqTagList, typeof i2.KbqTag, typeof i3.KbqTagInput, typeof i2.KbqTagTrailingIcon, typeof i2.KbqTagAvatar, typeof i2.KbqTagRemove], [typeof i4.PlatformModule], [typeof i1.KbqTagList, typeof i2.KbqTag, typeof i3.KbqTagInput, typeof i2.KbqTagTrailingIcon, typeof i2.KbqTagAvatar, typeof i2.KbqTagRemove]>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTagsModule, [typeof i1.KbqTagList, typeof i2.KbqTag, typeof i3.KbqTagInput, typeof i2.KbqTagTrailingIcon, typeof i2.KbqTagAvatar, typeof i2.KbqTagRemove], [typeof i4.PlatformModule, typeof i2.KbqTagEditSubmit, typeof i2.KbqTagEditInput], [typeof i1.KbqTagList, typeof i2.KbqTag, typeof i3.KbqTagInput, typeof i2.KbqTagTrailingIcon, typeof i2.KbqTagAvatar, typeof i2.KbqTagRemove, typeof i2.KbqTagEditSubmit, typeof i2.KbqTagEditInput]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqTagsModule>;
|
|
10
10
|
}
|
package/tags/tag.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@use '../core/styles/common/tokens' as *;
|
|
2
2
|
@use '../core/styles/common/vendor-prefixes';
|
|
3
|
+
@use '../core/styles/common/input';
|
|
3
4
|
|
|
4
5
|
.kbq-tag {
|
|
5
6
|
@include vendor-prefixes.user-select(none);
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
display: inline-block;
|
|
10
11
|
|
|
11
12
|
max-width: 100%;
|
|
13
|
+
height: var(--kbq-size-xxl);
|
|
12
14
|
|
|
13
15
|
padding: var(--kbq-tag-size-padding-vertical) var(--kbq-tag-size-padding-horizontal);
|
|
14
16
|
|
|
@@ -49,6 +51,31 @@
|
|
|
49
51
|
& .kbq-icon_left {
|
|
50
52
|
margin-left: var(--kbq-tag-size-icon-margin-left);
|
|
51
53
|
}
|
|
54
|
+
|
|
55
|
+
.kbq-tag-edit-input {
|
|
56
|
+
@include input.kbq-reset-input();
|
|
57
|
+
|
|
58
|
+
min-width: var(--kbq-size-xs);
|
|
59
|
+
max-width: 100%;
|
|
60
|
+
|
|
61
|
+
&.kbq-input {
|
|
62
|
+
min-height: unset !important;
|
|
63
|
+
border-radius: unset !important;
|
|
64
|
+
padding: unset !important;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.kbq-tag-edit-submit {
|
|
69
|
+
margin-right: var(--kbq-size-3xs);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&.cdk-drag-placeholder {
|
|
73
|
+
opacity: var(--kbq-opacity-disabled);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&.cdk-drag-animating {
|
|
77
|
+
transition: transform 300ms cubic-bezier(0, 0, 0.2, 1);
|
|
78
|
+
}
|
|
52
79
|
}
|
|
53
80
|
|
|
54
81
|
.kbq-tag__wrapper {
|
|
@@ -8,7 +8,7 @@ export declare const KBQ_TEXTAREA_VALUE_ACCESSOR: InjectionToken<{
|
|
|
8
8
|
value: any;
|
|
9
9
|
}>;
|
|
10
10
|
export declare class KbqTextarea implements KbqFormFieldControl<any>, OnInit, OnChanges, OnDestroy, DoCheck, CanUpdateErrorState {
|
|
11
|
-
protected elementRef: ElementRef
|
|
11
|
+
protected elementRef: ElementRef<HTMLTextAreaElement>;
|
|
12
12
|
ngControl: NgControl;
|
|
13
13
|
parentForm: NgForm;
|
|
14
14
|
parentFormGroup: FormGroupDirective;
|
|
@@ -88,7 +88,7 @@ export declare class KbqTextarea implements KbqFormFieldControl<any>, OnInit, On
|
|
|
88
88
|
private lineHeight;
|
|
89
89
|
private minHeight;
|
|
90
90
|
private rowsCount;
|
|
91
|
-
constructor(elementRef: ElementRef
|
|
91
|
+
constructor(elementRef: ElementRef<HTMLTextAreaElement>, ngControl: NgControl, parentForm: NgForm, parentFormGroup: FormGroupDirective, defaultErrorStateMatcher: ErrorStateMatcher, inputValueAccessor: any, parent: any, ngZone: NgZone);
|
|
92
92
|
ngOnInit(): void;
|
|
93
93
|
ngOnChanges(): void;
|
|
94
94
|
ngOnDestroy(): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ValidatorFn } from '@angular/forms';
|
|
3
|
+
import { KbqTimeRangeService } from './time-range.service';
|
|
4
|
+
import { KbqTimeRangeType } from './types';
|
|
5
|
+
/** Preset of selectable time ranges, provided by DI. */
|
|
6
|
+
export declare const KBQ_DEFAULT_TIME_RANGE_TYPES: InjectionToken<KbqTimeRangeType[]>;
|
|
7
|
+
export declare function createMissingDateImplError(componentName: string, provider: string): Error;
|
|
8
|
+
export declare const rangeValidator: <T>(timeRangeService: KbqTimeRangeService<T>) => ValidatorFn;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./time-range";
|
|
3
|
+
import * as i2 from "./time-range-title";
|
|
4
|
+
import * as i3 from "./time-range-editor";
|
|
5
|
+
import * as i4 from "./time-range-title-as-form-field";
|
|
6
|
+
export declare class KbqTimeRangeModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimeRangeModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTimeRangeModule, never, [typeof i1.KbqTimeRange, typeof i2.KbqTimeRangeTitle, typeof i3.KbqTimeRangeEditor, typeof i4.KbqTimeRangeTitlePlaceholder, typeof i4.KbqTimeRangeTitleAsControl], [typeof i1.KbqTimeRange, typeof i2.KbqTimeRangeTitle, typeof i3.KbqTimeRangeEditor, typeof i4.KbqTimeRangeTitlePlaceholder, typeof i4.KbqTimeRangeTitleAsControl]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KbqTimeRangeModule>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AbstractControl, ControlValueAccessor, FormControl, FormGroup, FormGroupDirective, NgForm, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
+
import { ErrorStateMatcher, KbqTimeRangeLocaleConfig } from '@koobiq/components/core';
|
|
4
|
+
import { KbqTimepicker, TimeFormats } from '@koobiq/components/timepicker';
|
|
5
|
+
import { KbqRangeValue, KbqTimeRangeRange, KbqTimeRangeType } from './types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
interface FormValue<T> {
|
|
8
|
+
type: FormControl<KbqTimeRangeType>;
|
|
9
|
+
fromTime: FormControl<T>;
|
|
10
|
+
fromDate: FormControl<T>;
|
|
11
|
+
toTime: FormControl<T>;
|
|
12
|
+
toDate: FormControl<T>;
|
|
13
|
+
}
|
|
14
|
+
declare class RangeErrorStateMatcher implements ErrorStateMatcher {
|
|
15
|
+
isErrorState(control: AbstractControl | null, form: FormGroupDirective | NgForm | null): boolean;
|
|
16
|
+
}
|
|
17
|
+
/** @docs-private */
|
|
18
|
+
export declare class KbqTimeRangeEditor<T> implements ControlValueAccessor, Validator, OnInit {
|
|
19
|
+
private readonly timeRangeService;
|
|
20
|
+
/** The maximum selectable date. */
|
|
21
|
+
readonly maxDate: import("@angular/core").InputSignal<T | null>;
|
|
22
|
+
/** The minimum selectable date. */
|
|
23
|
+
readonly minDate: import("@angular/core").InputSignal<T | null>;
|
|
24
|
+
/** Preset of selectable ranges */
|
|
25
|
+
readonly availableTimeRangeTypes: import("@angular/core").InputSignal<KbqTimeRangeType[]>;
|
|
26
|
+
/** Provided value of selected range */
|
|
27
|
+
readonly rangeValue: import("@angular/core").InputSignal<Required<KbqRangeValue<T>>>;
|
|
28
|
+
readonly showRangeAsDefault: import("@angular/core").InputSignal<boolean>;
|
|
29
|
+
readonly localeConfiguration: import("@angular/core").InputSignal<KbqTimeRangeLocaleConfig>;
|
|
30
|
+
/** @docs-private */
|
|
31
|
+
protected readonly isRangeVisible: import("@angular/core").Signal<boolean>;
|
|
32
|
+
/** @docs-private */
|
|
33
|
+
protected readonly timeRangeTypesWithoutRange: import("@angular/core").Signal<{
|
|
34
|
+
type: "lastMinute" | "last5Minutes" | "last15Minutes" | "last30Minutes" | "lastHour" | "last24Hours" | "last3Days" | "last7Days" | "last14Days" | "last30Days" | "last3Months" | "last12Months" | "allTime" | "currentQuarter" | "currentYear";
|
|
35
|
+
translationType: import("./types").KbqTimeRangeTranslationType;
|
|
36
|
+
formattedValue: string;
|
|
37
|
+
}[]>;
|
|
38
|
+
/** @docs-private */
|
|
39
|
+
protected readonly timepickerList: import("@angular/core").Signal<readonly KbqTimepicker<T>[]>;
|
|
40
|
+
/** @docs-private */
|
|
41
|
+
protected readonly form: FormGroup<FormValue<T>>;
|
|
42
|
+
/** @docs-private */
|
|
43
|
+
protected readonly timepickerFormat = TimeFormats.HHmmss;
|
|
44
|
+
/** @docs-private */
|
|
45
|
+
protected readonly rangeStateMatcher: RangeErrorStateMatcher;
|
|
46
|
+
private lastValidationErrorOnEmit;
|
|
47
|
+
constructor();
|
|
48
|
+
ngOnInit(): void;
|
|
49
|
+
/** @docs-private */
|
|
50
|
+
validate(): ValidationErrors | null;
|
|
51
|
+
/** Implemented as part of ControlValueAccessor */
|
|
52
|
+
writeValue(value: KbqTimeRangeRange | undefined): void;
|
|
53
|
+
/** @docs-private */
|
|
54
|
+
onChange: (_value: KbqTimeRangeRange) => void;
|
|
55
|
+
/** @docs-private */
|
|
56
|
+
onTouch: () => void;
|
|
57
|
+
/** Implemented as part of ControlValueAccessor */
|
|
58
|
+
registerOnChange(fn: (value: KbqTimeRangeRange) => void): void;
|
|
59
|
+
/** Implemented as part of ControlValueAccessor */
|
|
60
|
+
registerOnTouched(fn: () => void): void;
|
|
61
|
+
private mapTimeRange;
|
|
62
|
+
private getFormattedOption;
|
|
63
|
+
private concatControlValidationErrors;
|
|
64
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimeRangeEditor<any>, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTimeRangeEditor<any>, "kbq-time-range-editor", never, { "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "availableTimeRangeTypes": { "alias": "availableTimeRangeTypes"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "showRangeAsDefault": { "alias": "showRangeAsDefault"; "required": true; "isSignal": true; }; "localeConfiguration": { "alias": "localeConfiguration"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
66
|
+
}
|
|
67
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { NgControl } from '@angular/forms';
|
|
2
|
+
import { KbqFormFieldControl } from '@koobiq/components/form-field';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/** Directive for easy using styles of time-range placeholder publicly. */
|
|
6
|
+
export declare class KbqTimeRangeTitlePlaceholder {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimeRangeTitlePlaceholder, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTimeRangeTitlePlaceholder, "[kbqTimeRangeTitlePlaceholder]", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
/** Component simulates `KbqFormFieldControl` allowing to provide custom content inside `KbqFormField` */
|
|
11
|
+
export declare class KbqTimeRangeTitleAsControl implements KbqFormFieldControl<any> {
|
|
12
|
+
private timeRange;
|
|
13
|
+
controlType: string;
|
|
14
|
+
/** @docs-private */
|
|
15
|
+
stateChanges: Observable<void>;
|
|
16
|
+
/** @docs-private */
|
|
17
|
+
ngControl: NgControl | null;
|
|
18
|
+
/** @docs-private */
|
|
19
|
+
value: any;
|
|
20
|
+
/** @docs-private */
|
|
21
|
+
id: string;
|
|
22
|
+
/** @docs-private */
|
|
23
|
+
placeholder: string;
|
|
24
|
+
/** @docs-private */
|
|
25
|
+
focused: boolean;
|
|
26
|
+
/** @docs-private */
|
|
27
|
+
empty: boolean;
|
|
28
|
+
/** @docs-private */
|
|
29
|
+
required: boolean;
|
|
30
|
+
/** @docs-private */
|
|
31
|
+
disabled: boolean;
|
|
32
|
+
/** @docs-private */
|
|
33
|
+
errorState: boolean;
|
|
34
|
+
/** @docs-private */
|
|
35
|
+
onContainerClick(_event: MouseEvent): void;
|
|
36
|
+
/** @docs-private */
|
|
37
|
+
focus(_options?: FocusOptions): void;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimeRangeTitleAsControl, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTimeRangeTitleAsControl, "kbq-time-range-title-as-control", never, {}, {}, never, ["*"], true, never>;
|
|
40
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Injector, TemplateRef } from '@angular/core';
|
|
2
|
+
import { KbqTimeRangeLocaleConfig } from '@koobiq/components/core';
|
|
3
|
+
import { KbqTimeRangeCustomizableTitleContext, KbqTimeRangeRange, KbqTimeRangeTitleContext } from './types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
/** @docs-private */
|
|
6
|
+
export declare class KbqTimeRangeTitle {
|
|
7
|
+
private readonly timeRangeService;
|
|
8
|
+
private readonly popover;
|
|
9
|
+
protected readonly injector: Injector;
|
|
10
|
+
readonly timeRange: import("@angular/core").InputSignal<KbqTimeRangeRange | null>;
|
|
11
|
+
readonly localeConfiguration: import("@angular/core").InputSignal<KbqTimeRangeLocaleConfig>;
|
|
12
|
+
readonly titleTemplate: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
13
|
+
protected readonly context: import("@angular/core").Signal<KbqTimeRangeTitleContext | undefined>;
|
|
14
|
+
protected readonly titleContext: import("@angular/core").Signal<KbqTimeRangeCustomizableTitleContext | undefined>;
|
|
15
|
+
protected readonly formattedDate: import("@angular/core").Signal<string>;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimeRangeTitle, never>;
|
|
17
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTimeRangeTitle, "kbq-time-range-title", never, { "timeRange": { "alias": "timeRange"; "required": true; "isSignal": true; }; "localeConfiguration": { "alias": "localeConfiguration"; "required": true; "isSignal": true; }; "titleTemplate": { "alias": "titleTemplate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
18
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { InjectionToken, OnInit, Provider, TemplateRef, WritableSignal } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
3
|
+
import { KbqTimeRangeLocaleConfig, PopUpPlacements, PopUpSizes } from '@koobiq/components/core';
|
|
4
|
+
import { KbqPopoverTrigger } from '@koobiq/components/popover';
|
|
5
|
+
import { KbqRangeValue, KbqTimeRangeCustomizableTitleContext, KbqTimeRangeRange, KbqTimeRangeType } from './types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
/** Localization configuration provider. */
|
|
8
|
+
export declare const KBQ_TIME_RANGE_LOCALE_CONFIGURATION: InjectionToken<KbqTimeRangeLocaleConfig>;
|
|
9
|
+
/** Utility provider for `KBQ_TIME_RANGE_LOCALE_CONFIGURATION`. */
|
|
10
|
+
export declare const kbqTimeRangeLocaleConfigurationProvider: (configuration: KbqTimeRangeLocaleConfig) => Provider;
|
|
11
|
+
export declare class KbqTimeRange<T> implements ControlValueAccessor, OnInit {
|
|
12
|
+
private readonly timeRangeService;
|
|
13
|
+
private readonly localeService;
|
|
14
|
+
readonly ngControl: NgControl | null;
|
|
15
|
+
/** The minimum selectable date. */
|
|
16
|
+
readonly minDate: import("@angular/core").InputSignal<T | undefined>;
|
|
17
|
+
/** The maximum selectable date. */
|
|
18
|
+
readonly maxDate: import("@angular/core").InputSignal<T | undefined>;
|
|
19
|
+
/** provided value of selected range */
|
|
20
|
+
readonly defaultRangeValue: import("@angular/core").InputSignal<KbqRangeValue<T> | undefined>;
|
|
21
|
+
/** Preset of selectable ranges */
|
|
22
|
+
readonly availableTimeRangeTypes: import("@angular/core").InputSignal<KbqTimeRangeType[]>;
|
|
23
|
+
/** Customizable trigger output */
|
|
24
|
+
readonly titleTemplate: import("@angular/core").InputSignal<TemplateRef<KbqTimeRangeCustomizableTitleContext> | undefined>;
|
|
25
|
+
/** Whether to show popover with arrow */
|
|
26
|
+
readonly arrow: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
27
|
+
/**
|
|
28
|
+
* Whether to show range in popover if not provided
|
|
29
|
+
* @see availableTimeRangeTypes
|
|
30
|
+
*/
|
|
31
|
+
readonly showRangeAsDefault: import("@angular/core").InputSignal<boolean>;
|
|
32
|
+
/** Whether component should fallback to default value if null provided */
|
|
33
|
+
readonly nonNullable: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
|
|
34
|
+
/** Emit value update if provided value via formControl wasn't valid */
|
|
35
|
+
readonly valueCorrected: import("@angular/core").OutputEmitterRef<KbqTimeRangeRange>;
|
|
36
|
+
/**
|
|
37
|
+
* Used to calculate time range.
|
|
38
|
+
* @docs-private */
|
|
39
|
+
protected readonly normalizedDefaultRangeValue: import("@angular/core").Signal<{
|
|
40
|
+
fromTime: T;
|
|
41
|
+
fromDate: T;
|
|
42
|
+
toTime: T;
|
|
43
|
+
toDate: T;
|
|
44
|
+
}>;
|
|
45
|
+
/** @docs-private */
|
|
46
|
+
protected readonly titleValue: WritableSignal<KbqTimeRangeRange | null>;
|
|
47
|
+
/** @docs-private */
|
|
48
|
+
protected readonly rangeEditorControl: FormControl<KbqTimeRangeRange>;
|
|
49
|
+
/** @docs-private */
|
|
50
|
+
protected readonly popoverSize = PopUpSizes.Medium;
|
|
51
|
+
/** @docs-private */
|
|
52
|
+
protected readonly popupPlacement = PopUpPlacements.BottomLeft;
|
|
53
|
+
/** @docs-private */
|
|
54
|
+
protected readonly localeConfiguration: WritableSignal<KbqTimeRangeLocaleConfig>;
|
|
55
|
+
constructor();
|
|
56
|
+
ngOnInit(): void;
|
|
57
|
+
/** Implemented as part of ControlValueAccessor */
|
|
58
|
+
writeValue(value: KbqTimeRangeRange | null): void;
|
|
59
|
+
/** @docs-private */
|
|
60
|
+
onApply(popover: KbqPopoverTrigger): void;
|
|
61
|
+
/** @docs-private */
|
|
62
|
+
onCancel(popover: KbqPopoverTrigger): void;
|
|
63
|
+
onVisibleChange(isVisible: boolean): void;
|
|
64
|
+
/** @docs-private */
|
|
65
|
+
onChange: (_value: KbqTimeRangeRange) => void;
|
|
66
|
+
/** @docs-private */
|
|
67
|
+
onTouch: () => void;
|
|
68
|
+
/** Implemented as part of ControlValueAccessor */
|
|
69
|
+
registerOnChange(fn: (_value: KbqTimeRangeRange) => void): void;
|
|
70
|
+
/** Implemented as part of ControlValueAccessor */
|
|
71
|
+
registerOnTouched(fn: () => void): void;
|
|
72
|
+
private handleAvailableTypesChange;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimeRange<any>, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTimeRange<any>, "kbq-time-range", never, { "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "defaultRangeValue": { "alias": "defaultRangeValue"; "required": false; "isSignal": true; }; "availableTimeRangeTypes": { "alias": "availableTimeRangeTypes"; "required": false; "isSignal": true; }; "titleTemplate": { "alias": "titleTemplate"; "required": false; "isSignal": true; }; "arrow": { "alias": "arrow"; "required": false; "isSignal": true; }; "showRangeAsDefault": { "alias": "showRangeAsDefault"; "required": false; "isSignal": true; }; "nonNullable": { "alias": "nonNullable"; "required": false; "isSignal": true; }; }, { "valueCorrected": "valueCorrected"; }, never, never, true, never>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
.kbq-time-range {
|
|
2
|
+
.kbq-time-range__trigger {
|
|
3
|
+
display: block;
|
|
4
|
+
}
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.kbq-time-range__popover {
|
|
8
|
+
.kbq-time-range__buttons {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex-direction: row;
|
|
11
|
+
gap: var(--kbq-size-l);
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.kbq-time-range__editor {
|
|
16
|
+
display: block;
|
|
17
|
+
|
|
18
|
+
.kbq-time-range-editor__container {
|
|
19
|
+
width: 100%;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.kbq-time-range-editor__predefined {
|
|
23
|
+
column-count: 2;
|
|
24
|
+
|
|
25
|
+
.kbq-time-range-editor__predefined-option {
|
|
26
|
+
display: block;
|
|
27
|
+
margin-bottom: var(--kbq-size-s);
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
.kbq-time-range-editor__range {
|
|
32
|
+
display: flex;
|
|
33
|
+
flex-direction: column;
|
|
34
|
+
gap: var(--kbq-size-s);
|
|
35
|
+
|
|
36
|
+
.kbq-time-range-editor__predefined {
|
|
37
|
+
column-count: 2;
|
|
38
|
+
|
|
39
|
+
.kbq-time-range-editor__predefined-option {
|
|
40
|
+
display: block;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.kbq-time-range-editor__date-time {
|
|
45
|
+
display: flex;
|
|
46
|
+
flex-direction: row;
|
|
47
|
+
justify-content: space-between;
|
|
48
|
+
gap: var(--kbq-size-s);
|
|
49
|
+
|
|
50
|
+
.kbq-time-range-editor__date-time-prefix {
|
|
51
|
+
align-self: center;
|
|
52
|
+
width: 57px;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
.kbq-time-range-title-as-form-field {
|
|
59
|
+
white-space: nowrap;
|
|
60
|
+
text-overflow: ellipsis;
|
|
61
|
+
min-height: calc(var(--kbq-form-field-size-height) - 2 * var(--kbq-size-border-width));
|
|
62
|
+
|
|
63
|
+
.kbq-time-range-title__placeholder {
|
|
64
|
+
color: var(--kbq-foreground-contrast-tertiary);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { DateAdapter, DateFormatter } from '@koobiq/components/core';
|
|
2
|
+
import { KbqRange, KbqRangeValue, KbqTimeRangeRange, KbqTimeRangeTranslateTypeMap, KbqTimeRangeTranslationType, KbqTimeRangeType, KbqTimeRangeUnits } from './types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class KbqTimeRangeService<T> {
|
|
5
|
+
readonly dateAdapter: DateAdapter<T>;
|
|
6
|
+
readonly dateFormatter: DateFormatter<T>;
|
|
7
|
+
protected defaultTimeRangeTypes: KbqTimeRangeType[];
|
|
8
|
+
readonly providedDefaultTimeRangeTypes: KbqTimeRangeType[];
|
|
9
|
+
static readonly DEFAULT_RANGE_TYPE: KbqTimeRangeType;
|
|
10
|
+
static readonly timeRangeMap: Record<KbqTimeRangeType, KbqTimeRangeUnits>;
|
|
11
|
+
static readonly timeRangeTranslationMap: KbqTimeRangeTranslateTypeMap;
|
|
12
|
+
constructor();
|
|
13
|
+
static range: (dateTimeISOString: string) => KbqRange;
|
|
14
|
+
getTimeRangeTypeUnits(type: KbqTimeRangeType): KbqTimeRangeUnits;
|
|
15
|
+
getTimeRangeUnitByType(type: KbqTimeRangeType): KbqTimeRangeTranslationType;
|
|
16
|
+
getDefaultRangeValue(): Required<KbqRangeValue<T>>;
|
|
17
|
+
getTimeRangeDefaultValue(rangeValue: KbqRangeValue<T>, availableTimeRangeTypes?: KbqTimeRangeType[]): KbqTimeRangeRange;
|
|
18
|
+
calculateTimeRange(type: KbqTimeRangeType | undefined, rangeValue?: KbqRangeValue<T>): KbqRange;
|
|
19
|
+
combineDateAndTime(date: T, time: T): T;
|
|
20
|
+
lastSecondsRange: (seconds: number) => KbqRange;
|
|
21
|
+
lastMinutesRange: (minutes: number) => KbqRange;
|
|
22
|
+
lastHoursRange: (hours: number) => KbqRange;
|
|
23
|
+
lastDaysRange: (days: number) => KbqRange;
|
|
24
|
+
lastMonthsRange: (months: number) => KbqRange;
|
|
25
|
+
checkAndCorrectTimeRangeValue(value: KbqTimeRangeRange | null | undefined, availableTimeRangeTypes: KbqTimeRangeType[], rangeValue: KbqRangeValue<T>): KbqTimeRangeRange;
|
|
26
|
+
omitMilliseconds(date: T): T;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTimeRangeService<any>, never>;
|
|
28
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<KbqTimeRangeService<any>>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { KbqPopoverTrigger } from '@koobiq/components/popover';
|
|
2
|
+
import { DurationUnit } from '@koobiq/date-adapter';
|
|
3
|
+
export interface KbqRangeValue<T> {
|
|
4
|
+
fromTime?: T;
|
|
5
|
+
fromDate?: T;
|
|
6
|
+
toTime?: T;
|
|
7
|
+
toDate?: T;
|
|
8
|
+
}
|
|
9
|
+
export type KbqRange = {
|
|
10
|
+
startDateTime?: string;
|
|
11
|
+
endDateTime?: string;
|
|
12
|
+
};
|
|
13
|
+
export type KbqTimeRangeRange = KbqRange & KbqTimeRangeTypeContext;
|
|
14
|
+
export type KbqTimeRangeTypeContext = {
|
|
15
|
+
type: KbqTimeRangeType;
|
|
16
|
+
};
|
|
17
|
+
/**
|
|
18
|
+
* Default accepted “time‑range” identifiers.
|
|
19
|
+
*/
|
|
20
|
+
export type KbqTimeRangeType = 'lastMinute' | 'last5Minutes' | 'last15Minutes' | 'last30Minutes' | 'lastHour' | 'last24Hours' | 'last3Days' | 'last7Days' | 'last14Days' | 'last30Days' | 'last3Months' | 'last12Months' | 'allTime' | 'currentQuarter' | 'currentYear' | 'range';
|
|
21
|
+
export type KbqTimeRangeTranslationType = Extract<DurationUnit, 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'months'> | 'other';
|
|
22
|
+
export interface KbqTimeRangeUnits {
|
|
23
|
+
seconds?: number;
|
|
24
|
+
minutes?: number;
|
|
25
|
+
hours?: number;
|
|
26
|
+
days?: number;
|
|
27
|
+
weeks?: number;
|
|
28
|
+
months?: number;
|
|
29
|
+
}
|
|
30
|
+
export type KbqTimeRangeTitleContext = KbqTimeRangeRange & KbqTimeRangeUnits;
|
|
31
|
+
export type KbqTimeRangeCustomizableTitleContext = Partial<KbqTimeRangeTitleContext> & {
|
|
32
|
+
$implicit: Partial<KbqTimeRangeTitleContext> & {
|
|
33
|
+
formattedDate: string;
|
|
34
|
+
popover: KbqPopoverTrigger;
|
|
35
|
+
};
|
|
36
|
+
} & {
|
|
37
|
+
formattedDate: string;
|
|
38
|
+
popover: KbqPopoverTrigger;
|
|
39
|
+
};
|
|
40
|
+
export type KbqTimeRangeTranslateTypeMap = Record<KbqTimeRangeType, KbqTimeRangeTranslationType>;
|
|
41
|
+
export type KbqTimeRangeOptionContext = KbqTimeRangeTypeContext & KbqTimeRangeUnits & {
|
|
42
|
+
translationType: KbqTimeRangeTranslationType;
|
|
43
|
+
};
|
|
@@ -20,7 +20,7 @@ export declare class KbqTimepicker<D> implements KbqFormFieldControl<D>, Control
|
|
|
20
20
|
* @docs-private
|
|
21
21
|
*/
|
|
22
22
|
readonly stateChanges: Subject<void>;
|
|
23
|
-
|
|
23
|
+
errorState: boolean;
|
|
24
24
|
/**
|
|
25
25
|
* Implemented as part of KbqFormFieldControl.
|
|
26
26
|
* @docs-private
|
|
@@ -90,7 +90,7 @@ export declare class KbqTimepicker<D> implements KbqFormFieldControl<D>, Control
|
|
|
90
90
|
private onChange;
|
|
91
91
|
private onTouched;
|
|
92
92
|
private localeSubscription;
|
|
93
|
-
constructor(elementRef: ElementRef
|
|
93
|
+
constructor(elementRef: ElementRef<HTMLInputElement>, renderer: Renderer2, dateAdapter: DateAdapter<any>, localeService?: KbqLocaleService | undefined);
|
|
94
94
|
ngOnDestroy(): void;
|
|
95
95
|
getSize(): number;
|
|
96
96
|
focus(): void;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { AnimationEvent } from '@angular/animations';
|
|
2
2
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
3
3
|
import { ElementRef, OnDestroy } from '@angular/core';
|
|
4
|
-
import { ThemePalette } from '@koobiq/components/core';
|
|
4
|
+
import { KbqReadStateDirective, ThemePalette } from '@koobiq/components/core';
|
|
5
5
|
import { BehaviorSubject } from 'rxjs';
|
|
6
6
|
import { KbqToastService } from './toast.service';
|
|
7
7
|
import { KbqToastData } from './toast.type';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
|
+
import * as i1 from "@koobiq/components/core";
|
|
9
10
|
export declare class KbqToastCloseButton {
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqToastCloseButton, never>;
|
|
11
12
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqToastCloseButton, "[kbq-toast-close-button]", never, {}, {}, never, never, true, never>;
|
|
@@ -13,8 +14,9 @@ export declare class KbqToastCloseButton {
|
|
|
13
14
|
export declare class KbqToastComponent implements OnDestroy {
|
|
14
15
|
readonly data: KbqToastData;
|
|
15
16
|
readonly service: KbqToastService;
|
|
16
|
-
elementRef: ElementRef
|
|
17
|
+
elementRef: ElementRef<HTMLElement>;
|
|
17
18
|
private focusMonitor;
|
|
19
|
+
protected readonly readStateDirective: KbqReadStateDirective;
|
|
18
20
|
themePalette: typeof ThemePalette;
|
|
19
21
|
animationState: string;
|
|
20
22
|
readonly hovered: BehaviorSubject<boolean>;
|
|
@@ -27,7 +29,7 @@ export declare class KbqToastComponent implements OnDestroy {
|
|
|
27
29
|
[x: string]: boolean;
|
|
28
30
|
};
|
|
29
31
|
get isFocusedOrHovered(): boolean;
|
|
30
|
-
constructor(data: KbqToastData, service: KbqToastService, elementRef: ElementRef
|
|
32
|
+
constructor(data: KbqToastData, service: KbqToastService, elementRef: ElementRef<HTMLElement>, focusMonitor: FocusMonitor);
|
|
31
33
|
ngOnDestroy(): void;
|
|
32
34
|
close(): void;
|
|
33
35
|
isTemplateRef(value: any): boolean;
|
|
@@ -35,5 +37,5 @@ export declare class KbqToastComponent implements OnDestroy {
|
|
|
35
37
|
private runFocusMonitor;
|
|
36
38
|
private stopFocusMonitor;
|
|
37
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqToastComponent, never>;
|
|
38
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqToastComponent, "kbq-toast", never, {}, {}, never, never, true,
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqToastComponent, "kbq-toast", never, {}, {}, never, never, true, [{ directive: typeof i1.KbqReadStateDirective; inputs: {}; outputs: {}; }]>;
|
|
39
41
|
}
|
|
@@ -55,6 +55,10 @@
|
|
|
55
55
|
overflow: hidden;
|
|
56
56
|
text-overflow: ellipsis;
|
|
57
57
|
}
|
|
58
|
+
|
|
59
|
+
&.kbq-toast__title_only-text {
|
|
60
|
+
white-space: pre-wrap;
|
|
61
|
+
}
|
|
58
62
|
}
|
|
59
63
|
|
|
60
64
|
.kbq-toast__title_with-content {
|
|
@@ -65,13 +69,19 @@
|
|
|
65
69
|
display: flex;
|
|
66
70
|
flex: 1;
|
|
67
71
|
align-items: center;
|
|
72
|
+
|
|
73
|
+
&.kbq-toast__text_only-text {
|
|
74
|
+
white-space: pre-wrap;
|
|
75
|
+
}
|
|
68
76
|
}
|
|
69
77
|
|
|
70
78
|
.kbq-toast__content {
|
|
71
79
|
display: flex;
|
|
72
80
|
flex-direction: column;
|
|
73
81
|
|
|
74
|
-
|
|
82
|
+
&.kbq-toast__content_only-text {
|
|
83
|
+
white-space: pre-wrap;
|
|
84
|
+
}
|
|
75
85
|
}
|
|
76
86
|
|
|
77
87
|
.kbq-toast__actions {
|
package/toast/toast.service.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ export declare class KbqToastService<T extends KbqToastComponent = KbqToastCompo
|
|
|
15
15
|
private toastConfig;
|
|
16
16
|
get toasts(): ComponentRef<T>[];
|
|
17
17
|
get templates(): EmbeddedViewRef<T>[];
|
|
18
|
+
readonly read: BehaviorSubject<KbqToastData | null>;
|
|
18
19
|
readonly hovered: BehaviorSubject<boolean>;
|
|
19
20
|
readonly focused: BehaviorSubject<boolean>;
|
|
20
21
|
readonly animation: BehaviorSubject<AnimationEvent | null>;
|
package/toast/toast.type.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
@use '../core/styles/common/tokens' as *;
|
|
2
2
|
|
|
3
3
|
@mixin kbq-tooltip-color($style-name) {
|
|
4
|
-
box-shadow: var(--kbq-tooltip-#{$style-name}-shadow);
|
|
5
|
-
|
|
6
4
|
& .kbq-tooltip__inner {
|
|
7
5
|
color: var(--kbq-tooltip-#{$style-name}-text);
|
|
8
6
|
|
|
@@ -11,11 +9,20 @@
|
|
|
11
9
|
|
|
12
10
|
& .kbq-tooltip__arrow {
|
|
13
11
|
background-color: var(--kbq-tooltip-#{$style-name}-background);
|
|
12
|
+
box-shadow: var(--kbq-tooltip-borderless-shadow);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
&.kbq-tooltip_arrowless {
|
|
14
16
|
box-shadow: var(--kbq-tooltip-#{$style-name}-shadow);
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
|
|
18
20
|
@mixin kbq-tooltip-theme() {
|
|
21
|
+
.kbq-tooltip,
|
|
22
|
+
.kbq-tooltip__arrow {
|
|
23
|
+
box-shadow: var(--kbq-tooltip-borderless-shadow);
|
|
24
|
+
}
|
|
25
|
+
|
|
19
26
|
.kbq-tooltip.kbq-theme {
|
|
20
27
|
@include kbq-tooltip-color(theme-fade-off);
|
|
21
28
|
}
|
|
@@ -20,4 +20,6 @@
|
|
|
20
20
|
--kbq-tooltip-error-fade-off-background: var(--kbq-background-error);
|
|
21
21
|
--kbq-tooltip-error-fade-off-text: var(--kbq-foreground-white);
|
|
22
22
|
--kbq-tooltip-error-fade-off-shadow: var(--kbq-shadow-popup);
|
|
23
|
+
|
|
24
|
+
--kbq-tooltip-borderless-shadow: 0 2px 8px var(--kbq-shadow-key), 0 3px 8px var(--kbq-shadow-ambient);
|
|
23
25
|
}
|
package/tree/toggle.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ export declare class KbqTreeNodeToggleBaseDirective<T> {
|
|
|
20
20
|
}
|
|
21
21
|
export declare class KbqTreeNodeToggleComponent<T> extends KbqTreeNodeToggleBaseDirective<T> {
|
|
22
22
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeNodeToggleComponent<any>, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTreeNodeToggleComponent<any>, "kbq-tree-node-toggle", ["kbqTreeNodeToggle"], {}, {}, never,
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTreeNodeToggleComponent<any>, "kbq-tree-node-toggle", ["kbqTreeNodeToggle"], {}, {}, never, ["*"], false, never>;
|
|
24
24
|
}
|
|
25
25
|
export declare class KbqTreeNodeToggleDirective<T> extends KbqTreeNodeToggleBaseDirective<T> {
|
|
26
26
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeNodeToggleDirective<any>, never>;
|
package/tree/tree-base.d.ts
CHANGED
|
@@ -75,7 +75,7 @@ export declare class KbqTreeBase<T> implements AfterContentChecked, CollectionVi
|
|
|
75
75
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTreeBase<any>, never, never, { "treeControl": { "alias": "treeControl"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; }, {}, ["nodeDefs"], never, false, never>;
|
|
76
76
|
}
|
|
77
77
|
export declare class KbqTreeNode<T> implements IFocusableOption, OnDestroy {
|
|
78
|
-
protected elementRef: ElementRef
|
|
78
|
+
protected elementRef: ElementRef<HTMLElement>;
|
|
79
79
|
tree: KbqTreeBase<T>;
|
|
80
80
|
/**
|
|
81
81
|
* The most recently created `KbqTreeNode`. We save it in static variable so we can retrieve it
|
|
@@ -88,7 +88,7 @@ export declare class KbqTreeNode<T> implements IFocusableOption, OnDestroy {
|
|
|
88
88
|
private _data;
|
|
89
89
|
get isExpanded(): boolean;
|
|
90
90
|
get level(): number;
|
|
91
|
-
constructor(elementRef: ElementRef
|
|
91
|
+
constructor(elementRef: ElementRef<HTMLElement>, tree: KbqTreeBase<T>);
|
|
92
92
|
ngOnDestroy(): void;
|
|
93
93
|
focus(): void;
|
|
94
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeNode<any>, never>;
|
|
@@ -58,7 +58,7 @@ export declare class KbqTreeOption extends KbqTreeNode<KbqTreeOption> implements
|
|
|
58
58
|
get toggleElement(): KbqTreeNodeToggleBaseDirective<KbqTreeOption>;
|
|
59
59
|
get isToggleInDefaultPlace(): boolean;
|
|
60
60
|
checkboxState: KbqPseudoCheckboxState;
|
|
61
|
-
constructor(elementRef: ElementRef
|
|
61
|
+
constructor(elementRef: ElementRef<HTMLElement>, changeDetectorRef: ChangeDetectorRef, ngZone: NgZone, tree: any);
|
|
62
62
|
ngAfterContentInit(): void;
|
|
63
63
|
descendantsAllSelected(): boolean;
|
|
64
64
|
descendantsPartiallySelected(): boolean;
|