@design.estate/dees-catalog 24.0.0 → 24.0.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.
@@ -69151,27 +69151,42 @@ var _DeesAppuiSecondarymenu = class _DeesAppuiSecondarymenu extends (_a86 = Dees
69151
69151
  composed: true
69152
69152
  }));
69153
69153
  }
69154
- async firstUpdated(_changedProperties) {
69155
- await super.firstUpdated(_changedProperties);
69156
- if (this.groups.length > 0) {
69157
- const initialCollapsed = /* @__PURE__ */ new Set();
69158
- const initialMultiFilterCollapsed = /* @__PURE__ */ new Set();
69159
- this.groups.forEach((group) => {
69160
- if (group.collapsed) {
69161
- initialCollapsed.add(group.name);
69162
- }
69163
- group.items.forEach((item) => {
69164
- if ("type" in item && item.type === "multiFilter") {
69165
- const multiFilter = item;
69166
- if (multiFilter.collapsed) {
69167
- initialMultiFilterCollapsed.add(multiFilter.key);
69168
- }
69154
+ /**
69155
+ * The host carries the width transition and is styled from the moment it is
69156
+ * connected, while Lit reflects `collapsed` only in the first update, which
69157
+ * can come frames later while the menu's words load. Reflected here, a menu
69158
+ * connected collapsed is collapsed from its first style on, so nothing
69159
+ * folds it there.
69160
+ */
69161
+ connectedCallback() {
69162
+ const connected = super.connectedCallback();
69163
+ this.toggleAttribute("collapsed", this.collapsed);
69164
+ return connected;
69165
+ }
69166
+ /**
69167
+ * The groups and multi-filters the configuration folds, read before the
69168
+ * first render so it shows them folded instead of folding them a render
69169
+ * later.
69170
+ */
69171
+ foldConfiguredDefaults() {
69172
+ if (this.groups.length === 0) return;
69173
+ const initialCollapsed = /* @__PURE__ */ new Set();
69174
+ const initialMultiFilterCollapsed = /* @__PURE__ */ new Set();
69175
+ this.groups.forEach((group) => {
69176
+ if (group.collapsed) {
69177
+ initialCollapsed.add(group.name);
69178
+ }
69179
+ group.items.forEach((item) => {
69180
+ if ("type" in item && item.type === "multiFilter") {
69181
+ const multiFilter = item;
69182
+ if (multiFilter.collapsed) {
69183
+ initialMultiFilterCollapsed.add(multiFilter.key);
69169
69184
  }
69170
- });
69185
+ }
69171
69186
  });
69172
- this.collapsedGroups = initialCollapsed;
69173
- this.collapsedMultiFilters = initialMultiFilterCollapsed;
69174
- }
69187
+ });
69188
+ this.collapsedGroups = initialCollapsed;
69189
+ this.collapsedMultiFilters = initialMultiFilterCollapsed;
69175
69190
  }
69176
69191
  /**
69177
69192
  * A selection that moved closes the parents opened by hand; a parent holding
@@ -69180,6 +69195,7 @@ var _DeesAppuiSecondarymenu = class _DeesAppuiSecondarymenu extends (_a86 = Dees
69180
69195
  */
69181
69196
  willUpdate(changedProperties) {
69182
69197
  super.willUpdate(changedProperties);
69198
+ if (!this.hasUpdated) this.foldConfiguredDefaults();
69183
69199
  if (changedProperties.has("selectedItem")) this.subtrees.follow(this.selectedItem?.key);
69184
69200
  }
69185
69201
  updated(changedProperties) {
@@ -69216,7 +69232,8 @@ __publicField(_DeesAppuiSecondarymenu, "styles", [
69216
69232
  overlayScrollbarStyles,
69217
69233
  subtreeStyles,
69218
69234
  i`
69219
- @media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
69235
+ /* The host as well: it carries the width transition. */
69236
+ @media (prefers-reduced-motion: reduce) { :host, *, *::before, *::after { transition: none !important; animation: none !important; } }
69220
69237
 
69221
69238
  :host {
69222
69239
  /* The shell's pane width, while the element sits in one. */
@@ -135023,7 +135040,7 @@ var bright = {
135023
135040
  // ts_web/00_commitinfo_data.ts
135024
135041
  var commitinfo = {
135025
135042
  name: "@design.estate/dees-catalog",
135026
- version: "24.0.0",
135043
+ version: "24.0.1",
135027
135044
  description: "A comprehensive library that provides dynamic web components for building sophisticated and modern web applications using JavaScript and TypeScript."
135028
135045
  };
135029
135046
  export {