@amirjalili1374/ui-kit 1.4.1 → 1.4.2

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
@@ -38154,6 +38154,10 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
38154
38154
  type: Boolean,
38155
38155
  default: false
38156
38156
  },
38157
+ sidebarDrawer: {
38158
+ type: Boolean,
38159
+ default: false
38160
+ },
38157
38161
  userInfoLoaded: {
38158
38162
  type: Boolean,
38159
38163
  default: false
@@ -38182,11 +38186,25 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
38182
38186
  if (props.userInfoLoaded) return props.headerMenu;
38183
38187
  return props.headerMenu;
38184
38188
  });
38189
+ const headerWidth = computed(() => {
38190
+ if (props.menuOrientation !== "vertical") {
38191
+ return "100%";
38192
+ }
38193
+ if (props.sidebarDrawer) {
38194
+ if (props.miniSidebar) {
38195
+ return "calc(100% - 82px)";
38196
+ }
38197
+ return "calc(100% - 256px)";
38198
+ }
38199
+ return "100%";
38200
+ });
38185
38201
  return (_ctx, _cache) => {
38186
38202
  return openBlock(), createBlock(VAppBar, {
38187
38203
  elevation: "0",
38188
38204
  height: "80",
38189
- class: "app-header topbar"
38205
+ fixed: "",
38206
+ class: "app-header topbar",
38207
+ style: normalizeStyle({ width: headerWidth.value, right: 0 })
38190
38208
  }, {
38191
38209
  default: withCtx(() => [
38192
38210
  createElementVNode("div", _hoisted_1$1, [
@@ -38389,11 +38407,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent$1({
38389
38407
  ], true)
38390
38408
  ]),
38391
38409
  _: 3
38392
- });
38410
+ }, 8, ["style"]);
38393
38411
  };
38394
38412
  }
38395
38413
  });
38396
- const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-83d3eb65"]]);
38414
+ const AppHeader = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["__scopeId", "data-v-f2f62f7e"]]);
38397
38415
  const makeVAppProps = propsFactory({
38398
38416
  ...makeComponentProps(),
38399
38417
  ...omit(makeLayoutProps(), ["fullHeight"]),
@@ -38487,7 +38505,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
38487
38505
  return (_ctx, _cache) => {
38488
38506
  return openBlock(), createBlock(VApp, null, {
38489
38507
  default: withCtx(() => [
38490
- createVNode(AppHeader, mergeProps(__props.header, { class: "app-header" }), {
38508
+ createVNode(AppHeader, mergeProps(__props.header, {
38509
+ sidebarDrawer: __props.sidebar.sidebarDrawer,
38510
+ class: "app-header"
38511
+ }), {
38491
38512
  notifications: withCtx(() => [
38492
38513
  renderSlot(_ctx.$slots, "notifications", {}, void 0, true)
38493
38514
  ]),
@@ -38495,7 +38516,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
38495
38516
  renderSlot(_ctx.$slots, "profile", {}, void 0, true)
38496
38517
  ]),
38497
38518
  _: 3
38498
- }, 16),
38519
+ }, 16, ["sidebarDrawer"]),
38499
38520
  createVNode(_sfc_main$2, {
38500
38521
  sidebarItems: __props.sidebar.sidebarItems,
38501
38522
  getFilteredSidebarItems: __props.sidebar.getFilteredSidebarItems,
@@ -38519,7 +38540,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent$1({
38519
38540
  };
38520
38541
  }
38521
38542
  });
38522
- const AppLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-82bccb54"]]);
38543
+ const AppLayout = /* @__PURE__ */ _export_sfc$1(_sfc_main, [["__scopeId", "data-v-a03400ab"]]);
38523
38544
  function useDataTable(options) {
38524
38545
  const items = ref([]);
38525
38546
  const loading = ref(false);