@deskhero/dh_ui 2.5.3 → 2.5.4

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/dh_ui.es.js CHANGED
@@ -16847,11 +16847,6 @@ const QL = Je({
16847
16847
  inactiveColor: "#e0e0e0"
16848
16848
  };
16849
16849
  },
16850
- watch: {
16851
- modelValue(i) {
16852
- this.max = this.numberRange.findIndex((n) => n.key == i.maxKey), this.min = this.numberRange.findIndex((n) => n.key == i.minKey);
16853
- }
16854
- },
16855
16850
  computed: {
16856
16851
  getRangeLength() {
16857
16852
  return this.numberRange.length;
@@ -16878,6 +16873,11 @@ const QL = Je({
16878
16873
  return this.numberRange.length - 1;
16879
16874
  }
16880
16875
  },
16876
+ watch: {
16877
+ modelValue(i) {
16878
+ this.max = this.numberRange.findIndex((n) => n.key == i.maxKey), this.min = this.numberRange.findIndex((n) => n.key == i.minKey);
16879
+ }
16880
+ },
16881
16881
  mounted() {
16882
16882
  this.setChartData(this.numberRange), this.isDisable && this.missingFilter(), this.$props.modelValue && (this.max = this.numberRange.findIndex(
16883
16883
  (i) => i.key === this.$props.modelValue.maxKey
@@ -17006,7 +17006,7 @@ function GL(i, n, e, r, t, o) {
17006
17006
  }, "Apply")
17007
17007
  ]);
17008
17008
  }
17009
- const WL = /* @__PURE__ */ Tt(QL, [["render", GL], ["__scopeId", "data-v-35618d1c"]]);
17009
+ const WL = /* @__PURE__ */ Tt(QL, [["render", GL], ["__scopeId", "data-v-24631dd5"]]);
17010
17010
  const wy = (i) => (Pd("data-v-3dba4cb5"), i = i(), Rd(), i), VL = { id: "dp-container" }, HL = /* @__PURE__ */ wy(() => /* @__PURE__ */ V("div", { class: "dp__calendar_range" }, [
17011
17011
  /* @__PURE__ */ V("p", null, "From"),
17012
17012
  /* @__PURE__ */ V("p", null, "To")
@@ -17710,8 +17710,8 @@ const hd = /* @__PURE__ */ Tt(E2, [["__scopeId", "data-v-3eb62ad6"]]), S2 = ["da
17710
17710
  setup(i, { emit: n }) {
17711
17711
  const e = i;
17712
17712
  cs((o) => ({
17713
- "5c981d2f": i.minWidth,
17714
- "9deb6dea": i.width
17713
+ "20988fa6": i.minWidth,
17714
+ "5040c1f4": i.width
17715
17715
  })), ot(() => {
17716
17716
  document.addEventListener("click", (o) => {
17717
17717
  r(o);
@@ -17748,9 +17748,9 @@ const hd = /* @__PURE__ */ Tt(E2, [["__scopeId", "data-v-3eb62ad6"]]), S2 = ["da
17748
17748
  Oe(hd, {
17749
17749
  "icon-size": i.iconSize,
17750
17750
  item: u,
17751
- "text-ellipsis-style": i.textEllipsisStyle,
17752
- "max-width": i.maxWidth
17753
- }, null, 8, ["icon-size", "item", "text-ellipsis-style", "max-width"])
17751
+ "max-width": i.maxWidth,
17752
+ "text-ellipsis-style": i.textEllipsisStyle
17753
+ }, null, 8, ["icon-size", "item", "max-width", "text-ellipsis-style"])
17754
17754
  ]),
17755
17755
  _: 2
17756
17756
  }, 1032, ["class", "to"])) : (W(), F("div", {
@@ -17760,16 +17760,16 @@ const hd = /* @__PURE__ */ Tt(E2, [["__scopeId", "data-v-3eb62ad6"]]), S2 = ["da
17760
17760
  Oe(hd, {
17761
17761
  "icon-size": i.iconSize,
17762
17762
  item: u,
17763
- "text-ellipsis-style": i.textEllipsisStyle,
17764
- "max-width": i.maxWidth
17765
- }, null, 8, ["icon-size", "item", "text-ellipsis-style", "max-width"])
17763
+ "max-width": i.maxWidth,
17764
+ "text-ellipsis-style": i.textEllipsisStyle
17765
+ }, null, 8, ["icon-size", "item", "max-width", "text-ellipsis-style"])
17766
17766
  ], 2))
17767
17767
  ], 8, S2))), 128))
17768
17768
  ], 4);
17769
17769
  };
17770
17770
  }
17771
17771
  });
17772
- const Ek = /* @__PURE__ */ Tt(C2, [["__scopeId", "data-v-1e5d3478"]]), Q2 = {
17772
+ const Ek = /* @__PURE__ */ Tt(C2, [["__scopeId", "data-v-34e5ce8a"]]), Q2 = {
17773
17773
  key: 0,
17774
17774
  class: "invalid-feedback"
17775
17775
  }, Sk = /* @__PURE__ */ Je({
@@ -17857,8 +17857,8 @@ const Y2 = { class: "dh-body-1-medium" }, U2 = /* @__PURE__ */ Nt(" Content "),
17857
17857
  ], 64)) : J("", !0),
17858
17858
  n.type === "regular" ? (W(), F("div", _2, [
17859
17859
  V("button", {
17860
- onClick: u[1] || (u[1] = (l) => o()),
17861
- class: "panel-button"
17860
+ class: "panel-button",
17861
+ onClick: u[1] || (u[1] = (l) => o())
17862
17862
  }, [
17863
17863
  V("h4", P2, ye(i.title), 1),
17864
17864
  V("div", R2, [
@@ -17871,9 +17871,9 @@ const Y2 = { class: "dh-body-1-medium" }, U2 = /* @__PURE__ */ Nt(" Content "),
17871
17871
  ]),
17872
17872
  e.value ? (W(), F("div", {
17873
17873
  key: 0,
17874
- class: "panel",
17875
17874
  ref_key: "contentRef",
17876
17875
  ref: r,
17876
+ class: "panel",
17877
17877
  style: wt({
17878
17878
  height: t.value > 0 ? t.value + "px" : 0
17879
17879
  })
@@ -17884,7 +17884,7 @@ const Y2 = { class: "dh-body-1-medium" }, U2 = /* @__PURE__ */ Nt(" Content "),
17884
17884
  ], 64));
17885
17885
  }
17886
17886
  });
17887
- const Ck = /* @__PURE__ */ Tt(B2, [["__scopeId", "data-v-19c94df2"]]);
17887
+ const Ck = /* @__PURE__ */ Tt(B2, [["__scopeId", "data-v-7319184b"]]);
17888
17888
  const Z2 = /* @__PURE__ */ V("label", { for: "upload_pdf" }, [
17889
17889
  /* @__PURE__ */ Nt(" Drag and drop file or "),
17890
17890
  /* @__PURE__ */ V("span", { id: "upload" }, "browse")
@@ -17993,6 +17993,11 @@ const Z2 = /* @__PURE__ */ V("label", { for: "upload_pdf" }, [
17993
17993
  type: Number,
17994
17994
  required: !1,
17995
17995
  default: 99
17996
+ },
17997
+ fieldIndex: {
17998
+ type: Number,
17999
+ required: !1,
18000
+ default: 0
17996
18001
  }
17997
18002
  },
17998
18003
  emits: ["update:modelValue", "reload"],
@@ -18044,7 +18049,7 @@ const Z2 = /* @__PURE__ */ V("label", { for: "upload_pdf" }, [
18044
18049
  const A = r.value.files[L];
18045
18050
  o.value.push(A);
18046
18051
  }
18047
- o.value && (t.value = !0), n("update:modelValue", o.value, a.value);
18052
+ o.value && (t.value = !0), n("update:modelValue", o.value, a.value, e.fieldIndex);
18048
18053
  }
18049
18054
  function N(z) {
18050
18055
  z.stopPropagation(), z.dataTransfer.dropEffect = "copy";
@@ -18055,7 +18060,7 @@ const Z2 = /* @__PURE__ */ V("label", { for: "upload_pdf" }, [
18055
18060
  const A = z.dataTransfer.files[L];
18056
18061
  o.value.push(A);
18057
18062
  }
18058
- n("update:modelValue", o.value, a.value);
18063
+ n("update:modelValue", o.value, a.value, e.fieldIndex);
18059
18064
  }
18060
18065
  function x(z) {
18061
18066
  window.confirm(e.deleteConfirmationText) && D(z);
@@ -18064,7 +18069,7 @@ const Z2 = /* @__PURE__ */ V("label", { for: "upload_pdf" }, [
18064
18069
  window.confirm(e.deleteConfirmationText) && j(z);
18065
18070
  }
18066
18071
  function j(z) {
18067
- a.value.push(z), n("update:modelValue", o.value, a.value);
18072
+ a.value.push(z), n("update:modelValue", o.value, a.value, e.fieldIndex);
18068
18073
  }
18069
18074
  function D(z) {
18070
18075
  const L = new DataTransfer();
@@ -36841,14 +36846,14 @@ const pw = {
36841
36846
  V("div", Dw, [
36842
36847
  Oe(K(Ye), {
36843
36848
  active: !0,
36844
- "icon-name": "accept",
36845
36849
  alt: "Accept Suggestion",
36850
+ "icon-name": "accept",
36846
36851
  onClick: h[0] || (h[0] = (z) => D())
36847
36852
  }),
36848
36853
  Oe(K(Ye), {
36849
36854
  active: !0,
36850
- "icon-name": "close",
36851
36855
  alt: "Dismiss Suggestion",
36856
+ "icon-name": "close",
36852
36857
  onClick: h[1] || (h[1] = (z) => j())
36853
36858
  })
36854
36859
  ])