@ptsecurity/mosaic 17.2.0 → 17.3.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 -2
- package/autocomplete/autocomplete.scss +0 -2
- package/button/_button-theme.scss +3 -3
- package/button-toggle/_button-toggle-theme.scss +2 -2
- package/button-toggle/button-toggle.scss +2 -2
- package/checkbox/_checkbox-theme.scss +1 -1
- package/code-block/_code-block-theme.scss +3 -3
- 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 +3 -3
- 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/selection/pseudo-checkbox/_pseudo-checkbox-theme.scss +16 -11
- package/core/styles/common/_groups.scss +3 -2
- package/core/styles/common/_popup.scss +1 -1
- package/core/styles/common/_tokens.scss +33 -14
- package/core/styles/theming/_alerts.scss +20 -19
- package/core/styles/theming/_badges.scss +38 -36
- package/core/styles/theming/_components-theming.scss +13 -13
- package/core/styles/theming/_scrollbars.scss +24 -27
- package/core/styles/theming/_theming.scss +10 -8
- package/core/styles/typography/_typography-utils.scss +1 -1
- package/core/styles/typography/_typography.scss +29 -28
- package/core/styles/visual/_layout.scss +14 -13
- package/datepicker/_datepicker-theme.scss +5 -6
- package/divider/_divider-theme.scss +1 -1
- package/dl/_dl-theme.scss +9 -9
- package/dropdown/_dropdown-theme.scss +4 -4
- package/esm2022/button-toggle/button-toggle.component.mjs +2 -2
- package/esm2022/core/form-field/form-field-ref.mjs +8 -0
- package/esm2022/core/form-field/index.mjs +2 -0
- 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 +2 -2
- package/esm2022/file-upload/single-file-upload.component.mjs +2 -2
- package/esm2022/form-field/form-field.mjs +5 -11
- package/esm2022/form-field/password-hint.mjs +5 -4
- package/esm2022/modal/modal.component.mjs +2 -2
- package/esm2022/navbar/navbar.component.mjs +2 -2
- package/esm2022/navbar/vertical-navbar.component.mjs +3 -3
- package/esm2022/select/select.component.mjs +17 -113
- package/esm2022/select/select.module.mjs +17 -17
- 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-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 +5 -5
- package/esm2022/toast/toast.service.mjs +17 -11
- package/esm2022/tree-select/tree-select.component.mjs +6 -7
- package/fesm2022/ptsecurity-mosaic-button-toggle.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-button-toggle.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-core.mjs +125 -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 +4 -4
- package/fesm2022/ptsecurity-mosaic-file-upload.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-form-field.mjs +7 -13
- package/fesm2022/ptsecurity-mosaic-form-field.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-modal.mjs +2 -2
- package/fesm2022/ptsecurity-mosaic-modal.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-navbar.mjs +4 -4
- package/fesm2022/ptsecurity-mosaic-navbar.mjs.map +1 -1
- package/fesm2022/ptsecurity-mosaic-select.mjs +35 -131
- 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 +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 +4 -4
- 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 +6 -6
- 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.scss +9 -9
- package/file-upload/single-file-upload.component.scss +3 -3
- package/form-field/_form-field-theme.scss +7 -5
- package/form-field/form-field.d.ts +1 -7
- package/form-field/form-field.scss +1 -1
- package/icon/_icon-theme.scss +1 -1
- package/input/_input-theme.scss +4 -4
- package/link/_link-theme.scss +3 -3
- package/list/_list-theme.scss +1 -1
- package/loader-overlay/_loader-overlay-theme.scss +2 -2
- package/markdown/_markdown-theme.scss +15 -15
- package/modal/_modal-theme.scss +4 -4
- package/modal/modal.scss +2 -2
- package/navbar/_navbar-theme.scss +6 -6
- package/navbar/navbar-item.scss +2 -2
- package/package.json +5 -5
- package/popover/_popover-theme.scss +4 -4
- package/prebuilt-themes/dark-theme.css +1 -1
- package/prebuilt-themes/default-theme.css +1 -1
- package/radio/_radio-theme.scss +2 -2
- package/select/_select-theme.scss +4 -4
- package/select/select.component.d.ts +2 -32
- package/select/select.module.d.ts +1 -1
- package/select/select.scss +1 -1
- package/sidepanel/_sidepanel-theme.scss +5 -5
- package/table/_table-theme.scss +2 -2
- package/tabs/_tabs-theme.scss +3 -3
- package/tabs/tab-header.scss +16 -12
- package/tabs/tab-nav-bar/tab-nav-bar.scss +15 -13
- package/tags/_tag-theme.scss +7 -7
- 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 +4 -4
- 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 +3 -3
- package/tooltip/_tooltip-theme.scss +4 -4
- 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
- package/tree-select/tree-select.scss +1 -1
package/radio/_radio-theme.scss
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
$foreground: map.get($theme, foreground);
|
9
9
|
$background: map.get($theme, background);
|
10
10
|
|
11
|
-
$radio: map.get(
|
11
|
+
$radio: map.get($theme, components, radio);
|
12
12
|
|
13
13
|
.mc-radio-group {
|
14
14
|
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
@@ -102,6 +102,6 @@
|
|
102
102
|
|
103
103
|
@mixin mc-radio-typography($config) {
|
104
104
|
.mc-radio-group {
|
105
|
-
@include mc-typography-css-variables(radio, default);
|
105
|
+
@include mc-typography-css-variables($config, radio, default);
|
106
106
|
}
|
107
107
|
}
|
@@ -12,8 +12,8 @@
|
|
12
12
|
|
13
13
|
$error: map.get($theme, error);
|
14
14
|
|
15
|
-
$popup: map.get(
|
16
|
-
$list: map-get(
|
15
|
+
$popup: map.get($theme, components, popup);
|
16
|
+
$list: map-get($theme, components, list);
|
17
17
|
|
18
18
|
.mc-select {
|
19
19
|
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
@@ -51,10 +51,10 @@
|
|
51
51
|
|
52
52
|
@mixin mc-select-typography($config) {
|
53
53
|
.mc-select {
|
54
|
-
@include mc-typography-css-variables(select, default);
|
54
|
+
@include mc-typography-css-variables($config, select, default);
|
55
55
|
}
|
56
56
|
|
57
57
|
.mc-select__panel {
|
58
|
-
@include mc-typography-css-variables(select-panel, default);
|
58
|
+
@include mc-typography-css-variables($config, select-panel, default);
|
59
59
|
}
|
60
60
|
}
|
@@ -5,11 +5,10 @@ import { CdkVirtualForOf } from '@angular/cdk/scrolling';
|
|
5
5
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, SimpleChanges, TemplateRef } from '@angular/core';
|
6
6
|
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
7
7
|
import { ActiveDescendantKeyManager } from '@ptsecurity/cdk/a11y';
|
8
|
-
import { CanDisable, CanDisableCtor, CanUpdateErrorState, CanUpdateErrorStateCtor, ErrorStateMatcher, HasTabIndex, HasTabIndexCtor, McOptgroup, McOption, McOptionSelectionChange, McLocaleService, McOptionBase } from '@ptsecurity/mosaic/core';
|
8
|
+
import { CanDisable, CanDisableCtor, CanUpdateErrorState, CanUpdateErrorStateCtor, ErrorStateMatcher, HasTabIndex, HasTabIndexCtor, McOptgroup, McOption, McOptionSelectionChange, McLocaleService, McOptionBase, McSelectTrigger, McSelectMatcher, McSelectFooter, McSelectSearch } from '@ptsecurity/mosaic/core';
|
9
9
|
import { McCleaner, McFormField, McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
10
|
-
import { McInput } from '@ptsecurity/mosaic/input';
|
11
10
|
import { McTag } from '@ptsecurity/mosaic/tags';
|
12
|
-
import { Observable, Subject
|
11
|
+
import { Observable, Subject } from 'rxjs';
|
13
12
|
import * as i0 from "@angular/core";
|
14
13
|
/** Change event object that is emitted when the select value has changed. */
|
15
14
|
export declare class McSelectChange {
|
@@ -17,35 +16,6 @@ export declare class McSelectChange {
|
|
17
16
|
value: any;
|
18
17
|
constructor(source: McSelect, value: any);
|
19
18
|
}
|
20
|
-
export declare class McSelectFooter {
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectFooter, never>;
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectFooter, "mc-select-footer, [mc-select-footer]", never, {}, {}, never, never, false, never>;
|
23
|
-
}
|
24
|
-
export declare class McSelectSearch implements AfterContentInit, OnDestroy {
|
25
|
-
input: McInput;
|
26
|
-
searchChangesSubscription: Subscription;
|
27
|
-
isSearchChanged: boolean;
|
28
|
-
constructor(formField: McFormField);
|
29
|
-
focus(): void;
|
30
|
-
reset(): void;
|
31
|
-
ngAfterContentInit(): void;
|
32
|
-
ngOnDestroy(): void;
|
33
|
-
handleKeydown(event: KeyboardEvent): void;
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectSearch, never>;
|
35
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectSearch, "[mcSelectSearch]", ["mcSelectSearch"], {}, {}, ["input"], never, false, never>;
|
36
|
-
}
|
37
|
-
export declare class McSelectSearchEmptyResult {
|
38
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectSearchEmptyResult, never>;
|
39
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectSearchEmptyResult, "[mc-select-search-empty-result]", ["mcSelectSearchEmptyResult"], {}, {}, never, never, false, never>;
|
40
|
-
}
|
41
|
-
export declare class McSelectTrigger {
|
42
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectTrigger, never>;
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectTrigger, "mc-select-trigger, [mc-select-trigger]", never, {}, {}, never, never, false, never>;
|
44
|
-
}
|
45
|
-
export declare class McSelectMatcher {
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectMatcher, never>;
|
47
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<McSelectMatcher, "mc-select-matcher, [mc-select-matcher]", never, {}, {}, never, never, false, never>;
|
48
|
-
}
|
49
19
|
/** @docs-private */
|
50
20
|
export declare class McSelectBase {
|
51
21
|
elementRef: ElementRef;
|
@@ -10,6 +10,6 @@ import * as i8 from "@ptsecurity/mosaic/tooltip";
|
|
10
10
|
import * as i9 from "@ptsecurity/mosaic/form-field";
|
11
11
|
export declare class McSelectModule {
|
12
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<McSelectModule, never>;
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<McSelectModule, [typeof i1.McSelect, typeof
|
13
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<McSelectModule, [typeof i1.McSelect, typeof i2.McOptionTooltip], [typeof i3.CommonModule, typeof i4.OverlayModule, typeof i5.McOptionModule, typeof i6.McIconModule, typeof i7.McTagsModule, typeof i8.McToolTipModule, typeof i5.McSelectSearch, typeof i5.McSelectSearchEmptyResult, typeof i5.McSelectTrigger, typeof i5.McSelectMatcher, typeof i5.McSelectFooter], [typeof i9.McFormFieldModule, typeof i1.McSelect, typeof i5.McSelectSearch, typeof i5.McSelectSearchEmptyResult, typeof i5.McSelectTrigger, typeof i5.McSelectMatcher, typeof i5.McSelectFooter, typeof i2.McOptionTooltip, typeof i5.McOptionModule, typeof i3.CommonModule]>;
|
14
14
|
static ɵinj: i0.ɵɵInjectorDeclaration<McSelectModule>;
|
15
15
|
}
|
package/select/select.scss
CHANGED
@@ -166,7 +166,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
166
166
|
display: flex;
|
167
167
|
align-items: center;
|
168
168
|
box-sizing: border-box;
|
169
|
-
padding:
|
169
|
+
padding: mc-css-variable(size-xxs) mc-css-variable(size-m);
|
170
170
|
border-top-width: 1px;
|
171
171
|
border-top-style: solid;
|
172
172
|
min-height: mc-css-variable(list-size-footer-min-height);
|
@@ -8,8 +8,8 @@
|
|
8
8
|
@mixin mc-sidepanel-theme($theme) {
|
9
9
|
$background: map.get($theme, background);
|
10
10
|
|
11
|
-
$sidepanel: map.get(
|
12
|
-
$popup: map.get(
|
11
|
+
$sidepanel: map.get($theme, components, sidepanel);
|
12
|
+
$popup: map.get($theme, components, popup);
|
13
13
|
|
14
14
|
.mc-sidepanel-content {
|
15
15
|
background-color: mc-css-variable(background-background, map-get($background, background));
|
@@ -53,14 +53,14 @@
|
|
53
53
|
|
54
54
|
@mixin mc-sidepanel-typography($config) {
|
55
55
|
.mc-sidepanel-title {
|
56
|
-
@include mc-typography-css-variables(sidepanel-header, default);
|
56
|
+
@include mc-typography-css-variables($config, sidepanel-header, default);
|
57
57
|
}
|
58
58
|
|
59
59
|
.mc-sidepanel-container {
|
60
|
-
@include mc-typography-css-variables(sidepanel, default);
|
60
|
+
@include mc-typography-css-variables($config, sidepanel, default);
|
61
61
|
}
|
62
62
|
|
63
63
|
.mc-sidepanel-footer {
|
64
|
-
@include mc-typography-css-variables(sidepanel-footer, default);
|
64
|
+
@include mc-typography-css-variables($config, sidepanel-footer, default);
|
65
65
|
}
|
66
66
|
}
|
package/table/_table-theme.scss
CHANGED
@@ -49,7 +49,7 @@
|
|
49
49
|
font-weight: normal;
|
50
50
|
}
|
51
51
|
|
52
|
-
@include mc-typography-css-variables(table, header);
|
52
|
+
@include mc-typography-css-variables($config, table, header);
|
53
53
|
}
|
54
54
|
|
55
55
|
& > tbody {
|
@@ -57,7 +57,7 @@
|
|
57
57
|
font-weight: normal;
|
58
58
|
}
|
59
59
|
|
60
|
-
@include mc-typography-css-variables(table, body);
|
60
|
+
@include mc-typography-css-variables($config, table, body);
|
61
61
|
}
|
62
62
|
}
|
63
63
|
}
|
package/tabs/_tabs-theme.scss
CHANGED
@@ -11,8 +11,8 @@
|
|
11
11
|
$background: map.get($theme, background);
|
12
12
|
$states: map.get($theme, states);
|
13
13
|
|
14
|
-
$tabs: map.get(
|
15
|
-
$vertical-tabs: map.get(
|
14
|
+
$tabs: map.get($theme, components, tabs);
|
15
|
+
$vertical-tabs: map.get($theme, components, vertical-tabs);
|
16
16
|
|
17
17
|
.mc-tab-group_vertical .mc-tab-header__content {
|
18
18
|
border-right-color: mc-css-variable(foreground-divider, map-get($foreground, divider));
|
@@ -245,6 +245,6 @@
|
|
245
245
|
.mc-tab-label,
|
246
246
|
.mc-tab-label_old,
|
247
247
|
.mc-tab-link {
|
248
|
-
@include mc-typography-css-variables(tabs, default);
|
248
|
+
@include mc-typography-css-variables($config, tabs, default);
|
249
249
|
}
|
250
250
|
}
|
package/tabs/tab-header.scss
CHANGED
@@ -27,24 +27,28 @@ $tokens: meta.module-variables(tokens) !default;
|
|
27
27
|
.mc-tab-group_align-labels-end & {
|
28
28
|
justify-content: flex-end;
|
29
29
|
}
|
30
|
-
|
31
|
-
&:after {
|
32
|
-
display: flex;
|
33
|
-
content: "";
|
34
|
-
|
35
|
-
flex: 1;
|
36
|
-
|
37
|
-
border: {
|
38
|
-
bottom-style: solid;
|
39
|
-
bottom-width: mc-css-variable(tabs-size-border-width);
|
40
|
-
};
|
41
|
-
}
|
42
30
|
}
|
43
31
|
|
44
32
|
.mc-tab-header_vertical .mc-tab-list__content {
|
45
33
|
flex-direction: column;
|
46
34
|
}
|
47
35
|
|
36
|
+
.mc-tab-header .mc-tab-list__content {
|
37
|
+
.mc-tab-group:not(.mc-tab-group_stretch-labels) & {
|
38
|
+
&:after {
|
39
|
+
display: flex;
|
40
|
+
content: "";
|
41
|
+
|
42
|
+
flex: 1;
|
43
|
+
|
44
|
+
border: {
|
45
|
+
bottom-style: solid;
|
46
|
+
bottom-width: mc-css-variable(tabs-size-border-width);
|
47
|
+
};
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
48
52
|
.mc-tab-header__pagination {
|
49
53
|
@include vendor-prefixes.user-select(none);
|
50
54
|
|
@@ -48,20 +48,22 @@ $tokens: meta.module-variables(tokens) !default;
|
|
48
48
|
justify-content: flex-end;
|
49
49
|
}
|
50
50
|
|
51
|
-
|
52
|
-
|
53
|
-
|
51
|
+
&.mc-tab-group_vertical {
|
52
|
+
flex-direction: column;
|
53
|
+
flex-grow: 0;
|
54
|
+
}
|
54
55
|
|
55
|
-
|
56
|
+
&:not(.mc-tab-group_vertical) {
|
57
|
+
&:after {
|
58
|
+
display: flex;
|
59
|
+
content: "";
|
56
60
|
|
57
|
-
|
58
|
-
bottom-style: solid;
|
59
|
-
bottom-width: mc-css-variable(tabs-size-border-width);
|
60
|
-
};
|
61
|
-
}
|
62
|
-
}
|
61
|
+
flex: 1;
|
63
62
|
|
64
|
-
|
65
|
-
|
66
|
-
|
63
|
+
border: {
|
64
|
+
bottom-style: solid;
|
65
|
+
bottom-width: mc-css-variable(tabs-size-border-width);
|
66
|
+
};
|
67
|
+
}
|
68
|
+
}
|
67
69
|
}
|
package/tags/_tag-theme.scss
CHANGED
@@ -19,7 +19,7 @@
|
|
19
19
|
&.mc-active,
|
20
20
|
&.mc-focused {
|
21
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));
|
22
|
+
box-shadow: 0 0 0.1px 1px mc-css-variable(tags-#{$style-name}-focused, map-get($style, focused));
|
23
23
|
}
|
24
24
|
|
25
25
|
&:not(.mc-disabled) .mc-icon {
|
@@ -49,7 +49,7 @@
|
|
49
49
|
$foreground: map.get($theme, foreground);
|
50
50
|
$background: map.get($theme, background);
|
51
51
|
|
52
|
-
$tags: map.get(
|
52
|
+
$tags: map.get($theme, components, tags);
|
53
53
|
|
54
54
|
.mc-tag {
|
55
55
|
&.mc-primary {
|
@@ -80,7 +80,7 @@
|
|
80
80
|
background-background-disabled, map-get($background, background-disabled));
|
81
81
|
|
82
82
|
& .mc-tag-overlay {
|
83
|
-
background: mc-color($background, overlay-disabled);
|
83
|
+
background: mc-css-variable(background-overlay-disabled, mc-color($background, overlay-disabled));
|
84
84
|
}
|
85
85
|
}
|
86
86
|
}
|
@@ -104,19 +104,19 @@
|
|
104
104
|
|
105
105
|
@mixin mc-tag-typography($config) {
|
106
106
|
.mc-tag:not(.mc-tag_mono):not(.mc-tag_caps) {
|
107
|
-
@include mc-typography-css-variables(tags, default);
|
107
|
+
@include mc-typography-css-variables($config, tags, default);
|
108
108
|
}
|
109
109
|
|
110
110
|
.mc-tag_mono {
|
111
|
-
@include mc-typography-css-variables(tags, mono);
|
111
|
+
@include mc-typography-css-variables($config, tags, mono);
|
112
112
|
}
|
113
113
|
|
114
114
|
.mc-tag_caps {
|
115
|
-
@include mc-typography-css-variables(tags, caps);
|
115
|
+
@include mc-typography-css-variables($config, tags, caps);
|
116
116
|
}
|
117
117
|
|
118
118
|
.mc-tag-input {
|
119
|
-
@include mc-typography-css-variables(tag-input, default);
|
119
|
+
@include mc-typography-css-variables($config, tag-input, default);
|
120
120
|
}
|
121
121
|
}
|
122
122
|
|
@@ -7,6 +7,7 @@ export interface McTagsDefaultOptions {
|
|
7
7
|
separators?: {
|
8
8
|
[key: number]: McTagSeparator;
|
9
9
|
};
|
10
|
+
addOnPaste?: boolean;
|
10
11
|
}
|
11
12
|
/** Injection token to be used to override the default options for the chips module. */
|
12
13
|
export declare const MC_TAGS_DEFAULT_OPTIONS: InjectionToken<McTagsDefaultOptions>;
|
package/tags/tag-input.d.ts
CHANGED
@@ -56,6 +56,12 @@ export declare class McTagInput implements McTagTextControl, OnChanges {
|
|
56
56
|
get addOnBlur(): boolean;
|
57
57
|
set addOnBlur(value: boolean);
|
58
58
|
private _addOnBlur;
|
59
|
+
/**
|
60
|
+
* Whether the tagEnd event will be emitted when the text pasted.
|
61
|
+
*/
|
62
|
+
get addOnPaste(): boolean;
|
63
|
+
set addOnPaste(value: boolean);
|
64
|
+
private _addOnPaste;
|
59
65
|
/** Whether the input is disabled. */
|
60
66
|
get disabled(): boolean;
|
61
67
|
set disabled(value: boolean);
|
@@ -88,5 +94,5 @@ export declare class McTagInput implements McTagTextControl, OnChanges {
|
|
88
94
|
/** Checks whether a keycode is one of the configured separators. */
|
89
95
|
private isSeparatorKey;
|
90
96
|
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>;
|
97
|
+
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; }; "addOnPaste": { "alias": "mcTagInputAddOnPaste"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "tagEnd": "mcTagInputTokenEnd"; }, never, never, false, never>;
|
92
98
|
}
|
@@ -28,10 +28,10 @@
|
|
28
28
|
|
29
29
|
@mixin mc-textarea-typography($config) {
|
30
30
|
textarea.mc-textarea {
|
31
|
-
@include mc-typography-css-variables(textarea, default);
|
31
|
+
@include mc-typography-css-variables($config, textarea, default);
|
32
32
|
}
|
33
33
|
|
34
34
|
.mc-textarea.mc-textarea_monospace {
|
35
|
-
@include mc-typography-css-variables(textarea, mono);
|
35
|
+
@include mc-typography-css-variables($config, textarea, mono);
|
36
36
|
}
|
37
37
|
}
|
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
|
8
8
|
@mixin mc-timezone-option-theme($theme) {
|
9
|
-
$timezone: map.get(
|
9
|
+
$timezone: map.get($theme, components, timezone);
|
10
10
|
|
11
11
|
.mc-timezone-option__offset,
|
12
12
|
.mc-timezone-option__city {
|
@@ -20,14 +20,14 @@
|
|
20
20
|
|
21
21
|
@mixin mc-timezone-option-typography($config) {
|
22
22
|
.mc-timezone-option__offset {
|
23
|
-
@include mc-typography-css-variables(timezone-option, offset-text);
|
23
|
+
@include mc-typography-css-variables($config, timezone-option, offset-text);
|
24
24
|
}
|
25
25
|
|
26
26
|
.mc-timezone-option__city {
|
27
|
-
@include mc-typography-css-variables(timezone-option, text);
|
27
|
+
@include mc-typography-css-variables($config, timezone-option, text);
|
28
28
|
}
|
29
29
|
|
30
30
|
.mc-timezone-option__cities {
|
31
|
-
@include mc-typography-css-variables(timezone-option, caption);
|
31
|
+
@include mc-typography-css-variables($config, timezone-option, caption);
|
32
32
|
}
|
33
33
|
}
|
@@ -1,5 +1,6 @@
|
|
1
|
+
import { McSelectSearch } from '@ptsecurity/mosaic/core';
|
1
2
|
import { McCleaner } from '@ptsecurity/mosaic/form-field';
|
2
|
-
import { McSelect
|
3
|
+
import { McSelect } from '@ptsecurity/mosaic/select';
|
3
4
|
import * as i0 from "@angular/core";
|
4
5
|
export declare class McTimezoneSelectTrigger {
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<McTimezoneSelectTrigger, never>;
|
package/toast/_toast-theme.scss
CHANGED
@@ -45,14 +45,14 @@
|
|
45
45
|
|
46
46
|
@mixin mc-toast-typography($config) {
|
47
47
|
.mc-toast {
|
48
|
-
@include mc-typography-level-to-
|
48
|
+
@include mc-typography-level-to-styles_css-variables($config, typography, body);
|
49
49
|
}
|
50
50
|
|
51
51
|
.mc-toast__title {
|
52
|
-
@include mc-typography-css-variables(toast, title);
|
52
|
+
@include mc-typography-css-variables($config, toast, title);
|
53
53
|
}
|
54
54
|
|
55
55
|
.mc-toast__caption {
|
56
|
-
@include mc-typography-css-variables(toast, caption);
|
56
|
+
@include mc-typography-css-variables($config, toast, caption);
|
57
57
|
}
|
58
58
|
}
|
package/toast/toast.service.d.ts
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
import { AnimationEvent } from '@angular/animations';
|
2
2
|
import { Overlay } from '@angular/cdk/overlay';
|
3
|
-
import { Injector, ComponentRef, TemplateRef, EmbeddedViewRef, InjectionToken } from '@angular/core';
|
3
|
+
import { Injector, ComponentRef, TemplateRef, EmbeddedViewRef, InjectionToken, NgZone, OnDestroy } from '@angular/core';
|
4
4
|
import { BehaviorSubject } from 'rxjs';
|
5
5
|
import { McToastComponent } from './toast.component';
|
6
6
|
import { McToastData, McToastConfig } from './toast.type';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
export declare const MC_TOAST_FACTORY: InjectionToken<unknown>;
|
9
9
|
export declare const defaultToastConfig: McToastConfig;
|
10
|
-
export declare class McToastService<T extends McToastComponent = McToastComponent> {
|
10
|
+
export declare class McToastService<T extends McToastComponent = McToastComponent> implements OnDestroy {
|
11
11
|
private overlay;
|
12
12
|
private injector;
|
13
|
+
private ngZone;
|
13
14
|
private toastFactory;
|
14
15
|
private toastConfig;
|
15
16
|
get toasts(): ComponentRef<T>[];
|
@@ -17,12 +18,15 @@ export declare class McToastService<T extends McToastComponent = McToastComponen
|
|
17
18
|
readonly hovered: BehaviorSubject<boolean>;
|
18
19
|
readonly focused: BehaviorSubject<boolean>;
|
19
20
|
readonly animation: BehaviorSubject<AnimationEvent | null>;
|
21
|
+
timer: import("rxjs").Observable<number>;
|
20
22
|
private containerInstance;
|
21
23
|
private overlayRef;
|
22
24
|
private portal;
|
25
|
+
private timerSubscription;
|
23
26
|
private toastsDict;
|
24
27
|
private templatesDict;
|
25
|
-
constructor(overlay: Overlay, injector: Injector, toastFactory: any, toastConfig: McToastConfig);
|
28
|
+
constructor(overlay: Overlay, injector: Injector, ngZone: NgZone, toastFactory: any, toastConfig: McToastConfig);
|
29
|
+
ngOnDestroy(): void;
|
26
30
|
show(data: McToastData, duration?: number, onTop?: boolean): {
|
27
31
|
ref: ComponentRef<T>;
|
28
32
|
id: number;
|
@@ -48,6 +52,6 @@ export declare class McToastService<T extends McToastComponent = McToastComponen
|
|
48
52
|
private getBottomRight;
|
49
53
|
private getCenter;
|
50
54
|
private getGlobalOverlayPosition;
|
51
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<McToastService<any>, [null, null, null, { optional: true; }]>;
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<McToastService<any>, [null, null, null, null, { optional: true; }]>;
|
52
56
|
static ɵprov: i0.ɵɵInjectableDeclaration<McToastService<any>>;
|
53
57
|
}
|
@@ -10,7 +10,7 @@
|
|
10
10
|
$foreground: map.get($theme, foreground);
|
11
11
|
$background: map.get($theme, background);
|
12
12
|
|
13
|
-
$toggle: map.get(
|
13
|
+
$toggle: map.get($theme, components, toggle);
|
14
14
|
|
15
15
|
.mc-toggle {
|
16
16
|
color: mc-css-variable(foreground-text, map-get($foreground, text));
|
@@ -75,7 +75,7 @@
|
|
75
75
|
|
76
76
|
@mixin mc-toggle-typography($config) {
|
77
77
|
.mc-toggle:not(.mc-toggle_small) {
|
78
|
-
@include mc-typography-css-variables(toggle, default);
|
78
|
+
@include mc-typography-css-variables($config, toggle, default);
|
79
79
|
|
80
80
|
.mc-toggle-bar-outer-container {
|
81
81
|
height: mc-css-variable(toggle-font-default-line-height);
|
@@ -83,7 +83,7 @@
|
|
83
83
|
}
|
84
84
|
|
85
85
|
.mc-toggle.mc-toggle_small {
|
86
|
-
@include mc-typography-css-variables(toggle-small, default);
|
86
|
+
@include mc-typography-css-variables($config, toggle-small, default);
|
87
87
|
|
88
88
|
.mc-toggle-bar-outer-container {
|
89
89
|
height: mc-css-variable(toggle-small-font-default-line-height);
|
@@ -10,7 +10,7 @@
|
|
10
10
|
$foreground: map.get($theme, foreground);
|
11
11
|
$background: map.get($theme, background);
|
12
12
|
|
13
|
-
$tooltip: map.get(
|
13
|
+
$tooltip: map.get($theme, components, tooltip);
|
14
14
|
|
15
15
|
.mc-tooltip {
|
16
16
|
box-shadow: mc-css-variable(tooltip-shadow, map-get($tooltip, shadow));
|
@@ -81,16 +81,16 @@
|
|
81
81
|
|
82
82
|
@mixin mc-tooltip-typography($config) {
|
83
83
|
.mc-tooltip {
|
84
|
-
@include mc-typography-css-variables(tooltip, default);
|
84
|
+
@include mc-typography-css-variables($config, tooltip, default);
|
85
85
|
}
|
86
86
|
|
87
87
|
.mc-tooltip_extended {
|
88
88
|
& .mc-tooltip__content {
|
89
|
-
@include mc-typography-css-variables(extended-tooltip, default);
|
89
|
+
@include mc-typography-css-variables($config, extended-tooltip, default);
|
90
90
|
}
|
91
91
|
|
92
92
|
& .mc-tooltip__header {
|
93
|
-
@include mc-typography-css-variables(extended-tooltip-header, default);
|
93
|
+
@include mc-typography-css-variables($config, extended-tooltip-header, default);
|
94
94
|
}
|
95
95
|
}
|
96
96
|
}
|
package/tree/_tree-theme.scss
CHANGED
@@ -3,9 +3,8 @@ import { SelectionModel } from '@angular/cdk/collections';
|
|
3
3
|
import { CdkConnectedOverlay, ConnectedPosition, ViewportRuler } from '@angular/cdk/overlay';
|
4
4
|
import { AfterContentInit, AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, NgZone, OnChanges, OnDestroy, OnInit, QueryList, Renderer2, SimpleChanges } from '@angular/core';
|
5
5
|
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
6
|
-
import { CanDisable, CanUpdateErrorState, ErrorStateMatcher, HasTabIndex, CanDisableCtor, HasTabIndexCtor, CanUpdateErrorStateCtor } from '@ptsecurity/mosaic/core';
|
6
|
+
import { CanDisable, CanUpdateErrorState, ErrorStateMatcher, HasTabIndex, CanDisableCtor, HasTabIndexCtor, CanUpdateErrorStateCtor, McSelectSearch } from '@ptsecurity/mosaic/core';
|
7
7
|
import { McCleaner, McFormField, McFormFieldControl } from '@ptsecurity/mosaic/form-field';
|
8
|
-
import { McSelectSearch } from '@ptsecurity/mosaic/select';
|
9
8
|
import { McTag } from '@ptsecurity/mosaic/tags';
|
10
9
|
import { McTreeSelection, McTreeOption } from '@ptsecurity/mosaic/tree';
|
11
10
|
import { Observable, Subject } from 'rxjs';
|
@@ -158,7 +158,7 @@ $tokens: meta.module-variables(tokens) !default;
|
|
158
158
|
display: flex;
|
159
159
|
align-items: center;
|
160
160
|
box-sizing: border-box;
|
161
|
-
padding:
|
161
|
+
padding: mc-css-variable(size-xxs) mc-css-variable(size-m);
|
162
162
|
border-top-width: 1px;
|
163
163
|
border-top-style: solid;
|
164
164
|
min-height: mc-css-variable(list-size-footer-min-height);
|