@koobiq/components 16.0.0-beta.1 → 16.0.0-beta.5
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-origin.directive.d.ts +1 -1
- package/autocomplete/autocomplete-trigger.directive.d.ts +1 -1
- package/autocomplete/autocomplete.component.d.ts +1 -1
- package/autocomplete/autocomplete.scss +0 -3
- package/badge/README.md +0 -0
- package/{core/styles/theming/_badges-theme.scss → badge/_badge-theme.scss} +1 -5
- package/badge/badge.component.d.ts +26 -0
- package/badge/badge.component.scss +55 -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.scss +5 -2
- package/checkbox/README.md +1 -1
- package/checkbox/checkbox.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/forms/_forms-theme.scss +4 -4
- package/core/forms/_forms.scss +1 -3
- package/core/option/_option-theme.scss +39 -16
- package/core/option/action.scss +3 -4
- package/core/option/option.scss +6 -51
- package/core/styles/_koobiq-theme.scss +4 -1
- package/core/styles/_tokens.kbq.import.scss +4 -4
- package/core/styles/_tokens.scss +4 -4
- package/core/styles/common/_list.scss +123 -0
- package/core/styles/common/_select.scss +218 -0
- package/core/styles/theming/_components-theming.scss +414 -47
- package/datepicker/datepicker-animations.d.ts +1 -1
- package/dropdown/_dropdown-theme.scss +30 -37
- package/dropdown/dropdown-item.component.d.ts +1 -1
- package/dropdown/dropdown-item.scss +18 -40
- package/dropdown/dropdown.scss +16 -39
- package/esm2022/alert/alert.component.mjs +1 -1
- package/esm2022/autocomplete/autocomplete-origin.directive.mjs +4 -4
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +8 -8
- package/esm2022/autocomplete/autocomplete.component.mjs +4 -4
- package/esm2022/badge/badge.component.mjs +62 -0
- package/esm2022/badge/badge.module.mjs +36 -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 +2 -2
- package/esm2022/checkbox/checkbox.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +3 -3
- package/esm2022/code-block/code-block.component.mjs +3 -3
- package/esm2022/core/common-behaviors/color.mjs +1 -1
- package/esm2022/core/common-behaviors/common-module.mjs +2 -2
- package/esm2022/core/option/action.mjs +5 -5
- package/esm2022/core/option/option.mjs +3 -3
- package/esm2022/core/overlay/overlay-position-map.mjs +2 -1
- package/esm2022/core/selection/pseudo-checkbox/pseudo-checkbox.mjs +3 -3
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +3 -3
- package/esm2022/datepicker/datepicker-animations.mjs +2 -2
- package/esm2022/dropdown/dropdown-item.component.mjs +3 -3
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- 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 +6 -6
- package/esm2022/form-field/password-hint.mjs +2 -2
- package/esm2022/form-field/password-toggle.mjs +6 -6
- package/esm2022/form-field/prefix.mjs +3 -3
- package/esm2022/form-field/validate.directive.mjs +5 -5
- package/esm2022/icon/icon.component.mjs +3 -3
- package/esm2022/input/input-errors.mjs +2 -2
- package/esm2022/input/input-number.mjs +3 -3
- package/esm2022/input/input-password.mjs +5 -5
- package/esm2022/input/input.mjs +7 -7
- package/esm2022/link/link.component.mjs +2 -12
- package/esm2022/list/list-selection.component.mjs +20 -7
- 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.component.mjs +6 -20
- package/esm2022/navbar/vertical-navbar.animation.mjs +2 -2
- package/esm2022/progress-spinner/progress-spinner.component.mjs +1 -1
- 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.component.mjs +5 -5
- package/esm2022/sidepanel/sidepanel-container.component.mjs +3 -3
- package/esm2022/sidepanel/sidepanel-directives.mjs +7 -9
- 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 +3 -3
- package/esm2022/tabs/tab-label.directive.mjs +3 -3
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +17 -7
- package/esm2022/tabs/tabs.module.mjs +2 -6
- package/esm2022/tags/tag-input.mjs +8 -8
- package/esm2022/tags/tag-list.component.mjs +4 -4
- package/esm2022/tags/tag.component.mjs +6 -6
- package/esm2022/textarea/textarea.component.mjs +4 -4
- package/esm2022/timezone/timezone-option.component.mjs +3 -3
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/toast/toast-container.component.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +25 -13
- package/esm2022/toast/toast.module.mjs +14 -5
- package/esm2022/toast/toast.type.mjs +6 -1
- package/esm2022/tooltip/tooltip.animations.mjs +2 -2
- package/esm2022/tooltip/tooltip.component.mjs +14 -14
- package/esm2022/tree/padding.directive.mjs +4 -4
- package/esm2022/tree/toggle.mjs +5 -4
- package/esm2022/tree/tree-option.component.mjs +4 -7
- package/esm2022/tree/tree.module.mjs +13 -4
- package/esm2022/tree-select/tree-select.component.mjs +16 -10
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-autocomplete.mjs +13 -13
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs +102 -0
- package/fesm2022/koobiq-components-badge.mjs.map +1 -0
- package/fesm2022/koobiq-components-button.mjs +2 -2
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-checkbox.mjs +1 -1
- 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 +11 -10
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-datepicker.mjs +3 -3
- package/fesm2022/koobiq-components-datepicker.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +4 -4
- 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 +17 -17
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-icon.mjs +2 -2
- package/fesm2022/koobiq-components-icon.mjs.map +1 -1
- package/fesm2022/koobiq-components-input.mjs +13 -13
- package/fesm2022/koobiq-components-input.mjs.map +1 -1
- package/fesm2022/koobiq-components-link.mjs +1 -11
- package/fesm2022/koobiq-components-link.mjs.map +1 -1
- package/fesm2022/koobiq-components-list.mjs +28 -11
- 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 +5 -19
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +1 -1
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-progress-spinner.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 +4 -4
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-sidepanel.mjs +9 -10
- package/fesm2022/koobiq-components-sidepanel.mjs.map +1 -1
- package/fesm2022/koobiq-components-tabs.mjs +38 -37
- package/fesm2022/koobiq-components-tabs.mjs.map +1 -1
- package/fesm2022/koobiq-components-tags.mjs +15 -15
- 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-timezone.mjs +4 -4
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +41 -15
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +14 -14
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree-select.mjs +15 -9
- package/fesm2022/koobiq-components-tree-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +27 -20
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/form-field/_form-field-theme.scss +2 -2
- package/form-field/form-field.d.ts +2 -2
- package/form-field/password-toggle.d.ts +2 -2
- package/form-field/prefix.d.ts +1 -1
- package/form-field/validate.directive.d.ts +1 -1
- package/input/input-number.d.ts +1 -1
- 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 +1 -3
- package/link/link.component.d.ts +1 -4
- package/list/_list-theme.scss +35 -15
- package/list/list-selection.component.d.ts +5 -1
- package/list/list.module.d.ts +1 -1
- package/list/list.scss +3 -12
- 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 +53 -22
- package/modal/_modal-confirm.scss +20 -28
- package/modal/_modal-theme.scss +5 -35
- package/modal/modal.component.d.ts +3 -6
- package/modal/modal.scss +32 -36
- package/package.json +41 -29
- 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/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 +8 -0
- package/select/select.scss +5 -189
- package/sidepanel/_sidepanel-theme.scss +6 -41
- package/sidepanel/sidepanel-directives.d.ts +0 -2
- package/sidepanel/sidepanel.scss +33 -35
- package/tabs/_tabs-common.scss +27 -146
- package/tabs/_tabs-theme.scss +81 -175
- 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 +3 -1
- package/tabs/tab-nav-bar/tab-nav-bar.scss +9 -16
- package/tabs/tabs.module.d.ts +1 -1
- package/tags/_tag-theme.scss +0 -24
- package/tags/tag-input.d.ts +1 -1
- package/tags/tag-list.scss +20 -16
- package/tags/tag.component.d.ts +3 -3
- package/textarea/textarea.component.d.ts +1 -1
- package/toast/_toast-theme.scss +21 -33
- package/toast/toast-container.component.scss +2 -1
- package/toast/toast.component.d.ts +4 -1
- package/toast/toast.component.scss +41 -34
- package/toast/toast.module.d.ts +1 -1
- package/toast/toast.type.d.ts +8 -5
- package/tooltip/tooltip.animations.d.ts +1 -1
- package/tooltip/tooltip.component.d.ts +4 -4
- package/tree/_tree-theme.scss +46 -34
- package/tree/tree-option.component.d.ts +0 -1
- package/tree/tree-option.scss +34 -23
- package/tree/tree.module.d.ts +2 -1
- package/tree-select/_tree-select-theme.scss +9 -1
- package/tree-select/tree-select.component.d.ts +5 -3
- 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
|
@@ -32,9 +32,11 @@ export declare class KbqTabLink extends KbqTabLinkMixinBase implements OnDestroy
|
|
|
32
32
|
*/
|
|
33
33
|
export declare class KbqTabNav implements AfterContentInit {
|
|
34
34
|
vertical: boolean;
|
|
35
|
+
transparent: boolean;
|
|
36
|
+
onSurface: boolean;
|
|
35
37
|
links: QueryList<KbqTabLink>;
|
|
36
38
|
constructor(vertical: string);
|
|
37
39
|
ngAfterContentInit(): void;
|
|
38
40
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTabNav, [{ attribute: "vertical"; }]>;
|
|
39
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTabNav, "[kbq-tab-nav-bar]", ["mcTabNavBar", "mcTabNav"], {}, {}, ["links"], ["*"], false, never>;
|
|
41
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTabNav, "[kbq-tab-nav-bar]", ["mcTabNavBar", "mcTabNav"], { "transparent": { "alias": "transparent"; "required": false; }; "onSurface": { "alias": "onSurface"; "required": false; }; }, {}, ["links"], ["*"], false, never>;
|
|
40
42
|
}
|
|
@@ -19,16 +19,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
19
19
|
flex-basis: 0;
|
|
20
20
|
flex-grow: 1;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
& > .kbq-icon {
|
|
24
|
-
&.kbq-icon_left {
|
|
25
|
-
margin-right: var(--kbq-tabs-size-label-icon-margin, map.get($tokens, tabs-size-label-icon-margin));
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
&.kbq-icon_right {
|
|
29
|
-
margin-left: var(--kbq-tabs-size-label-icon-margin, map.get($tokens, tabs-size-label-icon-margin));
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
22
|
}
|
|
33
23
|
|
|
34
24
|
.kbq-tab-nav-bar {
|
|
@@ -37,8 +27,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
37
27
|
|
|
38
28
|
position: relative;
|
|
39
29
|
|
|
40
|
-
padding: 1px 1px 0 1px;
|
|
41
|
-
|
|
42
30
|
& .kbq-tab-group_align-labels-center {
|
|
43
31
|
justify-content: center;
|
|
44
32
|
}
|
|
@@ -46,9 +34,14 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
46
34
|
& .kbq-tab-group_align-labels-end {
|
|
47
35
|
justify-content: flex-end;
|
|
48
36
|
}
|
|
49
|
-
}
|
|
50
37
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
38
|
+
&.kbq-tab-group_vertical {
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
flex-grow: 0;
|
|
41
|
+
|
|
42
|
+
gap: var(
|
|
43
|
+
--kbq-tabs-size-tab-stack-vertical-content-gap-vartical,
|
|
44
|
+
map.get($tokens, tabs-size-tab-stack-vertical-content-gap-vertical)
|
|
45
|
+
) 0;
|
|
46
|
+
}
|
|
54
47
|
}
|
package/tabs/tabs.module.d.ts
CHANGED
|
@@ -16,6 +16,6 @@ import * as i14 from "@koobiq/components/icon";
|
|
|
16
16
|
import * as i15 from "@koobiq/components/tooltip";
|
|
17
17
|
export declare class KbqTabsModule {
|
|
18
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTabsModule, never>;
|
|
19
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTabsModule, [typeof i1.KbqTabGroup, typeof i2.KbqTabLabel, typeof i3.KbqTab, typeof i4.KbqTabLabelWrapper, typeof i5.KbqTabNav, typeof i5.KbqTabLink, typeof i6.KbqTabBody, typeof i6.KbqTabBodyPortal, typeof i7.KbqTabHeader, typeof i8.KbqTabContent, typeof i1.
|
|
19
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTabsModule, [typeof i1.KbqTabGroup, typeof i2.KbqTabLabel, typeof i3.KbqTab, typeof i4.KbqTabLabelWrapper, typeof i5.KbqTabNav, typeof i5.KbqTabLink, typeof i6.KbqTabBody, typeof i6.KbqTabBodyPortal, typeof i7.KbqTabHeader, typeof i8.KbqTabContent, typeof i1.KbqAlignTabsCenterCssStyler, typeof i1.KbqAlignTabsEndCssStyler, typeof i1.KbqStretchTabsCssStyler, typeof i1.KbqVerticalTabsCssStyler], [typeof i9.CommonModule, typeof i10.PortalModule, typeof i11.A11yModule, typeof i12.CdkScrollableModule, typeof i13.KbqCommonModule, typeof i14.KbqIconModule, typeof i15.KbqToolTipModule], [typeof i13.KbqCommonModule, typeof i1.KbqTabGroup, typeof i2.KbqTabLabel, typeof i3.KbqTab, typeof i5.KbqTabNav, typeof i5.KbqTabLink, typeof i8.KbqTabContent, typeof i1.KbqAlignTabsCenterCssStyler, typeof i1.KbqAlignTabsEndCssStyler, typeof i1.KbqStretchTabsCssStyler, typeof i1.KbqVerticalTabsCssStyler]>;
|
|
20
20
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqTabsModule>;
|
|
21
21
|
}
|
package/tags/_tag-theme.scss
CHANGED
|
@@ -59,31 +59,7 @@
|
|
|
59
59
|
&.kbq-error {
|
|
60
60
|
@include kbq-tag-color(map.get($tag, error-fade-on));
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
//&.kbq-disabled {
|
|
64
|
-
// color: map.get($foreground, text-disabled);
|
|
65
|
-
//
|
|
66
|
-
// border-color: transparent;
|
|
67
|
-
//
|
|
68
|
-
// background-color: map.get($background, background-disabled);
|
|
69
|
-
//}
|
|
70
62
|
}
|
|
71
|
-
|
|
72
|
-
//.kbq-tag-input {
|
|
73
|
-
// color: map.get($foreground, text);
|
|
74
|
-
//
|
|
75
|
-
// &::placeholder {
|
|
76
|
-
// color: map.get($foreground, text-disabled);
|
|
77
|
-
// }
|
|
78
|
-
//
|
|
79
|
-
// &::-ms-input-placeholder {
|
|
80
|
-
// color: map.get($foreground, text-disabled);
|
|
81
|
-
// }
|
|
82
|
-
//
|
|
83
|
-
// &::-webkit-input-placeholder {
|
|
84
|
-
// color: map.get($foreground, text-disabled);
|
|
85
|
-
// }
|
|
86
|
-
//}
|
|
87
63
|
}
|
|
88
64
|
|
|
89
65
|
@mixin kbq-tag-typography($config) {
|
package/tags/tag-input.d.ts
CHANGED
|
@@ -83,5 +83,5 @@ export declare class KbqTagInput implements KbqTagTextControl, OnChanges {
|
|
|
83
83
|
/** Checks whether a keycode is one of the configured separators. */
|
|
84
84
|
private isSeparatorKey;
|
|
85
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTagInput, [null, null, null, { optional: true; self: true; }, { optional: true; self: true; }]>;
|
|
86
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTagInput, "input[
|
|
86
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTagInput, "input[kbqTagInputFor]", ["mcTagInput", "kbqTagInputFor"], { "separatorKeyCodes": { "alias": "kbqTagInputSeparatorKeyCodes"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "tagList": { "alias": "kbqTagInputFor"; "required": false; }; "addOnBlur": { "alias": "kbqTagInputAddOnBlur"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "tagEnd": "kbqTagInputTokenEnd"; }, never, never, false, never>;
|
|
87
87
|
}
|
package/tags/tag-list.scss
CHANGED
|
@@ -18,7 +18,12 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
18
18
|
outline: none;
|
|
19
19
|
background: transparent;
|
|
20
20
|
|
|
21
|
-
|
|
21
|
+
text-overflow: ellipsis;
|
|
22
|
+
|
|
23
|
+
min-height: unset;
|
|
24
|
+
|
|
25
|
+
padding-left: 4px;
|
|
26
|
+
padding-right: unset;
|
|
22
27
|
}
|
|
23
28
|
|
|
24
29
|
.kbq-tags-list__list-container {
|
|
@@ -36,8 +41,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
36
41
|
max-width: 100%;
|
|
37
42
|
|
|
38
43
|
flex: 1 1 auto;
|
|
39
|
-
|
|
40
|
-
margin-left: var(--kbq-tag-input-size-content-gap, map.get($tokens, tag-input-size-content-gap));
|
|
41
44
|
}
|
|
42
45
|
}
|
|
43
46
|
|
|
@@ -49,18 +52,19 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
49
52
|
|
|
50
53
|
.kbq-form-field-type-tag-list {
|
|
51
54
|
& .kbq-form-field__container {
|
|
52
|
-
padding-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
55
|
+
$padding-vertical: map.get($tokens, tag-input-size-padding-vertical);
|
|
56
|
+
$border-width: map.get($tokens, form-field-size-border-width);
|
|
57
|
+
|
|
58
|
+
padding:
|
|
59
|
+
calc(
|
|
60
|
+
var(--kbq-tag-input-size-padding-vertical, #{$padding-vertical}) -
|
|
61
|
+
var(--kbq-form-field-size-border-width, $border-width)
|
|
62
|
+
)
|
|
63
|
+
var(--kbq-tag-input-size-padding-right, map.get($tokens, tag-input-size-padding-right))
|
|
64
|
+
calc(
|
|
65
|
+
var(--kbq-tag-input-size-padding-vertical, #{$padding-vertical}) -
|
|
66
|
+
var(--kbq-form-field-size-border-width, $border-width)
|
|
67
|
+
)
|
|
68
|
+
var(--kbq-tag-input-size-padding-left, map.get($tokens, tag-input-size-padding-left));
|
|
65
69
|
}
|
|
66
70
|
}
|
package/tags/tag.component.d.ts
CHANGED
|
@@ -116,14 +116,14 @@ export declare class KbqTag extends KbqTagMixinBase implements IFocusableOption,
|
|
|
116
116
|
blur(): void;
|
|
117
117
|
private dispatchSelectionChange;
|
|
118
118
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTag, never>;
|
|
119
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTag, "kbq-tag, [kbq-tag], kbq-basic-tag, [kbq-basic-tag]", ["mcTag"], { "color": { "alias": "color"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "destroyed": "destroyed"; "removed": "removed"; }, ["avatar", "trailingIcon", "removeIcon", "contentChildren"], ["[kbq-icon]:not([
|
|
119
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<KbqTag, "kbq-tag, [kbq-tag], kbq-basic-tag, [kbq-basic-tag]", ["mcTag"], { "color": { "alias": "color"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "removable": { "alias": "removable"; "required": false; }; "tabindex": { "alias": "tabindex"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "selectionChange": "selectionChange"; "destroyed": "destroyed"; "removed": "removed"; }, ["avatar", "trailingIcon", "removeIcon", "contentChildren"], ["[kbq-icon]:not([kbqTagRemove])", "*", "[kbqTagRemove]"], false, never>;
|
|
120
120
|
}
|
|
121
121
|
/**
|
|
122
122
|
*
|
|
123
123
|
* Example:
|
|
124
124
|
*
|
|
125
125
|
* `<kbq-tag>
|
|
126
|
-
* <kbq-icon
|
|
126
|
+
* <kbq-icon kbqTagRemove>cancel</kbq-icon>
|
|
127
127
|
* </kbq-tag>`
|
|
128
128
|
*
|
|
129
129
|
* You *may* use a custom icon, but you may need to override the `kbq-tag-remove` positioning
|
|
@@ -136,5 +136,5 @@ export declare class KbqTagRemove {
|
|
|
136
136
|
/** Calls the parent tag's public `remove()` method if applicable. */
|
|
137
137
|
handleClick(event: Event): void;
|
|
138
138
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTagRemove, never>;
|
|
139
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTagRemove, "[
|
|
139
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTagRemove, "[kbqTagRemove]", never, {}, {}, never, never, false, never>;
|
|
140
140
|
}
|
|
@@ -110,5 +110,5 @@ export declare class KbqTextarea extends KbqTextareaMixinBase implements KbqForm
|
|
|
110
110
|
/** Checks whether the textarea is invalid based on the native validation. */
|
|
111
111
|
protected isBadInput(): boolean;
|
|
112
112
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTextarea, [null, { optional: true; self: true; }, { optional: true; }, { optional: true; }, null, { optional: true; self: true; }, null]>;
|
|
113
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTextarea, "textarea[
|
|
113
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTextarea, "textarea[kbqTextarea]", ["kbqTextarea"], { "canGrow": { "alias": "canGrow"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
114
114
|
}
|
package/toast/_toast-theme.scss
CHANGED
|
@@ -4,43 +4,35 @@
|
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
@mixin kbq-toast
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
$toast: map.get(map.get($theme, components), toast);
|
|
11
|
-
|
|
12
|
-
.kbq-toast {
|
|
13
|
-
&.kbq-toast_info .kbq-toast__icon {
|
|
14
|
-
color: map.get($toast, icon_info);
|
|
15
|
-
}
|
|
7
|
+
@mixin kbq-toast($toast) {
|
|
8
|
+
box-shadow: map.get($toast, box-shadow);
|
|
16
9
|
|
|
17
|
-
|
|
18
|
-
color: map.get($toast, icon_success);
|
|
19
|
-
}
|
|
10
|
+
background: map.get($toast, background);
|
|
20
11
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
12
|
+
.kbq-toast__title {
|
|
13
|
+
color: map.get($toast, title);
|
|
14
|
+
}
|
|
24
15
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
}
|
|
16
|
+
.kbq-toast__text {
|
|
17
|
+
color: map.get($toast, text);
|
|
28
18
|
}
|
|
19
|
+
}
|
|
29
20
|
|
|
30
|
-
.kbq-toast__wrapper {
|
|
31
|
-
border-color: map.get($toast, border);
|
|
32
21
|
|
|
33
|
-
|
|
22
|
+
@mixin kbq-toast-theme($theme) {
|
|
23
|
+
$toast: map.get(map.get($theme, components), toast);
|
|
34
24
|
|
|
35
|
-
|
|
36
|
-
|
|
25
|
+
$contrast: map.get($toast, contrast);
|
|
26
|
+
$error: map.get($toast, error);
|
|
37
27
|
|
|
38
|
-
.kbq-
|
|
39
|
-
|
|
40
|
-
|
|
28
|
+
.kbq-toast {
|
|
29
|
+
&.kbq-toast_contrast {
|
|
30
|
+
@include kbq-toast($contrast);
|
|
31
|
+
}
|
|
41
32
|
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
&.kbq-toast_error {
|
|
34
|
+
@include kbq-toast($error);
|
|
35
|
+
}
|
|
44
36
|
}
|
|
45
37
|
}
|
|
46
38
|
|
|
@@ -48,14 +40,10 @@
|
|
|
48
40
|
$tokens: map.get($config, tokens);
|
|
49
41
|
|
|
50
42
|
.kbq-toast {
|
|
51
|
-
@include kbq-typography-level-to-styles($config,
|
|
43
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, toast-font-text));
|
|
52
44
|
}
|
|
53
45
|
|
|
54
46
|
.kbq-toast__title {
|
|
55
47
|
@include kbq-typography-level-to-styles($config, map.get($tokens, toast-font-title));
|
|
56
48
|
}
|
|
57
|
-
|
|
58
|
-
.kbq-toast__caption {
|
|
59
|
-
@include kbq-typography-level-to-styles($config, map.get($tokens, toast-font-caption));
|
|
60
|
-
}
|
|
61
49
|
}
|
|
@@ -11,8 +11,9 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
11
11
|
.kbq-toast-container {
|
|
12
12
|
display: flex;
|
|
13
13
|
flex-direction: column;
|
|
14
|
+
align-items: flex-end;
|
|
14
15
|
|
|
15
|
-
gap:
|
|
16
|
+
gap: 12px;
|
|
16
17
|
}
|
|
17
18
|
|
|
18
19
|
.cdk-overlay-container {
|
|
@@ -5,6 +5,10 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
5
5
|
import { KbqToastService } from './toast.service';
|
|
6
6
|
import { KbqToastData } from './toast.type';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class KbqToastCloseButton {
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqToastCloseButton, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqToastCloseButton, "[kbq-toast-close-button]", never, {}, {}, never, never, false, never>;
|
|
11
|
+
}
|
|
8
12
|
export declare class KbqToastComponent implements OnDestroy {
|
|
9
13
|
readonly data: KbqToastData;
|
|
10
14
|
readonly service: KbqToastService;
|
|
@@ -21,7 +25,6 @@ export declare class KbqToastComponent implements OnDestroy {
|
|
|
21
25
|
get toastStyle(): {
|
|
22
26
|
[x: string]: boolean;
|
|
23
27
|
};
|
|
24
|
-
get hasDismiss(): boolean;
|
|
25
28
|
get isFocusedOrHovered(): boolean;
|
|
26
29
|
private destroyed;
|
|
27
30
|
constructor(data: KbqToastData, service: KbqToastService, elementRef: ElementRef, focusMonitor: FocusMonitor);
|
|
@@ -9,42 +9,38 @@
|
|
|
9
9
|
$tokens: meta.module-variables(tokens) !default;
|
|
10
10
|
|
|
11
11
|
.kbq-toast {
|
|
12
|
+
display: flex;
|
|
12
13
|
box-sizing: border-box;
|
|
13
14
|
|
|
14
15
|
z-index: $z-index-toast;
|
|
15
16
|
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.kbq-toast__wrapper {
|
|
21
|
-
box-sizing: border-box;
|
|
17
|
+
min-width: var(--kbq-toast-size-container-min-width, map.get($tokens, toast-size-container-min-width));
|
|
18
|
+
max-width: 480px;
|
|
22
19
|
|
|
23
|
-
|
|
24
|
-
flex: 1 1 auto;
|
|
20
|
+
height: auto;
|
|
25
21
|
|
|
26
|
-
|
|
22
|
+
border-radius: var(--kbq-toast-size-container-border-radius, map.get($tokens, toast-size-container-border-radius));
|
|
27
23
|
|
|
28
|
-
padding
|
|
29
|
-
|
|
24
|
+
padding:
|
|
25
|
+
var(--kbq-toast-size-container-padding-vertical, map.get($tokens, toast-size-container-padding-vertical))
|
|
26
|
+
var(--kbq-toast-size-container-padding-horizontal, map.get($tokens, toast-size-container-padding-horizontal));
|
|
30
27
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
.kbq-toast__icon-container {
|
|
37
|
-
padding-right: var(--kbq-toast-size-icon-margin, map.get($tokens, toast-size-icon-margin));
|
|
38
|
-
|
|
39
|
-
padding-top: var(--kbq-toast-size-padding-vertical, map.get($tokens, toast-size-padding-vertical));
|
|
40
|
-
padding-bottom: var(--kbq-toast-size-padding-vertical, map.get($tokens, toast-size-padding-vertical));
|
|
28
|
+
gap: var(
|
|
29
|
+
--kbq-toast-size-container-content-gap-horizontal,
|
|
30
|
+
map.get($tokens, toast-size-container-content-gap-horizontal)
|
|
31
|
+
);
|
|
41
32
|
}
|
|
42
33
|
|
|
43
34
|
.kbq-toast__container {
|
|
44
|
-
|
|
35
|
+
display: flex;
|
|
36
|
+
flex-direction: column;
|
|
37
|
+
|
|
38
|
+
flex: 1;
|
|
45
39
|
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
gap: var(
|
|
41
|
+
--kbq-toast-size-container-content-gap-vertical,
|
|
42
|
+
map.get($tokens, toast-size-container-content-gap-vertical)
|
|
43
|
+
)
|
|
48
44
|
}
|
|
49
45
|
|
|
50
46
|
.kbq-toast__title {
|
|
@@ -53,24 +49,35 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
53
49
|
}
|
|
54
50
|
}
|
|
55
51
|
|
|
52
|
+
.kbq-toast__text {
|
|
53
|
+
display: flex;
|
|
54
|
+
flex: 1;
|
|
55
|
+
align-items: center;
|
|
56
|
+
}
|
|
57
|
+
|
|
56
58
|
.kbq-toast__content {
|
|
57
59
|
display: flex;
|
|
58
60
|
flex-direction: column;
|
|
59
61
|
}
|
|
60
62
|
|
|
61
63
|
.kbq-toast__actions {
|
|
62
|
-
|
|
64
|
+
display: flex;
|
|
63
65
|
|
|
64
|
-
|
|
65
|
-
margin-right: var(--kbq-toast-size-actionbar-gap, map.get($tokens, toast-size-actionbar-gap));
|
|
66
|
-
}
|
|
67
|
-
}
|
|
66
|
+
padding-top: var(--kbq-toast-size-button-stack-padding-top, map.get($tokens, toast-size-button-stack-padding-top));
|
|
68
67
|
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
gap: var(
|
|
69
|
+
--kbq-toast-size-button-stack-content-gap-horizontal,
|
|
70
|
+
map.get($tokens, toast-size-button-stack-content-gap-horizontal)
|
|
71
|
+
);
|
|
71
72
|
|
|
72
|
-
|
|
73
|
-
|
|
73
|
+
& * + .kbq-link {
|
|
74
|
+
margin-left: 12px;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
74
77
|
|
|
75
|
-
|
|
78
|
+
.kbq-toast__close-button {
|
|
79
|
+
margin-top: var(--kbq-toast-size-close-button-margin-top, map.get($tokens, toast-size-close-button-margin-top));
|
|
80
|
+
margin-right: var(
|
|
81
|
+
--kbq-toast-size-close-button-margin-right, map.get($tokens, toast-size-close-button-margin-right)
|
|
82
|
+
);
|
|
76
83
|
}
|
package/toast/toast.module.d.ts
CHANGED
|
@@ -8,6 +8,6 @@ import * as i6 from "@koobiq/components/icon";
|
|
|
8
8
|
import * as i7 from "@koobiq/components/button";
|
|
9
9
|
export declare class KbqToastModule {
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqToastModule, never>;
|
|
11
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqToastModule, [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.A11yModule, typeof i6.KbqIconModule, typeof i7.KbqButtonModule],
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqToastModule, [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent, typeof i1.KbqToastCloseButton], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.A11yModule, typeof i6.KbqIconModule, typeof i7.KbqButtonModule], [typeof i1.KbqToastComponent, typeof i2.KbqToastContainerComponent, typeof i1.KbqToastCloseButton]>;
|
|
12
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqToastModule>;
|
|
13
13
|
}
|
package/toast/toast.type.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { TemplateRef, InjectionToken } from '@angular/core';
|
|
2
|
-
export
|
|
2
|
+
export declare enum KbqToastStyle {
|
|
3
|
+
Contrast = "contrast",
|
|
4
|
+
Error = "error"
|
|
5
|
+
}
|
|
3
6
|
export declare enum KbqToastPosition {
|
|
4
7
|
TOP_RIGHT = "top-right",
|
|
5
8
|
TOP_LEFT = "top-left",
|
|
@@ -10,13 +13,13 @@ export declare enum KbqToastPosition {
|
|
|
10
13
|
CENTER = "center"
|
|
11
14
|
}
|
|
12
15
|
export declare class KbqToastData {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
icon?: TemplateRef<any
|
|
16
|
+
title?: string | TemplateRef<any>;
|
|
17
|
+
style?: KbqToastStyle | string;
|
|
18
|
+
icon?: TemplateRef<any> | boolean;
|
|
16
19
|
caption?: string | TemplateRef<any>;
|
|
17
20
|
content?: string | TemplateRef<any>;
|
|
18
21
|
actions?: TemplateRef<any>;
|
|
19
|
-
|
|
22
|
+
closeButton?: TemplateRef<any> | boolean;
|
|
20
23
|
}
|
|
21
24
|
export interface KbqToastConfig {
|
|
22
25
|
position: KbqToastPosition;
|
|
@@ -3,6 +3,6 @@ import { AnimationTriggerMetadata } from '@angular/animations';
|
|
|
3
3
|
* Animations used by KbqTooltip.
|
|
4
4
|
* @docs-private
|
|
5
5
|
*/
|
|
6
|
-
export declare const
|
|
6
|
+
export declare const kbqTooltipAnimations: {
|
|
7
7
|
readonly tooltipState: AnimationTriggerMetadata;
|
|
8
8
|
};
|
|
@@ -30,12 +30,12 @@ export declare class KbqTooltipComponent extends KbqPopUp {
|
|
|
30
30
|
}
|
|
31
31
|
export declare const KBQ_TOOLTIP_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
32
32
|
/** @docs-private */
|
|
33
|
-
export declare function
|
|
33
|
+
export declare function kbqTooltipScrollStrategyFactory(overlay: Overlay): () => ScrollStrategy;
|
|
34
34
|
/** @docs-private */
|
|
35
35
|
export declare const KBQ_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
36
36
|
provide: InjectionToken<() => ScrollStrategy>;
|
|
37
37
|
deps: (typeof Overlay)[];
|
|
38
|
-
useFactory: typeof
|
|
38
|
+
useFactory: typeof kbqTooltipScrollStrategyFactory;
|
|
39
39
|
};
|
|
40
40
|
export declare class KbqTooltipTrigger extends KbqPopUpTrigger<KbqTooltipComponent> {
|
|
41
41
|
get tooltipVisible(): boolean;
|
|
@@ -70,7 +70,7 @@ export declare class KbqTooltipTrigger extends KbqPopUpTrigger<KbqTooltipCompone
|
|
|
70
70
|
getOverlayHandleComponentType(): Type<KbqTooltipComponent>;
|
|
71
71
|
updateClassMap(newPlacement?: string): void;
|
|
72
72
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTooltipTrigger, [null, null, null, null, null, null, { optional: true; }]>;
|
|
73
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTooltipTrigger, "[
|
|
73
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqTooltipTrigger, "[kbqTooltip]", ["kbqTooltip"], { "tooltipVisible": { "alias": "mcVisible"; "required": false; }; "tooltipPlacement": { "alias": "mcPlacement"; "required": false; }; "tooltipPlacementPriority": { "alias": "mcPlacementPriority"; "required": false; }; "content": { "alias": "kbqTooltip"; "required": false; }; "disabled": { "alias": "kbqTooltipDisabled"; "required": false; }; "enterDelay": { "alias": "mcEnterDelay"; "required": false; }; "leaveDelay": { "alias": "mcLeaveDelay"; "required": false; }; "trigger": { "alias": "mcTrigger"; "required": false; }; "customClass": { "alias": "kbqTooltipClass"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "placementChange": "mcPlacementChange"; "visibleChange": "mcVisibleChange"; }, never, never, false, never>;
|
|
74
74
|
}
|
|
75
75
|
export declare class KbqWarningTooltipTrigger extends KbqTooltipTrigger {
|
|
76
76
|
get content(): string | TemplateRef<any>;
|
|
@@ -90,5 +90,5 @@ export declare class KbqExtendedTooltipTrigger extends KbqTooltipTrigger {
|
|
|
90
90
|
constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality);
|
|
91
91
|
updateData(): void;
|
|
92
92
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqExtendedTooltipTrigger, [null, null, null, null, null, null, { optional: true; }]>;
|
|
93
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqExtendedTooltipTrigger, "[mcExtendedTooltip]", ["mcExtendedTooltip"], { "content": { "alias": "mcExtendedTooltip"; "required": false; }; "header": { "alias": "
|
|
93
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqExtendedTooltipTrigger, "[mcExtendedTooltip]", ["mcExtendedTooltip"], { "content": { "alias": "mcExtendedTooltip"; "required": false; }; "header": { "alias": "kbqTooltipHeader"; "required": false; }; }, {}, never, never, false, never>;
|
|
94
94
|
}
|
package/tree/_tree-theme.scss
CHANGED
|
@@ -5,65 +5,77 @@
|
|
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
@mixin kbq-tree-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
@mixin kbq-tree-option($state) {
|
|
9
|
+
background: map.get($state, container-background);
|
|
10
|
+
|
|
11
|
+
.kbq-option-text {
|
|
12
|
+
color: map.get($state, text);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.kbq-icon {
|
|
16
|
+
color: map.get($state, icon);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.kbq-tree-node-toggle .kbq-icon {
|
|
20
|
+
color: map.get($state, tree-toggle);
|
|
21
|
+
}
|
|
11
22
|
|
|
12
|
-
|
|
23
|
+
.kbq-option-action .kbq-icon {
|
|
24
|
+
color: map.get($state, action-button);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.kbq-option-caption {
|
|
28
|
+
color: map.get($state, caption);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
13
31
|
|
|
14
|
-
$is-dark: map.get($theme, is-dark);
|
|
15
32
|
|
|
33
|
+
@mixin kbq-tree-theme($theme) {
|
|
16
34
|
.kbq-tree-selection:focus {
|
|
17
35
|
outline: none;
|
|
18
36
|
}
|
|
19
37
|
|
|
20
38
|
.kbq-tree-option {
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
&:hover {
|
|
24
|
-
background-color: map.get($background, overlay-hover);
|
|
25
|
-
}
|
|
39
|
+
$tree-item: map.get(map.get($theme, components), tree-item);
|
|
26
40
|
|
|
27
|
-
|
|
28
|
-
border-color: map.get(map.get($theme, states), focused-color);
|
|
41
|
+
@include kbq-tree-option(map.get($tree-item, default));
|
|
29
42
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
}
|
|
43
|
+
&:hover:not(.kbq-disabled):not([disabled]) {
|
|
44
|
+
@include kbq-tree-option(map.get($tree-item, hover));
|
|
33
45
|
}
|
|
34
46
|
|
|
35
|
-
&.kbq-
|
|
36
|
-
|
|
47
|
+
&.kbq-focused,
|
|
48
|
+
&.kbq-active {
|
|
49
|
+
border-color: map.get(map.get($tree-item, focused), focus-outline);
|
|
37
50
|
}
|
|
38
51
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
color: map.get($foreground, text-disabled);
|
|
43
|
-
}
|
|
44
|
-
}
|
|
52
|
+
&.kbq-selected {
|
|
53
|
+
@include kbq-tree-option(map.get($tree-item, selected));
|
|
45
54
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
color: kbq-color($secondary, 10);
|
|
55
|
+
&:hover:not(.kbq-disabled):not([disabled]) {
|
|
56
|
+
@include kbq-tree-option(map.get($tree-item, selected-hover));
|
|
57
|
+
}
|
|
50
58
|
}
|
|
51
59
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
60
|
+
&.kbq-disabled,
|
|
61
|
+
&[disabled] {
|
|
62
|
+
@include kbq-tree-option(map.get($tree-item, disabled));
|
|
55
63
|
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
& .kbq-icon {
|
|
65
|
+
cursor: default;
|
|
66
|
+
}
|
|
58
67
|
}
|
|
59
68
|
}
|
|
60
|
-
/* stylelint-enable no-descending-specificity */
|
|
61
69
|
}
|
|
62
70
|
|
|
63
71
|
@mixin kbq-tree-typography($config) {
|
|
64
72
|
$tokens: map.get($config, tokens);
|
|
65
73
|
|
|
66
74
|
.kbq-tree-option {
|
|
67
|
-
@include kbq-typography-level-to-styles($config, map.get($tokens, tree-font-
|
|
75
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, tree-font-text));
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.kbq-tree-option-caption {
|
|
79
|
+
@include kbq-typography-level-to-styles($config, map.get($tokens, tree-font-caption));
|
|
68
80
|
}
|
|
69
81
|
}
|
|
@@ -27,7 +27,6 @@ export declare class KbqTreeOption extends KbqTreeNode<KbqTreeOption> implements
|
|
|
27
27
|
readonly onBlur: Subject<KbqTreeOptionEvent>;
|
|
28
28
|
preventBlur: boolean;
|
|
29
29
|
parentTextElement: ElementRef;
|
|
30
|
-
toggleWrapper: ElementRef;
|
|
31
30
|
toggleElementDirective: KbqTreeNodeToggleBaseDirective<KbqTreeOption>;
|
|
32
31
|
toggleElementComponent: KbqTreeNodeToggleBaseDirective<KbqTreeOption>;
|
|
33
32
|
pseudoCheckbox: KbqPseudoCheckbox;
|