@altimateai/ui-components 0.0.79 → 0.0.80

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 (521) hide show
  1. package/dist/0~315.js +46635 -0
  2. package/dist/0~315.js.LICENSE.txt +73 -0
  3. package/dist/0~315.js.map +1 -0
  4. package/dist/131.js +14352 -0
  5. package/dist/131.js.map +1 -0
  6. package/dist/3~315.js +46635 -0
  7. package/dist/3~315.js.LICENSE.txt +73 -0
  8. package/dist/3~315.js.map +1 -0
  9. package/dist/582.js +1299 -0
  10. package/dist/582.js.map +1 -0
  11. package/dist/assets/icons/index.d.ts +45 -110
  12. package/dist/assets/icons/index.d.ts.map +1 -0
  13. package/dist/chatbotV2.js +5233 -0
  14. package/dist/chatbotV2.js.map +1 -0
  15. package/dist/components/api/index.d.ts +7 -0
  16. package/dist/components/api/index.d.ts.map +1 -0
  17. package/dist/components/api/useMutation.d.ts +12 -0
  18. package/dist/components/api/useMutation.d.ts.map +1 -0
  19. package/dist/components/api/useQuery.d.ts +12 -0
  20. package/dist/components/api/useQuery.d.ts.map +1 -0
  21. package/dist/components/chatbotV2/ChatProvider.d.ts +17 -0
  22. package/dist/components/chatbotV2/ChatProvider.d.ts.map +1 -0
  23. package/dist/components/chatbotV2/Chatbot.d.ts +4 -0
  24. package/dist/components/chatbotV2/Chatbot.d.ts.map +1 -0
  25. package/dist/components/chatbotV2/HelloMessageSample.d.ts +3 -0
  26. package/dist/components/chatbotV2/HelloMessageSample.d.ts.map +1 -0
  27. package/dist/components/chatbotV2/components/action-buttons/DownloadMessage.d.ts +9 -0
  28. package/dist/components/chatbotV2/components/action-buttons/DownloadMessage.d.ts.map +1 -0
  29. package/dist/components/chatbotV2/components/action-buttons/ShareMessage.d.ts +9 -0
  30. package/dist/components/chatbotV2/components/action-buttons/ShareMessage.d.ts.map +1 -0
  31. package/dist/components/chatbotV2/components/artifacts/Artifacts.d.ts +8 -0
  32. package/dist/components/chatbotV2/components/artifacts/Artifacts.d.ts.map +1 -0
  33. package/dist/components/chatbotV2/components/artifacts/index.d.ts +2 -0
  34. package/dist/components/chatbotV2/components/artifacts/index.d.ts.map +1 -0
  35. package/dist/components/chatbotV2/components/attachmentList/AttachmentList.d.ts +8 -0
  36. package/dist/components/chatbotV2/components/attachmentList/AttachmentList.d.ts.map +1 -0
  37. package/dist/components/chatbotV2/components/attachmentList/index.d.ts +2 -0
  38. package/dist/components/chatbotV2/components/attachmentList/index.d.ts.map +1 -0
  39. package/dist/components/chatbotV2/components/cancelGenerationButton/CancelGenerationButton.d.ts +3 -0
  40. package/dist/components/chatbotV2/components/cancelGenerationButton/CancelGenerationButton.d.ts.map +1 -0
  41. package/dist/components/chatbotV2/components/cancelGenerationButton/index.d.ts +2 -0
  42. package/dist/components/chatbotV2/components/cancelGenerationButton/index.d.ts.map +1 -0
  43. package/dist/components/chatbotV2/components/chatMessageActions/ChatFeedbackActions.d.ts +8 -0
  44. package/dist/components/chatbotV2/components/chatMessageActions/ChatFeedbackActions.d.ts.map +1 -0
  45. package/dist/components/chatbotV2/components/chatMessageActions/ChatLastMessageActions.d.ts +8 -0
  46. package/dist/components/chatbotV2/components/chatMessageActions/ChatLastMessageActions.d.ts.map +1 -0
  47. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageActions.d.ts +10 -0
  48. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageActions.d.ts.map +1 -0
  49. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageEndActions.d.ts +9 -0
  50. package/dist/components/chatbotV2/components/chatMessageActions/ChatMessageEndActions.d.ts.map +1 -0
  51. package/dist/components/chatbotV2/components/chatMessageActions/index.d.ts +4 -0
  52. package/dist/components/chatbotV2/components/chatMessageActions/index.d.ts.map +1 -0
  53. package/dist/components/chatbotV2/components/chatTriggerLink/ChatTriggerLink.d.ts +7 -0
  54. package/dist/components/chatbotV2/components/chatTriggerLink/ChatTriggerLink.d.ts.map +1 -0
  55. package/dist/components/chatbotV2/components/citations/Citations.d.ts +28 -0
  56. package/dist/components/chatbotV2/components/citations/Citations.d.ts.map +1 -0
  57. package/dist/components/chatbotV2/components/coachAI/CoachAI.d.ts +2 -0
  58. package/dist/components/chatbotV2/components/coachAI/CoachAI.d.ts.map +1 -0
  59. package/dist/components/chatbotV2/components/coachAI/index.d.ts +2 -0
  60. package/dist/components/chatbotV2/components/coachAI/index.d.ts.map +1 -0
  61. package/dist/components/chatbotV2/components/contextPanel/ContextPanel.d.ts +13 -0
  62. package/dist/components/chatbotV2/components/contextPanel/ContextPanel.d.ts.map +1 -0
  63. package/dist/components/chatbotV2/components/contextPanel/index.d.ts +2 -0
  64. package/dist/components/chatbotV2/components/contextPanel/index.d.ts.map +1 -0
  65. package/dist/components/chatbotV2/components/emailDialog/EmailDialog.d.ts +10 -0
  66. package/dist/components/chatbotV2/components/emailDialog/EmailDialog.d.ts.map +1 -0
  67. package/dist/components/chatbotV2/components/entityItem/EntityItem.d.ts +7 -0
  68. package/dist/components/chatbotV2/components/entityItem/EntityItem.d.ts.map +1 -0
  69. package/dist/components/chatbotV2/components/entityItem/index.d.ts +2 -0
  70. package/dist/components/chatbotV2/components/entityItem/index.d.ts.map +1 -0
  71. package/dist/components/chatbotV2/components/followup/Followup.d.ts +3 -0
  72. package/dist/components/chatbotV2/components/followup/Followup.d.ts.map +1 -0
  73. package/dist/components/chatbotV2/components/index.d.ts +18 -0
  74. package/dist/components/chatbotV2/components/index.d.ts.map +1 -0
  75. package/dist/components/chatbotV2/components/interactionPrompt/InteractionPrompt.d.ts +8 -0
  76. package/dist/components/chatbotV2/components/interactionPrompt/InteractionPrompt.d.ts.map +1 -0
  77. package/dist/components/chatbotV2/components/interactionPrompt/index.d.ts +2 -0
  78. package/dist/components/chatbotV2/components/interactionPrompt/index.d.ts.map +1 -0
  79. package/dist/components/chatbotV2/components/loadingIndicator/LoadingIndicator.d.ts +3 -0
  80. package/dist/components/chatbotV2/components/loadingIndicator/LoadingIndicator.d.ts.map +1 -0
  81. package/dist/components/chatbotV2/components/loadingIndicator/index.d.ts +2 -0
  82. package/dist/components/chatbotV2/components/loadingIndicator/index.d.ts.map +1 -0
  83. package/dist/components/chatbotV2/components/messageItem/MessageItem.d.ts +12 -0
  84. package/dist/components/chatbotV2/components/messageItem/MessageItem.d.ts.map +1 -0
  85. package/dist/components/chatbotV2/components/messageItem/index.d.ts +2 -0
  86. package/dist/components/chatbotV2/components/messageItem/index.d.ts.map +1 -0
  87. package/dist/components/chatbotV2/components/messageList/MessageList.d.ts +11 -0
  88. package/dist/components/chatbotV2/components/messageList/MessageList.d.ts.map +1 -0
  89. package/dist/components/chatbotV2/components/messageList/index.d.ts +2 -0
  90. package/dist/components/chatbotV2/components/messageList/index.d.ts.map +1 -0
  91. package/dist/components/chatbotV2/components/questionForm/QuestionForm.d.ts +15 -0
  92. package/dist/components/chatbotV2/components/questionForm/QuestionForm.d.ts.map +1 -0
  93. package/dist/components/chatbotV2/components/questionForm/index.d.ts +2 -0
  94. package/dist/components/chatbotV2/components/questionForm/index.d.ts.map +1 -0
  95. package/dist/components/chatbotV2/components/refetchSession/RefetchSession.d.ts +8 -0
  96. package/dist/components/chatbotV2/components/refetchSession/RefetchSession.d.ts.map +1 -0
  97. package/dist/components/chatbotV2/components/regenerateButton/RegenerateButton.d.ts +7 -0
  98. package/dist/components/chatbotV2/components/regenerateButton/RegenerateButton.d.ts.map +1 -0
  99. package/dist/components/chatbotV2/components/regenerateButton/index.d.ts +2 -0
  100. package/dist/components/chatbotV2/components/regenerateButton/index.d.ts.map +1 -0
  101. package/dist/components/chatbotV2/components/selectedContexts/SelectedContexts.d.ts +8 -0
  102. package/dist/components/chatbotV2/components/selectedContexts/SelectedContexts.d.ts.map +1 -0
  103. package/dist/components/chatbotV2/components/statusUpdates/StatusUpdates.d.ts +10 -0
  104. package/dist/components/chatbotV2/components/statusUpdates/StatusUpdates.d.ts.map +1 -0
  105. package/dist/components/chatbotV2/components/statusUpdates/index.d.ts +2 -0
  106. package/dist/components/chatbotV2/components/statusUpdates/index.d.ts.map +1 -0
  107. package/dist/components/chatbotV2/components/todoProgress/TodoProgress.d.ts +8 -0
  108. package/dist/components/chatbotV2/components/todoProgress/TodoProgress.d.ts.map +1 -0
  109. package/dist/components/chatbotV2/components/todoProgress/index.d.ts +2 -0
  110. package/dist/components/chatbotV2/components/todoProgress/index.d.ts.map +1 -0
  111. package/dist/components/chatbotV2/hooks/transports.d.ts +126 -0
  112. package/dist/components/chatbotV2/hooks/transports.d.ts.map +1 -0
  113. package/dist/components/chatbotV2/hooks/useAgentChat.d.ts +41 -0
  114. package/dist/components/chatbotV2/hooks/useAgentChat.d.ts.map +1 -0
  115. package/dist/components/chatbotV2/hooks/useEntityDetection.d.ts +4 -0
  116. package/dist/components/chatbotV2/hooks/useEntityDetection.d.ts.map +1 -0
  117. package/dist/components/chatbotV2/hooks/useFeedback.d.ts +5 -0
  118. package/dist/components/chatbotV2/hooks/useFeedback.d.ts.map +1 -0
  119. package/dist/components/chatbotV2/index.d.ts +22 -0
  120. package/dist/components/chatbotV2/index.d.ts.map +1 -0
  121. package/dist/components/chatbotV2/store/chatSlice.d.ts +65 -0
  122. package/dist/components/chatbotV2/store/chatSlice.d.ts.map +1 -0
  123. package/dist/components/chatbotV2/store/index.d.ts +10 -0
  124. package/dist/components/chatbotV2/store/index.d.ts.map +1 -0
  125. package/dist/{types-ByRPUpXR.d.ts → components/chatbotV2/types.d.ts} +77 -195
  126. package/dist/components/chatbotV2/types.d.ts.map +1 -0
  127. package/dist/components/chatbotV2/utils/entityDetection.d.ts +12 -0
  128. package/dist/components/chatbotV2/utils/entityDetection.d.ts.map +1 -0
  129. package/dist/components/chatbotV2/utils/streamProcessor.d.ts +98 -0
  130. package/dist/components/chatbotV2/utils/streamProcessor.d.ts.map +1 -0
  131. package/dist/components/chatbotV2/utils.d.ts +3 -0
  132. package/dist/components/chatbotV2/utils.d.ts.map +1 -0
  133. package/dist/components/dbtDocs/api/index.d.ts +16 -0
  134. package/dist/components/dbtDocs/api/index.d.ts.map +1 -0
  135. package/dist/components/dbtDocs/collaboration/ConversationHighlighter.d.ts +6 -0
  136. package/dist/components/dbtDocs/collaboration/ConversationHighlighter.d.ts.map +1 -0
  137. package/dist/components/dbtDocs/collaboration/ConversationInputForm.d.ts +13 -0
  138. package/dist/components/dbtDocs/collaboration/ConversationInputForm.d.ts.map +1 -0
  139. package/dist/components/dbtDocs/collaboration/ConversationsHighlighter.d.ts +3 -0
  140. package/dist/components/dbtDocs/collaboration/ConversationsHighlighter.d.ts.map +1 -0
  141. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationComponents.d.ts +3 -0
  142. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationComponents.d.ts.map +1 -0
  143. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationProvider.d.ts +22 -0
  144. package/dist/components/dbtDocs/collaboration/DbtDocsCollaborationProvider.d.ts.map +1 -0
  145. package/dist/components/dbtDocs/collaboration/DbtDocsConversationsRightPanel.d.ts +3 -0
  146. package/dist/components/dbtDocs/collaboration/DbtDocsConversationsRightPanel.d.ts.map +1 -0
  147. package/dist/components/dbtDocs/collaboration/DbtDocsReducer.d.ts +1931 -0
  148. package/dist/components/dbtDocs/collaboration/DbtDocsReducer.d.ts.map +1 -0
  149. package/dist/components/dbtDocs/collaboration/HighlightAnchor.d.ts +12 -0
  150. package/dist/components/dbtDocs/collaboration/HighlightAnchor.d.ts.map +1 -0
  151. package/dist/components/dbtDocs/collaboration/HighlightBlocker.d.ts +7 -0
  152. package/dist/components/dbtDocs/collaboration/HighlightBlocker.d.ts.map +1 -0
  153. package/dist/components/dbtDocs/collaboration/HotspotButton.d.ts +7 -0
  154. package/dist/components/dbtDocs/collaboration/HotspotButton.d.ts.map +1 -0
  155. package/dist/components/dbtDocs/collaboration/NewConversationForm.d.ts +3 -0
  156. package/dist/components/dbtDocs/collaboration/NewConversationForm.d.ts.map +1 -0
  157. package/dist/components/dbtDocs/collaboration/ShowConversationsButton.d.ts +3 -0
  158. package/dist/components/dbtDocs/collaboration/ShowConversationsButton.d.ts.map +1 -0
  159. package/dist/components/dbtDocs/collaboration/constants.d.ts +20 -0
  160. package/dist/components/dbtDocs/collaboration/constants.d.ts.map +1 -0
  161. package/dist/components/dbtDocs/collaboration/conversations/Conversation.d.ts +9 -0
  162. package/dist/components/dbtDocs/collaboration/conversations/Conversation.d.ts.map +1 -0
  163. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroup.d.ts +10 -0
  164. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroup.d.ts.map +1 -0
  165. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroups.d.ts +3 -0
  166. package/dist/components/dbtDocs/collaboration/conversations/ConversationGroups.d.ts.map +1 -0
  167. package/dist/components/dbtDocs/collaboration/conversations/ConversationHeader.d.ts +13 -0
  168. package/dist/components/dbtDocs/collaboration/conversations/ConversationHeader.d.ts.map +1 -0
  169. package/dist/components/dbtDocs/collaboration/conversations/ConversationHighlightText.d.ts +6 -0
  170. package/dist/components/dbtDocs/collaboration/conversations/ConversationHighlightText.d.ts.map +1 -0
  171. package/dist/components/dbtDocs/collaboration/conversations/ConversationReplyForm.d.ts +9 -0
  172. package/dist/components/dbtDocs/collaboration/conversations/ConversationReplyForm.d.ts.map +1 -0
  173. package/dist/components/dbtDocs/collaboration/conversations/ResolveButton.d.ts +8 -0
  174. package/dist/components/dbtDocs/collaboration/conversations/ResolveButton.d.ts.map +1 -0
  175. package/dist/components/dbtDocs/collaboration/conversations/context/ConversationsProvider.d.ts +18 -0
  176. package/dist/components/dbtDocs/collaboration/conversations/context/ConversationsProvider.d.ts.map +1 -0
  177. package/dist/components/dbtDocs/collaboration/conversations/context/types.d.ts +44 -0
  178. package/dist/components/dbtDocs/collaboration/conversations/context/types.d.ts.map +1 -0
  179. package/dist/components/dbtDocs/collaboration/conversations/useConversations.d.ts +5 -0
  180. package/dist/components/dbtDocs/collaboration/conversations/useConversations.d.ts.map +1 -0
  181. package/dist/components/dbtDocs/collaboration/highlightUtils.d.ts +28 -0
  182. package/dist/components/dbtDocs/collaboration/highlightUtils.d.ts.map +1 -0
  183. package/dist/components/dbtDocs/collaboration/mentions/MentionsInput.d.ts +11 -0
  184. package/dist/components/dbtDocs/collaboration/mentions/MentionsInput.d.ts.map +1 -0
  185. package/dist/components/dbtDocs/collaboration/mentions/index.d.ts +32 -0
  186. package/dist/components/dbtDocs/collaboration/mentions/index.d.ts.map +1 -0
  187. package/dist/components/dbtDocs/collaboration/newConversationUtils.d.ts +15 -0
  188. package/dist/components/dbtDocs/collaboration/newConversationUtils.d.ts.map +1 -0
  189. package/dist/components/dbtDocs/collaboration/selectionEndEvent.d.ts +17 -0
  190. package/dist/components/dbtDocs/collaboration/selectionEndEvent.d.ts.map +1 -0
  191. package/dist/components/dbtDocs/collaboration/types.d.ts +15 -0
  192. package/dist/components/dbtDocs/collaboration/types.d.ts.map +1 -0
  193. package/dist/components/dbtDocs/collaboration/useConversationUsers.d.ts +5 -0
  194. package/dist/components/dbtDocs/collaboration/useConversationUsers.d.ts.map +1 -0
  195. package/dist/components/dbtDocs/collaboration/useDbtDocsCollaboration.d.ts +7 -0
  196. package/dist/components/dbtDocs/collaboration/useDbtDocsCollaboration.d.ts.map +1 -0
  197. package/dist/components/dbtDocs/collaboration/useHighlight.d.ts +12 -0
  198. package/dist/components/dbtDocs/collaboration/useHighlight.d.ts.map +1 -0
  199. package/dist/components/dbtDocs/details/AddCommentButton.d.ts +3 -0
  200. package/dist/components/dbtDocs/details/AddCommentButton.d.ts.map +1 -0
  201. package/dist/components/dbtDocs/details/AddCommentOnCodeButton.d.ts +3 -0
  202. package/dist/components/dbtDocs/details/AddCommentOnCodeButton.d.ts.map +1 -0
  203. package/dist/components/dbtDocs/details/AddCommentOnModelDescriptionButton.d.ts +3 -0
  204. package/dist/components/dbtDocs/details/AddCommentOnModelDescriptionButton.d.ts.map +1 -0
  205. package/dist/components/dbtDocs/details/DbtDocs.d.ts +10 -0
  206. package/dist/components/dbtDocs/details/DbtDocs.d.ts.map +1 -0
  207. package/dist/components/dbtDocs/details/DbtDocsDetails.d.ts +3 -0
  208. package/dist/components/dbtDocs/details/DbtDocsDetails.d.ts.map +1 -0
  209. package/dist/components/dbtDocs/details/DbtDocsRenderer.d.ts +8 -0
  210. package/dist/components/dbtDocs/details/DbtDocsRenderer.d.ts.map +1 -0
  211. package/dist/components/dbtDocs/details/dbtDocsUtils.d.ts +5 -0
  212. package/dist/components/dbtDocs/details/dbtDocsUtils.d.ts.map +1 -0
  213. package/dist/components/dbtDocs/index.d.ts +8 -0
  214. package/dist/components/dbtDocs/index.d.ts.map +1 -0
  215. package/dist/components/dbtDocs/resources/dbtDocsAngularApp.d.ts +3 -0
  216. package/dist/components/dbtDocs/resources/dbtDocsAngularApp.d.ts.map +1 -0
  217. package/dist/components/lineage/api/index.d.ts +65 -0
  218. package/dist/components/lineage/api/index.d.ts.map +1 -0
  219. package/dist/components/lineage/assets/icons/index.d.ts +61 -0
  220. package/dist/components/lineage/assets/icons/index.d.ts.map +1 -0
  221. package/dist/components/lineage/cllUtils.d.ts +17 -0
  222. package/dist/components/lineage/cllUtils.d.ts.map +1 -0
  223. package/dist/components/lineage/components/AutoExpansionPopover.d.ts +3 -0
  224. package/dist/components/lineage/components/AutoExpansionPopover.d.ts.map +1 -0
  225. package/dist/components/lineage/components/BetterPopover.d.ts +14 -0
  226. package/dist/components/lineage/components/BetterPopover.d.ts.map +1 -0
  227. package/dist/components/lineage/components/Chip.d.ts +6 -0
  228. package/dist/components/lineage/components/Chip.d.ts.map +1 -0
  229. package/dist/components/lineage/components/Column.d.ts +52 -0
  230. package/dist/components/lineage/components/Column.d.ts.map +1 -0
  231. package/dist/components/lineage/components/ColumnRow.d.ts +8 -0
  232. package/dist/components/lineage/components/ColumnRow.d.ts.map +1 -0
  233. package/dist/components/lineage/components/CustomNodes.d.ts +16 -0
  234. package/dist/components/lineage/components/CustomNodes.d.ts.map +1 -0
  235. package/dist/components/lineage/components/DashboardDetails.d.ts +12 -0
  236. package/dist/components/lineage/components/DashboardDetails.d.ts.map +1 -0
  237. package/dist/components/lineage/components/DynamicLineage.d.ts +9 -0
  238. package/dist/components/lineage/components/DynamicLineage.d.ts.map +1 -0
  239. package/dist/components/lineage/components/ExpandWithConfidenceCard.d.ts +3 -0
  240. package/dist/components/lineage/components/ExpandWithConfidenceCard.d.ts.map +1 -0
  241. package/dist/components/lineage/components/ExportButton.d.ts +6 -0
  242. package/dist/components/lineage/components/ExportButton.d.ts.map +1 -0
  243. package/dist/components/lineage/components/ExportFinalLineageModal.d.ts +5 -0
  244. package/dist/components/lineage/components/ExportFinalLineageModal.d.ts.map +1 -0
  245. package/dist/components/lineage/components/ExposureDetails.d.ts +6 -0
  246. package/dist/components/lineage/components/ExposureDetails.d.ts.map +1 -0
  247. package/dist/components/lineage/components/Feedback.d.ts +5 -0
  248. package/dist/components/lineage/components/Feedback.d.ts.map +1 -0
  249. package/dist/components/lineage/components/Form.d.ts +5 -0
  250. package/dist/components/lineage/components/Form.d.ts.map +1 -0
  251. package/dist/components/lineage/components/FunctionDetails.d.ts +3 -0
  252. package/dist/components/lineage/components/FunctionDetails.d.ts.map +1 -0
  253. package/dist/components/lineage/components/LineageLegend.d.ts +3 -0
  254. package/dist/components/lineage/components/LineageLegend.d.ts.map +1 -0
  255. package/dist/components/lineage/components/LineageModals.d.ts +3 -0
  256. package/dist/components/lineage/components/LineageModals.d.ts.map +1 -0
  257. package/dist/components/lineage/components/Loader/index.d.ts +7 -0
  258. package/dist/components/lineage/components/Loader/index.d.ts.map +1 -0
  259. package/dist/components/lineage/components/MoreTables.d.ts +11 -0
  260. package/dist/components/lineage/components/MoreTables.d.ts.map +1 -0
  261. package/dist/components/lineage/components/Purpose.d.ts +6 -0
  262. package/dist/components/lineage/components/Purpose.d.ts.map +1 -0
  263. package/dist/components/lineage/components/ResetButton.d.ts +6 -0
  264. package/dist/components/lineage/components/ResetButton.d.ts.map +1 -0
  265. package/dist/components/lineage/components/Settings.d.ts +6 -0
  266. package/dist/components/lineage/components/Settings.d.ts.map +1 -0
  267. package/dist/components/lineage/components/SettingsButton.d.ts +3 -0
  268. package/dist/components/lineage/components/SettingsButton.d.ts.map +1 -0
  269. package/dist/components/lineage/components/SidebarErrorBoundary.d.ts +13 -0
  270. package/dist/components/lineage/components/SidebarErrorBoundary.d.ts.map +1 -0
  271. package/dist/components/lineage/components/SnowflakeStageDetails.d.ts +3 -0
  272. package/dist/components/lineage/components/SnowflakeStageDetails.d.ts.map +1 -0
  273. package/dist/components/lineage/components/SqlLineage.d.ts +12 -0
  274. package/dist/components/lineage/components/SqlLineage.d.ts.map +1 -0
  275. package/dist/components/lineage/components/StaticLineage.d.ts +17 -0
  276. package/dist/components/lineage/components/StaticLineage.d.ts.map +1 -0
  277. package/dist/components/lineage/components/TableDetails.d.ts +53 -0
  278. package/dist/components/lineage/components/TableDetails.d.ts.map +1 -0
  279. package/dist/components/lineage/components/Tags/index.d.ts +5 -0
  280. package/dist/components/lineage/components/Tags/index.d.ts.map +1 -0
  281. package/dist/components/lineage/components/ViewsTypeBadge.d.ts +5 -0
  282. package/dist/components/lineage/components/ViewsTypeBadge.d.ts.map +1 -0
  283. package/dist/components/lineage/components/sidebarModal/SidebarModal.d.ts +9 -0
  284. package/dist/components/lineage/components/sidebarModal/SidebarModal.d.ts.map +1 -0
  285. package/dist/components/lineage/constants.d.ts +12 -0
  286. package/dist/components/lineage/constants.d.ts.map +1 -0
  287. package/dist/components/lineage/context/LineageProvider.d.ts +35 -0
  288. package/dist/components/lineage/context/LineageProvider.d.ts.map +1 -0
  289. package/dist/components/lineage/context/LineageSlice.d.ts +4673 -0
  290. package/dist/components/lineage/context/LineageSlice.d.ts.map +1 -0
  291. package/dist/components/lineage/context/types.d.ts +57 -0
  292. package/dist/components/lineage/context/types.d.ts.map +1 -0
  293. package/dist/components/lineage/graph.d.ts +43 -0
  294. package/dist/components/lineage/graph.d.ts.map +1 -0
  295. package/dist/components/lineage/index.d.ts +8 -0
  296. package/dist/components/lineage/index.d.ts.map +1 -0
  297. package/dist/{lineage/index.d.ts → components/lineage/types.d.ts} +59 -92
  298. package/dist/components/lineage/types.d.ts.map +1 -0
  299. package/dist/components/lineage/utils.d.ts +100 -0
  300. package/dist/components/lineage/utils.d.ts.map +1 -0
  301. package/dist/components/shared/index.d.ts +2 -0
  302. package/dist/components/shared/index.d.ts.map +1 -0
  303. package/dist/components/shared/types.d.ts +18 -0
  304. package/dist/components/shared/types.d.ts.map +1 -0
  305. package/dist/components/teammate/AddLearningForm.d.ts +13 -0
  306. package/dist/components/teammate/AddLearningForm.d.ts.map +1 -0
  307. package/dist/components/teammate/CoachForm.d.ts +10 -0
  308. package/dist/components/teammate/CoachForm.d.ts.map +1 -0
  309. package/dist/components/teammate/CoachFormButton.d.ts +3 -0
  310. package/dist/components/teammate/CoachFormButton.d.ts.map +1 -0
  311. package/dist/components/teammate/CoachFormInput.d.ts +8 -0
  312. package/dist/components/teammate/CoachFormInput.d.ts.map +1 -0
  313. package/dist/components/teammate/LearningRow.d.ts +10 -0
  314. package/dist/components/teammate/LearningRow.d.ts.map +1 -0
  315. package/dist/components/teammate/LearningsList.d.ts +11 -0
  316. package/dist/components/teammate/LearningsList.d.ts.map +1 -0
  317. package/dist/components/teammate/TeamMateProvider.d.ts +8 -0
  318. package/dist/components/teammate/TeamMateProvider.d.ts.map +1 -0
  319. package/dist/components/teammate/TeamMates.d.ts +10 -0
  320. package/dist/components/teammate/TeamMates.d.ts.map +1 -0
  321. package/dist/components/teammate/TeamMatesCard.d.ts +10 -0
  322. package/dist/components/teammate/TeamMatesCard.d.ts.map +1 -0
  323. package/dist/components/teammate/alertManager/AlertManagerDisplay.d.ts +4 -0
  324. package/dist/components/teammate/alertManager/AlertManagerDisplay.d.ts.map +1 -0
  325. package/dist/components/teammate/assets/index.d.ts +8 -0
  326. package/dist/components/teammate/assets/index.d.ts.map +1 -0
  327. package/dist/components/teammate/index.d.ts +11 -0
  328. package/dist/components/teammate/index.d.ts.map +1 -0
  329. package/dist/components/teammate/projectGovernor/ChecksInput.d.ts +7 -0
  330. package/dist/components/teammate/projectGovernor/ChecksInput.d.ts.map +1 -0
  331. package/dist/components/teammate/projectGovernor/ProjectGovernanceCheck.d.ts +8 -0
  332. package/dist/components/teammate/projectGovernor/ProjectGovernanceCheck.d.ts.map +1 -0
  333. package/dist/components/teammate/projectGovernor/ProjectGovernorDisplay.d.ts +3 -0
  334. package/dist/components/teammate/projectGovernor/ProjectGovernorDisplay.d.ts.map +1 -0
  335. package/dist/components/teammate/projectGovernor/ProjectGovernorForm.d.ts +7 -0
  336. package/dist/components/teammate/projectGovernor/ProjectGovernorForm.d.ts.map +1 -0
  337. package/dist/components/teammate/projectGovernor/types.d.ts +48 -0
  338. package/dist/components/teammate/projectGovernor/types.d.ts.map +1 -0
  339. package/dist/components/teammate/teamMateSlice.d.ts +15 -0
  340. package/dist/components/teammate/teamMateSlice.d.ts.map +1 -0
  341. package/dist/components/teammate/teamMatesConfig.d.ts +3 -0
  342. package/dist/components/teammate/teamMatesConfig.d.ts.map +1 -0
  343. package/dist/components/teammate/teradata/HelloMessage.d.ts +3 -0
  344. package/dist/components/teammate/teradata/HelloMessage.d.ts.map +1 -0
  345. package/dist/components/teammate/teradata/MigratorDisplay.d.ts +4 -0
  346. package/dist/components/teammate/teradata/MigratorDisplay.d.ts.map +1 -0
  347. package/dist/components/teammate/types.d.ts +113 -0
  348. package/dist/components/teammate/types.d.ts.map +1 -0
  349. package/dist/components/teammate/useTeamMateContext.d.ts +3 -0
  350. package/dist/components/teammate/useTeamMateContext.d.ts.map +1 -0
  351. package/dist/components/user/ProfileImageByUser.d.ts +7 -0
  352. package/dist/components/user/ProfileImageByUser.d.ts.map +1 -0
  353. package/dist/components/user/index.d.ts +3 -0
  354. package/dist/components/user/index.d.ts.map +1 -0
  355. package/dist/components/user/types.d.ts +7 -0
  356. package/dist/components/user/types.d.ts.map +1 -0
  357. package/dist/dbtDocs.css +297 -0
  358. package/dist/dbtDocs.css.map +1 -0
  359. package/dist/dbtDocs.js +1 -0
  360. package/dist/index.d.ts +14 -285
  361. package/dist/index.d.ts.map +1 -0
  362. package/dist/index.js +1 -40
  363. package/dist/lineage.css +1221 -0
  364. package/dist/lineage.css.map +1 -0
  365. package/dist/lineage.js +7267 -0
  366. package/dist/lineage.js.map +1 -0
  367. package/dist/rslib-runtime.js +20 -0
  368. package/dist/rslib-runtime.js.map +1 -0
  369. package/dist/shared/AutosizeTextarea.d.ts +19 -0
  370. package/dist/shared/AutosizeTextarea.d.ts.map +1 -0
  371. package/dist/shared/Collapse.d.ts +7 -0
  372. package/dist/shared/Collapse.d.ts.map +1 -0
  373. package/dist/shared/Table.d.ts +4 -0
  374. package/dist/shared/Table.d.ts.map +1 -0
  375. package/dist/shared/index.d.ts +3 -0
  376. package/dist/shared/index.d.ts.map +1 -0
  377. package/dist/shared/utils.d.ts +3 -0
  378. package/dist/shared/utils.d.ts.map +1 -0
  379. package/dist/static/image/postgres.png +0 -0
  380. package/dist/static/image/s3.png +0 -0
  381. package/dist/static/image/snowflake.png +0 -0
  382. package/dist/static/svg/botIcon.svg +15 -0
  383. package/dist/static/svg/brackets.svg +5 -0
  384. package/dist/static/svg/case-sensitive.svg +5 -0
  385. package/dist/static/svg/docgen.svg +23 -0
  386. package/dist/static/svg/half-circle.svg +5 -0
  387. package/dist/static/svg/opportunities.svg +25 -0
  388. package/dist/static/svg/split-horizontal.svg +5 -0
  389. package/dist/static/svg/sqlExpert.svg +24 -0
  390. package/dist/static/svg/summary.svg +25 -0
  391. package/dist/styles.css +1638 -0
  392. package/dist/styles.css.map +1 -0
  393. package/dist/teammate.css +124 -0
  394. package/dist/teammate.css.map +1 -0
  395. package/dist/teammate.js +5655 -0
  396. package/dist/teammate.js.map +1 -0
  397. package/dist/user.css +14 -0
  398. package/dist/user.css.map +1 -0
  399. package/dist/user.js +13 -0
  400. package/dist/user.js.map +1 -0
  401. package/package.json +116 -34
  402. package/dist/Button-42Dj_nRE.d.ts +0 -28
  403. package/dist/CoachForm.css +0 -1
  404. package/dist/CoachForm.js +0 -44445
  405. package/dist/DbtDocsRenderer.js +0 -45647
  406. package/dist/IconEye.js +0 -11
  407. package/dist/Stack.js +0 -7170
  408. package/dist/Switch.js +0 -128
  409. package/dist/ToggleGroup.js +0 -8543
  410. package/dist/_basePickBy.js +0 -151
  411. package/dist/_baseUniq.js +0 -615
  412. package/dist/arc.js +0 -83
  413. package/dist/architecture-U656AL7Q.js +0 -5
  414. package/dist/architectureDiagram-VXUJARFQ.js +0 -4666
  415. package/dist/assets/icons/index.js +0 -56
  416. package/dist/blockDiagram-VD42YOAC.js +0 -2266
  417. package/dist/c4Diagram-YG6GDRKO.js +0 -1582
  418. package/dist/channel.js +0 -5
  419. package/dist/chatbotV2/index.d.ts +0 -359
  420. package/dist/chatbotV2/index.js +0 -58
  421. package/dist/chunk-4BX2VUAB.js +0 -9
  422. package/dist/chunk-55IACEB6.js +0 -9
  423. package/dist/chunk-B4BG7PRW.js +0 -1377
  424. package/dist/chunk-DI55MBZ5.js +0 -1382
  425. package/dist/chunk-FMBD7UC4.js +0 -19
  426. package/dist/chunk-QN33PNHL.js +0 -20
  427. package/dist/chunk-QZHKN3VN.js +0 -15
  428. package/dist/chunk-TZMSLE5B.js +0 -64
  429. package/dist/classDiagram-2ON5EDUG.js +0 -17
  430. package/dist/classDiagram-v2-WZHVMYZB.js +0 -17
  431. package/dist/clone.js +0 -8
  432. package/dist/cose-bilkent-S5V4N54A.js +0 -2606
  433. package/dist/cytoscape.esm.js +0 -18731
  434. package/dist/dagre-6UL2VRFP.js +0 -447
  435. package/dist/dayjs.min.js +0 -302
  436. package/dist/defaultLocale.js +0 -171
  437. package/dist/diagram-PSM6KHXK.js +0 -535
  438. package/dist/diagram-QEK2KX5R.js +0 -221
  439. package/dist/diagram-S2PKOQOG.js +0 -143
  440. package/dist/erDiagram-Q2GNP2WA.js +0 -843
  441. package/dist/flowDiagram-NV44I4VS.js +0 -1628
  442. package/dist/ganttDiagram-LVOFAZNH.js +0 -2500
  443. package/dist/gitGraph-F6HP7TQM.js +0 -5
  444. package/dist/gitGraphDiagram-NY62KEGX.js +0 -713
  445. package/dist/graph.js +0 -247
  446. package/dist/index.css +0 -1
  447. package/dist/index2.js +0 -689
  448. package/dist/info-NVLQJR56.js +0 -5
  449. package/dist/infoDiagram-F6ZHWCRC.js +0 -24
  450. package/dist/init.js +0 -16
  451. package/dist/journeyDiagram-XKPGCS4Q.js +0 -837
  452. package/dist/kanban-definition-3W4ZIXB7.js +0 -720
  453. package/dist/katex.js +0 -11691
  454. package/dist/layout.js +0 -1324
  455. package/dist/lineage/index.js +0 -7328
  456. package/dist/linear.js +0 -259
  457. package/dist/main.css +0 -1
  458. package/dist/main.js +0 -4566
  459. package/dist/mermaid-parser.core.js +0 -12921
  460. package/dist/mindmap-definition-VGOIOE7T.js +0 -786
  461. package/dist/ordinal.js +0 -61
  462. package/dist/packet-BFZMPI3H.js +0 -5
  463. package/dist/pie-7BOR55EZ.js +0 -5
  464. package/dist/pieDiagram-ADFJNKIX.js +0 -163
  465. package/dist/quadrantDiagram-AYHSOK5B.js +0 -1025
  466. package/dist/radar-NHE76QYJ.js +0 -5
  467. package/dist/redux-toolkit.css +0 -1
  468. package/dist/redux-toolkit.modern.js +0 -12525
  469. package/dist/requirementDiagram-UZGBJVZJ.js +0 -852
  470. package/dist/sankeyDiagram-TZEHDZUN.js +0 -811
  471. package/dist/sequenceDiagram-WL72ISMW.js +0 -2523
  472. package/dist/shadcn/index.d.ts +0 -761
  473. package/dist/shadcn/index.js +0 -8680
  474. package/dist/stateDiagram-FKZM4ZOC.js +0 -264
  475. package/dist/stateDiagram-v2-4FDKWEC3.js +0 -17
  476. package/dist/storybook/Accordion.stories.tsx +0 -52
  477. package/dist/storybook/Alert.stories.tsx +0 -101
  478. package/dist/storybook/AlertDialog.stories.tsx +0 -161
  479. package/dist/storybook/AutosizeTextarea.stories.tsx +0 -52
  480. package/dist/storybook/Avatar.stories.tsx +0 -58
  481. package/dist/storybook/Badge.stories.tsx +0 -43
  482. package/dist/storybook/Button.stories.tsx +0 -67
  483. package/dist/storybook/Calendar.stories.tsx +0 -103
  484. package/dist/storybook/Card.stories.tsx +0 -69
  485. package/dist/storybook/Carousel.stories.tsx +0 -274
  486. package/dist/storybook/Checkbox.stories.tsx +0 -65
  487. package/dist/storybook/Combobox.stories.tsx +0 -1629
  488. package/dist/storybook/Command.stories.tsx +0 -35
  489. package/dist/storybook/DateRange.stories.tsx +0 -540
  490. package/dist/storybook/DebouncedInput.stories.tsx +0 -179
  491. package/dist/storybook/DropdownMenu.stories.tsx +0 -36
  492. package/dist/storybook/Form.stories.tsx +0 -114
  493. package/dist/storybook/HoverCard.stories.tsx +0 -99
  494. package/dist/storybook/Input.stories.tsx +0 -156
  495. package/dist/storybook/InputGroup.stories.tsx +0 -352
  496. package/dist/storybook/Label.stories.tsx +0 -42
  497. package/dist/storybook/Menubar.stories.tsx +0 -159
  498. package/dist/storybook/Pagination.stories.tsx +0 -152
  499. package/dist/storybook/Popover.stories.tsx +0 -23
  500. package/dist/storybook/Progress.stories.tsx +0 -89
  501. package/dist/storybook/RadioGroup.stories.tsx +0 -58
  502. package/dist/storybook/Resizable.stories.tsx +0 -119
  503. package/dist/storybook/ScrollArea.stories.tsx +0 -101
  504. package/dist/storybook/Select.stories.tsx +0 -145
  505. package/dist/storybook/Sheet.stories.tsx +0 -69
  506. package/dist/storybook/Sidebar.stories.tsx +0 -97
  507. package/dist/storybook/Slider.stories.tsx +0 -79
  508. package/dist/storybook/Switch.stories.tsx +0 -90
  509. package/dist/storybook/Tabs.stories.tsx +0 -147
  510. package/dist/storybook/TagsInput.stories.tsx +0 -261
  511. package/dist/storybook/Textarea.stories.tsx +0 -50
  512. package/dist/storybook/Toast.stories.tsx +0 -107
  513. package/dist/storybook/Toggle.stories.tsx +0 -106
  514. package/dist/storybook/ToggleGroup.stories.tsx +0 -178
  515. package/dist/storybook/Tooltip.stories.tsx +0 -25
  516. package/dist/storybook/Typography.stories.tsx +0 -231
  517. package/dist/storybook/drag-and-drop-file-upload.stories.tsx +0 -99
  518. package/dist/timeline-definition-IT6M3QCI.js +0 -802
  519. package/dist/treemap-KMMF4GRG.js +0 -5
  520. package/dist/xychartDiagram-PRI3JC2R.js +0 -1341
  521. package/readme.md +0 -11
@@ -1,786 +0,0 @@
1
- import { g as le } from "./chunk-55IACEB6.js";
2
- import { s as he } from "./chunk-QN33PNHL.js";
3
- import { a1 as l, ad as C, a7 as X, au as j, ac as F, bx as de, aq as ge, ar as ue, aP as pe, aQ as fe, aR as ye } from "./CoachForm.js";
4
- const E = [];
5
- for (let t = 0; t < 256; ++t)
6
- E.push((t + 256).toString(16).slice(1));
7
- function me(t, e = 0) {
8
- return (E[t[e + 0]] + E[t[e + 1]] + E[t[e + 2]] + E[t[e + 3]] + "-" + E[t[e + 4]] + E[t[e + 5]] + "-" + E[t[e + 6]] + E[t[e + 7]] + "-" + E[t[e + 8]] + E[t[e + 9]] + "-" + E[t[e + 10]] + E[t[e + 11]] + E[t[e + 12]] + E[t[e + 13]] + E[t[e + 14]] + E[t[e + 15]]).toLowerCase();
9
- }
10
- let Y;
11
- const Ee = new Uint8Array(16);
12
- function _e() {
13
- if (!Y) {
14
- if (typeof crypto > "u" || !crypto.getRandomValues)
15
- throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
16
- Y = crypto.getRandomValues.bind(crypto);
17
- }
18
- return Y(Ee);
19
- }
20
- const be = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ne = { randomUUID: be };
21
- function Se(t, e, n) {
22
- var u;
23
- if (ne.randomUUID && !e && !t)
24
- return ne.randomUUID();
25
- t = t || {};
26
- const c = t.random ?? ((u = t.rng) == null ? void 0 : u.call(t)) ?? _e();
27
- if (c.length < 16)
28
- throw new Error("Random bytes length must be >= 16");
29
- return c[6] = c[6] & 15 | 64, c[8] = c[8] & 63 | 128, me(c);
30
- }
31
- var q = function() {
32
- var t = /* @__PURE__ */ l(function(v, s, i, a) {
33
- for (i = i || {}, a = v.length; a--; i[v[a]] = s) ;
34
- return i;
35
- }, "o"), e = [1, 4], n = [1, 13], c = [1, 12], u = [1, 15], h = [1, 16], p = [1, 20], y = [1, 19], _ = [6, 7, 8], b = [1, 26], m = [1, 24], w = [1, 25], D = [6, 7, 11], Q = [1, 6, 13, 15, 16, 19, 22], J = [1, 33], K = [1, 34], A = [1, 6, 7, 11, 13, 15, 16, 19, 22], G = {
36
- trace: /* @__PURE__ */ l(function() {
37
- }, "trace"),
38
- yy: {},
39
- symbols_: { error: 2, start: 3, mindMap: 4, spaceLines: 5, SPACELINE: 6, NL: 7, MINDMAP: 8, document: 9, stop: 10, EOF: 11, statement: 12, SPACELIST: 13, node: 14, ICON: 15, CLASS: 16, nodeWithId: 17, nodeWithoutId: 18, NODE_DSTART: 19, NODE_DESCR: 20, NODE_DEND: 21, NODE_ID: 22, $accept: 0, $end: 1 },
40
- terminals_: { 2: "error", 6: "SPACELINE", 7: "NL", 8: "MINDMAP", 11: "EOF", 13: "SPACELIST", 15: "ICON", 16: "CLASS", 19: "NODE_DSTART", 20: "NODE_DESCR", 21: "NODE_DEND", 22: "NODE_ID" },
41
- productions_: [0, [3, 1], [3, 2], [5, 1], [5, 2], [5, 2], [4, 2], [4, 3], [10, 1], [10, 1], [10, 1], [10, 2], [10, 2], [9, 3], [9, 2], [12, 2], [12, 2], [12, 2], [12, 1], [12, 1], [12, 1], [12, 1], [12, 1], [14, 1], [14, 1], [18, 3], [17, 1], [17, 4]],
42
- performAction: /* @__PURE__ */ l(function(s, i, a, o, g, r, U) {
43
- var d = r.length - 1;
44
- switch (g) {
45
- case 6:
46
- case 7:
47
- return o;
48
- case 8:
49
- o.getLogger().trace("Stop NL ");
50
- break;
51
- case 9:
52
- o.getLogger().trace("Stop EOF ");
53
- break;
54
- case 11:
55
- o.getLogger().trace("Stop NL2 ");
56
- break;
57
- case 12:
58
- o.getLogger().trace("Stop EOF2 ");
59
- break;
60
- case 15:
61
- o.getLogger().info("Node: ", r[d].id), o.addNode(r[d - 1].length, r[d].id, r[d].descr, r[d].type);
62
- break;
63
- case 16:
64
- o.getLogger().trace("Icon: ", r[d]), o.decorateNode({ icon: r[d] });
65
- break;
66
- case 17:
67
- case 21:
68
- o.decorateNode({ class: r[d] });
69
- break;
70
- case 18:
71
- o.getLogger().trace("SPACELIST");
72
- break;
73
- case 19:
74
- o.getLogger().trace("Node: ", r[d].id), o.addNode(0, r[d].id, r[d].descr, r[d].type);
75
- break;
76
- case 20:
77
- o.decorateNode({ icon: r[d] });
78
- break;
79
- case 25:
80
- o.getLogger().trace("node found ..", r[d - 2]), this.$ = { id: r[d - 1], descr: r[d - 1], type: o.getType(r[d - 2], r[d]) };
81
- break;
82
- case 26:
83
- this.$ = { id: r[d], descr: r[d], type: o.nodeType.DEFAULT };
84
- break;
85
- case 27:
86
- o.getLogger().trace("node found ..", r[d - 3]), this.$ = { id: r[d - 3], descr: r[d - 1], type: o.getType(r[d - 2], r[d]) };
87
- break;
88
- }
89
- }, "anonymous"),
90
- table: [{ 3: 1, 4: 2, 5: 3, 6: [1, 5], 8: e }, { 1: [3] }, { 1: [2, 1] }, { 4: 6, 6: [1, 7], 7: [1, 8], 8: e }, { 6: n, 7: [1, 10], 9: 9, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(_, [2, 3]), { 1: [2, 2] }, t(_, [2, 4]), t(_, [2, 5]), { 1: [2, 6], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: n, 9: 22, 12: 11, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, { 6: b, 7: m, 10: 23, 11: w }, t(D, [2, 22], { 17: 17, 18: 18, 14: 27, 15: [1, 28], 16: [1, 29], 19: p, 22: y }), t(D, [2, 18]), t(D, [2, 19]), t(D, [2, 20]), t(D, [2, 21]), t(D, [2, 23]), t(D, [2, 24]), t(D, [2, 26], { 19: [1, 30] }), { 20: [1, 31] }, { 6: b, 7: m, 10: 32, 11: w }, { 1: [2, 7], 6: n, 12: 21, 13: c, 14: 14, 15: u, 16: h, 17: 17, 18: 18, 19: p, 22: y }, t(Q, [2, 14], { 7: J, 11: K }), t(A, [2, 8]), t(A, [2, 9]), t(A, [2, 10]), t(D, [2, 15]), t(D, [2, 16]), t(D, [2, 17]), { 20: [1, 35] }, { 21: [1, 36] }, t(Q, [2, 13], { 7: J, 11: K }), t(A, [2, 11]), t(A, [2, 12]), { 21: [1, 37] }, t(D, [2, 25]), t(D, [2, 27])],
91
- defaultActions: { 2: [2, 1], 6: [2, 2] },
92
- parseError: /* @__PURE__ */ l(function(s, i) {
93
- if (i.recoverable)
94
- this.trace(s);
95
- else {
96
- var a = new Error(s);
97
- throw a.hash = i, a;
98
- }
99
- }, "parseError"),
100
- parse: /* @__PURE__ */ l(function(s) {
101
- var i = this, a = [0], o = [], g = [null], r = [], U = this.table, d = "", M = 0, Z = 0, re = 2, ee = 1, ae = r.slice.call(arguments, 1), f = Object.create(this.lexer), T = { yy: {} };
102
- for (var H in this.yy)
103
- Object.prototype.hasOwnProperty.call(this.yy, H) && (T.yy[H] = this.yy[H]);
104
- f.setInput(s, T.yy), T.yy.lexer = f, T.yy.parser = this, typeof f.yylloc > "u" && (f.yylloc = {});
105
- var $ = f.yylloc;
106
- r.push($);
107
- var oe = f.options && f.options.ranges;
108
- typeof T.yy.parseError == "function" ? this.parseError = T.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
109
- function ce(N) {
110
- a.length = a.length - 2 * N, g.length = g.length - N, r.length = r.length - N;
111
- }
112
- l(ce, "popStack");
113
- function te() {
114
- var N;
115
- return N = o.pop() || f.lex() || ee, typeof N != "number" && (N instanceof Array && (o = N, N = o.pop()), N = i.symbols_[N] || N), N;
116
- }
117
- l(te, "lex");
118
- for (var S, O, k, z, I = {}, V, L, ie, B; ; ) {
119
- if (O = a[a.length - 1], this.defaultActions[O] ? k = this.defaultActions[O] : ((S === null || typeof S > "u") && (S = te()), k = U[O] && U[O][S]), typeof k > "u" || !k.length || !k[0]) {
120
- var W = "";
121
- B = [];
122
- for (V in U[O])
123
- this.terminals_[V] && V > re && B.push("'" + this.terminals_[V] + "'");
124
- f.showPosition ? W = "Parse error on line " + (M + 1) + `:
125
- ` + f.showPosition() + `
126
- Expecting ` + B.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : W = "Parse error on line " + (M + 1) + ": Unexpected " + (S == ee ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(W, {
127
- text: f.match,
128
- token: this.terminals_[S] || S,
129
- line: f.yylineno,
130
- loc: $,
131
- expected: B
132
- });
133
- }
134
- if (k[0] instanceof Array && k.length > 1)
135
- throw new Error("Parse Error: multiple actions possible at state: " + O + ", token: " + S);
136
- switch (k[0]) {
137
- case 1:
138
- a.push(S), g.push(f.yytext), r.push(f.yylloc), a.push(k[1]), S = null, Z = f.yyleng, d = f.yytext, M = f.yylineno, $ = f.yylloc;
139
- break;
140
- case 2:
141
- if (L = this.productions_[k[1]][1], I.$ = g[g.length - L], I._$ = {
142
- first_line: r[r.length - (L || 1)].first_line,
143
- last_line: r[r.length - 1].last_line,
144
- first_column: r[r.length - (L || 1)].first_column,
145
- last_column: r[r.length - 1].last_column
146
- }, oe && (I._$.range = [
147
- r[r.length - (L || 1)].range[0],
148
- r[r.length - 1].range[1]
149
- ]), z = this.performAction.apply(I, [
150
- d,
151
- Z,
152
- M,
153
- T.yy,
154
- k[1],
155
- g,
156
- r
157
- ].concat(ae)), typeof z < "u")
158
- return z;
159
- L && (a = a.slice(0, -1 * L * 2), g = g.slice(0, -1 * L), r = r.slice(0, -1 * L)), a.push(this.productions_[k[1]][0]), g.push(I.$), r.push(I._$), ie = U[a[a.length - 2]][a[a.length - 1]], a.push(ie);
160
- break;
161
- case 3:
162
- return !0;
163
- }
164
- }
165
- return !0;
166
- }, "parse")
167
- }, se = /* @__PURE__ */ function() {
168
- var v = {
169
- EOF: 1,
170
- parseError: /* @__PURE__ */ l(function(i, a) {
171
- if (this.yy.parser)
172
- this.yy.parser.parseError(i, a);
173
- else
174
- throw new Error(i);
175
- }, "parseError"),
176
- // resets the lexer, sets new input
177
- setInput: /* @__PURE__ */ l(function(s, i) {
178
- return this.yy = i || this.yy || {}, this._input = s, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
179
- first_line: 1,
180
- first_column: 0,
181
- last_line: 1,
182
- last_column: 0
183
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
184
- }, "setInput"),
185
- // consumes and returns one char from the input
186
- input: /* @__PURE__ */ l(function() {
187
- var s = this._input[0];
188
- this.yytext += s, this.yyleng++, this.offset++, this.match += s, this.matched += s;
189
- var i = s.match(/(?:\r\n?|\n).*/g);
190
- return i ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), s;
191
- }, "input"),
192
- // unshifts one char (or a string) into the input
193
- unput: /* @__PURE__ */ l(function(s) {
194
- var i = s.length, a = s.split(/(?:\r\n?|\n)/g);
195
- this._input = s + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - i), this.offset -= i;
196
- var o = this.match.split(/(?:\r\n?|\n)/g);
197
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), a.length - 1 && (this.yylineno -= a.length - 1);
198
- var g = this.yylloc.range;
199
- return this.yylloc = {
200
- first_line: this.yylloc.first_line,
201
- last_line: this.yylineno + 1,
202
- first_column: this.yylloc.first_column,
203
- last_column: a ? (a.length === o.length ? this.yylloc.first_column : 0) + o[o.length - a.length].length - a[0].length : this.yylloc.first_column - i
204
- }, this.options.ranges && (this.yylloc.range = [g[0], g[0] + this.yyleng - i]), this.yyleng = this.yytext.length, this;
205
- }, "unput"),
206
- // When called from action, caches matched text and appends it on next action
207
- more: /* @__PURE__ */ l(function() {
208
- return this._more = !0, this;
209
- }, "more"),
210
- // When called from action, signals the lexer that this rule fails to match the input, so the next matching rule (regex) should be tested instead.
211
- reject: /* @__PURE__ */ l(function() {
212
- if (this.options.backtrack_lexer)
213
- this._backtrack = !0;
214
- else
215
- return this.parseError("Lexical error on line " + (this.yylineno + 1) + `. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
216
- ` + this.showPosition(), {
217
- text: "",
218
- token: null,
219
- line: this.yylineno
220
- });
221
- return this;
222
- }, "reject"),
223
- // retain first n characters of the match
224
- less: /* @__PURE__ */ l(function(s) {
225
- this.unput(this.match.slice(s));
226
- }, "less"),
227
- // displays already matched input, i.e. for error messages
228
- pastInput: /* @__PURE__ */ l(function() {
229
- var s = this.matched.substr(0, this.matched.length - this.match.length);
230
- return (s.length > 20 ? "..." : "") + s.substr(-20).replace(/\n/g, "");
231
- }, "pastInput"),
232
- // displays upcoming input, i.e. for error messages
233
- upcomingInput: /* @__PURE__ */ l(function() {
234
- var s = this.match;
235
- return s.length < 20 && (s += this._input.substr(0, 20 - s.length)), (s.substr(0, 20) + (s.length > 20 ? "..." : "")).replace(/\n/g, "");
236
- }, "upcomingInput"),
237
- // displays the character position where the lexing error occurred, i.e. for error messages
238
- showPosition: /* @__PURE__ */ l(function() {
239
- var s = this.pastInput(), i = new Array(s.length + 1).join("-");
240
- return s + this.upcomingInput() + `
241
- ` + i + "^";
242
- }, "showPosition"),
243
- // test the lexed token: return FALSE when not a match, otherwise return token
244
- test_match: /* @__PURE__ */ l(function(s, i) {
245
- var a, o, g;
246
- if (this.options.backtrack_lexer && (g = {
247
- yylineno: this.yylineno,
248
- yylloc: {
249
- first_line: this.yylloc.first_line,
250
- last_line: this.last_line,
251
- first_column: this.yylloc.first_column,
252
- last_column: this.yylloc.last_column
253
- },
254
- yytext: this.yytext,
255
- match: this.match,
256
- matches: this.matches,
257
- matched: this.matched,
258
- yyleng: this.yyleng,
259
- offset: this.offset,
260
- _more: this._more,
261
- _input: this._input,
262
- yy: this.yy,
263
- conditionStack: this.conditionStack.slice(0),
264
- done: this.done
265
- }, this.options.ranges && (g.yylloc.range = this.yylloc.range.slice(0))), o = s[0].match(/(?:\r\n?|\n).*/g), o && (this.yylineno += o.length), this.yylloc = {
266
- first_line: this.yylloc.last_line,
267
- last_line: this.yylineno + 1,
268
- first_column: this.yylloc.last_column,
269
- last_column: o ? o[o.length - 1].length - o[o.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + s[0].length
270
- }, this.yytext += s[0], this.match += s[0], this.matches = s, this.yyleng = this.yytext.length, this.options.ranges && (this.yylloc.range = [this.offset, this.offset += this.yyleng]), this._more = !1, this._backtrack = !1, this._input = this._input.slice(s[0].length), this.matched += s[0], a = this.performAction.call(this, this.yy, this, i, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), a)
271
- return a;
272
- if (this._backtrack) {
273
- for (var r in g)
274
- this[r] = g[r];
275
- return !1;
276
- }
277
- return !1;
278
- }, "test_match"),
279
- // return next match in input
280
- next: /* @__PURE__ */ l(function() {
281
- if (this.done)
282
- return this.EOF;
283
- this._input || (this.done = !0);
284
- var s, i, a, o;
285
- this._more || (this.yytext = "", this.match = "");
286
- for (var g = this._currentRules(), r = 0; r < g.length; r++)
287
- if (a = this._input.match(this.rules[g[r]]), a && (!i || a[0].length > i[0].length)) {
288
- if (i = a, o = r, this.options.backtrack_lexer) {
289
- if (s = this.test_match(a, g[r]), s !== !1)
290
- return s;
291
- if (this._backtrack) {
292
- i = !1;
293
- continue;
294
- } else
295
- return !1;
296
- } else if (!this.options.flex)
297
- break;
298
- }
299
- return i ? (s = this.test_match(i, g[o]), s !== !1 ? s : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
300
- ` + this.showPosition(), {
301
- text: "",
302
- token: null,
303
- line: this.yylineno
304
- });
305
- }, "next"),
306
- // return next match that has a token
307
- lex: /* @__PURE__ */ l(function() {
308
- var i = this.next();
309
- return i || this.lex();
310
- }, "lex"),
311
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
312
- begin: /* @__PURE__ */ l(function(i) {
313
- this.conditionStack.push(i);
314
- }, "begin"),
315
- // pop the previously active lexer condition state off the condition stack
316
- popState: /* @__PURE__ */ l(function() {
317
- var i = this.conditionStack.length - 1;
318
- return i > 0 ? this.conditionStack.pop() : this.conditionStack[0];
319
- }, "popState"),
320
- // produce the lexer rule set which is active for the currently active lexer condition state
321
- _currentRules: /* @__PURE__ */ l(function() {
322
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
323
- }, "_currentRules"),
324
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
325
- topState: /* @__PURE__ */ l(function(i) {
326
- return i = this.conditionStack.length - 1 - Math.abs(i || 0), i >= 0 ? this.conditionStack[i] : "INITIAL";
327
- }, "topState"),
328
- // alias for begin(condition)
329
- pushState: /* @__PURE__ */ l(function(i) {
330
- this.begin(i);
331
- }, "pushState"),
332
- // return the number of states currently on the stack
333
- stateStackSize: /* @__PURE__ */ l(function() {
334
- return this.conditionStack.length;
335
- }, "stateStackSize"),
336
- options: { "case-insensitive": !0 },
337
- performAction: /* @__PURE__ */ l(function(i, a, o, g) {
338
- switch (o) {
339
- case 0:
340
- return i.getLogger().trace("Found comment", a.yytext), 6;
341
- case 1:
342
- return 8;
343
- case 2:
344
- this.begin("CLASS");
345
- break;
346
- case 3:
347
- return this.popState(), 16;
348
- case 4:
349
- this.popState();
350
- break;
351
- case 5:
352
- i.getLogger().trace("Begin icon"), this.begin("ICON");
353
- break;
354
- case 6:
355
- return i.getLogger().trace("SPACELINE"), 6;
356
- case 7:
357
- return 7;
358
- case 8:
359
- return 15;
360
- case 9:
361
- i.getLogger().trace("end icon"), this.popState();
362
- break;
363
- case 10:
364
- return i.getLogger().trace("Exploding node"), this.begin("NODE"), 19;
365
- case 11:
366
- return i.getLogger().trace("Cloud"), this.begin("NODE"), 19;
367
- case 12:
368
- return i.getLogger().trace("Explosion Bang"), this.begin("NODE"), 19;
369
- case 13:
370
- return i.getLogger().trace("Cloud Bang"), this.begin("NODE"), 19;
371
- case 14:
372
- return this.begin("NODE"), 19;
373
- case 15:
374
- return this.begin("NODE"), 19;
375
- case 16:
376
- return this.begin("NODE"), 19;
377
- case 17:
378
- return this.begin("NODE"), 19;
379
- case 18:
380
- return 13;
381
- case 19:
382
- return 22;
383
- case 20:
384
- return 11;
385
- case 21:
386
- this.begin("NSTR2");
387
- break;
388
- case 22:
389
- return "NODE_DESCR";
390
- case 23:
391
- this.popState();
392
- break;
393
- case 24:
394
- i.getLogger().trace("Starting NSTR"), this.begin("NSTR");
395
- break;
396
- case 25:
397
- return i.getLogger().trace("description:", a.yytext), "NODE_DESCR";
398
- case 26:
399
- this.popState();
400
- break;
401
- case 27:
402
- return this.popState(), i.getLogger().trace("node end ))"), "NODE_DEND";
403
- case 28:
404
- return this.popState(), i.getLogger().trace("node end )"), "NODE_DEND";
405
- case 29:
406
- return this.popState(), i.getLogger().trace("node end ...", a.yytext), "NODE_DEND";
407
- case 30:
408
- return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
409
- case 31:
410
- return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
411
- case 32:
412
- return this.popState(), i.getLogger().trace("node end (-"), "NODE_DEND";
413
- case 33:
414
- return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
415
- case 34:
416
- return this.popState(), i.getLogger().trace("node end (("), "NODE_DEND";
417
- case 35:
418
- return i.getLogger().trace("Long description:", a.yytext), 20;
419
- case 36:
420
- return i.getLogger().trace("Long description:", a.yytext), 20;
421
- }
422
- }, "anonymous"),
423
- rules: [/^(?:\s*%%.*)/i, /^(?:mindmap\b)/i, /^(?::::)/i, /^(?:.+)/i, /^(?:\n)/i, /^(?:::icon\()/i, /^(?:[\s]+[\n])/i, /^(?:[\n]+)/i, /^(?:[^\)]+)/i, /^(?:\))/i, /^(?:-\))/i, /^(?:\(-)/i, /^(?:\)\))/i, /^(?:\))/i, /^(?:\(\()/i, /^(?:\{\{)/i, /^(?:\()/i, /^(?:\[)/i, /^(?:[\s]+)/i, /^(?:[^\(\[\n\)\{\}]+)/i, /^(?:$)/i, /^(?:["][`])/i, /^(?:[^`"]+)/i, /^(?:[`]["])/i, /^(?:["])/i, /^(?:[^"]+)/i, /^(?:["])/i, /^(?:[\)]\))/i, /^(?:[\)])/i, /^(?:[\]])/i, /^(?:\}\})/i, /^(?:\(-)/i, /^(?:-\))/i, /^(?:\(\()/i, /^(?:\()/i, /^(?:[^\)\]\(\}]+)/i, /^(?:.+(?!\(\())/i],
424
- conditions: { CLASS: { rules: [3, 4], inclusive: !1 }, ICON: { rules: [8, 9], inclusive: !1 }, NSTR2: { rules: [22, 23], inclusive: !1 }, NSTR: { rules: [25, 26], inclusive: !1 }, NODE: { rules: [21, 24, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20], inclusive: !0 } }
425
- };
426
- return v;
427
- }();
428
- G.lexer = se;
429
- function P() {
430
- this.yy = {};
431
- }
432
- return l(P, "Parser"), P.prototype = G, G.Parser = P, new P();
433
- }();
434
- q.parser = q;
435
- var De = q, x = {
436
- DEFAULT: 0,
437
- NO_BORDER: 0,
438
- ROUNDED_RECT: 1,
439
- RECT: 2,
440
- CIRCLE: 3,
441
- CLOUD: 4,
442
- BANG: 5,
443
- HEXAGON: 6
444
- }, R, Ne = (R = class {
445
- constructor() {
446
- this.nodes = [], this.count = 0, this.elements = {}, this.getLogger = this.getLogger.bind(this), this.nodeType = x, this.clear(), this.getType = this.getType.bind(this), this.getElementById = this.getElementById.bind(this), this.getParent = this.getParent.bind(this), this.getMindmap = this.getMindmap.bind(this), this.addNode = this.addNode.bind(this), this.decorateNode = this.decorateNode.bind(this);
447
- }
448
- clear() {
449
- this.nodes = [], this.count = 0, this.elements = {}, this.baseLevel = void 0;
450
- }
451
- getParent(e) {
452
- for (let n = this.nodes.length - 1; n >= 0; n--)
453
- if (this.nodes[n].level < e)
454
- return this.nodes[n];
455
- return null;
456
- }
457
- getMindmap() {
458
- return this.nodes.length > 0 ? this.nodes[0] : null;
459
- }
460
- addNode(e, n, c, u) {
461
- var m, w;
462
- C.info("addNode", e, n, c, u);
463
- let h = !1;
464
- this.nodes.length === 0 ? (this.baseLevel = e, e = 0, h = !0) : this.baseLevel !== void 0 && (e = e - this.baseLevel, h = !1);
465
- const p = X();
466
- let y = ((m = p.mindmap) == null ? void 0 : m.padding) ?? j.mindmap.padding;
467
- switch (u) {
468
- case this.nodeType.ROUNDED_RECT:
469
- case this.nodeType.RECT:
470
- case this.nodeType.HEXAGON:
471
- y *= 2;
472
- break;
473
- }
474
- const _ = {
475
- id: this.count++,
476
- nodeId: F(n, p),
477
- level: e,
478
- descr: F(c, p),
479
- type: u,
480
- children: [],
481
- width: ((w = p.mindmap) == null ? void 0 : w.maxNodeWidth) ?? j.mindmap.maxNodeWidth,
482
- padding: y,
483
- isRoot: h
484
- }, b = this.getParent(e);
485
- if (b)
486
- b.children.push(_), this.nodes.push(_);
487
- else if (h)
488
- this.nodes.push(_);
489
- else
490
- throw new Error(
491
- `There can be only one root. No parent could be found for ("${_.descr}")`
492
- );
493
- }
494
- getType(e, n) {
495
- switch (C.debug("In get type", e, n), e) {
496
- case "[":
497
- return this.nodeType.RECT;
498
- case "(":
499
- return n === ")" ? this.nodeType.ROUNDED_RECT : this.nodeType.CLOUD;
500
- case "((":
501
- return this.nodeType.CIRCLE;
502
- case ")":
503
- return this.nodeType.CLOUD;
504
- case "))":
505
- return this.nodeType.BANG;
506
- case "{{":
507
- return this.nodeType.HEXAGON;
508
- default:
509
- return this.nodeType.DEFAULT;
510
- }
511
- }
512
- setElementForId(e, n) {
513
- this.elements[e] = n;
514
- }
515
- getElementById(e) {
516
- return this.elements[e];
517
- }
518
- decorateNode(e) {
519
- if (!e)
520
- return;
521
- const n = X(), c = this.nodes[this.nodes.length - 1];
522
- e.icon && (c.icon = F(e.icon, n)), e.class && (c.class = F(e.class, n));
523
- }
524
- type2Str(e) {
525
- switch (e) {
526
- case this.nodeType.DEFAULT:
527
- return "no-border";
528
- case this.nodeType.RECT:
529
- return "rect";
530
- case this.nodeType.ROUNDED_RECT:
531
- return "rounded-rect";
532
- case this.nodeType.CIRCLE:
533
- return "circle";
534
- case this.nodeType.CLOUD:
535
- return "cloud";
536
- case this.nodeType.BANG:
537
- return "bang";
538
- case this.nodeType.HEXAGON:
539
- return "hexgon";
540
- default:
541
- return "no-border";
542
- }
543
- }
544
- /**
545
- * Assign section numbers to nodes based on their position relative to root
546
- * @param node - The mindmap node to process
547
- * @param sectionNumber - The section number to assign (undefined for root)
548
- */
549
- assignSections(e, n) {
550
- if (e.level === 0 ? e.section = void 0 : e.section = n, e.children)
551
- for (const [c, u] of e.children.entries()) {
552
- const h = e.level === 0 ? c : n;
553
- this.assignSections(u, h);
554
- }
555
- }
556
- /**
557
- * Convert mindmap tree structure to flat array of nodes
558
- * @param node - The mindmap node to process
559
- * @param processedNodes - Array to collect processed nodes
560
- */
561
- flattenNodes(e, n) {
562
- const c = ["mindmap-node"];
563
- e.isRoot === !0 ? c.push("section-root", "section--1") : e.section !== void 0 && c.push(`section-${e.section}`), e.class && c.push(e.class);
564
- const u = c.join(" "), h = /* @__PURE__ */ l((y) => {
565
- switch (y) {
566
- case x.CIRCLE:
567
- return "mindmapCircle";
568
- case x.RECT:
569
- return "rect";
570
- case x.ROUNDED_RECT:
571
- return "rounded";
572
- case x.CLOUD:
573
- return "cloud";
574
- case x.BANG:
575
- return "bang";
576
- case x.HEXAGON:
577
- return "hexagon";
578
- case x.DEFAULT:
579
- return "defaultMindmapNode";
580
- case x.NO_BORDER:
581
- default:
582
- return "rect";
583
- }
584
- }, "getShapeFromType"), p = {
585
- id: e.id.toString(),
586
- domId: "node_" + e.id.toString(),
587
- label: e.descr,
588
- isGroup: !1,
589
- shape: h(e.type),
590
- width: e.width,
591
- height: e.height ?? 0,
592
- padding: e.padding,
593
- cssClasses: u,
594
- cssStyles: [],
595
- look: "default",
596
- icon: e.icon,
597
- x: e.x,
598
- y: e.y,
599
- // Mindmap-specific properties
600
- level: e.level,
601
- nodeId: e.nodeId,
602
- type: e.type,
603
- section: e.section
604
- };
605
- if (n.push(p), e.children)
606
- for (const y of e.children)
607
- this.flattenNodes(y, n);
608
- }
609
- /**
610
- * Generate edges from parent-child relationships in mindmap tree
611
- * @param node - The mindmap node to process
612
- * @param edges - Array to collect edges
613
- */
614
- generateEdges(e, n) {
615
- if (e.children)
616
- for (const c of e.children) {
617
- let u = "edge";
618
- c.section !== void 0 && (u += ` section-edge-${c.section}`);
619
- const h = e.level + 1;
620
- u += ` edge-depth-${h}`;
621
- const p = {
622
- id: `edge_${e.id}_${c.id}`,
623
- start: e.id.toString(),
624
- end: c.id.toString(),
625
- type: "normal",
626
- curve: "basis",
627
- thickness: "normal",
628
- look: "default",
629
- classes: u,
630
- // Store mindmap-specific data
631
- depth: e.level,
632
- section: c.section
633
- };
634
- n.push(p), this.generateEdges(c, n);
635
- }
636
- }
637
- /**
638
- * Get structured data for layout algorithms
639
- * Following the pattern established by ER diagrams
640
- * @returns Structured data containing nodes, edges, and config
641
- */
642
- getData() {
643
- const e = this.getMindmap(), n = X(), u = de().layout !== void 0, h = n;
644
- if (u || (h.layout = "cose-bilkent"), !e)
645
- return {
646
- nodes: [],
647
- edges: [],
648
- config: h
649
- };
650
- C.debug("getData: mindmapRoot", e, n), this.assignSections(e);
651
- const p = [], y = [];
652
- this.flattenNodes(e, p), this.generateEdges(e, y), C.debug(
653
- `getData: processed ${p.length} nodes and ${y.length} edges`
654
- );
655
- const _ = /* @__PURE__ */ new Map();
656
- for (const b of p)
657
- _.set(b.id, {
658
- shape: b.shape,
659
- width: b.width,
660
- height: b.height,
661
- padding: b.padding
662
- });
663
- return {
664
- nodes: p,
665
- edges: y,
666
- config: h,
667
- // Store the root node for mindmap-specific layout algorithms
668
- rootNode: e,
669
- // Properties required by dagre layout algorithm
670
- markers: ["point"],
671
- // Mindmaps don't use markers
672
- direction: "TB",
673
- // Top-to-bottom direction for mindmaps
674
- nodeSpacing: 50,
675
- // Default spacing between nodes
676
- rankSpacing: 50,
677
- // Default spacing between ranks
678
- // Add shapes for ELK compatibility
679
- shapes: Object.fromEntries(_),
680
- // Additional properties that layout algorithms might expect
681
- type: "mindmap",
682
- diagramId: "mindmap-" + Se()
683
- };
684
- }
685
- // Expose logger to grammar
686
- getLogger() {
687
- return C;
688
- }
689
- }, l(R, "MindmapDB"), R), ke = /* @__PURE__ */ l(async (t, e, n, c) => {
690
- var _, b;
691
- C.debug(`Rendering mindmap diagram
692
- ` + t);
693
- const u = c.db, h = u.getData(), p = le(e, h.config.securityLevel);
694
- h.type = c.type, h.layoutAlgorithm = ge(h.config.layout, {
695
- fallback: "cose-bilkent"
696
- }), h.diagramId = e, u.getMindmap() && (h.nodes.forEach((m) => {
697
- m.shape === "rounded" ? (m.radius = 15, m.taper = 15, m.stroke = "none", m.width = 0, m.padding = 15) : m.shape === "circle" ? m.padding = 10 : m.shape === "rect" && (m.width = 0, m.padding = 10);
698
- }), await ue(h, p), he(
699
- p,
700
- ((_ = h.config.mindmap) == null ? void 0 : _.padding) ?? j.mindmap.padding,
701
- "mindmapDiagram",
702
- ((b = h.config.mindmap) == null ? void 0 : b.useMaxWidth) ?? j.mindmap.useMaxWidth
703
- ));
704
- }, "draw"), Le = {
705
- draw: ke
706
- }, xe = /* @__PURE__ */ l((t) => {
707
- let e = "";
708
- for (let n = 0; n < t.THEME_COLOR_LIMIT; n++)
709
- t["lineColor" + n] = t["lineColor" + n] || t["cScaleInv" + n], pe(t["lineColor" + n]) ? t["lineColor" + n] = fe(t["lineColor" + n], 20) : t["lineColor" + n] = ye(t["lineColor" + n], 20);
710
- for (let n = 0; n < t.THEME_COLOR_LIMIT; n++) {
711
- const c = "" + (17 - 3 * n);
712
- e += `
713
- .section-${n - 1} rect, .section-${n - 1} path, .section-${n - 1} circle, .section-${n - 1} polygon, .section-${n - 1} path {
714
- fill: ${t["cScale" + n]};
715
- }
716
- .section-${n - 1} text {
717
- fill: ${t["cScaleLabel" + n]};
718
- }
719
- .node-icon-${n - 1} {
720
- font-size: 40px;
721
- color: ${t["cScaleLabel" + n]};
722
- }
723
- .section-edge-${n - 1}{
724
- stroke: ${t["cScale" + n]};
725
- }
726
- .edge-depth-${n - 1}{
727
- stroke-width: ${c};
728
- }
729
- .section-${n - 1} line {
730
- stroke: ${t["cScaleInv" + n]} ;
731
- stroke-width: 3;
732
- }
733
-
734
- .disabled, .disabled circle, .disabled text {
735
- fill: lightgray;
736
- }
737
- .disabled text {
738
- fill: #efefef;
739
- }
740
- `;
741
- }
742
- return e;
743
- }, "genSections"), ve = /* @__PURE__ */ l((t) => `
744
- .edge {
745
- stroke-width: 3;
746
- }
747
- ${xe(t)}
748
- .section-root rect, .section-root path, .section-root circle, .section-root polygon {
749
- fill: ${t.git0};
750
- }
751
- .section-root text {
752
- fill: ${t.gitBranchLabel0};
753
- }
754
- .section-root span {
755
- color: ${t.gitBranchLabel0};
756
- }
757
- .section-2 span {
758
- color: ${t.gitBranchLabel0};
759
- }
760
- .icon-container {
761
- height:100%;
762
- display: flex;
763
- justify-content: center;
764
- align-items: center;
765
- }
766
- .edge {
767
- fill: none;
768
- }
769
- .mindmap-node-label {
770
- dy: 1em;
771
- alignment-baseline: middle;
772
- text-anchor: middle;
773
- dominant-baseline: middle;
774
- text-align: center;
775
- }
776
- `, "getStyles"), Te = ve, Re = {
777
- get db() {
778
- return new Ne();
779
- },
780
- renderer: Le,
781
- parser: De,
782
- styles: Te
783
- };
784
- export {
785
- Re as diagram
786
- };