@koobiq/components 17.0.0-beta.2 → 17.0.0-rc.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/README.md +1 -2
- package/alert/_alert-theme.scss +48 -24
- package/alert/alert.component.d.ts +23 -3
- package/alert/alert.component.scss +91 -59
- package/autocomplete/_autocomplete-theme.scss +3 -3
- package/autocomplete/autocomplete.scss +8 -18
- package/badge/_badge-theme.scss +30 -45
- package/badge/badge.component.scss +18 -39
- package/button/_button-base.scss +7 -14
- package/button/_button-theme.scss +30 -86
- package/button/button.component.d.ts +3 -2
- package/button/button.scss +7 -17
- package/button-toggle/_button-toggle-theme.scss +19 -20
- package/button-toggle/button-toggle.scss +17 -44
- package/card/_card-theme.scss +18 -17
- package/card/card.component.scss +3 -6
- package/checkbox/_checkbox-theme.scss +50 -50
- package/checkbox/checkbox.scss +31 -35
- package/code-block/README.md +18 -14
- package/code-block/_code-block-theme.scss +53 -23
- package/code-block/actionbar.component.scss +11 -25
- package/code-block/code-block.component.d.ts +12 -4
- package/code-block/code-block.scss +62 -77
- package/core/form-field/form-field-ref.d.ts +2 -0
- package/core/forms/_forms-theme.scss +4 -8
- package/core/forms/_forms.scss +13 -43
- package/core/locales/formatters.d.ts +96 -0
- package/core/locales/locale-service.d.ts +97 -0
- package/core/option/_optgroup-theme.scss +4 -6
- package/core/option/_option-action-theme.scss +8 -11
- package/core/option/_option-theme.scss +15 -20
- package/core/option/optgroup.scss +0 -1
- package/core/option/option.scss +0 -1
- package/core/pop-up/_pop-up.scss +0 -1
- package/core/pop-up/pop-up-trigger.d.ts +3 -1
- package/core/select/common.d.ts +35 -0
- package/core/select/index.d.ts +1 -0
- package/core/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +15 -19
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -9
- package/core/services/theme.service.d.ts +3 -2
- package/core/styles/_core.scss +0 -1
- package/core/styles/_koobiq-theme.scss +5 -3
- package/core/styles/common/_animation.scss +9 -8
- package/core/styles/common/_button.scss +0 -2
- package/core/styles/common/_clearfix.scss +1 -1
- package/core/styles/common/_groups.scss +3 -9
- package/core/styles/common/_list.scss +28 -31
- package/core/styles/common/_overlay.scss +4 -3
- package/core/styles/common/_popup.scss +5 -5
- package/core/styles/common/_rtl.scss +4 -4
- package/core/styles/common/_select.scss +48 -42
- package/core/styles/common/_tokens.scss +47 -0
- package/core/styles/functions/_number.scss +14 -19
- package/core/styles/functions/_string.scss +18 -19
- package/core/styles/functions/_timing.scss +24 -24
- package/core/styles/theming/_components-theming.scss +1380 -1384
- package/core/styles/theming/_scrollbar-theme.scss +8 -5
- package/core/styles/theming/_theming.scss +26 -29
- package/core/styles/typography/_typography-utils.scss +1 -2
- package/core/styles/typography/_typography.scss +138 -85
- package/core/styles/visual/_body.scss +0 -2
- package/core/styles/visual/_layout.scss +44 -38
- package/core/utils/data-size/config.d.ts +20 -2
- package/core/utils/data-size/data-size.pipe.d.ts +10 -9
- package/core/utils/data-size/size.d.ts +3 -4
- package/datepicker/_datepicker-theme.scss +38 -40
- package/datepicker/calendar-body.scss +3 -11
- package/datepicker/calendar-header.scss +4 -10
- package/datepicker/calendar.scss +5 -17
- package/datepicker/datepicker-content.scss +5 -15
- package/datepicker/datepicker-input.scss +0 -5
- package/datepicker/datepicker-toggle.scss +3 -3
- package/divider/_divider-theme.scss +2 -1
- package/divider/divider.scss +9 -26
- package/dl/_dl-theme.scss +5 -8
- package/dl/dl.scss +5 -20
- package/dropdown/_dropdown-theme.scss +27 -22
- package/dropdown/dropdown-item.scss +5 -12
- package/dropdown/dropdown-trigger.directive.d.ts +2 -2
- package/dropdown/dropdown.scss +6 -15
- package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
- package/empty-state/README.md +0 -0
- package/empty-state/_empty-state-theme.scss +56 -0
- package/empty-state/empty-state.component.d.ts +31 -0
- package/empty-state/empty-state.module.d.ts +10 -0
- package/empty-state/empty-state.scss +81 -0
- package/empty-state/index.d.ts +1 -0
- package/empty-state/public-api.d.ts +2 -0
- package/esm2022/alert/alert.component.mjs +52 -5
- package/esm2022/badge/badge.component.mjs +2 -2
- package/esm2022/button/button.component.mjs +13 -6
- package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +58 -14
- package/esm2022/core/animation/select-animations.mjs +4 -4
- package/esm2022/core/form-field/form-field-ref.mjs +1 -1
- package/esm2022/core/locales/formatters.mjs +97 -1
- package/esm2022/core/locales/locale-service.mjs +5 -2
- package/esm2022/core/option/option.mjs +2 -2
- package/esm2022/core/pop-up/pop-up-trigger.mjs +18 -11
- package/esm2022/core/select/common.mjs +120 -0
- package/esm2022/core/select/index.mjs +2 -1
- package/esm2022/core/services/theme.service.mjs +4 -1
- package/esm2022/core/utils/data-size/config.mjs +5 -17
- package/esm2022/core/utils/data-size/data-size.pipe.mjs +36 -22
- package/esm2022/core/utils/data-size/size.mjs +10 -14
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/datepicker/datepicker-animations.mjs +2 -2
- package/esm2022/dropdown/dropdown-animations.mjs +4 -4
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +4 -4
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
- package/esm2022/empty-state/empty-state.component.mjs +104 -0
- package/esm2022/empty-state/empty-state.module.mjs +50 -0
- package/esm2022/empty-state/index.mjs +2 -0
- package/esm2022/empty-state/koobiq-components-empty-state.mjs +5 -0
- package/esm2022/empty-state/public-api.mjs +3 -0
- package/esm2022/file-upload/file-upload.mjs +15 -1
- package/esm2022/file-upload/file-upload.module.mjs +15 -5
- package/esm2022/file-upload/multiple-file-upload.component.mjs +98 -49
- package/esm2022/file-upload/single-file-upload.component.mjs +110 -54
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/form-field/hint.mjs +2 -2
- package/esm2022/form-field/password-hint.mjs +2 -2
- package/esm2022/form-field/password-toggle.mjs +11 -9
- package/esm2022/icon/icon-item.component.mjs +16 -6
- package/esm2022/input/input-number.mjs +2 -2
- package/esm2022/list/list-selection.component.mjs +2 -2
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +8 -9
- package/esm2022/navbar/navbar-item.component.mjs +11 -11
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +2 -2
- package/esm2022/popover/popover-confirm.component.mjs +3 -3
- package/esm2022/popover/popover.component.mjs +3 -3
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/scrollbar/scrollbar.component.mjs +2 -2
- package/esm2022/select/select-option.directive.mjs +7 -5
- package/esm2022/select/select.component.mjs +71 -125
- package/esm2022/select/select.module.mjs +28 -28
- package/esm2022/splitter/splitter.component.mjs +37 -17
- package/esm2022/table/table.component.mjs +29 -6
- package/esm2022/table/table.module.mjs +14 -6
- package/esm2022/tabs/tab-body.component.mjs +1 -1
- package/esm2022/tabs/tab-group.component.mjs +55 -13
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tags/tag-default-options.mjs +1 -1
- package/esm2022/tags/tag-input.mjs +17 -3
- package/esm2022/tags/tag-list.component.mjs +2 -2
- package/esm2022/tags/tag.component.mjs +4 -4
- package/esm2022/textarea/textarea.component.mjs +12 -10
- package/esm2022/timepicker/timepicker.directive.mjs +11 -3
- package/esm2022/timezone/timezone-option.component.mjs +2 -2
- package/esm2022/timezone/timezone-option.directive.mjs +7 -5
- package/esm2022/timezone/timezone-select.component.mjs +5 -5
- package/esm2022/title/title.directive.mjs +3 -4
- package/esm2022/toast/toast-container.component.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +4 -4
- package/esm2022/toast/toast.service.mjs +18 -13
- package/esm2022/toast/toast.type.mjs +3 -1
- package/esm2022/tooltip/tooltip.component.mjs +28 -14
- package/esm2022/tree/padding.directive.mjs +2 -2
- package/esm2022/tree/tree-base.mjs +2 -2
- package/esm2022/tree/tree-option.component.mjs +2 -2
- package/esm2022/tree/tree-selection.component.mjs +6 -1
- package/esm2022/tree-select/tree-select.component.mjs +29 -44
- package/esm2022/tree-select/tree-select.module.mjs +31 -11
- package/fesm2022/koobiq-components-alert.mjs +52 -5
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +2 -2
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button-toggle.mjs +2 -2
- package/fesm2022/koobiq-components-button-toggle.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +12 -5
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +2 -2
- package/fesm2022/koobiq-components-checkbox.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +57 -14
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +285 -67
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +2 -2
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +8 -8
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +5 -4
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-empty-state.mjs +157 -0
- package/fesm2022/koobiq-components-empty-state.mjs.map +1 -0
- package/fesm2022/koobiq-components-file-upload.mjs +225 -97
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +21 -21
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +14 -4
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +1 -1
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +4 -4
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-modal.mjs +7 -8
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +14 -14
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-popover.mjs +4 -4
- package/fesm2022/koobiq-components-popover.mjs.map +1 -1
- package/fesm2022/koobiq-components-radio.mjs +2 -2
- package/fesm2022/koobiq-components-radio.mjs.map +1 -1
- package/fesm2022/koobiq-components-scrollbar.mjs +2 -2
- package/fesm2022/koobiq-components-scrollbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +102 -155
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +36 -16
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +41 -10
- package/fesm2022/koobiq-components-table.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +57 -15
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +21 -8
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +11 -9
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +10 -2
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +11 -10
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +2 -3
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +25 -17
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +26 -13
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +57 -51
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +9 -4
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +124 -73
- package/file-upload/file-upload.d.ts +1 -1
- package/file-upload/file-upload.module.d.ts +11 -9
- package/file-upload/file-upload.scss +0 -6
- package/file-upload/multiple-file-upload.component.d.ts +38 -10
- package/file-upload/multiple-file-upload.component.scss +50 -120
- package/file-upload/single-file-upload.component.d.ts +40 -13
- package/file-upload/single-file-upload.component.scss +12 -33
- package/form-field/_form-field-theme.scss +46 -36
- package/form-field/_hint-theme.scss +15 -20
- package/form-field/cleaner.scss +3 -9
- package/form-field/form-field.scss +23 -26
- package/form-field/hint.scss +5 -8
- package/form-field/password-toggle.d.ts +3 -2
- package/form-field/password-toggle.scss +3 -10
- package/form-field/stepper.scss +4 -11
- package/icon/_icon-button-theme.scss +47 -36
- package/icon/_icon-item-theme.scss +47 -26
- package/icon/_icon-theme.scss +12 -14
- package/icon/icon-button.scss +5 -20
- package/icon/icon-item.component.d.ts +3 -1
- package/icon/icon-item.scss +10 -8
- package/icon/icon.scss +0 -6
- package/input/_input-theme.scss +6 -4
- package/input/input.scss +11 -10
- package/link/_link-theme.scss +30 -49
- package/list/_list-theme.scss +21 -19
- package/list/list.scss +2 -6
- package/loader-overlay/_loader-overlay-theme.scss +17 -18
- package/loader-overlay/loader-overlay.scss +9 -33
- package/markdown/_markdown-theme.scss +47 -47
- package/markdown/markdown.scss +41 -91
- package/modal/README.md +5 -4
- package/modal/_modal-animation.scss +0 -1
- package/modal/_modal-confirm.scss +2 -7
- package/modal/_modal-theme.scss +11 -13
- package/modal/modal.component.d.ts +1 -1
- package/modal/modal.scss +15 -31
- package/navbar/README.md +21 -20
- package/navbar/_navbar-item_horizontal.scss +28 -29
- package/navbar/_navbar-item_vertical.scss +31 -31
- package/navbar/_navbar-theme.scss +20 -24
- package/navbar/navbar-brand.scss +24 -27
- package/navbar/navbar-divider.scss +4 -8
- package/navbar/navbar-item.component.d.ts +4 -4
- package/navbar/navbar-item.scss +13 -15
- package/navbar/navbar.scss +2 -6
- package/navbar/vertical-navbar.scss +4 -6
- package/package.json +23 -16
- package/popover/README.md +18 -14
- package/popover/_popover-theme.scss +9 -17
- package/popover/popover.scss +15 -29
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +7 -11
- package/progress-bar/progress-bar.scss +6 -19
- package/progress-spinner/_progress-spinner-theme.scss +6 -8
- package/progress-spinner/progress-spinner.scss +8 -18
- package/radio/_radio-theme.scss +36 -37
- package/radio/radio.scss +25 -40
- package/risk-level/_risk-level-theme.scss +25 -31
- package/risk-level/risk-level.component.scss +4 -10
- package/schematics/collection.json +11 -0
- package/schematics/ng-add/index.js +70 -0
- package/schematics/ng-add/schema.json +15 -0
- package/scrollbar/_scrollbar-component-theme.scss +15 -19
- package/scrollbar/scrollbar.component.scss +68 -63
- package/scrollbar/scrollbar.directive.d.ts +1 -0
- package/scrollbar/scrollbar.types.d.ts +1 -0
- package/select/_select-theme.scss +14 -16
- package/select/select-option.directive.d.ts +3 -2
- package/select/select.component.d.ts +12 -33
- package/select/select.module.d.ts +1 -1
- package/select/select.scss +3 -11
- package/sidepanel/_sidepanel-theme.scss +8 -10
- package/sidepanel/sidepanel.scss +20 -37
- package/splitter/_splitter-theme.scss +5 -6
- package/splitter/splitter.component.d.ts +10 -5
- package/splitter/splitter.scss +0 -1
- package/table/_table-theme.scss +16 -15
- package/table/table.component.d.ts +8 -1
- package/table/table.module.d.ts +1 -1
- package/table/table.scss +41 -42
- package/tabs/_tabs-common.scss +13 -15
- package/tabs/_tabs-theme.scss +76 -44
- package/tabs/tab-body.component.d.ts +1 -1
- package/tabs/tab-group.component.d.ts +9 -3
- package/tabs/tab-group.scss +2 -8
- package/tabs/tab-header.scss +0 -10
- package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -9
- package/tags/_tag-theme.scss +22 -27
- package/tags/tag-default-options.d.ts +1 -0
- package/tags/tag-input.d.ts +7 -1
- package/tags/tag-list.scss +15 -12
- package/tags/tag.component.d.ts +1 -1
- package/tags/tag.scss +5 -11
- package/textarea/_textarea-theme.scss +2 -5
- package/textarea/textarea.scss +5 -10
- package/timepicker/timepicker.directive.d.ts +1 -1
- package/timepicker/timepicker.scss +2 -8
- package/timezone/_timezone-option-theme.scss +8 -10
- package/timezone/timezone-option.component.scss +5 -8
- package/timezone/timezone-option.directive.d.ts +3 -2
- package/timezone/timezone-select.component.d.ts +2 -1
- package/timezone/timezone-select.component.scss +2 -4
- package/title/title.directive.d.ts +0 -1
- package/toast/_toast-theme.scss +20 -16
- package/toast/toast-container.component.scss +5 -6
- package/toast/toast.component.scss +28 -29
- package/toast/toast.service.d.ts +8 -4
- package/toast/toast.type.d.ts +2 -0
- package/toggle/_toggle-theme.scss +49 -42
- package/toggle/toggle.scss +9 -22
- package/tooltip/_tooltip-theme.scss +12 -16
- package/tooltip/tooltip.component.d.ts +12 -8
- package/tooltip/tooltip.scss +7 -13
- package/tree/_tree-theme.scss +20 -23
- package/tree/toggle.scss +3 -6
- package/tree/tree-base.d.ts +1 -1
- package/tree/tree-option.scss +17 -14
- package/tree/tree-selection.component.d.ts +1 -0
- package/tree-select/_tree-select-theme.scss +12 -15
- package/tree-select/tree-select.component.d.ts +8 -17
- package/tree-select/tree-select.module.d.ts +1 -2
- package/tree-select/tree-select.scss +1 -6
- package/core/styles/_variables.scss +0 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
@use '../core/styles/tokens';
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
4
5
|
|
|
5
6
|
$tokens: meta.module-variables(tokens) !default;
|
|
6
7
|
|
|
8
|
+
$border-radius: kbq-css-variable(code-block-size-container-border-radius);
|
|
9
|
+
$border-width: kbq-css-variable(code-block-size-container-border-width);
|
|
7
10
|
|
|
8
|
-
/* stylelint-disable no-descending-specificity */
|
|
9
11
|
.kbq-code-block {
|
|
10
12
|
display: block;
|
|
11
13
|
position: relative;
|
|
@@ -18,61 +20,51 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
18
20
|
-moz-hyphens: none;
|
|
19
21
|
-webkit-hyphens: none;
|
|
20
22
|
|
|
21
|
-
border-
|
|
22
|
-
|
|
23
|
-
);
|
|
24
|
-
border-style: solid;
|
|
25
|
-
border-radius: var(
|
|
26
|
-
--kbq-code-block-size-container-border-radius, map.get($tokens, code-block-size-container-border-radius)
|
|
27
|
-
);
|
|
23
|
+
border-radius: $border-radius;
|
|
24
|
+
border-width: 0;
|
|
28
25
|
|
|
29
26
|
.kbq-tab-header {
|
|
30
27
|
// 4 buttons + margin
|
|
31
28
|
$buttons-margin: calc(32 * 4) + 24px;
|
|
32
29
|
|
|
33
|
-
padding:
|
|
34
|
-
|
|
35
|
-
--kbq-code-block-size-header-padding-
|
|
36
|
-
|
|
30
|
+
padding: kbq-css-variable(code-block-size-header-padding-vertical)
|
|
31
|
+
calc(
|
|
32
|
+
var(--kbq-code-block-size-header-padding-right, map.get($tokens, code-block-size-header-padding-right)) +
|
|
33
|
+
$buttons-margin
|
|
37
34
|
)
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
35
|
+
kbq-css-variable(code-block-size-header-padding-vertical)
|
|
36
|
+
kbq-css-variable(code-block-size-header-padding-left);
|
|
37
|
+
|
|
38
|
+
border-width: $border-width $border-width 0 $border-width;
|
|
39
|
+
border-style: solid;
|
|
40
|
+
border-radius: $border-radius $border-radius 0 0;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&:has(.kbq-code-block__show-more) {
|
|
44
|
+
.kbq-code-block__code {
|
|
45
|
+
& > code {
|
|
46
|
+
padding-bottom: kbq-css-variable(size-3xl) !important;
|
|
47
|
+
overflow-x: scroll;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
49
50
|
}
|
|
50
51
|
|
|
51
52
|
.kbq-code-block__code {
|
|
52
53
|
> code {
|
|
53
|
-
padding:
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
--kbq-code-block-size-with-header-content-padding-bottom,
|
|
64
|
-
map.get($tokens, code-block-size-with-header-content-padding-bottom)
|
|
65
|
-
) var(
|
|
66
|
-
--kbq-code-block-size-with-header-content-padding-horizontal,
|
|
67
|
-
map.get($tokens, code-block-size-with-header-content-padding-horizontal)
|
|
68
|
-
);
|
|
54
|
+
padding: kbq-css-variable(code-block-size-with-header-content-padding-top)
|
|
55
|
+
kbq-css-variable(code-block-size-with-header-content-padding-horizontal)
|
|
56
|
+
kbq-css-variable(code-block-size-with-header-content-padding-bottom)
|
|
57
|
+
kbq-css-variable(code-block-size-with-header-content-padding-horizontal);
|
|
58
|
+
|
|
59
|
+
border-radius: $border-radius;
|
|
60
|
+
|
|
61
|
+
&:focus-visible {
|
|
62
|
+
outline: none;
|
|
63
|
+
}
|
|
69
64
|
}
|
|
70
65
|
|
|
71
66
|
.hljs-ln-numbers {
|
|
72
|
-
padding-right:
|
|
73
|
-
--kbq-code-block-size-with-header-content-content-gap-horizontal,
|
|
74
|
-
map.get($tokens, code-block-size-with-header-content-content-gap-horizontal)
|
|
75
|
-
);
|
|
67
|
+
padding-right: kbq-css-variable(code-block-size-with-header-content-content-gap-horizontal);
|
|
76
68
|
}
|
|
77
69
|
}
|
|
78
70
|
|
|
@@ -92,31 +84,32 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
92
84
|
}
|
|
93
85
|
}
|
|
94
86
|
|
|
87
|
+
&:not(.kbq-code-block_no-header) {
|
|
88
|
+
.kbq-tab-body__wrapper {
|
|
89
|
+
border-top-width: 0;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
95
93
|
&.kbq-code-block_no-header {
|
|
96
94
|
.kbq-tab-header {
|
|
97
95
|
display: none;
|
|
98
96
|
}
|
|
99
97
|
|
|
98
|
+
.kbq-tab-body__wrapper {
|
|
99
|
+
border-width: $border-width;
|
|
100
|
+
border-radius: $border-radius;
|
|
101
|
+
}
|
|
102
|
+
|
|
100
103
|
.kbq-code-block__code {
|
|
101
104
|
position: relative;
|
|
102
105
|
|
|
103
106
|
& > code {
|
|
104
|
-
padding:
|
|
105
|
-
|
|
106
|
-
--kbq-code-block-size-no-header-content-padding-vertical,
|
|
107
|
-
map.get($tokens, code-block-size-no-header-content-padding-vertical)
|
|
108
|
-
)
|
|
109
|
-
var(
|
|
110
|
-
--kbq-code-block-size-no-header-content-padding-horizontal,
|
|
111
|
-
map.get($tokens, code-block-size-no-header-content-padding-horizontal)
|
|
112
|
-
);
|
|
107
|
+
padding: kbq-css-variable(code-block-size-no-header-content-padding-vertical)
|
|
108
|
+
kbq-css-variable(code-block-size-no-header-content-padding-horizontal);
|
|
113
109
|
}
|
|
114
110
|
|
|
115
111
|
.hljs-ln-numbers {
|
|
116
|
-
padding-right:
|
|
117
|
-
--kbq-code-block-size-no-header-content-content-gap-horizontal,
|
|
118
|
-
map.get($tokens, code-block-size-no-header-content-content-gap-horizontal)
|
|
119
|
-
);
|
|
112
|
+
padding-right: kbq-css-variable(code-block-size-no-header-content-content-gap-horizontal);
|
|
120
113
|
}
|
|
121
114
|
}
|
|
122
115
|
}
|
|
@@ -134,6 +127,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
134
127
|
.kbq-tab-body__wrapper {
|
|
135
128
|
flex-direction: column;
|
|
136
129
|
position: unset;
|
|
130
|
+
|
|
131
|
+
border-width: $border-width;
|
|
132
|
+
border-style: solid;
|
|
133
|
+
border-radius: 0 0 $border-radius $border-radius;
|
|
137
134
|
}
|
|
138
135
|
|
|
139
136
|
.kbq-tab-body.kbq-tab-body__active {
|
|
@@ -150,7 +147,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
150
147
|
}
|
|
151
148
|
|
|
152
149
|
&.kbq-code-block__code_soft-wrap {
|
|
153
|
-
white-space: pre-wrap
|
|
150
|
+
white-space: pre-wrap;
|
|
154
151
|
}
|
|
155
152
|
|
|
156
153
|
.hljs-ln {
|
|
@@ -176,37 +173,25 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
176
173
|
justify-content: center;
|
|
177
174
|
overflow: hidden;
|
|
178
175
|
|
|
179
|
-
width: 100
|
|
176
|
+
width: calc(100% - $border-width * 2);
|
|
180
177
|
|
|
181
178
|
position: absolute;
|
|
182
|
-
bottom:
|
|
179
|
+
bottom: $border-width;
|
|
180
|
+
border-radius: $border-radius;
|
|
183
181
|
|
|
184
182
|
&.kbq-code-block__show-more_collapsed {
|
|
185
|
-
padding-top:
|
|
186
|
-
--kbq-code-block-size-collapse-collapsed-padding-top,
|
|
187
|
-
map.get($tokens, code-block-size-collapse-collapsed-padding-top)
|
|
188
|
-
);
|
|
183
|
+
padding-top: kbq-css-variable(code-block-size-collapse-collapsed-padding-top);
|
|
189
184
|
|
|
190
|
-
padding-bottom:
|
|
191
|
-
--kbq-code-block-size-collapse-collapsed-padding-bottom,
|
|
192
|
-
map.get($tokens, code-block-size-collapse-collapsed-padding-bottom)
|
|
193
|
-
);
|
|
185
|
+
padding-bottom: kbq-css-variable(code-block-size-collapse-collapsed-padding-bottom);
|
|
194
186
|
}
|
|
195
187
|
|
|
196
188
|
&.kbq-code-block__show-more_expanded {
|
|
197
|
-
padding-top:
|
|
198
|
-
--kbq-code-block-size-collapse-expanded-padding-top,
|
|
199
|
-
map.get($tokens, code-block-size-collapse-expanded-padding-top)
|
|
200
|
-
);
|
|
189
|
+
padding-top: kbq-css-variable(code-block-size-collapse-expanded-padding-top);
|
|
201
190
|
|
|
202
|
-
margin-bottom:
|
|
203
|
-
--kbq-code-block-size-collapse-expanded-padding-bottom,
|
|
204
|
-
map.get($tokens, code-block-size-collapse-expanded-padding-bottom)
|
|
205
|
-
);
|
|
191
|
+
margin-bottom: kbq-css-variable(code-block-size-collapse-expanded-padding-bottom);
|
|
206
192
|
}
|
|
207
193
|
|
|
208
194
|
.bg-wrapper {
|
|
209
|
-
border-radius:
|
|
195
|
+
border-radius: kbq-css-variable(button-size-border-radius);
|
|
210
196
|
}
|
|
211
197
|
}
|
|
212
|
-
/* stylelint-enable no-descending-specificity */
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
export interface KbqFormFieldRef {
|
|
3
3
|
control: any;
|
|
4
|
+
canCleanerClearByEsc: boolean;
|
|
4
5
|
shouldForward(str: string): boolean;
|
|
6
|
+
focusViaKeyboard(): void;
|
|
5
7
|
}
|
|
6
8
|
/**
|
|
7
9
|
* Injection token that can be used to inject an instances of `KbqFormField`. It serves
|
|
@@ -3,29 +3,25 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../styles/typography/typography-utils' as *;
|
|
5
5
|
@use './forms' as *;
|
|
6
|
-
|
|
6
|
+
@use '../styles/common/tokens' as *;
|
|
7
7
|
|
|
8
8
|
@mixin kbq-forms-theme($theme) {
|
|
9
9
|
@include kbq-form-geometry(map.get($theme, tokens));
|
|
10
10
|
|
|
11
|
-
$foreground: map.get($theme, foreground);
|
|
12
|
-
|
|
13
11
|
$forms: map.get(map.get($theme, components), forms);
|
|
14
12
|
|
|
15
13
|
.kbq-form__label {
|
|
16
|
-
color: map.get($forms, label);
|
|
14
|
+
color: kbq-css-variable(forms-label, map.get($forms, label));
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
.kbq-form__legend {
|
|
20
|
-
color: map.get($forms, legend);
|
|
18
|
+
color: kbq-css-variable(forms-legend, map.get($forms, legend));
|
|
21
19
|
}
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
@mixin kbq-forms-typography($config) {
|
|
25
|
-
$tokens: map.get($config, tokens);
|
|
26
|
-
|
|
27
23
|
.kbq-form__label {
|
|
28
|
-
@include kbq-typography-
|
|
24
|
+
@include kbq-typography-css-variables(forms, label);
|
|
29
25
|
}
|
|
30
26
|
|
|
31
27
|
//.kbq-form__legend {
|
package/core/forms/_forms.scss
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
@use '../styles/common/vendor-prefixes';
|
|
5
5
|
@use '../styles/typography/typography' as *;
|
|
6
6
|
@use '../styles/typography/typography-utils' as *;
|
|
7
|
-
|
|
7
|
+
@use '../styles/common/tokens' as *;
|
|
8
8
|
|
|
9
9
|
@mixin kbq-form-geometry($tokens) {
|
|
10
10
|
.kbq-form {
|
|
@@ -18,41 +18,26 @@
|
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
.kbq-form-horizontal {
|
|
21
|
-
$
|
|
22
|
-
|
|
23
|
-
$line-height: kbq-line-height($config, map.get($tokens, forms-font-label));
|
|
21
|
+
$line-height: map.get($tokens, forms-font-label-line-height);
|
|
24
22
|
$form-field-size-height: map.get($tokens, form-field-size-height);
|
|
25
|
-
$label-padding-top: calc(($form-field-size-height - $line-height) / 2);
|
|
26
23
|
|
|
27
24
|
& .kbq-form-row_margin {
|
|
28
|
-
margin-bottom:
|
|
29
|
-
--kbq-forms-size-horizontal-row-margin-bottom,
|
|
30
|
-
#{map.get($tokens, forms-size-horizontal-row-margin-bottom)}
|
|
31
|
-
);
|
|
25
|
+
margin-bottom: kbq-css-variable(forms-size-horizontal-row-margin-bottom);
|
|
32
26
|
}
|
|
33
27
|
|
|
34
28
|
& .kbq-form__label {
|
|
35
|
-
padding-top:
|
|
29
|
+
padding-top: calc(($form-field-size-height - $line-height) / 2);
|
|
36
30
|
|
|
37
31
|
text-align: start;
|
|
38
32
|
}
|
|
39
33
|
|
|
40
34
|
& .kbq-form__control {
|
|
41
|
-
padding-left:
|
|
42
|
-
--kbq-forms-size-horizontal-control-padding-left,
|
|
43
|
-
#{map.get($tokens, forms-size-horizontal-control-padding-left)}
|
|
44
|
-
);
|
|
35
|
+
padding-left: kbq-css-variable(forms-size-horizontal-control-padding-left);
|
|
45
36
|
}
|
|
46
37
|
|
|
47
38
|
& .kbq-form__legend {
|
|
48
|
-
margin-top:
|
|
49
|
-
|
|
50
|
-
#{map.get($tokens, forms-size-horizontal-legend-margin-top)}
|
|
51
|
-
);
|
|
52
|
-
margin-bottom: var(
|
|
53
|
-
--kbq-forms-size-horizontal-legend-margin-bottom,
|
|
54
|
-
#{map.get($tokens, forms-size-horizontal-legend-margin-bottom)}
|
|
55
|
-
);
|
|
39
|
+
margin-top: kbq-css-variable(forms-size-horizontal-legend-margin-top);
|
|
40
|
+
margin-bottom: kbq-css-variable(forms-size-horizontal-legend-margin-bottom);
|
|
56
41
|
}
|
|
57
42
|
}
|
|
58
43
|
|
|
@@ -62,19 +47,12 @@
|
|
|
62
47
|
}
|
|
63
48
|
|
|
64
49
|
& .kbq-form-row_margin {
|
|
65
|
-
margin-bottom:
|
|
66
|
-
--kbq-forms-size-vertical-row-margin-bottom, #{map.get($tokens, forms-size-vertical-row-margin-bottom)}
|
|
67
|
-
);
|
|
50
|
+
margin-bottom: kbq-css-variable(forms-size-vertical-row-margin-bottom);
|
|
68
51
|
}
|
|
69
52
|
|
|
70
53
|
& .kbq-form__label {
|
|
71
|
-
padding-top:
|
|
72
|
-
|
|
73
|
-
);
|
|
74
|
-
padding-bottom: var(
|
|
75
|
-
--kbq-forms-size-vertical-label-padding-bottom,
|
|
76
|
-
#{map.get($tokens, forms-size-vertical-label-padding-bottom)}
|
|
77
|
-
);
|
|
54
|
+
padding-top: kbq-css-variable(forms-size-vertical-label-padding-top);
|
|
55
|
+
padding-bottom: kbq-css-variable(forms-size-vertical-label-padding-bottom);
|
|
78
56
|
|
|
79
57
|
text-align: start;
|
|
80
58
|
}
|
|
@@ -84,13 +62,8 @@
|
|
|
84
62
|
}
|
|
85
63
|
|
|
86
64
|
& .kbq-form__legend {
|
|
87
|
-
margin-top:
|
|
88
|
-
|
|
89
|
-
);
|
|
90
|
-
margin-bottom: var(
|
|
91
|
-
--kbq-forms-size-vertical-legend-margin-bottom,
|
|
92
|
-
#{map.get($tokens, forms-size-vertical-legend-margin-bottom)}
|
|
93
|
-
);
|
|
65
|
+
margin-top: kbq-css-variable(forms-size-vertical-legend-margin-top);
|
|
66
|
+
margin-bottom: kbq-css-variable(forms-size-vertical-legend-margin-bottom);
|
|
94
67
|
}
|
|
95
68
|
}
|
|
96
69
|
|
|
@@ -103,10 +76,7 @@
|
|
|
103
76
|
flex-direction: row;
|
|
104
77
|
|
|
105
78
|
& .kbq-form__row:not(:first-child) {
|
|
106
|
-
padding-left:
|
|
107
|
-
--kbq-forms-size-vertical-control-padding-left,
|
|
108
|
-
#{map.get($tokens, forms-size-vertical-control-padding-left)}
|
|
109
|
-
);
|
|
79
|
+
padding-left: kbq-css-variable(forms-size-vertical-control-padding-left);
|
|
110
80
|
}
|
|
111
81
|
}
|
|
112
82
|
}
|
|
@@ -17,6 +17,22 @@ export declare const enUSFormattersData: {
|
|
|
17
17
|
fractionSeparator: string;
|
|
18
18
|
};
|
|
19
19
|
};
|
|
20
|
+
sizeUnits: {
|
|
21
|
+
defaultUnitSystem: string;
|
|
22
|
+
defaultPrecision: number;
|
|
23
|
+
unitSystems: {
|
|
24
|
+
SI: {
|
|
25
|
+
abbreviations: string[];
|
|
26
|
+
base: number;
|
|
27
|
+
power: number;
|
|
28
|
+
};
|
|
29
|
+
IEC: {
|
|
30
|
+
abbreviations: string[];
|
|
31
|
+
base: number;
|
|
32
|
+
power: number;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
20
36
|
};
|
|
21
37
|
export declare const esLAFormattersData: {
|
|
22
38
|
formatters: {
|
|
@@ -37,6 +53,22 @@ export declare const esLAFormattersData: {
|
|
|
37
53
|
fractionSeparator: string;
|
|
38
54
|
};
|
|
39
55
|
};
|
|
56
|
+
sizeUnits: {
|
|
57
|
+
defaultUnitSystem: string;
|
|
58
|
+
defaultPrecision: number;
|
|
59
|
+
unitSystems: {
|
|
60
|
+
SI: {
|
|
61
|
+
abbreviations: string[];
|
|
62
|
+
base: number;
|
|
63
|
+
power: number;
|
|
64
|
+
};
|
|
65
|
+
IEC: {
|
|
66
|
+
abbreviations: string[];
|
|
67
|
+
base: number;
|
|
68
|
+
power: number;
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
40
72
|
};
|
|
41
73
|
export declare const faIRFormattersData: {
|
|
42
74
|
formatters: {
|
|
@@ -58,6 +90,22 @@ export declare const faIRFormattersData: {
|
|
|
58
90
|
fractionSeparator: string;
|
|
59
91
|
};
|
|
60
92
|
};
|
|
93
|
+
sizeUnits: {
|
|
94
|
+
defaultUnitSystem: string;
|
|
95
|
+
defaultPrecision: number;
|
|
96
|
+
unitSystems: {
|
|
97
|
+
SI: {
|
|
98
|
+
abbreviations: string[];
|
|
99
|
+
base: number;
|
|
100
|
+
power: number;
|
|
101
|
+
};
|
|
102
|
+
IEC: {
|
|
103
|
+
abbreviations: string[];
|
|
104
|
+
base: number;
|
|
105
|
+
power: number;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
};
|
|
61
109
|
};
|
|
62
110
|
export declare const ptBRFormattersData: {
|
|
63
111
|
formatters: {
|
|
@@ -78,6 +126,22 @@ export declare const ptBRFormattersData: {
|
|
|
78
126
|
fractionSeparator: string;
|
|
79
127
|
};
|
|
80
128
|
};
|
|
129
|
+
sizeUnits: {
|
|
130
|
+
defaultUnitSystem: string;
|
|
131
|
+
defaultPrecision: number;
|
|
132
|
+
unitSystems: {
|
|
133
|
+
SI: {
|
|
134
|
+
abbreviations: string[];
|
|
135
|
+
base: number;
|
|
136
|
+
power: number;
|
|
137
|
+
};
|
|
138
|
+
IEC: {
|
|
139
|
+
abbreviations: string[];
|
|
140
|
+
base: number;
|
|
141
|
+
power: number;
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
};
|
|
81
145
|
};
|
|
82
146
|
export declare const ruRUFormattersData: {
|
|
83
147
|
formatters: {
|
|
@@ -99,6 +163,22 @@ export declare const ruRUFormattersData: {
|
|
|
99
163
|
startFormattingFrom: number;
|
|
100
164
|
};
|
|
101
165
|
};
|
|
166
|
+
sizeUnits: {
|
|
167
|
+
defaultUnitSystem: string;
|
|
168
|
+
defaultPrecision: number;
|
|
169
|
+
unitSystems: {
|
|
170
|
+
SI: {
|
|
171
|
+
abbreviations: string[];
|
|
172
|
+
base: number;
|
|
173
|
+
power: number;
|
|
174
|
+
};
|
|
175
|
+
IEC: {
|
|
176
|
+
abbreviations: string[];
|
|
177
|
+
base: number;
|
|
178
|
+
power: number;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
};
|
|
102
182
|
};
|
|
103
183
|
export declare const zhCNFormattersData: {
|
|
104
184
|
formatters: {
|
|
@@ -118,4 +198,20 @@ export declare const zhCNFormattersData: {
|
|
|
118
198
|
fractionSeparator: string;
|
|
119
199
|
};
|
|
120
200
|
};
|
|
201
|
+
sizeUnits: {
|
|
202
|
+
defaultUnitSystem: string;
|
|
203
|
+
defaultPrecision: number;
|
|
204
|
+
unitSystems: {
|
|
205
|
+
SI: {
|
|
206
|
+
abbreviations: string[];
|
|
207
|
+
base: number;
|
|
208
|
+
power: number;
|
|
209
|
+
};
|
|
210
|
+
IEC: {
|
|
211
|
+
abbreviations: string[];
|
|
212
|
+
base: number;
|
|
213
|
+
power: number;
|
|
214
|
+
};
|
|
215
|
+
};
|
|
216
|
+
};
|
|
121
217
|
};
|
|
@@ -27,6 +27,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
27
27
|
fractionSeparator: string;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
+
sizeUnits: {
|
|
31
|
+
defaultUnitSystem: string;
|
|
32
|
+
defaultPrecision: number;
|
|
33
|
+
unitSystems: {
|
|
34
|
+
SI: {
|
|
35
|
+
abbreviations: string[];
|
|
36
|
+
base: number;
|
|
37
|
+
power: number;
|
|
38
|
+
};
|
|
39
|
+
IEC: {
|
|
40
|
+
abbreviations: string[];
|
|
41
|
+
base: number;
|
|
42
|
+
power: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
30
46
|
select: {
|
|
31
47
|
hiddenItemsText: string;
|
|
32
48
|
};
|
|
@@ -76,6 +92,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
76
92
|
fractionSeparator: string;
|
|
77
93
|
};
|
|
78
94
|
};
|
|
95
|
+
sizeUnits: {
|
|
96
|
+
defaultUnitSystem: string;
|
|
97
|
+
defaultPrecision: number;
|
|
98
|
+
unitSystems: {
|
|
99
|
+
SI: {
|
|
100
|
+
abbreviations: string[];
|
|
101
|
+
base: number;
|
|
102
|
+
power: number;
|
|
103
|
+
};
|
|
104
|
+
IEC: {
|
|
105
|
+
abbreviations: string[];
|
|
106
|
+
base: number;
|
|
107
|
+
power: number;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
79
111
|
select: {
|
|
80
112
|
hiddenItemsText: string;
|
|
81
113
|
};
|
|
@@ -125,6 +157,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
125
157
|
fractionSeparator: string;
|
|
126
158
|
};
|
|
127
159
|
};
|
|
160
|
+
sizeUnits: {
|
|
161
|
+
defaultUnitSystem: string;
|
|
162
|
+
defaultPrecision: number;
|
|
163
|
+
unitSystems: {
|
|
164
|
+
SI: {
|
|
165
|
+
abbreviations: string[];
|
|
166
|
+
base: number;
|
|
167
|
+
power: number;
|
|
168
|
+
};
|
|
169
|
+
IEC: {
|
|
170
|
+
abbreviations: string[];
|
|
171
|
+
base: number;
|
|
172
|
+
power: number;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
128
176
|
select: {
|
|
129
177
|
hiddenItemsText: string;
|
|
130
178
|
};
|
|
@@ -174,6 +222,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
174
222
|
fractionSeparator: string;
|
|
175
223
|
};
|
|
176
224
|
};
|
|
225
|
+
sizeUnits: {
|
|
226
|
+
defaultUnitSystem: string;
|
|
227
|
+
defaultPrecision: number;
|
|
228
|
+
unitSystems: {
|
|
229
|
+
SI: {
|
|
230
|
+
abbreviations: string[];
|
|
231
|
+
base: number;
|
|
232
|
+
power: number;
|
|
233
|
+
};
|
|
234
|
+
IEC: {
|
|
235
|
+
abbreviations: string[];
|
|
236
|
+
base: number;
|
|
237
|
+
power: number;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
177
241
|
select: {
|
|
178
242
|
hiddenItemsText: string;
|
|
179
243
|
};
|
|
@@ -224,6 +288,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
224
288
|
startFormattingFrom: number;
|
|
225
289
|
};
|
|
226
290
|
};
|
|
291
|
+
sizeUnits: {
|
|
292
|
+
defaultUnitSystem: string;
|
|
293
|
+
defaultPrecision: number;
|
|
294
|
+
unitSystems: {
|
|
295
|
+
SI: {
|
|
296
|
+
abbreviations: string[];
|
|
297
|
+
base: number;
|
|
298
|
+
power: number;
|
|
299
|
+
};
|
|
300
|
+
IEC: {
|
|
301
|
+
abbreviations: string[];
|
|
302
|
+
base: number;
|
|
303
|
+
power: number;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
227
307
|
select: {
|
|
228
308
|
hiddenItemsText: string;
|
|
229
309
|
};
|
|
@@ -275,6 +355,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
275
355
|
fractionSeparator: string;
|
|
276
356
|
};
|
|
277
357
|
};
|
|
358
|
+
sizeUnits: {
|
|
359
|
+
defaultUnitSystem: string;
|
|
360
|
+
defaultPrecision: number;
|
|
361
|
+
unitSystems: {
|
|
362
|
+
SI: {
|
|
363
|
+
abbreviations: string[];
|
|
364
|
+
base: number;
|
|
365
|
+
power: number;
|
|
366
|
+
};
|
|
367
|
+
IEC: {
|
|
368
|
+
abbreviations: string[];
|
|
369
|
+
base: number;
|
|
370
|
+
power: number;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
278
374
|
select: {
|
|
279
375
|
hiddenItemsText: string;
|
|
280
376
|
};
|
|
@@ -311,6 +407,7 @@ export declare const KBQ_LOCALE_SERVICE: InjectionToken<KbqLocaleService>;
|
|
|
311
407
|
export declare class KbqLocaleService {
|
|
312
408
|
readonly changes: BehaviorSubject<string>;
|
|
313
409
|
readonly locales: any;
|
|
410
|
+
private readonly document;
|
|
314
411
|
id: string;
|
|
315
412
|
current: any;
|
|
316
413
|
constructor(id: string, localeData: any);
|
|
@@ -2,24 +2,22 @@
|
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
4
|
@use '../styles/typography/typography-utils' as *;
|
|
5
|
-
|
|
5
|
+
@use '../styles/common/tokens' as *;
|
|
6
6
|
|
|
7
7
|
@mixin kbq-optgroup-theme($theme) {
|
|
8
8
|
$foreground: map.get($theme, foreground);
|
|
9
9
|
|
|
10
10
|
.kbq-optgroup-label {
|
|
11
|
-
color: map.get($foreground, contrast);
|
|
11
|
+
color: kbq-css-variable(foreground-contrast, map.get($foreground, contrast));
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
.kbq-disabled .kbq-optgroup-label {
|
|
15
|
-
color: map.get($foreground, text-disabled);
|
|
15
|
+
color: kbq-css-variable(foreground-text-disabled, map.get($foreground, text-disabled));
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
@mixin kbq-optgroup-typography($config) {
|
|
20
|
-
$tokens: map.get($config, tokens);
|
|
21
|
-
|
|
22
20
|
.kbq-optgroup-label {
|
|
23
|
-
@include kbq-typography-
|
|
21
|
+
@include kbq-typography-css-variables(optgroup, default);
|
|
24
22
|
}
|
|
25
23
|
}
|