@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
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { O as OptionHarnessFilters, M as MatOptionHarness } from './option-harness.d-3d33fc9a.js';
|
|
3
|
+
import { O as OptgroupHarnessFilters, M as MatOptgroupHarness } from './optgroup-harness.d-7f741f69.js';
|
|
4
|
+
import { M as MatFormFieldControlHarness } from './form-field-control-harness.d-2d91f25a.js';
|
|
5
|
+
|
|
6
|
+
/** A set of criteria that can be used to filter a list of `MatSelectHarness` instances. */
|
|
7
|
+
interface SelectHarnessFilters extends BaseHarnessFilters {
|
|
8
|
+
/** Only find instances which match the given disabled state. */
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
/** Harness for interacting with a mat-select in tests. */
|
|
13
|
+
declare class MatSelectHarness extends MatFormFieldControlHarness {
|
|
14
|
+
static hostSelector: string;
|
|
15
|
+
private _prefix;
|
|
16
|
+
private _optionClass;
|
|
17
|
+
private _optionGroupClass;
|
|
18
|
+
private _documentRootLocator;
|
|
19
|
+
private _backdrop;
|
|
20
|
+
/**
|
|
21
|
+
* Gets a `HarnessPredicate` that can be used to search for a select with specific attributes.
|
|
22
|
+
* @param options Options for filtering which select instances are considered a match.
|
|
23
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
24
|
+
*/
|
|
25
|
+
static with<T extends MatSelectHarness>(this: ComponentHarnessConstructor<T>, options?: SelectHarnessFilters): HarnessPredicate<T>;
|
|
26
|
+
/** Gets a boolean promise indicating if the select is disabled. */
|
|
27
|
+
isDisabled(): Promise<boolean>;
|
|
28
|
+
/** Gets a boolean promise indicating if the select is valid. */
|
|
29
|
+
isValid(): Promise<boolean>;
|
|
30
|
+
/** Gets a boolean promise indicating if the select is required. */
|
|
31
|
+
isRequired(): Promise<boolean>;
|
|
32
|
+
/** Gets a boolean promise indicating if the select is empty (no value is selected). */
|
|
33
|
+
isEmpty(): Promise<boolean>;
|
|
34
|
+
/** Gets a boolean promise indicating if the select is in multi-selection mode. */
|
|
35
|
+
isMultiple(): Promise<boolean>;
|
|
36
|
+
/** Gets a promise for the select's value text. */
|
|
37
|
+
getValueText(): Promise<string>;
|
|
38
|
+
/** Focuses the select and returns a void promise that indicates when the action is complete. */
|
|
39
|
+
focus(): Promise<void>;
|
|
40
|
+
/** Blurs the select and returns a void promise that indicates when the action is complete. */
|
|
41
|
+
blur(): Promise<void>;
|
|
42
|
+
/** Whether the select is focused. */
|
|
43
|
+
isFocused(): Promise<boolean>;
|
|
44
|
+
/** Gets the options inside the select panel. */
|
|
45
|
+
getOptions(filter?: Omit<OptionHarnessFilters, 'ancestor'>): Promise<MatOptionHarness[]>;
|
|
46
|
+
/** Gets the groups of options inside the panel. */
|
|
47
|
+
getOptionGroups(filter?: Omit<OptgroupHarnessFilters, 'ancestor'>): Promise<MatOptgroupHarness[]>;
|
|
48
|
+
/** Gets whether the select is open. */
|
|
49
|
+
isOpen(): Promise<boolean>;
|
|
50
|
+
/** Opens the select's panel. */
|
|
51
|
+
open(): Promise<void>;
|
|
52
|
+
/**
|
|
53
|
+
* Clicks the options that match the passed-in filter. If the select is in multi-selection
|
|
54
|
+
* mode all options will be clicked, otherwise the harness will pick the first matching option.
|
|
55
|
+
*/
|
|
56
|
+
clickOptions(filter?: OptionHarnessFilters): Promise<void>;
|
|
57
|
+
/** Closes the select's panel. */
|
|
58
|
+
close(): Promise<void>;
|
|
59
|
+
/** Gets the selector that should be used to find this select's panel. */
|
|
60
|
+
private _getPanelSelector;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export { MatSelectHarness as M, type SelectHarnessFilters as S };
|
package/sidenav/index.d.ts
CHANGED
|
@@ -1,63 +1,47 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { AfterViewInit } from '@angular/core';
|
|
3
|
-
import {
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, AfterContentInit, AfterViewInit, OnDestroy, EventEmitter, ElementRef, DoCheck, QueryList } from '@angular/core';
|
|
3
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
4
|
+
import * as i5 from '@angular/cdk/scrolling';
|
|
4
5
|
import { CdkScrollable } from '@angular/cdk/scrolling';
|
|
5
|
-
import { DoCheck } from '@angular/core';
|
|
6
|
-
import { ElementRef } from '@angular/core';
|
|
7
|
-
import { EventEmitter } from '@angular/core';
|
|
8
6
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import { InjectionToken } from '@angular/core';
|
|
13
|
-
import { NumberInput } from '@angular/cdk/coercion';
|
|
14
|
-
import { Observable } from 'rxjs';
|
|
15
|
-
import { OnDestroy } from '@angular/core';
|
|
16
|
-
import { QueryList } from '@angular/core';
|
|
17
|
-
import { Subject } from 'rxjs';
|
|
18
|
-
|
|
19
|
-
/** Options for where to set focus to automatically on dialog open */
|
|
20
|
-
declare type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
21
|
-
|
|
22
|
-
declare namespace i3 {
|
|
23
|
-
export {
|
|
24
|
-
throwMatDuplicatedDrawerError,
|
|
25
|
-
MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY,
|
|
26
|
-
AutoFocusTarget,
|
|
27
|
-
MatDrawerToggleResult,
|
|
28
|
-
MatDrawerMode,
|
|
29
|
-
MAT_DRAWER_DEFAULT_AUTOSIZE,
|
|
30
|
-
MAT_DRAWER_CONTAINER,
|
|
31
|
-
MatDrawerContent,
|
|
32
|
-
MatDrawer,
|
|
33
|
-
MatDrawerContainer
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
declare namespace i4 {
|
|
38
|
-
export {
|
|
39
|
-
MatSidenavContent,
|
|
40
|
-
MatSidenav,
|
|
41
|
-
MatSidenavContainer
|
|
42
|
-
}
|
|
43
|
-
}
|
|
7
|
+
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
8
|
+
import { Subject, Observable } from 'rxjs';
|
|
9
|
+
import '@angular/cdk/bidi';
|
|
44
10
|
|
|
45
11
|
/**
|
|
46
|
-
*
|
|
12
|
+
* Throws an exception when two MatDrawer are matching the same position.
|
|
47
13
|
* @docs-private
|
|
48
14
|
*/
|
|
49
|
-
declare
|
|
50
|
-
|
|
15
|
+
declare function throwMatDuplicatedDrawerError(position: string): void;
|
|
16
|
+
/** Options for where to set focus to automatically on dialog open */
|
|
17
|
+
type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
18
|
+
/** Result of the toggle promise that indicates the state of the drawer. */
|
|
19
|
+
type MatDrawerToggleResult = 'open' | 'close';
|
|
20
|
+
/** Drawer and SideNav display modes. */
|
|
21
|
+
type MatDrawerMode = 'over' | 'push' | 'side';
|
|
51
22
|
/** Configures whether drawers should use auto sizing by default. */
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
23
|
+
declare const MAT_DRAWER_DEFAULT_AUTOSIZE: InjectionToken<boolean>;
|
|
24
|
+
/**
|
|
25
|
+
* @docs-private
|
|
26
|
+
* @deprecated No longer used, will be removed.
|
|
27
|
+
* @breaking-change 21.0.0
|
|
28
|
+
*/
|
|
29
|
+
declare function MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY(): boolean;
|
|
30
|
+
declare class MatDrawerContent extends CdkScrollable implements AfterContentInit {
|
|
31
|
+
private _platform;
|
|
32
|
+
private _changeDetectorRef;
|
|
33
|
+
_container: MatDrawerContainer;
|
|
34
|
+
constructor(...args: unknown[]);
|
|
35
|
+
ngAfterContentInit(): void;
|
|
36
|
+
/** Determines whether the content element should be hidden from the user. */
|
|
37
|
+
protected _shouldBeHidden(): boolean;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawerContent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawerContent, "mat-drawer-content", never, {}, {}, never, ["*"], true, never>;
|
|
40
|
+
}
|
|
57
41
|
/**
|
|
58
42
|
* This component corresponds to a drawer that can be opened on the drawer container.
|
|
59
43
|
*/
|
|
60
|
-
|
|
44
|
+
declare class MatDrawer implements AfterViewInit, OnDestroy {
|
|
61
45
|
private _elementRef;
|
|
62
46
|
private _focusTrapFactory;
|
|
63
47
|
private _focusMonitor;
|
|
@@ -199,24 +183,13 @@ export declare class MatDrawer implements AfterViewInit, OnDestroy {
|
|
|
199
183
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawer, never>;
|
|
200
184
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawer, "mat-drawer", ["matDrawer"], { "position": { "alias": "position"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "disableClose": { "alias": "disableClose"; "required": false; }; "autoFocus": { "alias": "autoFocus"; "required": false; }; "opened": { "alias": "opened"; "required": false; }; }, { "openedChange": "openedChange"; "_openedStream": "opened"; "openedStart": "openedStart"; "_closedStream": "closed"; "closedStart": "closedStart"; "onPositionChanged": "positionChanged"; }, never, ["*"], true, never>;
|
|
201
185
|
}
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* Animations used by the Material drawers.
|
|
205
|
-
* @docs-private
|
|
206
|
-
* @deprecated No longer used, will be removed.
|
|
207
|
-
* @breaking-change 21.0.0
|
|
208
|
-
*/
|
|
209
|
-
export declare const matDrawerAnimations: {
|
|
210
|
-
readonly transformDrawer: any;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
186
|
/**
|
|
214
187
|
* `<mat-drawer-container>` component.
|
|
215
188
|
*
|
|
216
189
|
* This is the parent component to one or two `<mat-drawer>`s that validates the state internally
|
|
217
190
|
* and coordinates the backdrop and content styling.
|
|
218
191
|
*/
|
|
219
|
-
|
|
192
|
+
declare class MatDrawerContainer implements AfterContentInit, DoCheck, OnDestroy {
|
|
220
193
|
private _dir;
|
|
221
194
|
private _element;
|
|
222
195
|
private _ngZone;
|
|
@@ -326,25 +299,11 @@ export declare class MatDrawerContainer implements AfterContentInit, DoCheck, On
|
|
|
326
299
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawerContainer, "mat-drawer-container", ["matDrawerContainer"], { "autosize": { "alias": "autosize"; "required": false; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; }; }, { "backdropClick": "backdropClick"; }, ["_content", "_allDrawers"], ["mat-drawer", "mat-drawer-content", "*"], true, never>;
|
|
327
300
|
}
|
|
328
301
|
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
_container: MatDrawerContainer;
|
|
333
|
-
constructor(...args: unknown[]);
|
|
334
|
-
ngAfterContentInit(): void;
|
|
335
|
-
/** Determines whether the content element should be hidden from the user. */
|
|
336
|
-
protected _shouldBeHidden(): boolean;
|
|
337
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatDrawerContent, never>;
|
|
338
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatDrawerContent, "mat-drawer-content", never, {}, {}, never, ["*"], true, never>;
|
|
302
|
+
declare class MatSidenavContent extends MatDrawerContent {
|
|
303
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavContent, never>;
|
|
304
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenavContent, "mat-sidenav-content", never, {}, {}, never, ["*"], true, never>;
|
|
339
305
|
}
|
|
340
|
-
|
|
341
|
-
/** Drawer and SideNav display modes. */
|
|
342
|
-
export declare type MatDrawerMode = 'over' | 'push' | 'side';
|
|
343
|
-
|
|
344
|
-
/** Result of the toggle promise that indicates the state of the drawer. */
|
|
345
|
-
export declare type MatDrawerToggleResult = 'open' | 'close';
|
|
346
|
-
|
|
347
|
-
export declare class MatSidenav extends MatDrawer {
|
|
306
|
+
declare class MatSidenav extends MatDrawer {
|
|
348
307
|
/** Whether the sidenav is fixed in the viewport. */
|
|
349
308
|
get fixedInViewport(): boolean;
|
|
350
309
|
set fixedInViewport(value: BooleanInput);
|
|
@@ -366,29 +325,27 @@ export declare class MatSidenav extends MatDrawer {
|
|
|
366
325
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenav, never>;
|
|
367
326
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenav, "mat-sidenav", ["matSidenav"], { "fixedInViewport": { "alias": "fixedInViewport"; "required": false; }; "fixedTopGap": { "alias": "fixedTopGap"; "required": false; }; "fixedBottomGap": { "alias": "fixedBottomGap"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
368
327
|
}
|
|
369
|
-
|
|
370
|
-
export declare class MatSidenavContainer extends MatDrawerContainer {
|
|
328
|
+
declare class MatSidenavContainer extends MatDrawerContainer {
|
|
371
329
|
_allDrawers: QueryList<MatSidenav>;
|
|
372
330
|
_content: MatSidenavContent;
|
|
373
331
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavContainer, never>;
|
|
374
332
|
static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenavContainer, "mat-sidenav-container", ["matSidenavContainer"], {}, {}, ["_content", "_allDrawers"], ["mat-sidenav", "mat-sidenav-content", "*"], true, never>;
|
|
375
333
|
}
|
|
376
334
|
|
|
377
|
-
|
|
378
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavContent, never>;
|
|
379
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MatSidenavContent, "mat-sidenav-content", never, {}, {}, never, ["*"], true, never>;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
export declare class MatSidenavModule {
|
|
335
|
+
declare class MatSidenavModule {
|
|
383
336
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSidenavModule, never>;
|
|
384
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSidenavModule, never, [typeof
|
|
337
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSidenavModule, never, [typeof MatCommonModule, typeof i5.CdkScrollableModule, typeof MatDrawer, typeof MatDrawerContainer, typeof MatDrawerContent, typeof MatSidenav, typeof MatSidenavContainer, typeof MatSidenavContent], [typeof i5.CdkScrollableModule, typeof MatCommonModule, typeof MatDrawer, typeof MatDrawerContainer, typeof MatDrawerContent, typeof MatSidenav, typeof MatSidenavContainer, typeof MatSidenavContent]>;
|
|
385
338
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatSidenavModule>;
|
|
386
339
|
}
|
|
387
340
|
|
|
388
341
|
/**
|
|
389
|
-
*
|
|
342
|
+
* Animations used by the Material drawers.
|
|
390
343
|
* @docs-private
|
|
344
|
+
* @deprecated No longer used, will be removed.
|
|
345
|
+
* @breaking-change 21.0.0
|
|
391
346
|
*/
|
|
392
|
-
|
|
347
|
+
declare const matDrawerAnimations: {
|
|
348
|
+
readonly transformDrawer: any;
|
|
349
|
+
};
|
|
393
350
|
|
|
394
|
-
export { }
|
|
351
|
+
export { MAT_DRAWER_DEFAULT_AUTOSIZE, MAT_DRAWER_DEFAULT_AUTOSIZE_FACTORY, MatDrawer, MatDrawerContainer, MatDrawerContent, type MatDrawerMode, type MatDrawerToggleResult, MatSidenav, MatSidenavContainer, MatSidenavContent, MatSidenavModule, matDrawerAnimations, throwMatDuplicatedDrawerError };
|
|
@@ -1,43 +1,44 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import { ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
3
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
1
|
+
import { BaseHarnessFilters, HarnessPredicate, ContentContainerComponentHarness } from '@angular/cdk/testing';
|
|
4
2
|
|
|
3
|
+
/** A set of criteria that can be used to filter a list of `MatDrawerHarness` instances. */
|
|
4
|
+
interface DrawerHarnessFilters extends BaseHarnessFilters {
|
|
5
|
+
/** Only find instances whose side is the given value. */
|
|
6
|
+
position?: 'start' | 'end';
|
|
7
|
+
}
|
|
5
8
|
/** A set of criteria that can be used to filter a list of `MatDrawerContainerHarness` instances. */
|
|
6
|
-
|
|
9
|
+
interface DrawerContainerHarnessFilters extends BaseHarnessFilters {
|
|
7
10
|
}
|
|
8
|
-
|
|
9
11
|
/** A set of criteria that can be used to filter a list of `MatDrawerContentHarness` instances. */
|
|
10
|
-
|
|
12
|
+
interface DrawerContentHarnessFilters extends BaseHarnessFilters {
|
|
11
13
|
}
|
|
12
14
|
|
|
13
|
-
/**
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
/**
|
|
16
|
+
* Base class for the drawer harness functionality.
|
|
17
|
+
* @docs-private
|
|
18
|
+
*/
|
|
19
|
+
declare class MatDrawerHarnessBase extends ContentContainerComponentHarness<string> {
|
|
20
|
+
/** Whether the drawer is open. */
|
|
21
|
+
isOpen(): Promise<boolean>;
|
|
22
|
+
/** Gets the position of the drawer inside its container. */
|
|
23
|
+
getPosition(): Promise<'start' | 'end'>;
|
|
24
|
+
/** Gets the mode that the drawer is in. */
|
|
25
|
+
getMode(): Promise<'over' | 'push' | 'side'>;
|
|
17
26
|
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
/** The selector for the host element of a `MatDrawerContainer` instance. */
|
|
27
|
+
/** Harness for interacting with a standard mat-drawer in tests. */
|
|
28
|
+
declare class MatDrawerHarness extends MatDrawerHarnessBase {
|
|
29
|
+
/** The selector for the host element of a `MatDrawer` instance. */
|
|
22
30
|
static hostSelector: string;
|
|
23
31
|
/**
|
|
24
|
-
* Gets a `HarnessPredicate` that can be used to search for a `
|
|
25
|
-
*
|
|
26
|
-
* @param options Options for filtering which
|
|
32
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatDrawerHarness` that meets
|
|
33
|
+
* certain criteria.
|
|
34
|
+
* @param options Options for filtering which drawer instances are considered a match.
|
|
27
35
|
* @return a `HarnessPredicate` configured with the given options.
|
|
28
36
|
*/
|
|
29
|
-
static with(options?:
|
|
30
|
-
/**
|
|
31
|
-
* Gets drawers that match particular criteria within the container.
|
|
32
|
-
* @param filter Optionally filters which chips are included.
|
|
33
|
-
*/
|
|
34
|
-
getDrawers(filter?: DrawerHarnessFilters): Promise<MatDrawerHarness[]>;
|
|
35
|
-
/** Gets the element that has the container's content. */
|
|
36
|
-
getContent(): Promise<MatDrawerContentHarness>;
|
|
37
|
+
static with(options?: DrawerHarnessFilters): HarnessPredicate<MatDrawerHarness>;
|
|
37
38
|
}
|
|
38
39
|
|
|
39
40
|
/** Harness for interacting with a standard mat-drawer-content in tests. */
|
|
40
|
-
|
|
41
|
+
declare class MatDrawerContentHarness extends ContentContainerComponentHarness<string> {
|
|
41
42
|
/** The selector for the host element of a `MatDrawerContent` instance. */
|
|
42
43
|
static hostSelector: string;
|
|
43
44
|
/**
|
|
@@ -49,54 +50,28 @@ export declare class MatDrawerContentHarness extends ContentContainerComponentHa
|
|
|
49
50
|
static with(options?: DrawerContentHarnessFilters): HarnessPredicate<MatDrawerContentHarness>;
|
|
50
51
|
}
|
|
51
52
|
|
|
52
|
-
/** Harness for interacting with a standard mat-drawer in tests. */
|
|
53
|
-
|
|
54
|
-
/** The selector for the host element of a `
|
|
55
|
-
static hostSelector: string;
|
|
56
|
-
/**
|
|
57
|
-
* Gets a `HarnessPredicate` that can be used to search for a `MatDrawerHarness` that meets
|
|
58
|
-
* certain criteria.
|
|
59
|
-
* @param options Options for filtering which drawer instances are considered a match.
|
|
60
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
61
|
-
*/
|
|
62
|
-
static with(options?: DrawerHarnessFilters): HarnessPredicate<MatDrawerHarness>;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Base class for the drawer harness functionality.
|
|
67
|
-
* @docs-private
|
|
68
|
-
*/
|
|
69
|
-
declare class MatDrawerHarnessBase extends ContentContainerComponentHarness<string> {
|
|
70
|
-
/** Whether the drawer is open. */
|
|
71
|
-
isOpen(): Promise<boolean>;
|
|
72
|
-
/** Gets the position of the drawer inside its container. */
|
|
73
|
-
getPosition(): Promise<'start' | 'end'>;
|
|
74
|
-
/** Gets the mode that the drawer is in. */
|
|
75
|
-
getMode(): Promise<'over' | 'push' | 'side'>;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
/** Harness for interacting with a standard mat-sidenav-container in tests. */
|
|
79
|
-
export declare class MatSidenavContainerHarness extends ContentContainerComponentHarness<string> {
|
|
80
|
-
/** The selector for the host element of a `MatSidenavContainer` instance. */
|
|
53
|
+
/** Harness for interacting with a standard mat-drawer-container in tests. */
|
|
54
|
+
declare class MatDrawerContainerHarness extends ContentContainerComponentHarness<string> {
|
|
55
|
+
/** The selector for the host element of a `MatDrawerContainer` instance. */
|
|
81
56
|
static hostSelector: string;
|
|
82
57
|
/**
|
|
83
|
-
* Gets a `HarnessPredicate` that can be used to search for a `
|
|
58
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatDrawerContainerHarness` that
|
|
84
59
|
* meets certain criteria.
|
|
85
60
|
* @param options Options for filtering which container instances are considered a match.
|
|
86
61
|
* @return a `HarnessPredicate` configured with the given options.
|
|
87
62
|
*/
|
|
88
|
-
static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<
|
|
63
|
+
static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<MatDrawerContainerHarness>;
|
|
89
64
|
/**
|
|
90
|
-
* Gets
|
|
65
|
+
* Gets drawers that match particular criteria within the container.
|
|
91
66
|
* @param filter Optionally filters which chips are included.
|
|
92
67
|
*/
|
|
93
|
-
|
|
68
|
+
getDrawers(filter?: DrawerHarnessFilters): Promise<MatDrawerHarness[]>;
|
|
94
69
|
/** Gets the element that has the container's content. */
|
|
95
|
-
getContent(): Promise<
|
|
70
|
+
getContent(): Promise<MatDrawerContentHarness>;
|
|
96
71
|
}
|
|
97
72
|
|
|
98
73
|
/** Harness for interacting with a standard mat-sidenav-content in tests. */
|
|
99
|
-
|
|
74
|
+
declare class MatSidenavContentHarness extends ContentContainerComponentHarness<string> {
|
|
100
75
|
/** The selector for the host element of a `MatSidenavContent` instance. */
|
|
101
76
|
static hostSelector: string;
|
|
102
77
|
/**
|
|
@@ -109,7 +84,7 @@ export declare class MatSidenavContentHarness extends ContentContainerComponentH
|
|
|
109
84
|
}
|
|
110
85
|
|
|
111
86
|
/** Harness for interacting with a standard mat-sidenav in tests. */
|
|
112
|
-
|
|
87
|
+
declare class MatSidenavHarness extends MatDrawerHarnessBase {
|
|
113
88
|
/** The selector for the host element of a `MatSidenav` instance. */
|
|
114
89
|
static hostSelector: string;
|
|
115
90
|
/**
|
|
@@ -123,4 +98,24 @@ export declare class MatSidenavHarness extends MatDrawerHarnessBase {
|
|
|
123
98
|
isFixedInViewport(): Promise<boolean>;
|
|
124
99
|
}
|
|
125
100
|
|
|
126
|
-
|
|
101
|
+
/** Harness for interacting with a standard mat-sidenav-container in tests. */
|
|
102
|
+
declare class MatSidenavContainerHarness extends ContentContainerComponentHarness<string> {
|
|
103
|
+
/** The selector for the host element of a `MatSidenavContainer` instance. */
|
|
104
|
+
static hostSelector: string;
|
|
105
|
+
/**
|
|
106
|
+
* Gets a `HarnessPredicate` that can be used to search for a `MatSidenavContainerHarness` that
|
|
107
|
+
* meets certain criteria.
|
|
108
|
+
* @param options Options for filtering which container instances are considered a match.
|
|
109
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
110
|
+
*/
|
|
111
|
+
static with(options?: DrawerContainerHarnessFilters): HarnessPredicate<MatSidenavContainerHarness>;
|
|
112
|
+
/**
|
|
113
|
+
* Gets sidenavs that match particular criteria within the container.
|
|
114
|
+
* @param filter Optionally filters which chips are included.
|
|
115
|
+
*/
|
|
116
|
+
getSidenavs(filter?: DrawerHarnessFilters): Promise<MatSidenavHarness[]>;
|
|
117
|
+
/** Gets the element that has the container's content. */
|
|
118
|
+
getContent(): Promise<MatSidenavContentHarness>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export { type DrawerContainerHarnessFilters, type DrawerContentHarnessFilters, type DrawerHarnessFilters, MatDrawerContainerHarness, MatDrawerContentHarness, MatDrawerHarness, MatSidenavContainerHarness, MatSidenavContentHarness, MatSidenavHarness };
|
package/slide-toggle/index.d.ts
CHANGED
|
@@ -1,58 +1,44 @@
|
|
|
1
|
-
import { AbstractControl } from '@angular/forms';
|
|
2
|
-
import { AfterContentInit } from '@angular/core';
|
|
3
|
-
import { ChangeDetectorRef } from '@angular/core';
|
|
4
|
-
import { CheckboxRequiredValidator } from '@angular/forms';
|
|
5
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
6
|
-
import { ElementRef } from '@angular/core';
|
|
7
|
-
import { EventEmitter } from '@angular/core';
|
|
8
|
-
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
9
1
|
import * as i0 from '@angular/core';
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import
|
|
16
|
-
import { ThemePalette } from '@angular/material/core';
|
|
17
|
-
import { Type } from '@angular/core';
|
|
18
|
-
import { ValidationErrors } from '@angular/forms';
|
|
19
|
-
import { Validator } from '@angular/forms';
|
|
20
|
-
|
|
21
|
-
declare namespace i1 {
|
|
22
|
-
export {
|
|
23
|
-
MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR,
|
|
24
|
-
MatSlideToggleRequiredValidator
|
|
25
|
-
}
|
|
26
|
-
}
|
|
2
|
+
import { InjectionToken, OnDestroy, AfterContentInit, OnChanges, ChangeDetectorRef, ElementRef, EventEmitter, SimpleChanges } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor, Validator, AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
5
|
+
import { T as ThemePalette } from '../palette.d-ec4a617c.js';
|
|
6
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
7
|
+
import '@angular/cdk/bidi';
|
|
27
8
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
9
|
+
/** Default `mat-slide-toggle` options that can be overridden. */
|
|
10
|
+
interface MatSlideToggleDefaultOptions {
|
|
11
|
+
/** Whether toggle action triggers value changes in slide toggle. */
|
|
12
|
+
disableToggleValue?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Default theme color of the slide toggle. This API is supported in M2 themes only,
|
|
15
|
+
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slide-toggle/styling.
|
|
16
|
+
*
|
|
17
|
+
* For information on applying color variants in M3, see
|
|
18
|
+
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
19
|
+
*/
|
|
20
|
+
color?: ThemePalette;
|
|
21
|
+
/** Whether to hide the icon inside the slide toggle. */
|
|
22
|
+
hideIcon?: boolean;
|
|
23
|
+
/** Whether disabled slide toggles should remain interactive. */
|
|
24
|
+
disabledInteractive?: boolean;
|
|
34
25
|
}
|
|
35
|
-
|
|
36
26
|
/** Injection token to be used to override the default options for `mat-slide-toggle`. */
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated No longer used, `MatCheckbox` implements required validation directly.
|
|
41
|
-
* @breaking-change 19.0.0
|
|
42
|
-
*/
|
|
43
|
-
export declare const MAT_SLIDE_TOGGLE_REQUIRED_VALIDATOR: Provider;
|
|
27
|
+
declare const MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS: InjectionToken<MatSlideToggleDefaultOptions>;
|
|
44
28
|
|
|
45
|
-
/**
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
29
|
+
/** Change event object emitted by a slide toggle. */
|
|
30
|
+
declare class MatSlideToggleChange {
|
|
31
|
+
/** The source slide toggle of the event. */
|
|
32
|
+
source: MatSlideToggle;
|
|
33
|
+
/** The new `checked` value of the slide toggle. */
|
|
34
|
+
checked: boolean;
|
|
35
|
+
constructor(
|
|
36
|
+
/** The source slide toggle of the event. */
|
|
37
|
+
source: MatSlideToggle,
|
|
38
|
+
/** The new `checked` value of the slide toggle. */
|
|
39
|
+
checked: boolean);
|
|
40
|
+
}
|
|
41
|
+
declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnChanges, ControlValueAccessor, Validator {
|
|
56
42
|
private _elementRef;
|
|
57
43
|
protected _focusMonitor: FocusMonitor;
|
|
58
44
|
protected _changeDetectorRef: ChangeDetectorRef;
|
|
@@ -156,67 +142,10 @@ export declare class MatSlideToggle implements OnDestroy, AfterContentInit, OnCh
|
|
|
156
142
|
static ngAcceptInputType_disabledInteractive: unknown;
|
|
157
143
|
}
|
|
158
144
|
|
|
159
|
-
|
|
160
|
-
export declare class MatSlideToggleChange {
|
|
161
|
-
/** The source slide toggle of the event. */
|
|
162
|
-
source: MatSlideToggle;
|
|
163
|
-
/** The new `checked` value of the slide toggle. */
|
|
164
|
-
checked: boolean;
|
|
165
|
-
constructor(
|
|
166
|
-
/** The source slide toggle of the event. */
|
|
167
|
-
source: MatSlideToggle,
|
|
168
|
-
/** The new `checked` value of the slide toggle. */
|
|
169
|
-
checked: boolean);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/** Default `mat-slide-toggle` options that can be overridden. */
|
|
173
|
-
export declare interface MatSlideToggleDefaultOptions {
|
|
174
|
-
/** Whether toggle action triggers value changes in slide toggle. */
|
|
175
|
-
disableToggleValue?: boolean;
|
|
176
|
-
/**
|
|
177
|
-
* Default theme color of the slide toggle. This API is supported in M2 themes only,
|
|
178
|
-
* it has no effect in M3 themes. For color customization in M3, see https://material.angular.io/components/slide-toggle/styling.
|
|
179
|
-
*
|
|
180
|
-
* For information on applying color variants in M3, see
|
|
181
|
-
* https://material.angular.io/guide/material-2-theming#optional-add-backwards-compatibility-styles-for-color-variants
|
|
182
|
-
*/
|
|
183
|
-
color?: ThemePalette;
|
|
184
|
-
/** Whether to hide the icon inside the slide toggle. */
|
|
185
|
-
hideIcon?: boolean;
|
|
186
|
-
/** Whether disabled slide toggles should remain interactive. */
|
|
187
|
-
disabledInteractive?: boolean;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
export declare class MatSlideToggleModule {
|
|
145
|
+
declare class MatSlideToggleModule {
|
|
191
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleModule, never>;
|
|
192
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSlideToggleModule, never, [typeof
|
|
147
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSlideToggleModule, never, [typeof MatSlideToggle, typeof MatCommonModule], [typeof MatSlideToggle, typeof MatCommonModule]>;
|
|
193
148
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatSlideToggleModule>;
|
|
194
149
|
}
|
|
195
150
|
|
|
196
|
-
|
|
197
|
-
* Validator for Material slide-toggle components with the required attribute in a
|
|
198
|
-
* template-driven form. The default validator for required form controls asserts
|
|
199
|
-
* that the control value is not undefined but that is not appropriate for a slide-toggle
|
|
200
|
-
* where the value is always defined.
|
|
201
|
-
*
|
|
202
|
-
* Required slide-toggle form controls are valid when checked.
|
|
203
|
-
*
|
|
204
|
-
* @deprecated No longer used, `MatCheckbox` implements required validation directly.
|
|
205
|
-
* @breaking-change 19.0.0
|
|
206
|
-
*/
|
|
207
|
-
export declare class MatSlideToggleRequiredValidator extends CheckboxRequiredValidator {
|
|
208
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleRequiredValidator, never>;
|
|
209
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSlideToggleRequiredValidator, "mat-slide-toggle[required][formControlName], mat-slide-toggle[required][formControl], mat-slide-toggle[required][ngModel]", never, {}, {}, never, never, true, never>;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* @deprecated No longer used, `MatSlideToggle` implements required validation directly.
|
|
214
|
-
* @breaking-change 19.0.0
|
|
215
|
-
*/
|
|
216
|
-
export declare class _MatSlideToggleRequiredValidatorModule {
|
|
217
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<_MatSlideToggleRequiredValidatorModule, never>;
|
|
218
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<_MatSlideToggleRequiredValidatorModule, never, [typeof i1.MatSlideToggleRequiredValidator], [typeof i1.MatSlideToggleRequiredValidator]>;
|
|
219
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<_MatSlideToggleRequiredValidatorModule>;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
export { }
|
|
151
|
+
export { MAT_SLIDE_TOGGLE_DEFAULT_OPTIONS, MatSlideToggle, MatSlideToggleChange, type MatSlideToggleDefaultOptions, MatSlideToggleModule };
|
|
@@ -1,14 +1,22 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
|
+
import { BaseHarnessFilters, ComponentHarness, ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
+
|
|
4
|
+
/** A set of criteria that can be used to filter a list of `MatSlideToggleHarness` instances. */
|
|
5
|
+
interface SlideToggleHarnessFilters extends BaseHarnessFilters {
|
|
6
|
+
/** Only find instances whose label matches the given value. */
|
|
7
|
+
label?: string | RegExp;
|
|
8
|
+
/** Only find instances whose name is the given value. */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** Only find instances with the given checked value. */
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
/** Only find instances where the disabled state matches the given value. */
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
}
|
|
7
15
|
|
|
8
16
|
/** Harness for interacting with a mat-slide-toggle in tests. */
|
|
9
|
-
|
|
17
|
+
declare class MatSlideToggleHarness extends ComponentHarness {
|
|
10
18
|
private _label;
|
|
11
|
-
_nativeElement: AsyncFactoryFn<TestElement>;
|
|
19
|
+
_nativeElement: _angular_cdk_testing.AsyncFactoryFn<_angular_cdk_testing.TestElement>;
|
|
12
20
|
static hostSelector: string;
|
|
13
21
|
/**
|
|
14
22
|
* Gets a `HarnessPredicate` that can be used to search for a slide-toggle w/ specific attributes.
|
|
@@ -54,16 +62,4 @@ export declare class MatSlideToggleHarness extends ComponentHarness {
|
|
|
54
62
|
uncheck(): Promise<void>;
|
|
55
63
|
}
|
|
56
64
|
|
|
57
|
-
|
|
58
|
-
export declare interface SlideToggleHarnessFilters extends BaseHarnessFilters {
|
|
59
|
-
/** Only find instances whose label matches the given value. */
|
|
60
|
-
label?: string | RegExp;
|
|
61
|
-
/** Only find instances whose name is the given value. */
|
|
62
|
-
name?: string;
|
|
63
|
-
/** Only find instances with the given checked value. */
|
|
64
|
-
checked?: boolean;
|
|
65
|
-
/** Only find instances where the disabled state matches the given value. */
|
|
66
|
-
disabled?: boolean;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export { }
|
|
65
|
+
export { MatSlideToggleHarness, type SlideToggleHarnessFilters };
|