@ptsecurity/mosaic 17.0.0 → 17.2.0
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-theme.scss +2 -1
- package/autocomplete/autocomplete-trigger.directive.d.ts +7 -1
- package/autocomplete/autocomplete.scss +7 -11
- package/button/_button-base.scss +10 -10
- package/button/_button-theme.scss +32 -32
- package/button/button.scss +9 -15
- package/button-toggle/_button-toggle-theme.scss +32 -24
- package/button-toggle/button-toggle.scss +18 -57
- package/card/_card-theme.scss +23 -20
- package/card/card.component.scss +2 -1
- package/checkbox/_checkbox-theme.scss +33 -29
- package/checkbox/checkbox.scss +7 -6
- package/code-block/_code-block-theme.scss +201 -113
- package/code-block/actionbar.component.scss +5 -7
- package/code-block/code-block.scss +5 -6
- package/core/forms/_forms-theme.scss +17 -46
- package/core/option/_optgroup-theme.scss +5 -5
- package/core/option/_option-action-theme.scss +1 -4
- package/core/option/_option-theme.scss +8 -10
- package/core/option/option.scss +5 -4
- package/core/pop-up/pop-up-trigger.d.ts +3 -1
- package/core/styles/_mosaic-theme.scss +3 -3
- package/core/styles/common/_popup.scss +4 -3
- package/core/styles/common/_tokens.scss +39 -0
- package/core/styles/theming/_alerts.scss +16 -24
- package/core/styles/theming/_badges.scss +7 -8
- package/core/styles/theming/_components-theming.scss +4 -2
- package/core/styles/theming/_scrollbars.scss +17 -2
- package/datepicker/_datepicker-theme.scss +18 -19
- package/datepicker/calendar-body.scss +6 -9
- package/datepicker/calendar-header.scss +9 -26
- package/datepicker/calendar.scss +5 -16
- package/datepicker/datepicker-content.scss +2 -4
- package/datepicker/datepicker-input.scss +2 -1
- package/datepicker/datepicker-toggle.scss +3 -2
- package/divider/_divider-theme.scss +4 -2
- package/divider/divider.scss +5 -4
- package/dl/_dl-theme.scss +12 -36
- package/dl/dl.scss +13 -46
- package/dropdown/_dropdown-theme.scss +19 -17
- package/dropdown/dropdown-item.scss +7 -6
- package/dropdown/dropdown.scss +11 -26
- package/ellipsis-center/ellipsis-center.directive.d.ts +3 -2
- package/esm2022/autocomplete/autocomplete-trigger.directive.mjs +14 -2
- package/esm2022/button/button.component.mjs +2 -2
- package/esm2022/code-block/actionbar.component.mjs +2 -2
- package/esm2022/code-block/code-block.component.mjs +2 -2
- package/esm2022/core/pop-up/pop-up-trigger.mjs +19 -11
- package/esm2022/core/version.mjs +2 -2
- package/esm2022/dropdown/dropdown-item.component.mjs +2 -2
- package/esm2022/dropdown/dropdown.component.mjs +3 -3
- package/esm2022/ellipsis-center/ellipsis-center.directive.mjs +7 -5
- package/esm2022/file-upload/file-upload.module.mjs +8 -4
- package/esm2022/file-upload/multiple-file-upload.component.mjs +15 -34
- package/esm2022/file-upload/single-file-upload.component.mjs +15 -34
- package/esm2022/form-field/form-field.mjs +2 -2
- package/esm2022/input/input-password.mjs +2 -3
- package/esm2022/loader-overlay/loader-overlay.component.mjs +2 -2
- package/esm2022/markdown/markdown.component.mjs +2 -2
- package/esm2022/modal/modal.component.mjs +6 -6
- package/esm2022/navbar/navbar-item.component.mjs +9 -9
- package/esm2022/progress-spinner/progress-spinner.component.mjs +2 -2
- package/esm2022/radio/radio.component.mjs +2 -2
- package/esm2022/select/select-option.directive.mjs +7 -5
- package/esm2022/select/select.component.mjs +16 -9
- package/esm2022/tabs/tab-header.component.mjs +2 -2
- package/esm2022/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/esm2022/tags/tag-input.mjs +28 -8
- package/esm2022/timezone/timezone-option.directive.mjs +7 -5
- package/esm2022/timezone/timezone-select.component.mjs +2 -2
- package/esm2022/title/title.directive.mjs +2 -3
- package/esm2022/tooltip/tooltip.component.mjs +27 -12
- package/esm2022/tree-select/tree-select.component.mjs +21 -8
- package/fesm2022/ptsecurity-mosaic-autocomplete.mjs +13 -1
- package/fesm2022/ptsecurity-mosaic-autocomplete.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-button.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-button.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-code-block.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-code-block.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-core.mjs +19 -11
- package/fesm2022/ptsecurity-mosaic-core.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-dropdown.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-dropdown.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs +5 -4
- package/fesm2022/ptsecurity-mosaic-ellipsis-center.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs +26 -58
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-form-field.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-input.mjs +1 -2
- package/fesm2022/ptsecurity-mosaic-input.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-loader-overlay.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-markdown.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-markdown.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-modal.mjs +5 -5
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-navbar.mjs +8 -8
- package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-progress-spinner.mjs +1 -1
- package/fesm2022/ptsecurity-mosaic-progress-spinner.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-radio.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-radio.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-select.mjs +25 -17
- package/fesm2022/ptsecurity-mosaic-select.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tabs.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-tabs.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tags.mjs +26 -7
- package/fesm2022/ptsecurity-mosaic-tags.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-timezone.mjs +7 -6
- package/fesm2022/ptsecurity-mosaic-timezone.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-title.mjs +1 -2
- package/fesm2022/ptsecurity-mosaic-title.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tooltip.mjs +25 -11
- package/fesm2022/ptsecurity-mosaic-tooltip.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs +20 -7
- package/fesm2022/ptsecurity-mosaic-tree-select.mjs.map +1 -1
- package/file-upload/_file-upload-theme.scss +87 -54
- package/file-upload/file-upload.module.d.ts +2 -1
- package/file-upload/file-upload.scss +0 -15
- package/file-upload/multiple-file-upload.component.d.ts +4 -12
- package/file-upload/multiple-file-upload.component.scss +58 -54
- package/file-upload/single-file-upload.component.d.ts +4 -12
- package/file-upload/single-file-upload.component.scss +15 -24
- package/form-field/_form-field-theme.scss +43 -34
- package/form-field/form-field.scss +14 -13
- package/icon/_icon-theme.scss +26 -25
- package/input/_input-base.scss +3 -2
- package/input/_input-theme.scss +14 -14
- package/input/input-password.d.ts +0 -1
- package/input/input.scss +3 -4
- package/link/_link-theme.scss +36 -32
- package/list/_list-base.scss +4 -3
- package/list/_list-theme.scss +8 -8
- package/list/list.scss +2 -1
- package/loader-overlay/_loader-overlay-theme.scss +8 -8
- package/loader-overlay/loader-overlay.scss +7 -12
- package/markdown/_markdown-theme.scss +61 -43
- package/markdown/markdown.scss +39 -80
- package/modal/_modal-confirm.scss +3 -2
- package/modal/_modal-theme.scss +20 -21
- package/modal/modal.scss +18 -15
- package/navbar/_navbar-theme.scss +19 -18
- package/navbar/navbar-brand.scss +7 -9
- package/navbar/navbar-item.component.d.ts +4 -4
- package/navbar/navbar-item.scss +8 -7
- package/navbar/vertical-navbar.scss +4 -12
- package/package.json +25 -25
- package/popover/_popover-theme.scss +35 -35
- package/popover/popover.scss +15 -14
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/progress-bar/_progress-bar-theme.scss +6 -5
- package/progress-bar/progress-bar.scss +2 -1
- package/progress-spinner/_progress-spinner-theme.scss +4 -3
- package/progress-spinner/progress-spinner.scss +7 -12
- package/radio/_radio-theme.scss +32 -24
- package/radio/radio.scss +8 -11
- package/select/_select-theme.scss +13 -13
- package/select/select-option.directive.d.ts +3 -2
- package/select/select.component.d.ts +1 -0
- package/select/select.scss +19 -42
- package/sidepanel/_sidepanel-theme.scss +9 -9
- package/sidepanel/sidepanel.scss +11 -10
- package/splitter/_splitter-theme.scss +5 -3
- package/table/_table-theme.scss +9 -9
- package/table/table.scss +11 -14
- package/tabs/_tabs-common.scss +15 -14
- package/tabs/_tabs-theme.scss +67 -55
- package/tabs/tab-group.scss +2 -1
- package/tabs/tab-header.scss +16 -3
- package/tabs/tab-nav-bar/tab-nav-bar.scss +15 -2
- package/tags/_tag-theme.scss +30 -27
- package/tags/tag-input.d.ts +9 -4
- package/tags/tag-list.scss +4 -3
- package/tags/tag.scss +9 -8
- package/textarea/_textarea-base.scss +2 -4
- package/textarea/_textarea-theme.scss +8 -8
- package/textarea/textarea.scss +2 -4
- package/timepicker/timepicker.scss +2 -7
- package/timezone/_timezone-option-theme.scss +7 -7
- package/timezone/timezone-option.component.scss +5 -4
- package/timezone/timezone-option.directive.d.ts +3 -2
- package/title/title.directive.d.ts +0 -1
- package/toast/_toast-theme.scss +13 -16
- package/toast/toast-container.component.scss +2 -5
- package/toast/toast.component.scss +15 -17
- package/toggle/_toggle-theme.scss +22 -21
- package/toggle/toggle.scss +19 -21
- package/tooltip/_tooltip-theme.scss +26 -31
- package/tooltip/tooltip.component.d.ts +12 -8
- package/tooltip/tooltip.scss +13 -17
- package/tree/_tree-theme.scss +8 -8
- package/tree/toggle.scss +3 -5
- package/tree/tree-option.scss +5 -4
- package/tree-select/_tree-select-theme.scss +9 -9
- package/tree-select/tree-select.component.d.ts +1 -0
- package/tree-select/tree-select.scss +17 -35
- package/_theming.scss +0 -10827
- package/_visual.scss +0 -3541
- package/prebuilt-visual/default-visual.css +0 -1
package/tags/_tag-theme.scss
CHANGED
@@ -3,36 +3,40 @@
|
|
3
3
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
6
7
|
|
7
|
-
|
8
|
-
|
9
|
-
|
8
|
+
|
9
|
+
@mixin mc-tag-color($component, $style-name) {
|
10
|
+
$style: map-get($component, $style-name);
|
11
|
+
|
12
|
+
background: mc-css-variable(tags-#{$style-name}-background, map-get($style, background));
|
13
|
+
border-color: mc-css-variable(tags-#{$style-name}-border, map-get($style, border));
|
10
14
|
|
11
15
|
& .mc-tag__text {
|
12
|
-
color: map
|
16
|
+
color: mc-css-variable(tags-#{$style-name}-text, map-get($style, text));
|
13
17
|
}
|
14
18
|
|
15
19
|
&.mc-active,
|
16
20
|
&.mc-focused {
|
17
|
-
border-color: map
|
18
|
-
box-shadow: 0 0 0 1px map
|
21
|
+
border-color: mc-css-variable(tags-#{$style-name}-focused, map-get($style, focused));
|
22
|
+
box-shadow: 0 0 0 1px mc-css-variable(tags-#{$style-name}-focused, map-get($style, focused));
|
19
23
|
}
|
20
24
|
|
21
25
|
&:not(.mc-disabled) .mc-icon {
|
22
|
-
color: map
|
26
|
+
color: mc-css-variable(tags-#{$style-name}-icon, map-get($style, icon));
|
23
27
|
|
24
28
|
&.mc-tag-remove:hover {
|
25
|
-
color: map
|
29
|
+
color: mc-css-variable(tags-#{$style-name}-icon_hovered, map-get($style, icon_hovered));
|
26
30
|
}
|
27
31
|
}
|
28
32
|
|
29
33
|
&.mc-disabled {
|
30
|
-
border-color: map
|
31
|
-
background: map
|
34
|
+
border-color: mc-css-variable(tags-#{$style-name}-border_disabled, map-get($style, border_disabled));
|
35
|
+
background: mc-css-variable(tags-#{$style-name}-background_disabled, map-get($style, background_disabled));
|
32
36
|
|
33
37
|
& .mc-icon,
|
34
38
|
& .mc-tag__text {
|
35
|
-
color: map
|
39
|
+
color: mc-css-variable(tags-#{$style-name}-disabled, map-get($style, disabled));
|
36
40
|
}
|
37
41
|
|
38
42
|
& .mc-tag-overlay {
|
@@ -49,30 +53,31 @@
|
|
49
53
|
|
50
54
|
.mc-tag {
|
51
55
|
&.mc-primary {
|
52
|
-
@include mc-tag-color(
|
56
|
+
@include mc-tag-color($tags, primary);
|
53
57
|
}
|
54
58
|
|
55
59
|
&.mc-secondary {
|
56
|
-
@include mc-tag-color(
|
60
|
+
@include mc-tag-color($tags, secondary);
|
57
61
|
}
|
58
62
|
|
59
63
|
&.mc-error {
|
60
|
-
@include mc-tag-color(
|
64
|
+
@include mc-tag-color($tags, error);
|
61
65
|
}
|
62
66
|
|
63
67
|
&:hover,
|
64
68
|
&.mc-hovered {
|
65
69
|
& .mc-tag-overlay {
|
66
|
-
background: map
|
70
|
+
background: mc-css-variable(background-overlay-hover, map-get($background, overlay-hover));
|
67
71
|
}
|
68
72
|
}
|
69
73
|
|
70
74
|
&.mc-disabled {
|
71
|
-
color: map
|
75
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
72
76
|
|
73
77
|
border-color: transparent;
|
74
78
|
|
75
|
-
background-color:
|
79
|
+
background-color: mc-css-variable(
|
80
|
+
background-background-disabled, map-get($background, background-disabled));
|
76
81
|
|
77
82
|
& .mc-tag-overlay {
|
78
83
|
background: mc-color($background, overlay-disabled);
|
@@ -81,39 +86,37 @@
|
|
81
86
|
}
|
82
87
|
|
83
88
|
.mc-tag-input {
|
84
|
-
color: map
|
89
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
85
90
|
|
86
91
|
&::placeholder {
|
87
|
-
color: map
|
92
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
88
93
|
}
|
89
94
|
|
90
95
|
&::-ms-input-placeholder {
|
91
|
-
color: map
|
96
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
92
97
|
}
|
93
98
|
|
94
99
|
&::-webkit-input-placeholder {
|
95
|
-
color: map
|
100
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
96
101
|
}
|
97
102
|
}
|
98
103
|
}
|
99
104
|
|
100
105
|
@mixin mc-tag-typography($config) {
|
101
|
-
$tokens: map.get($config, tokens);
|
102
|
-
|
103
106
|
.mc-tag:not(.mc-tag_mono):not(.mc-tag_caps) {
|
104
|
-
@include mc-typography-
|
107
|
+
@include mc-typography-css-variables(tags, default);
|
105
108
|
}
|
106
109
|
|
107
110
|
.mc-tag_mono {
|
108
|
-
@include mc-typography-
|
111
|
+
@include mc-typography-css-variables(tags, mono);
|
109
112
|
}
|
110
113
|
|
111
114
|
.mc-tag_caps {
|
112
|
-
@include mc-typography-
|
115
|
+
@include mc-typography-css-variables(tags, caps);
|
113
116
|
}
|
114
117
|
|
115
118
|
.mc-tag-input {
|
116
|
-
@include mc-typography-
|
119
|
+
@include mc-typography-css-variables(tag-input, default);
|
117
120
|
}
|
118
121
|
}
|
119
122
|
|
package/tags/tag-input.d.ts
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
import { ElementRef, EventEmitter, OnChanges, Renderer2 } from '@angular/core';
|
2
2
|
import { NgControl } from '@angular/forms';
|
3
|
+
import { McAutocompleteTrigger } from '@ptsecurity/mosaic/autocomplete';
|
3
4
|
import { McTrim } from '@ptsecurity/mosaic/form-field';
|
4
5
|
import { McTagsDefaultOptions } from './tag-default-options';
|
5
6
|
import { McTagList } from './tag-list.component';
|
@@ -26,6 +27,7 @@ export declare class McTagInput implements McTagTextControl, OnChanges {
|
|
26
27
|
private defaultOptions;
|
27
28
|
private trimDirective;
|
28
29
|
ngControl: NgControl;
|
30
|
+
autocompleteTrigger?: McAutocompleteTrigger | undefined;
|
29
31
|
/** Whether the control is focused. */
|
30
32
|
focused: boolean;
|
31
33
|
/**
|
@@ -39,6 +41,8 @@ export declare class McTagInput implements McTagTextControl, OnChanges {
|
|
39
41
|
private _separators;
|
40
42
|
/** Emitted when a tag is to be added. */
|
41
43
|
tagEnd: EventEmitter<McTagInputEvent>;
|
44
|
+
/** A value indicating whether allow/prevent tags duplication */
|
45
|
+
distinct: boolean;
|
42
46
|
/** The input's placeholder text. */
|
43
47
|
placeholder: string;
|
44
48
|
/** Unique id for the input. */
|
@@ -62,14 +66,15 @@ export declare class McTagInput implements McTagTextControl, OnChanges {
|
|
62
66
|
private oneSymbolWidth;
|
63
67
|
/** The native input element to which this directive is attached. */
|
64
68
|
private inputElement;
|
65
|
-
constructor(elementRef: ElementRef<HTMLInputElement>, renderer: Renderer2, defaultOptions: McTagsDefaultOptions, trimDirective: McTrim, ngControl: NgControl);
|
69
|
+
constructor(elementRef: ElementRef<HTMLInputElement>, renderer: Renderer2, defaultOptions: McTagsDefaultOptions, trimDirective: McTrim, ngControl: NgControl, autocompleteTrigger?: McAutocompleteTrigger | undefined);
|
66
70
|
ngOnChanges(): void;
|
67
71
|
onKeydown(event: KeyboardEvent): void;
|
68
72
|
/** Checks to see if the blur should emit the (tagEnd) event. */
|
69
|
-
blur(): void;
|
73
|
+
blur(event: FocusEvent): void;
|
70
74
|
triggerValidation(): void;
|
71
75
|
/** Checks to see if the (tagEnd) event needs to be emitted. */
|
72
76
|
emitTagEnd(): void;
|
77
|
+
get hasDuplicates(): boolean;
|
73
78
|
onInput(): void;
|
74
79
|
onPaste($event: ClipboardEvent): void;
|
75
80
|
updateInputWidth(): void;
|
@@ -82,6 +87,6 @@ export declare class McTagInput implements McTagTextControl, OnChanges {
|
|
82
87
|
private setDefaultInputWidth;
|
83
88
|
/** Checks whether a keycode is one of the configured separators. */
|
84
89
|
private isSeparatorKey;
|
85
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McTagInput, [null, null, null, { optional: true; self: true; }, { optional: true; self: true; }]>;
|
86
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<McTagInput, "input[mcTagInputFor]", ["mcTagInput", "mcTagInputFor"], { "separatorKeyCodes": { "alias": "mcTagInputSeparatorKeyCodes"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "tagList": { "alias": "mcTagInputFor"; "required": false; }; "addOnBlur": { "alias": "mcTagInputAddOnBlur"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "tagEnd": "mcTagInputTokenEnd"; }, never, never, false, never>;
|
90
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTagInput, [null, null, null, { optional: true; self: true; }, { optional: true; self: true; }, { optional: true; self: true; }]>;
|
91
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<McTagInput, "input[mcTagInputFor]", ["mcTagInput", "mcTagInputFor"], { "separatorKeyCodes": { "alias": "mcTagInputSeparatorKeyCodes"; "required": false; }; "distinct": { "alias": "distinct"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "id": { "alias": "id"; "required": false; }; "tagList": { "alias": "mcTagInputFor"; "required": false; }; "addOnBlur": { "alias": "mcTagInputAddOnBlur"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "tagEnd": "mcTagInputTokenEnd"; }, never, never, false, never>;
|
87
92
|
}
|
package/tags/tag-list.scss
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
4
|
@use '../core/styles/tokens';
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
5
6
|
|
6
7
|
|
7
8
|
$tokens: meta.module-variables(tokens) !default;
|
@@ -42,14 +43,14 @@ $tokens: meta.module-variables(tokens) !default;
|
|
42
43
|
|
43
44
|
flex: 1 1 auto;
|
44
45
|
|
45
|
-
height:
|
46
|
-
margin:
|
46
|
+
height: mc-css-variable(tag-input-size-height);
|
47
|
+
margin: mc-css-variable(tag-input-size-margin);
|
47
48
|
}
|
48
49
|
}
|
49
50
|
|
50
51
|
.mc-form-field-type-tag-list {
|
51
52
|
.mc-tags-list__list-container {
|
52
|
-
padding:
|
53
|
+
padding: mc-css-variable(tag-list-size-padding);
|
53
54
|
}
|
54
55
|
}
|
55
56
|
|
package/tags/tag.scss
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
4
|
@use '../core/styles/tokens';
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
5
6
|
|
6
7
|
|
7
8
|
$tokens: meta.module-variables(tokens) !default;
|
@@ -13,14 +14,14 @@ $tokens: meta.module-variables(tokens) !default;
|
|
13
14
|
|
14
15
|
max-width: 100%;
|
15
16
|
|
16
|
-
margin:
|
17
|
+
margin: mc-css-variable(tags-size-margin);
|
17
18
|
|
18
|
-
height:
|
19
|
+
height: mc-css-variable(tags-size-height);
|
19
20
|
|
20
21
|
border: {
|
21
|
-
width:
|
22
|
+
width: mc-css-variable(tags-size-border-width);
|
22
23
|
style: solid;
|
23
|
-
radius:
|
24
|
+
radius: mc-css-variable(tags-size-border-radius);
|
24
25
|
}
|
25
26
|
|
26
27
|
cursor: default;
|
@@ -67,15 +68,15 @@ $tokens: meta.module-variables(tokens) !default;
|
|
67
68
|
|
68
69
|
flex-shrink: 0;
|
69
70
|
|
70
|
-
height:
|
71
|
+
height: mc-css-variable(tags-size-height);
|
71
72
|
|
72
|
-
padding-left:
|
73
|
-
padding-right:
|
73
|
+
padding-left: mc-css-variable(tags-size-icon-padding);
|
74
|
+
padding-right: mc-css-variable(tags-size-icon-padding);
|
74
75
|
}
|
75
76
|
/* stylelint-enable no-descending-specificity */
|
76
77
|
|
77
78
|
.mc-icon_left {
|
78
|
-
margin-right:
|
79
|
+
margin-right: mc-css-variable(tags-size-icon-padding);
|
79
80
|
}
|
80
81
|
|
81
82
|
& > .mc-icon:first-child {
|
@@ -1,11 +1,9 @@
|
|
1
1
|
@use 'sass:meta';
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
|
-
@use '../core/styles/tokens'
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
5
5
|
|
6
6
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
8
|
-
|
9
7
|
%mc-textarea-base {
|
10
8
|
background: transparent;
|
11
9
|
margin: 0;
|
@@ -18,5 +16,5 @@ $tokens: meta.module-variables(tokens) !default;
|
|
18
16
|
width: 100%;
|
19
17
|
|
20
18
|
box-sizing: border-box;
|
21
|
-
padding:
|
19
|
+
padding: mc-css-variable(textarea-size-padding);
|
22
20
|
}
|
@@ -3,35 +3,35 @@
|
|
3
3
|
|
4
4
|
@use '../core/styles/theming/theming' as *;
|
5
5
|
@use '../core/styles/typography/typography-utils' as *;
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
7
|
+
|
6
8
|
|
7
9
|
@mixin mc-textarea-theme($theme) {
|
8
10
|
$foreground: map.get($theme, foreground);
|
9
11
|
|
10
12
|
.mc-textarea {
|
11
|
-
color: map
|
13
|
+
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
12
14
|
|
13
15
|
&::placeholder {
|
14
|
-
color: map
|
16
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
15
17
|
}
|
16
18
|
|
17
19
|
&::-ms-input-placeholder {
|
18
|
-
color: map
|
20
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
19
21
|
}
|
20
22
|
|
21
23
|
&::-webkit-input-placeholder {
|
22
|
-
color: map
|
24
|
+
color: mc-css-variable(foreground-text-disabled, map-get($foreground, text-disabled));
|
23
25
|
}
|
24
26
|
}
|
25
27
|
}
|
26
28
|
|
27
29
|
@mixin mc-textarea-typography($config) {
|
28
|
-
$tokens: map.get($config, tokens);
|
29
|
-
|
30
30
|
textarea.mc-textarea {
|
31
|
-
@include mc-typography-
|
31
|
+
@include mc-typography-css-variables(textarea, default);
|
32
32
|
}
|
33
33
|
|
34
34
|
.mc-textarea.mc-textarea_monospace {
|
35
|
-
@include mc-typography-
|
35
|
+
@include mc-typography-css-variables(textarea, mono);
|
36
36
|
}
|
37
37
|
}
|
package/textarea/textarea.scss
CHANGED
@@ -3,11 +3,9 @@
|
|
3
3
|
|
4
4
|
@use 'textarea-base' as *;
|
5
5
|
|
6
|
-
@use '../core/styles/tokens'
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
7
7
|
|
8
8
|
|
9
|
-
$tokens: meta.module-variables(tokens) !default;
|
10
|
-
|
11
9
|
.mc-textarea {
|
12
10
|
@extend %mc-textarea-base;
|
13
11
|
|
@@ -22,7 +20,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
22
20
|
|
23
21
|
&.mc-textarea-resizable {
|
24
22
|
resize: vertical;
|
25
|
-
min-height:
|
23
|
+
min-height: mc-css-variable(textarea-size-min-height);
|
26
24
|
}
|
27
25
|
}
|
28
26
|
|
@@ -1,16 +1,11 @@
|
|
1
1
|
@use 'sass:meta';
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
|
-
@use '../core/styles/tokens'
|
4
|
+
@use '../core/styles/common/tokens' as *;
|
5
5
|
|
6
6
|
|
7
|
-
$tokens: meta.module-variables(tokens) !default;
|
8
|
-
|
9
7
|
.mc-timepicker {
|
10
|
-
padding-right:
|
11
|
-
var(--mc-timepicker-size-padding-right, #{map.get($tokens, timepicker-size-padding-right)}) -
|
12
|
-
var(--mc-form-field-size-border-width, #{map.get($tokens, form-field-size-border-width)})
|
13
|
-
);
|
8
|
+
padding-right: mc-css-variable(timepicker-size-padding-right);
|
14
9
|
}
|
15
10
|
|
16
11
|
.mc-form-field-type-timepicker {
|
@@ -2,32 +2,32 @@
|
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
6
|
+
|
5
7
|
|
6
8
|
@mixin mc-timezone-option-theme($theme) {
|
7
9
|
$timezone: map.get(map.get($theme, components), timezone);
|
8
10
|
|
9
11
|
.mc-timezone-option__offset,
|
10
12
|
.mc-timezone-option__city {
|
11
|
-
color: map
|
13
|
+
color: mc-css-variable(timezone-text, map-get($timezone, text));
|
12
14
|
}
|
13
15
|
|
14
16
|
.mc-timezone-option__cities {
|
15
|
-
color: map
|
17
|
+
color: mc-css-variable(timezone-caption, map-get($timezone, caption));
|
16
18
|
}
|
17
19
|
}
|
18
20
|
|
19
21
|
@mixin mc-timezone-option-typography($config) {
|
20
|
-
$tokens: map.get($config, tokens);
|
21
|
-
|
22
22
|
.mc-timezone-option__offset {
|
23
|
-
@include mc-typography-
|
23
|
+
@include mc-typography-css-variables(timezone-option, offset-text);
|
24
24
|
}
|
25
25
|
|
26
26
|
.mc-timezone-option__city {
|
27
|
-
@include mc-typography-
|
27
|
+
@include mc-typography-css-variables(timezone-option, text);
|
28
28
|
}
|
29
29
|
|
30
30
|
.mc-timezone-option__cities {
|
31
|
-
@include mc-typography-
|
31
|
+
@include mc-typography-css-variables(timezone-option, caption);
|
32
32
|
}
|
33
33
|
}
|
@@ -2,6 +2,7 @@
|
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
4
|
@use '../core/styles/tokens';
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
5
6
|
|
6
7
|
|
7
8
|
$tokens: meta.module-variables(tokens) !default;
|
@@ -11,8 +12,8 @@ $tokens: meta.module-variables(tokens) !default;
|
|
11
12
|
flex-direction: row;
|
12
13
|
align-items: flex-start;
|
13
14
|
|
14
|
-
padding:
|
15
|
-
column-gap:
|
15
|
+
padding: mc-css-variable(timezone-option-size-padding);
|
16
|
+
column-gap: mc-css-variable(timezone-option-size-column-gap);
|
16
17
|
}
|
17
18
|
|
18
19
|
.mc-timezone-option__label {
|
@@ -26,10 +27,10 @@ $tokens: meta.module-variables(tokens) !default;
|
|
26
27
|
.mc-timezone-option__cities {
|
27
28
|
display: -webkit-box;
|
28
29
|
-webkit-box-orient: vertical;
|
29
|
-
max-height:
|
30
|
+
max-height: mc-css-variable(timezone-option-size-max-height);
|
30
31
|
overflow: hidden;
|
31
32
|
}
|
32
33
|
|
33
34
|
.mc-select__panel .mc-timezone-option {
|
34
|
-
height:
|
35
|
+
height: mc-css-variable(timezone-option-size-height);
|
35
36
|
}
|
@@ -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 { AfterViewInit, ElementRef, NgZone, OnDestroy, ViewContainerRef, ChangeDetectorRef } from '@angular/core';
|
@@ -9,12 +10,12 @@ export declare class McTimezoneOptionTooltip extends McTooltipTrigger implements
|
|
9
10
|
private changeDetectorRef;
|
10
11
|
private option;
|
11
12
|
private resizeObserver;
|
12
|
-
constructor(changeDetectorRef: ChangeDetectorRef, option: McTimezoneOption, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality);
|
13
|
+
constructor(changeDetectorRef: ChangeDetectorRef, option: McTimezoneOption, overlay: Overlay, elementRef: ElementRef, ngZone: NgZone, scrollDispatcher: ScrollDispatcher, hostView: ViewContainerRef, scrollStrategy: any, direction: Directionality, focusMonitor: FocusMonitor);
|
13
14
|
ngAfterViewInit(): void;
|
14
15
|
ngOnDestroy(): void;
|
15
16
|
onMouseEnter(): void;
|
16
17
|
onMouseLeave(): void;
|
17
18
|
private checkTooltipDisabled;
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McTimezoneOptionTooltip, [null, null, null, null, null, null, null, null, { optional: true; }]>;
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McTimezoneOptionTooltip, [null, null, null, null, null, null, null, null, { optional: true; }, null]>;
|
19
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<McTimezoneOptionTooltip, "mc-timezone-option", never, {}, {}, never, never, false, never>;
|
20
21
|
}
|
@@ -7,7 +7,6 @@ import { McTooltipTrigger } from '@ptsecurity/mosaic/tooltip';
|
|
7
7
|
import { Subject } from 'rxjs';
|
8
8
|
import * as i0 from "@angular/core";
|
9
9
|
export declare class McTitleDirective extends McTooltipTrigger implements AfterViewInit {
|
10
|
-
private focusMonitor;
|
11
10
|
private componentInstance?;
|
12
11
|
get isOverflown(): boolean;
|
13
12
|
get viewValue(): string;
|
package/toast/_toast-theme.scss
CHANGED
@@ -2,60 +2,57 @@
|
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
4
|
@use '../core/styles/typography/typography-utils' as *;
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
5
6
|
|
6
7
|
|
7
8
|
@mixin mc-toast-theme($theme) {
|
8
|
-
$
|
9
|
-
|
10
|
-
$toast: map.get(map.get($theme, components), toast);
|
9
|
+
$toast: map-get(map-get($theme, components), toast);
|
11
10
|
|
12
11
|
.mc-toast {
|
13
12
|
&.mc-toast_info .mc-toast__icon {
|
14
|
-
color: map
|
13
|
+
color: mc-css-variable(toast-icon_info, map-get($toast, icon_info));
|
15
14
|
}
|
16
15
|
|
17
16
|
&.mc-toast_success .mc-toast__icon {
|
18
|
-
color: map
|
17
|
+
color: mc-css-variable(toast-icon_success, map-get($toast, icon_success));
|
19
18
|
}
|
20
19
|
|
21
20
|
&.mc-toast_warning .mc-toast__icon {
|
22
|
-
color: map
|
21
|
+
color: mc-css-variable(toast-icon_warning, map-get($toast, icon_warning));
|
23
22
|
}
|
24
23
|
|
25
24
|
&.mc-toast_error .mc-toast__icon {
|
26
|
-
color: map
|
25
|
+
color: mc-css-variable(toast-icon_error, map-get($toast, icon_error));
|
27
26
|
}
|
28
27
|
}
|
29
28
|
|
30
29
|
.mc-toast__wrapper {
|
31
|
-
border-color: map
|
30
|
+
border-color: mc-css-variable(toast-border, map-get($toast, border));
|
32
31
|
|
33
|
-
background: map
|
32
|
+
background: mc-css-variable(toast-background, map-get($toast, background));
|
34
33
|
|
35
|
-
box-shadow: map
|
34
|
+
box-shadow: mc-css-variable(toast-shadow, map-get($toast, shadow));
|
36
35
|
}
|
37
36
|
|
38
37
|
.mc-toast__title {
|
39
|
-
color: map
|
38
|
+
color: mc-css-variable(toast-text, map-get($toast, text));
|
40
39
|
}
|
41
40
|
|
42
41
|
.mc-toast__caption {
|
43
|
-
color: map
|
42
|
+
color: mc-css-variable(toast-text-caption, map-get($toast, text-caption));
|
44
43
|
}
|
45
44
|
}
|
46
45
|
|
47
46
|
@mixin mc-toast-typography($config) {
|
48
|
-
$tokens: map.get($config, tokens);
|
49
|
-
|
50
47
|
.mc-toast {
|
51
48
|
@include mc-typography-level-to-styles($config, body);
|
52
49
|
}
|
53
50
|
|
54
51
|
.mc-toast__title {
|
55
|
-
@include mc-typography-
|
52
|
+
@include mc-typography-css-variables(toast, title);
|
56
53
|
}
|
57
54
|
|
58
55
|
.mc-toast__caption {
|
59
|
-
@include mc-typography-
|
56
|
+
@include mc-typography-css-variables(toast, caption);
|
60
57
|
}
|
61
58
|
}
|
@@ -1,18 +1,15 @@
|
|
1
1
|
@use 'sass:meta';
|
2
2
|
@use 'sass:map';
|
3
3
|
|
4
|
-
@use '../core/styles/tokens';
|
5
4
|
@use '../core/styles/variables';
|
6
|
-
|
7
|
-
|
8
|
-
$tokens: meta.module-variables(tokens) !default;
|
5
|
+
@use '../core/styles/common/tokens' as *;
|
9
6
|
|
10
7
|
|
11
8
|
.mc-toast-container {
|
12
9
|
display: flex;
|
13
10
|
flex-direction: column;
|
14
11
|
|
15
|
-
gap:
|
12
|
+
gap: mc-css-variable(toast-size-gap);
|
16
13
|
}
|
17
14
|
|
18
15
|
.cdk-overlay-container {
|
@@ -3,11 +3,9 @@
|
|
3
3
|
|
4
4
|
@use '../core/styles/variables' as *;
|
5
5
|
|
6
|
-
@use '../core/styles/tokens'
|
6
|
+
@use '../core/styles/common/tokens' as *;
|
7
7
|
|
8
8
|
|
9
|
-
$tokens: meta.module-variables(tokens) !default;
|
10
|
-
|
11
9
|
.mc-toast {
|
12
10
|
box-sizing: border-box;
|
13
11
|
|
@@ -23,28 +21,28 @@ $tokens: meta.module-variables(tokens) !default;
|
|
23
21
|
display: flex;
|
24
22
|
flex: 1 1 auto;
|
25
23
|
|
26
|
-
width:
|
24
|
+
width: mc-css-variable(toast-size-width);
|
27
25
|
|
28
|
-
padding-right:
|
29
|
-
padding-left:
|
26
|
+
padding-right: mc-css-variable(toast-size-padding-right);
|
27
|
+
padding-left: mc-css-variable(toast-size-padding-left);
|
30
28
|
|
31
|
-
border-width:
|
29
|
+
border-width: mc-css-variable(toast-size-border-width);
|
32
30
|
border-style: solid;
|
33
|
-
border-radius:
|
31
|
+
border-radius: mc-css-variable(toast-size-border-radius);
|
34
32
|
}
|
35
33
|
|
36
34
|
.mc-toast__icon-container {
|
37
|
-
padding-right:
|
35
|
+
padding-right: mc-css-variable(toast-size-icon-margin);
|
38
36
|
|
39
|
-
padding-top:
|
40
|
-
padding-bottom:
|
37
|
+
padding-top: mc-css-variable(toast-size-padding-vertical);
|
38
|
+
padding-bottom: mc-css-variable(toast-size-padding-vertical);
|
41
39
|
}
|
42
40
|
|
43
41
|
.mc-toast__container {
|
44
42
|
width: 100%;
|
45
43
|
|
46
|
-
padding-top:
|
47
|
-
padding-bottom:
|
44
|
+
padding-top: mc-css-variable(toast-size-padding-vertical);
|
45
|
+
padding-bottom: mc-css-variable(toast-size-padding-vertical);
|
48
46
|
}
|
49
47
|
|
50
48
|
.mc-toast__title {
|
@@ -59,18 +57,18 @@ $tokens: meta.module-variables(tokens) !default;
|
|
59
57
|
}
|
60
58
|
|
61
59
|
.mc-toast__actions {
|
62
|
-
margin-top:
|
60
|
+
margin-top: mc-css-variable(toast-size-actionbar-margin);
|
63
61
|
|
64
62
|
& > * {
|
65
|
-
margin-right:
|
63
|
+
margin-right: mc-css-variable(toast-size-actionbar-gap);
|
66
64
|
}
|
67
65
|
}
|
68
66
|
|
69
67
|
.mc-toast__close {
|
70
68
|
float: right;
|
71
69
|
|
72
|
-
width:
|
73
|
-
height:
|
70
|
+
width: mc-css-variable(toast-size-close-button-width);
|
71
|
+
height: mc-css-variable(toast-size-close-button-width);
|
74
72
|
|
75
73
|
margin: -6px -8px -6px 8px;
|
76
74
|
}
|