@amirjalili1374/ui-kit 1.3.25 → 1.3.27
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 +71 -82
- package/dist/components/layout/AppHeader.vue.d.ts.map +1 -1
- package/dist/components/layout/AppLayout.vue.d.ts +23 -39
- package/dist/components/layout/AppLayout.vue.d.ts.map +1 -1
- package/dist/components/layout/AppSidebar.vue.d.ts +47 -52
- package/dist/components/layout/AppSidebar.vue.d.ts.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/plugins/mdi-icon.d.ts +1 -0
- package/dist/plugins/mdi-icon.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types/components/layout/menu.d.ts +19 -0
- package/dist/types/components/layout/menu.d.ts.map +1 -0
- package/dist/ui-kit.cjs.js +1 -1
- package/dist/ui-kit.cjs.js.map +1 -1
- package/dist/ui-kit.es.js +449 -1305
- 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 } from "@tabler/icons-vue";
|
|
2
|
+
import { IconHome, IconArrowBadgeLeft, IconChevronDown, IconChevronRight, IconMinus, IconPlus, IconRefresh, IconChevronLeft, IconDownload, IconPrinter, IconMaximize, IconMinimize, IconX, IconFileText, IconCheck, IconPencil, IconClock, IconMenu2, IconPalette, IconBell, IconSettings } 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$
|
|
3890
|
-
const _hoisted_3$
|
|
3891
|
-
const _sfc_main$
|
|
3889
|
+
const _hoisted_2$5 = { class: "d-flex align-center gap-2" };
|
|
3890
|
+
const _hoisted_3$5 = { class: "d-flex align-center gap-2" };
|
|
3891
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent$1({
|
|
3892
3892
|
__name: "BaseBreadcrumb",
|
|
3893
3893
|
props: {
|
|
3894
3894
|
title: String,
|
|
@@ -3932,7 +3932,7 @@ const _sfc_main$l = /* @__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$5, [
|
|
3936
3936
|
createVNode(unref(IconArrowBadgeLeft), { stroke: "{2}" })
|
|
3937
3937
|
])
|
|
3938
3938
|
]),
|
|
@@ -3941,7 +3941,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
|
|
|
3941
3941
|
size: "16",
|
|
3942
3942
|
class: "text-secondary ml-2"
|
|
3943
3943
|
}),
|
|
3944
|
-
createElementVNode("div", _hoisted_3$
|
|
3944
|
+
createElementVNode("div", _hoisted_3$5, [
|
|
3945
3945
|
createVNode(unref(IconArrowBadgeLeft), { stroke: "{2}" })
|
|
3946
3946
|
])
|
|
3947
3947
|
]),
|
|
@@ -3965,7 +3965,7 @@ const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
|
|
|
3965
3965
|
};
|
|
3966
3966
|
}
|
|
3967
3967
|
});
|
|
3968
|
-
const _sfc_main$
|
|
3968
|
+
const _sfc_main$h = /* @__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$g = /* @__PURE__ */ defineComponent$1({
|
|
6588
6588
|
__name: "ConfirmDialog",
|
|
6589
6589
|
props: {
|
|
6590
6590
|
modelValue: { type: Boolean },
|
|
@@ -12592,16 +12592,16 @@ const VTooltip = genericComponent()({
|
|
|
12592
12592
|
}
|
|
12593
12593
|
});
|
|
12594
12594
|
const _hoisted_1$b = { class: "ca-item-title" };
|
|
12595
|
-
const _hoisted_2$
|
|
12596
|
-
const _hoisted_3$
|
|
12597
|
-
const _hoisted_4$
|
|
12598
|
-
const _hoisted_5$
|
|
12595
|
+
const _hoisted_2$4 = { class: "ca-item-subtitle" };
|
|
12596
|
+
const _hoisted_3$4 = { class: "ca-group-tooltip" };
|
|
12597
|
+
const _hoisted_4$2 = { class: "ca-group-tooltip-header" };
|
|
12598
|
+
const _hoisted_5$2 = { class: "ca-group-count" };
|
|
12599
12599
|
const _hoisted_6$2 = { class: "ca-group-members" };
|
|
12600
12600
|
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$f = /* @__PURE__ */ defineComponent$1({
|
|
12605
12605
|
__name: "CustomAutocomplete",
|
|
12606
12606
|
props: {
|
|
12607
12607
|
fields: {},
|
|
@@ -12735,7 +12735,7 @@ const _sfc_main$i = /* @__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$4, toDisplayString(resolveSubtitle(item.raw ?? item)), 1)
|
|
12739
12739
|
]),
|
|
12740
12740
|
key: "0"
|
|
12741
12741
|
} : void 0
|
|
@@ -12746,10 +12746,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent$1({
|
|
|
12746
12746
|
item: item.raw ?? item,
|
|
12747
12747
|
groupMembers: getGroupMembers(item.raw ?? item)
|
|
12748
12748
|
}, () => [
|
|
12749
|
-
createElementVNode("div", _hoisted_3$
|
|
12750
|
-
createElementVNode("div", _hoisted_4$
|
|
12749
|
+
createElementVNode("div", _hoisted_3$4, [
|
|
12750
|
+
createElementVNode("div", _hoisted_4$2, [
|
|
12751
12751
|
createElementVNode("strong", null, toDisplayString(resolveTitle(item.raw ?? item)), 1),
|
|
12752
|
-
createElementVNode("span", _hoisted_5$
|
|
12752
|
+
createElementVNode("span", _hoisted_5$2, toDisplayString(getGroupMembers(item.raw ?? item).length) + " آیتم", 1)
|
|
12753
12753
|
]),
|
|
12754
12754
|
createElementVNode("div", _hoisted_6$2, [
|
|
12755
12755
|
(openBlock(true), createElementBlock(Fragment, null, renderList(getGroupMembers(item.raw ?? item), (member, idx) => {
|
|
@@ -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$f, [["__scopeId", "data-v-4c17f7bd"]]);
|
|
12816
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent$1({
|
|
12817
12817
|
__name: "MoneyInput",
|
|
12818
12818
|
props: {
|
|
12819
12819
|
modelValue: {
|
|
@@ -12920,7 +12920,7 @@ const _sfc_main$h = /* @__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$d = /* @__PURE__ */ defineComponent$1({
|
|
12924
12924
|
__name: "ShamsiDatePicker",
|
|
12925
12925
|
props: {
|
|
12926
12926
|
modelValue: { default: "" },
|
|
@@ -13031,7 +13031,7 @@ const _sfc_main$g = /* @__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$d, [["__scopeId", "data-v-d56f50fe"]]);
|
|
13035
13035
|
function useTableSelection(items, options = {}) {
|
|
13036
13036
|
const selectedItems = ref([]);
|
|
13037
13037
|
const expandedGroups = ref(/* @__PURE__ */ new Set());
|
|
@@ -16921,13 +16921,13 @@ const _hoisted_1$9 = {
|
|
|
16921
16921
|
key: 0,
|
|
16922
16922
|
class: "page-title"
|
|
16923
16923
|
};
|
|
16924
|
-
const _hoisted_2$
|
|
16925
|
-
const _hoisted_3$
|
|
16926
|
-
const _hoisted_4$
|
|
16924
|
+
const _hoisted_2$3 = { class: "title-text" };
|
|
16925
|
+
const _hoisted_3$3 = { class: "action-buttons" };
|
|
16926
|
+
const _hoisted_4$1 = {
|
|
16927
16927
|
key: 3,
|
|
16928
16928
|
class: "selection-actions"
|
|
16929
16929
|
};
|
|
16930
|
-
const _hoisted_5$
|
|
16930
|
+
const _hoisted_5$1 = {
|
|
16931
16931
|
key: 0,
|
|
16932
16932
|
class: "selected-actions"
|
|
16933
16933
|
};
|
|
@@ -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$c = /* @__PURE__ */ defineComponent$1({
|
|
16979
16979
|
...{ inheritAttrs: false },
|
|
16980
16980
|
__name: "CustomDataTable",
|
|
16981
16981
|
props: {
|
|
@@ -17885,9 +17885,9 @@ const _sfc_main$f = /* @__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$3, toDisplayString(props.title), 1)
|
|
17889
17889
|
])) : createCommentVNode("", true),
|
|
17890
|
-
createElementVNode("div", _hoisted_3$
|
|
17890
|
+
createElementVNode("div", _hoisted_3$3, [
|
|
17891
17891
|
((_a = props.actions) == null ? void 0 : _a.includes("create")) ? (openBlock(), createBlock(VBtn, {
|
|
17892
17892
|
key: 0,
|
|
17893
17893
|
color: "green",
|
|
@@ -17920,7 +17920,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
17920
17920
|
])]),
|
|
17921
17921
|
_: 1
|
|
17922
17922
|
}, 8, ["onClick", "loading"])) : createCommentVNode("", true),
|
|
17923
|
-
props.selectable && hasSelection.value ? (openBlock(), createElementBlock("div", _hoisted_4$
|
|
17923
|
+
props.selectable && hasSelection.value ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
|
|
17924
17924
|
createVNode(VChip, {
|
|
17925
17925
|
color: "primary",
|
|
17926
17926
|
class: "me-2"
|
|
@@ -17947,7 +17947,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
|
|
|
17947
17947
|
appear: ""
|
|
17948
17948
|
}, {
|
|
17949
17949
|
default: withCtx(() => [
|
|
17950
|
-
props.bulkMode && hasValidSelection.value || props.enableGroupDelete && hasSelection.value ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
17950
|
+
props.bulkMode && hasValidSelection.value || props.enableGroupDelete && hasSelection.value ? (openBlock(), createElementBlock("div", _hoisted_5$1, [
|
|
17951
17951
|
props.enableGroupDelete ? (openBlock(), createBlock(VBtn, {
|
|
17952
17952
|
key: 0,
|
|
17953
17953
|
color: "red",
|
|
@@ -18684,7 +18684,7 @@ const _sfc_main$f = /* @__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$e, {
|
|
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$f = /* @__PURE__ */ defineComponent$1({
|
|
|
19070
19070
|
}
|
|
19071
19071
|
});
|
|
19072
19072
|
const _hoisted_1$8 = { class: "description-input" };
|
|
19073
|
-
const _sfc_main$
|
|
19073
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
|
|
19074
19074
|
__name: "DescriptionInput",
|
|
19075
19075
|
props: {
|
|
19076
19076
|
modelValue: { default: "" },
|
|
@@ -19192,12 +19192,13 @@ ${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$b, [["__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";
|
|
19199
19199
|
var mdiClose = "M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z";
|
|
19200
19200
|
var mdiCog = "M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z";
|
|
19201
|
+
var mdiContentCopy = "M19,21H8V7H19M19,5H8A2,2 0 0,0 6,7V21A2,2 0 0,0 8,23H19A2,2 0 0,0 21,21V7A2,2 0 0,0 19,5M16,1H4A2,2 0 0,0 2,3V17H4V3H16V1Z";
|
|
19201
19202
|
var mdiDelete = "M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z";
|
|
19202
19203
|
var mdiEye = "M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z";
|
|
19203
19204
|
var mdiEyeOff = "M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z";
|
|
@@ -19219,10 +19220,11 @@ const icons = {
|
|
|
19219
19220
|
pencil: mdiPencil,
|
|
19220
19221
|
delete: mdiDelete,
|
|
19221
19222
|
arrowRight: mdiArrowRight,
|
|
19222
|
-
cog: mdiCog
|
|
19223
|
+
cog: mdiCog,
|
|
19224
|
+
contentCopy: mdiContentCopy
|
|
19223
19225
|
};
|
|
19224
19226
|
const _hoisted_1$7 = { class: "download-title" };
|
|
19225
|
-
const _sfc_main$
|
|
19227
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent$1({
|
|
19226
19228
|
...{
|
|
19227
19229
|
inheritAttrs: false
|
|
19228
19230
|
},
|
|
@@ -19340,18 +19342,18 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent$1({
|
|
|
19340
19342
|
};
|
|
19341
19343
|
}
|
|
19342
19344
|
});
|
|
19343
|
-
const DownloadButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
19345
|
+
const DownloadButton = /* @__PURE__ */ _export_sfc$1(_sfc_main$a, [["__scopeId", "data-v-0a911831"]]);
|
|
19344
19346
|
const _hoisted_1$6 = {
|
|
19345
19347
|
key: 0,
|
|
19346
19348
|
class: "pdf-viewer-header"
|
|
19347
19349
|
};
|
|
19348
|
-
const _hoisted_2$
|
|
19349
|
-
const _hoisted_3$
|
|
19350
|
-
const _hoisted_4
|
|
19350
|
+
const _hoisted_2$2 = { class: "pdf-viewer-title" };
|
|
19351
|
+
const _hoisted_3$2 = { class: "pdf-viewer-controls" };
|
|
19352
|
+
const _hoisted_4 = {
|
|
19351
19353
|
key: 0,
|
|
19352
19354
|
class: "zoom-controls"
|
|
19353
19355
|
};
|
|
19354
|
-
const _hoisted_5
|
|
19356
|
+
const _hoisted_5 = { class: "zoom-level" };
|
|
19355
19357
|
const _hoisted_6 = {
|
|
19356
19358
|
key: 1,
|
|
19357
19359
|
class: "navigation-controls"
|
|
@@ -19384,7 +19386,7 @@ const _hoisted_16 = {
|
|
|
19384
19386
|
key: 0,
|
|
19385
19387
|
class: "file-info"
|
|
19386
19388
|
};
|
|
19387
|
-
const _sfc_main$
|
|
19389
|
+
const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
|
|
19388
19390
|
__name: "PdfViewer",
|
|
19389
19391
|
props: {
|
|
19390
19392
|
src: {},
|
|
@@ -19593,11 +19595,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
|
19593
19595
|
class: normalizeClass(["pdf-viewer-container", { "fullscreen": isFullscreen.value }])
|
|
19594
19596
|
}, [
|
|
19595
19597
|
__props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
19596
|
-
createElementVNode("div", _hoisted_2$
|
|
19598
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
19597
19599
|
createElementVNode("h3", null, toDisplayString(__props.title || "PDF Viewer"), 1)
|
|
19598
19600
|
]),
|
|
19599
|
-
createElementVNode("div", _hoisted_3$
|
|
19600
|
-
__props.showZoomControls ? (openBlock(), createElementBlock("div", _hoisted_4
|
|
19601
|
+
createElementVNode("div", _hoisted_3$2, [
|
|
19602
|
+
__props.showZoomControls ? (openBlock(), createElementBlock("div", _hoisted_4, [
|
|
19601
19603
|
createVNode(VBtn, {
|
|
19602
19604
|
size: "small",
|
|
19603
19605
|
variant: "text",
|
|
@@ -19613,7 +19615,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
|
19613
19615
|
]),
|
|
19614
19616
|
_: 1
|
|
19615
19617
|
}, 8, ["disabled"]),
|
|
19616
|
-
createElementVNode("span", _hoisted_5
|
|
19618
|
+
createElementVNode("span", _hoisted_5, toDisplayString(Math.round(zoom.value * 100)) + "%", 1),
|
|
19617
19619
|
createVNode(VBtn, {
|
|
19618
19620
|
size: "small",
|
|
19619
19621
|
variant: "text",
|
|
@@ -19811,8 +19813,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
|
|
|
19811
19813
|
};
|
|
19812
19814
|
}
|
|
19813
19815
|
});
|
|
19814
|
-
const PdfViewer = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
19815
|
-
const _sfc_main$
|
|
19816
|
+
const PdfViewer = /* @__PURE__ */ _export_sfc$1(_sfc_main$9, [["__scopeId", "data-v-f3e9c767"]]);
|
|
19817
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
|
|
19816
19818
|
__name: "UiChildCard",
|
|
19817
19819
|
props: {
|
|
19818
19820
|
title: String
|
|
@@ -19847,7 +19849,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent$1({
|
|
|
19847
19849
|
}
|
|
19848
19850
|
});
|
|
19849
19851
|
const _hoisted_1$5 = { class: "d-sm-flex align-center justify-space-between" };
|
|
19850
|
-
const _sfc_main$
|
|
19852
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent$1({
|
|
19851
19853
|
__name: "UiParentCard",
|
|
19852
19854
|
props: {
|
|
19853
19855
|
title: String
|
|
@@ -19884,7 +19886,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent$1({
|
|
|
19884
19886
|
};
|
|
19885
19887
|
}
|
|
19886
19888
|
});
|
|
19887
|
-
const _sfc_main$
|
|
19889
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
19888
19890
|
__name: "VPriceTextField",
|
|
19889
19891
|
props: {
|
|
19890
19892
|
modelValue: {},
|
|
@@ -19989,9 +19991,9 @@ const _hoisted_1$4 = {
|
|
|
19989
19991
|
class: "app-stepper-root",
|
|
19990
19992
|
dir: "rtl"
|
|
19991
19993
|
};
|
|
19992
|
-
const _hoisted_2$
|
|
19993
|
-
const _hoisted_3$
|
|
19994
|
-
const _sfc_main$
|
|
19994
|
+
const _hoisted_2$1 = { class: "app-stepper-header-card" };
|
|
19995
|
+
const _hoisted_3$1 = { class: "app-stepper-title" };
|
|
19996
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
|
|
19995
19997
|
__name: "AppStepper",
|
|
19996
19998
|
props: {
|
|
19997
19999
|
steps: {
|
|
@@ -20044,7 +20046,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
|
|
|
20044
20046
|
__expose({ currentStepComponentRef });
|
|
20045
20047
|
return (_ctx, _cache) => {
|
|
20046
20048
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
20047
|
-
createElementVNode("div", _hoisted_2$
|
|
20049
|
+
createElementVNode("div", _hoisted_2$1, [
|
|
20048
20050
|
createElementVNode("div", {
|
|
20049
20051
|
ref_key: "stepperHeaderRef",
|
|
20050
20052
|
ref: stepperHeaderRef,
|
|
@@ -20085,7 +20087,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
|
|
|
20085
20087
|
}))
|
|
20086
20088
|
], true)
|
|
20087
20089
|
], 2),
|
|
20088
|
-
createElementVNode("span", _hoisted_3$
|
|
20090
|
+
createElementVNode("span", _hoisted_3$1, toDisplayString(step.title), 1),
|
|
20089
20091
|
index2 < __props.steps.length - 1 ? (openBlock(), createElementBlock("span", {
|
|
20090
20092
|
key: 0,
|
|
20091
20093
|
class: normalizeClass([
|
|
@@ -20110,7 +20112,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
|
|
|
20110
20112
|
};
|
|
20111
20113
|
}
|
|
20112
20114
|
});
|
|
20113
|
-
const AppStepper = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
20115
|
+
const AppStepper = /* @__PURE__ */ _export_sfc$1(_sfc_main$5, [["__scopeId", "data-v-d5178633"]]);
|
|
20114
20116
|
var lottie = { exports: {} };
|
|
20115
20117
|
(function(module, exports) {
|
|
20116
20118
|
typeof navigator !== "undefined" && function(global2, factory) {
|
|
@@ -36526,7 +36528,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
36526
36528
|
}
|
|
36527
36529
|
return target;
|
|
36528
36530
|
};
|
|
36529
|
-
const _sfc_main$
|
|
36531
|
+
const _sfc_main$4 = defineComponent$1({
|
|
36530
36532
|
props: {
|
|
36531
36533
|
animationData: {
|
|
36532
36534
|
type: Object,
|
|
@@ -36858,7 +36860,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
36858
36860
|
onMouseleave: _cache[1] || (_cache[1] = (...args) => _ctx.hoverEnded && _ctx.hoverEnded(...args))
|
|
36859
36861
|
}, null, 36);
|
|
36860
36862
|
}
|
|
36861
|
-
var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
36863
|
+
var Vue3Lottie = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render]]);
|
|
36862
36864
|
const useCustomizerStore = defineStore({
|
|
36863
36865
|
id: "customizer",
|
|
36864
36866
|
state: () => ({
|
|
@@ -36916,9 +36918,9 @@ const _hoisted_1$3 = {
|
|
|
36916
36918
|
key: 0,
|
|
36917
36919
|
class: "loading-overlay"
|
|
36918
36920
|
};
|
|
36919
|
-
const _hoisted_2
|
|
36920
|
-
const _hoisted_3
|
|
36921
|
-
const _sfc_main$
|
|
36921
|
+
const _hoisted_2 = { class: "loading-wrapper" };
|
|
36922
|
+
const _hoisted_3 = { key: 0 };
|
|
36923
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent$1({
|
|
36922
36924
|
__name: "Loading",
|
|
36923
36925
|
setup(__props) {
|
|
36924
36926
|
const customizer = useCustomizerStore();
|
|
@@ -36926,7 +36928,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
36926
36928
|
return openBlock(), createBlock(Transition, { name: "fade" }, {
|
|
36927
36929
|
default: withCtx(() => [
|
|
36928
36930
|
unref(customizer).loading ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
36929
|
-
createElementVNode("div", _hoisted_2
|
|
36931
|
+
createElementVNode("div", _hoisted_2, [
|
|
36930
36932
|
createVNode(unref(Vue3Lottie), {
|
|
36931
36933
|
"animation-link": "/persian.json",
|
|
36932
36934
|
loop: true,
|
|
@@ -36935,7 +36937,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
36935
36937
|
}),
|
|
36936
36938
|
createVNode(Transition, { name: "fade-slide" }, {
|
|
36937
36939
|
default: withCtx(() => [
|
|
36938
|
-
unref(customizer).loading ? (openBlock(), createElementBlock("span", _hoisted_3
|
|
36940
|
+
unref(customizer).loading ? (openBlock(), createElementBlock("span", _hoisted_3, "لطفا منتظر بمانید")) : createCommentVNode("", true)
|
|
36939
36941
|
]),
|
|
36940
36942
|
_: 1
|
|
36941
36943
|
})
|
|
@@ -36947,808 +36949,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
|
|
|
36947
36949
|
};
|
|
36948
36950
|
}
|
|
36949
36951
|
});
|
|
36950
|
-
const Loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$
|
|
36951
|
-
const _sfc_main$5 = /* @__PURE__ */ defineComponent$1({
|
|
36952
|
-
__name: "NavItem",
|
|
36953
|
-
props: {
|
|
36954
|
-
item: {},
|
|
36955
|
-
level: {}
|
|
36956
|
-
},
|
|
36957
|
-
setup(__props) {
|
|
36958
|
-
const props = __props;
|
|
36959
|
-
return (_ctx, _cache) => {
|
|
36960
|
-
return openBlock(), createBlock(VListItem, {
|
|
36961
|
-
to: __props.item.type === "external" ? "" : __props.item.to,
|
|
36962
|
-
href: __props.item.type === "external" ? __props.item.to : "",
|
|
36963
|
-
rounded: "",
|
|
36964
|
-
class: "mb-1",
|
|
36965
|
-
color: "secondary",
|
|
36966
|
-
disabled: __props.item.disabled,
|
|
36967
|
-
target: __props.item.type === "external" ? "_blank" : ""
|
|
36968
|
-
}, createSlots({
|
|
36969
|
-
default: withCtx(() => [
|
|
36970
|
-
createVNode(VListItemTitle, null, {
|
|
36971
|
-
default: withCtx(() => [
|
|
36972
|
-
createTextVNode(toDisplayString(__props.item.title), 1)
|
|
36973
|
-
]),
|
|
36974
|
-
_: 1
|
|
36975
|
-
}),
|
|
36976
|
-
__props.item.subCaption ? (openBlock(), createBlock(VListItemSubtitle, {
|
|
36977
|
-
key: 0,
|
|
36978
|
-
class: "text-caption mt-n1 hide-menu"
|
|
36979
|
-
}, {
|
|
36980
|
-
default: withCtx(() => [
|
|
36981
|
-
createTextVNode(toDisplayString(__props.item.subCaption), 1)
|
|
36982
|
-
]),
|
|
36983
|
-
_: 1
|
|
36984
|
-
})) : createCommentVNode("", true)
|
|
36985
|
-
]),
|
|
36986
|
-
_: 2
|
|
36987
|
-
}, [
|
|
36988
|
-
props.item.icon ? {
|
|
36989
|
-
name: "prepend",
|
|
36990
|
-
fn: withCtx(() => [
|
|
36991
|
-
typeof props.item.icon === "string" ? (openBlock(), createBlock(VIcon, {
|
|
36992
|
-
key: 0,
|
|
36993
|
-
icon: props.item.icon
|
|
36994
|
-
}, null, 8, ["icon"])) : (openBlock(), createBlock(resolveDynamicComponent(props.item.icon), { key: 1 }))
|
|
36995
|
-
]),
|
|
36996
|
-
key: "0"
|
|
36997
|
-
} : void 0,
|
|
36998
|
-
__props.item.chip ? {
|
|
36999
|
-
name: "append",
|
|
37000
|
-
fn: withCtx(() => [
|
|
37001
|
-
createVNode(VChip, {
|
|
37002
|
-
color: __props.item.chipColor,
|
|
37003
|
-
class: "sidebarchip hide-menu",
|
|
37004
|
-
size: __props.item.chipIcon ? "small" : "default",
|
|
37005
|
-
variant: __props.item.chipVariant,
|
|
37006
|
-
"prepend-icon": __props.item.chipIcon
|
|
37007
|
-
}, {
|
|
37008
|
-
default: withCtx(() => [
|
|
37009
|
-
createTextVNode(toDisplayString(__props.item.chip), 1)
|
|
37010
|
-
]),
|
|
37011
|
-
_: 1
|
|
37012
|
-
}, 8, ["color", "size", "variant", "prepend-icon"])
|
|
37013
|
-
]),
|
|
37014
|
-
key: "1"
|
|
37015
|
-
} : void 0
|
|
37016
|
-
]), 1032, ["to", "href", "disabled", "target"]);
|
|
37017
|
-
};
|
|
37018
|
-
}
|
|
37019
|
-
});
|
|
37020
|
-
const _sfc_main$4 = /* @__PURE__ */ defineComponent$1({
|
|
37021
|
-
...{ name: "NavCollapse" },
|
|
37022
|
-
__name: "NavCollapse",
|
|
37023
|
-
props: {
|
|
37024
|
-
item: {},
|
|
37025
|
-
level: {}
|
|
37026
|
-
},
|
|
37027
|
-
setup(__props) {
|
|
37028
|
-
const props = __props;
|
|
37029
|
-
return (_ctx, _cache) => {
|
|
37030
|
-
const _component_NavCollapse = resolveComponent("NavCollapse", true);
|
|
37031
|
-
return openBlock(), createBlock(VListGroup, { "no-action": "" }, {
|
|
37032
|
-
activator: withCtx(({ props: props2 }) => [
|
|
37033
|
-
createVNode(VListItem, mergeProps(props2, {
|
|
37034
|
-
value: __props.item.title,
|
|
37035
|
-
rounded: "",
|
|
37036
|
-
class: "mb-1",
|
|
37037
|
-
color: "secondary"
|
|
37038
|
-
}), {
|
|
37039
|
-
prepend: withCtx(() => [
|
|
37040
|
-
typeof __props.item.icon === "string" ? (openBlock(), createBlock(VIcon, {
|
|
37041
|
-
key: 0,
|
|
37042
|
-
icon: __props.item.icon
|
|
37043
|
-
}, null, 8, ["icon"])) : __props.item.icon ? (openBlock(), createBlock(resolveDynamicComponent(__props.item.icon), { key: 1 })) : createCommentVNode("", true)
|
|
37044
|
-
]),
|
|
37045
|
-
default: withCtx(() => [
|
|
37046
|
-
createVNode(VListItemTitle, { class: "ml-auto" }, {
|
|
37047
|
-
default: withCtx(() => [
|
|
37048
|
-
createTextVNode(toDisplayString(__props.item.title), 1)
|
|
37049
|
-
]),
|
|
37050
|
-
_: 1
|
|
37051
|
-
}),
|
|
37052
|
-
__props.item.subCaption ? (openBlock(), createBlock(VListItemSubtitle, {
|
|
37053
|
-
key: 0,
|
|
37054
|
-
class: "text-caption mt-n1 hide-menu"
|
|
37055
|
-
}, {
|
|
37056
|
-
default: withCtx(() => [
|
|
37057
|
-
createTextVNode(toDisplayString(__props.item.subCaption), 1)
|
|
37058
|
-
]),
|
|
37059
|
-
_: 1
|
|
37060
|
-
})) : createCommentVNode("", true)
|
|
37061
|
-
]),
|
|
37062
|
-
_: 1
|
|
37063
|
-
}, 16, ["value"])
|
|
37064
|
-
]),
|
|
37065
|
-
default: withCtx(() => [
|
|
37066
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.item.children, (subitem, i) => {
|
|
37067
|
-
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
37068
|
-
subitem.children ? (openBlock(), createBlock(_component_NavCollapse, {
|
|
37069
|
-
key: 0,
|
|
37070
|
-
item: subitem,
|
|
37071
|
-
level: props.level + 1
|
|
37072
|
-
}, null, 8, ["item", "level"])) : (openBlock(), createBlock(_sfc_main$5, {
|
|
37073
|
-
key: 1,
|
|
37074
|
-
item: subitem,
|
|
37075
|
-
level: props.level + 1
|
|
37076
|
-
}, null, 8, ["item", "level"]))
|
|
37077
|
-
], 64);
|
|
37078
|
-
}), 128))
|
|
37079
|
-
]),
|
|
37080
|
-
_: 1
|
|
37081
|
-
});
|
|
37082
|
-
};
|
|
37083
|
-
}
|
|
37084
|
-
});
|
|
37085
|
-
const _sfc_main$3 = {
|
|
37086
|
-
__name: "NavGroup",
|
|
37087
|
-
props: { item: Object },
|
|
37088
|
-
setup(__props) {
|
|
37089
|
-
const props = __props;
|
|
37090
|
-
return (_ctx, _cache) => {
|
|
37091
|
-
return openBlock(), createBlock(VListSubheader, {
|
|
37092
|
-
color: "darkText",
|
|
37093
|
-
class: "smallCap"
|
|
37094
|
-
}, {
|
|
37095
|
-
default: withCtx(() => [
|
|
37096
|
-
createTextVNode(toDisplayString(props.item.header), 1)
|
|
37097
|
-
]),
|
|
37098
|
-
_: 1
|
|
37099
|
-
});
|
|
37100
|
-
};
|
|
37101
|
-
}
|
|
37102
|
-
};
|
|
37103
|
-
function useSticky(_ref) {
|
|
37104
|
-
let {
|
|
37105
|
-
rootEl,
|
|
37106
|
-
isSticky,
|
|
37107
|
-
layoutItemStyles
|
|
37108
|
-
} = _ref;
|
|
37109
|
-
const isStuck = shallowRef(false);
|
|
37110
|
-
const stuckPosition = shallowRef(0);
|
|
37111
|
-
const stickyStyles = computed(() => {
|
|
37112
|
-
const side = typeof isStuck.value === "boolean" ? "top" : isStuck.value;
|
|
37113
|
-
return [isSticky.value ? {
|
|
37114
|
-
top: "auto",
|
|
37115
|
-
bottom: "auto",
|
|
37116
|
-
height: void 0
|
|
37117
|
-
} : void 0, isStuck.value ? {
|
|
37118
|
-
[side]: convertToUnit(stuckPosition.value)
|
|
37119
|
-
} : {
|
|
37120
|
-
top: layoutItemStyles.value.top
|
|
37121
|
-
}];
|
|
37122
|
-
});
|
|
37123
|
-
onMounted(() => {
|
|
37124
|
-
watch(isSticky, (val2) => {
|
|
37125
|
-
if (val2) {
|
|
37126
|
-
window.addEventListener("scroll", onScroll, {
|
|
37127
|
-
passive: true
|
|
37128
|
-
});
|
|
37129
|
-
} else {
|
|
37130
|
-
window.removeEventListener("scroll", onScroll);
|
|
37131
|
-
}
|
|
37132
|
-
}, {
|
|
37133
|
-
immediate: true
|
|
37134
|
-
});
|
|
37135
|
-
});
|
|
37136
|
-
onBeforeUnmount(() => {
|
|
37137
|
-
window.removeEventListener("scroll", onScroll);
|
|
37138
|
-
});
|
|
37139
|
-
let lastScrollTop = 0;
|
|
37140
|
-
function onScroll() {
|
|
37141
|
-
const direction = lastScrollTop > window.scrollY ? "up" : "down";
|
|
37142
|
-
const rect = rootEl.value.getBoundingClientRect();
|
|
37143
|
-
const layoutTop = parseFloat(layoutItemStyles.value.top ?? 0);
|
|
37144
|
-
const top = window.scrollY - Math.max(0, stuckPosition.value - layoutTop);
|
|
37145
|
-
const bottom = rect.height + Math.max(stuckPosition.value, layoutTop) - window.scrollY - window.innerHeight;
|
|
37146
|
-
const bodyScroll = parseFloat(getComputedStyle(rootEl.value).getPropertyValue("--v-body-scroll-y")) || 0;
|
|
37147
|
-
if (rect.height < window.innerHeight - layoutTop) {
|
|
37148
|
-
isStuck.value = "top";
|
|
37149
|
-
stuckPosition.value = layoutTop;
|
|
37150
|
-
} else if (direction === "up" && isStuck.value === "bottom" || direction === "down" && isStuck.value === "top") {
|
|
37151
|
-
stuckPosition.value = window.scrollY + rect.top - bodyScroll;
|
|
37152
|
-
isStuck.value = true;
|
|
37153
|
-
} else if (direction === "down" && bottom <= 0) {
|
|
37154
|
-
stuckPosition.value = 0;
|
|
37155
|
-
isStuck.value = "bottom";
|
|
37156
|
-
} else if (direction === "up" && top <= 0) {
|
|
37157
|
-
if (!bodyScroll) {
|
|
37158
|
-
stuckPosition.value = rect.top + top;
|
|
37159
|
-
isStuck.value = "top";
|
|
37160
|
-
} else if (isStuck.value !== "top") {
|
|
37161
|
-
stuckPosition.value = -top + bodyScroll + layoutTop;
|
|
37162
|
-
isStuck.value = "top";
|
|
37163
|
-
}
|
|
37164
|
-
}
|
|
37165
|
-
lastScrollTop = window.scrollY;
|
|
37166
|
-
}
|
|
37167
|
-
return {
|
|
37168
|
-
isStuck,
|
|
37169
|
-
stickyStyles
|
|
37170
|
-
};
|
|
37171
|
-
}
|
|
37172
|
-
const HORIZON = 100;
|
|
37173
|
-
const HISTORY = 20;
|
|
37174
|
-
function kineticEnergyToVelocity(work) {
|
|
37175
|
-
const sqrt2 = 1.41421356237;
|
|
37176
|
-
return (work < 0 ? -1 : 1) * Math.sqrt(Math.abs(work)) * sqrt2;
|
|
37177
|
-
}
|
|
37178
|
-
function calculateImpulseVelocity(samples) {
|
|
37179
|
-
if (samples.length < 2) {
|
|
37180
|
-
return 0;
|
|
37181
|
-
}
|
|
37182
|
-
if (samples.length === 2) {
|
|
37183
|
-
if (samples[1].t === samples[0].t) {
|
|
37184
|
-
return 0;
|
|
37185
|
-
}
|
|
37186
|
-
return (samples[1].d - samples[0].d) / (samples[1].t - samples[0].t);
|
|
37187
|
-
}
|
|
37188
|
-
let work = 0;
|
|
37189
|
-
for (let i = samples.length - 1; i > 0; i--) {
|
|
37190
|
-
if (samples[i].t === samples[i - 1].t) {
|
|
37191
|
-
continue;
|
|
37192
|
-
}
|
|
37193
|
-
const vprev = kineticEnergyToVelocity(work);
|
|
37194
|
-
const vcurr = (samples[i].d - samples[i - 1].d) / (samples[i].t - samples[i - 1].t);
|
|
37195
|
-
work += (vcurr - vprev) * Math.abs(vcurr);
|
|
37196
|
-
if (i === samples.length - 1) {
|
|
37197
|
-
work *= 0.5;
|
|
37198
|
-
}
|
|
37199
|
-
}
|
|
37200
|
-
return kineticEnergyToVelocity(work) * 1e3;
|
|
37201
|
-
}
|
|
37202
|
-
function useVelocity() {
|
|
37203
|
-
const touches = {};
|
|
37204
|
-
function addMovement(e) {
|
|
37205
|
-
Array.from(e.changedTouches).forEach((touch) => {
|
|
37206
|
-
const samples = touches[touch.identifier] ?? (touches[touch.identifier] = new CircularBuffer(HISTORY));
|
|
37207
|
-
samples.push([e.timeStamp, touch]);
|
|
37208
|
-
});
|
|
37209
|
-
}
|
|
37210
|
-
function endTouch(e) {
|
|
37211
|
-
Array.from(e.changedTouches).forEach((touch) => {
|
|
37212
|
-
delete touches[touch.identifier];
|
|
37213
|
-
});
|
|
37214
|
-
}
|
|
37215
|
-
function getVelocity(id) {
|
|
37216
|
-
var _a;
|
|
37217
|
-
const samples = (_a = touches[id]) == null ? void 0 : _a.values().reverse();
|
|
37218
|
-
if (!samples) {
|
|
37219
|
-
throw new Error(`No samples for touch id ${id}`);
|
|
37220
|
-
}
|
|
37221
|
-
const newest = samples[0];
|
|
37222
|
-
const x = [];
|
|
37223
|
-
const y = [];
|
|
37224
|
-
for (const val2 of samples) {
|
|
37225
|
-
if (newest[0] - val2[0] > HORIZON) break;
|
|
37226
|
-
x.push({
|
|
37227
|
-
t: val2[0],
|
|
37228
|
-
d: val2[1].clientX
|
|
37229
|
-
});
|
|
37230
|
-
y.push({
|
|
37231
|
-
t: val2[0],
|
|
37232
|
-
d: val2[1].clientY
|
|
37233
|
-
});
|
|
37234
|
-
}
|
|
37235
|
-
return {
|
|
37236
|
-
x: calculateImpulseVelocity(x),
|
|
37237
|
-
y: calculateImpulseVelocity(y),
|
|
37238
|
-
get direction() {
|
|
37239
|
-
const {
|
|
37240
|
-
x: x2,
|
|
37241
|
-
y: y2
|
|
37242
|
-
} = this;
|
|
37243
|
-
const [absX, absY] = [Math.abs(x2), Math.abs(y2)];
|
|
37244
|
-
return absX > absY && x2 >= 0 ? "right" : absX > absY && x2 <= 0 ? "left" : absY > absX && y2 >= 0 ? "down" : absY > absX && y2 <= 0 ? "up" : oops$1();
|
|
37245
|
-
}
|
|
37246
|
-
};
|
|
37247
|
-
}
|
|
37248
|
-
return {
|
|
37249
|
-
addMovement,
|
|
37250
|
-
endTouch,
|
|
37251
|
-
getVelocity
|
|
37252
|
-
};
|
|
37253
|
-
}
|
|
37254
|
-
function oops$1() {
|
|
37255
|
-
throw new Error();
|
|
37256
|
-
}
|
|
37257
|
-
function useTouch(_ref) {
|
|
37258
|
-
let {
|
|
37259
|
-
el,
|
|
37260
|
-
isActive,
|
|
37261
|
-
isTemporary,
|
|
37262
|
-
width: width2,
|
|
37263
|
-
touchless,
|
|
37264
|
-
position: position2
|
|
37265
|
-
} = _ref;
|
|
37266
|
-
onMounted(() => {
|
|
37267
|
-
window.addEventListener("touchstart", onTouchstart, {
|
|
37268
|
-
passive: true
|
|
37269
|
-
});
|
|
37270
|
-
window.addEventListener("touchmove", onTouchmove, {
|
|
37271
|
-
passive: false
|
|
37272
|
-
});
|
|
37273
|
-
window.addEventListener("touchend", onTouchend, {
|
|
37274
|
-
passive: true
|
|
37275
|
-
});
|
|
37276
|
-
});
|
|
37277
|
-
onBeforeUnmount(() => {
|
|
37278
|
-
window.removeEventListener("touchstart", onTouchstart);
|
|
37279
|
-
window.removeEventListener("touchmove", onTouchmove);
|
|
37280
|
-
window.removeEventListener("touchend", onTouchend);
|
|
37281
|
-
});
|
|
37282
|
-
const isHorizontal = computed(() => ["left", "right"].includes(position2.value));
|
|
37283
|
-
const {
|
|
37284
|
-
addMovement,
|
|
37285
|
-
endTouch,
|
|
37286
|
-
getVelocity
|
|
37287
|
-
} = useVelocity();
|
|
37288
|
-
let maybeDragging = false;
|
|
37289
|
-
const isDragging = shallowRef(false);
|
|
37290
|
-
const dragProgress = shallowRef(0);
|
|
37291
|
-
const offset = shallowRef(0);
|
|
37292
|
-
let start;
|
|
37293
|
-
function getOffset2(pos, active2) {
|
|
37294
|
-
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);
|
|
37295
|
-
}
|
|
37296
|
-
function getProgress(pos) {
|
|
37297
|
-
let limit = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
37298
|
-
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();
|
|
37299
|
-
return limit ? clamp(progress) : progress;
|
|
37300
|
-
}
|
|
37301
|
-
function onTouchstart(e) {
|
|
37302
|
-
if (touchless.value) return;
|
|
37303
|
-
const touchX = e.changedTouches[0].clientX;
|
|
37304
|
-
const touchY = e.changedTouches[0].clientY;
|
|
37305
|
-
const touchZone = 25;
|
|
37306
|
-
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();
|
|
37307
|
-
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());
|
|
37308
|
-
if (inTouchZone || inElement || isActive.value && isTemporary.value) {
|
|
37309
|
-
start = [touchX, touchY];
|
|
37310
|
-
offset.value = getOffset2(isHorizontal.value ? touchX : touchY, isActive.value);
|
|
37311
|
-
dragProgress.value = getProgress(isHorizontal.value ? touchX : touchY);
|
|
37312
|
-
maybeDragging = offset.value > -20 && offset.value < 80;
|
|
37313
|
-
endTouch(e);
|
|
37314
|
-
addMovement(e);
|
|
37315
|
-
}
|
|
37316
|
-
}
|
|
37317
|
-
function onTouchmove(e) {
|
|
37318
|
-
const touchX = e.changedTouches[0].clientX;
|
|
37319
|
-
const touchY = e.changedTouches[0].clientY;
|
|
37320
|
-
if (maybeDragging) {
|
|
37321
|
-
if (!e.cancelable) {
|
|
37322
|
-
maybeDragging = false;
|
|
37323
|
-
return;
|
|
37324
|
-
}
|
|
37325
|
-
const dx = Math.abs(touchX - start[0]);
|
|
37326
|
-
const dy = Math.abs(touchY - start[1]);
|
|
37327
|
-
const thresholdMet = isHorizontal.value ? dx > dy && dx > 3 : dy > dx && dy > 3;
|
|
37328
|
-
if (thresholdMet) {
|
|
37329
|
-
isDragging.value = true;
|
|
37330
|
-
maybeDragging = false;
|
|
37331
|
-
} else if ((isHorizontal.value ? dy : dx) > 3) {
|
|
37332
|
-
maybeDragging = false;
|
|
37333
|
-
}
|
|
37334
|
-
}
|
|
37335
|
-
if (!isDragging.value) return;
|
|
37336
|
-
e.preventDefault();
|
|
37337
|
-
addMovement(e);
|
|
37338
|
-
const progress = getProgress(isHorizontal.value ? touchX : touchY, false);
|
|
37339
|
-
dragProgress.value = Math.max(0, Math.min(1, progress));
|
|
37340
|
-
if (progress > 1) {
|
|
37341
|
-
offset.value = getOffset2(isHorizontal.value ? touchX : touchY, true);
|
|
37342
|
-
} else if (progress < 0) {
|
|
37343
|
-
offset.value = getOffset2(isHorizontal.value ? touchX : touchY, false);
|
|
37344
|
-
}
|
|
37345
|
-
}
|
|
37346
|
-
function onTouchend(e) {
|
|
37347
|
-
maybeDragging = false;
|
|
37348
|
-
if (!isDragging.value) return;
|
|
37349
|
-
addMovement(e);
|
|
37350
|
-
isDragging.value = false;
|
|
37351
|
-
const velocity2 = getVelocity(e.changedTouches[0].identifier);
|
|
37352
|
-
const vx = Math.abs(velocity2.x);
|
|
37353
|
-
const vy = Math.abs(velocity2.y);
|
|
37354
|
-
const thresholdMet = isHorizontal.value ? vx > vy && vx > 400 : vy > vx && vy > 3;
|
|
37355
|
-
if (thresholdMet) {
|
|
37356
|
-
isActive.value = velocity2.direction === ({
|
|
37357
|
-
left: "right",
|
|
37358
|
-
right: "left",
|
|
37359
|
-
top: "down",
|
|
37360
|
-
bottom: "up"
|
|
37361
|
-
}[position2.value] || oops());
|
|
37362
|
-
} else {
|
|
37363
|
-
isActive.value = dragProgress.value > 0.5;
|
|
37364
|
-
}
|
|
37365
|
-
}
|
|
37366
|
-
const dragStyles = computed(() => {
|
|
37367
|
-
return isDragging.value ? {
|
|
37368
|
-
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(),
|
|
37369
|
-
transition: "none"
|
|
37370
|
-
} : void 0;
|
|
37371
|
-
});
|
|
37372
|
-
useToggleScope(isDragging, () => {
|
|
37373
|
-
var _a, _b;
|
|
37374
|
-
const transform2 = ((_a = el.value) == null ? void 0 : _a.style.transform) ?? null;
|
|
37375
|
-
const transition = ((_b = el.value) == null ? void 0 : _b.style.transition) ?? null;
|
|
37376
|
-
watchEffect(() => {
|
|
37377
|
-
var _a2, _b2, _c, _d;
|
|
37378
|
-
(_b2 = el.value) == null ? void 0 : _b2.style.setProperty("transform", ((_a2 = dragStyles.value) == null ? void 0 : _a2.transform) || "none");
|
|
37379
|
-
(_d = el.value) == null ? void 0 : _d.style.setProperty("transition", ((_c = dragStyles.value) == null ? void 0 : _c.transition) || null);
|
|
37380
|
-
});
|
|
37381
|
-
onScopeDispose(() => {
|
|
37382
|
-
var _a2, _b2;
|
|
37383
|
-
(_a2 = el.value) == null ? void 0 : _a2.style.setProperty("transform", transform2);
|
|
37384
|
-
(_b2 = el.value) == null ? void 0 : _b2.style.setProperty("transition", transition);
|
|
37385
|
-
});
|
|
37386
|
-
});
|
|
37387
|
-
return {
|
|
37388
|
-
isDragging,
|
|
37389
|
-
dragProgress,
|
|
37390
|
-
dragStyles
|
|
37391
|
-
};
|
|
37392
|
-
}
|
|
37393
|
-
function oops() {
|
|
37394
|
-
throw new Error();
|
|
37395
|
-
}
|
|
37396
|
-
const locations = ["start", "end", "left", "right", "top", "bottom"];
|
|
37397
|
-
const makeVNavigationDrawerProps = propsFactory({
|
|
37398
|
-
color: String,
|
|
37399
|
-
disableResizeWatcher: Boolean,
|
|
37400
|
-
disableRouteWatcher: Boolean,
|
|
37401
|
-
expandOnHover: Boolean,
|
|
37402
|
-
floating: Boolean,
|
|
37403
|
-
modelValue: {
|
|
37404
|
-
type: Boolean,
|
|
37405
|
-
default: null
|
|
37406
|
-
},
|
|
37407
|
-
permanent: Boolean,
|
|
37408
|
-
rail: {
|
|
37409
|
-
type: Boolean,
|
|
37410
|
-
default: null
|
|
37411
|
-
},
|
|
37412
|
-
railWidth: {
|
|
37413
|
-
type: [Number, String],
|
|
37414
|
-
default: 56
|
|
37415
|
-
},
|
|
37416
|
-
scrim: {
|
|
37417
|
-
type: [Boolean, String],
|
|
37418
|
-
default: true
|
|
37419
|
-
},
|
|
37420
|
-
image: String,
|
|
37421
|
-
temporary: Boolean,
|
|
37422
|
-
persistent: Boolean,
|
|
37423
|
-
touchless: Boolean,
|
|
37424
|
-
width: {
|
|
37425
|
-
type: [Number, String],
|
|
37426
|
-
default: 256
|
|
37427
|
-
},
|
|
37428
|
-
location: {
|
|
37429
|
-
type: String,
|
|
37430
|
-
default: "start",
|
|
37431
|
-
validator: (value2) => locations.includes(value2)
|
|
37432
|
-
},
|
|
37433
|
-
sticky: Boolean,
|
|
37434
|
-
...makeBorderProps(),
|
|
37435
|
-
...makeComponentProps(),
|
|
37436
|
-
...makeDelayProps(),
|
|
37437
|
-
...makeDisplayProps({
|
|
37438
|
-
mobile: null
|
|
37439
|
-
}),
|
|
37440
|
-
...makeElevationProps(),
|
|
37441
|
-
...makeLayoutItemProps(),
|
|
37442
|
-
...makeRoundedProps(),
|
|
37443
|
-
...makeTagProps({
|
|
37444
|
-
tag: "nav"
|
|
37445
|
-
}),
|
|
37446
|
-
...makeThemeProps()
|
|
37447
|
-
}, "VNavigationDrawer");
|
|
37448
|
-
const VNavigationDrawer = genericComponent()({
|
|
37449
|
-
name: "VNavigationDrawer",
|
|
37450
|
-
props: makeVNavigationDrawerProps(),
|
|
37451
|
-
emits: {
|
|
37452
|
-
"update:modelValue": (val2) => true,
|
|
37453
|
-
"update:rail": (val2) => true
|
|
37454
|
-
},
|
|
37455
|
-
setup(props, _ref) {
|
|
37456
|
-
let {
|
|
37457
|
-
attrs,
|
|
37458
|
-
emit,
|
|
37459
|
-
slots
|
|
37460
|
-
} = _ref;
|
|
37461
|
-
const {
|
|
37462
|
-
isRtl
|
|
37463
|
-
} = useRtl();
|
|
37464
|
-
const {
|
|
37465
|
-
themeClasses
|
|
37466
|
-
} = provideTheme(props);
|
|
37467
|
-
const {
|
|
37468
|
-
borderClasses
|
|
37469
|
-
} = useBorder(props);
|
|
37470
|
-
const {
|
|
37471
|
-
backgroundColorClasses,
|
|
37472
|
-
backgroundColorStyles
|
|
37473
|
-
} = useBackgroundColor(() => props.color);
|
|
37474
|
-
const {
|
|
37475
|
-
elevationClasses
|
|
37476
|
-
} = useElevation(props);
|
|
37477
|
-
const {
|
|
37478
|
-
displayClasses,
|
|
37479
|
-
mobile
|
|
37480
|
-
} = useDisplay(props);
|
|
37481
|
-
const {
|
|
37482
|
-
roundedClasses
|
|
37483
|
-
} = useRounded(props);
|
|
37484
|
-
const router = useRouter();
|
|
37485
|
-
const isActive = useProxiedModel(props, "modelValue", null, (v) => !!v);
|
|
37486
|
-
const {
|
|
37487
|
-
ssrBootStyles
|
|
37488
|
-
} = useSsrBoot();
|
|
37489
|
-
const {
|
|
37490
|
-
scopeId
|
|
37491
|
-
} = useScopeId();
|
|
37492
|
-
const rootEl = ref();
|
|
37493
|
-
const isHovering = shallowRef(false);
|
|
37494
|
-
const {
|
|
37495
|
-
runOpenDelay,
|
|
37496
|
-
runCloseDelay
|
|
37497
|
-
} = useDelay(props, (value2) => {
|
|
37498
|
-
isHovering.value = value2;
|
|
37499
|
-
});
|
|
37500
|
-
const width2 = computed(() => {
|
|
37501
|
-
return props.rail && props.expandOnHover && isHovering.value ? Number(props.width) : Number(props.rail ? props.railWidth : props.width);
|
|
37502
|
-
});
|
|
37503
|
-
const location = computed(() => {
|
|
37504
|
-
return toPhysical(props.location, isRtl.value);
|
|
37505
|
-
});
|
|
37506
|
-
const isPersistent = toRef(() => props.persistent);
|
|
37507
|
-
const isTemporary = computed(() => !props.permanent && (mobile.value || props.temporary));
|
|
37508
|
-
const isSticky = computed(() => props.sticky && !isTemporary.value && location.value !== "bottom");
|
|
37509
|
-
useToggleScope(() => props.expandOnHover && props.rail != null, () => {
|
|
37510
|
-
watch(isHovering, (val2) => emit("update:rail", !val2));
|
|
37511
|
-
});
|
|
37512
|
-
useToggleScope(() => !props.disableResizeWatcher, () => {
|
|
37513
|
-
watch(isTemporary, (val2) => !props.permanent && nextTick(() => isActive.value = !val2));
|
|
37514
|
-
});
|
|
37515
|
-
useToggleScope(() => !props.disableRouteWatcher && !!router, () => {
|
|
37516
|
-
watch(router.currentRoute, () => isTemporary.value && (isActive.value = false));
|
|
37517
|
-
});
|
|
37518
|
-
watch(() => props.permanent, (val2) => {
|
|
37519
|
-
if (val2) isActive.value = true;
|
|
37520
|
-
});
|
|
37521
|
-
if (props.modelValue == null && !isTemporary.value) {
|
|
37522
|
-
isActive.value = props.permanent || !mobile.value;
|
|
37523
|
-
}
|
|
37524
|
-
const {
|
|
37525
|
-
isDragging,
|
|
37526
|
-
dragProgress
|
|
37527
|
-
} = useTouch({
|
|
37528
|
-
el: rootEl,
|
|
37529
|
-
isActive,
|
|
37530
|
-
isTemporary,
|
|
37531
|
-
width: width2,
|
|
37532
|
-
touchless: toRef(() => props.touchless),
|
|
37533
|
-
position: location
|
|
37534
|
-
});
|
|
37535
|
-
const layoutSize = computed(() => {
|
|
37536
|
-
const size = isTemporary.value ? 0 : props.rail && props.expandOnHover ? Number(props.railWidth) : width2.value;
|
|
37537
|
-
return isDragging.value ? size * dragProgress.value : size;
|
|
37538
|
-
});
|
|
37539
|
-
const {
|
|
37540
|
-
layoutItemStyles,
|
|
37541
|
-
layoutItemScrimStyles
|
|
37542
|
-
} = useLayoutItem({
|
|
37543
|
-
id: props.name,
|
|
37544
|
-
order: computed(() => parseInt(props.order, 10)),
|
|
37545
|
-
position: location,
|
|
37546
|
-
layoutSize,
|
|
37547
|
-
elementSize: width2,
|
|
37548
|
-
active: readonly(isActive),
|
|
37549
|
-
disableTransitions: toRef(() => isDragging.value),
|
|
37550
|
-
absolute: computed(() => (
|
|
37551
|
-
// eslint-disable-next-line @typescript-eslint/no-use-before-define
|
|
37552
|
-
props.absolute || isSticky.value && typeof isStuck.value !== "string"
|
|
37553
|
-
))
|
|
37554
|
-
});
|
|
37555
|
-
const {
|
|
37556
|
-
isStuck,
|
|
37557
|
-
stickyStyles
|
|
37558
|
-
} = useSticky({
|
|
37559
|
-
rootEl,
|
|
37560
|
-
isSticky,
|
|
37561
|
-
layoutItemStyles
|
|
37562
|
-
});
|
|
37563
|
-
const scrimColor = useBackgroundColor(() => {
|
|
37564
|
-
return typeof props.scrim === "string" ? props.scrim : null;
|
|
37565
|
-
});
|
|
37566
|
-
const scrimStyles = computed(() => ({
|
|
37567
|
-
...isDragging.value ? {
|
|
37568
|
-
opacity: dragProgress.value * 0.2,
|
|
37569
|
-
transition: "none"
|
|
37570
|
-
} : void 0,
|
|
37571
|
-
...layoutItemScrimStyles.value
|
|
37572
|
-
}));
|
|
37573
|
-
provideDefaults({
|
|
37574
|
-
VList: {
|
|
37575
|
-
bgColor: "transparent"
|
|
37576
|
-
}
|
|
37577
|
-
});
|
|
37578
|
-
useRender(() => {
|
|
37579
|
-
const hasImage = slots.image || props.image;
|
|
37580
|
-
return createElementVNode(Fragment, null, [createVNode(props.tag, mergeProps({
|
|
37581
|
-
"ref": rootEl,
|
|
37582
|
-
"onMouseenter": runOpenDelay,
|
|
37583
|
-
"onMouseleave": runCloseDelay,
|
|
37584
|
-
"class": ["v-navigation-drawer", `v-navigation-drawer--${location.value}`, {
|
|
37585
|
-
"v-navigation-drawer--expand-on-hover": props.expandOnHover,
|
|
37586
|
-
"v-navigation-drawer--floating": props.floating,
|
|
37587
|
-
"v-navigation-drawer--is-hovering": isHovering.value,
|
|
37588
|
-
"v-navigation-drawer--rail": props.rail,
|
|
37589
|
-
"v-navigation-drawer--temporary": isTemporary.value,
|
|
37590
|
-
"v-navigation-drawer--persistent": isPersistent.value,
|
|
37591
|
-
"v-navigation-drawer--active": isActive.value,
|
|
37592
|
-
"v-navigation-drawer--sticky": isSticky.value
|
|
37593
|
-
}, themeClasses.value, backgroundColorClasses.value, borderClasses.value, displayClasses.value, elevationClasses.value, roundedClasses.value, props.class],
|
|
37594
|
-
"style": [backgroundColorStyles.value, layoutItemStyles.value, ssrBootStyles.value, stickyStyles.value, props.style]
|
|
37595
|
-
}, scopeId, attrs), {
|
|
37596
|
-
default: () => {
|
|
37597
|
-
var _a, _b, _c;
|
|
37598
|
-
return [hasImage && createElementVNode("div", {
|
|
37599
|
-
"key": "image",
|
|
37600
|
-
"class": "v-navigation-drawer__img"
|
|
37601
|
-
}, [!slots.image ? createVNode(VImg, {
|
|
37602
|
-
"key": "image-img",
|
|
37603
|
-
"alt": "",
|
|
37604
|
-
"cover": true,
|
|
37605
|
-
"height": "inherit",
|
|
37606
|
-
"src": props.image
|
|
37607
|
-
}, null) : createVNode(VDefaultsProvider, {
|
|
37608
|
-
"key": "image-defaults",
|
|
37609
|
-
"disabled": !props.image,
|
|
37610
|
-
"defaults": {
|
|
37611
|
-
VImg: {
|
|
37612
|
-
alt: "",
|
|
37613
|
-
cover: true,
|
|
37614
|
-
height: "inherit",
|
|
37615
|
-
src: props.image
|
|
37616
|
-
}
|
|
37617
|
-
}
|
|
37618
|
-
}, slots.image)]), slots.prepend && createElementVNode("div", {
|
|
37619
|
-
"class": "v-navigation-drawer__prepend"
|
|
37620
|
-
}, [(_a = slots.prepend) == null ? void 0 : _a.call(slots)]), createElementVNode("div", {
|
|
37621
|
-
"class": "v-navigation-drawer__content"
|
|
37622
|
-
}, [(_b = slots.default) == null ? void 0 : _b.call(slots)]), slots.append && createElementVNode("div", {
|
|
37623
|
-
"class": "v-navigation-drawer__append"
|
|
37624
|
-
}, [(_c = slots.append) == null ? void 0 : _c.call(slots)])];
|
|
37625
|
-
}
|
|
37626
|
-
}), createVNode(Transition, {
|
|
37627
|
-
"name": "fade-transition"
|
|
37628
|
-
}, {
|
|
37629
|
-
default: () => [isTemporary.value && (isDragging.value || isActive.value) && !!props.scrim && createElementVNode("div", mergeProps({
|
|
37630
|
-
"class": ["v-navigation-drawer__scrim", scrimColor.backgroundColorClasses.value],
|
|
37631
|
-
"style": [scrimStyles.value, scrimColor.backgroundColorStyles.value],
|
|
37632
|
-
"onClick": () => {
|
|
37633
|
-
if (isPersistent.value) return;
|
|
37634
|
-
isActive.value = false;
|
|
37635
|
-
}
|
|
37636
|
-
}, scopeId), null)]
|
|
37637
|
-
})]);
|
|
37638
|
-
});
|
|
37639
|
-
return {
|
|
37640
|
-
isStuck
|
|
37641
|
-
};
|
|
37642
|
-
}
|
|
37643
|
-
});
|
|
37644
|
-
const _hoisted_1$2 = { class: "pa-5" };
|
|
37645
|
-
const _hoisted_2$1 = {
|
|
37646
|
-
key: 0,
|
|
37647
|
-
class: "pa-4 text-center"
|
|
37648
|
-
};
|
|
37649
|
-
const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
|
|
37650
|
-
__name: "AppSidebar",
|
|
37651
|
-
props: {
|
|
37652
|
-
sidebarItems: {
|
|
37653
|
-
type: Array,
|
|
37654
|
-
required: true
|
|
37655
|
-
},
|
|
37656
|
-
getFilteredSidebarItems: {
|
|
37657
|
-
type: Function,
|
|
37658
|
-
required: true
|
|
37659
|
-
},
|
|
37660
|
-
logoComponent: {
|
|
37661
|
-
type: Object,
|
|
37662
|
-
// Vue component
|
|
37663
|
-
required: true
|
|
37664
|
-
},
|
|
37665
|
-
sidebarDrawer: {
|
|
37666
|
-
type: Boolean,
|
|
37667
|
-
required: true
|
|
37668
|
-
},
|
|
37669
|
-
miniSidebar: {
|
|
37670
|
-
type: Boolean,
|
|
37671
|
-
required: true
|
|
37672
|
-
}
|
|
37673
|
-
},
|
|
37674
|
-
emits: ["update:sidebarDrawer"],
|
|
37675
|
-
setup(__props, { emit: __emit }) {
|
|
37676
|
-
const props = __props;
|
|
37677
|
-
const emit = __emit;
|
|
37678
|
-
const sidebarMenu = computed(() => {
|
|
37679
|
-
var _a;
|
|
37680
|
-
try {
|
|
37681
|
-
const filtered = (_a = props.getFilteredSidebarItems) == null ? void 0 : _a.call(props);
|
|
37682
|
-
if (Array.isArray(filtered)) return filtered;
|
|
37683
|
-
} catch {
|
|
37684
|
-
}
|
|
37685
|
-
return props.sidebarItems;
|
|
37686
|
-
});
|
|
37687
|
-
return (_ctx, _cache) => {
|
|
37688
|
-
const _component_perfect_scrollbar = resolveComponent("perfect-scrollbar");
|
|
37689
|
-
return openBlock(), createBlock(VNavigationDrawer, {
|
|
37690
|
-
right: "",
|
|
37691
|
-
"model-value": __props.sidebarDrawer,
|
|
37692
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => emit("update:sidebarDrawer", $event)),
|
|
37693
|
-
elevation: "0",
|
|
37694
|
-
"rail-width": "82",
|
|
37695
|
-
"mobile-breakpoint": "lg",
|
|
37696
|
-
app: "",
|
|
37697
|
-
rail: __props.miniSidebar,
|
|
37698
|
-
class: normalizeClass(["rightSidebar", { "sidebar-closed": !__props.sidebarDrawer }])
|
|
37699
|
-
}, {
|
|
37700
|
-
default: withCtx(() => [
|
|
37701
|
-
createElementVNode("div", _hoisted_1$2, [
|
|
37702
|
-
(openBlock(), createBlock(resolveDynamicComponent(__props.logoComponent)))
|
|
37703
|
-
]),
|
|
37704
|
-
createVNode(_component_perfect_scrollbar, { class: "scrollnavbar" }, {
|
|
37705
|
-
default: withCtx(() => [
|
|
37706
|
-
createVNode(VList, { class: "pa-4" }, {
|
|
37707
|
-
default: withCtx(() => [
|
|
37708
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(sidebarMenu.value, (item, i) => {
|
|
37709
|
-
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
37710
|
-
item.header ? (openBlock(), createBlock(_sfc_main$3, {
|
|
37711
|
-
key: 0,
|
|
37712
|
-
item
|
|
37713
|
-
}, null, 8, ["item"])) : item.divider ? (openBlock(), createBlock(VDivider, {
|
|
37714
|
-
key: 1,
|
|
37715
|
-
class: "my-3"
|
|
37716
|
-
})) : item.children ? (openBlock(), createBlock(_sfc_main$4, {
|
|
37717
|
-
key: 2,
|
|
37718
|
-
item,
|
|
37719
|
-
level: 0,
|
|
37720
|
-
class: "leftPadding"
|
|
37721
|
-
}, null, 8, ["item"])) : (openBlock(), createBlock(_sfc_main$5, {
|
|
37722
|
-
key: 3,
|
|
37723
|
-
item,
|
|
37724
|
-
level: 0,
|
|
37725
|
-
class: "leftPadding"
|
|
37726
|
-
}, null, 8, ["item"]))
|
|
37727
|
-
], 64);
|
|
37728
|
-
}), 128))
|
|
37729
|
-
]),
|
|
37730
|
-
_: 1
|
|
37731
|
-
}),
|
|
37732
|
-
__props.sidebarDrawer ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
37733
|
-
createVNode(VChip, {
|
|
37734
|
-
color: "inputBorder",
|
|
37735
|
-
size: "small"
|
|
37736
|
-
}, {
|
|
37737
|
-
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
37738
|
-
createTextVNode("نمایشی", -1)
|
|
37739
|
-
])]),
|
|
37740
|
-
_: 1
|
|
37741
|
-
})
|
|
37742
|
-
])) : createCommentVNode("", true)
|
|
37743
|
-
]),
|
|
37744
|
-
_: 1
|
|
37745
|
-
})
|
|
37746
|
-
]),
|
|
37747
|
-
_: 1
|
|
37748
|
-
}, 8, ["model-value", "rail", "class"]);
|
|
37749
|
-
};
|
|
37750
|
-
}
|
|
37751
|
-
});
|
|
36952
|
+
const Loading = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["__scopeId", "data-v-9b533ee4"]]);
|
|
37752
36953
|
const makeVToolbarTitleProps = propsFactory({
|
|
37753
36954
|
text: String,
|
|
37754
36955
|
...makeComponentProps(),
|
|
@@ -38131,449 +37332,400 @@ const VAppBar = genericComponent()({
|
|
|
38131
37332
|
return {};
|
|
38132
37333
|
}
|
|
38133
37334
|
});
|
|
38134
|
-
const
|
|
38135
|
-
|
|
38136
|
-
|
|
38137
|
-
|
|
38138
|
-
|
|
38139
|
-
|
|
38140
|
-
|
|
38141
|
-
|
|
38142
|
-
|
|
38143
|
-
|
|
38144
|
-
|
|
38145
|
-
|
|
38146
|
-
|
|
38147
|
-
|
|
38148
|
-
|
|
38149
|
-
}), slots));
|
|
38150
|
-
return {};
|
|
38151
|
-
}
|
|
38152
|
-
});
|
|
38153
|
-
const VAppBarTitle = genericComponent()({
|
|
38154
|
-
name: "VAppBarTitle",
|
|
38155
|
-
props: makeVToolbarTitleProps(),
|
|
38156
|
-
setup(props, _ref) {
|
|
38157
|
-
let {
|
|
38158
|
-
slots
|
|
38159
|
-
} = _ref;
|
|
38160
|
-
useRender(() => createVNode(VToolbarTitle, mergeProps(props, {
|
|
38161
|
-
"class": "v-app-bar-title"
|
|
38162
|
-
}), slots));
|
|
38163
|
-
return {};
|
|
38164
|
-
}
|
|
38165
|
-
});
|
|
38166
|
-
const makeVBadgeProps = propsFactory({
|
|
38167
|
-
bordered: Boolean,
|
|
38168
|
-
color: String,
|
|
38169
|
-
content: [Number, String],
|
|
38170
|
-
dot: Boolean,
|
|
38171
|
-
floating: Boolean,
|
|
38172
|
-
icon: IconValue,
|
|
38173
|
-
inline: Boolean,
|
|
38174
|
-
label: {
|
|
38175
|
-
type: String,
|
|
38176
|
-
default: "$vuetify.badge"
|
|
38177
|
-
},
|
|
38178
|
-
max: [Number, String],
|
|
38179
|
-
modelValue: {
|
|
38180
|
-
type: Boolean,
|
|
38181
|
-
default: true
|
|
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
|
|
38182
37350
|
},
|
|
38183
|
-
|
|
38184
|
-
|
|
38185
|
-
|
|
38186
|
-
|
|
38187
|
-
|
|
38188
|
-
|
|
38189
|
-
}),
|
|
38190
|
-
...makeRoundedProps(),
|
|
38191
|
-
...makeTagProps(),
|
|
38192
|
-
...makeThemeProps(),
|
|
38193
|
-
...makeTransitionProps$1({
|
|
38194
|
-
transition: "scale-rotate-transition"
|
|
38195
|
-
}),
|
|
38196
|
-
...makeDimensionProps()
|
|
38197
|
-
}, "VBadge");
|
|
38198
|
-
const VBadge = genericComponent()({
|
|
38199
|
-
name: "VBadge",
|
|
38200
|
-
inheritAttrs: false,
|
|
38201
|
-
props: makeVBadgeProps(),
|
|
38202
|
-
setup(props, ctx) {
|
|
38203
|
-
const {
|
|
38204
|
-
backgroundColorClasses,
|
|
38205
|
-
backgroundColorStyles
|
|
38206
|
-
} = useBackgroundColor(() => props.color);
|
|
38207
|
-
const {
|
|
38208
|
-
roundedClasses
|
|
38209
|
-
} = useRounded(props);
|
|
38210
|
-
const {
|
|
38211
|
-
t
|
|
38212
|
-
} = useLocale();
|
|
38213
|
-
const {
|
|
38214
|
-
textColorClasses,
|
|
38215
|
-
textColorStyles
|
|
38216
|
-
} = useTextColor(() => props.textColor);
|
|
38217
|
-
const {
|
|
38218
|
-
themeClasses
|
|
38219
|
-
} = useTheme();
|
|
38220
|
-
const {
|
|
38221
|
-
locationStyles
|
|
38222
|
-
} = useLocation(props, true, (side) => {
|
|
38223
|
-
const base = props.floating ? props.dot ? 2 : 4 : props.dot ? 8 : 12;
|
|
38224
|
-
return base + (["top", "bottom"].includes(side) ? Number(props.offsetY ?? 0) : ["left", "right"].includes(side) ? Number(props.offsetX ?? 0) : 0);
|
|
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;
|
|
38225
37357
|
});
|
|
38226
|
-
|
|
38227
|
-
|
|
38228
|
-
|
|
38229
|
-
|
|
38230
|
-
|
|
38231
|
-
|
|
38232
|
-
|
|
38233
|
-
|
|
38234
|
-
|
|
38235
|
-
|
|
38236
|
-
|
|
38237
|
-
|
|
38238
|
-
|
|
38239
|
-
|
|
38240
|
-
|
|
38241
|
-
"style": props.style
|
|
38242
|
-
}), {
|
|
38243
|
-
default: () => {
|
|
38244
|
-
var _a, _b;
|
|
38245
|
-
return [createElementVNode("div", {
|
|
38246
|
-
"class": "v-badge__wrapper"
|
|
38247
|
-
}, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a), createVNode(MaybeTransition, {
|
|
38248
|
-
"transition": props.transition
|
|
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"]))
|
|
38249
37373
|
}, {
|
|
38250
|
-
default: () =>
|
|
38251
|
-
|
|
38252
|
-
|
|
38253
|
-
"
|
|
38254
|
-
|
|
38255
|
-
|
|
38256
|
-
|
|
38257
|
-
|
|
38258
|
-
|
|
38259
|
-
|
|
38260
|
-
|
|
38261
|
-
|
|
38262
|
-
|
|
38263
|
-
|
|
38264
|
-
|
|
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
|
|
38265
37527
|
});
|
|
38266
|
-
}
|
|
38267
|
-
return {};
|
|
37528
|
+
};
|
|
38268
37529
|
}
|
|
38269
37530
|
});
|
|
37531
|
+
const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-f9cc73a9"]]);
|
|
38270
37532
|
const _hoisted_1$1 = {
|
|
38271
|
-
key: 0,
|
|
38272
|
-
class: "text-h6"
|
|
38273
|
-
};
|
|
38274
|
-
const _hoisted_2 = {
|
|
38275
37533
|
key: 1,
|
|
38276
|
-
class: "
|
|
37534
|
+
class: "header-menu-container"
|
|
38277
37535
|
};
|
|
38278
|
-
const _hoisted_3 = { key: 2 };
|
|
38279
|
-
const _hoisted_4 = { key: 2 };
|
|
38280
|
-
const _hoisted_5 = { key: 2 };
|
|
38281
37536
|
const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
|
|
38282
37537
|
__name: "AppHeader",
|
|
38283
37538
|
props: {
|
|
38284
|
-
|
|
38285
|
-
|
|
38286
|
-
|
|
38287
|
-
|
|
38288
|
-
|
|
38289
|
-
|
|
38290
|
-
|
|
38291
|
-
|
|
38292
|
-
showNotifications: { type: Boolean, default: false },
|
|
38293
|
-
notificationCount: { default: 0 },
|
|
38294
|
-
showProfile: { type: Boolean, default: false },
|
|
38295
|
-
profileAvatar: {},
|
|
38296
|
-
profileName: {},
|
|
38297
|
-
profileMenu: { default: () => [] },
|
|
38298
|
-
actions: { default: () => [] },
|
|
38299
|
-
color: { default: "surface" },
|
|
38300
|
-
elevation: { default: 1 },
|
|
38301
|
-
height: { default: 70 },
|
|
38302
|
-
hideDefaultTitle: { type: Boolean, default: false }
|
|
37539
|
+
menuOrientation: { type: String, default: "horizontal" },
|
|
37540
|
+
miniSidebar: { type: Boolean, default: false },
|
|
37541
|
+
userInfoLoaded: { type: Boolean, default: false },
|
|
37542
|
+
headerMenu: { type: Array, default: () => [] },
|
|
37543
|
+
// Events sent back to project
|
|
37544
|
+
onToggleMiniSidebar: { type: Function, default: void 0 },
|
|
37545
|
+
onToggleCustomizer: { type: Function, default: void 0 },
|
|
37546
|
+
onToggleSidebarDrawer: { type: Function, default: void 0 }
|
|
38303
37547
|
},
|
|
38304
|
-
|
|
38305
|
-
setup(__props, { emit: __emit }) {
|
|
37548
|
+
setup(__props) {
|
|
38306
37549
|
const props = __props;
|
|
38307
|
-
|
|
38308
|
-
const
|
|
38309
|
-
|
|
38310
|
-
|
|
38311
|
-
set: (val2) => {
|
|
38312
|
-
emit("update:searchValue", val2);
|
|
38313
|
-
emit("search", val2);
|
|
38314
|
-
}
|
|
37550
|
+
ref(false);
|
|
37551
|
+
const computedHeaderMenu = computed(() => {
|
|
37552
|
+
if (props.userInfoLoaded) return props.headerMenu;
|
|
37553
|
+
return props.headerMenu;
|
|
38315
37554
|
});
|
|
38316
|
-
const toggleSidebar = () => {
|
|
38317
|
-
customizer.SET_SIDEBAR_DRAWER();
|
|
38318
|
-
emit("toggle-sidebar");
|
|
38319
|
-
};
|
|
38320
|
-
const router = useRouter$1();
|
|
38321
|
-
const profileMenuItems = computed(
|
|
38322
|
-
() => props.profileMenu.map((item) => ({
|
|
38323
|
-
...item,
|
|
38324
|
-
prependIcon: item.icon,
|
|
38325
|
-
onClick: item.action || (() => {
|
|
38326
|
-
if (item.to) {
|
|
38327
|
-
router.push(item.to);
|
|
38328
|
-
} else if (item.href) {
|
|
38329
|
-
window.open(item.href, "_blank");
|
|
38330
|
-
}
|
|
38331
|
-
})
|
|
38332
|
-
}))
|
|
38333
|
-
);
|
|
38334
37555
|
return (_ctx, _cache) => {
|
|
38335
37556
|
return openBlock(), createBlock(VAppBar, {
|
|
38336
|
-
|
|
38337
|
-
|
|
38338
|
-
height: __props.height,
|
|
38339
|
-
class: normalizeClass(["app-header topbar", props.class]),
|
|
38340
|
-
"aria-label": __props.ariaLabel,
|
|
38341
|
-
fixed: ""
|
|
37557
|
+
elevation: "0",
|
|
37558
|
+
height: "80"
|
|
38342
37559
|
}, {
|
|
38343
37560
|
default: withCtx(() => [
|
|
38344
|
-
|
|
38345
|
-
__props.showSidebarToggle ? (openBlock(), createBlock(VAppBarNavIcon, {
|
|
37561
|
+
__props.menuOrientation === "vertical" ? (openBlock(), createBlock(VBtn, {
|
|
38346
37562
|
key: 0,
|
|
38347
|
-
|
|
38348
|
-
|
|
38349
|
-
|
|
38350
|
-
|
|
38351
|
-
|
|
38352
|
-
|
|
38353
|
-
|
|
38354
|
-
}, {
|
|
38355
|
-
default: withCtx(() => [
|
|
38356
|
-
__props.title ? (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
|
|
38357
|
-
__props.subtitle ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
|
|
38358
|
-
]),
|
|
38359
|
-
_: 1
|
|
38360
|
-
})) : createCommentVNode("", true)
|
|
38361
|
-
], true),
|
|
38362
|
-
createVNode(VSpacer),
|
|
38363
|
-
renderSlot(_ctx.$slots, "center", {}, void 0, true),
|
|
38364
|
-
__props.showSearch ? (openBlock(), createBlock(VTextField, {
|
|
38365
|
-
key: 1,
|
|
38366
|
-
modelValue: searchInput.value,
|
|
38367
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchInput.value = $event),
|
|
38368
|
-
placeholder: __props.searchPlaceholder,
|
|
38369
|
-
density: "compact",
|
|
38370
|
-
variant: "outlined",
|
|
38371
|
-
"hide-details": "",
|
|
38372
|
-
"prepend-inner-icon": "mdi-magnify",
|
|
38373
|
-
class: "search-bar",
|
|
38374
|
-
style: { "max-width": "400px" }
|
|
38375
|
-
}, null, 8, ["modelValue", "placeholder"])) : createCommentVNode("", true),
|
|
38376
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.actions, (action, index2) => {
|
|
38377
|
-
return openBlock(), createElementBlock(Fragment, { key: index2 }, [
|
|
38378
|
-
action.tooltip ? (openBlock(), createBlock(VTooltip, {
|
|
38379
|
-
key: 0,
|
|
38380
|
-
text: action.tooltip,
|
|
38381
|
-
location: "bottom"
|
|
38382
|
-
}, {
|
|
38383
|
-
activator: withCtx(({ props: tooltipProps }) => [
|
|
38384
|
-
createVNode(VBtn, mergeProps({ ref_for: true }, tooltipProps, {
|
|
38385
|
-
icon: action.icon,
|
|
38386
|
-
color: action.color || "primary",
|
|
38387
|
-
variant: action.variant || "text",
|
|
38388
|
-
size: action.size || "default",
|
|
38389
|
-
disabled: action.disabled,
|
|
38390
|
-
class: "ms-2",
|
|
38391
|
-
onClick: action.onClick
|
|
38392
|
-
}), {
|
|
38393
|
-
default: withCtx(() => [
|
|
38394
|
-
action.badge ? (openBlock(), createBlock(VBadge, {
|
|
38395
|
-
key: 0,
|
|
38396
|
-
content: action.badge,
|
|
38397
|
-
color: action.badgeColor || "error",
|
|
38398
|
-
overlap: ""
|
|
38399
|
-
}, {
|
|
38400
|
-
default: withCtx(() => [
|
|
38401
|
-
action.icon ? (openBlock(), createBlock(VIcon, {
|
|
38402
|
-
key: 0,
|
|
38403
|
-
icon: action.icon
|
|
38404
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
38405
|
-
]),
|
|
38406
|
-
_: 2
|
|
38407
|
-
}, 1032, ["content", "color"])) : action.icon ? (openBlock(), createBlock(VIcon, {
|
|
38408
|
-
key: 1,
|
|
38409
|
-
icon: action.icon
|
|
38410
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
38411
|
-
action.label && !action.icon ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(action.label), 1)) : createCommentVNode("", true)
|
|
38412
|
-
]),
|
|
38413
|
-
_: 2
|
|
38414
|
-
}, 1040, ["icon", "color", "variant", "size", "disabled", "onClick"])
|
|
38415
|
-
]),
|
|
38416
|
-
_: 2
|
|
38417
|
-
}, 1032, ["text"])) : (openBlock(), createBlock(VBtn, {
|
|
38418
|
-
key: 1,
|
|
38419
|
-
icon: action.icon,
|
|
38420
|
-
color: action.color || "primary",
|
|
38421
|
-
variant: action.variant || "text",
|
|
38422
|
-
size: action.size || "default",
|
|
38423
|
-
disabled: action.disabled,
|
|
38424
|
-
class: "ms-2",
|
|
38425
|
-
onClick: action.onClick
|
|
38426
|
-
}, {
|
|
38427
|
-
default: withCtx(() => [
|
|
38428
|
-
action.badge ? (openBlock(), createBlock(VBadge, {
|
|
38429
|
-
key: 0,
|
|
38430
|
-
content: action.badge,
|
|
38431
|
-
color: action.badgeColor || "error",
|
|
38432
|
-
overlap: ""
|
|
38433
|
-
}, {
|
|
38434
|
-
default: withCtx(() => [
|
|
38435
|
-
action.icon ? (openBlock(), createBlock(VIcon, {
|
|
38436
|
-
key: 0,
|
|
38437
|
-
icon: action.icon
|
|
38438
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true)
|
|
38439
|
-
]),
|
|
38440
|
-
_: 2
|
|
38441
|
-
}, 1032, ["content", "color"])) : action.icon ? (openBlock(), createBlock(VIcon, {
|
|
38442
|
-
key: 1,
|
|
38443
|
-
icon: action.icon
|
|
38444
|
-
}, null, 8, ["icon"])) : createCommentVNode("", true),
|
|
38445
|
-
action.label && !action.icon ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(action.label), 1)) : createCommentVNode("", true)
|
|
38446
|
-
]),
|
|
38447
|
-
_: 2
|
|
38448
|
-
}, 1032, ["icon", "color", "variant", "size", "disabled", "onClick"]))
|
|
38449
|
-
], 64);
|
|
38450
|
-
}), 128)),
|
|
38451
|
-
renderSlot(_ctx.$slots, "right", {}, void 0, true),
|
|
38452
|
-
__props.showNotifications ? (openBlock(), createBlock(VMenu, {
|
|
38453
|
-
key: 2,
|
|
38454
|
-
location: "bottom end",
|
|
38455
|
-
"offset-y": ""
|
|
37563
|
+
class: "hidden-md-and-down text-secondary",
|
|
37564
|
+
color: "lightsecondary",
|
|
37565
|
+
icon: "",
|
|
37566
|
+
rounded: "sm",
|
|
37567
|
+
variant: "flat",
|
|
37568
|
+
size: "small",
|
|
37569
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => props.onToggleMiniSidebar && props.onToggleMiniSidebar(), ["stop"]))
|
|
38456
37570
|
}, {
|
|
38457
|
-
activator: withCtx(({ props: menuProps }) => [
|
|
38458
|
-
createVNode(VBtn, mergeProps(menuProps, {
|
|
38459
|
-
icon: "",
|
|
38460
|
-
variant: "text",
|
|
38461
|
-
class: "profileBtn"
|
|
38462
|
-
}), {
|
|
38463
|
-
default: withCtx(() => [
|
|
38464
|
-
createVNode(VBadge, {
|
|
38465
|
-
content: __props.notificationCount > 0 ? __props.notificationCount : void 0,
|
|
38466
|
-
color: "error",
|
|
38467
|
-
overlap: ""
|
|
38468
|
-
}, {
|
|
38469
|
-
default: withCtx(() => [
|
|
38470
|
-
createVNode(VIcon, { icon: "mdi-bell-outline" })
|
|
38471
|
-
]),
|
|
38472
|
-
_: 1
|
|
38473
|
-
}, 8, ["content"])
|
|
38474
|
-
]),
|
|
38475
|
-
_: 1
|
|
38476
|
-
}, 16)
|
|
38477
|
-
]),
|
|
38478
37571
|
default: withCtx(() => [
|
|
38479
|
-
createVNode(
|
|
38480
|
-
|
|
38481
|
-
|
|
38482
|
-
default: withCtx(() => [
|
|
38483
|
-
createVNode(VListItemTitle, null, {
|
|
38484
|
-
default: withCtx(() => [..._cache[1] || (_cache[1] = [
|
|
38485
|
-
createTextVNode("اعلانها", -1)
|
|
38486
|
-
])]),
|
|
38487
|
-
_: 1
|
|
38488
|
-
})
|
|
38489
|
-
]),
|
|
38490
|
-
_: 1
|
|
38491
|
-
}),
|
|
38492
|
-
createVNode(VDivider),
|
|
38493
|
-
createVNode(VListItem, null, {
|
|
38494
|
-
default: withCtx(() => [
|
|
38495
|
-
createVNode(VListItemTitle, null, {
|
|
38496
|
-
default: withCtx(() => [..._cache[2] || (_cache[2] = [
|
|
38497
|
-
createTextVNode("هیچ اعلان جدیدی وجود ندارد", -1)
|
|
38498
|
-
])]),
|
|
38499
|
-
_: 1
|
|
38500
|
-
})
|
|
38501
|
-
]),
|
|
38502
|
-
_: 1
|
|
38503
|
-
})
|
|
38504
|
-
]),
|
|
38505
|
-
_: 1
|
|
37572
|
+
createVNode(unref(IconMenu2), {
|
|
37573
|
+
size: "20",
|
|
37574
|
+
"stroke-width": "1.5"
|
|
38506
37575
|
})
|
|
38507
37576
|
]),
|
|
38508
37577
|
_: 1
|
|
38509
37578
|
})) : createCommentVNode("", true),
|
|
38510
|
-
|
|
38511
|
-
|
|
38512
|
-
|
|
38513
|
-
|
|
37579
|
+
createVNode(VBtn, {
|
|
37580
|
+
class: "hidden-lg-and-up text-secondary ms-3",
|
|
37581
|
+
color: "lightsecondary",
|
|
37582
|
+
icon: "",
|
|
37583
|
+
rounded: "sm",
|
|
37584
|
+
variant: "flat",
|
|
37585
|
+
size: "small",
|
|
37586
|
+
onClick: _cache[1] || (_cache[1] = withModifiers(($event) => props.onToggleSidebarDrawer && props.onToggleSidebarDrawer(), ["stop"]))
|
|
38514
37587
|
}, {
|
|
38515
|
-
|
|
38516
|
-
createVNode(
|
|
38517
|
-
|
|
38518
|
-
|
|
38519
|
-
|
|
38520
|
-
}), {
|
|
38521
|
-
default: withCtx(() => [
|
|
38522
|
-
__props.profileAvatar ? (openBlock(), createBlock(VAvatar, {
|
|
38523
|
-
key: 0,
|
|
38524
|
-
size: "32"
|
|
38525
|
-
}, {
|
|
38526
|
-
default: withCtx(() => [
|
|
38527
|
-
createVNode(VImg, {
|
|
38528
|
-
src: __props.profileAvatar,
|
|
38529
|
-
alt: __props.profileName || "Profile"
|
|
38530
|
-
}, null, 8, ["src", "alt"])
|
|
38531
|
-
]),
|
|
38532
|
-
_: 1
|
|
38533
|
-
})) : !__props.profileName ? (openBlock(), createBlock(VIcon, {
|
|
38534
|
-
key: 1,
|
|
38535
|
-
icon: "mdi-account-circle"
|
|
38536
|
-
})) : (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.profileName), 1))
|
|
38537
|
-
]),
|
|
38538
|
-
_: 1
|
|
38539
|
-
}, 16, ["icon"])
|
|
37588
|
+
default: withCtx(() => [
|
|
37589
|
+
createVNode(unref(IconMenu2), {
|
|
37590
|
+
size: "20",
|
|
37591
|
+
"stroke-width": "1.5"
|
|
37592
|
+
})
|
|
38540
37593
|
]),
|
|
37594
|
+
_: 1
|
|
37595
|
+
}),
|
|
37596
|
+
createVNode(VBtn, {
|
|
37597
|
+
class: "hidden-md-and-down text-secondary mr-2 ml-2",
|
|
37598
|
+
color: "lightsecondary",
|
|
37599
|
+
icon: "",
|
|
37600
|
+
rounded: "sm",
|
|
37601
|
+
variant: "flat",
|
|
37602
|
+
size: "small",
|
|
37603
|
+
onClick: _cache[2] || (_cache[2] = withModifiers(($event) => props.onToggleCustomizer && props.onToggleCustomizer(), ["stop"]))
|
|
37604
|
+
}, {
|
|
38541
37605
|
default: withCtx(() => [
|
|
38542
|
-
|
|
38543
|
-
|
|
38544
|
-
|
|
38545
|
-
|
|
38546
|
-
|
|
38547
|
-
|
|
38548
|
-
|
|
38549
|
-
|
|
38550
|
-
|
|
38551
|
-
|
|
37606
|
+
createVNode(unref(IconPalette), {
|
|
37607
|
+
size: "20",
|
|
37608
|
+
"stroke-width": "1.5"
|
|
37609
|
+
})
|
|
37610
|
+
]),
|
|
37611
|
+
_: 1
|
|
37612
|
+
}),
|
|
37613
|
+
__props.menuOrientation === "horizontal" ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
37614
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(computedHeaderMenu.value, (item, i) => {
|
|
37615
|
+
return openBlock(), createElementBlock(Fragment, { key: i }, [
|
|
37616
|
+
!item.children ? (openBlock(), createBlock(VBtn, {
|
|
37617
|
+
key: 0,
|
|
37618
|
+
to: item.type === "external" ? "" : item.to,
|
|
37619
|
+
href: item.type === "external" ? item.to : "",
|
|
37620
|
+
target: item.type === "external" ? "_blank" : "",
|
|
37621
|
+
variant: "text",
|
|
37622
|
+
disabled: item.disabled,
|
|
37623
|
+
class: "header-menu-btn mr-3",
|
|
37624
|
+
color: "primary"
|
|
37625
|
+
}, {
|
|
37626
|
+
default: withCtx(() => [
|
|
37627
|
+
item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
|
|
37628
|
+
key: 0,
|
|
37629
|
+
class: "mr-2",
|
|
37630
|
+
size: "18"
|
|
37631
|
+
})) : createCommentVNode("", true),
|
|
37632
|
+
createElementVNode("span", null, toDisplayString(item.title), 1)
|
|
37633
|
+
]),
|
|
37634
|
+
_: 2
|
|
37635
|
+
}, 1032, ["to", "href", "target", "disabled"])) : (openBlock(), createBlock(VMenu, {
|
|
37636
|
+
key: 1,
|
|
37637
|
+
"offset-y": ""
|
|
37638
|
+
}, {
|
|
37639
|
+
activator: withCtx(({ props: mprops }) => [
|
|
37640
|
+
createVNode(VBtn, mergeProps({ ref_for: true }, mprops, {
|
|
37641
|
+
variant: "text",
|
|
37642
|
+
class: "header-menu-btn",
|
|
37643
|
+
color: "primary mr-3"
|
|
37644
|
+
}), {
|
|
38552
37645
|
default: withCtx(() => [
|
|
38553
|
-
|
|
38554
|
-
|
|
38555
|
-
|
|
38556
|
-
|
|
38557
|
-
|
|
38558
|
-
|
|
38559
|
-
|
|
37646
|
+
item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
|
|
37647
|
+
key: 0,
|
|
37648
|
+
size: "18",
|
|
37649
|
+
class: "mr-2"
|
|
37650
|
+
})) : createCommentVNode("", true),
|
|
37651
|
+
createElementVNode("span", null, toDisplayString(item.title), 1),
|
|
37652
|
+
createVNode(unref(IconChevronDown), {
|
|
37653
|
+
size: "18",
|
|
37654
|
+
class: "ml-2"
|
|
37655
|
+
})
|
|
38560
37656
|
]),
|
|
38561
37657
|
_: 2
|
|
38562
|
-
},
|
|
38563
|
-
|
|
38564
|
-
|
|
38565
|
-
|
|
38566
|
-
|
|
38567
|
-
|
|
38568
|
-
|
|
38569
|
-
|
|
37658
|
+
}, 1040)
|
|
37659
|
+
]),
|
|
37660
|
+
default: withCtx(() => [
|
|
37661
|
+
createVNode(VList, null, {
|
|
37662
|
+
default: withCtx(() => [
|
|
37663
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (child, c) => {
|
|
37664
|
+
return openBlock(), createBlock(VListItem, {
|
|
37665
|
+
key: c,
|
|
37666
|
+
to: child.type === "external" ? "" : child.to,
|
|
37667
|
+
href: child.type === "external" ? child.to : "",
|
|
37668
|
+
target: child.type === "external" ? "_blank" : ""
|
|
37669
|
+
}, {
|
|
37670
|
+
default: withCtx(() => [
|
|
37671
|
+
createVNode(VListItemTitle, null, {
|
|
37672
|
+
default: withCtx(() => [
|
|
37673
|
+
createTextVNode(toDisplayString(child.title), 1)
|
|
37674
|
+
]),
|
|
37675
|
+
_: 2
|
|
37676
|
+
}, 1024)
|
|
37677
|
+
]),
|
|
37678
|
+
_: 2
|
|
37679
|
+
}, 1032, ["to", "href", "target"]);
|
|
37680
|
+
}), 128))
|
|
37681
|
+
]),
|
|
37682
|
+
_: 2
|
|
37683
|
+
}, 1024)
|
|
37684
|
+
]),
|
|
37685
|
+
_: 2
|
|
37686
|
+
}, 1024))
|
|
37687
|
+
], 64);
|
|
37688
|
+
}), 128))
|
|
37689
|
+
])) : createCommentVNode("", true),
|
|
37690
|
+
createVNode(VSpacer),
|
|
37691
|
+
renderSlot(_ctx.$slots, "notifications", {}, () => [
|
|
37692
|
+
createVNode(VBtn, {
|
|
37693
|
+
icon: "",
|
|
37694
|
+
class: "text-secondary mx-3",
|
|
37695
|
+
color: "lightsecondary",
|
|
37696
|
+
rounded: "sm",
|
|
37697
|
+
size: "small",
|
|
37698
|
+
variant: "flat"
|
|
37699
|
+
}, {
|
|
37700
|
+
default: withCtx(() => [
|
|
37701
|
+
createVNode(unref(IconBell), {
|
|
37702
|
+
"stroke-width": "1.5",
|
|
37703
|
+
size: "20"
|
|
37704
|
+
})
|
|
37705
|
+
]),
|
|
37706
|
+
_: 1
|
|
37707
|
+
})
|
|
37708
|
+
], true),
|
|
37709
|
+
renderSlot(_ctx.$slots, "profile", {}, () => [
|
|
37710
|
+
createVNode(VBtn, {
|
|
37711
|
+
class: "profileBtn text-primary",
|
|
37712
|
+
color: "lightprimary",
|
|
37713
|
+
variant: "flat",
|
|
37714
|
+
rounded: "pill"
|
|
37715
|
+
}, {
|
|
37716
|
+
default: withCtx(() => [
|
|
37717
|
+
createVNode(unref(IconSettings))
|
|
37718
|
+
]),
|
|
37719
|
+
_: 1
|
|
37720
|
+
})
|
|
37721
|
+
], true)
|
|
38570
37722
|
]),
|
|
38571
37723
|
_: 3
|
|
38572
|
-
}
|
|
37724
|
+
});
|
|
38573
37725
|
};
|
|
38574
37726
|
}
|
|
38575
37727
|
});
|
|
38576
|
-
const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-
|
|
37728
|
+
const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-2e2d8b8b"]]);
|
|
38577
37729
|
const makeVAppProps = propsFactory({
|
|
38578
37730
|
...makeComponentProps(),
|
|
38579
37731
|
...omit(makeLayoutProps(), ["fullHeight"]),
|
|
@@ -38661,40 +37813,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
38661
37813
|
__name: "AppLayout",
|
|
38662
37814
|
props: {
|
|
38663
37815
|
header: { default: () => ({
|
|
38664
|
-
|
|
38665
|
-
|
|
38666
|
-
|
|
38667
|
-
|
|
38668
|
-
searchPlaceholder: "جستجو...",
|
|
38669
|
-
showNotifications: false,
|
|
38670
|
-
notificationCount: 0,
|
|
38671
|
-
showProfile: false,
|
|
38672
|
-
actions: [],
|
|
38673
|
-
color: "surface",
|
|
38674
|
-
elevation: 1,
|
|
38675
|
-
height: 70
|
|
37816
|
+
menuOrientation: "horizontal",
|
|
37817
|
+
miniSidebar: false,
|
|
37818
|
+
userInfoLoaded: false,
|
|
37819
|
+
headerMenu: []
|
|
38676
37820
|
}) },
|
|
38677
37821
|
sidebar: { default: () => ({
|
|
38678
|
-
|
|
38679
|
-
logo: "",
|
|
38680
|
-
logoLight: "",
|
|
38681
|
-
logoText: "UI Kit",
|
|
37822
|
+
menuOrientation: "vertical",
|
|
38682
37823
|
miniSidebar: false,
|
|
38683
|
-
|
|
38684
|
-
|
|
38685
|
-
rail: false,
|
|
38686
|
-
location: "left",
|
|
38687
|
-
width: 265,
|
|
38688
|
-
railWidth: 75
|
|
37824
|
+
userInfoLoaded: false,
|
|
37825
|
+
headerMenu: []
|
|
38689
37826
|
}) }
|
|
38690
37827
|
},
|
|
38691
37828
|
setup(__props) {
|
|
38692
|
-
useCustomizerStore();
|
|
38693
37829
|
return (_ctx, _cache) => {
|
|
38694
37830
|
return openBlock(), createBlock(VApp, null, {
|
|
38695
37831
|
default: withCtx(() => [
|
|
38696
|
-
createVNode(AppHeader, mergeProps(__props.header, { class: "app-header" }),
|
|
38697
|
-
|
|
37832
|
+
createVNode(AppHeader, mergeProps(__props.header, { class: "app-header" }), {
|
|
37833
|
+
notifications: withCtx(() => [
|
|
37834
|
+
renderSlot(_ctx.$slots, "notifications", {}, void 0, true)
|
|
37835
|
+
]),
|
|
37836
|
+
profile: withCtx(() => [
|
|
37837
|
+
renderSlot(_ctx.$slots, "profile", {}, void 0, true)
|
|
37838
|
+
]),
|
|
37839
|
+
_: 3
|
|
37840
|
+
}, 16),
|
|
37841
|
+
createVNode(AppSidebar, mergeProps(__props.sidebar, { class: "app-sidebar" }), null, 16),
|
|
38698
37842
|
createVNode(VMain, null, {
|
|
38699
37843
|
default: withCtx(() => [
|
|
38700
37844
|
createElementVNode("div", _hoisted_1, [
|
|
@@ -38709,7 +37853,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
|
|
|
38709
37853
|
};
|
|
38710
37854
|
}
|
|
38711
37855
|
});
|
|
38712
|
-
const AppLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-
|
|
37856
|
+
const AppLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-a6ef935f"]]);
|
|
38713
37857
|
function useDataTable(options) {
|
|
38714
37858
|
const items = ref([]);
|
|
38715
37859
|
const loading = ref(false);
|
|
@@ -39272,28 +38416,28 @@ const index = {
|
|
|
39272
38416
|
export {
|
|
39273
38417
|
AppHeader,
|
|
39274
38418
|
AppLayout,
|
|
39275
|
-
|
|
38419
|
+
AppSidebar,
|
|
39276
38420
|
AppStepper,
|
|
39277
|
-
_sfc_main$
|
|
39278
|
-
_sfc_main$
|
|
38421
|
+
_sfc_main$i as BaseBreadcrumb,
|
|
38422
|
+
_sfc_main$h as BaseIcon,
|
|
39279
38423
|
BooleanEnum,
|
|
39280
38424
|
BooleanEnumOptions,
|
|
39281
|
-
_sfc_main$
|
|
38425
|
+
_sfc_main$g as ConfirmDialog,
|
|
39282
38426
|
CustomAutocomplete,
|
|
39283
|
-
_sfc_main$
|
|
38427
|
+
_sfc_main$c as CustomDataTable,
|
|
39284
38428
|
DateConverter,
|
|
39285
38429
|
DescriptionInput,
|
|
39286
38430
|
DigitLimit,
|
|
39287
38431
|
DownloadButton,
|
|
39288
38432
|
GreetingUtils,
|
|
39289
38433
|
Loading,
|
|
39290
|
-
_sfc_main$
|
|
38434
|
+
_sfc_main$e as MoneyInput,
|
|
39291
38435
|
NationalCodeValidator,
|
|
39292
38436
|
PdfViewer,
|
|
39293
38437
|
ShamsiDatePicker,
|
|
39294
|
-
_sfc_main$
|
|
39295
|
-
_sfc_main$
|
|
39296
|
-
_sfc_main$
|
|
38438
|
+
_sfc_main$8 as UiChildCard,
|
|
38439
|
+
_sfc_main$7 as UiParentCard,
|
|
38440
|
+
_sfc_main$6 as VPriceTextField,
|
|
39297
38441
|
configureAuth,
|
|
39298
38442
|
configureAxiosInstance,
|
|
39299
38443
|
index as default,
|