@amirjalili1374/ui-kit 1.3.28 → 1.3.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/ui-kit.es.js CHANGED
@@ -3886,8 +3886,8 @@ 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$7 = { class: "d-flex align-center gap-2" };
3890
- const _hoisted_3$6 = { class: "d-flex align-center gap-2" };
3889
+ const _hoisted_2$6 = { class: "d-flex align-center gap-2" };
3890
+ const _hoisted_3$5 = { class: "d-flex align-center gap-2" };
3891
3891
  const _sfc_main$l = /* @__PURE__ */ defineComponent$1({
3892
3892
  __name: "BaseBreadcrumb",
3893
3893
  props: {
@@ -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$7, [
3935
+ createElementVNode("div", _hoisted_2$6, [
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$6, [
3944
+ createElementVNode("div", _hoisted_3$5, [
3945
3945
  createVNode(unref(IconArrowBadgeLeft), { stroke: "{2}" })
3946
3946
  ])
3947
3947
  ]),
@@ -12592,10 +12592,10 @@ const VTooltip = genericComponent()({
12592
12592
  }
12593
12593
  });
12594
12594
  const _hoisted_1$b = { class: "ca-item-title" };
12595
- const _hoisted_2$6 = { class: "ca-item-subtitle" };
12596
- const _hoisted_3$5 = { class: "ca-group-tooltip" };
12597
- const _hoisted_4$3 = { class: "ca-group-tooltip-header" };
12598
- const _hoisted_5$3 = { class: "ca-group-count" };
12595
+ const _hoisted_2$5 = { 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" };
@@ -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$6, toDisplayString(resolveSubtitle(item.raw ?? item)), 1)
12738
+ createElementVNode("div", _hoisted_2$5, 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$5, [
12750
- createElementVNode("div", _hoisted_4$3, [
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$3, toDisplayString(getGroupMembers(item.raw ?? item).length) + " آیتم", 1)
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) => {
@@ -16921,13 +16921,13 @@ const _hoisted_1$9 = {
16921
16921
  key: 0,
16922
16922
  class: "page-title"
16923
16923
  };
16924
- const _hoisted_2$5 = { class: "title-text" };
16925
- const _hoisted_3$4 = { class: "action-buttons" };
16926
- const _hoisted_4$2 = {
16924
+ const _hoisted_2$4 = { 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$2 = {
16930
+ const _hoisted_5$1 = {
16931
16931
  key: 0,
16932
16932
  class: "selected-actions"
16933
16933
  };
@@ -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$5, toDisplayString(props.title), 1)
17888
+ createElementVNode("h3", _hoisted_2$4, toDisplayString(props.title), 1)
17889
17889
  ])) : createCommentVNode("", true),
17890
- createElementVNode("div", _hoisted_3$4, [
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$2, [
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$2, [
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",
@@ -19347,13 +19347,13 @@ const _hoisted_1$6 = {
19347
19347
  key: 0,
19348
19348
  class: "pdf-viewer-header"
19349
19349
  };
19350
- const _hoisted_2$4 = { class: "pdf-viewer-title" };
19351
- const _hoisted_3$3 = { class: "pdf-viewer-controls" };
19352
- const _hoisted_4$1 = {
19350
+ const _hoisted_2$3 = { class: "pdf-viewer-title" };
19351
+ const _hoisted_3$2 = { class: "pdf-viewer-controls" };
19352
+ const _hoisted_4 = {
19353
19353
  key: 0,
19354
19354
  class: "zoom-controls"
19355
19355
  };
19356
- const _hoisted_5$1 = { class: "zoom-level" };
19356
+ const _hoisted_5 = { class: "zoom-level" };
19357
19357
  const _hoisted_6 = {
19358
19358
  key: 1,
19359
19359
  class: "navigation-controls"
@@ -19595,11 +19595,11 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
19595
19595
  class: normalizeClass(["pdf-viewer-container", { "fullscreen": isFullscreen.value }])
19596
19596
  }, [
19597
19597
  __props.showHeader ? (openBlock(), createElementBlock("div", _hoisted_1$6, [
19598
- createElementVNode("div", _hoisted_2$4, [
19598
+ createElementVNode("div", _hoisted_2$3, [
19599
19599
  createElementVNode("h3", null, toDisplayString(__props.title || "PDF Viewer"), 1)
19600
19600
  ]),
19601
- createElementVNode("div", _hoisted_3$3, [
19602
- __props.showZoomControls ? (openBlock(), createElementBlock("div", _hoisted_4$1, [
19601
+ createElementVNode("div", _hoisted_3$2, [
19602
+ __props.showZoomControls ? (openBlock(), createElementBlock("div", _hoisted_4, [
19603
19603
  createVNode(VBtn, {
19604
19604
  size: "small",
19605
19605
  variant: "text",
@@ -19615,7 +19615,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
19615
19615
  ]),
19616
19616
  _: 1
19617
19617
  }, 8, ["disabled"]),
19618
- createElementVNode("span", _hoisted_5$1, toDisplayString(Math.round(zoom.value * 100)) + "%", 1),
19618
+ createElementVNode("span", _hoisted_5, toDisplayString(Math.round(zoom.value * 100)) + "%", 1),
19619
19619
  createVNode(VBtn, {
19620
19620
  size: "small",
19621
19621
  variant: "text",
@@ -19991,8 +19991,8 @@ const _hoisted_1$4 = {
19991
19991
  class: "app-stepper-root",
19992
19992
  dir: "rtl"
19993
19993
  };
19994
- const _hoisted_2$3 = { class: "app-stepper-header-card" };
19995
- const _hoisted_3$2 = { class: "app-stepper-title" };
19994
+ const _hoisted_2$2 = { class: "app-stepper-header-card" };
19995
+ const _hoisted_3$1 = { class: "app-stepper-title" };
19996
19996
  const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
19997
19997
  __name: "AppStepper",
19998
19998
  props: {
@@ -20046,7 +20046,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
20046
20046
  __expose({ currentStepComponentRef });
20047
20047
  return (_ctx, _cache) => {
20048
20048
  return openBlock(), createElementBlock("div", _hoisted_1$4, [
20049
- createElementVNode("div", _hoisted_2$3, [
20049
+ createElementVNode("div", _hoisted_2$2, [
20050
20050
  createElementVNode("div", {
20051
20051
  ref_key: "stepperHeaderRef",
20052
20052
  ref: stepperHeaderRef,
@@ -20087,7 +20087,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent$1({
20087
20087
  }))
20088
20088
  ], true)
20089
20089
  ], 2),
20090
- createElementVNode("span", _hoisted_3$2, toDisplayString(step.title), 1),
20090
+ createElementVNode("span", _hoisted_3$1, toDisplayString(step.title), 1),
20091
20091
  index2 < __props.steps.length - 1 ? (openBlock(), createElementBlock("span", {
20092
20092
  key: 0,
20093
20093
  class: normalizeClass([
@@ -36918,8 +36918,8 @@ const _hoisted_1$3 = {
36918
36918
  key: 0,
36919
36919
  class: "loading-overlay"
36920
36920
  };
36921
- const _hoisted_2$2 = { class: "loading-wrapper" };
36922
- const _hoisted_3$1 = { key: 0 };
36921
+ const _hoisted_2$1 = { class: "loading-wrapper" };
36922
+ const _hoisted_3 = { key: 0 };
36923
36923
  const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
36924
36924
  __name: "Loading",
36925
36925
  setup(__props) {
@@ -36928,7 +36928,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
36928
36928
  return openBlock(), createBlock(Transition, { name: "fade" }, {
36929
36929
  default: withCtx(() => [
36930
36930
  unref(customizer).loading ? (openBlock(), createElementBlock("div", _hoisted_1$3, [
36931
- createElementVNode("div", _hoisted_2$2, [
36931
+ createElementVNode("div", _hoisted_2$1, [
36932
36932
  createVNode(unref(Vue3Lottie), {
36933
36933
  "animation-link": "/persian.json",
36934
36934
  loop: true,
@@ -36937,7 +36937,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent$1({
36937
36937
  }),
36938
36938
  createVNode(Transition, { name: "fade-slide" }, {
36939
36939
  default: withCtx(() => [
36940
- unref(customizer).loading ? (openBlock(), createElementBlock("span", _hoisted_3$1, "لطفا منتظر بمانید")) : createCommentVNode("", true)
36940
+ unref(customizer).loading ? (openBlock(), createElementBlock("span", _hoisted_3, "لطفا منتظر بمانید")) : createCommentVNode("", true)
36941
36941
  ]),
36942
36942
  _: 1
36943
36943
  })
@@ -37644,7 +37644,7 @@ const VNavigationDrawer = genericComponent()({
37644
37644
  }
37645
37645
  });
37646
37646
  const _hoisted_1$2 = { class: "pa-5" };
37647
- const _hoisted_2$1 = {
37647
+ const _hoisted_2 = {
37648
37648
  key: 0,
37649
37649
  class: "pa-4 text-center"
37650
37650
  };
@@ -37731,7 +37731,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
37731
37731
  ]),
37732
37732
  _: 1
37733
37733
  }),
37734
- __props.sidebarDrawer ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
37734
+ __props.sidebarDrawer ? (openBlock(), createElementBlock("div", _hoisted_2, [
37735
37735
  createVNode(VChip, {
37736
37736
  color: "inputBorder",
37737
37737
  size: "small"
@@ -38133,449 +38133,242 @@ const VAppBar = genericComponent()({
38133
38133
  return {};
38134
38134
  }
38135
38135
  });
38136
- const makeVAppBarNavIconProps = propsFactory({
38137
- ...omit(makeVBtnProps({
38138
- icon: "$menu",
38139
- variant: "text"
38140
- }), ["spaced"])
38141
- }, "VAppBarNavIcon");
38142
- const VAppBarNavIcon = genericComponent()({
38143
- name: "VAppBarNavIcon",
38144
- props: makeVAppBarNavIconProps(),
38145
- setup(props, _ref) {
38146
- let {
38147
- slots
38148
- } = _ref;
38149
- useRender(() => createVNode(VBtn, mergeProps(props, {
38150
- "class": ["v-app-bar-nav-icon"]
38151
- }), slots));
38152
- return {};
38153
- }
38154
- });
38155
- const VAppBarTitle = genericComponent()({
38156
- name: "VAppBarTitle",
38157
- props: makeVToolbarTitleProps(),
38158
- setup(props, _ref) {
38159
- let {
38160
- slots
38161
- } = _ref;
38162
- useRender(() => createVNode(VToolbarTitle, mergeProps(props, {
38163
- "class": "v-app-bar-title"
38164
- }), slots));
38165
- return {};
38166
- }
38167
- });
38168
- const makeVBadgeProps = propsFactory({
38169
- bordered: Boolean,
38170
- color: String,
38171
- content: [Number, String],
38172
- dot: Boolean,
38173
- floating: Boolean,
38174
- icon: IconValue,
38175
- inline: Boolean,
38176
- label: {
38177
- type: String,
38178
- default: "$vuetify.badge"
38179
- },
38180
- max: [Number, String],
38181
- modelValue: {
38182
- type: Boolean,
38183
- default: true
38184
- },
38185
- offsetX: [Number, String],
38186
- offsetY: [Number, String],
38187
- textColor: String,
38188
- ...makeComponentProps(),
38189
- ...makeLocationProps({
38190
- location: "top end"
38191
- }),
38192
- ...makeRoundedProps(),
38193
- ...makeTagProps(),
38194
- ...makeThemeProps(),
38195
- ...makeTransitionProps$1({
38196
- transition: "scale-rotate-transition"
38197
- }),
38198
- ...makeDimensionProps()
38199
- }, "VBadge");
38200
- const VBadge = genericComponent()({
38201
- name: "VBadge",
38202
- inheritAttrs: false,
38203
- props: makeVBadgeProps(),
38204
- setup(props, ctx) {
38205
- const {
38206
- backgroundColorClasses,
38207
- backgroundColorStyles
38208
- } = useBackgroundColor(() => props.color);
38209
- const {
38210
- roundedClasses
38211
- } = useRounded(props);
38212
- const {
38213
- t
38214
- } = useLocale();
38215
- const {
38216
- textColorClasses,
38217
- textColorStyles
38218
- } = useTextColor(() => props.textColor);
38219
- const {
38220
- themeClasses
38221
- } = useTheme();
38222
- const {
38223
- locationStyles
38224
- } = useLocation(props, true, (side) => {
38225
- const base = props.floating ? props.dot ? 2 : 4 : props.dot ? 8 : 12;
38226
- return base + (["top", "bottom"].includes(side) ? Number(props.offsetY ?? 0) : ["left", "right"].includes(side) ? Number(props.offsetX ?? 0) : 0);
38227
- });
38228
- const {
38229
- dimensionStyles
38230
- } = useDimension(props);
38231
- useRender(() => {
38232
- const value2 = Number(props.content);
38233
- const content2 = !props.max || isNaN(value2) ? props.content : value2 <= Number(props.max) ? value2 : `${props.max}+`;
38234
- const [badgeAttrs, attrs] = pickWithRest(ctx.attrs, ["aria-atomic", "aria-label", "aria-live", "role", "title"]);
38235
- return createVNode(props.tag, mergeProps({
38236
- "class": ["v-badge", {
38237
- "v-badge--bordered": props.bordered,
38238
- "v-badge--dot": props.dot,
38239
- "v-badge--floating": props.floating,
38240
- "v-badge--inline": props.inline
38241
- }, props.class]
38242
- }, attrs, {
38243
- "style": props.style
38244
- }), {
38245
- default: () => {
38246
- var _a, _b;
38247
- return [createElementVNode("div", {
38248
- "class": "v-badge__wrapper"
38249
- }, [(_b = (_a = ctx.slots).default) == null ? void 0 : _b.call(_a), createVNode(MaybeTransition, {
38250
- "transition": props.transition
38251
- }, {
38252
- default: () => {
38253
- var _a2, _b2;
38254
- return [withDirectives(createElementVNode("span", mergeProps({
38255
- "class": ["v-badge__badge", themeClasses.value, backgroundColorClasses.value, roundedClasses.value, textColorClasses.value],
38256
- "style": [backgroundColorStyles.value, textColorStyles.value, dimensionStyles.value, props.inline ? {} : locationStyles.value],
38257
- "aria-atomic": "true",
38258
- "aria-label": t(props.label, value2),
38259
- "aria-live": "polite",
38260
- "role": "status"
38261
- }, badgeAttrs), [props.dot ? void 0 : ctx.slots.badge ? (_b2 = (_a2 = ctx.slots).badge) == null ? void 0 : _b2.call(_a2) : props.icon ? createVNode(VIcon, {
38262
- "icon": props.icon
38263
- }, null) : content2]), [[vShow, props.modelValue]])];
38264
- }
38265
- })])];
38266
- }
38267
- });
38268
- });
38269
- return {};
38270
- }
38271
- });
38272
38136
  const _hoisted_1$1 = {
38273
- key: 0,
38274
- class: "text-h6"
38275
- };
38276
- const _hoisted_2 = {
38277
38137
  key: 1,
38278
- class: "text-caption text-medium-emphasis"
38138
+ class: "header-menu-container"
38279
38139
  };
38280
- const _hoisted_3 = { key: 2 };
38281
- const _hoisted_4 = { key: 2 };
38282
- const _hoisted_5 = { key: 2 };
38283
38140
  const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
38284
38141
  __name: "AppHeader",
38285
38142
  props: {
38286
- title: {},
38287
- subtitle: {},
38288
- class: {},
38289
- ariaLabel: { default: "Application header" },
38290
- showSidebarToggle: { type: Boolean, default: true },
38291
- showSearch: { type: Boolean, default: false },
38292
- searchPlaceholder: { default: "جستجو..." },
38293
- searchValue: {},
38294
- showNotifications: { type: Boolean, default: false },
38295
- notificationCount: { default: 0 },
38296
- showProfile: { type: Boolean, default: false },
38297
- profileAvatar: {},
38298
- profileName: {},
38299
- profileMenu: { default: () => [] },
38300
- actions: { default: () => [] },
38301
- color: { default: "surface" },
38302
- elevation: { default: 1 },
38303
- height: { default: 70 },
38304
- hideDefaultTitle: { type: Boolean, default: false }
38143
+ menuOrientation: {
38144
+ type: String,
38145
+ default: "horizontal"
38146
+ },
38147
+ miniSidebar: {
38148
+ type: Boolean,
38149
+ default: false
38150
+ },
38151
+ userInfoLoaded: {
38152
+ type: Boolean,
38153
+ default: false
38154
+ },
38155
+ headerMenu: {
38156
+ type: Array,
38157
+ default: () => []
38158
+ },
38159
+ // Events sent back to project
38160
+ onToggleMiniSidebar: {
38161
+ type: Function,
38162
+ default: void 0
38163
+ },
38164
+ onToggleCustomizer: {
38165
+ type: Function,
38166
+ default: void 0
38167
+ },
38168
+ onToggleSidebarDrawer: {
38169
+ type: Function,
38170
+ default: void 0
38171
+ }
38305
38172
  },
38306
- emits: ["update:searchValue", "toggle-sidebar", "search"],
38307
- setup(__props, { emit: __emit }) {
38173
+ setup(__props) {
38308
38174
  const props = __props;
38309
- const emit = __emit;
38310
- const customizer = useCustomizerStore();
38311
- const searchInput = computed({
38312
- get: () => props.searchValue || "",
38313
- set: (val2) => {
38314
- emit("update:searchValue", val2);
38315
- emit("search", val2);
38316
- }
38175
+ const computedHeaderMenu = computed(() => {
38176
+ if (props.userInfoLoaded) return props.headerMenu;
38177
+ return props.headerMenu;
38317
38178
  });
38318
- const toggleSidebar = () => {
38319
- customizer.SET_SIDEBAR_DRAWER();
38320
- emit("toggle-sidebar");
38321
- };
38322
- const router = useRouter$1();
38323
- const profileMenuItems = computed(
38324
- () => props.profileMenu.map((item) => ({
38325
- ...item,
38326
- prependIcon: item.icon,
38327
- onClick: item.action || (() => {
38328
- if (item.to) {
38329
- router.push(item.to);
38330
- } else if (item.href) {
38331
- window.open(item.href, "_blank");
38332
- }
38333
- })
38334
- }))
38335
- );
38336
38179
  return (_ctx, _cache) => {
38337
38180
  return openBlock(), createBlock(VAppBar, {
38338
- color: __props.color,
38339
- elevation: __props.elevation,
38340
- height: __props.height,
38341
- class: normalizeClass(["app-header topbar", props.class]),
38342
- "aria-label": __props.ariaLabel,
38343
- fixed: ""
38181
+ elevation: "0",
38182
+ height: "80",
38183
+ class: "app-header topbar"
38344
38184
  }, {
38345
38185
  default: withCtx(() => [
38346
- renderSlot(_ctx.$slots, "left", {}, void 0, true),
38347
- __props.showSidebarToggle ? (openBlock(), createBlock(VAppBarNavIcon, {
38186
+ __props.menuOrientation === "vertical" ? (openBlock(), createBlock(VBtn, {
38348
38187
  key: 0,
38349
- variant: "text",
38350
- onClick: toggleSidebar
38351
- })) : createCommentVNode("", true),
38352
- renderSlot(_ctx.$slots, "title", {}, () => [
38353
- !__props.hideDefaultTitle && (__props.title || __props.subtitle) ? (openBlock(), createBlock(VAppBarTitle, {
38354
- key: 0,
38355
- class: "d-flex flex-column"
38356
- }, {
38357
- default: withCtx(() => [
38358
- __props.title ? (openBlock(), createElementBlock("span", _hoisted_1$1, toDisplayString(__props.title), 1)) : createCommentVNode("", true),
38359
- __props.subtitle ? (openBlock(), createElementBlock("span", _hoisted_2, toDisplayString(__props.subtitle), 1)) : createCommentVNode("", true)
38360
- ]),
38361
- _: 1
38362
- })) : createCommentVNode("", true)
38363
- ], true),
38364
- createVNode(VSpacer),
38365
- renderSlot(_ctx.$slots, "center", {}, void 0, true),
38366
- __props.showSearch ? (openBlock(), createBlock(VTextField, {
38367
- key: 1,
38368
- modelValue: searchInput.value,
38369
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => searchInput.value = $event),
38370
- placeholder: __props.searchPlaceholder,
38371
- density: "compact",
38372
- variant: "outlined",
38373
- "hide-details": "",
38374
- "prepend-inner-icon": "mdi-magnify",
38375
- class: "search-bar",
38376
- style: { "max-width": "400px" }
38377
- }, null, 8, ["modelValue", "placeholder"])) : createCommentVNode("", true),
38378
- (openBlock(true), createElementBlock(Fragment, null, renderList(__props.actions, (action, index2) => {
38379
- return openBlock(), createElementBlock(Fragment, { key: index2 }, [
38380
- action.tooltip ? (openBlock(), createBlock(VTooltip, {
38381
- key: 0,
38382
- text: action.tooltip,
38383
- location: "bottom"
38384
- }, {
38385
- activator: withCtx(({ props: tooltipProps }) => [
38386
- createVNode(VBtn, mergeProps({ ref_for: true }, tooltipProps, {
38387
- icon: action.icon,
38388
- color: action.color || "primary",
38389
- variant: action.variant || "text",
38390
- size: action.size || "default",
38391
- disabled: action.disabled,
38392
- class: "ms-2",
38393
- onClick: action.onClick
38394
- }), {
38395
- default: withCtx(() => [
38396
- action.badge ? (openBlock(), createBlock(VBadge, {
38397
- key: 0,
38398
- content: action.badge,
38399
- color: action.badgeColor || "error",
38400
- overlap: ""
38401
- }, {
38402
- default: withCtx(() => [
38403
- action.icon ? (openBlock(), createBlock(VIcon, {
38404
- key: 0,
38405
- icon: action.icon
38406
- }, null, 8, ["icon"])) : createCommentVNode("", true)
38407
- ]),
38408
- _: 2
38409
- }, 1032, ["content", "color"])) : action.icon ? (openBlock(), createBlock(VIcon, {
38410
- key: 1,
38411
- icon: action.icon
38412
- }, null, 8, ["icon"])) : createCommentVNode("", true),
38413
- action.label && !action.icon ? (openBlock(), createElementBlock("span", _hoisted_3, toDisplayString(action.label), 1)) : createCommentVNode("", true)
38414
- ]),
38415
- _: 2
38416
- }, 1040, ["icon", "color", "variant", "size", "disabled", "onClick"])
38417
- ]),
38418
- _: 2
38419
- }, 1032, ["text"])) : (openBlock(), createBlock(VBtn, {
38420
- key: 1,
38421
- icon: action.icon,
38422
- color: action.color || "primary",
38423
- variant: action.variant || "text",
38424
- size: action.size || "default",
38425
- disabled: action.disabled,
38426
- class: "ms-2",
38427
- onClick: action.onClick
38428
- }, {
38429
- default: withCtx(() => [
38430
- action.badge ? (openBlock(), createBlock(VBadge, {
38431
- key: 0,
38432
- content: action.badge,
38433
- color: action.badgeColor || "error",
38434
- overlap: ""
38435
- }, {
38436
- default: withCtx(() => [
38437
- action.icon ? (openBlock(), createBlock(VIcon, {
38438
- key: 0,
38439
- icon: action.icon
38440
- }, null, 8, ["icon"])) : createCommentVNode("", true)
38441
- ]),
38442
- _: 2
38443
- }, 1032, ["content", "color"])) : action.icon ? (openBlock(), createBlock(VIcon, {
38444
- key: 1,
38445
- icon: action.icon
38446
- }, null, 8, ["icon"])) : createCommentVNode("", true),
38447
- action.label && !action.icon ? (openBlock(), createElementBlock("span", _hoisted_4, toDisplayString(action.label), 1)) : createCommentVNode("", true)
38448
- ]),
38449
- _: 2
38450
- }, 1032, ["icon", "color", "variant", "size", "disabled", "onClick"]))
38451
- ], 64);
38452
- }), 128)),
38453
- renderSlot(_ctx.$slots, "right", {}, void 0, true),
38454
- __props.showNotifications ? (openBlock(), createBlock(VMenu, {
38455
- key: 2,
38456
- location: "bottom end",
38457
- "offset-y": ""
38188
+ class: "hidden-md-and-down text-secondary",
38189
+ color: "lightsecondary",
38190
+ icon: "",
38191
+ rounded: "sm",
38192
+ variant: "flat",
38193
+ size: "small",
38194
+ onClick: _cache[0] || (_cache[0] = withModifiers(($event) => props.onToggleMiniSidebar && props.onToggleMiniSidebar(), ["stop"]))
38458
38195
  }, {
38459
- activator: withCtx(({ props: menuProps }) => [
38460
- createVNode(VBtn, mergeProps(menuProps, {
38461
- icon: "",
38462
- variant: "text",
38463
- class: "profileBtn"
38464
- }), {
38465
- default: withCtx(() => [
38466
- createVNode(VBadge, {
38467
- content: __props.notificationCount > 0 ? __props.notificationCount : void 0,
38468
- color: "error",
38469
- overlap: ""
38470
- }, {
38471
- default: withCtx(() => [
38472
- createVNode(VIcon, { icon: "mdi-bell-outline" })
38473
- ]),
38474
- _: 1
38475
- }, 8, ["content"])
38476
- ]),
38477
- _: 1
38478
- }, 16)
38479
- ]),
38480
38196
  default: withCtx(() => [
38481
- createVNode(VList, null, {
38482
- default: withCtx(() => [
38483
- createVNode(VListItem, null, {
38484
- default: withCtx(() => [
38485
- createVNode(VListItemTitle, null, {
38486
- default: withCtx(() => [..._cache[1] || (_cache[1] = [
38487
- createTextVNode("اعلان‌ها", -1)
38488
- ])]),
38489
- _: 1
38490
- })
38491
- ]),
38492
- _: 1
38493
- }),
38494
- createVNode(VDivider),
38495
- createVNode(VListItem, null, {
38496
- default: withCtx(() => [
38497
- createVNode(VListItemTitle, null, {
38498
- default: withCtx(() => [..._cache[2] || (_cache[2] = [
38499
- createTextVNode("هیچ اعلان جدیدی وجود ندارد", -1)
38500
- ])]),
38501
- _: 1
38502
- })
38503
- ]),
38504
- _: 1
38505
- })
38506
- ]),
38197
+ createVNode(VIcon, { size: "20" }, {
38198
+ default: withCtx(() => [..._cache[3] || (_cache[3] = [
38199
+ createTextVNode("mdi-menu", -1)
38200
+ ])]),
38507
38201
  _: 1
38508
38202
  })
38509
38203
  ]),
38510
38204
  _: 1
38511
38205
  })) : createCommentVNode("", true),
38512
- __props.showProfile ? (openBlock(), createBlock(VMenu, {
38513
- key: 3,
38514
- location: "bottom end",
38515
- "offset-y": ""
38206
+ createVNode(VBtn, {
38207
+ class: "hidden-lg-and-up text-secondary ms-3",
38208
+ color: "lightsecondary",
38209
+ icon: "",
38210
+ rounded: "sm",
38211
+ variant: "flat",
38212
+ size: "small",
38213
+ onClick: _cache[1] || (_cache[1] = withModifiers(($event) => props.onToggleSidebarDrawer && props.onToggleSidebarDrawer(), ["stop"]))
38516
38214
  }, {
38517
- activator: withCtx(({ props: menuProps }) => [
38518
- createVNode(VBtn, mergeProps(menuProps, {
38519
- icon: !__props.profileName && !__props.profileAvatar,
38520
- variant: "text",
38521
- class: "profileBtn"
38522
- }), {
38523
- default: withCtx(() => [
38524
- __props.profileAvatar ? (openBlock(), createBlock(VAvatar, {
38525
- key: 0,
38526
- size: "32"
38527
- }, {
38528
- default: withCtx(() => [
38529
- createVNode(VImg, {
38530
- src: __props.profileAvatar,
38531
- alt: __props.profileName || "Profile"
38532
- }, null, 8, ["src", "alt"])
38533
- ]),
38534
- _: 1
38535
- })) : !__props.profileName ? (openBlock(), createBlock(VIcon, {
38536
- key: 1,
38537
- icon: "mdi-account-circle"
38538
- })) : (openBlock(), createElementBlock("span", _hoisted_5, toDisplayString(__props.profileName), 1))
38539
- ]),
38215
+ default: withCtx(() => [
38216
+ createVNode(VIcon, { size: "20" }, {
38217
+ default: withCtx(() => [..._cache[4] || (_cache[4] = [
38218
+ createTextVNode("mdi-menu", -1)
38219
+ ])]),
38540
38220
  _: 1
38541
- }, 16, ["icon"])
38221
+ })
38542
38222
  ]),
38223
+ _: 1
38224
+ }),
38225
+ createVNode(VBtn, {
38226
+ class: "hidden-md-and-down text-secondary mr-2 ml-2",
38227
+ color: "lightsecondary",
38228
+ icon: "",
38229
+ rounded: "sm",
38230
+ variant: "flat",
38231
+ size: "small",
38232
+ onClick: _cache[2] || (_cache[2] = withModifiers(($event) => props.onToggleCustomizer && props.onToggleCustomizer(), ["stop"]))
38233
+ }, {
38543
38234
  default: withCtx(() => [
38544
- profileMenuItems.value.length > 0 ? (openBlock(), createBlock(VList, { key: 0 }, {
38545
- default: withCtx(() => [
38546
- (openBlock(true), createElementBlock(Fragment, null, renderList(profileMenuItems.value, (item, index2) => {
38547
- return openBlock(), createBlock(VListItem, {
38548
- key: index2,
38549
- "prepend-icon": item.icon,
38550
- to: item.to,
38551
- href: item.href,
38552
- onClick: item.onClick
38553
- }, {
38554
- default: withCtx(() => [
38555
- createVNode(VListItemTitle, null, {
38556
- default: withCtx(() => [
38557
- createTextVNode(toDisplayString(item.title), 1)
38558
- ]),
38559
- _: 2
38560
- }, 1024),
38561
- item.divider ? (openBlock(), createBlock(VDivider, { key: 0 })) : createCommentVNode("", true)
38562
- ]),
38563
- _: 2
38564
- }, 1032, ["prepend-icon", "to", "href", "onClick"]);
38565
- }), 128))
38566
- ]),
38235
+ createVNode(VIcon, { size: "20" }, {
38236
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [
38237
+ createTextVNode("mdi-palette", -1)
38238
+ ])]),
38567
38239
  _: 1
38568
- })) : createCommentVNode("", true)
38240
+ })
38569
38241
  ]),
38570
38242
  _: 1
38571
- })) : createCommentVNode("", true)
38243
+ }),
38244
+ __props.menuOrientation === "horizontal" ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
38245
+ (openBlock(true), createElementBlock(Fragment, null, renderList(computedHeaderMenu.value, (item, i) => {
38246
+ return openBlock(), createElementBlock(Fragment, { key: i }, [
38247
+ !item.children ? (openBlock(), createBlock(VBtn, {
38248
+ key: 0,
38249
+ to: item.type === "external" ? "" : item.to,
38250
+ href: item.type === "external" ? item.to : "",
38251
+ target: item.type === "external" ? "_blank" : "",
38252
+ variant: "text",
38253
+ disabled: item.disabled,
38254
+ class: "header-menu-btn mr-3",
38255
+ color: "primary"
38256
+ }, {
38257
+ default: withCtx(() => [
38258
+ item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
38259
+ key: 0,
38260
+ class: "mr-2",
38261
+ size: "18"
38262
+ })) : createCommentVNode("", true),
38263
+ createElementVNode("span", null, toDisplayString(item.title), 1)
38264
+ ]),
38265
+ _: 2
38266
+ }, 1032, ["to", "href", "target", "disabled"])) : (openBlock(), createBlock(VMenu, {
38267
+ key: 1,
38268
+ "offset-y": ""
38269
+ }, {
38270
+ activator: withCtx(({ props: mprops }) => [
38271
+ createVNode(VBtn, mergeProps({ ref_for: true }, mprops, {
38272
+ variant: "text",
38273
+ class: "header-menu-btn",
38274
+ color: "primary mr-3"
38275
+ }), {
38276
+ default: withCtx(() => [
38277
+ item.icon ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), {
38278
+ key: 0,
38279
+ size: "18",
38280
+ class: "mr-2"
38281
+ })) : createCommentVNode("", true),
38282
+ createElementVNode("span", null, toDisplayString(item.title), 1),
38283
+ createVNode(VIcon, {
38284
+ size: "18",
38285
+ class: "ml-2"
38286
+ }, {
38287
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
38288
+ createTextVNode("mdi-chevron-down", -1)
38289
+ ])]),
38290
+ _: 1
38291
+ })
38292
+ ]),
38293
+ _: 2
38294
+ }, 1040)
38295
+ ]),
38296
+ default: withCtx(() => [
38297
+ createVNode(VList, null, {
38298
+ default: withCtx(() => [
38299
+ (openBlock(true), createElementBlock(Fragment, null, renderList(item.children, (child, c) => {
38300
+ return openBlock(), createBlock(VListItem, {
38301
+ key: c,
38302
+ to: child.type === "external" ? "" : child.to,
38303
+ href: child.type === "external" ? child.to : "",
38304
+ target: child.type === "external" ? "_blank" : ""
38305
+ }, {
38306
+ default: withCtx(() => [
38307
+ createVNode(VListItemTitle, null, {
38308
+ default: withCtx(() => [
38309
+ createTextVNode(toDisplayString(child.title), 1)
38310
+ ]),
38311
+ _: 2
38312
+ }, 1024)
38313
+ ]),
38314
+ _: 2
38315
+ }, 1032, ["to", "href", "target"]);
38316
+ }), 128))
38317
+ ]),
38318
+ _: 2
38319
+ }, 1024)
38320
+ ]),
38321
+ _: 2
38322
+ }, 1024))
38323
+ ], 64);
38324
+ }), 128))
38325
+ ])) : createCommentVNode("", true),
38326
+ createVNode(VSpacer),
38327
+ renderSlot(_ctx.$slots, "notifications", {}, () => [
38328
+ createVNode(VBtn, {
38329
+ icon: "",
38330
+ class: "text-secondary mx-3",
38331
+ color: "lightsecondary",
38332
+ rounded: "sm",
38333
+ size: "small",
38334
+ variant: "flat"
38335
+ }, {
38336
+ default: withCtx(() => [
38337
+ createVNode(VIcon, { size: "20" }, {
38338
+ default: withCtx(() => [..._cache[7] || (_cache[7] = [
38339
+ createTextVNode("mdi-bell-outline", -1)
38340
+ ])]),
38341
+ _: 1
38342
+ })
38343
+ ]),
38344
+ _: 1
38345
+ })
38346
+ ], true),
38347
+ renderSlot(_ctx.$slots, "profile", {}, () => [
38348
+ createVNode(VBtn, {
38349
+ class: "profileBtn text-primary",
38350
+ color: "lightprimary",
38351
+ variant: "flat",
38352
+ rounded: "pill"
38353
+ }, {
38354
+ default: withCtx(() => [
38355
+ createVNode(VIcon, null, {
38356
+ default: withCtx(() => [..._cache[8] || (_cache[8] = [
38357
+ createTextVNode("mdi-cog", -1)
38358
+ ])]),
38359
+ _: 1
38360
+ })
38361
+ ]),
38362
+ _: 1
38363
+ })
38364
+ ], true)
38572
38365
  ]),
38573
38366
  _: 3
38574
- }, 8, ["color", "elevation", "height", "class", "aria-label"]);
38367
+ });
38575
38368
  };
38576
38369
  }
38577
38370
  });
38578
- const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-b45b815e"]]);
38371
+ const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-4c30d18d"]]);
38579
38372
  const makeVAppProps = propsFactory({
38580
38373
  ...makeComponentProps(),
38581
38374
  ...omit(makeLayoutProps(), ["fullHeight"]),