@amirjalili1374/ui-kit 1.5.30 → 1.5.32

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/ui-kit.es.js CHANGED
@@ -2,7 +2,7 @@ var __defProp2 = Object.defineProperty;
2
2
  var __defNormalProp2 = (obj, key2, value2) => key2 in obj ? __defProp2(obj, key2, { enumerable: true, configurable: true, writable: true, value: value2 }) : obj[key2] = value2;
3
3
  var __publicField = (obj, key2, value2) => __defNormalProp2(obj, typeof key2 !== "symbol" ? key2 + "" : key2, value2);
4
4
  import { warn, reactive, watchEffect, toRef, capitalize, shallowRef, Fragment, camelize, isVNode, Comment, unref, getCurrentInstance as getCurrentInstance$1, ref, computed, provide, inject, defineComponent as defineComponent$1, h, createElementVNode, normalizeStyle, normalizeClass, toValue, resolveDynamicComponent, nextTick, onScopeDispose, createVNode, mergeProps, toRefs, Text, isRef, TransitionGroup, Transition, watch, onBeforeMount, onBeforeUnmount, withDirectives, vShow, toDisplayString, effectScope, toRaw, readonly, openBlock, createBlock, withCtx, createCommentVNode, useId, onMounted, onUpdated, Teleport, createTextVNode, createElementBlock, renderSlot, onDeactivated, cloneVNode, renderList, createSlots, normalizeProps, guardReactiveProps, resolveComponent, onActivated, onBeforeUpdate, withModifiers, vModelText, withKeys, onUnmounted } from "vue";
5
- import { IconHome, IconArrowBadgeLeft, IconChevronDown, IconChevronRight, IconCheck, IconSquareX, IconMinus, IconPlus, IconRefresh, IconChevronLeft, IconDownload, IconPrinter, IconMaximize, IconMinimize, IconX, IconFileText, IconPencil, IconClock, IconMenu2, IconPalette } from "@tabler/icons-vue";
5
+ import { IconHome, IconArrowBadgeLeft, IconCheck, IconSquareX, IconChevronDown, IconChevronRight, IconMinus, IconPlus, IconRefresh, IconChevronLeft, IconDownload, IconPrinter, IconMaximize, IconMinimize, IconX, IconFileText, IconPencil, IconClock, IconMenu2, IconPalette } from "@tabler/icons-vue";
6
6
  import axios from "axios";
7
7
  import { useDebounceFn } from "@vueuse/core";
8
8
  import { useRouter as useRouter$1 } from "vue-router";
@@ -18251,26 +18251,26 @@ const _hoisted_7$1 = {
18251
18251
  key: 0,
18252
18252
  class: "me-1"
18253
18253
  };
18254
- const _hoisted_8$1 = ["aria-busy", "aria-live"];
18255
- const _hoisted_9$1 = {
18254
+ const _hoisted_8$1 = { class: "d-flex align-center mb-3" };
18255
+ const _hoisted_9$1 = { class: "d-flex justify-end mt-3 gap-2" };
18256
+ const _hoisted_10$1 = ["aria-busy", "aria-live"];
18257
+ const _hoisted_11$1 = {
18256
18258
  key: 0,
18257
18259
  class: "grouped-table"
18258
18260
  };
18259
- const _hoisted_10$1 = { class: "group-controls mb-3" };
18260
- const _hoisted_11$1 = { class: "groups-container" };
18261
- const _hoisted_12$1 = ["onClick", "onKeydown", "aria-expanded", "aria-controls", "id"];
18262
- const _hoisted_13$1 = { class: "group-label" };
18263
- const _hoisted_14$1 = ["id", "aria-labelledby"];
18264
- const _hoisted_15$1 = ["tabindex", "onKeydown", "onClick"];
18265
- const _hoisted_16$1 = {
18261
+ const _hoisted_12$1 = { class: "group-controls mb-3" };
18262
+ const _hoisted_13$1 = { class: "groups-container" };
18263
+ const _hoisted_14$1 = ["onClick", "onKeydown", "aria-expanded", "aria-controls", "id"];
18264
+ const _hoisted_15$1 = { class: "group-label" };
18265
+ const _hoisted_16$1 = ["id", "aria-labelledby"];
18266
+ const _hoisted_17 = ["tabindex", "onKeydown", "onClick"];
18267
+ const _hoisted_18 = {
18266
18268
  key: 2,
18267
18269
  class: "d-flex align-center",
18268
18270
  style: { "gap": "4px" }
18269
18271
  };
18270
- const _hoisted_17 = ["onClick"];
18271
- const _hoisted_18 = ["onClick"];
18272
- const _hoisted_19 = { class: "d-flex align-center mb-3" };
18273
- const _hoisted_20 = { class: "d-flex justify-end mt-3 gap-2" };
18272
+ const _hoisted_19 = ["onClick"];
18273
+ const _hoisted_20 = ["onClick"];
18274
18274
  const _hoisted_21 = ["tabindex", "onKeydown", "onClick"];
18275
18275
  const _hoisted_22 = {
18276
18276
  key: 2,
@@ -18280,7 +18280,7 @@ const _hoisted_22 = {
18280
18280
  const _hoisted_23 = ["onClick"];
18281
18281
  const _hoisted_24 = ["onClick"];
18282
18282
  const _hoisted_25 = {
18283
- key: 3,
18283
+ key: 2,
18284
18284
  class: "d-flex justify-center align-center pa-4"
18285
18285
  };
18286
18286
  const _hoisted_26 = {
@@ -19423,7 +19423,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19423
19423
  class: "me-2",
19424
19424
  onClick: _cache[0] || (_cache[0] = ($event) => openDialog())
19425
19425
  }, {
19426
- default: withCtx(() => [..._cache[25] || (_cache[25] = [
19426
+ default: withCtx(() => [..._cache[24] || (_cache[24] = [
19427
19427
  createTextVNode("ایجاد ✅", -1)
19428
19428
  ])]),
19429
19429
  _: 1
@@ -19433,7 +19433,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19433
19433
  class: "me-2",
19434
19434
  onClick: _cache[1] || (_cache[1] = ($event) => filterDialog.value = true)
19435
19435
  }, {
19436
- default: withCtx(() => [..._cache[26] || (_cache[26] = [
19436
+ default: withCtx(() => [..._cache[25] || (_cache[25] = [
19437
19437
  createTextVNode("فیلتر 🔍", -1)
19438
19438
  ])]),
19439
19439
  _: 1
@@ -19444,7 +19444,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19444
19444
  class: "me-2",
19445
19445
  onClick: _cache[2] || (_cache[2] = ($event) => fetchData())
19446
19446
  }, {
19447
- default: withCtx(() => [..._cache[27] || (_cache[27] = [
19447
+ default: withCtx(() => [..._cache[26] || (_cache[26] = [
19448
19448
  createTextVNode("جستجو 🔍", -1)
19449
19449
  ])]),
19450
19450
  _: 1
@@ -19454,7 +19454,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19454
19454
  onClick: _cache[3] || (_cache[3] = ($event) => unref(debouncedFetchData)()),
19455
19455
  loading: loading.value
19456
19456
  }, {
19457
- default: withCtx(() => [..._cache[28] || (_cache[28] = [
19457
+ default: withCtx(() => [..._cache[27] || (_cache[27] = [
19458
19458
  createTextVNode("بروزرسانی 🔄", -1)
19459
19459
  ])]),
19460
19460
  _: 1
@@ -19475,7 +19475,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19475
19475
  class: "me-2",
19476
19476
  onClick: clearSelection
19477
19477
  }, {
19478
- default: withCtx(() => [..._cache[29] || (_cache[29] = [
19478
+ default: withCtx(() => [..._cache[28] || (_cache[28] = [
19479
19479
  createTextVNode(" پاک کردن انتخاب ", -1)
19480
19480
  ])]),
19481
19481
  _: 1
@@ -19495,7 +19495,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19495
19495
  onClick: openGroupDeleteDialog
19496
19496
  }, {
19497
19497
  default: withCtx(() => [
19498
- _cache[30] || (_cache[30] = createElementVNode("span", { class: "me-1" }, "🗑️", -1)),
19498
+ _cache[29] || (_cache[29] = createElementVNode("span", { class: "me-1" }, "🗑️", -1)),
19499
19499
  createTextVNode(" حذف گروهی (" + toDisplayString(selectedCount.value) + ") ", 1)
19500
19500
  ]),
19501
19501
  _: 1
@@ -19512,7 +19512,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19512
19512
  class: "me-2",
19513
19513
  onClick: ($event) => openDialog(item)
19514
19514
  }, {
19515
- default: withCtx(() => [..._cache[31] || (_cache[31] = [
19515
+ default: withCtx(() => [..._cache[30] || (_cache[30] = [
19516
19516
  createElementVNode("span", { class: "me-1" }, "✏️", -1),
19517
19517
  createTextVNode(" ویرایش ", -1)
19518
19518
  ])]),
@@ -19525,7 +19525,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19525
19525
  class: "me-2",
19526
19526
  onClick: ($event) => openDeleteDialog(item)
19527
19527
  }, {
19528
- default: withCtx(() => [..._cache[32] || (_cache[32] = [
19528
+ default: withCtx(() => [..._cache[31] || (_cache[31] = [
19529
19529
  createElementVNode("span", { class: "me-1" }, "🗑️", -1),
19530
19530
  createTextVNode(" حذف ", -1)
19531
19531
  ])]),
@@ -19538,7 +19538,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19538
19538
  class: "me-2",
19539
19539
  onClick: ($event) => goToRoute("view", item)
19540
19540
  }, {
19541
- default: withCtx(() => [..._cache[33] || (_cache[33] = [
19541
+ default: withCtx(() => [..._cache[32] || (_cache[32] = [
19542
19542
  createElementVNode("span", { class: "me-1" }, "👁️", -1),
19543
19543
  createTextVNode(" نمایش ", -1)
19544
19544
  ])]),
@@ -19553,7 +19553,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19553
19553
  onClick: ($event) => goToRoute(routeKey, item)
19554
19554
  }, {
19555
19555
  default: withCtx(() => [
19556
- _cache[34] || (_cache[34] = createElementVNode("span", { class: "me-1" }, "➡️", -1)),
19556
+ _cache[33] || (_cache[33] = createElementVNode("span", { class: "me-1" }, "➡️", -1)),
19557
19557
  createTextVNode(" " + toDisplayString(String(routeKey)), 1)
19558
19558
  ]),
19559
19559
  _: 2
@@ -19567,7 +19567,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19567
19567
  onClick: ($event) => download(key2, item)
19568
19568
  }, {
19569
19569
  default: withCtx(() => [
19570
- _cache[35] || (_cache[35] = createElementVNode("span", { class: "me-1" }, "⬇️", -1)),
19570
+ _cache[34] || (_cache[34] = createElementVNode("span", { class: "me-1" }, "⬇️", -1)),
19571
19571
  createTextVNode(" " + toDisplayString(key2), 1)
19572
19572
  ]),
19573
19573
  _: 2
@@ -19628,6 +19628,151 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19628
19628
  _: 1
19629
19629
  })
19630
19630
  ]),
19631
+ props.inlineFilter && formHeaders.value.length > 0 ? (openBlock(), createBlock(VCard, {
19632
+ key: 1,
19633
+ class: "mb-4 pa-4",
19634
+ elevation: "1"
19635
+ }, {
19636
+ default: withCtx(() => [
19637
+ createElementVNode("div", _hoisted_8$1, [
19638
+ _cache[36] || (_cache[36] = createElementVNode("span", { class: "text-subtitle-2 font-weight-medium" }, "فیلترها", -1)),
19639
+ createVNode(VSpacer),
19640
+ hasActiveInlineFilters.value ? (openBlock(), createBlock(VBtn, {
19641
+ key: 0,
19642
+ variant: "text",
19643
+ size: "small",
19644
+ color: "error",
19645
+ onClick: resetFilter
19646
+ }, {
19647
+ default: withCtx(() => [..._cache[35] || (_cache[35] = [
19648
+ createTextVNode(" حذف فیلترها ", -1)
19649
+ ])]),
19650
+ _: 1
19651
+ })) : createCommentVNode("", true)
19652
+ ]),
19653
+ createVNode(VContainer, null, {
19654
+ default: withCtx(() => [
19655
+ createVNode(VRow, null, {
19656
+ default: withCtx(() => [
19657
+ (openBlock(true), createElementBlock(Fragment, null, renderList(formHeaders.value, (header) => {
19658
+ return openBlock(), createBlock(VCol, {
19659
+ key: resolveHeaderKey(header),
19660
+ cols: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4,
19661
+ md: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4
19662
+ }, {
19663
+ default: withCtx(() => [
19664
+ !header.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19665
+ hasFilterOperators(header) ? (openBlock(), createBlock(VSelect, {
19666
+ key: 0,
19667
+ modelValue: filterOperatorModel.value[resolveHeaderKey(header)],
19668
+ "onUpdate:modelValue": ($event) => filterOperatorModel.value[resolveHeaderKey(header)] = $event,
19669
+ items: getHeaderFilterOperators(header),
19670
+ "item-title": "label",
19671
+ "item-value": "value",
19672
+ density: "compact",
19673
+ variant: "underlined",
19674
+ "hide-details": "",
19675
+ class: "mb-1",
19676
+ attach: "",
19677
+ "menu-props": { zIndex: 2e4 }
19678
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : createCommentVNode("", true),
19679
+ isDateHeader(header) ? (openBlock(), createBlock(ShamsiDatePicker, {
19680
+ key: 1,
19681
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19682
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19683
+ label: resolveHeaderTitle(header),
19684
+ disabled: isHeaderDisabled(header),
19685
+ mode: header.dateMode || "single"
19686
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "mode"])) : hasAutocomplete(header) ? (openBlock(), createBlock(VAutocomplete, {
19687
+ key: 2,
19688
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19689
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19690
+ label: resolveHeaderTitle(header),
19691
+ items: resolveAutocompleteItems(header, filterModel.value.value),
19692
+ "item-title": resolveAutocompleteItemTitle(header),
19693
+ "item-value": resolveAutocompleteItemValue(header),
19694
+ "return-object": resolveAutocompleteReturnObject(header),
19695
+ multiple: resolveAutocompleteMultiple(header),
19696
+ chips: resolveAutocompleteMultiple(header),
19697
+ "closable-chips": resolveAutocompleteMultiple(header),
19698
+ disabled: isHeaderDisabled(header),
19699
+ clearable: "",
19700
+ variant: "outlined",
19701
+ attach: "",
19702
+ "menu-props": { zIndex: 2e4 }
19703
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "items", "item-title", "item-value", "return-object", "multiple", "chips", "closable-chips", "disabled"])) : isMoneyHeader(header) ? (openBlock(), createBlock(_sfc_main$i, {
19704
+ key: 3,
19705
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19706
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19707
+ label: resolveHeaderTitle(header),
19708
+ disabled: isHeaderDisabled(header)
19709
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : isTextareaHeader(header) ? (openBlock(), createBlock(VTextarea, {
19710
+ key: 4,
19711
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19712
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19713
+ label: resolveHeaderTitle(header),
19714
+ variant: "outlined",
19715
+ disabled: isHeaderDisabled(header),
19716
+ dir: header.dir,
19717
+ "auto-grow": "",
19718
+ rows: "3"
19719
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "dir"])) : isToggleHeader(header) ? (openBlock(), createBlock(ToggleSwitch, {
19720
+ key: 5,
19721
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19722
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19723
+ label: resolveHeaderTitle(header),
19724
+ type: "boolean",
19725
+ activeColor: "#3bd32a",
19726
+ inactiveColor: "#d32a2a",
19727
+ options: [
19728
+ { value: "true", label: "فعال", icon: unref(IconCheck) },
19729
+ { value: "false", label: "غیر فعال", icon: unref(IconSquareX) }
19730
+ ]
19731
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "options"])) : (openBlock(), createBlock(VTextField, {
19732
+ key: 6,
19733
+ modelValue: filterModel.value[resolveHeaderKey(header)],
19734
+ "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
19735
+ label: resolveHeaderTitle(header),
19736
+ variant: "outlined",
19737
+ disabled: isHeaderDisabled(header),
19738
+ type: getFieldInputType(header),
19739
+ dir: header.dir
19740
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "type", "dir"]))
19741
+ ], 64)) : createCommentVNode("", true)
19742
+ ]),
19743
+ _: 2
19744
+ }, 1032, ["cols", "md"]);
19745
+ }), 128))
19746
+ ]),
19747
+ _: 1
19748
+ })
19749
+ ]),
19750
+ _: 1
19751
+ }),
19752
+ createElementVNode("div", _hoisted_9$1, [
19753
+ createVNode(VBtn, {
19754
+ color: "grey",
19755
+ variant: "tonal",
19756
+ onClick: resetFilter
19757
+ }, {
19758
+ default: withCtx(() => [..._cache[37] || (_cache[37] = [
19759
+ createTextVNode(" حذف فیلترها ", -1)
19760
+ ])]),
19761
+ _: 1
19762
+ }),
19763
+ createVNode(VBtn, {
19764
+ color: "primary",
19765
+ onClick: applyFilter
19766
+ }, {
19767
+ default: withCtx(() => [..._cache[38] || (_cache[38] = [
19768
+ createTextVNode(" اعمال فیلتر ", -1)
19769
+ ])]),
19770
+ _: 1
19771
+ })
19772
+ ])
19773
+ ]),
19774
+ _: 1
19775
+ })) : createCommentVNode("", true),
19631
19776
  createElementVNode("div", mergeProps({ class: "data-table-container" }, _ctx.$attrs, {
19632
19777
  role: "region",
19633
19778
  "aria-busy": loading.value || isLoadingMore.value,
@@ -19646,15 +19791,15 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19646
19791
  boilerplate: false
19647
19792
  }, null, 8, ["loading"])
19648
19793
  ], 4)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19649
- props.groupBy && unref(groupedItems).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
19650
- createElementVNode("div", _hoisted_10$1, [
19794
+ props.groupBy && unref(groupedItems).length > 0 ? (openBlock(), createElementBlock("div", _hoisted_11$1, [
19795
+ createElementVNode("div", _hoisted_12$1, [
19651
19796
  createVNode(VBtn, {
19652
19797
  size: "small",
19653
19798
  color: "primary",
19654
19799
  onClick: expandAllGroups,
19655
19800
  class: "me-2"
19656
19801
  }, {
19657
- default: withCtx(() => [..._cache[36] || (_cache[36] = [
19802
+ default: withCtx(() => [..._cache[39] || (_cache[39] = [
19658
19803
  createTextVNode(" گسترش همه ", -1)
19659
19804
  ])]),
19660
19805
  _: 1
@@ -19665,7 +19810,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19665
19810
  onClick: collapseAllGroups,
19666
19811
  class: "me-2"
19667
19812
  }, {
19668
- default: withCtx(() => [..._cache[37] || (_cache[37] = [
19813
+ default: withCtx(() => [..._cache[40] || (_cache[40] = [
19669
19814
  createTextVNode(" جمع کردن همه ", -1)
19670
19815
  ])]),
19671
19816
  _: 1
@@ -19675,7 +19820,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19675
19820
  class: "groups-scroll-container",
19676
19821
  style: normalizeStyle({ height: `${props.height - 120}px` })
19677
19822
  }, [
19678
- createElementVNode("div", _hoisted_11$1, [
19823
+ createElementVNode("div", _hoisted_13$1, [
19679
19824
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(groupedItems), (group) => {
19680
19825
  return openBlock(), createElementBlock("div", {
19681
19826
  key: group.groupKey,
@@ -19703,7 +19848,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19703
19848
  key: 1,
19704
19849
  class: "me-2 chevron-icon"
19705
19850
  })),
19706
- createElementVNode("span", _hoisted_13$1, toDisplayString(group.groupLabel), 1),
19851
+ createElementVNode("span", _hoisted_15$1, toDisplayString(group.groupLabel), 1),
19707
19852
  createVNode(VChip, {
19708
19853
  size: "small",
19709
19854
  color: "darkprimary",
@@ -19714,7 +19859,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19714
19859
  ]),
19715
19860
  _: 2
19716
19861
  }, 1024)
19717
- ], 42, _hoisted_12$1),
19862
+ ], 42, _hoisted_14$1),
19718
19863
  createVNode(Transition, {
19719
19864
  name: "group-expand",
19720
19865
  appear: ""
@@ -19793,7 +19938,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19793
19938
  class: "mr-2",
19794
19939
  onClick: ($event) => openDialog(item)
19795
19940
  }, {
19796
- default: withCtx(() => [..._cache[38] || (_cache[38] = [
19941
+ default: withCtx(() => [..._cache[41] || (_cache[41] = [
19797
19942
  createTextVNode(" ویرایش ✏️ ", -1)
19798
19943
  ])]),
19799
19944
  _: 1
@@ -19805,7 +19950,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19805
19950
  class: "mr-2",
19806
19951
  onClick: ($event) => openDeleteDialog(item)
19807
19952
  }, {
19808
- default: withCtx(() => [..._cache[39] || (_cache[39] = [
19953
+ default: withCtx(() => [..._cache[42] || (_cache[42] = [
19809
19954
  createTextVNode("حذف ❌ ", -1)
19810
19955
  ])]),
19811
19956
  _: 1
@@ -19817,7 +19962,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19817
19962
  class: "mr-2",
19818
19963
  onClick: ($event) => goToRoute("view", item)
19819
19964
  }, {
19820
- default: withCtx(() => [..._cache[40] || (_cache[40] = [
19965
+ default: withCtx(() => [..._cache[43] || (_cache[43] = [
19821
19966
  createTextVNode("🔍 نمایش ", -1)
19822
19967
  ])]),
19823
19968
  _: 1
@@ -19895,7 +20040,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19895
20040
  _: 2
19896
20041
  }, 1032, ["color", "onClick"]);
19897
20042
  }), 128))
19898
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_16$1, [
20043
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_18, [
19899
20044
  shouldTruncate(
19900
20045
  getTranslatedValue(getNestedValue2(item, column.key || ""), column, item),
19901
20046
  getHeaderForColumn(column.key || "")
@@ -19908,7 +20053,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19908
20053
  column.title || column.key || "",
19909
20054
  item
19910
20055
  ), ["stop"])
19911
- }, toDisplayString(truncateText(getTranslatedValue(getNestedValue2(item, column.key || ""), column, item))), 9, _hoisted_17)) : (openBlock(), createElementBlock("span", {
20056
+ }, toDisplayString(truncateText(getTranslatedValue(getNestedValue2(item, column.key || ""), column, item))), 9, _hoisted_19)) : (openBlock(), createElementBlock("span", {
19912
20057
  key: 1,
19913
20058
  onClick: withModifiers(($event) => shouldShowCopyButton(getHeaderForColumn(column.key || "")) && openTextPreview(
19914
20059
  getTranslatedValue(getNestedValue2(item, column.key || ""), column, item),
@@ -19916,7 +20061,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19916
20061
  item
19917
20062
  ), ["stop"]),
19918
20063
  style: normalizeStyle({ cursor: shouldShowCopyButton(getHeaderForColumn(column.key || "")) ? "pointer" : "default" })
19919
- }, toDisplayString(getTranslatedValue(getNestedValue2(item, column.key || ""), column, item)), 13, _hoisted_18)),
20064
+ }, toDisplayString(getTranslatedValue(getNestedValue2(item, column.key || ""), column, item)), 13, _hoisted_20)),
19920
20065
  shouldShowCopyButton(getHeaderForColumn(column.key || "")) ? (openBlock(), createBlock(VBtn, {
19921
20066
  key: 2,
19922
20067
  icon: "",
@@ -19932,7 +20077,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19932
20077
  }, {
19933
20078
  default: withCtx(() => [
19934
20079
  createVNode(VIcon, { size: "16" }, {
19935
- default: withCtx(() => [..._cache[41] || (_cache[41] = [
20080
+ default: withCtx(() => [..._cache[44] || (_cache[44] = [
19936
20081
  createTextVNode("mdi-content-copy", -1)
19937
20082
  ])]),
19938
20083
  _: 1
@@ -19943,11 +20088,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19943
20088
  ]))
19944
20089
  ], 4);
19945
20090
  }), 128))
19946
- ], 44, _hoisted_15$1)
20091
+ ], 44, _hoisted_17)
19947
20092
  ]),
19948
20093
  _: 1
19949
20094
  }, 8, ["headers", "items", "items-per-page"])
19950
- ], 8, _hoisted_14$1)) : createCommentVNode("", true)
20095
+ ], 8, _hoisted_16$1)) : createCommentVNode("", true)
19951
20096
  ]),
19952
20097
  _: 2
19953
20098
  }, 1024)
@@ -19955,158 +20100,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19955
20100
  }), 128))
19956
20101
  ])
19957
20102
  ], 4)
19958
- ])) : createCommentVNode("", true),
19959
- props.inlineFilter && formHeaders.value.length > 0 ? (openBlock(), createBlock(VCard, {
20103
+ ])) : (openBlock(), createBlock(VDataTable, {
19960
20104
  key: 1,
19961
- class: "mb-4 pa-4",
19962
- elevation: "1"
19963
- }, {
19964
- default: withCtx(() => [
19965
- createElementVNode("div", _hoisted_19, [
19966
- _cache[43] || (_cache[43] = createElementVNode("span", { class: "text-subtitle-2 font-weight-medium" }, "فیلترها", -1)),
19967
- createVNode(VSpacer),
19968
- hasActiveInlineFilters.value ? (openBlock(), createBlock(VBtn, {
19969
- key: 0,
19970
- variant: "text",
19971
- size: "small",
19972
- color: "error",
19973
- onClick: resetFilter
19974
- }, {
19975
- default: withCtx(() => [..._cache[42] || (_cache[42] = [
19976
- createTextVNode(" حذف فیلترها ", -1)
19977
- ])]),
19978
- _: 1
19979
- })) : createCommentVNode("", true)
19980
- ]),
19981
- props.filterComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.filterComponent), {
19982
- key: 0,
19983
- "model-value": filterModel.value,
19984
- "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => filterModel.value = $event),
19985
- onApply: handleFilterApply
19986
- }, null, 40, ["model-value"])) : (openBlock(), createBlock(VContainer, { key: 1 }, {
19987
- default: withCtx(() => [
19988
- createVNode(VRow, null, {
19989
- default: withCtx(() => [
19990
- (openBlock(true), createElementBlock(Fragment, null, renderList(formHeaders.value, (header) => {
19991
- return openBlock(), createBlock(VCol, {
19992
- key: resolveHeaderKey(header),
19993
- cols: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4,
19994
- md: header.cols ? typeof header.cols === "number" ? header.cols : Number(header.cols) : 4
19995
- }, {
19996
- default: withCtx(() => [
19997
- !header.hidden ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
19998
- hasFilterOperators(header) ? (openBlock(), createBlock(VSelect, {
19999
- key: 0,
20000
- modelValue: filterOperatorModel.value[resolveHeaderKey(header)],
20001
- "onUpdate:modelValue": ($event) => filterOperatorModel.value[resolveHeaderKey(header)] = $event,
20002
- items: getHeaderFilterOperators(header),
20003
- "item-title": "label",
20004
- "item-value": "value",
20005
- density: "compact",
20006
- variant: "underlined",
20007
- "hide-details": "",
20008
- class: "mb-1",
20009
- attach: "",
20010
- "menu-props": { zIndex: 2e4 }
20011
- }, null, 8, ["modelValue", "onUpdate:modelValue", "items"])) : createCommentVNode("", true),
20012
- isDateHeader(header) ? (openBlock(), createBlock(ShamsiDatePicker, {
20013
- key: 1,
20014
- modelValue: filterModel.value[resolveHeaderKey(header)],
20015
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
20016
- label: resolveHeaderTitle(header),
20017
- disabled: isHeaderDisabled(header),
20018
- mode: header.dateMode || "single"
20019
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "mode"])) : hasAutocomplete(header) ? (openBlock(), createBlock(VAutocomplete, {
20020
- key: 2,
20021
- modelValue: filterModel.value[resolveHeaderKey(header)],
20022
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
20023
- label: resolveHeaderTitle(header),
20024
- items: resolveAutocompleteItems(header, filterModel.value.value),
20025
- "item-title": resolveAutocompleteItemTitle(header),
20026
- "item-value": resolveAutocompleteItemValue(header),
20027
- "return-object": resolveAutocompleteReturnObject(header),
20028
- multiple: resolveAutocompleteMultiple(header),
20029
- chips: resolveAutocompleteMultiple(header),
20030
- "closable-chips": resolveAutocompleteMultiple(header),
20031
- disabled: isHeaderDisabled(header),
20032
- clearable: "",
20033
- variant: "outlined",
20034
- attach: "",
20035
- "menu-props": { zIndex: 2e4 }
20036
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "items", "item-title", "item-value", "return-object", "multiple", "chips", "closable-chips", "disabled"])) : isMoneyHeader(header) ? (openBlock(), createBlock(_sfc_main$i, {
20037
- key: 3,
20038
- modelValue: filterModel.value[resolveHeaderKey(header)],
20039
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
20040
- label: resolveHeaderTitle(header),
20041
- disabled: isHeaderDisabled(header)
20042
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled"])) : isTextareaHeader(header) ? (openBlock(), createBlock(VTextarea, {
20043
- key: 4,
20044
- modelValue: filterModel.value[resolveHeaderKey(header)],
20045
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
20046
- label: resolveHeaderTitle(header),
20047
- variant: "outlined",
20048
- disabled: isHeaderDisabled(header),
20049
- dir: header.dir,
20050
- "auto-grow": "",
20051
- rows: "3"
20052
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "dir"])) : isToggleHeader(header) ? (openBlock(), createBlock(ToggleSwitch, {
20053
- key: 5,
20054
- modelValue: filterModel.value[resolveHeaderKey(header)],
20055
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
20056
- label: resolveHeaderTitle(header),
20057
- type: "boolean",
20058
- activeColor: "#3bd32a",
20059
- inactiveColor: "#d32a2a",
20060
- options: [
20061
- { value: "true", label: "فعال", icon: unref(IconCheck) },
20062
- { value: "false", label: "غیر فعال", icon: unref(IconSquareX) }
20063
- ]
20064
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "options"])) : (openBlock(), createBlock(VTextField, {
20065
- key: 6,
20066
- modelValue: filterModel.value[resolveHeaderKey(header)],
20067
- "onUpdate:modelValue": ($event) => filterModel.value[resolveHeaderKey(header)] = $event,
20068
- label: resolveHeaderTitle(header),
20069
- variant: "outlined",
20070
- disabled: isHeaderDisabled(header),
20071
- type: getFieldInputType(header),
20072
- dir: header.dir
20073
- }, null, 8, ["modelValue", "onUpdate:modelValue", "label", "disabled", "type", "dir"]))
20074
- ], 64)) : createCommentVNode("", true)
20075
- ]),
20076
- _: 2
20077
- }, 1032, ["cols", "md"]);
20078
- }), 128))
20079
- ]),
20080
- _: 1
20081
- })
20082
- ]),
20083
- _: 1
20084
- })),
20085
- createElementVNode("div", _hoisted_20, [
20086
- createVNode(VBtn, {
20087
- color: "grey",
20088
- variant: "tonal",
20089
- onClick: resetFilter
20090
- }, {
20091
- default: withCtx(() => [..._cache[44] || (_cache[44] = [
20092
- createTextVNode(" حذف فیلترها ", -1)
20093
- ])]),
20094
- _: 1
20095
- }),
20096
- createVNode(VBtn, {
20097
- color: "primary",
20098
- onClick: applyFilter
20099
- }, {
20100
- default: withCtx(() => [..._cache[45] || (_cache[45] = [
20101
- createTextVNode(" اعمال فیلتر ", -1)
20102
- ])]),
20103
- _: 1
20104
- })
20105
- ])
20106
- ]),
20107
- _: 1
20108
- })) : (openBlock(), createBlock(VDataTable, {
20109
- key: 2,
20110
20105
  headers: normalHeaders.value,
20111
20106
  items: items.value,
20112
20107
  "items-per-page": itemsPerPage.value,
@@ -20173,7 +20168,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20173
20168
  class: "mr-2",
20174
20169
  onClick: ($event) => openDialog(item)
20175
20170
  }, {
20176
- default: withCtx(() => [..._cache[46] || (_cache[46] = [
20171
+ default: withCtx(() => [..._cache[45] || (_cache[45] = [
20177
20172
  createTextVNode(" ویرایش ✏️ ", -1)
20178
20173
  ])]),
20179
20174
  _: 1
@@ -20185,7 +20180,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20185
20180
  class: "mr-2",
20186
20181
  onClick: ($event) => openDeleteDialog(item)
20187
20182
  }, {
20188
- default: withCtx(() => [..._cache[47] || (_cache[47] = [
20183
+ default: withCtx(() => [..._cache[46] || (_cache[46] = [
20189
20184
  createTextVNode("حذف ❌ ", -1)
20190
20185
  ])]),
20191
20186
  _: 1
@@ -20197,7 +20192,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20197
20192
  class: "mr-2",
20198
20193
  onClick: ($event) => goToRoute("view", item)
20199
20194
  }, {
20200
- default: withCtx(() => [..._cache[48] || (_cache[48] = [
20195
+ default: withCtx(() => [..._cache[47] || (_cache[47] = [
20201
20196
  createTextVNode("🔍 نمایش ", -1)
20202
20197
  ])]),
20203
20198
  _: 1
@@ -20312,7 +20307,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20312
20307
  }, {
20313
20308
  default: withCtx(() => [
20314
20309
  createVNode(VIcon, { size: "16" }, {
20315
- default: withCtx(() => [..._cache[49] || (_cache[49] = [
20310
+ default: withCtx(() => [..._cache[48] || (_cache[48] = [
20316
20311
  createTextVNode("mdi-content-copy", -1)
20317
20312
  ])]),
20318
20313
  _: 1
@@ -20340,7 +20335,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20340
20335
  createVNode(VPagination, {
20341
20336
  modelValue: currentPage.value,
20342
20337
  "onUpdate:modelValue": [
20343
- _cache[6] || (_cache[6] = ($event) => currentPage.value = $event),
20338
+ _cache[5] || (_cache[5] = ($event) => currentPage.value = $event),
20344
20339
  handlePageChange
20345
20340
  ],
20346
20341
  length: totalPages.value,
@@ -20349,10 +20344,10 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20349
20344
  }, null, 8, ["modelValue", "length"])
20350
20345
  ])
20351
20346
  ])) : createCommentVNode("", true)
20352
- ], 16, _hoisted_8$1),
20347
+ ], 16, _hoisted_10$1),
20353
20348
  createVNode(VDialog, {
20354
20349
  modelValue: dialog.value,
20355
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => dialog.value = $event),
20350
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => dialog.value = $event),
20356
20351
  "max-width": "1400"
20357
20352
  }, {
20358
20353
  default: withCtx(() => [
@@ -20371,7 +20366,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20371
20366
  props.formComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.formComponent), {
20372
20367
  key: 0,
20373
20368
  modelValue: formModel.value,
20374
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => formModel.value = $event)
20369
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => formModel.value = $event)
20375
20370
  }, null, 8, ["modelValue"])) : (openBlock(), createBlock(VRow, { key: 1 }, {
20376
20371
  default: withCtx(() => [
20377
20372
  (openBlock(true), createElementBlock(Fragment, null, renderList(formHeaders.value, (header) => {
@@ -20463,9 +20458,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20463
20458
  createVNode(VBtn, {
20464
20459
  variant: "tonal",
20465
20460
  color: "error",
20466
- onClick: _cache[8] || (_cache[8] = ($event) => dialog.value = false)
20461
+ onClick: _cache[7] || (_cache[7] = ($event) => dialog.value = false)
20467
20462
  }, {
20468
- default: withCtx(() => [..._cache[50] || (_cache[50] = [
20463
+ default: withCtx(() => [..._cache[49] || (_cache[49] = [
20469
20464
  createTextVNode("انصراف", -1)
20470
20465
  ])]),
20471
20466
  _: 1
@@ -20491,20 +20486,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20491
20486
  }, 8, ["modelValue"]),
20492
20487
  createVNode(VDialog, {
20493
20488
  modelValue: deleteDialog.value,
20494
- "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => deleteDialog.value = $event),
20489
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => deleteDialog.value = $event),
20495
20490
  "max-width": "400"
20496
20491
  }, {
20497
20492
  default: withCtx(() => [
20498
20493
  createVNode(VCard, null, {
20499
20494
  default: withCtx(() => [
20500
20495
  createVNode(VCardTitle, null, {
20501
- default: withCtx(() => [..._cache[51] || (_cache[51] = [
20496
+ default: withCtx(() => [..._cache[50] || (_cache[50] = [
20502
20497
  createTextVNode("حذف آیتم", -1)
20503
20498
  ])]),
20504
20499
  _: 1
20505
20500
  }),
20506
20501
  createVNode(VCardText, null, {
20507
- default: withCtx(() => [..._cache[52] || (_cache[52] = [
20502
+ default: withCtx(() => [..._cache[51] || (_cache[51] = [
20508
20503
  createTextVNode(" آیا مایل به حذف این رکورد هستید ?", -1)
20509
20504
  ])]),
20510
20505
  _: 1
@@ -20513,21 +20508,21 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20513
20508
  default: withCtx(() => [
20514
20509
  createVNode(VBtn, {
20515
20510
  color: "grey",
20516
- onClick: _cache[10] || (_cache[10] = ($event) => deleteDialog.value = false)
20511
+ onClick: _cache[9] || (_cache[9] = ($event) => deleteDialog.value = false)
20517
20512
  }, {
20518
- default: withCtx(() => [..._cache[53] || (_cache[53] = [
20513
+ default: withCtx(() => [..._cache[52] || (_cache[52] = [
20519
20514
  createTextVNode("انصراف", -1)
20520
20515
  ])]),
20521
20516
  _: 1
20522
20517
  }),
20523
20518
  createVNode(VBtn, {
20524
20519
  color: "red",
20525
- onClick: _cache[11] || (_cache[11] = ($event) => {
20520
+ onClick: _cache[10] || (_cache[10] = ($event) => {
20526
20521
  var _a2;
20527
20522
  return deleteItem(String(((_a2 = itemToDelete.value) == null ? void 0 : _a2.id) || ""));
20528
20523
  })
20529
20524
  }, {
20530
- default: withCtx(() => [..._cache[54] || (_cache[54] = [
20525
+ default: withCtx(() => [..._cache[53] || (_cache[53] = [
20531
20526
  createTextVNode("حذف", -1)
20532
20527
  ])]),
20533
20528
  _: 1
@@ -20543,7 +20538,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20543
20538
  }, 8, ["modelValue"]),
20544
20539
  createVNode(VDialog, {
20545
20540
  modelValue: groupDeleteDialog.value,
20546
- "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => groupDeleteDialog.value = $event),
20541
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => groupDeleteDialog.value = $event),
20547
20542
  "max-width": "500"
20548
20543
  }, {
20549
20544
  default: withCtx(() => [
@@ -20555,28 +20550,28 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20555
20550
  color: "red",
20556
20551
  class: "me-2"
20557
20552
  }, {
20558
- default: withCtx(() => [..._cache[55] || (_cache[55] = [
20553
+ default: withCtx(() => [..._cache[54] || (_cache[54] = [
20559
20554
  createTextVNode("🗑️", -1)
20560
20555
  ])]),
20561
20556
  _: 1
20562
20557
  }),
20563
- _cache[56] || (_cache[56] = createTextVNode(" حذف گروهی ", -1))
20558
+ _cache[55] || (_cache[55] = createTextVNode(" حذف گروهی ", -1))
20564
20559
  ]),
20565
20560
  _: 1
20566
20561
  }),
20567
20562
  createVNode(VCardText, null, {
20568
20563
  default: withCtx(() => [
20569
20564
  createElementVNode("p", null, [
20570
- _cache[57] || (_cache[57] = createTextVNode(" آیا مایل به حذف ", -1)),
20565
+ _cache[56] || (_cache[56] = createTextVNode(" آیا مایل به حذف ", -1)),
20571
20566
  createElementVNode("strong", null, toDisplayString(selectedCount.value), 1),
20572
- _cache[58] || (_cache[58] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
20567
+ _cache[57] || (_cache[57] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
20573
20568
  ]),
20574
20569
  createVNode(VAlert, {
20575
20570
  type: "warning",
20576
20571
  variant: "tonal",
20577
20572
  class: "mt-3"
20578
20573
  }, {
20579
- default: withCtx(() => [..._cache[59] || (_cache[59] = [
20574
+ default: withCtx(() => [..._cache[58] || (_cache[58] = [
20580
20575
  createTextVNode(" این عمل قابل بازگشت نیست! ", -1)
20581
20576
  ])]),
20582
20577
  _: 1
@@ -20589,9 +20584,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20589
20584
  createVNode(VSpacer),
20590
20585
  createVNode(VBtn, {
20591
20586
  color: "grey",
20592
- onClick: _cache[13] || (_cache[13] = ($event) => groupDeleteDialog.value = false)
20587
+ onClick: _cache[12] || (_cache[12] = ($event) => groupDeleteDialog.value = false)
20593
20588
  }, {
20594
- default: withCtx(() => [..._cache[60] || (_cache[60] = [
20589
+ default: withCtx(() => [..._cache[59] || (_cache[59] = [
20595
20590
  createTextVNode("انصراف", -1)
20596
20591
  ])]),
20597
20592
  _: 1
@@ -20617,7 +20612,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20617
20612
  }, 8, ["modelValue"]),
20618
20613
  createVNode(VDialog, {
20619
20614
  modelValue: customActionDialog.value,
20620
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => customActionDialog.value = $event),
20615
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => customActionDialog.value = $event),
20621
20616
  "max-width": "1300"
20622
20617
  }, {
20623
20618
  default: withCtx(() => [
@@ -20637,7 +20632,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20637
20632
  customActionComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(customActionComponent.value), {
20638
20633
  key: 0,
20639
20634
  item: customActionItem.value,
20640
- onClose: _cache[15] || (_cache[15] = ($event) => customActionDialog.value = false)
20635
+ onClose: _cache[14] || (_cache[14] = ($event) => customActionDialog.value = false)
20641
20636
  }, null, 40, ["item"])) : createCommentVNode("", true)
20642
20637
  ]),
20643
20638
  _: 1
@@ -20650,14 +20645,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20650
20645
  }, 8, ["modelValue"]),
20651
20646
  createVNode(VDialog, {
20652
20647
  modelValue: filterDialog.value,
20653
- "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => filterDialog.value = $event),
20648
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => filterDialog.value = $event),
20654
20649
  "max-width": "1500"
20655
20650
  }, {
20656
20651
  default: withCtx(() => [
20657
20652
  createVNode(VCard, null, {
20658
20653
  default: withCtx(() => [
20659
20654
  createVNode(VCardTitle, null, {
20660
- default: withCtx(() => [..._cache[61] || (_cache[61] = [
20655
+ default: withCtx(() => [..._cache[60] || (_cache[60] = [
20661
20656
  createTextVNode("فیلتر", -1)
20662
20657
  ])]),
20663
20658
  _: 1
@@ -20667,7 +20662,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20667
20662
  props.filterComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.filterComponent), {
20668
20663
  key: 0,
20669
20664
  "model-value": filterModel.value,
20670
- "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => filterModel.value = $event),
20665
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => filterModel.value = $event),
20671
20666
  onApply: handleFilterApply
20672
20667
  }, null, 40, ["model-value"])) : (openBlock(), createBlock(VContainer, { key: 1 }, {
20673
20668
  default: withCtx(() => [
@@ -20779,7 +20774,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20779
20774
  variant: "tonal",
20780
20775
  onClick: resetFilter
20781
20776
  }, {
20782
- default: withCtx(() => [..._cache[62] || (_cache[62] = [
20777
+ default: withCtx(() => [..._cache[61] || (_cache[61] = [
20783
20778
  createTextVNode("حذف فیلترها", -1)
20784
20779
  ])]),
20785
20780
  _: 1
@@ -20788,7 +20783,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20788
20783
  color: "primary",
20789
20784
  onClick: applyFilter
20790
20785
  }, {
20791
- default: withCtx(() => [..._cache[63] || (_cache[63] = [
20786
+ default: withCtx(() => [..._cache[62] || (_cache[62] = [
20792
20787
  createTextVNode("اعمال فیلتر", -1)
20793
20788
  ])]),
20794
20789
  _: 1
@@ -20804,7 +20799,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20804
20799
  }, 8, ["modelValue"]),
20805
20800
  createVNode(VDialog, {
20806
20801
  modelValue: textPreviewDialog.value,
20807
- "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => textPreviewDialog.value = $event),
20802
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => textPreviewDialog.value = $event),
20808
20803
  "max-width": "800"
20809
20804
  }, {
20810
20805
  default: withCtx(() => [
@@ -20816,11 +20811,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20816
20811
  createVNode(VBtn, {
20817
20812
  icon: "",
20818
20813
  variant: "text",
20819
- onClick: _cache[19] || (_cache[19] = ($event) => textPreviewDialog.value = false)
20814
+ onClick: _cache[18] || (_cache[18] = ($event) => textPreviewDialog.value = false)
20820
20815
  }, {
20821
20816
  default: withCtx(() => [
20822
20817
  createVNode(VIcon, null, {
20823
- default: withCtx(() => [..._cache[64] || (_cache[64] = [
20818
+ default: withCtx(() => [..._cache[63] || (_cache[63] = [
20824
20819
  createTextVNode("mdi-close", -1)
20825
20820
  ])]),
20826
20821
  _: 1
@@ -20849,16 +20844,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20849
20844
  createVNode(VSpacer),
20850
20845
  createVNode(VBtn, {
20851
20846
  color: "primary",
20852
- onClick: _cache[20] || (_cache[20] = ($event) => copyToClipboard(previewText.value))
20847
+ onClick: _cache[19] || (_cache[19] = ($event) => copyToClipboard(previewText.value))
20853
20848
  }, {
20854
20849
  default: withCtx(() => [
20855
20850
  createVNode(VIcon, { start: "" }, {
20856
- default: withCtx(() => [..._cache[65] || (_cache[65] = [
20851
+ default: withCtx(() => [..._cache[64] || (_cache[64] = [
20857
20852
  createTextVNode("mdi-content-copy", -1)
20858
20853
  ])]),
20859
20854
  _: 1
20860
20855
  }),
20861
- _cache[66] || (_cache[66] = createTextVNode(" کپی متن ", -1))
20856
+ _cache[65] || (_cache[65] = createTextVNode(" کپی متن ", -1))
20862
20857
  ]),
20863
20858
  _: 1
20864
20859
  }),
@@ -20868,20 +20863,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20868
20863
  }, {
20869
20864
  default: withCtx(() => [
20870
20865
  createVNode(VIcon, { start: "" }, {
20871
- default: withCtx(() => [..._cache[67] || (_cache[67] = [
20866
+ default: withCtx(() => [..._cache[66] || (_cache[66] = [
20872
20867
  createTextVNode("mdi-content-copy", -1)
20873
20868
  ])]),
20874
20869
  _: 1
20875
20870
  }),
20876
- _cache[68] || (_cache[68] = createTextVNode(" کپی رکورد کامل ", -1))
20871
+ _cache[67] || (_cache[67] = createTextVNode(" کپی رکورد کامل ", -1))
20877
20872
  ]),
20878
20873
  _: 1
20879
20874
  }),
20880
20875
  createVNode(VBtn, {
20881
20876
  color: "grey",
20882
- onClick: _cache[21] || (_cache[21] = ($event) => textPreviewDialog.value = false)
20877
+ onClick: _cache[20] || (_cache[20] = ($event) => textPreviewDialog.value = false)
20883
20878
  }, {
20884
- default: withCtx(() => [..._cache[69] || (_cache[69] = [
20879
+ default: withCtx(() => [..._cache[68] || (_cache[68] = [
20885
20880
  createTextVNode("بستن", -1)
20886
20881
  ])]),
20887
20882
  _: 1
@@ -20896,9 +20891,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20896
20891
  _: 1
20897
20892
  }, 8, ["modelValue"]),
20898
20893
  snackbar.value ? (openBlock(), createBlock(VSnackbar, {
20899
- key: 1,
20894
+ key: 2,
20900
20895
  modelValue: snackbar.value,
20901
- "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => snackbar.value = $event),
20896
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => snackbar.value = $event),
20902
20897
  timeout: 3e3,
20903
20898
  location: "top"
20904
20899
  }, {
@@ -20906,9 +20901,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20906
20901
  createVNode(VBtn, {
20907
20902
  color: "white",
20908
20903
  variant: "text",
20909
- onClick: _cache[23] || (_cache[23] = ($event) => snackbar.value = false)
20904
+ onClick: _cache[22] || (_cache[22] = ($event) => snackbar.value = false)
20910
20905
  }, {
20911
- default: withCtx(() => [..._cache[70] || (_cache[70] = [
20906
+ default: withCtx(() => [..._cache[69] || (_cache[69] = [
20912
20907
  createTextVNode(" بستن ", -1)
20913
20908
  ])]),
20914
20909
  _: 1