formue-crud 0.0.40 → 0.0.41

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- import { reactive as cw, markRaw as fw, openBlock as K, createElementBlock as Y, Fragment as ft, createElementVNode as R, unref as q, ref as ke, withDirectives as Dn, vModelCheckbox as pw, createApp as Qo, watch as Xi, inject as Kt, renderList as _i, normalizeClass as ct, toDisplayString as ue, createCommentVNode as At, pushScopeId as Zr, popScopeId as Qr, computed as Io, onMounted as ea, createVNode as Ue, createBlock as es, resolveDynamicComponent as mw, normalizeProps as Eu, guardReactiveProps as xu, getCurrentScope as gw, onScopeDispose as bw, readonly as vw, shallowRef as ww, nextTick as Bo, renderSlot as No, mergeProps as Gt, toHandlers as Wo, withCtx as Ut, Transition as ta, vModelText as _u, resolveComponent as Vo, withModifiers as Br, createTextVNode as Uh, vShow as jh, provide as Kh } from "vue";
1
+ import { reactive as cw, markRaw as fw, openBlock as K, createElementBlock as Y, Fragment as ft, createElementVNode as R, unref as q, ref as ke, withDirectives as Dn, vModelCheckbox as pw, createApp as Qo, watch as Xi, inject as Kt, renderList as _i, normalizeClass as ct, toDisplayString as ue, createCommentVNode as At, pushScopeId as Zr, popScopeId as Qr, computed as Io, onMounted as ea, createVNode as Ue, createBlock as es, resolveDynamicComponent as mw, normalizeProps as Eu, guardReactiveProps as xu, getCurrentScope as gw, onScopeDispose as bw, readonly as vw, shallowRef as ww, nextTick as Bo, resolveComponent as No, withCtx as Ut, mergeProps as Gt, withModifiers as Br, createTextVNode as Uh, vShow as jh, vModelText as _u, renderSlot as Wo, toHandlers as Vo, Transition as ta, provide as Kh } from "vue";
2
2
  import { emitter as et } from "formue";
3
3
  import { defineStore as Ru } from "pinia";
4
4
  import St from "axios";
@@ -5154,11 +5154,11 @@ const kC = (h) => {
5154
5154
  }, DC = (h, e) => h({ getRegisterField: kC, axios: St, get: AC(e), getSafe: V.get, useFields: RC }), FC = (h) => {
5155
5155
  Gu = h;
5156
5156
  };
5157
- function PC({ fields: h, hiddenActions: e, options: t, route: i }) {
5158
- const r = yC("Store-" + parseInt(Math.random() * 1e7));
5159
- r.fields = DC(h, r), et.event("beforeFormueInit");
5160
- const o = r.getModelKey(i);
5161
- return r.routes[o] = typeof i == "string" ? i : i == null ? void 0 : i.route, r.loadItems(), r.options = t, r.hiddenActions = e, LC(r.flatFields), r;
5157
+ function PC({ fields: h, hiddenActions: e, options: t, route: i, structure: r }) {
5158
+ const o = yC("Store-" + parseInt(Math.random() * 1e7));
5159
+ o.fields = DC(h, o), et.event("beforeFormueInit");
5160
+ const a = o.getModelKey(i);
5161
+ return o.routes[a] = typeof i == "string" ? i : i == null ? void 0 : i.route, o.loadItems(), o.options = t, o.hiddenActions = e, o.structure = r, LC(o.flatFields), o;
5162
5162
  }
5163
5163
  const OC = {
5164
5164
  clear: "Clear",
@@ -15437,68 +15437,95 @@ const Un = (h, e) => {
15437
15437
  (K(), es(mw(o1), Eu(xu(t())), null, 16))
15438
15438
  ]));
15439
15439
  }
15440
- }, h1 = { class: "flex items-center gap-3 relative hover:bg-muted-200 dark:hover:bg-muted-700 rounded-lg px-5 pl-3 rtl:pl-8 rtl:pr-5 py-2 duration-300" }, u1 = ["modelValue"], d1 = { class: "text-success-500 peer-disabled:opacity-75" }, c1 = /* @__PURE__ */ R("svg", {
15441
- "aria-hidden": "true",
15442
- viewBox: "0 0 52 52",
15443
- "data-v-3e8a7b5f": ""
15444
- }, [
15445
- /* @__PURE__ */ R("circle", {
15446
- cx: "26",
15447
- cy: "26",
15448
- r: "25",
15449
- fill: "none",
15450
- stroke: "currentColor"
15451
- }),
15452
- /* @__PURE__ */ R("path", {
15453
- fill: "none",
15454
- stroke: "currentColor",
15455
- d: "m14.1 27.2 7.1 7.2 16.7-16.8"
15456
- })
15457
- ], -1), f1 = { class: "font-heading text-muted-800 text-xs font-semibold leading-tight dark:text-white" }, p1 = {
15458
- __name: "SelectColumnItem",
15459
- props: {
15460
- checked: { default: !1 },
15461
- columnName: { default: "" }
15462
- },
15463
- setup(h) {
15464
- return (e, t) => (K(), Y("div", h1, [
15465
- R("div", {
15466
- class: ct(["nui-focus block focus-within:outline-current rounded-full", JSON.parse(h.checked) ? "is-checked" : "is-unchecked"])
15467
- }, [
15468
- R("input", {
15469
- modelValue: h.checked,
15470
- type: "checkbox",
15471
- class: "peer cursor-pointer disabled:cursor-not-allowed",
15472
- "true-value": "true",
15473
- "false-value": "false",
15474
- onClick: t[0] || (t[0] = (i) => e.$emit("toggle"))
15475
- }, null, 8, u1),
15476
- R("label", d1, [
15477
- R("div", {
15478
- class: ct(["rtl:left-[auto] rtl:!right-0 ltr:right-[auto] ltr:left-0", JSON.parse(h.checked) ? "is-opaque" : ""])
15479
- }, null, 2),
15480
- c1
15481
- ])
15482
- ], 2),
15483
- R("div", null, [
15484
- R("h6", f1, ue(h.columnName), 1)
15485
- ])
15486
- ]));
15487
- }
15440
+ }, h1 = () => {
15441
+ const h = In();
15442
+ return {
15443
+ op: {
15444
+ placeholder: h.translate("operator"),
15445
+ columns: 4,
15446
+ items: [
15447
+ { value: "$eq", text: h.translate("equal_to") },
15448
+ { value: "$ne", text: h.translate("not_equal_to") },
15449
+ { value: "$gt", text: h.translate("greater_than") },
15450
+ { value: "$lt", text: h.translate("less_than") },
15451
+ { value: "$contains", text: h.translate("look_like") }
15452
+ ],
15453
+ "label-prop": "text",
15454
+ "value-prop": "value",
15455
+ native: !1,
15456
+ type: "select"
15457
+ },
15458
+ value: {
15459
+ placeholder: h.translate("value"),
15460
+ type: "text",
15461
+ columns: 4
15462
+ }
15463
+ };
15464
+ }, u1 = (h) => {
15465
+ const e = In();
15466
+ return {
15467
+ op: {
15468
+ placeholder: e.translate("operator"),
15469
+ columns: 4,
15470
+ items: [
15471
+ { value: "$in", text: e.translate("in") },
15472
+ { value: "$notIn", text: e.translate("not_in") }
15473
+ ],
15474
+ labelProp: "text",
15475
+ valueProp: "value",
15476
+ native: !1,
15477
+ type: "select"
15478
+ },
15479
+ value: Wu({
15480
+ placeholder: e.translate("value"),
15481
+ items: "filterItems" in h ? h.filterItems : h.items,
15482
+ search: !0,
15483
+ columns: 4,
15484
+ labelProp: h.labelProp,
15485
+ valueProp: h.valueProp,
15486
+ object: !1
15487
+ })
15488
+ };
15489
+ }, d1 = () => {
15490
+ const h = In();
15491
+ return {
15492
+ op: {
15493
+ placeholder: h.translate("operator"),
15494
+ columns: 4,
15495
+ items: [
15496
+ { value: "$eq", text: h.translate("equal_to") },
15497
+ { value: "$between", text: h.translate("between") },
15498
+ { value: "$gt", text: h.translate("greater_than") },
15499
+ { value: "$lt", text: h.translate("less_than") }
15500
+ ],
15501
+ labelProp: "text",
15502
+ valueProp: "value",
15503
+ native: !1,
15504
+ type: "select"
15505
+ },
15506
+ value: Vu({
15507
+ placeholder: h.translate("value"),
15508
+ columns: 4
15509
+ })
15510
+ };
15511
+ }, c1 = {
15512
+ TextFilter: h1,
15513
+ SelectFilter: u1,
15514
+ DateFilter: d1
15488
15515
  };
15489
- function m1(h) {
15516
+ function f1(h) {
15490
15517
  return gw() ? (bw(h), !0) : !1;
15491
15518
  }
15492
15519
  function fa(h) {
15493
15520
  return typeof h == "function" ? h() : q(h);
15494
15521
  }
15495
15522
  const wd = typeof window < "u" && typeof document < "u", Zo = () => {
15496
- }, g1 = /* @__PURE__ */ b1();
15497
- function b1() {
15523
+ }, p1 = /* @__PURE__ */ m1();
15524
+ function m1() {
15498
15525
  var h;
15499
15526
  return wd && ((h = window == null ? void 0 : window.navigator) == null ? void 0 : h.userAgent) && /* @__PURE__ */ /iP(ad|hone|od)/.test(window.navigator.userAgent);
15500
15527
  }
15501
- function v1(h, e) {
15528
+ function g1(h, e) {
15502
15529
  function t(...i) {
15503
15530
  return new Promise((r, o) => {
15504
15531
  Promise.resolve(h(() => e.apply(this, i), { fn: e, thisArg: this, args: i })).then(r).catch(o);
@@ -15507,7 +15534,7 @@ function v1(h, e) {
15507
15534
  return t;
15508
15535
  }
15509
15536
  const yd = (h) => h();
15510
- function w1(h = yd) {
15537
+ function b1(h = yd) {
15511
15538
  const e = ke(!0);
15512
15539
  function t() {
15513
15540
  e.value = !1;
@@ -15520,26 +15547,26 @@ function w1(h = yd) {
15520
15547
  };
15521
15548
  return { isActive: vw(e), pause: t, resume: i, eventFilter: r };
15522
15549
  }
15523
- function y1(h, e, t = {}) {
15550
+ function v1(h, e, t = {}) {
15524
15551
  const {
15525
15552
  eventFilter: i = yd,
15526
15553
  ...r
15527
15554
  } = t;
15528
15555
  return Xi(
15529
15556
  h,
15530
- v1(
15557
+ g1(
15531
15558
  i,
15532
15559
  e
15533
15560
  ),
15534
15561
  r
15535
15562
  );
15536
15563
  }
15537
- function C1(h, e, t = {}) {
15564
+ function w1(h, e, t = {}) {
15538
15565
  const {
15539
15566
  eventFilter: i,
15540
15567
  ...r
15541
- } = t, { eventFilter: o, pause: a, resume: u, isActive: d } = w1(i);
15542
- return { stop: y1(
15568
+ } = t, { eventFilter: o, pause: a, resume: u, isActive: d } = b1(i);
15569
+ return { stop: v1(
15543
15570
  h,
15544
15571
  e,
15545
15572
  {
@@ -15571,14 +15598,14 @@ function zn(...h) {
15571
15598
  ), f = () => {
15572
15599
  d(), a();
15573
15600
  };
15574
- return m1(f), f;
15601
+ return f1(f), f;
15575
15602
  }
15576
15603
  let wu = !1;
15577
- function E1(h, e, t = {}) {
15604
+ function y1(h, e, t = {}) {
15578
15605
  const { window: i = qi, ignore: r = [], capture: o = !0, detectIframe: a = !1 } = t;
15579
15606
  if (!i)
15580
15607
  return;
15581
- g1 && !wu && (wu = !0, Array.from(i.document.body.children).forEach((v) => v.addEventListener("click", Zo)), i.document.documentElement.addEventListener("click", Zo));
15608
+ p1 && !wu && (wu = !0, Array.from(i.document.body.children).forEach((v) => v.addEventListener("click", Zo)), i.document.documentElement.addEventListener("click", Zo));
15582
15609
  let u = !0;
15583
15610
  const d = (v) => r.some((C) => {
15584
15611
  if (typeof C == "string")
@@ -15612,17 +15639,17 @@ function E1(h, e, t = {}) {
15612
15639
  ].filter(Boolean);
15613
15640
  return () => m.forEach((v) => v());
15614
15641
  }
15615
- const Gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $r = "__vueuse_ssr_handlers__", x1 = /* @__PURE__ */ _1();
15616
- function _1() {
15642
+ const Gr = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, $r = "__vueuse_ssr_handlers__", C1 = /* @__PURE__ */ E1();
15643
+ function E1() {
15617
15644
  return $r in Gr || (Gr[$r] = Gr[$r] || {}), Gr[$r];
15618
15645
  }
15619
- function R1(h, e) {
15620
- return x1[h] || e;
15646
+ function x1(h, e) {
15647
+ return C1[h] || e;
15621
15648
  }
15622
- function T1(h) {
15649
+ function _1(h) {
15623
15650
  return h == null ? "any" : h instanceof Set ? "set" : h instanceof Map ? "map" : h instanceof Date ? "date" : typeof h == "boolean" ? "boolean" : typeof h == "string" ? "string" : typeof h == "object" ? "object" : Number.isNaN(h) ? "any" : "number";
15624
15651
  }
15625
- const M1 = {
15652
+ const R1 = {
15626
15653
  boolean: {
15627
15654
  read: (h) => h === "true",
15628
15655
  write: (h) => String(h)
@@ -15656,7 +15683,7 @@ const M1 = {
15656
15683
  write: (h) => h.toISOString()
15657
15684
  }
15658
15685
  }, yu = "vueuse-storage";
15659
- function S1(h, e, t, i = {}) {
15686
+ function T1(h, e, t, i = {}) {
15660
15687
  const {
15661
15688
  flush: r = "pre",
15662
15689
  deep: o = !0,
@@ -15672,13 +15699,13 @@ function S1(h, e, t, i = {}) {
15672
15699
  } = i, C = (f ? ww : ke)(e);
15673
15700
  if (!t)
15674
15701
  try {
15675
- t = R1("getDefaultStorage", () => qi == null ? void 0 : qi.localStorage)();
15702
+ t = x1("getDefaultStorage", () => qi == null ? void 0 : qi.localStorage)();
15676
15703
  } catch (N) {
15677
15704
  v(N);
15678
15705
  }
15679
15706
  if (!t)
15680
15707
  return C;
15681
- const M = fa(e), D = T1(M), P = i.serializer ?? M1[D], { pause: S, resume: G } = C1(
15708
+ const M = fa(e), D = _1(M), P = i.serializer ?? R1[D], { pause: S, resume: G } = w1(
15682
15709
  C,
15683
15710
  () => X(C.value),
15684
15711
  { flush: r, deep: o, eventFilter: w }
@@ -15735,399 +15762,97 @@ function S1(h, e, t, i = {}) {
15735
15762
  }
15736
15763
  }
15737
15764
  }
15738
- const L1 = { class: "relative" }, k1 = /* @__PURE__ */ R("ul", { class: "py-2" }, [
15739
- /* @__PURE__ */ R("li", { class: "px-4 py-2 hover:bg-gray-100 cursor-pointer" }, "Item 1"),
15740
- /* @__PURE__ */ R("li", { class: "px-4 py-2 hover:bg-gray-100 cursor-pointer" }, "Item 2"),
15741
- /* @__PURE__ */ R("li", { class: "px-4 py-2 hover:bg-gray-100 cursor-pointer" }, "Item 3")
15742
- ], -1), Cu = {
15743
- __name: "MMenu",
15744
- setup(h) {
15745
- const e = ke(null);
15746
- E1(e, (o) => console.log(o));
15747
- const t = ke(!1), i = { isOpen: t.value }, r = {
15748
- click: () => t.value = !t.value
15749
- };
15750
- return (o, a) => (K(), Y("div", L1, [
15751
- No(o.$slots, "activator", Eu(xu({ on: r, props: i })), () => [
15752
- R("button", Gt({ class: "bg-blue-500 text-white px-4 py-2 rounded-md" }, Wo(r, !0)), " Open Menu " + ue(t.value), 17)
15753
- ]),
15754
- t.value ? (K(), Y("div", {
15755
- key: 0,
15756
- class: "absolute top-[35px] left-0 mt-2 w-48 rounded-md shadow-lg z-[1]",
15757
- ref_key: "target",
15758
- ref: e
15759
- }, [
15760
- No(o.$slots, "default", {}, () => [
15761
- k1
15762
- ])
15763
- ], 512)) : At("", !0)
15764
- ]));
15765
- }
15766
- };
15767
- const Ct = (h) => (Zr("data-v-9eed8c8f"), h = h(), Qr(), h), A1 = { class: "fc-header" }, D1 = { class: "fc-header-left-sid" }, F1 = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", { viewBox: "0 0 24 24" }, [
15765
+ const on = (h) => (Zr("data-v-f90907f7"), h = h(), Qr(), h), M1 = { class: "border-muted-200 dark:border-muted-700 dark:bg-muted-800 relative mb-4 w-full rounded-lg border bg-white p-6 transition-all duration-300" }, S1 = { class: "flex flex-col ml-1 border-[rgba(0,0,0,.1)] pb-4" }, L1 = { class: "flex flex-row justify-between mb-4 items-center" }, k1 = { class: "font-heading text-base font-semibold leading-tight text-muted-800 dark:text-white" }, A1 = { class: "flex items-center" }, D1 = { class: "z-[1]" }, F1 = { class: "fc-drop-down-content" }, P1 = {
15766
+ key: 0,
15767
+ class: "p-2 text-center"
15768
+ }, O1 = ["onClick"], z1 = { class: "text-muted-400 font-sans text-sm" }, H1 = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
15769
+ "data-v-74b3417a": "",
15770
+ "aria-hidden": "true",
15771
+ viewBox: "0 0 24 24",
15772
+ class: "h-4 w-4 text-muted-500"
15773
+ }, [
15768
15774
  /* @__PURE__ */ R("path", {
15775
+ "data-v-74b3417a": "",
15769
15776
  stroke: "currentColor",
15777
+ "stroke-linecap": "round",
15778
+ "stroke-linejoin": "round",
15770
15779
  "stroke-width": "2",
15771
- d: "M5 12h14m-7-7v14"
15780
+ d: "M18 6 6 18M6 6l12 12"
15772
15781
  })
15773
- ], -1)), P1 = [
15774
- F1
15775
- ], O1 = { class: "z-[1]" }, z1 = { class: "bg-muted-200 dark:bg-muted-800 cursor-pointer rounded-xl fm-light-shadow" }, H1 = { class: "group flex w-full items-center py-3 text-sm duration-300 text-muted-500 hover:bg-muted-300 dark:hover:bg-muted-700 rounded-xl justify-end flex-row-reverse" }, I1 = { class: "text-muted-400 font-sans text-xs" }, B1 = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", {
15776
- class: "fill-muted-400 w-3.5 mx-2",
15777
- viewBox: "0 0 512 512"
15782
+ ], -1)), I1 = { class: "flex w-full justify-between align-start" }, B1 = { class: "w-[12%] flex justify-center items-center" }, N1 = ["disabled"], W1 = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
15783
+ class: "icon h-4 ml-1 w-4",
15784
+ viewBox: "0 0 24 24"
15778
15785
  }, [
15779
- /* @__PURE__ */ R("path", { d: "M64 464H96v48H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V288H336V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM176 352h32c30.9 0 56 25.1 56 56s-25.1 56-56 56H192v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V448 368c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H192v48h16zm96-80h32c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H304c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H320v96h16zm80-112c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H448v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H448v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V432 368z" })
15780
- ], -1)), N1 = { class: "group flex w-full items-center py-3 text-sm duration-300 text-muted-500 hover:bg-muted-300 dark:hover:bg-muted-700 rounded-xl justify-end flex-row-reverse" }, W1 = { class: "text-muted-400 font-sans text-xs" }, V1 = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", {
15781
- class: "fill-muted-400 w-3.5 mx-2",
15782
- viewBox: "0 0 512 512"
15786
+ /* @__PURE__ */ R("path", {
15787
+ stroke: "currentColor",
15788
+ "stroke-width": "2",
15789
+ d: "M5 12h14m-7-7v14"
15790
+ })
15791
+ ], -1)), V1 = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
15792
+ class: "icon h-4 w-4",
15793
+ viewBox: "0 0 24 24"
15783
15794
  }, [
15784
- /* @__PURE__ */ R("path", { d: "M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm90.9 233.3c-8.1-10.5-23.2-12.3-33.7-4.2s-12.3 23.2-4.2 33.7L161.6 320l-44.5 57.3c-8.1 10.5-6.3 25.5 4.2 33.7s25.5 6.3 33.7-4.2L192 359.1l37.1 47.6c8.1 10.5 23.2 12.3 33.7 4.2s12.3-23.2 4.2-33.7L222.4 320l44.5-57.3c8.1-10.5 6.3-25.5-4.2-33.7s-25.5-6.3-33.7 4.2L192 280.9l-37.1-47.6z" })
15785
- ], -1)), G1 = { class: "group flex w-full items-center py-3 text-sm duration-300 text-muted-500 hover:bg-muted-300 dark:hover:bg-muted-700 rounded-xl justify-end flex-row-reverse" }, $1 = { class: "text-muted-400 font-sans text-xs" }, U1 = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", {
15786
- class: "fill-muted-400 w-3.5 mx-2",
15795
+ /* @__PURE__ */ R("path", {
15796
+ stroke: "currentColor",
15797
+ "stroke-width": "2",
15798
+ d: "M5 12h14m-7-7v14"
15799
+ })
15800
+ ], -1)), G1 = { class: "flex border-t dark:border-muted-600 flex-col p-2 mt-2" }, $1 = { class: "flex items-center" }, U1 = { class: "font-heading text-base font-semibold leading-tight text-muted-800 dark:text-white" }, j1 = { class: "group-hover:text-red-500" }, K1 = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
15801
+ stroke: "currentColor",
15802
+ width: "1em",
15803
+ height: "1em",
15804
+ class: "ml-1 rtl:ml-1 rtl:mr-1 group-hover:fill-red-500 dark:fill-muted-400 fill-muted-600",
15787
15805
  viewBox: "0 0 512 512"
15788
15806
  }, [
15789
- /* @__PURE__ */ R("path", { d: "M112 160V64c0-8.8 7.2-16 16-16H357.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c3 3 4.7 7.1 4.7 11.3V160h48V90.5c0-17-6.7-33.3-18.7-45.3L402.7 18.7C390.7 6.7 374.5 0 357.5 0H128C92.7 0 64 28.7 64 64v96h48zm16 208H384v96H128V368zm-16-48c-17.7 0-32 14.3-32 32H48V256c0-8.8 7.2-16 16-16H448c8.8 0 16 7.2 16 16v96H432c0-17.7-14.3-32-32-32H112zm320 80h48c17.7 0 32-14.3 32-32V256c0-35.3-28.7-64-64-64H64c-35.3 0-64 28.7-64 64V368c0 17.7 14.3 32 32 32H80v80c0 17.7 14.3 32 32 32H400c17.7 0 32-14.3 32-32V400z" })
15790
- ], -1)), j1 = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("path", { d: "M371.2 122.9C340.3 96.2 300 80 256 80C158.8 80 80 158.8 80 256s78.8 176 176 176c39.7 0 76.2-13.1 105.6-35.2c10.6-8 25.6-5.8 33.6 4.8s5.8 25.6-4.8 33.6C353 463.3 306.4 480 256 480C132.3 480 32 379.7 32 256S132.3 32 256 32c57.3 0 109.6 21.5 149.2 56.9l30.5-30.5c6.6-6.6 15.6-10.3 25-10.3C480.2 48 496 63.8 496 83.3V200c0 13.3-10.7 24-24 24H355.3c-19.5 0-35.3-15.8-35.3-35.3c0-9.4 3.7-18.3 10.3-25l40.8-40.8zm76.8-9L385.9 176H448V113.9z" }, null, -1)), K1 = [
15791
- j1
15792
- ], q1 = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", { viewBox: "0 0 512 512" }, [
15793
- /* @__PURE__ */ R("path", { d: "M384 48c8.8 0 16 7.2 16 16V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H384zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM80 112v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V112c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16zM96 352c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16H96zm80-224c0 13.3 10.7 24 24 24H344c13.3 0 24-10.7 24-24s-10.7-24-24-24H200c-13.3 0-24 10.7-24 24zm32 128c0 13.3 10.7 24 24 24H344c13.3 0 24-10.7 24-24s-10.7-24-24-24H232c-13.3 0-24 10.7-24 24zM176 384c0 13.3 10.7 24 24 24H344c13.3 0 24-10.7 24-24s-10.7-24-24-24H200c-13.3 0-24 10.7-24 24zm-4.7-140.7c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L112 257.4 99.3 244.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l24 24c6.2 6.2 16.4 6.2 22.6 0l48-48z" })
15794
- ], -1)), X1 = [
15795
- q1
15796
- ], Y1 = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", {
15797
- viewBox: "0 0 448 512",
15798
- class: "z-[1]"
15807
+ /* @__PURE__ */ R("path", { d: "M340 148L488 0l24 24L364 172l52 52L257.2 483.9 240 512l-23.3-23.3L23.3 295.3 0 272l28.1-17.2L288 96l52 52zM51.4 278.1l47.9 47.9 33.4-33.4L144 281.4 166.6 304l-11.3 11.3-33.4 33.4L233.9 460.6l89.6-146.6L197.9 188.6 51.4 278.1zM340.6 286l34.9-57.2-92.4-92.4L226 171.4 340.6 286z" })
15808
+ ], -1)), q1 = { class: "my-2 flex overflow-x-auto slimscroll" }, X1 = { class: "flex" }, Y1 = ["onClick"], J1 = { class: "mt-[0px]" }, Z1 = ["onClick"], Q1 = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
15809
+ "aria-hidden": "true",
15810
+ viewBox: "0 0 24 24",
15811
+ class: "h-4 w-4 text-primary-500"
15799
15812
  }, [
15800
- /* @__PURE__ */ R("path", { d: "M64 448c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32H384c17.7 0 32 14.3 32 32V416c0 17.7-14.3 32-32 32H64zM0 416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96V416zM128 288c8.8 0 16-7.2 16-16V144c0-8.8-7.2-16-16-16s-16 7.2-16 16V272c0 8.8 7.2 16 16 16zm176 48c0 8.8 7.2 16 16 16s16-7.2 16-16V144c0-8.8-7.2-16-16-16s-16 7.2-16 16V336zm-80-80c8.8 0 16-7.2 16-16V144c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16z" })
15801
- ], -1)), J1 = [
15802
- Y1
15803
- ], Z1 = { class: "bg-white dark:bg-muted-800 rounded-xl pt-1 rtl:text-right ltr:text-left fm-light-shadow" }, Q1 = { class: "m-3 mt-2 text-muted-600 dark:text-muted-200" }, ex = { class: "p-2" }, tx = { class: "fm-header-rigth-sid flex w-full sm:w-auto rtl:flex-row-reverse rtl:justify-end z-10" }, ix = { key: 0 }, nx = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("span", null, null, -1)), rx = [
15804
- nx
15805
- ], sx = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("path", { d: "M0 73.7C0 50.7 18.7 32 41.7 32H470.3c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5V447.7c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3V304.5L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2v68.4l64 50.8V296c0-5.5 1.9-10.9 5.4-15.2L457 80H55z" }, null, -1)), ox = [
15806
- sx
15807
- ], ax = { class: "group/nui-input relative rtl:" }, lx = ["placeholder"], hx = { class: "ltr:left-0 text-muted-400 group-focus-within/nui-input:text-primary-500 absolute end-0 rtl:start-0 top-0 flex items-center justify-center transition-colors duration-300 peer-disabled:cursor-not-allowed peer-disabled:opacity-75 h-10 w-10" }, ux = {
15813
+ /* @__PURE__ */ R("path", {
15814
+ stroke: "currentColor",
15815
+ "stroke-linecap": "round",
15816
+ "stroke-linejoin": "round",
15817
+ "stroke-width": "2",
15818
+ d: "M18 6 6 18M6 6l12 12"
15819
+ })
15820
+ ], -1)), ex = [
15821
+ Q1
15822
+ ], tx = {
15808
15823
  key: 0,
15809
- class: "icon h-[1.15rem] w-[1.15rem]",
15810
- width: "1em",
15811
- height: "1em",
15812
- viewBox: "0 0 24 24"
15813
- }, dx = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("g", {
15814
- fill: "none",
15815
- stroke: "currentColor",
15816
- "stroke-linecap": "round",
15817
- "stroke-linejoin": "round",
15818
- "stroke-width": "2"
15824
+ class: "flex items-center mx-2 text-[0.75rem]"
15825
+ }, ix = { class: "flex w-full gap-x-2 justify-between !items-end" }, nx = { class: "pt-4 md:pt-6" }, rx = { class: "flex gap-x-2" }, sx = ["placeholder"], ox = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
15826
+ "data-v-74b3417a": "",
15827
+ "aria-hidden": "true",
15828
+ viewBox: "0 0 24 24",
15829
+ class: "h-4 w-4 text-primary-500"
15819
15830
  }, [
15820
- /* @__PURE__ */ R("circle", {
15821
- cx: "11",
15822
- cy: "11",
15823
- r: "8"
15824
- }),
15825
- /* @__PURE__ */ R("path", { d: "m21 21l-4.35-4.35" })
15826
- ], -1)), cx = [
15827
- dx
15828
- ], fx = {
15829
- key: 1,
15830
- xmlns: "http://www.w3.org/2000/svg",
15831
- width: "1em",
15832
- height: "1em",
15833
- viewBox: "0 0 512 512",
15834
- class: "icon animate-spin"
15835
- }, px = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("path", { d: "M457 372c11.5 6.6 26.3 2.7 31.8-9.3C503.7 330.2 512 294.1 512 256C512 122.7 410.1 13.2 280 1.1C266.8-.1 256 10.7 256 24v0c0 13.3 10.8 23.9 24 25.4C383.5 61.2 464 149.2 464 256c0 29.3-6.1 57.3-17 82.6c-5.3 12.2-1.5 26.8 10 33.5v0z" }, null, -1)), mx = [
15836
- px
15837
- ], gx = {
15838
- __name: "MButtonBox",
15831
+ /* @__PURE__ */ R("path", {
15832
+ "data-v-74b3417a": "",
15833
+ stroke: "currentColor",
15834
+ "stroke-linecap": "round",
15835
+ "stroke-linejoin": "round",
15836
+ "stroke-width": "2",
15837
+ d: "M18 6 6 18M6 6l12 12"
15838
+ })
15839
+ ], -1)), ax = [
15840
+ ox
15841
+ ], lx = {
15842
+ __name: "MFilter",
15839
15843
  setup(h) {
15840
- const { event: e } = et, t = Kt("store");
15841
- function i(w) {
15842
- w === t.panel ? t.panel = "" : t.panel = w;
15843
- }
15844
- const r = ke(null);
15845
- ea(() => {
15846
- r.value = document.body.getAttribute("dir");
15847
- });
15848
- const o = Io(() => t.flatFields.find((w) => w.field === "_select_")), a = Io(() => !!o.value.isHeader);
15849
- function u() {
15850
- o.value.isHeader = !o.value.isHeader, o.value.isHeader || t.selected.clear();
15851
- }
15852
- const d = ke(!1);
15853
- function f() {
15854
- d.value = !0, t.loadItems().finally(() => d.value = !1);
15855
- }
15856
- const m = V.debounce(f, 600);
15857
- return (w, v) => (K(), Y("div", A1, [
15858
- R("div", D1, [
15859
- R("button", Gt(w.props, {
15860
- class: "fc-plus-btn",
15861
- onClick: v[0] || (v[0] = (C) => q(e)("createBtn"))
15862
- }), P1, 16),
15863
- Ue(Cu, null, {
15864
- activator: Ut(({ on: C, props: M }) => [
15865
- R("button", Gt({
15866
- class: M.isOpen ? "before:block" : "before:hidden"
15867
- }, M, Wo(C, !0), { class: "fc-header-icon-btn fc-drop-down-btn min-w-[130px]" }), [
15868
- R("span", O1, ue(w.$fcTr("export")), 1)
15869
- ], 16)
15870
- ]),
15871
- default: Ut(() => [
15872
- R("div", z1, [
15873
- R("a", H1, [
15874
- R("p", I1, ue(w.$fcTr("export_as_pdf")), 1),
15875
- B1
15876
- ]),
15877
- R("a", N1, [
15878
- R("p", W1, ue(w.$fcTr("export_as_excel")), 1),
15879
- V1
15880
- ]),
15881
- R("a", G1, [
15882
- R("p", $1, ue(w.$fcTr("print")), 1),
15883
- U1
15884
- ])
15885
- ])
15886
- ]),
15887
- _: 1
15888
- }),
15889
- R("button", Gt(w.props, {
15890
- class: "fc-header-icon-btn",
15891
- onClick: v[1] || (v[1] = (...C) => q(t).reloadData && q(t).reloadData(...C))
15892
- }), [
15893
- (K(), Y("svg", {
15894
- class: ct({ spin: q(t).loadings.mainLoading }),
15895
- viewBox: "0 0 512 512"
15896
- }, K1, 2))
15897
- ], 16),
15898
- R("button", Gt(w.props, {
15899
- class: ["fc-header-icon-btn", { "fm-active-btn": a.value }],
15900
- onClick: u
15901
- }), X1, 16),
15902
- Ue(Cu, {
15903
- "close-on-content-click": !1,
15904
- location: r.value === "rtl" ? "end" : "start"
15905
- }, {
15906
- activator: Ut(({ props: C, on: M }) => [
15907
- R("button", Gt(Wo(M, !0), {
15908
- class: ["fc-header-icon-btn", [
15909
- C.isOpen ? "light:!bg-white dark:bg-muted-800" : "",
15910
- C.isOpen ? r.value === "rtl" ? "expanded-rtl" : "expanded2" : ""
15911
- ]]
15912
- }), J1, 16)
15913
- ]),
15914
- default: Ut(() => [
15915
- R("div", Z1, [
15916
- R("div", Q1, ue(w.$fcTr("custom_column")), 1),
15917
- R("ul", ex, [
15918
- (K(!0), Y(ft, null, _i(q(t).flatFieldsWithoutActions, (C) => (K(), es(p1, {
15919
- key: C.field,
15920
- "column-name": C.title,
15921
- checked: C.isHeader,
15922
- onToggle: (M) => C.isHeader = !C.isHeader
15923
- }, null, 8, ["column-name", "checked", "onToggle"]))), 128))
15924
- ])
15925
- ])
15926
- ]),
15927
- _: 1
15928
- }, 8, ["location"])
15929
- ]),
15930
- R("div", tx, [
15931
- R("button", Gt(w.props, {
15932
- class: ["test fc-header-icon-btn transform transition-all", q(t).panel === "filters" ? "!bg-white dark:!bg-muted-800 !rounded-b-none " : ""],
15933
- onClick: v[2] || (v[2] = (C) => i("filters"))
15934
- }), [
15935
- Ue(ta, { name: "scale" }, {
15936
- default: Ut(() => [
15937
- q(t).panel === "filters" ? (K(), Y("div", ix, rx)) : At("", !0)
15938
- ]),
15939
- _: 1
15940
- }),
15941
- (K(), Y("svg", {
15942
- class: ct(q(t).panel === "filters" ? "light:!fill-primary-700" : ""),
15943
- stroke: "currentColor",
15944
- viewBox: "0 0 512 512"
15945
- }, ox, 2))
15946
- ], 16),
15947
- R("div", ax, [
15948
- Dn(R("input", {
15949
- "onUpdate:modelValue": v[3] || (v[3] = (C) => q(t).searchParam = C),
15950
- type: "text",
15951
- class: "nui-focus !pl-4 border-muted-300 text-muted-600 placeholder:text-muted-300 dark:border-muted-700 dark:bg-muted-900/75 dark:text-muted-200 dark:placeholder:text-muted-500 dark:focus:border-muted-700 peer w-full border bg-white font-sans transition-all duration-300 disabled:cursor-not-allowed disabled:opacity-75 px-2 h-10 py-2 text-sm leading-5 pe-4 ps-9 rounded-full",
15952
- placeholder: w.$fcTr("search"),
15953
- onKeyup: v[4] || (v[4] = (...C) => q(m) && q(m)(...C))
15954
- }, null, 40, lx), [
15955
- [_u, q(t).searchParam]
15956
- ]),
15957
- R("div", hx, [
15958
- d.value ? (K(), Y("svg", fx, mx)) : (K(), Y("svg", ux, cx))
15959
- ])
15960
- ])
15961
- ])
15962
- ]));
15963
- }
15964
- }, bx = /* @__PURE__ */ Un(gx, [["__scopeId", "data-v-9eed8c8f"]]), vx = () => {
15965
- const h = In();
15966
- return {
15967
- op: {
15968
- placeholder: h.translate("operator"),
15969
- columns: 4,
15970
- items: [
15971
- { value: "$eq", text: h.translate("equal_to") },
15972
- { value: "$ne", text: h.translate("not_equal_to") },
15973
- { value: "$gt", text: h.translate("greater_than") },
15974
- { value: "$lt", text: h.translate("less_than") },
15975
- { value: "$contains", text: h.translate("look_like") }
15976
- ],
15977
- "label-prop": "text",
15978
- "value-prop": "value",
15979
- native: !1,
15980
- type: "select"
15981
- },
15982
- value: {
15983
- placeholder: h.translate("value"),
15984
- type: "text",
15985
- columns: 4
15986
- }
15987
- };
15988
- }, wx = (h) => {
15989
- const e = In();
15990
- return {
15991
- op: {
15992
- placeholder: e.translate("operator"),
15993
- columns: 4,
15994
- items: [
15995
- { value: "$in", text: e.translate("in") },
15996
- { value: "$notIn", text: e.translate("not_in") }
15997
- ],
15998
- labelProp: "text",
15999
- valueProp: "value",
16000
- native: !1,
16001
- type: "select"
16002
- },
16003
- value: Wu({
16004
- placeholder: e.translate("value"),
16005
- items: "filterItems" in h ? h.filterItems : h.items,
16006
- search: !0,
16007
- columns: 4,
16008
- labelProp: h.labelProp,
16009
- valueProp: h.valueProp,
16010
- object: !1
16011
- })
16012
- };
16013
- }, yx = () => {
16014
- const h = In();
16015
- return {
16016
- op: {
16017
- placeholder: h.translate("operator"),
16018
- columns: 4,
16019
- items: [
16020
- { value: "$eq", text: h.translate("equal_to") },
16021
- { value: "$between", text: h.translate("between") },
16022
- { value: "$gt", text: h.translate("greater_than") },
16023
- { value: "$lt", text: h.translate("less_than") }
16024
- ],
16025
- labelProp: "text",
16026
- valueProp: "value",
16027
- native: !1,
16028
- type: "select"
16029
- },
16030
- value: Vu({
16031
- placeholder: h.translate("value"),
16032
- columns: 4
16033
- })
16034
- };
16035
- }, Cx = {
16036
- TextFilter: vx,
16037
- SelectFilter: wx,
16038
- DateFilter: yx
16039
- };
16040
- const on = (h) => (Zr("data-v-f90907f7"), h = h(), Qr(), h), Ex = { class: "border-muted-200 dark:border-muted-700 dark:bg-muted-800 relative mb-4 w-full rounded-lg border bg-white p-6 transition-all duration-300" }, xx = { class: "flex flex-col ml-1 border-[rgba(0,0,0,.1)] pb-4" }, _x = { class: "flex flex-row justify-between mb-4 items-center" }, Rx = { class: "font-heading text-base font-semibold leading-tight text-muted-800 dark:text-white" }, Tx = { class: "flex items-center" }, Mx = { class: "z-[1]" }, Sx = { class: "fc-drop-down-content" }, Lx = {
16041
- key: 0,
16042
- class: "p-2 text-center"
16043
- }, kx = ["onClick"], Ax = { class: "text-muted-400 font-sans text-sm" }, Dx = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
16044
- "data-v-74b3417a": "",
16045
- "aria-hidden": "true",
16046
- viewBox: "0 0 24 24",
16047
- class: "h-4 w-4 text-muted-500"
16048
- }, [
16049
- /* @__PURE__ */ R("path", {
16050
- "data-v-74b3417a": "",
16051
- stroke: "currentColor",
16052
- "stroke-linecap": "round",
16053
- "stroke-linejoin": "round",
16054
- "stroke-width": "2",
16055
- d: "M18 6 6 18M6 6l12 12"
16056
- })
16057
- ], -1)), Fx = { class: "flex w-full justify-between align-start" }, Px = { class: "w-[12%] flex justify-center items-center" }, Ox = ["disabled"], zx = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
16058
- class: "icon h-4 ml-1 w-4",
16059
- viewBox: "0 0 24 24"
16060
- }, [
16061
- /* @__PURE__ */ R("path", {
16062
- stroke: "currentColor",
16063
- "stroke-width": "2",
16064
- d: "M5 12h14m-7-7v14"
16065
- })
16066
- ], -1)), Hx = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
16067
- class: "icon h-4 w-4",
16068
- viewBox: "0 0 24 24"
16069
- }, [
16070
- /* @__PURE__ */ R("path", {
16071
- stroke: "currentColor",
16072
- "stroke-width": "2",
16073
- d: "M5 12h14m-7-7v14"
16074
- })
16075
- ], -1)), Ix = { class: "flex border-t dark:border-muted-600 flex-col p-2 mt-2" }, Bx = { class: "flex items-center" }, Nx = { class: "font-heading text-base font-semibold leading-tight text-muted-800 dark:text-white" }, Wx = { class: "group-hover:text-red-500" }, Vx = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
16076
- stroke: "currentColor",
16077
- width: "1em",
16078
- height: "1em",
16079
- class: "ml-1 rtl:ml-1 rtl:mr-1 group-hover:fill-red-500 dark:fill-muted-400 fill-muted-600",
16080
- viewBox: "0 0 512 512"
16081
- }, [
16082
- /* @__PURE__ */ R("path", { d: "M340 148L488 0l24 24L364 172l52 52L257.2 483.9 240 512l-23.3-23.3L23.3 295.3 0 272l28.1-17.2L288 96l52 52zM51.4 278.1l47.9 47.9 33.4-33.4L144 281.4 166.6 304l-11.3 11.3-33.4 33.4L233.9 460.6l89.6-146.6L197.9 188.6 51.4 278.1zM340.6 286l34.9-57.2-92.4-92.4L226 171.4 340.6 286z" })
16083
- ], -1)), Gx = { class: "my-2 flex overflow-x-auto slimscroll" }, $x = { class: "flex" }, Ux = ["onClick"], jx = { class: "mt-[0px]" }, Kx = ["onClick"], qx = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
16084
- "aria-hidden": "true",
16085
- viewBox: "0 0 24 24",
16086
- class: "h-4 w-4 text-primary-500"
16087
- }, [
16088
- /* @__PURE__ */ R("path", {
16089
- stroke: "currentColor",
16090
- "stroke-linecap": "round",
16091
- "stroke-linejoin": "round",
16092
- "stroke-width": "2",
16093
- d: "M18 6 6 18M6 6l12 12"
16094
- })
16095
- ], -1)), Xx = [
16096
- qx
16097
- ], Yx = {
16098
- key: 0,
16099
- class: "flex items-center mx-2 text-[0.75rem]"
16100
- }, Jx = { class: "flex w-full gap-x-2 justify-between !items-end" }, Zx = { class: "pt-4 md:pt-6" }, Qx = { class: "flex gap-x-2" }, e_ = ["placeholder"], t_ = /* @__PURE__ */ on(() => /* @__PURE__ */ R("svg", {
16101
- "data-v-74b3417a": "",
16102
- "aria-hidden": "true",
16103
- viewBox: "0 0 24 24",
16104
- class: "h-4 w-4 text-primary-500"
16105
- }, [
16106
- /* @__PURE__ */ R("path", {
16107
- "data-v-74b3417a": "",
16108
- stroke: "currentColor",
16109
- "stroke-linecap": "round",
16110
- "stroke-linejoin": "round",
16111
- "stroke-width": "2",
16112
- d: "M18 6 6 18M6 6l12 12"
16113
- })
16114
- ], -1)), i_ = [
16115
- t_
16116
- ], n_ = {
16117
- __name: "MFilter",
16118
- setup(h) {
16119
- const e = Kt("store");
16120
- let t = -1;
16121
- const i = ke(!1), r = ke({ field: "" }), o = ke(!1), a = ke(""), u = v(), d = ke(null);
16122
- function f(z) {
16123
- if (!z)
16124
- return !1;
16125
- const W = {
16126
- text: "TextFilter",
16127
- date: "DateFilter",
16128
- select: "SelectFilter"
16129
- }, le = V.get(W, z.type), N = V.get(Cx, le);
16130
- return typeof N == "function" ? N(z) : !1;
15844
+ const e = Kt("store");
15845
+ let t = -1;
15846
+ const i = ke(!1), r = ke({ field: "" }), o = ke(!1), a = ke(""), u = v(), d = ke(null);
15847
+ function f(z) {
15848
+ if (!z)
15849
+ return !1;
15850
+ const W = {
15851
+ text: "TextFilter",
15852
+ date: "DateFilter",
15853
+ select: "SelectFilter"
15854
+ }, le = V.get(W, z.type), N = V.get(c1, le);
15855
+ return typeof N == "function" ? N(z) : !1;
16131
15856
  }
16132
15857
  const m = {
16133
15858
  field: {
@@ -16156,7 +15881,7 @@ const on = (h) => (Zr("data-v-f90907f7"), h = h(), Qr(), h), Ex = { class: "bord
16156
15881
  });
16157
15882
  function v() {
16158
15883
  const z = window.location.pathname.replace(/^\/|\/$/g, "") + "-filters";
16159
- return S1(z, {}, localStorage, { mergeDefaults: !0 });
15884
+ return T1(z, {}, localStorage, { mergeDefaults: !0 });
16160
15885
  }
16161
15886
  function C() {
16162
15887
  e.filters.push(V.cloneDeep(r.value)), r.value = {};
@@ -16184,41 +15909,41 @@ const on = (h) => (Zr("data-v-f90907f7"), h = h(), Qr(), h), Ex = { class: "bord
16184
15909
  e.loadItems();
16185
15910
  }
16186
15911
  return (z, W) => {
16187
- const le = Vo("v-menu"), N = Vo("Vueform");
15912
+ const le = No("v-menu"), N = No("Vueform");
16188
15913
  return Dn((K(), Y("div", {
16189
15914
  class: ct(["accordion-content", { hide: q(e).panel !== "filters" }])
16190
15915
  }, [
16191
- R("div", Ex, [
16192
- R("div", xx, [
16193
- R("div", _x, [
16194
- R("h3", Rx, ue(z.$fcTr("filter_data")), 1),
16195
- R("div", Tx, [
15916
+ R("div", M1, [
15917
+ R("div", S1, [
15918
+ R("div", L1, [
15919
+ R("h3", k1, ue(z.$fcTr("filter_data")), 1),
15920
+ R("div", A1, [
16196
15921
  Ue(le, { transition: "scale-transition" }, {
16197
15922
  activator: Ut(({ props: H }) => [
16198
15923
  R("button", Gt({
16199
15924
  class: JSON.parse(H["aria-expanded"]) ? "before:block" : "before:hidden"
16200
15925
  }, H, { class: "fc-filter-choose is-button rounded is-button-default min-w-[130px]" }), [
16201
- R("span", Mx, ue(z.$fcTr("choose_filter")), 1)
15926
+ R("span", D1, ue(z.$fcTr("choose_filter")), 1)
16202
15927
  ], 16)
16203
15928
  ]),
16204
15929
  default: Ut(() => [
16205
- R("div", Sx, [
16206
- Object.keys(q(u)).length === 0 ? (K(), Y("p", Lx, ue(z.$fcTr("not_filter_create_yes")), 1)) : At("", !0),
15930
+ R("div", F1, [
15931
+ Object.keys(q(u)).length === 0 ? (K(), Y("p", P1, ue(z.$fcTr("not_filter_create_yes")), 1)) : At("", !0),
16207
15932
  (K(!0), Y(ft, null, _i(q(u), (H, ce) => (K(), Y("a", {
16208
15933
  class: "group rounded flex w-full items-center py-3 text-sm duration-300 text-muted-500 hover:bg-muted-100 dark:hover:bg-muted-700 justify-between rtl:pl-4 rtl:pr-5",
16209
15934
  key: ce,
16210
15935
  onClick: Br((Be) => q(e).filters = Object.values(H), ["stop"])
16211
15936
  }, [
16212
- R("p", Ax, ue(ce), 1),
16213
- Dx
16214
- ], 8, kx))), 128))
15937
+ R("p", z1, ue(ce), 1),
15938
+ H1
15939
+ ], 8, O1))), 128))
16215
15940
  ])
16216
15941
  ]),
16217
15942
  _: 1
16218
15943
  })
16219
15944
  ])
16220
15945
  ]),
16221
- R("div", Fx, [
15946
+ R("div", I1, [
16222
15947
  Ue(N, {
16223
15948
  modelValue: r.value,
16224
15949
  "onUpdate:modelValue": W[0] || (W[0] = (H) => r.value = H),
@@ -16227,64 +15952,64 @@ const on = (h) => (Zr("data-v-f90907f7"), h = h(), Qr(), h), Ex = { class: "bord
16227
15952
  class: "w-[100%] justify-between ml-4",
16228
15953
  columns: { label: 12 }
16229
15954
  }, null, 8, ["modelValue", "schema"]),
16230
- R("div", Px, [
15955
+ R("div", B1, [
16231
15956
  i.value ? (K(), Y("button", {
16232
15957
  key: 1,
16233
15958
  class: "!border-dashed is-button-default is-button w-full rounded-full font-bold py-1 px-2 !border-green-400 !text-green-400 hover:!bg-green-50",
16234
15959
  onClick: M
16235
15960
  }, [
16236
15961
  Uh(ue(z.$fcTr("edit_filter")) + " ", 1),
16237
- Hx
15962
+ V1
16238
15963
  ])) : (K(), Y("button", {
16239
15964
  key: 0,
16240
15965
  disabled: !r.value.field,
16241
15966
  class: "disabled:cursor-not-allowed disabled:hover:bg-transparent !border-dashed !h-[86%] is-button-default is-button w-full rounded font-bold py-1 px-2 !border-green-400 !text-green-400 dark:active:hover:bg-muted-600 active:hover:!bg-green-50",
16242
15967
  onClick: C
16243
15968
  }, [
16244
- zx,
15969
+ W1,
16245
15970
  Uh(" " + ue(z.$fcTr("add_filter")), 1)
16246
- ], 8, Ox))
15971
+ ], 8, N1))
16247
15972
  ])
16248
15973
  ])
16249
15974
  ]),
16250
- Dn(R("div", Ix, [
16251
- R("div", Bx, [
16252
- R("h3", Nx, ue(z.$fcTr("active_filter")), 1),
15975
+ Dn(R("div", G1, [
15976
+ R("div", $1, [
15977
+ R("h3", U1, ue(z.$fcTr("active_filter")), 1),
16253
15978
  R("button", {
16254
15979
  onClick: S,
16255
15980
  class: "is-button group hover:text-red-500 hover:border-red-500 w-fit text-muted-600 dark:text-muted-400 !text-xs border !px-3 !py-0 !h-[1.5rem] mx-2 !rounded-full"
16256
15981
  }, [
16257
- R("span", Wx, ue(z.$fcTr("clear_all")), 1),
16258
- Vx
15982
+ R("span", j1, ue(z.$fcTr("clear_all")), 1),
15983
+ K1
16259
15984
  ])
16260
15985
  ]),
16261
- R("div", Gx, [
15986
+ R("div", q1, [
16262
15987
  (K(!0), Y(ft, null, _i(q(e).filters, (H, ce) => (K(), Y(ft, { key: ce }, [
16263
- R("div", $x, [
15988
+ R("div", X1, [
16264
15989
  R("span", {
16265
15990
  class: "flex px-3 font-sans transition-shadow duration-300 py-1 text-[0.75rem] cursor-pointer rounded-full bg-primary-100 text-primary-500 border-primary-100 dark:border-primary-500 dark:text-primary-500 border dark:bg-transparent",
16266
15991
  onClick: (Be) => D(H, ce)
16267
15992
  }, [
16268
- R("span", jx, ue(q(V.get)(H, "field.title")), 1),
15993
+ R("span", J1, ue(q(V.get)(H, "field.title")), 1),
16269
15994
  R("button", {
16270
15995
  class: "text-white font-bold rounded px-1 hover:bg-primary-500 hover:text-black-500",
16271
15996
  onClick: Br((Be) => P(H), ["stop"])
16272
- }, Xx, 8, Kx)
16273
- ], 8, Ux)
15997
+ }, ex, 8, Z1)
15998
+ ], 8, Y1)
16274
15999
  ]),
16275
- q(e).filters.length - 1 !== ce ? (K(), Y("span", Yx, ue(z.$fcTr("&")), 1)) : At("", !0)
16000
+ q(e).filters.length - 1 !== ce ? (K(), Y("span", tx, ue(z.$fcTr("&")), 1)) : At("", !0)
16276
16001
  ], 64))), 128))
16277
16002
  ])
16278
16003
  ], 512), [
16279
16004
  [jh, q(e).filters.length > 0]
16280
16005
  ]),
16281
- R("div", Jx, [
16006
+ R("div", ix, [
16282
16007
  R("button", {
16283
16008
  onClick: W[1] || (W[1] = (H) => q(e).panel = ""),
16284
16009
  class: "is-button text-muted-500 rounded hover:text-red-500 !underline focus-within:!outline-none"
16285
16010
  }, ue(z.$fcTr("cancel")), 1),
16286
- R("div", Zx, [
16287
- R("div", Qx, [
16011
+ R("div", nx, [
16012
+ R("div", rx, [
16288
16013
  R("button", {
16289
16014
  onClick: W[5] || (W[5] = Br((H) => Object.keys(q(e).filters).length !== 0 ? G() : "", ["self"])),
16290
16015
  class: ct([{
@@ -16311,13 +16036,13 @@ const on = (h) => (Zr("data-v-f90907f7"), h = h(), Qr(), h), Ex = { class: "bord
16311
16036
  placeholder: z.$fcTr("filter_save_placeholder"),
16312
16037
  ref_key: "filterNameInp",
16313
16038
  ref: d
16314
- }, null, 10, e_), [
16039
+ }, null, 10, sx), [
16315
16040
  [_u, a.value]
16316
16041
  ]),
16317
16042
  R("span", {
16318
16043
  class: "px-2",
16319
16044
  onClick: W[4] || (W[4] = (H) => o.value = !1)
16320
- }, i_)
16045
+ }, ax)
16321
16046
  ], 2)
16322
16047
  ], 2),
16323
16048
  R("button", {
@@ -16333,34 +16058,338 @@ const on = (h) => (Zr("data-v-f90907f7"), h = h(), Qr(), h), Ex = { class: "bord
16333
16058
  ]);
16334
16059
  };
16335
16060
  }
16336
- }, r_ = /* @__PURE__ */ Un(n_, [["__scopeId", "data-v-f90907f7"]]);
16337
- function s_(h, e) {
16061
+ }, hx = /* @__PURE__ */ Un(lx, [["__scopeId", "data-v-f90907f7"]]);
16062
+ const ux = {
16063
+ key: 0,
16064
+ class: "w-full border bg-white rounded p-2 flex align-center mt-2"
16065
+ }, dx = ["onClick"], cx = {
16066
+ __name: "MHeaderBox",
16067
+ setup(h) {
16068
+ const e = Kt("store");
16069
+ let t = null;
16070
+ Xi(
16071
+ () => e.panel,
16072
+ (r) => {
16073
+ e.panel === "headerBox" && e.headersWithoutActions.forEach((o) => {
16074
+ t = document.querySelector(`[tabulator-field="${o.field}"]`), t.innerHTML = t.innerHTML + '<span class="fc-remove"><button class="text-white font-bold rounded px-1" onclick=""><svg aria-hidden="true" viewBox="0 0 24 24" class="h-4 w-4 text-primary-500"><path data-v-74b3417a="" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6 6 18M6 6l12 12"></path></svg></button></span>';
16075
+ });
16076
+ }
16077
+ );
16078
+ function i(r) {
16079
+ r.isHeader = !r.isHeader;
16080
+ }
16081
+ return (r, o) => q(e).panel === "headerBox" ? (K(), Y("div", ux, [
16082
+ (K(!0), Y(ft, null, _i(q(e).flatFields, (a) => (K(), Y("div", {
16083
+ key: a.field,
16084
+ class: ct(["px-1 mx-1 cursor-pointer divide-y rounded", {
16085
+ "bg-primary-600 text-white": a.isHeader
16086
+ }]),
16087
+ onClick: (u) => i(a)
16088
+ }, ue(a.title), 11, dx))), 128))
16089
+ ])) : At("", !0);
16090
+ }
16091
+ }, fx = { class: "flex items-center gap-3 relative hover:bg-muted-200 dark:hover:bg-muted-700 rounded-lg px-5 pl-3 rtl:pl-8 rtl:pr-5 py-2 duration-300" }, px = ["modelValue"], mx = { class: "text-success-500 peer-disabled:opacity-75" }, gx = /* @__PURE__ */ R("svg", {
16092
+ "aria-hidden": "true",
16093
+ viewBox: "0 0 52 52",
16094
+ "data-v-3e8a7b5f": ""
16095
+ }, [
16096
+ /* @__PURE__ */ R("circle", {
16097
+ cx: "26",
16098
+ cy: "26",
16099
+ r: "25",
16100
+ fill: "none",
16101
+ stroke: "currentColor"
16102
+ }),
16103
+ /* @__PURE__ */ R("path", {
16104
+ fill: "none",
16105
+ stroke: "currentColor",
16106
+ d: "m14.1 27.2 7.1 7.2 16.7-16.8"
16107
+ })
16108
+ ], -1), bx = { class: "font-heading text-muted-800 text-xs font-semibold leading-tight dark:text-white" }, vx = {
16109
+ __name: "SelectColumnItem",
16110
+ props: {
16111
+ checked: { default: !1 },
16112
+ columnName: { default: "" }
16113
+ },
16114
+ setup(h) {
16115
+ return (e, t) => (K(), Y("div", fx, [
16116
+ R("div", {
16117
+ class: ct(["nui-focus block focus-within:outline-current rounded-full", JSON.parse(h.checked) ? "is-checked" : "is-unchecked"])
16118
+ }, [
16119
+ R("input", {
16120
+ modelValue: h.checked,
16121
+ type: "checkbox",
16122
+ class: "peer cursor-pointer disabled:cursor-not-allowed",
16123
+ "true-value": "true",
16124
+ "false-value": "false",
16125
+ onClick: t[0] || (t[0] = (i) => e.$emit("toggle"))
16126
+ }, null, 8, px),
16127
+ R("label", mx, [
16128
+ R("div", {
16129
+ class: ct(["rtl:left-[auto] rtl:!right-0 ltr:right-[auto] ltr:left-0", JSON.parse(h.checked) ? "is-opaque" : ""])
16130
+ }, null, 2),
16131
+ gx
16132
+ ])
16133
+ ], 2),
16134
+ R("div", null, [
16135
+ R("h6", bx, ue(h.columnName), 1)
16136
+ ])
16137
+ ]));
16138
+ }
16139
+ }, wx = { class: "relative" }, yx = /* @__PURE__ */ R("ul", { class: "py-2" }, [
16140
+ /* @__PURE__ */ R("li", { class: "px-4 py-2 hover:bg-gray-100 cursor-pointer" }, "Item 1"),
16141
+ /* @__PURE__ */ R("li", { class: "px-4 py-2 hover:bg-gray-100 cursor-pointer" }, "Item 2"),
16142
+ /* @__PURE__ */ R("li", { class: "px-4 py-2 hover:bg-gray-100 cursor-pointer" }, "Item 3")
16143
+ ], -1), Cu = {
16144
+ __name: "MMenu",
16145
+ setup(h) {
16146
+ const e = ke(null);
16147
+ y1(e, (o) => console.log(o));
16148
+ const t = ke(!1), i = { isOpen: t.value }, r = {
16149
+ click: () => t.value = !t.value
16150
+ };
16151
+ return (o, a) => (K(), Y("div", wx, [
16152
+ Wo(o.$slots, "activator", Eu(xu({ on: r, props: i })), () => [
16153
+ R("button", Gt({ class: "bg-blue-500 text-white px-4 py-2 rounded-md" }, Vo(r, !0)), " Open Menu " + ue(t.value), 17)
16154
+ ]),
16155
+ t.value ? (K(), Y("div", {
16156
+ key: 0,
16157
+ class: "absolute top-[35px] left-0 mt-2 w-48 rounded-md shadow-lg z-[1]",
16158
+ ref_key: "target",
16159
+ ref: e
16160
+ }, [
16161
+ Wo(o.$slots, "default", {}, () => [
16162
+ yx
16163
+ ])
16164
+ ], 512)) : At("", !0)
16165
+ ]));
16166
+ }
16167
+ };
16168
+ const Ct = (h) => (Zr("data-v-9eed8c8f"), h = h(), Qr(), h), Cx = { class: "fc-header" }, Ex = { class: "fc-header-left-sid" }, xx = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", { viewBox: "0 0 24 24" }, [
16169
+ /* @__PURE__ */ R("path", {
16170
+ stroke: "currentColor",
16171
+ "stroke-width": "2",
16172
+ d: "M5 12h14m-7-7v14"
16173
+ })
16174
+ ], -1)), _x = [
16175
+ xx
16176
+ ], Rx = { class: "z-[1]" }, Tx = { class: "bg-muted-200 dark:bg-muted-800 cursor-pointer rounded-xl fm-light-shadow" }, Mx = { class: "group flex w-full items-center py-3 text-sm duration-300 text-muted-500 hover:bg-muted-300 dark:hover:bg-muted-700 rounded-xl justify-end flex-row-reverse" }, Sx = { class: "text-muted-400 font-sans text-xs" }, Lx = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", {
16177
+ class: "fill-muted-400 w-3.5 mx-2",
16178
+ viewBox: "0 0 512 512"
16179
+ }, [
16180
+ /* @__PURE__ */ R("path", { d: "M64 464H96v48H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3V288H336V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zM176 352h32c30.9 0 56 25.1 56 56s-25.1 56-56 56H192v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V448 368c0-8.8 7.2-16 16-16zm32 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H192v48h16zm96-80h32c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H304c-8.8 0-16-7.2-16-16V368c0-8.8 7.2-16 16-16zm32 128c8.8 0 16-7.2 16-16V400c0-8.8-7.2-16-16-16H320v96h16zm80-112c0-8.8 7.2-16 16-16h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H448v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H448v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V432 368z" })
16181
+ ], -1)), kx = { class: "group flex w-full items-center py-3 text-sm duration-300 text-muted-500 hover:bg-muted-300 dark:hover:bg-muted-700 rounded-xl justify-end flex-row-reverse" }, Ax = { class: "text-muted-400 font-sans text-xs" }, Dx = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", {
16182
+ class: "fill-muted-400 w-3.5 mx-2",
16183
+ viewBox: "0 0 512 512"
16184
+ }, [
16185
+ /* @__PURE__ */ R("path", { d: "M48 448V64c0-8.8 7.2-16 16-16H224v80c0 17.7 14.3 32 32 32h80V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V154.5c0-17-6.7-33.3-18.7-45.3L274.7 18.7C262.7 6.7 246.5 0 229.5 0H64zm90.9 233.3c-8.1-10.5-23.2-12.3-33.7-4.2s-12.3 23.2-4.2 33.7L161.6 320l-44.5 57.3c-8.1 10.5-6.3 25.5 4.2 33.7s25.5 6.3 33.7-4.2L192 359.1l37.1 47.6c8.1 10.5 23.2 12.3 33.7 4.2s12.3-23.2 4.2-33.7L222.4 320l44.5-57.3c8.1-10.5 6.3-25.5-4.2-33.7s-25.5-6.3-33.7 4.2L192 280.9l-37.1-47.6z" })
16186
+ ], -1)), Fx = { class: "group flex w-full items-center py-3 text-sm duration-300 text-muted-500 hover:bg-muted-300 dark:hover:bg-muted-700 rounded-xl justify-end flex-row-reverse" }, Px = { class: "text-muted-400 font-sans text-xs" }, Ox = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", {
16187
+ class: "fill-muted-400 w-3.5 mx-2",
16188
+ viewBox: "0 0 512 512"
16189
+ }, [
16190
+ /* @__PURE__ */ R("path", { d: "M112 160V64c0-8.8 7.2-16 16-16H357.5c4.2 0 8.3 1.7 11.3 4.7l26.5 26.5c3 3 4.7 7.1 4.7 11.3V160h48V90.5c0-17-6.7-33.3-18.7-45.3L402.7 18.7C390.7 6.7 374.5 0 357.5 0H128C92.7 0 64 28.7 64 64v96h48zm16 208H384v96H128V368zm-16-48c-17.7 0-32 14.3-32 32H48V256c0-8.8 7.2-16 16-16H448c8.8 0 16 7.2 16 16v96H432c0-17.7-14.3-32-32-32H112zm320 80h48c17.7 0 32-14.3 32-32V256c0-35.3-28.7-64-64-64H64c-35.3 0-64 28.7-64 64V368c0 17.7 14.3 32 32 32H80v80c0 17.7 14.3 32 32 32H400c17.7 0 32-14.3 32-32V400z" })
16191
+ ], -1)), zx = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("path", { d: "M371.2 122.9C340.3 96.2 300 80 256 80C158.8 80 80 158.8 80 256s78.8 176 176 176c39.7 0 76.2-13.1 105.6-35.2c10.6-8 25.6-5.8 33.6 4.8s5.8 25.6-4.8 33.6C353 463.3 306.4 480 256 480C132.3 480 32 379.7 32 256S132.3 32 256 32c57.3 0 109.6 21.5 149.2 56.9l30.5-30.5c6.6-6.6 15.6-10.3 25-10.3C480.2 48 496 63.8 496 83.3V200c0 13.3-10.7 24-24 24H355.3c-19.5 0-35.3-15.8-35.3-35.3c0-9.4 3.7-18.3 10.3-25l40.8-40.8zm76.8-9L385.9 176H448V113.9z" }, null, -1)), Hx = [
16192
+ zx
16193
+ ], Ix = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", { viewBox: "0 0 512 512" }, [
16194
+ /* @__PURE__ */ R("path", { d: "M384 48c8.8 0 16 7.2 16 16V448c0 8.8-7.2 16-16 16H64c-8.8 0-16-7.2-16-16V64c0-8.8 7.2-16 16-16H384zM64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H64zM80 112v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V112c0-8.8-7.2-16-16-16H96c-8.8 0-16 7.2-16 16zM96 352c-8.8 0-16 7.2-16 16v32c0 8.8 7.2 16 16 16h32c8.8 0 16-7.2 16-16V368c0-8.8-7.2-16-16-16H96zm80-224c0 13.3 10.7 24 24 24H344c13.3 0 24-10.7 24-24s-10.7-24-24-24H200c-13.3 0-24 10.7-24 24zm32 128c0 13.3 10.7 24 24 24H344c13.3 0 24-10.7 24-24s-10.7-24-24-24H232c-13.3 0-24 10.7-24 24zM176 384c0 13.3 10.7 24 24 24H344c13.3 0 24-10.7 24-24s-10.7-24-24-24H200c-13.3 0-24 10.7-24 24zm-4.7-140.7c6.2-6.2 6.2-16.4 0-22.6s-16.4-6.2-22.6 0L112 257.4 99.3 244.7c-6.2-6.2-16.4-6.2-22.6 0s-6.2 16.4 0 22.6l24 24c6.2 6.2 16.4 6.2 22.6 0l48-48z" })
16195
+ ], -1)), Bx = [
16196
+ Ix
16197
+ ], Nx = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("svg", {
16198
+ viewBox: "0 0 448 512",
16199
+ class: "z-[1]"
16200
+ }, [
16201
+ /* @__PURE__ */ R("path", { d: "M64 448c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32H384c17.7 0 32 14.3 32 32V416c0 17.7-14.3 32-32 32H64zM0 416c0 35.3 28.7 64 64 64H384c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64C28.7 32 0 60.7 0 96V416zM128 288c8.8 0 16-7.2 16-16V144c0-8.8-7.2-16-16-16s-16 7.2-16 16V272c0 8.8 7.2 16 16 16zm176 48c0 8.8 7.2 16 16 16s16-7.2 16-16V144c0-8.8-7.2-16-16-16s-16 7.2-16 16V336zm-80-80c8.8 0 16-7.2 16-16V144c0-8.8-7.2-16-16-16s-16 7.2-16 16v96c0 8.8 7.2 16 16 16z" })
16202
+ ], -1)), Wx = [
16203
+ Nx
16204
+ ], Vx = { class: "bg-white dark:bg-muted-800 rounded-xl pt-1 rtl:text-right ltr:text-left fm-light-shadow" }, Gx = { class: "m-3 mt-2 text-muted-600 dark:text-muted-200" }, $x = { class: "p-2" }, Ux = { class: "fm-header-rigth-sid flex w-full sm:w-auto rtl:flex-row-reverse rtl:justify-end z-10" }, jx = { key: 0 }, Kx = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("span", null, null, -1)), qx = [
16205
+ Kx
16206
+ ], Xx = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("path", { d: "M0 73.7C0 50.7 18.7 32 41.7 32H470.3c23 0 41.7 18.7 41.7 41.7c0 9.6-3.3 18.9-9.4 26.3L336 304.5V447.7c0 17.8-14.5 32.3-32.3 32.3c-7.3 0-14.4-2.5-20.1-7l-92.5-73.4c-9.6-7.6-15.1-19.1-15.1-31.3V304.5L9.4 100C3.3 92.6 0 83.3 0 73.7zM55 80L218.6 280.8c3.5 4.3 5.4 9.6 5.4 15.2v68.4l64 50.8V296c0-5.5 1.9-10.9 5.4-15.2L457 80H55z" }, null, -1)), Yx = [
16207
+ Xx
16208
+ ], Jx = { class: "group/nui-input relative rtl:" }, Zx = ["placeholder"], Qx = { class: "ltr:left-0 text-muted-400 group-focus-within/nui-input:text-primary-500 absolute end-0 rtl:start-0 top-0 flex items-center justify-center transition-colors duration-300 peer-disabled:cursor-not-allowed peer-disabled:opacity-75 h-10 w-10" }, e_ = {
16209
+ key: 0,
16210
+ class: "icon h-[1.15rem] w-[1.15rem]",
16211
+ width: "1em",
16212
+ height: "1em",
16213
+ viewBox: "0 0 24 24"
16214
+ }, t_ = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("g", {
16215
+ fill: "none",
16216
+ stroke: "currentColor",
16217
+ "stroke-linecap": "round",
16218
+ "stroke-linejoin": "round",
16219
+ "stroke-width": "2"
16220
+ }, [
16221
+ /* @__PURE__ */ R("circle", {
16222
+ cx: "11",
16223
+ cy: "11",
16224
+ r: "8"
16225
+ }),
16226
+ /* @__PURE__ */ R("path", { d: "m21 21l-4.35-4.35" })
16227
+ ], -1)), i_ = [
16228
+ t_
16229
+ ], n_ = {
16230
+ key: 1,
16231
+ xmlns: "http://www.w3.org/2000/svg",
16232
+ width: "1em",
16233
+ height: "1em",
16234
+ viewBox: "0 0 512 512",
16235
+ class: "icon animate-spin"
16236
+ }, r_ = /* @__PURE__ */ Ct(() => /* @__PURE__ */ R("path", { d: "M457 372c11.5 6.6 26.3 2.7 31.8-9.3C503.7 330.2 512 294.1 512 256C512 122.7 410.1 13.2 280 1.1C266.8-.1 256 10.7 256 24v0c0 13.3 10.8 23.9 24 25.4C383.5 61.2 464 149.2 464 256c0 29.3-6.1 57.3-17 82.6c-5.3 12.2-1.5 26.8 10 33.5v0z" }, null, -1)), s_ = [
16237
+ r_
16238
+ ], o_ = {
16239
+ __name: "MButtonBox",
16240
+ setup(h) {
16241
+ const { event: e } = et, t = Kt("store");
16242
+ function i(w) {
16243
+ w === t.panel ? t.panel = "" : t.panel = w;
16244
+ }
16245
+ const r = ke(null);
16246
+ ea(() => {
16247
+ r.value = document.body.getAttribute("dir");
16248
+ });
16249
+ const o = Io(() => t.flatFields.find((w) => w.field === "_select_")), a = Io(() => !!o.value.isHeader);
16250
+ function u() {
16251
+ o.value.isHeader = !o.value.isHeader, o.value.isHeader || t.selected.clear();
16252
+ }
16253
+ const d = ke(!1);
16254
+ function f() {
16255
+ d.value = !0, t.loadItems().finally(() => d.value = !1);
16256
+ }
16257
+ const m = V.debounce(f, 600);
16258
+ return (w, v) => (K(), Y("div", Cx, [
16259
+ R("div", Ex, [
16260
+ R("button", Gt(w.props, {
16261
+ class: "fc-plus-btn",
16262
+ onClick: v[0] || (v[0] = (C) => q(e)("createBtn"))
16263
+ }), _x, 16),
16264
+ Ue(Cu, null, {
16265
+ activator: Ut(({ on: C, props: M }) => [
16266
+ R("button", Gt({
16267
+ class: M.isOpen ? "before:block" : "before:hidden"
16268
+ }, M, Vo(C, !0), { class: "fc-header-icon-btn fc-drop-down-btn min-w-[130px]" }), [
16269
+ R("span", Rx, ue(w.$fcTr("export")), 1)
16270
+ ], 16)
16271
+ ]),
16272
+ default: Ut(() => [
16273
+ R("div", Tx, [
16274
+ R("a", Mx, [
16275
+ R("p", Sx, ue(w.$fcTr("export_as_pdf")), 1),
16276
+ Lx
16277
+ ]),
16278
+ R("a", kx, [
16279
+ R("p", Ax, ue(w.$fcTr("export_as_excel")), 1),
16280
+ Dx
16281
+ ]),
16282
+ R("a", Fx, [
16283
+ R("p", Px, ue(w.$fcTr("print")), 1),
16284
+ Ox
16285
+ ])
16286
+ ])
16287
+ ]),
16288
+ _: 1
16289
+ }),
16290
+ R("button", Gt(w.props, {
16291
+ class: "fc-header-icon-btn",
16292
+ onClick: v[1] || (v[1] = (...C) => q(t).reloadData && q(t).reloadData(...C))
16293
+ }), [
16294
+ (K(), Y("svg", {
16295
+ class: ct({ spin: q(t).loadings.mainLoading }),
16296
+ viewBox: "0 0 512 512"
16297
+ }, Hx, 2))
16298
+ ], 16),
16299
+ R("button", Gt(w.props, {
16300
+ class: ["fc-header-icon-btn", { "fm-active-btn": a.value }],
16301
+ onClick: u
16302
+ }), Bx, 16),
16303
+ Ue(Cu, {
16304
+ "close-on-content-click": !1,
16305
+ location: r.value === "rtl" ? "end" : "start"
16306
+ }, {
16307
+ activator: Ut(({ props: C, on: M }) => [
16308
+ R("button", Gt(Vo(M, !0), {
16309
+ class: ["fc-header-icon-btn", [
16310
+ C.isOpen ? "light:!bg-white dark:bg-muted-800" : "",
16311
+ C.isOpen ? r.value === "rtl" ? "expanded-rtl" : "expanded2" : ""
16312
+ ]]
16313
+ }), Wx, 16)
16314
+ ]),
16315
+ default: Ut(() => [
16316
+ R("div", Vx, [
16317
+ R("div", Gx, ue(w.$fcTr("custom_column")), 1),
16318
+ R("ul", $x, [
16319
+ (K(!0), Y(ft, null, _i(q(t).flatFieldsWithoutActions, (C) => (K(), es(vx, {
16320
+ key: C.field,
16321
+ "column-name": C.title,
16322
+ checked: C.isHeader,
16323
+ onToggle: (M) => C.isHeader = !C.isHeader
16324
+ }, null, 8, ["column-name", "checked", "onToggle"]))), 128))
16325
+ ])
16326
+ ])
16327
+ ]),
16328
+ _: 1
16329
+ }, 8, ["location"])
16330
+ ]),
16331
+ R("div", Ux, [
16332
+ R("button", Gt(w.props, {
16333
+ class: ["test fc-header-icon-btn transform transition-all", q(t).panel === "filters" ? "!bg-white dark:!bg-muted-800 !rounded-b-none " : ""],
16334
+ onClick: v[2] || (v[2] = (C) => i("filters"))
16335
+ }), [
16336
+ Ue(ta, { name: "scale" }, {
16337
+ default: Ut(() => [
16338
+ q(t).panel === "filters" ? (K(), Y("div", jx, qx)) : At("", !0)
16339
+ ]),
16340
+ _: 1
16341
+ }),
16342
+ (K(), Y("svg", {
16343
+ class: ct(q(t).panel === "filters" ? "light:!fill-primary-700" : ""),
16344
+ stroke: "currentColor",
16345
+ viewBox: "0 0 512 512"
16346
+ }, Yx, 2))
16347
+ ], 16),
16348
+ R("div", Jx, [
16349
+ Dn(R("input", {
16350
+ "onUpdate:modelValue": v[3] || (v[3] = (C) => q(t).searchParam = C),
16351
+ type: "text",
16352
+ class: "nui-focus !pl-4 border-muted-300 text-muted-600 placeholder:text-muted-300 dark:border-muted-700 dark:bg-muted-900/75 dark:text-muted-200 dark:placeholder:text-muted-500 dark:focus:border-muted-700 peer w-full border bg-white font-sans transition-all duration-300 disabled:cursor-not-allowed disabled:opacity-75 px-2 h-10 py-2 text-sm leading-5 pe-4 ps-9 rounded-full",
16353
+ placeholder: w.$fcTr("search"),
16354
+ onKeyup: v[4] || (v[4] = (...C) => q(m) && q(m)(...C))
16355
+ }, null, 40, Zx), [
16356
+ [_u, q(t).searchParam]
16357
+ ]),
16358
+ R("div", Qx, [
16359
+ d.value ? (K(), Y("svg", n_, s_)) : (K(), Y("svg", e_, i_))
16360
+ ])
16361
+ ])
16362
+ ])
16363
+ ]));
16364
+ }
16365
+ }, a_ = /* @__PURE__ */ Un(o_, [["__scopeId", "data-v-9eed8c8f"]]);
16366
+ function l_(h, e) {
16338
16367
  return Array.isArray(h) ? V.every(h, (t) => V.isType(t, e)) : !1;
16339
16368
  }
16340
- const o_ = (h, e) => {
16369
+ const h_ = (h, e) => {
16341
16370
  const t = V.get(h, "field"), i = V.get(h, "valueProp");
16342
- return s_(e, "object") ? e.map((r) => V.get(r, i)) : V.get(e, t);
16343
- }, Cd = (h, e) => V.get(e, h.field), a_ = {
16344
- select: o_,
16371
+ return l_(e, "object") ? e.map((r) => V.get(r, i)) : V.get(e, t);
16372
+ }, Cd = (h, e) => V.get(e, h.field), u_ = {
16373
+ select: h_,
16345
16374
  text: Cd
16346
- }, l_ = (h, e) => {
16375
+ }, d_ = (h, e) => {
16347
16376
  if (h.normalizer)
16348
16377
  return h.normalizer(e);
16349
- const t = a_[h.type];
16378
+ const t = u_[h.type];
16350
16379
  return t ? t(h, e) : Cd(h, e);
16351
16380
  };
16352
- const h_ = (h) => (Zr("data-v-3044facd"), h = h(), Qr(), h), u_ = {
16381
+ const c_ = (h) => (Zr("data-v-c3b8e659"), h = h(), Qr(), h), f_ = {
16353
16382
  key: 0,
16354
16383
  class: "fixed z-10 inset-0 overflow-y-auto backdrop-blur-[4px]"
16355
- }, d_ = { class: "flex items-center overflow-y justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" }, c_ = /* @__PURE__ */ h_(() => /* @__PURE__ */ R("div", { class: "fixed inset-0 transition-opacity" }, [
16384
+ }, p_ = { class: "flex items-center overflow-y justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" }, m_ = /* @__PURE__ */ c_(() => /* @__PURE__ */ R("div", { class: "fixed inset-0 transition-opacity" }, [
16356
16385
  /* @__PURE__ */ R("div", { class: "absolute inset-0 bg-gray-500 opacity-50" })
16357
- ], -1)), f_ = { class: "inline-block max-h-full align-bottom bg-white rounded-lg text-left shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, p_ = { class: "bg-card-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4 dark:bg-muted-700 dark:text-muted-200" }, m_ = { class: "flex flex-col text-right" }, g_ = { class: "mb-4 flex justify-between w-full" }, b_ = {
16386
+ ], -1)), g_ = { class: "inline-block max-h-full align-bottom bg-white rounded-lg text-left shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, b_ = { class: "bg-card-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4 dark:bg-muted-700 dark:text-muted-200" }, v_ = { class: "flex flex-col text-right" }, w_ = { class: "mb-4 flex justify-between w-full" }, y_ = {
16358
16387
  key: 0,
16359
16388
  class: "text-primerr-700"
16360
- }, v_ = {
16389
+ }, C_ = {
16361
16390
  key: 1,
16362
16391
  class: "text-primerr-700"
16363
- }, w_ = { class: "mb-5" }, y_ = { class: "flex justify-end" }, C_ = ["disabled"], E_ = { key: 0 }, x_ = { key: 1 }, __ = {
16392
+ }, E_ = { class: "mb-5" }, x_ = { class: "flex justify-end" }, __ = ["disabled"], R_ = { key: 0 }, T_ = { key: 1 }, M_ = {
16364
16393
  __name: "MDialogForm",
16365
16394
  setup(h) {
16366
16395
  const { event: e, listen: t } = et, i = Kt("store"), r = ke(!1), o = ke(null);
@@ -16368,7 +16397,7 @@ const h_ = (h) => (Zr("data-v-3044facd"), h = h(), Qr(), h), u_ = {
16368
16397
  const u = (f) => {
16369
16398
  let m = {};
16370
16399
  for (const w of i.flatFieldsWithoutActions)
16371
- m[w.field] = l_(w, f);
16400
+ m[w.field] = d_(w, f);
16372
16401
  return m;
16373
16402
  };
16374
16403
  return (() => {
@@ -16378,9 +16407,16 @@ const h_ = (h) => (Zr("data-v-3044facd"), h = h(), Qr(), h), u_ = {
16378
16407
  a = f, i.isEditing = !0, r.value = !0, i.form = u(f);
16379
16408
  }), t("handleDialogForm", (f) => {
16380
16409
  r.value = f;
16381
- }), t("saveForm", () => (o.value.validate(), o.value.invalid ? void 0 : (() => {
16382
- i.isEditing ? i.editItem({ ...i.form, id: a == null ? void 0 : a.id }) : i.addItem({ ...i.form });
16383
- })())), t(["createBtn"], () => {
16410
+ }), t("saveForm", () => {
16411
+ try {
16412
+ if (o.value.validate(), o.value.invalid)
16413
+ return;
16414
+ } catch {
16415
+ }
16416
+ return (() => {
16417
+ i.isEditing ? i.editItem({ ...i.form, id: a == null ? void 0 : a.id }) : i.addItem({ ...i.form });
16418
+ })();
16419
+ }), t(["createBtn"], () => {
16384
16420
  i.form = {};
16385
16421
  }), t("editTheItem", (f) => {
16386
16422
  edit(f);
@@ -16388,26 +16424,26 @@ const h_ = (h) => (Zr("data-v-3044facd"), h = h(), Qr(), h), u_ = {
16388
16424
  add(f);
16389
16425
  });
16390
16426
  })(), (f, m) => {
16391
- const w = Vo("Vueform");
16427
+ const w = No("Vueform");
16392
16428
  return K(), es(ta, {
16393
16429
  name: "fade",
16394
16430
  appear: ""
16395
16431
  }, {
16396
16432
  default: Ut(() => [
16397
- r.value ? (K(), Y("div", u_, [
16398
- R("div", d_, [
16399
- c_,
16400
- R("div", f_, [
16401
- R("div", p_, [
16402
- R("div", m_, [
16403
- R("h1", g_, [
16404
- q(i).isEditing ? (K(), Y("span", b_, ue(f.$fcTr("edit")), 1)) : (K(), Y("span", v_, ue(f.$fcTr("add")), 1)),
16433
+ r.value ? (K(), Y("div", f_, [
16434
+ R("div", p_, [
16435
+ m_,
16436
+ R("div", g_, [
16437
+ R("div", b_, [
16438
+ R("div", v_, [
16439
+ R("h1", w_, [
16440
+ q(i).isEditing ? (K(), Y("span", y_, ue(f.$fcTr("edit")), 1)) : (K(), Y("span", C_, ue(f.$fcTr("add")), 1)),
16405
16441
  R("i", {
16406
16442
  class: "text-primerr-700 fal fa-times cursor-pointer",
16407
16443
  onClick: m[0] || (m[0] = (v) => r.value = !1)
16408
16444
  })
16409
16445
  ]),
16410
- R("div", w_, [
16446
+ R("div", E_, [
16411
16447
  Ue(w, Gt({
16412
16448
  modelValue: q(i).form,
16413
16449
  "onUpdate:modelValue": m[1] || (m[1] = (v) => q(i).form = v),
@@ -16419,7 +16455,7 @@ const h_ = (h) => (Zr("data-v-3044facd"), h = h(), Qr(), h), u_ = {
16419
16455
  sync: ""
16420
16456
  }), null, 16, ["modelValue", "schema"])
16421
16457
  ]),
16422
- R("div", y_, [
16458
+ R("div", x_, [
16423
16459
  R("button", {
16424
16460
  onClick: m[2] || (m[2] = (v) => r.value = !1),
16425
16461
  class: "border p-2 px-8 rounded-md text-red-400 border-red-400"
@@ -16429,8 +16465,8 @@ const h_ = (h) => (Zr("data-v-3044facd"), h = h(), Qr(), h), u_ = {
16429
16465
  onClick: m[3] || (m[3] = (v) => q(e)("saveForm")),
16430
16466
  class: "border p-2 mx-1 px-8 rounded-md text-green-400 border-green-400"
16431
16467
  }, [
16432
- q(i).loadings.mainLoading ? (K(), Y("span", x_, "loading")) : (K(), Y("span", E_, ue(f.$fcTr("save")), 1))
16433
- ], 8, C_)
16468
+ q(i).loadings.mainLoading ? (K(), Y("span", T_, "loading")) : (K(), Y("span", R_, ue(f.$fcTr("save")), 1))
16469
+ ], 8, __)
16434
16470
  ])
16435
16471
  ])
16436
16472
  ])
@@ -16442,16 +16478,16 @@ const h_ = (h) => (Zr("data-v-3044facd"), h = h(), Qr(), h), u_ = {
16442
16478
  });
16443
16479
  };
16444
16480
  }
16445
- }, R_ = /* @__PURE__ */ Un(__, [["__scopeId", "data-v-3044facd"]]), T_ = {};
16446
- function M_(h, e) {
16481
+ }, S_ = /* @__PURE__ */ Un(M_, [["__scopeId", "data-v-c3b8e659"]]), L_ = {};
16482
+ function k_(h, e) {
16447
16483
  return K(), Y("div");
16448
16484
  }
16449
- const S_ = /* @__PURE__ */ Un(T_, [["render", M_]]), L_ = {
16485
+ const A_ = /* @__PURE__ */ Un(L_, [["render", k_]]), D_ = {
16450
16486
  key: 0,
16451
16487
  class: "fixed z-10 inset-0 overflow-y-auto"
16452
- }, k_ = { class: "flex items-center overflow-y justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" }, A_ = /* @__PURE__ */ R("div", { class: "fixed inset-0 transition-opacity" }, [
16488
+ }, F_ = { class: "flex items-center overflow-y justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0" }, P_ = /* @__PURE__ */ R("div", { class: "fixed inset-0 transition-opacity" }, [
16453
16489
  /* @__PURE__ */ R("div", { class: "absolute inset-0 bg-gray-500 opacity-75" })
16454
- ], -1), D_ = { class: "inline-block max-h-full align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, F_ = { class: "bg-card-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, P_ = { class: "flex flex-col text-right" }, O_ = { class: "mb-4 flex justify-between w-full" }, z_ = /* @__PURE__ */ R("span", { class: "text-primerr-700" }, "حذف", -1), H_ = { class: "mb-5 flex flex-row flex-wrap" }, I_ = { class: "flex justify-end" }, B_ = ["disabled"], N_ = { key: 0 }, W_ = { key: 1 }, V_ = {
16490
+ ], -1), O_ = { class: "inline-block max-h-full align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full" }, z_ = { class: "bg-card-800 px-4 pt-5 pb-4 sm:p-6 sm:pb-4" }, H_ = { class: "flex flex-col text-right" }, I_ = { class: "mb-4 flex justify-between w-full" }, B_ = /* @__PURE__ */ R("span", { class: "text-primerr-700" }, "حذف", -1), N_ = { class: "mb-5 flex flex-row flex-wrap" }, W_ = { class: "flex justify-end" }, V_ = ["disabled"], G_ = { key: 0 }, $_ = { key: 1 }, U_ = {
16455
16491
  __name: "MDeleteDialog",
16456
16492
  setup(h) {
16457
16493
  const e = Kt("store"), t = ke(!1);
@@ -16465,21 +16501,21 @@ const S_ = /* @__PURE__ */ Un(T_, [["render", M_]]), L_ = {
16465
16501
  appear: ""
16466
16502
  }, {
16467
16503
  default: Ut(() => [
16468
- t.value ? (K(), Y("div", L_, [
16469
- R("div", k_, [
16470
- A_,
16471
- R("div", D_, [
16472
- R("div", F_, [
16473
- R("div", P_, [
16474
- R("h1", O_, [
16475
- z_,
16504
+ t.value ? (K(), Y("div", D_, [
16505
+ R("div", F_, [
16506
+ P_,
16507
+ R("div", O_, [
16508
+ R("div", z_, [
16509
+ R("div", H_, [
16510
+ R("h1", I_, [
16511
+ B_,
16476
16512
  R("i", {
16477
16513
  class: "text-primerr-700 fal fa-times cursor-pointer",
16478
16514
  onClick: o[0] || (o[0] = (a) => t.value = !1)
16479
16515
  })
16480
16516
  ]),
16481
- R("div", H_, ue(r.$fcTr("alert_to_delete")), 1),
16482
- R("div", I_, [
16517
+ R("div", N_, ue(r.$fcTr("alert_to_delete")), 1),
16518
+ R("div", W_, [
16483
16519
  R("button", {
16484
16520
  onClick: o[1] || (o[1] = (a) => t.value = !1),
16485
16521
  class: "border p-2 px-8 rounded-md text-red-400 border-red-400"
@@ -16489,8 +16525,8 @@ const S_ = /* @__PURE__ */ Un(T_, [["render", M_]]), L_ = {
16489
16525
  class: "border p-2 mx-1 px-8 rounded-md text-green-400 border-green-400",
16490
16526
  onClick: o[2] || (o[2] = (a) => q(e).remove(q(i)))
16491
16527
  }, [
16492
- q(e).loadings.mainLoading ? (K(), Y("span", W_, "loading")) : (K(), Y("span", N_, ue(r.$fcTr("yes")), 1))
16493
- ], 8, B_)
16528
+ q(e).loadings.mainLoading ? (K(), Y("span", $_, "loading")) : (K(), Y("span", G_, ue(r.$fcTr("yes")), 1))
16529
+ ], 8, V_)
16494
16530
  ])
16495
16531
  ])
16496
16532
  ])
@@ -16501,40 +16537,11 @@ const S_ = /* @__PURE__ */ Un(T_, [["render", M_]]), L_ = {
16501
16537
  _: 1
16502
16538
  }));
16503
16539
  }
16504
- };
16505
- const G_ = {
16506
- key: 0,
16507
- class: "w-full border bg-white rounded p-2 flex align-center mt-2"
16508
- }, $_ = ["onClick"], U_ = {
16509
- __name: "MHeaderBox",
16510
- setup(h) {
16511
- const e = Kt("store");
16512
- let t = null;
16513
- Xi(
16514
- () => e.panel,
16515
- (r) => {
16516
- e.panel === "headerBox" && e.headersWithoutActions.forEach((o) => {
16517
- t = document.querySelector(`[tabulator-field="${o.field}"]`), t.innerHTML = t.innerHTML + '<span class="fc-remove"><button class="text-white font-bold rounded px-1" onclick=""><svg aria-hidden="true" viewBox="0 0 24 24" class="h-4 w-4 text-primary-500"><path data-v-74b3417a="" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M18 6 6 18M6 6l12 12"></path></svg></button></span>';
16518
- });
16519
- }
16520
- );
16521
- function i(r) {
16522
- r.isHeader = !r.isHeader;
16523
- }
16524
- return (r, o) => q(e).panel === "headerBox" ? (K(), Y("div", G_, [
16525
- (K(!0), Y(ft, null, _i(q(e).flatFields, (a) => (K(), Y("div", {
16526
- key: a.field,
16527
- class: ct(["px-1 mx-1 cursor-pointer divide-y rounded", {
16528
- "bg-primary-600 text-white": a.isHeader
16529
- }]),
16530
- onClick: (u) => i(a)
16531
- }, ue(a.title), 11, $_))), 128))
16532
- ])) : At("", !0);
16533
- }
16534
16540
  }, J_ = {
16535
16541
  __name: "MCrud",
16536
16542
  props: {
16537
16543
  options: { default: () => ({}) },
16544
+ structure: { default: () => ({}) },
16538
16545
  hiddenActions: { default: () => [] },
16539
16546
  fields: { default: () => [] },
16540
16547
  dir: {
@@ -16548,19 +16555,20 @@ const G_ = {
16548
16555
  fields: t.fields,
16549
16556
  hiddenActions: t.hiddenActions,
16550
16557
  options: t.options,
16558
+ structure: t.structure,
16551
16559
  route: t.route
16552
16560
  });
16553
16561
  return Kh("store", i), Kh("dir", t.dir), document.body.setAttribute("dir", t.dir), ea(() => {
16554
16562
  e("mounted");
16555
16563
  }), (r, o) => (K(), Y(ft, null, [
16556
- Ue(bx),
16557
- Ue(r_),
16558
- Ue(U_),
16564
+ Ue(a_),
16565
+ Ue(hx),
16566
+ Ue(cx),
16559
16567
  Ue(l1),
16560
- Ue(R_),
16561
16568
  Ue(S_),
16562
- Ue(V_),
16563
- No(r.$slots, "extra")
16569
+ Ue(A_),
16570
+ Ue(U_),
16571
+ Wo(r.$slots, "extra")
16564
16572
  ], 64));
16565
16573
  }
16566
16574
  };