@redvars/peacock 4.0.0 → 4.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (467) hide show
  1. package/dist/{BaseField-CAog9TIc.js → BaseField-_unSNU5x.js} +43 -4
  2. package/dist/BaseField-_unSNU5x.js.map +1 -0
  3. package/dist/{BaseInput-CcMfg1Y2.js → BaseInput-DtZH0fPJ.js} +7 -4
  4. package/dist/BaseInput-DtZH0fPJ.js.map +1 -0
  5. package/dist/accordion.js.map +1 -1
  6. package/dist/ai-badge.js +32 -6
  7. package/dist/ai-badge.js.map +1 -1
  8. package/dist/ai-summary.js +2 -2
  9. package/dist/alert.js +2 -2
  10. package/dist/anchor-nav.js +2 -2
  11. package/dist/app-shell.js +2 -2
  12. package/dist/assistant-panel.js +2 -2
  13. package/dist/assistant-step.js +2 -2
  14. package/dist/assistant-steps.js +2 -2
  15. package/dist/avatar-group.js +2 -2
  16. package/dist/banner.js +2 -2
  17. package/dist/{base-button-Do2TUy8M.js → base-button-BJMGMcMv.js} +3 -1
  18. package/dist/base-button-BJMGMcMv.js.map +1 -0
  19. package/dist/{base-progress-BiLlZVHJ.js → base-progress-D7Nmfh1s.js} +4 -2
  20. package/dist/base-progress-D7Nmfh1s.js.map +1 -0
  21. package/dist/bottom-sheet.js +2 -2
  22. package/dist/breadcrumb.js +2 -2
  23. package/dist/button-group.js +4 -4
  24. package/dist/button.js +14 -8
  25. package/dist/button.js.map +1 -1
  26. package/dist/calendar.js +2 -2
  27. package/dist/canvas-base-CWQ4rQ2s.js +788 -0
  28. package/dist/canvas-base-CWQ4rQ2s.js.map +1 -0
  29. package/dist/canvas-link-CtgsALq4.js +54 -0
  30. package/dist/canvas-link-CtgsALq4.js.map +1 -0
  31. package/dist/{cartesian-chart-C-f1frt0.js → cartesian-chart-CS5yRLfE.js} +3 -2
  32. package/dist/cartesian-chart-CS5yRLfE.js.map +1 -0
  33. package/dist/{cb-group-base-DeuCVx3a.js → cb-group-base-CO30uFQZ.js} +2 -2
  34. package/dist/{cb-group-base-DeuCVx3a.js.map → cb-group-base-CO30uFQZ.js.map} +1 -1
  35. package/dist/cb-group.js +3 -3
  36. package/dist/cb-rule.js +3 -3
  37. package/dist/chart-area.js +5 -4
  38. package/dist/chart-area.js.map +1 -1
  39. package/dist/chart-bar.js +5 -4
  40. package/dist/chart-bar.js.map +1 -1
  41. package/dist/chart-base-C_XKVyhf.js +833 -0
  42. package/dist/chart-base-C_XKVyhf.js.map +1 -0
  43. package/dist/chart-doughnut.js +4 -3
  44. package/dist/chart-doughnut.js.map +1 -1
  45. package/dist/chart-line.js +5 -4
  46. package/dist/chart-line.js.map +1 -1
  47. package/dist/chart-pie.js +4 -3
  48. package/dist/chart-pie.js.map +1 -1
  49. package/dist/chat-event.js +152 -0
  50. package/dist/chat-event.js.map +1 -0
  51. package/dist/chat-message.js +195 -19
  52. package/dist/chat-message.js.map +1 -1
  53. package/dist/chat-thread.js +26 -9
  54. package/dist/chat-thread.js.map +1 -1
  55. package/dist/checkbox-group.js +5 -5
  56. package/dist/checkbox.js +5 -5
  57. package/dist/chip-set.js +4 -4
  58. package/dist/chip.js +4 -4
  59. package/dist/circular-progress.js +3 -3
  60. package/dist/citation.js +2 -2
  61. package/dist/code-editor.js +6 -5
  62. package/dist/code-editor.js.map +1 -1
  63. package/dist/code-highlighter.js +2 -2
  64. package/dist/color-field.js +6 -6
  65. package/dist/color-picker.js +2 -2
  66. package/dist/command-palette.js +2 -2
  67. package/dist/comment-composer.js +6 -6
  68. package/dist/condition-builder.js +3 -3
  69. package/dist/confirm-dialog.js +2 -2
  70. package/dist/copy-button.js +2 -2
  71. package/dist/currency-field.js +6 -6
  72. package/dist/custom-elements-jsdocs.json +2330 -397
  73. package/dist/custom-elements.json +20464 -542
  74. package/dist/date-field.js +7 -7
  75. package/dist/date-picker.js +4 -2
  76. package/dist/date-picker.js.map +1 -1
  77. package/dist/date-range-field.js +7 -7
  78. package/dist/datetime-field.js +7 -7
  79. package/dist/dependency-map-layout-5KUueabk.js +1390 -0
  80. package/dist/dependency-map-layout-5KUueabk.js.map +1 -0
  81. package/dist/dependency-map.js +1605 -0
  82. package/dist/dependency-map.js.map +1 -0
  83. package/dist/description-item.js +2 -2
  84. package/dist/description-list.js +2 -2
  85. package/dist/diagram-Va096vj9.js +2029 -0
  86. package/dist/diagram-Va096vj9.js.map +1 -0
  87. package/dist/diagram-controls.js +345 -0
  88. package/dist/diagram-controls.js.map +1 -0
  89. package/dist/diagram-minimap.js +216 -0
  90. package/dist/diagram-minimap.js.map +1 -0
  91. package/dist/diagram.js +20 -0
  92. package/dist/diagram.js.map +1 -0
  93. package/dist/diff-viewer.js +2 -2
  94. package/dist/discussion-activity.js +4 -4
  95. package/dist/discussion-comment.js +4 -4
  96. package/dist/{discussion-time-BegaYfhf.js → discussion-time-DqykqvNy.js} +2 -2
  97. package/dist/{discussion-time-BegaYfhf.js.map → discussion-time-DqykqvNy.js.map} +1 -1
  98. package/dist/discussion.js +8 -8
  99. package/dist/{document-editor-BO7QPbO5.js → document-editor-Dc8JeFVB.js} +2 -2
  100. package/dist/{document-editor-BO7QPbO5.js.map → document-editor-Dc8JeFVB.js.map} +1 -1
  101. package/dist/document-editor.js +3 -3
  102. package/dist/draft-card.js +14 -4
  103. package/dist/draft-card.js.map +1 -1
  104. package/dist/dropdown-button.js +3 -2
  105. package/dist/dropdown-button.js.map +1 -1
  106. package/dist/erd.js +2021 -0
  107. package/dist/erd.js.map +1 -0
  108. package/dist/fab.js +4 -4
  109. package/dist/field.js +257 -43
  110. package/dist/field.js.map +1 -1
  111. package/dist/file-upload.js +38 -16
  112. package/dist/file-upload.js.map +1 -1
  113. package/dist/filter-bar.js +2 -2
  114. package/dist/flow.js +27 -970
  115. package/dist/flow.js.map +1 -1
  116. package/dist/focus-ring.js +2 -0
  117. package/dist/focus-ring.js.map +1 -1
  118. package/dist/{form-associated-D3Tn33s_.js → form-associated-BHbg72PG.js} +3 -1
  119. package/dist/{form-associated-D3Tn33s_.js.map → form-associated-BHbg72PG.js.map} +1 -1
  120. package/dist/{form-submitter-DWwv6K9-.js → form-submitter-beG1CXAn.js} +7 -1
  121. package/dist/{form-submitter-DWwv6K9-.js.map → form-submitter-beG1CXAn.js.map} +1 -1
  122. package/dist/form.js +3 -3
  123. package/dist/{generative-view-DmtpDobn.js → generative-view-BKlcuujw.js} +13 -13
  124. package/dist/generative-view-BKlcuujw.js.map +1 -0
  125. package/dist/generative-view.js +3 -3
  126. package/dist/geometry-INg82Lxq.js +305 -0
  127. package/dist/geometry-INg82Lxq.js.map +1 -0
  128. package/dist/history-YbTSQZHj.js +45 -0
  129. package/dist/history-YbTSQZHj.js.map +1 -0
  130. package/dist/host-CZK7xhzh.js +40 -0
  131. package/dist/host-CZK7xhzh.js.map +1 -0
  132. package/dist/html-editor.js +6 -6
  133. package/dist/{hyperlink-DhE9RlVS.js → hyperlink-DycWPKwU.js} +10 -1
  134. package/dist/hyperlink-DycWPKwU.js.map +1 -0
  135. package/dist/{i18n-controller-urcQKYGe.js → i18n-controller-DJHsE1YH.js} +2 -2
  136. package/dist/{i18n-controller-urcQKYGe.js.map → i18n-controller-DJHsE1YH.js.map} +1 -1
  137. package/dist/icon-button.js +11 -9
  138. package/dist/icon-button.js.map +1 -1
  139. package/dist/image.js +2 -2
  140. package/dist/index.js +42 -22
  141. package/dist/index.js.map +1 -1
  142. package/dist/inline-edit.js +2 -2
  143. package/dist/input.js +5 -5
  144. package/dist/json-viewer.js +2 -2
  145. package/dist/kanban.js +2 -2
  146. package/dist/kbd.js +2 -2
  147. package/dist/linear-progress.js +3 -3
  148. package/dist/link-button.js +9 -7
  149. package/dist/link-button.js.map +1 -1
  150. package/dist/list-item.js +2 -2
  151. package/dist/list.js +2 -2
  152. package/dist/listbox.js +4 -4
  153. package/dist/loader-full.js +17 -16
  154. package/dist/loader-full.js.map +1 -1
  155. package/dist/loader.js +51 -18
  156. package/dist/loader.js.map +1 -1
  157. package/dist/markdown-editor.js +6 -6
  158. package/dist/markers-BFmh1OCz.js +46 -0
  159. package/dist/markers-BFmh1OCz.js.map +1 -0
  160. package/dist/measure-controller-Dmc5hZKg.js +89 -0
  161. package/dist/measure-controller-Dmc5hZKg.js.map +1 -0
  162. package/dist/mention-input.js +7 -6
  163. package/dist/mention-input.js.map +1 -1
  164. package/dist/menu-item.js +3 -2
  165. package/dist/menu-item.js.map +1 -1
  166. package/dist/{menu-trigger-controller-DyLpTxM7.js → menu-trigger-controller-CEJq1ugC.js} +11 -14
  167. package/dist/menu-trigger-controller-CEJq1ugC.js.map +1 -0
  168. package/dist/menu.js +2 -2
  169. package/dist/modal.js +2 -2
  170. package/dist/navigation-bar.js +2 -2
  171. package/dist/navigation-drawer.js +2 -2
  172. package/dist/navigation-rail.js +2 -2
  173. package/dist/notification-center.js +3 -3
  174. package/dist/number-field.js +7 -6
  175. package/dist/number-field.js.map +1 -1
  176. package/dist/option.js +2 -2
  177. package/dist/page-header.js +2 -2
  178. package/dist/pagination.js +2 -2
  179. package/dist/password-field.js +6 -6
  180. package/dist/password-rules.js +2 -2
  181. package/dist/phone-field.js +6 -6
  182. package/dist/{picker-field-B4DtcJfL.js → picker-field-CUI05sWc.js} +3 -3
  183. package/dist/{picker-field-B4DtcJfL.js.map → picker-field-CUI05sWc.js.map} +1 -1
  184. package/dist/pin-input.js +6 -6
  185. package/dist/presence-indicator.js +2 -2
  186. package/dist/prompt-input.js +6 -6
  187. package/dist/radio-group.js +2 -1
  188. package/dist/radio-group.js.map +1 -1
  189. package/dist/radio.js +6 -6
  190. package/dist/radio.js.map +1 -1
  191. package/dist/rating.js +6 -5
  192. package/dist/rating.js.map +1 -1
  193. package/dist/redvars-loader.js +2 -2
  194. package/dist/{relative-time-BVQXLuHm.js → relative-time-BNxqvEbg.js} +13 -2
  195. package/dist/relative-time-BNxqvEbg.js.map +1 -0
  196. package/dist/relative-time.js +3 -3
  197. package/dist/resizable-panels.js +2 -2
  198. package/dist/{rich-text-input-DLICqof1.js → rich-text-input-N_hqnXej.js} +3 -3
  199. package/dist/{rich-text-input-DLICqof1.js.map → rich-text-input-N_hqnXej.js.map} +1 -1
  200. package/dist/ripple.js +2 -0
  201. package/dist/ripple.js.map +1 -1
  202. package/dist/{schema-hMt-NRLk.js → schema-Dy0z-80u.js} +2 -2
  203. package/dist/{schema-hMt-NRLk.js.map → schema-Dy0z-80u.js.map} +1 -1
  204. package/dist/search.js +5 -5
  205. package/dist/segmented-button-group.js +1 -1
  206. package/dist/select.js +8 -8
  207. package/dist/side-sheet.js +2 -2
  208. package/dist/signature-pad.js +6 -5
  209. package/dist/signature-pad.js.map +1 -1
  210. package/dist/slider.js +6 -5
  211. package/dist/slider.js.map +1 -1
  212. package/dist/snackbar.js +2 -2
  213. package/dist/sparkline.js +2 -2
  214. package/dist/split-button.js +109 -21
  215. package/dist/split-button.js.map +1 -1
  216. package/dist/src/__internal/ai/suggestion-controller.d.ts +2 -0
  217. package/dist/src/__internal/diagram/canvas-base.d.ts +105 -0
  218. package/dist/src/__internal/diagram/canvas-link.d.ts +21 -0
  219. package/dist/src/__internal/diagram/geometry.d.ts +49 -0
  220. package/dist/src/__internal/diagram/history.d.ts +17 -0
  221. package/dist/src/__internal/diagram/host.d.ts +45 -0
  222. package/dist/src/__internal/diagram/markers.d.ts +16 -0
  223. package/dist/src/__internal/diagram/measure-controller.d.ts +32 -0
  224. package/dist/src/__internal/diagram/motion.d.ts +22 -0
  225. package/dist/src/__internal/diagram/selection.d.ts +20 -0
  226. package/dist/src/__internal/diagram/types.d.ts +39 -0
  227. package/dist/src/__internal/diagram/viewport-controller.d.ts +89 -0
  228. package/dist/src/__internal/i18n/strings.d.ts +155 -0
  229. package/dist/src/__internal/menu-trigger-controller.d.ts +11 -8
  230. package/dist/src/__internal/toggle-base.d.ts +8 -0
  231. package/dist/src/__internal/utils/deprecate.d.ts +3 -3
  232. package/dist/src/__internal/utils/relative-time.d.ts +5 -0
  233. package/dist/src/accordion/accordion.d.ts +1 -0
  234. package/dist/src/ai-badge/ai-badge.d.ts +8 -0
  235. package/dist/src/button/button/button.d.ts +4 -0
  236. package/dist/src/chat-message/chat-message.d.ts +51 -10
  237. package/dist/src/chat-message/index.d.ts +1 -1
  238. package/dist/src/chat-thread/chat-event.d.ts +37 -0
  239. package/dist/src/chat-thread/chat-thread.d.ts +7 -4
  240. package/dist/src/chat-thread/index.d.ts +1 -0
  241. package/dist/src/code-editor/code-editor.d.ts +1 -0
  242. package/dist/src/date-picker/date-picker.d.ts +2 -0
  243. package/dist/src/dependency-map/dependency-map-layout.d.ts +48 -0
  244. package/dist/src/dependency-map/dependency-map.d.ts +241 -0
  245. package/dist/src/dependency-map/index.d.ts +2 -0
  246. package/dist/src/diagram/diagram.d.ts +300 -0
  247. package/dist/src/diagram/flow.d.ts +53 -0
  248. package/dist/src/diagram/index.d.ts +4 -0
  249. package/dist/src/diagram-controls/diagram-controls.d.ts +46 -0
  250. package/dist/src/diagram-controls/index.d.ts +1 -0
  251. package/dist/src/diagram-minimap/diagram-minimap.d.ts +39 -0
  252. package/dist/src/diagram-minimap/index.d.ts +1 -0
  253. package/dist/src/erd/erd-layout.d.ts +27 -0
  254. package/dist/src/erd/erd.d.ts +266 -0
  255. package/dist/src/erd/index.d.ts +2 -0
  256. package/dist/src/field/field.d.ts +38 -1
  257. package/dist/src/file-upload/file-upload.d.ts +3 -1
  258. package/dist/src/focus-ring/focus-ring.d.ts +2 -0
  259. package/dist/src/index.d.ts +17 -4
  260. package/dist/src/input/BaseField.d.ts +15 -1
  261. package/dist/src/input/BaseInput.d.ts +4 -0
  262. package/dist/src/menu/menu-item/menu-item.d.ts +1 -0
  263. package/dist/src/number-field/number-field.d.ts +4 -0
  264. package/dist/src/progress/base-progress.d.ts +3 -0
  265. package/dist/src/radio/radio-group.d.ts +1 -0
  266. package/dist/src/rating/rating.d.ts +1 -0
  267. package/dist/src/ripple/ripple.d.ts +2 -0
  268. package/dist/src/signature-pad/signature-pad.d.ts +1 -0
  269. package/dist/src/slider/slider.d.ts +1 -0
  270. package/dist/src/split-button/split-button.d.ts +7 -2
  271. package/dist/src/switch/switch.d.ts +1 -0
  272. package/dist/src/tabs/tab.d.ts +2 -0
  273. package/dist/src/tabs/tabs.d.ts +1 -0
  274. package/dist/src/textarea/textarea.d.ts +3 -0
  275. package/dist/src/time-picker/time-picker.d.ts +2 -0
  276. package/dist/src/transfer-list/transfer-list.d.ts +1 -0
  277. package/dist/src/tree-chart/index.d.ts +2 -0
  278. package/dist/src/tree-chart/tree-chart-layout.d.ts +49 -0
  279. package/dist/src/tree-chart/tree-chart.d.ts +221 -0
  280. package/dist/src/workflow/index.d.ts +2 -0
  281. package/dist/src/workflow/workflow-format.d.ts +5 -0
  282. package/dist/src/workflow/workflow-model.d.ts +194 -0
  283. package/dist/src/workflow/workflow.d.ts +313 -0
  284. package/dist/src/workflow-timeline/index.d.ts +1 -0
  285. package/dist/src/workflow-timeline/workflow-timeline.d.ts +41 -0
  286. package/dist/stat.js +2 -2
  287. package/dist/status-indicator.js +2 -2
  288. package/dist/step.js +2 -2
  289. package/dist/stepper.js +2 -2
  290. package/dist/{strings-DmbqMTfs.js → strings-DnYjGbbc.js} +169 -1
  291. package/dist/{strings-DmbqMTfs.js.map → strings-DnYjGbbc.js.map} +1 -1
  292. package/dist/sub-menu.js +2 -2
  293. package/dist/{suggestion-controller-CW17adxd.js → suggestion-controller-7YRQqkaI.js} +3 -1
  294. package/dist/{suggestion-controller-CW17adxd.js.map → suggestion-controller-7YRQqkaI.js.map} +1 -1
  295. package/dist/svg.js +2 -2
  296. package/dist/switch.js +6 -5
  297. package/dist/switch.js.map +1 -1
  298. package/dist/tab.js +1 -0
  299. package/dist/tab.js.map +1 -1
  300. package/dist/table.js +50 -11
  301. package/dist/table.js.map +1 -1
  302. package/dist/tabs.js +1 -0
  303. package/dist/tabs.js.map +1 -1
  304. package/dist/test/diagram-controls.test.d.ts +1 -0
  305. package/dist/test/diagram-geometry.test.d.ts +1 -0
  306. package/dist/test/diagram.test.d.ts +1 -0
  307. package/dist/test/erd.test.d.ts +1 -0
  308. package/dist/test/toggle-label.test.d.ts +1 -0
  309. package/dist/test/tree-chart.test.d.ts +1 -0
  310. package/dist/test/workflow-debug.test.d.ts +1 -0
  311. package/dist/test/workflow.test.d.ts +1 -0
  312. package/dist/textarea.js +13 -6
  313. package/dist/textarea.js.map +1 -1
  314. package/dist/time-field.js +7 -7
  315. package/dist/time-picker.js +4 -2
  316. package/dist/time-picker.js.map +1 -1
  317. package/dist/timeline-item.js +2 -2
  318. package/dist/timeline.js +2 -2
  319. package/dist/{toggle-base-BQO5pjrU.js → toggle-base-CXmFSp3b.js} +19 -3
  320. package/dist/toggle-base-CXmFSp3b.js.map +1 -0
  321. package/dist/tour.js +2 -2
  322. package/dist/transfer-list.js +6 -5
  323. package/dist/transfer-list.js.map +1 -1
  324. package/dist/{chart-base-B-gOg2Di.js → transform-CxeQFXXB.js} +9 -839
  325. package/dist/transform-CxeQFXXB.js.map +1 -0
  326. package/dist/tree-chart.js +1986 -0
  327. package/dist/tree-chart.js.map +1 -0
  328. package/dist/tree-item.js +2 -2
  329. package/dist/tree.js +2 -2
  330. package/dist/tsconfig.tsbuildinfo +1 -1
  331. package/dist/typing-indicator.js +2 -2
  332. package/dist/url-field.js +6 -6
  333. package/dist/user-menu.js +3 -3
  334. package/dist/virtual-list.js +2 -2
  335. package/dist/workflow-format-BsyveyeC.js +34 -0
  336. package/dist/workflow-format-BsyveyeC.js.map +1 -0
  337. package/dist/workflow-model-CauduOG2.js +330 -0
  338. package/dist/workflow-model-CauduOG2.js.map +1 -0
  339. package/dist/workflow-timeline.js +354 -0
  340. package/dist/workflow-timeline.js.map +1 -0
  341. package/dist/workflow.js +3337 -0
  342. package/dist/workflow.js.map +1 -0
  343. package/dist/workspace-switcher.js +3 -3
  344. package/package.json +1 -1
  345. package/readme.md +44 -2
  346. package/src/LoaderUtils.ts +9 -2
  347. package/src/__internal/ai/suggestion-controller.ts +3 -1
  348. package/src/__internal/diagram/canvas-base.ts +410 -0
  349. package/src/__internal/diagram/canvas-link.ts +66 -0
  350. package/src/__internal/diagram/geometry.ts +372 -0
  351. package/src/__internal/diagram/history.ts +49 -0
  352. package/src/__internal/diagram/host.ts +76 -0
  353. package/src/__internal/diagram/markers.ts +56 -0
  354. package/src/__internal/diagram/measure-controller.ts +104 -0
  355. package/src/__internal/diagram/motion.ts +89 -0
  356. package/src/__internal/diagram/selection.ts +69 -0
  357. package/src/__internal/diagram/types.ts +56 -0
  358. package/src/__internal/diagram/viewport-controller.ts +494 -0
  359. package/src/__internal/i18n/strings.ts +207 -0
  360. package/src/__internal/menu-trigger-controller.ts +11 -15
  361. package/src/__internal/mixins/field.ts +3 -0
  362. package/src/__internal/mixins/form-associated.ts +2 -0
  363. package/src/__internal/mixins/form-submitter.ts +6 -0
  364. package/src/__internal/mixins/hyperlink.ts +10 -0
  365. package/src/__internal/toggle-base.ts +16 -0
  366. package/src/__internal/utils/deprecate.ts +5 -4
  367. package/src/__internal/utils/relative-time.ts +20 -0
  368. package/src/accordion/accordion.ts +1 -0
  369. package/src/ai-badge/ai-badge.scss +8 -0
  370. package/src/ai-badge/ai-badge.ts +21 -4
  371. package/src/button/base-button/base-button.ts +2 -0
  372. package/src/button/button/button-base.scss +9 -2
  373. package/src/button/button/button-layers.scss +3 -1
  374. package/src/button/button/button.ts +4 -0
  375. package/src/chat-message/chat-message.scss +72 -0
  376. package/src/chat-message/chat-message.ts +137 -18
  377. package/src/chat-message/index.ts +1 -0
  378. package/src/chat-thread/chat-event.scss +36 -0
  379. package/src/chat-thread/chat-event.ts +79 -0
  380. package/src/chat-thread/chat-thread.scss +4 -1
  381. package/src/chat-thread/chat-thread.ts +22 -6
  382. package/src/chat-thread/index.ts +1 -0
  383. package/src/code-editor/code-editor.ts +1 -0
  384. package/src/date-picker/date-picker.ts +2 -0
  385. package/src/dependency-map/dependency-map-layout.ts +505 -0
  386. package/src/dependency-map/dependency-map.scss +626 -0
  387. package/src/dependency-map/dependency-map.ts +1280 -0
  388. package/src/dependency-map/index.ts +16 -0
  389. package/src/diagram/diagram.scss +513 -0
  390. package/src/diagram/diagram.ts +1852 -0
  391. package/src/diagram/flow.ts +81 -0
  392. package/src/diagram/index.ts +44 -0
  393. package/src/diagram-controls/diagram-controls.scss +68 -0
  394. package/src/diagram-controls/diagram-controls.ts +255 -0
  395. package/src/diagram-controls/index.ts +1 -0
  396. package/src/diagram-minimap/diagram-minimap.scss +41 -0
  397. package/src/diagram-minimap/diagram-minimap.ts +149 -0
  398. package/src/diagram-minimap/index.ts +1 -0
  399. package/src/draft-card/draft-card.scss +16 -2
  400. package/src/dropdown-button/dropdown-button.ts +2 -1
  401. package/src/erd/erd-layout.ts +92 -0
  402. package/src/erd/erd.scss +636 -0
  403. package/src/erd/erd.ts +1728 -0
  404. package/src/erd/index.ts +17 -0
  405. package/src/field/field.scss +197 -23
  406. package/src/field/field.ts +109 -16
  407. package/src/file-upload/file-upload.scss +37 -10
  408. package/src/file-upload/file-upload.ts +3 -1
  409. package/src/focus-ring/focus-ring.ts +2 -0
  410. package/src/generative-view/catalog.generated.ts +12 -11
  411. package/src/index.ts +123 -3
  412. package/src/input/BaseField.ts +45 -2
  413. package/src/input/BaseInput.ts +4 -1
  414. package/src/loader.ts +29 -0
  415. package/src/mention-input/mention-input.scss +2 -0
  416. package/src/menu/menu-item/menu-item.ts +1 -0
  417. package/src/number-field/number-field.ts +4 -0
  418. package/src/progress/base-progress.ts +3 -0
  419. package/src/radio/radio-group.ts +1 -0
  420. package/src/radio/radio.ts +1 -1
  421. package/src/rating/rating.ts +1 -0
  422. package/src/ripple/ripple.ts +2 -0
  423. package/src/signature-pad/signature-pad.ts +1 -0
  424. package/src/slider/slider.ts +1 -0
  425. package/src/split-button/split-button-colors.scss +9 -0
  426. package/src/split-button/split-button-sizes.scss +32 -5
  427. package/src/split-button/split-button.scss +61 -8
  428. package/src/split-button/split-button.ts +15 -8
  429. package/src/switch/switch.ts +1 -0
  430. package/src/table/table.scss +57 -9
  431. package/src/table/table.ts +3 -1
  432. package/src/tabs/tab.ts +2 -0
  433. package/src/tabs/tabs.ts +1 -0
  434. package/src/textarea/textarea.scss +2 -0
  435. package/src/textarea/textarea.ts +8 -0
  436. package/src/time-picker/time-picker.ts +2 -0
  437. package/src/transfer-list/transfer-list.ts +1 -0
  438. package/src/tree-chart/index.ts +13 -0
  439. package/src/tree-chart/tree-chart-layout.ts +185 -0
  440. package/src/tree-chart/tree-chart.scss +377 -0
  441. package/src/tree-chart/tree-chart.ts +1170 -0
  442. package/src/workflow/index.ts +35 -0
  443. package/src/workflow/workflow-format.ts +29 -0
  444. package/src/workflow/workflow-model.ts +583 -0
  445. package/src/workflow/workflow.scss +1164 -0
  446. package/src/workflow/workflow.ts +2674 -0
  447. package/src/workflow-timeline/index.ts +1 -0
  448. package/src/workflow-timeline/workflow-timeline.scss +128 -0
  449. package/src/workflow-timeline/workflow-timeline.ts +238 -0
  450. package/dist/BaseField-CAog9TIc.js.map +0 -1
  451. package/dist/BaseInput-CcMfg1Y2.js.map +0 -1
  452. package/dist/base-button-Do2TUy8M.js.map +0 -1
  453. package/dist/base-progress-BiLlZVHJ.js.map +0 -1
  454. package/dist/cartesian-chart-C-f1frt0.js.map +0 -1
  455. package/dist/chart-base-B-gOg2Di.js.map +0 -1
  456. package/dist/generative-view-DmtpDobn.js.map +0 -1
  457. package/dist/hyperlink-DhE9RlVS.js.map +0 -1
  458. package/dist/menu-trigger-controller-DyLpTxM7.js.map +0 -1
  459. package/dist/relative-time-BVQXLuHm.js.map +0 -1
  460. package/dist/src/flow/flow.d.ts +0 -178
  461. package/dist/src/flow/index.d.ts +0 -2
  462. package/dist/toggle-base-BQO5pjrU.js.map +0 -1
  463. package/src/button/button-group/readme.md +0 -23
  464. package/src/flow/flow.scss +0 -215
  465. package/src/flow/flow.ts +0 -958
  466. package/src/flow/index.ts +0 -10
  467. /package/dist/test/{flow.test.d.ts → dependency-map.test.d.ts} +0 -0
@@ -19,7 +19,8 @@ import type { Menu, MenuFocusTarget } from '../menu/menu/menu.js';
19
19
  * @overview
20
20
  * <p>The main button runs the default action; the arrow beside it opens a menu of related actions.</p>
21
21
  *
22
- * @cssprop --split-button-container-shape: Defines the border radius of the split button container shape.
22
+ * @cssprop --split-button-container-shape: Radius of the split button's outer corners. Defaults to fully round; the inner corners follow the M3 size tokens.
23
+ * @cssprop --split-button-gap: Space between the main button and the menu button. Defaults to 2px.
23
24
  *
24
25
  * @cssprop --filled-split-button-container-color: Color of the filled split button container.
25
26
  * @cssprop --filled-split-button-label-text-color: Text color of the filled split button label.
@@ -30,6 +31,9 @@ import type { Menu, MenuFocusTarget } from '../menu/menu/menu.js';
30
31
  * @cssprop --tonal-split-button-container-color: Color of the tonal split button container.
31
32
  * @cssprop --tonal-split-button-label-text-color: Text color of the tonal split button label.
32
33
  *
34
+ * @cssprop --elevated-split-button-container-color: Color of the elevated split button container.
35
+ * @cssprop --elevated-split-button-label-text-color: Text color of the elevated split button label.
36
+ *
33
37
  * @fires {MouseEvent} click - Dispatched when the primary action button is clicked.
34
38
  * @fires {CustomEvent} open - Dispatched after the menu opens.
35
39
  * @fires {CustomEvent<{reason: 'escape' | 'light-dismiss' | 'action' | 'api'}>} close - Dispatched after the menu closes: an item pick is `action`, Escape `escape`, a press outside or Tab `light-dismiss`, `close()` or the primary action `api`.
@@ -61,9 +65,13 @@ export class SplitButton extends LitElement {
61
65
  * `"filled"` is a filled button.
62
66
  * `"outlined"` is an outlined button.
63
67
  * `"tonal"` is a light color button.
68
+ * `"elevated"` is a raised button on a low surface.
64
69
  */
65
- @property({ reflect: true }) variant: 'filled' | 'tonal' | 'outlined' =
66
- 'filled';
70
+ @property({ reflect: true }) variant:
71
+ | 'filled'
72
+ | 'tonal'
73
+ | 'elevated'
74
+ | 'outlined' = 'filled';
67
75
 
68
76
  /**
69
77
  * Defines the primary color of the split button.
@@ -170,16 +178,15 @@ export class SplitButton extends LitElement {
170
178
  size=${this.size}
171
179
  variant=${this.variant}
172
180
  ?disabled=${this.disabled}
173
- .configAria=${{
174
- ...this._trigger.triggerAria,
175
- 'aria-label': this.i18n.t('openSplitButtonMenu'),
176
- }}
181
+ aria-label=${this.i18n.t('openSplitButtonMenu')}
182
+ aria-haspopup="menu"
183
+ aria-expanded=${String(this._trigger.open)}
177
184
  @click=${this._trigger.handleTriggerClick}
178
185
  @keydown=${this._trigger.handleTriggerKeyDown}
179
186
  >
180
187
  <wc-icon
181
188
  class="dropdown-icon"
182
- name="arrow_drop_down"
189
+ name="keyboard_arrow_down"
183
190
  aria-hidden="true"
184
191
  ></wc-icon>
185
192
  </wc-icon-button>
@@ -51,6 +51,7 @@ export class Switch extends ToggleBase {
51
51
  @property({ type: Boolean })
52
52
  rounded: boolean = true;
53
53
 
54
+ /** Shows a check icon in the handle when on and a close icon when off. */
54
55
  @property({ type: Boolean, reflect: true, attribute: 'with-icon' })
55
56
  withIcon: boolean = false;
56
57
 
@@ -14,7 +14,12 @@
14
14
  --_table-checkbox-width: 3rem;
15
15
  --_table-edge-shadow: color-mix(
16
16
  in srgb,
17
- var(--color-shadow) 14%,
17
+ var(--color-shadow) 12%,
18
+ transparent
19
+ );
20
+ --_table-edge-shadow-soft: color-mix(
21
+ in srgb,
22
+ var(--color-shadow) 4%,
18
23
  transparent
19
24
  );
20
25
  }
@@ -574,28 +579,63 @@
574
579
  display: flex;
575
580
  }
576
581
 
577
- // ── Edge shadows on pinned columns ──────────────────────────────────────────
582
+ // ── Pinned column edges: divider and lift shadow ───────────────────────────
578
583
 
584
+ // A hairline always marks the frozen edge. A pseudo element, not a border, so the row keeps
585
+ // the width `totalWidth()` gives it; above the cells of its own group.
586
+ .pinned-group-start::before,
587
+ .pinned-group-end::after {
588
+ content: '';
589
+ position: absolute;
590
+ inset-block: 0;
591
+ z-index: 1;
592
+ inline-size: 1px;
593
+ background: var(--table-border-color);
594
+ pointer-events: none;
595
+ }
596
+
597
+ .pinned-group-start::before {
598
+ inset-inline-end: 0;
599
+ }
600
+
601
+ .pinned-group-end::after {
602
+ inset-inline-start: 0;
603
+ }
604
+
605
+ // While content is scrolled under the edge, an eased shadow fades in behind the hairline.
579
606
  .pinned-group-start::after,
580
607
  .pinned-group-end::before {
581
608
  content: '';
582
609
  position: absolute;
583
- top: 0;
584
- bottom: 0;
585
- width: 0.75rem;
610
+ inset-block: 0;
611
+ inline-size: 1rem;
612
+ background: linear-gradient(
613
+ to right,
614
+ var(--_table-edge-shadow) 0,
615
+ var(--_table-edge-shadow-soft) 40%,
616
+ transparent
617
+ );
586
618
  pointer-events: none;
587
619
  opacity: 0;
588
620
  transition: opacity var(--duration-short4, 200ms) ease;
589
621
  }
590
622
 
591
623
  .pinned-group-start::after {
592
- inset-inline-end: -0.75rem;
593
- background: linear-gradient(to right, var(--_table-edge-shadow), transparent);
624
+ inset-inline-end: -1rem;
594
625
  }
595
626
 
596
627
  .pinned-group-end::before {
597
- inset-inline-start: -0.75rem;
598
- background: linear-gradient(to left, var(--_table-edge-shadow), transparent);
628
+ inset-inline-start: -1rem;
629
+ transform: scaleX(-1);
630
+ }
631
+
632
+ // The shadow falls along the reading direction.
633
+ .pinned-group-start:dir(rtl)::after {
634
+ transform: scaleX(-1);
635
+ }
636
+
637
+ .pinned-group-end:dir(rtl)::before {
638
+ transform: none;
599
639
  }
600
640
 
601
641
  .scrolled-from-start .pinned-group-start::after,
@@ -603,6 +643,14 @@
603
643
  opacity: 1;
604
644
  }
605
645
 
646
+ // A resize grip beside a hairline would draw a second bar; it shows only on hover or focus.
647
+ .pinned-group-start > .cell:last-child,
648
+ .scroll-group:has(+ .pinned-group-end) > .cell:last-child {
649
+ .resize-handle:not(:hover, :focus-visible)::after {
650
+ background: transparent;
651
+ }
652
+ }
653
+
606
654
  // ── Selection bar ───────────────────────────────────────────────────────────
607
655
 
608
656
  .bulk-bar {
@@ -1792,6 +1792,8 @@ export class Table extends LitElement {
1792
1792
  const position = sorts.findIndex(sort => sort.name === column.name);
1793
1793
  const sort = sorts[position];
1794
1794
  const showPriority = sort && sorts.length > 1;
1795
+ let icon = 'swap_vert';
1796
+ if (sort) icon = sort.order === 'desc' ? 'arrow_downward' : 'arrow_upward';
1795
1797
  return html`
1796
1798
  <button
1797
1799
  type="button"
@@ -1805,7 +1807,7 @@ export class Table extends LitElement {
1805
1807
  <wc-icon
1806
1808
  class="sort-icon"
1807
1809
  aria-hidden="true"
1808
- name=${sort?.order === 'desc' ? 'arrow_downward' : 'arrow_upward'}
1810
+ name=${icon}
1809
1811
  ></wc-icon>
1810
1812
  ${showPriority
1811
1813
  ? html`<span class="sort-priority" aria-hidden="true"
package/src/tabs/tab.ts CHANGED
@@ -61,6 +61,7 @@ export class Tab extends LitElement {
61
61
  /** Whether this is the chosen tab. Reflects to `aria-selected` (or `aria-current` on a link tab). */
62
62
  @property({ type: Boolean, reflect: true }) selected = false;
63
63
 
64
+ /** Disables the tab: it can't be selected. */
64
65
  @property({ type: Boolean, reflect: true }) disabled = false;
65
66
 
66
67
  /** Why the tab is disabled; read to screen reader users. */
@@ -79,6 +80,7 @@ export class Tab extends LitElement {
79
80
  */
80
81
  @property() target: string = '_self';
81
82
 
83
+ /** The URL to link to. When set, the tab renders as a link for page navigation. */
82
84
  @property({ type: String, reflect: true }) href?: string;
83
85
 
84
86
  /**
package/src/tabs/tabs.ts CHANGED
@@ -50,6 +50,7 @@ export class Tabs extends LitElement {
50
50
 
51
51
  // ── Properties
52
52
 
53
+ /** The visual style of the tabs: `"primary"` (default), `"secondary"`, `"contained"` or `"filled"`. */
53
54
  @property({ reflect: true })
54
55
  variant: 'primary' | 'secondary' | 'contained' | 'filled' = 'primary';
55
56
 
@@ -20,6 +20,8 @@
20
20
  align-items: flex-start;
21
21
  --field-height: auto;
22
22
  --field-padding-block: var(--spacing-100);
23
+ // The outlined label rests on the first line, not in the middle of a tall box.
24
+ --field-label-rest-top: calc(var(--spacing-100) + var(--typography-body-large-line-height) / 2);
23
25
 
24
26
  .input {
25
27
  flex: 1;
@@ -54,6 +54,7 @@ export class Textarea extends BaseField {
54
54
  @property({ type: String })
55
55
  value = '';
56
56
 
57
+ /** Whether the browser may autofill the field: `"on"` or `"off"` (default). */
57
58
  @property({ type: String }) autocomplete: 'on' | 'off' = 'off';
58
59
 
59
60
  /** Visible lines of text; the starting height with `auto-grow`. */
@@ -116,6 +117,13 @@ export class Textarea extends BaseField {
116
117
  }
117
118
  }
118
119
 
120
+ // ── Protected methods ────────────────────────────────────────────────────
121
+
122
+ /** Just the sparkle: a label beside the text would narrow every line. */
123
+ protected override get suggestionBadgeIconOnly(): boolean {
124
+ return true;
125
+ }
126
+
119
127
  // ── Public methods ───────────────────────────────────────────────────────
120
128
 
121
129
  override focus() {
@@ -83,8 +83,10 @@ export class TimePicker extends LitElement {
83
83
  /** BCP 47 locale for AM/PM names and the default hour cycle. */
84
84
  @property({ type: String }) locale = '';
85
85
 
86
+ /** Disables the picker: no time can be focused or picked. */
86
87
  @property({ type: Boolean, reflect: true }) disabled = false;
87
88
 
89
+ /** Shows the selected time but stops the user changing it. */
88
90
  @property({ type: Boolean, reflect: true }) readonly = false;
89
91
 
90
92
  // ── State ────────────────────────────────────────────────────────────────
@@ -127,6 +127,7 @@ export class TransferList extends BaseInput {
127
127
  @property({ type: Boolean, reflect: true })
128
128
  error = false;
129
129
 
130
+ /** Error message shown below the component while `error` is set; replaces the help text. */
130
131
  @property({ type: String, attribute: 'error-text' })
131
132
  errorText = '';
132
133
 
@@ -0,0 +1,13 @@
1
+ export { TreeChart } from './tree-chart.js';
2
+ export type {
3
+ TreeChartAccent,
4
+ TreeChartAddDetail,
5
+ TreeChartChangeDetail,
6
+ TreeChartChangeReason,
7
+ TreeChartDeleteDetail,
8
+ TreeChartItem,
9
+ TreeChartItemDetail,
10
+ TreeChartOrientation,
11
+ TreeChartReparentDetail,
12
+ TreeChartViewportDetail,
13
+ } from './tree-chart.js';
@@ -0,0 +1,185 @@
1
+ import { hierarchy, tree } from 'd3';
2
+ import type { DiagramPoint, DiagramSize } from '@/__internal/diagram/types.js';
3
+
4
+ /** A node to lay out: its size and the ids of its visible children. */
5
+ export interface LayoutInput {
6
+ id: string;
7
+ children: string[];
8
+ }
9
+
10
+ export interface LayoutOptions {
11
+ orientation: 'vertical' | 'horizontal';
12
+ /** Stack children that are all leaves in a column under their parent (vertical only). */
13
+ compact: boolean;
14
+ /** Space between siblings, in canvas pixels. */
15
+ siblingGap: number;
16
+ /** Space between levels. */
17
+ levelGap: number;
18
+ /** Space between the cards of a compact stack. */
19
+ stackGap: number;
20
+ /** Indent of a compact stack from its connector lane. */
21
+ stackIndent: number;
22
+ }
23
+
24
+ export interface LayoutResult {
25
+ /** Top-left corner of each laid-out node. */
26
+ positions: Map<string, DiagramPoint>;
27
+ /** Parents whose children are drawn as a compact stack. */
28
+ stacked: Set<string>;
29
+ }
30
+
31
+ /**
32
+ * The corner points of the connector from a parent box to a child box: down to a fork halfway
33
+ * across the level gap, across, and down into the child. For a compact stack, across to a lane on
34
+ * the stack's left and into the child's side.
35
+ */
36
+ export function linkPoints(
37
+ parent: { x: number; y: number; width: number; height: number },
38
+ child: { x: number; y: number; width: number; height: number },
39
+ options: Pick<LayoutOptions, 'orientation' | 'levelGap' | 'stackIndent'> & {
40
+ stacked: boolean;
41
+ },
42
+ ): DiagramPoint[] {
43
+ if (options.orientation === 'horizontal') {
44
+ const start = {
45
+ x: parent.x + parent.width,
46
+ y: parent.y + parent.height / 2,
47
+ };
48
+ const end = { x: child.x, y: child.y + child.height / 2 };
49
+ const fork = start.x + options.levelGap / 2;
50
+ return [start, { x: fork, y: start.y }, { x: fork, y: end.y }, end];
51
+ }
52
+ const start = { x: parent.x + parent.width / 2, y: parent.y + parent.height };
53
+ const fork = start.y + options.levelGap / 2;
54
+ if (options.stacked) {
55
+ const lane = child.x - options.stackIndent;
56
+ const mid = child.y + child.height / 2;
57
+ return [
58
+ start,
59
+ { x: start.x, y: fork },
60
+ { x: lane, y: fork },
61
+ { x: lane, y: mid },
62
+ { x: child.x, y: mid },
63
+ ];
64
+ }
65
+ const end = { x: child.x + child.width / 2, y: child.y };
66
+ return [start, { x: start.x, y: fork }, { x: end.x, y: fork }, end];
67
+ }
68
+
69
+ interface Box {
70
+ id: string;
71
+ /** Width across the tree (breadth) and along it (depth). */
72
+ breadth: number;
73
+ depth: number;
74
+ /** For a compact stack: the leaves inside, top to bottom. */
75
+ stack?: string[];
76
+ children: Box[];
77
+ }
78
+
79
+ const VIRTUAL_ROOT = '\u0000root';
80
+
81
+ /**
82
+ * Lays out a forest as tidy trees (d3's Buchheim algorithm) with each node's real size. Roots sit
83
+ * side by side. With `compact`, a parent whose visible children are all leaves gets them as one
84
+ * column, which keeps wide teams narrow.
85
+ */
86
+ export function layoutTree(
87
+ roots: string[],
88
+ nodes: Map<string, LayoutInput>,
89
+ size: (id: string) => DiagramSize,
90
+ options: LayoutOptions,
91
+ ): LayoutResult {
92
+ const vertical = options.orientation === 'vertical';
93
+ const breadthOf = (s: DiagramSize) => (vertical ? s.width : s.height);
94
+ const depthOf = (s: DiagramSize) => (vertical ? s.height : s.width);
95
+ const stacked = new Set<string>();
96
+
97
+ const build = (id: string): Box => {
98
+ const s = size(id);
99
+ const kids = nodes.get(id)?.children ?? [];
100
+ const allLeaves =
101
+ kids.length > 1 &&
102
+ kids.every(k => (nodes.get(k)?.children.length ?? 0) === 0);
103
+ if (vertical && options.compact && allLeaves) {
104
+ stacked.add(id);
105
+ const widths = kids.map(k => size(k).width);
106
+ const heights = kids.map(k => size(k).height);
107
+ const stackBox: Box = {
108
+ id: `${id}\u0000stack`,
109
+ breadth: Math.max(...widths) + options.stackIndent * 2,
110
+ depth:
111
+ heights.reduce((a, b) => a + b, 0) +
112
+ options.stackGap * (kids.length - 1),
113
+ stack: kids,
114
+ children: [],
115
+ };
116
+ return {
117
+ id,
118
+ breadth: breadthOf(s),
119
+ depth: depthOf(s),
120
+ children: [stackBox],
121
+ };
122
+ }
123
+ return {
124
+ id,
125
+ breadth: breadthOf(s),
126
+ depth: depthOf(s),
127
+ children: kids.map(build),
128
+ };
129
+ };
130
+
131
+ const forest: Box = {
132
+ id: VIRTUAL_ROOT,
133
+ breadth: 0,
134
+ depth: 0,
135
+ children: roots.map(build),
136
+ };
137
+ const root = hierarchy(forest, b => b.children);
138
+
139
+ // Depth extent per level, so levels line up even when cards differ in height. A compact stack
140
+ // has nothing below it, so its height does not push deeper levels down.
141
+ const levelDepth: number[] = [];
142
+ root.each(n => {
143
+ const extent = n.data.stack ? 0 : n.data.depth;
144
+ levelDepth[n.depth] = Math.max(levelDepth[n.depth] ?? 0, extent);
145
+ });
146
+ const levelStart: number[] = [];
147
+ let cursor = 0;
148
+ levelDepth.forEach((d, i) => {
149
+ levelStart[i] = cursor;
150
+ cursor += d + (i === 0 ? 0 : options.levelGap);
151
+ });
152
+
153
+ tree<Box>()
154
+ .nodeSize([1, 1])
155
+ .separation(
156
+ (a, b) =>
157
+ (a.data.breadth + b.data.breadth) / 2 +
158
+ options.siblingGap * (a.parent === b.parent ? 1 : 1.5),
159
+ )(root);
160
+
161
+ const positions = new Map<string, DiagramPoint>();
162
+ root.each(node => {
163
+ const n = node as typeof node & { x: number };
164
+ if (n.data.id === VIRTUAL_ROOT) return;
165
+ const start = levelStart[n.depth];
166
+ const center = n.x;
167
+ if (n.data.stack) {
168
+ // A compact stack: one column with its lane on the left, starting at this level.
169
+ const left = center - n.data.breadth / 2 + options.stackIndent * 2;
170
+ let y = start;
171
+ for (const leaf of n.data.stack) {
172
+ positions.set(leaf, { x: left, y });
173
+ y += size(leaf).height + options.stackGap;
174
+ }
175
+ return;
176
+ }
177
+ const b = center - breadthOf(size(n.data.id)) / 2;
178
+ positions.set(
179
+ n.data.id,
180
+ vertical ? { x: b, y: start } : { x: start, y: b },
181
+ );
182
+ });
183
+
184
+ return { positions, stacked };
185
+ }