@angular/material 21.0.0-next.8 → 21.0.0-rc.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/core/tokens/_classes.scss +1 -1
- package/core/tokens/m2/_md-sys-color.scss +17 -17
- package/fesm2022/_animation-chunk.mjs +10 -16
- package/fesm2022/_animation-chunk.mjs.map +1 -1
- package/fesm2022/_date-formats-chunk.mjs +68 -164
- package/fesm2022/_date-formats-chunk.mjs.map +1 -1
- package/fesm2022/_date-range-input-harness-chunk.mjs +284 -463
- package/fesm2022/_date-range-input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_error-options-chunk.mjs +56 -19
- package/fesm2022/_error-options-chunk.mjs.map +1 -1
- package/fesm2022/_error-state-chunk.mjs +24 -31
- package/fesm2022/_error-state-chunk.mjs.map +1 -1
- package/fesm2022/_form-field-chunk.mjs +1224 -1017
- package/fesm2022/_form-field-chunk.mjs.map +1 -1
- package/fesm2022/_icon-button-chunk.mjs +243 -187
- package/fesm2022/_icon-button-chunk.mjs.map +1 -1
- package/fesm2022/_icon-registry-chunk.mjs +350 -575
- package/fesm2022/_icon-registry-chunk.mjs.map +1 -1
- package/fesm2022/_input-harness-chunk.mjs +56 -107
- package/fesm2022/_input-harness-chunk.mjs.map +1 -1
- package/fesm2022/_input-value-accessor-chunk.mjs +0 -6
- package/fesm2022/_input-value-accessor-chunk.mjs.map +1 -1
- package/fesm2022/_internal-form-field-chunk.mjs +59 -19
- package/fesm2022/_internal-form-field-chunk.mjs.map +1 -1
- package/fesm2022/_line-chunk.mjs +83 -43
- package/fesm2022/_line-chunk.mjs.map +1 -1
- package/fesm2022/_option-chunk.mjs +348 -311
- package/fesm2022/_option-chunk.mjs.map +1 -1
- package/fesm2022/_option-harness-chunk.mjs +23 -39
- package/fesm2022/_option-harness-chunk.mjs.map +1 -1
- package/fesm2022/_option-module-chunk.mjs +36 -10
- package/fesm2022/_option-module-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-chunk.mjs +79 -44
- package/fesm2022/_pseudo-checkbox-chunk.mjs.map +1 -1
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs +36 -10
- package/fesm2022/_pseudo-checkbox-module-chunk.mjs.map +1 -1
- package/fesm2022/_public-api-chunk.mjs +71 -134
- package/fesm2022/_public-api-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-chunk.mjs +504 -600
- package/fesm2022/_ripple-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-loader-chunk.mjs +120 -138
- package/fesm2022/_ripple-loader-chunk.mjs.map +1 -1
- package/fesm2022/_ripple-module-chunk.mjs +36 -10
- package/fesm2022/_ripple-module-chunk.mjs.map +1 -1
- package/fesm2022/_structural-styles-chunk.mjs +37 -10
- package/fesm2022/_structural-styles-chunk.mjs.map +1 -1
- package/fesm2022/_tooltip-chunk.mjs +810 -888
- package/fesm2022/_tooltip-chunk.mjs.map +1 -1
- package/fesm2022/autocomplete-testing.mjs +62 -86
- package/fesm2022/autocomplete-testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +965 -1126
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge-testing.mjs +38 -54
- package/fesm2022/badge-testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +321 -272
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet-testing.mjs +10 -24
- package/fesm2022/bottom-sheet-testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +349 -344
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button-testing.mjs +60 -94
- package/fesm2022/button-testing.mjs.map +1 -1
- package/fesm2022/button-toggle-testing.mjs +76 -125
- package/fesm2022/button-toggle-testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +752 -662
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +263 -158
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card-testing.mjs +19 -33
- package/fesm2022/card-testing.mjs.map +1 -1
- package/fesm2022/card.mjs +576 -272
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox-testing.mjs +71 -123
- package/fesm2022/checkbox-testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +515 -477
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips-testing.mjs +201 -350
- package/fesm2022/chips-testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +2552 -2289
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/core-testing.mjs +14 -28
- package/fesm2022/core-testing.mjs.map +1 -1
- package/fesm2022/core.mjs +357 -328
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/datepicker-testing.mjs +15 -25
- package/fesm2022/datepicker-testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +4826 -4563
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog-testing.mjs +93 -129
- package/fesm2022/dialog-testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +810 -829
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider-testing.mjs +10 -11
- package/fesm2022/divider-testing.mjs.map +1 -1
- package/fesm2022/divider.mjs +119 -43
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/expansion-testing.mjs +74 -130
- package/fesm2022/expansion-testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +703 -515
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field-testing-control.mjs +16 -33
- package/fesm2022/form-field-testing-control.mjs.map +1 -1
- package/fesm2022/form-field-testing.mjs +118 -179
- package/fesm2022/form-field-testing.mjs.map +1 -1
- package/fesm2022/form-field.mjs +36 -10
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list-testing.mjs +65 -113
- package/fesm2022/grid-list-testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +559 -494
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon-testing.mjs +148 -127
- package/fesm2022/icon-testing.mjs.map +1 -1
- package/fesm2022/icon.mjs +325 -351
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/input-testing.mjs +59 -99
- package/fesm2022/input-testing.mjs.map +1 -1
- package/fesm2022/input.mjs +457 -520
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/list-testing.mjs +251 -434
- package/fesm2022/list-testing.mjs.map +1 -1
- package/fesm2022/list.mjs +1522 -1204
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/material.mjs +0 -5
- package/fesm2022/material.mjs.map +1 -1
- package/fesm2022/menu-testing.mjs +159 -228
- package/fesm2022/menu-testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +1338 -1343
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/paginator-testing.mjs +55 -79
- package/fesm2022/paginator-testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +381 -309
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar-testing.mjs +12 -21
- package/fesm2022/progress-bar-testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +224 -169
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner-testing.mjs +13 -23
- package/fesm2022/progress-spinner-testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +235 -160
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/radio-testing.mjs +133 -208
- package/fesm2022/radio-testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +712 -679
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/select-testing.mjs +83 -117
- package/fesm2022/select-testing.mjs.map +1 -1
- package/fesm2022/select.mjs +1116 -1246
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav-testing.mjs +54 -120
- package/fesm2022/sidenav-testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +1078 -995
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle-testing.mjs +57 -92
- package/fesm2022/slide-toggle-testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +369 -279
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider-testing.mjs +90 -138
- package/fesm2022/slider-testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +1651 -1716
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar-testing.mjs +40 -87
- package/fesm2022/snack-bar-testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +763 -714
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort-testing.mjs +45 -66
- package/fesm2022/sort-testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +419 -344
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper-testing.mjs +78 -154
- package/fesm2022/stepper-testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +790 -498
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/table-testing.mjs +125 -186
- package/fesm2022/table-testing.mjs.map +1 -1
- package/fesm2022/table.mjs +1026 -684
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs-testing.mjs +125 -197
- package/fesm2022/tabs-testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +2351 -2028
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker-testing.mjs +113 -172
- package/fesm2022/timepicker-testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +1019 -826
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar-testing.mjs +16 -27
- package/fesm2022/toolbar-testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +163 -78
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip-testing.mjs +41 -52
- package/fesm2022/tooltip-testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +36 -10
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree-testing.mjs +86 -162
- package/fesm2022/tree-testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +638 -466
- package/fesm2022/tree.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/types/expansion.d.ts +4 -2
- package/types/menu-testing.d.ts +2 -0
- package/types/select.d.ts +1 -1
- package/types/sort.d.ts +1 -1
- package/types/table-testing.d.ts +27 -1
- package/types/timepicker.d.ts +148 -128
package/fesm2022/toolbar.mjs
CHANGED
|
@@ -4,94 +4,179 @@ import { Directive, inject, ElementRef, DOCUMENT, Component, ChangeDetectionStra
|
|
|
4
4
|
import { Platform } from '@angular/cdk/platform';
|
|
5
5
|
|
|
6
6
|
class MatToolbarRow {
|
|
7
|
-
|
|
8
|
-
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
8
|
+
minVersion: "12.0.0",
|
|
9
|
+
version: "20.2.0-next.2",
|
|
10
|
+
ngImport: i0,
|
|
11
|
+
type: MatToolbarRow,
|
|
12
|
+
deps: [],
|
|
13
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
14
|
+
});
|
|
15
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
16
|
+
minVersion: "14.0.0",
|
|
17
|
+
version: "20.2.0-next.2",
|
|
18
|
+
type: MatToolbarRow,
|
|
19
|
+
isStandalone: true,
|
|
20
|
+
selector: "mat-toolbar-row",
|
|
21
|
+
host: {
|
|
22
|
+
classAttribute: "mat-toolbar-row"
|
|
23
|
+
},
|
|
24
|
+
exportAs: ["matToolbarRow"],
|
|
25
|
+
ngImport: i0
|
|
26
|
+
});
|
|
9
27
|
}
|
|
10
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
29
|
+
minVersion: "12.0.0",
|
|
30
|
+
version: "20.2.0-next.2",
|
|
31
|
+
ngImport: i0,
|
|
32
|
+
type: MatToolbarRow,
|
|
33
|
+
decorators: [{
|
|
34
|
+
type: Directive,
|
|
35
|
+
args: [{
|
|
36
|
+
selector: 'mat-toolbar-row',
|
|
37
|
+
exportAs: 'matToolbarRow',
|
|
38
|
+
host: {
|
|
39
|
+
'class': 'mat-toolbar-row'
|
|
40
|
+
}
|
|
41
|
+
}]
|
|
42
|
+
}]
|
|
43
|
+
});
|
|
18
44
|
class MatToolbar {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
*/
|
|
30
|
-
color;
|
|
31
|
-
/** Reference to all toolbar row elements that have been projected. */
|
|
32
|
-
_toolbarRows;
|
|
33
|
-
constructor() { }
|
|
34
|
-
ngAfterViewInit() {
|
|
35
|
-
if (this._platform.isBrowser) {
|
|
36
|
-
this._checkToolbarMixedModes();
|
|
37
|
-
this._toolbarRows.changes.subscribe(() => this._checkToolbarMixedModes());
|
|
38
|
-
}
|
|
45
|
+
_elementRef = inject(ElementRef);
|
|
46
|
+
_platform = inject(Platform);
|
|
47
|
+
_document = inject(DOCUMENT);
|
|
48
|
+
color;
|
|
49
|
+
_toolbarRows;
|
|
50
|
+
constructor() {}
|
|
51
|
+
ngAfterViewInit() {
|
|
52
|
+
if (this._platform.isBrowser) {
|
|
53
|
+
this._checkToolbarMixedModes();
|
|
54
|
+
this._toolbarRows.changes.subscribe(() => this._checkToolbarMixedModes());
|
|
39
55
|
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
const isCombinedUsage = Array.from(this._elementRef.nativeElement.childNodes)
|
|
48
|
-
.filter(node => !(node.classList && node.classList.contains('mat-toolbar-row')))
|
|
49
|
-
.filter(node => node.nodeType !== (this._document ? this._document.COMMENT_NODE : 8))
|
|
50
|
-
.some(node => !!(node.textContent && node.textContent.trim()));
|
|
51
|
-
if (isCombinedUsage) {
|
|
52
|
-
throwToolbarMixedModesError();
|
|
53
|
-
}
|
|
54
|
-
}
|
|
56
|
+
}
|
|
57
|
+
_checkToolbarMixedModes() {
|
|
58
|
+
if (this._toolbarRows.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {
|
|
59
|
+
const isCombinedUsage = Array.from(this._elementRef.nativeElement.childNodes).filter(node => !(node.classList && node.classList.contains('mat-toolbar-row'))).filter(node => node.nodeType !== (this._document ? this._document.COMMENT_NODE : 8)).some(node => !!(node.textContent && node.textContent.trim()));
|
|
60
|
+
if (isCombinedUsage) {
|
|
61
|
+
throwToolbarMixedModesError();
|
|
62
|
+
}
|
|
55
63
|
}
|
|
56
|
-
|
|
57
|
-
|
|
64
|
+
}
|
|
65
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
66
|
+
minVersion: "12.0.0",
|
|
67
|
+
version: "20.2.0-next.2",
|
|
68
|
+
ngImport: i0,
|
|
69
|
+
type: MatToolbar,
|
|
70
|
+
deps: [],
|
|
71
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
72
|
+
});
|
|
73
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
74
|
+
minVersion: "14.0.0",
|
|
75
|
+
version: "20.2.0-next.2",
|
|
76
|
+
type: MatToolbar,
|
|
77
|
+
isStandalone: true,
|
|
78
|
+
selector: "mat-toolbar",
|
|
79
|
+
inputs: {
|
|
80
|
+
color: "color"
|
|
81
|
+
},
|
|
82
|
+
host: {
|
|
83
|
+
properties: {
|
|
84
|
+
"class": "color ? \"mat-\" + color : \"\"",
|
|
85
|
+
"class.mat-toolbar-multiple-rows": "_toolbarRows.length > 0",
|
|
86
|
+
"class.mat-toolbar-single-row": "_toolbarRows.length === 0"
|
|
87
|
+
},
|
|
88
|
+
classAttribute: "mat-toolbar"
|
|
89
|
+
},
|
|
90
|
+
queries: [{
|
|
91
|
+
propertyName: "_toolbarRows",
|
|
92
|
+
predicate: MatToolbarRow,
|
|
93
|
+
descendants: true
|
|
94
|
+
}],
|
|
95
|
+
exportAs: ["matToolbar"],
|
|
96
|
+
ngImport: i0,
|
|
97
|
+
template: "<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n",
|
|
98
|
+
styles: [".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}\n"],
|
|
99
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
100
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
101
|
+
});
|
|
58
102
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
103
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
104
|
+
minVersion: "12.0.0",
|
|
105
|
+
version: "20.2.0-next.2",
|
|
106
|
+
ngImport: i0,
|
|
107
|
+
type: MatToolbar,
|
|
108
|
+
decorators: [{
|
|
109
|
+
type: Component,
|
|
110
|
+
args: [{
|
|
111
|
+
selector: 'mat-toolbar',
|
|
112
|
+
exportAs: 'matToolbar',
|
|
113
|
+
host: {
|
|
114
|
+
'class': 'mat-toolbar',
|
|
115
|
+
'[class]': 'color ? "mat-" + color : ""',
|
|
116
|
+
'[class.mat-toolbar-multiple-rows]': '_toolbarRows.length > 0',
|
|
117
|
+
'[class.mat-toolbar-single-row]': '_toolbarRows.length === 0'
|
|
118
|
+
},
|
|
119
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
120
|
+
encapsulation: ViewEncapsulation.None,
|
|
121
|
+
template: "<ng-content></ng-content>\n<ng-content select=\"mat-toolbar-row\"></ng-content>\n",
|
|
122
|
+
styles: [".mat-toolbar{background:var(--mat-toolbar-container-background-color, var(--mat-sys-surface));color:var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar,.mat-toolbar h1,.mat-toolbar h2,.mat-toolbar h3,.mat-toolbar h4,.mat-toolbar h5,.mat-toolbar h6{font-family:var(--mat-toolbar-title-text-font, var(--mat-sys-title-large-font));font-size:var(--mat-toolbar-title-text-size, var(--mat-sys-title-large-size));line-height:var(--mat-toolbar-title-text-line-height, var(--mat-sys-title-large-line-height));font-weight:var(--mat-toolbar-title-text-weight, var(--mat-sys-title-large-weight));letter-spacing:var(--mat-toolbar-title-text-tracking, var(--mat-sys-title-large-tracking));margin:0}@media(forced-colors: active){.mat-toolbar{outline:solid 1px}}.mat-toolbar .mat-form-field-underline,.mat-toolbar .mat-form-field-ripple,.mat-toolbar .mat-focused .mat-form-field-ripple{background-color:currentColor}.mat-toolbar .mat-form-field-label,.mat-toolbar .mat-focused .mat-form-field-label,.mat-toolbar .mat-select-value,.mat-toolbar .mat-select-arrow,.mat-toolbar .mat-form-field.mat-focused .mat-select-arrow{color:inherit}.mat-toolbar .mat-input-element{caret-color:currentColor}.mat-toolbar .mat-mdc-button-base.mat-mdc-button-base.mat-unthemed{--mat-button-text-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface));--mat-button-outlined-label-text-color: var(--mat-toolbar-container-text-color, var(--mat-sys-on-surface))}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap;height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-row,.mat-toolbar-single-row{height:var(--mat-toolbar-mobile-height, 56px)}}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%;min-height:var(--mat-toolbar-standard-height, 64px)}@media(max-width: 599px){.mat-toolbar-multiple-rows{min-height:var(--mat-toolbar-mobile-height, 56px)}}\n"]
|
|
123
|
+
}]
|
|
124
|
+
}],
|
|
125
|
+
ctorParameters: () => [],
|
|
126
|
+
propDecorators: {
|
|
127
|
+
color: [{
|
|
128
|
+
type: Input
|
|
129
|
+
}],
|
|
130
|
+
_toolbarRows: [{
|
|
131
|
+
type: ContentChildren,
|
|
132
|
+
args: [MatToolbarRow, {
|
|
133
|
+
descendants: true
|
|
134
|
+
}]
|
|
135
|
+
}]
|
|
136
|
+
}
|
|
137
|
+
});
|
|
77
138
|
function throwToolbarMixedModesError() {
|
|
78
|
-
|
|
79
|
-
'Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content ' +
|
|
80
|
-
'inside of a `<mat-toolbar>` for a single row.');
|
|
139
|
+
throw Error('MatToolbar: Attempting to combine different toolbar modes. ' + 'Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content ' + 'inside of a `<mat-toolbar>` for a single row.');
|
|
81
140
|
}
|
|
82
141
|
|
|
83
142
|
class MatToolbarModule {
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
143
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
144
|
+
minVersion: "12.0.0",
|
|
145
|
+
version: "20.2.0-next.2",
|
|
146
|
+
ngImport: i0,
|
|
147
|
+
type: MatToolbarModule,
|
|
148
|
+
deps: [],
|
|
149
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
150
|
+
});
|
|
151
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
152
|
+
minVersion: "14.0.0",
|
|
153
|
+
version: "20.2.0-next.2",
|
|
154
|
+
ngImport: i0,
|
|
155
|
+
type: MatToolbarModule,
|
|
156
|
+
imports: [MatToolbar, MatToolbarRow],
|
|
157
|
+
exports: [MatToolbar, MatToolbarRow, BidiModule]
|
|
158
|
+
});
|
|
159
|
+
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
160
|
+
minVersion: "12.0.0",
|
|
161
|
+
version: "20.2.0-next.2",
|
|
162
|
+
ngImport: i0,
|
|
163
|
+
type: MatToolbarModule,
|
|
164
|
+
imports: [BidiModule]
|
|
165
|
+
});
|
|
87
166
|
}
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
167
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
168
|
+
minVersion: "12.0.0",
|
|
169
|
+
version: "20.2.0-next.2",
|
|
170
|
+
ngImport: i0,
|
|
171
|
+
type: MatToolbarModule,
|
|
172
|
+
decorators: [{
|
|
173
|
+
type: NgModule,
|
|
174
|
+
args: [{
|
|
175
|
+
imports: [MatToolbar, MatToolbarRow],
|
|
176
|
+
exports: [MatToolbar, MatToolbarRow, BidiModule]
|
|
177
|
+
}]
|
|
178
|
+
}]
|
|
179
|
+
});
|
|
95
180
|
|
|
96
181
|
export { MatToolbar, MatToolbarModule, MatToolbarRow, throwToolbarMixedModesError };
|
|
97
182
|
//# sourceMappingURL=toolbar.mjs.map
|
package/fesm2022/toolbar.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material/toolbar/toolbar.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material/toolbar/toolbar
|
|
1
|
+
{"version":3,"file":"toolbar.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material/toolbar/toolbar.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material/toolbar/toolbar-module.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Platform} from '@angular/cdk/platform';\n\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChildren,\n Directive,\n ElementRef,\n Input,\n QueryList,\n ViewEncapsulation,\n inject,\n DOCUMENT,\n} from '@angular/core';\n\n@Directive({\n selector: 'mat-toolbar-row',\n exportAs: 'matToolbarRow',\n host: {'class': 'mat-toolbar-row'},\n})\nexport class MatToolbarRow {}\n\n@Component({\n selector: 'mat-toolbar',\n exportAs: 'matToolbar',\n templateUrl: 'toolbar.html',\n styleUrl: 'toolbar.css',\n host: {\n 'class': 'mat-toolbar',\n '[class]': 'color ? \"mat-\" + color : \"\"',\n '[class.mat-toolbar-multiple-rows]': '_toolbarRows.length > 0',\n '[class.mat-toolbar-single-row]': '_toolbarRows.length === 0',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class MatToolbar implements AfterViewInit {\n protected _elementRef = inject(ElementRef);\n private _platform = inject(Platform);\n private _document = inject(DOCUMENT);\n\n // TODO: should be typed as `ThemePalette` but internal apps pass in arbitrary strings.\n /**\n * Theme color of the toolbar. This API is supported in M2 themes only, it has\n * no effect in M3 themes. For color customization in M3, see https://material.angular.dev/components/toolbar/styling.\n *\n * For information on applying color variants in M3, see\n * https://material.angular.dev/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants\n */\n @Input() color?: string | null;\n\n /** Reference to all toolbar row elements that have been projected. */\n @ContentChildren(MatToolbarRow, {descendants: true}) _toolbarRows: QueryList<MatToolbarRow>;\n\n constructor(...args: unknown[]);\n constructor() {}\n\n ngAfterViewInit() {\n if (this._platform.isBrowser) {\n this._checkToolbarMixedModes();\n this._toolbarRows.changes.subscribe(() => this._checkToolbarMixedModes());\n }\n }\n\n /**\n * Throws an exception when developers are attempting to combine the different toolbar row modes.\n */\n private _checkToolbarMixedModes() {\n if (this._toolbarRows.length && (typeof ngDevMode === 'undefined' || ngDevMode)) {\n // Check if there are any other DOM nodes that can display content but aren't inside of\n // a <mat-toolbar-row> element.\n const isCombinedUsage = Array.from<HTMLElement>(this._elementRef.nativeElement.childNodes)\n .filter(node => !(node.classList && node.classList.contains('mat-toolbar-row')))\n .filter(node => node.nodeType !== (this._document ? this._document.COMMENT_NODE : 8))\n .some(node => !!(node.textContent && node.textContent.trim()));\n\n if (isCombinedUsage) {\n throwToolbarMixedModesError();\n }\n }\n }\n}\n\n/**\n * Throws an exception when attempting to combine the different toolbar row modes.\n * @docs-private\n */\nexport function throwToolbarMixedModesError() {\n throw Error(\n 'MatToolbar: Attempting to combine different toolbar modes. ' +\n 'Either specify multiple `<mat-toolbar-row>` elements explicitly or just place content ' +\n 'inside of a `<mat-toolbar>` for a single row.',\n );\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {BidiModule} from '@angular/cdk/bidi';\nimport {NgModule} from '@angular/core';\nimport {MatToolbar, MatToolbarRow} from './toolbar';\n\n@NgModule({\n imports: [MatToolbar, MatToolbarRow],\n exports: [MatToolbar, MatToolbarRow, BidiModule],\n})\nexport class MatToolbarModule {}\n"],"names":["minVersion","version","ngImport","i0","type","MatToolbarRow","decorators","Directive","selector","DOCUMENT","_toolbarRows","changes","subscribe","_checkToolbarMixedModes","isCombinedUsage","Array","from","_elementRef","nativeElement","childNodes","filter","node","nodeType","_document","COMMENT_NODE","some","textContent","trim","throwToolbarMixedModesError","template","styles","ctorParameters","propDecorators","color","descendants","MatToolbarModule"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;2BAwBU,CAAA;AAAAA,EAAAA,UAAA,EAAA,QAAA;EAAAC,OAAA,EAAA,eAAA;AAAAC,EAAAA,QAAA,EAAAC,EAAA;AAAAC,EAAAA,IAAA,EAAAC,aAAA;EAAAC,UAAA,EAAA,CAAA;AAGRF,IAAAA,IAAA,EAAAG,SAAA;;MAkCqDC,QAAY,EAAA,iBAAA;;;;;;;;;;;AAJ9D,EAAA,SAAA,GAAA,MAAA,CAAAC,QAAA,CAAA;;;;;;;AAzBoB,MAAA,IAAA,CAAAC,YAAA,CAAAC,OAAA,CAAAC,SAAA,YAAAC,uBAAA,EAAA,CAAA;AAMrB;AACA;yBAsBeA,GAAA;;AAkChB,MAAA,MAAAC,eAAA,GAAAC,KAAA,CAAAC,IAAA,CAAA,IAAA,CAAAC,WAAA,CAAAC,aAAA,CAAAC,UAAA,QAEKC,CAAAA,IAAAA,IAAAA,EAAAA,IAAAA,CAAAA,SAAAA,IAAAA,IAAAA,CAAAA,SAAAA,CAAAA,QAAAA,CAAAA,iBAAAA,CAAAA,CAAAA,CAAAA,CAAAA,MAAA,CAAAC,IAAA,IAAAA,IAAA,CAAAC,QAAA,MAAAC,IAAAA,CAAAA,SAAA,QAAAA,SAAA,CAAAC,YAAA,GAEsFC,CAAAA,CAAAA,CAAAA,CAAAA,IAAA,CAAAJ,IAAA,IAAA,CAAAA,EAAAA,IAAA,CAAAK,WAAA,IAAAL,IAAA,CAAAK,WAAA,CAAAC,IAAA,EAAA,CAAA,CAAA;AACxF,MAAA,IAAAb,eAAA,EAAA;QAENc,2BAAA,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;2CArBe;MAAAC,QAAA,EAAA,mFAAA;MAAAC,MAAA,EAAA,CAAA,sgEAAA;AAAA,KAAA;;kBAfEC,MAAA,EAAA;EAAAC,cAAA,EAAA;IAAAC,KAAA,EAAA,CAAA;;;gBAOf,EAAA,CAAA;;AAEG,MAAA,IAAA,EAAA,CAAA,aAAA,EAAA;QAAAC,WAAA,EAAA;OAAA;;;;oCApCDN,GAAA;AAAA,EAAA,MAAA,KAAA,CAAA,6DAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;2BC3BK,CAAA;AAAA5B,EAAAA,UAAA,EAAA,QAAA;EAAAC,OAAA,EAAA,eAAA;AAAAC,EAAAA,QAAA,EAAAC,EAAA;AAAAC,EAAAA,IAAA,EAAA+B,gBAAA;EAAA7B,UAAA,EAAA,CAAA;;;;;;;;;;;"}
|
|
@@ -1,58 +1,47 @@
|
|
|
1
1
|
import { ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
2
|
|
|
3
|
-
/** Harness for interacting with a mat-tooltip in tests. */
|
|
4
3
|
class MatTooltipHarness extends ComponentHarness {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/** Gets whether the tooltip is disabled */
|
|
47
|
-
async isDisabled() {
|
|
48
|
-
const host = await this.host();
|
|
49
|
-
return host.hasClass(this._disabledClass);
|
|
50
|
-
}
|
|
51
|
-
/** Gets a promise for the tooltip panel's text. */
|
|
52
|
-
async getTooltipText() {
|
|
53
|
-
const panel = await this._optionalPanel();
|
|
54
|
-
return panel ? panel.text() : '';
|
|
55
|
-
}
|
|
4
|
+
static hostSelector = '.mat-mdc-tooltip-trigger';
|
|
5
|
+
_optionalPanel = this.documentRootLocatorFactory().locatorForOptional('.mat-mdc-tooltip');
|
|
6
|
+
_hiddenClass = 'mat-mdc-tooltip-hide';
|
|
7
|
+
_disabledClass = 'mat-mdc-tooltip-disabled';
|
|
8
|
+
_showAnimationName = 'mat-mdc-tooltip-show';
|
|
9
|
+
_hideAnimationName = 'mat-mdc-tooltip-hide';
|
|
10
|
+
static with(options = {}) {
|
|
11
|
+
return new HarnessPredicate(this, options);
|
|
12
|
+
}
|
|
13
|
+
async show() {
|
|
14
|
+
const host = await this.host();
|
|
15
|
+
await host.dispatchEvent('touchstart', {
|
|
16
|
+
changedTouches: []
|
|
17
|
+
});
|
|
18
|
+
await host.hover();
|
|
19
|
+
const panel = await this._optionalPanel();
|
|
20
|
+
await panel?.dispatchEvent('animationend', {
|
|
21
|
+
animationName: this._showAnimationName
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
async hide() {
|
|
25
|
+
const host = await this.host();
|
|
26
|
+
await host.dispatchEvent('touchend');
|
|
27
|
+
await host.mouseAway();
|
|
28
|
+
const panel = await this._optionalPanel();
|
|
29
|
+
await panel?.dispatchEvent('animationend', {
|
|
30
|
+
animationName: this._hideAnimationName
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async isOpen() {
|
|
34
|
+
const panel = await this._optionalPanel();
|
|
35
|
+
return !!panel && !(await panel.hasClass(this._hiddenClass));
|
|
36
|
+
}
|
|
37
|
+
async isDisabled() {
|
|
38
|
+
const host = await this.host();
|
|
39
|
+
return host.hasClass(this._disabledClass);
|
|
40
|
+
}
|
|
41
|
+
async getTooltipText() {
|
|
42
|
+
const panel = await this._optionalPanel();
|
|
43
|
+
return panel ? panel.text() : '';
|
|
44
|
+
}
|
|
56
45
|
}
|
|
57
46
|
|
|
58
47
|
export { MatTooltipHarness };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material/tooltip/testing/tooltip-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n} from '@angular/cdk/testing';\nimport {TooltipHarnessFilters} from './tooltip-harness-filters';\n\n/** Harness for interacting with a mat-tooltip in tests. */\nexport class MatTooltipHarness extends ComponentHarness {\n static hostSelector = '.mat-mdc-tooltip-trigger';\n\n private _optionalPanel = this.documentRootLocatorFactory().locatorForOptional('.mat-mdc-tooltip');\n private _hiddenClass = 'mat-mdc-tooltip-hide';\n private _disabledClass = 'mat-mdc-tooltip-disabled';\n private _showAnimationName = 'mat-mdc-tooltip-show';\n private _hideAnimationName = 'mat-mdc-tooltip-hide';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a tooltip trigger with specific\n * attributes.\n * @param options Options for narrowing the search.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatTooltipHarness>(\n this: ComponentHarnessConstructor<T>,\n options: TooltipHarnessFilters = {},\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, options);\n }\n\n /** Shows the tooltip. */\n async show(): Promise<void> {\n const host = await this.host();\n\n // We need to dispatch both `touchstart` and a hover event, because the tooltip binds\n // different events depending on the device. The `changedTouches` is there in case the\n // element has ripples.\n await host.dispatchEvent('touchstart', {changedTouches: []});\n await host.hover();\n const panel = await this._optionalPanel();\n await panel?.dispatchEvent('animationend', {animationName: this._showAnimationName});\n }\n\n /** Hides the tooltip. */\n async hide(): Promise<void> {\n const host = await this.host();\n\n // We need to dispatch both `touchstart` and a hover event, because\n // the tooltip binds different events depending on the device.\n await host.dispatchEvent('touchend');\n await host.mouseAway();\n const panel = await this._optionalPanel();\n await panel?.dispatchEvent('animationend', {animationName: this._hideAnimationName});\n }\n\n /** Gets whether the tooltip is open. */\n async isOpen(): Promise<boolean> {\n const panel = await this._optionalPanel();\n return !!panel && !(await panel.hasClass(this._hiddenClass));\n }\n\n /** Gets whether the tooltip is disabled */\n async isDisabled(): Promise<boolean> {\n const host = await this.host();\n return host.hasClass(this._disabledClass);\n }\n\n /** Gets a promise for the tooltip panel's text. */\n async getTooltipText(): Promise<string> {\n const panel = await this._optionalPanel();\n return panel ? panel.text() : '';\n }\n}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"tooltip-testing.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material/tooltip/testing/tooltip-harness.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {\n ComponentHarness,\n ComponentHarnessConstructor,\n HarnessPredicate,\n} from '@angular/cdk/testing';\nimport {TooltipHarnessFilters} from './tooltip-harness-filters';\n\n/** Harness for interacting with a mat-tooltip in tests. */\nexport class MatTooltipHarness extends ComponentHarness {\n static hostSelector = '.mat-mdc-tooltip-trigger';\n\n private _optionalPanel = this.documentRootLocatorFactory().locatorForOptional('.mat-mdc-tooltip');\n private _hiddenClass = 'mat-mdc-tooltip-hide';\n private _disabledClass = 'mat-mdc-tooltip-disabled';\n private _showAnimationName = 'mat-mdc-tooltip-show';\n private _hideAnimationName = 'mat-mdc-tooltip-hide';\n\n /**\n * Gets a `HarnessPredicate` that can be used to search for a tooltip trigger with specific\n * attributes.\n * @param options Options for narrowing the search.\n * @return a `HarnessPredicate` configured with the given options.\n */\n static with<T extends MatTooltipHarness>(\n this: ComponentHarnessConstructor<T>,\n options: TooltipHarnessFilters = {},\n ): HarnessPredicate<T> {\n return new HarnessPredicate(this, options);\n }\n\n /** Shows the tooltip. */\n async show(): Promise<void> {\n const host = await this.host();\n\n // We need to dispatch both `touchstart` and a hover event, because the tooltip binds\n // different events depending on the device. The `changedTouches` is there in case the\n // element has ripples.\n await host.dispatchEvent('touchstart', {changedTouches: []});\n await host.hover();\n const panel = await this._optionalPanel();\n await panel?.dispatchEvent('animationend', {animationName: this._showAnimationName});\n }\n\n /** Hides the tooltip. */\n async hide(): Promise<void> {\n const host = await this.host();\n\n // We need to dispatch both `touchstart` and a hover event, because\n // the tooltip binds different events depending on the device.\n await host.dispatchEvent('touchend');\n await host.mouseAway();\n const panel = await this._optionalPanel();\n await panel?.dispatchEvent('animationend', {animationName: this._hideAnimationName});\n }\n\n /** Gets whether the tooltip is open. */\n async isOpen(): Promise<boolean> {\n const panel = await this._optionalPanel();\n return !!panel && !(await panel.hasClass(this._hiddenClass));\n }\n\n /** Gets whether the tooltip is disabled */\n async isDisabled(): Promise<boolean> {\n const host = await this.host();\n return host.hasClass(this._disabledClass);\n }\n\n /** Gets a promise for the tooltip panel's text. */\n async getTooltipText(): Promise<string> {\n const panel = await this._optionalPanel();\n return panel ? panel.text() : '';\n }\n}\n"],"names":["_hideAnimationName","with","options","HarnessPredicate","host","dispatchEvent","changedTouches","panel","_optionalPanel","animationName","_showAnimationName","hide"],"mappings":";;;;;;;oBAyBE,GAAA;EAMAA,kBAAA,GAAA,sBAAA;EAayB,OAAAC,IAAAA,CAAAC,OAAA,GAAA,EAAA,EAAA;IAEvB,OAAAC,IAAAA,gBAAA,OAAAD,OAAA,CAAA;;;;IAaA,MAAAE,IAAA,CAAAC,aAAA,CAAA,YAAA,EAAA;MAAAC,cAAA,EAAA;AAAA,KAAA,CAAA;;UAIsCC,KAAA,cAAAC,cAAA,EAAA;IACxC,MAAMD,KAAM,EAAAF,aAAA,CAAA,cAAA,EAAA;AAAAI,MAAAA,aAAA,EAAAC,IAAAA,CAAAA;AAAA,KAAA,CAAA;;QAKZC,IAAA,GAAA;IACA,MAAMP,IAAU,GAAA,MAAA,IAAA,CAAAA,IAAA,EAAA;IAGhB,MAAAA,IAAA,CAAAC,aAAA,CAAA,UAAA,CAAA;;IAIE,MAAAE,KAAA,GAAc,MAAA,IAAA,CAAAC,cAAA,EAAA;IACd,MAAAD,KAAA,EAAAF,aAAA,CAAA,cAAA,EAAA;AAAAI,MAAAA,aAAA,EAAAT,IAAAA,CAAAA;AAAA,KAAA,CAAA;;;;;;;;;;;;;;;;;;"}
|
package/fesm2022/tooltip.mjs
CHANGED
|
@@ -17,17 +17,43 @@ import './_animation-chunk.mjs';
|
|
|
17
17
|
import '@angular/cdk/layout';
|
|
18
18
|
|
|
19
19
|
class MatTooltipModule {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
21
|
+
minVersion: "12.0.0",
|
|
22
|
+
version: "20.2.0-next.2",
|
|
23
|
+
ngImport: i0,
|
|
24
|
+
type: MatTooltipModule,
|
|
25
|
+
deps: [],
|
|
26
|
+
target: i0.ɵɵFactoryTarget.NgModule
|
|
27
|
+
});
|
|
28
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({
|
|
29
|
+
minVersion: "14.0.0",
|
|
30
|
+
version: "20.2.0-next.2",
|
|
31
|
+
ngImport: i0,
|
|
32
|
+
type: MatTooltipModule,
|
|
33
|
+
imports: [A11yModule, OverlayModule, MatTooltip, TooltipComponent],
|
|
34
|
+
exports: [MatTooltip, TooltipComponent, BidiModule, CdkScrollableModule]
|
|
35
|
+
});
|
|
36
|
+
static ɵinj = i0.ɵɵngDeclareInjector({
|
|
37
|
+
minVersion: "12.0.0",
|
|
38
|
+
version: "20.2.0-next.2",
|
|
39
|
+
ngImport: i0,
|
|
40
|
+
type: MatTooltipModule,
|
|
41
|
+
imports: [A11yModule, OverlayModule, BidiModule, CdkScrollableModule]
|
|
42
|
+
});
|
|
23
43
|
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
45
|
+
minVersion: "12.0.0",
|
|
46
|
+
version: "20.2.0-next.2",
|
|
47
|
+
ngImport: i0,
|
|
48
|
+
type: MatTooltipModule,
|
|
49
|
+
decorators: [{
|
|
50
|
+
type: NgModule,
|
|
51
|
+
args: [{
|
|
52
|
+
imports: [A11yModule, OverlayModule, MatTooltip, TooltipComponent],
|
|
53
|
+
exports: [MatTooltip, TooltipComponent, BidiModule, CdkScrollableModule]
|
|
54
|
+
}]
|
|
55
|
+
}]
|
|
56
|
+
});
|
|
31
57
|
|
|
32
58
|
export { MatTooltip, MatTooltipModule, TooltipComponent };
|
|
33
59
|
//# sourceMappingURL=tooltip.mjs.map
|
package/fesm2022/tooltip.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooltip.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material/tooltip/tooltip-module.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {NgModule} from '@angular/core';\nimport {A11yModule} from '@angular/cdk/a11y';\nimport {BidiModule} from '@angular/cdk/bidi';\nimport {OverlayModule} from '@angular/cdk/overlay';\nimport {CdkScrollableModule} from '@angular/cdk/scrolling';\nimport {MatTooltip, TooltipComponent} from './tooltip';\n\n@NgModule({\n imports: [A11yModule, OverlayModule, MatTooltip, TooltipComponent],\n exports: [MatTooltip, TooltipComponent, BidiModule, CdkScrollableModule],\n})\nexport class MatTooltipModule {}\n"],"names":[
|
|
1
|
+
{"version":3,"file":"tooltip.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/src/material/tooltip/tooltip-module.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {NgModule} from '@angular/core';\nimport {A11yModule} from '@angular/cdk/a11y';\nimport {BidiModule} from '@angular/cdk/bidi';\nimport {OverlayModule} from '@angular/cdk/overlay';\nimport {CdkScrollableModule} from '@angular/cdk/scrolling';\nimport {MatTooltip, TooltipComponent} from './tooltip';\n\n@NgModule({\n imports: [A11yModule, OverlayModule, MatTooltip, TooltipComponent],\n exports: [MatTooltip, TooltipComponent, BidiModule, CdkScrollableModule],\n})\nexport class MatTooltipModule {}\n"],"names":["ɵfac","i0","ɵɵngDeclareFactory","minVersion","version","ngImport","type","MatTooltipModule","deps","target","ɵɵFactoryTarget","NgModule","ɵmod","ɵɵngDeclareNgModule","imports","A11yModule","OverlayModule","MatTooltip","TooltipComponent","exports","BidiModule","CdkScrollableModule","decorators"],"mappings":";;;;;;;;;;;;;;;;;;;AAmBa,EAAA,OAAAA,IAAA,GAAAC,EAAA,CAAAC,kBAAA,CAAA;IAAAC,UAAA,EAAA,QAAA;IAAAC,OAAA,EAAA,eAAA;AAAAC,IAAAA,QAAA,EAAAJ,EAAA;AAAAK,IAAAA,IAAA,EAAAC,gBAAA;IAAAC,IAAA,EAAA,EAAA;AAAAC,IAAAA,MAAA,EAAAR,EAAA,CAAAS,eAAA,CAAAC;AAAA,GAAA,CAAA;AAAA,EAAA,OAAAC,IAAA,GAAAX,EAAA,CAAAY,mBAAA,CAAA;IAAAV,UAAA,EAAA,QAAA;IAAAC,OAAA,EAAA,eAAA;AAAAC,IAAAA,QAAA,EAAAJ,EAAA;AAAAK,IAAAA,IAAA,EAAAC,gBAAA;AAAAO,IAAAA,OAAA,GAAAC,UAAA,EAAAC,aAAA,EAAAC,UAAA,EAAAC,gBAAA,CAAA;AAAAC,IAAAA,OAAA,GAAAF,UAAA,EAAAC,gBAAA,EAAAE,UAAA,EAAAC,mBAAA;AAAA,GAAA,CAAA;;;;;;;;;2BAJJ,CAAA;AAAAlB,EAAAA,UAAA,EAAA,QAAA;EAAAC,OAAA,EAAA,eAAA;AAAAC,EAAAA,QAAA,EAAAJ,EAAA;AAAAK,EAAAA,IAAA,EAAAC,gBAAA;EAAAe,UAAA,EAAA,CAAA;;;;;;;;;;;"}
|