@ng-matero/extensions 20.3.0 → 21.0.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 +27 -101
- 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 +76 -267
- 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 +39 -39
- 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} +3 -29
- package/{datetimepicker/index.d.ts → types/mtxDatetimepicker.d.ts} +6 -34
- 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
package/fesm2022/mtxTooltip.mjs
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, inject, TemplateRef, ElementRef, NgZone, Injector, ViewContainerRef, afterNextRender, DOCUMENT, Input, Directive, ChangeDetectorRef, ANIMATION_MODULE_TYPE, ViewChild, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
3
|
-
import { NgClass, NgTemplateOutlet, CommonModule } from '@angular/common';
|
|
4
1
|
import { AriaDescriber, FocusMonitor, A11yModule } from '@angular/cdk/a11y';
|
|
5
|
-
import {
|
|
2
|
+
import { Directionality, BidiModule } from '@angular/cdk/bidi';
|
|
3
|
+
import { createRepositionScrollStrategy, ScrollDispatcher, createFlexibleConnectedPositionStrategy, createOverlayRef, OverlayModule } from '@angular/cdk/overlay';
|
|
6
4
|
import { CdkScrollableModule } from '@angular/cdk/scrolling';
|
|
7
|
-
import
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { InjectionToken, inject, Injector, TemplateRef, ElementRef, NgZone, ViewContainerRef, afterNextRender, DOCUMENT, Input, Directive, ChangeDetectorRef, ViewChild, ChangeDetectionStrategy, ViewEncapsulation, Component, NgModule } from '@angular/core';
|
|
8
7
|
import { MtxIsTemplateRefPipe, MtxPipesModule } from '@ng-matero/extensions/core';
|
|
9
|
-
import { Directionality } from '@angular/cdk/bidi';
|
|
10
8
|
import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
|
|
11
9
|
import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
12
10
|
import { normalizePassiveListenerOptions, Platform } from '@angular/cdk/platform';
|
|
13
11
|
import { ComponentPortal } from '@angular/cdk/portal';
|
|
12
|
+
import { NgClass, NgTemplateOutlet } from '@angular/common';
|
|
13
|
+
import { _animationsDisabled } from '@angular/material/core';
|
|
14
14
|
import { Subject } from 'rxjs';
|
|
15
15
|
import { takeUntil } from 'rxjs/operators';
|
|
16
16
|
|
|
@@ -27,44 +27,18 @@ function getMtxTooltipInvalidPositionError(position) {
|
|
|
27
27
|
const MTX_TOOLTIP_SCROLL_STRATEGY = new InjectionToken('mtx-tooltip-scroll-strategy', {
|
|
28
28
|
providedIn: 'root',
|
|
29
29
|
factory: () => {
|
|
30
|
-
const
|
|
31
|
-
return () =>
|
|
30
|
+
const injector = inject(Injector);
|
|
31
|
+
return () => createRepositionScrollStrategy(injector, { scrollThrottle: SCROLL_THROTTLE_MS });
|
|
32
32
|
},
|
|
33
33
|
});
|
|
34
|
-
/**
|
|
35
|
-
* @docs-private
|
|
36
|
-
* @deprecated No longer used, will be removed.
|
|
37
|
-
* @breaking-change 21.0.0
|
|
38
|
-
*/
|
|
39
|
-
function MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY(overlay) {
|
|
40
|
-
return () => overlay.scrollStrategies.reposition({ scrollThrottle: SCROLL_THROTTLE_MS });
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* @docs-private
|
|
44
|
-
* @deprecated No longer used, will be removed.
|
|
45
|
-
* @breaking-change 21.0.0
|
|
46
|
-
*/
|
|
47
|
-
const MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER = {
|
|
48
|
-
provide: MTX_TOOLTIP_SCROLL_STRATEGY,
|
|
49
|
-
deps: [Overlay],
|
|
50
|
-
useFactory: MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY,
|
|
51
|
-
};
|
|
52
|
-
/**
|
|
53
|
-
* @docs-private
|
|
54
|
-
* @deprecated No longer used, will be removed.
|
|
55
|
-
* @breaking-change 21.0.0
|
|
56
|
-
*/
|
|
57
|
-
function MTX_TOOLTIP_DEFAULT_OPTIONS_FACTORY() {
|
|
58
|
-
return {
|
|
59
|
-
showDelay: 0,
|
|
60
|
-
hideDelay: 0,
|
|
61
|
-
touchendHideDelay: 1500,
|
|
62
|
-
};
|
|
63
|
-
}
|
|
64
34
|
/** Injection token to be used to override the default options for `mtxTooltip`. */
|
|
65
35
|
const MTX_TOOLTIP_DEFAULT_OPTIONS = new InjectionToken('mtx-tooltip-default-options', {
|
|
66
36
|
providedIn: 'root',
|
|
67
|
-
factory:
|
|
37
|
+
factory: () => ({
|
|
38
|
+
showDelay: 0,
|
|
39
|
+
hideDelay: 0,
|
|
40
|
+
touchendHideDelay: 1500,
|
|
41
|
+
}),
|
|
68
42
|
});
|
|
69
43
|
/**
|
|
70
44
|
* CSS class that will be attached to the overlay panel.
|
|
@@ -196,6 +170,7 @@ class MtxTooltip {
|
|
|
196
170
|
this._dir = inject(Directionality);
|
|
197
171
|
this._injector = inject(Injector);
|
|
198
172
|
this._viewContainerRef = inject(ViewContainerRef);
|
|
173
|
+
this._animationsDisabled = _animationsDisabled();
|
|
199
174
|
this._defaultOptions = inject(MTX_TOOLTIP_DEFAULT_OPTIONS, {
|
|
200
175
|
optional: true,
|
|
201
176
|
});
|
|
@@ -350,15 +325,14 @@ class MtxTooltip {
|
|
|
350
325
|
const scrollableAncestors = this._injector
|
|
351
326
|
.get(ScrollDispatcher)
|
|
352
327
|
.getAncestorScrollContainers(this._elementRef);
|
|
353
|
-
const
|
|
328
|
+
const panelClass = `${this._cssClassPrefix}-${PANEL_CLASS}`;
|
|
354
329
|
// Create connected position strategy that listens for scroll events to reposition.
|
|
355
|
-
const strategy =
|
|
356
|
-
.position()
|
|
357
|
-
.flexibleConnectedTo(this.positionAtOrigin ? origin || this._elementRef : this._elementRef)
|
|
330
|
+
const strategy = createFlexibleConnectedPositionStrategy(this._injector, this.positionAtOrigin ? origin || this._elementRef : this._elementRef)
|
|
358
331
|
.withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`)
|
|
359
332
|
.withFlexibleDimensions(false)
|
|
360
333
|
.withViewportMargin(this._viewportMargin)
|
|
361
|
-
.withScrollableContainers(scrollableAncestors)
|
|
334
|
+
.withScrollableContainers(scrollableAncestors)
|
|
335
|
+
.withPopoverLocation('global');
|
|
362
336
|
strategy.positionChanges.pipe(takeUntil(this._destroyed)).subscribe(change => {
|
|
363
337
|
this._updateCurrentPositionClass(change.connectionPair);
|
|
364
338
|
if (this._tooltipInstance) {
|
|
@@ -369,11 +343,13 @@ class MtxTooltip {
|
|
|
369
343
|
}
|
|
370
344
|
}
|
|
371
345
|
});
|
|
372
|
-
this._overlayRef =
|
|
346
|
+
this._overlayRef = createOverlayRef(this._injector, {
|
|
373
347
|
direction: this._dir,
|
|
374
348
|
positionStrategy: strategy,
|
|
375
|
-
panelClass:
|
|
349
|
+
panelClass: this._overlayPanelClass ? [...this._overlayPanelClass, panelClass] : panelClass,
|
|
376
350
|
scrollStrategy: this._injector.get(MTX_TOOLTIP_SCROLL_STRATEGY)(),
|
|
351
|
+
disableAnimations: this._animationsDisabled,
|
|
352
|
+
usePopover: true,
|
|
377
353
|
});
|
|
378
354
|
this._updatePosition(this._overlayRef);
|
|
379
355
|
this._overlayRef
|
|
@@ -729,10 +705,10 @@ class MtxTooltip {
|
|
|
729
705
|
}, { injector: this._injector });
|
|
730
706
|
}
|
|
731
707
|
}
|
|
732
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
733
|
-
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
708
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: MtxTooltip, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
709
|
+
/** @nocollapse */ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.0.1", type: MtxTooltip, isStandalone: true, selector: "[mtxTooltip]", inputs: { position: ["mtxTooltipPosition", "position"], positionAtOrigin: ["mtxTooltipPositionAtOrigin", "positionAtOrigin"], disabled: ["mtxTooltipDisabled", "disabled"], showDelay: ["mtxTooltipShowDelay", "showDelay"], hideDelay: ["mtxTooltipHideDelay", "hideDelay"], touchGestures: ["mtxTooltipTouchGestures", "touchGestures"], message: ["mtxTooltip", "message"], tooltipContext: ["mtxTooltipContext", "tooltipContext"], tooltipClass: ["mtxTooltipClass", "tooltipClass"] }, host: { properties: { "class.mtx-mdc-tooltip-disabled": "disabled" }, classAttribute: "mtx-mdc-tooltip-trigger" }, exportAs: ["mtxTooltip"], ngImport: i0 }); }
|
|
734
710
|
}
|
|
735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
711
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: MtxTooltip, decorators: [{
|
|
736
712
|
type: Directive,
|
|
737
713
|
args: [{
|
|
738
714
|
selector: '[mtxTooltip]',
|
|
@@ -780,6 +756,8 @@ class TooltipComponent {
|
|
|
780
756
|
this._elementRef = inject(ElementRef);
|
|
781
757
|
/* Whether the tooltip text overflows to multiple lines */
|
|
782
758
|
this._isMultiline = false;
|
|
759
|
+
/** Whether animations are currently disabled. */
|
|
760
|
+
this._animationsDisabled = _animationsDisabled();
|
|
783
761
|
/** Whether interactions on the page should close the tooltip */
|
|
784
762
|
this._closeOnInteraction = false;
|
|
785
763
|
/** Whether the tooltip is currently visible. */
|
|
@@ -790,8 +768,6 @@ class TooltipComponent {
|
|
|
790
768
|
this._showAnimation = 'mtx-mdc-tooltip-show';
|
|
791
769
|
/** Name of the hide animation and the class that toggles it. */
|
|
792
770
|
this._hideAnimation = 'mtx-mdc-tooltip-hide';
|
|
793
|
-
const animationMode = inject(ANIMATION_MODULE_TYPE, { optional: true });
|
|
794
|
-
this._animationsDisabled = animationMode === 'NoopAnimations';
|
|
795
771
|
}
|
|
796
772
|
/**
|
|
797
773
|
* Shows the tooltip with an animation originating from the provided origin
|
|
@@ -933,16 +909,16 @@ class TooltipComponent {
|
|
|
933
909
|
this._finalizeAnimation(isVisible);
|
|
934
910
|
}
|
|
935
911
|
}
|
|
936
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
937
|
-
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
912
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
913
|
+
/** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.0.1", type: TooltipComponent, isStandalone: true, selector: "mtx-tooltip-component", host: { attributes: { "aria-hidden": "true" }, listeners: { "mouseleave": "_handleMouseLeave($event)" } }, viewQueries: [{ propertyName: "_tooltip", first: true, predicate: ["tooltip"], descendants: true, static: true }], ngImport: i0, template: "<div\n #tooltip\n class=\"mdc-tooltip mtx-mdc-tooltip\"\n [ngClass]=\"tooltipClass\"\n (animationend)=\"_handleAnimationEnd($event)\"\n [class.mdc-tooltip--multiline]=\"_isMultiline\"\n>\n <div class=\"mtx-mdc-tooltip-surface mdc-tooltip__surface\">\n @if (message | isTemplateRef) {\n <ng-template\n [ngTemplateOutlet]=\"$any(message)\"\n [ngTemplateOutletContext]=\"{ $implicit: tooltipContext }\"\n ></ng-template>\n } @else {\n {{ message }}\n }\n </div>\n</div>\n", styles: [".mtx-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mtx-mdc-tooltip:before{content:\"\";inset:0;z-index:-1;position:absolute}.mtx-mdc-tooltip-panel-below .mtx-mdc-tooltip:before{top:-8px}.mtx-mdc-tooltip-panel-above .mtx-mdc-tooltip:before{bottom:-8px}.mtx-mdc-tooltip-panel-right .mtx-mdc-tooltip:before{left:-8px}.mtx-mdc-tooltip-panel-left .mtx-mdc-tooltip:before{right:-8px}.mtx-mdc-tooltip._mtx-animation-noopable{animation:none;transform:scale(1)}.mtx-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mtx-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mtx-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mtx-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mtx-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mtx-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mtx-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mtx-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mtx-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mtx-mdc-tooltip-surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:\"\";pointer-events:none}.mdc-tooltip--multiline .mtx-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mtx-mdc-tooltip-surface{text-align:right}.mtx-mdc-tooltip-panel{line-height:normal}.mtx-mdc-tooltip-panel.mtx-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mtx-mdc-tooltip-show{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes mtx-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}.mtx-mdc-tooltip-show{animation:mtx-mdc-tooltip-show .15s cubic-bezier(0,0,.2,1) forwards}.mtx-mdc-tooltip-hide{animation:mtx-mdc-tooltip-hide 75ms cubic-bezier(.4,0,1,1) forwards}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: MtxIsTemplateRefPipe, name: "isTemplateRef" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
938
914
|
}
|
|
939
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
940
916
|
type: Component,
|
|
941
917
|
args: [{ selector: 'mtx-tooltip-component', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
942
918
|
'(mouseleave)': '_handleMouseLeave($event)',
|
|
943
919
|
'aria-hidden': 'true',
|
|
944
920
|
}, imports: [NgClass, NgTemplateOutlet, MtxIsTemplateRefPipe], template: "<div\n #tooltip\n class=\"mdc-tooltip mtx-mdc-tooltip\"\n [ngClass]=\"tooltipClass\"\n (animationend)=\"_handleAnimationEnd($event)\"\n [class.mdc-tooltip--multiline]=\"_isMultiline\"\n>\n <div class=\"mtx-mdc-tooltip-surface mdc-tooltip__surface\">\n @if (message | isTemplateRef) {\n <ng-template\n [ngTemplateOutlet]=\"$any(message)\"\n [ngTemplateOutletContext]=\"{ $implicit: tooltipContext }\"\n ></ng-template>\n } @else {\n {{ message }}\n }\n </div>\n</div>\n", styles: [".mtx-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mtx-mdc-tooltip:before{content:\"\";inset:0;z-index:-1;position:absolute}.mtx-mdc-tooltip-panel-below .mtx-mdc-tooltip:before{top:-8px}.mtx-mdc-tooltip-panel-above .mtx-mdc-tooltip:before{bottom:-8px}.mtx-mdc-tooltip-panel-right .mtx-mdc-tooltip:before{left:-8px}.mtx-mdc-tooltip-panel-left .mtx-mdc-tooltip:before{right:-8px}.mtx-mdc-tooltip._mtx-animation-noopable{animation:none;transform:scale(1)}.mtx-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mtx-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mtx-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mtx-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mtx-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mtx-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mtx-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mtx-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mtx-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mtx-mdc-tooltip-surface:before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid transparent;border-radius:inherit;content:\"\";pointer-events:none}.mdc-tooltip--multiline .mtx-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mtx-mdc-tooltip-surface{text-align:right}.mtx-mdc-tooltip-panel{line-height:normal}.mtx-mdc-tooltip-panel.mtx-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mtx-mdc-tooltip-show{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes mtx-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}.mtx-mdc-tooltip-show{animation:mtx-mdc-tooltip-show .15s cubic-bezier(0,0,.2,1) forwards}.mtx-mdc-tooltip-hide{animation:mtx-mdc-tooltip-hide 75ms cubic-bezier(.4,0,1,1) forwards}\n"] }]
|
|
945
|
-
}],
|
|
921
|
+
}], propDecorators: { _tooltip: [{
|
|
946
922
|
type: ViewChild,
|
|
947
923
|
args: ['tooltip', {
|
|
948
924
|
// Use a static query here since we interact directly with
|
|
@@ -952,86 +928,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.0", ngImpor
|
|
|
952
928
|
}] } });
|
|
953
929
|
|
|
954
930
|
class MtxTooltipModule {
|
|
955
|
-
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
956
|
-
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
957
|
-
|
|
958
|
-
OverlayModule,
|
|
959
|
-
MatCommonModule,
|
|
960
|
-
MtxPipesModule,
|
|
961
|
-
MtxTooltip,
|
|
962
|
-
TooltipComponent], exports: [MtxTooltip, TooltipComponent, MatCommonModule, CdkScrollableModule] }); }
|
|
963
|
-
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.0", ngImport: i0, type: MtxTooltipModule, providers: [MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER], imports: [A11yModule,
|
|
964
|
-
CommonModule,
|
|
965
|
-
OverlayModule,
|
|
966
|
-
MatCommonModule,
|
|
967
|
-
MtxPipesModule, MatCommonModule, CdkScrollableModule] }); }
|
|
931
|
+
/** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: MtxTooltipModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
932
|
+
/** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.0.1", ngImport: i0, type: MtxTooltipModule, imports: [A11yModule, OverlayModule, MtxPipesModule, MtxTooltip, TooltipComponent], exports: [MtxTooltip, TooltipComponent, BidiModule, CdkScrollableModule] }); }
|
|
933
|
+
/** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: MtxTooltipModule, imports: [A11yModule, OverlayModule, MtxPipesModule, BidiModule, CdkScrollableModule] }); }
|
|
968
934
|
}
|
|
969
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
935
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.0.1", ngImport: i0, type: MtxTooltipModule, decorators: [{
|
|
970
936
|
type: NgModule,
|
|
971
937
|
args: [{
|
|
972
|
-
imports: [
|
|
973
|
-
|
|
974
|
-
CommonModule,
|
|
975
|
-
OverlayModule,
|
|
976
|
-
MatCommonModule,
|
|
977
|
-
MtxPipesModule,
|
|
978
|
-
MtxTooltip,
|
|
979
|
-
TooltipComponent,
|
|
980
|
-
],
|
|
981
|
-
exports: [MtxTooltip, TooltipComponent, MatCommonModule, CdkScrollableModule],
|
|
982
|
-
providers: [MTX_TOOLTIP_SCROLL_STRATEGY_FACTORY_PROVIDER],
|
|
938
|
+
imports: [A11yModule, OverlayModule, MtxPipesModule, MtxTooltip, TooltipComponent],
|
|
939
|
+
exports: [MtxTooltip, TooltipComponent, BidiModule, CdkScrollableModule],
|
|
983
940
|
}]
|
|
984
941
|
}] });
|
|
985
942
|
|
|
986
|
-
/**
|
|
987
|
-
* Animations used by MatTooltip.
|
|
988
|
-
* @docs-private
|
|
989
|
-
* @deprecated No longer being used, to be removed.
|
|
990
|
-
* @breaking-change 21.0.0
|
|
991
|
-
*/
|
|
992
|
-
const matTooltipAnimations = {
|
|
993
|
-
// Represents:
|
|
994
|
-
// trigger('state', [
|
|
995
|
-
// state('initial, void, hidden', style({opacity: 0, transform: 'scale(0.8)'})),
|
|
996
|
-
// state('visible', style({transform: 'scale(1)'})),
|
|
997
|
-
// transition('* => visible', animate('150ms cubic-bezier(0, 0, 0.2, 1)')),
|
|
998
|
-
// transition('* => hidden', animate('75ms cubic-bezier(0.4, 0, 1, 1)')),
|
|
999
|
-
// ])
|
|
1000
|
-
/** Animation that transitions a tooltip in and out. */
|
|
1001
|
-
tooltipState: {
|
|
1002
|
-
type: 7,
|
|
1003
|
-
name: 'state',
|
|
1004
|
-
definitions: [
|
|
1005
|
-
{
|
|
1006
|
-
type: 0,
|
|
1007
|
-
name: 'initial, void, hidden',
|
|
1008
|
-
styles: { type: 6, styles: { opacity: 0, transform: 'scale(0.8)' }, offset: null },
|
|
1009
|
-
},
|
|
1010
|
-
{
|
|
1011
|
-
type: 0,
|
|
1012
|
-
name: 'visible',
|
|
1013
|
-
styles: { type: 6, styles: { transform: 'scale(1)' }, offset: null },
|
|
1014
|
-
},
|
|
1015
|
-
{
|
|
1016
|
-
type: 1,
|
|
1017
|
-
expr: '* => visible',
|
|
1018
|
-
animation: { type: 4, styles: null, timings: '150ms cubic-bezier(0, 0, 0.2, 1)' },
|
|
1019
|
-
options: null,
|
|
1020
|
-
},
|
|
1021
|
-
{
|
|
1022
|
-
type: 1,
|
|
1023
|
-
expr: '* => hidden',
|
|
1024
|
-
animation: { type: 4, styles: null, timings: '75ms cubic-bezier(0.4, 0, 1, 1)' },
|
|
1025
|
-
options: null,
|
|
1026
|
-
},
|
|
1027
|
-
],
|
|
1028
|
-
options: {},
|
|
1029
|
-
},
|
|
1030
|
-
};
|
|
1031
|
-
|
|
1032
943
|
/**
|
|
1033
944
|
* Generated bundle index. Do not edit.
|
|
1034
945
|
*/
|
|
1035
946
|
|
|
1036
|
-
export { MTX_TOOLTIP_DEFAULT_OPTIONS,
|
|
947
|
+
export { MTX_TOOLTIP_DEFAULT_OPTIONS, MTX_TOOLTIP_SCROLL_STRATEGY, MtxTooltip, MtxTooltipModule, SCROLL_THROTTLE_MS, TOOLTIP_PANEL_CLASS, TooltipComponent, getMtxTooltipInvalidPositionError };
|
|
1037
948
|
//# sourceMappingURL=mtxTooltip.mjs.map
|