@quoreadmin/ui 1.3.16 → 1.3.18

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.js CHANGED
@@ -64617,8 +64617,23 @@ const d5e = /* @__PURE__ */ ze(j2e, [["render", z2e], ["__scopeId", "data-v-ca1e
64617
64617
  default: ""
64618
64618
  }
64619
64619
  },
64620
- setup() {
64621
- return {};
64620
+ setup(t) {
64621
+ return {
64622
+ statusColor: Y(() => {
64623
+ switch (t.status) {
64624
+ case "error":
64625
+ return "red-30";
64626
+ case "info":
64627
+ return "blue-40";
64628
+ case "success":
64629
+ return "green-20";
64630
+ case "warning":
64631
+ return "yellow-30";
64632
+ default:
64633
+ return "inkwell-0";
64634
+ }
64635
+ })
64636
+ };
64622
64637
  }
64623
64638
  }), Z2e = { class: "form-group" }, q2e = ["for"], W2e = { class: "label-text" }, G2e = {
64624
64639
  key: 0,
@@ -64637,22 +64652,25 @@ function K2e(t, e, n, r, i, s) {
64637
64652
  D("div", {
64638
64653
  class: B([
64639
64654
  "message",
64655
+ { "text-blue-40": t.status === "info" },
64640
64656
  { "text-red-30": t.status === "error" },
64641
- { "text-green-20": t.status === "success" }
64657
+ { "text-green-20": t.status === "success" },
64658
+ { "text-yellow-30": t.status === "warning" }
64642
64659
  ])
64643
64660
  }, [
64644
- t.status === "error" ? (w(), q(o, {
64661
+ t.status === "error" || t.status === "info" ? (w(), q(o, {
64645
64662
  key: 0,
64646
64663
  class: "message-icon",
64647
- color: "red-30",
64664
+ color: t.statusColor,
64648
64665
  icon: "exclamation-circle",
64649
- type: "fill"
64650
- })) : L("", !0),
64666
+ type: "fill",
64667
+ size: "sm"
64668
+ }, null, 8, ["color"])) : L("", !0),
64651
64669
  z(t.$slots, "message", {}, void 0, !0)
64652
64670
  ], 2)
64653
64671
  ]);
64654
64672
  }
64655
- const f5e = /* @__PURE__ */ ze(U2e, [["render", K2e], ["__scopeId", "data-v-f2d32e20"]]), Y2e = Oe({
64673
+ const f5e = /* @__PURE__ */ ze(U2e, [["render", K2e], ["__scopeId", "data-v-5aa9ed4c"]]), Y2e = Oe({
64656
64674
  name: "QGrid",
64657
64675
  components: {
64658
64676
  QBadge: il
@@ -70768,7 +70786,7 @@ const ufe = Oe({
70768
70786
  class: "text-blue-20 text-xs ml-2"
70769
70787
  }, Sfe = { class: "text-inkwell-40" }, kfe = { class: "text-inkwell-10 text-right truncate" }, Mfe = {
70770
70788
  key: 1,
70771
- class: "option-selected text-gray-40"
70789
+ class: "option-selected text-gray-40 truncate pr-6"
70772
70790
  }, Afe = {
70773
70791
  key: 3,
70774
70792
  class: "flex w-full justify-between"
@@ -70978,7 +70996,7 @@ function Ofe(t, e, n, r, i, s) {
70978
70996
  t.selectionControl ? (w(), k(ge, { key: 0 }, [
70979
70997
  D("span", Sfe, W(t.placeholder || ""), 1),
70980
70998
  D("span", kfe, W(((f = t.selected) == null ? void 0 : f.label) || ((h = t.selected) == null ? void 0 : h.name) || ""), 1)
70981
- ], 64)) : (w(), k("span", Mfe, W(((m = t.selected) == null ? void 0 : m.label) || ((y = t.selected) == null ? void 0 : y.name) || ""), 1))
70999
+ ], 64)) : (w(), k("span", Mfe, W(((m = t.selected) == null ? void 0 : m.label) || ((y = t.selected) == null ? void 0 : y.name) || t.placeholder || ""), 1))
70982
71000
  ], 2)) : d && !t.useTags && t.multiple && t.selectionControl ? (w(), k("div", Afe, [
70983
71001
  D("span", Tfe, W(t.placeholder || ""), 1)
70984
71002
  ])) : L("", !0)
@@ -71076,7 +71094,7 @@ function Ofe(t, e, n, r, i, s) {
71076
71094
  ]), 1032, ["id", "modelValue", "filtering-sort-func", "options", "searchable", "multiple", "taggable", "label", "track-by", "group-values", "group-label", "group-select", "block-keys", "class", "disabled", "allow-empty", "close-on-select", "show-tags", "tag-placeholder", "placeholder", "open-direction", "onOpen", "onTag"])
71077
71095
  ], 8, cfe);
71078
71096
  }
71079
- const B5e = /* @__PURE__ */ ze(ufe, [["render", Ofe], ["__scopeId", "data-v-f095ed16"]]);
71097
+ const B5e = /* @__PURE__ */ ze(ufe, [["render", Ofe], ["__scopeId", "data-v-21af1dc6"]]);
71080
71098
  var Nn = {
71081
71099
  STARTS_WITH: "startsWith",
71082
71100
  CONTAINS: "contains",