@webority/ui-elements 0.149.0 → 0.152.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 (477) 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-BmRsl0K1.js +1 -0
  5. package/dist/WuiConsentBanner-Bm7tT3_5.js +1 -0
  6. package/dist/WuiContextMenu-sPTmEEVn.js +1 -0
  7. package/dist/WuiDataTable-B4BYCd_s.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-BlBuWkHG.js +1 -0
  15. package/dist/WuiLeadPopup-YN4YCbOe.js +382 -0
  16. package/dist/WuiLightbox-C2A14vHx.js +1 -0
  17. package/dist/WuiMarkdown-BXY0QKaO.js +4 -0
  18. package/dist/WuiMentionInput-8Xjkzdqg.js +1 -0
  19. package/dist/WuiNavigationMenu-CZ3XhFam.js +1 -0
  20. package/dist/WuiNotificationCenter-ClkCTUnp.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-B0wA6aDe.js +1 -0
  25. package/dist/WuiPhone-BVNVerap.js +16 -0
  26. package/dist/WuiRating-DLVduJZ_.js +1 -0
  27. package/dist/WuiRecordPager-7HVGoFlP.js +1 -0
  28. package/dist/WuiRelativeTime-DyeUQOQ8.js +1 -0
  29. package/dist/WuiResizable-DQZdQVCz.js +1 -0
  30. package/dist/WuiRollingNumber-sfgNzaP0.js +1 -0
  31. package/dist/WuiSavedViews-UaiP6YNG.js +1 -0
  32. package/dist/WuiSelect-DBPre2oe.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-Cx61ijsm.js +1 -0
  39. package/dist/WuiTree-0Yqu199O.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-Dony2fgq.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-B-7oAeii.js +1 -0
  52. package/dist/dom-Do1pAA12.js +1 -0
  53. package/dist/drawerDiscard-C0yRSl1I.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-Bt1jeArm.js} +2 -2
  101. package/dist/fileViewerMedia-Bp1uHJvC.js +1 -0
  102. package/dist/{fileViewerPdf-6MAAzmCM.js → fileViewerPdf-CdaDuaRJ.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-ljfITOZ3.js +1 -0
  107. package/dist/helpers.js +1 -1
  108. package/dist/iconGlyphs.g-DPqoOoXy.js +1 -0
  109. package/dist/inlineEditText-CsLCQbcg.js +1 -0
  110. package/dist/kanban-Dz8m-17x.js +1 -0
  111. package/dist/kanbanModel-C2IOPJ8L.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-BIWczft0.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-BahImc8F.js +1 -0
  120. package/dist/search-C8xIzt6h.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 +19 -19
  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-DGbD7Fra.js +1 -0
  170. package/dist/{zone-D82f-GU_.js → zone-BR02ZkHF.js} +1 -1
  171. package/package.json +208 -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 +147 -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 +124 -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 +36 -0
  342. package/types/razor-js/modules/avatars.d.ts +1 -0
  343. package/types/razor-js/modules/buttons.d.ts +1 -0
  344. package/types/razor-js/modules/dropZones.d.ts +2 -0
  345. package/types/razor-js/modules/fileHelpers.d.ts +16 -0
  346. package/types/razor-js/modules/filePickers.d.ts +6 -0
  347. package/types/razor-js/modules/filterBars.d.ts +1 -0
  348. package/types/razor-js/modules/imagePickers.d.ts +1 -0
  349. package/types/razor-js/modules/inputs.d.ts +10 -0
  350. package/types/razor-js/modules/look.d.ts +6 -0
  351. package/types/razor-js/modules/overlays.d.ts +5 -0
  352. package/types/razor-js/modules/pageListeners.d.ts +1 -0
  353. package/types/razor-js/modules/popovers.d.ts +1 -0
  354. package/types/razor-js/modules/serverBridge.d.ts +13 -0
  355. package/types/razor-js/modules/shared.d.ts +15 -0
  356. package/types/razor-js/modules/shell.d.ts +1 -0
  357. package/types/razor-js/modules/splitView.d.ts +2 -0
  358. package/types/razor-js/modules/tables.d.ts +9 -0
  359. package/types/razor-js/modules/tabs.d.ts +1 -0
  360. package/types/razor-js/modules/themeCopy.d.ts +2 -0
  361. package/types/razor-js/modules/toast.d.ts +3 -0
  362. package/types/razor-js/modules/validation.d.ts +11 -0
  363. package/types/razor-js/modules/widgets.d.ts +10 -0
  364. package/types/razor-js/webority-ui.d.ts +51 -0
  365. package/types/relativeTime.d.ts +10 -0
  366. package/types/richText.d.ts +2 -0
  367. package/types/richTextAdapter.d.ts +54 -0
  368. package/types/richTextIcons.d.ts +1 -0
  369. package/types/rowDrop.d.ts +12 -0
  370. package/types/scrollEdges.d.ts +10 -0
  371. package/types/select/chips.d.ts +2 -0
  372. package/types/select/country.d.ts +2 -0
  373. package/types/select/customRule.d.ts +3 -0
  374. package/types/select/list.d.ts +32 -0
  375. package/types/select/option.d.ts +21 -0
  376. package/types/select/part.d.ts +103 -0
  377. package/types/select/partRegistry.d.ts +7 -0
  378. package/types/select/parts.d.ts +1 -0
  379. package/types/select/partsGlobal.d.ts +4 -0
  380. package/types/select/recents.d.ts +2 -0
  381. package/types/select/remote.d.ts +2 -0
  382. package/types/select/search.d.ts +5 -0
  383. package/types/server/drawerDiscard.d.ts +9 -0
  384. package/types/server/index.d.ts +9 -0
  385. package/types/server/remoteModal.d.ts +96 -0
  386. package/types/server/serverActions.d.ts +33 -0
  387. package/types/server/serverTable.d.ts +48 -0
  388. package/types/server/shellParts.d.ts +24 -0
  389. package/types/server/toastAction.d.ts +7 -0
  390. package/types/server/toastHeader.d.ts +8 -0
  391. package/types/server/unsavedChanges.d.ts +17 -0
  392. package/types/server/wuiHttp.d.ts +86 -0
  393. package/types/shortcutKeys.d.ts +59 -0
  394. package/types/statusIconImages.d.ts +1 -0
  395. package/types/statusIcons.d.ts +12 -0
  396. package/types/stepperHeader.d.ts +31 -0
  397. package/types/submitOnce.d.ts +3 -0
  398. package/types/tableSelect.d.ts +34 -0
  399. package/types/textMatch.d.ts +9 -0
  400. package/types/themeTransition.d.ts +88 -0
  401. package/types/toastTypes.d.ts +20 -0
  402. package/types/tokenCommit.d.ts +13 -0
  403. package/types/tourAdvance.d.ts +51 -0
  404. package/types/tourEnd.d.ts +17 -0
  405. package/types/tourGlobal.d.ts +4 -0
  406. package/types/tourIsolated.d.ts +2 -0
  407. package/types/tourMedia.d.ts +19 -0
  408. package/types/tourMotion.d.ts +20 -0
  409. package/types/tourOpenMark.d.ts +1 -0
  410. package/types/tourPlacement.d.ts +24 -0
  411. package/types/tourProgress.d.ts +29 -0
  412. package/types/tourSeenStore.d.ts +12 -0
  413. package/types/zone.d.ts +24 -0
  414. package/types/zoneCountries.g.d.ts +1 -0
  415. package/dist/WuiCarousel-C2NWcFxr.js +0 -1
  416. package/dist/WuiCodeBlock-CCCJwsk5.js +0 -1
  417. package/dist/WuiCommandPalette-Bfrbocu6.js +0 -2
  418. package/dist/WuiCommentThread-Dx3vvBWp.js +0 -1
  419. package/dist/WuiConsentBanner-jkeRiC1_.js +0 -1
  420. package/dist/WuiContextMenu-KXD8TFfy.js +0 -1
  421. package/dist/WuiDataTable-DAxAegnG.js +0 -1
  422. package/dist/WuiDatePicker-kEyyILbM.js +0 -31
  423. package/dist/WuiDateRange-B05PsdJ3.js +0 -25
  424. package/dist/WuiDock-Bd2ijOaJ.js +0 -1
  425. package/dist/WuiDrawer-SkxcDhgf.js +0 -1
  426. package/dist/WuiHoverCard-Bqapy8Is.js +0 -1
  427. package/dist/WuiImageCrop-DzzzPagi.js +0 -17
  428. package/dist/WuiInlineEdit-BqgKfVMy.js +0 -1
  429. package/dist/WuiLeadPopup-Dwmg7coE.js +0 -382
  430. package/dist/WuiLightbox-DCTE3ULH.js +0 -1
  431. package/dist/WuiMarkdown-D5vm4sp4.js +0 -4
  432. package/dist/WuiMentionInput-Bi3VQoKo.js +0 -1
  433. package/dist/WuiNavigationMenu-DmH3waKW.js +0 -1
  434. package/dist/WuiNotificationCenter-DawJRGBc.js +0 -1
  435. package/dist/WuiOnboardingChecklist-DXUETu1h.js +0 -1
  436. package/dist/WuiOrgTree-DuaBtFl9.js +0 -1
  437. package/dist/WuiOverflow-DP3qEbDp.js +0 -1
  438. package/dist/WuiPhone-CFne_6XG.js +0 -16
  439. package/dist/WuiRating-DhhqYj5Z.js +0 -1
  440. package/dist/WuiRecordPager-BOaFcs_W.js +0 -1
  441. package/dist/WuiRelativeTime-BG6rgUhw.js +0 -1
  442. package/dist/WuiResizable-mt9EMhjQ.js +0 -1
  443. package/dist/WuiRollingNumber-CF3H6l7t.js +0 -1
  444. package/dist/WuiSavedViews-BMBQUv2K.js +0 -1
  445. package/dist/WuiSelect-oSJPev4N.js +0 -9
  446. package/dist/WuiShortcuts-BEvFCIu9.js +0 -1
  447. package/dist/WuiShowMore-D3VHRZJg.js +0 -1
  448. package/dist/WuiSlider-2kB__6zU.js +0 -51
  449. package/dist/WuiSortable-r5iZtzM1.js +0 -1
  450. package/dist/WuiTimePicker-DqqZPv0T.js +0 -9
  451. package/dist/WuiTour-B-V1PZnw.js +0 -1
  452. package/dist/WuiTree-B3cnH1PG.js +0 -1
  453. package/dist/WuiTruncate-DyDQWMBu.js +0 -1
  454. package/dist/WuiWhatsNew-B5jK2zwZ.js +0 -1
  455. package/dist/WuiWizardStep-CIYuIp4a.js +0 -1
  456. package/dist/buttonClass-Yk0Fwgs6.js +0 -1
  457. package/dist/calendarMath-BC2wGCD-.js +0 -1
  458. package/dist/chips-DbhCYoAp.js +0 -2
  459. package/dist/country-3uo7no9r.js +0 -1
  460. package/dist/customRule-BE7CusA3.js +0 -1
  461. package/dist/dataTable-BoyxeUL4.js +0 -1
  462. package/dist/drawerDiscard-D6YgF59q.js +0 -1
  463. package/dist/elementBase-DV9IZZCu.js +0 -1
  464. package/dist/fileViewerMedia-BQ0lVXy9.js +0 -1
  465. package/dist/fileViewerUi-DQH6_B1a.js +0 -1
  466. package/dist/filterPopover-DniNyLWI.js +0 -1
  467. package/dist/formMirror-BMQTenSi.js +0 -1
  468. package/dist/formatters-Ba0CvsTs.js +0 -1
  469. package/dist/iconGlyphs.g-BlwTSNXS.js +0 -1
  470. package/dist/kanban-BtgxVDE-.js +0 -1
  471. package/dist/listboxKeyNav-DMIvs9d6.js +0 -1
  472. package/dist/loader-Dw3IkGM0.js +0 -1
  473. package/dist/recents-BzN7j9kV.js +0 -1
  474. package/dist/search-CdAH8NGK.js +0 -1
  475. package/dist/shortcutKeys-CvxSh3bV.js +0 -1
  476. package/dist/themeTransition-rHRVbhHB.js +0 -1
  477. package/dist/wuiHttp-BuaTcumE.js +0 -1
@@ -0,0 +1,112 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ import { createListboxKeyNav } from "./listboxKeyNav.ts";
3
+ export interface WuiTreeNode {
4
+ id?: string | number | null;
5
+ label?: string | number | null;
6
+ icon?: string | null;
7
+ badge?: string | number | null;
8
+ badgeTone?: string | null;
9
+ children?: WuiTreeNode[];
10
+ hasChildren?: boolean;
11
+ expanded?: boolean;
12
+ checked?: boolean;
13
+ disabled?: boolean;
14
+ }
15
+ type LoadChildren = (node: WuiTreeNode) => Promise<WuiTreeNode[]>;
16
+ type Selection = "none" | "single" | "multiple";
17
+ type CheckState = "checked" | "unchecked" | "mixed";
18
+ interface TreeModelNode {
19
+ id: string;
20
+ raw: WuiTreeNode;
21
+ parent: TreeModelNode | null;
22
+ level: number;
23
+ seq: number;
24
+ label: string;
25
+ icon: string | null;
26
+ badge: string | null;
27
+ badgeTone: string | null;
28
+ disabled: boolean;
29
+ hasChildren: boolean;
30
+ children: TreeModelNode[] | null;
31
+ expanded: boolean;
32
+ loading: boolean;
33
+ failed: boolean;
34
+ }
35
+ export declare class WuiTree extends ElementBase {
36
+ _uid: string;
37
+ _seq: number;
38
+ _roots: TreeModelNode[];
39
+ _byId: Map<string, TreeModelNode>;
40
+ _prev: Map<string, TreeModelNode> | null;
41
+ _staged: {
42
+ ids: string[];
43
+ checks: string[];
44
+ } | null;
45
+ _els: Map<string, {
46
+ li: HTMLLIElement;
47
+ row: HTMLDivElement;
48
+ }>;
49
+ _checked: Set<string>;
50
+ _selected: string | null;
51
+ _focusId: string | null;
52
+ _loader: LoadChildren | null;
53
+ _list: HTMLUListElement | null;
54
+ _live: HTMLDivElement | null;
55
+ _ready: boolean;
56
+ _nav: ReturnType<typeof createListboxKeyNav>;
57
+ _onKeyDown: (e: KeyboardEvent) => void;
58
+ _onClick: (e: MouseEvent) => void;
59
+ _onFocusIn: (e: FocusEvent) => void;
60
+ static get observedAttributes(): string[];
61
+ constructor();
62
+ connectedCallback(): void;
63
+ disconnectedCallback(): void;
64
+ attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
65
+ get nodes(): WuiTreeNode[];
66
+ set nodes(list: WuiTreeNode[] | null | undefined);
67
+ get selection(): Selection;
68
+ set selection(v: string);
69
+ get selected(): string | null;
70
+ set selected(id: string | number | null | undefined);
71
+ get values(): string[];
72
+ set values(ids: (string | number)[] | null | undefined);
73
+ get loadChildren(): LoadChildren | null;
74
+ set loadChildren(fn: LoadChildren | null | undefined);
75
+ get loadUrl(): string | null;
76
+ set loadUrl(v: string | null | undefined);
77
+ get name(): string | null;
78
+ set name(v: string | null | undefined);
79
+ get loadingText(): string;
80
+ set loadingText(v: string | null | undefined);
81
+ get errorText(): string;
82
+ set errorText(v: string | null | undefined);
83
+ _readScript(): WuiTreeNode[] | null;
84
+ _adoptAll(rawList: WuiTreeNode[]): void;
85
+ _adoptStaged(rawList: WuiTreeNode[], parent: TreeModelNode | null, level: number): TreeModelNode[];
86
+ _adopt(rawList: WuiTreeNode[], parent: TreeModelNode | null, level: number): TreeModelNode[];
87
+ _passChecksDown(n: TreeModelNode): void;
88
+ _loadOpenNodes(): void;
89
+ _isBranch(n: TreeModelNode): boolean;
90
+ _visible(): TreeModelNode[];
91
+ _state(n: TreeModelNode): CheckState;
92
+ _setChecked(n: TreeModelNode, on: boolean): void;
93
+ _nodeFrom(target: EventTarget | null): TreeModelNode | null;
94
+ _emit(name: string, detail: unknown): void;
95
+ _announce(text: string): void;
96
+ _setRoving(n: TreeModelNode): void;
97
+ _focusNode(n: TreeModelNode | undefined): void;
98
+ _activate(n: TreeModelNode): void;
99
+ _enabledLeaves(n: TreeModelNode): TreeModelNode[];
100
+ _toggleCheck(n: TreeModelNode): void;
101
+ _toggleExpand(n: TreeModelNode): void;
102
+ _expand(n: TreeModelNode): void;
103
+ _load(n: TreeModelNode): Promise<void>;
104
+ _fetchChildren(n: TreeModelNode): Promise<WuiTreeNode[]>;
105
+ _handleClick(e: MouseEvent): void;
106
+ _handleKeyDown(e: KeyboardEvent): void;
107
+ _syncForm(): void;
108
+ _render(): void;
109
+ _buildLevel(nodes: TreeModelNode[]): HTMLLIElement[];
110
+ _buildItem(n: TreeModelNode, posInSet: number, setSize: number): HTMLLIElement;
111
+ }
112
+ export {};
@@ -0,0 +1,19 @@
1
+ /**
2
+ * <wui-truncate>: shows the full text of a clipped `.wui-truncate-text` child. React AppTruncate and
3
+ * Razor <app-truncate> render the element around the clipped span; when the text really is cut
4
+ * (by width or by line count) the element sets `data-wui-tip` to the whole text, which the theme
5
+ * draws as a tooltip on hover and keyboard focus, and makes itself focusable so a keyboard user
6
+ * can reach it. Text that fits gets neither. It re-measures when the box resizes or the text
7
+ * changes, and on hover.
8
+ */
9
+ import { ElementBase } from "./elementBase.ts";
10
+ export declare class WuiTruncate extends ElementBase {
11
+ _measure: () => void;
12
+ _resize: ResizeObserver | null;
13
+ _mutation: MutationObserver | null;
14
+ _ownTabindex: boolean;
15
+ constructor();
16
+ connectedCallback(): void;
17
+ disconnectedCallback(): void;
18
+ measure(): void;
19
+ }
@@ -0,0 +1,36 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ export declare const WHATS_NEW_READ_EVENT = "wui-whats-new-read";
3
+ export declare class WuiWhatsNew extends ElementBase {
4
+ _doc: Document | null;
5
+ _stored: string;
6
+ _observer: MutationObserver | null;
7
+ _onTriggerClick: () => void;
8
+ _onKeyDown: (e: KeyboardEvent) => void;
9
+ _onPointerDown: (e: PointerEvent) => void;
10
+ static get observedAttributes(): string[];
11
+ constructor();
12
+ get isOpen(): boolean;
13
+ get _trigger(): HTMLElement | null;
14
+ get _panel(): HTMLElement | null;
15
+ get _dot(): HTMLElement | null;
16
+ connectedCallback(): void;
17
+ disconnectedCallback(): void;
18
+ attributeChangedCallback(name: string, oldValue: string | null, newValue: string | null): void;
19
+ open(): void;
20
+ close(returnFocus: boolean): void;
21
+ _place(): void;
22
+ _entries(): {
23
+ entry: HTMLElement;
24
+ date: string;
25
+ }[];
26
+ _newest(): string;
27
+ _seenPoint(): string;
28
+ _refresh(): void;
29
+ _markRead(): void;
30
+ _storage(): {
31
+ store: Storage;
32
+ key: string;
33
+ } | null;
34
+ _load(): string;
35
+ _save(date: string): void;
36
+ }
@@ -0,0 +1,78 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ import { type StepStatus } from "./stepperHeader.ts";
3
+ type BeforeNext = (index: number) => boolean | Promise<boolean>;
4
+ type FocusKey = {
5
+ attr: string;
6
+ value: string | null;
7
+ };
8
+ export declare class WuiWizard extends ElementBase {
9
+ _active: number;
10
+ _skipped: Set<number>;
11
+ _invalid: Set<number>;
12
+ _finished: boolean;
13
+ _rendered: boolean;
14
+ _reflecting: boolean;
15
+ _beforeNext: BeforeNext | null;
16
+ _header: HTMLElement;
17
+ _footer: HTMLElement;
18
+ _chromeInserted: boolean;
19
+ _topBar: HTMLElement | null;
20
+ _onTopBarClick: (e: MouseEvent) => void;
21
+ _onHeaderClick?: (e: MouseEvent) => void;
22
+ _onFooterClick?: (e: MouseEvent) => void;
23
+ _known: HTMLElement[];
24
+ _observer: MutationObserver | null;
25
+ _glyphs: Element | null;
26
+ _glyphObserver: MutationObserver | null;
27
+ static get observedAttributes(): string[];
28
+ constructor();
29
+ get active(): number;
30
+ set active(v: string | number);
31
+ /** A gate run before advancing on Next: `(index) => boolean | Promise<boolean>`. */
32
+ get beforeNext(): BeforeNext | null;
33
+ set beforeNext(fn: BeforeNext | null | undefined);
34
+ /**
35
+ * The `<wui-wizard-step>` panels, in order. Underscore-prefixed (internal): a public
36
+ * getter-only accessor would throw if React ever set `steps` as an element property, so
37
+ * the step set is exposed only as the `steps` React prop / `<app-wizard-step>` children.
38
+ */
39
+ get _steps(): HTMLElement[];
40
+ /** Rebuild the header + footer without moving panels, for a changed step set. */
41
+ refresh(): void;
42
+ connectedCallback(): void;
43
+ disconnectedCallback(): void;
44
+ attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
45
+ render(): void;
46
+ _renderChrome(): void;
47
+ /** The attribute and value naming the chrome control that holds focus, so a redraw can hand focus back. */
48
+ _focusedControl(): FocusKey | null;
49
+ _restoreFocus(focused: FocusKey | null): void;
50
+ _syncTopBar(steps: HTMLElement[]): void;
51
+ _clampActive(steps: HTMLElement[]): void;
52
+ /**
53
+ * Bring the index-keyed state (active, skipped, invalid) onto the live step set by element
54
+ * identity. A no-op when the set is unchanged since the last render. Returns the live steps.
55
+ */
56
+ _reconcileSteps(): HTMLElement[];
57
+ _placeChrome(steps: HTMLElement[]): void;
58
+ _onStepsMutated(): void;
59
+ _syncPanels(steps: HTMLElement[]): void;
60
+ _stepStatus(step: Element | undefined, i: number): StepStatus;
61
+ _headerHtml(steps: HTMLElement[]): string;
62
+ _footerHtml(steps: HTMLElement[]): string;
63
+ _wire(): void;
64
+ /** The wrapper's pre-styled glyph for `name`, else the linear one. */
65
+ _glyph(name: string): string;
66
+ _watchGlyphs(): void;
67
+ _renderHeader(): void;
68
+ _teardown(): void;
69
+ _stepTo(index: number): void;
70
+ _back(): void;
71
+ _next(): Promise<void>;
72
+ _skip(): void;
73
+ _flagInvalid(i: number): void;
74
+ _finish(): void;
75
+ _go(index: number, reason: string): void;
76
+ _reflectActive(index: number): void;
77
+ }
78
+ export {};
@@ -0,0 +1,5 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ export declare class WuiWizardStep extends ElementBase {
3
+ static get observedAttributes(): string[];
4
+ attributeChangedCallback(): void;
5
+ }
@@ -0,0 +1,75 @@
1
+ export interface ReanchorHost {
2
+ _reanchor?: (() => void) | null;
3
+ _reanchorScroll?: ((e: Event) => void) | null;
4
+ }
5
+ export type ReanchoredElement = {
6
+ _reanchor: () => void;
7
+ };
8
+ /**
9
+ * Anchor `panel` to `trigger`, flipping above it when there is not enough room below.
10
+ *
11
+ * @param trigger the control the panel belongs to
12
+ * @param panel the floating panel, already visible so it can be measured
13
+ * @param opts `matchWidth`, `clampHeight`, `alignEnd`, `below` and `beside`, each optional and false by default.
14
+ * `below` never flips above, for a panel pinned open by an attribute: whether it flips depends on
15
+ * the viewport at upgrade time, so the same markup would open differently on each page.
16
+ * `matchWidth` ties the panel to the trigger's width: right for a menu that reads as part of
17
+ * its control, wrong for a calendar with its own natural size. This is a MINIMUM, not a lock:
18
+ * the panel is at least as wide as the trigger but grows to fit its content, so a narrow
19
+ * control can't force long option labels to wrap (capped to the viewport). A wide-enough
20
+ * control still gets an exactly-flush menu.
21
+ *
22
+ * `clampHeight` caps the panel to whichever side (above/below) the flip above picked, so a
23
+ * panel taller than that side's room shrinks to fit and scrolls internally instead of running
24
+ * past the fold unreachable (see the module doc). Opt-in: a panel that already owns an inner
25
+ * scroll region for its variable-length content (an options list inside a fixed-height shell)
26
+ * would otherwise get its OUTER box clamped too, clipping that inner list instead of the
27
+ * outer box growing to fit it, a regression for a shape this flag isn't meant to touch. Use
28
+ * it only where the panel's own top-level box is the thing that needs to fit and scroll,
29
+ * e.g. a full calendar grid with no inner scroll container.
30
+ *
31
+ * `alignEnd` lines the panel's right edge up with the trigger's right edge instead of its left
32
+ * edge: right for a panel opened by a control at the end of a row, such as a filter button. When
33
+ * the panel doesn't fit to the left of the trigger's end, it aligns to the trigger's start instead.
34
+ * The left edge stays 8 px or more from the viewport's left edge even when the panel is wider than
35
+ * the viewport.
36
+ *
37
+ * `beside` places the panel to the right of the trigger, top-aligned with it, and flips it to the
38
+ * left when the right side would overflow. It keeps the panel inside the viewport vertically and
39
+ * sets `data-side` to "end" or "start" for the side it chose. For a submenu opened from its row.
40
+ */
41
+ export declare function anchorOverlay(trigger: Pick<HTMLElement, "getBoundingClientRect"> | null, panel: HTMLElement | null, opts?: {
42
+ matchWidth?: boolean;
43
+ clampHeight?: boolean;
44
+ alignEnd?: boolean;
45
+ below?: boolean;
46
+ beside?: boolean;
47
+ }): void;
48
+ /**
49
+ * Keep an open panel anchored while the page moves under it.
50
+ *
51
+ * A fixed panel is positioned once, at open, against coordinates that stop being true the
52
+ * moment anything scrolls or the window resizes — so it detaches from its control and floats
53
+ * over unrelated content. `scroll` is listened for in the CAPTURE phase because scroll does
54
+ * not bubble: a control inside a scrolling table or modal body would otherwise never be told.
55
+ *
56
+ * Here rather than in each element for the same reason `anchorOverlay` is: four copies of a
57
+ * rule is four chances to diverge. The specific trap is that `removeEventListener` only
58
+ * matches when the capture flag matches — pass `true` on add and forget it on remove and the
59
+ * listener silently survives, so every re-wire stacks another one onto a global event.
60
+ *
61
+ * Capture also sees scroll events the panel dispatches on ITSELF (its own clampHeight
62
+ * calendar, an option list), because capture walks every descendant regardless of bubbling.
63
+ * Repositioning against one of those recomputes the same (unchanged) trigger rect while
64
+ * fighting the gesture that produced it, and for a clampHeight panel it re-measures with
65
+ * `style.maxHeight` momentarily cleared, which resets `scrollTop` to 0 on every tick: the
66
+ * panel LOOKS scrollable but every scroll snaps back. Skip reposition when the host is in the
67
+ * scroll's event path; only a scroll OUTSIDE it (the page, a modal body, a scrolling table)
68
+ * means the trigger itself may have moved.
69
+ *
70
+ * @param host the custom element, which owns the handler for its lifetime
71
+ * @param reposition called on scroll/resize; decides for itself whether it is open
72
+ */
73
+ export declare function bindReanchor(host: ReanchorHost & EventTarget, reposition: () => void): void;
74
+ /** Release what {@link bindReanchor} added. Safe to call when nothing is bound. */
75
+ export declare function unbindReanchor(host: (ReanchorHost & EventTarget) | null | undefined): void;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * An image URL is option DATA (it can come from an API), so only a web or root-relative URL,
3
+ * or an inline raster image, may reach `src`. Anything else renders the initials alone.
4
+ */
5
+ export declare const safeImageUrl: (url: unknown) => string;
6
+ /** The avatar face for an option, or "" when it has neither a usable photo nor initials. */
7
+ export declare const avatarHtml: (o: {
8
+ avatar?: unknown;
9
+ initials?: string | null;
10
+ }, sizeClass?: string) => string;
@@ -0,0 +1,47 @@
1
+ /** Phone cameras save HEIC; the browser decides whether it can open one (see avatarUnreadableMessage). */
2
+ export declare const AVATAR_ACCEPT = "image/jpeg,image/png,image/webp,image/heic,image/heif,.heic,.heif";
3
+ /** The limit on the photo the person CHOOSES; the saved crop is far smaller. */
4
+ export declare const AVATAR_MAX_SIZE_MB = 10;
5
+ /** Width and height of the saved square, in px. */
6
+ export declare const AVATAR_OUTPUT_SIZE = 512;
7
+ /** Asked of the canvas; a browser that cannot encode WebP hands back PNG, and the file is named for it. */
8
+ export declare const AVATAR_OUTPUT_TYPE = "image/webp";
9
+ /** The two live previews in the crop dialog, in px. */
10
+ export declare const AVATAR_PREVIEW_SIZES: number[];
11
+ export declare const AVATAR_TEXT: {
12
+ dialogTitle: string;
13
+ dialogSubtitle: string;
14
+ save: string;
15
+ cancel: string;
16
+ choose: string;
17
+ change: string;
18
+ camera: string;
19
+ remove: string;
20
+ unreadable: string;
21
+ heicUnreadable: string;
22
+ cropFailed: string;
23
+ };
24
+ /** Is this a HEIC/HEIF photo? Windows reports an empty type for one, so the name decides then. */
25
+ export declare function isHeicFile(file: {
26
+ name?: string;
27
+ type?: string;
28
+ } | null): boolean;
29
+ /** What to say when the crop element cannot decode the chosen photo. */
30
+ export declare function avatarUnreadableMessage(file: {
31
+ name?: string;
32
+ type?: string;
33
+ } | null): string;
34
+ /**
35
+ * The options both pickers pass to <wui-image-crop>.toFile(): the original's name, WebP, and the
36
+ * exact square size. A size that is not a positive whole number takes the default.
37
+ *
38
+ * @param file the original photo, or null
39
+ * @param outputSize the square size in px
40
+ */
41
+ export declare function avatarCropOptions(file: {
42
+ name?: string;
43
+ } | null, outputSize?: number): {
44
+ name: string;
45
+ type: string;
46
+ size: number;
47
+ };
@@ -0,0 +1,8 @@
1
+ export declare const APP_BUTTON_MARKER: string;
2
+ /**
3
+ * @param tone an AppButton tone; an unknown one throws, because it is a library bug.
4
+ * @param variant an AppButton variant; an unknown one throws, because it is a library bug.
5
+ * @param size
6
+ * @returns e.g. "btn btn-ghost-primary btn-sm"
7
+ */
8
+ export declare function buttonClass(tone?: string, variant?: string, size?: "sm" | "md" | "lg"): string;
@@ -0,0 +1,3 @@
1
+ import { WuiCalendar } from "./WuiCalendar.ts";
2
+ export { CALENDAR_TONES, CALENDAR_VIEWS } from "./calendarModel.ts";
3
+ export { WuiCalendar };
@@ -0,0 +1,68 @@
1
+ import type { normalizeEvents } from "./calendarModel.ts";
2
+ export type ViewName = "month" | "week" | "day" | "list";
3
+ type NormalizedEvent = ReturnType<typeof normalizeEvents>[number];
4
+ interface RangeState {
5
+ view: ViewName;
6
+ title: string;
7
+ start: string;
8
+ end: string;
9
+ date: string;
10
+ }
11
+ interface MountOptions {
12
+ view: ViewName;
13
+ date?: string;
14
+ timeZone?: string;
15
+ firstDay: number;
16
+ emptyText: string;
17
+ fetchEvents: (range: {
18
+ start: string;
19
+ end: string;
20
+ view: ViewName;
21
+ }) => Promise<NormalizedEvent[]>;
22
+ onEventClick: (event: NormalizedEvent, native: MouseEvent | KeyboardEvent) => boolean;
23
+ navigate?: (url: string) => void;
24
+ onDateClick: (info: {
25
+ date: string;
26
+ time: string | null;
27
+ allDay: boolean;
28
+ }) => void;
29
+ onRange: (state: RangeState) => void;
30
+ onLoading: (loading: boolean) => void;
31
+ }
32
+ export interface CalendarEngine {
33
+ setView(view: ViewName): void;
34
+ gotoDate(day: string): void;
35
+ next(): void;
36
+ prev(): void;
37
+ today(): void;
38
+ refetch(): void;
39
+ setFirstDay(day: number): void;
40
+ setTimeZone(timeZone: string): void;
41
+ resize(): void;
42
+ state(): RangeState | null;
43
+ hasDay(day: string): boolean;
44
+ setCursor(day: string | undefined): boolean;
45
+ labelDays(label: (day: string) => string, fallback: string): void;
46
+ focusDay(day: string): boolean;
47
+ dispose(): void;
48
+ }
49
+ export declare const isViewName: (value: string | undefined) => value is ViewName;
50
+ /**
51
+ * Draw a calendar in `container`.
52
+ *
53
+ * @param container Where the calendar goes.
54
+ * @param options
55
+ * @param options.view The first view.
56
+ * @param options.date The day to open on (`YYYY-MM-DD` in that zone); today when omitted.
57
+ * @param options.timeZone IANA zone the dates of the calendar are in; India Standard Time when omitted.
58
+ * @param options.firstDay The weekday a week starts on, 0 = Sunday to 6 = Saturday.
59
+ * @param options.emptyText What a list of no events says.
60
+ * @param options.fetchEvents Normalized events for the range (days; `end` is the first day not shown) and the view it is shown in.
61
+ * @param options.onEventClick Return true to stop the event's own link.
62
+ * @param options.navigate Called to open the link of a stacked event; defaults to window.location.assign.
63
+ * @param options.onDateClick
64
+ * @param options.onRange The visible period changed.
65
+ * @param options.onLoading
66
+ */
67
+ export declare function mountCalendar(container: HTMLElement, options: MountOptions): CalendarEngine;
68
+ export {};
@@ -0,0 +1,40 @@
1
+ export declare const MONTHS: string[];
2
+ export declare const WEEKDAYS: string[];
3
+ /**
4
+ * The weekday a calendar's week starts on, 0 = Sunday to 6 = Saturday: the element's own
5
+ * `first-day` attribute, else the theme's `--wui-first-day` token (inherited, so a product, a
6
+ * page or a section sets it once), else Monday.
7
+ */
8
+ export declare const firstWeekday: (el: Element) => number;
9
+ /** Pad a number to two digits for use in ISO date strings. */
10
+ export declare const pad: (n: number) => string;
11
+ /** Format a date as an ISO 8601 yyyy-mm-dd string. */
12
+ export declare const toIso: (y: number, m: number, d: number) => string;
13
+ /**
14
+ * Parse an ISO 8601 yyyy-mm-dd string into { y, m, d }.
15
+ * Month is 0-indexed (0 = January).
16
+ * Returns null if the string is invalid or falsy.
17
+ */
18
+ export declare const parseIso: (s: string | null | undefined) => {
19
+ y: number;
20
+ m: number;
21
+ d: number;
22
+ } | null;
23
+ export declare const DISPLAY_FORMAT = "dd-MMM-yyyy";
24
+ /**
25
+ * Format an ISO date string as a human-readable label. `format` is built from the tokens
26
+ * yyyy, MMMM, MMM, MM, dd and d; anything else is kept as written. The default is the Webority
27
+ * date format "dd-MMM-yyyy" (e.g., "04-Aug-2026").
28
+ * Returns an empty string if the ISO string is invalid.
29
+ */
30
+ export declare const fmt: (iso: string | null | undefined, format?: string | null) => string;
31
+ /** Return the number of days in the given (y, m) pair. Month is 0-indexed. */
32
+ export declare const daysIn: (y: number, m: number) => number;
33
+ /**
34
+ * Normalize an out-of-range month back into a valid (y, m) pair.
35
+ * Months < 0 roll back into the previous year(s); months > 11 roll forward.
36
+ */
37
+ export declare const clampMonth: (y: number, m: number) => {
38
+ y: number;
39
+ m: number;
40
+ };
@@ -0,0 +1,78 @@
1
+ export declare const CALENDAR_VIEWS: string[];
2
+ export declare const CALENDAR_TONES: string[];
3
+ /** Below this width of the element itself, a calendar that was given no view opens as a list. */
4
+ export declare const NARROW_PX = 576;
5
+ /**
6
+ * A date or date-time as a wall-clock string in `timeZone`: `YYYY-MM-DD` for a day, `YYYY-MM-DDTHH:mm:ss`
7
+ * for a moment. Takes those two forms, an ISO instant (`Z` or an offset) and epoch milliseconds.
8
+ * A day and a date-time with no offset are already wall-clock times and come back as written. Returns
9
+ * null for anything else.
10
+ */
11
+ export declare function toWallClock(value: unknown, timeZone?: string): string | null;
12
+ /** Whether `value` is a real `YYYY-MM-DD` day. */
13
+ export declare const isIsoDate: (value: unknown) => boolean;
14
+ /** The day `days` after `iso` (before, when negative). */
15
+ export declare const addDays: (iso: string, days: number) => string;
16
+ /** The same day-of-month `months` later, held to the last day of a shorter month. */
17
+ export declare function addMonths(iso: string, months: number): string;
18
+ /** The first day of the week holding `iso`, for weeks that start on `firstDay` (0 = Sunday, 1 = Monday). */
19
+ export declare function weekStart(iso: string, firstDay?: number): string;
20
+ /** `Sunday, 4 October 2026`, for a screen reader. */
21
+ export declare function longDate(iso: string): string;
22
+ /** `10:30 am` from `HH:mm` or `HH:mm:ss`. */
23
+ export declare function clockTime(time: string): string;
24
+ /**
25
+ * The day a key moves to from `iso` in `view`, or null when the key does nothing there. Arrows
26
+ * step a day (a week up or down in the month), Home and End go to the first and last day of the
27
+ * week (weeks start on `firstDay`, 0 = Sunday, 1 = Monday), Page Up and Page Down to the previous
28
+ * and next month (week, in a week view; day, in a day view).
29
+ */
30
+ export declare function stepDate(iso: string, key: string, view: string | null, firstDay?: number): string | null;
31
+ /** The keys `stepDate` can answer for. */
32
+ export declare const STEP_KEYS: string[];
33
+ /**
34
+ * The URL an events endpoint is asked: `start` and `end` as `YYYY-MM-DD` days in the calendar's zone, `end` being the
35
+ * first day not shown (the same convention as a half-open range), and, when given, `view` (month,
36
+ * week, day or list). Existing query parameters stay.
37
+ */
38
+ export declare function eventsUrl(base: string, start: string, end: string, view?: string): string;
39
+ /** Only web and mail links, and relative ones, become an event's link. */
40
+ export declare function isSafeUrl(value: unknown): value is string;
41
+ /** Warn once when `value` is outside `allowed`; nullish means omitted and passes. */
42
+ export declare function checkValue(name: string, value: unknown, allowed: readonly unknown[]): void;
43
+ export interface CalendarStack {
44
+ count: number;
45
+ url: string;
46
+ label: string;
47
+ }
48
+ export type CalendarWireEvent = Record<string, unknown>;
49
+ export interface CalendarEvent {
50
+ id: string | null;
51
+ title: string;
52
+ start: string;
53
+ end: string | null;
54
+ allDay: boolean;
55
+ tone: string;
56
+ url: string | null;
57
+ stack: CalendarStack | null;
58
+ raw: CalendarWireEvent;
59
+ }
60
+ export type NormalizeEventResult = {
61
+ event: CalendarEvent;
62
+ problem?: undefined;
63
+ } | {
64
+ event?: undefined;
65
+ problem: string;
66
+ };
67
+ /**
68
+ * One wire event ({ id, title, start, end, allDay, tone, url, stack }) in the form the calendar draws:
69
+ * dates as wall-clock strings in `timeZone`, `raw` being the event exactly as it was given (it comes back in
70
+ * the click event). Returns { event } or { problem } (a sentence naming what is wrong).
71
+ */
72
+ export declare function normalizeEvent(raw: unknown, timeZone?: string): NormalizeEventResult;
73
+ /** Normalize a list of wire events, reporting each one that cannot be drawn and drawing the rest. */
74
+ export declare function normalizeEvents(list: unknown, timeZone?: string): CalendarEvent[];
75
+ /** The label a screen reader hears for an event. */
76
+ export declare function eventLabel(event: CalendarEvent): string;
77
+ /** The detail of `wui-calendar:event-click`: the event as it was given. */
78
+ export declare const eventDetail: (event: CalendarEvent) => CalendarWireEvent;
@@ -0,0 +1,4 @@
1
+ import { WuiChart } from "./WuiChart.ts";
2
+ export { CHART_STATES, CHART_TYPES, CHART_VIEWS, MAX_SERIES, MAX_SLICES, normalizeSpec, RENDERERS, STACK_MODES, X_KINDS, } from "./chartSpec.ts";
3
+ export { formatValue } from "./formatters.ts";
4
+ export { WuiChart };