avancement planning
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"attribute.mjs","sources":["../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/event-dispatch/src/attribute.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport const Attribute = {\n /**\n * The jsaction attribute defines a mapping of a DOM event to a\n * generic event (aka jsaction), to which the actual event handlers\n * that implement the behavior of the application are bound. The\n * value is a semicolon separated list of colon separated pairs of\n * an optional DOM event name and a jsaction name. If the optional\n * DOM event name is omitted, 'click' is assumed. The jsaction names\n * are dot separated pairs of a namespace and a simple jsaction\n * name.\n *\n * See grammar in README.md for expected syntax in the attribute value.\n */\n JSACTION: 'jsaction' as const,\n};\n"],"names":[],"mappings":";;;;;;AAQa,MAAA,SAAS,GAAG;AACvB;;;;;;;;;;;AAWG;AACH,IAAA,QAAQ,EAAE,UAAmB;;;;;"}
|
||||
{"version":3,"file":"attribute.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/event-dispatch/src/attribute.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport const Attribute = {\n /**\n * The jsaction attribute defines a mapping of a DOM event to a\n * generic event (aka jsaction), to which the actual event handlers\n * that implement the behavior of the application are bound. The\n * value is a semicolon separated list of colon separated pairs of\n * an optional DOM event name and a jsaction name. If the optional\n * DOM event name is omitted, 'click' is assumed. The jsaction names\n * are dot separated pairs of a namespace and a simple jsaction\n * name.\n *\n * See grammar in README.md for expected syntax in the attribute value.\n */\n JSACTION: 'jsaction' as const,\n};\n"],"names":[],"mappings":";;;;;;AAQa,MAAA,SAAS,GAAG;AACvB;;;;;;;;;;;AAWG;AACH,IAAA,QAAQ,EAAE,UAAmB;;;;;"}
|
||||
+30
-2
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+582
-503
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"not_found.mjs","sources":["../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/di/src/injector.ts","../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/di/src/not_found.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Constructor, InjectionToken} from './injection_token';\nimport {NotFound, NOT_FOUND} from './not_found';\n\nexport interface Injector {\n retrieve<T>(token: InjectionToken<T>, options?: unknown): T | NotFound;\n}\n\n/**\n * Current injector value used by `inject`.\n * - `undefined`: it is an error to call `inject`\n * - `null`: `inject` can be called but there is no injector (limp-mode).\n * - Injector instance: Use the injector for resolution.\n */\nlet _currentInjector: Injector | undefined | null = undefined;\n\nexport function getCurrentInjector(): Injector | undefined | null {\n return _currentInjector;\n}\n\nexport function setCurrentInjector(\n injector: Injector | null | undefined,\n): Injector | undefined | null {\n const former = _currentInjector;\n _currentInjector = injector;\n return former;\n}\n\nexport function inject<T>(token: InjectionToken<T> | Constructor<T>): T;\nexport function inject<T>(\n token: InjectionToken<T> | Constructor<T>,\n options?: unknown,\n): T | NotFound {\n const currentInjector = getCurrentInjector();\n if (!currentInjector) {\n throw new Error('Current injector is not set.');\n }\n if (!(token as InjectionToken<T>).ɵprov) {\n throw new Error('Token is not an injectable');\n }\n return currentInjector.retrieve(token as InjectionToken<T>, options);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * Value returned if the key-value pair couldn't be found in the context\n * hierarchy.\n */\nexport const NOT_FOUND: unique symbol = Symbol('NotFound');\n\n/**\n * Error thrown when the key-value pair couldn't be found in the context\n * hierarchy. Context can be attached below.\n */\nexport class NotFoundError extends Error {\n override readonly name: string = 'ɵNotFound';\n constructor(message: string) {\n super(message);\n }\n}\n\n/**\n * Type guard for checking if an unknown value is a NotFound.\n */\nexport function isNotFound(e: unknown): e is NotFound {\n return e === NOT_FOUND || (e as NotFoundError)?.name === 'ɵNotFound';\n}\n\n/**\n * Type union of NotFound and NotFoundError.\n */\nexport type NotFound = typeof NOT_FOUND | NotFoundError;\n"],"names":[],"mappings":";;;;;;AAeA;;;;;AAKG;AACH,IAAI,gBAAgB,GAAgC,SAAS;SAE7C,kBAAkB,GAAA;AAChC,IAAA,OAAO,gBAAgB;AACzB;AAEM,SAAU,kBAAkB,CAChC,QAAqC,EAAA;IAErC,MAAM,MAAM,GAAG,gBAAgB;IAC/B,gBAAgB,GAAG,QAAQ;AAC3B,IAAA,OAAO,MAAM;AACf;AAGgB,SAAA,MAAM,CACpB,KAAyC,EACzC,OAAiB,EAAA;AAEjB,IAAA,MAAM,eAAe,GAAG,kBAAkB,EAAE;IAC5C,IAAI,CAAC,eAAe,EAAE;AACpB,QAAA,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC;;AAEjD,IAAA,IAAI,CAAE,KAA2B,CAAC,KAAK,EAAE;AACvC,QAAA,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC;;IAE/C,OAAO,eAAe,CAAC,QAAQ,CAAC,KAA0B,EAAE,OAAO,CAAC;AACtE;;ACxCA;;;AAGG;MACU,SAAS,GAAkB,MAAM,CAAC,UAAU;AAEzD;;;AAGG;AACG,MAAO,aAAc,SAAQ,KAAK,CAAA;IACpB,IAAI,GAAW,WAAW;AAC5C,IAAA,WAAA,CAAY,OAAe,EAAA;QACzB,KAAK,CAAC,OAAO,CAAC;;AAEjB;AAED;;AAEG;AACG,SAAU,UAAU,CAAC,CAAU,EAAA;IACnC,OAAO,CAAC,KAAK,SAAS,IAAK,CAAmB,EAAE,IAAI,KAAK,WAAW;AACtE;;;;"}
|
||||
{"version":3,"file":"not_found.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/di/src/injector.ts","../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/di/src/not_found.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Constructor, InjectionToken} from './injection_token';\nimport {NotFound, NOT_FOUND} from './not_found';\n\nexport interface Injector {\n retrieve<T>(token: InjectionToken<T>, options?: unknown): T | NotFound;\n}\n\n/**\n * Current injector value used by `inject`.\n * - `undefined`: it is an error to call `inject`\n * - `null`: `inject` can be called but there is no injector (limp-mode).\n * - Injector instance: Use the injector for resolution.\n */\nlet _currentInjector: Injector | undefined | null = undefined;\n\nexport function getCurrentInjector(): Injector | undefined | null {\n return _currentInjector;\n}\n\nexport function setCurrentInjector(\n injector: Injector | null | undefined,\n): Injector | undefined | null {\n const former = _currentInjector;\n _currentInjector = injector;\n return former;\n}\n\nexport function inject<T>(token: InjectionToken<T> | Constructor<T>): T;\nexport function inject<T>(\n token: InjectionToken<T> | Constructor<T>,\n options?: unknown,\n): T | NotFound {\n const currentInjector = getCurrentInjector();\n if (!currentInjector) {\n throw new Error('Current injector is not set.');\n }\n if (!(token as InjectionToken<T>).ɵprov) {\n throw new Error('Token is not an injectable');\n }\n return currentInjector.retrieve(token as InjectionToken<T>, options);\n}\n","/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\n/**\n * Value returned if the key-value pair couldn't be found in the context\n * hierarchy.\n */\nexport const NOT_FOUND: unique symbol = Symbol('NotFound');\n\n/**\n * Error thrown when the key-value pair couldn't be found in the context\n * hierarchy. Context can be attached below.\n */\nexport class NotFoundError extends Error {\n override readonly name: string = 'ɵNotFound';\n constructor(message: string) {\n super(message);\n }\n}\n\n/**\n * Type guard for checking if an unknown value is a NotFound.\n */\nexport function isNotFound(e: unknown): e is NotFound {\n return e === NOT_FOUND || (e as NotFoundError)?.name === 'ɵNotFound';\n}\n\n/**\n * Type union of NotFound and NotFoundError.\n */\nexport type NotFound = typeof NOT_FOUND | NotFoundError;\n"],"names":[],"mappings":";;;;;;AAeA;;;;;AAKG;AACH,IAAI,gBAAgB,GAAgC,SAAS;SAE7C,kBAAkB,GAAA;AAChC,IAAA,OAAO,gBAAgB;AACzB;AAEM,SAAU,kBAAkB,CAChC,QAAqC,EAAA;IAErC,MAAM,MAAM,GAAG,gBAAgB;IAC/B,gBAAgB,GAAG,QAAQ;AAC3B,IAAA,OAAO,MAAM;AACf;AAGgB,SAAA,MAAM,CACpB,KAAyC,EACzC,OAAiB,EAAA;AAEjB,IAAA,MAAM,eAAe,GAAG,kBAAkB,EAAE;IAC5C,IAAI,CAAC,eAAe,EAAE;AACpB,QAAA,MAAM,IAAI,KAAK,CAAC,8BAA8B,CAAC;;AAEjD,IAAA,IAAI,CAAE,KAA2B,CAAC,KAAK,EAAE;AACvC,QAAA,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC;;IAE/C,OAAO,eAAe,CAAC,QAAQ,CAAC,KAA0B,EAAE,OAAO,CAAC;AACtE;;ACxCA;;;AAGG;MACU,SAAS,GAAkB,MAAM,CAAC,UAAU;AAEzD;;;AAGG;AACG,MAAO,aAAc,SAAQ,KAAK,CAAA;IACpB,IAAI,GAAW,WAAW;AAC5C,IAAA,WAAA,CAAY,OAAe,EAAA;QACzB,KAAK,CAAC,OAAO,CAAC;;AAEjB;AAED;;AAEG;AACG,SAAU,UAAU,CAAC,CAAU,EAAA;IACnC,OAAO,CAAC,KAAK,SAAS,IAAK,CAAmB,EAAE,IAAI,KAAK,WAAW;AACtE;;;;"}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"di.mjs","sources":["../../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/di/src/injection_token.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Type} from './type';\n/**\n * Information about how a type or `InjectionToken` interfaces with the DI\n * system. This describes:\n *\n * 1. *How* the type is provided\n * The declaration must specify only one of the following:\n * - A `value` which is a predefined instance of the type.\n * - A `factory` which defines how to create the given type `T`, possibly\n * requesting injection of other types if necessary.\n * - Neither, in which case the type is expected to already be present in the\n * injector hierarchy. This is used for internal use cases.\n *\n * 2. *Where* the type is stored (if it is stored)\n * - The `providedIn` parameter specifies which injector the type belongs to.\n * - The `token` is used as the key to store the type in the injector.\n */\nexport interface ɵɵInjectableDeclaration<T> {\n /**\n * Specifies that the given type belongs to a particular `Injector`,\n * `NgModule`, or a special scope (e.g. `'root'`).\n *\n * `any` is deprecated and will be removed soon.\n *\n * A value of `null` indicates that the injectable does not belong to any\n * scope, and won't be stored in any injector. For declarations with a\n * factory, this will create a new instance of the type each time it is\n * requested.\n */\n providedIn: Type<any> | 'root' | 'platform' | 'any' | null;\n\n /**\n * The token to which this definition belongs.\n *\n * Note that this may not be the same as the type that the `factory` will create.\n */\n token: unknown;\n\n /**\n * Factory method to execute to create an instance of the injectable.\n */\n factory?: (t?: Type<any>) => T;\n\n /**\n * In a case of no explicit injector, a location where the instance of the injectable is stored.\n */\n value?: T;\n}\n\n/**\n * A `Type` which has a `ɵprov: ɵɵInjectableDeclaration` static field.\n *\n * `InjectableType`s contain their own Dependency Injection metadata and are usable in an\n * `InjectorDef`-based `StaticInjector`.\n *\n * @publicApi\n */\nexport interface InjectionToken<T> {\n ɵprov: ɵɵInjectableDeclaration<T>;\n}\n\nexport function defineInjectable<T>(opts: {\n token: unknown;\n providedIn?: Type<any> | 'root' | 'platform' | 'any' | 'environment' | null;\n factory: () => T;\n}): ɵɵInjectableDeclaration<T> {\n return {\n token: opts.token,\n providedIn: (opts.providedIn as any) || null,\n factory: opts.factory,\n value: undefined,\n } as ɵɵInjectableDeclaration<T>;\n}\n\nexport type Constructor<T> = Function & {prototype: T};\n\nexport function registerInjectable<T>(\n ctor: unknown,\n declaration: ɵɵInjectableDeclaration<T>,\n): InjectionToken<T> {\n (ctor as unknown as InjectionToken<T>).ɵprov = declaration;\n return ctor as Constructor<T> & InjectionToken<T>;\n}\n"],"names":[],"mappings":";;;;;;;;AAqEM,SAAU,gBAAgB,CAAI,IAInC,EAAA;IACC,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,QAAA,UAAU,EAAG,IAAI,CAAC,UAAkB,IAAI,IAAI;QAC5C,OAAO,EAAE,IAAI,CAAC,OAAO;AACrB,QAAA,KAAK,EAAE,SAAS;KACa;AACjC;AAIgB,SAAA,kBAAkB,CAChC,IAAa,EACb,WAAuC,EAAA;AAEtC,IAAA,IAAqC,CAAC,KAAK,GAAG,WAAW;AAC1D,IAAA,OAAO,IAA0C;AACnD;;;;"}
|
||||
{"version":3,"file":"di.mjs","sources":["../../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/di/src/injection_token.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nimport {Type} from './type';\n/**\n * Information about how a type or `InjectionToken` interfaces with the DI\n * system. This describes:\n *\n * 1. *How* the type is provided\n * The declaration must specify only one of the following:\n * - A `value` which is a predefined instance of the type.\n * - A `factory` which defines how to create the given type `T`, possibly\n * requesting injection of other types if necessary.\n * - Neither, in which case the type is expected to already be present in the\n * injector hierarchy. This is used for internal use cases.\n *\n * 2. *Where* the type is stored (if it is stored)\n * - The `providedIn` parameter specifies which injector the type belongs to.\n * - The `token` is used as the key to store the type in the injector.\n */\nexport interface ɵɵInjectableDeclaration<T> {\n /**\n * Specifies that the given type belongs to a particular `Injector`,\n * `NgModule`, or a special scope (e.g. `'root'`).\n *\n * `any` is deprecated and will be removed soon.\n *\n * A value of `null` indicates that the injectable does not belong to any\n * scope, and won't be stored in any injector. For declarations with a\n * factory, this will create a new instance of the type each time it is\n * requested.\n */\n providedIn: Type<any> | 'root' | 'platform' | 'any' | null;\n\n /**\n * The token to which this definition belongs.\n *\n * Note that this may not be the same as the type that the `factory` will create.\n */\n token: unknown;\n\n /**\n * Factory method to execute to create an instance of the injectable.\n */\n factory?: (t?: Type<any>) => T;\n\n /**\n * In a case of no explicit injector, a location where the instance of the injectable is stored.\n */\n value?: T;\n}\n\n/**\n * A `Type` which has a `ɵprov: ɵɵInjectableDeclaration` static field.\n *\n * `InjectableType`s contain their own Dependency Injection metadata and are usable in an\n * `InjectorDef`-based `StaticInjector`.\n *\n * @publicApi\n */\nexport interface InjectionToken<T> {\n ɵprov: ɵɵInjectableDeclaration<T>;\n}\n\nexport function defineInjectable<T>(opts: {\n token: unknown;\n providedIn?: Type<any> | 'root' | 'platform' | 'any' | 'environment' | null;\n factory: () => T;\n}): ɵɵInjectableDeclaration<T> {\n return {\n token: opts.token,\n providedIn: (opts.providedIn as any) || null,\n factory: opts.factory,\n value: undefined,\n } as ɵɵInjectableDeclaration<T>;\n}\n\nexport type Constructor<T> = Function & {prototype: T};\n\nexport function registerInjectable<T>(\n ctor: unknown,\n declaration: ɵɵInjectableDeclaration<T>,\n): InjectionToken<T> {\n (ctor as unknown as InjectionToken<T>).ɵprov = declaration;\n return ctor as Constructor<T> & InjectionToken<T>;\n}\n"],"names":[],"mappings":";;;;;;;;AAqEM,SAAU,gBAAgB,CAAI,IAInC,EAAA;IACC,OAAO;QACL,KAAK,EAAE,IAAI,CAAC,KAAK;AACjB,QAAA,UAAU,EAAG,IAAI,CAAC,UAAkB,IAAI,IAAI;QAC5C,OAAO,EAAE,IAAI,CAAC,OAAO;AACrB,QAAA,KAAK,EAAE,SAAS;KACa;AACjC;AAIgB,SAAA,kBAAkB,CAChC,IAAa,EACb,WAAuC,EAAA;AAEtC,IAAA,IAAqC,CAAC,KAAK,GAAG,WAAW;AAC1D,IAAA,OAAO,IAA0C;AACnD;;;;"}
|
||||
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+10
-15
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
@@ -19,6 +19,8 @@ import { untracked as untracked$1, BASE_EFFECT_NODE, runEffect, createLinkedSign
|
||||
* <my-comp (valueChange)="processNewValue($event)" />
|
||||
* ```
|
||||
*
|
||||
* @see [Custom events with outputs](guide/components/outputs)
|
||||
*
|
||||
* @publicAPI
|
||||
*/
|
||||
class OutputEmitterRef {
|
||||
@@ -85,6 +87,7 @@ function getOutputDestroyRef(ref) {
|
||||
/**
|
||||
* Execute an arbitrary function in a non-reactive (non-tracking) context. The executed function
|
||||
* can, optionally, return a value.
|
||||
* @see [Reading without tracking dependencies](guide/signals#reading-without-tracking-dependencies)
|
||||
*/
|
||||
function untracked(nonReactiveReadsFn) {
|
||||
return untracked$1(nonReactiveReadsFn);
|
||||
@@ -92,6 +95,7 @@ function untracked(nonReactiveReadsFn) {
|
||||
|
||||
/**
|
||||
* Create a computed `Signal` which derives a reactive value from an expression.
|
||||
* @see [Computed signals](guide/signals#computed-signals)
|
||||
*/
|
||||
function computed(computation, options) {
|
||||
const getter = createComputed(computation, options?.equal);
|
||||
@@ -127,6 +131,8 @@ class EffectRefImpl {
|
||||
*
|
||||
* `effect()` must be run in injection context, unless the `injector` option is manually specified.
|
||||
*
|
||||
* @see [Effects](guide/signals#effects)
|
||||
*
|
||||
* @publicApi 20.0
|
||||
*/
|
||||
function effect(effectFn, options) {
|
||||
@@ -294,19 +300,13 @@ function upgradeLinkedSignalGetter(getter, debugName) {
|
||||
return upgradedGetter;
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether a `Resource.value()` should throw an error when the resource is in the error state.
|
||||
*
|
||||
* This internal flag is being used to gradually roll out this behavior.
|
||||
*/
|
||||
let RESOURCE_VALUE_THROWS_ERRORS_DEFAULT = true;
|
||||
function resource(options) {
|
||||
if (ngDevMode && !options?.injector) {
|
||||
assertInInjectionContext(resource);
|
||||
}
|
||||
const oldNameForParams = options.request;
|
||||
const params = (options.params ?? oldNameForParams ?? (() => null));
|
||||
return new ResourceImpl(params, getLoader(options), options.defaultValue, options.equal ? wrapEqualityFn(options.equal) : undefined, options.injector ?? inject(Injector), RESOURCE_VALUE_THROWS_ERRORS_DEFAULT);
|
||||
return new ResourceImpl(params, getLoader(options), options.defaultValue, options.equal ? wrapEqualityFn(options.equal) : undefined, options.injector ?? inject(Injector));
|
||||
}
|
||||
/**
|
||||
* Base class which implements `.value` as a `WritableSignal` by delegating `.set` and `.update`.
|
||||
@@ -361,7 +361,7 @@ class ResourceImpl extends BaseWritableResource {
|
||||
resolvePendingTask = undefined;
|
||||
destroyed = false;
|
||||
unregisterOnDestroy;
|
||||
constructor(request, loaderFn, defaultValue, equal, injector, throwErrorsFromValue = RESOURCE_VALUE_THROWS_ERRORS_DEFAULT) {
|
||||
constructor(request, loaderFn, defaultValue, equal, injector) {
|
||||
super(
|
||||
// Feed a computed signal for the value to `BaseWritableResource`, which will upgrade it to a
|
||||
// `WritableSignal` that delegates to `ResourceImpl.set`.
|
||||
@@ -375,12 +375,7 @@ class ResourceImpl extends BaseWritableResource {
|
||||
return defaultValue;
|
||||
}
|
||||
if (!isResolved(streamValue)) {
|
||||
if (throwErrorsFromValue) {
|
||||
throw new ResourceValueError(this.error());
|
||||
}
|
||||
else {
|
||||
return defaultValue;
|
||||
}
|
||||
throw new ResourceValueError(this.error());
|
||||
}
|
||||
return streamValue.value;
|
||||
}, { equal }));
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+22
-3
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
@@ -31,7 +31,7 @@ class Version {
|
||||
/**
|
||||
* @publicApi
|
||||
*/
|
||||
const VERSION = /* @__PURE__ */ new Version('20.3.11');
|
||||
const VERSION = /* @__PURE__ */ new Version('20.3.21');
|
||||
|
||||
/**
|
||||
* Base URL for the error details page.
|
||||
@@ -267,7 +267,7 @@ const __forward_ref__ = getClosureSafeProperty({ __forward_ref__: getClosureSafe
|
||||
* hideParent = input.required<boolean>();
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @see [Resolve circular dependencies with a forward reference](guide/di/di-in-action#resolve-circular-dependencies-with-a-forward-reference)
|
||||
* @publicApi
|
||||
*/
|
||||
function forwardRef(forwardRefFn) {
|
||||
@@ -555,6 +555,9 @@ const NG_INJ_DEF = getClosureSafeProperty({ ɵinj: getClosureSafeProperty });
|
||||
*
|
||||
* {@example core/di/ts/injector_spec.ts region='ShakableInjectionToken'}
|
||||
*
|
||||
*
|
||||
* @see [What is an InjectionToken?](guide/di/defining-dependency-providers#what-is-an-injectiontoken)
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
class InjectionToken {
|
||||
@@ -1136,6 +1139,8 @@ Please check that 1) the type for the parameter at index ${index} is correct and
|
||||
* }
|
||||
* ```
|
||||
*
|
||||
* @see [Injecting dependencies with inject()](guide/di#injecting-dependencies-with-inject)
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
function inject(token, options) {
|
||||
@@ -1875,6 +1880,8 @@ function getNullInjector() {
|
||||
* An `Injector` that's part of the environment injector hierarchy, which exists outside of the
|
||||
* component tree.
|
||||
*
|
||||
* @see [Types of injector hierarchies](guide/di/hierarchical-dependency-injection#types-of-injector-hierarchies)
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
class EnvironmentInjector {
|
||||
@@ -2356,6 +2363,8 @@ function forEachSingleProvider(providers, fn) {
|
||||
* from the given `Injector`. Note that `inject` is only usable synchronously, and cannot be used in
|
||||
* any asynchronous callbacks or after any `await` points.
|
||||
*
|
||||
* @see [Run within an injection context](guide/di/dependency-injection-context#run-within-an-injection-context)
|
||||
*
|
||||
* @param injector the injector which will satisfy calls to [`inject`](api/core/inject) while `fn`
|
||||
* is executing
|
||||
* @param fn the closure to be run in the context of `injector`
|
||||
@@ -3504,6 +3513,8 @@ function createInjectorWithoutInjectorInstances(defType, parent = null, addition
|
||||
*
|
||||
* {@example core/di/ts/injector_spec.ts region='injectInjector'}
|
||||
*
|
||||
* @see [Types of injector hierarchies](guide/di/hierarchical-dependency-injection#types-of-injector-hierarchies)
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
class Injector {
|
||||
@@ -3536,6 +3547,8 @@ class Injector {
|
||||
* In a browser and SSR this is the DOM Document.
|
||||
* When using SSR, that document is created by [Domino](https://github.com/angular/domino).
|
||||
*
|
||||
* @see [Accessing Document via DI](guide/ssr#accessing-document-via-di)
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
const DOCUMENT = new InjectionToken(ngDevMode ? 'DocumentToken' : '');
|
||||
@@ -3701,6 +3714,8 @@ const globalErrorListeners = new InjectionToken(ngDevMode ? 'GlobalErrorListener
|
||||
*
|
||||
* The listeners added are for the window's 'unhandledrejection' and 'error' events.
|
||||
*
|
||||
* @see [Global error listeners](best-practices/error-handling#global-error-listeners)
|
||||
*
|
||||
* @publicApi
|
||||
*/
|
||||
function provideBrowserGlobalErrorListeners() {
|
||||
@@ -3729,6 +3744,7 @@ function ɵunwrapWritableSignal(value) {
|
||||
}
|
||||
/**
|
||||
* Create a `Signal` that can be set or updated directly.
|
||||
* @see [Angular Signals](guide/signals)
|
||||
*/
|
||||
function signal(initialValue, options) {
|
||||
const [get, set, update] = createSignal(initialValue, options?.equal);
|
||||
@@ -3889,6 +3905,9 @@ class PendingTasksInternal {
|
||||
* taskCleanup();
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* @see [PendingTasks for Server Side Rendering (SSR)](guide/zoneless#pendingtasks-for-server-side-rendering-ssr)
|
||||
*
|
||||
* @publicApi 20.0
|
||||
*/
|
||||
class PendingTasks {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+11
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
@@ -22,6 +22,8 @@ import './effect.mjs';
|
||||
* passed explicitly to use `takeUntilDestroyed` outside of an [injection
|
||||
* context](guide/di/dependency-injection-context). Otherwise, the current `DestroyRef` is injected.
|
||||
*
|
||||
* @see [Unsubscribing with takeUntilDestroyed](ecosystem/rxjs-interop/take-until-destroyed)
|
||||
*
|
||||
* @publicApi 19.0
|
||||
*/
|
||||
function takeUntilDestroyed(destroyRef) {
|
||||
@@ -94,6 +96,7 @@ class OutputFromObservableRef {
|
||||
* nameChange = outputFromObservable(this.nameChange$);
|
||||
* }
|
||||
* ```
|
||||
* @see [RxJS interop with component and directive outputs](ecosystem/rxjs-interop/output-interop)
|
||||
*
|
||||
* @publicApi 19.0
|
||||
*/
|
||||
@@ -109,6 +112,8 @@ function outputFromObservable(observable, opts) {
|
||||
*
|
||||
* You can subscribe to the output via `Observable.subscribe` then.
|
||||
*
|
||||
* @see [RxJS interop with component and directive outputs](ecosystem/rxjs-interop/output-interop)
|
||||
*
|
||||
* @publicApi 19.0
|
||||
*/
|
||||
function outputToObservable(ref) {
|
||||
@@ -134,6 +139,9 @@ function outputToObservable(ref) {
|
||||
*
|
||||
* `toObservable` must be called in an injection context unless an injector is provided via options.
|
||||
*
|
||||
* @see [RxJS interop with Angular signals](ecosystem/rxjs-interop)
|
||||
* @see [Create an RxJS Observable from a signal with toObservable](ecosystem/rxjs-interop#create-an-rxjs-observable-from-a-signal-with-toobservable)
|
||||
*
|
||||
* @publicApi 20.0
|
||||
*/
|
||||
function toObservable(source, options) {
|
||||
@@ -181,6 +189,8 @@ function toObservable(source, options) {
|
||||
* If the subscription should persist until the `Observable` itself completes, the `manualCleanup`
|
||||
* option can be specified instead, which disables the automatic subscription teardown. No injection
|
||||
* context is needed in this configuration as well.
|
||||
*
|
||||
* @see [RxJS interop with Angular signals](ecosystem/rxjs-interop)
|
||||
*/
|
||||
function toSignal(source, options) {
|
||||
typeof ngDevMode !== 'undefined' &&
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
@@ -1,5 +1,5 @@
|
||||
/**
|
||||
* @license Angular v20.3.11
|
||||
* @license Angular v20.3.21
|
||||
* (c) 2010-2025 Google LLC. https://angular.dev/
|
||||
* License: MIT
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"version":3,"file":"weak_ref.mjs","sources":["../../../../../k8-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/signals/src/weak_ref.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport function setAlternateWeakRefImpl(impl: unknown) {\n // TODO: remove this function\n}\n"],"names":[],"mappings":";;;;;;AAQM,SAAU,uBAAuB,CAAC,IAAa,EAAA;;AAErD;;;;"}
|
||||
{"version":3,"file":"weak_ref.mjs","sources":["../../../../../darwin_arm64-fastbuild-ST-199a4f3c4e20/bin/packages/core/primitives/signals/src/weak_ref.ts"],"sourcesContent":["/**\n * @license\n * Copyright Google LLC All Rights Reserved.\n *\n * Use of this source code is governed by an MIT-style license that can be\n * found in the LICENSE file at https://angular.dev/license\n */\n\nexport function setAlternateWeakRefImpl(impl: unknown) {\n // TODO: remove this function\n}\n"],"names":[],"mappings":";;;;;;AAQM,SAAU,uBAAuB,CAAC,IAAa,EAAA;;AAErD;;;;"}
|
||||
Reference in New Issue
Block a user