@ng-matero/extensions 13.0.1 → 13.1.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.
Files changed (144) hide show
  1. package/_all-theme.scss +2 -0
  2. package/_index.scss +1 -0
  3. package/_theming.scss +1 -0
  4. package/drawer/_drawer-theme.import.scss +2 -0
  5. package/drawer/_drawer-theme.scss +40 -0
  6. package/drawer/drawer-animation.d.ts +5 -0
  7. package/drawer/drawer-config.d.ts +53 -0
  8. package/drawer/drawer-container.d.ts +83 -0
  9. package/drawer/drawer-container.scss +32 -0
  10. package/drawer/drawer-module.d.ts +10 -0
  11. package/drawer/drawer-ref.d.ts +44 -0
  12. package/drawer/drawer.d.ts +61 -0
  13. package/drawer/mtxDrawer.d.ts +5 -0
  14. package/drawer/package.json +10 -0
  15. package/drawer/public-api.d.ts +6 -0
  16. package/esm2020/alert/alert.component.mjs +3 -3
  17. package/esm2020/alert/alert.module.mjs +4 -4
  18. package/esm2020/button/button-loading.directive.mjs +3 -3
  19. package/esm2020/button/button.module.mjs +4 -4
  20. package/esm2020/checkbox-group/checkbox-group.component.mjs +3 -3
  21. package/esm2020/checkbox-group/checkbox-group.module.mjs +4 -4
  22. package/esm2020/colorpicker/colorpicker-input.mjs +3 -3
  23. package/esm2020/colorpicker/colorpicker-module.mjs +4 -4
  24. package/esm2020/colorpicker/colorpicker-toggle.mjs +6 -6
  25. package/esm2020/colorpicker/colorpicker.mjs +6 -6
  26. package/esm2020/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
  27. package/esm2020/column-resize/column-resize-directives/column-resize.mjs +3 -3
  28. package/esm2020/column-resize/column-resize-module.mjs +4 -4
  29. package/esm2020/column-resize/column-resize-notifier.mjs +6 -6
  30. package/esm2020/column-resize/column-resize.mjs +3 -3
  31. package/esm2020/column-resize/column-size-store.mjs +3 -3
  32. package/esm2020/column-resize/event-dispatcher.mjs +3 -3
  33. package/esm2020/column-resize/overlay-handle.mjs +3 -3
  34. package/esm2020/column-resize/resizable.mjs +3 -3
  35. package/esm2020/column-resize/resize-strategy.mjs +9 -9
  36. package/esm2020/core/datetime/datetime.module.mjs +8 -8
  37. package/esm2020/core/datetime/native-datetime-adapter.mjs +3 -3
  38. package/esm2020/core/pipes/pipes.module.mjs +4 -4
  39. package/esm2020/core/pipes/to-observable.pipe.mjs +3 -3
  40. package/esm2020/datetimepicker/calendar-body.mjs +3 -3
  41. package/esm2020/datetimepicker/calendar.mjs +3 -3
  42. package/esm2020/datetimepicker/clock.mjs +3 -3
  43. package/esm2020/datetimepicker/datetimepicker-input.mjs +3 -3
  44. package/esm2020/datetimepicker/datetimepicker-module.mjs +4 -4
  45. package/esm2020/datetimepicker/datetimepicker-toggle.mjs +6 -6
  46. package/esm2020/datetimepicker/datetimepicker.mjs +6 -6
  47. package/esm2020/datetimepicker/month-view.mjs +3 -3
  48. package/esm2020/datetimepicker/multi-year-view.mjs +3 -3
  49. package/esm2020/datetimepicker/year-view.mjs +3 -3
  50. package/esm2020/dialog/dialog.component.mjs +3 -3
  51. package/esm2020/dialog/dialog.mjs +3 -3
  52. package/esm2020/dialog/dialog.module.mjs +4 -4
  53. package/esm2020/drawer/drawer-animation.mjs +18 -0
  54. package/esm2020/drawer/drawer-config.mjs +39 -0
  55. package/esm2020/drawer/drawer-container.mjs +242 -0
  56. package/esm2020/drawer/drawer-module.mjs +22 -0
  57. package/esm2020/drawer/drawer-ref.mjs +90 -0
  58. package/esm2020/drawer/drawer.mjs +166 -0
  59. package/esm2020/drawer/mtxDrawer.mjs +5 -0
  60. package/esm2020/drawer/public-api.mjs +7 -0
  61. package/esm2020/form-group/form-group.component.mjs +3 -3
  62. package/esm2020/form-group/form-group.module.mjs +4 -4
  63. package/esm2020/grid/cell.component.mjs +6 -6
  64. package/esm2020/grid/column-menu.component.mjs +3 -3
  65. package/esm2020/grid/column-resize/column-resize-directives/column-resize-flex.mjs +3 -3
  66. package/esm2020/grid/column-resize/column-resize-directives/column-resize.mjs +3 -3
  67. package/esm2020/grid/column-resize/column-resize-module.mjs +8 -8
  68. package/esm2020/grid/column-resize/overlay-handle.mjs +3 -3
  69. package/esm2020/grid/column-resize/resizable-directives/resizable.mjs +3 -3
  70. package/esm2020/grid/column-resize/resize-strategy.mjs +3 -3
  71. package/esm2020/grid/expansion-toggle.directive.mjs +3 -3
  72. package/esm2020/grid/grid.component.mjs +6 -6
  73. package/esm2020/grid/grid.module.mjs +4 -4
  74. package/esm2020/grid/grid.service.mjs +3 -3
  75. package/esm2020/loader/loader.component.mjs +3 -3
  76. package/esm2020/loader/loader.module.mjs +4 -4
  77. package/esm2020/popover/popover-module.mjs +4 -4
  78. package/esm2020/popover/popover-target.mjs +3 -3
  79. package/esm2020/popover/popover-trigger.mjs +3 -3
  80. package/esm2020/popover/popover.mjs +8 -12
  81. package/esm2020/progress/progress.component.mjs +3 -3
  82. package/esm2020/progress/progress.module.mjs +4 -4
  83. package/esm2020/select/option.component.mjs +3 -3
  84. package/esm2020/select/select.component.mjs +5 -4
  85. package/esm2020/select/select.module.mjs +4 -4
  86. package/esm2020/select/templates.directive.mjs +33 -33
  87. package/esm2020/slider/slider-module.mjs +4 -4
  88. package/esm2020/slider/slider.mjs +3 -3
  89. package/esm2020/split/split-pane.directive.mjs +3 -3
  90. package/esm2020/split/split.component.mjs +3 -3
  91. package/esm2020/split/split.module.mjs +4 -4
  92. package/esm2020/text3d/text3d.component.mjs +3 -3
  93. package/esm2020/text3d/text3d.module.mjs +4 -4
  94. package/esm2020/tooltip/tooltip-module.mjs +4 -4
  95. package/esm2020/tooltip/tooltip.mjs +6 -6
  96. package/fesm2015/mtxAlert.mjs +7 -7
  97. package/fesm2015/mtxButton.mjs +7 -7
  98. package/fesm2015/mtxCheckboxGroup.mjs +7 -7
  99. package/fesm2015/mtxColorpicker.mjs +19 -19
  100. package/fesm2015/mtxColumnResize.mjs +40 -40
  101. package/fesm2015/mtxCore.mjs +18 -18
  102. package/fesm2015/mtxDatetimepicker.mjs +37 -37
  103. package/fesm2015/mtxDialog.mjs +10 -10
  104. package/fesm2015/mtxDrawer.mjs +572 -0
  105. package/fesm2015/mtxDrawer.mjs.map +1 -0
  106. package/fesm2015/mtxFormGroup.mjs +7 -7
  107. package/fesm2015/mtxGrid.mjs +47 -47
  108. package/fesm2015/mtxGrid.mjs.map +1 -1
  109. package/fesm2015/mtxLoader.mjs +7 -7
  110. package/fesm2015/mtxPopover.mjs +17 -21
  111. package/fesm2015/mtxPopover.mjs.map +1 -1
  112. package/fesm2015/mtxProgress.mjs +7 -7
  113. package/fesm2015/mtxSelect.mjs +44 -43
  114. package/fesm2015/mtxSelect.mjs.map +1 -1
  115. package/fesm2015/mtxSlider.mjs +7 -7
  116. package/fesm2015/mtxSplit.mjs +10 -10
  117. package/fesm2015/mtxText3d.mjs +7 -7
  118. package/fesm2015/mtxTooltip.mjs +10 -10
  119. package/fesm2020/mtxAlert.mjs +7 -7
  120. package/fesm2020/mtxButton.mjs +7 -7
  121. package/fesm2020/mtxCheckboxGroup.mjs +7 -7
  122. package/fesm2020/mtxColorpicker.mjs +19 -19
  123. package/fesm2020/mtxColumnResize.mjs +40 -40
  124. package/fesm2020/mtxCore.mjs +18 -18
  125. package/fesm2020/mtxDatetimepicker.mjs +37 -37
  126. package/fesm2020/mtxDialog.mjs +10 -10
  127. package/fesm2020/mtxDrawer.mjs +568 -0
  128. package/fesm2020/mtxDrawer.mjs.map +1 -0
  129. package/fesm2020/mtxFormGroup.mjs +7 -7
  130. package/fesm2020/mtxGrid.mjs +47 -47
  131. package/fesm2020/mtxGrid.mjs.map +1 -1
  132. package/fesm2020/mtxLoader.mjs +7 -7
  133. package/fesm2020/mtxPopover.mjs +17 -21
  134. package/fesm2020/mtxPopover.mjs.map +1 -1
  135. package/fesm2020/mtxProgress.mjs +7 -7
  136. package/fesm2020/mtxSelect.mjs +44 -43
  137. package/fesm2020/mtxSelect.mjs.map +1 -1
  138. package/fesm2020/mtxSlider.mjs +7 -7
  139. package/fesm2020/mtxSplit.mjs +10 -10
  140. package/fesm2020/mtxText3d.mjs +7 -7
  141. package/fesm2020/mtxTooltip.mjs +10 -10
  142. package/grid/cell.component.d.ts +1 -1
  143. package/package.json +9 -1
  144. package/popover/popover.d.ts +0 -4
package/_all-theme.scss CHANGED
@@ -2,6 +2,7 @@
2
2
  @use './alert/alert-theme';
3
3
  @use './colorpicker/colorpicker-theme';
4
4
  @use './datetimepicker/datetimepicker-theme';
5
+ @use './drawer/drawer-theme';
5
6
  @use './grid/grid-theme';
6
7
  @use './loader/loader-theme';
7
8
  @use './popover/popover-theme';
@@ -18,6 +19,7 @@
18
19
  @include alert-theme.theme($theme);
19
20
  @include colorpicker-theme.theme($theme);
20
21
  @include datetimepicker-theme.theme($theme);
22
+ @include drawer-theme.theme($theme);
21
23
  @include grid-theme.theme($theme);
22
24
  @include loader-theme.theme($theme);
23
25
  @include popover-theme.theme($theme);
package/_index.scss CHANGED
@@ -5,6 +5,7 @@
5
5
  @forward './alert/alert-theme' as alert-* show alert-theme;
6
6
  @forward './colorpicker/colorpicker-theme' as colorpicker-* show colorpicker-theme;
7
7
  @forward './datetimepicker/datetimepicker-theme' as datetimepicker-* show datetimepicker-theme;
8
+ @forward './drawer/drawer-theme' as drawer-* show drawer-theme;
8
9
  @forward './grid/grid-theme' as grid-* show grid-theme;
9
10
  @forward './loader/loader-theme' as loader-* show loader-theme;
10
11
  @forward './popover/popover-theme' as popover-* show popover-theme;
package/_theming.scss CHANGED
@@ -5,6 +5,7 @@
5
5
  @forward './alert/alert-theme.import';
6
6
  @forward './colorpicker/colorpicker-theme.import';
7
7
  @forward './datetimepicker/datetimepicker-theme.import';
8
+ @forward './drawer/drawer-theme.import';
8
9
  @forward './grid/grid-theme.import';
9
10
  @forward './loader/loader-theme.import';
10
11
  @forward './popover/popover-theme.import';
@@ -0,0 +1,2 @@
1
+ @forward 'drawer-theme' hide color, theme, typography;
2
+ @forward 'drawer-theme' as mtx-drawer-* hide mtx-drawer-density;
@@ -0,0 +1,40 @@
1
+ @use 'sass:map';
2
+ @use '../core/theming/theming';
3
+ @use '../core/theming/palette';
4
+ @use '../core/style/private';
5
+
6
+ @mixin color($config-or-theme) {
7
+ $config: theming.get-color-config($config-or-theme);
8
+ $background: map.get($config, background);
9
+ $foreground: map.get($config, foreground);
10
+
11
+ .mtx-drawer-container {
12
+ @include private.private-theme-elevation(16, $config);
13
+
14
+ background: theming.get-color-from-palette($background, dialog);
15
+ color: theming.get-color-from-palette($foreground, text);
16
+ }
17
+ }
18
+
19
+ @mixin typography($config-or-theme) {}
20
+
21
+ @mixin _density($config-or-theme) {}
22
+
23
+ @mixin theme($theme-or-color-config) {
24
+ $theme: theming.private-legacy-get-theme($theme-or-color-config);
25
+ @include theming.private-check-duplicate-theme-styles($theme, 'mtx-drawer') {
26
+ $color: theming.get-color-config($theme);
27
+ $density: theming.get-density-config($theme);
28
+ $typography: theming.get-typography-config($theme);
29
+
30
+ @if $color != null {
31
+ @include color($color);
32
+ }
33
+ @if $density != null {
34
+ @include _density($density);
35
+ }
36
+ @if $typography != null {
37
+ @include typography($typography);
38
+ }
39
+ }
40
+ }
@@ -0,0 +1,5 @@
1
+ import { AnimationTriggerMetadata } from '@angular/animations';
2
+ /** Animations used by the drawer. */
3
+ export declare const mtxDrawerAnimations: {
4
+ readonly drawerState: AnimationTriggerMetadata;
5
+ };
@@ -0,0 +1,53 @@
1
+ import { Direction } from '@angular/cdk/bidi';
2
+ import { ScrollStrategy } from '@angular/cdk/overlay';
3
+ import { ViewContainerRef } from '@angular/core';
4
+ /** Options for where to set focus to automatically on dialog open */
5
+ export declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
6
+ /** Possible overrides for a drawer's position. */
7
+ export declare type DrawerPosition = 'top' | 'bottom' | 'left' | 'right';
8
+ /**
9
+ * Configuration used when opening a drawer.
10
+ */
11
+ export declare class MtxDrawerConfig<D = any> {
12
+ /** The view container to place the overlay for the drawer into. */
13
+ viewContainerRef?: ViewContainerRef;
14
+ /** Extra CSS classes to be added to the drawer container. */
15
+ panelClass?: string | string[];
16
+ /** Text layout direction for the drawer. */
17
+ direction?: Direction;
18
+ /** Data being injected into the child component. */
19
+ data?: D | null;
20
+ /** Whether the drawer has a backdrop. */
21
+ hasBackdrop?: boolean;
22
+ /** Custom class for the backdrop. */
23
+ backdropClass?: string;
24
+ /** Whether the user can use escape or clicking outside to close the drawer. */
25
+ disableClose?: boolean;
26
+ /** Aria label to assign to the drawer element. */
27
+ ariaLabel?: string | null;
28
+ /**
29
+ * Whether the drawer should close when the user goes backwards/forwards in history.
30
+ * Note that this usually doesn't include clicking on links (unless the user is using
31
+ * the `HashLocationStrategy`).
32
+ */
33
+ closeOnNavigation?: boolean;
34
+ /**
35
+ * Where the drawer should focus on open.
36
+ * @breaking-change 14.0.0 Remove boolean option from autoFocus. Use string or
37
+ * AutoFocusTarget instead.
38
+ */
39
+ autoFocus?: AutoFocusTarget | string | boolean;
40
+ /**
41
+ * Whether the drawer should restore focus to the
42
+ * previously-focused element, after it's closed.
43
+ */
44
+ restoreFocus?: boolean;
45
+ /** Scroll strategy to be used for the drawer. */
46
+ scrollStrategy?: ScrollStrategy;
47
+ /** Position of the drawer */
48
+ position?: DrawerPosition;
49
+ /** Width of the drawer. */
50
+ width?: string;
51
+ /** Height of the drawer. */
52
+ height?: string;
53
+ }
@@ -0,0 +1,83 @@
1
+ import { AnimationEvent } from '@angular/animations';
2
+ import { FocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';
3
+ import { BreakpointObserver } from '@angular/cdk/layout';
4
+ import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, DomPortal, TemplatePortal } from '@angular/cdk/portal';
5
+ import { ChangeDetectorRef, ComponentRef, ElementRef, EmbeddedViewRef, EventEmitter, NgZone, OnDestroy } from '@angular/core';
6
+ import { MtxDrawerConfig } from './drawer-config';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * Internal component that wraps user-provided drawer content.
10
+ * @docs-private
11
+ */
12
+ export declare class MtxDrawerContainer extends BasePortalOutlet implements OnDestroy {
13
+ private _elementRef;
14
+ private _changeDetectorRef;
15
+ private _focusTrapFactory;
16
+ private readonly _interactivityChecker;
17
+ private readonly _ngZone;
18
+ /** The drawer configuration. */
19
+ drawerConfig: MtxDrawerConfig;
20
+ private _breakpointSubscription;
21
+ /** The portal outlet inside of this container into which the content will be loaded. */
22
+ _portalOutlet: CdkPortalOutlet;
23
+ /** The state of the drawer animations. */
24
+ _animationState: 'void' | 'visible' | 'hidden';
25
+ /** Emits whenever the state of the animation changes. */
26
+ _animationStateChanged: EventEmitter<AnimationEvent>;
27
+ /** The class that traps and manages focus within the drawer. */
28
+ private _focusTrap;
29
+ /** Element that was focused before the drawer was opened. */
30
+ private _elementFocusedBeforeOpened;
31
+ /** Server-side rendering-compatible reference to the global document object. */
32
+ private _document;
33
+ /** Whether the component has been destroyed. */
34
+ private _destroyed;
35
+ get drawerPosition(): string;
36
+ get drawerWidth(): string | undefined;
37
+ get drawerHeight(): string | undefined;
38
+ constructor(_elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, _focusTrapFactory: FocusTrapFactory, _interactivityChecker: InteractivityChecker, _ngZone: NgZone, breakpointObserver: BreakpointObserver, document: any,
39
+ /** The drawer configuration. */
40
+ drawerConfig: MtxDrawerConfig);
41
+ /** Attach a component portal as content to this drawer container. */
42
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
43
+ /** Attach a template portal as content to this drawer container. */
44
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
45
+ /**
46
+ * Attaches a DOM portal to the drawer container.
47
+ * @deprecated To be turned into a method.
48
+ * @breaking-change 10.0.0
49
+ */
50
+ attachDomPortal: (portal: DomPortal) => void;
51
+ /** Begin animation of drawer entrance into view. */
52
+ enter(): void;
53
+ /** Begin animation of the drawer exiting from view. */
54
+ exit(): void;
55
+ ngOnDestroy(): void;
56
+ _onAnimationDone(event: AnimationEvent): void;
57
+ _onAnimationStart(event: AnimationEvent): void;
58
+ private _toggleClass;
59
+ private _validatePortalAttached;
60
+ private _setPanelClass;
61
+ /**
62
+ * Focuses the provided element. If the element is not focusable, it will add a tabIndex
63
+ * attribute to forcefully focus it. The attribute is removed after focus is moved.
64
+ * @param element The element to focus.
65
+ */
66
+ private _forceFocus;
67
+ /**
68
+ * Focuses the first element that matches the given selector within the focus trap.
69
+ * @param selector The CSS selector for the element to set focus to.
70
+ */
71
+ private _focusByCssSelector;
72
+ /**
73
+ * Moves the focus inside the focus trap. When autoFocus is not set to 'bottom-sheet',
74
+ * if focus cannot be moved then focus will go to the drawer container.
75
+ */
76
+ private _trapFocus;
77
+ /** Restores focus to the element that was focused before the drawer was opened. */
78
+ private _restoreFocus;
79
+ /** Saves a reference to the element that was focused before the drawer was opened. */
80
+ private _savePreviouslyFocusedElement;
81
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxDrawerContainer, [null, null, null, null, null, null, { optional: true; }, null]>;
82
+ static ɵcmp: i0.ɵɵComponentDeclaration<MtxDrawerContainer, "mtx-drawer-container", never, {}, {}, never, never>;
83
+ }
@@ -0,0 +1,32 @@
1
+ @use '@angular/cdk' as cdk;
2
+
3
+ .mtx-drawer-container {
4
+ display: block;
5
+ outline: 0;
6
+
7
+ @include cdk.high-contrast(active, off) {
8
+ outline: 1px solid;
9
+ }
10
+ }
11
+
12
+ .mtx-drawer-content-wrapper {
13
+ box-sizing: border-box;
14
+ padding: 8px 16px;
15
+ overflow: auto;
16
+ }
17
+
18
+ .mtx-drawer-right {
19
+ transform: translateX(100%);
20
+ }
21
+
22
+ .mtx-drawer-left {
23
+ transform: translateX(-100%);
24
+ }
25
+
26
+ .mtx-drawer-bottom {
27
+ transform: translateY(100%);
28
+ }
29
+
30
+ .mtx-drawer-top {
31
+ transform: translateY(-100%);
32
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./drawer-container";
3
+ import * as i2 from "@angular/cdk/overlay";
4
+ import * as i3 from "@angular/cdk/portal";
5
+ import * as i4 from "@angular/material/core";
6
+ export declare class MtxDrawerModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxDrawerModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<MtxDrawerModule, [typeof i1.MtxDrawerContainer], [typeof i2.OverlayModule, typeof i3.PortalModule, typeof i4.MatCommonModule], [typeof i1.MtxDrawerContainer, typeof i4.MatCommonModule]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<MtxDrawerModule>;
10
+ }
@@ -0,0 +1,44 @@
1
+ import { OverlayRef } from '@angular/cdk/overlay';
2
+ import { Observable } from 'rxjs';
3
+ import { MtxDrawerContainer } from './drawer-container';
4
+ /**
5
+ * Reference to a drawer dispatched from the drawer service.
6
+ */
7
+ export declare class MtxDrawerRef<T = any, R = any> {
8
+ private _overlayRef;
9
+ /** Instance of the component making up the content of the drawer. */
10
+ instance: T;
11
+ /**
12
+ * Instance of the component into which the drawer content is projected.
13
+ * @docs-private
14
+ */
15
+ containerInstance: MtxDrawerContainer;
16
+ /** Whether the user is allowed to close the drawer. */
17
+ disableClose: boolean | undefined;
18
+ /** Subject for notifying the user that the drawer has been dismissed. */
19
+ private readonly _afterDismissed;
20
+ /** Subject for notifying the user that the drawer has opened and appeared. */
21
+ private readonly _afterOpened;
22
+ /** Result to be passed down to the `afterDismissed` stream. */
23
+ private _result;
24
+ /** Handle to the timeout that's running as a fallback in case the exit animation doesn't fire. */
25
+ private _closeFallbackTimeout;
26
+ constructor(containerInstance: MtxDrawerContainer, _overlayRef: OverlayRef);
27
+ /**
28
+ * Dismisses the drawer.
29
+ * @param result Data to be passed back to the drawer opener.
30
+ */
31
+ dismiss(result?: R): void;
32
+ /** Gets an observable that is notified when the drawer is finished closing. */
33
+ afterDismissed(): Observable<R | undefined>;
34
+ /** Gets an observable that is notified when the drawer has opened and appeared. */
35
+ afterOpened(): Observable<void>;
36
+ /**
37
+ * Gets an observable that emits when the overlay's backdrop has been clicked.
38
+ */
39
+ backdropClick(): Observable<MouseEvent>;
40
+ /**
41
+ * Gets an observable that emits when keydown events are targeted on the overlay.
42
+ */
43
+ keydownEvents(): Observable<KeyboardEvent>;
44
+ }
@@ -0,0 +1,61 @@
1
+ import { Overlay } from '@angular/cdk/overlay';
2
+ import { ComponentType } from '@angular/cdk/portal';
3
+ import { Injector, TemplateRef, InjectionToken, OnDestroy } from '@angular/core';
4
+ import { MtxDrawerConfig } from './drawer-config';
5
+ import { MtxDrawerRef } from './drawer-ref';
6
+ import * as i0 from "@angular/core";
7
+ /** Injection token that can be used to access the data that was passed in to a drawer. */
8
+ export declare const MTX_DRAWER_DATA: InjectionToken<any>;
9
+ /** Injection token that can be used to specify default drawer options. */
10
+ export declare const MTX_DRAWER_DEFAULT_OPTIONS: InjectionToken<MtxDrawerConfig<any>>;
11
+ /**
12
+ * Service to trigger Material Design bottom sheets.
13
+ */
14
+ export declare class MtxDrawer implements OnDestroy {
15
+ private _overlay;
16
+ private _injector;
17
+ private _parentDrawer;
18
+ private _defaultOptions?;
19
+ private _drawerRefAtThisLevel;
20
+ /** Reference to the currently opened drawer. */
21
+ get _openedDrawerRef(): MtxDrawerRef<any> | null;
22
+ set _openedDrawerRef(value: MtxDrawerRef<any> | null);
23
+ constructor(_overlay: Overlay, _injector: Injector, _parentDrawer: MtxDrawer, _defaultOptions?: MtxDrawerConfig<any> | undefined);
24
+ /**
25
+ * Opens a drawer containing the given component.
26
+ * @param component Type of the component to load into the drawer.
27
+ * @param config Extra configuration options.
28
+ * @returns Reference to the newly-opened drawer.
29
+ */
30
+ open<T, D = any, R = any>(component: ComponentType<T>, config?: MtxDrawerConfig<D>): MtxDrawerRef<T, R>;
31
+ /**
32
+ * Opens a drawer containing the given template.
33
+ * @param template TemplateRef to instantiate as the drawer content.
34
+ * @param config Extra configuration options.
35
+ * @returns Reference to the newly-opened drawer.
36
+ */
37
+ open<T, D = any, R = any>(template: TemplateRef<T>, config?: MtxDrawerConfig<D>): MtxDrawerRef<T, R>;
38
+ /**
39
+ * Dismisses the currently-visible drawer.
40
+ * @param result Data to pass to the drawer instance.
41
+ */
42
+ dismiss<R = any>(result?: R): void;
43
+ ngOnDestroy(): void;
44
+ /**
45
+ * Attaches the drawer container component to the overlay.
46
+ */
47
+ private _attachContainer;
48
+ /**
49
+ * Creates a new overlay and places it in the correct location.
50
+ * @param config The user-specified drawer config.
51
+ */
52
+ private _createOverlay;
53
+ /**
54
+ * Creates an injector to be used inside of a drawer component.
55
+ * @param config Config that was used to create the drawer.
56
+ * @param drawerRef Reference to the drawer.
57
+ */
58
+ private _createInjector;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<MtxDrawer, [null, null, { optional: true; skipSelf: true; }, { optional: true; }]>;
60
+ static ɵprov: i0.ɵɵInjectableDeclaration<MtxDrawer>;
61
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@ng-matero/extensions/drawer" />
5
+ export * from './public-api';
@@ -0,0 +1,10 @@
1
+ {
2
+ "module": "../fesm2015/mtxDrawer.mjs",
3
+ "es2020": "../fesm2020/mtxDrawer.mjs",
4
+ "esm2020": "../esm2020/drawer/mtxDrawer.mjs",
5
+ "fesm2020": "../fesm2020/mtxDrawer.mjs",
6
+ "fesm2015": "../fesm2015/mtxDrawer.mjs",
7
+ "typings": "mtxDrawer.d.ts",
8
+ "sideEffects": false,
9
+ "name": "@ng-matero/extensions/drawer"
10
+ }
@@ -0,0 +1,6 @@
1
+ export * from './drawer-module';
2
+ export * from './drawer';
3
+ export * from './drawer-config';
4
+ export * from './drawer-container';
5
+ export * from './drawer-animation';
6
+ export * from './drawer-ref';
@@ -28,9 +28,9 @@ export class MtxAlertComponent {
28
28
  this.closed.emit(this);
29
29
  }
30
30
  }
31
- /** @nocollapse */ /** @nocollapse */ MtxAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxAlertComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
32
- /** @nocollapse */ /** @nocollapse */ MtxAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MtxAlertComponent, selector: "mtx-alert", inputs: { type: "type", dismissible: "dismissible", elevation: "elevation" }, outputs: { closed: "closed" }, host: { attributes: { "role": "alert" }, properties: { "class.mtx-alert": "true", "class.mtx-alert-dismissible": "dismissible", "class": "this.hostClassList" } }, exportAs: ["mtxAlert"], ngImport: i0, template: "<ng-content></ng-content>\n<ng-template [ngIf]=\"dismissible\">\n <button type=\"button\" class=\"mtx-alert-close\" aria-label=\"Close\" (click)=\"_onClosed()\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n</ng-template>\n", styles: [".mtx-alert{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.mtx-alert-close{position:absolute;top:0;bottom:0;right:0;padding:0 1.25rem;font-size:1.5rem;line-height:1;color:inherit;opacity:.5;background-color:transparent;border:0;cursor:pointer}[dir=rtl] .mtx-alert-close{right:auto;left:0}.mtx-alert-close:hover{opacity:.75}.mtx-alert-dismissible{padding-right:4rem}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxAlertComponent, decorators: [{
31
+ /** @nocollapse */ /** @nocollapse */ MtxAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxAlertComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
32
+ /** @nocollapse */ /** @nocollapse */ MtxAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: MtxAlertComponent, selector: "mtx-alert", inputs: { type: "type", dismissible: "dismissible", elevation: "elevation" }, outputs: { closed: "closed" }, host: { attributes: { "role": "alert" }, properties: { "class.mtx-alert": "true", "class.mtx-alert-dismissible": "dismissible", "class": "this.hostClassList" } }, exportAs: ["mtxAlert"], ngImport: i0, template: "<ng-content></ng-content>\n<ng-template [ngIf]=\"dismissible\">\n <button type=\"button\" class=\"mtx-alert-close\" aria-label=\"Close\" (click)=\"_onClosed()\">\n <span aria-hidden=\"true\">&times;</span>\n </button>\n</ng-template>\n", styles: [".mtx-alert{position:relative;display:block;padding:.75rem 1.25rem;margin-bottom:1rem;border:1px solid transparent;border-radius:.25rem}.mtx-alert-close{position:absolute;top:0;bottom:0;right:0;padding:0 1.25rem;font-size:1.5rem;line-height:1;color:inherit;opacity:.5;background-color:transparent;border:0;cursor:pointer}[dir=rtl] .mtx-alert-close{right:auto;left:0}.mtx-alert-close:hover{opacity:.75}.mtx-alert-dismissible{padding-right:4rem}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxAlertComponent, decorators: [{
34
34
  type: Component,
35
35
  args: [{ selector: 'mtx-alert', exportAs: 'mtxAlert', host: {
36
36
  '[class.mtx-alert]': 'true',
@@ -4,10 +4,10 @@ import { MtxAlertComponent } from './alert.component';
4
4
  import * as i0 from "@angular/core";
5
5
  export class MtxAlertModule {
6
6
  }
7
- /** @nocollapse */ /** @nocollapse */ MtxAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
- /** @nocollapse */ /** @nocollapse */ MtxAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxAlertModule, declarations: [MtxAlertComponent], imports: [CommonModule], exports: [MtxAlertComponent] });
9
- /** @nocollapse */ /** @nocollapse */ MtxAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxAlertModule, imports: [[CommonModule]] });
10
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxAlertModule, decorators: [{
7
+ /** @nocollapse */ /** @nocollapse */ MtxAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ /** @nocollapse */ /** @nocollapse */ MtxAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxAlertModule, declarations: [MtxAlertComponent], imports: [CommonModule], exports: [MtxAlertComponent] });
9
+ /** @nocollapse */ /** @nocollapse */ MtxAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxAlertModule, imports: [[CommonModule]] });
10
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxAlertModule, decorators: [{
11
11
  type: NgModule,
12
12
  args: [{
13
13
  imports: [CommonModule],
@@ -56,9 +56,9 @@ export class MatButtonLoadingDirective {
56
56
  }
57
57
  }
58
58
  }
59
- /** @nocollapse */ /** @nocollapse */ MatButtonLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatButtonLoadingDirective, deps: [{ token: i1.MatButton }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
60
- /** @nocollapse */ /** @nocollapse */ MatButtonLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MatButtonLoadingDirective, selector: "button[mat-button][loading],\n button[mat-raised-button][loading],\n button[mat-stroked-button][loading],\n button[mat-flat-button][loading],\n button[mat-icon-button][loading],\n button[mat-fab][loading],\n button[mat-mini-fab][loading]", inputs: { loading: "loading", disabled: "disabled", color: "color" }, usesOnChanges: true, ngImport: i0 });
61
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MatButtonLoadingDirective, decorators: [{
59
+ /** @nocollapse */ /** @nocollapse */ MatButtonLoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MatButtonLoadingDirective, deps: [{ token: i1.MatButton }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
60
+ /** @nocollapse */ /** @nocollapse */ MatButtonLoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.6", type: MatButtonLoadingDirective, selector: "button[mat-button][loading],\n button[mat-raised-button][loading],\n button[mat-stroked-button][loading],\n button[mat-flat-button][loading],\n button[mat-icon-button][loading],\n button[mat-fab][loading],\n button[mat-mini-fab][loading]", inputs: { loading: "loading", disabled: "disabled", color: "color" }, usesOnChanges: true, ngImport: i0 });
61
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MatButtonLoadingDirective, decorators: [{
62
62
  type: Directive,
63
63
  args: [{
64
64
  selector: `button[mat-button][loading],
@@ -6,10 +6,10 @@ import { MatButtonLoadingDirective } from './button-loading.directive';
6
6
  import * as i0 from "@angular/core";
7
7
  export class MtxButtonModule {
8
8
  }
9
- /** @nocollapse */ /** @nocollapse */ MtxButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
- /** @nocollapse */ /** @nocollapse */ MtxButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxButtonModule, declarations: [MatButtonLoadingDirective], imports: [CommonModule, MatButtonModule, MatProgressSpinnerModule], exports: [MatButtonLoadingDirective] });
11
- /** @nocollapse */ /** @nocollapse */ MtxButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxButtonModule, imports: [[CommonModule, MatButtonModule, MatProgressSpinnerModule]] });
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxButtonModule, decorators: [{
9
+ /** @nocollapse */ /** @nocollapse */ MtxButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
10
+ /** @nocollapse */ /** @nocollapse */ MtxButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxButtonModule, declarations: [MatButtonLoadingDirective], imports: [CommonModule, MatButtonModule, MatProgressSpinnerModule], exports: [MatButtonLoadingDirective] });
11
+ /** @nocollapse */ /** @nocollapse */ MtxButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxButtonModule, imports: [[CommonModule, MatButtonModule, MatProgressSpinnerModule]] });
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxButtonModule, decorators: [{
13
13
  type: NgModule,
14
14
  args: [{
15
15
  imports: [CommonModule, MatButtonModule, MatProgressSpinnerModule],
@@ -192,15 +192,15 @@ export class MtxCheckboxGroupComponent {
192
192
  this._getSelectedItems(index);
193
193
  }
194
194
  }
195
- /** @nocollapse */ /** @nocollapse */ MtxCheckboxGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxCheckboxGroupComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.FocusMonitor }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
196
- /** @nocollapse */ /** @nocollapse */ MtxCheckboxGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MtxCheckboxGroupComponent, selector: "mtx-checkbox-group", inputs: { items: "items", bindLabel: "bindLabel", bindValue: "bindValue", showSelectAll: "showSelectAll", selectAllLabel: "selectAllLabel", compareWith: "compareWith", disabled: "disabled" }, outputs: { change: "change" }, host: { classAttribute: "mtx-checkbox-group" }, providers: [
195
+ /** @nocollapse */ /** @nocollapse */ MtxCheckboxGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxCheckboxGroupComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1.FocusMonitor }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
196
+ /** @nocollapse */ /** @nocollapse */ MtxCheckboxGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: MtxCheckboxGroupComponent, selector: "mtx-checkbox-group", inputs: { items: "items", bindLabel: "bindLabel", bindValue: "bindValue", showSelectAll: "showSelectAll", selectAllLabel: "selectAllLabel", compareWith: "compareWith", disabled: "disabled" }, outputs: { change: "change" }, host: { classAttribute: "mtx-checkbox-group" }, providers: [
197
197
  {
198
198
  provide: NG_VALUE_ACCESSOR,
199
199
  useExisting: forwardRef((() => MtxCheckboxGroupComponent)),
200
200
  multi: true,
201
201
  },
202
202
  ], queries: [{ propertyName: "_checkboxes", predicate: i0.forwardRef(function () { return MatCheckbox; }), descendants: true }], exportAs: ["mtxCheckboxGroup"], ngImport: i0, template: "<mat-checkbox class=\"mtx-checkbox-master\"\n *ngIf=\"showSelectAll\"\n [checked]=\"selectAll\"\n [(indeterminate)]=\"selectAllIndeterminate\"\n [disabled]=\"disabled\"\n (change)=\"_updateMasterCheckboxState($event, -1);\">\n {{selectAllLabel}}\n</mat-checkbox>\n\n<mat-checkbox class=\"mtx-checkbox-normal\"\n *ngFor=\"let option of items; let i = index;\"\n [(ngModel)]=\"option.checked\"\n [aria-describedby]=\"option.ariaDescribedby\"\n [aria-label]=\"option.ariaLabel\"\n [aria-labelledby]=\"option.ariaLabelledby\"\n [color]=\"option.color\"\n [disabled]=\"option.disabled || disabled\"\n [disableRipple]=\"option.disableRipple\"\n [labelPosition]=\"option.labelPosition\"\n [required]=\"option.required\"\n (change)=\"_updateNormalCheckboxState($event, i)\">\n {{option[bindLabel] | toObservable | async}}\n</mat-checkbox>\n", styles: [".mtx-checkbox-group{display:block}.mtx-checkbox-group .mat-checkbox{margin-right:16px}[dir=rtl] .mtx-checkbox-group .mat-checkbox{margin-right:auto;margin-left:16px}\n"], components: [{ type: i2.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }], directives: [{ type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2.MatCheckboxRequiredValidator, selector: "mat-checkbox[required][formControlName], mat-checkbox[required][formControl], mat-checkbox[required][ngModel]" }, { type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i4.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }], pipes: { "async": i3.AsyncPipe, "toObservable": i5.MtxToObservablePipe }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
203
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxCheckboxGroupComponent, decorators: [{
203
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxCheckboxGroupComponent, decorators: [{
204
204
  type: Component,
205
205
  args: [{ selector: 'mtx-checkbox-group', exportAs: 'mtxCheckboxGroup', host: {
206
206
  class: 'mtx-checkbox-group',
@@ -7,10 +7,10 @@ import { MtxCheckboxGroupComponent } from './checkbox-group.component';
7
7
  import * as i0 from "@angular/core";
8
8
  export class MtxCheckboxGroupModule {
9
9
  }
10
- /** @nocollapse */ /** @nocollapse */ MtxCheckboxGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxCheckboxGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- /** @nocollapse */ /** @nocollapse */ MtxCheckboxGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxCheckboxGroupModule, declarations: [MtxCheckboxGroupComponent], imports: [CommonModule, FormsModule, MatCheckboxModule, MtxPipesModule], exports: [MtxCheckboxGroupComponent, MtxPipesModule] });
12
- /** @nocollapse */ /** @nocollapse */ MtxCheckboxGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxCheckboxGroupModule, imports: [[CommonModule, FormsModule, MatCheckboxModule, MtxPipesModule], MtxPipesModule] });
13
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxCheckboxGroupModule, decorators: [{
10
+ /** @nocollapse */ /** @nocollapse */ MtxCheckboxGroupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxCheckboxGroupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
+ /** @nocollapse */ /** @nocollapse */ MtxCheckboxGroupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxCheckboxGroupModule, declarations: [MtxCheckboxGroupComponent], imports: [CommonModule, FormsModule, MatCheckboxModule, MtxPipesModule], exports: [MtxCheckboxGroupComponent, MtxPipesModule] });
12
+ /** @nocollapse */ /** @nocollapse */ MtxCheckboxGroupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxCheckboxGroupModule, imports: [[CommonModule, FormsModule, MatCheckboxModule, MtxPipesModule], MtxPipesModule] });
13
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxCheckboxGroupModule, decorators: [{
14
14
  type: NgModule,
15
15
  args: [{
16
16
  imports: [CommonModule, FormsModule, MatCheckboxModule, MtxPipesModule],
@@ -183,13 +183,13 @@ export class MtxColorpickerInput {
183
183
  this._elementRef.nativeElement.value = value ? value : '';
184
184
  }
185
185
  }
186
- /** @nocollapse */ /** @nocollapse */ MtxColorpickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerInput, deps: [{ token: i0.ElementRef }, { token: i1.MatFormField, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
187
- /** @nocollapse */ /** @nocollapse */ MtxColorpickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MtxColorpickerInput, selector: "input[mtxColorpicker]", inputs: { mtxColorpicker: "mtxColorpicker", disabled: "disabled", 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: [
186
+ /** @nocollapse */ /** @nocollapse */ MtxColorpickerInput.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxColorpickerInput, deps: [{ token: i0.ElementRef }, { token: i1.MatFormField, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
187
+ /** @nocollapse */ /** @nocollapse */ MtxColorpickerInput.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.6", type: MtxColorpickerInput, selector: "input[mtxColorpicker]", inputs: { mtxColorpicker: "mtxColorpicker", disabled: "disabled", 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: [
188
188
  MTX_COLORPICKER_VALUE_ACCESSOR,
189
189
  MTX_COLORPICKER_VALIDATORS,
190
190
  { provide: MAT_INPUT_VALUE_ACCESSOR, useExisting: MtxColorpickerInput },
191
191
  ], exportAs: ["mtxColorpickerInput"], ngImport: i0 });
192
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerInput, decorators: [{
192
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxColorpickerInput, decorators: [{
193
193
  type: Directive,
194
194
  args: [{
195
195
  selector: 'input[mtxColorpicker]',
@@ -11,8 +11,8 @@ import { ColorChromeModule } from 'ngx-color/chrome';
11
11
  import * as i0 from "@angular/core";
12
12
  export class MtxColorpickerModule {
13
13
  }
14
- /** @nocollapse */ /** @nocollapse */ MtxColorpickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
15
- /** @nocollapse */ /** @nocollapse */ MtxColorpickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerModule, declarations: [MtxColorpicker,
14
+ /** @nocollapse */ /** @nocollapse */ MtxColorpickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxColorpickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
15
+ /** @nocollapse */ /** @nocollapse */ MtxColorpickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxColorpickerModule, declarations: [MtxColorpicker,
16
16
  MtxColorpickerContent,
17
17
  MtxColorpickerInput,
18
18
  MtxColorpickerToggle,
@@ -26,7 +26,7 @@ export class MtxColorpickerModule {
26
26
  MtxColorpickerInput,
27
27
  MtxColorpickerToggle,
28
28
  MtxColorpickerToggleIcon] });
29
- /** @nocollapse */ /** @nocollapse */ MtxColorpickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerModule, providers: [MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[
29
+ /** @nocollapse */ /** @nocollapse */ MtxColorpickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxColorpickerModule, providers: [MTX_COLORPICKER_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [[
30
30
  CommonModule,
31
31
  OverlayModule,
32
32
  A11yModule,
@@ -34,7 +34,7 @@ export class MtxColorpickerModule {
34
34
  MatButtonModule,
35
35
  ColorChromeModule,
36
36
  ]] });
37
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerModule, decorators: [{
37
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxColorpickerModule, decorators: [{
38
38
  type: NgModule,
39
39
  args: [{
40
40
  imports: [
@@ -7,9 +7,9 @@ import * as i2 from "@angular/common";
7
7
  /** Can be used to override the icon of a `mtxColorpickerToggle`. */
8
8
  export class MtxColorpickerToggleIcon {
9
9
  }
10
- /** @nocollapse */ /** @nocollapse */ MtxColorpickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11
- /** @nocollapse */ /** @nocollapse */ MtxColorpickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.0", type: MtxColorpickerToggleIcon, selector: "[mtxColorpickerToggleIcon]", ngImport: i0 });
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerToggleIcon, decorators: [{
10
+ /** @nocollapse */ /** @nocollapse */ MtxColorpickerToggleIcon.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxColorpickerToggleIcon, deps: [], target: i0.ɵɵFactoryTarget.Directive });
11
+ /** @nocollapse */ /** @nocollapse */ MtxColorpickerToggleIcon.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.6", type: MtxColorpickerToggleIcon, selector: "[mtxColorpickerToggleIcon]", ngImport: i0 });
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxColorpickerToggleIcon, decorators: [{
13
13
  type: Directive,
14
14
  args: [{
15
15
  selector: '[mtxColorpickerToggleIcon]',
@@ -57,9 +57,9 @@ export class MtxColorpickerToggle {
57
57
  this._stateChanges = merge([pickerDisabled, inputDisabled, datepickerToggled]).subscribe(() => this._changeDetectorRef.markForCheck());
58
58
  }
59
59
  }
60
- /** @nocollapse */ /** @nocollapse */ MtxColorpickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerToggle, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
61
- /** @nocollapse */ /** @nocollapse */ MtxColorpickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.0", type: MtxColorpickerToggle, selector: "mtx-colorpicker-toggle", inputs: { picker: ["for", "picker"], tabIndex: "tabIndex", disabled: "disabled", disableRipple: "disableRipple" }, host: { listeners: { "focus": "_button.focus()" }, properties: { "attr.tabindex": "disabled ? null : -1", "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 #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\"\n (click)=\"open($event)\">\n\n <svg *ngIf=\"!_customIcon\"\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 <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 </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mat-form-field-appearance-legacy .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mtx-colorpicker-toggle-default-icon{margin:auto}\n"], components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
62
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.0", ngImport: i0, type: MtxColorpickerToggle, decorators: [{
60
+ /** @nocollapse */ /** @nocollapse */ MtxColorpickerToggle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxColorpickerToggle, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
61
+ /** @nocollapse */ /** @nocollapse */ MtxColorpickerToggle.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.6", type: MtxColorpickerToggle, selector: "mtx-colorpicker-toggle", inputs: { picker: ["for", "picker"], tabIndex: "tabIndex", disabled: "disabled", disableRipple: "disableRipple" }, host: { listeners: { "focus": "_button.focus()" }, properties: { "attr.tabindex": "disabled ? null : -1", "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 #button\n mat-icon-button\n type=\"button\"\n [attr.aria-haspopup]=\"picker ? 'dialog' : null\"\n [attr.tabindex]=\"disabled ? -1 : tabIndex\"\n [disabled]=\"disabled\"\n [disableRipple]=\"disableRipple\"\n (click)=\"open($event)\">\n\n <svg *ngIf=\"!_customIcon\"\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 <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 </svg>\n\n <ng-content select=\"[mtxColorpickerToggleIcon]\"></ng-content>\n</button>\n", styles: [".mat-form-field-appearance-legacy .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mtx-colorpicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mtx-colorpicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mtx-colorpicker-toggle-default-icon{margin:auto}\n"], components: [{ type: i1.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
62
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.6", ngImport: i0, type: MtxColorpickerToggle, decorators: [{
63
63
  type: Component,
64
64
  args: [{ selector: 'mtx-colorpicker-toggle', host: {
65
65
  'class': 'mtx-colorpicker-toggle',