@nvidia-elements/core 2.22.5 → 2.23.1

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 (304) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/accordion/accordion2.js +4 -4
  3. package/dist/alert/alert-group2.js +1 -1
  4. package/dist/alert/alert2.js +1 -1
  5. package/dist/avatar/avatar-group2.js +1 -1
  6. package/dist/avatar/avatar2.js +1 -1
  7. package/dist/badge/badge2.js +1 -1
  8. package/dist/breadcrumb/breadcrumb2.js +1 -1
  9. package/dist/bundle.d.ts +4 -0
  10. package/dist/bundles/index.d.ts +357 -1
  11. package/dist/bundles/index.js +14 -14
  12. package/dist/button/button2.js +1 -1
  13. package/dist/button-group/button-group2.js +1 -1
  14. package/dist/card/card2.js +4 -4
  15. package/dist/chat-message/chat-message2.js +1 -1
  16. package/dist/checkbox/checkbox-group2.js +1 -1
  17. package/dist/checkbox/checkbox2.js +1 -1
  18. package/dist/color/color2.js +6 -6
  19. package/dist/combobox/combobox2.js +1 -1
  20. package/dist/copy-button/copy-button2.js +1 -1
  21. package/dist/custom-elements-jsx.d.ts +189 -0
  22. package/dist/custom-elements-vue.d.ts +189 -0
  23. package/dist/custom-elements.json +6561 -339
  24. package/dist/data.html.json +133 -0
  25. package/dist/date/date2.js +6 -6
  26. package/dist/datetime/datetime2.js +6 -6
  27. package/dist/dialog/dialog-footer2.js +1 -1
  28. package/dist/dialog/dialog-header2.js +1 -1
  29. package/dist/dialog/dialog2.js +1 -1
  30. package/dist/divider/divider2.js +1 -1
  31. package/dist/dot/dot2.js +1 -1
  32. package/dist/drag-handle/drag-handle2.js +1 -1
  33. package/dist/drawer/drawer-content2.js +1 -1
  34. package/dist/drawer/drawer-footer2.js +1 -1
  35. package/dist/drawer/drawer-header2.js +1 -1
  36. package/dist/drawer/drawer2.js +1 -1
  37. package/dist/dropdown/dropdown-footer2.js +1 -1
  38. package/dist/dropdown/dropdown-header2.js +1 -1
  39. package/dist/dropdown/dropdown2.js +1 -1
  40. package/dist/dropdown-group/dropdown-group.js +1 -1
  41. package/dist/dropzone/dropzone2.js +1 -1
  42. package/dist/file/file2.js +1 -1
  43. package/dist/format-bytes/format-bytes2.js +1 -1
  44. package/dist/format-datetime/format-datetime2.js +1 -1
  45. package/dist/format-number/format-number2.js +1 -1
  46. package/dist/format-relative-time/format-relative-time2.js +1 -1
  47. package/dist/format-truncate/format-truncate2.js +1 -1
  48. package/dist/forms/control/control2.js +1 -1
  49. package/dist/forms/control-group/control-group2.js +1 -1
  50. package/dist/forms/control-message/control-message2.js +1 -1
  51. package/dist/forms/utils/layout.d.ts +0 -1
  52. package/dist/forms/utils/layout.js.map +1 -1
  53. package/dist/forms/utils/states.d.ts +0 -1
  54. package/dist/forms/utils/states.js.map +1 -1
  55. package/dist/gauge/gauge2.js +1 -1
  56. package/dist/ghost/define.d.ts +6 -0
  57. package/dist/ghost/define.js +6 -0
  58. package/dist/ghost/define.js.map +1 -0
  59. package/dist/ghost/ghost.d.ts +27 -0
  60. package/dist/ghost/ghost.examples.js +5 -0
  61. package/dist/ghost/ghost.examples.js.map +1 -0
  62. package/dist/ghost/ghost.examples.json +37 -0
  63. package/dist/ghost/ghost.js +5 -0
  64. package/dist/ghost/ghost.js.map +1 -0
  65. package/dist/ghost/ghost2.js +28 -0
  66. package/dist/ghost/ghost2.js.map +1 -0
  67. package/dist/ghost/index.d.ts +1 -0
  68. package/dist/ghost/index.js +1 -0
  69. package/dist/grid/cell/cell2.js +1 -1
  70. package/dist/grid/column/column2.js +1 -1
  71. package/dist/grid/footer/footer2.js +1 -1
  72. package/dist/grid/grid2.js +1 -1
  73. package/dist/grid/header/header2.js +1 -1
  74. package/dist/grid/placeholder/placeholder2.js +1 -1
  75. package/dist/grid/row/row2.js +1 -1
  76. package/dist/icon/icon2.js +2 -2
  77. package/dist/icon-button/icon-button2.js +1 -1
  78. package/dist/iframe/iframe2.js +1 -1
  79. package/dist/index.d.ts +4 -0
  80. package/dist/index.js +1 -1
  81. package/dist/index.js.map +1 -1
  82. package/dist/input/input-group2.js +1 -1
  83. package/dist/input/input2.js +1 -1
  84. package/dist/internal/controllers/keynav-spatial.controller.d.ts +0 -1
  85. package/dist/internal/controllers/keynav-spatial.controller.js.map +1 -1
  86. package/dist/internal/controllers/type-native-popover.utils.d.ts +0 -1
  87. package/dist/internal/controllers/type-native-popover.utils.js.map +1 -1
  88. package/dist/internal/index.d.ts +0 -1
  89. package/dist/internal/index.js +116 -128
  90. package/dist/internal/index.js.map +1 -1
  91. package/dist/internal/types/index.d.ts +37 -3
  92. package/dist/internal/types/index.js.map +1 -1
  93. package/dist/internal/utils/audit-logs.d.ts +0 -1
  94. package/dist/internal/utils/audit-logs.js.map +1 -1
  95. package/dist/internal/utils/dom.d.ts +0 -5
  96. package/dist/internal/utils/dom.js +30 -46
  97. package/dist/internal/utils/dom.js.map +1 -1
  98. package/dist/internal/utils/events.d.ts +0 -1
  99. package/dist/internal/utils/events.js +4 -7
  100. package/dist/internal/utils/events.js.map +1 -1
  101. package/dist/internal/utils/keynav.d.ts +0 -1
  102. package/dist/internal/utils/keynav.js +2 -5
  103. package/dist/internal/utils/keynav.js.map +1 -1
  104. package/dist/internal/utils/objects.d.ts +0 -2
  105. package/dist/internal/utils/objects.js +2 -8
  106. package/dist/internal/utils/objects.js.map +1 -1
  107. package/dist/joystick/joystick2.js +5 -5
  108. package/dist/logo/logo2.js +1 -1
  109. package/dist/menu/menu-group2.js +1 -1
  110. package/dist/menu/menu-item2.js +1 -1
  111. package/dist/menu/menu2.js +1 -1
  112. package/dist/month/month2.js +6 -6
  113. package/dist/notification/notification-group2.js +1 -1
  114. package/dist/notification/notification2.js +1 -1
  115. package/dist/page/page-panel/page-panel-content2.js +1 -1
  116. package/dist/page/page-panel/page-panel-footer2.js +1 -1
  117. package/dist/page/page-panel/page-panel-header2.js +1 -1
  118. package/dist/page/page-panel/page-panel2.js +1 -1
  119. package/dist/page/page2.js +1 -1
  120. package/dist/page-header/page-header2.js +1 -1
  121. package/dist/page-loader/page-loader2.js +1 -1
  122. package/dist/pagination/pagination2.js +1 -1
  123. package/dist/panel/panel2.js +4 -4
  124. package/dist/password/password2.js +6 -6
  125. package/dist/preferences-input/preferences-input2.js +5 -5
  126. package/dist/progress-bar/progress-bar2.js +1 -1
  127. package/dist/progress-dot/progress-dot2.js +1 -1
  128. package/dist/progress-ring/progress-ring2.js +1 -1
  129. package/dist/progressive-filter-chip/progressive-filter-chip2.js +1 -1
  130. package/dist/pulse/pulse2.js +1 -1
  131. package/dist/radio/radio-group2.js +1 -1
  132. package/dist/radio/radio2.js +1 -1
  133. package/dist/range/range2.js +1 -1
  134. package/dist/resize-handle/resize-handle2.js +5 -5
  135. package/dist/search/search2.js +6 -6
  136. package/dist/select/select2.js +1 -1
  137. package/dist/skeleton/skeleton2.js +1 -1
  138. package/dist/sort-button/sort-button2.js +1 -1
  139. package/dist/sparkline/sparkline2.js +1 -1
  140. package/dist/star-rating/star-rating2.js +1 -1
  141. package/dist/steps/steps2.js +6 -6
  142. package/dist/switch/switch-group2.js +1 -1
  143. package/dist/switch/switch2.js +1 -1
  144. package/dist/tabs/tabs-group2.js +1 -1
  145. package/dist/tabs/tabs-item-group2.js +1 -1
  146. package/dist/tabs/tabs2.js +2 -2
  147. package/dist/tag/tag2.js +5 -5
  148. package/dist/textarea/textarea2.js +1 -1
  149. package/dist/time/time2.js +6 -6
  150. package/dist/toast/toast2.js +1 -1
  151. package/dist/toggletip/toggletip-footer2.js +1 -1
  152. package/dist/toggletip/toggletip-header2.js +1 -1
  153. package/dist/toggletip/toggletip2.js +1 -1
  154. package/dist/toolbar/toolbar2.js +1 -1
  155. package/dist/tooltip/tooltip2.js +1 -1
  156. package/dist/tree/tree-node2.js +1 -1
  157. package/dist/tree/tree2.js +1 -1
  158. package/dist/week/week2.js +6 -6
  159. package/dist/workspace/controllers/workspace-command.controller.d.ts +34 -0
  160. package/dist/workspace/controllers/workspace-command.controller.js +87 -0
  161. package/dist/workspace/controllers/workspace-command.controller.js.map +1 -0
  162. package/dist/workspace/controllers/workspace-composition.controller.d.ts +54 -0
  163. package/dist/workspace/controllers/workspace-composition.controller.js +169 -0
  164. package/dist/workspace/controllers/workspace-composition.controller.js.map +1 -0
  165. package/dist/workspace/controllers/workspace-fullscreen.controller.d.ts +25 -0
  166. package/dist/workspace/controllers/workspace-fullscreen.controller.js +84 -0
  167. package/dist/workspace/controllers/workspace-fullscreen.controller.js.map +1 -0
  168. package/dist/workspace/controllers/workspace-measurement.controller.d.ts +19 -0
  169. package/dist/workspace/controllers/workspace-measurement.controller.js +188 -0
  170. package/dist/workspace/controllers/workspace-measurement.controller.js.map +1 -0
  171. package/dist/workspace/controllers/workspace-rearrange.controller.d.ts +40 -0
  172. package/dist/workspace/controllers/workspace-rearrange.controller.js +385 -0
  173. package/dist/workspace/controllers/workspace-rearrange.controller.js.map +1 -0
  174. package/dist/workspace/controllers/workspace-resize.controller.d.ts +43 -0
  175. package/dist/workspace/controllers/workspace-resize.controller.js +168 -0
  176. package/dist/workspace/controllers/workspace-resize.controller.js.map +1 -0
  177. package/dist/workspace/controllers/workspace-restoration.controller.d.ts +24 -0
  178. package/dist/workspace/controllers/workspace-restoration.controller.js +193 -0
  179. package/dist/workspace/controllers/workspace-restoration.controller.js.map +1 -0
  180. package/dist/workspace/define.d.ts +10 -0
  181. package/dist/workspace/define.js +9 -0
  182. package/dist/workspace/define.js.map +1 -0
  183. package/dist/workspace/index.d.ts +11 -0
  184. package/dist/workspace/index.js +6 -0
  185. package/dist/workspace/panel/panel.d.ts +48 -0
  186. package/dist/workspace/panel/panel.js +5 -0
  187. package/dist/workspace/panel/panel.js.map +1 -0
  188. package/dist/workspace/panel/panel2.js +53 -0
  189. package/dist/workspace/panel/panel2.js.map +1 -0
  190. package/dist/workspace/panel-content/panel-content.d.ts +20 -0
  191. package/dist/workspace/panel-content/panel-content.js +5 -0
  192. package/dist/workspace/panel-content/panel-content.js.map +1 -0
  193. package/dist/workspace/panel-content/panel-content2.js +22 -0
  194. package/dist/workspace/panel-content/panel-content2.js.map +1 -0
  195. package/dist/workspace/panel-footer/panel-footer.d.ts +24 -0
  196. package/dist/workspace/panel-footer/panel-footer.js +5 -0
  197. package/dist/workspace/panel-footer/panel-footer.js.map +1 -0
  198. package/dist/workspace/panel-footer/panel-footer2.js +28 -0
  199. package/dist/workspace/panel-footer/panel-footer2.js.map +1 -0
  200. package/dist/workspace/panel-header/panel-header.d.ts +61 -0
  201. package/dist/workspace/panel-header/panel-header.js +5 -0
  202. package/dist/workspace/panel-header/panel-header.js.map +1 -0
  203. package/dist/workspace/panel-header/panel-header2.js +102 -0
  204. package/dist/workspace/panel-header/panel-header2.js.map +1 -0
  205. package/dist/workspace/utils/evaluation.utils.d.ts +83 -0
  206. package/dist/workspace/utils/evaluation.utils.js +294 -0
  207. package/dist/workspace/utils/evaluation.utils.js.map +1 -0
  208. package/dist/workspace/utils/geometry/allocation.utils.d.ts +40 -0
  209. package/dist/workspace/utils/geometry/allocation.utils.js +73 -0
  210. package/dist/workspace/utils/geometry/allocation.utils.js.map +1 -0
  211. package/dist/workspace/utils/geometry/partition.utils.d.ts +10 -0
  212. package/dist/workspace/utils/geometry/partition.utils.js +40 -0
  213. package/dist/workspace/utils/geometry/partition.utils.js.map +1 -0
  214. package/dist/workspace/utils/geometry/sizing.utils.d.ts +35 -0
  215. package/dist/workspace/utils/geometry/sizing.utils.js +42 -0
  216. package/dist/workspace/utils/geometry/sizing.utils.js.map +1 -0
  217. package/dist/workspace/utils/interaction/boundary.utils.d.ts +40 -0
  218. package/dist/workspace/utils/interaction/boundary.utils.js +91 -0
  219. package/dist/workspace/utils/interaction/boundary.utils.js.map +1 -0
  220. package/dist/workspace/utils/interaction/command.utils.d.ts +74 -0
  221. package/dist/workspace/utils/interaction/command.utils.js +189 -0
  222. package/dist/workspace/utils/interaction/command.utils.js.map +1 -0
  223. package/dist/workspace/utils/interaction/drag-preview.utils.d.ts +79 -0
  224. package/dist/workspace/utils/interaction/drag-preview.utils.js +16 -0
  225. package/dist/workspace/utils/interaction/drag-preview.utils.js.map +1 -0
  226. package/dist/workspace/utils/interaction/insertion-offers.utils.d.ts +58 -0
  227. package/dist/workspace/utils/interaction/insertion-offers.utils.js +259 -0
  228. package/dist/workspace/utils/interaction/insertion-offers.utils.js.map +1 -0
  229. package/dist/workspace/utils/interaction/placement-decision.utils.d.ts +55 -0
  230. package/dist/workspace/utils/interaction/placement-decision.utils.js +242 -0
  231. package/dist/workspace/utils/interaction/placement-decision.utils.js.map +1 -0
  232. package/dist/workspace/utils/interaction/resize-input.utils.d.ts +1 -0
  233. package/dist/workspace/utils/interaction/resize-input.utils.js +17 -0
  234. package/dist/workspace/utils/interaction/resize-input.utils.js.map +1 -0
  235. package/dist/workspace/utils/model/layout.utils.d.ts +22 -0
  236. package/dist/workspace/utils/model/layout.utils.js +41 -0
  237. package/dist/workspace/utils/model/layout.utils.js.map +1 -0
  238. package/dist/workspace/utils/model/membership.utils.d.ts +14 -0
  239. package/dist/workspace/utils/model/membership.utils.js +17 -0
  240. package/dist/workspace/utils/model/membership.utils.js.map +1 -0
  241. package/dist/workspace/utils/model/operations.utils.d.ts +31 -0
  242. package/dist/workspace/utils/model/operations.utils.js +178 -0
  243. package/dist/workspace/utils/model/operations.utils.js.map +1 -0
  244. package/dist/workspace/utils/model/projection.utils.d.ts +7 -0
  245. package/dist/workspace/utils/model/projection.utils.js +87 -0
  246. package/dist/workspace/utils/model/projection.utils.js.map +1 -0
  247. package/dist/workspace/utils/model/value.utils.d.ts +5 -0
  248. package/dist/workspace/utils/model/value.utils.js +68 -0
  249. package/dist/workspace/utils/model/value.utils.js.map +1 -0
  250. package/dist/workspace/utils/placement/acquisition-sizing.utils.d.ts +32 -0
  251. package/dist/workspace/utils/placement/acquisition-sizing.utils.js +152 -0
  252. package/dist/workspace/utils/placement/acquisition-sizing.utils.js.map +1 -0
  253. package/dist/workspace/utils/placement/context.utils.d.ts +36 -0
  254. package/dist/workspace/utils/placement/context.utils.js +135 -0
  255. package/dist/workspace/utils/placement/context.utils.js.map +1 -0
  256. package/dist/workspace/utils/placement/group-insertion.utils.d.ts +26 -0
  257. package/dist/workspace/utils/placement/group-insertion.utils.js +171 -0
  258. package/dist/workspace/utils/placement/group-insertion.utils.js.map +1 -0
  259. package/dist/workspace/utils/placement/origin.utils.d.ts +13 -0
  260. package/dist/workspace/utils/placement/origin.utils.js +49 -0
  261. package/dist/workspace/utils/placement/origin.utils.js.map +1 -0
  262. package/dist/workspace/utils/placement/planner.utils.d.ts +22 -0
  263. package/dist/workspace/utils/placement/planner.utils.js +184 -0
  264. package/dist/workspace/utils/placement/planner.utils.js.map +1 -0
  265. package/dist/workspace/utils/placement/preparation.utils.d.ts +28 -0
  266. package/dist/workspace/utils/placement/preparation.utils.js +140 -0
  267. package/dist/workspace/utils/placement/preparation.utils.js.map +1 -0
  268. package/dist/workspace/utils/placement/region.utils.d.ts +15 -0
  269. package/dist/workspace/utils/placement/region.utils.js +111 -0
  270. package/dist/workspace/utils/placement/region.utils.js.map +1 -0
  271. package/dist/workspace/utils/placement/split-sizing.utils.d.ts +18 -0
  272. package/dist/workspace/utils/placement/split-sizing.utils.js +108 -0
  273. package/dist/workspace/utils/placement/split-sizing.utils.js.map +1 -0
  274. package/dist/workspace/utils/presentation/composition.utils.d.ts +17 -0
  275. package/dist/workspace/utils/presentation/composition.utils.js +95 -0
  276. package/dist/workspace/utils/presentation/composition.utils.js.map +1 -0
  277. package/dist/workspace/utils/presentation/groups.utils.d.ts +91 -0
  278. package/dist/workspace/utils/presentation/groups.utils.js +169 -0
  279. package/dist/workspace/utils/presentation/groups.utils.js.map +1 -0
  280. package/dist/workspace/utils/presentation/header-configuration.utils.d.ts +11 -0
  281. package/dist/workspace/utils/presentation/header-configuration.utils.js +7 -0
  282. package/dist/workspace/utils/presentation/header-configuration.utils.js.map +1 -0
  283. package/dist/workspace/utils/presentation/measurements.utils.d.ts +21 -0
  284. package/dist/workspace/utils/presentation/measurements.utils.js +28 -0
  285. package/dist/workspace/utils/presentation/measurements.utils.js.map +1 -0
  286. package/dist/workspace/utils/presentation/offers.utils.d.ts +43 -0
  287. package/dist/workspace/utils/presentation/offers.utils.js +137 -0
  288. package/dist/workspace/utils/presentation/offers.utils.js.map +1 -0
  289. package/dist/workspace/utils/presentation/preview.utils.d.ts +6 -0
  290. package/dist/workspace/utils/presentation/preview.utils.js +36 -0
  291. package/dist/workspace/utils/presentation/preview.utils.js.map +1 -0
  292. package/dist/workspace/workspace.d.ts +103 -0
  293. package/dist/workspace/workspace.examples.js +5 -0
  294. package/dist/workspace/workspace.examples.js.map +1 -0
  295. package/dist/workspace/workspace.examples.json +133 -0
  296. package/dist/workspace/workspace.js +5 -0
  297. package/dist/workspace/workspace.js.map +1 -0
  298. package/dist/workspace/workspace.types.d.ts +3 -0
  299. package/dist/workspace/workspace2.js +518 -0
  300. package/dist/workspace/workspace2.js.map +1 -0
  301. package/package.json +27 -3
  302. package/dist/internal/utils/supports.d.ts +0 -3
  303. package/dist/internal/utils/supports.js +0 -13
  304. package/dist/internal/utils/supports.js.map +0 -1
@@ -5,148 +5,136 @@ import { DOCS_URL as n, formatFileSize as r, shiftLeft as i } from "./utils/stri
5
5
  import { AuditController as a, audit as o, excessiveInstanceLimit as ne } from "./controllers/audit.controller.js";
6
6
  import { GestureController as s } from "./controllers/gesture.controller.js";
7
7
  import { KeyStateController as c } from "./controllers/key-state.controller.js";
8
- import { debounce as l, onChildListMutation as u, stopEvent as d, throttle as f } from "./utils/events.js";
9
- import { focusElement as p, focusElementTimeout as m, getActiveElement as h, initializeKeyListItems as g, isFocusable as _, isImmediateRootActiveElement as v, isSimpleFocusable as y, onListboxActivate as b, setActiveKeyListItem as x } from "./utils/focus.js";
10
- import { KeynavCode as S, appendAnchorName as C, appendRootNodeStyle as w, applySlotContentStates as T, clickOutsideElementBounds as E, createGhostElement as D, endOfScrollBox as O, generateId as k, getAnchorNames as A, getAttributeChanges as j, getAttributeListChanges as M, getChildren as N, getCustomElementRegistry as P, getDisplayValue as F, getElementUpdate as I, getFlattenedDOMTree as L, getFlattenedFocusableItems as R, getPropertyChanges as z, getThemeTokens as B, hasHorizontalScrollBar as V, hasInvalidDOMGrid as H, hasScrollBar as U, isContextMenuClick as W, matchesElementName as G, openEyeDropper as K, parseTokenNumber as q, removeAnchorName as J, removeEmptySlotWhitespace as Y, removeEmptyTextNode as X, sameOrderedStringArray as Z, sameRenderRoot as Q, scrollBarWidth as re, slotContainsOnlyWhitespace as ie, styleSheetToString as ae, uniqueNonEmptyStrings as oe, validKeyNavigationCode as $ } from "./utils/dom.js";
11
- import { KeyNavigationGridController as se, getNextKeyGridItem as ce, keyNavigationGrid as le } from "./controllers/keynav-grid.controller.js";
12
- import { KeyNavigationListController as ue, getNextKeyListItem as de, keyNavigationList as fe } from "./controllers/keynav-list.controller.js";
13
- import { KeyNavigationSpatialController as pe } from "./controllers/keynav-spatial.controller.js";
14
- import { associateAriaDescribedBy as me, associateAriaLabel as he, associateControlGroup as ge, associateDataList as _e, associateLabel as ve, attachInternals as ye } from "./utils/a11y.js";
15
- import { StateExpandedController as be, stateExpanded as xe } from "./controllers/state-expanded.controller.js";
16
- import { StateHighlightedController as Se, stateHighlighted as Ce } from "./controllers/state-highlighted.controller.js";
17
- import { StateScrollController as we, stateScroll as Te } from "./controllers/state-scroll.controller.js";
18
- import { StateSelectedController as Ee, stateSelected as De } from "./controllers/state-selected.controller.js";
19
- import { TypeAnchorController as Oe, typeAnchor as ke } from "./controllers/type-anchor.controller.js";
20
- import { TypeClosableController as Ae } from "./controllers/type-closable.controller.js";
21
- import { TypeExpandableController as je } from "./controllers/type-expandable.controller.js";
22
- import { TypeSelectableController as Me } from "./controllers/type-selectable.controller.js";
23
- import { TypeNativePopoverController as Ne } from "./controllers/type-native-popover.controller.js";
24
- import { TypeSSRController as Pe, typeSSR as Fe } from "./controllers/type-ssr.controller.js";
25
- import { hostAttr as Ie } from "./decorators/host-attr.js";
26
- import { scopedRegistry as Le } from "./decorators/scoped-registry.js";
27
- import { colorStateStyles as Re, statusStateStyles as ze, supportStateStyles as Be, useStyles as Ve } from "./styles/index.js";
28
- import { popoverStyles as He } from "./styles/popover2.js";
29
- import { TransitionService as Ue } from "./services/transition.service.js";
30
- import { statusIcons as We } from "./types/index.js";
31
- import { formatStandardNumber as Ge, getDifference as Ke, isObject as qe, parseVersion as Je } from "./utils/objects.js";
32
- import { createLightDismiss as Ye, onKeys as Xe } from "./utils/keynav.js";
33
- import { finiteOr as Ze, nonnegativeFiniteOr as Qe, positiveFiniteOr as $e } from "./utils/numeric.js";
34
- import { supportsCSSLegacyInsetArea as et, supportsCSSPositionArea as tt, supportsNativeCSSAnchorPosition as nt } from "./utils/supports.js";
8
+ import { debounce as l, onChildListMutation as u, throttle as d } from "./utils/events.js";
9
+ import { focusElement as f, focusElementTimeout as p, getActiveElement as m, initializeKeyListItems as h, isFocusable as g, isImmediateRootActiveElement as _, isSimpleFocusable as v, onListboxActivate as y, setActiveKeyListItem as b } from "./utils/focus.js";
10
+ import { KeynavCode as x, appendAnchorName as S, appendRootNodeStyle as C, applySlotContentStates as w, clickOutsideElementBounds as T, createGhostElement as E, endOfScrollBox as D, generateId as O, getAnchorNames as k, getAttributeChanges as A, getAttributeListChanges as j, getChildren as M, getCustomElementRegistry as N, getDisplayValue as P, getElementUpdate as F, getFlattenedDOMTree as I, getFlattenedFocusableItems as L, getPropertyChanges as R, getThemeTokens as z, hasHorizontalScrollBar as B, hasInvalidDOMGrid as V, isContextMenuClick as H, matchesElementName as U, openEyeDropper as W, removeAnchorName as G, removeEmptySlotWhitespace as K, removeEmptyTextNode as q, sameOrderedStringArray as J, slotContainsOnlyWhitespace as Y, styleSheetToString as re, uniqueNonEmptyStrings as X, validKeyNavigationCode as Z } from "./utils/dom.js";
11
+ import { KeyNavigationGridController as Q, getNextKeyGridItem as $, keyNavigationGrid as ie } from "./controllers/keynav-grid.controller.js";
12
+ import { KeyNavigationListController as ae, getNextKeyListItem as oe, keyNavigationList as se } from "./controllers/keynav-list.controller.js";
13
+ import { KeyNavigationSpatialController as ce } from "./controllers/keynav-spatial.controller.js";
14
+ import { associateAriaDescribedBy as le, associateAriaLabel as ue, associateControlGroup as de, associateDataList as fe, associateLabel as pe, attachInternals as me } from "./utils/a11y.js";
15
+ import { StateExpandedController as he, stateExpanded as ge } from "./controllers/state-expanded.controller.js";
16
+ import { StateHighlightedController as _e, stateHighlighted as ve } from "./controllers/state-highlighted.controller.js";
17
+ import { StateScrollController as ye, stateScroll as be } from "./controllers/state-scroll.controller.js";
18
+ import { StateSelectedController as xe, stateSelected as Se } from "./controllers/state-selected.controller.js";
19
+ import { TypeAnchorController as Ce, typeAnchor as we } from "./controllers/type-anchor.controller.js";
20
+ import { TypeClosableController as Te } from "./controllers/type-closable.controller.js";
21
+ import { TypeExpandableController as Ee } from "./controllers/type-expandable.controller.js";
22
+ import { TypeSelectableController as De } from "./controllers/type-selectable.controller.js";
23
+ import { TypeNativePopoverController as Oe } from "./controllers/type-native-popover.controller.js";
24
+ import { TypeSSRController as ke, typeSSR as Ae } from "./controllers/type-ssr.controller.js";
25
+ import { hostAttr as je } from "./decorators/host-attr.js";
26
+ import { scopedRegistry as Me } from "./decorators/scoped-registry.js";
27
+ import { colorStateStyles as Ne, statusStateStyles as Pe, supportStateStyles as Fe, useStyles as Ie } from "./styles/index.js";
28
+ import { popoverStyles as Le } from "./styles/popover2.js";
29
+ import { TransitionService as Re } from "./services/transition.service.js";
30
+ import { statusIcons as ze } from "./types/index.js";
31
+ import { formatStandardNumber as Be, parseVersion as Ve } from "./utils/objects.js";
32
+ import { createLightDismiss as He } from "./utils/keynav.js";
33
+ import { finiteOr as Ue, nonnegativeFiniteOr as We, positiveFiniteOr as Ge } from "./utils/numeric.js";
35
34
  export * from "@nvidia-elements/foundations/internal/i18n";
36
35
  // src/internal/index.ts
37
- var rt = /* @__PURE__ */ ee({
36
+ var Ke = /* @__PURE__ */ ee({
38
37
  AuditController: () => a,
39
38
  DOCS_URL: () => n,
40
39
  GestureController: () => s,
41
- KeyNavigationGridController: () => se,
42
- KeyNavigationListController: () => ue,
43
- KeyNavigationSpatialController: () => pe,
40
+ KeyNavigationGridController: () => Q,
41
+ KeyNavigationListController: () => ae,
42
+ KeyNavigationSpatialController: () => ce,
44
43
  KeyStateController: () => c,
45
- KeynavCode: () => S,
44
+ KeynavCode: () => x,
46
45
  LogService: () => e,
47
- StateExpandedController: () => be,
48
- StateHighlightedController: () => Se,
49
- StateScrollController: () => we,
50
- StateSelectedController: () => Ee,
51
- TransitionService: () => Ue,
52
- TypeAnchorController: () => Oe,
53
- TypeClosableController: () => Ae,
54
- TypeExpandableController: () => je,
55
- TypeNativePopoverController: () => Ne,
56
- TypeSSRController: () => Pe,
57
- TypeSelectableController: () => Me,
58
- appendAnchorName: () => C,
59
- appendRootNodeStyle: () => w,
60
- applySlotContentStates: () => T,
61
- associateAriaDescribedBy: () => me,
62
- associateAriaLabel: () => he,
63
- associateControlGroup: () => ge,
64
- associateDataList: () => _e,
65
- associateLabel: () => ve,
66
- attachInternals: () => ye,
46
+ StateExpandedController: () => he,
47
+ StateHighlightedController: () => _e,
48
+ StateScrollController: () => ye,
49
+ StateSelectedController: () => xe,
50
+ TransitionService: () => Re,
51
+ TypeAnchorController: () => Ce,
52
+ TypeClosableController: () => Te,
53
+ TypeExpandableController: () => Ee,
54
+ TypeNativePopoverController: () => Oe,
55
+ TypeSSRController: () => ke,
56
+ TypeSelectableController: () => De,
57
+ appendAnchorName: () => S,
58
+ appendRootNodeStyle: () => C,
59
+ applySlotContentStates: () => w,
60
+ associateAriaDescribedBy: () => le,
61
+ associateAriaLabel: () => ue,
62
+ associateControlGroup: () => de,
63
+ associateDataList: () => fe,
64
+ associateLabel: () => pe,
65
+ attachInternals: () => me,
67
66
  audit: () => o,
68
67
  auditParentElement: () => t,
69
- clickOutsideElementBounds: () => E,
70
- colorStateStyles: () => Re,
71
- createGhostElement: () => D,
72
- createLightDismiss: () => Ye,
68
+ clickOutsideElementBounds: () => T,
69
+ colorStateStyles: () => Ne,
70
+ createGhostElement: () => E,
71
+ createLightDismiss: () => He,
73
72
  debounce: () => l,
74
- endOfScrollBox: () => O,
73
+ endOfScrollBox: () => D,
75
74
  excessiveInstanceLimit: () => 50,
76
- finiteOr: () => Ze,
77
- focusElement: () => p,
78
- focusElementTimeout: () => m,
75
+ finiteOr: () => Ue,
76
+ focusElement: () => f,
77
+ focusElementTimeout: () => p,
79
78
  formatFileSize: () => r,
80
- formatStandardNumber: () => Ge,
81
- generateId: () => k,
82
- getActiveElement: () => h,
83
- getAnchorNames: () => A,
84
- getAttributeChanges: () => j,
85
- getAttributeListChanges: () => M,
86
- getChildren: () => N,
87
- getCustomElementRegistry: () => P,
88
- getDifference: () => Ke,
89
- getDisplayValue: () => F,
90
- getElementUpdate: () => I,
91
- getFlattenedDOMTree: () => L,
92
- getFlattenedFocusableItems: () => R,
93
- getNextKeyGridItem: () => ce,
94
- getNextKeyListItem: () => de,
95
- getPropertyChanges: () => z,
96
- getThemeTokens: () => B,
97
- hasHorizontalScrollBar: () => V,
98
- hasInvalidDOMGrid: () => H,
99
- hasScrollBar: () => U,
100
- hostAttr: () => Ie,
101
- initializeKeyListItems: () => g,
102
- isContextMenuClick: () => W,
103
- isFocusable: () => _,
104
- isImmediateRootActiveElement: () => v,
105
- isObject: () => qe,
106
- isSimpleFocusable: () => y,
107
- keyNavigationGrid: () => le,
108
- keyNavigationList: () => fe,
109
- matchesElementName: () => G,
110
- nonnegativeFiniteOr: () => Qe,
79
+ formatStandardNumber: () => Be,
80
+ generateId: () => O,
81
+ getActiveElement: () => m,
82
+ getAnchorNames: () => k,
83
+ getAttributeChanges: () => A,
84
+ getAttributeListChanges: () => j,
85
+ getChildren: () => M,
86
+ getCustomElementRegistry: () => N,
87
+ getDisplayValue: () => P,
88
+ getElementUpdate: () => F,
89
+ getFlattenedDOMTree: () => I,
90
+ getFlattenedFocusableItems: () => L,
91
+ getNextKeyGridItem: () => $,
92
+ getNextKeyListItem: () => oe,
93
+ getPropertyChanges: () => R,
94
+ getThemeTokens: () => z,
95
+ hasHorizontalScrollBar: () => B,
96
+ hasInvalidDOMGrid: () => V,
97
+ hostAttr: () => je,
98
+ initializeKeyListItems: () => h,
99
+ isContextMenuClick: () => H,
100
+ isFocusable: () => g,
101
+ isImmediateRootActiveElement: () => _,
102
+ isSimpleFocusable: () => v,
103
+ keyNavigationGrid: () => ie,
104
+ keyNavigationList: () => se,
105
+ matchesElementName: () => U,
106
+ nonnegativeFiniteOr: () => We,
111
107
  onChildListMutation: () => u,
112
- onKeys: () => Xe,
113
- onListboxActivate: () => b,
114
- openEyeDropper: () => K,
115
- parseTokenNumber: () => q,
116
- parseVersion: () => Je,
117
- popoverStyles: () => He,
118
- positiveFiniteOr: () => $e,
119
- removeAnchorName: () => J,
120
- removeEmptySlotWhitespace: () => Y,
121
- removeEmptyTextNode: () => X,
122
- sameOrderedStringArray: () => Z,
123
- sameRenderRoot: () => Q,
124
- scopedRegistry: () => Le,
125
- scrollBarWidth: () => re,
126
- setActiveKeyListItem: () => x,
108
+ onListboxActivate: () => y,
109
+ openEyeDropper: () => W,
110
+ parseVersion: () => Ve,
111
+ popoverStyles: () => Le,
112
+ positiveFiniteOr: () => Ge,
113
+ removeAnchorName: () => G,
114
+ removeEmptySlotWhitespace: () => K,
115
+ removeEmptyTextNode: () => q,
116
+ sameOrderedStringArray: () => J,
117
+ scopedRegistry: () => Me,
118
+ setActiveKeyListItem: () => b,
127
119
  shiftLeft: () => i,
128
- slotContainsOnlyWhitespace: () => ie,
129
- stateExpanded: () => xe,
130
- stateHighlighted: () => Ce,
131
- stateScroll: () => Te,
132
- stateSelected: () => De,
133
- statusIcons: () => We,
134
- statusStateStyles: () => ze,
135
- stopEvent: () => d,
136
- styleSheetToString: () => ae,
137
- supportStateStyles: () => Be,
138
- supportsCSSLegacyInsetArea: () => et,
139
- supportsCSSPositionArea: () => tt,
140
- supportsNativeCSSAnchorPosition: () => nt,
141
- throttle: () => f,
142
- typeAnchor: () => ke,
143
- typeSSR: () => Fe,
144
- uniqueNonEmptyStrings: () => oe,
145
- useStyles: () => Ve,
146
- validKeyNavigationCode: () => $
120
+ slotContainsOnlyWhitespace: () => Y,
121
+ stateExpanded: () => ge,
122
+ stateHighlighted: () => ve,
123
+ stateScroll: () => be,
124
+ stateSelected: () => Se,
125
+ statusIcons: () => ze,
126
+ statusStateStyles: () => Pe,
127
+ styleSheetToString: () => re,
128
+ supportStateStyles: () => Fe,
129
+ throttle: () => d,
130
+ typeAnchor: () => we,
131
+ typeSSR: () => Ae,
132
+ uniqueNonEmptyStrings: () => X,
133
+ useStyles: () => Ie,
134
+ validKeyNavigationCode: () => Z
147
135
  });
148
- import * as it from "@nvidia-elements/foundations/internal/i18n";
149
- te(rt, it);
150
- export { a as AuditController, n as DOCS_URL, s as GestureController, se as KeyNavigationGridController, ue as KeyNavigationListController, pe as KeyNavigationSpatialController, c as KeyStateController, S as KeynavCode, e as LogService, be as StateExpandedController, Se as StateHighlightedController, we as StateScrollController, Ee as StateSelectedController, Ue as TransitionService, Oe as TypeAnchorController, Ae as TypeClosableController, je as TypeExpandableController, Ne as TypeNativePopoverController, Pe as TypeSSRController, Me as TypeSelectableController, C as appendAnchorName, w as appendRootNodeStyle, T as applySlotContentStates, me as associateAriaDescribedBy, he as associateAriaLabel, ge as associateControlGroup, _e as associateDataList, ve as associateLabel, ye as attachInternals, o as audit, t as auditParentElement, E as clickOutsideElementBounds, Re as colorStateStyles, D as createGhostElement, Ye as createLightDismiss, l as debounce, O as endOfScrollBox, ne as excessiveInstanceLimit, Ze as finiteOr, p as focusElement, m as focusElementTimeout, r as formatFileSize, Ge as formatStandardNumber, k as generateId, h as getActiveElement, A as getAnchorNames, j as getAttributeChanges, M as getAttributeListChanges, N as getChildren, P as getCustomElementRegistry, Ke as getDifference, F as getDisplayValue, I as getElementUpdate, L as getFlattenedDOMTree, R as getFlattenedFocusableItems, ce as getNextKeyGridItem, de as getNextKeyListItem, z as getPropertyChanges, B as getThemeTokens, V as hasHorizontalScrollBar, H as hasInvalidDOMGrid, U as hasScrollBar, Ie as hostAttr, g as initializeKeyListItems, rt as internal_exports, W as isContextMenuClick, _ as isFocusable, v as isImmediateRootActiveElement, qe as isObject, y as isSimpleFocusable, le as keyNavigationGrid, fe as keyNavigationList, G as matchesElementName, Qe as nonnegativeFiniteOr, u as onChildListMutation, Xe as onKeys, b as onListboxActivate, K as openEyeDropper, q as parseTokenNumber, Je as parseVersion, He as popoverStyles, $e as positiveFiniteOr, J as removeAnchorName, Y as removeEmptySlotWhitespace, X as removeEmptyTextNode, Z as sameOrderedStringArray, Q as sameRenderRoot, Le as scopedRegistry, re as scrollBarWidth, x as setActiveKeyListItem, i as shiftLeft, ie as slotContainsOnlyWhitespace, xe as stateExpanded, Ce as stateHighlighted, Te as stateScroll, De as stateSelected, We as statusIcons, ze as statusStateStyles, d as stopEvent, ae as styleSheetToString, Be as supportStateStyles, et as supportsCSSLegacyInsetArea, tt as supportsCSSPositionArea, nt as supportsNativeCSSAnchorPosition, f as throttle, ke as typeAnchor, Fe as typeSSR, oe as uniqueNonEmptyStrings, Ve as useStyles, $ as validKeyNavigationCode };
136
+ import * as qe from "@nvidia-elements/foundations/internal/i18n";
137
+ te(Ke, qe);
138
+ export { a as AuditController, n as DOCS_URL, s as GestureController, Q as KeyNavigationGridController, ae as KeyNavigationListController, ce as KeyNavigationSpatialController, c as KeyStateController, x as KeynavCode, e as LogService, he as StateExpandedController, _e as StateHighlightedController, ye as StateScrollController, xe as StateSelectedController, Re as TransitionService, Ce as TypeAnchorController, Te as TypeClosableController, Ee as TypeExpandableController, Oe as TypeNativePopoverController, ke as TypeSSRController, De as TypeSelectableController, S as appendAnchorName, C as appendRootNodeStyle, w as applySlotContentStates, le as associateAriaDescribedBy, ue as associateAriaLabel, de as associateControlGroup, fe as associateDataList, pe as associateLabel, me as attachInternals, o as audit, t as auditParentElement, T as clickOutsideElementBounds, Ne as colorStateStyles, E as createGhostElement, He as createLightDismiss, l as debounce, D as endOfScrollBox, ne as excessiveInstanceLimit, Ue as finiteOr, f as focusElement, p as focusElementTimeout, r as formatFileSize, Be as formatStandardNumber, O as generateId, m as getActiveElement, k as getAnchorNames, A as getAttributeChanges, j as getAttributeListChanges, M as getChildren, N as getCustomElementRegistry, P as getDisplayValue, F as getElementUpdate, I as getFlattenedDOMTree, L as getFlattenedFocusableItems, $ as getNextKeyGridItem, oe as getNextKeyListItem, R as getPropertyChanges, z as getThemeTokens, B as hasHorizontalScrollBar, V as hasInvalidDOMGrid, je as hostAttr, h as initializeKeyListItems, Ke as internal_exports, H as isContextMenuClick, g as isFocusable, _ as isImmediateRootActiveElement, v as isSimpleFocusable, ie as keyNavigationGrid, se as keyNavigationList, U as matchesElementName, We as nonnegativeFiniteOr, u as onChildListMutation, y as onListboxActivate, W as openEyeDropper, Ve as parseVersion, Le as popoverStyles, Ge as positiveFiniteOr, G as removeAnchorName, K as removeEmptySlotWhitespace, q as removeEmptyTextNode, J as sameOrderedStringArray, Me as scopedRegistry, b as setActiveKeyListItem, i as shiftLeft, Y as slotContainsOnlyWhitespace, ge as stateExpanded, ve as stateHighlighted, be as stateScroll, Se as stateSelected, ze as statusIcons, Pe as statusStateStyles, re as styleSheetToString, Fe as supportStateStyles, d as throttle, we as typeAnchor, Ae as typeSSR, X as uniqueNonEmptyStrings, Ie as useStyles, Z as validKeyNavigationCode };
151
139
 
152
140
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["internal_exports","AuditController","DOCS_URL","GestureController","KeyNavigationGridController","KeyNavigationListController","KeyNavigationSpatialController","KeyStateController","KeynavCode","LogService","StateExpandedController","StateHighlightedController","StateScrollController","StateSelectedController","TransitionService","TypeAnchorController","TypeClosableController","TypeExpandableController","TypeNativePopoverController","TypeSSRController","TypeSelectableController","appendAnchorName","appendRootNodeStyle","applySlotContentStates","associateAriaDescribedBy","associateAriaLabel","associateControlGroup","associateDataList","associateLabel","attachInternals","audit","auditParentElement","clickOutsideElementBounds","colorStateStyles","createGhostElement","createLightDismiss","debounce","endOfScrollBox","finiteOr","focusElement","focusElementTimeout","formatFileSize","formatStandardNumber","generateId","getActiveElement","getAnchorNames","getAttributeChanges","getAttributeListChanges","getChildren","getCustomElementRegistry","getDifference","getDisplayValue","getElementUpdate","getFlattenedDOMTree","getFlattenedFocusableItems","getNextKeyGridItem","getNextKeyListItem","getPropertyChanges","getThemeTokens","hasHorizontalScrollBar","hasInvalidDOMGrid","hasScrollBar","hostAttr","initializeKeyListItems","isContextMenuClick","isFocusable","isImmediateRootActiveElement","isObject","isSimpleFocusable","keyNavigationGrid","keyNavigationList","matchesElementName","nonnegativeFiniteOr","onChildListMutation","onKeys","onListboxActivate","openEyeDropper","parseTokenNumber","parseVersion","popoverStyles","positiveFiniteOr","removeAnchorName","removeEmptySlotWhitespace","removeEmptyTextNode","sameOrderedStringArray","sameRenderRoot","scopedRegistry","scrollBarWidth","setActiveKeyListItem","shiftLeft","slotContainsOnlyWhitespace","stateExpanded","stateHighlighted","stateScroll","stateSelected","statusIcons","statusStateStyles","stopEvent","styleSheetToString","supportStateStyles","supportsCSSLegacyInsetArea","supportsCSSPositionArea","supportsNativeCSSAnchorPosition","throttle","typeAnchor","typeSSR","uniqueNonEmptyStrings","useStyles","validKeyNavigationCode","import__nvidia_elements_foundations_internal_i18n","__reExport","excessiveInstanceLimit"],"sources":["../../src/internal/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * @internal private common utilities for Elements\n */\nexport * from './controllers/audit.controller.js';\nexport * from './controllers/gesture.controller.js';\nexport * from './controllers/key-state.controller.js';\nexport * from './controllers/keynav-grid.controller.js';\nexport * from './controllers/keynav-list.controller.js';\nexport * from './controllers/keynav-spatial.controller.js';\nexport * from './controllers/state-expanded.controller.js';\nexport * from './controllers/state-highlighted.controller.js';\nexport * from './controllers/state-scroll.controller.js';\nexport * from './controllers/state-selected.controller.js';\nexport * from './controllers/type-anchor.controller.js';\nexport * from './controllers/type-closable.controller.js';\nexport * from './controllers/type-expandable.controller.js';\nexport * from './controllers/type-selectable.controller.js';\nexport * from './controllers/type-native-popover.controller.js';\nexport * from './controllers/type-ssr.controller.js';\nexport * from './decorators/host-attr.js';\nexport * from './decorators/scoped-registry.js';\nexport * from './styles/index.js';\nexport * from './styles/popover.js';\nexport * from '@nvidia-elements/foundations/internal/i18n';\nexport * from './services/log.service.js';\nexport * from './services/transition.service.js';\nexport * from './types/index.js';\nexport * from './utils/a11y.js';\nexport * from './utils/audit.js';\nexport * from './utils/dom.js';\nexport * from './utils/events.js';\nexport * from './utils/objects.js';\nexport * from './utils/strings.js';\nexport * from './utils/focus.js';\nexport * from './utils/keynav.js';\nexport * from './utils/numeric.js';\nexport * from './utils/supports.js';\n"],"mappings":""}
1
+ {"version":3,"file":"index.js","names":["internal_exports","AuditController","DOCS_URL","GestureController","KeyNavigationGridController","KeyNavigationListController","KeyNavigationSpatialController","KeyStateController","KeynavCode","LogService","StateExpandedController","StateHighlightedController","StateScrollController","StateSelectedController","TransitionService","TypeAnchorController","TypeClosableController","TypeExpandableController","TypeNativePopoverController","TypeSSRController","TypeSelectableController","appendAnchorName","appendRootNodeStyle","applySlotContentStates","associateAriaDescribedBy","associateAriaLabel","associateControlGroup","associateDataList","associateLabel","attachInternals","audit","auditParentElement","clickOutsideElementBounds","colorStateStyles","createGhostElement","createLightDismiss","debounce","endOfScrollBox","finiteOr","focusElement","focusElementTimeout","formatFileSize","formatStandardNumber","generateId","getActiveElement","getAnchorNames","getAttributeChanges","getAttributeListChanges","getChildren","getCustomElementRegistry","getDisplayValue","getElementUpdate","getFlattenedDOMTree","getFlattenedFocusableItems","getNextKeyGridItem","getNextKeyListItem","getPropertyChanges","getThemeTokens","hasHorizontalScrollBar","hasInvalidDOMGrid","hostAttr","initializeKeyListItems","isContextMenuClick","isFocusable","isImmediateRootActiveElement","isSimpleFocusable","keyNavigationGrid","keyNavigationList","matchesElementName","nonnegativeFiniteOr","onChildListMutation","onListboxActivate","openEyeDropper","parseVersion","popoverStyles","positiveFiniteOr","removeAnchorName","removeEmptySlotWhitespace","removeEmptyTextNode","sameOrderedStringArray","scopedRegistry","setActiveKeyListItem","shiftLeft","slotContainsOnlyWhitespace","stateExpanded","stateHighlighted","stateScroll","stateSelected","statusIcons","statusStateStyles","styleSheetToString","supportStateStyles","throttle","typeAnchor","typeSSR","uniqueNonEmptyStrings","useStyles","validKeyNavigationCode","import__nvidia_elements_foundations_internal_i18n","__reExport","excessiveInstanceLimit"],"sources":["../../src/internal/index.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n/**\n * @internal private common utilities for Elements\n */\nexport * from './controllers/audit.controller.js';\nexport * from './controllers/gesture.controller.js';\nexport * from './controllers/key-state.controller.js';\nexport * from './controllers/keynav-grid.controller.js';\nexport * from './controllers/keynav-list.controller.js';\nexport * from './controllers/keynav-spatial.controller.js';\nexport * from './controllers/state-expanded.controller.js';\nexport * from './controllers/state-highlighted.controller.js';\nexport * from './controllers/state-scroll.controller.js';\nexport * from './controllers/state-selected.controller.js';\nexport * from './controllers/type-anchor.controller.js';\nexport * from './controllers/type-closable.controller.js';\nexport * from './controllers/type-expandable.controller.js';\nexport * from './controllers/type-selectable.controller.js';\nexport * from './controllers/type-native-popover.controller.js';\nexport * from './controllers/type-ssr.controller.js';\nexport * from './decorators/host-attr.js';\nexport * from './decorators/scoped-registry.js';\nexport * from './styles/index.js';\nexport * from './styles/popover.js';\nexport * from '@nvidia-elements/foundations/internal/i18n';\nexport * from './services/log.service.js';\nexport * from './services/transition.service.js';\nexport * from './types/index.js';\nexport * from './utils/a11y.js';\nexport * from './utils/audit.js';\nexport * from './utils/dom.js';\nexport * from './utils/events.js';\nexport * from './utils/objects.js';\nexport * from './utils/strings.js';\nexport * from './utils/focus.js';\nexport * from './utils/keynav.js';\nexport * from './utils/numeric.js';\n"],"mappings":""}
@@ -1,11 +1,13 @@
1
1
  import type { TemplateResult } from 'lit';
2
2
  import type { IconName } from './icons.js';
3
3
  import type { I18nStrings } from '@nvidia-elements/foundations/internal/i18n';
4
+ /** @public */
4
5
  export type Color = 'red-cardinal' | 'gray-slate' | 'gray-denim' | 'blue-indigo' | 'blue-cobalt' | 'blue-sky' | 'teal-cyan' | 'green-mint' | 'teal-seafoam' | 'green-grass' | 'yellow-amber' | 'orange-pumpkin' | 'red-tomato' | 'pink-magenta' | 'purple-plum' | 'purple-violet' | 'purple-lavender' | 'pink-rose' | 'green-jade' | 'lime-pear' | 'yellow-nova' | 'brand-green';
5
6
  /** Controls the visual scale of an element to match its importance and available space.
6
7
  * - `sm` - Compact size for dense layouts or secondary elements with less visual prominence.
7
8
  * - `md` - Standard size that works well in most contexts and provides balanced visibility.
8
9
  * - `lg` - Larger size for emphasizing important elements or improving touch targets in spacious layouts.
10
+ * @public
9
11
  */
10
12
  export type Size = 'sm' | 'md' | 'lg';
11
13
  /** Controls the visual scale of an element to match its importance and available space.
@@ -14,11 +16,13 @@ export type Size = 'sm' | 'md' | 'lg';
14
16
  * - `md` - Standard size that works well in most contexts and provides balanced visibility.
15
17
  * - `lg` - Larger size for emphasizing important elements or improving touch targets in spacious layouts.
16
18
  * - `xl` - Extra large size for emphasizing elements or sparse layouts.
19
+ * @public
17
20
  */
18
21
  export type SizeExpanded = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
19
22
  /** Controls the visual prominence to establish hierarchy and guide user attention.
20
23
  * - `emphasis` - Increases visual weight to draw attention and highlight important elements.
21
24
  * - `muted` - Reduces visual weight for supporting content that should remain subtle and unobtrusive.
25
+ * @public
22
26
  */
23
27
  export type Prominence = 'emphasis' | 'muted';
24
28
  /**
@@ -27,11 +31,13 @@ export type Prominence = 'emphasis' | 'muted';
27
31
  * - `inline` Element container reduces to fit within inline content such as a block of text.
28
32
  * - `inset` Element container optimizes for embedding or inset placement inside another containing element.
29
33
  * - `full` Element container optimizes for filling its container bounds.
34
+ * @public
30
35
  */
31
36
  export type Container = 'inline' | 'flat' | 'inset' | 'full';
32
37
  /** Controls the visual density of an element to match its context and available space.
33
38
  * - `compact` - Reduces visual weight and spacing for dense layouts or secondary elements with less visual prominence.
34
39
  * - `default` - Standard size that works well in most contexts and provides balanced visibility.
40
+ * @public
35
41
  */
36
42
  export type Density = 'compact' | 'default';
37
43
  /** Communicates the intent and semantic meaning of an element to help users understand the outcome of their actions.
@@ -39,15 +45,19 @@ export type Density = 'compact' | 'default';
39
45
  * - `warning` - Indicates cautionary actions that require careful consideration before proceeding.
40
46
  * - `success` - Represents positive outcomes, confirmations, or constructive actions.
41
47
  * - `danger` - Signals destructive or irreversible actions that need extra attention and confirmation.
48
+ * @public
42
49
  */
43
50
  export type SupportStatus = 'accent' | 'warning' | 'success' | 'danger';
44
51
  /** Controls how the chart connects intermediate values between points in a data series.
45
52
  * - `linear` - Connects points with straight line segments.
46
53
  * - `smooth` - Connects points with smooth bezier curves.
47
54
  * - `step` - Connects points with horizontal and vertical step segments.
55
+ * @public
48
56
  */
49
57
  export type Interpolation = 'linear' | 'smooth' | 'step';
50
- /** Determines the orientation of an element. */
58
+ /** Determines the orientation of an element.
59
+ * @public
60
+ */
51
61
  export type Orientation = 'vertical' | 'horizontal';
52
62
  /** Communicates the current state of a task or process to keep users informed of progress and outcomes.
53
63
  * - `scheduled` - Task has a scheduled future execution at a specific time.
@@ -61,6 +71,7 @@ export type Orientation = 'vertical' | 'horizontal';
61
71
  * - `failed` - Task encountered an error and did not complete as intended.
62
72
  * - `unknown` - Task status remains unknown or unavailable.
63
73
  * - `ignored` - Task was intentionally skipped or excluded from execution.
74
+ * @public
64
75
  */
65
76
  export type TaskStatus = 'scheduled' | 'queued' | 'pending' | 'starting' | 'running' | 'restarting' | 'stopping' | 'finished' | 'failed' | 'unknown' | 'ignored';
66
77
  /**
@@ -68,8 +79,10 @@ export type TaskStatus = 'scheduled' | 'queued' | 'pending' | 'starting' | 'runn
68
79
  * - `auto` light dismiss, focus on open, return to trigger
69
80
  * - `manual` no light dismiss, no auto focus
70
81
  * - `hint` no light dismiss, no auto focus, open/close on hover/focus
82
+ * @public
71
83
  */
72
84
  export type PopoverType = 'auto' | 'manual' | 'hint' | 'inline';
85
+ /** @public */
73
86
  export type InterestEvent = Event & {
74
87
  source: HTMLElement;
75
88
  };
@@ -77,6 +90,7 @@ export type InterestEvent = Event & {
77
90
  * - `start` - Aligns the popover to the beginning edge of the anchor for left or top alignment.
78
91
  * - `end` - Aligns the popover to the ending edge of the anchor for right or bottom alignment.
79
92
  * - `center` - Centers the popover along the anchor's edge for balanced positioning.
93
+ * @public
80
94
  */
81
95
  export type PopoverAlign = 'start' | 'end' | 'center';
82
96
  /** Determines the popover position relative to its assigned anchor and alignment.
@@ -84,6 +98,7 @@ export type PopoverAlign = 'start' | 'end' | 'center';
84
98
  * - `bottom` - Positions the popover below the anchor element.
85
99
  * - `left` - Positions the popover to the left side of the anchor element.
86
100
  * - `right` - Positions the popover to the right side of the anchor element.
101
+ * @public
87
102
  */
88
103
  export type PopoverSides = 'top' | 'bottom' | 'left' | 'right';
89
104
  /** Controls the placement of the popover relative to its anchor element.
@@ -92,20 +107,25 @@ export type PopoverSides = 'top' | 'bottom' | 'left' | 'right';
92
107
  * - `bottom` - Positions the popover below the anchor element.
93
108
  * - `left` - Positions the popover to the left side of the anchor element.
94
109
  * - `right` - Positions the popover to the right side of the anchor element.
110
+ * @public
95
111
  */
96
112
  export type PopoverPosition = 'center' | 'top' | 'bottom' | 'left' | 'right';
97
- /** Determines the position of an element relative to its anchor */
113
+ /** Determines the position of an element relative to its anchor
114
+ * @public
115
+ */
98
116
  export type Placement = PopoverPosition | `${PopoverSides}-${PopoverAlign}`;
99
117
  /** Controls the directional arrangement and spacing behavior of the element's content.
100
118
  * - `vertical` - Arranges content in a vertical stack with block-level spacing.
101
119
  * - `vertical-inline` - Arranges content vertically with compact inline spacing for dense layouts.
102
120
  * - `horizontal` - Arranges content in a horizontal row with block-level spacing.
103
121
  * - `horizontal-inline` - Arranges content horizontally with compact inline spacing.
122
+ * @public
104
123
  */
105
124
  export type ControlLayout = 'vertical' | 'vertical-inline' | 'horizontal' | 'horizontal-inline';
106
125
  /** Indicates the element that represents the user's current location or position within a set. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current)
107
126
  * - `page` - Marks the current page within a set of navigation links.
108
127
  * - `step` - Marks the current step within a multi-step process or workflow.
128
+ * @public
109
129
  */
110
130
  export type Current = 'page' | 'step';
111
131
  /** Controls how data points are visually encoded in a sparkline chart.
@@ -114,8 +134,10 @@ export type Current = 'page' | 'step';
114
134
  * - `gradient` - Renders a line with gradient color treatment to communicate value intensity across the series.
115
135
  * - `column` - Renders data as vertical columns for easy comparison of discrete values.
116
136
  * - `winloss` - Renders outcomes as binary or ternary bars to highlight wins, losses, and optional ties.
137
+ * @public
117
138
  */
118
139
  export type SparklineMark = 'line' | 'area' | 'gradient' | 'column' | 'winloss';
140
+ /** @public */
119
141
  export interface NveElement {
120
142
  /**
121
143
  * This Boolean attribute prevents the user from interacting with the element: it cannot receive press or focus events. [MDN](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-disabled)
@@ -267,20 +289,26 @@ export interface NveElement {
267
289
  * - `footer` - Content that appears at the bottom of the element, used for supplementary information or actions.
268
290
  * - `actions` - Content area specifically for interactive controls like buttons or links.
269
291
  * - `icon` - Content area for displaying an icon that represents the element's purpose or state.
292
+ * @public
270
293
  */
271
294
  export type SlotName = 'default' | 'prefix' | 'suffix' | 'header' | 'footer' | 'actions' | 'icon';
272
295
  /** The Interaction type provides a way to show the intent of an interactive element. This can help users quickly understand what each interaction does and reduce the potential for confusion or errors.
273
296
  * - `emphasis` Shows the interaction targets emphasis or highlighting primary actions.
274
297
  * - `destructive` Shows the interaction targets destructive actions such as deleting or removing.
298
+ * @public
275
299
  */
276
300
  export type Interaction = 'emphasis' | 'destructive';
301
+ /** @public */
277
302
  export interface ContainerElement {
278
303
  container?: Partial<Container>;
279
304
  }
280
- /** An element that renders complex data structures (e.g., arrays, series, matrices) rather than composable UI content and values expressible with primitive attributes. */
305
+ /** An element that renders complex data structures (e.g., arrays, series, matrices) rather than composable UI content and values expressible with primitive attributes.
306
+ * @public
307
+ */
281
308
  export interface DataElement<T extends unknown[] | Record<string, unknown>> {
282
309
  data?: T;
283
310
  }
311
+ /** @public */
284
312
  export declare const statusIcons: {
285
313
  [key: string]: IconName;
286
314
  };
@@ -297,24 +325,30 @@ declare global {
297
325
  prototype: CustomElementRegistry;
298
326
  };
299
327
  }
328
+ /** @public */
300
329
  export interface Point {
301
330
  x: number;
302
331
  y: number;
303
332
  }
333
+ /** @public */
304
334
  export interface OffsetPoint {
305
335
  offsetX: number;
306
336
  offsetY: number;
307
337
  }
338
+ /** @public */
308
339
  export interface Dimensions {
309
340
  width: number;
310
341
  height: number;
311
342
  }
343
+ /** @public */
312
344
  export type Rect = Point & Dimensions;
345
+ /** @public */
313
346
  export interface Scale {
314
347
  min: number;
315
348
  max: number;
316
349
  }
317
350
  /** https://github.com/tc39/proposal-decorators */
351
+ /** @public */
318
352
  export type LegacyDecoratorTarget = Function & {
319
353
  addInitializer?: (initializer: (instance: any) => void) => void;
320
354
  };