@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,62 @@
1
+ import type { FileKind } from "./WuiFileViewer.ts";
2
+ export interface MediaPrefs {
3
+ volume?: number;
4
+ muted?: boolean;
5
+ speed?: number;
6
+ }
7
+ export interface MediaShell {
8
+ host: HTMLElement;
9
+ body: HTMLElement;
10
+ name: () => string;
11
+ prefs: MediaPrefs;
12
+ savePrefs: (changes: Partial<MediaPrefs>) => void;
13
+ loaded: (detail: {
14
+ kind: string;
15
+ pages: number;
16
+ }) => void;
17
+ fail: (error: Error) => void;
18
+ }
19
+ export interface MediaSource {
20
+ src: string;
21
+ kind: FileKind;
22
+ captions?: string;
23
+ }
24
+ /** "1:05", or "1:02:05" past an hour. */
25
+ export declare function formatTime(seconds: number): string;
26
+ export declare class MediaView {
27
+ shell: MediaShell;
28
+ source: MediaSource;
29
+ destroyed: boolean;
30
+ media: HTMLMediaElement;
31
+ playButton: HTMLButtonElement;
32
+ timeNow: HTMLSpanElement;
33
+ seek: HTMLInputElement;
34
+ timeTotal: HTMLSpanElement;
35
+ muteButton: HTMLButtonElement;
36
+ volume: HTMLInputElement;
37
+ speedButton: HTMLButtonElement;
38
+ captionsButton: HTMLButtonElement | undefined;
39
+ _onKeyDown: ((e: KeyboardEvent) => void) | undefined;
40
+ /**
41
+ * @param shell the viewer's parts: { host, body, name, prefs, savePrefs, loaded, fail }
42
+ * @param source
43
+ */
44
+ constructor(shell: MediaShell, source: MediaSource);
45
+ load(): void;
46
+ destroy(): void;
47
+ _build(): void;
48
+ /** Moves to `seconds` from the start, kept within the file's length once that is known. */
49
+ seekTo(seconds: number): void;
50
+ togglePlay(): void;
51
+ _setMuted(muted: boolean): void;
52
+ _setVolume(volume: number): void;
53
+ _setSpeed(speed: number): void;
54
+ _captionsOn(): boolean;
55
+ _setCaptions(on: boolean): void;
56
+ _syncPlay(): void;
57
+ _syncTime(): void;
58
+ _syncVolume(): void;
59
+ _syncSpeed(): void;
60
+ _syncCaptions(): void;
61
+ _keyDown(e: KeyboardEvent): void;
62
+ }
@@ -0,0 +1,214 @@
1
+ import { type PDFDocumentLoadingTask, type PDFDocumentProxy, type RenderTask, TextLayer } from "pdfjs-dist";
2
+ import { type MarkedHit, type SearchHit, type TextPageIndex } from "./fileViewerSearch.ts";
3
+ type FitMode = "fit-width" | "fit-page";
4
+ export type PdfFirstPageSource = Blob | {
5
+ url: string;
6
+ };
7
+ export interface PdfFirstPageOptions {
8
+ workerSrc?: string;
9
+ assetBase?: string;
10
+ width?: number;
11
+ }
12
+ export declare function renderFirstPage(source: PdfFirstPageSource, { workerSrc, assetBase, width }?: PdfFirstPageOptions): Promise<Blob>;
13
+ interface Size {
14
+ width: number;
15
+ height: number;
16
+ }
17
+ export interface PdfSource {
18
+ src: string;
19
+ workerSrc?: string;
20
+ assetBase?: string;
21
+ }
22
+ export interface PdfPrefs {
23
+ zoom?: string;
24
+ twoPage?: boolean;
25
+ thumbnails?: boolean;
26
+ }
27
+ export interface PdfShell {
28
+ host: HTMLElement & {
29
+ uid: string;
30
+ };
31
+ start: HTMLElement;
32
+ center: HTMLElement;
33
+ end: HTMLElement;
34
+ search: HTMLElement;
35
+ body: HTMLElement;
36
+ name: () => string;
37
+ print: () => boolean;
38
+ prefs: PdfPrefs;
39
+ savePrefs: (changes: Partial<{
40
+ zoom: string;
41
+ twoPage: boolean;
42
+ thumbnails: boolean;
43
+ }>) => void;
44
+ loaded: (detail: {
45
+ kind: string;
46
+ pages: number;
47
+ }) => void;
48
+ fail: (error: unknown) => void;
49
+ }
50
+ interface PageRow {
51
+ pages: number[];
52
+ top: number;
53
+ height: number;
54
+ }
55
+ interface PageState {
56
+ n: number;
57
+ drawnAt: number;
58
+ task: RenderTask | null;
59
+ canvas: HTMLCanvasElement | null;
60
+ text: HTMLDivElement | null;
61
+ textLayer: TextLayer | null;
62
+ links: HTMLDivElement | null;
63
+ released?: boolean;
64
+ }
65
+ interface SearchState {
66
+ open: boolean;
67
+ query: string;
68
+ index: TextPageIndex[] | false | null;
69
+ indexing: boolean;
70
+ hits: SearchHit[];
71
+ current: number;
72
+ marked: Map<number, Set<number>>;
73
+ byPage?: Map<number, MarkedHit[]>;
74
+ }
75
+ interface PanState {
76
+ id: number;
77
+ x: number;
78
+ y: number;
79
+ left: number;
80
+ top: number;
81
+ active: boolean;
82
+ }
83
+ interface PrintRun {
84
+ ready: boolean;
85
+ urls: string[];
86
+ frame?: HTMLIFrameElement;
87
+ }
88
+ export declare class PdfView {
89
+ shell: PdfShell;
90
+ source: PdfSource;
91
+ zoom: number | FitMode;
92
+ twoPage: boolean;
93
+ showThumbs: boolean;
94
+ pdf: PDFDocumentProxy;
95
+ task: PDFDocumentLoadingTask | undefined;
96
+ sizes: Size[];
97
+ rows: PageRow[];
98
+ rowOf: number[];
99
+ scale: number;
100
+ drawnScale: number;
101
+ pages: Map<number, PageState>;
102
+ thumbsDrawn: Set<number>;
103
+ area: Size;
104
+ scrollPos: {
105
+ top: number;
106
+ left: number;
107
+ };
108
+ jumpTarget: number | null;
109
+ search: SearchState;
110
+ printRun: PrintRun | null;
111
+ destroyed: boolean;
112
+ _timers: Set<number | undefined>;
113
+ _loading: Promise<void> | undefined;
114
+ _scrollFrame: number | undefined;
115
+ _resizeObserver: ResizeObserver | undefined;
116
+ _onKeyDown: ((e: KeyboardEvent) => void) | undefined;
117
+ _thumbObserver: IntersectionObserver | undefined;
118
+ _redrawTimer: number | undefined;
119
+ _jumpTimer: number | undefined;
120
+ _endJump: (() => void) | undefined;
121
+ _lastWheelZoom: number | undefined;
122
+ _pan: PanState | null;
123
+ visibleRow: number | undefined;
124
+ _drawing: boolean;
125
+ _activeThumb: number | undefined;
126
+ _shownPercent: number | undefined;
127
+ _revealPending: boolean;
128
+ thumbRail: HTMLDivElement;
129
+ scroller: HTMLDivElement;
130
+ pagesEl: HTMLDivElement;
131
+ pageEls: HTMLDivElement[];
132
+ thumbEls: HTMLButtonElement[];
133
+ thumbsButton: HTMLButtonElement;
134
+ prevButton: HTMLButtonElement;
135
+ nextButton: HTMLButtonElement;
136
+ pageInput: HTMLInputElement;
137
+ searchButton: HTMLButtonElement;
138
+ zoomOutButton: HTMLButtonElement;
139
+ zoomButton: HTMLButtonElement;
140
+ zoomInButton: HTMLButtonElement;
141
+ twoPageButton: HTMLButtonElement;
142
+ printButton: HTMLButtonElement;
143
+ searchInput: HTMLInputElement;
144
+ searchStatus: HTMLSpanElement;
145
+ prevHitButton: HTMLButtonElement;
146
+ nextHitButton: HTMLButtonElement;
147
+ /**
148
+ * @param shell the viewer's parts: { host, start, center, end, search, body, name, prefs, savePrefs, loaded, fail }
149
+ * @param source
150
+ */
151
+ constructor(shell: PdfShell, source: PdfSource);
152
+ load(): Promise<void>;
153
+ _load(): Promise<void>;
154
+ destroy(): void;
155
+ _buildToolbar(): void;
156
+ _buildSearchRow(): void;
157
+ _syncToolbar(): void;
158
+ _buildBody(): void;
159
+ cols(): number;
160
+ _targetScale(): number;
161
+ _layout(): void;
162
+ _anchor(): {
163
+ page: number;
164
+ within: number;
165
+ left: number;
166
+ } | null;
167
+ _restore(anchor: {
168
+ page: number;
169
+ within: number;
170
+ left: number;
171
+ } | null, oldScrollWidth: number): void;
172
+ _rowAt(offset: number): number;
173
+ current(): number;
174
+ _onScroll(): void;
175
+ _update(): void;
176
+ _scheduleRedraw(): void;
177
+ _mount(n: number): void;
178
+ _release(n: number): void;
179
+ _pump(): void;
180
+ _drawCanvas(state: PageState): Promise<void>;
181
+ _drawText(state: PageState): Promise<void>;
182
+ _drawLinks(state: PageState): Promise<void>;
183
+ _destPage(dest: string | readonly unknown[] | null | undefined): Promise<number | null>;
184
+ goToPage(p: number): void;
185
+ _commitPageInput(): void;
186
+ _zoomStep(dir: number): number | null;
187
+ _stepZoom(dir: number): void;
188
+ _setZoom(zoom: number | FitMode): void;
189
+ _setTwoPage(on: boolean): void;
190
+ _setThumbs(on: boolean): void;
191
+ _buildThumbs(): void;
192
+ _drawThumb(n: number): Promise<void>;
193
+ _thumbFromCanvas(n: number, source: HTMLCanvasElement): void;
194
+ _setThumbImage(n: number, canvas: HTMLCanvasElement): void;
195
+ _followThumb(): void;
196
+ _openSearch(): void;
197
+ _closeSearch(): void;
198
+ _setQuery(query: string): void;
199
+ _goToHit(n: number): void;
200
+ _applyHits(hits: SearchHit[], current: number): void;
201
+ _markPage(n: number): void;
202
+ _bringHitIntoView(): void;
203
+ _revealHit(n: number): void;
204
+ _syncSearchStatus(): void;
205
+ _keyDown(e: KeyboardEvent): void;
206
+ _panStart(e: PointerEvent): void;
207
+ _panMove(e: PointerEvent): void;
208
+ _panEnd(): void;
209
+ print(): Promise<void>;
210
+ _printFallback(error: unknown): void;
211
+ _releasePrint(): void;
212
+ _warn(what: string, error: unknown): void;
213
+ }
214
+ export {};
@@ -0,0 +1,55 @@
1
+ export declare const MAX_HITS = 1000;
2
+ export type TextIndexItem = {
3
+ str: string;
4
+ hasEOL?: boolean;
5
+ } | {
6
+ type?: string;
7
+ };
8
+ export interface TextIndexPage {
9
+ getTextContent(params: {
10
+ includeMarkedContent?: boolean;
11
+ disableNormalization?: boolean;
12
+ }): Promise<{
13
+ items: TextIndexItem[];
14
+ }>;
15
+ }
16
+ export interface TextIndexDocument {
17
+ numPages: number;
18
+ getPage(n: number): Promise<TextIndexPage>;
19
+ }
20
+ export interface TextPageIndex {
21
+ text: string;
22
+ items: {
23
+ start: number;
24
+ length: number;
25
+ }[];
26
+ }
27
+ export interface SearchHit {
28
+ page: number;
29
+ start: number;
30
+ end: number;
31
+ }
32
+ export interface MarkedHit {
33
+ start: number;
34
+ end: number;
35
+ n: number;
36
+ }
37
+ export interface SearchStatusInput {
38
+ indexing: boolean;
39
+ index: unknown;
40
+ query: string;
41
+ hits: readonly unknown[];
42
+ current: number;
43
+ }
44
+ export declare function searchStatusText({ indexing, index, query, hits, current }: SearchStatusInput): string;
45
+ export declare function buildTextIndex(pdf: TextIndexDocument): Promise<TextPageIndex[]>;
46
+ export declare function foldText(s: string): string;
47
+ export declare function findHits(pages: readonly Pick<TextPageIndex, "text">[] | null, query: string): SearchHit[];
48
+ export declare function itemRanges(item: {
49
+ start: number;
50
+ length: number;
51
+ }, pageHits: readonly MarkedHit[]): {
52
+ from: number;
53
+ to: number;
54
+ n: number;
55
+ }[];
@@ -0,0 +1,33 @@
1
+ export interface ActionButtonOptions {
2
+ size?: number;
3
+ className?: string;
4
+ }
5
+ export type ChoiceMenuItem = {
6
+ key?: string;
7
+ divider: true;
8
+ label?: undefined;
9
+ checked?: undefined;
10
+ } | {
11
+ key: string;
12
+ label: string;
13
+ checked?: boolean;
14
+ divider?: false;
15
+ };
16
+ export interface ChoiceMenuOptions {
17
+ items: () => ChoiceMenuItem[];
18
+ onPick: (key: string) => void;
19
+ label: string;
20
+ }
21
+ export interface ChoiceMenu {
22
+ close: (focusTrigger?: boolean) => void;
23
+ }
24
+ export declare function actionButton(icon: string, label: string, { size, className }?: ActionButtonOptions): HTMLButtonElement;
25
+ export declare function setButtonIcon(button: HTMLElement, icon: string, size?: number): void;
26
+ export declare function setButtonLabel(button: HTMLElement, label: string): void;
27
+ /**
28
+ * A menu of choices opened from `trigger`. `items()` is read each time it opens:
29
+ * [{ key, label, checked, divider }]. Picking one calls `onPick(key)`. Arrow keys move between
30
+ * items, Escape and a click outside close it, and a scroll anywhere closes it too: it is
31
+ * placed against the trigger with fixed positioning, which a scroll would leave behind.
32
+ */
33
+ export declare function choiceMenu(trigger: HTMLElement, { items, onPick, label }: ChoiceMenuOptions): ChoiceMenu;
@@ -0,0 +1,55 @@
1
+ import { ElementBase } from "./elementBase.ts";
2
+ /** Milliseconds the popover waits after the pointer enters the Filters button before it opens. */
3
+ export declare const FILTER_POPOVER_OPEN_DELAY_MS: number;
4
+ /** Milliseconds the popover waits after the pointer leaves before it closes, unless focus is inside. */
5
+ export declare const FILTER_POPOVER_CLOSE_DELAY_MS: number;
6
+ /** Facet chips shown in the tools slot before the rest collapse into "+N". */
7
+ export declare const FILTER_POPOVER_MAX_CHIPS: number;
8
+ /**
9
+ * <wui-filter-popover>: the Filters button of a floating filter bar and the panel it opens. React
10
+ * AppFilterBar (`floating`) and Razor <app-filter-bar floating> render the same markup: a
11
+ * `.wui-filter-popover-trigger` button, and a `.wui-filter-popover-panel` (a non-modal dialog labelled
12
+ * "Filters", hidden until open) holding a head with the "Keep open" switch, the facets and a foot with Clear all.
13
+ *
14
+ * It opens on hover after FILTER_POPOVER_OPEN_DELAY_MS, on click and on F; a keyboard open moves focus
15
+ * into the panel. It closes FILTER_POPOVER_CLOSE_DELAY_MS after the pointer leaves, unless a field inside
16
+ * has focus, a list inside is open or the panel is kept open. Escape closes it and returns focus to the
17
+ * button; an outside click closes it. A change inside the panel submits the enclosing
18
+ * `form.wui-filter-form`, so Razor applies each change at once. A multi-select applies its picks once its list closes.
19
+ */
20
+ export declare class WuiFilterPopover extends ElementBase {
21
+ private _doc;
22
+ private _timer;
23
+ private _sticky;
24
+ private _inside;
25
+ private _pendingSubmit;
26
+ private readonly _onEnter;
27
+ private readonly _onLeave;
28
+ private readonly _onClick;
29
+ private readonly _onChange;
30
+ private readonly _onListClose;
31
+ private readonly _onFocusOut;
32
+ private readonly _onKeyDown;
33
+ private readonly _onShortcut;
34
+ private readonly _onEscape;
35
+ private readonly _onOutside;
36
+ constructor();
37
+ get isOpen(): boolean;
38
+ connectedCallback(): void;
39
+ disconnectedCallback(): void;
40
+ private get _trigger();
41
+ private get _panel();
42
+ private get _pin();
43
+ private get _pinned();
44
+ private _clear;
45
+ private _schedule;
46
+ private _stayOpen;
47
+ private _open;
48
+ private _close;
49
+ private _reposition;
50
+ private _triggerOutOfView;
51
+ }
52
+ /**
53
+ * Registers `<wui-filter-popover>`. Idempotent: a second call leaves the first registration in place.
54
+ */
55
+ export declare function defineFilterPopover(): void;
@@ -0,0 +1,3 @@
1
+ export declare function trackTabFocus(): void;
2
+ /** True while the focus now arriving was moved there by Tab or Shift+Tab. */
3
+ export declare function isTabFocus(): boolean;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Create/update the hidden input that carries this control's value into the form.
3
+ * No `name` on the host means the control is not a form field, so no input is emitted.
4
+ *
5
+ * @param host the custom element
6
+ * @param value the value to submit
7
+ */
8
+ export declare function syncFormMirror(host: HTMLElement, value: unknown): void;
9
+ /**
10
+ * Like syncFormMirror for a control holding several values: one hidden input per value, all
11
+ * under the host's name, so a form posts a repeated field (`status=Open&status=Overdue`) that
12
+ * model binding reads as a list. No `name` on the host means no input at all.
13
+ *
14
+ * With nothing chosen it posts nothing, so a list of numbers binds empty instead of failing on
15
+ * an empty value. The one exception is a control carrying server validation (`data-val-*`): it
16
+ * keeps ONE empty input, because that input is what carries `data-val-required`, and dropping it
17
+ * would let a required control submit with no message.
18
+ *
19
+ * @param host the custom element
20
+ * @param values the values to submit, one input each
21
+ */
22
+ export declare function syncFormMirrors(host: HTMLElement, values: string[]): void;
@@ -0,0 +1,119 @@
1
+ export { IST_OFFSET_MS, IST_TIME_ZONE } from "./zone.ts";
2
+ export type FormatStyle = "number" | "currency" | "percent" | "compact" | "duration" | "date";
3
+ export type MoneyUnit = "rupees" | "paise";
4
+ export type DurationUnit = "ms" | "s" | "min" | "h";
5
+ export type FormatUnit = MoneyUnit | DurationUnit;
6
+ export type DatePattern = "day" | "month" | "year" | "datetime" | "time";
7
+ export declare const FORMAT_STYLES: readonly FormatStyle[];
8
+ export declare const CURRENCIES: readonly string[];
9
+ /** `rupees` and `paise` apply to currency and compact; `ms`, `s`, `min` and `h` to duration. */
10
+ export declare const MONEY_UNITS: readonly MoneyUnit[];
11
+ export declare const DURATION_UNITS: readonly DurationUnit[];
12
+ export declare const DATE_PATTERNS: readonly DatePattern[];
13
+ export declare function isMoneyUnit(value: string): value is MoneyUnit;
14
+ /** Shown for a missing value: the house placeholder, a plain hyphen. */
15
+ export declare const EMPTY_VALUE: string;
16
+ /** The most fraction digits a format may ask for; Intl.NumberFormat throws past its own limit. */
17
+ export declare const MAX_DECIMALS: number;
18
+ /** A plain number with Indian grouping: 12,34,567.5. `decimals` caps the fraction (default 2). */
19
+ export declare function formatNumber(value: unknown, { decimals }?: {
20
+ decimals?: unknown;
21
+ }): string;
22
+ /**
23
+ * Money: rupees get Indian grouping (₹12,34,567), any other currency three-digit grouping ($1,234,567).
24
+ * The symbol is the currency's (₹, $, €, £); any other ISO code prints as "AED 1,234". `unit: "paise"`
25
+ * takes the value in paise and divides once, here, for any currency. `decimals` (default 0) is fixed,
26
+ * so a column of amounts lines up: pass 2 where paise matter, as on an invoice.
27
+ */
28
+ export declare function formatCurrency(value: unknown, { unit, decimals, currency }?: {
29
+ unit?: string;
30
+ decimals?: unknown;
31
+ currency?: string;
32
+ }): string;
33
+ /**
34
+ * The short form. For rupees, in lakh and crore: 81.2 K, 19.8 L, ₹3.8 Cr. For any other currency, in K,
35
+ * M and B: $4.5 M. Up to two significant decimals, fewer as the number grows (a value under 0.1 keeps
36
+ * two significant digits); a value that rounds up into the next unit is shown in it (99,999.6 is
37
+ * "1 L", never "100 K"). Below a thousand it is the plain number.
38
+ */
39
+ export declare function formatCompact(value: unknown, { currency, unit }?: {
40
+ currency?: string;
41
+ unit?: string;
42
+ }): string;
43
+ /** A percentage given as a ratio, as Intl takes it: 0.125 is "12.5%". `decimals` caps the fraction (default 1). */
44
+ export declare function formatPercent(value: unknown, { decimals }?: {
45
+ decimals?: unknown;
46
+ }): string;
47
+ /**
48
+ * A length of time, from the largest unit down two places: "2h 05m", "12m 30s", "45s", "4.2s",
49
+ * "320 ms". `unit` says what the value counts (default seconds).
50
+ */
51
+ export declare function formatDuration(value: unknown, { unit }?: {
52
+ unit?: string;
53
+ }): string;
54
+ /**
55
+ * The instant a date value stands for, in epoch ms, or NaN. A number is epoch ms, a Date is
56
+ * itself, an ISO string with a time is parsed as written (send it with its zone, "Z" or an
57
+ * offset), and a bare "YYYY-MM-DD" is that calendar day in the zone: its midnight.
58
+ */
59
+ export declare function toInstant(value: unknown, timeZone?: string): number;
60
+ /** The wall-clock parts of an instant in a zone: { year, month (0-11), day, hour, minute }. */
61
+ export declare function istParts(instant: number, timeZone?: string): {
62
+ year: number;
63
+ month: number;
64
+ day: number;
65
+ hour: number;
66
+ minute: number;
67
+ };
68
+ /**
69
+ * A date in a time zone (default India Standard Time). `pattern`: `day` 04-Oct-2026 (default),
70
+ * `month` Oct-2026, `year` 2026, `datetime` 04-Oct-2026 14:05, `time` 14:05.
71
+ */
72
+ export declare function formatDate(value: unknown, { pattern, timeZone }?: {
73
+ pattern?: string;
74
+ timeZone?: string;
75
+ }): string;
76
+ /** A short day for a crowded axis: 04-Oct. */
77
+ export declare function formatDayShort(value: unknown, { timeZone }?: {
78
+ timeZone?: string;
79
+ }): string;
80
+ interface FormatOptions {
81
+ style?: string;
82
+ currency?: string;
83
+ unit?: string;
84
+ decimals?: unknown;
85
+ pattern?: string;
86
+ timeZone?: string;
87
+ }
88
+ /**
89
+ * Format a value by a format description, the one call the chart makes everywhere:
90
+ * `{ style, currency, unit, decimals, pattern }`. With no format a number gets Indian grouping
91
+ * and anything else is shown as text. A missing value is the house placeholder.
92
+ *
93
+ * @param value
94
+ * @param format
95
+ * @returns
96
+ */
97
+ export declare function formatValue(value: unknown, format?: FormatOptions): string;
98
+ /**
99
+ * The short form of a format, for axis ticks: money and plain numbers go compact (₹3.8 Cr,
100
+ * 81.2 K), anything else keeps its own format.
101
+ */
102
+ export declare function compactFormatOf(format?: FormatOptions): FormatOptions;
103
+ /**
104
+ * House date-time, "21-Sep-2026, 3:30 PM", in timeZone (default "Asia/Kolkata"); EMPTY_VALUE for null or an invalid date.
105
+ *
106
+ * @param value
107
+ * @param options
108
+ * @returns
109
+ */
110
+ export declare function formatDateTime(value: unknown, { timeZone }?: {
111
+ timeZone?: string;
112
+ }): string;
113
+ /**
114
+ * The short name of a zone as the reader knows it ("IST" for Asia/Kolkata).
115
+ *
116
+ * @param timeZone
117
+ * @returns
118
+ */
119
+ export declare function timeZoneLabel(timeZone?: string): string;
@@ -0,0 +1,12 @@
1
+ import type { WuiElementTagMap } from "../globals.ts";
2
+ export interface GlobalChunk {
3
+ entries?: string[];
4
+ file?: string;
5
+ tags: readonly (keyof WuiElementTagMap)[];
6
+ selfContained?: boolean;
7
+ }
8
+ export declare const GLOBAL_CHUNKS: Readonly<Record<string, GlobalChunk>>;
9
+ export declare const SHARED_MODULE_FILES: Readonly<Record<string, string>>;
10
+ export declare const CHUNK_DIR = "ui-elements/";
11
+ export declare function chunkOf(key: string): GlobalChunk;
12
+ export declare function chunkFile(key: string): string;
@@ -0,0 +1,57 @@
1
+ import { WuiDataTable } from "../WuiDataTable.ts";
2
+ import { WuiDatePicker } from "../WuiDatePicker.ts";
3
+ import { WuiDock } from "../WuiDock.ts";
4
+ import { WuiHoverCard } from "../WuiHoverCard.ts";
5
+ import { WuiNavigationMenu } from "../WuiNavigationMenu.ts";
6
+ import { WuiNotificationCenter } from "../WuiNotificationCenter.ts";
7
+ import { WuiOnboardingChecklist } from "../WuiOnboardingChecklist.ts";
8
+ import { WuiOtp } from "../WuiOtp.ts";
9
+ import { WuiOverflow } from "../WuiOverflow.ts";
10
+ import { WuiRating } from "../WuiRating.ts";
11
+ import { WuiRecordPager } from "../WuiRecordPager.ts";
12
+ import { WuiRelativeTime } from "../WuiRelativeTime.ts";
13
+ import { WuiRollingNumber } from "../WuiRollingNumber.ts";
14
+ import { WuiSelect } from "../WuiSelect.ts";
15
+ import { WuiShortcuts } from "../WuiShortcuts.ts";
16
+ import { WuiShowMore } from "../WuiShowMore.ts";
17
+ import { WuiTruncate } from "../WuiTruncate.ts";
18
+ import { WuiWhatsNew } from "../WuiWhatsNew.ts";
19
+ import { whenElementsReady } from "./loader.ts";
20
+ import { SHARED_MODULES } from "./shared.ts";
21
+ declare global {
22
+ var WeborityUiElementsInternal: {
23
+ version: string;
24
+ modules: typeof SHARED_MODULES;
25
+ } | undefined;
26
+ }
27
+ export { AVATAR_ACCEPT, AVATAR_MAX_SIZE_MB, AVATAR_OUTPUT_SIZE, AVATAR_OUTPUT_TYPE, AVATAR_PREVIEW_SIZES, AVATAR_TEXT, avatarCropOptions, avatarUnreadableMessage, isHeicFile, } from "../avatarPicker.ts";
28
+ export { collapseSearch, initCollapsibleSearch, openSearch, SEARCH_OPEN_KEY } from "../collapsibleSearch.ts";
29
+ export { COMMAND_SHORTCUT_ATTRIBUTE, initCommandShortcuts, isCommandChord } from "../commandShortcut.ts";
30
+ export { COPY_FEEDBACK_MS, copyTextToClipboard } from "../copyText.ts";
31
+ export { CURRENCY_SYMBOLS, currencyPrefix, DEFAULT_CURRENCY, isCurrencyCode } from "../currency.ts";
32
+ export { COLUMN_MAX_WIDTH, COLUMN_MIN_WIDTH, clampColumnWidth, DATA_TABLE_TEXT, groupCount, groupItems, identityCell, measureRows, PIN_AT_VAR, PIN_SIDES, pinAtValue, pinClasses, pinOffsetVar, planPins, playRowMoves, RESIZE_STEP, RESIZE_STEP_LARGE, ROW_HEIGHTS, ROW_MOVE_LIMIT, ROW_MOVE_MS, ROW_SAVE_ATTR, ROW_SAVE_ERROR_CLASS, ROW_SAVE_STATES, readColumnWidths, rowLabel, rowOrderChanged, saveOutcomeText, setRowSaveState, settledRows, VIRTUAL_OVERSCAN, virtualRange, writeColumnWidths, } from "../dataTable.ts";
33
+ export { acceptDroppedFiles, attachFileDrop } from "../fileDrop.ts";
34
+ export { acceptLabel, DEFAULT_IMAGE_ACCEPT, DEFAULT_MAX_SIZE_MB, formatFileSize, isImageFile, isImageOnlyAccept, isPdfFile, matchesAccept, validateFile, } from "../fileValidation.ts";
35
+ export { FILTER_POPOVER_MAX_CHIPS } from "../filterPopover.ts";
36
+ export { CURRENCIES, DATE_PATTERNS, DURATION_UNITS, EMPTY_VALUE, FORMAT_STYLES, formatCompact, formatCurrency, formatDate, formatDateTime, formatDuration, formatNumber, formatPercent, formatValue, IST_TIME_ZONE, MONEY_UNITS, timeZoneLabel, toInstant, } from "../formatters.ts";
37
+ export { attachInputMask, formatMasked, initInputMasks, isMaskPattern, MASK_INPUT_TYPES, MASK_NAMES, maskedPostValue, postedMasked, rawMasked, resolveMask, } from "../inputMask.ts";
38
+ export { MENTION_ID_PATTERN, mentionedIds, mentionLabel, mentionTextFromValue, mentionValueFromText, parseMentionValue, } from "../mentionText.ts";
39
+ export { groupNotificationsByDay, NOTIFICATION_COUNT_CAP, NOTIFICATION_TEXT, notificationCountText, notificationDayHeading, notificationTime, notificationTriggerLabel, notificationUnreadAnnouncement, } from "../notificationDays.ts";
40
+ export { withTrustedLabel } from "../optionLabel.ts";
41
+ export { releaseOverlay } from "../overlayRelease.ts";
42
+ export { applyBarBulk, BAR_BULK_IN_BAR_ATTRIBUTE, barBulkCountText, initPageBarBulk } from "../pageBarBulk.ts";
43
+ export { buildPasswordRules, DEFAULT_PASSWORD_RULES, DEFAULT_REQUIREMENTS_TITLE, evaluatePassword, passwordSatisfies, } from "../passwordRules.ts";
44
+ export { formatRelativeTime, relativeTimeTitle } from "../relativeTime.ts";
45
+ export { attachRowDrag, DROP_OVER_CLASS, initRowDrag, ROW_DRAG_TYPE, ROW_DROP_EVENT, syncTargets, tickedKeys } from "../rowDrop.ts";
46
+ export { attachScrollEdges, initScrollEdges, SCROLL_EDGE_SELECTOR } from "../scrollEdges.ts";
47
+ export * from "../server/index.ts";
48
+ export { ariaKeyShortcuts, inShortcutScope, isTypingTarget, LIST_KEYS, moveFocus, runShortcut, SELECT_KEY, SHORTCUT_EVENT, SHORTCUT_SCOPE_ATTRIBUTE, SHORTCUT_TEXT, SHORTCUTS_OFF_ATTRIBUTE, shortcutKey, shortcutName, shortcutsOff, } from "../shortcutKeys.ts";
49
+ export { deriveStepStatus, stepperHeaderItems } from "../stepperHeader.ts";
50
+ export { initSubmitOnce, SUBMIT_ONCE_ATTRIBUTE } from "../submitOnce.ts";
51
+ export { addRowSelectCells, addSelectColumn, attachShiftRange, createSelectHeaderCell, createSelectRowCell, createSelectSpacerCell, SELECT_ALL_LABEL, SELECT_CELL_CLASS, SELECT_ROW_LABEL, syncSelectAll, } from "../tableSelect.ts";
52
+ export { matchSegments } from "../textMatch.ts";
53
+ export { applyTheme, DEFAULT_THEME_EFFECT, DEFAULT_THEME_STORAGE_KEY, nextTheme, readStoredTheme, resolveTheme, storeTheme, THEME_BOOT_SCRIPT_BODY, THEME_CHANGE_EVENT, THEME_EFFECT_DURATION, THEME_EFFECTS, THEME_MODES, THEME_SWITCHING_CLASS, themeBootScript, themeKeyframes, transitionTheme, watchSystemTheme, } from "../themeTransition.ts";
54
+ export { WHATS_NEW_READ_EVENT } from "../WuiWhatsNew.ts";
55
+ export { isTimeZone, todayIn, wallClockOf, zoneOffsetMs, zoneParts } from "../zone.ts";
56
+ export { glyphSvg } from "./glyphs.ts";
57
+ export { WuiDataTable, WuiDatePicker, WuiDock, WuiHoverCard, WuiNavigationMenu, WuiNotificationCenter, WuiOnboardingChecklist, WuiOtp, WuiOverflow, WuiRating, WuiRecordPager, WuiRelativeTime, WuiRollingNumber, WuiSelect, WuiShortcuts, WuiShowMore, WuiTruncate, WuiWhatsNew, whenElementsReady, };
@@ -0,0 +1,10 @@
1
+ export declare const GLYPH_CHUNK = "glyphs";
2
+ /** Marks an <svg> written before its glyph arrived; the glyphs chunk fills it in place. */
3
+ export declare const GLYPH_PENDING_ATTRIBUTE = "data-wui-glyph-pending";
4
+ /** The library's single icon SVG emitter, identical markup to Razor's IconMarkup.Render. */
5
+ export declare function glyphSvg(name: string, { size, className }?: {
6
+ size?: number;
7
+ className?: string;
8
+ }): string;
9
+ /** Adds the glyphs the chunk carries and fills every glyph written before they arrived. */
10
+ export declare function registerGlyphs(glyphs: Readonly<Record<string, string>>): void;
@@ -0,0 +1,16 @@
1
+ import { CHUNK_DIR } from "./chunks.ts";
2
+ export { CHUNK_DIR };
3
+ export declare const ELEMENTS_DEFINED_EVENT = "wui-elements:defined";
4
+ export declare const ELEMENTS_LOAD_ERROR_EVENT = "wui-elements:load-error";
5
+ /** Delay before the one retry of a failed chunk request; a second failure is final for the page. */
6
+ export declare const CHUNK_RETRY_MS = 1000;
7
+ /** Starts watching the page for on-demand tags; idempotent. core.js calls it once while it runs. */
8
+ export declare function startElementLoader(coreScript?: Pick<HTMLScriptElement, "src" | "nonce"> | null): void;
9
+ /** Stops watching the page and forgets every chunk, so the loader can start again (tests start one per case). */
10
+ export declare function stopElementLoader(): void;
11
+ /** Resolves once every on-demand element under root is defined; rejects with an Error naming a failed chunk. */
12
+ export declare function whenElementsReady(root?: Document | Element): Promise<void>;
13
+ /** A file beside the core script (ui-phone.global.js, ui-elements/<key>.global.js), with its own ?v when known. */
14
+ export declare function assetUrl(file: string): string;
15
+ /** Loads one chunk by key; resolves when all its tags are defined. */
16
+ export declare function loadChunk(key: string): Promise<void>;
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1 @@
1
+ export {};