@cobre-npm/ds-v3 0.67.0 → 0.67.2

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.
@@ -1771,10 +1771,10 @@ const k3 = /* @__PURE__ */ Le(uh, [["render", ph], ["__scopeId", "data-v-f0bb42d
1771
1771
  __name: "CobreUploader",
1772
1772
  props: {
1773
1773
  currentFileType: {},
1774
+ allowedExtensions: {},
1774
1775
  fileUpload: {},
1775
1776
  uploadFromDeviceLabel: {},
1776
1777
  maxSizeLabel: {},
1777
- currentExtension: {},
1778
1778
  disabled: { type: Boolean, default: !1 },
1779
1779
  dragFileLabel: {},
1780
1780
  isLoading: { type: Boolean, default: !1 },
@@ -1793,7 +1793,9 @@ const k3 = /* @__PURE__ */ Le(uh, [["render", ph], ["__scopeId", "data-v-f0bb42d
1793
1793
  o.disabled || a("files-dropped", f.dataTransfer.files[0]);
1794
1794
  }, l = (f) => {
1795
1795
  o.disabled || a("files-input", f.target.files[0]);
1796
- }, c = () => a("deleted-file"), u = () => {
1796
+ }, c = () => {
1797
+ o.disabled || a("deleted-file");
1798
+ }, u = () => {
1797
1799
  var m;
1798
1800
  const f = (m = o.fileUpload) == null ? void 0 : m.size;
1799
1801
  return (f / d(f).divide || 0).toFixed(1);
@@ -1825,7 +1827,7 @@ const k3 = /* @__PURE__ */ Le(uh, [["render", ph], ["__scopeId", "data-v-f0bb42d
1825
1827
  class: "w-100 h-100 opacity-0 position-absolute input-file co-cursor-pointer co-uploader",
1826
1828
  type: "file",
1827
1829
  multiple: !1,
1828
- accept: (_ = f.currentFileType) == null ? void 0 : _.extensions,
1830
+ accept: ((_ = f.currentFileType) == null ? void 0 : _.extensions) || f.allowedExtensions,
1829
1831
  onChange: m[0] || (m[0] = (g) => l(g))
1830
1832
  }, null, 40, Dh),
1831
1833
  f.fileUpload ? M("", !0) : (p(), C("div", {
@@ -1854,27 +1856,27 @@ const k3 = /* @__PURE__ */ Le(uh, [["render", ph], ["__scopeId", "data-v-f0bb42d
1854
1856
  i.value === "csv" ? (p(), C("img", {
1855
1857
  key: 0,
1856
1858
  src: Ch,
1857
- alt: f.currentExtension,
1859
+ alt: i.value,
1858
1860
  width: "40",
1859
1861
  height: "40"
1860
1862
  }, null, 8, Sh)) : M("", !0),
1861
1863
  i.value === "json" ? (p(), C("img", {
1862
1864
  key: 1,
1863
1865
  src: Th,
1864
- alt: f.currentExtension,
1866
+ alt: i.value,
1865
1867
  width: "40",
1866
1868
  height: "40"
1867
1869
  }, null, 8, Ih)) : M("", !0),
1868
1870
  i.value === "txt" ? (p(), C("img", {
1869
1871
  key: 2,
1870
1872
  src: kh,
1871
- alt: f.currentExtension,
1873
+ alt: i.value,
1872
1874
  width: "40",
1873
1875
  height: "40"
1874
1876
  }, null, 8, Lh)) : i.value === "xlsx" ? (p(), C("img", {
1875
1877
  key: 3,
1876
1878
  src: Eh,
1877
- alt: f.currentExtension,
1879
+ alt: i.value,
1878
1880
  width: "40",
1879
1881
  height: "40"
1880
1882
  }, null, 8, Nh)) : M("", !0),
@@ -1886,7 +1888,7 @@ const k3 = /* @__PURE__ */ Le(uh, [["render", ph], ["__scopeId", "data-v-f0bb42d
1886
1888
  f.isLoading ? (p(), C("span", Fh)) : ze((p(), C("i", {
1887
1889
  key: 1,
1888
1890
  "data-bs-toggle": "tooltip",
1889
- "data-bs-original-title": f.deleteFileTooltip,
1891
+ "data-bs-original-title": f.disabled ? "" : f.deleteFileTooltip,
1890
1892
  class: "icon-trash-2 co-cursor-pointer co-label co-text-red-50",
1891
1893
  onClick: c
1892
1894
  }, null, 8, Yh)), [
@@ -1897,7 +1899,7 @@ const k3 = /* @__PURE__ */ Le(uh, [["render", ph], ["__scopeId", "data-v-f0bb42d
1897
1899
  ]);
1898
1900
  };
1899
1901
  }
1900
- }), $3 = /* @__PURE__ */ Le(Hh, [["__scopeId", "data-v-5501ff9e"]]), Wh = { class: "d-flex" }, Uh = {
1902
+ }), $3 = /* @__PURE__ */ Le(Hh, [["__scopeId", "data-v-5bbe5be8"]]), Wh = { class: "d-flex" }, Uh = {
1901
1903
  key: 1,
1902
1904
  class: "mb-0"
1903
1905
  }, jh = ["src"], qh = {