shared-ritm 1.3.28 → 1.3.30

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.
@@ -12345,10 +12345,7 @@ const yk = je({
12345
12345
  ], 64);
12346
12346
  };
12347
12347
  }
12348
- }), Ok = /* @__PURE__ */ De(Bk, [["__scopeId", "data-v-a3055852"]]), Nk = { class: "modal-title" }, Lk = {
12349
- key: 0,
12350
- class: "field-label"
12351
- }, qk = {
12348
+ }), Ok = /* @__PURE__ */ De(Bk, [["__scopeId", "data-v-a3055852"]]), Nk = { class: "modal-title" }, Lk = ["data-test"], qk = {
12352
12349
  key: 0,
12353
12350
  class: "required"
12354
12351
  }, Vk = /* @__PURE__ */ Dt({
@@ -12451,14 +12448,19 @@ const yk = je({
12451
12448
  key: b.key,
12452
12449
  class: "field-wrapper"
12453
12450
  }, [
12454
- b.type === "text" ? (Y(), ye("label", Lk, [
12451
+ b.type === "text" ? (Y(), ye("label", {
12452
+ key: 0,
12453
+ "data-test": `${b.key}-label`,
12454
+ class: "field-label"
12455
+ }, [
12455
12456
  Wt(pt(b.label) + " ", 1),
12456
12457
  (w = b.rules) != null && w.length && e.mode !== "view" ? (Y(), ye("span", qk, "*")) : We("", !0)
12457
- ])) : We("", !0),
12458
+ ], 8, Lk)) : We("", !0),
12458
12459
  b.type === "text" ? (Y(), Ae(za, {
12459
12460
  key: 1,
12460
12461
  modelValue: i.value[b.key],
12461
12462
  "onUpdate:modelValue": (g) => i.value[b.key] = g,
12463
+ "data-test": `${b.key}-input`,
12462
12464
  rules: b.rules,
12463
12465
  readonly: e.mode === "view" || b.key === "uuid" && e.mode === "edit",
12464
12466
  filled: "",
@@ -12488,10 +12490,11 @@ const yk = je({
12488
12490
  }, null, 8, ["onClick"])) : We("", !0)
12489
12491
  ]),
12490
12492
  _: 2
12491
- }, 1032, ["modelValue", "onUpdate:modelValue", "rules", "readonly", "placeholder"])) : b.type === "select" ? (Y(), Ae(Ok, {
12493
+ }, 1032, ["modelValue", "onUpdate:modelValue", "data-test", "rules", "readonly", "placeholder"])) : b.type === "select" ? (Y(), Ae(Ok, {
12492
12494
  key: 2,
12493
12495
  modelValue: i.value[b.key],
12494
12496
  "onUpdate:modelValue": (g) => i.value[b.key] = g,
12497
+ "data-test": `${b.key}-select`,
12495
12498
  options: s.value[b.key] || b.options,
12496
12499
  rules: b.rules,
12497
12500
  placeholder: e.mode === "view" ? "" : b.placeholder,
@@ -12519,7 +12522,7 @@ const yk = je({
12519
12522
  return (g = a.value.value) == null ? void 0 : g.validate();
12520
12523
  });
12521
12524
  }
12522
- }, null, 8, ["modelValue", "onUpdate:modelValue", "options", "rules", "placeholder", "is-disabled", "loading", "label", "is-show-required", "onUpdate:search", "onUpdate:scroll", "onClear"])) : We("", !0)
12525
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "data-test", "options", "rules", "placeholder", "is-disabled", "loading", "label", "is-show-required", "onUpdate:search", "onUpdate:scroll", "onClear"])) : We("", !0)
12523
12526
  ]);
12524
12527
  }), 128))
12525
12528
  ]),
@@ -12533,6 +12536,7 @@ const yk = je({
12533
12536
  e.mode === "view" ? (Y(), Ae(Et, {
12534
12537
  key: 0,
12535
12538
  class: "remove",
12539
+ "data-test": "remove-button",
12536
12540
  flat: "",
12537
12541
  label: "Удалить",
12538
12542
  loading: e.loading,
@@ -12541,6 +12545,7 @@ const yk = je({
12541
12545
  e.mode !== "view" ? (Y(), Ae(Et, {
12542
12546
  key: 1,
12543
12547
  class: "confirm",
12548
+ "data-test": "save-create-button",
12544
12549
  flat: "",
12545
12550
  label: e.mode === "edit" ? "Сохранить" : "Создать",
12546
12551
  disable: u.value,
@@ -12549,6 +12554,7 @@ const yk = je({
12549
12554
  }, null, 8, ["label", "disable", "loading"])) : (Y(), Ae(Et, {
12550
12555
  key: 2,
12551
12556
  class: "confirm",
12557
+ "data-test": "edit-button",
12552
12558
  flat: "",
12553
12559
  label: "Редактировать",
12554
12560
  disable: e.loading,
@@ -12556,6 +12562,7 @@ const yk = je({
12556
12562
  }, null, 8, ["disable"])),
12557
12563
  xe(Et, {
12558
12564
  class: "cancel",
12565
+ "data-test": "cancel-button",
12559
12566
  flat: "",
12560
12567
  label: "Закрыть",
12561
12568
  disable: e.loading,
@@ -12571,7 +12578,7 @@ const yk = je({
12571
12578
  _: 1
12572
12579
  }, 8, ["model-value"]));
12573
12580
  }
12574
- }), AD = /* @__PURE__ */ De(Vk, [["__scopeId", "data-v-8db97d83"]]), Rh = je({
12581
+ }), AD = /* @__PURE__ */ De(Vk, [["__scopeId", "data-v-86132b60"]]), Rh = je({
12575
12582
  name: "QTd",
12576
12583
  props: {
12577
12584
  props: Object,
@@ -16815,6 +16822,10 @@ class wS extends kn {
16815
16822
  async fetchGanttList(n) {
16816
16823
  return await this.get(`/list/tasks/search?${n}&gantt=1`);
16817
16824
  }
16825
+ async setFixPlan(n) {
16826
+ const t = new URLSearchParams();
16827
+ return t.append("projects[0]", n), t.append("filter[state]", "1"), await this.post(`/gantt/set-planned-date?${t.toString()}`, null);
16828
+ }
16818
16829
  }
16819
16830
  let hl;
16820
16831
  function ZD() {
@@ -17248,6 +17259,10 @@ class RS extends kn {
17248
17259
  async deleteFrameFromVideo(n) {
17249
17260
  await this.delete(`horizon/video-source/delete/fragment/video/training/${n}`);
17250
17261
  }
17262
+ // Для тестирования ws видеостены
17263
+ async sendEvent(n) {
17264
+ return await this.post("alerts_callback_url", n);
17265
+ }
17251
17266
  }
17252
17267
  let wl;
17253
17268
  function aM() {
@@ -37046,7 +37061,18 @@ function yM(e, n = []) {
37046
37061
  disable: n.includes(i.name)
37047
37062
  }))
37048
37063
  },
37049
- cancel: !0,
37064
+ cancel: {
37065
+ label: "Отмена",
37066
+ attrs: {
37067
+ "data-test": "cancel-button"
37068
+ }
37069
+ },
37070
+ ok: {
37071
+ label: "Ок",
37072
+ attrs: {
37073
+ "data-test": "ok-button"
37074
+ }
37075
+ },
37050
37076
  persistent: !0
37051
37077
  }).onOk((i) => {
37052
37078
  t.value = Array.from(/* @__PURE__ */ new Set([...i, ...n]));