structra-ui 0.2.39 → 0.2.40

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.
@@ -1056,8 +1056,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
1056
1056
  }] });
1057
1057
 
1058
1058
  /**
1059
- * Cabeçalho opcional de grupo — alinhado a `MenuItemGroup` (`kind: 'group'`).
1060
- * Os itens do grupo continuam a ser renderizados pelo `menu-list` (renderização única).
1059
+ * Cabeçalho opcional de grupo — alinhado a `MenuItemGroup` (`kind: 'group'`):
1060
+ * `alwaysExpanded` = sempre aberto sem toggle; caso contrário `expanded` no modelo define o estado inicial.
1061
1061
  */
1062
1062
  class MenuGroupComponent {
1063
1063
  constructor() {
@@ -1172,7 +1172,7 @@ function buildMenuRows(nodes) {
1172
1172
  label: n.label,
1173
1173
  groupId: gid,
1174
1174
  alwaysExpanded: n.alwaysExpanded === true,
1175
- expanded: n.expanded === true ? true : n.expanded === false ? false : undefined,
1175
+ initialExpanded: n.expanded === true ? true : n.expanded === false ? false : undefined,
1176
1176
  });
1177
1177
  for (const child of n.items) {
1178
1178
  addNode(child, gid);
@@ -1426,10 +1426,10 @@ class MenuListBodyComponent {
1426
1426
  continue;
1427
1427
  }
1428
1428
  let open;
1429
- if (r.expanded === true) {
1429
+ if (r.initialExpanded === true) {
1430
1430
  open = true;
1431
1431
  }
1432
- else if (r.expanded === false) {
1432
+ else if (r.initialExpanded === false) {
1433
1433
  open = false;
1434
1434
  }
1435
1435
  else if (mode === 'all') {
@@ -10998,10 +10998,12 @@ class AppSidebarComponent {
10998
10998
  this.groupDefaultExpansion = 'all';
10999
10999
  this.itemSelect = new EventEmitter();
11000
11000
  /**
11001
- * Valor efectivo de `compressText` em `app-menu-list`: ao expandir, mantém-se comprimido
11002
- * até a lateral terminar a animação de largura (evita flicker de texto).
11001
+ * Valor efectivo de `compressText` em `app-menu-list`: ao expandir a partir do modo rail,
11002
+ * mantém-se comprimido até a animação de largura terminar (evita flicker de texto).
11003
+ * Começa em `false` para a primeira pintura com lateral já expandida corresponder ao estado real
11004
+ * e o `menu-list` aplicar bem `expanded` nos grupos.
11003
11005
  */
11004
- this.listCompressText = signal(true, ...(ngDevMode ? [{ debugName: "listCompressText" }] : /* istanbul ignore next */ []));
11006
+ this.listCompressText = signal(false, ...(ngDevMode ? [{ debugName: "listCompressText" }] : /* istanbul ignore next */ []));
11005
11007
  this.listRevealTimeoutId = null;
11006
11008
  this.destroyRef.onDestroy(() => this.clearListRevealTimeout());
11007
11009
  effect(() => {