@ng-matero/extensions 17.1.3 → 17.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +6 -0
- package/alert/_alert-theme.scss +10 -5
- package/alert/alert.scss +4 -1
- package/colorpicker/_colorpicker-theme.scss +9 -5
- package/colorpicker/colorpicker.d.ts +5 -11
- package/core/style/_sass-utils.scss +19 -0
- package/core/theming/_inspection.scss +38 -0
- package/core/theming/_validation.scss +5 -0
- package/core/theming/m3/_color-api-back-compat.scss +46 -0
- package/core/theming/m3/_config-validation.scss +166 -0
- package/core/theming/m3/_custom-tokens.scss +315 -0
- package/core/theming/m3/_definition.scss +104 -0
- package/core/theming/m3/_format-tokens.scss +5 -0
- package/core/theming/m3/_m3-density.scss +50 -0
- package/core/theming/m3/_m3-tokens.scss +308 -0
- package/core/tokens/_token-utils.scss +140 -0
- package/core/tokens/m2/_index.scss +23 -2
- package/core/tokens/m2/mtx/_alert.scss +1 -0
- package/core/tokens/m2/mtx/_datetimepicker.scss +13 -7
- package/core/tokens/m2/mtx/_grid.scss +3 -2
- package/core/tokens/m2/mtx/_popover.scss +1 -1
- package/core/tokens/m2/mtx/_select.scss +1 -1
- package/datetimepicker/_datetimepicker-theme.scss +14 -12
- package/datetimepicker/calendar.scss +13 -0
- package/datetimepicker/clock.scss +5 -5
- package/datetimepicker/datetimepicker-content.scss +9 -2
- package/datetimepicker/datetimepicker.d.ts +5 -11
- package/datetimepicker/time.scss +10 -8
- package/drawer/_drawer-theme.scss +10 -5
- package/esm2022/alert/alert-module.mjs +4 -4
- package/esm2022/alert/alert.mjs +4 -4
- 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 +14 -20
- 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 +5 -5
- package/esm2022/datetimepicker/clock.mjs +5 -5
- package/esm2022/datetimepicker/datetimepicker-input.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +3 -3
- package/esm2022/datetimepicker/datetimepicker-module.mjs +4 -4
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +6 -6
- package/esm2022/datetimepicker/datetimepicker.mjs +15 -20
- package/esm2022/datetimepicker/month-view.mjs +3 -3
- package/esm2022/datetimepicker/multi-year-view.mjs +3 -3
- package/esm2022/datetimepicker/time.mjs +8 -8
- package/esm2022/datetimepicker/year-view.mjs +3 -3
- 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-container.mjs +3 -3
- package/esm2022/drawer/drawer-module.mjs +4 -4
- package/esm2022/drawer/drawer.mjs +3 -3
- package/esm2022/grid/cell.mjs +3 -3
- package/esm2022/grid/column-menu.mjs +3 -3
- 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 +8 -8
- 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-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 +5 -5
- 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 +50 -37
- 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 +9 -16
- package/esm2022/tooltip/tooltip-module.mjs +4 -4
- package/esm2022/tooltip/tooltip.mjs +6 -6
- package/fesm2022/mtxAlert.mjs +8 -8
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +7 -7
- package/fesm2022/mtxCheckboxGroup.mjs +7 -7
- package/fesm2022/mtxColorpicker.mjs +27 -33
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +40 -40
- package/fesm2022/mtxCore.mjs +21 -21
- package/fesm2022/mtxDatetimepicker.mjs +57 -62
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +10 -10
- package/fesm2022/mtxDrawer.mjs +10 -10
- package/fesm2022/mtxGrid.mjs +67 -67
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +7 -7
- package/fesm2022/mtxPhotoviewer.mjs +7 -7
- package/fesm2022/mtxPopover.mjs +20 -20
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +7 -7
- package/fesm2022/mtxSelect.mjs +88 -75
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +15 -22
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +10 -10
- package/grid/_grid-theme.scss +9 -5
- package/grid/grid.scss +18 -8
- package/loader/_loader-theme.scss +10 -5
- package/package.json +11 -11
- package/popover/_popover-theme.scss +10 -5
- package/popover/popover.scss +1 -1
- 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 +10 -5
- package/select/_select-theme.scss +14 -12
- package/select/select.d.ts +18 -25
- package/select/select.scss +1 -1
- package/split/_split-theme.scss +15 -12
- package/split/split.d.ts +3 -9
- package/tooltip/_tooltip-theme.scss +9 -5
package/select/select.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
2
|
import { AfterViewInit, ChangeDetectorRef, DoCheck, ElementRef, EventEmitter, InjectionToken, OnDestroy, OnInit, QueryList, TemplateRef } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor, FormGroupDirective, NgControl, NgForm } from '@angular/forms';
|
|
4
|
-
import {
|
|
4
|
+
import { ErrorStateMatcher } from '@angular/material/core';
|
|
5
5
|
import { MatFormField, MatFormFieldControl } from '@angular/material/form-field';
|
|
6
6
|
import { NgSelectComponent } from '@ng-select/ng-select';
|
|
7
7
|
import { Subject } from 'rxjs';
|
|
@@ -32,30 +32,11 @@ export interface MtxSelectDefaultOptions {
|
|
|
32
32
|
}
|
|
33
33
|
/** Injection token that can be used to specify default select options. */
|
|
34
34
|
export declare const MTX_SELECT_DEFAULT_OPTIONS: InjectionToken<MtxSelectDefaultOptions>;
|
|
35
|
-
|
|
36
|
-
declare const _MtxSelectMixinBase: import("@angular/material/core")._Constructor<CanDisable> & import("@angular/material/core")._AbstractConstructor<CanDisable> & import("@angular/material/core")._Constructor<import("@angular/material/core").CanUpdateErrorState> & import("@angular/material/core")._AbstractConstructor<import("@angular/material/core").CanUpdateErrorState> & {
|
|
37
|
-
new (_defaultErrorStateMatcher: ErrorStateMatcher, _parentForm: NgForm, _parentFormGroup: FormGroupDirective, ngControl: NgControl): {
|
|
38
|
-
/**
|
|
39
|
-
* Emits whenever the component state changes and should cause the parent
|
|
40
|
-
* form-field to update. Implemented as part of `MatFormFieldControl`.
|
|
41
|
-
* @docs-private
|
|
42
|
-
*/
|
|
43
|
-
readonly stateChanges: Subject<void>;
|
|
44
|
-
_defaultErrorStateMatcher: ErrorStateMatcher;
|
|
45
|
-
_parentForm: NgForm;
|
|
46
|
-
_parentFormGroup: FormGroupDirective;
|
|
47
|
-
/**
|
|
48
|
-
* Form control bound to the component.
|
|
49
|
-
* Implemented as part of `MatFormFieldControl`.
|
|
50
|
-
* @docs-private
|
|
51
|
-
*/
|
|
52
|
-
ngControl: NgControl;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export declare class MtxSelect extends _MtxSelectMixinBase implements OnInit, OnDestroy, DoCheck, AfterViewInit, ControlValueAccessor, CanDisable, MatFormFieldControl<any> {
|
|
35
|
+
export declare class MtxSelect implements OnInit, OnDestroy, DoCheck, AfterViewInit, ControlValueAccessor, MatFormFieldControl<any> {
|
|
56
36
|
protected _changeDetectorRef: ChangeDetectorRef;
|
|
57
37
|
protected _elementRef: ElementRef;
|
|
58
38
|
protected _focusMonitor: FocusMonitor;
|
|
39
|
+
ngControl: NgControl;
|
|
59
40
|
protected _parentFormField?: MatFormField | undefined;
|
|
60
41
|
protected _defaultOptions?: MtxSelectDefaultOptions | undefined;
|
|
61
42
|
ngSelect: NgSelectComponent;
|
|
@@ -165,12 +146,15 @@ export declare class MtxSelect extends _MtxSelectMixinBase implements OnInit, On
|
|
|
165
146
|
* @docs-private
|
|
166
147
|
*/
|
|
167
148
|
get shouldLabelFloat(): boolean;
|
|
149
|
+
/** Whether the select is disabled. */
|
|
150
|
+
disabled: boolean;
|
|
168
151
|
/** Whether the component is required. */
|
|
169
152
|
get required(): boolean;
|
|
170
153
|
set required(value: boolean);
|
|
171
154
|
private _required;
|
|
172
155
|
/** Object used to control when error messages are shown. */
|
|
173
|
-
errorStateMatcher: ErrorStateMatcher;
|
|
156
|
+
get errorStateMatcher(): ErrorStateMatcher;
|
|
157
|
+
set errorStateMatcher(value: ErrorStateMatcher);
|
|
174
158
|
/** Aria label of the select. */
|
|
175
159
|
ariaLabel: string;
|
|
176
160
|
/** Input that can be used to specify the `aria-labelledby` attribute. */
|
|
@@ -192,7 +176,12 @@ export declare class MtxSelect extends _MtxSelectMixinBase implements OnInit, On
|
|
|
192
176
|
* Used to detect if it has changed.
|
|
193
177
|
*/
|
|
194
178
|
private _previousControl;
|
|
195
|
-
|
|
179
|
+
/** Tracks the error state of the select. */
|
|
180
|
+
private _errorStateTracker;
|
|
181
|
+
/** Whether the select is in an error state. */
|
|
182
|
+
get errorState(): boolean;
|
|
183
|
+
set errorState(value: boolean);
|
|
184
|
+
constructor(_changeDetectorRef: ChangeDetectorRef, _elementRef: ElementRef, _focusMonitor: FocusMonitor, defaultErrorStateMatcher: ErrorStateMatcher, parentForm: NgForm, parentFormGroup: FormGroupDirective, ngControl: NgControl, _parentFormField?: MatFormField | undefined, _defaultOptions?: MtxSelectDefaultOptions | undefined);
|
|
196
185
|
ngOnInit(): void;
|
|
197
186
|
ngAfterViewInit(): void;
|
|
198
187
|
ngDoCheck(): void;
|
|
@@ -233,6 +222,10 @@ export declare class MtxSelect extends _MtxSelectMixinBase implements OnInit, On
|
|
|
233
222
|
* @param fn Callback to be triggered when the component has been touched.
|
|
234
223
|
*/
|
|
235
224
|
registerOnTouched(fn: any): void;
|
|
225
|
+
/** Refreshes the error state of the select. */
|
|
226
|
+
updateErrorState(): void;
|
|
227
|
+
/** Assigns a specific value to the select. Returns whether the value has changed. */
|
|
228
|
+
private _assignValue;
|
|
236
229
|
/** NgSelect's `_setItemsFromNgOptions` */
|
|
237
230
|
private _setItemsFromMtxOptions;
|
|
238
231
|
open(): void;
|
|
@@ -242,6 +235,6 @@ export declare class MtxSelect extends _MtxSelectMixinBase implements OnInit, On
|
|
|
242
235
|
openChange(): void;
|
|
243
236
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxSelect, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
|
|
244
237
|
static ɵcmp: i0.ɵɵComponentDeclaration<MtxSelect, "mtx-select", ["mtxSelect"], { "disabled": { "alias": "disabled"; "required": false; }; "addTag": { "alias": "addTag"; "required": false; }; "addTagText": { "alias": "addTagText"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "bindLabel": { "alias": "bindLabel"; "required": false; }; "bindValue": { "alias": "bindValue"; "required": false; }; "closeOnSelect": { "alias": "closeOnSelect"; "required": false; }; "clearAllText": { "alias": "clearAllText"; "required": false; }; "clearable": { "alias": "clearable"; "required": false; }; "clearOnBackspace": { "alias": "clearOnBackspace"; "required": false; }; "compareWith": { "alias": "compareWith"; "required": false; }; "dropdownPosition": { "alias": "dropdownPosition"; "required": false; }; "groupBy": { "alias": "groupBy"; "required": false; }; "groupValue": { "alias": "groupValue"; "required": false; }; "selectableGroup": { "alias": "selectableGroup"; "required": false; }; "selectableGroupAsModel": { "alias": "selectableGroupAsModel"; "required": false; }; "hideSelected": { "alias": "hideSelected"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "loadingText": { "alias": "loadingText"; "required": false; }; "labelForId": { "alias": "labelForId"; "required": false; }; "markFirst": { "alias": "markFirst"; "required": false; }; "maxSelectedItems": { "alias": "maxSelectedItems"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "notFoundText": { "alias": "notFoundText"; "required": false; }; "searchable": { "alias": "searchable"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "searchFn": { "alias": "searchFn"; "required": false; }; "searchWhileComposing": { "alias": "searchWhileComposing"; "required": false; }; "selectOnTab": { "alias": "selectOnTab"; "required": false; }; "trackByFn": { "alias": "trackByFn"; "required": false; }; "inputAttrs": { "alias": "inputAttrs"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "openOnEnter": { "alias": "openOnEnter"; "required": false; }; "minTermLength": { "alias": "minTermLength"; "required": false; }; "editableSearchTerm": { "alias": "editableSearchTerm"; "required": false; }; "keyDownFn": { "alias": "keyDownFn"; "required": false; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; }; "typeToSearchText": { "alias": "typeToSearchText"; "required": false; }; "typeahead": { "alias": "typeahead"; "required": false; }; "clearSearchOnAdd": { "alias": "clearSearchOnAdd"; "required": false; }; "items": { "alias": "items"; "required": false; }; "value": { "alias": "value"; "required": false; }; "id": { "alias": "id"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "required": { "alias": "required"; "required": false; }; "errorStateMatcher": { "alias": "errorStateMatcher"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; }; }, { "blurEvent": "blur"; "focusEvent": "focus"; "changeEvent": "change"; "openEvent": "open"; "closeEvent": "close"; "searchEvent": "search"; "clearEvent": "clear"; "addEvent": "add"; "removeEvent": "remove"; "scroll": "scroll"; "scrollToEnd": "scrollToEnd"; }, ["optionTemplate", "optgroupTemplate", "labelTemplate", "multiLabelTemplate", "headerTemplate", "footerTemplate", "notFoundTemplate", "typeToSearchTemplate", "loadingTextTemplate", "tagTemplate", "loadingSpinnerTemplate", "mtxOptions"], never, true, never>;
|
|
238
|
+
static ngAcceptInputType_disabled: unknown;
|
|
245
239
|
static ngAcceptInputType_required: unknown;
|
|
246
240
|
}
|
|
247
|
-
export {};
|
package/select/select.scss
CHANGED
|
@@ -100,7 +100,7 @@ $_tokens: tokens-mtx-select.$prefix, tokens-mtx-select.get-token-slots();
|
|
|
100
100
|
|
|
101
101
|
@include token-utils.create-token-slot(background-color, multiple-value-background-color);
|
|
102
102
|
|
|
103
|
-
$border-color: token-utils.get-token-variable(multiple-value-
|
|
103
|
+
$border-color: token-utils.get-token-variable(multiple-value-outline-color);
|
|
104
104
|
|
|
105
105
|
border: 1px solid var($border-color);
|
|
106
106
|
|
package/split/_split-theme.scss
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
1
2
|
@use '@angular/material' as mat;
|
|
2
3
|
@use '../core/style/sass-utils';
|
|
4
|
+
@use '../core/theming/inspection';
|
|
5
|
+
@use '../core/theming/validation';
|
|
3
6
|
@use '../core/tokens/token-utils';
|
|
4
7
|
@use '../core/tokens/m2/mtx/split' as tokens-mtx-split;
|
|
5
8
|
|
|
6
9
|
@mixin base($theme) {
|
|
7
10
|
@if mat.get-theme-version($theme) == 1 {
|
|
8
|
-
@include _theme-from-tokens(
|
|
11
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
9
12
|
}
|
|
10
13
|
@else {
|
|
11
14
|
@include sass-utils.current-selector-or-root() {
|
|
@@ -15,9 +18,9 @@
|
|
|
15
18
|
}
|
|
16
19
|
}
|
|
17
20
|
|
|
18
|
-
@mixin color($theme) {
|
|
21
|
+
@mixin color($theme, $options...) {
|
|
19
22
|
@if mat.get-theme-version($theme) == 1 {
|
|
20
|
-
@include _theme-from-tokens(
|
|
23
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
|
|
21
24
|
}
|
|
22
25
|
@else {
|
|
23
26
|
@include sass-utils.current-selector-or-root() {
|
|
@@ -41,22 +44,22 @@
|
|
|
41
44
|
|
|
42
45
|
@mixin typography($theme) {
|
|
43
46
|
@if mat.get-theme-version($theme) == 1 {
|
|
44
|
-
@include _theme-from-tokens(
|
|
47
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
45
48
|
}
|
|
46
49
|
@else {}
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
@mixin density($theme) {
|
|
50
53
|
@if mat.get-theme-version($theme) == 1 {
|
|
51
|
-
@include _theme-from-tokens(
|
|
54
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
52
55
|
}
|
|
53
56
|
@else {}
|
|
54
57
|
}
|
|
55
58
|
|
|
56
|
-
@mixin theme($theme) {
|
|
59
|
+
@mixin theme($theme, $options...) {
|
|
57
60
|
@include mat.private-check-duplicate-theme-styles($theme, 'mtx-split') {
|
|
58
61
|
@if mat.get-theme-version($theme) == 1 {
|
|
59
|
-
@include _theme-from-tokens(
|
|
62
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme), $options...);
|
|
60
63
|
}
|
|
61
64
|
@else {
|
|
62
65
|
@include base($theme);
|
|
@@ -73,9 +76,9 @@
|
|
|
73
76
|
}
|
|
74
77
|
}
|
|
75
78
|
|
|
76
|
-
@mixin _theme-from-tokens($tokens) {
|
|
77
|
-
@
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
@mixin _theme-from-tokens($tokens, $options...) {
|
|
80
|
+
@include validation.selector-defined(
|
|
81
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
82
|
+
$mtx-split-tokens: token-utils.get-tokens-for($tokens, tokens-mtx-split.$prefix, $options...);
|
|
83
|
+
@include token-utils.create-token-values(tokens-mtx-split.$prefix, $mtx-split-tokens);
|
|
81
84
|
}
|
package/split/split.d.ts
CHANGED
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, NgZone, OnDestroy, Renderer2 } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ThemePalette } from '@angular/material/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { MtxSplitArea, MtxSplitDefaultOptions, MtxSplitOutputAreaSizes, MtxSplitOutputData } from './interfaces';
|
|
5
5
|
import { MtxSplitPane } from './split-pane';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/** Injection token that can be used to specify default split options. */
|
|
8
8
|
export declare const MTX_SPLIT_DEFAULT_OPTIONS: InjectionToken<MtxSplitDefaultOptions>;
|
|
9
|
-
/** @docs-private */
|
|
10
|
-
declare const _MtxSplitBase: import("@angular/material/core")._Constructor<CanColor> & import("@angular/material/core")._AbstractConstructor<CanColor> & {
|
|
11
|
-
new (_elementRef: ElementRef): {
|
|
12
|
-
_elementRef: ElementRef;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
9
|
/**
|
|
16
10
|
* mtx-split
|
|
17
11
|
*
|
|
@@ -41,12 +35,13 @@ declare const _MtxSplitBase: import("@angular/material/core")._Constructor<CanCo
|
|
|
41
35
|
* 800px <-- el.getBoundingClientRect().width
|
|
42
36
|
*
|
|
43
37
|
*/
|
|
44
|
-
export declare class MtxSplit
|
|
38
|
+
export declare class MtxSplit implements AfterViewInit, OnDestroy {
|
|
45
39
|
private ngZone;
|
|
46
40
|
private elRef;
|
|
47
41
|
private cdRef;
|
|
48
42
|
private renderer;
|
|
49
43
|
protected _defaultOptions?: MtxSplitDefaultOptions | undefined;
|
|
44
|
+
color: ThemePalette;
|
|
50
45
|
private _direction;
|
|
51
46
|
set direction(v: 'horizontal' | 'vertical');
|
|
52
47
|
get direction(): 'horizontal' | 'vertical';
|
|
@@ -112,4 +107,3 @@ export declare class MtxSplit extends _MtxSplitBase implements AfterViewInit, On
|
|
|
112
107
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxSplit, [null, null, null, null, { optional: true; }]>;
|
|
113
108
|
static ɵcmp: i0.ɵɵComponentDeclaration<MtxSplit, "mtx-split", ["mtxSplit"], { "color": { "alias": "color"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "gutterSize": { "alias": "gutterSize"; "required": false; }; "gutterStep": { "alias": "gutterStep"; "required": false; }; "restrictMove": { "alias": "restrictMove"; "required": false; }; "useTransition": { "alias": "useTransition"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "dir": { "alias": "dir"; "required": false; }; "gutterDblClickDuration": { "alias": "gutterDblClickDuration"; "required": false; }; }, { "dragStart": "dragStart"; "dragEnd": "dragEnd"; "gutterClick": "gutterClick"; "gutterDblClick": "gutterDblClick"; "transitionEnd": "transitionEnd"; }, never, ["*"], true, never>;
|
|
114
109
|
}
|
|
115
|
-
export {};
|
|
@@ -2,11 +2,13 @@
|
|
|
2
2
|
@use '@material/tooltip/plain-tooltip-theme' as mdc-plain-tooltip-theme;
|
|
3
3
|
@use '@angular/material' as mat;
|
|
4
4
|
@use '../core/style/sass-utils';
|
|
5
|
+
@use '../core/theming/inspection';
|
|
6
|
+
@use '../core/theming/validation';
|
|
5
7
|
@use '../core/tokens/m2/mdc/plain-tooltip' as tokens-mdc-plain-tooltip;
|
|
6
8
|
|
|
7
9
|
@mixin base($theme) {
|
|
8
10
|
@if mat.get-theme-version($theme) == 1 {
|
|
9
|
-
@include _theme-from-tokens(
|
|
11
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
10
12
|
}
|
|
11
13
|
@else {
|
|
12
14
|
// Add default values for tokens not related to color, typography, or density.
|
|
@@ -18,7 +20,7 @@
|
|
|
18
20
|
|
|
19
21
|
@mixin color($theme) {
|
|
20
22
|
@if mat.get-theme-version($theme) == 1 {
|
|
21
|
-
@include _theme-from-tokens(
|
|
23
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color));
|
|
22
24
|
}
|
|
23
25
|
@else {
|
|
24
26
|
$mdc-tooltip-color-tokens: tokens-mdc-plain-tooltip.get-color-tokens($theme);
|
|
@@ -32,7 +34,7 @@
|
|
|
32
34
|
|
|
33
35
|
@mixin typography($theme) {
|
|
34
36
|
@if mat.get-theme-version($theme) == 1 {
|
|
35
|
-
@include _theme-from-tokens(
|
|
37
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, typography));
|
|
36
38
|
}
|
|
37
39
|
@else {
|
|
38
40
|
$mdc-tooltip-typography-tokens: tokens-mdc-plain-tooltip.get-typography-tokens($theme);
|
|
@@ -46,7 +48,7 @@
|
|
|
46
48
|
|
|
47
49
|
@mixin density($theme) {
|
|
48
50
|
@if mat.get-theme-version($theme) == 1 {
|
|
49
|
-
@include _theme-from-tokens(
|
|
51
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme, density));
|
|
50
52
|
}
|
|
51
53
|
@else {
|
|
52
54
|
$mdc-tooltip-density-tokens: tokens-mdc-plain-tooltip.get-density-tokens($theme);
|
|
@@ -61,7 +63,7 @@
|
|
|
61
63
|
@mixin theme($theme) {
|
|
62
64
|
@include mat.private-check-duplicate-theme-styles($theme, 'mtx-tooltip') {
|
|
63
65
|
@if mat.get-theme-version($theme) == 1 {
|
|
64
|
-
@include _theme-from-tokens(
|
|
66
|
+
@include _theme-from-tokens(inspection.get-theme-tokens($theme));
|
|
65
67
|
}
|
|
66
68
|
@else {
|
|
67
69
|
@include base($theme);
|
|
@@ -79,6 +81,8 @@
|
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
@mixin _theme-from-tokens($tokens) {
|
|
84
|
+
@include validation.selector-defined(
|
|
85
|
+
'Calls to Angular Material theme mixins with an M3 theme must be wrapped in a selector');
|
|
82
86
|
@if $tokens != () {
|
|
83
87
|
@include mdc-plain-tooltip-theme.theme(map.get($tokens, tokens-mdc-plain-tooltip.$prefix));
|
|
84
88
|
}
|