@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,802 +0,0 @@
1
- import { a1 as s, at as xt, aN as kt, an as vt, a7 as _t, ad as E, aO as bt, aP as wt, aQ as St, aR as Et } from "./CoachForm.js";
2
- import { s as q } from "./redux-toolkit.modern.js";
3
- import { d as nt } from "./arc.js";
4
- var X = function() {
5
- var n = /* @__PURE__ */ s(function(f, i, a, h) {
6
- for (a = a || {}, h = f.length; h--; a[f[h]] = i) ;
7
- return a;
8
- }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], r = [1, 11], d = [1, 12], c = [1, 13], g = [1, 16], m = [1, 17], p = {
9
- trace: /* @__PURE__ */ s(function() {
10
- }, "trace"),
11
- yy: {},
12
- symbols_: { error: 2, start: 3, timeline: 4, document: 5, EOF: 6, line: 7, SPACE: 8, statement: 9, NEWLINE: 10, title: 11, acc_title: 12, acc_title_value: 13, acc_descr: 14, acc_descr_value: 15, acc_descr_multiline_value: 16, section: 17, period_statement: 18, event_statement: 19, period: 20, event: 21, $accept: 0, $end: 1 },
13
- terminals_: { 2: "error", 4: "timeline", 6: "EOF", 8: "SPACE", 10: "NEWLINE", 11: "title", 12: "acc_title", 13: "acc_title_value", 14: "acc_descr", 15: "acc_descr_value", 16: "acc_descr_multiline_value", 17: "section", 20: "period", 21: "event" },
14
- productions_: [0, [3, 3], [5, 0], [5, 2], [7, 2], [7, 1], [7, 1], [7, 1], [9, 1], [9, 2], [9, 2], [9, 1], [9, 1], [9, 1], [9, 1], [18, 1], [19, 1]],
15
- performAction: /* @__PURE__ */ s(function(i, a, h, u, y, o, S) {
16
- var k = o.length - 1;
17
- switch (y) {
18
- case 1:
19
- return o[k - 1];
20
- case 2:
21
- this.$ = [];
22
- break;
23
- case 3:
24
- o[k - 1].push(o[k]), this.$ = o[k - 1];
25
- break;
26
- case 4:
27
- case 5:
28
- this.$ = o[k];
29
- break;
30
- case 6:
31
- case 7:
32
- this.$ = [];
33
- break;
34
- case 8:
35
- u.getCommonDb().setDiagramTitle(o[k].substr(6)), this.$ = o[k].substr(6);
36
- break;
37
- case 9:
38
- this.$ = o[k].trim(), u.getCommonDb().setAccTitle(this.$);
39
- break;
40
- case 10:
41
- case 11:
42
- this.$ = o[k].trim(), u.getCommonDb().setAccDescription(this.$);
43
- break;
44
- case 12:
45
- u.addSection(o[k].substr(8)), this.$ = o[k].substr(8);
46
- break;
47
- case 15:
48
- u.addTask(o[k], 0, ""), this.$ = o[k];
49
- break;
50
- case 16:
51
- u.addEvent(o[k].substr(2)), this.$ = o[k];
52
- break;
53
- }
54
- }, "anonymous"),
55
- table: [{ 3: 1, 4: [1, 2] }, { 1: [3] }, n(t, [2, 2], { 5: 3 }), { 6: [1, 4], 7: 5, 8: [1, 6], 9: 7, 10: [1, 8], 11: e, 12: l, 14: r, 16: d, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: r, 16: d, 17: c, 18: 14, 19: 15, 20: g, 21: m }, n(t, [2, 5]), n(t, [2, 6]), n(t, [2, 8]), { 13: [1, 19] }, { 15: [1, 20] }, n(t, [2, 11]), n(t, [2, 12]), n(t, [2, 13]), n(t, [2, 14]), n(t, [2, 15]), n(t, [2, 16]), n(t, [2, 4]), n(t, [2, 9]), n(t, [2, 10])],
56
- defaultActions: {},
57
- parseError: /* @__PURE__ */ s(function(i, a) {
58
- if (a.recoverable)
59
- this.trace(i);
60
- else {
61
- var h = new Error(i);
62
- throw h.hash = a, h;
63
- }
64
- }, "parseError"),
65
- parse: /* @__PURE__ */ s(function(i) {
66
- var a = this, h = [0], u = [], y = [null], o = [], S = this.table, k = "", M = 0, C = 0, B = 2, Q = 1, O = o.slice.call(arguments, 1), v = Object.create(this.lexer), N = { yy: {} };
67
- for (var L in this.yy)
68
- Object.prototype.hasOwnProperty.call(this.yy, L) && (N.yy[L] = this.yy[L]);
69
- v.setInput(i, N.yy), N.yy.lexer = v, N.yy.parser = this, typeof v.yylloc > "u" && (v.yylloc = {});
70
- var b = v.yylloc;
71
- o.push(b);
72
- var $ = v.options && v.options.ranges;
73
- typeof N.yy.parseError == "function" ? this.parseError = N.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
74
- function R(T) {
75
- h.length = h.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
76
- }
77
- s(R, "popStack");
78
- function A() {
79
- var T;
80
- return T = u.pop() || v.lex() || Q, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
81
- }
82
- s(A, "lex");
83
- for (var w, P, I, J, z = {}, j, H, et, G; ; ) {
84
- if (P = h[h.length - 1], this.defaultActions[P] ? I = this.defaultActions[P] : ((w === null || typeof w > "u") && (w = A()), I = S[P] && S[P][w]), typeof I > "u" || !I.length || !I[0]) {
85
- var K = "";
86
- G = [];
87
- for (j in S[P])
88
- this.terminals_[j] && j > B && G.push("'" + this.terminals_[j] + "'");
89
- v.showPosition ? K = "Parse error on line " + (M + 1) + `:
90
- ` + v.showPosition() + `
91
- Expecting ` + G.join(", ") + ", got '" + (this.terminals_[w] || w) + "'" : K = "Parse error on line " + (M + 1) + ": Unexpected " + (w == Q ? "end of input" : "'" + (this.terminals_[w] || w) + "'"), this.parseError(K, {
92
- text: v.match,
93
- token: this.terminals_[w] || w,
94
- line: v.yylineno,
95
- loc: b,
96
- expected: G
97
- });
98
- }
99
- if (I[0] instanceof Array && I.length > 1)
100
- throw new Error("Parse Error: multiple actions possible at state: " + P + ", token: " + w);
101
- switch (I[0]) {
102
- case 1:
103
- h.push(w), y.push(v.yytext), o.push(v.yylloc), h.push(I[1]), w = null, C = v.yyleng, k = v.yytext, M = v.yylineno, b = v.yylloc;
104
- break;
105
- case 2:
106
- if (H = this.productions_[I[1]][1], z.$ = y[y.length - H], z._$ = {
107
- first_line: o[o.length - (H || 1)].first_line,
108
- last_line: o[o.length - 1].last_line,
109
- first_column: o[o.length - (H || 1)].first_column,
110
- last_column: o[o.length - 1].last_column
111
- }, $ && (z._$.range = [
112
- o[o.length - (H || 1)].range[0],
113
- o[o.length - 1].range[1]
114
- ]), J = this.performAction.apply(z, [
115
- k,
116
- C,
117
- M,
118
- N.yy,
119
- I[1],
120
- y,
121
- o
122
- ].concat(O)), typeof J < "u")
123
- return J;
124
- H && (h = h.slice(0, -1 * H * 2), y = y.slice(0, -1 * H), o = o.slice(0, -1 * H)), h.push(this.productions_[I[1]][0]), y.push(z.$), o.push(z._$), et = S[h[h.length - 2]][h[h.length - 1]], h.push(et);
125
- break;
126
- case 3:
127
- return !0;
128
- }
129
- }
130
- return !0;
131
- }, "parse")
132
- }, x = /* @__PURE__ */ function() {
133
- var f = {
134
- EOF: 1,
135
- parseError: /* @__PURE__ */ s(function(a, h) {
136
- if (this.yy.parser)
137
- this.yy.parser.parseError(a, h);
138
- else
139
- throw new Error(a);
140
- }, "parseError"),
141
- // resets the lexer, sets new input
142
- setInput: /* @__PURE__ */ s(function(i, a) {
143
- return this.yy = a || this.yy || {}, this._input = i, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
144
- first_line: 1,
145
- first_column: 0,
146
- last_line: 1,
147
- last_column: 0
148
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
149
- }, "setInput"),
150
- // consumes and returns one char from the input
151
- input: /* @__PURE__ */ s(function() {
152
- var i = this._input[0];
153
- this.yytext += i, this.yyleng++, this.offset++, this.match += i, this.matched += i;
154
- var a = i.match(/(?:\r\n?|\n).*/g);
155
- return a ? (this.yylineno++, this.yylloc.last_line++) : this.yylloc.last_column++, this.options.ranges && this.yylloc.range[1]++, this._input = this._input.slice(1), i;
156
- }, "input"),
157
- // unshifts one char (or a string) into the input
158
- unput: /* @__PURE__ */ s(function(i) {
159
- var a = i.length, h = i.split(/(?:\r\n?|\n)/g);
160
- this._input = i + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
161
- var u = this.match.split(/(?:\r\n?|\n)/g);
162
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), h.length - 1 && (this.yylineno -= h.length - 1);
163
- var y = this.yylloc.range;
164
- return this.yylloc = {
165
- first_line: this.yylloc.first_line,
166
- last_line: this.yylineno + 1,
167
- first_column: this.yylloc.first_column,
168
- last_column: h ? (h.length === u.length ? this.yylloc.first_column : 0) + u[u.length - h.length].length - h[0].length : this.yylloc.first_column - a
169
- }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
170
- }, "unput"),
171
- // When called from action, caches matched text and appends it on next action
172
- more: /* @__PURE__ */ s(function() {
173
- return this._more = !0, this;
174
- }, "more"),
175
- // 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.
176
- reject: /* @__PURE__ */ s(function() {
177
- if (this.options.backtrack_lexer)
178
- this._backtrack = !0;
179
- else
180
- 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).
181
- ` + this.showPosition(), {
182
- text: "",
183
- token: null,
184
- line: this.yylineno
185
- });
186
- return this;
187
- }, "reject"),
188
- // retain first n characters of the match
189
- less: /* @__PURE__ */ s(function(i) {
190
- this.unput(this.match.slice(i));
191
- }, "less"),
192
- // displays already matched input, i.e. for error messages
193
- pastInput: /* @__PURE__ */ s(function() {
194
- var i = this.matched.substr(0, this.matched.length - this.match.length);
195
- return (i.length > 20 ? "..." : "") + i.substr(-20).replace(/\n/g, "");
196
- }, "pastInput"),
197
- // displays upcoming input, i.e. for error messages
198
- upcomingInput: /* @__PURE__ */ s(function() {
199
- var i = this.match;
200
- return i.length < 20 && (i += this._input.substr(0, 20 - i.length)), (i.substr(0, 20) + (i.length > 20 ? "..." : "")).replace(/\n/g, "");
201
- }, "upcomingInput"),
202
- // displays the character position where the lexing error occurred, i.e. for error messages
203
- showPosition: /* @__PURE__ */ s(function() {
204
- var i = this.pastInput(), a = new Array(i.length + 1).join("-");
205
- return i + this.upcomingInput() + `
206
- ` + a + "^";
207
- }, "showPosition"),
208
- // test the lexed token: return FALSE when not a match, otherwise return token
209
- test_match: /* @__PURE__ */ s(function(i, a) {
210
- var h, u, y;
211
- if (this.options.backtrack_lexer && (y = {
212
- yylineno: this.yylineno,
213
- yylloc: {
214
- first_line: this.yylloc.first_line,
215
- last_line: this.last_line,
216
- first_column: this.yylloc.first_column,
217
- last_column: this.yylloc.last_column
218
- },
219
- yytext: this.yytext,
220
- match: this.match,
221
- matches: this.matches,
222
- matched: this.matched,
223
- yyleng: this.yyleng,
224
- offset: this.offset,
225
- _more: this._more,
226
- _input: this._input,
227
- yy: this.yy,
228
- conditionStack: this.conditionStack.slice(0),
229
- done: this.done
230
- }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = i[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
231
- first_line: this.yylloc.last_line,
232
- last_line: this.yylineno + 1,
233
- first_column: this.yylloc.last_column,
234
- last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + i[0].length
235
- }, this.yytext += i[0], this.match += i[0], this.matches = i, 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(i[0].length), this.matched += i[0], h = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), h)
236
- return h;
237
- if (this._backtrack) {
238
- for (var o in y)
239
- this[o] = y[o];
240
- return !1;
241
- }
242
- return !1;
243
- }, "test_match"),
244
- // return next match in input
245
- next: /* @__PURE__ */ s(function() {
246
- if (this.done)
247
- return this.EOF;
248
- this._input || (this.done = !0);
249
- var i, a, h, u;
250
- this._more || (this.yytext = "", this.match = "");
251
- for (var y = this._currentRules(), o = 0; o < y.length; o++)
252
- if (h = this._input.match(this.rules[y[o]]), h && (!a || h[0].length > a[0].length)) {
253
- if (a = h, u = o, this.options.backtrack_lexer) {
254
- if (i = this.test_match(h, y[o]), i !== !1)
255
- return i;
256
- if (this._backtrack) {
257
- a = !1;
258
- continue;
259
- } else
260
- return !1;
261
- } else if (!this.options.flex)
262
- break;
263
- }
264
- return a ? (i = this.test_match(a, y[u]), i !== !1 ? i : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
265
- ` + this.showPosition(), {
266
- text: "",
267
- token: null,
268
- line: this.yylineno
269
- });
270
- }, "next"),
271
- // return next match that has a token
272
- lex: /* @__PURE__ */ s(function() {
273
- var a = this.next();
274
- return a || this.lex();
275
- }, "lex"),
276
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
277
- begin: /* @__PURE__ */ s(function(a) {
278
- this.conditionStack.push(a);
279
- }, "begin"),
280
- // pop the previously active lexer condition state off the condition stack
281
- popState: /* @__PURE__ */ s(function() {
282
- var a = this.conditionStack.length - 1;
283
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
284
- }, "popState"),
285
- // produce the lexer rule set which is active for the currently active lexer condition state
286
- _currentRules: /* @__PURE__ */ s(function() {
287
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
288
- }, "_currentRules"),
289
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
290
- topState: /* @__PURE__ */ s(function(a) {
291
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
292
- }, "topState"),
293
- // alias for begin(condition)
294
- pushState: /* @__PURE__ */ s(function(a) {
295
- this.begin(a);
296
- }, "pushState"),
297
- // return the number of states currently on the stack
298
- stateStackSize: /* @__PURE__ */ s(function() {
299
- return this.conditionStack.length;
300
- }, "stateStackSize"),
301
- options: { "case-insensitive": !0 },
302
- performAction: /* @__PURE__ */ s(function(a, h, u, y) {
303
- switch (u) {
304
- case 0:
305
- break;
306
- case 1:
307
- break;
308
- case 2:
309
- return 10;
310
- case 3:
311
- break;
312
- case 4:
313
- break;
314
- case 5:
315
- return 4;
316
- case 6:
317
- return 11;
318
- case 7:
319
- return this.begin("acc_title"), 12;
320
- case 8:
321
- return this.popState(), "acc_title_value";
322
- case 9:
323
- return this.begin("acc_descr"), 14;
324
- case 10:
325
- return this.popState(), "acc_descr_value";
326
- case 11:
327
- this.begin("acc_descr_multiline");
328
- break;
329
- case 12:
330
- this.popState();
331
- break;
332
- case 13:
333
- return "acc_descr_multiline_value";
334
- case 14:
335
- return 17;
336
- case 15:
337
- return 21;
338
- case 16:
339
- return 20;
340
- case 17:
341
- return 6;
342
- case 18:
343
- return "INVALID";
344
- }
345
- }, "anonymous"),
346
- rules: [/^(?:%(?!\{)[^\n]*)/i, /^(?:[^\}]%%[^\n]*)/i, /^(?:[\n]+)/i, /^(?:\s+)/i, /^(?:#[^\n]*)/i, /^(?:timeline\b)/i, /^(?:title\s[^\n]+)/i, /^(?:accTitle\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*:\s*)/i, /^(?:(?!\n||)*[^\n]*)/i, /^(?:accDescr\s*\{\s*)/i, /^(?:[\}])/i, /^(?:[^\}]*)/i, /^(?:section\s[^:\n]+)/i, /^(?::\s(?:[^:\n]|:(?!\s))+)/i, /^(?:[^#:\n]+)/i, /^(?:$)/i, /^(?:.)/i],
347
- conditions: { acc_descr_multiline: { rules: [12, 13], inclusive: !1 }, acc_descr: { rules: [10], inclusive: !1 }, acc_title: { rules: [8], inclusive: !1 }, INITIAL: { rules: [0, 1, 2, 3, 4, 5, 6, 7, 9, 11, 14, 15, 16, 17, 18], inclusive: !0 } }
348
- };
349
- return f;
350
- }();
351
- p.lexer = x;
352
- function _() {
353
- this.yy = {};
354
- }
355
- return s(_, "Parser"), _.prototype = p, p.Parser = _, new _();
356
- }();
357
- X.parser = X;
358
- var Tt = X, at = {};
359
- xt(at, {
360
- addEvent: () => yt,
361
- addSection: () => ht,
362
- addTask: () => pt,
363
- addTaskOrg: () => gt,
364
- clear: () => ct,
365
- default: () => It,
366
- getCommonDb: () => ot,
367
- getSections: () => dt,
368
- getTasks: () => ut
369
- });
370
- var V = "", lt = 0, Y = [], U = [], W = [], ot = /* @__PURE__ */ s(() => kt, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
371
- Y.length = 0, U.length = 0, V = "", W.length = 0, vt();
372
- }, "clear"), ht = /* @__PURE__ */ s(function(n) {
373
- V = n, Y.push(n);
374
- }, "addSection"), dt = /* @__PURE__ */ s(function() {
375
- return Y;
376
- }, "getSections"), ut = /* @__PURE__ */ s(function() {
377
- let n = rt();
378
- const t = 100;
379
- let e = 0;
380
- for (; !n && e < t; )
381
- n = rt(), e++;
382
- return U.push(...W), U;
383
- }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
384
- const l = {
385
- id: lt++,
386
- section: V,
387
- type: V,
388
- task: n,
389
- score: t || 0,
390
- //if event is defined, then add it the events array
391
- events: e ? [e] : []
392
- };
393
- W.push(l);
394
- }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
395
- W.find((e) => e.id === lt - 1).events.push(n);
396
- }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
397
- const t = {
398
- section: V,
399
- type: V,
400
- description: n,
401
- task: n,
402
- classes: []
403
- };
404
- U.push(t);
405
- }, "addTaskOrg"), rt = /* @__PURE__ */ s(function() {
406
- const n = /* @__PURE__ */ s(function(e) {
407
- return W[e].processed;
408
- }, "compileTask");
409
- let t = !0;
410
- for (const [e, l] of W.entries())
411
- n(e), t = t && l.processed;
412
- return t;
413
- }, "compileTasks"), It = {
414
- clear: ct,
415
- getCommonDb: ot,
416
- addSection: ht,
417
- getSections: dt,
418
- getTasks: ut,
419
- addTask: pt,
420
- addTaskOrg: gt,
421
- addEvent: yt
422
- }, Nt = 12, Z = /* @__PURE__ */ s(function(n, t) {
423
- const e = n.append("rect");
424
- return e.attr("x", t.x), e.attr("y", t.y), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("width", t.width), e.attr("height", t.height), e.attr("rx", t.rx), e.attr("ry", t.ry), t.class !== void 0 && e.attr("class", t.class), e;
425
- }, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
426
- const l = n.append("circle").attr("cx", t.cx).attr("cy", t.cy).attr("class", "face").attr("r", 15).attr("stroke-width", 2).attr("overflow", "visible"), r = n.append("g");
427
- r.append("circle").attr("cx", t.cx - 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666"), r.append("circle").attr("cx", t.cx + 15 / 3).attr("cy", t.cy - 15 / 3).attr("r", 1.5).attr("stroke-width", 2).attr("fill", "#666").attr("stroke", "#666");
428
- function d(m) {
429
- const p = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
430
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
431
- }
432
- s(d, "smile");
433
- function c(m) {
434
- const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
435
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
436
- }
437
- s(c, "sad");
438
- function g(m) {
439
- m.append("line").attr("class", "mouth").attr("stroke", 2).attr("x1", t.cx - 5).attr("y1", t.cy + 7).attr("x2", t.cx + 5).attr("y2", t.cy + 7).attr("class", "mouth").attr("stroke-width", "1px").attr("stroke", "#666");
440
- }
441
- return s(g, "ambivalent"), t.score > 3 ? d(r) : t.score < 3 ? c(r) : g(r), l;
442
- }, "drawFace"), Mt = /* @__PURE__ */ s(function(n, t) {
443
- const e = n.append("circle");
444
- return e.attr("cx", t.cx), e.attr("cy", t.cy), e.attr("class", "actor-" + t.pos), e.attr("fill", t.fill), e.attr("stroke", t.stroke), e.attr("r", t.r), e.class !== void 0 && e.attr("class", e.class), t.title !== void 0 && e.append("title").text(t.title), e;
445
- }, "drawCircle"), ft = /* @__PURE__ */ s(function(n, t) {
446
- const e = t.text.replace(/<br\s*\/?>/gi, " "), l = n.append("text");
447
- l.attr("x", t.x), l.attr("y", t.y), l.attr("class", "legend"), l.style("text-anchor", t.anchor), t.class !== void 0 && l.attr("class", t.class);
448
- const r = l.append("tspan");
449
- return r.attr("x", t.x + t.textMargin * 2), r.text(e), l;
450
- }, "drawText"), $t = /* @__PURE__ */ s(function(n, t) {
451
- function e(r, d, c, g, m) {
452
- return r + "," + d + " " + (r + c) + "," + d + " " + (r + c) + "," + (d + g - m) + " " + (r + c - m * 1.2) + "," + (d + g) + " " + r + "," + (d + g);
453
- }
454
- s(e, "genPoints");
455
- const l = n.append("polygon");
456
- l.attr("points", e(t.x, t.y, 50, 20, 7)), l.attr("class", "labelBox"), t.y = t.y + t.labelMargin, t.x = t.x + 0.5 * t.labelMargin, ft(n, t);
457
- }, "drawLabel"), Pt = /* @__PURE__ */ s(function(n, t, e) {
458
- const l = n.append("g"), r = D();
459
- r.x = t.x, r.y = t.y, r.fill = t.fill, r.width = e.width, r.height = e.height, r.class = "journey-section section-type-" + t.num, r.rx = 3, r.ry = 3, Z(l, r), mt(e)(
460
- t.text,
461
- l,
462
- r.x,
463
- r.y,
464
- r.width,
465
- r.height,
466
- { class: "journey-section section-type-" + t.num },
467
- e,
468
- t.colour
469
- );
470
- }, "drawSection"), it = -1, Ht = /* @__PURE__ */ s(function(n, t, e) {
471
- const l = t.x + e.width / 2, r = n.append("g");
472
- it++;
473
- const d = 300 + 5 * 30;
474
- r.append("line").attr("id", "task" + it).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", d).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(r, {
475
- cx: l,
476
- cy: 300 + (5 - t.score) * 30,
477
- score: t.score
478
- });
479
- const c = D();
480
- c.x = t.x, c.y = t.y, c.fill = t.fill, c.width = e.width, c.height = e.height, c.class = "task task-type-" + t.num, c.rx = 3, c.ry = 3, Z(r, c), mt(e)(
481
- t.task,
482
- r,
483
- c.x,
484
- c.y,
485
- c.width,
486
- c.height,
487
- { class: "task" },
488
- e,
489
- t.colour
490
- );
491
- }, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
492
- Z(n, {
493
- x: t.startx,
494
- y: t.starty,
495
- width: t.stopx - t.startx,
496
- height: t.stopy - t.starty,
497
- fill: t.fill,
498
- class: "rect"
499
- }).lower();
500
- }, "drawBackgroundRect"), Ct = /* @__PURE__ */ s(function() {
501
- return {
502
- x: 0,
503
- y: 0,
504
- fill: void 0,
505
- "text-anchor": "start",
506
- width: 100,
507
- height: 100,
508
- textMargin: 0,
509
- rx: 0,
510
- ry: 0
511
- };
512
- }, "getTextObj"), D = /* @__PURE__ */ s(function() {
513
- return {
514
- x: 0,
515
- y: 0,
516
- width: 100,
517
- anchor: "start",
518
- height: 100,
519
- rx: 0,
520
- ry: 0
521
- };
522
- }, "getNoteRect"), mt = /* @__PURE__ */ function() {
523
- function n(r, d, c, g, m, p, x, _) {
524
- const f = d.append("text").attr("x", c + m / 2).attr("y", g + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(r);
525
- l(f, x);
526
- }
527
- s(n, "byText");
528
- function t(r, d, c, g, m, p, x, _, f) {
529
- const { taskFontSize: i, taskFontFamily: a } = _, h = r.split(/<br\s*\/?>/gi);
530
- for (let u = 0; u < h.length; u++) {
531
- const y = u * i - i * (h.length - 1) / 2, o = d.append("text").attr("x", c + m / 2).attr("y", g).attr("fill", f).style("text-anchor", "middle").style("font-size", i).style("font-family", a);
532
- o.append("tspan").attr("x", c + m / 2).attr("dy", y).text(h[u]), o.attr("y", g + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, x);
533
- }
534
- }
535
- s(t, "byTspan");
536
- function e(r, d, c, g, m, p, x, _) {
537
- const f = d.append("switch"), a = f.append("foreignObject").attr("x", c).attr("y", g).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
538
- a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(r), t(r, f, c, g, m, p, x, _), l(a, x);
539
- }
540
- s(e, "byFo");
541
- function l(r, d) {
542
- for (const c in d)
543
- c in d && r.attr(c, d[c]);
544
- }
545
- return s(l, "_setTextAttrs"), function(r) {
546
- return r.textPlacement === "fo" ? e : r.textPlacement === "old" ? n : t;
547
- };
548
- }(), Rt = /* @__PURE__ */ s(function(n) {
549
- n.append("defs").append("marker").attr("id", "arrowhead").attr("refX", 5).attr("refY", 2).attr("markerWidth", 6).attr("markerHeight", 4).attr("orient", "auto").append("path").attr("d", "M 0,0 V 4 L6,2 Z");
550
- }, "initGraphics");
551
- function tt(n, t) {
552
- n.each(function() {
553
- var e = q(this), l = e.text().split(/(\s+|<br>)/).reverse(), r, d = [], c = 1.1, g = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", g).attr("dy", m + "em");
554
- for (let x = 0; x < l.length; x++)
555
- r = l[l.length - 1 - x], d.push(r), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || r === "<br>") && (d.pop(), p.text(d.join(" ").trim()), r === "<br>" ? d = [""] : d = [r], p = e.append("tspan").attr("x", 0).attr("y", g).attr("dy", c + "em").text(r));
556
- });
557
- }
558
- s(tt, "wrap");
559
- var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
560
- var _;
561
- const r = e % Nt - 1, d = n.append("g");
562
- t.section = r, d.attr(
563
- "class",
564
- (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + r)
565
- );
566
- const c = d.append("g"), g = d.append("g"), p = g.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), x = (_ = l.fontSize) != null && _.replace ? l.fontSize.replace("px", "") : l.fontSize;
567
- return t.height = p.height + x * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, g.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Vt(c, t, r, l), t;
568
- }, "drawNode"), zt = /* @__PURE__ */ s(function(n, t, e) {
569
- var g;
570
- const l = n.append("g"), d = l.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(tt, t.width).node().getBBox(), c = (g = e.fontSize) != null && g.replace ? e.fontSize.replace("px", "") : e.fontSize;
571
- return l.remove(), d.height + c * 1.1 * 0.5 + t.padding;
572
- }, "getVirtualNodeHeight"), Vt = /* @__PURE__ */ s(function(n, t, e) {
573
- n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
574
- "d",
575
- `M0 ${t.height - 5} v${-t.height + 2 * 5} q0,-5 5,-5 h${t.width - 2 * 5} q5,0 5,5 v${t.height - 5} H0 Z`
576
- ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
577
- }, "defaultBkg"), F = {
578
- drawRect: Z,
579
- drawCircle: Mt,
580
- drawSection: Pt,
581
- drawText: ft,
582
- drawLabel: $t,
583
- drawTask: Ht,
584
- drawBackgroundRect: At,
585
- getTextObj: Ct,
586
- getNoteRect: D,
587
- initGraphics: Rt,
588
- drawNode: Ft,
589
- getVirtualNodeHeight: zt
590
- }, Wt = /* @__PURE__ */ s(function(n, t, e, l) {
591
- var O, v, N;
592
- const r = _t(), d = ((O = r.timeline) == null ? void 0 : O.leftMargin) ?? 50;
593
- E.debug("timeline", l.db);
594
- const c = r.securityLevel;
595
- let g;
596
- c === "sandbox" && (g = q("#i" + t));
597
- const p = (c === "sandbox" ? q(g.nodes()[0].contentDocument.body) : q("body")).select("#" + t);
598
- p.append("g");
599
- const x = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
600
- E.debug("task", x), F.initGraphics(p);
601
- const f = l.db.getSections();
602
- E.debug("sections", f);
603
- let i = 0, a = 0, h = 0, u = 0, y = 50 + d, o = 50;
604
- u = 50;
605
- let S = 0, k = !0;
606
- f.forEach(function(L) {
607
- const b = {
608
- number: S,
609
- descr: L,
610
- section: S,
611
- width: 150,
612
- padding: 20,
613
- maxHeight: i
614
- }, $ = F.getVirtualNodeHeight(p, b, r);
615
- E.debug("sectionHeight before draw", $), i = Math.max(i, $ + 20);
616
- });
617
- let M = 0, C = 0;
618
- E.debug("tasks.length", x.length);
619
- for (const [L, b] of x.entries()) {
620
- const $ = {
621
- number: L,
622
- descr: b,
623
- section: b.section,
624
- width: 150,
625
- padding: 20,
626
- maxHeight: a
627
- }, R = F.getVirtualNodeHeight(p, $, r);
628
- E.debug("taskHeight before draw", R), a = Math.max(a, R + 20), M = Math.max(M, b.events.length);
629
- let A = 0;
630
- for (const w of b.events) {
631
- const P = {
632
- descr: w,
633
- section: b.section,
634
- number: b.section,
635
- width: 150,
636
- padding: 20,
637
- maxHeight: 50
638
- };
639
- A += F.getVirtualNodeHeight(p, P, r);
640
- }
641
- b.events.length > 0 && (A += (b.events.length - 1) * 10), C = Math.max(C, A);
642
- }
643
- E.debug("maxSectionHeight before draw", i), E.debug("maxTaskHeight before draw", a), f && f.length > 0 ? f.forEach((L) => {
644
- const b = x.filter((w) => w.section === L), $ = {
645
- number: S,
646
- descr: L,
647
- section: S,
648
- width: 200 * Math.max(b.length, 1) - 50,
649
- padding: 20,
650
- maxHeight: i
651
- };
652
- E.debug("sectionNode", $);
653
- const R = p.append("g"), A = F.drawNode(R, $, S, r);
654
- E.debug("sectionNode output", A), R.attr("transform", `translate(${y}, ${u})`), o += i + 50, b.length > 0 && st(
655
- p,
656
- b,
657
- S,
658
- y,
659
- o,
660
- a,
661
- r,
662
- M,
663
- C,
664
- i,
665
- !1
666
- ), y += 200 * Math.max(b.length, 1), o = u, S++;
667
- }) : (k = !1, st(
668
- p,
669
- x,
670
- S,
671
- y,
672
- o,
673
- a,
674
- r,
675
- M,
676
- C,
677
- i,
678
- !0
679
- ));
680
- const B = p.node().getBBox();
681
- E.debug("bounds", B), _ && p.append("text").text(_).attr("x", B.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), h = k ? i + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", h).attr("x2", B.width + 3 * d).attr("y2", h).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), bt(
682
- void 0,
683
- p,
684
- ((v = r.timeline) == null ? void 0 : v.padding) ?? 50,
685
- ((N = r.timeline) == null ? void 0 : N.useMaxWidth) ?? !1
686
- );
687
- }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, r, d, c, g, m, p, x) {
688
- var _;
689
- for (const f of t) {
690
- const i = {
691
- descr: f.task,
692
- section: e,
693
- number: e,
694
- width: 150,
695
- padding: 20,
696
- maxHeight: d
697
- };
698
- E.debug("taskNode", i);
699
- const a = n.append("g").attr("class", "taskWrapper"), u = F.drawNode(a, i, e, c).height;
700
- if (E.debug("taskHeight after draw", u), a.attr("transform", `translate(${l}, ${r})`), d = Math.max(d, u), f.events) {
701
- const y = n.append("g").attr("class", "lineWrapper");
702
- let o = d;
703
- r += 100, o = o + Bt(n, f.events, e, l, r, c), r -= 100, y.append("line").attr("x1", l + 190 / 2).attr("y1", r + d).attr("x2", l + 190 / 2).attr("y2", r + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
704
- }
705
- l = l + 200, x && !((_ = c.timeline) != null && _.disableMulticolor) && e++;
706
- }
707
- r = r - 10;
708
- }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, r, d) {
709
- let c = 0;
710
- const g = r;
711
- r = r + 100;
712
- for (const m of t) {
713
- const p = {
714
- descr: m,
715
- section: e,
716
- number: e,
717
- width: 150,
718
- padding: 20,
719
- maxHeight: 50
720
- };
721
- E.debug("eventNode", p);
722
- const x = n.append("g").attr("class", "eventWrapper"), f = F.drawNode(x, p, e, d).height;
723
- c = c + f, x.attr("transform", `translate(${l}, ${r})`), r = r + 10 + f;
724
- }
725
- return r = g, c;
726
- }, "drawEvents"), Ot = {
727
- setConf: /* @__PURE__ */ s(() => {
728
- }, "setConf"),
729
- draw: Wt
730
- }, jt = /* @__PURE__ */ s((n) => {
731
- let t = "";
732
- for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
733
- n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], wt(n["lineColor" + e]) ? n["lineColor" + e] = St(n["lineColor" + e], 20) : n["lineColor" + e] = Et(n["lineColor" + e], 20);
734
- for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
735
- const l = "" + (17 - 3 * e);
736
- t += `
737
- .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
738
- fill: ${n["cScale" + e]};
739
- }
740
- .section-${e - 1} text {
741
- fill: ${n["cScaleLabel" + e]};
742
- }
743
- .node-icon-${e - 1} {
744
- font-size: 40px;
745
- color: ${n["cScaleLabel" + e]};
746
- }
747
- .section-edge-${e - 1}{
748
- stroke: ${n["cScale" + e]};
749
- }
750
- .edge-depth-${e - 1}{
751
- stroke-width: ${l};
752
- }
753
- .section-${e - 1} line {
754
- stroke: ${n["cScaleInv" + e]} ;
755
- stroke-width: 3;
756
- }
757
-
758
- .lineWrapper line{
759
- stroke: ${n["cScaleLabel" + e]} ;
760
- }
761
-
762
- .disabled, .disabled circle, .disabled text {
763
- fill: lightgray;
764
- }
765
- .disabled text {
766
- fill: #efefef;
767
- }
768
- `;
769
- }
770
- return t;
771
- }, "genSections"), Gt = /* @__PURE__ */ s((n) => `
772
- .edge {
773
- stroke-width: 3;
774
- }
775
- ${jt(n)}
776
- .section-root rect, .section-root path, .section-root circle {
777
- fill: ${n.git0};
778
- }
779
- .section-root text {
780
- fill: ${n.gitBranchLabel0};
781
- }
782
- .icon-container {
783
- height:100%;
784
- display: flex;
785
- justify-content: center;
786
- align-items: center;
787
- }
788
- .edge {
789
- fill: none;
790
- }
791
- .eventWrapper {
792
- filter: brightness(120%);
793
- }
794
- `, "getStyles"), qt = Gt, Jt = {
795
- db: at,
796
- renderer: Ot,
797
- parser: Tt,
798
- styles: qt
799
- };
800
- export {
801
- Jt as diagram
802
- };