@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
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -5,17 +5,10 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
@mixin kbq-autocomplete-theme($theme) {
|
|
8
|
-
$
|
|
8
|
+
$select-panel: map.get(map.get($theme, components), select-panel);
|
|
9
9
|
|
|
10
10
|
.kbq-autocomplete-panel {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
color: theming.kbq-color($foreground, text);
|
|
14
|
-
|
|
15
|
-
.kbq-selected {
|
|
16
|
-
$popup: map.get(map.get($theme, components), popup);
|
|
17
|
-
|
|
18
|
-
background-color: map.get($popup, background);
|
|
19
|
-
}
|
|
11
|
+
box-shadow: map.get($select-panel, shadow);
|
|
12
|
+
background: map.get($select-panel, background);
|
|
20
13
|
}
|
|
21
14
|
}
|
|
@@ -8,5 +8,5 @@ export declare class KbqAutocompleteOrigin {
|
|
|
8
8
|
elementRef: ElementRef<HTMLElement>;
|
|
9
9
|
constructor(elementRef: ElementRef<HTMLElement>);
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAutocompleteOrigin, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqAutocompleteOrigin, "[
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqAutocompleteOrigin, "[kbqAutocompleteOrigin]", ["kbqAutocompleteOrigin"], {}, {}, never, never, false, never>;
|
|
12
12
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
2
|
import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
3
3
|
import { ViewportRuler } from '@angular/cdk/scrolling';
|
|
4
|
-
import { ChangeDetectorRef, ElementRef, InjectionToken, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
4
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, InjectionToken, NgZone, OnDestroy, ViewContainerRef } from '@angular/core';
|
|
5
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
6
|
-
import { KbqOption, KbqOptionSelectionChange } from '@koobiq/components/core';
|
|
6
|
+
import { KbqOption, KbqOptionSelectionChange, KeyboardNavigationHandler } from '@koobiq/components/core';
|
|
7
7
|
import { KbqFormField } from '@koobiq/components/form-field';
|
|
8
8
|
import { Observable } from 'rxjs';
|
|
9
9
|
import { KbqAutocompleteOrigin } from './autocomplete-origin.directive';
|
|
@@ -14,8 +14,6 @@ import * as i0 from "@angular/core";
|
|
|
14
14
|
* to properly calculate the scrollTop of the panel. Because we are not
|
|
15
15
|
* actually focusing the active item, scroll must be handled manually.
|
|
16
16
|
*/
|
|
17
|
-
/** The height of each autocomplete option. */
|
|
18
|
-
export declare const AUTOCOMPLETE_OPTION_HEIGHT = 32;
|
|
19
17
|
/** The total height of the autocomplete panel. */
|
|
20
18
|
export declare const AUTOCOMPLETE_PANEL_HEIGHT = 256;
|
|
21
19
|
export declare const AUTOCOMPLETE_BORDER_WIDTH: number;
|
|
@@ -37,7 +35,7 @@ export declare const MAT_AUTOCOMPLETE_VALUE_ACCESSOR: any;
|
|
|
37
35
|
* @docs-private
|
|
38
36
|
*/
|
|
39
37
|
export declare function getKbqAutocompleteMissingPanelError(): Error;
|
|
40
|
-
export declare class KbqAutocompleteTrigger implements ControlValueAccessor, OnDestroy {
|
|
38
|
+
export declare class KbqAutocompleteTrigger implements AfterViewInit, ControlValueAccessor, OnDestroy, KeyboardNavigationHandler {
|
|
41
39
|
private elementRef;
|
|
42
40
|
private viewContainerRef;
|
|
43
41
|
private changeDetectorRef;
|
|
@@ -92,6 +90,7 @@ export declare class KbqAutocompleteTrigger implements ControlValueAccessor, OnD
|
|
|
92
90
|
/** Stream of keyboard events that can close the panel. */
|
|
93
91
|
private readonly closeKeyEventStream;
|
|
94
92
|
constructor(elementRef: ElementRef<HTMLInputElement>, viewContainerRef: ViewContainerRef, changeDetectorRef: ChangeDetectorRef, overlay: Overlay, zone: NgZone, scrollStrategy: any, dir: Directionality, formField: KbqFormField, document: any, viewportRuler?: ViewportRuler | undefined);
|
|
93
|
+
ngAfterViewInit(): void;
|
|
95
94
|
ngOnDestroy(): void;
|
|
96
95
|
/** `View -> model callback called when value changes` */
|
|
97
96
|
onChange: (value: any) => void;
|
|
@@ -118,6 +117,7 @@ export declare class KbqAutocompleteTrigger implements ControlValueAccessor, OnD
|
|
|
118
117
|
handleInput(event: KeyboardEvent): void;
|
|
119
118
|
handleFocus(): void;
|
|
120
119
|
handleClick($event: MouseEvent): void;
|
|
120
|
+
scrollActiveOptionIntoView(): void;
|
|
121
121
|
/** Stream of clicks outside of the autocomplete panel. */
|
|
122
122
|
private getOutsideClickStream;
|
|
123
123
|
/**
|
|
@@ -125,16 +125,6 @@ export declare class KbqAutocompleteTrigger implements ControlValueAccessor, OnD
|
|
|
125
125
|
* arrow function in order to preserve the context.
|
|
126
126
|
*/
|
|
127
127
|
private windowBlurHandler;
|
|
128
|
-
/**
|
|
129
|
-
* Given that we are not actually focusing active options, we must manually adjust scroll
|
|
130
|
-
* to reveal options below the fold. First, we find the offset of the option from the top
|
|
131
|
-
* of the panel. If that offset is below the fold, the new scrollTop will be the offset -
|
|
132
|
-
* the panel height + the option height, so the active option will be just visible at the
|
|
133
|
-
* bottom of the panel. If that offset is above the top of the visible panel, the new scrollTop
|
|
134
|
-
* will become the offset. If that offset is visible within the panel already, the scrollTop is
|
|
135
|
-
* not adjusted.
|
|
136
|
-
*/
|
|
137
|
-
private scrollToOption;
|
|
138
128
|
/**
|
|
139
129
|
* This method listens to a stream of panel closing actions and resets the
|
|
140
130
|
* stream every time the option list changes.
|
|
@@ -163,5 +153,5 @@ export declare class KbqAutocompleteTrigger implements ControlValueAccessor, OnD
|
|
|
163
153
|
private resetActiveItem;
|
|
164
154
|
private canOpen;
|
|
165
155
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAutocompleteTrigger, [null, null, null, null, null, null, { optional: true; }, { optional: true; host: true; }, { optional: true; }, null]>;
|
|
166
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqAutocompleteTrigger, "input[
|
|
156
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqAutocompleteTrigger, "input[kbqAutocomplete], textarea[kbqAutocomplete]", ["kbqAutocompleteTrigger"], { "autocomplete": { "alias": "kbqAutocomplete"; "required": false; }; "connectedTo": { "alias": "kbqAutocompleteConnectedTo"; "required": false; }; "autocompleteAttribute": { "alias": "autocomplete"; "required": false; }; "autocompleteDisabled": { "alias": "kbqAutocompleteDisabled"; "required": false; }; }, {}, never, never, false, never>;
|
|
167
157
|
}
|
|
@@ -69,5 +69,5 @@ export declare class KbqAutocomplete implements AfterContentInit {
|
|
|
69
69
|
emitSelectEvent(option: KbqOption): void;
|
|
70
70
|
onKeydown(event: KeyboardEvent): any;
|
|
71
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqAutocomplete, never>;
|
|
72
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqAutocomplete, "kbq-autocomplete", ["
|
|
72
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqAutocomplete, "kbq-autocomplete", ["kbqAutocomplete"], { "displayWith": { "alias": "displayWith"; "required": false; }; "panelWidth": { "alias": "panelWidth"; "required": false; }; "classList": { "alias": "class"; "required": false; }; "autoActiveFirstOption": { "alias": "autoActiveFirstOption"; "required": false; }; "openOnFocus": { "alias": "openOnFocus"; "required": false; }; }, { "optionSelected": "optionSelected"; "opened": "opened"; "closed": "closed"; }, ["options", "optionGroups"], ["*"], false, never>;
|
|
73
73
|
}
|
|
@@ -6,9 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
$tokens: meta.module-variables(tokens) !default;
|
|
8
8
|
|
|
9
|
-
.kbq-autocomplete-trigger {
|
|
10
|
-
text-overflow: ellipsis;
|
|
11
|
-
}
|
|
12
9
|
|
|
13
10
|
.kbq-autocomplete-panel {
|
|
14
11
|
visibility: hidden;
|
|
@@ -26,11 +23,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
26
23
|
|
|
27
24
|
max-height: var(--kbq-autocomplete-size-panel-max-height, map.get($tokens, autocomplete-size-panel-max-height));
|
|
28
25
|
|
|
29
|
-
border: {
|
|
30
|
-
width: 1px;
|
|
31
|
-
style: solid;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
26
|
border-bottom-left-radius: var(
|
|
35
27
|
--kbq-autocomplete-size-panel-border-radius, map.get($tokens, autocomplete-size-panel-border-radius)
|
|
36
28
|
);
|
package/badge/README.md
ADDED
|
File without changes
|
|
@@ -1,39 +1,40 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '
|
|
5
|
-
@use '../typography/typography-utils' as *;
|
|
4
|
+
@use '../core/styles/typography/typography-utils' as *;
|
|
6
5
|
|
|
7
6
|
|
|
8
|
-
@mixin kbq-badge-
|
|
7
|
+
@mixin kbq-badge-style($badge) {
|
|
9
8
|
color: map.get($badge, color);
|
|
10
9
|
background: map.get($badge, background);
|
|
11
|
-
border: transparent;
|
|
12
10
|
|
|
13
11
|
& .kbq-badge-caption {
|
|
14
12
|
color: map.get($badge, caption);
|
|
15
13
|
}
|
|
14
|
+
|
|
15
|
+
& .kbq-icon {
|
|
16
|
+
color: map.get($badge, icon) !important;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@mixin kbq-badge-filled-color($badge) {
|
|
21
|
+
@include kbq-badge-style($badge);
|
|
22
|
+
|
|
23
|
+
border: transparent;
|
|
16
24
|
}
|
|
17
25
|
|
|
18
26
|
@mixin kbq-badge-outline-color($badge) {
|
|
19
|
-
|
|
20
|
-
border-color: map.get($badge, border);
|
|
21
|
-
background: map.get($badge, background);
|
|
27
|
+
@include kbq-badge-style($badge);
|
|
22
28
|
|
|
23
|
-
|
|
24
|
-
color: map.get($badge, caption);
|
|
25
|
-
}
|
|
29
|
+
border-color: map.get($badge, border);
|
|
26
30
|
}
|
|
27
31
|
|
|
28
32
|
@mixin kbq-badge-theme($theme) {
|
|
29
|
-
$foreground: map.get($theme, foreground);
|
|
30
33
|
$badge: map.get(map.get($theme, components), badge);
|
|
31
34
|
|
|
32
35
|
$filled: map.get($badge, filled);
|
|
33
36
|
$outline: map.get($badge, outline);
|
|
34
37
|
|
|
35
|
-
@include badge.kbq-badge(map.get($theme, tokens));
|
|
36
|
-
|
|
37
38
|
.kbq-badge-filled {
|
|
38
39
|
$fade-on: map.get($filled, fade-on);
|
|
39
40
|
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { AfterContentInit, ChangeDetectorRef, ElementRef, QueryList, Renderer2 } from '@angular/core';
|
|
2
|
+
import { KbqIcon, KbqIconItem } from '@koobiq/components/icon';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare enum KbqBadgeColors {
|
|
5
|
+
FadeContrast = "fade-contrast",
|
|
6
|
+
FadeTheme = "fade-theme",
|
|
7
|
+
FadeSuccess = "fade-success",
|
|
8
|
+
FadeWarning = "fade-warning",
|
|
9
|
+
FadeError = "fade-error",
|
|
10
|
+
Success = "success",
|
|
11
|
+
Warning = "warning",
|
|
12
|
+
Error = "error"
|
|
13
|
+
}
|
|
14
|
+
export declare class KbqBadgeCaption {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqBadgeCaption, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqBadgeCaption, "[kbq-badge-caption]", never, {}, {}, never, never, false, never>;
|
|
17
|
+
}
|
|
18
|
+
export declare const getNodesWithoutComments: (nodes: NodeList) => Node[];
|
|
19
|
+
export declare const leftIconClassName = "kbq-icon_left";
|
|
20
|
+
export declare const rightIconClassName = "kbq-icon_right";
|
|
21
|
+
export declare const badgeLeftIconClassName = "kbq-badge-icon_left";
|
|
22
|
+
export declare const badgeRightIconClassName = "kbq-badge-icon_right";
|
|
23
|
+
export declare class KbqBadgeCssStyler implements AfterContentInit {
|
|
24
|
+
private renderer;
|
|
25
|
+
private cdr;
|
|
26
|
+
icons: QueryList<KbqIcon>;
|
|
27
|
+
nativeElement: HTMLElement;
|
|
28
|
+
isIconButton: boolean;
|
|
29
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, cdr: ChangeDetectorRef);
|
|
30
|
+
ngAfterContentInit(): void;
|
|
31
|
+
updateClassModifierForIcons(): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqBadgeCssStyler, [null, null, { skipSelf: true; }]>;
|
|
33
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqBadgeCssStyler, "kbq-badge", never, {}, {}, ["icons"], never, false, never>;
|
|
34
|
+
}
|
|
35
|
+
export declare class KbqBadge {
|
|
36
|
+
iconItem: KbqIconItem;
|
|
37
|
+
compact: boolean;
|
|
38
|
+
outline: boolean;
|
|
39
|
+
get badgeColor(): string;
|
|
40
|
+
set badgeColor(value: string | KbqBadgeColors);
|
|
41
|
+
private _badgeColor;
|
|
42
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqBadge, never>;
|
|
43
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqBadge, "kbq-badge", never, { "compact": { "alias": "compact"; "required": false; }; "outline": { "alias": "outline"; "required": false; }; "badgeColor": { "alias": "badgeColor"; "required": false; }; }, {}, ["iconItem"], ["*"], false, never>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@use '../core/styles/tokens';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
.kbq-badge {
|
|
11
|
+
display: inline-flex;
|
|
12
|
+
flex-direction: row;
|
|
13
|
+
justify-content: flex-start;
|
|
14
|
+
align-items: center;
|
|
15
|
+
|
|
16
|
+
text-align: center;
|
|
17
|
+
white-space: nowrap;
|
|
18
|
+
|
|
19
|
+
border-style: solid;
|
|
20
|
+
|
|
21
|
+
box-sizing: border-box;
|
|
22
|
+
|
|
23
|
+
padding:
|
|
24
|
+
var(--kbq-badge-size-normal-vertical-padding, map.get($tokens, badge-size-normal-vertical-padding))
|
|
25
|
+
var(--kbq-badge-size-normal-horizontal-padding, map.get($tokens, badge-size-normal-horizontal-padding));
|
|
26
|
+
|
|
27
|
+
border: {
|
|
28
|
+
width: var(--kbq-badge-size-normal-border-width, map.get($tokens, badge-size-normal-border-width));
|
|
29
|
+
radius: var(--kbq-badge-size-normal-border-radius, map.get($tokens, badge-size-normal-border-radius));
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
& .kbq-badge-caption {
|
|
33
|
+
padding-left:
|
|
34
|
+
var(--kbq-badge-size-normal-content-padding, map.get($tokens, badge-size-normal-content-padding));
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
& .kbq-icon_left {
|
|
38
|
+
margin-right: var(
|
|
39
|
+
--kbq-badge-size-normal-icon-left-margin-right,
|
|
40
|
+
map.get($tokens, badge-size-normal-icon-left-margin-right)
|
|
41
|
+
);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
& .kbq-icon_right {
|
|
45
|
+
margin-left: var(
|
|
46
|
+
--kbq-badge-size-normal-icon-right-margin-left,
|
|
47
|
+
map.get($tokens, badge-size-normal-icon-right-margin-left)
|
|
48
|
+
);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
&.kbq-badge_compact {
|
|
52
|
+
padding:
|
|
53
|
+
var(--kbq-badge-size-compact-vertical-padding, map.get($tokens, badge-size-compact-vertical-padding))
|
|
54
|
+
var(
|
|
55
|
+
--kbq-badge-size-compact-horizontal-padding,
|
|
56
|
+
map.get($tokens, badge-size-compact-horizontal-padding)
|
|
57
|
+
);
|
|
58
|
+
|
|
59
|
+
border: {
|
|
60
|
+
width: var(--kbq-badge-size-compact-border-width, map.get($tokens, badge-size-compact-border-width));
|
|
61
|
+
radius: var(--kbq-badge-size-compact-border-radius, map.get($tokens, badge-size-compact-border-radius));
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
& .kbq-badge-caption {
|
|
65
|
+
padding-left:
|
|
66
|
+
var(--kbq-badge-size-compact-content-padding, map.get($tokens, badge-size-compact-content-padding));
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
& .kbq-icon_left {
|
|
70
|
+
margin-right: var(
|
|
71
|
+
--kbq-badge-size-compact-icon-left-margin-right,
|
|
72
|
+
map.get($tokens, badge-size-compact-icon-left-margin-right)
|
|
73
|
+
);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
& .kbq-icon_right {
|
|
77
|
+
margin-left: var(
|
|
78
|
+
--kbq-badge-size-compact-icon-right-margin-left,
|
|
79
|
+
map.get($tokens, badge-size-compact-icon-right-margin-left)
|
|
80
|
+
);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./badge.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@angular/cdk/a11y";
|
|
5
|
+
import * as i4 from "@angular/cdk/platform";
|
|
6
|
+
export declare class KbqBadgeModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqBadgeModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqBadgeModule, [typeof i1.KbqBadge, typeof i1.KbqBadgeCaption, typeof i1.KbqBadgeCssStyler], [typeof i2.CommonModule, typeof i3.A11yModule, typeof i4.PlatformModule], [typeof i1.KbqBadge, typeof i1.KbqBadgeCaption, typeof i1.KbqBadgeCssStyler]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<KbqBadgeModule>;
|
|
10
|
+
}
|
package/badge/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './public-api';
|
package/button/_button-base.scss
CHANGED
|
@@ -25,18 +25,17 @@
|
|
|
25
25
|
|
|
26
26
|
@include _icon(map.get($params, left-icon), map.get($params, right-icon));
|
|
27
27
|
|
|
28
|
-
&:hover:not(
|
|
29
|
-
&.kbq-hover:not(
|
|
28
|
+
&:hover:not(.kbq-disabled),
|
|
29
|
+
&.kbq-hover:not(.kbq-disabled) {
|
|
30
30
|
background: map.get($params, states_hover_background);
|
|
31
31
|
}
|
|
32
32
|
|
|
33
|
-
&:active:not(
|
|
34
|
-
&.kbq-active:not(
|
|
33
|
+
&:active:not(.kbq-disabled),
|
|
34
|
+
&.kbq-active:not(.kbq-disabled) {
|
|
35
35
|
background: map.get($params, states_active_background);
|
|
36
36
|
}
|
|
37
37
|
|
|
38
|
-
&.kbq-disabled
|
|
39
|
-
&[disabled] {
|
|
38
|
+
&.kbq-disabled {
|
|
40
39
|
color: map.get($params, states_disabled_foreground);
|
|
41
40
|
background: map.get($params, states_disabled_background);
|
|
42
41
|
|
|
@@ -44,25 +43,26 @@
|
|
|
44
43
|
}
|
|
45
44
|
}
|
|
46
45
|
|
|
47
|
-
@mixin kbq-outline-button($params) {
|
|
46
|
+
@mixin kbq-outline-button($params, $include-icons: true) {
|
|
48
47
|
border-color: map.get($params, border);
|
|
49
48
|
color: map.get($params, foreground);
|
|
50
49
|
background: map.get($params, background);
|
|
51
50
|
|
|
52
|
-
@
|
|
51
|
+
@if $include-icons {
|
|
52
|
+
@include _icon(map.get($params, left-icon), map.get($params, right-icon));
|
|
53
|
+
}
|
|
53
54
|
|
|
54
|
-
&:hover:not(
|
|
55
|
-
&.kbq-hover:not(
|
|
55
|
+
&:hover:not(.kbq-disabled),
|
|
56
|
+
&.kbq-hover:not(.kbq-disabled) {
|
|
56
57
|
background: map.get($params, states_hover_background);
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
&:active:not(
|
|
60
|
-
&.kbq-active:not(
|
|
60
|
+
&:active:not(.kbq-disabled),
|
|
61
|
+
&.kbq-active:not(.kbq-disabled) {
|
|
61
62
|
background: map.get($params, states_active_background);
|
|
62
63
|
}
|
|
63
64
|
|
|
64
|
-
&.kbq-disabled
|
|
65
|
-
&[disabled] {
|
|
65
|
+
&.kbq-disabled {
|
|
66
66
|
border-color: map.get($params, states_disabled_border);
|
|
67
67
|
color: map.get($params, states_disabled_foreground);
|
|
68
68
|
|
|
@@ -77,18 +77,17 @@
|
|
|
77
77
|
|
|
78
78
|
@include _icon(map.get($params, left-icon), map.get($params, right-icon));
|
|
79
79
|
|
|
80
|
-
&:hover:not(
|
|
81
|
-
&.kbq-hover:not(
|
|
80
|
+
&:hover:not(.kbq-disabled),
|
|
81
|
+
&.kbq-hover:not(.kbq-disabled) {
|
|
82
82
|
background: map.get($params, states_hover_background);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
-
&:active:not(
|
|
86
|
-
&.kbq-active:not(
|
|
85
|
+
&:active:not(.kbq-disabled),
|
|
86
|
+
&.kbq-active:not(.kbq-disabled) {
|
|
87
87
|
background: map.get($params, states_active_background);
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
-
&.kbq-disabled
|
|
91
|
-
&[disabled] {
|
|
90
|
+
&.kbq-disabled {
|
|
92
91
|
border-color: map.get($params, states_disabled_border);
|
|
93
92
|
color: map.get($params, states_disabled_foreground);
|
|
94
93
|
|
|
@@ -130,13 +129,6 @@
|
|
|
130
129
|
|
|
131
130
|
@include kbq-outline-button($outline-theme-fade-on);
|
|
132
131
|
}
|
|
133
|
-
|
|
134
|
-
&.kbq-contrast-fade {
|
|
135
|
-
$outline-contrast-fade-on: map.get(map.get($button, outline), contrast-fade-on);
|
|
136
|
-
|
|
137
|
-
@include kbq-outline-button($outline-contrast-fade-on);
|
|
138
|
-
|
|
139
|
-
}
|
|
140
132
|
}
|
|
141
133
|
|
|
142
134
|
&.kbq-button_transparent {
|
|
@@ -161,6 +153,22 @@
|
|
|
161
153
|
}
|
|
162
154
|
}
|
|
163
155
|
}
|
|
156
|
+
|
|
157
|
+
.kbq-button_outline {
|
|
158
|
+
$outline-contrast-fade-on: map.get(map.get($button, outline), contrast-fade-on);
|
|
159
|
+
|
|
160
|
+
&.kbq-button {
|
|
161
|
+
&.kbq-contrast-fade {
|
|
162
|
+
@include kbq-outline-button($outline-contrast-fade-on);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
&.kbq-button-icon {
|
|
167
|
+
&.kbq-contrast-fade {
|
|
168
|
+
@include kbq-outline-button($outline-contrast-fade-on, $include-icons: false);
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
}
|
|
164
172
|
}
|
|
165
173
|
|
|
166
174
|
@mixin kbq-button-typography($config) {
|
package/button/button.scss
CHANGED
|
@@ -11,13 +11,16 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
11
11
|
.kbq-button {
|
|
12
12
|
@extend %kbq-button-base;
|
|
13
13
|
|
|
14
|
+
// base padding + compensation (4px) - border-width (2px)
|
|
14
15
|
padding-left: calc(
|
|
15
16
|
var(--kbq-button-size-horizontal-padding, map.get($tokens, button-size-horizontal-padding)) +
|
|
16
|
-
4px
|
|
17
|
+
4px -
|
|
18
|
+
var(--kbq-button-size-border-width, map.get($tokens, button-size-border-width))
|
|
17
19
|
);
|
|
18
20
|
padding-right: calc(
|
|
19
21
|
var(--kbq-button-size-horizontal-padding, map.get($tokens, button-size-horizontal-padding)) +
|
|
20
|
-
4px
|
|
22
|
+
4px -
|
|
23
|
+
var(--kbq-button-size-border-width, map.get($tokens, button-size-border-width))
|
|
21
24
|
);
|
|
22
25
|
|
|
23
26
|
&.kbq-button-icon_left {
|
|
@@ -9,10 +9,9 @@
|
|
|
9
9
|
$tokens: meta.module-variables(tokens) !default;
|
|
10
10
|
|
|
11
11
|
@mixin kbq-button-toggle-color($state) {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
12
|
+
background: map.get($state, background);
|
|
13
|
+
|
|
14
|
+
color: map.get($state, text);
|
|
16
15
|
|
|
17
16
|
& .kbq-icon {
|
|
18
17
|
color: map.get($state, icon);
|
|
@@ -20,73 +19,55 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
20
19
|
}
|
|
21
20
|
|
|
22
21
|
@mixin kbq-button-toggle-theme($theme) {
|
|
23
|
-
$button-toggle
|
|
24
|
-
$button-toggle: map.get(map.get(map.get($theme, components), button-toggle), button-toggle);
|
|
25
|
-
$states: map.get($button-toggle, states);
|
|
22
|
+
$button-toggle: map.get(map.get($theme, components), button-toggle);
|
|
26
23
|
|
|
27
24
|
.kbq-button-toggle-group {
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
$container: map.get($button-toggle, container);
|
|
26
|
+
|
|
27
|
+
background: map.get($container, background);
|
|
30
28
|
|
|
31
29
|
.kbq-button-toggle {
|
|
30
|
+
$button: map.get($button-toggle, item);
|
|
31
|
+
|
|
32
32
|
& > .kbq-button,
|
|
33
33
|
& > .kbq-icon-button {
|
|
34
|
-
color
|
|
35
|
-
border-color: map.get($button-toggle-group, background);
|
|
36
|
-
background: inherit;
|
|
34
|
+
@include kbq-button-toggle-color(map.get($button, default));
|
|
37
35
|
|
|
38
|
-
|
|
39
|
-
color
|
|
36
|
+
&:hover:not(.kbq-disabled) {
|
|
37
|
+
@include kbq-button-toggle-color(map.get($button, hover));
|
|
40
38
|
}
|
|
41
39
|
|
|
42
|
-
.kbq-
|
|
43
|
-
|
|
40
|
+
&:active:not(.kbq-disabled) {
|
|
41
|
+
@include kbq-button-toggle-color(map.get($button, active));
|
|
44
42
|
}
|
|
45
43
|
|
|
46
|
-
|
|
47
|
-
@include kbq-button-toggle-color(map.get($
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
&:active:not([disabled], .kbq-active) {
|
|
51
|
-
@include kbq-button-toggle-color(map.get($states, active));
|
|
52
|
-
}
|
|
44
|
+
&.kbq-selected:not(.kbq-disabled) {
|
|
45
|
+
@include kbq-button-toggle-color(map.get($button, selected));
|
|
53
46
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
background: map.get($state, background);
|
|
58
|
-
border-color: map.get($state, background);
|
|
47
|
+
&:hover {
|
|
48
|
+
@include kbq-button-toggle-color(map.get($button, selected-hover));
|
|
49
|
+
}
|
|
59
50
|
|
|
60
|
-
|
|
61
|
-
color
|
|
51
|
+
&:active {
|
|
52
|
+
@include kbq-button-toggle-color(map.get($button, selected-active));
|
|
62
53
|
}
|
|
63
54
|
}
|
|
64
55
|
|
|
65
|
-
&.kbq-disabled
|
|
66
|
-
|
|
67
|
-
opacity: map.get(map.get($states, disabled), opacity);
|
|
56
|
+
&.kbq-disabled {
|
|
57
|
+
@include kbq-button-toggle-color(map.get($button, disabled));
|
|
68
58
|
}
|
|
69
59
|
|
|
70
60
|
&.cdk-keyboard-focused {
|
|
71
|
-
|
|
61
|
+
border-color: map.get($button, focused);
|
|
72
62
|
}
|
|
73
63
|
}
|
|
74
|
-
|
|
75
|
-
&.cdk-keyboard-focused {
|
|
76
|
-
box-shadow: 0 0 0 2px map-get(map-get($theme, states), focused-color);
|
|
77
|
-
}
|
|
78
64
|
}
|
|
79
65
|
}
|
|
80
66
|
}
|
|
81
67
|
|
|
82
68
|
@mixin kbq-button-toggle-typography($config) {
|
|
83
|
-
.kbq-button-toggle {
|
|
84
|
-
@include kbq-typography-level-to-styles($config, map.get($tokens, button-toggle-font-
|
|
85
|
-
|
|
86
|
-
> .kbq-button,
|
|
87
|
-
> .kbq-icon-button {
|
|
88
|
-
@include kbq-typography-level-to-styles($config, map.get($tokens, button-toggle-font-default));
|
|
89
|
-
}
|
|
69
|
+
.kbq-button-toggle .kbq-button-toggle-wrapper {
|
|
70
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, button-toggle-font-item));
|
|
90
71
|
}
|
|
91
72
|
}
|
|
92
73
|
|
|
@@ -100,7 +100,7 @@ export declare class KbqButtonToggleGroup implements ControlValueAccessor, OnIni
|
|
|
100
100
|
/** Selects a value if there's a toggle that corresponds to it. */
|
|
101
101
|
private selectValue;
|
|
102
102
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqButtonToggleGroup, never>;
|
|
103
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqButtonToggleGroup, "kbq-button-toggle-group", ["
|
|
103
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqButtonToggleGroup, "kbq-button-toggle-group", ["kbqButtonToggleGroup"], { "vertical": { "alias": "vertical"; "required": false; }; "value": { "alias": "value"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "valueChange": "valueChange"; "change": "change"; }, ["buttonToggles"], never, false, never>;
|
|
104
104
|
}
|
|
105
105
|
/** Single button inside of a toggle group. */
|
|
106
106
|
export declare class KbqButtonToggle implements OnInit, AfterContentInit, OnDestroy {
|
|
@@ -141,5 +141,5 @@ export declare class KbqButtonToggle implements OnInit, AfterContentInit, OnDest
|
|
|
141
141
|
*/
|
|
142
142
|
markForCheck(): void;
|
|
143
143
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqButtonToggle, [{ optional: true; }, null, null, null]>;
|
|
144
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqButtonToggle, "kbq-button-toggle", ["
|
|
144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqButtonToggle, "kbq-button-toggle", ["kbqButtonToggle"], { "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, ["icons"], ["*"], false, never>;
|
|
145
145
|
}
|