quasar-ui-danx 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
package/dist/danx.es.js CHANGED
@@ -11563,7 +11563,59 @@ const oo = { render: Iv }, PT = {
11563
11563
  }, 8, ["modelValue", "position", "seamless", "class"]);
11564
11564
  };
11565
11565
  }
11566
- }, Cc = /* @__PURE__ */ It(y2, [["__scopeId", "data-v-529ed64e"]]), _2 = ["href"], v2 = {
11566
+ }, Cc = /* @__PURE__ */ It(y2, [["__scopeId", "data-v-529ed64e"]]), Ic = (t) => t.vnode;
11567
+ Ic.props = { vnode: { type: Object, required: !0 } };
11568
+ const vr = Ic, _2 = {
11569
+ __name: "ActionVnode",
11570
+ setup(t) {
11571
+ const e = U(!1);
11572
+ async function n(r) {
11573
+ e.value = !0, await Dn.value.confirm(r), e.value = !1;
11574
+ }
11575
+ return (r, i) => (h(), v("div", null, [
11576
+ b(Dn) ? (h(), E(b(vr), {
11577
+ key: 0,
11578
+ vnode: b(Dn).vnode,
11579
+ "is-saving": e.value,
11580
+ onConfirm: n,
11581
+ onClose: b(Dn).cancel
11582
+ }, null, 8, ["vnode", "is-saving", "onClose"])) : $("", !0)
11583
+ ]));
11584
+ }
11585
+ }, v2 = {
11586
+ __name: "RenderComponent",
11587
+ props: {
11588
+ component: {
11589
+ type: [Function, Object],
11590
+ required: !0
11591
+ },
11592
+ params: {
11593
+ type: Array,
11594
+ default: () => []
11595
+ },
11596
+ overrideProps: {
11597
+ type: Object,
11598
+ default: () => ({})
11599
+ }
11600
+ },
11601
+ emits: ["action"],
11602
+ setup(t) {
11603
+ const e = t, n = R(() => {
11604
+ var i, s, o;
11605
+ return ((i = r.value) == null ? void 0 : i.value) || ((o = (s = r.value) == null ? void 0 : s.props) == null ? void 0 : o.text);
11606
+ }), r = R(() => typeof e.component == "function" ? e.component(...e.params) : e.component);
11607
+ return (i, s) => n.value ? (h(), E(fn(r.value.is), dn({ key: 0 }, { ...r.value.props, ...t.overrideProps }, {
11608
+ onAction: s[0] || (s[0] = (o) => i.$emit("action", o))
11609
+ }), {
11610
+ default: D(() => [
11611
+ Z(P(n.value), 1)
11612
+ ]),
11613
+ _: 1
11614
+ }, 16)) : (h(), E(fn(r.value.is), dn({ key: 1 }, { ...r.value.props, ...t.overrideProps }, {
11615
+ onAction: s[1] || (s[1] = (o) => i.$emit("action", o))
11616
+ }), null, 16));
11617
+ }
11618
+ }, x2 = ["href"], b2 = {
11567
11619
  __name: "PopoverMenu",
11568
11620
  props: {
11569
11621
  items: {
@@ -11611,7 +11663,7 @@ const oo = { render: Iv }, PT = {
11611
11663
  duration: 150
11612
11664
  }, {
11613
11665
  default: D(() => [
11614
- t.loading ? (h(), E(b(E2), {
11666
+ t.loading ? (h(), E(b(v2), {
11615
11667
  key: 0,
11616
11668
  component: t.loadingComponent
11617
11669
  }, null, 8, ["component"])) : (h(), E(b(e_), {
@@ -11634,7 +11686,7 @@ const oo = { render: Iv }, PT = {
11634
11686
  class: q(["q-item", c.class]),
11635
11687
  target: "_blank",
11636
11688
  href: c.url
11637
- }, P(c.label), 11, _2)) : (h(), E(a, {
11689
+ }, P(c.label), 11, x2)) : (h(), E(a, {
11638
11690
  key: c.name || c.action,
11639
11691
  clickable: "",
11640
11692
  class: q(c.class),
@@ -11703,7 +11755,7 @@ const oo = { render: Iv }, PT = {
11703
11755
  }, 8, ["modelValue"]);
11704
11756
  };
11705
11757
  }
11706
- }, x2 = { class: "flex items-center w-full" }, b2 = { class: "flex-grow text-sm" }, GT = {
11758
+ }, S2 = { class: "flex items-center w-full" }, T2 = { class: "flex-grow text-sm" }, GT = {
11707
11759
  __name: "BadgeTab",
11708
11760
  props: {
11709
11761
  name: {
@@ -11728,8 +11780,8 @@ const oo = { render: Iv }, PT = {
11728
11780
  "content-class": "w-full"
11729
11781
  }, {
11730
11782
  default: D(() => [
11731
- O("div", x2, [
11732
- O("div", b2, P(t.label), 1),
11783
+ O("div", S2, [
11784
+ O("div", T2, P(t.label), 1),
11733
11785
  C(r, {
11734
11786
  color: "gray-base",
11735
11787
  label: t.count,
@@ -11741,7 +11793,7 @@ const oo = { render: Iv }, PT = {
11741
11793
  }, 8, ["name"]);
11742
11794
  };
11743
11795
  }
11744
- }, S2 = { class: "flex items-center w-full" }, T2 = { class: "flex-grow text-sm" }, ZT = {
11796
+ }, w2 = { class: "flex items-center w-full" }, E2 = { class: "flex-grow text-sm" }, ZT = {
11745
11797
  __name: "IndicatorTab",
11746
11798
  props: {
11747
11799
  name: {
@@ -11765,8 +11817,8 @@ const oo = { render: Iv }, PT = {
11765
11817
  "content-class": "w-full"
11766
11818
  }, {
11767
11819
  default: D(() => [
11768
- O("div", S2, [
11769
- O("div", T2, P(t.label), 1),
11820
+ O("div", w2, [
11821
+ O("div", E2, P(t.label), 1),
11770
11822
  O("div", null, [
11771
11823
  t.overdue ? (h(), E(b(u_), {
11772
11824
  key: 0,
@@ -11782,58 +11834,6 @@ const oo = { render: Iv }, PT = {
11782
11834
  }, 8, ["name"]);
11783
11835
  };
11784
11836
  }
11785
- }, Ic = (t) => t.vnode;
11786
- Ic.props = { vnode: { type: Object, required: !0 } };
11787
- const vr = Ic, w2 = {
11788
- __name: "ActionVnode",
11789
- setup(t) {
11790
- const e = U(!1);
11791
- async function n(r) {
11792
- e.value = !0, await Dn.value.confirm(r), e.value = !1;
11793
- }
11794
- return (r, i) => (h(), v("div", null, [
11795
- b(Dn) ? (h(), E(b(vr), {
11796
- key: 0,
11797
- vnode: b(Dn).vnode,
11798
- "is-saving": e.value,
11799
- onConfirm: n,
11800
- onClose: b(Dn).cancel
11801
- }, null, 8, ["vnode", "is-saving", "onClose"])) : $("", !0)
11802
- ]));
11803
- }
11804
- }, E2 = {
11805
- __name: "RenderComponent",
11806
- props: {
11807
- component: {
11808
- type: [Function, Object],
11809
- required: !0
11810
- },
11811
- params: {
11812
- type: Array,
11813
- default: () => []
11814
- },
11815
- overrideProps: {
11816
- type: Object,
11817
- default: () => ({})
11818
- }
11819
- },
11820
- emits: ["action"],
11821
- setup(t) {
11822
- const e = t, n = R(() => {
11823
- var i, s, o;
11824
- return ((i = r.value) == null ? void 0 : i.value) || ((o = (s = r.value) == null ? void 0 : s.props) == null ? void 0 : o.text);
11825
- }), r = R(() => typeof e.component == "function" ? e.component(...e.params) : e.component);
11826
- return (i, s) => n.value ? (h(), E(fn(r.value.is), dn({ key: 0 }, { ...r.value.props, ...t.overrideProps }, {
11827
- onAction: s[0] || (s[0] = (o) => i.$emit("action", o))
11828
- }), {
11829
- default: D(() => [
11830
- Z(P(n.value), 1)
11831
- ]),
11832
- _: 1
11833
- }, 16)) : (h(), E(fn(r.value.is), dn({ key: 1 }, { ...r.value.props, ...t.overrideProps }, {
11834
- onAction: s[1] || (s[1] = (o) => i.$emit("action", o))
11835
- }), null, 16));
11836
- }
11837
11837
  }, C2 = {
11838
11838
  __name: "ListTransition",
11839
11839
  props: {
@@ -16716,7 +16716,7 @@ const _S = {
16716
16716
  throw new Error("Action must have a trigger function! Make sure you are using useActions() or implement your own trigger function.");
16717
16717
  i.value = !0, await o.trigger(e.target), i.value = !1;
16718
16718
  }
16719
- return (o, a) => (h(), E(b(v2), {
16719
+ return (o, a) => (h(), E(b(b2), {
16720
16720
  class: "px-2 flex action-button",
16721
16721
  items: r.value,
16722
16722
  disabled: !n.value,
@@ -16986,7 +16986,7 @@ const _S = {
16986
16986
  return (o, a) => {
16987
16987
  var l;
16988
16988
  return h(), v("div", AS, [
16989
- C(b(w2)),
16989
+ C(b(_2)),
16990
16990
  C(b(Qd), {
16991
16991
  ref_key: "actionTable",
16992
16992
  ref: n,
@@ -17070,7 +17070,7 @@ const _S = {
17070
17070
  ]);
17071
17071
  };
17072
17072
  }
17073
- }, uw = /* @__PURE__ */ It(DS, [["__scopeId", "data-v-519dc3ff"]]), PS = { class: "flex space-x-2" }, NS = ["innerHTML"], bl = {
17073
+ }, uw = /* @__PURE__ */ It(DS, [["__scopeId", "data-v-6ee737d3"]]), PS = { class: "flex space-x-2" }, NS = ["innerHTML"], bl = {
17074
17074
  __name: "AuditHistoryItemValue",
17075
17075
  props: {
17076
17076
  type: {
@@ -17331,7 +17331,7 @@ const _S = {
17331
17331
  });
17332
17332
  };
17333
17333
  }
17334
- }, JS = "quasar-ui-danx", QS = "0.2.2", eT = "Dan <dan@flytedesk.com>", tT = "DanX Vue / Quasar component library", nT = "MIT", rT = "module", iT = "dist/dan.es.js", sT = "dist/dan.es.js", oT = {
17334
+ }, JS = "quasar-ui-danx", QS = "0.2.4", eT = "Dan <dan@flytedesk.com>", tT = "DanX Vue / Quasar component library", nT = "MIT", rT = "module", iT = "dist/dan.es.js", sT = "dist/dan.es.js", oT = {
17335
17335
  dev: "vite",
17336
17336
  build: "vite build",
17337
17337
  preview: "vite preview"
@@ -17396,7 +17396,7 @@ export {
17396
17396
  uw as ActionTable,
17397
17397
  SS as ActionTableColumn,
17398
17398
  ow as ActionTableLayout,
17399
- w2 as ActionVnode,
17399
+ _2 as ActionVnode,
17400
17400
  UT as AddressFormat,
17401
17401
  cw as AuditHistoryItem,
17402
17402
  bl as AuditHistoryItemValue,
@@ -17460,10 +17460,10 @@ export {
17460
17460
  GS as PanelsDrawerTabs,
17461
17461
  K_ as PdfIcon,
17462
17462
  nv as PercentIcon,
17463
- v2 as PopoverMenu,
17463
+ b2 as PopoverMenu,
17464
17464
  MT as PreviousNextControls,
17465
17465
  NT as RefreshButton,
17466
- E2 as RenderComponent,
17466
+ v2 as RenderComponent,
17467
17467
  vr as RenderVnode,
17468
17468
  sw as RenderedForm,
17469
17469
  rw as SelectDrawer,