@angular/core 18.2.0-next.0 → 18.2.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/esm2022/primitives/event-dispatch/contract_binary.mjs +3 -3
- package/esm2022/primitives/event-dispatch/index.mjs +6 -7
- package/esm2022/primitives/event-dispatch/src/a11y_click.mjs +1 -1
- package/esm2022/primitives/event-dispatch/src/action_resolver.mjs +1 -1
- package/esm2022/primitives/event-dispatch/src/bootstrap_app_scoped.mjs +29 -0
- package/esm2022/primitives/event-dispatch/src/bootstrap_global.mjs +21 -0
- package/esm2022/primitives/event-dispatch/src/cache.mjs +10 -21
- package/esm2022/primitives/event-dispatch/src/earlyeventcontract.mjs +32 -21
- package/esm2022/primitives/event-dispatch/src/event.mjs +3 -3
- package/esm2022/primitives/event-dispatch/src/event_contract_defines.mjs +1 -6
- package/esm2022/primitives/event-dispatch/src/event_type.mjs +19 -21
- package/esm2022/primitives/event-dispatch/src/eventcontract.mjs +6 -8
- package/esm2022/primitives/event-dispatch/src/property.mjs +1 -1
- package/esm2022/src/event_delegation_utils.mjs +10 -10
- package/esm2022/src/hydration/event_replay.mjs +17 -22
- package/esm2022/src/render3/after_render_hooks.mjs +7 -2
- package/esm2022/src/render3/component_ref.mjs +1 -1
- package/esm2022/src/version.mjs +1 -1
- package/esm2022/testing/src/logger.mjs +3 -3
- package/event-dispatch-contract.min.js +1 -1
- package/fesm2022/core.mjs +33 -33
- package/fesm2022/core.mjs.map +1 -1
- package/fesm2022/primitives/event-dispatch.mjs +452 -529
- package/fesm2022/primitives/event-dispatch.mjs.map +1 -1
- package/fesm2022/primitives/signals.mjs +1 -1
- package/fesm2022/rxjs-interop.mjs +1 -1
- package/fesm2022/testing.mjs +1 -1
- package/index.d.ts +4 -4
- package/package.json +1 -1
- package/primitives/event-dispatch/index.d.ts +23 -37
- package/primitives/signals/index.d.ts +1 -1
- package/rxjs-interop/index.d.ts +1 -1
- package/schematics/migrations/invalid-two-way-bindings/bundle.js +40 -31
- package/schematics/migrations/invalid-two-way-bindings/bundle.js.map +2 -2
- package/schematics/ng-generate/control-flow-migration/bundle.js +47 -31
- package/schematics/ng-generate/control-flow-migration/bundle.js.map +2 -2
- package/schematics/ng-generate/standalone-migration/bundle.js +611 -65
- package/schematics/ng-generate/standalone-migration/bundle.js.map +4 -4
- package/testing/index.d.ts +1 -1
- package/esm2022/primitives/event-dispatch/src/register_events.mjs +0 -31
|
@@ -14258,7 +14258,7 @@ var _Tokenizer = class {
|
|
|
14258
14258
|
const nameCursor = this._cursor.clone();
|
|
14259
14259
|
let allowDigit = false;
|
|
14260
14260
|
this._attemptCharCodeUntilFn((code) => {
|
|
14261
|
-
if (isAsciiLetter(code) || code
|
|
14261
|
+
if (isAsciiLetter(code) || code === $$ || code === $_ || allowDigit && isDigit(code)) {
|
|
14262
14262
|
allowDigit = true;
|
|
14263
14263
|
return false;
|
|
14264
14264
|
}
|
|
@@ -22916,6 +22916,7 @@ function convertQueryPredicate(predicate) {
|
|
|
22916
22916
|
return Array.isArray(predicate) ? predicate : createMayBeForwardRefExpression(new WrappedNodeExpr(predicate), 1);
|
|
22917
22917
|
}
|
|
22918
22918
|
function convertDirectiveFacadeToMetadata(facade) {
|
|
22919
|
+
var _a2;
|
|
22919
22920
|
const inputsFromMetadata = parseInputsArray(facade.inputs || []);
|
|
22920
22921
|
const outputsFromMetadata = parseMappingStringArray(facade.outputs || []);
|
|
22921
22922
|
const propMetadata = facade.propMetadata;
|
|
@@ -22938,6 +22939,19 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
22938
22939
|
});
|
|
22939
22940
|
}
|
|
22940
22941
|
}
|
|
22942
|
+
const hostDirectives = ((_a2 = facade.hostDirectives) == null ? void 0 : _a2.length) ? facade.hostDirectives.map((hostDirective) => {
|
|
22943
|
+
return typeof hostDirective === "function" ? {
|
|
22944
|
+
directive: wrapReference(hostDirective),
|
|
22945
|
+
inputs: null,
|
|
22946
|
+
outputs: null,
|
|
22947
|
+
isForwardReference: false
|
|
22948
|
+
} : {
|
|
22949
|
+
directive: wrapReference(hostDirective.directive),
|
|
22950
|
+
isForwardReference: false,
|
|
22951
|
+
inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
|
|
22952
|
+
outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
|
|
22953
|
+
};
|
|
22954
|
+
}) : null;
|
|
22941
22955
|
return __spreadProps(__spreadValues({}, facade), {
|
|
22942
22956
|
typeArgumentCount: 0,
|
|
22943
22957
|
typeSourceSpan: facade.typeSourceSpan,
|
|
@@ -22950,31 +22964,37 @@ function convertDirectiveFacadeToMetadata(facade) {
|
|
|
22950
22964
|
providers: facade.providers != null ? new WrappedNodeExpr(facade.providers) : null,
|
|
22951
22965
|
viewQueries: facade.viewQueries.map(convertToR3QueryMetadata),
|
|
22952
22966
|
fullInheritance: false,
|
|
22953
|
-
hostDirectives
|
|
22967
|
+
hostDirectives
|
|
22954
22968
|
});
|
|
22955
22969
|
}
|
|
22956
22970
|
function convertDeclareDirectiveFacadeToMetadata(declaration, typeSourceSpan) {
|
|
22957
|
-
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i;
|
|
22971
|
+
var _a2, _b2, _c2, _d2, _e2, _f2, _g2, _h2, _i, _j;
|
|
22972
|
+
const hostDirectives = ((_a2 = declaration.hostDirectives) == null ? void 0 : _a2.length) ? declaration.hostDirectives.map((dir) => ({
|
|
22973
|
+
directive: wrapReference(dir.directive),
|
|
22974
|
+
isForwardReference: false,
|
|
22975
|
+
inputs: dir.inputs ? getHostDirectiveBindingMapping(dir.inputs) : null,
|
|
22976
|
+
outputs: dir.outputs ? getHostDirectiveBindingMapping(dir.outputs) : null
|
|
22977
|
+
})) : null;
|
|
22958
22978
|
return {
|
|
22959
22979
|
name: declaration.type.name,
|
|
22960
22980
|
type: wrapReference(declaration.type),
|
|
22961
22981
|
typeSourceSpan,
|
|
22962
|
-
selector: (
|
|
22982
|
+
selector: (_b2 = declaration.selector) != null ? _b2 : null,
|
|
22963
22983
|
inputs: declaration.inputs ? inputsPartialMetadataToInputMetadata(declaration.inputs) : {},
|
|
22964
|
-
outputs: (
|
|
22984
|
+
outputs: (_c2 = declaration.outputs) != null ? _c2 : {},
|
|
22965
22985
|
host: convertHostDeclarationToMetadata(declaration.host),
|
|
22966
|
-
queries: ((
|
|
22967
|
-
viewQueries: ((
|
|
22986
|
+
queries: ((_d2 = declaration.queries) != null ? _d2 : []).map(convertQueryDeclarationToMetadata),
|
|
22987
|
+
viewQueries: ((_e2 = declaration.viewQueries) != null ? _e2 : []).map(convertQueryDeclarationToMetadata),
|
|
22968
22988
|
providers: declaration.providers !== void 0 ? new WrappedNodeExpr(declaration.providers) : null,
|
|
22969
|
-
exportAs: (
|
|
22970
|
-
usesInheritance: (
|
|
22971
|
-
lifecycle: { usesOnChanges: (
|
|
22989
|
+
exportAs: (_f2 = declaration.exportAs) != null ? _f2 : null,
|
|
22990
|
+
usesInheritance: (_g2 = declaration.usesInheritance) != null ? _g2 : false,
|
|
22991
|
+
lifecycle: { usesOnChanges: (_h2 = declaration.usesOnChanges) != null ? _h2 : false },
|
|
22972
22992
|
deps: null,
|
|
22973
22993
|
typeArgumentCount: 0,
|
|
22974
22994
|
fullInheritance: false,
|
|
22975
|
-
isStandalone: (
|
|
22976
|
-
isSignal: (
|
|
22977
|
-
hostDirectives
|
|
22995
|
+
isStandalone: (_i = declaration.isStandalone) != null ? _i : false,
|
|
22996
|
+
isSignal: (_j = declaration.isSignal) != null ? _j : false,
|
|
22997
|
+
hostDirectives
|
|
22978
22998
|
};
|
|
22979
22999
|
}
|
|
22980
23000
|
function convertHostDeclarationToMetadata(host = {}) {
|
|
@@ -22989,24 +23009,13 @@ function convertHostDeclarationToMetadata(host = {}) {
|
|
|
22989
23009
|
}
|
|
22990
23010
|
};
|
|
22991
23011
|
}
|
|
22992
|
-
function
|
|
22993
|
-
|
|
22994
|
-
|
|
22995
|
-
|
|
22996
|
-
|
|
22997
|
-
directive: wrapReference(hostDirective),
|
|
22998
|
-
inputs: null,
|
|
22999
|
-
outputs: null,
|
|
23000
|
-
isForwardReference: false
|
|
23001
|
-
} : {
|
|
23002
|
-
directive: wrapReference(hostDirective.directive),
|
|
23003
|
-
isForwardReference: false,
|
|
23004
|
-
inputs: hostDirective.inputs ? parseMappingStringArray(hostDirective.inputs) : null,
|
|
23005
|
-
outputs: hostDirective.outputs ? parseMappingStringArray(hostDirective.outputs) : null
|
|
23006
|
-
};
|
|
23007
|
-
});
|
|
23012
|
+
function getHostDirectiveBindingMapping(array) {
|
|
23013
|
+
let result = null;
|
|
23014
|
+
for (let i = 1; i < array.length; i += 2) {
|
|
23015
|
+
result = result || {};
|
|
23016
|
+
result[array[i - 1]] = array[i];
|
|
23008
23017
|
}
|
|
23009
|
-
return
|
|
23018
|
+
return result;
|
|
23010
23019
|
}
|
|
23011
23020
|
function convertOpaqueValuesToExpressions(obj) {
|
|
23012
23021
|
const result = {};
|
|
@@ -23277,7 +23286,7 @@ function publishFacade(global) {
|
|
|
23277
23286
|
}
|
|
23278
23287
|
|
|
23279
23288
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/version.mjs
|
|
23280
|
-
var VERSION2 = new Version("18.2.0-next.
|
|
23289
|
+
var VERSION2 = new Version("18.2.0-next.1");
|
|
23281
23290
|
|
|
23282
23291
|
// bazel-out/darwin_arm64-fastbuild/bin/packages/compiler/src/i18n/extractor_merger.mjs
|
|
23283
23292
|
var _VisitorMode;
|
|
@@ -23570,6 +23579,13 @@ var CommonCollector = class extends RecursiveVisitor {
|
|
|
23570
23579
|
}
|
|
23571
23580
|
super.visitElement(el, null);
|
|
23572
23581
|
}
|
|
23582
|
+
visitBlock(ast) {
|
|
23583
|
+
for (const blockParam of ast.parameters) {
|
|
23584
|
+
if (this.hasPipes(blockParam.expression)) {
|
|
23585
|
+
this.count++;
|
|
23586
|
+
}
|
|
23587
|
+
}
|
|
23588
|
+
}
|
|
23573
23589
|
visitText(ast) {
|
|
23574
23590
|
if (this.hasPipes(ast.value)) {
|
|
23575
23591
|
this.count++;
|