@angular/material 12.0.6 → 12.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/autocomplete.d.ts +4 -4
- package/autocomplete/index.metadata.json +1 -1
- package/badge/_badge-theme.scss +7 -6
- package/badge/badge.d.ts +5 -5
- package/badge/index.metadata.json +1 -1
- package/bundles/material-autocomplete-testing.umd.js +14 -11
- package/bundles/material-autocomplete-testing.umd.js.map +1 -1
- package/bundles/material-autocomplete.umd.js +18 -16
- package/bundles/material-autocomplete.umd.js.map +1 -1
- package/bundles/material-badge-testing.umd.js +14 -11
- package/bundles/material-badge-testing.umd.js.map +1 -1
- package/bundles/material-badge.umd.js +19 -17
- package/bundles/material-badge.umd.js.map +1 -1
- package/bundles/material-bottom-sheet-testing.umd.js +14 -11
- package/bundles/material-bottom-sheet-testing.umd.js.map +1 -1
- package/bundles/material-bottom-sheet.umd.js +14 -11
- package/bundles/material-bottom-sheet.umd.js.map +1 -1
- package/bundles/material-button-testing.umd.js +14 -11
- package/bundles/material-button-testing.umd.js.map +1 -1
- package/bundles/material-button-toggle-testing.umd.js +14 -11
- package/bundles/material-button-toggle-testing.umd.js.map +1 -1
- package/bundles/material-button-toggle.umd.js +19 -17
- package/bundles/material-button-toggle.umd.js.map +1 -1
- package/bundles/material-button.umd.js +19 -18
- package/bundles/material-button.umd.js.map +1 -1
- package/bundles/material-card-testing.umd.js +14 -11
- package/bundles/material-card-testing.umd.js.map +1 -1
- package/bundles/material-checkbox-testing.umd.js +14 -11
- package/bundles/material-checkbox-testing.umd.js.map +1 -1
- package/bundles/material-checkbox.umd.js +19 -17
- package/bundles/material-checkbox.umd.js.map +1 -1
- package/bundles/material-chips-testing.umd.js +14 -11
- package/bundles/material-chips-testing.umd.js.map +1 -1
- package/bundles/material-chips.umd.js +19 -17
- package/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-core-testing.umd.js +14 -11
- package/bundles/material-core-testing.umd.js.map +1 -1
- package/bundles/material-core.umd.js +20 -18
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-datepicker-testing.umd.js +14 -11
- package/bundles/material-datepicker-testing.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.js +21 -21
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-dialog-testing.umd.js +14 -11
- package/bundles/material-dialog-testing.umd.js.map +1 -1
- package/bundles/material-dialog.umd.js +23 -12
- package/bundles/material-dialog.umd.js.map +1 -1
- package/bundles/material-divider-testing.umd.js +14 -11
- package/bundles/material-divider-testing.umd.js.map +1 -1
- package/bundles/material-expansion-testing.umd.js +14 -11
- package/bundles/material-expansion-testing.umd.js.map +1 -1
- package/bundles/material-expansion.umd.js +42 -33
- package/bundles/material-expansion.umd.js.map +1 -1
- package/bundles/material-form-field-testing-control.umd.js +14 -11
- package/bundles/material-form-field-testing-control.umd.js.map +1 -1
- package/bundles/material-form-field-testing.umd.js +14 -11
- package/bundles/material-form-field-testing.umd.js.map +1 -1
- package/bundles/material-form-field.umd.js +20 -22
- package/bundles/material-form-field.umd.js.map +1 -1
- package/bundles/material-grid-list-testing.umd.js +14 -11
- package/bundles/material-grid-list-testing.umd.js.map +1 -1
- package/bundles/material-grid-list.umd.js +16 -15
- package/bundles/material-grid-list.umd.js.map +1 -1
- package/bundles/material-icon-testing.umd.js +14 -11
- package/bundles/material-icon-testing.umd.js.map +1 -1
- package/bundles/material-icon.umd.js +19 -17
- package/bundles/material-icon.umd.js.map +1 -1
- package/bundles/material-input-testing.umd.js +14 -11
- package/bundles/material-input-testing.umd.js.map +1 -1
- package/bundles/material-input.umd.js +20 -17
- package/bundles/material-input.umd.js.map +1 -1
- package/bundles/material-list-testing.umd.js +14 -11
- package/bundles/material-list-testing.umd.js.map +1 -1
- package/bundles/material-list.umd.js +34 -35
- package/bundles/material-list.umd.js.map +1 -1
- package/bundles/material-menu-testing.umd.js +14 -11
- package/bundles/material-menu-testing.umd.js.map +1 -1
- package/bundles/material-menu.umd.js +29 -26
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-paginator-testing.umd.js +14 -11
- package/bundles/material-paginator-testing.umd.js.map +1 -1
- package/bundles/material-paginator.umd.js +19 -17
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-progress-bar-testing.umd.js +14 -11
- package/bundles/material-progress-bar-testing.umd.js.map +1 -1
- package/bundles/material-progress-bar.umd.js +19 -17
- package/bundles/material-progress-bar.umd.js.map +1 -1
- package/bundles/material-progress-spinner-testing.umd.js +14 -11
- package/bundles/material-progress-spinner-testing.umd.js.map +1 -1
- package/bundles/material-progress-spinner.umd.js +19 -17
- package/bundles/material-progress-spinner.umd.js.map +1 -1
- package/bundles/material-radio-testing.umd.js +14 -11
- package/bundles/material-radio-testing.umd.js.map +1 -1
- package/bundles/material-radio.umd.js +16 -13
- package/bundles/material-radio.umd.js.map +1 -1
- package/bundles/material-select-testing.umd.js +14 -11
- package/bundles/material-select-testing.umd.js.map +1 -1
- package/bundles/material-select.umd.js +18 -16
- package/bundles/material-select.umd.js.map +1 -1
- package/bundles/material-sidenav-testing.umd.js +14 -11
- package/bundles/material-sidenav-testing.umd.js.map +1 -1
- package/bundles/material-sidenav.umd.js +14 -11
- package/bundles/material-sidenav.umd.js.map +1 -1
- package/bundles/material-slide-toggle-testing.umd.js +14 -11
- package/bundles/material-slide-toggle-testing.umd.js.map +1 -1
- package/bundles/material-slide-toggle.umd.js +19 -17
- package/bundles/material-slide-toggle.umd.js.map +1 -1
- package/bundles/material-slider-testing.umd.js +14 -11
- package/bundles/material-slider-testing.umd.js.map +1 -1
- package/bundles/material-slider.umd.js +108 -57
- package/bundles/material-slider.umd.js.map +1 -1
- package/bundles/material-snack-bar-testing.umd.js +14 -11
- package/bundles/material-snack-bar-testing.umd.js.map +1 -1
- package/bundles/material-snack-bar.umd.js +14 -11
- package/bundles/material-snack-bar.umd.js.map +1 -1
- package/bundles/material-sort-testing.umd.js +14 -11
- package/bundles/material-sort-testing.umd.js.map +1 -1
- package/bundles/material-sort.umd.js +24 -23
- package/bundles/material-sort.umd.js.map +1 -1
- package/bundles/material-stepper-testing.umd.js +14 -11
- package/bundles/material-stepper-testing.umd.js.map +1 -1
- package/bundles/material-stepper.umd.js +17 -15
- package/bundles/material-stepper.umd.js.map +1 -1
- package/bundles/material-table-testing.umd.js +14 -11
- package/bundles/material-table-testing.umd.js.map +1 -1
- package/bundles/material-table.umd.js +14 -11
- package/bundles/material-table.umd.js.map +1 -1
- package/bundles/material-tabs-testing.umd.js +14 -11
- package/bundles/material-tabs-testing.umd.js.map +1 -1
- package/bundles/material-tabs.umd.js +53 -36
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-toolbar-testing.umd.js +14 -11
- package/bundles/material-toolbar-testing.umd.js.map +1 -1
- package/bundles/material-toolbar.umd.js +19 -17
- package/bundles/material-toolbar.umd.js.map +1 -1
- package/bundles/material-tooltip-testing.umd.js +14 -11
- package/bundles/material-tooltip-testing.umd.js.map +1 -1
- package/bundles/material-tooltip.umd.js +14 -11
- package/bundles/material-tooltip.umd.js.map +1 -1
- package/bundles/material-tree-testing.umd.js +14 -11
- package/bundles/material-tree-testing.umd.js.map +1 -1
- package/bundles/material-tree.umd.js +16 -13
- package/bundles/material-tree.umd.js.map +1 -1
- package/button/button.d.ts +7 -8
- package/button/index.metadata.json +1 -1
- package/button-toggle/button-toggle.d.ts +5 -5
- package/button-toggle/index.metadata.json +1 -1
- package/checkbox/checkbox.d.ts +7 -7
- package/checkbox/index.metadata.json +1 -1
- package/chips/chip-list.d.ts +11 -13
- package/chips/chip.d.ts +2 -2
- package/chips/index.metadata.json +1 -1
- package/core/common-behaviors/color.d.ts +5 -1
- package/core/common-behaviors/disable-ripple.d.ts +5 -1
- package/core/common-behaviors/disabled.d.ts +5 -1
- package/core/common-behaviors/error-state.d.ts +5 -1
- package/core/common-behaviors/initialized.d.ts +5 -1
- package/core/common-behaviors/tabindex.d.ts +5 -1
- package/core/focus-indicators/_focus-indicators-theme.scss +9 -35
- package/core/index.metadata.json +1 -1
- package/core/option/optgroup.d.ts +4 -4
- package/core/style/_menu-common.scss +2 -1
- package/core/style/_private.scss +27 -0
- package/core/style/_vendor-prefixes.scss +10 -0
- package/core/typography/_typography-utils.scss +4 -2
- package/datepicker/date-range-input-parts.d.ts +2 -2
- package/datepicker/datepicker-base.d.ts +7 -7
- package/datepicker/index.metadata.json +1 -1
- package/dialog/dialog-content-directives.d.ts +13 -1
- package/dialog/dialog-ref.d.ts +4 -1
- package/dialog/index.metadata.json +1 -1
- package/esm2015/autocomplete/autocomplete.js +3 -4
- package/esm2015/badge/badge.js +4 -5
- package/esm2015/button/button.js +4 -6
- package/esm2015/button-toggle/button-toggle.js +4 -5
- package/esm2015/checkbox/checkbox.js +4 -5
- package/esm2015/chips/chip-list.js +4 -5
- package/esm2015/chips/chip.js +1 -1
- package/esm2015/core/common-behaviors/color.js +1 -1
- package/esm2015/core/common-behaviors/common-module.js +1 -1
- package/esm2015/core/common-behaviors/disable-ripple.js +1 -1
- package/esm2015/core/common-behaviors/disabled.js +1 -1
- package/esm2015/core/common-behaviors/error-state.js +1 -1
- package/esm2015/core/common-behaviors/initialized.js +1 -1
- package/esm2015/core/common-behaviors/tabindex.js +1 -1
- package/esm2015/core/option/optgroup.js +3 -4
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/date-range-input-parts.js +2 -4
- package/esm2015/datepicker/date-range-input.js +1 -1
- package/esm2015/datepicker/datepicker-base.js +4 -5
- package/esm2015/dialog/dialog-content-directives.js +7 -1
- package/esm2015/dialog/dialog-ref.js +4 -2
- package/esm2015/expansion/expansion-panel-header.js +16 -6
- package/esm2015/form-field/form-field.js +5 -10
- package/esm2015/icon/icon.js +4 -5
- package/esm2015/input/input.js +5 -5
- package/esm2015/list/list.js +7 -9
- package/esm2015/list/selection-list.js +7 -9
- package/esm2015/menu/menu-item.js +4 -5
- package/esm2015/menu/menu.js +8 -9
- package/esm2015/paginator/paginator.js +4 -5
- package/esm2015/progress-bar/progress-bar.js +4 -5
- package/esm2015/progress-spinner/progress-spinner.js +4 -5
- package/esm2015/radio/radio.js +3 -3
- package/esm2015/select/select.js +3 -4
- package/esm2015/slide-toggle/slide-toggle.js +4 -5
- package/esm2015/slider/slider.js +93 -45
- package/esm2015/sort/sort-header.js +4 -5
- package/esm2015/sort/sort.js +4 -5
- package/esm2015/stepper/public-api.js +1 -1
- package/esm2015/stepper/step-header.js +4 -5
- package/esm2015/tabs/tab-config.js +1 -1
- package/esm2015/tabs/tab-group.js +18 -6
- package/esm2015/tabs/tab-label-wrapper.js +4 -5
- package/esm2015/tabs/tab-nav-bar/tab-nav-bar.js +3 -4
- package/esm2015/tabs/tab.js +4 -5
- package/esm2015/toolbar/toolbar.js +4 -5
- package/esm2015/tree/node.js +3 -3
- package/expansion/expansion-panel-header.d.ts +11 -2
- package/expansion/index.metadata.json +1 -1
- package/fesm2015/autocomplete.js +2 -3
- package/fesm2015/autocomplete.js.map +1 -1
- package/fesm2015/badge.js +3 -4
- package/fesm2015/badge.js.map +1 -1
- package/fesm2015/button-toggle.js +3 -4
- package/fesm2015/button-toggle.js.map +1 -1
- package/fesm2015/button.js +3 -5
- package/fesm2015/button.js.map +1 -1
- package/fesm2015/checkbox.js +3 -4
- package/fesm2015/checkbox.js.map +1 -1
- package/fesm2015/chips.js +3 -4
- package/fesm2015/chips.js.map +1 -1
- package/fesm2015/core.js +4 -5
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker.js +5 -8
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/dialog.js +9 -1
- package/fesm2015/dialog.js.map +1 -1
- package/fesm2015/expansion.js +15 -6
- package/fesm2015/expansion.js.map +1 -1
- package/fesm2015/form-field.js +4 -9
- package/fesm2015/form-field.js.map +1 -1
- package/fesm2015/icon.js +3 -4
- package/fesm2015/icon.js.map +1 -1
- package/fesm2015/input.js +4 -4
- package/fesm2015/input.js.map +1 -1
- package/fesm2015/list.js +12 -16
- package/fesm2015/list.js.map +1 -1
- package/fesm2015/menu.js +10 -12
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/paginator.js +3 -4
- package/fesm2015/paginator.js.map +1 -1
- package/fesm2015/progress-bar.js +3 -4
- package/fesm2015/progress-bar.js.map +1 -1
- package/fesm2015/progress-spinner.js +3 -4
- package/fesm2015/progress-spinner.js.map +1 -1
- package/fesm2015/radio.js +2 -2
- package/fesm2015/radio.js.map +1 -1
- package/fesm2015/select.js +2 -3
- package/fesm2015/select.js.map +1 -1
- package/fesm2015/slide-toggle.js +3 -4
- package/fesm2015/slide-toggle.js.map +1 -1
- package/fesm2015/slider.js +92 -44
- package/fesm2015/slider.js.map +1 -1
- package/fesm2015/sort.js +6 -8
- package/fesm2015/sort.js.map +1 -1
- package/fesm2015/stepper.js +3 -4
- package/fesm2015/stepper.js.map +1 -1
- package/fesm2015/tabs.js +25 -16
- package/fesm2015/tabs.js.map +1 -1
- package/fesm2015/toolbar.js +3 -4
- package/fesm2015/toolbar.js.map +1 -1
- package/fesm2015/tree.js +2 -2
- package/fesm2015/tree.js.map +1 -1
- package/form-field/_form-field-fill-theme.scss +2 -1
- package/form-field/_form-field-legacy-theme.scss +5 -4
- package/form-field/_form-field-outline-theme.scss +3 -2
- package/form-field/_form-field-theme.scss +4 -3
- package/form-field/form-field.d.ts +7 -11
- package/form-field/index.metadata.json +1 -1
- package/icon/icon.d.ts +7 -7
- package/icon/index.metadata.json +1 -1
- package/input/_input-theme.scss +2 -1
- package/input/index.metadata.json +1 -1
- package/input/input.d.ts +13 -13
- package/list/index.metadata.json +1 -1
- package/list/list.d.ts +9 -9
- package/list/selection-list.d.ts +9 -9
- package/menu/index.metadata.json +1 -1
- package/menu/menu-item.d.ts +5 -5
- package/menu/menu.d.ts +4 -0
- package/package.json +3 -3
- package/paginator/index.metadata.json +1 -1
- package/paginator/paginator.d.ts +4 -4
- package/progress-bar/index.metadata.json +1 -1
- package/progress-bar/progress-bar.d.ts +7 -7
- package/progress-spinner/index.metadata.json +1 -1
- package/progress-spinner/progress-spinner.d.ts +7 -7
- package/radio/index.metadata.json +1 -1
- package/radio/radio.d.ts +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-update/migrations/theming-api-v12/config.js +4 -1
- package/schematics/ng-update/migrations/theming-api-v12/config.mjs +4 -1
- package/schematics/ng-update/migrations/theming-api-v12/migration.d.ts +9 -1
- package/schematics/ng-update/migrations/theming-api-v12/migration.js +40 -36
- package/schematics/ng-update/migrations/theming-api-v12/migration.mjs +40 -36
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.js +2 -2
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.mjs +2 -2
- package/select/index.metadata.json +1 -1
- package/select/select.d.ts +10 -10
- package/slide-toggle/index.metadata.json +1 -1
- package/slide-toggle/slide-toggle.d.ts +7 -7
- package/slider/index.metadata.json +1 -1
- package/slider/slider.d.ts +17 -9
- package/sort/index.metadata.json +1 -1
- package/sort/sort-header.d.ts +5 -5
- package/sort/sort.d.ts +5 -5
- package/stepper/_stepper-theme.scss +4 -3
- package/stepper/index.metadata.json +1 -1
- package/stepper/public-api.d.ts +1 -1
- package/stepper/step-header.d.ts +9 -7
- package/tabs/index.metadata.json +1 -1
- package/tabs/tab-config.d.ts +2 -0
- package/tabs/tab-group.d.ts +16 -6
- package/tabs/tab-label-wrapper.d.ts +5 -5
- package/tabs/tab-nav-bar/tab-nav-bar.d.ts +4 -4
- package/tabs/tab.d.ts +5 -5
- package/toolbar/index.metadata.json +1 -1
- package/toolbar/toolbar.d.ts +7 -7
- package/tooltip/_tooltip-theme.scss +3 -2
- package/tree/index.metadata.json +1 -1
- package/tree/node.d.ts +3 -3
|
@@ -386,18 +386,21 @@
|
|
|
386
386
|
function __importDefault(mod) {
|
|
387
387
|
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
388
388
|
}
|
|
389
|
-
function __classPrivateFieldGet(receiver,
|
|
390
|
-
if (!
|
|
391
|
-
throw new TypeError("
|
|
392
|
-
|
|
393
|
-
|
|
389
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
390
|
+
if (kind === "a" && !f)
|
|
391
|
+
throw new TypeError("Private accessor was defined without a getter");
|
|
392
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
393
|
+
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
394
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
394
395
|
}
|
|
395
|
-
function __classPrivateFieldSet(receiver,
|
|
396
|
-
if (
|
|
397
|
-
throw new TypeError("
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
396
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
397
|
+
if (kind === "m")
|
|
398
|
+
throw new TypeError("Private method is not writable");
|
|
399
|
+
if (kind === "a" && !f)
|
|
400
|
+
throw new TypeError("Private accessor was defined without a setter");
|
|
401
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
402
|
+
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
403
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
401
404
|
}
|
|
402
405
|
|
|
403
406
|
/**
|
|
@@ -454,12 +457,11 @@
|
|
|
454
457
|
|
|
455
458
|
// Boilerplate for applying mixins to MatTab.
|
|
456
459
|
/** @docs-private */
|
|
457
|
-
var
|
|
458
|
-
function
|
|
460
|
+
var _MatTabBase = core$1.mixinDisabled(/** @class */ (function () {
|
|
461
|
+
function class_1() {
|
|
459
462
|
}
|
|
460
|
-
return
|
|
461
|
-
}());
|
|
462
|
-
var _MatTabMixinBase = core$1.mixinDisabled(MatTabBase);
|
|
463
|
+
return class_1;
|
|
464
|
+
}()));
|
|
463
465
|
/**
|
|
464
466
|
* Used to provide a tab group to a tab without causing a circular dependency.
|
|
465
467
|
* @docs-private
|
|
@@ -535,7 +537,7 @@
|
|
|
535
537
|
}
|
|
536
538
|
};
|
|
537
539
|
return MatTab;
|
|
538
|
-
}(
|
|
540
|
+
}(_MatTabBase));
|
|
539
541
|
MatTab.decorators = [
|
|
540
542
|
{ type: core.Component, args: [{
|
|
541
543
|
selector: 'mat-tab',
|
|
@@ -825,13 +827,12 @@
|
|
|
825
827
|
}());
|
|
826
828
|
// Boilerplate for applying mixins to MatTabGroup.
|
|
827
829
|
/** @docs-private */
|
|
828
|
-
var
|
|
829
|
-
function
|
|
830
|
+
var _MatTabGroupMixinBase = core$1.mixinColor(core$1.mixinDisableRipple(/** @class */ (function () {
|
|
831
|
+
function class_1(_elementRef) {
|
|
830
832
|
this._elementRef = _elementRef;
|
|
831
833
|
}
|
|
832
|
-
return
|
|
833
|
-
}());
|
|
834
|
-
var _MatTabGroupMixinBase = core$1.mixinColor(core$1.mixinDisableRipple(MatTabGroupMixinBase), 'primary');
|
|
834
|
+
return class_1;
|
|
835
|
+
}())), 'primary');
|
|
835
836
|
/**
|
|
836
837
|
* Base class with all of the `MatTabGroupBase` functionality.
|
|
837
838
|
* @docs-private
|
|
@@ -839,7 +840,9 @@
|
|
|
839
840
|
var _MatTabGroupBase = /** @class */ (function (_super) {
|
|
840
841
|
__extends(_MatTabGroupBase, _super);
|
|
841
842
|
function _MatTabGroupBase(elementRef, _changeDetectorRef, defaultConfig, _animationMode) {
|
|
842
|
-
var _this =
|
|
843
|
+
var _this = this;
|
|
844
|
+
var _a;
|
|
845
|
+
_this = _super.call(this, elementRef) || this;
|
|
843
846
|
_this._changeDetectorRef = _changeDetectorRef;
|
|
844
847
|
_this._animationMode = _animationMode;
|
|
845
848
|
/** All of the tabs that belong to the group. */
|
|
@@ -870,6 +873,7 @@
|
|
|
870
873
|
defaultConfig.disablePagination : false;
|
|
871
874
|
_this.dynamicHeight = defaultConfig && defaultConfig.dynamicHeight != null ?
|
|
872
875
|
defaultConfig.dynamicHeight : false;
|
|
876
|
+
_this.contentTabIndex = (_a = defaultConfig === null || defaultConfig === void 0 ? void 0 : defaultConfig.contentTabIndex) !== null && _a !== void 0 ? _a : null;
|
|
873
877
|
return _this;
|
|
874
878
|
}
|
|
875
879
|
Object.defineProperty(_MatTabGroupBase.prototype, "dynamicHeight", {
|
|
@@ -897,6 +901,20 @@
|
|
|
897
901
|
enumerable: false,
|
|
898
902
|
configurable: true
|
|
899
903
|
});
|
|
904
|
+
Object.defineProperty(_MatTabGroupBase.prototype, "contentTabIndex", {
|
|
905
|
+
/**
|
|
906
|
+
* `tabindex` to be set on the inner element that wraps the tab content. Can be used for improved
|
|
907
|
+
* accessibility when the tab does not have focusable elements or if it has scrollable content.
|
|
908
|
+
* The `tabindex` will be removed automatically for inactive tabs.
|
|
909
|
+
* Read more at https://www.w3.org/TR/wai-aria-practices/examples/tabs/tabs-2/tabs.html
|
|
910
|
+
*/
|
|
911
|
+
get: function () { return this._contentTabIndex; },
|
|
912
|
+
set: function (value) {
|
|
913
|
+
this._contentTabIndex = coercion.coerceNumberProperty(value, null);
|
|
914
|
+
},
|
|
915
|
+
enumerable: false,
|
|
916
|
+
configurable: true
|
|
917
|
+
});
|
|
900
918
|
Object.defineProperty(_MatTabGroupBase.prototype, "backgroundColor", {
|
|
901
919
|
/** Background color of the tab group. */
|
|
902
920
|
get: function () { return this._backgroundColor; },
|
|
@@ -1117,6 +1135,7 @@
|
|
|
1117
1135
|
selectedIndex: [{ type: core.Input }],
|
|
1118
1136
|
headerPosition: [{ type: core.Input }],
|
|
1119
1137
|
animationDuration: [{ type: core.Input }],
|
|
1138
|
+
contentTabIndex: [{ type: core.Input }],
|
|
1120
1139
|
disablePagination: [{ type: core.Input }],
|
|
1121
1140
|
backgroundColor: [{ type: core.Input }],
|
|
1122
1141
|
selectedIndexChange: [{ type: core.Output }],
|
|
@@ -1140,7 +1159,7 @@
|
|
|
1140
1159
|
{ type: core.Component, args: [{
|
|
1141
1160
|
selector: 'mat-tab-group',
|
|
1142
1161
|
exportAs: 'matTabGroup',
|
|
1143
|
-
template: "<mat-tab-header #tabHeader\n [selectedIndex]=\"selectedIndex || 0\"\n [disableRipple]=\"disableRipple\"\n [disablePagination]=\"disablePagination\"\n (indexFocused)=\"_focusChanged($event)\"\n (selectFocusedIndex)=\"selectedIndex = $event\">\n <div class=\"mat-tab-label mat-focus-indicator\" role=\"tab\" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabLabelId(i)\"\n [attr.tabIndex]=\"_getTabIndex(tab, i)\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"_tabs.length\"\n [attr.aria-controls]=\"_getTabContentId(i)\"\n [attr.aria-selected]=\"selectedIndex == i\"\n [attr.aria-label]=\"tab.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\"\n [class.mat-tab-label-active]=\"selectedIndex == i\"\n [disabled]=\"tab.disabled\"\n [matRippleDisabled]=\"tab.disabled || disableRipple\"\n (click)=\"_handleClick(tab, tabHeader, i)\"\n (cdkFocusChange)=\"_tabFocusChanged($event, i)\">\n\n\n <div class=\"mat-tab-label-content\">\n <!-- If there is a label template, use it. -->\n <ng-template [ngIf]=\"tab.templateLabel\">\n <ng-template [cdkPortalOutlet]=\"tab.templateLabel\"></ng-template>\n </ng-template>\n\n <!-- If there is not a label template, fall back to the text label. -->\n <ng-template [ngIf]=\"!tab.templateLabel\">{{tab.textLabel}}</ng-template>\n </div>\n </div>\n</mat-tab-header>\n\n<div\n class=\"mat-tab-body-wrapper\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabBodyWrapper>\n <mat-tab-body role=\"tabpanel\"\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabContentId(i)\"\n [attr.aria-labelledby]=\"_getTabLabelId(i)\"\n [class.mat-tab-body-active]=\"selectedIndex
|
|
1162
|
+
template: "<mat-tab-header #tabHeader\n [selectedIndex]=\"selectedIndex || 0\"\n [disableRipple]=\"disableRipple\"\n [disablePagination]=\"disablePagination\"\n (indexFocused)=\"_focusChanged($event)\"\n (selectFocusedIndex)=\"selectedIndex = $event\">\n <div class=\"mat-tab-label mat-focus-indicator\" role=\"tab\" matTabLabelWrapper mat-ripple cdkMonitorElementFocus\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabLabelId(i)\"\n [attr.tabIndex]=\"_getTabIndex(tab, i)\"\n [attr.aria-posinset]=\"i + 1\"\n [attr.aria-setsize]=\"_tabs.length\"\n [attr.aria-controls]=\"_getTabContentId(i)\"\n [attr.aria-selected]=\"selectedIndex == i\"\n [attr.aria-label]=\"tab.ariaLabel || null\"\n [attr.aria-labelledby]=\"(!tab.ariaLabel && tab.ariaLabelledby) ? tab.ariaLabelledby : null\"\n [class.mat-tab-label-active]=\"selectedIndex == i\"\n [disabled]=\"tab.disabled\"\n [matRippleDisabled]=\"tab.disabled || disableRipple\"\n (click)=\"_handleClick(tab, tabHeader, i)\"\n (cdkFocusChange)=\"_tabFocusChanged($event, i)\">\n\n\n <div class=\"mat-tab-label-content\">\n <!-- If there is a label template, use it. -->\n <ng-template [ngIf]=\"tab.templateLabel\">\n <ng-template [cdkPortalOutlet]=\"tab.templateLabel\"></ng-template>\n </ng-template>\n\n <!-- If there is not a label template, fall back to the text label. -->\n <ng-template [ngIf]=\"!tab.templateLabel\">{{tab.textLabel}}</ng-template>\n </div>\n </div>\n</mat-tab-header>\n\n<div\n class=\"mat-tab-body-wrapper\"\n [class._mat-animation-noopable]=\"_animationMode === 'NoopAnimations'\"\n #tabBodyWrapper>\n <mat-tab-body role=\"tabpanel\"\n *ngFor=\"let tab of _tabs; let i = index\"\n [id]=\"_getTabContentId(i)\"\n [attr.tabindex]=\"(contentTabIndex != null && selectedIndex === i) ? contentTabIndex : null\"\n [attr.aria-labelledby]=\"_getTabLabelId(i)\"\n [class.mat-tab-body-active]=\"selectedIndex === i\"\n [content]=\"tab.content!\"\n [position]=\"tab.position!\"\n [origin]=\"tab.origin\"\n [animationDuration]=\"animationDuration\"\n (_onCentered)=\"_removeTabBodyWrapperHeight()\"\n (_onCentering)=\"_setTabBodyWrapperHeight($event)\">\n </mat-tab-body>\n</div>\n",
|
|
1144
1163
|
encapsulation: core.ViewEncapsulation.None,
|
|
1145
1164
|
// tslint:disable-next-line:validate-decorators
|
|
1146
1165
|
changeDetection: core.ChangeDetectionStrategy.Default,
|
|
@@ -1154,7 +1173,7 @@
|
|
|
1154
1173
|
'[class.mat-tab-group-dynamic-height]': 'dynamicHeight',
|
|
1155
1174
|
'[class.mat-tab-group-inverted-header]': 'headerPosition === "below"',
|
|
1156
1175
|
},
|
|
1157
|
-
styles: [".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"]
|
|
1176
|
+
styles: [".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:none}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}.cdk-high-contrast-active .mat-tab-label:focus{outline:dotted 2px;outline-offset:-2px}.mat-tab-label.mat-tab-disabled{cursor:default}.cdk-high-contrast-active .mat-tab-label.mat-tab-disabled{opacity:.5}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}.cdk-high-contrast-active .mat-tab-label{opacity:1}@media(max-width: 599px){.mat-tab-label{padding:0 12px}}@media(max-width: 959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height 500ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;outline:0;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}\n"]
|
|
1158
1177
|
},] }
|
|
1159
1178
|
];
|
|
1160
1179
|
MatTabGroup.ctorParameters = function () { return [
|
|
@@ -1171,12 +1190,11 @@
|
|
|
1171
1190
|
|
|
1172
1191
|
// Boilerplate for applying mixins to MatTabLabelWrapper.
|
|
1173
1192
|
/** @docs-private */
|
|
1174
|
-
var
|
|
1175
|
-
function
|
|
1193
|
+
var _MatTabLabelWrapperBase = core$1.mixinDisabled(/** @class */ (function () {
|
|
1194
|
+
function class_1() {
|
|
1176
1195
|
}
|
|
1177
|
-
return
|
|
1178
|
-
}());
|
|
1179
|
-
var _MatTabLabelWrapperMixinBase = core$1.mixinDisabled(MatTabLabelWrapperBase);
|
|
1196
|
+
return class_1;
|
|
1197
|
+
}()));
|
|
1180
1198
|
/**
|
|
1181
1199
|
* Used in the `mat-tab-group` view to display tab labels.
|
|
1182
1200
|
* @docs-private
|
|
@@ -1199,7 +1217,7 @@
|
|
|
1199
1217
|
return this.elementRef.nativeElement.offsetWidth;
|
|
1200
1218
|
};
|
|
1201
1219
|
return MatTabLabelWrapper;
|
|
1202
|
-
}(
|
|
1220
|
+
}(_MatTabLabelWrapperBase));
|
|
1203
1221
|
MatTabLabelWrapper.decorators = [
|
|
1204
1222
|
{ type: core.Directive, args: [{
|
|
1205
1223
|
selector: '[matTabLabelWrapper]',
|
|
@@ -1917,12 +1935,11 @@
|
|
|
1917
1935
|
_previousPaginator: [{ type: core.ViewChild, args: ['previousPaginator',] }]
|
|
1918
1936
|
};
|
|
1919
1937
|
// Boilerplate for applying mixins to MatTabLink.
|
|
1920
|
-
var
|
|
1921
|
-
function
|
|
1938
|
+
var _MatTabLinkMixinBase = core$1.mixinTabIndex(core$1.mixinDisableRipple(core$1.mixinDisabled(/** @class */ (function () {
|
|
1939
|
+
function class_1() {
|
|
1922
1940
|
}
|
|
1923
|
-
return
|
|
1924
|
-
}());
|
|
1925
|
-
var _MatTabLinkMixinBase = core$1.mixinTabIndex(core$1.mixinDisableRipple(core$1.mixinDisabled(MatTabLinkMixinBase)));
|
|
1941
|
+
return class_1;
|
|
1942
|
+
}()))));
|
|
1926
1943
|
/** Base class with all of the `MatTabLink` functionality. */
|
|
1927
1944
|
var _MatTabLinkBase = /** @class */ (function (_super) {
|
|
1928
1945
|
__extends(_MatTabLinkBase, _super);
|