@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,33 @@
1
+ /** Id of the shared confirm dialog. */
2
+ export declare const CONFIRM_DIALOG_ID: string;
3
+ /** Every value data-wui-confirm-tone takes; absent is a plain confirmation. */
4
+ export declare const CONFIRM_TONES: readonly string[];
5
+ /** Every value data-wui-flash-variant takes. */
6
+ export declare const FLASH_VARIANTS: readonly ["success", "info", "warning", "danger"];
7
+ type ToastVariant = (typeof FLASH_VARIANTS)[number];
8
+ export declare const isToastVariant: (value: string) => value is ToastVariant;
9
+ /** Where a toast waits across the reload or redirect of data-wui-post. */
10
+ export declare const FLASH_STORAGE_KEY: string;
11
+ /** The words the behaviours say on their own. */
12
+ export declare const SERVER_ACTION_TEXT: Readonly<{
13
+ confirmTitle: string;
14
+ confirmLabel: string;
15
+ cancelLabel: string;
16
+ failed: string;
17
+ forbidden: string;
18
+ network: string;
19
+ }>;
20
+ /**
21
+ * Ask in the shared confirm dialog from script, and on Confirm run `proceed` with `trigger` let
22
+ * through: a click on it, or a submit of it, that `proceed` makes does not ask its own
23
+ * data-wui-confirm question a second time.
24
+ *
25
+ * @param trigger the link, button or form the person acted on
26
+ * @param options the dialog's words, and the tone when the action is dangerous
27
+ * @param proceed runs once the person confirms
28
+ */
29
+ export declare function confirmAction(trigger: Element, options: unknown, proceed: () => void): void;
30
+ export declare function storeFlash(message: string | null | undefined, variant: string): void;
31
+ /** Wire the delegated confirm and post listeners once per document, and toast every flash under `root`. */
32
+ export declare function initServerActions(root?: Document | Element): void;
33
+ export {};
@@ -0,0 +1,48 @@
1
+ import { type WuiResult } from "./wuiHttp.ts";
2
+ /** Typing pause before a search box refetches. */
3
+ export declare const SEARCH_DEBOUNCE_MS: number;
4
+ /** What the table says when the page gives it nothing more specific. */
5
+ export declare const SERVER_TABLE_TEXT: Readonly<{
6
+ loading: string;
7
+ error: string;
8
+ network: string;
9
+ forbidden: string;
10
+ retry: string;
11
+ actionFailed: string;
12
+ actionForbidden: string;
13
+ empty: string;
14
+ }>;
15
+ /** A value a query param takes; null, undefined and "" remove the param. */
16
+ export type QueryValue = string | number | null | undefined;
17
+ /** The params `setQuery` replaces; an array repeats its param. */
18
+ export type QueryPatch = Record<string, QueryValue | QueryValue[]>;
19
+ export interface SaveRowOptions {
20
+ url?: string;
21
+ method?: string;
22
+ body?: BodyInit;
23
+ key?: string | number | null;
24
+ row?: HTMLTableRowElement | string;
25
+ }
26
+ export interface ReloadOptions {
27
+ quiet?: boolean;
28
+ }
29
+ export interface ServerTableSelection {
30
+ keys(): (string | undefined)[];
31
+ count(): number;
32
+ allMatching(): boolean;
33
+ selectAllMatching(): void;
34
+ clear(): void;
35
+ }
36
+ export interface ServerTableHandle {
37
+ el: HTMLElement;
38
+ reload(options?: ReloadOptions): Promise<WuiResult | null>;
39
+ query(): URLSearchParams;
40
+ setQuery(patch?: QueryPatch): Promise<WuiResult>;
41
+ saveRow(options?: SaveRowOptions): Promise<boolean>;
42
+ setActiveRow(key: string | null | undefined): void;
43
+ selection: ServerTableSelection;
44
+ }
45
+ /** Wire every server-paged table under `root`. */
46
+ export declare function initServerTables(root?: Document | Element): void;
47
+ /** The handle of the server table `el` belongs to, or null. */
48
+ export declare function getServerTable(el: Node | null | undefined): ServerTableHandle | null;
@@ -0,0 +1,24 @@
1
+ /** A count above this shows as "99+" (UnreadCap in AppShellNotificationsTagHelper.cs). */
2
+ export declare const UNREAD_CAP: number;
3
+ /** One year, in seconds: how long the remembered rail state lasts. */
4
+ export declare const COLLAPSED_COOKIE_MAX_AGE: number;
5
+ export interface ShellHandle {
6
+ el: HTMLElement;
7
+ setUnread(n: number): void;
8
+ refreshNotifications(): Promise<void>;
9
+ collapsed: boolean;
10
+ }
11
+ /**
12
+ * Write the remembered rail state the server reads on the next request ("1" collapsed, "0" expanded).
13
+ * A sandboxed frame without allow-same-origin throws SecurityError on cookie access; it remembers nothing.
14
+ */
15
+ export declare function writeCollapsedCookie(name: string, collapsed: boolean, doc?: Pick<Document, "cookie">): void;
16
+ /**
17
+ * Add or remove one folded nav group key in the cookie the server reads on the first paint. The value is
18
+ * the folded keys joined by "." (keys are lower-case letters, digits and hyphens, so "." cannot clash).
19
+ */
20
+ export declare function writeFoldedCookie(name: string, key: string | undefined, folded: boolean, doc?: Pick<Document, "cookie">): void;
21
+ /** Wire the shell parts under `root`. */
22
+ export declare function initShellParts(root?: ParentNode): void;
23
+ /** The handle of the shell `el` belongs to, or null. */
24
+ export declare function getShell(el: Element | null): ShellHandle | null;
@@ -0,0 +1,7 @@
1
+ import { type WuiResult, type WuiToastAction } from "./wuiHttp.ts";
2
+ export declare const TOAST_ACTION_MS: number;
3
+ export declare function wuiHost(): WuiHost;
4
+ /** Toasts a settled answer's message, with its action button when it carries one. */
5
+ export declare function showResultToast(result: WuiResult | null | undefined, variant?: string): void;
6
+ /** Posts the action and settles it: its answer toasts (and may carry an action of its own), and the tables reload. */
7
+ export declare function runToastAction(action: WuiToastAction): Promise<void>;
@@ -0,0 +1,8 @@
1
+ export interface ToastActionHeader {
2
+ label: string;
3
+ url: string;
4
+ method: string;
5
+ }
6
+ export declare const TOAST_ACTION_METHODS: readonly string[];
7
+ /** Reads the header's JSON. A value that is not a usable action is warned about and ignored. */
8
+ export declare function parseToastAction(raw: string | null | undefined): ToastActionHeader | null;
@@ -0,0 +1,17 @@
1
+ /** The words the guard says on its own. */
2
+ export declare const UNSAVED_TEXT: Readonly<{
3
+ title: string;
4
+ message: string;
5
+ leaveLabel: string;
6
+ }>;
7
+ export declare function formValues(form: HTMLFormElement): string;
8
+ /**
9
+ * The starting values `base` with every field that joined the form since they were taken added at its
10
+ * current value. A field `base` already holds keeps its starting value, so an edit made meanwhile
11
+ * still counts.
12
+ */
13
+ export declare function withAddedFields(form: HTMLFormElement, base: string): string;
14
+ /** Take the starting values of every guarded form under `root`, and wire the guard once per document. */
15
+ export declare function initUnsavedChanges(root?: Document | Element): void;
16
+ /** The guarded form's current values count as saved: for a page that saves the form by its own fetch. */
17
+ export declare function resetUnsavedChanges(form: HTMLElement | null): void;
@@ -0,0 +1,86 @@
1
+ /** Name of the meta tag `<app-csrf-meta />` renders. */
2
+ export declare const CSRF_META_NAME = "wui-csrf";
3
+ /** Header the token travels in when the meta tag names none. */
4
+ export declare const DEFAULT_CSRF_HEADER = "RequestVerificationToken";
5
+ export interface CsrfNames {
6
+ metaName: string;
7
+ header: string;
8
+ }
9
+ /**
10
+ * Sets the names the antiforgery token travels under, for a host whose layout renders its own meta tag or whose
11
+ * antiforgery header is not the default. Call before the first request; no argument restores the defaults.
12
+ */
13
+ export declare function configureCsrf({ metaName, header }?: Partial<CsrfNames>): void;
14
+ /** Request header naming every request this layer sends; the server side is `WuiRequest.Header`. */
15
+ export declare const WUI_REQUEST_HEADER = "Wui-Request";
16
+ /** Response headers of the fragment contract. */
17
+ export declare const WUI_HEADERS: Readonly<{
18
+ fragment: string;
19
+ message: string;
20
+ redirect: string;
21
+ result: string;
22
+ keepOpen: string;
23
+ toastVariant: string;
24
+ toastAction: string;
25
+ data: string;
26
+ next: string;
27
+ }>;
28
+ /**
29
+ * Every `kind` a request settles as.
30
+ * ok: 2xx. validation: 422 (the form re-rendered with its errors). forbidden: 403.
31
+ * client: any other 4xx. server: 5xx. network: no answer at all. aborted: the caller (or a newer
32
+ * request on the same queue) cancelled it. stale: answered, but a newer request on the same queue
33
+ * started meanwhile. session: the sign-in expired and the browser is being sent to sign in.
34
+ */
35
+ export type HttpKind = "ok" | "validation" | "forbidden" | "client" | "server" | "network" | "aborted" | "stale" | "session";
36
+ export declare const HTTP_KINDS: readonly HttpKind[];
37
+ export interface WuiToastAction {
38
+ label: string;
39
+ url: string;
40
+ method: string;
41
+ }
42
+ export interface WuiFetchOptions {
43
+ method?: string;
44
+ body?: BodyInit;
45
+ headers?: Record<string, string>;
46
+ signal?: AbortSignal;
47
+ /** Replaces the session-expiry navigation (tests, or a host that wants to show a "signed out" notice first). */
48
+ navigate?: (url: string) => void;
49
+ }
50
+ export interface WuiResult {
51
+ kind: HttpKind;
52
+ ok: boolean;
53
+ status: number;
54
+ html: string;
55
+ response: Response | null;
56
+ message: string | null;
57
+ redirect: string | null;
58
+ result: string | null;
59
+ keepOpen: boolean;
60
+ toastVariant: string | null;
61
+ toastAction: WuiToastAction | null;
62
+ fragment: boolean;
63
+ data: unknown;
64
+ next: string | null;
65
+ }
66
+ export interface RequestQueue {
67
+ run(url: string, options?: WuiFetchOptions): Promise<WuiResult>;
68
+ abort(): void;
69
+ }
70
+ /** The antiforgery token from the configured meta tag (default meta name wui-csrf), or null when the page has none. */
71
+ export declare function readCsrf(doc?: Document): {
72
+ header: string;
73
+ token: string;
74
+ } | null;
75
+ /** Classify a status code. Exported so a caller holding a raw Response applies the same rule. */
76
+ export declare function classifyStatus(status: number): HttpKind;
77
+ /**
78
+ * Fetch `url` and settle as a classified result; never rejects for an HTTP or network failure; it rejects with a TypeError when an answer's Wui-Data header is not JSON (a server defect).
79
+ */
80
+ export declare function wuiFetch(url: string, options?: WuiFetchOptions): Promise<WuiResult>;
81
+ /**
82
+ * A "latest wins" lane for one control (a table, a search box, a modal): each `run` aborts the
83
+ * request before it, and an answer that lands after a newer request started settles as `stale`
84
+ * so a slow old page can never overwrite a newer one.
85
+ */
86
+ export declare function createRequestQueue(): RequestQueue;
@@ -0,0 +1,59 @@
1
+ /** `<html data-wui-shortcuts="off">` turns every single-key shortcut off (a person's setting). */
2
+ export declare const SHORTCUTS_OFF_ATTRIBUTE = "data-wui-shortcuts";
3
+ /** Marks the element a set of shortcuts belongs to (a split view, a queue page's list). */
4
+ export declare const SHORTCUT_SCOPE_ATTRIBUTE = "data-shortcut-scope";
5
+ /** Raised (bubbling, cancelable) by <wui-shortcuts> for a listed key it has no built-in action for. */
6
+ export declare const SHORTCUT_EVENT = "wui:shortcut";
7
+ export declare const SHORTCUT_TEXT: {
8
+ title: string;
9
+ close: string;
10
+ help: string;
11
+ };
12
+ /** The list keys J, K and Enter, as a legend lists them. */
13
+ export declare const LIST_KEYS: {
14
+ key: string;
15
+ label: string;
16
+ }[];
17
+ /** The X key of a list whose items carry a checkbox. */
18
+ export declare const SELECT_KEY: {
19
+ key: string;
20
+ label: string;
21
+ };
22
+ type KeyLike = Pick<KeyboardEvent, "key"> & Partial<Pick<KeyboardEvent, "ctrlKey" | "metaKey" | "altKey" | "shiftKey">>;
23
+ type HandlerMap = Record<string, ((event: KeyboardEvent) => void) | undefined>;
24
+ /**
25
+ * The name a keydown goes by in a handler map: `j`, `k`, `x` or any other single character in
26
+ * lower case, and `enter`, `slash`, `help` (`?`) and `esc`. Null for a key held with Ctrl, Cmd or
27
+ * Alt (those belong to the browser and the screen reader) and for keys with no name here.
28
+ */
29
+ export declare function shortcutName(event: KeyLike | null | undefined): string | null;
30
+ /**
31
+ * How a key is written on its chip and in `data-shortcut`: one character in upper case, or
32
+ * `Enter`, `Esc`, `/` and `?` for their names. Anything longer (`Shift A`) is kept as written.
33
+ */
34
+ export declare function shortcutKey(key: string | undefined): string;
35
+ /** The `aria-keyshortcuts` value for a chip's text: words joined with `+`, `Esc` as `Escape`. */
36
+ export declare function ariaKeyShortcuts(key: string | undefined): string;
37
+ /** A key pressed here is text, not a shortcut. A checkbox or a button keeps its shortcuts. */
38
+ export declare function isTypingTarget(node: Node | null | undefined): boolean;
39
+ /** True when the person has turned single-key shortcuts off for the page. */
40
+ export declare function shortcutsOff(doc?: Document | null | undefined): boolean;
41
+ /**
42
+ * Whether a key pressed on `target` belongs to `scope`: anything inside it does, and with focus on
43
+ * the page itself (nothing focused) the first scope on the page does. No scope takes every key.
44
+ */
45
+ export declare function inShortcutScope(target: Node | null | undefined, scope: Element | null): boolean;
46
+ /**
47
+ * Runs the handler a keydown names, from a map keyed by `shortcutName` (`{ j, k, enter, x, slash,
48
+ * help, esc, e }`). Skips a key already handled, a key typed into a field, a key outside `scope`,
49
+ * and Enter on a link or button (the browser opens those). Returns true when a handler ran; the
50
+ * key's default is then prevented.
51
+ */
52
+ export declare function runShortcut(event: KeyboardEvent, handlers: HandlerMap | null | undefined, scope?: Element | null): boolean;
53
+ /**
54
+ * Moves focus one step through `items` (J is +1, K is -1) and returns the item focused. It starts
55
+ * from the focused item (or the row holding the focused control), else the item marked
56
+ * `aria-current`, else the first or last; it stops at either end.
57
+ */
58
+ export declare function moveFocus(items: HTMLElement[], step: number): HTMLElement | null;
59
+ export {};
@@ -0,0 +1 @@
1
+ export declare const STATUS_IMAGES: Readonly<Record<string, string>>;
@@ -0,0 +1,12 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ export declare const STATUS_TONES: string[];
3
+ /**
4
+ * `<wui-status-icon tone="delete" size="104">` — decorative, aria-hidden. The dialog's
5
+ * title and message carry the meaning.
6
+ */
7
+ export declare class WuiStatusIcon extends ElementBase {
8
+ static get observedAttributes(): string[];
9
+ connectedCallback(): void;
10
+ attributeChangedCallback(): void;
11
+ render(): void;
12
+ }
@@ -0,0 +1,31 @@
1
+ export type StepStatus = "pending" | "active" | "done" | "error" | "skipped";
2
+ export type StepHeaderItem = {
3
+ index: number;
4
+ status: StepStatus;
5
+ className: string;
6
+ glyph: {
7
+ icon: string;
8
+ } | {
9
+ number: number;
10
+ };
11
+ current: boolean;
12
+ line: null | {
13
+ done: boolean;
14
+ };
15
+ };
16
+ /**
17
+ * Status from position: before active done, at active active, after pending; no active index means pending.
18
+ */
19
+ export declare function deriveStepStatus(index: number, active: number | null | undefined): StepStatus;
20
+ /**
21
+ * The header model both the stepper and the wizard draw: done check, error alert-triangle, skipped minus, else the step icon, else the number; className "step" or "step <status>"; a line after each step but the last when journey and connectors.
22
+ */
23
+ export declare function stepperHeaderItems(steps: {
24
+ label: string;
25
+ status?: StepStatus;
26
+ icon?: string;
27
+ }[], options: {
28
+ statusOf: (index: number) => StepStatus;
29
+ journey: boolean;
30
+ connectors: boolean;
31
+ }): StepHeaderItem[];
@@ -0,0 +1,3 @@
1
+ export declare const SUBMIT_ONCE_ATTRIBUTE = "data-wui-submit-once";
2
+ /** Blocks a second submit of a <form method="post"> while the first is in flight: marks the form data-wui-submit-pending, disables its submitter and shows it a spinner with aria-busy; skips forms with data-wui-submit-once="off" or target="_blank"; clears on pageshow. @param root */
3
+ export declare function initSubmitOnce(root: Document | Element): void;
@@ -0,0 +1,34 @@
1
+ export declare const SELECT_ALL_LABEL = "Select all rows";
2
+ export declare const SELECT_ROW_LABEL = "Select row";
3
+ export declare const SELECT_CELL_CLASS = "wui-select-cell";
4
+ /** `<th class="wui-select-cell">` holding the select-all box. */
5
+ export declare function createSelectHeaderCell(doc?: Document): HTMLTableCellElement;
6
+ /** `<td class="wui-select-cell">` holding one row's box, disabled when the row cannot be selected. */
7
+ export declare function createSelectRowCell(doc?: Document, { disabled }?: {
8
+ disabled?: boolean;
9
+ }): HTMLTableCellElement;
10
+ /** The empty `<td class="wui-select-cell">` a totals row gets. */
11
+ export declare function createSelectSpacerCell(doc?: Document): HTMLTableCellElement;
12
+ /** Give each body row that has none its leading select cell. Safe to call after every row swap. */
13
+ export declare function addRowSelectCells(rows: Iterable<HTMLTableRowElement>): void;
14
+ /**
15
+ * Insert the whole select column into `table` once: the header box, a box on every body row and a
16
+ * spacer on every footer row. Returns the select-all box, or null when the table has no header row.
17
+ */
18
+ export declare function addSelectColumn(table: HTMLTableElement): HTMLInputElement | null;
19
+ /**
20
+ * Bring the header box and the row highlight in step with the body boxes: checked when every row
21
+ * is, indeterminate when some are. Returns the counts on the rows in the table now.
22
+ */
23
+ export declare function syncSelectAll(table: HTMLTableElement): {
24
+ selected: number;
25
+ total: number;
26
+ };
27
+ /**
28
+ * Shift+click on a row box selects the range from the last row box clicked: every box between the
29
+ * two takes the state the clicked box just got. `onRange(boxes, checked)` receives the other boxes
30
+ * that changed (the clicked one raises its own `change`), for a table that keeps its selection
31
+ * outside the DOM. The anchor is forgotten once its row leaves the document, so a page swap never
32
+ * ranges across pages.
33
+ */
34
+ export declare function attachShiftRange(table: HTMLTableElement, onRange?: (boxes: HTMLInputElement[], checked: boolean) => void): void;
@@ -0,0 +1,9 @@
1
+ /**
2
+ * @param text The label to split.
3
+ * @param query What the user typed. Surrounding whitespace is ignored.
4
+ * @returns Runs in order; joined, they equal `text`.
5
+ */
6
+ export declare function matchSegments(text: string | null | undefined, query: string | null | undefined): {
7
+ text: string;
8
+ match: boolean;
9
+ }[];
@@ -0,0 +1,88 @@
1
+ export type ThemeMode = "light" | "dark" | "auto";
2
+ export type ThemeEffect = "wave" | "circle" | "slide" | "blinds" | "fade" | "none";
3
+ export type ResolvedTheme = "light" | "dark";
4
+ type Point = {
5
+ x: number;
6
+ y: number;
7
+ };
8
+ type KeyframeBox = {
9
+ width: number;
10
+ height: number;
11
+ to?: ResolvedTheme;
12
+ origin?: Point;
13
+ };
14
+ type ThemeKeyframe = {
15
+ clipPath: string;
16
+ opacity?: number;
17
+ };
18
+ export declare const THEME_MODES: readonly ThemeMode[];
19
+ /** The page-wide effects a switch can run. `none` switches instantly. */
20
+ export declare const THEME_EFFECTS: readonly ThemeEffect[];
21
+ export declare const DEFAULT_THEME_EFFECT: ThemeEffect;
22
+ export declare const DEFAULT_THEME_STORAGE_KEY = "theme";
23
+ /** How long each effect takes to cross the screen, in ms. A caller's `duration` overrides it. */
24
+ export declare const THEME_EFFECT_DURATION: Record<ThemeEffect, number>;
25
+ /** Set on <html> for the length of a switch; the theme CSS keys the transition rules on it. */
26
+ export declare const THEME_SWITCHING_CLASS = "wui-theme-switching";
27
+ /**
28
+ * Fired on `document` by applyTheme, with `{ mode, preference }`: `mode` is the theme the page
29
+ * shows (light or dark) and `preference` the choice behind it (light, dark or auto). Every toggle
30
+ * on a page follows one press through it, and a page that draws its own colours redraws on it.
31
+ */
32
+ export declare const THEME_CHANGE_EVENT = "wui:theme:change";
33
+ /** The theme the page actually shows for a mode: `auto` follows the system preference. */
34
+ export declare function resolveTheme(mode: string | undefined): ResolvedTheme;
35
+ /**
36
+ * The stored choice, or `auto` (follow the device) when nothing valid is stored. A control that
37
+ * offers only light and dark shows an `auto` as resolveTheme() reads it; the page stays on auto.
38
+ */
39
+ export declare function readStoredTheme(storageKey?: string): ThemeMode;
40
+ /** Remember a choice. Storage failures are swallowed: the page still switches for this visit. */
41
+ export declare function storeTheme(mode: ThemeMode, storageKey?: string): void;
42
+ /** Write the mode and its resolved theme onto <html>, which is where the design system reads them. */
43
+ export declare function applyTheme(mode: ThemeMode): void;
44
+ export declare const THEME_BOOT_SCRIPT_BODY: string;
45
+ /**
46
+ * The source of the inline `<head>` script that puts the stored theme on `<html>` before first
47
+ * paint: `data-theme` (light, dark, or auto when nothing is stored) and the resolved
48
+ * `data-bs-theme`, then follows device changes while on auto. Render it as the content of a
49
+ * `<script>` before any stylesheet; under a Content Security Policy give that script the page's
50
+ * nonce. The text is fixed for a given key, so a hash-based policy works too.
51
+ *
52
+ * @param storageKey The key the toggle stores the choice under.
53
+ * @returns JavaScript source, without the `<script>` tags.
54
+ */
55
+ export declare function themeBootScript(storageKey?: string): string;
56
+ /** The mode a press moves to: light to dark to (auto to) light. */
57
+ export declare function nextTheme(mode: string, { includeAuto }?: {
58
+ includeAuto?: boolean;
59
+ }): ThemeMode;
60
+ /**
61
+ * Re-apply an `auto` choice when the system preference changes while the page is open. Returns
62
+ * the function that stops listening.
63
+ */
64
+ export declare function watchSystemTheme(onChange: (theme: ResolvedTheme) => void): () => void;
65
+ /**
66
+ * The clip-path keyframes of one effect, from nothing of the new page showing to all of it.
67
+ * `to` is the resolved theme the page is moving to: dark comes up from the bottom and light
68
+ * comes down from the top, for the effects that have a direction. `origin` is where a circle
69
+ * starts, in viewport px; it defaults to the centre.
70
+ */
71
+ export declare function themeKeyframes(effect: ThemeEffect, { width, height, to, origin }: KeyframeBox): ThemeKeyframe[];
72
+ /**
73
+ * Run `apply` (the function that flips the page to the new theme) under the chosen effect.
74
+ * Resolves to true when it animated and false when it switched instantly.
75
+ *
76
+ * @param apply Writes the new theme to the page (applyTheme, store, your own state).
77
+ * @param options.effect One of THEME_EFFECTS.
78
+ * @param options.to The resolved theme being applied; decides the direction.
79
+ * @param options.origin Where a circle starts, in viewport px.
80
+ * @param options.duration Length in ms; defaults per effect (THEME_EFFECT_DURATION).
81
+ */
82
+ export declare function transitionTheme(apply: () => void, { effect, to, origin, duration, }?: {
83
+ effect?: ThemeEffect;
84
+ to?: ResolvedTheme;
85
+ origin?: Point;
86
+ duration?: number;
87
+ }): Promise<boolean>;
88
+ export {};
@@ -0,0 +1,20 @@
1
+ export type ToastVariant = "success" | "info" | "warning" | "danger";
2
+ export type ToastAnimation = "rise" | "organic" | "jelly" | "spring";
3
+ export type ToastShape = "rounded" | "pill" | "sharp";
4
+ export type ToastSurface = "auto" | "inverse";
5
+ export interface ToastOptions {
6
+ variant?: ToastVariant | null;
7
+ duration?: number;
8
+ delay?: number;
9
+ title?: string;
10
+ action?: {
11
+ label?: string;
12
+ onClick?: () => void;
13
+ };
14
+ id?: string;
15
+ html?: string;
16
+ animation?: ToastAnimation | null;
17
+ shape?: ToastShape | null;
18
+ surface?: ToastSurface | null;
19
+ progress?: number;
20
+ }
@@ -0,0 +1,13 @@
1
+ /** KeyboardEvent.key for a separator name, or undefined for an unknown name. */
2
+ export declare const separatorKey: (name: string) => string | undefined;
3
+ /** The character a separator name splits pasted text on, or undefined for an unknown name. */
4
+ export declare const separatorChar: (name: string) => string | undefined;
5
+ /**
6
+ * Split text on ANY of the given characters into trimmed, non-empty tokens. Text containing
7
+ * none of them comes back as a single token (or none, when it is blank).
8
+ *
9
+ * @param chars Single-character separators.
10
+ */
11
+ export declare function splitTokens(text: string | null | undefined, chars: string[]): string[];
12
+ /** Whether the text contains any of the separator characters. */
13
+ export declare const hasSeparator: (text: string | null | undefined, chars: string[]) => boolean;
@@ -0,0 +1,51 @@
1
+ type AdvanceStep = {
2
+ target?: string;
3
+ advanceOn?: string;
4
+ actionLabel?: string;
5
+ };
6
+ type AdvanceView = {
7
+ layer: HTMLElement;
8
+ spot: HTMLElement;
9
+ card: HTMLElement;
10
+ };
11
+ type Target = HTMLElement | SVGElement;
12
+ /**
13
+ * Show the step's cue, or clear the previous step's: the click-through spotlight, the tapping
14
+ * pointer, the hint above the buttons and Next as a link. Call it once per step shown, before the
15
+ * card is placed, since the hint changes the card's height.
16
+ * @param host the <wui-tour> element, which carries `advance-label`
17
+ * @param view the tour's layer and its spot and card
18
+ * @param step
19
+ * @param target the step's target
20
+ * @returns the hint shown, for the step's announcement; empty when there is none
21
+ */
22
+ export declare function renderAdvance(host: HTMLElement, { layer, spot, card }: AdvanceView, step: AdvanceStep | null, target: Target | null): string;
23
+ /**
24
+ * Start listening for the step's advance action. Called each time a step shows; the returned
25
+ * function is called when that step ends or the tour closes.
26
+ * @param step
27
+ * @param target the step's target
28
+ * @param advance moves the tour to the next step
29
+ */
30
+ export declare function bindAdvance(step: AdvanceStep | null, target: Target | null, advance: () => void): () => void;
31
+ /**
32
+ * Whether focus may rest on `node` while the step shows. Anything else is pulled back to the card.
33
+ * @param layer the tour's layer
34
+ * @param step
35
+ * @param target the step's target
36
+ * @param node the element that took focus
37
+ */
38
+ export declare function keepsFocus(layer: HTMLElement, step: AdvanceStep | null, target: Target | null, node: Node): boolean;
39
+ /**
40
+ * Keep Tab and Shift+Tab cycling through the card's buttons and, on a click-to-advance step,
41
+ * the target after them.
42
+ * @param e the Tab keydown
43
+ * @param context `active` is the focused element, read through the tour's shadow root when isolated.
44
+ */
45
+ export declare function cycleFocus(e: KeyboardEvent, { card, active, step, target }: {
46
+ card: HTMLElement;
47
+ active: Element | null;
48
+ step: AdvanceStep | null;
49
+ target: Target | null;
50
+ }): void;
51
+ export {};
@@ -0,0 +1,17 @@
1
+ type EndDialogText = {
2
+ title: string;
3
+ message: string;
4
+ button: string;
5
+ nextLabel?: string;
6
+ nextHref?: string;
7
+ };
8
+ /**
9
+ * Show the closing dialog in the tour's layer. The tour awaits the returned promise, which settles
10
+ * with `"next"` when the person takes the next link, or with `"done"` when they dismiss the dialog
11
+ * by its button or Escape, or when `signal` aborts (the tour stopped), before it closes. The keys
12
+ * are listened for from the start, so an Escape while the step card is still leaving dismisses it too.
13
+ * @param layer the tour's layer, still on the page, holding the spot, the step card and the live region
14
+ * @param signal aborted when the tour is torn down while the dialog shows
15
+ */
16
+ export declare function showEndDialog(layer: HTMLElement, text: EndDialogText, signal?: AbortSignal): Promise<"next" | "done">;
17
+ export {};
@@ -0,0 +1,4 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ export declare class WuiTourStep extends ElementBase {
3
+ constructor();
4
+ }
@@ -0,0 +1,2 @@
1
+ export declare const THEME_TOKENS: Record<string, string>;
2
+ export declare const TOUR_ISOLATED_CSS: string;
@@ -0,0 +1,19 @@
1
+ interface MediaStep {
2
+ target?: string;
3
+ media?: string;
4
+ mediaAlt?: string;
5
+ mediaPoster?: string;
6
+ mediaType?: string;
7
+ }
8
+ interface MediaLabels {
9
+ pause: string;
10
+ play: string;
11
+ }
12
+ /**
13
+ * Show the step's media on the card, or none when the step has no `media`. Replaces the previous
14
+ * step's frame, so call it once per step shown, before the card is placed.
15
+ * @param card the tour card
16
+ * @param labels the pause button's name while the loop plays, and while it is paused
17
+ */
18
+ export declare function renderMedia(card: HTMLElement, step: MediaStep, labels?: MediaLabels): void;
19
+ export {};
@@ -0,0 +1,20 @@
1
+ /**
2
+ * The card has been placed for a new step and is about to take focus. It fades and lifts in
3
+ * toward its target, after the spot's glide when the spot is moving, and reads `shown` once in.
4
+ * @param card the tour card
5
+ */
6
+ export declare function enterCard(card: HTMLElement): void;
7
+ /**
8
+ * The next step has been found and the card is about to change. The tour awaits a returned
9
+ * promise before it shows that step; nothing returned shows it at once.
10
+ * @param card the tour card
11
+ * @returns settles when the card has faded out
12
+ */
13
+ export declare function leaveCard(card: HTMLElement): Promise<void> | null;
14
+ /**
15
+ * Take the tour's layer off the page as the tour closes. Focus has not moved back yet, and the
16
+ * close event has not fired; neither may wait for an exit animation, so the layer fades out on its
17
+ * own, inert and click-through, and is removed when the fade ends.
18
+ * @param outer the element the tour appended to <body>
19
+ */
20
+ export declare function removeLayer(outer: HTMLElement): void;
@@ -0,0 +1 @@
1
+ export declare const TOUR_OPEN_MARK: string;