@ng-matero/extensions 18.0.3 → 18.1.1
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/README.md +27 -2
- package/alert/alert.scss +13 -16
- package/colorpicker/colorpicker-toggle.scss +1 -1
- package/colorpicker/colorpicker.d.ts +1 -1
- package/column-resize/resize-strategy.d.ts +1 -1
- package/core/m2/_typography.scss +172 -0
- package/core/pipes/is-template-ref.pipe.d.ts +2 -2
- package/core/style/_elevation.scss +167 -0
- package/core/tokens/_m3-tokens.scss +13 -10
- package/core/tokens/_token-utils.scss +120 -30
- package/core/tokens/m2/mtx/_alert.scss +17 -9
- package/core/tokens/m2/mtx/_datetimepicker.scss +3 -3
- package/core/tokens/m2/mtx/_drawer.scss +2 -2
- package/core/tokens/m2/mtx/_grid.scss +0 -2
- package/core/tokens/m2/mtx/_popover.scss +3 -0
- package/core/tokens/m2/mtx/_select.scss +2 -4
- package/core/tokens/m3/definitions/_index.scss +8 -0
- package/core/tokens/m3/definitions/_md-ref-palette.scss +100 -0
- package/core/tokens/m3/definitions/_md-ref-typeface.scss +14 -0
- package/core/tokens/m3/definitions/_md-sys-color.scss +126 -0
- package/core/tokens/m3/definitions/_md-sys-elevation.scss +15 -0
- package/core/tokens/m3/definitions/_md-sys-motion.scss +46 -0
- package/core/tokens/m3/definitions/_md-sys-shape.scss +24 -0
- package/core/tokens/m3/definitions/_md-sys-state.scss +13 -0
- package/core/tokens/m3/definitions/_md-sys-typescale.scss +308 -0
- package/core/tokens/m3/mtx/_alert.scss +19 -9
- package/core/tokens/m3/mtx/_datetimepicker.scss +3 -3
- package/core/tokens/m3/mtx/_drawer.scss +2 -2
- package/core/tokens/m3/mtx/_grid.scss +0 -2
- package/core/tokens/m3/mtx/_popover.scss +3 -0
- package/core/tokens/m3/mtx/_select.scss +2 -2
- package/core/typography/_all-typography.scss +2 -2
- package/datetimepicker/calendar.d.ts +4 -2
- package/datetimepicker/calendar.scss +38 -0
- package/datetimepicker/datetimepicker-actions.d.ts +32 -0
- package/datetimepicker/datetimepicker-actions.scss +18 -0
- package/datetimepicker/datetimepicker-animations.d.ts +1 -1
- package/datetimepicker/datetimepicker-content.scss +40 -22
- package/datetimepicker/datetimepicker-module.d.ts +2 -1
- package/datetimepicker/datetimepicker-toggle.scss +1 -1
- package/datetimepicker/datetimepicker.d.ts +33 -3
- package/datetimepicker/public-api.d.ts +1 -0
- package/datetimepicker/time.d.ts +12 -8
- package/datetimepicker/time.scss +6 -6
- package/dialog/dialog.d.ts +1 -1
- package/drawer/drawer-config.d.ts +8 -6
- package/drawer/drawer-container.d.ts +12 -68
- package/drawer/drawer-container.scss +4 -6
- package/drawer/drawer-module.d.ts +2 -2
- package/drawer/drawer-ref.d.ts +13 -4
- package/drawer/drawer.d.ts +24 -24
- package/esm2022/alert/alert-module.mjs +5 -5
- package/esm2022/alert/alert.mjs +6 -5
- package/esm2022/button/button-loading.mjs +3 -3
- package/esm2022/button/button-module.mjs +4 -4
- package/esm2022/checkbox-group/checkbox-group-module.mjs +4 -4
- package/esm2022/checkbox-group/checkbox-group.mjs +3 -3
- package/esm2022/colorpicker/colorpicker-input.mjs +3 -3
- package/esm2022/colorpicker/colorpicker-module.mjs +4 -4
- package/esm2022/colorpicker/colorpicker-toggle.mjs +6 -6
- package/esm2022/colorpicker/colorpicker.mjs +8 -8
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2022/column-resize/column-resize-module.mjs +4 -4
- package/esm2022/column-resize/column-resize-notifier.mjs +6 -6
- 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 +3 -3
- package/esm2022/column-resize/overlay-handle.mjs +3 -3
- package/esm2022/column-resize/resizable.mjs +3 -3
- package/esm2022/column-resize/resize-strategy.mjs +9 -9
- package/esm2022/core/datetime/datetime.module.mjs +8 -8
- package/esm2022/core/datetime/native-datetime-adapter.mjs +3 -3
- 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 +3 -3
- package/esm2022/datetimepicker/calendar.mjs +10 -6
- package/esm2022/datetimepicker/clock.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-actions.mjs +88 -0
- package/esm2022/datetimepicker/datetimepicker-animations.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-input.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-module.mjs +24 -7
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +6 -6
- package/esm2022/datetimepicker/datetimepicker.mjs +92 -20
- package/esm2022/datetimepicker/month-view.mjs +7 -5
- package/esm2022/datetimepicker/multi-year-view.mjs +7 -5
- package/esm2022/datetimepicker/public-api.mjs +2 -1
- package/esm2022/datetimepicker/time.mjs +29 -20
- package/esm2022/datetimepicker/year-view.mjs +7 -5
- package/esm2022/dialog/dialog-container.mjs +3 -3
- package/esm2022/dialog/dialog-module.mjs +4 -4
- package/esm2022/dialog/dialog.mjs +3 -3
- package/esm2022/drawer/drawer-config.mjs +2 -2
- package/esm2022/drawer/drawer-container.mjs +32 -196
- package/esm2022/drawer/drawer-module.mjs +7 -7
- package/esm2022/drawer/drawer-ref.mjs +27 -18
- package/esm2022/drawer/drawer.mjs +98 -121
- package/esm2022/grid/cell.mjs +3 -3
- package/esm2022/grid/column-menu.mjs +5 -5
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2022/grid/column-resize/column-resize-module.mjs +8 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +3 -3
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +3 -3
- package/esm2022/grid/column-resize/resize-strategy.mjs +3 -3
- package/esm2022/grid/expansion-toggle.mjs +3 -3
- package/esm2022/grid/grid-module.mjs +4 -4
- package/esm2022/grid/grid-pipes.mjs +21 -21
- package/esm2022/grid/grid-utils.mjs +3 -3
- package/esm2022/grid/grid.mjs +5 -5
- package/esm2022/grid/selectable-cell.mjs +3 -3
- package/esm2022/loader/loader-module.mjs +4 -4
- package/esm2022/loader/loader.mjs +3 -3
- package/esm2022/photoviewer/photoviewer-module.mjs +4 -4
- package/esm2022/photoviewer/photoviewer.mjs +3 -3
- package/esm2022/popover/popover-content.mjs +6 -6
- package/esm2022/popover/popover-interfaces.mjs +1 -1
- package/esm2022/popover/popover-module.mjs +4 -4
- package/esm2022/popover/popover-target.mjs +3 -3
- package/esm2022/popover/popover-trigger.mjs +3 -3
- package/esm2022/popover/popover.mjs +29 -19
- package/esm2022/progress/progress-module.mjs +4 -4
- package/esm2022/progress/progress.mjs +3 -3
- package/esm2022/select/option.mjs +3 -3
- package/esm2022/select/select-module.mjs +4 -4
- package/esm2022/select/select.mjs +3 -3
- package/esm2022/select/templates.mjs +33 -33
- package/esm2022/split/split-module.mjs +4 -4
- package/esm2022/split/split-pane.mjs +3 -3
- package/esm2022/split/split.mjs +3 -3
- package/esm2022/tooltip/tooltip-module.mjs +4 -4
- package/esm2022/tooltip/tooltip.mjs +20 -18
- package/fesm2022/mtxAlert.mjs +9 -8
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +7 -7
- package/fesm2022/mtxCheckboxGroup.mjs +7 -7
- package/fesm2022/mtxColorpicker.mjs +20 -20
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +40 -40
- package/fesm2022/mtxCore.mjs +21 -21
- package/fesm2022/mtxDatetimepicker.mjs +273 -82
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +10 -10
- package/fesm2022/mtxDrawer.mjs +160 -340
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +68 -68
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +7 -7
- package/fesm2022/mtxPhotoviewer.mjs +7 -7
- package/fesm2022/mtxPopover.mjs +44 -34
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +7 -7
- package/fesm2022/mtxSelect.mjs +43 -43
- package/fesm2022/mtxSplit.mjs +10 -10
- package/fesm2022/mtxTooltip.mjs +23 -21
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/column-menu.scss +0 -1
- package/grid/grid.scss +2 -0
- package/package.json +7 -7
- package/popover/popover-interfaces.d.ts +0 -1
- package/popover/popover.d.ts +2 -5
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/select/option.d.ts +1 -1
- package/select/select.scss +2 -2
- package/tooltip/_tooltip-theme.scss +19 -15
- package/tooltip/tooltip.d.ts +3 -0
- package/tooltip/tooltip.scss +61 -29
- package/core/typography/_typography.scss +0 -40
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@function values($exclude-hardcoded-values: false) {
|
|
7
|
+
@return (
|
|
8
|
+
'duration-extra-long1': if($exclude-hardcoded-values, null, 700ms),
|
|
9
|
+
'duration-extra-long2': if($exclude-hardcoded-values, null, 800ms),
|
|
10
|
+
'duration-extra-long3': if($exclude-hardcoded-values, null, 900ms),
|
|
11
|
+
'duration-extra-long4': if($exclude-hardcoded-values, null, 1000ms),
|
|
12
|
+
'duration-long1': if($exclude-hardcoded-values, null, 450ms),
|
|
13
|
+
'duration-long2': if($exclude-hardcoded-values, null, 500ms),
|
|
14
|
+
'duration-long3': if($exclude-hardcoded-values, null, 550ms),
|
|
15
|
+
'duration-long4': if($exclude-hardcoded-values, null, 600ms),
|
|
16
|
+
'duration-medium1': if($exclude-hardcoded-values, null, 250ms),
|
|
17
|
+
'duration-medium2': if($exclude-hardcoded-values, null, 300ms),
|
|
18
|
+
'duration-medium3': if($exclude-hardcoded-values, null, 350ms),
|
|
19
|
+
'duration-medium4': if($exclude-hardcoded-values, null, 400ms),
|
|
20
|
+
'duration-short1': if($exclude-hardcoded-values, null, 50ms),
|
|
21
|
+
'duration-short2': if($exclude-hardcoded-values, null, 100ms),
|
|
22
|
+
'duration-short3': if($exclude-hardcoded-values, null, 150ms),
|
|
23
|
+
'duration-short4': if($exclude-hardcoded-values, null, 200ms),
|
|
24
|
+
'easing-emphasized':
|
|
25
|
+
if($exclude-hardcoded-values, null, cubic-bezier(0.2, 0, 0, 1)),
|
|
26
|
+
'easing-emphasized-accelerate':
|
|
27
|
+
if($exclude-hardcoded-values, null, cubic-bezier(0.3, 0, 0.8, 0.15)),
|
|
28
|
+
'easing-emphasized-decelerate':
|
|
29
|
+
if($exclude-hardcoded-values, null, cubic-bezier(0.05, 0.7, 0.1, 1)),
|
|
30
|
+
'easing-legacy':
|
|
31
|
+
if($exclude-hardcoded-values, null, cubic-bezier(0.4, 0, 0.2, 1)),
|
|
32
|
+
'easing-legacy-accelerate':
|
|
33
|
+
if($exclude-hardcoded-values, null, cubic-bezier(0.4, 0, 1, 1)),
|
|
34
|
+
'easing-legacy-decelerate':
|
|
35
|
+
if($exclude-hardcoded-values, null, cubic-bezier(0, 0, 0.2, 1)),
|
|
36
|
+
'easing-linear':
|
|
37
|
+
if($exclude-hardcoded-values, null, cubic-bezier(0, 0, 1, 1)),
|
|
38
|
+
'easing-standard':
|
|
39
|
+
if($exclude-hardcoded-values, null, cubic-bezier(0.2, 0, 0, 1)),
|
|
40
|
+
'easing-standard-accelerate':
|
|
41
|
+
if($exclude-hardcoded-values, null, cubic-bezier(0.3, 0, 1, 1)),
|
|
42
|
+
'easing-standard-decelerate':
|
|
43
|
+
if($exclude-hardcoded-values, null, cubic-bezier(0, 0, 0, 1)),
|
|
44
|
+
'path': /** TODO: type "motion_path" is not supported. */ null
|
|
45
|
+
);
|
|
46
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@function values($exclude-hardcoded-values: false) {
|
|
7
|
+
@return (
|
|
8
|
+
'corner-extra-large': if($exclude-hardcoded-values, null, 28px),
|
|
9
|
+
'corner-extra-large-top':
|
|
10
|
+
if($exclude-hardcoded-values, null, (28px 28px 0 0)),
|
|
11
|
+
'corner-extra-small': if($exclude-hardcoded-values, null, 4px),
|
|
12
|
+
'corner-extra-small-top':
|
|
13
|
+
if($exclude-hardcoded-values, null, (4px 4px 0 0)),
|
|
14
|
+
'corner-full': if($exclude-hardcoded-values, null, 9999px),
|
|
15
|
+
'corner-large': if($exclude-hardcoded-values, null, 16px),
|
|
16
|
+
'corner-large-end': if($exclude-hardcoded-values, null, (0 16px 16px 0)),
|
|
17
|
+
'corner-large-start':
|
|
18
|
+
if($exclude-hardcoded-values, null, (16px 0 0 16px)),
|
|
19
|
+
'corner-large-top': if($exclude-hardcoded-values, null, (16px 16px 0 0)),
|
|
20
|
+
'corner-medium': if($exclude-hardcoded-values, null, 12px),
|
|
21
|
+
'corner-none': if($exclude-hardcoded-values, null, 0),
|
|
22
|
+
'corner-small': if($exclude-hardcoded-values, null, 8px)
|
|
23
|
+
);
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@function values($exclude-hardcoded-values: false) {
|
|
7
|
+
@return (
|
|
8
|
+
'dragged-state-layer-opacity': if($exclude-hardcoded-values, null, 0.16),
|
|
9
|
+
'focus-state-layer-opacity': if($exclude-hardcoded-values, null, 0.12),
|
|
10
|
+
'hover-state-layer-opacity': if($exclude-hardcoded-values, null, 0.08),
|
|
11
|
+
'pressed-state-layer-opacity': if($exclude-hardcoded-values, null, 0.12)
|
|
12
|
+
);
|
|
13
|
+
}
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Design system display name: Material 3
|
|
3
|
+
// Design system version: v0.161
|
|
4
|
+
//
|
|
5
|
+
|
|
6
|
+
@use 'sass:map';
|
|
7
|
+
|
|
8
|
+
@use './md-ref-typeface';
|
|
9
|
+
|
|
10
|
+
$_default: (
|
|
11
|
+
'md-ref-typeface': md-ref-typeface.values(),
|
|
12
|
+
);
|
|
13
|
+
|
|
14
|
+
@function values($deps: $_default, $exclude-hardcoded-values: false) {
|
|
15
|
+
@return (
|
|
16
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
17
|
+
// Tokens md.sys.typescale.body-large.tracking cannot be represented in the "font"
|
|
18
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
19
|
+
'body-large':
|
|
20
|
+
if(
|
|
21
|
+
$exclude-hardcoded-values,
|
|
22
|
+
null,
|
|
23
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular')
|
|
24
|
+
if($exclude-hardcoded-values, null, 1rem) #{'/'} if(
|
|
25
|
+
$exclude-hardcoded-values,
|
|
26
|
+
null,
|
|
27
|
+
1.5rem
|
|
28
|
+
) map.get($deps, 'md-ref-typeface', 'plain')
|
|
29
|
+
),
|
|
30
|
+
'body-large-font': map.get($deps, 'md-ref-typeface', 'plain'),
|
|
31
|
+
'body-large-line-height': if($exclude-hardcoded-values, null, 1.5rem),
|
|
32
|
+
'body-large-size': if($exclude-hardcoded-values, null, 1rem),
|
|
33
|
+
'body-large-tracking': if($exclude-hardcoded-values, null, 0.031rem),
|
|
34
|
+
'body-large-weight': map.get($deps, 'md-ref-typeface', 'weight-regular'),
|
|
35
|
+
|
|
36
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
37
|
+
// Tokens md.sys.typescale.body-medium.tracking cannot be represented in the "font"
|
|
38
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
39
|
+
'body-medium':
|
|
40
|
+
if(
|
|
41
|
+
$exclude-hardcoded-values,
|
|
42
|
+
null,
|
|
43
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular')
|
|
44
|
+
if($exclude-hardcoded-values, null, 0.875rem) #{'/'} if(
|
|
45
|
+
$exclude-hardcoded-values,
|
|
46
|
+
null,
|
|
47
|
+
1.25rem
|
|
48
|
+
) map.get($deps, 'md-ref-typeface', 'plain')
|
|
49
|
+
),
|
|
50
|
+
'body-medium-font': map.get($deps, 'md-ref-typeface', 'plain'),
|
|
51
|
+
'body-medium-line-height': if($exclude-hardcoded-values, null, 1.25rem),
|
|
52
|
+
'body-medium-size': if($exclude-hardcoded-values, null, 0.875rem),
|
|
53
|
+
'body-medium-tracking': if($exclude-hardcoded-values, null, 0.016rem),
|
|
54
|
+
'body-medium-weight': map.get($deps, 'md-ref-typeface', 'weight-regular'),
|
|
55
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
56
|
+
// Tokens md.sys.typescale.body-small.tracking cannot be represented in the "font"
|
|
57
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
58
|
+
'body-small':
|
|
59
|
+
if(
|
|
60
|
+
$exclude-hardcoded-values,
|
|
61
|
+
null,
|
|
62
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular')
|
|
63
|
+
if($exclude-hardcoded-values, null, 0.75rem) #{'/'} if(
|
|
64
|
+
$exclude-hardcoded-values,
|
|
65
|
+
null,
|
|
66
|
+
1rem
|
|
67
|
+
) map.get($deps, 'md-ref-typeface', 'plain')
|
|
68
|
+
),
|
|
69
|
+
'body-small-font': map.get($deps, 'md-ref-typeface', 'plain'),
|
|
70
|
+
'body-small-line-height': if($exclude-hardcoded-values, null, 1rem),
|
|
71
|
+
'body-small-size': if($exclude-hardcoded-values, null, 0.75rem),
|
|
72
|
+
'body-small-tracking': if($exclude-hardcoded-values, null, 0.025rem),
|
|
73
|
+
'body-small-weight': map.get($deps, 'md-ref-typeface', 'weight-regular'),
|
|
74
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
75
|
+
// Tokens md.sys.typescale.display-large.tracking cannot be represented in the "font"
|
|
76
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
77
|
+
'display-large':
|
|
78
|
+
if(
|
|
79
|
+
$exclude-hardcoded-values,
|
|
80
|
+
null,
|
|
81
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular')
|
|
82
|
+
if($exclude-hardcoded-values, null, 3.562rem) #{'/'} if(
|
|
83
|
+
$exclude-hardcoded-values,
|
|
84
|
+
null,
|
|
85
|
+
4rem
|
|
86
|
+
) map.get($deps, 'md-ref-typeface', 'brand')
|
|
87
|
+
),
|
|
88
|
+
'display-large-font': map.get($deps, 'md-ref-typeface', 'brand'),
|
|
89
|
+
'display-large-line-height': if($exclude-hardcoded-values, null, 4rem),
|
|
90
|
+
'display-large-size': if($exclude-hardcoded-values, null, 3.562rem),
|
|
91
|
+
'display-large-tracking': if($exclude-hardcoded-values, null, -0.016rem),
|
|
92
|
+
'display-large-weight': map.get($deps, 'md-ref-typeface', 'weight-regular'),
|
|
93
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
94
|
+
// Tokens md.sys.typescale.display-medium.tracking cannot be represented in the "font"
|
|
95
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
96
|
+
'display-medium':
|
|
97
|
+
if(
|
|
98
|
+
$exclude-hardcoded-values,
|
|
99
|
+
null,
|
|
100
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular')
|
|
101
|
+
if($exclude-hardcoded-values, null, 2.812rem) #{'/'} if(
|
|
102
|
+
$exclude-hardcoded-values,
|
|
103
|
+
null,
|
|
104
|
+
3.25rem
|
|
105
|
+
) map.get($deps, 'md-ref-typeface', 'brand')
|
|
106
|
+
),
|
|
107
|
+
'display-medium-font': map.get($deps, 'md-ref-typeface', 'brand'),
|
|
108
|
+
'display-medium-line-height': if($exclude-hardcoded-values, null, 3.25rem),
|
|
109
|
+
'display-medium-size': if($exclude-hardcoded-values, null, 2.812rem),
|
|
110
|
+
'display-medium-tracking': if($exclude-hardcoded-values, null, 0),
|
|
111
|
+
'display-medium-weight': map.get($deps, 'md-ref-typeface', 'weight-regular'),
|
|
112
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
113
|
+
// Tokens md.sys.typescale.display-small.tracking cannot be represented in the "font"
|
|
114
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
115
|
+
'display-small':
|
|
116
|
+
if(
|
|
117
|
+
$exclude-hardcoded-values,
|
|
118
|
+
null,
|
|
119
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular')
|
|
120
|
+
if($exclude-hardcoded-values, null, 2.25rem) #{'/'} if(
|
|
121
|
+
$exclude-hardcoded-values,
|
|
122
|
+
null,
|
|
123
|
+
2.75rem
|
|
124
|
+
) map.get($deps, 'md-ref-typeface', 'brand')
|
|
125
|
+
),
|
|
126
|
+
'display-small-font': map.get($deps, 'md-ref-typeface', 'brand'),
|
|
127
|
+
'display-small-line-height': if($exclude-hardcoded-values, null, 2.75rem),
|
|
128
|
+
'display-small-size': if($exclude-hardcoded-values, null, 2.25rem),
|
|
129
|
+
'display-small-tracking': if($exclude-hardcoded-values, null, 0),
|
|
130
|
+
'display-small-weight': map.get($deps, 'md-ref-typeface', 'weight-regular'),
|
|
131
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
132
|
+
// Tokens md.sys.typescale.headline-large.tracking cannot be represented in the "font"
|
|
133
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
134
|
+
'headline-large':
|
|
135
|
+
if(
|
|
136
|
+
$exclude-hardcoded-values,
|
|
137
|
+
null,
|
|
138
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular')
|
|
139
|
+
if($exclude-hardcoded-values, null, 2rem) #{'/'} if(
|
|
140
|
+
$exclude-hardcoded-values,
|
|
141
|
+
null,
|
|
142
|
+
2.5rem
|
|
143
|
+
) map.get($deps, 'md-ref-typeface', 'brand')
|
|
144
|
+
),
|
|
145
|
+
'headline-large-font': map.get($deps, 'md-ref-typeface', 'brand'),
|
|
146
|
+
'headline-large-line-height': if($exclude-hardcoded-values, null, 2.5rem),
|
|
147
|
+
'headline-large-size': if($exclude-hardcoded-values, null, 2rem),
|
|
148
|
+
'headline-large-tracking': if($exclude-hardcoded-values, null, 0),
|
|
149
|
+
'headline-large-weight': map.get($deps, 'md-ref-typeface', 'weight-regular'),
|
|
150
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
151
|
+
// Tokens md.sys.typescale.headline-medium.tracking cannot be represented in the "font"
|
|
152
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
153
|
+
'headline-medium':
|
|
154
|
+
if(
|
|
155
|
+
$exclude-hardcoded-values,
|
|
156
|
+
null,
|
|
157
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular')
|
|
158
|
+
if($exclude-hardcoded-values, null, 1.75rem) #{'/'} if(
|
|
159
|
+
$exclude-hardcoded-values,
|
|
160
|
+
null,
|
|
161
|
+
2.25rem
|
|
162
|
+
) map.get($deps, 'md-ref-typeface', 'brand')
|
|
163
|
+
),
|
|
164
|
+
'headline-medium-font': map.get($deps, 'md-ref-typeface', 'brand'),
|
|
165
|
+
'headline-medium-line-height': if($exclude-hardcoded-values, null, 2.25rem),
|
|
166
|
+
'headline-medium-size': if($exclude-hardcoded-values, null, 1.75rem),
|
|
167
|
+
'headline-medium-tracking': if($exclude-hardcoded-values, null, 0),
|
|
168
|
+
'headline-medium-weight':
|
|
169
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular'),
|
|
170
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
171
|
+
// Tokens md.sys.typescale.headline-small.tracking cannot be represented in the "font"
|
|
172
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
173
|
+
'headline-small':
|
|
174
|
+
if(
|
|
175
|
+
$exclude-hardcoded-values,
|
|
176
|
+
null,
|
|
177
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular')
|
|
178
|
+
if($exclude-hardcoded-values, null, 1.5rem) #{'/'} if(
|
|
179
|
+
$exclude-hardcoded-values,
|
|
180
|
+
null,
|
|
181
|
+
2rem
|
|
182
|
+
) map.get($deps, 'md-ref-typeface', 'brand')
|
|
183
|
+
),
|
|
184
|
+
'headline-small-font': map.get($deps, 'md-ref-typeface', 'brand'),
|
|
185
|
+
'headline-small-line-height': if($exclude-hardcoded-values, null, 2rem),
|
|
186
|
+
'headline-small-size': if($exclude-hardcoded-values, null, 1.5rem),
|
|
187
|
+
'headline-small-tracking': if($exclude-hardcoded-values, null, 0),
|
|
188
|
+
'headline-small-weight': map.get($deps, 'md-ref-typeface', 'weight-regular'),
|
|
189
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
190
|
+
// Tokens md.sys.typescale.label-large.tracking cannot be represented in the "font"
|
|
191
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
192
|
+
'label-large':
|
|
193
|
+
if(
|
|
194
|
+
$exclude-hardcoded-values,
|
|
195
|
+
null,
|
|
196
|
+
map.get($deps, 'md-ref-typeface', 'weight-medium')
|
|
197
|
+
if($exclude-hardcoded-values, null, 0.875rem) #{'/'} if(
|
|
198
|
+
$exclude-hardcoded-values,
|
|
199
|
+
null,
|
|
200
|
+
1.25rem
|
|
201
|
+
) map.get($deps, 'md-ref-typeface', 'plain')
|
|
202
|
+
),
|
|
203
|
+
'label-large-font': map.get($deps, 'md-ref-typeface', 'plain'),
|
|
204
|
+
'label-large-line-height': if($exclude-hardcoded-values, null, 1.25rem),
|
|
205
|
+
'label-large-size': if($exclude-hardcoded-values, null, 0.875rem),
|
|
206
|
+
'label-large-tracking': if($exclude-hardcoded-values, null, 0.006rem),
|
|
207
|
+
'label-large-weight': map.get($deps, 'md-ref-typeface', 'weight-medium'),
|
|
208
|
+
'label-large-weight-prominent':
|
|
209
|
+
map.get($deps, 'md-ref-typeface', 'weight-bold'),
|
|
210
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
211
|
+
// Tokens md.sys.typescale.label-medium.tracking cannot be represented in the "font"
|
|
212
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
213
|
+
'label-medium':
|
|
214
|
+
if(
|
|
215
|
+
$exclude-hardcoded-values,
|
|
216
|
+
null,
|
|
217
|
+
map.get($deps, 'md-ref-typeface', 'weight-medium')
|
|
218
|
+
if($exclude-hardcoded-values, null, 0.75rem) #{'/'} if(
|
|
219
|
+
$exclude-hardcoded-values,
|
|
220
|
+
null,
|
|
221
|
+
1rem
|
|
222
|
+
) map.get($deps, 'md-ref-typeface', 'plain')
|
|
223
|
+
),
|
|
224
|
+
'label-medium-font': map.get($deps, 'md-ref-typeface', 'plain'),
|
|
225
|
+
'label-medium-line-height': if($exclude-hardcoded-values, null, 1rem),
|
|
226
|
+
'label-medium-size': if($exclude-hardcoded-values, null, 0.75rem),
|
|
227
|
+
'label-medium-tracking': if($exclude-hardcoded-values, null, 0.031rem),
|
|
228
|
+
'label-medium-weight': map.get($deps, 'md-ref-typeface', 'weight-medium'),
|
|
229
|
+
'label-medium-weight-prominent':
|
|
230
|
+
map.get($deps, 'md-ref-typeface', 'weight-bold'),
|
|
231
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
232
|
+
// Tokens md.sys.typescale.label-small.tracking cannot be represented in the "font"
|
|
233
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
234
|
+
'label-small':
|
|
235
|
+
if(
|
|
236
|
+
$exclude-hardcoded-values,
|
|
237
|
+
null,
|
|
238
|
+
map.get($deps, 'md-ref-typeface', 'weight-medium')
|
|
239
|
+
if($exclude-hardcoded-values, null, 0.688rem) #{'/'} if(
|
|
240
|
+
$exclude-hardcoded-values,
|
|
241
|
+
null,
|
|
242
|
+
1rem
|
|
243
|
+
) map.get($deps, 'md-ref-typeface', 'plain')
|
|
244
|
+
),
|
|
245
|
+
'label-small-font': map.get($deps, 'md-ref-typeface', 'plain'),
|
|
246
|
+
'label-small-line-height': if($exclude-hardcoded-values, null, 1rem),
|
|
247
|
+
'label-small-size': if($exclude-hardcoded-values, null, 0.688rem),
|
|
248
|
+
'label-small-tracking': if($exclude-hardcoded-values, null, 0.031rem),
|
|
249
|
+
'label-small-weight': map.get($deps, 'md-ref-typeface', 'weight-medium'),
|
|
250
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
251
|
+
// Tokens md.sys.typescale.title-large.tracking cannot be represented in the "font"
|
|
252
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
253
|
+
'title-large':
|
|
254
|
+
if(
|
|
255
|
+
$exclude-hardcoded-values,
|
|
256
|
+
null,
|
|
257
|
+
map.get($deps, 'md-ref-typeface', 'weight-regular')
|
|
258
|
+
if($exclude-hardcoded-values, null, 1.375rem) #{'/'} if(
|
|
259
|
+
$exclude-hardcoded-values,
|
|
260
|
+
null,
|
|
261
|
+
1.75rem
|
|
262
|
+
) map.get($deps, 'md-ref-typeface', 'brand')
|
|
263
|
+
),
|
|
264
|
+
'title-large-font': map.get($deps, 'md-ref-typeface', 'brand'),
|
|
265
|
+
'title-large-line-height': if($exclude-hardcoded-values, null, 1.75rem),
|
|
266
|
+
'title-large-size': if($exclude-hardcoded-values, null, 1.375rem),
|
|
267
|
+
'title-large-tracking': if($exclude-hardcoded-values, null, 0),
|
|
268
|
+
'title-large-weight': map.get($deps, 'md-ref-typeface', 'weight-regular'),
|
|
269
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
270
|
+
// Tokens md.sys.typescale.title-medium.tracking cannot be represented in the "font"
|
|
271
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
272
|
+
'title-medium':
|
|
273
|
+
if(
|
|
274
|
+
$exclude-hardcoded-values,
|
|
275
|
+
null,
|
|
276
|
+
map.get($deps, 'md-ref-typeface', 'weight-medium')
|
|
277
|
+
if($exclude-hardcoded-values, null, 1rem) #{'/'} if(
|
|
278
|
+
$exclude-hardcoded-values,
|
|
279
|
+
null,
|
|
280
|
+
1.5rem
|
|
281
|
+
) map.get($deps, 'md-ref-typeface', 'plain')
|
|
282
|
+
),
|
|
283
|
+
'title-medium-font': map.get($deps, 'md-ref-typeface', 'plain'),
|
|
284
|
+
'title-medium-line-height': if($exclude-hardcoded-values, null, 1.5rem),
|
|
285
|
+
'title-medium-size': if($exclude-hardcoded-values, null, 1rem),
|
|
286
|
+
'title-medium-tracking': if($exclude-hardcoded-values, null, 0.009rem),
|
|
287
|
+
'title-medium-weight': map.get($deps, 'md-ref-typeface', 'weight-medium'),
|
|
288
|
+
// Warning: risk of reduced fidelity from using this composite typography token.
|
|
289
|
+
// Tokens md.sys.typescale.title-small.tracking cannot be represented in the "font"
|
|
290
|
+
// property shorthand. Consider using the discrete properties instead.
|
|
291
|
+
'title-small':
|
|
292
|
+
if(
|
|
293
|
+
$exclude-hardcoded-values,
|
|
294
|
+
null,
|
|
295
|
+
map.get($deps, 'md-ref-typeface', 'weight-medium')
|
|
296
|
+
if($exclude-hardcoded-values, null, 0.875rem) #{'/'} if(
|
|
297
|
+
$exclude-hardcoded-values,
|
|
298
|
+
null,
|
|
299
|
+
1.25rem
|
|
300
|
+
) map.get($deps, 'md-ref-typeface', 'plain')
|
|
301
|
+
),
|
|
302
|
+
'title-small-font': map.get($deps, 'md-ref-typeface', 'plain'),
|
|
303
|
+
'title-small-line-height': if($exclude-hardcoded-values, null, 1.25rem),
|
|
304
|
+
'title-small-size': if($exclude-hardcoded-values, null, 0.875rem),
|
|
305
|
+
'title-small-tracking': if($exclude-hardcoded-values, null, 0.006rem),
|
|
306
|
+
'title-small-weight': map.get($deps, 'md-ref-typeface', 'weight-medium')
|
|
307
|
+
);
|
|
308
|
+
}
|
|
@@ -11,20 +11,30 @@ $prefix: (mtx, alert);
|
|
|
11
11
|
/// @param {Map} $token-slots Possible token slots
|
|
12
12
|
/// @return {Map} A set of custom tokens for the mat-badge
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
|
+
$is-dark: map.get($systems, md-sys-type) == dark;
|
|
15
|
+
|
|
14
16
|
$tokens: (
|
|
15
17
|
container-shape: map.get($systems, md-sys-shape, corner-small),
|
|
16
18
|
|
|
17
|
-
outline-color:
|
|
19
|
+
outline-color: map.get($systems, md-sys-color, outline-variant),
|
|
18
20
|
background-color: map.get($systems, md-sys-color, surface-container),
|
|
19
21
|
text-color: map.get($systems, md-sys-color, on-surface),
|
|
20
|
-
|
|
21
|
-
info-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
22
|
+
|
|
23
|
+
info-outline-color: map.get(mat.$azure-palette, if($is-dark, 40, 80)),
|
|
24
|
+
info-background-color: map.get(mat.$azure-palette, if($is-dark, 20, 90)),
|
|
25
|
+
info-text-color: map.get(mat.$azure-palette, if($is-dark, 90, 20)),
|
|
26
|
+
|
|
27
|
+
success-outline-color: map.get(mat.$green-palette, if($is-dark, 40, 80)),
|
|
28
|
+
success-background-color: map.get(mat.$green-palette, if($is-dark, 20, 95)),
|
|
29
|
+
success-text-color: map.get(mat.$green-palette, if($is-dark, 95, 20)),
|
|
30
|
+
|
|
31
|
+
warning-outline-color: map.get(mat.$yellow-palette, if($is-dark, 40, 80)),
|
|
32
|
+
warning-background-color: map.get(mat.$yellow-palette, if($is-dark, 20, 98)),
|
|
33
|
+
warning-text-color: map.get(mat.$yellow-palette, if($is-dark, 98, 20)),
|
|
34
|
+
|
|
35
|
+
danger-outline-color: map.get(mat.$red-palette, if($is-dark, 40, 80)),
|
|
36
|
+
danger-background-color: map.get(mat.$red-palette, if($is-dark, 20, 90)),
|
|
37
|
+
danger-text-color: map.get(mat.$red-palette, if($is-dark, 90, 20)),
|
|
28
38
|
);
|
|
29
39
|
|
|
30
40
|
@return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use '@material/elevation' as mdc-elevation;
|
|
4
3
|
@use '../../token-utils';
|
|
4
|
+
@use '../../../style/elevation';
|
|
5
5
|
|
|
6
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
7
|
$prefix: (mtx, datetimepicker);
|
|
@@ -70,8 +70,8 @@ $prefix: (mtx, datetimepicker);
|
|
|
70
70
|
time-ampm-selected-state-text-color: map.get($systems, md-sys-color, on-tertiary-container),
|
|
71
71
|
time-ampm-selected-state-background-color: map.get($systems, md-sys-color, tertiary-container),
|
|
72
72
|
|
|
73
|
-
container-elevation-shadow: token-utils.hardcode(
|
|
74
|
-
container-touch-elevation-shadow: token-utils.hardcode(
|
|
73
|
+
container-elevation-shadow: token-utils.hardcode(elevation.get-box-shadow(0), $exclude-hardcoded),
|
|
74
|
+
container-touch-elevation-shadow: token-utils.hardcode(elevation.get-box-shadow(0), $exclude-hardcoded),
|
|
75
75
|
container-shape: map.get($systems, md-sys-shape, corner-large),
|
|
76
76
|
container-touch-shape: map.get($systems, md-sys-shape, corner-extra-large),
|
|
77
77
|
selector-container-shape: map.get($systems, md-sys-shape, corner-small),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '
|
|
2
|
+
@use '../../../style/elevation';
|
|
3
3
|
@use '../../token-utils';
|
|
4
4
|
|
|
5
5
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
@@ -13,7 +13,7 @@ $prefix: (mtx, drawer);
|
|
|
13
13
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
14
14
|
$tokens: (
|
|
15
15
|
container-shape: map.get($systems, md-sys-shape, corner-large),
|
|
16
|
-
container-elevation-shadow: token-utils.hardcode(
|
|
16
|
+
container-elevation-shadow: token-utils.hardcode(elevation.get-box-shadow(2), $exclude-hardcoded),
|
|
17
17
|
container-background-color: map.get($systems, md-sys-color, surface),
|
|
18
18
|
container-text-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
19
19
|
);
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
|
-
@use '@material/elevation' as mdc-elevation;
|
|
3
2
|
@use '../../token-utils';
|
|
4
3
|
|
|
5
4
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
@@ -18,7 +17,6 @@ $prefix: (mtx, grid);
|
|
|
18
17
|
outline-color: map.get($systems, md-sys-color, outline-variant),
|
|
19
18
|
column-menu-text-color: map.get($systems, md-sys-color, on-surface-variant),
|
|
20
19
|
column-menu-divider-color: map.get($systems, md-sys-color, outline-variant),
|
|
21
|
-
column-menu-elevation-shadow: token-utils.hardcode(mdc-elevation.elevation-box-shadow(2), $exclude-hardcoded),
|
|
22
20
|
table-footer-background-color: map.get($systems, md-sys-color, surface-container),
|
|
23
21
|
table-row-striped-background-color: map.get($systems, md-sys-color, surface-container),
|
|
24
22
|
table-row-hover-background-color: map.get($systems, md-sys-color, secondary-container),
|
|
@@ -16,6 +16,9 @@ $prefix: (mtx, popover);
|
|
|
16
16
|
outline-color: map.get($systems, md-sys-color, surface-container),
|
|
17
17
|
background-color: map.get($systems, md-sys-color, surface-container),
|
|
18
18
|
text-color: map.get($systems, md-sys-color, on-surface),
|
|
19
|
+
// Note that this uses a value, rather than a computed box-shadow, because we use
|
|
20
|
+
// the value at runtime to determine which shadow to set based on the popover's depth.
|
|
21
|
+
base-elevation-level: token-utils.hardcode(2, $exclude-hardcoded),
|
|
19
22
|
);
|
|
20
23
|
|
|
21
24
|
@return token-utils.namespace-tokens($prefix, $tokens, $token-slots);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use '@material/elevation' as mdc-elevation;
|
|
4
3
|
@use '../../token-utils';
|
|
4
|
+
@use '../../../style/elevation';
|
|
5
5
|
|
|
6
6
|
// The prefix used to generate the fully qualified name for tokens in this file.
|
|
7
7
|
$prefix: (mtx, select);
|
|
@@ -14,7 +14,7 @@ $prefix: (mtx, select);
|
|
|
14
14
|
@function get-tokens($systems, $exclude-hardcoded, $token-slots) {
|
|
15
15
|
$tokens: ((
|
|
16
16
|
container-shape: map.get($systems, md-sys-shape, corner-extra-small),
|
|
17
|
-
container-elevation-shadow: token-utils.hardcode(
|
|
17
|
+
container-elevation-shadow: token-utils.hardcode(elevation.get-box-shadow(2), $exclude-hardcoded),
|
|
18
18
|
|
|
19
19
|
container-text-color: map.get($systems, md-sys-color, on-surface),
|
|
20
20
|
placeholder-text-color: mat.private-safe-color-change(
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
|
-
@use '
|
|
2
|
+
@use '../m2/typography' as m2-typography;
|
|
3
3
|
@use '../../alert/alert-theme';
|
|
4
4
|
@use '../../button/button-theme';
|
|
5
5
|
@use '../../colorpicker/colorpicker-theme';
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
@mixin all-component-typographies($theme: null) {
|
|
18
18
|
// If no actual color configuration has been specified, create a default one.
|
|
19
19
|
@if not mat.theme-has($theme, typography) {
|
|
20
|
-
$theme: typography.define-typography-config();
|
|
20
|
+
$theme: m2-typography.define-typography-config();
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
@include alert-theme.typography($theme);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentType, Portal } from '@angular/cdk/portal';
|
|
1
|
+
import { ComponentType, Portal, TemplatePortal } from '@angular/cdk/portal';
|
|
2
2
|
import { AfterContentInit, ChangeDetectorRef, ElementRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
|
|
3
3
|
import { DatetimeAdapter, MtxDatetimeFormats } from '@ng-matero/extensions/core';
|
|
4
4
|
import { MtxClockView } from './clock';
|
|
@@ -30,6 +30,8 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
|
|
|
30
30
|
preventSameDateTimeSelection: boolean;
|
|
31
31
|
/** Input for custom header component */
|
|
32
32
|
headerComponent: ComponentType<any>;
|
|
33
|
+
/** Input for action buttons. */
|
|
34
|
+
actionsPortal: TemplatePortal | null;
|
|
33
35
|
/** Emits when the currently selected date changes. */
|
|
34
36
|
selectedChange: EventEmitter<D>;
|
|
35
37
|
/** Emits when the view has been changed. */
|
|
@@ -146,7 +148,7 @@ export declare class MtxCalendar<D> implements AfterContentInit, OnDestroy {
|
|
|
146
148
|
private calendarState;
|
|
147
149
|
private _2digit;
|
|
148
150
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxCalendar<any>, [null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
149
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendar<any>, "mtx-calendar", ["mtxCalendar"], { "multiYearSelector": { "alias": "multiYearSelector"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "timeInterval": { "alias": "timeInterval"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "preventSameDateTimeSelection": { "alias": "preventSameDateTimeSelection"; "required": false; }; "headerComponent": { "alias": "headerComponent"; "required": false; }; "type": { "alias": "type"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "timeInput": { "alias": "timeInput"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "selectedChange": "selectedChange"; "viewChanged": "viewChanged"; "_userSelection": "_userSelection"; }, never, never, true, never>;
|
|
151
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxCalendar<any>, "mtx-calendar", ["mtxCalendar"], { "multiYearSelector": { "alias": "multiYearSelector"; "required": false; }; "twelvehour": { "alias": "twelvehour"; "required": false; }; "startView": { "alias": "startView"; "required": false; }; "timeInterval": { "alias": "timeInterval"; "required": false; }; "dateFilter": { "alias": "dateFilter"; "required": false; }; "preventSameDateTimeSelection": { "alias": "preventSameDateTimeSelection"; "required": false; }; "headerComponent": { "alias": "headerComponent"; "required": false; }; "actionsPortal": { "alias": "actionsPortal"; "required": false; }; "type": { "alias": "type"; "required": false; }; "startAt": { "alias": "startAt"; "required": false; }; "timeInput": { "alias": "timeInput"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "minDate": { "alias": "minDate"; "required": false; }; "maxDate": { "alias": "maxDate"; "required": false; }; }, { "selectedChange": "selectedChange"; "viewChanged": "viewChanged"; "_userSelection": "_userSelection"; }, never, never, true, never>;
|
|
150
152
|
static ngAcceptInputType_multiYearSelector: unknown;
|
|
151
153
|
static ngAcceptInputType_twelvehour: unknown;
|
|
152
154
|
static ngAcceptInputType_timeInput: unknown;
|
|
@@ -86,6 +86,42 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
+
|
|
90
|
+
.mtx-datetimepicker-content-container-with-actions .mtx-calendar .mtx-calendar-header {
|
|
91
|
+
border-bottom-left-radius: 0;
|
|
92
|
+
border-bottom-right-radius: 0;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
@mixin landscape-actions-placeholder {
|
|
97
|
+
.mtx-datetimepicker-actions::before {
|
|
98
|
+
position: absolute;
|
|
99
|
+
top: 0;
|
|
100
|
+
left: 0;
|
|
101
|
+
box-sizing: border-box;
|
|
102
|
+
width: $landscape-calendar-header-width;
|
|
103
|
+
height: 100%;
|
|
104
|
+
content: '';
|
|
105
|
+
|
|
106
|
+
@include token-utils.use-tokens($_tokens...) {
|
|
107
|
+
$border-color: token-utils.get-token-variable(calendar-header-divider-color);
|
|
108
|
+
|
|
109
|
+
border-right: 1px solid var($border-color);
|
|
110
|
+
|
|
111
|
+
@include token-utils.create-token-slot(background-color, calendar-header-background-color);
|
|
112
|
+
@include token-utils.create-token-slot(border-bottom-left-radius, container-shape);
|
|
113
|
+
|
|
114
|
+
[dir='rtl'] & {
|
|
115
|
+
left: auto;
|
|
116
|
+
right: 0;
|
|
117
|
+
border-right-width: 0;
|
|
118
|
+
border-left: 1px solid var($border-color);
|
|
119
|
+
border-bottom-left-radius: 0;
|
|
120
|
+
|
|
121
|
+
@include token-utils.create-token-slot(border-bottom-right-radius, container-shape);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
}
|
|
89
125
|
}
|
|
90
126
|
|
|
91
127
|
.mtx-calendar {
|
|
@@ -190,11 +226,13 @@ $_tokens: tokens-mtx-datetimepicker.$prefix, tokens-mtx-datetimepicker.get-token
|
|
|
190
226
|
|
|
191
227
|
[mode='landscape'] {
|
|
192
228
|
@include landscape-calendar-header;
|
|
229
|
+
@include landscape-actions-placeholder;
|
|
193
230
|
}
|
|
194
231
|
|
|
195
232
|
@media all and (orientation: landscape) {
|
|
196
233
|
[mode='auto'] {
|
|
197
234
|
@include landscape-calendar-header;
|
|
235
|
+
@include landscape-actions-placeholder;
|
|
198
236
|
}
|
|
199
237
|
}
|
|
200
238
|
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { AfterViewInit, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
|
+
import { MtxDatetimepicker } from './datetimepicker';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class MtxDatetimepickerApply<D> {
|
|
5
|
+
_datetimepicker: MtxDatetimepicker<D>;
|
|
6
|
+
constructor(_datetimepicker: MtxDatetimepicker<D>);
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerApply<any>, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerApply<any>, "[mtxDatetimepickerApply]", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
export declare class MtxDatetimepickerCancel<D> {
|
|
11
|
+
_datetimepicker: MtxDatetimepicker<D>;
|
|
12
|
+
constructor(_datetimepicker: MtxDatetimepicker<D>);
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerCancel<any>, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerCancel<any>, "[mtxDatetimepickerCancel]", never, {}, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
16
|
+
export declare class MtxDatetimepickerClear<D> {
|
|
17
|
+
_datetimepicker: MtxDatetimepicker<D>;
|
|
18
|
+
constructor(_datetimepicker: MtxDatetimepicker<D>);
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerClear<any>, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxDatetimepickerClear<any>, "[mtxDatetimepickerClear]", never, {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
export declare class MtxDatetimepickerActions<D> implements AfterViewInit, OnDestroy {
|
|
23
|
+
private _datetimepicker;
|
|
24
|
+
private _viewContainerRef;
|
|
25
|
+
_template: TemplateRef<unknown>;
|
|
26
|
+
private _portal;
|
|
27
|
+
constructor(_datetimepicker: MtxDatetimepicker<D>, _viewContainerRef: ViewContainerRef);
|
|
28
|
+
ngAfterViewInit(): void;
|
|
29
|
+
ngOnDestroy(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxDatetimepickerActions<any>, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxDatetimepickerActions<any>, "mtx-datetimepicker-actions", never, {}, {}, never, ["*"], true, never>;
|
|
32
|
+
}
|