@angular/material 15.2.0-rc.0 → 15.2.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/chips/_chips-theme.scss +1 -0
- package/chips/index.d.ts +13 -4
- package/esm2020/bottom-sheet/bottom-sheet.mjs +3 -1
- package/esm2020/chips/chip-grid.mjs +5 -5
- package/esm2020/chips/chip-listbox.mjs +5 -5
- package/esm2020/chips/chip-option.mjs +3 -3
- package/esm2020/chips/chip-row.mjs +3 -3
- package/esm2020/chips/chip-set.mjs +5 -5
- package/esm2020/chips/chip.mjs +20 -5
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/dialog/dialog.mjs +4 -1
- package/esm2020/list/list-base.mjs +5 -4
- package/esm2020/snack-bar/snack-bar-container.mjs +3 -3
- package/esm2020/tabs/tab-group.mjs +3 -3
- package/fesm2015/bottom-sheet.mjs +3 -1
- package/fesm2015/bottom-sheet.mjs.map +1 -1
- package/fesm2015/chips.mjs +35 -19
- package/fesm2015/chips.mjs.map +1 -1
- package/fesm2015/core.mjs +1 -1
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/dialog.mjs +4 -1
- package/fesm2015/dialog.mjs.map +1 -1
- package/fesm2015/list.mjs +4 -3
- package/fesm2015/list.mjs.map +1 -1
- package/fesm2015/snack-bar.mjs +2 -2
- package/fesm2015/snack-bar.mjs.map +1 -1
- package/fesm2015/tabs.mjs +2 -2
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2020/bottom-sheet.mjs +2 -0
- package/fesm2020/bottom-sheet.mjs.map +1 -1
- package/fesm2020/chips.mjs +34 -19
- package/fesm2020/chips.mjs.map +1 -1
- package/fesm2020/core.mjs +1 -1
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/dialog.mjs +3 -0
- package/fesm2020/dialog.mjs.map +1 -1
- package/fesm2020/list.mjs +4 -3
- package/fesm2020/list.mjs.map +1 -1
- package/fesm2020/snack-bar.mjs +2 -2
- package/fesm2020/snack-bar.mjs.map +1 -1
- package/fesm2020/tabs.mjs +2 -2
- package/fesm2020/tabs.mjs.map +1 -1
- package/list/index.d.ts +2 -0
- package/package.json +7 -7
- package/schematics/ng-add/index.js +2 -2
- package/schematics/ng-add/index.mjs +2 -2
- package/schematics/ng-generate/mdc-migration/index_bundled.js +8 -1
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +2 -2
package/list/index.d.ts
CHANGED
|
@@ -188,6 +188,8 @@ declare abstract class MatListItemBase implements AfterViewInit, OnDestroy, Ripp
|
|
|
188
188
|
abstract _unscopedContent: ElementRef<HTMLSpanElement> | undefined;
|
|
189
189
|
/** Host element for the list item. */
|
|
190
190
|
_hostElement: HTMLElement;
|
|
191
|
+
/** indicate whether the host element is a button or not */
|
|
192
|
+
_isButtonElement: boolean;
|
|
191
193
|
/** Whether animations are disabled. */
|
|
192
194
|
_noopAnimations: boolean;
|
|
193
195
|
_avatars: QueryList<never>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material",
|
|
3
|
-
"version": "15.2.
|
|
3
|
+
"version": "15.2.1",
|
|
4
4
|
"description": "Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -988,12 +988,12 @@
|
|
|
988
988
|
}
|
|
989
989
|
},
|
|
990
990
|
"peerDependencies": {
|
|
991
|
-
"@angular/animations": "^15.0.0
|
|
992
|
-
"@angular/cdk": "15.2.
|
|
993
|
-
"@angular/core": "^15.0.0
|
|
994
|
-
"@angular/common": "^15.0.0
|
|
995
|
-
"@angular/forms": "^15.0.0
|
|
996
|
-
"@angular/platform-browser": "^15.0.0
|
|
991
|
+
"@angular/animations": "^15.0.0 || ^16.0.0",
|
|
992
|
+
"@angular/cdk": "15.2.1",
|
|
993
|
+
"@angular/core": "^15.0.0 || ^16.0.0",
|
|
994
|
+
"@angular/common": "^15.0.0 || ^16.0.0",
|
|
995
|
+
"@angular/forms": "^15.0.0 || ^16.0.0",
|
|
996
|
+
"@angular/platform-browser": "^15.0.0 || ^16.0.0",
|
|
997
997
|
"rxjs": "^6.5.3 || ^7.4.0"
|
|
998
998
|
},
|
|
999
999
|
"dependencies": {
|
|
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
|
|
|
18
18
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
19
19
|
* the default for Angular framework dependencies in CLI projects.
|
|
20
20
|
*/
|
|
21
|
-
const fallbackMaterialVersionRange = `~15.2.
|
|
21
|
+
const fallbackMaterialVersionRange = `~15.2.1`;
|
|
22
22
|
/**
|
|
23
23
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
24
24
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -33,7 +33,7 @@ function default_1(options) {
|
|
|
33
33
|
// have the same version tag if possible.
|
|
34
34
|
const ngCoreVersionTag = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/core');
|
|
35
35
|
const materialVersionRange = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/material');
|
|
36
|
-
const angularDependencyVersion = ngCoreVersionTag || `^15.0.0
|
|
36
|
+
const angularDependencyVersion = ngCoreVersionTag || `^15.0.0 || ^16.0.0`;
|
|
37
37
|
// The CLI inserts `@angular/material` into the `package.json` before this schematic runs.
|
|
38
38
|
// This means that we do not need to insert Angular Material into `package.json` files again.
|
|
39
39
|
// In some cases though, it could happen that this schematic runs outside of the CLI `ng add`
|
|
@@ -18,7 +18,7 @@ const package_config_1 = require("./package-config");
|
|
|
18
18
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
19
19
|
* the default for Angular framework dependencies in CLI projects.
|
|
20
20
|
*/
|
|
21
|
-
const fallbackMaterialVersionRange = `~15.2.
|
|
21
|
+
const fallbackMaterialVersionRange = `~15.2.1`;
|
|
22
22
|
/**
|
|
23
23
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
24
24
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -33,7 +33,7 @@ function default_1(options) {
|
|
|
33
33
|
// have the same version tag if possible.
|
|
34
34
|
const ngCoreVersionTag = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/core');
|
|
35
35
|
const materialVersionRange = (0, package_config_1.getPackageVersionFromPackageJson)(host, '@angular/material');
|
|
36
|
-
const angularDependencyVersion = ngCoreVersionTag || `^15.0.0
|
|
36
|
+
const angularDependencyVersion = ngCoreVersionTag || `^15.0.0 || ^16.0.0`;
|
|
37
37
|
// The CLI inserts `@angular/material` into the `package.json` before this schematic runs.
|
|
38
38
|
// This means that we do not need to insert Angular Material into `package.json` files again.
|
|
39
39
|
// In some cases though, it could happen that this schematic runs outside of the CLI `ng add`
|
|
@@ -22806,6 +22806,7 @@ var PERMANENT_MIGRATORS = [
|
|
|
22806
22806
|
styles: new TypographyHierarchyStylesMigrator()
|
|
22807
22807
|
}
|
|
22808
22808
|
];
|
|
22809
|
+
var CORE_COMPONENTS = ["option", "optgroup"];
|
|
22809
22810
|
|
|
22810
22811
|
// bazel-out/k8-fastbuild/bin/src/material/schematics/ng-generate/mdc-migration/index.mjs
|
|
22811
22812
|
var import_schematics4 = require("@angular/cdk/schematics");
|
|
@@ -23215,13 +23216,19 @@ var RuntimeCodeMigration = class extends import_schematics3.Migration {
|
|
|
23215
23216
|
this._printAndUpdateNode(sourceFile, currentNode, newName);
|
|
23216
23217
|
});
|
|
23217
23218
|
}
|
|
23219
|
+
_importPathHasComponentToMigrate(importTextPath) {
|
|
23220
|
+
const lastImportName = importTextPath.split("/").slice(-1)[0];
|
|
23221
|
+
return !!this.upgradeData.find((componentMigrator) => {
|
|
23222
|
+
return lastImportName.includes(componentMigrator.component) || lastImportName === "legacy-core" && CORE_COMPONENTS.includes(componentMigrator.component);
|
|
23223
|
+
});
|
|
23224
|
+
}
|
|
23218
23225
|
_findImportsToMigrate(sourceFile) {
|
|
23219
23226
|
var _a;
|
|
23220
23227
|
const importSpecifiersToNewNames = /* @__PURE__ */ new Map();
|
|
23221
23228
|
const moduleSpecifiers = /* @__PURE__ */ new Map();
|
|
23222
23229
|
const identifiersToImportSpecifiers = /* @__PURE__ */ new Map();
|
|
23223
23230
|
for (const statement of sourceFile.statements) {
|
|
23224
|
-
if (ts.isImportDeclaration(statement) && ts.isStringLiteral(statement.moduleSpecifier) && ((_a = statement.importClause) == null ? void 0 : _a.namedBindings) && ts.isNamedImports(statement.importClause.namedBindings) && LEGACY_MODULES.has(statement.moduleSpecifier.text)) {
|
|
23231
|
+
if (ts.isImportDeclaration(statement) && ts.isStringLiteral(statement.moduleSpecifier) && ((_a = statement.importClause) == null ? void 0 : _a.namedBindings) && ts.isNamedImports(statement.importClause.namedBindings) && LEGACY_MODULES.has(statement.moduleSpecifier.text) && this._importPathHasComponentToMigrate(statement.moduleSpecifier.text)) {
|
|
23225
23232
|
statement.importClause.namedBindings.elements.forEach((element) => {
|
|
23226
23233
|
const oldName = (element.propertyName || element.name).text;
|
|
23227
23234
|
const newName = this._removeLegacy(oldName);
|