@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,41 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ interface SavedView {
3
+ name: string;
4
+ query: string;
5
+ shared?: boolean;
6
+ }
7
+ export declare class WuiSavedViews extends ElementBase {
8
+ static get observedAttributes(): string[];
9
+ private _doc;
10
+ private _dom;
11
+ private _views;
12
+ private _open;
13
+ private _busy;
14
+ private _error;
15
+ private _trigger;
16
+ private _onTriggerClick;
17
+ private _onKeyDown;
18
+ private _onPointerDown;
19
+ private _onSubmit;
20
+ constructor();
21
+ private get _ownerDoc();
22
+ private get _ui();
23
+ connectedCallback(): void;
24
+ disconnectedCallback(): void;
25
+ attributeChangedCallback(): void;
26
+ _reload(): void;
27
+ _server(): boolean;
28
+ _canShare(): boolean;
29
+ _request(intent: string, fields?: Record<string, string>): Promise<boolean>;
30
+ _build(): void;
31
+ _render(): void;
32
+ _commit(views: SavedView[]): void;
33
+ _setOpen(open: boolean): void;
34
+ _storage(): {
35
+ store: Storage;
36
+ key: string;
37
+ } | null;
38
+ _load(): SavedView[];
39
+ _write(views: SavedView[]): void;
40
+ }
41
+ export {};
@@ -0,0 +1,147 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ import type { ListboxKeyNav } from "./listboxKeyNav.ts";
3
+ import type { SelectOption } from "./select/option.ts";
4
+ import type { SelectHost, SelectPart } from "./select/part.ts";
5
+ export declare class WuiSelect extends ElementBase {
6
+ static formAssociated: boolean;
7
+ _internals: Pick<ElementInternals, "setValidity"> | null;
8
+ _value: string | string[];
9
+ _optionsProp: SelectOption[] | null;
10
+ _partOptions: SelectOption[] | null;
11
+ _known: Map<string, SelectOption>;
12
+ _loadOptionsFn: LoadOptions | null;
13
+ _validateFn: ((value: string) => unknown) | null;
14
+ _declared: DeclaredOption[] | undefined;
15
+ _query: string;
16
+ _ownsFilter: boolean;
17
+ _active: number;
18
+ _status: "idle" | "loading" | "empty" | "hint";
19
+ _error: string;
20
+ _nav: ListboxKeyNav | null;
21
+ _parts: SelectPart[] | null;
22
+ _partSig: string;
23
+ _partsMounted: boolean;
24
+ _partToken: number;
25
+ _rendered: boolean;
26
+ _searchShown: boolean;
27
+ _defaultValue: string | string[] | undefined;
28
+ _warnedMode: string | null;
29
+ _warnedDensity: string | null | undefined;
30
+ _reposition: () => void;
31
+ _hoverTimer: ReturnType<typeof setTimeout> | null;
32
+ _hoverOpened: boolean;
33
+ _onHoverOver: (e: PointerEvent) => void;
34
+ _onHoverOut: (e: PointerEvent) => void;
35
+ _onDocClick: ((e: MouseEvent) => void) | null | undefined;
36
+ _bindGlobal: () => void;
37
+ _reanchor?: (() => void) | null;
38
+ _reanchorScroll?: ((e: Event) => void) | null;
39
+ static get observedAttributes(): string[];
40
+ constructor();
41
+ connectedCallback(): void;
42
+ disconnectedCallback(): void;
43
+ attributeChangedCallback(name: string, _old: string | null, value: string | null): void;
44
+ formResetCallback(): void;
45
+ get mode(): SelectMode;
46
+ _checkDensity(): void;
47
+ set mode(v: string);
48
+ get value(): string | string[];
49
+ set value(v: unknown);
50
+ get options(): SelectOption[];
51
+ set options(arr: unknown);
52
+ get loadOptions(): LoadOptions | null;
53
+ set loadOptions(fn: LoadOptions | null | undefined);
54
+ get validate(): ((value: string) => unknown) | null;
55
+ set validate(fn: ((value: string) => unknown) | null | undefined);
56
+ commit(value: string | string[], meta?: {
57
+ isCustom?: boolean;
58
+ }): void;
59
+ setPartOptions(list: SelectOption[]): void;
60
+ setStatus(status: "idle" | "loading" | "empty" | "hint"): void;
61
+ setError(message: string | null | undefined): void;
62
+ openMenu(): void;
63
+ closeMenu({ focusControl }?: {
64
+ focusControl?: boolean;
65
+ }): void;
66
+ renderList(): void;
67
+ render(): void;
68
+ _accessibleName(): string;
69
+ _snapshotDeclared(): void;
70
+ _readOptions(): SelectOption[];
71
+ _listOptions(): SelectOption[];
72
+ _declaredSelected(): string[];
73
+ _preselect(): void;
74
+ _optionFor(value: string | string[]): SelectOption | undefined;
75
+ _placeholder(): string | undefined;
76
+ _hasValue(): boolean;
77
+ _selectedValues(): string[];
78
+ _applyValue(): void;
79
+ _syncMirror(): void;
80
+ _drawValue(): void;
81
+ _syncTitle(opt: SelectOption | undefined): void;
82
+ _syncValueAvatar(): void;
83
+ _syncValidity(): void;
84
+ _syncReset(): void;
85
+ _syncInvalid(): void;
86
+ _syncError(): void;
87
+ _refs(): Refs;
88
+ _menuOpen(): boolean;
89
+ _hoverZone(target: EventTarget | null): boolean;
90
+ _hoverEligible(): boolean;
91
+ _clearHover(): void;
92
+ _autoSearch(): boolean;
93
+ _visible(): HTMLElement[];
94
+ _setActive(index: number, { reveal }?: {
95
+ reveal?: boolean;
96
+ }): void;
97
+ _actionRows(): ActionRow[];
98
+ _recents(): Recents;
99
+ _place(): void;
100
+ _open({ focus }?: {
101
+ focus?: boolean;
102
+ }): void;
103
+ _close({ force }?: {
104
+ force?: boolean;
105
+ }): void;
106
+ _onQueryChange(query: string): void;
107
+ _pick(optEl: HTMLElement): void;
108
+ _draftOpens(): boolean;
109
+ _onKeyDown(e: KeyboardEvent): void;
110
+ _wire(): void;
111
+ _teardown(): void;
112
+ _activePartsList(): SelectPart[];
113
+ _ensureParts(): void;
114
+ _mountParts(carry?: Carry): void;
115
+ _teardownParts(): void;
116
+ _remountParts(): void;
117
+ _carry(): Carry;
118
+ }
119
+ type LoadOptions = (query: string, opts: {
120
+ signal: AbortSignal;
121
+ }) => Promise<SelectOption[]>;
122
+ type DeclaredOption = SelectOption & {
123
+ selected: boolean;
124
+ };
125
+ type ActionRow = {
126
+ position: "top" | "bottom";
127
+ label: string;
128
+ value: string;
129
+ };
130
+ type Recents = {
131
+ label: string;
132
+ options: SelectOption[];
133
+ } | null;
134
+ type Refs = {
135
+ control: HTMLElement | null;
136
+ value: HTMLElement | null;
137
+ menu: HTMLElement | null;
138
+ list: HTMLElement | null;
139
+ search: HTMLInputElement | null;
140
+ input: HTMLInputElement | null;
141
+ };
142
+ type Carry = {
143
+ draft: string;
144
+ query: string;
145
+ };
146
+ type SelectMode = SelectHost["mode"];
147
+ export {};
@@ -0,0 +1,31 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ export declare class WuiShortcuts extends ElementBase {
3
+ _doc: Document | null;
4
+ _onKeyDown: (e: KeyboardEvent) => void;
5
+ _onClick: (e: MouseEvent) => void;
6
+ _onDocClick: (e: MouseEvent) => void;
7
+ static get observedAttributes(): string[];
8
+ constructor();
9
+ connectedCallback(): void;
10
+ attributeChangedCallback(name: string, _previous: string | null, value: string | null): void;
11
+ disconnectedCallback(): void;
12
+ /** Whether the sheet is showing. */
13
+ get open(): boolean;
14
+ set open(v: boolean | string);
15
+ /**
16
+ * Shows or hides the sheet; focus goes to its close button, and back to the button on close.
17
+ * Each real change raises `wui-shortcuts-open-change` and mirrors the state on the `open` attribute.
18
+ */
19
+ setOpen(open: boolean, { focus }?: {
20
+ focus?: boolean;
21
+ }): void;
22
+ _sheet(): HTMLElement | null;
23
+ _syncTrigger(): void;
24
+ _place(): void;
25
+ _scope(): HTMLElement | null;
26
+ _items(): HTMLElement[];
27
+ _click(e: MouseEvent): void;
28
+ _tickFocused(): void;
29
+ _focusSearch(): void;
30
+ _keydown(e: KeyboardEvent): void;
31
+ }
@@ -0,0 +1,16 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ export declare class WuiShowMore extends ElementBase {
3
+ _width: number;
4
+ _observer: ResizeObserver | null;
5
+ _toggle: HTMLButtonElement | null;
6
+ _onClick: () => void;
7
+ constructor();
8
+ connectedCallback(): void;
9
+ disconnectedCallback(): void;
10
+ /** Whether the whole text is showing. */
11
+ get expanded(): boolean;
12
+ /** Opens or closes the block. Without an argument it flips. */
13
+ toggle(next?: boolean): void;
14
+ _sync(): void;
15
+ _check(): void;
16
+ }
@@ -0,0 +1,126 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ /**
3
+ * <wui-slider> — single-thumb and dual-thumb (range) slider control.
4
+ *
5
+ * Single-thumb mode: attributes `value` (current value), `min`/`max`/`step`, `name` (for form submission).
6
+ * Dual-thumb (range) mode: attributes `start`/`end` (range bounds), `start-name`/`end-name` for form submission.
7
+ * Presence of the `range` attribute switches to dual-thumb mode.
8
+ *
9
+ * Rendering: horizontal track with filled segment and one or two thumb buttons (role="slider").
10
+ * Keyboard: arrow keys ±step, PageUp/Down ±10*step, Home/End to min/max.
11
+ * Range mode: thumbs cannot cross each other.
12
+ * Events: 'change' fires on commit (pointerup, key release); 'slide' fires during drag with detail {value} or {start,end}.
13
+ * Form: hidden mirror input(s) via syncFormMirror pattern (single mode) or dual mirrors (range mode).
14
+ *
15
+ * @property min Default 0
16
+ * @property max Default 100
17
+ * @property step Default 1
18
+ * @property value Current value (single mode)
19
+ * @property start Range start (range mode)
20
+ * @property end Range end (range mode)
21
+ * @property name Field name (single mode)
22
+ * @property startName Field name for range start
23
+ * @property endName Field name for range end
24
+ * @property disabled Disables interaction
25
+ * @property readonly Shows the value without letting it change; the value still posts
26
+ * @property loading Locks interaction while the value is being fetched
27
+ * @property size Control size — 'sm' or 'lg'
28
+ * @property showValue Shows a label with current value
29
+ * @property unit Suffix for the value label (e.g. '%')
30
+ */
31
+ export declare class WuiSlider extends ElementBase {
32
+ static formAssociated: boolean;
33
+ _internals: ElementInternals | null;
34
+ _value: number;
35
+ _start: number;
36
+ _end: number;
37
+ _isDragging: boolean;
38
+ _dragThumb: string | null;
39
+ _pointerDownListener: ((e: PointerEvent) => void) | null;
40
+ _pointerMoveListener: ((e: PointerEvent) => void) | null;
41
+ _pointerUpListener: (() => void) | null;
42
+ _thumbKeyListener: ((e: KeyboardEvent) => void) | null;
43
+ _trackClickListener: ((e: MouseEvent) => void) | null;
44
+ _rendered?: boolean;
45
+ _defaultsCaptured?: boolean;
46
+ _defaultValue?: number;
47
+ _defaultStart?: number;
48
+ _defaultEnd?: number;
49
+ static get observedAttributes(): string[];
50
+ constructor();
51
+ connectedCallback(): void;
52
+ get value(): number;
53
+ set value(v: number | string);
54
+ get start(): number;
55
+ set start(v: number | string);
56
+ get end(): number;
57
+ set end(v: number | string);
58
+ attributeChangedCallback(name: string, _old: string | null, _val: string | null): void;
59
+ formResetCallback(): void;
60
+ /**
61
+ * Update internal state from an attribute without triggering a re-render.
62
+ * Called on attributeChangedCallback for value/bounds changes pre-render.
63
+ */
64
+ _updateFromAttribute(name: string): void;
65
+ _isRange(): boolean;
66
+ _min(): number;
67
+ _max(): number;
68
+ _step(): number;
69
+ _clamp(val: number): number;
70
+ /**
71
+ * Snap a value to the nearest step increment, counted FROM min — a step grid anchored at 0
72
+ * lands on values the control can never legally hold (min=5 step=10 would snap 6 to 10).
73
+ */
74
+ _snapToStep(val: number): number;
75
+ /**
76
+ * Capture initial values for formResetCallback.
77
+ */
78
+ _captureDefaults(): void;
79
+ _resetSingle(): void;
80
+ _resetRange(): void;
81
+ /**
82
+ * Render the slider markup once on connection.
83
+ */
84
+ render(): void;
85
+ /**
86
+ * Format a value with optional unit suffix.
87
+ */
88
+ _formatValue(val: number): string;
89
+ /**
90
+ * Place the fill and the thumbs for the current value(s).
91
+ *
92
+ * `left`/`right` carry the raw percentage; `--wui-t` (0..1) on each thumb and
93
+ * `--wui-fill-start` / `--wui-fill-end` on the fill let the theme inset the travel by
94
+ * half a thumb, so a thumb at min or max stays inside the track instead of hanging
95
+ * half off its end. The theme owns the thumb size, so the inset lives in CSS, not here.
96
+ */
97
+ _placeParts(): void;
98
+ /**
99
+ * Sync the visual slider thumb positions and aria attributes after a value change.
100
+ */
101
+ _syncValue(): void;
102
+ /**
103
+ * Sync form mirror input(s).
104
+ */
105
+ _syncMirrors(): void;
106
+ _syncSingleMirror(): void;
107
+ _syncRangeMirrors(): void;
108
+ /**
109
+ * Create/update a range-mode mirror input.
110
+ */
111
+ _mirrorRange(kind: "start" | "end", name: string | null, val: number): void;
112
+ /**
113
+ * Calculate the value from a pointer/click position on the track.
114
+ */
115
+ _valueAtPosition(clientX: number): number;
116
+ /**
117
+ * Determine which thumb is nearest to a position (for track clicks in range mode).
118
+ */
119
+ _nearestThumb(val: number): "start" | "end";
120
+ /**
121
+ * Wire up pointer and keyboard listeners.
122
+ */
123
+ _wire(): void;
124
+ _teardown(): void;
125
+ disconnectedCallback(): void;
126
+ }
@@ -0,0 +1,127 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ /**
3
+ * <wui-sortable> - a list whose items the person reorders by pointer drag or by keyboard.
4
+ * Light DOM, no third-party drag library. The behaviour behind AppSortableList / <app-sortable-list>,
5
+ * and the piece a board (kanban) or a tree reuses to drag between lists.
6
+ *
7
+ * Markup contract. Every direct child that carries `data-id` is an item; anything else (the
8
+ * hidden form inputs and the live region this element appends) is ignored. An item holds an
9
+ * optional drag handle as a DIRECT child with class `wui-sortable-handle` (a <button>), which
10
+ * is also what the keyboard drives:
11
+ *
12
+ * <wui-sortable name="order" aria-label="Priorities" role="list">
13
+ * <div role="listitem" data-id="a" data-label="Alpha">
14
+ * <button type="button" class="wui-sortable-handle" aria-label="Reorder Alpha"></button>
15
+ * ...content...
16
+ * </div>
17
+ * </wui-sortable>
18
+ *
19
+ * Attributes
20
+ * name Form field name. Posts the order as one hidden input per item, all under this
21
+ * name (`order=a&order=b&order=c`), so model binding reads it as a list.
22
+ * handle Present: a pointer drag starts only from the handle. Absent: from anywhere on
23
+ * the item except links, buttons, inputs and other interactive content.
24
+ * disabled No item can be picked up.
25
+ * group Lists sharing a non-empty group name accept each other's items (pointer drag
26
+ * only; the keyboard moves within one list).
27
+ * orientation vertical (default) | horizontal. Horizontal also handles a wrapping row of items.
28
+ * Item attributes
29
+ * data-id Required. The id reported in the order.
30
+ * data-label Name used in announcements; falls back to the item's text, then the id.
31
+ * data-disabled This item cannot be picked up (other items can still move past it).
32
+ *
33
+ * Properties
34
+ * controlled Boolean, set by a framework wrapper that owns the order. A move between lists then
35
+ * leaves the dragged node in its origin list and only reports the change, so the
36
+ * wrapper's own re-render moves the item (a framework cannot tolerate a node that was
37
+ * moved to another parent behind its back).
38
+ * order Array of item ids in DOM order. Setting it reorders the DOM to match (unknown ids are
39
+ * ignored, unlisted items follow) and fires no event. Ignored while a drag is live.
40
+ *
41
+ * Events (all bubble; listen on the element and check event.target when lists nest)
42
+ * wui-sortable:start detail { id } a pointer drag began.
43
+ * wui-sortable:change detail { ids, id, fromIndex, toIndex, from, to }
44
+ * The order changed. `ids` is THIS list's new order. `from` and `to` are the
45
+ * source and destination elements. A move between lists fires on both lists,
46
+ * each with its own `ids`. Fires once per completed drag or keyboard drop.
47
+ * wui-sortable:end detail { id, cancelled } a pointer drag finished (after any change).
48
+ *
49
+ * Pointer: mouse and pen start after 4px of movement; touch starts at once from the handle, and
50
+ * after a 250ms hold from the item body (so a swipe still scrolls). A ghost copy follows the
51
+ * pointer, and the scroll container (or the window) scrolls when the pointer nears its edge.
52
+ * Escape cancels.
53
+ *
54
+ * Keyboard: focus an item's handle, Space or Enter lifts it, Arrow keys move it one place (Home and
55
+ * End jump to the ends), Space or Enter drops it, Escape puts it back. Moving away from the handle
56
+ * drops it. Every step is announced through an aria-live region the element owns.
57
+ */
58
+ type DragState = {
59
+ item: HTMLElement;
60
+ pointerId: number;
61
+ startX: number;
62
+ startY: number;
63
+ x: number;
64
+ y: number;
65
+ slop: number;
66
+ ready: boolean;
67
+ started: boolean;
68
+ timer: ReturnType<typeof setTimeout> | null;
69
+ raf: number;
70
+ list: WuiSortable;
71
+ ghost: HTMLElement | null;
72
+ offsetX: number;
73
+ offsetY: number;
74
+ fromIndex: number;
75
+ };
76
+ type KeyLift = {
77
+ item: HTMLElement;
78
+ handle: HTMLElement;
79
+ fromIndex: number;
80
+ };
81
+ export declare class WuiSortable extends ElementBase {
82
+ _drag: DragState | null;
83
+ _kb: KeyLift | null;
84
+ _moving: boolean;
85
+ controlled: boolean;
86
+ _observer: MutationObserver | null;
87
+ _onDragStart: (e: Event) => void;
88
+ _onDocTouchMove: (e: TouchEvent) => void;
89
+ _onSelectStart: (e: Event) => void;
90
+ static get observedAttributes(): string[];
91
+ constructor();
92
+ connectedCallback(): void;
93
+ disconnectedCallback(): void;
94
+ attributeChangedCallback(name: string): void;
95
+ get order(): (string | null)[];
96
+ set order(ids: readonly unknown[] | null);
97
+ _items(): HTMLElement[];
98
+ _itemFrom(node: Element | null): HTMLElement | null;
99
+ _itemDisabled(item: Element): boolean;
100
+ _horizontal(): boolean;
101
+ _syncMirrors(): void;
102
+ _insertAt(item: HTMLElement, index: number): void;
103
+ _indexFor(item: HTMLElement, x: number, y: number): number;
104
+ _peers(): WuiSortable[];
105
+ _labelOf(item: HTMLElement): string | null;
106
+ _announce(text: string): void;
107
+ _position(item: HTMLElement): string;
108
+ _onPointerDown(e: PointerEvent): void;
109
+ _onDocMove(e: PointerEvent): void;
110
+ _onDocUp(e: PointerEvent): void;
111
+ _onDocCancel(e: PointerEvent): void;
112
+ _onDocKey(e: KeyboardEvent): void;
113
+ _begin(): void;
114
+ _moveGhost(): void;
115
+ _update(): void;
116
+ _scrollTick(): void;
117
+ _finish(cancelled: boolean): void;
118
+ _settle(item: HTMLElement, fromList: WuiSortable, fromIndex: number, toList: WuiSortable): void;
119
+ _emit(target: EventTarget, type: string, detail: object): void;
120
+ _abort(): void;
121
+ _onKeyDown(e: KeyboardEvent): void;
122
+ _onFocusOut(e: FocusEvent): void;
123
+ _liftKeyboard(item: HTMLElement, handle: HTMLElement): void;
124
+ _dropKeyboard(cancelled: boolean): void;
125
+ _moveFocused(move: () => void, handle: HTMLElement): void;
126
+ }
127
+ export {};
@@ -0,0 +1,68 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ interface Hm {
3
+ h: number;
4
+ m: number;
5
+ }
6
+ type CloseOptions = {
7
+ commit?: boolean;
8
+ refocus?: boolean;
9
+ };
10
+ export declare class WuiTimePicker extends ElementBase {
11
+ static formAssociated: boolean;
12
+ _internals: ElementInternals | null;
13
+ _value: string;
14
+ _uid: string;
15
+ _typedError: string;
16
+ _typeahead: string;
17
+ _typeaheadTimer: number | undefined;
18
+ _rendered?: boolean;
19
+ _defaultValue?: string;
20
+ _isOpen?: (() => boolean) | null;
21
+ _lastPointer?: string | null;
22
+ _open: (opts?: {
23
+ focus?: boolean;
24
+ }) => void;
25
+ _close: (opts?: CloseOptions) => void;
26
+ _bindGlobal: () => void;
27
+ _onDocClick?: ((e: MouseEvent) => void) | null;
28
+ _onDocKey?: ((e: KeyboardEvent) => void) | null;
29
+ _onHostKey?: ((e: KeyboardEvent) => void) | null;
30
+ static get observedAttributes(): string[];
31
+ constructor();
32
+ connectedCallback(): void;
33
+ attributeChangedCallback(name: string, _old: string | null, val: string | null): void;
34
+ formResetCallback(): void;
35
+ get value(): string;
36
+ set value(v: string);
37
+ _format(): string;
38
+ _step(): number;
39
+ _bounds(): {
40
+ min: number;
41
+ max: number;
42
+ };
43
+ _allowed(h: number, m: number): boolean;
44
+ _times(): Hm[];
45
+ _refusal(hm: Hm): string;
46
+ render(): void;
47
+ _input(): HTMLInputElement | null;
48
+ _pop(): HTMLDivElement | null;
49
+ _syncFormValue(): void;
50
+ _syncAttrs(): void;
51
+ _syncText(): void;
52
+ _syncInvalid(): void;
53
+ _commitText(): boolean;
54
+ _pending(): Hm | null;
55
+ _columnsHtml(): string;
56
+ _selectedIn(key: string | undefined, hm: Hm | null): string | null;
57
+ _optionEnabled(key: string | undefined, v: string | undefined, hm: Hm | null): boolean;
58
+ _syncColumns({ scroll }?: {
59
+ scroll?: boolean;
60
+ }): void;
61
+ _pick(key: string | undefined, v: string | undefined): void;
62
+ _position(): void;
63
+ _onColumnKey(e: KeyboardEvent): void;
64
+ _wire(): void;
65
+ _teardown(): void;
66
+ disconnectedCallback(): void;
67
+ }
68
+ export {};
@@ -0,0 +1,117 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ import { createProgress } from "./tourProgress.ts";
3
+ import { type SeenOutcome, type SeenStore } from "./tourSeenStore.ts";
4
+ declare const DEFAULT_LABELS: {
5
+ back: string;
6
+ next: string;
7
+ skip: string;
8
+ done: string;
9
+ mediaPause: string;
10
+ mediaPlay: string;
11
+ endTitle: string;
12
+ endMessage: string;
13
+ endButton: string;
14
+ };
15
+ type LabelKey = keyof typeof DEFAULT_LABELS;
16
+ type TourStep = {
17
+ target: string;
18
+ title?: string | undefined;
19
+ description: string;
20
+ media?: string;
21
+ mediaAlt?: string;
22
+ mediaPoster?: string;
23
+ mediaType?: string;
24
+ advanceOn?: string;
25
+ actionLabel?: string;
26
+ };
27
+ type StepBeforeHook = (step: TourStep, index: number) => void | Promise<void>;
28
+ type CloseReason = "finished" | "skipped" | "next" | "alreadySeen" | "noTargets";
29
+ type CloseVia = "button" | "escape" | null;
30
+ type StepPosition = {
31
+ index: number | null;
32
+ position: number | null;
33
+ total: number | null;
34
+ };
35
+ type LocatedStep = {
36
+ index: number;
37
+ target: HTMLElement | SVGElement | null;
38
+ };
39
+ type EndText = {
40
+ title: string;
41
+ message: string;
42
+ button: string;
43
+ nextLabel: string;
44
+ nextHref: string;
45
+ };
46
+ export declare class WuiTour extends ElementBase {
47
+ seenStore: SeenStore | null;
48
+ onBeforeStep: StepBeforeHook | null;
49
+ _run: number;
50
+ _running: boolean;
51
+ _layer: HTMLDivElement | null;
52
+ _outer: HTMLElement | null;
53
+ _shadow: ShadowRoot | null;
54
+ _unbindAdvance: (() => void) | null;
55
+ _ending: AbortController | null;
56
+ _seenMark: Promise<void> | null;
57
+ _steps: TourStep[];
58
+ _progress: ReturnType<typeof createProgress>;
59
+ _firstIndex: number;
60
+ _returnFocus: Element | null;
61
+ _current: LocatedStep | null;
62
+ _moving: boolean;
63
+ _card: HTMLDivElement | null;
64
+ _spot: HTMLDivElement | null;
65
+ _live: HTMLElement | null;
66
+ _onKey: ((e: KeyboardEvent) => void) | null;
67
+ _onFocusIn: ((e: FocusEvent) => void) | null;
68
+ static get observedAttributes(): string[];
69
+ constructor();
70
+ connectedCallback(): void;
71
+ disconnectedCallback(): void;
72
+ attributeChangedCallback(name: string, _oldValue: string | null, newValue: string | null): void;
73
+ get tourId(): string;
74
+ set tourId(v: string | null | undefined);
75
+ get isolated(): boolean;
76
+ set isolated(v: boolean | string);
77
+ _stepList(): TourStep[];
78
+ _stepAt(index: number): TourStep;
79
+ _store(): SeenStore | null;
80
+ _label(key: LabelKey): string;
81
+ _endDialogText(): EndText | null;
82
+ _markSeen(outcome: SeenOutcome): Promise<void> | null;
83
+ /** Start the tour. A no-op while one is running. */
84
+ start(): Promise<void>;
85
+ _start(run: number): Promise<void>;
86
+ /**
87
+ * Show the next step with a visible target, or finish after the last, through the closing
88
+ * dialog when it is on; the promise then settles once the dialog is dismissed. A no-op unless a
89
+ * step is showing.
90
+ */
91
+ next(): Promise<void>;
92
+ /** Show the previous step with a visible target, as Back does. A no-op unless a step is showing. */
93
+ back(): Promise<void>;
94
+ /**
95
+ * Show step `index`, or the first step after it with a visible target; past the last, the tour
96
+ * finishes as Next would. A no-op unless a step is showing.
97
+ * @param index
98
+ */
99
+ goTo(index: number): Promise<void>;
100
+ /** Close the tour without a reason, a seen mark or an event; a closing dialog that showed has already marked it seen. */
101
+ stop(): void;
102
+ _locate(from: number, direction: number, run: number): Promise<LocatedStep | null>;
103
+ _beforeStep(step: TourStep, index: number): Promise<void>;
104
+ _build(): void;
105
+ _active(): Element | null;
106
+ _show(located: LocatedStep): void;
107
+ _place(): void;
108
+ _follow(): void;
109
+ _move(direction: number): Promise<void>;
110
+ _go(from: number, direction: number): Promise<void>;
111
+ _showEnd(text: EndText): Promise<"next" | "done">;
112
+ _key(e: KeyboardEvent): void;
113
+ _teardown(): void;
114
+ _close(reason: "finished" | "skipped" | "next", via?: CloseVia): Promise<boolean>;
115
+ _finish(reason: CloseReason, step?: StepPosition, via?: CloseVia): void;
116
+ }
117
+ export {};