@angular/material 15.1.2 → 15.1.3
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/checkbox/index.d.ts +1 -0
- package/dialog/_dialog-theme.scss +2 -2
- package/esm2020/checkbox/checkbox.mjs +11 -3
- package/esm2020/core/version.mjs +1 -1
- package/esm2020/tabs/tab-group.mjs +2 -2
- package/esm2020/tabs/tab-nav-bar/tab-nav-bar.mjs +2 -2
- package/fesm2015/checkbox.mjs +10 -2
- package/fesm2015/checkbox.mjs.map +1 -1
- package/fesm2015/core.mjs +1 -1
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/tabs.mjs +4 -4
- package/fesm2015/tabs.mjs.map +1 -1
- package/fesm2020/checkbox.mjs +10 -2
- package/fesm2020/checkbox.mjs.map +1 -1
- package/fesm2020/core.mjs +1 -1
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/tabs.mjs +4 -4
- package/fesm2020/tabs.mjs.map +1 -1
- package/package.json +2 -2
- 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/ng-add/index.js +1 -1
- package/schematics/ng-add/index.mjs +1 -1
- package/schematics/ng-generate/mdc-migration/index_bundled.js +304 -94
- package/schematics/ng-generate/mdc-migration/index_bundled.js.map +4 -4
- package/schematics/ng-update/index_bundled.js +197 -52
- package/schematics/ng-update/index_bundled.js.map +3 -3
- package/tabs/_tabs-common.scss +7 -3
- package/tabs/_tabs-theme.scss +1 -3
- package/schematics/ng-generate/mdc-migration/mdc_migration_bundle_metadata.json +0 -1
- package/schematics/ng-update/ng_update_index_metadata.json +0 -1
|
@@ -48,7 +48,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
48
48
|
}
|
|
49
49
|
return to;
|
|
50
50
|
};
|
|
51
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
51
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
52
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
53
|
+
mod
|
|
54
|
+
));
|
|
52
55
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
53
56
|
var __async = (__this, __arguments, generator) => {
|
|
54
57
|
return new Promise((resolve, reject) => {
|
|
@@ -525,7 +528,9 @@ var require_stringifier = __commonJS({
|
|
|
525
528
|
}
|
|
526
529
|
stringify(node, semicolon) {
|
|
527
530
|
if (!this[node.type]) {
|
|
528
|
-
throw new Error(
|
|
531
|
+
throw new Error(
|
|
532
|
+
"Unknown AST node type " + node.type + ". Maybe you need to change PostCSS stringifier."
|
|
533
|
+
);
|
|
529
534
|
}
|
|
530
535
|
this[node.type](node, semicolon);
|
|
531
536
|
}
|
|
@@ -888,7 +893,12 @@ var require_node = __commonJS({
|
|
|
888
893
|
error(message, opts = {}) {
|
|
889
894
|
if (this.source) {
|
|
890
895
|
let { start, end } = this.rangeBy(opts);
|
|
891
|
-
return this.source.input.error(
|
|
896
|
+
return this.source.input.error(
|
|
897
|
+
message,
|
|
898
|
+
{ line: start.line, column: start.column },
|
|
899
|
+
{ line: end.line, column: end.column },
|
|
900
|
+
opts
|
|
901
|
+
);
|
|
892
902
|
}
|
|
893
903
|
return new CssSyntaxError2(message);
|
|
894
904
|
}
|
|
@@ -1137,7 +1147,10 @@ var require_node = __commonJS({
|
|
|
1137
1147
|
error2.postcssNode = this;
|
|
1138
1148
|
if (error2.stack && this.source && /\n\s{4}at /.test(error2.stack)) {
|
|
1139
1149
|
let s = this.source;
|
|
1140
|
-
error2.stack = error2.stack.replace(
|
|
1150
|
+
error2.stack = error2.stack.replace(
|
|
1151
|
+
/\n\s{4}at /,
|
|
1152
|
+
`$&${s.input.from}:${s.start.line}:${s.start.column}$&`
|
|
1153
|
+
);
|
|
1141
1154
|
}
|
|
1142
1155
|
return error2;
|
|
1143
1156
|
}
|
|
@@ -1878,7 +1891,9 @@ var require_source_map_generator = __commonJS({
|
|
|
1878
1891
|
var sourceFile = aSourceFile;
|
|
1879
1892
|
if (aSourceFile == null) {
|
|
1880
1893
|
if (aSourceMapConsumer.file == null) {
|
|
1881
|
-
throw new Error(
|
|
1894
|
+
throw new Error(
|
|
1895
|
+
`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`
|
|
1896
|
+
);
|
|
1882
1897
|
}
|
|
1883
1898
|
sourceFile = aSourceMapConsumer.file;
|
|
1884
1899
|
}
|
|
@@ -1935,7 +1950,9 @@ var require_source_map_generator = __commonJS({
|
|
|
1935
1950
|
};
|
|
1936
1951
|
SourceMapGenerator2.prototype._validateMapping = function SourceMapGenerator_validateMapping(aGenerated, aOriginal, aSource, aName) {
|
|
1937
1952
|
if (aOriginal && typeof aOriginal.line !== "number" && typeof aOriginal.column !== "number") {
|
|
1938
|
-
throw new Error(
|
|
1953
|
+
throw new Error(
|
|
1954
|
+
"original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values."
|
|
1955
|
+
);
|
|
1939
1956
|
}
|
|
1940
1957
|
if (aGenerated && "line" in aGenerated && "column" in aGenerated && aGenerated.line > 0 && aGenerated.column >= 0 && !aOriginal && !aSource && !aName) {
|
|
1941
1958
|
return;
|
|
@@ -2071,7 +2088,14 @@ var require_binary_search = __commonJS({
|
|
|
2071
2088
|
if (aHaystack.length === 0) {
|
|
2072
2089
|
return -1;
|
|
2073
2090
|
}
|
|
2074
|
-
var index2 = recursiveSearch(
|
|
2091
|
+
var index2 = recursiveSearch(
|
|
2092
|
+
-1,
|
|
2093
|
+
aHaystack.length,
|
|
2094
|
+
aNeedle,
|
|
2095
|
+
aHaystack,
|
|
2096
|
+
aCompare,
|
|
2097
|
+
aBias || exports.GREATEST_LOWER_BOUND
|
|
2098
|
+
);
|
|
2075
2099
|
if (index2 < 0) {
|
|
2076
2100
|
return -1;
|
|
2077
2101
|
}
|
|
@@ -2232,7 +2256,14 @@ var require_source_map_consumer = __commonJS({
|
|
|
2232
2256
|
return [];
|
|
2233
2257
|
}
|
|
2234
2258
|
var mappings2 = [];
|
|
2235
|
-
var index2 = this._findMapping(
|
|
2259
|
+
var index2 = this._findMapping(
|
|
2260
|
+
needle,
|
|
2261
|
+
this._originalMappings,
|
|
2262
|
+
"originalLine",
|
|
2263
|
+
"originalColumn",
|
|
2264
|
+
util.compareByOriginalPositions,
|
|
2265
|
+
binarySearch.LEAST_UPPER_BOUND
|
|
2266
|
+
);
|
|
2236
2267
|
if (index2 >= 0) {
|
|
2237
2268
|
var mapping = this._originalMappings[index2];
|
|
2238
2269
|
if (aArgs.column === void 0) {
|
|
@@ -2315,7 +2346,10 @@ var require_source_map_consumer = __commonJS({
|
|
|
2315
2346
|
var names = smc._names = ArraySet.fromArray(aSourceMap._names.toArray(), true);
|
|
2316
2347
|
var sources = smc._sources = ArraySet.fromArray(aSourceMap._sources.toArray(), true);
|
|
2317
2348
|
smc.sourceRoot = aSourceMap._sourceRoot;
|
|
2318
|
-
smc.sourcesContent = aSourceMap._generateSourcesContent(
|
|
2349
|
+
smc.sourcesContent = aSourceMap._generateSourcesContent(
|
|
2350
|
+
smc._sources.toArray(),
|
|
2351
|
+
smc.sourceRoot
|
|
2352
|
+
);
|
|
2319
2353
|
smc.file = aSourceMap._file;
|
|
2320
2354
|
smc._sourceMapURL = aSourceMapURL;
|
|
2321
2355
|
smc._absoluteSources = smc._sources.toArray().map(function(s) {
|
|
@@ -2496,7 +2530,14 @@ var require_source_map_consumer = __commonJS({
|
|
|
2496
2530
|
generatedLine: util.getArg(aArgs, "line"),
|
|
2497
2531
|
generatedColumn: util.getArg(aArgs, "column")
|
|
2498
2532
|
};
|
|
2499
|
-
var index2 = this._findMapping(
|
|
2533
|
+
var index2 = this._findMapping(
|
|
2534
|
+
needle,
|
|
2535
|
+
this._generatedMappings,
|
|
2536
|
+
"generatedLine",
|
|
2537
|
+
"generatedColumn",
|
|
2538
|
+
util.compareByGeneratedPositionsDeflated,
|
|
2539
|
+
util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
|
|
2540
|
+
);
|
|
2500
2541
|
if (index2 >= 0) {
|
|
2501
2542
|
var mapping = this._generatedMappings[index2];
|
|
2502
2543
|
if (mapping.generatedLine === needle.generatedLine) {
|
|
@@ -2575,7 +2616,14 @@ var require_source_map_consumer = __commonJS({
|
|
|
2575
2616
|
originalLine: util.getArg(aArgs, "line"),
|
|
2576
2617
|
originalColumn: util.getArg(aArgs, "column")
|
|
2577
2618
|
};
|
|
2578
|
-
var index2 = this._findMapping(
|
|
2619
|
+
var index2 = this._findMapping(
|
|
2620
|
+
needle,
|
|
2621
|
+
this._originalMappings,
|
|
2622
|
+
"originalLine",
|
|
2623
|
+
"originalColumn",
|
|
2624
|
+
util.compareByOriginalPositions,
|
|
2625
|
+
util.getArg(aArgs, "bias", SourceMapConsumer.GREATEST_LOWER_BOUND)
|
|
2626
|
+
);
|
|
2579
2627
|
if (index2 >= 0) {
|
|
2580
2628
|
var mapping = this._originalMappings[index2];
|
|
2581
2629
|
if (mapping.source === needle.source) {
|
|
@@ -2648,13 +2696,17 @@ var require_source_map_consumer = __commonJS({
|
|
|
2648
2696
|
generatedLine: util.getArg(aArgs, "line"),
|
|
2649
2697
|
generatedColumn: util.getArg(aArgs, "column")
|
|
2650
2698
|
};
|
|
2651
|
-
var sectionIndex = binarySearch.search(
|
|
2652
|
-
|
|
2653
|
-
|
|
2654
|
-
|
|
2699
|
+
var sectionIndex = binarySearch.search(
|
|
2700
|
+
needle,
|
|
2701
|
+
this._sections,
|
|
2702
|
+
function(needle2, section2) {
|
|
2703
|
+
var cmp = needle2.generatedLine - section2.generatedOffset.generatedLine;
|
|
2704
|
+
if (cmp) {
|
|
2705
|
+
return cmp;
|
|
2706
|
+
}
|
|
2707
|
+
return needle2.generatedColumn - section2.generatedOffset.generatedColumn;
|
|
2655
2708
|
}
|
|
2656
|
-
|
|
2657
|
-
});
|
|
2709
|
+
);
|
|
2658
2710
|
var section = this._sections[sectionIndex];
|
|
2659
2711
|
if (!section) {
|
|
2660
2712
|
return {
|
|
@@ -2830,7 +2882,13 @@ var require_source_node = __commonJS({
|
|
|
2830
2882
|
node.add(code);
|
|
2831
2883
|
} else {
|
|
2832
2884
|
var source = aRelativePath ? util.join(aRelativePath, mapping.source) : mapping.source;
|
|
2833
|
-
node.add(new SourceNode(
|
|
2885
|
+
node.add(new SourceNode(
|
|
2886
|
+
mapping.originalLine,
|
|
2887
|
+
mapping.originalColumn,
|
|
2888
|
+
source,
|
|
2889
|
+
code,
|
|
2890
|
+
mapping.name
|
|
2891
|
+
));
|
|
2834
2892
|
}
|
|
2835
2893
|
}
|
|
2836
2894
|
};
|
|
@@ -2844,7 +2902,9 @@ var require_source_node = __commonJS({
|
|
|
2844
2902
|
this.children.push(aChunk);
|
|
2845
2903
|
}
|
|
2846
2904
|
} else {
|
|
2847
|
-
throw new TypeError(
|
|
2905
|
+
throw new TypeError(
|
|
2906
|
+
"Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
|
|
2907
|
+
);
|
|
2848
2908
|
}
|
|
2849
2909
|
return this;
|
|
2850
2910
|
};
|
|
@@ -2856,7 +2916,9 @@ var require_source_node = __commonJS({
|
|
|
2856
2916
|
} else if (aChunk[isSourceNode] || typeof aChunk === "string") {
|
|
2857
2917
|
this.children.unshift(aChunk);
|
|
2858
2918
|
} else {
|
|
2859
|
-
throw new TypeError(
|
|
2919
|
+
throw new TypeError(
|
|
2920
|
+
"Expected a SourceNode, string, or an array of SourceNodes and strings. Got " + aChunk
|
|
2921
|
+
);
|
|
2860
2922
|
}
|
|
2861
2923
|
return this;
|
|
2862
2924
|
};
|
|
@@ -3128,7 +3190,9 @@ var require_previous_map = __commonJS({
|
|
|
3128
3190
|
if (prevPath) {
|
|
3129
3191
|
let map = this.loadFile(prevPath);
|
|
3130
3192
|
if (!map) {
|
|
3131
|
-
throw new Error(
|
|
3193
|
+
throw new Error(
|
|
3194
|
+
"Unable to load previous source map: " + prevPath.toString()
|
|
3195
|
+
);
|
|
3132
3196
|
}
|
|
3133
3197
|
return map;
|
|
3134
3198
|
}
|
|
@@ -3139,7 +3203,9 @@ var require_previous_map = __commonJS({
|
|
|
3139
3203
|
} else if (this.isMap(prev)) {
|
|
3140
3204
|
return JSON.stringify(prev);
|
|
3141
3205
|
} else {
|
|
3142
|
-
throw new Error(
|
|
3206
|
+
throw new Error(
|
|
3207
|
+
"Unsupported previous source map format: " + prev.toString()
|
|
3208
|
+
);
|
|
3143
3209
|
}
|
|
3144
3210
|
} else if (this.inline) {
|
|
3145
3211
|
return this.decodeInline(this.annotation);
|
|
@@ -3275,9 +3341,23 @@ var require_input = __commonJS({
|
|
|
3275
3341
|
}
|
|
3276
3342
|
let origin = this.origin(line, column, endLine, endColumn);
|
|
3277
3343
|
if (origin) {
|
|
3278
|
-
result = new CssSyntaxError2(
|
|
3344
|
+
result = new CssSyntaxError2(
|
|
3345
|
+
message,
|
|
3346
|
+
origin.endLine === void 0 ? origin.line : { line: origin.line, column: origin.column },
|
|
3347
|
+
origin.endLine === void 0 ? origin.column : { line: origin.endLine, column: origin.endColumn },
|
|
3348
|
+
origin.source,
|
|
3349
|
+
origin.file,
|
|
3350
|
+
opts.plugin
|
|
3351
|
+
);
|
|
3279
3352
|
} else {
|
|
3280
|
-
result = new CssSyntaxError2(
|
|
3353
|
+
result = new CssSyntaxError2(
|
|
3354
|
+
message,
|
|
3355
|
+
endLine === void 0 ? line : { line, column },
|
|
3356
|
+
endLine === void 0 ? column : { line: endLine, column: endColumn },
|
|
3357
|
+
this.css,
|
|
3358
|
+
this.file,
|
|
3359
|
+
opts.plugin
|
|
3360
|
+
);
|
|
3281
3361
|
}
|
|
3282
3362
|
result.input = { line, column, endLine, endColumn, source: this.css };
|
|
3283
3363
|
if (this.file) {
|
|
@@ -3303,7 +3383,10 @@ var require_input = __commonJS({
|
|
|
3303
3383
|
if (isAbsolute(from.source)) {
|
|
3304
3384
|
fromUrl = pathToFileURL(from.source);
|
|
3305
3385
|
} else {
|
|
3306
|
-
fromUrl = new URL(
|
|
3386
|
+
fromUrl = new URL(
|
|
3387
|
+
from.source,
|
|
3388
|
+
this.map.consumer().sourceRoot || pathToFileURL(this.map.mapFile)
|
|
3389
|
+
);
|
|
3307
3390
|
}
|
|
3308
3391
|
let result = {
|
|
3309
3392
|
url: fromUrl.toString(),
|
|
@@ -3570,7 +3653,9 @@ var require_map_generator = __commonJS({
|
|
|
3570
3653
|
if (pathToFileURL) {
|
|
3571
3654
|
return pathToFileURL(path).toString();
|
|
3572
3655
|
} else {
|
|
3573
|
-
throw new Error(
|
|
3656
|
+
throw new Error(
|
|
3657
|
+
"`map.absolute` option is not available in this PostCSS build"
|
|
3658
|
+
);
|
|
3574
3659
|
}
|
|
3575
3660
|
}
|
|
3576
3661
|
sourcePath(node) {
|
|
@@ -4000,17 +4085,21 @@ var require_container = __commonJS({
|
|
|
4000
4085
|
return node[prop];
|
|
4001
4086
|
} else if (prop === "each" || typeof prop === "string" && prop.startsWith("walk")) {
|
|
4002
4087
|
return (...args) => {
|
|
4003
|
-
return node[prop](
|
|
4004
|
-
|
|
4005
|
-
|
|
4006
|
-
|
|
4007
|
-
|
|
4008
|
-
|
|
4009
|
-
|
|
4088
|
+
return node[prop](
|
|
4089
|
+
...args.map((i) => {
|
|
4090
|
+
if (typeof i === "function") {
|
|
4091
|
+
return (child, index2) => i(child.toProxy(), index2);
|
|
4092
|
+
} else {
|
|
4093
|
+
return i;
|
|
4094
|
+
}
|
|
4095
|
+
})
|
|
4096
|
+
);
|
|
4010
4097
|
};
|
|
4011
4098
|
} else if (prop === "every" || prop === "some") {
|
|
4012
4099
|
return (cb) => {
|
|
4013
|
-
return node[prop](
|
|
4100
|
+
return node[prop](
|
|
4101
|
+
(child, ...other) => cb(child.toProxy(), ...other)
|
|
4102
|
+
);
|
|
4014
4103
|
};
|
|
4015
4104
|
} else if (prop === "root") {
|
|
4016
4105
|
return () => node.root().toProxy();
|
|
@@ -4531,7 +4620,9 @@ var require_parser = __commonJS({
|
|
|
4531
4620
|
this.semicolon = true;
|
|
4532
4621
|
tokens.pop();
|
|
4533
4622
|
}
|
|
4534
|
-
node.source.end = this.getPosition(
|
|
4623
|
+
node.source.end = this.getPosition(
|
|
4624
|
+
last[3] || last[2] || findLastWithPosition(tokens)
|
|
4625
|
+
);
|
|
4535
4626
|
while (tokens[0][0] !== "word") {
|
|
4536
4627
|
if (tokens.length === 1)
|
|
4537
4628
|
this.unknownWord(tokens);
|
|
@@ -4838,23 +4929,43 @@ var require_parser = __commonJS({
|
|
|
4838
4929
|
return false;
|
|
4839
4930
|
}
|
|
4840
4931
|
unclosedBracket(bracket) {
|
|
4841
|
-
throw this.input.error(
|
|
4932
|
+
throw this.input.error(
|
|
4933
|
+
"Unclosed bracket",
|
|
4934
|
+
{ offset: bracket[2] },
|
|
4935
|
+
{ offset: bracket[2] + 1 }
|
|
4936
|
+
);
|
|
4842
4937
|
}
|
|
4843
4938
|
unknownWord(tokens) {
|
|
4844
|
-
throw this.input.error(
|
|
4939
|
+
throw this.input.error(
|
|
4940
|
+
"Unknown word",
|
|
4941
|
+
{ offset: tokens[0][2] },
|
|
4942
|
+
{ offset: tokens[0][2] + tokens[0][1].length }
|
|
4943
|
+
);
|
|
4845
4944
|
}
|
|
4846
4945
|
unexpectedClose(token) {
|
|
4847
|
-
throw this.input.error(
|
|
4946
|
+
throw this.input.error(
|
|
4947
|
+
"Unexpected }",
|
|
4948
|
+
{ offset: token[2] },
|
|
4949
|
+
{ offset: token[2] + 1 }
|
|
4950
|
+
);
|
|
4848
4951
|
}
|
|
4849
4952
|
unclosedBlock() {
|
|
4850
4953
|
let pos = this.current.source.start;
|
|
4851
4954
|
throw this.input.error("Unclosed block", pos.line, pos.column);
|
|
4852
4955
|
}
|
|
4853
4956
|
doubleColon(token) {
|
|
4854
|
-
throw this.input.error(
|
|
4957
|
+
throw this.input.error(
|
|
4958
|
+
"Double colon",
|
|
4959
|
+
{ offset: token[2] },
|
|
4960
|
+
{ offset: token[2] + token[1].length }
|
|
4961
|
+
);
|
|
4855
4962
|
}
|
|
4856
4963
|
unnamedAtrule(node, token) {
|
|
4857
|
-
throw this.input.error(
|
|
4964
|
+
throw this.input.error(
|
|
4965
|
+
"At-rule without name",
|
|
4966
|
+
{ offset: token[2] },
|
|
4967
|
+
{ offset: token[2] + token[1].length }
|
|
4968
|
+
);
|
|
4858
4969
|
}
|
|
4859
4970
|
precheckMissedSemicolon() {
|
|
4860
4971
|
}
|
|
@@ -4872,7 +4983,10 @@ var require_parser = __commonJS({
|
|
|
4872
4983
|
break;
|
|
4873
4984
|
}
|
|
4874
4985
|
}
|
|
4875
|
-
throw this.input.error(
|
|
4986
|
+
throw this.input.error(
|
|
4987
|
+
"Missed semicolon",
|
|
4988
|
+
token[0] === "word" ? token[3] + 1 : token[2]
|
|
4989
|
+
);
|
|
4876
4990
|
}
|
|
4877
4991
|
};
|
|
4878
4992
|
module2.exports = Parser2;
|
|
@@ -5087,7 +5201,9 @@ var require_lazy_result = __commonJS({
|
|
|
5087
5201
|
then(onFulfilled, onRejected) {
|
|
5088
5202
|
if (process.env.NODE_ENV !== "production") {
|
|
5089
5203
|
if (!("from" in this.opts)) {
|
|
5090
|
-
warnOnce(
|
|
5204
|
+
warnOnce(
|
|
5205
|
+
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
5206
|
+
);
|
|
5091
5207
|
}
|
|
5092
5208
|
}
|
|
5093
5209
|
return this.async().then(onFulfilled, onRejected);
|
|
@@ -5205,7 +5321,9 @@ var require_lazy_result = __commonJS({
|
|
|
5205
5321
|
try {
|
|
5206
5322
|
if (typeof plugin2 === "object" && plugin2.Once) {
|
|
5207
5323
|
if (this.result.root.type === "document") {
|
|
5208
|
-
let roots = this.result.root.nodes.map(
|
|
5324
|
+
let roots = this.result.root.nodes.map(
|
|
5325
|
+
(root2) => plugin2.Once(root2, this.helpers)
|
|
5326
|
+
);
|
|
5209
5327
|
if (isPromise(roots[0])) {
|
|
5210
5328
|
return Promise.all(roots);
|
|
5211
5329
|
}
|
|
@@ -5239,7 +5357,9 @@ var require_lazy_result = __commonJS({
|
|
|
5239
5357
|
let a = pluginVer.split(".");
|
|
5240
5358
|
let b = runtimeVer.split(".");
|
|
5241
5359
|
if (a[0] !== b[0] || parseInt(a[1]) > parseInt(b[1])) {
|
|
5242
|
-
console.error(
|
|
5360
|
+
console.error(
|
|
5361
|
+
"Unknown error from PostCSS plugin. Your current PostCSS version is " + runtimeVer + ", but " + pluginName + " uses " + pluginVer + ". Perhaps this is the source of the error below."
|
|
5362
|
+
);
|
|
5243
5363
|
}
|
|
5244
5364
|
}
|
|
5245
5365
|
}
|
|
@@ -5286,7 +5406,9 @@ var require_lazy_result = __commonJS({
|
|
|
5286
5406
|
this.result.lastPlugin = plugin2;
|
|
5287
5407
|
try {
|
|
5288
5408
|
if (root2.type === "document") {
|
|
5289
|
-
let roots = root2.nodes.map(
|
|
5409
|
+
let roots = root2.nodes.map(
|
|
5410
|
+
(subRoot) => visitor(subRoot, this.helpers)
|
|
5411
|
+
);
|
|
5290
5412
|
yield Promise.all(roots);
|
|
5291
5413
|
} else {
|
|
5292
5414
|
yield visitor(root2, this.helpers);
|
|
@@ -5312,7 +5434,9 @@ var require_lazy_result = __commonJS({
|
|
|
5312
5434
|
if (typeof plugin2 === "object") {
|
|
5313
5435
|
for (let event in plugin2) {
|
|
5314
5436
|
if (!PLUGIN_PROPS[event] && /^[A-Z]/.test(event)) {
|
|
5315
|
-
throw new Error(
|
|
5437
|
+
throw new Error(
|
|
5438
|
+
`Unknown event ${event} in ${plugin2.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`
|
|
5439
|
+
);
|
|
5316
5440
|
}
|
|
5317
5441
|
if (!NOT_VISITORS[event]) {
|
|
5318
5442
|
if (typeof plugin2[event] === "object") {
|
|
@@ -5320,7 +5444,11 @@ var require_lazy_result = __commonJS({
|
|
|
5320
5444
|
if (filter === "*") {
|
|
5321
5445
|
add(plugin2, event, plugin2[event][filter]);
|
|
5322
5446
|
} else {
|
|
5323
|
-
add(
|
|
5447
|
+
add(
|
|
5448
|
+
plugin2,
|
|
5449
|
+
event + "-" + filter.toLowerCase(),
|
|
5450
|
+
plugin2[event][filter]
|
|
5451
|
+
);
|
|
5324
5452
|
}
|
|
5325
5453
|
}
|
|
5326
5454
|
} else if (typeof plugin2[event] === "function") {
|
|
@@ -5481,7 +5609,9 @@ var require_no_work_result = __commonJS({
|
|
|
5481
5609
|
then(onFulfilled, onRejected) {
|
|
5482
5610
|
if (process.env.NODE_ENV !== "production") {
|
|
5483
5611
|
if (!("from" in this._opts)) {
|
|
5484
|
-
warnOnce(
|
|
5612
|
+
warnOnce(
|
|
5613
|
+
"Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning."
|
|
5614
|
+
);
|
|
5485
5615
|
}
|
|
5486
5616
|
}
|
|
5487
5617
|
return this.async().then(onFulfilled, onRejected);
|
|
@@ -5548,7 +5678,9 @@ var require_processor = __commonJS({
|
|
|
5548
5678
|
normalized.push(i);
|
|
5549
5679
|
} else if (typeof i === "object" && (i.parse || i.stringify)) {
|
|
5550
5680
|
if (process.env.NODE_ENV !== "production") {
|
|
5551
|
-
throw new Error(
|
|
5681
|
+
throw new Error(
|
|
5682
|
+
"PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation."
|
|
5683
|
+
);
|
|
5552
5684
|
}
|
|
5553
5685
|
} else {
|
|
5554
5686
|
throw new Error(i + " is not a PostCSS plugin");
|
|
@@ -5653,9 +5785,13 @@ var require_postcss = __commonJS({
|
|
|
5653
5785
|
function creator(...args) {
|
|
5654
5786
|
if (console && console.warn && !warningPrinted) {
|
|
5655
5787
|
warningPrinted = true;
|
|
5656
|
-
console.warn(
|
|
5788
|
+
console.warn(
|
|
5789
|
+
name + ": postcss.plugin was deprecated. Migration guide:\nhttps://evilmartians.com/chronicles/postcss-8-plugin-migration"
|
|
5790
|
+
);
|
|
5657
5791
|
if (process.env.LANG && process.env.LANG.startsWith("cn")) {
|
|
5658
|
-
console.warn(
|
|
5792
|
+
console.warn(
|
|
5793
|
+
name + ": \u91CC\u9762 postcss.plugin \u88AB\u5F03\u7528. \u8FC1\u79FB\u6307\u5357:\nhttps://www.w3ctech.com/topic/2226"
|
|
5794
|
+
);
|
|
5659
5795
|
}
|
|
5660
5796
|
}
|
|
5661
5797
|
let transformer = initializer(...args);
|
|
@@ -6447,7 +6583,10 @@ var TemplateMigrator = class {
|
|
|
6447
6583
|
};
|
|
6448
6584
|
|
|
6449
6585
|
// node_modules/@angular/compiler/fesm2015/compiler.mjs
|
|
6450
|
-
var _SELECTOR_REGEXP = new RegExp(
|
|
6586
|
+
var _SELECTOR_REGEXP = new RegExp(
|
|
6587
|
+
`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,
|
|
6588
|
+
"g"
|
|
6589
|
+
);
|
|
6451
6590
|
var CssSelector = class {
|
|
6452
6591
|
constructor() {
|
|
6453
6592
|
this.element = null;
|
|
@@ -7844,9 +7983,12 @@ var ConstantPool = class {
|
|
|
7844
7983
|
let definition;
|
|
7845
7984
|
let usage;
|
|
7846
7985
|
if (this.isClosureCompilerEnabled && isLongStringLiteral(literal2)) {
|
|
7847
|
-
definition = variable(name).set(new FunctionExpr(
|
|
7848
|
-
|
|
7849
|
-
|
|
7986
|
+
definition = variable(name).set(new FunctionExpr(
|
|
7987
|
+
[],
|
|
7988
|
+
[
|
|
7989
|
+
new ReturnStatement(literal2)
|
|
7990
|
+
]
|
|
7991
|
+
));
|
|
7850
7992
|
usage = variable(name).callFn([]);
|
|
7851
7993
|
} else {
|
|
7852
7994
|
definition = variable(name).set(literal2);
|
|
@@ -8872,7 +9014,14 @@ function jitOnlyGuardedExpression(expr) {
|
|
|
8872
9014
|
function guardedExpression(guard, expr) {
|
|
8873
9015
|
const guardExpr = new ExternalExpr({ name: guard, moduleName: null });
|
|
8874
9016
|
const guardNotDefined = new BinaryOperatorExpr(BinaryOperator.Identical, new TypeofExpr(guardExpr), literal("undefined"));
|
|
8875
|
-
const guardUndefinedOrTrue = new BinaryOperatorExpr(
|
|
9017
|
+
const guardUndefinedOrTrue = new BinaryOperatorExpr(
|
|
9018
|
+
BinaryOperator.Or,
|
|
9019
|
+
guardNotDefined,
|
|
9020
|
+
guardExpr,
|
|
9021
|
+
void 0,
|
|
9022
|
+
void 0,
|
|
9023
|
+
true
|
|
9024
|
+
);
|
|
8876
9025
|
return new BinaryOperatorExpr(BinaryOperator.And, guardUndefinedOrTrue, expr);
|
|
8877
9026
|
}
|
|
8878
9027
|
function wrapReference(value) {
|
|
@@ -10299,10 +10448,19 @@ function generateSetNgModuleScopeCall(meta) {
|
|
|
10299
10448
|
if (Object.keys(scopeMap.values).length === 0) {
|
|
10300
10449
|
return null;
|
|
10301
10450
|
}
|
|
10302
|
-
const fnCall = new InvokeFunctionExpr(
|
|
10451
|
+
const fnCall = new InvokeFunctionExpr(
|
|
10452
|
+
importExpr(Identifiers.setNgModuleScope),
|
|
10453
|
+
[moduleType, scopeMap.toLiteralMap()]
|
|
10454
|
+
);
|
|
10303
10455
|
const guardedCall = jitOnlyGuardedExpression(fnCall);
|
|
10304
|
-
const iife = new FunctionExpr(
|
|
10305
|
-
|
|
10456
|
+
const iife = new FunctionExpr(
|
|
10457
|
+
[],
|
|
10458
|
+
[guardedCall.toStmt()]
|
|
10459
|
+
);
|
|
10460
|
+
const iifeCall = new InvokeFunctionExpr(
|
|
10461
|
+
iife,
|
|
10462
|
+
[]
|
|
10463
|
+
);
|
|
10306
10464
|
return iifeCall.toStmt();
|
|
10307
10465
|
}
|
|
10308
10466
|
function tupleTypeOf(exp) {
|
|
@@ -17765,7 +17923,17 @@ var BindingParser = class {
|
|
|
17765
17923
|
for (const propName of Object.keys(properties)) {
|
|
17766
17924
|
const expression = properties[propName];
|
|
17767
17925
|
if (typeof expression === "string") {
|
|
17768
|
-
this.parsePropertyBinding(
|
|
17926
|
+
this.parsePropertyBinding(
|
|
17927
|
+
propName,
|
|
17928
|
+
expression,
|
|
17929
|
+
true,
|
|
17930
|
+
sourceSpan,
|
|
17931
|
+
sourceSpan.start.offset,
|
|
17932
|
+
void 0,
|
|
17933
|
+
[],
|
|
17934
|
+
boundProps,
|
|
17935
|
+
sourceSpan
|
|
17936
|
+
);
|
|
17769
17937
|
} else {
|
|
17770
17938
|
this._reportError(`Value of the host property binding "${propName}" needs to be a string representing an expression but got "${expression}" (${typeof expression})`, sourceSpan);
|
|
17771
17939
|
}
|
|
@@ -18425,7 +18593,17 @@ var NonBindableVisitor = class {
|
|
|
18425
18593
|
return null;
|
|
18426
18594
|
}
|
|
18427
18595
|
const children = visitAll(this, ast.children, null);
|
|
18428
|
-
return new Element$1(
|
|
18596
|
+
return new Element$1(
|
|
18597
|
+
ast.name,
|
|
18598
|
+
visitAll(this, ast.attrs),
|
|
18599
|
+
[],
|
|
18600
|
+
[],
|
|
18601
|
+
children,
|
|
18602
|
+
[],
|
|
18603
|
+
ast.sourceSpan,
|
|
18604
|
+
ast.startSourceSpan,
|
|
18605
|
+
ast.endSourceSpan
|
|
18606
|
+
);
|
|
18429
18607
|
}
|
|
18430
18608
|
visitComment(comment2) {
|
|
18431
18609
|
return null;
|
|
@@ -19192,7 +19370,10 @@ function prepareEventListenerParameters(eventAst, handlerName = null, scope = nu
|
|
|
19192
19370
|
const handlerFn = fn(fnArgs, statements, INFERRED_TYPE, null, fnName);
|
|
19193
19371
|
const params = [literal(eventName), handlerFn];
|
|
19194
19372
|
if (target) {
|
|
19195
|
-
params.push(
|
|
19373
|
+
params.push(
|
|
19374
|
+
literal(false),
|
|
19375
|
+
importExpr(GLOBAL_TARGET_RESOLVERS.get(target))
|
|
19376
|
+
);
|
|
19196
19377
|
}
|
|
19197
19378
|
return params;
|
|
19198
19379
|
}
|
|
@@ -19272,11 +19453,17 @@ var TemplateDefinitionBuilder = class {
|
|
|
19272
19453
|
const updateVariables = this._bindingScope.variableDeclarations().concat(this._tempVariables);
|
|
19273
19454
|
const creationBlock = creationStatements.length > 0 ? [renderFlagCheckIfStmt(1, creationVariables.concat(creationStatements))] : [];
|
|
19274
19455
|
const updateBlock = updateStatements.length > 0 ? [renderFlagCheckIfStmt(2, updateVariables.concat(updateStatements))] : [];
|
|
19275
|
-
return fn(
|
|
19276
|
-
|
|
19277
|
-
|
|
19278
|
-
|
|
19279
|
-
|
|
19456
|
+
return fn(
|
|
19457
|
+
[new FnParam(RENDER_FLAGS, NUMBER_TYPE), new FnParam(CONTEXT_NAME, null)],
|
|
19458
|
+
[
|
|
19459
|
+
...this._prefixCode,
|
|
19460
|
+
...creationBlock,
|
|
19461
|
+
...updateBlock
|
|
19462
|
+
],
|
|
19463
|
+
INFERRED_TYPE,
|
|
19464
|
+
null,
|
|
19465
|
+
this.templateName
|
|
19466
|
+
);
|
|
19280
19467
|
}
|
|
19281
19468
|
getLocal(name) {
|
|
19282
19469
|
return this._bindingScope.get(name);
|
|
@@ -20499,7 +20686,10 @@ function compileComponentFromMetadata(meta, constantPool, bindingParser) {
|
|
|
20499
20686
|
if (firstSelector) {
|
|
20500
20687
|
const selectorAttributes = firstSelector.getAttrs();
|
|
20501
20688
|
if (selectorAttributes.length) {
|
|
20502
|
-
definitionMap.set("attrs", constantPool.getConstLiteral(
|
|
20689
|
+
definitionMap.set("attrs", constantPool.getConstLiteral(
|
|
20690
|
+
literalArr(selectorAttributes.map((value) => value != null ? literal(value) : literal(void 0))),
|
|
20691
|
+
true
|
|
20692
|
+
));
|
|
20503
20693
|
}
|
|
20504
20694
|
}
|
|
20505
20695
|
const templateTypeName = meta.name;
|
|
@@ -20706,7 +20896,12 @@ function createHostBindingsFunction(hostBindingsMetadata, typeSourceSpan, bindin
|
|
|
20706
20896
|
totalHostVarsCount += numSlots;
|
|
20707
20897
|
return originalVarsCount;
|
|
20708
20898
|
};
|
|
20709
|
-
valueConverter = new ValueConverter(
|
|
20899
|
+
valueConverter = new ValueConverter(
|
|
20900
|
+
constantPool,
|
|
20901
|
+
() => error("Unexpected node"),
|
|
20902
|
+
hostVarsCountFn,
|
|
20903
|
+
() => error("Unexpected pipe")
|
|
20904
|
+
);
|
|
20710
20905
|
}
|
|
20711
20906
|
return valueConverter;
|
|
20712
20907
|
};
|
|
@@ -20964,34 +21159,40 @@ var CompilerFacadeImpl = class {
|
|
|
20964
21159
|
}
|
|
20965
21160
|
compileInjectable(angularCoreEnv, sourceMapUrl, facade) {
|
|
20966
21161
|
var _a;
|
|
20967
|
-
const { expression, statements } = compileInjectable(
|
|
20968
|
-
|
|
20969
|
-
|
|
20970
|
-
|
|
20971
|
-
|
|
20972
|
-
|
|
20973
|
-
|
|
20974
|
-
|
|
20975
|
-
|
|
20976
|
-
|
|
20977
|
-
|
|
20978
|
-
|
|
21162
|
+
const { expression, statements } = compileInjectable(
|
|
21163
|
+
{
|
|
21164
|
+
name: facade.name,
|
|
21165
|
+
type: wrapReference(facade.type),
|
|
21166
|
+
internalType: new WrappedNodeExpr(facade.type),
|
|
21167
|
+
typeArgumentCount: facade.typeArgumentCount,
|
|
21168
|
+
providedIn: computeProvidedIn(facade.providedIn),
|
|
21169
|
+
useClass: convertToProviderExpression(facade, "useClass"),
|
|
21170
|
+
useFactory: wrapExpression(facade, "useFactory"),
|
|
21171
|
+
useValue: convertToProviderExpression(facade, "useValue"),
|
|
21172
|
+
useExisting: convertToProviderExpression(facade, "useExisting"),
|
|
21173
|
+
deps: (_a = facade.deps) === null || _a === void 0 ? void 0 : _a.map(convertR3DependencyMetadata)
|
|
21174
|
+
},
|
|
21175
|
+
true
|
|
21176
|
+
);
|
|
20979
21177
|
return this.jitExpression(expression, angularCoreEnv, sourceMapUrl, statements);
|
|
20980
21178
|
}
|
|
20981
21179
|
compileInjectableDeclaration(angularCoreEnv, sourceMapUrl, facade) {
|
|
20982
21180
|
var _a;
|
|
20983
|
-
const { expression, statements } = compileInjectable(
|
|
20984
|
-
|
|
20985
|
-
|
|
20986
|
-
|
|
20987
|
-
|
|
20988
|
-
|
|
20989
|
-
|
|
20990
|
-
|
|
20991
|
-
|
|
20992
|
-
|
|
20993
|
-
|
|
20994
|
-
|
|
21181
|
+
const { expression, statements } = compileInjectable(
|
|
21182
|
+
{
|
|
21183
|
+
name: facade.type.name,
|
|
21184
|
+
type: wrapReference(facade.type),
|
|
21185
|
+
internalType: new WrappedNodeExpr(facade.type),
|
|
21186
|
+
typeArgumentCount: 0,
|
|
21187
|
+
providedIn: computeProvidedIn(facade.providedIn),
|
|
21188
|
+
useClass: convertToProviderExpression(facade, "useClass"),
|
|
21189
|
+
useFactory: wrapExpression(facade, "useFactory"),
|
|
21190
|
+
useValue: convertToProviderExpression(facade, "useValue"),
|
|
21191
|
+
useExisting: convertToProviderExpression(facade, "useExisting"),
|
|
21192
|
+
deps: (_a = facade.deps) === null || _a === void 0 ? void 0 : _a.map(convertR3DeclareDependencyMetadata)
|
|
21193
|
+
},
|
|
21194
|
+
true
|
|
21195
|
+
);
|
|
20995
21196
|
return this.jitExpression(expression, angularCoreEnv, sourceMapUrl, statements);
|
|
20996
21197
|
}
|
|
20997
21198
|
compileInjector(angularCoreEnv, sourceMapUrl, facade) {
|
|
@@ -23167,11 +23368,20 @@ var RuntimeCodeMigration = class extends import_schematics3.Migration {
|
|
|
23167
23368
|
return ts.isImportTypeNode(node) && ts.isLiteralTypeNode(node.argument) && ts.isStringLiteralLike(node.argument.literal);
|
|
23168
23369
|
}
|
|
23169
23370
|
_printAndUpdateNode(sourceFile, oldNode, newNode) {
|
|
23371
|
+
var _a;
|
|
23170
23372
|
const filePath = this.fileSystem.resolve(sourceFile.fileName);
|
|
23171
23373
|
const newNodeText = typeof newNode === "string" ? newNode : this._printer.printNode(ts.EmitHint.Unspecified, newNode, sourceFile);
|
|
23172
23374
|
const start = oldNode.getStart();
|
|
23173
23375
|
const width = oldNode.getWidth();
|
|
23174
|
-
this.
|
|
23376
|
+
(_a = this._updates) != null ? _a : this._updates = [];
|
|
23377
|
+
this._updates.push({
|
|
23378
|
+
offset: start,
|
|
23379
|
+
update: () => this.fileSystem.edit(filePath).remove(start, width).insertRight(start, newNodeText)
|
|
23380
|
+
});
|
|
23381
|
+
}
|
|
23382
|
+
postAnalysis() {
|
|
23383
|
+
var _a;
|
|
23384
|
+
(_a = this._updates) == null ? void 0 : _a.sort((a, b) => b.offset - a.offset).forEach(({ update }) => update());
|
|
23175
23385
|
}
|
|
23176
23386
|
_isReferenceToImport(node, importSpecifier) {
|
|
23177
23387
|
var _a, _b, _c, _d;
|