@redvars/peacock 4.0.0 → 4.1.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 (408) hide show
  1. package/dist/{BaseField-CAog9TIc.js → BaseField-BMumJpkW.js} +6 -3
  2. package/dist/BaseField-BMumJpkW.js.map +1 -0
  3. package/dist/{BaseInput-CcMfg1Y2.js → BaseInput-mWdyYv27.js} +6 -3
  4. package/dist/BaseInput-mWdyYv27.js.map +1 -0
  5. package/dist/accordion.js.map +1 -1
  6. package/dist/ai-badge.js +2 -2
  7. package/dist/ai-summary.js +2 -2
  8. package/dist/alert.js +2 -2
  9. package/dist/anchor-nav.js +2 -2
  10. package/dist/app-shell.js +2 -2
  11. package/dist/assistant-panel.js +2 -2
  12. package/dist/assistant-step.js +2 -2
  13. package/dist/assistant-steps.js +2 -2
  14. package/dist/avatar-group.js +2 -2
  15. package/dist/banner.js +2 -2
  16. package/dist/{base-button-Do2TUy8M.js → base-button-BJMGMcMv.js} +3 -1
  17. package/dist/base-button-BJMGMcMv.js.map +1 -0
  18. package/dist/{base-progress-BiLlZVHJ.js → base-progress-CvLVSjuy.js} +4 -2
  19. package/dist/base-progress-CvLVSjuy.js.map +1 -0
  20. package/dist/bottom-sheet.js +2 -2
  21. package/dist/breadcrumb.js +2 -2
  22. package/dist/button-group.js +4 -4
  23. package/dist/button.js +3 -3
  24. package/dist/calendar.js +2 -2
  25. package/dist/canvas-base-BTQMEVn_.js +788 -0
  26. package/dist/canvas-base-BTQMEVn_.js.map +1 -0
  27. package/dist/canvas-link-CtgsALq4.js +54 -0
  28. package/dist/canvas-link-CtgsALq4.js.map +1 -0
  29. package/dist/{cartesian-chart-C-f1frt0.js → cartesian-chart-DM1FC_XT.js} +3 -2
  30. package/dist/cartesian-chart-DM1FC_XT.js.map +1 -0
  31. package/dist/{cb-group-base-DeuCVx3a.js → cb-group-base-B6fa4Lll.js} +2 -2
  32. package/dist/{cb-group-base-DeuCVx3a.js.map → cb-group-base-B6fa4Lll.js.map} +1 -1
  33. package/dist/cb-group.js +3 -3
  34. package/dist/cb-rule.js +3 -3
  35. package/dist/chart-area.js +5 -4
  36. package/dist/chart-area.js.map +1 -1
  37. package/dist/chart-bar.js +5 -4
  38. package/dist/chart-bar.js.map +1 -1
  39. package/dist/chart-base-Dhxuw_Mw.js +833 -0
  40. package/dist/chart-base-Dhxuw_Mw.js.map +1 -0
  41. package/dist/chart-doughnut.js +4 -3
  42. package/dist/chart-doughnut.js.map +1 -1
  43. package/dist/chart-line.js +5 -4
  44. package/dist/chart-line.js.map +1 -1
  45. package/dist/chart-pie.js +4 -3
  46. package/dist/chart-pie.js.map +1 -1
  47. package/dist/chat-message.js +2 -2
  48. package/dist/chat-thread.js +2 -2
  49. package/dist/checkbox-group.js +4 -4
  50. package/dist/checkbox.js +4 -4
  51. package/dist/chip-set.js +3 -3
  52. package/dist/chip.js +4 -4
  53. package/dist/circular-progress.js +3 -3
  54. package/dist/citation.js +2 -2
  55. package/dist/code-editor.js +5 -4
  56. package/dist/code-editor.js.map +1 -1
  57. package/dist/code-highlighter.js +2 -2
  58. package/dist/color-field.js +5 -5
  59. package/dist/color-picker.js +2 -2
  60. package/dist/command-palette.js +2 -2
  61. package/dist/comment-composer.js +5 -5
  62. package/dist/condition-builder.js +3 -3
  63. package/dist/confirm-dialog.js +2 -2
  64. package/dist/copy-button.js +2 -2
  65. package/dist/currency-field.js +5 -5
  66. package/dist/custom-elements-jsdocs.json +2115 -336
  67. package/dist/custom-elements.json +19483 -615
  68. package/dist/date-field.js +6 -6
  69. package/dist/date-picker.js +4 -2
  70. package/dist/date-picker.js.map +1 -1
  71. package/dist/date-range-field.js +6 -6
  72. package/dist/datetime-field.js +6 -6
  73. package/dist/dependency-map-layout-5KUueabk.js +1390 -0
  74. package/dist/dependency-map-layout-5KUueabk.js.map +1 -0
  75. package/dist/dependency-map.js +1605 -0
  76. package/dist/dependency-map.js.map +1 -0
  77. package/dist/description-item.js +2 -2
  78. package/dist/description-list.js +2 -2
  79. package/dist/diagram-2r11KySs.js +2029 -0
  80. package/dist/diagram-2r11KySs.js.map +1 -0
  81. package/dist/diagram-controls.js +345 -0
  82. package/dist/diagram-controls.js.map +1 -0
  83. package/dist/diagram-minimap.js +216 -0
  84. package/dist/diagram-minimap.js.map +1 -0
  85. package/dist/diagram.js +20 -0
  86. package/dist/diagram.js.map +1 -0
  87. package/dist/diff-viewer.js +2 -2
  88. package/dist/discussion-activity.js +2 -2
  89. package/dist/discussion-comment.js +2 -2
  90. package/dist/discussion.js +5 -5
  91. package/dist/{document-editor-BO7QPbO5.js → document-editor-BnEugM3E.js} +2 -2
  92. package/dist/{document-editor-BO7QPbO5.js.map → document-editor-BnEugM3E.js.map} +1 -1
  93. package/dist/document-editor.js +3 -3
  94. package/dist/draft-card.js +2 -2
  95. package/dist/erd.js +2021 -0
  96. package/dist/erd.js.map +1 -0
  97. package/dist/fab.js +4 -4
  98. package/dist/field.js +257 -43
  99. package/dist/field.js.map +1 -1
  100. package/dist/file-upload.js +37 -15
  101. package/dist/file-upload.js.map +1 -1
  102. package/dist/filter-bar.js +2 -2
  103. package/dist/flow.js +27 -970
  104. package/dist/flow.js.map +1 -1
  105. package/dist/focus-ring.js +2 -0
  106. package/dist/focus-ring.js.map +1 -1
  107. package/dist/{form-associated-D3Tn33s_.js → form-associated-BHbg72PG.js} +3 -1
  108. package/dist/{form-associated-D3Tn33s_.js.map → form-associated-BHbg72PG.js.map} +1 -1
  109. package/dist/{form-submitter-DWwv6K9-.js → form-submitter-beG1CXAn.js} +7 -1
  110. package/dist/{form-submitter-DWwv6K9-.js.map → form-submitter-beG1CXAn.js.map} +1 -1
  111. package/dist/form.js +2 -2
  112. package/dist/{generative-view-DmtpDobn.js → generative-view-BgOcLRXr.js} +13 -13
  113. package/dist/generative-view-BgOcLRXr.js.map +1 -0
  114. package/dist/generative-view.js +3 -3
  115. package/dist/geometry-INg82Lxq.js +305 -0
  116. package/dist/geometry-INg82Lxq.js.map +1 -0
  117. package/dist/history-YbTSQZHj.js +45 -0
  118. package/dist/history-YbTSQZHj.js.map +1 -0
  119. package/dist/host-CZK7xhzh.js +40 -0
  120. package/dist/host-CZK7xhzh.js.map +1 -0
  121. package/dist/html-editor.js +5 -5
  122. package/dist/{hyperlink-DhE9RlVS.js → hyperlink-DycWPKwU.js} +10 -1
  123. package/dist/hyperlink-DycWPKwU.js.map +1 -0
  124. package/dist/{i18n-controller-urcQKYGe.js → i18n-controller-Cp43HjJl.js} +2 -2
  125. package/dist/{i18n-controller-urcQKYGe.js.map → i18n-controller-Cp43HjJl.js.map} +1 -1
  126. package/dist/icon-button.js +4 -4
  127. package/dist/image.js +2 -2
  128. package/dist/index.js +37 -18
  129. package/dist/index.js.map +1 -1
  130. package/dist/inline-edit.js +2 -2
  131. package/dist/input.js +4 -4
  132. package/dist/json-viewer.js +2 -2
  133. package/dist/kanban.js +2 -2
  134. package/dist/kbd.js +2 -2
  135. package/dist/linear-progress.js +3 -3
  136. package/dist/link-button.js +2 -2
  137. package/dist/list-item.js +2 -2
  138. package/dist/list.js +2 -2
  139. package/dist/listbox.js +3 -3
  140. package/dist/loader-full.js +13 -13
  141. package/dist/loader.js +44 -15
  142. package/dist/loader.js.map +1 -1
  143. package/dist/markdown-editor.js +5 -5
  144. package/dist/markers-BFmh1OCz.js +46 -0
  145. package/dist/markers-BFmh1OCz.js.map +1 -0
  146. package/dist/measure-controller-Dmc5hZKg.js +89 -0
  147. package/dist/measure-controller-Dmc5hZKg.js.map +1 -0
  148. package/dist/mention-input.js +6 -5
  149. package/dist/mention-input.js.map +1 -1
  150. package/dist/menu-item.js +3 -2
  151. package/dist/menu-item.js.map +1 -1
  152. package/dist/menu.js +2 -2
  153. package/dist/modal.js +2 -2
  154. package/dist/navigation-bar.js +2 -2
  155. package/dist/navigation-drawer.js +2 -2
  156. package/dist/navigation-rail.js +2 -2
  157. package/dist/notification-center.js +2 -2
  158. package/dist/number-field.js +6 -5
  159. package/dist/number-field.js.map +1 -1
  160. package/dist/option.js +2 -2
  161. package/dist/page-header.js +2 -2
  162. package/dist/pagination.js +2 -2
  163. package/dist/password-field.js +5 -5
  164. package/dist/password-rules.js +2 -2
  165. package/dist/phone-field.js +5 -5
  166. package/dist/{picker-field-B4DtcJfL.js → picker-field-dTlIMAQn.js} +3 -3
  167. package/dist/{picker-field-B4DtcJfL.js.map → picker-field-dTlIMAQn.js.map} +1 -1
  168. package/dist/pin-input.js +5 -5
  169. package/dist/presence-indicator.js +2 -2
  170. package/dist/prompt-input.js +5 -5
  171. package/dist/radio-group.js +1 -0
  172. package/dist/radio-group.js.map +1 -1
  173. package/dist/radio.js +5 -5
  174. package/dist/radio.js.map +1 -1
  175. package/dist/rating.js +5 -4
  176. package/dist/rating.js.map +1 -1
  177. package/dist/redvars-loader.js +2 -2
  178. package/dist/relative-time.js +2 -2
  179. package/dist/resizable-panels.js +2 -2
  180. package/dist/{rich-text-input-DLICqof1.js → rich-text-input-DM_BOzgk.js} +3 -3
  181. package/dist/{rich-text-input-DLICqof1.js.map → rich-text-input-DM_BOzgk.js.map} +1 -1
  182. package/dist/ripple.js +2 -0
  183. package/dist/ripple.js.map +1 -1
  184. package/dist/{schema-hMt-NRLk.js → schema-B8g30A_n.js} +2 -2
  185. package/dist/{schema-hMt-NRLk.js.map → schema-B8g30A_n.js.map} +1 -1
  186. package/dist/search.js +4 -4
  187. package/dist/segmented-button-group.js +1 -1
  188. package/dist/select.js +7 -7
  189. package/dist/side-sheet.js +2 -2
  190. package/dist/signature-pad.js +5 -4
  191. package/dist/signature-pad.js.map +1 -1
  192. package/dist/slider.js +5 -4
  193. package/dist/slider.js.map +1 -1
  194. package/dist/snackbar.js +2 -2
  195. package/dist/sparkline.js +2 -2
  196. package/dist/split-button.js +2 -2
  197. package/dist/src/__internal/diagram/canvas-base.d.ts +105 -0
  198. package/dist/src/__internal/diagram/canvas-link.d.ts +21 -0
  199. package/dist/src/__internal/diagram/geometry.d.ts +49 -0
  200. package/dist/src/__internal/diagram/history.d.ts +17 -0
  201. package/dist/src/__internal/diagram/host.d.ts +45 -0
  202. package/dist/src/__internal/diagram/markers.d.ts +16 -0
  203. package/dist/src/__internal/diagram/measure-controller.d.ts +32 -0
  204. package/dist/src/__internal/diagram/motion.d.ts +22 -0
  205. package/dist/src/__internal/diagram/selection.d.ts +20 -0
  206. package/dist/src/__internal/diagram/types.d.ts +39 -0
  207. package/dist/src/__internal/diagram/viewport-controller.d.ts +89 -0
  208. package/dist/src/__internal/i18n/strings.d.ts +149 -0
  209. package/dist/src/__internal/toggle-base.d.ts +8 -0
  210. package/dist/src/__internal/utils/deprecate.d.ts +3 -3
  211. package/dist/src/accordion/accordion.d.ts +1 -0
  212. package/dist/src/code-editor/code-editor.d.ts +1 -0
  213. package/dist/src/date-picker/date-picker.d.ts +2 -0
  214. package/dist/src/dependency-map/dependency-map-layout.d.ts +48 -0
  215. package/dist/src/dependency-map/dependency-map.d.ts +241 -0
  216. package/dist/src/dependency-map/index.d.ts +2 -0
  217. package/dist/src/diagram/diagram.d.ts +300 -0
  218. package/dist/src/diagram/flow.d.ts +53 -0
  219. package/dist/src/diagram/index.d.ts +4 -0
  220. package/dist/src/diagram-controls/diagram-controls.d.ts +46 -0
  221. package/dist/src/diagram-controls/index.d.ts +1 -0
  222. package/dist/src/diagram-minimap/diagram-minimap.d.ts +39 -0
  223. package/dist/src/diagram-minimap/index.d.ts +1 -0
  224. package/dist/src/erd/erd-layout.d.ts +27 -0
  225. package/dist/src/erd/erd.d.ts +266 -0
  226. package/dist/src/erd/index.d.ts +2 -0
  227. package/dist/src/field/field.d.ts +38 -1
  228. package/dist/src/file-upload/file-upload.d.ts +3 -1
  229. package/dist/src/focus-ring/focus-ring.d.ts +2 -0
  230. package/dist/src/index.d.ts +15 -2
  231. package/dist/src/input/BaseField.d.ts +3 -0
  232. package/dist/src/input/BaseInput.d.ts +3 -0
  233. package/dist/src/menu/menu-item/menu-item.d.ts +1 -0
  234. package/dist/src/number-field/number-field.d.ts +4 -0
  235. package/dist/src/progress/base-progress.d.ts +3 -0
  236. package/dist/src/radio/radio-group.d.ts +1 -0
  237. package/dist/src/rating/rating.d.ts +1 -0
  238. package/dist/src/ripple/ripple.d.ts +2 -0
  239. package/dist/src/signature-pad/signature-pad.d.ts +1 -0
  240. package/dist/src/slider/slider.d.ts +1 -0
  241. package/dist/src/switch/switch.d.ts +1 -0
  242. package/dist/src/tabs/tab.d.ts +2 -0
  243. package/dist/src/tabs/tabs.d.ts +1 -0
  244. package/dist/src/textarea/textarea.d.ts +1 -0
  245. package/dist/src/time-picker/time-picker.d.ts +2 -0
  246. package/dist/src/transfer-list/transfer-list.d.ts +1 -0
  247. package/dist/src/tree-chart/index.d.ts +2 -0
  248. package/dist/src/tree-chart/tree-chart-layout.d.ts +49 -0
  249. package/dist/src/tree-chart/tree-chart.d.ts +221 -0
  250. package/dist/src/workflow/index.d.ts +2 -0
  251. package/dist/src/workflow/workflow-format.d.ts +5 -0
  252. package/dist/src/workflow/workflow-model.d.ts +194 -0
  253. package/dist/src/workflow/workflow.d.ts +313 -0
  254. package/dist/src/workflow-timeline/index.d.ts +1 -0
  255. package/dist/src/workflow-timeline/workflow-timeline.d.ts +41 -0
  256. package/dist/stat.js +2 -2
  257. package/dist/status-indicator.js +2 -2
  258. package/dist/step.js +2 -2
  259. package/dist/stepper.js +2 -2
  260. package/dist/{strings-DmbqMTfs.js → strings-BJPuhKJk.js} +163 -1
  261. package/dist/{strings-DmbqMTfs.js.map → strings-BJPuhKJk.js.map} +1 -1
  262. package/dist/sub-menu.js +2 -2
  263. package/dist/svg.js +2 -2
  264. package/dist/switch.js +5 -4
  265. package/dist/switch.js.map +1 -1
  266. package/dist/tab.js +1 -0
  267. package/dist/tab.js.map +1 -1
  268. package/dist/table.js +2 -2
  269. package/dist/tabs.js +1 -0
  270. package/dist/tabs.js.map +1 -1
  271. package/dist/test/diagram-controls.test.d.ts +1 -0
  272. package/dist/test/diagram-geometry.test.d.ts +1 -0
  273. package/dist/test/diagram.test.d.ts +1 -0
  274. package/dist/test/erd.test.d.ts +1 -0
  275. package/dist/test/toggle-label.test.d.ts +1 -0
  276. package/dist/test/tree-chart.test.d.ts +1 -0
  277. package/dist/test/workflow-debug.test.d.ts +1 -0
  278. package/dist/test/workflow.test.d.ts +1 -0
  279. package/dist/textarea.js +7 -5
  280. package/dist/textarea.js.map +1 -1
  281. package/dist/time-field.js +6 -6
  282. package/dist/time-picker.js +4 -2
  283. package/dist/time-picker.js.map +1 -1
  284. package/dist/timeline-item.js +2 -2
  285. package/dist/timeline.js +2 -2
  286. package/dist/{toggle-base-BQO5pjrU.js → toggle-base-BlaHalfS.js} +19 -3
  287. package/dist/toggle-base-BlaHalfS.js.map +1 -0
  288. package/dist/tour.js +2 -2
  289. package/dist/transfer-list.js +5 -4
  290. package/dist/transfer-list.js.map +1 -1
  291. package/dist/{chart-base-B-gOg2Di.js → transform-CxeQFXXB.js} +9 -839
  292. package/dist/transform-CxeQFXXB.js.map +1 -0
  293. package/dist/tree-chart.js +1986 -0
  294. package/dist/tree-chart.js.map +1 -0
  295. package/dist/tree-item.js +2 -2
  296. package/dist/tree.js +2 -2
  297. package/dist/tsconfig.tsbuildinfo +1 -1
  298. package/dist/typing-indicator.js +2 -2
  299. package/dist/url-field.js +5 -5
  300. package/dist/user-menu.js +2 -2
  301. package/dist/virtual-list.js +2 -2
  302. package/dist/workflow-format-BsyveyeC.js +34 -0
  303. package/dist/workflow-format-BsyveyeC.js.map +1 -0
  304. package/dist/workflow-model-CauduOG2.js +330 -0
  305. package/dist/workflow-model-CauduOG2.js.map +1 -0
  306. package/dist/workflow-timeline.js +354 -0
  307. package/dist/workflow-timeline.js.map +1 -0
  308. package/dist/workflow.js +3337 -0
  309. package/dist/workflow.js.map +1 -0
  310. package/dist/workspace-switcher.js +2 -2
  311. package/package.json +1 -1
  312. package/readme.md +44 -2
  313. package/src/LoaderUtils.ts +9 -2
  314. package/src/__internal/diagram/canvas-base.ts +410 -0
  315. package/src/__internal/diagram/canvas-link.ts +66 -0
  316. package/src/__internal/diagram/geometry.ts +372 -0
  317. package/src/__internal/diagram/history.ts +49 -0
  318. package/src/__internal/diagram/host.ts +76 -0
  319. package/src/__internal/diagram/markers.ts +56 -0
  320. package/src/__internal/diagram/measure-controller.ts +104 -0
  321. package/src/__internal/diagram/motion.ts +89 -0
  322. package/src/__internal/diagram/selection.ts +69 -0
  323. package/src/__internal/diagram/types.ts +56 -0
  324. package/src/__internal/diagram/viewport-controller.ts +494 -0
  325. package/src/__internal/i18n/strings.ts +201 -0
  326. package/src/__internal/mixins/field.ts +3 -0
  327. package/src/__internal/mixins/form-associated.ts +2 -0
  328. package/src/__internal/mixins/form-submitter.ts +6 -0
  329. package/src/__internal/mixins/hyperlink.ts +10 -0
  330. package/src/__internal/toggle-base.ts +16 -0
  331. package/src/__internal/utils/deprecate.ts +5 -4
  332. package/src/accordion/accordion.ts +1 -0
  333. package/src/button/base-button/base-button.ts +2 -0
  334. package/src/code-editor/code-editor.ts +1 -0
  335. package/src/date-picker/date-picker.ts +2 -0
  336. package/src/dependency-map/dependency-map-layout.ts +505 -0
  337. package/src/dependency-map/dependency-map.scss +626 -0
  338. package/src/dependency-map/dependency-map.ts +1280 -0
  339. package/src/dependency-map/index.ts +16 -0
  340. package/src/diagram/diagram.scss +513 -0
  341. package/src/diagram/diagram.ts +1852 -0
  342. package/src/diagram/flow.ts +81 -0
  343. package/src/diagram/index.ts +44 -0
  344. package/src/diagram-controls/diagram-controls.scss +68 -0
  345. package/src/diagram-controls/diagram-controls.ts +255 -0
  346. package/src/diagram-controls/index.ts +1 -0
  347. package/src/diagram-minimap/diagram-minimap.scss +41 -0
  348. package/src/diagram-minimap/diagram-minimap.ts +149 -0
  349. package/src/diagram-minimap/index.ts +1 -0
  350. package/src/erd/erd-layout.ts +92 -0
  351. package/src/erd/erd.scss +636 -0
  352. package/src/erd/erd.ts +1728 -0
  353. package/src/erd/index.ts +17 -0
  354. package/src/field/field.scss +197 -23
  355. package/src/field/field.ts +109 -16
  356. package/src/file-upload/file-upload.scss +37 -10
  357. package/src/file-upload/file-upload.ts +3 -1
  358. package/src/focus-ring/focus-ring.ts +2 -0
  359. package/src/generative-view/catalog.generated.ts +12 -11
  360. package/src/index.ts +121 -2
  361. package/src/input/BaseField.ts +3 -0
  362. package/src/input/BaseInput.ts +3 -0
  363. package/src/loader.ts +25 -0
  364. package/src/mention-input/mention-input.scss +2 -0
  365. package/src/menu/menu-item/menu-item.ts +1 -0
  366. package/src/number-field/number-field.ts +4 -0
  367. package/src/progress/base-progress.ts +3 -0
  368. package/src/radio/radio-group.ts +1 -0
  369. package/src/radio/radio.ts +1 -1
  370. package/src/rating/rating.ts +1 -0
  371. package/src/ripple/ripple.ts +2 -0
  372. package/src/signature-pad/signature-pad.ts +1 -0
  373. package/src/slider/slider.ts +1 -0
  374. package/src/switch/switch.ts +1 -0
  375. package/src/tabs/tab.ts +2 -0
  376. package/src/tabs/tabs.ts +1 -0
  377. package/src/textarea/textarea.scss +2 -0
  378. package/src/textarea/textarea.ts +1 -0
  379. package/src/time-picker/time-picker.ts +2 -0
  380. package/src/transfer-list/transfer-list.ts +1 -0
  381. package/src/tree-chart/index.ts +13 -0
  382. package/src/tree-chart/tree-chart-layout.ts +185 -0
  383. package/src/tree-chart/tree-chart.scss +377 -0
  384. package/src/tree-chart/tree-chart.ts +1170 -0
  385. package/src/workflow/index.ts +35 -0
  386. package/src/workflow/workflow-format.ts +29 -0
  387. package/src/workflow/workflow-model.ts +583 -0
  388. package/src/workflow/workflow.scss +1164 -0
  389. package/src/workflow/workflow.ts +2674 -0
  390. package/src/workflow-timeline/index.ts +1 -0
  391. package/src/workflow-timeline/workflow-timeline.scss +128 -0
  392. package/src/workflow-timeline/workflow-timeline.ts +238 -0
  393. package/dist/BaseField-CAog9TIc.js.map +0 -1
  394. package/dist/BaseInput-CcMfg1Y2.js.map +0 -1
  395. package/dist/base-button-Do2TUy8M.js.map +0 -1
  396. package/dist/base-progress-BiLlZVHJ.js.map +0 -1
  397. package/dist/cartesian-chart-C-f1frt0.js.map +0 -1
  398. package/dist/chart-base-B-gOg2Di.js.map +0 -1
  399. package/dist/generative-view-DmtpDobn.js.map +0 -1
  400. package/dist/hyperlink-DhE9RlVS.js.map +0 -1
  401. package/dist/src/flow/flow.d.ts +0 -178
  402. package/dist/src/flow/index.d.ts +0 -2
  403. package/dist/toggle-base-BQO5pjrU.js.map +0 -1
  404. package/src/button/button-group/readme.md +0 -23
  405. package/src/flow/flow.scss +0 -215
  406. package/src/flow/flow.ts +0 -958
  407. package/src/flow/index.ts +0 -10
  408. /package/dist/test/{flow.test.d.ts → dependency-map.test.d.ts} +0 -0
@@ -904,6 +904,207 @@ export const defaultStrings = {
904
904
  /** Label of a confirm dialog's type-to-confirm field, for example "Type acme-prod to confirm". */
905
905
  typeToConfirm: (text: string): string => `Type ${text} to confirm`,
906
906
 
907
+ // ── Diagrams (flow, workflow, tree chart, ERD, dependency map) ──────────
908
+ /** Default accessible name of a diagram canvas. */
909
+ diagramLabel: 'Diagram',
910
+ /** Read with a diagram canvas, from `aria-describedby`. */
911
+ diagramInstructions:
912
+ 'Drag the canvas or use the arrow keys to pan. Hold Ctrl or Command and scroll to zoom. Shift+1 fits all content, Home goes back to the start.',
913
+ diagramZoomIn: 'Zoom in',
914
+ diagramZoomOut: 'Zoom out',
915
+ diagramFit: 'Fit to content',
916
+ diagramZoomToSelection: 'Zoom to selection',
917
+ diagramBackToStart: 'Back to start',
918
+ diagramBackToContent: 'Back to content',
919
+ /** Accessible name of the zoom level button, for example "Zoom level, 80%". */
920
+ diagramZoomLevel: (percent: string): string => `Zoom level, ${percent}`,
921
+ diagramUndo: 'Undo',
922
+ diagramRedo: 'Redo',
923
+ diagramControls: 'Diagram controls',
924
+ diagramMinimap: 'Minimap',
925
+ /** Role description of a diagram node, read by screen readers instead of "group". */
926
+ diagramNode: 'node',
927
+ /** Accessible name of a connection, for example "Connection from Start to Review: approve". */
928
+ diagramEdgeLabel: (from: string, to: string, label?: string): string =>
929
+ `Connection from ${from} to ${to}${label ? `: ${label}` : ''}`,
930
+ /** Announced after a node moves, for example "Review moved to 120, 40". */
931
+ diagramMoved: (label: string, x: string, y: string): string =>
932
+ `${label} moved to ${x}, ${y}`,
933
+ /** Announced after a connection is made. */
934
+ diagramConnected: (from: string, to: string): string =>
935
+ `Connected ${from} to ${to}`,
936
+ /** Announced after nodes and connections are deleted. */
937
+ diagramDeleted: (count: number): string =>
938
+ count === 1 ? '1 item deleted' : `${count} items deleted`,
939
+ /** Announced after pasting, for example "3 items pasted". */
940
+ diagramPasted: (count: number): string =>
941
+ count === 1 ? '1 item pasted' : `${count} items pasted`,
942
+
943
+ // ── Workflow ─────────────────────────────────────────────────────────────
944
+ workflowLabel: 'Workflow',
945
+ workflowAddStep: 'Add step',
946
+ workflowAddTrigger: 'Add a trigger',
947
+ workflowSearchSteps: 'Search steps',
948
+ workflowNoSteps: 'No matching steps',
949
+ workflowOnError: 'On error',
950
+ workflowWaitForAll: 'Wait for all',
951
+ workflowEnd: 'End',
952
+ workflowMoreActions: 'More actions',
953
+ workflowDuplicate: 'Duplicate',
954
+ workflowDelete: 'Delete',
955
+ workflowCollapse: 'Collapse',
956
+ workflowExpand: 'Expand',
957
+ workflowOutputs: 'Outputs',
958
+ workflowTools: 'Tools',
959
+ workflowUntil: 'Until',
960
+ /** Summary of a collapsed branch or loop, for example "3 paths, 7 steps". */
961
+ workflowCollapsedSummary: (paths: number, steps: number): string =>
962
+ `${paths === 1 ? '1 path' : `${paths} paths`}, ${steps === 1 ? '1 step' : `${steps} steps`}`,
963
+ /** Label of the problems button, for example "2 problems". */
964
+ workflowProblems: (count: number): string =>
965
+ count === 1 ? '1 problem' : `${count} problems`,
966
+ workflowUnreachable: 'This step never runs: the path before it ends.',
967
+ workflowLoopForEach: 'For each',
968
+ workflowLoopWhile: 'While',
969
+ workflowLoopUntil: 'Repeat until',
970
+ /** Announced after a step is added, for example "Send email added". */
971
+ workflowStepAdded: (name: string): string => `${name} added`,
972
+ workflowStepRemoved: (name: string): string => `${name} removed`,
973
+ workflowStepMoved: (name: string): string => `${name} moved`,
974
+ /** Accessible name of an add-step button, for example "Add step after Look up manager". */
975
+ workflowAddStepAfter: (name: string): string => `Add step after ${name}`,
976
+ workflowAddStepIn: (name: string): string => `Add step in ${name}`,
977
+
978
+ // ── Tree chart ───────────────────────────────────────────────────────────
979
+ treeChartLabel: 'Tree chart',
980
+ treeChartLoading: 'Loading',
981
+ treeChartAddChild: 'Add below',
982
+ treeChartAddSibling: 'Add beside',
983
+ treeChartNewItem: 'New item',
984
+ /** Accessible name of the count chip, for example "Expand Elena Rostova, 4 below". */
985
+ treeChartExpand: (name: string, count: number): string =>
986
+ count ? `Expand ${name}, ${count} below` : `Expand ${name}`,
987
+ treeChartCollapse: (name: string): string => `Collapse ${name}`,
988
+ /** Announced after a drag, for example "Ana Ruiz moved under Elena Rostova". */
989
+ treeChartMoved: (name: string, parent: string): string =>
990
+ parent ? `${name} moved under ${parent}` : `${name} moved to the top`,
991
+ treeChartRemoved: (name: string): string => `${name} removed`,
992
+ /** Announced after a search, for example "3 matches". */
993
+ treeChartMatches: (count: number): string =>
994
+ count === 1 ? '1 match' : `${count} matches`,
995
+
996
+ // ── Dependency map ───────────────────────────────────────────────────────
997
+ dependencyMapLabel: 'Dependency map',
998
+ dependencyMapLegend: 'Legend',
999
+ dependencyMapHealthy: 'Healthy',
1000
+ dependencyMapDegraded: 'Degraded',
1001
+ dependencyMapDown: 'Down',
1002
+ dependencyMapUnknown: 'Unknown',
1003
+ dependencyMapImpact: 'Impact path',
1004
+ dependencyMapTraffic: 'Width = traffic',
1005
+ dependencyMapShowType: (type: string): string => `Show ${type}`,
1006
+ /** A collapsed group's subtitle, for example "8 items". */
1007
+ dependencyMapGroupCount: (count: number): string =>
1008
+ count === 1 ? '1 item' : `${count} items`,
1009
+ /** Label of an aggregated edge between collapsed groups, for example "12 connections". */
1010
+ dependencyMapEdgeCount: (count: number): string =>
1011
+ count === 1 ? '1 connection' : `${count} connections`,
1012
+ dependencyMapExpandGroup: (name: string): string => `Expand ${name}`,
1013
+ dependencyMapCollapseGroup: (name: string): string => `Collapse ${name}`,
1014
+ /** Accessible name of a node, for example "payments-db, PostgreSQL, degraded, 3 upstream, 0 downstream". */
1015
+ dependencyMapNode: (
1016
+ name: string,
1017
+ type: string,
1018
+ status: string,
1019
+ upstream: number,
1020
+ downstream: number,
1021
+ ): string =>
1022
+ `${name}${type ? `, ${type}` : ''}${status ? `, ${status}` : ''}, ${upstream} upstream, ${downstream} downstream`,
1023
+ dependencyMapRps: (value: string): string => `${value} req/s`,
1024
+ dependencyMapLatency: (value: string): string => `p95 ${value}`,
1025
+ dependencyMapErrors: (value: string): string => `${value} errors`,
1026
+
1027
+ // ── Entity-relationship diagram ──────────────────────────────────────────
1028
+ erdLabel: 'Entity-relationship diagram',
1029
+ erdPrimaryKey: 'Primary key',
1030
+ erdForeignKey: 'Foreign key',
1031
+ erdNullable: 'Nullable',
1032
+ erdAddColumn: 'Add column',
1033
+ erdRemoveColumn: (name: string): string => `Remove ${name}`,
1034
+ erdTogglePrimaryKey: (name: string): string =>
1035
+ `Toggle primary key on ${name}`,
1036
+ erdCollapse: (name: string): string => `Collapse ${name}`,
1037
+ erdExpand: (name: string): string => `Expand ${name}`,
1038
+ erdRename: 'Rename',
1039
+ erdNewColumn: 'new_column',
1040
+ erdNewEntity: 'new_table',
1041
+ erdCardinality: 'Relationship',
1042
+ erdManyToOne: 'Many to one',
1043
+ erdZeroOrManyToOne: 'Zero or many to one',
1044
+ erdOneToOne: 'One to one',
1045
+ erdZeroOrOneToOne: 'Zero or one to one',
1046
+ erdManyToMany: 'Many to many',
1047
+ /** Summary of a column count, for example "8 columns". */
1048
+ erdColumnCount: (count: number): string =>
1049
+ count === 1 ? '1 column' : `${count} columns`,
1050
+ /** Accessible name of an entity, for example "orders, 8 columns, references customers, referenced by order_items". */
1051
+ erdEntity: (
1052
+ name: string,
1053
+ columns: number,
1054
+ references: string[],
1055
+ referencedBy: string[],
1056
+ ): string =>
1057
+ [
1058
+ name,
1059
+ columns === 1 ? '1 column' : `${columns} columns`,
1060
+ references.length ? `references ${references.join(', ')}` : '',
1061
+ referencedBy.length ? `referenced by ${referencedBy.join(', ')}` : '',
1062
+ ]
1063
+ .filter(Boolean)
1064
+ .join(', '),
1065
+ /** Announced after a relation is added, for example "orders.customer_id references customers.id". */
1066
+ erdConnected: (from: string, to: string): string =>
1067
+ `${from} references ${to}`,
1068
+
1069
+ // ── Workflow debugging ───────────────────────────────────────────────────
1070
+ workflowDebugBar: 'Debugging',
1071
+ workflowContinue: 'Continue',
1072
+ workflowPause: 'Pause',
1073
+ workflowStepOver: 'Step over',
1074
+ workflowStepInto: 'Step into',
1075
+ workflowRestart: 'Restart',
1076
+ workflowStop: 'Stop',
1077
+ workflowRetryFromHere: 'Retry from here',
1078
+ workflowBreakpoint: 'Breakpoint',
1079
+ workflowToggleBreakpoint: 'Toggle breakpoint',
1080
+ workflowPinData: 'Pin data',
1081
+ workflowUnpinData: 'Unpin data',
1082
+ workflowPinned: 'Data pinned',
1083
+ workflowPreviousIteration: 'Previous iteration',
1084
+ workflowNextIteration: 'Next iteration',
1085
+ /** Iteration picker label, for example "Iteration 3 of 12". */
1086
+ workflowIteration: (index: number, total: number): string =>
1087
+ `Iteration ${index} of ${total}`,
1088
+ /** Short iteration label, for example "3 / 12". */
1089
+ workflowIterationShort: (index: number, total: number): string =>
1090
+ `${index} / ${total}`,
1091
+ workflowRunTimeline: 'Run timeline',
1092
+ /** Status of a step or run, shown on cards and read by screen readers. */
1093
+ workflowStatusQueued: 'Queued',
1094
+ workflowStatusRunning: 'Running',
1095
+ workflowStatusWaiting: 'Waiting',
1096
+ workflowStatusPaused: 'Paused',
1097
+ workflowStatusSuccess: 'Succeeded',
1098
+ workflowStatusFailed: 'Failed',
1099
+ workflowStatusSkipped: 'Skipped',
1100
+ workflowStatusCanceled: 'Canceled',
1101
+ /** Summary of a run, for example "Run 184, Failed, 2 h 15 min". */
1102
+ workflowRunSummary: (id: string, status: string, duration: string): string =>
1103
+ duration ? `Run ${id} · ${status} · ${duration}` : `Run ${id} · ${status}`,
1104
+ /** Announced when the run moves, for example "Send email succeeded". */
1105
+ workflowStepStatus: (name: string, status: string): string =>
1106
+ `${name}: ${status.toLowerCase()}`,
1107
+
907
1108
  // ── AI (ADR-030002) ──────────────────────────────────────────────────────
908
1109
  /** Label of an AI badge on a value the person hasn't accepted yet. */
909
1110
  aiSuggested: 'Suggested',
@@ -61,6 +61,7 @@ export function mixinField<T extends BaseInputConstructor>(
61
61
  /** Label shown above the field; also the control's accessible name. */
62
62
  @property({ type: String }) label = '';
63
63
 
64
+ /** Hint shown inside the empty control. */
64
65
  @property({ type: String }) placeholder = '';
65
66
 
66
67
  /** Help text shown below the field. */
@@ -69,11 +70,13 @@ export function mixinField<T extends BaseInputConstructor>(
69
70
  /** Shows the field in its error state with `error-text`. */
70
71
  @property({ type: Boolean }) error = false;
71
72
 
73
+ /** Error message shown below the field while `error` is set; replaces the help text. */
72
74
  @property({ type: String, attribute: 'error-text' }) errorText = '';
73
75
 
74
76
  /** Shows the field in its warning state with `warning-text`. */
75
77
  @property({ type: Boolean }) warning = false;
76
78
 
79
+ /** Warning message shown below the field while `warning` is set; replaces the help text. */
77
80
  @property({ type: String, attribute: 'warning-text' }) warningText = '';
78
81
 
79
82
  /** Visual variant of the field. */
@@ -196,6 +196,7 @@ export function mixinFormAssociated<
196
196
  // We don't use Lit's default getter/setter (`noAccessor: true`) because
197
197
  // the attributes need to be updated synchronously to work with synchronous
198
198
  // form APIs, and Lit updates attributes async by default.
199
+ /** The name the value is submitted under in a form. */
199
200
  @property({ noAccessor: true })
200
201
  get name() {
201
202
  return this.getAttribute('name') ?? '';
@@ -207,6 +208,7 @@ export function mixinFormAssociated<
207
208
  // in `attributeChangedCallback()`.
208
209
  }
209
210
 
211
+ /** Disables the control: it can't be focused or changed, and its value isn't submitted. */
210
212
  @property({ type: Boolean, noAccessor: true })
211
213
  get disabled() {
212
214
  return this.hasAttribute('disabled');
@@ -68,11 +68,17 @@ export function mixinFormSubmitter<
68
68
  T extends MixinBase<LitElement & WithElementInternals>,
69
69
  >(base: T): MixinReturn<T, FormSubmitter> {
70
70
  abstract class FormSubmitterElement extends base implements FormSubmitter {
71
+ /**
72
+ * What activating the element does in a form: `"submit"` (default) submits it, `"reset"`
73
+ * resets it and `"button"` does nothing.
74
+ */
71
75
  @property() type = 'submit';
72
76
 
77
+ /** The value sent with the form, paired with `name`, when this element submits it. */
73
78
  @property({ reflect: true }) value = '';
74
79
 
75
80
  // Name attribute must reflect synchronously for form integration.
81
+ /** The name sent with the form, paired with `value`, when this element submits it. */
76
82
  get name() {
77
83
  return this.getAttribute('name') ?? '';
78
84
  }
@@ -50,13 +50,23 @@ export function mixinHyperlink<T extends MixinBase<LitElement>>(
50
50
  base: T,
51
51
  ): MixinReturn<T, Hyperlink> {
52
52
  abstract class HyperlinkElement extends base implements Hyperlink {
53
+ /** The URL to link to. When set, the component renders as an `<a>` element. */
53
54
  @property() href?: string;
54
55
 
56
+ /**
57
+ * Where to open the linked URL: `"_self"` (default), `"_blank"`, `"_parent"`, `"_top"` or a
58
+ * frame name. Pair `"_blank"` with `rel="noopener noreferrer"`.
59
+ */
55
60
  @property() target: '_self' | '_parent' | '_blank' | '_top' | string =
56
61
  '_self';
57
62
 
63
+ /** The relationship of the linked URL to the current page, as the native `rel` attribute. */
58
64
  @property() rel = '';
59
65
 
66
+ /**
67
+ * Downloads the linked URL instead of navigating to it; the value is the suggested file
68
+ * name. Only applies with `href`.
69
+ */
60
70
  @property() download = '';
61
71
 
62
72
  // Mixins must have a constructor with `...args: any[]`
@@ -94,12 +94,14 @@ export default abstract class ToggleBase extends BaseInput {
94
94
  this.controlTabIndex = this.getAttribute('tabindex') ?? undefined;
95
95
  this.removeAttribute('tabindex');
96
96
  }
97
+ this.addEventListener('click', this.hostClick);
97
98
  window.addEventListener('mouseup', this.windowMouseUp);
98
99
  window.addEventListener('keyup', this.windowKeyUp);
99
100
  }
100
101
 
101
102
  override disconnectedCallback() {
102
103
  super.disconnectedCallback();
104
+ this.removeEventListener('click', this.hostClick);
103
105
  window.removeEventListener('mouseup', this.windowMouseUp);
104
106
  window.removeEventListener('keyup', this.windowKeyUp);
105
107
  }
@@ -247,6 +249,20 @@ export default abstract class ToggleBase extends BaseInput {
247
249
 
248
250
  // ── Private ──────────────────────────────────────────────────────────────
249
251
 
252
+ /**
253
+ * A click aimed at the host itself, not at something inside it, comes from an external
254
+ * `<label for>`, a wrapping `<label>` or `host.click()`. Forward it to the inner native input, the
255
+ * control the shadow `<label>` activates, so it toggles like a click on the control. Clicks from
256
+ * inside (the control, the shadow label or slotted label content) start elsewhere and are left
257
+ * alone, so a click toggles once.
258
+ */
259
+ private hostClick = (event: MouseEvent) => {
260
+ if (event.composedPath()[0] !== this) return;
261
+ this.renderRoot
262
+ .querySelector<HTMLInputElement>('.input-native')
263
+ ?.click();
264
+ };
265
+
250
266
  private windowMouseUp = () => {
251
267
  if (this.isActive) this.isActive = false;
252
268
  };
@@ -3,8 +3,8 @@ const warned = new Set<string>();
3
3
  /**
4
4
  * Logs a deprecation warning once per page for each distinct message.
5
5
  *
6
- * Renamed or removed APIs keep working through the 3.x line and call this so consumers see what to
7
- * migrate (ADR-030001). Pass the component tag, the old API and its replacement.
6
+ * Renamed or removed APIs keep working until the next major version and call this so consumers
7
+ * see what to migrate (ADR-030001). Pass the component tag, the old API and its replacement.
8
8
  *
9
9
  * @example
10
10
  * deprecate('wc-example', '`old-name`', '`new-name`');
@@ -13,10 +13,11 @@ export function deprecate(
13
13
  tag: string,
14
14
  oldApi: string,
15
15
  replacement?: string,
16
+ removedIn = '5.0',
16
17
  ): void {
17
18
  const message = replacement
18
- ? `[peacock] ${tag}: ${oldApi} is deprecated and will be removed in 4.0. Use ${replacement} instead.`
19
- : `[peacock] ${tag}: ${oldApi} is deprecated and will be removed in 4.0.`;
19
+ ? `[peacock] ${tag}: ${oldApi} is deprecated and will be removed in ${removedIn}. Use ${replacement} instead.`
20
+ : `[peacock] ${tag}: ${oldApi} is deprecated and will be removed in ${removedIn}.`;
20
21
  if (warned.has(message)) return;
21
22
  warned.add(message);
22
23
  // eslint-disable-next-line no-console
@@ -67,6 +67,7 @@ export class Accordion extends LitElement {
67
67
 
68
68
  // ── Queries
69
69
 
70
+ /** The `wc-accordion-item` children slotted into the accordion. */
70
71
  @queryAssignedElements({ selector: 'wc-accordion-item' })
71
72
  items!: Array<AccordionItem>;
72
73
 
@@ -36,9 +36,11 @@ export function mixinBaseButton<
36
36
  T extends MixinBase<LitElement & WithElementInternals>,
37
37
  >(base: T): MixinReturn<T, BaseButton> {
38
38
  abstract class BaseButtonElement extends base implements BaseButton {
39
+ /** The visual style of the button, such as `"filled"`, `"tonal"`, `"outlined"` or `"text"`. */
39
40
  @property({ type: String, reflect: true })
40
41
  variant: string = '';
41
42
 
43
+ /** The color role of the button, such as `"primary"`, `"surface"` or `"danger"`. */
42
44
  @property({ type: String, reflect: true })
43
45
  color: string = '';
44
46
 
@@ -213,6 +213,7 @@ export class CodeEditor extends BaseInput {
213
213
  @property({ type: Boolean })
214
214
  error = false;
215
215
 
216
+ /** Error message shown below the editor while `error` is set; replaces the help text. */
216
217
  @property({ type: String, attribute: 'error-text' })
217
218
  errorText = '';
218
219
 
@@ -94,8 +94,10 @@ export class DatePicker extends LitElement {
94
94
  /** Shows Today and Clear buttons below the calendar. */
95
95
  @property({ type: Boolean, attribute: 'show-actions' }) showActions = false;
96
96
 
97
+ /** Disables the calendar: no date can be focused or picked. */
97
98
  @property({ type: Boolean, reflect: true }) disabled = false;
98
99
 
100
+ /** Shows the selected date but stops the user changing it. */
99
101
  @property({ type: Boolean, reflect: true }) readonly = false;
100
102
 
101
103
  /** Return true for dates that cannot be picked, such as holidays. */