@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/sort/index.d.ts
CHANGED
|
@@ -1,15 +1,42 @@
|
|
|
1
|
-
import { AfterViewInit } from '@angular/core';
|
|
2
|
-
import { EventEmitter } from '@angular/core';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
import { Optional } from '@angular/core';
|
|
2
|
+
import { Optional, OnDestroy, OnInit, AfterViewInit } from '@angular/core';
|
|
3
|
+
import { M as MatCommonModule } from '../common-module.d-0e6515ae.js';
|
|
4
|
+
import { M as MatSortable, a as MatSort, S as SortHeaderArrowPosition } from '../sort.d-c2b79a45.js';
|
|
5
|
+
export { d as MAT_SORT_DEFAULT_OPTIONS, a as MatSort, c as MatSortDefaultOptions, M as MatSortable, b as Sort, S as SortHeaderArrowPosition } from '../sort.d-c2b79a45.js';
|
|
6
|
+
import { S as SortDirection } from '../sort-direction.d-f4ce4649.js';
|
|
7
|
+
export { S as SortDirection } from '../sort-direction.d-f4ce4649.js';
|
|
11
8
|
import { Subject } from 'rxjs';
|
|
12
|
-
import
|
|
9
|
+
import '@angular/cdk/bidi';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and
|
|
13
|
+
* include it in a custom provider.
|
|
14
|
+
*/
|
|
15
|
+
declare class MatSortHeaderIntl {
|
|
16
|
+
/**
|
|
17
|
+
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
18
|
+
* components if the labels have changed after initialization.
|
|
19
|
+
*/
|
|
20
|
+
readonly changes: Subject<void>;
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSortHeaderIntl, never>;
|
|
22
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MatSortHeaderIntl>;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @docs-private
|
|
26
|
+
* @deprecated No longer used, will be removed.
|
|
27
|
+
* @breaking-change 21.0.0
|
|
28
|
+
*/
|
|
29
|
+
declare function MAT_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl: MatSortHeaderIntl): MatSortHeaderIntl;
|
|
30
|
+
/**
|
|
31
|
+
* @docs-private
|
|
32
|
+
* @deprecated No longer used, will be removed.
|
|
33
|
+
* @breaking-change 21.0.0
|
|
34
|
+
*/
|
|
35
|
+
declare const MAT_SORT_HEADER_INTL_PROVIDER: {
|
|
36
|
+
provide: typeof MatSortHeaderIntl;
|
|
37
|
+
deps: Optional[][];
|
|
38
|
+
useFactory: typeof MAT_SORT_HEADER_INTL_PROVIDER_FACTORY;
|
|
39
|
+
};
|
|
13
40
|
|
|
14
41
|
/**
|
|
15
42
|
* Valid positions for the arrow to be in for its opacity and translation. If the state is a
|
|
@@ -21,8 +48,7 @@ import { WritableSignal } from '@angular/core';
|
|
|
21
48
|
* @deprecated No longer being used, to be removed.
|
|
22
49
|
* @breaking-change 21.0.0
|
|
23
50
|
*/
|
|
24
|
-
|
|
25
|
-
|
|
51
|
+
type ArrowViewState = SortDirection | 'hint' | 'active';
|
|
26
52
|
/**
|
|
27
53
|
* States describing the arrow's animated position (animating fromState to toState).
|
|
28
54
|
* If the fromState is not defined, there will be no animated transition to the toState.
|
|
@@ -30,130 +56,14 @@ export declare type ArrowViewState = SortDirection | 'hint' | 'active';
|
|
|
30
56
|
* @deprecated No longer being used, to be removed.
|
|
31
57
|
* @breaking-change 21.0.0
|
|
32
58
|
*/
|
|
33
|
-
|
|
59
|
+
interface ArrowViewStateTransition {
|
|
34
60
|
fromState?: ArrowViewState;
|
|
35
61
|
toState?: ArrowViewState;
|
|
36
62
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
SortHeaderArrowPosition,
|
|
41
|
-
MatSortable,
|
|
42
|
-
Sort,
|
|
43
|
-
MatSortDefaultOptions,
|
|
44
|
-
MAT_SORT_DEFAULT_OPTIONS,
|
|
45
|
-
MatSort
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
declare namespace i3 {
|
|
50
|
-
export {
|
|
51
|
-
ArrowViewState,
|
|
52
|
-
ArrowViewStateTransition,
|
|
53
|
-
MatSortHeader
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
/** Injection token to be used to override the default options for `mat-sort`. */
|
|
58
|
-
export declare const MAT_SORT_DEFAULT_OPTIONS: InjectionToken<MatSortDefaultOptions>;
|
|
59
|
-
|
|
60
|
-
/** @docs-private */
|
|
61
|
-
export declare const MAT_SORT_HEADER_INTL_PROVIDER: {
|
|
62
|
-
provide: typeof MatSortHeaderIntl;
|
|
63
|
-
deps: Optional[][];
|
|
64
|
-
useFactory: typeof MAT_SORT_HEADER_INTL_PROVIDER_FACTORY;
|
|
65
|
-
};
|
|
66
|
-
|
|
67
|
-
/** @docs-private */
|
|
68
|
-
export declare function MAT_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl: MatSortHeaderIntl): MatSortHeaderIntl;
|
|
69
|
-
|
|
70
|
-
/** Container for MatSortables to manage the sort state and provide default sort parameters. */
|
|
71
|
-
export declare class MatSort implements OnChanges, OnDestroy, OnInit {
|
|
72
|
-
private _defaultOptions?;
|
|
73
|
-
private _initializedStream;
|
|
74
|
-
/** Collection of all registered sortables that this directive manages. */
|
|
75
|
-
sortables: Map<string, MatSortable>;
|
|
76
|
-
/** Used to notify any child components listening to state changes. */
|
|
77
|
-
readonly _stateChanges: Subject<void>;
|
|
78
|
-
/** The id of the most recently sorted MatSortable. */
|
|
79
|
-
active: string;
|
|
80
|
-
/**
|
|
81
|
-
* The direction to set when an MatSortable is initially sorted.
|
|
82
|
-
* May be overridden by the MatSortable's sort start.
|
|
83
|
-
*/
|
|
84
|
-
start: SortDirection;
|
|
85
|
-
/** The sort direction of the currently active MatSortable. */
|
|
86
|
-
get direction(): SortDirection;
|
|
87
|
-
set direction(direction: SortDirection);
|
|
88
|
-
private _direction;
|
|
89
|
-
/**
|
|
90
|
-
* Whether to disable the user from clearing the sort by finishing the sort direction cycle.
|
|
91
|
-
* May be overridden by the MatSortable's disable clear input.
|
|
92
|
-
*/
|
|
93
|
-
disableClear: boolean;
|
|
94
|
-
/** Whether the sortable is disabled. */
|
|
95
|
-
disabled: boolean;
|
|
96
|
-
/** Event emitted when the user changes either the active sort or sort direction. */
|
|
97
|
-
readonly sortChange: EventEmitter<Sort>;
|
|
98
|
-
/** Emits when the paginator is initialized. */
|
|
99
|
-
initialized: Observable<void>;
|
|
100
|
-
constructor(_defaultOptions?: MatSortDefaultOptions | undefined);
|
|
101
|
-
/**
|
|
102
|
-
* Register function to be used by the contained MatSortables. Adds the MatSortable to the
|
|
103
|
-
* collection of MatSortables.
|
|
104
|
-
*/
|
|
105
|
-
register(sortable: MatSortable): void;
|
|
106
|
-
/**
|
|
107
|
-
* Unregister function to be used by the contained MatSortables. Removes the MatSortable from the
|
|
108
|
-
* collection of contained MatSortables.
|
|
109
|
-
*/
|
|
110
|
-
deregister(sortable: MatSortable): void;
|
|
111
|
-
/** Sets the active sort id and determines the new sort direction. */
|
|
112
|
-
sort(sortable: MatSortable): void;
|
|
113
|
-
/** Returns the next sort direction of the active sortable, checking for potential overrides. */
|
|
114
|
-
getNextSortDirection(sortable: MatSortable): SortDirection;
|
|
115
|
-
ngOnInit(): void;
|
|
116
|
-
ngOnChanges(): void;
|
|
117
|
-
ngOnDestroy(): void;
|
|
118
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSort, [{ optional: true; }]>;
|
|
119
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSort, "[matSort]", ["matSort"], { "active": { "alias": "matSortActive"; "required": false; }; "start": { "alias": "matSortStart"; "required": false; }; "direction": { "alias": "matSortDirection"; "required": false; }; "disableClear": { "alias": "matSortDisableClear"; "required": false; }; "disabled": { "alias": "matSortDisabled"; "required": false; }; }, { "sortChange": "matSortChange"; }, never, never, true, never>;
|
|
120
|
-
static ngAcceptInputType_disableClear: unknown;
|
|
121
|
-
static ngAcceptInputType_disabled: unknown;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
/** Interface for a directive that holds sorting state consumed by `MatSortHeader`. */
|
|
125
|
-
export declare interface MatSortable {
|
|
126
|
-
/** The id of the column being sorted. */
|
|
127
|
-
id: string;
|
|
128
|
-
/** Starting sort direction. */
|
|
129
|
-
start: SortDirection;
|
|
130
|
-
/** Whether to disable clearing the sorting state. */
|
|
131
|
-
disableClear: boolean;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
/**
|
|
135
|
-
* Animations used by MatSort.
|
|
136
|
-
* @docs-private
|
|
137
|
-
* @deprecated No longer being used, to be removed.
|
|
138
|
-
* @breaking-change 21.0.0
|
|
139
|
-
*/
|
|
140
|
-
export declare const matSortAnimations: {
|
|
141
|
-
readonly indicator: any;
|
|
142
|
-
readonly leftPointer: any;
|
|
143
|
-
readonly rightPointer: any;
|
|
144
|
-
readonly arrowOpacity: any;
|
|
145
|
-
readonly arrowPosition: any;
|
|
146
|
-
readonly allowChildren: any;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
/** Default options for `mat-sort`. */
|
|
150
|
-
export declare interface MatSortDefaultOptions {
|
|
151
|
-
/** Whether to disable clearing the sorting state. */
|
|
152
|
-
disableClear?: boolean;
|
|
153
|
-
/** Position of the arrow that displays when sorted. */
|
|
154
|
-
arrowPosition?: SortHeaderArrowPosition;
|
|
63
|
+
/** Column definition associated with a `MatSortHeader`. */
|
|
64
|
+
interface MatSortHeaderColumnDef {
|
|
65
|
+
name: string;
|
|
155
66
|
}
|
|
156
|
-
|
|
157
67
|
/**
|
|
158
68
|
* Applies sorting behavior (click to change sort) and styles to an element, including an
|
|
159
69
|
* arrow to display the current sort direction.
|
|
@@ -163,7 +73,7 @@ export declare interface MatSortDefaultOptions {
|
|
|
163
73
|
* If used on header cells in a CdkTable, it will automatically default its id from its containing
|
|
164
74
|
* column definition.
|
|
165
75
|
*/
|
|
166
|
-
|
|
76
|
+
declare class MatSortHeader implements MatSortable, OnDestroy, OnInit, AfterViewInit {
|
|
167
77
|
_intl: MatSortHeaderIntl;
|
|
168
78
|
_sort: MatSort;
|
|
169
79
|
_columnDef: MatSortHeaderColumnDef | null;
|
|
@@ -177,7 +87,7 @@ export declare class MatSortHeader implements MatSortable, OnDestroy, OnInit, Af
|
|
|
177
87
|
* Indicates which state was just cleared from the sort header.
|
|
178
88
|
* Will be reset on the next interaction. Used for coordinating animations.
|
|
179
89
|
*/
|
|
180
|
-
protected _recentlyCleared: WritableSignal<SortDirection | null>;
|
|
90
|
+
protected _recentlyCleared: i0.WritableSignal<SortDirection | null>;
|
|
181
91
|
/**
|
|
182
92
|
* The element with role="button" inside this component's view. We need this
|
|
183
93
|
* in order to apply a description with AriaDescriber.
|
|
@@ -229,43 +139,25 @@ export declare class MatSortHeader implements MatSortable, OnDestroy, OnInit, Af
|
|
|
229
139
|
static ngAcceptInputType_disableClear: unknown;
|
|
230
140
|
}
|
|
231
141
|
|
|
232
|
-
|
|
233
|
-
declare interface MatSortHeaderColumnDef {
|
|
234
|
-
name: string;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
/**
|
|
238
|
-
* To modify the labels and text displayed, create a new instance of MatSortHeaderIntl and
|
|
239
|
-
* include it in a custom provider.
|
|
240
|
-
*/
|
|
241
|
-
export declare class MatSortHeaderIntl {
|
|
242
|
-
/**
|
|
243
|
-
* Stream that emits whenever the labels here are changed. Use this to notify
|
|
244
|
-
* components if the labels have changed after initialization.
|
|
245
|
-
*/
|
|
246
|
-
readonly changes: Subject<void>;
|
|
247
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MatSortHeaderIntl, never>;
|
|
248
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MatSortHeaderIntl>;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
export declare class MatSortModule {
|
|
142
|
+
declare class MatSortModule {
|
|
252
143
|
static ɵfac: i0.ɵɵFactoryDeclaration<MatSortModule, never>;
|
|
253
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSortModule, never, [typeof
|
|
144
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<MatSortModule, never, [typeof MatCommonModule, typeof MatSort, typeof MatSortHeader], [typeof MatSort, typeof MatSortHeader]>;
|
|
254
145
|
static ɵinj: i0.ɵɵInjectorDeclaration<MatSortModule>;
|
|
255
146
|
}
|
|
256
147
|
|
|
257
|
-
/**
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
148
|
+
/**
|
|
149
|
+
* Animations used by MatSort.
|
|
150
|
+
* @docs-private
|
|
151
|
+
* @deprecated No longer being used, to be removed.
|
|
152
|
+
* @breaking-change 21.0.0
|
|
153
|
+
*/
|
|
154
|
+
declare const matSortAnimations: {
|
|
155
|
+
readonly indicator: any;
|
|
156
|
+
readonly leftPointer: any;
|
|
157
|
+
readonly rightPointer: any;
|
|
158
|
+
readonly arrowOpacity: any;
|
|
159
|
+
readonly arrowPosition: any;
|
|
160
|
+
readonly allowChildren: any;
|
|
161
|
+
};
|
|
270
162
|
|
|
271
|
-
export { }
|
|
163
|
+
export { type ArrowViewState, type ArrowViewStateTransition, MAT_SORT_HEADER_INTL_PROVIDER, MAT_SORT_HEADER_INTL_PROVIDER_FACTORY, MatSortHeader, MatSortHeaderIntl, MatSortModule, matSortAnimations };
|
package/sort/testing/index.d.ts
CHANGED
|
@@ -1,25 +1,15 @@
|
|
|
1
|
-
import { BaseHarnessFilters } from '@angular/cdk/testing';
|
|
2
|
-
import {
|
|
3
|
-
import { HarnessPredicate } from '@angular/cdk/testing';
|
|
4
|
-
import { SortDirection } from '@angular/material/sort';
|
|
1
|
+
import { BaseHarnessFilters, ComponentHarness, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
+
import { S as SortDirection } from '../../sort-direction.d-f4ce4649.js';
|
|
5
3
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
* @param options Options for narrowing the search.
|
|
12
|
-
* @return a `HarnessPredicate` configured with the given options.
|
|
13
|
-
*/
|
|
14
|
-
static with(options?: SortHarnessFilters): HarnessPredicate<MatSortHarness>;
|
|
15
|
-
/** Gets all of the sort headers in the `mat-sort`. */
|
|
16
|
-
getSortHeaders(filter?: SortHeaderHarnessFilters): Promise<MatSortHeaderHarness[]>;
|
|
17
|
-
/** Gets the selected header in the `mat-sort`. */
|
|
18
|
-
getActiveHeader(): Promise<MatSortHeaderHarness | null>;
|
|
4
|
+
interface SortHarnessFilters extends BaseHarnessFilters {
|
|
5
|
+
}
|
|
6
|
+
interface SortHeaderHarnessFilters extends BaseHarnessFilters {
|
|
7
|
+
label?: string | RegExp;
|
|
8
|
+
sortDirection?: SortDirection;
|
|
19
9
|
}
|
|
20
10
|
|
|
21
11
|
/** Harness for interacting with a standard Angular Material sort header in tests. */
|
|
22
|
-
|
|
12
|
+
declare class MatSortHeaderHarness extends ComponentHarness {
|
|
23
13
|
static hostSelector: string;
|
|
24
14
|
private _container;
|
|
25
15
|
/**
|
|
@@ -39,12 +29,19 @@ export declare class MatSortHeaderHarness extends ComponentHarness {
|
|
|
39
29
|
click(): Promise<void>;
|
|
40
30
|
}
|
|
41
31
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
32
|
+
/** Harness for interacting with a standard `mat-sort` in tests. */
|
|
33
|
+
declare class MatSortHarness extends ComponentHarness {
|
|
34
|
+
static hostSelector: string;
|
|
35
|
+
/**
|
|
36
|
+
* Gets a `HarnessPredicate` that can be used to search for a `mat-sort` with specific attributes.
|
|
37
|
+
* @param options Options for narrowing the search.
|
|
38
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
39
|
+
*/
|
|
40
|
+
static with(options?: SortHarnessFilters): HarnessPredicate<MatSortHarness>;
|
|
41
|
+
/** Gets all of the sort headers in the `mat-sort`. */
|
|
42
|
+
getSortHeaders(filter?: SortHeaderHarnessFilters): Promise<MatSortHeaderHarness[]>;
|
|
43
|
+
/** Gets the selected header in the `mat-sort`. */
|
|
44
|
+
getActiveHeader(): Promise<MatSortHeaderHarness | null>;
|
|
48
45
|
}
|
|
49
46
|
|
|
50
|
-
export { }
|
|
47
|
+
export { MatSortHarness, MatSortHeaderHarness, type SortHarnessFilters, type SortHeaderHarnessFilters };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, OnChanges, OnDestroy, OnInit, EventEmitter } from '@angular/core';
|
|
3
|
+
import { Subject, Observable } from 'rxjs';
|
|
4
|
+
import { S as SortDirection } from './sort-direction.d-f4ce4649.js';
|
|
5
|
+
|
|
6
|
+
/** Position of the arrow that displays when sorted. */
|
|
7
|
+
type SortHeaderArrowPosition = 'before' | 'after';
|
|
8
|
+
/** Interface for a directive that holds sorting state consumed by `MatSortHeader`. */
|
|
9
|
+
interface MatSortable {
|
|
10
|
+
/** The id of the column being sorted. */
|
|
11
|
+
id: string;
|
|
12
|
+
/** Starting sort direction. */
|
|
13
|
+
start: SortDirection;
|
|
14
|
+
/** Whether to disable clearing the sorting state. */
|
|
15
|
+
disableClear: boolean;
|
|
16
|
+
}
|
|
17
|
+
/** The current sort state. */
|
|
18
|
+
interface Sort {
|
|
19
|
+
/** The id of the column being sorted. */
|
|
20
|
+
active: string;
|
|
21
|
+
/** The sort direction. */
|
|
22
|
+
direction: SortDirection;
|
|
23
|
+
}
|
|
24
|
+
/** Default options for `mat-sort`. */
|
|
25
|
+
interface MatSortDefaultOptions {
|
|
26
|
+
/** Whether to disable clearing the sorting state. */
|
|
27
|
+
disableClear?: boolean;
|
|
28
|
+
/** Position of the arrow that displays when sorted. */
|
|
29
|
+
arrowPosition?: SortHeaderArrowPosition;
|
|
30
|
+
}
|
|
31
|
+
/** Injection token to be used to override the default options for `mat-sort`. */
|
|
32
|
+
declare const MAT_SORT_DEFAULT_OPTIONS: InjectionToken<MatSortDefaultOptions>;
|
|
33
|
+
/** Container for MatSortables to manage the sort state and provide default sort parameters. */
|
|
34
|
+
declare class MatSort implements OnChanges, OnDestroy, OnInit {
|
|
35
|
+
private _defaultOptions?;
|
|
36
|
+
private _initializedStream;
|
|
37
|
+
/** Collection of all registered sortables that this directive manages. */
|
|
38
|
+
sortables: Map<string, MatSortable>;
|
|
39
|
+
/** Used to notify any child components listening to state changes. */
|
|
40
|
+
readonly _stateChanges: Subject<void>;
|
|
41
|
+
/** The id of the most recently sorted MatSortable. */
|
|
42
|
+
active: string;
|
|
43
|
+
/**
|
|
44
|
+
* The direction to set when an MatSortable is initially sorted.
|
|
45
|
+
* May be overridden by the MatSortable's sort start.
|
|
46
|
+
*/
|
|
47
|
+
start: SortDirection;
|
|
48
|
+
/** The sort direction of the currently active MatSortable. */
|
|
49
|
+
get direction(): SortDirection;
|
|
50
|
+
set direction(direction: SortDirection);
|
|
51
|
+
private _direction;
|
|
52
|
+
/**
|
|
53
|
+
* Whether to disable the user from clearing the sort by finishing the sort direction cycle.
|
|
54
|
+
* May be overridden by the MatSortable's disable clear input.
|
|
55
|
+
*/
|
|
56
|
+
disableClear: boolean;
|
|
57
|
+
/** Whether the sortable is disabled. */
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
/** Event emitted when the user changes either the active sort or sort direction. */
|
|
60
|
+
readonly sortChange: EventEmitter<Sort>;
|
|
61
|
+
/** Emits when the paginator is initialized. */
|
|
62
|
+
initialized: Observable<void>;
|
|
63
|
+
constructor(_defaultOptions?: MatSortDefaultOptions | undefined);
|
|
64
|
+
/**
|
|
65
|
+
* Register function to be used by the contained MatSortables. Adds the MatSortable to the
|
|
66
|
+
* collection of MatSortables.
|
|
67
|
+
*/
|
|
68
|
+
register(sortable: MatSortable): void;
|
|
69
|
+
/**
|
|
70
|
+
* Unregister function to be used by the contained MatSortables. Removes the MatSortable from the
|
|
71
|
+
* collection of contained MatSortables.
|
|
72
|
+
*/
|
|
73
|
+
deregister(sortable: MatSortable): void;
|
|
74
|
+
/** Sets the active sort id and determines the new sort direction. */
|
|
75
|
+
sort(sortable: MatSortable): void;
|
|
76
|
+
/** Returns the next sort direction of the active sortable, checking for potential overrides. */
|
|
77
|
+
getNextSortDirection(sortable: MatSortable): SortDirection;
|
|
78
|
+
ngOnInit(): void;
|
|
79
|
+
ngOnChanges(): void;
|
|
80
|
+
ngOnDestroy(): void;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MatSort, [{ optional: true; }]>;
|
|
82
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MatSort, "[matSort]", ["matSort"], { "active": { "alias": "matSortActive"; "required": false; }; "start": { "alias": "matSortStart"; "required": false; }; "direction": { "alias": "matSortDirection"; "required": false; }; "disableClear": { "alias": "matSortDisableClear"; "required": false; }; "disabled": { "alias": "matSortDisabled"; "required": false; }; }, { "sortChange": "matSortChange"; }, never, never, true, never>;
|
|
83
|
+
static ngAcceptInputType_disableClear: unknown;
|
|
84
|
+
static ngAcceptInputType_disabled: unknown;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export { type MatSortable as M, type SortHeaderArrowPosition as S, MatSort as a, type Sort as b, type MatSortDefaultOptions as c, MAT_SORT_DEFAULT_OPTIONS as d };
|