@amirjalili1374/ui-kit 1.5.28 → 1.5.30

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
@@ -18269,24 +18269,26 @@ const _hoisted_16$1 = {
18269
18269
  };
18270
18270
  const _hoisted_17 = ["onClick"];
18271
18271
  const _hoisted_18 = ["onClick"];
18272
- const _hoisted_19 = ["tabindex", "onKeydown", "onClick"];
18273
- const _hoisted_20 = {
18272
+ const _hoisted_19 = { class: "d-flex align-center mb-3" };
18273
+ const _hoisted_20 = { class: "d-flex justify-end mt-3 gap-2" };
18274
+ const _hoisted_21 = ["tabindex", "onKeydown", "onClick"];
18275
+ const _hoisted_22 = {
18274
18276
  key: 2,
18275
18277
  class: "d-flex align-center",
18276
18278
  style: { "gap": "4px" }
18277
18279
  };
18278
- const _hoisted_21 = ["onClick"];
18279
- const _hoisted_22 = ["onClick"];
18280
- const _hoisted_23 = {
18281
- key: 2,
18280
+ const _hoisted_23 = ["onClick"];
18281
+ const _hoisted_24 = ["onClick"];
18282
+ const _hoisted_25 = {
18283
+ key: 3,
18282
18284
  class: "d-flex justify-center align-center pa-4"
18283
18285
  };
18284
- const _hoisted_24 = {
18286
+ const _hoisted_26 = {
18285
18287
  key: 2,
18286
18288
  class: "pagination-wrapper"
18287
18289
  };
18288
- const _hoisted_25 = { class: "d-flex justify-space-between align-center pa-3" };
18289
- const _hoisted_26 = { class: "text-subtitle-3" };
18290
+ const _hoisted_27 = { class: "d-flex justify-space-between align-center pa-3" };
18291
+ const _hoisted_28 = { class: "text-subtitle-3" };
18290
18292
  const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18291
18293
  ...{ inheritAttrs: false },
18292
18294
  __name: "CustomDataTable",
@@ -18323,7 +18325,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18323
18325
  axiosInstance: {},
18324
18326
  enableTextTruncation: { type: Boolean, default: false },
18325
18327
  maxTextLength: { default: 50 },
18326
- filterAdapter: {}
18328
+ filterAdapter: {},
18329
+ inlineFilter: { type: Boolean, default: false }
18327
18330
  },
18328
18331
  emits: ["update:selectedItems", "selection-change"],
18329
18332
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -18553,6 +18556,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18553
18556
  return [];
18554
18557
  }
18555
18558
  };
18559
+ const hasActiveInlineFilters = computed(() => {
18560
+ return Object.values(filterModel.value).some((val2) => val2 !== null && val2 !== void 0 && val2 !== "");
18561
+ });
18556
18562
  const resolveHeaderDefaultValue = (header, context) => {
18557
18563
  const rawDefault = header.defaultValue;
18558
18564
  if (rawDefault === void 0) {
@@ -19417,7 +19423,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19417
19423
  class: "me-2",
19418
19424
  onClick: _cache[0] || (_cache[0] = ($event) => openDialog())
19419
19425
  }, {
19420
- default: withCtx(() => [..._cache[24] || (_cache[24] = [
19426
+ default: withCtx(() => [..._cache[25] || (_cache[25] = [
19421
19427
  createTextVNode("ایجاد ✅", -1)
19422
19428
  ])]),
19423
19429
  _: 1
@@ -19427,7 +19433,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19427
19433
  class: "me-2",
19428
19434
  onClick: _cache[1] || (_cache[1] = ($event) => filterDialog.value = true)
19429
19435
  }, {
19430
- default: withCtx(() => [..._cache[25] || (_cache[25] = [
19436
+ default: withCtx(() => [..._cache[26] || (_cache[26] = [
19431
19437
  createTextVNode("فیلتر 🔍", -1)
19432
19438
  ])]),
19433
19439
  _: 1
@@ -19438,7 +19444,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19438
19444
  class: "me-2",
19439
19445
  onClick: _cache[2] || (_cache[2] = ($event) => fetchData())
19440
19446
  }, {
19441
- default: withCtx(() => [..._cache[26] || (_cache[26] = [
19447
+ default: withCtx(() => [..._cache[27] || (_cache[27] = [
19442
19448
  createTextVNode("جستجو 🔍", -1)
19443
19449
  ])]),
19444
19450
  _: 1
@@ -19448,7 +19454,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19448
19454
  onClick: _cache[3] || (_cache[3] = ($event) => unref(debouncedFetchData)()),
19449
19455
  loading: loading.value
19450
19456
  }, {
19451
- default: withCtx(() => [..._cache[27] || (_cache[27] = [
19457
+ default: withCtx(() => [..._cache[28] || (_cache[28] = [
19452
19458
  createTextVNode("بروزرسانی 🔄", -1)
19453
19459
  ])]),
19454
19460
  _: 1
@@ -19469,7 +19475,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19469
19475
  class: "me-2",
19470
19476
  onClick: clearSelection
19471
19477
  }, {
19472
- default: withCtx(() => [..._cache[28] || (_cache[28] = [
19478
+ default: withCtx(() => [..._cache[29] || (_cache[29] = [
19473
19479
  createTextVNode(" پاک کردن انتخاب ", -1)
19474
19480
  ])]),
19475
19481
  _: 1
@@ -19489,7 +19495,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19489
19495
  onClick: openGroupDeleteDialog
19490
19496
  }, {
19491
19497
  default: withCtx(() => [
19492
- _cache[29] || (_cache[29] = createElementVNode("span", { class: "me-1" }, "🗑️", -1)),
19498
+ _cache[30] || (_cache[30] = createElementVNode("span", { class: "me-1" }, "🗑️", -1)),
19493
19499
  createTextVNode(" حذف گروهی (" + toDisplayString(selectedCount.value) + ") ", 1)
19494
19500
  ]),
19495
19501
  _: 1
@@ -19506,7 +19512,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19506
19512
  class: "me-2",
19507
19513
  onClick: ($event) => openDialog(item)
19508
19514
  }, {
19509
- default: withCtx(() => [..._cache[30] || (_cache[30] = [
19515
+ default: withCtx(() => [..._cache[31] || (_cache[31] = [
19510
19516
  createElementVNode("span", { class: "me-1" }, "✏️", -1),
19511
19517
  createTextVNode(" ویرایش ", -1)
19512
19518
  ])]),
@@ -19519,7 +19525,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19519
19525
  class: "me-2",
19520
19526
  onClick: ($event) => openDeleteDialog(item)
19521
19527
  }, {
19522
- default: withCtx(() => [..._cache[31] || (_cache[31] = [
19528
+ default: withCtx(() => [..._cache[32] || (_cache[32] = [
19523
19529
  createElementVNode("span", { class: "me-1" }, "🗑️", -1),
19524
19530
  createTextVNode(" حذف ", -1)
19525
19531
  ])]),
@@ -19532,7 +19538,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19532
19538
  class: "me-2",
19533
19539
  onClick: ($event) => goToRoute("view", item)
19534
19540
  }, {
19535
- default: withCtx(() => [..._cache[32] || (_cache[32] = [
19541
+ default: withCtx(() => [..._cache[33] || (_cache[33] = [
19536
19542
  createElementVNode("span", { class: "me-1" }, "👁️", -1),
19537
19543
  createTextVNode(" نمایش ", -1)
19538
19544
  ])]),
@@ -19547,7 +19553,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19547
19553
  onClick: ($event) => goToRoute(routeKey, item)
19548
19554
  }, {
19549
19555
  default: withCtx(() => [
19550
- _cache[33] || (_cache[33] = createElementVNode("span", { class: "me-1" }, "➡️", -1)),
19556
+ _cache[34] || (_cache[34] = createElementVNode("span", { class: "me-1" }, "➡️", -1)),
19551
19557
  createTextVNode(" " + toDisplayString(String(routeKey)), 1)
19552
19558
  ]),
19553
19559
  _: 2
@@ -19561,7 +19567,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19561
19567
  onClick: ($event) => download(key2, item)
19562
19568
  }, {
19563
19569
  default: withCtx(() => [
19564
- _cache[34] || (_cache[34] = createElementVNode("span", { class: "me-1" }, "⬇️", -1)),
19570
+ _cache[35] || (_cache[35] = createElementVNode("span", { class: "me-1" }, "⬇️", -1)),
19565
19571
  createTextVNode(" " + toDisplayString(key2), 1)
19566
19572
  ]),
19567
19573
  _: 2
@@ -19648,7 +19654,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19648
19654
  onClick: expandAllGroups,
19649
19655
  class: "me-2"
19650
19656
  }, {
19651
- default: withCtx(() => [..._cache[35] || (_cache[35] = [
19657
+ default: withCtx(() => [..._cache[36] || (_cache[36] = [
19652
19658
  createTextVNode(" گسترش همه ", -1)
19653
19659
  ])]),
19654
19660
  _: 1
@@ -19659,7 +19665,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19659
19665
  onClick: collapseAllGroups,
19660
19666
  class: "me-2"
19661
19667
  }, {
19662
- default: withCtx(() => [..._cache[36] || (_cache[36] = [
19668
+ default: withCtx(() => [..._cache[37] || (_cache[37] = [
19663
19669
  createTextVNode(" جمع کردن همه ", -1)
19664
19670
  ])]),
19665
19671
  _: 1
@@ -19787,7 +19793,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19787
19793
  class: "mr-2",
19788
19794
  onClick: ($event) => openDialog(item)
19789
19795
  }, {
19790
- default: withCtx(() => [..._cache[37] || (_cache[37] = [
19796
+ default: withCtx(() => [..._cache[38] || (_cache[38] = [
19791
19797
  createTextVNode(" ویرایش ✏️ ", -1)
19792
19798
  ])]),
19793
19799
  _: 1
@@ -19799,7 +19805,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19799
19805
  class: "mr-2",
19800
19806
  onClick: ($event) => openDeleteDialog(item)
19801
19807
  }, {
19802
- default: withCtx(() => [..._cache[38] || (_cache[38] = [
19808
+ default: withCtx(() => [..._cache[39] || (_cache[39] = [
19803
19809
  createTextVNode("حذف ❌ ", -1)
19804
19810
  ])]),
19805
19811
  _: 1
@@ -19811,7 +19817,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19811
19817
  class: "mr-2",
19812
19818
  onClick: ($event) => goToRoute("view", item)
19813
19819
  }, {
19814
- default: withCtx(() => [..._cache[39] || (_cache[39] = [
19820
+ default: withCtx(() => [..._cache[40] || (_cache[40] = [
19815
19821
  createTextVNode("🔍 نمایش ", -1)
19816
19822
  ])]),
19817
19823
  _: 1
@@ -19926,7 +19932,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19926
19932
  }, {
19927
19933
  default: withCtx(() => [
19928
19934
  createVNode(VIcon, { size: "16" }, {
19929
- default: withCtx(() => [..._cache[40] || (_cache[40] = [
19935
+ default: withCtx(() => [..._cache[41] || (_cache[41] = [
19930
19936
  createTextVNode("mdi-content-copy", -1)
19931
19937
  ])]),
19932
19938
  _: 1
@@ -19949,8 +19955,158 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19949
19955
  }), 128))
19950
19956
  ])
19951
19957
  ], 4)
19952
- ])) : (openBlock(), createBlock(VDataTable, {
19958
+ ])) : createCommentVNode("", true),
19959
+ props.inlineFilter && formHeaders.value.length > 0 ? (openBlock(), createBlock(VCard, {
19953
19960
  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,
19954
20110
  headers: normalHeaders.value,
19955
20111
  items: items.value,
19956
20112
  "items-per-page": itemsPerPage.value,
@@ -20017,7 +20173,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20017
20173
  class: "mr-2",
20018
20174
  onClick: ($event) => openDialog(item)
20019
20175
  }, {
20020
- default: withCtx(() => [..._cache[41] || (_cache[41] = [
20176
+ default: withCtx(() => [..._cache[46] || (_cache[46] = [
20021
20177
  createTextVNode(" ویرایش ✏️ ", -1)
20022
20178
  ])]),
20023
20179
  _: 1
@@ -20029,7 +20185,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20029
20185
  class: "mr-2",
20030
20186
  onClick: ($event) => openDeleteDialog(item)
20031
20187
  }, {
20032
- default: withCtx(() => [..._cache[42] || (_cache[42] = [
20188
+ default: withCtx(() => [..._cache[47] || (_cache[47] = [
20033
20189
  createTextVNode("حذف ❌ ", -1)
20034
20190
  ])]),
20035
20191
  _: 1
@@ -20041,7 +20197,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20041
20197
  class: "mr-2",
20042
20198
  onClick: ($event) => goToRoute("view", item)
20043
20199
  }, {
20044
- default: withCtx(() => [..._cache[43] || (_cache[43] = [
20200
+ default: withCtx(() => [..._cache[48] || (_cache[48] = [
20045
20201
  createTextVNode("🔍 نمایش ", -1)
20046
20202
  ])]),
20047
20203
  _: 1
@@ -20119,7 +20275,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20119
20275
  _: 2
20120
20276
  }, 1032, ["color", "onClick"]);
20121
20277
  }), 128))
20122
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_20, [
20278
+ ], 64)) : (openBlock(), createElementBlock("div", _hoisted_22, [
20123
20279
  shouldTruncate(
20124
20280
  getTranslatedValue(getNestedValue2(item, column.key || ""), column, item),
20125
20281
  getHeaderForColumn(column.key || "")
@@ -20132,7 +20288,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20132
20288
  column.title || column.key || "",
20133
20289
  item
20134
20290
  ), ["stop"])
20135
- }, toDisplayString(truncateText(getTranslatedValue(getNestedValue2(item, column.key || ""), column, item))), 9, _hoisted_21)) : (openBlock(), createElementBlock("span", {
20291
+ }, toDisplayString(truncateText(getTranslatedValue(getNestedValue2(item, column.key || ""), column, item))), 9, _hoisted_23)) : (openBlock(), createElementBlock("span", {
20136
20292
  key: 1,
20137
20293
  onClick: withModifiers(($event) => shouldShowCopyButton(getHeaderForColumn(column.key || "")) && openTextPreview(
20138
20294
  getTranslatedValue(getNestedValue2(item, column.key || ""), column, item),
@@ -20140,7 +20296,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20140
20296
  item
20141
20297
  ), ["stop"]),
20142
20298
  style: normalizeStyle({ cursor: shouldShowCopyButton(getHeaderForColumn(column.key || "")) ? "pointer" : "default" })
20143
- }, toDisplayString(getTranslatedValue(getNestedValue2(item, column.key || ""), column, item)), 13, _hoisted_22)),
20299
+ }, toDisplayString(getTranslatedValue(getNestedValue2(item, column.key || ""), column, item)), 13, _hoisted_24)),
20144
20300
  shouldShowCopyButton(getHeaderForColumn(column.key || "")) ? (openBlock(), createBlock(VBtn, {
20145
20301
  key: 2,
20146
20302
  icon: "",
@@ -20156,7 +20312,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20156
20312
  }, {
20157
20313
  default: withCtx(() => [
20158
20314
  createVNode(VIcon, { size: "16" }, {
20159
- default: withCtx(() => [..._cache[44] || (_cache[44] = [
20315
+ default: withCtx(() => [..._cache[49] || (_cache[49] = [
20160
20316
  createTextVNode("mdi-content-copy", -1)
20161
20317
  ])]),
20162
20318
  _: 1
@@ -20167,24 +20323,24 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20167
20323
  ]))
20168
20324
  ], 4);
20169
20325
  }), 128))
20170
- ], 44, _hoisted_19)
20326
+ ], 44, _hoisted_21)
20171
20327
  ]),
20172
20328
  _: 1
20173
20329
  }, 8, ["headers", "items", "items-per-page", "height"])),
20174
- isLoadingMore.value ? (openBlock(), createElementBlock("div", _hoisted_23, [
20330
+ isLoadingMore.value ? (openBlock(), createElementBlock("div", _hoisted_25, [
20175
20331
  createVNode(VProgressCircular, {
20176
20332
  indeterminate: "",
20177
20333
  color: "primary"
20178
20334
  })
20179
20335
  ])) : createCommentVNode("", true)
20180
20336
  ], 64)),
20181
- props.showPagination ? (openBlock(), createElementBlock("div", _hoisted_24, [
20182
- createElementVNode("div", _hoisted_25, [
20183
- createElementVNode("div", _hoisted_26, " نمایش " + toDisplayString((currentPage.value - 1) * itemsPerPage.value + 1) + " تا " + toDisplayString(Math.min(currentPage.value * itemsPerPage.value, totalSize.value)) + " از " + toDisplayString(totalSize.value) + " رکورد ", 1),
20337
+ props.showPagination ? (openBlock(), createElementBlock("div", _hoisted_26, [
20338
+ createElementVNode("div", _hoisted_27, [
20339
+ createElementVNode("div", _hoisted_28, " نمایش " + toDisplayString((currentPage.value - 1) * itemsPerPage.value + 1) + " تا " + toDisplayString(Math.min(currentPage.value * itemsPerPage.value, totalSize.value)) + " از " + toDisplayString(totalSize.value) + " رکورد ", 1),
20184
20340
  createVNode(VPagination, {
20185
20341
  modelValue: currentPage.value,
20186
20342
  "onUpdate:modelValue": [
20187
- _cache[5] || (_cache[5] = ($event) => currentPage.value = $event),
20343
+ _cache[6] || (_cache[6] = ($event) => currentPage.value = $event),
20188
20344
  handlePageChange
20189
20345
  ],
20190
20346
  length: totalPages.value,
@@ -20196,7 +20352,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20196
20352
  ], 16, _hoisted_8$1),
20197
20353
  createVNode(VDialog, {
20198
20354
  modelValue: dialog.value,
20199
- "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => dialog.value = $event),
20355
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => dialog.value = $event),
20200
20356
  "max-width": "1400"
20201
20357
  }, {
20202
20358
  default: withCtx(() => [
@@ -20215,7 +20371,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20215
20371
  props.formComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.formComponent), {
20216
20372
  key: 0,
20217
20373
  modelValue: formModel.value,
20218
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => formModel.value = $event)
20374
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => formModel.value = $event)
20219
20375
  }, null, 8, ["modelValue"])) : (openBlock(), createBlock(VRow, { key: 1 }, {
20220
20376
  default: withCtx(() => [
20221
20377
  (openBlock(true), createElementBlock(Fragment, null, renderList(formHeaders.value, (header) => {
@@ -20307,9 +20463,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20307
20463
  createVNode(VBtn, {
20308
20464
  variant: "tonal",
20309
20465
  color: "error",
20310
- onClick: _cache[7] || (_cache[7] = ($event) => dialog.value = false)
20466
+ onClick: _cache[8] || (_cache[8] = ($event) => dialog.value = false)
20311
20467
  }, {
20312
- default: withCtx(() => [..._cache[45] || (_cache[45] = [
20468
+ default: withCtx(() => [..._cache[50] || (_cache[50] = [
20313
20469
  createTextVNode("انصراف", -1)
20314
20470
  ])]),
20315
20471
  _: 1
@@ -20335,20 +20491,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20335
20491
  }, 8, ["modelValue"]),
20336
20492
  createVNode(VDialog, {
20337
20493
  modelValue: deleteDialog.value,
20338
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => deleteDialog.value = $event),
20494
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => deleteDialog.value = $event),
20339
20495
  "max-width": "400"
20340
20496
  }, {
20341
20497
  default: withCtx(() => [
20342
20498
  createVNode(VCard, null, {
20343
20499
  default: withCtx(() => [
20344
20500
  createVNode(VCardTitle, null, {
20345
- default: withCtx(() => [..._cache[46] || (_cache[46] = [
20501
+ default: withCtx(() => [..._cache[51] || (_cache[51] = [
20346
20502
  createTextVNode("حذف آیتم", -1)
20347
20503
  ])]),
20348
20504
  _: 1
20349
20505
  }),
20350
20506
  createVNode(VCardText, null, {
20351
- default: withCtx(() => [..._cache[47] || (_cache[47] = [
20507
+ default: withCtx(() => [..._cache[52] || (_cache[52] = [
20352
20508
  createTextVNode(" آیا مایل به حذف این رکورد هستید ?", -1)
20353
20509
  ])]),
20354
20510
  _: 1
@@ -20357,21 +20513,21 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20357
20513
  default: withCtx(() => [
20358
20514
  createVNode(VBtn, {
20359
20515
  color: "grey",
20360
- onClick: _cache[9] || (_cache[9] = ($event) => deleteDialog.value = false)
20516
+ onClick: _cache[10] || (_cache[10] = ($event) => deleteDialog.value = false)
20361
20517
  }, {
20362
- default: withCtx(() => [..._cache[48] || (_cache[48] = [
20518
+ default: withCtx(() => [..._cache[53] || (_cache[53] = [
20363
20519
  createTextVNode("انصراف", -1)
20364
20520
  ])]),
20365
20521
  _: 1
20366
20522
  }),
20367
20523
  createVNode(VBtn, {
20368
20524
  color: "red",
20369
- onClick: _cache[10] || (_cache[10] = ($event) => {
20525
+ onClick: _cache[11] || (_cache[11] = ($event) => {
20370
20526
  var _a2;
20371
20527
  return deleteItem(String(((_a2 = itemToDelete.value) == null ? void 0 : _a2.id) || ""));
20372
20528
  })
20373
20529
  }, {
20374
- default: withCtx(() => [..._cache[49] || (_cache[49] = [
20530
+ default: withCtx(() => [..._cache[54] || (_cache[54] = [
20375
20531
  createTextVNode("حذف", -1)
20376
20532
  ])]),
20377
20533
  _: 1
@@ -20387,7 +20543,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20387
20543
  }, 8, ["modelValue"]),
20388
20544
  createVNode(VDialog, {
20389
20545
  modelValue: groupDeleteDialog.value,
20390
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => groupDeleteDialog.value = $event),
20546
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => groupDeleteDialog.value = $event),
20391
20547
  "max-width": "500"
20392
20548
  }, {
20393
20549
  default: withCtx(() => [
@@ -20399,28 +20555,28 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20399
20555
  color: "red",
20400
20556
  class: "me-2"
20401
20557
  }, {
20402
- default: withCtx(() => [..._cache[50] || (_cache[50] = [
20558
+ default: withCtx(() => [..._cache[55] || (_cache[55] = [
20403
20559
  createTextVNode("🗑️", -1)
20404
20560
  ])]),
20405
20561
  _: 1
20406
20562
  }),
20407
- _cache[51] || (_cache[51] = createTextVNode(" حذف گروهی ", -1))
20563
+ _cache[56] || (_cache[56] = createTextVNode(" حذف گروهی ", -1))
20408
20564
  ]),
20409
20565
  _: 1
20410
20566
  }),
20411
20567
  createVNode(VCardText, null, {
20412
20568
  default: withCtx(() => [
20413
20569
  createElementVNode("p", null, [
20414
- _cache[52] || (_cache[52] = createTextVNode(" آیا مایل به حذف ", -1)),
20570
+ _cache[57] || (_cache[57] = createTextVNode(" آیا مایل به حذف ", -1)),
20415
20571
  createElementVNode("strong", null, toDisplayString(selectedCount.value), 1),
20416
- _cache[53] || (_cache[53] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
20572
+ _cache[58] || (_cache[58] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
20417
20573
  ]),
20418
20574
  createVNode(VAlert, {
20419
20575
  type: "warning",
20420
20576
  variant: "tonal",
20421
20577
  class: "mt-3"
20422
20578
  }, {
20423
- default: withCtx(() => [..._cache[54] || (_cache[54] = [
20579
+ default: withCtx(() => [..._cache[59] || (_cache[59] = [
20424
20580
  createTextVNode(" این عمل قابل بازگشت نیست! ", -1)
20425
20581
  ])]),
20426
20582
  _: 1
@@ -20433,9 +20589,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20433
20589
  createVNode(VSpacer),
20434
20590
  createVNode(VBtn, {
20435
20591
  color: "grey",
20436
- onClick: _cache[12] || (_cache[12] = ($event) => groupDeleteDialog.value = false)
20592
+ onClick: _cache[13] || (_cache[13] = ($event) => groupDeleteDialog.value = false)
20437
20593
  }, {
20438
- default: withCtx(() => [..._cache[55] || (_cache[55] = [
20594
+ default: withCtx(() => [..._cache[60] || (_cache[60] = [
20439
20595
  createTextVNode("انصراف", -1)
20440
20596
  ])]),
20441
20597
  _: 1
@@ -20461,7 +20617,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20461
20617
  }, 8, ["modelValue"]),
20462
20618
  createVNode(VDialog, {
20463
20619
  modelValue: customActionDialog.value,
20464
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => customActionDialog.value = $event),
20620
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => customActionDialog.value = $event),
20465
20621
  "max-width": "1300"
20466
20622
  }, {
20467
20623
  default: withCtx(() => [
@@ -20481,7 +20637,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20481
20637
  customActionComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(customActionComponent.value), {
20482
20638
  key: 0,
20483
20639
  item: customActionItem.value,
20484
- onClose: _cache[14] || (_cache[14] = ($event) => customActionDialog.value = false)
20640
+ onClose: _cache[15] || (_cache[15] = ($event) => customActionDialog.value = false)
20485
20641
  }, null, 40, ["item"])) : createCommentVNode("", true)
20486
20642
  ]),
20487
20643
  _: 1
@@ -20494,14 +20650,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20494
20650
  }, 8, ["modelValue"]),
20495
20651
  createVNode(VDialog, {
20496
20652
  modelValue: filterDialog.value,
20497
- "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => filterDialog.value = $event),
20653
+ "onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => filterDialog.value = $event),
20498
20654
  "max-width": "1500"
20499
20655
  }, {
20500
20656
  default: withCtx(() => [
20501
20657
  createVNode(VCard, null, {
20502
20658
  default: withCtx(() => [
20503
20659
  createVNode(VCardTitle, null, {
20504
- default: withCtx(() => [..._cache[56] || (_cache[56] = [
20660
+ default: withCtx(() => [..._cache[61] || (_cache[61] = [
20505
20661
  createTextVNode("فیلتر", -1)
20506
20662
  ])]),
20507
20663
  _: 1
@@ -20511,7 +20667,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20511
20667
  props.filterComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.filterComponent), {
20512
20668
  key: 0,
20513
20669
  "model-value": filterModel.value,
20514
- "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => filterModel.value = $event),
20670
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => filterModel.value = $event),
20515
20671
  onApply: handleFilterApply
20516
20672
  }, null, 40, ["model-value"])) : (openBlock(), createBlock(VContainer, { key: 1 }, {
20517
20673
  default: withCtx(() => [
@@ -20623,7 +20779,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20623
20779
  variant: "tonal",
20624
20780
  onClick: resetFilter
20625
20781
  }, {
20626
- default: withCtx(() => [..._cache[57] || (_cache[57] = [
20782
+ default: withCtx(() => [..._cache[62] || (_cache[62] = [
20627
20783
  createTextVNode("حذف فیلترها", -1)
20628
20784
  ])]),
20629
20785
  _: 1
@@ -20632,7 +20788,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20632
20788
  color: "primary",
20633
20789
  onClick: applyFilter
20634
20790
  }, {
20635
- default: withCtx(() => [..._cache[58] || (_cache[58] = [
20791
+ default: withCtx(() => [..._cache[63] || (_cache[63] = [
20636
20792
  createTextVNode("اعمال فیلتر", -1)
20637
20793
  ])]),
20638
20794
  _: 1
@@ -20648,7 +20804,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20648
20804
  }, 8, ["modelValue"]),
20649
20805
  createVNode(VDialog, {
20650
20806
  modelValue: textPreviewDialog.value,
20651
- "onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => textPreviewDialog.value = $event),
20807
+ "onUpdate:modelValue": _cache[22] || (_cache[22] = ($event) => textPreviewDialog.value = $event),
20652
20808
  "max-width": "800"
20653
20809
  }, {
20654
20810
  default: withCtx(() => [
@@ -20660,11 +20816,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20660
20816
  createVNode(VBtn, {
20661
20817
  icon: "",
20662
20818
  variant: "text",
20663
- onClick: _cache[18] || (_cache[18] = ($event) => textPreviewDialog.value = false)
20819
+ onClick: _cache[19] || (_cache[19] = ($event) => textPreviewDialog.value = false)
20664
20820
  }, {
20665
20821
  default: withCtx(() => [
20666
20822
  createVNode(VIcon, null, {
20667
- default: withCtx(() => [..._cache[59] || (_cache[59] = [
20823
+ default: withCtx(() => [..._cache[64] || (_cache[64] = [
20668
20824
  createTextVNode("mdi-close", -1)
20669
20825
  ])]),
20670
20826
  _: 1
@@ -20693,16 +20849,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20693
20849
  createVNode(VSpacer),
20694
20850
  createVNode(VBtn, {
20695
20851
  color: "primary",
20696
- onClick: _cache[19] || (_cache[19] = ($event) => copyToClipboard(previewText.value))
20852
+ onClick: _cache[20] || (_cache[20] = ($event) => copyToClipboard(previewText.value))
20697
20853
  }, {
20698
20854
  default: withCtx(() => [
20699
20855
  createVNode(VIcon, { start: "" }, {
20700
- default: withCtx(() => [..._cache[60] || (_cache[60] = [
20856
+ default: withCtx(() => [..._cache[65] || (_cache[65] = [
20701
20857
  createTextVNode("mdi-content-copy", -1)
20702
20858
  ])]),
20703
20859
  _: 1
20704
20860
  }),
20705
- _cache[61] || (_cache[61] = createTextVNode(" کپی متن ", -1))
20861
+ _cache[66] || (_cache[66] = createTextVNode(" کپی متن ", -1))
20706
20862
  ]),
20707
20863
  _: 1
20708
20864
  }),
@@ -20712,20 +20868,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20712
20868
  }, {
20713
20869
  default: withCtx(() => [
20714
20870
  createVNode(VIcon, { start: "" }, {
20715
- default: withCtx(() => [..._cache[62] || (_cache[62] = [
20871
+ default: withCtx(() => [..._cache[67] || (_cache[67] = [
20716
20872
  createTextVNode("mdi-content-copy", -1)
20717
20873
  ])]),
20718
20874
  _: 1
20719
20875
  }),
20720
- _cache[63] || (_cache[63] = createTextVNode(" کپی رکورد کامل ", -1))
20876
+ _cache[68] || (_cache[68] = createTextVNode(" کپی رکورد کامل ", -1))
20721
20877
  ]),
20722
20878
  _: 1
20723
20879
  }),
20724
20880
  createVNode(VBtn, {
20725
20881
  color: "grey",
20726
- onClick: _cache[20] || (_cache[20] = ($event) => textPreviewDialog.value = false)
20882
+ onClick: _cache[21] || (_cache[21] = ($event) => textPreviewDialog.value = false)
20727
20883
  }, {
20728
- default: withCtx(() => [..._cache[64] || (_cache[64] = [
20884
+ default: withCtx(() => [..._cache[69] || (_cache[69] = [
20729
20885
  createTextVNode("بستن", -1)
20730
20886
  ])]),
20731
20887
  _: 1
@@ -20742,7 +20898,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20742
20898
  snackbar.value ? (openBlock(), createBlock(VSnackbar, {
20743
20899
  key: 1,
20744
20900
  modelValue: snackbar.value,
20745
- "onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => snackbar.value = $event),
20901
+ "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => snackbar.value = $event),
20746
20902
  timeout: 3e3,
20747
20903
  location: "top"
20748
20904
  }, {
@@ -20750,9 +20906,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
20750
20906
  createVNode(VBtn, {
20751
20907
  color: "white",
20752
20908
  variant: "text",
20753
- onClick: _cache[22] || (_cache[22] = ($event) => snackbar.value = false)
20909
+ onClick: _cache[23] || (_cache[23] = ($event) => snackbar.value = false)
20754
20910
  }, {
20755
- default: withCtx(() => [..._cache[65] || (_cache[65] = [
20911
+ default: withCtx(() => [..._cache[70] || (_cache[70] = [
20756
20912
  createTextVNode(" بستن ", -1)
20757
20913
  ])]),
20758
20914
  _: 1