@design.estate/dees-catalog 24.6.0 → 24.6.1

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.
@@ -73365,11 +73365,19 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
73365
73365
  if (config.logoText !== void 0) {
73366
73366
  this.mainmenuLogoText = config.logoText;
73367
73367
  }
73368
- if (config.groups !== void 0) {
73368
+ if (config.sections !== void 0) {
73369
+ this.mainmenuGroups = this.buildMainMenuFromSections(config.sections);
73370
+ } else if (config.groups !== void 0) {
73369
73371
  this.mainmenuGroups = [...config.groups];
73370
73372
  }
73371
73373
  if (config.bottomTabs !== void 0) {
73372
73374
  this.mainmenuBottomTabs = [...config.bottomTabs];
73375
+ } else if (config.bottomItems !== void 0) {
73376
+ this.mainmenuBottomTabs = this.buildBottomTabsFromItems(config.bottomItems);
73377
+ }
73378
+ if (config.sections !== void 0 || config.groups !== void 0 || config.bottomTabs !== void 0 || config.bottomItems !== void 0) {
73379
+ const viewId = this.viewRegistry.getCurrentViewId();
73380
+ if (viewId) this.markViewInMainMenu(viewId);
73373
73381
  }
73374
73382
  }
73375
73383
  /**
@@ -74507,7 +74515,7 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
74507
74515
  }
74508
74516
  if (config.mainMenu) {
74509
74517
  if (config.mainMenu.sections) {
74510
- this.mainmenuGroups = this.buildMainMenuFromSections(config);
74518
+ this.mainmenuGroups = this.buildMainMenuFromSections(config.mainMenu.sections);
74511
74519
  } else if (config.mainMenu.groups) {
74512
74520
  this.mainmenuGroups = config.mainMenu.groups;
74513
74521
  }
@@ -74785,9 +74793,8 @@ var _DeesAppui = class _DeesAppui extends (_a95 = DeesElement, _appbarMenuItems_
74785
74793
  }
74786
74794
  }
74787
74795
  }
74788
- buildMainMenuFromSections(config) {
74789
- if (!config.mainMenu?.sections) return [];
74790
- return config.mainMenu.sections.map((section) => ({
74796
+ buildMainMenuFromSections(sections5) {
74797
+ return sections5.map((section) => ({
74791
74798
  name: section.name || "",
74792
74799
  items: section.views.map((viewId) => {
74793
74800
  const view = this.viewRegistry.get(viewId);
@@ -136973,7 +136980,7 @@ var bright = {
136973
136980
  // ts_web/00_commitinfo_data.ts
136974
136981
  var commitinfo = {
136975
136982
  name: "@design.estate/dees-catalog",
136976
- version: "24.6.0",
136983
+ version: "24.6.1",
136977
136984
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
136978
136985
  };
136979
136986
  export {