@ng-matero/extensions 18.4.1 → 19.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_index.scss +3 -1
- package/alert/_alert-theme.scss +19 -8
- package/alert/alert.d.ts +1 -2
- package/button/button-loading.d.ts +1 -2
- package/checkbox-group/checkbox-group.d.ts +12 -4
- package/colorpicker/_colorpicker-theme.scss +19 -8
- package/colorpicker/colorpicker-input.d.ts +1 -3
- package/colorpicker/colorpicker-toggle.d.ts +3 -3
- package/colorpicker/colorpicker.d.ts +4 -7
- package/column-resize/column-resize-directives/column-resize-flex.d.ts +2 -1
- package/column-resize/column-resize-directives/column-resize.d.ts +2 -1
- package/column-resize/column-resize-notifier.d.ts +0 -1
- package/column-resize/column-resize.d.ts +1 -1
- package/column-resize/event-dispatcher.d.ts +0 -9
- package/column-resize/overlay-handle.d.ts +1 -1
- package/column-resize/resizable.d.ts +1 -1
- package/column-resize/resize-strategy.d.ts +4 -4
- package/core/datetime/datetime-adapter.d.ts +1 -2
- package/core/datetime/native-datetime-adapter.d.ts +3 -3
- package/core/style/_button-common.scss +18 -0
- package/core/theming/_config-validation.scss +4 -4
- package/core/theming/_definition.scss +12 -2
- package/core/theming/prebuilt/azure-blue.scss +10 -22
- package/core/theming/prebuilt/cyan-orange.scss +10 -22
- package/core/theming/prebuilt/magenta-violet.scss +10 -22
- package/core/theming/prebuilt/rose-red.scss +10 -22
- package/core/tokens/_m3-system.scss +273 -0
- package/core/tokens/_m3-tokens.scss +8 -151
- package/core/tokens/_token-utils.scss +102 -43
- package/core/tokens/m2/_index.scss +2 -0
- package/core/tokens/m3/definitions/_index.scss +1 -0
- package/core/tokens/m3/definitions/_md-comp-plain-tooltip.scss +51 -0
- package/core/tokens/m3/index.scss +2 -0
- package/core/tokens/m3/mdc/_plain-tooltip.scss +15 -0
- package/core/tokens/m3/mtx/_alert.scss +14 -14
- package/core/tokens/m3/mtx/_colorpicker.scss +2 -2
- package/core/tokens/m3/mtx/_datetimepicker.scss +2 -2
- package/core/tokens/m3/mtx/_drawer.scss +2 -2
- package/core/tokens/m3/mtx/_grid.scss +2 -2
- package/core/tokens/m3/mtx/_loader.scss +2 -2
- package/core/tokens/m3/mtx/_popover.scss +2 -2
- package/core/tokens/m3/mtx/_progress.scss +2 -2
- package/core/tokens/m3/mtx/_select.scss +2 -2
- package/core/tokens/m3/mtx/_split.scss +2 -2
- package/datetimepicker/_datetimepicker-theme.scss +23 -10
- package/datetimepicker/calendar-body.d.ts +26 -4
- package/datetimepicker/calendar-body.scss +58 -9
- package/datetimepicker/calendar.d.ts +31 -31
- package/datetimepicker/clock.d.ts +11 -5
- package/datetimepicker/datetimepicker-actions.d.ts +9 -5
- package/datetimepicker/datetimepicker-content.scss +15 -0
- package/datetimepicker/datetimepicker-input.d.ts +4 -5
- package/datetimepicker/datetimepicker-module.d.ts +2 -2
- package/datetimepicker/datetimepicker-toggle.d.ts +4 -3
- package/datetimepicker/datetimepicker.d.ts +12 -8
- package/datetimepicker/month-view.d.ts +22 -7
- package/datetimepicker/multi-year-view.d.ts +20 -20
- package/datetimepicker/public-api.d.ts +2 -2
- package/datetimepicker/{time.d.ts → time-view.d.ts} +21 -9
- package/datetimepicker/{time.scss → time-view.scss} +1 -1
- package/datetimepicker/year-view.d.ts +21 -11
- package/dialog/dialog-container.d.ts +1 -2
- package/dialog/dialog.d.ts +0 -1
- package/drawer/_drawer-theme.scss +19 -8
- package/drawer/drawer-container.d.ts +2 -5
- package/drawer/drawer.d.ts +3 -5
- package/fesm2022/mtxAlert.mjs +15 -15
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +13 -14
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +51 -31
- package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2022/mtxColorpicker.mjs +91 -109
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +79 -96
- package/fesm2022/mtxColumnResize.mjs.map +1 -1
- package/fesm2022/mtxCore.mjs +31 -36
- package/fesm2022/mtxCore.mjs.map +1 -1
- package/fesm2022/mtxDatetimepicker.mjs +1181 -1093
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +30 -41
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +36 -52
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +168 -204
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +12 -12
- package/fesm2022/mtxLoader.mjs.map +1 -1
- package/fesm2022/mtxPhotoviewer.mjs +11 -12
- package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
- package/fesm2022/mtxPopover.mjs +106 -119
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +8 -8
- package/fesm2022/mtxProgress.mjs.map +1 -1
- package/fesm2022/mtxSelect.mjs +157 -169
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +39 -40
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +105 -91
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/grid/_grid-theme.scss +23 -10
- package/grid/cell.d.ts +1 -4
- package/grid/column-resize/column-resize-directives/column-resize-flex.d.ts +0 -1
- package/grid/column-resize/column-resize-directives/column-resize.d.ts +0 -1
- package/grid/column-resize/overlay-handle.d.ts +1 -2
- package/grid/column-resize/resizable-directives/resizable.d.ts +2 -3
- package/grid/column-resize/resize-strategy.d.ts +2 -4
- package/grid/grid-pipes.d.ts +0 -2
- package/grid/grid.d.ts +5 -5
- package/grid/grid.scss +5 -6
- package/loader/_loader-theme.scss +19 -8
- package/loader/loader.d.ts +0 -2
- package/package.json +11 -47
- package/photoviewer/photoviewer.d.ts +1 -2
- package/popover/_popover-theme.scss +19 -8
- package/popover/popover-content.d.ts +1 -1
- package/popover/popover-target.d.ts +1 -2
- package/popover/popover-trigger.d.ts +5 -6
- package/popover/popover.d.ts +1 -2
- package/prebuilt-themes/azure-blue.css +1 -1
- package/prebuilt-themes/cyan-orange.css +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/magenta-violet.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/prebuilt-themes/rose-red.css +1 -1
- package/progress/_progress-theme.scss +23 -10
- package/select/_select-theme.scss +23 -10
- package/select/option.d.ts +0 -1
- package/select/select-intl.d.ts +2 -4
- package/select/select.d.ts +8 -7
- package/select/select.scss +3 -3
- package/select/templates.d.ts +0 -12
- package/split/_split-theme.scss +19 -8
- package/split/split-pane.d.ts +3 -4
- package/split/split.d.ts +4 -4
- package/split/split.scss +1 -1
- package/tooltip/_tooltip-theme.scss +11 -4
- package/tooltip/tooltip.d.ts +17 -9
- package/tooltip/tooltip.scss +8 -3
- package/esm2022/alert/alert-module.mjs +0 -17
- package/esm2022/alert/alert.mjs +0 -46
- package/esm2022/alert/mtxAlert.mjs +0 -5
- package/esm2022/alert/public-api.mjs +0 -3
- package/esm2022/button/button-loading.mjs +0 -66
- package/esm2022/button/button-module.mjs +0 -19
- package/esm2022/button/mtxButton.mjs +0 -5
- package/esm2022/button/public-api.mjs +0 -3
- package/esm2022/checkbox-group/checkbox-group-module.mjs +0 -20
- package/esm2022/checkbox-group/checkbox-group.mjs +0 -222
- package/esm2022/checkbox-group/interfaces.mjs +0 -2
- package/esm2022/checkbox-group/mtxCheckboxGroup.mjs +0 -5
- package/esm2022/checkbox-group/public-api.mjs +0 -4
- package/esm2022/colorpicker/colorpicker-animations.mjs +0 -16
- package/esm2022/colorpicker/colorpicker-input.mjs +0 -228
- package/esm2022/colorpicker/colorpicker-module.mjs +0 -64
- package/esm2022/colorpicker/colorpicker-toggle.mjs +0 -102
- package/esm2022/colorpicker/colorpicker.mjs +0 -363
- package/esm2022/colorpicker/mtxColorpicker.mjs +0 -5
- package/esm2022/colorpicker/public-api.mjs +0 -6
- package/esm2022/column-resize/column-resize-directives/column-resize-flex.mjs +0 -40
- package/esm2022/column-resize/column-resize-directives/column-resize.mjs +0 -40
- package/esm2022/column-resize/column-resize-directives/constants.mjs +0 -21
- package/esm2022/column-resize/column-resize-module.mjs +0 -28
- package/esm2022/column-resize/column-resize-notifier.mjs +0 -52
- package/esm2022/column-resize/column-resize.mjs +0 -82
- package/esm2022/column-resize/column-size-store.mjs +0 -20
- package/esm2022/column-resize/event-dispatcher.mjs +0 -70
- package/esm2022/column-resize/mtxColumnResize.mjs +0 -5
- package/esm2022/column-resize/overlay-handle.mjs +0 -146
- package/esm2022/column-resize/polyfill.mjs +0 -19
- package/esm2022/column-resize/public-api.mjs +0 -13
- package/esm2022/column-resize/resizable.mjs +0 -199
- package/esm2022/column-resize/resize-ref.mjs +0 -17
- package/esm2022/column-resize/resize-strategy.mjs +0 -238
- package/esm2022/column-resize/selectors.mjs +0 -13
- package/esm2022/core/datetime/datetime-adapter.mjs +0 -132
- package/esm2022/core/datetime/datetime-formats.mjs +0 -3
- package/esm2022/core/datetime/datetime.module.mjs +0 -38
- package/esm2022/core/datetime/index.mjs +0 -6
- package/esm2022/core/datetime/native-datetime-adapter.mjs +0 -138
- package/esm2022/core/datetime/native-datetime-formats.mjs +0 -20
- package/esm2022/core/mtxCore.mjs +0 -5
- package/esm2022/core/pipes/index.mjs +0 -4
- package/esm2022/core/pipes/is-template-ref.pipe.mjs +0 -14
- package/esm2022/core/pipes/pipes.module.mjs +0 -18
- package/esm2022/core/pipes/to-observable.pipe.mjs +0 -15
- package/esm2022/core/public-api.mjs +0 -3
- package/esm2022/datetimepicker/calendar-body.mjs +0 -77
- package/esm2022/datetimepicker/calendar.mjs +0 -661
- package/esm2022/datetimepicker/clock.mjs +0 -362
- package/esm2022/datetimepicker/datetimepicker-actions.mjs +0 -88
- package/esm2022/datetimepicker/datetimepicker-animations.mjs +0 -44
- package/esm2022/datetimepicker/datetimepicker-errors.mjs +0 -8
- package/esm2022/datetimepicker/datetimepicker-filtertype.mjs +0 -7
- package/esm2022/datetimepicker/datetimepicker-input.mjs +0 -349
- package/esm2022/datetimepicker/datetimepicker-intl.mjs +0 -63
- package/esm2022/datetimepicker/datetimepicker-module.mjs +0 -116
- package/esm2022/datetimepicker/datetimepicker-toggle.mjs +0 -105
- package/esm2022/datetimepicker/datetimepicker-types.mjs +0 -2
- package/esm2022/datetimepicker/datetimepicker.mjs +0 -580
- package/esm2022/datetimepicker/month-view.mjs +0 -148
- package/esm2022/datetimepicker/mtxDatetimepicker.mjs +0 -5
- package/esm2022/datetimepicker/multi-year-view.mjs +0 -215
- package/esm2022/datetimepicker/public-api.mjs +0 -17
- package/esm2022/datetimepicker/time.mjs +0 -470
- package/esm2022/datetimepicker/year-view.mjs +0 -139
- package/esm2022/dialog/dialog-config.mjs +0 -2
- package/esm2022/dialog/dialog-container.mjs +0 -43
- package/esm2022/dialog/dialog-module.mjs +0 -40
- package/esm2022/dialog/dialog.mjs +0 -75
- package/esm2022/dialog/mtxDialog.mjs +0 -5
- package/esm2022/dialog/public-api.mjs +0 -5
- package/esm2022/drawer/drawer-animations.mjs +0 -18
- package/esm2022/drawer/drawer-config.mjs +0 -35
- package/esm2022/drawer/drawer-container.mjs +0 -88
- package/esm2022/drawer/drawer-module.mjs +0 -21
- package/esm2022/drawer/drawer-ref.mjs +0 -99
- package/esm2022/drawer/drawer.mjs +0 -144
- package/esm2022/drawer/mtxDrawer.mjs +0 -5
- package/esm2022/drawer/public-api.mjs +0 -7
- package/esm2022/grid/cell.mjs +0 -132
- package/esm2022/grid/column-menu.mjs +0 -133
- package/esm2022/grid/column-resize/column-resize-directives/column-resize-flex.mjs +0 -38
- package/esm2022/grid/column-resize/column-resize-directives/column-resize.mjs +0 -38
- package/esm2022/grid/column-resize/column-resize-directives/common.mjs +0 -27
- package/esm2022/grid/column-resize/column-resize-module.mjs +0 -42
- package/esm2022/grid/column-resize/index.mjs +0 -8
- package/esm2022/grid/column-resize/overlay-handle.mjs +0 -66
- package/esm2022/grid/column-resize/resizable-directives/common.mjs +0 -29
- package/esm2022/grid/column-resize/resizable-directives/resizable.mjs +0 -64
- package/esm2022/grid/column-resize/resize-strategy.mjs +0 -47
- package/esm2022/grid/expansion-toggle.mjs +0 -65
- package/esm2022/grid/grid-module.mjs +0 -151
- package/esm2022/grid/grid-pipes.mjs +0 -129
- package/esm2022/grid/grid-utils.mjs +0 -56
- package/esm2022/grid/grid.mjs +0 -644
- package/esm2022/grid/interfaces.mjs +0 -2
- package/esm2022/grid/mtxGrid.mjs +0 -5
- package/esm2022/grid/public-api.mjs +0 -18
- package/esm2022/grid/selectable-cell.mjs +0 -53
- package/esm2022/loader/loader-module.mjs +0 -19
- package/esm2022/loader/loader.mjs +0 -57
- package/esm2022/loader/mtxLoader.mjs +0 -5
- package/esm2022/loader/public-api.mjs +0 -3
- package/esm2022/ng-matero-extensions.mjs +0 -5
- package/esm2022/photoviewer/mtxPhotoviewer.mjs +0 -5
- package/esm2022/photoviewer/photoviewer-module.mjs +0 -16
- package/esm2022/photoviewer/photoviewer.mjs +0 -64
- package/esm2022/photoviewer/public-api.mjs +0 -3
- package/esm2022/popover/mtxPopover.mjs +0 -5
- package/esm2022/popover/popover-animations.mjs +0 -25
- package/esm2022/popover/popover-content.mjs +0 -91
- package/esm2022/popover/popover-errors.mjs +0 -27
- package/esm2022/popover/popover-interfaces.mjs +0 -2
- package/esm2022/popover/popover-module.mjs +0 -39
- package/esm2022/popover/popover-target.mjs +0 -18
- package/esm2022/popover/popover-trigger.mjs +0 -480
- package/esm2022/popover/popover-types.mjs +0 -2
- package/esm2022/popover/popover.mjs +0 -325
- package/esm2022/popover/public-api.mjs +0 -9
- package/esm2022/progress/mtxProgress.mjs +0 -5
- package/esm2022/progress/progress-module.mjs +0 -17
- package/esm2022/progress/progress.mjs +0 -43
- package/esm2022/progress/public-api.mjs +0 -3
- package/esm2022/public-api.mjs +0 -5
- package/esm2022/select/mtxSelect.mjs +0 -5
- package/esm2022/select/option.mjs +0 -52
- package/esm2022/select/public-api.mjs +0 -6
- package/esm2022/select/select-intl.mjs +0 -32
- package/esm2022/select/select-module.mjs +0 -89
- package/esm2022/select/select.mjs +0 -611
- package/esm2022/select/templates.mjs +0 -135
- package/esm2022/split/interfaces.mjs +0 -2
- package/esm2022/split/mtxSplit.mjs +0 -5
- package/esm2022/split/public-api.mjs +0 -6
- package/esm2022/split/split-module.mjs +0 -18
- package/esm2022/split/split-pane.mjs +0 -161
- package/esm2022/split/split.mjs +0 -634
- package/esm2022/split/utils.mjs +0 -219
- package/esm2022/tooltip/mtxTooltip.mjs +0 -5
- package/esm2022/tooltip/public-api.mjs +0 -4
- package/esm2022/tooltip/tooltip-animations.mjs +0 -17
- package/esm2022/tooltip/tooltip-module.mjs +0 -41
- package/esm2022/tooltip/tooltip.mjs +0 -915
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { A11yModule } from '@angular/cdk/a11y';
|
|
2
|
-
import * as i2 from '@angular/cdk/overlay';
|
|
3
2
|
import { Overlay, OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
4
3
|
import { ComponentPortal, PortalModule } from '@angular/cdk/portal';
|
|
5
4
|
import { NgTemplateOutlet, DOCUMENT, CommonModule } from '@angular/common';
|
|
6
5
|
import * as i0 from '@angular/core';
|
|
7
|
-
import { InjectionToken, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, EventEmitter, Injector, afterNextRender, booleanAttribute,
|
|
6
|
+
import { InjectionToken, inject, ChangeDetectorRef, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, ViewContainerRef, EventEmitter, Injector, afterNextRender, booleanAttribute, Output, forwardRef, ElementRef, Directive, HostAttributeToken, ContentChild, ViewChild, NgModule } from '@angular/core';
|
|
8
7
|
import { MatIconButton, MatButtonModule } from '@angular/material/button';
|
|
9
8
|
import * as i1 from 'ngx-color/chrome';
|
|
10
9
|
import { ColorChromeModule } from 'ngx-color/chrome';
|
|
10
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
11
11
|
import { ESCAPE, hasModifierKey, UP_ARROW, DOWN_ARROW } from '@angular/cdk/keycodes';
|
|
12
12
|
import { Subject, Subscription, merge, of } from 'rxjs';
|
|
13
13
|
import { take, filter } from 'rxjs/operators';
|
|
14
14
|
import { TinyColor } from '@ctrl/tinycolor';
|
|
15
15
|
import { trigger, transition, animate, keyframes, style } from '@angular/animations';
|
|
16
|
-
import * as i3 from '@angular/cdk/bidi';
|
|
17
16
|
import { NG_VALUE_ACCESSOR, NG_VALIDATORS, Validators } from '@angular/forms';
|
|
17
|
+
import { MatFormField } from '@angular/material/form-field';
|
|
18
18
|
import { MAT_INPUT_VALUE_ACCESSOR } from '@angular/material/input';
|
|
19
|
-
import * as i1$1 from '@angular/material/form-field';
|
|
20
19
|
|
|
21
20
|
/**
|
|
22
21
|
* Animations used by the colorpicker.
|
|
@@ -52,8 +51,8 @@ const MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
|
52
51
|
useFactory: MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY,
|
|
53
52
|
};
|
|
54
53
|
class MtxColorpickerContent {
|
|
55
|
-
constructor(
|
|
56
|
-
this._changeDetectorRef =
|
|
54
|
+
constructor() {
|
|
55
|
+
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
57
56
|
/** Current state of the animation. */
|
|
58
57
|
this._animationState = 'enter-dropdown';
|
|
59
58
|
/** Emits when an animation has finished. */
|
|
@@ -74,21 +73,56 @@ class MtxColorpickerContent {
|
|
|
74
73
|
hsv: new TinyColor(e.color.hsv).toHsvString(),
|
|
75
74
|
}[this.picker.format];
|
|
76
75
|
}
|
|
77
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
78
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
76
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerContent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
77
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.4", type: MtxColorpickerContent, isStandalone: true, selector: "mtx-colorpicker-content", inputs: { color: "color" }, host: { listeners: { "@transformPanel.done": "_animationDone.next()" }, properties: { "class": "color ? \"mat-\" + color : \"\"", "@transformPanel": "_animationState" }, classAttribute: "mtx-colorpicker-content" }, exportAs: ["mtxColorpickerContent"], ngImport: i0, template: "@if (picker.content) {\n <ng-template [ngTemplateOutlet]=\"picker.content\"></ng-template>\n} @else {\n <color-chrome\n [color]=\"picker.selected\"\n (onChangeComplete)=\"picker.select(getColorString($event))\"\n />\n}\n", styles: [".mtx-colorpicker-content{display:block;border-radius:4px}\n"], dependencies: [{ kind: "ngmodule", type: ColorChromeModule }, { kind: "component", type: i1.ChromeComponent, selector: "color-chrome", inputs: ["disableAlpha"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], animations: [mtxColorpickerAnimations.transformPanel], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
79
78
|
}
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerContent, decorators: [{
|
|
81
80
|
type: Component,
|
|
82
81
|
args: [{ selector: 'mtx-colorpicker-content', host: {
|
|
83
82
|
'class': 'mtx-colorpicker-content',
|
|
84
83
|
'[class]': 'color ? "mat-" + color : ""',
|
|
85
84
|
'[@transformPanel]': '_animationState',
|
|
86
85
|
'(@transformPanel.done)': '_animationDone.next()',
|
|
87
|
-
}, animations: [mtxColorpickerAnimations.transformPanel], exportAs: 'mtxColorpickerContent', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
88
|
-
}],
|
|
86
|
+
}, animations: [mtxColorpickerAnimations.transformPanel], exportAs: 'mtxColorpickerContent', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [ColorChromeModule, NgTemplateOutlet], template: "@if (picker.content) {\n <ng-template [ngTemplateOutlet]=\"picker.content\"></ng-template>\n} @else {\n <color-chrome\n [color]=\"picker.selected\"\n (onChangeComplete)=\"picker.select(getColorString($event))\"\n />\n}\n", styles: [".mtx-colorpicker-content{display:block;border-radius:4px}\n"] }]
|
|
87
|
+
}], propDecorators: { color: [{
|
|
89
88
|
type: Input
|
|
90
89
|
}] } });
|
|
91
90
|
class MtxColorpicker {
|
|
91
|
+
constructor() {
|
|
92
|
+
this._overlay = inject(Overlay);
|
|
93
|
+
this._viewContainerRef = inject(ViewContainerRef);
|
|
94
|
+
this._dir = inject(Directionality, { optional: true });
|
|
95
|
+
this._document = inject(DOCUMENT, { optional: true });
|
|
96
|
+
this._scrollStrategy = inject(MTX_COLORPICKER_SCROLL_STRATEGY);
|
|
97
|
+
this._inputStateChanges = Subscription.EMPTY;
|
|
98
|
+
/** Emits when the colorpicker has been opened. */
|
|
99
|
+
this.openedStream = new EventEmitter();
|
|
100
|
+
/** Emits when the colorpicker has been closed. */
|
|
101
|
+
this.closedStream = new EventEmitter();
|
|
102
|
+
/** Preferred position of the colorpicker in the X axis. */
|
|
103
|
+
this.xPosition = 'start';
|
|
104
|
+
/** Preferred position of the colorpicker in the Y axis. */
|
|
105
|
+
this.yPosition = 'below';
|
|
106
|
+
/**
|
|
107
|
+
* Whether to restore focus to the previously-focused element when the panel is closed.
|
|
108
|
+
* Note that automatic focus restoration is an accessibility feature and it is recommended that
|
|
109
|
+
* you provide your own equivalent, if you decide to turn it off.
|
|
110
|
+
*/
|
|
111
|
+
this.restoreFocus = true;
|
|
112
|
+
this._opened = false;
|
|
113
|
+
/** The id for the colorpicker panel. */
|
|
114
|
+
this.id = `mtx-colorpicker-${colorpickerUid++}`;
|
|
115
|
+
this._validSelected = '';
|
|
116
|
+
/** The element that was focused before the colorpicker was opened. */
|
|
117
|
+
this._focusedElementBeforeOpen = null;
|
|
118
|
+
/** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
|
|
119
|
+
this._backdropHarnessClass = `${this.id}-backdrop`;
|
|
120
|
+
/** Emits when the colorpicker is disabled. */
|
|
121
|
+
this._disabledChange = new Subject();
|
|
122
|
+
/** Emits new selected color when selected color changes. */
|
|
123
|
+
this._selectedChanged = new Subject();
|
|
124
|
+
this._injector = inject(Injector);
|
|
125
|
+
}
|
|
92
126
|
get disabled() {
|
|
93
127
|
return this._disabled === undefined && this.pickerInput
|
|
94
128
|
? this.pickerInput.disabled
|
|
@@ -128,41 +162,6 @@ class MtxColorpicker {
|
|
|
128
162
|
set selected(value) {
|
|
129
163
|
this._validSelected = value;
|
|
130
164
|
}
|
|
131
|
-
constructor(_overlay, _viewContainerRef, scrollStrategy, _dir, _document) {
|
|
132
|
-
this._overlay = _overlay;
|
|
133
|
-
this._viewContainerRef = _viewContainerRef;
|
|
134
|
-
this._dir = _dir;
|
|
135
|
-
this._document = _document;
|
|
136
|
-
this._inputStateChanges = Subscription.EMPTY;
|
|
137
|
-
/** Emits when the colorpicker has been opened. */
|
|
138
|
-
this.openedStream = new EventEmitter();
|
|
139
|
-
/** Emits when the colorpicker has been closed. */
|
|
140
|
-
this.closedStream = new EventEmitter();
|
|
141
|
-
/** Preferred position of the colorpicker in the X axis. */
|
|
142
|
-
this.xPosition = 'start';
|
|
143
|
-
/** Preferred position of the colorpicker in the Y axis. */
|
|
144
|
-
this.yPosition = 'below';
|
|
145
|
-
/**
|
|
146
|
-
* Whether to restore focus to the previously-focused element when the panel is closed.
|
|
147
|
-
* Note that automatic focus restoration is an accessibility feature and it is recommended that
|
|
148
|
-
* you provide your own equivalent, if you decide to turn it off.
|
|
149
|
-
*/
|
|
150
|
-
this.restoreFocus = true;
|
|
151
|
-
this._opened = false;
|
|
152
|
-
/** The id for the colorpicker panel. */
|
|
153
|
-
this.id = `mtx-colorpicker-${colorpickerUid++}`;
|
|
154
|
-
this._validSelected = '';
|
|
155
|
-
/** The element that was focused before the colorpicker was opened. */
|
|
156
|
-
this._focusedElementBeforeOpen = null;
|
|
157
|
-
/** Unique class that will be added to the backdrop so that the test harnesses can look it up. */
|
|
158
|
-
this._backdropHarnessClass = `${this.id}-backdrop`;
|
|
159
|
-
/** Emits when the colorpicker is disabled. */
|
|
160
|
-
this._disabledChange = new Subject();
|
|
161
|
-
/** Emits new selected color when selected color changes. */
|
|
162
|
-
this._selectedChanged = new Subject();
|
|
163
|
-
this._injector = inject(Injector);
|
|
164
|
-
this._scrollStrategy = scrollStrategy;
|
|
165
|
-
}
|
|
166
165
|
ngOnChanges() { }
|
|
167
166
|
ngOnDestroy() {
|
|
168
167
|
this._destroyOverlay();
|
|
@@ -251,7 +250,7 @@ class MtxColorpicker {
|
|
|
251
250
|
positionStrategy: this._getDropdownStrategy(),
|
|
252
251
|
hasBackdrop: true,
|
|
253
252
|
backdropClass: ['mat-overlay-transparent-backdrop', this._backdropHarnessClass],
|
|
254
|
-
direction: this._dir,
|
|
253
|
+
direction: this._dir || undefined,
|
|
255
254
|
scrollStrategy: this._scrollStrategy(),
|
|
256
255
|
panelClass: `mtx-colorpicker-popup`,
|
|
257
256
|
})));
|
|
@@ -332,10 +331,10 @@ class MtxColorpicker {
|
|
|
332
331
|
(this.pickerInput && hasModifierKey(event, 'altKey') && event.keyCode === UP_ARROW));
|
|
333
332
|
})));
|
|
334
333
|
}
|
|
335
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
336
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "
|
|
334
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpicker, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
335
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.0.4", type: MtxColorpicker, isStandalone: true, selector: "mtx-colorpicker", inputs: { content: "content", disabled: ["disabled", "disabled", booleanAttribute], xPosition: "xPosition", yPosition: "yPosition", restoreFocus: ["restoreFocus", "restoreFocus", booleanAttribute], opened: ["opened", "opened", booleanAttribute], color: "color", format: "format" }, outputs: { openedStream: "opened", closedStream: "closed" }, exportAs: ["mtxColorpicker"], usesOnChanges: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
337
336
|
}
|
|
338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpicker, decorators: [{
|
|
339
338
|
type: Component,
|
|
340
339
|
args: [{
|
|
341
340
|
selector: 'mtx-colorpicker',
|
|
@@ -343,19 +342,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
343
342
|
exportAs: 'mtxColorpicker',
|
|
344
343
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
345
344
|
encapsulation: ViewEncapsulation.None,
|
|
346
|
-
standalone: true,
|
|
347
345
|
}]
|
|
348
|
-
}],
|
|
349
|
-
type: Inject,
|
|
350
|
-
args: [MTX_COLORPICKER_SCROLL_STRATEGY]
|
|
351
|
-
}] }, { type: i3.Directionality, decorators: [{
|
|
352
|
-
type: Optional
|
|
353
|
-
}] }, { type: undefined, decorators: [{
|
|
354
|
-
type: Optional
|
|
355
|
-
}, {
|
|
356
|
-
type: Inject,
|
|
357
|
-
args: [DOCUMENT]
|
|
358
|
-
}] }], propDecorators: { content: [{
|
|
346
|
+
}], propDecorators: { content: [{
|
|
359
347
|
type: Input
|
|
360
348
|
}], openedStream: [{
|
|
361
349
|
type: Output,
|
|
@@ -404,6 +392,28 @@ const MTX_COLORPICKER_VALIDATORS = {
|
|
|
404
392
|
multi: true,
|
|
405
393
|
};
|
|
406
394
|
class MtxColorpickerInput {
|
|
395
|
+
constructor() {
|
|
396
|
+
this._elementRef = inject(ElementRef);
|
|
397
|
+
this._formField = inject(MatFormField, { optional: true });
|
|
398
|
+
/** The input and output color format. */
|
|
399
|
+
this.format = 'hex';
|
|
400
|
+
/** Emits when a `change` event is fired on this `<input>`. */
|
|
401
|
+
this.colorChange = new EventEmitter();
|
|
402
|
+
/** Emits when an `input` event is fired on this `<input>`. */
|
|
403
|
+
this.colorInput = new EventEmitter();
|
|
404
|
+
/** Emits when the disabled state has changed */
|
|
405
|
+
this._disabledChange = new EventEmitter();
|
|
406
|
+
/** Emits when the value changes (either due to user input or programmatic change). */
|
|
407
|
+
this._valueChange = new EventEmitter();
|
|
408
|
+
this._onTouched = () => { };
|
|
409
|
+
this._validatorOnChange = () => { };
|
|
410
|
+
this._cvaOnChange = () => { };
|
|
411
|
+
this._pickerSubscription = Subscription.EMPTY;
|
|
412
|
+
/** The combined form control validator for this input. */
|
|
413
|
+
this._validator = Validators.compose([]);
|
|
414
|
+
/** Whether the last value set on the input was valid. */
|
|
415
|
+
this._lastValueValid = false;
|
|
416
|
+
}
|
|
407
417
|
set mtxColorpicker(value) {
|
|
408
418
|
if (!value) {
|
|
409
419
|
return;
|
|
@@ -450,28 +460,6 @@ class MtxColorpickerInput {
|
|
|
450
460
|
this._formatValue(value);
|
|
451
461
|
this._valueChange.emit(value);
|
|
452
462
|
}
|
|
453
|
-
constructor(_elementRef, _formField) {
|
|
454
|
-
this._elementRef = _elementRef;
|
|
455
|
-
this._formField = _formField;
|
|
456
|
-
/** The input and output color format. */
|
|
457
|
-
this.format = 'hex';
|
|
458
|
-
/** Emits when a `change` event is fired on this `<input>`. */
|
|
459
|
-
this.colorChange = new EventEmitter();
|
|
460
|
-
/** Emits when an `input` event is fired on this `<input>`. */
|
|
461
|
-
this.colorInput = new EventEmitter();
|
|
462
|
-
/** Emits when the disabled state has changed */
|
|
463
|
-
this._disabledChange = new EventEmitter();
|
|
464
|
-
/** Emits when the value changes (either due to user input or programmatic change). */
|
|
465
|
-
this._valueChange = new EventEmitter();
|
|
466
|
-
this._onTouched = () => { };
|
|
467
|
-
this._validatorOnChange = () => { };
|
|
468
|
-
this._cvaOnChange = () => { };
|
|
469
|
-
this._pickerSubscription = Subscription.EMPTY;
|
|
470
|
-
/** The combined form control validator for this input. */
|
|
471
|
-
this._validator = Validators.compose([]);
|
|
472
|
-
/** Whether the last value set on the input was valid. */
|
|
473
|
-
this._lastValueValid = false;
|
|
474
|
-
}
|
|
475
463
|
ngAfterViewInit() {
|
|
476
464
|
this._isInitialized = true;
|
|
477
465
|
}
|
|
@@ -557,14 +545,14 @@ class MtxColorpickerInput {
|
|
|
557
545
|
_formatValue(value) {
|
|
558
546
|
this._elementRef.nativeElement.value = value ? value : '';
|
|
559
547
|
}
|
|
560
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
561
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "
|
|
548
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerInput, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
549
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "19.0.4", type: MtxColorpickerInput, isStandalone: true, selector: "input[mtxColorpicker]", inputs: { mtxColorpicker: "mtxColorpicker", disabled: ["disabled", "disabled", booleanAttribute], value: "value", format: "format" }, outputs: { colorChange: "colorChange", colorInput: "colorInput" }, host: { listeners: { "input": "_onInput($event.target.value)", "change": "_onChange()", "blur": "_onBlur()", "keydown": "_onKeydown($event)" }, properties: { "attr.aria-haspopup": "_picker ? \"dialog\" : null", "attr.aria-owns": "(_picker?.opened && _picker.id) || null", "disabled": "disabled" }, classAttribute: "mtx-colorpicker-input" }, providers: [
|
|
562
550
|
MTX_COLORPICKER_VALUE_ACCESSOR,
|
|
563
551
|
MTX_COLORPICKER_VALIDATORS,
|
|
564
552
|
{ provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MtxColorpickerInput },
|
|
565
553
|
], exportAs: ["mtxColorpickerInput"], ngImport: i0 }); }
|
|
566
554
|
}
|
|
567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerInput, decorators: [{
|
|
568
556
|
type: Directive,
|
|
569
557
|
args: [{
|
|
570
558
|
selector: 'input[mtxColorpicker]',
|
|
@@ -584,11 +572,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
584
572
|
'(keydown)': '_onKeydown($event)',
|
|
585
573
|
},
|
|
586
574
|
exportAs: 'mtxColorpickerInput',
|
|
587
|
-
standalone: true,
|
|
588
575
|
}]
|
|
589
|
-
}],
|
|
590
|
-
type: Optional
|
|
591
|
-
}] }], propDecorators: { mtxColorpicker: [{
|
|
576
|
+
}], propDecorators: { mtxColorpicker: [{
|
|
592
577
|
type: Input
|
|
593
578
|
}], disabled: [{
|
|
594
579
|
type: Input,
|
|
@@ -605,14 +590,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
605
590
|
|
|
606
591
|
/** Can be used to override the icon of a `mtxColorpickerToggle`. */
|
|
607
592
|
class MtxColorpickerToggleIcon {
|
|
608
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
609
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
593
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
594
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.0.4", type: MtxColorpickerToggleIcon, isStandalone: true, selector: "[mtxColorpickerToggleIcon]", ngImport: i0 }); }
|
|
610
595
|
}
|
|
611
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerToggleIcon, decorators: [{
|
|
612
597
|
type: Directive,
|
|
613
598
|
args: [{
|
|
614
599
|
selector: '[mtxColorpickerToggleIcon]',
|
|
615
|
-
standalone: true,
|
|
616
600
|
}]
|
|
617
601
|
}] });
|
|
618
602
|
class MtxColorpickerToggle {
|
|
@@ -626,9 +610,10 @@ class MtxColorpickerToggle {
|
|
|
626
610
|
set disabled(value) {
|
|
627
611
|
this._disabled = value;
|
|
628
612
|
}
|
|
629
|
-
constructor(
|
|
630
|
-
this._changeDetectorRef =
|
|
613
|
+
constructor() {
|
|
614
|
+
this._changeDetectorRef = inject(ChangeDetectorRef);
|
|
631
615
|
this._stateChanges = Subscription.EMPTY;
|
|
616
|
+
const defaultTabIndex = inject(new HostAttributeToken('tabindex'), { optional: true });
|
|
632
617
|
const parsedTabIndex = Number(defaultTabIndex);
|
|
633
618
|
this.tabIndex = parsedTabIndex || parsedTabIndex === 0 ? parsedTabIndex : null;
|
|
634
619
|
}
|
|
@@ -660,10 +645,10 @@ class MtxColorpickerToggle {
|
|
|
660
645
|
this._stateChanges.unsubscribe();
|
|
661
646
|
this._stateChanges = merge(pickerDisabled, inputDisabled, pickerToggled).subscribe(() => this._changeDetectorRef.markForCheck());
|
|
662
647
|
}
|
|
663
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
664
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
648
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerToggle, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
649
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.0.4", type: MtxColorpickerToggle, isStandalone: true, selector: "mtx-colorpicker-toggle", inputs: { picker: ["for", "picker"], tabIndex: "tabIndex", ariaLabel: ["aria-label", "ariaLabel"], disabled: ["disabled", "disabled", booleanAttribute], disableRipple: ["disableRipple", "disableRipple", booleanAttribute] }, host: { listeners: { "click": "_open($event)" }, properties: { "attr.tabindex": "null", "class.mtx-colorpicker-toggle-active": "picker && picker.opened", "class.mat-accent": "picker && picker.color === \"accent\"", "class.mat-warn": "picker && picker.color === \"warn\"" }, classAttribute: "mtx-colorpicker-toggle" }, queries: [{ propertyName: "_customIcon", first: true, predicate: MtxColorpickerToggleIcon, descendants: true }], viewQueries: [{ propertyName: "_button", first: true, predicate: ["button"], descendants: true }], exportAs: ["mtxColorpickerToggle"], usesOnChanges: true, ngImport: i0, template: "<button\n #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\"\n>\n @if (!_customIcon) {\n <svg\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\"\n >\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\"\n />\n </svg>\n }\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mtx-colorpicker-toggle{pointer-events:auto;color:var(--mtx-colorpicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mtx-colorpicker-toggle-active{color:var(--mtx-colorpicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media (forced-colors: active){.mtx-colorpicker-toggle-default-icon{color:CanvasText}}\n"], dependencies: [{ kind: "component", type: MatIconButton, selector: "button[mat-icon-button]", exportAs: ["matButton"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
665
650
|
}
|
|
666
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
651
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerToggle, decorators: [{
|
|
667
652
|
type: Component,
|
|
668
653
|
args: [{ selector: 'mtx-colorpicker-toggle', host: {
|
|
669
654
|
'class': 'mtx-colorpicker-toggle',
|
|
@@ -675,11 +660,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
675
660
|
// `stopPropagation` on it without affecting the user's `click` handlers. We need to stop
|
|
676
661
|
// it so that the input doesn't get focused automatically by the form field (See #21836).
|
|
677
662
|
'(click)': '_open($event)',
|
|
678
|
-
}, exportAs: 'mtxColorpickerToggle', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush,
|
|
679
|
-
}], ctorParameters: () => [
|
|
680
|
-
type: Attribute,
|
|
681
|
-
args: ['tabindex']
|
|
682
|
-
}] }], propDecorators: { picker: [{
|
|
663
|
+
}, exportAs: 'mtxColorpickerToggle', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [MatIconButton], template: "<button\n #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\"\n>\n @if (!_customIcon) {\n <svg\n class=\"mtx-colorpicker-toggle-default-icon\"\n viewBox=\"0 0 24 24\"\n width=\"24px\"\n height=\"24px\"\n fill=\"currentColor\"\n focusable=\"false\"\n >\n <path\n d=\"M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z\"\n />\n </svg>\n }\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mtx-colorpicker-toggle{pointer-events:auto;color:var(--mtx-colorpicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mtx-colorpicker-toggle-active{color:var(--mtx-colorpicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media (forced-colors: active){.mtx-colorpicker-toggle-default-icon{color:CanvasText}}\n"] }]
|
|
664
|
+
}], ctorParameters: () => [], propDecorators: { picker: [{
|
|
683
665
|
type: Input,
|
|
684
666
|
args: ['for']
|
|
685
667
|
}], tabIndex: [{
|
|
@@ -702,8 +684,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImpor
|
|
|
702
684
|
}] } });
|
|
703
685
|
|
|
704
686
|
class MtxColorpickerModule {
|
|
705
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
706
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
687
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
688
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerModule, imports: [CommonModule,
|
|
707
689
|
OverlayModule,
|
|
708
690
|
A11yModule,
|
|
709
691
|
PortalModule,
|
|
@@ -718,7 +700,7 @@ class MtxColorpickerModule {
|
|
|
718
700
|
MtxColorpickerInput,
|
|
719
701
|
MtxColorpickerToggle,
|
|
720
702
|
MtxColorpickerToggleIcon] }); }
|
|
721
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
703
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerModule, providers: [MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [CommonModule,
|
|
722
704
|
OverlayModule,
|
|
723
705
|
A11yModule,
|
|
724
706
|
PortalModule,
|
|
@@ -727,7 +709,7 @@ class MtxColorpickerModule {
|
|
|
727
709
|
MtxColorpickerContent,
|
|
728
710
|
MtxColorpickerToggle] }); }
|
|
729
711
|
}
|
|
730
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
712
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.4", ngImport: i0, type: MtxColorpickerModule, decorators: [{
|
|
731
713
|
type: NgModule,
|
|
732
714
|
args: [{
|
|
733
715
|
imports: [
|