@sula-tech/webcomponents 0.0.0-snapshot-feature-workbench-menu-57f51ec → 0.0.0-snapshot-update-release-workflow-eeeefa9

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.
Files changed (164) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/sula-avatar_32.cjs.entry.js +176 -99
  3. package/dist/cjs/sula-avatar_32.cjs.entry.js.map +1 -1
  4. package/dist/cjs/sula-profile-menu.cjs.entry.js +1 -1
  5. package/dist/cjs/sula-profile-menu.cjs.entry.js.map +1 -1
  6. package/dist/cjs/sula-profile-menu.entry.cjs.js.map +1 -1
  7. package/dist/cjs/sula-toast-stack.cjs.entry.js +4 -4
  8. package/dist/cjs/sula-toast.cjs.entry.js +2 -2
  9. package/dist/cjs/sula-workbench-menu.cjs.entry.js +124 -61
  10. package/dist/cjs/sula-workbench-menu.cjs.entry.js.map +1 -1
  11. package/dist/cjs/sula-workbench-menu.entry.cjs.js.map +1 -1
  12. package/dist/cjs/webcomponents.cjs.js +1 -1
  13. package/dist/collection/components/sula-button/sula-button.css +1 -1
  14. package/dist/collection/components/sula-calendar/sula-calendar.css +1 -1
  15. package/dist/collection/components/sula-calendar/sula-calendar.js +56 -17
  16. package/dist/collection/components/sula-calendar/sula-calendar.js.map +1 -1
  17. package/dist/collection/components/sula-calendar/sula-calendar.stories.js +16 -1
  18. package/dist/collection/components/sula-calendar/sula-calendar.stories.js.map +1 -1
  19. package/dist/collection/components/sula-chip/sula-chip.css +1 -1
  20. package/dist/collection/components/sula-chip/sula-chip.js +30 -4
  21. package/dist/collection/components/sula-chip/sula-chip.js.map +1 -1
  22. package/dist/collection/components/sula-chip/sula-chip.stories.js +55 -0
  23. package/dist/collection/components/sula-chip/sula-chip.stories.js.map +1 -1
  24. package/dist/collection/components/sula-dropdown/sula-dropdown.js +3 -3
  25. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  26. package/dist/collection/components/sula-icon/sula-icon.js +1 -1
  27. package/dist/collection/components/sula-icon-picker/sula-icon-picker.js +2 -2
  28. package/dist/collection/components/sula-loader/sula-loader.css +1 -1
  29. package/dist/collection/components/sula-loader/sula-loader.js +1 -1
  30. package/dist/collection/components/sula-menu/sula-menu.css +1 -1
  31. package/dist/collection/components/sula-menu/sula-menu.js +13 -13
  32. package/dist/collection/components/sula-menu/sula-menu.js.map +1 -1
  33. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.css +1 -1
  34. package/dist/collection/components/sula-menu-select-list/sula-menu-select-list.js +1 -1
  35. package/dist/collection/components/sula-modal/sula-modal.css +1 -1
  36. package/dist/collection/components/sula-modal/sula-modal.js +142 -11
  37. package/dist/collection/components/sula-modal/sula-modal.js.map +1 -1
  38. package/dist/collection/components/sula-modal/sula-modal.stories.js +48 -0
  39. package/dist/collection/components/sula-modal/sula-modal.stories.js.map +1 -1
  40. package/dist/collection/components/sula-profile-menu/sula-profile-menu.css +1 -1
  41. package/dist/collection/components/sula-progress-bar/sula-progress-bar.js +2 -2
  42. package/dist/collection/components/sula-radio-button/sula-radio-button.js +2 -2
  43. package/dist/collection/components/sula-search-bar/sula-search-bar.js +2 -2
  44. package/dist/collection/components/sula-segmented-control/sula-segmented-control.js +1 -1
  45. package/dist/collection/components/sula-switch/sula-switch.css +1 -1
  46. package/dist/collection/components/sula-switch/sula-switch.js +4 -4
  47. package/dist/collection/components/sula-table/sula-table.js +3 -3
  48. package/dist/collection/components/sula-table-body/sula-table-body.js +1 -1
  49. package/dist/collection/components/sula-table-cell/sula-table-cell.js +2 -2
  50. package/dist/collection/components/sula-table-head-cell/sula-table-head-cell.js +2 -2
  51. package/dist/collection/components/sula-table-header/sula-table-header.js +1 -1
  52. package/dist/collection/components/sula-table-row/sula-table-row.js +1 -1
  53. package/dist/collection/components/sula-tag/sula-tag.js +3 -3
  54. package/dist/collection/components/sula-textarea/sula-textarea.js +6 -6
  55. package/dist/collection/components/sula-textfield/sula-textfield.css +1 -1
  56. package/dist/collection/components/sula-textfield/sula-textfield.js +2 -2
  57. package/dist/collection/components/sula-tiles/sula-tiles.js +1 -1
  58. package/dist/collection/components/sula-timeline-list/sula-timeline-list.js +1 -1
  59. package/dist/collection/components/sula-toast/sula-toast.js +2 -2
  60. package/dist/collection/components/sula-toast-stack/sula-toast-stack.js +4 -4
  61. package/dist/collection/components/sula-toggle/sula-toggle.js +1 -1
  62. package/dist/collection/components/sula-tooltip/sula-tooltip.js +1 -1
  63. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.css +1 -1
  64. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js +138 -74
  65. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js.map +1 -1
  66. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js +218 -99
  67. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js.map +1 -1
  68. package/dist/components/{p-Wd3q-zRy.js → p-1SBJ2JjF.js} +6 -6
  69. package/dist/components/{p-Wd3q-zRy.js.map → p-1SBJ2JjF.js.map} +1 -1
  70. package/dist/components/{p-YsuXC_9x.js → p-BD4DLCMm.js} +5 -5
  71. package/dist/components/{p-YsuXC_9x.js.map → p-BD4DLCMm.js.map} +1 -1
  72. package/dist/components/{p-DkXdsyPr.js → p-Bdc73E-Z.js} +7 -7
  73. package/dist/components/{p-DkXdsyPr.js.map → p-Bdc73E-Z.js.map} +1 -1
  74. package/dist/components/{p-MPkJUrNl.js → p-BlRYoc3b.js} +4 -4
  75. package/dist/components/{p-MPkJUrNl.js.map → p-BlRYoc3b.js.map} +1 -1
  76. package/dist/components/{p-B5MmQ8zn.js → p-BrjLS4Oh.js} +5 -5
  77. package/dist/components/{p-B5MmQ8zn.js.map → p-BrjLS4Oh.js.map} +1 -1
  78. package/dist/components/{p-CZdy_Df-.js → p-Cktbp7SD.js} +5 -5
  79. package/dist/components/{p-CZdy_Df-.js.map → p-Cktbp7SD.js.map} +1 -1
  80. package/dist/components/{p-DpW2KDYm.js → p-DP9qGgPM.js} +4 -4
  81. package/dist/components/{p-DpW2KDYm.js.map → p-DP9qGgPM.js.map} +1 -1
  82. package/dist/components/{p-CvpbIDzE.js → p-DTZo84U5.js} +5 -5
  83. package/dist/components/{p-CvpbIDzE.js.map → p-DTZo84U5.js.map} +1 -1
  84. package/dist/components/{p-B8AsfKSM.js → p-KIC3LfH4.js} +7 -7
  85. package/dist/components/{p-B8AsfKSM.js.map → p-KIC3LfH4.js.map} +1 -1
  86. package/dist/components/{p-DCGHpgTv.js → p-boQwbNNO.js} +5 -5
  87. package/dist/components/{p-DCGHpgTv.js.map → p-boQwbNNO.js.map} +1 -1
  88. package/dist/components/sula-avatar.js +1 -1
  89. package/dist/components/sula-badge.js +1 -1
  90. package/dist/components/sula-breadcrumb.js +1 -1
  91. package/dist/components/sula-button.js +1 -1
  92. package/dist/components/sula-calendar.js +59 -20
  93. package/dist/components/sula-calendar.js.map +1 -1
  94. package/dist/components/sula-checkbox.js +1 -1
  95. package/dist/components/sula-chip.js +15 -7
  96. package/dist/components/sula-chip.js.map +1 -1
  97. package/dist/components/sula-dropdown.js +1 -1
  98. package/dist/components/sula-icon-picker.js +6 -6
  99. package/dist/components/sula-icon.js +1 -1
  100. package/dist/components/sula-loader.js +1 -1
  101. package/dist/components/sula-menu-select-list.js +1 -1
  102. package/dist/components/sula-menu.js +15 -15
  103. package/dist/components/sula-menu.js.map +1 -1
  104. package/dist/components/sula-modal.js +51 -15
  105. package/dist/components/sula-modal.js.map +1 -1
  106. package/dist/components/sula-profile-menu.js +1 -1
  107. package/dist/components/sula-progress-bar.js +3 -3
  108. package/dist/components/sula-radio-button.js +2 -2
  109. package/dist/components/sula-search-bar.js +1 -1
  110. package/dist/components/sula-segmented-control.js +2 -2
  111. package/dist/components/sula-switch.js +1 -1
  112. package/dist/components/sula-table-body.js +1 -1
  113. package/dist/components/sula-table-cell.js +2 -2
  114. package/dist/components/sula-table-head-cell.js +2 -2
  115. package/dist/components/sula-table-header.js +1 -1
  116. package/dist/components/sula-table-row.js +1 -1
  117. package/dist/components/sula-table.js +3 -3
  118. package/dist/components/sula-tag.js +4 -4
  119. package/dist/components/sula-textarea.js +6 -6
  120. package/dist/components/sula-textfield.js +1 -1
  121. package/dist/components/sula-tiles.js +2 -2
  122. package/dist/components/sula-timeline-list.js +2 -2
  123. package/dist/components/sula-toast-stack.js +6 -6
  124. package/dist/components/sula-toast.js +1 -1
  125. package/dist/components/sula-toggle.js +2 -2
  126. package/dist/components/sula-tooltip.js +2 -2
  127. package/dist/components/sula-workbench-menu.js +131 -66
  128. package/dist/components/sula-workbench-menu.js.map +1 -1
  129. package/dist/esm/loader.js +1 -1
  130. package/dist/esm/sula-avatar_32.entry.js +176 -99
  131. package/dist/esm/sula-avatar_32.entry.js.map +1 -1
  132. package/dist/esm/sula-profile-menu.entry.js +1 -1
  133. package/dist/esm/sula-profile-menu.entry.js.map +1 -1
  134. package/dist/esm/sula-toast-stack.entry.js +4 -4
  135. package/dist/esm/sula-toast.entry.js +2 -2
  136. package/dist/esm/sula-workbench-menu.entry.js +124 -61
  137. package/dist/esm/sula-workbench-menu.entry.js.map +1 -1
  138. package/dist/esm/webcomponents.js +1 -1
  139. package/dist/types/components/sula-calendar/sula-calendar.d.ts +9 -3
  140. package/dist/types/components/sula-calendar/sula-calendar.stories.d.ts +1 -0
  141. package/dist/types/components/sula-chip/sula-chip.d.ts +5 -0
  142. package/dist/types/components/sula-chip/sula-chip.stories.d.ts +12 -0
  143. package/dist/types/components/sula-modal/sula-modal.d.ts +21 -0
  144. package/dist/types/components/sula-modal/sula-modal.stories.d.ts +22 -0
  145. package/dist/types/components/sula-workbench-menu/sula-workbench-menu.d.ts +18 -9
  146. package/dist/types/components/sula-workbench-menu/sula-workbench-menu.stories.d.ts +26 -19
  147. package/dist/types/components.d.ts +79 -23
  148. package/dist/webcomponents/{p-df271629.entry.js → p-18c84807.entry.js} +6 -6
  149. package/dist/webcomponents/p-235dcb90.entry.js +880 -0
  150. package/dist/webcomponents/p-235dcb90.entry.js.map +1 -0
  151. package/dist/webcomponents/{p-60d2ad8f.entry.js → p-3344a9f9.entry.js} +406 -289
  152. package/dist/webcomponents/p-3344a9f9.entry.js.map +1 -0
  153. package/dist/webcomponents/{p-c552c435.entry.js → p-705e2424.entry.js} +16 -16
  154. package/dist/webcomponents/{p-4251c973.entry.js → p-7e31b463.entry.js} +2 -2
  155. package/dist/webcomponents/sula-profile-menu.entry.esm.js.map +1 -1
  156. package/dist/webcomponents/sula-workbench-menu.entry.esm.js.map +1 -1
  157. package/dist/webcomponents/webcomponents.esm.js +15 -7
  158. package/package.json +1 -1
  159. package/dist/webcomponents/p-569d0bad.entry.js +0 -807
  160. package/dist/webcomponents/p-569d0bad.entry.js.map +0 -1
  161. package/dist/webcomponents/p-60d2ad8f.entry.js.map +0 -1
  162. /package/dist/webcomponents/{p-df271629.entry.js.map → p-18c84807.entry.js.map} +0 -0
  163. /package/dist/webcomponents/{p-c552c435.entry.js.map → p-705e2424.entry.js.map} +0 -0
  164. /package/dist/webcomponents/{p-4251c973.entry.js.map → p-7e31b463.entry.js.map} +0 -0
@@ -43,6 +43,26 @@ declare const _default: {
43
43
  };
44
44
  options: SulaModalSlotOverflow[];
45
45
  };
46
+ modalWidth: {
47
+ control: string;
48
+ description: string;
49
+ };
50
+ slotAutoHeight: {
51
+ control: string;
52
+ description: string;
53
+ };
54
+ slotMaxHeight: {
55
+ control: string;
56
+ description: string;
57
+ };
58
+ primaryButtonDisabled: {
59
+ control: string;
60
+ description: string;
61
+ };
62
+ secondaryButtonDisabled: {
63
+ control: string;
64
+ description: string;
65
+ };
46
66
  blockBodyScroll: {
47
67
  control: string;
48
68
  description: string;
@@ -81,3 +101,5 @@ export declare const ListType: any;
81
101
  export declare const CustomFullType: any;
82
102
  export declare const SpecialSideType: any;
83
103
  export declare const WithCustomSlot: any;
104
+ export declare const WithCustomSlotMaxHeight: any;
105
+ export declare const WithSlotAutoHeight: any;
@@ -8,9 +8,9 @@ type CrumbMenuState = {
8
8
  top: number;
9
9
  };
10
10
  /**
11
- * Navigation menu that combines an inline expandable tree with a drill-down panel.
12
- * Levels above `drilldownLevel` expand in place, as in `sula-menu`. Items at or below
13
- * that level with children open a single-level panel with a breadcrumb trail.
11
+ * Navigation menu that expands in place, as in `sula-menu`, while the tree has up to 3 levels.
12
+ * When any visible item reaches a 4th level, every item with children opens a single-level
13
+ * drill-down panel with a breadcrumb trail instead.
14
14
  *
15
15
  * @part shell - Main visual container of the menu.
16
16
  * @part title - Menu title, or the current level title while drilled in.
@@ -19,7 +19,7 @@ type CrumbMenuState = {
19
19
  * @part toggle-label - Label of the collapse/expand control.
20
20
  * @slot profile-content - Extra content rendered inside the profile popover.
21
21
  * @part profile-popover - Popover opened from the user area.
22
- * @cssprop --sula-menu-width - Width of the expanded menu. Defaults to 256px.
22
+ * @cssprop --sula-menu-width - Width of the expanded menu. Defaults to 300px.
23
23
  * @cssprop --sula-menu-collapsed-width - Width of the collapsed menu. Defaults to 88px.
24
24
  */
25
25
  export declare class SulaWorkbenchMenu {
@@ -46,10 +46,11 @@ export declare class SulaWorkbenchMenu {
46
46
  */
47
47
  labelOverflow: SulaMenuLabelOverflow;
48
48
  /**
49
- * Depth (1-based) from which items with children open a drill-down panel instead of expanding in place.
50
- * With the default of 3, the first two levels expand inline and deeper branches drill down.
49
+ * Controls the navigation from the host: ids from the root to the item whose children are shown.
50
+ * In drill-down mode an empty array goes back to the root; in inline mode the items on the path are expanded.
51
+ * Leave it undefined to let only user clicks navigate.
51
52
  */
52
- drilldownLevel: number;
53
+ drillPath?: string[];
53
54
  /**
54
55
  * Menu items. Each item may use `icon` (icon font class) or `image` (URL or data URI of an image or SVG).
55
56
  */
@@ -71,7 +72,7 @@ export declare class SulaWorkbenchMenu {
71
72
  */
72
73
  itemSelected: EventEmitter<SulaWorkbenchMenuItem>;
73
74
  /**
74
- * Emitted when any item is clicked
75
+ * Emitted when any item is clickede
75
76
  */
76
77
  itemClicked: EventEmitter<SulaWorkbenchMenuItem>;
77
78
  /**
@@ -98,6 +99,7 @@ export declare class SulaWorkbenchMenu {
98
99
  menuToggled: EventEmitter<boolean>;
99
100
  collapsed: boolean;
100
101
  previewExpanded: boolean;
102
+ drillMode: boolean;
101
103
  stack: SulaWorkbenchMenuItem[];
102
104
  direction: SulaWorkbenchMenuDirection;
103
105
  selectedPath: SulaWorkbenchMenuPath;
@@ -108,11 +110,18 @@ export declare class SulaWorkbenchMenu {
108
110
  private shellEl?;
109
111
  private userInfoEl?;
110
112
  private profileEl?;
113
+ private profileOriginEl?;
111
114
  private hovering;
115
+ private expandedPath?;
112
116
  private get normalizedWidth();
113
117
  private get hostStyleVariables();
114
118
  componentWillLoad(): void;
115
119
  syncWithItems(items: SulaWorkbenchMenuItem[]): void;
120
+ syncDrillPath(path?: string[]): void;
121
+ private applyDrillPath;
122
+ private expandInline;
123
+ private markExpanded;
124
+ private maxDepth;
116
125
  componentDidRender(): void;
117
126
  onDocumentClick(event: MouseEvent): void;
118
127
  onDocumentKeydown(event: KeyboardEvent): void;
@@ -159,6 +168,7 @@ export declare class SulaWorkbenchMenu {
159
168
  private renderCrumbDropdown;
160
169
  private renderDrillHeader;
161
170
  private renderDrillRow;
171
+ private renderDrillLayers;
162
172
  private renderDrillPanel;
163
173
  private getMainIconClass;
164
174
  private getMainCaretClass;
@@ -168,7 +178,6 @@ export declare class SulaWorkbenchMenu {
168
178
  private renderIconSlot;
169
179
  private renderMainRow;
170
180
  private renderSubRow;
171
- private depthOf;
172
181
  private renderInlineList;
173
182
  render(): any;
174
183
  }
@@ -3,9 +3,10 @@ import { SulaProfileMenuItem } from '../sula-profile-menu/model/sula-profile-men
3
3
  import { SulaWorkbenchMenuItem, SulaWorkbenchMenuUser } from './model/sula-workbench-menu.model';
4
4
  type StoryArgs = {
5
5
  menuTitle: string;
6
+ image?: string;
6
7
  density: SulaMenuDensity;
7
8
  labelOverflow: SulaMenuLabelOverflow;
8
- drilldownLevel: number;
9
+ drillPath?: string[];
9
10
  items: SulaWorkbenchMenuItem[];
10
11
  user: SulaWorkbenchMenuUser;
11
12
  profileItems?: SulaProfileMenuItem[];
@@ -26,6 +27,10 @@ declare const _default: {
26
27
  defaultValue: string;
27
28
  description: string;
28
29
  };
30
+ image: {
31
+ control: string;
32
+ description: string;
33
+ };
29
34
  density: {
30
35
  control: {
31
36
  type: string;
@@ -40,11 +45,8 @@ declare const _default: {
40
45
  options: SulaMenuLabelOverflow[];
41
46
  description: string;
42
47
  };
43
- drilldownLevel: {
44
- control: {
45
- type: string;
46
- min: number;
47
- };
48
+ drillPath: {
49
+ control: string;
48
50
  description: string;
49
51
  };
50
52
  items: {
@@ -105,7 +107,6 @@ export declare const WithProfileMenu: {
105
107
  menuTitle: string;
106
108
  density: SulaMenuDensity;
107
109
  labelOverflow: SulaMenuLabelOverflow;
108
- drilldownLevel: number;
109
110
  items: SulaWorkbenchMenuItem[];
110
111
  user: {
111
112
  name: string;
@@ -122,19 +123,15 @@ export declare const WithProfileMenu: {
122
123
  };
123
124
  };
124
125
  export declare const CustomProfileItems: any;
125
- export declare const InlineOnly: any;
126
- export declare const ComparisonWithCurrentSulaMenu: {
127
- (): HTMLDivElement;
128
- parameters: {
129
- docs: {
130
- description: {
131
- story: string;
132
- };
133
- };
126
+ export declare const ControlledDrillPath: {
127
+ (args: StoryArgs): HTMLDivElement;
128
+ args: {
129
+ menuTitle: string;
130
+ density: SulaMenuDensity;
131
+ labelOverflow: SulaMenuLabelOverflow;
132
+ items: SulaWorkbenchMenuItem[];
133
+ user: SulaWorkbenchMenuUser;
134
134
  };
135
- };
136
- export declare const ComparisonDrilldownFourthLevel: {
137
- (): HTMLDivElement;
138
135
  parameters: {
139
136
  docs: {
140
137
  description: {
@@ -143,3 +140,13 @@ export declare const ComparisonDrilldownFourthLevel: {
143
140
  };
144
141
  };
145
142
  };
143
+ export declare const InlineOnly: any;
144
+ export declare const InlineWithExpandedPath: any;
145
+ export declare const FourthLevelBreadcrumb: any;
146
+ export declare const WithBrandImage: any;
147
+ export declare const LongLabels: any;
148
+ export declare const LongLabelsTruncate: any;
149
+ export declare const CompactDensity: any;
150
+ export declare const ComfortableDensity: any;
151
+ export declare const HiddenAndDisabledItems: any;
152
+ export declare const WithoutUser: any;
@@ -276,6 +276,10 @@ export namespace Components {
276
276
  * @default false
277
277
  */
278
278
  "disabled": boolean;
279
+ /**
280
+ * Icon class displayed before the text, e.g. `ph ph-download-simple`
281
+ */
282
+ "icon"?: string;
279
283
  /**
280
284
  * Items for list
281
285
  * @default []
@@ -499,11 +503,21 @@ export namespace Components {
499
503
  * @default ''
500
504
  */
501
505
  "modalTitle": string;
506
+ /**
507
+ * Modal width on desktop (any CSS value, e.g. `900px`). Empty keeps the type default
508
+ * @default ''
509
+ */
510
+ "modalWidth": string;
502
511
  /**
503
512
  * Is modal opened
504
513
  * @default false
505
514
  */
506
515
  "opened": boolean;
516
+ /**
517
+ * Disable the primary button
518
+ * @default false
519
+ */
520
+ "primaryButtonDisabled": boolean;
507
521
  /**
508
522
  * Primary button text
509
523
  * @default ''
@@ -514,11 +528,26 @@ export namespace Components {
514
528
  * @default ''
515
529
  */
516
530
  "promoImage": string;
531
+ /**
532
+ * Disable the secondary button
533
+ * @default false
534
+ */
535
+ "secondaryButtonDisabled": boolean;
517
536
  /**
518
537
  * Secondary button text
519
538
  * @default ''
520
539
  */
521
540
  "secondaryButtonText": string;
541
+ /**
542
+ * Let the modal grow with its content (no slot scroll); the overlay scrolls instead when it exceeds the viewport
543
+ * @default false
544
+ */
545
+ "slotAutoHeight": boolean;
546
+ /**
547
+ * Max height of the slot area (any CSS value, e.g. `60vh`). Empty keeps the type default
548
+ * @default ''
549
+ */
550
+ "slotMaxHeight": string;
522
551
  /**
523
552
  * Slot overflow behavior
524
553
  * @default SulaModalSlotOverflow.Auto
@@ -984,10 +1013,10 @@ export namespace Components {
984
1013
  "trigger": SulaTooltipTrigger;
985
1014
  }
986
1015
  /**
987
- * Navigation menu that combines an inline expandable tree with a drill-down panel.
988
- * Levels above `drilldownLevel` expand in place, as in `sula-menu`. Items at or below
989
- * that level with children open a single-level panel with a breadcrumb trail.
990
- * @cssprop --sula-menu-width - Width of the expanded menu. Defaults to 256px.
1016
+ * Navigation menu that expands in place, as in `sula-menu`, while the tree has up to 3 levels.
1017
+ * When any visible item reaches a 4th level, every item with children opens a single-level
1018
+ * drill-down panel with a breadcrumb trail instead.
1019
+ * @cssprop --sula-menu-width - Width of the expanded menu. Defaults to 300px.
991
1020
  * @cssprop --sula-menu-collapsed-width - Width of the collapsed menu. Defaults to 88px.
992
1021
  */
993
1022
  interface SulaWorkbenchMenu {
@@ -1002,10 +1031,9 @@ export namespace Components {
1002
1031
  */
1003
1032
  "density": SulaMenuDensity;
1004
1033
  /**
1005
- * Depth (1-based) from which items with children open a drill-down panel instead of expanding in place. With the default of 3, the first two levels expand inline and deeper branches drill down.
1006
- * @default 3
1034
+ * Controls the navigation from the host: ids from the root to the item whose children are shown. In drill-down mode an empty array goes back to the root; in inline mode the items on the path are expanded. Leave it undefined to let only user clicks navigate.
1007
1035
  */
1008
- "drilldownLevel": number;
1036
+ "drillPath"?: string[];
1009
1037
  /**
1010
1038
  * Menu image
1011
1039
  * @default ''
@@ -1649,10 +1677,10 @@ declare global {
1649
1677
  "menuToggled": boolean;
1650
1678
  }
1651
1679
  /**
1652
- * Navigation menu that combines an inline expandable tree with a drill-down panel.
1653
- * Levels above `drilldownLevel` expand in place, as in `sula-menu`. Items at or below
1654
- * that level with children open a single-level panel with a breadcrumb trail.
1655
- * @cssprop --sula-menu-width - Width of the expanded menu. Defaults to 256px.
1680
+ * Navigation menu that expands in place, as in `sula-menu`, while the tree has up to 3 levels.
1681
+ * When any visible item reaches a 4th level, every item with children opens a single-level
1682
+ * drill-down panel with a breadcrumb trail instead.
1683
+ * @cssprop --sula-menu-width - Width of the expanded menu. Defaults to 300px.
1656
1684
  * @cssprop --sula-menu-collapsed-width - Width of the collapsed menu. Defaults to 88px.
1657
1685
  */
1658
1686
  interface HTMLSulaWorkbenchMenuElement extends Components.SulaWorkbenchMenu, HTMLStencilElement {
@@ -1968,6 +1996,10 @@ declare namespace LocalJSX {
1968
1996
  * @default false
1969
1997
  */
1970
1998
  "disabled"?: boolean;
1999
+ /**
2000
+ * Icon class displayed before the text, e.g. `ph ph-download-simple`
2001
+ */
2002
+ "icon"?: string;
1971
2003
  /**
1972
2004
  * Items for list
1973
2005
  * @default []
@@ -2247,6 +2279,11 @@ declare namespace LocalJSX {
2247
2279
  * @default ''
2248
2280
  */
2249
2281
  "modalTitle"?: string;
2282
+ /**
2283
+ * Modal width on desktop (any CSS value, e.g. `900px`). Empty keeps the type default
2284
+ * @default ''
2285
+ */
2286
+ "modalWidth"?: string;
2250
2287
  /**
2251
2288
  * Event emitted when the modal is closed
2252
2289
  */
@@ -2264,6 +2301,11 @@ declare namespace LocalJSX {
2264
2301
  * @default false
2265
2302
  */
2266
2303
  "opened"?: boolean;
2304
+ /**
2305
+ * Disable the primary button
2306
+ * @default false
2307
+ */
2308
+ "primaryButtonDisabled"?: boolean;
2267
2309
  /**
2268
2310
  * Primary button text
2269
2311
  * @default ''
@@ -2274,11 +2316,26 @@ declare namespace LocalJSX {
2274
2316
  * @default ''
2275
2317
  */
2276
2318
  "promoImage"?: string;
2319
+ /**
2320
+ * Disable the secondary button
2321
+ * @default false
2322
+ */
2323
+ "secondaryButtonDisabled"?: boolean;
2277
2324
  /**
2278
2325
  * Secondary button text
2279
2326
  * @default ''
2280
2327
  */
2281
2328
  "secondaryButtonText"?: string;
2329
+ /**
2330
+ * Let the modal grow with its content (no slot scroll); the overlay scrolls instead when it exceeds the viewport
2331
+ * @default false
2332
+ */
2333
+ "slotAutoHeight"?: boolean;
2334
+ /**
2335
+ * Max height of the slot area (any CSS value, e.g. `60vh`). Empty keeps the type default
2336
+ * @default ''
2337
+ */
2338
+ "slotMaxHeight"?: string;
2282
2339
  /**
2283
2340
  * Slot overflow behavior
2284
2341
  * @default SulaModalSlotOverflow.Auto
@@ -2862,10 +2919,10 @@ declare namespace LocalJSX {
2862
2919
  "trigger"?: SulaTooltipTrigger;
2863
2920
  }
2864
2921
  /**
2865
- * Navigation menu that combines an inline expandable tree with a drill-down panel.
2866
- * Levels above `drilldownLevel` expand in place, as in `sula-menu`. Items at or below
2867
- * that level with children open a single-level panel with a breadcrumb trail.
2868
- * @cssprop --sula-menu-width - Width of the expanded menu. Defaults to 256px.
2922
+ * Navigation menu that expands in place, as in `sula-menu`, while the tree has up to 3 levels.
2923
+ * When any visible item reaches a 4th level, every item with children opens a single-level
2924
+ * drill-down panel with a breadcrumb trail instead.
2925
+ * @cssprop --sula-menu-width - Width of the expanded menu. Defaults to 300px.
2869
2926
  * @cssprop --sula-menu-collapsed-width - Width of the collapsed menu. Defaults to 88px.
2870
2927
  */
2871
2928
  interface SulaWorkbenchMenu {
@@ -2880,10 +2937,9 @@ declare namespace LocalJSX {
2880
2937
  */
2881
2938
  "density"?: SulaMenuDensity;
2882
2939
  /**
2883
- * Depth (1-based) from which items with children open a drill-down panel instead of expanding in place. With the default of 3, the first two levels expand inline and deeper branches drill down.
2884
- * @default 3
2940
+ * Controls the navigation from the host: ids from the root to the item whose children are shown. In drill-down mode an empty array goes back to the root; in inline mode the items on the path are expanded. Leave it undefined to let only user clicks navigate.
2885
2941
  */
2886
- "drilldownLevel"?: number;
2942
+ "drillPath"?: string[];
2887
2943
  /**
2888
2944
  * Menu image
2889
2945
  * @default ''
@@ -2905,7 +2961,7 @@ declare namespace LocalJSX {
2905
2961
  */
2906
2962
  "menuTitle"?: string;
2907
2963
  /**
2908
- * Emitted when any item is clicked
2964
+ * Emitted when any item is clickede
2909
2965
  */
2910
2966
  "onItemClicked"?: (event: SulaWorkbenchMenuCustomEvent<SulaWorkbenchMenuItem>) => void;
2911
2967
  /**
@@ -3043,10 +3099,10 @@ declare module "@stencil/core" {
3043
3099
  "sula-toggle": LocalJSX.SulaToggle & JSXBase.HTMLAttributes<HTMLSulaToggleElement>;
3044
3100
  "sula-tooltip": LocalJSX.SulaTooltip & JSXBase.HTMLAttributes<HTMLSulaTooltipElement>;
3045
3101
  /**
3046
- * Navigation menu that combines an inline expandable tree with a drill-down panel.
3047
- * Levels above `drilldownLevel` expand in place, as in `sula-menu`. Items at or below
3048
- * that level with children open a single-level panel with a breadcrumb trail.
3049
- * @cssprop --sula-menu-width - Width of the expanded menu. Defaults to 256px.
3102
+ * Navigation menu that expands in place, as in `sula-menu`, while the tree has up to 3 levels.
3103
+ * When any visible item reaches a 4th level, every item with children opens a single-level
3104
+ * drill-down panel with a breadcrumb trail instead.
3105
+ * @cssprop --sula-menu-width - Width of the expanded menu. Defaults to 300px.
3050
3106
  * @cssprop --sula-menu-collapsed-width - Width of the collapsed menu. Defaults to 88px.
3051
3107
  */
3052
3108
  "sula-workbench-menu": LocalJSX.SulaWorkbenchMenu & JSXBase.HTMLAttributes<HTMLSulaWorkbenchMenuElement>;
@@ -273,9 +273,9 @@ const h = class {
273
273
  const t = this.expanded;
274
274
  const o = this.visibleItems;
275
275
  return e(a, {
276
- key: "f80b3b3f370e40ba87a261825af7ee9f55fe99dc"
276
+ key: "c02d5830981122b0267e560f911ee98cdd726bd7"
277
277
  }, e("section", {
278
- key: "d5a233e0b204060a1bde1bb09eac204a5c8f5ca7",
278
+ key: "cbfa6dcdd964fc1d42546a43e5980dc49e84b30f",
279
279
  ref: t => this.region = t,
280
280
  role: "region",
281
281
  "aria-label": "Notificações",
@@ -296,7 +296,7 @@ const h = class {
296
296
  onFocusin: () => this.focused = true,
297
297
  onFocusout: this.handleFocusOut
298
298
  }, e("div", {
299
- key: "e409f3009f2c19839304f06b05b0409d9cc6a819",
299
+ key: "ee70118013b6e5e3313db30c27571bf3cc3009af",
300
300
  ref: t => this.list = t,
301
301
  class: {
302
302
  "toast-list relative flex flex-col gap-12": true,
@@ -340,7 +340,7 @@ const h = class {
340
340
  onToastAction: t => this.action(t, a.id)
341
341
  }));
342
342
  })))), e("div", {
343
- key: "2b2eadddfde8a784d9c2f1c7f431d82619eb57dc",
343
+ key: "37091de2d263942ad15dbdc52cd229b98a8f7c1c",
344
344
  class: "sr-only",
345
345
  role: "status",
346
346
  "aria-live": "polite",
@@ -349,7 +349,7 @@ const h = class {
349
349
  }, this.announcements.filter((t => t.priority === "polite")).map((t => e("p", {
350
350
  key: t.version
351
351
  }, t.text)))), e("div", {
352
- key: "0207426e568669405be5a1d99c47338d72607bdf",
352
+ key: "a5bc35d0759a6a71cb9b7d9ad76cfd3ce9fee9b6",
353
353
  class: "sr-only",
354
354
  role: "alert",
355
355
  "aria-live": "assertive",
@@ -373,4 +373,4 @@ h.style = n;
373
373
 
374
374
  export { h as sula_toast_stack };
375
375
  //# sourceMappingURL=sula-toast-stack.entry.esm.js.map
376
- //# sourceMappingURL=p-df271629.entry.js.map
376
+ //# sourceMappingURL=p-18c84807.entry.js.map