@hitachivantara/uikit-react-lab 5.18.10 → 5.19.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.
Files changed (213) hide show
  1. package/dist/cjs/components/Dashboard/Dashboard.cjs +14 -15
  2. package/dist/cjs/components/Dashboard/Dashboard.cjs.map +1 -1
  3. package/dist/cjs/components/Dashboard/Dashboard.styles.cjs +187 -5
  4. package/dist/cjs/components/Dashboard/Dashboard.styles.cjs.map +1 -1
  5. package/dist/cjs/components/Flow/Background/Background.cjs.map +1 -1
  6. package/dist/cjs/components/Flow/Controls/Controls.cjs +34 -13
  7. package/dist/cjs/components/Flow/Controls/Controls.cjs.map +1 -1
  8. package/dist/cjs/components/Flow/DroppableFlow.cjs +101 -65
  9. package/dist/cjs/components/Flow/DroppableFlow.cjs.map +1 -1
  10. package/dist/cjs/components/Flow/Empty/Empty.cjs +2 -8
  11. package/dist/cjs/components/Flow/Empty/Empty.cjs.map +1 -1
  12. package/dist/cjs/components/Flow/Empty/Empty.styles.cjs +1 -4
  13. package/dist/cjs/components/Flow/Empty/Empty.styles.cjs.map +1 -1
  14. package/dist/cjs/components/Flow/Flow.cjs +24 -5
  15. package/dist/cjs/components/Flow/Flow.cjs.map +1 -1
  16. package/dist/cjs/components/Flow/Flow.styles.cjs +1 -4
  17. package/dist/cjs/components/Flow/Flow.styles.cjs.map +1 -1
  18. package/dist/cjs/components/Flow/FlowContext/FlowContext.cjs +10 -7
  19. package/dist/cjs/components/Flow/FlowContext/FlowContext.cjs.map +1 -1
  20. package/dist/cjs/components/Flow/FlowContext/NodeMetaContext.cjs +11 -6
  21. package/dist/cjs/components/Flow/FlowContext/NodeMetaContext.cjs.map +1 -1
  22. package/dist/cjs/components/Flow/Minimap/Minimap.cjs +12 -5
  23. package/dist/cjs/components/Flow/Minimap/Minimap.cjs.map +1 -1
  24. package/dist/cjs/components/Flow/Minimap/Minimap.styles.cjs +2 -7
  25. package/dist/cjs/components/Flow/Minimap/Minimap.styles.cjs.map +1 -1
  26. package/dist/cjs/components/Flow/Node/BaseNode.cjs +139 -105
  27. package/dist/cjs/components/Flow/Node/BaseNode.cjs.map +1 -1
  28. package/dist/cjs/components/Flow/Node/BaseNode.styles.cjs +1 -4
  29. package/dist/cjs/components/Flow/Node/BaseNode.styles.cjs.map +1 -1
  30. package/dist/cjs/components/Flow/Node/Node.cjs +65 -30
  31. package/dist/cjs/components/Flow/Node/Node.cjs.map +1 -1
  32. package/dist/cjs/components/Flow/Node/Node.styles.cjs +7 -5
  33. package/dist/cjs/components/Flow/Node/Node.styles.cjs.map +1 -1
  34. package/dist/cjs/components/Flow/Node/Parameters/ParamRenderer.cjs +1 -5
  35. package/dist/cjs/components/Flow/Node/Parameters/ParamRenderer.cjs.map +1 -1
  36. package/dist/cjs/components/Flow/Node/Parameters/Select.cjs +9 -18
  37. package/dist/cjs/components/Flow/Node/Parameters/Select.cjs.map +1 -1
  38. package/dist/cjs/components/Flow/Node/Parameters/Text.cjs +3 -13
  39. package/dist/cjs/components/Flow/Node/Parameters/Text.cjs.map +1 -1
  40. package/dist/cjs/components/Flow/Sidebar/Sidebar.cjs +78 -39
  41. package/dist/cjs/components/Flow/Sidebar/Sidebar.cjs.map +1 -1
  42. package/dist/cjs/components/Flow/Sidebar/Sidebar.styles.cjs +4 -13
  43. package/dist/cjs/components/Flow/Sidebar/Sidebar.styles.cjs.map +1 -1
  44. package/dist/cjs/components/Flow/Sidebar/SidebarGroup/SidebarGroup.cjs +28 -16
  45. package/dist/cjs/components/Flow/Sidebar/SidebarGroup/SidebarGroup.cjs.map +1 -1
  46. package/dist/cjs/components/Flow/Sidebar/SidebarGroup/SidebarGroup.styles.cjs +28 -30
  47. package/dist/cjs/components/Flow/Sidebar/SidebarGroup/SidebarGroup.styles.cjs.map +1 -1
  48. package/dist/cjs/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.cjs +13 -8
  49. package/dist/cjs/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.cjs.map +1 -1
  50. package/dist/cjs/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.cjs +27 -18
  51. package/dist/cjs/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.cjs.map +1 -1
  52. package/dist/cjs/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.cjs +17 -19
  53. package/dist/cjs/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.cjs.map +1 -1
  54. package/dist/cjs/components/Flow/Sidebar/utils.cjs.map +1 -1
  55. package/dist/cjs/components/Flow/base.cjs +408 -12
  56. package/dist/cjs/components/Flow/base.cjs.map +1 -1
  57. package/dist/cjs/components/Flow/hooks/useFlowContext.cjs.map +1 -1
  58. package/dist/cjs/components/Flow/hooks/useFlowNode.cjs +22 -7
  59. package/dist/cjs/components/Flow/hooks/useFlowNode.cjs.map +1 -1
  60. package/dist/cjs/components/Flow/hooks/useFlowNodeMeta.cjs +1 -3
  61. package/dist/cjs/components/Flow/hooks/useFlowNodeMeta.cjs.map +1 -1
  62. package/dist/cjs/components/StepNavigation/DefaultNavigation/DefaultNavigation.cjs +27 -30
  63. package/dist/cjs/components/StepNavigation/DefaultNavigation/DefaultNavigation.cjs.map +1 -1
  64. package/dist/cjs/components/StepNavigation/DefaultNavigation/Step/Step.cjs +45 -9
  65. package/dist/cjs/components/StepNavigation/DefaultNavigation/Step/Step.cjs.map +1 -1
  66. package/dist/cjs/components/StepNavigation/DefaultNavigation/Step/Step.styles.cjs +2 -7
  67. package/dist/cjs/components/StepNavigation/DefaultNavigation/Step/Step.styles.cjs.map +1 -1
  68. package/dist/cjs/components/StepNavigation/DefaultNavigation/utils.cjs +5 -20
  69. package/dist/cjs/components/StepNavigation/DefaultNavigation/utils.cjs.map +1 -1
  70. package/dist/cjs/components/StepNavigation/SimpleNavigation/Dot/Dot.cjs +27 -15
  71. package/dist/cjs/components/StepNavigation/SimpleNavigation/Dot/Dot.cjs.map +1 -1
  72. package/dist/cjs/components/StepNavigation/SimpleNavigation/Dot/Dot.styles.cjs +2 -8
  73. package/dist/cjs/components/StepNavigation/SimpleNavigation/Dot/Dot.styles.cjs.map +1 -1
  74. package/dist/cjs/components/StepNavigation/SimpleNavigation/SimpleNavigation.cjs +22 -26
  75. package/dist/cjs/components/StepNavigation/SimpleNavigation/SimpleNavigation.cjs.map +1 -1
  76. package/dist/cjs/components/StepNavigation/SimpleNavigation/utils.cjs.map +1 -1
  77. package/dist/cjs/components/StepNavigation/StepNavigation.cjs +131 -92
  78. package/dist/cjs/components/StepNavigation/StepNavigation.cjs.map +1 -1
  79. package/dist/cjs/components/StepNavigation/StepNavigation.styles.cjs +1 -4
  80. package/dist/cjs/components/StepNavigation/StepNavigation.styles.cjs.map +1 -1
  81. package/dist/cjs/components/StepNavigation/utils.cjs.map +1 -1
  82. package/dist/cjs/components/Wizard/Wizard.cjs +65 -30
  83. package/dist/cjs/components/Wizard/Wizard.cjs.map +1 -1
  84. package/dist/cjs/components/Wizard/Wizard.styles.cjs +1 -4
  85. package/dist/cjs/components/Wizard/Wizard.styles.cjs.map +1 -1
  86. package/dist/cjs/components/Wizard/WizardActions/WizardActions.cjs +72 -27
  87. package/dist/cjs/components/Wizard/WizardActions/WizardActions.cjs.map +1 -1
  88. package/dist/cjs/components/Wizard/WizardActions/WizardActions.styles.cjs +1 -4
  89. package/dist/cjs/components/Wizard/WizardActions/WizardActions.styles.cjs.map +1 -1
  90. package/dist/cjs/components/Wizard/WizardContainer/WizardContainer.cjs +16 -7
  91. package/dist/cjs/components/Wizard/WizardContainer/WizardContainer.cjs.map +1 -1
  92. package/dist/cjs/components/Wizard/WizardContainer/WizardContainer.styles.cjs +13 -13
  93. package/dist/cjs/components/Wizard/WizardContainer/WizardContainer.styles.cjs.map +1 -1
  94. package/dist/cjs/components/Wizard/WizardContent/LoadingContainer.cjs +24 -17
  95. package/dist/cjs/components/Wizard/WizardContent/LoadingContainer.cjs.map +1 -1
  96. package/dist/cjs/components/Wizard/WizardContent/LoadingContainer.styles.cjs +17 -18
  97. package/dist/cjs/components/Wizard/WizardContent/LoadingContainer.styles.cjs.map +1 -1
  98. package/dist/cjs/components/Wizard/WizardContent/WizardContent.cjs +70 -61
  99. package/dist/cjs/components/Wizard/WizardContent/WizardContent.cjs.map +1 -1
  100. package/dist/cjs/components/Wizard/WizardContent/WizardContent.styles.cjs +1 -4
  101. package/dist/cjs/components/Wizard/WizardContent/WizardContent.styles.cjs.map +1 -1
  102. package/dist/cjs/components/Wizard/WizardContext/WizardContext.cjs.map +1 -1
  103. package/dist/cjs/components/Wizard/WizardTitle/WizardTitle.cjs +53 -31
  104. package/dist/cjs/components/Wizard/WizardTitle/WizardTitle.cjs.map +1 -1
  105. package/dist/cjs/components/Wizard/WizardTitle/WizardTitle.styles.cjs +1 -4
  106. package/dist/cjs/components/Wizard/WizardTitle/WizardTitle.styles.cjs.map +1 -1
  107. package/dist/esm/components/Dashboard/Dashboard.js +14 -15
  108. package/dist/esm/components/Dashboard/Dashboard.js.map +1 -1
  109. package/dist/esm/components/Dashboard/Dashboard.styles.js +187 -5
  110. package/dist/esm/components/Dashboard/Dashboard.styles.js.map +1 -1
  111. package/dist/esm/components/Flow/Background/Background.js.map +1 -1
  112. package/dist/esm/components/Flow/Controls/Controls.js +34 -13
  113. package/dist/esm/components/Flow/Controls/Controls.js.map +1 -1
  114. package/dist/esm/components/Flow/DroppableFlow.js +101 -65
  115. package/dist/esm/components/Flow/DroppableFlow.js.map +1 -1
  116. package/dist/esm/components/Flow/Empty/Empty.js +2 -8
  117. package/dist/esm/components/Flow/Empty/Empty.js.map +1 -1
  118. package/dist/esm/components/Flow/Empty/Empty.styles.js +1 -4
  119. package/dist/esm/components/Flow/Empty/Empty.styles.js.map +1 -1
  120. package/dist/esm/components/Flow/Flow.js +24 -5
  121. package/dist/esm/components/Flow/Flow.js.map +1 -1
  122. package/dist/esm/components/Flow/Flow.styles.js +1 -4
  123. package/dist/esm/components/Flow/Flow.styles.js.map +1 -1
  124. package/dist/esm/components/Flow/FlowContext/FlowContext.js +10 -7
  125. package/dist/esm/components/Flow/FlowContext/FlowContext.js.map +1 -1
  126. package/dist/esm/components/Flow/FlowContext/NodeMetaContext.js +11 -6
  127. package/dist/esm/components/Flow/FlowContext/NodeMetaContext.js.map +1 -1
  128. package/dist/esm/components/Flow/Minimap/Minimap.js +12 -5
  129. package/dist/esm/components/Flow/Minimap/Minimap.js.map +1 -1
  130. package/dist/esm/components/Flow/Minimap/Minimap.styles.js +2 -7
  131. package/dist/esm/components/Flow/Minimap/Minimap.styles.js.map +1 -1
  132. package/dist/esm/components/Flow/Node/BaseNode.js +139 -105
  133. package/dist/esm/components/Flow/Node/BaseNode.js.map +1 -1
  134. package/dist/esm/components/Flow/Node/BaseNode.styles.js +1 -4
  135. package/dist/esm/components/Flow/Node/BaseNode.styles.js.map +1 -1
  136. package/dist/esm/components/Flow/Node/Node.js +65 -30
  137. package/dist/esm/components/Flow/Node/Node.js.map +1 -1
  138. package/dist/esm/components/Flow/Node/Node.styles.js +7 -5
  139. package/dist/esm/components/Flow/Node/Node.styles.js.map +1 -1
  140. package/dist/esm/components/Flow/Node/Parameters/ParamRenderer.js +1 -5
  141. package/dist/esm/components/Flow/Node/Parameters/ParamRenderer.js.map +1 -1
  142. package/dist/esm/components/Flow/Node/Parameters/Select.js +9 -18
  143. package/dist/esm/components/Flow/Node/Parameters/Select.js.map +1 -1
  144. package/dist/esm/components/Flow/Node/Parameters/Text.js +3 -13
  145. package/dist/esm/components/Flow/Node/Parameters/Text.js.map +1 -1
  146. package/dist/esm/components/Flow/Sidebar/Sidebar.js +79 -40
  147. package/dist/esm/components/Flow/Sidebar/Sidebar.js.map +1 -1
  148. package/dist/esm/components/Flow/Sidebar/Sidebar.styles.js +4 -13
  149. package/dist/esm/components/Flow/Sidebar/Sidebar.styles.js.map +1 -1
  150. package/dist/esm/components/Flow/Sidebar/SidebarGroup/SidebarGroup.js +28 -16
  151. package/dist/esm/components/Flow/Sidebar/SidebarGroup/SidebarGroup.js.map +1 -1
  152. package/dist/esm/components/Flow/Sidebar/SidebarGroup/SidebarGroup.styles.js +28 -30
  153. package/dist/esm/components/Flow/Sidebar/SidebarGroup/SidebarGroup.styles.js.map +1 -1
  154. package/dist/esm/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.js +13 -8
  155. package/dist/esm/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.js.map +1 -1
  156. package/dist/esm/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.js +27 -18
  157. package/dist/esm/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.js.map +1 -1
  158. package/dist/esm/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.js +17 -19
  159. package/dist/esm/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.js.map +1 -1
  160. package/dist/esm/components/Flow/Sidebar/utils.js.map +1 -1
  161. package/dist/esm/components/Flow/base.js +408 -12
  162. package/dist/esm/components/Flow/base.js.map +1 -1
  163. package/dist/esm/components/Flow/hooks/useFlowContext.js.map +1 -1
  164. package/dist/esm/components/Flow/hooks/useFlowNode.js +22 -7
  165. package/dist/esm/components/Flow/hooks/useFlowNode.js.map +1 -1
  166. package/dist/esm/components/Flow/hooks/useFlowNodeMeta.js +1 -3
  167. package/dist/esm/components/Flow/hooks/useFlowNodeMeta.js.map +1 -1
  168. package/dist/esm/components/StepNavigation/DefaultNavigation/DefaultNavigation.js +27 -30
  169. package/dist/esm/components/StepNavigation/DefaultNavigation/DefaultNavigation.js.map +1 -1
  170. package/dist/esm/components/StepNavigation/DefaultNavigation/Step/Step.js +45 -9
  171. package/dist/esm/components/StepNavigation/DefaultNavigation/Step/Step.js.map +1 -1
  172. package/dist/esm/components/StepNavigation/DefaultNavigation/Step/Step.styles.js +2 -7
  173. package/dist/esm/components/StepNavigation/DefaultNavigation/Step/Step.styles.js.map +1 -1
  174. package/dist/esm/components/StepNavigation/DefaultNavigation/utils.js +5 -20
  175. package/dist/esm/components/StepNavigation/DefaultNavigation/utils.js.map +1 -1
  176. package/dist/esm/components/StepNavigation/SimpleNavigation/Dot/Dot.js +27 -15
  177. package/dist/esm/components/StepNavigation/SimpleNavigation/Dot/Dot.js.map +1 -1
  178. package/dist/esm/components/StepNavigation/SimpleNavigation/Dot/Dot.styles.js +2 -8
  179. package/dist/esm/components/StepNavigation/SimpleNavigation/Dot/Dot.styles.js.map +1 -1
  180. package/dist/esm/components/StepNavigation/SimpleNavigation/SimpleNavigation.js +22 -26
  181. package/dist/esm/components/StepNavigation/SimpleNavigation/SimpleNavigation.js.map +1 -1
  182. package/dist/esm/components/StepNavigation/SimpleNavigation/utils.js.map +1 -1
  183. package/dist/esm/components/StepNavigation/StepNavigation.js +130 -91
  184. package/dist/esm/components/StepNavigation/StepNavigation.js.map +1 -1
  185. package/dist/esm/components/StepNavigation/StepNavigation.styles.js +1 -4
  186. package/dist/esm/components/StepNavigation/StepNavigation.styles.js.map +1 -1
  187. package/dist/esm/components/StepNavigation/utils.js.map +1 -1
  188. package/dist/esm/components/Wizard/Wizard.js +65 -30
  189. package/dist/esm/components/Wizard/Wizard.js.map +1 -1
  190. package/dist/esm/components/Wizard/Wizard.styles.js +1 -4
  191. package/dist/esm/components/Wizard/Wizard.styles.js.map +1 -1
  192. package/dist/esm/components/Wizard/WizardActions/WizardActions.js +72 -27
  193. package/dist/esm/components/Wizard/WizardActions/WizardActions.js.map +1 -1
  194. package/dist/esm/components/Wizard/WizardActions/WizardActions.styles.js +1 -4
  195. package/dist/esm/components/Wizard/WizardActions/WizardActions.styles.js.map +1 -1
  196. package/dist/esm/components/Wizard/WizardContainer/WizardContainer.js +16 -7
  197. package/dist/esm/components/Wizard/WizardContainer/WizardContainer.js.map +1 -1
  198. package/dist/esm/components/Wizard/WizardContainer/WizardContainer.styles.js +13 -13
  199. package/dist/esm/components/Wizard/WizardContainer/WizardContainer.styles.js.map +1 -1
  200. package/dist/esm/components/Wizard/WizardContent/LoadingContainer.js +24 -17
  201. package/dist/esm/components/Wizard/WizardContent/LoadingContainer.js.map +1 -1
  202. package/dist/esm/components/Wizard/WizardContent/LoadingContainer.styles.js +18 -19
  203. package/dist/esm/components/Wizard/WizardContent/LoadingContainer.styles.js.map +1 -1
  204. package/dist/esm/components/Wizard/WizardContent/WizardContent.js +70 -61
  205. package/dist/esm/components/Wizard/WizardContent/WizardContent.js.map +1 -1
  206. package/dist/esm/components/Wizard/WizardContent/WizardContent.styles.js +1 -4
  207. package/dist/esm/components/Wizard/WizardContent/WizardContent.styles.js.map +1 -1
  208. package/dist/esm/components/Wizard/WizardContext/WizardContext.js.map +1 -1
  209. package/dist/esm/components/Wizard/WizardTitle/WizardTitle.js +53 -31
  210. package/dist/esm/components/Wizard/WizardTitle/WizardTitle.js.map +1 -1
  211. package/dist/esm/components/Wizard/WizardTitle/WizardTitle.styles.js +1 -4
  212. package/dist/esm/components/Wizard/WizardTitle/WizardTitle.styles.js.map +1 -1
  213. package/package.json +11 -11
@@ -1,21 +1,12 @@
1
1
  import { createClasses, theme } from "@hitachivantara/uikit-react-core";
2
- const {
3
- staticClasses,
4
- useClasses
5
- } = createClasses("HvFlowSidebar", {
6
- drawerPaper: {
7
- width: "360px"
8
- },
2
+ const { staticClasses, useClasses } = createClasses("HvFlowSidebar", {
3
+ drawerPaper: { width: "360px" },
9
4
  titleContainer: {
10
5
  display: "flex",
11
6
  padding: theme.spacing("sm", "lg", "xs", "sm")
12
7
  },
13
- contentContainer: {
14
- padding: theme.spacing(0, "lg", "sm", "lg")
15
- },
16
- description: {
17
- color: theme.colors.secondary_60
18
- },
8
+ contentContainer: { padding: theme.spacing(0, "lg", "sm", "lg") },
9
+ description: { color: theme.colors.secondary_60 },
19
10
  searchRoot: {
20
11
  paddingTop: theme.space.sm,
21
12
  paddingBottom: theme.space.sm
@@ -1 +1 @@
1
- {"version":3,"file":"Sidebar.styles.js","sources":["../../../../../src/components/Flow/Sidebar/Sidebar.styles.tsx"],"sourcesContent":["import { createClasses, theme } from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvFlowSidebar\", {\n drawerPaper: { width: \"360px\" },\n titleContainer: {\n display: \"flex\",\n padding: theme.spacing(\"sm\", \"lg\", \"xs\", \"sm\"),\n },\n contentContainer: { padding: theme.spacing(0, \"lg\", \"sm\", \"lg\") },\n description: { color: theme.colors.secondary_60 },\n searchRoot: {\n paddingTop: theme.space.sm,\n paddingBottom: theme.space.sm,\n },\n groupsContainer: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: theme.space.sm,\n listStyleType: \"none\",\n },\n nodeType: {\n marginBottom: theme.space.xs,\n },\n});\n"],"names":["staticClasses","useClasses","createClasses","drawerPaper","width","titleContainer","display","padding","theme","spacing","contentContainer","description","color","colors","secondary_60","searchRoot","paddingTop","space","sm","paddingBottom","groupsContainer","flexDirection","gap","listStyleType","nodeType","marginBottom","xs"],"mappings":";AAEa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAAc,iBAAiB;AAAA,EAC1EC,aAAa;AAAA,IAAEC,OAAO;AAAA,EAAQ;AAAA,EAC9BC,gBAAgB;AAAA,IACdC,SAAS;AAAA,IACTC,SAASC,MAAMC,QAAQ,MAAM,MAAM,MAAM,IAAI;AAAA,EAC/C;AAAA,EACAC,kBAAkB;AAAA,IAAEH,SAASC,MAAMC,QAAQ,GAAG,MAAM,MAAM,IAAI;AAAA,EAAE;AAAA,EAChEE,aAAa;AAAA,IAAEC,OAAOJ,MAAMK,OAAOC;AAAAA,EAAa;AAAA,EAChDC,YAAY;AAAA,IACVC,YAAYR,MAAMS,MAAMC;AAAAA,IACxBC,eAAeX,MAAMS,MAAMC;AAAAA,EAC7B;AAAA,EACAE,iBAAiB;AAAA,IACfd,SAAS;AAAA,IACTe,eAAe;AAAA,IACfC,KAAKd,MAAMS,MAAMC;AAAAA,IACjBK,eAAe;AAAA,EACjB;AAAA,EACAC,UAAU;AAAA,IACRC,cAAcjB,MAAMS,MAAMS;AAAAA,EAC5B;AACF,CAAC;"}
1
+ {"version":3,"file":"Sidebar.styles.js","sources":["../../../../../src/components/Flow/Sidebar/Sidebar.styles.tsx"],"sourcesContent":["import { createClasses, theme } from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\"HvFlowSidebar\", {\n drawerPaper: { width: \"360px\" },\n titleContainer: {\n display: \"flex\",\n padding: theme.spacing(\"sm\", \"lg\", \"xs\", \"sm\"),\n },\n contentContainer: { padding: theme.spacing(0, \"lg\", \"sm\", \"lg\") },\n description: { color: theme.colors.secondary_60 },\n searchRoot: {\n paddingTop: theme.space.sm,\n paddingBottom: theme.space.sm,\n },\n groupsContainer: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: theme.space.sm,\n listStyleType: \"none\",\n },\n nodeType: {\n marginBottom: theme.space.xs,\n },\n});\n"],"names":[],"mappings":";AAEO,MAAM,EAAE,eAAe,eAAe,cAAc,iBAAiB;AAAA,EAC1E,aAAa,EAAE,OAAO,QAAQ;AAAA,EAC9B,gBAAgB;AAAA,IACd,SAAS;AAAA,IACT,SAAS,MAAM,QAAQ,MAAM,MAAM,MAAM,IAAI;AAAA,EAC/C;AAAA,EACA,kBAAkB,EAAE,SAAS,MAAM,QAAQ,GAAG,MAAM,MAAM,IAAI,EAAE;AAAA,EAChE,aAAa,EAAE,OAAO,MAAM,OAAO,aAAa;AAAA,EAChD,YAAY;AAAA,IACV,YAAY,MAAM,MAAM;AAAA,IACxB,eAAe,MAAM,MAAM;AAAA,EAC7B;AAAA,EACA,iBAAiB;AAAA,IACf,SAAS;AAAA,IACT,eAAe;AAAA,IACf,KAAK,MAAM,MAAM;AAAA,IACjB,eAAe;AAAA,EACjB;AAAA,EACA,UAAU;AAAA,IACR,cAAc,MAAM,MAAM;AAAA,EAC5B;AACF,CAAC;"}
@@ -18,31 +18,43 @@ const HvFlowSidebarGroup = ({
18
18
  classes: classesProp,
19
19
  itemProps
20
20
  }) => {
21
- const {
22
- classes,
23
- cx,
24
- css
25
- } = useClasses(classesProp);
26
- const {
27
- expandedNodeGroups,
28
- setExpandedNodeGroups
29
- } = useFlowContext();
30
- const opened = useMemo(() => !!expandedNodeGroups?.find((groupId) => groupId === id), [expandedNodeGroups, id]);
21
+ const { classes, cx, css } = useClasses(classesProp);
22
+ const { expandedNodeGroups, setExpandedNodeGroups } = useFlowContext();
23
+ const opened = useMemo(
24
+ () => !!expandedNodeGroups?.find((groupId) => groupId === id),
25
+ [expandedNodeGroups, id]
26
+ );
31
27
  const handleClick = useCallback(() => {
32
- setExpandedNodeGroups?.((prev) => opened ? prev.filter((groupId) => id !== groupId) : [...prev, id]);
28
+ setExpandedNodeGroups?.(
29
+ (prev) => opened ? prev.filter((groupId) => id !== groupId) : [...prev, id]
30
+ );
33
31
  }, [id, opened, setExpandedNodeGroups]);
34
- return /* @__PURE__ */ jsxs("li", { className: cx(css({
35
- borderColor: getColor(color)
36
- }), classes.root), children: [
32
+ return /* @__PURE__ */ jsxs("li", { className: cx(css({ borderColor: getColor(color) }), classes.root), children: [
37
33
  /* @__PURE__ */ jsxs("div", { className: classes.titleContainer, children: [
38
34
  /* @__PURE__ */ jsxs("div", { className: classes.labelContainer, children: [
39
35
  /* @__PURE__ */ jsx("div", { className: classes.icon, role: "none", children: icon }),
40
36
  /* @__PURE__ */ jsx(HvTypography, { component: "p", variant: "title4", children: nodes.length > 1 ? `${label} (${nodes.length})` : label })
41
37
  ] }),
42
- /* @__PURE__ */ jsx(HvButton, { icon: true, onClick: handleClick, "aria-expanded": opened, ...expandButtonProps, children: opened ? /* @__PURE__ */ jsx(Up, { role: "none" }) : /* @__PURE__ */ jsx(Down, { role: "none" }) })
38
+ /* @__PURE__ */ jsx(
39
+ HvButton,
40
+ {
41
+ icon: true,
42
+ onClick: handleClick,
43
+ "aria-expanded": opened,
44
+ ...expandButtonProps,
45
+ children: opened ? /* @__PURE__ */ jsx(Up, { role: "none" }) : /* @__PURE__ */ jsx(Down, { role: "none" })
46
+ }
47
+ )
43
48
  ] }),
44
49
  description && /* @__PURE__ */ jsx("div", { className: classes.descriptionContainer, children: /* @__PURE__ */ jsx(HvTypography, { children: description }) }),
45
- opened && /* @__PURE__ */ jsx("div", { className: classes.itemsContainer, children: nodes.map((obj) => /* @__PURE__ */ jsx(HvFlowDraggableSidebarGroupItem, { ...itemProps, ...obj }, obj.type)) })
50
+ opened && /* @__PURE__ */ jsx("div", { className: classes.itemsContainer, children: nodes.map((obj) => /* @__PURE__ */ jsx(
51
+ HvFlowDraggableSidebarGroupItem,
52
+ {
53
+ ...itemProps,
54
+ ...obj
55
+ },
56
+ obj.type
57
+ )) })
46
58
  ] });
47
59
  };
48
60
  export {
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarGroup.js","sources":["../../../../../../src/components/Flow/Sidebar/SidebarGroup/SidebarGroup.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport { Down, Up } from \"@hitachivantara/uikit-react-icons\";\nimport {\n ExtractNames,\n HvButton,\n HvButtonProps,\n HvTypography,\n} from \"@hitachivantara/uikit-react-core\";\nimport { getColor } from \"@hitachivantara/uikit-styles\";\n\nimport { HvFlowNodeGroup } from \"../../types\";\nimport { staticClasses, useClasses } from \"./SidebarGroup.styles\";\nimport {\n HvFlowDraggableSidebarGroupItem,\n HvFlowDraggableSidebarGroupItemProps,\n} from \"./SidebarGroupItem\";\nimport { useFlowContext } from \"../../hooks\";\n\nexport { staticClasses as flowSidebarGroupClasses };\n\nexport type HvFlowSidebarGroupClasses = ExtractNames<typeof useClasses>;\n\nexport type HvFlowSidebarGroupNode = {\n type: string;\n label: string;\n data?: unknown;\n};\n\nexport type HvFlowSidebarGroupNodes = HvFlowSidebarGroupNode[];\n\nexport interface HvFlowSidebarGroupProps extends HvFlowNodeGroup {\n /** Group id. */\n id: string;\n /** Group nodes. */\n nodes: HvFlowSidebarGroupNodes;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvFlowSidebarGroupClasses;\n /** Expand button props. */\n expandButtonProps?: HvButtonProps;\n /** Item group props. */\n itemProps?: Partial<HvFlowDraggableSidebarGroupItemProps>;\n}\n\nexport const HvFlowSidebarGroup = ({\n id,\n label,\n nodes,\n color,\n description,\n icon,\n expandButtonProps,\n classes: classesProp,\n itemProps,\n}: HvFlowSidebarGroupProps) => {\n const { classes, cx, css } = useClasses(classesProp);\n\n const { expandedNodeGroups, setExpandedNodeGroups } = useFlowContext();\n\n const opened = useMemo(\n () => !!expandedNodeGroups?.find((groupId) => groupId === id),\n [expandedNodeGroups, id]\n );\n\n const handleClick = useCallback(() => {\n setExpandedNodeGroups?.((prev) =>\n opened ? prev.filter((groupId) => id !== groupId) : [...prev, id]\n );\n }, [id, opened, setExpandedNodeGroups]);\n\n return (\n <li className={cx(css({ borderColor: getColor(color) }), classes.root)}>\n <div className={classes.titleContainer}>\n <div className={classes.labelContainer}>\n <div className={classes.icon} role=\"none\">\n {icon}\n </div>\n <HvTypography component=\"p\" variant=\"title4\">\n {nodes.length > 1 ? `${label} (${nodes.length})` : label}\n </HvTypography>\n </div>\n <HvButton\n icon\n onClick={handleClick}\n aria-expanded={opened}\n {...expandButtonProps}\n >\n {opened ? <Up role=\"none\" /> : <Down role=\"none\" />}\n </HvButton>\n </div>\n {description && (\n <div className={classes.descriptionContainer}>\n <HvTypography>{description}</HvTypography>\n </div>\n )}\n {opened && (\n <div className={classes.itemsContainer}>\n {nodes.map((obj) => (\n <HvFlowDraggableSidebarGroupItem\n key={obj.type}\n {...itemProps}\n {...obj}\n />\n ))}\n </div>\n )}\n </li>\n );\n};\n"],"names":["HvFlowSidebarGroup","id","label","nodes","color","description","icon","expandButtonProps","classes","classesProp","itemProps","cx","css","useClasses","expandedNodeGroups","setExpandedNodeGroups","useFlowContext","opened","useMemo","find","groupId","handleClick","useCallback","prev","filter","borderColor","getColor","root","titleContainer","labelContainer","length","descriptionContainer","itemsContainer","map","obj","type"],"mappings":";;;;;;;;;AA4CO,MAAMA,qBAAqBA,CAAC;AAAA,EACjCC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC,SAASC;AAAAA,EACTC;AACuB,MAAM;AACvB,QAAA;AAAA,IAAEF;AAAAA,IAASG;AAAAA,IAAIC;AAAAA,EAAAA,IAAQC,WAAWJ,WAAW;AAE7C,QAAA;AAAA,IAAEK;AAAAA,IAAoBC;AAAAA,MAA0BC,eAAe;AAErE,QAAMC,SAASC,QACb,MAAM,CAAC,CAACJ,oBAAoBK,KAAMC,CAAYA,YAAAA,YAAYnB,EAAE,GAC5D,CAACa,oBAAoBb,EAAE,CACzB;AAEMoB,QAAAA,cAAcC,YAAY,MAAM;AACpCP,4BAAyBQ,CACvBN,SAAAA,SAASM,KAAKC,OAAQJ,CAAYnB,YAAAA,OAAOmB,OAAO,IAAI,CAAC,GAAGG,MAAMtB,EAAE,CAClE;AAAA,EACC,GAAA,CAACA,IAAIgB,QAAQF,qBAAqB,CAAC;AAEtC,SACG,qBAAA,MAAA,EAAG,WAAWJ,GAAGC,IAAI;AAAA,IAAEa,aAAaC,SAAStB,KAAK;AAAA,EAAG,CAAA,GAAGI,QAAQmB,IAAI,GACnE,UAAA;AAAA,IAAC,qBAAA,OAAA,EAAI,WAAWnB,QAAQoB,gBACtB,UAAA;AAAA,MAAC,qBAAA,OAAA,EAAI,WAAWpB,QAAQqB,gBACtB,UAAA;AAAA,QAAA,oBAAC,SAAI,WAAWrB,QAAQF,MAAM,MAAK,QAChCA,UACH,MAAA;AAAA,QACC,oBAAA,cAAA,EAAa,WAAU,KAAI,SAAQ,UACjCH,UAAAA,MAAM2B,SAAS,IAAK,GAAE5B,KAAM,KAAIC,MAAM2B,MAAO,MAAK5B,OACrD;AAAA,MAAA,GACF;AAAA,MACA,oBAAC,YACC,MAAI,MACJ,SAASmB,aACT,iBAAeJ,QACf,GAAIV,mBAEHU,mBAAU,oBAAA,IAAA,EAAG,MAAK,QAAM,wBAAO,MAAK,EAAA,MAAK,QAAS,EACrD,CAAA;AAAA,IAAA,GACF;AAAA,IACCZ,mCACE,OAAI,EAAA,WAAWG,QAAQuB,sBACtB,UAAA,oBAAC,cAAc1B,EAAAA,UAAAA,YAAAA,CAAY,EAC7B,CAAA;AAAA,IAEDY,UACE,oBAAA,OAAA,EAAI,WAAWT,QAAQwB,gBACrB7B,gBAAM8B,IAAKC,CAAAA,QACT,oBAAA,iCAAA,EAEKxB,GAAAA,WACAwB,GAAAA,OAFCA,IAAIC,IAED,CAEX,GACH;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
1
+ {"version":3,"file":"SidebarGroup.js","sources":["../../../../../../src/components/Flow/Sidebar/SidebarGroup/SidebarGroup.tsx"],"sourcesContent":["import { useCallback, useMemo } from \"react\";\n\nimport { Down, Up } from \"@hitachivantara/uikit-react-icons\";\nimport {\n ExtractNames,\n HvButton,\n HvButtonProps,\n HvTypography,\n} from \"@hitachivantara/uikit-react-core\";\nimport { getColor } from \"@hitachivantara/uikit-styles\";\n\nimport { HvFlowNodeGroup } from \"../../types\";\nimport { staticClasses, useClasses } from \"./SidebarGroup.styles\";\nimport {\n HvFlowDraggableSidebarGroupItem,\n HvFlowDraggableSidebarGroupItemProps,\n} from \"./SidebarGroupItem\";\nimport { useFlowContext } from \"../../hooks\";\n\nexport { staticClasses as flowSidebarGroupClasses };\n\nexport type HvFlowSidebarGroupClasses = ExtractNames<typeof useClasses>;\n\nexport type HvFlowSidebarGroupNode = {\n type: string;\n label: string;\n data?: unknown;\n};\n\nexport type HvFlowSidebarGroupNodes = HvFlowSidebarGroupNode[];\n\nexport interface HvFlowSidebarGroupProps extends HvFlowNodeGroup {\n /** Group id. */\n id: string;\n /** Group nodes. */\n nodes: HvFlowSidebarGroupNodes;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvFlowSidebarGroupClasses;\n /** Expand button props. */\n expandButtonProps?: HvButtonProps;\n /** Item group props. */\n itemProps?: Partial<HvFlowDraggableSidebarGroupItemProps>;\n}\n\nexport const HvFlowSidebarGroup = ({\n id,\n label,\n nodes,\n color,\n description,\n icon,\n expandButtonProps,\n classes: classesProp,\n itemProps,\n}: HvFlowSidebarGroupProps) => {\n const { classes, cx, css } = useClasses(classesProp);\n\n const { expandedNodeGroups, setExpandedNodeGroups } = useFlowContext();\n\n const opened = useMemo(\n () => !!expandedNodeGroups?.find((groupId) => groupId === id),\n [expandedNodeGroups, id]\n );\n\n const handleClick = useCallback(() => {\n setExpandedNodeGroups?.((prev) =>\n opened ? prev.filter((groupId) => id !== groupId) : [...prev, id]\n );\n }, [id, opened, setExpandedNodeGroups]);\n\n return (\n <li className={cx(css({ borderColor: getColor(color) }), classes.root)}>\n <div className={classes.titleContainer}>\n <div className={classes.labelContainer}>\n <div className={classes.icon} role=\"none\">\n {icon}\n </div>\n <HvTypography component=\"p\" variant=\"title4\">\n {nodes.length > 1 ? `${label} (${nodes.length})` : label}\n </HvTypography>\n </div>\n <HvButton\n icon\n onClick={handleClick}\n aria-expanded={opened}\n {...expandButtonProps}\n >\n {opened ? <Up role=\"none\" /> : <Down role=\"none\" />}\n </HvButton>\n </div>\n {description && (\n <div className={classes.descriptionContainer}>\n <HvTypography>{description}</HvTypography>\n </div>\n )}\n {opened && (\n <div className={classes.itemsContainer}>\n {nodes.map((obj) => (\n <HvFlowDraggableSidebarGroupItem\n key={obj.type}\n {...itemProps}\n {...obj}\n />\n ))}\n </div>\n )}\n </li>\n );\n};\n"],"names":[],"mappings":";;;;;;;;;AA4CO,MAAM,qBAAqB,CAAC;AAAA,EACjC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,SAAS;AAAA,EACT;AACF,MAA+B;AAC7B,QAAM,EAAE,SAAS,IAAI,IAAI,IAAI,WAAW,WAAW;AAEnD,QAAM,EAAE,oBAAoB,sBAAsB,IAAI,eAAe;AAErE,QAAM,SAAS;AAAA,IACb,MAAM,CAAC,CAAC,oBAAoB,KAAK,CAAC,YAAY,YAAY,EAAE;AAAA,IAC5D,CAAC,oBAAoB,EAAE;AAAA,EAAA;AAGnB,QAAA,cAAc,YAAY,MAAM;AACpC;AAAA,MAAwB,CAAC,SACvB,SAAS,KAAK,OAAO,CAAC,YAAY,OAAO,OAAO,IAAI,CAAC,GAAG,MAAM,EAAE;AAAA,IAAA;AAAA,EAEjE,GAAA,CAAC,IAAI,QAAQ,qBAAqB,CAAC;AAEtC,SACG,qBAAA,MAAA,EAAG,WAAW,GAAG,IAAI,EAAE,aAAa,SAAS,KAAK,EAAE,CAAC,GAAG,QAAQ,IAAI,GACnE,UAAA;AAAA,IAAC,qBAAA,OAAA,EAAI,WAAW,QAAQ,gBACtB,UAAA;AAAA,MAAC,qBAAA,OAAA,EAAI,WAAW,QAAQ,gBACtB,UAAA;AAAA,QAAA,oBAAC,SAAI,WAAW,QAAQ,MAAM,MAAK,QAChC,UACH,MAAA;AAAA,QACC,oBAAA,cAAA,EAAa,WAAU,KAAI,SAAQ,UACjC,UAAA,MAAM,SAAS,IAAI,GAAG,KAAK,KAAK,MAAM,MAAM,MAAM,OACrD;AAAA,MAAA,GACF;AAAA,MACA;AAAA,QAAC;AAAA,QAAA;AAAA,UACC,MAAI;AAAA,UACJ,SAAS;AAAA,UACT,iBAAe;AAAA,UACd,GAAG;AAAA,UAEH,UAAA,6BAAU,IAAG,EAAA,MAAK,QAAO,IAAK,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MACnD;AAAA,IAAA,GACF;AAAA,IACC,mCACE,OAAI,EAAA,WAAW,QAAQ,sBACtB,UAAA,oBAAC,cAAc,EAAA,UAAA,YAAA,CAAY,EAC7B,CAAA;AAAA,IAED,8BACE,OAAI,EAAA,WAAW,QAAQ,gBACrB,UAAA,MAAM,IAAI,CAAC,QACV;AAAA,MAAC;AAAA,MAAA;AAAA,QAEE,GAAG;AAAA,QACH,GAAG;AAAA,MAAA;AAAA,MAFC,IAAI;AAAA,IAIZ,CAAA,GACH;AAAA,EAEJ,EAAA,CAAA;AAEJ;"}
@@ -1,35 +1,33 @@
1
1
  import { createClasses, theme } from "@hitachivantara/uikit-react-core";
2
- const {
3
- staticClasses,
4
- useClasses
5
- } = createClasses("HvFlowSidebarGroup", {
6
- root: {
7
- padding: theme.space.sm,
8
- borderRadius: theme.radii.round,
9
- borderWidth: "1px",
10
- borderTopWidth: "3px"
11
- },
12
- titleContainer: {
13
- display: "flex",
14
- justifyContent: "space-between"
15
- },
16
- labelContainer: {
17
- display: "flex",
18
- alignItems: "center"
19
- },
20
- icon: {
21
- paddingRight: theme.space.xs
22
- },
23
- descriptionContainer: {
24
- padding: `${theme.space.xs} 0 ${theme.space.sm} calc(32px + ${theme.space.xs})`
25
- },
26
- itemsContainer: {
27
- display: "flex",
28
- flexDirection: "column",
29
- gap: theme.space.xs,
30
- paddingLeft: theme.space.sm
2
+ const { staticClasses, useClasses } = createClasses(
3
+ "HvFlowSidebarGroup",
4
+ {
5
+ root: {
6
+ padding: theme.space.sm,
7
+ borderRadius: theme.radii.round,
8
+ borderWidth: "1px",
9
+ borderTopWidth: "3px"
10
+ },
11
+ titleContainer: {
12
+ display: "flex",
13
+ justifyContent: "space-between"
14
+ },
15
+ labelContainer: {
16
+ display: "flex",
17
+ alignItems: "center"
18
+ },
19
+ icon: { paddingRight: theme.space.xs },
20
+ descriptionContainer: {
21
+ padding: `${theme.space.xs} 0 ${theme.space.sm} calc(32px + ${theme.space.xs})`
22
+ },
23
+ itemsContainer: {
24
+ display: "flex",
25
+ flexDirection: "column",
26
+ gap: theme.space.xs,
27
+ paddingLeft: theme.space.sm
28
+ }
31
29
  }
32
- });
30
+ );
33
31
  export {
34
32
  staticClasses,
35
33
  useClasses
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarGroup.styles.js","sources":["../../../../../../src/components/Flow/Sidebar/SidebarGroup/SidebarGroup.styles.tsx"],"sourcesContent":["import { createClasses, theme } from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\n \"HvFlowSidebarGroup\",\n {\n root: {\n padding: theme.space.sm,\n borderRadius: theme.radii.round,\n borderWidth: \"1px\",\n borderTopWidth: \"3px\",\n },\n titleContainer: {\n display: \"flex\",\n justifyContent: \"space-between\",\n },\n labelContainer: {\n display: \"flex\",\n alignItems: \"center\",\n },\n icon: { paddingRight: theme.space.xs },\n descriptionContainer: {\n padding: `${theme.space.xs} 0 ${theme.space.sm} calc(32px + ${theme.space.xs})`,\n },\n itemsContainer: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: theme.space.xs,\n paddingLeft: theme.space.sm,\n },\n }\n);\n"],"names":["staticClasses","useClasses","createClasses","root","padding","theme","space","sm","borderRadius","radii","round","borderWidth","borderTopWidth","titleContainer","display","justifyContent","labelContainer","alignItems","icon","paddingRight","xs","descriptionContainer","itemsContainer","flexDirection","gap","paddingLeft"],"mappings":";AAEa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAC3C,sBACA;AAAA,EACEC,MAAM;AAAA,IACJC,SAASC,MAAMC,MAAMC;AAAAA,IACrBC,cAAcH,MAAMI,MAAMC;AAAAA,IAC1BC,aAAa;AAAA,IACbC,gBAAgB;AAAA,EAClB;AAAA,EACAC,gBAAgB;AAAA,IACdC,SAAS;AAAA,IACTC,gBAAgB;AAAA,EAClB;AAAA,EACAC,gBAAgB;AAAA,IACdF,SAAS;AAAA,IACTG,YAAY;AAAA,EACd;AAAA,EACAC,MAAM;AAAA,IAAEC,cAAcd,MAAMC,MAAMc;AAAAA,EAAG;AAAA,EACrCC,sBAAsB;AAAA,IACpBjB,SAAU,GAAEC,MAAMC,MAAMc,EAAG,MAAKf,MAAMC,MAAMC,EAAG,gBAAeF,MAAMC,MAAMc,EAAG;AAAA,EAC/E;AAAA,EACAE,gBAAgB;AAAA,IACdR,SAAS;AAAA,IACTS,eAAe;AAAA,IACfC,KAAKnB,MAAMC,MAAMc;AAAAA,IACjBK,aAAapB,MAAMC,MAAMC;AAAAA,EAC3B;AACF,CACF;"}
1
+ {"version":3,"file":"SidebarGroup.styles.js","sources":["../../../../../../src/components/Flow/Sidebar/SidebarGroup/SidebarGroup.styles.tsx"],"sourcesContent":["import { createClasses, theme } from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\n \"HvFlowSidebarGroup\",\n {\n root: {\n padding: theme.space.sm,\n borderRadius: theme.radii.round,\n borderWidth: \"1px\",\n borderTopWidth: \"3px\",\n },\n titleContainer: {\n display: \"flex\",\n justifyContent: \"space-between\",\n },\n labelContainer: {\n display: \"flex\",\n alignItems: \"center\",\n },\n icon: { paddingRight: theme.space.xs },\n descriptionContainer: {\n padding: `${theme.space.xs} 0 ${theme.space.sm} calc(32px + ${theme.space.xs})`,\n },\n itemsContainer: {\n display: \"flex\",\n flexDirection: \"column\",\n gap: theme.space.xs,\n paddingLeft: theme.space.sm,\n },\n }\n);\n"],"names":[],"mappings":";AAEa,MAAA,EAAE,eAAe,WAAA,IAAe;AAAA,EAC3C;AAAA,EACA;AAAA,IACE,MAAM;AAAA,MACJ,SAAS,MAAM,MAAM;AAAA,MACrB,cAAc,MAAM,MAAM;AAAA,MAC1B,aAAa;AAAA,MACb,gBAAgB;AAAA,IAClB;AAAA,IACA,gBAAgB;AAAA,MACd,SAAS;AAAA,MACT,gBAAgB;AAAA,IAClB;AAAA,IACA,gBAAgB;AAAA,MACd,SAAS;AAAA,MACT,YAAY;AAAA,IACd;AAAA,IACA,MAAM,EAAE,cAAc,MAAM,MAAM,GAAG;AAAA,IACrC,sBAAsB;AAAA,MACpB,SAAS,GAAG,MAAM,MAAM,EAAE,MAAM,MAAM,MAAM,EAAE,gBAAgB,MAAM,MAAM,EAAE;AAAA,IAC9E;AAAA,IACA,gBAAgB;AAAA,MACd,SAAS;AAAA,MACT,eAAe;AAAA,MACf,KAAK,MAAM,MAAM;AAAA,MACjB,aAAa,MAAM,MAAM;AAAA,IAC3B;AAAA,EACF;AACF;"}
@@ -13,13 +13,7 @@ const HvFlowDraggableSidebarGroupItem = ({
13
13
  }) => {
14
14
  const itemRef = useRef(null);
15
15
  const elementId = useUniqueId(id, `hvFlowDraggableItem-${type}`);
16
- const {
17
- attributes,
18
- listeners,
19
- setNodeRef,
20
- isDragging,
21
- transform
22
- } = useDraggable({
16
+ const { attributes, listeners, setNodeRef, isDragging, transform } = useDraggable({
23
17
  id: elementId,
24
18
  data: {
25
19
  hvFlow: {
@@ -39,7 +33,18 @@ const HvFlowDraggableSidebarGroupItem = ({
39
33
  const style = transform ? {
40
34
  transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`
41
35
  } : void 0;
42
- return /* @__PURE__ */ jsx(HvFlowSidebarGroupItem, { ref: forkedRef, style, label, isDragging, ...listeners, ...attributes, ...others });
36
+ return /* @__PURE__ */ jsx(
37
+ HvFlowSidebarGroupItem,
38
+ {
39
+ ref: forkedRef,
40
+ style,
41
+ label,
42
+ isDragging,
43
+ ...listeners,
44
+ ...attributes,
45
+ ...others
46
+ }
47
+ );
43
48
  };
44
49
  export {
45
50
  HvFlowDraggableSidebarGroupItem
@@ -1 +1 @@
1
- {"version":3,"file":"DraggableSidebarGroupItem.js","sources":["../../../../../../../src/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.tsx"],"sourcesContent":["import { useRef } from \"react\";\n\nimport { useForkRef } from \"@mui/material\";\n\nimport { useDraggable } from \"@dnd-kit/core\";\n\nimport { useUniqueId } from \"@hitachivantara/uikit-react-core\";\n\nimport {\n HvFlowSidebarGroupItem,\n HvFlowSidebarGroupItemProps,\n} from \"./SidebarGroupItem\";\n\nexport interface HvFlowDraggableSidebarGroupItemProps\n extends HvFlowSidebarGroupItemProps {\n /** Item type. */\n type: string;\n /** Item data. */\n data?: unknown;\n}\n\nexport const HvFlowDraggableSidebarGroupItem = ({\n id,\n label,\n type,\n data,\n ...others\n}: HvFlowDraggableSidebarGroupItemProps) => {\n const itemRef = useRef<HTMLElement>(null);\n\n const elementId = useUniqueId(id, `hvFlowDraggableItem-${type}`);\n\n const { attributes, listeners, setNodeRef, isDragging, transform } =\n useDraggable({\n id: elementId,\n data: {\n hvFlow: {\n // Needed to know which item is being dragged and dropped\n type,\n // Needed for the drag overlay: otherwise the item is cut by the drawer because of overflow\n label,\n // Item position: used to position the item when dropped\n x: itemRef.current?.getBoundingClientRect().x,\n y: itemRef.current?.getBoundingClientRect().y,\n // Data\n data,\n },\n },\n });\n\n const forkedRef = useForkRef(itemRef, setNodeRef);\n\n const style = transform\n ? {\n transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,\n }\n : undefined;\n\n return (\n <HvFlowSidebarGroupItem\n ref={forkedRef}\n style={style}\n label={label}\n isDragging={isDragging}\n {...listeners}\n {...attributes}\n {...others}\n />\n );\n};\n"],"names":["HvFlowDraggableSidebarGroupItem","id","label","type","data","others","itemRef","useRef","elementId","useUniqueId","attributes","listeners","setNodeRef","isDragging","transform","useDraggable","hvFlow","x","current","getBoundingClientRect","y","forkedRef","useForkRef","style","undefined"],"mappings":";;;;;;AAqBO,MAAMA,kCAAkCA,CAAC;AAAA,EAC9CC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACAC;AAAAA,EACA,GAAGC;AACiC,MAAM;AACpCC,QAAAA,UAAUC,OAAoB,IAAI;AAExC,QAAMC,YAAYC,YAAYR,IAAK,uBAAsBE,IAAK,EAAC;AAEzD,QAAA;AAAA,IAAEO;AAAAA,IAAYC;AAAAA,IAAWC;AAAAA,IAAYC;AAAAA,IAAYC;AAAAA,MACrDC,aAAa;AAAA,IACXd,IAAIO;AAAAA,IACJJ,MAAM;AAAA,MACJY,QAAQ;AAAA;AAAA,QAENb;AAAAA;AAAAA,QAEAD;AAAAA;AAAAA,QAEAe,GAAGX,QAAQY,SAASC,sBAAwBF,EAAAA;AAAAA,QAC5CG,GAAGd,QAAQY,SAASC,sBAAwBC,EAAAA;AAAAA;AAAAA,QAE5ChB;AAAAA,MACF;AAAA,IACF;AAAA,EAAA,CACD;AAEGiB,QAAAA,YAAYC,WAAWhB,SAASM,UAAU;AAEhD,QAAMW,QAAQT,YACV;AAAA,IACEA,WAAY,eAAcA,UAAUG,CAAE,OAAMH,UAAUM,CAAE;AAAA,EAE1DI,IAAAA;AAEJ,SACG,oBAAA,wBAAA,EACC,KAAKH,WACL,OACA,OACA,YACIV,GAAAA,cACAD,YACAL,GAAAA,OACJ,CAAA;AAEN;"}
1
+ {"version":3,"file":"DraggableSidebarGroupItem.js","sources":["../../../../../../../src/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/DraggableSidebarGroupItem.tsx"],"sourcesContent":["import { useRef } from \"react\";\n\nimport { useForkRef } from \"@mui/material\";\n\nimport { useDraggable } from \"@dnd-kit/core\";\n\nimport { useUniqueId } from \"@hitachivantara/uikit-react-core\";\n\nimport {\n HvFlowSidebarGroupItem,\n HvFlowSidebarGroupItemProps,\n} from \"./SidebarGroupItem\";\n\nexport interface HvFlowDraggableSidebarGroupItemProps\n extends HvFlowSidebarGroupItemProps {\n /** Item type. */\n type: string;\n /** Item data. */\n data?: unknown;\n}\n\nexport const HvFlowDraggableSidebarGroupItem = ({\n id,\n label,\n type,\n data,\n ...others\n}: HvFlowDraggableSidebarGroupItemProps) => {\n const itemRef = useRef<HTMLElement>(null);\n\n const elementId = useUniqueId(id, `hvFlowDraggableItem-${type}`);\n\n const { attributes, listeners, setNodeRef, isDragging, transform } =\n useDraggable({\n id: elementId,\n data: {\n hvFlow: {\n // Needed to know which item is being dragged and dropped\n type,\n // Needed for the drag overlay: otherwise the item is cut by the drawer because of overflow\n label,\n // Item position: used to position the item when dropped\n x: itemRef.current?.getBoundingClientRect().x,\n y: itemRef.current?.getBoundingClientRect().y,\n // Data\n data,\n },\n },\n });\n\n const forkedRef = useForkRef(itemRef, setNodeRef);\n\n const style = transform\n ? {\n transform: `translate3d(${transform.x}px, ${transform.y}px, 0)`,\n }\n : undefined;\n\n return (\n <HvFlowSidebarGroupItem\n ref={forkedRef}\n style={style}\n label={label}\n isDragging={isDragging}\n {...listeners}\n {...attributes}\n {...others}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;AAqBO,MAAM,kCAAkC,CAAC;AAAA,EAC9C;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,GAAG;AACL,MAA4C;AACpC,QAAA,UAAU,OAAoB,IAAI;AAExC,QAAM,YAAY,YAAY,IAAI,uBAAuB,IAAI,EAAE;AAE/D,QAAM,EAAE,YAAY,WAAW,YAAY,YAAY,cACrD,aAAa;AAAA,IACX,IAAI;AAAA,IACJ,MAAM;AAAA,MACJ,QAAQ;AAAA;AAAA,QAEN;AAAA;AAAA,QAEA;AAAA;AAAA,QAEA,GAAG,QAAQ,SAAS,sBAAwB,EAAA;AAAA,QAC5C,GAAG,QAAQ,SAAS,sBAAwB,EAAA;AAAA;AAAA,QAE5C;AAAA,MACF;AAAA,IACF;AAAA,EAAA,CACD;AAEG,QAAA,YAAY,WAAW,SAAS,UAAU;AAEhD,QAAM,QAAQ,YACV;AAAA,IACE,WAAW,eAAe,UAAU,CAAC,OAAO,UAAU,CAAC;AAAA,EAEzD,IAAA;AAGF,SAAA;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,KAAK;AAAA,MACL;AAAA,MACA;AAAA,MACA;AAAA,MACC,GAAG;AAAA,MACH,GAAG;AAAA,MACH,GAAG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
@@ -4,24 +4,33 @@ import { HvTypography } from "@hitachivantara/uikit-react-core";
4
4
  import { Drag } from "@hitachivantara/uikit-react-icons";
5
5
  import { useClasses } from "./SidebarGroupItem.styles.js";
6
6
  import { staticClasses } from "./SidebarGroupItem.styles.js";
7
- const HvFlowSidebarGroupItem = forwardRef(({
8
- label,
9
- isDragging,
10
- classes: classesProp,
11
- className,
12
- ...others
13
- }, ref) => {
14
- const {
15
- classes,
16
- cx
17
- } = useClasses(classesProp);
18
- return /* @__PURE__ */ jsxs("div", { ref, className: cx(classes.root, {
19
- [classes.dragging]: isDragging
20
- }, className), ...others, children: [
21
- /* @__PURE__ */ jsx(HvTypography, { children: label }),
22
- /* @__PURE__ */ jsx(Drag, { role: "none" })
23
- ] });
24
- });
7
+ const HvFlowSidebarGroupItem = forwardRef(
8
+ ({
9
+ label,
10
+ isDragging,
11
+ classes: classesProp,
12
+ className,
13
+ ...others
14
+ }, ref) => {
15
+ const { classes, cx } = useClasses(classesProp);
16
+ return /* @__PURE__ */ jsxs(
17
+ "div",
18
+ {
19
+ ref,
20
+ className: cx(
21
+ classes.root,
22
+ { [classes.dragging]: isDragging },
23
+ className
24
+ ),
25
+ ...others,
26
+ children: [
27
+ /* @__PURE__ */ jsx(HvTypography, { children: label }),
28
+ /* @__PURE__ */ jsx(Drag, { role: "none" })
29
+ ]
30
+ }
31
+ );
32
+ }
33
+ );
25
34
  export {
26
35
  HvFlowSidebarGroupItem,
27
36
  staticClasses as flowSidebarGroupItemClasses
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarGroupItem.js","sources":["../../../../../../../src/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport {\n ExtractNames,\n HvBaseProps,\n HvTypography,\n} from \"@hitachivantara/uikit-react-core\";\nimport { Drag } from \"@hitachivantara/uikit-react-icons\";\n\nimport { staticClasses, useClasses } from \"./SidebarGroupItem.styles\";\n\nexport { staticClasses as flowSidebarGroupItemClasses };\n\nexport type HvFlowSidebarGroupItemClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvFlowSidebarGroupItemProps extends HvBaseProps {\n /** Item label. */\n label: string;\n /** Whether the item is being dragged. */\n isDragging?: boolean;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvFlowSidebarGroupItemClasses;\n}\n\nexport const HvFlowSidebarGroupItem = forwardRef<\n HTMLDivElement,\n HvFlowSidebarGroupItemProps\n>(\n (\n {\n label,\n isDragging,\n classes: classesProp,\n className,\n ...others\n }: HvFlowSidebarGroupItemProps,\n ref\n ) => {\n const { classes, cx } = useClasses(classesProp);\n\n return (\n <div\n ref={ref}\n className={cx(\n classes.root,\n { [classes.dragging]: isDragging },\n className\n )}\n {...others}\n >\n <HvTypography>{label}</HvTypography>\n <Drag role=\"none\" />\n </div>\n );\n }\n);\n"],"names":["HvFlowSidebarGroupItem","forwardRef","label","isDragging","classes","classesProp","className","others","ref","cx","useClasses","root","dragging"],"mappings":";;;;;;AAwBaA,MAAAA,yBAAyBC,WAIpC,CACE;AAAA,EACEC;AAAAA,EACAC;AAAAA,EACAC,SAASC;AAAAA,EACTC;AAAAA,EACA,GAAGC;AACwB,GAC7BC,QACG;AACG,QAAA;AAAA,IAAEJ;AAAAA,IAASK;AAAAA,EAAAA,IAAOC,WAAWL,WAAW;AAE9C,8BACG,OACC,EAAA,KACA,WAAWI,GACTL,QAAQO,MACR;AAAA,IAAE,CAACP,QAAQQ,QAAQ,GAAGT;AAAAA,EACtBG,GAAAA,SACF,GACA,GAAIC,QAEJ,UAAA;AAAA,IAAA,oBAAC,gBAAcL,UAAM,MAAA,CAAA;AAAA,IACrB,oBAAC,MAAK,EAAA,MAAK,OAAM,CAAA;AAAA,EACnB,EAAA,CAAA;AAEJ,CACF;"}
1
+ {"version":3,"file":"SidebarGroupItem.js","sources":["../../../../../../../src/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.tsx"],"sourcesContent":["import { forwardRef } from \"react\";\n\nimport {\n ExtractNames,\n HvBaseProps,\n HvTypography,\n} from \"@hitachivantara/uikit-react-core\";\nimport { Drag } from \"@hitachivantara/uikit-react-icons\";\n\nimport { staticClasses, useClasses } from \"./SidebarGroupItem.styles\";\n\nexport { staticClasses as flowSidebarGroupItemClasses };\n\nexport type HvFlowSidebarGroupItemClasses = ExtractNames<typeof useClasses>;\n\nexport interface HvFlowSidebarGroupItemProps extends HvBaseProps {\n /** Item label. */\n label: string;\n /** Whether the item is being dragged. */\n isDragging?: boolean;\n /** A Jss Object used to override or extend the styles applied to the component. */\n classes?: HvFlowSidebarGroupItemClasses;\n}\n\nexport const HvFlowSidebarGroupItem = forwardRef<\n HTMLDivElement,\n HvFlowSidebarGroupItemProps\n>(\n (\n {\n label,\n isDragging,\n classes: classesProp,\n className,\n ...others\n }: HvFlowSidebarGroupItemProps,\n ref\n ) => {\n const { classes, cx } = useClasses(classesProp);\n\n return (\n <div\n ref={ref}\n className={cx(\n classes.root,\n { [classes.dragging]: isDragging },\n className\n )}\n {...others}\n >\n <HvTypography>{label}</HvTypography>\n <Drag role=\"none\" />\n </div>\n );\n }\n);\n"],"names":[],"mappings":";;;;;;AAwBO,MAAM,yBAAyB;AAAA,EAIpC,CACE;AAAA,IACE;AAAA,IACA;AAAA,IACA,SAAS;AAAA,IACT;AAAA,IACA,GAAG;AAAA,KAEL,QACG;AACH,UAAM,EAAE,SAAS,GAAG,IAAI,WAAW,WAAW;AAG5C,WAAA;AAAA,MAAC;AAAA,MAAA;AAAA,QACC;AAAA,QACA,WAAW;AAAA,UACT,QAAQ;AAAA,UACR,EAAE,CAAC,QAAQ,QAAQ,GAAG,WAAW;AAAA,UACjC;AAAA,QACF;AAAA,QACC,GAAG;AAAA,QAEJ,UAAA;AAAA,UAAA,oBAAC,gBAAc,UAAM,MAAA,CAAA;AAAA,UACrB,oBAAC,MAAK,EAAA,MAAK,OAAO,CAAA;AAAA,QAAA;AAAA,MAAA;AAAA,IAAA;AAAA,EAGxB;AACF;"}
@@ -1,24 +1,22 @@
1
1
  import { createClasses, theme, outlineStyles } from "@hitachivantara/uikit-react-core";
2
- const {
3
- staticClasses,
4
- useClasses
5
- } = createClasses("HvFlowSidebarGroupItem", {
6
- root: {
7
- display: "flex",
8
- alignItems: "center",
9
- justifyContent: "space-between",
10
- border: `1px solid ${theme.colors.atmo4}`,
11
- padding: theme.spacing(0, 0, 0, "sm"),
12
- cursor: "pointer",
13
- boxShadow: `0 1px 0 ${theme.colors.shad1}`,
14
- "&:focus-visible": {
15
- ...outlineStyles
16
- }
17
- },
18
- dragging: {
19
- borderColor: theme.colors.primary_80
2
+ const { staticClasses, useClasses } = createClasses(
3
+ "HvFlowSidebarGroupItem",
4
+ {
5
+ root: {
6
+ display: "flex",
7
+ alignItems: "center",
8
+ justifyContent: "space-between",
9
+ border: `1px solid ${theme.colors.atmo4}`,
10
+ padding: theme.spacing(0, 0, 0, "sm"),
11
+ cursor: "pointer",
12
+ boxShadow: `0 1px 0 ${theme.colors.shad1}`,
13
+ "&:focus-visible": {
14
+ ...outlineStyles
15
+ }
16
+ },
17
+ dragging: { borderColor: theme.colors.primary_80 }
20
18
  }
21
- });
19
+ );
22
20
  export {
23
21
  staticClasses,
24
22
  useClasses
@@ -1 +1 @@
1
- {"version":3,"file":"SidebarGroupItem.styles.js","sources":["../../../../../../../src/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.tsx"],"sourcesContent":["import {\n createClasses,\n outlineStyles,\n theme,\n} from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\n \"HvFlowSidebarGroupItem\",\n {\n root: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n border: `1px solid ${theme.colors.atmo4}`,\n padding: theme.spacing(0, 0, 0, \"sm\"),\n cursor: \"pointer\",\n boxShadow: `0 1px 0 ${theme.colors.shad1}`,\n\n \"&:focus-visible\": {\n ...outlineStyles,\n },\n },\n dragging: { borderColor: theme.colors.primary_80 },\n }\n);\n"],"names":["staticClasses","useClasses","createClasses","root","display","alignItems","justifyContent","border","theme","colors","atmo4","padding","spacing","cursor","boxShadow","shad1","outlineStyles","dragging","borderColor","primary_80"],"mappings":";AAMa,MAAA;AAAA,EAAEA;AAAAA,EAAeC;AAAW,IAAIC,cAC3C,0BACA;AAAA,EACEC,MAAM;AAAA,IACJC,SAAS;AAAA,IACTC,YAAY;AAAA,IACZC,gBAAgB;AAAA,IAChBC,QAAS,aAAYC,MAAMC,OAAOC,KAAM;AAAA,IACxCC,SAASH,MAAMI,QAAQ,GAAG,GAAG,GAAG,IAAI;AAAA,IACpCC,QAAQ;AAAA,IACRC,WAAY,WAAUN,MAAMC,OAAOM,KAAM;AAAA,IAEzC,mBAAmB;AAAA,MACjB,GAAGC;AAAAA,IACL;AAAA,EACF;AAAA,EACAC,UAAU;AAAA,IAAEC,aAAaV,MAAMC,OAAOU;AAAAA,EAAW;AACnD,CACF;"}
1
+ {"version":3,"file":"SidebarGroupItem.styles.js","sources":["../../../../../../../src/components/Flow/Sidebar/SidebarGroup/SidebarGroupItem/SidebarGroupItem.styles.tsx"],"sourcesContent":["import {\n createClasses,\n outlineStyles,\n theme,\n} from \"@hitachivantara/uikit-react-core\";\n\nexport const { staticClasses, useClasses } = createClasses(\n \"HvFlowSidebarGroupItem\",\n {\n root: {\n display: \"flex\",\n alignItems: \"center\",\n justifyContent: \"space-between\",\n border: `1px solid ${theme.colors.atmo4}`,\n padding: theme.spacing(0, 0, 0, \"sm\"),\n cursor: \"pointer\",\n boxShadow: `0 1px 0 ${theme.colors.shad1}`,\n\n \"&:focus-visible\": {\n ...outlineStyles,\n },\n },\n dragging: { borderColor: theme.colors.primary_80 },\n }\n);\n"],"names":[],"mappings":";AAMa,MAAA,EAAE,eAAe,WAAA,IAAe;AAAA,EAC3C;AAAA,EACA;AAAA,IACE,MAAM;AAAA,MACJ,SAAS;AAAA,MACT,YAAY;AAAA,MACZ,gBAAgB;AAAA,MAChB,QAAQ,aAAa,MAAM,OAAO,KAAK;AAAA,MACvC,SAAS,MAAM,QAAQ,GAAG,GAAG,GAAG,IAAI;AAAA,MACpC,QAAQ;AAAA,MACR,WAAW,WAAW,MAAM,OAAO,KAAK;AAAA,MAExC,mBAAmB;AAAA,QACjB,GAAG;AAAA,MACL;AAAA,IACF;AAAA,IACA,UAAU,EAAE,aAAa,MAAM,OAAO,WAAW;AAAA,EACnD;AACF;"}
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sources":["../../../../../src/components/Flow/Sidebar/utils.ts"],"sourcesContent":["import { HvFlowContextValue } from \"../FlowContext\";\nimport { HvFlowNodeGroup } from \"../types\";\nimport {\n HvFlowSidebarGroupNodes,\n HvFlowSidebarGroupNode,\n} from \"./SidebarGroup\";\n\ntype NodeGroup = HvFlowNodeGroup & { nodes: HvFlowSidebarGroupNodes };\n\nexport const buildGroups = (\n nodeGroups: HvFlowContextValue[\"nodeGroups\"],\n nodeTypes: HvFlowContextValue[\"nodeTypes\"],\n defaultGroupProps?: HvFlowNodeGroup\n) => {\n if (!nodeGroups) return {};\n\n return Object.entries(nodeGroups).reduce((acc, curr) => {\n const nodesWithGroupId: HvFlowSidebarGroupNode[] = [];\n const nodesWithoutGroupId: HvFlowSidebarGroupNode[] = [];\n\n if (nodeTypes) {\n for (const [nodeType, node] of Object.entries(nodeTypes)) {\n if (node.meta?.groupId === curr[0]) {\n nodesWithGroupId.push({\n type: nodeType,\n label: node.meta?.label,\n data: node.meta?.data,\n });\n } else if (!node.meta?.groupId) {\n nodesWithoutGroupId.push({\n type: nodeType,\n label: node.meta?.label || \"\",\n data: node.meta?.data,\n });\n }\n }\n }\n\n acc[curr[0]] = {\n ...curr[1],\n nodes: nodesWithGroupId,\n };\n\n // Create a \"Default\" group for nodes without a groupId\n if (nodesWithoutGroupId.length > 0) {\n acc.Default = {\n // @ts-ignore\n name: \"Default\",\n label: \"Default\",\n nodes: nodesWithoutGroupId,\n ...defaultGroupProps,\n };\n }\n\n return acc;\n }, {} as Record<string, NodeGroup>);\n};\n"],"names":["buildGroups","nodeGroups","nodeTypes","defaultGroupProps","Object","entries","reduce","acc","curr","nodesWithGroupId","nodesWithoutGroupId","nodeType","node","meta","groupId","push","type","label","data","nodes","length","Default","name"],"mappings":"AASO,MAAMA,cAAcA,CACzBC,YACAC,WACAC,sBACG;AACH,MAAI,CAACF;AAAY,WAAO;AAExB,SAAOG,OAAOC,QAAQJ,UAAU,EAAEK,OAAO,CAACC,KAAKC,SAAS;AACtD,UAAMC,mBAA6C,CAAA;AACnD,UAAMC,sBAAgD,CAAA;AAEtD,QAAIR,WAAW;AACb,iBAAW,CAACS,UAAUC,IAAI,KAAKR,OAAOC,QAAQH,SAAS,GAAG;AACxD,YAAIU,KAAKC,MAAMC,YAAYN,KAAK,CAAC,GAAG;AAClCC,2BAAiBM,KAAK;AAAA,YACpBC,MAAML;AAAAA,YACNM,OAAOL,KAAKC,MAAMI;AAAAA,YAClBC,MAAMN,KAAKC,MAAMK;AAAAA,UAAAA,CAClB;AAAA,QACQ,WAAA,CAACN,KAAKC,MAAMC,SAAS;AAC9BJ,8BAAoBK,KAAK;AAAA,YACvBC,MAAML;AAAAA,YACNM,OAAOL,KAAKC,MAAMI,SAAS;AAAA,YAC3BC,MAAMN,KAAKC,MAAMK;AAAAA,UAAAA,CAClB;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAEIV,QAAAA,KAAK,CAAC,CAAC,IAAI;AAAA,MACb,GAAGA,KAAK,CAAC;AAAA,MACTW,OAAOV;AAAAA,IAAAA;AAILC,QAAAA,oBAAoBU,SAAS,GAAG;AAClCb,UAAIc,UAAU;AAAA;AAAA,QAEZC,MAAM;AAAA,QACNL,OAAO;AAAA,QACPE,OAAOT;AAAAA,QACP,GAAGP;AAAAA,MAAAA;AAAAA,IAEP;AAEOI,WAAAA;AAAAA,EACT,GAAG,CAAgC,CAAA;AACrC;"}
1
+ {"version":3,"file":"utils.js","sources":["../../../../../src/components/Flow/Sidebar/utils.ts"],"sourcesContent":["import { HvFlowContextValue } from \"../FlowContext\";\nimport { HvFlowNodeGroup } from \"../types\";\nimport {\n HvFlowSidebarGroupNodes,\n HvFlowSidebarGroupNode,\n} from \"./SidebarGroup\";\n\ntype NodeGroup = HvFlowNodeGroup & { nodes: HvFlowSidebarGroupNodes };\n\nexport const buildGroups = (\n nodeGroups: HvFlowContextValue[\"nodeGroups\"],\n nodeTypes: HvFlowContextValue[\"nodeTypes\"],\n defaultGroupProps?: HvFlowNodeGroup\n) => {\n if (!nodeGroups) return {};\n\n return Object.entries(nodeGroups).reduce((acc, curr) => {\n const nodesWithGroupId: HvFlowSidebarGroupNode[] = [];\n const nodesWithoutGroupId: HvFlowSidebarGroupNode[] = [];\n\n if (nodeTypes) {\n for (const [nodeType, node] of Object.entries(nodeTypes)) {\n if (node.meta?.groupId === curr[0]) {\n nodesWithGroupId.push({\n type: nodeType,\n label: node.meta?.label,\n data: node.meta?.data,\n });\n } else if (!node.meta?.groupId) {\n nodesWithoutGroupId.push({\n type: nodeType,\n label: node.meta?.label || \"\",\n data: node.meta?.data,\n });\n }\n }\n }\n\n acc[curr[0]] = {\n ...curr[1],\n nodes: nodesWithGroupId,\n };\n\n // Create a \"Default\" group for nodes without a groupId\n if (nodesWithoutGroupId.length > 0) {\n acc.Default = {\n // @ts-ignore\n name: \"Default\",\n label: \"Default\",\n nodes: nodesWithoutGroupId,\n ...defaultGroupProps,\n };\n }\n\n return acc;\n }, {} as Record<string, NodeGroup>);\n};\n"],"names":[],"mappings":"AASO,MAAM,cAAc,CACzB,YACA,WACA,sBACG;AACH,MAAI,CAAC;AAAY,WAAO;AAExB,SAAO,OAAO,QAAQ,UAAU,EAAE,OAAO,CAAC,KAAK,SAAS;AACtD,UAAM,mBAA6C,CAAA;AACnD,UAAM,sBAAgD,CAAA;AAEtD,QAAI,WAAW;AACb,iBAAW,CAAC,UAAU,IAAI,KAAK,OAAO,QAAQ,SAAS,GAAG;AACxD,YAAI,KAAK,MAAM,YAAY,KAAK,CAAC,GAAG;AAClC,2BAAiB,KAAK;AAAA,YACpB,MAAM;AAAA,YACN,OAAO,KAAK,MAAM;AAAA,YAClB,MAAM,KAAK,MAAM;AAAA,UAAA,CAClB;AAAA,QACQ,WAAA,CAAC,KAAK,MAAM,SAAS;AAC9B,8BAAoB,KAAK;AAAA,YACvB,MAAM;AAAA,YACN,OAAO,KAAK,MAAM,SAAS;AAAA,YAC3B,MAAM,KAAK,MAAM;AAAA,UAAA,CAClB;AAAA,QACH;AAAA,MACF;AAAA,IACF;AAEI,QAAA,KAAK,CAAC,CAAC,IAAI;AAAA,MACb,GAAG,KAAK,CAAC;AAAA,MACT,OAAO;AAAA,IAAA;AAIL,QAAA,oBAAoB,SAAS,GAAG;AAClC,UAAI,UAAU;AAAA;AAAA,QAEZ,MAAM;AAAA,QACN,OAAO;AAAA,QACP,OAAO;AAAA,QACP,GAAG;AAAA,MAAA;AAAA,IAEP;AAEO,WAAA;AAAA,EACT,GAAG,CAA+B,CAAA;AACpC;"}