@arbocollab/arbo-plugin-item-table 0.1.138 → 0.1.140
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/lib/es/index.es.js +16 -16
- package/lib/umd/index.umd.js +75 -75
- package/package.json +1 -1
package/lib/es/index.es.js
CHANGED
|
@@ -40750,22 +40750,22 @@ const Fy = /* @__PURE__ */ xc("userStore", () => {
|
|
|
40750
40750
|
}), g = Y(() => !!d.value.file), v = () => {
|
|
40751
40751
|
var x;
|
|
40752
40752
|
(x = o.value) == null || x.click();
|
|
40753
|
-
}, C = Y(() => d.value.file ? d.value.file.name : ""), S = (x) => {
|
|
40754
|
-
var
|
|
40755
|
-
const
|
|
40756
|
-
return
|
|
40757
|
-
}, b = (x) => {
|
|
40758
|
-
var
|
|
40759
|
-
const
|
|
40760
|
-
x &&
|
|
40761
|
-
`Invalid file type. Please upload a ${(
|
|
40753
|
+
}, C = Y(() => d.value.file ? d.value.file.name : ""), S = (x, P) => {
|
|
40754
|
+
var I;
|
|
40755
|
+
const E = u.acceptTypes || ["xlsx", "xls", "csv"], k = (I = (P || x.name).split(".").pop()) == null ? void 0 : I.toLowerCase();
|
|
40756
|
+
return k ? E.includes(k) : !1;
|
|
40757
|
+
}, b = (x, P) => {
|
|
40758
|
+
var k, I;
|
|
40759
|
+
const E = S(x, P);
|
|
40760
|
+
x && E ? (d.value.isValid = E, l.value = !1, d.value.file = x, d.value.format = ((k = (P || x.name).split(".").pop()) == null ? void 0 : k.toLowerCase()) || null) : i(
|
|
40761
|
+
`Invalid file type. Please upload a ${(I = u.acceptTypes) == null ? void 0 : I.join(", ")} file.`,
|
|
40762
40762
|
"error"
|
|
40763
40763
|
);
|
|
40764
40764
|
}, w = (x) => {
|
|
40765
40765
|
const P = x.target;
|
|
40766
40766
|
if (P.files && P.files[0]) {
|
|
40767
40767
|
const E = P.files[0];
|
|
40768
|
-
b(E);
|
|
40768
|
+
b(E, E.name);
|
|
40769
40769
|
}
|
|
40770
40770
|
}, D = () => {
|
|
40771
40771
|
c.value = !0;
|
|
@@ -40774,7 +40774,7 @@ const Fy = /* @__PURE__ */ xc("userStore", () => {
|
|
|
40774
40774
|
}, T = (x) => {
|
|
40775
40775
|
if (c.value = !1, x.dataTransfer && x.dataTransfer.files && x.dataTransfer.files[0]) {
|
|
40776
40776
|
const P = x.dataTransfer.files[0];
|
|
40777
|
-
b(P);
|
|
40777
|
+
b(P, P.name);
|
|
40778
40778
|
}
|
|
40779
40779
|
}, F = n;
|
|
40780
40780
|
return et(
|
|
@@ -40788,8 +40788,8 @@ const Fy = /* @__PURE__ */ xc("userStore", () => {
|
|
|
40788
40788
|
clear: () => {
|
|
40789
40789
|
o.value && (o.value.value = ""), d.value = { file: null, format: null }, l.value = !1;
|
|
40790
40790
|
},
|
|
40791
|
-
setFile: (x) => {
|
|
40792
|
-
b(x);
|
|
40791
|
+
setFile: (x, P) => {
|
|
40792
|
+
b(x, P);
|
|
40793
40793
|
}
|
|
40794
40794
|
}), (x, P) => {
|
|
40795
40795
|
const E = $s("tooltip");
|
|
@@ -47051,7 +47051,7 @@ const Cue = { key: 1 }, bue = /* @__PURE__ */ st({
|
|
|
47051
47051
|
if (console.log("PopupCreateScenes: Received message:", M), M.type !== "TOOLBOX_EXPORT_DATA") return;
|
|
47052
47052
|
console.log("Received from:", O.origin), console.log("File name:", M.payload.fileName);
|
|
47053
47053
|
const $ = M.payload.file;
|
|
47054
|
-
(X = c.value) == null || X.setFile(
|
|
47054
|
+
(X = c.value) == null || X.setFile($, M.payload.fileName);
|
|
47055
47055
|
},
|
|
47056
47056
|
onInvalidMessage: (M, O, $) => {
|
|
47057
47057
|
console.warn("Rejected postMessage:", O, $.origin);
|
|
@@ -87361,7 +87361,7 @@ const aTe = {
|
|
|
87361
87361
|
if (console.log("PopupCreateScenes: Received message:", E), E.type !== "TOOLBOX_EXPORT_DATA") return;
|
|
87362
87362
|
console.log("Received from:", k.origin), console.log("File name:", E.payload.fileName);
|
|
87363
87363
|
const I = E.payload.file;
|
|
87364
|
-
(M = D.value) == null || M.setFile(I);
|
|
87364
|
+
(M = D.value) == null || M.setFile(I, E.payload.fileName);
|
|
87365
87365
|
},
|
|
87366
87366
|
onInvalidMessage: (E, k, I) => {
|
|
87367
87367
|
console.warn("Rejected postMessage:", k, I.origin);
|
|
@@ -88134,7 +88134,7 @@ const aTe = {
|
|
|
88134
88134
|
"beta-tag": "_beta-tag_1sow5_56"
|
|
88135
88135
|
}, ETe = {
|
|
88136
88136
|
$style: STe
|
|
88137
|
-
}, _Te = /* @__PURE__ */ _t(mTe, [["__cssModules", ETe]]), y$ = "0.1.
|
|
88137
|
+
}, _Te = /* @__PURE__ */ _t(mTe, [["__cssModules", ETe]]), y$ = "0.1.140", RTe = { key: 0 }, DTe = /* @__PURE__ */ st({
|
|
88138
88138
|
__name: "app",
|
|
88139
88139
|
setup(e) {
|
|
88140
88140
|
const t = Y(() => n.id.length === 0 || n.workspaceId.length === 0), n = ys({
|