@softpak/components 18.6.18 → 18.6.19

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.
@@ -8,6 +8,7 @@ var SpxStorageKeyEnum;
8
8
  SpxStorageKeyEnum["updateInProgress"] = "updateInProgress";
9
9
  SpxStorageKeyEnum["release"] = "release";
10
10
  SpxStorageKeyEnum["patch"] = "patch";
11
+ SpxStorageKeyEnum["company"] = "company";
11
12
  })(SpxStorageKeyEnum || (SpxStorageKeyEnum = {}));
12
13
  ;
13
14
 
@@ -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 {\r\n afterSignIn = 'afterSignIn',\r\n brand = 'brand',\r\n channelType = 'channelType',\r\n channelSettings = 'companySettings',\r\n token = 'token',\r\n updateInProgress = 'updateInProgress',\r\n release = 'release',\r\n patch = 'patch',\r\n};\r\n","import { SpxStorageKeyEnum } from './spx-storage-key.enum';\r\n\r\nexport class SpxStorage {\r\n private static get channelId() {\r\n return `${this.getSetting(SpxStorageKeyEnum.brand)?.toUpperCase()}_${this.getSetting(SpxStorageKeyEnum.channelType)?.toUpperCase()}`;\r\n }\r\n\r\n public static clearSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): void {\r\n localStorage.removeItem(key as string);\r\n }\r\n\r\n public static getSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): string | null {\r\n return localStorage.getItem(key as string);\r\n }\r\n\r\n public static setSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum, settingValue: string): void {\r\n localStorage.setItem(key as string, settingValue);\r\n }\r\n\r\n public static getChannelSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): string | undefined {\r\n let storageObj;\r\n const storageObjStr = localStorage.getItem(SpxStorageKeyEnum.channelSettings);\r\n\r\n if (storageObjStr) {\r\n storageObj = JSON.parse(storageObjStr);\r\n if (!storageObj[this.channelId]) {\r\n return undefined;\r\n }\r\n return storageObj[this.channelId][key];\r\n } else {\r\n return undefined;\r\n }\r\n }\r\n\r\n public static setChannelSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum, settingValue: any): void {\r\n const companySettings = this.getSetting(SpxStorageKeyEnum.channelSettings);\r\n let storageObj;\r\n\r\n if (companySettings) {\r\n storageObj = JSON.parse(companySettings);\r\n } else {\r\n storageObj = {};\r\n }\r\n\r\n if (!storageObj[this.channelId]) {\r\n storageObj[this.channelId] = {};\r\n }\r\n\r\n storageObj[this.channelId][key] = settingValue;\r\n this.setSetting(SpxStorageKeyEnum.channelSettings, JSON.stringify(storageObj));\r\n }\r\n}\r\n\r\n\r\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,aAAA,CAAA,GAAA,aAA2B;AAC3B,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,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACnB,CAAC,EATW,iBAAiB,KAAjB,iBAAiB,GAS5B,EAAA,CAAA,CAAA;AAAA;;MCPY,UAAU,CAAA;AACX,IAAA,WAAW,SAAS,GAAA;QACxB,OAAO,CAAA,EAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,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GnC,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;;;;"}
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 {\r\n afterSignIn = 'afterSignIn',\r\n brand = 'brand',\r\n channelType = 'channelType',\r\n channelSettings = 'companySettings',\r\n token = 'token',\r\n updateInProgress = 'updateInProgress',\r\n release = 'release',\r\n patch = 'patch',\r\n company = 'company',\r\n};\r\n","import { SpxStorageKeyEnum } from './spx-storage-key.enum';\r\n\r\nexport class SpxStorage {\r\n private static get channelId() {\r\n return `${this.getSetting(SpxStorageKeyEnum.brand)?.toUpperCase()}_${this.getSetting(SpxStorageKeyEnum.channelType)?.toUpperCase()}`;\r\n }\r\n\r\n public static clearSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): void {\r\n localStorage.removeItem(key as string);\r\n }\r\n\r\n public static getSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): string | null {\r\n return localStorage.getItem(key as string);\r\n }\r\n\r\n public static setSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum, settingValue: string): void {\r\n localStorage.setItem(key as string, settingValue);\r\n }\r\n\r\n public static getChannelSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum): string | undefined {\r\n let storageObj;\r\n const storageObjStr = localStorage.getItem(SpxStorageKeyEnum.channelSettings);\r\n\r\n if (storageObjStr) {\r\n storageObj = JSON.parse(storageObjStr);\r\n if (!storageObj[this.channelId]) {\r\n return undefined;\r\n }\r\n return storageObj[this.channelId][key];\r\n } else {\r\n return undefined;\r\n }\r\n }\r\n\r\n public static setChannelSetting<KeyEnum>(key: KeyEnum | SpxStorageKeyEnum, settingValue: any): void {\r\n const companySettings = this.getSetting(SpxStorageKeyEnum.channelSettings);\r\n let storageObj;\r\n\r\n if (companySettings) {\r\n storageObj = JSON.parse(companySettings);\r\n } else {\r\n storageObj = {};\r\n }\r\n\r\n if (!storageObj[this.channelId]) {\r\n storageObj[this.channelId] = {};\r\n }\r\n\r\n storageObj[this.channelId][key] = settingValue;\r\n this.setSetting(SpxStorageKeyEnum.channelSettings, JSON.stringify(storageObj));\r\n }\r\n}\r\n\r\n\r\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,aAAA,CAAA,GAAA,aAA2B;AAC3B,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,SAAA,CAAA,GAAA,SAAmB;AACnB,IAAA,iBAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,iBAAA,CAAA,SAAA,CAAA,GAAA,SAAmB;AACvB,CAAC,EAVW,iBAAiB,KAAjB,iBAAiB,GAU5B,EAAA,CAAA,CAAA;AAAA;;MCRY,UAAU,CAAA;AACX,IAAA,WAAW,SAAS,GAAA;QACxB,OAAO,CAAA,EAAG,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,WAAW,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,iBAAiB,CAAC,WAAW,CAAC,EAA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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": "18.6.18",
3
+ "version": "18.6.19",
4
4
  "private": false,
5
5
  "peerDependencies": {
6
6
  "@angular/common": "18.x.x || 19.x.x",
@@ -30,14 +30,6 @@
30
30
  "types": "./spx-alert/index.d.ts",
31
31
  "default": "./fesm2022/softpak-components-spx-alert.mjs"
32
32
  },
33
- "./spx-app-expiry": {
34
- "types": "./spx-app-expiry/index.d.ts",
35
- "default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
36
- },
37
- "./spx-button": {
38
- "types": "./spx-button/index.d.ts",
39
- "default": "./fesm2022/softpak-components-spx-button.mjs"
40
- },
41
33
  "./spx-app-configuration": {
42
34
  "types": "./spx-app-configuration/index.d.ts",
43
35
  "default": "./fesm2022/softpak-components-spx-app-configuration.mjs"
@@ -46,25 +38,29 @@
46
38
  "types": "./spx-app-update/index.d.ts",
47
39
  "default": "./fesm2022/softpak-components-spx-app-update.mjs"
48
40
  },
41
+ "./spx-app-expiry": {
42
+ "types": "./spx-app-expiry/index.d.ts",
43
+ "default": "./fesm2022/softpak-components-spx-app-expiry.mjs"
44
+ },
49
45
  "./spx-capitalize": {
50
46
  "types": "./spx-capitalize/index.d.ts",
51
47
  "default": "./fesm2022/softpak-components-spx-capitalize.mjs"
52
48
  },
53
- "./spx-card": {
54
- "types": "./spx-card/index.d.ts",
55
- "default": "./fesm2022/softpak-components-spx-card.mjs"
56
- },
57
- "./spx-change-details": {
58
- "types": "./spx-change-details/index.d.ts",
59
- "default": "./fesm2022/softpak-components-spx-change-details.mjs"
49
+ "./spx-button": {
50
+ "types": "./spx-button/index.d.ts",
51
+ "default": "./fesm2022/softpak-components-spx-button.mjs"
60
52
  },
61
53
  "./spx-channel-selection": {
62
54
  "types": "./spx-channel-selection/index.d.ts",
63
55
  "default": "./fesm2022/softpak-components-spx-channel-selection.mjs"
64
56
  },
65
- "./spx-check-digit": {
66
- "types": "./spx-check-digit/index.d.ts",
67
- "default": "./fesm2022/softpak-components-spx-check-digit.mjs"
57
+ "./spx-change-details": {
58
+ "types": "./spx-change-details/index.d.ts",
59
+ "default": "./fesm2022/softpak-components-spx-change-details.mjs"
60
+ },
61
+ "./spx-card": {
62
+ "types": "./spx-card/index.d.ts",
63
+ "default": "./fesm2022/softpak-components-spx-card.mjs"
68
64
  },
69
65
  "./spx-form-section": {
70
66
  "types": "./spx-form-section/index.d.ts",
@@ -78,10 +74,18 @@
78
74
  "types": "./spx-helpers/index.d.ts",
79
75
  "default": "./fesm2022/softpak-components-spx-helpers.mjs"
80
76
  },
77
+ "./spx-check-digit": {
78
+ "types": "./spx-check-digit/index.d.ts",
79
+ "default": "./fesm2022/softpak-components-spx-check-digit.mjs"
80
+ },
81
81
  "./spx-navigation": {
82
82
  "types": "./spx-navigation/index.d.ts",
83
83
  "default": "./fesm2022/softpak-components-spx-navigation.mjs"
84
84
  },
85
+ "./spx-number-check": {
86
+ "types": "./spx-number-check/index.d.ts",
87
+ "default": "./fesm2022/softpak-components-spx-number-check.mjs"
88
+ },
85
89
  "./spx-inputs": {
86
90
  "types": "./spx-inputs/index.d.ts",
87
91
  "default": "./fesm2022/softpak-components-spx-inputs.mjs"
@@ -94,42 +98,38 @@
94
98
  "types": "./spx-patch/index.d.ts",
95
99
  "default": "./fesm2022/softpak-components-spx-patch.mjs"
96
100
  },
97
- "./spx-number-check": {
98
- "types": "./spx-number-check/index.d.ts",
99
- "default": "./fesm2022/softpak-components-spx-number-check.mjs"
101
+ "./spx-stock-info": {
102
+ "types": "./spx-stock-info/index.d.ts",
103
+ "default": "./fesm2022/softpak-components-spx-stock-info.mjs"
100
104
  },
101
105
  "./spx-progress-bar": {
102
106
  "types": "./spx-progress-bar/index.d.ts",
103
107
  "default": "./fesm2022/softpak-components-spx-progress-bar.mjs"
104
108
  },
105
- "./spx-stock-info": {
106
- "types": "./spx-stock-info/index.d.ts",
107
- "default": "./fesm2022/softpak-components-spx-stock-info.mjs"
108
- },
109
109
  "./spx-spinner": {
110
110
  "types": "./spx-spinner/index.d.ts",
111
111
  "default": "./fesm2022/softpak-components-spx-spinner.mjs"
112
112
  },
113
- "./spx-storage": {
114
- "types": "./spx-storage/index.d.ts",
115
- "default": "./fesm2022/softpak-components-spx-storage.mjs"
116
- },
117
113
  "./spx-suggestion": {
118
114
  "types": "./spx-suggestion/index.d.ts",
119
115
  "default": "./fesm2022/softpak-components-spx-suggestion.mjs"
120
116
  },
117
+ "./spx-storage": {
118
+ "types": "./spx-storage/index.d.ts",
119
+ "default": "./fesm2022/softpak-components-spx-storage.mjs"
120
+ },
121
121
  "./spx-toaster": {
122
122
  "types": "./spx-toaster/index.d.ts",
123
123
  "default": "./fesm2022/softpak-components-spx-toaster.mjs"
124
124
  },
125
- "./spx-toggle": {
126
- "types": "./spx-toggle/index.d.ts",
127
- "default": "./fesm2022/softpak-components-spx-toggle.mjs"
128
- },
129
125
  "./spx-update": {
130
126
  "types": "./spx-update/index.d.ts",
131
127
  "default": "./fesm2022/softpak-components-spx-update.mjs"
132
128
  },
129
+ "./spx-toggle": {
130
+ "types": "./spx-toggle/index.d.ts",
131
+ "default": "./fesm2022/softpak-components-spx-toggle.mjs"
132
+ },
133
133
  "./spx-validation": {
134
134
  "types": "./spx-validation/index.d.ts",
135
135
  "default": "./fesm2022/softpak-components-spx-validation.mjs"
@@ -6,5 +6,6 @@ export declare enum SpxStorageKeyEnum {
6
6
  token = "token",
7
7
  updateInProgress = "updateInProgress",
8
8
  release = "release",
9
- patch = "patch"
9
+ patch = "patch",
10
+ company = "company"
10
11
  }