@angular/material 12.0.0-rc.0 → 12.0.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/bundles/material-chips.umd.js.map +1 -1
- package/bundles/material-core.umd.js +27 -30
- package/bundles/material-core.umd.js.map +1 -1
- package/bundles/material-datepicker-testing.umd.js +5 -5
- package/bundles/material-datepicker-testing.umd.js.map +1 -1
- package/bundles/material-datepicker.umd.js +57 -7
- package/bundles/material-datepicker.umd.js.map +1 -1
- package/bundles/material-form-field-testing.umd.js +16 -8
- package/bundles/material-form-field-testing.umd.js.map +1 -1
- package/bundles/material-menu.umd.js.map +1 -1
- package/bundles/material-paginator.umd.js +1 -0
- package/bundles/material-paginator.umd.js.map +1 -1
- package/bundles/material-table-testing.umd.js +103 -143
- package/bundles/material-table-testing.umd.js.map +1 -1
- package/bundles/material-tabs.umd.js +8 -1
- package/bundles/material-tabs.umd.js.map +1 -1
- package/bundles/material-tree.umd.js +1 -3
- package/bundles/material-tree.umd.js.map +1 -1
- package/chips/chip.d.ts +2 -1
- package/chips/index.metadata.json +1 -1
- package/core/common-behaviors/color.d.ts +3 -3
- package/core/common-behaviors/constructor.d.ts +1 -3
- package/core/common-behaviors/disable-ripple.d.ts +2 -2
- package/core/common-behaviors/disabled.d.ts +3 -3
- package/core/common-behaviors/error-state.d.ts +3 -3
- package/core/common-behaviors/tabindex.d.ts +1 -1
- package/core/index.metadata.json +1 -1
- package/core/ripple/ripple-renderer.d.ts +2 -0
- package/core/ripple/ripple.d.ts +2 -0
- package/datepicker/date-range-input-parts.d.ts +2 -0
- package/datepicker/date-range-input.d.ts +6 -1
- package/datepicker/date-selection-model.d.ts +2 -0
- package/datepicker/datepicker-base.d.ts +1 -0
- package/datepicker/datepicker-input.d.ts +4 -2
- package/datepicker/index.metadata.json +1 -1
- package/datepicker/testing/datepicker-input-harness-base.d.ts +3 -2
- package/esm2015/chips/chip.js +1 -1
- package/esm2015/core/common-behaviors/color.js +1 -2
- package/esm2015/core/common-behaviors/common-module.js +1 -1
- package/esm2015/core/common-behaviors/constructor.js +1 -1
- package/esm2015/core/common-behaviors/disable-ripple.js +3 -8
- package/esm2015/core/common-behaviors/disabled.js +1 -2
- package/esm2015/core/common-behaviors/error-state.js +1 -5
- package/esm2015/core/common-behaviors/tabindex.js +3 -10
- package/esm2015/core/ripple/ripple-renderer.js +9 -1
- package/esm2015/core/ripple/ripple.js +8 -1
- package/esm2015/core/version.js +1 -1
- package/esm2015/datepicker/date-range-input-parts.js +23 -1
- package/esm2015/datepicker/date-range-input.js +18 -3
- package/esm2015/datepicker/date-selection-model.js +3 -2
- package/esm2015/datepicker/datepicker-base.js +8 -3
- package/esm2015/datepicker/datepicker-input.js +8 -1
- package/esm2015/datepicker/datepicker-toggle.js +1 -1
- package/esm2015/datepicker/testing/datepicker-input-harness-base.js +4 -3
- package/esm2015/form-field/testing/form-field-harness.js +12 -3
- package/esm2015/menu/menu-trigger.js +1 -1
- package/esm2015/menu/menu.js +1 -1
- package/esm2015/paginator/paginator.js +2 -1
- package/esm2015/table/testing/cell-harness.js +9 -9
- package/esm2015/table/testing/row-harness.js +38 -70
- package/esm2015/table/testing/table-harness.js +23 -15
- package/esm2015/tabs/paginated-tab-header.js +2 -2
- package/esm2015/tabs/tab-group.js +8 -1
- package/esm2015/tree/data-source/nested-data-source.js +2 -4
- package/fesm2015/chips.js.map +1 -1
- package/fesm2015/core.js +21 -24
- package/fesm2015/core.js.map +1 -1
- package/fesm2015/datepicker/testing.js +2 -1
- package/fesm2015/datepicker/testing.js.map +1 -1
- package/fesm2015/datepicker.js +55 -5
- package/fesm2015/datepicker.js.map +1 -1
- package/fesm2015/form-field/testing.js +11 -2
- package/fesm2015/form-field/testing.js.map +1 -1
- package/fesm2015/menu.js.map +1 -1
- package/fesm2015/paginator.js +1 -0
- package/fesm2015/paginator.js.map +1 -1
- package/fesm2015/table/testing.js +66 -90
- package/fesm2015/table/testing.js.map +1 -1
- package/fesm2015/tabs.js +8 -1
- package/fesm2015/tabs.js.map +1 -1
- package/fesm2015/tree.js +1 -3
- package/fesm2015/tree.js.map +1 -1
- package/form-field/testing/form-field-harness.d.ts +6 -1
- package/package.json +6 -6
- package/paginator/index.metadata.json +1 -1
- package/prebuilt-themes/deeppurple-amber.css +1 -1
- package/prebuilt-themes/indigo-pink.css +1 -1
- package/prebuilt-themes/pink-bluegrey.css +1 -1
- package/prebuilt-themes/purple-green.css +1 -1
- package/schematics/collection.json +0 -6
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-update/index.js +3 -1
- package/schematics/{ng-generate/theming-api → ng-update/migrations/theming-api-v12}/config.d.ts +6 -0
- package/schematics/ng-update/migrations/theming-api-v12/config.js +206 -0
- package/schematics/{ng-generate/theming-api → ng-update/migrations/theming-api-v12}/migration.d.ts +0 -0
- package/schematics/ng-update/migrations/theming-api-v12/migration.js +234 -0
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.d.ts +18 -0
- package/schematics/ng-update/migrations/theming-api-v12/theming-api-migration.js +45 -0
- package/table/testing/cell-harness.d.ts +2 -1
- package/table/testing/row-harness.d.ts +21 -22
- package/table/testing/table-harness.d.ts +32 -13
- package/tabs/_tabs-theme.scss +5 -2
- package/tabs/index.metadata.json +1 -1
- package/schematics/ng-generate/theming-api/config.js +0 -183
- package/schematics/ng-generate/theming-api/index.d.ts +0 -10
- package/schematics/ng-generate/theming-api/index.js +0 -26
- package/schematics/ng-generate/theming-api/migration.js +0 -223
- package/schematics/ng-generate/theming-api/schema.d.ts +0 -9
- package/schematics/ng-generate/theming-api/schema.js +0 -10
- package/schematics/ng-generate/theming-api/schema.json +0 -7
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
* found in the LICENSE file at https://angular.io/license
|
|
35
35
|
*/
|
|
36
36
|
/** Current version of Angular Material. */
|
|
37
|
-
var VERSION$1 = new i0.Version('12.0.0
|
|
37
|
+
var VERSION$1 = new i0.Version('12.0.0');
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* @license
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
// i.e. avoid core to depend on the @angular/material primary entry-point
|
|
75
75
|
// Can be removed once the Material primary entry-point no longer
|
|
76
76
|
// re-exports all secondary entry-points
|
|
77
|
-
var VERSION = new i0.Version('12.0.0
|
|
77
|
+
var VERSION = new i0.Version('12.0.0');
|
|
78
78
|
/** @docs-private */
|
|
79
79
|
function MATERIAL_SANITY_CHECKS_FACTORY() {
|
|
80
80
|
return true;
|
|
@@ -489,7 +489,6 @@
|
|
|
489
489
|
return value;
|
|
490
490
|
}
|
|
491
491
|
|
|
492
|
-
/** Mixin to augment a directive with a `disabled` property. */
|
|
493
492
|
function mixinDisabled(base) {
|
|
494
493
|
return /** @class */ (function (_super) {
|
|
495
494
|
__extends(class_1, _super);
|
|
@@ -519,7 +518,6 @@
|
|
|
519
518
|
* Use of this source code is governed by an MIT-style license that can be
|
|
520
519
|
* found in the LICENSE file at https://angular.io/license
|
|
521
520
|
*/
|
|
522
|
-
/** Mixin to augment a directive with a `color` property. */
|
|
523
521
|
function mixinColor(base, defaultColor) {
|
|
524
522
|
return /** @class */ (function (_super) {
|
|
525
523
|
__extends(class_1, _super);
|
|
@@ -555,11 +553,10 @@
|
|
|
555
553
|
}(base));
|
|
556
554
|
}
|
|
557
555
|
|
|
558
|
-
/** Mixin to augment a directive with a `disableRipple` property. */
|
|
559
556
|
function mixinDisableRipple(base) {
|
|
560
|
-
|
|
561
|
-
__extends(
|
|
562
|
-
function
|
|
557
|
+
return /** @class */ (function (_super) {
|
|
558
|
+
__extends(class_1, _super);
|
|
559
|
+
function class_1() {
|
|
563
560
|
var args = [];
|
|
564
561
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
565
562
|
args[_i] = arguments[_i];
|
|
@@ -568,29 +565,22 @@
|
|
|
568
565
|
_this._disableRipple = false;
|
|
569
566
|
return _this;
|
|
570
567
|
}
|
|
571
|
-
Object.defineProperty(
|
|
568
|
+
Object.defineProperty(class_1.prototype, "disableRipple", {
|
|
572
569
|
/** Whether the ripple effect is disabled or not. */
|
|
573
570
|
get: function () { return this._disableRipple; },
|
|
574
571
|
set: function (value) { this._disableRipple = coercion.coerceBooleanProperty(value); },
|
|
575
572
|
enumerable: false,
|
|
576
573
|
configurable: true
|
|
577
574
|
});
|
|
578
|
-
return
|
|
575
|
+
return class_1;
|
|
579
576
|
}(base));
|
|
580
|
-
// Since we don't directly extend from `base` with it's original types, and we instruct
|
|
581
|
-
// TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.
|
|
582
|
-
// This is a limitation in TS as abstract classes cannot be typed properly dynamically.
|
|
583
|
-
return Mixin;
|
|
584
577
|
}
|
|
585
578
|
|
|
586
|
-
/** Mixin to augment a directive with a `tabIndex` property. */
|
|
587
579
|
function mixinTabIndex(base, defaultTabIndex) {
|
|
588
580
|
if (defaultTabIndex === void 0) { defaultTabIndex = 0; }
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
__extends(Mixin, _super);
|
|
593
|
-
function Mixin() {
|
|
581
|
+
return /** @class */ (function (_super) {
|
|
582
|
+
__extends(class_1, _super);
|
|
583
|
+
function class_1() {
|
|
594
584
|
var args = [];
|
|
595
585
|
for (var _i = 0; _i < arguments.length; _i++) {
|
|
596
586
|
args[_i] = arguments[_i];
|
|
@@ -600,7 +590,7 @@
|
|
|
600
590
|
_this.defaultTabIndex = defaultTabIndex;
|
|
601
591
|
return _this;
|
|
602
592
|
}
|
|
603
|
-
Object.defineProperty(
|
|
593
|
+
Object.defineProperty(class_1.prototype, "tabIndex", {
|
|
604
594
|
get: function () { return this.disabled ? -1 : this._tabIndex; },
|
|
605
595
|
set: function (value) {
|
|
606
596
|
// If the specified tabIndex value is null or undefined, fall back to the default value.
|
|
@@ -609,18 +599,10 @@
|
|
|
609
599
|
enumerable: false,
|
|
610
600
|
configurable: true
|
|
611
601
|
});
|
|
612
|
-
return
|
|
602
|
+
return class_1;
|
|
613
603
|
}(base));
|
|
614
|
-
// Since we don't directly extend from `base` with it's original types, and we instruct
|
|
615
|
-
// TypeScript that `T` actually is instantiatable through `new`, the types don't overlap.
|
|
616
|
-
// This is a limitation in TS as abstract classes cannot be typed properly dynamically.
|
|
617
|
-
return Mixin;
|
|
618
604
|
}
|
|
619
605
|
|
|
620
|
-
/**
|
|
621
|
-
* Mixin to augment a directive with updateErrorState method.
|
|
622
|
-
* For component with `errorState` and need to update `errorState`.
|
|
623
|
-
*/
|
|
624
606
|
function mixinErrorState(base) {
|
|
625
607
|
return /** @class */ (function (_super) {
|
|
626
608
|
__extends(class_1, _super);
|
|
@@ -1420,6 +1402,14 @@
|
|
|
1420
1402
|
RippleRenderer.prototype.fadeOutAll = function () {
|
|
1421
1403
|
this._activeRipples.forEach(function (ripple) { return ripple.fadeOut(); });
|
|
1422
1404
|
};
|
|
1405
|
+
/** Fades out all currently active non-persistent ripples. */
|
|
1406
|
+
RippleRenderer.prototype.fadeOutAllNonPersistent = function () {
|
|
1407
|
+
this._activeRipples.forEach(function (ripple) {
|
|
1408
|
+
if (!ripple.config.persistent) {
|
|
1409
|
+
ripple.fadeOut();
|
|
1410
|
+
}
|
|
1411
|
+
});
|
|
1412
|
+
};
|
|
1423
1413
|
/** Sets up the trigger event listeners */
|
|
1424
1414
|
RippleRenderer.prototype.setupTriggerEvents = function (elementOrElementRef) {
|
|
1425
1415
|
var element = coercion.coerceElement(elementOrElementRef);
|
|
@@ -1576,6 +1566,9 @@
|
|
|
1576
1566
|
*/
|
|
1577
1567
|
get: function () { return this._disabled; },
|
|
1578
1568
|
set: function (value) {
|
|
1569
|
+
if (value) {
|
|
1570
|
+
this.fadeOutAllNonPersistent();
|
|
1571
|
+
}
|
|
1579
1572
|
this._disabled = value;
|
|
1580
1573
|
this._setupTriggerEventsIfEnabled();
|
|
1581
1574
|
},
|
|
@@ -1606,6 +1599,10 @@
|
|
|
1606
1599
|
MatRipple.prototype.fadeOutAll = function () {
|
|
1607
1600
|
this._rippleRenderer.fadeOutAll();
|
|
1608
1601
|
};
|
|
1602
|
+
/** Fades out all currently showing non-persistent ripple elements. */
|
|
1603
|
+
MatRipple.prototype.fadeOutAllNonPersistent = function () {
|
|
1604
|
+
this._rippleRenderer.fadeOutAllNonPersistent();
|
|
1605
|
+
};
|
|
1609
1606
|
Object.defineProperty(MatRipple.prototype, "rippleConfig", {
|
|
1610
1607
|
/**
|
|
1611
1608
|
* Ripple configuration from the directive's input values.
|