@amirjalili1374/ui-kit 1.4.44 → 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/components/layout/AppSidebar.vue.d.ts +1 -1
- package/dist/components/layout/AppSidebar.vue.d.ts.map +1 -1
- package/dist/components/shared/CustomDataTable.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/componentTypes/DataTableTypes.d.ts +1 -1
- package/dist/types/componentTypes/DataTableTypes.d.ts.map +1 -1
- package/dist/ui-kit.cjs.js +1 -1
- package/dist/ui-kit.cjs.js.map +1 -1
- package/dist/ui-kit.es.js +50 -38
- package/dist/ui-kit.es.js.map +1 -1
- package/package.json +1 -1
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 "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[
|
|
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[
|
|
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:
|
|
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:
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
19380
|
+
default: withCtx(() => [..._cache[48] || (_cache[48] = [
|
|
19369
19381
|
createTextVNode("🗑️", -1)
|
|
19370
19382
|
])]),
|
|
19371
19383
|
_: 1
|
|
19372
19384
|
}),
|
|
19373
|
-
_cache[
|
|
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[
|
|
19392
|
+
_cache[50] || (_cache[50] = createTextVNode(" آیا مایل به حذف ", -1)),
|
|
19381
19393
|
createElementVNode("strong", null, toDisplayString(selectedCount.value), 1),
|
|
19382
|
-
_cache[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
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[
|
|
19678
|
+
default: withCtx(() => [..._cache[58] || (_cache[58] = [
|
|
19667
19679
|
createTextVNode("mdi-content-copy", -1)
|
|
19668
19680
|
])]),
|
|
19669
19681
|
_: 1
|
|
19670
19682
|
}),
|
|
19671
|
-
_cache[
|
|
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[
|
|
19693
|
+
default: withCtx(() => [..._cache[60] || (_cache[60] = [
|
|
19682
19694
|
createTextVNode("mdi-content-copy", -1)
|
|
19683
19695
|
])]),
|
|
19684
19696
|
_: 1
|
|
19685
19697
|
}),
|
|
19686
|
-
_cache[
|
|
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[
|
|
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[
|
|
19733
|
+
default: withCtx(() => [..._cache[63] || (_cache[63] = [
|
|
19722
19734
|
createTextVNode(" بستن ", -1)
|
|
19723
19735
|
])]),
|
|
19724
19736
|
_: 1
|
|
@@ -38400,7 +38412,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
|
38400
38412
|
};
|
|
38401
38413
|
}
|
|
38402
38414
|
});
|
|
38403
|
-
const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-
|
|
38415
|
+
const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-3e3fe433"]]);
|
|
38404
38416
|
const makeVToolbarTitleProps = propsFactory({
|
|
38405
38417
|
text: String,
|
|
38406
38418
|
...makeComponentProps(),
|