@angular/core 19.0.0-next.4 → 19.0.0-next.6

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.4
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.4
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.4
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.4
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -175,10 +175,10 @@ class TestBedApplicationErrorHandler {
175
175
  throw e;
176
176
  }
177
177
  }
178
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.4", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
179
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.4", ngImport: i0, type: TestBedApplicationErrorHandler }); }
178
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.0-next.6", ngImport: i0, type: TestBedApplicationErrorHandler, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
179
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.0.0-next.6", ngImport: i0, type: TestBedApplicationErrorHandler }); }
180
180
  }
181
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.4", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
181
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.0-next.6", ngImport: i0, type: TestBedApplicationErrorHandler, decorators: [{
182
182
  type: Injectable
183
183
  }] });
184
184
 
package/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.4
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -4339,6 +4339,27 @@ export declare class ExperimentalPendingTasks {
4339
4339
  * @returns A cleanup function that removes a task when called.
4340
4340
  */
4341
4341
  add(): () => void;
4342
+ /**
4343
+ * Runs an asynchronous function and blocks the application's stability until the function completes.
4344
+ *
4345
+ * ```
4346
+ * pendingTasks.run(async () => {
4347
+ * const userData = await fetch('/api/user');
4348
+ * this.userData.set(userData);
4349
+ * });
4350
+ * ```
4351
+ *
4352
+ * Application stability is at least delayed until the next tick after the `run` method resolves
4353
+ * so it is safe to make additional updates to application state that would require UI synchronization:
4354
+ *
4355
+ * ```
4356
+ * const userData = await pendingTasks.run(() => fetch('/api/user'));
4357
+ * this.userData.set(userData);
4358
+ * ```
4359
+ *
4360
+ * @param fn The asynchronous function to execute
4361
+ */
4362
+ run<T>(fn: () => Promise<T>): Promise<T>;
4342
4363
  /** @nocollapse */
4343
4364
  static ɵprov: unknown;
4344
4365
  }
@@ -6099,7 +6120,7 @@ export declare const Input: InputDecorator;
6099
6120
  * <span>{{firstName()}}</span>
6100
6121
  * ```
6101
6122
  *
6102
- * @developerPreview
6123
+ * @publicAPI
6103
6124
  * @initializerApiFunction
6104
6125
  */
6105
6126
  export declare const input: InputFunction;
@@ -6179,7 +6200,7 @@ declare enum InputFlags {
6179
6200
  * The function exposes an API for also declaring required inputs via the
6180
6201
  * `input.required` function.
6181
6202
  *
6182
- * @developerPreview
6203
+ * @publicAPI
6183
6204
  * @docsPrivate Ignored because `input` is the canonical API entry.
6184
6205
  */
6185
6206
  export declare interface InputFunction {
@@ -6190,6 +6211,8 @@ export declare interface InputFunction {
6190
6211
  <T>(): InputSignal<T | undefined>;
6191
6212
  /** Declares an input of type `T` with an explicit initial value. */
6192
6213
  <T>(initialValue: T, opts?: InputOptionsWithoutTransform<T>): InputSignal<T>;
6214
+ /** Declares an input of type `T|undefined` without an initial value, but with input options */
6215
+ <T>(initialValue: undefined, opts: InputOptionsWithoutTransform<T>): InputSignal<T | undefined>;
6193
6216
  /**
6194
6217
  * Declares an input of type `T` with an initial value and a transform
6195
6218
  * function.
@@ -6198,13 +6221,20 @@ export declare interface InputFunction {
6198
6221
  * transform function will transform the value to type `T`.
6199
6222
  */
6200
6223
  <T, TransformT>(initialValue: T, opts: InputOptionsWithTransform<T, TransformT>): InputSignalWithTransform<T, TransformT>;
6224
+ /**
6225
+ * Declares an input of type `T|undefined` without an initial value and with a transform
6226
+ * function.
6227
+ *
6228
+ * The input accepts values of type `TransformT` and the given
6229
+ * transform function will transform the value to type `T|undefined`.
6230
+ */ <T, TransformT>(initialValue: undefined, opts: InputOptionsWithTransform<T | undefined, TransformT>): InputSignalWithTransform<T | undefined, TransformT>;
6201
6231
  /**
6202
6232
  * Initializes a required input.
6203
6233
  *
6204
6234
  * Consumers of your directive/component need to bind to this
6205
6235
  * input. If unset, a compile time error will be reported.
6206
6236
  *
6207
- * @developerPreview
6237
+ * @publicAPI
6208
6238
  */
6209
6239
  required: {
6210
6240
  /** Declares a required input of type `T`. */
@@ -6220,7 +6250,7 @@ export declare interface InputFunction {
6220
6250
  }
6221
6251
 
6222
6252
  /**
6223
- * @developerPreview
6253
+ * @publicAPI
6224
6254
  *
6225
6255
  * Options for signal inputs.
6226
6256
  */
@@ -6243,7 +6273,7 @@ export declare interface InputOptions<T, TransformT> {
6243
6273
  /**
6244
6274
  * Signal input options without the transform option.
6245
6275
  *
6246
- * @developerPreview
6276
+ * @publicAPI
6247
6277
  */
6248
6278
  export declare type InputOptionsWithoutTransform<T> = Omit<InputOptions<T, T>, 'transform'> & {
6249
6279
  transform?: undefined;
@@ -6252,7 +6282,7 @@ export declare type InputOptionsWithoutTransform<T> = Omit<InputOptions<T, T>, '
6252
6282
  /**
6253
6283
  * Signal input options with the transform option required.
6254
6284
  *
6255
- * @developerPreview
6285
+ * @publicAPI
6256
6286
  */
6257
6287
  export declare type InputOptionsWithTransform<T, TransformT> = Required<Pick<InputOptions<T, TransformT>, 'transform'>> & InputOptions<T, TransformT>;
6258
6288
 
@@ -6265,7 +6295,7 @@ export declare type InputOptionsWithTransform<T, TransformT> = Required<Pick<Inp
6265
6295
  *
6266
6296
  * @see {@link InputOptionsWithTransform} for inputs with transforms.
6267
6297
  *
6268
- * @developerPreview
6298
+ * @publicAPI
6269
6299
  */
6270
6300
  export declare interface InputSignal<T> extends InputSignalWithTransform<T, T> {
6271
6301
  }
@@ -6313,7 +6343,7 @@ declare interface InputSignalNode<T, TransformT> extends SignalNode<T> {
6313
6343
  *
6314
6344
  * @see {@link InputSignal} for additional information.
6315
6345
  *
6316
- * @developerPreview
6346
+ * @publicAPI
6317
6347
  */
6318
6348
  export declare interface InputSignalWithTransform<T, TransformT> extends Signal<T> {
6319
6349
  [SIGNAL]: InputSignalNode<T, TransformT>;
@@ -7309,7 +7339,7 @@ export declare enum MissingTranslationStrategy {
7309
7339
  * }
7310
7340
  * ```
7311
7341
  *
7312
- * @developerPreview
7342
+ * @publicAPI
7313
7343
  * @initializerApiFunction
7314
7344
  */
7315
7345
  export declare const model: ModelFunction;
@@ -7322,7 +7352,7 @@ export declare const model: ModelFunction;
7322
7352
  * The function exposes an API for also declaring required models via the
7323
7353
  * `model.required` function.
7324
7354
  *
7325
- * @developerPreview
7355
+ * @publicAPI
7326
7356
  * @docsPrivate Ignored because `model` is the canonical API entry.
7327
7357
  */
7328
7358
  export declare interface ModelFunction {
@@ -7345,7 +7375,7 @@ export declare interface ModelFunction {
7345
7375
  }
7346
7376
 
7347
7377
  /**
7348
- * @developerPreview
7378
+ * @publicAPI
7349
7379
  *
7350
7380
  * Options for model signals.
7351
7381
  */
@@ -7363,7 +7393,7 @@ export declare interface ModelOptions {
7363
7393
  * A model signal is a writeable signal that can be exposed as an output.
7364
7394
  * Whenever its value is updated, it emits to the output.
7365
7395
  *
7366
- * @developerPreview
7396
+ * @publicAPI
7367
7397
  */
7368
7398
  export declare interface ModelSignal<T> extends WritableSignal<T>, InputSignal<T>, OutputRef<T> {
7369
7399
  [SIGNAL]: InputSignalNode<T, T>;
@@ -8183,9 +8213,8 @@ export declare const Output: OutputDecorator;
8183
8213
  * this.nameChange.emit(newName);
8184
8214
  * }
8185
8215
  * ```
8186
- *
8187
- * @developerPreview
8188
8216
  * @initializerApiFunction {"showTypesInSignaturePreview": true}
8217
+ * @publicAPI
8189
8218
  */
8190
8219
  export declare function output<T = void>(opts?: OutputOptions): OutputEmitterRef<T>;
8191
8220
 
@@ -8227,7 +8256,7 @@ export declare interface OutputDecorator {
8227
8256
  * <my-comp (valueChange)="processNewValue($event)" />
8228
8257
  * ```
8229
8258
  *
8230
- * @developerPreview
8259
+ * @publicAPI
8231
8260
  */
8232
8261
  export declare class OutputEmitterRef<T> implements OutputRef<T> {
8233
8262
  private destroyed;
@@ -8242,7 +8271,7 @@ export declare class OutputEmitterRef<T> implements OutputRef<T> {
8242
8271
  /**
8243
8272
  * Options for declaring an output.
8244
8273
  *
8245
- * @developerPreview
8274
+ * @publicAPI
8246
8275
  */
8247
8276
  export declare interface OutputOptions {
8248
8277
  alias?: string;
@@ -8251,7 +8280,7 @@ export declare interface OutputOptions {
8251
8280
  /**
8252
8281
  * A reference to an Angular output.
8253
8282
  *
8254
- * @developerPreview
8283
+ * @publicAPI
8255
8284
  */
8256
8285
  export declare interface OutputRef<T> {
8257
8286
  /**
@@ -8272,7 +8301,7 @@ export declare interface OutputRef<T> {
8272
8301
  * Note: Angular will automatically clean up subscriptions
8273
8302
  * when the directive/component of the output is destroyed.
8274
8303
  *
8275
- * @developerPreview
8304
+ * @publicAPI
8276
8305
  */
8277
8306
  export declare interface OutputRefSubscription {
8278
8307
  unsubscribe(): void;
@@ -15220,6 +15249,22 @@ export declare function ɵɵdefer(index: number, primaryTmplIndex: number, depen
15220
15249
  */
15221
15250
  export declare function ɵɵdeferEnableTimerScheduling(tView: TView, tDetails: TDeferBlockDetails, placeholderConfigIndex?: number | null, loadingConfigIndex?: number | null): void;
15222
15251
 
15252
+ export declare function ɵɵdeferHydrateNever(): void;
15253
+
15254
+ export declare function ɵɵdeferHydrateOnHover(): void;
15255
+
15256
+ export declare function ɵɵdeferHydrateOnIdle(): void;
15257
+
15258
+ export declare function ɵɵdeferHydrateOnImmediate(): void;
15259
+
15260
+ export declare function ɵɵdeferHydrateOnInteraction(): void;
15261
+
15262
+ export declare function ɵɵdeferHydrateOnTimer(): void;
15263
+
15264
+ export declare function ɵɵdeferHydrateOnViewport(): void;
15265
+
15266
+ export declare function ɵɵdeferHydrateWhen(): void;
15267
+
15223
15268
  /**
15224
15269
  * Creates runtime data structures for the `on hover` deferred trigger.
15225
15270
  * @param triggerIndex Index at which to find the trigger element.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@angular/core",
3
- "version": "19.0.0-next.4",
3
+ "version": "19.0.0-next.6",
4
4
  "description": "Angular - the core framework",
5
5
  "author": "angular",
6
6
  "license": "MIT",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.4
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.4
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v19.0.0-next.4
2
+ * @license Angular v19.0.0-next.6
3
3
  * (c) 2010-2024 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */