@amirjalili1374/ui-kit 1.3.4 → 1.3.6

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 = {
38343
- key: 2,
38341
+ const _hoisted_3$1 = ["innerHTML"];
38342
+ const _hoisted_4$1 = ["src"];
38343
+ const _hoisted_5$1 = {
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,8 @@ 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 }
38364
38366
  },
38365
38367
  setup(__props) {
38366
38368
  const props = __props;
@@ -38368,6 +38370,8 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38368
38370
  const route = useRoute$1();
38369
38371
  const router = useRouter$1();
38370
38372
  const isMini = computed(() => props.miniSidebar || customizer.mini_sidebar);
38373
+ const isLogoSvgString = computed(() => typeof props.logoSvg === "string" && !!props.logoSvg);
38374
+ const isLogoSvgComponent = computed(() => typeof props.logoSvg !== "string" && !!props.logoSvg);
38371
38375
  const drawer = computed({
38372
38376
  get: () => customizer.Sidebar_drawer,
38373
38377
  set: (val2) => customizer.SET_SIDEBAR_DRAWER(val2)
@@ -38398,38 +38402,44 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38398
38402
  "expand-on-hover": expandOnHover.value,
38399
38403
  location: __props.location,
38400
38404
  width: navigationDrawerWidth.value,
38401
- class: normalizeClass([["app-sidebar leftSidebar", { "mini-sidebar": isMini.value }, __props.containerClass], "border-0"])
38405
+ class: normalizeClass([["app-sidebar leftSidebar", { "mini-sidebar": isMini.value, "debug-borders": __props.debugBorders }, __props.containerClass], "border-0"])
38402
38406
  }, {
38403
38407
  default: withCtx(() => [
38404
- renderSlot(_ctx.$slots, "logo", {
38405
- isMini: isMini.value,
38406
- themeMode: unref(customizer).themeMode
38407
- }, () => [
38408
- !__props.hideDefaultLogo ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
38409
- __props.logoSvg || __props.logo || __props.logoText ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
38410
- __props.logoSvg ? (openBlock(), createElementBlock("div", {
38411
- key: 0,
38412
- class: "logo-svg",
38413
- innerHTML: __props.logoSvg,
38414
- style: { height: "40px", display: "flex", alignItems: "center" }
38415
- }, null, 8, _hoisted_2$1)) : __props.logo && !isMini.value ? (openBlock(), createElementBlock("img", {
38416
- key: 1,
38417
- src: unref(customizer).themeMode === "dark" && __props.logoLight ? __props.logoLight : __props.logo,
38418
- alt: "Logo",
38419
- class: "logo-img",
38420
- style: { "max-height": "40px", "max-width": "100%" }
38421
- }, null, 8, _hoisted_3$1)) : createCommentVNode("", true),
38422
- __props.logoText && !isMini.value ? (openBlock(), createElementBlock("span", _hoisted_4$1, toDisplayString(__props.logoText), 1)) : createCommentVNode("", true),
38423
- !__props.logoSvg && __props.logo && isMini.value ? (openBlock(), createElementBlock("img", {
38424
- key: 3,
38425
- src: unref(customizer).themeMode === "dark" && __props.logoLight ? __props.logoLight : __props.logo,
38426
- alt: "Logo",
38427
- class: "logo-img-mini",
38428
- style: { "height": "40px", "width": "40px", "object-fit": "contain" }
38429
- }, null, 8, _hoisted_5$1)) : createCommentVNode("", true)
38430
- ], 64)) : (openBlock(), createBlock(VSpacer, { key: 1 }))
38431
- ])) : createCommentVNode("", true)
38432
- ], true),
38408
+ createElementVNode("div", _hoisted_1$2, [
38409
+ renderSlot(_ctx.$slots, "logo", {
38410
+ isMini: isMini.value,
38411
+ themeMode: unref(customizer).themeMode
38412
+ }, () => [
38413
+ !__props.hideDefaultLogo ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
38414
+ __props.logoSvg || __props.logo || __props.logoText ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
38415
+ isLogoSvgComponent.value ? (openBlock(), createBlock(resolveDynamicComponent(__props.logoSvg), {
38416
+ key: 0,
38417
+ class: "logo-svg",
38418
+ style: { "height": "40px", "display": "flex", "align-items": "center" }
38419
+ })) : isLogoSvgString.value ? (openBlock(), createElementBlock("div", {
38420
+ key: 1,
38421
+ class: "logo-svg",
38422
+ innerHTML: __props.logoSvg,
38423
+ style: { height: "40px", display: "flex", alignItems: "center" }
38424
+ }, null, 8, _hoisted_3$1)) : __props.logo && !isMini.value ? (openBlock(), createElementBlock("img", {
38425
+ key: 2,
38426
+ src: unref(customizer).themeMode === "dark" && __props.logoLight ? __props.logoLight : __props.logo,
38427
+ alt: "Logo",
38428
+ class: "logo-img",
38429
+ style: { "max-height": "40px", "max-width": "100%" }
38430
+ }, null, 8, _hoisted_4$1)) : createCommentVNode("", true),
38431
+ __props.logoText && !isMini.value ? (openBlock(), createElementBlock("span", _hoisted_5$1, toDisplayString(__props.logoText), 1)) : createCommentVNode("", true),
38432
+ !__props.logoSvg && __props.logo && isMini.value ? (openBlock(), createElementBlock("img", {
38433
+ key: 4,
38434
+ src: unref(customizer).themeMode === "dark" && __props.logoLight ? __props.logoLight : __props.logo,
38435
+ alt: "Logo",
38436
+ class: "logo-img-mini",
38437
+ style: { "height": "40px", "width": "40px", "object-fit": "contain" }
38438
+ }, null, 8, _hoisted_6)) : createCommentVNode("", true)
38439
+ ], 64)) : (openBlock(), createBlock(VSpacer, { key: 1 }))
38440
+ ])) : createCommentVNode("", true)
38441
+ ], true)
38442
+ ]),
38433
38443
  createVNode(VDivider),
38434
38444
  createVNode(unref(C), {
38435
38445
  class: "scrollnavbar",
@@ -38596,7 +38606,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent$1({
38596
38606
  };
38597
38607
  }
38598
38608
  });
38599
- const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-043a3ef2"]]);
38609
+ const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["__scopeId", "data-v-5a1deb68"]]);
38600
38610
  const makeVToolbarTitleProps = propsFactory({
38601
38611
  text: String,
38602
38612
  ...makeComponentProps(),