@amirjalili1374/ui-kit 1.3.2 → 1.3.3

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
@@ -38167,7 +38167,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
38167
38167
  "expand-on-hover": expandOnHover.value,
38168
38168
  location: __props.location,
38169
38169
  width: navigationDrawerWidth.value,
38170
- class: normalizeClass([["leftSidebar", { "mini-sidebar": isMini.value }], "border-0"])
38170
+ class: normalizeClass([["app-sidebar leftSidebar", { "mini-sidebar": isMini.value }], "border-0"])
38171
38171
  }, {
38172
38172
  default: withCtx(() => [
38173
38173
  createElementVNode("div", _hoisted_1$1, [
@@ -38333,7 +38333,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
38333
38333
  };
38334
38334
  }
38335
38335
  });
38336
- const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-b3040226"]]);
38336
+ const AppSidebar = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-10636e8c"]]);
38337
38337
  const makeVToolbarTitleProps = propsFactory({
38338
38338
  text: String,
38339
38339
  ...makeComponentProps(),
@@ -38900,13 +38900,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
38900
38900
  customizer.SET_SIDEBAR_DRAWER();
38901
38901
  emit("toggle-sidebar");
38902
38902
  };
38903
+ const router = useRouter$1();
38903
38904
  const profileMenuItems = computed(
38904
38905
  () => props.profileMenu.map((item) => ({
38905
38906
  ...item,
38906
38907
  prependIcon: item.icon,
38907
38908
  onClick: item.action || (() => {
38908
38909
  if (item.to) {
38909
- console.log("Navigate to:", item.to);
38910
+ router.push(item.to);
38910
38911
  } else if (item.href) {
38911
38912
  window.open(item.href, "_blank");
38912
38913
  }
@@ -38918,7 +38919,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
38918
38919
  color: __props.color,
38919
38920
  elevation: __props.elevation,
38920
38921
  height: __props.height,
38921
- class: normalizeClass([props.class, "topbar"]),
38922
+ class: normalizeClass(["app-header topbar", props.class]),
38922
38923
  fixed: ""
38923
38924
  }, {
38924
38925
  default: withCtx(() => [
@@ -39149,7 +39150,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
39149
39150
  };
39150
39151
  }
39151
39152
  });
39152
- const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-b7912421"]]);
39153
+ const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-2b041a33"]]);
39153
39154
  function useDataTable(options) {
39154
39155
  const items = ref([]);
39155
39156
  const loading = ref(false);