@angular/core 21.1.0 → 21.1.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/_attribute-chunk.mjs +1 -1
- package/fesm2022/_debug_node-chunk.mjs +12 -8
- package/fesm2022/_debug_node-chunk.mjs.map +1 -1
- package/fesm2022/_effect-chunk.mjs +1 -1
- package/fesm2022/_linked_signal-chunk.mjs +1 -1
- package/fesm2022/_not_found-chunk.mjs +1 -1
- package/fesm2022/_resource-chunk.mjs +1 -1
- package/fesm2022/_untracked-chunk.mjs +2 -2
- package/fesm2022/_untracked-chunk.mjs.map +1 -1
- package/fesm2022/_weak_ref-chunk.mjs +1 -1
- package/fesm2022/core.mjs +1 -1
- package/fesm2022/primitives-di.mjs +1 -1
- package/fesm2022/primitives-event-dispatch.mjs +1 -1
- package/fesm2022/primitives-signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/package.json +2 -2
- package/schematics/bundles/add-bootstrap-context-to-server-main.cjs +1 -1
- package/schematics/bundles/application-config-core.cjs +1 -1
- package/schematics/bundles/apply_import_manager-CxA_YYgB.cjs +1 -1
- package/schematics/bundles/bootstrap-options-migration.cjs +1 -1
- package/schematics/bundles/cleanup-unused-imports.cjs +1 -1
- package/schematics/bundles/common-to-standalone-migration.cjs +1 -1
- package/schematics/bundles/compiler_host-CY14HvaP.cjs +1 -1
- package/schematics/bundles/control-flow-migration.cjs +1 -1
- package/schematics/bundles/imports-CVmcbVA9.cjs +1 -1
- package/schematics/bundles/index-BtLcQH8g.cjs +1 -1
- package/schematics/bundles/inject-migration.cjs +1 -1
- package/schematics/bundles/leading_space-BTPRV0wu.cjs +1 -1
- package/schematics/bundles/migrate_ts_type_references-CV7qdt5t.cjs +1 -1
- package/schematics/bundles/ng_component_template-BOuKAnQd.cjs +1 -1
- package/schematics/bundles/ng_decorators-DYy6II6x.cjs +1 -1
- package/schematics/bundles/ngclass-to-class-migration.cjs +1 -1
- package/schematics/bundles/ngstyle-to-style-migration.cjs +1 -1
- package/schematics/bundles/nodes-ZSQ7WZRB.cjs +1 -1
- package/schematics/bundles/output-migration.cjs +1 -1
- package/schematics/bundles/parse_html-C8eKA9px.cjs +1 -1
- package/schematics/bundles/project_paths-D2V-Uh2L.cjs +1 -1
- package/schematics/bundles/project_tsconfig_paths-DkkMibv-.cjs +1 -1
- package/schematics/bundles/property_name-BCpALNpZ.cjs +1 -1
- package/schematics/bundles/route-lazy-loading.cjs +1 -1
- package/schematics/bundles/router-current-navigation.cjs +1 -1
- package/schematics/bundles/router-last-successful-navigation.cjs +1 -1
- package/schematics/bundles/router-testing-module-migration.cjs +1 -1
- package/schematics/bundles/self-closing-tags-migration.cjs +1 -1
- package/schematics/bundles/signal-input-migration.cjs +1 -1
- package/schematics/bundles/signal-queries-migration.cjs +1 -1
- package/schematics/bundles/signals.cjs +1 -1
- package/schematics/bundles/standalone-migration.cjs +1 -1
- package/schematics/bundles/symbol-DZeHSR-V.cjs +1 -1
- package/types/_api-chunk.d.ts +1 -1
- package/types/_chrome_dev_tools_performance-chunk.d.ts +1 -1
- package/types/_discovery-chunk.d.ts +1 -1
- package/types/_effect-chunk.d.ts +1 -1
- package/types/_event_dispatcher-chunk.d.ts +1 -1
- package/types/_formatter-chunk.d.ts +1 -1
- package/types/_weak_ref-chunk.d.ts +1 -1
- package/types/core.d.ts +9 -5
- package/types/primitives-di.d.ts +1 -1
- package/types/primitives-event-dispatch.d.ts +1 -1
- package/types/primitives-signals.d.ts +1 -1
- package/types/rxjs-interop.d.ts +1 -1
- package/types/testing.d.ts +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license Angular v21.1.
|
|
2
|
+
* @license Angular v21.1.1
|
|
3
3
|
* (c) 2010-2026 Google LLC. https://angular.dev/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -8313,7 +8313,7 @@ class ComponentFactory extends ComponentFactory$1 {
|
|
|
8313
8313
|
}
|
|
8314
8314
|
}
|
|
8315
8315
|
function createRootTView(rootSelectorOrNode, componentDef, componentBindings, directives) {
|
|
8316
|
-
const tAttributes = rootSelectorOrNode ? ['ng-version', '21.1.
|
|
8316
|
+
const tAttributes = rootSelectorOrNode ? ['ng-version', '21.1.1'] : extractAttrsAndClassesFromSelector(componentDef.selectors[0]);
|
|
8317
8317
|
let creationBindings = null;
|
|
8318
8318
|
let updateBindings = null;
|
|
8319
8319
|
let varsToAllocate = 0;
|
|
@@ -13292,7 +13292,7 @@ function ɵɵcontrolCreate() {
|
|
|
13292
13292
|
} else if (tNode.flags & 8192) {
|
|
13293
13293
|
initializeNativeControl(lView, tNode, fieldDirective);
|
|
13294
13294
|
}
|
|
13295
|
-
fieldDirective
|
|
13295
|
+
fieldDirective.registerAsBinding(getCustomControl(tNode, lView));
|
|
13296
13296
|
}
|
|
13297
13297
|
function ɵɵcontrol(value, name, sanitizer) {
|
|
13298
13298
|
const lView = getLView();
|
|
@@ -13393,7 +13393,11 @@ function isNativeControlFirstCreatePass(tNode) {
|
|
|
13393
13393
|
}
|
|
13394
13394
|
function getFieldDirective(tNode, lView) {
|
|
13395
13395
|
const index = tNode.fieldIndex;
|
|
13396
|
-
return index === -1 ?
|
|
13396
|
+
return index === -1 ? undefined : lView[index];
|
|
13397
|
+
}
|
|
13398
|
+
function getCustomControl(tNode, lView) {
|
|
13399
|
+
const index = tNode.customControlIndex;
|
|
13400
|
+
return index === -1 ? undefined : lView[index];
|
|
13397
13401
|
}
|
|
13398
13402
|
function hasModelInput(directiveDef, name) {
|
|
13399
13403
|
return hasInput(directiveDef, name) && hasOutput(directiveDef, name + 'Change');
|
|
@@ -13414,14 +13418,11 @@ function initializeCustomControl(lView, tNode, fieldDirective, modelName) {
|
|
|
13414
13418
|
if (hasOutput(directiveDef, touchedOutputName)) {
|
|
13415
13419
|
listenToOutput(tNode, lView, directiveIndex, touchedOutputName, touchedOutputName, wrapListener(tNode, lView, () => fieldDirective.state().markAsTouched()));
|
|
13416
13420
|
}
|
|
13417
|
-
const customControl = lView[directiveIndex];
|
|
13418
|
-
fieldDirective.focus = () => customControl.focus ? customControl.focus() : fieldDirective.element.focus();
|
|
13419
13421
|
}
|
|
13420
13422
|
function initializeInteropControl(fieldDirective) {
|
|
13421
13423
|
const interopControl = fieldDirective.ɵinteropControl;
|
|
13422
13424
|
interopControl.registerOnChange(value => fieldDirective.state().setControlValue(value));
|
|
13423
13425
|
interopControl.registerOnTouched(() => fieldDirective.state().markAsTouched());
|
|
13424
|
-
fieldDirective.focus = () => fieldDirective.element.focus();
|
|
13425
13426
|
}
|
|
13426
13427
|
function isNativeControl(tNode) {
|
|
13427
13428
|
if (tNode.type !== 2) {
|
|
@@ -13447,7 +13448,6 @@ function initializeNativeControl(lView, tNode, fieldDirective) {
|
|
|
13447
13448
|
const observer = observeSelectMutations(element, fieldDirective);
|
|
13448
13449
|
storeCleanupWithContext(tView, lView, observer, observer.disconnect);
|
|
13449
13450
|
}
|
|
13450
|
-
fieldDirective.focus = () => element.focus();
|
|
13451
13451
|
}
|
|
13452
13452
|
function observeSelectMutations(select, controlDirective) {
|
|
13453
13453
|
const observer = new MutationObserver(mutations => {
|
|
@@ -16257,6 +16257,10 @@ function toStylingKeyValueArray(keyValueArraySet, stringParser, value) {
|
|
|
16257
16257
|
for (let i = 0; i < unwrappedValue.length; i++) {
|
|
16258
16258
|
keyValueArraySet(styleKeyValueArray, unwrappedValue[i], true);
|
|
16259
16259
|
}
|
|
16260
|
+
} else if (unwrappedValue instanceof Set) {
|
|
16261
|
+
for (const current of unwrappedValue) {
|
|
16262
|
+
keyValueArraySet(styleKeyValueArray, current, true);
|
|
16263
|
+
}
|
|
16260
16264
|
} else if (typeof unwrappedValue === 'object') {
|
|
16261
16265
|
for (const key in unwrappedValue) {
|
|
16262
16266
|
if (unwrappedValue.hasOwnProperty(key)) {
|