@ng-matero/extensions 18.4.1 → 19.0.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/_index.scss +3 -1
- package/alert/_alert-theme.scss +19 -8
- package/alert/alert.d.ts +1 -2
- package/button/button-loading.d.ts +1 -2
- package/checkbox-group/checkbox-group.d.ts +12 -4
- package/colorpicker/_colorpicker-theme.scss +19 -8
- package/colorpicker/colorpicker-input.d.ts +1 -3
- package/colorpicker/colorpicker-toggle.d.ts +3 -3
- package/colorpicker/colorpicker.d.ts +4 -7
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +2 -1
- package/column-resize/column-resize-directives/column-resize.d.ts +2 -1
- package/column-resize/column-resize-notifier.d.ts +0 -1
- package/column-resize/column-resize.d.ts +1 -1
- package/column-resize/event-dispatcher.d.ts +0 -9
- package/column-resize/overlay-handle.d.ts +1 -1
- package/column-resize/resizable.d.ts +1 -1
- package/column-resize/resize-strategy.d.ts +4 -4
- package/core/datetime/datetime-adapter.d.ts +1 -2
- package/core/datetime/native-datetime-adapter.d.ts +3 -3
- package/core/style/_button-common.scss +18 -0
- package/core/theming/_config-validation.scss +4 -4
- package/core/theming/_definition.scss +12 -2
- package/core/theming/prebuilt/azure-blue.scss +10 -22
- package/core/theming/prebuilt/cyan-orange.scss +10 -22
- package/core/theming/prebuilt/magenta-violet.scss +10 -22
- package/core/theming/prebuilt/rose-red.scss +10 -22
- package/core/tokens/_m3-system.scss +273 -0
- package/core/tokens/_m3-tokens.scss +8 -151
- package/core/tokens/_token-utils.scss +102 -43
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m3/definitions/_index.scss +1 -0
- package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +51 -0
- package/core/tokens/m3/index.scss +2 -0
- package/core/tokens/m3/mdc/_plain-tooltip.scss +15 -0
- package/core/tokens/m3/mtx/_alert.scss +14 -14
- package/core/tokens/m3/mtx/_colorpicker.scss +2 -2
- package/core/tokens/m3/mtx/_datetimepicker.scss +2 -2
- package/core/tokens/m3/mtx/_drawer.scss +2 -2
- package/core/tokens/m3/mtx/_grid.scss +2 -2
- package/core/tokens/m3/mtx/_loader.scss +2 -2
- package/core/tokens/m3/mtx/_popover.scss +2 -2
- package/core/tokens/m3/mtx/_progress.scss +2 -2
- package/core/tokens/m3/mtx/_select.scss +2 -2
- package/core/tokens/m3/mtx/_split.scss +2 -2
- package/datetimepicker/_datetimepicker-theme.scss +23 -10
- package/datetimepicker/calendar-body.d.ts +26 -4
- package/datetimepicker/calendar-body.scss +58 -9
- package/datetimepicker/calendar.d.ts +31 -31
- package/datetimepicker/clock.d.ts +11 -5
- package/datetimepicker/datetimepicker-actions.d.ts +9 -5
- package/datetimepicker/datetimepicker-content.scss +15 -0
- package/datetimepicker/datetimepicker-input.d.ts +4 -5
- package/datetimepicker/datetimepicker-module.d.ts +2 -2
- package/datetimepicker/datetimepicker-toggle.d.ts +4 -3
- package/datetimepicker/datetimepicker.d.ts +12 -8
- package/datetimepicker/month-view.d.ts +22 -7
- package/datetimepicker/multi-year-view.d.ts +20 -20
- package/datetimepicker/public-api.d.ts +2 -2
- package/datetimepicker/{time.d.ts → time-view.d.ts} +21 -9
- package/datetimepicker/{time.scss → time-view.scss} +1 -1
- package/datetimepicker/year-view.d.ts +21 -11
- package/dialog/dialog-container.d.ts +1 -2
- package/dialog/dialog.d.ts +0 -1
- package/drawer/_drawer-theme.scss +19 -8
- package/drawer/drawer-container.d.ts +2 -5
- package/drawer/drawer.d.ts +3 -5
- package/fesm2022/mtxAlert.mjs +15 -15
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +13 -14
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +51 -31
- package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2022/mtxColorpicker.mjs +91 -109
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +79 -96
- package/fesm2022/mtxColumnResize.mjs.map +1 -1
- package/fesm2022/mtxCore.mjs +31 -36
- package/fesm2022/mtxCore.mjs.map +1 -1
- package/fesm2022/mtxDatetimepicker.mjs +1181 -1093
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +30 -41
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +36 -52
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +168 -204
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +12 -12
- package/fesm2022/mtxLoader.mjs.map +1 -1
- package/fesm2022/mtxPhotoviewer.mjs +11 -12
- package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
- package/fesm2022/mtxPopover.mjs +106 -119
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +8 -8
- package/fesm2022/mtxProgress.mjs.map +1 -1
- package/fesm2022/mtxSelect.mjs +157 -169
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +39 -40
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +105 -91
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +23 -10
- package/grid/cell.d.ts +1 -4
- package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -1
- package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -1
- package/grid/column-resize/overlay-handle.d.ts +1 -2
- package/grid/column-resize/resizable-directives/resizable.d.ts +2 -3
- package/grid/column-resize/resize-strategy.d.ts +2 -4
- package/grid/grid-pipes.d.ts +0 -2
- package/grid/grid.d.ts +5 -5
- package/grid/grid.scss +5 -6
- package/loader/_loader-theme.scss +19 -8
- package/loader/loader.d.ts +0 -2
- package/package.json +11 -47
- package/photoviewer/photoviewer.d.ts +1 -2
- package/popover/_popover-theme.scss +19 -8
- package/popover/popover-content.d.ts +1 -1
- package/popover/popover-target.d.ts +1 -2
- package/popover/popover-trigger.d.ts +5 -6
- package/popover/popover.d.ts +1 -2
- 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/progress/_progress-theme.scss +23 -10
- package/select/_select-theme.scss +23 -10
- package/select/option.d.ts +0 -1
- package/select/select-intl.d.ts +2 -4
- package/select/select.d.ts +8 -7
- package/select/select.scss +3 -3
- package/select/templates.d.ts +0 -12
- package/split/_split-theme.scss +19 -8
- package/split/split-pane.d.ts +3 -4
- package/split/split.d.ts +4 -4
- package/split/split.scss +1 -1
- package/tooltip/_tooltip-theme.scss +11 -4
- package/tooltip/tooltip.d.ts +17 -9
- package/tooltip/tooltip.scss +8 -3
- package/esm2022/alert/alert-module.mjs +0 -17
- package/esm2022/alert/alert.mjs +0 -46
- package/esm2022/alert/mtxAlert.mjs +0 -5
- package/esm2022/alert/public-api.mjs +0 -3
- package/esm2022/button/button-loading.mjs +0 -66
- package/esm2022/button/button-module.mjs +0 -19
- package/esm2022/button/mtxButton.mjs +0 -5
- package/esm2022/button/public-api.mjs +0 -3
- package/esm2022/checkbox-group/checkbox-group-module.mjs +0 -20
- package/esm2022/checkbox-group/checkbox-group.mjs +0 -222
- package/esm2022/checkbox-group/interfaces.mjs +0 -2
- package/esm2022/checkbox-group/mtxCheckboxGroup.mjs +0 -5
- package/esm2022/checkbox-group/public-api.mjs +0 -4
- package/esm2022/colorpicker/colorpicker-animations.mjs +0 -16
- package/esm2022/colorpicker/colorpicker-input.mjs +0 -228
- package/esm2022/colorpicker/colorpicker-module.mjs +0 -64
- package/esm2022/colorpicker/colorpicker-toggle.mjs +0 -102
- package/esm2022/colorpicker/colorpicker.mjs +0 -363
- package/esm2022/colorpicker/mtxColorpicker.mjs +0 -5
- package/esm2022/colorpicker/public-api.mjs +0 -6
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +0 -40
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +0 -40
- package/esm2022/column-resize/column-resize-directives/constants.mjs +0 -21
- package/esm2022/column-resize/column-resize-module.mjs +0 -28
- package/esm2022/column-resize/column-resize-notifier.mjs +0 -52
- package/esm2022/column-resize/column-resize.mjs +0 -82
- package/esm2022/column-resize/column-size-store.mjs +0 -20
- package/esm2022/column-resize/event-dispatcher.mjs +0 -70
- package/esm2022/column-resize/mtxColumnResize.mjs +0 -5
- package/esm2022/column-resize/overlay-handle.mjs +0 -146
- package/esm2022/column-resize/polyfill.mjs +0 -19
- package/esm2022/column-resize/public-api.mjs +0 -13
- package/esm2022/column-resize/resizable.mjs +0 -199
- package/esm2022/column-resize/resize-ref.mjs +0 -17
- package/esm2022/column-resize/resize-strategy.mjs +0 -238
- package/esm2022/column-resize/selectors.mjs +0 -13
- package/esm2022/core/datetime/datetime-adapter.mjs +0 -132
- package/esm2022/core/datetime/datetime-formats.mjs +0 -3
- package/esm2022/core/datetime/datetime.module.mjs +0 -38
- package/esm2022/core/datetime/index.mjs +0 -6
- package/esm2022/core/datetime/native-datetime-adapter.mjs +0 -138
- package/esm2022/core/datetime/native-datetime-formats.mjs +0 -20
- package/esm2022/core/mtxCore.mjs +0 -5
- package/esm2022/core/pipes/index.mjs +0 -4
- package/esm2022/core/pipes/is-template-ref.pipe.mjs +0 -14
- package/esm2022/core/pipes/pipes.module.mjs +0 -18
- package/esm2022/core/pipes/to-observable.pipe.mjs +0 -15
- package/esm2022/core/public-api.mjs +0 -3
- package/esm2022/datetimepicker/calendar-body.mjs +0 -77
- package/esm2022/datetimepicker/calendar.mjs +0 -661
- package/esm2022/datetimepicker/clock.mjs +0 -362
- package/esm2022/datetimepicker/datetimepicker-actions.mjs +0 -88
- package/esm2022/datetimepicker/datetimepicker-animations.mjs +0 -44
- package/esm2022/datetimepicker/datetimepicker-errors.mjs +0 -8
- package/esm2022/datetimepicker/datetimepicker-filtertype.mjs +0 -7
- package/esm2022/datetimepicker/datetimepicker-input.mjs +0 -349
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +0 -63
- package/esm2022/datetimepicker/datetimepicker-module.mjs +0 -116
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +0 -105
- package/esm2022/datetimepicker/datetimepicker-types.mjs +0 -2
- package/esm2022/datetimepicker/datetimepicker.mjs +0 -580
- package/esm2022/datetimepicker/month-view.mjs +0 -148
- package/esm2022/datetimepicker/mtxDatetimepicker.mjs +0 -5
- package/esm2022/datetimepicker/multi-year-view.mjs +0 -215
- package/esm2022/datetimepicker/public-api.mjs +0 -17
- package/esm2022/datetimepicker/time.mjs +0 -470
- package/esm2022/datetimepicker/year-view.mjs +0 -139
- package/esm2022/dialog/dialog-config.mjs +0 -2
- package/esm2022/dialog/dialog-container.mjs +0 -43
- package/esm2022/dialog/dialog-module.mjs +0 -40
- package/esm2022/dialog/dialog.mjs +0 -75
- package/esm2022/dialog/mtxDialog.mjs +0 -5
- package/esm2022/dialog/public-api.mjs +0 -5
- package/esm2022/drawer/drawer-animations.mjs +0 -18
- package/esm2022/drawer/drawer-config.mjs +0 -35
- package/esm2022/drawer/drawer-container.mjs +0 -88
- package/esm2022/drawer/drawer-module.mjs +0 -21
- package/esm2022/drawer/drawer-ref.mjs +0 -99
- package/esm2022/drawer/drawer.mjs +0 -144
- package/esm2022/drawer/mtxDrawer.mjs +0 -5
- package/esm2022/drawer/public-api.mjs +0 -7
- package/esm2022/grid/cell.mjs +0 -132
- package/esm2022/grid/column-menu.mjs +0 -133
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +0 -38
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +0 -38
- package/esm2022/grid/column-resize/column-resize-directives/common.mjs +0 -27
- package/esm2022/grid/column-resize/column-resize-module.mjs +0 -42
- package/esm2022/grid/column-resize/index.mjs +0 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +0 -66
- package/esm2022/grid/column-resize/resizable-directives/common.mjs +0 -29
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +0 -64
- package/esm2022/grid/column-resize/resize-strategy.mjs +0 -47
- package/esm2022/grid/expansion-toggle.mjs +0 -65
- package/esm2022/grid/grid-module.mjs +0 -151
- package/esm2022/grid/grid-pipes.mjs +0 -129
- package/esm2022/grid/grid-utils.mjs +0 -56
- package/esm2022/grid/grid.mjs +0 -644
- package/esm2022/grid/interfaces.mjs +0 -2
- package/esm2022/grid/mtxGrid.mjs +0 -5
- package/esm2022/grid/public-api.mjs +0 -18
- package/esm2022/grid/selectable-cell.mjs +0 -53
- package/esm2022/loader/loader-module.mjs +0 -19
- package/esm2022/loader/loader.mjs +0 -57
- package/esm2022/loader/mtxLoader.mjs +0 -5
- package/esm2022/loader/public-api.mjs +0 -3
- package/esm2022/ng-matero-extensions.mjs +0 -5
- package/esm2022/photoviewer/mtxPhotoviewer.mjs +0 -5
- package/esm2022/photoviewer/photoviewer-module.mjs +0 -16
- package/esm2022/photoviewer/photoviewer.mjs +0 -64
- package/esm2022/photoviewer/public-api.mjs +0 -3
- package/esm2022/popover/mtxPopover.mjs +0 -5
- package/esm2022/popover/popover-animations.mjs +0 -25
- package/esm2022/popover/popover-content.mjs +0 -91
- package/esm2022/popover/popover-errors.mjs +0 -27
- package/esm2022/popover/popover-interfaces.mjs +0 -2
- package/esm2022/popover/popover-module.mjs +0 -39
- package/esm2022/popover/popover-target.mjs +0 -18
- package/esm2022/popover/popover-trigger.mjs +0 -480
- package/esm2022/popover/popover-types.mjs +0 -2
- package/esm2022/popover/popover.mjs +0 -325
- package/esm2022/popover/public-api.mjs +0 -9
- package/esm2022/progress/mtxProgress.mjs +0 -5
- package/esm2022/progress/progress-module.mjs +0 -17
- package/esm2022/progress/progress.mjs +0 -43
- package/esm2022/progress/public-api.mjs +0 -3
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/select/mtxSelect.mjs +0 -5
- package/esm2022/select/option.mjs +0 -52
- package/esm2022/select/public-api.mjs +0 -6
- package/esm2022/select/select-intl.mjs +0 -32
- package/esm2022/select/select-module.mjs +0 -89
- package/esm2022/select/select.mjs +0 -611
- package/esm2022/select/templates.mjs +0 -135
- package/esm2022/split/interfaces.mjs +0 -2
- package/esm2022/split/mtxSplit.mjs +0 -5
- package/esm2022/split/public-api.mjs +0 -6
- package/esm2022/split/split-module.mjs +0 -18
- package/esm2022/split/split-pane.mjs +0 -161
- package/esm2022/split/split.mjs +0 -634
- package/esm2022/split/utils.mjs +0 -219
- package/esm2022/tooltip/mtxTooltip.mjs +0 -5
- package/esm2022/tooltip/public-api.mjs +0 -4
- package/esm2022/tooltip/tooltip-animations.mjs +0 -17
- package/esm2022/tooltip/tooltip-module.mjs +0 -41
- package/esm2022/tooltip/tooltip.mjs +0 -915
package/_index.scss
CHANGED
|
@@ -28,7 +28,9 @@ define-density;
|
|
|
28
28
|
@forward './core/theming/color-api-backwards-compatibility' show color-variants-backwards-compatibility;
|
|
29
29
|
|
|
30
30
|
@forward './core/tokens/m2' show m2-tokens-from-theme;
|
|
31
|
-
@forward './core/tokens/m3-
|
|
31
|
+
@forward './core/tokens/m3-system' show system-level-colors,
|
|
32
|
+
system-level-typography, system-level-elevation, system-level-shape,
|
|
33
|
+
system-level-motion, system-level-state, theme, theme-overrides;
|
|
32
34
|
|
|
33
35
|
@forward './core/theming/all-theme' show all-component-themes, all-component-bases;
|
|
34
36
|
@forward './core/color/all-color' show all-component-colors;
|
package/alert/_alert-theme.scss
CHANGED
|
@@ -11,8 +11,10 @@
|
|
|
11
11
|
}
|
|
12
12
|
@else {
|
|
13
13
|
@include mat.private-current-selector-or-root() {
|
|
14
|
-
@include token-utils.create-token-values(
|
|
15
|
-
tokens-mtx-alert
|
|
14
|
+
@include token-utils.create-token-values(
|
|
15
|
+
tokens-mtx-alert.$prefix,
|
|
16
|
+
tokens-mtx-alert.get-unthemable-tokens()
|
|
17
|
+
);
|
|
16
18
|
}
|
|
17
19
|
}
|
|
18
20
|
}
|
|
@@ -23,8 +25,10 @@
|
|
|
23
25
|
}
|
|
24
26
|
@else {
|
|
25
27
|
@include mat.private-current-selector-or-root() {
|
|
26
|
-
@include token-utils.create-token-values(
|
|
27
|
-
tokens-mtx-alert
|
|
28
|
+
@include token-utils.create-token-values(
|
|
29
|
+
tokens-mtx-alert.$prefix,
|
|
30
|
+
tokens-mtx-alert.get-color-tokens($theme)
|
|
31
|
+
);
|
|
28
32
|
}
|
|
29
33
|
}
|
|
30
34
|
}
|
|
@@ -43,13 +47,20 @@
|
|
|
43
47
|
@else {}
|
|
44
48
|
}
|
|
45
49
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
(
|
|
50
|
+
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
51
|
+
@function _define-overrides() {
|
|
52
|
+
@return (
|
|
53
|
+
(
|
|
54
|
+
namespace: tokens-mtx-alert.$prefix,
|
|
55
|
+
tokens: tokens-mtx-alert.get-token-slots(),
|
|
56
|
+
),
|
|
50
57
|
);
|
|
51
58
|
}
|
|
52
59
|
|
|
60
|
+
@mixin overrides($tokens: ()) {
|
|
61
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides()...);
|
|
62
|
+
}
|
|
63
|
+
|
|
53
64
|
@mixin theme($theme) {
|
|
54
65
|
@include mat.private-check-duplicate-theme-styles($theme, 'mtx-alert') {
|
|
55
66
|
@if mat.get-theme-version($theme) == 1 {
|
package/alert/alert.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export type MtxAlertType = 'default' | 'info' | 'success' | 'warning' | 'danger';
|
|
4
4
|
export declare class MtxAlert {
|
|
@@ -12,7 +12,6 @@ export declare class MtxAlert {
|
|
|
12
12
|
elevation: number;
|
|
13
13
|
/** Event emitted when the alert closed. */
|
|
14
14
|
closed: EventEmitter<MtxAlert>;
|
|
15
|
-
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
16
15
|
_onClosed(): void;
|
|
17
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxAlert, never>;
|
|
18
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<MtxAlert, "mtx-alert", ["mtxAlert"], { "type": { "alias": "type"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "elevation": { "alias": "elevation"; "required": false; }; }, { "closed": "closed"; }, never, ["*"], true, never>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { ThemePalette } from '@angular/material/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class MatButtonLoading implements OnChanges {
|
|
@@ -9,7 +9,6 @@ export declare class MatButtonLoading implements OnChanges {
|
|
|
9
9
|
loading: boolean;
|
|
10
10
|
disabled: boolean;
|
|
11
11
|
color: ThemePalette;
|
|
12
|
-
constructor(_elementRef: ElementRef<HTMLButtonElement>, _viewContainerRef: ViewContainerRef, _renderer: Renderer2);
|
|
13
12
|
ngOnChanges(changes: SimpleChanges): void;
|
|
14
13
|
private createSpinner;
|
|
15
14
|
private destroySpinner;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
1
|
+
import { AfterViewInit, EventEmitter, OnDestroy, QueryList, TrackByFunction } from '@angular/core';
|
|
3
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
3
|
import { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';
|
|
5
4
|
import { MtxCheckboxGroupOption } from './interfaces';
|
|
@@ -14,6 +13,15 @@ export declare class MtxCheckboxGroup implements AfterViewInit, OnDestroy, Contr
|
|
|
14
13
|
private _focusMonitor;
|
|
15
14
|
private _elementRef;
|
|
16
15
|
_checkboxes: QueryList<MatCheckbox>;
|
|
16
|
+
/**
|
|
17
|
+
* Tracking function that will be used to check the differences in data changes. Used similarly
|
|
18
|
+
* to `ngFor` `trackBy` function. Optimize row operations by identifying a row based on its data
|
|
19
|
+
* relative to the function to know if a row should be added/removed/moved.
|
|
20
|
+
* Accepts a function that takes two parameters, `index` and `item`.
|
|
21
|
+
*/
|
|
22
|
+
get trackBy(): TrackByFunction<any> | undefined;
|
|
23
|
+
set trackBy(fn: TrackByFunction<any> | undefined);
|
|
24
|
+
private _trackByFn?;
|
|
17
25
|
get items(): any[];
|
|
18
26
|
set items(value: any[]);
|
|
19
27
|
private _items;
|
|
@@ -35,7 +43,6 @@ export declare class MtxCheckboxGroup implements AfterViewInit, OnDestroy, Contr
|
|
|
35
43
|
selectedItems: MtxCheckboxGroupOption[];
|
|
36
44
|
_onChange: (value: MtxCheckboxGroupOption[]) => void;
|
|
37
45
|
_onTouched: () => void;
|
|
38
|
-
constructor(_changeDetectorRef: ChangeDetectorRef, _focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>);
|
|
39
46
|
ngAfterViewInit(): void;
|
|
40
47
|
ngOnDestroy(): void;
|
|
41
48
|
/**
|
|
@@ -71,8 +78,9 @@ export declare class MtxCheckboxGroup implements AfterViewInit, OnDestroy, Contr
|
|
|
71
78
|
_updateNormalCheckboxState(e: MatCheckboxChange, index: number): void;
|
|
72
79
|
/** Handle master checkbox toggle */
|
|
73
80
|
_updateMasterCheckboxState(e: MatCheckboxChange, index: number): void;
|
|
81
|
+
_trackBy: (index: number, item: any) => any;
|
|
74
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxCheckboxGroup, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MtxCheckboxGroup, "mtx-checkbox-group", ["mtxCheckboxGroup"], { "items": { "alias": "items"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "selectAllLabel": { "alias": "selectAllLabel"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, ["_checkboxes"], never, true, never>;
|
|
83
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxCheckboxGroup, "mtx-checkbox-group", ["mtxCheckboxGroup"], { "trackBy": { "alias": "trackBy"; "required": false; }; "items": { "alias": "items"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "showSelectAll": { "alias": "showSelectAll"; "required": false; }; "selectAllLabel": { "alias": "selectAllLabel"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "change": "change"; }, ["_checkboxes"], never, true, never>;
|
|
76
84
|
static ngAcceptInputType_showSelectAll: unknown;
|
|
77
85
|
static ngAcceptInputType_disabled: unknown;
|
|
78
86
|
}
|
|
@@ -12,8 +12,10 @@
|
|
|
12
12
|
}
|
|
13
13
|
@else {
|
|
14
14
|
@include mat.private-current-selector-or-root() {
|
|
15
|
-
@include token-utils.create-token-values(
|
|
16
|
-
tokens-mtx-colorpicker
|
|
15
|
+
@include token-utils.create-token-values(
|
|
16
|
+
tokens-mtx-colorpicker.$prefix,
|
|
17
|
+
tokens-mtx-colorpicker.get-unthemable-tokens()
|
|
18
|
+
);
|
|
17
19
|
}
|
|
18
20
|
}
|
|
19
21
|
}
|
|
@@ -24,8 +26,10 @@
|
|
|
24
26
|
}
|
|
25
27
|
@else {
|
|
26
28
|
@include mat.private-current-selector-or-root() {
|
|
27
|
-
@include token-utils.create-token-values(
|
|
28
|
-
tokens-mtx-colorpicker
|
|
29
|
+
@include token-utils.create-token-values(
|
|
30
|
+
tokens-mtx-colorpicker.$prefix,
|
|
31
|
+
tokens-mtx-colorpicker.get-color-tokens($theme)
|
|
32
|
+
);
|
|
29
33
|
}
|
|
30
34
|
|
|
31
35
|
.mtx-colorpicker-toggle-active {
|
|
@@ -56,13 +60,20 @@
|
|
|
56
60
|
@else {}
|
|
57
61
|
}
|
|
58
62
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
(
|
|
63
|
+
/// Defines the tokens that will be available in the `overrides` mixin and for docs extraction.
|
|
64
|
+
@function _define-overrides() {
|
|
65
|
+
@return (
|
|
66
|
+
(
|
|
67
|
+
namespace: tokens-mtx-colorpicker.$prefix,
|
|
68
|
+
tokens: tokens-mtx-colorpicker.get-token-slots(),
|
|
69
|
+
),
|
|
63
70
|
);
|
|
64
71
|
}
|
|
65
72
|
|
|
73
|
+
@mixin overrides($tokens: ()) {
|
|
74
|
+
@include token-utils.batch-create-token-values($tokens, _define-overrides()...);
|
|
75
|
+
}
|
|
76
|
+
|
|
66
77
|
@mixin theme($theme) {
|
|
67
78
|
@include mat.private-check-duplicate-theme-styles($theme, 'mtx-colorpicker') {
|
|
68
79
|
@if mat.get-theme-version($theme) == 1 {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { AbstractControl, ControlValueAccessor, ValidationErrors } from '@angular/forms';
|
|
3
3
|
import { ThemePalette } from '@angular/material/core';
|
|
4
|
-
import { MatFormField } from '@angular/material/form-field';
|
|
5
4
|
import { MtxColorpicker } from './colorpicker';
|
|
6
5
|
import * as i0 from "@angular/core";
|
|
7
6
|
export declare class MtxColorPickerInputEvent {
|
|
@@ -53,7 +52,6 @@ export declare class MtxColorpickerInput implements ControlValueAccessor, AfterV
|
|
|
53
52
|
private _validator;
|
|
54
53
|
/** Whether the last value set on the input was valid. */
|
|
55
54
|
private _lastValueValid;
|
|
56
|
-
constructor(_elementRef: ElementRef<HTMLInputElement>, _formField: MatFormField);
|
|
57
55
|
ngAfterViewInit(): void;
|
|
58
56
|
ngOnDestroy(): void;
|
|
59
57
|
registerOnValidatorChange(fn: () => void): void;
|
|
@@ -84,7 +82,7 @@ export declare class MtxColorpickerInput implements ControlValueAccessor, AfterV
|
|
|
84
82
|
getThemePalette(): ThemePalette;
|
|
85
83
|
/** TODO: Formats a value and sets it on the input element. */
|
|
86
84
|
private _formatValue;
|
|
87
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerInput,
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerInput, never>;
|
|
88
86
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxColorpickerInput, "input[mtxColorpicker]", ["mtxColorpickerInput"], { "mtxColorpicker": { "alias": "mtxColorpicker"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "format": { "alias": "format"; "required": false; }; }, { "colorChange": "colorChange"; "colorInput": "colorInput"; }, never, never, true, never>;
|
|
89
87
|
static ngAcceptInputType_disabled: unknown;
|
|
90
88
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { AfterContentInit,
|
|
1
|
+
import { AfterContentInit, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { MatButton } from '@angular/material/button';
|
|
3
3
|
import { MtxColorpicker } from './colorpicker';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
@@ -26,13 +26,13 @@ export declare class MtxColorpickerToggle implements AfterContentInit, OnChanges
|
|
|
26
26
|
_customIcon: MtxColorpickerToggleIcon;
|
|
27
27
|
/** Underlying button element. */
|
|
28
28
|
_button: MatButton;
|
|
29
|
-
constructor(
|
|
29
|
+
constructor();
|
|
30
30
|
ngOnChanges(changes: SimpleChanges): void;
|
|
31
31
|
ngOnDestroy(): void;
|
|
32
32
|
ngAfterContentInit(): void;
|
|
33
33
|
_open(event: Event): void;
|
|
34
34
|
private _watchStateChanges;
|
|
35
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerToggle,
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerToggle, never>;
|
|
36
36
|
static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpickerToggle, "mtx-colorpicker-toggle", ["mtxColorpickerToggle"], { "picker": { "alias": "for"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; }, {}, ["_customIcon"], ["[mtxColorpickerToggleIcon]"], true, never>;
|
|
37
37
|
static ngAcceptInputType_disabled: unknown;
|
|
38
38
|
static ngAcceptInputType_disableRipple: unknown;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
2
1
|
import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
3
|
-
import {
|
|
2
|
+
import { EventEmitter, InjectionToken, OnChanges, OnDestroy, TemplateRef } from '@angular/core';
|
|
4
3
|
import { ThemePalette } from '@angular/material/core';
|
|
5
4
|
import { Subject } from 'rxjs';
|
|
6
5
|
import { ColorEvent } from 'ngx-color';
|
|
@@ -26,7 +25,6 @@ export declare class MtxColorpickerContent implements OnDestroy {
|
|
|
26
25
|
_animationState: 'enter-dropdown' | 'void';
|
|
27
26
|
/** Emits when an animation has finished. */
|
|
28
27
|
readonly _animationDone: Subject<void>;
|
|
29
|
-
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
30
28
|
_startExitAnimation(): void;
|
|
31
29
|
ngOnDestroy(): void;
|
|
32
30
|
getColorString(e: ColorEvent): string;
|
|
@@ -36,8 +34,8 @@ export declare class MtxColorpickerContent implements OnDestroy {
|
|
|
36
34
|
export declare class MtxColorpicker implements OnChanges, OnDestroy {
|
|
37
35
|
private _overlay;
|
|
38
36
|
private _viewContainerRef;
|
|
39
|
-
private _dir
|
|
40
|
-
private _document
|
|
37
|
+
private _dir?;
|
|
38
|
+
private _document?;
|
|
41
39
|
private _scrollStrategy;
|
|
42
40
|
private _inputStateChanges;
|
|
43
41
|
/** Custom colorpicker content set by the consumer. */
|
|
@@ -92,7 +90,6 @@ export declare class MtxColorpicker implements OnChanges, OnDestroy {
|
|
|
92
90
|
/** Emits new selected color when selected color changes. */
|
|
93
91
|
readonly _selectedChanged: Subject<string>;
|
|
94
92
|
private _injector;
|
|
95
|
-
constructor(_overlay: Overlay, _viewContainerRef: ViewContainerRef, scrollStrategy: any, _dir: Directionality, _document: any);
|
|
96
93
|
ngOnChanges(): void;
|
|
97
94
|
ngOnDestroy(): void;
|
|
98
95
|
/** Selects the given color. */
|
|
@@ -118,7 +115,7 @@ export declare class MtxColorpicker implements OnChanges, OnDestroy {
|
|
|
118
115
|
private _setConnectedPositions;
|
|
119
116
|
/** Gets an observable that will emit when the overlay is supposed to be closed. */
|
|
120
117
|
private _getCloseStream;
|
|
121
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpicker,
|
|
118
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpicker, never>;
|
|
122
119
|
static ɵcmp: i0.ɵɵComponentDeclaration<MtxColorpicker, "mtx-colorpicker", ["mtxColorpicker"], { "content": { "alias": "content"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "xPosition": { "alias": "xPosition"; "required": false; }; "yPosition": { "alias": "yPosition"; "required": false; }; "restoreFocus": { "alias": "restoreFocus"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; "color": { "alias": "color"; "required": false; }; "format": { "alias": "format"; "required": false; }; }, { "openedStream": "opened"; "closedStream": "closed"; }, never, never, true, never>;
|
|
123
120
|
static ngAcceptInputType_disabled: unknown;
|
|
124
121
|
static ngAcceptInputType_restoreFocus: unknown;
|
|
@@ -22,7 +22,8 @@ export declare class CdkColumnResizeFlex extends ColumnResize {
|
|
|
22
22
|
protected readonly ngZone: NgZone;
|
|
23
23
|
protected readonly notifier: ColumnResizeNotifierSource;
|
|
24
24
|
protected readonly table: CdkTable<unknown>;
|
|
25
|
-
|
|
25
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
26
|
+
constructor(...args: unknown[]);
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnResizeFlex, never>;
|
|
27
28
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnResizeFlex, "cdk-table[columnResize]", never, {}, {}, never, never, true, never>;
|
|
28
29
|
}
|
|
@@ -22,7 +22,8 @@ export declare class CdkColumnResize extends ColumnResize {
|
|
|
22
22
|
protected readonly ngZone: NgZone;
|
|
23
23
|
protected readonly notifier: ColumnResizeNotifierSource;
|
|
24
24
|
protected readonly table: CdkTable<unknown>;
|
|
25
|
-
|
|
25
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
26
|
+
constructor(...args: unknown[]);
|
|
26
27
|
static ɵfac: i0.ɵɵFactoryDeclaration<CdkColumnResize, never>;
|
|
27
28
|
static ɵdir: i0.ɵɵDirectiveDeclaration<CdkColumnResize, "table[cdk-table][columnResize]", never, {}, {}, never, never, true, never>;
|
|
28
29
|
}
|
|
@@ -41,7 +41,6 @@ export declare class ColumnResizeNotifier {
|
|
|
41
41
|
private readonly _source;
|
|
42
42
|
/** Emits whenever a column is resized. */
|
|
43
43
|
readonly resizeCompleted: Observable<ColumnSize>;
|
|
44
|
-
constructor(_source: ColumnResizeNotifierSource);
|
|
45
44
|
/** Instantly resizes the specified column. */
|
|
46
45
|
resize(columnId: string, size: number): void;
|
|
47
46
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnResizeNotifier, never>;
|
|
@@ -35,5 +35,5 @@ export declare abstract class ColumnResize implements AfterViewInit, OnDestroy {
|
|
|
35
35
|
private _listenForResizeActivity;
|
|
36
36
|
private _listenForHoverActivity;
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<ColumnResize, never>;
|
|
38
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnResize, never, never, {}, {}, never, never,
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ColumnResize, never, never, {}, {}, never, never, true, never>;
|
|
39
39
|
}
|
|
@@ -1,11 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license
|
|
3
|
-
* Copyright Google LLC All Rights Reserved.
|
|
4
|
-
*
|
|
5
|
-
* Use of this source code is governed by an MIT-style license that can be
|
|
6
|
-
* found in the LICENSE file at https://angular.io/license
|
|
7
|
-
*/
|
|
8
|
-
import { NgZone } from '@angular/core';
|
|
9
1
|
import { Observable, Subject } from 'rxjs';
|
|
10
2
|
import * as i0 from "@angular/core";
|
|
11
3
|
/** Coordinates events between the column resize directives. */
|
|
@@ -22,7 +14,6 @@ export declare class HeaderRowEventDispatcher {
|
|
|
22
14
|
* when no resize is in progress.
|
|
23
15
|
*/
|
|
24
16
|
readonly overlayHandleActiveForCell: Subject<Element | null>;
|
|
25
|
-
constructor(_ngZone: NgZone);
|
|
26
17
|
/** Distinct and shared version of headerCellHovered. */
|
|
27
18
|
readonly headerCellHoveredDistinct: Observable<Element | null>;
|
|
28
19
|
/**
|
|
@@ -39,5 +39,5 @@ export declare abstract class ResizeOverlayHandle implements AfterViewInit, OnDe
|
|
|
39
39
|
private _isLtr;
|
|
40
40
|
private _notifyResizeEnded;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResizeOverlayHandle, never>;
|
|
42
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeOverlayHandle, never, never, {}, {}, never, never,
|
|
42
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeOverlayHandle, never, never, {}, {}, never, never, true, never>;
|
|
43
43
|
}
|
|
@@ -59,5 +59,5 @@ export declare abstract class Resizable<HandleComponent extends ResizeOverlayHan
|
|
|
59
59
|
private _applyMaxWidthPx;
|
|
60
60
|
private _appendInlineHandle;
|
|
61
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<Resizable<any>, never>;
|
|
62
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<Resizable<any>, never, never, {}, {}, never, never,
|
|
62
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<Resizable<any>, never, never, {}, {}, never, never, true, never>;
|
|
63
63
|
}
|
|
@@ -40,7 +40,8 @@ export declare class TableLayoutFixedResizeStrategy extends ResizeStrategy {
|
|
|
40
40
|
protected readonly columnResize: ColumnResize;
|
|
41
41
|
protected readonly styleScheduler: _CoalescedStyleScheduler;
|
|
42
42
|
protected readonly table: CdkTable<unknown>;
|
|
43
|
-
|
|
43
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
44
|
+
constructor(...args: unknown[]);
|
|
44
45
|
applyColumnSize(_: string, columnHeader: HTMLElement, sizeInPx: number, previousSizeInPx?: number): void;
|
|
45
46
|
applyMinColumnSize(_: string, columnHeader: HTMLElement, sizeInPx: number): void;
|
|
46
47
|
applyMaxColumnSize(_: string, columnHeader: HTMLElement, sizeInPx: number): void;
|
|
@@ -57,7 +58,7 @@ export declare class CdkFlexTableResizeStrategy extends ResizeStrategy implement
|
|
|
57
58
|
protected readonly columnResize: ColumnResize;
|
|
58
59
|
protected readonly styleScheduler: _CoalescedStyleScheduler;
|
|
59
60
|
protected readonly table: CdkTable<unknown>;
|
|
60
|
-
private readonly _nonce
|
|
61
|
+
private readonly _nonce;
|
|
61
62
|
private readonly _document;
|
|
62
63
|
private readonly _columnIndexes;
|
|
63
64
|
private readonly _columnProperties;
|
|
@@ -65,7 +66,6 @@ export declare class CdkFlexTableResizeStrategy extends ResizeStrategy implement
|
|
|
65
66
|
private _indexSequence;
|
|
66
67
|
protected readonly defaultMinSize = 0;
|
|
67
68
|
protected readonly defaultMaxSize: number;
|
|
68
|
-
constructor(columnResize: ColumnResize, styleScheduler: _CoalescedStyleScheduler, table: CdkTable<unknown>, document: any, _nonce?: (string | null) | undefined);
|
|
69
69
|
applyColumnSize(cssFriendlyColumnName: string, columnHeader: HTMLElement, sizeInPx: number, previousSizeInPx?: number): void;
|
|
70
70
|
applyMinColumnSize(cssFriendlyColumnName: string, _: HTMLElement, sizeInPx: number): void;
|
|
71
71
|
applyMaxColumnSize(cssFriendlyColumnName: string, _: HTMLElement, sizeInPx: number): void;
|
|
@@ -77,7 +77,7 @@ export declare class CdkFlexTableResizeStrategy extends ResizeStrategy implement
|
|
|
77
77
|
private _getStyleSheet;
|
|
78
78
|
private _getColumnPropertiesMap;
|
|
79
79
|
private _applySizeCss;
|
|
80
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CdkFlexTableResizeStrategy,
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CdkFlexTableResizeStrategy, never>;
|
|
81
81
|
static ɵprov: i0.ɵɵInjectableDeclaration<CdkFlexTableResizeStrategy>;
|
|
82
82
|
}
|
|
83
83
|
export declare const TABLE_LAYOUT_FIXED_RESIZE_STRATEGY_PROVIDER: Provider;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DateAdapter } from '@angular/material/core';
|
|
2
2
|
export declare abstract class DatetimeAdapter<D> extends DateAdapter<D> {
|
|
3
|
-
protected _delegate: DateAdapter<D>;
|
|
4
|
-
constructor(_delegate: DateAdapter<D>);
|
|
3
|
+
protected _delegate: DateAdapter<D, any>;
|
|
5
4
|
abstract getHour(date: D): number;
|
|
6
5
|
abstract getMinute(date: D): number;
|
|
7
6
|
abstract getFirstDateOfMonth(date: D): D;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { DateAdapter } from '@angular/material/core';
|
|
2
1
|
import { DatetimeAdapter } from './datetime-adapter';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class NativeDatetimeAdapter extends DatetimeAdapter<Date> {
|
|
5
|
-
|
|
4
|
+
/** Inserted by Angular inject() migration for backwards compatibility */
|
|
5
|
+
constructor(...args: unknown[]);
|
|
6
6
|
clone(date: Date): Date;
|
|
7
7
|
getHour(date: Date): number;
|
|
8
8
|
getMinute(date: Date): number;
|
|
@@ -34,6 +34,6 @@ export declare class NativeDatetimeAdapter extends DatetimeAdapter<Date> {
|
|
|
34
34
|
private _2digit;
|
|
35
35
|
/** Creates a date but allows the month and date to overflow. */
|
|
36
36
|
private _createDateWithOverflow;
|
|
37
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NativeDatetimeAdapter,
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NativeDatetimeAdapter, never>;
|
|
38
38
|
static ɵprov: i0.ɵɵInjectableDeclaration<NativeDatetimeAdapter>;
|
|
39
39
|
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
2
|
+
|
|
3
|
+
// Mixin overriding default button styles like the gray background, the border, and the outline.
|
|
4
|
+
@mixin reset {
|
|
5
|
+
@include mat.private-user-select(none);
|
|
6
|
+
|
|
7
|
+
cursor: pointer;
|
|
8
|
+
outline: none;
|
|
9
|
+
border: none;
|
|
10
|
+
-webkit-tap-highlight-color: transparent;
|
|
11
|
+
|
|
12
|
+
// The `outline: none` from above works on all browsers, however Firefox also
|
|
13
|
+
// adds a special `focus-inner` which we have to disable explicitly. See:
|
|
14
|
+
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#Firefox
|
|
15
|
+
&::-moz-focus-inner {
|
|
16
|
+
border: 0;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
/// Validates that the given object is an M3 palette.
|
|
29
29
|
/// @param {*} $palette The object to test
|
|
30
30
|
/// @return {Boolean|null} null if it is a valid M3 palette, else true.
|
|
31
|
-
@function
|
|
31
|
+
@function validate-palette($palette) {
|
|
32
32
|
@if not meta.type-of($palette) == 'map' {
|
|
33
33
|
@return true;
|
|
34
34
|
}
|
|
@@ -99,15 +99,15 @@
|
|
|
99
99
|
);
|
|
100
100
|
}
|
|
101
101
|
@if $config and map.has-key($config, theme-type) and
|
|
102
|
-
not list.index((light, dark), map.get($config, theme-type)) {
|
|
102
|
+
not list.index((light, dark, color-scheme), map.get($config, theme-type)) {
|
|
103
103
|
@return (
|
|
104
|
-
#{'Expected $config.theme-type to be one of: light, dark. Got:'}
|
|
104
|
+
#{'Expected $config.theme-type to be one of: light, dark, color-scheme. Got:'}
|
|
105
105
|
map.get($config, theme-type)
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
108
|
@each $palette in (primary, secondary, tertiary) {
|
|
109
109
|
@if $config and map.has-key($config, $palette) {
|
|
110
|
-
$err:
|
|
110
|
+
$err: validate-palette(map.get($config, $palette));
|
|
111
111
|
@if $err {
|
|
112
112
|
@return (
|
|
113
113
|
#{'Expected $config.#{$palette} to be a valid M3 palette. Got:'}
|
|
@@ -5,6 +5,16 @@
|
|
|
5
5
|
@use '../tokens/m3-tokens';
|
|
6
6
|
@use './config-validation';
|
|
7
7
|
|
|
8
|
+
// Prefix used for component token fallback variables, e.g.
|
|
9
|
+
// `color: var(--mdc-text-button-label-text-color, var(--mat-sys-primary));`
|
|
10
|
+
$system-fallback-prefix: mat-sys;
|
|
11
|
+
|
|
12
|
+
// Default system level prefix to use when directly calling the `system-level-*` mixins.
|
|
13
|
+
// Prefix used for component token fallback variables, e.g.
|
|
14
|
+
// `color: var(--mdc-text-button-label-text-color, var(--mat-sys-primary));`
|
|
15
|
+
// TODO: Remove this variable after internal clients are migrated from "sys"
|
|
16
|
+
$system-level-prefix: mat-sys;
|
|
17
|
+
|
|
8
18
|
/// Map key used to store internals of theme config.
|
|
9
19
|
$internals: _mat-theming-internals-do-not-access;
|
|
10
20
|
/// The theme version of generated themes.
|
|
@@ -31,7 +41,7 @@ $theme-version: 1;
|
|
|
31
41
|
/// @param {Map} $config The color configuration
|
|
32
42
|
/// @return {Map} A theme object
|
|
33
43
|
@function define-colors($config: ()) {
|
|
34
|
-
|
|
44
|
+
$err: config-validation.validate-color-config($config);
|
|
35
45
|
@if $err {
|
|
36
46
|
@error $err;
|
|
37
47
|
}
|
|
@@ -39,7 +49,7 @@ $theme-version: 1;
|
|
|
39
49
|
$type: map.get($config, theme-type) or light;
|
|
40
50
|
$primary: map.get($config, primary) or palettes.$violet-palette;
|
|
41
51
|
$tertiary: map.get($config, tertiary) or $primary;
|
|
42
|
-
$system-variables-prefix: map.get($config, system-variables-prefix) or
|
|
52
|
+
$system-variables-prefix: map.get($config, system-variables-prefix) or $system-level-prefix;
|
|
43
53
|
mat.$private-use-system-color-variables: map.get($config, use-system-variables) or false;
|
|
44
54
|
|
|
45
55
|
@return (
|
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
|
-
@use '
|
|
3
|
-
@use '../color-api-backwards-compatibility';
|
|
4
|
-
@use '../all-theme';
|
|
5
|
-
|
|
6
|
-
$config: (
|
|
7
|
-
color: (
|
|
8
|
-
theme-type: light,
|
|
9
|
-
primary: mat.$azure-palette,
|
|
10
|
-
tertiary: mat.$blue-palette,
|
|
11
|
-
),
|
|
12
|
-
density: (
|
|
13
|
-
scale: 0,
|
|
14
|
-
)
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
$theme: mat.private-deep-merge-all(
|
|
18
|
-
mat.define-theme($config),
|
|
19
|
-
mtx.define-theme($config),
|
|
20
|
-
);
|
|
2
|
+
@use '../../../core/tokens/m3-system';
|
|
21
3
|
|
|
22
4
|
html {
|
|
23
|
-
@include
|
|
5
|
+
@include m3-system.theme((
|
|
6
|
+
color: (
|
|
7
|
+
theme-type: light,
|
|
8
|
+
primary: mat.$azure-palette,
|
|
9
|
+
tertiary: mat.$blue-palette,
|
|
10
|
+
),
|
|
11
|
+
typography: Roboto,
|
|
12
|
+
density: 0,
|
|
13
|
+
));
|
|
24
14
|
}
|
|
25
|
-
|
|
26
|
-
@include color-api-backwards-compatibility.color-variants-backwards-compatibility($theme);
|
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
|
-
@use '
|
|
3
|
-
@use '../color-api-backwards-compatibility';
|
|
4
|
-
@use '../all-theme';
|
|
5
|
-
|
|
6
|
-
$config: (
|
|
7
|
-
color: (
|
|
8
|
-
theme-type: dark,
|
|
9
|
-
primary: mat.$cyan-palette,
|
|
10
|
-
tertiary: mat.$orange-palette,
|
|
11
|
-
),
|
|
12
|
-
density: (
|
|
13
|
-
scale: 0,
|
|
14
|
-
)
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
$theme: mat.private-deep-merge-all(
|
|
18
|
-
mat.define-theme($config),
|
|
19
|
-
mtx.define-theme($config),
|
|
20
|
-
);
|
|
2
|
+
@use '../../../core/tokens/m3-system';
|
|
21
3
|
|
|
22
4
|
html {
|
|
23
|
-
@include
|
|
5
|
+
@include m3-system.theme((
|
|
6
|
+
color: (
|
|
7
|
+
theme-type: dark,
|
|
8
|
+
primary: mat.$cyan-palette,
|
|
9
|
+
tertiary: mat.$orange-palette,
|
|
10
|
+
),
|
|
11
|
+
typography: Roboto,
|
|
12
|
+
density: 0,
|
|
13
|
+
));
|
|
24
14
|
}
|
|
25
|
-
|
|
26
|
-
@include color-api-backwards-compatibility.color-variants-backwards-compatibility($theme);
|
|
@@ -1,26 +1,14 @@
|
|
|
1
1
|
@use '@angular/material' as mat;
|
|
2
|
-
@use '
|
|
3
|
-
@use '../color-api-backwards-compatibility';
|
|
4
|
-
@use '../all-theme';
|
|
5
|
-
|
|
6
|
-
$config: (
|
|
7
|
-
color: (
|
|
8
|
-
theme-type: dark,
|
|
9
|
-
primary: mat.$magenta-palette,
|
|
10
|
-
tertiary: mat.$violet-palette,
|
|
11
|
-
),
|
|
12
|
-
density: (
|
|
13
|
-
scale: 0,
|
|
14
|
-
)
|
|
15
|
-
);
|
|
16
|
-
|
|
17
|
-
$theme: mat.private-deep-merge-all(
|
|
18
|
-
mat.define-theme($config),
|
|
19
|
-
mtx.define-theme($config),
|
|
20
|
-
);
|
|
2
|
+
@use '../../../core/tokens/m3-system';
|
|
21
3
|
|
|
22
4
|
html {
|
|
23
|
-
@include
|
|
5
|
+
@include m3-system.theme((
|
|
6
|
+
color: (
|
|
7
|
+
theme-type: dark,
|
|
8
|
+
primary: mat.$magenta-palette,
|
|
9
|
+
tertiary: mat.$violet-palette,
|
|
10
|
+
),
|
|
11
|
+
typography: Roboto,
|
|
12
|
+
density: 0,
|
|
13
|
+
));
|
|
24
14
|
}
|
|
25
|
-
|
|
26
|
-
@include color-api-backwards-compatibility.color-variants-backwards-compatibility($theme);
|