@robot-admin/layout 3.0.0 β†’ 3.1.0

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/index.js CHANGED
@@ -35,9 +35,13 @@ function Z(e = {}) {
35
35
  }, u = () => {
36
36
  o.value = [], n && console.debug("[KeepAlive] πŸ—‘οΈ ζΈ…η©Ίζ‰€ζœ‰ηΌ“ε­˜");
37
37
  }, d = () => o.value;
38
- return r && typeof window < "u" && (window.__clearCache__ = u, window.__removeCache__ = l, window.__getCachedViews__ = d, y(() => {
39
- window.__clearCache__ === u && delete window.__clearCache__, window.__removeCache__ === l && delete window.__removeCache__, window.__getCachedViews__ === d && delete window.__getCachedViews__;
40
- })), j(() => [i.name, i.meta.keepAlive], () => {
38
+ if (r && typeof window < "u") {
39
+ let e = window;
40
+ e.__clearCache__ = u, e.__removeCache__ = l, e.__getCachedViews__ = d, y(() => {
41
+ e.__clearCache__ === u && delete e.__clearCache__, e.__removeCache__ === l && delete e.__removeCache__, e.__getCachedViews__ === d && delete e.__getCachedViews__;
42
+ });
43
+ }
44
+ return j(() => [i.name, i.meta.keepAlive], () => {
41
45
  fe(i) && c(i.name);
42
46
  }, { immediate: !0 }), {
43
47
  cachedViews: o,
@@ -1259,7 +1263,7 @@ var je = { class: "mix-layout-container" }, Me = { class: "logo-container" }, Ne
1259
1263
  sidebarCollapsedWidth: 64,
1260
1264
  headerHeight: 56,
1261
1265
  enableHotkeys: !0,
1262
- version: "3.0.0"
1266
+ version: "3.1.0"
1263
1267
  }, sn = tn.map((e) => e.value), cn = {
1264
1268
  themeMode: new Set([
1265
1269
  "light",
@@ -2008,7 +2012,7 @@ var gn = hn(), _n = [
2008
2012
  _: 3
2009
2013
  }, 8, ["show", "width"]));
2010
2014
  }
2011
- }), [["__scopeId", "data-v-c78e9ba9"]]), Tr = { class: "brand-logo__icon" }, Er = [
2015
+ }), [["__scopeId", "data-v-d9843552"]]), Tr = { class: "brand-logo__icon" }, Er = [
2012
2016
  "src",
2013
2017
  "width",
2014
2018
  "height"
@@ -2291,6 +2295,44 @@ function xi(e, t = {}) {
2291
2295
  return e.provide(ce, r), n;
2292
2296
  }
2293
2297
  //#endregion
2294
- export { an as BORDER_RADIUS_MAP, Mr as BrandLogo, sn as COLOR_SWATCHES, Qt as C_CardLayout, Qt as CardLayout, en as C_LayoutContainer, Ke as C_MixLayout, Ke as MixLayout, lt as C_MixTopLayout, lt as MixTopLayout, jt as C_ReverseHorizontalMixLayout, jt as ReverseHorizontalMixLayout, pe as C_SideLayout, pe as SideLayout, Oe as C_TopLayout, Oe as TopLayout, X as DEFAULT_BRAND_CONFIG, $ as DEFAULT_SETTINGS, ue as DRAWER_HANDLER_KEY, yi as DrawerMenu, Xr as FloatingMenu, Rr as IconMenu, J as LAYOUT_CONTEXT_KEY, rn as LAYOUT_MODES, ce as LAYOUT_SETTINGS_KEY, le as MENU_COLLAPSE_KEY, bi as MenuTrigger, tn as PRESET_COLORS, _e as ResponsiveMenu, dn as SETTINGS_CONFIG_SCHEMA_VERSION, wr as SettingsDrawer, si as SideMenu, nn as THEME_PRESETS, on as TRANSITION_MAP, mn as adjustColor, hn as createSettingsStore, de as provideLayoutContext, pn as sanitizeLayoutSettingsConfig, fn as sanitizeSettingsPatch, xi as setupLayout, fe as shouldCacheRoute, Z as useLayoutCache, Y as useLayoutContext, Ae as useMenuSplit, gn as useSettingsStore };
2298
+ //#region src/composables/createLayoutContext.ts
2299
+ function Si(e) {
2300
+ let { settings: t } = e;
2301
+ return {
2302
+ menus: r(() => O(e.menus)),
2303
+ isDark: r(() => O(e.isDark)),
2304
+ layoutMode: r(() => t.layoutMode),
2305
+ collapsed: r({
2306
+ get: () => t.collapsed,
2307
+ set: (e) => {
2308
+ t.collapsed = e;
2309
+ }
2310
+ }),
2311
+ menuExpandMode: r(() => t.menuExpandMode),
2312
+ sidebarWidth: r(() => t.sidebarWidth),
2313
+ sidebarCollapsedWidth: r(() => t.sidebarCollapsedWidth),
2314
+ showFooter: r(() => t.showFooter),
2315
+ showTagsView: r(() => t.showTagsView),
2316
+ tagsViewHeight: r(() => t.tagsViewHeight),
2317
+ headerHeight: r(() => t.headerHeight),
2318
+ transitionName: r(() => t.transitionName),
2319
+ showBreadcrumb: r(() => t.showBreadcrumb),
2320
+ showBreadcrumbIcon: r(() => t.showBreadcrumbIcon),
2321
+ fixedHeader: r(() => t.fixedHeader),
2322
+ brand: {
2323
+ ...X,
2324
+ ...e.brand
2325
+ },
2326
+ iconComponent: e.iconComponent
2327
+ };
2328
+ }
2329
+ function Ci(e) {
2330
+ return de(Si(e));
2331
+ }
2332
+ //#endregion
2333
+ //#region src/index.ts
2334
+ var wi = pe, Ti = Oe, Ei = Ke, Di = lt, Oi = jt, ki = Qt;
2335
+ //#endregion
2336
+ export { an as BORDER_RADIUS_MAP, Mr as BrandLogo, sn as COLOR_SWATCHES, ki as C_CardLayout, en as C_LayoutContainer, Ei as C_MixLayout, Di as C_MixTopLayout, Oi as C_ReverseHorizontalMixLayout, wi as C_SideLayout, Ti as C_TopLayout, Qt as CardLayout, X as DEFAULT_BRAND_CONFIG, $ as DEFAULT_SETTINGS, ue as DRAWER_HANDLER_KEY, yi as DrawerMenu, Xr as FloatingMenu, Rr as IconMenu, J as LAYOUT_CONTEXT_KEY, rn as LAYOUT_MODES, ce as LAYOUT_SETTINGS_KEY, le as MENU_COLLAPSE_KEY, bi as MenuTrigger, Ke as MixLayout, lt as MixTopLayout, tn as PRESET_COLORS, _e as ResponsiveMenu, jt as ReverseHorizontalMixLayout, dn as SETTINGS_CONFIG_SCHEMA_VERSION, wr as SettingsDrawer, pe as SideLayout, si as SideMenu, nn as THEME_PRESETS, on as TRANSITION_MAP, Oe as TopLayout, mn as adjustColor, Si as createLayoutContext, hn as createSettingsStore, Ci as provideLayout, de as provideLayoutContext, pn as sanitizeLayoutSettingsConfig, fn as sanitizeSettingsPatch, xi as setupLayout, fe as shouldCacheRoute, Z as useLayoutCache, Y as useLayoutContext, Ae as useMenuSplit, gn as useSettingsStore };
2295
2337
 
2296
2338
  //# sourceMappingURL=index.js.map