react-luminus-components 2.0.1-table-d03d7058b722969c6483c37eaffda481c74264aa → 2.0.3-table-e1072f3ac7ab089b3730d01d4f27df97ece501c0
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/dist/.vite/manifest.json +32 -32
- package/dist/{FormDisabledProvider-BNE4w-91.cjs → FormDisabledProvider-BENIIq5o.cjs} +1 -1
- package/dist/{FormDisabledProvider-Ct-odePz.js → FormDisabledProvider-DN0NV09N.js} +1 -1
- package/dist/{ShortcutLinksContext-B6B_uG2X.js → ShortcutLinksContext-CVP_4yAx.js} +437 -437
- package/dist/{ShortcutLinksContext-d3AdgJhg.cjs → ShortcutLinksContext-D_psima9.cjs} +28 -28
- package/dist/contexts.cjs.js +1 -1
- package/dist/contexts.es.js +5 -5
- package/dist/hooks.cjs.js +1 -1
- package/dist/hooks.es.js +3 -3
- package/dist/layout.cjs.js +1 -1
- package/dist/layout.es.js +2 -2
- package/dist/localStorageUtils-CFey67IX.cjs +1 -0
- package/dist/{localStorageUtils-DBNNyBcc.js → localStorageUtils-NrZA2Syo.js} +5 -5
- package/dist/main.cjs.js +1 -1
- package/dist/main.es.js +5 -5
- package/dist/{useLocalStorageState-DG9g_lFm.js → useLocalStorageState-87deuPpL.js} +1 -1
- package/dist/{useLocalStorageState-CGKmNXMv.cjs → useLocalStorageState-BtFEXGD_.cjs} +1 -1
- package/dist/utils/bnfTable/bnfTableUtils.d.ts +1 -0
- package/dist/utils.cjs.js +1 -1
- package/dist/utils.es.js +91 -70
- package/package.json +2 -2
- package/dist/localStorageUtils-CBQuZzg0.cjs +0 -1
package/dist/utils.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ShortcutLinksContext-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./ShortcutLinksContext-D_psima9.cjs");require("react");require("@azure/msal-browser");require("@azure/msal-react");require("react-router-dom");require("react-dom");require("react-hook-form");require("react-flexmonster");const l=require("./localStorageUtils-CFey67IX.cjs"),f=t=>{var r,i;return e.jsxRuntimeExports.jsx(e.SimpleTooltip,{text:((r=t.getValue())==null?void 0:r.toString())??"",placement:"bottom",children:e.jsxRuntimeExports.jsx("div",{className:"w-100 text-truncate",children:((i=t.getValue())==null?void 0:i.toString())??""})})},S=t=>{var r;return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:(r=t.getValue())==null?void 0:r.toLocaleString("cs-CZ")})},d=t=>{var a;const r=((a=t.getValue())==null?void 0:a.toString())??"",i=e.format(new Date(r),"dd.MM.yyyy");return e.jsxRuntimeExports.jsx(e.jsxRuntimeExports.Fragment,{children:r?i:""})},p=(t,r)=>{let i=!1,a=t;t[0]==="#"&&(a=t.slice(1),i=!0);let s=parseInt(a.substring(0,2),16),o=parseInt(a.substring(2,4),16),n=parseInt(a.substring(4,6),16);s+=r,o+=r,n+=r,s>255?s=255:s<0&&(s=0),o>255?o=255:o<0&&(o=0),n>255?n=255:n<0&&(n=0);const u=s.toString(16).length===1?"0"+s.toString(16):s.toString(16),c=o.toString(16).length===1?"0"+o.toString(16):o.toString(16),g=n.toString(16).length===1?"0"+n.toString(16):n.toString(16);return(i?"#":"")+u+c+g},h=t=>{const r=t.slice(3),i=[];for(let s=0;s<r.length;s+=2)i.push(r.slice(s,s+2));return`#${i.reverse().join("")}`},y=t=>typeof t.directoryName=="string"&&typeof t.directoryPath=="string"&&typeof t.directoryTranslationKey=="string"&&Array.isArray(t.files),b=async t=>{let r={status:"pending"};try{r={status:"success",data:(await t).data}}catch(i){r={status:"error",error:i}}return r},m=t=>{var r,i,a;return{columnOrder:t.columnsOrder??[],columnVisibility:Object.fromEntries((t.hiddenColumns??[]).map(s=>[s,!1])),pageIndex:0,pageSize:t.defaultPageSize??50,columnSorting:t.defaultSort?[t.defaultSort]:[],columnFilters:t.defaultFilters??[],columnPinning:t.fixedColumns?{left:t.fixedColumns.left?[t.fixedColumns.left]:[],right:t.fixedColumns.right?[t.fixedColumns.right]:[]}:{left:[],right:[]},size:t.isDense?"sm":"md",mobileDisplayGroup:((r=t.onMobile)==null?void 0:r.defaultDisplayGroup)??"",mobileFilter:{globalFilter:""},mobileShowColumnNames:((i=t.onMobile)==null?void 0:i.showColumnNames)??!1,columnSizing:Object.fromEntries(((a=t.columnWidths)==null?void 0:a.map(s=>[s.column,s.width]))??[]),grouping:[],expanding:{},isFullScreen:!1}},O=(t,r)=>{const i=new URLSearchParams;return Object.keys(t).forEach(a=>{i.append(`BnfTable-${r||"Universal"}.${a}`,JSON.stringify(t[a]))}),i.toString()},x=(t,r)=>{const i=localStorage.getItem("BnfTable-SettingsMigration");if(i){const a=JSON.parse(i);if(a.done&&a.version>=r)return}console.log("Migrating BnfTable settings to Tanstack Table format..."),t.forEach(a=>{const s=localStorage.getItem(a);if(!s)return;const o=JSON.parse(s);if(!o||Object.keys(o).length<1)return;const n=m(o);Object.keys(n).forEach(u=>{localStorage.setItem(`BnfTable-${a}.${u}`,JSON.stringify(n[u]))})}),localStorage.setItem("BnfTable-SettingsMigration",JSON.stringify({done:!0,version:r}))},F=["edit","delete","info","warning","check","check-simple","add","cancel","cancel-simple","danger","chevron-left","chevron-right","chevron-up","chevron-down","chevron-double-left","chevron-double-right","folder","folder-filled","file-download","file-upload","star-outline","save","link","pending","resizer-horizontal","qr-code","phone","mail","mail-envelope","dashboard","user","role","close","search","plus","minus","menu","arrow-right"];exports.atobUtf8=e.atobUtf8;exports.buildEmployeeNameString=e.buildEmployeeNameString;exports.buildOrgUnitString=e.buildOrgUnitString;exports.buildVehicleNameString=e.buildVehicleNameString;exports.capitalizeFirstLetter=e.capitalizeFirstLetter;exports.compareDate=e.compareDate;exports.compareDateTime=e.compareDateTime;exports.extractErrorsFromResponse=e.extractErrorsFromResponse;exports.extractFilename=e.extractFilename;exports.extractPermissionsFromResponse=e.extractPermissionsFromResponse;exports.fixNameIdNulls=e.fixNameIdNulls;exports.formatDate=e.formatDate;exports.formatDateTime=e.formatDateTime;exports.formatFileSize=e.formatFileSize;exports.getDateString=e.getDateString;exports.getDaysDifference=e.getDaysDifference;exports.getFirstDayOfMonth=e.getFirstDayOfMonth;exports.getFirstDayOfOffsetMonth=e.getFirstDayOfOffsetMonth;exports.getFirstDayOfYear=e.getFirstDayOfYear;exports.getLastDayOfMonth=e.getLastDayOfMonth;exports.getLastDayOfOffsetMonth=e.getLastDayOfOffsetMonth;exports.getLastDayOfYear=e.getLastDayOfYear;exports.hasOnlyNullValues=e.hasOnlyNullValues;exports.hookFormSetServerErrors=e.hookFormSetServerErrors;exports.isExtensionOpenable=e.isExtensionOpenable;exports.isFileOpenable=e.isFileOpenable;exports.isISODate=e.isISODate;exports.isPrimitive=e.isPrimitive;exports.isValidDate=e.isValidDate;exports.joinStrings=e.joinStrings;exports.msToStartOfNextDay=e.msToStartOfNextDay;exports.replaceNullValuesOnlyObjectsWithNulls=e.replaceNullValuesOnlyObjectsWithNulls;exports.saveFile=e.saveFile;exports.saveFileFromResponse=e.saveFileFromResponse;exports.shortenText=e.shortenText;exports.stringContains=e.stringContains;exports.stringSearchWithin=e.stringSearchWithin;exports.stringStartsWith=e.stringStartsWith;exports.trimIsoDate=e.trimIsoDate;exports.truncateText=e.truncateText;exports.urlfyArray=e.urlfyArray;exports.dumpLocalStorage=l.dumpLocalStorage;exports.generateApiPath=l.generateApiPath;exports.hookFormSetNull=l.hookFormSetNull;exports.hookFormSetNulls=l.hookFormSetNulls;exports.limitNumber=l.limitNumber;exports.restoreLocalStorage=l.restoreLocalStorage;exports.CommonLuminusIconsArray=F;exports.adjustBrightness=p;exports.buildTableSearchQuery=O;exports.configToTanstackTableState=m;exports.dateValueFormat=d;exports.isFileStructureDirectory=y;exports.migrateBnfTableSettings=x;exports.numFormat=S;exports.responsePromiseWrapper=b;exports.valueTooltip=f;exports.vclToHex=h;
|
package/dist/utils.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { j as
|
|
2
|
-
import { ce as
|
|
1
|
+
import { j as i, ao as u, U as g } from "./ShortcutLinksContext-CVP_4yAx.js";
|
|
2
|
+
import { ce as E, cc as L, cd as P, cb as k, ca as z, bV as R, bW as J, a_ as U, c1 as W, bS as $, bo as A, b6 as G, c9 as Y, cg as Z, c0 as _, bX as H, aI as q, bZ as K, aJ as Q, bY as X, b_ as ee, b$ as te, c5 as re, bm as se, c3 as ae, c2 as oe, bT as ne, c4 as ie, bU as le, ch as ce, bL as me, c6 as ue, aT as ge, aZ as de, cj as fe, c7 as pe, _ as he, c8 as Se, aH as be, cf as ye, ci as Oe } from "./ShortcutLinksContext-CVP_4yAx.js";
|
|
3
3
|
import "react";
|
|
4
4
|
import "@azure/msal-browser";
|
|
5
5
|
import "@azure/msal-react";
|
|
@@ -7,30 +7,30 @@ import "react-router-dom";
|
|
|
7
7
|
import "react-dom";
|
|
8
8
|
import "react-hook-form";
|
|
9
9
|
import "react-flexmonster";
|
|
10
|
-
import { d as Fe, g as
|
|
10
|
+
import { d as Fe, g as Te, h as De, a as Ne, l as ve, r as Ce } from "./localStorageUtils-NrZA2Syo.js";
|
|
11
11
|
const F = (e) => {
|
|
12
12
|
var t, r;
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
},
|
|
13
|
+
return /* @__PURE__ */ i.jsx(u, { text: ((t = e.getValue()) == null ? void 0 : t.toString()) ?? "", placement: "bottom", children: /* @__PURE__ */ i.jsx("div", { className: "w-100 text-truncate", children: ((r = e.getValue()) == null ? void 0 : r.toString()) ?? "" }) });
|
|
14
|
+
}, T = (e) => {
|
|
15
15
|
var t;
|
|
16
|
-
return /* @__PURE__ */
|
|
17
|
-
},
|
|
16
|
+
return /* @__PURE__ */ i.jsx(i.Fragment, { children: (t = e.getValue()) == null ? void 0 : t.toLocaleString("cs-CZ") });
|
|
17
|
+
}, D = (e) => {
|
|
18
18
|
var a;
|
|
19
|
-
const t = ((a = e.getValue()) == null ? void 0 : a.toString()) ?? "", r =
|
|
20
|
-
return /* @__PURE__ */
|
|
21
|
-
},
|
|
19
|
+
const t = ((a = e.getValue()) == null ? void 0 : a.toString()) ?? "", r = g(new Date(t), "dd.MM.yyyy");
|
|
20
|
+
return /* @__PURE__ */ i.jsx(i.Fragment, { children: t ? r : "" });
|
|
21
|
+
}, N = (e, t) => {
|
|
22
22
|
let r = !1, a = e;
|
|
23
23
|
e[0] === "#" && (a = e.slice(1), r = !0);
|
|
24
|
-
let s = parseInt(a.substring(0, 2), 16), o = parseInt(a.substring(2, 4), 16),
|
|
25
|
-
s += t, o += t,
|
|
26
|
-
const l = s.toString(16).length === 1 ? "0" + s.toString(16) : s.toString(16), c = o.toString(16).length === 1 ? "0" + o.toString(16) : o.toString(16), m =
|
|
24
|
+
let s = parseInt(a.substring(0, 2), 16), o = parseInt(a.substring(2, 4), 16), n = parseInt(a.substring(4, 6), 16);
|
|
25
|
+
s += t, o += t, n += t, s > 255 ? s = 255 : s < 0 && (s = 0), o > 255 ? o = 255 : o < 0 && (o = 0), n > 255 ? n = 255 : n < 0 && (n = 0);
|
|
26
|
+
const l = s.toString(16).length === 1 ? "0" + s.toString(16) : s.toString(16), c = o.toString(16).length === 1 ? "0" + o.toString(16) : o.toString(16), m = n.toString(16).length === 1 ? "0" + n.toString(16) : n.toString(16);
|
|
27
27
|
return (r ? "#" : "") + l + c + m;
|
|
28
|
-
},
|
|
28
|
+
}, v = (e) => {
|
|
29
29
|
const t = e.slice(3), r = [];
|
|
30
30
|
for (let s = 0; s < t.length; s += 2)
|
|
31
31
|
r.push(t.slice(s, s + 2));
|
|
32
32
|
return `#${r.reverse().join("")}`;
|
|
33
|
-
},
|
|
33
|
+
}, C = (e) => typeof e.directoryName == "string" && typeof e.directoryPath == "string" && typeof e.directoryTranslationKey == "string" && Array.isArray(e.files), j = async (e) => {
|
|
34
34
|
let t = { status: "pending" };
|
|
35
35
|
try {
|
|
36
36
|
t = { status: "success", data: (await e).data };
|
|
@@ -38,15 +38,13 @@ const F = (e) => {
|
|
|
38
38
|
t = { status: "error", error: r };
|
|
39
39
|
}
|
|
40
40
|
return t;
|
|
41
|
-
},
|
|
41
|
+
}, d = (e) => {
|
|
42
42
|
var t, r, a;
|
|
43
43
|
return {
|
|
44
44
|
columnOrder: e.columnsOrder ?? [],
|
|
45
45
|
columnVisibility: Object.fromEntries((e.hiddenColumns ?? []).map((s) => [s, !1])),
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
pageSize: e.defaultPageSize ?? 50
|
|
49
|
-
},
|
|
46
|
+
pageIndex: 0,
|
|
47
|
+
pageSize: e.defaultPageSize ?? 50,
|
|
50
48
|
columnSorting: e.defaultSort ? [e.defaultSort] : [],
|
|
51
49
|
columnFilters: e.defaultFilters ?? [],
|
|
52
50
|
columnPinning: e.fixedColumns ? {
|
|
@@ -62,12 +60,34 @@ const F = (e) => {
|
|
|
62
60
|
expanding: {},
|
|
63
61
|
isFullScreen: !1
|
|
64
62
|
};
|
|
65
|
-
},
|
|
63
|
+
}, w = (e, t) => {
|
|
66
64
|
const r = new URLSearchParams();
|
|
67
65
|
return Object.keys(e).forEach((a) => {
|
|
68
66
|
r.append(`BnfTable-${t || "Universal"}.${a}`, JSON.stringify(e[a]));
|
|
69
67
|
}), r.toString();
|
|
70
|
-
},
|
|
68
|
+
}, I = (e, t) => {
|
|
69
|
+
const r = localStorage.getItem("BnfTable-SettingsMigration");
|
|
70
|
+
if (r) {
|
|
71
|
+
const a = JSON.parse(r);
|
|
72
|
+
if (a.done && a.version >= t)
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
console.log("Migrating BnfTable settings to Tanstack Table format..."), e.forEach((a) => {
|
|
76
|
+
const s = localStorage.getItem(a);
|
|
77
|
+
if (!s)
|
|
78
|
+
return;
|
|
79
|
+
const o = JSON.parse(s);
|
|
80
|
+
if (!o || Object.keys(o).length < 1)
|
|
81
|
+
return;
|
|
82
|
+
const n = d(o);
|
|
83
|
+
Object.keys(n).forEach((l) => {
|
|
84
|
+
localStorage.setItem(`BnfTable-${a}.${l}`, JSON.stringify(n[l]));
|
|
85
|
+
});
|
|
86
|
+
}), localStorage.setItem("BnfTable-SettingsMigration", JSON.stringify({
|
|
87
|
+
done: !0,
|
|
88
|
+
version: t
|
|
89
|
+
}));
|
|
90
|
+
}, M = [
|
|
71
91
|
"edit",
|
|
72
92
|
"delete",
|
|
73
93
|
"info",
|
|
@@ -108,61 +128,62 @@ const F = (e) => {
|
|
|
108
128
|
"arrow-right"
|
|
109
129
|
];
|
|
110
130
|
export {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
131
|
+
M as CommonLuminusIconsArray,
|
|
132
|
+
N as adjustBrightness,
|
|
133
|
+
E as atobUtf8,
|
|
134
|
+
L as buildEmployeeNameString,
|
|
135
|
+
P as buildOrgUnitString,
|
|
136
|
+
w as buildTableSearchQuery,
|
|
137
|
+
k as buildVehicleNameString,
|
|
138
|
+
z as capitalizeFirstLetter,
|
|
139
|
+
R as compareDate,
|
|
140
|
+
J as compareDateTime,
|
|
141
|
+
d as configToTanstackTableState,
|
|
142
|
+
D as dateValueFormat,
|
|
123
143
|
Fe as dumpLocalStorage,
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
144
|
+
U as extractErrorsFromResponse,
|
|
145
|
+
W as extractFilename,
|
|
146
|
+
$ as extractPermissionsFromResponse,
|
|
147
|
+
A as fixNameIdNulls,
|
|
148
|
+
G as formatDate,
|
|
129
149
|
Y as formatDateTime,
|
|
130
150
|
Z as formatFileSize,
|
|
131
|
-
|
|
151
|
+
Te as generateApiPath,
|
|
132
152
|
_ as getDateString,
|
|
133
153
|
H as getDaysDifference,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
154
|
+
q as getFirstDayOfMonth,
|
|
155
|
+
K as getFirstDayOfOffsetMonth,
|
|
156
|
+
Q as getFirstDayOfYear,
|
|
157
|
+
X as getLastDayOfMonth,
|
|
158
|
+
ee as getLastDayOfOffsetMonth,
|
|
159
|
+
te as getLastDayOfYear,
|
|
160
|
+
re as hasOnlyNullValues,
|
|
161
|
+
De as hookFormSetNull,
|
|
162
|
+
Ne as hookFormSetNulls,
|
|
163
|
+
se as hookFormSetServerErrors,
|
|
164
|
+
ae as isExtensionOpenable,
|
|
165
|
+
oe as isFileOpenable,
|
|
166
|
+
C as isFileStructureDirectory,
|
|
167
|
+
ne as isISODate,
|
|
148
168
|
ie as isPrimitive,
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
169
|
+
le as isValidDate,
|
|
170
|
+
ce as joinStrings,
|
|
171
|
+
ve as limitNumber,
|
|
172
|
+
I as migrateBnfTableSettings,
|
|
173
|
+
me as msToStartOfNextDay,
|
|
174
|
+
T as numFormat,
|
|
175
|
+
ue as replaceNullValuesOnlyObjectsWithNulls,
|
|
176
|
+
j as responsePromiseWrapper,
|
|
177
|
+
Ce as restoreLocalStorage,
|
|
178
|
+
ge as saveFile,
|
|
158
179
|
de as saveFileFromResponse,
|
|
159
|
-
|
|
180
|
+
fe as shortenText,
|
|
160
181
|
pe as stringContains,
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
182
|
+
he as stringSearchWithin,
|
|
183
|
+
Se as stringStartsWith,
|
|
184
|
+
be as trimIsoDate,
|
|
185
|
+
ye as truncateText,
|
|
186
|
+
Oe as urlfyArray,
|
|
166
187
|
F as valueTooltip,
|
|
167
|
-
|
|
188
|
+
v as vclToHex
|
|
168
189
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-luminus-components",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3-table-e1072f3ac7ab089b3730d01d4f27df97ece501c0",
|
|
4
4
|
"description": "Library of React Components reusable in Luminus projects (Fleetman, CAFM)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"repository": {
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"react-qrcode-logo": "^3.0.0",
|
|
69
69
|
"react-responsive": "^10.0.0",
|
|
70
70
|
"react-router-dom": ">=6",
|
|
71
|
-
"tanstack-bnf-table": ">=0.2.
|
|
71
|
+
"tanstack-bnf-table": ">=0.2.3",
|
|
72
72
|
"zod": ">=3.22.4"
|
|
73
73
|
},
|
|
74
74
|
"dependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const i=require("react-router-dom"),s=(r,t,o)=>{let e=r;return t!==void 0&&(e=Math.max(e,t)),o!==void 0&&(e=Math.min(e,o)),e};function l(r,t){r.setValue(t,null)}function S(r,t){t.forEach(o=>{l(r,o)})}const c=(r,t,o=!0)=>Object.keys(r).reduce((e,n)=>{const u=r[n];return o&&(u==null||u==="")||(e[n]=t(u,n)),e},{}),a=(r,t)=>{const o=t!=null&&t.query?new URLSearchParams(c(t.query,e=>(e==null?void 0:e.toString())??"")):null;return`${i.generatePath(r,t!=null&&t.path?c(t.path,e=>(e==null?void 0:e.toString())??null):void 0)}${o&&o.size>0?`?${o.toString()}`:""}`},g=[{key:"msal",mode:"includes"},{key:"token",mode:"exact"},{key:"user",mode:"exact"},{key:"user-delegation",mode:"exact"}],h=(r=!0)=>{const t={};for(let o=0;o<localStorage.length;o++){const e=localStorage.key(o);if(e&&!(r&&g.some(({key:n,mode:u})=>u==="includes"?e.includes(n):e===n)))try{t[e]=JSON.parse(localStorage.getItem(e))}catch{t[e]=localStorage.getItem(e)}}return t},d=r=>{try{const t=JSON.parse(r);if(typeof t!="object"||t===null)return!1;Object.entries(t).forEach(([o,e])=>{localStorage.setItem(o,JSON.stringify(e))})}catch{return!1}return!0};exports.dumpLocalStorage=h;exports.generateApiPath=a;exports.hookFormSetNull=l;exports.hookFormSetNulls=S;exports.limitNumber=s;exports.restoreLocalStorage=d;
|