shared-ritm 1.2.116 → 1.2.118

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 (37) hide show
  1. package/dist/index.css +1 -1
  2. package/dist/shared-ritm.es.js +86 -78
  3. package/dist/shared-ritm.umd.js +6 -6
  4. package/dist/types/api/services/PhotoService.d.ts +38 -51
  5. package/dist/types/api/services/VideoService.d.ts +2 -1
  6. package/dist/types/api/types/Api_Repairs.d.ts +12 -11
  7. package/dist/types/api/types/Api_Video.d.ts +16 -1
  8. package/package.json +64 -64
  9. package/src/api/services/BrigadesService.ts +32 -32
  10. package/src/api/services/EquipmentService.ts +29 -29
  11. package/src/api/services/InstrumentsService.ts +63 -63
  12. package/src/api/services/ModulesService.ts +27 -27
  13. package/src/api/services/ProjectsService.ts +72 -72
  14. package/src/api/services/SearchService.ts +22 -22
  15. package/src/api/services/UserService.ts +101 -101
  16. package/src/api/services/VideoService.ts +71 -66
  17. package/src/api/settings/ApiService.ts +124 -124
  18. package/src/api/types/Api_Brigades.ts +36 -36
  19. package/src/api/types/Api_Equipment.ts +3 -3
  20. package/src/api/types/Api_Instruments.ts +136 -136
  21. package/src/api/types/Api_Modules.ts +21 -21
  22. package/src/api/types/Api_Repairs.ts +8 -6
  23. package/src/api/types/Api_Search.ts +77 -77
  24. package/src/api/types/Api_User.ts +117 -117
  25. package/src/api/types/Api_Video.ts +140 -123
  26. package/src/common/app-input-new/AppInputNew.vue +175 -175
  27. package/src/common/app-layout/components/AppLayoutHeader.vue +1 -1
  28. package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
  29. package/src/common/app-table/AppTable.vue +314 -314
  30. package/src/common/app-table/AppTableLayout.vue +137 -137
  31. package/src/common/app-table/components/ModalSelect.vue +270 -270
  32. package/src/common/app-table/components/TableModal.vue +356 -356
  33. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  34. package/src/index.ts +122 -122
  35. package/src/styles/variables.sass +12 -12
  36. package/dist/types/api/services/ComentsServise.d.ts +0 -10
  37. package/dist/types/api/types/Api_Users.d.ts +0 -43
@@ -6205,7 +6205,7 @@ const Ky = { class: "app-input-new" }, Xy = {
6205
6205
  }, 8, ["modelValue", "type", "rules", "placeholder", "disable", "readonly", "class", "error", "autocomplete"])
6206
6206
  ]));
6207
6207
  }
6208
- }), Zy = /* @__PURE__ */ Fe(Qy, [["__scopeId", "data-v-123be192"]]), Jy = { class: "datepicker" }, eb = /* @__PURE__ */ Ft({
6208
+ }), Zy = /* @__PURE__ */ Fe(Qy, [["__scopeId", "data-v-c24941bd"]]), Jy = { class: "datepicker" }, eb = /* @__PURE__ */ Ft({
6209
6209
  __name: "AppDatepicker",
6210
6210
  props: /* @__PURE__ */ Sf({
6211
6211
  label: {},
@@ -8153,82 +8153,85 @@ const Xw = /* @__PURE__ */ Fe(jw, [["render", Kw]]), Yw = /* @__PURE__ */ Ft({
8153
8153
  Ce(bb, {
8154
8154
  class: Ke(d.$style.toolbar)
8155
8155
  }, {
8156
- default: ve(() => [
8157
- fe("h1", null, mt(d.pageTitle), 1),
8158
- fe("div", {
8159
- class: Ke(d.$style["action-buttons"])
8160
- }, [
8161
- d.settingsMenuItems.find((h) => h.name === "root-on" && h.isShow) ? (Y(), ye("p", Jw, "Root-режим")) : Ye("", !0),
8156
+ default: ve(() => {
8157
+ var h;
8158
+ return [
8159
+ fe("h1", null, mt(d.pageTitle), 1),
8162
8160
  fe("div", {
8163
- class: Ke(d.$style.person),
8164
- onClick: l
8161
+ class: Ke(d.$style["action-buttons"])
8165
8162
  }, [
8166
- Ce(Ca, { name: "person-icon" }),
8163
+ (h = d.settingsMenuItems) != null && h.find((p) => p.name === "root-on" && p.isShow) ? (Y(), ye("p", Jw, "Root-режим")) : Ye("", !0),
8164
+ fe("div", {
8165
+ class: Ke(d.$style.person),
8166
+ onClick: l
8167
+ }, [
8168
+ Ce(Ca, { name: "person-icon" }),
8169
+ fe("div", {
8170
+ class: Ke(d.$style.person__info)
8171
+ }, [
8172
+ fe("p", ex, mt(i.value), 1),
8173
+ fe("p", tx, mt(s.value), 1)
8174
+ ], 2)
8175
+ ], 2),
8167
8176
  fe("div", {
8168
- class: Ke(d.$style.person__info)
8177
+ class: Ke(d.$style["action-wrapper"])
8169
8178
  }, [
8170
- fe("p", ex, mt(i.value), 1),
8171
- fe("p", tx, mt(s.value), 1)
8179
+ Ce(Cs, {
8180
+ color: "white",
8181
+ vertical: "",
8182
+ size: "1px"
8183
+ }),
8184
+ Ce(St, {
8185
+ ref_key: "refMenuSettings",
8186
+ ref: o,
8187
+ flat: "",
8188
+ padding: "sm",
8189
+ ripple: !1,
8190
+ class: Ke([d.$style.settings, { [d.$style.settings__open]: a.value }]),
8191
+ onClick: u
8192
+ }, {
8193
+ default: ve(() => [
8194
+ Ce(Ca, {
8195
+ size: "28px",
8196
+ name: "setting-icon"
8197
+ }),
8198
+ Ce(xi, {
8199
+ "max-height": "160px",
8200
+ offset: [-18, 4],
8201
+ class: Ke(d.$style["settings-menu"])
8202
+ }, {
8203
+ default: ve(() => [
8204
+ (Y(!0), ye(Ar, null, Wr(d.settingsMenuItems, (p) => (Y(), Ae(sd, {
8205
+ key: p.name,
8206
+ class: Ke(d.$style["settings-menu__list"])
8207
+ }, {
8208
+ default: ve(() => [
8209
+ Qn((Y(), Ae(Xn, {
8210
+ class: Ke(d.$style["settings-menu__item"]),
8211
+ clickable: "",
8212
+ onClick: (m) => c(p)
8213
+ }, {
8214
+ default: ve(() => [
8215
+ $t(mt(p.label), 1)
8216
+ ]),
8217
+ _: 2
8218
+ }, 1032, ["class", "onClick"])), [
8219
+ [Vp, p.isShow],
8220
+ [ud]
8221
+ ])
8222
+ ]),
8223
+ _: 2
8224
+ }, 1032, ["class"]))), 128))
8225
+ ]),
8226
+ _: 1
8227
+ }, 8, ["class"])
8228
+ ]),
8229
+ _: 1
8230
+ }, 8, ["class"])
8172
8231
  ], 2)
8173
- ], 2),
8174
- fe("div", {
8175
- class: Ke(d.$style["action-wrapper"])
8176
- }, [
8177
- Ce(Cs, {
8178
- color: "white",
8179
- vertical: "",
8180
- size: "1px"
8181
- }),
8182
- Ce(St, {
8183
- ref_key: "refMenuSettings",
8184
- ref: o,
8185
- flat: "",
8186
- padding: "sm",
8187
- ripple: !1,
8188
- class: Ke([d.$style.settings, { [d.$style.settings__open]: a.value }]),
8189
- onClick: u
8190
- }, {
8191
- default: ve(() => [
8192
- Ce(Ca, {
8193
- size: "28px",
8194
- name: "setting-icon"
8195
- }),
8196
- Ce(xi, {
8197
- "max-height": "160px",
8198
- offset: [-18, 4],
8199
- class: Ke(d.$style["settings-menu"])
8200
- }, {
8201
- default: ve(() => [
8202
- (Y(!0), ye(Ar, null, Wr(d.settingsMenuItems, (h) => (Y(), Ae(sd, {
8203
- key: h.name,
8204
- class: Ke(d.$style["settings-menu__list"])
8205
- }, {
8206
- default: ve(() => [
8207
- Qn((Y(), Ae(Xn, {
8208
- class: Ke(d.$style["settings-menu__item"]),
8209
- clickable: "",
8210
- onClick: (p) => c(h)
8211
- }, {
8212
- default: ve(() => [
8213
- $t(mt(h.label), 1)
8214
- ]),
8215
- _: 2
8216
- }, 1032, ["class", "onClick"])), [
8217
- [Vp, h.isShow],
8218
- [ud]
8219
- ])
8220
- ]),
8221
- _: 2
8222
- }, 1032, ["class"]))), 128))
8223
- ]),
8224
- _: 1
8225
- }, 8, ["class"])
8226
- ]),
8227
- _: 1
8228
- }, 8, ["class"])
8229
8232
  ], 2)
8230
- ], 2)
8231
- ]),
8233
+ ];
8234
+ }),
8232
8235
  _: 1
8233
8236
  }, 8, ["class"])
8234
8237
  ]),
@@ -10348,7 +10351,7 @@ const Wx = ["left", "center", "right", "justify"], Hx = Ge({
10348
10351
  tab: Zx
10349
10352
  }, e_ = {
10350
10353
  $style: Jx
10351
- }, zA = /* @__PURE__ */ Fe(Qx, [["__cssModules", e_], ["__scopeId", "data-v-14857b70"]]), mh = 150, t_ = Ge({
10354
+ }, zA = /* @__PURE__ */ Fe(Qx, [["__cssModules", e_], ["__scopeId", "data-v-63306fe5"]]), mh = 150, t_ = Ge({
10352
10355
  name: "QDrawer",
10353
10356
  inheritAttrs: !1,
10354
10357
  props: {
@@ -12065,7 +12068,7 @@ const W_ = Ge({
12065
12068
  ], 64);
12066
12069
  };
12067
12070
  }
12068
- }), uC = /* @__PURE__ */ Fe(sC, [["__scopeId", "data-v-2e33c030"]]), lC = { class: "modal-title" }, cC = {
12071
+ }), uC = /* @__PURE__ */ Fe(sC, [["__scopeId", "data-v-d70e00a1"]]), lC = { class: "modal-title" }, cC = {
12069
12072
  key: 0,
12070
12073
  class: "field-label"
12071
12074
  }, dC = {
@@ -12291,7 +12294,7 @@ const W_ = Ge({
12291
12294
  _: 1
12292
12295
  }, 8, ["model-value"]));
12293
12296
  }
12294
- }), GA = /* @__PURE__ */ Fe(fC, [["__scopeId", "data-v-20ca776a"]]), gh = Ge({
12297
+ }), GA = /* @__PURE__ */ Fe(fC, [["__scopeId", "data-v-b137510f"]]), gh = Ge({
12295
12298
  name: "QTd",
12296
12299
  props: {
12297
12300
  props: Object,
@@ -14236,7 +14239,7 @@ const KC = /* @__PURE__ */ Fe(UC, [["render", GC]]), XC = {
14236
14239
  ]), 1032, ["selected", "rows", "columns", "selection", "table-row-style-fn"])
14237
14240
  ]));
14238
14241
  }
14239
- }), ak = /* @__PURE__ */ Fe(ok, [["__scopeId", "data-v-2d5bb0a7"]]), ik = {
14242
+ }), ak = /* @__PURE__ */ Fe(ok, [["__scopeId", "data-v-3e02d553"]]), ik = {
14240
14243
  key: 0,
14241
14244
  class: "table-controls"
14242
14245
  }, sk = { class: "table-wrapper" }, uk = {
@@ -14310,7 +14313,7 @@ const KC = /* @__PURE__ */ Fe(UC, [["render", GC]]), XC = {
14310
14313
  "modal" in Er(o) ? nn(u.$slots, "modal", { key: 2 }, void 0, !0) : Ye("", !0)
14311
14314
  ], 2));
14312
14315
  }
14313
- }), KA = /* @__PURE__ */ Fe(lk, [["__scopeId", "data-v-75397446"]]);
14316
+ }), KA = /* @__PURE__ */ Fe(lk, [["__scopeId", "data-v-1b7ee59f"]]);
14314
14317
  function em(e, n) {
14315
14318
  return function() {
14316
14319
  return e.apply(n, arguments);
@@ -14619,6 +14622,8 @@ function lu(e, n, t) {
14619
14622
  if (p === null) return "";
14620
14623
  if (te.isDate(p))
14621
14624
  return p.toISOString();
14625
+ if (te.isBoolean(p))
14626
+ return p.toString();
14622
14627
  if (!u && te.isBlob(p))
14623
14628
  throw new ut("Blob is not supported. Use a Buffer instead.");
14624
14629
  return te.isArrayBuffer(p) || te.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
@@ -15539,7 +15544,7 @@ const M3 = async (e) => {
15539
15544
  duplex: "half",
15540
15545
  credentials: y ? d : void 0
15541
15546
  });
15542
- let b = await fetch(p);
15547
+ let b = await fetch(p, f);
15543
15548
  const w = dc && (l === "stream" || l === "response");
15544
15549
  if (dc && (s || w && m)) {
15545
15550
  const x = {};
@@ -15644,7 +15649,7 @@ function Bh(e) {
15644
15649
  ), r.response.headers = Ln.from(r.response.headers))), Promise.reject(r);
15645
15650
  });
15646
15651
  }
15647
- const _m = "1.9.0", du = {};
15652
+ const _m = "1.10.0", du = {};
15648
15653
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, n) => {
15649
15654
  du[e] = function(r) {
15650
15655
  return typeof r === e || "a" + (n < 1 ? "n " : " ") + e;
@@ -16476,6 +16481,9 @@ class G3 extends Dn {
16476
16481
  async deleteVideoSource(n) {
16477
16482
  await this.delete(`/horizon/video-source/${n}`);
16478
16483
  }
16484
+ async fetchListRepairsVideoSource(n) {
16485
+ return await this.get("work_zone/get_list_video_source_by_repair", { params: n });
16486
+ }
16479
16487
  }
16480
16488
  let ll;
16481
16489
  function wD() {