@ng-matero/extensions 16.1.3 → 16.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/_index.scss +0 -3
- package/_theming.scss +0 -3
- package/alert/_alert-theme.scss +12 -28
- package/alert/alert.scss +28 -0
- package/colorpicker/_colorpicker-theme.scss +20 -8
- package/colorpicker/colorpicker-toggle.scss +23 -17
- package/core/style/_sass-utils.scss +49 -0
- package/core/theming/_all-theme.scss +0 -2
- package/core/tokens/_token-utils.scss +127 -0
- package/core/tokens/m2/_index.scss +49 -0
- package/core/tokens/m2/mdc/_plain-tooltip.scss +72 -0
- package/core/tokens/m2/mtx/_alert.scss +55 -0
- package/core/tokens/m2/mtx/_colorpicker.scss +55 -0
- package/core/tokens/m2/mtx/_datetimepicker.scss +155 -0
- package/core/tokens/m2/mtx/_drawer.scss +45 -0
- package/core/tokens/m2/mtx/_grid.scss +53 -0
- package/core/tokens/m2/mtx/_loader.scss +45 -0
- package/core/tokens/m2/mtx/_popover.scss +46 -0
- package/core/tokens/m2/mtx/_progress.scss +56 -0
- package/core/tokens/m2/mtx/_select.scss +83 -0
- package/core/tokens/m2/mtx/_split.scss +54 -0
- package/core/typography/_typography.scss +203 -36
- package/datetimepicker/_datetimepicker-theme.scss +31 -183
- package/datetimepicker/calendar-body.scss +81 -1
- package/datetimepicker/calendar.scss +33 -3
- package/datetimepicker/clock.scss +50 -10
- package/datetimepicker/datetimepicker-content.scss +12 -0
- package/datetimepicker/datetimepicker-toggle.scss +23 -17
- package/datetimepicker/time.scss +41 -1
- package/drawer/_drawer-theme.scss +6 -10
- package/drawer/drawer-container.scss +11 -0
- package/esm2022/alert/alert.mjs +4 -4
- package/esm2022/colorpicker/colorpicker-toggle.mjs +2 -2
- package/esm2022/datetimepicker/calendar-body.mjs +2 -2
- package/esm2022/datetimepicker/calendar.mjs +3 -3
- package/esm2022/datetimepicker/clock.mjs +2 -2
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +2 -2
- package/esm2022/datetimepicker/datetimepicker.mjs +3 -3
- package/esm2022/datetimepicker/time.mjs +3 -3
- package/esm2022/drawer/drawer-container.mjs +3 -3
- package/esm2022/grid/cell.mjs +6 -21
- package/esm2022/grid/grid-module.mjs +18 -9
- package/esm2022/grid/grid-utils.mjs +4 -2
- package/esm2022/grid/grid.mjs +20 -20
- package/esm2022/grid/image-preview.mjs +50 -0
- package/esm2022/grid/public-api.mjs +2 -1
- package/esm2022/loader/loader.mjs +2 -2
- package/esm2022/popover/popover.mjs +3 -3
- package/esm2022/progress/progress.mjs +4 -4
- package/esm2022/select/select.mjs +11 -3
- package/esm2022/split/split.mjs +2 -2
- package/esm2022/tooltip/tooltip.mjs +2 -2
- package/fesm2022/mtxAlert.mjs +3 -3
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxColorpicker.mjs +2 -2
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxDatetimepicker.mjs +12 -12
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +2 -2
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +223 -182
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +2 -2
- package/fesm2022/mtxLoader.mjs.map +1 -1
- package/fesm2022/mtxPopover.mjs +2 -2
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +3 -3
- package/fesm2022/mtxProgress.mjs.map +1 -1
- package/fesm2022/mtxSelect.mjs +10 -2
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +2 -2
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +2 -2
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +14 -84
- package/grid/cell.d.ts +0 -2
- package/grid/grid-module.d.ts +22 -21
- package/grid/grid.d.ts +7 -7
- package/grid/grid.scss +103 -15
- package/grid/image-preview.d.ts +13 -0
- package/grid/public-api.d.ts +1 -0
- package/loader/_loader-theme.scss +6 -6
- package/loader/loader.scss +7 -0
- package/package.json +14 -20
- package/popover/_popover-theme.scss +6 -40
- package/popover/popover.scss +32 -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 +6 -25
- package/progress/progress.scss +42 -0
- package/select/_select-theme.scss +19 -133
- package/select/select.d.ts +1 -0
- package/select/select.scss +147 -36
- package/split/_split-theme.scss +21 -18
- package/split/split.scss +13 -0
- package/tooltip/_tooltip-theme.scss +19 -24
- package/tooltip/tooltip.scss +18 -17
- package/esm2022/slider/mtxSlider.mjs +0 -5
- package/esm2022/slider/public-api.mjs +0 -3
- package/esm2022/slider/slider-module.mjs +0 -19
- package/esm2022/slider/slider.mjs +0 -1115
- package/fesm2022/mtxSlider.mjs +0 -1137
- package/fesm2022/mtxSlider.mjs.map +0 -1
- package/slider/_slider-theme.import.scss +0 -2
- package/slider/_slider-theme.scss +0 -232
- package/slider/index.d.ts +0 -5
- package/slider/public-api.d.ts +0 -2
- package/slider/slider-module.d.ts +0 -9
- package/slider/slider.d.ts +0 -277
- package/slider/slider.scss +0 -514
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use '../core/tokens/token-utils';
|
|
2
|
+
@use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
|
|
3
|
+
|
|
1
4
|
$calendar-padding: 8px !default;
|
|
2
5
|
|
|
3
6
|
// We use the same padding as the month / year label, but subtract 16px since there is padding
|
|
@@ -14,6 +17,8 @@ $calendar-next-icon-transform: translateX(-2px) rotate(45deg);
|
|
|
14
17
|
|
|
15
18
|
$landscape-calendar-header-width: 144px;
|
|
16
19
|
|
|
20
|
+
$_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token-slots();
|
|
21
|
+
|
|
17
22
|
@mixin landscape-calendar-header {
|
|
18
23
|
.mtx-calendar {
|
|
19
24
|
display: flex;
|
|
@@ -29,8 +34,8 @@ $landscape-calendar-header-width: 144px;
|
|
|
29
34
|
}
|
|
30
35
|
}
|
|
31
36
|
|
|
32
|
-
.mtx-calendar-header-year
|
|
33
|
-
.mtx-calendar-header-date
|
|
37
|
+
.mtx-calendar-header-year+.mtx-calendar-header-date-time,
|
|
38
|
+
.mtx-calendar-header-date+.mtx-calendar-header-time {
|
|
34
39
|
margin-top: 4px;
|
|
35
40
|
}
|
|
36
41
|
|
|
@@ -58,7 +63,7 @@ $landscape-calendar-header-width: 144px;
|
|
|
58
63
|
.mtx-calendar-header-ampm {
|
|
59
64
|
padding: 4px;
|
|
60
65
|
|
|
61
|
-
|
|
66
|
+
+.mtx-calendar-header-ampm {
|
|
62
67
|
margin: 0 8px;
|
|
63
68
|
}
|
|
64
69
|
}
|
|
@@ -68,6 +73,11 @@ $landscape-calendar-header-width: 144px;
|
|
|
68
73
|
.mtx-calendar {
|
|
69
74
|
display: block;
|
|
70
75
|
outline: none;
|
|
76
|
+
|
|
77
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
78
|
+
@include token-utils.create-token-slot(font-family, calendar-text-font);
|
|
79
|
+
@include token-utils.create-token-slot(font-size, calendar-text-size);
|
|
80
|
+
}
|
|
71
81
|
}
|
|
72
82
|
|
|
73
83
|
.mtx-calendar-header {
|
|
@@ -75,6 +85,11 @@ $landscape-calendar-header-width: 144px;
|
|
|
75
85
|
padding: 8px;
|
|
76
86
|
border-radius: 4px 4px 0 0;
|
|
77
87
|
|
|
88
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
89
|
+
@include token-utils.create-token-slot(background-color, calendar-header-background-color);
|
|
90
|
+
@include token-utils.create-token-slot(color, calendar-header-text-color);
|
|
91
|
+
}
|
|
92
|
+
|
|
78
93
|
.mtx-calendar-header-year,
|
|
79
94
|
.mtx-calendar-header-date,
|
|
80
95
|
.mtx-calendar-header-hours,
|
|
@@ -185,12 +200,21 @@ $landscape-calendar-header-width: 144px;
|
|
|
185
200
|
border: 0;
|
|
186
201
|
background: transparent;
|
|
187
202
|
box-sizing: border-box;
|
|
203
|
+
|
|
204
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
205
|
+
@include token-utils.create-token-slot(font-size, calendar-period-button-text-size);
|
|
206
|
+
@include token-utils.create-token-slot(font-weight, calendar-period-button-text-weight);
|
|
207
|
+
}
|
|
188
208
|
}
|
|
189
209
|
|
|
190
210
|
.mtx-calendar-previous-button,
|
|
191
211
|
.mtx-calendar-next-button {
|
|
192
212
|
&.disabled {
|
|
193
213
|
pointer-events: none;
|
|
214
|
+
|
|
215
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
216
|
+
@include token-utils.create-token-slot(color, calendar-date-disabled-state-text-color);
|
|
217
|
+
}
|
|
194
218
|
}
|
|
195
219
|
|
|
196
220
|
svg {
|
|
@@ -212,4 +236,10 @@ $landscape-calendar-header-width: 144px;
|
|
|
212
236
|
.mtx-calendar-table-header th {
|
|
213
237
|
text-align: center;
|
|
214
238
|
padding: $calendar-padding 0;
|
|
239
|
+
|
|
240
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
241
|
+
@include token-utils.create-token-slot(color, calendar-table-header-text-color);
|
|
242
|
+
@include token-utils.create-token-slot(font-size, calendar-table-header-text-size);
|
|
243
|
+
@include token-utils.create-token-slot(font-weight, calendar-table-header-text-weight);
|
|
244
|
+
}
|
|
215
245
|
}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
|
+
@use '../core/tokens/token-utils';
|
|
2
|
+
@use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
|
|
3
|
+
|
|
1
4
|
$clock-min-size: 224px !default;
|
|
2
5
|
$clock-margin: 12px !default;
|
|
3
6
|
$clock-cell-size: 14.1666% !default;
|
|
4
7
|
|
|
8
|
+
$_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token-slots();
|
|
9
|
+
|
|
5
10
|
.mtx-clock {
|
|
6
11
|
position: relative;
|
|
7
12
|
display: block;
|
|
@@ -10,6 +15,10 @@ $clock-cell-size: 14.1666% !default;
|
|
|
10
15
|
box-sizing: border-box;
|
|
11
16
|
user-select: none;
|
|
12
17
|
touch-action: none;
|
|
18
|
+
|
|
19
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
20
|
+
@include token-utils.create-token-slot(font-size, clock-text-size);
|
|
21
|
+
}
|
|
13
22
|
}
|
|
14
23
|
|
|
15
24
|
.mtx-clock-wrapper {
|
|
@@ -18,6 +27,10 @@ $clock-cell-size: 14.1666% !default;
|
|
|
18
27
|
height: 0;
|
|
19
28
|
padding-top: 100%;
|
|
20
29
|
border-radius: 50%;
|
|
30
|
+
|
|
31
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
32
|
+
@include token-utils.create-token-slot(background-color, clock-dial-background-color);
|
|
33
|
+
}
|
|
21
34
|
}
|
|
22
35
|
|
|
23
36
|
.mtx-clock-center {
|
|
@@ -28,6 +41,10 @@ $clock-cell-size: 14.1666% !default;
|
|
|
28
41
|
height: 2%;
|
|
29
42
|
margin: -1%;
|
|
30
43
|
border-radius: 50%;
|
|
44
|
+
|
|
45
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
46
|
+
@include token-utils.create-token-slot(background-color, clock-hand-background-color);
|
|
47
|
+
}
|
|
31
48
|
}
|
|
32
49
|
|
|
33
50
|
.mtx-clock-hand {
|
|
@@ -37,15 +54,22 @@ $clock-cell-size: 14.1666% !default;
|
|
|
37
54
|
margin: 0 auto;
|
|
38
55
|
transform-origin: bottom;
|
|
39
56
|
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
57
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
58
|
+
@include token-utils.create-token-slot(background-color, clock-hand-background-color);
|
|
59
|
+
|
|
60
|
+
&::before {
|
|
61
|
+
content: '';
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: -4px;
|
|
64
|
+
left: -4px;
|
|
65
|
+
width: 8px;
|
|
66
|
+
height: 8px;
|
|
67
|
+
border-radius: 50%;
|
|
68
|
+
|
|
69
|
+
@include token-utils.create-token-slot(background-color, clock-hand-background-color);
|
|
70
|
+
}
|
|
48
71
|
}
|
|
72
|
+
|
|
49
73
|
}
|
|
50
74
|
|
|
51
75
|
.mtx-clock-hours,
|
|
@@ -82,7 +106,23 @@ $clock-cell-size: 14.1666% !default;
|
|
|
82
106
|
align-items: center;
|
|
83
107
|
cursor: pointer;
|
|
84
108
|
|
|
85
|
-
|
|
86
|
-
|
|
109
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
110
|
+
@include token-utils.create-token-slot(color, clock-cell-text-color);
|
|
111
|
+
|
|
112
|
+
&.mtx-clock-cell-selected {
|
|
113
|
+
color: white;
|
|
114
|
+
|
|
115
|
+
@include token-utils.create-token-slot(background-color, clock-hand-background-color);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&:not(.mtx-clock-cell-selected, .mtx-clock-cell-disabled):hover {
|
|
119
|
+
@include token-utils.create-token-slot(background-color, clock-cell-hover-state-background-color);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&.mtx-clock-cell-disabled {
|
|
123
|
+
pointer-events: none;
|
|
124
|
+
|
|
125
|
+
@include token-utils.create-token-slot(color, clock-cell-disabled-state-text-color);
|
|
126
|
+
}
|
|
87
127
|
}
|
|
88
128
|
}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
@use '../core/style/elevation';
|
|
2
|
+
@use '../core/tokens/token-utils';
|
|
3
|
+
@use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
|
|
4
|
+
|
|
1
5
|
$calendar-padding: 8px;
|
|
2
6
|
$non-touch-calendar-cell-size: 40px;
|
|
3
7
|
$non-touch-calendar-portrait-width: $non-touch-calendar-cell-size * 7 + $calendar-padding * 2;
|
|
@@ -40,6 +44,14 @@ $touch-max-height: 850px;
|
|
|
40
44
|
.mtx-datetimepicker-content {
|
|
41
45
|
display: block;
|
|
42
46
|
border-radius: 4px;
|
|
47
|
+
|
|
48
|
+
@include elevation.elevation(4);
|
|
49
|
+
|
|
50
|
+
@include token-utils.use-tokens(tokens-mtx-datetimepicker.$prefix,
|
|
51
|
+
tokens-mtx-datetimepicker.get-token-slots()) {
|
|
52
|
+
@include token-utils.create-token-slot(background-color, calendar-container-background-color);
|
|
53
|
+
@include token-utils.create-token-slot(color, calendar-container-text-color);
|
|
54
|
+
}
|
|
43
55
|
}
|
|
44
56
|
|
|
45
57
|
.mtx-datetimepicker-content-container {
|
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
@use '@angular/cdk';
|
|
2
|
+
@use '../core/tokens/token-utils';
|
|
3
|
+
@use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
|
|
4
|
+
|
|
5
|
+
$_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token-slots();
|
|
6
|
+
|
|
7
|
+
// We support the case where the form field is disabled, but the datepicker is not.
|
|
8
|
+
// MDC sets `pointer-events: none` on disabled form fields which prevents clicks on the toggle.
|
|
9
|
+
.mtx-datetimepicker-toggle {
|
|
10
|
+
pointer-events: auto;
|
|
11
|
+
|
|
12
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
13
|
+
@include token-utils.create-token-slot(color, toggle-icon-color);
|
|
7
14
|
}
|
|
8
15
|
}
|
|
9
16
|
|
|
10
|
-
.
|
|
11
|
-
.
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
width: 1.5em;
|
|
16
|
-
height: 1.5em;
|
|
17
|
-
}
|
|
17
|
+
.mtx-datetimepicker-toggle-active {
|
|
18
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
19
|
+
@include token-utils.create-token-slot(color, toggle-active-state-icon-color);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
18
22
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
23
|
+
@include cdk.high-contrast(active, off) {
|
|
24
|
+
.mtx-datetimepicker-toggle-default-icon {
|
|
25
|
+
// On Chromium-based browsers the icon doesn't appear to inherit the text color in high
|
|
26
|
+
// contrast mode so we have to set it explicitly. This is a no-op on IE and Firefox.
|
|
27
|
+
color: CanvasText;
|
|
22
28
|
}
|
|
23
29
|
}
|
package/datetimepicker/time.scss
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
@use '../core/tokens/token-utils';
|
|
2
|
+
@use '../core/tokens/m2/mtx/datetimepicker' as tokens-mtx-datetimepicker;
|
|
3
|
+
|
|
1
4
|
$time-font-size: 36px;
|
|
2
5
|
$time-border-radius: 8px;
|
|
3
6
|
$time-input-width: 72px;
|
|
@@ -5,6 +8,8 @@ $time-input-height: 56px;
|
|
|
5
8
|
$time-seperator-width: 24px;
|
|
6
9
|
$time-ampm-width: 40px;
|
|
7
10
|
|
|
11
|
+
$_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token-slots();
|
|
12
|
+
|
|
8
13
|
.mtx-time {
|
|
9
14
|
display: block;
|
|
10
15
|
outline: none;
|
|
@@ -32,6 +37,29 @@ $time-ampm-width: 40px;
|
|
|
32
37
|
border: 2px solid transparent;
|
|
33
38
|
appearance: none;
|
|
34
39
|
outline: none;
|
|
40
|
+
|
|
41
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
42
|
+
@include token-utils.create-token-slot(background-color, time-input-background-color);
|
|
43
|
+
@include token-utils.create-token-slot(color, time-input-text-color);
|
|
44
|
+
|
|
45
|
+
&.mtx-time-input-active {
|
|
46
|
+
@include token-utils.create-token-slot(background-color, time-input-active-state-background-color);
|
|
47
|
+
@include token-utils.create-token-slot(color, time-input-active-state-text-color);
|
|
48
|
+
|
|
49
|
+
&:focus {
|
|
50
|
+
@include token-utils.create-token-slot(border-color, time-input-focus-state-border-color);
|
|
51
|
+
@include token-utils.create-token-slot(background-color, time-input-focus-state-background-color);
|
|
52
|
+
|
|
53
|
+
&::placeholder {
|
|
54
|
+
@include token-utils.create-token-slot(color, time-input-focus-state-placeholder-text-color);
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&.mtx-time-input-warning {
|
|
60
|
+
@include token-utils.create-token-slot(border-color, time-input-warn-state-border-color);
|
|
61
|
+
}
|
|
62
|
+
}
|
|
35
63
|
}
|
|
36
64
|
|
|
37
65
|
.mtx-time-seperator {
|
|
@@ -57,6 +85,18 @@ $time-ampm-width: 40px;
|
|
|
57
85
|
.mtx-time-pm {
|
|
58
86
|
--mdc-typography-button-font-weight: 400;
|
|
59
87
|
|
|
88
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
89
|
+
@include token-utils.create-token-slot(--mdc-text-button-label-text-color, time-ampm-text-color);
|
|
90
|
+
@include token-utils.create-token-slot(border-color, time-ampm-border-color);
|
|
91
|
+
|
|
92
|
+
&.mtx-time-ampm-active {
|
|
93
|
+
--mdc-typography-button-font-weight: 500;
|
|
94
|
+
|
|
95
|
+
@include token-utils.create-token-slot(--mdc-text-button-label-text-color, time-ampm-selected-state-text-color);
|
|
96
|
+
@include token-utils.create-token-slot(background-color, time-ampm-selected-state-background-color);
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
60
100
|
flex: 1;
|
|
61
101
|
width: $time-ampm-width;
|
|
62
102
|
min-width: auto;
|
|
@@ -83,7 +123,7 @@ $time-ampm-width: 40px;
|
|
|
83
123
|
justify-content: flex-end;
|
|
84
124
|
padding-top: 8px;
|
|
85
125
|
|
|
86
|
-
.mat-mdc-button-base
|
|
126
|
+
.mat-mdc-button-base+.mat-mdc-button-base {
|
|
87
127
|
margin-left: 8px;
|
|
88
128
|
|
|
89
129
|
[dir='rtl'] & {
|
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
@use 'sass:map';
|
|
2
1
|
@use '../core/theming/theming';
|
|
3
|
-
@use '../core/
|
|
4
|
-
@use '../core/
|
|
2
|
+
@use '../core/style/sass-utils';
|
|
3
|
+
@use '../core/tokens/token-utils';
|
|
4
|
+
@use '../core/tokens/m2/mtx/drawer' as tokens-mtx-drawer;
|
|
5
5
|
|
|
6
6
|
@mixin color($config-or-theme) {
|
|
7
7
|
$config: theming.get-color-config($config-or-theme);
|
|
8
|
-
$background: map.get($config, background);
|
|
9
|
-
$foreground: map.get($config, foreground);
|
|
10
8
|
|
|
11
|
-
.
|
|
12
|
-
@include
|
|
13
|
-
|
|
14
|
-
background: theming.get-color-from-palette($background, dialog);
|
|
15
|
-
color: theming.get-color-from-palette($foreground, text);
|
|
9
|
+
@include sass-utils.current-selector-or-root() {
|
|
10
|
+
@include token-utils.create-token-values(tokens-mtx-drawer.$prefix,
|
|
11
|
+
tokens-mtx-drawer.get-color-tokens($config));
|
|
16
12
|
}
|
|
17
13
|
}
|
|
18
14
|
|
|
@@ -1,9 +1,20 @@
|
|
|
1
1
|
@use '@angular/cdk' as cdk;
|
|
2
2
|
|
|
3
|
+
@use '../core/style/elevation';
|
|
4
|
+
@use '../core/tokens/token-utils';
|
|
5
|
+
@use '../core/tokens/m2/mtx/drawer' as tokens-mtx-drawer;
|
|
6
|
+
|
|
3
7
|
.mtx-drawer-container {
|
|
4
8
|
display: block;
|
|
5
9
|
outline: 0;
|
|
6
10
|
|
|
11
|
+
@include elevation.elevation(16);
|
|
12
|
+
|
|
13
|
+
@include token-utils.use-tokens(tokens-mtx-drawer.$prefix, tokens-mtx-drawer.get-token-slots()) {
|
|
14
|
+
@include token-utils.create-token-slot(background-color, container-background-color);
|
|
15
|
+
@include token-utils.create-token-slot(color, container-text-color);
|
|
16
|
+
}
|
|
17
|
+
|
|
7
18
|
@include cdk.high-contrast(active, off) {
|
|
8
19
|
outline: 1px solid;
|
|
9
20
|
}
|
package/esm2022/alert/alert.mjs
CHANGED
|
@@ -28,15 +28,15 @@ export class MtxAlert {
|
|
|
28
28
|
this.closed.emit(this);
|
|
29
29
|
}
|
|
30
30
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: MtxAlert, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
31
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.7", type: MtxAlert, selector: "mtx-alert", inputs: { type: "type", dismissible: "dismissible", elevation: "elevation" }, outputs: { closed: "closed" }, host: { attributes: { "role": "alert" }, properties: { "class.mtx-alert
|
|
31
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.7", type: MtxAlert, selector: "mtx-alert", inputs: { type: "type", dismissible: "dismissible", elevation: "elevation" }, outputs: { closed: "closed" }, host: { attributes: { "role": "alert" }, properties: { "class.mtx-alert-dismissible": "dismissible", "class": "this._hostClassList" }, classAttribute: "mtx-alert" }, exportAs: ["mtxAlert"], ngImport: i0, template: "<ng-content></ng-content>\n<ng-template [ngIf]=\"dismissible\">\n <button type=\"button\" class=\"mtx-alert-close\" aria-label=\"Close\" (click)=\"_onClosed()\">\n <span aria-hidden=\"true\">×</span>\n </button>\n</ng-template>\n", styles: [".mtx-alert{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem;background-color:var(--mtx-alert-background-color);color:var(--mtx-alert-text-color)}.mtx-alert.mtx-alert-info{background-color:var(--mtx-alert-info-background-color);color:var(--mtx-alert-info-text-color)}.mtx-alert.mtx-alert-success{background-color:var(--mtx-alert-success-background-color);color:var(--mtx-alert-success-text-color)}.mtx-alert.mtx-alert-warning{background-color:var(--mtx-alert-warning-background-color);color:var(--mtx-alert-warning-text-color)}.mtx-alert.mtx-alert-danger{background-color:var(--mtx-alert-danger-background-color);color:var(--mtx-alert-danger-text-color)}.mtx-alert-close{position:absolute;top:0;bottom:0;right:0;padding:0 1.25rem;font-size:1.5rem;line-height:1;color:inherit;opacity:.5;background-color:transparent;border:0;cursor:pointer}[dir=rtl] .mtx-alert-close{right:auto;left:0}.mtx-alert-close:hover{opacity:.75}.mtx-alert-dismissible{padding-right:4rem}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
32
32
|
}
|
|
33
33
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: MtxAlert, decorators: [{
|
|
34
34
|
type: Component,
|
|
35
35
|
args: [{ selector: 'mtx-alert', exportAs: 'mtxAlert', host: {
|
|
36
|
-
'
|
|
36
|
+
'class': 'mtx-alert',
|
|
37
37
|
'[class.mtx-alert-dismissible]': 'dismissible',
|
|
38
38
|
'role': 'alert',
|
|
39
|
-
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n<ng-template [ngIf]=\"dismissible\">\n <button type=\"button\" class=\"mtx-alert-close\" aria-label=\"Close\" (click)=\"_onClosed()\">\n <span aria-hidden=\"true\">×</span>\n </button>\n</ng-template>\n", styles: [".mtx-alert{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.mtx-alert-close{position:absolute;top:0;bottom:0;right:0;padding:0 1.25rem;font-size:1.5rem;line-height:1;color:inherit;opacity:.5;background-color:transparent;border:0;cursor:pointer}[dir=rtl] .mtx-alert-close{right:auto;left:0}.mtx-alert-close:hover{opacity:.75}.mtx-alert-dismissible{padding-right:4rem}\n"] }]
|
|
39
|
+
}, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n<ng-template [ngIf]=\"dismissible\">\n <button type=\"button\" class=\"mtx-alert-close\" aria-label=\"Close\" (click)=\"_onClosed()\">\n <span aria-hidden=\"true\">×</span>\n </button>\n</ng-template>\n", styles: [".mtx-alert{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem;background-color:var(--mtx-alert-background-color);color:var(--mtx-alert-text-color)}.mtx-alert.mtx-alert-info{background-color:var(--mtx-alert-info-background-color);color:var(--mtx-alert-info-text-color)}.mtx-alert.mtx-alert-success{background-color:var(--mtx-alert-success-background-color);color:var(--mtx-alert-success-text-color)}.mtx-alert.mtx-alert-warning{background-color:var(--mtx-alert-warning-background-color);color:var(--mtx-alert-warning-text-color)}.mtx-alert.mtx-alert-danger{background-color:var(--mtx-alert-danger-background-color);color:var(--mtx-alert-danger-text-color)}.mtx-alert-close{position:absolute;top:0;bottom:0;right:0;padding:0 1.25rem;font-size:1.5rem;line-height:1;color:inherit;opacity:.5;background-color:transparent;border:0;cursor:pointer}[dir=rtl] .mtx-alert-close{right:auto;left:0}.mtx-alert-close:hover{opacity:.75}.mtx-alert-dismissible{padding-right:4rem}\n"] }]
|
|
40
40
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { _hostClassList: [{
|
|
41
41
|
type: HostBinding,
|
|
42
42
|
args: ['class']
|
|
@@ -49,4 +49,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImpor
|
|
|
49
49
|
}], closed: [{
|
|
50
50
|
type: Output
|
|
51
51
|
}] } });
|
|
52
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
52
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxlcnQuanMiLCJzb3VyY2VS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Disabled, inputDisabled, pickerToggled).subscribe(() => this._changeDetectorRef.markForCheck());
|
|
62
62
|
}
|
|
63
63
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: MtxColorpickerToggle, deps: [{ token: i0.ChangeDetectorRef }, { token: 'tabindex', attribute: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
64
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.7", type: MtxColorpickerToggle, selector: "mtx-colorpicker-toggle", inputs: { picker: ["for", "picker"], tabIndex: "tabIndex", ariaLabel: ["aria-label", "ariaLabel"], disabled: "disabled", disableRipple: "disableRipple" }, host: { listeners: { "click": "_open($event)" }, properties: { "attr.tabindex": "null", "class.mtx-colorpicker-toggle-active": "picker && picker.opened", "class.mat-accent": "picker && picker.color === \"accent\"", "class.mat-warn": "picker && picker.color === \"warn\"" }, classAttribute: "mtx-colorpicker-toggle" }, queries: [{ propertyName: "_customIcon", first: true, predicate: MtxColorpickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "_button", first: true, predicate: ["button"], descendants: true }], exportAs: ["mtxColorpickerToggle"], usesOnChanges: true, ngImport: i0, template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\n\n <svg *ngIf=\"!_customIcon\"\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".
|
|
64
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.7", type: MtxColorpickerToggle, selector: "mtx-colorpicker-toggle", inputs: { picker: ["for", "picker"], tabIndex: "tabIndex", ariaLabel: ["aria-label", "ariaLabel"], disabled: "disabled", disableRipple: "disableRipple" }, host: { listeners: { "click": "_open($event)" }, properties: { "attr.tabindex": "null", "class.mtx-colorpicker-toggle-active": "picker && picker.opened", "class.mat-accent": "picker && picker.color === \"accent\"", "class.mat-warn": "picker && picker.color === \"warn\"" }, classAttribute: "mtx-colorpicker-toggle" }, queries: [{ propertyName: "_customIcon", first: true, predicate: MtxColorpickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "_button", first: true, predicate: ["button"], descendants: true }], exportAs: ["mtxColorpickerToggle"], usesOnChanges: true, ngImport: i0, template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\n\n <svg *ngIf=\"!_customIcon\"\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mtx-colorpicker-toggle{pointer-events:auto;color:var(--mtx-colorpicker-toggle-icon-color)}.mtx-colorpicker-toggle-active{color:var(--mtx-colorpicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mtx-colorpicker-toggle-default-icon{color:CanvasText}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
65
65
|
}
|
|
66
66
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: MtxColorpickerToggle, decorators: [{
|
|
67
67
|
type: Component,
|
|
@@ -75,7 +75,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImpor
|
|
|
75
75
|
// `stopPropagation` on it without affecting the user's `click` handlers. We need to stop
|
|
76
76
|
// it so that the input doesn't get focused automatically by the form field (See #21836).
|
|
77
77
|
'(click)': '_open($event)',
|
|
78
|
-
}, exportAs: 'mtxColorpickerToggle', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\n\n <svg *ngIf=\"!_customIcon\"\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".
|
|
78
|
+
}, exportAs: 'mtxColorpickerToggle', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<button #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\">\n\n <svg *ngIf=\"!_customIcon\"\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\">\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\" />\n </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mtx-colorpicker-toggle{pointer-events:auto;color:var(--mtx-colorpicker-toggle-icon-color)}.mtx-colorpicker-toggle-active{color:var(--mtx-colorpicker-toggle-active-state-icon-color)}.cdk-high-contrast-active .mtx-colorpicker-toggle-default-icon{color:CanvasText}\n"] }]
|
|
79
79
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
80
80
|
type: Attribute,
|
|
81
81
|
args: ['tabindex']
|
|
@@ -49,13 +49,13 @@ export class MtxCalendarBody {
|
|
|
49
49
|
return cellNumber === this.activeCell;
|
|
50
50
|
}
|
|
51
51
|
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: MtxCalendarBody, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
52
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.7", type: MtxCalendarBody, selector: "[mtx-calendar-body]", inputs: { label: "label", rows: "rows", todayValue: "todayValue", selectedValue: "selectedValue", labelMinRequiredCells: "labelMinRequiredCells", numCols: "numCols", allowDisabledSelection: "allowDisabledSelection", activeCell: "activeCell" }, outputs: { selectedValueChange: "selectedValueChange" }, host: { classAttribute: "mtx-calendar-body" }, exportAs: ["mtxCalendarBody"], ngImport: i0, template: "<!--\n If there's not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\n-->\n<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\">\n <td class=\"mtx-calendar-body-label\" [attr.colspan]=\"numCols\">{{ label }}</td>\n</tr>\n\n<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\" role=\"row\">\n <!--\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\n -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\n class=\"mtx-calendar-body-label\" [attr.colspan]=\"_firstRowOffset\" aria-hidden=\"true\">\n {{ _firstRowOffset >= labelMinRequiredCells ? label : '' }}\n </td>\n <td *ngFor=\"let item of row; let colIndex = index\"\n role=\"gridcell\"\n class=\"mtx-calendar-body-cell\"\n [class.mtx-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.mtx-calendar-body-disabled]=\"!item.enabled\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n (click)=\"_cellClicked(item)\">\n <div class=\"mtx-calendar-body-cell-content\"\n [class.mtx-calendar-body-selected]=\"selectedValue === item.value\"\n [class.mtx-calendar-body-today]=\"todayValue === item.value\"\n [attr.aria-selected]=\"selectedValue === item.value\">\n {{ item.displayValue }}\n </div>\n </td>\n</tr>\n", styles: [".mtx-calendar-body{min-width:224px}.mtx-calendar-body-label{height:0;line-height:0;text-align:left;padding:7.1428571429% 4.7142857143
|
|
52
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.7", type: MtxCalendarBody, selector: "[mtx-calendar-body]", inputs: { label: "label", rows: "rows", todayValue: "todayValue", selectedValue: "selectedValue", labelMinRequiredCells: "labelMinRequiredCells", numCols: "numCols", allowDisabledSelection: "allowDisabledSelection", activeCell: "activeCell" }, outputs: { selectedValueChange: "selectedValueChange" }, host: { classAttribute: "mtx-calendar-body" }, exportAs: ["mtxCalendarBody"], ngImport: i0, template: "<!--\n If there's not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\n-->\n<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\">\n <td class=\"mtx-calendar-body-label\" [attr.colspan]=\"numCols\">{{ label }}</td>\n</tr>\n\n<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\" role=\"row\">\n <!--\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\n -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\n class=\"mtx-calendar-body-label\" [attr.colspan]=\"_firstRowOffset\" aria-hidden=\"true\">\n {{ _firstRowOffset >= labelMinRequiredCells ? label : '' }}\n </td>\n <td *ngFor=\"let item of row; let colIndex = index\"\n role=\"gridcell\"\n class=\"mtx-calendar-body-cell\"\n [class.mtx-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.mtx-calendar-body-disabled]=\"!item.enabled\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n (click)=\"_cellClicked(item)\">\n <div class=\"mtx-calendar-body-cell-content\"\n [class.mtx-calendar-body-selected]=\"selectedValue === item.value\"\n [class.mtx-calendar-body-today]=\"todayValue === item.value\"\n [attr.aria-selected]=\"selectedValue === item.value\">\n {{ item.displayValue }}\n </div>\n </td>\n</tr>\n", styles: [".mtx-calendar-body{min-width:224px}.mtx-calendar-body-today:not(.mtx-calendar-body-selected){border-color:var(--mtx-datetimepicker-calendar-date-today-outline-color)}.mtx-calendar-body-label{height:0;line-height:0;text-align:left;padding:7.1428571429% 4.7142857143%;font-size:var(--mtx-datetimepicker-calendar-body-label-text-size);font-weight:var(--mtx-datetimepicker-calendar-body-label-text-weight);color:var(--mtx-datetimepicker-calendar-body-label-text-color)}[dir=rtl] .mtx-calendar-body-label{text-align:right}.mtx-calendar-body-cell{position:relative;width:14.2857142857%;height:0;line-height:0;padding:7.1428571429% 0;text-align:center;outline:none;cursor:pointer}.mtx-calendar-body-disabled{cursor:default;pointer-events:none}.mtx-calendar-body-disabled>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected){color:var(--mtx-datetimepicker-calendar-date-disabled-state-text-color)}.mtx-calendar-body-disabled>.mtx-calendar-body-today:not(.mtx-calendar-body-selected){border-color:var(--mtx-datetimepicker-calendar-date-disabled-state-text-color)}.mtx-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;border:1px solid transparent;border-radius:999px;color:var(--mtx-datetimepicker-calendar-date-text-color);border-color:var(--mtx-datetimepicker-calendar-date-outline-color)}.mtx-calendar-body-active>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected){background-color:var(--mtx-datetimepicker-calendar-date-focus-state-background-color)}@media (hover: hover){.mtx-calendar-body-cell:not(.mtx-calendar-body-disabled):hover>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected){background-color:var(--mtx-datetimepicker-calendar-date-hover-state-background-color)}}.mtx-calendar-body-selected{background-color:var(--mtx-datetimepicker-calendar-date-selected-state-background-color);color:var(--mtx-datetimepicker-calendar-date-selected-state-text-color)}.mtx-calendar-body-disabled>.mtx-calendar-body-selected{background-color:var(--mtx-datetimepicker-calendar-date-selected-disabled-state-background-color)}.mtx-calendar-body-selected.mtx-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mtx-datetimepicker-calendar-date-today-selected-state-outline-color)}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
53
53
|
}
|
|
54
54
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.7", ngImport: i0, type: MtxCalendarBody, decorators: [{
|
|
55
55
|
type: Component,
|
|
56
56
|
args: [{ selector: '[mtx-calendar-body]', host: {
|
|
57
57
|
class: 'mtx-calendar-body',
|
|
58
|
-
}, exportAs: 'mtxCalendarBody', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n If there's not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\n-->\n<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\">\n <td class=\"mtx-calendar-body-label\" [attr.colspan]=\"numCols\">{{ label }}</td>\n</tr>\n\n<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\" role=\"row\">\n <!--\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\n -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\n class=\"mtx-calendar-body-label\" [attr.colspan]=\"_firstRowOffset\" aria-hidden=\"true\">\n {{ _firstRowOffset >= labelMinRequiredCells ? label : '' }}\n </td>\n <td *ngFor=\"let item of row; let colIndex = index\"\n role=\"gridcell\"\n class=\"mtx-calendar-body-cell\"\n [class.mtx-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.mtx-calendar-body-disabled]=\"!item.enabled\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n (click)=\"_cellClicked(item)\">\n <div class=\"mtx-calendar-body-cell-content\"\n [class.mtx-calendar-body-selected]=\"selectedValue === item.value\"\n [class.mtx-calendar-body-today]=\"todayValue === item.value\"\n [attr.aria-selected]=\"selectedValue === item.value\">\n {{ item.displayValue }}\n </div>\n </td>\n</tr>\n", styles: [".mtx-calendar-body{min-width:224px}.mtx-calendar-body-label{height:0;line-height:0;text-align:left;padding:7.1428571429% 4.7142857143
|
|
58
|
+
}, exportAs: 'mtxCalendarBody', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!--\n If there's not enough space in the first row, create a separate label row. We mark this row as\n aria-hidden because we don't want it to be read out as one of the weeks in the month.\n-->\n<tr *ngIf=\"_firstRowOffset < labelMinRequiredCells\" aria-hidden=\"true\">\n <td class=\"mtx-calendar-body-label\" [attr.colspan]=\"numCols\">{{ label }}</td>\n</tr>\n\n<!-- Create the first row separately so we can include a special spacer cell. -->\n<tr *ngFor=\"let row of rows; let rowIndex = index\" role=\"row\">\n <!--\n We mark this cell as aria-hidden so it doesn't get read out as one of the days in the week.\n -->\n <td *ngIf=\"rowIndex === 0 && _firstRowOffset\"\n class=\"mtx-calendar-body-label\" [attr.colspan]=\"_firstRowOffset\" aria-hidden=\"true\">\n {{ _firstRowOffset >= labelMinRequiredCells ? label : '' }}\n </td>\n <td *ngFor=\"let item of row; let colIndex = index\"\n role=\"gridcell\"\n class=\"mtx-calendar-body-cell\"\n [class.mtx-calendar-body-active]=\"_isActiveCell(rowIndex, colIndex)\"\n [class.mtx-calendar-body-disabled]=\"!item.enabled\"\n [tabindex]=\"_isActiveCell(rowIndex, colIndex) ? 0 : -1\"\n [attr.data-mat-row]=\"rowIndex\"\n [attr.data-mat-col]=\"colIndex\"\n [attr.aria-label]=\"item.ariaLabel\"\n [attr.aria-disabled]=\"!item.enabled || null\"\n (click)=\"_cellClicked(item)\">\n <div class=\"mtx-calendar-body-cell-content\"\n [class.mtx-calendar-body-selected]=\"selectedValue === item.value\"\n [class.mtx-calendar-body-today]=\"todayValue === item.value\"\n [attr.aria-selected]=\"selectedValue === item.value\">\n {{ item.displayValue }}\n </div>\n </td>\n</tr>\n", styles: [".mtx-calendar-body{min-width:224px}.mtx-calendar-body-today:not(.mtx-calendar-body-selected){border-color:var(--mtx-datetimepicker-calendar-date-today-outline-color)}.mtx-calendar-body-label{height:0;line-height:0;text-align:left;padding:7.1428571429% 4.7142857143%;font-size:var(--mtx-datetimepicker-calendar-body-label-text-size);font-weight:var(--mtx-datetimepicker-calendar-body-label-text-weight);color:var(--mtx-datetimepicker-calendar-body-label-text-color)}[dir=rtl] .mtx-calendar-body-label{text-align:right}.mtx-calendar-body-cell{position:relative;width:14.2857142857%;height:0;line-height:0;padding:7.1428571429% 0;text-align:center;outline:none;cursor:pointer}.mtx-calendar-body-disabled{cursor:default;pointer-events:none}.mtx-calendar-body-disabled>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected){color:var(--mtx-datetimepicker-calendar-date-disabled-state-text-color)}.mtx-calendar-body-disabled>.mtx-calendar-body-today:not(.mtx-calendar-body-selected){border-color:var(--mtx-datetimepicker-calendar-date-disabled-state-text-color)}.mtx-calendar-body-cell-content{position:absolute;top:5%;left:5%;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;border:1px solid transparent;border-radius:999px;color:var(--mtx-datetimepicker-calendar-date-text-color);border-color:var(--mtx-datetimepicker-calendar-date-outline-color)}.mtx-calendar-body-active>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected){background-color:var(--mtx-datetimepicker-calendar-date-focus-state-background-color)}@media (hover: hover){.mtx-calendar-body-cell:not(.mtx-calendar-body-disabled):hover>.mtx-calendar-body-cell-content:not(.mtx-calendar-body-selected){background-color:var(--mtx-datetimepicker-calendar-date-hover-state-background-color)}}.mtx-calendar-body-selected{background-color:var(--mtx-datetimepicker-calendar-date-selected-state-background-color);color:var(--mtx-datetimepicker-calendar-date-selected-state-text-color)}.mtx-calendar-body-disabled>.mtx-calendar-body-selected{background-color:var(--mtx-datetimepicker-calendar-date-selected-disabled-state-background-color)}.mtx-calendar-body-selected.mtx-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mtx-datetimepicker-calendar-date-today-selected-state-outline-color)}\n"] }]
|
|
59
59
|
}], propDecorators: { label: [{
|
|
60
60
|
type: Input
|
|
61
61
|
}], rows: [{
|