@angular/material 20.0.0-next.0 → 20.0.0-next.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/index.d.ts +92 -126
- package/autocomplete/testing/index.d.ts +6 -11
- package/badge/index.d.ts +8 -112
- package/badge/testing/index.d.ts +7 -8
- package/badge.d-49a8a74b.d.ts +98 -0
- package/bottom-sheet/index.d.ts +88 -103
- package/bottom-sheet/testing/index.d.ts +4 -6
- package/button/index.d.ts +10 -245
- package/button/testing/index.d.ts +6 -10
- package/button-toggle/index.d.ts +12 -285
- package/button-toggle/testing/index.d.ts +38 -37
- package/button-toggle.d-edc8acff.d.ts +257 -0
- package/card/index.d.ts +80 -117
- package/card/testing/index.d.ts +11 -15
- package/checkbox/index.d.ts +43 -104
- package/checkbox/testing/index.d.ts +6 -10
- package/chips/index.d.ts +599 -693
- package/chips/testing/index.d.ts +78 -93
- package/common-module.d-0e6515ae.d.ts +43 -0
- package/core/index.d.ts +50 -979
- package/core/testing/index.d.ts +3 -65
- package/date-adapter.d-c6835d41.d.ts +267 -0
- package/date-range-input-harness.d-549a9f7e.d.ts +278 -0
- package/datepicker/index.d.ts +1332 -1482
- package/datepicker/testing/index.d.ts +5 -287
- package/dialog/index.d.ts +59 -453
- package/dialog/testing/index.d.ts +22 -26
- package/dialog.d-57867441.d.ts +335 -0
- package/divider/index.d.ts +6 -11
- package/divider/testing/index.d.ts +2 -16
- package/divider-harness.d-d34fede4.d.ts +14 -0
- package/error-options.d-448d9046.d.ts +17 -0
- package/expansion/index.d.ts +139 -190
- package/expansion/testing/index.d.ts +25 -31
- package/fesm2022/autocomplete/testing.mjs +2 -1
- package/fesm2022/autocomplete/testing.mjs.map +1 -1
- package/fesm2022/autocomplete.mjs +53 -32
- package/fesm2022/autocomplete.mjs.map +1 -1
- package/fesm2022/badge/testing.mjs.map +1 -1
- package/fesm2022/badge.mjs +14 -17
- package/fesm2022/badge.mjs.map +1 -1
- package/fesm2022/bottom-sheet/testing.mjs.map +1 -1
- package/fesm2022/bottom-sheet.mjs +13 -15
- package/fesm2022/bottom-sheet.mjs.map +1 -1
- package/fesm2022/button/testing.mjs.map +1 -1
- package/fesm2022/button-toggle/testing.mjs.map +1 -1
- package/fesm2022/button-toggle.mjs +22 -15
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/button.mjs +14 -395
- package/fesm2022/button.mjs.map +1 -1
- package/fesm2022/card/testing.mjs.map +1 -1
- package/fesm2022/card.mjs +49 -51
- package/fesm2022/card.mjs.map +1 -1
- package/fesm2022/checkbox/testing.mjs.map +1 -1
- package/fesm2022/checkbox.mjs +32 -73
- package/fesm2022/checkbox.mjs.map +1 -1
- package/fesm2022/chips/testing.mjs.map +1 -1
- package/fesm2022/chips.mjs +51 -46
- package/fesm2022/chips.mjs.map +1 -1
- package/fesm2022/common-module-2d64df09.mjs +42 -0
- package/fesm2022/common-module-2d64df09.mjs.map +1 -0
- package/fesm2022/core/testing.mjs +3 -76
- package/fesm2022/core/testing.mjs.map +1 -1
- package/fesm2022/core.mjs +38 -1598
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/date-formats-b618acb8.mjs +190 -0
- package/fesm2022/date-formats-b618acb8.mjs.map +1 -0
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs +467 -0
- package/fesm2022/date-range-input-harness-ee47cdb0.mjs.map +1 -0
- package/fesm2022/datepicker/testing.mjs +5 -465
- package/fesm2022/datepicker/testing.mjs.map +1 -1
- package/fesm2022/datepicker.mjs +159 -128
- package/fesm2022/datepicker.mjs.map +1 -1
- package/fesm2022/dialog/testing.mjs +12 -1
- package/fesm2022/dialog/testing.mjs.map +1 -1
- package/fesm2022/dialog.mjs +14 -895
- package/fesm2022/dialog.mjs.map +1 -1
- package/fesm2022/divider/testing.mjs +2 -17
- package/fesm2022/divider/testing.mjs.map +1 -1
- package/fesm2022/divider-harness-3394f29a.mjs +18 -0
- package/fesm2022/divider-harness-3394f29a.mjs.map +1 -0
- package/fesm2022/divider.mjs +10 -12
- package/fesm2022/divider.mjs.map +1 -1
- package/fesm2022/error-options-4a00765e.mjs +29 -0
- package/fesm2022/error-options-4a00765e.mjs.map +1 -0
- package/fesm2022/error-state-8f4ce1af.mjs +37 -0
- package/fesm2022/error-state-8f4ce1af.mjs.map +1 -0
- package/fesm2022/expansion/testing.mjs.map +1 -1
- package/fesm2022/expansion.mjs +30 -32
- package/fesm2022/expansion.mjs.map +1 -1
- package/fesm2022/form-field/testing/control.mjs +2 -10
- package/fesm2022/form-field/testing/control.mjs.map +1 -1
- package/fesm2022/form-field/testing.mjs +7 -6
- package/fesm2022/form-field/testing.mjs.map +1 -1
- package/fesm2022/form-field-6d755764.mjs +1076 -0
- package/fesm2022/form-field-6d755764.mjs.map +1 -0
- package/fesm2022/form-field-control-harness-af6fd278.mjs +11 -0
- package/fesm2022/form-field-control-harness-af6fd278.mjs.map +1 -0
- package/fesm2022/form-field.mjs +14 -1110
- package/fesm2022/form-field.mjs.map +1 -1
- package/fesm2022/grid-list/testing.mjs +1 -1
- package/fesm2022/grid-list/testing.mjs.map +1 -1
- package/fesm2022/grid-list.mjs +30 -173
- package/fesm2022/grid-list.mjs.map +1 -1
- package/fesm2022/icon/testing.mjs +12 -12
- package/fesm2022/icon/testing.mjs.map +1 -1
- package/fesm2022/icon-button-47f1b5d9.mjs +248 -0
- package/fesm2022/icon-button-47f1b5d9.mjs.map +1 -0
- package/fesm2022/icon-module-3f77a24d.mjs +395 -0
- package/fesm2022/icon-module-3f77a24d.mjs.map +1 -0
- package/fesm2022/icon-registry-13a3b98e.mjs +639 -0
- package/fesm2022/icon-registry-13a3b98e.mjs.map +1 -0
- package/fesm2022/icon.mjs +11 -1016
- package/fesm2022/icon.mjs.map +1 -1
- package/fesm2022/index-1763d3a6.mjs +22 -0
- package/fesm2022/index-1763d3a6.mjs.map +1 -0
- package/fesm2022/index-4bc1d6d3.mjs +20 -0
- package/fesm2022/index-4bc1d6d3.mjs.map +1 -0
- package/fesm2022/input/testing.mjs +5 -113
- package/fesm2022/input/testing.mjs.map +1 -1
- package/fesm2022/input-harness-ed59decc.mjs +115 -0
- package/fesm2022/input-harness-ed59decc.mjs.map +1 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs +12 -0
- package/fesm2022/input-value-accessor-8a79a24e.mjs.map +1 -0
- package/fesm2022/input.mjs +21 -23
- package/fesm2022/input.mjs.map +1 -1
- package/fesm2022/internal-form-field-434c4039.mjs +27 -0
- package/fesm2022/internal-form-field-434c4039.mjs.map +1 -0
- package/fesm2022/line-d6afe347.mjs +59 -0
- package/fesm2022/line-d6afe347.mjs.map +1 -0
- package/fesm2022/list/testing.mjs +2 -2
- package/fesm2022/list/testing.mjs.map +1 -1
- package/fesm2022/list.mjs +59 -56
- package/fesm2022/list.mjs.map +1 -1
- package/fesm2022/menu/testing.mjs.map +1 -1
- package/fesm2022/menu.mjs +37 -25
- package/fesm2022/menu.mjs.map +1 -1
- package/fesm2022/module-3bf2775f.mjs +1293 -0
- package/fesm2022/module-3bf2775f.mjs.map +1 -0
- package/fesm2022/module-47e3be58.mjs +970 -0
- package/fesm2022/module-47e3be58.mjs.map +1 -0
- package/fesm2022/module-a5f9ab72.mjs +875 -0
- package/fesm2022/module-a5f9ab72.mjs.map +1 -0
- package/fesm2022/module-d757bba0.mjs +38 -0
- package/fesm2022/module-d757bba0.mjs.map +1 -0
- package/fesm2022/module-df9f7af3.mjs +152 -0
- package/fesm2022/module-df9f7af3.mjs.map +1 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs +36 -0
- package/fesm2022/optgroup-harness-5e66b138.mjs.map +1 -0
- package/fesm2022/option-07c3c660.mjs +348 -0
- package/fesm2022/option-07c3c660.mjs.map +1 -0
- package/fesm2022/option-harness-3b7c1106.mjs +46 -0
- package/fesm2022/option-harness-3b7c1106.mjs.map +1 -0
- package/fesm2022/paginator/testing.mjs +4 -1
- package/fesm2022/paginator/testing.mjs.map +1 -1
- package/fesm2022/paginator.mjs +51 -21
- package/fesm2022/paginator.mjs.map +1 -1
- package/fesm2022/progress-bar/testing.mjs +0 -4
- package/fesm2022/progress-bar/testing.mjs.map +1 -1
- package/fesm2022/progress-bar.mjs +15 -13
- package/fesm2022/progress-bar.mjs.map +1 -1
- package/fesm2022/progress-spinner/testing.mjs +0 -4
- package/fesm2022/progress-spinner/testing.mjs.map +1 -1
- package/fesm2022/progress-spinner.mjs +15 -13
- package/fesm2022/progress-spinner.mjs.map +1 -1
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs +52 -0
- package/fesm2022/pseudo-checkbox-af5a4ea4.mjs.map +1 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs +20 -0
- package/fesm2022/pseudo-checkbox-module-216fae38.mjs.map +1 -0
- package/fesm2022/public-api-c5ab57f5.mjs +147 -0
- package/fesm2022/public-api-c5ab57f5.mjs.map +1 -0
- package/fesm2022/radio/testing.mjs.map +1 -1
- package/fesm2022/radio.mjs +23 -15
- package/fesm2022/radio.mjs.map +1 -1
- package/fesm2022/ripple-9939d1f5.mjs +639 -0
- package/fesm2022/ripple-9939d1f5.mjs.map +1 -0
- package/fesm2022/ripple-loader-f2078c66.mjs +165 -0
- package/fesm2022/ripple-loader-f2078c66.mjs.map +1 -0
- package/fesm2022/select/testing.mjs +5 -121
- package/fesm2022/select/testing.mjs.map +1 -1
- package/fesm2022/select-harness-8c55824d.mjs +123 -0
- package/fesm2022/select-harness-8c55824d.mjs.map +1 -0
- package/fesm2022/select.mjs +30 -1311
- package/fesm2022/select.mjs.map +1 -1
- package/fesm2022/sidenav/testing.mjs +1 -1
- package/fesm2022/sidenav/testing.mjs.map +1 -1
- package/fesm2022/sidenav.mjs +31 -31
- package/fesm2022/sidenav.mjs.map +1 -1
- package/fesm2022/slide-toggle/testing.mjs.map +1 -1
- package/fesm2022/slide-toggle.mjs +27 -75
- package/fesm2022/slide-toggle.mjs.map +1 -1
- package/fesm2022/slider/testing.mjs.map +1 -1
- package/fesm2022/slider.mjs +22 -21
- package/fesm2022/slider.mjs.map +1 -1
- package/fesm2022/snack-bar/testing.mjs.map +1 -1
- package/fesm2022/snack-bar.mjs +37 -29
- package/fesm2022/snack-bar.mjs.map +1 -1
- package/fesm2022/sort/testing.mjs.map +1 -1
- package/fesm2022/sort.mjs +26 -20
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/stepper/testing.mjs.map +1 -1
- package/fesm2022/stepper.mjs +52 -39
- package/fesm2022/stepper.mjs.map +1 -1
- package/fesm2022/structural-styles-d5ada3b3.mjs +18 -0
- package/fesm2022/structural-styles-d5ada3b3.mjs.map +1 -0
- package/fesm2022/table/testing.mjs.map +1 -1
- package/fesm2022/table.mjs +58 -60
- package/fesm2022/table.mjs.map +1 -1
- package/fesm2022/tabs/testing.mjs.map +1 -1
- package/fesm2022/tabs.mjs +54 -58
- package/fesm2022/tabs.mjs.map +1 -1
- package/fesm2022/timepicker/testing.mjs +1 -1
- package/fesm2022/timepicker/testing.mjs.map +1 -1
- package/fesm2022/timepicker.mjs +31 -24
- package/fesm2022/timepicker.mjs.map +1 -1
- package/fesm2022/toolbar/testing.mjs.map +1 -1
- package/fesm2022/toolbar.mjs +13 -15
- package/fesm2022/toolbar.mjs.map +1 -1
- package/fesm2022/tooltip/testing.mjs.map +1 -1
- package/fesm2022/tooltip.mjs +15 -960
- package/fesm2022/tooltip.mjs.map +1 -1
- package/fesm2022/tree/testing.mjs.map +1 -1
- package/fesm2022/tree.mjs +28 -30
- package/fesm2022/tree.mjs.map +1 -1
- package/form-field/index.d.ts +16 -508
- package/form-field/testing/control/index.d.ts +2 -10
- package/form-field/testing/index.d.ts +19 -24
- package/form-field-control-harness.d-2d91f25a.d.ts +10 -0
- package/form-field-control.d-eb86711c.d.ts +62 -0
- package/form-field.d-2edbc094.d.ts +367 -0
- package/grid-list/index.d.ts +128 -152
- package/grid-list/testing/index.d.ts +39 -44
- package/icon/index.d.ts +9 -470
- package/icon/testing/index.d.ts +41 -44
- package/icon-module.d-aa3bbba0.d.ts +167 -0
- package/icon-registry.d-1dffe9de.d.ts +286 -0
- package/index.d-0536b706.d.ts +11 -0
- package/index.d-37e31cd3.d.ts +13 -0
- package/index.d.ts +2 -3
- package/input/index.d.ts +33 -62
- package/input/testing/index.d.ts +13 -71
- package/input-harness.d-4eecd1d3.d.ts +60 -0
- package/line.d-570a2537.d.ts +25 -0
- package/list/index.d.ts +155 -244
- package/list/testing/index.d.ts +158 -180
- package/list-option-types.d-8739f903.d.ts +15 -0
- package/menu/index.d.ts +183 -231
- package/menu/testing/index.d.ts +17 -23
- package/module.d-18a67f56.d.ts +206 -0
- package/module.d-74a721b9.d.ts +326 -0
- package/module.d-ba05faa6.d.ts +448 -0
- package/module.d-c17c834e.d.ts +18 -0
- package/optgroup-harness.d-7f741f69.d.ts +31 -0
- package/option-harness.d-3d33fc9a.d.ts +34 -0
- package/option-parent.d-559ad5c5.d.ts +19 -0
- package/option.d-6f493d78.d.ts +146 -0
- package/package.json +2 -2
- package/paginator/index.d.ts +31 -216
- package/paginator/testing/index.d.ts +14 -15
- package/paginator.d-40b1766e.d.ts +199 -0
- package/palette.d-ec4a617c.d.ts +4 -0
- package/progress-bar/index.d.ts +40 -59
- package/progress-bar/testing/index.d.ts +7 -10
- package/progress-spinner/index.d.ts +8 -110
- package/progress-spinner/testing/index.d.ts +10 -11
- package/progress-spinner.d-1fc040c5.d.ts +96 -0
- package/pseudo-checkbox-module.d-3abc0461.d.ts +44 -0
- package/radio/index.d.ts +151 -170
- package/radio/testing/index.d.ts +61 -67
- package/ripple-loader.d-8aac2988.d.ts +48 -0
- package/ripple.d-2fb57d04.d.ts +255 -0
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/theme-color/index_bundled.js +2 -2
- package/schematics/ng-generate/theme-color/schema.json +10 -0
- package/schematics/ng-update/index_bundled.js +31 -31
- package/select/index.d.ts +25 -505
- package/select/testing/index.d.ts +5 -67
- package/select-harness.d-7441a7ac.d.ts +63 -0
- package/sidenav/index.d.ts +49 -92
- package/sidenav/testing/index.d.ts +58 -63
- package/slide-toggle/index.d.ts +39 -110
- package/slide-toggle/testing/index.d.ts +17 -21
- package/slider/index.d.ts +281 -328
- package/slider/testing/index.d.ts +42 -47
- package/snack-bar/index.d.ts +152 -185
- package/snack-bar/testing/index.d.ts +7 -9
- package/sort/index.d.ts +61 -169
- package/sort/testing/index.d.ts +22 -25
- package/sort-direction.d-f4ce4649.d.ts +3 -0
- package/sort.d-c2b79a45.d.ts +87 -0
- package/stepper/index.d.ts +115 -167
- package/stepper/testing/index.d.ts +43 -52
- package/table/index.d.ts +97 -156
- package/table/testing/index.d.ts +64 -78
- package/tabs/index.d.ts +309 -383
- package/tabs/testing/index.d.ts +67 -76
- package/timepicker/index.d.ts +127 -160
- package/timepicker/testing/index.d.ts +20 -26
- package/toolbar/index.d.ts +15 -26
- package/toolbar/testing/index.d.ts +13 -16
- package/tooltip/index.d.ts +11 -355
- package/tooltip/testing/index.d.ts +7 -10
- package/tree/index.d.ts +117 -163
- package/tree/testing/index.d.ts +52 -58
package/tabs/testing/index.d.ts
CHANGED
|
@@ -1,37 +1,31 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ComponentHarness } from '@angular/cdk/testing';
|
|
3
|
-
import { ComponentHarnessConstructor } from '@angular/cdk/testing';
|
|
4
|
-
import { ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
5
|
-
import { HarnessLoader } from '@angular/cdk/testing';
|
|
6
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import { BaseHarnessFilters, ContentContainerComponentHarness, ComponentHarnessConstructor, HarnessPredicate, HarnessLoader, ComponentHarness } from '@angular/cdk/testing';
|
|
7
2
|
|
|
8
|
-
/**
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
|
|
12
|
-
/**
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
selectTab(filter?: TabHarnessFilters): Promise<void>;
|
|
3
|
+
/** A set of criteria that can be used to filter a list of `MatTabHarness` instances. */
|
|
4
|
+
interface TabHarnessFilters extends BaseHarnessFilters {
|
|
5
|
+
/** Only find instances whose label matches the given value. */
|
|
6
|
+
label?: string | RegExp;
|
|
7
|
+
/** Only find instances whose selected state matches the given value. */
|
|
8
|
+
selected?: boolean;
|
|
9
|
+
}
|
|
10
|
+
/** A set of criteria that can be used to filter a list of `MatTabGroupHarness` instances. */
|
|
11
|
+
interface TabGroupHarnessFilters extends BaseHarnessFilters {
|
|
12
|
+
/** Only find instances whose selected tab label matches the given value. */
|
|
13
|
+
selectedTabLabel?: string | RegExp;
|
|
14
|
+
}
|
|
15
|
+
/** A set of criteria that can be used to filter a list of `MatTabLinkHarness` instances. */
|
|
16
|
+
interface TabLinkHarnessFilters extends BaseHarnessFilters {
|
|
17
|
+
/** Only find instances whose label matches the given value. */
|
|
18
|
+
label?: string | RegExp;
|
|
19
|
+
}
|
|
20
|
+
/** A set of criteria that can be used to filter a list of `MatTabNavBarHarness` instances. */
|
|
21
|
+
interface TabNavBarHarnessFilters extends BaseHarnessFilters {
|
|
22
|
+
}
|
|
23
|
+
/** A set of criteria that can be used to filter a list of `MatTabNavPanelHarness` instances. */
|
|
24
|
+
interface TabNavPanelHarnessFilters extends BaseHarnessFilters {
|
|
31
25
|
}
|
|
32
26
|
|
|
33
27
|
/** Harness for interacting with an Angular Material tab in tests. */
|
|
34
|
-
|
|
28
|
+
declare class MatTabHarness extends ContentContainerComponentHarness<string> {
|
|
35
29
|
/** The selector for the host element of a `MatTab` instance. */
|
|
36
30
|
static hostSelector: string;
|
|
37
31
|
/**
|
|
@@ -59,8 +53,33 @@ export declare class MatTabHarness extends ContentContainerComponentHarness<stri
|
|
|
59
53
|
private _getContentId;
|
|
60
54
|
}
|
|
61
55
|
|
|
56
|
+
/** Harness for interacting with a mat-tab-group in tests. */
|
|
57
|
+
declare class MatTabGroupHarness extends ComponentHarness {
|
|
58
|
+
/** The selector for the host element of a `MatTabGroup` instance. */
|
|
59
|
+
static hostSelector: string;
|
|
60
|
+
/**
|
|
61
|
+
* Gets a `HarnessPredicate` that can be used to search for a tab group with specific attributes.
|
|
62
|
+
* @param options Options for filtering which tab group instances are considered a match.
|
|
63
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
64
|
+
*/
|
|
65
|
+
static with<T extends MatTabGroupHarness>(this: ComponentHarnessConstructor<T>, options?: TabGroupHarnessFilters): HarnessPredicate<T>;
|
|
66
|
+
/**
|
|
67
|
+
* Gets the list of tabs in the tab group.
|
|
68
|
+
* @param filter Optionally filters which tabs are included.
|
|
69
|
+
*/
|
|
70
|
+
getTabs(filter?: TabHarnessFilters): Promise<MatTabHarness[]>;
|
|
71
|
+
/** Gets the selected tab of the tab group. */
|
|
72
|
+
getSelectedTab(): Promise<MatTabHarness>;
|
|
73
|
+
/**
|
|
74
|
+
* Selects a tab in this tab group.
|
|
75
|
+
* @param filter An optional filter to apply to the child tabs. The first tab matching the filter
|
|
76
|
+
* will be selected.
|
|
77
|
+
*/
|
|
78
|
+
selectTab(filter?: TabHarnessFilters): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
|
|
62
81
|
/** Harness for interacting with a Angular Material tab link in tests. */
|
|
63
|
-
|
|
82
|
+
declare class MatTabLinkHarness extends ComponentHarness {
|
|
64
83
|
/** The selector for the host element of a `MatTabLink` instance. */
|
|
65
84
|
static hostSelector: string;
|
|
66
85
|
/**
|
|
@@ -79,8 +98,23 @@ export declare class MatTabLinkHarness extends ComponentHarness {
|
|
|
79
98
|
click(): Promise<void>;
|
|
80
99
|
}
|
|
81
100
|
|
|
101
|
+
/** Harness for interacting with a standard mat-tab-nav-panel in tests. */
|
|
102
|
+
declare class MatTabNavPanelHarness extends ContentContainerComponentHarness {
|
|
103
|
+
/** The selector for the host element of a `MatTabNavPanel` instance. */
|
|
104
|
+
static hostSelector: string;
|
|
105
|
+
/**
|
|
106
|
+
* Gets a `HarnessPredicate` that can be used to search for a tab nav panel with specific
|
|
107
|
+
* attributes.
|
|
108
|
+
* @param options Options for filtering which tab nav panel instances are considered a match.
|
|
109
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
110
|
+
*/
|
|
111
|
+
static with<T extends MatTabNavPanelHarness>(this: ComponentHarnessConstructor<T>, options?: TabNavPanelHarnessFilters): HarnessPredicate<T>;
|
|
112
|
+
/** Gets the tab panel text content. */
|
|
113
|
+
getTextContent(): Promise<string>;
|
|
114
|
+
}
|
|
115
|
+
|
|
82
116
|
/** Harness for interacting with a mat-tab-nav-bar in tests. */
|
|
83
|
-
|
|
117
|
+
declare class MatTabNavBarHarness extends ComponentHarness {
|
|
84
118
|
/** The selector for the host element of a `MatTabNavBar` instance. */
|
|
85
119
|
static hostSelector: string;
|
|
86
120
|
/**
|
|
@@ -107,47 +141,4 @@ export declare class MatTabNavBarHarness extends ComponentHarness {
|
|
|
107
141
|
getPanel(): Promise<MatTabNavPanelHarness>;
|
|
108
142
|
}
|
|
109
143
|
|
|
110
|
-
|
|
111
|
-
declare class MatTabNavPanelHarness extends ContentContainerComponentHarness {
|
|
112
|
-
/** The selector for the host element of a `MatTabNavPanel` instance. */
|
|
113
|
-
static hostSelector: string;
|
|
114
|
-
/**
|
|
115
|
-
* Gets a `HarnessPredicate` that can be used to search for a tab nav panel with specific
|
|
116
|
-
* attributes.
|
|
117
|
-
* @param options Options for filtering which tab nav panel instances are considered a match.
|
|
118
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
119
|
-
*/
|
|
120
|
-
static with<T extends MatTabNavPanelHarness>(this: ComponentHarnessConstructor<T>, options?: TabNavPanelHarnessFilters): HarnessPredicate<T>;
|
|
121
|
-
/** Gets the tab panel text content. */
|
|
122
|
-
getTextContent(): Promise<string>;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/** A set of criteria that can be used to filter a list of `MatTabGroupHarness` instances. */
|
|
126
|
-
export declare interface TabGroupHarnessFilters extends BaseHarnessFilters {
|
|
127
|
-
/** Only find instances whose selected tab label matches the given value. */
|
|
128
|
-
selectedTabLabel?: string | RegExp;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
/** A set of criteria that can be used to filter a list of `MatTabHarness` instances. */
|
|
132
|
-
export declare interface TabHarnessFilters extends BaseHarnessFilters {
|
|
133
|
-
/** Only find instances whose label matches the given value. */
|
|
134
|
-
label?: string | RegExp;
|
|
135
|
-
/** Only find instances whose selected state matches the given value. */
|
|
136
|
-
selected?: boolean;
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
/** A set of criteria that can be used to filter a list of `MatTabLinkHarness` instances. */
|
|
140
|
-
export declare interface TabLinkHarnessFilters extends BaseHarnessFilters {
|
|
141
|
-
/** Only find instances whose label matches the given value. */
|
|
142
|
-
label?: string | RegExp;
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/** A set of criteria that can be used to filter a list of `MatTabNavBarHarness` instances. */
|
|
146
|
-
export declare interface TabNavBarHarnessFilters extends BaseHarnessFilters {
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/** A set of criteria that can be used to filter a list of `MatTabNavPanelHarness` instances. */
|
|
150
|
-
export declare interface TabNavPanelHarnessFilters extends BaseHarnessFilters {
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export { }
|
|
144
|
+
export { MatTabGroupHarness, MatTabHarness, MatTabLinkHarness, MatTabNavBarHarness, type TabGroupHarnessFilters, type TabHarnessFilters, type TabLinkHarnessFilters, type TabNavBarHarnessFilters, type TabNavPanelHarnessFilters };
|
package/timepicker/index.d.ts
CHANGED
|
@@ -1,158 +1,17 @@
|
|
|
1
|
-
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { ElementRef } from '@angular/core';
|
|
4
1
|
import * as i0 from '@angular/core';
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { InputSignalWithTransform } from '@angular/core';
|
|
9
|
-
import { MatOption } from '@angular/material/core';
|
|
10
|
-
import { MatOptionParentComponent } from '@angular/material/core';
|
|
11
|
-
import { ModelSignal } from '@angular/core';
|
|
12
|
-
import { OnDestroy } from '@angular/core';
|
|
13
|
-
import { OutputEmitterRef } from '@angular/core';
|
|
2
|
+
import { OnDestroy, Signal, ModelSignal, InputSignal, InputSignalWithTransform, ElementRef, InjectionToken, TemplateRef, OutputEmitterRef } from '@angular/core';
|
|
3
|
+
import { M as MatOption } from '../option.d-6f493d78.js';
|
|
4
|
+
import { M as MatOptionParentComponent } from '../option-parent.d-559ad5c5.js';
|
|
14
5
|
import { ScrollStrategy } from '@angular/cdk/overlay';
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
|
|
20
|
-
declare namespace i1 {
|
|
21
|
-
export {
|
|
22
|
-
MatTimepickerSelected,
|
|
23
|
-
MAT_TIMEPICKER_SCROLL_STRATEGY,
|
|
24
|
-
MatTimepicker
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
declare namespace i2 {
|
|
29
|
-
export {
|
|
30
|
-
MatTimepickerInput
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
declare namespace i3 {
|
|
35
|
-
export {
|
|
36
|
-
MatTimepickerToggle
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Injection token that can be used to configure the default options for the timepicker component.
|
|
42
|
-
*/
|
|
43
|
-
export declare const MAT_TIMEPICKER_CONFIG: InjectionToken<MatTimepickerConfig>;
|
|
44
|
-
|
|
45
|
-
/** Injection token used to configure the behavior of the timepicker dropdown while scrolling. */
|
|
46
|
-
export declare const MAT_TIMEPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Renders out a listbox that can be used to select a time of day.
|
|
50
|
-
* Intended to be used together with `MatTimepickerInput`.
|
|
51
|
-
*/
|
|
52
|
-
export declare class MatTimepicker<D> implements OnDestroy, MatOptionParentComponent {
|
|
53
|
-
private _overlay;
|
|
54
|
-
private _dir;
|
|
55
|
-
private _viewContainerRef;
|
|
56
|
-
private _injector;
|
|
57
|
-
private _defaultConfig;
|
|
58
|
-
private _dateAdapter;
|
|
59
|
-
private _dateFormats;
|
|
60
|
-
private _scrollStrategyFactory;
|
|
61
|
-
protected _animationsDisabled: boolean;
|
|
62
|
-
private _isOpen;
|
|
63
|
-
private _activeDescendant;
|
|
64
|
-
private _input;
|
|
65
|
-
private _overlayRef;
|
|
66
|
-
private _portal;
|
|
67
|
-
private _optionsCacheKey;
|
|
68
|
-
private _localeChanges;
|
|
69
|
-
private _onOpenRender;
|
|
70
|
-
protected _panelTemplate: Signal<TemplateRef<unknown>>;
|
|
71
|
-
protected _timeOptions: readonly MatTimepickerOption<D>[];
|
|
72
|
-
protected _options: Signal<readonly MatOption<any>[]>;
|
|
73
|
-
private _keyManager;
|
|
74
|
-
/**
|
|
75
|
-
* Interval between each option in the timepicker. The value can either be an amount of
|
|
76
|
-
* seconds (e.g. 90) or a number with a unit (e.g. 45m). Supported units are `s` for seconds,
|
|
77
|
-
* `m` for minutes or `h` for hours.
|
|
78
|
-
*/
|
|
79
|
-
readonly interval: InputSignalWithTransform<number | null, number | string | null>;
|
|
80
|
-
/**
|
|
81
|
-
* Array of pre-defined options that the user can select from, as an alternative to using the
|
|
82
|
-
* `interval` input. An error will be thrown if both `options` and `interval` are specified.
|
|
83
|
-
*/
|
|
84
|
-
readonly options: InputSignal<readonly MatTimepickerOption<D>[] | null>;
|
|
85
|
-
/** Whether the timepicker is open. */
|
|
86
|
-
readonly isOpen: Signal<boolean>;
|
|
87
|
-
/** Emits when the user selects a time. */
|
|
88
|
-
readonly selected: OutputEmitterRef<MatTimepickerSelected<D>>;
|
|
89
|
-
/** Emits when the timepicker is opened. */
|
|
90
|
-
readonly opened: OutputEmitterRef<void>;
|
|
91
|
-
/** Emits when the timepicker is closed. */
|
|
92
|
-
readonly closed: OutputEmitterRef<void>;
|
|
93
|
-
/** ID of the active descendant option. */
|
|
94
|
-
readonly activeDescendant: Signal<string | null>;
|
|
95
|
-
/** Unique ID of the timepicker's panel */
|
|
96
|
-
readonly panelId: string;
|
|
97
|
-
/** Whether ripples within the timepicker should be disabled. */
|
|
98
|
-
readonly disableRipple: InputSignalWithTransform<boolean, unknown>;
|
|
99
|
-
/** ARIA label for the timepicker panel. */
|
|
100
|
-
readonly ariaLabel: InputSignal<string | null>;
|
|
101
|
-
/** ID of the label element for the timepicker panel. */
|
|
102
|
-
readonly ariaLabelledby: InputSignal<string | null>;
|
|
103
|
-
/** Whether the timepicker is currently disabled. */
|
|
104
|
-
readonly disabled: Signal<boolean>;
|
|
105
|
-
constructor();
|
|
106
|
-
/** Opens the timepicker. */
|
|
107
|
-
open(): void;
|
|
108
|
-
/** Closes the timepicker. */
|
|
109
|
-
close(): void;
|
|
110
|
-
/** Registers an input with the timepicker. */
|
|
111
|
-
registerInput(input: MatTimepickerInput<D>): void;
|
|
112
|
-
ngOnDestroy(): void;
|
|
113
|
-
/** Selects a specific time value. */
|
|
114
|
-
protected _selectValue(option: MatOption<D>): void;
|
|
115
|
-
/** Gets the value of the `aria-labelledby` attribute. */
|
|
116
|
-
protected _getAriaLabelledby(): string | null;
|
|
117
|
-
/** Handles animation events coming from the panel. */
|
|
118
|
-
protected _handleAnimationEnd(event: AnimationEvent): void;
|
|
119
|
-
/** Creates an overlay reference for the timepicker panel. */
|
|
120
|
-
private _getOverlayRef;
|
|
121
|
-
/** Generates the list of options from which the user can select.. */
|
|
122
|
-
private _generateOptions;
|
|
123
|
-
/**
|
|
124
|
-
* Synchronizes the internal state of the component based on a specific selected date.
|
|
125
|
-
* @param value Currently selected date.
|
|
126
|
-
* @param options Options rendered out in the timepicker.
|
|
127
|
-
* @param fallback Option to set as active if no option is selected.
|
|
128
|
-
*/
|
|
129
|
-
private _syncSelectedState;
|
|
130
|
-
/** Handles keyboard events while the overlay is open. */
|
|
131
|
-
private _handleKeydown;
|
|
132
|
-
/** Sets up the logic that updates the timepicker when the locale changes. */
|
|
133
|
-
private _handleLocaleChanges;
|
|
134
|
-
/**
|
|
135
|
-
* Sets up the logic that updates the timepicker when the state of the connected input changes.
|
|
136
|
-
*/
|
|
137
|
-
private _handleInputStateChanges;
|
|
138
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatTimepicker<any>, never>;
|
|
139
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatTimepicker<any>, "mat-timepicker", ["matTimepicker"], { "interval": { "alias": "interval"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, { "selected": "selected"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* Object that can be used to configure the default options for the timepicker component.
|
|
144
|
-
*/
|
|
145
|
-
export declare interface MatTimepickerConfig {
|
|
146
|
-
/** Default interval for all time pickers. */
|
|
147
|
-
interval?: string | number;
|
|
148
|
-
/** Whether ripples inside the timepicker should be disabled by default. */
|
|
149
|
-
disableRipple?: boolean;
|
|
150
|
-
}
|
|
6
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
7
|
+
import * as i5 from '@angular/cdk/scrolling';
|
|
8
|
+
import '@angular/cdk/a11y';
|
|
9
|
+
import 'rxjs';
|
|
151
10
|
|
|
152
11
|
/**
|
|
153
12
|
* Input that can be used to enter time and connect to a `mat-timepicker`.
|
|
154
13
|
*/
|
|
155
|
-
|
|
14
|
+
declare class MatTimepickerInput<D> implements ControlValueAccessor, Validator, OnDestroy {
|
|
156
15
|
private _elementRef;
|
|
157
16
|
private _document;
|
|
158
17
|
private _dateAdapter;
|
|
@@ -236,7 +95,7 @@ export declare class MatTimepickerInput<D> implements ControlValueAccessor, Vali
|
|
|
236
95
|
/** Handles clicks on the input or the containing form field. */
|
|
237
96
|
private _handleClick;
|
|
238
97
|
/** Handles the `input` event. */
|
|
239
|
-
protected _handleInput(
|
|
98
|
+
protected _handleInput(event: Event): void;
|
|
240
99
|
/** Handles the `blur` event. */
|
|
241
100
|
protected _handleBlur(): void;
|
|
242
101
|
/** Handles the `keydown` event. */
|
|
@@ -267,16 +126,23 @@ export declare class MatTimepickerInput<D> implements ControlValueAccessor, Vali
|
|
|
267
126
|
static ɵdir: i0.ɵɵDirectiveDeclaration<MatTimepickerInput<any>, "input[matTimepicker]", ["matTimepickerInput"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "timepicker": { "alias": "matTimepicker"; "required": true; "isSignal": true; }; "min": { "alias": "matTimepickerMin"; "required": false; "isSignal": true; }; "max": { "alias": "matTimepickerMax"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; }, never, never, true, never>;
|
|
268
127
|
}
|
|
269
128
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
129
|
+
/**
|
|
130
|
+
* Object that can be used to configure the default options for the timepicker component.
|
|
131
|
+
*/
|
|
132
|
+
interface MatTimepickerConfig {
|
|
133
|
+
/** Default interval for all time pickers. */
|
|
134
|
+
interval?: string | number;
|
|
135
|
+
/** Whether ripples inside the timepicker should be disabled by default. */
|
|
136
|
+
disableRipple?: boolean;
|
|
274
137
|
}
|
|
275
|
-
|
|
138
|
+
/**
|
|
139
|
+
* Injection token that can be used to configure the default options for the timepicker component.
|
|
140
|
+
*/
|
|
141
|
+
declare const MAT_TIMEPICKER_CONFIG: InjectionToken<MatTimepickerConfig>;
|
|
276
142
|
/**
|
|
277
143
|
* Time selection option that can be displayed within a `mat-timepicker`.
|
|
278
144
|
*/
|
|
279
|
-
|
|
145
|
+
interface MatTimepickerOption<D = unknown> {
|
|
280
146
|
/** Date value of the option. */
|
|
281
147
|
value: D;
|
|
282
148
|
/** Label to show to the user. */
|
|
@@ -284,16 +150,111 @@ export declare interface MatTimepickerOption<D = unknown> {
|
|
|
284
150
|
}
|
|
285
151
|
|
|
286
152
|
/** Event emitted when a value is selected in the timepicker. */
|
|
287
|
-
|
|
153
|
+
interface MatTimepickerSelected<D> {
|
|
288
154
|
value: D;
|
|
289
155
|
source: MatTimepicker<D>;
|
|
290
156
|
}
|
|
157
|
+
/** Injection token used to configure the behavior of the timepicker dropdown while scrolling. */
|
|
158
|
+
declare const MAT_TIMEPICKER_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
|
|
159
|
+
/**
|
|
160
|
+
* Renders out a listbox that can be used to select a time of day.
|
|
161
|
+
* Intended to be used together with `MatTimepickerInput`.
|
|
162
|
+
*/
|
|
163
|
+
declare class MatTimepicker<D> implements OnDestroy, MatOptionParentComponent {
|
|
164
|
+
private _overlay;
|
|
165
|
+
private _dir;
|
|
166
|
+
private _viewContainerRef;
|
|
167
|
+
private _injector;
|
|
168
|
+
private _defaultConfig;
|
|
169
|
+
private _dateAdapter;
|
|
170
|
+
private _dateFormats;
|
|
171
|
+
private _scrollStrategyFactory;
|
|
172
|
+
protected _animationsDisabled: boolean;
|
|
173
|
+
private _isOpen;
|
|
174
|
+
private _activeDescendant;
|
|
175
|
+
private _input;
|
|
176
|
+
private _overlayRef;
|
|
177
|
+
private _portal;
|
|
178
|
+
private _optionsCacheKey;
|
|
179
|
+
private _localeChanges;
|
|
180
|
+
private _onOpenRender;
|
|
181
|
+
protected _panelTemplate: Signal<TemplateRef<unknown>>;
|
|
182
|
+
protected _timeOptions: readonly MatTimepickerOption<D>[];
|
|
183
|
+
protected _options: Signal<readonly MatOption<any>[]>;
|
|
184
|
+
private _keyManager;
|
|
185
|
+
/**
|
|
186
|
+
* Interval between each option in the timepicker. The value can either be an amount of
|
|
187
|
+
* seconds (e.g. 90) or a number with a unit (e.g. 45m). Supported units are `s` for seconds,
|
|
188
|
+
* `m` for minutes or `h` for hours.
|
|
189
|
+
*/
|
|
190
|
+
readonly interval: InputSignalWithTransform<number | null, number | string | null>;
|
|
191
|
+
/**
|
|
192
|
+
* Array of pre-defined options that the user can select from, as an alternative to using the
|
|
193
|
+
* `interval` input. An error will be thrown if both `options` and `interval` are specified.
|
|
194
|
+
*/
|
|
195
|
+
readonly options: InputSignal<readonly MatTimepickerOption<D>[] | null>;
|
|
196
|
+
/** Whether the timepicker is open. */
|
|
197
|
+
readonly isOpen: Signal<boolean>;
|
|
198
|
+
/** Emits when the user selects a time. */
|
|
199
|
+
readonly selected: OutputEmitterRef<MatTimepickerSelected<D>>;
|
|
200
|
+
/** Emits when the timepicker is opened. */
|
|
201
|
+
readonly opened: OutputEmitterRef<void>;
|
|
202
|
+
/** Emits when the timepicker is closed. */
|
|
203
|
+
readonly closed: OutputEmitterRef<void>;
|
|
204
|
+
/** ID of the active descendant option. */
|
|
205
|
+
readonly activeDescendant: Signal<string | null>;
|
|
206
|
+
/** Unique ID of the timepicker's panel */
|
|
207
|
+
readonly panelId: string;
|
|
208
|
+
/** Whether ripples within the timepicker should be disabled. */
|
|
209
|
+
readonly disableRipple: InputSignalWithTransform<boolean, unknown>;
|
|
210
|
+
/** ARIA label for the timepicker panel. */
|
|
211
|
+
readonly ariaLabel: InputSignal<string | null>;
|
|
212
|
+
/** ID of the label element for the timepicker panel. */
|
|
213
|
+
readonly ariaLabelledby: InputSignal<string | null>;
|
|
214
|
+
/** Whether the timepicker is currently disabled. */
|
|
215
|
+
readonly disabled: Signal<boolean>;
|
|
216
|
+
constructor();
|
|
217
|
+
/** Opens the timepicker. */
|
|
218
|
+
open(): void;
|
|
219
|
+
/** Closes the timepicker. */
|
|
220
|
+
close(): void;
|
|
221
|
+
/** Registers an input with the timepicker. */
|
|
222
|
+
registerInput(input: MatTimepickerInput<D>): void;
|
|
223
|
+
ngOnDestroy(): void;
|
|
224
|
+
/** Selects a specific time value. */
|
|
225
|
+
protected _selectValue(option: MatOption<D>): void;
|
|
226
|
+
/** Gets the value of the `aria-labelledby` attribute. */
|
|
227
|
+
protected _getAriaLabelledby(): string | null;
|
|
228
|
+
/** Handles animation events coming from the panel. */
|
|
229
|
+
protected _handleAnimationEnd(event: AnimationEvent): void;
|
|
230
|
+
/** Creates an overlay reference for the timepicker panel. */
|
|
231
|
+
private _getOverlayRef;
|
|
232
|
+
/** Generates the list of options from which the user can select.. */
|
|
233
|
+
private _generateOptions;
|
|
234
|
+
/**
|
|
235
|
+
* Synchronizes the internal state of the component based on a specific selected date.
|
|
236
|
+
* @param value Currently selected date.
|
|
237
|
+
* @param options Options rendered out in the timepicker.
|
|
238
|
+
* @param fallback Option to set as active if no option is selected.
|
|
239
|
+
*/
|
|
240
|
+
private _syncSelectedState;
|
|
241
|
+
/** Handles keyboard events while the overlay is open. */
|
|
242
|
+
private _handleKeydown;
|
|
243
|
+
/** Sets up the logic that updates the timepicker when the locale changes. */
|
|
244
|
+
private _handleLocaleChanges;
|
|
245
|
+
/**
|
|
246
|
+
* Sets up the logic that updates the timepicker when the state of the connected input changes.
|
|
247
|
+
*/
|
|
248
|
+
private _handleInputStateChanges;
|
|
249
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTimepicker<any>, never>;
|
|
250
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatTimepicker<any>, "mat-timepicker", ["matTimepicker"], { "interval": { "alias": "interval"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, { "selected": "selected"; "opened": "opened"; "closed": "closed"; }, never, never, true, never>;
|
|
251
|
+
}
|
|
291
252
|
|
|
292
253
|
/** Button that can be used to open a `mat-timepicker`. */
|
|
293
|
-
|
|
254
|
+
declare class MatTimepickerToggle<D> {
|
|
294
255
|
private _defaultConfig;
|
|
295
256
|
private _defaultTabIndex;
|
|
296
|
-
protected _isDisabled: Signal<boolean>;
|
|
257
|
+
protected _isDisabled: i0.Signal<boolean>;
|
|
297
258
|
/** Timepicker instance that the button will toggle. */
|
|
298
259
|
readonly timepicker: InputSignal<MatTimepicker<D>>;
|
|
299
260
|
/** Screen-reader label for the button. */
|
|
@@ -319,4 +280,10 @@ export declare class MatTimepickerToggle<D> {
|
|
|
319
280
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatTimepickerToggle<any>, "mat-timepicker-toggle", ["matTimepickerToggle"], { "timepicker": { "alias": "for"; "required": true; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "tabIndex": { "alias": "tabIndex"; "required": false; "isSignal": true; }; "disableRipple": { "alias": "disableRipple"; "required": false; "isSignal": true; }; }, {}, never, ["[matTimepickerToggleIcon]"], true, never>;
|
|
320
281
|
}
|
|
321
282
|
|
|
322
|
-
|
|
283
|
+
declare class MatTimepickerModule {
|
|
284
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatTimepickerModule, never>;
|
|
285
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatTimepickerModule, never, [typeof MatTimepicker, typeof MatTimepickerInput, typeof MatTimepickerToggle], [typeof i5.CdkScrollableModule, typeof MatTimepicker, typeof MatTimepickerInput, typeof MatTimepickerToggle]>;
|
|
286
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatTimepickerModule>;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
export { MAT_TIMEPICKER_CONFIG, MAT_TIMEPICKER_SCROLL_STRATEGY, MatTimepicker, type MatTimepickerConfig, MatTimepickerInput, MatTimepickerModule, type MatTimepickerOption, type MatTimepickerSelected, MatTimepickerToggle };
|
|
@@ -1,11 +1,21 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import {
|
|
3
|
-
import { ComponentHarnessConstructor } from '@angular/cdk/testing';
|
|
4
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
5
|
-
import { MatOptionHarness } from '@angular/material/core/testing';
|
|
6
|
-
import { OptionHarnessFilters } from '@angular/material/core/testing';
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { O as OptionHarnessFilters, M as MatOptionHarness } from '../../option-harness.d-3d33fc9a.js';
|
|
7
3
|
|
|
8
|
-
|
|
4
|
+
/** A set of criteria that can be used to filter a list of `MatTimepickerHarness` instances. */
|
|
5
|
+
interface TimepickerHarnessFilters extends BaseHarnessFilters {
|
|
6
|
+
}
|
|
7
|
+
/** A set of criteria that can be used to filter a list of timepicker input instances. */
|
|
8
|
+
interface TimepickerInputHarnessFilters extends BaseHarnessFilters {
|
|
9
|
+
/** Filters based on the value of the input. */
|
|
10
|
+
value?: string | RegExp;
|
|
11
|
+
/** Filters based on the placeholder text of the input. */
|
|
12
|
+
placeholder?: string | RegExp;
|
|
13
|
+
}
|
|
14
|
+
/** A set of criteria that can be used to filter a list of timepicker toggle instances. */
|
|
15
|
+
interface TimepickerToggleHarnessFilters extends BaseHarnessFilters {
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class MatTimepickerHarness extends ComponentHarness {
|
|
9
19
|
private _documentRootLocator;
|
|
10
20
|
static hostSelector: string;
|
|
11
21
|
/**
|
|
@@ -26,7 +36,7 @@ export declare class MatTimepickerHarness extends ComponentHarness {
|
|
|
26
36
|
}
|
|
27
37
|
|
|
28
38
|
/** Harness for interacting with a standard Material timepicker inputs in tests. */
|
|
29
|
-
|
|
39
|
+
declare class MatTimepickerInputHarness extends ComponentHarness {
|
|
30
40
|
private _documentRootLocator;
|
|
31
41
|
static hostSelector: string;
|
|
32
42
|
/**
|
|
@@ -75,7 +85,7 @@ export declare class MatTimepickerInputHarness extends ComponentHarness {
|
|
|
75
85
|
}
|
|
76
86
|
|
|
77
87
|
/** Harness for interacting with a standard Material timepicker toggle in tests. */
|
|
78
|
-
|
|
88
|
+
declare class MatTimepickerToggleHarness extends ComponentHarness {
|
|
79
89
|
static hostSelector: string;
|
|
80
90
|
/** The clickable button inside the toggle. */
|
|
81
91
|
private _button;
|
|
@@ -94,20 +104,4 @@ export declare class MatTimepickerToggleHarness extends ComponentHarness {
|
|
|
94
104
|
isDisabled(): Promise<boolean>;
|
|
95
105
|
}
|
|
96
106
|
|
|
97
|
-
|
|
98
|
-
export declare interface TimepickerHarnessFilters extends BaseHarnessFilters {
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
/** A set of criteria that can be used to filter a list of timepicker input instances. */
|
|
102
|
-
export declare interface TimepickerInputHarnessFilters extends BaseHarnessFilters {
|
|
103
|
-
/** Filters based on the value of the input. */
|
|
104
|
-
value?: string | RegExp;
|
|
105
|
-
/** Filters based on the placeholder text of the input. */
|
|
106
|
-
placeholder?: string | RegExp;
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/** A set of criteria that can be used to filter a list of timepicker toggle instances. */
|
|
110
|
-
export declare interface TimepickerToggleHarnessFilters extends BaseHarnessFilters {
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export { }
|
|
107
|
+
export { MatTimepickerHarness, MatTimepickerInputHarness, MatTimepickerToggleHarness, type TimepickerHarnessFilters, type TimepickerInputHarnessFilters, type TimepickerToggleHarnessFilters };
|
package/toolbar/index.d.ts
CHANGED
|
@@ -1,18 +1,13 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
2
|
+
import { AfterViewInit, ElementRef, QueryList } from '@angular/core';
|
|
3
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
4
|
+
import '@angular/cdk/bidi';
|
|
6
5
|
|
|
7
|
-
declare
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
MatToolbarRow,
|
|
11
|
-
MatToolbar
|
|
12
|
-
}
|
|
6
|
+
declare class MatToolbarRow {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatToolbarRow, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatToolbarRow, "mat-toolbar-row", ["matToolbarRow"], {}, {}, never, never, true, never>;
|
|
13
9
|
}
|
|
14
|
-
|
|
15
|
-
export declare class MatToolbar implements AfterViewInit {
|
|
10
|
+
declare class MatToolbar implements AfterViewInit {
|
|
16
11
|
protected _elementRef: ElementRef<any>;
|
|
17
12
|
private _platform;
|
|
18
13
|
private _document;
|
|
@@ -35,22 +30,16 @@ export declare class MatToolbar implements AfterViewInit {
|
|
|
35
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatToolbar, never>;
|
|
36
31
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatToolbar, "mat-toolbar", ["matToolbar"], { "color": { "alias": "color"; "required": false; }; }, {}, ["_toolbarRows"], ["*", "mat-toolbar-row"], true, never>;
|
|
37
32
|
}
|
|
38
|
-
|
|
39
|
-
export declare class MatToolbarModule {
|
|
40
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatToolbarModule, never>;
|
|
41
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatToolbarModule, never, [typeof i1.MatCommonModule, typeof i2.MatToolbar, typeof i2.MatToolbarRow], [typeof i2.MatToolbar, typeof i2.MatToolbarRow, typeof i1.MatCommonModule]>;
|
|
42
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<MatToolbarModule>;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export declare class MatToolbarRow {
|
|
46
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatToolbarRow, never>;
|
|
47
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatToolbarRow, "mat-toolbar-row", ["matToolbarRow"], {}, {}, never, never, true, never>;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
33
|
/**
|
|
51
34
|
* Throws an exception when attempting to combine the different toolbar row modes.
|
|
52
35
|
* @docs-private
|
|
53
36
|
*/
|
|
54
|
-
|
|
37
|
+
declare function throwToolbarMixedModesError(): void;
|
|
38
|
+
|
|
39
|
+
declare class MatToolbarModule {
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatToolbarModule, never>;
|
|
41
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatToolbarModule, never, [typeof MatCommonModule, typeof MatToolbar, typeof MatToolbarRow], [typeof MatToolbar, typeof MatToolbarRow, typeof MatCommonModule]>;
|
|
42
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<MatToolbarModule>;
|
|
43
|
+
}
|
|
55
44
|
|
|
56
|
-
export { }
|
|
45
|
+
export { MatToolbar, MatToolbarModule, MatToolbarRow, throwToolbarMixedModesError };
|