@rdlabo/ionic-angular-kit 21.7.0 → 22.0.0-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/README.md CHANGED
@@ -10,10 +10,11 @@ npm install @rdlabo/ionic-angular-kit
10
10
 
11
11
  | Package | Supported version |
12
12
  | ---------------------------------- | ----------------- |
13
- | Angular | 21.x |
14
- | Ionic Angular | 8.x |
13
+ | Angular | 21.x–22.x |
14
+ | Ionic Angular | 9.x |
15
15
  | RxJS | 7.8.x |
16
- | Capacitor core and feature plugins | 6.x through 8.x |
16
+ | Capacitor core and feature plugins | 7.x–8.x |
17
+ | iOS/iPadOS deployment target | 16.4 or later |
17
18
 
18
19
  Install `@ionic/storage-angular` when using storage. Other peers are feature-scoped: install only the Capacitor, Firebase, printing, or Live Update packages used by your selected entry points.
19
20
 
@@ -26,10 +26,10 @@ class KitAppUpdateService {
26
26
  })
27
27
  .catch((error) => console.error('Angular service-worker update check failed', error));
28
28
  }
29
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: KitAppUpdateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
30
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: KitAppUpdateService, providedIn: 'root' }); }
29
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: KitAppUpdateService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
30
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: KitAppUpdateService, providedIn: 'root' }); }
31
31
  }
32
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: KitAppUpdateService, decorators: [{
32
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: KitAppUpdateService, decorators: [{
33
33
  type: Injectable,
34
34
  args: [{ providedIn: 'root' }]
35
35
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"rdlabo-ionic-angular-kit-app-update.mjs","sources":["../../../projects/kit/app-update/src/lib/kit-app-update.provider.ts","../../../projects/kit/app-update/src/public-api.ts","../../../projects/kit/app-update/src/rdlabo-ionic-angular-kit-app-update.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport type { EnvironmentProviders } from '@angular/core';\nimport { Injectable, inject, makeEnvironmentProviders, provideAppInitializer } from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\n\nconst UPDATE_CHECK_TIMEOUT_MS = 10_000;\n\n/** Checks for a complete Angular service-worker update before users can interact with the application. */\n@Injectable({ providedIn: 'root' })\nexport class KitAppUpdateService {\n readonly #document = inject(DOCUMENT);\n readonly #updates = inject(SwUpdate);\n #initialization: Promise<void> | null = null;\n\n /** Runs one startup update check and reloads directly into a downloaded version when one is available. */\n initialize(): Promise<void> {\n this.#initialization ??= this.#initialize();\n return this.#initialization;\n }\n\n async #initialize(): Promise<void> {\n if (!this.#updates.isEnabled || !this.#document.defaultView?.navigator.serviceWorker?.controller) {\n return;\n }\n const checkForUpdate = async (): Promise<boolean | undefined> => withTimeout(this.#updates.checkForUpdate(), UPDATE_CHECK_TIMEOUT_MS);\n await checkForUpdate()\n .then((available) => {\n if (available) this.#document.location?.reload();\n })\n .catch((error: unknown) => console.error('Angular service-worker update check failed', error));\n }\n}\n\n/**\n * Provides a startup check that reloads into the latest complete web application version.\n *\n * @remarks\n * The check finishes before application bootstrap so a delayed update cannot discard user input. It times out rather\n * than preventing offline startup. API deployments must remain backward compatible while a newly adopted updater is\n * rolling out because code already running in older application versions cannot gain this behavior retroactively.\n */\nexport function provideKitAppUpdate(): EnvironmentProviders {\n return makeEnvironmentProviders([provideAppInitializer(() => inject(KitAppUpdateService).initialize())]);\n}\n\nfunction withTimeout<T>(promise: Promise<T>, timeoutMs: number): Promise<T | undefined> {\n return new Promise((resolve, reject) => {\n const timeout = window.setTimeout(() => resolve(undefined), timeoutMs);\n void promise.then(\n (value) => {\n window.clearTimeout(timeout);\n resolve(value);\n },\n (error: unknown) => {\n window.clearTimeout(timeout);\n reject(error instanceof Error ? error : new Error(String(error)));\n },\n );\n });\n}\n","/** Automatic startup updates for Angular service-worker web applications. */\nexport * from './lib/kit-app-update.provider';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA,MAAM,uBAAuB,GAAG,MAAM;AAEtC;MAEa,mBAAmB,CAAA;AACrB,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC5B,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IACpC,eAAe,GAAyB,IAAI;;IAG5C,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,eAAe,KAAK,IAAI,CAAC,WAAW,EAAE;QAC3C,OAAO,IAAI,CAAC,eAAe;IAC7B;AAEA,IAAA,MAAM,WAAW,GAAA;QACf,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,aAAa,EAAE,UAAU,EAAE;YAChG;QACF;AACA,QAAA,MAAM,cAAc,GAAG,YAA0C,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,EAAE,uBAAuB,CAAC;AACrI,QAAA,MAAM,cAAc;AACjB,aAAA,IAAI,CAAC,CAAC,SAAS,KAAI;AAClB,YAAA,IAAI,SAAS;AAAE,gBAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE;AAClD,QAAA,CAAC;AACA,aAAA,KAAK,CAAC,CAAC,KAAc,KAAK,OAAO,CAAC,KAAK,CAAC,4CAA4C,EAAE,KAAK,CAAC,CAAC;IAClG;+GArBW,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,cADN,MAAM,EAAA,CAAA,CAAA;;4FACnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAD/B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;AAyBlC;;;;;;;AAOG;SACa,mBAAmB,GAAA;AACjC,IAAA,OAAO,wBAAwB,CAAC,CAAC,qBAAqB,CAAC,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;AAC1G;AAEA,SAAS,WAAW,CAAI,OAAmB,EAAE,SAAiB,EAAA;IAC5D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAI;AACrC,QAAA,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,OAAO,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;AACtE,QAAA,KAAK,OAAO,CAAC,IAAI,CACf,CAAC,KAAK,KAAI;AACR,YAAA,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC;YAC5B,OAAO,CAAC,KAAK,CAAC;AAChB,QAAA,CAAC,EACD,CAAC,KAAc,KAAI;AACjB,YAAA,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC;YAC5B,MAAM,CAAC,KAAK,YAAY,KAAK,GAAG,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AACnE,QAAA,CAAC,CACF;AACH,IAAA,CAAC,CAAC;AACJ;;AC3DA;;ACAA;;AAEG;;;;"}
1
+ {"version":3,"file":"rdlabo-ionic-angular-kit-app-update.mjs","sources":["../../../projects/kit/app-update/src/lib/kit-app-update.provider.ts","../../../projects/kit/app-update/src/public-api.ts","../../../projects/kit/app-update/src/rdlabo-ionic-angular-kit-app-update.ts"],"sourcesContent":["import { DOCUMENT } from '@angular/common';\nimport type { EnvironmentProviders } from '@angular/core';\nimport { Injectable, inject, makeEnvironmentProviders, provideAppInitializer } from '@angular/core';\nimport { SwUpdate } from '@angular/service-worker';\n\nconst UPDATE_CHECK_TIMEOUT_MS = 10_000;\n\n/** Checks for a complete Angular service-worker update before users can interact with the application. */\n@Injectable({ providedIn: 'root' })\nexport class KitAppUpdateService {\n readonly #document = inject(DOCUMENT);\n readonly #updates = inject(SwUpdate);\n #initialization: Promise<void> | null = null;\n\n /** Runs one startup update check and reloads directly into a downloaded version when one is available. */\n initialize(): Promise<void> {\n this.#initialization ??= this.#initialize();\n return this.#initialization;\n }\n\n async #initialize(): Promise<void> {\n if (!this.#updates.isEnabled || !this.#document.defaultView?.navigator.serviceWorker?.controller) {\n return;\n }\n const checkForUpdate = async (): Promise<boolean | undefined> => withTimeout(this.#updates.checkForUpdate(), UPDATE_CHECK_TIMEOUT_MS);\n await checkForUpdate()\n .then((available) => {\n if (available) this.#document.location?.reload();\n })\n .catch((error: unknown) => console.error('Angular service-worker update check failed', error));\n }\n}\n\n/**\n * Provides a startup check that reloads into the latest complete web application version.\n *\n * @remarks\n * The check finishes before application bootstrap so a delayed update cannot discard user input. It times out rather\n * than preventing offline startup. API deployments must remain backward compatible while a newly adopted updater is\n * rolling out because code already running in older application versions cannot gain this behavior retroactively.\n */\nexport function provideKitAppUpdate(): EnvironmentProviders {\n return makeEnvironmentProviders([provideAppInitializer(() => inject(KitAppUpdateService).initialize())]);\n}\n\nfunction withTimeout<T>(promise: Promise<T>, timeoutMs: number): Promise<T | undefined> {\n return new Promise((resolve, reject) => {\n const timeout = window.setTimeout(() => resolve(undefined), timeoutMs);\n void promise.then(\n (value) => {\n window.clearTimeout(timeout);\n resolve(value);\n },\n (error: unknown) => {\n window.clearTimeout(timeout);\n reject(error instanceof Error ? error : new Error(String(error)));\n },\n );\n });\n}\n","/** Automatic startup updates for Angular service-worker web applications. */\nexport * from './lib/kit-app-update.provider';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAKA,MAAM,uBAAuB,GAAG,MAAM;AAEtC;MAEa,mBAAmB,CAAA;AACrB,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC5B,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;IACpC,eAAe,GAAyB,IAAI;;IAG5C,UAAU,GAAA;AACR,QAAA,IAAI,CAAC,eAAe,KAAK,IAAI,CAAC,WAAW,EAAE;QAC3C,OAAO,IAAI,CAAC,eAAe;IAC7B;AAEA,IAAA,MAAM,WAAW,GAAA;QACf,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE,SAAS,CAAC,aAAa,EAAE,UAAU,EAAE;YAChG;QACF;AACA,QAAA,MAAM,cAAc,GAAG,YAA0C,WAAW,CAAC,IAAI,CAAC,QAAQ,CAAC,cAAc,EAAE,EAAE,uBAAuB,CAAC;AACrI,QAAA,MAAM,cAAc;AACjB,aAAA,IAAI,CAAC,CAAC,SAAS,KAAI;AAClB,YAAA,IAAI,SAAS;AAAE,gBAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE;AAClD,QAAA,CAAC;AACA,aAAA,KAAK,CAAC,CAAC,KAAc,KAAK,OAAO,CAAC,KAAK,CAAC,4CAA4C,EAAE,KAAK,CAAC,CAAC;IAClG;8GArBW,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,cADN,MAAM,EAAA,CAAA,CAAA;;2FACnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAD/B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;AAyBlC;;;;;;;AAOG;SACa,mBAAmB,GAAA;AACjC,IAAA,OAAO,wBAAwB,CAAC,CAAC,qBAAqB,CAAC,MAAM,MAAM,CAAC,mBAAmB,CAAC,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC;AAC1G;AAEA,SAAS,WAAW,CAAI,OAAmB,EAAE,SAAiB,EAAA;IAC5D,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,KAAI;AACrC,QAAA,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,MAAM,OAAO,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC;AACtE,QAAA,KAAK,OAAO,CAAC,IAAI,CACf,CAAC,KAAK,KAAI;AACR,YAAA,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC;YAC5B,OAAO,CAAC,KAAK,CAAC;AAChB,QAAA,CAAC,EACD,CAAC,KAAc,KAAI;AACjB,YAAA,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC;YAC5B,MAAM,CAAC,KAAK,YAAY,KAAK,GAAG,KAAK,GAAG,IAAI,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC;AACnE,QAAA,CAAC,CACF;AACH,IAAA,CAAC,CAAC;AACJ;;AC3DA;;ACAA;;AAEG;;;;"}
@@ -1756,10 +1756,10 @@ class IonicOfflineRepository {
1756
1756
  throw new Error(`Unknown offline replica source key "${sourceKey}".`);
1757
1757
  return schema;
1758
1758
  }
1759
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: IonicOfflineRepository, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1760
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: IonicOfflineRepository, providedIn: 'root' }); }
1759
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: IonicOfflineRepository, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1760
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: IonicOfflineRepository, providedIn: 'root' }); }
1761
1761
  }
1762
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: IonicOfflineRepository, decorators: [{
1762
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: IonicOfflineRepository, decorators: [{
1763
1763
  type: Injectable,
1764
1764
  args: [{ providedIn: 'root' }]
1765
1765
  }] });
@@ -1980,10 +1980,10 @@ class OfflineReplicaMutationCoordinator {
1980
1980
  throw new Error(`Unknown offline replica source key "${sourceKey}".`);
1981
1981
  return schema;
1982
1982
  }
1983
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineReplicaMutationCoordinator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1984
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineReplicaMutationCoordinator, providedIn: 'root' }); }
1983
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaMutationCoordinator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1984
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaMutationCoordinator, providedIn: 'root' }); }
1985
1985
  }
1986
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineReplicaMutationCoordinator, decorators: [{
1986
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaMutationCoordinator, decorators: [{
1987
1987
  type: Injectable,
1988
1988
  args: [{ providedIn: 'root' }]
1989
1989
  }] });
@@ -2647,10 +2647,10 @@ class OfflineReplicaPullService {
2647
2647
  throw new Error(`Replica naturalKey is immutable for "${schema.sourceKey}".`);
2648
2648
  }
2649
2649
  }
2650
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineReplicaPullService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2651
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineReplicaPullService, providedIn: 'root' }); }
2650
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaPullService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2651
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaPullService, providedIn: 'root' }); }
2652
2652
  }
2653
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineReplicaPullService, decorators: [{
2653
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaPullService, decorators: [{
2654
2654
  type: Injectable,
2655
2655
  args: [{ providedIn: 'root' }]
2656
2656
  }] });
@@ -2669,10 +2669,14 @@ function isOfflineFallbackError(error) {
2669
2669
  /** Combines operating-system connectivity with observed API reachability. */
2670
2670
  class OfflineNetworkService {
2671
2671
  constructor() {
2672
- this.#osConnected = signal(null, ...(ngDevMode ? [{ debugName: "#osConnected" }] : /* istanbul ignore next */ []));
2673
- this.#apiReachable = signal(null, ...(ngDevMode ? [{ debugName: "#apiReachable" }] : /* istanbul ignore next */ []));
2674
- this.#appActive = signal(true, ...(ngDevMode ? [{ debugName: "#appActive" }] : /* istanbul ignore next */ []));
2675
- this.#lifecycleRevision = signal(0, ...(ngDevMode ? [{ debugName: "#lifecycleRevision" }] : /* istanbul ignore next */ []));
2672
+ this.#osConnected = signal(null, /* @ts-ignore */
2673
+ ...(ngDevMode ? [{ debugName: "#osConnected" }] : /* istanbul ignore next */ []));
2674
+ this.#apiReachable = signal(null, /* @ts-ignore */
2675
+ ...(ngDevMode ? [{ debugName: "#apiReachable" }] : /* istanbul ignore next */ []));
2676
+ this.#appActive = signal(true, /* @ts-ignore */
2677
+ ...(ngDevMode ? [{ debugName: "#appActive" }] : /* istanbul ignore next */ []));
2678
+ this.#lifecycleRevision = signal(0, /* @ts-ignore */
2679
+ ...(ngDevMode ? [{ debugName: "#lifecycleRevision" }] : /* istanbul ignore next */ []));
2676
2680
  this.#networkRevision = 0;
2677
2681
  this.#listeners = [];
2678
2682
  this.#initialized = false;
@@ -2682,8 +2686,10 @@ class OfflineNetworkService {
2682
2686
  if (this.#osConnected() === true && this.#apiReachable() === true)
2683
2687
  return 'online';
2684
2688
  return 'unverified';
2685
- }, ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
2686
- this.connected = computed(() => this.state() !== 'offline', ...(ngDevMode ? [{ debugName: "connected" }] : /* istanbul ignore next */ []));
2689
+ }, /* @ts-ignore */
2690
+ ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
2691
+ this.connected = computed(() => this.state() !== 'offline', /* @ts-ignore */
2692
+ ...(ngDevMode ? [{ debugName: "connected" }] : /* istanbul ignore next */ []));
2687
2693
  /** Whether Capacitor currently permits foreground transport work. */
2688
2694
  this.appActive = this.#appActive.asReadonly();
2689
2695
  /** Changes on every foreground/background transition, even when connectivity is unchanged. */
@@ -2750,10 +2756,10 @@ class OfflineNetworkService {
2750
2756
  if (this.#networkRevision === revision)
2751
2757
  this.#osConnected.set(status.connected);
2752
2758
  }
2753
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineNetworkService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2754
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineNetworkService, providedIn: 'root' }); }
2759
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineNetworkService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2760
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineNetworkService, providedIn: 'root' }); }
2755
2761
  }
2756
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineNetworkService, decorators: [{
2762
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineNetworkService, decorators: [{
2757
2763
  type: Injectable,
2758
2764
  args: [{ providedIn: 'root' }]
2759
2765
  }] });
@@ -2803,10 +2809,10 @@ class OfflineMutationAdmissionService {
2803
2809
  this.#idle = null;
2804
2810
  this.#resolveIdle = null;
2805
2811
  }
2806
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineMutationAdmissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2807
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineMutationAdmissionService, providedIn: 'root' }); }
2812
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationAdmissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2813
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationAdmissionService, providedIn: 'root' }); }
2808
2814
  }
2809
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineMutationAdmissionService, decorators: [{
2815
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationAdmissionService, decorators: [{
2810
2816
  type: Injectable,
2811
2817
  args: [{ providedIn: 'root' }]
2812
2818
  }] });
@@ -2908,8 +2914,10 @@ class OfflineSyncService {
2908
2914
  this.#replicaMutations = inject(OfflineReplicaMutationCoordinator);
2909
2915
  this.#errorHandler = inject(ErrorHandler);
2910
2916
  this.#retryRandom = inject(OFFLINE_RETRY_RANDOM);
2911
- this.#commands = signal([], ...(ngDevMode ? [{ debugName: "#commands" }] : /* istanbul ignore next */ []));
2912
- this.#pullAttentions = signal([], ...(ngDevMode ? [{ debugName: "#pullAttentions" }] : /* istanbul ignore next */ []));
2917
+ this.#commands = signal([], /* @ts-ignore */
2918
+ ...(ngDevMode ? [{ debugName: "#commands" }] : /* istanbul ignore next */ []));
2919
+ this.#pullAttentions = signal([], /* @ts-ignore */
2920
+ ...(ngDevMode ? [{ debugName: "#pullAttentions" }] : /* istanbul ignore next */ []));
2913
2921
  this.#knownScopes = new Map();
2914
2922
  /** In-memory scheduling cache for scopes whose authoritative post-send pull has not completed yet. */
2915
2923
  this.#pendingPullScopes = new Map();
@@ -2929,8 +2937,10 @@ class OfflineSyncService {
2929
2937
  this.#initialized = false;
2930
2938
  this.#lastCommandCreatedAt = 0;
2931
2939
  this.pendingCommands = this.#commands.asReadonly();
2932
- this.pendingCount = computed(() => this.pendingCommands().length, ...(ngDevMode ? [{ debugName: "pendingCount" }] : /* istanbul ignore next */ []));
2933
- this.conflicts = computed(() => this.#commands().filter((command) => command.state === 'conflict'), ...(ngDevMode ? [{ debugName: "conflicts" }] : /* istanbul ignore next */ []));
2940
+ this.pendingCount = computed(() => this.pendingCommands().length, /* @ts-ignore */
2941
+ ...(ngDevMode ? [{ debugName: "pendingCount" }] : /* istanbul ignore next */ []));
2942
+ this.conflicts = computed(() => this.#commands().filter((command) => command.state === 'conflict'), /* @ts-ignore */
2943
+ ...(ngDevMode ? [{ debugName: "conflicts" }] : /* istanbul ignore next */ []));
2934
2944
  /** Durable fatal-pull attentions for the active principal, restored across restart. */
2935
2945
  this.pullAttentions = this.#pullAttentions.asReadonly();
2936
2946
  this.syncState = computed(() => {
@@ -2945,7 +2955,8 @@ class OfflineSyncService {
2945
2955
  if (commands.some((command) => command.state === 'sending'))
2946
2956
  return 'syncing';
2947
2957
  return commands.length > 0 ? 'pending' : 'idle';
2948
- }, ...(ngDevMode ? [{ debugName: "syncState" }] : /* istanbul ignore next */ []));
2958
+ }, /* @ts-ignore */
2959
+ ...(ngDevMode ? [{ debugName: "syncState" }] : /* istanbul ignore next */ []));
2949
2960
  effect(() => {
2950
2961
  const connected = this.#network.connected();
2951
2962
  const appActive = this.#appActive();
@@ -4412,10 +4423,10 @@ class OfflineSyncService {
4412
4423
  #scopeKey(scope) {
4413
4424
  return `${canonicalOfflinePrincipalId(scope.userId)}:${scope.scopeId}`;
4414
4425
  }
4415
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineSyncService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4416
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineSyncService, providedIn: 'root' }); }
4426
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSyncService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4427
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSyncService, providedIn: 'root' }); }
4417
4428
  }
4418
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineSyncService, decorators: [{
4429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSyncService, decorators: [{
4419
4430
  type: Injectable,
4420
4431
  args: [{ providedIn: 'root' }]
4421
4432
  }], ctorParameters: () => [] });
@@ -4466,7 +4477,8 @@ class OfflineMutationPersistenceService {
4466
4477
  this.#sync = inject(OfflineSyncService);
4467
4478
  this.#admission = inject(OfflineMutationAdmissionService);
4468
4479
  this.#configured = this.#options.mode !== 'readCacheOnly' && this.#options.mutationPersistence !== undefined;
4469
- this.#state = signal(this.#configured ? 'initializing' : 'enabled', ...(ngDevMode ? [{ debugName: "#state" }] : /* istanbul ignore next */ []));
4480
+ this.#state = signal(this.#configured ? 'initializing' : 'enabled', /* @ts-ignore */
4481
+ ...(ngDevMode ? [{ debugName: "#state" }] : /* istanbul ignore next */ []));
4470
4482
  this.#initializePromise = null;
4471
4483
  this.#transitionTail = settledMutationPersistence();
4472
4484
  this.#transitionRevision = 0;
@@ -4475,9 +4487,11 @@ class OfflineMutationPersistenceService {
4475
4487
  /** Whether the product configured a device-local mutation persistence preference. */
4476
4488
  this.available = this.#configured;
4477
4489
  /** Whether new durable Outbox mutations are currently accepted. */
4478
- this.enabled = computed(() => this.#state() === 'enabled', ...(ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []));
4490
+ this.enabled = computed(() => this.#state() === 'enabled', /* @ts-ignore */
4491
+ ...(ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []));
4479
4492
  /** Whether Kit is draining accepted and pending mutations before disabling. */
4480
- this.changing = computed(() => this.#state() === 'disabling', ...(ngDevMode ? [{ debugName: "changing" }] : /* istanbul ignore next */ []));
4493
+ this.changing = computed(() => this.#state() === 'disabling', /* @ts-ignore */
4494
+ ...(ngDevMode ? [{ debugName: "changing" }] : /* istanbul ignore next */ []));
4481
4495
  }
4482
4496
  #options;
4483
4497
  #errorHandler;
@@ -4596,10 +4610,10 @@ class OfflineMutationPersistenceService {
4596
4610
  throw new Error('Offline mutation persistence adapter is not provided.');
4597
4611
  return this.#persistence;
4598
4612
  }
4599
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineMutationPersistenceService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4600
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineMutationPersistenceService, providedIn: 'root' }); }
4613
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationPersistenceService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4614
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationPersistenceService, providedIn: 'root' }); }
4601
4615
  }
4602
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineMutationPersistenceService, decorators: [{
4616
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationPersistenceService, decorators: [{
4603
4617
  type: Injectable,
4604
4618
  args: [{ providedIn: 'root' }]
4605
4619
  }] });
@@ -4614,7 +4628,8 @@ function offlineSessionManifestAllows(manifest, authSubject, scopeId) {
4614
4628
  class OfflineSessionService {
4615
4629
  constructor() {
4616
4630
  this.#repository = inject(OFFLINE_REPOSITORY);
4617
- this.#activeManifest = signal(null, ...(ngDevMode ? [{ debugName: "#activeManifest" }] : /* istanbul ignore next */ []));
4631
+ this.#activeManifest = signal(null, /* @ts-ignore */
4632
+ ...(ngDevMode ? [{ debugName: "#activeManifest" }] : /* istanbul ignore next */ []));
4618
4633
  this.#initialized = false;
4619
4634
  this.#localAccessThisRun = false;
4620
4635
  this.#remoteActivatedThisRun = false;
@@ -4750,10 +4765,10 @@ class OfflineSessionService {
4750
4765
  ? { userId: manifest.userId, scopes: manifest.scopeIds.map((scopeId) => ({ userId: manifest.userId, scopeId })) }
4751
4766
  : null;
4752
4767
  }
4753
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineSessionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4754
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineSessionService, providedIn: 'root' }); }
4768
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSessionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4769
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSessionService, providedIn: 'root' }); }
4755
4770
  }
4756
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineSessionService, decorators: [{
4771
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSessionService, decorators: [{
4757
4772
  type: Injectable,
4758
4773
  args: [{ providedIn: 'root' }]
4759
4774
  }] });
@@ -4790,7 +4805,8 @@ class OfflineCoordinatorService {
4790
4805
  this.#sync = inject(OfflineSyncService);
4791
4806
  this.#session = inject(OfflineSessionService);
4792
4807
  this.#options = inject(OFFLINE_KIT_OPTIONS);
4793
- this.#storageState = signal({ status: 'initializing' }, ...(ngDevMode ? [{ debugName: "#storageState" }] : /* istanbul ignore next */ []));
4808
+ this.#storageState = signal({ status: 'initializing' }, /* @ts-ignore */
4809
+ ...(ngDevMode ? [{ debugName: "#storageState" }] : /* istanbul ignore next */ []));
4794
4810
  this.#localInitialization = null;
4795
4811
  this.#syncInitialization = null;
4796
4812
  this.#runtimeInitialization = null;
@@ -4807,7 +4823,8 @@ class OfflineCoordinatorService {
4807
4823
  *
4808
4824
  * Use this (or {@link storageState}) to disable offline mutations and replica reads when storage is unavailable.
4809
4825
  */
4810
- this.isStorageReady = computed(() => this.#storageState().status === 'ready', ...(ngDevMode ? [{ debugName: "isStorageReady" }] : /* istanbul ignore next */ []));
4826
+ this.isStorageReady = computed(() => this.#storageState().status === 'ready', /* @ts-ignore */
4827
+ ...(ngDevMode ? [{ debugName: "isStorageReady" }] : /* istanbul ignore next */ []));
4811
4828
  this.networkState = this.#network.state;
4812
4829
  this.syncState = this.#sync.syncState;
4813
4830
  this.pendingCount = this.#sync.pendingCount;
@@ -4970,10 +4987,10 @@ class OfflineCoordinatorService {
4970
4987
  this.#transitionTail = transition.then(() => undefined, () => undefined);
4971
4988
  return transition;
4972
4989
  }
4973
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineCoordinatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4974
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineCoordinatorService, providedIn: 'root' }); }
4990
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineCoordinatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
4991
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineCoordinatorService, providedIn: 'root' }); }
4975
4992
  }
4976
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineCoordinatorService, decorators: [{
4993
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineCoordinatorService, decorators: [{
4977
4994
  type: Injectable,
4978
4995
  args: [{ providedIn: 'root' }]
4979
4996
  }] });
@@ -5310,10 +5327,10 @@ class OfflineRequestPolicyRegistry {
5310
5327
  }
5311
5328
  return null;
5312
5329
  }
5313
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineRequestPolicyRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5314
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineRequestPolicyRegistry, providedIn: 'root' }); }
5330
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestPolicyRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5331
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestPolicyRegistry, providedIn: 'root' }); }
5315
5332
  }
5316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineRequestPolicyRegistry, decorators: [{
5333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestPolicyRegistry, decorators: [{
5317
5334
  type: Injectable,
5318
5335
  args: [{ providedIn: 'root' }]
5319
5336
  }] });
@@ -5341,10 +5358,10 @@ class OfflineMutationRequestPolicyRegistry {
5341
5358
  throw new OfflineMutationPolicyConflictError(request, matchCount);
5342
5359
  return matched;
5343
5360
  }
5344
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineMutationRequestPolicyRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5345
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineMutationRequestPolicyRegistry, providedIn: 'root' }); }
5361
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationRequestPolicyRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
5362
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationRequestPolicyRegistry, providedIn: 'root' }); }
5346
5363
  }
5347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineMutationRequestPolicyRegistry, decorators: [{
5364
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationRequestPolicyRegistry, decorators: [{
5348
5365
  type: Injectable,
5349
5366
  args: [{ providedIn: 'root' }]
5350
5367
  }] });
@@ -6576,10 +6593,10 @@ class SqliteOfflineRepository {
6576
6593
  #stringOrNull(value) {
6577
6594
  return value == null ? null : this.#string(value);
6578
6595
  }
6579
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SqliteOfflineRepository, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
6580
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SqliteOfflineRepository, providedIn: 'root' }); }
6596
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SqliteOfflineRepository, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
6597
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SqliteOfflineRepository, providedIn: 'root' }); }
6581
6598
  }
6582
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: SqliteOfflineRepository, decorators: [{
6599
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SqliteOfflineRepository, decorators: [{
6583
6600
  type: Injectable,
6584
6601
  args: [{ providedIn: 'root' }]
6585
6602
  }] });
@@ -6831,10 +6848,10 @@ class OfflineRequestFallbackService {
6831
6848
  return throwError(() => error);
6832
6849
  }), concatMap((cached) => cached ? of(cached.clone({ headers: cached.headers.set(OFFLINE_RESPONSE_HEADER, 'local') })) : throwError(() => error)));
6833
6850
  }
6834
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineRequestFallbackService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
6835
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineRequestFallbackService, providedIn: 'root' }); }
6851
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestFallbackService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
6852
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestFallbackService, providedIn: 'root' }); }
6836
6853
  }
6837
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: OfflineRequestFallbackService, decorators: [{
6854
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestFallbackService, decorators: [{
6838
6855
  type: Injectable,
6839
6856
  args: [{ providedIn: 'root' }]
6840
6857
  }] });