shared-ritm 1.2.111 → 1.2.112

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 (128) hide show
  1. package/README.md +103 -103
  2. package/dist/index.css +1 -1
  3. package/dist/shared-ritm.es.js +31 -30
  4. package/dist/shared-ritm.umd.js +6 -6
  5. package/dist/types/api/services/VideoService.d.ts +1 -0
  6. package/package.json +64 -64
  7. package/src/App.vue +2461 -2461
  8. package/src/api/services/AuthService.ts +64 -64
  9. package/src/api/services/BrigadesService.ts +32 -32
  10. package/src/api/services/CommentsService.ts +24 -24
  11. package/src/api/services/ControlsService.ts +65 -65
  12. package/src/api/services/EquipmentService.ts +29 -29
  13. package/src/api/services/FileService.ts +17 -17
  14. package/src/api/services/GanttService.ts +17 -17
  15. package/src/api/services/InstrumentsService.ts +63 -63
  16. package/src/api/services/MetricsService.ts +110 -110
  17. package/src/api/services/ModulesService.ts +27 -27
  18. package/src/api/services/ProjectsService.ts +72 -72
  19. package/src/api/services/RepairsService.ts +119 -119
  20. package/src/api/services/SearchService.ts +22 -22
  21. package/src/api/services/TasksService.ts +145 -145
  22. package/src/api/services/UserService.ts +101 -101
  23. package/src/api/services/VideoService.ts +66 -62
  24. package/src/api/settings/ApiService.ts +124 -124
  25. package/src/api/types/Api_Brigades.ts +36 -36
  26. package/src/api/types/Api_Comment.ts +40 -40
  27. package/src/api/types/Api_Controls.ts +72 -72
  28. package/src/api/types/Api_Equipment.ts +3 -3
  29. package/src/api/types/Api_Files.ts +7 -7
  30. package/src/api/types/Api_Instruments.ts +136 -136
  31. package/src/api/types/Api_Modules.ts +21 -21
  32. package/src/api/types/Api_Projects.ts +55 -55
  33. package/src/api/types/Api_Repairs.ts +115 -115
  34. package/src/api/types/Api_Search.ts +77 -77
  35. package/src/api/types/Api_Service.ts +9 -9
  36. package/src/api/types/Api_Tasks.ts +319 -319
  37. package/src/api/types/Api_User.ts +117 -117
  38. package/src/api/types/Api_Video.ts +123 -123
  39. package/src/common/app-button/AppButton.vue +173 -173
  40. package/src/common/app-checkbox/AppCheckbox.vue +26 -26
  41. package/src/common/app-date-picker/AppDatePicker.vue +81 -81
  42. package/src/common/app-datepicker/AppDatepicker.vue +165 -165
  43. package/src/common/app-dialogs/AppConfirmDialog.vue +99 -99
  44. package/src/common/app-dropdown/AppDropdown.vue +31 -31
  45. package/src/common/app-icon/AppIcon.vue +108 -108
  46. package/src/common/app-input/AppInput.vue +148 -148
  47. package/src/common/app-input-new/AppInputNew.vue +175 -175
  48. package/src/common/app-input-search/AppInputSearch.vue +174 -174
  49. package/src/common/app-layout/AppLayout.vue +84 -84
  50. package/src/common/app-layout/components/AppLayoutHeader.vue +250 -250
  51. package/src/common/app-layout/components/AppLayoutPage.vue +16 -16
  52. package/src/common/app-loader/index.vue +43 -43
  53. package/src/common/app-page-layout/AppPageLayout.vue +122 -122
  54. package/src/common/app-select/AppSelect.vue +157 -157
  55. package/src/common/app-sheet/AppSheet.vue +120 -120
  56. package/src/common/app-sheet-new/AppSheetNew.vue +246 -246
  57. package/src/common/app-sidebar/AppSidebar.vue +168 -168
  58. package/src/common/app-sidebar/components/SidebarMenu.vue +37 -37
  59. package/src/common/app-sidebar/components/SidebarMenuItem.vue +148 -148
  60. package/src/common/app-table/AppTable.vue +314 -314
  61. package/src/common/app-table/AppTableLayout.vue +137 -137
  62. package/src/common/app-table/components/ModalSelect.vue +270 -270
  63. package/src/common/app-table/components/TableModal.vue +356 -356
  64. package/src/common/app-table/components/TablePagination.vue +152 -152
  65. package/src/common/app-table/controllers/useBaseTable.ts +45 -45
  66. package/src/common/app-table/controllers/useColumnSelector.ts +38 -38
  67. package/src/common/app-table/controllers/useTableModel.ts +93 -93
  68. package/src/common/app-toggle/AppToggle.vue +24 -24
  69. package/src/common/app-wrapper/AppWrapper.vue +28 -28
  70. package/src/global.d.ts +1 -1
  71. package/src/icons/components/arrow-down-icon.vue +25 -25
  72. package/src/icons/components/arrow-frame-icon.vue +19 -19
  73. package/src/icons/components/arrow-square.vue +22 -22
  74. package/src/icons/components/table-filter-icon.vue +30 -30
  75. package/src/icons/dialogs/RemoveIcon.vue +12 -12
  76. package/src/icons/dialogs/SafetyIcon.vue +12 -12
  77. package/src/icons/header/NotificationIcon.vue +18 -18
  78. package/src/icons/header/PersonIcon.vue +11 -11
  79. package/src/icons/header/SettingIcon.vue +14 -14
  80. package/src/icons/header/flashIcon.vue +24 -24
  81. package/src/icons/header/searchStatusIcon.vue +24 -24
  82. package/src/icons/header/smallCapsIcon.vue +34 -34
  83. package/src/icons/sidebar/assign-module-icon.vue +36 -36
  84. package/src/icons/sidebar/instrument-history-icon.vue +32 -32
  85. package/src/icons/sidebar/instrument-order-icon.vue +38 -38
  86. package/src/icons/sidebar/instrument-work-zone-icon.vue +18 -18
  87. package/src/icons/sidebar/instruments-icon.vue +45 -45
  88. package/src/icons/sidebar/logo-icon.vue +15 -15
  89. package/src/icons/sidebar/logout-icon.vue +13 -13
  90. package/src/icons/sidebar/modules-icon.vue +16 -16
  91. package/src/icons/sidebar/notifications-icon.vue +24 -24
  92. package/src/icons/sidebar/order-icon.vue +44 -44
  93. package/src/icons/sidebar/pass-icon.vue +38 -38
  94. package/src/icons/sidebar/positions-icon.vue +42 -42
  95. package/src/icons/sidebar/preorder-icon.vue +19 -19
  96. package/src/icons/sidebar/projects-icon.vue +31 -31
  97. package/src/icons/sidebar/repair-object-icon.vue +18 -18
  98. package/src/icons/sidebar/repairs-icon.vue +20 -20
  99. package/src/icons/sidebar/roles-icon.vue +26 -26
  100. package/src/icons/sidebar/status-history-icon.vue +24 -24
  101. package/src/icons/sidebar/tasks-icon.vue +28 -28
  102. package/src/icons/sidebar/tasks_tasks-icon.vue +39 -39
  103. package/src/icons/sidebar/tasks_today-icon.vue +27 -27
  104. package/src/icons/sidebar/teams-icon.vue +32 -32
  105. package/src/icons/sidebar/user-icon.vue +18 -18
  106. package/src/icons/sidebar/users-icon.vue +46 -46
  107. package/src/icons/sidebar/videosources-icon.vue +19 -19
  108. package/src/icons/sidebar/videowall-icon.vue +13 -13
  109. package/src/icons/sidebar/videozones-icon.vue +21 -21
  110. package/src/icons/sidebar/warehouses-icon.vue +43 -43
  111. package/src/icons/sidebar/workshop-icon.vue +100 -100
  112. package/src/icons/sidebar/workzones-icon.vue +22 -22
  113. package/src/icons/task/attention-icon.vue +13 -13
  114. package/src/icons/task/clock-icon.vue +10 -10
  115. package/src/icons/task/delete-icon.vue +10 -10
  116. package/src/icons/task/fire-icon.vue +16 -16
  117. package/src/index.ts +122 -122
  118. package/src/main.ts +28 -28
  119. package/src/quasar-user-options.ts +17 -17
  120. package/src/router/index.ts +10 -10
  121. package/src/shared/styles/general.css +124 -124
  122. package/src/shims-vue.d.ts +5 -5
  123. package/src/styles/variables.sass +12 -12
  124. package/src/utils/confirm.ts +12 -12
  125. package/src/utils/faceApiHelper.ts +137 -137
  126. package/src/utils/helpers.ts +59 -59
  127. package/src/utils/notification.ts +9 -9
  128. package/dist/types/api/services/PhotoService.d.ts +0 -40
@@ -1880,10 +1880,10 @@ const St = Ge({
1880
1880
  emits: ["update:modelValue", "click"],
1881
1881
  setup(e, { emit: n }) {
1882
1882
  Ta((s) => ({
1883
- "6ebd44ce": s.width,
1884
- "31bb5bb4": s.height,
1885
- "2efce8ab": s.borderRadius,
1886
- d3196ae6: s.borderWidth
1883
+ "653f50d4": s.width,
1884
+ "28dbcfd9": s.height,
1885
+ "463ced10": s.borderRadius,
1886
+ "449ea588": s.borderWidth
1887
1887
  }));
1888
1888
  const t = e, r = n;
1889
1889
  function o(s) {
@@ -4405,7 +4405,7 @@ const xy = {
4405
4405
  ])
4406
4406
  ]));
4407
4407
  }
4408
- }), AA = /* @__PURE__ */ Fe(ky, [["__scopeId", "data-v-a3ab30e6"]]), ed = {
4408
+ }), AA = /* @__PURE__ */ Fe(ky, [["__scopeId", "data-v-41286752"]]), ed = {
4409
4409
  left: !0,
4410
4410
  right: !0,
4411
4411
  up: !0,
@@ -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-c24941bd"]]), Jy = { class: "datepicker" }, eb = /* @__PURE__ */ Ft({
6208
+ }), Zy = /* @__PURE__ */ Fe(Qy, [["__scopeId", "data-v-123be192"]]), Jy = { class: "datepicker" }, eb = /* @__PURE__ */ Ft({
6209
6209
  __name: "AppDatepicker",
6210
6210
  props: /* @__PURE__ */ Sf({
6211
6211
  label: {},
@@ -6312,7 +6312,7 @@ const Ky = { class: "app-input-new" }, Xy = {
6312
6312
  }, 8, ["modelValue", "label", "required", "rules", "error", "disable"])
6313
6313
  ]));
6314
6314
  }
6315
- }), MA = /* @__PURE__ */ Fe(eb, [["__scopeId", "data-v-f8bab635"]]), tb = /* @__PURE__ */ Ft({
6315
+ }), MA = /* @__PURE__ */ Fe(eb, [["__scopeId", "data-v-e9329b55"]]), tb = /* @__PURE__ */ Ft({
6316
6316
  __name: "AppInput",
6317
6317
  props: {
6318
6318
  field: { type: Boolean },
@@ -6386,7 +6386,7 @@ const Ky = { class: "app-input-new" }, Xy = {
6386
6386
  emits: ["update:modelValue", "button-click", "clear", "focus", "blur", "click"],
6387
6387
  setup(e, { emit: n }) {
6388
6388
  Ta((u) => ({
6389
- "542fbebd": u.height
6389
+ "2cd26a79": u.height
6390
6390
  }));
6391
6391
  const t = e, r = n, o = Y(!1), a = k(() => t.type === "password" ? o.value ? "text" : "password" : t.type || "text"), i = k({
6392
6392
  get: () => t.modelValue !== null && t.modelValue !== void 0 && t.type === "number" ? +t.modelValue : t.modelValue,
@@ -6493,8 +6493,8 @@ const Ky = { class: "app-input-new" }, Xy = {
6493
6493
  emits: ["update:modelValue", "button-click", "clear", "focus", "blur", "click"],
6494
6494
  setup(e, { emit: n }) {
6495
6495
  Ta((i) => ({
6496
- "33b606d4": i.borderRadius,
6497
- f2e6e6c6: i.height
6496
+ "37f45cbd": i.borderRadius,
6497
+ "5617c546": i.height
6498
6498
  }));
6499
6499
  const t = e, r = n, o = k({
6500
6500
  get: () => t.modelValue !== null && t.modelValue !== void 0 && t.type === "number" ? +t.modelValue : t.modelValue,
@@ -6858,7 +6858,7 @@ const $v = typeof ResizeObserver < "u", dh = $v === !0 ? {} : {
6858
6858
  }, null, 8, ["size", "thickness"])) : Je("", !0)
6859
6859
  ], 2));
6860
6860
  }
6861
- }), fb = /* @__PURE__ */ Fe(db, [["__scopeId", "data-v-9f8ceae1"]]), hb = /* @__PURE__ */ Ft({
6861
+ }), fb = /* @__PURE__ */ Fe(db, [["__scopeId", "data-v-ef7a12f8"]]), hb = /* @__PURE__ */ Ft({
6862
6862
  __name: "AppLayout",
6863
6863
  props: {
6864
6864
  logged: { type: Boolean },
@@ -8071,8 +8071,8 @@ const Xw = /* @__PURE__ */ Fe(jw, [["render", Kw]]), Yw = /* @__PURE__ */ Ft({
8071
8071
  },
8072
8072
  setup(e) {
8073
8073
  Ta((o) => ({
8074
- f542c750: o.color,
8075
- "07daff28": o.size
8074
+ f22687d6: o.color,
8075
+ "6ada15e2": o.size
8076
8076
  }));
8077
8077
  const n = e;
8078
8078
  function t(o) {
@@ -8288,7 +8288,7 @@ function px(e, n) {
8288
8288
  _: 3
8289
8289
  });
8290
8290
  }
8291
- const NA = /* @__PURE__ */ Fe(hx, [["render", px], ["__scopeId", "data-v-51e4160c"]]), vx = {
8291
+ const NA = /* @__PURE__ */ Fe(hx, [["render", px], ["__scopeId", "data-v-27ae3e79"]]), vx = {
8292
8292
  xs: 8,
8293
8293
  sm: 10,
8294
8294
  md: 14,
@@ -9597,7 +9597,7 @@ const cd = Ge({
9597
9597
  emits: ["update:modelValue"],
9598
9598
  setup(e, { emit: n }) {
9599
9599
  Ta((c) => ({
9600
- "5e128078": c.borderColor
9600
+ e2d84852: c.borderColor
9601
9601
  }));
9602
9602
  const t = e, r = Y({}), o = n, a = k({
9603
9603
  get() {
@@ -9740,7 +9740,7 @@ const cd = Ge({
9740
9740
  emits: ["update:dialogRef", "update:currentTabName"],
9741
9741
  setup(e, { emit: n }) {
9742
9742
  Ta((a) => ({
9743
- d2a8bdba: a.width
9743
+ "65b71d32": a.width
9744
9744
  }));
9745
9745
  const t = e, r = n, o = k({
9746
9746
  get() {
@@ -9811,7 +9811,7 @@ const cd = Ge({
9811
9811
  "sheet-dialog": "_sheet-dialog_1rkva_1"
9812
9812
  }, Bx = {
9813
9813
  $style: Fx
9814
- }, qA = /* @__PURE__ */ Fe(Px, [["__cssModules", Bx], ["__scopeId", "data-v-56bffd8b"]]);
9814
+ }, qA = /* @__PURE__ */ Fe(Px, [["__cssModules", Bx], ["__scopeId", "data-v-375b9c58"]]);
9815
9815
  let Ox = 0;
9816
9816
  const Nx = ["click", "keydown"], Lx = {
9817
9817
  icon: String,
@@ -10344,7 +10344,7 @@ const $x = ["left", "center", "right", "justify"], Wx = Ge({
10344
10344
  tab: Qx
10345
10345
  }, Jx = {
10346
10346
  $style: Zx
10347
- }, VA = /* @__PURE__ */ Fe(Yx, [["__cssModules", Jx], ["__scopeId", "data-v-63306fe5"]]), mh = 150, eC = Ge({
10347
+ }, VA = /* @__PURE__ */ Fe(Yx, [["__cssModules", Jx], ["__scopeId", "data-v-14857b70"]]), mh = 150, eC = Ge({
10348
10348
  name: "QDrawer",
10349
10349
  inheritAttrs: !1,
10350
10350
  props: {
@@ -11022,7 +11022,7 @@ const $x = ["left", "center", "right", "justify"], Wx = Ge({
11022
11022
  "menu-item__label": "_menu-item__label_fkijr_18"
11023
11023
  }, iC = {
11024
11024
  $style: aC
11025
- }, sC = /* @__PURE__ */ Fe(oC, [["__cssModules", iC], ["__scopeId", "data-v-f6a202a4"]]), uC = /* @__PURE__ */ Ft({
11025
+ }, sC = /* @__PURE__ */ Fe(oC, [["__cssModules", iC], ["__scopeId", "data-v-8438fdd9"]]), uC = /* @__PURE__ */ Ft({
11026
11026
  __name: "SidebarMenu",
11027
11027
  props: {
11028
11028
  menuItems: {},
@@ -11267,7 +11267,7 @@ function xC(e, n) {
11267
11267
  nn(e.$slots, "default", {}, void 0, !0)
11268
11268
  ]);
11269
11269
  }
11270
- const WA = /* @__PURE__ */ Fe(bC, [["render", xC], ["__scopeId", "data-v-f769f373"]]), Ss = Ge({
11270
+ const WA = /* @__PURE__ */ Fe(bC, [["render", xC], ["__scopeId", "data-v-7e325751"]]), Ss = Ge({
11271
11271
  name: "QCardSection",
11272
11272
  props: {
11273
11273
  tag: {
@@ -11629,7 +11629,7 @@ const $C = Ge({
11629
11629
  _: 3
11630
11630
  }, 8, ["color", "content-style"]));
11631
11631
  }
11632
- }), UA = /* @__PURE__ */ Fe(WC, [["__scopeId", "data-v-2bcc638c"]]), HC = { class: "table-pagination" }, UC = ["disabled"], jC = { class: "pages" }, GC = ["disabled", "onClick"], KC = ["disabled"], XC = /* @__PURE__ */ Ft({
11632
+ }), UA = /* @__PURE__ */ Fe(WC, [["__scopeId", "data-v-729e08a0"]]), HC = { class: "table-pagination" }, UC = ["disabled"], jC = { class: "pages" }, GC = ["disabled", "onClick"], KC = ["disabled"], XC = /* @__PURE__ */ Ft({
11633
11633
  __name: "TablePagination",
11634
11634
  props: {
11635
11635
  modelValue: {},
@@ -11694,7 +11694,7 @@ const $C = Ge({
11694
11694
  ], 8, KC)
11695
11695
  ]));
11696
11696
  }
11697
- }), YC = /* @__PURE__ */ Fe(XC, [["__scopeId", "data-v-9db9f6f7"]]), QC = /* @__PURE__ */ Ft({
11697
+ }), YC = /* @__PURE__ */ Fe(XC, [["__scopeId", "data-v-73335c1c"]]), QC = /* @__PURE__ */ Ft({
11698
11698
  __name: "TableSearch",
11699
11699
  props: {
11700
11700
  modelValue: {},
@@ -12061,7 +12061,7 @@ const $C = Ge({
12061
12061
  ], 64);
12062
12062
  };
12063
12063
  }
12064
- }), s_ = /* @__PURE__ */ Fe(i_, [["__scopeId", "data-v-d70e00a1"]]), u_ = { class: "modal-title" }, l_ = {
12064
+ }), s_ = /* @__PURE__ */ Fe(i_, [["__scopeId", "data-v-2e33c030"]]), u_ = { class: "modal-title" }, l_ = {
12065
12065
  key: 0,
12066
12066
  class: "field-label"
12067
12067
  }, c_ = {
@@ -12287,7 +12287,7 @@ const $C = Ge({
12287
12287
  _: 1
12288
12288
  }, 8, ["model-value"]));
12289
12289
  }
12290
- }), jA = /* @__PURE__ */ Fe(d_, [["__scopeId", "data-v-b137510f"]]), gh = Ge({
12290
+ }), jA = /* @__PURE__ */ Fe(d_, [["__scopeId", "data-v-20ca776a"]]), gh = Ge({
12291
12291
  name: "QTd",
12292
12292
  props: {
12293
12293
  props: Object,
@@ -14232,7 +14232,7 @@ const G_ = /* @__PURE__ */ Fe(H_, [["render", j_]]), K_ = {
14232
14232
  ]), 1032, ["selected", "rows", "columns", "selection", "table-row-style-fn"])
14233
14233
  ]));
14234
14234
  }
14235
- }), ok = /* @__PURE__ */ Fe(rk, [["__scopeId", "data-v-3e02d553"]]), ak = {
14235
+ }), ok = /* @__PURE__ */ Fe(rk, [["__scopeId", "data-v-2d5bb0a7"]]), ak = {
14236
14236
  key: 0,
14237
14237
  class: "table-controls"
14238
14238
  }, ik = { class: "table-wrapper" }, sk = {
@@ -14306,7 +14306,7 @@ const G_ = /* @__PURE__ */ Fe(H_, [["render", j_]]), K_ = {
14306
14306
  "modal" in Er(o) ? nn(u.$slots, "modal", { key: 2 }, void 0, !0) : Je("", !0)
14307
14307
  ], 2));
14308
14308
  }
14309
- }), GA = /* @__PURE__ */ Fe(uk, [["__scopeId", "data-v-1b7ee59f"]]);
14309
+ }), GA = /* @__PURE__ */ Fe(uk, [["__scopeId", "data-v-75397446"]]);
14310
14310
  function em(e, n) {
14311
14311
  return function() {
14312
14312
  return e.apply(n, arguments);
@@ -14615,8 +14615,6 @@ function lu(e, n, t) {
14615
14615
  if (p === null) return "";
14616
14616
  if (te.isDate(p))
14617
14617
  return p.toISOString();
14618
- if (te.isBoolean(p))
14619
- return p.toString();
14620
14618
  if (!u && te.isBlob(p))
14621
14619
  throw new ut("Blob is not supported. Use a Buffer instead.");
14622
14620
  return te.isArrayBuffer(p) || te.isTypedArray(p) ? u && typeof Blob == "function" ? new Blob([p]) : Buffer.from(p) : p;
@@ -15537,7 +15535,7 @@ const D3 = async (e) => {
15537
15535
  duplex: "half",
15538
15536
  credentials: y ? d : void 0
15539
15537
  });
15540
- let b = await fetch(p, f);
15538
+ let b = await fetch(p);
15541
15539
  const w = dc && (l === "stream" || l === "response");
15542
15540
  if (dc && (s || w && m)) {
15543
15541
  const x = {};
@@ -15642,7 +15640,7 @@ function Bh(e) {
15642
15640
  ), r.response.headers = Ln.from(r.response.headers))), Promise.reject(r);
15643
15641
  });
15644
15642
  }
15645
- const Cm = "1.10.0", du = {};
15643
+ const Cm = "1.9.0", du = {};
15646
15644
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, n) => {
15647
15645
  du[e] = function(r) {
15648
15646
  return typeof r === e || "a" + (n < 1 ? "n " : " ") + e;
@@ -16447,6 +16445,9 @@ class j3 extends Dn {
16447
16445
  reloadVideoAnalytics(n) {
16448
16446
  return this.post("/horizon/video-source/reload", { video_source_ids: n });
16449
16447
  }
16448
+ hardReloadStream() {
16449
+ return this.post("horizon/video-source/streams/add", null);
16450
+ }
16450
16451
  async fetchWorkZones(n) {
16451
16452
  return await this.get("/search/work_zones", { params: n });
16452
16453
  }