@angular/material 19.1.0-next.0 → 19.1.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/fesm2022/button-toggle.mjs +28 -17
- package/fesm2022/button-toggle.mjs.map +1 -1
- package/fesm2022/core.mjs +3 -3
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/sort.mjs +86 -198
- package/fesm2022/sort.mjs.map +1 -1
- package/fesm2022/tabs.mjs +1 -0
- package/fesm2022/tabs.mjs.map +1 -1
- package/package.json +2 -2
- package/schematics/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-update/index_bundled.js +19 -10
- package/schematics/ng-update/index_bundled.js.map +2 -2
- package/sort/index.d.ts +15 -48
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular/material",
|
|
3
|
-
"version": "19.1.0-next.
|
|
3
|
+
"version": "19.1.0-next.1",
|
|
4
4
|
"description": "Angular Material",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -354,7 +354,7 @@
|
|
|
354
354
|
},
|
|
355
355
|
"peerDependencies": {
|
|
356
356
|
"@angular/animations": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
|
|
357
|
-
"@angular/cdk": "19.1.0-next.
|
|
357
|
+
"@angular/cdk": "19.1.0-next.1",
|
|
358
358
|
"@angular/core": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
|
|
359
359
|
"@angular/common": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
|
|
360
360
|
"@angular/forms": "^19.0.0-0 || ^19.1.0-0 || ^19.2.0-0 || ^19.3.0-0 || ^20.0.0-0",
|
|
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
|
|
|
19
19
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
20
20
|
* the default for Angular framework dependencies in CLI projects.
|
|
21
21
|
*/
|
|
22
|
-
const fallbackMaterialVersionRange = `~19.1.0-next.
|
|
22
|
+
const fallbackMaterialVersionRange = `~19.1.0-next.1`;
|
|
23
23
|
/**
|
|
24
24
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
25
25
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -19,7 +19,7 @@ const package_config_1 = require("./package-config");
|
|
|
19
19
|
* Note that the fallback version range does not use caret, but tilde because that is
|
|
20
20
|
* the default for Angular framework dependencies in CLI projects.
|
|
21
21
|
*/
|
|
22
|
-
const fallbackMaterialVersionRange = `~19.1.0-next.
|
|
22
|
+
const fallbackMaterialVersionRange = `~19.1.0-next.1`;
|
|
23
23
|
/**
|
|
24
24
|
* Schematic factory entry-point for the `ng-add` schematic. The ng-add schematic will be
|
|
25
25
|
* automatically executed if developers run `ng add @angular/material`.
|
|
@@ -7220,6 +7220,7 @@ var require_mat_core_removal = __commonJS({
|
|
|
7220
7220
|
var postcss = tslib_1.__importStar(require_postcss());
|
|
7221
7221
|
var scss = tslib_1.__importStar(require_scss_syntax());
|
|
7222
7222
|
var schematics_1 = require("@angular/cdk/schematics");
|
|
7223
|
+
var MATERIAL_IMPORT_PATH = "@angular/material";
|
|
7223
7224
|
var MatCoreMigration2 = class extends schematics_1.Migration {
|
|
7224
7225
|
constructor() {
|
|
7225
7226
|
super(...arguments);
|
|
@@ -7229,16 +7230,24 @@ var require_mat_core_removal = __commonJS({
|
|
|
7229
7230
|
init() {
|
|
7230
7231
|
}
|
|
7231
7232
|
visitStylesheet(stylesheet) {
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7233
|
+
if (!stylesheet.content.includes(MATERIAL_IMPORT_PATH)) {
|
|
7234
|
+
return;
|
|
7235
|
+
}
|
|
7236
|
+
try {
|
|
7237
|
+
const processor = new postcss.Processor([
|
|
7238
|
+
{
|
|
7239
|
+
postcssPlugin: "mat-core-removal-v19-plugin",
|
|
7240
|
+
AtRule: {
|
|
7241
|
+
use: (node) => this._getNamespace(node),
|
|
7242
|
+
include: (node) => this._handleAtInclude(node, stylesheet.filePath)
|
|
7243
|
+
}
|
|
7238
7244
|
}
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7245
|
+
]);
|
|
7246
|
+
processor.process(stylesheet.content, { syntax: scss }).sync();
|
|
7247
|
+
} catch (e) {
|
|
7248
|
+
this.logger.warn(`Failed to migrate usages of mat.core in ${stylesheet.filePath} due to error:`);
|
|
7249
|
+
this.logger.warn(e + "");
|
|
7250
|
+
}
|
|
7242
7251
|
}
|
|
7243
7252
|
_handleAtInclude(node, filePath) {
|
|
7244
7253
|
var _a, _b;
|
|
@@ -7265,7 +7274,7 @@ var require_mat_core_removal = __commonJS({
|
|
|
7265
7274
|
return false;
|
|
7266
7275
|
}
|
|
7267
7276
|
_getNamespace(node) {
|
|
7268
|
-
if (!this._namespace && node.params.startsWith(
|
|
7277
|
+
if (!this._namespace && node.params.startsWith(MATERIAL_IMPORT_PATH, 1)) {
|
|
7269
7278
|
this._namespace = node.params.split(/\s+/)[2] || "material";
|
|
7270
7279
|
}
|
|
7271
7280
|
}
|