@softpak/components 20.2.2-beta.3 → 20.2.2-beta.5
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/fesm2022/softpak-components-spx-app-configuration.mjs +2 -0
- package/fesm2022/softpak-components-spx-app-configuration.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-channel-selection.mjs +11 -13
- package/fesm2022/softpak-components-spx-channel-selection.mjs.map +1 -1
- package/fesm2022/softpak-components-spx-storage.mjs +0 -1
- package/fesm2022/softpak-components-spx-storage.mjs.map +1 -1
- package/package.json +39 -39
- package/spx-app-configuration/index.d.ts +3 -1
- package/spx-channel-selection/index.d.ts +2 -0
- package/spx-storage/index.d.ts +0 -1
|
@@ -4,6 +4,8 @@ var SpxAppChannelTypeEnum;
|
|
|
4
4
|
SpxAppChannelTypeEnum["beta"] = "Beta";
|
|
5
5
|
SpxAppChannelTypeEnum["alpha"] = "Alpha";
|
|
6
6
|
SpxAppChannelTypeEnum["development"] = "Development";
|
|
7
|
+
SpxAppChannelTypeEnum["webLive"] = "Web (Live)";
|
|
8
|
+
SpxAppChannelTypeEnum["webBeta"] = "Web (Beta)";
|
|
7
9
|
})(SpxAppChannelTypeEnum || (SpxAppChannelTypeEnum = {}));
|
|
8
10
|
|
|
9
11
|
var SpxAppIdEnum;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-app-configuration.mjs","sources":["../../../../projects/softpak/components/spx-app-configuration/spx-app-channel-type.enum.ts","../../../../projects/softpak/components/spx-app-configuration/spx-app-id.enum.ts","../../../../projects/softpak/components/spx-app-configuration/spx-app-lang.enum.ts","../../../../projects/softpak/components/spx-app-configuration/softpak-components-spx-app-configuration.ts"],"sourcesContent":["export enum SpxAppChannelTypeEnum {\n production = 'Production',\n beta = 'Beta',\n alpha = 'Alpha',\n development = 'Development',\n}\n","export enum SpxAppIdEnum {\n container = 'container',\n depot = 'depot',\n eucon = 'eucon',\n orders = 'orders',\n}\n","export enum SpxAppLangEnum {\n english = 'en',\n dutch = 'nl',\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,qBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-app-configuration.mjs","sources":["../../../../projects/softpak/components/spx-app-configuration/spx-app-channel-type.enum.ts","../../../../projects/softpak/components/spx-app-configuration/spx-app-id.enum.ts","../../../../projects/softpak/components/spx-app-configuration/spx-app-lang.enum.ts","../../../../projects/softpak/components/spx-app-configuration/softpak-components-spx-app-configuration.ts"],"sourcesContent":["export enum SpxAppChannelTypeEnum {\n production = 'Production',\n beta = 'Beta',\n alpha = 'Alpha',\n development = 'Development',\n webLive = 'Web (Live)',\n webBeta = 'Web (Beta)',\n}\n","export enum SpxAppIdEnum {\n container = 'container',\n depot = 'depot',\n eucon = 'eucon',\n orders = 'orders',\n}\n","export enum SpxAppLangEnum {\n english = 'en',\n dutch = 'nl',\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,qBAAqB,EAAA;AAC/B,IAAA,qBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,qBAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,qBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,qBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,qBAAA,CAAA,SAAA,CAAA,GAAA,YAAsB;AACtB,IAAA,qBAAA,CAAA,SAAA,CAAA,GAAA,YAAsB;AACxB,CAAC,EAPW,qBAAqB,KAArB,qBAAqB,GAOhC,EAAA,CAAA,CAAA;;ICPW;AAAZ,CAAA,UAAY,YAAY,EAAA;AACtB,IAAA,YAAA,CAAA,WAAA,CAAA,GAAA,WAAuB;AACvB,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,YAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,YAAA,CAAA,QAAA,CAAA,GAAA,QAAiB;AACnB,CAAC,EALW,YAAY,KAAZ,YAAY,GAKvB,EAAA,CAAA,CAAA;;ICLW;AAAZ,CAAA,UAAY,cAAc,EAAA;AACxB,IAAA,cAAA,CAAA,SAAA,CAAA,GAAA,IAAc;AACd,IAAA,cAAA,CAAA,OAAA,CAAA,GAAA,IAAY;AACd,CAAC,EAHW,cAAc,KAAd,cAAc,GAGzB,EAAA,CAAA,CAAA;;ACHD;;AAEG;;;;"}
|
|
@@ -6,6 +6,7 @@ import { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';
|
|
|
6
6
|
import { createAction, props, union, createFeature, createReducer, on, Store } from '@ngrx/store';
|
|
7
7
|
import { SpxButtonComponent } from '@softpak/components/spx-button';
|
|
8
8
|
import { SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';
|
|
9
|
+
import { Capacitor } from '@capacitor/core';
|
|
9
10
|
import { TranslatePipe } from '@ngx-translate/core';
|
|
10
11
|
import { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';
|
|
11
12
|
import { spxTextChange } from '@softpak/components/spx-translate';
|
|
@@ -16,7 +17,6 @@ import * as i1 from '@ngrx/effects';
|
|
|
16
17
|
import { createEffect, ofType } from '@ngrx/effects';
|
|
17
18
|
import { switchMap } from 'rxjs/operators';
|
|
18
19
|
import { setConfig } from '@capacitor/live-updates';
|
|
19
|
-
import { Capacitor } from '@capacitor/core';
|
|
20
20
|
import { spxUpdateUrl } from '@softpak/components/spx-update';
|
|
21
21
|
import { spxToasterActions, SpxToasterAutoCloseSpeedEnum } from '@softpak/components/spx-toaster';
|
|
22
22
|
import { captureMessage } from '@sentry/angular';
|
|
@@ -71,7 +71,6 @@ var spxChannelReducer$1 = createFeature({
|
|
|
71
71
|
reducer: createReducer(initialState, on(choose, (state, { channel, channelType }) => {
|
|
72
72
|
SpxStorage.setSetting(SpxStorageKeyEnum.brand, channel?.brand);
|
|
73
73
|
SpxStorage.setSetting(SpxStorageKeyEnum.channelType, channelType);
|
|
74
|
-
SpxStorage.setSetting(SpxStorageKeyEnum.channelTypeWithWebUrl, JSON.stringify(channelType));
|
|
75
74
|
return {
|
|
76
75
|
...state,
|
|
77
76
|
previousChannel: state.channel,
|
|
@@ -79,14 +78,11 @@ var spxChannelReducer$1 = createFeature({
|
|
|
79
78
|
};
|
|
80
79
|
}), on(initialize, (state, { channels }) => {
|
|
81
80
|
let channelType = null;
|
|
82
|
-
if (SpxStorage.getSetting(SpxStorageKeyEnum.
|
|
83
|
-
channelType = JSON.parse(SpxStorage.getSetting(SpxStorageKeyEnum.channelTypeWithWebUrl));
|
|
84
|
-
}
|
|
85
|
-
else if (SpxStorage.getSetting(SpxStorageKeyEnum.channelType)) {
|
|
81
|
+
if (SpxStorage.getSetting(SpxStorageKeyEnum.channelType)) {
|
|
86
82
|
channelType = { name: SpxStorage.getSetting(SpxStorageKeyEnum.channelType) };
|
|
87
83
|
}
|
|
88
84
|
else {
|
|
89
|
-
channelType = { name: SpxAppChannelTypeEnum.production }; // Default to production if no type is set
|
|
85
|
+
channelType = { name: Capacitor.getPlatform() === 'web' ? SpxAppChannelTypeEnum.webLive : SpxAppChannelTypeEnum.production }; // Default to production if no type is set
|
|
90
86
|
}
|
|
91
87
|
return {
|
|
92
88
|
...state,
|
|
@@ -153,14 +149,16 @@ class Effects {
|
|
|
153
149
|
constructor(actions$, router) {
|
|
154
150
|
this.actions$ = actions$;
|
|
155
151
|
this.router = router;
|
|
152
|
+
this.store = inject(Store);
|
|
156
153
|
this.onChoose$ = createEffect(() => this.actions$.pipe(ofType(choose), switchMap((action) => {
|
|
157
154
|
if (Capacitor.getPlatform() === 'web') {
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
155
|
+
const channelType = action.channel.channelTypes.find(channelType => channelType.name === action.channelType);
|
|
156
|
+
if (window.location.href.split('/').at(0) !== channelType.webUrl) {
|
|
157
|
+
window.location.href = channelType.webUrl;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
this.router.navigate(['tabs/hme']);
|
|
161
|
+
}
|
|
164
162
|
}
|
|
165
163
|
else {
|
|
166
164
|
App.getInfo().then((binaryInfo) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-channel-selection.mjs","sources":["../../../../projects/softpak/components/spx-channel-selection/store/spx-channel.actions.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel.reducer.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-indicator/spx-channel-indicator.component.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-indicator/spx-channel-indicator.component.html","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-guard.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel.effects.ts","../../../../projects/softpak/components/spx-channel-selection/softpak-components-spx-channel-selection.ts"],"sourcesContent":["import { createAction, props, union } from '@ngrx/store';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\n\nexport const choose = createAction('[SPX / Channel] Select', props<{\n channel: SpxAppChannelI;\n channelType: SpxAppChannelTypeEnum;\n}>());\nexport const initialize = createAction('[SPX / Channel] Initialize', props<{\n channels: SpxAppChannelI[];\n}>());\n\nconst all = union({\n choose,\n initialize,\n});\n\nexport type Actions = typeof all;\n","\nimport * as actions from './spx-channel.actions';\nimport { createFeature, createReducer, on } from '@ngrx/store';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum, SpxChannelTypeI } from '@softpak/components/spx-app-configuration';\n\nexport const initialState: StateI = {\n previousChannel: null,\n channel: null,\n channelType: null,\n channels: [],\n};\n\nexport interface StateI {\n previousChannel: SpxAppChannelI | null;\n channel: SpxAppChannelI | null;\n channels: SpxAppChannelI[];\n channelType: SpxChannelTypeI | null;\n}\n\nconst determineActiveChannel = (channels: SpxAppChannelI[]): SpxAppChannelI | null => {\n if (SpxStorage.getSetting(SpxStorageKeyEnum.brand) && SpxStorage.getSetting(SpxStorageKeyEnum.channelType)) {\n const channelResult = channels.find(channel => channel.brand === SpxStorage.getSetting(SpxStorageKeyEnum.brand) && channel.channelTypes.some((e: SpxChannelTypeI) => e.name === SpxStorage.getSetting(SpxStorageKeyEnum.channelType) as SpxAppChannelTypeEnum));\n if (channelResult) {\n return channelResult;\n } else {\n const defaultBrandResult = channels.find(channel => channel.default);\n if (defaultBrandResult) {\n return defaultBrandResult;\n } else {\n SpxStorage.clearSetting(SpxStorageKeyEnum.brand);\n return null;\n }\n }\n } else {\n const defaultBrandResult = channels.find(channel => channel.default);\n if (defaultBrandResult) {\n return defaultBrandResult;\n }\n return null;\n }\n}\n\nexport default createFeature({\n name: 'spxChannel',\n reducer: createReducer(\n initialState,\n on(actions.choose, (state, { channel, channelType }): StateI => {\n SpxStorage.setSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.brand, channel?.brand);\n SpxStorage.setSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.channelType, channelType);\n SpxStorage.setSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.channelTypeWithWebUrl, JSON.stringify(channelType));\n return {\n ...state,\n previousChannel: state.channel,\n channel,\n };\n }),\n on(actions.initialize, (state, { channels }): StateI => {\n\n let channelType: SpxChannelTypeI | null = null;\n\n if (SpxStorage.getSetting(SpxStorageKeyEnum.channelTypeWithWebUrl)) {\n channelType = JSON.parse(SpxStorage.getSetting(SpxStorageKeyEnum.channelTypeWithWebUrl) as string);\n }\n else if (SpxStorage.getSetting(SpxStorageKeyEnum.channelType)) {\n channelType = { name: SpxStorage.getSetting(SpxStorageKeyEnum.channelType) as SpxAppChannelTypeEnum };\n }\n else {\n channelType = { name: SpxAppChannelTypeEnum.production }; // Default to production if no type is set\n }\n\n return {\n ...state,\n channel: determineActiveChannel(channels),\n channels: channels.slice().sort((a, b) => a.brand.localeCompare(b.brand)),\n channelType: channelType,\n }\n }),\n ),\n});\n","import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\nimport spxChannelReducer from '../../store/spx-channel.reducer';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { spxTextChange } from '@softpak/components/spx-translate';\nimport { NavController } from '@ionic/angular';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { map } from 'rxjs';\nexport const spxChannelSelectionUrl = 'wlc';\n\n@Component({\n selector: 'spx-channel-indicator',\n templateUrl: './spx-channel-indicator.component.html',\n imports: [\n SpxButtonComponent,\n SpxCapitalizePipe,\n TranslatePipe,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n})\nexport class SpxChannelIndicatorComponent {\n private readonly navController = inject(NavController);\n private readonly store = inject(Store);\n protected readonly channel = toSignal(this.store.select(spxChannelReducer.selectChannel));\n protected readonly channelType = toSignal(this.store.select(spxChannelReducer.selectChannelType).pipe(\n map(channelType => channelType?.name)\n ));\n protected readonly spxTextChange = spxTextChange;\n\n protected onChange() {\n this.navController.navigateRoot([spxChannelSelectionUrl]);\n }\n}\n","<div class=\"bg-white p-3 rounded flex gap-3 items-center text-black\">\n <div class=\"grow\">\n <div class=\"text-lg font-bold\">{{ channel()?.brand }}</div>\n @if (channelType() !== 'Production') {\n <div class=\"text-base text-gray-600\">{{ channelType() }}</div>\n }\n </div>\n <spx-button (click)=\"onChange()\" [spxType]=\"'button'\">{{ spxTextChange | translate | capitalize }}</spx-button>\n</div>","import { Router } from '@angular/router';\nimport { inject, Injectable } from '@angular/core';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { spxChannelSelectionUrl } from './spx-channel-indicator/spx-channel-indicator.component';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SpxChannelGuard {\n\n private readonly router = inject(Router);\n\n canActivate(): boolean {\n if (\n !SpxStorage.getSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.brand) ||\n !SpxStorage.getSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.channelType)\n ) {\n this.router.navigate([spxChannelSelectionUrl]);\n return false;\n }\n return true;\n }\n}\n","import { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { switchMap } from 'rxjs/operators';\nimport { Injectable } from '@angular/core';\nimport * as actions from './spx-channel.actions';\nimport { setConfig } from '@capacitor/live-updates';\nimport { Capacitor } from '@capacitor/core';\nimport { Router } from '@angular/router';\nimport { spxUpdateUrl } from '@softpak/components/spx-update';\nimport { spxToasterActions, SpxToasterAutoCloseSpeedEnum } from '@softpak/components/spx-toaster';\nimport { captureMessage } from '@sentry/angular';\nimport { App } from '@capacitor/app';\n\n@Injectable()\nexport class Effects {\n onChoose$ =\n createEffect(() =>\n this.actions$.pipe(\n ofType(actions.choose),\n switchMap((action) => {\n if (Capacitor.getPlatform() === 'web') {\n // if(action.channelType.webUrl) {\n // // window.location.href = action.channelType.webUrl;\n // }\n // else {\n this.router.navigate(['tabs/hme']);\n // }\n } else {\n App.getInfo().then((binaryInfo) => {\n const binaryVersionGroup = binaryInfo.version.substring(0, 3);\n setConfig({\n channel: `${action.channelType}-${binaryVersionGroup}.x`\n });\n this.router.navigate([spxUpdateUrl]);\n }).catch((err) => {\n captureMessage(`SPX Channel Error: ${JSON.stringify(err)}`);\n this.router.navigate([spxUpdateUrl]);\n });\n }\n\n return [spxToasterActions.createSuccess({\n autoClose: SpxToasterAutoCloseSpeedEnum.DEFAULT,\n messageText: action.channel?.brand,\n })];\n }),\n ), { dispatch: true });\n\n constructor(\n private readonly actions$: Actions,\n private readonly router: Router,\n ) { }\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["actions.choose","actions.initialize","spxChannelReducer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,MAAM,GAAG,YAAY,CAAC,wBAAwB,EAAE,KAAK,EAG9D,CAAC;AACE,MAAM,UAAU,GAAG,YAAY,CAAC,4BAA4B,EAAE,KAAK,EAEtE,CAAC;AAEL,MAAM,GAAG,GAAG,KAAK,CAAC;IACd,MAAM;IACN,UAAU;AACb,CAAA,CAAC;;;;;;;;ACRK,MAAM,YAAY,GAAW;AAClC,IAAA,eAAe,EAAE,IAAI;AACrB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,QAAQ,EAAE,EAAE;CACb;AASD,MAAM,sBAAsB,GAAG,CAAC,QAA0B,KAA2B;AACnF,IAAA,IAAI,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE;QAC1G,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,KAAK,KAAK,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAkB,KAAK,CAAC,CAAC,IAAI,KAAK,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,WAAW,CAA0B,CAAC,CAAC;QAC/P,IAAI,aAAa,EAAE;AACjB,YAAA,OAAO,aAAa;;aACf;AACL,YAAA,MAAM,kBAAkB,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,OAAO,CAAC;YACpE,IAAI,kBAAkB,E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AC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC;AACxC,iBAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,KAAI;oBACb,cAAc,CAAC,CAAsB,mBAAA,EAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAE,CAAA,CAAC;oBAC3D,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,YAAY,CAAC,CAAC;AACxC,iBAAC,CAAC;;AAGN,YAAA,OAAO,CAAC,iBAAiB,CAAC,aAAa,CAAC;oBACpC,SAAS,EAAE,4BAA4B,CAAC,OAAO;AAC/C,oBAAA,WAAW,EAAE,MAAM,CAAC,OAAO,EAAE,KAAK;AACrC,iBAAA,CAAC,CAAC;SACN,CAAC,CACL,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8GA/BrB,OAAO,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,OAAA,EAAA,EAAA,EAAA,KAAA,EAAA,EAAA,CAAA,MAAA,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;;;;;;;;ACZD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-channel-selection.mjs","sources":["../../../../projects/softpak/components/spx-channel-selection/store/spx-channel.actions.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel.reducer.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-indicator/spx-channel-indicator.component.ts","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-indicator/spx-channel-indicator.component.html","../../../../projects/softpak/components/spx-channel-selection/src/spx-channel-guard.ts","../../../../projects/softpak/components/spx-channel-selection/store/spx-channel.effects.ts","../../../../projects/softpak/components/spx-channel-selection/softpak-components-spx-channel-selection.ts"],"sourcesContent":["import { createAction, props, union } from '@ngrx/store';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum } from '@softpak/components/spx-app-configuration';\n\nexport const choose = createAction('[SPX / Channel] Select', props<{\n channel: SpxAppChannelI;\n channelType: SpxAppChannelTypeEnum;\n}>());\nexport const initialize = createAction('[SPX / Channel] Initialize', props<{\n channels: SpxAppChannelI[];\n}>());\n\nconst all = union({\n choose,\n initialize,\n});\n\nexport type Actions = typeof all;\n","\nimport * as actions from './spx-channel.actions';\nimport { createFeature, createReducer, on } from '@ngrx/store';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { SpxAppChannelI, SpxAppChannelTypeEnum, SpxChannelTypeI } from '@softpak/components/spx-app-configuration';\nimport { Capacitor } from '@capacitor/core';\n\nexport const initialState: StateI = {\n previousChannel: null,\n channel: null,\n channelType: null,\n channels: [],\n};\n\nexport interface StateI {\n previousChannel: SpxAppChannelI | null;\n channel: SpxAppChannelI | null;\n channels: SpxAppChannelI[];\n channelType: SpxChannelTypeI | null;\n}\n\nconst determineActiveChannel = (channels: SpxAppChannelI[]): SpxAppChannelI | null => {\n if (SpxStorage.getSetting(SpxStorageKeyEnum.brand) && SpxStorage.getSetting(SpxStorageKeyEnum.channelType)) {\n const channelResult = channels.find(channel => channel.brand === SpxStorage.getSetting(SpxStorageKeyEnum.brand) && channel.channelTypes.some((e: SpxChannelTypeI) => e.name === SpxStorage.getSetting(SpxStorageKeyEnum.channelType) as SpxAppChannelTypeEnum));\n if (channelResult) {\n return channelResult;\n } else {\n const defaultBrandResult = channels.find(channel => channel.default);\n if (defaultBrandResult) {\n return defaultBrandResult;\n } else {\n SpxStorage.clearSetting(SpxStorageKeyEnum.brand);\n return null;\n }\n }\n } else {\n const defaultBrandResult = channels.find(channel => channel.default);\n if (defaultBrandResult) {\n return defaultBrandResult;\n }\n return null;\n }\n}\n\nexport default createFeature({\n name: 'spxChannel',\n reducer: createReducer(\n initialState,\n on(actions.choose, (state, { channel, channelType }): StateI => {\n SpxStorage.setSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.brand, channel?.brand);\n SpxStorage.setSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.channelType, channelType);\n return {\n ...state,\n previousChannel: state.channel,\n channel,\n };\n }),\n on(actions.initialize, (state, { channels }): StateI => {\n\n let channelType: SpxChannelTypeI | null = null;\n\n if (SpxStorage.getSetting(SpxStorageKeyEnum.channelType)) {\n channelType = { name: SpxStorage.getSetting(SpxStorageKeyEnum.channelType) as SpxAppChannelTypeEnum };\n }\n else {\n channelType = { name: Capacitor.getPlatform() === 'web' ? SpxAppChannelTypeEnum.webLive : SpxAppChannelTypeEnum.production }; // Default to production if no type is set\n }\n\n return {\n ...state,\n channel: determineActiveChannel(channels),\n channels: channels.slice().sort((a, b) => a.brand.localeCompare(b.brand)),\n channelType: channelType,\n }\n }),\n ),\n});\n","import { ChangeDetectionStrategy, Component, inject } from '@angular/core';\nimport { Store } from '@ngrx/store';\nimport { SpxButtonComponent } from '@softpak/components/spx-button';\nimport spxChannelReducer from '../../store/spx-channel.reducer';\nimport { TranslatePipe } from '@ngx-translate/core';\nimport { SpxCapitalizePipe } from '@softpak/components/spx-capitalize';\nimport { spxTextChange } from '@softpak/components/spx-translate';\nimport { NavController } from '@ionic/angular';\nimport { toSignal } from '@angular/core/rxjs-interop';\nimport { map } from 'rxjs';\nexport const spxChannelSelectionUrl = 'wlc';\n\n@Component({\n selector: 'spx-channel-indicator',\n templateUrl: './spx-channel-indicator.component.html',\n imports: [\n SpxButtonComponent,\n SpxCapitalizePipe,\n TranslatePipe,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n standalone: true,\n})\nexport class SpxChannelIndicatorComponent {\n private readonly navController = inject(NavController);\n private readonly store = inject(Store);\n protected readonly channel = toSignal(this.store.select(spxChannelReducer.selectChannel));\n protected readonly channelType = toSignal(this.store.select(spxChannelReducer.selectChannelType).pipe(\n map(channelType => channelType?.name)\n ));\n protected readonly spxTextChange = spxTextChange;\n\n protected onChange() {\n this.navController.navigateRoot([spxChannelSelectionUrl]);\n }\n}\n","<div class=\"bg-white p-3 rounded flex gap-3 items-center text-black\">\n <div class=\"grow\">\n <div class=\"text-lg font-bold\">{{ channel()?.brand }}</div>\n @if (channelType() !== 'Production') {\n <div class=\"text-base text-gray-600\">{{ channelType() }}</div>\n }\n </div>\n <spx-button (click)=\"onChange()\" [spxType]=\"'button'\">{{ spxTextChange | translate | capitalize }}</spx-button>\n</div>","import { Router } from '@angular/router';\nimport { inject, Injectable } from '@angular/core';\nimport { SpxStorage, SpxStorageKeyEnum } from '@softpak/components/spx-storage';\nimport { spxChannelSelectionUrl } from './spx-channel-indicator/spx-channel-indicator.component';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SpxChannelGuard {\n\n private readonly router = inject(Router);\n\n canActivate(): boolean {\n if (\n !SpxStorage.getSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.brand) ||\n !SpxStorage.getSetting<SpxStorageKeyEnum>(SpxStorageKeyEnum.channelType)\n ) {\n this.router.navigate([spxChannelSelectionUrl]);\n return false;\n }\n return true;\n }\n}\n","import { Actions, createEffect, ofType } from '@ngrx/effects';\nimport { switchMap, withLatestFrom } from 'rxjs/operators';\nimport { inject, Injectable } from '@angular/core';\nimport * as actions from './spx-channel.actions';\nimport { setConfig } from '@capacitor/live-updates';\nimport { Capacitor } from '@capacitor/core';\nimport { Router } from '@angular/router';\nimport { spxUpdateUrl } from '@softpak/components/spx-update';\nimport { spxToasterActions, SpxToasterAutoCloseSpeedEnum } from '@softpak/components/spx-toaster';\nimport { captureMessage } from '@sentry/angular';\nimport { App } from '@capacitor/app';\nimport { Store } from '@ngrx/store';\n\n@Injectable()\nexport class Effects {\n store = inject(Store);\n\n onChoose$ =\n createEffect(() =>\n this.actions$.pipe(\n ofType(actions.choose),\n switchMap((action) => {\n if (Capacitor.getPlatform() === 'web') {\n const channelType = action.channel.channelTypes.find(channelType => channelType.name === action.channelType)!;\n if (window.location.href.split('/').at(0) !== channelType.webUrl) {\n window.location.href = channelType.webUrl!;\n } else {\n this.router.navigate(['tabs/hme']);\n }\n } else {\n App.getInfo().then((binaryInfo) => {\n const binaryVersionGroup = binaryInfo.version.substring(0, 3);\n setConfig({\n channel: `${action.channelType}-${binaryVersionGroup}.x`\n });\n this.router.navigate([spxUpdateUrl]);\n }).catch((err) => {\n captureMessage(`SPX Channel Error: ${JSON.stringify(err)}`);\n this.router.navigate([spxUpdateUrl]);\n });\n }\n\n return [spxToasterActions.createSuccess({\n autoClose: SpxToasterAutoCloseSpeedEnum.DEFAULT,\n messageText: action.channel?.brand,\n })];\n }),\n ), { dispatch: true });\n\n constructor(\n private readonly actions$: Actions,\n private readonly router: Router,\n ) { }\n}\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["actions.choose","actions.initialize","spxChannelReducer"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;AAGO,MAAM,MAAM,GAAG,YAAY,CAAC,wBAAwB,EAAE,KAAK,EAG9D,CAAC;AACE,MAAM,UAAU,GAAG,YAAY,CAAC,4BAA4B,EAAE,KAAK,EAEtE,CAAC;AAEL,MAAM,GAAG,GAAG,KAAK,CAAC;IACd,MAAM;IACN,UAAU;AACb,CAAA,CAAC;;;;;;;;ACPK,MAAM,YAAY,GAAW;AAClC,IAAA,eAAe,EAAE,IAAI;AACrB,IAAA,OAAO,EAAE,IAAI;AACb,IAAA,WAAW,EAAE,IAAI;AACjB,IAAA,QAAQ,EAAE,EAAE;CACb;AASD,MAAM,sBAAsB,GAAG,CAAC,QAA0B,KAA2B;AACnF,IAAA,IAAI,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAAE;QAC1G,MAAM,aAAa,GAAG,QAAQ,CAAC,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,KAAK,KAAK,UAAU,CAAC,UAAU,CAAC,iBA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OAAO,EAAA,CAAA,CAAA;;2FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBADnB;;;;;;;;ACbD;;AAEG;;;;"}
|
|
@@ -4,7 +4,6 @@ var SpxStorageKeyEnum;
|
|
|
4
4
|
SpxStorageKeyEnum["brand"] = "brand";
|
|
5
5
|
SpxStorageKeyEnum["bundleVersion"] = "bundleVersion";
|
|
6
6
|
SpxStorageKeyEnum["channelType"] = "channelType";
|
|
7
|
-
SpxStorageKeyEnum["channelTypeWithWebUrl"] = "channelTypeWithWebUrl";
|
|
8
7
|
SpxStorageKeyEnum["channelSettings"] = "companySettings";
|
|
9
8
|
SpxStorageKeyEnum["liveUpdate"] = "liveUpdate";
|
|
10
9
|
SpxStorageKeyEnum["platform"] = "platform";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"softpak-components-spx-storage.mjs","sources":["../../../../projects/softpak/components/spx-storage/src/spx-storage-key.enum.ts","../../../../projects/softpak/components/spx-storage/src/spx-storage.class.ts","../../../../projects/softpak/components/spx-storage/softpak-components-spx-storage.ts"],"sourcesContent":["export enum SpxStorageKeyEnum {\n afterSignIn = 'afterSignIn',\n brand = 'brand',\n bundleVersion = 'bundleVersion',\n channelType = 'channelType',\n
|
|
1
|
+
{"version":3,"file":"softpak-components-spx-storage.mjs","sources":["../../../../projects/softpak/components/spx-storage/src/spx-storage-key.enum.ts","../../../../projects/softpak/components/spx-storage/src/spx-storage.class.ts","../../../../projects/softpak/components/spx-storage/softpak-components-spx-storage.ts"],"sourcesContent":["export enum SpxStorageKeyEnum {\n afterSignIn = 'afterSignIn',\n brand = 'brand',\n bundleVersion = 'bundleVersion',\n channelType = 'channelType',\n channelSettings = 'companySettings',\n liveUpdate = 'liveUpdate',\n platform = 'platform',\n platformVersion = 'platformVersion',\n token = 'token',\n updateInProgress = 'updateInProgress',\n randomDeviceId = 'randomDeviceId',\n release = 'release',\n patch = 'patch',\n};\n","import { SpxStorageKeyEnum } from './spx-storage-key.enum';\n\nexport class SpxStorage {\n private static get channelId() {\n return `${this.getSetting(SpxStorageKeyEnum.brand)?.toUpperCase()}_${this.getSetting(SpxStorageKeyEnum.channelType)?.toUpperCase()}`;\n }\n\n public static clearSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): void {\n localStorage.removeItem(key as string);\n }\n\n public static getSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): string | null {\n return localStorage.getItem(key as string);\n }\n\n public static setSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum, settingValue: string): void {\n localStorage.setItem(key as string, settingValue);\n }\n\n public static getChannelSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): string | undefined {\n let storageObj;\n const storageObjStr = localStorage.getItem(SpxStorageKeyEnum.channelSettings);\n\n if (storageObjStr) {\n storageObj = JSON.parse(storageObjStr);\n if (!storageObj[this.channelId]) {\n return undefined;\n }\n return storageObj[this.channelId][key];\n } else {\n return undefined;\n }\n }\n\n public static setChannelSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum, settingValue: any): void {\n const companySettings = this.getSetting(SpxStorageKeyEnum.channelSettings);\n let storageObj;\n\n if (companySettings) {\n storageObj = JSON.parse(companySettings);\n } else {\n storageObj = {};\n }\n\n if (!storageObj[this.channelId]) {\n storageObj[this.channelId] = {};\n }\n\n storageObj[this.channelId][key] = settingValue;\n this.setSetting(SpxStorageKeyEnum.channelSettings, JSON.stringify(storageObj));\n }\n}\n\n\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":"IAAY;AAAZ,CAAA,UAAY,iBAAiB,EAAA;AACzB,IAAA,iBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,iBAAA,CAAA,eAAA,CAAA,GAAA,eAA+B;AAC/B,IAAA,iBAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,iBAAA,CAAA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,CAAC,KAAK,CAAC,aAAa,CAAC;YACtC,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;AAC7B,gBAAA,OAAO,SAAS;;YAEpB,OAAO,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC;;aACnC;AACH,YAAA,OAAO,SAAS;;;AAIjB,IAAA,OAAO,iBAAiB,CAAU,GAAgC,EAAE,YAAiB,EAAA;QACxF,MAAM,eAAe,GAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,eAAe,CAAC;AAC1E,QAAA,IAAI,UAAU;QAEd,IAAI,eAAe,EAAE;AACjB,YAAA,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC;;aACrC;YACH,UAAU,GAAG,EAAE;;QAGnB,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,EAAE;AAC7B,YAAA,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE;;QAGnC,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,CAAC,GAAG,YAAY;AAC9C,QAAA,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,eAAe,EAAE,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;;AAErF;;ACnDD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@softpak/components",
|
|
3
|
-
"version": "20.2.2-beta.
|
|
3
|
+
"version": "20.2.2-beta.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "19.x.x || 20.x.x",
|
|
@@ -44,14 +44,14 @@
|
|
|
44
44
|
"types": "./spx-app-configuration/index.d.ts",
|
|
45
45
|
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
46
46
|
},
|
|
47
|
-
"./spx-button": {
|
|
48
|
-
"types": "./spx-button/index.d.ts",
|
|
49
|
-
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
50
|
-
},
|
|
51
47
|
"./spx-app-expiry": {
|
|
52
48
|
"types": "./spx-app-expiry/index.d.ts",
|
|
53
49
|
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
54
50
|
},
|
|
51
|
+
"./spx-button": {
|
|
52
|
+
"types": "./spx-button/index.d.ts",
|
|
53
|
+
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
54
|
+
},
|
|
55
55
|
"./spx-capitalize": {
|
|
56
56
|
"types": "./spx-capitalize/index.d.ts",
|
|
57
57
|
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
@@ -68,6 +68,10 @@
|
|
|
68
68
|
"types": "./spx-check-digit/index.d.ts",
|
|
69
69
|
"default": "./fesm2022/softpak-components-spx-check-digit.mjs"
|
|
70
70
|
},
|
|
71
|
+
"./spx-channel-selection": {
|
|
72
|
+
"types": "./spx-channel-selection/index.d.ts",
|
|
73
|
+
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
74
|
+
},
|
|
71
75
|
"./spx-confirm": {
|
|
72
76
|
"types": "./spx-confirm/index.d.ts",
|
|
73
77
|
"default": "./fesm2022/softpak-components-spx-confirm.mjs"
|
|
@@ -76,29 +80,29 @@
|
|
|
76
80
|
"types": "./spx-form-section/index.d.ts",
|
|
77
81
|
"default": "./fesm2022/softpak-components-spx-form-section.mjs"
|
|
78
82
|
},
|
|
79
|
-
"./spx-form-view": {
|
|
80
|
-
"types": "./spx-form-view/index.d.ts",
|
|
81
|
-
"default": "./fesm2022/softpak-components-spx-form-view.mjs"
|
|
82
|
-
},
|
|
83
83
|
"./spx-helpers": {
|
|
84
84
|
"types": "./spx-helpers/index.d.ts",
|
|
85
85
|
"default": "./fesm2022/softpak-components-spx-helpers.mjs"
|
|
86
86
|
},
|
|
87
|
-
"./spx-
|
|
88
|
-
"types": "./spx-
|
|
89
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
87
|
+
"./spx-form-view": {
|
|
88
|
+
"types": "./spx-form-view/index.d.ts",
|
|
89
|
+
"default": "./fesm2022/softpak-components-spx-form-view.mjs"
|
|
90
90
|
},
|
|
91
91
|
"./spx-inputs": {
|
|
92
92
|
"types": "./spx-inputs/index.d.ts",
|
|
93
93
|
"default": "./fesm2022/softpak-components-spx-inputs.mjs"
|
|
94
94
|
},
|
|
95
|
+
"./spx-navigation": {
|
|
96
|
+
"types": "./spx-navigation/index.d.ts",
|
|
97
|
+
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
98
|
+
},
|
|
95
99
|
"./spx-number-check": {
|
|
96
100
|
"types": "./spx-number-check/index.d.ts",
|
|
97
101
|
"default": "./fesm2022/softpak-components-spx-number-check.mjs"
|
|
98
102
|
},
|
|
99
|
-
"./spx-
|
|
100
|
-
"types": "./spx-
|
|
101
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
103
|
+
"./spx-pagination": {
|
|
104
|
+
"types": "./spx-pagination/index.d.ts",
|
|
105
|
+
"default": "./fesm2022/softpak-components-spx-pagination.mjs"
|
|
102
106
|
},
|
|
103
107
|
"./spx-patch": {
|
|
104
108
|
"types": "./spx-patch/index.d.ts",
|
|
@@ -108,61 +112,57 @@
|
|
|
108
112
|
"types": "./spx-pipes/index.d.ts",
|
|
109
113
|
"default": "./fesm2022/softpak-components-spx-pipes.mjs"
|
|
110
114
|
},
|
|
111
|
-
"./spx-pagination": {
|
|
112
|
-
"types": "./spx-pagination/index.d.ts",
|
|
113
|
-
"default": "./fesm2022/softpak-components-spx-pagination.mjs"
|
|
114
|
-
},
|
|
115
115
|
"./spx-progress-bar": {
|
|
116
116
|
"types": "./spx-progress-bar/index.d.ts",
|
|
117
117
|
"default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
|
|
118
118
|
},
|
|
119
|
-
"./spx-
|
|
120
|
-
"types": "./spx-
|
|
121
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
119
|
+
"./spx-storage": {
|
|
120
|
+
"types": "./spx-storage/index.d.ts",
|
|
121
|
+
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
122
122
|
},
|
|
123
123
|
"./spx-spinner": {
|
|
124
124
|
"types": "./spx-spinner/index.d.ts",
|
|
125
125
|
"default": "./fesm2022/softpak-components-spx-spinner.mjs"
|
|
126
126
|
},
|
|
127
|
-
"./spx-
|
|
128
|
-
"types": "./spx-
|
|
129
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
127
|
+
"./spx-stock-info": {
|
|
128
|
+
"types": "./spx-stock-info/index.d.ts",
|
|
129
|
+
"default": "./fesm2022/softpak-components-spx-stock-info.mjs"
|
|
130
130
|
},
|
|
131
131
|
"./spx-suggestion": {
|
|
132
132
|
"types": "./spx-suggestion/index.d.ts",
|
|
133
133
|
"default": "./fesm2022/softpak-components-spx-suggestion.mjs"
|
|
134
134
|
},
|
|
135
|
-
"./spx-toaster": {
|
|
136
|
-
"types": "./spx-toaster/index.d.ts",
|
|
137
|
-
"default": "./fesm2022/softpak-components-spx-toaster.mjs"
|
|
138
|
-
},
|
|
139
135
|
"./spx-tabs": {
|
|
140
136
|
"types": "./spx-tabs/index.d.ts",
|
|
141
137
|
"default": "./fesm2022/softpak-components-spx-tabs.mjs"
|
|
142
138
|
},
|
|
139
|
+
"./spx-toaster": {
|
|
140
|
+
"types": "./spx-toaster/index.d.ts",
|
|
141
|
+
"default": "./fesm2022/softpak-components-spx-toaster.mjs"
|
|
142
|
+
},
|
|
143
143
|
"./spx-toggle": {
|
|
144
144
|
"types": "./spx-toggle/index.d.ts",
|
|
145
145
|
"default": "./fesm2022/softpak-components-spx-toggle.mjs"
|
|
146
146
|
},
|
|
147
|
-
"./spx-
|
|
148
|
-
"types": "./spx-
|
|
149
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
147
|
+
"./spx-translate": {
|
|
148
|
+
"types": "./spx-translate/index.d.ts",
|
|
149
|
+
"default": "./fesm2022/softpak-components-spx-translate.mjs"
|
|
150
150
|
},
|
|
151
151
|
"./spx-update": {
|
|
152
152
|
"types": "./spx-update/index.d.ts",
|
|
153
153
|
"default": "./fesm2022/softpak-components-spx-update.mjs"
|
|
154
154
|
},
|
|
155
|
-
"./spx-
|
|
156
|
-
"types": "./spx-
|
|
157
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
158
|
-
},
|
|
159
|
-
"./spx-welcome": {
|
|
160
|
-
"types": "./spx-welcome/index.d.ts",
|
|
161
|
-
"default": "./fesm2022/softpak-components-spx-welcome.mjs"
|
|
155
|
+
"./spx-validation": {
|
|
156
|
+
"types": "./spx-validation/index.d.ts",
|
|
157
|
+
"default": "./fesm2022/softpak-components-spx-validation.mjs"
|
|
162
158
|
},
|
|
163
159
|
"./spx-validation-messages": {
|
|
164
160
|
"types": "./spx-validation-messages/index.d.ts",
|
|
165
161
|
"default": "./fesm2022/softpak-components-spx-validation-messages.mjs"
|
|
162
|
+
},
|
|
163
|
+
"./spx-welcome": {
|
|
164
|
+
"types": "./spx-welcome/index.d.ts",
|
|
165
|
+
"default": "./fesm2022/softpak-components-spx-welcome.mjs"
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
}
|
|
@@ -19,7 +19,9 @@ declare enum SpxAppChannelTypeEnum {
|
|
|
19
19
|
production = "Production",
|
|
20
20
|
beta = "Beta",
|
|
21
21
|
alpha = "Alpha",
|
|
22
|
-
development = "Development"
|
|
22
|
+
development = "Development",
|
|
23
|
+
webLive = "Web (Live)",
|
|
24
|
+
webBeta = "Web (Beta)"
|
|
23
25
|
}
|
|
24
26
|
|
|
25
27
|
interface SpxChannelTypeI {
|
|
@@ -2,6 +2,7 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import * as _softpak_components_spx_app_configuration from '@softpak/components/spx-app-configuration';
|
|
3
3
|
import { SpxAppChannelI, SpxAppChannelTypeEnum, SpxChannelTypeI } from '@softpak/components/spx-app-configuration';
|
|
4
4
|
import * as _ngrx_store from '@ngrx/store';
|
|
5
|
+
import { Store } from '@ngrx/store';
|
|
5
6
|
import * as _ngrx_effects from '@ngrx/effects';
|
|
6
7
|
import { Actions as Actions$1 } from '@ngrx/effects';
|
|
7
8
|
import * as rxjs from 'rxjs';
|
|
@@ -58,6 +59,7 @@ declare namespace spxChannel_actions_d {
|
|
|
58
59
|
declare class Effects {
|
|
59
60
|
private readonly actions$;
|
|
60
61
|
private readonly router;
|
|
62
|
+
store: Store<any>;
|
|
61
63
|
onChoose$: rxjs.Observable<{
|
|
62
64
|
autoClose?: number | SpxToasterAutoCloseSpeedEnum;
|
|
63
65
|
closeable?: boolean;
|
package/spx-storage/index.d.ts
CHANGED