@amirjalili1374/ui-kit 1.5.86 → 1.5.88

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, IconFileExport, IconCheck, IconSquareX, IconChevronDown, IconChevronRight, 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";
@@ -39781,23 +39781,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
39781
39781
  }, 8, ["loading"])) : createCommentVNode("", true),
39782
39782
  __props.enableExport ? (openBlock(), createBlock(VBtn, {
39783
39783
  key: 5,
39784
- icon: "",
39785
- class: "text-secondary mx-3",
39786
- color: "lightsecondary",
39787
- rounded: "sm",
39788
- size: "large",
39789
- variant: "flat",
39790
- loading: exportLoading.value,
39791
- disabled: loading.value,
39784
+ color: "secondary",
39785
+ variant: "tonal",
39786
+ class: "me-2",
39792
39787
  onClick: onExportClick,
39793
- title: "خروجی اکسل"
39788
+ loading: exportLoading.value,
39789
+ disabled: loading.value
39794
39790
  }, {
39795
- default: withCtx(() => [
39796
- createVNode(unref(IconFileExport), {
39797
- "stroke-width": "1.5",
39798
- size: "22"
39799
- })
39800
- ]),
39791
+ default: withCtx(() => [..._cache[30] || (_cache[30] = [
39792
+ createTextVNode("گزارش کلی", -1)
39793
+ ])]),
39801
39794
  _: 1
39802
39795
  }, 8, ["loading", "disabled"])) : createCommentVNode("", true),
39803
39796
  createVNode(Transition, {
@@ -39814,7 +39807,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
39814
39807
  onClick: openGroupDeleteDialog
39815
39808
  }, {
39816
39809
  default: withCtx(() => [
39817
- _cache[30] || (_cache[30] = createElementVNode("span", { class: "me-1" }, "🗑️", -1)),
39810
+ _cache[31] || (_cache[31] = createElementVNode("span", { class: "me-1" }, "🗑️", -1)),
39818
39811
  createTextVNode(" حذف گروهی (" + toDisplayString(selectedCount.value) + ") ", 1)
39819
39812
  ]),
39820
39813
  _: 1
@@ -39831,7 +39824,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
39831
39824
  class: "me-2",
39832
39825
  onClick: ($event) => openDialog(item)
39833
39826
  }, {
39834
- default: withCtx(() => [..._cache[31] || (_cache[31] = [
39827
+ default: withCtx(() => [..._cache[32] || (_cache[32] = [
39835
39828
  createElementVNode("span", { class: "me-1" }, "✏️", -1),
39836
39829
  createTextVNode(" ویرایش ", -1)
39837
39830
  ])]),
@@ -39844,7 +39837,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
39844
39837
  class: "me-2",
39845
39838
  onClick: ($event) => openDeleteDialog(item)
39846
39839
  }, {
39847
- default: withCtx(() => [..._cache[32] || (_cache[32] = [
39840
+ default: withCtx(() => [..._cache[33] || (_cache[33] = [
39848
39841
  createElementVNode("span", { class: "me-1" }, "🗑️", -1),
39849
39842
  createTextVNode(" حذف ", -1)
39850
39843
  ])]),
@@ -39857,7 +39850,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
39857
39850
  class: "me-2",
39858
39851
  onClick: ($event) => goToRoute("view", item)
39859
39852
  }, {
39860
- default: withCtx(() => [..._cache[33] || (_cache[33] = [
39853
+ default: withCtx(() => [..._cache[34] || (_cache[34] = [
39861
39854
  createElementVNode("span", { class: "me-1" }, "👁️", -1),
39862
39855
  createTextVNode(" نمایش ", -1)
39863
39856
  ])]),
@@ -39872,7 +39865,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
39872
39865
  onClick: ($event) => goToRoute(routeKey, item)
39873
39866
  }, {
39874
39867
  default: withCtx(() => [
39875
- _cache[34] || (_cache[34] = createElementVNode("span", { class: "me-1" }, "➡️", -1)),
39868
+ _cache[35] || (_cache[35] = createElementVNode("span", { class: "me-1" }, "➡️", -1)),
39876
39869
  createTextVNode(" " + toDisplayString(String(routeKey)), 1)
39877
39870
  ]),
39878
39871
  _: 2
@@ -39886,7 +39879,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
39886
39879
  onClick: ($event) => download(key2, item)
39887
39880
  }, {
39888
39881
  default: withCtx(() => [
39889
- _cache[35] || (_cache[35] = createElementVNode("span", { class: "me-1" }, "⬇️", -1)),
39882
+ _cache[36] || (_cache[36] = createElementVNode("span", { class: "me-1" }, "⬇️", -1)),
39890
39883
  createTextVNode(" " + toDisplayString(key2), 1)
39891
39884
  ]),
39892
39885
  _: 2
@@ -40086,7 +40079,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40086
40079
  class: "me-2",
40087
40080
  onClick: clearSelection
40088
40081
  }, {
40089
- default: withCtx(() => [..._cache[36] || (_cache[36] = [
40082
+ default: withCtx(() => [..._cache[37] || (_cache[37] = [
40090
40083
  createTextVNode(" پاک کردن انتخاب ", -1)
40091
40084
  ])]),
40092
40085
  _: 1
@@ -40118,7 +40111,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40118
40111
  onClick: expandAllGroups,
40119
40112
  class: "me-2"
40120
40113
  }, {
40121
- default: withCtx(() => [..._cache[37] || (_cache[37] = [
40114
+ default: withCtx(() => [..._cache[38] || (_cache[38] = [
40122
40115
  createTextVNode(" گسترش همه ", -1)
40123
40116
  ])]),
40124
40117
  _: 1
@@ -40129,7 +40122,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40129
40122
  onClick: collapseAllGroups,
40130
40123
  class: "me-2"
40131
40124
  }, {
40132
- default: withCtx(() => [..._cache[38] || (_cache[38] = [
40125
+ default: withCtx(() => [..._cache[39] || (_cache[39] = [
40133
40126
  createTextVNode(" جمع کردن همه ", -1)
40134
40127
  ])]),
40135
40128
  _: 1
@@ -40257,7 +40250,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40257
40250
  class: "mr-2",
40258
40251
  onClick: ($event) => openDialog(item)
40259
40252
  }, {
40260
- default: withCtx(() => [..._cache[39] || (_cache[39] = [
40253
+ default: withCtx(() => [..._cache[40] || (_cache[40] = [
40261
40254
  createTextVNode(" ویرایش ✏️ ", -1)
40262
40255
  ])]),
40263
40256
  _: 1
@@ -40269,7 +40262,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40269
40262
  class: "mr-2",
40270
40263
  onClick: ($event) => openDeleteDialog(item)
40271
40264
  }, {
40272
- default: withCtx(() => [..._cache[40] || (_cache[40] = [
40265
+ default: withCtx(() => [..._cache[41] || (_cache[41] = [
40273
40266
  createTextVNode("حذف ❌ ", -1)
40274
40267
  ])]),
40275
40268
  _: 1
@@ -40281,7 +40274,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40281
40274
  class: "mr-2",
40282
40275
  onClick: ($event) => goToRoute("view", item)
40283
40276
  }, {
40284
- default: withCtx(() => [..._cache[41] || (_cache[41] = [
40277
+ default: withCtx(() => [..._cache[42] || (_cache[42] = [
40285
40278
  createTextVNode("🔍 نمایش ", -1)
40286
40279
  ])]),
40287
40280
  _: 1
@@ -40396,7 +40389,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40396
40389
  }, {
40397
40390
  default: withCtx(() => [
40398
40391
  createVNode(VIcon, { size: "16" }, {
40399
- default: withCtx(() => [..._cache[42] || (_cache[42] = [
40392
+ default: withCtx(() => [..._cache[43] || (_cache[43] = [
40400
40393
  createTextVNode("mdi-content-copy", -1)
40401
40394
  ])]),
40402
40395
  _: 1
@@ -40488,7 +40481,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40488
40481
  class: "mr-2",
40489
40482
  onClick: ($event) => openDialog(item)
40490
40483
  }, {
40491
- default: withCtx(() => [..._cache[43] || (_cache[43] = [
40484
+ default: withCtx(() => [..._cache[44] || (_cache[44] = [
40492
40485
  createTextVNode(" ویرایش ✏️ ", -1)
40493
40486
  ])]),
40494
40487
  _: 1
@@ -40500,7 +40493,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40500
40493
  class: "mr-2",
40501
40494
  onClick: ($event) => openDeleteDialog(item)
40502
40495
  }, {
40503
- default: withCtx(() => [..._cache[44] || (_cache[44] = [
40496
+ default: withCtx(() => [..._cache[45] || (_cache[45] = [
40504
40497
  createTextVNode("حذف ❌ ", -1)
40505
40498
  ])]),
40506
40499
  _: 1
@@ -40512,7 +40505,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40512
40505
  class: "mr-2",
40513
40506
  onClick: ($event) => goToRoute("view", item)
40514
40507
  }, {
40515
- default: withCtx(() => [..._cache[45] || (_cache[45] = [
40508
+ default: withCtx(() => [..._cache[46] || (_cache[46] = [
40516
40509
  createTextVNode("🔍 نمایش ", -1)
40517
40510
  ])]),
40518
40511
  _: 1
@@ -40627,7 +40620,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40627
40620
  }, {
40628
40621
  default: withCtx(() => [
40629
40622
  createVNode(VIcon, { size: "16" }, {
40630
- default: withCtx(() => [..._cache[46] || (_cache[46] = [
40623
+ default: withCtx(() => [..._cache[47] || (_cache[47] = [
40631
40624
  createTextVNode("mdi-content-copy", -1)
40632
40625
  ])]),
40633
40626
  _: 1
@@ -40780,7 +40773,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40780
40773
  color: "error",
40781
40774
  onClick: _cache[8] || (_cache[8] = ($event) => dialog.value = false)
40782
40775
  }, {
40783
- default: withCtx(() => [..._cache[47] || (_cache[47] = [
40776
+ default: withCtx(() => [..._cache[48] || (_cache[48] = [
40784
40777
  createTextVNode("انصراف", -1)
40785
40778
  ])]),
40786
40779
  _: 1
@@ -40813,13 +40806,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40813
40806
  createVNode(VCard, null, {
40814
40807
  default: withCtx(() => [
40815
40808
  createVNode(VCardTitle, null, {
40816
- default: withCtx(() => [..._cache[48] || (_cache[48] = [
40809
+ default: withCtx(() => [..._cache[49] || (_cache[49] = [
40817
40810
  createTextVNode("حذف آیتم", -1)
40818
40811
  ])]),
40819
40812
  _: 1
40820
40813
  }),
40821
40814
  createVNode(VCardText, null, {
40822
- default: withCtx(() => [..._cache[49] || (_cache[49] = [
40815
+ default: withCtx(() => [..._cache[50] || (_cache[50] = [
40823
40816
  createTextVNode(" آیا مایل به حذف این رکورد هستید ?", -1)
40824
40817
  ])]),
40825
40818
  _: 1
@@ -40830,7 +40823,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40830
40823
  color: "grey",
40831
40824
  onClick: _cache[10] || (_cache[10] = ($event) => deleteDialog.value = false)
40832
40825
  }, {
40833
- default: withCtx(() => [..._cache[50] || (_cache[50] = [
40826
+ default: withCtx(() => [..._cache[51] || (_cache[51] = [
40834
40827
  createTextVNode("انصراف", -1)
40835
40828
  ])]),
40836
40829
  _: 1
@@ -40842,7 +40835,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40842
40835
  return deleteItem(String(((_a2 = itemToDelete.value) == null ? void 0 : _a2.id) || ""));
40843
40836
  })
40844
40837
  }, {
40845
- default: withCtx(() => [..._cache[51] || (_cache[51] = [
40838
+ default: withCtx(() => [..._cache[52] || (_cache[52] = [
40846
40839
  createTextVNode("حذف", -1)
40847
40840
  ])]),
40848
40841
  _: 1
@@ -40870,28 +40863,28 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40870
40863
  color: "red",
40871
40864
  class: "me-2"
40872
40865
  }, {
40873
- default: withCtx(() => [..._cache[52] || (_cache[52] = [
40866
+ default: withCtx(() => [..._cache[53] || (_cache[53] = [
40874
40867
  createTextVNode("🗑️", -1)
40875
40868
  ])]),
40876
40869
  _: 1
40877
40870
  }),
40878
- _cache[53] || (_cache[53] = createTextVNode(" حذف گروهی ", -1))
40871
+ _cache[54] || (_cache[54] = createTextVNode(" حذف گروهی ", -1))
40879
40872
  ]),
40880
40873
  _: 1
40881
40874
  }),
40882
40875
  createVNode(VCardText, null, {
40883
40876
  default: withCtx(() => [
40884
40877
  createElementVNode("p", null, [
40885
- _cache[54] || (_cache[54] = createTextVNode(" آیا مایل به حذف ", -1)),
40878
+ _cache[55] || (_cache[55] = createTextVNode(" آیا مایل به حذف ", -1)),
40886
40879
  createElementVNode("strong", null, toDisplayString(selectedCount.value), 1),
40887
- _cache[55] || (_cache[55] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
40880
+ _cache[56] || (_cache[56] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
40888
40881
  ]),
40889
40882
  createVNode(VAlert, {
40890
40883
  type: "warning",
40891
40884
  variant: "tonal",
40892
40885
  class: "mt-3"
40893
40886
  }, {
40894
- default: withCtx(() => [..._cache[56] || (_cache[56] = [
40887
+ default: withCtx(() => [..._cache[57] || (_cache[57] = [
40895
40888
  createTextVNode(" این عمل قابل بازگشت نیست! ", -1)
40896
40889
  ])]),
40897
40890
  _: 1
@@ -40906,7 +40899,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40906
40899
  color: "grey",
40907
40900
  onClick: _cache[13] || (_cache[13] = ($event) => groupDeleteDialog.value = false)
40908
40901
  }, {
40909
- default: withCtx(() => [..._cache[57] || (_cache[57] = [
40902
+ default: withCtx(() => [..._cache[58] || (_cache[58] = [
40910
40903
  createTextVNode("انصراف", -1)
40911
40904
  ])]),
40912
40905
  _: 1
@@ -40973,7 +40966,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
40973
40966
  createVNode(VCard, null, {
40974
40967
  default: withCtx(() => [
40975
40968
  createVNode(VCardTitle, null, {
40976
- default: withCtx(() => [..._cache[58] || (_cache[58] = [
40969
+ default: withCtx(() => [..._cache[59] || (_cache[59] = [
40977
40970
  createTextVNode("فیلتر", -1)
40978
40971
  ])]),
40979
40972
  _: 1
@@ -41093,7 +41086,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
41093
41086
  variant: "tonal",
41094
41087
  onClick: resetFilter
41095
41088
  }, {
41096
- default: withCtx(() => [..._cache[59] || (_cache[59] = [
41089
+ default: withCtx(() => [..._cache[60] || (_cache[60] = [
41097
41090
  createTextVNode("حذف فیلترها", -1)
41098
41091
  ])]),
41099
41092
  _: 1
@@ -41102,7 +41095,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
41102
41095
  color: "primary",
41103
41096
  onClick: applyFilter
41104
41097
  }, {
41105
- default: withCtx(() => [..._cache[60] || (_cache[60] = [
41098
+ default: withCtx(() => [..._cache[61] || (_cache[61] = [
41106
41099
  createTextVNode("اعمال فیلتر", -1)
41107
41100
  ])]),
41108
41101
  _: 1
@@ -41134,7 +41127,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
41134
41127
  }, {
41135
41128
  default: withCtx(() => [
41136
41129
  createVNode(VIcon, null, {
41137
- default: withCtx(() => [..._cache[61] || (_cache[61] = [
41130
+ default: withCtx(() => [..._cache[62] || (_cache[62] = [
41138
41131
  createTextVNode("mdi-close", -1)
41139
41132
  ])]),
41140
41133
  _: 1
@@ -41167,12 +41160,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
41167
41160
  }, {
41168
41161
  default: withCtx(() => [
41169
41162
  createVNode(VIcon, { start: "" }, {
41170
- default: withCtx(() => [..._cache[62] || (_cache[62] = [
41163
+ default: withCtx(() => [..._cache[63] || (_cache[63] = [
41171
41164
  createTextVNode("mdi-content-copy", -1)
41172
41165
  ])]),
41173
41166
  _: 1
41174
41167
  }),
41175
- _cache[63] || (_cache[63] = createTextVNode(" کپی متن ", -1))
41168
+ _cache[64] || (_cache[64] = createTextVNode(" کپی متن ", -1))
41176
41169
  ]),
41177
41170
  _: 1
41178
41171
  }),
@@ -41182,12 +41175,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
41182
41175
  }, {
41183
41176
  default: withCtx(() => [
41184
41177
  createVNode(VIcon, { start: "" }, {
41185
- default: withCtx(() => [..._cache[64] || (_cache[64] = [
41178
+ default: withCtx(() => [..._cache[65] || (_cache[65] = [
41186
41179
  createTextVNode("mdi-content-copy", -1)
41187
41180
  ])]),
41188
41181
  _: 1
41189
41182
  }),
41190
- _cache[65] || (_cache[65] = createTextVNode(" کپی رکورد کامل ", -1))
41183
+ _cache[66] || (_cache[66] = createTextVNode(" کپی رکورد کامل ", -1))
41191
41184
  ]),
41192
41185
  _: 1
41193
41186
  }),
@@ -41195,7 +41188,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
41195
41188
  color: "grey",
41196
41189
  onClick: _cache[21] || (_cache[21] = ($event) => textPreviewDialog.value = false)
41197
41190
  }, {
41198
- default: withCtx(() => [..._cache[66] || (_cache[66] = [
41191
+ default: withCtx(() => [..._cache[67] || (_cache[67] = [
41199
41192
  createTextVNode("بستن", -1)
41200
41193
  ])]),
41201
41194
  _: 1
@@ -41222,7 +41215,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
41222
41215
  variant: "text",
41223
41216
  onClick: _cache[23] || (_cache[23] = ($event) => snackbar.value = false)
41224
41217
  }, {
41225
- default: withCtx(() => [..._cache[67] || (_cache[67] = [
41218
+ default: withCtx(() => [..._cache[68] || (_cache[68] = [
41226
41219
  createTextVNode(" بستن ", -1)
41227
41220
  ])]),
41228
41221
  _: 1