@angular/core 15.2.3 → 15.2.4
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/esm2020/src/change_detection/change_detector_ref.mjs +4 -4
- package/esm2020/src/render3/node_selector_matcher.mjs +17 -5
- package/esm2020/src/render3/view_ref.mjs +1 -1
- package/esm2020/src/version.mjs +1 -1
- package/esm2020/testing/src/logger.mjs +3 -3
- package/esm2020/testing/src/ng_zone_mock.mjs +3 -3
- package/esm2020/testing/src/test_bed_compiler.mjs +12 -7
- package/fesm2015/core.mjs +18 -6
- package/fesm2015/core.mjs.map +1 -1
- package/fesm2015/testing.mjs +29 -12
- package/fesm2015/testing.mjs.map +1 -1
- package/fesm2020/core.mjs +18 -6
- package/fesm2020/core.mjs.map +1 -1
- package/fesm2020/testing.mjs +29 -12
- package/fesm2020/testing.mjs.map +1 -1
- package/index.d.ts +5 -5
- package/package.json +1 -1
- package/schematics/migrations/relative-link-resolution/bundle.js +7 -7
- package/schematics/migrations/router-link-with-href/bundle.js +10 -10
- package/schematics/ng-generate/standalone-migration/bundle.js +323 -323
- package/schematics/ng-generate/standalone-migration/bundle.js.map +1 -1
- package/testing/index.d.ts +1 -1
package/fesm2020/core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v15.2.
|
|
2
|
+
* @license Angular v15.2.4
|
|
3
3
|
* (c) 2010-2022 Google LLC. https://angular.io/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -8347,7 +8347,7 @@ class Version {
|
|
|
8347
8347
|
/**
|
|
8348
8348
|
* @publicApi
|
|
8349
8349
|
*/
|
|
8350
|
-
const VERSION = new Version('15.2.
|
|
8350
|
+
const VERSION = new Version('15.2.4');
|
|
8351
8351
|
|
|
8352
8352
|
// This default value is when checking the hierarchy for a token.
|
|
8353
8353
|
//
|
|
@@ -8629,12 +8629,19 @@ function isCssClassMatching(attrs, cssClassToMatch, isProjectionMode) {
|
|
|
8629
8629
|
ngDevMode &&
|
|
8630
8630
|
assertEqual(cssClassToMatch, cssClassToMatch.toLowerCase(), 'Class name expected to be lowercase.');
|
|
8631
8631
|
let i = 0;
|
|
8632
|
+
// Indicates whether we are processing value from the implicit
|
|
8633
|
+
// attribute section (i.e. before the first marker in the array).
|
|
8634
|
+
let isImplicitAttrsSection = true;
|
|
8632
8635
|
while (i < attrs.length) {
|
|
8633
8636
|
let item = attrs[i++];
|
|
8634
|
-
if (
|
|
8635
|
-
|
|
8636
|
-
if (
|
|
8637
|
-
|
|
8637
|
+
if (typeof item === 'string' && isImplicitAttrsSection) {
|
|
8638
|
+
const value = attrs[i++];
|
|
8639
|
+
if (isProjectionMode && item === 'class') {
|
|
8640
|
+
// We found a `class` attribute in the implicit attribute section,
|
|
8641
|
+
// check if it matches the value of the `cssClassToMatch` argument.
|
|
8642
|
+
if (classIndexOf(value.toLowerCase(), cssClassToMatch, 0) !== -1) {
|
|
8643
|
+
return true;
|
|
8644
|
+
}
|
|
8638
8645
|
}
|
|
8639
8646
|
}
|
|
8640
8647
|
else if (item === 1 /* AttributeMarker.Classes */) {
|
|
@@ -8646,6 +8653,11 @@ function isCssClassMatching(attrs, cssClassToMatch, isProjectionMode) {
|
|
|
8646
8653
|
}
|
|
8647
8654
|
return false;
|
|
8648
8655
|
}
|
|
8656
|
+
else if (typeof item === 'number') {
|
|
8657
|
+
// We've came across a first marker, which indicates
|
|
8658
|
+
// that the implicit attribute section is over.
|
|
8659
|
+
isImplicitAttrsSection = false;
|
|
8660
|
+
}
|
|
8649
8661
|
}
|
|
8650
8662
|
return false;
|
|
8651
8663
|
}
|