@ptsecurity/mosaic 17.2.1 → 17.2.2
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 -2
- package/button/_button-theme.scss +3 -3
- package/button-toggle/_button-toggle-theme.scss +2 -2
- package/checkbox/_checkbox-theme.scss +1 -1
- package/code-block/_code-block-theme.scss +2 -2
- package/core/form-field/form-field-ref.d.ts +13 -0
- package/core/form-field/index.d.ts +1 -0
- package/core/forms/_forms-theme.scss +2 -2
- package/core/locales/en-US.d.ts +17 -0
- package/core/locales/es-LA.d.ts +17 -0
- package/core/locales/fa-IR.d.ts +17 -0
- package/core/locales/index.d.ts +6 -0
- package/core/locales/locale-service.d.ts +102 -0
- package/core/locales/pt-BR.d.ts +17 -0
- package/core/locales/ru-RU.d.ts +17 -0
- package/core/locales/zh-CN.d.ts +17 -0
- package/core/option/_optgroup-theme.scss +1 -1
- package/core/option/_option-theme.scss +1 -1
- package/core/public-api.d.ts +1 -0
- package/core/select/common.d.ts +35 -0
- package/core/select/index.d.ts +1 -0
- package/core/styles/common/_tokens.scss +29 -20
- package/core/styles/theming/_alerts.scss +5 -5
- package/core/styles/theming/_badges.scss +6 -6
- package/core/styles/typography/_typography.scss +26 -26
- package/datepicker/_datepicker-theme.scss +4 -4
- package/dl/_dl-theme.scss +8 -8
- package/dropdown/_dropdown-theme.scss +4 -4
- package/esm2022/core/form-field/form-field-ref.mjs +8 -0
- package/esm2022/core/form-field/index.mjs +2 -0
- package/esm2022/core/locales/en-US.mjs +18 -1
- package/esm2022/core/locales/es-LA.mjs +18 -1
- package/esm2022/core/locales/fa-IR.mjs +18 -1
- package/esm2022/core/locales/index.mjs +7 -1
- package/esm2022/core/locales/pt-BR.mjs +18 -1
- package/esm2022/core/locales/ru-RU.mjs +18 -1
- package/esm2022/core/locales/zh-CN.mjs +18 -1
- package/esm2022/core/public-api.mjs +2 -1
- package/esm2022/core/select/common.mjs +119 -0
- package/esm2022/core/select/index.mjs +2 -1
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/datepicker/calendar-header.component.mjs +1 -1
- package/esm2022/file-upload/multiple-file-upload.component.mjs +49 -26
- package/esm2022/file-upload/single-file-upload.component.mjs +38 -14
- package/esm2022/form-field/form-field.mjs +5 -11
- package/esm2022/form-field/password-hint.mjs +5 -4
- package/esm2022/form-field/validate.directive.mjs +5 -2
- package/esm2022/modal/modal.component.mjs +3 -3
- package/esm2022/modal/modal.directive.mjs +12 -6
- package/esm2022/select/select.component.mjs +15 -111
- package/esm2022/select/select.module.mjs +17 -17
- package/esm2022/tags/tag-default-options.mjs +1 -1
- package/esm2022/tags/tag-input.mjs +17 -3
- package/esm2022/timepicker/timepicker.directive.mjs +10 -2
- package/esm2022/timezone/timezone-select.component.mjs +3 -3
- package/esm2022/toast/toast.service.mjs +17 -11
- package/esm2022/tree-select/tree-select.component.mjs +4 -5
- package/fesm2022/ptsecurity-mosaic-core.mjs +227 -4
- package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-datepicker.mjs +1 -1
- package/fesm2022/ptsecurity-mosaic-datepicker.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs +80 -36
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-form-field.mjs +11 -14
- package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-modal.mjs +11 -6
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-select.mjs +34 -130
- package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tags.mjs +17 -4
- package/fesm2022/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-timepicker.mjs +9 -1
- package/fesm2022/ptsecurity-mosaic-timepicker.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-timezone.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-toast.mjs +15 -9
- package/fesm2022/ptsecurity-mosaic-toast.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +7 -7
- package/file-upload/multiple-file-upload.component.d.ts +17 -6
- package/file-upload/single-file-upload.component.d.ts +15 -6
- package/form-field/_form-field-theme.scss +7 -5
- package/form-field/form-field.d.ts +1 -7
- package/form-field/validate.directive.d.ts +5 -2
- package/input/_input-theme.scss +4 -4
- package/link/_link-theme.scss +2 -2
- package/list/_list-theme.scss +1 -1
- package/loader-overlay/_loader-overlay-theme.scss +2 -2
- package/markdown/_markdown-theme.scss +14 -14
- package/modal/_modal-theme.scss +2 -2
- package/modal/modal.directive.d.ts +1 -1
- package/navbar/_navbar-theme.scss +4 -4
- package/package.json +19 -19
- package/popover/_popover-theme.scss +3 -3
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/radio/_radio-theme.scss +1 -1
- package/select/_select-theme.scss +2 -2
- package/select/select.component.d.ts +2 -32
- package/select/select.module.d.ts +1 -1
- package/sidepanel/_sidepanel-theme.scss +3 -3
- package/table/_table-theme.scss +2 -2
- package/tabs/_tabs-theme.scss +1 -1
- package/tags/_tag-theme.scss +5 -5
- package/tags/tag-default-options.d.ts +1 -0
- package/tags/tag-input.d.ts +7 -1
- package/textarea/_textarea-theme.scss +2 -2
- package/timezone/_timezone-option-theme.scss +3 -3
- package/timezone/timezone-select.component.d.ts +2 -1
- package/toast/_toast-theme.scss +3 -3
- package/toast/toast.service.d.ts +8 -4
- package/toggle/_toggle-theme.scss +2 -2
- package/tooltip/_tooltip-theme.scss +3 -3
- package/tree/_tree-theme.scss +1 -1
- package/tree-select/_tree-select-theme.scss +1 -1
- package/tree-select/tree-select.component.d.ts +1 -2
@@ -131,14 +131,14 @@
|
|
131
131
|
@mixin mc-button-typography($config) {
|
132
132
|
.mc-button,
|
133
133
|
.mc-icon-button {
|
134
|
-
@include mc-typography-css-variables(button, default);
|
134
|
+
@include mc-typography-css-variables($config, button, default);
|
135
135
|
|
136
136
|
&.mc-primary {
|
137
|
-
@include mc-typography-css-variables(button, primary);
|
137
|
+
@include mc-typography-css-variables($config, button, primary);
|
138
138
|
}
|
139
139
|
|
140
140
|
&.mc-primary.mc-button_transparent {
|
141
|
-
@include mc-typography-css-variables(button, primary-transparent);
|
141
|
+
@include mc-typography-css-variables($config, button, primary-transparent);
|
142
142
|
}
|
143
143
|
}
|
144
144
|
|
@@ -86,11 +86,11 @@
|
|
86
86
|
$tokens: map.get($config, tokens);
|
87
87
|
|
88
88
|
.mc-button-toggle {
|
89
|
-
@include mc-typography-css-variables(button-toggle, default);
|
89
|
+
@include mc-typography-css-variables($config, button-toggle, default);
|
90
90
|
|
91
91
|
> .mc-button,
|
92
92
|
> .mc-icon-button {
|
93
|
-
@include mc-typography-css-variables(button-toggle, default);
|
93
|
+
@include mc-typography-css-variables($config, button-toggle, default);
|
94
94
|
}
|
95
95
|
}
|
96
96
|
}
|
@@ -404,7 +404,7 @@
|
|
404
404
|
$tokens: map.get($config, tokens);
|
405
405
|
|
406
406
|
.mc-code-block {
|
407
|
-
@include mc-typography-css-variables(code-block, default);
|
407
|
+
@include mc-typography-css-variables($config, code-block, default);
|
408
408
|
|
409
409
|
& .mc-code-block__code {
|
410
410
|
font: inherit;
|
@@ -415,7 +415,7 @@
|
|
415
415
|
}
|
416
416
|
|
417
417
|
& .hljs-ln-numbers {
|
418
|
-
@include mc-typography-level-to-styles_css-variables(typography, caption-mono);
|
418
|
+
@include mc-typography-level-to-styles_css-variables($config, typography, caption-mono);
|
419
419
|
}
|
420
420
|
}
|
421
421
|
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
2
|
+
export interface McFormFieldRef {
|
3
|
+
control: any;
|
4
|
+
canCleanerClearByEsc: boolean;
|
5
|
+
shouldForward(str: string): boolean;
|
6
|
+
focusViaKeyboard(): void;
|
7
|
+
}
|
8
|
+
/**
|
9
|
+
* Injection token that can be used to inject an instances of `McFormField`. It serves
|
10
|
+
* as alternative token to the actual `McFormField` class which would cause unnecessary
|
11
|
+
* retention of the `McFormField` class and its component metadata.
|
12
|
+
*/
|
13
|
+
export declare const MC_FORM_FIELD_REF: InjectionToken<McFormFieldRef>;
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from './form-field-ref';
|
@@ -104,10 +104,10 @@
|
|
104
104
|
|
105
105
|
@mixin mc-forms-typography($config) {
|
106
106
|
.mc-form__label {
|
107
|
-
@include mc-typography-css-variables(forms, default-label);
|
107
|
+
@include mc-typography-css-variables($config, forms, default-label);
|
108
108
|
}
|
109
109
|
|
110
110
|
.mc-form__legend {
|
111
|
-
@include mc-typography-css-variables(forms, default-legend);
|
111
|
+
@include mc-typography-css-variables($config, forms, default-legend);
|
112
112
|
}
|
113
113
|
}
|
package/core/locales/en-US.d.ts
CHANGED
@@ -25,5 +25,22 @@ export declare const enUSLocaleData: {
|
|
25
25
|
fractionSeparator: string;
|
26
26
|
};
|
27
27
|
};
|
28
|
+
fileUpload: {
|
29
|
+
single: {
|
30
|
+
captionText: string;
|
31
|
+
browseLink: string;
|
32
|
+
};
|
33
|
+
multiple: {
|
34
|
+
captionText: string;
|
35
|
+
captionTextWhenSelected: string;
|
36
|
+
captionTextForCompactSize: string;
|
37
|
+
browseLink: string;
|
38
|
+
title: string;
|
39
|
+
gridHeaders: {
|
40
|
+
file: string;
|
41
|
+
size: string;
|
42
|
+
};
|
43
|
+
};
|
44
|
+
};
|
28
45
|
};
|
29
46
|
};
|
package/core/locales/es-LA.d.ts
CHANGED
@@ -30,5 +30,22 @@ export declare const esLALocaleData: {
|
|
30
30
|
fractionSeparator: string;
|
31
31
|
};
|
32
32
|
};
|
33
|
+
fileUpload: {
|
34
|
+
single: {
|
35
|
+
captionText: string;
|
36
|
+
browseLink: string;
|
37
|
+
};
|
38
|
+
multiple: {
|
39
|
+
captionText: string;
|
40
|
+
captionTextWhenSelected: string;
|
41
|
+
captionTextForCompactSize: string;
|
42
|
+
browseLink: string;
|
43
|
+
title: string;
|
44
|
+
gridHeaders: {
|
45
|
+
file: string;
|
46
|
+
size: string;
|
47
|
+
};
|
48
|
+
};
|
49
|
+
};
|
33
50
|
};
|
34
51
|
};
|
package/core/locales/fa-IR.d.ts
CHANGED
@@ -31,5 +31,22 @@ export declare const faIRLocaleData: {
|
|
31
31
|
fractionSeparator: string;
|
32
32
|
};
|
33
33
|
};
|
34
|
+
fileUpload: {
|
35
|
+
single: {
|
36
|
+
captionText: string;
|
37
|
+
browseLink: string;
|
38
|
+
};
|
39
|
+
multiple: {
|
40
|
+
captionText: string;
|
41
|
+
captionTextWhenSelected: string;
|
42
|
+
captionTextForCompactSize: string;
|
43
|
+
browseLink: string;
|
44
|
+
title: string;
|
45
|
+
gridHeaders: {
|
46
|
+
file: string;
|
47
|
+
size: string;
|
48
|
+
};
|
49
|
+
};
|
50
|
+
};
|
34
51
|
};
|
35
52
|
};
|
package/core/locales/index.d.ts
CHANGED
@@ -34,6 +34,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
34
34
|
fractionSeparator: string;
|
35
35
|
};
|
36
36
|
};
|
37
|
+
fileUpload: {
|
38
|
+
single: {
|
39
|
+
captionText: string;
|
40
|
+
browseLink: string;
|
41
|
+
};
|
42
|
+
multiple: {
|
43
|
+
captionText: string;
|
44
|
+
captionTextWhenSelected: string;
|
45
|
+
captionTextForCompactSize: string;
|
46
|
+
browseLink: string;
|
47
|
+
title: string;
|
48
|
+
gridHeaders: {
|
49
|
+
file: string;
|
50
|
+
size: string;
|
51
|
+
};
|
52
|
+
};
|
53
|
+
};
|
37
54
|
};
|
38
55
|
'pt-BR': {
|
39
56
|
select: {
|
@@ -66,6 +83,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
66
83
|
fractionSeparator: string;
|
67
84
|
};
|
68
85
|
};
|
86
|
+
fileUpload: {
|
87
|
+
single: {
|
88
|
+
captionText: string;
|
89
|
+
browseLink: string;
|
90
|
+
};
|
91
|
+
multiple: {
|
92
|
+
captionText: string;
|
93
|
+
captionTextWhenSelected: string;
|
94
|
+
captionTextForCompactSize: string;
|
95
|
+
browseLink: string;
|
96
|
+
title: string;
|
97
|
+
gridHeaders: {
|
98
|
+
file: string;
|
99
|
+
size: string;
|
100
|
+
};
|
101
|
+
};
|
102
|
+
};
|
69
103
|
};
|
70
104
|
'fa-IR': {
|
71
105
|
select: {
|
@@ -99,6 +133,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
99
133
|
fractionSeparator: string;
|
100
134
|
};
|
101
135
|
};
|
136
|
+
fileUpload: {
|
137
|
+
single: {
|
138
|
+
captionText: string;
|
139
|
+
browseLink: string;
|
140
|
+
};
|
141
|
+
multiple: {
|
142
|
+
captionText: string;
|
143
|
+
captionTextWhenSelected: string;
|
144
|
+
captionTextForCompactSize: string;
|
145
|
+
browseLink: string;
|
146
|
+
title: string;
|
147
|
+
gridHeaders: {
|
148
|
+
file: string;
|
149
|
+
size: string;
|
150
|
+
};
|
151
|
+
};
|
152
|
+
};
|
102
153
|
};
|
103
154
|
'es-LA': {
|
104
155
|
select: {
|
@@ -131,6 +182,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
131
182
|
fractionSeparator: string;
|
132
183
|
};
|
133
184
|
};
|
185
|
+
fileUpload: {
|
186
|
+
single: {
|
187
|
+
captionText: string;
|
188
|
+
browseLink: string;
|
189
|
+
};
|
190
|
+
multiple: {
|
191
|
+
captionText: string;
|
192
|
+
captionTextWhenSelected: string;
|
193
|
+
captionTextForCompactSize: string;
|
194
|
+
browseLink: string;
|
195
|
+
title: string;
|
196
|
+
gridHeaders: {
|
197
|
+
file: string;
|
198
|
+
size: string;
|
199
|
+
};
|
200
|
+
};
|
201
|
+
};
|
134
202
|
};
|
135
203
|
'en-US': {
|
136
204
|
select: {
|
@@ -158,6 +226,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
158
226
|
fractionSeparator: string;
|
159
227
|
};
|
160
228
|
};
|
229
|
+
fileUpload: {
|
230
|
+
single: {
|
231
|
+
captionText: string;
|
232
|
+
browseLink: string;
|
233
|
+
};
|
234
|
+
multiple: {
|
235
|
+
captionText: string;
|
236
|
+
captionTextWhenSelected: string;
|
237
|
+
captionTextForCompactSize: string;
|
238
|
+
browseLink: string;
|
239
|
+
title: string;
|
240
|
+
gridHeaders: {
|
241
|
+
file: string;
|
242
|
+
size: string;
|
243
|
+
};
|
244
|
+
};
|
245
|
+
};
|
161
246
|
};
|
162
247
|
'ru-RU': {
|
163
248
|
select: {
|
@@ -186,6 +271,23 @@ export declare function MC_DEFAULT_LOCALE_DATA_FACTORY(): {
|
|
186
271
|
startFormattingFrom: number;
|
187
272
|
};
|
188
273
|
};
|
274
|
+
fileUpload: {
|
275
|
+
single: {
|
276
|
+
captionText: string;
|
277
|
+
browseLink: string;
|
278
|
+
};
|
279
|
+
multiple: {
|
280
|
+
captionText: string;
|
281
|
+
captionTextWhenSelected: string;
|
282
|
+
captionTextForCompactSize: string;
|
283
|
+
browseLink: string;
|
284
|
+
title: string;
|
285
|
+
gridHeaders: {
|
286
|
+
file: string;
|
287
|
+
size: string;
|
288
|
+
};
|
289
|
+
};
|
290
|
+
};
|
189
291
|
};
|
190
292
|
items: {
|
191
293
|
id: string;
|
package/core/locales/pt-BR.d.ts
CHANGED
@@ -30,5 +30,22 @@ export declare const ptBRLocaleData: {
|
|
30
30
|
fractionSeparator: string;
|
31
31
|
};
|
32
32
|
};
|
33
|
+
fileUpload: {
|
34
|
+
single: {
|
35
|
+
captionText: string;
|
36
|
+
browseLink: string;
|
37
|
+
};
|
38
|
+
multiple: {
|
39
|
+
captionText: string;
|
40
|
+
captionTextWhenSelected: string;
|
41
|
+
captionTextForCompactSize: string;
|
42
|
+
browseLink: string;
|
43
|
+
title: string;
|
44
|
+
gridHeaders: {
|
45
|
+
file: string;
|
46
|
+
size: string;
|
47
|
+
};
|
48
|
+
};
|
49
|
+
};
|
33
50
|
};
|
34
51
|
};
|
package/core/locales/ru-RU.d.ts
CHANGED
@@ -26,5 +26,22 @@ export declare const ruRULocaleData: {
|
|
26
26
|
startFormattingFrom: number;
|
27
27
|
};
|
28
28
|
};
|
29
|
+
fileUpload: {
|
30
|
+
single: {
|
31
|
+
captionText: string;
|
32
|
+
browseLink: string;
|
33
|
+
};
|
34
|
+
multiple: {
|
35
|
+
captionText: string;
|
36
|
+
captionTextWhenSelected: string;
|
37
|
+
captionTextForCompactSize: string;
|
38
|
+
browseLink: string;
|
39
|
+
title: string;
|
40
|
+
gridHeaders: {
|
41
|
+
file: string;
|
42
|
+
size: string;
|
43
|
+
};
|
44
|
+
};
|
45
|
+
};
|
29
46
|
};
|
30
47
|
};
|
package/core/locales/zh-CN.d.ts
CHANGED
@@ -29,5 +29,22 @@ export declare const znCNLocaleData: {
|
|
29
29
|
fractionSeparator: string;
|
30
30
|
};
|
31
31
|
};
|
32
|
+
fileUpload: {
|
33
|
+
single: {
|
34
|
+
captionText: string;
|
35
|
+
browseLink: string;
|
36
|
+
};
|
37
|
+
multiple: {
|
38
|
+
captionText: string;
|
39
|
+
captionTextWhenSelected: string;
|
40
|
+
captionTextForCompactSize: string;
|
41
|
+
browseLink: string;
|
42
|
+
title: string;
|
43
|
+
gridHeaders: {
|
44
|
+
file: string;
|
45
|
+
size: string;
|
46
|
+
};
|
47
|
+
};
|
48
|
+
};
|
32
49
|
};
|
33
50
|
};
|
package/core/public-api.d.ts
CHANGED
@@ -4,6 +4,7 @@ export * from './datetime/index';
|
|
4
4
|
export * from './error/error-options';
|
5
5
|
export * from './formatters/index';
|
6
6
|
export * from './forms/index';
|
7
|
+
export * from './form-field/index';
|
7
8
|
export * from './highlight/index';
|
8
9
|
export * from './label/label-options';
|
9
10
|
export * from './line/line';
|
@@ -0,0 +1,35 @@
|
|
1
|
+
import { AfterContentInit, OnDestroy } from '@angular/core';
|
2
|
+
import { Subscription } from 'rxjs';
|
3
|
+
import { McFormFieldRef } from '../form-field';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class McSelectFooter {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectFooter, never>;
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectFooter, "mc-select-footer, [mc-select-footer]", never, {}, {}, never, never, true, never>;
|
8
|
+
}
|
9
|
+
export declare class McSelectSearch implements AfterContentInit, OnDestroy {
|
10
|
+
protected formField: McFormFieldRef;
|
11
|
+
searchChangesSubscription: Subscription;
|
12
|
+
isSearchChanged: boolean;
|
13
|
+
get ngControl(): any;
|
14
|
+
constructor(formField: McFormFieldRef);
|
15
|
+
focus(): void;
|
16
|
+
reset(): void;
|
17
|
+
value(): any;
|
18
|
+
ngAfterContentInit(): void;
|
19
|
+
ngOnDestroy(): void;
|
20
|
+
handleKeydown(event: KeyboardEvent): void;
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectSearch, [{ optional: true; }]>;
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectSearch, "[mcSelectSearch]", ["mcSelectSearch"], {}, {}, never, never, true, never>;
|
23
|
+
}
|
24
|
+
export declare class McSelectSearchEmptyResult {
|
25
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectSearchEmptyResult, never>;
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectSearchEmptyResult, "[mc-select-search-empty-result]", ["mcSelectSearchEmptyResult"], {}, {}, never, never, true, never>;
|
27
|
+
}
|
28
|
+
export declare class McSelectTrigger {
|
29
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectTrigger, never>;
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectTrigger, "mc-select-trigger, [mc-select-trigger]", never, {}, {}, never, never, true, never>;
|
31
|
+
}
|
32
|
+
export declare class McSelectMatcher {
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectMatcher, never>;
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectMatcher, "mc-select-matcher, [mc-select-matcher]", never, {}, {}, never, never, true, never>;
|
35
|
+
}
|
package/core/select/index.d.ts
CHANGED
@@ -6,44 +6,53 @@
|
|
6
6
|
@use '../tokens';
|
7
7
|
|
8
8
|
|
9
|
-
$tokens: meta.module-variables(tokens);
|
9
|
+
$default-tokens: meta.module-variables(tokens);
|
10
10
|
|
11
11
|
|
12
12
|
@function mc-css-variable($name, $value: null) {
|
13
13
|
@if $value {
|
14
14
|
@return var(--mc-#{$name}, $value);
|
15
15
|
} @else {
|
16
|
-
@return var(--mc-#{$name}, map.get($tokens, $name));
|
16
|
+
@return var(--mc-#{$name}, map.get($default-tokens, $name));
|
17
17
|
}
|
18
18
|
}
|
19
19
|
|
20
20
|
@function getToken($name) {
|
21
|
-
@return map.get($tokens, $name);
|
21
|
+
@return map.get($default-tokens, $name);
|
22
22
|
}
|
23
23
|
|
24
|
-
@mixin mc-css-font-variable($component, $component-property, $font-property, $font) {
|
24
|
+
@mixin mc-css-font-variable($tokens, $component, $component-property, $font-property, $font) {
|
25
25
|
#{$font-property}: var(
|
26
26
|
--mc-#{$component}-#{$font}#{$component-property}-#{$font-property},
|
27
27
|
map.get($tokens, #{$component}-#{$font}#{$component-property}-#{$font-property})
|
28
28
|
);
|
29
|
+
//@debug '_____________________________________________________________';
|
30
|
+
//@debug #{$component}-#{$font}#{$component-property}-#{$font-property};
|
31
|
+
//@debug '_____________________________________________________________';
|
32
|
+
//@debug $tokens;
|
29
33
|
}
|
30
34
|
|
31
|
-
@mixin mc-typography-css-variables($component, $property) {
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
@include mc-css-font-variable($component, $property, font-
|
36
|
-
@include mc-css-font-variable($component, $property,
|
37
|
-
@include mc-css-font-variable($component, $property,
|
38
|
-
@include mc-css-font-variable($component, $property,
|
35
|
+
@mixin mc-typography-css-variables($config, $component, $property) {
|
36
|
+
//@debug 'mc-typography-css-variables';
|
37
|
+
$tokens: map.get($config, tokens);
|
38
|
+
|
39
|
+
@include mc-css-font-variable($tokens, $component, $property, font-size, font-);
|
40
|
+
@include mc-css-font-variable($tokens, $component, $property, font-weight, font-);
|
41
|
+
@include mc-css-font-variable($tokens, $component, $property, line-height, font-);
|
42
|
+
@include mc-css-font-variable($tokens, $component, $property, font-family, font-);
|
43
|
+
@include mc-css-font-variable($tokens, $component, $property, text-transform, font-);
|
44
|
+
@include mc-css-font-variable($tokens, $component, $property, font-feature-settings, font-);
|
45
|
+
@include mc-css-font-variable($tokens, $component, $property, letter-spacing, font-);
|
39
46
|
}
|
40
47
|
|
41
|
-
@mixin mc-typography-level-to-styles_css-variables($component, $property) {
|
42
|
-
|
43
|
-
|
44
|
-
@include mc-css-font-variable($component, $property,
|
45
|
-
@include mc-css-font-variable($component, $property, font-
|
46
|
-
@include mc-css-font-variable($component, $property,
|
47
|
-
@include mc-css-font-variable($component, $property, font-
|
48
|
-
@include mc-css-font-variable($component, $property,
|
48
|
+
@mixin mc-typography-level-to-styles_css-variables($config, $component, $property) {
|
49
|
+
$tokens: map.get($config, tokens);
|
50
|
+
|
51
|
+
@include mc-css-font-variable($tokens, $component, $property, font-size, '');
|
52
|
+
@include mc-css-font-variable($tokens, $component, $property, font-weight, '');
|
53
|
+
@include mc-css-font-variable($tokens, $component, $property, line-height, '');
|
54
|
+
@include mc-css-font-variable($tokens, $component, $property, font-family, '');
|
55
|
+
@include mc-css-font-variable($tokens, $component, $property, text-transform, '');
|
56
|
+
@include mc-css-font-variable($tokens, $component, $property, font-feature-settings, '');
|
57
|
+
@include mc-css-font-variable($tokens, $component, $property, letter-spacing, '');
|
49
58
|
}
|
@@ -136,22 +136,22 @@
|
|
136
136
|
|
137
137
|
@mixin mc-alert-typography($config) {
|
138
138
|
.mc-alert:not(.mc-alert_small) {
|
139
|
-
@include mc-typography-css-variables(alert, default-body);
|
139
|
+
@include mc-typography-css-variables($config, alert, default-body);
|
140
140
|
|
141
141
|
header {
|
142
|
-
@include mc-typography-css-variables(alert, default-header);
|
142
|
+
@include mc-typography-css-variables($config, alert, default-header);
|
143
143
|
}
|
144
144
|
}
|
145
145
|
|
146
146
|
.mc-alert.mc-alert_small {
|
147
|
-
@include mc-typography-css-variables(alert, small-body);
|
147
|
+
@include mc-typography-css-variables($config, alert, small-body);
|
148
148
|
|
149
149
|
header {
|
150
|
-
@include mc-typography-css-variables(alert, small-header);
|
150
|
+
@include mc-typography-css-variables($config, alert, small-header);
|
151
151
|
}
|
152
152
|
|
153
153
|
.mc-link__text {
|
154
|
-
@include mc-typography-css-variables(alert, small-body);
|
154
|
+
@include mc-typography-css-variables($config, alert, small-body);
|
155
155
|
}
|
156
156
|
}
|
157
157
|
|
@@ -122,26 +122,26 @@
|
|
122
122
|
|
123
123
|
@mixin mc-badge-typography($config) {
|
124
124
|
.mc-badge_default {
|
125
|
-
@include mc-typography-css-variables(badge, default-default);
|
125
|
+
@include mc-typography-css-variables($config, badge, default-default);
|
126
126
|
|
127
127
|
&.mc-badge_caps {
|
128
|
-
@include mc-typography-css-variables(badge, default-caps);
|
128
|
+
@include mc-typography-css-variables($config, badge, default-caps);
|
129
129
|
}
|
130
130
|
|
131
131
|
&.mc-badge_mono {
|
132
|
-
@include mc-typography-css-variables(badge, default-mono);
|
132
|
+
@include mc-typography-css-variables($config, badge, default-mono);
|
133
133
|
}
|
134
134
|
}
|
135
135
|
|
136
136
|
.mc-badge_mini {
|
137
|
-
@include mc-typography-css-variables(badge, mini-default);
|
137
|
+
@include mc-typography-css-variables($config, badge, mini-default);
|
138
138
|
|
139
139
|
&.mc-badge_caps {
|
140
|
-
@include mc-typography-css-variables(badge, mini-caps);
|
140
|
+
@include mc-typography-css-variables($config, badge, mini-caps);
|
141
141
|
}
|
142
142
|
|
143
143
|
&.mc-badge_mono {
|
144
|
-
@include mc-typography-css-variables(badge, mini-mono);
|
144
|
+
@include mc-typography-css-variables($config, badge, mini-mono);
|
145
145
|
}
|
146
146
|
}
|
147
147
|
}
|