shared-ritm 1.2.106 → 1.2.108

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.
Files changed (34) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +41 -10
  3. package/dist/shared-ritm.umd.js +41 -41
  4. package/dist/types/api/services/InstrumentsService.d.ts +17 -1
  5. package/dist/types/api/services/PhotoService.d.ts +38 -51
  6. package/dist/types/api/services/SearchService.d.ts +2 -1
  7. package/dist/types/api/types/Api_Instruments.d.ts +26 -0
  8. package/dist/types/api/types/Api_Search.d.ts +16 -0
  9. package/package.json +64 -64
  10. package/src/api/services/BrigadesService.ts +32 -32
  11. package/src/api/services/EquipmentService.ts +29 -29
  12. package/src/api/services/InstrumentsService.ts +63 -22
  13. package/src/api/services/SearchService.ts +5 -2
  14. package/src/api/services/UserService.ts +101 -101
  15. package/src/api/services/VideoService.ts +62 -62
  16. package/src/api/settings/ApiService.ts +124 -126
  17. package/src/api/types/Api_Brigades.ts +36 -36
  18. package/src/api/types/Api_Equipment.ts +3 -3
  19. package/src/api/types/Api_Instruments.ts +136 -98
  20. package/src/api/types/Api_Search.ts +19 -0
  21. package/src/api/types/Api_User.ts +117 -117
  22. package/src/api/types/Api_Video.ts +123 -123
  23. package/src/common/app-input-new/AppInputNew.vue +167 -167
  24. package/src/common/app-layout/components/AppLayoutHeader.vue +250 -250
  25. package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
  26. package/src/common/app-table/AppTable.vue +314 -312
  27. package/src/common/app-table/AppTableLayout.vue +137 -137
  28. package/src/common/app-table/components/ModalSelect.vue +270 -270
  29. package/src/common/app-table/components/TableModal.vue +356 -356
  30. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  31. package/src/index.ts +119 -119
  32. package/src/styles/variables.sass +12 -12
  33. package/dist/types/api/services/ComentsServise.d.ts +0 -10
  34. package/dist/types/api/types/Api_Users.d.ts +0 -43
@@ -6205,7 +6205,7 @@ const Gy = { class: "app-input-new" }, Ky = {
6205
6205
  }, 8, ["modelValue", "type", "rules", "placeholder", "disable", "readonly", "class", "error", "autocomplete"])
6206
6206
  ]));
6207
6207
  }
6208
- }), Qy = /* @__PURE__ */ Fe(Yy, [["__scopeId", "data-v-f55cc909"]]), Zy = { class: "datepicker" }, Jy = /* @__PURE__ */ Ft({
6208
+ }), Qy = /* @__PURE__ */ Fe(Yy, [["__scopeId", "data-v-d23d600f"]]), Zy = { class: "datepicker" }, Jy = /* @__PURE__ */ Ft({
6209
6209
  __name: "AppDatepicker",
6210
6210
  props: /* @__PURE__ */ kf({
6211
6211
  label: {},
@@ -10344,7 +10344,7 @@ const zx = ["left", "center", "right", "justify"], $x = Ge({
10344
10344
  tab: Yx
10345
10345
  }, Zx = {
10346
10346
  $style: Qx
10347
- }, LA = /* @__PURE__ */ Fe(Xx, [["__cssModules", Zx], ["__scopeId", "data-v-14857b70"]]), vh = 150, Jx = Ge({
10347
+ }, LA = /* @__PURE__ */ Fe(Xx, [["__cssModules", Zx], ["__scopeId", "data-v-63306fe5"]]), vh = 150, Jx = Ge({
10348
10348
  name: "QDrawer",
10349
10349
  inheritAttrs: !1,
10350
10350
  props: {
@@ -12061,7 +12061,7 @@ const zC = Ge({
12061
12061
  ], 64);
12062
12062
  };
12063
12063
  }
12064
- }), i_ = /* @__PURE__ */ Fe(a_, [["__scopeId", "data-v-2e33c030"]]), s_ = { class: "modal-title" }, u_ = {
12064
+ }), i_ = /* @__PURE__ */ Fe(a_, [["__scopeId", "data-v-d70e00a1"]]), s_ = { class: "modal-title" }, u_ = {
12065
12065
  key: 0,
12066
12066
  class: "field-label"
12067
12067
  }, l_ = {
@@ -12287,7 +12287,7 @@ const zC = Ge({
12287
12287
  _: 1
12288
12288
  }, 8, ["model-value"]));
12289
12289
  }
12290
- }), HA = /* @__PURE__ */ Fe(c_, [["__scopeId", "data-v-20ca776a"]]), mh = Ge({
12290
+ }), HA = /* @__PURE__ */ Fe(c_, [["__scopeId", "data-v-b137510f"]]), mh = Ge({
12291
12291
  name: "QTd",
12292
12292
  props: {
12293
12293
  props: Object,
@@ -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-eea28ff7"]]), ok = {
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 = {
@@ -14304,7 +14306,7 @@ const j_ = /* @__PURE__ */ Fe(W_, [["render", U_]]), G_ = {
14304
14306
  "modal" in Er(o) ? nn(u.$slots, "modal", { key: 2 }, void 0, !0) : Je("", !0)
14305
14307
  ], 2));
14306
14308
  }
14307
- }), UA = /* @__PURE__ */ Fe(sk, [["__scopeId", "data-v-75397446"]]);
14309
+ }), UA = /* @__PURE__ */ Fe(sk, [["__scopeId", "data-v-1b7ee59f"]]);
14308
14310
  function Jv(e, n) {
14309
14311
  return function() {
14310
14312
  return e.apply(n, arguments);
@@ -14613,6 +14615,8 @@ function lu(e, n, t) {
14613
14615
  if (p === null) return "";
14614
14616
  if (te.isDate(p))
14615
14617
  return p.toISOString();
14618
+ if (te.isBoolean(p))
14619
+ return p.toString();
14616
14620
  if (!u && te.isBlob(p))
14617
14621
  throw new ut("Blob is not supported. Use a Buffer instead.");
14618
14622
  return te.isArrayBuffer(p) || te.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
@@ -15533,7 +15537,7 @@ const A3 = async (e) => {
15533
15537
  duplex: "half",
15534
15538
  credentials: y ? d : void 0
15535
15539
  });
15536
- let b = await fetch(p);
15540
+ let b = await fetch(p, f);
15537
15541
  const w = cc && (l === "stream" || l === "response");
15538
15542
  if (cc && (s || w && m)) {
15539
15543
  const x = {};
@@ -15638,7 +15642,7 @@ function Fh(e) {
15638
15642
  ), r.response.headers = Ln.from(r.response.headers))), Promise.reject(r);
15639
15643
  });
15640
15644
  }
15641
- const xm = "1.9.0", du = {};
15645
+ const xm = "1.10.0", du = {};
15642
15646
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, n) => {
15643
15647
  du[e] = function(r) {
15644
15648
  return typeof r === e || "a" + (n < 1 ? "n " : " ") + e;
@@ -16042,7 +16046,7 @@ class Mn {
16042
16046
  async get(n, t) {
16043
16047
  try {
16044
16048
  const r = await this.axiosInstance.get(n, t);
16045
- return (r == null ? void 0 : r.data) === !1 ? !1 : Array.isArray(r == null ? void 0 : r.data) ? r : (r == null ? void 0 : r.data) ?? r;
16049
+ return (r == null ? void 0 : r.data) === !1 ? !1 : (r == null ? void 0 : r.data) ?? r;
16046
16050
  } catch (r) {
16047
16051
  const o = r;
16048
16052
  throw this.handleError(o), r;
@@ -16547,6 +16551,30 @@ class G3 extends Mn {
16547
16551
  };
16548
16552
  return await this.get(`users/${n}/instruments`, { params: r });
16549
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
+ }
16550
16578
  }
16551
16579
  let dl;
16552
16580
  function bD() {
@@ -16604,6 +16632,9 @@ class X3 extends Mn {
16604
16632
  fetchSearchInstruments(n) {
16605
16633
  return this.get("search/instrument_type", { params: n });
16606
16634
  }
16635
+ fetchSearchModules(n) {
16636
+ return this.get("search/modules", { params: n });
16637
+ }
16607
16638
  }
16608
16639
  let hl;
16609
16640
  function xD() {