@koobiq/components 17.0.0-rc.6 → 17.0.0-rc.8
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/alert/_alert-theme.scss +19 -33
- package/alert/alert.component.scss +49 -141
- package/autocomplete/_autocomplete-theme.scss +3 -2
- package/autocomplete/autocomplete.scss +7 -14
- package/badge/_badge-theme.scss +31 -45
- package/badge/badge.component.scss +18 -38
- package/button/_button-base.scss +7 -13
- package/button/_button-theme.scss +29 -85
- package/button/button.component.d.ts +3 -2
- package/button/button.scss +7 -16
- package/button-toggle/_button-toggle-theme.scss +18 -18
- package/button-toggle/button-toggle.scss +14 -34
- package/card/_card-theme.scss +19 -17
- package/card/card.component.scss +2 -4
- package/checkbox/_checkbox-theme.scss +44 -43
- package/checkbox/checkbox.scss +23 -21
- package/code-block/_code-block-theme.scss +27 -26
- package/code-block/actionbar.component.scss +7 -18
- package/code-block/code-block.scss +21 -66
- package/core/form-field/form-field-ref.d.ts +2 -0
- package/core/forms/_forms-theme.scss +4 -7
- package/core/forms/_forms.scss +13 -42
- package/core/locales/locale-service.d.ts +1 -0
- package/core/option/_optgroup-theme.scss +4 -5
- package/core/option/_option-action-theme.scss +7 -7
- package/core/option/_option-theme.scss +16 -20
- 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 +16 -19
- package/core/selection/pseudo-checkbox/pseudo-checkbox.scss +9 -8
- package/core/styles/common/_groups.scss +3 -5
- package/core/styles/common/_list.scss +14 -18
- package/core/styles/common/_popup.scss +5 -4
- package/core/styles/common/_select.scss +11 -16
- package/core/styles/common/_tokens.scss +30 -9
- package/core/styles/theming/_components-theming.scss +151 -131
- package/core/styles/visual/_layout.scss +14 -16
- package/datepicker/_datepicker-theme.scss +24 -39
- package/datepicker/calendar-body.scss +3 -8
- package/datepicker/calendar-header.scss +4 -9
- package/datepicker/calendar.scss +5 -16
- package/datepicker/datepicker-content.scss +4 -12
- package/datepicker/datepicker-input.scss +0 -4
- package/datepicker/datepicker-toggle.scss +3 -2
- package/divider/_divider-theme.scss +3 -1
- package/divider/divider.scss +9 -25
- package/dl/_dl-theme.scss +5 -6
- package/dl/dl.scss +5 -19
- package/dropdown/_dropdown-theme.scss +21 -21
- package/dropdown/dropdown-item.scss +5 -11
- package/dropdown/dropdown-trigger.directive.d.ts +2 -2
- package/dropdown/dropdown.scss +6 -14
- package/esm2022/alert/alert.component.mjs +2 -2
- 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 +2 -2
- package/esm2022/core/form-field/form-field-ref.mjs +1 -1
- package/esm2022/core/locales/locale-service.mjs +5 -2
- package/esm2022/core/option/option.mjs +2 -2
- package/esm2022/core/select/common.mjs +120 -0
- package/esm2022/core/select/index.mjs +2 -1
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown-trigger.directive.mjs +4 -4
- package/esm2022/file-upload/multiple-file-upload.component.mjs +2 -2
- package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
- 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/icon/icon-item.component.mjs +16 -6
- package/esm2022/list/list-selection.component.mjs +2 -2
- package/esm2022/list/list.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/navbar/navbar-item.component.mjs +2 -2
- 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.component.mjs +18 -114
- package/esm2022/select/select.module.mjs +28 -28
- package/esm2022/table/table.component.mjs +2 -2
- package/esm2022/tabs/tab-group.component.mjs +54 -12
- 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 +2 -2
- package/esm2022/timepicker/timepicker.directive.mjs +10 -2
- package/esm2022/timezone/timezone-option.component.mjs +2 -2
- package/esm2022/timezone/timezone-select.component.mjs +5 -5
- package/esm2022/title/title.directive.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +3 -3
- package/esm2022/toast/toast.service.mjs +17 -12
- package/esm2022/tooltip/tooltip.component.mjs +2 -2
- package/esm2022/tree/tree-option.component.mjs +2 -2
- package/esm2022/tree-select/tree-select.component.mjs +9 -37
- package/esm2022/tree-select/tree-select.module.mjs +31 -11
- package/fesm2022/koobiq-components-alert.mjs +2 -2
- 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 +4 -4
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +124 -7
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +5 -5
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +4 -4
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +6 -6
- 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-list.mjs +4 -4
- package/fesm2022/koobiq-components-list.mjs.map +1 -1
- package/fesm2022/koobiq-components-markdown.mjs +2 -2
- package/fesm2022/koobiq-components-navbar.mjs +6 -6
- 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 +46 -142
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-table.mjs +2 -2
- package/fesm2022/koobiq-components-tabs.mjs +56 -14
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +20 -7
- package/fesm2022/koobiq-components-tags.mjs.map +1 -1
- package/fesm2022/koobiq-components-timepicker.mjs +9 -1
- package/fesm2022/koobiq-components-timepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +6 -6
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +1 -1
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +19 -13
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +2 -2
- package/fesm2022/koobiq-components-tree-select.mjs +37 -44
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +2 -2
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +109 -68
- package/file-upload/file-upload.scss +0 -5
- package/file-upload/multiple-file-upload.component.scss +35 -99
- package/file-upload/single-file-upload.component.scss +12 -31
- package/form-field/_form-field-theme.scss +32 -34
- package/form-field/_hint-theme.scss +16 -19
- package/form-field/cleaner.scss +3 -8
- package/form-field/form-field.scss +11 -12
- package/form-field/hint.scss +5 -7
- package/form-field/password-toggle.scss +3 -9
- package/form-field/stepper.scss +4 -10
- package/icon/_icon-button-theme.scss +35 -35
- package/icon/_icon-item-theme.scss +46 -31
- package/icon/_icon-theme.scss +9 -15
- package/icon/icon-button.scss +5 -17
- package/icon/icon-item.component.d.ts +3 -1
- package/icon/icon-item.scss +12 -7
- package/icon/icon.scss +0 -5
- package/input/_input-theme.scss +2 -3
- package/input/input.scss +2 -1
- package/link/_link-theme.scss +25 -42
- package/list/_list-theme.scss +18 -17
- package/list/list.scss +3 -5
- package/loader-overlay/_loader-overlay-theme.scss +13 -16
- package/loader-overlay/loader-overlay.scss +9 -32
- package/markdown/_markdown-theme.scss +41 -44
- package/markdown/markdown.scss +38 -88
- package/modal/_modal-confirm.scss +2 -6
- package/modal/_modal-theme.scss +11 -12
- package/modal/modal.scss +18 -24
- package/navbar/_navbar-item_horizontal.scss +28 -28
- package/navbar/_navbar-item_vertical.scss +31 -30
- package/navbar/_navbar-theme.scss +21 -22
- package/navbar/navbar-brand.scss +24 -26
- package/navbar/navbar-divider.scss +4 -7
- package/navbar/navbar-item.scss +11 -13
- package/navbar/navbar.scss +2 -5
- package/navbar/vertical-navbar.scss +3 -5
- package/package.json +9 -9
- package/popover/_popover-theme.scss +9 -16
- package/popover/popover.scss +18 -24
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +7 -10
- package/progress-bar/progress-bar.scss +6 -18
- package/progress-spinner/_progress-spinner-theme.scss +6 -7
- package/progress-spinner/progress-spinner.scss +8 -17
- package/radio/_radio-theme.scss +29 -37
- package/radio/radio.scss +20 -39
- package/risk-level/_risk-level-theme.scss +25 -30
- package/risk-level/risk-level.component.scss +5 -8
- package/schematics/ng-add/index.js +6 -6
- package/scrollbar/_scrollbar-component-theme.scss +14 -17
- package/scrollbar/scrollbar.component.scss +13 -20
- package/select/_select-theme.scss +14 -15
- package/select/select.component.d.ts +2 -32
- package/select/select.module.d.ts +1 -1
- package/select/select.scss +3 -10
- package/sidepanel/_sidepanel-theme.scss +8 -9
- package/sidepanel/sidepanel.scss +19 -30
- package/splitter/_splitter-theme.scss +3 -3
- package/table/_table-theme.scss +9 -8
- package/table/table.scss +12 -12
- package/tabs/_tabs-common.scss +4 -7
- package/tabs/_tabs-theme.scss +77 -44
- package/tabs/tab-group.component.d.ts +9 -3
- package/tabs/tab-group.scss +2 -7
- package/tabs/tab-header.scss +0 -4
- package/tabs/tab-nav-bar/tab-nav-bar.scss +2 -7
- package/tags/_tag-theme.scss +23 -26
- package/tags/tag-default-options.d.ts +1 -0
- package/tags/tag-input.d.ts +7 -1
- package/tags/tag-list.scss +6 -5
- package/tags/tag.scss +6 -9
- package/textarea/_textarea-theme.scss +2 -4
- package/textarea/textarea.scss +4 -6
- package/timepicker/timepicker.scss +2 -7
- package/timezone/_timezone-option-theme.scss +8 -9
- package/timezone/timezone-option.component.scss +5 -7
- package/timezone/timezone-select.component.d.ts +2 -1
- package/timezone/timezone-select.component.scss +2 -3
- package/toast/_toast-theme.scss +15 -14
- package/toast/toast-container.component.scss +4 -7
- package/toast/toast.component.scss +20 -25
- package/toast/toast.service.d.ts +8 -4
- package/toggle/_toggle-theme.scss +48 -42
- package/toggle/toggle.scss +9 -21
- package/tooltip/_tooltip-theme.scss +13 -16
- package/tooltip/tooltip.scss +8 -10
- package/tree/_tree-theme.scss +20 -22
- package/tree/toggle.scss +3 -5
- package/tree/tree-option.scss +5 -6
- package/tree-select/_tree-select-theme.scss +12 -14
- package/tree-select/tree-select.component.d.ts +4 -17
- package/tree-select/tree-select.module.d.ts +1 -2
- package/tree-select/tree-select.scss +1 -5
- package/core/styles/_variables.scss +0 -1
package/tooltip/tooltip.scss
CHANGED
|
@@ -3,42 +3,40 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/pop-up/pop-up';
|
|
5
5
|
|
|
6
|
-
@use '../core/styles/tokens'
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
10
|
-
|
|
11
9
|
$trigger-margin: 8px;
|
|
12
10
|
|
|
13
11
|
|
|
14
12
|
.kbq-tooltip__inner {
|
|
15
|
-
border-radius:
|
|
13
|
+
border-radius: kbq-css-variable(tooltip-size-border-radius);
|
|
16
14
|
word-break: break-word;
|
|
17
15
|
}
|
|
18
16
|
|
|
19
17
|
.kbq-tooltip {
|
|
20
18
|
box-sizing: border-box;
|
|
21
19
|
|
|
22
|
-
border-radius:
|
|
20
|
+
border-radius: kbq-css-variable(tooltip-size-border-radius);
|
|
23
21
|
|
|
24
22
|
white-space: pre-line;
|
|
25
23
|
|
|
26
24
|
@include pop-up.popup-margins(kbq-tooltip, $trigger-margin);
|
|
27
25
|
|
|
28
|
-
max-width:
|
|
26
|
+
max-width: kbq-css-variable(tooltip-size-max-width);
|
|
29
27
|
|
|
30
28
|
.kbq-tooltip__inner {
|
|
31
29
|
padding:
|
|
32
|
-
|
|
33
|
-
|
|
30
|
+
kbq-css-variable(tooltip-size-padding-vertical)
|
|
31
|
+
kbq-css-variable(tooltip-size-padding-horizontal);
|
|
34
32
|
}
|
|
35
33
|
}
|
|
36
34
|
|
|
37
35
|
.kbq-tooltip__arrow {
|
|
38
36
|
position: absolute;
|
|
39
37
|
|
|
40
|
-
width:
|
|
41
|
-
height:
|
|
38
|
+
width: kbq-css-variable(tooltip-size-arrow-size);
|
|
39
|
+
height: kbq-css-variable(tooltip-size-arrow-size);
|
|
42
40
|
|
|
43
41
|
transform: rotate(45deg);
|
|
44
42
|
|
package/tree/_tree-theme.scss
CHANGED
|
@@ -3,30 +3,28 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
7
|
|
|
7
8
|
|
|
8
|
-
@mixin kbq-tree-option($state) {
|
|
9
|
-
|
|
9
|
+
@mixin kbq-tree-option($component, $state-name) {
|
|
10
|
+
$state: map.get($component, $state-name);
|
|
11
|
+
|
|
12
|
+
background: kbq-css-variable(tree-#{$state-name}-container-background, map.get($state, container-background));
|
|
10
13
|
|
|
11
14
|
.kbq-option-text {
|
|
12
|
-
color: map.get($state, text);
|
|
15
|
+
color: kbq-css-variable(tree-#{$state-name}-text, map.get($state, text));
|
|
13
16
|
}
|
|
14
17
|
|
|
15
|
-
// todo выглядит как баг
|
|
16
|
-
//.kbq-icon {
|
|
17
|
-
// color: map.get($state, icon);
|
|
18
|
-
//}
|
|
19
|
-
|
|
20
18
|
.kbq-tree-node-toggle .kbq-icon {
|
|
21
|
-
color: map.get($state, tree-toggle);
|
|
19
|
+
color: kbq-css-variable(tree-#{$state-name}-tree-toggle, map.get($state, tree-toggle));
|
|
22
20
|
}
|
|
23
21
|
|
|
24
22
|
.kbq-option-action .kbq-icon {
|
|
25
|
-
color: map.get($state, action-button);
|
|
23
|
+
color: kbq-css-variable(tree-#{$state-name}-action-button, map.get($state, action-button));
|
|
26
24
|
}
|
|
27
25
|
|
|
28
26
|
.kbq-option-caption {
|
|
29
|
-
color: map.get($state, caption);
|
|
27
|
+
color: kbq-css-variable(tree-#{$state-name}-caption, map.get($state, caption));
|
|
30
28
|
}
|
|
31
29
|
}
|
|
32
30
|
|
|
@@ -37,29 +35,31 @@
|
|
|
37
35
|
}
|
|
38
36
|
|
|
39
37
|
.kbq-tree-option {
|
|
40
|
-
$tree-item: map.get(
|
|
38
|
+
$tree-item: map.get($theme, components, tree-item);
|
|
41
39
|
|
|
42
|
-
@include kbq-tree-option(
|
|
40
|
+
@include kbq-tree-option($tree-item, default);
|
|
43
41
|
|
|
44
42
|
&:hover:not(.kbq-disabled) {
|
|
45
|
-
@include kbq-tree-option(
|
|
43
|
+
@include kbq-tree-option($tree-item, states-hover);
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
&.kbq-focused,
|
|
49
47
|
&.kbq-active {
|
|
50
|
-
border-color:
|
|
48
|
+
border-color: kbq-css-variable(
|
|
49
|
+
tree-states-focused-focus-outline, map.get($tree-item, states-focused, focus-outline)
|
|
50
|
+
);
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
&.kbq-selected {
|
|
54
|
-
@include kbq-tree-option(
|
|
54
|
+
@include kbq-tree-option($tree-item, states-selected);
|
|
55
55
|
|
|
56
56
|
&:hover:not(.kbq-disabled) {
|
|
57
|
-
@include kbq-tree-option(
|
|
57
|
+
@include kbq-tree-option($tree-item, states-selected-hover);
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
&.kbq-disabled {
|
|
62
|
-
@include kbq-tree-option(
|
|
62
|
+
@include kbq-tree-option($tree-item, states-disabled);
|
|
63
63
|
|
|
64
64
|
& .kbq-icon {
|
|
65
65
|
cursor: default;
|
|
@@ -69,13 +69,11 @@
|
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
@mixin kbq-tree-typography($config) {
|
|
72
|
-
$tokens: map.get($config, tokens);
|
|
73
|
-
|
|
74
72
|
.kbq-tree-option {
|
|
75
|
-
@include kbq-typography-
|
|
73
|
+
@include kbq-typography-css-variables(tree, text);
|
|
76
74
|
}
|
|
77
75
|
|
|
78
76
|
.kbq-tree-option-caption {
|
|
79
|
-
@include kbq-typography-
|
|
77
|
+
@include kbq-typography-css-variables(tree, caption);
|
|
80
78
|
}
|
|
81
79
|
}
|
package/tree/toggle.scss
CHANGED
|
@@ -1,11 +1,9 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
-
@use '../core/styles/tokens'
|
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
8
|
-
|
|
9
7
|
.kbq-tree-node-toggle {
|
|
10
8
|
display: flex;
|
|
11
9
|
align-items: center;
|
|
@@ -14,8 +12,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
14
12
|
|
|
15
13
|
height: 100%;
|
|
16
14
|
|
|
17
|
-
padding-left:
|
|
18
|
-
padding-right:
|
|
15
|
+
padding-left: kbq-css-variable(tree-size-toggle-padding);
|
|
16
|
+
padding-right: kbq-css-variable(tree-size-toggle-padding);
|
|
19
17
|
|
|
20
18
|
cursor: pointer;
|
|
21
19
|
|
package/tree/tree-option.scss
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
@use '../core/styles/common';
|
|
5
5
|
@use '../core/styles/tokens';
|
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
|
6
7
|
|
|
7
8
|
|
|
8
9
|
$tokens: meta.module-variables(tokens) !default;
|
|
@@ -25,7 +26,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
25
26
|
|
|
26
27
|
word-wrap: break-word;
|
|
27
28
|
|
|
28
|
-
border-width:
|
|
29
|
+
border-width: kbq-css-variable(tree-size-container-focus-outline-width);
|
|
29
30
|
border-style: solid;
|
|
30
31
|
border-color: transparent;
|
|
31
32
|
|
|
@@ -42,9 +43,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
42
43
|
var(--kbq-tree-size-container-focus-outline-width, $outline-width)
|
|
43
44
|
);
|
|
44
45
|
|
|
45
|
-
gap:
|
|
46
|
-
--kbq-tree-size-container-content-gap-horizontal, map.get($tokens, tree-size-container-content-gap-horizontal)
|
|
47
|
-
);
|
|
46
|
+
gap: kbq-css-variable(tree-size-container-content-gap-horizontal);
|
|
48
47
|
|
|
49
48
|
& .kbq-option-text {
|
|
50
49
|
$tokens: meta.module-variables(tokens) !default;
|
|
@@ -54,8 +53,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
54
53
|
|
|
55
54
|
@include common.kbq-truncate-line();
|
|
56
55
|
|
|
57
|
-
padding-top:
|
|
58
|
-
padding-bottom:
|
|
56
|
+
padding-top: kbq-css-variable(list-size-text-padding-vertical);
|
|
57
|
+
padding-bottom: kbq-css-variable(list-size-text-padding-vertical);
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
&:focus {
|
|
@@ -4,48 +4,46 @@
|
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
6
|
@use '../core/styles/common/popup' as *;
|
|
7
|
+
@use '../core/styles/common/tokens' as *;
|
|
7
8
|
|
|
8
9
|
|
|
9
10
|
@mixin kbq-tree-select-theme($theme) {
|
|
10
11
|
$foreground: map.get($theme, foreground);
|
|
11
|
-
$error: map.get($theme, error);
|
|
12
12
|
|
|
13
|
-
$select-panel: map.get(
|
|
14
|
-
$divider: map.get(
|
|
13
|
+
$select-panel: map.get($theme, components, select-panel);
|
|
14
|
+
$divider: map.get($theme, components, divider);
|
|
15
15
|
|
|
16
16
|
.kbq-tree-select {
|
|
17
|
-
color: map.get($foreground, contrast);
|
|
17
|
+
color: kbq-css-variable(foreground-contrast, map.get($foreground, contrast));
|
|
18
18
|
|
|
19
19
|
&.ng-invalid {
|
|
20
|
-
color: kbq-
|
|
20
|
+
color: kbq-css-variable(error-default, map.get($theme, error, default));
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
&.kbq-disabled {
|
|
24
|
-
color: map.get($foreground, text-disabled);
|
|
24
|
+
color: kbq-css-variable(foreground-text-disabled, map.get($foreground, text-disabled));
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.kbq-select__placeholder {
|
|
29
29
|
text-overflow: ellipsis;
|
|
30
30
|
|
|
31
|
-
color: map.get($foreground, text-disabled);
|
|
31
|
+
color: kbq-css-variable(foreground-text-disabled, map.get($foreground, text-disabled));
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
.kbq-tree-select__panel {
|
|
35
|
-
box-shadow: map.get($select-panel, shadow);
|
|
36
|
-
background: map.get($select-panel, background);
|
|
35
|
+
box-shadow: kbq-css-variable(select-panel-shadow, map.get($select-panel, shadow));
|
|
36
|
+
background: kbq-css-variable(select-panel-background, map.get($select-panel, background));
|
|
37
37
|
|
|
38
|
-
& .kbq-
|
|
39
|
-
border-color: map.get($divider, color);
|
|
38
|
+
& .kbq-select__footer {
|
|
39
|
+
border-color: kbq-css-variable(divider-color, map.get($divider, color));
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
@mixin kbq-tree-select-typography($config) {
|
|
45
|
-
$tokens: map.get($config, tokens);
|
|
46
|
-
|
|
47
45
|
.kbq-tree-select,
|
|
48
46
|
.kbq-tree-select__panel {
|
|
49
|
-
@include kbq-typography-
|
|
47
|
+
@include kbq-typography-css-variables(select-panel, default);
|
|
50
48
|
}
|
|
51
49
|
}
|
|
@@ -3,9 +3,8 @@ import { SelectionModel } from '@angular/cdk/collections';
|
|
|
3
3
|
import { CdkConnectedOverlay, ConnectedPosition, ViewportRuler } from '@angular/cdk/overlay';
|
|
4
4
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
|
5
5
|
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
6
|
-
import { CanDisable, CanUpdateErrorState, ErrorStateMatcher, HasTabIndex, CanDisableCtor, HasTabIndexCtor, CanUpdateErrorStateCtor } from '@koobiq/components/core';
|
|
6
|
+
import { CanDisable, CanUpdateErrorState, ErrorStateMatcher, HasTabIndex, CanDisableCtor, HasTabIndexCtor, CanUpdateErrorStateCtor, KbqSelectSearch, KbqSelectTrigger, KbqSelectMatcher } from '@koobiq/components/core';
|
|
7
7
|
import { KbqCleaner, KbqFormField, KbqFormFieldControl } from '@koobiq/components/form-field';
|
|
8
|
-
import { KbqSelectSearch } from '@koobiq/components/select';
|
|
9
8
|
import { KbqTag } from '@koobiq/components/tags';
|
|
10
9
|
import { KbqTreeSelection, KbqTreeOption } from '@koobiq/components/tree';
|
|
11
10
|
import { Observable, Subject } from 'rxjs';
|
|
@@ -22,18 +21,6 @@ export declare class KbqTreeSelectChange {
|
|
|
22
21
|
isUserInput: boolean;
|
|
23
22
|
constructor(source: KbqTreeSelect, value: any, isUserInput?: boolean);
|
|
24
23
|
}
|
|
25
|
-
export declare class KbqTreeSelectTrigger {
|
|
26
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeSelectTrigger, never>;
|
|
27
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTreeSelectTrigger, "kbq-tree-select-trigger,[kbq-tree-select-trigger]", never, {}, {}, never, never, false, never>;
|
|
28
|
-
}
|
|
29
|
-
export declare class KbqTreeSelectMatcher {
|
|
30
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeSelectMatcher, never>;
|
|
31
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTreeSelectMatcher, "kbq-tree-select-matcher", never, {}, {}, never, never, false, never>;
|
|
32
|
-
}
|
|
33
|
-
export declare class KbqTreeSelectFooter {
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeSelectFooter, never>;
|
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTreeSelectFooter, "kbq-tree-select-footer, [kbq-tree-select-footer]", never, {}, {}, never, never, false, never>;
|
|
36
|
-
}
|
|
37
24
|
/** @docs-private */
|
|
38
25
|
declare class KbqTreeSelectBase {
|
|
39
26
|
elementRef: ElementRef;
|
|
@@ -94,8 +81,8 @@ export declare class KbqTreeSelect extends KbqTreeSelectMixinBase implements Aft
|
|
|
94
81
|
tags: QueryList<KbqTag>;
|
|
95
82
|
cleaner: KbqCleaner;
|
|
96
83
|
/** User-supplied override of the trigger element. */
|
|
97
|
-
customTrigger:
|
|
98
|
-
customMatcher:
|
|
84
|
+
customTrigger: KbqSelectTrigger;
|
|
85
|
+
customMatcher: KbqSelectMatcher;
|
|
99
86
|
customTagTemplateRef: TemplateRef<any>;
|
|
100
87
|
tree: KbqTreeSelection;
|
|
101
88
|
search: KbqSelectSearch;
|
|
@@ -285,6 +272,6 @@ export declare class KbqTreeSelect extends KbqTreeSelectMixinBase implements Aft
|
|
|
285
272
|
private _compareWith;
|
|
286
273
|
private subscribeOnSearchChanges;
|
|
287
274
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeSelect, [null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; self: true; }]>;
|
|
288
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTreeSelect, "kbq-tree-select", ["kbqTreeSelect"], { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "hiddenItemsText": { "alias": "hiddenItemsText"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "sortComparator": { "alias": "sortComparator"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "autoSelect": { "alias": "autoSelect"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "id": { "alias": "id"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "hiddenItemsTextFormatter": { "alias": "hiddenItemsTextFormatter"; "required": false; }; }, { "openedChange": "openedChange"; "openedStream": "opened"; "closedStream": "closed"; "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, ["cleaner", "customTrigger", "customMatcher", "customTagTemplateRef", "tree", "search"], ["kbq-
|
|
275
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTreeSelect, "kbq-tree-select", ["kbqTreeSelect"], { "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "hiddenItemsText": { "alias": "hiddenItemsText"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "backdropClass": { "alias": "backdropClass"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "sortComparator": { "alias": "sortComparator"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "autoSelect": { "alias": "autoSelect"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "id": { "alias": "id"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; "hiddenItemsTextFormatter": { "alias": "hiddenItemsTextFormatter"; "required": false; }; }, { "openedChange": "openedChange"; "openedStream": "opened"; "closedStream": "closed"; "selectionChange": "selectionChange"; "valueChange": "valueChange"; }, ["cleaner", "customTrigger", "customMatcher", "customTagTemplateRef", "tree", "search"], ["kbq-select-trigger", "kbq-cleaner", "kbq-select-matcher, [kbq-select-matcher]", "[kbqSelectSearch]", "[kbq-select-search-empty-result]", "kbq-tree-selection", "kbq-select-footer,[kbq-tree-select-footer]"], false, never>;
|
|
289
276
|
}
|
|
290
277
|
export {};
|
|
@@ -6,9 +6,8 @@ import * as i4 from "@koobiq/components/tree";
|
|
|
6
6
|
import * as i5 from "@koobiq/components/icon";
|
|
7
7
|
import * as i6 from "@koobiq/components/tags";
|
|
8
8
|
import * as i7 from "@koobiq/components/core";
|
|
9
|
-
import * as i8 from "@koobiq/components/select";
|
|
10
9
|
export declare class KbqTreeSelectModule {
|
|
11
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeSelectModule, never>;
|
|
12
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTreeSelectModule, [typeof i1.KbqTreeSelect, typeof
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTreeSelectModule, [typeof i1.KbqTreeSelect], [typeof i2.CommonModule, typeof i3.OverlayModule, typeof i4.KbqTreeModule, typeof i5.KbqIconModule, typeof i6.KbqTagsModule, typeof i7.KbqPseudoCheckboxModule, typeof i7.KbqSelectSearch, typeof i7.KbqSelectFooter, typeof i7.KbqSelectMatcher, typeof i7.KbqSelectTrigger, typeof i7.KbqSelectSearchEmptyResult], [typeof i1.KbqTreeSelect, typeof i2.CommonModule, typeof i7.KbqSelectSearch, typeof i7.KbqSelectFooter, typeof i7.KbqSelectMatcher, typeof i7.KbqSelectTrigger, typeof i7.KbqSelectSearchEmptyResult]>;
|
|
13
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqTreeSelectModule>;
|
|
14
13
|
}
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
@use '../core/styles/common';
|
|
5
5
|
@use '../core/styles/common/select' as *;
|
|
6
6
|
|
|
7
|
-
@use '../core/styles/tokens';
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
$tokens: meta.module-variables(tokens) !default;
|
|
11
7
|
|
|
12
8
|
.kbq-tree-select {
|
|
13
9
|
@extend %kbq-select-base;
|
|
@@ -16,7 +12,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
16
12
|
.kbq-tree-select__panel {
|
|
17
13
|
@extend %kbq-select-panel;
|
|
18
14
|
|
|
19
|
-
& .kbq-
|
|
15
|
+
& .kbq-select__footer {
|
|
20
16
|
@extend %kbq-select-footer;
|
|
21
17
|
}
|
|
22
18
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|