sparkdesign 0.4.1 → 0.4.3

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 (452) hide show
  1. package/README.md +112 -204
  2. package/{cli/dist → dist}/commands/add.js +11 -2
  3. package/package.json +19 -126
  4. package/{cli/registry → registry}/chat/markdown.tsx +1 -1
  5. package/{cli/registry → registry}/chat/tool-invocation-card.tsx +5 -5
  6. package/registry/meta.json +750 -0
  7. package/cli/registry/meta.json +0 -1
  8. package/dist/_basePickBy-DnQN8w3y.js +0 -151
  9. package/dist/_basePickBy-a-kPMlkg.cjs +0 -1
  10. package/dist/_baseUniq-B-N2NQ50.js +0 -614
  11. package/dist/_baseUniq-Cc_zbSif.cjs +0 -1
  12. package/dist/arc-BQBhijZ6.js +0 -83
  13. package/dist/arc-mWQt0Yph.cjs +0 -1
  14. package/dist/architectureDiagram-VXUJARFQ-BMZEucno.cjs +0 -36
  15. package/dist/architectureDiagram-VXUJARFQ-DTdjD3Bp.js +0 -4661
  16. package/dist/blockDiagram-VD42YOAC-CzHn0yob.js +0 -2256
  17. package/dist/blockDiagram-VD42YOAC-DDxdHAlz.cjs +0 -122
  18. package/dist/c4Diagram-YG6GDRKO-4Gz0I4gj.cjs +0 -10
  19. package/dist/c4Diagram-YG6GDRKO-BIy--yVN.js +0 -1580
  20. package/dist/channel-BQn0o8bs.js +0 -5
  21. package/dist/channel-DaN7XniJ.cjs +0 -1
  22. package/dist/chunk-4BX2VUAB-BlQFTQqz.cjs +0 -1
  23. package/dist/chunk-4BX2VUAB-Czitj3Kc.js +0 -8
  24. package/dist/chunk-55IACEB6-DXacNZbO.js +0 -8
  25. package/dist/chunk-55IACEB6-DnDxpye9.cjs +0 -1
  26. package/dist/chunk-B4BG7PRW-CBdN0q_V.js +0 -1375
  27. package/dist/chunk-B4BG7PRW-DbGvUkGO.cjs +0 -165
  28. package/dist/chunk-DI55MBZ5-D1YJMs6x.cjs +0 -220
  29. package/dist/chunk-DI55MBZ5-NCQTvayw.js +0 -1370
  30. package/dist/chunk-FMBD7UC4-CsGMbrtr.js +0 -19
  31. package/dist/chunk-FMBD7UC4-Di7cUUh5.cjs +0 -15
  32. package/dist/chunk-QN33PNHL-0j5LC8Lm.cjs +0 -1
  33. package/dist/chunk-QN33PNHL-3GERZBRm.js +0 -19
  34. package/dist/chunk-QZHKN3VN-AVEY9ImQ.js +0 -15
  35. package/dist/chunk-QZHKN3VN-s8Z0a8mc.cjs +0 -1
  36. package/dist/chunk-TZMSLE5B-CAf87HPt.cjs +0 -1
  37. package/dist/chunk-TZMSLE5B-sbiflal0.js +0 -64
  38. package/dist/classDiagram-2ON5EDUG-Ct9JLIN2.cjs +0 -1
  39. package/dist/classDiagram-2ON5EDUG-Dzfrft3a.js +0 -16
  40. package/dist/classDiagram-v2-WZHVMYZB-Ct9JLIN2.cjs +0 -1
  41. package/dist/classDiagram-v2-WZHVMYZB-Dzfrft3a.js +0 -16
  42. package/dist/clone-Cde_NQ8V.js +0 -8
  43. package/dist/clone-DCNjWuM2.cjs +0 -1
  44. package/dist/cose-bilkent-S5V4N54A-0uLijMro.cjs +0 -1
  45. package/dist/cose-bilkent-S5V4N54A-Bb08N431.js +0 -2608
  46. package/dist/cytoscape.esm-CNUX3VTg.cjs +0 -321
  47. package/dist/cytoscape.esm-Cvf3sx9F.js +0 -18704
  48. package/dist/dagre-6UL2VRFP-CY_Wz5Zd.js +0 -444
  49. package/dist/dagre-6UL2VRFP-Dxe7_qZc.cjs +0 -4
  50. package/dist/defaultLocale-BgPVtth8.js +0 -171
  51. package/dist/defaultLocale-C4wbwF1n.cjs +0 -1
  52. package/dist/diagram-PSM6KHXK-D2bdb7MT.js +0 -531
  53. package/dist/diagram-PSM6KHXK-YF69SUjY.cjs +0 -24
  54. package/dist/diagram-QEK2KX5R-BpUSoh0-.js +0 -217
  55. package/dist/diagram-QEK2KX5R-DZPGteon.cjs +0 -43
  56. package/dist/diagram-S2PKOQOG-ht-zdvFG.cjs +0 -24
  57. package/dist/diagram-S2PKOQOG-zFeLJ50Z.js +0 -142
  58. package/dist/erDiagram-Q2GNP2WA-B38iJ6ts.js +0 -841
  59. package/dist/erDiagram-Q2GNP2WA-RgS80DDU.cjs +0 -60
  60. package/dist/flowDiagram-NV44I4VS-BHilOs2p.cjs +0 -162
  61. package/dist/flowDiagram-NV44I4VS-BrBJcoce.js +0 -1620
  62. package/dist/fonts/KaTeX_AMS-Regular.ttf +0 -0
  63. package/dist/fonts/KaTeX_AMS-Regular.woff +0 -0
  64. package/dist/fonts/KaTeX_AMS-Regular.woff2 +0 -0
  65. package/dist/fonts/KaTeX_Caligraphic-Bold.ttf +0 -0
  66. package/dist/fonts/KaTeX_Caligraphic-Bold.woff +0 -0
  67. package/dist/fonts/KaTeX_Caligraphic-Bold.woff2 +0 -0
  68. package/dist/fonts/KaTeX_Caligraphic-Regular.ttf +0 -0
  69. package/dist/fonts/KaTeX_Caligraphic-Regular.woff +0 -0
  70. package/dist/fonts/KaTeX_Caligraphic-Regular.woff2 +0 -0
  71. package/dist/fonts/KaTeX_Fraktur-Bold.ttf +0 -0
  72. package/dist/fonts/KaTeX_Fraktur-Bold.woff +0 -0
  73. package/dist/fonts/KaTeX_Fraktur-Bold.woff2 +0 -0
  74. package/dist/fonts/KaTeX_Fraktur-Regular.ttf +0 -0
  75. package/dist/fonts/KaTeX_Fraktur-Regular.woff +0 -0
  76. package/dist/fonts/KaTeX_Fraktur-Regular.woff2 +0 -0
  77. package/dist/fonts/KaTeX_Main-Bold.ttf +0 -0
  78. package/dist/fonts/KaTeX_Main-Bold.woff +0 -0
  79. package/dist/fonts/KaTeX_Main-Bold.woff2 +0 -0
  80. package/dist/fonts/KaTeX_Main-BoldItalic.ttf +0 -0
  81. package/dist/fonts/KaTeX_Main-BoldItalic.woff +0 -0
  82. package/dist/fonts/KaTeX_Main-BoldItalic.woff2 +0 -0
  83. package/dist/fonts/KaTeX_Main-Italic.ttf +0 -0
  84. package/dist/fonts/KaTeX_Main-Italic.woff +0 -0
  85. package/dist/fonts/KaTeX_Main-Italic.woff2 +0 -0
  86. package/dist/fonts/KaTeX_Main-Regular.ttf +0 -0
  87. package/dist/fonts/KaTeX_Main-Regular.woff +0 -0
  88. package/dist/fonts/KaTeX_Main-Regular.woff2 +0 -0
  89. package/dist/fonts/KaTeX_Math-BoldItalic.ttf +0 -0
  90. package/dist/fonts/KaTeX_Math-BoldItalic.woff +0 -0
  91. package/dist/fonts/KaTeX_Math-BoldItalic.woff2 +0 -0
  92. package/dist/fonts/KaTeX_Math-Italic.ttf +0 -0
  93. package/dist/fonts/KaTeX_Math-Italic.woff +0 -0
  94. package/dist/fonts/KaTeX_Math-Italic.woff2 +0 -0
  95. package/dist/fonts/KaTeX_SansSerif-Bold.ttf +0 -0
  96. package/dist/fonts/KaTeX_SansSerif-Bold.woff +0 -0
  97. package/dist/fonts/KaTeX_SansSerif-Bold.woff2 +0 -0
  98. package/dist/fonts/KaTeX_SansSerif-Italic.ttf +0 -0
  99. package/dist/fonts/KaTeX_SansSerif-Italic.woff +0 -0
  100. package/dist/fonts/KaTeX_SansSerif-Italic.woff2 +0 -0
  101. package/dist/fonts/KaTeX_SansSerif-Regular.ttf +0 -0
  102. package/dist/fonts/KaTeX_SansSerif-Regular.woff +0 -0
  103. package/dist/fonts/KaTeX_SansSerif-Regular.woff2 +0 -0
  104. package/dist/fonts/KaTeX_Script-Regular.ttf +0 -0
  105. package/dist/fonts/KaTeX_Script-Regular.woff +0 -0
  106. package/dist/fonts/KaTeX_Script-Regular.woff2 +0 -0
  107. package/dist/fonts/KaTeX_Size1-Regular.ttf +0 -0
  108. package/dist/fonts/KaTeX_Size1-Regular.woff +0 -0
  109. package/dist/fonts/KaTeX_Size1-Regular.woff2 +0 -0
  110. package/dist/fonts/KaTeX_Size2-Regular.ttf +0 -0
  111. package/dist/fonts/KaTeX_Size2-Regular.woff +0 -0
  112. package/dist/fonts/KaTeX_Size2-Regular.woff2 +0 -0
  113. package/dist/fonts/KaTeX_Size3-Regular.ttf +0 -0
  114. package/dist/fonts/KaTeX_Size3-Regular.woff +0 -0
  115. package/dist/fonts/KaTeX_Size3-Regular.woff2 +0 -0
  116. package/dist/fonts/KaTeX_Size4-Regular.ttf +0 -0
  117. package/dist/fonts/KaTeX_Size4-Regular.woff +0 -0
  118. package/dist/fonts/KaTeX_Size4-Regular.woff2 +0 -0
  119. package/dist/fonts/KaTeX_Typewriter-Regular.ttf +0 -0
  120. package/dist/fonts/KaTeX_Typewriter-Regular.woff +0 -0
  121. package/dist/fonts/KaTeX_Typewriter-Regular.woff2 +0 -0
  122. package/dist/ganttDiagram-JELNMOA3-pZiJeFio.cjs +0 -267
  123. package/dist/ganttDiagram-JELNMOA3-tw6FhkWJ.js +0 -2670
  124. package/dist/gitGraphDiagram-V2S2FVAM-BWn5uIK5.js +0 -699
  125. package/dist/gitGraphDiagram-V2S2FVAM-DKKeG-9R.cjs +0 -65
  126. package/dist/graph-DIbblrZP.cjs +0 -1
  127. package/dist/graph-DPcK91G3.js +0 -247
  128. package/dist/infoDiagram-HS3SLOUP-B8gwwhct.cjs +0 -2
  129. package/dist/infoDiagram-HS3SLOUP-D47PNcP_.js +0 -24
  130. package/dist/init-CHZsXQcr.cjs +0 -1
  131. package/dist/init-DjUOC4st.js +0 -16
  132. package/dist/journeyDiagram-XKPGCS4Q-BG3cfhyU.js +0 -834
  133. package/dist/journeyDiagram-XKPGCS4Q-D8DVLJof.cjs +0 -139
  134. package/dist/kanban-definition-3W4ZIXB7-4OCnEouP.cjs +0 -89
  135. package/dist/kanban-definition-3W4ZIXB7-CWi_ssF9.js +0 -719
  136. package/dist/katex.css +0 -1
  137. package/dist/layout-Byuh8f-J.cjs +0 -1
  138. package/dist/layout-CdLdvj1j.js +0 -1335
  139. package/dist/linear-C2Q_PI9B.js +0 -259
  140. package/dist/linear-C69aPBW1.cjs +0 -1
  141. package/dist/mermaid.core-DBwAx_jp.cjs +0 -249
  142. package/dist/mermaid.core-gFR0XUlD.js +0 -15300
  143. package/dist/mindmap-definition-VGOIOE7T-8P7obVV4.cjs +0 -68
  144. package/dist/mindmap-definition-VGOIOE7T-DnOa7WJ9.js +0 -784
  145. package/dist/ordinal-B6-f3MAq.js +0 -61
  146. package/dist/ordinal-CagbB1m8.cjs +0 -1
  147. package/dist/pieDiagram-ADFJNKIX-5NAlvhMo.js +0 -161
  148. package/dist/pieDiagram-ADFJNKIX-CQBG4yR9.cjs +0 -30
  149. package/dist/qoder-design.css +0 -2
  150. package/dist/quadrantDiagram-AYHSOK5B-Oe4y7RZ0.cjs +0 -7
  151. package/dist/quadrantDiagram-AYHSOK5B-rh2DPEP1.js +0 -1022
  152. package/dist/registry/basic/alert-dialog.d.ts +0 -40
  153. package/dist/registry/basic/avatar.d.ts +0 -30
  154. package/dist/registry/basic/button.d.ts +0 -16
  155. package/dist/registry/basic/collapse.d.ts +0 -22
  156. package/dist/registry/basic/collapsible-card.d.ts +0 -34
  157. package/dist/registry/basic/collapsible.d.ts +0 -15
  158. package/dist/registry/basic/dropdown-menu.d.ts +0 -52
  159. package/dist/registry/basic/icon-button.d.ts +0 -12
  160. package/dist/registry/basic/icons-inline.d.ts +0 -51
  161. package/dist/registry/basic/kbd.d.ts +0 -23
  162. package/dist/registry/basic/option-list.d.ts +0 -16
  163. package/dist/registry/basic/pagination.d.ts +0 -33
  164. package/dist/registry/basic/progress.d.ts +0 -18
  165. package/dist/registry/basic/radio-group.d.ts +0 -25
  166. package/dist/registry/basic/resizable.d.ts +0 -318
  167. package/dist/registry/basic/scrollbar.d.ts +0 -12
  168. package/dist/registry/basic/select.d.ts +0 -35
  169. package/dist/registry/basic/shimmering-text.d.ts +0 -27
  170. package/dist/registry/basic/sidebar-menu.d.ts +0 -23
  171. package/dist/registry/basic/skeleton.d.ts +0 -10
  172. package/dist/registry/basic/slider.d.ts +0 -16
  173. package/dist/registry/basic/sonner.d.ts +0 -23
  174. package/dist/registry/basic/spinner.d.ts +0 -5
  175. package/dist/registry/basic/switch.d.ts +0 -20
  176. package/dist/registry/basic/table.d.ts +0 -18
  177. package/dist/registry/basic/tabs.d.ts +0 -29
  178. package/dist/registry/basic/tag.d.ts +0 -23
  179. package/dist/registry/basic/theme-from-document.d.ts +0 -10
  180. package/dist/registry/basic/toggle.d.ts +0 -29
  181. package/dist/registry/basic/tooltip.d.ts +0 -34
  182. package/dist/registry/basic/typography.d.ts +0 -76
  183. package/dist/registry/chat/ask-user-part.d.ts +0 -24
  184. package/dist/registry/chat/browser-action-part.d.ts +0 -28
  185. package/dist/registry/chat/chat-input/chat-input-folder-selector.d.ts +0 -22
  186. package/dist/registry/chat/chat-input/chat-input-model-switcher.d.ts +0 -12
  187. package/dist/registry/chat/chat-input/chat-input-textarea.d.ts +0 -9
  188. package/dist/registry/chat/chat-input/compound.d.ts +0 -97
  189. package/dist/registry/chat/chat-input/context.d.ts +0 -64
  190. package/dist/registry/chat/chat-input/folder-permission-dialog.d.ts +0 -11
  191. package/dist/registry/chat/chat-input/index.d.ts +0 -34
  192. package/dist/registry/chat/chat-input/types.d.ts +0 -79
  193. package/dist/registry/chat/chat-input/useAutoResizeTextarea.d.ts +0 -7
  194. package/dist/registry/chat/code-block-part.d.ts +0 -23
  195. package/dist/registry/chat/file-attachment.d.ts +0 -19
  196. package/dist/registry/chat/file-card.d.ts +0 -10
  197. package/dist/registry/chat/file-review-part.d.ts +0 -30
  198. package/dist/registry/chat/folder-button.d.ts +0 -20
  199. package/dist/registry/chat/generated-images-grid.d.ts +0 -15
  200. package/dist/registry/chat/generation-status-bar.d.ts +0 -19
  201. package/dist/registry/chat/hint-banner.d.ts +0 -28
  202. package/dist/registry/chat/image-attachment.d.ts +0 -19
  203. package/dist/registry/chat/image-generating.d.ts +0 -15
  204. package/dist/registry/chat/markdown.d.ts +0 -8
  205. package/dist/registry/chat/mermaid-part.d.ts +0 -17
  206. package/dist/registry/chat/permission-card.d.ts +0 -24
  207. package/dist/registry/chat/plan-part.d.ts +0 -30
  208. package/dist/registry/chat/queue-indicator.d.ts +0 -27
  209. package/dist/registry/chat/reasoning-step/compound.d.ts +0 -17
  210. package/dist/registry/chat/reasoning-step/context.d.ts +0 -10
  211. package/dist/registry/chat/reasoning-step/index.d.ts +0 -14
  212. package/dist/registry/chat/reasoning-step/types.d.ts +0 -95
  213. package/dist/registry/chat/related-prompts.d.ts +0 -23
  214. package/dist/registry/chat/response/compound.d.ts +0 -25
  215. package/dist/registry/chat/response/context.d.ts +0 -9
  216. package/dist/registry/chat/response/index.d.ts +0 -15
  217. package/dist/registry/chat/response/types.d.ts +0 -99
  218. package/dist/registry/chat/send-button.d.ts +0 -17
  219. package/dist/registry/chat/streaming-markdown-block.d.ts +0 -8
  220. package/dist/registry/chat/task-part.d.ts +0 -28
  221. package/dist/registry/chat/terminal-code-block-part.d.ts +0 -18
  222. package/dist/registry/chat/thinking-indicator.d.ts +0 -14
  223. package/dist/registry/chat/tool-invocation-card.d.ts +0 -20
  224. package/dist/registry/chat/user-message.d.ts +0 -6
  225. package/dist/registry/chat/user-question/UserQuestionCard.d.ts +0 -30
  226. package/dist/registry/chat/user-question/UserQuestionFooter.d.ts +0 -18
  227. package/dist/registry/chat/user-question/UserQuestionHeader.d.ts +0 -20
  228. package/dist/registry/chat/user-question/compound.d.ts +0 -37
  229. package/dist/registry/chat/user-question/context.d.ts +0 -55
  230. package/dist/registry/chat/user-question/index.d.ts +0 -15
  231. package/dist/registry/chat/user-question/types.d.ts +0 -52
  232. package/dist/registry/chat/user-question/useUserQuestionKeyboard.d.ts +0 -17
  233. package/dist/registry/chat/user-question/useUserQuestionState.d.ts +0 -26
  234. package/dist/registry/chat/user-question-answer.d.ts +0 -13
  235. package/dist/registry/lib/file-icon-maps.d.ts +0 -20
  236. package/dist/registry/lib/use-mermaid-render.d.ts +0 -5
  237. package/dist/registry/lib/utils.d.ts +0 -11
  238. package/dist/requirementDiagram-UZGBJVZJ-DcWaCuXr.js +0 -850
  239. package/dist/requirementDiagram-UZGBJVZJ-gfdlrFiq.cjs +0 -64
  240. package/dist/sankeyDiagram-TZEHDZUN-CQIKFwD0.js +0 -810
  241. package/dist/sankeyDiagram-TZEHDZUN-DvPtzQvC.cjs +0 -10
  242. package/dist/scale/computed.css +0 -103
  243. package/dist/scale/config.css +0 -110
  244. package/dist/scale/index.css +0 -30
  245. package/dist/scale/presets/compact.css +0 -30
  246. package/dist/scale/presets/dense.css +0 -64
  247. package/dist/scale/presets/sharp.css +0 -40
  248. package/dist/scale/presets/soft.css +0 -16
  249. package/dist/scale.css +0 -13
  250. package/dist/sequenceDiagram-WL72ISMW-BNrsMagL.cjs +0 -145
  251. package/dist/sequenceDiagram-WL72ISMW-iCX3ckKx.js +0 -2511
  252. package/dist/spark-design.cjs.js +0 -265
  253. package/dist/spark-design.es.js +0 -13425
  254. package/dist/src/components/basic/AlertDialog/index.d.ts +0 -20
  255. package/dist/src/components/basic/Avatar/index.d.ts +0 -7
  256. package/dist/src/components/basic/Button/index.d.ts +0 -7
  257. package/dist/src/components/basic/Collapse/index.d.ts +0 -15
  258. package/dist/src/components/basic/Collapsible/index.d.ts +0 -7
  259. package/dist/src/components/basic/CollapsibleCard/index.d.ts +0 -7
  260. package/dist/src/components/basic/CollapsibleSection/index.d.ts +0 -43
  261. package/dist/src/components/basic/DropdownMenu/index.d.ts +0 -19
  262. package/dist/src/components/basic/EllipsisText/index.d.ts +0 -53
  263. package/dist/src/components/basic/IconButton/index.d.ts +0 -7
  264. package/dist/src/components/basic/Kbd/index.d.ts +0 -7
  265. package/dist/src/components/basic/OptionList/index.d.ts +0 -7
  266. package/dist/src/components/basic/Pagination/index.d.ts +0 -7
  267. package/dist/src/components/basic/Progress/index.d.ts +0 -7
  268. package/dist/src/components/basic/RadioGroup/index.d.ts +0 -7
  269. package/dist/src/components/basic/Resizable/index.d.ts +0 -7
  270. package/dist/src/components/basic/Scrollbar/index.d.ts +0 -7
  271. package/dist/src/components/basic/Select/index.d.ts +0 -17
  272. package/dist/src/components/basic/ShimmeringText/index.d.ts +0 -7
  273. package/dist/src/components/basic/SidebarMenu/index.d.ts +0 -4
  274. package/dist/src/components/basic/Skeleton/index.d.ts +0 -7
  275. package/dist/src/components/basic/Slider/index.d.ts +0 -7
  276. package/dist/src/components/basic/Spinner/index.d.ts +0 -7
  277. package/dist/src/components/basic/Switch/index.d.ts +0 -38
  278. package/dist/src/components/basic/Table/index.d.ts +0 -7
  279. package/dist/src/components/basic/Tabs/index.d.ts +0 -7
  280. package/dist/src/components/basic/Tag/index.d.ts +0 -10
  281. package/dist/src/components/basic/Toast/index.d.ts +0 -12
  282. package/dist/src/components/basic/Toggle/index.d.ts +0 -7
  283. package/dist/src/components/basic/Tooltip/index.d.ts +0 -21
  284. package/dist/src/components/basic/Typography/index.d.ts +0 -7
  285. package/dist/src/components/chat/AskUserPart/index.d.ts +0 -6
  286. package/dist/src/components/chat/BrowserActionPart/index.d.ts +0 -7
  287. package/dist/src/components/chat/ChatInput/index.d.ts +0 -29
  288. package/dist/src/components/chat/CodeBlockPart/index.d.ts +0 -7
  289. package/dist/src/components/chat/FileAttachment/index.d.ts +0 -3
  290. package/dist/src/components/chat/FileCard/index.d.ts +0 -3
  291. package/dist/src/components/chat/FileReviewPart/index.d.ts +0 -7
  292. package/dist/src/components/chat/FolderButton/index.d.ts +0 -5
  293. package/dist/src/components/chat/GeneratedImagesGrid/index.d.ts +0 -7
  294. package/dist/src/components/chat/GenerationStatusBar/index.d.ts +0 -7
  295. package/dist/src/components/chat/HintBanner/index.d.ts +0 -6
  296. package/dist/src/components/chat/ImageAttachment/index.d.ts +0 -3
  297. package/dist/src/components/chat/ImageGenerating/index.d.ts +0 -6
  298. package/dist/src/components/chat/Markdown/demo-content.d.ts +0 -1
  299. package/dist/src/components/chat/Markdown/index.d.ts +0 -7
  300. package/dist/src/components/chat/MermaidPart/index.d.ts +0 -6
  301. package/dist/src/components/chat/PermissionCard/index.d.ts +0 -4
  302. package/dist/src/components/chat/PlanPart/index.d.ts +0 -6
  303. package/dist/src/components/chat/QueueIndicator/index.d.ts +0 -4
  304. package/dist/src/components/chat/ReasoningStep/index.d.ts +0 -13
  305. package/dist/src/components/chat/RelatedPrompts/index.d.ts +0 -6
  306. package/dist/src/components/chat/Response/StreamingMarkdownBlock.d.ts +0 -6
  307. package/dist/src/components/chat/Response/index.d.ts +0 -16
  308. package/dist/src/components/chat/SendButton/index.d.ts +0 -5
  309. package/dist/src/components/chat/TaskPart/index.d.ts +0 -7
  310. package/dist/src/components/chat/TerminalCodeBlockPart/index.d.ts +0 -6
  311. package/dist/src/components/chat/ThinkingIndicator/index.d.ts +0 -6
  312. package/dist/src/components/chat/ToolInvocationCard/index.d.ts +0 -4
  313. package/dist/src/components/chat/UserMessage/index.d.ts +0 -7
  314. package/dist/src/components/chat/UserQuestion/index.d.ts +0 -19
  315. package/dist/src/components/chat/UserQuestionAnswer/index.d.ts +0 -3
  316. package/dist/src/components/index.d.ts +0 -138
  317. package/dist/src/icons/context.d.ts +0 -26
  318. package/dist/src/icons/types.d.ts +0 -18
  319. package/dist/src/lib/ThemeStyleContext.d.ts +0 -21
  320. package/dist/src/lib/file-icon.d.ts +0 -16
  321. package/dist/src/lib/i18n.d.ts +0 -12
  322. package/dist/src/lib/index.d.ts +0 -10
  323. package/dist/src/lib/motion.d.ts +0 -22
  324. package/dist/src/lib/utils.d.ts +0 -11
  325. package/dist/stateDiagram-FKZM4ZOC-DBvJ_eeL.cjs +0 -1
  326. package/dist/stateDiagram-FKZM4ZOC-ZVsJlaHJ.js +0 -263
  327. package/dist/stateDiagram-v2-4FDKWEC3-CB_nTHcE.js +0 -16
  328. package/dist/stateDiagram-v2-4FDKWEC3-Xkx17v6T.cjs +0 -1
  329. package/dist/theme-base.css +0 -270
  330. package/dist/theme.css +0 -17
  331. package/dist/themes/dark-parchment.css +0 -133
  332. package/dist/themes/dark-qoder.css +0 -133
  333. package/dist/themes/light-parchment.css +0 -124
  334. package/dist/themes/light-qoder.css +0 -132
  335. package/dist/timeline-definition-IT6M3QCI-BmGkYQiz.cjs +0 -61
  336. package/dist/timeline-definition-IT6M3QCI-Ck8zTt6w.js +0 -795
  337. package/dist/tokens/index.css +0 -35
  338. package/dist/treemap-GDKQZRPO-B9sfERx8.js +0 -17922
  339. package/dist/treemap-GDKQZRPO-BVfJRs0Z.cjs +0 -160
  340. package/dist/xychartDiagram-PRI3JC2R-By_S8NzN.js +0 -1340
  341. package/dist/xychartDiagram-PRI3JC2R-CNfDrGxM.cjs +0 -7
  342. /package/{cli/dist → dist}/commands/diff.js +0 -0
  343. /package/{cli/dist → dist}/commands/init.js +0 -0
  344. /package/{cli/dist → dist}/commands/list.js +0 -0
  345. /package/{cli/dist → dist}/index.js +0 -0
  346. /package/{cli/dist → dist}/utils/config.js +0 -0
  347. /package/{cli/dist → dist}/utils/registry.js +0 -0
  348. /package/{cli/dist → dist}/utils/tokens.js +0 -0
  349. /package/{cli/dist → dist}/utils/transform.js +0 -0
  350. /package/{cli/registry → registry}/__tests__/basic/button.test.tsx +0 -0
  351. /package/{cli/registry → registry}/__tests__/chat/markdown.test.tsx +0 -0
  352. /package/{cli/registry → registry}/__tests__/chat/thinking-indicator.test.tsx +0 -0
  353. /package/{cli/registry → registry}/__tests__/chat/tool-invocation-card.test.tsx +0 -0
  354. /package/{cli/registry → registry}/basic/alert-dialog.tsx +0 -0
  355. /package/{cli/registry → registry}/basic/avatar.tsx +0 -0
  356. /package/{cli/registry → registry}/basic/button.tsx +0 -0
  357. /package/{cli/registry → registry}/basic/collapse.tsx +0 -0
  358. /package/{cli/registry → registry}/basic/collapsible-card.tsx +0 -0
  359. /package/{cli/registry → registry}/basic/collapsible.tsx +0 -0
  360. /package/{cli/registry → registry}/basic/dropdown-menu.tsx +0 -0
  361. /package/{cli/registry → registry}/basic/icon-button.tsx +0 -0
  362. /package/{cli/registry → registry}/basic/icons-inline.tsx +0 -0
  363. /package/{cli/registry → registry}/basic/kbd.tsx +0 -0
  364. /package/{cli/registry → registry}/basic/option-list.tsx +0 -0
  365. /package/{cli/registry → registry}/basic/pagination.tsx +0 -0
  366. /package/{cli/registry → registry}/basic/progress.tsx +0 -0
  367. /package/{cli/registry → registry}/basic/radio-group.tsx +0 -0
  368. /package/{cli/registry → registry}/basic/resizable.tsx +0 -0
  369. /package/{cli/registry → registry}/basic/scrollbar.tsx +0 -0
  370. /package/{cli/registry → registry}/basic/select.tsx +0 -0
  371. /package/{cli/registry → registry}/basic/shimmering-text.tsx +0 -0
  372. /package/{cli/registry → registry}/basic/sidebar-menu.tsx +0 -0
  373. /package/{cli/registry → registry}/basic/skeleton.tsx +0 -0
  374. /package/{cli/registry → registry}/basic/slider.tsx +0 -0
  375. /package/{cli/registry → registry}/basic/sonner.tsx +0 -0
  376. /package/{cli/registry → registry}/basic/spinner.tsx +0 -0
  377. /package/{cli/registry → registry}/basic/switch.tsx +0 -0
  378. /package/{cli/registry → registry}/basic/table.tsx +0 -0
  379. /package/{cli/registry → registry}/basic/tabs.tsx +0 -0
  380. /package/{cli/registry → registry}/basic/tag.tsx +0 -0
  381. /package/{cli/registry → registry}/basic/theme-from-document.ts +0 -0
  382. /package/{cli/registry → registry}/basic/toggle.tsx +0 -0
  383. /package/{cli/registry → registry}/basic/tooltip.tsx +0 -0
  384. /package/{cli/registry → registry}/basic/typography.tsx +0 -0
  385. /package/{cli/registry → registry}/chat/ask-user-part.tsx +0 -0
  386. /package/{cli/registry → registry}/chat/browser-action-part.tsx +0 -0
  387. /package/{cli/registry → registry}/chat/chat-input/chat-input-folder-selector.tsx +0 -0
  388. /package/{cli/registry → registry}/chat/chat-input/chat-input-model-switcher.tsx +0 -0
  389. /package/{cli/registry → registry}/chat/chat-input/chat-input-textarea.tsx +0 -0
  390. /package/{cli/registry → registry}/chat/chat-input/compound.tsx +0 -0
  391. /package/{cli/registry → registry}/chat/chat-input/context.tsx +0 -0
  392. /package/{cli/registry → registry}/chat/chat-input/folder-permission-dialog.tsx +0 -0
  393. /package/{cli/registry → registry}/chat/chat-input/index.tsx +0 -0
  394. /package/{cli/registry → registry}/chat/chat-input/types.ts +0 -0
  395. /package/{cli/registry → registry}/chat/chat-input/useAutoResizeTextarea.ts +0 -0
  396. /package/{cli/registry → registry}/chat/code-block-part.tsx +0 -0
  397. /package/{cli/registry → registry}/chat/file-attachment.tsx +0 -0
  398. /package/{cli/registry → registry}/chat/file-card.tsx +0 -0
  399. /package/{cli/registry → registry}/chat/file-review-part.tsx +0 -0
  400. /package/{cli/registry → registry}/chat/folder-button.tsx +0 -0
  401. /package/{cli/registry → registry}/chat/generated-images-grid.tsx +0 -0
  402. /package/{cli/registry → registry}/chat/generation-status-bar.tsx +0 -0
  403. /package/{cli/registry → registry}/chat/hint-banner.tsx +0 -0
  404. /package/{cli/registry → registry}/chat/image-attachment.tsx +0 -0
  405. /package/{cli/registry → registry}/chat/image-generating.tsx +0 -0
  406. /package/{cli/registry → registry}/chat/mermaid-part.tsx +0 -0
  407. /package/{cli/registry → registry}/chat/permission-card.tsx +0 -0
  408. /package/{cli/registry → registry}/chat/plan-part.tsx +0 -0
  409. /package/{cli/registry → registry}/chat/queue-indicator.tsx +0 -0
  410. /package/{cli/registry → registry}/chat/reasoning-step/compound.tsx +0 -0
  411. /package/{cli/registry → registry}/chat/reasoning-step/context.tsx +0 -0
  412. /package/{cli/registry → registry}/chat/reasoning-step/index.tsx +0 -0
  413. /package/{cli/registry → registry}/chat/reasoning-step/types.ts +0 -0
  414. /package/{cli/registry → registry}/chat/related-prompts.tsx +0 -0
  415. /package/{cli/registry → registry}/chat/response/compound.tsx +0 -0
  416. /package/{cli/registry → registry}/chat/response/context.tsx +0 -0
  417. /package/{cli/registry → registry}/chat/response/index.tsx +0 -0
  418. /package/{cli/registry → registry}/chat/response/types.ts +0 -0
  419. /package/{cli/registry → registry}/chat/send-button.tsx +0 -0
  420. /package/{cli/registry → registry}/chat/streaming-markdown-block.tsx +0 -0
  421. /package/{cli/registry → registry}/chat/task-part.tsx +0 -0
  422. /package/{cli/registry → registry}/chat/terminal-code-block-part.tsx +0 -0
  423. /package/{cli/registry → registry}/chat/thinking-indicator.tsx +0 -0
  424. /package/{cli/registry → registry}/chat/user-message.tsx +0 -0
  425. /package/{cli/registry → registry}/chat/user-question/UserQuestionCard.tsx +0 -0
  426. /package/{cli/registry → registry}/chat/user-question/UserQuestionFooter.tsx +0 -0
  427. /package/{cli/registry → registry}/chat/user-question/UserQuestionHeader.tsx +0 -0
  428. /package/{cli/registry → registry}/chat/user-question/compound.tsx +0 -0
  429. /package/{cli/registry → registry}/chat/user-question/context.tsx +0 -0
  430. /package/{cli/registry → registry}/chat/user-question/index.tsx +0 -0
  431. /package/{cli/registry → registry}/chat/user-question/types.ts +0 -0
  432. /package/{cli/registry → registry}/chat/user-question/useUserQuestionKeyboard.ts +0 -0
  433. /package/{cli/registry → registry}/chat/user-question/useUserQuestionState.ts +0 -0
  434. /package/{cli/registry → registry}/chat/user-question-answer.tsx +0 -0
  435. /package/{cli/registry → registry}/lib/file-icon-maps.ts +0 -0
  436. /package/{cli/registry → registry}/lib/use-mermaid-render.ts +0 -0
  437. /package/{cli/registry → registry}/lib/utils.ts +0 -0
  438. /package/{cli/registry → registry}/tokens/index.css +0 -0
  439. /package/{cli/registry → registry}/tokens/scale/computed.css +0 -0
  440. /package/{cli/registry → registry}/tokens/scale/config.css +0 -0
  441. /package/{cli/registry → registry}/tokens/scale/index.css +0 -0
  442. /package/{cli/registry → registry}/tokens/scale/presets/compact.css +0 -0
  443. /package/{cli/registry → registry}/tokens/scale/presets/dense.css +0 -0
  444. /package/{cli/registry → registry}/tokens/scale/presets/sharp.css +0 -0
  445. /package/{cli/registry → registry}/tokens/scale/presets/soft.css +0 -0
  446. /package/{cli/registry → registry}/tokens/scale.css +0 -0
  447. /package/{cli/registry → registry}/tokens/scrollbar-utility.css +0 -0
  448. /package/{cli/registry → registry}/tokens/theme.css +0 -0
  449. /package/{cli/registry → registry}/tokens/themes/dark-parchment.css +0 -0
  450. /package/{cli/registry → registry}/tokens/themes/dark-qoder.css +0 -0
  451. /package/{cli/registry → registry}/tokens/themes/light-parchment.css +0 -0
  452. /package/{cli/registry → registry}/tokens/themes/light-qoder.css +0 -0
@@ -1,795 +0,0 @@
1
- import { _ as s, c as xt, l as E, d as j, V as kt, W as vt, X as _t, Y as bt, B as wt, $ as St, y as Et } from "./mermaid.core-gFR0XUlD.js";
2
- import { d as nt } from "./arc-BQBhijZ6.js";
3
- var Q = (function() {
4
- var n = /* @__PURE__ */ s(function(x, r, a, c) {
5
- for (a = a || {}, c = x.length; c--; a[x[c]] = r) ;
6
- return a;
7
- }, "o"), t = [6, 8, 10, 11, 12, 14, 16, 17, 20, 21], e = [1, 9], l = [1, 10], i = [1, 11], d = [1, 12], h = [1, 13], f = [1, 16], m = [1, 17], p = {
8
- trace: /* @__PURE__ */ s(function() {
9
- }, "trace"),
10
- yy: {},
11
- 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 },
12
- 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" },
13
- 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]],
14
- performAction: /* @__PURE__ */ s(function(r, a, c, u, y, o, w) {
15
- var v = o.length - 1;
16
- switch (y) {
17
- case 1:
18
- return o[v - 1];
19
- case 2:
20
- this.$ = [];
21
- break;
22
- case 3:
23
- o[v - 1].push(o[v]), this.$ = o[v - 1];
24
- break;
25
- case 4:
26
- case 5:
27
- this.$ = o[v];
28
- break;
29
- case 6:
30
- case 7:
31
- this.$ = [];
32
- break;
33
- case 8:
34
- u.getCommonDb().setDiagramTitle(o[v].substr(6)), this.$ = o[v].substr(6);
35
- break;
36
- case 9:
37
- this.$ = o[v].trim(), u.getCommonDb().setAccTitle(this.$);
38
- break;
39
- case 10:
40
- case 11:
41
- this.$ = o[v].trim(), u.getCommonDb().setAccDescription(this.$);
42
- break;
43
- case 12:
44
- u.addSection(o[v].substr(8)), this.$ = o[v].substr(8);
45
- break;
46
- case 15:
47
- u.addTask(o[v], 0, ""), this.$ = o[v];
48
- break;
49
- case 16:
50
- u.addEvent(o[v].substr(2)), this.$ = o[v];
51
- break;
52
- }
53
- }, "anonymous"),
54
- 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: i, 16: d, 17: h, 18: 14, 19: 15, 20: f, 21: m }, n(t, [2, 7], { 1: [2, 1] }), n(t, [2, 3]), { 9: 18, 11: e, 12: l, 14: i, 16: d, 17: h, 18: 14, 19: 15, 20: f, 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])],
55
- defaultActions: {},
56
- parseError: /* @__PURE__ */ s(function(r, a) {
57
- if (a.recoverable)
58
- this.trace(r);
59
- else {
60
- var c = new Error(r);
61
- throw c.hash = a, c;
62
- }
63
- }, "parseError"),
64
- parse: /* @__PURE__ */ s(function(r) {
65
- var a = this, c = [0], u = [], y = [null], o = [], w = this.table, v = "", N = 0, P = 0, W = 2, U = 1, H = o.slice.call(arguments, 1), g = Object.create(this.lexer), b = { yy: {} };
66
- for (var L in this.yy)
67
- Object.prototype.hasOwnProperty.call(this.yy, L) && (b.yy[L] = this.yy[L]);
68
- g.setInput(r, b.yy), b.yy.lexer = g, b.yy.parser = this, typeof g.yylloc > "u" && (g.yylloc = {});
69
- var $ = g.yylloc;
70
- o.push($);
71
- var z = g.options && g.options.ranges;
72
- typeof b.yy.parseError == "function" ? this.parseError = b.yy.parseError : this.parseError = Object.getPrototypeOf(this).parseError;
73
- function Z(T) {
74
- c.length = c.length - 2 * T, y.length = y.length - T, o.length = o.length - T;
75
- }
76
- s(Z, "popStack");
77
- function tt() {
78
- var T;
79
- return T = u.pop() || g.lex() || U, typeof T != "number" && (T instanceof Array && (u = T, T = u.pop()), T = a.symbols_[T] || T), T;
80
- }
81
- s(tt, "lex");
82
- for (var S, A, I, J, R = {}, B, M, et, O; ; ) {
83
- if (A = c[c.length - 1], this.defaultActions[A] ? I = this.defaultActions[A] : ((S === null || typeof S > "u") && (S = tt()), I = w[A] && w[A][S]), typeof I > "u" || !I.length || !I[0]) {
84
- var K = "";
85
- O = [];
86
- for (B in w[A])
87
- this.terminals_[B] && B > W && O.push("'" + this.terminals_[B] + "'");
88
- g.showPosition ? K = "Parse error on line " + (N + 1) + `:
89
- ` + g.showPosition() + `
90
- Expecting ` + O.join(", ") + ", got '" + (this.terminals_[S] || S) + "'" : K = "Parse error on line " + (N + 1) + ": Unexpected " + (S == U ? "end of input" : "'" + (this.terminals_[S] || S) + "'"), this.parseError(K, {
91
- text: g.match,
92
- token: this.terminals_[S] || S,
93
- line: g.yylineno,
94
- loc: $,
95
- expected: O
96
- });
97
- }
98
- if (I[0] instanceof Array && I.length > 1)
99
- throw new Error("Parse Error: multiple actions possible at state: " + A + ", token: " + S);
100
- switch (I[0]) {
101
- case 1:
102
- c.push(S), y.push(g.yytext), o.push(g.yylloc), c.push(I[1]), S = null, P = g.yyleng, v = g.yytext, N = g.yylineno, $ = g.yylloc;
103
- break;
104
- case 2:
105
- if (M = this.productions_[I[1]][1], R.$ = y[y.length - M], R._$ = {
106
- first_line: o[o.length - (M || 1)].first_line,
107
- last_line: o[o.length - 1].last_line,
108
- first_column: o[o.length - (M || 1)].first_column,
109
- last_column: o[o.length - 1].last_column
110
- }, z && (R._$.range = [
111
- o[o.length - (M || 1)].range[0],
112
- o[o.length - 1].range[1]
113
- ]), J = this.performAction.apply(R, [
114
- v,
115
- P,
116
- N,
117
- b.yy,
118
- I[1],
119
- y,
120
- o
121
- ].concat(H)), typeof J < "u")
122
- return J;
123
- M && (c = c.slice(0, -1 * M * 2), y = y.slice(0, -1 * M), o = o.slice(0, -1 * M)), c.push(this.productions_[I[1]][0]), y.push(R.$), o.push(R._$), et = w[c[c.length - 2]][c[c.length - 1]], c.push(et);
124
- break;
125
- case 3:
126
- return !0;
127
- }
128
- }
129
- return !0;
130
- }, "parse")
131
- }, k = /* @__PURE__ */ (function() {
132
- var x = {
133
- EOF: 1,
134
- parseError: /* @__PURE__ */ s(function(a, c) {
135
- if (this.yy.parser)
136
- this.yy.parser.parseError(a, c);
137
- else
138
- throw new Error(a);
139
- }, "parseError"),
140
- // resets the lexer, sets new input
141
- setInput: /* @__PURE__ */ s(function(r, a) {
142
- return this.yy = a || this.yy || {}, this._input = r, this._more = this._backtrack = this.done = !1, this.yylineno = this.yyleng = 0, this.yytext = this.matched = this.match = "", this.conditionStack = ["INITIAL"], this.yylloc = {
143
- first_line: 1,
144
- first_column: 0,
145
- last_line: 1,
146
- last_column: 0
147
- }, this.options.ranges && (this.yylloc.range = [0, 0]), this.offset = 0, this;
148
- }, "setInput"),
149
- // consumes and returns one char from the input
150
- input: /* @__PURE__ */ s(function() {
151
- var r = this._input[0];
152
- this.yytext += r, this.yyleng++, this.offset++, this.match += r, this.matched += r;
153
- var a = r.match(/(?:\r\n?|\n).*/g);
154
- 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), r;
155
- }, "input"),
156
- // unshifts one char (or a string) into the input
157
- unput: /* @__PURE__ */ s(function(r) {
158
- var a = r.length, c = r.split(/(?:\r\n?|\n)/g);
159
- this._input = r + this._input, this.yytext = this.yytext.substr(0, this.yytext.length - a), this.offset -= a;
160
- var u = this.match.split(/(?:\r\n?|\n)/g);
161
- this.match = this.match.substr(0, this.match.length - 1), this.matched = this.matched.substr(0, this.matched.length - 1), c.length - 1 && (this.yylineno -= c.length - 1);
162
- var y = this.yylloc.range;
163
- return this.yylloc = {
164
- first_line: this.yylloc.first_line,
165
- last_line: this.yylineno + 1,
166
- first_column: this.yylloc.first_column,
167
- last_column: c ? (c.length === u.length ? this.yylloc.first_column : 0) + u[u.length - c.length].length - c[0].length : this.yylloc.first_column - a
168
- }, this.options.ranges && (this.yylloc.range = [y[0], y[0] + this.yyleng - a]), this.yyleng = this.yytext.length, this;
169
- }, "unput"),
170
- // When called from action, caches matched text and appends it on next action
171
- more: /* @__PURE__ */ s(function() {
172
- return this._more = !0, this;
173
- }, "more"),
174
- // 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.
175
- reject: /* @__PURE__ */ s(function() {
176
- if (this.options.backtrack_lexer)
177
- this._backtrack = !0;
178
- else
179
- 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).
180
- ` + this.showPosition(), {
181
- text: "",
182
- token: null,
183
- line: this.yylineno
184
- });
185
- return this;
186
- }, "reject"),
187
- // retain first n characters of the match
188
- less: /* @__PURE__ */ s(function(r) {
189
- this.unput(this.match.slice(r));
190
- }, "less"),
191
- // displays already matched input, i.e. for error messages
192
- pastInput: /* @__PURE__ */ s(function() {
193
- var r = this.matched.substr(0, this.matched.length - this.match.length);
194
- return (r.length > 20 ? "..." : "") + r.substr(-20).replace(/\n/g, "");
195
- }, "pastInput"),
196
- // displays upcoming input, i.e. for error messages
197
- upcomingInput: /* @__PURE__ */ s(function() {
198
- var r = this.match;
199
- return r.length < 20 && (r += this._input.substr(0, 20 - r.length)), (r.substr(0, 20) + (r.length > 20 ? "..." : "")).replace(/\n/g, "");
200
- }, "upcomingInput"),
201
- // displays the character position where the lexing error occurred, i.e. for error messages
202
- showPosition: /* @__PURE__ */ s(function() {
203
- var r = this.pastInput(), a = new Array(r.length + 1).join("-");
204
- return r + this.upcomingInput() + `
205
- ` + a + "^";
206
- }, "showPosition"),
207
- // test the lexed token: return FALSE when not a match, otherwise return token
208
- test_match: /* @__PURE__ */ s(function(r, a) {
209
- var c, u, y;
210
- if (this.options.backtrack_lexer && (y = {
211
- yylineno: this.yylineno,
212
- yylloc: {
213
- first_line: this.yylloc.first_line,
214
- last_line: this.last_line,
215
- first_column: this.yylloc.first_column,
216
- last_column: this.yylloc.last_column
217
- },
218
- yytext: this.yytext,
219
- match: this.match,
220
- matches: this.matches,
221
- matched: this.matched,
222
- yyleng: this.yyleng,
223
- offset: this.offset,
224
- _more: this._more,
225
- _input: this._input,
226
- yy: this.yy,
227
- conditionStack: this.conditionStack.slice(0),
228
- done: this.done
229
- }, this.options.ranges && (y.yylloc.range = this.yylloc.range.slice(0))), u = r[0].match(/(?:\r\n?|\n).*/g), u && (this.yylineno += u.length), this.yylloc = {
230
- first_line: this.yylloc.last_line,
231
- last_line: this.yylineno + 1,
232
- first_column: this.yylloc.last_column,
233
- last_column: u ? u[u.length - 1].length - u[u.length - 1].match(/\r?\n?/)[0].length : this.yylloc.last_column + r[0].length
234
- }, this.yytext += r[0], this.match += r[0], this.matches = r, 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(r[0].length), this.matched += r[0], c = this.performAction.call(this, this.yy, this, a, this.conditionStack[this.conditionStack.length - 1]), this.done && this._input && (this.done = !1), c)
235
- return c;
236
- if (this._backtrack) {
237
- for (var o in y)
238
- this[o] = y[o];
239
- return !1;
240
- }
241
- return !1;
242
- }, "test_match"),
243
- // return next match in input
244
- next: /* @__PURE__ */ s(function() {
245
- if (this.done)
246
- return this.EOF;
247
- this._input || (this.done = !0);
248
- var r, a, c, u;
249
- this._more || (this.yytext = "", this.match = "");
250
- for (var y = this._currentRules(), o = 0; o < y.length; o++)
251
- if (c = this._input.match(this.rules[y[o]]), c && (!a || c[0].length > a[0].length)) {
252
- if (a = c, u = o, this.options.backtrack_lexer) {
253
- if (r = this.test_match(c, y[o]), r !== !1)
254
- return r;
255
- if (this._backtrack) {
256
- a = !1;
257
- continue;
258
- } else
259
- return !1;
260
- } else if (!this.options.flex)
261
- break;
262
- }
263
- return a ? (r = this.test_match(a, y[u]), r !== !1 ? r : !1) : this._input === "" ? this.EOF : this.parseError("Lexical error on line " + (this.yylineno + 1) + `. Unrecognized text.
264
- ` + this.showPosition(), {
265
- text: "",
266
- token: null,
267
- line: this.yylineno
268
- });
269
- }, "next"),
270
- // return next match that has a token
271
- lex: /* @__PURE__ */ s(function() {
272
- var a = this.next();
273
- return a || this.lex();
274
- }, "lex"),
275
- // activates a new lexer condition state (pushes the new lexer condition state onto the condition stack)
276
- begin: /* @__PURE__ */ s(function(a) {
277
- this.conditionStack.push(a);
278
- }, "begin"),
279
- // pop the previously active lexer condition state off the condition stack
280
- popState: /* @__PURE__ */ s(function() {
281
- var a = this.conditionStack.length - 1;
282
- return a > 0 ? this.conditionStack.pop() : this.conditionStack[0];
283
- }, "popState"),
284
- // produce the lexer rule set which is active for the currently active lexer condition state
285
- _currentRules: /* @__PURE__ */ s(function() {
286
- return this.conditionStack.length && this.conditionStack[this.conditionStack.length - 1] ? this.conditions[this.conditionStack[this.conditionStack.length - 1]].rules : this.conditions.INITIAL.rules;
287
- }, "_currentRules"),
288
- // return the currently active lexer condition state; when an index argument is provided it produces the N-th previous condition state, if available
289
- topState: /* @__PURE__ */ s(function(a) {
290
- return a = this.conditionStack.length - 1 - Math.abs(a || 0), a >= 0 ? this.conditionStack[a] : "INITIAL";
291
- }, "topState"),
292
- // alias for begin(condition)
293
- pushState: /* @__PURE__ */ s(function(a) {
294
- this.begin(a);
295
- }, "pushState"),
296
- // return the number of states currently on the stack
297
- stateStackSize: /* @__PURE__ */ s(function() {
298
- return this.conditionStack.length;
299
- }, "stateStackSize"),
300
- options: { "case-insensitive": !0 },
301
- performAction: /* @__PURE__ */ s(function(a, c, u, y) {
302
- switch (u) {
303
- case 0:
304
- break;
305
- case 1:
306
- break;
307
- case 2:
308
- return 10;
309
- case 3:
310
- break;
311
- case 4:
312
- break;
313
- case 5:
314
- return 4;
315
- case 6:
316
- return 11;
317
- case 7:
318
- return this.begin("acc_title"), 12;
319
- case 8:
320
- return this.popState(), "acc_title_value";
321
- case 9:
322
- return this.begin("acc_descr"), 14;
323
- case 10:
324
- return this.popState(), "acc_descr_value";
325
- case 11:
326
- this.begin("acc_descr_multiline");
327
- break;
328
- case 12:
329
- this.popState();
330
- break;
331
- case 13:
332
- return "acc_descr_multiline_value";
333
- case 14:
334
- return 17;
335
- case 15:
336
- return 21;
337
- case 16:
338
- return 20;
339
- case 17:
340
- return 6;
341
- case 18:
342
- return "INVALID";
343
- }
344
- }, "anonymous"),
345
- 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],
346
- 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 } }
347
- };
348
- return x;
349
- })();
350
- p.lexer = k;
351
- function _() {
352
- this.yy = {};
353
- }
354
- return s(_, "Parser"), _.prototype = p, p.Parser = _, new _();
355
- })();
356
- Q.parser = Q;
357
- var Tt = Q, at = {};
358
- wt(at, {
359
- addEvent: () => yt,
360
- addSection: () => ht,
361
- addTask: () => pt,
362
- addTaskOrg: () => gt,
363
- clear: () => ct,
364
- default: () => It,
365
- getCommonDb: () => ot,
366
- getSections: () => dt,
367
- getTasks: () => ut
368
- });
369
- var F = "", lt = 0, X = [], G = [], V = [], ot = /* @__PURE__ */ s(() => St, "getCommonDb"), ct = /* @__PURE__ */ s(function() {
370
- X.length = 0, G.length = 0, F = "", V.length = 0, Et();
371
- }, "clear"), ht = /* @__PURE__ */ s(function(n) {
372
- F = n, X.push(n);
373
- }, "addSection"), dt = /* @__PURE__ */ s(function() {
374
- return X;
375
- }, "getSections"), ut = /* @__PURE__ */ s(function() {
376
- let n = it();
377
- const t = 100;
378
- let e = 0;
379
- for (; !n && e < t; )
380
- n = it(), e++;
381
- return G.push(...V), G;
382
- }, "getTasks"), pt = /* @__PURE__ */ s(function(n, t, e) {
383
- const l = {
384
- id: lt++,
385
- section: F,
386
- type: F,
387
- task: n,
388
- score: t || 0,
389
- //if event is defined, then add it the events array
390
- events: e ? [e] : []
391
- };
392
- V.push(l);
393
- }, "addTask"), yt = /* @__PURE__ */ s(function(n) {
394
- V.find((e) => e.id === lt - 1).events.push(n);
395
- }, "addEvent"), gt = /* @__PURE__ */ s(function(n) {
396
- const t = {
397
- section: F,
398
- type: F,
399
- description: n,
400
- task: n,
401
- classes: []
402
- };
403
- G.push(t);
404
- }, "addTaskOrg"), it = /* @__PURE__ */ s(function() {
405
- const n = /* @__PURE__ */ s(function(e) {
406
- return V[e].processed;
407
- }, "compileTask");
408
- let t = !0;
409
- for (const [e, l] of V.entries())
410
- n(e), t = t && l.processed;
411
- return t;
412
- }, "compileTasks"), It = {
413
- clear: ct,
414
- getCommonDb: ot,
415
- addSection: ht,
416
- getSections: dt,
417
- getTasks: ut,
418
- addTask: pt,
419
- addTaskOrg: gt,
420
- addEvent: yt
421
- }, Nt = 12, q = /* @__PURE__ */ s(function(n, t) {
422
- const e = n.append("rect");
423
- 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;
424
- }, "drawRect"), Lt = /* @__PURE__ */ s(function(n, t) {
425
- 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"), i = n.append("g");
426
- i.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"), i.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");
427
- function d(m) {
428
- const p = nt().startAngle(Math.PI / 2).endAngle(3 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
429
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 2) + ")");
430
- }
431
- s(d, "smile");
432
- function h(m) {
433
- const p = nt().startAngle(3 * Math.PI / 2).endAngle(5 * (Math.PI / 2)).innerRadius(7.5).outerRadius(6.8181818181818175);
434
- m.append("path").attr("class", "mouth").attr("d", p).attr("transform", "translate(" + t.cx + "," + (t.cy + 7) + ")");
435
- }
436
- s(h, "sad");
437
- function f(m) {
438
- 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");
439
- }
440
- return s(f, "ambivalent"), t.score > 3 ? d(i) : t.score < 3 ? h(i) : f(i), l;
441
- }, "drawFace"), $t = /* @__PURE__ */ s(function(n, t) {
442
- const e = n.append("circle");
443
- 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;
444
- }, "drawCircle"), ft = /* @__PURE__ */ s(function(n, t) {
445
- const e = t.text.replace(/<br\s*\/?>/gi, " "), l = n.append("text");
446
- 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);
447
- const i = l.append("tspan");
448
- return i.attr("x", t.x + t.textMargin * 2), i.text(e), l;
449
- }, "drawText"), Mt = /* @__PURE__ */ s(function(n, t) {
450
- function e(i, d, h, f, m) {
451
- return i + "," + d + " " + (i + h) + "," + d + " " + (i + h) + "," + (d + f - m) + " " + (i + h - m * 1.2) + "," + (d + f) + " " + i + "," + (d + f);
452
- }
453
- s(e, "genPoints");
454
- const l = n.append("polygon");
455
- 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);
456
- }, "drawLabel"), Ht = /* @__PURE__ */ s(function(n, t, e) {
457
- const l = n.append("g"), i = Y();
458
- i.x = t.x, i.y = t.y, i.fill = t.fill, i.width = e.width, i.height = e.height, i.class = "journey-section section-type-" + t.num, i.rx = 3, i.ry = 3, q(l, i), mt(e)(
459
- t.text,
460
- l,
461
- i.x,
462
- i.y,
463
- i.width,
464
- i.height,
465
- { class: "journey-section section-type-" + t.num },
466
- e,
467
- t.colour
468
- );
469
- }, "drawSection"), rt = -1, Pt = /* @__PURE__ */ s(function(n, t, e) {
470
- const l = t.x + e.width / 2, i = n.append("g");
471
- rt++, i.append("line").attr("id", "task" + rt).attr("x1", l).attr("y1", t.y).attr("x2", l).attr("y2", 450).attr("class", "task-line").attr("stroke-width", "1px").attr("stroke-dasharray", "4 2").attr("stroke", "#666"), Lt(i, {
472
- cx: l,
473
- cy: 300 + (5 - t.score) * 30,
474
- score: t.score
475
- });
476
- const h = Y();
477
- h.x = t.x, h.y = t.y, h.fill = t.fill, h.width = e.width, h.height = e.height, h.class = "task task-type-" + t.num, h.rx = 3, h.ry = 3, q(i, h), mt(e)(
478
- t.task,
479
- i,
480
- h.x,
481
- h.y,
482
- h.width,
483
- h.height,
484
- { class: "task" },
485
- e,
486
- t.colour
487
- );
488
- }, "drawTask"), At = /* @__PURE__ */ s(function(n, t) {
489
- q(n, {
490
- x: t.startx,
491
- y: t.starty,
492
- width: t.stopx - t.startx,
493
- height: t.stopy - t.starty,
494
- fill: t.fill,
495
- class: "rect"
496
- }).lower();
497
- }, "drawBackgroundRect"), Ct = /* @__PURE__ */ s(function() {
498
- return {
499
- x: 0,
500
- y: 0,
501
- fill: void 0,
502
- "text-anchor": "start",
503
- width: 100,
504
- height: 100,
505
- textMargin: 0,
506
- rx: 0,
507
- ry: 0
508
- };
509
- }, "getTextObj"), Y = /* @__PURE__ */ s(function() {
510
- return {
511
- x: 0,
512
- y: 0,
513
- width: 100,
514
- anchor: "start",
515
- height: 100,
516
- rx: 0,
517
- ry: 0
518
- };
519
- }, "getNoteRect"), mt = /* @__PURE__ */ (function() {
520
- function n(i, d, h, f, m, p, k, _) {
521
- const x = d.append("text").attr("x", h + m / 2).attr("y", f + p / 2 + 5).style("font-color", _).style("text-anchor", "middle").text(i);
522
- l(x, k);
523
- }
524
- s(n, "byText");
525
- function t(i, d, h, f, m, p, k, _, x) {
526
- const { taskFontSize: r, taskFontFamily: a } = _, c = i.split(/<br\s*\/?>/gi);
527
- for (let u = 0; u < c.length; u++) {
528
- const y = u * r - r * (c.length - 1) / 2, o = d.append("text").attr("x", h + m / 2).attr("y", f).attr("fill", x).style("text-anchor", "middle").style("font-size", r).style("font-family", a);
529
- o.append("tspan").attr("x", h + m / 2).attr("dy", y).text(c[u]), o.attr("y", f + p / 2).attr("dominant-baseline", "central").attr("alignment-baseline", "central"), l(o, k);
530
- }
531
- }
532
- s(t, "byTspan");
533
- function e(i, d, h, f, m, p, k, _) {
534
- const x = d.append("switch"), a = x.append("foreignObject").attr("x", h).attr("y", f).attr("width", m).attr("height", p).attr("position", "fixed").append("xhtml:div").style("display", "table").style("height", "100%").style("width", "100%");
535
- a.append("div").attr("class", "label").style("display", "table-cell").style("text-align", "center").style("vertical-align", "middle").text(i), t(i, x, h, f, m, p, k, _), l(a, k);
536
- }
537
- s(e, "byFo");
538
- function l(i, d) {
539
- for (const h in d)
540
- h in d && i.attr(h, d[h]);
541
- }
542
- return s(l, "_setTextAttrs"), function(i) {
543
- return i.textPlacement === "fo" ? e : i.textPlacement === "old" ? n : t;
544
- };
545
- })(), Rt = /* @__PURE__ */ s(function(n) {
546
- 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");
547
- }, "initGraphics");
548
- function D(n, t) {
549
- n.each(function() {
550
- var e = j(this), l = e.text().split(/(\s+|<br>)/).reverse(), i, d = [], h = 1.1, f = e.attr("y"), m = parseFloat(e.attr("dy")), p = e.text(null).append("tspan").attr("x", 0).attr("y", f).attr("dy", m + "em");
551
- for (let k = 0; k < l.length; k++)
552
- i = l[l.length - 1 - k], d.push(i), p.text(d.join(" ").trim()), (p.node().getComputedTextLength() > t || i === "<br>") && (d.pop(), p.text(d.join(" ").trim()), i === "<br>" ? d = [""] : d = [i], p = e.append("tspan").attr("x", 0).attr("y", f).attr("dy", h + "em").text(i));
553
- });
554
- }
555
- s(D, "wrap");
556
- var Ft = /* @__PURE__ */ s(function(n, t, e, l) {
557
- const i = e % Nt - 1, d = n.append("g");
558
- t.section = i, d.attr(
559
- "class",
560
- (t.class ? t.class + " " : "") + "timeline-node " + ("section-" + i)
561
- );
562
- const h = d.append("g"), f = d.append("g"), p = f.append("text").text(t.descr).attr("dy", "1em").attr("alignment-baseline", "middle").attr("dominant-baseline", "middle").attr("text-anchor", "middle").call(D, t.width).node().getBBox(), k = l.fontSize?.replace ? l.fontSize.replace("px", "") : l.fontSize;
563
- return t.height = p.height + k * 1.1 * 0.5 + t.padding, t.height = Math.max(t.height, t.maxHeight), t.width = t.width + 2 * t.padding, f.attr("transform", "translate(" + t.width / 2 + ", " + t.padding / 2 + ")"), Wt(h, t, i, l), t;
564
- }, "drawNode"), Vt = /* @__PURE__ */ s(function(n, t, e) {
565
- 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(D, t.width).node().getBBox(), h = e.fontSize?.replace ? e.fontSize.replace("px", "") : e.fontSize;
566
- return l.remove(), d.height + h * 1.1 * 0.5 + t.padding;
567
- }, "getVirtualNodeHeight"), Wt = /* @__PURE__ */ s(function(n, t, e) {
568
- n.append("path").attr("id", "node-" + t.id).attr("class", "node-bkg node-" + t.type).attr(
569
- "d",
570
- `M0 ${t.height - 5} v${-t.height + 10} q0,-5 5,-5 h${t.width - 10} q5,0 5,5 v${t.height - 5} H0 Z`
571
- ), n.append("line").attr("class", "node-line-" + e).attr("x1", 0).attr("y1", t.height).attr("x2", t.width).attr("y2", t.height);
572
- }, "defaultBkg"), C = {
573
- drawRect: q,
574
- drawCircle: $t,
575
- drawSection: Ht,
576
- drawText: ft,
577
- drawLabel: Mt,
578
- drawTask: Pt,
579
- drawBackgroundRect: At,
580
- getTextObj: Ct,
581
- getNoteRect: Y,
582
- initGraphics: Rt,
583
- drawNode: Ft,
584
- getVirtualNodeHeight: Vt
585
- }, zt = /* @__PURE__ */ s(function(n, t, e, l) {
586
- const i = xt(), d = i.timeline?.leftMargin ?? 50;
587
- E.debug("timeline", l.db);
588
- const h = i.securityLevel;
589
- let f;
590
- h === "sandbox" && (f = j("#i" + t));
591
- const p = (h === "sandbox" ? j(f.nodes()[0].contentDocument.body) : j("body")).select("#" + t);
592
- p.append("g");
593
- const k = l.db.getTasks(), _ = l.db.getCommonDb().getDiagramTitle();
594
- E.debug("task", k), C.initGraphics(p);
595
- const x = l.db.getSections();
596
- E.debug("sections", x);
597
- let r = 0, a = 0, c = 0, u = 0, y = 50 + d, o = 50;
598
- u = 50;
599
- let w = 0, v = !0;
600
- x.forEach(function(H) {
601
- const g = {
602
- number: w,
603
- descr: H,
604
- section: w,
605
- width: 150,
606
- padding: 20,
607
- maxHeight: r
608
- }, b = C.getVirtualNodeHeight(p, g, i);
609
- E.debug("sectionHeight before draw", b), r = Math.max(r, b + 20);
610
- });
611
- let N = 0, P = 0;
612
- E.debug("tasks.length", k.length);
613
- for (const [H, g] of k.entries()) {
614
- const b = {
615
- number: H,
616
- descr: g,
617
- section: g.section,
618
- width: 150,
619
- padding: 20,
620
- maxHeight: a
621
- }, L = C.getVirtualNodeHeight(p, b, i);
622
- E.debug("taskHeight before draw", L), a = Math.max(a, L + 20), N = Math.max(N, g.events.length);
623
- let $ = 0;
624
- for (const z of g.events) {
625
- const Z = {
626
- descr: z,
627
- section: g.section,
628
- number: g.section,
629
- width: 150,
630
- padding: 20,
631
- maxHeight: 50
632
- };
633
- $ += C.getVirtualNodeHeight(p, Z, i);
634
- }
635
- g.events.length > 0 && ($ += (g.events.length - 1) * 10), P = Math.max(P, $);
636
- }
637
- E.debug("maxSectionHeight before draw", r), E.debug("maxTaskHeight before draw", a), x && x.length > 0 ? x.forEach((H) => {
638
- const g = k.filter((z) => z.section === H), b = {
639
- number: w,
640
- descr: H,
641
- section: w,
642
- width: 200 * Math.max(g.length, 1) - 50,
643
- padding: 20,
644
- maxHeight: r
645
- };
646
- E.debug("sectionNode", b);
647
- const L = p.append("g"), $ = C.drawNode(L, b, w, i);
648
- E.debug("sectionNode output", $), L.attr("transform", `translate(${y}, ${u})`), o += r + 50, g.length > 0 && st(
649
- p,
650
- g,
651
- w,
652
- y,
653
- o,
654
- a,
655
- i,
656
- N,
657
- P,
658
- r,
659
- !1
660
- ), y += 200 * Math.max(g.length, 1), o = u, w++;
661
- }) : (v = !1, st(
662
- p,
663
- k,
664
- w,
665
- y,
666
- o,
667
- a,
668
- i,
669
- N,
670
- P,
671
- r,
672
- !0
673
- ));
674
- const W = p.node().getBBox();
675
- E.debug("bounds", W), _ && p.append("text").text(_).attr("x", W.width / 2 - d).attr("font-size", "4ex").attr("font-weight", "bold").attr("y", 20), c = v ? r + a + 150 : a + 100, p.append("g").attr("class", "lineWrapper").append("line").attr("x1", d).attr("y1", c).attr("x2", W.width + 3 * d).attr("y2", c).attr("stroke-width", 4).attr("stroke", "black").attr("marker-end", "url(#arrowhead)"), kt(
676
- void 0,
677
- p,
678
- i.timeline?.padding ?? 50,
679
- i.timeline?.useMaxWidth ?? !1
680
- );
681
- }, "draw"), st = /* @__PURE__ */ s(function(n, t, e, l, i, d, h, f, m, p, k) {
682
- for (const _ of t) {
683
- const x = {
684
- descr: _.task,
685
- section: e,
686
- number: e,
687
- width: 150,
688
- padding: 20,
689
- maxHeight: d
690
- };
691
- E.debug("taskNode", x);
692
- const r = n.append("g").attr("class", "taskWrapper"), c = C.drawNode(r, x, e, h).height;
693
- if (E.debug("taskHeight after draw", c), r.attr("transform", `translate(${l}, ${i})`), d = Math.max(d, c), _.events) {
694
- const u = n.append("g").attr("class", "lineWrapper");
695
- let y = d;
696
- i += 100, y = y + Bt(n, _.events, e, l, i, h), i -= 100, u.append("line").attr("x1", l + 190 / 2).attr("y1", i + d).attr("x2", l + 190 / 2).attr("y2", i + d + 100 + m + 100).attr("stroke-width", 2).attr("stroke", "black").attr("marker-end", "url(#arrowhead)").attr("stroke-dasharray", "5,5");
697
- }
698
- l = l + 200, k && !h.timeline?.disableMulticolor && e++;
699
- }
700
- i = i - 10;
701
- }, "drawTasks"), Bt = /* @__PURE__ */ s(function(n, t, e, l, i, d) {
702
- let h = 0;
703
- const f = i;
704
- i = i + 100;
705
- for (const m of t) {
706
- const p = {
707
- descr: m,
708
- section: e,
709
- number: e,
710
- width: 150,
711
- padding: 20,
712
- maxHeight: 50
713
- };
714
- E.debug("eventNode", p);
715
- const k = n.append("g").attr("class", "eventWrapper"), x = C.drawNode(k, p, e, d).height;
716
- h = h + x, k.attr("transform", `translate(${l}, ${i})`), i = i + 10 + x;
717
- }
718
- return i = f, h;
719
- }, "drawEvents"), Ot = {
720
- setConf: /* @__PURE__ */ s(() => {
721
- }, "setConf"),
722
- draw: zt
723
- }, jt = /* @__PURE__ */ s((n) => {
724
- let t = "";
725
- for (let e = 0; e < n.THEME_COLOR_LIMIT; e++)
726
- n["lineColor" + e] = n["lineColor" + e] || n["cScaleInv" + e], vt(n["lineColor" + e]) ? n["lineColor" + e] = _t(n["lineColor" + e], 20) : n["lineColor" + e] = bt(n["lineColor" + e], 20);
727
- for (let e = 0; e < n.THEME_COLOR_LIMIT; e++) {
728
- const l = "" + (17 - 3 * e);
729
- t += `
730
- .section-${e - 1} rect, .section-${e - 1} path, .section-${e - 1} circle, .section-${e - 1} path {
731
- fill: ${n["cScale" + e]};
732
- }
733
- .section-${e - 1} text {
734
- fill: ${n["cScaleLabel" + e]};
735
- }
736
- .node-icon-${e - 1} {
737
- font-size: 40px;
738
- color: ${n["cScaleLabel" + e]};
739
- }
740
- .section-edge-${e - 1}{
741
- stroke: ${n["cScale" + e]};
742
- }
743
- .edge-depth-${e - 1}{
744
- stroke-width: ${l};
745
- }
746
- .section-${e - 1} line {
747
- stroke: ${n["cScaleInv" + e]} ;
748
- stroke-width: 3;
749
- }
750
-
751
- .lineWrapper line{
752
- stroke: ${n["cScaleLabel" + e]} ;
753
- }
754
-
755
- .disabled, .disabled circle, .disabled text {
756
- fill: lightgray;
757
- }
758
- .disabled text {
759
- fill: #efefef;
760
- }
761
- `;
762
- }
763
- return t;
764
- }, "genSections"), Gt = /* @__PURE__ */ s((n) => `
765
- .edge {
766
- stroke-width: 3;
767
- }
768
- ${jt(n)}
769
- .section-root rect, .section-root path, .section-root circle {
770
- fill: ${n.git0};
771
- }
772
- .section-root text {
773
- fill: ${n.gitBranchLabel0};
774
- }
775
- .icon-container {
776
- height:100%;
777
- display: flex;
778
- justify-content: center;
779
- align-items: center;
780
- }
781
- .edge {
782
- fill: none;
783
- }
784
- .eventWrapper {
785
- filter: brightness(120%);
786
- }
787
- `, "getStyles"), qt = Gt, Jt = {
788
- db: at,
789
- renderer: Ot,
790
- parser: Tt,
791
- styles: qt
792
- };
793
- export {
794
- Jt as diagram
795
- };