@webority/ui-elements 0.163.0 → 0.165.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 (223) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +4 -4
  3. package/THIRD-PARTY-NOTICES.txt +1 -1
  4. package/dist/WuiCodeBlock-7O514Hqe.js +1 -0
  5. package/dist/{WuiCommandPalette-Dpz0DXKJ.js → WuiCommandPalette-rVScJ2Hy.js} +2 -2
  6. package/dist/WuiCommentThread-Bkb78uhy.js +1 -0
  7. package/dist/WuiContextMenu-Fc9WCgM8.js +1 -0
  8. package/dist/{WuiDataTable-C1Rrxmh_.js → WuiDataTable-Bb5hxTfn.js} +1 -1
  9. package/dist/WuiDatePicker-D7tOu4kV.js +31 -0
  10. package/dist/WuiDateRange-D0pzZeUU.js +25 -0
  11. package/dist/WuiDrawer-BKNcc0WX.js +1 -0
  12. package/dist/WuiDropdown-CeiMaiwi.js +1 -0
  13. package/dist/WuiEntryGrid-DCVSZuPc.js +1 -0
  14. package/dist/WuiHoverCard-AAXID-P3.js +1 -0
  15. package/dist/WuiInlineEdit-DwnXChDc.js +1 -0
  16. package/dist/WuiLightbox-hw48EjHj.js +1 -0
  17. package/dist/WuiMarkdown-B7nfQ6tW.js +4 -0
  18. package/dist/WuiMentionInput-BCXdub58.js +1 -0
  19. package/dist/WuiModal-Bz2Xg161.js +1 -0
  20. package/dist/WuiNavigationMenu-Dybw-nMb.js +1 -0
  21. package/dist/WuiNotificationCenter-BRomMzI2.js +1 -0
  22. package/dist/WuiOverflow-CV5y5zkM.js +1 -0
  23. package/dist/WuiPhone-BKxBok5L.js +16 -0
  24. package/dist/WuiPopover-y_Vxm64z.js +1 -0
  25. package/dist/WuiRelativeTime-CmlKD-97.js +1 -0
  26. package/dist/WuiSavedViews-CdjavvPC.js +1 -0
  27. package/dist/WuiSelect-CKfM5kWG.js +9 -0
  28. package/dist/WuiShortcuts-Wiv_zufK.js +1 -0
  29. package/dist/WuiSlider-Cz5-zWC7.js +51 -0
  30. package/dist/WuiTimePicker-DAS2sxSH.js +9 -0
  31. package/dist/WuiTour-CAVM3O8-.js +1 -0
  32. package/dist/{WuiTree-COd5leOB.js → WuiTree-BPT9EZuw.js} +1 -1
  33. package/dist/{WuiTruncate-C2WV1-NN.js → WuiTruncate-BB4i8wHE.js} +1 -1
  34. package/dist/WuiWhatsNew-BdsS6MzB.js +1 -0
  35. package/dist/anchorOverlay-B8fu8hjz.js +1 -0
  36. package/dist/chips-DjccCG3b.js +2 -0
  37. package/dist/digitGrouping-CCPI3HK3.js +1 -0
  38. package/dist/drawerDiscard-C1We4r_2.js +1 -0
  39. package/dist/elements/code-block.js +1 -1
  40. package/dist/elements/command-palette.js +1 -1
  41. package/dist/elements/comment-thread.js +1 -1
  42. package/dist/elements/context-menu.js +1 -1
  43. package/dist/elements/data-table.js +1 -1
  44. package/dist/elements/date-range.js +1 -1
  45. package/dist/elements/datepicker.js +1 -1
  46. package/dist/elements/drawer.js +1 -1
  47. package/dist/elements/dropdown.js +1 -0
  48. package/dist/elements/entry-grid.js +1 -0
  49. package/dist/elements/filter-popover.js +1 -1
  50. package/dist/elements/hover-card.js +1 -1
  51. package/dist/elements/inline-edit.js +1 -1
  52. package/dist/elements/lightbox.js +1 -1
  53. package/dist/elements/markdown.js +1 -1
  54. package/dist/elements/mention-input.js +1 -1
  55. package/dist/elements/modal.js +1 -0
  56. package/dist/elements/navigation-menu.js +1 -1
  57. package/dist/elements/notification-center.js +1 -1
  58. package/dist/elements/overflow.js +1 -1
  59. package/dist/elements/phone.js +1 -1
  60. package/dist/elements/popover.js +1 -0
  61. package/dist/elements/relative-time.js +1 -1
  62. package/dist/elements/saved-views.js +1 -1
  63. package/dist/elements/select.js +1 -1
  64. package/dist/elements/shortcuts.js +1 -1
  65. package/dist/elements/slider.js +1 -1
  66. package/dist/elements/timepicker.js +1 -1
  67. package/dist/elements/tour.js +1 -1
  68. package/dist/elements/tree.js +1 -1
  69. package/dist/elements/truncate.js +1 -1
  70. package/dist/elements/whats-new.js +1 -1
  71. package/dist/fileViewerImage-CVHV1fBb.js +3 -0
  72. package/dist/fileViewerMedia-DGnbWDXP.js +1 -0
  73. package/dist/{fileViewerPdf-CAbiTCHl.js → fileViewerPdf-BxoLE4hd.js} +2 -2
  74. package/dist/fileViewerUi-2ZoK9uX0.js +1 -0
  75. package/dist/filterPopover-B29bt1s2.js +1 -0
  76. package/dist/helpers.js +1 -1
  77. package/dist/inlineEditText-CDptpqmI.js +1 -0
  78. package/dist/isDrawn-BbF4phmB.js +1 -0
  79. package/dist/{listboxKeyNav-DkLHwzJE.js → listboxKeyNav-CF7tMDGG.js} +1 -1
  80. package/dist/loader-C7Ov09Bx.js +1 -0
  81. package/dist/menuKeyNav-CstMzU08.js +1 -0
  82. package/dist/nativeOverlay-BsVSWs1q.js +1 -0
  83. package/dist/{search-C0IYOzso.js → search-Du-vK_9z.js} +1 -1
  84. package/dist/server.js +1 -1
  85. package/dist/{themeTransition-CwE2VwQa.js → themeTransition-Dt7Br1QT.js} +1 -1
  86. package/dist/ui-elements/carousel.global.js +1 -1
  87. package/dist/ui-elements/code-block.global.js +1 -1
  88. package/dist/ui-elements/command-palette.global.js +2 -2
  89. package/dist/ui-elements/comment-thread.global.js +1 -1
  90. package/dist/ui-elements/consent-banner.global.js +1 -1
  91. package/dist/ui-elements/context-menu.global.js +1 -1
  92. package/dist/ui-elements/date-range.global.js +10 -10
  93. package/dist/ui-elements/drawer.global.js +1 -1
  94. package/dist/ui-elements/dropdown.global.js +1 -0
  95. package/dist/ui-elements/entry-grid.global.js +1 -0
  96. package/dist/ui-elements/glyphs.global.js +1 -1
  97. package/dist/ui-elements/image-crop.global.js +1 -1
  98. package/dist/ui-elements/inline-edit.global.js +1 -1
  99. package/dist/ui-elements/kanban.global.js +1 -1
  100. package/dist/ui-elements/lead-popup.global.js +1 -1
  101. package/dist/ui-elements/lightbox.global.js +1 -1
  102. package/dist/ui-elements/markdown.global.js +3 -3
  103. package/dist/ui-elements/org-tree.global.js +1 -1
  104. package/dist/ui-elements/phone.global.js +6 -6
  105. package/dist/ui-elements/popover.global.js +1 -0
  106. package/dist/ui-elements/saved-views.global.js +1 -1
  107. package/dist/ui-elements/select-chips.global.js +2 -2
  108. package/dist/ui-elements/select-recents.global.js +1 -1
  109. package/dist/ui-elements/select-search.global.js +1 -1
  110. package/dist/ui-elements/slider.global.js +3 -3
  111. package/dist/ui-elements/sortable.global.js +1 -1
  112. package/dist/ui-elements/status-icon.global.js +1 -1
  113. package/dist/ui-elements/timepicker.global.js +4 -4
  114. package/dist/ui-elements/tour.global.js +1 -1
  115. package/dist/ui-elements/tree.global.js +1 -1
  116. package/dist/ui-elements/wizard.global.js +1 -1
  117. package/dist/ui-elements.global.js +20 -20
  118. package/dist/ui-elements.js +1 -1
  119. package/dist/ui-file-viewer.global.js +10 -10
  120. package/dist/ui-file-viewer.js +1 -1
  121. package/dist/ui-tour.global.js +1 -1
  122. package/package.json +22 -13
  123. package/types/WuiCommandPalette.d.ts +2 -2
  124. package/types/WuiCommentThread.d.ts +1 -2
  125. package/types/WuiContextMenu.d.ts +56 -5
  126. package/types/WuiDatePicker.d.ts +3 -7
  127. package/types/WuiDateRange.d.ts +4 -9
  128. package/types/WuiDrawer.d.ts +9 -12
  129. package/types/WuiDropdown.d.ts +68 -0
  130. package/types/WuiEntryGrid.d.ts +26 -0
  131. package/types/WuiHoverCard.d.ts +15 -1
  132. package/types/WuiInlineEdit.d.ts +2 -0
  133. package/types/WuiLightbox.d.ts +1 -2
  134. package/types/WuiMentionInput.d.ts +0 -4
  135. package/types/WuiModal.d.ts +50 -0
  136. package/types/WuiNavigationMenu.d.ts +8 -3
  137. package/types/WuiNotificationCenter.d.ts +10 -2
  138. package/types/WuiPhone.d.ts +3 -5
  139. package/types/WuiPopover.d.ts +68 -0
  140. package/types/WuiRelativeTime.d.ts +5 -6
  141. package/types/WuiSelect.d.ts +8 -6
  142. package/types/WuiShortcuts.d.ts +6 -1
  143. package/types/WuiSlider.d.ts +6 -3
  144. package/types/WuiTimePicker.d.ts +3 -5
  145. package/types/WuiTour.d.ts +1 -0
  146. package/types/WuiTruncate.d.ts +2 -2
  147. package/types/WuiWhatsNew.d.ts +3 -3
  148. package/types/anchorOverlay.d.ts +24 -8
  149. package/types/codeHighlight.d.ts +1 -1
  150. package/types/digitGrouping.d.ts +11 -0
  151. package/types/elements/dropdown.d.ts +2 -0
  152. package/types/elements/entry-grid.d.ts +2 -0
  153. package/types/elements/modal.d.ts +2 -0
  154. package/types/elements/popover.d.ts +2 -0
  155. package/types/fileViewerImage.d.ts +2 -0
  156. package/types/fileViewerMedia.d.ts +2 -0
  157. package/types/fileViewerPdf.d.ts +2 -0
  158. package/types/fileViewerUi.d.ts +1 -2
  159. package/types/filterPopover.d.ts +7 -8
  160. package/types/global/core.d.ts +1 -3
  161. package/types/global/shared.d.ts +10 -0
  162. package/types/globals.d.ts +28 -79
  163. package/types/helpers.d.ts +5 -0
  164. package/types/iconGlyphs.g.d.ts +1 -1
  165. package/types/index.d.ts +5 -3
  166. package/types/inlineEditText.d.ts +3 -1
  167. package/types/isDrawn.d.ts +1 -0
  168. package/types/listboxKeyNav.d.ts +3 -3
  169. package/types/menuKeyNav.d.ts +8 -0
  170. package/types/nativeOverlay.d.ts +51 -0
  171. package/types/razor-js/modules/fieldChecks.d.ts +1 -0
  172. package/types/razor-js/modules/overlays.d.ts +1 -4
  173. package/types/razor-js/modules/serverBridge.d.ts +15 -13
  174. package/types/razor-js/modules/serverRules.d.ts +9 -0
  175. package/types/razor-js/modules/shared.d.ts +0 -7
  176. package/types/razor-js/modules/tables.d.ts +1 -0
  177. package/types/razor-js/modules/validation.d.ts +7 -0
  178. package/types/server/remoteModal.d.ts +0 -1
  179. package/types/statusIcons.d.ts +1 -1
  180. package/types/tooltips.d.ts +18 -0
  181. package/dist/WuiCodeBlock-cLLbSBK4.js +0 -1
  182. package/dist/WuiCommentThread-CclWHz4C.js +0 -1
  183. package/dist/WuiContextMenu-B2MrH_LK.js +0 -1
  184. package/dist/WuiDatePicker-DLEsnzqG.js +0 -31
  185. package/dist/WuiDateRange-9Xqs5nvv.js +0 -25
  186. package/dist/WuiDrawer-B3YFmxl2.js +0 -1
  187. package/dist/WuiHoverCard-CE3dHKaM.js +0 -1
  188. package/dist/WuiInlineEdit-pG9Z5tUQ.js +0 -1
  189. package/dist/WuiLightbox-C2A14vHx.js +0 -1
  190. package/dist/WuiMarkdown-BXY0QKaO.js +0 -4
  191. package/dist/WuiMentionInput-B_K8AXM5.js +0 -1
  192. package/dist/WuiNavigationMenu-CZ3XhFam.js +0 -1
  193. package/dist/WuiNotificationCenter-ClkCTUnp.js +0 -1
  194. package/dist/WuiOverflow-B0wA6aDe.js +0 -1
  195. package/dist/WuiPhone-icMSUnua.js +0 -16
  196. package/dist/WuiRelativeTime-DyeUQOQ8.js +0 -1
  197. package/dist/WuiResizable-KvfLtbCw.js +0 -1
  198. package/dist/WuiRollingNumber-sfgNzaP0.js +0 -1
  199. package/dist/WuiSavedViews-Br9YKOVU.js +0 -1
  200. package/dist/WuiSelect-B199VL24.js +0 -9
  201. package/dist/WuiShortcuts-D3rWkaOm.js +0 -1
  202. package/dist/WuiSlider-D33Y3_t9.js +0 -51
  203. package/dist/WuiTimePicker-wo9BlOFs.js +0 -9
  204. package/dist/WuiTour-D3Sx7JCM.js +0 -1
  205. package/dist/WuiWhatsNew-dLGyA4g1.js +0 -1
  206. package/dist/anchorOverlay-CXnWfezA.js +0 -1
  207. package/dist/chips-0jT9fpA9.js +0 -2
  208. package/dist/drawerDiscard-C-STs39f.js +0 -1
  209. package/dist/elements/resizable.js +0 -1
  210. package/dist/elements/rolling-number.js +0 -1
  211. package/dist/fileViewerImage-Bt1jeArm.js +0 -3
  212. package/dist/fileViewerMedia-Bp1uHJvC.js +0 -1
  213. package/dist/fileViewerUi-ResPjO1o.js +0 -1
  214. package/dist/filterPopover-CaHWe9V0.js +0 -1
  215. package/dist/inlineEditText-CsLCQbcg.js +0 -1
  216. package/dist/loader-DRYPWxQL.js +0 -1
  217. package/dist/ui-elements/resizable.global.js +0 -1
  218. package/types/WuiResizable.d.ts +0 -79
  219. package/types/WuiRollingNumber.d.ts +0 -27
  220. package/types/elements/resizable.d.ts +0 -2
  221. package/types/elements/rolling-number.d.ts +0 -2
  222. package/types/overlayRelease.d.ts +0 -12
  223. package/types/razor-js/modules/popovers.d.ts +0 -1
@@ -0,0 +1,2 @@
1
+ import { WuiPopover } from "../WuiPopover.ts";
2
+ export { WuiPopover };
@@ -1,3 +1,4 @@
1
+ import { type ChoiceMenu } from "./fileViewerUi.ts";
1
2
  export interface ImageShell {
2
3
  host: HTMLElement;
3
4
  center: HTMLElement;
@@ -37,6 +38,7 @@ export declare class ImageView {
37
38
  img: HTMLImageElement;
38
39
  zoomOutButton: HTMLButtonElement;
39
40
  zoomButton: HTMLButtonElement;
41
+ zoomMenu: ChoiceMenu | undefined;
40
42
  zoomInButton: HTMLButtonElement;
41
43
  scroller: HTMLDivElement;
42
44
  stage: HTMLDivElement;
@@ -1,3 +1,4 @@
1
+ import { type ChoiceMenu } from "./fileViewerUi.ts";
1
2
  import type { FileKind } from "./WuiFileViewer.ts";
2
3
  export interface MediaPrefs {
3
4
  volume?: number;
@@ -35,6 +36,7 @@ export declare class MediaView {
35
36
  muteButton: HTMLButtonElement;
36
37
  volume: HTMLInputElement;
37
38
  speedButton: HTMLButtonElement;
39
+ speedMenu: ChoiceMenu | undefined;
38
40
  captionsButton: HTMLButtonElement | undefined;
39
41
  _onKeyDown: ((e: KeyboardEvent) => void) | undefined;
40
42
  /**
@@ -1,5 +1,6 @@
1
1
  import { type PDFDocumentLoadingTask, type PDFDocumentProxy, type RenderTask, TextLayer } from "pdfjs-dist";
2
2
  import { type MarkedHit, type SearchHit, type TextPageIndex } from "./fileViewerSearch.ts";
3
+ import { type ChoiceMenu } from "./fileViewerUi.ts";
3
4
  type FitMode = "fit-width" | "fit-page";
4
5
  export type PdfFirstPageSource = Blob | {
5
6
  url: string;
@@ -137,6 +138,7 @@ export declare class PdfView {
137
138
  searchButton: HTMLButtonElement;
138
139
  zoomOutButton: HTMLButtonElement;
139
140
  zoomButton: HTMLButtonElement;
141
+ zoomMenu: ChoiceMenu | undefined;
140
142
  zoomInButton: HTMLButtonElement;
141
143
  twoPageButton: HTMLButtonElement;
142
144
  printButton: HTMLButtonElement;
@@ -27,7 +27,6 @@ export declare function setButtonLabel(button: HTMLElement, label: string): void
27
27
  /**
28
28
  * A menu of choices opened from `trigger`. `items()` is read each time it opens:
29
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.
30
+ * items, and Escape or a press outside closes it: the browser does both for an auto popover.
32
31
  */
33
32
  export declare function choiceMenu(trigger: HTMLElement, { items, onPick, label }: ChoiceMenuOptions): ChoiceMenu;
@@ -8,19 +8,20 @@ export declare const FILTER_POPOVER_MAX_CHIPS: number;
8
8
  /**
9
9
  * <wui-filter-popover>: the Filters button of a floating filter bar and the panel it opens. React
10
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.
11
+ * `.wui-filter-popover-trigger` button, and a `.wui-filter-popover-panel` (a popover="auto" labelled
12
+ * "Filters", closed until open) holding a head with the "Keep open" switch, the facets and a foot with Clear all.
13
13
  *
14
14
  * It opens on hover after FILTER_POPOVER_OPEN_DELAY_MS, on click and on F; a keyboard open moves focus
15
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
16
+ * has focus, a list inside is open or the panel is kept open. The browser closes it on Escape and on an
17
+ * outside press, since the panel is an auto popover. A change inside the panel submits the enclosing
18
18
  * `form.wui-filter-form`, so Razor applies each change at once. A multi-select applies its picks once its list closes.
19
19
  */
20
20
  export declare class WuiFilterPopover extends ElementBase {
21
21
  private _doc;
22
22
  private _timer;
23
23
  private _sticky;
24
+ private _closingByCode;
24
25
  private _inside;
25
26
  private _pendingSubmit;
26
27
  private readonly _onEnter;
@@ -31,8 +32,6 @@ export declare class WuiFilterPopover extends ElementBase {
31
32
  private readonly _onFocusOut;
32
33
  private readonly _onKeyDown;
33
34
  private readonly _onShortcut;
34
- private readonly _onEscape;
35
- private readonly _onOutside;
36
35
  constructor();
37
36
  get isOpen(): boolean;
38
37
  connectedCallback(): void;
@@ -46,8 +45,8 @@ export declare class WuiFilterPopover extends ElementBase {
46
45
  private _stayOpen;
47
46
  private _open;
48
47
  private _close;
49
- private _reposition;
50
- private _triggerOutOfView;
48
+ private _closeByCode;
49
+ private _closed;
51
50
  }
52
51
  /**
53
52
  * Registers `<wui-filter-popover>`. Idempotent: a second call leaves the first registration in place.
@@ -10,7 +10,6 @@ import { WuiOverflow } from "../WuiOverflow.ts";
10
10
  import { WuiRating } from "../WuiRating.ts";
11
11
  import { WuiRecordPager } from "../WuiRecordPager.ts";
12
12
  import { WuiRelativeTime } from "../WuiRelativeTime.ts";
13
- import { WuiRollingNumber } from "../WuiRollingNumber.ts";
14
13
  import { WuiSelect } from "../WuiSelect.ts";
15
14
  import { WuiShortcuts } from "../WuiShortcuts.ts";
16
15
  import { WuiShowMore } from "../WuiShowMore.ts";
@@ -38,7 +37,6 @@ export { attachInputMask, formatMasked, initInputMasks, isMaskPattern, MASK_INPU
38
37
  export { MENTION_ID_PATTERN, mentionedIds, mentionLabel, mentionTextFromValue, mentionValueFromText, parseMentionValue, } from "../mentionText.ts";
39
38
  export { groupNotificationsByDay, NOTIFICATION_COUNT_CAP, NOTIFICATION_TEXT, notificationCountText, notificationDayHeading, notificationTime, notificationTriggerLabel, notificationUnreadAnnouncement, } from "../notificationDays.ts";
40
39
  export { withTrustedLabel } from "../optionLabel.ts";
41
- export { releaseOverlay } from "../overlayRelease.ts";
42
40
  export { applyBarBulk, BAR_BULK_IN_BAR_ATTRIBUTE, barBulkCountText, initPageBarBulk } from "../pageBarBulk.ts";
43
41
  export { buildPasswordRules, DEFAULT_PASSWORD_RULES, DEFAULT_REQUIREMENTS_TITLE, evaluatePassword, passwordSatisfies, } from "../passwordRules.ts";
44
42
  export { formatRelativeTime, relativeTimeTitle } from "../relativeTime.ts";
@@ -54,4 +52,4 @@ export { applyTheme, DEFAULT_THEME_EFFECT, DEFAULT_THEME_STORAGE_KEY, nextTheme,
54
52
  export { WHATS_NEW_READ_EVENT } from "../WuiWhatsNew.ts";
55
53
  export { isTimeZone, todayIn, wallClockOf, zoneOffsetMs, zoneParts } from "../zone.ts";
56
54
  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, };
55
+ export { WuiDataTable, WuiDatePicker, WuiDock, WuiHoverCard, WuiNavigationMenu, WuiNotificationCenter, WuiOnboardingChecklist, WuiOtp, WuiOverflow, WuiRating, WuiRecordPager, WuiRelativeTime, WuiSelect, WuiShortcuts, WuiShowMore, WuiTruncate, WuiWhatsNew, whenElementsReady, };
@@ -5,14 +5,18 @@ import * as copyText from "../copyText.ts";
5
5
  import * as dataTable from "../dataTable.ts";
6
6
  import * as defineElement from "../defineElement.ts";
7
7
  import * as devWarn from "../devWarn.ts";
8
+ import * as dom from "../dom.ts";
8
9
  import * as elementBase from "../elementBase.ts";
9
10
  import * as fieldState from "../fieldState.ts";
10
11
  import * as formatters from "../formatters.ts";
11
12
  import * as formMirror from "../formMirror.ts";
12
13
  import * as iconGlyphs from "../iconGlyphs.g.ts";
13
14
  import * as imeSafeEnter from "../imeSafeEnter.ts";
15
+ import * as isDrawn from "../isDrawn.ts";
14
16
  import * as listboxKeyNav from "../listboxKeyNav.ts";
15
17
  import * as mentionText from "../mentionText.ts";
18
+ import * as menuKeyNav from "../menuKeyNav.ts";
19
+ import * as nativeOverlay from "../nativeOverlay.ts";
16
20
  import * as notificationDays from "../notificationDays.ts";
17
21
  import * as optionLabel from "../optionLabel.ts";
18
22
  import * as selectList from "../select/list.ts";
@@ -22,6 +26,7 @@ import * as wuiHttp from "../server/wuiHttp.ts";
22
26
  import * as stepperHeader from "../stepperHeader.ts";
23
27
  import * as tableSelect from "../tableSelect.ts";
24
28
  import * as textMatch from "../textMatch.ts";
29
+ import * as tooltips from "../tooltips.ts";
25
30
  import * as WuiSelect from "../WuiSelect.ts";
26
31
  import * as zone from "../zone.ts";
27
32
  import * as glyphs from "./glyphs.ts";
@@ -34,6 +39,7 @@ export declare const SHARED_MODULES: Readonly<{
34
39
  dataTable: typeof dataTable;
35
40
  defineElement: typeof defineElement;
36
41
  devWarn: typeof devWarn;
42
+ dom: typeof dom;
37
43
  elementBase: typeof elementBase;
38
44
  fieldState: typeof fieldState;
39
45
  formatters: typeof formatters;
@@ -41,9 +47,12 @@ export declare const SHARED_MODULES: Readonly<{
41
47
  glyphs: typeof glyphs;
42
48
  iconGlyphs: typeof iconGlyphs;
43
49
  imeSafeEnter: typeof imeSafeEnter;
50
+ isDrawn: typeof isDrawn;
44
51
  listboxKeyNav: typeof listboxKeyNav;
45
52
  loader: typeof loader;
46
53
  mentionText: typeof mentionText;
54
+ menuKeyNav: typeof menuKeyNav;
55
+ nativeOverlay: typeof nativeOverlay;
47
56
  notificationDays: typeof notificationDays;
48
57
  optionLabel: typeof optionLabel;
49
58
  partRegistry: typeof partRegistry;
@@ -52,6 +61,7 @@ export declare const SHARED_MODULES: Readonly<{
52
61
  stepperHeader: typeof stepperHeader;
53
62
  tableSelect: typeof tableSelect;
54
63
  textMatch: typeof textMatch;
64
+ tooltips: typeof tooltips;
55
65
  wuiHttp: typeof wuiHttp;
56
66
  WuiSelect: typeof WuiSelect;
57
67
  zone: typeof zone;
@@ -1,5 +1,6 @@
1
1
  import type { WuiFilterPopover } from "./filterPopover.ts";
2
2
  import type { WuiKanban } from "./kanban.ts";
3
+ import type { OverlayCloseReason } from "./nativeOverlay.ts";
3
4
  import type { WuiStatusIcon } from "./statusIcons.ts";
4
5
  import type { WuiTourStep } from "./tourGlobal.ts";
5
6
  import type { WuiCalendar } from "./WuiCalendar.ts";
@@ -15,6 +16,8 @@ import type { WuiDatePicker } from "./WuiDatePicker.ts";
15
16
  import type { WuiDateRange } from "./WuiDateRange.ts";
16
17
  import type { WuiDock } from "./WuiDock.ts";
17
18
  import type { WuiDrawer } from "./WuiDrawer.ts";
19
+ import type { WuiDropdown } from "./WuiDropdown.ts";
20
+ import type { WuiEntryGrid } from "./WuiEntryGrid.ts";
18
21
  import type { WuiFileViewer } from "./WuiFileViewer.ts";
19
22
  import type { WuiHoverCard } from "./WuiHoverCard.ts";
20
23
  import type { WuiImageCrop } from "./WuiImageCrop.ts";
@@ -23,6 +26,7 @@ import type { WuiLeadPopup } from "./WuiLeadPopup.ts";
23
26
  import type { WuiLightbox } from "./WuiLightbox.ts";
24
27
  import type { WuiMarkdown } from "./WuiMarkdown.ts";
25
28
  import type { WuiMentionInput } from "./WuiMentionInput.ts";
29
+ import type { WuiModal } from "./WuiModal.ts";
26
30
  import type { WuiNavigationMenu } from "./WuiNavigationMenu.ts";
27
31
  import type { WuiNotificationCenter } from "./WuiNotificationCenter.ts";
28
32
  import type { WuiOnboardingChecklist } from "./WuiOnboardingChecklist.ts";
@@ -30,12 +34,11 @@ import type { WuiOrgTree } from "./WuiOrgTree.ts";
30
34
  import type { WuiOtp } from "./WuiOtp.ts";
31
35
  import type { WuiOverflow } from "./WuiOverflow.ts";
32
36
  import type { WuiPhone } from "./WuiPhone.ts";
37
+ import type { WuiPopover } from "./WuiPopover.ts";
33
38
  import type { WuiRating } from "./WuiRating.ts";
34
39
  import type { WuiRecordPager } from "./WuiRecordPager.ts";
35
40
  import type { WuiRelativeTime } from "./WuiRelativeTime.ts";
36
- import type { WuiResizable } from "./WuiResizable.ts";
37
41
  import type { WuiRichText } from "./WuiRichText.ts";
38
- import type { WuiRollingNumber } from "./WuiRollingNumber.ts";
39
42
  import type { WuiSavedViews } from "./WuiSavedViews.ts";
40
43
  import type { WuiSelect } from "./WuiSelect.ts";
41
44
  import type { WuiShortcuts } from "./WuiShortcuts.ts";
@@ -63,6 +66,8 @@ export interface WuiElementTagMap {
63
66
  "wui-date-range": WuiDateRange;
64
67
  "wui-dock": WuiDock;
65
68
  "wui-drawer": WuiDrawer;
69
+ "wui-dropdown": WuiDropdown;
70
+ "wui-entry-grid": WuiEntryGrid;
66
71
  "wui-file-viewer": WuiFileViewer;
67
72
  "wui-filter-popover": WuiFilterPopover;
68
73
  "wui-hover-card": WuiHoverCard;
@@ -72,6 +77,7 @@ export interface WuiElementTagMap {
72
77
  "wui-lead-popup": WuiLeadPopup;
73
78
  "wui-lightbox": WuiLightbox;
74
79
  "wui-markdown": WuiMarkdown;
80
+ "wui-modal": WuiModal;
75
81
  "wui-mention-input": WuiMentionInput;
76
82
  "wui-navigation-menu": WuiNavigationMenu;
77
83
  "wui-notification-center": WuiNotificationCenter;
@@ -80,12 +86,11 @@ export interface WuiElementTagMap {
80
86
  "wui-otp": WuiOtp;
81
87
  "wui-overflow": WuiOverflow;
82
88
  "wui-phone": WuiPhone;
89
+ "wui-popover": WuiPopover;
83
90
  "wui-rating": WuiRating;
84
91
  "wui-record-pager": WuiRecordPager;
85
92
  "wui-relative-time": WuiRelativeTime;
86
- "wui-resizable": WuiResizable;
87
93
  "wui-rich-text": WuiRichText;
88
- "wui-rolling-number": WuiRollingNumber;
89
94
  "wui-saved-views": WuiSavedViews;
90
95
  "wui-select": WuiSelect;
91
96
  "wui-shortcuts": WuiShortcuts;
@@ -102,79 +107,6 @@ export interface WuiElementTagMap {
102
107
  "wui-wizard": WuiWizard;
103
108
  "wui-wizard-step": WuiWizardStep;
104
109
  }
105
- export interface BootstrapComponent<Instance, Options> {
106
- new (element: Element | string, config?: Options): Instance;
107
- getInstance(element: Element): Instance | null;
108
- getOrCreateInstance(element: Element, config?: Options): Instance;
109
- readonly EVENT_KEY: string;
110
- }
111
- export interface BootstrapModalInstance {
112
- show(): void;
113
- hide(): void;
114
- toggle(): void;
115
- handleUpdate(): void;
116
- dispose(): void;
117
- }
118
- export interface BootstrapModalOptions {
119
- backdrop?: boolean | "static";
120
- focus?: boolean;
121
- keyboard?: boolean;
122
- }
123
- export interface BootstrapTipInstance {
124
- tip?: HTMLElement | null;
125
- show(): void;
126
- hide(): void;
127
- toggle(): void;
128
- update(): void;
129
- dispose(): void;
130
- setContent(content: Record<string, string | Element | null>): void;
131
- }
132
- export interface BootstrapTipOptions {
133
- animation?: boolean;
134
- boundary?: string | Element;
135
- container?: string | Element | false;
136
- content?: string | Element | (() => string | Element);
137
- customClass?: string;
138
- delay?: number | {
139
- show: number;
140
- hide: number;
141
- };
142
- fallbackPlacements?: string[];
143
- html?: boolean;
144
- offset?: [number, number] | string;
145
- placement?: "auto" | "top" | "bottom" | "left" | "right";
146
- popperConfig?: object | ((defaults: {
147
- modifiers?: unknown[];
148
- }) => object);
149
- sanitize?: boolean;
150
- selector?: string | false;
151
- template?: string;
152
- title?: string | Element | (() => string | Element);
153
- trigger?: string;
154
- }
155
- export interface BootstrapDropdownInstance {
156
- show(): void;
157
- hide(): void;
158
- toggle(): void;
159
- update(): void;
160
- dispose(): void;
161
- }
162
- export interface BootstrapTabInstance {
163
- show(): void;
164
- dispose(): void;
165
- }
166
- export type BootstrapTabOptions = Record<string, never>;
167
- export interface WuiBootstrap {
168
- Modal: BootstrapComponent<BootstrapModalInstance, BootstrapModalOptions>;
169
- Tooltip: BootstrapComponent<BootstrapTipInstance, BootstrapTipOptions>;
170
- Popover: BootstrapComponent<BootstrapTipInstance, BootstrapTipOptions> & {
171
- Default: {
172
- template: string;
173
- };
174
- };
175
- Dropdown: BootstrapComponent<BootstrapDropdownInstance, object>;
176
- Tab: BootstrapComponent<BootstrapTabInstance, BootstrapTabOptions>;
177
- }
178
110
  export interface WuiEventMap {
179
111
  "wui:shell:collapse": CustomEvent<{
180
112
  collapsed: boolean;
@@ -190,6 +122,24 @@ export interface WuiEventMap {
190
122
  href: string;
191
123
  }>;
192
124
  "wui:teardown": CustomEvent<null>;
125
+ "wui-modal-open": CustomEvent<{
126
+ trigger: HTMLElement | null;
127
+ }>;
128
+ "wui-modal-opened": CustomEvent<null>;
129
+ "wui-modal-close": CustomEvent<{
130
+ reason: OverlayCloseReason;
131
+ }>;
132
+ "wui-modal-closed": CustomEvent<null>;
133
+ "wui-dropdown-toggle": CustomEvent<{
134
+ open: boolean;
135
+ source: "trigger" | "select" | "dismiss" | "scroll" | "resize";
136
+ }>;
137
+ "wui-popover-toggle": CustomEvent<{
138
+ open: boolean;
139
+ }>;
140
+ "wui-markdown-citation": CustomEvent<{
141
+ citation: string;
142
+ }>;
193
143
  search: CustomEvent<{
194
144
  query: string;
195
145
  seq: number;
@@ -202,8 +152,7 @@ declare global {
202
152
  }
203
153
  interface DocumentEventMap extends WuiEventMap {
204
154
  }
205
- var bootstrap: WuiBootstrap | undefined;
206
- var WeborityUiElements: typeof import("./global/core.ts") & Partial<typeof import("./elements/carousel.ts")> & Partial<typeof import("./elements/code-block.ts")> & Partial<typeof import("./elements/command-palette.ts")> & Partial<typeof import("./elements/comment-thread.ts")> & Partial<typeof import("./elements/consent-banner.ts")> & Partial<typeof import("./elements/context-menu.ts")> & Partial<typeof import("./elements/date-range.ts")> & Partial<typeof import("./elements/drawer.ts")> & Partial<typeof import("./elements/image-crop.ts")> & Partial<typeof import("./elements/inline-edit.ts")> & Partial<typeof import("./elements/kanban.ts")> & Partial<typeof import("./elements/lead-popup.ts")> & Partial<typeof import("./elements/lightbox.ts")> & Partial<typeof import("./elements/org-tree.ts")> & Partial<typeof import("./elements/markdown.ts")> & Partial<typeof import("./elements/phone.ts")> & Partial<typeof import("./global/parts/select-country.ts")> & Partial<typeof import("./elements/resizable.ts")> & Partial<typeof import("./elements/saved-views.ts")> & Partial<typeof import("./global/parts/select-chips.ts")> & Partial<typeof import("./global/parts/select-recents.ts")> & Partial<typeof import("./global/parts/select-search.ts")> & Partial<typeof import("./elements/slider.ts")> & Partial<typeof import("./elements/sortable.ts")> & Partial<typeof import("./elements/status-icon.ts")> & Partial<typeof import("./elements/timepicker.ts")> & Partial<typeof import("./elements/tour.ts")> & Partial<typeof import("./elements/tree.ts")> & Partial<typeof import("./elements/wizard.ts")>;
155
+ var WeborityUiElements: typeof import("./global/core.ts") & Partial<typeof import("./elements/carousel.ts")> & Partial<typeof import("./elements/code-block.ts")> & Partial<typeof import("./elements/command-palette.ts")> & Partial<typeof import("./elements/comment-thread.ts")> & Partial<typeof import("./elements/consent-banner.ts")> & Partial<typeof import("./elements/context-menu.ts")> & Partial<typeof import("./elements/date-range.ts")> & Partial<typeof import("./elements/drawer.ts")> & Partial<typeof import("./elements/dropdown.ts")> & Partial<typeof import("./elements/image-crop.ts")> & Partial<typeof import("./elements/inline-edit.ts")> & Partial<typeof import("./elements/kanban.ts")> & Partial<typeof import("./elements/lead-popup.ts")> & Partial<typeof import("./elements/lightbox.ts")> & Partial<typeof import("./elements/org-tree.ts")> & Partial<typeof import("./elements/markdown.ts")> & Partial<typeof import("./elements/modal.ts")> & Partial<typeof import("./elements/phone.ts")> & Partial<typeof import("./elements/popover.ts")> & Partial<typeof import("./global/parts/select-country.ts")> & Partial<typeof import("./elements/saved-views.ts")> & Partial<typeof import("./global/parts/select-chips.ts")> & Partial<typeof import("./global/parts/select-recents.ts")> & Partial<typeof import("./global/parts/select-search.ts")> & Partial<typeof import("./elements/slider.ts")> & Partial<typeof import("./elements/sortable.ts")> & Partial<typeof import("./elements/status-icon.ts")> & Partial<typeof import("./elements/timepicker.ts")> & Partial<typeof import("./elements/tour.ts")> & Partial<typeof import("./elements/tree.ts")> & Partial<typeof import("./elements/wizard.ts")>;
207
156
  var WeborityFileViewer: typeof import("./fileViewer.ts") | undefined;
208
157
  var WeborityChart: typeof import("./chart.ts") | undefined;
209
158
  var WeborityCalendar: typeof import("./calendar.ts") | undefined;
@@ -1,3 +1,4 @@
1
+ export type { AnchorOptions, OverlaySide } from "./anchorOverlay.ts";
1
2
  export { AVATAR_ACCEPT, AVATAR_MAX_SIZE_MB, AVATAR_OUTPUT_SIZE, AVATAR_OUTPUT_TYPE, AVATAR_PREVIEW_SIZES, AVATAR_TEXT, avatarCropOptions, avatarUnreadableMessage, isHeicFile, } from "./avatarPicker.ts";
2
3
  export { COMMAND_SHORTCUT_ATTRIBUTE, initCommandShortcuts, isCommandChord } from "./commandShortcut.ts";
3
4
  export { COMMENT_INTENTS, COMMENT_REACTIONS, COMMENT_TEXT, type CommentIntent } from "./commentText.ts";
@@ -12,8 +13,11 @@ export { glyphSvg } from "./iconGlyphs.g.ts";
12
13
  export { isImeSafeEnter } from "./imeSafeEnter.ts";
13
14
  export { INLINE_EDIT_SAVED_MS, INLINE_EDIT_TEXT, INLINE_EDIT_TYPES, type InlineEditFailedDetail, type InlineEditOption, type InlineEditSavedDetail, type InlineEditTextConfig, type InlineEditTextResult, type InlineEditType, inlineEditText, } from "./inlineEditText.ts";
14
15
  export { attachInputMask, formatMasked, initInputMasks, isMaskPattern, MASK_INPUT_TYPES, MASK_NAMES, maskedPostValue, postedMasked, rawMasked, resolveMask, } from "./inputMask.ts";
16
+ export { isDrawn } from "./isDrawn.ts";
15
17
  export { KANBAN_DRAG_THRESHOLD_PX, KANBAN_LONG_PRESS_MS, KANBAN_PHONE_QUERY, KANBAN_STORAGE_PREFIX, KANBAN_SUMMARY_FORMATS, KANBAN_TEXT, KANBAN_TONES, kanbanCardLabel, kanbanOverflow, kanbanStorageKey, kanbanSummaryFormat, kanbanVisibleLimit, readKanbanCollapsed, type SummaryFormat, sumKanbanValues, writeKanbanCollapsed, } from "./kanbanModel.ts";
16
18
  export { MENTION_ID_PATTERN, type MentionPart, type MentionSpan, mentionedIds, mentionLabel, mentionTextFromValue, mentionValueFromText, parseMentionValue, } from "./mentionText.ts";
19
+ export { bindMenuKeys, type MenuKeyOptions, } from "./menuKeyNav.ts";
20
+ export { type AnchoredPopoverOptions, CLOSE_MOTION_LIMIT_MS, CLOSING_ATTRIBUTE, closeAnchoredPopover, closeModalDialog, DISMISS_ATTRIBUTE, isPopoverOpen, type ModalDialogOptions, OPEN_ATTRIBUTE, type OverlayCloseReason, onOverlayRootChange, openAnchoredPopover, openModalDialog, overlayRoot, raisePopover, setPopoverOpen, wireOpenTriggers, } from "./nativeOverlay.ts";
17
21
  export { revealActiveNavItem } from "./navReveal.ts";
18
22
  export { groupNotificationsByDay, NOTIFICATION_COUNT_CAP, NOTIFICATION_TEXT, notificationCountText, notificationDayHeading, notificationTime, notificationTriggerLabel, notificationUnreadAnnouncement, } from "./notificationDays.ts";
19
23
  export { withTrustedLabel } from "./optionLabel.ts";
@@ -26,5 +30,6 @@ export { deriveStepStatus, stepperHeaderItems } from "./stepperHeader.ts";
26
30
  export { initSubmitOnce, SUBMIT_ONCE_ATTRIBUTE } from "./submitOnce.ts";
27
31
  export { matchSegments } from "./textMatch.ts";
28
32
  export { applyTheme, DEFAULT_THEME_EFFECT, DEFAULT_THEME_STORAGE_KEY, nextTheme, readStoredTheme, resolveTheme, storeTheme, THEME_CHANGE_EVENT, THEME_EFFECT_DURATION, THEME_EFFECTS, THEME_MODES, THEME_SWITCHING_CLASS, themeBootScript, themeKeyframes, transitionTheme, watchSystemTheme, } from "./themeTransition.ts";
33
+ export { showPinnedTooltips, TOOLTIP_ATTRIBUTE, TOOLTIP_CLASS_ATTRIBUTE, TOOLTIP_HTML_ATTRIBUTE, TOOLTIP_ID_ATTRIBUTE, TOOLTIP_OPEN_ATTRIBUTE, TOOLTIP_PLACEMENT_ATTRIBUTE, wireTooltips, } from "./tooltips.ts";
29
34
  export { createLocalSeenStore } from "./tourSeenStore.ts";
30
35
  export { isTimeZone, todayIn, wallClockOf, zoneOffsetMs, zoneParts } from "./zone.ts";
@@ -1,6 +1,6 @@
1
1
  export declare const GLYPHS: Record<string, string>;
2
2
  export declare const iconNames: string[];
3
- /** The library's single icon SVG emitter — identical markup to Razor's IconMarkup.Render. */
3
+ /** The library's single icon SVG emitter, with markup identical to Razor's IconMarkup.Render. */
4
4
  export declare function glyphSvg(name: string, { size, className }?: {
5
5
  size?: number;
6
6
  className?: string;
package/types/index.d.ts CHANGED
@@ -11,6 +11,8 @@ import { WuiDatePicker } from "./WuiDatePicker.ts";
11
11
  import { WuiDateRange } from "./WuiDateRange.ts";
12
12
  import { WuiDock } from "./WuiDock.ts";
13
13
  import { WuiDrawer } from "./WuiDrawer.ts";
14
+ import { WuiDropdown } from "./WuiDropdown.ts";
15
+ import { WuiEntryGrid } from "./WuiEntryGrid.ts";
14
16
  import { WuiHoverCard } from "./WuiHoverCard.ts";
15
17
  import { WuiImageCrop } from "./WuiImageCrop.ts";
16
18
  import { WuiInlineEdit } from "./WuiInlineEdit.ts";
@@ -18,6 +20,7 @@ import { WuiLeadPopup } from "./WuiLeadPopup.ts";
18
20
  import { WuiLightbox } from "./WuiLightbox.ts";
19
21
  import { WuiMarkdown } from "./WuiMarkdown.ts";
20
22
  import { WuiMentionInput } from "./WuiMentionInput.ts";
23
+ import { WuiModal } from "./WuiModal.ts";
21
24
  import { WuiNavigationMenu } from "./WuiNavigationMenu.ts";
22
25
  import { WuiNotificationCenter } from "./WuiNotificationCenter.ts";
23
26
  import { WuiOnboardingChecklist } from "./WuiOnboardingChecklist.ts";
@@ -25,11 +28,10 @@ import { WuiOrgTree } from "./WuiOrgTree.ts";
25
28
  import { WuiOtp } from "./WuiOtp.ts";
26
29
  import { WuiOverflow } from "./WuiOverflow.ts";
27
30
  import { WuiPhone } from "./WuiPhone.ts";
31
+ import { WuiPopover } from "./WuiPopover.ts";
28
32
  import { WuiRating } from "./WuiRating.ts";
29
33
  import { WuiRecordPager } from "./WuiRecordPager.ts";
30
34
  import { WuiRelativeTime } from "./WuiRelativeTime.ts";
31
- import { WuiResizable } from "./WuiResizable.ts";
32
- import { WuiRollingNumber } from "./WuiRollingNumber.ts";
33
35
  import { WuiSavedViews } from "./WuiSavedViews.ts";
34
36
  import { WuiSelect } from "./WuiSelect.ts";
35
37
  import { WuiShortcuts } from "./WuiShortcuts.ts";
@@ -51,4 +53,4 @@ export { DISCARD_EVENT } from "./server/drawerDiscard.ts";
51
53
  export { SHORTCUT_EVENT } from "./shortcutKeys.ts";
52
54
  export { THEME_CHANGE_EVENT } from "./themeTransition.ts";
53
55
  export { WHATS_NEW_READ_EVENT } from "./WuiWhatsNew.ts";
54
- export { WuiCarousel, WuiCodeBlock, WuiCommandPalette, WuiCommentThread, WuiConsentBanner, WuiContextMenu, WuiDataTable, WuiDatePicker, WuiDateRange, WuiDock, WuiDrawer, WuiHoverCard, WuiImageCrop, WuiInlineEdit, WuiKanban, WuiLeadPopup, WuiLightbox, WuiMarkdown, WuiMentionInput, WuiNavigationMenu, WuiNotificationCenter, WuiOnboardingChecklist, WuiOrgTree, WuiOtp, WuiOverflow, WuiPhone, WuiRating, WuiRecordPager, WuiRelativeTime, WuiResizable, WuiRollingNumber, WuiSavedViews, WuiSelect, WuiShortcuts, WuiShowMore, WuiSlider, WuiSortable, WuiStatusIcon, WuiTimePicker, WuiTour, WuiTree, WuiTruncate, WuiWhatsNew, WuiWizard, WuiWizardStep, };
56
+ export { WuiCarousel, WuiCodeBlock, WuiCommandPalette, WuiCommentThread, WuiConsentBanner, WuiContextMenu, WuiDataTable, WuiDatePicker, WuiDateRange, WuiDock, WuiDrawer, WuiDropdown, WuiEntryGrid, WuiHoverCard, WuiImageCrop, WuiInlineEdit, WuiKanban, WuiLeadPopup, WuiLightbox, WuiMarkdown, WuiMentionInput, WuiModal, WuiNavigationMenu, WuiNotificationCenter, WuiOnboardingChecklist, WuiOrgTree, WuiOtp, WuiOverflow, WuiPhone, WuiPopover, WuiRating, WuiRecordPager, WuiRelativeTime, WuiSavedViews, WuiSelect, WuiShortcuts, WuiShowMore, WuiSlider, WuiSortable, WuiStatusIcon, WuiTimePicker, WuiTour, WuiTree, WuiTruncate, WuiWhatsNew, WuiWizard, WuiWizardStep, };
@@ -1,3 +1,4 @@
1
+ import { type DigitGrouping } from "./digitGrouping.ts";
1
2
  /** The controls an inline edit can turn into. */
2
3
  export declare const INLINE_EDIT_TYPES: readonly ["text", "number", "select", "date", "textarea"];
3
4
  export type InlineEditType = (typeof INLINE_EDIT_TYPES)[number];
@@ -11,6 +12,7 @@ export interface InlineEditTextConfig {
11
12
  type?: string;
12
13
  options?: InlineEditOption[];
13
14
  placeholder?: string;
15
+ grouping?: DigitGrouping | undefined;
14
16
  }
15
17
  export interface InlineEditTextResult {
16
18
  text: string;
@@ -44,4 +46,4 @@ export declare const INLINE_EDIT_TEXT: Readonly<{
44
46
  * The text a value reads as before any custom rendering: the placeholder (or the house hyphen)
45
47
  * when empty, a date as dd-MMM-yyyy, a select value as its option's label.
46
48
  */
47
- export declare function inlineEditText(value: unknown, { type, options, placeholder }?: InlineEditTextConfig): InlineEditTextResult;
49
+ export declare function inlineEditText(value: unknown, { type, options, placeholder, grouping }?: InlineEditTextConfig): InlineEditTextResult;
@@ -0,0 +1 @@
1
+ export declare function isDrawn(row: Element): boolean;
@@ -14,7 +14,7 @@
14
14
  * getActive: () => this._active,
15
15
  * setActive: (i) => { ... },
16
16
  * onEnter: (activeOption, opts) => { ... }, // fired when Enter pressed & active option exists
17
- * onEscape: () => { ... }, // fired when Escape pressed
17
+ * onEscape: (e) => { ... }, // fired when Escape pressed; the caller cancels e
18
18
  * onTypeahead: (char) => { ... }, // optional: invoked for printable keys outside input
19
19
  * typeaheadMs: 500, // optional: buffer clear timeout (default 500)
20
20
  * });
@@ -31,7 +31,7 @@ export interface ListboxKeyNavConfig {
31
31
  getActive: () => number;
32
32
  setActive: (index: number) => void;
33
33
  onEnter?: (activeOption: HTMLElement | undefined, visibleOptions: HTMLElement[]) => void;
34
- onEscape?: () => void;
34
+ onEscape?: (e: KeyboardEvent) => void;
35
35
  onTypeahead?: (char: string, activeIndex: number, visibleOptions: HTMLElement[]) => void;
36
36
  typeaheadMs?: number;
37
37
  }
@@ -47,7 +47,7 @@ export interface ListboxKeyNav {
47
47
  * @param config.getActive - returns current active index
48
48
  * @param config.setActive - (index) => void, sets the active cursor
49
49
  * @param [config.onEnter] - (activeOption, visibleOptions) => void, Enter key action
50
- * @param [config.onEscape] - () => void, Escape key action (may include close + teardown)
50
+ * @param [config.onEscape] - (e) => void, Escape key action (may include close + teardown); the caller cancels e
51
51
  * @param [config.onTypeahead] - (char, activeIndex, visibleOptions) => void, char matched to option
52
52
  * @param [config.typeaheadMs] - clear buffer timeout (default 500)
53
53
  * @returns { handler: (KeyboardEvent) => void, teardown: () => void, clearTypeahead: () => void }
@@ -0,0 +1,8 @@
1
+ export interface MenuKeyOptions {
2
+ /** The focusable rows of `menu`, in order, read on each key press. */
3
+ items: () => HTMLElement[];
4
+ /** Typed-letter jump between rows, with a 500 ms buffer. Default true. */
5
+ typeahead?: boolean;
6
+ }
7
+ /** ArrowDown, ArrowUp, Home, End, PageDown, PageUp and typeahead inside `menu`. Returns the unbind. Activation and closing stay with the owner. */
8
+ export declare function bindMenuKeys(menu: HTMLElement, options: MenuKeyOptions): () => void;
@@ -0,0 +1,51 @@
1
+ import { type AnchorOptions } from "./anchorOverlay.ts";
2
+ export type OverlayCloseReason = "escape" | "backdrop" | "dismiss" | "drag";
3
+ export declare const OPEN_ATTRIBUTE = "data-wui-open";
4
+ export declare const DISMISS_ATTRIBUTE = "data-wui-dismiss";
5
+ export declare const CLOSING_ATTRIBUTE = "data-wui-closing";
6
+ /** The longest the exit motion may hold a dialog open, in ms. */
7
+ export declare const CLOSE_MOTION_LIMIT_MS = 400;
8
+ export interface ModalDialogOptions {
9
+ /** False: Escape does not ask to close (sets closedby="none" and prevents `cancel`). */
10
+ escape: boolean;
11
+ /** False: a press outside the dialog's box does not ask to close. */
12
+ backdrop: boolean;
13
+ /** "first-control": [data-autofocus], else the first control that is not the close or back button, else the first close or back button. "panel": the dialog itself. */
14
+ focus: "first-control" | "panel";
15
+ /** The person asked to close. The dialog never closes itself: the owner answers by calling closeModalDialog. */
16
+ onRequestClose: (reason: OverlayCloseReason) => void;
17
+ }
18
+ /**
19
+ * WebKit does not focus a button on click, so the browser has no opener to hand focus back to: move it there once
20
+ * `closed` has closed, unless focus has already gone somewhere real. Focus still inside `closed` is not real:
21
+ * WebKit leaves it on the control the dialog held after an Escape.
22
+ */
23
+ export declare function returnFocus(opener: HTMLElement | null, closed: Element): void;
24
+ /** Opens `dialog` as a modal, places focus by the rule, and wires Escape, the backdrop and [data-wui-dismiss]. Returns the release, called once the dialog has closed. */
25
+ export declare function openModalDialog(dialog: HTMLDialogElement, options: ModalDialogOptions): () => void;
26
+ /** Marks the dialog closing, waits for its exit animation (at most CLOSE_MOTION_LIMIT_MS; none under reduced motion), then closes it. Resolves once closed. */
27
+ export declare function closeModalDialog(dialog: HTMLDialogElement): Promise<void>;
28
+ export interface AnchoredPopoverOptions extends AnchorOptions {
29
+ /** "auto": the browser closes it on Escape, an outside press, or another auto panel opening. "manual": only the owner closes it. */
30
+ mode: "auto" | "manual";
31
+ /** Runs once each time the panel closes, however it closed. */
32
+ onClosed?: () => void;
33
+ /** A panel its owner holds open stays open while its trigger is scrolled out of view. */
34
+ keepOffscreen?: boolean;
35
+ /** True while a scroll that began before the panel opened is still settling: the panel re-places instead of closing. */
36
+ scrollSettling?: () => boolean;
37
+ }
38
+ /** Sets the popover attribute to `mode`, shows the panel, places it against `trigger` and keeps it placed until it closes. */
39
+ export declare function openAnchoredPopover(trigger: HTMLElement, panel: HTMLElement, options: AnchoredPopoverOptions): void;
40
+ export declare function closeAnchoredPopover(panel: HTMLElement): void;
41
+ export declare function isPopoverOpen(panel: HTMLElement): boolean;
42
+ /** Shows or hides a top-layer panel that has no trigger to anchor to. Calling show or hide on a panel already in that state is a no-op in the browser, so the state is checked first to keep the call one-to-one with the change. */
43
+ export declare function setPopoverOpen(panel: HTMLElement, open: boolean): void;
44
+ /** Moves an open top-layer panel to the top of the top layer, above a dialog opened after it. The browser stacks the top layer by when each entry was shown, so a hide and show is the only way to move one. */
45
+ export declare function raisePopover(panel: HTMLElement): void;
46
+ /** Where a page-level layer (toasts, a tooltip bubble, the tour) must sit to stay live: the most recently shown modal <dialog> that is still open, else document.body. */
47
+ export declare function overlayRoot(doc?: Document): HTMLElement;
48
+ /** Calls `listener` each time overlayRoot() changes. Returns the unsubscribe. */
49
+ export declare function onOverlayRootChange(listener: (root: HTMLElement) => void, doc?: Document): () => void;
50
+ /** One delegated click listener per document: a control with data-wui-open="#id" opens the <wui-modal> or <wui-drawer> with that id, passing itself as the opener. Idempotent. */
51
+ export declare function wireOpenTriggers(doc: Document): void;
@@ -0,0 +1 @@
1
+ export declare const initFieldChecks: (root?: Document | Element) => void;
@@ -1,5 +1,2 @@
1
- export declare const initOverlayFocus: () => void;
2
- export declare const initModalInert: () => void;
3
- export declare const initCommandPalettes: () => void;
4
- export declare const initDropdownScrollClose: () => void;
5
1
  export declare const initDisabledDropdownItems: () => void;
2
+ export declare const initStaleOverlayMarkup: (root?: Document | Element) => void;
@@ -1,13 +1,15 @@
1
- export declare const initServerTables: (root?: Document | Element) => void;
2
- export declare const initRemoteModals: (root?: Document | Element) => void;
3
- export declare const initServerActions: (root?: Document | Element) => void;
4
- export declare const initInputMasks: (root?: Document | Element) => void;
5
- export declare const initScrollEdges: (root?: Document | Element) => void;
6
- export declare const initShellParts: (root?: Document | Element) => void;
7
- export declare const initUnsavedChanges: (root?: Document | Element) => void;
8
- export declare const initDrawerDiscard: (root?: Document | Element) => void;
9
- export declare const initCollapsibleSearch: (root?: Document | Element) => void;
10
- export declare const initPageBarBulk: (root?: Document | Element) => void;
11
- export declare const initRowDrag: (root?: Document | Element) => void;
12
- export declare const initSubmitOnce: (root?: Document | Element) => void;
13
- export declare const initCommandShortcuts: (root?: Document | Element) => void;
1
+ type Root = Document | Element;
2
+ export declare const initServerTables: (root?: Root) => void;
3
+ export declare const initRemoteModals: (root?: Root) => void;
4
+ export declare const initServerActions: (root?: Root) => void;
5
+ export declare const initInputMasks: (root?: Root) => void;
6
+ export declare const initScrollEdges: (root?: Root) => void;
7
+ export declare const initShellParts: (root?: Root) => void;
8
+ export declare const initUnsavedChanges: (root?: Root) => void;
9
+ export declare const initDrawerDiscard: (root?: Root) => void;
10
+ export declare const initCollapsibleSearch: (root?: Root) => void;
11
+ export declare const initPageBarBulk: (root?: Root) => void;
12
+ export declare const initRowDrag: (root?: Root) => void;
13
+ export declare const initSubmitOnce: (root?: Root) => void;
14
+ export declare const initCommandShortcuts: (root?: Root) => void;
15
+ export {};
@@ -0,0 +1,9 @@
1
+ import type { FieldRule } from "@webority/web-core/validators";
2
+ /** Rules matching the .NET attributes; lengths count the value as typed, spaces included, as the server does. */
3
+ export declare const serverRules: Readonly<{
4
+ email: (message: string) => FieldRule;
5
+ phone: (message: string) => FieldRule;
6
+ url: (message: string) => FieldRule;
7
+ minLength: (length: number, message: string) => FieldRule;
8
+ maxLength: (length: number, message: string) => FieldRule;
9
+ }>;
@@ -1,13 +1,6 @@
1
1
  export declare const ready: (fn: () => void) => void;
2
2
  export declare const qsa: <E extends HTMLElement>(root: ParentNode, selector: string, type: abstract new (...args: never[]) => E) => E[];
3
3
  export declare const onTeardown: (node: Element, release: () => void) => void;
4
- export declare const plainPopoverTitle: (bs: {
5
- Popover?: {
6
- Default?: {
7
- template?: string;
8
- };
9
- };
10
- }) => void;
11
4
  export declare const wuiIcon: (name: string, size?: number) => string;
12
5
  export declare const fadeOutError: (node: Element) => void;
13
6
  export declare const setFieldError: (host: HTMLElement | null, message: string, { errorClassEl }?: {
@@ -1,4 +1,5 @@
1
1
  export declare const initSelectableTables: (root?: ParentNode) => void;
2
+ export declare const initExpandableTables: (root?: ParentNode) => void;
2
3
  export declare const initSortableTables: (root?: ParentNode) => void;
3
4
  export declare const initTableToolbars: () => void;
4
5
  export declare const markRowLinks: (root?: ParentNode) => void;