@koobiq/components 16.0.0-beta.2 → 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/autocomplete/autocomplete.scss +0 -3
- package/button/button.scss +5 -2
- package/core/common-behaviors/color.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 +3 -0
- 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/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.component.mjs +2 -2
- package/esm2022/badge/badge.component.mjs +1 -1
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +3 -3
- package/esm2022/core/common-behaviors/color.mjs +1 -1
- 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/version.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 +4 -4
- package/esm2022/form-field/password-toggle.mjs +2 -2
- package/esm2022/icon/icon.component.mjs +3 -3
- 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/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 +4 -4
- 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-list.component.mjs +2 -2
- 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/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 +2 -2
- package/fesm2022/koobiq-components-autocomplete.mjs.map +1 -1
- package/fesm2022/koobiq-components-badge.mjs.map +1 -1
- package/fesm2022/koobiq-components-button.mjs +2 -2
- package/fesm2022/koobiq-components-button.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +2 -2
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +8 -7
- package/fesm2022/koobiq-components-core.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 +4 -4
- 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-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-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 +3 -3
- 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 +2 -2
- package/fesm2022/koobiq-components-tags.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-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/input/input.scss +3 -1
- package/link/_link-theme.scss +1 -3
- 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 +9 -3
- 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-list.scss +20 -16
- 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/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/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-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/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;
|
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;
|
package/tree/tree-option.scss
CHANGED
|
@@ -1,43 +1,59 @@
|
|
|
1
1
|
@use 'sass:meta';
|
|
2
2
|
@use 'sass:map';
|
|
3
3
|
|
|
4
|
+
@use '../core/styles/common';
|
|
4
5
|
@use '../core/styles/tokens';
|
|
5
6
|
|
|
6
7
|
|
|
7
8
|
$tokens: meta.module-variables(tokens) !default;
|
|
8
9
|
|
|
10
|
+
|
|
9
11
|
.kbq-tree-option {
|
|
12
|
+
$padding-vertical: map.get($tokens, tree-size-container-padding-vertical);
|
|
13
|
+
$padding-right: map.get($tokens, tree-size-container-padding-right);
|
|
14
|
+
|
|
15
|
+
$outline-width: map.get($tokens, tree-size-container-focus-outline-width);
|
|
16
|
+
|
|
10
17
|
box-sizing: border-box;
|
|
11
18
|
|
|
12
19
|
display: flex;
|
|
13
20
|
align-items: center;
|
|
14
21
|
|
|
15
|
-
height:
|
|
22
|
+
min-height: 32px;
|
|
16
23
|
|
|
17
24
|
word-wrap: break-word;
|
|
18
25
|
|
|
19
|
-
border:
|
|
26
|
+
border-width: var(--kbq-tree-size-container-focus-outline-width, $outline-width);
|
|
27
|
+
border-style: solid;
|
|
28
|
+
border-color: transparent;
|
|
29
|
+
|
|
30
|
+
padding-top: calc(
|
|
31
|
+
var(--kbq-tree-size-container-padding-vertical, $padding-vertical) -
|
|
32
|
+
var(--kbq-tree-size-container-focus-outline-width, $outline-width)
|
|
33
|
+
);
|
|
34
|
+
padding-right: calc(
|
|
35
|
+
var(--kbq-tree-size-container-padding-right, $padding-right) -
|
|
36
|
+
var(--kbq-tree-size-container-focus-outline-width, $outline-width)
|
|
37
|
+
);
|
|
38
|
+
padding-bottom: calc(
|
|
39
|
+
var(--kbq-tree-size-container-padding-vertical, $padding-vertical) -
|
|
40
|
+
var(--kbq-tree-size-container-focus-outline-width, $outline-width)
|
|
41
|
+
);
|
|
42
|
+
|
|
43
|
+
gap: var(
|
|
44
|
+
--kbq-tree-size-container-content-gap-horizontal, map.get($tokens, tree-size-container-content-gap-horizontal)
|
|
45
|
+
);
|
|
20
46
|
|
|
21
47
|
& .kbq-option-text {
|
|
22
|
-
|
|
23
|
-
flex-grow: 1;
|
|
48
|
+
$tokens: meta.module-variables(tokens) !default;
|
|
24
49
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
white-space: nowrap;
|
|
28
|
-
text-overflow: ellipsis;
|
|
29
|
-
|
|
30
|
-
margin-right: var(--kbq-tree-size-padding-right, map.get($tokens, tree-size-padding-right));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
& > .kbq-icon, > .toggle-wrapper > .kbq-icon {
|
|
34
|
-
margin-right: var(--kbq-tree-size-icon-padding, map.get($tokens, tree-size-icon-padding));
|
|
50
|
+
@include common.kbq-line-wrapper-base();
|
|
51
|
+
display: inline-block;
|
|
35
52
|
|
|
36
|
-
|
|
37
|
-
}
|
|
53
|
+
@include common.kbq-truncate-line();
|
|
38
54
|
|
|
39
|
-
|
|
40
|
-
|
|
55
|
+
padding-top: var(--kbq-list-size-text-padding-vertical, map.get($tokens, list-size-text-padding-vertical));
|
|
56
|
+
padding-bottom: var(--kbq-list-size-text-padding-vertical, map.get($tokens, list-size-text-padding-vertical));
|
|
41
57
|
}
|
|
42
58
|
|
|
43
59
|
&:focus {
|
|
@@ -48,11 +64,6 @@ $tokens: meta.module-variables(tokens) !default;
|
|
|
48
64
|
cursor: pointer;
|
|
49
65
|
}
|
|
50
66
|
|
|
51
|
-
& > .kbq-pseudo-checkbox,
|
|
52
|
-
& > .kbq-checkbox {
|
|
53
|
-
margin-right: var(--kbq-tree-size-icon-padding, map.get($tokens, tree-size-icon-padding));
|
|
54
|
-
}
|
|
55
|
-
|
|
56
67
|
& .kbq-option-action {
|
|
57
68
|
display: none;
|
|
58
69
|
}
|
package/tree/tree.module.d.ts
CHANGED
|
@@ -9,8 +9,9 @@ import * as i7 from "./tree-option.component";
|
|
|
9
9
|
import * as i8 from "./toggle";
|
|
10
10
|
import * as i9 from "@angular/common";
|
|
11
11
|
import * as i10 from "@koobiq/components/core";
|
|
12
|
+
import * as i11 from "@koobiq/components/icon";
|
|
12
13
|
export declare class KbqTreeModule {
|
|
13
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<KbqTreeModule, never>;
|
|
14
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTreeModule, [typeof i1.KbqTreeNodeOutlet, typeof i2.KbqTreeNodeDef, typeof i3.KbqTreeNode, typeof i4.KbqTreeNodePadding, typeof i5.KbqTree, typeof i6.KbqTreeSelection, typeof i7.KbqTreeOption, typeof i8.KbqTreeNodeToggleComponent, typeof i8.KbqTreeNodeToggleDirective], [typeof i9.CommonModule, typeof i10.KbqPseudoCheckboxModule], [typeof i1.KbqTreeNodeOutlet, typeof i2.KbqTreeNodeDef, typeof i3.KbqTreeNode, typeof i4.KbqTreeNodePadding, typeof i5.KbqTree, typeof i6.KbqTreeSelection, typeof i7.KbqTreeOption, typeof i8.KbqTreeNodeToggleComponent, typeof i8.KbqTreeNodeToggleDirective]>;
|
|
15
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<KbqTreeModule, [typeof i1.KbqTreeNodeOutlet, typeof i2.KbqTreeNodeDef, typeof i3.KbqTreeNode, typeof i4.KbqTreeNodePadding, typeof i5.KbqTree, typeof i6.KbqTreeSelection, typeof i7.KbqTreeOption, typeof i8.KbqTreeNodeToggleComponent, typeof i8.KbqTreeNodeToggleDirective], [typeof i9.CommonModule, typeof i10.KbqPseudoCheckboxModule, typeof i11.KbqIconModule], [typeof i1.KbqTreeNodeOutlet, typeof i2.KbqTreeNodeDef, typeof i3.KbqTreeNode, typeof i4.KbqTreeNodePadding, typeof i5.KbqTree, typeof i6.KbqTreeSelection, typeof i7.KbqTreeOption, typeof i8.KbqTreeNodeToggleComponent, typeof i8.KbqTreeNodeToggleDirective]>;
|
|
15
16
|
static ɵinj: i0.ɵɵInjectorDeclaration<KbqTreeModule>;
|
|
16
17
|
}
|
|
@@ -22,12 +22,20 @@
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
.kbq-
|
|
25
|
+
.kbq-select__placeholder {
|
|
26
|
+
text-overflow: ellipsis;
|
|
27
|
+
|
|
26
28
|
color: map.get($foreground, text-disabled);
|
|
27
29
|
}
|
|
28
30
|
|
|
29
31
|
.kbq-tree-select__panel {
|
|
30
32
|
@include popup-params($theme);
|
|
33
|
+
|
|
34
|
+
& .kbq-tree-select__footer {
|
|
35
|
+
$popup: map.get(map.get($theme, components), popup);
|
|
36
|
+
|
|
37
|
+
border-color: map.get($popup, border);
|
|
38
|
+
}
|
|
31
39
|
}
|
|
32
40
|
}
|
|
33
41
|
|