@amirjalili1374/ui-kit 1.10.31 → 1.10.32
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/style.css +1 -1
- package/dist/ui-kit.cjs +2 -2
- package/dist/ui-kit.es.js +586 -585
- package/package.json +1 -1
package/dist/ui-kit.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Fragment as e, Transition as t, computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createSlots as s, createTextVNode as c, createVNode as l, defineComponent as u, guardReactiveProps as d, inject as f, isRef as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeProps as v, normalizeStyle as y, onBeforeUnmount as b, onMounted as x, onUnmounted as ee, openBlock as S, readonly as te, ref as C, renderList as w, renderSlot as T, resolveComponent as E, resolveDynamicComponent as D, shallowReactive as O, shallowRef as ne, toDisplayString as k, unref as A, useId as re, useModel as j, vShow as ie, watch as M, withCtx as N, withDirectives as ae, withKeys as oe, withModifiers as P } from "vue";
|
|
2
|
-
import { IconAlertCircle as se, IconArrowBadgeLeft as ce, IconBell as le, IconCheck as ue, IconChevronDown as de, IconChevronLeft as F, IconChevronRight as fe, IconClock as pe, IconCopy as me, IconDownload as I, IconFileExport as he, IconFileText as L, IconHome as ge, IconMaximize as R, IconMenu2 as _e, IconMinimize as ve, IconMinus as ye, IconMoon as be, IconPalette as
|
|
2
|
+
import { IconAlertCircle as se, IconArrowBadgeLeft as ce, IconBell as le, IconCheck as ue, IconChevronDown as de, IconChevronLeft as F, IconChevronRight as fe, IconClock as pe, IconCopy as me, IconDownload as I, IconFileExport as he, IconFileText as L, IconHome as ge, IconMaximize as R, IconMenu2 as _e, IconMinimize as ve, IconMinus as ye, IconMoon as be, IconPalette as z, IconPencil as xe, IconPlus as Se, IconPrinter as Ce, IconRefresh as B, IconSend as we, IconSettings as Te, IconSquareX as Ee, IconSun as De, IconUser as Oe, IconX as ke } from "@tabler/icons-vue";
|
|
3
3
|
import { VBreadcrumbs as Ae } from "vuetify/components/VBreadcrumbs";
|
|
4
4
|
import { VCard as V, VCardActions as je, VCardItem as Me, VCardText as Ne, VCardTitle as Pe } from "vuetify/components/VCard";
|
|
5
5
|
import { VCol as Fe, VContainer as Ie, VRow as Le, VSpacer as Re } from "vuetify/components/VGrid";
|
|
@@ -8,32 +8,31 @@ import { VDialog as ze } from "vuetify/components/VDialog";
|
|
|
8
8
|
import { VAutocomplete as Be } from "vuetify/components/VAutocomplete";
|
|
9
9
|
import { VChip as Ve } from "vuetify/components/VChip";
|
|
10
10
|
import { VIcon as He } from "vuetify/components/VIcon";
|
|
11
|
-
import { VList as Ue, VListGroup as
|
|
12
|
-
import { VTooltip as
|
|
13
|
-
import { VTextField as
|
|
14
|
-
import
|
|
11
|
+
import { VList as Ue, VListGroup as U, VListItem as We, VListItemSubtitle as Ge, VListItemTitle as Ke, VListSubheader as W } from "vuetify/components/VList";
|
|
12
|
+
import { VTooltip as qe } from "vuetify/components/VTooltip";
|
|
13
|
+
import { VTextField as Je } from "vuetify/components/VTextField";
|
|
14
|
+
import Ye from "axios";
|
|
15
15
|
import { useDebounceFn as Xe } from "@vueuse/core";
|
|
16
16
|
import { useRoute as Ze, useRouter as Qe } from "vue-router";
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
import {
|
|
21
|
-
import {
|
|
22
|
-
import {
|
|
23
|
-
import {
|
|
24
|
-
import {
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
28
|
-
import {
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
import vt from "
|
|
36
|
-
import G from "highlight.js/lib/core";
|
|
17
|
+
import { VSelect as $e } from "vuetify/components/VSelect";
|
|
18
|
+
import { VTextarea as et } from "vuetify/components/VTextarea";
|
|
19
|
+
import { VAlert as tt } from "vuetify/components/VAlert";
|
|
20
|
+
import { VBtnToggle as nt } from "vuetify/components/VBtnToggle";
|
|
21
|
+
import { VCheckbox as rt, VCheckboxBtn as it } from "vuetify/components/VCheckbox";
|
|
22
|
+
import { VDataTable as at } from "vuetify/components/VDataTable";
|
|
23
|
+
import { VDivider as ot } from "vuetify/components/VDivider";
|
|
24
|
+
import { VMenu as st } from "vuetify/components/VMenu";
|
|
25
|
+
import { VPagination as ct } from "vuetify/components/VPagination";
|
|
26
|
+
import { VProgressCircular as lt } from "vuetify/components/VProgressCircular";
|
|
27
|
+
import { VRadio as ut } from "vuetify/components/VRadio";
|
|
28
|
+
import { VSkeletonLoader as dt } from "vuetify/components/VSkeletonLoader";
|
|
29
|
+
import { VSnackbar as ft } from "vuetify/components/VSnackbar";
|
|
30
|
+
import { VExpandTransition as pt } from "vuetify/components/transitions";
|
|
31
|
+
import { VAvatar as mt } from "vuetify/components/VAvatar";
|
|
32
|
+
import { Vue3Lottie as ht } from "vue3-lottie";
|
|
33
|
+
import { defineStore as gt } from "pinia";
|
|
34
|
+
import _t from "markdown-it";
|
|
35
|
+
import vt from "highlight.js/lib/core";
|
|
37
36
|
import yt from "highlight.js/lib/languages/bash";
|
|
38
37
|
import bt from "highlight.js/lib/languages/c";
|
|
39
38
|
import xt from "highlight.js/lib/languages/cpp";
|
|
@@ -61,11 +60,12 @@ import { VAppBar as Vt } from "vuetify/components/VAppBar";
|
|
|
61
60
|
import { VSlider as Ht } from "vuetify/components/VSlider";
|
|
62
61
|
import { VRadioGroup as Ut } from "vuetify/components/VRadioGroup";
|
|
63
62
|
import { VTab as Wt, VTabs as Gt, VTabsWindow as Kt, VTabsWindowItem as qt } from "vuetify/components/VTabs";
|
|
64
|
-
import {
|
|
65
|
-
import {
|
|
66
|
-
import Xt from "
|
|
63
|
+
import { useDisplay as Jt } from "vuetify";
|
|
64
|
+
import { VApp as Yt } from "vuetify/components/VApp";
|
|
65
|
+
import { VMain as Xt } from "vuetify/components/VMain";
|
|
66
|
+
import Zt from "@dsb-norge/vue-keycloak-js";
|
|
67
67
|
//#region src/theme/lightThemes/ModernTheme.ts
|
|
68
|
-
var
|
|
68
|
+
var Qt = {
|
|
69
69
|
name: "ModernTheme",
|
|
70
70
|
dark: !1,
|
|
71
71
|
variables: {
|
|
@@ -112,7 +112,7 @@ var Zt = {
|
|
|
112
112
|
secondary600: "#7c3aed",
|
|
113
113
|
secondary800: "#5b21b6"
|
|
114
114
|
}
|
|
115
|
-
},
|
|
115
|
+
}, $t = {
|
|
116
116
|
name: "DarkModernTheme",
|
|
117
117
|
dark: !0,
|
|
118
118
|
variables: {
|
|
@@ -159,7 +159,7 @@ var Zt = {
|
|
|
159
159
|
secondary600: "#6b21a8",
|
|
160
160
|
secondary800: "#4c1d95"
|
|
161
161
|
}
|
|
162
|
-
},
|
|
162
|
+
}, en = {
|
|
163
163
|
"en-US": {
|
|
164
164
|
loading: "Please wait",
|
|
165
165
|
emptyTitle: "No results",
|
|
@@ -338,17 +338,17 @@ var Zt = {
|
|
|
338
338
|
downloadStarted: "دانلود شروع شد",
|
|
339
339
|
fileUnavailable: "فایل در دسترس نیست"
|
|
340
340
|
}
|
|
341
|
-
},
|
|
341
|
+
}, G = {
|
|
342
342
|
close: "mdi-close",
|
|
343
343
|
confirm: "mdi-check",
|
|
344
344
|
cancel: "mdi-close",
|
|
345
|
-
loading:
|
|
345
|
+
loading: B,
|
|
346
346
|
empty: se,
|
|
347
347
|
error: se,
|
|
348
348
|
permissionDenied: se,
|
|
349
|
-
retry:
|
|
349
|
+
retry: B,
|
|
350
350
|
menu: _e,
|
|
351
|
-
theme:
|
|
351
|
+
theme: z,
|
|
352
352
|
notifications: le,
|
|
353
353
|
profile: Te,
|
|
354
354
|
chevronDown: de,
|
|
@@ -366,17 +366,17 @@ var Zt = {
|
|
|
366
366
|
success: "mdi-check-circle-outline",
|
|
367
367
|
expand: "mdi-chevron-down",
|
|
368
368
|
collapse: "mdi-chevron-up"
|
|
369
|
-
},
|
|
370
|
-
modern:
|
|
371
|
-
"modern-dark":
|
|
372
|
-
},
|
|
373
|
-
function
|
|
369
|
+
}, K = {
|
|
370
|
+
modern: Qt,
|
|
371
|
+
"modern-dark": $t
|
|
372
|
+
}, tn = Symbol("ui-kit");
|
|
373
|
+
function q(e) {
|
|
374
374
|
return /^(fa|ar|he|ur)(-|$)/i.test(e);
|
|
375
375
|
}
|
|
376
|
-
function
|
|
376
|
+
function nn(e, t = {}) {
|
|
377
377
|
return e.replace(/\{([A-Za-z0-9_]+)\}/g, (e, n) => Object.hasOwn(t, n) ? String(t[n]) : `{${n}}`);
|
|
378
378
|
}
|
|
379
|
-
function
|
|
379
|
+
function rn(e) {
|
|
380
380
|
let t = typeof e.permissions == "function" ? e.permissions : e.permissions ? { ...e.permissions } : void 0;
|
|
381
381
|
return {
|
|
382
382
|
...e,
|
|
@@ -390,7 +390,7 @@ function q(e) {
|
|
|
390
390
|
};
|
|
391
391
|
}
|
|
392
392
|
function an(e = {}) {
|
|
393
|
-
let t =
|
|
393
|
+
let t = rn(e), r = (e) => {
|
|
394
394
|
let t = typeof e.permissions == "function" ? { evaluator: e.permissions } : e.permissions;
|
|
395
395
|
return {
|
|
396
396
|
locale: typeof e.locale == "string" && e.locale ? e.locale : "fa-IR",
|
|
@@ -398,13 +398,13 @@ function an(e = {}) {
|
|
|
398
398
|
theme: {
|
|
399
399
|
defaultTheme: e.theme?.defaultTheme ?? "modern",
|
|
400
400
|
themes: {
|
|
401
|
-
...
|
|
401
|
+
...K,
|
|
402
402
|
...e.theme?.themes
|
|
403
403
|
}
|
|
404
404
|
},
|
|
405
405
|
messages: e.messages ? Object.fromEntries(Object.entries(e.messages).map(([e, t]) => [e, { ...t }])) : {},
|
|
406
406
|
icons: {
|
|
407
|
-
...
|
|
407
|
+
...G,
|
|
408
408
|
...e.icons
|
|
409
409
|
},
|
|
410
410
|
permissions: {
|
|
@@ -416,14 +416,14 @@ function an(e = {}) {
|
|
|
416
416
|
return {
|
|
417
417
|
config: te(i),
|
|
418
418
|
locale: n(() => i.locale),
|
|
419
|
-
direction: n(() => i.direction === "auto" ?
|
|
419
|
+
direction: n(() => i.direction === "auto" ? q(i.locale) ? "rtl" : "ltr" : i.direction),
|
|
420
420
|
t(e, t) {
|
|
421
421
|
let n = /^fa(?:-|$)/i.test(i.locale) ? "fa-IR" : "en-US", r = i.messages[i.locale] ?? i.messages[n], a = r && Object.hasOwn(r, e) ? r[e] : void 0;
|
|
422
|
-
return
|
|
422
|
+
return nn(typeof a == "string" ? a : en[n][e], t);
|
|
423
423
|
},
|
|
424
424
|
icon: (e) => {
|
|
425
425
|
let t = i.icons[e];
|
|
426
|
-
return typeof t == "string" || typeof t == "function" || typeof t == "object" && t ? t :
|
|
426
|
+
return typeof t == "string" || typeof t == "function" || typeof t == "object" && t ? t : G[e];
|
|
427
427
|
},
|
|
428
428
|
can(e) {
|
|
429
429
|
if (e === void 0) return !0;
|
|
@@ -441,7 +441,7 @@ function an(e = {}) {
|
|
|
441
441
|
return n && r && a;
|
|
442
442
|
},
|
|
443
443
|
update(e) {
|
|
444
|
-
let t =
|
|
444
|
+
let t = rn(e);
|
|
445
445
|
typeof t.locale == "string" && t.locale && (i.locale = t.locale), (t.direction === "rtl" || t.direction === "ltr" || t.direction === "auto") && (i.direction = t.direction), t.messages && (i.messages = {
|
|
446
446
|
...i.messages,
|
|
447
447
|
...t.messages
|
|
@@ -468,10 +468,10 @@ function an(e = {}) {
|
|
|
468
468
|
var on = an();
|
|
469
469
|
function sn(e, t = {}) {
|
|
470
470
|
let n = an(t);
|
|
471
|
-
return e.provide(
|
|
471
|
+
return e.provide(tn, n), n;
|
|
472
472
|
}
|
|
473
473
|
function J() {
|
|
474
|
-
return f(
|
|
474
|
+
return f(tn, on);
|
|
475
475
|
}
|
|
476
476
|
function cn() {
|
|
477
477
|
return J().config;
|
|
@@ -874,7 +874,7 @@ var pn = { class: "text-h3" }, mn = { class: "d-flex align-center gap-2" }, hn =
|
|
|
874
874
|
},
|
|
875
875
|
filter: D
|
|
876
876
|
}), {
|
|
877
|
-
item: N(({ props: d, item: p }) => [x(p.raw ?? p) ? (S(), r(
|
|
877
|
+
item: N(({ props: d, item: p }) => [x(p.raw ?? p) ? (S(), r(qe, {
|
|
878
878
|
key: 0,
|
|
879
879
|
location: t.tooltipLocation,
|
|
880
880
|
"open-delay": t.tooltipOpenDelay,
|
|
@@ -885,7 +885,7 @@ var pn = { class: "text-h3" }, mn = { class: "d-flex align-center gap-2" }, hn =
|
|
|
885
885
|
color: "surface",
|
|
886
886
|
disabled: E(p.raw ?? p)
|
|
887
887
|
}, {
|
|
888
|
-
activator: N(({ props: e }) => [l(
|
|
888
|
+
activator: N(({ props: e }) => [l(We, h({
|
|
889
889
|
...d,
|
|
890
890
|
...e
|
|
891
891
|
}, {
|
|
@@ -949,7 +949,7 @@ var pn = { class: "text-h3" }, mn = { class: "d-flex align-center gap-2" }, hn =
|
|
|
949
949
|
"open-delay",
|
|
950
950
|
"close-delay",
|
|
951
951
|
"disabled"
|
|
952
|
-
])) : (S(), r(
|
|
952
|
+
])) : (S(), r(We, h({ key: 1 }, d, {
|
|
953
953
|
"two-line": t.displayStyle === "detailed",
|
|
954
954
|
class: { "ca-disabled-item": E(p.raw ?? p) },
|
|
955
955
|
disabled: E(p.raw ?? p)
|
|
@@ -1085,7 +1085,7 @@ var pn = { class: "text-h3" }, mn = { class: "d-flex align-center gap-2" }, hn =
|
|
|
1085
1085
|
function c(e) {
|
|
1086
1086
|
/[0-9]/.test(e.key) || e.preventDefault();
|
|
1087
1087
|
}
|
|
1088
|
-
return (e, t) => (S(), r(
|
|
1088
|
+
return (e, t) => (S(), r(Je, {
|
|
1089
1089
|
modelValue: o.value,
|
|
1090
1090
|
"onUpdate:modelValue": t[0] ||= (e) => o.value = e,
|
|
1091
1091
|
label: i.label,
|
|
@@ -1197,7 +1197,7 @@ var pn = { class: "text-h3" }, mn = { class: "d-flex align-center gap-2" }, hn =
|
|
|
1197
1197
|
class: "shamsi-date-picker",
|
|
1198
1198
|
"data-variant": ne.value,
|
|
1199
1199
|
"data-density": k.value
|
|
1200
|
-
}, [l(
|
|
1200
|
+
}, [l(Je, {
|
|
1201
1201
|
id: o,
|
|
1202
1202
|
label: c.value,
|
|
1203
1203
|
"model-value": h.value,
|
|
@@ -1253,11 +1253,11 @@ var pn = { class: "text-h3" }, mn = { class: "d-flex align-center gap-2" }, hn =
|
|
|
1253
1253
|
])], 8, Jn);
|
|
1254
1254
|
};
|
|
1255
1255
|
}
|
|
1256
|
-
}), [["__scopeId", "data-v-686088e5"]]), Xn = ["dir"], Zn = { class: "text-subtitle-1 font-weight-medium mb-3" }, Qn = { class: "theme-toggle-container" },
|
|
1256
|
+
}), [["__scopeId", "data-v-686088e5"]]), Xn = ["dir"], Zn = { class: "text-subtitle-1 font-weight-medium mb-3" }, Qn = { class: "theme-toggle-container" }, X = [
|
|
1257
1257
|
"aria-label",
|
|
1258
1258
|
"aria-checked",
|
|
1259
1259
|
"disabled"
|
|
1260
|
-
],
|
|
1260
|
+
], Z = { class: "toggle-slider" }, $n = { class: "toggle-icon" }, er = /*#__PURE__*/ Y(/* @__PURE__ */ u({
|
|
1261
1261
|
__name: "ToggleSwitch",
|
|
1262
1262
|
props: {
|
|
1263
1263
|
modelValue: { type: [String, Boolean] },
|
|
@@ -1301,19 +1301,19 @@ var pn = { class: "text-h3" }, mn = { class: "d-flex align-center gap-2" }, hn =
|
|
|
1301
1301
|
}]),
|
|
1302
1302
|
style: y({ background: h.value ? s.activeColor : s.inactiveColor }),
|
|
1303
1303
|
onClick: m
|
|
1304
|
-
}, [o("div",
|
|
1304
|
+
}, [o("div", Z, [o("div", $n, [T(t.$slots, "icon", {
|
|
1305
1305
|
value: e.modelValue,
|
|
1306
1306
|
option: g.value
|
|
1307
1307
|
}, () => [v.value ? (S(), r(D(v.value), {
|
|
1308
1308
|
key: 0,
|
|
1309
1309
|
size: "24",
|
|
1310
1310
|
"stroke-width": "2"
|
|
1311
|
-
})) : i("", !0)], !0)])])], 14,
|
|
1311
|
+
})) : i("", !0)], !0)])])], 14, X)])], 8, Xn));
|
|
1312
1312
|
}
|
|
1313
1313
|
}), [["__scopeId", "data-v-155a73b7"]]);
|
|
1314
1314
|
//#endregion
|
|
1315
1315
|
//#region src/composables/useTableSelection.ts
|
|
1316
|
-
function
|
|
1316
|
+
function tr(e, t = {}) {
|
|
1317
1317
|
let r = C([]), i = C(/* @__PURE__ */ new Set()), a = C([]), o = (e) => typeof t.uniqueKey == "function" ? t.uniqueKey(e) : typeof t.uniqueKey == "string" ? s(e, t.uniqueKey) : e.id, s = (e, t) => t.split(".").reduce((e, t) => (e || {})[t], e), c = (e) => t.groupBy ? typeof t.groupBy == "function" ? t.groupBy(e) : s(e, t.groupBy) || "" : "", l = (e) => {
|
|
1318
1318
|
let n = o(e), i = r.value.findIndex((e) => o(e) === n);
|
|
1319
1319
|
i > -1 ? r.value.splice(i, 1) : t.multiSelect ? r.value.push(e) : r.value = [e];
|
|
@@ -1380,7 +1380,7 @@ function nr(e, t = {}) {
|
|
|
1380
1380
|
}
|
|
1381
1381
|
//#endregion
|
|
1382
1382
|
//#region src/services/apiService.ts
|
|
1383
|
-
function
|
|
1383
|
+
function nr(e, t) {
|
|
1384
1384
|
let n = t.startsWith("/") ? t : `/${t}`;
|
|
1385
1385
|
return {
|
|
1386
1386
|
async fetch(t = {}) {
|
|
@@ -1406,16 +1406,16 @@ function rr(e, t) {
|
|
|
1406
1406
|
}
|
|
1407
1407
|
//#endregion
|
|
1408
1408
|
//#region src/services/axiosInstance.ts
|
|
1409
|
-
var
|
|
1409
|
+
var rr = null;
|
|
1410
1410
|
function ir(e) {
|
|
1411
|
-
|
|
1411
|
+
rr = e;
|
|
1412
1412
|
}
|
|
1413
1413
|
function ar() {
|
|
1414
|
-
return
|
|
1414
|
+
return rr || Ye;
|
|
1415
1415
|
}
|
|
1416
1416
|
//#endregion
|
|
1417
1417
|
//#region node_modules/jalaali-js/dist/index.js
|
|
1418
|
-
var
|
|
1418
|
+
var Q = [
|
|
1419
1419
|
-61,
|
|
1420
1420
|
9,
|
|
1421
1421
|
38,
|
|
@@ -1436,7 +1436,7 @@ var or = [
|
|
|
1436
1436
|
2394,
|
|
1437
1437
|
2456,
|
|
1438
1438
|
3178
|
|
1439
|
-
],
|
|
1439
|
+
], or = Q[0], sr = Q[Q.length - 1] - 1;
|
|
1440
1440
|
function cr(e, t, n) {
|
|
1441
1441
|
return e instanceof Date ? _r(vr(e.getFullYear(), e.getMonth() + 1, e.getDate())) : _r(vr(e, t, n));
|
|
1442
1442
|
}
|
|
@@ -1468,10 +1468,10 @@ function mr(e, t, n) {
|
|
|
1468
1468
|
let r = pr(e);
|
|
1469
1469
|
return vr(r.gy, 3, r.march) + (t - 1) * 31 - $(t, 7) * (t - 7) + n - 1;
|
|
1470
1470
|
}
|
|
1471
|
-
var hr = mr(
|
|
1471
|
+
var hr = mr(or, 1, 1), gr = mr(sr, 12, dr(sr, 12));
|
|
1472
1472
|
function _r(e) {
|
|
1473
|
-
if (e < hr || e > gr) throw RangeError(`Invalid Julian Day number ${e}: outside the supported Jalaali range [${
|
|
1474
|
-
let t = yr(e).gy, n = Math.min(t - 621,
|
|
1473
|
+
if (e < hr || e > gr) throw RangeError(`Invalid Julian Day number ${e}: outside the supported Jalaali range [${or}, ${sr}]`);
|
|
1474
|
+
let t = yr(e).gy, n = Math.min(t - 621, sr), r = fr(n), i = e - vr(r.gy, 3, r.march);
|
|
1475
1475
|
if (i >= 0) {
|
|
1476
1476
|
if (i <= 185) return {
|
|
1477
1477
|
jy: n,
|
|
@@ -1501,9 +1501,9 @@ function yr(e) {
|
|
|
1501
1501
|
};
|
|
1502
1502
|
}
|
|
1503
1503
|
function br(e) {
|
|
1504
|
-
if (!Number.isFinite(e) || e <
|
|
1505
|
-
let t = e + 621, n = -14, r =
|
|
1506
|
-
for (let t = 1; t <
|
|
1504
|
+
if (!Number.isFinite(e) || e < or || e > sr) throw RangeError(`Invalid Jalaali year ${e}: must be a finite number between ${or} and ${sr} (inclusive)`);
|
|
1505
|
+
let t = e + 621, n = -14, r = Q[0], i = 0, a = 0;
|
|
1506
|
+
for (let t = 1; t < Q.length && (i = Q[t], a = i - r, !(e < i)); t += 1) n = n + $(a, 33) * 8 + $(Cr(a, 33), 4), r = i;
|
|
1507
1507
|
let o = e - r;
|
|
1508
1508
|
n = n + $(o, 33) * 8 + $(Cr(o, 33) + 3, 4), Cr(a, 33) === 4 && a - o === 4 && (n += 1);
|
|
1509
1509
|
let s = $(t, 4) - $(($(t, 100) + 1) * 3, 4) - 150;
|
|
@@ -1521,9 +1521,9 @@ function xr(e, t) {
|
|
|
1521
1521
|
return r === -1 && (r = 4), r;
|
|
1522
1522
|
}
|
|
1523
1523
|
function Sr(e) {
|
|
1524
|
-
if (!Number.isFinite(e) || e <
|
|
1525
|
-
let t =
|
|
1526
|
-
for (let i = 1; i <
|
|
1524
|
+
if (!Number.isFinite(e) || e < or || e > sr) throw RangeError(`Invalid Jalaali year ${e}: must be a finite number between ${or} and ${sr} (inclusive)`);
|
|
1525
|
+
let t = Q[0], n = 0, r = 0;
|
|
1526
|
+
for (let i = 1; i < Q.length && (n = Q[i], r = n - t, !(e < n)); i += 1) t = n;
|
|
1527
1527
|
return xr(r, e - t);
|
|
1528
1528
|
}
|
|
1529
1529
|
function $(e, t) {
|
|
@@ -1623,7 +1623,7 @@ var Or = (e) => {
|
|
|
1623
1623
|
cols: c.cols ? typeof c.cols == "number" ? c.cols : Number(c.cols) : 4,
|
|
1624
1624
|
md: c.cols ? typeof c.cols == "number" ? c.cols : Number(c.cols) : 4
|
|
1625
1625
|
}, {
|
|
1626
|
-
default: N(() => [c.hidden ? i("", !0) : (S(), a(e, { key: 0 }, [t.hasFilterOperators(c) ? (S(), r(
|
|
1626
|
+
default: N(() => [c.hidden ? i("", !0) : (S(), a(e, { key: 0 }, [t.hasFilterOperators(c) ? (S(), r($e, {
|
|
1627
1627
|
key: 0,
|
|
1628
1628
|
modelValue: o.value[A(Pr)(c)],
|
|
1629
1629
|
"onUpdate:modelValue": (e) => o.value[A(Pr)(c)] = e,
|
|
@@ -1693,7 +1693,7 @@ var Or = (e) => {
|
|
|
1693
1693
|
"onUpdate:modelValue",
|
|
1694
1694
|
"label",
|
|
1695
1695
|
"disabled"
|
|
1696
|
-
])) : A(jr)(c) ? (S(), r(
|
|
1696
|
+
])) : A(jr)(c) ? (S(), r(et, {
|
|
1697
1697
|
key: 4,
|
|
1698
1698
|
modelValue: n.value[A(Pr)(c)],
|
|
1699
1699
|
"onUpdate:modelValue": (e) => n.value[A(Pr)(c)] = e,
|
|
@@ -1709,7 +1709,7 @@ var Or = (e) => {
|
|
|
1709
1709
|
"label",
|
|
1710
1710
|
"disabled",
|
|
1711
1711
|
"dir"
|
|
1712
|
-
])) : A(Mr)(c) ? (S(), r(
|
|
1712
|
+
])) : A(Mr)(c) ? (S(), r(er, {
|
|
1713
1713
|
key: 5,
|
|
1714
1714
|
modelValue: n.value[A(Pr)(c)],
|
|
1715
1715
|
"onUpdate:modelValue": (e) => n.value[A(Pr)(c)] = e,
|
|
@@ -1731,7 +1731,7 @@ var Or = (e) => {
|
|
|
1731
1731
|
"onUpdate:modelValue",
|
|
1732
1732
|
"label",
|
|
1733
1733
|
"options"
|
|
1734
|
-
])) : (S(), r(
|
|
1734
|
+
])) : (S(), r(Je, {
|
|
1735
1735
|
key: 6,
|
|
1736
1736
|
modelValue: n.value[A(Pr)(c)],
|
|
1737
1737
|
"onUpdate:modelValue": (e) => n.value[A(Pr)(c)] = e,
|
|
@@ -1956,112 +1956,112 @@ var Gr = {
|
|
|
1956
1956
|
"page-size-change"
|
|
1957
1957
|
],
|
|
1958
1958
|
setup(s, { expose: u, emit: d }) {
|
|
1959
|
-
let f = C(!1), m = C(!1), g = s, v = d, ee = C({}), te = () => ({ ...
|
|
1959
|
+
let f = C(!1), m = C(!1), g = s, v = d, ee = C({}), te = () => ({ ...bn.value }), E = (e) => {
|
|
1960
1960
|
ee.value = { ...e || {} };
|
|
1961
|
-
}, O = C([...g.items]), re = C([]), j = C(!1), ie = C(null), ae = C(!1), se = C(!1), ce = C(!1), le = C(null), F = C({}), pe = C(null), I = C(!1), L = C(""), ge = Qe(), R = J(),
|
|
1961
|
+
}, O = C([...g.items]), re = C([]), j = C(!1), ie = C(null), ae = C(!1), se = C(!1), ce = C(!1), le = C(null), F = C({}), pe = C(null), I = C(!1), L = C(""), ge = Qe(), R = J(), _e = C(/* @__PURE__ */ new Set()), ve = C(g.pageSize), ye = C(0), be = C(0), z = C(1), xe = C(null), Se = [
|
|
1962
1962
|
10,
|
|
1963
1963
|
25,
|
|
1964
1964
|
50,
|
|
1965
1965
|
100
|
|
1966
|
-
],
|
|
1966
|
+
], Ce = C(!1), B = C({}), we = C({});
|
|
1967
1967
|
C(null);
|
|
1968
|
-
let
|
|
1968
|
+
let De = C(!1), Oe = C(!0), Ae = 0, Me = !0, U = tr(O, {
|
|
1969
1969
|
multiSelect: !g.bulkMode && g.multiSelect,
|
|
1970
1970
|
uniqueKey: g.uniqueKey,
|
|
1971
1971
|
groupBy: g.groupBy,
|
|
1972
1972
|
defaultExpanded: g.defaultExpanded
|
|
1973
1973
|
});
|
|
1974
|
-
function
|
|
1974
|
+
function Ge(e) {
|
|
1975
1975
|
return g.filterAdapter ? g.filterAdapter(e) : Dr(e);
|
|
1976
1976
|
}
|
|
1977
|
-
let
|
|
1977
|
+
let Ke = U.toggleSelection;
|
|
1978
1978
|
U.toggleSelection = (e) => {
|
|
1979
|
-
g.bulkMode ? (U.clearSelection(), U.selectedItems.value = [e]) :
|
|
1979
|
+
g.bulkMode ? (U.clearSelection(), U.selectedItems.value = [e]) : Ke(e);
|
|
1980
1980
|
};
|
|
1981
|
-
let W = U.selectedItems,
|
|
1981
|
+
let W = U.selectedItems, Ye = n({
|
|
1982
1982
|
get: () => U.allSelected.value,
|
|
1983
1983
|
set: (e) => {
|
|
1984
1984
|
e ? U.toggleSelectAll() : U.clearSelection();
|
|
1985
1985
|
}
|
|
1986
|
-
}),
|
|
1986
|
+
}), Ze = U.groupedItems;
|
|
1987
1987
|
U.expandedGroups;
|
|
1988
|
-
let
|
|
1988
|
+
let mt = n(() => {
|
|
1989
1989
|
if (g.bulkMode) return !1;
|
|
1990
1990
|
let e = Array.isArray(g.actions) && g.actions.length > 0, t = !!g.routes && (typeof g.routes == "function" || Object.keys(g.routes).length > 0), n = !!g.downloadLink && Object.keys(g.downloadLink).length > 0, r = Array.isArray(g.customActions) && g.customActions.length > 0, i = Array.isArray(g.customButtons) && g.customButtons.length > 0 || !!g.customButtonsFn;
|
|
1991
1991
|
return e || t || n || r || i;
|
|
1992
|
-
}),
|
|
1992
|
+
}), ht = (e) => g.routes ? typeof g.routes == "function" ? g.routes(e) : g.routes : {}, gt = (e) => {
|
|
1993
1993
|
if (e.width) return e.width;
|
|
1994
1994
|
let t = [...e.title || ""].length, n = e.sortable === !1 ? 0 : 22, r = t * 10 + 32 + n;
|
|
1995
1995
|
return Math.min(Math.max(r, 88), 280);
|
|
1996
|
-
},
|
|
1996
|
+
}, _t = (e, t) => {
|
|
1997
1997
|
if (e == null || e === "") return;
|
|
1998
1998
|
let n = String(e), r = typeof t.width == "number" ? t.width : Number.parseFloat(t.width ?? "") || 88, i = Math.max(r - 32, 1);
|
|
1999
1999
|
return [...n].length * 8.5 > i ? n : void 0;
|
|
2000
|
-
},
|
|
2000
|
+
}, vt = n(() => g.headers.map((e) => ({
|
|
2001
2001
|
...e,
|
|
2002
|
-
width:
|
|
2003
|
-
}))),
|
|
2002
|
+
width: gt(e)
|
|
2003
|
+
}))), yt = C(null), bt = n(() => vt.value.filter((e) => typeof e.key == "string" && e.key.length > 0 && e.title)), xt = n(() => bt.value.filter((e) => e.sortable !== !1)), St = n(() => yt.value ?? bt.value.map((e) => e.key)), Ct = n(() => g.mobileCardView && !g.groupBy), wt = n(() => bt.value.filter((e) => !e.mobileHidden && Nt(e.key)).sort((e, t) => (e.mobilePriority ?? 2 ** 53 - 1) - (t.mobilePriority ?? 2 ** 53 - 1))), Tt = n(() => {
|
|
2004
2004
|
if (g.mobileCardFields.length > 0) {
|
|
2005
2005
|
let e = new Map(g.mobileCardFields.map((e, t) => [e, t]));
|
|
2006
|
-
return
|
|
2006
|
+
return wt.value.filter((t) => e.has(t.key)).sort((t, n) => e.get(t.key) - e.get(n.key));
|
|
2007
2007
|
}
|
|
2008
|
-
return
|
|
2009
|
-
}),
|
|
2010
|
-
let e = new Set(
|
|
2011
|
-
return
|
|
2012
|
-
}),
|
|
2013
|
-
let t = q(e), n = new Set(
|
|
2014
|
-
n.has(t) ? n.delete(t) : n.add(t),
|
|
2015
|
-
},
|
|
2016
|
-
get: () =>
|
|
2008
|
+
return wt.value.slice(0, Math.max(1, g.mobileCardFieldCount));
|
|
2009
|
+
}), Et = n(() => {
|
|
2010
|
+
let e = new Set(Tt.value.map((e) => e.key));
|
|
2011
|
+
return wt.value.filter((t) => !e.has(t.key));
|
|
2012
|
+
}), Dt = n(() => wt.value.find((e) => e.key === g.mobileTitleKey) ?? Tt.value[0] ?? wt.value[0]), Ot = (e) => _e.value.has(q(e)), kt = (e) => {
|
|
2013
|
+
let t = q(e), n = new Set(_e.value);
|
|
2014
|
+
n.has(t) ? n.delete(t) : n.add(t), _e.value = n;
|
|
2015
|
+
}, At = n({
|
|
2016
|
+
get: () => xe.value ? [xe.value] : [],
|
|
2017
2017
|
set: (e) => {
|
|
2018
|
-
|
|
2018
|
+
xe.value = e[0] ?? null;
|
|
2019
2019
|
}
|
|
2020
|
-
}),
|
|
2021
|
-
get: () =>
|
|
2020
|
+
}), jt = n({
|
|
2021
|
+
get: () => xe.value?.key ?? null,
|
|
2022
2022
|
set: (e) => {
|
|
2023
|
-
|
|
2023
|
+
xe.value = e ? {
|
|
2024
2024
|
key: e,
|
|
2025
|
-
order:
|
|
2025
|
+
order: xe.value?.order ?? "asc"
|
|
2026
2026
|
} : null;
|
|
2027
2027
|
}
|
|
2028
|
-
}),
|
|
2029
|
-
get: () =>
|
|
2028
|
+
}), Mt = n({
|
|
2029
|
+
get: () => xe.value?.order ?? "asc",
|
|
2030
2030
|
set: (e) => {
|
|
2031
|
-
|
|
2032
|
-
...
|
|
2031
|
+
xe.value &&= {
|
|
2032
|
+
...xe.value,
|
|
2033
2033
|
order: e
|
|
2034
2034
|
};
|
|
2035
2035
|
}
|
|
2036
2036
|
});
|
|
2037
2037
|
M(() => g.visibleColumns, (e) => {
|
|
2038
|
-
|
|
2038
|
+
yt.value = Array.isArray(e) ? [...new Set(e)] : null;
|
|
2039
2039
|
}, { immediate: !0 });
|
|
2040
|
-
function
|
|
2041
|
-
return
|
|
2040
|
+
function Nt(e) {
|
|
2041
|
+
return St.value.includes(e);
|
|
2042
2042
|
}
|
|
2043
|
-
function
|
|
2044
|
-
let n =
|
|
2045
|
-
|
|
2043
|
+
function Pt(e, t) {
|
|
2044
|
+
let n = bt.value.map((e) => e.key), r = t ? n.filter((t) => t === e || St.value.includes(t)) : St.value.filter((t) => t !== e);
|
|
2045
|
+
yt.value = r, v("update:visibleColumns", r), v("column-visibility-change", r);
|
|
2046
2046
|
}
|
|
2047
|
-
function
|
|
2047
|
+
function Ft(e) {
|
|
2048
2048
|
let t = Number(e);
|
|
2049
|
-
!Number.isFinite(t) || t < 1 || t ===
|
|
2049
|
+
!Number.isFinite(t) || t < 1 || t === ve.value || (ve.value = t, z.value = 1, v("page-size-change", t), Dn());
|
|
2050
2050
|
}
|
|
2051
|
-
let
|
|
2051
|
+
let It = {
|
|
2052
2052
|
title: "",
|
|
2053
2053
|
key: "selection",
|
|
2054
2054
|
sortable: !1,
|
|
2055
2055
|
width: 50
|
|
2056
|
-
},
|
|
2057
|
-
let e =
|
|
2058
|
-
return
|
|
2056
|
+
}, Lt = () => {
|
|
2057
|
+
let e = vt.value.filter((e) => Nt(e.key)), t = [...g.selectable ? [It] : [], ...e];
|
|
2058
|
+
return mt.value ? [...t, {
|
|
2059
2059
|
title: R.t("actions"),
|
|
2060
2060
|
key: "actions",
|
|
2061
2061
|
sortable: !1,
|
|
2062
2062
|
width: Wr(g)
|
|
2063
2063
|
}] : t;
|
|
2064
|
-
},
|
|
2064
|
+
}, Rt = n(() => Lt()), zt = n(() => Lt()), Bt = (e) => !!e.autocompleteItems, Vt = (e, t) => {
|
|
2065
2065
|
let n = e.autocompleteItems;
|
|
2066
2066
|
if (!n) return [];
|
|
2067
2067
|
try {
|
|
@@ -2072,23 +2072,23 @@ var Gr = {
|
|
|
2072
2072
|
} catch {
|
|
2073
2073
|
return [];
|
|
2074
2074
|
}
|
|
2075
|
-
},
|
|
2075
|
+
}, Ht = n(() => Object.values(B.value).some((e) => e != null && e !== "")), Ut = (e, t) => {
|
|
2076
2076
|
let n = e.defaultValue;
|
|
2077
2077
|
if (n !== void 0) try {
|
|
2078
2078
|
return typeof n == "function" ? n(t) : p(n) ? A(n) : n;
|
|
2079
2079
|
} catch {
|
|
2080
2080
|
return;
|
|
2081
2081
|
}
|
|
2082
|
-
},
|
|
2082
|
+
}, Wt = (e) => e.autocompleteItemTitle ?? "title", Gt = (e) => e.autocompleteItemValue ?? "value", Kt = (e) => e.autocompleteReturnObject !== !1, qt = (e) => e.autocompleteMultiple === !0, Jt = n(() => g.headers.filter((e) => !e.excludeFromForm)), Yt = (e) => {
|
|
2083
2083
|
if (e.type) return e.type.toLowerCase();
|
|
2084
2084
|
if (e.isDate) return "date";
|
|
2085
2085
|
if (e.textarea) return "textarea";
|
|
2086
2086
|
if (e.toggleSwitch) return "toggle";
|
|
2087
|
-
},
|
|
2088
|
-
let t =
|
|
2087
|
+
}, Xt = (e) => Yt(e) === "date", Zt = (e) => Yt(e) === "money", Qt = (e) => Yt(e) === "textarea", $t = (e) => {
|
|
2088
|
+
let t = Yt(e);
|
|
2089
2089
|
return t === "toggle" || t === "toggleswitch";
|
|
2090
|
-
},
|
|
2091
|
-
let t =
|
|
2090
|
+
}, en = (e) => {
|
|
2091
|
+
let t = Yt(e);
|
|
2092
2092
|
if (t && ![
|
|
2093
2093
|
"date",
|
|
2094
2094
|
"textarea",
|
|
@@ -2097,25 +2097,25 @@ var Gr = {
|
|
|
2097
2097
|
"toggleswitch",
|
|
2098
2098
|
"autocomplete"
|
|
2099
2099
|
].includes(t)) return t;
|
|
2100
|
-
},
|
|
2100
|
+
}, G = (e) => e.key, K = (e) => e.title, tn = (e) => e.editable === !1, q = (e) => typeof g.uniqueKey == "function" ? g.uniqueKey(e) : typeof g.uniqueKey == "string" ? g.uniqueKey.split(".").reduce((e, t) => e?.[t], e) : e.id, nn = (e) => {
|
|
2101
2101
|
g.selectable && (U.toggleSelection(e), v("update:selectedItems", W.value), v("selection-change", W.value));
|
|
2102
|
-
},
|
|
2102
|
+
}, rn = () => {
|
|
2103
2103
|
g.selectable && g.multiSelect && (U.toggleSelectAll(), v("update:selectedItems", W.value), v("selection-change", W.value));
|
|
2104
|
-
},
|
|
2104
|
+
}, an = (e) => {
|
|
2105
2105
|
setTimeout(() => {
|
|
2106
2106
|
U.toggleGroup(e);
|
|
2107
2107
|
}, 0);
|
|
2108
|
-
},
|
|
2108
|
+
}, on = () => U.expandAllGroups(), sn = () => U.collapseAllGroups(), cn = (e) => U.isSelected(e), ln = n(() => W.value.length), un = n(() => W.value.length > 0), dn = n(() => !g.selectable || !g.bulkMode ? W.value : W.value.filter((e) => {
|
|
2109
2109
|
let t = q(e);
|
|
2110
2110
|
return O.value.some((e) => q(e) === t);
|
|
2111
|
-
})),
|
|
2111
|
+
})), fn = n(() => !g.selectable || !g.bulkMode ? un.value : dn.value.length > 0), pn = () => {
|
|
2112
2112
|
U.clearSelection(), v("update:selectedItems", W.value), v("selection-change", W.value);
|
|
2113
|
-
},
|
|
2113
|
+
}, mn = (e, t) => {
|
|
2114
2114
|
let n = e.includes(",") ? e.split(",")[1] : e, r = atob(n), i = Array(r.length);
|
|
2115
2115
|
for (let e = 0; e < r.length; e++) i[e] = r.charCodeAt(e);
|
|
2116
2116
|
let a = new Uint8Array(i);
|
|
2117
2117
|
return new Blob([a], { type: t });
|
|
2118
|
-
},
|
|
2118
|
+
}, hn = (e, t) => {
|
|
2119
2119
|
if (typeof document > "u" || typeof window > "u" || typeof window.URL?.createObjectURL != "function") throw Error("File download requires browser Blob URL support.");
|
|
2120
2120
|
let n = window.URL.createObjectURL(e), r = document.createElement("a");
|
|
2121
2121
|
r.href = n, r.download = t;
|
|
@@ -2124,7 +2124,7 @@ var Gr = {
|
|
|
2124
2124
|
} finally {
|
|
2125
2125
|
r.remove(), window.URL.revokeObjectURL(n);
|
|
2126
2126
|
}
|
|
2127
|
-
},
|
|
2127
|
+
}, gn = async () => {
|
|
2128
2128
|
let e = (g.items && g.items.length ? g.items : O.value) ?? [];
|
|
2129
2129
|
if (!e.length) return;
|
|
2130
2130
|
let t;
|
|
@@ -2249,10 +2249,10 @@ var Gr = {
|
|
|
2249
2249
|
m.Workbook = { Views: [{ RTL: !0 }] }, n.utils.book_append_sheet(m, u, "Report");
|
|
2250
2250
|
let h = `${o}_${i.toLocaleDateString("fa-IR").replaceAll("/", "-")}.xlsx`;
|
|
2251
2251
|
n.writeFile(m, h);
|
|
2252
|
-
},
|
|
2252
|
+
}, _n = async () => {
|
|
2253
2253
|
try {
|
|
2254
2254
|
m.value = !0;
|
|
2255
|
-
let e =
|
|
2255
|
+
let e = Ge(Tn()), t = {
|
|
2256
2256
|
...ee.value && Object.keys(ee.value).length > 0 ? {} : e,
|
|
2257
2257
|
...g.queryParams,
|
|
2258
2258
|
...ee.value || {}
|
|
@@ -2260,21 +2260,21 @@ var Gr = {
|
|
|
2260
2260
|
g.showPagination !== !1 && (t = {
|
|
2261
2261
|
...t,
|
|
2262
2262
|
page: z.value - 1,
|
|
2263
|
-
size:
|
|
2263
|
+
size: ve.value
|
|
2264
2264
|
});
|
|
2265
|
-
let n = await
|
|
2265
|
+
let n = await kn.exportExcel(t, g.exportUrl), r = typeof n.data == "string" ? n.data : n.data?.data || n.data?.file || n.data?.content || "";
|
|
2266
2266
|
if (!r || typeof r != "string") throw Error("Export response is not a valid base64 string.");
|
|
2267
|
-
let i =
|
|
2268
|
-
|
|
2267
|
+
let i = mn(r, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet");
|
|
2268
|
+
hn(i, g.exportFileName || "export.xlsx");
|
|
2269
2269
|
} catch {} finally {
|
|
2270
2270
|
m.value = !1;
|
|
2271
2271
|
}
|
|
2272
|
-
},
|
|
2273
|
-
if (g.exportUrl) await
|
|
2272
|
+
}, vn = async () => {
|
|
2273
|
+
if (g.exportUrl) await _n();
|
|
2274
2274
|
else {
|
|
2275
2275
|
m.value = !0;
|
|
2276
2276
|
try {
|
|
2277
|
-
await
|
|
2277
|
+
await gn();
|
|
2278
2278
|
} catch (e) {
|
|
2279
2279
|
let t = e instanceof Error ? e.message : "Client-side export failed.";
|
|
2280
2280
|
ie.value = t, L.value = t, I.value = !0;
|
|
@@ -2282,14 +2282,14 @@ var Gr = {
|
|
|
2282
2282
|
m.value = !1;
|
|
2283
2283
|
}
|
|
2284
2284
|
}
|
|
2285
|
-
},
|
|
2285
|
+
}, Y = (e) => {
|
|
2286
2286
|
U.clearSelection(), U.selectedItems.value = [e], v("update:selectedItems", W.value), v("selection-change", W.value);
|
|
2287
|
-
},
|
|
2287
|
+
}, yn = n(() => W.value.length > 0 ? q(W.value[0]) : null), bn = n(() => {
|
|
2288
2288
|
let e = { ...B.value };
|
|
2289
2289
|
return Object.keys(e).forEach((t) => {
|
|
2290
2290
|
(e[t] === null || e[t] === void 0 || e[t] === "") && delete e[t];
|
|
2291
2291
|
}), e;
|
|
2292
|
-
}),
|
|
2292
|
+
}), xn = {
|
|
2293
2293
|
equals: "برابر با",
|
|
2294
2294
|
notEquals: "مخالف با",
|
|
2295
2295
|
contains: "شامل",
|
|
@@ -2300,7 +2300,7 @@ var Gr = {
|
|
|
2300
2300
|
lessThan: "کوچکتر از",
|
|
2301
2301
|
greaterThanOrEqual: "بزرگتر یا مساوی",
|
|
2302
2302
|
lessThanOrEqual: "کوچکتر یا مساوی"
|
|
2303
|
-
},
|
|
2303
|
+
}, Sn = (e) => {
|
|
2304
2304
|
let t = e.filterOperators;
|
|
2305
2305
|
return (t && t.length > 0 ? t : [
|
|
2306
2306
|
"equals",
|
|
@@ -2308,28 +2308,28 @@ var Gr = {
|
|
|
2308
2308
|
"in"
|
|
2309
2309
|
]).map((e) => ({
|
|
2310
2310
|
value: e,
|
|
2311
|
-
label:
|
|
2311
|
+
label: xn[e] || e
|
|
2312
2312
|
}));
|
|
2313
|
-
},
|
|
2313
|
+
}, Cn = (e) => e.defaultFilterOperator || "equals", wn = (e) => {
|
|
2314
2314
|
let t = e.filterOperators;
|
|
2315
2315
|
return Array.isArray(t) && t.length > 0;
|
|
2316
|
-
},
|
|
2317
|
-
if (g.filterComponent) return
|
|
2316
|
+
}, Tn = () => {
|
|
2317
|
+
if (g.filterComponent) return bn.value;
|
|
2318
2318
|
let e = {};
|
|
2319
|
-
return Object.entries(
|
|
2319
|
+
return Object.entries(bn.value).forEach(([t, n]) => {
|
|
2320
2320
|
let r = g.headers.find((e) => e.key === t);
|
|
2321
|
-
if (r &&
|
|
2322
|
-
let i =
|
|
2321
|
+
if (r && wn(r)) {
|
|
2322
|
+
let i = we.value[t] || Cn(r), a = `${t}.${i}`;
|
|
2323
2323
|
i === "in" && Array.isArray(n) ? e[a] = n.join(",") : i === "specified" ? e[a] = !!n : e[a] = n;
|
|
2324
2324
|
} else e[t] = n;
|
|
2325
2325
|
}), e;
|
|
2326
2326
|
};
|
|
2327
2327
|
n(() => !!g.filterComponent);
|
|
2328
|
-
let
|
|
2329
|
-
let t = ++
|
|
2328
|
+
let En = async (e) => {
|
|
2329
|
+
let t = ++Ae;
|
|
2330
2330
|
j.value = !0, ie.value = null;
|
|
2331
2331
|
try {
|
|
2332
|
-
let n =
|
|
2332
|
+
let n = Ge(Tn()), r = {
|
|
2333
2333
|
...ee.value && Object.keys(ee.value).length > 0 ? {} : n,
|
|
2334
2334
|
...g.queryParams,
|
|
2335
2335
|
...ee.value || {}
|
|
@@ -2337,40 +2337,40 @@ var Gr = {
|
|
|
2337
2337
|
e && (r = {
|
|
2338
2338
|
...r,
|
|
2339
2339
|
...e
|
|
2340
|
-
}),
|
|
2340
|
+
}), xe.value && (r.sort = `${xe.value.key},${xe.value.order}`);
|
|
2341
2341
|
let i = g.showPagination !== !1, a = i ? {
|
|
2342
2342
|
...r,
|
|
2343
2343
|
page: z.value - 1,
|
|
2344
|
-
size:
|
|
2345
|
-
} : r, o = await
|
|
2346
|
-
if (!
|
|
2344
|
+
size: ve.value
|
|
2345
|
+
} : r, o = await kn.fetch(a);
|
|
2346
|
+
if (!Me || t !== Ae) return;
|
|
2347
2347
|
let s = [];
|
|
2348
2348
|
i ? s = o.data?.content ?? [] : Array.isArray(o.data) ? s = o.data : Array.isArray(o.data?.content) ? s = o.data.content : o.data && typeof o.data == "object" && (s = [o.data]);
|
|
2349
2349
|
let c = Array.isArray(s) ? s : [];
|
|
2350
2350
|
if (re.value = c, O.value = c.map((e) => {
|
|
2351
2351
|
let t = { ...e };
|
|
2352
2352
|
return g.headers.forEach((e) => {
|
|
2353
|
-
if (
|
|
2353
|
+
if (Xt(e) && t[e.key]) try {
|
|
2354
2354
|
t[e.key] = wr.toShamsi(t[e.key]);
|
|
2355
2355
|
} catch {}
|
|
2356
2356
|
}), t;
|
|
2357
|
-
}), i && o.data?.page ? (
|
|
2357
|
+
}), i && o.data?.page ? (ye.value = o.data.page.totalElements, be.value = o.data.page.totalPages, Oe.value = z.value < o.data.page.totalPages) : (ye.value = c.length, be.value = 1, Oe.value = !1), g.defaultSelected && O.value.length && g.defaultSelected in O.value[0]) {
|
|
2358
2358
|
let e = O.value.filter((e) => e[g.defaultSelected] === !0);
|
|
2359
2359
|
W.value = [...e], v("update:selectedItems", W.value), v("selection-change", W.value);
|
|
2360
2360
|
}
|
|
2361
2361
|
} catch (e) {
|
|
2362
|
-
if (!
|
|
2362
|
+
if (!Me || t !== Ae) return;
|
|
2363
2363
|
e.response ? ie.value = `${R.t("serverError")}: ${e.response.status}` : e.request ? ie.value = R.t("networkError") : ie.value = R.t("unexpectedError");
|
|
2364
2364
|
} finally {
|
|
2365
|
-
|
|
2365
|
+
Me && t === Ae && (j.value = !1);
|
|
2366
2366
|
}
|
|
2367
|
-
},
|
|
2368
|
-
M([
|
|
2369
|
-
!g.filterComponent && g.autoFetch && f.value &&
|
|
2370
|
-
}, { deep: !0 }), M(
|
|
2371
|
-
f.value && (z.value = 1,
|
|
2367
|
+
}, Dn = Xe(En, 300);
|
|
2368
|
+
M([bn], () => {
|
|
2369
|
+
!g.filterComponent && g.autoFetch && f.value && Dn();
|
|
2370
|
+
}, { deep: !0 }), M(xe, () => {
|
|
2371
|
+
f.value && (z.value = 1, Dn());
|
|
2372
2372
|
}, { deep: !0 }), M(() => g.pageSize, (e) => {
|
|
2373
|
-
|
|
2373
|
+
ve.value = e, z.value = 1, Dn();
|
|
2374
2374
|
}), M(() => O.value, (e) => {
|
|
2375
2375
|
if (g.selectable && g.bulkMode && W.value.length > 0 && W.value.filter((t) => {
|
|
2376
2376
|
let n = q(t);
|
|
@@ -2383,101 +2383,101 @@ var Gr = {
|
|
|
2383
2383
|
W.value = t, v("update:selectedItems", W.value), v("selection-change", W.value);
|
|
2384
2384
|
}
|
|
2385
2385
|
}, { deep: !0 }), b(() => {
|
|
2386
|
-
|
|
2386
|
+
Me = !1, Ae++;
|
|
2387
2387
|
});
|
|
2388
|
-
let
|
|
2388
|
+
let On = g.axiosInstance || ar(), kn = nr(On, g.apiResource), An = C(!1), jn = ne(null), Nn = C(null), Pn = C(!1), Fn = C(""), In = C(""), Ln = C(null), Rn = async (e) => {
|
|
2389
2389
|
if (!g.enableInfiniteScroll) return;
|
|
2390
2390
|
let { scrollTop: t, scrollHeight: n, clientHeight: r } = e.target;
|
|
2391
|
-
n - t - r < 100 && !
|
|
2392
|
-
},
|
|
2393
|
-
if (g.enableInfiniteScroll && !
|
|
2394
|
-
|
|
2391
|
+
n - t - r < 100 && !De.value && Oe.value && await zn();
|
|
2392
|
+
}, zn = async () => {
|
|
2393
|
+
if (g.enableInfiniteScroll && !De.value && Oe.value) {
|
|
2394
|
+
De.value = !0, z.value++;
|
|
2395
2395
|
try {
|
|
2396
|
-
let e =
|
|
2396
|
+
let e = Ge(Tn()), t = {
|
|
2397
2397
|
...ee.value && Object.keys(ee.value).length > 0 ? {} : e,
|
|
2398
2398
|
...g.queryParams,
|
|
2399
2399
|
...ee.value || {},
|
|
2400
2400
|
page: z.value - 1,
|
|
2401
|
-
size:
|
|
2402
|
-
}, n = await
|
|
2401
|
+
size: ve.value
|
|
2402
|
+
}, n = await kn.fetch(t), r = (n.data?.content ?? []).map((e) => {
|
|
2403
2403
|
let t = { ...e };
|
|
2404
2404
|
return g.headers.forEach((e) => {
|
|
2405
|
-
if (
|
|
2405
|
+
if (Xt(e) && t[e.key]) try {
|
|
2406
2406
|
t[e.key] = wr.toShamsi(t[e.key]);
|
|
2407
2407
|
} catch {}
|
|
2408
2408
|
}), t;
|
|
2409
2409
|
});
|
|
2410
2410
|
O.value = [...O.value, ...r];
|
|
2411
2411
|
let i = n.data?.page;
|
|
2412
|
-
if (
|
|
2412
|
+
if (Oe.value = i ? z.value < i.totalPages : !1, g.defaultSelected && g.selectable) {
|
|
2413
2413
|
let e = r.filter((e) => e[g.defaultSelected] === !0);
|
|
2414
2414
|
e.length > 0 && (W.value = [...W.value, ...e], v("update:selectedItems", W.value), v("selection-change", W.value));
|
|
2415
2415
|
}
|
|
2416
2416
|
} catch {
|
|
2417
2417
|
z.value--;
|
|
2418
2418
|
} finally {
|
|
2419
|
-
|
|
2419
|
+
De.value = !1;
|
|
2420
2420
|
}
|
|
2421
2421
|
}
|
|
2422
2422
|
};
|
|
2423
2423
|
u({
|
|
2424
|
-
fetchData:
|
|
2424
|
+
fetchData: En,
|
|
2425
2425
|
getItems: () => O.value,
|
|
2426
2426
|
getSelectedItems: () => W.value,
|
|
2427
2427
|
clearSelection: () => {
|
|
2428
|
-
W.value = [],
|
|
2428
|
+
W.value = [], Ye.value = !1;
|
|
2429
2429
|
},
|
|
2430
|
-
groupedItems:
|
|
2431
|
-
toggleGroup:
|
|
2432
|
-
expandAllGroups:
|
|
2433
|
-
collapseAllGroups:
|
|
2430
|
+
groupedItems: Ze,
|
|
2431
|
+
toggleGroup: an,
|
|
2432
|
+
expandAllGroups: on,
|
|
2433
|
+
collapseAllGroups: sn,
|
|
2434
2434
|
formModel: F,
|
|
2435
2435
|
getFilters: te,
|
|
2436
2436
|
setCriteria: E
|
|
2437
2437
|
});
|
|
2438
|
-
let
|
|
2438
|
+
let Bn = (e) => {
|
|
2439
2439
|
if (le.value = e ? { ...e } : {}, ce.value = !!e, ae.value = !0, !ce.value) {
|
|
2440
2440
|
let e = { ...le.value };
|
|
2441
2441
|
for (let t of g.headers) {
|
|
2442
|
-
if (
|
|
2442
|
+
if ($t(t) && le.value[t.key] === void 0) {
|
|
2443
2443
|
le.value[t.key] = !1, e[t.key] = !1;
|
|
2444
2444
|
continue;
|
|
2445
2445
|
}
|
|
2446
2446
|
if (t.defaultValue === void 0) continue;
|
|
2447
|
-
let n =
|
|
2447
|
+
let n = Ut(t, e);
|
|
2448
2448
|
n !== void 0 && (le.value[t.key] = n, e[t.key] = n);
|
|
2449
2449
|
}
|
|
2450
2450
|
}
|
|
2451
2451
|
if (F.value = { ...le.value }, g.headers.forEach((e) => {
|
|
2452
|
-
if (!
|
|
2453
|
-
let t = e, n = F.value[e.key], r =
|
|
2452
|
+
if (!Bt(e)) return;
|
|
2453
|
+
let t = e, n = F.value[e.key], r = Gt(e);
|
|
2454
2454
|
t.autocompleteReturnObject === !1 && (Array.isArray(n) ? F.value[e.key] = n.map((e) => e && typeof e == "object" ? e[r] ?? null : e) : n && typeof n == "object" && (F.value[e.key] = n[r] ?? null));
|
|
2455
2455
|
}), ce.value) try {
|
|
2456
2456
|
g.headers.forEach((e) => {
|
|
2457
|
-
if (
|
|
2457
|
+
if (Xt(e)) {
|
|
2458
2458
|
let t = F.value[e.key];
|
|
2459
2459
|
typeof t == "string" && t.includes("/") ? F.value[e.key] = wr.toGregorian(t) : typeof t == "string" && t.includes("T") && (F.value[e.key] = t.split("T")[0]);
|
|
2460
2460
|
}
|
|
2461
2461
|
});
|
|
2462
2462
|
} catch {}
|
|
2463
|
-
},
|
|
2463
|
+
}, Vn = (e) => {
|
|
2464
2464
|
pe.value = e, se.value = !0;
|
|
2465
|
-
},
|
|
2466
|
-
|
|
2467
|
-
},
|
|
2465
|
+
}, Hn = C(!1), Un = () => {
|
|
2466
|
+
Hn.value = !0;
|
|
2467
|
+
}, Wn = async () => {
|
|
2468
2468
|
try {
|
|
2469
|
-
let e =
|
|
2470
|
-
await
|
|
2469
|
+
let e = dn.value.map((e) => q(e)), t = e.join(",");
|
|
2470
|
+
await kn.delete(`?ids=${t}`), Hn.value = !1, pn(), await En(), L.value = `✅ ${e.length} آیتم با موفقیت حذف شد`, I.value = !0;
|
|
2471
2471
|
} catch {
|
|
2472
2472
|
L.value = "❌ خطا در حذف گروهی اطلاعات!", I.value = !0;
|
|
2473
2473
|
}
|
|
2474
|
-
},
|
|
2474
|
+
}, Gn = async () => {
|
|
2475
2475
|
if (F.value) try {
|
|
2476
2476
|
let e = { ...F.value };
|
|
2477
2477
|
if (g.headers.forEach((t) => {
|
|
2478
2478
|
t.excludeFromForm && e[t.key] !== void 0 && delete e[t.key];
|
|
2479
2479
|
}), g.headers.forEach((t) => {
|
|
2480
|
-
if (
|
|
2480
|
+
if (Xt(t) && e[t.key]) try {
|
|
2481
2481
|
let n = e[t.key];
|
|
2482
2482
|
if (typeof n == "string") {
|
|
2483
2483
|
let r = (e) => {
|
|
@@ -2490,10 +2490,10 @@ var Gr = {
|
|
|
2490
2490
|
} else n.includes("T") ? e[t.key] = g.dateWithTimezone ? n : n.split("T")[0] : e[t.key] = g.dateWithTimezone ? r(n) : n;
|
|
2491
2491
|
}
|
|
2492
2492
|
} catch {}
|
|
2493
|
-
if (
|
|
2494
|
-
let n = t, r = e[t.key], i =
|
|
2493
|
+
if (Bt(t)) {
|
|
2494
|
+
let n = t, r = e[t.key], i = Gt(t);
|
|
2495
2495
|
if (n.autocompleteMultiple && Array.isArray(r)) {
|
|
2496
|
-
let a =
|
|
2496
|
+
let a = Vt(t, e), o = r.map((e) => {
|
|
2497
2497
|
if (e == null) return null;
|
|
2498
2498
|
if (n.autocompleteReturnObject !== !1) {
|
|
2499
2499
|
if (typeof e != "object") return null;
|
|
@@ -2513,7 +2513,7 @@ var Gr = {
|
|
|
2513
2513
|
e[t.key] = o;
|
|
2514
2514
|
} else if (r == null || r === "") e[t.key] = null;
|
|
2515
2515
|
else if (n.autocompleteReturnObject !== !1 && typeof r == "object") {
|
|
2516
|
-
let n =
|
|
2516
|
+
let n = Vt(t, e), i = Gt(t), a = i && r[i];
|
|
2517
2517
|
if (a != null) {
|
|
2518
2518
|
let r = n.find((e) => {
|
|
2519
2519
|
let t = e[i];
|
|
@@ -2523,23 +2523,23 @@ var Gr = {
|
|
|
2523
2523
|
}
|
|
2524
2524
|
}
|
|
2525
2525
|
}
|
|
2526
|
-
}), ce.value) await
|
|
2526
|
+
}), ce.value) await kn.update(e), L.value = "✅ آیتم با موفقیت بروزرسانی شد!";
|
|
2527
2527
|
else {
|
|
2528
|
-
let t = await
|
|
2528
|
+
let t = await kn.create(e);
|
|
2529
2529
|
L.value = "✅ آیتم با موفقیت ایجاد شد!", t.data && O.value.push(t.data);
|
|
2530
2530
|
}
|
|
2531
|
-
I.value = !0, ae.value = !1, await
|
|
2531
|
+
I.value = !0, ae.value = !1, await En();
|
|
2532
2532
|
} catch {
|
|
2533
2533
|
L.value = "❌ خطا در ذخیره اطلاعات!", I.value = !0;
|
|
2534
2534
|
}
|
|
2535
|
-
},
|
|
2535
|
+
}, Kn = async (e) => {
|
|
2536
2536
|
try {
|
|
2537
|
-
await
|
|
2537
|
+
await kn.delete(e), se.value = !1, O.value = O.value.filter((t) => String(q(t)) !== String(e)), await En();
|
|
2538
2538
|
} catch {
|
|
2539
2539
|
L.value = "❌ خطا در حذف اطلاعات!", I.value = !0;
|
|
2540
2540
|
}
|
|
2541
|
-
},
|
|
2542
|
-
let n =
|
|
2541
|
+
}, qn = async (e, t) => {
|
|
2542
|
+
let n = ht(t);
|
|
2543
2543
|
if (!n || !n[e] || !t) return;
|
|
2544
2544
|
let r = n[e], i = [];
|
|
2545
2545
|
if (r = r.replace(/\{(\w+)}/g, (e, n) => t[n] === void 0 ? (i.push(n), `{${n}}`) : t[n]), i.length > 0) L.value = ` خطا : ${i.join(" , ")} در خروجی نیست `, I.value = !0;
|
|
@@ -2548,7 +2548,7 @@ var Gr = {
|
|
|
2548
2548
|
} catch {
|
|
2549
2549
|
ie.value = "Navigation failed. Please try again.", L.value = "Navigation failed. Please try again.", I.value = !0;
|
|
2550
2550
|
}
|
|
2551
|
-
},
|
|
2551
|
+
}, Jn = async (e, t) => {
|
|
2552
2552
|
if (!g.downloadLink || !t) return;
|
|
2553
2553
|
let n = t[g.downloadLink[e]];
|
|
2554
2554
|
if (!n || typeof n != "string") {
|
|
@@ -2576,41 +2576,41 @@ var Gr = {
|
|
|
2576
2576
|
}
|
|
2577
2577
|
}
|
|
2578
2578
|
let i = await e.blob(), a = r.split("/").pop() || "download";
|
|
2579
|
-
|
|
2579
|
+
hn(i, a), L.value = "✅ دانلود شروع شد", I.value = !0;
|
|
2580
2580
|
} catch {
|
|
2581
2581
|
try {
|
|
2582
|
-
let e = await
|
|
2582
|
+
let e = await On.get(r, {
|
|
2583
2583
|
responseType: "blob",
|
|
2584
2584
|
headers: { Accept: "application/octet-stream,application/pdf,image/*,*/*" }
|
|
2585
2585
|
}), t = e.headers["content-type"];
|
|
2586
2586
|
if (e.headers["content-length"], typeof t == "string" && t.includes("xml")) {
|
|
2587
|
-
await
|
|
2587
|
+
await On.get(r, { responseType: "text" }), L.value = "❌ خطای سرور: فایل در دسترس نیست", I.value = !0;
|
|
2588
2588
|
return;
|
|
2589
2589
|
}
|
|
2590
2590
|
let n = new Blob([e.data]), i = r.split("/").pop() || "download";
|
|
2591
|
-
|
|
2591
|
+
hn(n, i), L.value = "✅ دانلود شروع شد", I.value = !0;
|
|
2592
2592
|
} catch (e) {
|
|
2593
2593
|
if (e.response) try {
|
|
2594
|
-
await
|
|
2594
|
+
await On.get(r, { responseType: "text" });
|
|
2595
2595
|
} catch {}
|
|
2596
2596
|
L.value = "❌ خطا در دانلود فایل", I.value = !0;
|
|
2597
2597
|
}
|
|
2598
2598
|
}
|
|
2599
|
-
},
|
|
2600
|
-
z.value = e,
|
|
2599
|
+
}, Xn = (e) => {
|
|
2600
|
+
z.value = e, Dn();
|
|
2601
2601
|
};
|
|
2602
2602
|
M(() => g.selectedItems, (e) => {
|
|
2603
2603
|
e && (W.value = [...e]);
|
|
2604
2604
|
}, { deep: !0 }), M(() => g.items, (e) => {
|
|
2605
2605
|
O.value = [...e ?? []];
|
|
2606
2606
|
}, { deep: !0 }), x(() => {
|
|
2607
|
-
f.value = !0, g.selectedItems?.length && (W.value = [...g.selectedItems]), g.autoFetch &&
|
|
2607
|
+
f.value = !0, g.selectedItems?.length && (W.value = [...g.selectedItems]), g.autoFetch && En();
|
|
2608
2608
|
});
|
|
2609
|
-
let
|
|
2610
|
-
|
|
2609
|
+
let Zn = (e, t) => {
|
|
2610
|
+
jn.value = e.component;
|
|
2611
2611
|
let n = re.value.find((e) => (typeof g.uniqueKey == "function" ? g.uniqueKey(t) : t[g.uniqueKey]) === (typeof g.uniqueKey == "function" ? g.uniqueKey(e) : e[g.uniqueKey]));
|
|
2612
|
-
|
|
2613
|
-
},
|
|
2612
|
+
Nn.value = n ? { ...n } : { ...t }, An.value = !0;
|
|
2613
|
+
}, Qn = (e, t) => {
|
|
2614
2614
|
let n = g.headers.find((t) => t.key === e.key);
|
|
2615
2615
|
if (!n) return {};
|
|
2616
2616
|
let r = n.style || {};
|
|
@@ -2632,19 +2632,19 @@ var Gr = {
|
|
|
2632
2632
|
} catch {
|
|
2633
2633
|
return e;
|
|
2634
2634
|
}
|
|
2635
|
-
return r.translate ? r.options ? r.options.find((t) => t.value === e)?.title || e :
|
|
2636
|
-
},
|
|
2635
|
+
return r.translate ? r.options ? r.options.find((t) => t.value === e)?.title || e : $n(e) : e;
|
|
2636
|
+
}, $n = (e) => ({
|
|
2637
2637
|
ACTIVE: "فعال",
|
|
2638
2638
|
INACTIVE: "غیرفعال",
|
|
2639
2639
|
PENDING: "در انتظار",
|
|
2640
2640
|
COMPLETED: "تکمیل شده"
|
|
2641
|
-
})[e] || e,
|
|
2641
|
+
})[e] || e, rr = (e, t = g.maxTextLength) => {
|
|
2642
2642
|
if (e == null) return "";
|
|
2643
2643
|
let n = String(e);
|
|
2644
2644
|
return n.length <= t ? n : n.substring(0, t) + "...";
|
|
2645
|
-
},
|
|
2646
|
-
|
|
2647
|
-
},
|
|
2645
|
+
}, ir = (e, t) => e == null || !t || t.truncate === !1 ? !1 : g.enableTextTruncation && (t.truncate === !0 || t.truncate === void 0) || t.truncate === !0 ? String(e).length > g.maxTextLength : !1, Q = (e) => g.headers.find((t) => t.key === e) || null, or = (e) => e?.showCopyButton === !0, sr = (e, t, n) => {
|
|
2646
|
+
Fn.value = e == null ? "" : String(e), In.value = t, Ln.value = n, Pn.value = !0;
|
|
2647
|
+
}, cr = async (e) => {
|
|
2648
2648
|
try {
|
|
2649
2649
|
await navigator.clipboard.writeText(e), L.value = "✅ متن با موفقیت کپی شد!", I.value = !0;
|
|
2650
2650
|
} catch {
|
|
@@ -2655,25 +2655,25 @@ var Gr = {
|
|
|
2655
2655
|
L.value = "❌ خطا در کپی کردن متن!", I.value = !0;
|
|
2656
2656
|
}
|
|
2657
2657
|
}
|
|
2658
|
-
},
|
|
2659
|
-
if (
|
|
2660
|
-
let e = JSON.stringify(
|
|
2661
|
-
await
|
|
2658
|
+
}, lr = async () => {
|
|
2659
|
+
if (Ln.value) try {
|
|
2660
|
+
let e = JSON.stringify(Ln.value, null, 2);
|
|
2661
|
+
await cr(e);
|
|
2662
2662
|
} catch {
|
|
2663
2663
|
L.value = "❌ خطا در کپی کردن رکورد!", I.value = !0;
|
|
2664
2664
|
}
|
|
2665
|
-
},
|
|
2666
|
-
z.value = 1,
|
|
2667
|
-
},
|
|
2668
|
-
B.value = {},
|
|
2669
|
-
},
|
|
2670
|
-
B.value = e, z.value = 1,
|
|
2665
|
+
}, ur = () => {
|
|
2666
|
+
z.value = 1, Dn(), Ce.value = !1;
|
|
2667
|
+
}, dr = () => {
|
|
2668
|
+
B.value = {}, we.value = {}, z.value = 1, Dn(), Ce.value = !1;
|
|
2669
|
+
}, fr = (e) => {
|
|
2670
|
+
B.value = e, z.value = 1, En(), Ce.value = !1;
|
|
2671
2671
|
};
|
|
2672
|
-
return M(() =>
|
|
2673
|
-
e && (B.value = { ...B.value },
|
|
2674
|
-
if (
|
|
2675
|
-
let t =
|
|
2676
|
-
|
|
2672
|
+
return M(() => Ce.value, (e) => {
|
|
2673
|
+
e && (B.value = { ...B.value }, Jt.value.forEach((e) => {
|
|
2674
|
+
if (wn(e)) {
|
|
2675
|
+
let t = G(e);
|
|
2676
|
+
we.value[t] || (we.value[t] = Cn(e));
|
|
2677
2677
|
}
|
|
2678
2678
|
}));
|
|
2679
2679
|
}), (n, u) => (S(), a(e, null, [
|
|
@@ -2683,7 +2683,7 @@ var Gr = {
|
|
|
2683
2683
|
key: 0,
|
|
2684
2684
|
color: "green",
|
|
2685
2685
|
class: "me-2",
|
|
2686
|
-
onClick: u[0] ||= (e) =>
|
|
2686
|
+
onClick: u[0] ||= (e) => Bn()
|
|
2687
2687
|
}, {
|
|
2688
2688
|
default: N(() => [c(k(A(R).t("create")) + " ✅", 1)]),
|
|
2689
2689
|
_: 1
|
|
@@ -2691,7 +2691,7 @@ var Gr = {
|
|
|
2691
2691
|
g.actions?.includes("filter") ? (S(), r(H, {
|
|
2692
2692
|
key: 1,
|
|
2693
2693
|
class: "me-2",
|
|
2694
|
-
onClick: u[1] ||= (e) =>
|
|
2694
|
+
onClick: u[1] ||= (e) => Ce.value = !0
|
|
2695
2695
|
}, {
|
|
2696
2696
|
default: N(() => [c(k(A(R).t("filters")) + " 🔍", 1)]),
|
|
2697
2697
|
_: 1
|
|
@@ -2700,14 +2700,14 @@ var Gr = {
|
|
|
2700
2700
|
key: 2,
|
|
2701
2701
|
color: "primary",
|
|
2702
2702
|
class: "me-2",
|
|
2703
|
-
onClick: u[2] ||= (e) =>
|
|
2703
|
+
onClick: u[2] ||= (e) => En()
|
|
2704
2704
|
}, {
|
|
2705
2705
|
default: N(() => [c(k(A(R).t("search")) + " 🔍", 1)]),
|
|
2706
2706
|
_: 1
|
|
2707
2707
|
})) : i("", !0),
|
|
2708
2708
|
g.showRefreshButton ? (S(), r(H, {
|
|
2709
2709
|
key: 3,
|
|
2710
|
-
onClick: u[3] ||= (e) => A(
|
|
2710
|
+
onClick: u[3] ||= (e) => A(Dn)(),
|
|
2711
2711
|
loading: j.value
|
|
2712
2712
|
}, {
|
|
2713
2713
|
default: N(() => [c(k(A(R).t("refresh")) + " 🔄", 1)]),
|
|
@@ -2717,7 +2717,7 @@ var Gr = {
|
|
|
2717
2717
|
key: 4,
|
|
2718
2718
|
color: "primary",
|
|
2719
2719
|
class: "me-2",
|
|
2720
|
-
onClick: u[4] ||= (e) =>
|
|
2720
|
+
onClick: u[4] ||= (e) => dr(),
|
|
2721
2721
|
loading: j.value
|
|
2722
2722
|
}, {
|
|
2723
2723
|
default: N(() => [c(k(A(R).t("globalSearch")), 1)]),
|
|
@@ -2728,7 +2728,7 @@ var Gr = {
|
|
|
2728
2728
|
color: "primary",
|
|
2729
2729
|
variant: "tonal",
|
|
2730
2730
|
class: "me-2",
|
|
2731
|
-
onClick:
|
|
2731
|
+
onClick: vn,
|
|
2732
2732
|
loading: m.value,
|
|
2733
2733
|
disabled: j.value
|
|
2734
2734
|
}, {
|
|
@@ -2742,22 +2742,22 @@ var Gr = {
|
|
|
2742
2742
|
name: "slide-left",
|
|
2743
2743
|
appear: ""
|
|
2744
2744
|
}, {
|
|
2745
|
-
default: N(() => [g.bulkMode &&
|
|
2745
|
+
default: N(() => [g.bulkMode && fn.value || g.enableGroupDelete && un.value ? (S(), a("div", Jr, [g.enableGroupDelete ? (S(), r(H, {
|
|
2746
2746
|
key: 0,
|
|
2747
2747
|
color: "red",
|
|
2748
2748
|
size: "small",
|
|
2749
2749
|
class: "me-2",
|
|
2750
|
-
onClick:
|
|
2750
|
+
onClick: Un
|
|
2751
2751
|
}, {
|
|
2752
|
-
default: N(() => [u[34] ||= o("span", { class: "me-1" }, "🗑️", -1), c(" " + k(A(R).t("bulkDelete")) + " (" + k(
|
|
2752
|
+
default: N(() => [u[34] ||= o("span", { class: "me-1" }, "🗑️", -1), c(" " + k(A(R).t("bulkDelete")) + " (" + k(ln.value) + ") ", 1)]),
|
|
2753
2753
|
_: 1
|
|
2754
|
-
})) : i("", !0), g.bulkMode ? (S(!0), a(e, { key: 1 }, w(
|
|
2754
|
+
})) : i("", !0), g.bulkMode ? (S(!0), a(e, { key: 1 }, w(dn.value, (t) => (S(), a(e, { key: q(t) }, [
|
|
2755
2755
|
g.actions?.includes("edit") ? (S(), r(H, {
|
|
2756
2756
|
key: 0,
|
|
2757
2757
|
color: "blue",
|
|
2758
2758
|
size: "small",
|
|
2759
2759
|
class: "me-2",
|
|
2760
|
-
onClick: (e) =>
|
|
2760
|
+
onClick: (e) => Bn(t)
|
|
2761
2761
|
}, {
|
|
2762
2762
|
default: N(() => [u[35] ||= o("span", { class: "me-1" }, "✏️", -1), c(" " + k(A(R).t("edit")), 1)]),
|
|
2763
2763
|
_: 1
|
|
@@ -2767,7 +2767,7 @@ var Gr = {
|
|
|
2767
2767
|
color: "red",
|
|
2768
2768
|
size: "small",
|
|
2769
2769
|
class: "me-2",
|
|
2770
|
-
onClick: (e) =>
|
|
2770
|
+
onClick: (e) => Vn(t)
|
|
2771
2771
|
}, {
|
|
2772
2772
|
default: N(() => [u[36] ||= o("span", { class: "me-1" }, "🗑️", -1), c(" " + k(A(R).t("delete")), 1)]),
|
|
2773
2773
|
_: 1
|
|
@@ -2777,17 +2777,17 @@ var Gr = {
|
|
|
2777
2777
|
color: "purple",
|
|
2778
2778
|
size: "small",
|
|
2779
2779
|
class: "me-2",
|
|
2780
|
-
onClick: (e) =>
|
|
2780
|
+
onClick: (e) => qn("view", t)
|
|
2781
2781
|
}, {
|
|
2782
2782
|
default: N(() => [u[37] ||= o("span", { class: "me-1" }, "👁️", -1), c(" " + k(A(R).t("view")), 1)]),
|
|
2783
2783
|
_: 1
|
|
2784
2784
|
}, 8, ["onClick"])) : i("", !0),
|
|
2785
|
-
(S(!0), a(e, null, w(
|
|
2785
|
+
(S(!0), a(e, null, w(ht(t), (e, n) => (S(), r(H, {
|
|
2786
2786
|
key: n,
|
|
2787
2787
|
color: "primary",
|
|
2788
2788
|
size: "small",
|
|
2789
2789
|
class: "me-2",
|
|
2790
|
-
onClick: (e) =>
|
|
2790
|
+
onClick: (e) => qn(n, t)
|
|
2791
2791
|
}, {
|
|
2792
2792
|
default: N(() => [u[38] ||= o("span", { class: "me-1" }, "➡️", -1), c(" " + k(String(n)), 1)]),
|
|
2793
2793
|
_: 2
|
|
@@ -2796,7 +2796,7 @@ var Gr = {
|
|
|
2796
2796
|
size: "small",
|
|
2797
2797
|
class: "me-2",
|
|
2798
2798
|
key: n,
|
|
2799
|
-
onClick: (e) =>
|
|
2799
|
+
onClick: (e) => Jn(n, t)
|
|
2800
2800
|
}, {
|
|
2801
2801
|
default: N(() => [u[39] ||= o("span", { class: "me-1" }, "⬇️", -1), c(" " + k(n), 1)]),
|
|
2802
2802
|
_: 2
|
|
@@ -2806,7 +2806,7 @@ var Gr = {
|
|
|
2806
2806
|
color: "primary",
|
|
2807
2807
|
size: "small",
|
|
2808
2808
|
class: "me-2",
|
|
2809
|
-
onClick: (e) =>
|
|
2809
|
+
onClick: (e) => Zn(n, t)
|
|
2810
2810
|
}, {
|
|
2811
2811
|
default: N(() => [c(k(n.title), 1)]),
|
|
2812
2812
|
_: 2
|
|
@@ -2844,7 +2844,7 @@ var Gr = {
|
|
|
2844
2844
|
_: 1
|
|
2845
2845
|
}),
|
|
2846
2846
|
l(Re),
|
|
2847
|
-
g.settings ? (S(), r(
|
|
2847
|
+
g.settings ? (S(), r(st, {
|
|
2848
2848
|
key: 6,
|
|
2849
2849
|
"close-on-content-click": !1,
|
|
2850
2850
|
location: "bottom start"
|
|
@@ -2864,14 +2864,14 @@ var Gr = {
|
|
|
2864
2864
|
}, {
|
|
2865
2865
|
default: N(() => [
|
|
2866
2866
|
o("div", Zr, [o("div", Qr, [l(A(Te), { size: 18 })]), o("div", null, [o("strong", null, k(A(R).t("tableView")), 1), o("span", null, k(A(R).t("tableViewDescription")), 1)])]),
|
|
2867
|
-
l(
|
|
2867
|
+
l(ot),
|
|
2868
2868
|
l(Ne, { class: "data-table-column-settings__section" }, {
|
|
2869
2869
|
default: N(() => [
|
|
2870
2870
|
o("div", $r, k(A(R).t("sort")), 1),
|
|
2871
|
-
l(
|
|
2872
|
-
modelValue:
|
|
2873
|
-
"onUpdate:modelValue": u[5] ||= (e) =>
|
|
2874
|
-
items:
|
|
2871
|
+
l($e, {
|
|
2872
|
+
modelValue: jt.value,
|
|
2873
|
+
"onUpdate:modelValue": u[5] ||= (e) => jt.value = e,
|
|
2874
|
+
items: xt.value,
|
|
2875
2875
|
"item-title": "title",
|
|
2876
2876
|
"item-value": "key",
|
|
2877
2877
|
label: A(R).t("sortBy"),
|
|
@@ -2885,10 +2885,10 @@ var Gr = {
|
|
|
2885
2885
|
"items",
|
|
2886
2886
|
"label"
|
|
2887
2887
|
]),
|
|
2888
|
-
|
|
2888
|
+
jt.value ? (S(), r(nt, {
|
|
2889
2889
|
key: 0,
|
|
2890
|
-
modelValue:
|
|
2891
|
-
"onUpdate:modelValue": u[6] ||= (e) =>
|
|
2890
|
+
modelValue: Mt.value,
|
|
2891
|
+
"onUpdate:modelValue": u[6] ||= (e) => Mt.value = e,
|
|
2892
2892
|
color: "primary",
|
|
2893
2893
|
mandatory: "",
|
|
2894
2894
|
divided: "",
|
|
@@ -2910,35 +2910,35 @@ var Gr = {
|
|
|
2910
2910
|
_: 1
|
|
2911
2911
|
}, 8, ["modelValue"])) : i("", !0),
|
|
2912
2912
|
o("div", ei, k(A(R).t("rowsPerPage")), 1),
|
|
2913
|
-
l(
|
|
2914
|
-
"model-value":
|
|
2915
|
-
items:
|
|
2913
|
+
l($e, {
|
|
2914
|
+
"model-value": ve.value,
|
|
2915
|
+
items: Se,
|
|
2916
2916
|
label: A(R).t("requestPageSize"),
|
|
2917
2917
|
density: "compact",
|
|
2918
2918
|
variant: "outlined",
|
|
2919
2919
|
"hide-details": "",
|
|
2920
2920
|
class: "data-table-column-settings__select",
|
|
2921
|
-
"onUpdate:modelValue":
|
|
2921
|
+
"onUpdate:modelValue": Ft
|
|
2922
2922
|
}, null, 8, ["model-value", "label"])
|
|
2923
2923
|
]),
|
|
2924
2924
|
_: 1
|
|
2925
2925
|
}),
|
|
2926
|
-
l(
|
|
2927
|
-
o("div", ti, [o("span", null, k(A(R).t("visibleColumns")), 1), o("small", null, k(
|
|
2926
|
+
l(ot),
|
|
2927
|
+
o("div", ti, [o("span", null, k(A(R).t("visibleColumns")), 1), o("small", null, k(St.value.length) + " / " + k(bt.value.length), 1)]),
|
|
2928
2928
|
l(Ue, {
|
|
2929
2929
|
density: "compact",
|
|
2930
2930
|
"max-height": "260",
|
|
2931
2931
|
class: "data-table-column-settings__list overflow-y-auto"
|
|
2932
2932
|
}, {
|
|
2933
|
-
default: N(() => [(S(!0), a(e, null, w(
|
|
2933
|
+
default: N(() => [(S(!0), a(e, null, w(bt.value, (e) => (S(), r(We, {
|
|
2934
2934
|
key: e.key,
|
|
2935
2935
|
title: e.title,
|
|
2936
2936
|
class: "data-table-column-settings__item"
|
|
2937
2937
|
}, {
|
|
2938
|
-
prepend: N(() => [l(
|
|
2939
|
-
"model-value":
|
|
2938
|
+
prepend: N(() => [l(it, {
|
|
2939
|
+
"model-value": Nt(e.key),
|
|
2940
2940
|
"aria-label": `${A(R).t("visibleColumns")}: ${e.title}`,
|
|
2941
|
-
"onUpdate:modelValue": (t) =>
|
|
2941
|
+
"onUpdate:modelValue": (t) => Pt(e.key, !!t)
|
|
2942
2942
|
}, null, 8, [
|
|
2943
2943
|
"model-value",
|
|
2944
2944
|
"aria-label",
|
|
@@ -2954,7 +2954,7 @@ var Gr = {
|
|
|
2954
2954
|
_: 1
|
|
2955
2955
|
})) : i("", !0)
|
|
2956
2956
|
])) : i("", !0),
|
|
2957
|
-
g.inlineFilter &&
|
|
2957
|
+
g.inlineFilter && Jt.value.length > 0 ? (S(), r(V, {
|
|
2958
2958
|
key: 2,
|
|
2959
2959
|
class: "mb-2 pa-2 lookup-inline-filter",
|
|
2960
2960
|
elevation: "1"
|
|
@@ -2964,11 +2964,11 @@ var Gr = {
|
|
|
2964
2964
|
default: N(() => [l(Ur, {
|
|
2965
2965
|
"filter-model": B.value,
|
|
2966
2966
|
"onUpdate:filterModel": u[7] ||= (e) => B.value = e,
|
|
2967
|
-
"filter-operator-model":
|
|
2968
|
-
"onUpdate:filterOperatorModel": u[8] ||= (e) =>
|
|
2969
|
-
headers:
|
|
2970
|
-
"has-filter-operators":
|
|
2971
|
-
"get-header-filter-operators":
|
|
2967
|
+
"filter-operator-model": we.value,
|
|
2968
|
+
"onUpdate:filterOperatorModel": u[8] ||= (e) => we.value = e,
|
|
2969
|
+
headers: Jt.value,
|
|
2970
|
+
"has-filter-operators": wn,
|
|
2971
|
+
"get-header-filter-operators": Sn
|
|
2972
2972
|
}, null, 8, [
|
|
2973
2973
|
"filter-model",
|
|
2974
2974
|
"filter-operator-model",
|
|
@@ -2979,9 +2979,9 @@ var Gr = {
|
|
|
2979
2979
|
class: "inlineCustomAction"
|
|
2980
2980
|
}, {
|
|
2981
2981
|
default: N(() => [T(n.$slots, "inline-filter-actions", {
|
|
2982
|
-
applyFilter:
|
|
2983
|
-
resetFilter:
|
|
2984
|
-
hasActiveFilters:
|
|
2982
|
+
applyFilter: ur,
|
|
2983
|
+
resetFilter: dr,
|
|
2984
|
+
hasActiveFilters: Ht.value,
|
|
2985
2985
|
filterModel: B.value
|
|
2986
2986
|
})]),
|
|
2987
2987
|
_: 3
|
|
@@ -2992,17 +2992,17 @@ var Gr = {
|
|
|
2992
2992
|
})]),
|
|
2993
2993
|
_: 3
|
|
2994
2994
|
})) : i("", !0),
|
|
2995
|
-
g.selectable &&
|
|
2995
|
+
g.selectable && un.value ? (S(), a("div", ni, [l(Ve, {
|
|
2996
2996
|
color: "primary",
|
|
2997
2997
|
class: "me-2"
|
|
2998
2998
|
}, {
|
|
2999
|
-
default: N(() => [c(k(
|
|
2999
|
+
default: N(() => [c(k(ln.value) + " " + k(A(R).t("items")), 1)]),
|
|
3000
3000
|
_: 1
|
|
3001
3001
|
}), l(H, {
|
|
3002
3002
|
color: "error",
|
|
3003
3003
|
size: "small",
|
|
3004
3004
|
class: "me-2",
|
|
3005
|
-
onClick:
|
|
3005
|
+
onClick: pn
|
|
3006
3006
|
}, {
|
|
3007
3007
|
default: N(() => [c(k(A(R).t("clearSelection")), 1)]),
|
|
3008
3008
|
_: 1
|
|
@@ -3010,26 +3010,26 @@ var Gr = {
|
|
|
3010
3010
|
o("div", h({ class: "data-table-container" }, n.$attrs, {
|
|
3011
3011
|
role: "region",
|
|
3012
3012
|
"aria-label": g.title || "Data table",
|
|
3013
|
-
"aria-busy": j.value ||
|
|
3014
|
-
"aria-live": j.value ||
|
|
3015
|
-
onScrollPassive:
|
|
3013
|
+
"aria-busy": j.value || De.value,
|
|
3014
|
+
"aria-live": j.value || De.value ? "polite" : "off",
|
|
3015
|
+
onScrollPassive: Rn
|
|
3016
3016
|
}), [
|
|
3017
3017
|
ie.value ? (S(), a("div", ii, k(ie.value), 1)) : i("", !0),
|
|
3018
|
-
j.value && !
|
|
3018
|
+
j.value && !De.value ? (S(), a("div", {
|
|
3019
3019
|
key: 1,
|
|
3020
3020
|
class: "skeleton-container",
|
|
3021
3021
|
style: y({ height: `${g.height}px` })
|
|
3022
|
-
}, [l(
|
|
3022
|
+
}, [l(dt, {
|
|
3023
3023
|
type: "table",
|
|
3024
3024
|
loading: j.value,
|
|
3025
3025
|
class: "mx-auto",
|
|
3026
3026
|
"max-width": "100%",
|
|
3027
3027
|
boilerplate: !1
|
|
3028
3028
|
}, null, 8, ["loading"])], 4)) : (S(), a(e, { key: 2 }, [
|
|
3029
|
-
g.groupBy && A(
|
|
3029
|
+
g.groupBy && A(Ze).length > 0 ? (S(), a("div", ai, [o("div", oi, [l(H, {
|
|
3030
3030
|
size: "small",
|
|
3031
3031
|
color: "primary",
|
|
3032
|
-
onClick:
|
|
3032
|
+
onClick: on,
|
|
3033
3033
|
class: "me-2"
|
|
3034
3034
|
}, {
|
|
3035
3035
|
default: N(() => [c(k(A(R).t("expandAll")), 1)]),
|
|
@@ -3037,7 +3037,7 @@ var Gr = {
|
|
|
3037
3037
|
}), l(H, {
|
|
3038
3038
|
size: "small",
|
|
3039
3039
|
color: "secondary",
|
|
3040
|
-
onClick:
|
|
3040
|
+
onClick: sn,
|
|
3041
3041
|
class: "me-2"
|
|
3042
3042
|
}, {
|
|
3043
3043
|
default: N(() => [c(k(A(R).t("collapseAll")), 1)]),
|
|
@@ -3045,16 +3045,16 @@ var Gr = {
|
|
|
3045
3045
|
})]), o("div", {
|
|
3046
3046
|
class: "groups-scroll-container",
|
|
3047
3047
|
style: y({ height: `${g.height - 120}px` })
|
|
3048
|
-
}, [o("div", si, [(S(!0), a(e, null, w(A(
|
|
3048
|
+
}, [o("div", si, [(S(!0), a(e, null, w(A(Ze), (n) => (S(), a("div", {
|
|
3049
3049
|
key: n.groupKey,
|
|
3050
3050
|
class: "group-section"
|
|
3051
3051
|
}, [o("div", {
|
|
3052
3052
|
class: _(["group-header", { expanded: n.isExpanded }]),
|
|
3053
3053
|
role: "button",
|
|
3054
3054
|
tabindex: "0",
|
|
3055
|
-
onClick: P((e) =>
|
|
3055
|
+
onClick: P((e) => an(n.groupKey), ["stop"]),
|
|
3056
3056
|
onMousedown: u[9] ||= P(() => {}, ["stop"]),
|
|
3057
|
-
onKeydown: [oe(P((e) =>
|
|
3057
|
+
onKeydown: [oe(P((e) => an(n.groupKey), ["prevent"]), ["enter"]), oe(P((e) => an(n.groupKey), ["prevent"]), ["space"])],
|
|
3058
3058
|
"aria-expanded": n.isExpanded ? "true" : "false",
|
|
3059
3059
|
"aria-label": `${n.isExpanded ? "Collapse" : "Expand"} group ${n.groupLabel}`,
|
|
3060
3060
|
"aria-controls": `group-panel-${n.groupKey}`,
|
|
@@ -3086,12 +3086,12 @@ var Gr = {
|
|
|
3086
3086
|
id: `group-panel-${n.groupKey}`,
|
|
3087
3087
|
"aria-labelledby": `group-header-${n.groupKey}`,
|
|
3088
3088
|
role: "region"
|
|
3089
|
-
}, [l(
|
|
3090
|
-
headers:
|
|
3089
|
+
}, [l(at, {
|
|
3090
|
+
headers: Rt.value,
|
|
3091
3091
|
items: n.items,
|
|
3092
|
-
"sort-by":
|
|
3093
|
-
"onUpdate:sortBy": u[10] ||= (e) =>
|
|
3094
|
-
"items-per-page":
|
|
3092
|
+
"sort-by": At.value,
|
|
3093
|
+
"onUpdate:sortBy": u[10] ||= (e) => At.value = e,
|
|
3094
|
+
"items-per-page": ve.value,
|
|
3095
3095
|
"hide-default-footer": "",
|
|
3096
3096
|
class: "elevation-1 group-table",
|
|
3097
3097
|
"no-data-text": A(R).t("noRecords"),
|
|
@@ -3099,38 +3099,38 @@ var Gr = {
|
|
|
3099
3099
|
height: "auto",
|
|
3100
3100
|
density: "compact"
|
|
3101
3101
|
}, {
|
|
3102
|
-
"header.selection": N(() => [g.selectable && g.multiSelect ? (S(), r(
|
|
3102
|
+
"header.selection": N(() => [g.selectable && g.multiSelect ? (S(), r(rt, {
|
|
3103
3103
|
key: 0,
|
|
3104
|
-
"model-value":
|
|
3105
|
-
"onUpdate:modelValue":
|
|
3106
|
-
indeterminate:
|
|
3104
|
+
"model-value": Ye.value,
|
|
3105
|
+
"onUpdate:modelValue": rn,
|
|
3106
|
+
indeterminate: ln.value > 0 && ln.value < O.value.length,
|
|
3107
3107
|
"hide-details": "",
|
|
3108
3108
|
density: "compact",
|
|
3109
3109
|
"aria-label": "Select all rows"
|
|
3110
3110
|
}, null, 8, ["model-value", "indeterminate"])) : i("", !0)]),
|
|
3111
3111
|
item: N(({ item: t, columns: n, index: s }) => [o("tr", {
|
|
3112
3112
|
style: y({
|
|
3113
|
-
background:
|
|
3113
|
+
background: cn(t) && g.bulkMode ? "rgb(var(--v-theme-primary200))" : s % 2 == 0 ? "rgb(var(--v-theme-surface))" : "rgb(var(--v-theme-lightprimary))",
|
|
3114
3114
|
cursor: g.bulkMode && g.selectable ? "pointer" : "default"
|
|
3115
3115
|
}),
|
|
3116
3116
|
tabindex: g.selectable ? 0 : -1,
|
|
3117
|
-
onKeydown: oe(P((e) => g.selectable &&
|
|
3118
|
-
onClick: (e) => g.bulkMode && g.selectable &&
|
|
3117
|
+
onKeydown: oe(P((e) => g.selectable && nn(t), ["prevent"]), ["enter"]),
|
|
3118
|
+
onClick: (e) => g.bulkMode && g.selectable && Y(t)
|
|
3119
3119
|
}, [(S(!0), a(e, null, w(n, (n) => (S(), a("td", {
|
|
3120
3120
|
key: n.key || "unknown",
|
|
3121
3121
|
style: y({
|
|
3122
|
-
...
|
|
3122
|
+
...Qn(n, t),
|
|
3123
3123
|
...n.width ? {
|
|
3124
3124
|
width: n.width + "px",
|
|
3125
3125
|
minWidth: n.width + "px",
|
|
3126
3126
|
maxWidth: n.width + "px"
|
|
3127
3127
|
} : {}
|
|
3128
3128
|
})
|
|
3129
|
-
}, [n.key === "selection" ? (S(), a(e, { key: 0 }, [g.bulkMode ? (S(), r(
|
|
3129
|
+
}, [n.key === "selection" ? (S(), a(e, { key: 0 }, [g.bulkMode ? (S(), r(ut, {
|
|
3130
3130
|
key: 0,
|
|
3131
|
-
"model-value":
|
|
3131
|
+
"model-value": yn.value,
|
|
3132
3132
|
value: q(t),
|
|
3133
|
-
onClick: P((e) =>
|
|
3133
|
+
onClick: P((e) => Y(t), ["stop"]),
|
|
3134
3134
|
disabled: !g.selectable,
|
|
3135
3135
|
"hide-details": "",
|
|
3136
3136
|
density: "compact",
|
|
@@ -3141,10 +3141,10 @@ var Gr = {
|
|
|
3141
3141
|
"onClick",
|
|
3142
3142
|
"disabled",
|
|
3143
3143
|
"aria-label"
|
|
3144
|
-
])) : (S(), r(
|
|
3144
|
+
])) : (S(), r(rt, {
|
|
3145
3145
|
key: 1,
|
|
3146
|
-
"model-value":
|
|
3147
|
-
"onUpdate:modelValue": (e) =>
|
|
3146
|
+
"model-value": cn(t),
|
|
3147
|
+
"onUpdate:modelValue": (e) => nn(t),
|
|
3148
3148
|
disabled: !g.selectable,
|
|
3149
3149
|
"hide-details": "",
|
|
3150
3150
|
density: "compact",
|
|
@@ -3154,13 +3154,13 @@ var Gr = {
|
|
|
3154
3154
|
"onUpdate:modelValue",
|
|
3155
3155
|
"disabled",
|
|
3156
3156
|
"aria-label"
|
|
3157
|
-
]))], 64)) : i("", !0), n.key === "actions" &&
|
|
3157
|
+
]))], 64)) : i("", !0), n.key === "actions" && mt.value ? (S(), a(e, { key: 1 }, [
|
|
3158
3158
|
g.actions?.includes("edit") ? (S(), r(H, {
|
|
3159
3159
|
key: 0,
|
|
3160
3160
|
color: "blue",
|
|
3161
3161
|
size: "small",
|
|
3162
3162
|
class: "mr-2",
|
|
3163
|
-
onClick: (e) =>
|
|
3163
|
+
onClick: (e) => Bn(t)
|
|
3164
3164
|
}, {
|
|
3165
3165
|
default: N(() => [...u[40] ||= [c(" ویرایش ✏️ ", -1)]]),
|
|
3166
3166
|
_: 1
|
|
@@ -3170,7 +3170,7 @@ var Gr = {
|
|
|
3170
3170
|
color: "red",
|
|
3171
3171
|
size: "small",
|
|
3172
3172
|
class: "mr-2",
|
|
3173
|
-
onClick: (e) =>
|
|
3173
|
+
onClick: (e) => Vn(t)
|
|
3174
3174
|
}, {
|
|
3175
3175
|
default: N(() => [...u[41] ||= [c("حذف ❌ ", -1)]]),
|
|
3176
3176
|
_: 1
|
|
@@ -3180,17 +3180,17 @@ var Gr = {
|
|
|
3180
3180
|
color: "purple",
|
|
3181
3181
|
size: "small",
|
|
3182
3182
|
class: "mr-2",
|
|
3183
|
-
onClick: (e) =>
|
|
3183
|
+
onClick: (e) => qn("view", t)
|
|
3184
3184
|
}, {
|
|
3185
3185
|
default: N(() => [...u[42] ||= [c("🔍 نمایش ", -1)]]),
|
|
3186
3186
|
_: 1
|
|
3187
3187
|
}, 8, ["onClick"])) : i("", !0),
|
|
3188
|
-
(S(!0), a(e, null, w(
|
|
3188
|
+
(S(!0), a(e, null, w(ht(t), (e, n) => (S(), r(H, {
|
|
3189
3189
|
key: n,
|
|
3190
3190
|
color: "indigo",
|
|
3191
3191
|
size: "small",
|
|
3192
3192
|
class: "mr-2",
|
|
3193
|
-
onClick: (e) =>
|
|
3193
|
+
onClick: (e) => qn(n, t)
|
|
3194
3194
|
}, {
|
|
3195
3195
|
default: N(() => [c(k(n.toUpperCase()), 1)]),
|
|
3196
3196
|
_: 2
|
|
@@ -3199,7 +3199,7 @@ var Gr = {
|
|
|
3199
3199
|
size: "small",
|
|
3200
3200
|
class: "mr-2",
|
|
3201
3201
|
key: n,
|
|
3202
|
-
onClick: (e) =>
|
|
3202
|
+
onClick: (e) => Jn(n, t)
|
|
3203
3203
|
}, {
|
|
3204
3204
|
default: N(() => [c(k(n) + " ⬇️ ", 1)]),
|
|
3205
3205
|
_: 2
|
|
@@ -3209,7 +3209,7 @@ var Gr = {
|
|
|
3209
3209
|
color: "primary",
|
|
3210
3210
|
size: "small",
|
|
3211
3211
|
class: "mr-2",
|
|
3212
|
-
onClick: (e) =>
|
|
3212
|
+
onClick: (e) => Zn(n, t)
|
|
3213
3213
|
}, {
|
|
3214
3214
|
default: N(() => [c(k(n.title), 1)]),
|
|
3215
3215
|
_: 2
|
|
@@ -3243,10 +3243,10 @@ var Gr = {
|
|
|
3243
3243
|
"disabled",
|
|
3244
3244
|
"onClick"
|
|
3245
3245
|
]))), 128))
|
|
3246
|
-
], 64)) : (S(), a("div", fi, [
|
|
3246
|
+
], 64)) : (S(), a("div", fi, [ir(Z(X(t, n.key || ""), n, t), Q(n.key || "")) ? (S(), r(qe, {
|
|
3247
3247
|
key: 0,
|
|
3248
|
-
text:
|
|
3249
|
-
disabled: !
|
|
3248
|
+
text: _t(Z(X(t, n.key || ""), n, t), n) ?? "",
|
|
3249
|
+
disabled: !_t(Z(X(t, n.key || ""), n, t), n),
|
|
3250
3250
|
"content-class": "data-table-cell-tooltip"
|
|
3251
3251
|
}, {
|
|
3252
3252
|
activator: N(({ props: e }) => [o("span", h({ ref_for: !0 }, e, {
|
|
@@ -3256,27 +3256,27 @@ var Gr = {
|
|
|
3256
3256
|
color: "rgb(var(--v-theme-primary))",
|
|
3257
3257
|
textDecoration: "underline"
|
|
3258
3258
|
},
|
|
3259
|
-
onClick: P((e) =>
|
|
3260
|
-
}), k(
|
|
3259
|
+
onClick: P((e) => sr(Z(X(t, n.key || ""), n, t), n.title || n.key || "", t), ["stop"])
|
|
3260
|
+
}), k(rr(Z(X(t, n.key || ""), n, t))), 17, pi)]),
|
|
3261
3261
|
_: 2
|
|
3262
|
-
}, 1032, ["text", "disabled"])) : (S(), r(
|
|
3262
|
+
}, 1032, ["text", "disabled"])) : (S(), r(qe, {
|
|
3263
3263
|
key: 1,
|
|
3264
|
-
text:
|
|
3265
|
-
disabled: !
|
|
3264
|
+
text: _t(Z(X(t, n.key || ""), n, t), n) ?? "",
|
|
3265
|
+
disabled: !_t(Z(X(t, n.key || ""), n, t), n),
|
|
3266
3266
|
"content-class": "data-table-cell-tooltip"
|
|
3267
3267
|
}, {
|
|
3268
3268
|
activator: N(({ props: e }) => [o("span", h({ ref_for: !0 }, e, {
|
|
3269
|
-
onClick: P((e) =>
|
|
3270
|
-
style: { cursor:
|
|
3269
|
+
onClick: P((e) => or(Q(n.key || "")) && sr(Z(X(t, n.key || ""), n, t), n.title || n.key || "", t), ["stop"]),
|
|
3270
|
+
style: { cursor: or(Q(n.key || "")) ? "pointer" : "default" }
|
|
3271
3271
|
}), k(Z(X(t, n.key || ""), n, t)), 17, mi)]),
|
|
3272
3272
|
_: 2
|
|
3273
|
-
}, 1032, ["text", "disabled"])),
|
|
3273
|
+
}, 1032, ["text", "disabled"])), or(Q(n.key || "")) ? (S(), r(H, {
|
|
3274
3274
|
key: 2,
|
|
3275
3275
|
icon: "",
|
|
3276
3276
|
size: "x-small",
|
|
3277
3277
|
variant: "text",
|
|
3278
3278
|
color: "primary",
|
|
3279
|
-
onClick: P((e) =>
|
|
3279
|
+
onClick: P((e) => sr(Z(X(t, n.key || ""), n, t), n.title || n.key || "", t), ["stop"]),
|
|
3280
3280
|
style: {
|
|
3281
3281
|
"min-width": "24px",
|
|
3282
3282
|
width: "24px",
|
|
@@ -3297,64 +3297,64 @@ var Gr = {
|
|
|
3297
3297
|
])], 8, ui)) : i("", !0)]),
|
|
3298
3298
|
_: 2
|
|
3299
3299
|
}, 1024)]))), 128))])], 4)])) : i("", !0),
|
|
3300
|
-
|
|
3300
|
+
Ct.value ? (S(), a("div", hi, [(S(!0), a(e, null, w(O.value, (t) => (S(), r(V, {
|
|
3301
3301
|
key: q(t),
|
|
3302
|
-
class: _(["mobile-data-card", { "mobile-data-card--selected":
|
|
3302
|
+
class: _(["mobile-data-card", { "mobile-data-card--selected": cn(t) }]),
|
|
3303
3303
|
variant: "outlined",
|
|
3304
3304
|
role: "listitem",
|
|
3305
|
-
onClick: (e) => g.bulkMode && g.selectable &&
|
|
3305
|
+
onClick: (e) => g.bulkMode && g.selectable && Y(t)
|
|
3306
3306
|
}, {
|
|
3307
3307
|
default: N(() => [
|
|
3308
|
-
o("div", gi, [o("div", _i, [o("span", vi, k(
|
|
3308
|
+
o("div", gi, [o("div", _i, [o("span", vi, k(Dt.value?.title), 1), o("strong", null, k(Dt.value ? Z(X(t, Dt.value.key), Dt.value, t) : q(t)), 1)]), g.selectable && !g.bulkMode ? (S(), r(it, {
|
|
3309
3309
|
key: 0,
|
|
3310
|
-
"model-value":
|
|
3310
|
+
"model-value": cn(t),
|
|
3311
3311
|
density: "compact",
|
|
3312
3312
|
"aria-label": `Select row ${q(t)}`,
|
|
3313
3313
|
onClick: u[11] ||= P(() => {}, ["stop"]),
|
|
3314
|
-
"onUpdate:modelValue": (e) =>
|
|
3314
|
+
"onUpdate:modelValue": (e) => nn(t)
|
|
3315
3315
|
}, null, 8, [
|
|
3316
3316
|
"model-value",
|
|
3317
3317
|
"aria-label",
|
|
3318
3318
|
"onUpdate:modelValue"
|
|
3319
|
-
])) : g.selectable ? (S(), r(
|
|
3319
|
+
])) : g.selectable ? (S(), r(ut, {
|
|
3320
3320
|
key: 1,
|
|
3321
|
-
"model-value":
|
|
3321
|
+
"model-value": yn.value,
|
|
3322
3322
|
value: q(t),
|
|
3323
3323
|
density: "compact",
|
|
3324
3324
|
"hide-details": "",
|
|
3325
3325
|
"aria-label": `Select row ${q(t)}`,
|
|
3326
|
-
onClick: P((e) =>
|
|
3326
|
+
onClick: P((e) => Y(t), ["stop"])
|
|
3327
3327
|
}, null, 8, [
|
|
3328
3328
|
"model-value",
|
|
3329
3329
|
"value",
|
|
3330
3330
|
"aria-label",
|
|
3331
3331
|
"onClick"
|
|
3332
3332
|
])) : i("", !0)]),
|
|
3333
|
-
o("div", yi, [(S(!0), a(e, null, w(
|
|
3333
|
+
o("div", yi, [(S(!0), a(e, null, w(Tt.value, (e) => (S(), a("div", {
|
|
3334
3334
|
key: e.key,
|
|
3335
3335
|
class: "mobile-data-card__field"
|
|
3336
|
-
}, [o("span", null, k(e.title), 1), o("b", { style: y(
|
|
3337
|
-
l(
|
|
3338
|
-
default: N(() => [
|
|
3336
|
+
}, [o("span", null, k(e.title), 1), o("b", { style: y(Qn(e, t)) }, k(Z(X(t, e.key), e, t) ?? "—"), 5)]))), 128))]),
|
|
3337
|
+
l(pt, null, {
|
|
3338
|
+
default: N(() => [Ot(t) ? (S(), a("div", bi, [(S(!0), a(e, null, w(Et.value, (e) => (S(), a("div", {
|
|
3339
3339
|
key: e.key,
|
|
3340
3340
|
class: "mobile-data-card__detail-row"
|
|
3341
|
-
}, [o("span", null, k(e.title), 1), o("b", { style: y(
|
|
3341
|
+
}, [o("span", null, k(e.title), 1), o("b", { style: y(Qn(e, t)) }, k(Z(X(t, e.key), e, t) ?? "—"), 5)]))), 128))])) : i("", !0)]),
|
|
3342
3342
|
_: 2
|
|
3343
3343
|
}, 1024),
|
|
3344
|
-
o("div", xi, [
|
|
3344
|
+
o("div", xi, [Et.value.length ? (S(), r(H, {
|
|
3345
3345
|
key: 0,
|
|
3346
3346
|
variant: "text",
|
|
3347
3347
|
color: "primary",
|
|
3348
3348
|
size: "small",
|
|
3349
3349
|
class: "mobile-data-card__details-button",
|
|
3350
|
-
onClick: P((e) =>
|
|
3350
|
+
onClick: P((e) => kt(t), ["stop"])
|
|
3351
3351
|
}, {
|
|
3352
|
-
default: N(() => [c(k(
|
|
3352
|
+
default: N(() => [c(k(Ot(t) ? A(R).t("close") : A(R).t("more")) + " ", 1), l(A(de), {
|
|
3353
3353
|
size: 18,
|
|
3354
|
-
class: _({ "mobile-data-card__chevron--open":
|
|
3354
|
+
class: _({ "mobile-data-card__chevron--open": Ot(t) })
|
|
3355
3355
|
}, null, 8, ["class"])]),
|
|
3356
3356
|
_: 2
|
|
3357
|
-
}, 1032, ["onClick"])) : i("", !0),
|
|
3357
|
+
}, 1032, ["onClick"])) : i("", !0), mt.value ? (S(), a("div", {
|
|
3358
3358
|
key: 1,
|
|
3359
3359
|
class: "mobile-data-card__actions",
|
|
3360
3360
|
onClick: u[12] ||= P(() => {}, ["stop"])
|
|
@@ -3363,7 +3363,7 @@ var Gr = {
|
|
|
3363
3363
|
key: 0,
|
|
3364
3364
|
color: "blue",
|
|
3365
3365
|
size: "small",
|
|
3366
|
-
onClick: (e) =>
|
|
3366
|
+
onClick: (e) => Bn(t)
|
|
3367
3367
|
}, {
|
|
3368
3368
|
default: N(() => [c(k(A(R).t("edit")), 1)]),
|
|
3369
3369
|
_: 1
|
|
@@ -3372,7 +3372,7 @@ var Gr = {
|
|
|
3372
3372
|
key: 1,
|
|
3373
3373
|
color: "red",
|
|
3374
3374
|
size: "small",
|
|
3375
|
-
onClick: (e) =>
|
|
3375
|
+
onClick: (e) => Vn(t)
|
|
3376
3376
|
}, {
|
|
3377
3377
|
default: N(() => [c(k(A(R).t("delete")), 1)]),
|
|
3378
3378
|
_: 1
|
|
@@ -3381,16 +3381,16 @@ var Gr = {
|
|
|
3381
3381
|
key: 2,
|
|
3382
3382
|
color: "purple",
|
|
3383
3383
|
size: "small",
|
|
3384
|
-
onClick: (e) =>
|
|
3384
|
+
onClick: (e) => qn("view", t)
|
|
3385
3385
|
}, {
|
|
3386
3386
|
default: N(() => [c(k(A(R).t("view")), 1)]),
|
|
3387
3387
|
_: 1
|
|
3388
3388
|
}, 8, ["onClick"])) : i("", !0),
|
|
3389
|
-
(S(!0), a(e, null, w(
|
|
3389
|
+
(S(!0), a(e, null, w(ht(t), (e, n) => (S(), r(H, {
|
|
3390
3390
|
key: n,
|
|
3391
3391
|
color: "primary",
|
|
3392
3392
|
size: "small",
|
|
3393
|
-
onClick: (e) =>
|
|
3393
|
+
onClick: (e) => qn(n, t)
|
|
3394
3394
|
}, {
|
|
3395
3395
|
default: N(() => [c(k(String(n)), 1)]),
|
|
3396
3396
|
_: 2
|
|
@@ -3398,7 +3398,7 @@ var Gr = {
|
|
|
3398
3398
|
(S(!0), a(e, null, w(g.downloadLink, (e, n) => (S(), r(H, {
|
|
3399
3399
|
key: n,
|
|
3400
3400
|
size: "small",
|
|
3401
|
-
onClick: (e) =>
|
|
3401
|
+
onClick: (e) => Jn(n, t)
|
|
3402
3402
|
}, {
|
|
3403
3403
|
default: N(() => [c(k(n), 1)]),
|
|
3404
3404
|
_: 2
|
|
@@ -3407,7 +3407,7 @@ var Gr = {
|
|
|
3407
3407
|
key: 0,
|
|
3408
3408
|
color: "primary",
|
|
3409
3409
|
size: "small",
|
|
3410
|
-
onClick: (e) =>
|
|
3410
|
+
onClick: (e) => Zn(n, t)
|
|
3411
3411
|
}, {
|
|
3412
3412
|
default: N(() => [c(k(n.title), 1)]),
|
|
3413
3413
|
_: 2
|
|
@@ -3442,25 +3442,26 @@ var Gr = {
|
|
|
3442
3442
|
])) : i("", !0)])
|
|
3443
3443
|
]),
|
|
3444
3444
|
_: 2
|
|
3445
|
-
}, 1032, ["class", "onClick"]))), 128)), O.value.length === 0 ? (S(), a("div", Si, k(A(R).t("noRecords")), 1)) : i("", !0)])) :
|
|
3445
|
+
}, 1032, ["class", "onClick"]))), 128)), O.value.length === 0 ? (S(), a("div", Si, k(A(R).t("noRecords")), 1)) : i("", !0)])) : i("", !0),
|
|
3446
|
+
g.groupBy ? i("", !0) : (S(), r(at, {
|
|
3446
3447
|
key: 2,
|
|
3447
|
-
headers:
|
|
3448
|
+
headers: zt.value,
|
|
3448
3449
|
items: O.value,
|
|
3449
|
-
"sort-by":
|
|
3450
|
-
"onUpdate:sortBy": u[13] ||= (e) =>
|
|
3451
|
-
"items-per-page":
|
|
3450
|
+
"sort-by": At.value,
|
|
3451
|
+
"onUpdate:sortBy": u[13] ||= (e) => At.value = e,
|
|
3452
|
+
"items-per-page": ve.value,
|
|
3452
3453
|
"hide-default-footer": "",
|
|
3453
|
-
class: "elevation-1",
|
|
3454
|
+
class: "elevation-1 desktop-data-table",
|
|
3454
3455
|
"no-data-text": A(R).t("noRecords"),
|
|
3455
3456
|
hover: "",
|
|
3456
3457
|
height: g.height,
|
|
3457
3458
|
density: "compact"
|
|
3458
3459
|
}, {
|
|
3459
|
-
"header.selection": N(() => [g.selectable && g.multiSelect ? (S(), r(
|
|
3460
|
+
"header.selection": N(() => [g.selectable && g.multiSelect ? (S(), r(rt, {
|
|
3460
3461
|
key: 0,
|
|
3461
|
-
"model-value":
|
|
3462
|
-
"onUpdate:modelValue":
|
|
3463
|
-
indeterminate:
|
|
3462
|
+
"model-value": Ye.value,
|
|
3463
|
+
"onUpdate:modelValue": rn,
|
|
3464
|
+
indeterminate: ln.value > 0 && ln.value < O.value.length,
|
|
3464
3465
|
"hide-details": "",
|
|
3465
3466
|
density: "compact",
|
|
3466
3467
|
"aria-label": "Select all rows"
|
|
@@ -3469,27 +3470,27 @@ var Gr = {
|
|
|
3469
3470
|
class: _([
|
|
3470
3471
|
"data-row",
|
|
3471
3472
|
g.bulkMode && g.selectable ? "is-selectable" : "",
|
|
3472
|
-
|
|
3473
|
+
cn(t) && g.bulkMode ? "is-selected" : "",
|
|
3473
3474
|
s % 2 == 0 ? "row-even" : "row-odd"
|
|
3474
3475
|
]),
|
|
3475
3476
|
tabindex: g.selectable ? 0 : -1,
|
|
3476
|
-
onKeydown: oe(P((e) => g.selectable &&
|
|
3477
|
-
onClick: (e) => g.bulkMode && g.selectable &&
|
|
3477
|
+
onKeydown: oe(P((e) => g.selectable && nn(t), ["prevent"]), ["enter"]),
|
|
3478
|
+
onClick: (e) => g.bulkMode && g.selectable && Y(t)
|
|
3478
3479
|
}, [(S(!0), a(e, null, w(n, (n) => (S(), a("td", {
|
|
3479
3480
|
key: n.key || "unknown",
|
|
3480
3481
|
style: y({
|
|
3481
|
-
...
|
|
3482
|
+
...Qn(n, t),
|
|
3482
3483
|
...n.width ? {
|
|
3483
3484
|
width: n.width + "px",
|
|
3484
3485
|
minWidth: n.width + "px",
|
|
3485
3486
|
maxWidth: n.width + "px"
|
|
3486
3487
|
} : {}
|
|
3487
3488
|
})
|
|
3488
|
-
}, [n.key === "selection" ? (S(), a(e, { key: 0 }, [g.bulkMode ? (S(), r(
|
|
3489
|
+
}, [n.key === "selection" ? (S(), a(e, { key: 0 }, [g.bulkMode ? (S(), r(ut, {
|
|
3489
3490
|
key: 0,
|
|
3490
|
-
"model-value":
|
|
3491
|
+
"model-value": yn.value,
|
|
3491
3492
|
value: q(t),
|
|
3492
|
-
onClick: P((e) =>
|
|
3493
|
+
onClick: P((e) => Y(t), ["stop"]),
|
|
3493
3494
|
disabled: !g.selectable,
|
|
3494
3495
|
"hide-details": "",
|
|
3495
3496
|
density: "compact",
|
|
@@ -3500,10 +3501,10 @@ var Gr = {
|
|
|
3500
3501
|
"onClick",
|
|
3501
3502
|
"disabled",
|
|
3502
3503
|
"aria-label"
|
|
3503
|
-
])) : (S(), r(
|
|
3504
|
+
])) : (S(), r(rt, {
|
|
3504
3505
|
key: 1,
|
|
3505
|
-
"model-value":
|
|
3506
|
-
"onUpdate:modelValue": (e) =>
|
|
3506
|
+
"model-value": cn(t),
|
|
3507
|
+
"onUpdate:modelValue": (e) => nn(t),
|
|
3507
3508
|
disabled: !g.selectable,
|
|
3508
3509
|
"hide-details": "",
|
|
3509
3510
|
density: "compact",
|
|
@@ -3513,13 +3514,13 @@ var Gr = {
|
|
|
3513
3514
|
"onUpdate:modelValue",
|
|
3514
3515
|
"disabled",
|
|
3515
3516
|
"aria-label"
|
|
3516
|
-
]))], 64)) : i("", !0), n.key === "actions" &&
|
|
3517
|
+
]))], 64)) : i("", !0), n.key === "actions" && mt.value ? (S(), a(e, { key: 1 }, [
|
|
3517
3518
|
g.actions?.includes("edit") ? (S(), r(H, {
|
|
3518
3519
|
key: 0,
|
|
3519
3520
|
color: "blue",
|
|
3520
3521
|
size: "small",
|
|
3521
3522
|
class: "mr-2",
|
|
3522
|
-
onClick: (e) =>
|
|
3523
|
+
onClick: (e) => Bn(t)
|
|
3523
3524
|
}, {
|
|
3524
3525
|
default: N(() => [...u[43] ||= [c(" ویرایش ✏️ ", -1)]]),
|
|
3525
3526
|
_: 1
|
|
@@ -3529,7 +3530,7 @@ var Gr = {
|
|
|
3529
3530
|
color: "red",
|
|
3530
3531
|
size: "small",
|
|
3531
3532
|
class: "mr-2",
|
|
3532
|
-
onClick: (e) =>
|
|
3533
|
+
onClick: (e) => Vn(t)
|
|
3533
3534
|
}, {
|
|
3534
3535
|
default: N(() => [...u[44] ||= [c("حذف ❌ ", -1)]]),
|
|
3535
3536
|
_: 1
|
|
@@ -3539,17 +3540,17 @@ var Gr = {
|
|
|
3539
3540
|
color: "purple",
|
|
3540
3541
|
size: "small",
|
|
3541
3542
|
class: "mr-2",
|
|
3542
|
-
onClick: (e) =>
|
|
3543
|
+
onClick: (e) => qn("view", t)
|
|
3543
3544
|
}, {
|
|
3544
3545
|
default: N(() => [...u[45] ||= [c("🔍 نمایش ", -1)]]),
|
|
3545
3546
|
_: 1
|
|
3546
3547
|
}, 8, ["onClick"])) : i("", !0),
|
|
3547
|
-
(S(!0), a(e, null, w(
|
|
3548
|
+
(S(!0), a(e, null, w(ht(t), (e, n) => (S(), r(H, {
|
|
3548
3549
|
key: n,
|
|
3549
3550
|
color: "indigo",
|
|
3550
3551
|
size: "small",
|
|
3551
3552
|
class: "mr-2",
|
|
3552
|
-
onClick: (e) =>
|
|
3553
|
+
onClick: (e) => qn(n, t)
|
|
3553
3554
|
}, {
|
|
3554
3555
|
default: N(() => [c(k(n.toUpperCase()), 1)]),
|
|
3555
3556
|
_: 2
|
|
@@ -3558,7 +3559,7 @@ var Gr = {
|
|
|
3558
3559
|
size: "small",
|
|
3559
3560
|
class: "mr-2",
|
|
3560
3561
|
key: n,
|
|
3561
|
-
onClick: (e) =>
|
|
3562
|
+
onClick: (e) => Jn(n, t)
|
|
3562
3563
|
}, {
|
|
3563
3564
|
default: N(() => [c(k(n) + " ⬇️ ", 1)]),
|
|
3564
3565
|
_: 2
|
|
@@ -3568,7 +3569,7 @@ var Gr = {
|
|
|
3568
3569
|
color: "primary",
|
|
3569
3570
|
size: "small",
|
|
3570
3571
|
class: "mr-2",
|
|
3571
|
-
onClick: (e) =>
|
|
3572
|
+
onClick: (e) => Zn(n, t)
|
|
3572
3573
|
}, {
|
|
3573
3574
|
default: N(() => [c(k(n.title), 1)]),
|
|
3574
3575
|
_: 2
|
|
@@ -3602,10 +3603,10 @@ var Gr = {
|
|
|
3602
3603
|
"disabled",
|
|
3603
3604
|
"onClick"
|
|
3604
3605
|
]))), 128))
|
|
3605
|
-
], 64)) : (S(), a("div", wi, [
|
|
3606
|
+
], 64)) : (S(), a("div", wi, [ir(Z(X(t, n.key || ""), n, t), Q(n.key || "")) ? (S(), r(qe, {
|
|
3606
3607
|
key: 0,
|
|
3607
|
-
text:
|
|
3608
|
-
disabled: !
|
|
3608
|
+
text: _t(Z(X(t, n.key || ""), n, t), n) ?? "",
|
|
3609
|
+
disabled: !_t(Z(X(t, n.key || ""), n, t), n),
|
|
3609
3610
|
"content-class": "data-table-cell-tooltip"
|
|
3610
3611
|
}, {
|
|
3611
3612
|
activator: N(({ props: e }) => [o("span", h({ ref_for: !0 }, e, {
|
|
@@ -3615,27 +3616,27 @@ var Gr = {
|
|
|
3615
3616
|
color: "rgb(var(--v-theme-primary))",
|
|
3616
3617
|
textDecoration: "underline"
|
|
3617
3618
|
},
|
|
3618
|
-
onClick: P((e) =>
|
|
3619
|
-
}), k(
|
|
3619
|
+
onClick: P((e) => sr(Z(X(t, n.key || ""), n, t), n.title || n.key || "", t), ["stop"])
|
|
3620
|
+
}), k(rr(Z(X(t, n.key || ""), n, t))), 17, Ti)]),
|
|
3620
3621
|
_: 2
|
|
3621
|
-
}, 1032, ["text", "disabled"])) : (S(), r(
|
|
3622
|
+
}, 1032, ["text", "disabled"])) : (S(), r(qe, {
|
|
3622
3623
|
key: 1,
|
|
3623
|
-
text:
|
|
3624
|
-
disabled: !
|
|
3624
|
+
text: _t(Z(X(t, n.key || ""), n, t), n) ?? "",
|
|
3625
|
+
disabled: !_t(Z(X(t, n.key || ""), n, t), n),
|
|
3625
3626
|
"content-class": "data-table-cell-tooltip"
|
|
3626
3627
|
}, {
|
|
3627
3628
|
activator: N(({ props: e }) => [o("span", h({ ref_for: !0 }, e, {
|
|
3628
|
-
onClick: P((e) =>
|
|
3629
|
-
style: { cursor:
|
|
3629
|
+
onClick: P((e) => or(Q(n.key || "")) && sr(Z(X(t, n.key || ""), n, t), n.title || n.key || "", t), ["stop"]),
|
|
3630
|
+
style: { cursor: or(Q(n.key || "")) ? "pointer" : "default" }
|
|
3630
3631
|
}), k(Z(X(t, n.key || ""), n, t)), 17, Ei)]),
|
|
3631
3632
|
_: 2
|
|
3632
|
-
}, 1032, ["text", "disabled"])),
|
|
3633
|
+
}, 1032, ["text", "disabled"])), or(Q(n.key || "")) ? (S(), r(H, {
|
|
3633
3634
|
key: 2,
|
|
3634
3635
|
icon: "",
|
|
3635
3636
|
size: "x-small",
|
|
3636
3637
|
variant: "text",
|
|
3637
3638
|
color: "primary",
|
|
3638
|
-
onClick: P((e) =>
|
|
3639
|
+
onClick: P((e) => sr(Z(X(t, n.key || ""), n, t), n.title || n.key || "", t), ["stop"]),
|
|
3639
3640
|
style: {
|
|
3640
3641
|
"min-width": "24px",
|
|
3641
3642
|
width: "24px",
|
|
@@ -3655,15 +3656,15 @@ var Gr = {
|
|
|
3655
3656
|
"no-data-text",
|
|
3656
3657
|
"height"
|
|
3657
3658
|
])),
|
|
3658
|
-
|
|
3659
|
+
De.value ? (S(), a("div", Di, [l(lt, {
|
|
3659
3660
|
indeterminate: "",
|
|
3660
3661
|
color: "primary"
|
|
3661
3662
|
})])) : i("", !0)
|
|
3662
3663
|
], 64)),
|
|
3663
|
-
g.showPagination ? (S(), a("div", Oi, [o("div", ki, [o("div", Ai, k((z.value - 1) *
|
|
3664
|
+
g.showPagination ? (S(), a("div", Oi, [o("div", ki, [o("div", Ai, k((z.value - 1) * ve.value + 1) + "–" + k(Math.min(z.value * ve.value, ye.value)) + " / " + k(ye.value) + " " + k(A(R).t("records")), 1), l(ct, {
|
|
3664
3665
|
modelValue: z.value,
|
|
3665
|
-
"onUpdate:modelValue": [u[14] ||= (e) => z.value = e,
|
|
3666
|
-
length:
|
|
3666
|
+
"onUpdate:modelValue": [u[14] ||= (e) => z.value = e, Xn],
|
|
3667
|
+
length: be.value,
|
|
3667
3668
|
"total-visible": 5,
|
|
3668
3669
|
size: "small"
|
|
3669
3670
|
}, null, 8, ["modelValue", "length"])])])) : i("", !0)
|
|
@@ -3687,17 +3688,17 @@ var Gr = {
|
|
|
3687
3688
|
modelValue: F.value,
|
|
3688
3689
|
"onUpdate:modelValue": u[15] ||= (e) => F.value = e
|
|
3689
3690
|
}, null, 8, ["modelValue"])) : (S(), r(Le, { key: 1 }, {
|
|
3690
|
-
default: N(() => [(S(!0), a(e, null, w(
|
|
3691
|
-
key:
|
|
3691
|
+
default: N(() => [(S(!0), a(e, null, w(Jt.value, (t) => (S(), r(Fe, {
|
|
3692
|
+
key: G(t),
|
|
3692
3693
|
cols: t.cols ? typeof t.cols == "number" ? t.cols : Number(t.cols) : 4,
|
|
3693
3694
|
md: t.cols ? typeof t.cols == "number" ? t.cols : Number(t.cols) : 4
|
|
3694
3695
|
}, {
|
|
3695
|
-
default: N(() => [t.hidden ? i("", !0) : (S(), a(e, { key: 0 }, [
|
|
3696
|
+
default: N(() => [t.hidden ? i("", !0) : (S(), a(e, { key: 0 }, [Xt(t) ? (S(), r(Yn, {
|
|
3696
3697
|
key: 0,
|
|
3697
|
-
modelValue: F.value[
|
|
3698
|
-
"onUpdate:modelValue": (e) => F.value[
|
|
3699
|
-
label:
|
|
3700
|
-
disabled:
|
|
3698
|
+
modelValue: F.value[G(t)],
|
|
3699
|
+
"onUpdate:modelValue": (e) => F.value[G(t)] = e,
|
|
3700
|
+
label: K(t),
|
|
3701
|
+
disabled: tn(t),
|
|
3701
3702
|
mode: t.dateMode || "single"
|
|
3702
3703
|
}, null, 8, [
|
|
3703
3704
|
"modelValue",
|
|
@@ -3705,19 +3706,19 @@ var Gr = {
|
|
|
3705
3706
|
"label",
|
|
3706
3707
|
"disabled",
|
|
3707
3708
|
"mode"
|
|
3708
|
-
])) :
|
|
3709
|
+
])) : Bt(t) ? (S(), r(Be, {
|
|
3709
3710
|
key: 1,
|
|
3710
|
-
modelValue: F.value[
|
|
3711
|
-
"onUpdate:modelValue": (e) => F.value[
|
|
3712
|
-
label:
|
|
3713
|
-
items:
|
|
3714
|
-
"item-title":
|
|
3715
|
-
"item-value":
|
|
3716
|
-
"return-object":
|
|
3717
|
-
multiple:
|
|
3718
|
-
chips:
|
|
3719
|
-
"closable-chips":
|
|
3720
|
-
disabled:
|
|
3711
|
+
modelValue: F.value[G(t)],
|
|
3712
|
+
"onUpdate:modelValue": (e) => F.value[G(t)] = e,
|
|
3713
|
+
label: K(t),
|
|
3714
|
+
items: Vt(t, F.value.value),
|
|
3715
|
+
"item-title": Wt(t),
|
|
3716
|
+
"item-value": Gt(t),
|
|
3717
|
+
"return-object": Kt(t),
|
|
3718
|
+
multiple: qt(t),
|
|
3719
|
+
chips: qt(t),
|
|
3720
|
+
"closable-chips": qt(t),
|
|
3721
|
+
disabled: tn(t),
|
|
3721
3722
|
clearable: "",
|
|
3722
3723
|
variant: "outlined",
|
|
3723
3724
|
attach: "",
|
|
@@ -3734,24 +3735,24 @@ var Gr = {
|
|
|
3734
3735
|
"chips",
|
|
3735
3736
|
"closable-chips",
|
|
3736
3737
|
"disabled"
|
|
3737
|
-
])) :
|
|
3738
|
+
])) : Zt(t) ? (S(), r(Mn, {
|
|
3738
3739
|
key: 2,
|
|
3739
|
-
modelValue: F.value[
|
|
3740
|
-
"onUpdate:modelValue": (e) => F.value[
|
|
3741
|
-
label:
|
|
3742
|
-
disabled:
|
|
3740
|
+
modelValue: F.value[G(t)],
|
|
3741
|
+
"onUpdate:modelValue": (e) => F.value[G(t)] = e,
|
|
3742
|
+
label: K(t),
|
|
3743
|
+
disabled: tn(t)
|
|
3743
3744
|
}, null, 8, [
|
|
3744
3745
|
"modelValue",
|
|
3745
3746
|
"onUpdate:modelValue",
|
|
3746
3747
|
"label",
|
|
3747
3748
|
"disabled"
|
|
3748
|
-
])) :
|
|
3749
|
+
])) : Qt(t) ? (S(), r(et, {
|
|
3749
3750
|
key: 3,
|
|
3750
|
-
modelValue: F.value[
|
|
3751
|
-
"onUpdate:modelValue": (e) => F.value[
|
|
3752
|
-
label:
|
|
3751
|
+
modelValue: F.value[G(t)],
|
|
3752
|
+
"onUpdate:modelValue": (e) => F.value[G(t)] = e,
|
|
3753
|
+
label: K(t),
|
|
3753
3754
|
variant: "outlined",
|
|
3754
|
-
disabled:
|
|
3755
|
+
disabled: tn(t),
|
|
3755
3756
|
dir: t.dir,
|
|
3756
3757
|
"auto-grow": "",
|
|
3757
3758
|
rows: "3"
|
|
@@ -3761,11 +3762,11 @@ var Gr = {
|
|
|
3761
3762
|
"label",
|
|
3762
3763
|
"disabled",
|
|
3763
3764
|
"dir"
|
|
3764
|
-
])) :
|
|
3765
|
+
])) : $t(t) ? (S(), r(er, {
|
|
3765
3766
|
key: 4,
|
|
3766
|
-
modelValue: F.value[
|
|
3767
|
-
"onUpdate:modelValue": (e) => F.value[
|
|
3768
|
-
label:
|
|
3767
|
+
modelValue: F.value[G(t)],
|
|
3768
|
+
"onUpdate:modelValue": (e) => F.value[G(t)] = e,
|
|
3769
|
+
label: K(t),
|
|
3769
3770
|
type: "boolean",
|
|
3770
3771
|
activeColor: "#3bd32a",
|
|
3771
3772
|
inactiveColor: "#d32a2a",
|
|
@@ -3783,14 +3784,14 @@ var Gr = {
|
|
|
3783
3784
|
"onUpdate:modelValue",
|
|
3784
3785
|
"label",
|
|
3785
3786
|
"options"
|
|
3786
|
-
])) : (S(), r(
|
|
3787
|
+
])) : (S(), r(Je, {
|
|
3787
3788
|
key: 5,
|
|
3788
|
-
modelValue: F.value[
|
|
3789
|
-
"onUpdate:modelValue": (e) => F.value[
|
|
3790
|
-
label:
|
|
3789
|
+
modelValue: F.value[G(t)],
|
|
3790
|
+
"onUpdate:modelValue": (e) => F.value[G(t)] = e,
|
|
3791
|
+
label: K(t),
|
|
3791
3792
|
variant: "outlined",
|
|
3792
|
-
disabled:
|
|
3793
|
-
type:
|
|
3793
|
+
disabled: tn(t),
|
|
3794
|
+
type: en(t),
|
|
3794
3795
|
dir: t.dir
|
|
3795
3796
|
}, null, 8, [
|
|
3796
3797
|
"modelValue",
|
|
@@ -3818,7 +3819,7 @@ var Gr = {
|
|
|
3818
3819
|
_: 1
|
|
3819
3820
|
}), l(H, {
|
|
3820
3821
|
color: "primary",
|
|
3821
|
-
onClick:
|
|
3822
|
+
onClick: Gn
|
|
3822
3823
|
}, {
|
|
3823
3824
|
default: N(() => [c(k(ce.value ? A(R).t("save") : A(R).t("create")), 1)]),
|
|
3824
3825
|
_: 1
|
|
@@ -3855,7 +3856,7 @@ var Gr = {
|
|
|
3855
3856
|
_: 1
|
|
3856
3857
|
}), l(H, {
|
|
3857
3858
|
color: "red",
|
|
3858
|
-
onClick: u[19] ||= (e) =>
|
|
3859
|
+
onClick: u[19] ||= (e) => Kn(String(pe.value ? q(pe.value) : ""))
|
|
3859
3860
|
}, {
|
|
3860
3861
|
default: N(() => [c(k(A(R).t("delete")), 1)]),
|
|
3861
3862
|
_: 1
|
|
@@ -3868,8 +3869,8 @@ var Gr = {
|
|
|
3868
3869
|
_: 1
|
|
3869
3870
|
}, 8, ["modelValue"]),
|
|
3870
3871
|
l(ze, {
|
|
3871
|
-
modelValue:
|
|
3872
|
-
"onUpdate:modelValue": u[22] ||= (e) =>
|
|
3872
|
+
modelValue: Hn.value,
|
|
3873
|
+
"onUpdate:modelValue": u[22] ||= (e) => Hn.value = e,
|
|
3873
3874
|
"max-width": "500",
|
|
3874
3875
|
"aria-label": "Bulk delete confirmation"
|
|
3875
3876
|
}, {
|
|
@@ -3886,7 +3887,7 @@ var Gr = {
|
|
|
3886
3887
|
_: 1
|
|
3887
3888
|
}),
|
|
3888
3889
|
l(Ne, null, {
|
|
3889
|
-
default: N(() => [o("p", null, k(A(R).t("deleteSelectedDescription", { count:
|
|
3890
|
+
default: N(() => [o("p", null, k(A(R).t("deleteSelectedDescription", { count: ln.value })), 1), l(tt, {
|
|
3890
3891
|
type: "warning",
|
|
3891
3892
|
variant: "tonal",
|
|
3892
3893
|
class: "mt-3"
|
|
@@ -3901,17 +3902,17 @@ var Gr = {
|
|
|
3901
3902
|
l(Re),
|
|
3902
3903
|
l(H, {
|
|
3903
3904
|
color: "grey",
|
|
3904
|
-
onClick: u[21] ||= (e) =>
|
|
3905
|
+
onClick: u[21] ||= (e) => Hn.value = !1
|
|
3905
3906
|
}, {
|
|
3906
3907
|
default: N(() => [c(k(A(R).t("cancel")), 1)]),
|
|
3907
3908
|
_: 1
|
|
3908
3909
|
}),
|
|
3909
3910
|
l(H, {
|
|
3910
3911
|
color: "red",
|
|
3911
|
-
onClick:
|
|
3912
|
+
onClick: Wn,
|
|
3912
3913
|
loading: j.value
|
|
3913
3914
|
}, {
|
|
3914
|
-
default: N(() => [c(k(A(R).t("delete")) + " " + k(
|
|
3915
|
+
default: N(() => [c(k(A(R).t("delete")) + " " + k(ln.value) + " " + k(A(R).t("items")), 1)]),
|
|
3915
3916
|
_: 1
|
|
3916
3917
|
}, 8, ["loading"])
|
|
3917
3918
|
]),
|
|
@@ -3923,19 +3924,19 @@ var Gr = {
|
|
|
3923
3924
|
_: 1
|
|
3924
3925
|
}, 8, ["modelValue"]),
|
|
3925
3926
|
l(ze, {
|
|
3926
|
-
modelValue:
|
|
3927
|
-
"onUpdate:modelValue": u[24] ||= (e) =>
|
|
3927
|
+
modelValue: An.value,
|
|
3928
|
+
"onUpdate:modelValue": u[24] ||= (e) => An.value = e,
|
|
3928
3929
|
"max-width": "1300"
|
|
3929
3930
|
}, {
|
|
3930
3931
|
default: N(() => [l(V, null, {
|
|
3931
3932
|
default: N(() => [l(Pe, null, {
|
|
3932
|
-
default: N(() => [c(k(g.customActions?.find((e) => e.component ===
|
|
3933
|
+
default: N(() => [c(k(g.customActions?.find((e) => e.component === jn.value)?.title || ""), 1)]),
|
|
3933
3934
|
_: 1
|
|
3934
3935
|
}), l(Ne, null, {
|
|
3935
|
-
default: N(() => [
|
|
3936
|
+
default: N(() => [jn.value ? (S(), r(D(jn.value), {
|
|
3936
3937
|
key: 0,
|
|
3937
|
-
item:
|
|
3938
|
-
onClose: u[23] ||= (e) =>
|
|
3938
|
+
item: Nn.value,
|
|
3939
|
+
onClose: u[23] ||= (e) => An.value = !1
|
|
3939
3940
|
}, null, 40, ["item"])) : i("", !0)]),
|
|
3940
3941
|
_: 1
|
|
3941
3942
|
})]),
|
|
@@ -3944,8 +3945,8 @@ var Gr = {
|
|
|
3944
3945
|
_: 1
|
|
3945
3946
|
}, 8, ["modelValue"]),
|
|
3946
3947
|
l(ze, {
|
|
3947
|
-
modelValue:
|
|
3948
|
-
"onUpdate:modelValue": u[27] ||= (e) =>
|
|
3948
|
+
modelValue: Ce.value,
|
|
3949
|
+
"onUpdate:modelValue": u[27] ||= (e) => Ce.value = e,
|
|
3949
3950
|
"max-width": "1600",
|
|
3950
3951
|
"content-class": "white-list-filter-dialog"
|
|
3951
3952
|
}, {
|
|
@@ -3957,7 +3958,7 @@ var Gr = {
|
|
|
3957
3958
|
variant: "text",
|
|
3958
3959
|
size: "small",
|
|
3959
3960
|
"aria-label": A(R).t("close"),
|
|
3960
|
-
onClick: u[25] ||= (e) =>
|
|
3961
|
+
onClick: u[25] ||= (e) => Ce.value = !1
|
|
3961
3962
|
}, null, 8, ["aria-label"])]),
|
|
3962
3963
|
_: 1
|
|
3963
3964
|
}),
|
|
@@ -3966,19 +3967,19 @@ var Gr = {
|
|
|
3966
3967
|
key: 0,
|
|
3967
3968
|
"model-value": B.value,
|
|
3968
3969
|
"onUpdate:modelValue": u[26] ||= (e) => B.value = e,
|
|
3969
|
-
onApply:
|
|
3970
|
+
onApply: fr
|
|
3970
3971
|
}, null, 40, ["model-value"])) : (S(), r(Ie, { key: 1 }, {
|
|
3971
3972
|
default: N(() => [l(Le, null, {
|
|
3972
|
-
default: N(() => [(S(!0), a(e, null, w(
|
|
3973
|
-
key:
|
|
3973
|
+
default: N(() => [(S(!0), a(e, null, w(Jt.value, (t) => (S(), r(Fe, {
|
|
3974
|
+
key: G(t),
|
|
3974
3975
|
cols: t.cols ? typeof t.cols == "number" ? t.cols : Number(t.cols) : 4,
|
|
3975
3976
|
md: t.cols ? typeof t.cols == "number" ? t.cols : Number(t.cols) : 4
|
|
3976
3977
|
}, {
|
|
3977
|
-
default: N(() => [t.hidden ? i("", !0) : (S(), a(e, { key: 0 }, [
|
|
3978
|
+
default: N(() => [t.hidden ? i("", !0) : (S(), a(e, { key: 0 }, [wn(t) ? (S(), r($e, {
|
|
3978
3979
|
key: 0,
|
|
3979
|
-
modelValue:
|
|
3980
|
-
"onUpdate:modelValue": (e) =>
|
|
3981
|
-
items:
|
|
3980
|
+
modelValue: we.value[G(t)],
|
|
3981
|
+
"onUpdate:modelValue": (e) => we.value[G(t)] = e,
|
|
3982
|
+
items: Sn(t),
|
|
3982
3983
|
"item-title": "label",
|
|
3983
3984
|
"item-value": "value",
|
|
3984
3985
|
density: "compact",
|
|
@@ -3990,12 +3991,12 @@ var Gr = {
|
|
|
3990
3991
|
"modelValue",
|
|
3991
3992
|
"onUpdate:modelValue",
|
|
3992
3993
|
"items"
|
|
3993
|
-
])) : i("", !0),
|
|
3994
|
+
])) : i("", !0), Xt(t) ? (S(), r(Yn, {
|
|
3994
3995
|
key: 1,
|
|
3995
|
-
modelValue: B.value[
|
|
3996
|
-
"onUpdate:modelValue": (e) => B.value[
|
|
3997
|
-
label:
|
|
3998
|
-
disabled:
|
|
3996
|
+
modelValue: B.value[G(t)],
|
|
3997
|
+
"onUpdate:modelValue": (e) => B.value[G(t)] = e,
|
|
3998
|
+
label: K(t),
|
|
3999
|
+
disabled: tn(t),
|
|
3999
4000
|
mode: t.dateMode || "single"
|
|
4000
4001
|
}, null, 8, [
|
|
4001
4002
|
"modelValue",
|
|
@@ -4003,19 +4004,19 @@ var Gr = {
|
|
|
4003
4004
|
"label",
|
|
4004
4005
|
"disabled",
|
|
4005
4006
|
"mode"
|
|
4006
|
-
])) :
|
|
4007
|
+
])) : Bt(t) ? (S(), r(Be, {
|
|
4007
4008
|
key: 2,
|
|
4008
|
-
modelValue: B.value[
|
|
4009
|
-
"onUpdate:modelValue": (e) => B.value[
|
|
4010
|
-
label:
|
|
4011
|
-
items:
|
|
4012
|
-
"item-title":
|
|
4013
|
-
"item-value":
|
|
4014
|
-
"return-object":
|
|
4015
|
-
multiple:
|
|
4016
|
-
chips:
|
|
4017
|
-
"closable-chips":
|
|
4018
|
-
disabled:
|
|
4009
|
+
modelValue: B.value[G(t)],
|
|
4010
|
+
"onUpdate:modelValue": (e) => B.value[G(t)] = e,
|
|
4011
|
+
label: K(t),
|
|
4012
|
+
items: Vt(t, B.value.value),
|
|
4013
|
+
"item-title": Wt(t),
|
|
4014
|
+
"item-value": Gt(t),
|
|
4015
|
+
"return-object": Kt(t),
|
|
4016
|
+
multiple: qt(t),
|
|
4017
|
+
chips: qt(t),
|
|
4018
|
+
"closable-chips": qt(t),
|
|
4019
|
+
disabled: tn(t),
|
|
4019
4020
|
clearable: "",
|
|
4020
4021
|
variant: "outlined",
|
|
4021
4022
|
"menu-props": { zIndex: 2e4 }
|
|
@@ -4031,24 +4032,24 @@ var Gr = {
|
|
|
4031
4032
|
"chips",
|
|
4032
4033
|
"closable-chips",
|
|
4033
4034
|
"disabled"
|
|
4034
|
-
])) :
|
|
4035
|
+
])) : Zt(t) ? (S(), r(Mn, {
|
|
4035
4036
|
key: 3,
|
|
4036
|
-
modelValue: B.value[
|
|
4037
|
-
"onUpdate:modelValue": (e) => B.value[
|
|
4038
|
-
label:
|
|
4039
|
-
disabled:
|
|
4037
|
+
modelValue: B.value[G(t)],
|
|
4038
|
+
"onUpdate:modelValue": (e) => B.value[G(t)] = e,
|
|
4039
|
+
label: K(t),
|
|
4040
|
+
disabled: tn(t)
|
|
4040
4041
|
}, null, 8, [
|
|
4041
4042
|
"modelValue",
|
|
4042
4043
|
"onUpdate:modelValue",
|
|
4043
4044
|
"label",
|
|
4044
4045
|
"disabled"
|
|
4045
|
-
])) :
|
|
4046
|
+
])) : Qt(t) ? (S(), r(et, {
|
|
4046
4047
|
key: 4,
|
|
4047
|
-
modelValue: B.value[
|
|
4048
|
-
"onUpdate:modelValue": (e) => B.value[
|
|
4049
|
-
label:
|
|
4048
|
+
modelValue: B.value[G(t)],
|
|
4049
|
+
"onUpdate:modelValue": (e) => B.value[G(t)] = e,
|
|
4050
|
+
label: K(t),
|
|
4050
4051
|
variant: "outlined",
|
|
4051
|
-
disabled:
|
|
4052
|
+
disabled: tn(t),
|
|
4052
4053
|
dir: t.dir,
|
|
4053
4054
|
"auto-grow": "",
|
|
4054
4055
|
rows: "3"
|
|
@@ -4058,11 +4059,11 @@ var Gr = {
|
|
|
4058
4059
|
"label",
|
|
4059
4060
|
"disabled",
|
|
4060
4061
|
"dir"
|
|
4061
|
-
])) :
|
|
4062
|
+
])) : $t(t) ? (S(), r(er, {
|
|
4062
4063
|
key: 5,
|
|
4063
|
-
modelValue: B.value[
|
|
4064
|
-
"onUpdate:modelValue": (e) => B.value[
|
|
4065
|
-
label:
|
|
4064
|
+
modelValue: B.value[G(t)],
|
|
4065
|
+
"onUpdate:modelValue": (e) => B.value[G(t)] = e,
|
|
4066
|
+
label: K(t),
|
|
4066
4067
|
type: "boolean",
|
|
4067
4068
|
activeColor: "#3bd32a",
|
|
4068
4069
|
inactiveColor: "#d32a2a",
|
|
@@ -4080,14 +4081,14 @@ var Gr = {
|
|
|
4080
4081
|
"onUpdate:modelValue",
|
|
4081
4082
|
"label",
|
|
4082
4083
|
"options"
|
|
4083
|
-
])) : (S(), r(
|
|
4084
|
+
])) : (S(), r(Je, {
|
|
4084
4085
|
key: 6,
|
|
4085
|
-
modelValue: B.value[
|
|
4086
|
-
"onUpdate:modelValue": (e) => B.value[
|
|
4087
|
-
label:
|
|
4086
|
+
modelValue: B.value[G(t)],
|
|
4087
|
+
"onUpdate:modelValue": (e) => B.value[G(t)] = e,
|
|
4088
|
+
label: K(t),
|
|
4088
4089
|
variant: "outlined",
|
|
4089
|
-
disabled:
|
|
4090
|
-
type:
|
|
4090
|
+
disabled: tn(t),
|
|
4091
|
+
type: en(t),
|
|
4091
4092
|
dir: t.dir
|
|
4092
4093
|
}, null, 8, [
|
|
4093
4094
|
"modelValue",
|
|
@@ -4111,14 +4112,14 @@ var Gr = {
|
|
|
4111
4112
|
l(H, {
|
|
4112
4113
|
color: "grey",
|
|
4113
4114
|
variant: "tonal",
|
|
4114
|
-
onClick:
|
|
4115
|
+
onClick: dr
|
|
4115
4116
|
}, {
|
|
4116
4117
|
default: N(() => [c(k(A(R).t("resetFilters")), 1)]),
|
|
4117
4118
|
_: 1
|
|
4118
4119
|
}),
|
|
4119
4120
|
l(H, {
|
|
4120
4121
|
color: "primary",
|
|
4121
|
-
onClick:
|
|
4122
|
+
onClick: ur
|
|
4122
4123
|
}, {
|
|
4123
4124
|
default: N(() => [c(k(A(R).t("applyFilters")), 1)]),
|
|
4124
4125
|
_: 1
|
|
@@ -4132,17 +4133,17 @@ var Gr = {
|
|
|
4132
4133
|
_: 1
|
|
4133
4134
|
}, 8, ["modelValue"]),
|
|
4134
4135
|
l(ze, {
|
|
4135
|
-
modelValue:
|
|
4136
|
-
"onUpdate:modelValue": u[31] ||= (e) =>
|
|
4136
|
+
modelValue: Pn.value,
|
|
4137
|
+
"onUpdate:modelValue": u[31] ||= (e) => Pn.value = e,
|
|
4137
4138
|
"max-width": "800"
|
|
4138
4139
|
}, {
|
|
4139
4140
|
default: N(() => [l(V, null, {
|
|
4140
4141
|
default: N(() => [
|
|
4141
4142
|
l(Pe, { class: "d-flex justify-space-between align-center" }, {
|
|
4142
|
-
default: N(() => [o("span", null, k(
|
|
4143
|
+
default: N(() => [o("span", null, k(In.value), 1), l(H, {
|
|
4143
4144
|
icon: "",
|
|
4144
4145
|
variant: "text",
|
|
4145
|
-
onClick: u[28] ||= (e) =>
|
|
4146
|
+
onClick: u[28] ||= (e) => Pn.value = !1
|
|
4146
4147
|
}, {
|
|
4147
4148
|
default: N(() => [l(A(ke), { size: 20 })]),
|
|
4148
4149
|
_: 1
|
|
@@ -4150,8 +4151,8 @@ var Gr = {
|
|
|
4150
4151
|
_: 1
|
|
4151
4152
|
}),
|
|
4152
4153
|
l(Ne, null, {
|
|
4153
|
-
default: N(() => [l(
|
|
4154
|
-
"model-value":
|
|
4154
|
+
default: N(() => [l(et, {
|
|
4155
|
+
"model-value": Fn.value,
|
|
4155
4156
|
readonly: "",
|
|
4156
4157
|
"auto-grow": "",
|
|
4157
4158
|
variant: "outlined",
|
|
@@ -4165,7 +4166,7 @@ var Gr = {
|
|
|
4165
4166
|
l(Re),
|
|
4166
4167
|
l(H, {
|
|
4167
4168
|
color: "primary",
|
|
4168
|
-
onClick: u[29] ||= (e) =>
|
|
4169
|
+
onClick: u[29] ||= (e) => cr(Fn.value)
|
|
4169
4170
|
}, {
|
|
4170
4171
|
default: N(() => [l(A(me), {
|
|
4171
4172
|
size: 18,
|
|
@@ -4175,7 +4176,7 @@ var Gr = {
|
|
|
4175
4176
|
}),
|
|
4176
4177
|
l(H, {
|
|
4177
4178
|
color: "success",
|
|
4178
|
-
onClick:
|
|
4179
|
+
onClick: lr
|
|
4179
4180
|
}, {
|
|
4180
4181
|
default: N(() => [l(A(me), {
|
|
4181
4182
|
size: 18,
|
|
@@ -4185,7 +4186,7 @@ var Gr = {
|
|
|
4185
4186
|
}),
|
|
4186
4187
|
l(H, {
|
|
4187
4188
|
color: "grey",
|
|
4188
|
-
onClick: u[30] ||= (e) =>
|
|
4189
|
+
onClick: u[30] ||= (e) => Pn.value = !1
|
|
4189
4190
|
}, {
|
|
4190
4191
|
default: N(() => [c(k(A(R).t("closeDialog")), 1)]),
|
|
4191
4192
|
_: 1
|
|
@@ -4198,7 +4199,7 @@ var Gr = {
|
|
|
4198
4199
|
})]),
|
|
4199
4200
|
_: 1
|
|
4200
4201
|
}, 8, ["modelValue"]),
|
|
4201
|
-
I.value ? (S(), r(
|
|
4202
|
+
I.value ? (S(), r(ft, {
|
|
4202
4203
|
key: 4,
|
|
4203
4204
|
modelValue: I.value,
|
|
4204
4205
|
"onUpdate:modelValue": u[33] ||= (e) => I.value = e,
|
|
@@ -4287,7 +4288,7 @@ var Gr = {
|
|
|
4287
4288
|
}, d = (e) => e.split("\n").map((e, t) => !e.trim() || e.match(/^\d+\s*-\s/) ? e : `${n.startNumber + t} - ${e}`).join("\n"), f = () => {
|
|
4288
4289
|
r("change", i.value);
|
|
4289
4290
|
};
|
|
4290
|
-
return (t, n) => (S(), a("div", Mi, [l(
|
|
4291
|
+
return (t, n) => (S(), a("div", Mi, [l(et, {
|
|
4291
4292
|
modelValue: i.value,
|
|
4292
4293
|
"onUpdate:modelValue": n[0] ||= (e) => i.value = e,
|
|
4293
4294
|
label: e.label,
|
|
@@ -4632,7 +4633,7 @@ var Gr = {
|
|
|
4632
4633
|
onClick: j,
|
|
4633
4634
|
title: "Reset Zoom"
|
|
4634
4635
|
}, {
|
|
4635
|
-
default: N(() => [l(A(
|
|
4636
|
+
default: N(() => [l(A(B), {
|
|
4636
4637
|
size: "16",
|
|
4637
4638
|
color: "white"
|
|
4638
4639
|
})]),
|
|
@@ -4732,7 +4733,7 @@ var Gr = {
|
|
|
4732
4733
|
o("div", {
|
|
4733
4734
|
class: "pdf-viewer-content",
|
|
4734
4735
|
style: y(w.value)
|
|
4735
|
-
}, [f.value ? (S(), a("div", Wi, [l(
|
|
4736
|
+
}, [f.value ? (S(), a("div", Wi, [l(lt, {
|
|
4736
4737
|
indeterminate: "",
|
|
4737
4738
|
color: "primary",
|
|
4738
4739
|
size: "64"
|
|
@@ -4791,7 +4792,7 @@ var Gr = {
|
|
|
4791
4792
|
})]),
|
|
4792
4793
|
_: 1
|
|
4793
4794
|
}),
|
|
4794
|
-
l(
|
|
4795
|
+
l(ot),
|
|
4795
4796
|
l(Ne, null, {
|
|
4796
4797
|
default: N(() => [T(e.$slots, "default")]),
|
|
4797
4798
|
_: 3
|
|
@@ -4814,7 +4815,7 @@ var Gr = {
|
|
|
4814
4815
|
}), T(e.$slots, "action")])]),
|
|
4815
4816
|
_: 3
|
|
4816
4817
|
}),
|
|
4817
|
-
l(
|
|
4818
|
+
l(ot),
|
|
4818
4819
|
l(Ne, null, {
|
|
4819
4820
|
default: N(() => [T(e.$slots, "default")]),
|
|
4820
4821
|
_: 3
|
|
@@ -4871,7 +4872,7 @@ var Gr = {
|
|
|
4871
4872
|
}, m = (e) => {
|
|
4872
4873
|
u.value = !1, l.value = i(o.modelValue), c("blur", e);
|
|
4873
4874
|
};
|
|
4874
|
-
return (e, t) => (S(), r(
|
|
4875
|
+
return (e, t) => (S(), r(Je, {
|
|
4875
4876
|
"model-value": l.value,
|
|
4876
4877
|
label: o.label,
|
|
4877
4878
|
placeholder: o.placeholder,
|
|
@@ -4951,7 +4952,7 @@ var Gr = {
|
|
|
4951
4952
|
variant: "text",
|
|
4952
4953
|
size: "small",
|
|
4953
4954
|
onClick: n[0] ||= (t) => s("update:modelValue", !e.modelValue)
|
|
4954
|
-
})) : i("", !0)])]), l(
|
|
4955
|
+
})) : i("", !0)])]), l(pt, null, {
|
|
4955
4956
|
default: N(() => [ae(o("div", fa, [o("div", pa, [T(t.$slots, "default", {}, void 0, !0)]), o("div", ma, [T(t.$slots, "actions", {}, () => [l(H, {
|
|
4956
4957
|
variant: "text",
|
|
4957
4958
|
onClick: n[1] ||= (e) => s("reset")
|
|
@@ -5097,8 +5098,8 @@ var Gr = {
|
|
|
5097
5098
|
class: "app-file-preview",
|
|
5098
5099
|
lines: "two"
|
|
5099
5100
|
}, {
|
|
5100
|
-
default: N(() => [(S(!0), a(e, null, w(t.files, (e) => (S(), r(
|
|
5101
|
-
prepend: N(() => [l(
|
|
5101
|
+
default: N(() => [(S(!0), a(e, null, w(t.files, (e) => (S(), r(We, { key: e.id }, {
|
|
5102
|
+
prepend: N(() => [l(mt, { color: "lightprimary" }, {
|
|
5102
5103
|
default: N(() => [l(He, {
|
|
5103
5104
|
icon: "$file",
|
|
5104
5105
|
color: "primary"
|
|
@@ -5122,7 +5123,7 @@ var Gr = {
|
|
|
5122
5123
|
default: N(() => [l(Ke, null, {
|
|
5123
5124
|
default: N(() => [c(k(e.name), 1)]),
|
|
5124
5125
|
_: 2
|
|
5125
|
-
}, 1024), l(
|
|
5126
|
+
}, 1024), l(Ge, null, {
|
|
5126
5127
|
default: N(() => [c(k([e.type, e.size].filter(Boolean).join(" • ")), 1)]),
|
|
5127
5128
|
_: 2
|
|
5128
5129
|
}, 1024)]),
|
|
@@ -5158,7 +5159,7 @@ var Gr = {
|
|
|
5158
5159
|
],
|
|
5159
5160
|
setup(t, { emit: s }) {
|
|
5160
5161
|
let u = t, d = s, f = J(), p = n(() => u.title ?? f.t("notifications"));
|
|
5161
|
-
return (n, s) => (S(), r(
|
|
5162
|
+
return (n, s) => (S(), r(st, {
|
|
5162
5163
|
"model-value": t.modelValue,
|
|
5163
5164
|
"close-on-content-click": !1,
|
|
5164
5165
|
location: "bottom start",
|
|
@@ -5180,12 +5181,12 @@ var Gr = {
|
|
|
5180
5181
|
"max-height": "360",
|
|
5181
5182
|
class: "overflow-y-auto"
|
|
5182
5183
|
}, {
|
|
5183
|
-
default: N(() => [(S(!0), a(e, null, w(t.notifications, (e) => (S(), r(
|
|
5184
|
+
default: N(() => [(S(!0), a(e, null, w(t.notifications, (e) => (S(), r(We, {
|
|
5184
5185
|
key: e.id,
|
|
5185
5186
|
class: _({ unread: !e.read }),
|
|
5186
5187
|
onClick: (t) => d("select", e)
|
|
5187
5188
|
}, {
|
|
5188
|
-
prepend: N(() => [l(
|
|
5189
|
+
prepend: N(() => [l(mt, {
|
|
5189
5190
|
size: "34",
|
|
5190
5191
|
color: "lightprimary"
|
|
5191
5192
|
}, {
|
|
@@ -5200,12 +5201,12 @@ var Gr = {
|
|
|
5200
5201
|
default: N(() => [l(Ke, null, {
|
|
5201
5202
|
default: N(() => [c(k(e.title), 1)]),
|
|
5202
5203
|
_: 2
|
|
5203
|
-
}, 1024), l(
|
|
5204
|
+
}, 1024), l(Ge, null, {
|
|
5204
5205
|
default: N(() => [c(k(e.description), 1)]),
|
|
5205
5206
|
_: 2
|
|
5206
5207
|
}, 1024)]),
|
|
5207
5208
|
_: 2
|
|
5208
|
-
}, 1032, ["class", "onClick"]))), 128)), t.notifications.length ? i("", !0) : T(n.$slots, "empty", {}, () => [l(
|
|
5209
|
+
}, 1032, ["class", "onClick"]))), 128)), t.notifications.length ? i("", !0) : T(n.$slots, "empty", {}, () => [l(We, { title: A(f).t("noNotifications") }, null, 8, ["title"])], !0, 0)]),
|
|
5209
5210
|
_: 3
|
|
5210
5211
|
})]),
|
|
5211
5212
|
_: 3
|
|
@@ -5509,7 +5510,7 @@ var Gr = {
|
|
|
5509
5510
|
}, () => [t.modelValue > s + 1 ? (S(), r(A(ue), {
|
|
5510
5511
|
key: 0,
|
|
5511
5512
|
size: 16
|
|
5512
|
-
})) : t.modelValue === s + 1 ? (S(), r(A(
|
|
5513
|
+
})) : t.modelValue === s + 1 ? (S(), r(A(xe), {
|
|
5513
5514
|
key: 1,
|
|
5514
5515
|
size: 16
|
|
5515
5516
|
})) : (S(), r(A(pe), {
|
|
@@ -5606,7 +5607,7 @@ function Za(e) {
|
|
|
5606
5607
|
}
|
|
5607
5608
|
//#endregion
|
|
5608
5609
|
//#region src/stores/customizer.ts
|
|
5609
|
-
var Qa =
|
|
5610
|
+
var Qa = gt("customizer", {
|
|
5610
5611
|
state: () => ({
|
|
5611
5612
|
Sidebar_drawer: !0,
|
|
5612
5613
|
Customizer_drawer: !1,
|
|
@@ -5724,7 +5725,7 @@ var Qa = _t("customizer", {
|
|
|
5724
5725
|
"aria-busy": "true",
|
|
5725
5726
|
"aria-label": d.value,
|
|
5726
5727
|
dir: A(u).direction.value
|
|
5727
|
-
}, [o("div", eo, [e.animationLink ? (S(), r(A(
|
|
5728
|
+
}, [o("div", eo, [e.animationLink ? (S(), r(A(ht), {
|
|
5728
5729
|
key: 0,
|
|
5729
5730
|
"animation-link": e.animationLink,
|
|
5730
5731
|
loop: !0,
|
|
@@ -6145,8 +6146,8 @@ var Qa = _t("customizer", {
|
|
|
6145
6146
|
xml: It,
|
|
6146
6147
|
yaml: Lt
|
|
6147
6148
|
}).forEach(([e, t]) => {
|
|
6148
|
-
|
|
6149
|
-
}),
|
|
6149
|
+
vt.getLanguage(e) || vt.registerLanguage(e, t);
|
|
6150
|
+
}), vt.registerAliases(["js"], { languageName: "javascript" }), vt.registerAliases(["ts"], { languageName: "typescript" });
|
|
6150
6151
|
let r = {
|
|
6151
6152
|
"c++": "cpp",
|
|
6152
6153
|
"c#": "csharp",
|
|
@@ -6164,11 +6165,11 @@ var Qa = _t("customizer", {
|
|
|
6164
6165
|
yml: "yaml"
|
|
6165
6166
|
}, i = (e) => r[e.trim().toLowerCase()] || e.trim().toLowerCase(), o = (e, t) => {
|
|
6166
6167
|
let n = i(t);
|
|
6167
|
-
return n &&
|
|
6168
|
+
return n && vt.getLanguage(n) ? vt.highlight(e, {
|
|
6168
6169
|
language: n,
|
|
6169
6170
|
ignoreIllegals: !0
|
|
6170
|
-
}).value :
|
|
6171
|
-
}, s = new
|
|
6171
|
+
}).value : vt.highlightAuto(e).value;
|
|
6172
|
+
}, s = new _t({
|
|
6172
6173
|
html: !1,
|
|
6173
6174
|
linkify: !0,
|
|
6174
6175
|
breaks: !0,
|
|
@@ -6231,7 +6232,7 @@ var Qa = _t("customizer", {
|
|
|
6231
6232
|
key: 0,
|
|
6232
6233
|
size: 18
|
|
6233
6234
|
})) : (S(), a("strong", qo, "AI"))])], !0), o("div", Jo, [
|
|
6234
|
-
e.message.role === "user" && d.value ? (S(), a("div", Yo, [l(
|
|
6235
|
+
e.message.role === "user" && d.value ? (S(), a("div", Yo, [l(et, {
|
|
6235
6236
|
modelValue: f.value,
|
|
6236
6237
|
"onUpdate:modelValue": n[0] ||= (e) => f.value = e,
|
|
6237
6238
|
rows: "2",
|
|
@@ -6281,7 +6282,7 @@ var Qa = _t("customizer", {
|
|
|
6281
6282
|
class: "ui-chat-message__action",
|
|
6282
6283
|
size: "x-small",
|
|
6283
6284
|
variant: "text",
|
|
6284
|
-
icon: A(
|
|
6285
|
+
icon: A(xe),
|
|
6285
6286
|
"aria-label": p("edit", "Edit message"),
|
|
6286
6287
|
disabled: e.editingDisabled,
|
|
6287
6288
|
onClick: m
|
|
@@ -6402,7 +6403,7 @@ var Qa = _t("customizer", {
|
|
|
6402
6403
|
t.mentionCategory && !t.mentionLoading && !m.value.length ? (S(), a("div", as, k(t.emptyLabel), 1)) : i("", !0)
|
|
6403
6404
|
])) : i("", !0),
|
|
6404
6405
|
o("span", os, [T(n.$slots, "leading", {}, () => [s[4] ||= o("strong", { "aria-hidden": "true" }, "@", -1)], !0)]),
|
|
6405
|
-
l(
|
|
6406
|
+
l(et, {
|
|
6406
6407
|
ref_key: "inputRef",
|
|
6407
6408
|
ref: p,
|
|
6408
6409
|
"model-value": t.modelValue,
|
|
@@ -6429,7 +6430,7 @@ var Qa = _t("customizer", {
|
|
|
6429
6430
|
onClick: s[2] ||= (e) => d("stop")
|
|
6430
6431
|
}, null, 8, ["icon", "aria-label"])) : (S(), r(H, {
|
|
6431
6432
|
key: 2,
|
|
6432
|
-
icon: A(
|
|
6433
|
+
icon: A(we),
|
|
6433
6434
|
color: "primary",
|
|
6434
6435
|
disabled: !h.value,
|
|
6435
6436
|
"aria-label": t.sendLabel,
|
|
@@ -6469,7 +6470,7 @@ var Qa = _t("customizer", {
|
|
|
6469
6470
|
class: _(["ui-chat-prompt-nav__item", { active: t.activeIndex === n }]),
|
|
6470
6471
|
"aria-label": i(e.content, t.previewLength),
|
|
6471
6472
|
onClick: (e) => r("select", n)
|
|
6472
|
-
}, [l(
|
|
6473
|
+
}, [l(qe, {
|
|
6473
6474
|
location: "start",
|
|
6474
6475
|
"open-delay": 250,
|
|
6475
6476
|
"close-delay": 80,
|
|
@@ -6491,7 +6492,7 @@ var Qa = _t("customizer", {
|
|
|
6491
6492
|
},
|
|
6492
6493
|
setup(e) {
|
|
6493
6494
|
let t = e;
|
|
6494
|
-
return (n, a) => (S(), r(
|
|
6495
|
+
return (n, a) => (S(), r(We, {
|
|
6495
6496
|
to: e.item.type === "external" ? "" : e.item.to,
|
|
6496
6497
|
href: e.item.type === "external" ? e.item.to : "",
|
|
6497
6498
|
rounded: "",
|
|
@@ -6503,7 +6504,7 @@ var Qa = _t("customizer", {
|
|
|
6503
6504
|
default: N(() => [l(Ke, null, {
|
|
6504
6505
|
default: N(() => [c(k(e.item.title), 1)]),
|
|
6505
6506
|
_: 1
|
|
6506
|
-
}), e.item.subCaption ? (S(), r(
|
|
6507
|
+
}), e.item.subCaption ? (S(), r(Ge, {
|
|
6507
6508
|
key: 0,
|
|
6508
6509
|
class: "text-caption mt-n1 hide-menu"
|
|
6509
6510
|
}, {
|
|
@@ -6554,8 +6555,8 @@ var Qa = _t("customizer", {
|
|
|
6554
6555
|
let n = t;
|
|
6555
6556
|
return (o, s) => {
|
|
6556
6557
|
let u = E("NavCollapse", !0);
|
|
6557
|
-
return S(), r(
|
|
6558
|
-
activator: N(({ props: e }) => [l(
|
|
6558
|
+
return S(), r(U, { "no-action": "" }, {
|
|
6559
|
+
activator: N(({ props: e }) => [l(We, h(e, {
|
|
6559
6560
|
value: t.item.title,
|
|
6560
6561
|
rounded: "",
|
|
6561
6562
|
class: "mb-1",
|
|
@@ -6568,7 +6569,7 @@ var Qa = _t("customizer", {
|
|
|
6568
6569
|
default: N(() => [l(Ke, { class: "ml-auto" }, {
|
|
6569
6570
|
default: N(() => [c(k(t.item.title), 1)]),
|
|
6570
6571
|
_: 1
|
|
6571
|
-
}), t.item.subCaption ? (S(), r(
|
|
6572
|
+
}), t.item.subCaption ? (S(), r(Ge, {
|
|
6572
6573
|
key: 0,
|
|
6573
6574
|
class: "text-caption mt-n1 hide-menu"
|
|
6574
6575
|
}, {
|
|
@@ -6595,7 +6596,7 @@ var Qa = _t("customizer", {
|
|
|
6595
6596
|
props: { item: Object },
|
|
6596
6597
|
setup(e) {
|
|
6597
6598
|
let t = e;
|
|
6598
|
-
return (e, n) => (S(), r(
|
|
6599
|
+
return (e, n) => (S(), r(W, {
|
|
6599
6600
|
color: "darkText",
|
|
6600
6601
|
class: "smallCap"
|
|
6601
6602
|
}, {
|
|
@@ -6641,7 +6642,7 @@ var Qa = _t("customizer", {
|
|
|
6641
6642
|
default: N(() => [(S(!0), a(e, null, w(f.value, (t, n) => (S(), a(e, { key: n }, [t.header ? (S(), r(hs, {
|
|
6642
6643
|
key: 0,
|
|
6643
6644
|
item: t
|
|
6644
|
-
}, null, 8, ["item"])) : t.divider ? (S(), r(
|
|
6645
|
+
}, null, 8, ["item"])) : t.divider ? (S(), r(ot, {
|
|
6645
6646
|
key: 1,
|
|
6646
6647
|
class: "my-3"
|
|
6647
6648
|
})) : t.children ? (S(), r(ms, {
|
|
@@ -6736,7 +6737,7 @@ var Qa = _t("customizer", {
|
|
|
6736
6737
|
"href",
|
|
6737
6738
|
"target",
|
|
6738
6739
|
"disabled"
|
|
6739
|
-
])) : t.children?.length ? (S(), r(
|
|
6740
|
+
])) : t.children?.length ? (S(), r(st, {
|
|
6740
6741
|
key: 1,
|
|
6741
6742
|
"offset-y": ""
|
|
6742
6743
|
}, {
|
|
@@ -6762,7 +6763,7 @@ var Qa = _t("customizer", {
|
|
|
6762
6763
|
_: 2
|
|
6763
6764
|
}, 1040, ["disabled"])]),
|
|
6764
6765
|
default: N(() => [l(Ue, null, {
|
|
6765
|
-
default: N(() => [(S(!0), a(e, null, w(t.children, (e, t) => (S(), r(
|
|
6766
|
+
default: N(() => [(S(!0), a(e, null, w(t.children, (e, t) => (S(), r(We, {
|
|
6766
6767
|
key: t,
|
|
6767
6768
|
to: e.type === "external" ? void 0 : e.to,
|
|
6768
6769
|
href: e.type === "external" ? e.to : void 0,
|
|
@@ -6787,11 +6788,11 @@ var Qa = _t("customizer", {
|
|
|
6787
6788
|
_: 2
|
|
6788
6789
|
}, 1024)]),
|
|
6789
6790
|
_: 2
|
|
6790
|
-
}, 1024)) : t.divider ? (S(), r(
|
|
6791
|
+
}, 1024)) : t.divider ? (S(), r(ot, {
|
|
6791
6792
|
key: 2,
|
|
6792
6793
|
vertical: "",
|
|
6793
6794
|
class: "mx-2"
|
|
6794
|
-
})) : i("", !0)], 64))), 128)), g.value.length ? (S(), r(
|
|
6795
|
+
})) : i("", !0)], 64))), 128)), g.value.length ? (S(), r(st, {
|
|
6795
6796
|
key: 0,
|
|
6796
6797
|
"offset-y": ""
|
|
6797
6798
|
}, {
|
|
@@ -6822,10 +6823,10 @@ var Qa = _t("customizer", {
|
|
|
6822
6823
|
"min-width": "230",
|
|
6823
6824
|
class: "header-menu-overflow-list"
|
|
6824
6825
|
}, {
|
|
6825
|
-
default: N(() => [(S(!0), a(e, null, w(g.value, (t, n) => (S(), a(e, { key: n }, [t.children?.length ? (S(), a(e, { key: 1 }, [l(
|
|
6826
|
+
default: N(() => [(S(!0), a(e, null, w(g.value, (t, n) => (S(), a(e, { key: n }, [t.children?.length ? (S(), a(e, { key: 1 }, [l(W, null, {
|
|
6826
6827
|
default: N(() => [c(k(t.title), 1)]),
|
|
6827
6828
|
_: 2
|
|
6828
|
-
}, 1024), (S(!0), a(e, null, w(t.children, (e, t) => (S(), r(
|
|
6829
|
+
}, 1024), (S(!0), a(e, null, w(t.children, (e, t) => (S(), r(We, {
|
|
6829
6830
|
key: t,
|
|
6830
6831
|
to: e.type === "external" ? void 0 : e.to,
|
|
6831
6832
|
href: e.type === "external" ? e.to : void 0,
|
|
@@ -6844,7 +6845,7 @@ var Qa = _t("customizer", {
|
|
|
6844
6845
|
"disabled",
|
|
6845
6846
|
"active",
|
|
6846
6847
|
"title"
|
|
6847
|
-
]))), 128))], 64)) : (S(), r(
|
|
6848
|
+
]))), 128))], 64)) : (S(), r(We, {
|
|
6848
6849
|
key: 0,
|
|
6849
6850
|
to: t.type === "external" ? void 0 : t.to,
|
|
6850
6851
|
href: t.type === "external" ? t.to : void 0,
|
|
@@ -6953,7 +6954,7 @@ var Qa = _t("customizer", {
|
|
|
6953
6954
|
"aria-label": "Open theme customizer",
|
|
6954
6955
|
onClick: o[2] ||= P((e) => t.onToggleCustomizer && t.onToggleCustomizer(), ["stop"])
|
|
6955
6956
|
}, {
|
|
6956
|
-
default: N(() => [l(A(
|
|
6957
|
+
default: N(() => [l(A(z), {
|
|
6957
6958
|
size: "20",
|
|
6958
6959
|
"stroke-width": "1.5"
|
|
6959
6960
|
})]),
|
|
@@ -7666,7 +7667,7 @@ var Qa = _t("customizer", {
|
|
|
7666
7667
|
class: "custom-font",
|
|
7667
7668
|
"onUpdate:modelValue": g
|
|
7668
7669
|
}, {
|
|
7669
|
-
default: N(() => [(S(!0), a(e, null, w(t.fonts, (e) => (S(), r(
|
|
7670
|
+
default: N(() => [(S(!0), a(e, null, w(t.fonts, (e) => (S(), r(ut, {
|
|
7670
7671
|
key: e,
|
|
7671
7672
|
label: t.fontLabel(e),
|
|
7672
7673
|
value: e,
|
|
@@ -7703,7 +7704,7 @@ var Qa = _t("customizer", {
|
|
|
7703
7704
|
__name: "AppCustomizer",
|
|
7704
7705
|
emits: ["save", "suggest-language-change"],
|
|
7705
7706
|
setup(e, { emit: t }) {
|
|
7706
|
-
let i = t, a = Qa(), o = J(), { width: s } =
|
|
7707
|
+
let i = t, a = Qa(), o = J(), { width: s } = Jt(), c = n(() => Math.min(s.value, 400)), l = [
|
|
7707
7708
|
{
|
|
7708
7709
|
themeName: "ModernTheme",
|
|
7709
7710
|
primary: "#6366f1",
|
|
@@ -7875,7 +7876,7 @@ var Qa = _t("customizer", {
|
|
|
7875
7876
|
sidebar: {}
|
|
7876
7877
|
},
|
|
7877
7878
|
setup(e) {
|
|
7878
|
-
return (t, n) => (S(), r(
|
|
7879
|
+
return (t, n) => (S(), r(Yt, null, {
|
|
7879
7880
|
default: N(() => [
|
|
7880
7881
|
l(xs, h(e.header, { class: "app-header" }), {
|
|
7881
7882
|
notifications: N(() => [T(t.$slots, "notifications", {}, void 0, !0)]),
|
|
@@ -7898,7 +7899,7 @@ var Qa = _t("customizer", {
|
|
|
7898
7899
|
"miniSidebar",
|
|
7899
7900
|
"onUpdate:sidebarDrawer"
|
|
7900
7901
|
]),
|
|
7901
|
-
l(
|
|
7902
|
+
l(Xt, null, {
|
|
7902
7903
|
default: N(() => [o("div", Cc, [T(t.$slots, "default", {}, void 0, !0)])]),
|
|
7903
7904
|
_: 3
|
|
7904
7905
|
})
|
|
@@ -8315,7 +8316,7 @@ function Uc(e, t) {
|
|
|
8315
8316
|
r.enableLogging, a.onInitError?.(e);
|
|
8316
8317
|
}
|
|
8317
8318
|
};
|
|
8318
|
-
return a.onAuthSuccess && (s.onAuthSuccess = a.onAuthSuccess), a.onAuthError && (s.onAuthError = a.onAuthError), e.use(
|
|
8319
|
+
return a.onAuthSuccess && (s.onAuthSuccess = a.onAuthSuccess), a.onAuthError && (s.onAuthError = a.onAuthError), e.use(Zt, s);
|
|
8319
8320
|
}
|
|
8320
8321
|
//#endregion
|
|
8321
8322
|
//#region src/utils/appInitializer/AuthModeInitializer.ts
|
|
@@ -8498,7 +8499,7 @@ function tl(e, t) {
|
|
|
8498
8499
|
}
|
|
8499
8500
|
function nl(e = {}) {
|
|
8500
8501
|
let t = Object.fromEntries(Object.entries({
|
|
8501
|
-
...
|
|
8502
|
+
...K,
|
|
8502
8503
|
...e.overrides
|
|
8503
8504
|
}).map(([e, t]) => [e, el(t)]));
|
|
8504
8505
|
for (let [e, n] of Object.entries(t)) tl(e, n);
|
|
@@ -8511,4 +8512,4 @@ function rl(e, t = {}) {
|
|
|
8511
8512
|
}
|
|
8512
8513
|
var il = { install: rl }, al = { install: rl };
|
|
8513
8514
|
//#endregion
|
|
8514
|
-
export { Jc as AppBootstrap, Sa as AppConfirmAction, Sc as AppCustomizer, Ls as AppCustomizerControls, xc as AppCustomizerPanel, Bs as AppCustomizerSubmit, ya as AppEmptyState, Ca as AppFilePreview, ha as AppFilterBar, Ea as AppFormSection, xs as AppHeader, bs as AppHeaderMenu, wc as AppLayout, Oa as AppNotificationCenter, sa as AppPageHeader, vs as AppSidebar, xa as AppStatusBadge, Ha as AppStepper, Wc as AuthModeInitializer, gn as BaseBreadcrumb, yn as BaseIcon, Zc as BooleanEnum, Qc as BooleanEnumOptions, bn as ConfirmDialog, jn as CustomAutocomplete, ji as CustomDataTable, ji as CustomDataTableV2, wr as DateConverter, Ni as DescriptionInput, kc as DigitLimit, Fi as DownloadButton, Fc as GreetingUtils, qc as InitializerModeInitializer, Kc as JwtInitializer, Gc as KeycloakInitializer, no as Loading, Mn as MoneyInput, Ic as NationalCodeValidator, Qi as PdfViewer, Co as PermissionGuard, ka as RemoteAutocomplete, Yn as ShamsiDatePicker,
|
|
8515
|
+
export { Jc as AppBootstrap, Sa as AppConfirmAction, Sc as AppCustomizer, Ls as AppCustomizerControls, xc as AppCustomizerPanel, Bs as AppCustomizerSubmit, ya as AppEmptyState, Ca as AppFilePreview, ha as AppFilterBar, Ea as AppFormSection, xs as AppHeader, bs as AppHeaderMenu, wc as AppLayout, Oa as AppNotificationCenter, sa as AppPageHeader, vs as AppSidebar, xa as AppStatusBadge, Ha as AppStepper, Wc as AuthModeInitializer, gn as BaseBreadcrumb, yn as BaseIcon, Zc as BooleanEnum, Qc as BooleanEnumOptions, bn as ConfirmDialog, jn as CustomAutocomplete, ji as CustomDataTable, ji as CustomDataTableV2, wr as DateConverter, Ni as DescriptionInput, kc as DigitLimit, Fi as DownloadButton, Fc as GreetingUtils, qc as InitializerModeInitializer, Kc as JwtInitializer, Gc as KeycloakInitializer, no as Loading, Mn as MoneyInput, Ic as NationalCodeValidator, Qi as PdfViewer, Co as PermissionGuard, ka as RemoteAutocomplete, Yn as ShamsiDatePicker, er as ToggleSwitch, La as UiActionBar, xo as UiAsyncState, cs as UiChatComposer, Go as UiChatMarkdown, Qo as UiChatMessage, fs as UiChatPromptNavigator, Uo as UiChatShell, $i as UiChildCard, lo as UiEmptyState, mo as UiErrorState, Mo as UiField, To as UiFieldMessage, Ro as UiFormActions, il as UiKitPlugin, oo as UiLoadingState, Fa as UiObjectDetails, ta as UiParentCard, _o as UiPermissionDenied, Pa as UiReadonlyField, na as VPriceTextField, Yc as bootstrapApp, Rc as configureAuth, ir as configureAxiosInstance, an as createUiKit, nl as createUiKitThemes, Ua as customizerPreferenceDefaults, al as default, K as defaultThemes, zc as fetchWrapper, Tr as formatNumberWithCommas, Er as formatPrice, ar as getAxiosInstance, bo as hasUiAsyncData, rl as install, yo as isUiAsyncError, vo as isUiAsyncLoading, $c as mergeThemes, Xc as nationalCodeRule, Xa as parseCustomizerPreferences, Za as serializeCustomizerPreferences, Uc as setupKeycloak, Qa as useCustomizerStore, Tc as useDataTable, fn as usePermission, Dc as useTableActions, Oc as useTableHeaders, tr as useTableSelection, J as useUiKit, cn as useUiKitConfig, dn as useUiKitIcons, ln as useUiKitLocale, un as useUiKitMessages };
|