@ng-matero/extensions 20.3.1 → 21.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.
- package/fesm2022/mtxAlert.mjs +8 -8
- package/fesm2022/mtxAlert.mjs.map +1 -1
- package/fesm2022/mtxButton.mjs +7 -7
- package/fesm2022/mtxButton.mjs.map +1 -1
- package/fesm2022/mtxCheckboxGroup.mjs +7 -7
- package/fesm2022/mtxCheckboxGroup.mjs.map +1 -1
- package/fesm2022/mtxColorpicker.mjs +35 -128
- package/fesm2022/mtxColorpicker.mjs.map +1 -1
- package/fesm2022/mtxColumnResize.mjs +43 -43
- package/fesm2022/mtxColumnResize.mjs.map +1 -1
- package/fesm2022/mtxCore.mjs +21 -21
- package/fesm2022/mtxCore.mjs.map +1 -1
- package/fesm2022/mtxDatetimepicker.mjs +72 -265
- package/fesm2022/mtxDatetimepicker.mjs.map +1 -1
- package/fesm2022/mtxDialog.mjs +11 -11
- package/fesm2022/mtxDialog.mjs.map +1 -1
- package/fesm2022/mtxDrawer.mjs +27 -88
- package/fesm2022/mtxDrawer.mjs.map +1 -1
- package/fesm2022/mtxGrid.mjs +75 -75
- package/fesm2022/mtxGrid.mjs.map +1 -1
- package/fesm2022/mtxLoader.mjs +7 -7
- package/fesm2022/mtxLoader.mjs.map +1 -1
- package/fesm2022/mtxPhotoviewer.mjs +7 -7
- package/fesm2022/mtxPhotoviewer.mjs.map +1 -1
- package/fesm2022/mtxPopover.mjs +93 -188
- package/fesm2022/mtxPopover.mjs.map +1 -1
- package/fesm2022/mtxProgress.mjs +8 -8
- package/fesm2022/mtxProgress.mjs.map +1 -1
- package/fesm2022/mtxSelect.mjs +53 -60
- package/fesm2022/mtxSelect.mjs.map +1 -1
- package/fesm2022/mtxSplit.mjs +10 -10
- package/fesm2022/mtxSplit.mjs.map +1 -1
- package/fesm2022/mtxTooltip.mjs +38 -127
- package/fesm2022/mtxTooltip.mjs.map +1 -1
- package/package.json +35 -35
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/{colorpicker/index.d.ts → types/mtxColorpicker.d.ts} +12 -40
- package/{datetimepicker/index.d.ts → types/mtxDatetimepicker.d.ts} +5 -33
- package/{drawer/index.d.ts → types/mtxDrawer.d.ts} +12 -13
- package/{grid/index.d.ts → types/mtxGrid.d.ts} +5 -6
- package/{popover/index.d.ts → types/mtxPopover.d.ts} +2 -38
- package/{select/index.d.ts → types/mtxSelect.d.ts} +2 -3
- package/{tooltip/index.d.ts → types/mtxTooltip.d.ts} +9 -41
- /package/{alert/index.d.ts → types/mtxAlert.d.ts} +0 -0
- /package/{button/index.d.ts → types/mtxButton.d.ts} +0 -0
- /package/{checkbox-group/index.d.ts → types/mtxCheckboxGroup.d.ts} +0 -0
- /package/{column-resize/index.d.ts → types/mtxColumnResize.d.ts} +0 -0
- /package/{core/index.d.ts → types/mtxCore.d.ts} +0 -0
- /package/{dialog/index.d.ts → types/mtxDialog.d.ts} +0 -0
- /package/{loader/index.d.ts → types/mtxLoader.d.ts} +0 -0
- /package/{photoviewer/index.d.ts → types/mtxPhotoviewer.d.ts} +0 -0
- /package/{progress/index.d.ts → types/mtxProgress.d.ts} +0 -0
- /package/{split/index.d.ts → types/mtxSplit.d.ts} +0 -0
- /package/{index.d.ts → types/ng-matero-extensions.d.ts} +0 -0
|
@@ -2,7 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { OnDestroy, TemplateRef, ApplicationRef, Injector, ViewContainerRef, ChangeDetectorRef, InjectionToken, EventEmitter, OnInit, ElementRef, AfterContentInit } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import * as i2 from '@angular/cdk/overlay';
|
|
5
|
-
import { ScrollStrategy
|
|
5
|
+
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
6
6
|
import * as i3 from '@angular/cdk/a11y';
|
|
7
7
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
8
8
|
import { Direction } from '@angular/cdk/bidi';
|
|
@@ -109,14 +109,7 @@ interface MtxPopoverDefaultOptions {
|
|
|
109
109
|
|
|
110
110
|
/** Injection token to be used to override the default options for `mtx-popover`. */
|
|
111
111
|
declare const MTX_POPOVER_DEFAULT_OPTIONS: InjectionToken<MtxPopoverDefaultOptions>;
|
|
112
|
-
/**
|
|
113
|
-
* @docs-private
|
|
114
|
-
* @deprecated No longer used, will be removed.
|
|
115
|
-
* @breaking-change 21.0.0
|
|
116
|
-
*/
|
|
117
|
-
declare function MTX_POPOVER_DEFAULT_OPTIONS_FACTORY(): MtxPopoverDefaultOptions;
|
|
118
112
|
declare class MtxPopover implements MtxPopoverPanel, OnInit, OnDestroy {
|
|
119
|
-
private _injector;
|
|
120
113
|
private _changeDetectorRef;
|
|
121
114
|
private _elementRef;
|
|
122
115
|
private _unusedNgZone;
|
|
@@ -214,7 +207,6 @@ declare class MtxPopover implements MtxPopoverPanel, OnInit, OnDestroy {
|
|
|
214
207
|
*/
|
|
215
208
|
lazyContent?: MtxPopoverContent;
|
|
216
209
|
readonly panelId: string;
|
|
217
|
-
constructor();
|
|
218
210
|
ngOnInit(): void;
|
|
219
211
|
ngOnDestroy(): void;
|
|
220
212
|
/** Handle a keyboard event from the popover, delegating to the appropriate action. */
|
|
@@ -256,22 +248,6 @@ declare class MtxPopoverTarget {
|
|
|
256
248
|
|
|
257
249
|
/** Injection token that determines the scroll handling while the popover is open. */
|
|
258
250
|
declare const MTX_POPOVER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
259
|
-
/**
|
|
260
|
-
* @docs-private
|
|
261
|
-
* @deprecated No longer used, will be removed.
|
|
262
|
-
* @breaking-change 21.0.0
|
|
263
|
-
*/
|
|
264
|
-
declare function MTX_POPOVER_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
265
|
-
/**
|
|
266
|
-
* @docs-private
|
|
267
|
-
* @deprecated No longer used, will be removed.
|
|
268
|
-
* @breaking-change 21.0.0
|
|
269
|
-
*/
|
|
270
|
-
declare const MTX_POPOVER_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
271
|
-
provide: InjectionToken<() => ScrollStrategy>;
|
|
272
|
-
deps: (typeof Overlay)[];
|
|
273
|
-
useFactory: typeof MTX_POPOVER_SCROLL_STRATEGY_FACTORY;
|
|
274
|
-
};
|
|
275
251
|
/**
|
|
276
252
|
* This directive is intended to be used in conjunction with an `mtx-popover` tag. It is
|
|
277
253
|
* responsible for toggling the display of the provided popover instance.
|
|
@@ -385,17 +361,5 @@ declare class MtxPopoverModule {
|
|
|
385
361
|
static ɵinj: i0.ɵɵInjectorDeclaration<MtxPopoverModule>;
|
|
386
362
|
}
|
|
387
363
|
|
|
388
|
-
|
|
389
|
-
* Animations used by the mtx-popover component.
|
|
390
|
-
* Animation duration and timing values are based on:
|
|
391
|
-
* https://material.io/guidelines/components/menus.html#menus-usage
|
|
392
|
-
* @docs-private
|
|
393
|
-
* @deprecated No longer used, will be removed.
|
|
394
|
-
* @breaking-change 21.0.0
|
|
395
|
-
*/
|
|
396
|
-
declare const mtxPopoverAnimations: {
|
|
397
|
-
readonly transformPopover: any;
|
|
398
|
-
};
|
|
399
|
-
|
|
400
|
-
export { MTX_POPOVER_CONTENT, MTX_POPOVER_DEFAULT_OPTIONS, MTX_POPOVER_DEFAULT_OPTIONS_FACTORY, MTX_POPOVER_SCROLL_STRATEGY, MTX_POPOVER_SCROLL_STRATEGY_FACTORY, MTX_POPOVER_SCROLL_STRATEGY_FACTORY_PROVIDER, MtxPopover, MtxPopoverContent, MtxPopoverModule, MtxPopoverTarget, MtxPopoverTrigger, _MtxPopoverContentBase, mtxPopoverAnimations };
|
|
364
|
+
export { MTX_POPOVER_CONTENT, MTX_POPOVER_DEFAULT_OPTIONS, MTX_POPOVER_SCROLL_STRATEGY, MtxPopover, MtxPopoverContent, MtxPopoverModule, MtxPopoverTarget, MtxPopoverTrigger, _MtxPopoverContentBase };
|
|
401
365
|
export type { MtxPopoverDefaultOptions, MtxPopoverPanel, MtxPopoverPosition, MtxPopoverPositionEnd, MtxPopoverPositionStart, MtxPopoverTriggerEvent, PopoverCloseReason };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { OnChanges, AfterViewChecked, OnDestroy, ElementRef, SimpleChanges,
|
|
2
|
+
import { OnChanges, AfterViewChecked, OnDestroy, ElementRef, SimpleChanges, DoCheck, AfterViewInit, ChangeDetectorRef, TemplateRef, QueryList, EventEmitter, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/common';
|
|
4
4
|
import * as i2 from '@angular/forms';
|
|
5
5
|
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
@@ -74,7 +74,7 @@ interface MtxSelectDefaultOptions {
|
|
|
74
74
|
}
|
|
75
75
|
/** Injection token that can be used to specify default select options. */
|
|
76
76
|
declare const MTX_SELECT_DEFAULT_OPTIONS: InjectionToken<MtxSelectDefaultOptions>;
|
|
77
|
-
declare class MtxSelect implements
|
|
77
|
+
declare class MtxSelect implements OnDestroy, DoCheck, AfterViewInit, ControlValueAccessor, MatFormFieldControl<any> {
|
|
78
78
|
protected _intl: MtxSelectIntl;
|
|
79
79
|
protected _changeDetectorRef: ChangeDetectorRef;
|
|
80
80
|
protected _elementRef: ElementRef<any>;
|
|
@@ -232,7 +232,6 @@ declare class MtxSelect implements OnInit, OnDestroy, DoCheck, AfterViewInit, Co
|
|
|
232
232
|
set errorState(value: boolean);
|
|
233
233
|
private _intlChangesSubscription;
|
|
234
234
|
constructor();
|
|
235
|
-
ngOnInit(): void;
|
|
236
235
|
ngAfterViewInit(): void;
|
|
237
236
|
ngDoCheck(): void;
|
|
238
237
|
ngOnDestroy(): void;
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { OnDestroy, AfterViewInit, ElementRef, TemplateRef, InjectionToken } from '@angular/core';
|
|
3
3
|
import * as i1 from '@angular/cdk/a11y';
|
|
4
|
-
import * as i2 from '@angular/
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import * as
|
|
8
|
-
import * as i5 from '@ng-matero/extensions/core';
|
|
4
|
+
import * as i2 from '@angular/cdk/overlay';
|
|
5
|
+
import { OverlayRef, ConnectedPosition, OriginConnectionPosition, OverlayConnectionPosition, ScrollStrategy } from '@angular/cdk/overlay';
|
|
6
|
+
import * as i3 from '@ng-matero/extensions/core';
|
|
7
|
+
import * as i5 from '@angular/cdk/bidi';
|
|
9
8
|
import { Directionality } from '@angular/cdk/bidi';
|
|
10
9
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
11
10
|
import { Observable } from 'rxjs';
|
|
12
|
-
import * as
|
|
11
|
+
import * as i6 from '@angular/cdk/scrolling';
|
|
13
12
|
|
|
14
13
|
/** Possible positions for a tooltip. */
|
|
15
14
|
type TooltipPosition = 'left' | 'right' | 'above' | 'below' | 'before' | 'after';
|
|
@@ -29,28 +28,6 @@ declare const SCROLL_THROTTLE_MS = 20;
|
|
|
29
28
|
declare function getMtxTooltipInvalidPositionError(position: string): Error;
|
|
30
29
|
/** Injection token that determines the scroll handling while a tooltip is visible. */
|
|
31
30
|
declare const MTX_TOOLTIP_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
32
|
-
/**
|
|
33
|
-
* @docs-private
|
|
34
|
-
* @deprecated No longer used, will be removed.
|
|
35
|
-
* @breaking-change 21.0.0
|
|
36
|
-
*/
|
|
37
|
-
declare function MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY(overlay: Overlay): () => ScrollStrategy;
|
|
38
|
-
/**
|
|
39
|
-
* @docs-private
|
|
40
|
-
* @deprecated No longer used, will be removed.
|
|
41
|
-
* @breaking-change 21.0.0
|
|
42
|
-
*/
|
|
43
|
-
declare const MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER: {
|
|
44
|
-
provide: InjectionToken<() => ScrollStrategy>;
|
|
45
|
-
deps: (typeof Overlay)[];
|
|
46
|
-
useFactory: typeof MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* @docs-private
|
|
50
|
-
* @deprecated No longer used, will be removed.
|
|
51
|
-
* @breaking-change 21.0.0
|
|
52
|
-
*/
|
|
53
|
-
declare function MTX_TOOLTIP_DEFAULT_OPTIONS_FACTORY(): MtxTooltipDefaultOptions;
|
|
54
31
|
/** Injection token to be used to override the default options for `mtxTooltip`. */
|
|
55
32
|
declare const MTX_TOOLTIP_DEFAULT_OPTIONS: InjectionToken<MtxTooltipDefaultOptions>;
|
|
56
33
|
/** Default `mtxTooltip` options that can be overridden. */
|
|
@@ -101,9 +78,11 @@ declare class MtxTooltip implements OnDestroy, AfterViewInit {
|
|
|
101
78
|
protected _dir: Directionality;
|
|
102
79
|
private _injector;
|
|
103
80
|
private _viewContainerRef;
|
|
81
|
+
private _animationsDisabled;
|
|
104
82
|
private _defaultOptions;
|
|
105
83
|
_overlayRef: OverlayRef | null;
|
|
106
84
|
_tooltipInstance: TooltipComponent | null;
|
|
85
|
+
_overlayPanelClass: string[] | undefined;
|
|
107
86
|
private _portal;
|
|
108
87
|
private _position;
|
|
109
88
|
private _positionAtOrigin;
|
|
@@ -278,7 +257,6 @@ declare class TooltipComponent implements OnDestroy {
|
|
|
278
257
|
private readonly _showAnimation;
|
|
279
258
|
/** Name of the hide animation and the class that toggles it. */
|
|
280
259
|
private readonly _hideAnimation;
|
|
281
|
-
constructor();
|
|
282
260
|
/**
|
|
283
261
|
* Shows the tooltip with an animation originating from the provided origin
|
|
284
262
|
* @param delay Amount of milliseconds to the delay showing the tooltip.
|
|
@@ -329,19 +307,9 @@ declare class TooltipComponent implements OnDestroy {
|
|
|
329
307
|
|
|
330
308
|
declare class MtxTooltipModule {
|
|
331
309
|
static ɵfac: i0.ɵɵFactoryDeclaration<MtxTooltipModule, never>;
|
|
332
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MtxTooltipModule, never, [typeof i1.A11yModule, typeof i2.
|
|
310
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MtxTooltipModule, never, [typeof i1.A11yModule, typeof i2.OverlayModule, typeof i3.MtxPipesModule, typeof MtxTooltip, typeof TooltipComponent], [typeof MtxTooltip, typeof TooltipComponent, typeof i5.BidiModule, typeof i6.CdkScrollableModule]>;
|
|
333
311
|
static ɵinj: i0.ɵɵInjectorDeclaration<MtxTooltipModule>;
|
|
334
312
|
}
|
|
335
313
|
|
|
336
|
-
|
|
337
|
-
* Animations used by MatTooltip.
|
|
338
|
-
* @docs-private
|
|
339
|
-
* @deprecated No longer being used, to be removed.
|
|
340
|
-
* @breaking-change 21.0.0
|
|
341
|
-
*/
|
|
342
|
-
declare const matTooltipAnimations: {
|
|
343
|
-
readonly tooltipState: any;
|
|
344
|
-
};
|
|
345
|
-
|
|
346
|
-
export { MTX_TOOLTIP_DEFAULT_OPTIONS, MTX_TOOLTIP_DEFAULT_OPTIONS_FACTORY, MTX_TOOLTIP_SCROLL_STRATEGY, MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY, MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER, MtxTooltip, MtxTooltipModule, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, getMtxTooltipInvalidPositionError, matTooltipAnimations };
|
|
314
|
+
export { MTX_TOOLTIP_DEFAULT_OPTIONS, MTX_TOOLTIP_SCROLL_STRATEGY, MtxTooltip, MtxTooltipModule, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, getMtxTooltipInvalidPositionError };
|
|
347
315
|
export type { MtxTooltipDefaultOptions, TooltipPosition, TooltipTouchGestures, TooltipVisibility };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|