@softpak/components 20.7.5 → 20.8.0
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.
|
@@ -13,6 +13,7 @@ var SpxStorageKeyEnum;
|
|
|
13
13
|
SpxStorageKeyEnum["randomDeviceId"] = "randomDeviceId";
|
|
14
14
|
SpxStorageKeyEnum["release"] = "release";
|
|
15
15
|
SpxStorageKeyEnum["patch"] = "patch";
|
|
16
|
+
SpxStorageKeyEnum["username"] = "username";
|
|
16
17
|
})(SpxStorageKeyEnum || (SpxStorageKeyEnum = {}));
|
|
17
18
|
;
|
|
18
19
|
|
|
@@ -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 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,iBAAA,CAAA,GAAA,iBAAmC;AACnC,IAAA,iBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,iBAAA,CAAA,iBAAA,CAAA,GAAA,iBAAmC;AACnC,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,iBAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC;AACrC,IAAA,iBAAA,CAAA,gBAAA,CAAA,GAAA,gBAAiC;AACjC,IAAA,iBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;
|
|
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 username = 'username',\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,iBAAA,CAAA,GAAA,iBAAmC;AACnC,IAAA,iBAAA,CAAA,YAAA,CAAA,GAAA,YAAyB;AACzB,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,iBAAA,CAAA,iBAAA,CAAA,GAAA,iBAAmC;AACnC,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,iBAAA,CAAA,kBAAA,CAAA,GAAA,kBAAqC;AACrC,IAAA,iBAAA,CAAA,gBAAA,CAAA,GAAA,gBAAiC;AACjC,IAAA,iBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,iBAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACzB,CAAC,EAfW,iBAAiB,KAAjB,iBAAiB,GAAA,EAAA,CAAA,CAAA;AAe5B;;MCbY,UAAU,CAAA;AACX,IAAA,WAAW,SAAS,GAAA;QACxB,OAAO,CAAA,EAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAA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,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.
|
|
3
|
+
"version": "20.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "20.x.x",
|
|
@@ -32,14 +32,22 @@
|
|
|
32
32
|
"types": "./index.d.ts",
|
|
33
33
|
"default": "./fesm2022/softpak-components.mjs"
|
|
34
34
|
},
|
|
35
|
-
"./spx-404-page": {
|
|
36
|
-
"types": "./spx-404-page/index.d.ts",
|
|
37
|
-
"default": "./fesm2022/softpak-components-spx-404-page.mjs"
|
|
38
|
-
},
|
|
39
35
|
"./spx-alert": {
|
|
40
36
|
"types": "./spx-alert/index.d.ts",
|
|
41
37
|
"default": "./fesm2022/softpak-components-spx-alert.mjs"
|
|
42
38
|
},
|
|
39
|
+
"./spx-app-configuration": {
|
|
40
|
+
"types": "./spx-app-configuration/index.d.ts",
|
|
41
|
+
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
42
|
+
},
|
|
43
|
+
"./spx-app-expiry": {
|
|
44
|
+
"types": "./spx-app-expiry/index.d.ts",
|
|
45
|
+
"default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
|
|
46
|
+
},
|
|
47
|
+
"./spx-404-page": {
|
|
48
|
+
"types": "./spx-404-page/index.d.ts",
|
|
49
|
+
"default": "./fesm2022/softpak-components-spx-404-page.mjs"
|
|
50
|
+
},
|
|
43
51
|
"./spx-capitalize": {
|
|
44
52
|
"types": "./spx-capitalize/index.d.ts",
|
|
45
53
|
"default": "./fesm2022/softpak-components-spx-capitalize.mjs"
|
|
@@ -48,21 +56,17 @@
|
|
|
48
56
|
"types": "./spx-button/index.d.ts",
|
|
49
57
|
"default": "./fesm2022/softpak-components-spx-button.mjs"
|
|
50
58
|
},
|
|
51
|
-
"./spx-
|
|
52
|
-
"types": "./spx-
|
|
53
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
59
|
+
"./spx-card": {
|
|
60
|
+
"types": "./spx-card/index.d.ts",
|
|
61
|
+
"default": "./fesm2022/softpak-components-spx-card.mjs"
|
|
54
62
|
},
|
|
55
63
|
"./spx-change-details": {
|
|
56
64
|
"types": "./spx-change-details/index.d.ts",
|
|
57
65
|
"default": "./fesm2022/softpak-components-spx-change-details.mjs"
|
|
58
66
|
},
|
|
59
|
-
"./spx-
|
|
60
|
-
"types": "./spx-
|
|
61
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
62
|
-
},
|
|
63
|
-
"./spx-app-configuration": {
|
|
64
|
-
"types": "./spx-app-configuration/index.d.ts",
|
|
65
|
-
"default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
|
|
67
|
+
"./spx-channel-selection": {
|
|
68
|
+
"types": "./spx-channel-selection/index.d.ts",
|
|
69
|
+
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
66
70
|
},
|
|
67
71
|
"./spx-check-digit": {
|
|
68
72
|
"types": "./spx-check-digit/index.d.ts",
|
|
@@ -72,42 +76,42 @@
|
|
|
72
76
|
"types": "./spx-confirm/index.d.ts",
|
|
73
77
|
"default": "./fesm2022/softpak-components-spx-confirm.mjs"
|
|
74
78
|
},
|
|
75
|
-
"./spx-channel-selection": {
|
|
76
|
-
"types": "./spx-channel-selection/index.d.ts",
|
|
77
|
-
"default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
|
|
78
|
-
},
|
|
79
79
|
"./spx-form-section": {
|
|
80
80
|
"types": "./spx-form-section/index.d.ts",
|
|
81
81
|
"default": "./fesm2022/softpak-components-spx-form-section.mjs"
|
|
82
82
|
},
|
|
83
|
+
"./spx-form-view": {
|
|
84
|
+
"types": "./spx-form-view/index.d.ts",
|
|
85
|
+
"default": "./fesm2022/softpak-components-spx-form-view.mjs"
|
|
86
|
+
},
|
|
83
87
|
"./spx-helpers": {
|
|
84
88
|
"types": "./spx-helpers/index.d.ts",
|
|
85
89
|
"default": "./fesm2022/softpak-components-spx-helpers.mjs"
|
|
86
90
|
},
|
|
87
|
-
"./spx-
|
|
88
|
-
"types": "./spx-
|
|
89
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
91
|
+
"./spx-inputs": {
|
|
92
|
+
"types": "./spx-inputs/index.d.ts",
|
|
93
|
+
"default": "./fesm2022/softpak-components-spx-inputs.mjs"
|
|
90
94
|
},
|
|
91
95
|
"./spx-navigation": {
|
|
92
96
|
"types": "./spx-navigation/index.d.ts",
|
|
93
97
|
"default": "./fesm2022/softpak-components-spx-navigation.mjs"
|
|
94
98
|
},
|
|
95
|
-
"./spx-pagination": {
|
|
96
|
-
"types": "./spx-pagination/index.d.ts",
|
|
97
|
-
"default": "./fesm2022/softpak-components-spx-pagination.mjs"
|
|
98
|
-
},
|
|
99
99
|
"./spx-number-check": {
|
|
100
100
|
"types": "./spx-number-check/index.d.ts",
|
|
101
101
|
"default": "./fesm2022/softpak-components-spx-number-check.mjs"
|
|
102
102
|
},
|
|
103
|
-
"./spx-
|
|
104
|
-
"types": "./spx-
|
|
105
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
103
|
+
"./spx-pagination": {
|
|
104
|
+
"types": "./spx-pagination/index.d.ts",
|
|
105
|
+
"default": "./fesm2022/softpak-components-spx-pagination.mjs"
|
|
106
106
|
},
|
|
107
107
|
"./spx-patch": {
|
|
108
108
|
"types": "./spx-patch/index.d.ts",
|
|
109
109
|
"default": "./fesm2022/softpak-components-spx-patch.mjs"
|
|
110
110
|
},
|
|
111
|
+
"./spx-pipes": {
|
|
112
|
+
"types": "./spx-pipes/index.d.ts",
|
|
113
|
+
"default": "./fesm2022/softpak-components-spx-pipes.mjs"
|
|
114
|
+
},
|
|
111
115
|
"./spx-progress-bar": {
|
|
112
116
|
"types": "./spx-progress-bar/index.d.ts",
|
|
113
117
|
"default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
|
|
@@ -116,18 +120,14 @@
|
|
|
116
120
|
"types": "./spx-spinner/index.d.ts",
|
|
117
121
|
"default": "./fesm2022/softpak-components-spx-spinner.mjs"
|
|
118
122
|
},
|
|
119
|
-
"./spx-
|
|
120
|
-
"types": "./spx-
|
|
121
|
-
"default": "./fesm2022/softpak-components-spx-
|
|
123
|
+
"./spx-storage": {
|
|
124
|
+
"types": "./spx-storage/index.d.ts",
|
|
125
|
+
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
122
126
|
},
|
|
123
127
|
"./spx-stock-info": {
|
|
124
128
|
"types": "./spx-stock-info/index.d.ts",
|
|
125
129
|
"default": "./fesm2022/softpak-components-spx-stock-info.mjs"
|
|
126
130
|
},
|
|
127
|
-
"./spx-storage": {
|
|
128
|
-
"types": "./spx-storage/index.d.ts",
|
|
129
|
-
"default": "./fesm2022/softpak-components-spx-storage.mjs"
|
|
130
|
-
},
|
|
131
131
|
"./spx-suggestion": {
|
|
132
132
|
"types": "./spx-suggestion/index.d.ts",
|
|
133
133
|
"default": "./fesm2022/softpak-components-spx-suggestion.mjs"
|
|
@@ -152,6 +152,10 @@
|
|
|
152
152
|
"types": "./spx-translate/index.d.ts",
|
|
153
153
|
"default": "./fesm2022/softpak-components-spx-translate.mjs"
|
|
154
154
|
},
|
|
155
|
+
"./spx-validation-messages": {
|
|
156
|
+
"types": "./spx-validation-messages/index.d.ts",
|
|
157
|
+
"default": "./fesm2022/softpak-components-spx-validation-messages.mjs"
|
|
158
|
+
},
|
|
155
159
|
"./spx-validation": {
|
|
156
160
|
"types": "./spx-validation/index.d.ts",
|
|
157
161
|
"default": "./fesm2022/softpak-components-spx-validation.mjs"
|
|
@@ -159,10 +163,6 @@
|
|
|
159
163
|
"./spx-welcome": {
|
|
160
164
|
"types": "./spx-welcome/index.d.ts",
|
|
161
165
|
"default": "./fesm2022/softpak-components-spx-welcome.mjs"
|
|
162
|
-
},
|
|
163
|
-
"./spx-validation-messages": {
|
|
164
|
-
"types": "./spx-validation-messages/index.d.ts",
|
|
165
|
-
"default": "./fesm2022/softpak-components-spx-validation-messages.mjs"
|
|
166
166
|
}
|
|
167
167
|
}
|
|
168
168
|
}
|
package/spx-spinner/index.d.ts
CHANGED
|
@@ -59,9 +59,9 @@ declare const _default: {
|
|
|
59
59
|
name: "spxSpinner";
|
|
60
60
|
reducer: _ngrx_store.ActionReducer<StateI, _ngrx_store.Action<string>>;
|
|
61
61
|
selectSpxSpinnerState: _ngrx_store.MemoizedSelector<Record<string, any>, StateI, (featureState: StateI) => StateI>;
|
|
62
|
+
selectShow: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (featureState: StateI) => boolean>;
|
|
62
63
|
selectLoadActions: _ngrx_store.MemoizedSelector<Record<string, any>, string[], (featureState: StateI) => string[]>;
|
|
63
64
|
selectNrOfLoadActions: _ngrx_store.MemoizedSelector<Record<string, any>, number, (featureState: StateI) => number>;
|
|
64
|
-
selectShow: _ngrx_store.MemoizedSelector<Record<string, any>, boolean, (featureState: StateI) => boolean>;
|
|
65
65
|
};
|
|
66
66
|
|
|
67
67
|
declare namespace spxSpinner_reducer_d {
|
package/spx-storage/index.d.ts
CHANGED