@amirjalili1374/ui-kit 1.3.5 → 1.3.7

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
@@ -12596,7 +12596,7 @@ const _hoisted_2$6 = { class: "ca-item-subtitle" };
12596
12596
  const _hoisted_3$6 = { class: "ca-group-tooltip" };
12597
12597
  const _hoisted_4$4 = { class: "ca-group-tooltip-header" };
12598
12598
  const _hoisted_5$4 = { class: "ca-group-count" };
12599
- const _hoisted_6$2 = { class: "ca-group-members" };
12599
+ const _hoisted_6$3 = { 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" };
@@ -12751,7 +12751,7 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent$1({
12751
12751
  createElementVNode("strong", null, toDisplayString(resolveTitle(item.raw ?? item)), 1),
12752
12752
  createElementVNode("span", _hoisted_5$4, toDisplayString(getGroupMembers(item.raw ?? item).length) + " آیتم", 1)
12753
12753
  ]),
12754
- createElementVNode("div", _hoisted_6$2, [
12754
+ createElementVNode("div", _hoisted_6$3, [
12755
12755
  (openBlock(true), createElementBlock(Fragment, null, renderList(getGroupMembers(item.raw ?? item), (member, idx) => {
12756
12756
  return openBlock(), createElementBlock("div", {
12757
12757
  key: `${resolveValue(member)}-${idx}`,
@@ -16670,7 +16670,7 @@ const _hoisted_5$3 = {
16670
16670
  key: 0,
16671
16671
  class: "selected-actions"
16672
16672
  };
16673
- const _hoisted_6$1 = {
16673
+ const _hoisted_6$2 = {
16674
16674
  key: 0,
16675
16675
  class: "me-1"
16676
16676
  };
@@ -17716,7 +17716,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent$1({
17716
17716
  onClick: ($event) => button.onClick(item)
17717
17717
  }, {
17718
17718
  default: withCtx(() => [
17719
- button.icon ? (openBlock(), createElementBlock("span", _hoisted_6$1, toDisplayString(button.icon), 1)) : createCommentVNode("", true),
17719
+ button.icon ? (openBlock(), createElementBlock("span", _hoisted_6$2, toDisplayString(button.icon), 1)) : createCommentVNode("", true),
17720
17720
  createTextVNode(" " + toDisplayString(button.label), 1)
17721
17721
  ]),
17722
17722
  _: 2
@@ -19107,7 +19107,7 @@ const _hoisted_4$2 = {
19107
19107
  class: "zoom-controls"
19108
19108
  };
19109
19109
  const _hoisted_5$2 = { class: "zoom-level" };
19110
- const _hoisted_6 = {
19110
+ const _hoisted_6$1 = {
19111
19111
  key: 1,
19112
19112
  class: "navigation-controls"
19113
19113
  };
@@ -19399,7 +19399,7 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent$1({
19399
19399
  _: 1
19400
19400
  })
19401
19401
  ])) : createCommentVNode("", true),
19402
- __props.showNavigationControls ? (openBlock(), createElementBlock("div", _hoisted_6, [
19402
+ __props.showNavigationControls ? (openBlock(), createElementBlock("div", _hoisted_6$1, [
19403
19403
  createVNode(VBtn, {
19404
19404
  size: "small",
19405
19405
  variant: "text",
@@ -38333,17 +38333,18 @@ const VNavigationDrawer = genericComponent()({
38333
38333
  };
38334
38334
  }
38335
38335
  });
38336
- const _hoisted_1$2 = {
38336
+ const _hoisted_1$2 = { class: "logo d-flex align-center pa-4" };
38337
+ const _hoisted_2$1 = {
38337
38338
  key: 0,
38338
- class: "logo d-flex align-center pa-4"
38339
+ class: "d-flex align-center w-100"
38339
38340
  };
38340
- const _hoisted_2$1 = ["innerHTML"];
38341
- const _hoisted_3$1 = ["src"];
38342
- const _hoisted_4$1 = {
38341
+ const _hoisted_3$1 = ["innerHTML"];
38342
+ const _hoisted_4$1 = ["src"];
38343
+ const _hoisted_5$1 = {
38343
38344
  key: 3,
38344
38345
  class: "logo-text text-h6 ms-2"
38345
38346
  };
38346
- const _hoisted_5$1 = ["src"];
38347
+ const _hoisted_6 = ["src"];
38347
38348
  const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38348
38349
  __name: "AppSidebar",
38349
38350
  props: {
@@ -38360,7 +38361,9 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38360
38361
  width: { default: 265 },
38361
38362
  railWidth: { default: 75 },
38362
38363
  containerClass: { default: "" },
38363
- hideDefaultLogo: { type: Boolean, default: false }
38364
+ hideDefaultLogo: { type: Boolean, default: false },
38365
+ debugBorders: { type: Boolean, default: false },
38366
+ preset: { default: "default" }
38364
38367
  },
38365
38368
  setup(__props) {
38366
38369
  const props = __props;
@@ -38374,8 +38377,13 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38374
38377
  get: () => customizer.Sidebar_drawer,
38375
38378
  set: (val2) => customizer.SET_SIDEBAR_DRAWER(val2)
38376
38379
  });
38380
+ const resolvedLocation = computed(() => props.preset === "right-mini" ? "right" : props.location);
38381
+ const resolvedMini = computed(() => props.preset === "right-mini" ? true : isMini.value);
38382
+ const resolvedPermanent = computed(() => props.preset === "right-mini" ? true : props.permanent);
38383
+ const resolvedTemporary = computed(() => props.preset === "right-mini" ? false : props.temporary);
38384
+ const resolvedRailWidth = computed(() => props.preset === "right-mini" ? props.railWidth ?? 80 : props.railWidth);
38377
38385
  const navigationDrawerWidth = computed(
38378
- () => isMini.value ? props.railWidth : props.width
38386
+ () => resolvedMini.value ? resolvedRailWidth.value : props.width
38379
38387
  );
38380
38388
  const handleClick = (item) => {
38381
38389
  if (item.disabled) return;
@@ -38394,48 +38402,59 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38394
38402
  return openBlock(), createBlock(VNavigationDrawer, {
38395
38403
  modelValue: drawer.value,
38396
38404
  "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => drawer.value = $event),
38397
- permanent: __props.permanent && !__props.temporary,
38398
- temporary: __props.temporary,
38399
- rail: __props.rail || isMini.value && !expandOnHover.value,
38405
+ permanent: resolvedPermanent.value && !resolvedTemporary.value,
38406
+ temporary: resolvedTemporary.value,
38407
+ rail: __props.rail || resolvedMini.value && !expandOnHover.value,
38400
38408
  "expand-on-hover": expandOnHover.value,
38401
- location: __props.location,
38409
+ location: resolvedLocation.value,
38402
38410
  width: navigationDrawerWidth.value,
38403
- class: normalizeClass([["app-sidebar leftSidebar", { "mini-sidebar": isMini.value }, __props.containerClass], "border-0"])
38411
+ class: normalizeClass([[
38412
+ "app-sidebar leftSidebar",
38413
+ {
38414
+ "mini-sidebar": resolvedMini.value,
38415
+ "debug-borders": __props.debugBorders,
38416
+ "rightSidebar": resolvedLocation.value === "right",
38417
+ "sidebar-closed": !drawer.value
38418
+ },
38419
+ __props.containerClass
38420
+ ], "border-0"])
38404
38421
  }, {
38405
38422
  default: withCtx(() => [
38406
- renderSlot(_ctx.$slots, "logo", {
38407
- isMini: isMini.value,
38408
- themeMode: unref(customizer).themeMode
38409
- }, () => [
38410
- !__props.hideDefaultLogo ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
38411
- __props.logoSvg || __props.logo || __props.logoText ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
38412
- isLogoSvgComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(__props.logoSvg), {
38413
- key: 0,
38414
- class: "logo-svg",
38415
- style: { "height": "40px", "display": "flex", "align-items": "center" }
38416
- })) : isLogoSvgString.value ? (openBlock(), createElementBlock("div", {
38417
- key: 1,
38418
- class: "logo-svg",
38419
- innerHTML: __props.logoSvg,
38420
- style: { height: "40px", display: "flex", alignItems: "center" }
38421
- }, null, 8, _hoisted_2$1)) : __props.logo && !isMini.value ? (openBlock(), createElementBlock("img", {
38422
- key: 2,
38423
- src: unref(customizer).themeMode === "dark" && __props.logoLight ? __props.logoLight : __props.logo,
38424
- alt: "Logo",
38425
- class: "logo-img",
38426
- style: { "max-height": "40px", "max-width": "100%" }
38427
- }, null, 8, _hoisted_3$1)) : createCommentVNode("", true),
38428
- __props.logoText && !isMini.value ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(__props.logoText), 1)) : createCommentVNode("", true),
38429
- !__props.logoSvg && __props.logo && isMini.value ? (openBlock(), createElementBlock("img", {
38430
- key: 4,
38431
- src: unref(customizer).themeMode === "dark" && __props.logoLight ? __props.logoLight : __props.logo,
38432
- alt: "Logo",
38433
- class: "logo-img-mini",
38434
- style: { "height": "40px", "width": "40px", "object-fit": "contain" }
38435
- }, null, 8, _hoisted_5$1)) : createCommentVNode("", true)
38436
- ], 64)) : (openBlock(), createBlock(VSpacer, { key: 1 }))
38437
- ])) : createCommentVNode("", true)
38438
- ], true),
38423
+ createElementVNode("div", _hoisted_1$2, [
38424
+ renderSlot(_ctx.$slots, "logo", {
38425
+ isMini: isMini.value,
38426
+ themeMode: unref(customizer).themeMode
38427
+ }, () => [
38428
+ !__props.hideDefaultLogo ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
38429
+ __props.logoSvg || __props.logo || __props.logoText ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
38430
+ isLogoSvgComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(__props.logoSvg), {
38431
+ key: 0,
38432
+ class: "logo-svg",
38433
+ style: { "height": "40px", "display": "flex", "align-items": "center" }
38434
+ })) : isLogoSvgString.value ? (openBlock(), createElementBlock("div", {
38435
+ key: 1,
38436
+ class: "logo-svg",
38437
+ innerHTML: __props.logoSvg,
38438
+ style: { height: "40px", display: "flex", alignItems: "center" }
38439
+ }, null, 8, _hoisted_3$1)) : __props.logo && !isMini.value ? (openBlock(), createElementBlock("img", {
38440
+ key: 2,
38441
+ src: unref(customizer).themeMode === "dark" && __props.logoLight ? __props.logoLight : __props.logo,
38442
+ alt: "Logo",
38443
+ class: "logo-img",
38444
+ style: { "max-height": "40px", "max-width": "100%" }
38445
+ }, null, 8, _hoisted_4$1)) : createCommentVNode("", true),
38446
+ __props.logoText && !isMini.value ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(__props.logoText), 1)) : createCommentVNode("", true),
38447
+ !__props.logoSvg && __props.logo && isMini.value ? (openBlock(), createElementBlock("img", {
38448
+ key: 4,
38449
+ src: unref(customizer).themeMode === "dark" && __props.logoLight ? __props.logoLight : __props.logo,
38450
+ alt: "Logo",
38451
+ class: "logo-img-mini",
38452
+ style: { "height": "40px", "width": "40px", "object-fit": "contain" }
38453
+ }, null, 8, _hoisted_6)) : createCommentVNode("", true)
38454
+ ], 64)) : (openBlock(), createBlock(VSpacer, { key: 1 }))
38455
+ ])) : createCommentVNode("", true)
38456
+ ], true)
38457
+ ]),
38439
38458
  createVNode(VDivider),
38440
38459
  createVNode(unref(C), {
38441
38460
  class: "scrollnavbar",
@@ -38602,7 +38621,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38602
38621
  };
38603
38622
  }
38604
38623
  });
38605
- const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-e32ab994"]]);
38624
+ const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-12f2804e"]]);
38606
38625
  const makeVToolbarTitleProps = propsFactory({
38607
38626
  text: String,
38608
38627
  ...makeComponentProps(),