@arbocollab/arbo-plugin-item-table 0.1.124 → 0.1.126
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 +77 -92
- package/lib/style.css +1 -1
- package/lib/umd/index.umd.js +6 -6
- package/package.json +1 -1
package/lib/es/index.es.js
CHANGED
|
@@ -11671,17 +11671,17 @@ const $b = /* @__PURE__ */ w3(C3), ZD = Symbol.for("Dexie"), pf = globalThis[ZD]
|
|
|
11671
11671
|
if ($b.semVer !== pf.semVer)
|
|
11672
11672
|
throw new Error(`Two different versions of Dexie loaded in the same app: ${$b.semVer} and ${pf.semVer}`);
|
|
11673
11673
|
const {
|
|
11674
|
-
liveQuery:
|
|
11675
|
-
mergeRanges:
|
|
11676
|
-
rangesOverlap:
|
|
11677
|
-
RangeSet:
|
|
11678
|
-
cmp:
|
|
11679
|
-
Entity:
|
|
11680
|
-
PropModSymbol:
|
|
11681
|
-
PropModification:
|
|
11682
|
-
replacePrefix:
|
|
11683
|
-
add:
|
|
11684
|
-
remove:
|
|
11674
|
+
liveQuery: yTe,
|
|
11675
|
+
mergeRanges: wTe,
|
|
11676
|
+
rangesOverlap: CTe,
|
|
11677
|
+
RangeSet: bTe,
|
|
11678
|
+
cmp: STe,
|
|
11679
|
+
Entity: ETe,
|
|
11680
|
+
PropModSymbol: _Te,
|
|
11681
|
+
PropModification: RTe,
|
|
11682
|
+
replacePrefix: DTe,
|
|
11683
|
+
add: TTe,
|
|
11684
|
+
remove: ITe
|
|
11685
11685
|
} = pf;
|
|
11686
11686
|
class XD extends pf {
|
|
11687
11687
|
constructor(n) {
|
|
@@ -31284,22 +31284,22 @@ ro.getAdapter = xN.getAdapter;
|
|
|
31284
31284
|
ro.HttpStatusCode = bS;
|
|
31285
31285
|
ro.default = ro;
|
|
31286
31286
|
const {
|
|
31287
|
-
Axios:
|
|
31288
|
-
AxiosError:
|
|
31289
|
-
CanceledError:
|
|
31290
|
-
isCancel:
|
|
31291
|
-
CancelToken:
|
|
31292
|
-
VERSION:
|
|
31293
|
-
all:
|
|
31294
|
-
Cancel:
|
|
31287
|
+
Axios: MTe,
|
|
31288
|
+
AxiosError: NTe,
|
|
31289
|
+
CanceledError: LTe,
|
|
31290
|
+
isCancel: VTe,
|
|
31291
|
+
CancelToken: BTe,
|
|
31292
|
+
VERSION: $Te,
|
|
31293
|
+
all: HTe,
|
|
31294
|
+
Cancel: GTe,
|
|
31295
31295
|
isAxiosError: fee,
|
|
31296
|
-
spread:
|
|
31297
|
-
toFormData:
|
|
31298
|
-
AxiosHeaders:
|
|
31299
|
-
HttpStatusCode:
|
|
31300
|
-
formToJSON:
|
|
31301
|
-
getAdapter:
|
|
31302
|
-
mergeConfig:
|
|
31296
|
+
spread: UTe,
|
|
31297
|
+
toFormData: WTe,
|
|
31298
|
+
AxiosHeaders: zTe,
|
|
31299
|
+
HttpStatusCode: jTe,
|
|
31300
|
+
formToJSON: KTe,
|
|
31301
|
+
getAdapter: qTe,
|
|
31302
|
+
mergeConfig: YTe
|
|
31303
31303
|
} = ro, pee = (e) => {
|
|
31304
31304
|
const n = `; ${document.cookie}`.split(`; ${e}=`);
|
|
31305
31305
|
if (n.length === 2) {
|
|
@@ -42668,7 +42668,7 @@ const cae = /* @__PURE__ */ st({
|
|
|
42668
42668
|
], 544)) : Xe("", !0)
|
|
42669
42669
|
], 512));
|
|
42670
42670
|
}
|
|
42671
|
-
}), dae = /* @__PURE__ */ _t(cae, [["__scopeId", "data-v-
|
|
42671
|
+
}), dae = /* @__PURE__ */ _t(cae, [["__scopeId", "data-v-99d4dc65"]]);
|
|
42672
42672
|
/*!
|
|
42673
42673
|
* shared v9.14.5
|
|
42674
42674
|
* (c) 2025 kazuya kawaguchi
|
|
@@ -86519,22 +86519,7 @@ const LDe = () => [...[
|
|
|
86519
86519
|
)], Og = {
|
|
86520
86520
|
WIDTH: 60,
|
|
86521
86521
|
HEADER_CLASS: "ag-checkbox-header"
|
|
86522
|
-
}, VDe = {
|
|
86523
|
-
field: "blank",
|
|
86524
|
-
headerName: "",
|
|
86525
|
-
flex: 1,
|
|
86526
|
-
editable: !1,
|
|
86527
|
-
sortable: !1,
|
|
86528
|
-
filter: !1,
|
|
86529
|
-
cellClass: "ag-cell-optimized",
|
|
86530
|
-
suppressMovable: !0,
|
|
86531
|
-
// Disable column reordering
|
|
86532
|
-
suppressNavigable: !0,
|
|
86533
|
-
suppressAutoSize: !1,
|
|
86534
|
-
suppressSizeToFit: !1
|
|
86535
|
-
// lockPosition: true, //
|
|
86536
|
-
// pinned: 'right',
|
|
86537
|
-
}, BDe = () => ({
|
|
86522
|
+
}, VDe = () => ({
|
|
86538
86523
|
field: "__checkboxSelection",
|
|
86539
86524
|
// v32 Warning: This property is deprecated but still works for custom columns
|
|
86540
86525
|
checkboxSelection: !0,
|
|
@@ -86547,7 +86532,7 @@ const LDe = () => [...[
|
|
|
86547
86532
|
headerClass: Og.HEADER_CLASS,
|
|
86548
86533
|
headerComponent: yv(fne),
|
|
86549
86534
|
suppressMovable: !0
|
|
86550
|
-
}),
|
|
86535
|
+
}), BDe = {
|
|
86551
86536
|
headerName: "",
|
|
86552
86537
|
field: "options",
|
|
86553
86538
|
sortable: !1,
|
|
@@ -86557,7 +86542,7 @@ const LDe = () => [...[
|
|
|
86557
86542
|
lockPosition: !0,
|
|
86558
86543
|
suppressMovable: !0,
|
|
86559
86544
|
resizable: !1
|
|
86560
|
-
},
|
|
86545
|
+
}, $De = (e, t, n) => {
|
|
86561
86546
|
const { getCachedValue: o, setCachedValue: s } = sp({
|
|
86562
86547
|
dbName: "item_table_column_configs",
|
|
86563
86548
|
storeName: "column_configs"
|
|
@@ -86570,12 +86555,12 @@ const LDe = () => [...[
|
|
|
86570
86555
|
return console.error("Failed to parse cached column config:", d), null;
|
|
86571
86556
|
}
|
|
86572
86557
|
return null;
|
|
86573
|
-
}, i = B([]), a =
|
|
86558
|
+
}, i = B([]), a = VDe(), l = async (c) => {
|
|
86574
86559
|
const d = await r(), h = /* @__PURE__ */ new Map();
|
|
86575
86560
|
d == null || d.forEach((A) => {
|
|
86576
86561
|
A.width && h.set(A.field, A.width);
|
|
86577
86562
|
});
|
|
86578
|
-
const f = LDe(), p = Pf.fromType(
|
|
86563
|
+
const f = LDe(), p = Pf.fromType(BDe), v = ((c == null ? void 0 : c.map(
|
|
86579
86564
|
(A) => {
|
|
86580
86565
|
var k;
|
|
86581
86566
|
return {
|
|
@@ -86601,7 +86586,7 @@ const LDe = () => [...[
|
|
|
86601
86586
|
a,
|
|
86602
86587
|
...f,
|
|
86603
86588
|
...v,
|
|
86604
|
-
|
|
86589
|
+
// blankColumn,
|
|
86605
86590
|
p
|
|
86606
86591
|
], S = C.filter((A) => A.pinned === "left"), b = C.filter(
|
|
86607
86592
|
(A) => A.pinned === "right" || A.field === "blank"
|
|
@@ -86666,13 +86651,13 @@ const LDe = () => [...[
|
|
|
86666
86651
|
d && s(t, JSON.stringify(v));
|
|
86667
86652
|
}, xi);
|
|
86668
86653
|
return { columnDefs: i, checkboxColumn: a, saveColumnConfig: u };
|
|
86669
|
-
},
|
|
86654
|
+
}, HDe = () => {
|
|
86670
86655
|
const e = dn.getInstance().getItem("API_BASE_URL");
|
|
86671
86656
|
return e != null && e.includes("v1") ? e.slice(0, e.lastIndexOf("/v1")) : String(e);
|
|
86672
|
-
},
|
|
86657
|
+
}, GDe = (e) => {
|
|
86673
86658
|
var A, k, M;
|
|
86674
86659
|
const { showMessage: t, showErrorNetMessage: n } = yp(), o = so(), s = {
|
|
86675
|
-
domainApi:
|
|
86660
|
+
domainApi: HDe(),
|
|
86676
86661
|
wsCode: dn.getInstance().getItem("ws.code"),
|
|
86677
86662
|
entityId: e.value.entityId
|
|
86678
86663
|
}, r = (M = (k = (A = o == null ? void 0 : o.appContext) == null ? void 0 : A.config) == null ? void 0 : k.globalProperties) == null ? void 0 : M.apiConfig;
|
|
@@ -86873,7 +86858,7 @@ const LDe = () => [...[
|
|
|
86873
86858
|
getAssignedUsers: I
|
|
86874
86859
|
};
|
|
86875
86860
|
};
|
|
86876
|
-
function
|
|
86861
|
+
function UDe(e) {
|
|
86877
86862
|
return {
|
|
86878
86863
|
updateRowData: (o, s) => {
|
|
86879
86864
|
if (!e.value) return;
|
|
@@ -86933,7 +86918,7 @@ function WDe(e) {
|
|
|
86933
86918
|
}
|
|
86934
86919
|
};
|
|
86935
86920
|
}
|
|
86936
|
-
function
|
|
86921
|
+
function WDe(e, t, n, o, s) {
|
|
86937
86922
|
let r = !0;
|
|
86938
86923
|
return {
|
|
86939
86924
|
async getRows(i) {
|
|
@@ -86956,7 +86941,7 @@ function zDe(e, t, n, o, s) {
|
|
|
86956
86941
|
}
|
|
86957
86942
|
};
|
|
86958
86943
|
}
|
|
86959
|
-
function
|
|
86944
|
+
function zDe(e) {
|
|
86960
86945
|
const { selectRowData: t, isSidebarOpen: n, quickFilterText: o, gridApi: s, fetcher: r } = e, i = B(!0), a = B(!0), l = B(!1), u = () => {
|
|
86961
86946
|
n.value = !n.value;
|
|
86962
86947
|
}, c = (v) => {
|
|
@@ -86964,7 +86949,7 @@ function jDe(e) {
|
|
|
86964
86949
|
const { addEventListener: C, setGridOption: S } = v;
|
|
86965
86950
|
if (!r)
|
|
86966
86951
|
return console.error("Fetcher function is undefined"), null;
|
|
86967
|
-
const b =
|
|
86952
|
+
const b = WDe(
|
|
86968
86953
|
r,
|
|
86969
86954
|
e.perPage,
|
|
86970
86955
|
() => o.value,
|
|
@@ -87009,7 +86994,7 @@ function jDe(e) {
|
|
|
87009
86994
|
isSelectAll: g
|
|
87010
86995
|
};
|
|
87011
86996
|
}
|
|
87012
|
-
const
|
|
86997
|
+
const jDe = {
|
|
87013
86998
|
"1.0.1": {
|
|
87014
86999
|
date: "2024-06-20",
|
|
87015
87000
|
changes: [
|
|
@@ -87096,12 +87081,12 @@ const KDe = {
|
|
|
87096
87081
|
"Enhance tooltip display for app version and changelog in Item Table component."
|
|
87097
87082
|
]
|
|
87098
87083
|
}
|
|
87099
|
-
},
|
|
87100
|
-
changelog:
|
|
87101
|
-
},
|
|
87084
|
+
}, KDe = {
|
|
87085
|
+
changelog: jDe
|
|
87086
|
+
}, qDe = (e) => {
|
|
87102
87087
|
var t;
|
|
87103
|
-
return (t = Object.entries(
|
|
87104
|
-
},
|
|
87088
|
+
return (t = Object.entries(KDe.changelog).find(([n, o]) => n === e)) == null ? void 0 : t[1].changes;
|
|
87089
|
+
}, YDe = { key: 1 }, ZDe = /* @__PURE__ */ st({
|
|
87105
87090
|
__name: "PopupOverwriteScenes",
|
|
87106
87091
|
props: {
|
|
87107
87092
|
workspaceId: {},
|
|
@@ -87184,7 +87169,7 @@ const KDe = {
|
|
|
87184
87169
|
state: a.value,
|
|
87185
87170
|
"error-message": i.value,
|
|
87186
87171
|
overwrite: !0
|
|
87187
|
-
}, null, 8, ["state", "error-message"])) : (z(), ue("div",
|
|
87172
|
+
}, null, 8, ["state", "error-message"])) : (z(), ue("div", YDe, [
|
|
87188
87173
|
be("div", {
|
|
87189
87174
|
class: Q(T.$style["step-section"])
|
|
87190
87175
|
}, [
|
|
@@ -87296,7 +87281,7 @@ const KDe = {
|
|
|
87296
87281
|
}
|
|
87297
87282
|
]), 1032, ["popup-name"]));
|
|
87298
87283
|
}
|
|
87299
|
-
}),
|
|
87284
|
+
}), XDe = "_browse_lw86z_61", JDe = {
|
|
87300
87285
|
"step-section": "_step-section_lw86z_1",
|
|
87301
87286
|
"step-title": "_step-title_lw86z_11",
|
|
87302
87287
|
"step-title-2": "_step-title-2_lw86z_17",
|
|
@@ -87306,11 +87291,11 @@ const KDe = {
|
|
|
87306
87291
|
"drop-area": "_drop-area_lw86z_49",
|
|
87307
87292
|
"is-dragging": "_is-dragging_lw86z_49",
|
|
87308
87293
|
"drop-area-content": "_drop-area-content_lw86z_52",
|
|
87309
|
-
browse:
|
|
87294
|
+
browse: XDe,
|
|
87310
87295
|
"download-sample-btn": "_download-sample-btn_lw86z_65"
|
|
87311
|
-
},
|
|
87312
|
-
$style:
|
|
87313
|
-
},
|
|
87296
|
+
}, QDe = {
|
|
87297
|
+
$style: JDe
|
|
87298
|
+
}, eTe = /* @__PURE__ */ _t(ZDe, [["__cssModules", QDe]]), tTe = /* @__PURE__ */ st({
|
|
87314
87299
|
__name: "item-table",
|
|
87315
87300
|
props: {
|
|
87316
87301
|
entityId: {},
|
|
@@ -87366,7 +87351,7 @@ const KDe = {
|
|
|
87366
87351
|
}, 7e3);
|
|
87367
87352
|
});
|
|
87368
87353
|
});
|
|
87369
|
-
const g = B(null), v = B([]), C = Dy(), { rowCount: S } = ss(C), b = B(!1), w = B(""), D = B(), R = rN(), { metricList: T } = ss(R), I = B(""), x = B(!1), F = B(/* @__PURE__ */ new Set()), E = B(/* @__PURE__ */ new Map()), { apiServices: A } = io(!1, h), { columnDefs: k, checkboxColumn: M, saveColumnConfig: O } =
|
|
87354
|
+
const g = B(null), v = B([]), C = Dy(), { rowCount: S } = ss(C), b = B(!1), w = B(""), D = B(), R = rN(), { metricList: T } = ss(R), I = B(""), x = B(!1), F = B(/* @__PURE__ */ new Set()), E = B(/* @__PURE__ */ new Map()), { apiServices: A } = io(!1, h), { columnDefs: k, checkboxColumn: M, saveColumnConfig: O } = $De(
|
|
87370
87355
|
T,
|
|
87371
87356
|
h.entityId,
|
|
87372
87357
|
g
|
|
@@ -87381,7 +87366,7 @@ const KDe = {
|
|
|
87381
87366
|
);
|
|
87382
87367
|
const X = (ke, Ye) => {
|
|
87383
87368
|
O(ke, Ye);
|
|
87384
|
-
}, { updateRowData: J, setMetricValues: ie } =
|
|
87369
|
+
}, { updateRowData: J, setMetricValues: ie } = UDe(g), ae = q(() => ({
|
|
87385
87370
|
isSearching: w.value.length > 0,
|
|
87386
87371
|
isFiltering: !(Object.keys(Ae.value || {}).length == 1 && Object.keys(Ae.value)[0] == "preflight_status") && Object.keys(Ae.value || {}).length > 0
|
|
87387
87372
|
})), ee = q(py), V = q(
|
|
@@ -87401,7 +87386,7 @@ const KDe = {
|
|
|
87401
87386
|
metricIds: V.value,
|
|
87402
87387
|
updateItemData: J,
|
|
87403
87388
|
setMetricValues: ie
|
|
87404
|
-
})), { fetchItems: te, getMetricList: pe, cusorMap: ve, getMetricValues: re } =
|
|
87389
|
+
})), { fetchItems: te, getMetricList: pe, cusorMap: ve, getMetricValues: re } = GDe(H), se = q(() => {
|
|
87405
87390
|
if (!g.value) return !1;
|
|
87406
87391
|
const ke = g.value.getSelectedRows().length;
|
|
87407
87392
|
return ke > 0 && ke >= S.value.total;
|
|
@@ -87458,7 +87443,7 @@ const KDe = {
|
|
|
87458
87443
|
handleSelectAll: we,
|
|
87459
87444
|
onSearch: ze,
|
|
87460
87445
|
firstLoad: Ue
|
|
87461
|
-
} =
|
|
87446
|
+
} = zDe({
|
|
87462
87447
|
selectRowData: B([]),
|
|
87463
87448
|
// manage selectRowData separately if needed by BulkUpdate
|
|
87464
87449
|
isSidebarOpen: b,
|
|
@@ -87612,7 +87597,7 @@ const KDe = {
|
|
|
87612
87597
|
}, Mt = q(() => dn.getInstance().getItem("ITEM_TABLE_APP_VERSION") || ""), Wt = B();
|
|
87613
87598
|
q(() => {
|
|
87614
87599
|
var ke;
|
|
87615
|
-
return (ke =
|
|
87600
|
+
return (ke = qDe(Mt.value)) == null ? void 0 : ke.map((Ye) => `<div>• ${Ye}</div>`).join(`
|
|
87616
87601
|
`);
|
|
87617
87602
|
});
|
|
87618
87603
|
function tt(ke) {
|
|
@@ -87892,7 +87877,7 @@ const KDe = {
|
|
|
87892
87877
|
"entity-id": h.entityId,
|
|
87893
87878
|
onImportSuccess: vt
|
|
87894
87879
|
}, null, 8, ["workspace-id", "entity-id"]),
|
|
87895
|
-
fe(
|
|
87880
|
+
fe(eTe, {
|
|
87896
87881
|
ref_key: "popupOverwriteScenesRef",
|
|
87897
87882
|
ref: zt,
|
|
87898
87883
|
"workspace-id": h.workspaceId,
|
|
@@ -87904,18 +87889,18 @@ const KDe = {
|
|
|
87904
87889
|
}, 8, ["is-sidebar-open", "onCloseSidebar", "onSidebarClear", "onSidebarApply"]);
|
|
87905
87890
|
};
|
|
87906
87891
|
}
|
|
87907
|
-
}),
|
|
87908
|
-
tableTitle:
|
|
87909
|
-
tableFooter:
|
|
87910
|
-
footerStart:
|
|
87911
|
-
newRow:
|
|
87892
|
+
}), nTe = "_tableTitle_1sow5_1", oTe = "_tableFooter_1sow5_7", sTe = "_footerStart_1sow5_17", rTe = "_newRow_1sow5_25", iTe = "_itemSearchBox_1sow5_52", aTe = {
|
|
87893
|
+
tableTitle: nTe,
|
|
87894
|
+
tableFooter: oTe,
|
|
87895
|
+
footerStart: sTe,
|
|
87896
|
+
newRow: rTe,
|
|
87912
87897
|
"warning-text": "_warning-text_1sow5_43",
|
|
87913
87898
|
"has-error": "_has-error_1sow5_48",
|
|
87914
|
-
itemSearchBox:
|
|
87899
|
+
itemSearchBox: iTe,
|
|
87915
87900
|
"beta-tag": "_beta-tag_1sow5_56"
|
|
87916
|
-
},
|
|
87917
|
-
$style:
|
|
87918
|
-
},
|
|
87901
|
+
}, lTe = {
|
|
87902
|
+
$style: aTe
|
|
87903
|
+
}, uTe = /* @__PURE__ */ _t(tTe, [["__cssModules", lTe]]), c$ = "0.1.126", cTe = { key: 0 }, dTe = /* @__PURE__ */ st({
|
|
87919
87904
|
__name: "app",
|
|
87920
87905
|
setup(e) {
|
|
87921
87906
|
const t = q(() => n.id.length === 0 || n.workspaceId.length === 0), n = ys({
|
|
@@ -87958,19 +87943,19 @@ const KDe = {
|
|
|
87958
87943
|
return Ei("workspaceId", d), Ei("entityId", c), (h, f) => (z(), ue("div", {
|
|
87959
87944
|
class: Q(h.$style.dashboardPluginWrapper)
|
|
87960
87945
|
}, [
|
|
87961
|
-
t.value ? (z(), ue("span",
|
|
87946
|
+
t.value ? (z(), ue("span", cTe, " There is no workspaceId or entityIds provided in global properties. Please set them to see the Item Table. ")) : c.value ? (z(), je(G(uTe), {
|
|
87962
87947
|
key: 1,
|
|
87963
87948
|
entityId: c.value,
|
|
87964
87949
|
workspaceId: d.value
|
|
87965
87950
|
}, null, 8, ["entityId", "workspaceId"])) : Xe("", !0)
|
|
87966
87951
|
], 2));
|
|
87967
87952
|
}
|
|
87968
|
-
}),
|
|
87969
|
-
dashboardPluginWrapper:
|
|
87970
|
-
},
|
|
87971
|
-
$style:
|
|
87972
|
-
},
|
|
87973
|
-
const n = QA(
|
|
87953
|
+
}), hTe = "_dashboardPluginWrapper_1f1og_1", fTe = {
|
|
87954
|
+
dashboardPluginWrapper: hTe
|
|
87955
|
+
}, pTe = {
|
|
87956
|
+
$style: fTe
|
|
87957
|
+
}, gTe = /* @__PURE__ */ _t(dTe, [["__cssModules", pTe]]), mTe = async (e = {}, t = {}) => {
|
|
87958
|
+
const n = QA(gTe), o = eZ();
|
|
87974
87959
|
n.use(o);
|
|
87975
87960
|
const s = ["apiConfig", "workspaceId", "id"], r = {};
|
|
87976
87961
|
Object.entries(e).forEach(([a, l]) => {
|
|
@@ -87985,8 +87970,8 @@ const KDe = {
|
|
|
87985
87970
|
const i = await Xue();
|
|
87986
87971
|
return n.use(i), n;
|
|
87987
87972
|
};
|
|
87988
|
-
globalThis.window !== void 0 && (globalThis.window.arboDashboard =
|
|
87973
|
+
globalThis.window !== void 0 && (globalThis.window.arboDashboard = mTe);
|
|
87989
87974
|
export {
|
|
87990
|
-
|
|
87991
|
-
|
|
87975
|
+
mTe as default,
|
|
87976
|
+
mTe as initDashboard
|
|
87992
87977
|
};
|