@ng-matero/extensions 17.3.5 → 18.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/README.md +11 -0
- package/_index.scss +6 -0
- package/alert/_alert-theme.scss +2 -3
- package/colorpicker/_colorpicker-theme.scss +2 -3
- package/colorpicker/colorpicker.d.ts +4 -4
- package/{experimental/theming/_color-api-back-compat.scss → core/theming/_color-api-backwards-compatibility.scss} +1 -1
- package/{experimental → core}/theming/_config-validation.scss +11 -5
- package/{experimental → core}/theming/_definition.scss +4 -3
- package/core/theming/prebuilt/azure-blue.scss +26 -0
- package/core/theming/prebuilt/cyan-orange.scss +26 -0
- package/core/theming/prebuilt/deeppurple-amber.scss +4 -4
- package/core/theming/prebuilt/indigo-pink.scss +4 -4
- package/core/theming/prebuilt/magenta-violet.scss +26 -0
- package/core/theming/prebuilt/pink-bluegrey.scss +4 -4
- package/core/theming/prebuilt/purple-green.scss +4 -4
- package/core/theming/prebuilt/rose-red.scss +26 -0
- package/{experimental/theming/_m3-density.scss → core/tokens/_density.scss} +0 -1
- package/core/tokens/_m3-tokens.scss +350 -0
- package/core/tokens/_token-utils.scss +164 -40
- package/core/tokens/m2/_index.scss +2 -3
- package/core/tokens/m2/mdc/_plain-tooltip.scss +1 -2
- package/core/tokens/m2/mtx/_alert.scss +5 -6
- package/core/tokens/m2/mtx/_colorpicker.scss +2 -3
- package/core/tokens/m2/mtx/_datetimepicker.scss +7 -8
- package/core/tokens/m2/mtx/_drawer.scss +3 -2
- package/core/tokens/m2/mtx/_grid.scss +4 -3
- package/core/tokens/m2/mtx/_loader.scss +2 -3
- package/core/tokens/m2/mtx/_popover.scss +1 -2
- package/core/tokens/m2/mtx/_progress.scss +5 -6
- package/core/tokens/m2/mtx/_select.scss +3 -2
- package/core/tokens/m2/mtx/_split.scss +2 -3
- package/core/tokens/m3/index.scss +45 -0
- package/core/tokens/m3/mtx/_alert.scss +31 -0
- package/core/tokens/m3/mtx/_colorpicker.scss +19 -0
- package/{experimental/theming/_custom-tokens.scss → core/tokens/m3/mtx/_datetimepicker.scss} +15 -191
- package/core/tokens/m3/mtx/_drawer.scss +22 -0
- package/core/tokens/m3/mtx/_grid.scss +34 -0
- package/core/tokens/m3/mtx/_loader.scss +22 -0
- package/core/tokens/m3/mtx/_popover.scss +22 -0
- package/core/tokens/m3/mtx/_progress.scss +31 -0
- package/core/tokens/m3/mtx/_select.scss +72 -0
- package/core/tokens/m3/mtx/_split.scss +30 -0
- package/datetimepicker/_datetimepicker-theme.scss +3 -4
- package/datetimepicker/calendar-body.scss +2 -2
- package/datetimepicker/calendar.d.ts +1 -0
- package/datetimepicker/datetimepicker-content.scss +0 -2
- package/datetimepicker/datetimepicker.d.ts +4 -4
- package/drawer/_drawer-theme.scss +2 -3
- package/drawer/drawer-container.scss +1 -2
- package/esm2022/alert/alert-module.mjs +4 -4
- package/esm2022/alert/alert.mjs +3 -3
- 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 -12
- 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 +9 -14
- 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 -13
- package/esm2022/datetimepicker/month-view.mjs +3 -3
- package/esm2022/datetimepicker/multi-year-view.mjs +3 -3
- package/esm2022/datetimepicker/time.mjs +6 -6
- 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 +5 -5
- 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 +5 -5
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +3 -3
- package/esm2022/grid/column-resize/column-resize-module.mjs +8 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +3 -3
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +3 -3
- package/esm2022/grid/column-resize/resize-strategy.mjs +3 -3
- package/esm2022/grid/expansion-toggle.mjs +3 -3
- package/esm2022/grid/grid-module.mjs +4 -4
- package/esm2022/grid/grid-pipes.mjs +21 -21
- package/esm2022/grid/grid-utils.mjs +3 -3
- package/esm2022/grid/grid.mjs +3 -3
- package/esm2022/grid/selectable-cell.mjs +3 -3
- package/esm2022/loader/loader-module.mjs +4 -4
- package/esm2022/loader/loader.mjs +3 -3
- package/esm2022/photoviewer/photoviewer-module.mjs +4 -4
- package/esm2022/photoviewer/photoviewer.mjs +3 -3
- package/esm2022/popover/popover-content.mjs +6 -6
- package/esm2022/popover/popover-module.mjs +4 -4
- package/esm2022/popover/popover-target.mjs +3 -3
- package/esm2022/popover/popover-trigger.mjs +6 -8
- package/esm2022/popover/popover.mjs +6 -6
- 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 +37 -23
- package/esm2022/select/templates.mjs +33 -33
- package/esm2022/split/split-module.mjs +4 -4
- package/esm2022/split/split-pane.mjs +37 -28
- package/esm2022/split/split.mjs +55 -49
- package/esm2022/split/utils.mjs +1 -4
- package/esm2022/tooltip/tooltip-module.mjs +4 -4
- package/esm2022/tooltip/tooltip.mjs +6 -6
- package/fesm2022/mtxAlert.mjs +7 -7
- package/fesm2022/mtxButton.mjs +7 -7
- package/fesm2022/mtxCheckboxGroup.mjs +7 -7
- package/fesm2022/mtxColorpicker.mjs +27 -25
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +40 -40
- package/fesm2022/mtxCore.mjs +21 -21
- package/fesm2022/mtxDatetimepicker.mjs +61 -63
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +10 -10
- package/fesm2022/mtxDrawer.mjs +13 -13
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +68 -68
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +7 -7
- package/fesm2022/mtxPhotoviewer.mjs +7 -7
- package/fesm2022/mtxPopover.mjs +24 -26
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +7 -7
- package/fesm2022/mtxSelect.mjs +76 -62
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +92 -80
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +12 -12
- package/grid/_grid-theme.scss +3 -4
- package/grid/column-menu.scss +15 -9
- package/grid/grid.scss +2 -2
- package/loader/_loader-theme.scss +2 -3
- package/package.json +18 -18
- package/popover/_popover-theme.scss +2 -3
- package/popover/popover.d.ts +2 -2
- package/prebuilt-themes/azure-blue.css +1 -0
- package/prebuilt-themes/cyan-orange.css +1 -0
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -0
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -0
- package/progress/_progress-theme.scss +3 -4
- package/select/_select-theme.scss +3 -4
- package/select/select.d.ts +17 -2
- package/select/select.scss +2 -4
- package/split/_split-theme.scss +2 -3
- package/split/split-pane.d.ts +29 -13
- package/split/split.d.ts +44 -20
- package/split/utils.d.ts +0 -1
- package/tooltip/_tooltip-theme.scss +4 -5
- package/core/style/_sass-utils.scss +0 -80
- package/experimental/_index.scss +0 -5
- package/experimental/theming/_m3-tokens.scss +0 -308
- /package/{experimental/theming → core/tokens}/_format-tokens.scss +0 -0
package/select/select.d.ts
CHANGED
|
@@ -70,7 +70,6 @@ export declare class MtxSelect implements OnInit, OnDestroy, DoCheck, AfterViewI
|
|
|
70
70
|
selectableGroup: boolean;
|
|
71
71
|
selectableGroupAsModel: boolean;
|
|
72
72
|
hideSelected: boolean;
|
|
73
|
-
isOpen: boolean;
|
|
74
73
|
loading: boolean;
|
|
75
74
|
loadingText: string;
|
|
76
75
|
labelForId: string | null;
|
|
@@ -235,7 +234,23 @@ export declare class MtxSelect implements OnInit, OnDestroy, DoCheck, AfterViewI
|
|
|
235
234
|
blur(): void;
|
|
236
235
|
openChange(): void;
|
|
237
236
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxSelect, [null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; self: true; }, { optional: true; }, { optional: true; }]>;
|
|
238
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MtxSelect, "mtx-select", ["mtxSelect"], { "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; }; "bufferAmount": { "alias": "bufferAmount"; "required": false; }; "selectableGroup": { "alias": "selectableGroup"; "required": false; }; "selectableGroupAsModel": { "alias": "selectableGroupAsModel"; "required": false; }; "hideSelected": { "alias": "hideSelected"; "required": false; }; "
|
|
237
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MtxSelect, "mtx-select", ["mtxSelect"], { "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; }; "bufferAmount": { "alias": "bufferAmount"; "required": false; }; "selectableGroup": { "alias": "selectableGroup"; "required": false; }; "selectableGroupAsModel": { "alias": "selectableGroupAsModel"; "required": false; }; "hideSelected": { "alias": "hideSelected"; "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; }; "disabled": { "alias": "disabled"; "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_closeOnSelect: unknown;
|
|
239
|
+
static ngAcceptInputType_clearable: unknown;
|
|
240
|
+
static ngAcceptInputType_clearOnBackspace: unknown;
|
|
241
|
+
static ngAcceptInputType_selectableGroup: unknown;
|
|
242
|
+
static ngAcceptInputType_selectableGroupAsModel: unknown;
|
|
243
|
+
static ngAcceptInputType_hideSelected: unknown;
|
|
244
|
+
static ngAcceptInputType_loading: unknown;
|
|
245
|
+
static ngAcceptInputType_markFirst: unknown;
|
|
246
|
+
static ngAcceptInputType_multiple: unknown;
|
|
247
|
+
static ngAcceptInputType_searchable: unknown;
|
|
248
|
+
static ngAcceptInputType_readonly: unknown;
|
|
249
|
+
static ngAcceptInputType_searchWhileComposing: unknown;
|
|
250
|
+
static ngAcceptInputType_selectOnTab: unknown;
|
|
251
|
+
static ngAcceptInputType_openOnEnter: unknown;
|
|
252
|
+
static ngAcceptInputType_editableSearchTerm: unknown;
|
|
253
|
+
static ngAcceptInputType_virtualScroll: unknown;
|
|
239
254
|
static ngAcceptInputType_disabled: unknown;
|
|
240
255
|
static ngAcceptInputType_required: unknown;
|
|
241
256
|
}
|
package/select/select.scss
CHANGED
|
@@ -189,8 +189,7 @@ $_tokens: tokens-mtx-select.$prefix, tokens-mtx-select.get-token-slots();
|
|
|
189
189
|
|
|
190
190
|
@include token-utils.create-token-slot(border-bottom-left-radius, container-shape);
|
|
191
191
|
@include token-utils.create-token-slot(border-bottom-right-radius, container-shape);
|
|
192
|
-
|
|
193
|
-
@include mat.elevation(8);
|
|
192
|
+
@include token-utils.create-token-slot(box-shadow, container-elevation-shadow);
|
|
194
193
|
}
|
|
195
194
|
|
|
196
195
|
&.ng-select-top {
|
|
@@ -198,8 +197,7 @@ $_tokens: tokens-mtx-select.$prefix, tokens-mtx-select.get-token-slots();
|
|
|
198
197
|
|
|
199
198
|
@include token-utils.create-token-slot(border-top-left-radius, container-shape);
|
|
200
199
|
@include token-utils.create-token-slot(border-top-right-radius, container-shape);
|
|
201
|
-
|
|
202
|
-
@include mat.elevation(8);
|
|
200
|
+
@include token-utils.create-token-slot(box-shadow, container-elevation-shadow);
|
|
203
201
|
}
|
|
204
202
|
|
|
205
203
|
.ng-dropdown-header,
|
package/split/_split-theme.scss
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@angular/material' as mat;
|
|
3
|
-
@use '../core/style/sass-utils';
|
|
4
3
|
@use '../core/theming/inspection';
|
|
5
4
|
@use '../core/theming/validation';
|
|
6
5
|
@use '../core/tokens/token-utils';
|
|
@@ -11,7 +10,7 @@
|
|
|
11
10
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, base));
|
|
12
11
|
}
|
|
13
12
|
@else {
|
|
14
|
-
@include
|
|
13
|
+
@include mat.private-current-selector-or-root() {
|
|
15
14
|
@include token-utils.create-token-values(tokens-mtx-split.$prefix,
|
|
16
15
|
tokens-mtx-split.get-unthemable-tokens());
|
|
17
16
|
}
|
|
@@ -23,7 +22,7 @@
|
|
|
23
22
|
@include _theme-from-tokens(inspection.get-theme-tokens($theme, color), $options...);
|
|
24
23
|
}
|
|
25
24
|
@else {
|
|
26
|
-
@include
|
|
25
|
+
@include mat.private-current-selector-or-root() {
|
|
27
26
|
@include token-utils.create-token-values(tokens-mtx-split.$prefix,
|
|
28
27
|
tokens-mtx-split.get-color-tokens($theme));
|
|
29
28
|
}
|
package/split/split-pane.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef,
|
|
1
|
+
import { ElementRef, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
|
2
2
|
import { MtxSplit } from './split';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class MtxSplitPane implements OnInit, OnDestroy {
|
|
@@ -6,24 +6,38 @@ export declare class MtxSplitPane implements OnInit, OnDestroy {
|
|
|
6
6
|
elRef: ElementRef;
|
|
7
7
|
private renderer;
|
|
8
8
|
private split;
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
/**
|
|
10
|
+
* Order of the area. Used to maintain the order of areas when toggling their visibility.
|
|
11
|
+
* Toggling area visibility without specifying an `order` leads to weird behavior.
|
|
12
|
+
*/
|
|
11
13
|
get order(): number | null;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
set order(v: number | null);
|
|
15
|
+
private _order;
|
|
16
|
+
/**
|
|
17
|
+
* Size of the area in selected unit (percent/pixel).
|
|
18
|
+
* - Percent: All areas sizes should equal to `100`, If not, all areas will have the same size.
|
|
19
|
+
* - Pixel: An area with wildcard size (`size="*"`) is mandatory (only one) and
|
|
20
|
+
* can't have `visible="false"` or `minSize`/`maxSize`/`lockSize` properties.
|
|
21
|
+
*/
|
|
14
22
|
get size(): number | null;
|
|
15
|
-
|
|
16
|
-
|
|
23
|
+
set size(v: number | null);
|
|
24
|
+
private _size;
|
|
25
|
+
/** Minimum pixel or percent size, should be equal to or smaller than provided `size`. */
|
|
17
26
|
get minSize(): number | null;
|
|
18
|
-
|
|
19
|
-
|
|
27
|
+
set minSize(v: number | null);
|
|
28
|
+
private _minSize;
|
|
29
|
+
/** Maximum pixel or percent size, should be equal to or larger than provided `size`. */
|
|
20
30
|
get maxSize(): number | null;
|
|
21
|
-
|
|
22
|
-
|
|
31
|
+
set maxSize(v: number | null);
|
|
32
|
+
private _maxSize;
|
|
33
|
+
/** Lock area size, same as `minSize`=`maxSize`=`size`. */
|
|
23
34
|
get lockSize(): boolean;
|
|
24
|
-
|
|
25
|
-
|
|
35
|
+
set lockSize(v: boolean);
|
|
36
|
+
private _lockSize;
|
|
37
|
+
/** Hide area visually but still present in the DOM, use `ngIf` to completely remove it. */
|
|
26
38
|
get visible(): boolean;
|
|
39
|
+
set visible(v: boolean);
|
|
40
|
+
private _visible;
|
|
27
41
|
private transitionListener;
|
|
28
42
|
private readonly lockListeners;
|
|
29
43
|
constructor(ngZone: NgZone, elRef: ElementRef, renderer: Renderer2, split: MtxSplit);
|
|
@@ -35,4 +49,6 @@ export declare class MtxSplitPane implements OnInit, OnDestroy {
|
|
|
35
49
|
ngOnDestroy(): void;
|
|
36
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxSplitPane, never>;
|
|
37
51
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MtxSplitPane, "mtx-split-pane, [mtx-split-pane]", ["mtxSplitPane"], { "order": { "alias": "order"; "required": false; }; "size": { "alias": "size"; "required": false; }; "minSize": { "alias": "minSize"; "required": false; }; "maxSize": { "alias": "maxSize"; "required": false; }; "lockSize": { "alias": "lockSize"; "required": false; }; "visible": { "alias": "visible"; "required": false; }; }, {}, never, never, true, never>;
|
|
52
|
+
static ngAcceptInputType_lockSize: unknown;
|
|
53
|
+
static ngAcceptInputType_visible: unknown;
|
|
38
54
|
}
|
package/split/split.d.ts
CHANGED
|
@@ -42,39 +42,60 @@ export declare class MtxSplit implements AfterViewInit, OnDestroy {
|
|
|
42
42
|
private renderer;
|
|
43
43
|
protected _defaultOptions?: MtxSplitDefaultOptions | undefined;
|
|
44
44
|
color: ThemePalette;
|
|
45
|
-
|
|
46
|
-
set direction(v: 'horizontal' | 'vertical');
|
|
45
|
+
/** The split direction. */
|
|
47
46
|
get direction(): 'horizontal' | 'vertical';
|
|
48
|
-
|
|
49
|
-
|
|
47
|
+
set direction(v: 'horizontal' | 'vertical');
|
|
48
|
+
private _direction;
|
|
49
|
+
/** The unit you want to specify area sizes. */
|
|
50
50
|
get unit(): 'percent' | 'pixel';
|
|
51
|
-
|
|
52
|
-
|
|
51
|
+
set unit(v: 'percent' | 'pixel');
|
|
52
|
+
private _unit;
|
|
53
|
+
/** Gutters's size (dragging elements) in pixels. */
|
|
53
54
|
get gutterSize(): number;
|
|
54
|
-
|
|
55
|
-
|
|
55
|
+
set gutterSize(v: number);
|
|
56
|
+
private _gutterSize;
|
|
57
|
+
/** Gutter step while moving in pixels. */
|
|
56
58
|
get gutterStep(): number;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
set gutterStep(v: number);
|
|
60
|
+
private _gutterStep;
|
|
61
|
+
/** Set to true if you want to limit gutter move to adjacent areas only. */
|
|
62
|
+
restrictMove: boolean;
|
|
63
|
+
/** Add transition when toggling visibility using `visible` or `size` changes. */
|
|
62
64
|
get useTransition(): boolean;
|
|
63
|
-
|
|
64
|
-
|
|
65
|
+
set useTransition(v: boolean);
|
|
66
|
+
private _useTransition;
|
|
67
|
+
/**
|
|
68
|
+
* Disable the dragging feature (remove cursor/image on gutters).
|
|
69
|
+
* `gutterClick`/`gutterDblClick` still emits.
|
|
70
|
+
*/
|
|
65
71
|
get disabled(): boolean;
|
|
66
|
-
|
|
67
|
-
|
|
72
|
+
set disabled(v: boolean);
|
|
73
|
+
private _disabled;
|
|
74
|
+
/** Indicates the directionality of the areas. */
|
|
68
75
|
get dir(): 'ltr' | 'rtl';
|
|
69
|
-
|
|
70
|
-
|
|
76
|
+
set dir(v: 'ltr' | 'rtl');
|
|
77
|
+
private _dir;
|
|
78
|
+
/**
|
|
79
|
+
* Milliseconds to detect a double click on a gutter. Set it around 300-500ms if
|
|
80
|
+
* you want to use `gutterDblClick` event.
|
|
81
|
+
*/
|
|
71
82
|
get gutterDblClickDuration(): number;
|
|
83
|
+
set gutterDblClickDuration(v: number);
|
|
84
|
+
private _gutterDblClickDuration;
|
|
85
|
+
/** Event emitted when drag starts. */
|
|
72
86
|
dragStart: EventEmitter<MtxSplitOutputData>;
|
|
87
|
+
/** Event emitted when drag ends. */
|
|
73
88
|
dragEnd: EventEmitter<MtxSplitOutputData>;
|
|
89
|
+
/** Event emitted when user clicks on a gutter. */
|
|
74
90
|
gutterClick: EventEmitter<MtxSplitOutputData>;
|
|
91
|
+
/** Event emitted when user double clicks on a gutter. */
|
|
75
92
|
gutterDblClick: EventEmitter<MtxSplitOutputData>;
|
|
76
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Event emitted when transition ends (could be triggered from `visible` or `size` changes).
|
|
95
|
+
* Only if `useTransition` equals true.
|
|
96
|
+
*/
|
|
77
97
|
get transitionEnd(): Observable<MtxSplitOutputAreaSizes>;
|
|
98
|
+
private transitionEndSubscriber;
|
|
78
99
|
private dragProgressSubject;
|
|
79
100
|
dragProgress$: Observable<MtxSplitOutputData>;
|
|
80
101
|
private isDragging;
|
|
@@ -106,4 +127,7 @@ export declare class MtxSplit implements AfterViewInit, OnDestroy {
|
|
|
106
127
|
ngOnDestroy(): void;
|
|
107
128
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxSplit, [null, null, null, null, { optional: true; }]>;
|
|
108
129
|
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>;
|
|
130
|
+
static ngAcceptInputType_restrictMove: unknown;
|
|
131
|
+
static ngAcceptInputType_useTransition: unknown;
|
|
132
|
+
static ngAcceptInputType_disabled: unknown;
|
|
109
133
|
}
|
package/split/utils.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ import { ElementRef } from '@angular/core';
|
|
|
2
2
|
import { MtxSplitArea, MtxSplitPoint, MtxSplitAreaSnapshot, MtxSplitSideAbsorptionCapacity, MtxSplitAreaAbsorptionCapacity } from './interfaces';
|
|
3
3
|
export declare function getPointFromEvent(event: MouseEvent | TouchEvent): MtxSplitPoint | null;
|
|
4
4
|
export declare function getElementPixelSize(elRef: ElementRef, direction: 'horizontal' | 'vertical'): number;
|
|
5
|
-
export declare function getInputBoolean(v: any): boolean;
|
|
6
5
|
export declare function getInputPositiveNumber<T>(v: any, defaultValue: T): number | T;
|
|
7
6
|
export declare function isUserSizesValid(unit: 'percent' | 'pixel', sizes: Array<number>): boolean | number | void;
|
|
8
7
|
export declare function getAreaMinSize(a: MtxSplitArea): null | number;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
@use 'sass:map';
|
|
2
2
|
@use '@material/tooltip/plain-tooltip-theme' as mdc-plain-tooltip-theme;
|
|
3
3
|
@use '@angular/material' as mat;
|
|
4
|
-
@use '../core/style/sass-utils';
|
|
5
4
|
@use '../core/theming/inspection';
|
|
6
5
|
@use '../core/theming/validation';
|
|
7
6
|
@use '../core/tokens/m2/mdc/plain-tooltip' as tokens-mdc-plain-tooltip;
|
|
@@ -12,7 +11,7 @@
|
|
|
12
11
|
}
|
|
13
12
|
@else {
|
|
14
13
|
// Add default values for tokens not related to color, typography, or density.
|
|
15
|
-
@include
|
|
14
|
+
@include mat.private-current-selector-or-root() {
|
|
16
15
|
@include mdc-plain-tooltip-theme.theme(tokens-mdc-plain-tooltip.get-unthemable-tokens());
|
|
17
16
|
}
|
|
18
17
|
}
|
|
@@ -26,7 +25,7 @@
|
|
|
26
25
|
$mdc-tooltip-color-tokens: tokens-mdc-plain-tooltip.get-color-tokens($theme);
|
|
27
26
|
|
|
28
27
|
// Add values for MDC tooltip tokens.
|
|
29
|
-
@include
|
|
28
|
+
@include mat.private-current-selector-or-root() {
|
|
30
29
|
@include mdc-plain-tooltip-theme.theme($mdc-tooltip-color-tokens);
|
|
31
30
|
}
|
|
32
31
|
}
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
$mdc-tooltip-typography-tokens: tokens-mdc-plain-tooltip.get-typography-tokens($theme);
|
|
41
40
|
|
|
42
41
|
// Add values for MDC tooltip tokens.
|
|
43
|
-
@include
|
|
42
|
+
@include mat.private-current-selector-or-root() {
|
|
44
43
|
@include mdc-plain-tooltip-theme.theme($mdc-tooltip-typography-tokens);
|
|
45
44
|
}
|
|
46
45
|
}
|
|
@@ -54,7 +53,7 @@
|
|
|
54
53
|
$mdc-tooltip-density-tokens: tokens-mdc-plain-tooltip.get-density-tokens($theme);
|
|
55
54
|
|
|
56
55
|
// Add values for MDC tooltip tokens.
|
|
57
|
-
@include
|
|
56
|
+
@include mat.private-current-selector-or-root() {
|
|
58
57
|
@include mdc-plain-tooltip-theme.theme($mdc-tooltip-density-tokens);
|
|
59
58
|
}
|
|
60
59
|
}
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
@use 'sass:color';
|
|
2
|
-
@use 'sass:list';
|
|
3
|
-
@use 'sass:map';
|
|
4
|
-
@use 'sass:meta';
|
|
5
|
-
|
|
6
|
-
/// Include content under the current selector (&) or the document root if there is no current
|
|
7
|
-
/// selector.
|
|
8
|
-
/// @param {String} $root [html] The default root selector to use when there is no current selector.
|
|
9
|
-
/// @output The given content under the current selector, or root selector if there is no current
|
|
10
|
-
/// selector.
|
|
11
|
-
/// @content Content to output under the current selector, or root selector if there is no current
|
|
12
|
-
/// selector.
|
|
13
|
-
@mixin current-selector-or-root($root: html) {
|
|
14
|
-
@if & {
|
|
15
|
-
@content;
|
|
16
|
-
}
|
|
17
|
-
@else {
|
|
18
|
-
#{$root} {
|
|
19
|
-
@content;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/// A version of the standard `map.merge` function that takes a variable number of arguments.
|
|
25
|
-
/// Each argument is merged into the final result from left to right.
|
|
26
|
-
/// @param {List} $maps The maps to combine with map.merge
|
|
27
|
-
/// @return {Map} The combined result of successively calling map.merge with each parameter.
|
|
28
|
-
@function merge-all($maps...) {
|
|
29
|
-
$result: ();
|
|
30
|
-
@each $map in $maps {
|
|
31
|
-
$result: map.merge($result, $map);
|
|
32
|
-
}
|
|
33
|
-
@return $result;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/// A version of the standard `map.deep-merge` function that takes a variable number of arguments.
|
|
37
|
-
/// Each argument is deep-merged into the final result from left to right.
|
|
38
|
-
/// @param {List} $maps The maps to combine with map.deep-merge
|
|
39
|
-
/// @return {Map} The combined result of successively calling map.deep-merge with each parameter.
|
|
40
|
-
@function deep-merge-all($maps...) {
|
|
41
|
-
$result: ();
|
|
42
|
-
@each $map in $maps {
|
|
43
|
-
$result: map.deep-merge($result, $map);
|
|
44
|
-
}
|
|
45
|
-
@return $result;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
/// Coerces the given value to a list, by converting any non-list value into a single-item list.
|
|
49
|
-
/// This should be used when dealing with user-passed lists of args to avoid confusing errors,
|
|
50
|
-
/// since Sass treats `($x)` as equivalent to `$x`.
|
|
51
|
-
/// @param {Any} $value The value to coerce to a list.
|
|
52
|
-
/// @return {List} The original $value if it was a list, otherwise a single-item list containing
|
|
53
|
-
/// $value.
|
|
54
|
-
@function coerce-to-list($value) {
|
|
55
|
-
@return if(meta.type-of($value) != 'list', ($value,), $value);
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
/// A version of the Sass `color.change` function that is safe ot use with CSS variables.
|
|
59
|
-
@function safe-color-change($color, $args...) {
|
|
60
|
-
$args: meta.keywords($args);
|
|
61
|
-
@return if(meta.type-of($color) == 'color', color.change($color, $args...), $color);
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/// Gets the given arguments as a map of keywords and validates that only supported arguments were
|
|
65
|
-
/// passed.
|
|
66
|
-
/// @param {ArgList} $args The arguments to convert to a keywords map.
|
|
67
|
-
/// @param {List} $supported-args The supported argument names.
|
|
68
|
-
/// @return {Map} The $args as a map of argument name to argument value.
|
|
69
|
-
@function validate-keyword-args($args, $supported-args) {
|
|
70
|
-
@if list.length($args) > 0 {
|
|
71
|
-
@error #{'Expected keyword args, but got positional args: '}#{$args};
|
|
72
|
-
}
|
|
73
|
-
$kwargs: meta.keywords($args);
|
|
74
|
-
@each $arg, $v in $kwargs {
|
|
75
|
-
@if list.index($supported-args, $arg) == null {
|
|
76
|
-
@error #{'Unsupported argument '}#{$arg}#{'. Valid arguments are: '}#{$supported-args};
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
@return $kwargs;
|
|
80
|
-
}
|
package/experimental/_index.scss
DELETED