@amirjalili1374/ui-kit 1.4.45 → 1.4.47
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
|
@@ -17211,7 +17211,7 @@ const _hoisted_1$9 = {
|
|
|
17211
17211
|
const _hoisted_2$5 = { class: "title-text" };
|
|
17212
17212
|
const _hoisted_3$3 = { class: "action-buttons" };
|
|
17213
17213
|
const _hoisted_4$1 = {
|
|
17214
|
-
key:
|
|
17214
|
+
key: 4,
|
|
17215
17215
|
class: "selection-actions"
|
|
17216
17216
|
};
|
|
17217
17217
|
const _hoisted_5$1 = {
|
|
@@ -18380,7 +18380,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18380
18380
|
}
|
|
18381
18381
|
);
|
|
18382
18382
|
return (_ctx, _cache) => {
|
|
18383
|
-
var _a, _b;
|
|
18383
|
+
var _a, _b, _c;
|
|
18384
18384
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
18385
18385
|
props.title ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
18386
18386
|
createElementVNode("h3", _hoisted_2$5, toDisplayString(props.title), 1)
|
|
@@ -18392,7 +18392,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18392
18392
|
class: "me-2",
|
|
18393
18393
|
onClick: _cache[0] || (_cache[0] = ($event) => openDialog())
|
|
18394
18394
|
}, {
|
|
18395
|
-
default: withCtx(() => [..._cache[
|
|
18395
|
+
default: withCtx(() => [..._cache[24] || (_cache[24] = [
|
|
18396
18396
|
createTextVNode("ایجاد ✅", -1)
|
|
18397
18397
|
])]),
|
|
18398
18398
|
_: 1
|
|
@@ -18402,22 +18402,33 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18402
18402
|
class: "me-2",
|
|
18403
18403
|
onClick: _cache[1] || (_cache[1] = ($event) => filterDialog.value = true)
|
|
18404
18404
|
}, {
|
|
18405
|
-
default: withCtx(() => [..._cache[
|
|
18405
|
+
default: withCtx(() => [..._cache[25] || (_cache[25] = [
|
|
18406
18406
|
createTextVNode("فیلتر 🔍", -1)
|
|
18407
18407
|
])]),
|
|
18408
18408
|
_: 1
|
|
18409
18409
|
})) : createCommentVNode("", true),
|
|
18410
|
-
props.
|
|
18410
|
+
((_c = props.actions) == null ? void 0 : _c.includes("manual")) ? (openBlock(), createBlock(VBtn, {
|
|
18411
18411
|
key: 2,
|
|
18412
|
+
color: "primary",
|
|
18413
|
+
class: "me-2",
|
|
18414
|
+
onClick: _cache[2] || (_cache[2] = ($event) => fetchData())
|
|
18415
|
+
}, {
|
|
18416
|
+
default: withCtx(() => [..._cache[26] || (_cache[26] = [
|
|
18417
|
+
createTextVNode("جستجو 🔍", -1)
|
|
18418
|
+
])]),
|
|
18419
|
+
_: 1
|
|
18420
|
+
})) : createCommentVNode("", true),
|
|
18421
|
+
props.showRefreshButton ? (openBlock(), createBlock(VBtn, {
|
|
18422
|
+
key: 3,
|
|
18412
18423
|
color: "blue",
|
|
18413
|
-
onClick: unref(debouncedFetchData),
|
|
18424
|
+
onClick: _cache[3] || (_cache[3] = ($event) => unref(debouncedFetchData)()),
|
|
18414
18425
|
loading: loading.value
|
|
18415
18426
|
}, {
|
|
18416
|
-
default: withCtx(() => [..._cache[
|
|
18427
|
+
default: withCtx(() => [..._cache[27] || (_cache[27] = [
|
|
18417
18428
|
createTextVNode("بروزرسانی 🔄", -1)
|
|
18418
18429
|
])]),
|
|
18419
18430
|
_: 1
|
|
18420
|
-
}, 8, ["
|
|
18431
|
+
}, 8, ["loading"])) : createCommentVNode("", true),
|
|
18421
18432
|
props.selectable && hasSelection.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
18422
18433
|
createVNode(VChip, {
|
|
18423
18434
|
color: "primary",
|
|
@@ -18434,7 +18445,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18434
18445
|
class: "me-2",
|
|
18435
18446
|
onClick: clearSelection
|
|
18436
18447
|
}, {
|
|
18437
|
-
default: withCtx(() => [..._cache[
|
|
18448
|
+
default: withCtx(() => [..._cache[28] || (_cache[28] = [
|
|
18438
18449
|
createTextVNode(" پاک کردن انتخاب ", -1)
|
|
18439
18450
|
])]),
|
|
18440
18451
|
_: 1
|
|
@@ -18454,13 +18465,13 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18454
18465
|
onClick: openGroupDeleteDialog
|
|
18455
18466
|
}, {
|
|
18456
18467
|
default: withCtx(() => [
|
|
18457
|
-
_cache[
|
|
18468
|
+
_cache[29] || (_cache[29] = createElementVNode("span", { class: "me-1" }, "🗑️", -1)),
|
|
18458
18469
|
createTextVNode(" حذف گروهی (" + toDisplayString(selectedCount.value) + ") ", 1)
|
|
18459
18470
|
]),
|
|
18460
18471
|
_: 1
|
|
18461
18472
|
})) : createCommentVNode("", true),
|
|
18462
18473
|
props.bulkMode ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(validSelectedItems.value, (item) => {
|
|
18463
|
-
var _a2, _b2,
|
|
18474
|
+
var _a2, _b2, _c2;
|
|
18464
18475
|
return openBlock(), createElementBlock(Fragment, {
|
|
18465
18476
|
key: getUniqueValue(item)
|
|
18466
18477
|
}, [
|
|
@@ -18471,7 +18482,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18471
18482
|
class: "me-2",
|
|
18472
18483
|
onClick: ($event) => openDialog(item)
|
|
18473
18484
|
}, {
|
|
18474
|
-
default: withCtx(() => [..._cache[
|
|
18485
|
+
default: withCtx(() => [..._cache[30] || (_cache[30] = [
|
|
18475
18486
|
createElementVNode("span", { class: "me-1" }, "✏️", -1),
|
|
18476
18487
|
createTextVNode(" ویرایش ", -1)
|
|
18477
18488
|
])]),
|
|
@@ -18484,38 +18495,25 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18484
18495
|
class: "me-2",
|
|
18485
18496
|
onClick: ($event) => openDeleteDialog(item)
|
|
18486
18497
|
}, {
|
|
18487
|
-
default: withCtx(() => [..._cache[
|
|
18498
|
+
default: withCtx(() => [..._cache[31] || (_cache[31] = [
|
|
18488
18499
|
createElementVNode("span", { class: "me-1" }, "🗑️", -1),
|
|
18489
18500
|
createTextVNode(" حذف ", -1)
|
|
18490
18501
|
])]),
|
|
18491
18502
|
_: 1
|
|
18492
18503
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
18493
|
-
((
|
|
18504
|
+
((_c2 = props.actions) == null ? void 0 : _c2.includes("view")) ? (openBlock(), createBlock(VBtn, {
|
|
18494
18505
|
key: 2,
|
|
18495
18506
|
color: "purple",
|
|
18496
18507
|
size: "small",
|
|
18497
18508
|
class: "me-2",
|
|
18498
18509
|
onClick: ($event) => goToRoute("view", item)
|
|
18499
18510
|
}, {
|
|
18500
|
-
default: withCtx(() => [..._cache[
|
|
18511
|
+
default: withCtx(() => [..._cache[32] || (_cache[32] = [
|
|
18501
18512
|
createElementVNode("span", { class: "me-1" }, "👁️", -1),
|
|
18502
18513
|
createTextVNode(" نمایش ", -1)
|
|
18503
18514
|
])]),
|
|
18504
18515
|
_: 1
|
|
18505
18516
|
}, 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),
|
|
18519
18517
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getRoutesForItem(item), (routePath, routeKey) => {
|
|
18520
18518
|
return openBlock(), createBlock(VBtn, {
|
|
18521
18519
|
key: routeKey,
|
|
@@ -18525,7 +18523,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18525
18523
|
onClick: ($event) => goToRoute(routeKey, item)
|
|
18526
18524
|
}, {
|
|
18527
18525
|
default: withCtx(() => [
|
|
18528
|
-
_cache[
|
|
18526
|
+
_cache[33] || (_cache[33] = createElementVNode("span", { class: "me-1" }, "➡️", -1)),
|
|
18529
18527
|
createTextVNode(" " + toDisplayString(String(routeKey)), 1)
|
|
18530
18528
|
]),
|
|
18531
18529
|
_: 2
|
|
@@ -18539,7 +18537,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18539
18537
|
onClick: ($event) => download(key2, item)
|
|
18540
18538
|
}, {
|
|
18541
18539
|
default: withCtx(() => [
|
|
18542
|
-
_cache[
|
|
18540
|
+
_cache[34] || (_cache[34] = createElementVNode("span", { class: "me-1" }, "⬇️", -1)),
|
|
18543
18541
|
createTextVNode(" " + toDisplayString(key2), 1)
|
|
18544
18542
|
]),
|
|
18545
18543
|
_: 2
|
|
@@ -18563,7 +18561,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18563
18561
|
}, 1032, ["onClick"])) : createCommentVNode("", true)
|
|
18564
18562
|
], 64);
|
|
18565
18563
|
}), 128)),
|
|
18566
|
-
props.customButtonsFn ? (openBlock(true), createElementBlock(Fragment, { key:
|
|
18564
|
+
props.customButtonsFn ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList(props.customButtonsFn(item), (button) => {
|
|
18567
18565
|
return openBlock(), createBlock(VBtn, {
|
|
18568
18566
|
key: button.label,
|
|
18569
18567
|
color: button.color || "primary",
|
|
@@ -18578,7 +18576,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18578
18576
|
]),
|
|
18579
18577
|
_: 2
|
|
18580
18578
|
}, 1032, ["color", "disabled", "onClick"]);
|
|
18581
|
-
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key:
|
|
18579
|
+
}), 128)) : (openBlock(true), createElementBlock(Fragment, { key: 4 }, renderList(props.customButtons, (button) => {
|
|
18582
18580
|
return openBlock(), createBlock(VBtn, {
|
|
18583
18581
|
key: button.label,
|
|
18584
18582
|
color: button.color || "primary",
|
|
@@ -18626,7 +18624,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18626
18624
|
onClick: expandAllGroups,
|
|
18627
18625
|
class: "me-2"
|
|
18628
18626
|
}, {
|
|
18629
|
-
default: withCtx(() => [..._cache[
|
|
18627
|
+
default: withCtx(() => [..._cache[35] || (_cache[35] = [
|
|
18630
18628
|
createTextVNode(" گسترش همه ", -1)
|
|
18631
18629
|
])]),
|
|
18632
18630
|
_: 1
|
|
@@ -18637,7 +18635,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18637
18635
|
onClick: collapseAllGroups,
|
|
18638
18636
|
class: "me-2"
|
|
18639
18637
|
}, {
|
|
18640
|
-
default: withCtx(() => [..._cache[
|
|
18638
|
+
default: withCtx(() => [..._cache[36] || (_cache[36] = [
|
|
18641
18639
|
createTextVNode(" جمع کردن همه ", -1)
|
|
18642
18640
|
])]),
|
|
18643
18641
|
_: 1
|
|
@@ -18658,7 +18656,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18658
18656
|
role: "button",
|
|
18659
18657
|
tabindex: "0",
|
|
18660
18658
|
onClick: withModifiers(($event) => toggleGroup(group.groupKey), ["stop"]),
|
|
18661
|
-
onMousedown: _cache[
|
|
18659
|
+
onMousedown: _cache[4] || (_cache[4] = withModifiers(() => {
|
|
18662
18660
|
}, ["stop"])),
|
|
18663
18661
|
onKeydown: [
|
|
18664
18662
|
withKeys(withModifiers(($event) => toggleGroup(group.groupKey), ["prevent"]), ["enter"]),
|
|
@@ -18731,7 +18729,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18731
18729
|
onClick: ($event) => props.bulkMode && props.selectable && selectSingleItem(item)
|
|
18732
18730
|
}, [
|
|
18733
18731
|
(openBlock(true), createElementBlock(Fragment, null, renderList(columns, (column) => {
|
|
18734
|
-
var _a2, _b2,
|
|
18732
|
+
var _a2, _b2, _c2;
|
|
18735
18733
|
return openBlock(), createElementBlock("td", {
|
|
18736
18734
|
key: column.key || "unknown",
|
|
18737
18735
|
style: normalizeStyle({
|
|
@@ -18765,7 +18763,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18765
18763
|
class: "mr-2",
|
|
18766
18764
|
onClick: ($event) => openDialog(item)
|
|
18767
18765
|
}, {
|
|
18768
|
-
default: withCtx(() => [..._cache[
|
|
18766
|
+
default: withCtx(() => [..._cache[37] || (_cache[37] = [
|
|
18769
18767
|
createTextVNode(" ویرایش ✏️ ", -1)
|
|
18770
18768
|
])]),
|
|
18771
18769
|
_: 1
|
|
@@ -18777,19 +18775,19 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18777
18775
|
class: "mr-2",
|
|
18778
18776
|
onClick: ($event) => openDeleteDialog(item)
|
|
18779
18777
|
}, {
|
|
18780
|
-
default: withCtx(() => [..._cache[
|
|
18778
|
+
default: withCtx(() => [..._cache[38] || (_cache[38] = [
|
|
18781
18779
|
createTextVNode("حذف ❌ ", -1)
|
|
18782
18780
|
])]),
|
|
18783
18781
|
_: 1
|
|
18784
18782
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
18785
|
-
((
|
|
18783
|
+
((_c2 = props.actions) == null ? void 0 : _c2.includes("view")) ? (openBlock(), createBlock(VBtn, {
|
|
18786
18784
|
key: 2,
|
|
18787
18785
|
color: "purple",
|
|
18788
18786
|
size: "small",
|
|
18789
18787
|
class: "mr-2",
|
|
18790
18788
|
onClick: ($event) => goToRoute("view", item)
|
|
18791
18789
|
}, {
|
|
18792
|
-
default: withCtx(() => [..._cache[
|
|
18790
|
+
default: withCtx(() => [..._cache[39] || (_cache[39] = [
|
|
18793
18791
|
createTextVNode("🔍 نمایش ", -1)
|
|
18794
18792
|
])]),
|
|
18795
18793
|
_: 1
|
|
@@ -18904,7 +18902,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18904
18902
|
}, {
|
|
18905
18903
|
default: withCtx(() => [
|
|
18906
18904
|
createVNode(VIcon, { size: "16" }, {
|
|
18907
|
-
default: withCtx(() => [..._cache[
|
|
18905
|
+
default: withCtx(() => [..._cache[40] || (_cache[40] = [
|
|
18908
18906
|
createTextVNode("mdi-content-copy", -1)
|
|
18909
18907
|
])]),
|
|
18910
18908
|
_: 1
|
|
@@ -18961,7 +18959,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18961
18959
|
onClick: ($event) => props.bulkMode && props.selectable && selectSingleItem(item)
|
|
18962
18960
|
}, [
|
|
18963
18961
|
(openBlock(true), createElementBlock(Fragment, null, renderList(columns, (column) => {
|
|
18964
|
-
var _a2, _b2,
|
|
18962
|
+
var _a2, _b2, _c2;
|
|
18965
18963
|
return openBlock(), createElementBlock("td", {
|
|
18966
18964
|
key: column.key || "unknown",
|
|
18967
18965
|
style: normalizeStyle({
|
|
@@ -18995,7 +18993,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
18995
18993
|
class: "mr-2",
|
|
18996
18994
|
onClick: ($event) => openDialog(item)
|
|
18997
18995
|
}, {
|
|
18998
|
-
default: withCtx(() => [..._cache[
|
|
18996
|
+
default: withCtx(() => [..._cache[41] || (_cache[41] = [
|
|
18999
18997
|
createTextVNode(" ویرایش ✏️ ", -1)
|
|
19000
18998
|
])]),
|
|
19001
18999
|
_: 1
|
|
@@ -19007,19 +19005,19 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19007
19005
|
class: "mr-2",
|
|
19008
19006
|
onClick: ($event) => openDeleteDialog(item)
|
|
19009
19007
|
}, {
|
|
19010
|
-
default: withCtx(() => [..._cache[
|
|
19008
|
+
default: withCtx(() => [..._cache[42] || (_cache[42] = [
|
|
19011
19009
|
createTextVNode("حذف ❌ ", -1)
|
|
19012
19010
|
])]),
|
|
19013
19011
|
_: 1
|
|
19014
19012
|
}, 8, ["onClick"])) : createCommentVNode("", true),
|
|
19015
|
-
((
|
|
19013
|
+
((_c2 = props.actions) == null ? void 0 : _c2.includes("view")) ? (openBlock(), createBlock(VBtn, {
|
|
19016
19014
|
key: 2,
|
|
19017
19015
|
color: "purple",
|
|
19018
19016
|
size: "small",
|
|
19019
19017
|
class: "mr-2",
|
|
19020
19018
|
onClick: ($event) => goToRoute("view", item)
|
|
19021
19019
|
}, {
|
|
19022
|
-
default: withCtx(() => [..._cache[
|
|
19020
|
+
default: withCtx(() => [..._cache[43] || (_cache[43] = [
|
|
19023
19021
|
createTextVNode("🔍 نمایش ", -1)
|
|
19024
19022
|
])]),
|
|
19025
19023
|
_: 1
|
|
@@ -19134,7 +19132,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19134
19132
|
}, {
|
|
19135
19133
|
default: withCtx(() => [
|
|
19136
19134
|
createVNode(VIcon, { size: "16" }, {
|
|
19137
|
-
default: withCtx(() => [..._cache[
|
|
19135
|
+
default: withCtx(() => [..._cache[44] || (_cache[44] = [
|
|
19138
19136
|
createTextVNode("mdi-content-copy", -1)
|
|
19139
19137
|
])]),
|
|
19140
19138
|
_: 1
|
|
@@ -19162,7 +19160,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19162
19160
|
createVNode(VPagination, {
|
|
19163
19161
|
modelValue: currentPage.value,
|
|
19164
19162
|
"onUpdate:modelValue": [
|
|
19165
|
-
_cache[
|
|
19163
|
+
_cache[5] || (_cache[5] = ($event) => currentPage.value = $event),
|
|
19166
19164
|
handlePageChange
|
|
19167
19165
|
],
|
|
19168
19166
|
length: totalPages.value,
|
|
@@ -19174,7 +19172,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19174
19172
|
], 16, _hoisted_8$1),
|
|
19175
19173
|
createVNode(VDialog, {
|
|
19176
19174
|
modelValue: dialog.value,
|
|
19177
|
-
"onUpdate:modelValue": _cache[
|
|
19175
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => dialog.value = $event),
|
|
19178
19176
|
"max-width": "1400"
|
|
19179
19177
|
}, {
|
|
19180
19178
|
default: withCtx(() => [
|
|
@@ -19193,7 +19191,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19193
19191
|
props.formComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.formComponent), {
|
|
19194
19192
|
key: 0,
|
|
19195
19193
|
modelValue: formModel.value,
|
|
19196
|
-
"onUpdate:modelValue": _cache[
|
|
19194
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => formModel.value = $event)
|
|
19197
19195
|
}, null, 8, ["modelValue"])) : (openBlock(), createBlock(VRow, { key: 1 }, {
|
|
19198
19196
|
default: withCtx(() => [
|
|
19199
19197
|
(openBlock(true), createElementBlock(Fragment, null, renderList(formHeaders.value, (header) => {
|
|
@@ -19285,9 +19283,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19285
19283
|
createVNode(VBtn, {
|
|
19286
19284
|
variant: "tonal",
|
|
19287
19285
|
color: "error",
|
|
19288
|
-
onClick: _cache[
|
|
19286
|
+
onClick: _cache[7] || (_cache[7] = ($event) => dialog.value = false)
|
|
19289
19287
|
}, {
|
|
19290
|
-
default: withCtx(() => [..._cache[
|
|
19288
|
+
default: withCtx(() => [..._cache[45] || (_cache[45] = [
|
|
19291
19289
|
createTextVNode("انصراف", -1)
|
|
19292
19290
|
])]),
|
|
19293
19291
|
_: 1
|
|
@@ -19313,20 +19311,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19313
19311
|
}, 8, ["modelValue"]),
|
|
19314
19312
|
createVNode(VDialog, {
|
|
19315
19313
|
modelValue: deleteDialog.value,
|
|
19316
|
-
"onUpdate:modelValue": _cache[
|
|
19314
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => deleteDialog.value = $event),
|
|
19317
19315
|
"max-width": "400"
|
|
19318
19316
|
}, {
|
|
19319
19317
|
default: withCtx(() => [
|
|
19320
19318
|
createVNode(VCard, null, {
|
|
19321
19319
|
default: withCtx(() => [
|
|
19322
19320
|
createVNode(VCardTitle, null, {
|
|
19323
|
-
default: withCtx(() => [..._cache[
|
|
19321
|
+
default: withCtx(() => [..._cache[46] || (_cache[46] = [
|
|
19324
19322
|
createTextVNode("حذف آیتم", -1)
|
|
19325
19323
|
])]),
|
|
19326
19324
|
_: 1
|
|
19327
19325
|
}),
|
|
19328
19326
|
createVNode(VCardText, null, {
|
|
19329
|
-
default: withCtx(() => [..._cache[
|
|
19327
|
+
default: withCtx(() => [..._cache[47] || (_cache[47] = [
|
|
19330
19328
|
createTextVNode(" آیا مایل به حذف این رکورد هستید ?", -1)
|
|
19331
19329
|
])]),
|
|
19332
19330
|
_: 1
|
|
@@ -19335,21 +19333,21 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19335
19333
|
default: withCtx(() => [
|
|
19336
19334
|
createVNode(VBtn, {
|
|
19337
19335
|
color: "grey",
|
|
19338
|
-
onClick: _cache[
|
|
19336
|
+
onClick: _cache[9] || (_cache[9] = ($event) => deleteDialog.value = false)
|
|
19339
19337
|
}, {
|
|
19340
|
-
default: withCtx(() => [..._cache[
|
|
19338
|
+
default: withCtx(() => [..._cache[48] || (_cache[48] = [
|
|
19341
19339
|
createTextVNode("انصراف", -1)
|
|
19342
19340
|
])]),
|
|
19343
19341
|
_: 1
|
|
19344
19342
|
}),
|
|
19345
19343
|
createVNode(VBtn, {
|
|
19346
19344
|
color: "red",
|
|
19347
|
-
onClick: _cache[
|
|
19345
|
+
onClick: _cache[10] || (_cache[10] = ($event) => {
|
|
19348
19346
|
var _a2;
|
|
19349
19347
|
return deleteItem(String(((_a2 = itemToDelete.value) == null ? void 0 : _a2.id) || ""));
|
|
19350
19348
|
})
|
|
19351
19349
|
}, {
|
|
19352
|
-
default: withCtx(() => [..._cache[
|
|
19350
|
+
default: withCtx(() => [..._cache[49] || (_cache[49] = [
|
|
19353
19351
|
createTextVNode("حذف", -1)
|
|
19354
19352
|
])]),
|
|
19355
19353
|
_: 1
|
|
@@ -19365,7 +19363,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19365
19363
|
}, 8, ["modelValue"]),
|
|
19366
19364
|
createVNode(VDialog, {
|
|
19367
19365
|
modelValue: groupDeleteDialog.value,
|
|
19368
|
-
"onUpdate:modelValue": _cache[
|
|
19366
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => groupDeleteDialog.value = $event),
|
|
19369
19367
|
"max-width": "500"
|
|
19370
19368
|
}, {
|
|
19371
19369
|
default: withCtx(() => [
|
|
@@ -19377,28 +19375,28 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19377
19375
|
color: "red",
|
|
19378
19376
|
class: "me-2"
|
|
19379
19377
|
}, {
|
|
19380
|
-
default: withCtx(() => [..._cache[
|
|
19378
|
+
default: withCtx(() => [..._cache[50] || (_cache[50] = [
|
|
19381
19379
|
createTextVNode("🗑️", -1)
|
|
19382
19380
|
])]),
|
|
19383
19381
|
_: 1
|
|
19384
19382
|
}),
|
|
19385
|
-
_cache[
|
|
19383
|
+
_cache[51] || (_cache[51] = createTextVNode(" حذف گروهی ", -1))
|
|
19386
19384
|
]),
|
|
19387
19385
|
_: 1
|
|
19388
19386
|
}),
|
|
19389
19387
|
createVNode(VCardText, null, {
|
|
19390
19388
|
default: withCtx(() => [
|
|
19391
19389
|
createElementVNode("p", null, [
|
|
19392
|
-
_cache[
|
|
19390
|
+
_cache[52] || (_cache[52] = createTextVNode(" آیا مایل به حذف ", -1)),
|
|
19393
19391
|
createElementVNode("strong", null, toDisplayString(selectedCount.value), 1),
|
|
19394
|
-
_cache[
|
|
19392
|
+
_cache[53] || (_cache[53] = createTextVNode(" آیتم انتخاب شده هستید؟ ", -1))
|
|
19395
19393
|
]),
|
|
19396
19394
|
createVNode(VAlert, {
|
|
19397
19395
|
type: "warning",
|
|
19398
19396
|
variant: "tonal",
|
|
19399
19397
|
class: "mt-3"
|
|
19400
19398
|
}, {
|
|
19401
|
-
default: withCtx(() => [..._cache[
|
|
19399
|
+
default: withCtx(() => [..._cache[54] || (_cache[54] = [
|
|
19402
19400
|
createTextVNode(" این عمل قابل بازگشت نیست! ", -1)
|
|
19403
19401
|
])]),
|
|
19404
19402
|
_: 1
|
|
@@ -19411,9 +19409,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19411
19409
|
createVNode(VSpacer),
|
|
19412
19410
|
createVNode(VBtn, {
|
|
19413
19411
|
color: "grey",
|
|
19414
|
-
onClick: _cache[
|
|
19412
|
+
onClick: _cache[12] || (_cache[12] = ($event) => groupDeleteDialog.value = false)
|
|
19415
19413
|
}, {
|
|
19416
|
-
default: withCtx(() => [..._cache[
|
|
19414
|
+
default: withCtx(() => [..._cache[55] || (_cache[55] = [
|
|
19417
19415
|
createTextVNode("انصراف", -1)
|
|
19418
19416
|
])]),
|
|
19419
19417
|
_: 1
|
|
@@ -19439,7 +19437,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19439
19437
|
}, 8, ["modelValue"]),
|
|
19440
19438
|
createVNode(VDialog, {
|
|
19441
19439
|
modelValue: customActionDialog.value,
|
|
19442
|
-
"onUpdate:modelValue": _cache[
|
|
19440
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => customActionDialog.value = $event),
|
|
19443
19441
|
"max-width": "1300"
|
|
19444
19442
|
}, {
|
|
19445
19443
|
default: withCtx(() => [
|
|
@@ -19459,7 +19457,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19459
19457
|
customActionComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(customActionComponent.value), {
|
|
19460
19458
|
key: 0,
|
|
19461
19459
|
item: customActionItem.value,
|
|
19462
|
-
onClose: _cache[
|
|
19460
|
+
onClose: _cache[14] || (_cache[14] = ($event) => customActionDialog.value = false)
|
|
19463
19461
|
}, null, 40, ["item"])) : createCommentVNode("", true)
|
|
19464
19462
|
]),
|
|
19465
19463
|
_: 1
|
|
@@ -19472,14 +19470,14 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19472
19470
|
}, 8, ["modelValue"]),
|
|
19473
19471
|
createVNode(VDialog, {
|
|
19474
19472
|
modelValue: filterDialog.value,
|
|
19475
|
-
"onUpdate:modelValue": _cache[
|
|
19473
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => filterDialog.value = $event),
|
|
19476
19474
|
"max-width": "800"
|
|
19477
19475
|
}, {
|
|
19478
19476
|
default: withCtx(() => [
|
|
19479
19477
|
createVNode(VCard, null, {
|
|
19480
19478
|
default: withCtx(() => [
|
|
19481
19479
|
createVNode(VCardTitle, null, {
|
|
19482
|
-
default: withCtx(() => [..._cache[
|
|
19480
|
+
default: withCtx(() => [..._cache[56] || (_cache[56] = [
|
|
19483
19481
|
createTextVNode("فیلتر", -1)
|
|
19484
19482
|
])]),
|
|
19485
19483
|
_: 1
|
|
@@ -19489,7 +19487,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19489
19487
|
props.filterComponent ? (openBlock(), createBlock(resolveDynamicComponent(props.filterComponent), {
|
|
19490
19488
|
key: 0,
|
|
19491
19489
|
"model-value": filterModel.value,
|
|
19492
|
-
"onUpdate:modelValue": _cache[
|
|
19490
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => filterModel.value = $event),
|
|
19493
19491
|
onApply: handleFilterApply
|
|
19494
19492
|
}, null, 40, ["model-value"])) : (openBlock(), createBlock(VContainer, { key: 1 }, {
|
|
19495
19493
|
default: withCtx(() => [
|
|
@@ -19601,7 +19599,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19601
19599
|
variant: "tonal",
|
|
19602
19600
|
onClick: resetFilter
|
|
19603
19601
|
}, {
|
|
19604
|
-
default: withCtx(() => [..._cache[
|
|
19602
|
+
default: withCtx(() => [..._cache[57] || (_cache[57] = [
|
|
19605
19603
|
createTextVNode("حذف فیلترها", -1)
|
|
19606
19604
|
])]),
|
|
19607
19605
|
_: 1
|
|
@@ -19610,7 +19608,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19610
19608
|
color: "primary",
|
|
19611
19609
|
onClick: applyFilter
|
|
19612
19610
|
}, {
|
|
19613
|
-
default: withCtx(() => [..._cache[
|
|
19611
|
+
default: withCtx(() => [..._cache[58] || (_cache[58] = [
|
|
19614
19612
|
createTextVNode("اعمال فیلتر", -1)
|
|
19615
19613
|
])]),
|
|
19616
19614
|
_: 1
|
|
@@ -19626,7 +19624,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19626
19624
|
}, 8, ["modelValue"]),
|
|
19627
19625
|
createVNode(VDialog, {
|
|
19628
19626
|
modelValue: textPreviewDialog.value,
|
|
19629
|
-
"onUpdate:modelValue": _cache[
|
|
19627
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => textPreviewDialog.value = $event),
|
|
19630
19628
|
"max-width": "800"
|
|
19631
19629
|
}, {
|
|
19632
19630
|
default: withCtx(() => [
|
|
@@ -19638,11 +19636,11 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19638
19636
|
createVNode(VBtn, {
|
|
19639
19637
|
icon: "",
|
|
19640
19638
|
variant: "text",
|
|
19641
|
-
onClick: _cache[
|
|
19639
|
+
onClick: _cache[18] || (_cache[18] = ($event) => textPreviewDialog.value = false)
|
|
19642
19640
|
}, {
|
|
19643
19641
|
default: withCtx(() => [
|
|
19644
19642
|
createVNode(VIcon, null, {
|
|
19645
|
-
default: withCtx(() => [..._cache[
|
|
19643
|
+
default: withCtx(() => [..._cache[59] || (_cache[59] = [
|
|
19646
19644
|
createTextVNode("mdi-close", -1)
|
|
19647
19645
|
])]),
|
|
19648
19646
|
_: 1
|
|
@@ -19671,16 +19669,16 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19671
19669
|
createVNode(VSpacer),
|
|
19672
19670
|
createVNode(VBtn, {
|
|
19673
19671
|
color: "primary",
|
|
19674
|
-
onClick: _cache[
|
|
19672
|
+
onClick: _cache[19] || (_cache[19] = ($event) => copyToClipboard(previewText.value))
|
|
19675
19673
|
}, {
|
|
19676
19674
|
default: withCtx(() => [
|
|
19677
19675
|
createVNode(VIcon, { start: "" }, {
|
|
19678
|
-
default: withCtx(() => [..._cache[
|
|
19676
|
+
default: withCtx(() => [..._cache[60] || (_cache[60] = [
|
|
19679
19677
|
createTextVNode("mdi-content-copy", -1)
|
|
19680
19678
|
])]),
|
|
19681
19679
|
_: 1
|
|
19682
19680
|
}),
|
|
19683
|
-
_cache[
|
|
19681
|
+
_cache[61] || (_cache[61] = createTextVNode(" کپی متن ", -1))
|
|
19684
19682
|
]),
|
|
19685
19683
|
_: 1
|
|
19686
19684
|
}),
|
|
@@ -19690,20 +19688,20 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19690
19688
|
}, {
|
|
19691
19689
|
default: withCtx(() => [
|
|
19692
19690
|
createVNode(VIcon, { start: "" }, {
|
|
19693
|
-
default: withCtx(() => [..._cache[
|
|
19691
|
+
default: withCtx(() => [..._cache[62] || (_cache[62] = [
|
|
19694
19692
|
createTextVNode("mdi-content-copy", -1)
|
|
19695
19693
|
])]),
|
|
19696
19694
|
_: 1
|
|
19697
19695
|
}),
|
|
19698
|
-
_cache[
|
|
19696
|
+
_cache[63] || (_cache[63] = createTextVNode(" کپی رکورد کامل ", -1))
|
|
19699
19697
|
]),
|
|
19700
19698
|
_: 1
|
|
19701
19699
|
}),
|
|
19702
19700
|
createVNode(VBtn, {
|
|
19703
19701
|
color: "grey",
|
|
19704
|
-
onClick: _cache[
|
|
19702
|
+
onClick: _cache[20] || (_cache[20] = ($event) => textPreviewDialog.value = false)
|
|
19705
19703
|
}, {
|
|
19706
|
-
default: withCtx(() => [..._cache[
|
|
19704
|
+
default: withCtx(() => [..._cache[64] || (_cache[64] = [
|
|
19707
19705
|
createTextVNode("بستن", -1)
|
|
19708
19706
|
])]),
|
|
19709
19707
|
_: 1
|
|
@@ -19720,7 +19718,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19720
19718
|
snackbar.value ? (openBlock(), createBlock(VSnackbar, {
|
|
19721
19719
|
key: 1,
|
|
19722
19720
|
modelValue: snackbar.value,
|
|
19723
|
-
"onUpdate:modelValue": _cache[
|
|
19721
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = ($event) => snackbar.value = $event),
|
|
19724
19722
|
timeout: 3e3,
|
|
19725
19723
|
location: "top"
|
|
19726
19724
|
}, {
|
|
@@ -19728,9 +19726,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19728
19726
|
createVNode(VBtn, {
|
|
19729
19727
|
color: "white",
|
|
19730
19728
|
variant: "text",
|
|
19731
|
-
onClick: _cache[
|
|
19729
|
+
onClick: _cache[22] || (_cache[22] = ($event) => snackbar.value = false)
|
|
19732
19730
|
}, {
|
|
19733
|
-
default: withCtx(() => [..._cache[
|
|
19731
|
+
default: withCtx(() => [..._cache[65] || (_cache[65] = [
|
|
19734
19732
|
createTextVNode(" بستن ", -1)
|
|
19735
19733
|
])]),
|
|
19736
19734
|
_: 1
|