@webority/ui-elements 0.149.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,159 @@
1
+ /** A resized column never narrows past this, so its label and handle stay usable. */
2
+ export declare const COLUMN_MIN_WIDTH = 48;
3
+ /** Nor widens past this: the handle's range, which a focusable separator has to state. */
4
+ export declare const COLUMN_MAX_WIDTH = 1200;
5
+ /** Arrow keys on a resize handle move the edge by this; with Shift, by RESIZE_STEP_LARGE. */
6
+ export declare const RESIZE_STEP = 10;
7
+ export declare const RESIZE_STEP_LARGE = 50;
8
+ /** The pin sides a column takes (`pin` on a React column, `data-pin` on a Razor header cell). */
9
+ export declare const PIN_SIDES: string[];
10
+ /** Rows rendered beyond each edge of a virtual table's box, so a fast scroll never shows a gap. */
11
+ export declare const VIRTUAL_OVERSCAN = 8;
12
+ /** A row's height at each density, until a rendered row is measured. */
13
+ export declare const ROW_HEIGHTS: {
14
+ comfortable: number;
15
+ cozy: number;
16
+ compact: number;
17
+ };
18
+ export declare const DATA_TABLE_TEXT: {
19
+ resize: (label: string) => string;
20
+ width: (px: number) => string;
21
+ rows: (n: number) => string;
22
+ saved: (label: string) => string;
23
+ savedMany: (n: number) => string;
24
+ notSaved: (label: string, reason?: string) => string;
25
+ };
26
+ /** Formats a group's row count the way the group header shows it (Indian digit grouping). */
27
+ export declare const groupCount: (n: number) => string;
28
+ /** Clamps a dragged or typed width to the minimum and rounds it to whole pixels. */
29
+ export declare const clampColumnWidth: (px: unknown) => number;
30
+ /**
31
+ * Buckets items by group in the order each group first appears, keeping the items' own order inside
32
+ * each group, so a sorted list stays sorted within its groups. `order` (keys from an earlier pass)
33
+ * keeps the groups where they were while rows move.
34
+ * @param items
35
+ * @param keyOf
36
+ * @param order
37
+ */
38
+ export declare function groupItems<T>(items: readonly T[], keyOf: (item: T, index: number) => string, order?: readonly string[]): {
39
+ key: string;
40
+ items: T[];
41
+ }[];
42
+ /**
43
+ * The slice of a list of uniform rows to render in a scroll box: rows from `start` to `end`
44
+ * (exclusive) and the heights of the spacers above and below them. `start` is always even, so a
45
+ * striped table keeps its stripes on the same rows while the window moves.
46
+ * @param box
47
+ */
48
+ export declare function virtualRange({ scrollTop, viewport, rowHeight, count, overscan, }: {
49
+ scrollTop: number;
50
+ viewport: number;
51
+ rowHeight: number;
52
+ count: number;
53
+ overscan?: number;
54
+ }): {
55
+ start: number;
56
+ end: number;
57
+ before: number;
58
+ after: number;
59
+ };
60
+ /**
61
+ * The column widths a person set on this table, remembered in this browser by `viewKey`. Separate from
62
+ * the `wui-view:` entry (hidden columns and sort), which its writers replace whole. Storage can be
63
+ * missing or throw (private mode), so a failure reads as nothing remembered.
64
+ * @param viewKey
65
+ */
66
+ export declare function readColumnWidths(viewKey: string | null): Record<string, number>;
67
+ /** Remembers `widths` for `viewKey`; an empty object forgets them. */
68
+ export declare function writeColumnWidths(viewKey: string | null, widths: Record<string, number>): void;
69
+ /**
70
+ * The offset variable a pinned cell reads: `--wui-pin-start-<n>` for the n-th start-pinned column,
71
+ * counted from the start, and `--wui-pin-end-<n>` counted from the end. The table holds the values.
72
+ */
73
+ export declare const pinOffsetVar: (side: string, ordinal: number) => string;
74
+ /** The custom property a pinned cell sets; the theme reads it as the cell's inline-start or inline-end offset. */
75
+ export declare const PIN_AT_VAR = "--wui-pin-at";
76
+ /** The value of a pinned cell's PIN_AT_VAR: a reference to the table's offset, so a row rendered later picks it up. */
77
+ export declare const pinAtValue: (side: string, ordinal: number) => string;
78
+ export type PinPlan = {
79
+ side: "start" | "end";
80
+ ordinal: number;
81
+ edge: boolean;
82
+ };
83
+ /**
84
+ * Plans the pinned columns of a header row from each cell's side (`"start"`, `"end"` or null):
85
+ * for each column its side, ordinal and whether it is the edge (the last start-pinned or the first
86
+ * end-pinned column, which draws the scroll shadow). The select and expand columns before a
87
+ * start-pinned column pin with it.
88
+ * @param sides
89
+ */
90
+ export declare function planPins(sides: readonly (string | null)[]): (PinPlan | null)[];
91
+ /** The classes a pinned cell carries for its plan entry. */
92
+ export declare const pinClasses: (pin: PinPlan | null | undefined) => string;
93
+ /** A reorder animates only up to this many rows; past it, measuring and moving every row costs more than the cue gives. */
94
+ export declare const ROW_MOVE_LIMIT = 200;
95
+ /** How long a moved row takes to glide to its new place. */
96
+ export declare const ROW_MOVE_MS = 220;
97
+ /**
98
+ * Where each shown row sits now, for playRowMoves after a reorder. offsetTop is measured from the table,
99
+ * so neither the scroll position nor a move still running changes it. Null past ROW_MOVE_LIMIT rows.
100
+ * @param rows
101
+ */
102
+ export declare function measureRows(rows: Iterable<HTMLTableRowElement>): Map<string | HTMLTableRowElement, number> | null;
103
+ /**
104
+ * Glides each row that moved from where `before` saw it to where it is now (a FLIP move, run by the
105
+ * browser's animation engine, so nothing is left on the row afterwards). Does nothing under reduced
106
+ * motion or past ROW_MOVE_LIMIT rows. Returns how many rows move.
107
+ * @param rows
108
+ * @param before
109
+ */
110
+ export declare function playRowMoves(rows: Iterable<HTMLTableRowElement>, before: Map<string | HTMLTableRowElement, number> | null): number;
111
+ /**
112
+ * Whether the rows in both key lists changed order: a sort or a reorder. A row added or removed alone
113
+ * is not a reorder, so an optimistic row arriving does not make the others glide.
114
+ * @param before
115
+ * @param after
116
+ */
117
+ export declare function rowOrderChanged(before: readonly unknown[] | null, after: readonly unknown[] | null): boolean;
118
+ /** The save states a row shows: `saving` while its add or change is on the way, `error` once it failed. */
119
+ export declare const ROW_SAVE_STATES: string[];
120
+ type RowSave = {
121
+ state: string | null;
122
+ label: string;
123
+ message?: string;
124
+ };
125
+ /** The row attribute that carries its save state. */
126
+ export declare const ROW_SAVE_ATTR = "data-wui-save-state";
127
+ /** The line under a failed row's identity cell that says why. */
128
+ export declare const ROW_SAVE_ERROR_CLASS = "wui-row-save-error";
129
+ /** A row's identity cell: its `.wui-name-cell`, else its first cell after the select and expand cells. */
130
+ export declare const identityCell: (row: HTMLTableRowElement) => HTMLTableCellElement | null;
131
+ /** What a row is called in an announcement: its `.u-name`, else its identity cell's text, without an error line. */
132
+ export declare function rowLabel(row: HTMLTableRowElement): string;
133
+ /**
134
+ * Shows a row's save state the way React AppDataTable renders it: `saving` sets aria-busy, `error` puts
135
+ * `message` on a line under the identity cell, and null clears both.
136
+ * @param row
137
+ * @param state
138
+ * @param message
139
+ */
140
+ export declare function setRowSaveState(row: HTMLTableRowElement, state: string | null, message?: string): void;
141
+ /**
142
+ * The rows that left the saving state between two passes, keyed alike: saved when they no longer show a
143
+ * state, failed when they show `error`. A row that disappeared (an added row replaced by the server's,
144
+ * under a new key) is neither, so the page's own answer speaks for it.
145
+ * @param before
146
+ * @param after
147
+ */
148
+ export declare function settledRows(before: Map<unknown, RowSave> | null, after: Map<unknown, RowSave>): {
149
+ label: string;
150
+ ok: boolean;
151
+ message: string;
152
+ }[];
153
+ /** The polite announcement for rows that settled: "Ana Rao saved.", "3 rows saved." or "Ana Rao was not saved. <reason>". */
154
+ export declare function saveOutcomeText(settled: readonly {
155
+ label: string;
156
+ ok: boolean;
157
+ message?: string;
158
+ }[]): string;
159
+ export {};
@@ -0,0 +1,19 @@
1
+ export declare const PRESET_NAMES: readonly ["today", "yesterday", "last7Days", "last30Days", "thisMonth", "lastMonth", "thisFinancialYear"];
2
+ export type PresetName = (typeof PRESET_NAMES)[number];
3
+ export interface Preset {
4
+ label: string;
5
+ start: string;
6
+ end: string;
7
+ }
8
+ export interface PresetOptions {
9
+ timeZone?: string;
10
+ financialYearStart?: number;
11
+ }
12
+ /** One named preset as { label, start, end }; null for a name that is not one of PRESET_NAMES. */
13
+ export declare function resolvePreset(name: string, now?: Date, { timeZone, financialYearStart }?: PresetOptions): Preset | null;
14
+ /**
15
+ * The `presets` attribute as resolved presets. Either a comma list of names (`today,last7Days`) or a
16
+ * JSON array whose items are names or { label, start, end } objects. An item that is neither is
17
+ * skipped with a console warning.
18
+ */
19
+ export declare function parsePresets(raw: unknown, now?: Date, options?: PresetOptions): Preset[];
@@ -0,0 +1,3 @@
1
+ export declare function countryForTimeZone(zone: string | undefined): string | null;
2
+ export declare function countryForLanguage(tag: string | undefined): string | null;
3
+ export declare function detectCountry(): string | null;
@@ -0,0 +1,6 @@
1
+ import type { WuiElementTagMap } from "./globals.ts";
2
+ /**
3
+ * Registers a custom element once; a second registration of the same tag is a no-op.
4
+ * Rescues properties set on an element before its definition arrived.
5
+ */
6
+ export declare function defineElement<K extends keyof WuiElementTagMap>(name: K, ctor: new () => WuiElementTagMap[K]): void;
@@ -0,0 +1,2 @@
1
+ export declare function devWarn(message: string, ...optionalParams: unknown[]): void;
2
+ export declare function devError(message: unknown, ...optionalParams: unknown[]): void;
package/types/dom.d.ts ADDED
@@ -0,0 +1,8 @@
1
+ type ElementClass<T extends Element> = abstract new (...args: never[]) => T;
2
+ /** The value, or a thrown Error with `message` when it is null or undefined. */
3
+ export declare function must<T>(value: T | null | undefined, message: string): T;
4
+ /** `value` checked to be a `type`, or a thrown TypeError with `message`. */
5
+ export declare function elementOf<T extends Element>(value: unknown, type: ElementClass<T>, message: string): T;
6
+ /** The closest ancestor-or-self of `target` matching `selector`, or null when `target` is not an Element. */
7
+ export declare function closestOf(target: EventTarget | null, selector: string): Element | null;
8
+ export {};
@@ -0,0 +1,24 @@
1
+ export declare const DEFAULT_SNAP_POINTS: number[];
2
+ export declare const FLICK_VELOCITY = 0.5;
3
+ export interface ResolveSnapArgs {
4
+ points: number[];
5
+ index: number;
6
+ visible: number;
7
+ velocity: number;
8
+ canDismiss: boolean;
9
+ }
10
+ /**
11
+ * Reads snap points from a comma list ("30,60,95") or an array into ascending, de-duplicated
12
+ * percentages between 10 and 100. Anything unusable gives the default points.
13
+ */
14
+ export declare function parseSnapPoints(value: unknown, fallback?: number[]): number[];
15
+ /**
16
+ * Where a released drag lands: an index into `points`, or -1 to dismiss.
17
+ *
18
+ * @param args.points Ascending snap percentages.
19
+ * @param args.index The point the sheet was resting on when the drag began.
20
+ * @param args.visible The percentage of the viewport the sheet shows at release.
21
+ * @param args.velocity Pixels per millisecond, positive downwards.
22
+ * @param args.canDismiss False when the sheet cannot be dragged away.
23
+ */
24
+ export declare function resolveSnap(args: ResolveSnapArgs): number;
@@ -0,0 +1,2 @@
1
+ export declare const NO_DOM_MESSAGE = "@webority/ui-elements needs a browser DOM; import its types or helpers entry on the server";
2
+ export declare const ElementBase: typeof HTMLElement;
@@ -0,0 +1,5 @@
1
+ import type { WuiElementTagMap } from "./globals.ts";
2
+ /** Whether the element is registered; false where there is no registry, as in a server render. */
3
+ export declare function isElementDefined(tag: keyof WuiElementTagMap): boolean;
4
+ /** Settles once the element is registered. Browser only: call it after the element's entry was imported. */
5
+ export declare function whenElementDefined(tag: keyof WuiElementTagMap): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { WuiCarousel } from "../WuiCarousel.ts";
2
+ export { WuiCarousel };
@@ -0,0 +1,2 @@
1
+ import { WuiCodeBlock } from "../WuiCodeBlock.ts";
2
+ export { WuiCodeBlock };
@@ -0,0 +1,2 @@
1
+ import { WuiCommandPalette } from "../WuiCommandPalette.ts";
2
+ export { WuiCommandPalette };
@@ -0,0 +1,4 @@
1
+ import { COMMENT_INTENTS, COMMENT_REACTIONS, COMMENT_TEXT } from "../commentText.ts";
2
+ import { WuiCommentThread } from "../WuiCommentThread.ts";
3
+ import "./mention-input.ts";
4
+ export { COMMENT_INTENTS, COMMENT_REACTIONS, COMMENT_TEXT, WuiCommentThread };
@@ -0,0 +1,2 @@
1
+ import { WuiConsentBanner } from "../WuiConsentBanner.ts";
2
+ export { WuiConsentBanner };
@@ -0,0 +1,2 @@
1
+ import { WuiContextMenu } from "../WuiContextMenu.ts";
2
+ export { WuiContextMenu };
@@ -0,0 +1,3 @@
1
+ import { WuiDataTable } from "../WuiDataTable.ts";
2
+ 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";
3
+ export { WuiDataTable };
@@ -0,0 +1,2 @@
1
+ import { WuiDateRange } from "../WuiDateRange.ts";
2
+ export { WuiDateRange };
@@ -0,0 +1,2 @@
1
+ import { WuiDatePicker } from "../WuiDatePicker.ts";
2
+ export { WuiDatePicker };
@@ -0,0 +1,2 @@
1
+ import { WuiDock } from "../WuiDock.ts";
2
+ export { WuiDock };
@@ -0,0 +1,2 @@
1
+ import { WuiDrawer } from "../WuiDrawer.ts";
2
+ export { WuiDrawer };
@@ -0,0 +1,2 @@
1
+ import { FILTER_POPOVER_MAX_CHIPS } from "../filterPopover.ts";
2
+ export { FILTER_POPOVER_MAX_CHIPS };
@@ -0,0 +1,2 @@
1
+ import { WuiHoverCard } from "../WuiHoverCard.ts";
2
+ export { WuiHoverCard };
@@ -0,0 +1,2 @@
1
+ import { WuiImageCrop } from "../WuiImageCrop.ts";
2
+ export { WuiImageCrop };
@@ -0,0 +1,3 @@
1
+ import { INLINE_EDIT_SAVED_MS, INLINE_EDIT_TEXT, INLINE_EDIT_TYPES, inlineEditText } from "../inlineEditText.ts";
2
+ import { WuiInlineEdit } from "../WuiInlineEdit.ts";
3
+ export { INLINE_EDIT_SAVED_MS, INLINE_EDIT_TEXT, INLINE_EDIT_TYPES, inlineEditText, WuiInlineEdit };
@@ -0,0 +1,2 @@
1
+ export * from "../kanban.ts";
2
+ export * from "../kanbanModel.ts";
@@ -0,0 +1,2 @@
1
+ import { WuiLeadPopup } from "../WuiLeadPopup.ts";
2
+ export { WuiLeadPopup };
@@ -0,0 +1,2 @@
1
+ import { WuiLightbox } from "../WuiLightbox.ts";
2
+ export { WuiLightbox };
@@ -0,0 +1,2 @@
1
+ import { WuiMarkdown } from "../WuiMarkdown.ts";
2
+ export { WuiMarkdown };
@@ -1,5 +1,3 @@
1
- export type MentionSegment = { text: string } | { id: string; label: string };
2
-
3
- export function parseMentionValue(value: string): MentionSegment[];
4
-
5
- export function mentionedIds(value: string): string[];
1
+ import { MENTION_ID_PATTERN, mentionLabel, mentionTextFromValue, mentionValueFromText } from "../mentionText.ts";
2
+ import { MENTION_MAX_QUERY, MENTION_MAX_RESULTS, MENTION_TEXT, WuiMentionInput } from "../WuiMentionInput.ts";
3
+ export { MENTION_ID_PATTERN, MENTION_MAX_QUERY, MENTION_MAX_RESULTS, MENTION_TEXT, mentionLabel, mentionTextFromValue, mentionValueFromText, WuiMentionInput, };
@@ -0,0 +1,2 @@
1
+ import { WuiNavigationMenu } from "../WuiNavigationMenu.ts";
2
+ export { WuiNavigationMenu };
@@ -0,0 +1,2 @@
1
+ import { WuiNotificationCenter } from "../WuiNotificationCenter.ts";
2
+ export { WuiNotificationCenter };
@@ -0,0 +1,2 @@
1
+ import { WuiOnboardingChecklist } from "../WuiOnboardingChecklist.ts";
2
+ export { WuiOnboardingChecklist };
@@ -0,0 +1,2 @@
1
+ import { WuiOrgTree } from "../WuiOrgTree.ts";
2
+ export { WuiOrgTree };
@@ -0,0 +1,2 @@
1
+ import { WuiOtp } from "../WuiOtp.ts";
2
+ export { WuiOtp };
@@ -0,0 +1,2 @@
1
+ import { WuiOverflow } from "../WuiOverflow.ts";
2
+ export { WuiOverflow };
@@ -0,0 +1,2 @@
1
+ import { WuiPhone } from "../WuiPhone.ts";
2
+ export { WuiPhone };
@@ -0,0 +1,2 @@
1
+ import { WuiRating } from "../WuiRating.ts";
2
+ export { WuiRating };
@@ -0,0 +1,2 @@
1
+ import { WuiRecordPager } from "../WuiRecordPager.ts";
2
+ export { WuiRecordPager };
@@ -0,0 +1,3 @@
1
+ import { WuiRelativeTime } from "../WuiRelativeTime.ts";
2
+ export { formatRelativeTime, relativeTimeTitle } from "../relativeTime.ts";
3
+ export { WuiRelativeTime };
@@ -0,0 +1,2 @@
1
+ import { WuiResizable } from "../WuiResizable.ts";
2
+ export { WuiResizable };
@@ -0,0 +1,2 @@
1
+ import { WuiRollingNumber } from "../WuiRollingNumber.ts";
2
+ export { WuiRollingNumber };
@@ -0,0 +1,2 @@
1
+ import { WuiSavedViews } from "../WuiSavedViews.ts";
2
+ export { WuiSavedViews };
@@ -0,0 +1,2 @@
1
+ import { WuiSelect } from "../WuiSelect.ts";
2
+ export { WuiSelect };
@@ -0,0 +1,2 @@
1
+ import { WuiShortcuts } from "../WuiShortcuts.ts";
2
+ export { WuiShortcuts };
@@ -0,0 +1,2 @@
1
+ import { WuiShowMore } from "../WuiShowMore.ts";
2
+ export { WuiShowMore };
@@ -0,0 +1,2 @@
1
+ import { WuiSlider } from "../WuiSlider.ts";
2
+ export { WuiSlider };
@@ -0,0 +1,2 @@
1
+ import { WuiSortable } from "../WuiSortable.ts";
2
+ export { WuiSortable };
@@ -0,0 +1 @@
1
+ export { STATUS_TONES, WuiStatusIcon } from "../statusIcons.ts";
@@ -0,0 +1,2 @@
1
+ import { WuiTimePicker } from "../WuiTimePicker.ts";
2
+ export { WuiTimePicker };
@@ -1,6 +1 @@
1
- export interface LocalSeenStore {
2
- isSeen: (tourId: string) => Promise<boolean>;
3
- markSeen: (tourId: string, outcome?: "finished" | "skipped") => Promise<void>;
4
- }
5
-
6
- export function createLocalSeenStore(prefix?: string, storage?: Storage): LocalSeenStore;
1
+ export { WuiTour } from "../WuiTour.ts";
@@ -0,0 +1,2 @@
1
+ import { WuiTree } from "../WuiTree.ts";
2
+ export { WuiTree };
@@ -0,0 +1,2 @@
1
+ import { WuiTruncate } from "../WuiTruncate.ts";
2
+ export { WuiTruncate };
@@ -0,0 +1,2 @@
1
+ import { WHATS_NEW_READ_EVENT, WuiWhatsNew } from "../WuiWhatsNew.ts";
2
+ export { WHATS_NEW_READ_EVENT, WuiWhatsNew };
@@ -0,0 +1,3 @@
1
+ import { WuiWizard } from "../WuiWizard.ts";
2
+ import { WuiWizardStep } from "../WuiWizardStep.ts";
3
+ export { WuiWizard, WuiWizardStep };
@@ -0,0 +1,4 @@
1
+ export declare const BUSY_CLASS = "wui-field-busy";
2
+ export declare const isReadOnly: (host: Element) => boolean;
3
+ export declare const isInert: (host: Element) => boolean;
4
+ export declare function syncFieldState(host: Element, control: Element | null | undefined): void;
@@ -0,0 +1,31 @@
1
+ export interface FileDropRules {
2
+ accept?: string;
3
+ maxSizeMb?: number;
4
+ multiple?: boolean;
5
+ }
6
+ export interface FileDropRejection {
7
+ file: File;
8
+ message: string;
9
+ }
10
+ export interface FileDropResult {
11
+ files: File[];
12
+ rejections: FileDropRejection[];
13
+ }
14
+ /**
15
+ * The type and size checks every upload part applies to dropped or chosen files (validateFile's rules).
16
+ * @param files
17
+ * @param rules
18
+ */
19
+ export declare function acceptDroppedFiles(files: FileList | File[] | null | undefined, rules: FileDropRules): FileDropResult;
20
+ /**
21
+ * Wires drag and drop on target: overClass while files are over it (enter and leave counted, so children do not flicker), the checks on drop.
22
+ * @param target
23
+ * @param options
24
+ * @returns Removes the listeners.
25
+ */
26
+ export declare function attachFileDrop(target: HTMLElement, options: FileDropRules & {
27
+ overClass: string;
28
+ isDisabled?: () => boolean;
29
+ onFiles: (files: File[]) => void;
30
+ onReject: (rejection: FileDropRejection) => void;
31
+ }): () => void;
@@ -0,0 +1,47 @@
1
+ export declare const DEFAULT_IMAGE_ACCEPT = "image/png,image/jpeg,image/webp";
2
+ export declare const DEFAULT_MAX_SIZE_MB = 5;
3
+ export interface FileLike {
4
+ name?: string;
5
+ url?: string;
6
+ type?: string;
7
+ }
8
+ /**
9
+ * Is this an image? Drives whether a picked file shows a thumbnail or a file-type icon.
10
+ * Accepts a File or a plain name/url string, since an existing attachment carries only a name.
11
+ * A browser reports an empty `file.type` often enough that extension is the reliable fallback.
12
+ */
13
+ export declare function isImageFile(input: string | FileLike | null): boolean;
14
+ /**
15
+ * A file's size as both surfaces write it: whole bytes below 1 KB ("193 B"), so a small file
16
+ * never reads "0 KB", then one decimal in KB, MB or GB ("2.0 KB", "1.5 MB"). The Razor tag
17
+ * helper writes the same text for a stored file on the server.
18
+ */
19
+ export declare function formatFileSize(bytes: number): string;
20
+ /**
21
+ * Is this a PDF? Drives whether a picked file shows a rendered first page. Accepts a File or a
22
+ * plain name/url string, since an existing attachment carries only a name or a url; a query
23
+ * string or fragment on a url is ignored.
24
+ */
25
+ export declare function isPdfFile(input: string | FileLike | null | undefined): boolean;
26
+ /**
27
+ * "Add an image" vs "Add a file": is every token in an `accept` list an image type?
28
+ * A mixed or non-image `accept` means the field is a general attachment.
29
+ */
30
+ export declare function isImageOnlyAccept(accept: string): boolean;
31
+ /** "PNG, JPG or WEBP" (or "PNG, PDF or text file"): the human form of an `accept` list, for hints and error copy. */
32
+ export declare function acceptLabel(accept: string | null | undefined): string;
33
+ /** Does the file satisfy an `accept` list? Matches MIME type, wildcard and extension. */
34
+ export declare function matchesAccept(file: FileLike, accept: string | null | undefined): boolean;
35
+ /**
36
+ * Validate a picked file. Returns a user-facing message, or null when acceptable.
37
+ * Both surfaces show this exact string, so the two never disagree about a file.
38
+ *
39
+ * An absent `accept` or `maxSizeMb` takes the default. An empty `accept` takes any type, and a
40
+ * `maxSizeMb` that is not a positive number sets no size limit.
41
+ */
42
+ export declare function validateFile(file: (FileLike & {
43
+ size: number;
44
+ }) | null | undefined, opts?: {
45
+ accept?: string;
46
+ maxSizeMb?: number | null;
47
+ }): string | null;
@@ -0,0 +1,3 @@
1
+ import type { PdfFirstPageOptions, PdfFirstPageSource } from "./fileViewerPdf.ts";
2
+ export { fileKind, fileNameFromUrl, WuiFileViewer } from "./WuiFileViewer.ts";
3
+ export declare const renderPdfFirstPage: (source: PdfFirstPageSource, options?: PdfFirstPageOptions) => Promise<Blob>;
@@ -0,0 +1,69 @@
1
+ export interface ImageShell {
2
+ host: HTMLElement;
3
+ center: HTMLElement;
4
+ end: HTMLElement;
5
+ body: HTMLElement;
6
+ name: () => string;
7
+ print: () => boolean;
8
+ loaded: (detail: {
9
+ kind: string;
10
+ pages: number;
11
+ }) => void;
12
+ fail: (error: Error) => void;
13
+ }
14
+ export interface ImageSource {
15
+ src: string;
16
+ }
17
+ interface ImageSize {
18
+ width: number;
19
+ height: number;
20
+ }
21
+ interface PanState {
22
+ id: number;
23
+ x: number;
24
+ y: number;
25
+ left: number;
26
+ top: number;
27
+ active: boolean;
28
+ }
29
+ export declare class ImageView {
30
+ shell: ImageShell;
31
+ source: ImageSource;
32
+ zoom: number | "fit";
33
+ rotation: number;
34
+ area: ImageSize;
35
+ destroyed: boolean;
36
+ natural: ImageSize;
37
+ img: HTMLImageElement;
38
+ zoomOutButton: HTMLButtonElement;
39
+ zoomButton: HTMLButtonElement;
40
+ zoomInButton: HTMLButtonElement;
41
+ scroller: HTMLDivElement;
42
+ stage: HTMLDivElement;
43
+ _resizeObserver: ResizeObserver | undefined;
44
+ _onKeyDown: ((e: KeyboardEvent) => void) | undefined;
45
+ _printFrame: HTMLIFrameElement | undefined;
46
+ _lastWheelZoom: number | undefined;
47
+ _pan: PanState | null;
48
+ /**
49
+ * @param shell the viewer's parts: { host, start, center, end, body, name, loaded, fail }
50
+ * @param source
51
+ */
52
+ constructor(shell: ImageShell, source: ImageSource);
53
+ load(): void;
54
+ destroy(): void;
55
+ _build(img: HTMLImageElement): void;
56
+ _turned(): ImageSize;
57
+ scale(): number;
58
+ _layout(): void;
59
+ _zoomStep(dir: number): number | null;
60
+ _stepZoom(dir: number): void;
61
+ _setZoom(zoom: number | "fit"): void;
62
+ _rotate(degrees: number): void;
63
+ _keyDown(e: KeyboardEvent): void;
64
+ _panStart(e: PointerEvent): void;
65
+ _panMove(e: PointerEvent): void;
66
+ _panEnd(): void;
67
+ print(): void;
68
+ }
69
+ export {};