@webority/ui-elements 0.148.0 → 0.150.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 (476) hide show
  1. package/dist/WuiCarousel-DthhDxH-.js +1 -0
  2. package/dist/WuiCodeBlock-DHpmEskS.js +1 -0
  3. package/dist/WuiCommandPalette-DqHh4lH6.js +2 -0
  4. package/dist/WuiCommentThread-By-u3c5S.js +1 -0
  5. package/dist/WuiConsentBanner-Bm7tT3_5.js +1 -0
  6. package/dist/WuiContextMenu-sPTmEEVn.js +1 -0
  7. package/dist/WuiDataTable-D8UW2DMH.js +1 -0
  8. package/dist/WuiDatePicker-DLEsnzqG.js +31 -0
  9. package/dist/WuiDateRange-9Xqs5nvv.js +25 -0
  10. package/dist/WuiDock-d5abaLkL.js +1 -0
  11. package/dist/WuiDrawer-B3YFmxl2.js +1 -0
  12. package/dist/WuiHoverCard-CE3dHKaM.js +1 -0
  13. package/dist/WuiImageCrop-ChvH8GKb.js +17 -0
  14. package/dist/WuiInlineEdit-r55qgh8A.js +1 -0
  15. package/dist/WuiLeadPopup-YN4YCbOe.js +382 -0
  16. package/dist/WuiLightbox-D7Nf1SbH.js +1 -0
  17. package/dist/WuiMarkdown-N96OX-To.js +4 -0
  18. package/dist/WuiMentionInput-BFB57FZI.js +1 -0
  19. package/dist/WuiNavigationMenu-CZ3XhFam.js +1 -0
  20. package/dist/WuiNotificationCenter-C6e13nCh.js +1 -0
  21. package/dist/WuiOnboardingChecklist-Cx-TgpBY.js +1 -0
  22. package/dist/WuiOrgTree-DzeLFQxy.js +1 -0
  23. package/dist/{WuiOtp-BqWijfNj.js → WuiOtp-DonxSwVn.js} +2 -2
  24. package/dist/WuiOverflow-CeLUmJR-.js +1 -0
  25. package/dist/WuiPhone-rtex3VDC.js +16 -0
  26. package/dist/WuiRating-DLVduJZ_.js +1 -0
  27. package/dist/WuiRecordPager-7HVGoFlP.js +1 -0
  28. package/dist/WuiRelativeTime-RdC80Zii.js +1 -0
  29. package/dist/WuiResizable-DQZdQVCz.js +1 -0
  30. package/dist/WuiRollingNumber-YRMeRCGW.js +1 -0
  31. package/dist/WuiSavedViews-DtyAoZKb.js +1 -0
  32. package/dist/WuiSelect-D9ABfsdZ.js +9 -0
  33. package/dist/WuiShortcuts-D3rWkaOm.js +1 -0
  34. package/dist/WuiShowMore-CvdNQXrA.js +1 -0
  35. package/dist/WuiSlider-D33Y3_t9.js +51 -0
  36. package/dist/WuiSortable-CBLMNRuZ.js +1 -0
  37. package/dist/WuiTimePicker-DOodgU2O.js +9 -0
  38. package/dist/WuiTour-CrIFLmSK.js +1 -0
  39. package/dist/WuiTree-ZD9GGmtg.js +1 -0
  40. package/dist/WuiTruncate-C2WV1-NN.js +1 -0
  41. package/dist/WuiWhatsNew-dLGyA4g1.js +1 -0
  42. package/dist/WuiWizardStep-Cencr-mT.js +1 -0
  43. package/dist/{anchorOverlay-DDrc2k6y.js → anchorOverlay-CXnWfezA.js} +1 -1
  44. package/dist/buttonClass-GtEi8hAY.js +1 -0
  45. package/dist/calendarMath-D6UUgYTD.js +1 -0
  46. package/dist/chips-2yXiMhK4.js +2 -0
  47. package/dist/commentText-BnX7rA2-.js +1 -0
  48. package/dist/{countries-CvmZ2xpG.js → countries-DQL9nAUt.js} +1 -1
  49. package/dist/country-x5lqC5Xu.js +1 -0
  50. package/dist/customRule-Chp7YwFb.js +1 -0
  51. package/dist/dataTable-D23oUOhU.js +1 -0
  52. package/dist/dom-Do1pAA12.js +1 -0
  53. package/dist/drawerDiscard-CUN8L47U.js +1 -0
  54. package/dist/elementBase-Cxeyx0tU.js +1 -0
  55. package/dist/elements/carousel.js +1 -1
  56. package/dist/elements/code-block.js +1 -1
  57. package/dist/elements/command-palette.js +1 -1
  58. package/dist/elements/comment-thread.js +1 -1
  59. package/dist/elements/consent-banner.js +1 -1
  60. package/dist/elements/context-menu.js +1 -1
  61. package/dist/elements/data-table.js +1 -1
  62. package/dist/elements/date-range.js +1 -1
  63. package/dist/elements/datepicker.js +1 -1
  64. package/dist/elements/dock.js +1 -1
  65. package/dist/elements/drawer.js +1 -1
  66. package/dist/elements/filter-popover.js +1 -1
  67. package/dist/elements/hover-card.js +1 -1
  68. package/dist/elements/image-crop.js +1 -1
  69. package/dist/elements/inline-edit.js +1 -1
  70. package/dist/elements/kanban.js +1 -1
  71. package/dist/elements/lead-popup.js +1 -1
  72. package/dist/elements/lightbox.js +1 -1
  73. package/dist/elements/markdown.js +1 -1
  74. package/dist/elements/mention-input.js +1 -1
  75. package/dist/elements/navigation-menu.js +1 -1
  76. package/dist/elements/notification-center.js +1 -1
  77. package/dist/elements/onboarding-checklist.js +1 -1
  78. package/dist/elements/org-tree.js +1 -1
  79. package/dist/elements/otp.js +1 -1
  80. package/dist/elements/overflow.js +1 -1
  81. package/dist/elements/phone.js +1 -1
  82. package/dist/elements/rating.js +1 -1
  83. package/dist/elements/record-pager.js +1 -1
  84. package/dist/elements/relative-time.js +1 -1
  85. package/dist/elements/resizable.js +1 -1
  86. package/dist/elements/rolling-number.js +1 -1
  87. package/dist/elements/saved-views.js +1 -1
  88. package/dist/elements/select.js +1 -1
  89. package/dist/elements/shortcuts.js +1 -1
  90. package/dist/elements/show-more.js +1 -1
  91. package/dist/elements/slider.js +1 -1
  92. package/dist/elements/sortable.js +1 -1
  93. package/dist/elements/status-icon.js +1 -1
  94. package/dist/elements/timepicker.js +1 -1
  95. package/dist/elements/tour.js +1 -1
  96. package/dist/elements/tree.js +1 -1
  97. package/dist/elements/truncate.js +1 -1
  98. package/dist/elements/whats-new.js +1 -1
  99. package/dist/elements/wizard.js +1 -1
  100. package/dist/{fileViewerImage-CLzN49Fd.js → fileViewerImage-tzF4DDq7.js} +2 -2
  101. package/dist/fileViewerMedia-Bp1uHJvC.js +1 -0
  102. package/dist/{fileViewerPdf-6MAAzmCM.js → fileViewerPdf-BLMhF8NT.js} +11 -11
  103. package/dist/fileViewerUi-ResPjO1o.js +1 -0
  104. package/dist/filterPopover-D8BOb-Hz.js +1 -0
  105. package/dist/formMirror-9IpSgeZb.js +1 -0
  106. package/dist/formatters-C3V6M5zV.js +1 -0
  107. package/dist/helpers.js +1 -1
  108. package/dist/iconGlyphs.g-DPqoOoXy.js +1 -0
  109. package/dist/inlineEditText-H7Pr8IU9.js +1 -0
  110. package/dist/kanban-CJ587-XT.js +1 -0
  111. package/dist/kanbanModel-BdqSa1lJ.js +1 -0
  112. package/dist/listQuery.js +1 -1
  113. package/dist/listboxKeyNav-4LeEjKq6.js +1 -0
  114. package/dist/loader-ByHAB1wi.js +1 -0
  115. package/dist/mentionText-BJsw_opZ.js +1 -0
  116. package/dist/{notificationDays-dNQZGLlB.js → notificationDays-BKVW7xYD.js} +1 -1
  117. package/dist/{optionLabel-CLemms21.js → optionLabel-4xjXWy74.js} +1 -1
  118. package/dist/recents-CmLLdV8O.js +1 -0
  119. package/dist/relativeTime-YTAOONRy.js +1 -0
  120. package/dist/search-BXcvm716.js +1 -0
  121. package/dist/server.js +1 -1
  122. package/dist/shortcutKeys-COVLox98.js +1 -0
  123. package/dist/{statusIcons-Dt2ZVJyk.js → statusIcons-CRtqA_1C.js} +2 -2
  124. package/dist/themeTransition-9LQC6fx8.js +1 -0
  125. package/dist/tourSeenStore-z0Y_Znzx.js +1 -0
  126. package/dist/ui-calendar.global.js +1 -1
  127. package/dist/ui-calendar.js +1 -1
  128. package/dist/ui-chart.global.js +15 -15
  129. package/dist/ui-chart.js +13 -13
  130. package/dist/ui-consent-banner.global.js +1 -1
  131. package/dist/ui-elements/carousel.global.js +1 -1
  132. package/dist/ui-elements/code-block.global.js +1 -1
  133. package/dist/ui-elements/command-palette.global.js +2 -2
  134. package/dist/ui-elements/comment-thread.global.js +1 -1
  135. package/dist/ui-elements/consent-banner.global.js +1 -1
  136. package/dist/ui-elements/context-menu.global.js +1 -1
  137. package/dist/ui-elements/date-range.global.js +4 -4
  138. package/dist/ui-elements/drawer.global.js +1 -1
  139. package/dist/ui-elements/glyphs.global.js +1 -0
  140. package/dist/ui-elements/image-crop.global.js +2 -2
  141. package/dist/ui-elements/inline-edit.global.js +1 -1
  142. package/dist/ui-elements/kanban.global.js +1 -1
  143. package/dist/ui-elements/lead-popup.global.js +3 -3
  144. package/dist/ui-elements/lightbox.global.js +1 -1
  145. package/dist/ui-elements/markdown.global.js +2 -2
  146. package/dist/ui-elements/org-tree.global.js +1 -1
  147. package/dist/ui-elements/phone.global.js +9 -9
  148. package/dist/ui-elements/resizable.global.js +1 -1
  149. package/dist/ui-elements/saved-views.global.js +1 -1
  150. package/dist/ui-elements/select-chips.global.js +2 -2
  151. package/dist/ui-elements/select-recents.global.js +1 -1
  152. package/dist/ui-elements/select-search.global.js +1 -1
  153. package/dist/ui-elements/slider.global.js +2 -2
  154. package/dist/ui-elements/sortable.global.js +1 -1
  155. package/dist/ui-elements/status-icon.global.js +2 -2
  156. package/dist/ui-elements/timepicker.global.js +2 -2
  157. package/dist/ui-elements/tour.global.js +1 -1
  158. package/dist/ui-elements/tree.global.js +1 -1
  159. package/dist/ui-elements/wizard.global.js +1 -1
  160. package/dist/ui-elements.global.js +18 -18
  161. package/dist/ui-elements.js +1 -1
  162. package/dist/ui-file-viewer.global.js +11 -11
  163. package/dist/ui-file-viewer.js +1 -1
  164. package/dist/ui-lead-popup.global.js +1 -1
  165. package/dist/ui-phone.global.js +8 -8
  166. package/dist/ui-rich-text.global.js +57 -57
  167. package/dist/ui-rich-text.js +56 -56
  168. package/dist/ui-tour.global.js +1 -1
  169. package/dist/wuiHttp-523iN_RF.js +1 -0
  170. package/dist/{zone-D82f-GU_.js → zone-BR02ZkHF.js} +1 -1
  171. package/package.json +207 -55
  172. package/types/WuiCalendar.d.ts +69 -0
  173. package/types/WuiCarousel.d.ts +64 -0
  174. package/types/WuiChart.d.ts +77 -0
  175. package/types/WuiCodeBlock.d.ts +27 -0
  176. package/types/WuiCommandPalette.d.ts +135 -0
  177. package/types/WuiCommentThread.d.ts +77 -0
  178. package/types/WuiConsentBanner.d.ts +73 -0
  179. package/types/WuiContextMenu.d.ts +90 -0
  180. package/types/WuiDataTable.d.ts +90 -0
  181. package/types/WuiDatePicker.d.ts +59 -0
  182. package/types/WuiDateRange.d.ts +61 -0
  183. package/types/WuiDock.d.ts +20 -0
  184. package/types/WuiDrawer.d.ts +65 -0
  185. package/types/WuiFileViewer.d.ts +111 -0
  186. package/types/WuiHoverCard.d.ts +29 -0
  187. package/types/WuiImageCrop.d.ts +119 -0
  188. package/types/WuiInlineEdit.d.ts +65 -0
  189. package/types/WuiLeadPopup.d.ts +83 -0
  190. package/types/WuiLightbox.d.ts +80 -0
  191. package/types/WuiMarkdown.d.ts +85 -0
  192. package/types/WuiMentionInput.d.ts +112 -0
  193. package/types/WuiNavigationMenu.d.ts +29 -0
  194. package/types/WuiNotificationCenter.d.ts +34 -0
  195. package/types/WuiOnboardingChecklist.d.ts +34 -0
  196. package/types/WuiOrgTree.d.ts +50 -0
  197. package/types/WuiOtp.d.ts +32 -0
  198. package/types/WuiOverflow.d.ts +29 -0
  199. package/types/WuiPhone.d.ts +37 -0
  200. package/types/WuiRating.d.ts +17 -0
  201. package/types/WuiRecordPager.d.ts +9 -0
  202. package/types/WuiRelativeTime.d.ts +17 -0
  203. package/types/WuiResizable.d.ts +79 -0
  204. package/types/WuiRichText.d.ts +45 -0
  205. package/types/WuiRollingNumber.d.ts +27 -0
  206. package/types/WuiSavedViews.d.ts +41 -0
  207. package/types/WuiSelect.d.ts +138 -0
  208. package/types/WuiShortcuts.d.ts +31 -0
  209. package/types/WuiShowMore.d.ts +16 -0
  210. package/types/WuiSlider.d.ts +126 -0
  211. package/types/WuiSortable.d.ts +127 -0
  212. package/types/WuiTimePicker.d.ts +68 -0
  213. package/types/WuiTour.d.ts +117 -0
  214. package/types/WuiTree.d.ts +112 -0
  215. package/types/WuiTruncate.d.ts +19 -0
  216. package/types/WuiWhatsNew.d.ts +36 -0
  217. package/types/WuiWizard.d.ts +78 -0
  218. package/types/WuiWizardStep.d.ts +5 -0
  219. package/types/anchorOverlay.d.ts +75 -0
  220. package/types/avatarHtml.d.ts +10 -0
  221. package/types/avatarPicker.d.ts +47 -0
  222. package/types/buttonClass.d.ts +8 -0
  223. package/types/calendar.d.ts +3 -0
  224. package/types/calendarAdapter.d.ts +68 -0
  225. package/types/calendarMath.d.ts +40 -0
  226. package/types/calendarModel.d.ts +78 -0
  227. package/types/chart.d.ts +4 -0
  228. package/types/chartAdapter.d.ts +160 -0
  229. package/types/chartSpec.d.ts +382 -0
  230. package/types/codeHighlight.d.ts +25 -0
  231. package/types/collapsibleSearch.d.ts +7 -0
  232. package/types/commandShortcut.d.ts +12 -0
  233. package/types/commentText.d.ts +40 -0
  234. package/types/consentBannerGlobal.d.ts +1 -0
  235. package/types/consentBannerStandalone.d.ts +2 -0
  236. package/types/copyText.d.ts +10 -0
  237. package/types/countries.d.ts +3 -0
  238. package/types/currency.d.ts +6 -0
  239. package/types/dataTable.d.ts +159 -0
  240. package/types/datePresets.d.ts +19 -0
  241. package/types/defaultCountry.d.ts +3 -0
  242. package/types/defineElement.d.ts +6 -0
  243. package/types/devWarn.d.ts +2 -0
  244. package/types/dom.d.ts +8 -0
  245. package/types/drawerSnap.d.ts +24 -0
  246. package/types/elementBase.d.ts +2 -0
  247. package/types/elementRegistry.d.ts +5 -0
  248. package/types/elements/carousel.d.ts +2 -0
  249. package/types/elements/code-block.d.ts +2 -0
  250. package/types/elements/command-palette.d.ts +2 -0
  251. package/types/elements/comment-thread.d.ts +4 -0
  252. package/types/elements/consent-banner.d.ts +2 -0
  253. package/types/elements/context-menu.d.ts +2 -0
  254. package/types/elements/data-table.d.ts +3 -0
  255. package/types/elements/date-range.d.ts +2 -0
  256. package/types/elements/datepicker.d.ts +2 -0
  257. package/types/elements/dock.d.ts +2 -0
  258. package/types/elements/drawer.d.ts +2 -0
  259. package/types/elements/filter-popover.d.ts +2 -0
  260. package/types/elements/hover-card.d.ts +2 -0
  261. package/types/elements/image-crop.d.ts +2 -0
  262. package/types/elements/inline-edit.d.ts +3 -0
  263. package/types/elements/kanban.d.ts +2 -0
  264. package/types/elements/lead-popup.d.ts +2 -0
  265. package/types/elements/lightbox.d.ts +2 -0
  266. package/types/elements/markdown.d.ts +2 -0
  267. package/types/elements/mention-input.d.ts +3 -5
  268. package/types/elements/navigation-menu.d.ts +2 -0
  269. package/types/elements/notification-center.d.ts +2 -0
  270. package/types/elements/onboarding-checklist.d.ts +2 -0
  271. package/types/elements/org-tree.d.ts +2 -0
  272. package/types/elements/otp.d.ts +2 -0
  273. package/types/elements/overflow.d.ts +2 -0
  274. package/types/elements/phone.d.ts +2 -0
  275. package/types/elements/rating.d.ts +2 -0
  276. package/types/elements/record-pager.d.ts +2 -0
  277. package/types/elements/relative-time.d.ts +3 -0
  278. package/types/elements/resizable.d.ts +2 -0
  279. package/types/elements/rolling-number.d.ts +2 -0
  280. package/types/elements/saved-views.d.ts +2 -0
  281. package/types/elements/select.d.ts +2 -0
  282. package/types/elements/shortcuts.d.ts +2 -0
  283. package/types/elements/show-more.d.ts +2 -0
  284. package/types/elements/slider.d.ts +2 -0
  285. package/types/elements/sortable.d.ts +2 -0
  286. package/types/elements/status-icon.d.ts +1 -0
  287. package/types/elements/timepicker.d.ts +2 -0
  288. package/types/elements/tour.d.ts +1 -6
  289. package/types/elements/tree.d.ts +2 -0
  290. package/types/elements/truncate.d.ts +2 -0
  291. package/types/elements/whats-new.d.ts +2 -0
  292. package/types/elements/wizard.d.ts +3 -0
  293. package/types/fieldState.d.ts +4 -0
  294. package/types/fileDrop.d.ts +31 -0
  295. package/types/fileValidation.d.ts +47 -0
  296. package/types/fileViewer.d.ts +3 -0
  297. package/types/fileViewerImage.d.ts +69 -0
  298. package/types/fileViewerMedia.d.ts +62 -0
  299. package/types/fileViewerPdf.d.ts +214 -0
  300. package/types/fileViewerSearch.d.ts +55 -0
  301. package/types/fileViewerUi.d.ts +33 -0
  302. package/types/filterPopover.d.ts +55 -0
  303. package/types/focusOrigin.d.ts +3 -0
  304. package/types/formMirror.d.ts +22 -0
  305. package/types/formatters.d.ts +119 -0
  306. package/types/global/chunks.d.ts +12 -0
  307. package/types/global/core.d.ts +57 -0
  308. package/types/global/glyphs.d.ts +10 -0
  309. package/types/global/loader.d.ts +16 -0
  310. package/types/global/parts/glyphs.d.ts +1 -0
  311. package/types/global/parts/select-chips.d.ts +1 -0
  312. package/types/global/parts/select-country.d.ts +1 -0
  313. package/types/global/parts/select-recents.d.ts +1 -0
  314. package/types/global/parts/select-search.d.ts +1 -0
  315. package/types/global/shared.d.ts +56 -0
  316. package/types/globals.d.ts +238 -0
  317. package/types/helpers.d.ts +29 -3
  318. package/types/iconGlyphs.g.d.ts +7 -0
  319. package/types/iconGlyphsCore.g.d.ts +1 -0
  320. package/types/iconGlyphsLazy.g.d.ts +1 -0
  321. package/types/imageCrop.d.ts +75 -0
  322. package/types/index.d.ts +54 -0
  323. package/types/inlineEditText.d.ts +47 -0
  324. package/types/inputMask.d.ts +70 -0
  325. package/types/kanban.d.ts +157 -0
  326. package/types/kanbanModel.d.ts +77 -0
  327. package/types/leadPopupGlobal.d.ts +1 -0
  328. package/types/leadPopupStandalone.d.ts +2 -0
  329. package/types/listQuery.d.ts +87 -0
  330. package/types/listboxKeyNav.d.ts +63 -0
  331. package/types/mentionText.d.ts +45 -0
  332. package/types/navReveal.d.ts +1 -0
  333. package/types/notificationDays.d.ts +50 -0
  334. package/types/optionLabel.d.ts +27 -0
  335. package/types/overlayRelease.d.ts +12 -0
  336. package/types/pageBarBulk.d.ts +4 -0
  337. package/types/passwordRules.d.ts +50 -0
  338. package/types/phoneData.d.ts +1 -0
  339. package/types/phoneLib.d.ts +15 -0
  340. package/types/phoneLibGlobal.d.ts +3 -0
  341. package/types/razor-js/modules/api.d.ts +33 -0
  342. package/types/razor-js/modules/avatars.d.ts +1 -0
  343. package/types/razor-js/modules/dropZones.d.ts +2 -0
  344. package/types/razor-js/modules/fileHelpers.d.ts +16 -0
  345. package/types/razor-js/modules/filePickers.d.ts +6 -0
  346. package/types/razor-js/modules/filterBars.d.ts +1 -0
  347. package/types/razor-js/modules/imagePickers.d.ts +1 -0
  348. package/types/razor-js/modules/inputs.d.ts +10 -0
  349. package/types/razor-js/modules/look.d.ts +6 -0
  350. package/types/razor-js/modules/overlays.d.ts +5 -0
  351. package/types/razor-js/modules/pageListeners.d.ts +1 -0
  352. package/types/razor-js/modules/popovers.d.ts +1 -0
  353. package/types/razor-js/modules/serverBridge.d.ts +13 -0
  354. package/types/razor-js/modules/shared.d.ts +15 -0
  355. package/types/razor-js/modules/shell.d.ts +1 -0
  356. package/types/razor-js/modules/splitView.d.ts +2 -0
  357. package/types/razor-js/modules/tables.d.ts +9 -0
  358. package/types/razor-js/modules/tabs.d.ts +1 -0
  359. package/types/razor-js/modules/themeCopy.d.ts +2 -0
  360. package/types/razor-js/modules/toast.d.ts +3 -0
  361. package/types/razor-js/modules/validation.d.ts +11 -0
  362. package/types/razor-js/modules/widgets.d.ts +9 -0
  363. package/types/razor-js/webority-ui.d.ts +48 -0
  364. package/types/relativeTime.d.ts +10 -0
  365. package/types/richText.d.ts +2 -0
  366. package/types/richTextAdapter.d.ts +54 -0
  367. package/types/richTextIcons.d.ts +1 -0
  368. package/types/rowDrop.d.ts +12 -0
  369. package/types/scrollEdges.d.ts +10 -0
  370. package/types/select/chips.d.ts +2 -0
  371. package/types/select/country.d.ts +2 -0
  372. package/types/select/customRule.d.ts +3 -0
  373. package/types/select/list.d.ts +32 -0
  374. package/types/select/option.d.ts +21 -0
  375. package/types/select/part.d.ts +103 -0
  376. package/types/select/partRegistry.d.ts +7 -0
  377. package/types/select/parts.d.ts +1 -0
  378. package/types/select/partsGlobal.d.ts +4 -0
  379. package/types/select/recents.d.ts +2 -0
  380. package/types/select/remote.d.ts +2 -0
  381. package/types/select/search.d.ts +5 -0
  382. package/types/server/drawerDiscard.d.ts +9 -0
  383. package/types/server/index.d.ts +9 -0
  384. package/types/server/remoteModal.d.ts +96 -0
  385. package/types/server/serverActions.d.ts +33 -0
  386. package/types/server/serverTable.d.ts +48 -0
  387. package/types/server/shellParts.d.ts +24 -0
  388. package/types/server/toastAction.d.ts +7 -0
  389. package/types/server/toastHeader.d.ts +8 -0
  390. package/types/server/unsavedChanges.d.ts +17 -0
  391. package/types/server/wuiHttp.d.ts +86 -0
  392. package/types/shortcutKeys.d.ts +59 -0
  393. package/types/statusIconImages.d.ts +1 -0
  394. package/types/statusIcons.d.ts +12 -0
  395. package/types/stepperHeader.d.ts +31 -0
  396. package/types/submitOnce.d.ts +3 -0
  397. package/types/tableSelect.d.ts +34 -0
  398. package/types/textMatch.d.ts +9 -0
  399. package/types/themeTransition.d.ts +88 -0
  400. package/types/toastTypes.d.ts +20 -0
  401. package/types/tokenCommit.d.ts +13 -0
  402. package/types/tourAdvance.d.ts +51 -0
  403. package/types/tourEnd.d.ts +17 -0
  404. package/types/tourGlobal.d.ts +4 -0
  405. package/types/tourIsolated.d.ts +2 -0
  406. package/types/tourMedia.d.ts +19 -0
  407. package/types/tourMotion.d.ts +20 -0
  408. package/types/tourOpenMark.d.ts +1 -0
  409. package/types/tourPlacement.d.ts +24 -0
  410. package/types/tourProgress.d.ts +29 -0
  411. package/types/tourSeenStore.d.ts +12 -0
  412. package/types/zone.d.ts +24 -0
  413. package/types/zoneCountries.g.d.ts +1 -0
  414. package/dist/WuiCarousel-C2NWcFxr.js +0 -1
  415. package/dist/WuiCodeBlock-CCCJwsk5.js +0 -1
  416. package/dist/WuiCommandPalette-Bfrbocu6.js +0 -2
  417. package/dist/WuiCommentThread-Dx3vvBWp.js +0 -1
  418. package/dist/WuiConsentBanner-jkeRiC1_.js +0 -1
  419. package/dist/WuiContextMenu-KXD8TFfy.js +0 -1
  420. package/dist/WuiDataTable-DAxAegnG.js +0 -1
  421. package/dist/WuiDatePicker-kEyyILbM.js +0 -31
  422. package/dist/WuiDateRange-B05PsdJ3.js +0 -25
  423. package/dist/WuiDock-Bd2ijOaJ.js +0 -1
  424. package/dist/WuiDrawer-SkxcDhgf.js +0 -1
  425. package/dist/WuiHoverCard-Bqapy8Is.js +0 -1
  426. package/dist/WuiImageCrop-DzzzPagi.js +0 -17
  427. package/dist/WuiInlineEdit-BqgKfVMy.js +0 -1
  428. package/dist/WuiLeadPopup-Dwmg7coE.js +0 -382
  429. package/dist/WuiLightbox-DCTE3ULH.js +0 -1
  430. package/dist/WuiMarkdown-D5vm4sp4.js +0 -4
  431. package/dist/WuiMentionInput-Bi3VQoKo.js +0 -1
  432. package/dist/WuiNavigationMenu-DmH3waKW.js +0 -1
  433. package/dist/WuiNotificationCenter-DawJRGBc.js +0 -1
  434. package/dist/WuiOnboardingChecklist-DXUETu1h.js +0 -1
  435. package/dist/WuiOrgTree-DuaBtFl9.js +0 -1
  436. package/dist/WuiOverflow-DP3qEbDp.js +0 -1
  437. package/dist/WuiPhone-CFne_6XG.js +0 -16
  438. package/dist/WuiRating-DhhqYj5Z.js +0 -1
  439. package/dist/WuiRecordPager-BOaFcs_W.js +0 -1
  440. package/dist/WuiRelativeTime-BG6rgUhw.js +0 -1
  441. package/dist/WuiResizable-mt9EMhjQ.js +0 -1
  442. package/dist/WuiRollingNumber-CF3H6l7t.js +0 -1
  443. package/dist/WuiSavedViews-BMBQUv2K.js +0 -1
  444. package/dist/WuiSelect-oSJPev4N.js +0 -9
  445. package/dist/WuiShortcuts-BEvFCIu9.js +0 -1
  446. package/dist/WuiShowMore-D3VHRZJg.js +0 -1
  447. package/dist/WuiSlider-2kB__6zU.js +0 -51
  448. package/dist/WuiSortable-r5iZtzM1.js +0 -1
  449. package/dist/WuiTimePicker-DqqZPv0T.js +0 -9
  450. package/dist/WuiTour-B-V1PZnw.js +0 -1
  451. package/dist/WuiTree-B3cnH1PG.js +0 -1
  452. package/dist/WuiTruncate-DyDQWMBu.js +0 -1
  453. package/dist/WuiWhatsNew-B5jK2zwZ.js +0 -1
  454. package/dist/WuiWizardStep-CIYuIp4a.js +0 -1
  455. package/dist/buttonClass-Yk0Fwgs6.js +0 -1
  456. package/dist/calendarMath-BC2wGCD-.js +0 -1
  457. package/dist/chips-DbhCYoAp.js +0 -2
  458. package/dist/country-3uo7no9r.js +0 -1
  459. package/dist/customRule-BE7CusA3.js +0 -1
  460. package/dist/dataTable-BoyxeUL4.js +0 -1
  461. package/dist/drawerDiscard-D6YgF59q.js +0 -1
  462. package/dist/elementBase-DV9IZZCu.js +0 -1
  463. package/dist/fileViewerMedia-BQ0lVXy9.js +0 -1
  464. package/dist/fileViewerUi-DQH6_B1a.js +0 -1
  465. package/dist/filterPopover-DniNyLWI.js +0 -1
  466. package/dist/formMirror-BMQTenSi.js +0 -1
  467. package/dist/formatters-Ba0CvsTs.js +0 -1
  468. package/dist/iconGlyphs.g-BlwTSNXS.js +0 -1
  469. package/dist/kanban-BtgxVDE-.js +0 -1
  470. package/dist/listboxKeyNav-DMIvs9d6.js +0 -1
  471. package/dist/loader-Dw3IkGM0.js +0 -1
  472. package/dist/recents-BzN7j9kV.js +0 -1
  473. package/dist/search-CdAH8NGK.js +0 -1
  474. package/dist/shortcutKeys-CvxSh3bV.js +0 -1
  475. package/dist/themeTransition-rHRVbhHB.js +0 -1
  476. package/dist/wuiHttp-BuaTcumE.js +0 -1
@@ -0,0 +1,160 @@
1
+ import type { ECElementEvent, EChartsCoreOption } from "echarts/core";
2
+ import type { NormalizedSpec } from "./chartSpec.ts";
3
+ import { waterfallBars } from "./chartSpec.ts";
4
+ /** The resolved colours and motion a chart is drawn in. */
5
+ export interface ChartTheme {
6
+ palette: string[];
7
+ neutral: string;
8
+ seq: string[];
9
+ surface: string;
10
+ grid: string;
11
+ axis: string;
12
+ label: string;
13
+ text: string;
14
+ textBody: string;
15
+ textMuted: string;
16
+ shadow: string;
17
+ font: string;
18
+ dark: boolean;
19
+ reducedMotion: boolean;
20
+ }
21
+ /** The drawing surface in px. */
22
+ export interface ChartSize {
23
+ width: number;
24
+ height: number;
25
+ }
26
+ /** The zoom window a long line keeps across a redraw, in percent of its data. */
27
+ export interface ZoomWindow {
28
+ start: number;
29
+ end: number;
30
+ }
31
+ /** What the element asks a draw to show: the hidden legend keys, the renderer and the motion. */
32
+ export interface ChartHandleView {
33
+ hidden: Set<string>;
34
+ renderer: "svg" | "canvas";
35
+ animation?: boolean;
36
+ zoom?: ZoomWindow | null;
37
+ }
38
+ /** The engine's callback parameter for a mark, as the tooltip and label formatters read it. */
39
+ export interface EngineParams {
40
+ name: string;
41
+ value: unknown;
42
+ percent: number;
43
+ color: string;
44
+ dataIndex: number;
45
+ seriesIndex: number;
46
+ dataType: string;
47
+ componentType: string;
48
+ data: {
49
+ row?: number;
50
+ } | undefined;
51
+ }
52
+ /** The handle the element drives: the mounted engine instance, owned by mountChart. */
53
+ export interface ChartHandle {
54
+ renderer: "svg" | "canvas";
55
+ render(spec: NormalizedSpec, theme: ChartTheme, size: ChartSize, view: ChartHandleView, options?: {
56
+ replace?: boolean;
57
+ }): void;
58
+ focusPoint(seriesIndex: number, row: number): void;
59
+ clearFocus(): void;
60
+ resize(): void;
61
+ onSelect(listener: (hit: {
62
+ seriesIndex: number;
63
+ dataIndex: number;
64
+ }) => void): void;
65
+ onFinished(listener: () => void): void;
66
+ dispose(): void;
67
+ }
68
+ type WaterfallBar = ReturnType<typeof waterfallBars>[number];
69
+ /** The ECharts option a chart is drawn with: what buildOption returns and setOption takes. */
70
+ export type ChartOption = EChartsCoreOption;
71
+ /** Below this width (the chart's own, not the page's) labels thin out and the donut drops its outside labels. */
72
+ export declare const COMPACT_WIDTH: number;
73
+ /** `color` at `a` opacity, for washes and shadows. A colour this cannot read comes back as it was. */
74
+ export declare function alpha(color: unknown, a: number): string;
75
+ /** `a` blended `t` (0 to 1) of the way toward `b`: a tint of a series colour on the surface. */
76
+ export declare function mixColours(a: string, b: string, t: number): string;
77
+ /** The ink that reads on `fill`: the theme's text or its surface, whichever contrasts more. */
78
+ export declare function readableInk(fill: unknown, theme: ChartTheme): string;
79
+ /**
80
+ * The ECharts option for a spec. Pure: the same inputs always give the same option, which is
81
+ * built whole every time (a merge would keep the previous theme's colours wherever a field was
82
+ * left out).
83
+ *
84
+ * @param spec normalised spec (chartSpec.normalizeSpec)
85
+ * @param theme resolved colours and motion: { palette, neutral, surface, grid, axis,
86
+ * label, text, textBody, shadow, font, dark, reducedMotion }
87
+ * @param size the drawing surface in px
88
+ * @param view { hidden: Set<string>, renderer: 'svg'|'canvas', animation?: boolean }
89
+ */
90
+ export declare function buildOption(spec: NormalizedSpec, theme: ChartTheme, size: ChartSize, view: ChartHandleView): ChartOption;
91
+ /** The calendar's cell size, and the first day it shows: as many whole weeks as fit the width, newest kept. */
92
+ export declare function calendarLayout(spec: NormalizedSpec, size: ChartSize): {
93
+ cell: number;
94
+ from: number;
95
+ to: number;
96
+ };
97
+ export declare function waterfallBreak(bars: WaterfallBar[]): {
98
+ start: number;
99
+ end: number;
100
+ } | null;
101
+ /**
102
+ * The axisLabel fragment a column chart's category names take in a labelFit mode. `all` keeps every name
103
+ * (wrap or turn, as a waterfall does) and hides none; `auto` keeps the engine's own overlap hiding.
104
+ */
105
+ export declare function categoryLabelFit(mode: "auto" | "all" | "rotate" | "ellipsis" | undefined, names: string[], plotWidth: number): Record<string, unknown>;
106
+ /**
107
+ * How a waterfall labels its steps in the width it has. Every step keeps its name: a name wraps
108
+ * inside its own slot while its longest word fits there, and turns on its side when even one word
109
+ * does not. The values over the bars print only when every one fits its slot; otherwise none do,
110
+ * and the tooltip carries them.
111
+ */
112
+ export declare function waterfallLabels(names: string[], values: string[], plotWidth: number): {
113
+ nameSize: number;
114
+ valueSize: number;
115
+ category: Record<string, unknown>;
116
+ showValues: boolean;
117
+ };
118
+ /** A treemap's parents in order, each with its row indexes largest first: the order the engine's tree is built in. */
119
+ export declare function treemapGroups(spec: NormalizedSpec): Array<{
120
+ name: string;
121
+ rows: number[];
122
+ }>;
123
+ export declare function sankeyDepths(spec: NormalizedSpec): Map<string, number>;
124
+ /**
125
+ * The least-squares line through points, as its two end points, or null with fewer than two
126
+ * distinct x. The ends are cut where the line leaves the points' own y range, so it never pulls the
127
+ * axis past the data.
128
+ */
129
+ export declare function trendLine(points: Array<[number, number]>): Array<[number, number]> | null;
130
+ /**
131
+ * Where a spec's row sits in the engine, for the keyboard: { seriesIndex, dataIndex } as the
132
+ * engine's own actions take them. `series` is the index into spec.series, `row` the data row.
133
+ */
134
+ export declare function locatePoint(spec: NormalizedSpec, series: number, row: number): {
135
+ seriesIndex: number;
136
+ dataIndex: number;
137
+ dataType?: string;
138
+ tip?: boolean;
139
+ };
140
+ /** The inverse: what an engine click means in spec terms, { series, row }, or null for a mark that is no row. */
141
+ export declare function rowOf(spec: NormalizedSpec, p: ECElementEvent): {
142
+ series: number;
143
+ row: number;
144
+ } | null;
145
+ /**
146
+ * A PNG of the chart as a data URL, drawn on a throwaway canvas at `pixelRatio` with the surface
147
+ * colour behind it. The SVG renderer cannot hand out a PNG, and a canvas copy keeps the page's
148
+ * web font, which an SVG drawn into an image would lose.
149
+ */
150
+ export declare function renderPng(spec: NormalizedSpec, theme: ChartTheme, size: ChartSize, view: ChartHandleView, { pixelRatio }?: {
151
+ pixelRatio?: number;
152
+ }): string;
153
+ /**
154
+ * Start the engine in `container`. The handle is all the element ever calls: draw, point the
155
+ * keyboard at a data point, resize, report clicks and the end of drawing, and stop.
156
+ */
157
+ export declare function mountChart(container: HTMLElement, { renderer }: {
158
+ renderer: "svg" | "canvas";
159
+ }): ChartHandle;
160
+ export {};
@@ -0,0 +1,382 @@
1
+ import type { DatePattern, FormatStyle, FormatUnit } from "./formatters.ts";
2
+ import { compactFormatOf, formatValue } from "./formatters.ts";
3
+ export type ChartType = "line" | "area" | "column" | "bar" | "donut" | "heatmap" | "calendar" | "funnel" | "gauge" | "waterfall" | "treemap" | "sankey" | "scatter" | "bubble" | "multiples";
4
+ export type StackMode = "none" | "stacked" | "percent";
5
+ export type XKind = "category" | "time" | "value";
6
+ export type LabelFit = "auto" | "all" | "rotate" | "ellipsis";
7
+ export type Renderer = "auto" | "svg" | "canvas";
8
+ export type ChartState = "ready" | "loading" | "empty" | "error";
9
+ export type ChartView = "chart" | "table";
10
+ /** A cell of a data row: a category, a number, or a gap. */
11
+ export type ChartRow = Record<string, string | number | null>;
12
+ /**
13
+ * How a value is printed (formatters.ts).
14
+ */
15
+ export type FormatSpec = {
16
+ /** `percent` takes a ratio, as Intl does: 0.125 shows as 12.5%. */
17
+ style: FormatStyle;
18
+ /** For currency and compact: an ISO 4217 code (three capital letters), INR when omitted. */
19
+ currency?: string;
20
+ /** What the value counts: `rupees` (default) or `paise` for money, `ms`, `s` (default), `min` or `h` for a duration. */
21
+ unit?: FormatUnit;
22
+ /** Fraction digits: fixed for currency (default 0), a cap otherwise. */
23
+ decimals?: number;
24
+ /** For `date` (default `day`, 04-Oct-2026 in the time zone of the chart (IST by default)). */
25
+ pattern?: DatePattern;
26
+ };
27
+ /** The x column: the column holding the x value (see the spec's description of each type). */
28
+ export type XColumn = {
29
+ key: string;
30
+ kind?: XKind;
31
+ format?: FormatSpec;
32
+ label?: string;
33
+ labelFit?: LabelFit;
34
+ };
35
+ /** A value column, in the order it takes its colour. */
36
+ export type SeriesColumn = {
37
+ key: string;
38
+ label: string;
39
+ format?: FormatSpec;
40
+ };
41
+ /** A column that names a second dimension (group, to, size). */
42
+ export type KeyedColumn = {
43
+ key: string;
44
+ label?: string;
45
+ format?: FormatSpec;
46
+ };
47
+ /** The one value axis. */
48
+ export type YAxis = {
49
+ label?: string;
50
+ format?: FormatSpec;
51
+ min?: number;
52
+ max?: number;
53
+ wholeNumbers?: boolean;
54
+ };
55
+ /** A gauge band: the stretch of the scale up to `upTo`. */
56
+ export type GaugeBand = {
57
+ upTo: number;
58
+ label: string;
59
+ };
60
+ /**
61
+ * What each `type` reads from `data` (one row per mark unless noted). Every type but `multiples`
62
+ * draws ONE series (`series[0]` is the measure); the keys named here carry the other dimensions.
63
+ * - `line`, `area`, `column`, `bar`: one row per x position, one column per series.
64
+ * - `donut`: one row per slice, `x` names the slice.
65
+ * - `heatmap`: one row per cell: `x` is the column, `group` the row, `series[0]` the value.
66
+ * - `calendar`: one row per day: `x` (kind `time`) is the day, `series[0]` the value.
67
+ * - `funnel`: one row per stage, in order: `x` names the stage, `series[0]` the count.
68
+ * - `gauge`: one row: `series[0]` is the value on the scale `y.min` to `y.max` (default 0 to 100),
69
+ * `x` optionally names it, `bands` names the stretches of the scale.
70
+ * - `waterfall`: the first row is the starting total, the middle rows are signed changes, the last
71
+ * row is the closing total (given, and checked against the steps).
72
+ * - `treemap`: one row per leaf: `group` is its parent, `x` its name, `series[0]` its size.
73
+ * - `sankey`: one row per flow: `x` is where it starts, `to` where it ends, `series[0]` its size.
74
+ * - `scatter`, `bubble`: one row per point: `x` is a number, `series[0]` the y number, `group` the
75
+ * optional colour group (at most 3), `size` (bubble) the area.
76
+ * - `multiples`: like `line`, but each series gets its own small chart under one shared x axis,
77
+ * with linked tooltips. It replaces a second y axis.
78
+ */
79
+ export type ChartSpec = {
80
+ /** `column` is vertical bars, `bar` horizontal. */
81
+ type: ChartType;
82
+ /** Required. Names the chart for assistive tech and names exported files. */
83
+ title: string;
84
+ /** One sentence read before the automatic summary. */
85
+ description?: string;
86
+ /** The rows (see above). */
87
+ data: ChartRow[];
88
+ /**
89
+ * The column holding the x value. `time` takes epoch ms, an ISO instant, or a "YYYY-MM-DD" day, and
90
+ * shows it in the time zone of the chart (IST by default). `value` (scatter and bubble only) is a number. `label` heads the table's first column.
91
+ * `labelFit` sets how a column chart fits its category names: `auto` (the default) hides those that overlap, `all` shows every name,
92
+ * `rotate` turns them, and `ellipsis` cuts each to its slot; a bar chart has the room already, so it ignores this.
93
+ */
94
+ x: XColumn;
95
+ /**
96
+ * The value columns, in the order they take colours. At most 8; every type but `line`, `area`, `column`, `bar` and
97
+ * `multiples` takes exactly one.
98
+ */
99
+ series: SeriesColumn[];
100
+ /** The second dimension: a heatmap's rows, a treemap's parents, a scatter or bubble's colour groups (at most 3). */
101
+ group?: KeyedColumn;
102
+ /** A sankey's end of each flow. */
103
+ to?: KeyedColumn;
104
+ /** A bubble's area. */
105
+ size?: KeyedColumn;
106
+ /** A scatter or bubble's straight trend line through the visible points. */
107
+ trend?: boolean;
108
+ /** Print each bar's value on it. Column and bar only; ignored on a stacked chart. */
109
+ valueLabels?: boolean;
110
+ /** A zoom slider under a line or area. Default: on above 5,000 rows. */
111
+ zoom?: boolean;
112
+ /** A gauge's named stretches, each up to a value. */
113
+ bands?: GaugeBand[];
114
+ /** For area, column and bar. Several series with `none` sit side by side (grouped columns, overlapping areas). Default `none`. */
115
+ stack?: StackMode;
116
+ /**
117
+ * The one value axis. There is no second axis by design: show another measure as its own chart.
118
+ */
119
+ y?: YAxis;
120
+ /** A dashed reference line. */
121
+ target?: {
122
+ value: number;
123
+ label: string;
124
+ };
125
+ /** The caption under the total in a donut's centre. Default "Total". Donut only. */
126
+ centerLabel?: string;
127
+ /** In px, the axis labels included. Default 320; a gauge 240, a calendar 200, a treemap and a sankey 340, small multiples 100 per chart. */
128
+ height?: number;
129
+ /** `loading` after a first render keeps that render on screen, dimmed, until the new data arrives. Default `ready`. */
130
+ state?: ChartState;
131
+ /** Replaces the default empty message. */
132
+ emptyText?: string;
133
+ /** Replaces the default error message. Say what the person can do. */
134
+ errorText?: string;
135
+ /** Replaces the default loading message (read aloud while the chart loads). Default "Loading chart". */
136
+ loadingText?: string;
137
+ /** `auto` draws SVG, and canvas above 5,000 points. Default `auto`. */
138
+ renderer?: Renderer;
139
+ /** IANA zone dates are read and shown in (Asia/Kolkata when omitted). */
140
+ timeZone?: string;
141
+ };
142
+ /** What normalizeSpec accepts: the valid shape, with every optional key a caller may pass. Anything else is warned and ignored. */
143
+ export type ChartInput = ChartSpec;
144
+ /** The spec after validation: every default filled in, every unknown value dropped. */
145
+ export type NormalizedSpec = {
146
+ type: ChartType;
147
+ title: string;
148
+ description: string;
149
+ data: ChartRow[];
150
+ allData: ChartRow[];
151
+ x: {
152
+ key: string;
153
+ kind: XKind;
154
+ format?: FormatSpec;
155
+ label: string;
156
+ labelFit: LabelFit;
157
+ };
158
+ series: SeriesColumn[];
159
+ group: KeyedColumn | null;
160
+ to: KeyedColumn | null;
161
+ size: KeyedColumn | null;
162
+ trend: boolean;
163
+ zoom: boolean;
164
+ bands: GaugeBand[];
165
+ stack: StackMode;
166
+ y: {
167
+ label: string;
168
+ format?: FormatSpec;
169
+ min?: number;
170
+ max?: number;
171
+ wholeNumbers: boolean;
172
+ };
173
+ target: {
174
+ value: number;
175
+ label: string;
176
+ } | null;
177
+ centerLabel: string;
178
+ valueLabels: boolean;
179
+ height: number;
180
+ state: ChartState;
181
+ emptyText: string;
182
+ errorText: string;
183
+ loadingText: string;
184
+ renderer: Renderer;
185
+ timeZone: string;
186
+ otherIndex: number;
187
+ };
188
+ export type NormalizeResult = {
189
+ spec: NormalizedSpec;
190
+ problem: null;
191
+ } | {
192
+ spec: null;
193
+ problem: string;
194
+ };
195
+ export type TooltipRow = {
196
+ color?: string;
197
+ line?: boolean;
198
+ label: string;
199
+ value: string;
200
+ };
201
+ export type TooltipModel = {
202
+ title: string;
203
+ rows: TooltipRow[];
204
+ foot: string;
205
+ };
206
+ export type TableRow = {
207
+ head: string;
208
+ cells: string[];
209
+ };
210
+ export type TableModel = {
211
+ caption: string;
212
+ head: string[];
213
+ rows: TableRow[];
214
+ total: number;
215
+ truncated: boolean;
216
+ };
217
+ export type ChartColours = {
218
+ palette: string[];
219
+ neutral: string;
220
+ seq?: string[];
221
+ };
222
+ export type Focus = {
223
+ index: number;
224
+ series: number;
225
+ };
226
+ export type HeatBucket = {
227
+ from: number;
228
+ to: number;
229
+ colour: string | undefined;
230
+ };
231
+ export type WaterfallBar = {
232
+ index: number;
233
+ total: boolean;
234
+ value: number;
235
+ from: number;
236
+ to: number;
237
+ level: number;
238
+ };
239
+ export declare const CHART_TYPES: readonly ChartType[];
240
+ export declare const STACK_MODES: readonly StackMode[];
241
+ export declare const X_KINDS: readonly XKind[];
242
+ export declare const RENDERERS: readonly Renderer[];
243
+ export declare const CHART_STATES: readonly ChartState[];
244
+ export declare const CHART_VIEWS: readonly ChartView[];
245
+ export declare const MAX_SERIES: number;
246
+ export declare const MAX_SLICES: number;
247
+ /** Colour groups a scatter or bubble keeps apart: past three, pairs of hues stop being tellable apart. */
248
+ export declare const MAX_GROUPS: number;
249
+ /** Above this many points `auto` draws on canvas, which stays fast where SVG would not. */
250
+ export declare const CANVAS_POINT_THRESHOLD: number;
251
+ export declare const DEFAULT_HEIGHT: number;
252
+ /** Rows the table shows; the CSV always carries every row. */
253
+ export declare const TABLE_ROW_LIMIT: number;
254
+ export declare const OTHER_LABEL: string;
255
+ export declare const DEFAULT_EMPTY_TEXT: string;
256
+ export declare const DEFAULT_ERROR_TEXT: string;
257
+ export declare const DEFAULT_LOADING_TEXT: string;
258
+ /** True for a type that draws exactly one series. */
259
+ export declare const isSingleSeries: (type: ChartType) => boolean;
260
+ /** Warn once when `value` is outside `allowed`; nullish means omitted and passes. */
261
+ export declare function checkValue(path: string, value: unknown, allowed: readonly unknown[]): void;
262
+ /**
263
+ * Validate a spec and return the shape the element and adapter work from. Never throws: a spec
264
+ * the chart cannot draw comes back with `problem` set, a message fit to show the person, and the
265
+ * reason goes to the console. Every value a caller got wrong is warned once.
266
+ *
267
+ * @param raw the caller's spec, unchecked
268
+ */
269
+ export declare function normalizeSpec(raw: unknown): NormalizeResult;
270
+ /** The value of a series at a row: a finite number, or null for a gap. */
271
+ export declare function valueAt(spec: NormalizedSpec, seriesKey: string, index: number): number | null;
272
+ /** Whether any series has a number to plot: a ready spec without one is shown as empty. A gauge draws a missing value as "-". */
273
+ export declare function hasValues(spec: NormalizedSpec): boolean;
274
+ /** The x value of a row as text: a category as given (or through x.format), a time in the zone of the chart. */
275
+ export declare function xText(spec: NormalizedSpec, index: number): string;
276
+ /** Epoch ms of a time row's x value (NaN when it cannot be read). */
277
+ export declare function xInstant(spec: NormalizedSpec, index: number): number;
278
+ /** A row's group (heatmap row, treemap parent, scatter colour group) as text. */
279
+ export declare function groupText(spec: NormalizedSpec, index: number): string;
280
+ /** A sankey row's end as text. */
281
+ export declare function toText(spec: NormalizedSpec, index: number): string;
282
+ /** The distinct groups in the order they first appear: also each group's colour slot. */
283
+ export declare function groupNames(spec: NormalizedSpec): string[];
284
+ /** How many points the chart plots: what `auto` weighs against the canvas threshold. */
285
+ export declare function pointCount(spec: NormalizedSpec): number;
286
+ /** The renderer to draw with. */
287
+ export declare function resolveRenderer(spec: NormalizedSpec): "svg" | "canvas";
288
+ /** Identity of each legend entry: series keys, slice names for a donut, group names for a scatter. */
289
+ export declare function legendKeys(spec: NormalizedSpec): string[];
290
+ /** What each legend entry says: the series' label, or the slice or group itself. */
291
+ export declare function legendLabels(spec: NormalizedSpec): string[];
292
+ /** Whether a row is switched off through the legend (a donut's slice, a scatter's group). */
293
+ export declare function rowHidden(spec: NormalizedSpec, index: number, hidden: Set<string>): boolean;
294
+ /** Each visible series' share of its row, as a ratio (0 to 1), for a percent stack. */
295
+ export declare function percentShares(spec: NormalizedSpec, hidden: Set<string>): Record<string, number | null>[];
296
+ /** "Sun, 04-Oct-2026": the weekday in the zone, then the date. */
297
+ export declare function weekdayDate(instant: number, timeZone?: string): string;
298
+ export declare const share: (part: number | null, whole: number | null | undefined) => string;
299
+ /**
300
+ * The five equal-width buckets a heatmap and a calendar colour by, lowest first: `{ from, to,
301
+ * colour }`, where each bucket takes `from` up to (not including) `to` and the last takes its `to`
302
+ * as well. One bucket when every value is the same; none without values.
303
+ */
304
+ export declare function heatBuckets(values: readonly unknown[], seq: string[]): HeatBucket[];
305
+ /** The colour of a value among its buckets. */
306
+ export declare function heatColour(buckets: HeatBucket[], value: number | null): string | undefined;
307
+ /** A funnel's stage colours: the sequential ramp from its darkest end, spread over the stages. */
308
+ export declare function funnelColours(count: number, seq: string[]): (string | undefined)[];
309
+ /** A gauge's reading: the band the value falls in (the last band when past them all), if any. */
310
+ export declare function gaugeBand(spec: NormalizedSpec, value: number): GaugeBand | null;
311
+ /** A gauge's scale: its y min and max, else 0 to 100. */
312
+ export declare function gaugeScale(spec: NormalizedSpec): {
313
+ min: number;
314
+ max: number;
315
+ };
316
+ /**
317
+ * A waterfall's bars, one per row: the first and last rows are totals, the others signed steps.
318
+ * `from` and `to` are the running levels either side of the bar.
319
+ */
320
+ export declare function waterfallBars(spec: NormalizedSpec): WaterfallBar[];
321
+ /** A sankey's node colours: each start takes the next palette slot, the rest follow their largest inflow. */
322
+ export declare function sankeyColours(spec: NormalizedSpec, palette: string[]): Map<string, string | undefined>;
323
+ /** A treemap's totals: each parent's size in the order parents first appear. */
324
+ export declare function treemapTotals(spec: NormalizedSpec): Map<string, number>;
325
+ /**
326
+ * The colour of one row's mark, the one the tooltip's swatch shows: a palette slot, the funnel's
327
+ * ramp, the heatmap bucket, the gauge band, the waterfall's green or red, the neutral for Other.
328
+ */
329
+ export declare function markColour(spec: NormalizedSpec, index: number, colours: ChartColours): string | undefined;
330
+ /**
331
+ * What a tooltip shows for one position: a title, a row per visible series (or the slice), and a
332
+ * footer. Text only: renderTooltip turns it into DOM and tooltipText into a sentence.
333
+ *
334
+ * @param spec normalised spec
335
+ * @param index the row (slice) index
336
+ * @param hidden legend keys switched off
337
+ * @param colours the palette, the neutral colour and the sequential ramp
338
+ */
339
+ export declare function tooltipModel(spec: NormalizedSpec, index: number, hidden: Set<string>, colours: ChartColours): TooltipModel;
340
+ /** A signed figure: a plus before a rise, the true minus before a fall; `suffix` follows the number. */
341
+ export declare function signed(value: number, format: Parameters<typeof formatValue>[1], suffix?: string): string;
342
+ /** The colour of a donut slice: its palette slot, or the neutral for the folded Other slice. */
343
+ export declare function sliceColour(spec: NormalizedSpec, index: number, colours: ChartColours): string | undefined;
344
+ /** A tooltip's DOM, built with textContent only: no string from the data is ever parsed as HTML. */
345
+ export declare function renderTooltip(model: TooltipModel): HTMLDivElement;
346
+ /** The same content as one sentence, for the live region the keyboard drives. */
347
+ export declare function tooltipText(model: TooltipModel): string;
348
+ /**
349
+ * The data table: a caption, the column heads, and the rows as text. The first column is the x
350
+ * value (a row header), then one column per series, with the extra columns each type needs (a
351
+ * donut's share, a funnel's step rates, a heatmap's columns). At most TABLE_ROW_LIMIT rows;
352
+ * `truncated` says how many there are in all.
353
+ */
354
+ export declare function tableModel(input: NormalizedSpec): TableModel;
355
+ /**
356
+ * Every row as CSV: a byte-order mark (so a spreadsheet reads the ₹ and the Indian digits right),
357
+ * the column labels with their units, raw numbers (money in rupees, also when the data is in
358
+ * paise, and a percent ratio in percent units under its "(%)" head), dates in the time zone of the chart, CRLF line ends, and a leading = + - @ in text neutralised so a cell can
359
+ * never run as a formula. A heatmap, treemap, sankey, scatter and bubble write one row per
360
+ * mark with their group, parent, end or size beside it.
361
+ */
362
+ export declare function toCsv(input: NormalizedSpec): string;
363
+ /** The file name an export uses: the title in lower case with hyphens. */
364
+ export declare function fileStem(spec: NormalizedSpec | null | undefined): string;
365
+ /**
366
+ * The summary a screen reader hears after the title: the description, then what kind of chart
367
+ * it is, what it plots, how far x runs, and each series' lowest and highest value. `hidden` leaves out
368
+ * the legend entries switched off, so the description matches what is drawn.
369
+ */
370
+ export declare function summaryText(spec: NormalizedSpec, hidden?: Set<string>): string;
371
+ /** The y axis' tick format: the compact form of the value format, or percent for a percent stack. */
372
+ export declare function axisFormat(spec: NormalizedSpec): ReturnType<typeof compactFormatOf>;
373
+ /**
374
+ * Where the keyboard focus moves: { index, series } (series is the index into spec.series), or
375
+ * null when Escape clears it. Left and right walk along x (up and down on a horizontal bar chart,
376
+ * whose categories run down the page); the other pair steps between visible series. A donut, a
377
+ * funnel, a waterfall, a treemap, a sankey, a scatter and a bubble chart walk their visible marks
378
+ * with any arrow (a scatter in x order). A heatmap moves across its grid, and a calendar by day
379
+ * (up and down) and week (left and right). Home and End jump to the first and last position.
380
+ * Returns the focus unchanged for any other key.
381
+ */
382
+ export declare function stepFocus(spec: NormalizedSpec, focus: Focus | null, key: string, hidden: Set<string>): Focus | null;
@@ -0,0 +1,25 @@
1
+ /** The languages the block highlights; "text" shows the source as written. */
2
+ export declare const CODE_LANGUAGES: readonly ["text", "json", "js", "cs", "sql", "bash", "http", "html", "css"];
3
+ /** The name the block's header shows when it has no label. */
4
+ export declare const CODE_LANGUAGE_NAMES: Readonly<Record<(typeof CODE_LANGUAGES)[number], string>>;
5
+ /** Source longer than this is not tokenized. */
6
+ export declare const MAX_HIGHLIGHT_CHARS = 100000;
7
+ type Token = [string, string];
8
+ /**
9
+ * Splits source into [type, text] pairs. Types: plain, comment, string, number, keyword,
10
+ * literal, function, type, attr, tag, variable, punct. Joining the texts gives the source back.
11
+ *
12
+ * @param code
13
+ * @param language One of CODE_LANGUAGES; an unknown one stays plain.
14
+ */
15
+ export declare function tokenize(code: string | null | undefined, language: string): Token[];
16
+ /**
17
+ * The same tokens grouped by line, so a block can draw one element per line. A token that spans
18
+ * lines (a block comment, a template string) is cut at each break. A trailing newline does not
19
+ * add an empty last line.
20
+ *
21
+ * @param code
22
+ * @param language
23
+ */
24
+ export declare function highlightLines(code: string, language: string): Token[][];
25
+ export {};
@@ -0,0 +1,7 @@
1
+ export declare const SEARCH_OPEN_KEY = "/";
2
+ /** Shows the field, marks the toggle expanded and focuses the input. */
3
+ export declare function openSearch(wrap: HTMLElement): void;
4
+ /** Folds the field back into its button, unless the field holds a value. */
5
+ export declare function collapseSearch(wrap: HTMLElement): void;
6
+ /** Wires every collapsible search under `root` that is not wired yet, and the "/" key once per document. */
7
+ export declare function initCollapsibleSearch(root?: Document | Element): void;
@@ -0,0 +1,12 @@
1
+ export declare const COMMAND_SHORTCUT_ATTRIBUTE = "data-wui-command-shortcut";
2
+ /**
3
+ * Ctrl or Cmd plus key, no Alt, no Shift, no auto-repeat; key matched case-insensitively.
4
+ * @param event
5
+ * @param key
6
+ */
7
+ export declare function isCommandChord(event: KeyboardEvent, key: string): boolean;
8
+ /**
9
+ * For each [data-wui-command-shortcut] under root: the chord opens a command palette host or focuses a search input, and the browser's own use of the chord is stopped.
10
+ * @param root
11
+ */
12
+ export declare function initCommandShortcuts(root: Document | Element): void;
@@ -0,0 +1,40 @@
1
+ import type { HttpKind } from "./server/wuiHttp.ts";
2
+ export type CommentIntent = "post" | "reply" | "edit" | "delete" | "react";
3
+ /** The reactions offered when the thread names none. */
4
+ export declare const COMMENT_REACTIONS: readonly string[];
5
+ /** What a change asks the server or the host to do. */
6
+ export declare const COMMENT_INTENTS: readonly CommentIntent[];
7
+ export declare const FAILED_CLIENT = "This did not go through. Refresh the page and try again.";
8
+ export declare const FAILED_SERVER = "Something went wrong on our side. Try again in a moment.";
9
+ /** The words of a thread. React AppCommentThread and the Razor tag helper render the same. */
10
+ export declare const COMMENT_TEXT: Readonly<{
11
+ listName: "Comments";
12
+ empty: "No comments yet.";
13
+ deleted: "This comment was deleted.";
14
+ edited: "Edited";
15
+ reply: "Reply";
16
+ edit: "Edit";
17
+ delete: "Delete";
18
+ cancel: "Cancel";
19
+ save: "Save";
20
+ post: "Comment";
21
+ confirmDelete: "Delete this comment?";
22
+ composerLabel: "Add a comment";
23
+ composerPlaceholder: "Write a comment. Type @ to mention someone.";
24
+ replyLabel: (author: string) => string;
25
+ replyPlaceholder: "Write a reply";
26
+ editLabel: "Edit comment";
27
+ repliesName: (author: string) => string;
28
+ reactions: "Reactions";
29
+ addReaction: "Add a reaction";
30
+ pickerName: "Choose a reaction";
31
+ emptyBody: "Write something first.";
32
+ done: Readonly<{
33
+ post: "Comment posted.";
34
+ reply: "Reply posted.";
35
+ edit: "Comment saved.";
36
+ delete: "Comment deleted.";
37
+ react: "";
38
+ }>;
39
+ failed: Partial<Record<HttpKind, string>>;
40
+ }>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const THEME_DEFAULTS: Readonly<Record<string, string>>;
2
+ export declare const CONSENT_BANNER_STANDALONE_CSS: string;
@@ -0,0 +1,10 @@
1
+ /** Feedback window for copy-button label/icon swap on both surfaces. */
2
+ export declare const COPY_FEEDBACK_MS = 2000;
3
+ /**
4
+ * Copy plain text to the clipboard. Tries `navigator.clipboard.writeText`, then falls
5
+ * back to a hidden textarea + `document.execCommand("copy")`. Never throws.
6
+ *
7
+ * @param text
8
+ * @returns true when the copy succeeded
9
+ */
10
+ export declare function copyTextToClipboard(text: string): Promise<boolean>;
@@ -0,0 +1,3 @@
1
+ export declare const COUNTRIES: readonly (readonly [string, string, string])[];
2
+ export declare const dialOf: (iso: string | null | undefined) => string;
3
+ export declare const nameOf: (iso: string | null | undefined) => string;
@@ -0,0 +1,6 @@
1
+ export declare const DEFAULT_CURRENCY = "INR";
2
+ export declare const CURRENCY_SYMBOLS: Readonly<Record<string, string>>;
3
+ /** Whether `value` looks like an ISO 4217 code (three capital letters). */
4
+ export declare const isCurrencyCode: (value: unknown) => boolean;
5
+ /** What goes before an amount: the symbol, or the code and a space when there is no symbol. */
6
+ export declare const currencyPrefix: (code?: string) => string;