@ng-matero/extensions 16.3.1 → 17.0.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/_index.scss +2 -1
- package/alert/_alert-theme.scss +54 -24
- package/alert/alert.d.ts +3 -6
- package/alert/alert.scss +3 -3
- package/button/_button-theme.scss +6 -4
- package/button/button-loading.d.ts +5 -10
- package/button/button-module.d.ts +5 -5
- package/checkbox-group/checkbox-group.d.ts +4 -9
- package/colorpicker/_colorpicker-theme.scss +62 -34
- package/colorpicker/colorpicker-input.d.ts +1 -3
- package/colorpicker/colorpicker-toggle.d.ts +2 -3
- package/colorpicker/colorpicker.d.ts +5 -6
- package/core/color/_all-color.scss +7 -18
- package/core/density/_all-density.scss +28 -14
- package/core/mdc-helpers/_mdc-helpers.scss +27 -238
- package/core/style/_sass-utils.scss +13 -1
- package/core/style/_validation.scss +43 -0
- package/core/theming/_all-theme.scss +32 -17
- package/core/theming/_inspection.scss +303 -0
- package/core/theming/_m2-inspection.scss +266 -0
- package/core/tokens/_token-utils.scss +4 -5
- package/core/tokens/m2/mdc/_plain-tooltip.scss +21 -29
- package/core/tokens/m2/mtx/_alert.scss +14 -15
- package/core/tokens/m2/mtx/_colorpicker.scss +8 -11
- package/core/tokens/m2/mtx/_datetimepicker.scss +38 -47
- package/core/tokens/m2/mtx/_drawer.scss +9 -10
- package/core/tokens/m2/mtx/_grid.scss +34 -22
- package/core/tokens/m2/mtx/_loader.scss +6 -6
- package/core/tokens/m2/mtx/_popover.scss +10 -11
- package/core/tokens/m2/mtx/_progress.scss +18 -17
- package/core/tokens/m2/mtx/_select.scss +65 -25
- package/core/tokens/m2/mtx/_split.scss +8 -11
- package/core/typography/_all-typography.scss +40 -0
- package/core/typography/_typography.scss +1 -579
- package/datetimepicker/_datetimepicker-theme.scss +75 -48
- package/datetimepicker/calendar.d.ts +7 -14
- package/datetimepicker/calendar.scss +16 -4
- package/datetimepicker/clock.d.ts +1 -2
- package/datetimepicker/datetimepicker-content.scss +3 -3
- package/datetimepicker/datetimepicker-input.d.ts +1 -2
- package/datetimepicker/datetimepicker-toggle.d.ts +2 -3
- package/datetimepicker/datetimepicker.d.ts +15 -26
- package/datetimepicker/month-view.d.ts +1 -1
- package/datetimepicker/multi-year-view.d.ts +1 -1
- package/datetimepicker/time.d.ts +3 -5
- package/datetimepicker/time.scss +2 -2
- package/datetimepicker/year-view.d.ts +1 -1
- package/drawer/_drawer-theme.scss +55 -22
- package/drawer/drawer-container.scss +25 -4
- package/esm2022/alert/alert-module.mjs +4 -4
- package/esm2022/alert/alert.mjs +11 -18
- package/esm2022/button/button-loading.mjs +13 -23
- package/esm2022/button/button-module.mjs +6 -7
- package/esm2022/checkbox-group/checkbox-group-module.mjs +4 -4
- package/esm2022/checkbox-group/checkbox-group.mjs +18 -29
- package/esm2022/colorpicker/colorpicker-input.mjs +13 -14
- package/esm2022/colorpicker/colorpicker-module.mjs +4 -4
- package/esm2022/colorpicker/colorpicker-toggle.mjs +18 -18
- package/esm2022/colorpicker/colorpicker.mjs +31 -36
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2022/column-resize/column-resize-module.mjs +4 -4
- package/esm2022/column-resize/column-resize-notifier.mjs +7 -7
- package/esm2022/column-resize/column-resize.mjs +3 -3
- package/esm2022/column-resize/column-size-store.mjs +3 -3
- package/esm2022/column-resize/event-dispatcher.mjs +4 -4
- package/esm2022/column-resize/overlay-handle.mjs +3 -3
- package/esm2022/column-resize/resizable.mjs +3 -3
- package/esm2022/column-resize/resize-strategy.mjs +13 -13
- package/esm2022/core/datetime/datetime.module.mjs +8 -8
- package/esm2022/core/datetime/native-datetime-adapter.mjs +5 -5
- package/esm2022/core/pipes/is-template-ref.pipe.mjs +3 -3
- package/esm2022/core/pipes/pipes.module.mjs +4 -4
- package/esm2022/core/pipes/to-observable.pipe.mjs +3 -3
- package/esm2022/datetimepicker/calendar-body.mjs +5 -6
- package/esm2022/datetimepicker/calendar.mjs +30 -47
- package/esm2022/datetimepicker/clock.mjs +10 -9
- package/esm2022/datetimepicker/datetimepicker-input.mjs +14 -15
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-module.mjs +4 -4
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +18 -18
- package/esm2022/datetimepicker/datetimepicker.mjs +57 -80
- package/esm2022/datetimepicker/month-view.mjs +8 -9
- package/esm2022/datetimepicker/multi-year-view.mjs +8 -8
- package/esm2022/datetimepicker/time.mjs +18 -24
- package/esm2022/datetimepicker/year-view.mjs +8 -8
- package/esm2022/dialog/dialog-container.mjs +7 -7
- package/esm2022/dialog/dialog-module.mjs +4 -4
- package/esm2022/dialog/dialog.mjs +4 -4
- package/esm2022/drawer/drawer-container.mjs +7 -7
- package/esm2022/drawer/drawer-module.mjs +4 -4
- package/esm2022/drawer/drawer.mjs +5 -5
- package/esm2022/grid/cell.mjs +6 -6
- package/esm2022/grid/column-menu.mjs +5 -5
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2022/grid/column-resize/column-resize-module.mjs +8 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +6 -6
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +6 -6
- package/esm2022/grid/column-resize/resize-strategy.mjs +5 -5
- package/esm2022/grid/expansion-toggle.mjs +5 -5
- package/esm2022/grid/grid-module.mjs +4 -4
- package/esm2022/grid/grid-pipes.mjs +22 -22
- package/esm2022/grid/grid-utils.mjs +4 -4
- package/esm2022/grid/grid.mjs +76 -44
- package/esm2022/loader/loader-module.mjs +4 -4
- package/esm2022/loader/loader.mjs +17 -29
- package/esm2022/photoviewer/photoviewer-module.mjs +4 -4
- package/esm2022/photoviewer/photoviewer.mjs +7 -7
- package/esm2022/popover/popover-content.mjs +8 -8
- package/esm2022/popover/popover-module.mjs +4 -4
- package/esm2022/popover/popover-target.mjs +4 -4
- package/esm2022/popover/popover-trigger.mjs +6 -6
- package/esm2022/popover/popover.mjs +52 -137
- package/esm2022/progress/progress-module.mjs +4 -4
- package/esm2022/progress/progress.mjs +14 -25
- package/esm2022/select/option.mjs +11 -17
- package/esm2022/select/select-module.mjs +4 -4
- package/esm2022/select/select.mjs +13 -13
- package/esm2022/select/templates.mjs +44 -44
- package/esm2022/split/split-module.mjs +4 -4
- package/esm2022/split/split-pane.mjs +5 -5
- package/esm2022/split/split.mjs +7 -7
- package/esm2022/tooltip/tooltip-module.mjs +4 -4
- package/esm2022/tooltip/tooltip.mjs +22 -22
- package/fesm2022/mtxAlert.mjs +14 -21
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +17 -28
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +21 -32
- package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2022/mtxColorpicker.mjs +61 -64
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +48 -48
- package/fesm2022/mtxCore.mjs +23 -23
- package/fesm2022/mtxDatetimepicker.mjs +150 -190
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +14 -14
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +17 -17
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +150 -118
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +20 -32
- package/fesm2022/mtxLoader.mjs.map +1 -1
- package/fesm2022/mtxPhotoviewer.mjs +10 -10
- package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
- package/fesm2022/mtxPopover.mjs +73 -158
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +17 -28
- package/fesm2022/mtxProgress.mjs.map +1 -1
- package/fesm2022/mtxSelect.mjs +68 -73
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +14 -14
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +26 -26
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +60 -24
- package/grid/column-menu.scss +32 -3
- package/grid/grid.d.ts +33 -1
- package/grid/grid.scss +36 -108
- package/loader/_loader-theme.scss +55 -22
- package/loader/loader.d.ts +4 -9
- package/loader/loader.scss +1 -1
- package/package.json +13 -19
- package/photoviewer/photoviewer.d.ts +1 -0
- package/popover/_popover-theme.scss +55 -22
- package/popover/popover.d.ts +23 -54
- package/popover/popover.scss +2 -2
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress/_progress-theme.scss +60 -22
- package/progress/progress.d.ts +4 -9
- package/progress/progress.scss +3 -3
- package/select/_select-theme.scss +66 -34
- package/select/option.d.ts +2 -5
- package/select/select.d.ts +1 -3
- package/select/select.scss +104 -127
- package/split/_split-theme.scss +62 -32
- package/split/split.scss +2 -4
- package/tooltip/_tooltip-theme.scss +66 -34
- package/_theming.scss +0 -16
- package/alert/_alert-theme.import.scss +0 -2
- package/button/_button-theme.import.scss +0 -2
- package/colorpicker/_colorpicker-theme.import.scss +0 -2
- package/core/style/_elevation.scss +0 -91
- package/core/style/_private.scss +0 -32
- package/core/style/_variables.scss +0 -44
- package/core/style/_vendor-prefixes.scss +0 -46
- package/core/theming/_palette.scss +0 -746
- package/core/theming/_theming.scss +0 -463
- package/core/typography/_typography-utils.scss +0 -101
- package/datetimepicker/_datetimepicker-theme.import.scss +0 -4
- package/drawer/_drawer-theme.import.scss +0 -2
- package/grid/_grid-theme.import.scss +0 -2
- package/loader/_loader-theme.import.scss +0 -2
- package/popover/_popover-theme.import.scss +0 -2
- package/progress/_progress-theme.import.scss +0 -2
- package/select/_select-density.scss +0 -68
- package/select/_select-theme.import.scss +0 -3
- package/split/_split-theme.import.scss +0 -2
- package/tooltip/_tooltip-theme.import.scss +0 -1
package/select/select.scss
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
2
|
@use '../core/tokens/token-utils';
|
|
3
3
|
@use '../core/tokens/m2/mtx/select' as tokens-mtx-select;
|
|
4
4
|
|
|
@@ -11,175 +11,150 @@ $_tokens: tokens-mtx-select.$prefix, tokens-mtx-select.get-token-slots();
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
.ng-select {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
15
|
+
$filled-padding-top: token-utils.get-token-variable(filled-padding-top);
|
|
16
|
+
$filled-padding-bottom: token-utils.get-token-variable(filled-padding-bottom);
|
|
17
|
+
$vertical-padding: token-utils.get-token-variable(vertical-padding);
|
|
18
|
+
|
|
19
|
+
// TODO: use `mat-form-field` token
|
|
20
|
+
padding: var($filled-padding-top) 16px var($filled-padding-bottom);
|
|
21
|
+
margin: calc(var($filled-padding-top) * -1) -16px calc(var($filled-padding-bottom) * -1);
|
|
22
|
+
|
|
23
|
+
.mdc-text-field--outlined &,
|
|
24
|
+
.mdc-text-field--no-label & {
|
|
25
|
+
padding-top: var($vertical-padding);
|
|
26
|
+
padding-bottom: var($vertical-padding);
|
|
27
|
+
margin-top: calc(var($vertical-padding) * -1);
|
|
28
|
+
margin-bottom: calc(var($vertical-padding) * -1);
|
|
29
|
+
}
|
|
18
30
|
|
|
19
|
-
|
|
20
|
-
|
|
31
|
+
.ng-select-container {
|
|
32
|
+
align-items: center;
|
|
21
33
|
|
|
22
|
-
@include token-utils.use-tokens($_tokens...) {
|
|
23
34
|
@include token-utils.create-token-slot(color, container-text-color);
|
|
24
|
-
}
|
|
25
35
|
|
|
26
|
-
|
|
27
|
-
|
|
36
|
+
.ng-value-container {
|
|
37
|
+
align-items: center;
|
|
28
38
|
|
|
29
|
-
|
|
30
|
-
>input {
|
|
39
|
+
.ng-input>input {
|
|
31
40
|
padding: 0;
|
|
32
41
|
color: inherit;
|
|
33
42
|
font: inherit;
|
|
34
43
|
}
|
|
35
44
|
}
|
|
36
|
-
}
|
|
37
45
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
46
|
+
.ng-clear-wrapper {
|
|
47
|
+
width: 24px;
|
|
48
|
+
text-align: center;
|
|
49
|
+
}
|
|
41
50
|
}
|
|
42
|
-
}
|
|
43
51
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
52
|
+
.ng-placeholder {
|
|
53
|
+
transition: opacity 200ms;
|
|
54
|
+
opacity: 1;
|
|
47
55
|
|
|
48
|
-
@include token-utils.use-tokens($_tokens...) {
|
|
49
56
|
@include token-utils.create-token-slot(color, placeholder-text-color);
|
|
50
|
-
}
|
|
51
57
|
|
|
52
|
-
|
|
53
|
-
|
|
58
|
+
.mat-form-field-hide-placeholder & {
|
|
59
|
+
opacity: 0;
|
|
60
|
+
}
|
|
54
61
|
}
|
|
55
|
-
}
|
|
56
62
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
.ng-has-value .ng-placeholder {
|
|
64
|
+
display: none;
|
|
65
|
+
}
|
|
60
66
|
|
|
61
|
-
|
|
62
|
-
@include token-utils.use-tokens($_tokens...) {
|
|
67
|
+
.ng-clear-wrapper {
|
|
63
68
|
@include token-utils.create-token-slot(color, clear-icon-color);
|
|
64
69
|
|
|
65
70
|
&:hover .ng-clear {
|
|
66
71
|
@include token-utils.create-token-slot(color, clear-icon-hover-color);
|
|
67
72
|
}
|
|
68
73
|
}
|
|
69
|
-
}
|
|
70
74
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
@include token-utils.use-tokens($_tokens...) {
|
|
75
|
+
&.ng-select-disabled {
|
|
76
|
+
.ng-value {
|
|
74
77
|
@include token-utils.create-token-slot(color, disabled-text-color);
|
|
75
78
|
}
|
|
76
79
|
}
|
|
77
|
-
}
|
|
78
80
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
.ng-arrow {
|
|
81
|
+
&.ng-select-opened {
|
|
82
|
+
.ng-arrow-wrapper .ng-arrow {
|
|
82
83
|
top: -2px;
|
|
83
84
|
border-width: 0 5px 5px;
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
}
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
&.ng-select-filtered {
|
|
91
|
-
.ng-placeholder {
|
|
88
|
+
&.ng-select-single {
|
|
89
|
+
&.ng-select-filtered .ng-placeholder {
|
|
92
90
|
display: initial;
|
|
93
91
|
visibility: hidden;
|
|
94
92
|
}
|
|
95
93
|
}
|
|
96
94
|
|
|
97
|
-
|
|
98
|
-
.ng-value-container {
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
display: inline-block;
|
|
104
|
-
content: '';
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
&.ng-select-multiple {
|
|
112
|
-
.ng-select-container {
|
|
113
|
-
.ng-value-container {
|
|
114
|
-
.ng-value {
|
|
115
|
-
margin: 2px 4px 2px 0;
|
|
116
|
-
border-radius: 16px;
|
|
117
|
-
font-size: .875em;
|
|
118
|
-
line-height: 18px;
|
|
95
|
+
&.ng-select-multiple {
|
|
96
|
+
.ng-select-container .ng-value-container .ng-value {
|
|
97
|
+
margin: 2px 4px 2px 0;
|
|
98
|
+
border-radius: 16px;
|
|
99
|
+
font-size: .875em;
|
|
100
|
+
line-height: 18px;
|
|
119
101
|
|
|
120
|
-
|
|
121
|
-
@include token-utils.create-token-slot(background-color, multiple-value-background-color);
|
|
102
|
+
@include token-utils.create-token-slot(background-color, multiple-value-background-color);
|
|
122
103
|
|
|
123
|
-
|
|
104
|
+
$border-color: token-utils.get-token-variable(multiple-value-border-color);
|
|
124
105
|
|
|
125
|
-
|
|
126
|
-
}
|
|
106
|
+
border: 1px solid var($border-color);
|
|
127
107
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
108
|
+
@include rtl {
|
|
109
|
+
margin-right: auto;
|
|
110
|
+
margin-left: 4px;
|
|
111
|
+
}
|
|
132
112
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
113
|
+
&.ng-value-disabled {
|
|
114
|
+
opacity: .4;
|
|
115
|
+
}
|
|
136
116
|
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
117
|
+
.ng-value-label {
|
|
118
|
+
display: inline-block;
|
|
119
|
+
margin: 0 8px;
|
|
120
|
+
}
|
|
141
121
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
122
|
+
.ng-value-icon {
|
|
123
|
+
display: inline-block;
|
|
124
|
+
width: 18px;
|
|
125
|
+
height: 18px;
|
|
126
|
+
border-radius: 100%;
|
|
127
|
+
text-align: center;
|
|
148
128
|
|
|
149
|
-
|
|
150
|
-
|
|
129
|
+
&.left {
|
|
130
|
+
margin-right: -4px;
|
|
151
131
|
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
}
|
|
132
|
+
@include rtl {
|
|
133
|
+
margin-left: -4px;
|
|
134
|
+
margin-right: auto;
|
|
156
135
|
}
|
|
136
|
+
}
|
|
157
137
|
|
|
158
|
-
|
|
159
|
-
|
|
138
|
+
&.right {
|
|
139
|
+
margin-left: -4px;
|
|
160
140
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
}
|
|
141
|
+
@include rtl {
|
|
142
|
+
margin-right: -4px;
|
|
143
|
+
margin-left: auto;
|
|
165
144
|
}
|
|
145
|
+
}
|
|
166
146
|
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
@include token-utils.create-token-slot(background-color, multiple-value-icon-hover-background-color);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
147
|
+
&:hover {
|
|
148
|
+
@include token-utils.create-token-slot(background-color, multiple-value-icon-hover-background-color);
|
|
172
149
|
}
|
|
173
150
|
}
|
|
174
151
|
}
|
|
175
152
|
}
|
|
176
|
-
}
|
|
177
153
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
154
|
+
.ng-arrow-wrapper {
|
|
155
|
+
width: 10px;
|
|
156
|
+
}
|
|
181
157
|
|
|
182
|
-
@include token-utils.use-tokens($_tokens...) {
|
|
183
158
|
$enabled-arrow-color: token-utils.get-token-variable(enabled-arrow-color);
|
|
184
159
|
$disabled-arrow-color: token-utils.get-token-variable(disabled-arrow-color);
|
|
185
160
|
$invalid-arrow-color: token-utils.get-token-variable(invalid-arrow-color);
|
|
@@ -209,28 +184,30 @@ $_tokens: tokens-mtx-select.$prefix, tokens-mtx-select.get-token-slots();
|
|
|
209
184
|
}
|
|
210
185
|
|
|
211
186
|
.ng-dropdown-panel {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
border-bottom-right-radius: 4px;
|
|
187
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
188
|
+
&.ng-select-bottom {
|
|
189
|
+
top: 100%;
|
|
216
190
|
|
|
217
|
-
|
|
218
|
-
|
|
191
|
+
@include token-utils.create-token-slot(border-bottom-left-radius, container-shape);
|
|
192
|
+
@include token-utils.create-token-slot(border-bottom-right-radius, container-shape);
|
|
219
193
|
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
border-top-left-radius: 4px;
|
|
223
|
-
border-top-right-radius: 4px;
|
|
194
|
+
@include mat.elevation(8);
|
|
195
|
+
}
|
|
224
196
|
|
|
225
|
-
|
|
226
|
-
|
|
197
|
+
&.ng-select-top {
|
|
198
|
+
bottom: 100%;
|
|
227
199
|
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
200
|
+
@include token-utils.create-token-slot(border-top-left-radius, container-shape);
|
|
201
|
+
@include token-utils.create-token-slot(border-top-right-radius, container-shape);
|
|
202
|
+
|
|
203
|
+
@include mat.elevation(8);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.ng-dropdown-header,
|
|
207
|
+
.ng-dropdown-footer {
|
|
208
|
+
padding: 14px 16px;
|
|
209
|
+
}
|
|
232
210
|
|
|
233
|
-
@include token-utils.use-tokens($_tokens...) {
|
|
234
211
|
@include token-utils.create-token-slot(background-color, panel-background-color);
|
|
235
212
|
|
|
236
213
|
$border-color: token-utils.get-token-variable(panel-divider-color);
|
package/split/_split-theme.scss
CHANGED
|
@@ -1,51 +1,81 @@
|
|
|
1
|
-
@use '
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
2
|
@use '../core/style/sass-utils';
|
|
3
3
|
@use '../core/tokens/token-utils';
|
|
4
4
|
@use '../core/tokens/m2/mtx/split' as tokens-mtx-split;
|
|
5
5
|
|
|
6
|
-
@mixin
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
@include sass-utils.current-selector-or-root() {
|
|
10
|
-
@include token-utils.create-token-values(tokens-mtx-split.$prefix,
|
|
11
|
-
tokens-mtx-split.get-color-tokens($config));
|
|
6
|
+
@mixin base($theme) {
|
|
7
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
8
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, base));
|
|
12
9
|
}
|
|
10
|
+
@else {
|
|
11
|
+
@include sass-utils.current-selector-or-root() {
|
|
12
|
+
@include token-utils.create-token-values(tokens-mtx-split.$prefix,
|
|
13
|
+
tokens-mtx-split.get-unthemable-tokens());
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
13
17
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
+
@mixin color($theme) {
|
|
19
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
20
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, color));
|
|
21
|
+
}
|
|
22
|
+
@else {
|
|
23
|
+
@include sass-utils.current-selector-or-root() {
|
|
24
|
+
@include token-utils.create-token-values(tokens-mtx-split.$prefix,
|
|
25
|
+
tokens-mtx-split.get-color-tokens($theme));
|
|
18
26
|
}
|
|
19
27
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
28
|
+
.mtx-split>.mtx-split-gutter {
|
|
29
|
+
&.mat-accent:hover {
|
|
30
|
+
$accent-tokens: tokens-mtx-split.private-get-color-palette-color-tokens($theme, accent);
|
|
31
|
+
@include token-utils.create-token-values(tokens-mtx-split.$prefix, $accent-tokens);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
&.mat-warn:hover {
|
|
35
|
+
$warn-tokens: tokens-mtx-split.private-get-color-palette-color-tokens($theme, warn);
|
|
36
|
+
@include token-utils.create-token-values(tokens-mtx-split.$prefix, $warn-tokens);
|
|
37
|
+
}
|
|
23
38
|
}
|
|
24
39
|
}
|
|
25
40
|
}
|
|
26
41
|
|
|
27
|
-
@mixin typography($
|
|
28
|
-
|
|
29
|
-
@
|
|
30
|
-
|
|
31
|
-
@
|
|
32
|
-
|
|
42
|
+
@mixin typography($theme) {
|
|
43
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
44
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, typography));
|
|
45
|
+
}
|
|
46
|
+
@else {}
|
|
47
|
+
}
|
|
33
48
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
49
|
+
@mixin density($theme) {
|
|
50
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
51
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, density));
|
|
52
|
+
}
|
|
53
|
+
@else {}
|
|
54
|
+
}
|
|
38
55
|
|
|
39
|
-
|
|
40
|
-
|
|
56
|
+
@mixin theme($theme) {
|
|
57
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mtx-split') {
|
|
58
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
59
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme));
|
|
41
60
|
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
@
|
|
61
|
+
@else {
|
|
62
|
+
@include base($theme);
|
|
63
|
+
@if mat.theme-has($theme, color) {
|
|
64
|
+
@include color($theme);
|
|
65
|
+
}
|
|
66
|
+
@if mat.theme-has($theme, density) {
|
|
67
|
+
@include density($theme);
|
|
68
|
+
}
|
|
69
|
+
@if mat.theme-has($theme, typography) {
|
|
70
|
+
@include typography($theme);
|
|
71
|
+
}
|
|
45
72
|
}
|
|
73
|
+
}
|
|
74
|
+
}
|
|
46
75
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
76
|
+
@mixin _theme-from-tokens($tokens) {
|
|
77
|
+
@if ($tokens != ()) {
|
|
78
|
+
@include token-utils.create-token-values(tokens-mtx-split.$prefix,
|
|
79
|
+
map.get($tokens, tokens-mtx-split.$prefix));
|
|
50
80
|
}
|
|
51
81
|
}
|
package/split/split.scss
CHANGED
|
@@ -41,15 +41,13 @@ $_tokens: tokens-mtx-split.$prefix, tokens-mtx-split.get-token-slots();
|
|
|
41
41
|
> .mtx-split-pane {
|
|
42
42
|
flex-grow: 0;
|
|
43
43
|
flex-shrink: 0;
|
|
44
|
-
overflow
|
|
45
|
-
overflow-y: auto;
|
|
44
|
+
overflow: hidden auto;
|
|
46
45
|
|
|
47
46
|
/* When <mtx-split-pane [visible]="false"> force size to 0. */
|
|
48
47
|
|
|
49
48
|
&.mtx-split-pane-hidden {
|
|
50
49
|
flex: 0 1 0 !important;
|
|
51
|
-
overflow
|
|
52
|
-
overflow-y: hidden;
|
|
50
|
+
overflow: hidden hidden;
|
|
53
51
|
}
|
|
54
52
|
}
|
|
55
53
|
|
|
@@ -1,53 +1,85 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use '@material/tooltip/plain-tooltip-theme' as mdc-plain-tooltip-theme;
|
|
2
|
-
@use '
|
|
3
|
-
@use '../core/
|
|
4
|
-
@use '../core/tokens/m2/mdc/plain-tooltip' as
|
|
3
|
+
@use '@angular/material' as mat;
|
|
4
|
+
@use '../core/style/sass-utils';
|
|
5
|
+
@use '../core/tokens/m2/mdc/plain-tooltip' as tokens-mdc-plain-tooltip;
|
|
5
6
|
|
|
6
|
-
@mixin
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
@include
|
|
7
|
+
@mixin base($theme) {
|
|
8
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
9
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, base));
|
|
10
|
+
}
|
|
11
|
+
@else {
|
|
12
|
+
// Add default values for tokens not related to color, typography, or density.
|
|
13
|
+
@include sass-utils.current-selector-or-root() {
|
|
14
|
+
@include mdc-plain-tooltip-theme.theme(tokens-mdc-plain-tooltip.get-unthemable-tokens());
|
|
15
|
+
}
|
|
13
16
|
}
|
|
14
17
|
}
|
|
15
18
|
|
|
16
|
-
@mixin
|
|
17
|
-
|
|
18
|
-
|
|
19
|
+
@mixin color($theme) {
|
|
20
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
21
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, color));
|
|
22
|
+
}
|
|
23
|
+
@else {
|
|
24
|
+
$mdc-tooltip-color-tokens: tokens-mdc-plain-tooltip.get-color-tokens($theme);
|
|
19
25
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
26
|
+
// Add values for MDC tooltip tokens.
|
|
27
|
+
@include sass-utils.current-selector-or-root() {
|
|
28
|
+
@include mdc-plain-tooltip-theme.theme($mdc-tooltip-color-tokens);
|
|
29
|
+
}
|
|
23
30
|
}
|
|
24
31
|
}
|
|
25
32
|
|
|
26
|
-
@mixin
|
|
27
|
-
|
|
28
|
-
|
|
33
|
+
@mixin typography($theme) {
|
|
34
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
35
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, typography));
|
|
36
|
+
}
|
|
37
|
+
@else {
|
|
38
|
+
$mdc-tooltip-typography-tokens: tokens-mdc-plain-tooltip.get-typography-tokens($theme);
|
|
29
39
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
40
|
+
// Add values for MDC tooltip tokens.
|
|
41
|
+
@include sass-utils.current-selector-or-root() {
|
|
42
|
+
@include mdc-plain-tooltip-theme.theme($mdc-tooltip-typography-tokens);
|
|
43
|
+
}
|
|
33
44
|
}
|
|
34
45
|
}
|
|
35
46
|
|
|
36
|
-
@mixin
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
$
|
|
47
|
+
@mixin density($theme) {
|
|
48
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
49
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, density));
|
|
50
|
+
}
|
|
51
|
+
@else {
|
|
52
|
+
$mdc-tooltip-density-tokens: tokens-mdc-plain-tooltip.get-density-tokens($theme);
|
|
42
53
|
|
|
43
|
-
|
|
44
|
-
|
|
54
|
+
// Add values for MDC tooltip tokens.
|
|
55
|
+
@include sass-utils.current-selector-or-root() {
|
|
56
|
+
@include mdc-plain-tooltip-theme.theme($mdc-tooltip-density-tokens);
|
|
45
57
|
}
|
|
46
|
-
|
|
47
|
-
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin theme($theme) {
|
|
62
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mtx-tooltip') {
|
|
63
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
64
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme));
|
|
48
65
|
}
|
|
49
|
-
@
|
|
50
|
-
@include
|
|
66
|
+
@else {
|
|
67
|
+
@include base($theme);
|
|
68
|
+
@if mat.theme-has($theme, color) {
|
|
69
|
+
@include color($theme);
|
|
70
|
+
}
|
|
71
|
+
@if mat.theme-has($theme, density) {
|
|
72
|
+
@include density($theme);
|
|
73
|
+
}
|
|
74
|
+
@if mat.theme-has($theme, typography) {
|
|
75
|
+
@include typography($theme);
|
|
76
|
+
}
|
|
51
77
|
}
|
|
52
78
|
}
|
|
53
79
|
}
|
|
80
|
+
|
|
81
|
+
@mixin _theme-from-tokens($tokens) {
|
|
82
|
+
@if $tokens != () {
|
|
83
|
+
@include mdc-plain-tooltip-theme.theme(map.get($tokens, tokens-mdc-plain-tooltip.$prefix));
|
|
84
|
+
}
|
|
85
|
+
}
|
package/_theming.scss
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
@forward './alert/alert-theme.import';
|
|
2
|
-
@forward './button/button-theme.import';
|
|
3
|
-
@forward './colorpicker/colorpicker-theme.import';
|
|
4
|
-
@forward './datetimepicker/datetimepicker-theme.import';
|
|
5
|
-
@forward './drawer/drawer-theme.import';
|
|
6
|
-
@forward './grid/grid-theme.import';
|
|
7
|
-
@forward './loader/loader-theme.import';
|
|
8
|
-
@forward './popover/popover-theme.import';
|
|
9
|
-
@forward './progress/progress-theme.import';
|
|
10
|
-
@forward './select/select-theme.import';
|
|
11
|
-
@forward './split/split-theme.import';
|
|
12
|
-
@forward './tooltip/tooltip-theme.import';
|
|
13
|
-
|
|
14
|
-
@forward './core/theming/all-theme' show material-extensions-theme;
|
|
15
|
-
@forward './core/color/all-color' show material-extensions-color;
|
|
16
|
-
@forward './core/density/all-density' show material-extensions-density;
|