@robot-admin/layout 3.2.2 → 3.2.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.
@@ -1 +1 @@
1
- Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../vue-DVWXVFUx.cjs`);exports.BORDER_RADIUS_MAP=e.d,exports.COLOR_SWATCHES=e.f,exports.DEFAULT_BRAND_CONFIG=e.j,exports.DEFAULT_SETTINGS=e.p,exports.DRAWER_HANDLER_KEY=e.M,exports.LAYOUT_CONTEXT_KEY=e.N,exports.LAYOUT_MODES=e.m,exports.LAYOUT_SETTINGS_KEY=e.P,exports.LayoutActionUnavailableError=e.t,exports.MENU_COLLAPSE_KEY=e.F,exports.PRESET_COLORS=e.h,exports.SETTINGS_CONFIG_SCHEMA_VERSION=e.v,exports.THEME_PRESETS=e.g,exports.TRANSITION_MAP=e._,exports.adjustColor=e.y,exports.assertLayoutSettingsRelationships=e.b,exports.bindLayoutCssVariables=e.l,exports.calculateVisibleMenuCount=e.E,exports.createLayoutContext=e.r,exports.createSettingsStore=e.s,exports.estimateMenuItemWidth=e.D,exports.isPathSegmentPrefix=e.w,exports.normalizeLayoutMenus=e.a,exports.provideLayout=e.i,exports.provideLayoutContext=e.I,exports.sanitizeLayoutSettingsConfig=e.x,exports.sanitizeSettingsPatch=e.S,exports.setupLayout=e.o,exports.shouldCacheRoute=e.k,exports.useLayoutCache=e.A,exports.useLayoutContext=e.L,exports.useLayoutCssVariables=e.u,exports.useLayoutIcon=e.C,exports.useMenuSplit=e.T,exports.useResponsiveMenu=e.O,exports.useSettingsController=e.n,exports.useSettingsStore=e.c;
1
+ Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../vue-CtN1HvrH.cjs`);exports.BORDER_RADIUS_MAP=e.d,exports.COLOR_SWATCHES=e.f,exports.DEFAULT_BRAND_CONFIG=e.j,exports.DEFAULT_SETTINGS=e.p,exports.DRAWER_HANDLER_KEY=e.M,exports.LAYOUT_CONTEXT_KEY=e.N,exports.LAYOUT_MODES=e.m,exports.LAYOUT_SETTINGS_KEY=e.P,exports.LayoutActionUnavailableError=e.t,exports.MENU_COLLAPSE_KEY=e.F,exports.PRESET_COLORS=e.h,exports.SETTINGS_CONFIG_SCHEMA_VERSION=e.v,exports.THEME_PRESETS=e.g,exports.TRANSITION_MAP=e._,exports.adjustColor=e.y,exports.assertLayoutSettingsRelationships=e.b,exports.bindLayoutCssVariables=e.l,exports.calculateVisibleMenuCount=e.E,exports.createLayoutContext=e.r,exports.createSettingsStore=e.s,exports.estimateMenuItemWidth=e.D,exports.isPathSegmentPrefix=e.w,exports.normalizeLayoutMenus=e.a,exports.provideLayout=e.i,exports.provideLayoutContext=e.I,exports.sanitizeLayoutSettingsConfig=e.x,exports.sanitizeSettingsPatch=e.S,exports.setupLayout=e.o,exports.shouldCacheRoute=e.k,exports.useLayoutCache=e.A,exports.useLayoutContext=e.L,exports.useLayoutCssVariables=e.u,exports.useLayoutIcon=e.C,exports.useMenuSplit=e.T,exports.useResponsiveMenu=e.O,exports.useSettingsController=e.n,exports.useSettingsStore=e.c;
@@ -39,13 +39,15 @@ interface SettingsState {
39
39
  /** @deprecated 包版本不应参与配置迁移,请使用 SETTINGS_CONFIG_SCHEMA_VERSION。 */
40
40
  version: string;
41
41
  }
42
+ /** 主题预设实际应用的外观细节;其他布局设置由宿主单独维护。 */
43
+ type ThemePresetSettings = Partial<Pick<SettingsState, "borderRadius" | "transitionType" | "showBreadcrumb" | "showTagsView" | "tagsViewStyle">>;
42
44
  /** 主题预设方案。 */
43
45
  interface ThemePreset {
44
46
  name: string;
45
47
  description?: string;
46
48
  icon: string;
47
49
  primaryColor: string;
48
- settings?: Partial<Omit<SettingsState, "themeMode" | "layoutMode" | "primaryColor">>;
50
+ settings?: ThemePresetSettings;
49
51
  }
50
52
  /** Settings Store 初始化选项。 */
51
53
  interface SettingsStoreOptions {
@@ -271,7 +273,7 @@ declare function setupLayout(app: App, options?: SettingsStoreOptions): pinia.St
271
273
  resetSettings: () => void;
272
274
  updateThemeMode: (mode: ThemeMode) => Promise<void>;
273
275
  toggleCollapse: () => void;
274
- }, "themeMode" | "layoutMode" | "primaryColor" | "borderRadius" | "transitionType" | "enableTransition" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumb" | "showBreadcrumbIcon" | "showTagsView" | "tagsViewHeight" | "tagsViewStyle" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
276
+ }, "borderRadius" | "transitionType" | "showBreadcrumb" | "showTagsView" | "tagsViewStyle" | "themeMode" | "primaryColor" | "enableTransition" | "layoutMode" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumbIcon" | "tagsViewHeight" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
275
277
  defaults: Readonly<{
276
278
  themeMode: ThemeMode;
277
279
  primaryColor: string;
@@ -434,7 +436,7 @@ declare function createSettingsStore(options?: SettingsStoreOptions): pinia.Stor
434
436
  resetSettings: () => void;
435
437
  updateThemeMode: (mode: ThemeMode) => Promise<void>;
436
438
  toggleCollapse: () => void;
437
- }, "themeMode" | "layoutMode" | "primaryColor" | "borderRadius" | "transitionType" | "enableTransition" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumb" | "showBreadcrumbIcon" | "showTagsView" | "tagsViewHeight" | "tagsViewStyle" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
439
+ }, "borderRadius" | "transitionType" | "showBreadcrumb" | "showTagsView" | "tagsViewStyle" | "themeMode" | "primaryColor" | "enableTransition" | "layoutMode" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumbIcon" | "tagsViewHeight" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
438
440
  /** 当前 Store 实例实际使用的默认值。 */
439
441
  defaults: Readonly<{
440
442
  themeMode: ThemeMode;
@@ -597,7 +599,7 @@ declare const useSettingsStore: pinia.StoreDefinition<string, Pick<{
597
599
  resetSettings: () => void;
598
600
  updateThemeMode: (mode: ThemeMode) => Promise<void>;
599
601
  toggleCollapse: () => void;
600
- }, "themeMode" | "layoutMode" | "primaryColor" | "borderRadius" | "transitionType" | "enableTransition" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumb" | "showBreadcrumbIcon" | "showTagsView" | "tagsViewHeight" | "tagsViewStyle" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
602
+ }, "borderRadius" | "transitionType" | "showBreadcrumb" | "showTagsView" | "tagsViewStyle" | "themeMode" | "primaryColor" | "enableTransition" | "layoutMode" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumbIcon" | "tagsViewHeight" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
601
603
  /** 当前 Store 实例实际使用的默认值。 */
602
604
  defaults: Readonly<{
603
605
  themeMode: ThemeMode;
@@ -707,18 +709,23 @@ declare const useSettingsStore: pinia.StoreDefinition<string, Pick<{
707
709
  /** 默认设置 Store 实例类型,供组件注入或显式传入。 */
708
710
  type SettingsStoreInstance = ReturnType<typeof useSettingsStore>;
709
711
 
712
+ /** 标准化只保证通用元数据与标题;宿主扩展字段可能因缺少 meta 而不存在。 */
713
+ type LayoutMenuMeta<TMeta extends MenuMeta = MenuMeta> = MenuMeta & {
714
+ [K in keyof TMeta as K extends "title" | "icon" ? never : K]?: TMeta[K];
715
+ } & {
716
+ title: string;
717
+ };
710
718
  /** 布局内置导航可以安全消费的标准菜单项。 */
711
719
  type LayoutMenuItem<TMeta extends MenuMeta = MenuMeta> = Omit<MenuOptions<TMeta>, "children" | "key" | "meta" | "path"> & {
712
720
  key: string;
713
721
  path: string;
714
- meta: TMeta & {
715
- title: string;
716
- };
722
+ meta: LayoutMenuMeta<TMeta>;
717
723
  children?: LayoutMenuItem<TMeta>[];
718
724
  };
719
725
  /**
720
726
  * 非破坏地统一 path/key、label/meta.title 与字符串图标来源。
721
727
  * 缺少稳定路径或 key 的节点不会进入导航,避免意外跳转到根路由。
728
+ * meta 可缺省,因此不会把宿主扩展字段提升为必填;title/icon 会按通用规则补齐。
722
729
  */
723
730
  declare function normalizeLayoutMenus<TMeta extends MenuMeta = MenuMeta>(menus: readonly MenuOptions<TMeta>[]): LayoutMenuItem<TMeta>[];
724
731
 
@@ -1178,4 +1185,4 @@ declare function bindLayoutCssVariables(source: LayoutCssVariableSource, options
1178
1185
  /** setup 作用域内使用的自动清理版本。 */
1179
1186
  declare function useLayoutCssVariables(source: LayoutCssVariableSource, options?: LayoutCssVariableOptions): LayoutCssVariableBinding;
1180
1187
 
1181
- export { BORDER_RADIUS_MAP, type BorderRadiusSize, COLOR_SWATCHES, type CreateLayoutContextOptions, DEFAULT_BRAND_CONFIG, DEFAULT_SETTINGS, DRAWER_HANDLER_KEY, type DrawerHandlers, type ExportedLayoutSettings, LAYOUT_CONTEXT_KEY, LAYOUT_MODES, LAYOUT_SETTINGS_KEY, LayoutActionUnavailableError, type LayoutBrandConfig, type LayoutCacheOptions, type LayoutContext, type LayoutCssVariableBinding, type LayoutCssVariableOptions, type LayoutCssVariableSource, type LayoutCssVariableTarget, type LayoutInfo, type LayoutMenuItem, type LayoutMode, type LayoutSettingsConfig, type LayoutSettingsSource, type LayoutStyleDeclaration, type LayoutVisualEffects, MENU_COLLAPSE_KEY, type MenuCollapseHandlers, type MenuExpandMode, type MenuItemType, type MenuMeta, type MenuOptions, type MenuTag, PRESET_COLORS, type PresetColor, SETTINGS_CONFIG_SCHEMA_VERSION, type SettingsControllerOptions, type SettingsDrawerActions, type SettingsState, type SettingsStoreInstance, type SettingsStoreOptions, THEME_PRESETS, TRANSITION_MAP, type TagsViewStyle, type ThemeMode, type ThemePreset, type TransitionType, type UseMenuSplitOptions, type UseMenuSplitReturn, type UseResponsiveMenuOptions, adjustColor, assertLayoutSettingsRelationships, bindLayoutCssVariables, calculateVisibleMenuCount, createLayoutContext, createSettingsStore, estimateMenuItemWidth, isPathSegmentPrefix, normalizeLayoutMenus, provideLayout, provideLayoutContext, sanitizeLayoutSettingsConfig, sanitizeSettingsPatch, setupLayout, shouldCacheRoute, useLayoutCache, useLayoutContext, useLayoutCssVariables, useLayoutIcon, useMenuSplit, useResponsiveMenu, useSettingsController, useSettingsStore };
1188
+ export { BORDER_RADIUS_MAP, type BorderRadiusSize, COLOR_SWATCHES, type CreateLayoutContextOptions, DEFAULT_BRAND_CONFIG, DEFAULT_SETTINGS, DRAWER_HANDLER_KEY, type DrawerHandlers, type ExportedLayoutSettings, LAYOUT_CONTEXT_KEY, LAYOUT_MODES, LAYOUT_SETTINGS_KEY, LayoutActionUnavailableError, type LayoutBrandConfig, type LayoutCacheOptions, type LayoutContext, type LayoutCssVariableBinding, type LayoutCssVariableOptions, type LayoutCssVariableSource, type LayoutCssVariableTarget, type LayoutInfo, type LayoutMenuItem, type LayoutMenuMeta, type LayoutMode, type LayoutSettingsConfig, type LayoutSettingsSource, type LayoutStyleDeclaration, type LayoutVisualEffects, MENU_COLLAPSE_KEY, type MenuCollapseHandlers, type MenuExpandMode, type MenuItemType, type MenuMeta, type MenuOptions, type MenuTag, PRESET_COLORS, type PresetColor, SETTINGS_CONFIG_SCHEMA_VERSION, type SettingsControllerOptions, type SettingsDrawerActions, type SettingsState, type SettingsStoreInstance, type SettingsStoreOptions, THEME_PRESETS, TRANSITION_MAP, type TagsViewStyle, type ThemeMode, type ThemePreset, type ThemePresetSettings, type TransitionType, type UseMenuSplitOptions, type UseMenuSplitReturn, type UseResponsiveMenuOptions, adjustColor, assertLayoutSettingsRelationships, bindLayoutCssVariables, calculateVisibleMenuCount, createLayoutContext, createSettingsStore, estimateMenuItemWidth, isPathSegmentPrefix, normalizeLayoutMenus, provideLayout, provideLayoutContext, sanitizeLayoutSettingsConfig, sanitizeSettingsPatch, setupLayout, shouldCacheRoute, useLayoutCache, useLayoutContext, useLayoutCssVariables, useLayoutIcon, useMenuSplit, useResponsiveMenu, useSettingsController, useSettingsStore };
@@ -39,13 +39,15 @@ interface SettingsState {
39
39
  /** @deprecated 包版本不应参与配置迁移,请使用 SETTINGS_CONFIG_SCHEMA_VERSION。 */
40
40
  version: string;
41
41
  }
42
+ /** 主题预设实际应用的外观细节;其他布局设置由宿主单独维护。 */
43
+ type ThemePresetSettings = Partial<Pick<SettingsState, "borderRadius" | "transitionType" | "showBreadcrumb" | "showTagsView" | "tagsViewStyle">>;
42
44
  /** 主题预设方案。 */
43
45
  interface ThemePreset {
44
46
  name: string;
45
47
  description?: string;
46
48
  icon: string;
47
49
  primaryColor: string;
48
- settings?: Partial<Omit<SettingsState, "themeMode" | "layoutMode" | "primaryColor">>;
50
+ settings?: ThemePresetSettings;
49
51
  }
50
52
  /** Settings Store 初始化选项。 */
51
53
  interface SettingsStoreOptions {
@@ -271,7 +273,7 @@ declare function setupLayout(app: App, options?: SettingsStoreOptions): pinia.St
271
273
  resetSettings: () => void;
272
274
  updateThemeMode: (mode: ThemeMode) => Promise<void>;
273
275
  toggleCollapse: () => void;
274
- }, "themeMode" | "layoutMode" | "primaryColor" | "borderRadius" | "transitionType" | "enableTransition" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumb" | "showBreadcrumbIcon" | "showTagsView" | "tagsViewHeight" | "tagsViewStyle" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
276
+ }, "borderRadius" | "transitionType" | "showBreadcrumb" | "showTagsView" | "tagsViewStyle" | "themeMode" | "primaryColor" | "enableTransition" | "layoutMode" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumbIcon" | "tagsViewHeight" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
275
277
  defaults: Readonly<{
276
278
  themeMode: ThemeMode;
277
279
  primaryColor: string;
@@ -434,7 +436,7 @@ declare function createSettingsStore(options?: SettingsStoreOptions): pinia.Stor
434
436
  resetSettings: () => void;
435
437
  updateThemeMode: (mode: ThemeMode) => Promise<void>;
436
438
  toggleCollapse: () => void;
437
- }, "themeMode" | "layoutMode" | "primaryColor" | "borderRadius" | "transitionType" | "enableTransition" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumb" | "showBreadcrumbIcon" | "showTagsView" | "tagsViewHeight" | "tagsViewStyle" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
439
+ }, "borderRadius" | "transitionType" | "showBreadcrumb" | "showTagsView" | "tagsViewStyle" | "themeMode" | "primaryColor" | "enableTransition" | "layoutMode" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumbIcon" | "tagsViewHeight" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
438
440
  /** 当前 Store 实例实际使用的默认值。 */
439
441
  defaults: Readonly<{
440
442
  themeMode: ThemeMode;
@@ -597,7 +599,7 @@ declare const useSettingsStore: pinia.StoreDefinition<string, Pick<{
597
599
  resetSettings: () => void;
598
600
  updateThemeMode: (mode: ThemeMode) => Promise<void>;
599
601
  toggleCollapse: () => void;
600
- }, "themeMode" | "layoutMode" | "primaryColor" | "borderRadius" | "transitionType" | "enableTransition" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumb" | "showBreadcrumbIcon" | "showTagsView" | "tagsViewHeight" | "tagsViewStyle" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
602
+ }, "borderRadius" | "transitionType" | "showBreadcrumb" | "showTagsView" | "tagsViewStyle" | "themeMode" | "primaryColor" | "enableTransition" | "layoutMode" | "menuExpandMode" | "collapsed" | "fixedHeader" | "showBreadcrumbIcon" | "tagsViewHeight" | "showFooter" | "sidebarWidth" | "sidebarCollapsedWidth" | "headerHeight" | "enableHotkeys" | "version" | "defaults">, Pick<{
601
603
  /** 当前 Store 实例实际使用的默认值。 */
602
604
  defaults: Readonly<{
603
605
  themeMode: ThemeMode;
@@ -707,18 +709,23 @@ declare const useSettingsStore: pinia.StoreDefinition<string, Pick<{
707
709
  /** 默认设置 Store 实例类型,供组件注入或显式传入。 */
708
710
  type SettingsStoreInstance = ReturnType<typeof useSettingsStore>;
709
711
 
712
+ /** 标准化只保证通用元数据与标题;宿主扩展字段可能因缺少 meta 而不存在。 */
713
+ type LayoutMenuMeta<TMeta extends MenuMeta = MenuMeta> = MenuMeta & {
714
+ [K in keyof TMeta as K extends "title" | "icon" ? never : K]?: TMeta[K];
715
+ } & {
716
+ title: string;
717
+ };
710
718
  /** 布局内置导航可以安全消费的标准菜单项。 */
711
719
  type LayoutMenuItem<TMeta extends MenuMeta = MenuMeta> = Omit<MenuOptions<TMeta>, "children" | "key" | "meta" | "path"> & {
712
720
  key: string;
713
721
  path: string;
714
- meta: TMeta & {
715
- title: string;
716
- };
722
+ meta: LayoutMenuMeta<TMeta>;
717
723
  children?: LayoutMenuItem<TMeta>[];
718
724
  };
719
725
  /**
720
726
  * 非破坏地统一 path/key、label/meta.title 与字符串图标来源。
721
727
  * 缺少稳定路径或 key 的节点不会进入导航,避免意外跳转到根路由。
728
+ * meta 可缺省,因此不会把宿主扩展字段提升为必填;title/icon 会按通用规则补齐。
722
729
  */
723
730
  declare function normalizeLayoutMenus<TMeta extends MenuMeta = MenuMeta>(menus: readonly MenuOptions<TMeta>[]): LayoutMenuItem<TMeta>[];
724
731
 
@@ -1178,4 +1185,4 @@ declare function bindLayoutCssVariables(source: LayoutCssVariableSource, options
1178
1185
  /** setup 作用域内使用的自动清理版本。 */
1179
1186
  declare function useLayoutCssVariables(source: LayoutCssVariableSource, options?: LayoutCssVariableOptions): LayoutCssVariableBinding;
1180
1187
 
1181
- export { BORDER_RADIUS_MAP, type BorderRadiusSize, COLOR_SWATCHES, type CreateLayoutContextOptions, DEFAULT_BRAND_CONFIG, DEFAULT_SETTINGS, DRAWER_HANDLER_KEY, type DrawerHandlers, type ExportedLayoutSettings, LAYOUT_CONTEXT_KEY, LAYOUT_MODES, LAYOUT_SETTINGS_KEY, LayoutActionUnavailableError, type LayoutBrandConfig, type LayoutCacheOptions, type LayoutContext, type LayoutCssVariableBinding, type LayoutCssVariableOptions, type LayoutCssVariableSource, type LayoutCssVariableTarget, type LayoutInfo, type LayoutMenuItem, type LayoutMode, type LayoutSettingsConfig, type LayoutSettingsSource, type LayoutStyleDeclaration, type LayoutVisualEffects, MENU_COLLAPSE_KEY, type MenuCollapseHandlers, type MenuExpandMode, type MenuItemType, type MenuMeta, type MenuOptions, type MenuTag, PRESET_COLORS, type PresetColor, SETTINGS_CONFIG_SCHEMA_VERSION, type SettingsControllerOptions, type SettingsDrawerActions, type SettingsState, type SettingsStoreInstance, type SettingsStoreOptions, THEME_PRESETS, TRANSITION_MAP, type TagsViewStyle, type ThemeMode, type ThemePreset, type TransitionType, type UseMenuSplitOptions, type UseMenuSplitReturn, type UseResponsiveMenuOptions, adjustColor, assertLayoutSettingsRelationships, bindLayoutCssVariables, calculateVisibleMenuCount, createLayoutContext, createSettingsStore, estimateMenuItemWidth, isPathSegmentPrefix, normalizeLayoutMenus, provideLayout, provideLayoutContext, sanitizeLayoutSettingsConfig, sanitizeSettingsPatch, setupLayout, shouldCacheRoute, useLayoutCache, useLayoutContext, useLayoutCssVariables, useLayoutIcon, useMenuSplit, useResponsiveMenu, useSettingsController, useSettingsStore };
1188
+ export { BORDER_RADIUS_MAP, type BorderRadiusSize, COLOR_SWATCHES, type CreateLayoutContextOptions, DEFAULT_BRAND_CONFIG, DEFAULT_SETTINGS, DRAWER_HANDLER_KEY, type DrawerHandlers, type ExportedLayoutSettings, LAYOUT_CONTEXT_KEY, LAYOUT_MODES, LAYOUT_SETTINGS_KEY, LayoutActionUnavailableError, type LayoutBrandConfig, type LayoutCacheOptions, type LayoutContext, type LayoutCssVariableBinding, type LayoutCssVariableOptions, type LayoutCssVariableSource, type LayoutCssVariableTarget, type LayoutInfo, type LayoutMenuItem, type LayoutMenuMeta, type LayoutMode, type LayoutSettingsConfig, type LayoutSettingsSource, type LayoutStyleDeclaration, type LayoutVisualEffects, MENU_COLLAPSE_KEY, type MenuCollapseHandlers, type MenuExpandMode, type MenuItemType, type MenuMeta, type MenuOptions, type MenuTag, PRESET_COLORS, type PresetColor, SETTINGS_CONFIG_SCHEMA_VERSION, type SettingsControllerOptions, type SettingsDrawerActions, type SettingsState, type SettingsStoreInstance, type SettingsStoreOptions, THEME_PRESETS, TRANSITION_MAP, type TagsViewStyle, type ThemeMode, type ThemePreset, type ThemePresetSettings, type TransitionType, type UseMenuSplitOptions, type UseMenuSplitReturn, type UseResponsiveMenuOptions, adjustColor, assertLayoutSettingsRelationships, bindLayoutCssVariables, calculateVisibleMenuCount, createLayoutContext, createSettingsStore, estimateMenuItemWidth, isPathSegmentPrefix, normalizeLayoutMenus, provideLayout, provideLayoutContext, sanitizeLayoutSettingsConfig, sanitizeSettingsPatch, setupLayout, shouldCacheRoute, useLayoutCache, useLayoutContext, useLayoutCssVariables, useLayoutIcon, useMenuSplit, useResponsiveMenu, useSettingsController, useSettingsStore };
package/dist/vue/index.js CHANGED
@@ -1,2 +1,2 @@
1
- import { A as e, C as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, O as l, P as u, S as d, T as f, _ as p, a as m, b as h, c as g, d as _, f as v, g as y, h as b, i as x, j as S, k as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M, v as N, w as P, x as F, y as I } from "../vue-h8jl2I5K.js";
1
+ import { A as e, C as t, D as n, E as r, F as i, I as a, L as o, M as s, N as c, O as l, P as u, S as d, T as f, _ as p, a as m, b as h, c as g, d as _, f as v, g as y, h as b, i as x, j as S, k as C, l as w, m as T, n as E, o as D, p as O, r as k, s as A, t as j, u as M, v as N, w as P, x as F, y as I } from "../vue-CtBraK0m.js";
2
2
  export { _ as BORDER_RADIUS_MAP, v as COLOR_SWATCHES, S as DEFAULT_BRAND_CONFIG, O as DEFAULT_SETTINGS, s as DRAWER_HANDLER_KEY, c as LAYOUT_CONTEXT_KEY, T as LAYOUT_MODES, u as LAYOUT_SETTINGS_KEY, j as LayoutActionUnavailableError, i as MENU_COLLAPSE_KEY, b as PRESET_COLORS, N as SETTINGS_CONFIG_SCHEMA_VERSION, y as THEME_PRESETS, p as TRANSITION_MAP, I as adjustColor, h as assertLayoutSettingsRelationships, w as bindLayoutCssVariables, r as calculateVisibleMenuCount, k as createLayoutContext, A as createSettingsStore, n as estimateMenuItemWidth, P as isPathSegmentPrefix, m as normalizeLayoutMenus, x as provideLayout, a as provideLayoutContext, F as sanitizeLayoutSettingsConfig, d as sanitizeSettingsPatch, D as setupLayout, C as shouldCacheRoute, e as useLayoutCache, o as useLayoutContext, M as useLayoutCssVariables, t as useLayoutIcon, f as useMenuSplit, l as useResponsiveMenu, E as useSettingsController, g as useSettingsStore };
@@ -530,7 +530,11 @@ function X(t = {}) {
530
530
  applyPreset: async (e) => {
531
531
  let t = L({
532
532
  primaryColor: e.primaryColor,
533
- ...e.settings
533
+ borderRadius: e.settings?.borderRadius,
534
+ transitionType: e.settings?.transitionType,
535
+ showBreadcrumb: e.settings?.showBreadcrumb,
536
+ showTagsView: e.settings?.showTagsView,
537
+ tagsViewStyle: e.settings?.tagsViewStyle
534
538
  });
535
539
  n.value = t.primaryColor, t.borderRadius && (r.value = t.borderRadius), t.transitionType && (l.value = t.transitionType), t.showBreadcrumb !== void 0 && (g.value = t.showBreadcrumb), t.showTagsView !== void 0 && (v.value = t.showTagsView), t.tagsViewStyle && (b.value = t.tagsViewStyle);
536
540
  },
@@ -736,4 +740,4 @@ function ae(t) {
736
740
  //#endregion
737
741
  export { w as A, j as C, T as D, E, v as F, x as I, b as L, y as M, g as N, D as O, _ as P, L as S, k as T, W as _, Z as a, I as b, te as c, U as d, K as f, V as g, B as h, re as i, S as j, C as k, Y as l, H as m, ae as n, ne as o, G as p, Q as r, X as s, $ as t, ee as u, F as v, O as w, R as x, z as y };
738
742
 
739
- //# sourceMappingURL=vue-h8jl2I5K.js.map
743
+ //# sourceMappingURL=vue-CtBraK0m.js.map