shared-ritm 1.2.107 → 1.2.109
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/index.css +1 -1
- package/dist/shared-ritm.es.js +31 -2
- package/dist/shared-ritm.umd.js +39 -39
- package/dist/types/api/services/InstrumentsService.d.ts +17 -1
- package/dist/types/api/services/SearchService.d.ts +2 -1
- package/dist/types/api/types/Api_Instruments.d.ts +26 -0
- package/dist/types/api/types/Api_Search.d.ts +16 -0
- package/package.json +1 -1
- package/src/api/services/InstrumentsService.ts +42 -1
- package/src/api/services/SearchService.ts +5 -2
- package/src/api/types/Api_Instruments.ts +38 -0
- package/src/api/types/Api_Search.ts +19 -0
- package/src/common/app-table/AppTable.vue +2 -0
package/dist/shared-ritm.es.js
CHANGED
|
@@ -14010,6 +14010,7 @@ const j_ = /* @__PURE__ */ Fe(W_, [["render", U_]]), G_ = {
|
|
|
14010
14010
|
hidePagination: { type: Boolean },
|
|
14011
14011
|
selectedRows: {},
|
|
14012
14012
|
actions: {},
|
|
14013
|
+
tableRowStyleFn: { type: Function },
|
|
14013
14014
|
slots: {}
|
|
14014
14015
|
},
|
|
14015
14016
|
emits: ["toggle-filter-value", "clear-filter", "open-filter-menu", "row-click", "update:selectedRows", "edit"],
|
|
@@ -14056,6 +14057,7 @@ const j_ = /* @__PURE__ */ Fe(W_, [["render", U_]]), G_ = {
|
|
|
14056
14057
|
"rows-per-page-options": [0],
|
|
14057
14058
|
selection: t.enableMultiSelect ? "multiple" : "none",
|
|
14058
14059
|
style: { height: "100%" },
|
|
14060
|
+
"table-row-style-fn": d.tableRowStyleFn,
|
|
14059
14061
|
onRowClick: l
|
|
14060
14062
|
}, Da({
|
|
14061
14063
|
"header-selection": ve((h) => [
|
|
@@ -14227,10 +14229,10 @@ const j_ = /* @__PURE__ */ Fe(W_, [["render", U_]]), G_ = {
|
|
|
14227
14229
|
}, 1032, ["props", "class", "style"])
|
|
14228
14230
|
])
|
|
14229
14231
|
}))
|
|
14230
|
-
]), 1032, ["selected", "rows", "columns", "selection"])
|
|
14232
|
+
]), 1032, ["selected", "rows", "columns", "selection", "table-row-style-fn"])
|
|
14231
14233
|
]));
|
|
14232
14234
|
}
|
|
14233
|
-
}), rk = /* @__PURE__ */ Fe(nk, [["__scopeId", "data-v-
|
|
14235
|
+
}), rk = /* @__PURE__ */ Fe(nk, [["__scopeId", "data-v-3e02d553"]]), ok = {
|
|
14234
14236
|
key: 0,
|
|
14235
14237
|
class: "table-controls"
|
|
14236
14238
|
}, ak = { class: "table-wrapper" }, ik = {
|
|
@@ -16549,6 +16551,30 @@ class G3 extends Mn {
|
|
|
16549
16551
|
};
|
|
16550
16552
|
return await this.get(`users/${n}/instruments`, { params: r });
|
|
16551
16553
|
}
|
|
16554
|
+
async fetchWarehouses(n) {
|
|
16555
|
+
return await this.get("search/warehouses", { params: n });
|
|
16556
|
+
}
|
|
16557
|
+
async fetchWarehouse(n) {
|
|
16558
|
+
return await this.get(`admin/warehouses/${n}`);
|
|
16559
|
+
}
|
|
16560
|
+
async fetchStatusHistory(n) {
|
|
16561
|
+
return await this.get(`warehouses/${n}/history/status`);
|
|
16562
|
+
}
|
|
16563
|
+
async createWarehouse(n) {
|
|
16564
|
+
return await this.post("admin/warehouses", n);
|
|
16565
|
+
}
|
|
16566
|
+
async editWarehouse({
|
|
16567
|
+
id: n,
|
|
16568
|
+
model: t
|
|
16569
|
+
}) {
|
|
16570
|
+
return await this.put(`admin/warehouses/${n}`, t);
|
|
16571
|
+
}
|
|
16572
|
+
deleteWarehouse(n) {
|
|
16573
|
+
return this.delete(`admin/warehouses/${n}`);
|
|
16574
|
+
}
|
|
16575
|
+
async unsetWarehouseRfid(n) {
|
|
16576
|
+
return await this.post("warehouses/unset-rfid", n);
|
|
16577
|
+
}
|
|
16552
16578
|
}
|
|
16553
16579
|
let dl;
|
|
16554
16580
|
function bD() {
|
|
@@ -16606,6 +16632,9 @@ class X3 extends Mn {
|
|
|
16606
16632
|
fetchSearchInstruments(n) {
|
|
16607
16633
|
return this.get("search/instrument_type", { params: n });
|
|
16608
16634
|
}
|
|
16635
|
+
fetchSearchModules(n) {
|
|
16636
|
+
return this.get("search/modules", { params: n });
|
|
16637
|
+
}
|
|
16609
16638
|
}
|
|
16610
16639
|
let hl;
|
|
16611
16640
|
function xD() {
|