@stlhorizon/vue-ui 3.11.4 → 3.11.5

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/index.esm.js CHANGED
@@ -15731,6 +15731,10 @@ const Bh = /* @__PURE__ */ nt(mh, [["render", Oh]]), Mh = {
15731
15731
  apiConfig: {
15732
15732
  type: Object,
15733
15733
  default: () => ({})
15734
+ },
15735
+ data: {
15736
+ type: Array,
15737
+ default: () => []
15734
15738
  }
15735
15739
  },
15736
15740
  setup(e) {
@@ -15739,6 +15743,13 @@ const Bh = /* @__PURE__ */ nt(mh, [["render", Oh]]), Mh = {
15739
15743
  return u.value === 0 ? 0 : z / u.value * 80;
15740
15744
  }
15741
15745
  async function g() {
15746
+ if (a.data && a.data.length > 0) {
15747
+ t.value = a.data.map((z) => ({
15748
+ label: z.label || z.name || z.category,
15749
+ value: z.value || z.count || z.amount || 0
15750
+ }));
15751
+ return;
15752
+ }
15742
15753
  if (a.apiConfig.url) {
15743
15754
  n.value = !0, r.value = null;
15744
15755
  try {
@@ -15829,6 +15840,10 @@ const Bh = /* @__PURE__ */ nt(mh, [["render", Oh]]), Mh = {
15829
15840
  apiConfig: {
15830
15841
  type: Object,
15831
15842
  default: () => ({})
15843
+ },
15844
+ data: {
15845
+ type: Array,
15846
+ default: () => []
15832
15847
  }
15833
15848
  },
15834
15849
  setup(e) {
@@ -15845,6 +15860,10 @@ const Bh = /* @__PURE__ */ nt(mh, [["render", Oh]]), Mh = {
15845
15860
  return C == null ? "-" : typeof C == "object" ? JSON.stringify(C) : String(C);
15846
15861
  }
15847
15862
  async function g() {
15863
+ if (a.data && a.data.length > 0) {
15864
+ t.value = a.data;
15865
+ return;
15866
+ }
15848
15867
  if (a.apiConfig.url) {
15849
15868
  n.value = !0, r.value = null;
15850
15869
  try {
@@ -15944,6 +15963,10 @@ const Bh = /* @__PURE__ */ nt(mh, [["render", Oh]]), Mh = {
15944
15963
  apiConfig: {
15945
15964
  type: Object,
15946
15965
  default: () => ({})
15966
+ },
15967
+ data: {
15968
+ type: Array,
15969
+ default: () => []
15947
15970
  }
15948
15971
  },
15949
15972
  setup(e) {
@@ -15952,6 +15975,10 @@ const Bh = /* @__PURE__ */ nt(mh, [["render", Oh]]), Mh = {
15952
15975
  return ($.title || $.name || $.label || "").split(" ").map((k) => k.charAt(0)).join("").toUpperCase().slice(0, 2) || "••";
15953
15976
  }
15954
15977
  async function m() {
15978
+ if (a.data && a.data.length > 0) {
15979
+ t.value = a.data;
15980
+ return;
15981
+ }
15955
15982
  if (a.apiConfig.url) {
15956
15983
  n.value = !0, r.value = null;
15957
15984
  try {