@softpak/components 21.0.5 → 21.0.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 +1 @@
1
- {"version":3,"file":"softpak-components-spx-update.mjs","sources":["../../../../projects/softpak/components/spx-update/store/spx-update-check/spx-update-check.actions.ts","../../../../projects/softpak/components/spx-update/store/spx-update-check/spx-update-check.initial.ts","../../../../projects/softpak/components/spx-update/store/spx-update-check/spx-update-check.reducer.ts","../../../../projects/softpak/components/spx-update/spx-update-page.component.ts","../../../../projects/softpak/components/spx-update/spx-update-page.component.html","../../../../projects/softpak/components/spx-update/store/spx-update-pending/spx-update-pending.actions.ts","../../../../projects/softpak/components/spx-update/store/spx-update-pending/spx-update-pending.initial.ts","../../../../projects/softpak/components/spx-update/store/spx-update-pending/spx-update-pending.reducer.ts","../../../../projects/softpak/components/spx-update/spx-update-pending.component.ts","../../../../projects/softpak/components/spx-update/spx-update-pending.component.html","../../../../projects/softpak/components/spx-update/spx-update-url.ts","../../../../projects/softpak/components/spx-update/store/spx-update-check/spx-update-check.effects.ts","../../../../projects/softpak/components/spx-update/store/spx-update-pending/spx-update-pending.effects.ts","../../../../projects/softpak/components/spx-update/softpak-components-spx-update.ts"],"sourcesContent":["import { createAction, props, union } from '@ngrx/store';\n\nexport const anUpdateIsReady = createAction('[SPX / Update Check] An update is ready', props<Record<string, unknown>>());\nexport const clearError = createAction('[SPX / Update Check] Clear error', props<Record<string, unknown>>());\nexport const checkFailed = createAction('[SPX / Update Check] Error happened', props<{ startUpdateAgainAfterTimeout?: boolean }>());\nexport const initialize = createAction('[SPX / Update Check] Initialize', props<Record<string, unknown>>());\nexport const noUpdateWasFound = createAction('[SPX / Update Check] No update was found', props<{ startUpdateAgainAfterTimeout?: boolean }>());\nexport const notAvailableOnWeb = createAction('[SPX / Update Check] Not available on web', props<Record<string, unknown>>());\nexport const runCheck = createAction('[SPX / Update Check] Run', props<{ forceWaitForUpdate?: boolean; }>());\n\nconst all = union({\n anUpdateIsReady,\n clearError,\n checkFailed,\n initialize,\n noUpdateWasFound,\n notAvailableOnWeb,\n runCheck,\n});\n\nexport type Actions = typeof all;\n","import { StateI } from \"./spx-update-check.state\";\n\nexport const initialState: StateI = {\n forceWaitForUpdate: false,\n lastCheck: null,\n showError: false,\n};\n","\nimport * as actions from './spx-update-check.actions';\nimport { createFeature, createReducer, on } from '@ngrx/store';\nimport { StateI } from './spx-update-check.state';\nimport { initialState } from './spx-update-check.initial';\nimport { DateTime } from 'luxon';\n \nexport default createFeature({\n name: 'spxUpdateCheck',\n reducer: createReducer(\n initialState,\n on(actions.anUpdateIsReady, (state: StateI): StateI => {\n return {\n ...state,\n lastCheck: DateTime.now().toISO(),\n showError: false,\n };\n }),\n on(actions.clearError, (state: StateI): StateI => {\n return {\n ...state,\n showError: false,\n };\n }),\n on(actions.checkFailed, (state: StateI): StateI => {\n return {\n ...state,\n forceWaitForUpdate: false,\n showError: true,\n };\n }),\n on(actions.noUpdateWasFound, (state: StateI): StateI => {\n return {\n ...state,\n forceWaitForUpdate: false,\n lastCheck: DateTime.now().toISO(),\n showError: false,\n };\n }),\n on(actions.runCheck, (state: StateI, { forceWaitForUpdate }): StateI => {\n return {\n ...state,\n forceWaitForUpdate: forceWaitForUpdate ? true : state.forceWaitForUpdate\n };\n }),\n on(actions.notAvailableOnWeb, (state: StateI): StateI => {\n return {\n ...state,\n forceWaitForUpdate: false\n };\n }),\n ),\n});\n","import { Component } from '@angular/core';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { IonContent, IonHeader, IonTitle, IonToolbar, NavController } from '@ionic/angular/standalone';\nimport { Subscription } from 'rxjs';\nimport { Store } from '@ngrx/store';\nimport { runCheck } from './store/spx-update-check/spx-update-check.actions';\nimport { default as updCheck } from './store/spx-update-check/spx-update-check.reducer';\nimport { unsubscribeSubscriptions } from '@softpak/components/spx-helpers';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { spxTextCheckingForUpdates, spxTextOneMomentPlease } from '@softpak/components/spx-translate';\nimport { ActivatedRoute } from '@angular/router';\n\n@Component({\n selector: 'spx-update-page',\n imports: [\n IonContent,\n IonHeader,\n IonToolbar,\n IonTitle,\n SpxCapitalizePipe,\n TranslatePipe,\n ],\n templateUrl: `./spx-update-page.component.html`,\n standalone: true,\n})\nexport class SpxUpdatePageComponent {\n spxTextCheckingForUpdates = spxTextCheckingForUpdates;\n spxTextOneMomentPlease = spxTextOneMomentPlease;\n\n private subscriptions: {\n updCheck?: Subscription;\n } = {};\n\n ngOnInit() {\n this.appStore.dispatch(runCheck({ forceWaitForUpdate: true }));\n this.subscriptions.updCheck = this.appStore.select(updCheck.selectForceWaitForUpdate).subscribe(forceWaitForUpdate => {\n if (forceWaitForUpdate === false) {\n if (this.activatedRoute.snapshot.data['url'] === undefined) {\n console.error('configure data property \\'url\\' in route for update page');\n }\n this.navController.navigateRoot(this.activatedRoute.snapshot.data['url']);\n }\n });\n }\n\n ngOnDestroy() {\n unsubscribeSubscriptions(this.subscriptions);\n }\n\n constructor(\n private readonly appStore: Store,\n private readonly activatedRoute: ActivatedRoute,\n private readonly navController: NavController,\n ) {\n }\n}\n","<ion-header>\n <ion-toolbar>\n <ion-title>\n {{ spxTextCheckingForUpdates | translate | capitalize }}\n </ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"ion-padding\">\n {{ spxTextOneMomentPlease | translate | capitalize }}...\n</ion-content>\n","import { createAction, props, union } from '@ngrx/store';\n\nexport const acceptUpdate = createAction('[SPX / Update Pending] Accept update', props<Record<string, unknown>>());\nexport const hasBeenDownloaded = createAction('[SPX / Update Pending] Has been downloaded', props<Record<string, unknown>>());\nexport const hasBeenInstalled = createAction('[SPX / Update Pending] Has been installed', props<Record<string, unknown>>());\nexport const postpone = createAction('[SPX / Update Pending] Postpone', props<Record<string, unknown>>());\nexport const postponeExpired = createAction('[SPX / Update Pending] Postpone expired', props<Record<string, unknown>>());\n\nconst all = union({\n acceptUpdate,\n hasBeenDownloaded,\n hasBeenInstalled,\n postpone,\n postponeExpired,\n});\n\nexport type Actions = typeof all;\n","import { StateI } from \"./spx-update-pending.state\";\n\nexport const initialState: StateI = {\n showLiveUpdateReady: false,\n updateIsDownloadedAndPending: false,\n};\n","\nimport * as actions from './spx-update-pending.actions';\nimport { createReducer, on, createFeature } from '@ngrx/store';\nimport { StateI } from './spx-update-pending.state';\nimport { initialState } from './spx-update-pending.initial';\n\nexport default createFeature({\n name: 'spxUpdatePending',\n reducer: createReducer(\n initialState,\n on(actions.hasBeenDownloaded, (state: StateI): StateI => {\n return {\n ...state,\n showLiveUpdateReady: true,\n updateIsDownloadedAndPending: true,\n };\n }),\n on(actions.hasBeenInstalled, (state: StateI): StateI => {\n return {\n ...state,\n showLiveUpdateReady: false,\n updateIsDownloadedAndPending: false,\n };\n }),\n on(actions.postpone, (state: StateI): StateI => {\n return {\n ...state,\n showLiveUpdateReady: false,\n };\n }),\n on(actions.postponeExpired, (state: StateI): StateI => {\n return {\n ...state,\n showLiveUpdateReady: true,\n };\n }),\n ),\n});\n","import { ChangeDetectionStrategy, Component, HostBinding, signal } from '@angular/core';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { Subscription } from 'rxjs';\nimport { Store } from '@ngrx/store';\nimport { acceptUpdate } from './store/spx-update-pending/spx-update-pending.actions';\nimport { default as updPending } from './store/spx-update-pending/spx-update-pending.reducer';\nimport { SpxSeverityEnum, unsubscribeSubscriptions } from '@softpak/components/spx-helpers';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { spxTextOpenAppStore, spxTextPatchAvailable, spxTextReadyToBeInstalled, spxTextUpdate, spxTextUpdateAvailable } from '@softpak/components/spx-translate';\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\nimport { DomSanitizer, SafeStyle } from '@angular/platform-browser';\n\n@Component({\n selector: 'spx-update-pending',\n imports: [\n SpxButtonComponent,\n SpxCapitalizePipe,\n TranslatePipe,\n ],\n templateUrl: `./spx-update-pending.component.html`,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SpxUpdatePendingComponent {\n @HostBinding('style') baseStyle?: SafeStyle;\n availableStoreVersion = signal<undefined | string>(undefined);\n currentStoreVersion = signal<undefined | string>(undefined);\n severitySuccess = SpxSeverityEnum.success;\n showLiveUpdateReady = signal<boolean>(false);\n spxTextUpdate = spxTextUpdate;\n spxTextReadyToBeInstalled = spxTextReadyToBeInstalled;\n spxTextPatchAvailable = spxTextPatchAvailable;\n spxTextUpdateAvailable = spxTextUpdateAvailable;\n spxTextOpenAppStore = spxTextOpenAppStore;\n\n private subscriptions: {\n updPending?: Subscription;\n } = {};\n\n ngOnInit() {\n this.subscriptions.updPending = this.appStore.select(updPending.selectShowLiveUpdateReady).subscribe(showLiveUpdateReady => {\n this.showLiveUpdateReady.set(showLiveUpdateReady);\n if (showLiveUpdateReady) {\n this.baseStyle = this.sanitizer.bypassSecurityTrustStyle('display: block;');\n } else {\n this.baseStyle = this.sanitizer.bypassSecurityTrustStyle('display: none;');\n }\n });\n }\n\n ngOnDestroy() {\n unsubscribeSubscriptions(this.subscriptions);\n }\n\n constructor(\n private readonly appStore: Store,\n private sanitizer: DomSanitizer,\n ) {}\n\n onUpdate(): void {\n this.appStore.dispatch(acceptUpdate({}));\n }\n}\n","@if (showLiveUpdateReady()) {\n<div class=\"bg-zinc-700 text-black p-3 rounded flex gap-3 mx-auto max-w-lg items-center\">\n <div class=\"grow\">\n <p\n class=\"text-xl font-extrabold bg-clip-text text-transparent bg-[linear-gradient(to_right,theme(colors.green.300),theme(colors.green.100),theme(colors.sky.400),theme(colors.yellow.200),theme(colors.sky.400),theme(colors.green.100),theme(colors.green.300))] bg-[length:200%_auto] animate-gradient\">\n {{ spxTextPatchAvailable | translate | capitalize }}</p>\n <div class=\"text-sm text-zinc-300\">{{ spxTextReadyToBeInstalled | translate | capitalize }}</div>\n </div>\n <spx-button [spxSeverity]=\"severitySuccess\" (spxClick)=\"onUpdate()\">{{ spxTextUpdate | translate | capitalize\n }}</spx-button>\n</div>\n}","export const spxUpdateUrl = '';","import * as actions from './spx-update-check.actions';\n\nimport { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { Injectable, inject } from '@angular/core';\nimport { Observable, from, of } from 'rxjs';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { SyncResult, getConfig, reload, setConfig, sync } from '@capacitor/live-updates';\nimport { catchError, delay, exhaustMap, map, mergeMap, tap } from 'rxjs/operators';\n\nimport { App } from '@capacitor/app';\nimport { Capacitor } from '@capacitor/core';\nimport { SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\nimport { captureMessage } from '@sentry/angular';\nimport { hasBeenDownloaded } from '../spx-update-pending/spx-update-pending.actions';\n\n@Injectable()\nexport class Effects {\n private readonly actions$ = inject(Actions);\n\n afterInitialize$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(actions.initialize),\n delay(120000),\n mergeMap(() => [\n actions.runCheck({}),\n ]))\n );\n onRun$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(actions.runCheck),\n tap(async () => {\n if (Capacitor.getPlatform() !== 'web') {\n // Migrate from e.g. 1.2.x to 1.3.x\n const binaryInfo = await App.getInfo()\n const binaryVersionGroup = binaryInfo.version.substring(0, 3);\n const config = await getConfig();\n const channelVersionGroup = config.channel!.split('-')[1].substring(0, 3); // e.g. \"1.4\"\n let channelType = config.channel!.split('-')[0];\n\n SpxStorage.setSetting(SpxStorageKeyEnum.binaryVersionGroup, `${binaryVersionGroup}.x`);\n SpxStorage.setSetting(SpxStorageKeyEnum.lastBinaryVersionGroup, `${channelVersionGroup}.x`);\n\n // Temp fix\n if (channelType === 'null') {\n channelType = 'Production';\n }\n // End temp fix\n if (channelType === null || binaryVersionGroup != channelVersionGroup) {\n await setConfig({\n channel: `${channelType ? channelType : SpxAppChannelTypeEnum.production}-${binaryVersionGroup}.x`\n });\n }\n // End migrate from e.g. 1.2.x to 1.3.x\n }\n }),\n exhaustMap((action) => from(sync()).pipe(\n map((syncResult: SyncResult) => {\n if (syncResult.activeApplicationPathChanged) {\n SpxStorage.setSetting(SpxStorageKeyEnum.liveUpdate, syncResult.snapshot?.buildId as string);\n if (action.forceWaitForUpdate) {\n reload();\n }\n return actions.anUpdateIsReady({});\n } else {\n return actions.noUpdateWasFound({ startUpdateAgainAfterTimeout: !action.forceWaitForUpdate });\n }\n }),\n catchError((err) => {\n if (err.message !== 'Not implemented for web only') {\n captureMessage(\"[UPD] Handled: \" + err.message);\n }\n return err.message === 'Not implemented for web only' ? of(actions.notAvailableOnWeb({})) : of(actions.checkFailed({ startUpdateAgainAfterTimeout: false }))\n })\n )),\n ));\n\n whenAndUpdateIsReady$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(actions.anUpdateIsReady),\n mergeMap(() => [\n hasBeenDownloaded({}),\n ]))\n );\n\n whenCheckHasFailed$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(actions.checkFailed),\n delay(30000),\n mergeMap((action) => !action.startUpdateAgainAfterTimeout ? [] : [\n actions.runCheck({}),\n ]))\n );\n\n whenNoUpdateWasFound$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(actions.noUpdateWasFound),\n delay(120000),\n mergeMap((action) => !action.startUpdateAgainAfterTimeout ? [] : [\n actions.runCheck({}),\n ]))\n );\n}\n\n","import { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { Observable } from 'rxjs';\nimport { mergeMap } from 'rxjs/operators';\nimport { Injectable } from '@angular/core';\nimport * as actions from './spx-update-pending.actions';\nimport { reload } from '@capacitor/live-updates';\n\n@Injectable()\nexport class Effects {\n\n constructor(\n private readonly actions$: Actions,\n ) { }\n\n whenAccepted$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(actions.acceptUpdate),\n mergeMap(() => {\n reload();\n return []; \n })) as any\n );\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["all","initialState","actions.anUpdateIsReady","actions.clearError","actions.checkFailed","actions.noUpdateWasFound","actions.runCheck","actions.notAvailableOnWeb","actions.hasBeenDownloaded","actions.hasBeenInstalled","actions.postpone","actions.postponeExpired","i2","actions.initialize","Effects","actions.acceptUpdate","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEO,MAAM,eAAe,GAAG,YAAY,CAAC,yCAAyC,EAAE,KAAK,EAA2B,CAAC;AACjH,MAAM,UAAU,GAAG,YAAY,CAAC,kCAAkC,EAAE,KAAK,EAA2B,CAAC;AACrG,MAAM,WAAW,GAAG,YAAY,CAAC,qCAAqC,EAAE,KAAK,EAA8C,CAAC;AAC5H,MAAM,UAAU,GAAG,YAAY,CAAC,iCAAiC,EAAE,KAAK,EAA2B,CAAC;AACpG,MAAM,gBAAgB,GAAG,YAAY,CAAC,0CAA0C,EAAE,KAAK,EAA8C,CAAC;AACtI,MAAM,iBAAiB,GAAG,YAAY,CAAC,2CAA2C,EAAE,KAAK,EAA2B,CAAC;AACrH,MAAM,QAAQ,GAAG,YAAY,CAAC,0BAA0B,EAAE,KAAK,EAAqC,CAAC;AAE5G,MAAMA,KAAG,GAAG,KAAK,CAAC;IACd,eAAe;IACf,UAAU;IACV,WAAW;IACX,UAAU;IACV,gBAAgB;IAChB,iBAAiB;IACjB,QAAQ;AACX,CAAA,CAAC;;;;;;;;;;;;;AChBK,MAAMC,cAAY,GAAW;AAChC,IAAA,kBAAkB,EAAE,KAAK;AACzB,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,SAAS,EAAE,KAAK;CACnB;;;;;;;ACCD,eAAe,aAAa,CAAC;AACzB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,OAAO,EAAE,aAAa,CAClBA,cAAY,EACZ,EAAE,CAACC,eAAuB,EAAE,CAAC,KAAa,KAAY;QAClD,OAAO;AACH,YAAA,GAAG,KAAK;AACR,YAAA,SAAS,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;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AAA,CAAA,EAAA,KAAA,EAAAC,IAAA,CAAA,OAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAP,OAAO,EAAA,CAAA,CAAA;;2FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBADnB;;;;;;;;;;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"softpak-components-spx-update.mjs","sources":["../../../../projects/softpak/components/spx-update/store/spx-update-check/spx-update-check.actions.ts","../../../../projects/softpak/components/spx-update/store/spx-update-check/spx-update-check.initial.ts","../../../../projects/softpak/components/spx-update/store/spx-update-check/spx-update-check.reducer.ts","../../../../projects/softpak/components/spx-update/spx-update-page.component.ts","../../../../projects/softpak/components/spx-update/spx-update-page.component.html","../../../../projects/softpak/components/spx-update/store/spx-update-pending/spx-update-pending.actions.ts","../../../../projects/softpak/components/spx-update/store/spx-update-pending/spx-update-pending.initial.ts","../../../../projects/softpak/components/spx-update/store/spx-update-pending/spx-update-pending.reducer.ts","../../../../projects/softpak/components/spx-update/spx-update-pending.component.ts","../../../../projects/softpak/components/spx-update/spx-update-pending.component.html","../../../../projects/softpak/components/spx-update/spx-update-url.ts","../../../../projects/softpak/components/spx-update/store/spx-update-check/spx-update-check.effects.ts","../../../../projects/softpak/components/spx-update/store/spx-update-pending/spx-update-pending.effects.ts","../../../../projects/softpak/components/spx-update/softpak-components-spx-update.ts"],"sourcesContent":["import { createActionGroup, emptyProps, props } from '@ngrx/store';\n\nexport const spxUpdateCheckActions = createActionGroup({\n source: 'SpxUpdateCheck',\n events: {\n anUpdateIsReady: emptyProps(),\n checkFailed: props<{ startUpdateAgainAfterTimeout?: boolean; }>(),\n clearError: emptyProps(),\n initialize: emptyProps(),\n noUpdateWasFound: props<{ startUpdateAgainAfterTimeout?: boolean; }>(),\n notAvailableOnWeb: emptyProps(),\n runCheck: props<{ forceWaitForUpdate?: boolean }>(),\n },\n});\n","import { StateI } from \"./spx-update-check.state\";\n\nexport const initialState: StateI = {\n forceWaitForUpdate: false,\n lastCheck: null,\n showError: false,\n};\n","import { createFeature, createReducer, on } from '@ngrx/store';\n\nimport { DateTime } from 'luxon';\nimport { StateI } from './spx-update-check.state';\nimport { initialState } from './spx-update-check.initial';\nimport { spxUpdateCheckActions } from './spx-update-check.actions';\n\nexport default createFeature({\n name: 'spxUpdateCheck',\n reducer: createReducer(\n initialState,\n on(spxUpdateCheckActions.anUpdateIsReady, (state: StateI): StateI => {\n return {\n ...state,\n lastCheck: DateTime.now().toISO(),\n showError: false,\n };\n }),\n on(spxUpdateCheckActions.clearError, (state: StateI): StateI => {\n return {\n ...state,\n showError: false,\n };\n }),\n on(spxUpdateCheckActions.checkFailed, (state: StateI): StateI => {\n return {\n ...state,\n forceWaitForUpdate: false,\n showError: true,\n };\n }),\n on(spxUpdateCheckActions.noUpdateWasFound, (state: StateI): StateI => {\n return {\n ...state,\n forceWaitForUpdate: false,\n lastCheck: DateTime.now().toISO(),\n showError: false,\n };\n }),\n on(spxUpdateCheckActions.runCheck, (state: StateI, { forceWaitForUpdate }): StateI => {\n return {\n ...state,\n forceWaitForUpdate: forceWaitForUpdate ? true : state.forceWaitForUpdate\n };\n }),\n on(spxUpdateCheckActions.notAvailableOnWeb, (state: StateI): StateI => {\n return {\n ...state,\n forceWaitForUpdate: false\n };\n }),\n ),\n});\n","import { IonContent, IonHeader, IonTitle, IonToolbar, NavController } from '@ionic/angular/standalone';\nimport { spxTextCheckingForUpdates, spxTextOneMomentPlease } from '@softpak/components/spx-translate';\n\nimport { ActivatedRoute } from '@angular/router';\nimport { Component } from '@angular/core';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { Store } from '@ngrx/store';\nimport { Subscription } from 'rxjs';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { spxUpdateCheckActions } from './store/spx-update-check/spx-update-check.actions';\nimport { unsubscribeSubscriptions } from '@softpak/components/spx-helpers';\nimport { default as updCheck } from './store/spx-update-check/spx-update-check.reducer';\n\n@Component({\n selector: 'spx-update-page',\n imports: [\n IonContent,\n IonHeader,\n IonToolbar,\n IonTitle,\n SpxCapitalizePipe,\n TranslatePipe,\n ],\n templateUrl: `./spx-update-page.component.html`,\n standalone: true,\n})\nexport class SpxUpdatePageComponent {\n spxTextCheckingForUpdates = spxTextCheckingForUpdates;\n spxTextOneMomentPlease = spxTextOneMomentPlease;\n\n private subscriptions: {\n updCheck?: Subscription;\n } = {};\n\n ngOnInit() {\n this.appStore.dispatch(spxUpdateCheckActions.runCheck({ forceWaitForUpdate: true }));\n this.subscriptions.updCheck = this.appStore.select(updCheck.selectForceWaitForUpdate).subscribe(forceWaitForUpdate => {\n if (forceWaitForUpdate === false) {\n if (this.activatedRoute.snapshot.data['url'] === undefined) {\n console.error('configure data property \\'url\\' in route for update page');\n }\n this.navController.navigateRoot(this.activatedRoute.snapshot.data['url']);\n }\n });\n }\n\n ngOnDestroy() {\n unsubscribeSubscriptions(this.subscriptions);\n }\n\n constructor(\n private readonly appStore: Store,\n private readonly activatedRoute: ActivatedRoute,\n private readonly navController: NavController,\n ) {\n }\n}\n","<ion-header>\n <ion-toolbar>\n <ion-title>\n {{ spxTextCheckingForUpdates | translate | capitalize }}\n </ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"ion-padding\">\n {{ spxTextOneMomentPlease | translate | capitalize }}...\n</ion-content>\n","import { createAction, props, union } from '@ngrx/store';\n\nexport const acceptUpdate = createAction('[SPX / Update Pending] Accept update', props<Record<string, unknown>>());\nexport const hasBeenDownloaded = createAction('[SPX / Update Pending] Has been downloaded', props<Record<string, unknown>>());\nexport const hasBeenInstalled = createAction('[SPX / Update Pending] Has been installed', props<Record<string, unknown>>());\nexport const postpone = createAction('[SPX / Update Pending] Postpone', props<Record<string, unknown>>());\nexport const postponeExpired = createAction('[SPX / Update Pending] Postpone expired', props<Record<string, unknown>>());\n\nconst all = union({\n acceptUpdate,\n hasBeenDownloaded,\n hasBeenInstalled,\n postpone,\n postponeExpired,\n});\n\nexport type Actions = typeof all;\n","import { StateI } from \"./spx-update-pending.state\";\n\nexport const initialState: StateI = {\n showLiveUpdateReady: false,\n updateIsDownloadedAndPending: false,\n};\n","\nimport * as actions from './spx-update-pending.actions';\nimport { createReducer, on, createFeature } from '@ngrx/store';\nimport { StateI } from './spx-update-pending.state';\nimport { initialState } from './spx-update-pending.initial';\n\nexport default createFeature({\n name: 'spxUpdatePending',\n reducer: createReducer(\n initialState,\n on(actions.hasBeenDownloaded, (state: StateI): StateI => {\n return {\n ...state,\n showLiveUpdateReady: true,\n updateIsDownloadedAndPending: true,\n };\n }),\n on(actions.hasBeenInstalled, (state: StateI): StateI => {\n return {\n ...state,\n showLiveUpdateReady: false,\n updateIsDownloadedAndPending: false,\n };\n }),\n on(actions.postpone, (state: StateI): StateI => {\n return {\n ...state,\n showLiveUpdateReady: false,\n };\n }),\n on(actions.postponeExpired, (state: StateI): StateI => {\n return {\n ...state,\n showLiveUpdateReady: true,\n };\n }),\n ),\n});\n","import { ChangeDetectionStrategy, Component, HostBinding, signal } from '@angular/core';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { Subscription } from 'rxjs';\nimport { Store } from '@ngrx/store';\nimport { acceptUpdate } from './store/spx-update-pending/spx-update-pending.actions';\nimport { default as updPending } from './store/spx-update-pending/spx-update-pending.reducer';\nimport { SpxSeverityEnum, unsubscribeSubscriptions } from '@softpak/components/spx-helpers';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { spxTextOpenAppStore, spxTextPatchAvailable, spxTextReadyToBeInstalled, spxTextUpdate, spxTextUpdateAvailable } from '@softpak/components/spx-translate';\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\nimport { DomSanitizer, SafeStyle } from '@angular/platform-browser';\n\n@Component({\n selector: 'spx-update-pending',\n imports: [\n SpxButtonComponent,\n SpxCapitalizePipe,\n TranslatePipe,\n ],\n templateUrl: `./spx-update-pending.component.html`,\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class SpxUpdatePendingComponent {\n @HostBinding('style') baseStyle?: SafeStyle;\n availableStoreVersion = signal<undefined | string>(undefined);\n currentStoreVersion = signal<undefined | string>(undefined);\n severitySuccess = SpxSeverityEnum.success;\n showLiveUpdateReady = signal<boolean>(false);\n spxTextUpdate = spxTextUpdate;\n spxTextReadyToBeInstalled = spxTextReadyToBeInstalled;\n spxTextPatchAvailable = spxTextPatchAvailable;\n spxTextUpdateAvailable = spxTextUpdateAvailable;\n spxTextOpenAppStore = spxTextOpenAppStore;\n\n private subscriptions: {\n updPending?: Subscription;\n } = {};\n\n ngOnInit() {\n this.subscriptions.updPending = this.appStore.select(updPending.selectShowLiveUpdateReady).subscribe(showLiveUpdateReady => {\n this.showLiveUpdateReady.set(showLiveUpdateReady);\n if (showLiveUpdateReady) {\n this.baseStyle = this.sanitizer.bypassSecurityTrustStyle('display: block;');\n } else {\n this.baseStyle = this.sanitizer.bypassSecurityTrustStyle('display: none;');\n }\n });\n }\n\n ngOnDestroy() {\n unsubscribeSubscriptions(this.subscriptions);\n }\n\n constructor(\n private readonly appStore: Store,\n private sanitizer: DomSanitizer,\n ) {}\n\n onUpdate(): void {\n this.appStore.dispatch(acceptUpdate({}));\n }\n}\n","@if (showLiveUpdateReady()) {\n<div class=\"bg-zinc-700 text-black p-3 rounded flex gap-3 mx-auto max-w-lg items-center\">\n <div class=\"grow\">\n <p\n class=\"text-xl font-extrabold bg-clip-text text-transparent bg-[linear-gradient(to_right,theme(colors.green.300),theme(colors.green.100),theme(colors.sky.400),theme(colors.yellow.200),theme(colors.sky.400),theme(colors.green.100),theme(colors.green.300))] bg-[length:200%_auto] animate-gradient\">\n {{ spxTextPatchAvailable | translate | capitalize }}</p>\n <div class=\"text-sm text-zinc-300\">{{ spxTextReadyToBeInstalled | translate | capitalize }}</div>\n </div>\n <spx-button [spxSeverity]=\"severitySuccess\" (spxClick)=\"onUpdate()\">{{ spxTextUpdate | translate | capitalize\n }}</spx-button>\n</div>\n}","export const spxUpdateUrl = '';","import { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { Injectable, inject } from '@angular/core';\nimport { Observable, from, of } from 'rxjs';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { SyncResult, getConfig, reload, setConfig, sync } from '@capacitor/live-updates';\nimport { catchError, delay, exhaustMap, map, mergeMap, tap } from 'rxjs/operators';\n\nimport { App } from '@capacitor/app';\nimport { Capacitor } from '@capacitor/core';\nimport { SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\nimport { captureMessage } from '@sentry/angular';\nimport { hasBeenDownloaded } from '../spx-update-pending/spx-update-pending.actions';\nimport { spxUpdateCheckActions } from './spx-update-check.actions';\n\n@Injectable()\nexport class Effects {\n private readonly actions$ = inject(Actions);\n\n afterInitialize$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(spxUpdateCheckActions.initialize),\n delay(120000),\n mergeMap(() => [\n spxUpdateCheckActions.runCheck({}),\n ]))\n );\n onRun$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(spxUpdateCheckActions.runCheck),\n tap(async () => {\n if (Capacitor.getPlatform() !== 'web') {\n // Migrate from e.g. 1.2.x to 1.3.x\n const binaryInfo = await App.getInfo()\n const binaryVersionGroup = binaryInfo.version.substring(0, 3);\n const config = await getConfig();\n const channelVersionGroup = config.channel!.split('-')[1].substring(0, 3); // e.g. \"1.4\"\n let channelType = config.channel!.split('-')[0];\n\n SpxStorage.setSetting(SpxStorageKeyEnum.binaryVersionGroup, `${binaryVersionGroup}.x`);\n SpxStorage.setSetting(SpxStorageKeyEnum.lastBinaryVersionGroup, `${channelVersionGroup}.x`);\n\n // Temp fix\n if (channelType === 'null') {\n channelType = 'Production';\n }\n // End temp fix\n if (channelType === null || binaryVersionGroup != channelVersionGroup) {\n await setConfig({\n channel: `${channelType ? channelType : SpxAppChannelTypeEnum.production}-${binaryVersionGroup}.x`\n });\n }\n // End migrate from e.g. 1.2.x to 1.3.x\n }\n }),\n exhaustMap((action) => from(sync()).pipe(\n map((syncResult: SyncResult) => {\n if (syncResult.activeApplicationPathChanged) {\n SpxStorage.setSetting(SpxStorageKeyEnum.liveUpdate, syncResult.snapshot?.buildId as string);\n if (action.forceWaitForUpdate) {\n reload();\n }\n return spxUpdateCheckActions.anUpdateIsReady();\n } else {\n return spxUpdateCheckActions.noUpdateWasFound({ startUpdateAgainAfterTimeout: !action.forceWaitForUpdate });\n }\n }),\n catchError((err) => {\n if (err.message !== 'Not implemented for web only') {\n captureMessage(\"[UPD] Handled: \" + err.message);\n }\n return err.message === 'Not implemented for web only' ? of(spxUpdateCheckActions.notAvailableOnWeb()) : of(spxUpdateCheckActions.checkFailed({ startUpdateAgainAfterTimeout: false }))\n })\n )),\n ));\n\n whenAndUpdateIsReady$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(spxUpdateCheckActions.anUpdateIsReady),\n mergeMap(() => [\n hasBeenDownloaded({}),\n ]))\n );\n\n whenCheckHasFailed$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(spxUpdateCheckActions.checkFailed),\n delay(30000),\n mergeMap((action) => !action.startUpdateAgainAfterTimeout ? [] : [\n spxUpdateCheckActions.runCheck({}),\n ]))\n );\n\n whenNoUpdateWasFound$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(spxUpdateCheckActions.noUpdateWasFound),\n delay(120000),\n mergeMap((action) => !action.startUpdateAgainAfterTimeout ? [] : [\n spxUpdateCheckActions.runCheck({}),\n ]))\n );\n}\n\n","import { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { Observable } from 'rxjs';\nimport { mergeMap } from 'rxjs/operators';\nimport { Injectable } from '@angular/core';\nimport * as actions from './spx-update-pending.actions';\nimport { reload } from '@capacitor/live-updates';\n\n@Injectable()\nexport class Effects {\n\n constructor(\n private readonly actions$: Actions,\n ) { }\n\n whenAccepted$: Observable<any> = createEffect(() => this.actions$.pipe(\n ofType(actions.acceptUpdate),\n mergeMap(() => {\n reload();\n return []; \n })) as any\n );\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["spxUpdateCheckActions","initialState","actions.hasBeenDownloaded","actions.hasBeenInstalled","actions.postpone","actions.postponeExpired","i2","Effects","actions.acceptUpdate","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAEO,MAAMA,uBAAqB,GAAG,iBAAiB,CAAC;AACrD,IAAA,MAAM,EAAE,gBAAgB;AACxB,IAAA,MAAM,EAAE;QACN,eAAe,EAAE,UAAU,EAAE;QAC7B,WAAW,EAAE,KAAK,EAA+C;QACjE,UAAU,EAAE,UAAU,EAAE;QACxB,UAAU,EAAE,UAAU,EAAE;QACxB,gBAAgB,EAAE,KAAK,EAA+C;QACtE,iBAAiB,EAAE,UAAU,EAAE;QAC/B,QAAQ,EAAE,KAAK,EAAoC;AACpD,KAAA;AACF,CAAA,CAAC;;;;;;;ACXK,MAAMC,cAAY,GAAW;AAChC,IAAA,kBAAkB,EAAE,KAAK;AACzB,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,SAAS,EAAE,KAAK;CACnB;;;;;;;ACCD,eAAe,aAAa,CAAC;AACzB,IAAA,IAAI,EAAE,gBAAgB;AACtB,IAAA,OAAO,EAAE,aAAa,CAClBA,cAAY,EACZ,EAAE,CAACD,uBAAqB,CAAC,eAAe,EAAE,CAAC,KAAa,KAAY;QAChE,OAAO;AACH,YAAA,GAAG,KAAK;AACR,YAAA,SAAS,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,KAAK,EAAE;AACjC,YAAA,SAAS,EAAE,KAAK;SACnB;IACL,CAAC,CAAC,EACF,EAAE,CAACA,uBAAqB,CAAC,UAAU,EAAE,CAAC,KAAa,KAAY;QAC3D,OAAO;AACH,YAAA,GAAG,KAAK;AACR,YAAA,SAAS,EAAE,KAAK;SACnB;IACL,CAAC,CAAC,EACF,EAAE,CAACA,uBAAqB,CAAC,WAAW,EAAE,CAAC,K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C,IAAA,CAAA,OAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAP,OAAO,EAAA,CAAA,CAAA;;2FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBADnB;;;;;;;;;;;;ACPD;;AAEG;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@softpak/components",
3
- "version": "21.0.5",
3
+ "version": "21.0.6",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "21.x.x",
@@ -4,10 +4,10 @@ import { SpxAppChannelI, SpxAppChannelTypeEnum, SpxChannelTypeI } from '@softpak
4
4
  import * as _ngrx_store from '@ngrx/store';
5
5
  import { Store } from '@ngrx/store';
6
6
  import * as _ngrx_effects from '@ngrx/effects';
7
- import { Actions as Actions$1 } from '@ngrx/effects';
7
+ import { Actions } from '@ngrx/effects';
8
8
  import * as rxjs from 'rxjs';
9
- import { Router } from '@angular/router';
10
9
  import { SpxToasterAutoCloseSpeedEnum } from '@softpak/components/spx-toaster';
10
+ import { Router } from '@angular/router';
11
11
 
12
12
  declare class SpxChannelGuard {
13
13
  private readonly router;
@@ -29,33 +29,20 @@ declare class SpxChannelIndicatorComponent {
29
29
  static ɵcmp: i0.ɵɵComponentDeclaration<SpxChannelIndicatorComponent, "spx-channel-indicator", never, {}, {}, never, never, true, never>;
30
30
  }
31
31
 
32
- declare const choose: _ngrx_store.ActionCreator<"[SPX / Channel] Select", (props: {
33
- channel: SpxAppChannelI;
34
- channelType: SpxAppChannelTypeEnum;
35
- }) => {
36
- channel: SpxAppChannelI;
37
- channelType: SpxAppChannelTypeEnum;
38
- } & _ngrx_store.Action<"[SPX / Channel] Select">>;
39
- declare const initialize: _ngrx_store.ActionCreator<"[SPX / Channel] Initialize", (props: {
40
- channels: SpxAppChannelI[];
41
- }) => {
42
- channels: SpxAppChannelI[];
43
- } & _ngrx_store.Action<"[SPX / Channel] Initialize">>;
44
- declare const all: ({
45
- channel: SpxAppChannelI;
46
- channelType: SpxAppChannelTypeEnum;
47
- } & _ngrx_store.Action<"[SPX / Channel] Select">) | ({
48
- channels: SpxAppChannelI[];
49
- } & _ngrx_store.Action<"[SPX / Channel] Initialize">);
50
- type Actions = typeof all;
51
-
52
- type spxChannel_actions_d_Actions = Actions;
53
- declare const spxChannel_actions_d_choose: typeof choose;
54
- declare const spxChannel_actions_d_initialize: typeof initialize;
55
- declare namespace spxChannel_actions_d {
56
- export { spxChannel_actions_d_choose as choose, spxChannel_actions_d_initialize as initialize };
57
- export type { spxChannel_actions_d_Actions as Actions };
58
- }
32
+ declare const spxChannelActions: {
33
+ choose: _ngrx_store.ActionCreator<"[SpxChannel] Choose", (props: {
34
+ channel: SpxAppChannelI;
35
+ channelType: SpxAppChannelTypeEnum;
36
+ }) => {
37
+ channel: SpxAppChannelI;
38
+ channelType: SpxAppChannelTypeEnum;
39
+ } & _ngrx_store.Action<"[SpxChannel] Choose">>;
40
+ initialize: _ngrx_store.ActionCreator<"[SpxChannel] Initialize", (props: {
41
+ channels: SpxAppChannelI[];
42
+ }) => {
43
+ channels: SpxAppChannelI[];
44
+ } & _ngrx_store.Action<"[SpxChannel] Initialize">>;
45
+ };
59
46
 
60
47
  declare class Effects {
61
48
  private readonly actions$;
@@ -66,8 +53,8 @@ declare class Effects {
66
53
  closeable?: boolean;
67
54
  messageText: string;
68
55
  title?: string;
69
- } & _ngrx_store.Action<"[SPX / Toaster] Create success">> & _ngrx_effects.CreateEffectMetadata;
70
- constructor(actions$: Actions$1, router: Router);
56
+ } & _ngrx_store.Action<"[SpxToaster] CreateSuccess">> & _ngrx_effects.CreateEffectMetadata;
57
+ constructor(actions$: Actions, router: Router);
71
58
  static ɵfac: i0.ɵɵFactoryDeclaration<Effects, never>;
72
59
  static ɵprov: i0.ɵɵInjectableDeclaration<Effects>;
73
60
  }
@@ -104,4 +91,4 @@ declare namespace spxChannel_reducer_d {
104
91
  export type { spxChannel_reducer_d_StateI as StateI };
105
92
  }
106
93
 
107
- export { SpxChannelGuard, SpxChannelIndicatorComponent, spxChannel_actions_d as spxChannelActions, spxChannel_effects_d as spxChannelEffects, spxChannel_reducer_d as spxChannelReducer, spxChannelSelectionUrl };
94
+ export { SpxChannelGuard, SpxChannelIndicatorComponent, spxChannelActions, spxChannel_effects_d as spxChannelEffects, spxChannel_reducer_d as spxChannelReducer, spxChannelSelectionUrl };
@@ -4,7 +4,7 @@ import { OnInit, OnDestroy } from '@angular/core';
4
4
  import { SpxSeverityEnum } from '@softpak/components/spx-helpers';
5
5
  import * as _ngrx_store from '@ngrx/store';
6
6
  import { Store } from '@ngrx/store';
7
- import { Actions as Actions$1 } from '@ngrx/effects';
7
+ import { Actions } from '@ngrx/effects';
8
8
  import { Observable } from 'rxjs';
9
9
 
10
10
  declare class SpxConfirmComponent {
@@ -67,42 +67,30 @@ declare namespace spxConfirm_reducer_d {
67
67
  export type { spxConfirm_reducer_d_SpxConfirmI as SpxConfirmI, spxConfirm_reducer_d_State as State };
68
68
  }
69
69
 
70
- declare const answer: _ngrx_store.ActionCreator<"[Confirm] Answer", (props: {
71
- cancel?: boolean;
72
- confirm?: boolean;
73
- id: string;
74
- }) => {
75
- cancel?: boolean;
76
- confirm?: boolean;
77
- id: string;
78
- } & _ngrx_store.Action<"[Confirm] Answer">>;
79
- declare const reset: _ngrx_store.ActionCreator<"[Confirm] Reset", (props: Record<string, unknown>) => Record<string, unknown> & _ngrx_store.Action<"[Confirm] Reset">>;
80
- declare const show: _ngrx_store.ActionCreator<"[Confirm] Show", (props: SpxConfirmI) => SpxConfirmI & _ngrx_store.Action<"[Confirm] Show">>;
81
- declare const answerConfirm: _ngrx_store.ActionCreator<"[Confirm] Answer Confirm", (props: {
82
- id: string;
83
- }) => {
84
- id: string;
85
- } & _ngrx_store.Action<"[Confirm] Answer Confirm">>;
86
- declare const all: (Record<string, unknown> & _ngrx_store.Action<"[Confirm] Reset">) | (SpxConfirmI & _ngrx_store.Action<"[Confirm] Show">) | ({
87
- id: string;
88
- } & _ngrx_store.Action<"[Confirm] Answer Confirm">);
89
- type Actions = typeof all;
90
-
91
- type spxConfirm_actions_d_Actions = Actions;
92
- declare const spxConfirm_actions_d_answer: typeof answer;
93
- declare const spxConfirm_actions_d_answerConfirm: typeof answerConfirm;
94
- declare const spxConfirm_actions_d_reset: typeof reset;
95
- declare const spxConfirm_actions_d_show: typeof show;
96
- declare namespace spxConfirm_actions_d {
97
- export { spxConfirm_actions_d_answer as answer, spxConfirm_actions_d_answerConfirm as answerConfirm, spxConfirm_actions_d_reset as reset, spxConfirm_actions_d_show as show };
98
- export type { spxConfirm_actions_d_Actions as Actions };
99
- }
70
+ declare const spxConfirmActions: {
71
+ answer: _ngrx_store.ActionCreator<"[SpxConfirm] Answer", (props: {
72
+ cancel?: boolean;
73
+ confirm?: boolean;
74
+ id: string;
75
+ }) => {
76
+ cancel?: boolean;
77
+ confirm?: boolean;
78
+ id: string;
79
+ } & _ngrx_store.Action<"[SpxConfirm] Answer">>;
80
+ answerConfirm: _ngrx_store.ActionCreator<"[SpxConfirm] AnswerConfirm", (props: {
81
+ id: string;
82
+ }) => {
83
+ id: string;
84
+ } & _ngrx_store.Action<"[SpxConfirm] AnswerConfirm">>;
85
+ reset: _ngrx_store.ActionCreator<"[SpxConfirm] Reset", () => _ngrx_store.Action<"[SpxConfirm] Reset">>;
86
+ show: _ngrx_store.ActionCreator<"[SpxConfirm] Show", (props: SpxConfirmI) => SpxConfirmI & _ngrx_store.Action<"[SpxConfirm] Show">>;
87
+ };
100
88
 
101
89
  declare class SpxConfirmEffects {
102
90
  private readonly actions$;
103
91
  private readonly appStore;
104
92
  onAnswer$: Observable<any>;
105
- constructor(actions$: Actions$1, appStore: Store);
93
+ constructor(actions$: Actions, appStore: Store);
106
94
  static ɵfac: i0.ɵɵFactoryDeclaration<SpxConfirmEffects, never>;
107
95
  static ɵprov: i0.ɵɵInjectableDeclaration<SpxConfirmEffects>;
108
96
  }
@@ -115,4 +103,4 @@ declare namespace spxConfirm_effects_d {
115
103
  };
116
104
  }
117
105
 
118
- export { SpxConfirmComponent, SpxConfirmDisplayerComponent, spxConfirm_actions_d as spxConfirmActions, spxConfirm_effects_d as spxConfirmEffects, spxConfirm_reducer_d as spxConfirmReducer };
106
+ export { SpxConfirmComponent, SpxConfirmDisplayerComponent, spxConfirmActions, spxConfirm_effects_d as spxConfirmEffects, spxConfirm_reducer_d as spxConfirmReducer };
@@ -61,41 +61,25 @@ declare class SpxHomeTilesComponent {
61
61
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxHomeTilesComponent, "spx-home-tiles", never, { "spxCols": { "alias": "spxCols"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
62
62
  }
63
63
 
64
- declare const addPages: _ngrx_store.ActionCreator<"[SPX / Navigation] Add items", (props: {
65
- navigationItems: SpxNavigationItemI[];
66
- }) => {
67
- navigationItems: SpxNavigationItemI[];
68
- } & _ngrx_store.Action<"[SPX / Navigation] Add items">>;
69
- declare const initialize: _ngrx_store.ActionCreator<"[SPX / Navigation] Initialize", (props: {
70
- navigationItems: SpxNavigationItemI[];
71
- }) => {
72
- navigationItems: SpxNavigationItemI[];
73
- } & _ngrx_store.Action<"[SPX / Navigation] Initialize">>;
74
- declare const update: _ngrx_store.ActionCreator<"[SPX / Navigation] Update", (props: {
75
- accessList: string[];
76
- signedIn: boolean;
77
- }) => {
78
- accessList: string[];
79
- signedIn: boolean;
80
- } & _ngrx_store.Action<"[SPX / Navigation] Update">>;
81
- declare const all: ({
82
- navigationItems: SpxNavigationItemI[];
83
- } & _ngrx_store.Action<"[SPX / Navigation] Add items">) | ({
84
- navigationItems: SpxNavigationItemI[];
85
- } & _ngrx_store.Action<"[SPX / Navigation] Initialize">) | ({
86
- accessList: string[];
87
- signedIn: boolean;
88
- } & _ngrx_store.Action<"[SPX / Navigation] Update">);
89
- type Actions = typeof all;
90
-
91
- type spxNavigation_actions_d_Actions = Actions;
92
- declare const spxNavigation_actions_d_addPages: typeof addPages;
93
- declare const spxNavigation_actions_d_initialize: typeof initialize;
94
- declare const spxNavigation_actions_d_update: typeof update;
95
- declare namespace spxNavigation_actions_d {
96
- export { spxNavigation_actions_d_addPages as addPages, spxNavigation_actions_d_initialize as initialize, spxNavigation_actions_d_update as update };
97
- export type { spxNavigation_actions_d_Actions as Actions };
98
- }
64
+ declare const spxNavigationActions: {
65
+ addPages: _ngrx_store.ActionCreator<"[SpxNavigation] AddPages", (props: {
66
+ navigationItems: SpxNavigationItemI[];
67
+ }) => {
68
+ navigationItems: SpxNavigationItemI[];
69
+ } & _ngrx_store.Action<"[SpxNavigation] AddPages">>;
70
+ initialize: _ngrx_store.ActionCreator<"[SpxNavigation] Initialize", (props: {
71
+ navigationItems: SpxNavigationItemI[];
72
+ }) => {
73
+ navigationItems: SpxNavigationItemI[];
74
+ } & _ngrx_store.Action<"[SpxNavigation] Initialize">>;
75
+ update: _ngrx_store.ActionCreator<"[SpxNavigation] Update", (props: {
76
+ accessList: string[];
77
+ signedIn: boolean;
78
+ }) => {
79
+ accessList: string[];
80
+ signedIn: boolean;
81
+ } & _ngrx_store.Action<"[SpxNavigation] Update">>;
82
+ };
99
83
 
100
84
  interface StateI {
101
85
  accessList: string[];
@@ -136,5 +120,5 @@ declare namespace spxNavigation_reducer_d {
136
120
  };
137
121
  }
138
122
 
139
- export { SpxHomeTileComponent, SpxHomeTilesComponent, SpxNavigationComponent, spxNavigation_actions_d as spxNavigationActions, spxNavigation_initial_d as spxNavigationInitial, spxNavigation_reducer_d as spxNavigationReducer, spxNavigation_state_d as spxNavigationState };
123
+ export { SpxHomeTileComponent, SpxHomeTilesComponent, SpxNavigationComponent, spxNavigationActions, spxNavigation_initial_d as spxNavigationInitial, spxNavigation_reducer_d as spxNavigationReducer, spxNavigation_state_d as spxNavigationState };
140
124
  export type { SpxNavigationItemI };
@@ -8,32 +8,19 @@ declare class SpxSpinnerComponent {
8
8
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxSpinnerComponent, "spx-spinner", never, { "spxShow": { "alias": "spxShow"; "required": false; "isSignal": true; }; "spxLoaderText": { "alias": "spxLoaderText"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
9
9
  }
10
10
 
11
- declare const hide: _ngrx_store.ActionCreator<"[SPX / Spinner] Hide", (props: {
12
- action: string;
13
- }) => {
14
- action: string;
15
- } & _ngrx_store.Action<"[SPX / Spinner] Hide">>;
16
- declare const reset: _ngrx_store.ActionCreator<"[SPX / Spinner] Reset", (props: Record<string, unknown>) => Record<string, unknown> & _ngrx_store.Action<"[SPX / Spinner] Reset">>;
17
- declare const show: _ngrx_store.ActionCreator<"[SPX / Spinner] Show", (props: {
18
- action: string;
19
- }) => {
20
- action: string;
21
- } & _ngrx_store.Action<"[SPX / Spinner] Show">>;
22
- declare const all: ({
23
- action: string;
24
- } & _ngrx_store.Action<"[SPX / Spinner] Hide">) | ({
25
- action: string;
26
- } & _ngrx_store.Action<"[SPX / Spinner] Show">);
27
- type Actions = typeof all;
28
-
29
- type spxSpinner_actions_d_Actions = Actions;
30
- declare const spxSpinner_actions_d_hide: typeof hide;
31
- declare const spxSpinner_actions_d_reset: typeof reset;
32
- declare const spxSpinner_actions_d_show: typeof show;
33
- declare namespace spxSpinner_actions_d {
34
- export { spxSpinner_actions_d_hide as hide, spxSpinner_actions_d_reset as reset, spxSpinner_actions_d_show as show };
35
- export type { spxSpinner_actions_d_Actions as Actions };
36
- }
11
+ declare const spxSpinnerActions: {
12
+ hide: _ngrx_store.ActionCreator<"[SpxSpinner] Hide", (props: {
13
+ action: string;
14
+ }) => {
15
+ action: string;
16
+ } & _ngrx_store.Action<"[SpxSpinner] Hide">>;
17
+ reset: _ngrx_store.ActionCreator<"[SpxSpinner] Reset", () => _ngrx_store.Action<"[SpxSpinner] Reset">>;
18
+ show: _ngrx_store.ActionCreator<"[SpxSpinner] Show", (props: {
19
+ action: string;
20
+ }) => {
21
+ action: string;
22
+ } & _ngrx_store.Action<"[SpxSpinner] Show">>;
23
+ };
37
24
 
38
25
  interface StateI {
39
26
  loadActions: string[];
@@ -70,4 +57,4 @@ declare namespace spxSpinner_reducer_d {
70
57
  };
71
58
  }
72
59
 
73
- export { SpxSpinnerComponent, spxSpinner_actions_d as spxSpinnerActions, spxSpinner_initial_d as spxSpinnerInitial, spxSpinner_reducer_d as spxSpinnerReducer, spxSpinner_state_d as spxSpinnerState };
60
+ export { SpxSpinnerComponent, spxSpinnerActions, spxSpinner_initial_d as spxSpinnerInitial, spxSpinner_reducer_d as spxSpinnerReducer, spxSpinner_state_d as spxSpinnerState };
@@ -20,22 +20,13 @@ declare class SpxTabsComponent implements OnInit {
20
20
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<SpxTabsComponent, "spx-tabs", never, { "optionalNavItemBool": { "alias": "optionalNavItemBool"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
21
21
  }
22
22
 
23
- declare const ctrl: _ngrx_store.ActionCreator<"[SPX / Shortcuts] CTRL", (props: {
24
- keyIsDown: boolean;
25
- }) => {
26
- keyIsDown: boolean;
27
- } & _ngrx_store.Action<"[SPX / Shortcuts] CTRL">>;
28
- declare const all: {
29
- keyIsDown: boolean;
30
- } & _ngrx_store.Action<"[SPX / Shortcuts] CTRL">;
31
- type Actions = typeof all;
32
-
33
- type spxShortcuts_actions_d_Actions = Actions;
34
- declare const spxShortcuts_actions_d_ctrl: typeof ctrl;
35
- declare namespace spxShortcuts_actions_d {
36
- export { spxShortcuts_actions_d_ctrl as ctrl };
37
- export type { spxShortcuts_actions_d_Actions as Actions };
38
- }
23
+ declare const spxShortcutsActions: {
24
+ ctrl: _ngrx_store.ActionCreator<"[SpxShortcuts] Ctrl", (props: {
25
+ keyIsDown: boolean;
26
+ }) => {
27
+ keyIsDown: boolean;
28
+ } & _ngrx_store.Action<"[SpxShortcuts] Ctrl">>;
29
+ };
39
30
 
40
31
  interface StateI {
41
32
  ctrlIsDown: boolean;
@@ -55,4 +46,4 @@ declare namespace spxShortcuts_reducer_d {
55
46
  export type { spxShortcuts_reducer_d_StateI as StateI };
56
47
  }
57
48
 
58
- export { SpxTabsComponent, spxShortcuts_actions_d as spxShortCutsActions, spxShortcuts_reducer_d as spxShortCutsReducer };
49
+ export { SpxTabsComponent, spxShortcuts_reducer_d as spxShortCutsReducer, spxShortcutsActions };