cecomponent 1.0.46 → 1.0.47
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/ce-component-lib.js +6 -6
- package/dist/ce-component-lib.mjs +30 -33
- package/package.json +1 -1
|
@@ -13864,7 +13864,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
13864
13864
|
}
|
|
13865
13865
|
function c(F, V) {
|
|
13866
13866
|
if (F[0] == 80 && F[1] == 75) return st(F, V);
|
|
13867
|
-
if ((F[0] | 32) == 109 && (F[1] | 32) == 105) return
|
|
13867
|
+
if ((F[0] | 32) == 109 && (F[1] | 32) == 105) return ht(F, V);
|
|
13868
13868
|
if (F.length < 512) throw new Error("CFB file size " + F.length + " < 512");
|
|
13869
13869
|
var N = 3, B = 512, U = 0, G = 0, ee = 0, se = 0, Q = 0, te = [], re = (
|
|
13870
13870
|
/*::(*/
|
|
@@ -14109,7 +14109,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14109
14109
|
if (N.fileType == "mad") return We(F, N);
|
|
14110
14110
|
switch (L(F), N.fileType) {
|
|
14111
14111
|
case "zip":
|
|
14112
|
-
return
|
|
14112
|
+
return ot(F, N);
|
|
14113
14113
|
}
|
|
14114
14114
|
var B = function(ve) {
|
|
14115
14115
|
for (var pe = 0, ye = 0, Ce = 0; Ce < ve.FileIndex.length; ++Ce) {
|
|
@@ -14526,11 +14526,11 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14526
14526
|
);
|
|
14527
14527
|
N.l += ce + de + ve;
|
|
14528
14528
|
var Ce = N.l;
|
|
14529
|
-
N.l = pe + 4,
|
|
14529
|
+
N.l = pe + 4, at(N, te, re, G, ye), N.l = Ce;
|
|
14530
14530
|
}
|
|
14531
14531
|
return G;
|
|
14532
14532
|
}
|
|
14533
|
-
function
|
|
14533
|
+
function at(F, V, N, B, U) {
|
|
14534
14534
|
F.l += 2;
|
|
14535
14535
|
var G = F.read_shift(2), ee = F.read_shift(2), se = a(F);
|
|
14536
14536
|
if (G & 8257) throw new Error("Unsupported ZIP encryption");
|
|
@@ -14558,7 +14558,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14558
14558
|
var K = !1;
|
|
14559
14559
|
G & 8 && (Q = F.read_shift(4), Q == 134695760 && (Q = F.read_shift(4), K = !0), te = F.read_shift(4), re = F.read_shift(4)), te != V && Ue(K, "Bad compressed size: " + V + " != " + te), re != N && Ue(K, "Bad uncompressed size: " + N + " != " + re), Ze(B, ve, Ce, { unsafe: !0, mt: se });
|
|
14560
14560
|
}
|
|
14561
|
-
function
|
|
14561
|
+
function ot(F, V) {
|
|
14562
14562
|
var N = V || {}, B = [], U = [], G = new_buf(1), ee = N.compression ? 8 : 0, se = 0, Q = 0, te = 0, re = 0, ce = 0, de = F.FullPaths[0], ve = de, pe = F.FileIndex[0], ye = [], Ce = 0;
|
|
14563
14563
|
for (Q = 1; Q < F.FullPaths.length; ++Q)
|
|
14564
14564
|
if (ve = F.FullPaths[Q].slice(de.length), pe = F.FileIndex[Q], !(!pe.size || !pe.content || ve == "Sh33tJ5")) {
|
|
@@ -14626,7 +14626,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14626
14626
|
return N.join(`\r
|
|
14627
14627
|
`);
|
|
14628
14628
|
}
|
|
14629
|
-
function
|
|
14629
|
+
function lt(F) {
|
|
14630
14630
|
for (var V = [], N = 0; N < F.length; ++N) {
|
|
14631
14631
|
for (var B = F[N]; N <= F.length && B.charAt(B.length - 1) == "="; ) B = B.slice(0, B.length - 1) + F[++N];
|
|
14632
14632
|
V.push(B);
|
|
@@ -14637,7 +14637,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14637
14637
|
return s2a(V.join(`\r
|
|
14638
14638
|
`));
|
|
14639
14639
|
}
|
|
14640
|
-
function
|
|
14640
|
+
function ft(F, V, N) {
|
|
14641
14641
|
for (var B = "", U = "", G = "", ee, se = 0; se < 10; ++se) {
|
|
14642
14642
|
var Q = V[se];
|
|
14643
14643
|
if (!Q || Q.match(/^\s*$/)) break;
|
|
@@ -14659,7 +14659,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14659
14659
|
ee = s2a(Base64_decode(V.slice(se).join("")));
|
|
14660
14660
|
break;
|
|
14661
14661
|
case "quoted-printable":
|
|
14662
|
-
ee =
|
|
14662
|
+
ee = lt(V.slice(se));
|
|
14663
14663
|
break;
|
|
14664
14664
|
default:
|
|
14665
14665
|
throw new Error("Unsupported Content-Transfer-Encoding " + U);
|
|
@@ -14667,7 +14667,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14667
14667
|
var re = Ze(F, B.slice(N.length), ee, { unsafe: !0 });
|
|
14668
14668
|
G && (re.ctype = G);
|
|
14669
14669
|
}
|
|
14670
|
-
function
|
|
14670
|
+
function ht(F, V) {
|
|
14671
14671
|
if (k(F.slice(0, 13)).toLowerCase() != "mime-version:") throw new Error("Unsupported MAD header");
|
|
14672
14672
|
var N = V && V.root || "", B = (has_buf && Buffer.isBuffer(F) ? F.toString("binary") : k(F)).split(`\r
|
|
14673
14673
|
`), U = 0, G = "";
|
|
@@ -14685,7 +14685,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14685
14685
|
var ce, de = 0;
|
|
14686
14686
|
for (U = 0; U < B.length; ++U) {
|
|
14687
14687
|
var ve = B[U];
|
|
14688
|
-
ve !== se && ve !== se + "--" || (de++ &&
|
|
14688
|
+
ve !== se && ve !== se + "--" || (de++ && ft(re, B.slice(ce, U), N), ce = U);
|
|
14689
14689
|
}
|
|
14690
14690
|
return re;
|
|
14691
14691
|
}
|
|
@@ -14713,7 +14713,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14713
14713
|
`), U.join(`\r
|
|
14714
14714
|
`);
|
|
14715
14715
|
}
|
|
14716
|
-
function
|
|
14716
|
+
function ct(F) {
|
|
14717
14717
|
var V = {};
|
|
14718
14718
|
return b(V, F), V;
|
|
14719
14719
|
}
|
|
@@ -14727,7 +14727,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14727
14727
|
}
|
|
14728
14728
|
return G.content = N, G.size = N ? N.length : 0, B && (B.CLSID && (G.clsid = B.CLSID), B.mt && (G.mt = B.mt), B.ct && (G.ct = B.ct)), G;
|
|
14729
14729
|
}
|
|
14730
|
-
function
|
|
14730
|
+
function ut(F, V) {
|
|
14731
14731
|
b(F);
|
|
14732
14732
|
var N = CFB.find(F, V);
|
|
14733
14733
|
if (N) {
|
|
@@ -14736,7 +14736,7 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14736
14736
|
}
|
|
14737
14737
|
return !1;
|
|
14738
14738
|
}
|
|
14739
|
-
function
|
|
14739
|
+
function pt(F, V, N) {
|
|
14740
14740
|
b(F);
|
|
14741
14741
|
var B = CFB.find(F, V);
|
|
14742
14742
|
if (B) {
|
|
@@ -14749,10 +14749,10 @@ var CRC32 = /* @__PURE__ */ function() {
|
|
|
14749
14749
|
L(F, !0);
|
|
14750
14750
|
}
|
|
14751
14751
|
return t.find = q, t.read = T, t.parse = c, t.write = M, t.writeFile = A, t.utils = {
|
|
14752
|
-
cfb_new:
|
|
14752
|
+
cfb_new: ct,
|
|
14753
14753
|
cfb_add: Ze,
|
|
14754
|
-
cfb_del:
|
|
14755
|
-
cfb_mov:
|
|
14754
|
+
cfb_del: ut,
|
|
14755
|
+
cfb_mov: pt,
|
|
14756
14756
|
cfb_gc: tt,
|
|
14757
14757
|
ReadShift,
|
|
14758
14758
|
CheckField,
|
|
@@ -28288,7 +28288,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28288
28288
|
{}
|
|
28289
28289
|
), [P, H] = useState(!1), [O, z] = useState([]), [Z, ae] = useState([]), [ue, xe] = useState(!1), [fe, _e] = useState(/* @__PURE__ */ new Set()), [Ee, we] = useState(null), [he, Fe] = useState(!1), [Ae, me] = useState(""), [be, Le] = useState("contains"), [Re, Pe] = useState(""), [Be, Ne] = useState(0), [ke, Oe] = useState(
|
|
28290
28290
|
T ?? 10
|
|
28291
|
-
), [Me, He] = useState(/* @__PURE__ */ new Set()), [Ve, ze] = useState(""), [Ge, Ye] = useState(!1), [$e, Xe] = useState(/* @__PURE__ */ new Set()), Ke = useRef(null), rt = useRef(null), Qe = useRef(null), [qe, it] = useState(/* @__PURE__ */ new Set()), [Ue, st] = useState([]), [
|
|
28291
|
+
), [Me, He] = useState(/* @__PURE__ */ new Set()), [Ve, ze] = useState(""), [Ge, Ye] = useState(!1), [$e, Xe] = useState(/* @__PURE__ */ new Set()), Ke = useRef(null), rt = useRef(null), Qe = useRef(null), [qe, it] = useState(/* @__PURE__ */ new Set()), [Ue, st] = useState([]), [at, ot] = useState(!1), [je, et] = useState(null), [Je, nt] = useState(!1), lt = () => nt(!0), ft = () => nt(!1), [ht, We] = useState(!0);
|
|
28292
28292
|
useEffect(() => {
|
|
28293
28293
|
if (t && Array.isArray(t)) {
|
|
28294
28294
|
let K = [...t];
|
|
@@ -28299,8 +28299,8 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28299
28299
|
if (ge[ne] == null) return -1;
|
|
28300
28300
|
if (le[ne] === ge[ne]) return 0;
|
|
28301
28301
|
const Se = (De) => {
|
|
28302
|
-
const
|
|
28303
|
-
return
|
|
28302
|
+
const dt = String(De).match(/\d+/);
|
|
28303
|
+
return dt ? parseInt(dt[0], 10) : 0;
|
|
28304
28304
|
}, Te = Se(le[ne]), Ie = Se(ge[ne]);
|
|
28305
28305
|
return oe === "asc" ? Te - Ie : Ie - Te;
|
|
28306
28306
|
}), et(A);
|
|
@@ -28330,13 +28330,13 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28330
28330
|
shouldVisible: (le == null ? void 0 : le.shouldVisible) ?? !0
|
|
28331
28331
|
};
|
|
28332
28332
|
});
|
|
28333
|
-
if (st(ne), !
|
|
28333
|
+
if (st(ne), !at) {
|
|
28334
28334
|
const oe = (r == null ? void 0 : r.map((le) => le.id)) || K;
|
|
28335
|
-
Xe(new Set(oe)),
|
|
28335
|
+
Xe(new Set(oe)), ot(!0);
|
|
28336
28336
|
}
|
|
28337
28337
|
}
|
|
28338
28338
|
}, [O, r]);
|
|
28339
|
-
const [
|
|
28339
|
+
const [ct, Ze] = useState({}), ut = ({
|
|
28340
28340
|
rowIndex: K,
|
|
28341
28341
|
columnId: ne,
|
|
28342
28342
|
rowData: oe
|
|
@@ -28354,17 +28354,14 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28354
28354
|
const Te = O.map((Ie, De) => (Ie.id ?? `__row_${De}`) === Se ? {
|
|
28355
28355
|
...Ie,
|
|
28356
28356
|
...Object.fromEntries(
|
|
28357
|
-
le.map((
|
|
28357
|
+
le.map((xt) => [xt, xt === ne])
|
|
28358
28358
|
)
|
|
28359
|
-
} :
|
|
28360
|
-
...Ie,
|
|
28361
|
-
...Object.fromEntries(le.map((at) => [at, !1]))
|
|
28362
|
-
});
|
|
28359
|
+
} : Ie);
|
|
28363
28360
|
z(Te), ae(Te), k && k({ fullData: Te, updatedRow: ge });
|
|
28364
|
-
},
|
|
28361
|
+
}, pt = (K) => {
|
|
28365
28362
|
var le;
|
|
28366
28363
|
const ne = O.findIndex((ge) => ge === K), oe = K.id ?? `__row_${ne}`;
|
|
28367
|
-
return ((le =
|
|
28364
|
+
return ((le = ct[oe]) == null ? void 0 : le.columnId) || "";
|
|
28368
28365
|
}, tt = useMemo(() => {
|
|
28369
28366
|
const K = Be * ke, ne = K + ke;
|
|
28370
28367
|
return O.slice(K, ne);
|
|
@@ -28743,8 +28740,8 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
28743
28740
|
{
|
|
28744
28741
|
label: "",
|
|
28745
28742
|
value: oe.id,
|
|
28746
|
-
checked:
|
|
28747
|
-
onChange: () =>
|
|
28743
|
+
checked: pt(K) === oe.id,
|
|
28744
|
+
onChange: () => ut({
|
|
28748
28745
|
rowIndex: ne,
|
|
28749
28746
|
// keep if needed elsewhere, but not used in radio map
|
|
28750
28747
|
columnId: oe.id,
|
|
@@ -29077,7 +29074,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29077
29074
|
"button",
|
|
29078
29075
|
{
|
|
29079
29076
|
className: "fullscreen-button",
|
|
29080
|
-
onClick: Je ?
|
|
29077
|
+
onClick: Je ? ft : lt,
|
|
29081
29078
|
title: Je ? "Exit Full Screen" : "Full Screen",
|
|
29082
29079
|
children: Je ? "⤫" : "⤢"
|
|
29083
29080
|
}
|
|
@@ -29123,7 +29120,7 @@ const ExportIcon = "data:image/svg+xml,%3csvg%20width='24'%20height='25'%20viewB
|
|
|
29123
29120
|
}
|
|
29124
29121
|
) }, K.id))
|
|
29125
29122
|
] }) }),
|
|
29126
|
-
|
|
29123
|
+
ht ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
29127
29124
|
CESkeletonTable,
|
|
29128
29125
|
{
|
|
29129
29126
|
columns: Ue.length || 5,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cecomponent",
|
|
3
3
|
"description": "A React component library for building modern UIs for Cleanearth",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.47",
|
|
5
5
|
"main": "dist/ce-component-lib.js",
|
|
6
6
|
"module": "dist/ce-component-lib.mjs",
|
|
7
7
|
"types": "dist/index.d.ts",
|