@amirjalili1374/ui-kit 1.3.27 → 1.3.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/layout/AppHeader.vue.d.ts +3 -3
- package/dist/components/layout/AppHeader.vue.d.ts.map +1 -1
- package/dist/components/layout/AppLayout.vue.d.ts +10 -14
- package/dist/components/layout/AppLayout.vue.d.ts.map +1 -1
- package/dist/components/layout/AppSidebar.vue.d.ts +52 -47
- package/dist/components/layout/AppSidebar.vue.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/ui-kit.cjs.js +1 -1
- package/dist/ui-kit.cjs.js.map +1 -1
- package/dist/ui-kit.es.js +923 -282
- package/dist/ui-kit.es.js.map +1 -1
- package/package.json +1 -1
package/dist/ui-kit.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { capitalize, reactive, watchEffect, toRef, shallowRef, Fragment, camelize, isVNode, Comment, unref, warn, getCurrentInstance as getCurrentInstance$1, ref, computed, provide, inject, defineComponent as defineComponent$1, h, createElementVNode, normalizeStyle, normalizeClass, toValue, resolveDynamicComponent, nextTick, onScopeDispose, createVNode, mergeProps, toRefs, Text, isRef, TransitionGroup, Transition, watch, onBeforeMount, onBeforeUnmount, withDirectives, vShow, toDisplayString, effectScope, toRaw, readonly, createBlock, openBlock, withCtx, createCommentVNode, useId, onMounted, onUpdated, Teleport, createTextVNode, createElementBlock, renderSlot, onDeactivated, cloneVNode, renderList, createSlots, normalizeProps, guardReactiveProps, resolveComponent, onActivated, onBeforeUpdate, withModifiers, vModelText, withKeys, onUnmounted } from "vue";
|
|
2
|
-
import { IconHome, IconArrowBadgeLeft, IconChevronDown, IconChevronRight, IconMinus, IconPlus, IconRefresh, IconChevronLeft, IconDownload, IconPrinter, IconMaximize, IconMinimize, IconX, IconFileText, IconCheck, IconPencil, IconClock
|
|
2
|
+
import { IconHome, IconArrowBadgeLeft, IconChevronDown, IconChevronRight, IconMinus, IconPlus, IconRefresh, IconChevronLeft, IconDownload, IconPrinter, IconMaximize, IconMinimize, IconX, IconFileText, IconCheck, IconPencil, IconClock } from "@tabler/icons-vue";
|
|
3
3
|
import axios from "axios";
|
|
4
4
|
import { useDebounceFn } from "@vueuse/core";
|
|
5
5
|
import { useRouter as useRouter$1 } from "vue-router";
|
|
@@ -3886,9 +3886,9 @@ const VRow = genericComponent()({
|
|
|
3886
3886
|
});
|
|
3887
3887
|
const VSpacer = createSimpleFunctional("v-spacer", "div", "VSpacer");
|
|
3888
3888
|
const _hoisted_1$d = { class: "text-h3" };
|
|
3889
|
-
const _hoisted_2$
|
|
3889
|
+
const _hoisted_2$6 = { class: "d-flex align-center gap-2" };
|
|
3890
3890
|
const _hoisted_3$5 = { class: "d-flex align-center gap-2" };
|
|
3891
|
-
const _sfc_main$
|
|
3891
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
|
|
3892
3892
|
__name: "BaseBreadcrumb",
|
|
3893
3893
|
props: {
|
|
3894
3894
|
title: String,
|
|
@@ -3932,7 +3932,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent$1({
|
|
|
3932
3932
|
class: "text-h5 justify-md-end pa-1"
|
|
3933
3933
|
}, {
|
|
3934
3934
|
divider: withCtx(() => [
|
|
3935
|
-
createElementVNode("div", _hoisted_2$
|
|
3935
|
+
createElementVNode("div", _hoisted_2$6, [
|
|
3936
3936
|
createVNode(unref(IconArrowBadgeLeft), { stroke: "{2}" })
|
|
3937
3937
|
])
|
|
3938
3938
|
]),
|
|
@@ -3965,7 +3965,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent$1({
|
|
|
3965
3965
|
};
|
|
3966
3966
|
}
|
|
3967
3967
|
});
|
|
3968
|
-
const _sfc_main$
|
|
3968
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent$1({
|
|
3969
3969
|
__name: "BaseIcon",
|
|
3970
3970
|
props: {
|
|
3971
3971
|
icon: {
|
|
@@ -6584,7 +6584,7 @@ const _hoisted_1$c = {
|
|
|
6584
6584
|
key: 0,
|
|
6585
6585
|
class: "mb-2"
|
|
6586
6586
|
};
|
|
6587
|
-
const _sfc_main$
|
|
6587
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent$1({
|
|
6588
6588
|
__name: "ConfirmDialog",
|
|
6589
6589
|
props: {
|
|
6590
6590
|
modelValue: { type: Boolean },
|
|
@@ -12592,7 +12592,7 @@ const VTooltip = genericComponent()({
|
|
|
12592
12592
|
}
|
|
12593
12593
|
});
|
|
12594
12594
|
const _hoisted_1$b = { class: "ca-item-title" };
|
|
12595
|
-
const _hoisted_2$
|
|
12595
|
+
const _hoisted_2$5 = { class: "ca-item-subtitle" };
|
|
12596
12596
|
const _hoisted_3$4 = { class: "ca-group-tooltip" };
|
|
12597
12597
|
const _hoisted_4$2 = { class: "ca-group-tooltip-header" };
|
|
12598
12598
|
const _hoisted_5$2 = { class: "ca-group-count" };
|
|
@@ -12601,7 +12601,7 @@ const _hoisted_7$2 = { class: "ca-item-title" };
|
|
|
12601
12601
|
const _hoisted_8$2 = { class: "ca-item-subtitle" };
|
|
12602
12602
|
const _hoisted_9$2 = { class: "ca-chip-title" };
|
|
12603
12603
|
const _hoisted_10$2 = { class: "ca-chip-subtitle" };
|
|
12604
|
-
const _sfc_main$
|
|
12604
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent$1({
|
|
12605
12605
|
__name: "CustomAutocomplete",
|
|
12606
12606
|
props: {
|
|
12607
12607
|
fields: {},
|
|
@@ -12735,7 +12735,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
12735
12735
|
__props.displayStyle === "detailed" && resolveSubtitle(item.raw ?? item) ? {
|
|
12736
12736
|
name: "subtitle",
|
|
12737
12737
|
fn: withCtx(() => [
|
|
12738
|
-
createElementVNode("div", _hoisted_2$
|
|
12738
|
+
createElementVNode("div", _hoisted_2$5, toDisplayString(resolveSubtitle(item.raw ?? item)), 1)
|
|
12739
12739
|
]),
|
|
12740
12740
|
key: "0"
|
|
12741
12741
|
} : void 0
|
|
@@ -12812,8 +12812,8 @@ const _export_sfc$1 = (sfc, props) => {
|
|
|
12812
12812
|
}
|
|
12813
12813
|
return target;
|
|
12814
12814
|
};
|
|
12815
|
-
const CustomAutocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
12816
|
-
const _sfc_main$
|
|
12815
|
+
const CustomAutocomplete = /* @__PURE__ */ _export_sfc$1(_sfc_main$i, [["__scopeId", "data-v-4c17f7bd"]]);
|
|
12816
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent$1({
|
|
12817
12817
|
__name: "MoneyInput",
|
|
12818
12818
|
props: {
|
|
12819
12819
|
modelValue: {
|
|
@@ -12920,7 +12920,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
|
|
|
12920
12920
|
}
|
|
12921
12921
|
});
|
|
12922
12922
|
const _hoisted_1$a = { class: "shamsi-date-picker" };
|
|
12923
|
-
const _sfc_main$
|
|
12923
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent$1({
|
|
12924
12924
|
__name: "ShamsiDatePicker",
|
|
12925
12925
|
props: {
|
|
12926
12926
|
modelValue: { default: "" },
|
|
@@ -13031,7 +13031,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent$1({
|
|
|
13031
13031
|
};
|
|
13032
13032
|
}
|
|
13033
13033
|
});
|
|
13034
|
-
const ShamsiDatePicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
13034
|
+
const ShamsiDatePicker = /* @__PURE__ */ _export_sfc$1(_sfc_main$g, [["__scopeId", "data-v-d56f50fe"]]);
|
|
13035
13035
|
function useTableSelection(items, options = {}) {
|
|
13036
13036
|
const selectedItems = ref([]);
|
|
13037
13037
|
const expandedGroups = ref(/* @__PURE__ */ new Set());
|
|
@@ -16921,7 +16921,7 @@ const _hoisted_1$9 = {
|
|
|
16921
16921
|
key: 0,
|
|
16922
16922
|
class: "page-title"
|
|
16923
16923
|
};
|
|
16924
|
-
const _hoisted_2$
|
|
16924
|
+
const _hoisted_2$4 = { class: "title-text" };
|
|
16925
16925
|
const _hoisted_3$3 = { class: "action-buttons" };
|
|
16926
16926
|
const _hoisted_4$1 = {
|
|
16927
16927
|
key: 3,
|
|
@@ -16975,7 +16975,7 @@ const _hoisted_24 = {
|
|
|
16975
16975
|
};
|
|
16976
16976
|
const _hoisted_25 = { class: "d-flex justify-space-between align-center pa-4" };
|
|
16977
16977
|
const _hoisted_26 = { class: "text-subtitle-2" };
|
|
16978
|
-
const _sfc_main$
|
|
16978
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
16979
16979
|
...{ inheritAttrs: false },
|
|
16980
16980
|
__name: "CustomDataTable",
|
|
16981
16981
|
props: {
|
|
@@ -17885,7 +17885,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
|
17885
17885
|
var _a;
|
|
17886
17886
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
17887
17887
|
props.title ? (openBlock(), createElementBlock("div", _hoisted_1$9, [
|
|
17888
|
-
createElementVNode("h3", _hoisted_2$
|
|
17888
|
+
createElementVNode("h3", _hoisted_2$4, toDisplayString(props.title), 1)
|
|
17889
17889
|
])) : createCommentVNode("", true),
|
|
17890
17890
|
createElementVNode("div", _hoisted_3$3, [
|
|
17891
17891
|
((_a = props.actions) == null ? void 0 : _a.includes("create")) ? (openBlock(), createBlock(VBtn, {
|
|
@@ -18684,7 +18684,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
|
18684
18684
|
disabled: isHeaderDisabled(header),
|
|
18685
18685
|
clearable: "",
|
|
18686
18686
|
variant: "outlined"
|
|
18687
|
-
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "items", "item-title", "item-value", "return-object", "multiple", "chips", "closable-chips", "disabled"])) : isMoneyHeader(header) ? (openBlock(), createBlock(_sfc_main$
|
|
18687
|
+
}, null, 8, ["modelValue", "onUpdate:modelValue", "label", "items", "item-title", "item-value", "return-object", "multiple", "chips", "closable-chips", "disabled"])) : isMoneyHeader(header) ? (openBlock(), createBlock(_sfc_main$h, {
|
|
18688
18688
|
key: 2,
|
|
18689
18689
|
modelValue: formModel.value[resolveHeaderKey(header)],
|
|
18690
18690
|
"onUpdate:modelValue": ($event) => formModel.value[resolveHeaderKey(header)] = $event,
|
|
@@ -19070,7 +19070,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
|
19070
19070
|
}
|
|
19071
19071
|
});
|
|
19072
19072
|
const _hoisted_1$8 = { class: "description-input" };
|
|
19073
|
-
const _sfc_main$
|
|
19073
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
|
|
19074
19074
|
__name: "DescriptionInput",
|
|
19075
19075
|
props: {
|
|
19076
19076
|
modelValue: { default: "" },
|
|
@@ -19192,7 +19192,7 @@ ${newLineNumber} - `;
|
|
|
19192
19192
|
};
|
|
19193
19193
|
}
|
|
19194
19194
|
});
|
|
19195
|
-
const DescriptionInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
19195
|
+
const DescriptionInput = /* @__PURE__ */ _export_sfc$1(_sfc_main$e, [["__scopeId", "data-v-e8b64ecb"]]);
|
|
19196
19196
|
var mdiAlertCircle = "M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";
|
|
19197
19197
|
var mdiArrowRight = "M4,11V13H16L10.5,18.5L11.92,19.92L19.84,12L11.92,4.08L10.5,5.5L16,11H4Z";
|
|
19198
19198
|
var mdiCheckCircle = "M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z";
|
|
@@ -19224,7 +19224,7 @@ const icons = {
|
|
|
19224
19224
|
contentCopy: mdiContentCopy
|
|
19225
19225
|
};
|
|
19226
19226
|
const _hoisted_1$7 = { class: "download-title" };
|
|
19227
|
-
const _sfc_main$
|
|
19227
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent$1({
|
|
19228
19228
|
...{
|
|
19229
19229
|
inheritAttrs: false
|
|
19230
19230
|
},
|
|
@@ -19342,12 +19342,12 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent$1({
|
|
|
19342
19342
|
};
|
|
19343
19343
|
}
|
|
19344
19344
|
});
|
|
19345
|
-
const DownloadButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
19345
|
+
const DownloadButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$d, [["__scopeId", "data-v-0a911831"]]);
|
|
19346
19346
|
const _hoisted_1$6 = {
|
|
19347
19347
|
key: 0,
|
|
19348
19348
|
class: "pdf-viewer-header"
|
|
19349
19349
|
};
|
|
19350
|
-
const _hoisted_2$
|
|
19350
|
+
const _hoisted_2$3 = { class: "pdf-viewer-title" };
|
|
19351
19351
|
const _hoisted_3$2 = { class: "pdf-viewer-controls" };
|
|
19352
19352
|
const _hoisted_4 = {
|
|
19353
19353
|
key: 0,
|
|
@@ -19386,7 +19386,7 @@ const _hoisted_16 = {
|
|
|
19386
19386
|
key: 0,
|
|
19387
19387
|
class: "file-info"
|
|
19388
19388
|
};
|
|
19389
|
-
const _sfc_main$
|
|
19389
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
19390
19390
|
__name: "PdfViewer",
|
|
19391
19391
|
props: {
|
|
19392
19392
|
src: {},
|
|
@@ -19595,7 +19595,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
|
19595
19595
|
class: normalizeClass(["pdf-viewer-container", { "fullscreen": isFullscreen.value }])
|
|
19596
19596
|
}, [
|
|
19597
19597
|
__props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
19598
|
-
createElementVNode("div", _hoisted_2$
|
|
19598
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
19599
19599
|
createElementVNode("h3", null, toDisplayString(__props.title || "PDF Viewer"), 1)
|
|
19600
19600
|
]),
|
|
19601
19601
|
createElementVNode("div", _hoisted_3$2, [
|
|
@@ -19813,8 +19813,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
|
19813
19813
|
};
|
|
19814
19814
|
}
|
|
19815
19815
|
});
|
|
19816
|
-
const PdfViewer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
19817
|
-
const _sfc_main$
|
|
19816
|
+
const PdfViewer = /* @__PURE__ */ _export_sfc$1(_sfc_main$c, [["__scopeId", "data-v-f3e9c767"]]);
|
|
19817
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
|
|
19818
19818
|
__name: "UiChildCard",
|
|
19819
19819
|
props: {
|
|
19820
19820
|
title: String
|
|
@@ -19849,7 +19849,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
|
|
|
19849
19849
|
}
|
|
19850
19850
|
});
|
|
19851
19851
|
const _hoisted_1$5 = { class: "d-sm-flex align-center justify-space-between" };
|
|
19852
|
-
const _sfc_main$
|
|
19852
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent$1({
|
|
19853
19853
|
__name: "UiParentCard",
|
|
19854
19854
|
props: {
|
|
19855
19855
|
title: String
|
|
@@ -19886,7 +19886,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
|
|
|
19886
19886
|
};
|
|
19887
19887
|
}
|
|
19888
19888
|
});
|
|
19889
|
-
const _sfc_main$
|
|
19889
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
19890
19890
|
__name: "VPriceTextField",
|
|
19891
19891
|
props: {
|
|
19892
19892
|
modelValue: {},
|
|
@@ -19991,9 +19991,9 @@ const _hoisted_1$4 = {
|
|
|
19991
19991
|
class: "app-stepper-root",
|
|
19992
19992
|
dir: "rtl"
|
|
19993
19993
|
};
|
|
19994
|
-
const _hoisted_2$
|
|
19994
|
+
const _hoisted_2$2 = { class: "app-stepper-header-card" };
|
|
19995
19995
|
const _hoisted_3$1 = { class: "app-stepper-title" };
|
|
19996
|
-
const _sfc_main$
|
|
19996
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
|
|
19997
19997
|
__name: "AppStepper",
|
|
19998
19998
|
props: {
|
|
19999
19999
|
steps: {
|
|
@@ -20046,7 +20046,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
|
|
|
20046
20046
|
__expose({ currentStepComponentRef });
|
|
20047
20047
|
return (_ctx, _cache) => {
|
|
20048
20048
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
20049
|
-
createElementVNode("div", _hoisted_2$
|
|
20049
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
20050
20050
|
createElementVNode("div", {
|
|
20051
20051
|
ref_key: "stepperHeaderRef",
|
|
20052
20052
|
ref: stepperHeaderRef,
|
|
@@ -20112,7 +20112,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
|
|
|
20112
20112
|
};
|
|
20113
20113
|
}
|
|
20114
20114
|
});
|
|
20115
|
-
const AppStepper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
20115
|
+
const AppStepper = /* @__PURE__ */ _export_sfc$1(_sfc_main$8, [["__scopeId", "data-v-d5178633"]]);
|
|
20116
20116
|
var lottie = { exports: {} };
|
|
20117
20117
|
(function(module, exports) {
|
|
20118
20118
|
typeof navigator !== "undefined" && function(global2, factory) {
|
|
@@ -36528,7 +36528,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
36528
36528
|
}
|
|
36529
36529
|
return target;
|
|
36530
36530
|
};
|
|
36531
|
-
const _sfc_main$
|
|
36531
|
+
const _sfc_main$7 = defineComponent$1({
|
|
36532
36532
|
props: {
|
|
36533
36533
|
animationData: {
|
|
36534
36534
|
type: Object,
|
|
@@ -36860,7 +36860,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36860
36860
|
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.hoverEnded && _ctx.hoverEnded(...args))
|
|
36861
36861
|
}, null, 36);
|
|
36862
36862
|
}
|
|
36863
|
-
var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
36863
|
+
var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render]]);
|
|
36864
36864
|
const useCustomizerStore = defineStore({
|
|
36865
36865
|
id: "customizer",
|
|
36866
36866
|
state: () => ({
|
|
@@ -36918,9 +36918,9 @@ const _hoisted_1$3 = {
|
|
|
36918
36918
|
key: 0,
|
|
36919
36919
|
class: "loading-overlay"
|
|
36920
36920
|
};
|
|
36921
|
-
const _hoisted_2 = { class: "loading-wrapper" };
|
|
36921
|
+
const _hoisted_2$1 = { class: "loading-wrapper" };
|
|
36922
36922
|
const _hoisted_3 = { key: 0 };
|
|
36923
|
-
const _sfc_main$
|
|
36923
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
36924
36924
|
__name: "Loading",
|
|
36925
36925
|
setup(__props) {
|
|
36926
36926
|
const customizer = useCustomizerStore();
|
|
@@ -36928,7 +36928,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
|
|
|
36928
36928
|
return openBlock(), createBlock(Transition, { name: "fade" }, {
|
|
36929
36929
|
default: withCtx(() => [
|
|
36930
36930
|
unref(customizer).loading ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
36931
|
-
createElementVNode("div", _hoisted_2, [
|
|
36931
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
36932
36932
|
createVNode(unref(Vue3Lottie), {
|
|
36933
36933
|
"animation-link": "/persian.json",
|
|
36934
36934
|
loop: true,
|
|
@@ -36949,7 +36949,808 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
|
|
|
36949
36949
|
};
|
|
36950
36950
|
}
|
|
36951
36951
|
});
|
|
36952
|
-
const Loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
36952
|
+
const Loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$6, [["__scopeId", "data-v-9b533ee4"]]);
|
|
36953
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
|
|
36954
|
+
__name: "NavItem",
|
|
36955
|
+
props: {
|
|
36956
|
+
item: {},
|
|
36957
|
+
level: {}
|
|
36958
|
+
},
|
|
36959
|
+
setup(__props) {
|
|
36960
|
+
const props = __props;
|
|
36961
|
+
return (_ctx, _cache) => {
|
|
36962
|
+
return openBlock(), createBlock(VListItem, {
|
|
36963
|
+
to: __props.item.type === "external" ? "" : __props.item.to,
|
|
36964
|
+
href: __props.item.type === "external" ? __props.item.to : "",
|
|
36965
|
+
rounded: "",
|
|
36966
|
+
class: "mb-1",
|
|
36967
|
+
color: "secondary",
|
|
36968
|
+
disabled: __props.item.disabled,
|
|
36969
|
+
target: __props.item.type === "external" ? "_blank" : ""
|
|
36970
|
+
}, createSlots({
|
|
36971
|
+
default: withCtx(() => [
|
|
36972
|
+
createVNode(VListItemTitle, null, {
|
|
36973
|
+
default: withCtx(() => [
|
|
36974
|
+
createTextVNode(toDisplayString(__props.item.title), 1)
|
|
36975
|
+
]),
|
|
36976
|
+
_: 1
|
|
36977
|
+
}),
|
|
36978
|
+
__props.item.subCaption ? (openBlock(), createBlock(VListItemSubtitle, {
|
|
36979
|
+
key: 0,
|
|
36980
|
+
class: "text-caption mt-n1 hide-menu"
|
|
36981
|
+
}, {
|
|
36982
|
+
default: withCtx(() => [
|
|
36983
|
+
createTextVNode(toDisplayString(__props.item.subCaption), 1)
|
|
36984
|
+
]),
|
|
36985
|
+
_: 1
|
|
36986
|
+
})) : createCommentVNode("", true)
|
|
36987
|
+
]),
|
|
36988
|
+
_: 2
|
|
36989
|
+
}, [
|
|
36990
|
+
props.item.icon ? {
|
|
36991
|
+
name: "prepend",
|
|
36992
|
+
fn: withCtx(() => [
|
|
36993
|
+
typeof props.item.icon === "string" ? (openBlock(), createBlock(VIcon, {
|
|
36994
|
+
key: 0,
|
|
36995
|
+
icon: props.item.icon
|
|
36996
|
+
}, null, 8, ["icon"])) : (openBlock(), createBlock(resolveDynamicComponent(props.item.icon), { key: 1 }))
|
|
36997
|
+
]),
|
|
36998
|
+
key: "0"
|
|
36999
|
+
} : void 0,
|
|
37000
|
+
__props.item.chip ? {
|
|
37001
|
+
name: "append",
|
|
37002
|
+
fn: withCtx(() => [
|
|
37003
|
+
createVNode(VChip, {
|
|
37004
|
+
color: __props.item.chipColor,
|
|
37005
|
+
class: "sidebarchip hide-menu",
|
|
37006
|
+
size: __props.item.chipIcon ? "small" : "default",
|
|
37007
|
+
variant: __props.item.chipVariant,
|
|
37008
|
+
"prepend-icon": __props.item.chipIcon
|
|
37009
|
+
}, {
|
|
37010
|
+
default: withCtx(() => [
|
|
37011
|
+
createTextVNode(toDisplayString(__props.item.chip), 1)
|
|
37012
|
+
]),
|
|
37013
|
+
_: 1
|
|
37014
|
+
}, 8, ["color", "size", "variant", "prepend-icon"])
|
|
37015
|
+
]),
|
|
37016
|
+
key: "1"
|
|
37017
|
+
} : void 0
|
|
37018
|
+
]), 1032, ["to", "href", "disabled", "target"]);
|
|
37019
|
+
};
|
|
37020
|
+
}
|
|
37021
|
+
});
|
|
37022
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent$1({
|
|
37023
|
+
...{ name: "NavCollapse" },
|
|
37024
|
+
__name: "NavCollapse",
|
|
37025
|
+
props: {
|
|
37026
|
+
item: {},
|
|
37027
|
+
level: {}
|
|
37028
|
+
},
|
|
37029
|
+
setup(__props) {
|
|
37030
|
+
const props = __props;
|
|
37031
|
+
return (_ctx, _cache) => {
|
|
37032
|
+
const _component_NavCollapse = resolveComponent("NavCollapse", true);
|
|
37033
|
+
return openBlock(), createBlock(VListGroup, { "no-action": "" }, {
|
|
37034
|
+
activator: withCtx(({ props: props2 }) => [
|
|
37035
|
+
createVNode(VListItem, mergeProps(props2, {
|
|
37036
|
+
value: __props.item.title,
|
|
37037
|
+
rounded: "",
|
|
37038
|
+
class: "mb-1",
|
|
37039
|
+
color: "secondary"
|
|
37040
|
+
}), {
|
|
37041
|
+
prepend: withCtx(() => [
|
|
37042
|
+
typeof __props.item.icon === "string" ? (openBlock(), createBlock(VIcon, {
|
|
37043
|
+
key: 0,
|
|
37044
|
+
icon: __props.item.icon
|
|
37045
|
+
}, null, 8, ["icon"])) : __props.item.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.item.icon), { key: 1 })) : createCommentVNode("", true)
|
|
37046
|
+
]),
|
|
37047
|
+
default: withCtx(() => [
|
|
37048
|
+
createVNode(VListItemTitle, { class: "ml-auto" }, {
|
|
37049
|
+
default: withCtx(() => [
|
|
37050
|
+
createTextVNode(toDisplayString(__props.item.title), 1)
|
|
37051
|
+
]),
|
|
37052
|
+
_: 1
|
|
37053
|
+
}),
|
|
37054
|
+
__props.item.subCaption ? (openBlock(), createBlock(VListItemSubtitle, {
|
|
37055
|
+
key: 0,
|
|
37056
|
+
class: "text-caption mt-n1 hide-menu"
|
|
37057
|
+
}, {
|
|
37058
|
+
default: withCtx(() => [
|
|
37059
|
+
createTextVNode(toDisplayString(__props.item.subCaption), 1)
|
|
37060
|
+
]),
|
|
37061
|
+
_: 1
|
|
37062
|
+
})) : createCommentVNode("", true)
|
|
37063
|
+
]),
|
|
37064
|
+
_: 1
|
|
37065
|
+
}, 16, ["value"])
|
|
37066
|
+
]),
|
|
37067
|
+
default: withCtx(() => [
|
|
37068
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.item.children, (subitem, i) => {
|
|
37069
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
37070
|
+
subitem.children ? (openBlock(), createBlock(_component_NavCollapse, {
|
|
37071
|
+
key: 0,
|
|
37072
|
+
item: subitem,
|
|
37073
|
+
level: props.level + 1
|
|
37074
|
+
}, null, 8, ["item", "level"])) : (openBlock(), createBlock(_sfc_main$5, {
|
|
37075
|
+
key: 1,
|
|
37076
|
+
item: subitem,
|
|
37077
|
+
level: props.level + 1
|
|
37078
|
+
}, null, 8, ["item", "level"]))
|
|
37079
|
+
], 64);
|
|
37080
|
+
}), 128))
|
|
37081
|
+
]),
|
|
37082
|
+
_: 1
|
|
37083
|
+
});
|
|
37084
|
+
};
|
|
37085
|
+
}
|
|
37086
|
+
});
|
|
37087
|
+
const _sfc_main$3 = {
|
|
37088
|
+
__name: "NavGroup",
|
|
37089
|
+
props: { item: Object },
|
|
37090
|
+
setup(__props) {
|
|
37091
|
+
const props = __props;
|
|
37092
|
+
return (_ctx, _cache) => {
|
|
37093
|
+
return openBlock(), createBlock(VListSubheader, {
|
|
37094
|
+
color: "darkText",
|
|
37095
|
+
class: "smallCap"
|
|
37096
|
+
}, {
|
|
37097
|
+
default: withCtx(() => [
|
|
37098
|
+
createTextVNode(toDisplayString(props.item.header), 1)
|
|
37099
|
+
]),
|
|
37100
|
+
_: 1
|
|
37101
|
+
});
|
|
37102
|
+
};
|
|
37103
|
+
}
|
|
37104
|
+
};
|
|
37105
|
+
function useSticky(_ref) {
|
|
37106
|
+
let {
|
|
37107
|
+
rootEl,
|
|
37108
|
+
isSticky,
|
|
37109
|
+
layoutItemStyles
|
|
37110
|
+
} = _ref;
|
|
37111
|
+
const isStuck = shallowRef(false);
|
|
37112
|
+
const stuckPosition = shallowRef(0);
|
|
37113
|
+
const stickyStyles = computed(() => {
|
|
37114
|
+
const side = typeof isStuck.value === "boolean" ? "top" : isStuck.value;
|
|
37115
|
+
return [isSticky.value ? {
|
|
37116
|
+
top: "auto",
|
|
37117
|
+
bottom: "auto",
|
|
37118
|
+
height: void 0
|
|
37119
|
+
} : void 0, isStuck.value ? {
|
|
37120
|
+
[side]: convertToUnit(stuckPosition.value)
|
|
37121
|
+
} : {
|
|
37122
|
+
top: layoutItemStyles.value.top
|
|
37123
|
+
}];
|
|
37124
|
+
});
|
|
37125
|
+
onMounted(() => {
|
|
37126
|
+
watch(isSticky, (val2) => {
|
|
37127
|
+
if (val2) {
|
|
37128
|
+
window.addEventListener("scroll", onScroll, {
|
|
37129
|
+
passive: true
|
|
37130
|
+
});
|
|
37131
|
+
} else {
|
|
37132
|
+
window.removeEventListener("scroll", onScroll);
|
|
37133
|
+
}
|
|
37134
|
+
}, {
|
|
37135
|
+
immediate: true
|
|
37136
|
+
});
|
|
37137
|
+
});
|
|
37138
|
+
onBeforeUnmount(() => {
|
|
37139
|
+
window.removeEventListener("scroll", onScroll);
|
|
37140
|
+
});
|
|
37141
|
+
let lastScrollTop = 0;
|
|
37142
|
+
function onScroll() {
|
|
37143
|
+
const direction = lastScrollTop > window.scrollY ? "up" : "down";
|
|
37144
|
+
const rect = rootEl.value.getBoundingClientRect();
|
|
37145
|
+
const layoutTop = parseFloat(layoutItemStyles.value.top ?? 0);
|
|
37146
|
+
const top = window.scrollY - Math.max(0, stuckPosition.value - layoutTop);
|
|
37147
|
+
const bottom = rect.height + Math.max(stuckPosition.value, layoutTop) - window.scrollY - window.innerHeight;
|
|
37148
|
+
const bodyScroll = parseFloat(getComputedStyle(rootEl.value).getPropertyValue("--v-body-scroll-y")) || 0;
|
|
37149
|
+
if (rect.height < window.innerHeight - layoutTop) {
|
|
37150
|
+
isStuck.value = "top";
|
|
37151
|
+
stuckPosition.value = layoutTop;
|
|
37152
|
+
} else if (direction === "up" && isStuck.value === "bottom" || direction === "down" && isStuck.value === "top") {
|
|
37153
|
+
stuckPosition.value = window.scrollY + rect.top - bodyScroll;
|
|
37154
|
+
isStuck.value = true;
|
|
37155
|
+
} else if (direction === "down" && bottom <= 0) {
|
|
37156
|
+
stuckPosition.value = 0;
|
|
37157
|
+
isStuck.value = "bottom";
|
|
37158
|
+
} else if (direction === "up" && top <= 0) {
|
|
37159
|
+
if (!bodyScroll) {
|
|
37160
|
+
stuckPosition.value = rect.top + top;
|
|
37161
|
+
isStuck.value = "top";
|
|
37162
|
+
} else if (isStuck.value !== "top") {
|
|
37163
|
+
stuckPosition.value = -top + bodyScroll + layoutTop;
|
|
37164
|
+
isStuck.value = "top";
|
|
37165
|
+
}
|
|
37166
|
+
}
|
|
37167
|
+
lastScrollTop = window.scrollY;
|
|
37168
|
+
}
|
|
37169
|
+
return {
|
|
37170
|
+
isStuck,
|
|
37171
|
+
stickyStyles
|
|
37172
|
+
};
|
|
37173
|
+
}
|
|
37174
|
+
const HORIZON = 100;
|
|
37175
|
+
const HISTORY = 20;
|
|
37176
|
+
function kineticEnergyToVelocity(work) {
|
|
37177
|
+
const sqrt2 = 1.41421356237;
|
|
37178
|
+
return (work < 0 ? -1 : 1) * Math.sqrt(Math.abs(work)) * sqrt2;
|
|
37179
|
+
}
|
|
37180
|
+
function calculateImpulseVelocity(samples) {
|
|
37181
|
+
if (samples.length < 2) {
|
|
37182
|
+
return 0;
|
|
37183
|
+
}
|
|
37184
|
+
if (samples.length === 2) {
|
|
37185
|
+
if (samples[1].t === samples[0].t) {
|
|
37186
|
+
return 0;
|
|
37187
|
+
}
|
|
37188
|
+
return (samples[1].d - samples[0].d) / (samples[1].t - samples[0].t);
|
|
37189
|
+
}
|
|
37190
|
+
let work = 0;
|
|
37191
|
+
for (let i = samples.length - 1; i > 0; i--) {
|
|
37192
|
+
if (samples[i].t === samples[i - 1].t) {
|
|
37193
|
+
continue;
|
|
37194
|
+
}
|
|
37195
|
+
const vprev = kineticEnergyToVelocity(work);
|
|
37196
|
+
const vcurr = (samples[i].d - samples[i - 1].d) / (samples[i].t - samples[i - 1].t);
|
|
37197
|
+
work += (vcurr - vprev) * Math.abs(vcurr);
|
|
37198
|
+
if (i === samples.length - 1) {
|
|
37199
|
+
work *= 0.5;
|
|
37200
|
+
}
|
|
37201
|
+
}
|
|
37202
|
+
return kineticEnergyToVelocity(work) * 1e3;
|
|
37203
|
+
}
|
|
37204
|
+
function useVelocity() {
|
|
37205
|
+
const touches = {};
|
|
37206
|
+
function addMovement(e) {
|
|
37207
|
+
Array.from(e.changedTouches).forEach((touch) => {
|
|
37208
|
+
const samples = touches[touch.identifier] ?? (touches[touch.identifier] = new CircularBuffer(HISTORY));
|
|
37209
|
+
samples.push([e.timeStamp, touch]);
|
|
37210
|
+
});
|
|
37211
|
+
}
|
|
37212
|
+
function endTouch(e) {
|
|
37213
|
+
Array.from(e.changedTouches).forEach((touch) => {
|
|
37214
|
+
delete touches[touch.identifier];
|
|
37215
|
+
});
|
|
37216
|
+
}
|
|
37217
|
+
function getVelocity(id) {
|
|
37218
|
+
var _a;
|
|
37219
|
+
const samples = (_a = touches[id]) == null ? void 0 : _a.values().reverse();
|
|
37220
|
+
if (!samples) {
|
|
37221
|
+
throw new Error(`No samples for touch id ${id}`);
|
|
37222
|
+
}
|
|
37223
|
+
const newest = samples[0];
|
|
37224
|
+
const x = [];
|
|
37225
|
+
const y = [];
|
|
37226
|
+
for (const val2 of samples) {
|
|
37227
|
+
if (newest[0] - val2[0] > HORIZON) break;
|
|
37228
|
+
x.push({
|
|
37229
|
+
t: val2[0],
|
|
37230
|
+
d: val2[1].clientX
|
|
37231
|
+
});
|
|
37232
|
+
y.push({
|
|
37233
|
+
t: val2[0],
|
|
37234
|
+
d: val2[1].clientY
|
|
37235
|
+
});
|
|
37236
|
+
}
|
|
37237
|
+
return {
|
|
37238
|
+
x: calculateImpulseVelocity(x),
|
|
37239
|
+
y: calculateImpulseVelocity(y),
|
|
37240
|
+
get direction() {
|
|
37241
|
+
const {
|
|
37242
|
+
x: x2,
|
|
37243
|
+
y: y2
|
|
37244
|
+
} = this;
|
|
37245
|
+
const [absX, absY] = [Math.abs(x2), Math.abs(y2)];
|
|
37246
|
+
return absX > absY && x2 >= 0 ? "right" : absX > absY && x2 <= 0 ? "left" : absY > absX && y2 >= 0 ? "down" : absY > absX && y2 <= 0 ? "up" : oops$1();
|
|
37247
|
+
}
|
|
37248
|
+
};
|
|
37249
|
+
}
|
|
37250
|
+
return {
|
|
37251
|
+
addMovement,
|
|
37252
|
+
endTouch,
|
|
37253
|
+
getVelocity
|
|
37254
|
+
};
|
|
37255
|
+
}
|
|
37256
|
+
function oops$1() {
|
|
37257
|
+
throw new Error();
|
|
37258
|
+
}
|
|
37259
|
+
function useTouch(_ref) {
|
|
37260
|
+
let {
|
|
37261
|
+
el,
|
|
37262
|
+
isActive,
|
|
37263
|
+
isTemporary,
|
|
37264
|
+
width: width2,
|
|
37265
|
+
touchless,
|
|
37266
|
+
position: position2
|
|
37267
|
+
} = _ref;
|
|
37268
|
+
onMounted(() => {
|
|
37269
|
+
window.addEventListener("touchstart", onTouchstart, {
|
|
37270
|
+
passive: true
|
|
37271
|
+
});
|
|
37272
|
+
window.addEventListener("touchmove", onTouchmove, {
|
|
37273
|
+
passive: false
|
|
37274
|
+
});
|
|
37275
|
+
window.addEventListener("touchend", onTouchend, {
|
|
37276
|
+
passive: true
|
|
37277
|
+
});
|
|
37278
|
+
});
|
|
37279
|
+
onBeforeUnmount(() => {
|
|
37280
|
+
window.removeEventListener("touchstart", onTouchstart);
|
|
37281
|
+
window.removeEventListener("touchmove", onTouchmove);
|
|
37282
|
+
window.removeEventListener("touchend", onTouchend);
|
|
37283
|
+
});
|
|
37284
|
+
const isHorizontal = computed(() => ["left", "right"].includes(position2.value));
|
|
37285
|
+
const {
|
|
37286
|
+
addMovement,
|
|
37287
|
+
endTouch,
|
|
37288
|
+
getVelocity
|
|
37289
|
+
} = useVelocity();
|
|
37290
|
+
let maybeDragging = false;
|
|
37291
|
+
const isDragging = shallowRef(false);
|
|
37292
|
+
const dragProgress = shallowRef(0);
|
|
37293
|
+
const offset = shallowRef(0);
|
|
37294
|
+
let start;
|
|
37295
|
+
function getOffset2(pos, active2) {
|
|
37296
|
+
return (position2.value === "left" ? pos : position2.value === "right" ? document.documentElement.clientWidth - pos : position2.value === "top" ? pos : position2.value === "bottom" ? document.documentElement.clientHeight - pos : oops()) - (active2 ? width2.value : 0);
|
|
37297
|
+
}
|
|
37298
|
+
function getProgress(pos) {
|
|
37299
|
+
let limit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
37300
|
+
const progress = position2.value === "left" ? (pos - offset.value) / width2.value : position2.value === "right" ? (document.documentElement.clientWidth - pos - offset.value) / width2.value : position2.value === "top" ? (pos - offset.value) / width2.value : position2.value === "bottom" ? (document.documentElement.clientHeight - pos - offset.value) / width2.value : oops();
|
|
37301
|
+
return limit ? clamp(progress) : progress;
|
|
37302
|
+
}
|
|
37303
|
+
function onTouchstart(e) {
|
|
37304
|
+
if (touchless.value) return;
|
|
37305
|
+
const touchX = e.changedTouches[0].clientX;
|
|
37306
|
+
const touchY = e.changedTouches[0].clientY;
|
|
37307
|
+
const touchZone = 25;
|
|
37308
|
+
const inTouchZone = position2.value === "left" ? touchX < touchZone : position2.value === "right" ? touchX > document.documentElement.clientWidth - touchZone : position2.value === "top" ? touchY < touchZone : position2.value === "bottom" ? touchY > document.documentElement.clientHeight - touchZone : oops();
|
|
37309
|
+
const inElement = isActive.value && (position2.value === "left" ? touchX < width2.value : position2.value === "right" ? touchX > document.documentElement.clientWidth - width2.value : position2.value === "top" ? touchY < width2.value : position2.value === "bottom" ? touchY > document.documentElement.clientHeight - width2.value : oops());
|
|
37310
|
+
if (inTouchZone || inElement || isActive.value && isTemporary.value) {
|
|
37311
|
+
start = [touchX, touchY];
|
|
37312
|
+
offset.value = getOffset2(isHorizontal.value ? touchX : touchY, isActive.value);
|
|
37313
|
+
dragProgress.value = getProgress(isHorizontal.value ? touchX : touchY);
|
|
37314
|
+
maybeDragging = offset.value > -20 && offset.value < 80;
|
|
37315
|
+
endTouch(e);
|
|
37316
|
+
addMovement(e);
|
|
37317
|
+
}
|
|
37318
|
+
}
|
|
37319
|
+
function onTouchmove(e) {
|
|
37320
|
+
const touchX = e.changedTouches[0].clientX;
|
|
37321
|
+
const touchY = e.changedTouches[0].clientY;
|
|
37322
|
+
if (maybeDragging) {
|
|
37323
|
+
if (!e.cancelable) {
|
|
37324
|
+
maybeDragging = false;
|
|
37325
|
+
return;
|
|
37326
|
+
}
|
|
37327
|
+
const dx = Math.abs(touchX - start[0]);
|
|
37328
|
+
const dy = Math.abs(touchY - start[1]);
|
|
37329
|
+
const thresholdMet = isHorizontal.value ? dx > dy && dx > 3 : dy > dx && dy > 3;
|
|
37330
|
+
if (thresholdMet) {
|
|
37331
|
+
isDragging.value = true;
|
|
37332
|
+
maybeDragging = false;
|
|
37333
|
+
} else if ((isHorizontal.value ? dy : dx) > 3) {
|
|
37334
|
+
maybeDragging = false;
|
|
37335
|
+
}
|
|
37336
|
+
}
|
|
37337
|
+
if (!isDragging.value) return;
|
|
37338
|
+
e.preventDefault();
|
|
37339
|
+
addMovement(e);
|
|
37340
|
+
const progress = getProgress(isHorizontal.value ? touchX : touchY, false);
|
|
37341
|
+
dragProgress.value = Math.max(0, Math.min(1, progress));
|
|
37342
|
+
if (progress > 1) {
|
|
37343
|
+
offset.value = getOffset2(isHorizontal.value ? touchX : touchY, true);
|
|
37344
|
+
} else if (progress < 0) {
|
|
37345
|
+
offset.value = getOffset2(isHorizontal.value ? touchX : touchY, false);
|
|
37346
|
+
}
|
|
37347
|
+
}
|
|
37348
|
+
function onTouchend(e) {
|
|
37349
|
+
maybeDragging = false;
|
|
37350
|
+
if (!isDragging.value) return;
|
|
37351
|
+
addMovement(e);
|
|
37352
|
+
isDragging.value = false;
|
|
37353
|
+
const velocity2 = getVelocity(e.changedTouches[0].identifier);
|
|
37354
|
+
const vx = Math.abs(velocity2.x);
|
|
37355
|
+
const vy = Math.abs(velocity2.y);
|
|
37356
|
+
const thresholdMet = isHorizontal.value ? vx > vy && vx > 400 : vy > vx && vy > 3;
|
|
37357
|
+
if (thresholdMet) {
|
|
37358
|
+
isActive.value = velocity2.direction === ({
|
|
37359
|
+
left: "right",
|
|
37360
|
+
right: "left",
|
|
37361
|
+
top: "down",
|
|
37362
|
+
bottom: "up"
|
|
37363
|
+
}[position2.value] || oops());
|
|
37364
|
+
} else {
|
|
37365
|
+
isActive.value = dragProgress.value > 0.5;
|
|
37366
|
+
}
|
|
37367
|
+
}
|
|
37368
|
+
const dragStyles = computed(() => {
|
|
37369
|
+
return isDragging.value ? {
|
|
37370
|
+
transform: position2.value === "left" ? `translateX(calc(-100% + ${dragProgress.value * width2.value}px))` : position2.value === "right" ? `translateX(calc(100% - ${dragProgress.value * width2.value}px))` : position2.value === "top" ? `translateY(calc(-100% + ${dragProgress.value * width2.value}px))` : position2.value === "bottom" ? `translateY(calc(100% - ${dragProgress.value * width2.value}px))` : oops(),
|
|
37371
|
+
transition: "none"
|
|
37372
|
+
} : void 0;
|
|
37373
|
+
});
|
|
37374
|
+
useToggleScope(isDragging, () => {
|
|
37375
|
+
var _a, _b;
|
|
37376
|
+
const transform2 = ((_a = el.value) == null ? void 0 : _a.style.transform) ?? null;
|
|
37377
|
+
const transition = ((_b = el.value) == null ? void 0 : _b.style.transition) ?? null;
|
|
37378
|
+
watchEffect(() => {
|
|
37379
|
+
var _a2, _b2, _c, _d;
|
|
37380
|
+
(_b2 = el.value) == null ? void 0 : _b2.style.setProperty("transform", ((_a2 = dragStyles.value) == null ? void 0 : _a2.transform) || "none");
|
|
37381
|
+
(_d = el.value) == null ? void 0 : _d.style.setProperty("transition", ((_c = dragStyles.value) == null ? void 0 : _c.transition) || null);
|
|
37382
|
+
});
|
|
37383
|
+
onScopeDispose(() => {
|
|
37384
|
+
var _a2, _b2;
|
|
37385
|
+
(_a2 = el.value) == null ? void 0 : _a2.style.setProperty("transform", transform2);
|
|
37386
|
+
(_b2 = el.value) == null ? void 0 : _b2.style.setProperty("transition", transition);
|
|
37387
|
+
});
|
|
37388
|
+
});
|
|
37389
|
+
return {
|
|
37390
|
+
isDragging,
|
|
37391
|
+
dragProgress,
|
|
37392
|
+
dragStyles
|
|
37393
|
+
};
|
|
37394
|
+
}
|
|
37395
|
+
function oops() {
|
|
37396
|
+
throw new Error();
|
|
37397
|
+
}
|
|
37398
|
+
const locations = ["start", "end", "left", "right", "top", "bottom"];
|
|
37399
|
+
const makeVNavigationDrawerProps = propsFactory({
|
|
37400
|
+
color: String,
|
|
37401
|
+
disableResizeWatcher: Boolean,
|
|
37402
|
+
disableRouteWatcher: Boolean,
|
|
37403
|
+
expandOnHover: Boolean,
|
|
37404
|
+
floating: Boolean,
|
|
37405
|
+
modelValue: {
|
|
37406
|
+
type: Boolean,
|
|
37407
|
+
default: null
|
|
37408
|
+
},
|
|
37409
|
+
permanent: Boolean,
|
|
37410
|
+
rail: {
|
|
37411
|
+
type: Boolean,
|
|
37412
|
+
default: null
|
|
37413
|
+
},
|
|
37414
|
+
railWidth: {
|
|
37415
|
+
type: [Number, String],
|
|
37416
|
+
default: 56
|
|
37417
|
+
},
|
|
37418
|
+
scrim: {
|
|
37419
|
+
type: [Boolean, String],
|
|
37420
|
+
default: true
|
|
37421
|
+
},
|
|
37422
|
+
image: String,
|
|
37423
|
+
temporary: Boolean,
|
|
37424
|
+
persistent: Boolean,
|
|
37425
|
+
touchless: Boolean,
|
|
37426
|
+
width: {
|
|
37427
|
+
type: [Number, String],
|
|
37428
|
+
default: 256
|
|
37429
|
+
},
|
|
37430
|
+
location: {
|
|
37431
|
+
type: String,
|
|
37432
|
+
default: "start",
|
|
37433
|
+
validator: (value2) => locations.includes(value2)
|
|
37434
|
+
},
|
|
37435
|
+
sticky: Boolean,
|
|
37436
|
+
...makeBorderProps(),
|
|
37437
|
+
...makeComponentProps(),
|
|
37438
|
+
...makeDelayProps(),
|
|
37439
|
+
...makeDisplayProps({
|
|
37440
|
+
mobile: null
|
|
37441
|
+
}),
|
|
37442
|
+
...makeElevationProps(),
|
|
37443
|
+
...makeLayoutItemProps(),
|
|
37444
|
+
...makeRoundedProps(),
|
|
37445
|
+
...makeTagProps({
|
|
37446
|
+
tag: "nav"
|
|
37447
|
+
}),
|
|
37448
|
+
...makeThemeProps()
|
|
37449
|
+
}, "VNavigationDrawer");
|
|
37450
|
+
const VNavigationDrawer = genericComponent()({
|
|
37451
|
+
name: "VNavigationDrawer",
|
|
37452
|
+
props: makeVNavigationDrawerProps(),
|
|
37453
|
+
emits: {
|
|
37454
|
+
"update:modelValue": (val2) => true,
|
|
37455
|
+
"update:rail": (val2) => true
|
|
37456
|
+
},
|
|
37457
|
+
setup(props, _ref) {
|
|
37458
|
+
let {
|
|
37459
|
+
attrs,
|
|
37460
|
+
emit,
|
|
37461
|
+
slots
|
|
37462
|
+
} = _ref;
|
|
37463
|
+
const {
|
|
37464
|
+
isRtl
|
|
37465
|
+
} = useRtl();
|
|
37466
|
+
const {
|
|
37467
|
+
themeClasses
|
|
37468
|
+
} = provideTheme(props);
|
|
37469
|
+
const {
|
|
37470
|
+
borderClasses
|
|
37471
|
+
} = useBorder(props);
|
|
37472
|
+
const {
|
|
37473
|
+
backgroundColorClasses,
|
|
37474
|
+
backgroundColorStyles
|
|
37475
|
+
} = useBackgroundColor(() => props.color);
|
|
37476
|
+
const {
|
|
37477
|
+
elevationClasses
|
|
37478
|
+
} = useElevation(props);
|
|
37479
|
+
const {
|
|
37480
|
+
displayClasses,
|
|
37481
|
+
mobile
|
|
37482
|
+
} = useDisplay(props);
|
|
37483
|
+
const {
|
|
37484
|
+
roundedClasses
|
|
37485
|
+
} = useRounded(props);
|
|
37486
|
+
const router = useRouter();
|
|
37487
|
+
const isActive = useProxiedModel(props, "modelValue", null, (v) => !!v);
|
|
37488
|
+
const {
|
|
37489
|
+
ssrBootStyles
|
|
37490
|
+
} = useSsrBoot();
|
|
37491
|
+
const {
|
|
37492
|
+
scopeId
|
|
37493
|
+
} = useScopeId();
|
|
37494
|
+
const rootEl = ref();
|
|
37495
|
+
const isHovering = shallowRef(false);
|
|
37496
|
+
const {
|
|
37497
|
+
runOpenDelay,
|
|
37498
|
+
runCloseDelay
|
|
37499
|
+
} = useDelay(props, (value2) => {
|
|
37500
|
+
isHovering.value = value2;
|
|
37501
|
+
});
|
|
37502
|
+
const width2 = computed(() => {
|
|
37503
|
+
return props.rail && props.expandOnHover && isHovering.value ? Number(props.width) : Number(props.rail ? props.railWidth : props.width);
|
|
37504
|
+
});
|
|
37505
|
+
const location = computed(() => {
|
|
37506
|
+
return toPhysical(props.location, isRtl.value);
|
|
37507
|
+
});
|
|
37508
|
+
const isPersistent = toRef(() => props.persistent);
|
|
37509
|
+
const isTemporary = computed(() => !props.permanent && (mobile.value || props.temporary));
|
|
37510
|
+
const isSticky = computed(() => props.sticky && !isTemporary.value && location.value !== "bottom");
|
|
37511
|
+
useToggleScope(() => props.expandOnHover && props.rail != null, () => {
|
|
37512
|
+
watch(isHovering, (val2) => emit("update:rail", !val2));
|
|
37513
|
+
});
|
|
37514
|
+
useToggleScope(() => !props.disableResizeWatcher, () => {
|
|
37515
|
+
watch(isTemporary, (val2) => !props.permanent && nextTick(() => isActive.value = !val2));
|
|
37516
|
+
});
|
|
37517
|
+
useToggleScope(() => !props.disableRouteWatcher && !!router, () => {
|
|
37518
|
+
watch(router.currentRoute, () => isTemporary.value && (isActive.value = false));
|
|
37519
|
+
});
|
|
37520
|
+
watch(() => props.permanent, (val2) => {
|
|
37521
|
+
if (val2) isActive.value = true;
|
|
37522
|
+
});
|
|
37523
|
+
if (props.modelValue == null && !isTemporary.value) {
|
|
37524
|
+
isActive.value = props.permanent || !mobile.value;
|
|
37525
|
+
}
|
|
37526
|
+
const {
|
|
37527
|
+
isDragging,
|
|
37528
|
+
dragProgress
|
|
37529
|
+
} = useTouch({
|
|
37530
|
+
el: rootEl,
|
|
37531
|
+
isActive,
|
|
37532
|
+
isTemporary,
|
|
37533
|
+
width: width2,
|
|
37534
|
+
touchless: toRef(() => props.touchless),
|
|
37535
|
+
position: location
|
|
37536
|
+
});
|
|
37537
|
+
const layoutSize = computed(() => {
|
|
37538
|
+
const size = isTemporary.value ? 0 : props.rail && props.expandOnHover ? Number(props.railWidth) : width2.value;
|
|
37539
|
+
return isDragging.value ? size * dragProgress.value : size;
|
|
37540
|
+
});
|
|
37541
|
+
const {
|
|
37542
|
+
layoutItemStyles,
|
|
37543
|
+
layoutItemScrimStyles
|
|
37544
|
+
} = useLayoutItem({
|
|
37545
|
+
id: props.name,
|
|
37546
|
+
order: computed(() => parseInt(props.order, 10)),
|
|
37547
|
+
position: location,
|
|
37548
|
+
layoutSize,
|
|
37549
|
+
elementSize: width2,
|
|
37550
|
+
active: readonly(isActive),
|
|
37551
|
+
disableTransitions: toRef(() => isDragging.value),
|
|
37552
|
+
absolute: computed(() => (
|
|
37553
|
+
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
37554
|
+
props.absolute || isSticky.value && typeof isStuck.value !== "string"
|
|
37555
|
+
))
|
|
37556
|
+
});
|
|
37557
|
+
const {
|
|
37558
|
+
isStuck,
|
|
37559
|
+
stickyStyles
|
|
37560
|
+
} = useSticky({
|
|
37561
|
+
rootEl,
|
|
37562
|
+
isSticky,
|
|
37563
|
+
layoutItemStyles
|
|
37564
|
+
});
|
|
37565
|
+
const scrimColor = useBackgroundColor(() => {
|
|
37566
|
+
return typeof props.scrim === "string" ? props.scrim : null;
|
|
37567
|
+
});
|
|
37568
|
+
const scrimStyles = computed(() => ({
|
|
37569
|
+
...isDragging.value ? {
|
|
37570
|
+
opacity: dragProgress.value * 0.2,
|
|
37571
|
+
transition: "none"
|
|
37572
|
+
} : void 0,
|
|
37573
|
+
...layoutItemScrimStyles.value
|
|
37574
|
+
}));
|
|
37575
|
+
provideDefaults({
|
|
37576
|
+
VList: {
|
|
37577
|
+
bgColor: "transparent"
|
|
37578
|
+
}
|
|
37579
|
+
});
|
|
37580
|
+
useRender(() => {
|
|
37581
|
+
const hasImage = slots.image || props.image;
|
|
37582
|
+
return createElementVNode(Fragment, null, [createVNode(props.tag, mergeProps({
|
|
37583
|
+
"ref": rootEl,
|
|
37584
|
+
"onMouseenter": runOpenDelay,
|
|
37585
|
+
"onMouseleave": runCloseDelay,
|
|
37586
|
+
"class": ["v-navigation-drawer", `v-navigation-drawer--${location.value}`, {
|
|
37587
|
+
"v-navigation-drawer--expand-on-hover": props.expandOnHover,
|
|
37588
|
+
"v-navigation-drawer--floating": props.floating,
|
|
37589
|
+
"v-navigation-drawer--is-hovering": isHovering.value,
|
|
37590
|
+
"v-navigation-drawer--rail": props.rail,
|
|
37591
|
+
"v-navigation-drawer--temporary": isTemporary.value,
|
|
37592
|
+
"v-navigation-drawer--persistent": isPersistent.value,
|
|
37593
|
+
"v-navigation-drawer--active": isActive.value,
|
|
37594
|
+
"v-navigation-drawer--sticky": isSticky.value
|
|
37595
|
+
}, themeClasses.value, backgroundColorClasses.value, borderClasses.value, displayClasses.value, elevationClasses.value, roundedClasses.value, props.class],
|
|
37596
|
+
"style": [backgroundColorStyles.value, layoutItemStyles.value, ssrBootStyles.value, stickyStyles.value, props.style]
|
|
37597
|
+
}, scopeId, attrs), {
|
|
37598
|
+
default: () => {
|
|
37599
|
+
var _a, _b, _c;
|
|
37600
|
+
return [hasImage && createElementVNode("div", {
|
|
37601
|
+
"key": "image",
|
|
37602
|
+
"class": "v-navigation-drawer__img"
|
|
37603
|
+
}, [!slots.image ? createVNode(VImg, {
|
|
37604
|
+
"key": "image-img",
|
|
37605
|
+
"alt": "",
|
|
37606
|
+
"cover": true,
|
|
37607
|
+
"height": "inherit",
|
|
37608
|
+
"src": props.image
|
|
37609
|
+
}, null) : createVNode(VDefaultsProvider, {
|
|
37610
|
+
"key": "image-defaults",
|
|
37611
|
+
"disabled": !props.image,
|
|
37612
|
+
"defaults": {
|
|
37613
|
+
VImg: {
|
|
37614
|
+
alt: "",
|
|
37615
|
+
cover: true,
|
|
37616
|
+
height: "inherit",
|
|
37617
|
+
src: props.image
|
|
37618
|
+
}
|
|
37619
|
+
}
|
|
37620
|
+
}, slots.image)]), slots.prepend && createElementVNode("div", {
|
|
37621
|
+
"class": "v-navigation-drawer__prepend"
|
|
37622
|
+
}, [(_a = slots.prepend) == null ? void 0 : _a.call(slots)]), createElementVNode("div", {
|
|
37623
|
+
"class": "v-navigation-drawer__content"
|
|
37624
|
+
}, [(_b = slots.default) == null ? void 0 : _b.call(slots)]), slots.append && createElementVNode("div", {
|
|
37625
|
+
"class": "v-navigation-drawer__append"
|
|
37626
|
+
}, [(_c = slots.append) == null ? void 0 : _c.call(slots)])];
|
|
37627
|
+
}
|
|
37628
|
+
}), createVNode(Transition, {
|
|
37629
|
+
"name": "fade-transition"
|
|
37630
|
+
}, {
|
|
37631
|
+
default: () => [isTemporary.value && (isDragging.value || isActive.value) && !!props.scrim && createElementVNode("div", mergeProps({
|
|
37632
|
+
"class": ["v-navigation-drawer__scrim", scrimColor.backgroundColorClasses.value],
|
|
37633
|
+
"style": [scrimStyles.value, scrimColor.backgroundColorStyles.value],
|
|
37634
|
+
"onClick": () => {
|
|
37635
|
+
if (isPersistent.value) return;
|
|
37636
|
+
isActive.value = false;
|
|
37637
|
+
}
|
|
37638
|
+
}, scopeId), null)]
|
|
37639
|
+
})]);
|
|
37640
|
+
});
|
|
37641
|
+
return {
|
|
37642
|
+
isStuck
|
|
37643
|
+
};
|
|
37644
|
+
}
|
|
37645
|
+
});
|
|
37646
|
+
const _hoisted_1$2 = { class: "pa-5" };
|
|
37647
|
+
const _hoisted_2 = {
|
|
37648
|
+
key: 0,
|
|
37649
|
+
class: "pa-4 text-center"
|
|
37650
|
+
};
|
|
37651
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
37652
|
+
__name: "AppSidebar",
|
|
37653
|
+
props: {
|
|
37654
|
+
sidebarItems: {
|
|
37655
|
+
type: Array,
|
|
37656
|
+
required: true
|
|
37657
|
+
},
|
|
37658
|
+
getFilteredSidebarItems: {
|
|
37659
|
+
type: Function,
|
|
37660
|
+
required: true
|
|
37661
|
+
},
|
|
37662
|
+
logoComponent: {
|
|
37663
|
+
type: Object,
|
|
37664
|
+
// Vue component
|
|
37665
|
+
required: true
|
|
37666
|
+
},
|
|
37667
|
+
sidebarDrawer: {
|
|
37668
|
+
type: Boolean,
|
|
37669
|
+
required: true
|
|
37670
|
+
},
|
|
37671
|
+
miniSidebar: {
|
|
37672
|
+
type: Boolean,
|
|
37673
|
+
required: true
|
|
37674
|
+
}
|
|
37675
|
+
},
|
|
37676
|
+
emits: ["update:sidebarDrawer"],
|
|
37677
|
+
setup(__props, { emit: __emit }) {
|
|
37678
|
+
const props = __props;
|
|
37679
|
+
const emit = __emit;
|
|
37680
|
+
const sidebarMenu = computed(() => {
|
|
37681
|
+
var _a;
|
|
37682
|
+
try {
|
|
37683
|
+
const filtered = (_a = props.getFilteredSidebarItems) == null ? void 0 : _a.call(props);
|
|
37684
|
+
if (Array.isArray(filtered)) return filtered;
|
|
37685
|
+
} catch {
|
|
37686
|
+
}
|
|
37687
|
+
return props.sidebarItems;
|
|
37688
|
+
});
|
|
37689
|
+
return (_ctx, _cache) => {
|
|
37690
|
+
const _component_perfect_scrollbar = resolveComponent("perfect-scrollbar");
|
|
37691
|
+
return openBlock(), createBlock(VNavigationDrawer, {
|
|
37692
|
+
right: "",
|
|
37693
|
+
"model-value": __props.sidebarDrawer,
|
|
37694
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:sidebarDrawer", $event)),
|
|
37695
|
+
elevation: "0",
|
|
37696
|
+
"rail-width": "82",
|
|
37697
|
+
"mobile-breakpoint": "lg",
|
|
37698
|
+
app: "",
|
|
37699
|
+
rail: __props.miniSidebar,
|
|
37700
|
+
class: normalizeClass(["rightSidebar", { "sidebar-closed": !__props.sidebarDrawer }])
|
|
37701
|
+
}, {
|
|
37702
|
+
default: withCtx(() => [
|
|
37703
|
+
createElementVNode("div", _hoisted_1$2, [
|
|
37704
|
+
(openBlock(), createBlock(resolveDynamicComponent(__props.logoComponent)))
|
|
37705
|
+
]),
|
|
37706
|
+
createVNode(_component_perfect_scrollbar, { class: "scrollnavbar" }, {
|
|
37707
|
+
default: withCtx(() => [
|
|
37708
|
+
createVNode(VList, { class: "pa-4" }, {
|
|
37709
|
+
default: withCtx(() => [
|
|
37710
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(sidebarMenu.value, (item, i) => {
|
|
37711
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
37712
|
+
item.header ? (openBlock(), createBlock(_sfc_main$3, {
|
|
37713
|
+
key: 0,
|
|
37714
|
+
item
|
|
37715
|
+
}, null, 8, ["item"])) : item.divider ? (openBlock(), createBlock(VDivider, {
|
|
37716
|
+
key: 1,
|
|
37717
|
+
class: "my-3"
|
|
37718
|
+
})) : item.children ? (openBlock(), createBlock(_sfc_main$4, {
|
|
37719
|
+
key: 2,
|
|
37720
|
+
item,
|
|
37721
|
+
level: 0,
|
|
37722
|
+
class: "leftPadding"
|
|
37723
|
+
}, null, 8, ["item"])) : (openBlock(), createBlock(_sfc_main$5, {
|
|
37724
|
+
key: 3,
|
|
37725
|
+
item,
|
|
37726
|
+
level: 0,
|
|
37727
|
+
class: "leftPadding"
|
|
37728
|
+
}, null, 8, ["item"]))
|
|
37729
|
+
], 64);
|
|
37730
|
+
}), 128))
|
|
37731
|
+
]),
|
|
37732
|
+
_: 1
|
|
37733
|
+
}),
|
|
37734
|
+
__props.sidebarDrawer ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
37735
|
+
createVNode(VChip, {
|
|
37736
|
+
color: "inputBorder",
|
|
37737
|
+
size: "small"
|
|
37738
|
+
}, {
|
|
37739
|
+
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
37740
|
+
createTextVNode("نمایشی", -1)
|
|
37741
|
+
])]),
|
|
37742
|
+
_: 1
|
|
37743
|
+
})
|
|
37744
|
+
])) : createCommentVNode("", true)
|
|
37745
|
+
]),
|
|
37746
|
+
_: 1
|
|
37747
|
+
})
|
|
37748
|
+
]),
|
|
37749
|
+
_: 1
|
|
37750
|
+
}, 8, ["model-value", "rail", "class"]);
|
|
37751
|
+
};
|
|
37752
|
+
}
|
|
37753
|
+
});
|
|
36953
37754
|
const makeVToolbarTitleProps = propsFactory({
|
|
36954
37755
|
text: String,
|
|
36955
37756
|
...makeComponentProps(),
|
|
@@ -37332,203 +38133,6 @@ const VAppBar = genericComponent()({
|
|
|
37332
38133
|
return {};
|
|
37333
38134
|
}
|
|
37334
38135
|
});
|
|
37335
|
-
const _hoisted_1$2 = {
|
|
37336
|
-
key: 1,
|
|
37337
|
-
class: "header-menu-container"
|
|
37338
|
-
};
|
|
37339
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
37340
|
-
__name: "AppSidebar",
|
|
37341
|
-
props: {
|
|
37342
|
-
menuOrientation: { type: String, default: "horizontal" },
|
|
37343
|
-
miniSidebar: { type: Boolean, default: false },
|
|
37344
|
-
userInfoLoaded: { type: Boolean, default: false },
|
|
37345
|
-
headerMenu: { type: Array, default: () => [] },
|
|
37346
|
-
// Events sent back to project
|
|
37347
|
-
onToggleMiniSidebar: Function,
|
|
37348
|
-
onToggleCustomizer: Function,
|
|
37349
|
-
onToggleSidebarDrawer: Function
|
|
37350
|
-
},
|
|
37351
|
-
setup(__props) {
|
|
37352
|
-
const props = __props;
|
|
37353
|
-
ref(false);
|
|
37354
|
-
const computedHeaderMenu = computed(() => {
|
|
37355
|
-
if (props.userInfoLoaded) return props.headerMenu;
|
|
37356
|
-
return props.headerMenu;
|
|
37357
|
-
});
|
|
37358
|
-
return (_ctx, _cache) => {
|
|
37359
|
-
return openBlock(), createBlock(VAppBar, {
|
|
37360
|
-
elevation: "0",
|
|
37361
|
-
height: "80"
|
|
37362
|
-
}, {
|
|
37363
|
-
default: withCtx(() => [
|
|
37364
|
-
__props.menuOrientation === "vertical" ? (openBlock(), createBlock(VBtn, {
|
|
37365
|
-
key: 0,
|
|
37366
|
-
class: "hidden-md-and-down text-secondary",
|
|
37367
|
-
color: "lightsecondary",
|
|
37368
|
-
icon: "",
|
|
37369
|
-
rounded: "sm",
|
|
37370
|
-
variant: "flat",
|
|
37371
|
-
size: "small",
|
|
37372
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => props.onToggleMiniSidebar && props.onToggleMiniSidebar(), ["stop"]))
|
|
37373
|
-
}, {
|
|
37374
|
-
default: withCtx(() => [
|
|
37375
|
-
createVNode(unref(IconMenu2), {
|
|
37376
|
-
size: "20",
|
|
37377
|
-
"stroke-width": "1.5"
|
|
37378
|
-
})
|
|
37379
|
-
]),
|
|
37380
|
-
_: 1
|
|
37381
|
-
})) : createCommentVNode("", true),
|
|
37382
|
-
createVNode(VBtn, {
|
|
37383
|
-
class: "hidden-lg-and-up text-secondary ms-3",
|
|
37384
|
-
color: "lightsecondary",
|
|
37385
|
-
icon: "",
|
|
37386
|
-
rounded: "sm",
|
|
37387
|
-
variant: "flat",
|
|
37388
|
-
size: "small",
|
|
37389
|
-
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => props.onToggleSidebarDrawer && props.onToggleSidebarDrawer(), ["stop"]))
|
|
37390
|
-
}, {
|
|
37391
|
-
default: withCtx(() => [
|
|
37392
|
-
createVNode(unref(IconMenu2), {
|
|
37393
|
-
size: "20",
|
|
37394
|
-
"stroke-width": "1.5"
|
|
37395
|
-
})
|
|
37396
|
-
]),
|
|
37397
|
-
_: 1
|
|
37398
|
-
}),
|
|
37399
|
-
createVNode(VBtn, {
|
|
37400
|
-
class: "hidden-md-and-down text-secondary mr-2 ml-2",
|
|
37401
|
-
color: "lightsecondary",
|
|
37402
|
-
icon: "",
|
|
37403
|
-
rounded: "sm",
|
|
37404
|
-
variant: "flat",
|
|
37405
|
-
size: "small",
|
|
37406
|
-
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => props.onToggleCustomizer && props.onToggleCustomizer(), ["stop"]))
|
|
37407
|
-
}, {
|
|
37408
|
-
default: withCtx(() => [
|
|
37409
|
-
createVNode(unref(IconPalette), {
|
|
37410
|
-
size: "20",
|
|
37411
|
-
"stroke-width": "1.5"
|
|
37412
|
-
})
|
|
37413
|
-
]),
|
|
37414
|
-
_: 1
|
|
37415
|
-
}),
|
|
37416
|
-
__props.menuOrientation === "horizontal" ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
37417
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(computedHeaderMenu.value, (item, i) => {
|
|
37418
|
-
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
37419
|
-
!item.children ? (openBlock(), createBlock(VBtn, {
|
|
37420
|
-
key: 0,
|
|
37421
|
-
to: item.type === "external" ? "" : item.to,
|
|
37422
|
-
href: item.type === "external" ? item.to : "",
|
|
37423
|
-
target: item.type === "external" ? "_blank" : "",
|
|
37424
|
-
variant: "text",
|
|
37425
|
-
disabled: item.disabled,
|
|
37426
|
-
class: "header-menu-btn mr-3",
|
|
37427
|
-
color: "primary"
|
|
37428
|
-
}, {
|
|
37429
|
-
default: withCtx(() => [
|
|
37430
|
-
item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
|
|
37431
|
-
key: 0,
|
|
37432
|
-
class: "mr-2",
|
|
37433
|
-
size: "18"
|
|
37434
|
-
})) : createCommentVNode("", true),
|
|
37435
|
-
createElementVNode("span", null, toDisplayString(item.title), 1)
|
|
37436
|
-
]),
|
|
37437
|
-
_: 2
|
|
37438
|
-
}, 1032, ["to", "href", "target", "disabled"])) : (openBlock(), createBlock(VMenu, {
|
|
37439
|
-
key: 1,
|
|
37440
|
-
"offset-y": ""
|
|
37441
|
-
}, {
|
|
37442
|
-
activator: withCtx(({ props: mprops }) => [
|
|
37443
|
-
createVNode(VBtn, mergeProps({ ref_for: true }, mprops, {
|
|
37444
|
-
variant: "text",
|
|
37445
|
-
class: "header-menu-btn",
|
|
37446
|
-
color: "primary mr-3"
|
|
37447
|
-
}), {
|
|
37448
|
-
default: withCtx(() => [
|
|
37449
|
-
item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
|
|
37450
|
-
key: 0,
|
|
37451
|
-
size: "18",
|
|
37452
|
-
class: "mr-2"
|
|
37453
|
-
})) : createCommentVNode("", true),
|
|
37454
|
-
createElementVNode("span", null, toDisplayString(item.title), 1),
|
|
37455
|
-
createVNode(unref(IconChevronDown), {
|
|
37456
|
-
size: "18",
|
|
37457
|
-
class: "ml-2"
|
|
37458
|
-
})
|
|
37459
|
-
]),
|
|
37460
|
-
_: 2
|
|
37461
|
-
}, 1040)
|
|
37462
|
-
]),
|
|
37463
|
-
default: withCtx(() => [
|
|
37464
|
-
createVNode(VList, null, {
|
|
37465
|
-
default: withCtx(() => [
|
|
37466
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (child, c) => {
|
|
37467
|
-
return openBlock(), createBlock(VListItem, {
|
|
37468
|
-
key: c,
|
|
37469
|
-
to: child.type === "external" ? "" : child.to,
|
|
37470
|
-
href: child.type === "external" ? child.to : "",
|
|
37471
|
-
target: child.type === "external" ? "_blank" : ""
|
|
37472
|
-
}, {
|
|
37473
|
-
default: withCtx(() => [
|
|
37474
|
-
createVNode(VListItemTitle, null, {
|
|
37475
|
-
default: withCtx(() => [
|
|
37476
|
-
createTextVNode(toDisplayString(child.title), 1)
|
|
37477
|
-
]),
|
|
37478
|
-
_: 2
|
|
37479
|
-
}, 1024)
|
|
37480
|
-
]),
|
|
37481
|
-
_: 2
|
|
37482
|
-
}, 1032, ["to", "href", "target"]);
|
|
37483
|
-
}), 128))
|
|
37484
|
-
]),
|
|
37485
|
-
_: 2
|
|
37486
|
-
}, 1024)
|
|
37487
|
-
]),
|
|
37488
|
-
_: 2
|
|
37489
|
-
}, 1024))
|
|
37490
|
-
], 64);
|
|
37491
|
-
}), 128))
|
|
37492
|
-
])) : createCommentVNode("", true),
|
|
37493
|
-
createVNode(VSpacer),
|
|
37494
|
-
renderSlot(_ctx.$slots, "notifications", {}, () => [
|
|
37495
|
-
createVNode(VBtn, {
|
|
37496
|
-
icon: "",
|
|
37497
|
-
class: "text-secondary mx-3",
|
|
37498
|
-
color: "lightsecondary",
|
|
37499
|
-
rounded: "sm",
|
|
37500
|
-
size: "small",
|
|
37501
|
-
variant: "flat"
|
|
37502
|
-
}, {
|
|
37503
|
-
default: withCtx(() => [
|
|
37504
|
-
createVNode(unref(IconBell), {
|
|
37505
|
-
"stroke-width": "1.5",
|
|
37506
|
-
size: "20"
|
|
37507
|
-
})
|
|
37508
|
-
]),
|
|
37509
|
-
_: 1
|
|
37510
|
-
})
|
|
37511
|
-
], true),
|
|
37512
|
-
renderSlot(_ctx.$slots, "profile", {}, () => [
|
|
37513
|
-
createVNode(VBtn, {
|
|
37514
|
-
class: "profileBtn text-primary",
|
|
37515
|
-
color: "lightprimary",
|
|
37516
|
-
variant: "flat",
|
|
37517
|
-
rounded: "pill"
|
|
37518
|
-
}, {
|
|
37519
|
-
default: withCtx(() => [
|
|
37520
|
-
createVNode(unref(IconSettings))
|
|
37521
|
-
]),
|
|
37522
|
-
_: 1
|
|
37523
|
-
})
|
|
37524
|
-
], true)
|
|
37525
|
-
]),
|
|
37526
|
-
_: 3
|
|
37527
|
-
});
|
|
37528
|
-
};
|
|
37529
|
-
}
|
|
37530
|
-
});
|
|
37531
|
-
const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-f9cc73a9"]]);
|
|
37532
38136
|
const _hoisted_1$1 = {
|
|
37533
38137
|
key: 1,
|
|
37534
38138
|
class: "header-menu-container"
|
|
@@ -37536,18 +38140,38 @@ const _hoisted_1$1 = {
|
|
|
37536
38140
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
37537
38141
|
__name: "AppHeader",
|
|
37538
38142
|
props: {
|
|
37539
|
-
menuOrientation: {
|
|
37540
|
-
|
|
37541
|
-
|
|
37542
|
-
|
|
38143
|
+
menuOrientation: {
|
|
38144
|
+
type: String,
|
|
38145
|
+
default: "horizontal"
|
|
38146
|
+
},
|
|
38147
|
+
miniSidebar: {
|
|
38148
|
+
type: Boolean,
|
|
38149
|
+
default: false
|
|
38150
|
+
},
|
|
38151
|
+
userInfoLoaded: {
|
|
38152
|
+
type: Boolean,
|
|
38153
|
+
default: false
|
|
38154
|
+
},
|
|
38155
|
+
headerMenu: {
|
|
38156
|
+
type: Array,
|
|
38157
|
+
default: () => []
|
|
38158
|
+
},
|
|
37543
38159
|
// Events sent back to project
|
|
37544
|
-
onToggleMiniSidebar: {
|
|
37545
|
-
|
|
37546
|
-
|
|
38160
|
+
onToggleMiniSidebar: {
|
|
38161
|
+
type: Function,
|
|
38162
|
+
default: void 0
|
|
38163
|
+
},
|
|
38164
|
+
onToggleCustomizer: {
|
|
38165
|
+
type: Function,
|
|
38166
|
+
default: void 0
|
|
38167
|
+
},
|
|
38168
|
+
onToggleSidebarDrawer: {
|
|
38169
|
+
type: Function,
|
|
38170
|
+
default: void 0
|
|
38171
|
+
}
|
|
37547
38172
|
},
|
|
37548
38173
|
setup(__props) {
|
|
37549
38174
|
const props = __props;
|
|
37550
|
-
ref(false);
|
|
37551
38175
|
const computedHeaderMenu = computed(() => {
|
|
37552
38176
|
if (props.userInfoLoaded) return props.headerMenu;
|
|
37553
38177
|
return props.headerMenu;
|
|
@@ -37555,7 +38179,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
37555
38179
|
return (_ctx, _cache) => {
|
|
37556
38180
|
return openBlock(), createBlock(VAppBar, {
|
|
37557
38181
|
elevation: "0",
|
|
37558
|
-
height: "80"
|
|
38182
|
+
height: "80",
|
|
38183
|
+
class: "app-header topbar"
|
|
37559
38184
|
}, {
|
|
37560
38185
|
default: withCtx(() => [
|
|
37561
38186
|
__props.menuOrientation === "vertical" ? (openBlock(), createBlock(VBtn, {
|
|
@@ -37569,9 +38194,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
37569
38194
|
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => props.onToggleMiniSidebar && props.onToggleMiniSidebar(), ["stop"]))
|
|
37570
38195
|
}, {
|
|
37571
38196
|
default: withCtx(() => [
|
|
37572
|
-
createVNode(
|
|
37573
|
-
|
|
37574
|
-
|
|
38197
|
+
createVNode(VIcon, { size: "20" }, {
|
|
38198
|
+
default: withCtx(() => [..._cache[3] || (_cache[3] = [
|
|
38199
|
+
createTextVNode("mdi-menu", -1)
|
|
38200
|
+
])]),
|
|
38201
|
+
_: 1
|
|
37575
38202
|
})
|
|
37576
38203
|
]),
|
|
37577
38204
|
_: 1
|
|
@@ -37586,9 +38213,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
37586
38213
|
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => props.onToggleSidebarDrawer && props.onToggleSidebarDrawer(), ["stop"]))
|
|
37587
38214
|
}, {
|
|
37588
38215
|
default: withCtx(() => [
|
|
37589
|
-
createVNode(
|
|
37590
|
-
|
|
37591
|
-
|
|
38216
|
+
createVNode(VIcon, { size: "20" }, {
|
|
38217
|
+
default: withCtx(() => [..._cache[4] || (_cache[4] = [
|
|
38218
|
+
createTextVNode("mdi-menu", -1)
|
|
38219
|
+
])]),
|
|
38220
|
+
_: 1
|
|
37592
38221
|
})
|
|
37593
38222
|
]),
|
|
37594
38223
|
_: 1
|
|
@@ -37603,9 +38232,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
37603
38232
|
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => props.onToggleCustomizer && props.onToggleCustomizer(), ["stop"]))
|
|
37604
38233
|
}, {
|
|
37605
38234
|
default: withCtx(() => [
|
|
37606
|
-
createVNode(
|
|
37607
|
-
|
|
37608
|
-
|
|
38235
|
+
createVNode(VIcon, { size: "20" }, {
|
|
38236
|
+
default: withCtx(() => [..._cache[5] || (_cache[5] = [
|
|
38237
|
+
createTextVNode("mdi-palette", -1)
|
|
38238
|
+
])]),
|
|
38239
|
+
_: 1
|
|
37609
38240
|
})
|
|
37610
38241
|
]),
|
|
37611
38242
|
_: 1
|
|
@@ -37649,9 +38280,14 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
37649
38280
|
class: "mr-2"
|
|
37650
38281
|
})) : createCommentVNode("", true),
|
|
37651
38282
|
createElementVNode("span", null, toDisplayString(item.title), 1),
|
|
37652
|
-
createVNode(
|
|
38283
|
+
createVNode(VIcon, {
|
|
37653
38284
|
size: "18",
|
|
37654
38285
|
class: "ml-2"
|
|
38286
|
+
}, {
|
|
38287
|
+
default: withCtx(() => [..._cache[6] || (_cache[6] = [
|
|
38288
|
+
createTextVNode("mdi-chevron-down", -1)
|
|
38289
|
+
])]),
|
|
38290
|
+
_: 1
|
|
37655
38291
|
})
|
|
37656
38292
|
]),
|
|
37657
38293
|
_: 2
|
|
@@ -37698,9 +38334,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
37698
38334
|
variant: "flat"
|
|
37699
38335
|
}, {
|
|
37700
38336
|
default: withCtx(() => [
|
|
37701
|
-
createVNode(
|
|
37702
|
-
|
|
37703
|
-
|
|
38337
|
+
createVNode(VIcon, { size: "20" }, {
|
|
38338
|
+
default: withCtx(() => [..._cache[7] || (_cache[7] = [
|
|
38339
|
+
createTextVNode("mdi-bell-outline", -1)
|
|
38340
|
+
])]),
|
|
38341
|
+
_: 1
|
|
37704
38342
|
})
|
|
37705
38343
|
]),
|
|
37706
38344
|
_: 1
|
|
@@ -37714,7 +38352,12 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
37714
38352
|
rounded: "pill"
|
|
37715
38353
|
}, {
|
|
37716
38354
|
default: withCtx(() => [
|
|
37717
|
-
createVNode(
|
|
38355
|
+
createVNode(VIcon, null, {
|
|
38356
|
+
default: withCtx(() => [..._cache[8] || (_cache[8] = [
|
|
38357
|
+
createTextVNode("mdi-cog", -1)
|
|
38358
|
+
])]),
|
|
38359
|
+
_: 1
|
|
38360
|
+
})
|
|
37718
38361
|
]),
|
|
37719
38362
|
_: 1
|
|
37720
38363
|
})
|
|
@@ -37725,7 +38368,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
|
37725
38368
|
};
|
|
37726
38369
|
}
|
|
37727
38370
|
});
|
|
37728
|
-
const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-
|
|
38371
|
+
const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-4c30d18d"]]);
|
|
37729
38372
|
const makeVAppProps = propsFactory({
|
|
37730
38373
|
...makeComponentProps(),
|
|
37731
38374
|
...omit(makeLayoutProps(), ["fullHeight"]),
|
|
@@ -37812,18 +38455,8 @@ const _hoisted_1 = { class: "page-wrapper" };
|
|
|
37812
38455
|
const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
37813
38456
|
__name: "AppLayout",
|
|
37814
38457
|
props: {
|
|
37815
|
-
header: {
|
|
37816
|
-
|
|
37817
|
-
miniSidebar: false,
|
|
37818
|
-
userInfoLoaded: false,
|
|
37819
|
-
headerMenu: []
|
|
37820
|
-
}) },
|
|
37821
|
-
sidebar: { default: () => ({
|
|
37822
|
-
menuOrientation: "vertical",
|
|
37823
|
-
miniSidebar: false,
|
|
37824
|
-
userInfoLoaded: false,
|
|
37825
|
-
headerMenu: []
|
|
37826
|
-
}) }
|
|
38458
|
+
header: {},
|
|
38459
|
+
sidebar: {}
|
|
37827
38460
|
},
|
|
37828
38461
|
setup(__props) {
|
|
37829
38462
|
return (_ctx, _cache) => {
|
|
@@ -37838,7 +38471,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
37838
38471
|
]),
|
|
37839
38472
|
_: 3
|
|
37840
38473
|
}, 16),
|
|
37841
|
-
createVNode(
|
|
38474
|
+
createVNode(_sfc_main$2, {
|
|
38475
|
+
sidebarItems: __props.sidebar.sidebarItems,
|
|
38476
|
+
getFilteredSidebarItems: __props.sidebar.getFilteredSidebarItems,
|
|
38477
|
+
logoComponent: __props.sidebar.logoComponent,
|
|
38478
|
+
sidebarDrawer: __props.sidebar.sidebarDrawer,
|
|
38479
|
+
miniSidebar: __props.sidebar.miniSidebar,
|
|
38480
|
+
"onUpdate:sidebarDrawer": __props.sidebar["onUpdate:sidebarDrawer"],
|
|
38481
|
+
class: "app-sidebar"
|
|
38482
|
+
}, null, 8, ["sidebarItems", "getFilteredSidebarItems", "logoComponent", "sidebarDrawer", "miniSidebar", "onUpdate:sidebarDrawer"]),
|
|
37842
38483
|
createVNode(VMain, null, {
|
|
37843
38484
|
default: withCtx(() => [
|
|
37844
38485
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -37853,7 +38494,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
37853
38494
|
};
|
|
37854
38495
|
}
|
|
37855
38496
|
});
|
|
37856
|
-
const AppLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-
|
|
38497
|
+
const AppLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-82bccb54"]]);
|
|
37857
38498
|
function useDataTable(options) {
|
|
37858
38499
|
const items = ref([]);
|
|
37859
38500
|
const loading = ref(false);
|
|
@@ -38416,28 +39057,28 @@ const index = {
|
|
|
38416
39057
|
export {
|
|
38417
39058
|
AppHeader,
|
|
38418
39059
|
AppLayout,
|
|
38419
|
-
AppSidebar,
|
|
39060
|
+
_sfc_main$2 as AppSidebar,
|
|
38420
39061
|
AppStepper,
|
|
38421
|
-
_sfc_main$
|
|
38422
|
-
_sfc_main$
|
|
39062
|
+
_sfc_main$l as BaseBreadcrumb,
|
|
39063
|
+
_sfc_main$k as BaseIcon,
|
|
38423
39064
|
BooleanEnum,
|
|
38424
39065
|
BooleanEnumOptions,
|
|
38425
|
-
_sfc_main$
|
|
39066
|
+
_sfc_main$j as ConfirmDialog,
|
|
38426
39067
|
CustomAutocomplete,
|
|
38427
|
-
_sfc_main$
|
|
39068
|
+
_sfc_main$f as CustomDataTable,
|
|
38428
39069
|
DateConverter,
|
|
38429
39070
|
DescriptionInput,
|
|
38430
39071
|
DigitLimit,
|
|
38431
39072
|
DownloadButton,
|
|
38432
39073
|
GreetingUtils,
|
|
38433
39074
|
Loading,
|
|
38434
|
-
_sfc_main$
|
|
39075
|
+
_sfc_main$h as MoneyInput,
|
|
38435
39076
|
NationalCodeValidator,
|
|
38436
39077
|
PdfViewer,
|
|
38437
39078
|
ShamsiDatePicker,
|
|
38438
|
-
_sfc_main$
|
|
38439
|
-
_sfc_main$
|
|
38440
|
-
_sfc_main$
|
|
39079
|
+
_sfc_main$b as UiChildCard,
|
|
39080
|
+
_sfc_main$a as UiParentCard,
|
|
39081
|
+
_sfc_main$9 as VPriceTextField,
|
|
38441
39082
|
configureAuth,
|
|
38442
39083
|
configureAxiosInstance,
|
|
38443
39084
|
index as default,
|