@koobiq/components 16.0.0-beta.1 → 16.0.0-beta.10
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/LICENSE +1 -1
- package/README.md +2 -2
- package/autocomplete/_autocomplete-theme.scss +3 -10
- package/autocomplete/autocomplete-origin.directive.d.ts +1 -1
- package/autocomplete/autocomplete-trigger.directive.d.ts +6 -16
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/autocomplete/autocomplete.scss +0 -8
- package/badge/README.md +0 -0
- package/{core/styles/theming/_badges-theme.scss → badge/_badge-theme.scss} +14 -13
- package/badge/badge.component.d.ts +44 -0
- package/badge/badge.component.scss +83 -0
- package/badge/badge.module.d.ts +10 -0
- package/badge/index.d.ts +1 -0
- package/badge/public-api.d.ts +2 -0
- package/button/_button-base.scss +1 -1
- package/button/_button-theme.scss +35 -27
- package/button/button.scss +5 -2
- package/button-toggle/_button-toggle-theme.scss +26 -45
- package/button-toggle/button-toggle.component.d.ts +2 -2
- package/button-toggle/button-toggle.scss +40 -87
- package/card/_card-theme.scss +1 -1
- package/checkbox/README.md +1 -1
- package/checkbox/_checkbox-theme.scss +10 -2
- package/checkbox/checkbox.d.ts +2 -2
- package/code-block/README.md +14 -14
- package/code-block/_code-block-theme.scss +8 -0
- package/code-block/code-block.component.d.ts +1 -1
- package/core/animation/index.d.ts +1 -1
- package/core/animation/select-animations.d.ts +1 -1
- package/core/common-behaviors/color.d.ts +1 -1
- package/core/common-behaviors/common-module.d.ts +1 -1
- package/core/formatters/index.d.ts +1 -1
- package/core/formatters/number/formatter.d.ts +56 -1
- package/core/forms/_forms-theme.scss +4 -4
- package/core/forms/_forms.scss +1 -3
- package/core/forms/forms.directive.d.ts +2 -2
- package/core/locales/en-US.d.ts +19 -1
- package/core/locales/es-LA.d.ts +27 -0
- package/core/locales/fa-IR.d.ts +28 -0
- package/core/locales/locale-service.d.ts +148 -3
- package/core/locales/pt-BR.d.ts +27 -0
- package/core/locales/ru-RU.d.ts +20 -1
- package/core/locales/zh-CN.d.ts +26 -0
- package/core/option/_optgroup-theme.scss +1 -1
- package/core/option/_option-action-theme.scss +1 -1
- package/core/option/_option-theme.scss +37 -14
- package/core/option/action.d.ts +1 -1
- package/core/option/action.scss +4 -5
- package/core/option/optgroup.d.ts +1 -1
- package/core/option/option.d.ts +37 -8
- package/core/option/option.scss +5 -50
- package/core/overlay/overlay-position-map.d.ts +7 -1
- package/core/pop-up/constants.d.ts +2 -1
- package/core/public-api.d.ts +1 -0
- package/core/select/constants.d.ts +2 -2
- package/core/services/theme.service.d.ts +23 -0
- package/core/styles/_koobiq-theme.scss +12 -1
- package/core/styles/_tokens.kbq.import.scss +4 -4
- package/core/styles/_tokens.scss +4 -4
- package/core/styles/_variables.scss +1 -0
- package/core/styles/common/_animation.scss +10 -6
- package/core/styles/common/_list.scss +123 -0
- package/core/styles/common/_overlay.scss +1 -1
- package/core/styles/common/_select.scss +232 -0
- package/core/styles/theming/_components-theming.scss +685 -92
- package/core/styles/theming/_theming.scss +201 -30
- package/core/styles/typography/_typography.scss +175 -5
- package/datepicker/_datepicker-theme.scss +43 -57
- package/datepicker/calendar-body.component.d.ts +1 -1
- package/datepicker/calendar-body.scss +11 -26
- package/datepicker/calendar-header.component.d.ts +9 -3
- package/datepicker/calendar-header.scss +7 -31
- package/datepicker/calendar.component.d.ts +4 -5
- package/datepicker/calendar.scss +20 -25
- package/datepicker/datepicker-animations.d.ts +2 -2
- package/datepicker/datepicker-content.scss +17 -10
- package/datepicker/datepicker-input.directive.d.ts +4 -4
- package/datepicker/datepicker-input.scss +1 -1
- package/datepicker/datepicker-toggle.component.d.ts +3 -3
- package/datepicker/datepicker.component.d.ts +2 -2
- package/datepicker/month-view.component.d.ts +5 -6
- package/dl/_dl-theme.scss +2 -56
- package/dl/dl.component.d.ts +1 -2
- package/dl/dl.scss +10 -47
- package/dropdown/_dropdown-theme.scss +29 -37
- package/dropdown/dropdown-animations.d.ts +1 -1
- package/dropdown/dropdown-content.directive.d.ts +1 -1
- package/dropdown/dropdown-item.component.d.ts +1 -1
- package/dropdown/dropdown-item.scss +18 -40
- package/dropdown/dropdown-trigger.directive.d.ts +2 -2
- package/dropdown/dropdown.component.d.ts +1 -1
- package/dropdown/dropdown.scss +16 -39
- package/dropdown/dropdown.types.d.ts +1 -1
- package/esm2022/alert/alert.component.mjs +3 -3
- package/esm2022/autocomplete/autocomplete-origin.directive.mjs +4 -4
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +34 -31
- package/esm2022/autocomplete/autocomplete.component.mjs +4 -4
- package/esm2022/badge/badge.component.mjs +122 -0
- package/esm2022/badge/badge.module.mjs +40 -0
- package/esm2022/badge/index.mjs +2 -0
- package/esm2022/badge/koobiq-components-badge.mjs +5 -0
- package/esm2022/badge/public-api.mjs +3 -0
- package/esm2022/button/button.component.mjs +4 -3
- package/esm2022/button-toggle/button-toggle.component.mjs +15 -15
- package/esm2022/checkbox/checkbox.mjs +4 -4
- package/esm2022/code-block/actionbar.component.mjs +3 -3
- package/esm2022/code-block/code-block.component.mjs +4 -4
- package/esm2022/core/animation/index.mjs +2 -2
- package/esm2022/core/animation/select-animations.mjs +4 -4
- package/esm2022/core/common-behaviors/color.mjs +1 -1
- package/esm2022/core/common-behaviors/common-module.mjs +2 -2
- package/esm2022/core/formatters/index.mjs +10 -2
- package/esm2022/core/formatters/number/formatter.mjs +224 -3
- package/esm2022/core/forms/forms.directive.mjs +5 -5
- package/esm2022/core/locales/en-US.mjs +22 -4
- package/esm2022/core/locales/es-LA.mjs +31 -2
- package/esm2022/core/locales/fa-IR.mjs +30 -2
- package/esm2022/core/locales/locale-service.mjs +4 -4
- package/esm2022/core/locales/pt-BR.mjs +29 -2
- package/esm2022/core/locales/ru-RU.mjs +23 -2
- package/esm2022/core/locales/zh-CN.mjs +28 -2
- package/esm2022/core/option/action.mjs +8 -7
- package/esm2022/core/option/optgroup.mjs +3 -3
- package/esm2022/core/option/option.mjs +47 -10
- package/esm2022/core/overlay/overlay-position-map.mjs +8 -1
- package/esm2022/core/pop-up/constants.mjs +2 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +12 -3
- package/esm2022/core/public-api.mjs +2 -1
- package/esm2022/core/select/constants.mjs +3 -3
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2022/core/services/theme.service.mjs +60 -0
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-body.component.mjs +7 -5
- package/esm2022/datepicker/calendar-header.component.mjs +9 -8
- package/esm2022/datepicker/calendar.component.mjs +8 -17
- package/esm2022/datepicker/datepicker-animations.mjs +3 -3
- package/esm2022/datepicker/datepicker-input.directive.mjs +29 -20
- package/esm2022/datepicker/datepicker-toggle.component.mjs +6 -6
- package/esm2022/datepicker/datepicker.component.mjs +12 -12
- package/esm2022/datepicker/month-view.component.mjs +9 -18
- package/esm2022/dl/dl.component.mjs +3 -7
- package/esm2022/dropdown/dropdown-animations.mjs +4 -4
- package/esm2022/dropdown/dropdown-content.directive.mjs +3 -3
- package/esm2022/dropdown/dropdown-errors.mjs +6 -6
- package/esm2022/dropdown/dropdown-item.component.mjs +7 -6
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +10 -9
- package/esm2022/dropdown/dropdown.component.mjs +9 -9
- package/esm2022/dropdown/dropdown.types.mjs +1 -1
- package/esm2022/file-upload/file-drop.mjs +43 -6
- package/esm2022/file-upload/file-upload.mjs +1 -1
- package/esm2022/file-upload/multiple-file-upload.component.mjs +13 -9
- package/esm2022/file-upload/single-file-upload.component.mjs +16 -13
- package/esm2022/form-field/cleaner.mjs +3 -3
- package/esm2022/form-field/form-field.mjs +12 -15
- package/esm2022/form-field/hint.mjs +16 -6
- package/esm2022/form-field/password-hint.mjs +25 -16
- package/esm2022/form-field/password-toggle.mjs +29 -12
- package/esm2022/form-field/prefix.mjs +3 -3
- package/esm2022/form-field/suffix.mjs +3 -3
- package/esm2022/form-field/validate.directive.mjs +15 -9
- package/esm2022/icon/icon-button.component.mjs +68 -0
- package/esm2022/icon/icon-item.component.mjs +27 -0
- package/esm2022/icon/icon.component.mjs +5 -90
- package/esm2022/icon/icon.module.mjs +4 -2
- package/esm2022/icon/public-api.mjs +3 -1
- package/esm2022/input/input-errors.mjs +2 -2
- package/esm2022/input/input-number.mjs +260 -44
- package/esm2022/input/input-password.mjs +5 -5
- package/esm2022/input/input.mjs +7 -7
- package/esm2022/link/link.component.mjs +14 -13
- package/esm2022/list/list-selection.component.mjs +23 -10
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/list/list.module.mjs +8 -4
- package/esm2022/loader-overlay/loader-overlay.component.mjs +20 -19
- package/esm2022/modal/modal-control.service.mjs +5 -5
- package/esm2022/modal/modal-ref.class.mjs +1 -1
- package/esm2022/modal/modal.component.mjs +129 -134
- package/esm2022/modal/modal.module.mjs +13 -7
- package/esm2022/modal/modal.service.mjs +23 -23
- package/esm2022/modal/modal.type.mjs +1 -3
- package/esm2022/navbar/navbar-item.component.mjs +19 -18
- package/esm2022/navbar/navbar.component.mjs +18 -9
- package/esm2022/navbar/vertical-navbar.animation.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +9 -6
- package/esm2022/popover/popover-animations.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +9 -11
- package/esm2022/popover/popover.component.mjs +24 -24
- package/esm2022/progress-spinner/progress-spinner.component.mjs +1 -1
- package/esm2022/radio/radio.component.mjs +11 -8
- package/esm2022/risk-level/index.mjs +2 -0
- package/esm2022/risk-level/koobiq-components-risk-level.mjs +5 -0
- package/esm2022/risk-level/public-api.mjs +3 -0
- package/esm2022/risk-level/risk-level.component.mjs +40 -0
- package/esm2022/risk-level/risk-level.module.mjs +28 -0
- package/esm2022/select/select-option.directive.mjs +15 -3
- package/esm2022/select/select.component.mjs +47 -29
- package/esm2022/sidebar/sidebar-animations.mjs +2 -2
- package/esm2022/sidebar/sidebar.component.mjs +9 -9
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-directives.mjs +8 -10
- package/esm2022/sidepanel/sidepanel.module.mjs +10 -4
- package/esm2022/splitter/splitter.component.mjs +3 -3
- package/esm2022/table/table.component.mjs +3 -3
- package/esm2022/tabs/paginated-tab-header.mjs +11 -2
- package/esm2022/tabs/tab-body.component.mjs +7 -7
- package/esm2022/tabs/tab-content.directive.mjs +3 -3
- package/esm2022/tabs/tab-group.component.mjs +16 -21
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-label-wrapper.directive.mjs +4 -3
- package/esm2022/tabs/tab-label.directive.mjs +3 -3
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +21 -10
- package/esm2022/tabs/tab.component.mjs +14 -5
- package/esm2022/tabs/tabs-animations.mjs +2 -2
- package/esm2022/tabs/tabs.module.mjs +2 -6
- package/esm2022/tags/tag-default-options.mjs +1 -1
- package/esm2022/tags/tag-input.mjs +17 -15
- package/esm2022/tags/tag-list.component.mjs +15 -10
- package/esm2022/tags/tag.component.mjs +16 -16
- package/esm2022/textarea/textarea.component.mjs +4 -4
- package/esm2022/timepicker/timepicker.directive.mjs +10 -10
- package/esm2022/timezone/timezone-option.component.mjs +4 -4
- package/esm2022/timezone/timezone-select.component.mjs +5 -5
- package/esm2022/title/title.directive.mjs +6 -6
- package/esm2022/toast/toast-animations.mjs +2 -1
- package/esm2022/toast/toast-container.component.mjs +22 -8
- package/esm2022/toast/toast.component.mjs +30 -13
- package/esm2022/toast/toast.module.mjs +23 -8
- package/esm2022/toast/toast.service.mjs +2 -1
- package/esm2022/toast/toast.type.mjs +6 -1
- package/esm2022/toggle/toggle.component.mjs +4 -4
- package/esm2022/tooltip/tooltip.animations.mjs +2 -2
- package/esm2022/tooltip/tooltip.component.mjs +29 -28
- package/esm2022/tree/control/base-tree-control.mjs +1 -1
- package/esm2022/tree/control/flat-tree-control.mjs +4 -4
- package/esm2022/tree/control/tree-control.mjs +1 -1
- package/esm2022/tree/node.mjs +5 -5
- package/esm2022/tree/outlet.mjs +3 -3
- package/esm2022/tree/padding.directive.mjs +9 -9
- package/esm2022/tree/toggle.mjs +11 -12
- package/esm2022/tree/tree-base.mjs +3 -3
- package/esm2022/tree/tree-option.component.mjs +12 -10
- package/esm2022/tree/tree-selection.component.mjs +8 -6
- package/esm2022/tree/tree.mjs +3 -3
- package/esm2022/tree/tree.module.mjs +13 -4
- package/esm2022/tree-select/tree-select.component.mjs +28 -23
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +40 -37
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +166 -0
- package/fesm2022/koobiq-components-badge.mjs.map +1 -0
- package/fesm2022/koobiq-components-button-toggle.mjs +14 -14
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +3 -2
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +3 -3
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +5 -5
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +535 -46
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +73 -79
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dl.mjs +2 -6
- package/fesm2022/koobiq-components-dl.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +33 -31
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +65 -21
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +96 -59
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +10 -8
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +269 -55
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-link.mjs +13 -12
- package/fesm2022/koobiq-components-link.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +31 -14
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +19 -18
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +164 -167
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +42 -33
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +32 -33
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +10 -7
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-risk-level.mjs +72 -0
- package/fesm2022/koobiq-components-risk-level.mjs.map +1 -0
- package/fesm2022/koobiq-components-select.mjs +60 -30
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidebar.mjs +8 -8
- package/fesm2022/koobiq-components-sidebar.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +19 -14
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +2 -2
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +2 -2
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +74 -53
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +45 -38
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +3 -3
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +9 -9
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +7 -7
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +5 -5
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +71 -22
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-toggle.mjs +3 -3
- package/fesm2022/koobiq-components-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +29 -28
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +27 -22
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +67 -54
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +54 -40
- package/file-upload/file-drop.d.ts +3 -2
- package/file-upload/file-upload.d.ts +4 -1
- package/file-upload/file-upload.scss +2 -9
- package/file-upload/multiple-file-upload.component.d.ts +6 -5
- package/file-upload/multiple-file-upload.component.scss +170 -59
- package/file-upload/single-file-upload.component.d.ts +6 -5
- package/file-upload/single-file-upload.component.scss +42 -22
- package/form-field/_form-field-theme.scss +3 -6
- package/form-field/_hint-theme.scss +6 -2
- package/form-field/cleaner.d.ts +1 -1
- package/form-field/form-field.d.ts +3 -4
- package/form-field/form-field.scss +2 -2
- package/form-field/hint.d.ts +4 -1
- package/form-field/hint.scss +9 -1
- package/form-field/password-hint.d.ts +7 -3
- package/form-field/password-hint.scss +6 -0
- package/form-field/password-toggle.d.ts +13 -7
- package/form-field/prefix.d.ts +1 -1
- package/form-field/suffix.d.ts +1 -1
- package/form-field/validate.directive.d.ts +1 -1
- package/icon/_icon-button-theme.scss +129 -0
- package/icon/_icon-item-theme.scss +41 -0
- package/icon/_icon-theme.scss +1 -232
- package/icon/icon-button.component.d.ts +22 -0
- package/icon/icon-button.scss +33 -0
- package/icon/icon-item.component.d.ts +10 -0
- package/icon/icon-item.scss +18 -0
- package/icon/icon.component.d.ts +1 -25
- package/icon/icon.module.d.ts +6 -4
- package/icon/icon.scss +0 -41
- package/icon/public-api.d.ts +2 -0
- package/input/_input-theme.scss +2 -1
- package/input/input-number.d.ts +61 -10
- package/input/input-password.d.ts +1 -1
- package/input/input.d.ts +2 -2
- package/input/input.scss +3 -1
- package/link/_link-theme.scss +101 -92
- package/link/link.component.d.ts +4 -4
- package/list/_list-theme.scss +36 -17
- package/list/list-selection.component.d.ts +6 -2
- package/list/list.module.d.ts +1 -1
- package/list/list.scss +6 -19
- package/loader-overlay/_loader-overlay-theme.scss +43 -11
- package/loader-overlay/loader-overlay.component.d.ts +6 -5
- package/loader-overlay/loader-overlay.scss +56 -22
- package/markdown/_markdown-theme.scss +2 -2
- package/modal/README.md +5 -5
- package/modal/_modal-confirm.scss +5 -37
- package/modal/_modal-theme.scss +14 -52
- package/modal/modal-ref.class.d.ts +2 -2
- package/modal/modal.component.d.ts +53 -52
- package/modal/modal.module.d.ts +2 -1
- package/modal/modal.scss +50 -31
- package/modal/modal.type.d.ts +35 -36
- package/navbar/_navbar-theme.scss +2 -2
- package/navbar/navbar-item.component.d.ts +4 -3
- package/navbar/navbar.component.d.ts +5 -2
- package/navbar/vertical-navbar.component.d.ts +4 -2
- package/package.json +48 -38
- package/popover/README.md +14 -14
- package/popover/_popover-theme.scss +15 -78
- package/popover/popover-animations.d.ts +1 -1
- package/popover/popover-confirm.component.d.ts +1 -3
- package/popover/popover.component.d.ts +3 -3
- package/popover/popover.scss +60 -50
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-spinner/progress-spinner.component.d.ts +2 -2
- package/radio/_radio-theme.scss +17 -4
- package/radio/radio.component.d.ts +2 -2
- package/radio/radio.scss +13 -0
- package/risk-level/README.md +0 -0
- package/risk-level/_risk-level-theme.scss +88 -0
- package/risk-level/index.d.ts +1 -0
- package/risk-level/public-api.d.ts +2 -0
- package/risk-level/risk-level.component.d.ts +18 -0
- package/risk-level/risk-level.component.scss +26 -0
- package/risk-level/risk-level.module.d.ts +10 -0
- package/select/_select-theme.scss +12 -4
- package/select/select-option.directive.d.ts +2 -0
- package/select/select.component.d.ts +15 -12
- package/select/select.scss +6 -190
- package/sidebar/sidebar-animations.d.ts +1 -1
- package/sidebar/sidebar.component.d.ts +3 -3
- package/sidepanel/_sidepanel-theme.scss +11 -41
- package/sidepanel/sidepanel-directives.d.ts +0 -2
- package/sidepanel/sidepanel.scss +33 -35
- package/splitter/_splitter-theme.scss +1 -0
- package/splitter/splitter.component.d.ts +1 -1
- package/table/_table-theme.scss +1 -1
- package/table/table.component.d.ts +1 -1
- package/tabs/_tabs-common.scss +28 -147
- package/tabs/_tabs-theme.scss +81 -175
- package/tabs/paginated-tab-header.d.ts +1 -0
- package/tabs/tab-body.component.d.ts +1 -1
- package/tabs/tab-content.directive.d.ts +1 -1
- package/tabs/tab-group.component.d.ts +5 -8
- package/tabs/tab-group.scss +10 -10
- package/tabs/tab-header.scss +2 -24
- package/tabs/tab-label-wrapper.directive.d.ts +1 -1
- package/tabs/tab-label.directive.d.ts +1 -1
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +4 -2
- package/tabs/tab-nav-bar/tab-nav-bar.scss +9 -16
- package/tabs/tab.component.d.ts +1 -1
- package/tabs/tabs-animations.d.ts +1 -1
- package/tabs/tabs.module.d.ts +1 -1
- package/tags/_tag-theme.scss +1 -25
- package/tags/tag-default-options.d.ts +4 -0
- package/tags/tag-input.d.ts +2 -2
- package/tags/tag-list.component.d.ts +3 -2
- package/tags/tag-list.scss +26 -16
- package/tags/tag.component.d.ts +6 -6
- package/textarea/textarea.component.d.ts +1 -1
- package/timepicker/timepicker.directive.d.ts +2 -2
- package/timezone/timezone-option.component.d.ts +1 -1
- package/timezone/timezone-select.component.d.ts +1 -1
- package/title/title.directive.d.ts +1 -1
- package/toast/_toast-theme.scss +21 -33
- package/toast/toast-animations.d.ts +1 -0
- package/toast/toast-container.component.d.ts +7 -3
- package/toast/toast-container.component.scss +2 -1
- package/toast/toast.component.d.ts +6 -1
- package/toast/toast.component.scss +41 -34
- package/toast/toast.module.d.ts +1 -1
- package/toast/toast.service.d.ts +2 -0
- package/toast/toast.type.d.ts +8 -5
- package/toggle/_toggle-theme.scss +9 -1
- package/toggle/toggle.component.d.ts +1 -1
- package/toggle/toggle.scss +5 -2
- package/tooltip/tooltip.animations.d.ts +1 -1
- package/tooltip/tooltip.component.d.ts +5 -5
- package/tree/_tree-theme.scss +46 -34
- package/tree/control/base-tree-control.d.ts +1 -1
- package/tree/control/tree-control.d.ts +1 -1
- package/tree/node.d.ts +1 -1
- package/tree/outlet.d.ts +1 -1
- package/tree/padding.directive.d.ts +1 -1
- package/tree/toggle.d.ts +3 -3
- package/tree/tree-base.d.ts +1 -1
- package/tree/tree-option.component.d.ts +1 -2
- package/tree/tree-option.scss +40 -27
- package/tree/tree-selection.component.d.ts +1 -1
- package/tree/tree.d.ts +1 -1
- package/tree/tree.module.d.ts +2 -1
- package/tree-select/_tree-select-theme.scss +13 -3
- package/tree-select/tree-select.component.d.ts +6 -4
- package/tree-select/tree-select.scss +5 -194
- package/core/styles/theming/_badges.scss +0 -57
- package/core/styles/theming/prebuilt/light-theme.scss +0 -20
- package/list/_list-base.scss +0 -54
|
@@ -2,29 +2,137 @@ import { InjectionToken } from '@angular/core';
|
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare const KBQ_LOCALE_ID: InjectionToken<string>;
|
|
5
|
-
export declare const KBQ_DEFAULT_LOCALE_ID = "ru";
|
|
5
|
+
export declare const KBQ_DEFAULT_LOCALE_ID = "ru-RU";
|
|
6
6
|
export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
7
7
|
'zh-CN': {
|
|
8
8
|
select: {
|
|
9
9
|
hiddenItemsText: string;
|
|
10
10
|
};
|
|
11
|
+
datepicker: {
|
|
12
|
+
placeholder: string;
|
|
13
|
+
};
|
|
14
|
+
timepicker: {
|
|
15
|
+
placeholder: {
|
|
16
|
+
full: string;
|
|
17
|
+
short: string;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
formatters: {
|
|
21
|
+
number: {
|
|
22
|
+
rounding: {
|
|
23
|
+
separator: string;
|
|
24
|
+
groupSeparator: string;
|
|
25
|
+
tenThousand: string;
|
|
26
|
+
oneHundredMillions: string;
|
|
27
|
+
trillion: string;
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
input: {
|
|
32
|
+
number: {
|
|
33
|
+
groupSeparator: string[];
|
|
34
|
+
fractionSeparator: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
11
37
|
};
|
|
12
38
|
'pt-BR': {
|
|
13
39
|
select: {
|
|
14
40
|
hiddenItemsText: string;
|
|
15
41
|
};
|
|
42
|
+
datepicker: {
|
|
43
|
+
placeholder: string;
|
|
44
|
+
};
|
|
45
|
+
timepicker: {
|
|
46
|
+
placeholder: {
|
|
47
|
+
full: string;
|
|
48
|
+
short: string;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
formatters: {
|
|
52
|
+
number: {
|
|
53
|
+
rounding: {
|
|
54
|
+
separator: string;
|
|
55
|
+
groupSeparator: string;
|
|
56
|
+
thousand: string;
|
|
57
|
+
million: string;
|
|
58
|
+
billion: string;
|
|
59
|
+
trillion: string;
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
input: {
|
|
64
|
+
number: {
|
|
65
|
+
groupSeparator: string[];
|
|
66
|
+
fractionSeparator: string;
|
|
67
|
+
};
|
|
68
|
+
};
|
|
16
69
|
};
|
|
17
70
|
'fa-IR': {
|
|
18
71
|
select: {
|
|
19
72
|
hiddenItemsText: string;
|
|
20
73
|
};
|
|
74
|
+
datepicker: {
|
|
75
|
+
placeholder: string;
|
|
76
|
+
};
|
|
77
|
+
timepicker: {
|
|
78
|
+
placeholder: {
|
|
79
|
+
full: string;
|
|
80
|
+
short: string;
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
formatters: {
|
|
84
|
+
number: {
|
|
85
|
+
rounding: {
|
|
86
|
+
separator: string;
|
|
87
|
+
groupSeparator: string;
|
|
88
|
+
thousand: string;
|
|
89
|
+
million: string;
|
|
90
|
+
billion: string;
|
|
91
|
+
trillion: string;
|
|
92
|
+
rtl: boolean;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
input: {
|
|
97
|
+
number: {
|
|
98
|
+
groupSeparator: string[];
|
|
99
|
+
fractionSeparator: string;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
21
102
|
};
|
|
22
103
|
'es-LA': {
|
|
23
104
|
select: {
|
|
24
105
|
hiddenItemsText: string;
|
|
25
106
|
};
|
|
107
|
+
datepicker: {
|
|
108
|
+
placeholder: string;
|
|
109
|
+
};
|
|
110
|
+
timepicker: {
|
|
111
|
+
placeholder: {
|
|
112
|
+
full: string;
|
|
113
|
+
short: string;
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
formatters: {
|
|
117
|
+
number: {
|
|
118
|
+
rounding: {
|
|
119
|
+
separator: string;
|
|
120
|
+
groupSeparator: string;
|
|
121
|
+
thousand: string;
|
|
122
|
+
million: string;
|
|
123
|
+
billion: string;
|
|
124
|
+
trillion: string;
|
|
125
|
+
};
|
|
126
|
+
};
|
|
127
|
+
};
|
|
128
|
+
input: {
|
|
129
|
+
number: {
|
|
130
|
+
groupSeparator: string[];
|
|
131
|
+
fractionSeparator: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
26
134
|
};
|
|
27
|
-
en: {
|
|
135
|
+
'en-US': {
|
|
28
136
|
select: {
|
|
29
137
|
hiddenItemsText: string;
|
|
30
138
|
};
|
|
@@ -32,8 +140,26 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
32
140
|
placeholder: string;
|
|
33
141
|
dateInput: string;
|
|
34
142
|
};
|
|
143
|
+
formatters: {
|
|
144
|
+
number: {
|
|
145
|
+
rounding: {
|
|
146
|
+
separator: string;
|
|
147
|
+
groupSeparator: string;
|
|
148
|
+
thousand: string;
|
|
149
|
+
million: string;
|
|
150
|
+
billion: string;
|
|
151
|
+
trillion: string;
|
|
152
|
+
};
|
|
153
|
+
};
|
|
154
|
+
};
|
|
155
|
+
input: {
|
|
156
|
+
number: {
|
|
157
|
+
groupSeparator: string[];
|
|
158
|
+
fractionSeparator: string;
|
|
159
|
+
};
|
|
160
|
+
};
|
|
35
161
|
};
|
|
36
|
-
ru: {
|
|
162
|
+
'ru-RU': {
|
|
37
163
|
select: {
|
|
38
164
|
hiddenItemsText: string;
|
|
39
165
|
};
|
|
@@ -41,6 +167,25 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
41
167
|
placeholder: string;
|
|
42
168
|
dateInput: string;
|
|
43
169
|
};
|
|
170
|
+
formatters: {
|
|
171
|
+
number: {
|
|
172
|
+
rounding: {
|
|
173
|
+
separator: string;
|
|
174
|
+
groupSeparator: string;
|
|
175
|
+
thousand: string;
|
|
176
|
+
million: string;
|
|
177
|
+
billion: string;
|
|
178
|
+
trillion: string;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
input: {
|
|
183
|
+
number: {
|
|
184
|
+
groupSeparator: string[];
|
|
185
|
+
fractionSeparator: string;
|
|
186
|
+
startFormattingFrom: number;
|
|
187
|
+
};
|
|
188
|
+
};
|
|
44
189
|
};
|
|
45
190
|
items: {
|
|
46
191
|
id: string;
|
package/core/locales/pt-BR.d.ts
CHANGED
|
@@ -3,5 +3,32 @@ export declare const ptBRLocaleData: {
|
|
|
3
3
|
select: {
|
|
4
4
|
hiddenItemsText: string;
|
|
5
5
|
};
|
|
6
|
+
datepicker: {
|
|
7
|
+
placeholder: string;
|
|
8
|
+
};
|
|
9
|
+
timepicker: {
|
|
10
|
+
placeholder: {
|
|
11
|
+
full: string;
|
|
12
|
+
short: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
formatters: {
|
|
16
|
+
number: {
|
|
17
|
+
rounding: {
|
|
18
|
+
separator: string;
|
|
19
|
+
groupSeparator: string;
|
|
20
|
+
thousand: string;
|
|
21
|
+
million: string;
|
|
22
|
+
billion: string;
|
|
23
|
+
trillion: string;
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
input: {
|
|
28
|
+
number: {
|
|
29
|
+
groupSeparator: string[];
|
|
30
|
+
fractionSeparator: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
6
33
|
};
|
|
7
34
|
};
|
package/core/locales/ru-RU.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const ruRULocaleData: {
|
|
2
|
-
ru: {
|
|
2
|
+
'ru-RU': {
|
|
3
3
|
select: {
|
|
4
4
|
hiddenItemsText: string;
|
|
5
5
|
};
|
|
@@ -7,5 +7,24 @@ export declare const ruRULocaleData: {
|
|
|
7
7
|
placeholder: string;
|
|
8
8
|
dateInput: string;
|
|
9
9
|
};
|
|
10
|
+
formatters: {
|
|
11
|
+
number: {
|
|
12
|
+
rounding: {
|
|
13
|
+
separator: string;
|
|
14
|
+
groupSeparator: string;
|
|
15
|
+
thousand: string;
|
|
16
|
+
million: string;
|
|
17
|
+
billion: string;
|
|
18
|
+
trillion: string;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
input: {
|
|
23
|
+
number: {
|
|
24
|
+
groupSeparator: string[];
|
|
25
|
+
fractionSeparator: string;
|
|
26
|
+
startFormattingFrom: number;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
10
29
|
};
|
|
11
30
|
};
|
package/core/locales/zh-CN.d.ts
CHANGED
|
@@ -3,5 +3,31 @@ export declare const znCNLocaleData: {
|
|
|
3
3
|
select: {
|
|
4
4
|
hiddenItemsText: string;
|
|
5
5
|
};
|
|
6
|
+
datepicker: {
|
|
7
|
+
placeholder: string;
|
|
8
|
+
};
|
|
9
|
+
timepicker: {
|
|
10
|
+
placeholder: {
|
|
11
|
+
full: string;
|
|
12
|
+
short: string;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
formatters: {
|
|
16
|
+
number: {
|
|
17
|
+
rounding: {
|
|
18
|
+
separator: string;
|
|
19
|
+
groupSeparator: string;
|
|
20
|
+
tenThousand: string;
|
|
21
|
+
oneHundredMillions: string;
|
|
22
|
+
trillion: string;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
input: {
|
|
27
|
+
number: {
|
|
28
|
+
groupSeparator: string[];
|
|
29
|
+
fractionSeparator: string;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
6
32
|
};
|
|
7
33
|
};
|
|
@@ -4,33 +4,52 @@
|
|
|
4
4
|
@use '../styles/typography/typography-utils' as *;
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
@mixin kbq-option
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
@mixin kbq-option($state) {
|
|
8
|
+
background: map.get($state, container-background);
|
|
9
|
+
|
|
10
|
+
.kbq-option-text {
|
|
11
|
+
color: map.get($state, text);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
// todo выглядит как баг
|
|
15
|
+
//.kbq-icon {
|
|
16
|
+
// color: map.get($state, icon);
|
|
17
|
+
//}
|
|
18
|
+
|
|
19
|
+
.kbq-option-action .kbq-icon {
|
|
20
|
+
color: map.get($state, icon-button);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.kbq-option-caption {
|
|
24
|
+
color: map.get($state, caption);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
10
27
|
|
|
11
|
-
|
|
28
|
+
@mixin kbq-option-theme($theme) {
|
|
29
|
+
$list-item: map.get(map.get($theme, components), list-item);
|
|
12
30
|
|
|
13
31
|
.kbq-option {
|
|
14
|
-
|
|
32
|
+
@include kbq-option(map.get($list-item, default));
|
|
15
33
|
|
|
16
34
|
&:hover:not(.kbq-disabled) {
|
|
17
|
-
|
|
18
|
-
background: map.get($background, overlay-hover);
|
|
19
|
-
}
|
|
35
|
+
@include kbq-option(map.get($list-item, hover));
|
|
20
36
|
}
|
|
21
37
|
|
|
38
|
+
&.kbq-focused,
|
|
22
39
|
&.kbq-active {
|
|
23
|
-
border-color: map.get(map.get($
|
|
40
|
+
border-color: map.get(map.get($list-item, focused), focus-outline);
|
|
24
41
|
}
|
|
25
42
|
|
|
26
43
|
&.kbq-selected {
|
|
27
|
-
|
|
44
|
+
@include kbq-option(map.get($list-item, selected));
|
|
45
|
+
|
|
46
|
+
&:hover:not(.kbq-disabled) {
|
|
47
|
+
@include kbq-option(map.get($list-item, selected-hover));
|
|
48
|
+
}
|
|
28
49
|
}
|
|
29
50
|
|
|
30
51
|
&.kbq-disabled {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
color: map.get($foreground, text-disabled);
|
|
52
|
+
@include kbq-option(map.get($list-item, disabled));
|
|
34
53
|
}
|
|
35
54
|
}
|
|
36
55
|
}
|
|
@@ -39,6 +58,10 @@
|
|
|
39
58
|
$tokens: map.get($config, tokens);
|
|
40
59
|
|
|
41
60
|
.kbq-option {
|
|
42
|
-
@include kbq-typography-level-to-styles($config, map.get($tokens,
|
|
61
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, list-font-text));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.kbq-list-option-caption {
|
|
65
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, list-font-caption));
|
|
43
66
|
}
|
|
44
67
|
}
|
package/core/option/action.d.ts
CHANGED
|
@@ -40,5 +40,5 @@ export declare class KbqOptionActionComponent extends KbqOptionActionMixinBase i
|
|
|
40
40
|
onKeyDown($event: any): void;
|
|
41
41
|
private preventShowingTooltip;
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOptionActionComponent, never>;
|
|
43
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptionActionComponent, "kbq-option-action", ["
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptionActionComponent, "kbq-option-action", ["kbqOptionAction"], { "disabled": { "alias": "disabled"; "required": false; }; }, {}, ["customIcon"], ["[kbq-icon]"], false, never>;
|
|
44
44
|
}
|
package/core/option/action.scss
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
.kbq-option-action {
|
|
2
|
-
box-sizing:
|
|
2
|
+
box-sizing: border-box;
|
|
3
3
|
|
|
4
4
|
position: relative;
|
|
5
5
|
|
|
@@ -10,9 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
margin-right: -2px;
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
height: 100%;
|
|
13
|
+
width: 24px;
|
|
14
|
+
height: 24px;
|
|
16
15
|
|
|
17
16
|
cursor: pointer;
|
|
18
17
|
|
|
@@ -22,7 +21,7 @@
|
|
|
22
21
|
|
|
23
22
|
background: transparent;
|
|
24
23
|
|
|
25
|
-
|
|
24
|
+
&.kbq-disabled {
|
|
26
25
|
cursor: default;
|
|
27
26
|
}
|
|
28
27
|
}
|
|
@@ -12,5 +12,5 @@ export declare class KbqOptgroup extends KbqOptgroupMixinBase implements CanDisa
|
|
|
12
12
|
/** Unique id for the underlying label. */
|
|
13
13
|
labelId: string;
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOptgroup, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptgroup, "kbq-optgroup", ["
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOptgroup, "kbq-optgroup", ["kbqOptgroup"], { "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": false; }; }, {}, never, ["kbq-option, kbq-list-option, kbq-timezone-option, ng-container"], false, never>;
|
|
16
16
|
}
|
package/core/option/option.d.ts
CHANGED
|
@@ -4,10 +4,10 @@ import { KbqTitleTextRef } from '../title';
|
|
|
4
4
|
import { KbqOptgroup } from './optgroup';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
/** Event object emitted by KbqOption when selected or deselected. */
|
|
7
|
-
export declare class KbqOptionSelectionChange {
|
|
8
|
-
source:
|
|
7
|
+
export declare class KbqOptionSelectionChange<T = KbqOption> {
|
|
8
|
+
source: T;
|
|
9
9
|
isUserInput: boolean;
|
|
10
|
-
constructor(source:
|
|
10
|
+
constructor(source: T, isUserInput?: boolean);
|
|
11
11
|
}
|
|
12
12
|
/**
|
|
13
13
|
* Describes a parent component that manages a list of options.
|
|
@@ -17,14 +17,45 @@ export declare class KbqOptionSelectionChange {
|
|
|
17
17
|
export interface KbqOptionParentComponent {
|
|
18
18
|
multiple?: boolean;
|
|
19
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* Handler that will update scroll position of elements inside overlay
|
|
22
|
+
*/
|
|
23
|
+
export interface KeyboardNavigationHandler {
|
|
24
|
+
/** Scrolls the active option into view. */
|
|
25
|
+
scrollActiveOptionIntoView(): void;
|
|
26
|
+
}
|
|
20
27
|
/**
|
|
21
28
|
* Injection token used to provide the parent component to options.
|
|
22
29
|
*/
|
|
23
30
|
export declare const KBQ_OPTION_PARENT_COMPONENT: InjectionToken<KbqOptionParentComponent>;
|
|
31
|
+
export declare abstract class KbqOptionBase {
|
|
32
|
+
value: any;
|
|
33
|
+
abstract get viewValue(): string;
|
|
34
|
+
abstract get disabled(): boolean;
|
|
35
|
+
abstract set disabled(value: any);
|
|
36
|
+
abstract readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange<any>>;
|
|
37
|
+
abstract select(): void;
|
|
38
|
+
abstract deselect(): void;
|
|
39
|
+
/** Emits the selection change event. */
|
|
40
|
+
protected emitSelectionChangeEvent(isUserInput?: boolean): void;
|
|
41
|
+
}
|
|
42
|
+
export declare class KbqVirtualOption extends KbqOptionBase {
|
|
43
|
+
value: any;
|
|
44
|
+
private _disabled;
|
|
45
|
+
get disabled(): any;
|
|
46
|
+
set disabled(value: any);
|
|
47
|
+
get selected(): boolean;
|
|
48
|
+
private _selected;
|
|
49
|
+
get viewValue(): string;
|
|
50
|
+
readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange<KbqVirtualOption>>;
|
|
51
|
+
constructor(value: any, _disabled?: boolean);
|
|
52
|
+
select(): void;
|
|
53
|
+
deselect(): void;
|
|
54
|
+
}
|
|
24
55
|
/**
|
|
25
56
|
* Single option inside of a `<kbq-select>` element.
|
|
26
57
|
*/
|
|
27
|
-
export declare class KbqOption implements AfterViewChecked, OnDestroy, KbqTitleTextRef {
|
|
58
|
+
export declare class KbqOption extends KbqOptionBase implements AfterViewChecked, OnDestroy, KbqTitleTextRef {
|
|
28
59
|
private readonly element;
|
|
29
60
|
private readonly changeDetectorRef;
|
|
30
61
|
private readonly parent;
|
|
@@ -36,7 +67,7 @@ export declare class KbqOption implements AfterViewChecked, OnDestroy, KbqTitleT
|
|
|
36
67
|
set showCheckbox(value: boolean | undefined);
|
|
37
68
|
private _showCheckbox;
|
|
38
69
|
/** Event emitted when the option is selected or deselected. */
|
|
39
|
-
readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange
|
|
70
|
+
readonly onSelectionChange: EventEmitter<KbqOptionSelectionChange<KbqOption>>;
|
|
40
71
|
/** Emits when the state of the option changes and any parents have to be notified. */
|
|
41
72
|
readonly stateChanges: Subject<void>;
|
|
42
73
|
/**
|
|
@@ -92,10 +123,8 @@ export declare class KbqOption implements AfterViewChecked, OnDestroy, KbqTitleT
|
|
|
92
123
|
selectViaInteraction(): void;
|
|
93
124
|
getTabIndex(): string;
|
|
94
125
|
getHostElement(): HTMLElement;
|
|
95
|
-
/** Emits the selection change event. */
|
|
96
|
-
private emitSelectionChangeEvent;
|
|
97
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqOption, [null, null, { optional: true; }, { optional: true; }]>;
|
|
98
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOption, "kbq-option", ["
|
|
127
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqOption, "kbq-option", ["kbqOption"], { "value": { "alias": "value"; "required": false; }; "showCheckbox": { "alias": "showCheckbox"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "onSelectionChange": "onSelectionChange"; }, never, ["*"], false, never>;
|
|
99
128
|
}
|
|
100
129
|
/**
|
|
101
130
|
* Counts the amount of option group labels that precede the specified option.
|
package/core/option/option.scss
CHANGED
|
@@ -1,62 +1,17 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../styles/
|
|
4
|
+
@use '../styles/common';
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
9
7
|
.kbq-option {
|
|
10
|
-
|
|
11
|
-
flex-direction: row;
|
|
12
|
-
align-items: center;
|
|
13
|
-
|
|
14
|
-
box-sizing: border-box;
|
|
15
|
-
|
|
16
|
-
position: relative;
|
|
17
|
-
|
|
18
|
-
max-width: 100%;
|
|
19
|
-
|
|
20
|
-
height: var(--kbq-option-size-height, map.get($tokens, option-size-height));
|
|
21
|
-
|
|
22
|
-
border: var(--kbq-option-size-border-width, map.get($tokens, option-size-border-width)) solid transparent;
|
|
23
|
-
|
|
24
|
-
cursor: pointer;
|
|
25
|
-
|
|
26
|
-
outline: none;
|
|
27
|
-
|
|
28
|
-
padding-left: var(--kbq-option-size-horizontal-padding, map.get($tokens, option-size-horizontal-padding));
|
|
29
|
-
padding-right: var(--kbq-option-size-horizontal-padding, map.get($tokens, option-size-horizontal-padding));
|
|
8
|
+
@include common.kbq-list-item-base();
|
|
30
9
|
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
&.kbq-disabled {
|
|
34
|
-
cursor: default;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
& .kbq-pseudo-checkbox {
|
|
38
|
-
margin-right: 8px;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
& .kbq-option-overlay {
|
|
42
|
-
position: absolute;
|
|
43
|
-
|
|
44
|
-
top: calc(-1 * var(--kbq-option-size-border-width, #{map.get($tokens, option-size-border-width)}));
|
|
45
|
-
left: calc(-1 * var(--kbq-option-size-border-width, #{map.get($tokens, option-size-border-width)}));
|
|
46
|
-
right: calc(-1 * var(--kbq-option-size-border-width, #{map.get($tokens, option-size-border-width)}));
|
|
47
|
-
bottom: calc(-1 * var(--kbq-option-size-border-width, #{map.get($tokens, option-size-border-width)}));
|
|
48
|
-
|
|
49
|
-
pointer-events: none;
|
|
50
|
-
border-radius: inherit;
|
|
10
|
+
&:not(.kbq-disabled) {
|
|
11
|
+
cursor: pointer;
|
|
51
12
|
}
|
|
52
13
|
}
|
|
53
14
|
|
|
54
15
|
.kbq-option-text {
|
|
55
|
-
|
|
56
|
-
flex-grow: 1;
|
|
57
|
-
|
|
58
|
-
overflow: hidden;
|
|
59
|
-
|
|
60
|
-
white-space: nowrap;
|
|
61
|
-
text-overflow: ellipsis;
|
|
16
|
+
@include common.kbq-list-text();
|
|
62
17
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ConnectionPositionPair } from '@angular/cdk/overlay';
|
|
1
|
+
import { ConnectionPositionPair, Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
2
3
|
export declare const POSITION_MAP: {
|
|
3
4
|
[key: string]: ConnectionPositionPair;
|
|
4
5
|
};
|
|
@@ -32,3 +33,8 @@ export declare const POSITION_PRIORITY_STRATEGY: {
|
|
|
32
33
|
export declare const POSITION_TO_CSS_MAP: {
|
|
33
34
|
[key: string]: string;
|
|
34
35
|
};
|
|
36
|
+
export declare const KBQ_CUSTOM_SCROLL_STRATEGY_PROVIDER: <T>(token: InjectionToken<T>, factory: (overlay: Overlay) => () => ScrollStrategy) => {
|
|
37
|
+
provide: InjectionToken<T>;
|
|
38
|
+
deps: (typeof Overlay)[];
|
|
39
|
+
useFactory: (overlay: Overlay) => () => ScrollStrategy;
|
|
40
|
+
};
|
package/core/public-api.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export * from './selection/index';
|
|
|
16
16
|
export * from './locales/index';
|
|
17
17
|
export * from './title/index';
|
|
18
18
|
export * from './services/measure-scrollbar.service';
|
|
19
|
+
export * from './services/theme.service';
|
|
19
20
|
export * from './utils/index';
|
|
20
21
|
export * from './validation/index';
|
|
21
22
|
export * from './version';
|
|
@@ -14,10 +14,10 @@ export declare const SELECT_PANEL_VIEWPORT_PADDING = 8;
|
|
|
14
14
|
/** Injection token that determines the scroll handling while a select is open. */
|
|
15
15
|
export declare const KBQ_SELECT_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
16
16
|
/** @docs-private */
|
|
17
|
-
export declare function
|
|
17
|
+
export declare function kbqSelectScrollStrategyProviderFactory(overlay: Overlay): () => RepositionScrollStrategy;
|
|
18
18
|
/** @docs-private */
|
|
19
19
|
export declare const KBQ_SELECT_SCROLL_STRATEGY_PROVIDER: {
|
|
20
20
|
provide: InjectionToken<() => ScrollStrategy>;
|
|
21
21
|
deps: (typeof Overlay)[];
|
|
22
|
-
useFactory: typeof
|
|
22
|
+
useFactory: typeof kbqSelectScrollStrategyProviderFactory;
|
|
23
23
|
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Renderer2, RendererFactory2 } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject, Subscription } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface KbqTheme {
|
|
5
|
+
name: string;
|
|
6
|
+
className: string;
|
|
7
|
+
selected: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const KbqDefaultThemes: KbqTheme[];
|
|
10
|
+
export declare class ThemeService<T extends KbqTheme | null = KbqTheme> {
|
|
11
|
+
private rendererFactory;
|
|
12
|
+
current: BehaviorSubject<T>;
|
|
13
|
+
themes: T[];
|
|
14
|
+
protected renderer: Renderer2;
|
|
15
|
+
protected subscription: Subscription;
|
|
16
|
+
constructor(rendererFactory: RendererFactory2);
|
|
17
|
+
setThemes(items: T[]): void;
|
|
18
|
+
setTheme(value: T | number): void;
|
|
19
|
+
getTheme(): T;
|
|
20
|
+
protected update: ([prev, current]: T[]) => void;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThemeService<any>, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ThemeService<any>>;
|
|
23
|
+
}
|