@arbocollab/arbo-plugin-item-table 0.1.83 → 0.1.84
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 +40 -38
- package/lib/umd/index.umd.js +2 -2
- package/package.json +1 -1
package/lib/es/index.es.js
CHANGED
|
@@ -40338,43 +40338,45 @@ const Ey = /* @__PURE__ */ _c("userStore", () => {
|
|
|
40338
40338
|
var B;
|
|
40339
40339
|
return (B = A.value) == null ? void 0 : B.focus();
|
|
40340
40340
|
}, ve = async (B = "clear") => {
|
|
40341
|
-
|
|
40342
|
-
|
|
40343
|
-
|
|
40344
|
-
|
|
40345
|
-
|
|
40346
|
-
|
|
40347
|
-
|
|
40348
|
-
|
|
40349
|
-
|
|
40350
|
-
|
|
40351
|
-
|
|
40352
|
-
|
|
40353
|
-
|
|
40354
|
-
|
|
40355
|
-
try {
|
|
40356
|
-
const Gt = await p.value.addNewItem(r, a, J), sn = u.name;
|
|
40357
|
-
if (K(Gt.id, Gt.name, Gt.code), !Gt.id)
|
|
40358
|
-
throw new Error("Invalid response from server: missing scene ID");
|
|
40359
|
-
switch (w.value = !1, v.value = !1, B) {
|
|
40360
|
-
case "close":
|
|
40361
|
-
h(), (Ye = R.value) == null || Ye.setData([]), (me = T.value) == null || me.setData(null), (de = A.value) == null || de.setData([null, null]), f(), te();
|
|
40362
|
-
break;
|
|
40363
|
-
case "close-open":
|
|
40364
|
-
h(), (Ee = R.value) == null || Ee.setData([]), (Qe = T.value) == null || Qe.setData(null), (ht = A.value) == null || ht.setData([null, null]), f(), te(), g(Gt.id);
|
|
40365
|
-
break;
|
|
40366
|
-
case "clear":
|
|
40367
|
-
l("create-new-item", sn), h(), (Ft = R.value) == null || Ft.setData([]), (on = T.value) == null || on.setData(null), (zt = A.value) == null || zt.setData([null, null]), P("name");
|
|
40368
|
-
break;
|
|
40369
|
-
case "keep":
|
|
40370
|
-
l("create-new-item", sn), u.name = "", u.error = "", P("name");
|
|
40371
|
-
break;
|
|
40341
|
+
Et(async () => {
|
|
40342
|
+
var ie, ke, Ye, me, de, Ee, Qe, ht, Ft, on, zt;
|
|
40343
|
+
if (O.value || v.value || w.value) return;
|
|
40344
|
+
w.value = !0, v.value = !0;
|
|
40345
|
+
const J = {
|
|
40346
|
+
name: u.name,
|
|
40347
|
+
template_flow_status_id: u.status ?? void 0,
|
|
40348
|
+
ws_user_role_ids: (ie = u.assignees) == null ? void 0 : ie.map((Gt) => Gt.id),
|
|
40349
|
+
start_date: u.start_date ? Qm(u.start_date) : void 0,
|
|
40350
|
+
due_date: u.due_date ? Qm(u.due_date) : void 0
|
|
40351
|
+
};
|
|
40352
|
+
if (!((ke = p.value) != null && ke.addNewItem)) {
|
|
40353
|
+
console.warn("API service unavailable"), v.value = !1;
|
|
40354
|
+
return;
|
|
40372
40355
|
}
|
|
40373
|
-
|
|
40374
|
-
|
|
40375
|
-
|
|
40376
|
-
|
|
40377
|
-
|
|
40356
|
+
try {
|
|
40357
|
+
const Gt = await p.value.addNewItem(r, a, J), sn = u.name;
|
|
40358
|
+
if (K(Gt.id, Gt.name, Gt.code), !Gt.id)
|
|
40359
|
+
throw new Error("Invalid response from server: missing scene ID");
|
|
40360
|
+
switch (w.value = !1, v.value = !1, B) {
|
|
40361
|
+
case "close":
|
|
40362
|
+
h(), (Ye = R.value) == null || Ye.setData([]), (me = T.value) == null || me.setData(null), (de = A.value) == null || de.setData([null, null]), f(), te();
|
|
40363
|
+
break;
|
|
40364
|
+
case "close-open":
|
|
40365
|
+
h(), (Ee = R.value) == null || Ee.setData([]), (Qe = T.value) == null || Qe.setData(null), (ht = A.value) == null || ht.setData([null, null]), f(), te(), g(Gt.id);
|
|
40366
|
+
break;
|
|
40367
|
+
case "clear":
|
|
40368
|
+
l("create-new-item", sn), h(), (Ft = R.value) == null || Ft.setData([]), (on = T.value) == null || on.setData(null), (zt = A.value) == null || zt.setData([null, null]), P("name");
|
|
40369
|
+
break;
|
|
40370
|
+
case "keep":
|
|
40371
|
+
l("create-new-item", sn), u.name = "", u.error = "", P("name");
|
|
40372
|
+
break;
|
|
40373
|
+
}
|
|
40374
|
+
} catch (Gt) {
|
|
40375
|
+
console.error("Error creating scene:", Gt), B == "close" && (f(), te());
|
|
40376
|
+
} finally {
|
|
40377
|
+
v.value = !1, w.value = !1;
|
|
40378
|
+
}
|
|
40379
|
+
});
|
|
40378
40380
|
}, Ne = (B, J) => {
|
|
40379
40381
|
O.value || (J.metaKey || J.ctrlKey ? ve("close-open") : J.shiftKey ? ve("keep") : ve("clear"));
|
|
40380
40382
|
}, Pe = (B = !1) => {
|
|
@@ -40420,7 +40422,7 @@ const Ey = /* @__PURE__ */ _c("userStore", () => {
|
|
|
40420
40422
|
onFocus: J[2] || (J[2] = (ie) => b.value = "name"),
|
|
40421
40423
|
placeholder: "Enter name",
|
|
40422
40424
|
focused: !0,
|
|
40423
|
-
"max-length":
|
|
40425
|
+
"max-length": 255,
|
|
40424
40426
|
type: "text",
|
|
40425
40427
|
"auto-emit": !0,
|
|
40426
40428
|
style: { "--bg-input": "transparent", "--border-color": "#f3f5f7" },
|
|
@@ -87093,7 +87095,7 @@ const _De = {
|
|
|
87093
87095
|
"beta-tag": "_beta-tag_1sow5_56"
|
|
87094
87096
|
}, HDe = {
|
|
87095
87097
|
$style: $De
|
|
87096
|
-
}, GDe = /* @__PURE__ */ St(ODe, [["__cssModules", HDe]]), zB = "0.1.
|
|
87098
|
+
}, GDe = /* @__PURE__ */ St(ODe, [["__cssModules", HDe]]), zB = "0.1.84", UDe = { key: 0 }, WDe = /* @__PURE__ */ it({
|
|
87097
87099
|
__name: "app",
|
|
87098
87100
|
setup(e) {
|
|
87099
87101
|
const t = Z(() => n.id.length === 0 || n.workspaceId.length === 0), n = Ns({
|