@sula-tech/webcomponents 0.25.0 → 0.26.0

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 (87) hide show
  1. package/dist/cjs/loader.cjs.js +1 -1
  2. package/dist/cjs/sula-avatar_32.cjs.entry.js +2 -2
  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-workbench-menu.cjs.entry.js +98 -59
  8. package/dist/cjs/sula-workbench-menu.cjs.entry.js.map +1 -1
  9. package/dist/cjs/sula-workbench-menu.entry.cjs.js.map +1 -1
  10. package/dist/cjs/webcomponents.cjs.js +1 -1
  11. package/dist/collection/components/sula-icon/sula-icon.css +1 -1
  12. package/dist/collection/components/sula-profile-menu/sula-profile-menu.css +1 -1
  13. package/dist/collection/components/sula-switch/sula-switch.css +1 -1
  14. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.css +1 -1
  15. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js +104 -84
  16. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.js.map +1 -1
  17. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js +182 -103
  18. package/dist/collection/components/sula-workbench-menu/sula-workbench-menu.stories.js.map +1 -1
  19. package/dist/components/{p-CkBDMANF.js → p-0Fu7X8Ko.js} +3 -3
  20. package/dist/components/{p-CkBDMANF.js.map → p-0Fu7X8Ko.js.map} +1 -1
  21. package/dist/components/{p-CNJmyTBM.js → p-6BsVErKp.js} +3 -3
  22. package/dist/components/{p-CNJmyTBM.js.map → p-6BsVErKp.js.map} +1 -1
  23. package/dist/components/{p-CqrWuXvX.js → p-C0jaJr-I.js} +3 -3
  24. package/dist/components/{p-CqrWuXvX.js.map → p-C0jaJr-I.js.map} +1 -1
  25. package/dist/components/{p-DOhCUb27.js → p-CRJeD_Ch.js} +3 -3
  26. package/dist/components/{p-DOhCUb27.js.map → p-CRJeD_Ch.js.map} +1 -1
  27. package/dist/components/{p-BSlKsiiN.js → p-CvCiJEK7.js} +5 -5
  28. package/dist/components/{p-BSlKsiiN.js.map → p-CvCiJEK7.js.map} +1 -1
  29. package/dist/components/{p-Ckrg2kct.js → p-Cwj-T_a3.js} +3 -3
  30. package/dist/components/{p-Ckrg2kct.js.map → p-Cwj-T_a3.js.map} +1 -1
  31. package/dist/components/{p-Chv1iPo7.js → p-DPBeKst1.js} +4 -4
  32. package/dist/components/{p-Chv1iPo7.js.map → p-DPBeKst1.js.map} +1 -1
  33. package/dist/components/{p-ej3XWtzq.js → p-Dj-BkOJM.js} +3 -3
  34. package/dist/components/{p-ej3XWtzq.js.map → p-Dj-BkOJM.js.map} +1 -1
  35. package/dist/components/{p-DEhN6ZhJ.js → p-KIC3LfH4.js} +3 -3
  36. package/dist/components/{p-DEhN6ZhJ.js.map → p-KIC3LfH4.js.map} +1 -1
  37. package/dist/components/sula-avatar.js +1 -1
  38. package/dist/components/sula-badge.js +1 -1
  39. package/dist/components/sula-breadcrumb.js +1 -1
  40. package/dist/components/sula-button.js +1 -1
  41. package/dist/components/sula-calendar.js +2 -2
  42. package/dist/components/sula-checkbox.js +1 -1
  43. package/dist/components/sula-chip.js +2 -2
  44. package/dist/components/sula-dropdown.js +1 -1
  45. package/dist/components/sula-icon-picker.js +4 -4
  46. package/dist/components/sula-icon.js +1 -1
  47. package/dist/components/sula-menu-select-list.js +1 -1
  48. package/dist/components/sula-menu.js +1 -1
  49. package/dist/components/sula-modal.js +2 -2
  50. package/dist/components/sula-profile-menu.js +1 -1
  51. package/dist/components/sula-progress-bar.js +1 -1
  52. package/dist/components/sula-search-bar.js +1 -1
  53. package/dist/components/sula-segmented-control.js +1 -1
  54. package/dist/components/sula-switch.js +1 -1
  55. package/dist/components/sula-tag.js +1 -1
  56. package/dist/components/sula-textfield.js +1 -1
  57. package/dist/components/sula-tiles.js +1 -1
  58. package/dist/components/sula-timeline-list.js +1 -1
  59. package/dist/components/sula-toast-stack.js +2 -2
  60. package/dist/components/sula-toast.js +1 -1
  61. package/dist/components/sula-toggle.js +1 -1
  62. package/dist/components/sula-tooltip.js +1 -1
  63. package/dist/components/sula-workbench-menu.js +102 -63
  64. package/dist/components/sula-workbench-menu.js.map +1 -1
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/sula-avatar_32.entry.js +2 -2
  67. package/dist/esm/sula-avatar_32.entry.js.map +1 -1
  68. package/dist/esm/sula-profile-menu.entry.js +1 -1
  69. package/dist/esm/sula-profile-menu.entry.js.map +1 -1
  70. package/dist/esm/sula-workbench-menu.entry.js +98 -59
  71. package/dist/esm/sula-workbench-menu.entry.js.map +1 -1
  72. package/dist/esm/webcomponents.js +1 -1
  73. package/dist/types/components/sula-workbench-menu/sula-workbench-menu.d.ts +15 -13
  74. package/dist/types/components/sula-workbench-menu/sula-workbench-menu.stories.d.ts +14 -30
  75. package/dist/types/components.d.ts +19 -29
  76. package/dist/webcomponents/p-235dcb90.entry.js +880 -0
  77. package/dist/webcomponents/p-235dcb90.entry.js.map +1 -0
  78. package/dist/webcomponents/{p-28e25fac.entry.js → p-40f33932.entry.js} +3 -3
  79. package/dist/webcomponents/{p-88e5171a.entry.js → p-7e31b463.entry.js} +2 -2
  80. package/dist/webcomponents/sula-profile-menu.entry.esm.js.map +1 -1
  81. package/dist/webcomponents/sula-workbench-menu.entry.esm.js.map +1 -1
  82. package/dist/webcomponents/webcomponents.esm.js +4 -4
  83. package/package.json +1 -1
  84. package/dist/webcomponents/p-50ad82d0.entry.js +0 -827
  85. package/dist/webcomponents/p-50ad82d0.entry.js.map +0 -1
  86. /package/dist/webcomponents/{p-28e25fac.entry.js.map → p-40f33932.entry.js.map} +0 -0
  87. /package/dist/webcomponents/{p-88e5171a.entry.js.map → p-7e31b463.entry.js.map} +0 -0
@@ -3,9 +3,9 @@ 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
9
  drillPath?: string[];
10
10
  items: SulaWorkbenchMenuItem[];
11
11
  user: SulaWorkbenchMenuUser;
@@ -27,6 +27,10 @@ declare const _default: {
27
27
  defaultValue: string;
28
28
  description: string;
29
29
  };
30
+ image: {
31
+ control: string;
32
+ description: string;
33
+ };
30
34
  density: {
31
35
  control: {
32
36
  type: string;
@@ -41,13 +45,6 @@ declare const _default: {
41
45
  options: SulaMenuLabelOverflow[];
42
46
  description: string;
43
47
  };
44
- drilldownLevel: {
45
- control: {
46
- type: string;
47
- min: number;
48
- };
49
- description: string;
50
- };
51
48
  drillPath: {
52
49
  control: string;
53
50
  description: string;
@@ -110,7 +107,6 @@ export declare const WithProfileMenu: {
110
107
  menuTitle: string;
111
108
  density: SulaMenuDensity;
112
109
  labelOverflow: SulaMenuLabelOverflow;
113
- drilldownLevel: number;
114
110
  items: SulaWorkbenchMenuItem[];
115
111
  user: {
116
112
  name: string;
@@ -133,7 +129,6 @@ export declare const ControlledDrillPath: {
133
129
  menuTitle: string;
134
130
  density: SulaMenuDensity;
135
131
  labelOverflow: SulaMenuLabelOverflow;
136
- drilldownLevel: number;
137
132
  items: SulaWorkbenchMenuItem[];
138
133
  user: SulaWorkbenchMenuUser;
139
134
  };
@@ -146,23 +141,12 @@ export declare const ControlledDrillPath: {
146
141
  };
147
142
  };
148
143
  export declare const InlineOnly: any;
149
- export declare const ComparisonWithCurrentSulaMenu: {
150
- (): HTMLDivElement;
151
- parameters: {
152
- docs: {
153
- description: {
154
- story: string;
155
- };
156
- };
157
- };
158
- };
159
- export declare const ComparisonDrilldownFourthLevel: {
160
- (): HTMLDivElement;
161
- parameters: {
162
- docs: {
163
- description: {
164
- story: string;
165
- };
166
- };
167
- };
168
- };
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;
@@ -1013,10 +1013,10 @@ export namespace Components {
1013
1013
  "trigger": SulaTooltipTrigger;
1014
1014
  }
1015
1015
  /**
1016
- * Navigation menu that combines an inline expandable tree with a drill-down panel.
1017
- * Levels above `drilldownLevel` expand in place, as in `sula-menu`. Items at or below
1018
- * that level with children open a single-level panel with a breadcrumb trail.
1019
- * @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.
1020
1020
  * @cssprop --sula-menu-collapsed-width - Width of the collapsed menu. Defaults to 88px.
1021
1021
  */
1022
1022
  interface SulaWorkbenchMenu {
@@ -1031,14 +1031,9 @@ export namespace Components {
1031
1031
  */
1032
1032
  "density": SulaMenuDensity;
1033
1033
  /**
1034
- * Controls the drill-down from the host: ids from the root to the item whose children are shown. An empty array shows the tree (leaves the drill-down). Leave it undefined to let only user clicks navigate.
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.
1035
1035
  */
1036
1036
  "drillPath"?: string[];
1037
- /**
1038
- * 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.
1039
- * @default 3
1040
- */
1041
- "drilldownLevel": number;
1042
1037
  /**
1043
1038
  * Menu image
1044
1039
  * @default ''
@@ -1682,10 +1677,10 @@ declare global {
1682
1677
  "menuToggled": boolean;
1683
1678
  }
1684
1679
  /**
1685
- * Navigation menu that combines an inline expandable tree with a drill-down panel.
1686
- * Levels above `drilldownLevel` expand in place, as in `sula-menu`. Items at or below
1687
- * that level with children open a single-level panel with a breadcrumb trail.
1688
- * @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.
1689
1684
  * @cssprop --sula-menu-collapsed-width - Width of the collapsed menu. Defaults to 88px.
1690
1685
  */
1691
1686
  interface HTMLSulaWorkbenchMenuElement extends Components.SulaWorkbenchMenu, HTMLStencilElement {
@@ -2924,10 +2919,10 @@ declare namespace LocalJSX {
2924
2919
  "trigger"?: SulaTooltipTrigger;
2925
2920
  }
2926
2921
  /**
2927
- * Navigation menu that combines an inline expandable tree with a drill-down panel.
2928
- * Levels above `drilldownLevel` expand in place, as in `sula-menu`. Items at or below
2929
- * that level with children open a single-level panel with a breadcrumb trail.
2930
- * @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.
2931
2926
  * @cssprop --sula-menu-collapsed-width - Width of the collapsed menu. Defaults to 88px.
2932
2927
  */
2933
2928
  interface SulaWorkbenchMenu {
@@ -2942,14 +2937,9 @@ declare namespace LocalJSX {
2942
2937
  */
2943
2938
  "density"?: SulaMenuDensity;
2944
2939
  /**
2945
- * Controls the drill-down from the host: ids from the root to the item whose children are shown. An empty array shows the tree (leaves the drill-down). Leave it undefined to let only user clicks navigate.
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.
2946
2941
  */
2947
2942
  "drillPath"?: string[];
2948
- /**
2949
- * 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.
2950
- * @default 3
2951
- */
2952
- "drilldownLevel"?: number;
2953
2943
  /**
2954
2944
  * Menu image
2955
2945
  * @default ''
@@ -2971,7 +2961,7 @@ declare namespace LocalJSX {
2971
2961
  */
2972
2962
  "menuTitle"?: string;
2973
2963
  /**
2974
- * Emitted when any item is clicked
2964
+ * Emitted when any item is clickede
2975
2965
  */
2976
2966
  "onItemClicked"?: (event: SulaWorkbenchMenuCustomEvent<SulaWorkbenchMenuItem>) => void;
2977
2967
  /**
@@ -3109,10 +3099,10 @@ declare module "@stencil/core" {
3109
3099
  "sula-toggle": LocalJSX.SulaToggle & JSXBase.HTMLAttributes<HTMLSulaToggleElement>;
3110
3100
  "sula-tooltip": LocalJSX.SulaTooltip & JSXBase.HTMLAttributes<HTMLSulaTooltipElement>;
3111
3101
  /**
3112
- * Navigation menu that combines an inline expandable tree with a drill-down panel.
3113
- * Levels above `drilldownLevel` expand in place, as in `sula-menu`. Items at or below
3114
- * that level with children open a single-level panel with a breadcrumb trail.
3115
- * @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.
3116
3106
  * @cssprop --sula-menu-collapsed-width - Width of the collapsed menu. Defaults to 88px.
3117
3107
  */
3118
3108
  "sula-workbench-menu": LocalJSX.SulaWorkbenchMenu & JSXBase.HTMLAttributes<HTMLSulaWorkbenchMenuElement>;