sf-i-events 1.0.867 → 1.0.869
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/dev/index.html +4 -4
- package/package.json +3 -3
- package/sf-i-events.d.ts +1 -1
- package/sf-i-events.js +194 -62
- package/src/sf-i-events.ts +179 -52
- package/src/util.ts +9 -1
- package/util.d.ts +4 -0
- package/util.js +9 -1
package/src/util.ts
CHANGED
|
@@ -505,8 +505,16 @@ function getUsermap() {
|
|
|
505
505
|
return userMapHome;
|
|
506
506
|
}
|
|
507
507
|
|
|
508
|
+
function setFeatures(features:any){
|
|
509
|
+
localStorage.setItem('features', JSON.stringify(features))
|
|
510
|
+
}
|
|
511
|
+
function getFeatures(){
|
|
512
|
+
let features = JSON.parse(localStorage.getItem('features') ?? '["compliances"]')
|
|
513
|
+
return features
|
|
514
|
+
}
|
|
515
|
+
|
|
508
516
|
const exportFunctions = {
|
|
509
|
-
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings, getUsermap
|
|
517
|
+
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings, getUsermap, setFeatures, getFeatures
|
|
510
518
|
};
|
|
511
519
|
|
|
512
520
|
export default exportFunctions;
|
package/util.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ declare function percentageString(val: number, valTotal: number): string;
|
|
|
18
18
|
declare function getCurrentFiscal(): number;
|
|
19
19
|
declare function getDateTimeStrings(unixTimestamp: number): string;
|
|
20
20
|
declare function getUsermap(): any;
|
|
21
|
+
declare function setFeatures(features: any): void;
|
|
22
|
+
declare function getFeatures(): any;
|
|
21
23
|
declare const exportFunctions: {
|
|
22
24
|
callApiPresignedDelete: typeof callApiPresignedDelete;
|
|
23
25
|
callApiPresignedGet: typeof callApiPresignedGet;
|
|
@@ -41,6 +43,8 @@ declare const exportFunctions: {
|
|
|
41
43
|
getCurrentFiscal: typeof getCurrentFiscal;
|
|
42
44
|
getDateTimeStrings: typeof getDateTimeStrings;
|
|
43
45
|
getUsermap: typeof getUsermap;
|
|
46
|
+
setFeatures: typeof setFeatures;
|
|
47
|
+
getFeatures: typeof getFeatures;
|
|
44
48
|
};
|
|
45
49
|
export default exportFunctions;
|
|
46
50
|
//# sourceMappingURL=util.d.ts.map
|
package/util.js
CHANGED
|
@@ -424,8 +424,16 @@ function getUsermap() {
|
|
|
424
424
|
let userMapHome = JSON.parse(JSON.parse((userinfo.user.usermap.S).replace(/_QUOTES_/g, "\\\"")));
|
|
425
425
|
return userMapHome;
|
|
426
426
|
}
|
|
427
|
+
function setFeatures(features) {
|
|
428
|
+
localStorage.setItem('features', JSON.stringify(features));
|
|
429
|
+
}
|
|
430
|
+
function getFeatures() {
|
|
431
|
+
var _a;
|
|
432
|
+
let features = JSON.parse((_a = localStorage.getItem('features')) !== null && _a !== void 0 ? _a : '["compliances"]');
|
|
433
|
+
return features;
|
|
434
|
+
}
|
|
427
435
|
const exportFunctions = {
|
|
428
|
-
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings, getUsermap
|
|
436
|
+
callApiPresignedDelete, callApiPresignedGet, callApiPresigned, jsonObjectToHtml, clearListeners, isInteger, callApi, validateName, readCookie, timeSince, createDiagonalPattern1, createDiagonalPattern2, createDiagonalPattern3, getRandomColor, convertToCSV, parseCsv, titleCase, alphabeticalSort, percentageString, getCurrentFiscal, getDateTimeStrings, getUsermap, setFeatures, getFeatures
|
|
429
437
|
};
|
|
430
438
|
export default exportFunctions;
|
|
431
439
|
//# sourceMappingURL=util.js.map
|