@koobiq/components 17.0.0-rc.2 → 17.0.0-rc.4
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 +47 -20
- package/alert/alert.component.d.ts +23 -3
- package/alert/alert.component.scss +89 -56
- package/code-block/_code-block-theme.scss +23 -1
- package/code-block/actionbar.component.scss +2 -2
- package/code-block/code-block.component.d.ts +12 -4
- package/code-block/code-block.scss +36 -9
- package/core/locales/formatters.d.ts +96 -0
- package/core/locales/locale-service.d.ts +96 -0
- package/core/pop-up/pop-up-trigger.d.ts +3 -1
- package/core/styles/_variables.scss +1 -1
- package/core/styles/common/_tokens.scss +28 -0
- package/core/styles/theming/_components-theming.scss +67 -10
- package/core/styles/theming/_theming.scss +2 -2
- package/core/styles/typography/_typography.scss +35 -2
- package/core/utils/data-size/config.d.ts +20 -2
- package/core/utils/data-size/data-size.pipe.d.ts +10 -9
- package/core/utils/data-size/size.d.ts +3 -4
- package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
- package/esm2022/alert/alert.component.mjs +52 -5
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +58 -14
- package/esm2022/core/animation/select-animations.mjs +4 -4
- package/esm2022/core/locales/formatters.mjs +97 -1
- package/esm2022/core/pop-up/pop-up-trigger.mjs +18 -11
- package/esm2022/core/utils/data-size/config.mjs +5 -17
- package/esm2022/core/utils/data-size/data-size.pipe.mjs +36 -22
- package/esm2022/core/utils/data-size/size.mjs +10 -14
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/dropdown/dropdown-animations.mjs +4 -4
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
- package/esm2022/file-upload/file-upload.module.mjs +4 -5
- package/esm2022/form-field/password-toggle.mjs +11 -9
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +5 -6
- package/esm2022/navbar/navbar-item.component.mjs +9 -9
- package/esm2022/select/select-option.directive.mjs +7 -5
- package/esm2022/splitter/splitter.component.mjs +36 -16
- package/esm2022/textarea/textarea.component.mjs +12 -10
- package/esm2022/timezone/timezone-option.directive.mjs +7 -5
- package/esm2022/title/title.directive.mjs +2 -3
- package/esm2022/toast/toast-container.component.mjs +2 -2
- package/esm2022/toast/toast.component.mjs +4 -4
- package/esm2022/toast/toast.service.mjs +2 -2
- package/esm2022/toast/toast.type.mjs +3 -1
- package/esm2022/tooltip/tooltip.component.mjs +26 -12
- package/esm2022/tree/padding.directive.mjs +2 -2
- package/fesm2022/koobiq-components-alert.mjs +52 -5
- package/fesm2022/koobiq-components-alert.mjs.map +1 -1
- package/fesm2022/koobiq-components-code-block.mjs +57 -14
- package/fesm2022/koobiq-components-code-block.mjs.map +1 -1
- package/fesm2022/koobiq-components-core.mjs +160 -62
- package/fesm2022/koobiq-components-core.mjs.map +1 -1
- package/fesm2022/koobiq-components-dropdown.mjs +3 -3
- package/fesm2022/koobiq-components-dropdown.mjs.map +1 -1
- package/fesm2022/koobiq-components-ellipsis-center.mjs +5 -4
- package/fesm2022/koobiq-components-ellipsis-center.mjs.map +1 -1
- package/fesm2022/koobiq-components-file-upload.mjs +3 -4
- package/fesm2022/koobiq-components-file-upload.mjs.map +1 -1
- package/fesm2022/koobiq-components-form-field.mjs +15 -15
- package/fesm2022/koobiq-components-form-field.mjs.map +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs +1 -1
- package/fesm2022/koobiq-components-loader-overlay.mjs.map +1 -1
- package/fesm2022/koobiq-components-modal.mjs +4 -5
- package/fesm2022/koobiq-components-modal.mjs.map +1 -1
- package/fesm2022/koobiq-components-navbar.mjs +8 -8
- package/fesm2022/koobiq-components-navbar.mjs.map +1 -1
- package/fesm2022/koobiq-components-select.mjs +5 -4
- package/fesm2022/koobiq-components-select.mjs.map +1 -1
- package/fesm2022/koobiq-components-splitter.mjs +35 -15
- package/fesm2022/koobiq-components-splitter.mjs.map +1 -1
- package/fesm2022/koobiq-components-textarea.mjs +11 -9
- package/fesm2022/koobiq-components-textarea.mjs.map +1 -1
- package/fesm2022/koobiq-components-timezone.mjs +5 -4
- package/fesm2022/koobiq-components-timezone.mjs.map +1 -1
- package/fesm2022/koobiq-components-title.mjs +1 -2
- package/fesm2022/koobiq-components-title.mjs.map +1 -1
- package/fesm2022/koobiq-components-toast.mjs +8 -6
- package/fesm2022/koobiq-components-toast.mjs.map +1 -1
- package/fesm2022/koobiq-components-tooltip.mjs +24 -11
- package/fesm2022/koobiq-components-tooltip.mjs.map +1 -1
- package/fesm2022/koobiq-components-tree.mjs +1 -1
- package/fesm2022/koobiq-components-tree.mjs.map +1 -1
- package/file-upload/file-upload.module.d.ts +1 -1
- package/form-field/password-toggle.d.ts +3 -2
- package/link/_link-theme.scss +4 -2
- package/navbar/navbar-item.component.d.ts +4 -4
- package/package.json +6 -6
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/light-theme.css +1 -1
- package/schematics/ng-add/index.js +4 -4
- package/select/select-option.directive.d.ts +3 -2
- package/splitter/splitter.component.d.ts +10 -5
- package/timezone/timezone-option.directive.d.ts +3 -2
- package/title/title.directive.d.ts +0 -1
- package/toast/_toast-theme.scss +10 -5
- package/toast/toast-container.component.scss +4 -1
- package/toast/toast.component.scss +22 -17
- package/toast/toast.type.d.ts +2 -0
- package/tooltip/tooltip.component.d.ts +12 -8
|
@@ -27,6 +27,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
27
27
|
fractionSeparator: string;
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
+
sizeUnits: {
|
|
31
|
+
defaultUnitSystem: string;
|
|
32
|
+
defaultPrecision: number;
|
|
33
|
+
unitSystems: {
|
|
34
|
+
SI: {
|
|
35
|
+
abbreviations: string[];
|
|
36
|
+
base: number;
|
|
37
|
+
power: number;
|
|
38
|
+
};
|
|
39
|
+
IEC: {
|
|
40
|
+
abbreviations: string[];
|
|
41
|
+
base: number;
|
|
42
|
+
power: number;
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
30
46
|
select: {
|
|
31
47
|
hiddenItemsText: string;
|
|
32
48
|
};
|
|
@@ -76,6 +92,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
76
92
|
fractionSeparator: string;
|
|
77
93
|
};
|
|
78
94
|
};
|
|
95
|
+
sizeUnits: {
|
|
96
|
+
defaultUnitSystem: string;
|
|
97
|
+
defaultPrecision: number;
|
|
98
|
+
unitSystems: {
|
|
99
|
+
SI: {
|
|
100
|
+
abbreviations: string[];
|
|
101
|
+
base: number;
|
|
102
|
+
power: number;
|
|
103
|
+
};
|
|
104
|
+
IEC: {
|
|
105
|
+
abbreviations: string[];
|
|
106
|
+
base: number;
|
|
107
|
+
power: number;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
79
111
|
select: {
|
|
80
112
|
hiddenItemsText: string;
|
|
81
113
|
};
|
|
@@ -125,6 +157,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
125
157
|
fractionSeparator: string;
|
|
126
158
|
};
|
|
127
159
|
};
|
|
160
|
+
sizeUnits: {
|
|
161
|
+
defaultUnitSystem: string;
|
|
162
|
+
defaultPrecision: number;
|
|
163
|
+
unitSystems: {
|
|
164
|
+
SI: {
|
|
165
|
+
abbreviations: string[];
|
|
166
|
+
base: number;
|
|
167
|
+
power: number;
|
|
168
|
+
};
|
|
169
|
+
IEC: {
|
|
170
|
+
abbreviations: string[];
|
|
171
|
+
base: number;
|
|
172
|
+
power: number;
|
|
173
|
+
};
|
|
174
|
+
};
|
|
175
|
+
};
|
|
128
176
|
select: {
|
|
129
177
|
hiddenItemsText: string;
|
|
130
178
|
};
|
|
@@ -174,6 +222,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
174
222
|
fractionSeparator: string;
|
|
175
223
|
};
|
|
176
224
|
};
|
|
225
|
+
sizeUnits: {
|
|
226
|
+
defaultUnitSystem: string;
|
|
227
|
+
defaultPrecision: number;
|
|
228
|
+
unitSystems: {
|
|
229
|
+
SI: {
|
|
230
|
+
abbreviations: string[];
|
|
231
|
+
base: number;
|
|
232
|
+
power: number;
|
|
233
|
+
};
|
|
234
|
+
IEC: {
|
|
235
|
+
abbreviations: string[];
|
|
236
|
+
base: number;
|
|
237
|
+
power: number;
|
|
238
|
+
};
|
|
239
|
+
};
|
|
240
|
+
};
|
|
177
241
|
select: {
|
|
178
242
|
hiddenItemsText: string;
|
|
179
243
|
};
|
|
@@ -224,6 +288,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
224
288
|
startFormattingFrom: number;
|
|
225
289
|
};
|
|
226
290
|
};
|
|
291
|
+
sizeUnits: {
|
|
292
|
+
defaultUnitSystem: string;
|
|
293
|
+
defaultPrecision: number;
|
|
294
|
+
unitSystems: {
|
|
295
|
+
SI: {
|
|
296
|
+
abbreviations: string[];
|
|
297
|
+
base: number;
|
|
298
|
+
power: number;
|
|
299
|
+
};
|
|
300
|
+
IEC: {
|
|
301
|
+
abbreviations: string[];
|
|
302
|
+
base: number;
|
|
303
|
+
power: number;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
};
|
|
227
307
|
select: {
|
|
228
308
|
hiddenItemsText: string;
|
|
229
309
|
};
|
|
@@ -275,6 +355,22 @@ export declare function KBQ_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
|
275
355
|
fractionSeparator: string;
|
|
276
356
|
};
|
|
277
357
|
};
|
|
358
|
+
sizeUnits: {
|
|
359
|
+
defaultUnitSystem: string;
|
|
360
|
+
defaultPrecision: number;
|
|
361
|
+
unitSystems: {
|
|
362
|
+
SI: {
|
|
363
|
+
abbreviations: string[];
|
|
364
|
+
base: number;
|
|
365
|
+
power: number;
|
|
366
|
+
};
|
|
367
|
+
IEC: {
|
|
368
|
+
abbreviations: string[];
|
|
369
|
+
base: number;
|
|
370
|
+
power: number;
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
};
|
|
278
374
|
select: {
|
|
279
375
|
hiddenItemsText: string;
|
|
280
376
|
};
|
|
@@ -33,12 +33,13 @@ export declare abstract class KbqPopUpTrigger<T> {
|
|
|
33
33
|
protected overlayRef: OverlayRef | null;
|
|
34
34
|
protected portal: ComponentPortal<T>;
|
|
35
35
|
protected instance: any | null;
|
|
36
|
-
protected listeners: Map<string,
|
|
36
|
+
protected listeners: Map<string, EventListener>;
|
|
37
37
|
protected closingActionsSubscription: Subscription;
|
|
38
38
|
protected readonly availablePositions: {
|
|
39
39
|
[key: string]: ConnectionPositionPair;
|
|
40
40
|
};
|
|
41
41
|
protected readonly destroyed: Subject<void>;
|
|
42
|
+
protected triggerName: string;
|
|
42
43
|
protected constructor(overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction?: Directionality | undefined);
|
|
43
44
|
abstract updateClassMap(newPlacement?: string): void;
|
|
44
45
|
abstract updateData(): void;
|
|
@@ -63,6 +64,7 @@ export declare abstract class KbqPopUpTrigger<T> {
|
|
|
63
64
|
protected getPriorityPlacementStrategy(value: string | string[]): ConnectionPositionPair[];
|
|
64
65
|
protected getPrioritizedPositions(): ConnectionPositionPair[];
|
|
65
66
|
protected clearListeners(): void;
|
|
67
|
+
private createListener;
|
|
66
68
|
private addEventListener;
|
|
67
69
|
private removeEventListener;
|
|
68
70
|
private subscribeOnClosingActions;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use 'sass:meta';
|
|
3
|
+
@use 'sass:string';
|
|
4
|
+
@use 'sass:list';
|
|
5
|
+
|
|
6
|
+
@use '../tokens';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
$tokens: meta.module-variables(tokens) !default;
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@function cssVar($name) {
|
|
13
|
+
@if string.index($name, light-) {
|
|
14
|
+
$short-name: '';
|
|
15
|
+
|
|
16
|
+
@each $part in string.split($name, '-light') {
|
|
17
|
+
$short-name: $short-name + $part;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
@return var(--kbq-#{$short-name}, map.get($tokens, $name));
|
|
21
|
+
} @else {
|
|
22
|
+
@return var(--kbq-#{$name}, map.get($tokens, $name));
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@function getToken($name) {
|
|
27
|
+
@return map.get($tokens, $name);
|
|
28
|
+
}
|
|
@@ -1,15 +1,60 @@
|
|
|
1
1
|
@function kbq-components-theme($tokens, $scheme) {
|
|
2
2
|
$alert: (
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
default: (
|
|
4
|
+
contrast: (
|
|
5
|
+
background: map-get($tokens, 'alert-#{$scheme}-default-contrast-container-background'),
|
|
6
|
+
title: map-get($tokens, 'alert-#{$scheme}-default-contrast-container-title'),
|
|
7
|
+
text: map-get($tokens, 'alert-#{$scheme}-default-contrast-container-text')
|
|
8
|
+
),
|
|
9
|
+
error: (
|
|
10
|
+
background: map-get($tokens, 'alert-#{$scheme}-default-error-container-background'),
|
|
11
|
+
title: map-get($tokens, 'alert-#{$scheme}-default-error-container-title'),
|
|
12
|
+
text: map-get($tokens, 'alert-#{$scheme}-default-error-container-text')
|
|
13
|
+
),
|
|
14
|
+
warning: (
|
|
15
|
+
background: map-get($tokens, 'alert-#{$scheme}-default-warning-container-background'),
|
|
16
|
+
title: map-get($tokens, 'alert-#{$scheme}-default-warning-container-title'),
|
|
17
|
+
text: map-get($tokens, 'alert-#{$scheme}-default-warning-container-text')
|
|
18
|
+
),
|
|
19
|
+
success: (
|
|
20
|
+
background: map-get($tokens, 'alert-#{$scheme}-default-success-container-background'),
|
|
21
|
+
title: map-get($tokens, 'alert-#{$scheme}-default-success-container-title'),
|
|
22
|
+
text: map-get($tokens, 'alert-#{$scheme}-default-success-container-text')
|
|
23
|
+
),
|
|
24
|
+
theme: (
|
|
25
|
+
background: map-get($tokens, 'alert-#{$scheme}-default-theme-container-background'),
|
|
26
|
+
title: map-get($tokens, 'alert-#{$scheme}-default-theme-container-title'),
|
|
27
|
+
text: map-get($tokens, 'alert-#{$scheme}-default-theme-container-text')
|
|
28
|
+
)
|
|
7
29
|
),
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
30
|
+
colored: (
|
|
31
|
+
contrast: (
|
|
32
|
+
background: map-get($tokens, 'alert-#{$scheme}-colored-contrast-container-background'),
|
|
33
|
+
title: map-get($tokens, 'alert-#{$scheme}-colored-contrast-container-title'),
|
|
34
|
+
text: map-get($tokens, 'alert-#{$scheme}-colored-contrast-container-text')
|
|
35
|
+
),
|
|
36
|
+
error: (
|
|
37
|
+
background: map-get($tokens, 'alert-#{$scheme}-colored-error-container-background'),
|
|
38
|
+
title: map-get($tokens, 'alert-#{$scheme}-colored-error-container-title'),
|
|
39
|
+
text: map-get($tokens, 'alert-#{$scheme}-colored-error-container-text')
|
|
40
|
+
),
|
|
41
|
+
warning: (
|
|
42
|
+
background: map-get($tokens, 'alert-#{$scheme}-colored-warning-container-background'),
|
|
43
|
+
title: map-get($tokens, 'alert-#{$scheme}-colored-warning-container-title'),
|
|
44
|
+
text: map-get($tokens, 'alert-#{$scheme}-colored-warning-container-text')
|
|
45
|
+
),
|
|
46
|
+
success: (
|
|
47
|
+
background: map-get($tokens, 'alert-#{$scheme}-colored-success-container-background'),
|
|
48
|
+
title: map-get($tokens, 'alert-#{$scheme}-colored-success-container-title'),
|
|
49
|
+
text: map-get($tokens, 'alert-#{$scheme}-colored-success-container-text')
|
|
50
|
+
),
|
|
51
|
+
theme: (
|
|
52
|
+
background: map-get($tokens, 'alert-#{$scheme}-colored-theme-container-background'),
|
|
53
|
+
title: map-get($tokens, 'alert-#{$scheme}-colored-theme-container-title'),
|
|
54
|
+
text: map-get($tokens, 'alert-#{$scheme}-colored-theme-container-text')
|
|
55
|
+
)
|
|
12
56
|
)
|
|
57
|
+
|
|
13
58
|
);
|
|
14
59
|
|
|
15
60
|
$popup: (
|
|
@@ -1739,13 +1784,25 @@
|
|
|
1739
1784
|
background: map-get($tokens, 'toast-#{$scheme}-contrast-container-background'),
|
|
1740
1785
|
title: map-get($tokens, 'toast-#{$scheme}-contrast-container-title'),
|
|
1741
1786
|
text: map-get($tokens, 'toast-#{$scheme}-contrast-container-text'),
|
|
1742
|
-
box-shadow: map-get($tokens, 'toast-#{$scheme}-contrast-container-
|
|
1787
|
+
box-shadow: map-get($tokens, 'toast-#{$scheme}-contrast-container-shadow')
|
|
1788
|
+
),
|
|
1789
|
+
success: (
|
|
1790
|
+
background: map-get($tokens, 'toast-#{$scheme}-success-container-background'),
|
|
1791
|
+
title: map-get($tokens, 'toast-#{$scheme}-success-container-title'),
|
|
1792
|
+
text: map-get($tokens, 'toast-#{$scheme}-success-container-text'),
|
|
1793
|
+
box-shadow: map-get($tokens, 'toast-#{$scheme}-success-container-shadow')
|
|
1794
|
+
),
|
|
1795
|
+
warning: (
|
|
1796
|
+
background: map-get($tokens, 'toast-#{$scheme}-warning-container-background'),
|
|
1797
|
+
title: map-get($tokens, 'toast-#{$scheme}-warning-container-title'),
|
|
1798
|
+
text: map-get($tokens, 'toast-#{$scheme}-warning-container-text'),
|
|
1799
|
+
box-shadow: map-get($tokens, 'toast-#{$scheme}-warning-container-shadow')
|
|
1743
1800
|
),
|
|
1744
1801
|
error: (
|
|
1745
1802
|
background: map-get($tokens, 'toast-#{$scheme}-error-container-background'),
|
|
1746
1803
|
title: map-get($tokens, 'toast-#{$scheme}-error-container-title'),
|
|
1747
1804
|
text: map-get($tokens, 'toast-#{$scheme}-error-container-text'),
|
|
1748
|
-
box-shadow: map-get($tokens, 'toast-#{$scheme}-error-container-
|
|
1805
|
+
box-shadow: map-get($tokens, 'toast-#{$scheme}-error-container-shadow')
|
|
1749
1806
|
)
|
|
1750
1807
|
);
|
|
1751
1808
|
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
}
|
|
249
249
|
|
|
250
250
|
@function kbq-light-theme($tokens) {
|
|
251
|
-
$scheme: 'light
|
|
251
|
+
$scheme: 'light';
|
|
252
252
|
|
|
253
253
|
@return (
|
|
254
254
|
is-dark: false,
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
}
|
|
282
282
|
|
|
283
283
|
@function kbq-dark-theme($tokens) {
|
|
284
|
-
$scheme: 'dark
|
|
284
|
+
$scheme: 'dark';
|
|
285
285
|
|
|
286
286
|
@return (
|
|
287
287
|
is-dark: true,
|
|
@@ -13,6 +13,10 @@
|
|
|
13
13
|
display-2: map.get($typography, display-2),
|
|
14
14
|
display-3: map.get($typography, display-3),
|
|
15
15
|
|
|
16
|
+
display-1-strong: map.get($typography, display-1-strong),
|
|
17
|
+
display-2-strong: map.get($typography, display-2-strong),
|
|
18
|
+
display-3-strong: map.get($typography, display-3-strong),
|
|
19
|
+
|
|
16
20
|
headline: map.get($typography, headline),
|
|
17
21
|
subheading: map.get($typography, subheading),
|
|
18
22
|
title: map.get($typography, title),
|
|
@@ -35,12 +39,17 @@
|
|
|
35
39
|
extra-small-text: map.get($typography, extra-small-text),
|
|
36
40
|
extra-small-text-caps: map.get($typography, extra-small-text-caps),
|
|
37
41
|
extra-small-text-mono: map.get($typography, extra-small-text-mono),
|
|
38
|
-
extra-small-text-strong:
|
|
42
|
+
extra-small-text-strong:map.get($typography, extra-small-text-strong),
|
|
39
43
|
|
|
40
44
|
//new
|
|
41
45
|
display-big: map.get($typography, display-big),
|
|
42
46
|
display-normal: map.get($typography, display-normal),
|
|
43
47
|
display-compact: map.get($typography, display-compact),
|
|
48
|
+
|
|
49
|
+
display-big-strong: map.get($typography, display-big-strong),
|
|
50
|
+
display-normal-strong: map.get($typography, display-normal-strong),
|
|
51
|
+
display-compact-strong: map.get($typography, display-compact-strong),
|
|
52
|
+
|
|
44
53
|
text-big: map.get($typography, text-big),
|
|
45
54
|
text-big-strong: map.get($typography, text-big-strong),
|
|
46
55
|
text-normal: map.get($typography, text-normal),
|
|
@@ -73,7 +82,7 @@
|
|
|
73
82
|
italic-compact-strong: map.get($typography, italic-compact-strong),
|
|
74
83
|
mono-codeblock: map.get($typography, mono-codeblock),
|
|
75
84
|
|
|
76
|
-
navbar-title:
|
|
85
|
+
navbar-title: map.get($typography, navbar-title)
|
|
77
86
|
);
|
|
78
87
|
|
|
79
88
|
@each $key, $level in $config {
|
|
@@ -132,6 +141,18 @@
|
|
|
132
141
|
@include kbq-typography-level-to-styles($config, display-3);
|
|
133
142
|
}
|
|
134
143
|
|
|
144
|
+
.kbq-display-1-strong {
|
|
145
|
+
@include kbq-typography-level-to-styles($config, display-1-strong);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.kbq-display-2-strong {
|
|
149
|
+
@include kbq-typography-level-to-styles($config, display-2-strong);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.kbq-display-3-strong {
|
|
153
|
+
@include kbq-typography-level-to-styles($config, display-3-strong);
|
|
154
|
+
}
|
|
155
|
+
|
|
135
156
|
.kbq-headline {
|
|
136
157
|
@include kbq-typography-level-to-styles($config, headline);
|
|
137
158
|
}
|
|
@@ -209,14 +230,26 @@
|
|
|
209
230
|
@include kbq-typography-level-to-styles($config, display-big);
|
|
210
231
|
}
|
|
211
232
|
|
|
233
|
+
.kbq-display-big-strong {
|
|
234
|
+
@include kbq-typography-level-to-styles($config, display-big-strong);
|
|
235
|
+
}
|
|
236
|
+
|
|
212
237
|
.kbq-display-normal {
|
|
213
238
|
@include kbq-typography-level-to-styles($config, display-normal);
|
|
214
239
|
}
|
|
215
240
|
|
|
241
|
+
.kbq-display-normal-strong {
|
|
242
|
+
@include kbq-typography-level-to-styles($config, display-normal-strong);
|
|
243
|
+
}
|
|
244
|
+
|
|
216
245
|
.kbq-display-compact {
|
|
217
246
|
@include kbq-typography-level-to-styles($config, display-compact);
|
|
218
247
|
}
|
|
219
248
|
|
|
249
|
+
.kbq-display-compact-strong {
|
|
250
|
+
@include kbq-typography-level-to-styles($config, display-compact-strong);
|
|
251
|
+
}
|
|
252
|
+
|
|
220
253
|
.kbq-text-big {
|
|
221
254
|
@include kbq-typography-level-to-styles($config, text-big);
|
|
222
255
|
}
|
|
@@ -1,9 +1,26 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
1
2
|
export declare enum MeasurementSystem {
|
|
2
3
|
SI = "SI",
|
|
3
4
|
IEC = "IEC"
|
|
4
5
|
}
|
|
5
|
-
export
|
|
6
|
-
defaultUnitSystem:
|
|
6
|
+
export interface SizeUnitsConfig {
|
|
7
|
+
defaultUnitSystem: string;
|
|
8
|
+
defaultPrecision: number;
|
|
9
|
+
unitSystems: {
|
|
10
|
+
[MeasurementSystem.SI]: {
|
|
11
|
+
abbreviations: string[];
|
|
12
|
+
base: number;
|
|
13
|
+
power: number;
|
|
14
|
+
};
|
|
15
|
+
[MeasurementSystem.IEC]: {
|
|
16
|
+
abbreviations: string[];
|
|
17
|
+
base: number;
|
|
18
|
+
power: number;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
export declare const KBQ_SIZE_UNITS_DEFAULT_CONFIG: {
|
|
23
|
+
defaultUnitSystem: string;
|
|
7
24
|
defaultPrecision: number;
|
|
8
25
|
unitSystems: {
|
|
9
26
|
SI: {
|
|
@@ -18,3 +35,4 @@ export declare const sizeUnitsConfig: {
|
|
|
18
35
|
};
|
|
19
36
|
};
|
|
20
37
|
};
|
|
38
|
+
export declare const KBQ_SIZE_UNITS_CONFIG: InjectionToken<SizeUnitsConfig>;
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { KbqLocaleService } from '../../locales';
|
|
3
|
+
import { SizeUnitsConfig } from './config';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class KbqDataSizePipe implements PipeTransform {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
static
|
|
12
|
-
static
|
|
6
|
+
readonly externalConfig: SizeUnitsConfig;
|
|
7
|
+
private localeService?;
|
|
8
|
+
private config;
|
|
9
|
+
constructor(externalConfig: SizeUnitsConfig, localeService?: KbqLocaleService | undefined);
|
|
10
|
+
transform(source: number, precision?: number, unitSystemName?: string): string;
|
|
11
|
+
private updateLocaleParams;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqDataSizePipe, [{ optional: true; }, { optional: true; }]>;
|
|
13
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<KbqDataSizePipe, "kbqDataSize", true>;
|
|
13
14
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export declare const formatDataSize: (value: number, systemCode?: MeasurementSystem, precision?: number) => {
|
|
1
|
+
export declare const formatDataSize: (value: number, precision: number, system: any) => {
|
|
3
2
|
value: string;
|
|
4
3
|
unit: string;
|
|
5
4
|
};
|
|
@@ -7,10 +6,10 @@ export declare const formatDataSize: (value: number, systemCode?: MeasurementSys
|
|
|
7
6
|
* Переводит байты в Кб, Мб, Гб
|
|
8
7
|
*
|
|
9
8
|
* @param value количество байт
|
|
10
|
-
* @param
|
|
9
|
+
* @param system система измерения
|
|
11
10
|
* @param threshold нижний порог подсчета
|
|
12
11
|
*/
|
|
13
|
-
export declare const getHumanizedBytes: (value: number,
|
|
12
|
+
export declare const getHumanizedBytes: (value: number, system: any, threshold?: number) => {
|
|
14
13
|
result: number;
|
|
15
14
|
unit: string;
|
|
16
15
|
};
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
1
2
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
3
|
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
3
4
|
import { ElementRef, OnInit, OnDestroy, NgZone, ViewContainerRef, Renderer2, AfterViewInit } from '@angular/core';
|
|
@@ -12,12 +13,12 @@ export declare class KbqEllipsisCenterDirective extends KbqTooltipTrigger implem
|
|
|
12
13
|
private _kbqEllipsisCenter;
|
|
13
14
|
private resizeSubscription;
|
|
14
15
|
private readonly debounceInterval;
|
|
15
|
-
constructor(overlay: Overlay, elementRef: ElementRef<HTMLElement>, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, renderer: Renderer2);
|
|
16
|
+
constructor(overlay: Overlay, elementRef: ElementRef<HTMLElement>, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, focusMonitor: FocusMonitor, renderer: Renderer2);
|
|
16
17
|
ngOnInit(): void;
|
|
17
18
|
ngAfterViewInit(): void;
|
|
18
19
|
ngOnDestroy(): void;
|
|
19
20
|
private refresh;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<KbqEllipsisCenterDirective, [null, null, null, null, null, null, { optional: true; }, null]>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<KbqEllipsisCenterDirective, [null, null, null, null, null, null, { optional: true; }, null, null]>;
|
|
21
22
|
static ɵdir: i0.ɵɵDirectiveDeclaration<KbqEllipsisCenterDirective, "[kbqEllipsisCenter]", never, { "kbqEllipsisCenter": { "alias": "kbqEllipsisCenter"; "required": false; }; "minVisibleLength": { "alias": "minVisibleLength"; "required": false; }; }, {}, never, never, false, never>;
|
|
22
23
|
}
|
|
23
24
|
export declare class KbqEllipsisCenterModule {
|
|
@@ -1,7 +1,20 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ContentChild, Directive, ViewEncapsulation } from '@angular/core';
|
|
2
|
-
import { KbqIconItem } from '@koobiq/components/icon';
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ContentChild, Directive, Input, ViewEncapsulation } from '@angular/core';
|
|
2
|
+
import { KbqIcon, KbqIconItem } from '@koobiq/components/icon';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "@angular/common";
|
|
5
|
+
export var KbqAlertStyles;
|
|
6
|
+
(function (KbqAlertStyles) {
|
|
7
|
+
KbqAlertStyles["Default"] = "default";
|
|
8
|
+
KbqAlertStyles["Colored"] = "colored";
|
|
9
|
+
})(KbqAlertStyles || (KbqAlertStyles = {}));
|
|
10
|
+
export var KbqAlertColors;
|
|
11
|
+
(function (KbqAlertColors) {
|
|
12
|
+
KbqAlertColors["Contrast"] = "contrast";
|
|
13
|
+
KbqAlertColors["Error"] = "error";
|
|
14
|
+
KbqAlertColors["Warning"] = "warning";
|
|
15
|
+
KbqAlertColors["Success"] = "success";
|
|
16
|
+
KbqAlertColors["Theme"] = "theme";
|
|
17
|
+
})(KbqAlertColors || (KbqAlertColors = {}));
|
|
5
18
|
export class KbqAlertTitle {
|
|
6
19
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqAlertTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
7
20
|
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.2.0", type: KbqAlertTitle, selector: "[kbq-alert-title]", host: { classAttribute: "kbq-alert__title" }, ngImport: i0 }); }
|
|
@@ -42,18 +55,46 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
|
|
|
42
55
|
}]
|
|
43
56
|
}] });
|
|
44
57
|
export class KbqAlert {
|
|
58
|
+
constructor() {
|
|
59
|
+
this.compact = false;
|
|
60
|
+
this.alertStyle = KbqAlertStyles.Default;
|
|
61
|
+
this._alertColor = KbqAlertColors.Contrast;
|
|
62
|
+
}
|
|
63
|
+
get alertColor() {
|
|
64
|
+
return `kbq-alert_${this._alertColor}`;
|
|
65
|
+
}
|
|
66
|
+
set alertColor(value) {
|
|
67
|
+
this._alertColor = value || KbqAlertColors.Contrast;
|
|
68
|
+
}
|
|
69
|
+
get isColored() {
|
|
70
|
+
return this.alertStyle === KbqAlertStyles.Colored;
|
|
71
|
+
}
|
|
72
|
+
ngAfterContentInit() {
|
|
73
|
+
const icon = this.icon || this.iconItem;
|
|
74
|
+
if (icon) {
|
|
75
|
+
icon.color = this._alertColor;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
45
78
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqAlert, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
46
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqAlert, selector: "kbq-alert", host: { properties: { "class.kbq-alert_dismissible": "closeButton" }, classAttribute: "kbq-alert" }, queries: [{ propertyName: "iconItem", first: true, predicate: KbqIconItem, descendants: true }, { propertyName: "title", first: true, predicate: KbqAlertTitle, descendants: true }, { propertyName: "control", first: true, predicate: KbqAlertControl, descendants: true }, { propertyName: "closeButton", first: true, predicate: KbqAlertCloseButton, descendants: true }], ngImport: i0, template: "<div class=\"kbq-alert__icon\" *ngIf=\"iconItem\">\n <ng-content select=\"[kbq-icon-item]\"></ng-content>\n</div>\n\n<div class=\"kbq-alert__content\">\n <ng-content select=\"[kbq-alert-title]\"></ng-content>\n\n <div class=\"kbq-alert__text\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"kbq-
|
|
79
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.2.0", type: KbqAlert, selector: "kbq-alert", inputs: { compact: "compact", alertStyle: "alertStyle", alertColor: "alertColor" }, host: { properties: { "class": "alertColor", "class.kbq-alert_normal": "!compact", "class.kbq-alert_compact": "compact", "class.kbq-alert_default": "!isColored", "class.kbq-alert_colored": "isColored", "class.kbq-alert_dismissible": "closeButton" }, classAttribute: "kbq-alert" }, queries: [{ propertyName: "iconItem", first: true, predicate: KbqIconItem, descendants: true }, { propertyName: "icon", first: true, predicate: KbqIcon, descendants: true }, { propertyName: "title", first: true, predicate: KbqAlertTitle, descendants: true }, { propertyName: "control", first: true, predicate: KbqAlertControl, descendants: true }, { propertyName: "closeButton", first: true, predicate: KbqAlertCloseButton, descendants: true }], ngImport: i0, template: "<div class=\"kbq-alert__icon\" [class.kbq-alert__icon_title]=\"title\" *ngIf=\"iconItem || icon\">\n <ng-content select=\"[kbq-icon-item],[kbq-icon]\"></ng-content>\n</div>\n\n<div class=\"kbq-alert__content\" [class.kbq-alert__content_title]=\"title\">\n <ng-content select=\"[kbq-alert-title]\"></ng-content>\n\n <div class=\"kbq-alert__text\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"kbq-alert__button-stack\" *ngIf=\"control\">\n <ng-content select=\"[kbq-alert-control]\"></ng-content>\n </div>\n</div>\n\n<div class=\"kbq-alert__close-button\" [hidden]=\"!closeButton\">\n <ng-content select=\"[kbq-alert-close-button]\"></ng-content>\n</div>\n", styles: [".kbq-alert{display:flex;box-sizing:border-box}.kbq-alert .kbq-alert__content_title{margin-bottom:var(--kbq-size-xxs, 4px)}.kbq-alert__content{display:flex;flex-direction:column;flex:1;justify-content:center}.kbq-alert.kbq-alert_normal{border-radius:var(--kbq-alert-size-normal-container-border-radius, 12px);padding:var(--kbq-alert-size-normal-container-padding-top, 0) var(--kbq-alert-size-normal-container-padding-right, 8px) var(--kbq-alert-size-normal-container-padding-bottom, 0) var(--kbq-alert-size-normal-container-padding-left, 8px)}.kbq-alert.kbq-alert_normal .kbq-alert__icon{margin:var(--kbq-alert-size-normal-icon-margin-top, 16px) var(--kbq-alert-size-normal-icon-margin-right, 0) var(--kbq-alert-size-normal-icon-margin-bottom, 16px) var(--kbq-alert-size-normal-icon-margin-left, 12px)}.kbq-alert.kbq-alert_normal .kbq-alert__icon.kbq-alert__icon_title .kbq-icon{margin-top:var(--kbq-alert-size-normal-icon-margin-addon-title, 2px)}.kbq-alert.kbq-alert_normal .kbq-alert__content{padding:var(--kbq-alert-size-normal-content-padding-top, 16px) var(--kbq-alert-size-normal-content-padding-right, 8px) var(--kbq-alert-size-normal-content-padding-bottom, 16px) var(--kbq-alert-size-normal-content-padding-left, 12px)}.kbq-alert.kbq-alert_normal .kbq-alert__title{margin-bottom:var(--kbq-alert-size-normal-title-margin-bottom, 4px)}.kbq-alert.kbq-alert_normal .kbq-alert__button-stack{padding-top:var(--kbq-alert-size-normal-button-stack-padding-top, 6px);padding-bottom:var(--kbq-alert-size-normal-button-stack-padding-bottom, 2px)}.kbq-alert.kbq-alert_normal .kbq-alert__close-button{margin-top:var(--kbq-alert-size-normal-close-button-margin-top, 8px);margin-left:var(--kbq-alert-size-normal-close-button-margin-left, 2px)}.kbq-alert.kbq-alert_compact{border-radius:var(--kbq-alert-size-compact-container-border-radius, 12px);padding:var(--kbq-alert-size-compact-container-padding-top, 0) var(--kbq-alert-size-compact-container-padding-right, 8px) var(--kbq-alert-size-compact-container-padding-bottom, 0) var(--kbq-alert-size-compact-container-padding-left, 16px)}.kbq-alert.kbq-alert_compact .kbq-alert__icon{margin-top:var(--kbq-alert-size-compact-icon-margin-top, 12px);margin-right:var(--kbq-alert-size-compact-icon-margin-right, 8px)}.kbq-alert.kbq-alert_compact .kbq-alert__icon.kbq-alert__icon_title .kbq-icon{margin-top:var(--kbq-alert-size-compact-icon-margin-addon-title, 2px)}.kbq-alert.kbq-alert_compact .kbq-alert__content{padding:var(--kbq-alert-size-compact-content-padding-top, 12px) var(--kbq-alert-size-compact-content-padding-right, 0) var(--kbq-alert-size-compact-content-padding-bottom, 12px) var(--kbq-alert-size-compact-content-padding-left, 0)}.kbq-alert.kbq-alert_compact .kbq-alert__title{margin-bottom:var(--kbq-alert-size-compact-title-margin-bottom, 2px)}.kbq-alert.kbq-alert_compact .kbq-alert__button-stack{padding-top:var(--kbq-alert-size-compact-button-stack-padding-top, 8px);padding-bottom:var(--kbq-alert-size-compact-button-stack-padding-bottom, 2px)}.kbq-alert.kbq-alert_compact .kbq-alert__close-button{margin-top:var(--kbq-alert-size-compact-close-button-margin-top, 8px);margin-left:var(--kbq-alert-size-compact-close-button-margin-left, 2px)}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
47
80
|
}
|
|
48
81
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImport: i0, type: KbqAlert, decorators: [{
|
|
49
82
|
type: Component,
|
|
50
83
|
args: [{ selector: 'kbq-alert', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
|
|
51
84
|
class: 'kbq-alert',
|
|
85
|
+
'[class]': 'alertColor',
|
|
86
|
+
'[class.kbq-alert_normal]': '!compact',
|
|
87
|
+
'[class.kbq-alert_compact]': 'compact',
|
|
88
|
+
'[class.kbq-alert_default]': '!isColored',
|
|
89
|
+
'[class.kbq-alert_colored]': 'isColored',
|
|
52
90
|
'[class.kbq-alert_dismissible]': 'closeButton'
|
|
53
|
-
}, template: "<div class=\"kbq-alert__icon\" *ngIf=\"iconItem\">\n <ng-content select=\"[kbq-icon-item]\"></ng-content>\n</div>\n\n<div class=\"kbq-alert__content\">\n <ng-content select=\"[kbq-alert-title]\"></ng-content>\n\n <div class=\"kbq-alert__text\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"kbq-
|
|
91
|
+
}, template: "<div class=\"kbq-alert__icon\" [class.kbq-alert__icon_title]=\"title\" *ngIf=\"iconItem || icon\">\n <ng-content select=\"[kbq-icon-item],[kbq-icon]\"></ng-content>\n</div>\n\n<div class=\"kbq-alert__content\" [class.kbq-alert__content_title]=\"title\">\n <ng-content select=\"[kbq-alert-title]\"></ng-content>\n\n <div class=\"kbq-alert__text\">\n <ng-content></ng-content>\n </div>\n\n <div class=\"kbq-alert__button-stack\" *ngIf=\"control\">\n <ng-content select=\"[kbq-alert-control]\"></ng-content>\n </div>\n</div>\n\n<div class=\"kbq-alert__close-button\" [hidden]=\"!closeButton\">\n <ng-content select=\"[kbq-alert-close-button]\"></ng-content>\n</div>\n", styles: [".kbq-alert{display:flex;box-sizing:border-box}.kbq-alert .kbq-alert__content_title{margin-bottom:var(--kbq-size-xxs, 4px)}.kbq-alert__content{display:flex;flex-direction:column;flex:1;justify-content:center}.kbq-alert.kbq-alert_normal{border-radius:var(--kbq-alert-size-normal-container-border-radius, 12px);padding:var(--kbq-alert-size-normal-container-padding-top, 0) var(--kbq-alert-size-normal-container-padding-right, 8px) var(--kbq-alert-size-normal-container-padding-bottom, 0) var(--kbq-alert-size-normal-container-padding-left, 8px)}.kbq-alert.kbq-alert_normal .kbq-alert__icon{margin:var(--kbq-alert-size-normal-icon-margin-top, 16px) var(--kbq-alert-size-normal-icon-margin-right, 0) var(--kbq-alert-size-normal-icon-margin-bottom, 16px) var(--kbq-alert-size-normal-icon-margin-left, 12px)}.kbq-alert.kbq-alert_normal .kbq-alert__icon.kbq-alert__icon_title .kbq-icon{margin-top:var(--kbq-alert-size-normal-icon-margin-addon-title, 2px)}.kbq-alert.kbq-alert_normal .kbq-alert__content{padding:var(--kbq-alert-size-normal-content-padding-top, 16px) var(--kbq-alert-size-normal-content-padding-right, 8px) var(--kbq-alert-size-normal-content-padding-bottom, 16px) var(--kbq-alert-size-normal-content-padding-left, 12px)}.kbq-alert.kbq-alert_normal .kbq-alert__title{margin-bottom:var(--kbq-alert-size-normal-title-margin-bottom, 4px)}.kbq-alert.kbq-alert_normal .kbq-alert__button-stack{padding-top:var(--kbq-alert-size-normal-button-stack-padding-top, 6px);padding-bottom:var(--kbq-alert-size-normal-button-stack-padding-bottom, 2px)}.kbq-alert.kbq-alert_normal .kbq-alert__close-button{margin-top:var(--kbq-alert-size-normal-close-button-margin-top, 8px);margin-left:var(--kbq-alert-size-normal-close-button-margin-left, 2px)}.kbq-alert.kbq-alert_compact{border-radius:var(--kbq-alert-size-compact-container-border-radius, 12px);padding:var(--kbq-alert-size-compact-container-padding-top, 0) var(--kbq-alert-size-compact-container-padding-right, 8px) var(--kbq-alert-size-compact-container-padding-bottom, 0) var(--kbq-alert-size-compact-container-padding-left, 16px)}.kbq-alert.kbq-alert_compact .kbq-alert__icon{margin-top:var(--kbq-alert-size-compact-icon-margin-top, 12px);margin-right:var(--kbq-alert-size-compact-icon-margin-right, 8px)}.kbq-alert.kbq-alert_compact .kbq-alert__icon.kbq-alert__icon_title .kbq-icon{margin-top:var(--kbq-alert-size-compact-icon-margin-addon-title, 2px)}.kbq-alert.kbq-alert_compact .kbq-alert__content{padding:var(--kbq-alert-size-compact-content-padding-top, 12px) var(--kbq-alert-size-compact-content-padding-right, 0) var(--kbq-alert-size-compact-content-padding-bottom, 12px) var(--kbq-alert-size-compact-content-padding-left, 0)}.kbq-alert.kbq-alert_compact .kbq-alert__title{margin-bottom:var(--kbq-alert-size-compact-title-margin-bottom, 2px)}.kbq-alert.kbq-alert_compact .kbq-alert__button-stack{padding-top:var(--kbq-alert-size-compact-button-stack-padding-top, 8px);padding-bottom:var(--kbq-alert-size-compact-button-stack-padding-bottom, 2px)}.kbq-alert.kbq-alert_compact .kbq-alert__close-button{margin-top:var(--kbq-alert-size-compact-close-button-margin-top, 8px);margin-left:var(--kbq-alert-size-compact-close-button-margin-left, 2px)}\n"] }]
|
|
54
92
|
}], propDecorators: { iconItem: [{
|
|
55
93
|
type: ContentChild,
|
|
56
94
|
args: [KbqIconItem]
|
|
95
|
+
}], icon: [{
|
|
96
|
+
type: ContentChild,
|
|
97
|
+
args: [KbqIcon]
|
|
57
98
|
}], title: [{
|
|
58
99
|
type: ContentChild,
|
|
59
100
|
args: [KbqAlertTitle]
|
|
@@ -63,5 +104,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.0", ngImpor
|
|
|
63
104
|
}], closeButton: [{
|
|
64
105
|
type: ContentChild,
|
|
65
106
|
args: [KbqAlertCloseButton]
|
|
107
|
+
}], compact: [{
|
|
108
|
+
type: Input
|
|
109
|
+
}], alertStyle: [{
|
|
110
|
+
type: Input
|
|
111
|
+
}], alertColor: [{
|
|
112
|
+
type: Input
|
|
66
113
|
}] } });
|
|
67
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
114
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vcGFja2FnZXMvY29tcG9uZW50cy9hbGVydC9hbGVydC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi9wYWNrYWdlcy9jb21wb25lbnRzL2FsZXJ0L2FsZXJ0LmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFFSCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFlBQVksRUFDWixTQUFTLEVBQ1QsS0FBSyxFQUNMLGlCQUFpQixFQUNwQixNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsT0FBTyxFQUFFLFdBQVcsRUFBRSxNQUFNLHlCQUF5QixDQUFDOzs7QUFHL0QsTUFBTSxDQUFOLElBQVksY0FHWDtBQUhELFdBQVksY0FBYztJQUN0QixxQ0FBbUIsQ0FBQTtJQUNuQixxQ0FBbUIsQ0FBQTtBQUN2QixDQUFDLEVBSFcsY0FBYyxLQUFkLGNBQWMsUUFHekI7QUFFRCxNQUFNLENBQU4sSUFBWSxjQU1YO0FBTkQsV0FBWSxjQUFjO0lBQ3RCLHVDQUFxQixDQUFBO0lBQ3JCLGlDQUFlLENBQUE7SUFDZixxQ0FBbUIsQ0FBQT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