@amirjalili1374/ui-kit 1.4.43 → 1.4.45

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
@@ -7,7 +7,6 @@ import axios from "axios";
7
7
  import { useDebounceFn } from "@vueuse/core";
8
8
  import { useRouter as useRouter$1 } from "vue-router";
9
9
  import { defineStore } from "pinia";
10
- import { string } from "yup";
11
10
  import VueKeycloakJs from "@dsb-norge/vue-keycloak-js";
12
11
  function propsFactory(props, source) {
13
12
  return (defaults) => {
@@ -18461,7 +18460,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18461
18460
  _: 1
18462
18461
  })) : createCommentVNode("", true),
18463
18462
  props.bulkMode ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(validSelectedItems.value, (item) => {
18464
- var _a2, _b2, _c;
18463
+ var _a2, _b2, _c, _d;
18465
18464
  return openBlock(), createElementBlock(Fragment, {
18466
18465
  key: getUniqueValue(item)
18467
18466
  }, [
@@ -18504,6 +18503,19 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18504
18503
  ])]),
18505
18504
  _: 1
18506
18505
  }, 8, ["onClick"])) : createCommentVNode("", true),
18506
+ ((_d = props.actions) == null ? void 0 : _d.includes("manual")) ? (openBlock(), createBlock(VBtn, {
18507
+ key: 3,
18508
+ color: "primary",
18509
+ size: "small",
18510
+ class: "me-2",
18511
+ onClick: fetchData
18512
+ }, {
18513
+ default: withCtx(() => [..._cache[30] || (_cache[30] = [
18514
+ createElementVNode("span", { class: "me-1" }, "👁️", -1),
18515
+ createTextVNode(" جستجو ", -1)
18516
+ ])]),
18517
+ _: 1
18518
+ })) : createCommentVNode("", true),
18507
18519
  (openBlock(true), createElementBlock(Fragment, null, renderList(getRoutesForItem(item), (routePath, routeKey) => {
18508
18520
  return openBlock(), createBlock(VBtn, {
18509
18521
  key: routeKey,
@@ -18513,7 +18525,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18513
18525
  onClick: ($event) => goToRoute(routeKey, item)
18514
18526
  }, {
18515
18527
  default: withCtx(() => [
18516
- _cache[30] || (_cache[30] = createElementVNode("span", { class: "me-1" }, "➡️", -1)),
18528
+ _cache[31] || (_cache[31] = createElementVNode("span", { class: "me-1" }, "➡️", -1)),
18517
18529
  createTextVNode(" " + toDisplayString(String(routeKey)), 1)
18518
18530
  ]),
18519
18531
  _: 2
@@ -18527,7 +18539,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18527
18539
  onClick: ($event) => download(key2, item)
18528
18540
  }, {
18529
18541
  default: withCtx(() => [
18530
- _cache[31] || (_cache[31] = createElementVNode("span", { class: "me-1" }, "⬇️", -1)),
18542
+ _cache[32] || (_cache[32] = createElementVNode("span", { class: "me-1" }, "⬇️", -1)),
18531
18543
  createTextVNode(" " + toDisplayString(key2), 1)
18532
18544
  ]),
18533
18545
  _: 2
@@ -18551,7 +18563,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18551
18563
  }, 1032, ["onClick"])) : createCommentVNode("", true)
18552
18564
  ], 64);
18553
18565
  }), 128)),
18554
- props.customButtonsFn ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(props.customButtonsFn(item), (button) => {
18566
+ props.customButtonsFn ? (openBlock(true), createElementBlock(Fragment, { key: 4 }, renderList(props.customButtonsFn(item), (button) => {
18555
18567
  return openBlock(), createBlock(VBtn, {
18556
18568
  key: button.label,
18557
18569
  color: button.color || "primary",
@@ -18566,7 +18578,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18566
18578
  ]),
18567
18579
  _: 2
18568
18580
  }, 1032, ["color", "disabled", "onClick"]);
18569
- }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 4 }, renderList(props.customButtons, (button) => {
18581
+ }), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 5 }, renderList(props.customButtons, (button) => {
18570
18582
  return openBlock(), createBlock(VBtn, {
18571
18583
  key: button.label,
18572
18584
  color: button.color || "primary",
@@ -18614,7 +18626,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18614
18626
  onClick: expandAllGroups,
18615
18627
  class: "me-2"
18616
18628
  }, {
18617
- default: withCtx(() => [..._cache[32] || (_cache[32] = [
18629
+ default: withCtx(() => [..._cache[33] || (_cache[33] = [
18618
18630
  createTextVNode(" گسترش همه ", -1)
18619
18631
  ])]),
18620
18632
  _: 1
@@ -18625,7 +18637,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18625
18637
  onClick: collapseAllGroups,
18626
18638
  class: "me-2"
18627
18639
  }, {
18628
- default: withCtx(() => [..._cache[33] || (_cache[33] = [
18640
+ default: withCtx(() => [..._cache[34] || (_cache[34] = [
18629
18641
  createTextVNode(" جمع کردن همه ", -1)
18630
18642
  ])]),
18631
18643
  _: 1
@@ -18753,7 +18765,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18753
18765
  class: "mr-2",
18754
18766
  onClick: ($event) => openDialog(item)
18755
18767
  }, {
18756
- default: withCtx(() => [..._cache[34] || (_cache[34] = [
18768
+ default: withCtx(() => [..._cache[35] || (_cache[35] = [
18757
18769
  createTextVNode(" ویرایش ✏️ ", -1)
18758
18770
  ])]),
18759
18771
  _: 1
@@ -18765,7 +18777,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18765
18777
  class: "mr-2",
18766
18778
  onClick: ($event) => openDeleteDialog(item)
18767
18779
  }, {
18768
- default: withCtx(() => [..._cache[35] || (_cache[35] = [
18780
+ default: withCtx(() => [..._cache[36] || (_cache[36] = [
18769
18781
  createTextVNode("حذف ❌ ", -1)
18770
18782
  ])]),
18771
18783
  _: 1
@@ -18777,7 +18789,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18777
18789
  class: "mr-2",
18778
18790
  onClick: ($event) => goToRoute("view", item)
18779
18791
  }, {
18780
- default: withCtx(() => [..._cache[36] || (_cache[36] = [
18792
+ default: withCtx(() => [..._cache[37] || (_cache[37] = [
18781
18793
  createTextVNode("🔍 نمایش ", -1)
18782
18794
  ])]),
18783
18795
  _: 1
@@ -18892,7 +18904,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18892
18904
  }, {
18893
18905
  default: withCtx(() => [
18894
18906
  createVNode(VIcon, { size: "16" }, {
18895
- default: withCtx(() => [..._cache[37] || (_cache[37] = [
18907
+ default: withCtx(() => [..._cache[38] || (_cache[38] = [
18896
18908
  createTextVNode("mdi-content-copy", -1)
18897
18909
  ])]),
18898
18910
  _: 1
@@ -18983,7 +18995,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18983
18995
  class: "mr-2",
18984
18996
  onClick: ($event) => openDialog(item)
18985
18997
  }, {
18986
- default: withCtx(() => [..._cache[38] || (_cache[38] = [
18998
+ default: withCtx(() => [..._cache[39] || (_cache[39] = [
18987
18999
  createTextVNode(" ویرایش ✏️ ", -1)
18988
19000
  ])]),
18989
19001
  _: 1
@@ -18995,7 +19007,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
18995
19007
  class: "mr-2",
18996
19008
  onClick: ($event) => openDeleteDialog(item)
18997
19009
  }, {
18998
- default: withCtx(() => [..._cache[39] || (_cache[39] = [
19010
+ default: withCtx(() => [..._cache[40] || (_cache[40] = [
18999
19011
  createTextVNode("حذف ❌ ", -1)
19000
19012
  ])]),
19001
19013
  _: 1
@@ -19007,7 +19019,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19007
19019
  class: "mr-2",
19008
19020
  onClick: ($event) => goToRoute("view", item)
19009
19021
  }, {
19010
- default: withCtx(() => [..._cache[40] || (_cache[40] = [
19022
+ default: withCtx(() => [..._cache[41] || (_cache[41] = [
19011
19023
  createTextVNode("🔍 نمایش ", -1)
19012
19024
  ])]),
19013
19025
  _: 1
@@ -19122,7 +19134,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19122
19134
  }, {
19123
19135
  default: withCtx(() => [
19124
19136
  createVNode(VIcon, { size: "16" }, {
19125
- default: withCtx(() => [..._cache[41] || (_cache[41] = [
19137
+ default: withCtx(() => [..._cache[42] || (_cache[42] = [
19126
19138
  createTextVNode("mdi-content-copy", -1)
19127
19139
  ])]),
19128
19140
  _: 1
@@ -19275,7 +19287,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19275
19287
  color: "error",
19276
19288
  onClick: _cache[5] || (_cache[5] = ($event) => dialog.value = false)
19277
19289
  }, {
19278
- default: withCtx(() => [..._cache[42] || (_cache[42] = [
19290
+ default: withCtx(() => [..._cache[43] || (_cache[43] = [
19279
19291
  createTextVNode("انصراف", -1)
19280
19292
  ])]),
19281
19293
  _: 1
@@ -19308,13 +19320,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19308
19320
  createVNode(VCard, null, {
19309
19321
  default: withCtx(() => [
19310
19322
  createVNode(VCardTitle, null, {
19311
- default: withCtx(() => [..._cache[43] || (_cache[43] = [
19323
+ default: withCtx(() => [..._cache[44] || (_cache[44] = [
19312
19324
  createTextVNode("حذف آیتم", -1)
19313
19325
  ])]),
19314
19326
  _: 1
19315
19327
  }),
19316
19328
  createVNode(VCardText, null, {
19317
- default: withCtx(() => [..._cache[44] || (_cache[44] = [
19329
+ default: withCtx(() => [..._cache[45] || (_cache[45] = [
19318
19330
  createTextVNode(" آیا مایل به حذف این رکورد هستید ?", -1)
19319
19331
  ])]),
19320
19332
  _: 1
@@ -19325,7 +19337,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19325
19337
  color: "grey",
19326
19338
  onClick: _cache[7] || (_cache[7] = ($event) => deleteDialog.value = false)
19327
19339
  }, {
19328
- default: withCtx(() => [..._cache[45] || (_cache[45] = [
19340
+ default: withCtx(() => [..._cache[46] || (_cache[46] = [
19329
19341
  createTextVNode("انصراف", -1)
19330
19342
  ])]),
19331
19343
  _: 1
@@ -19337,7 +19349,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19337
19349
  return deleteItem(String(((_a2 = itemToDelete.value) == null ? void 0 : _a2.id) || ""));
19338
19350
  })
19339
19351
  }, {
19340
- default: withCtx(() => [..._cache[46] || (_cache[46] = [
19352
+ default: withCtx(() => [..._cache[47] || (_cache[47] = [
19341
19353
  createTextVNode("حذف", -1)
19342
19354
  ])]),
19343
19355
  _: 1
@@ -19365,28 +19377,28 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19365
19377
  color: "red",
19366
19378
  class: "me-2"
19367
19379
  }, {
19368
- default: withCtx(() => [..._cache[47] || (_cache[47] = [
19380
+ default: withCtx(() => [..._cache[48] || (_cache[48] = [
19369
19381
  createTextVNode("🗑️", -1)
19370
19382
  ])]),
19371
19383
  _: 1
19372
19384
  }),
19373
- _cache[48] || (_cache[48] = createTextVNode(" حذف گروهی ", -1))
19385
+ _cache[49] || (_cache[49] = createTextVNode(" حذف گروهی ", -1))
19374
19386
  ]),
19375
19387
  _: 1
19376
19388
  }),
19377
19389
  createVNode(VCardText, null, {
19378
19390
  default: withCtx(() => [
19379
19391
  createElementVNode("p", null, [
19380
- _cache[49] || (_cache[49] = createTextVNode(" آیا مایل به حذف ", -1)),
19392
+ _cache[50] || (_cache[50] = createTextVNode(" آیا مایل به حذف ", -1)),
19381
19393
  createElementVNode("strong", null, toDisplayString(selectedCount.value), 1),
19382
- _cache[50] || (_cache[50] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
19394
+ _cache[51] || (_cache[51] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
19383
19395
  ]),
19384
19396
  createVNode(VAlert, {
19385
19397
  type: "warning",
19386
19398
  variant: "tonal",
19387
19399
  class: "mt-3"
19388
19400
  }, {
19389
- default: withCtx(() => [..._cache[51] || (_cache[51] = [
19401
+ default: withCtx(() => [..._cache[52] || (_cache[52] = [
19390
19402
  createTextVNode(" این عمل قابل بازگشت نیست! ", -1)
19391
19403
  ])]),
19392
19404
  _: 1
@@ -19401,7 +19413,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19401
19413
  color: "grey",
19402
19414
  onClick: _cache[10] || (_cache[10] = ($event) => groupDeleteDialog.value = false)
19403
19415
  }, {
19404
- default: withCtx(() => [..._cache[52] || (_cache[52] = [
19416
+ default: withCtx(() => [..._cache[53] || (_cache[53] = [
19405
19417
  createTextVNode("انصراف", -1)
19406
19418
  ])]),
19407
19419
  _: 1
@@ -19467,7 +19479,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19467
19479
  createVNode(VCard, null, {
19468
19480
  default: withCtx(() => [
19469
19481
  createVNode(VCardTitle, null, {
19470
- default: withCtx(() => [..._cache[53] || (_cache[53] = [
19482
+ default: withCtx(() => [..._cache[54] || (_cache[54] = [
19471
19483
  createTextVNode("فیلتر", -1)
19472
19484
  ])]),
19473
19485
  _: 1
@@ -19589,7 +19601,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19589
19601
  variant: "tonal",
19590
19602
  onClick: resetFilter
19591
19603
  }, {
19592
- default: withCtx(() => [..._cache[54] || (_cache[54] = [
19604
+ default: withCtx(() => [..._cache[55] || (_cache[55] = [
19593
19605
  createTextVNode("حذف فیلترها", -1)
19594
19606
  ])]),
19595
19607
  _: 1
@@ -19598,7 +19610,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19598
19610
  color: "primary",
19599
19611
  onClick: applyFilter
19600
19612
  }, {
19601
- default: withCtx(() => [..._cache[55] || (_cache[55] = [
19613
+ default: withCtx(() => [..._cache[56] || (_cache[56] = [
19602
19614
  createTextVNode("اعمال فیلتر", -1)
19603
19615
  ])]),
19604
19616
  _: 1
@@ -19630,7 +19642,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19630
19642
  }, {
19631
19643
  default: withCtx(() => [
19632
19644
  createVNode(VIcon, null, {
19633
- default: withCtx(() => [..._cache[56] || (_cache[56] = [
19645
+ default: withCtx(() => [..._cache[57] || (_cache[57] = [
19634
19646
  createTextVNode("mdi-close", -1)
19635
19647
  ])]),
19636
19648
  _: 1
@@ -19663,12 +19675,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19663
19675
  }, {
19664
19676
  default: withCtx(() => [
19665
19677
  createVNode(VIcon, { start: "" }, {
19666
- default: withCtx(() => [..._cache[57] || (_cache[57] = [
19678
+ default: withCtx(() => [..._cache[58] || (_cache[58] = [
19667
19679
  createTextVNode("mdi-content-copy", -1)
19668
19680
  ])]),
19669
19681
  _: 1
19670
19682
  }),
19671
- _cache[58] || (_cache[58] = createTextVNode(" کپی متن ", -1))
19683
+ _cache[59] || (_cache[59] = createTextVNode(" کپی متن ", -1))
19672
19684
  ]),
19673
19685
  _: 1
19674
19686
  }),
@@ -19678,12 +19690,12 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19678
19690
  }, {
19679
19691
  default: withCtx(() => [
19680
19692
  createVNode(VIcon, { start: "" }, {
19681
- default: withCtx(() => [..._cache[59] || (_cache[59] = [
19693
+ default: withCtx(() => [..._cache[60] || (_cache[60] = [
19682
19694
  createTextVNode("mdi-content-copy", -1)
19683
19695
  ])]),
19684
19696
  _: 1
19685
19697
  }),
19686
- _cache[60] || (_cache[60] = createTextVNode(" کپی رکورد کامل ", -1))
19698
+ _cache[61] || (_cache[61] = createTextVNode(" کپی رکورد کامل ", -1))
19687
19699
  ]),
19688
19700
  _: 1
19689
19701
  }),
@@ -19691,7 +19703,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19691
19703
  color: "grey",
19692
19704
  onClick: _cache[18] || (_cache[18] = ($event) => textPreviewDialog.value = false)
19693
19705
  }, {
19694
- default: withCtx(() => [..._cache[61] || (_cache[61] = [
19706
+ default: withCtx(() => [..._cache[62] || (_cache[62] = [
19695
19707
  createTextVNode("بستن", -1)
19696
19708
  ])]),
19697
19709
  _: 1
@@ -19718,7 +19730,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
19718
19730
  variant: "text",
19719
19731
  onClick: _cache[20] || (_cache[20] = ($event) => snackbar.value = false)
19720
19732
  }, {
19721
- default: withCtx(() => [..._cache[62] || (_cache[62] = [
19733
+ default: withCtx(() => [..._cache[63] || (_cache[63] = [
19722
19734
  createTextVNode(" بستن ", -1)
19723
19735
  ])]),
19724
19736
  _: 1
@@ -26925,11 +26937,11 @@ var lottie = { exports: {} };
26925
26937
  }
26926
26938
  return this.fonts[0];
26927
26939
  }
26928
- function getCodePoint(string2) {
26940
+ function getCodePoint(string) {
26929
26941
  var codePoint = 0;
26930
- var first = string2.charCodeAt(0);
26942
+ var first = string.charCodeAt(0);
26931
26943
  if (first >= 55296 && first <= 56319) {
26932
- var second = string2.charCodeAt(1);
26944
+ var second = string.charCodeAt(1);
26933
26945
  if (second >= 56320 && second <= 57343) {
26934
26946
  codePoint = (first - 55296) * 1024 + second - 56320 + 65536;
26935
26947
  }
@@ -26946,15 +26958,15 @@ var lottie = { exports: {} };
26946
26958
  function isVariationSelector(charCode) {
26947
26959
  return charCode === VARIATION_SELECTOR_16_CODE_POINT;
26948
26960
  }
26949
- function isRegionalCode(string2) {
26950
- var codePoint = getCodePoint(string2);
26961
+ function isRegionalCode(string) {
26962
+ var codePoint = getCodePoint(string);
26951
26963
  if (codePoint >= REGIONAL_CHARACTER_A_CODE_POINT && codePoint <= REGIONAL_CHARACTER_Z_CODE_POINT) {
26952
26964
  return true;
26953
26965
  }
26954
26966
  return false;
26955
26967
  }
26956
- function isFlagEmoji(string2) {
26957
- return isRegionalCode(string2.substr(0, 2)) && isRegionalCode(string2.substr(2, 2));
26968
+ function isFlagEmoji(string) {
26969
+ return isRegionalCode(string.substr(0, 2)) && isRegionalCode(string.substr(2, 2));
26958
26970
  }
26959
26971
  function isCombinedCharacter(_char3) {
26960
26972
  return combinedCharacters.indexOf(_char3) !== -1;
@@ -38315,31 +38327,12 @@ const _hoisted_2$1 = {
38315
38327
  const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38316
38328
  __name: "AppSidebar",
38317
38329
  props: {
38318
- sidebarItems: {
38319
- type: Array,
38320
- required: true
38321
- },
38322
- getFilteredSidebarItems: {
38323
- type: Function,
38324
- required: true
38325
- },
38326
- logoComponent: {
38327
- type: Object,
38328
- // Vue component
38329
- required: true
38330
- },
38331
- sidebarDrawer: {
38332
- type: Boolean,
38333
- required: true
38334
- },
38335
- miniSidebar: {
38336
- type: Boolean,
38337
- required: true
38338
- },
38339
- version: {
38340
- type: string,
38341
- required: false
38342
- }
38330
+ sidebarItems: {},
38331
+ getFilteredSidebarItems: { type: Function },
38332
+ logoComponent: {},
38333
+ sidebarDrawer: { type: Boolean },
38334
+ miniSidebar: { type: Boolean },
38335
+ version: {}
38343
38336
  },
38344
38337
  emits: ["update:sidebarDrawer"],
38345
38338
  setup(__props, { emit: __emit }) {
@@ -38419,7 +38412,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38419
38412
  };
38420
38413
  }
38421
38414
  });
38422
- const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-bc098c76"]]);
38415
+ const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-3e3fe433"]]);
38423
38416
  const makeVToolbarTitleProps = propsFactory({
38424
38417
  text: String,
38425
38418
  ...makeComponentProps(),