@ng-matero/extensions 16.3.0 → 17.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +2 -1
- package/alert/_alert-theme.scss +54 -24
- package/alert/alert.d.ts +3 -6
- package/alert/alert.scss +3 -3
- package/button/_button-theme.scss +6 -4
- package/button/button-loading.d.ts +5 -10
- package/button/button-module.d.ts +5 -5
- package/checkbox-group/checkbox-group.d.ts +4 -9
- package/colorpicker/_colorpicker-theme.scss +62 -34
- package/colorpicker/colorpicker-input.d.ts +1 -3
- package/colorpicker/colorpicker-toggle.d.ts +2 -3
- package/colorpicker/colorpicker.d.ts +5 -6
- package/core/color/_all-color.scss +7 -18
- package/core/density/_all-density.scss +28 -14
- package/core/mdc-helpers/_mdc-helpers.scss +27 -238
- package/core/style/_sass-utils.scss +13 -1
- package/core/style/_validation.scss +43 -0
- package/core/theming/_all-theme.scss +32 -17
- package/core/theming/_inspection.scss +303 -0
- package/core/theming/_m2-inspection.scss +266 -0
- package/core/tokens/_token-utils.scss +4 -5
- package/core/tokens/m2/mdc/_plain-tooltip.scss +21 -29
- package/core/tokens/m2/mtx/_alert.scss +14 -15
- package/core/tokens/m2/mtx/_colorpicker.scss +8 -11
- package/core/tokens/m2/mtx/_datetimepicker.scss +38 -47
- package/core/tokens/m2/mtx/_drawer.scss +9 -10
- package/core/tokens/m2/mtx/_grid.scss +34 -22
- package/core/tokens/m2/mtx/_loader.scss +6 -6
- package/core/tokens/m2/mtx/_popover.scss +10 -11
- package/core/tokens/m2/mtx/_progress.scss +18 -17
- package/core/tokens/m2/mtx/_select.scss +65 -25
- package/core/tokens/m2/mtx/_split.scss +8 -11
- package/core/typography/_all-typography.scss +40 -0
- package/core/typography/_typography.scss +1 -579
- package/datetimepicker/_datetimepicker-theme.scss +75 -48
- package/datetimepicker/calendar.d.ts +7 -14
- package/datetimepicker/calendar.scss +16 -4
- package/datetimepicker/clock.d.ts +1 -2
- package/datetimepicker/datetimepicker-content.scss +3 -3
- package/datetimepicker/datetimepicker-input.d.ts +1 -2
- package/datetimepicker/datetimepicker-toggle.d.ts +2 -3
- package/datetimepicker/datetimepicker.d.ts +15 -26
- package/datetimepicker/month-view.d.ts +1 -1
- package/datetimepicker/multi-year-view.d.ts +1 -1
- package/datetimepicker/time.d.ts +3 -5
- package/datetimepicker/time.scss +2 -2
- package/datetimepicker/year-view.d.ts +1 -1
- package/drawer/_drawer-theme.scss +55 -22
- package/drawer/drawer-container.scss +25 -4
- package/esm2022/alert/alert-module.mjs +4 -4
- package/esm2022/alert/alert.mjs +11 -18
- package/esm2022/button/button-loading.mjs +13 -23
- package/esm2022/button/button-module.mjs +6 -7
- package/esm2022/checkbox-group/checkbox-group-module.mjs +4 -4
- package/esm2022/checkbox-group/checkbox-group.mjs +18 -29
- package/esm2022/colorpicker/colorpicker-input.mjs +13 -14
- package/esm2022/colorpicker/colorpicker-module.mjs +4 -4
- package/esm2022/colorpicker/colorpicker-toggle.mjs +18 -18
- package/esm2022/colorpicker/colorpicker.mjs +31 -36
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2022/column-resize/column-resize-module.mjs +4 -4
- package/esm2022/column-resize/column-resize-notifier.mjs +7 -7
- package/esm2022/column-resize/column-resize.mjs +3 -3
- package/esm2022/column-resize/column-size-store.mjs +3 -3
- package/esm2022/column-resize/event-dispatcher.mjs +4 -4
- package/esm2022/column-resize/overlay-handle.mjs +3 -3
- package/esm2022/column-resize/resizable.mjs +3 -3
- package/esm2022/column-resize/resize-strategy.mjs +13 -13
- package/esm2022/core/datetime/datetime.module.mjs +8 -8
- package/esm2022/core/datetime/native-datetime-adapter.mjs +5 -5
- package/esm2022/core/pipes/is-template-ref.pipe.mjs +3 -3
- package/esm2022/core/pipes/pipes.module.mjs +4 -4
- package/esm2022/core/pipes/to-observable.pipe.mjs +3 -3
- package/esm2022/datetimepicker/calendar-body.mjs +5 -6
- package/esm2022/datetimepicker/calendar.mjs +30 -47
- package/esm2022/datetimepicker/clock.mjs +10 -9
- package/esm2022/datetimepicker/datetimepicker-input.mjs +14 -15
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-module.mjs +4 -4
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +18 -18
- package/esm2022/datetimepicker/datetimepicker.mjs +57 -80
- package/esm2022/datetimepicker/month-view.mjs +8 -9
- package/esm2022/datetimepicker/multi-year-view.mjs +8 -8
- package/esm2022/datetimepicker/time.mjs +18 -24
- package/esm2022/datetimepicker/year-view.mjs +8 -8
- package/esm2022/dialog/dialog-container.mjs +7 -7
- package/esm2022/dialog/dialog-module.mjs +4 -4
- package/esm2022/dialog/dialog.mjs +4 -4
- package/esm2022/drawer/drawer-container.mjs +7 -7
- package/esm2022/drawer/drawer-module.mjs +4 -4
- package/esm2022/drawer/drawer.mjs +5 -5
- package/esm2022/grid/cell.mjs +6 -6
- package/esm2022/grid/column-menu.mjs +5 -5
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +4 -4
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +4 -4
- package/esm2022/grid/column-resize/column-resize-module.mjs +8 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +6 -6
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +6 -6
- package/esm2022/grid/column-resize/resize-strategy.mjs +5 -5
- package/esm2022/grid/expansion-toggle.mjs +5 -5
- package/esm2022/grid/grid-module.mjs +4 -4
- package/esm2022/grid/grid-pipes.mjs +22 -22
- package/esm2022/grid/grid-utils.mjs +4 -4
- package/esm2022/grid/grid.mjs +76 -44
- package/esm2022/loader/loader-module.mjs +4 -4
- package/esm2022/loader/loader.mjs +17 -29
- package/esm2022/photoviewer/photoviewer-module.mjs +4 -4
- package/esm2022/photoviewer/photoviewer.mjs +7 -7
- package/esm2022/popover/popover-content.mjs +8 -8
- package/esm2022/popover/popover-module.mjs +4 -4
- package/esm2022/popover/popover-target.mjs +4 -4
- package/esm2022/popover/popover-trigger.mjs +6 -6
- package/esm2022/popover/popover.mjs +52 -137
- package/esm2022/progress/progress-module.mjs +4 -4
- package/esm2022/progress/progress.mjs +14 -25
- package/esm2022/select/option.mjs +11 -17
- package/esm2022/select/select-module.mjs +4 -4
- package/esm2022/select/select.mjs +13 -13
- package/esm2022/select/templates.mjs +44 -44
- package/esm2022/split/split-module.mjs +4 -4
- package/esm2022/split/split-pane.mjs +5 -5
- package/esm2022/split/split.mjs +7 -7
- package/esm2022/tooltip/tooltip-module.mjs +4 -4
- package/esm2022/tooltip/tooltip.mjs +22 -22
- package/fesm2022/mtxAlert.mjs +14 -21
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +17 -28
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +21 -32
- package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2022/mtxColorpicker.mjs +61 -64
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +48 -48
- package/fesm2022/mtxCore.mjs +23 -23
- package/fesm2022/mtxDatetimepicker.mjs +150 -190
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +14 -14
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +17 -17
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +150 -118
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +20 -32
- package/fesm2022/mtxLoader.mjs.map +1 -1
- package/fesm2022/mtxPhotoviewer.mjs +10 -10
- package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
- package/fesm2022/mtxPopover.mjs +73 -158
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +17 -28
- package/fesm2022/mtxProgress.mjs.map +1 -1
- package/fesm2022/mtxSelect.mjs +68 -73
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +14 -14
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +26 -26
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +60 -24
- package/grid/column-menu.scss +32 -3
- package/grid/grid.d.ts +33 -1
- package/grid/grid.scss +36 -108
- package/loader/_loader-theme.scss +55 -22
- package/loader/loader.d.ts +4 -9
- package/loader/loader.scss +1 -1
- package/package.json +35 -41
- package/photoviewer/photoviewer.d.ts +1 -0
- package/popover/_popover-theme.scss +55 -22
- package/popover/popover.d.ts +23 -54
- package/popover/popover.scss +2 -2
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/progress/_progress-theme.scss +60 -22
- package/progress/progress.d.ts +4 -9
- package/progress/progress.scss +3 -3
- package/select/_select-theme.scss +66 -34
- package/select/option.d.ts +2 -5
- package/select/select.d.ts +1 -3
- package/select/select.scss +104 -127
- package/split/_split-theme.scss +62 -32
- package/split/split.scss +2 -4
- package/tooltip/_tooltip-theme.scss +66 -34
- package/_theming.scss +0 -16
- package/alert/_alert-theme.import.scss +0 -2
- package/button/_button-theme.import.scss +0 -2
- package/colorpicker/_colorpicker-theme.import.scss +0 -2
- package/core/style/_elevation.scss +0 -91
- package/core/style/_private.scss +0 -32
- package/core/style/_variables.scss +0 -44
- package/core/style/_vendor-prefixes.scss +0 -46
- package/core/theming/_palette.scss +0 -746
- package/core/theming/_theming.scss +0 -463
- package/core/typography/_typography-utils.scss +0 -101
- package/datetimepicker/_datetimepicker-theme.import.scss +0 -4
- package/drawer/_drawer-theme.import.scss +0 -2
- package/grid/_grid-theme.import.scss +0 -2
- package/loader/_loader-theme.import.scss +0 -2
- package/popover/_popover-theme.import.scss +0 -2
- package/progress/_progress-theme.import.scss +0 -2
- package/select/_select-density.scss +0 -68
- package/select/_select-theme.import.scss +0 -3
- package/split/_split-theme.import.scss +0 -2
- package/tooltip/_tooltip-theme.import.scss +0 -1
package/_index.scss
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
@forward './split/split-theme' as split-* show split-theme;
|
|
12
12
|
@forward './tooltip/tooltip-theme' as tooltip-* show tooltip-theme;
|
|
13
13
|
|
|
14
|
-
@forward './core/theming/all-theme' show all-component-themes;
|
|
14
|
+
@forward './core/theming/all-theme' show all-component-themes, all-component-bases;
|
|
15
15
|
@forward './core/color/all-color' show all-component-colors;
|
|
16
|
+
@forward './core/typography/all-typography' show all-component-typographies;
|
|
16
17
|
@forward './core/density/all-density' show all-component-densities;
|
package/alert/_alert-theme.scss
CHANGED
|
@@ -1,39 +1,69 @@
|
|
|
1
|
+
@use '@angular/material' as mat;
|
|
1
2
|
@use '../core/style/sass-utils';
|
|
2
|
-
@use '../core/theming/theming';
|
|
3
3
|
@use '../core/tokens/token-utils';
|
|
4
4
|
@use '../core/tokens/m2/mtx/alert' as tokens-mtx-alert;
|
|
5
5
|
|
|
6
|
-
@mixin
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
@mixin base($theme) {
|
|
7
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
8
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, base));
|
|
9
|
+
}
|
|
10
|
+
@else {
|
|
11
|
+
@include sass-utils.current-selector-or-root() {
|
|
12
|
+
@include token-utils.create-token-values(tokens-mtx-alert.$prefix,
|
|
13
|
+
tokens-mtx-alert.get-unthemable-tokens());
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
}
|
|
14
17
|
|
|
15
|
-
@mixin
|
|
16
|
-
|
|
17
|
-
@
|
|
18
|
+
@mixin color($theme) {
|
|
19
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
20
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, color));
|
|
21
|
+
}
|
|
22
|
+
@else {
|
|
23
|
+
@include sass-utils.current-selector-or-root() {
|
|
24
|
+
@include token-utils.create-token-values(tokens-mtx-alert.$prefix,
|
|
25
|
+
tokens-mtx-alert.get-color-tokens($theme));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
}
|
|
18
29
|
|
|
19
|
-
@mixin
|
|
20
|
-
|
|
30
|
+
@mixin typography($theme) {
|
|
31
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
32
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, typography));
|
|
33
|
+
}
|
|
34
|
+
@else {}
|
|
35
|
+
}
|
|
21
36
|
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
37
|
+
@mixin density($theme) {
|
|
38
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
39
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, density));
|
|
40
|
+
}
|
|
41
|
+
@else {}
|
|
42
|
+
}
|
|
26
43
|
|
|
27
|
-
|
|
28
|
-
|
|
44
|
+
@mixin theme($theme) {
|
|
45
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mtx-alert') {
|
|
46
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
47
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme));
|
|
29
48
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
@
|
|
49
|
+
@else {
|
|
50
|
+
@include base($theme);
|
|
51
|
+
@if mat.theme-has($theme, color) {
|
|
52
|
+
@include color($theme);
|
|
53
|
+
}
|
|
54
|
+
@if mat.theme-has($theme, density) {
|
|
55
|
+
@include density($theme);
|
|
56
|
+
}
|
|
57
|
+
@if mat.theme-has($theme, typography) {
|
|
58
|
+
@include typography($theme);
|
|
59
|
+
}
|
|
33
60
|
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
34
63
|
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
64
|
+
@mixin _theme-from-tokens($tokens) {
|
|
65
|
+
@if ($tokens != ()) {
|
|
66
|
+
@include token-utils.create-token-values(tokens-mtx-alert.$prefix,
|
|
67
|
+
map.get($tokens, tokens-mtx-alert.$prefix));
|
|
38
68
|
}
|
|
39
69
|
}
|
package/alert/alert.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
1
|
+
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export type MtxAlertType = 'default' | 'info' | 'success' | 'warning' | 'danger';
|
|
5
4
|
export declare class MtxAlert {
|
|
@@ -8,16 +7,14 @@ export declare class MtxAlert {
|
|
|
8
7
|
/** The alert's type. Can be `default`, `info`, `success`, `warning` or `danger`. */
|
|
9
8
|
type: MtxAlertType;
|
|
10
9
|
/** Whether to display an inline close button. */
|
|
11
|
-
|
|
12
|
-
set dismissible(value: boolean);
|
|
13
|
-
private _dismissible;
|
|
10
|
+
dismissible: boolean;
|
|
14
11
|
/** The alert's elevation (0~24). */
|
|
15
12
|
elevation: number;
|
|
16
13
|
/** Event emitted when the alert closed. */
|
|
17
14
|
closed: EventEmitter<MtxAlert>;
|
|
18
15
|
constructor(_changeDetectorRef: ChangeDetectorRef);
|
|
19
16
|
_onClosed(): void;
|
|
20
|
-
static ngAcceptInputType_dismissible: BooleanInput;
|
|
21
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxAlert, never>;
|
|
22
18
|
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, ["*"], false, never>;
|
|
19
|
+
static ngAcceptInputType_dismissible: unknown;
|
|
23
20
|
}
|
package/alert/alert.scss
CHANGED
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
.mtx-alert {
|
|
5
5
|
position: relative;
|
|
6
6
|
display: block;
|
|
7
|
-
padding:
|
|
8
|
-
margin-bottom:
|
|
7
|
+
padding: 12px 20px;
|
|
8
|
+
margin-bottom: 16px;
|
|
9
9
|
border: 1px solid transparent;
|
|
10
|
-
border-radius: .25rem;
|
|
11
10
|
|
|
12
11
|
@include token-utils.use-tokens(tokens-mtx-alert.$prefix, tokens-mtx-alert.get-token-slots()) {
|
|
12
|
+
@include token-utils.create-token-slot(border-radius, container-shape);
|
|
13
13
|
@include token-utils.create-token-slot(background-color, background-color);
|
|
14
14
|
@include token-utils.create-token-slot(color, text-color);
|
|
15
15
|
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
@use './button-loading.scss';
|
|
2
2
|
|
|
3
|
-
@mixin
|
|
3
|
+
@mixin base($theme) {}
|
|
4
4
|
|
|
5
|
-
@mixin
|
|
5
|
+
@mixin color($theme) {}
|
|
6
6
|
|
|
7
|
-
@mixin
|
|
7
|
+
@mixin typography($theme) {}
|
|
8
8
|
|
|
9
|
-
@mixin
|
|
9
|
+
@mixin density($theme) {}
|
|
10
|
+
|
|
11
|
+
@mixin theme($theme) {}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ElementRef, OnChanges, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
|
|
2
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
2
|
import { ThemePalette } from '@angular/material/core';
|
|
4
3
|
import * as i0 from "@angular/core";
|
|
5
4
|
export declare class MatButtonLoading implements OnChanges {
|
|
@@ -7,19 +6,15 @@ export declare class MatButtonLoading implements OnChanges {
|
|
|
7
6
|
private _viewContainerRef;
|
|
8
7
|
private _renderer;
|
|
9
8
|
private spinner;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
private _loading;
|
|
13
|
-
get disabled(): boolean;
|
|
14
|
-
set disabled(value: boolean);
|
|
15
|
-
private _disabled;
|
|
9
|
+
loading: boolean;
|
|
10
|
+
disabled: boolean;
|
|
16
11
|
color: ThemePalette;
|
|
17
12
|
constructor(_elementRef: ElementRef<HTMLButtonElement>, _viewContainerRef: ViewContainerRef, _renderer: Renderer2);
|
|
18
13
|
ngOnChanges(changes: SimpleChanges): void;
|
|
19
14
|
private createSpinner;
|
|
20
15
|
private destroySpinner;
|
|
21
|
-
static ngAcceptInputType_loading: BooleanInput;
|
|
22
|
-
static ngAcceptInputType_disabled: BooleanInput;
|
|
23
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatButtonLoading, never>;
|
|
24
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonLoading, "[mat-button][loading], [mat-raised-button][loading], [mat-stroked-button][loading], [mat-flat-button][loading], [mat-icon-button][loading], [mat-fab][loading], [mat-mini-fab][loading]", never, { "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never,
|
|
17
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatButtonLoading, "[mat-button][loading], [mat-raised-button][loading], [mat-stroked-button][loading], [mat-flat-button][loading], [mat-icon-button][loading], [mat-fab][loading], [mat-mini-fab][loading]", never, { "loading": { "alias": "loading"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, never, true, never>;
|
|
18
|
+
static ngAcceptInputType_loading: unknown;
|
|
19
|
+
static ngAcceptInputType_disabled: unknown;
|
|
25
20
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "
|
|
3
|
-
import * as i2 from "@angular/
|
|
4
|
-
import * as i3 from "@angular/material/
|
|
5
|
-
import * as i4 from "
|
|
2
|
+
import * as i1 from "@angular/common";
|
|
3
|
+
import * as i2 from "@angular/material/button";
|
|
4
|
+
import * as i3 from "@angular/material/progress-spinner";
|
|
5
|
+
import * as i4 from "./button-loading";
|
|
6
6
|
export declare class MtxButtonModule {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxButtonModule, never>;
|
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MtxButtonModule, [typeof i1.
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MtxButtonModule, never, [typeof i1.CommonModule, typeof i2.MatButtonModule, typeof i3.MatProgressSpinnerModule, typeof i4.MatButtonLoading], [typeof i4.MatButtonLoading]>;
|
|
9
9
|
static ɵinj: i0.ɵɵInjectorDeclaration<MtxButtonModule>;
|
|
10
10
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
2
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList } from '@angular/core';
|
|
4
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
4
|
import { MatCheckbox, MatCheckboxChange } from '@angular/material/checkbox';
|
|
@@ -21,16 +20,12 @@ export declare class MtxCheckboxGroup implements AfterViewInit, OnDestroy, Contr
|
|
|
21
20
|
private _originalItems;
|
|
22
21
|
bindLabel: string;
|
|
23
22
|
bindValue: string;
|
|
24
|
-
|
|
25
|
-
set showSelectAll(value: boolean);
|
|
26
|
-
private _showSelectAll;
|
|
23
|
+
showSelectAll: boolean;
|
|
27
24
|
selectAllLabel: string;
|
|
28
25
|
get compareWith(): ((o1: any, o2: any) => boolean) | undefined;
|
|
29
26
|
set compareWith(fn: ((o1: any, o2: any) => boolean) | undefined);
|
|
30
27
|
private _compareWith?;
|
|
31
|
-
|
|
32
|
-
set disabled(value: boolean);
|
|
33
|
-
private _disabled;
|
|
28
|
+
disabled: boolean;
|
|
34
29
|
change: EventEmitter<{
|
|
35
30
|
model: MtxCheckboxGroupOption[];
|
|
36
31
|
index: number;
|
|
@@ -76,8 +71,8 @@ export declare class MtxCheckboxGroup implements AfterViewInit, OnDestroy, Contr
|
|
|
76
71
|
_updateNormalCheckboxState(e: MatCheckboxChange, index: number): void;
|
|
77
72
|
/** Handle master checkbox toggle */
|
|
78
73
|
_updateMasterCheckboxState(e: MatCheckboxChange, index: number): void;
|
|
79
|
-
static ngAcceptInputType_showSelectAll: BooleanInput;
|
|
80
|
-
static ngAcceptInputType_disabled: BooleanInput;
|
|
81
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxCheckboxGroup, never>;
|
|
82
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, false, never>;
|
|
76
|
+
static ngAcceptInputType_showSelectAll: unknown;
|
|
77
|
+
static ngAcceptInputType_disabled: unknown;
|
|
83
78
|
}
|
|
@@ -1,55 +1,83 @@
|
|
|
1
1
|
@use 'sass:color';
|
|
2
2
|
@use 'sass:map';
|
|
3
|
-
@use '
|
|
4
|
-
@use '../core/typography/typography';
|
|
3
|
+
@use '@angular/material' as mat;
|
|
5
4
|
@use '../core/style/sass-utils';
|
|
6
5
|
@use '../core/tokens/token-utils';
|
|
7
6
|
@use '../core/tokens/m2/mtx/colorpicker' as tokens-mtx-colorpicker;
|
|
8
7
|
|
|
9
|
-
@mixin
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
@include sass-utils.current-selector-or-root() {
|
|
14
|
-
@include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix,
|
|
15
|
-
tokens-mtx-colorpicker.get-color-tokens($config));
|
|
8
|
+
@mixin base($theme) {
|
|
9
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
10
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, base));
|
|
16
11
|
}
|
|
12
|
+
@else {
|
|
13
|
+
@include sass-utils.current-selector-or-root() {
|
|
14
|
+
@include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix,
|
|
15
|
+
tokens-mtx-colorpicker.get-unthemable-tokens());
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}
|
|
17
19
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
@mixin color($theme) {
|
|
21
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
22
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, color));
|
|
23
|
+
}
|
|
24
|
+
@else {
|
|
25
|
+
@include sass-utils.current-selector-or-root() {
|
|
26
|
+
@include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix,
|
|
27
|
+
tokens-mtx-colorpicker.get-color-tokens($theme));
|
|
22
28
|
}
|
|
23
29
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
30
|
+
.mtx-colorpicker-toggle-active {
|
|
31
|
+
&.mat-accent {
|
|
32
|
+
$accent-tokens: tokens-mtx-colorpicker.private-get-toggle-color-palette-color-tokens($theme, accent);
|
|
33
|
+
@include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix, $accent-tokens);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&.mat-warn {
|
|
37
|
+
$warn-tokens: tokens-mtx-colorpicker.private-get-toggle-color-palette-color-tokens($theme, warn);
|
|
38
|
+
@include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix, $warn-tokens);
|
|
39
|
+
}
|
|
27
40
|
}
|
|
28
41
|
}
|
|
29
42
|
}
|
|
30
43
|
|
|
31
|
-
@mixin typography($
|
|
32
|
-
|
|
33
|
-
@
|
|
34
|
-
|
|
35
|
-
@
|
|
36
|
-
|
|
44
|
+
@mixin typography($theme) {
|
|
45
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
46
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, typography));
|
|
47
|
+
}
|
|
48
|
+
@else {}
|
|
49
|
+
}
|
|
37
50
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
51
|
+
@mixin density($theme) {
|
|
52
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
53
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme, density));
|
|
54
|
+
}
|
|
55
|
+
@else {}
|
|
56
|
+
}
|
|
42
57
|
|
|
43
|
-
|
|
44
|
-
|
|
58
|
+
@mixin theme($theme) {
|
|
59
|
+
@include mat.private-check-duplicate-theme-styles($theme, 'mtx-colorpicker') {
|
|
60
|
+
@if mat.get-theme-version($theme) == 1 {
|
|
61
|
+
@include _theme-from-tokens(mat.get-theme-tokens($theme));
|
|
45
62
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
@
|
|
63
|
+
@else {
|
|
64
|
+
@include base($theme);
|
|
65
|
+
@if mat.theme-has($theme, color) {
|
|
66
|
+
@include color($theme);
|
|
67
|
+
}
|
|
68
|
+
@if mat.theme-has($theme, density) {
|
|
69
|
+
@include density($theme);
|
|
70
|
+
}
|
|
71
|
+
@if mat.theme-has($theme, typography) {
|
|
72
|
+
@include typography($theme);
|
|
73
|
+
}
|
|
49
74
|
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
50
77
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
78
|
+
@mixin _theme-from-tokens($tokens) {
|
|
79
|
+
@if ($tokens != ()) {
|
|
80
|
+
@include token-utils.create-token-values(tokens-mtx-colorpicker.$prefix,
|
|
81
|
+
map.get($tokens, tokens-mtx-colorpicker.$prefix));
|
|
54
82
|
}
|
|
55
83
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
1
|
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
3
2
|
import { AbstractControl, ControlValueAccessor, ValidationErrors } from '@angular/forms';
|
|
4
3
|
import { ThemePalette } from '@angular/material/core';
|
|
@@ -85,8 +84,7 @@ export declare class MtxColorpickerInput implements ControlValueAccessor, AfterV
|
|
|
85
84
|
getThemePalette(): ThemePalette;
|
|
86
85
|
/** TODO: Formats a value and sets it on the input element. */
|
|
87
86
|
private _formatValue;
|
|
88
|
-
static ngAcceptInputType_value: any;
|
|
89
|
-
static ngAcceptInputType_disabled: BooleanInput;
|
|
90
87
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerInput, [null, { optional: true; }]>;
|
|
91
88
|
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, false, never>;
|
|
89
|
+
static ngAcceptInputType_disabled: unknown;
|
|
92
90
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
1
|
import { AfterContentInit, ChangeDetectorRef, OnChanges, OnDestroy, SimpleChanges } from '@angular/core';
|
|
3
2
|
import { MatButton } from '@angular/material/button';
|
|
4
3
|
import { MtxColorpicker } from './colorpicker';
|
|
@@ -33,8 +32,8 @@ export declare class MtxColorpickerToggle implements AfterContentInit, OnChanges
|
|
|
33
32
|
ngAfterContentInit(): void;
|
|
34
33
|
_open(event: Event): void;
|
|
35
34
|
private _watchStateChanges;
|
|
36
|
-
static ngAcceptInputType_disabled: BooleanInput;
|
|
37
|
-
static ngAcceptInputType_disableRipple: BooleanInput;
|
|
38
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpickerToggle, [null, { attribute: "tabindex"; }]>;
|
|
39
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]"], false, never>;
|
|
37
|
+
static ngAcceptInputType_disabled: unknown;
|
|
38
|
+
static ngAcceptInputType_disableRipple: unknown;
|
|
40
39
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Directionality } from '@angular/cdk/bidi';
|
|
2
|
-
import {
|
|
3
|
-
import { ScrollStrategy, Overlay } from '@angular/cdk/overlay';
|
|
2
|
+
import { Overlay, ScrollStrategy } from '@angular/cdk/overlay';
|
|
4
3
|
import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, OnChanges, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
5
4
|
import { CanColor, ThemePalette } from '@angular/material/core';
|
|
6
5
|
import { Subject } from 'rxjs';
|
|
@@ -65,9 +64,7 @@ export declare class MtxColorpicker implements OnChanges, OnDestroy {
|
|
|
65
64
|
* Note that automatic focus restoration is an accessibility feature and it is recommended that
|
|
66
65
|
* you provide your own equivalent, if you decide to turn it off.
|
|
67
66
|
*/
|
|
68
|
-
|
|
69
|
-
set restoreFocus(value: boolean);
|
|
70
|
-
private _restoreFocus;
|
|
67
|
+
restoreFocus: boolean;
|
|
71
68
|
/** Whether the panel is open. */
|
|
72
69
|
get opened(): boolean;
|
|
73
70
|
set opened(value: boolean);
|
|
@@ -126,8 +123,10 @@ export declare class MtxColorpicker implements OnChanges, OnDestroy {
|
|
|
126
123
|
private _setConnectedPositions;
|
|
127
124
|
/** Gets an observable that will emit when the overlay is supposed to be closed. */
|
|
128
125
|
private _getCloseStream;
|
|
129
|
-
static ngAcceptInputType_disabled: BooleanInput;
|
|
130
126
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxColorpicker, [null, null, null, null, { optional: true; }, { optional: true; }]>;
|
|
131
127
|
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, false, never>;
|
|
128
|
+
static ngAcceptInputType_disabled: unknown;
|
|
129
|
+
static ngAcceptInputType_restoreFocus: unknown;
|
|
130
|
+
static ngAcceptInputType_opened: unknown;
|
|
132
131
|
}
|
|
133
132
|
export {};
|
|
@@ -1,28 +1,17 @@
|
|
|
1
|
-
@use '../theming/theming';
|
|
2
1
|
@use '../theming/all-theme';
|
|
2
|
+
@use '../theming/inspection';
|
|
3
3
|
|
|
4
4
|
// Includes all of the color styles.
|
|
5
|
-
@mixin all-component-colors($
|
|
6
|
-
|
|
7
|
-
// the color system, extract the color config from the theme object.
|
|
8
|
-
$config: if(
|
|
9
|
-
theming.private-is-theme-object($config-or-theme),
|
|
10
|
-
theming.get-color-config($config-or-theme),
|
|
11
|
-
$config-or-theme
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
@if $config == null {
|
|
5
|
+
@mixin all-component-colors($theme) {
|
|
6
|
+
@if not inspection.theme-has($theme, color) {
|
|
15
7
|
@error 'No color configuration specified.';
|
|
16
8
|
}
|
|
17
9
|
|
|
18
|
-
@include all-theme.all-component-themes(
|
|
19
|
-
|
|
20
|
-
typography: null,
|
|
21
|
-
density: null,
|
|
22
|
-
));
|
|
10
|
+
@include all-theme.all-component-themes(
|
|
11
|
+
inspection.theme-remove($theme, base, typography, density));
|
|
23
12
|
}
|
|
24
13
|
|
|
25
14
|
// @deprecated Use `all-component-colors`.
|
|
26
|
-
@mixin material-extensions-color($
|
|
27
|
-
@include all-component-colors($
|
|
15
|
+
@mixin material-extensions-color($theme) {
|
|
16
|
+
@include all-component-colors($theme);
|
|
28
17
|
}
|
|
@@ -1,24 +1,38 @@
|
|
|
1
|
-
@use '../theming/
|
|
1
|
+
@use '../theming/inspection';
|
|
2
|
+
@use '../../alert/alert-theme';
|
|
3
|
+
@use '../../button/button-theme';
|
|
4
|
+
@use '../../colorpicker/colorpicker-theme';
|
|
5
|
+
@use '../../datetimepicker/datetimepicker-theme';
|
|
6
|
+
@use '../../drawer/drawer-theme';
|
|
7
|
+
@use '../../grid/grid-theme';
|
|
8
|
+
@use '../../loader/loader-theme';
|
|
9
|
+
@use '../../popover/popover-theme';
|
|
10
|
+
@use '../../progress/progress-theme';
|
|
2
11
|
@use '../../select/select-theme';
|
|
12
|
+
@use '../../split/split-theme';
|
|
13
|
+
@use '../../tooltip/tooltip-theme';
|
|
3
14
|
|
|
4
15
|
// Includes all of the density styles.
|
|
5
|
-
@mixin all-component-densities($
|
|
6
|
-
|
|
7
|
-
// the color system, extract the color config from the theme object.
|
|
8
|
-
$config: if(
|
|
9
|
-
theming.private-is-theme-object($config-or-theme),
|
|
10
|
-
theming.get-color-config($config-or-theme),
|
|
11
|
-
$config-or-theme
|
|
12
|
-
);
|
|
13
|
-
|
|
14
|
-
@if $config == null {
|
|
16
|
+
@mixin all-component-densities($theme) {
|
|
17
|
+
@if not inspection.theme-has($theme, density) {
|
|
15
18
|
@error 'No density configuration specified.';
|
|
16
19
|
}
|
|
17
20
|
|
|
18
|
-
@include
|
|
21
|
+
@include alert-theme.density($theme);
|
|
22
|
+
@include button-theme.density($theme);
|
|
23
|
+
@include colorpicker-theme.density($theme);
|
|
24
|
+
@include datetimepicker-theme.density($theme);
|
|
25
|
+
@include drawer-theme.density($theme);
|
|
26
|
+
@include grid-theme.density($theme);
|
|
27
|
+
@include loader-theme.density($theme);
|
|
28
|
+
@include popover-theme.density($theme);
|
|
29
|
+
@include progress-theme.density($theme);
|
|
30
|
+
@include select-theme.density($theme);
|
|
31
|
+
@include split-theme.density($theme);
|
|
32
|
+
@include tooltip-theme.density($theme);
|
|
19
33
|
}
|
|
20
34
|
|
|
21
35
|
// @deprecated Use `all-component-densities`.
|
|
22
|
-
@mixin material-extensions-density($
|
|
23
|
-
@include all-component-densities($
|
|
36
|
+
@mixin material-extensions-density($theme) {
|
|
37
|
+
@include all-component-densities($theme);
|
|
24
38
|
}
|