@nvidia-elements/core 0.0.12 → 0.1.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 (552) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/_virtual/{_@oxc-project_runtime@0.123.0 → _@oxc-project_runtime@0.128.0}/helpers/decorate.js +1 -1
  3. package/dist/accordion/accordion2.js +12 -12
  4. package/dist/accordion/accordion2.js.map +1 -1
  5. package/dist/alert/alert-group2.js +2 -2
  6. package/dist/alert/alert-group2.js.map +1 -1
  7. package/dist/alert/alert2.js +5 -5
  8. package/dist/alert/alert2.js.map +1 -1
  9. package/dist/avatar/avatar-group2.js +1 -1
  10. package/dist/avatar/avatar-group2.js.map +1 -1
  11. package/dist/avatar/avatar2.js +2 -2
  12. package/dist/avatar/avatar2.js.map +1 -1
  13. package/dist/badge/badge2.js +4 -4
  14. package/dist/badge/badge2.js.map +1 -1
  15. package/dist/breadcrumb/breadcrumb2.js +2 -2
  16. package/dist/breadcrumb/breadcrumb2.js.map +1 -1
  17. package/dist/bundle.d.ts +1 -0
  18. package/dist/bundles/index.d.ts +86 -0
  19. package/dist/bundles/index.js +3 -3
  20. package/dist/button/button2.js +2 -2
  21. package/dist/button/button2.js.map +1 -1
  22. package/dist/button-group/button-group2.js +4 -4
  23. package/dist/button-group/button-group2.js.map +1 -1
  24. package/dist/card/card2.js +5 -5
  25. package/dist/card/card2.js.map +1 -1
  26. package/dist/chat-message/chat-message2.js +2 -2
  27. package/dist/chat-message/chat-message2.js.map +1 -1
  28. package/dist/checkbox/checkbox-group2.js +2 -2
  29. package/dist/checkbox/checkbox2.js +2 -2
  30. package/dist/color/color2.js +2 -2
  31. package/dist/color/color2.js.map +1 -1
  32. package/dist/combobox/combobox2.js +6 -6
  33. package/dist/combobox/combobox2.js.map +1 -1
  34. package/dist/copy-button/copy-button2.js +17 -17
  35. package/dist/copy-button/copy-button2.js.map +1 -1
  36. package/dist/custom-elements-jsx.d.ts +50 -0
  37. package/dist/custom-elements-vue.d.ts +50 -0
  38. package/dist/custom-elements.json +790 -43
  39. package/dist/data.html.json +119 -1
  40. package/dist/data.snippets.json +2 -2
  41. package/dist/date/date2.js +2 -2
  42. package/dist/date/date2.js.map +1 -1
  43. package/dist/datetime/datetime2.js +2 -2
  44. package/dist/datetime/datetime2.js.map +1 -1
  45. package/dist/dialog/dialog-footer2.js +2 -2
  46. package/dist/dialog/dialog-footer2.js.map +1 -1
  47. package/dist/dialog/dialog-header2.js +2 -2
  48. package/dist/dialog/dialog-header2.js.map +1 -1
  49. package/dist/dialog/dialog2.js +4 -4
  50. package/dist/dialog/dialog2.js.map +1 -1
  51. package/dist/divider/divider2.js +2 -2
  52. package/dist/divider/divider2.js.map +1 -1
  53. package/dist/dot/dot2.js +2 -2
  54. package/dist/dot/dot2.js.map +1 -1
  55. package/dist/drawer/drawer-content2.js +2 -2
  56. package/dist/drawer/drawer-content2.js.map +1 -1
  57. package/dist/drawer/drawer-footer2.js +2 -2
  58. package/dist/drawer/drawer-footer2.js.map +1 -1
  59. package/dist/drawer/drawer-header2.js +2 -2
  60. package/dist/drawer/drawer-header2.js.map +1 -1
  61. package/dist/drawer/drawer2.js +8 -8
  62. package/dist/drawer/drawer2.js.map +1 -1
  63. package/dist/dropdown/dropdown-footer2.js +2 -2
  64. package/dist/dropdown/dropdown-footer2.js.map +1 -1
  65. package/dist/dropdown/dropdown-header2.js +2 -2
  66. package/dist/dropdown/dropdown-header2.js.map +1 -1
  67. package/dist/dropdown/dropdown2.js +4 -4
  68. package/dist/dropdown/dropdown2.js.map +1 -1
  69. package/dist/dropdown-group/dropdown-group.js +2 -2
  70. package/dist/dropdown-group/dropdown-group.js.map +1 -1
  71. package/dist/dropzone/dropzone.util.js.map +1 -1
  72. package/dist/dropzone/dropzone2.js +4 -4
  73. package/dist/dropzone/dropzone2.js.map +1 -1
  74. package/dist/file/file2.js +1 -1
  75. package/dist/file/file2.js.map +1 -1
  76. package/dist/format-datetime/format-datetime2.js +2 -2
  77. package/dist/format-datetime/format-datetime2.js.map +1 -1
  78. package/dist/format-number/define.d.ts +6 -0
  79. package/dist/format-number/define.js +7 -0
  80. package/dist/format-number/define.js.map +1 -0
  81. package/dist/format-number/format-number.d.ts +87 -0
  82. package/dist/format-number/format-number.examples.js +6 -0
  83. package/dist/format-number/format-number.examples.js.map +1 -0
  84. package/dist/format-number/format-number.examples.json +87 -0
  85. package/dist/format-number/format-number.js +6 -0
  86. package/dist/format-number/format-number.js.map +1 -0
  87. package/dist/format-number/format-number2.js +111 -0
  88. package/dist/format-number/format-number2.js.map +1 -0
  89. package/dist/format-number/index.d.ts +1 -0
  90. package/dist/format-number/index.js +2 -0
  91. package/dist/format-relative-time/format-relative-time2.js +2 -2
  92. package/dist/format-relative-time/format-relative-time2.js.map +1 -1
  93. package/dist/forms/control/control2.js +19 -15
  94. package/dist/forms/control/control2.js.map +1 -1
  95. package/dist/forms/control-group/control-group2.js +2 -2
  96. package/dist/forms/control-group/control-group2.js.map +1 -1
  97. package/dist/forms/control-message/control-message2.js +2 -2
  98. package/dist/forms/control-message/control-message2.js.map +1 -1
  99. package/dist/forms/utils/layout.d.ts +2 -1
  100. package/dist/forms/utils/layout.js.map +1 -1
  101. package/dist/forms/utils/states.d.ts +0 -1
  102. package/dist/forms/utils/states.js.map +1 -1
  103. package/dist/forms/utils/types.d.ts +0 -24
  104. package/dist/grid/cell/cell2.js +1 -1
  105. package/dist/grid/cell/cell2.js.map +1 -1
  106. package/dist/grid/column/column2.js +2 -2
  107. package/dist/grid/column/column2.js.map +1 -1
  108. package/dist/grid/footer/footer2.js +2 -2
  109. package/dist/grid/footer/footer2.js.map +1 -1
  110. package/dist/grid/grid2.js +2 -2
  111. package/dist/grid/grid2.js.map +1 -1
  112. package/dist/grid/header/header2.js +2 -2
  113. package/dist/grid/header/header2.js.map +1 -1
  114. package/dist/grid/placeholder/placeholder2.js +1 -1
  115. package/dist/grid/placeholder/placeholder2.js.map +1 -1
  116. package/dist/grid/row/row2.js +2 -2
  117. package/dist/grid/row/row2.js.map +1 -1
  118. package/dist/icon/icon2.js +3 -3
  119. package/dist/icon/icon2.js.map +1 -1
  120. package/dist/icon/icons/academic-cap.js.map +1 -1
  121. package/dist/icon/icons/add-asset.js.map +1 -1
  122. package/dist/icon/icons/add-comment.js.map +1 -1
  123. package/dist/icon/icons/add-grid.js.map +1 -1
  124. package/dist/icon/icons/add-user.js.map +1 -1
  125. package/dist/icon/icons/add.js.map +1 -1
  126. package/dist/icon/icons/ancestors.js.map +1 -1
  127. package/dist/icon/icons/archive.js.map +1 -1
  128. package/dist/icon/icons/arrow-angle.js.map +1 -1
  129. package/dist/icon/icons/arrow-both.js.map +1 -1
  130. package/dist/icon/icons/arrow-cycle.js.map +1 -1
  131. package/dist/icon/icons/arrow-path-rounded-square.js.map +1 -1
  132. package/dist/icon/icons/arrow-stop.js.map +1 -1
  133. package/dist/icon/icons/arrow.js.map +1 -1
  134. package/dist/icon/icons/at-symbol.js.map +1 -1
  135. package/dist/icon/icons/backspace.js.map +1 -1
  136. package/dist/icon/icons/bar-pill-stack.js.map +1 -1
  137. package/dist/icon/icons/bars-3-bottom-left.js.map +1 -1
  138. package/dist/icon/icons/bars-3-bottom-right.js.map +1 -1
  139. package/dist/icon/icons/bars-3-center-left.js.map +1 -1
  140. package/dist/icon/icons/bars-3.js.map +1 -1
  141. package/dist/icon/icons/bars-4.js.map +1 -1
  142. package/dist/icon/icons/beaker.js.map +1 -1
  143. package/dist/icon/icons/bell-slash.js.map +1 -1
  144. package/dist/icon/icons/bell-stroke.js.map +1 -1
  145. package/dist/icon/icons/bell.js.map +1 -1
  146. package/dist/icon/icons/bold.js.map +1 -1
  147. package/dist/icon/icons/book.js.map +1 -1
  148. package/dist/icon/icons/bookmark-stroke.js.map +1 -1
  149. package/dist/icon/icons/bookmark.js.map +1 -1
  150. package/dist/icon/icons/bounding-box.js.map +1 -1
  151. package/dist/icon/icons/branch.js.map +1 -1
  152. package/dist/icon/icons/briefcase.js.map +1 -1
  153. package/dist/icon/icons/broadcast.js.map +1 -1
  154. package/dist/icon/icons/browser.js.map +1 -1
  155. package/dist/icon/icons/bug.js.map +1 -1
  156. package/dist/icon/icons/calendar.js.map +1 -1
  157. package/dist/icon/icons/camera.js.map +1 -1
  158. package/dist/icon/icons/cancel.js.map +1 -1
  159. package/dist/icon/icons/caret.js.map +1 -1
  160. package/dist/icon/icons/carets-closed-square.js.map +1 -1
  161. package/dist/icon/icons/carousel.js.map +1 -1
  162. package/dist/icon/icons/category-list.js.map +1 -1
  163. package/dist/icon/icons/chart-bar.js.map +1 -1
  164. package/dist/icon/icons/chat-bubble.js.map +1 -1
  165. package/dist/icon/icons/chat-bubbles.js.map +1 -1
  166. package/dist/icon/icons/check-badge.js.map +1 -1
  167. package/dist/icon/icons/check.js.map +1 -1
  168. package/dist/icon/icons/checklist.js.map +1 -1
  169. package/dist/icon/icons/checkmark-circle.js.map +1 -1
  170. package/dist/icon/icons/chevron.js.map +1 -1
  171. package/dist/icon/icons/chip.js.map +1 -1
  172. package/dist/icon/icons/circle-angled-line.js.map +1 -1
  173. package/dist/icon/icons/circle-dash.js.map +1 -1
  174. package/dist/icon/icons/circle-dot-arrows.js.map +1 -1
  175. package/dist/icon/icons/circle-dot.js.map +1 -1
  176. package/dist/icon/icons/circle-half.js.map +1 -1
  177. package/dist/icon/icons/circle-rule.js.map +1 -1
  178. package/dist/icon/icons/circle-tick.js.map +1 -1
  179. package/dist/icon/icons/circle.js.map +1 -1
  180. package/dist/icon/icons/clipboard.js.map +1 -1
  181. package/dist/icon/icons/clock-circle-arrow.js.map +1 -1
  182. package/dist/icon/icons/clock.js.map +1 -1
  183. package/dist/icon/icons/cloud-download.js.map +1 -1
  184. package/dist/icon/icons/cloud-upload.js.map +1 -1
  185. package/dist/icon/icons/cloud.js.map +1 -1
  186. package/dist/icon/icons/code.js.map +1 -1
  187. package/dist/icon/icons/collapse-all.js.map +1 -1
  188. package/dist/icon/icons/collapse-details.js.map +1 -1
  189. package/dist/icon/icons/color-palette.js.map +1 -1
  190. package/dist/icon/icons/columns.js.map +1 -1
  191. package/dist/icon/icons/compare.js.map +1 -1
  192. package/dist/icon/icons/computer.js.map +1 -1
  193. package/dist/icon/icons/connect-node.js.map +1 -1
  194. package/dist/icon/icons/connected-blocks.js.map +1 -1
  195. package/dist/icon/icons/copy.js.map +1 -1
  196. package/dist/icon/icons/cross-hairs.js.map +1 -1
  197. package/dist/icon/icons/cursor-rays.js.map +1 -1
  198. package/dist/icon/icons/cursor-ripples.js.map +1 -1
  199. package/dist/icon/icons/data-management.js.map +1 -1
  200. package/dist/icon/icons/delete-node.js.map +1 -1
  201. package/dist/icon/icons/delete.js.map +1 -1
  202. package/dist/icon/icons/doc-checkmark.js.map +1 -1
  203. package/dist/icon/icons/dock-bottom.js.map +1 -1
  204. package/dist/icon/icons/dock-none.js.map +1 -1
  205. package/dist/icon/icons/dock-side.js.map +1 -1
  206. package/dist/icon/icons/document-clipboard.js.map +1 -1
  207. package/dist/icon/icons/document.js.map +1 -1
  208. package/dist/icon/icons/dot-stroke.js.map +1 -1
  209. package/dist/icon/icons/dot.js.map +1 -1
  210. package/dist/icon/icons/double-chevron.js.map +1 -1
  211. package/dist/icon/icons/download.js.map +1 -1
  212. package/dist/icon/icons/drag.js.map +1 -1
  213. package/dist/icon/icons/dropper.js.map +1 -1
  214. package/dist/icon/icons/duplicate.js.map +1 -1
  215. package/dist/icon/icons/edit.js.map +1 -1
  216. package/dist/icon/icons/ellipses.js.map +1 -1
  217. package/dist/icon/icons/envelope.js.map +1 -1
  218. package/dist/icon/icons/exclamation-circle.js.map +1 -1
  219. package/dist/icon/icons/exclamation-mark.js.map +1 -1
  220. package/dist/icon/icons/exclamation-triangle.js.map +1 -1
  221. package/dist/icon/icons/expand-all.js.map +1 -1
  222. package/dist/icon/icons/expand-details.js.map +1 -1
  223. package/dist/icon/icons/expression.js.map +1 -1
  224. package/dist/icon/icons/eye-hidden.js.map +1 -1
  225. package/dist/icon/icons/eye.js.map +1 -1
  226. package/dist/icon/icons/face-frown.js.map +1 -1
  227. package/dist/icon/icons/face-smile.js.map +1 -1
  228. package/dist/icon/icons/fast-forward-10.js.map +1 -1
  229. package/dist/icon/icons/fast-forward.js.map +1 -1
  230. package/dist/icon/icons/film.js.map +1 -1
  231. package/dist/icon/icons/filter-stroke.js.map +1 -1
  232. package/dist/icon/icons/filter.js.map +1 -1
  233. package/dist/icon/icons/flag-stroke.js.map +1 -1
  234. package/dist/icon/icons/flag.js.map +1 -1
  235. package/dist/icon/icons/fold.js.map +1 -1
  236. package/dist/icon/icons/folder.js.map +1 -1
  237. package/dist/icon/icons/fork.js.map +1 -1
  238. package/dist/icon/icons/gear.js.map +1 -1
  239. package/dist/icon/icons/globe-alt-stroke.js.map +1 -1
  240. package/dist/icon/icons/globe.js.map +1 -1
  241. package/dist/icon/icons/group-boxes.js.map +1 -1
  242. package/dist/icon/icons/group.js.map +1 -1
  243. package/dist/icon/icons/hand.js.map +1 -1
  244. package/dist/icon/icons/hash.js.map +1 -1
  245. package/dist/icon/icons/heading.js.map +1 -1
  246. package/dist/icon/icons/home.js.map +1 -1
  247. package/dist/icon/icons/horizontal-rule.js.map +1 -1
  248. package/dist/icon/icons/hourglass-end.js.map +1 -1
  249. package/dist/icon/icons/hourglass-mid.js.map +1 -1
  250. package/dist/icon/icons/hourglass-start.js.map +1 -1
  251. package/dist/icon/icons/hourglass.js.map +1 -1
  252. package/dist/icon/icons/identification.js.map +1 -1
  253. package/dist/icon/icons/image.js.map +1 -1
  254. package/dist/icon/icons/inbox.js.map +1 -1
  255. package/dist/icon/icons/infinity.js.map +1 -1
  256. package/dist/icon/icons/information-circle-stroke.js.map +1 -1
  257. package/dist/icon/icons/inspect.js.map +1 -1
  258. package/dist/icon/icons/italic.js.map +1 -1
  259. package/dist/icon/icons/key.js.map +1 -1
  260. package/dist/icon/icons/keyboard.js.map +1 -1
  261. package/dist/icon/icons/laptop-phone.js.map +1 -1
  262. package/dist/icon/icons/layers.js.map +1 -1
  263. package/dist/icon/icons/lifebuoy.js.map +1 -1
  264. package/dist/icon/icons/lightbulb.js.map +1 -1
  265. package/dist/icon/icons/lightning-bolt.js.map +1 -1
  266. package/dist/icon/icons/link.js.map +1 -1
  267. package/dist/icon/icons/list-ordered.js.map +1 -1
  268. package/dist/icon/icons/list-unordered.js.map +1 -1
  269. package/dist/icon/icons/lock.js.map +1 -1
  270. package/dist/icon/icons/login.js.map +1 -1
  271. package/dist/icon/icons/logout.js.map +1 -1
  272. package/dist/icon/icons/looping-off.js.map +1 -1
  273. package/dist/icon/icons/looping.js.map +1 -1
  274. package/dist/icon/icons/map-drives.js.map +1 -1
  275. package/dist/icon/icons/map-pin.js.map +1 -1
  276. package/dist/icon/icons/map.js.map +1 -1
  277. package/dist/icon/icons/markdown.js.map +1 -1
  278. package/dist/icon/icons/maximize.js.map +1 -1
  279. package/dist/icon/icons/megaphone.js.map +1 -1
  280. package/dist/icon/icons/menu.js.map +1 -1
  281. package/dist/icon/icons/merge.js.map +1 -1
  282. package/dist/icon/icons/meter.js.map +1 -1
  283. package/dist/icon/icons/minimize.js.map +1 -1
  284. package/dist/icon/icons/minus-circle.js.map +1 -1
  285. package/dist/icon/icons/minus.js.map +1 -1
  286. package/dist/icon/icons/moon.js.map +1 -1
  287. package/dist/icon/icons/more-actions.js.map +1 -1
  288. package/dist/icon/icons/multiselect.js.map +1 -1
  289. package/dist/icon/icons/music-note.js.map +1 -1
  290. package/dist/icon/icons/newspaper.js.map +1 -1
  291. package/dist/icon/icons/not-allowed.js.map +1 -1
  292. package/dist/icon/icons/numbers.js.map +1 -1
  293. package/dist/icon/icons/office-building.js.map +1 -1
  294. package/dist/icon/icons/outline.js.map +1 -1
  295. package/dist/icon/icons/paper-airplane.js.map +1 -1
  296. package/dist/icon/icons/paper-clip.js.map +1 -1
  297. package/dist/icon/icons/pause.js.map +1 -1
  298. package/dist/icon/icons/pencil-square.js.map +1 -1
  299. package/dist/icon/icons/person-2.js.map +1 -1
  300. package/dist/icon/icons/person-3.js.map +1 -1
  301. package/dist/icon/icons/person-circle.js.map +1 -1
  302. package/dist/icon/icons/person.js.map +1 -1
  303. package/dist/icon/icons/phone.js.map +1 -1
  304. package/dist/icon/icons/picture-in-picture.js.map +1 -1
  305. package/dist/icon/icons/pie-chart.js.map +1 -1
  306. package/dist/icon/icons/pin.js.map +1 -1
  307. package/dist/icon/icons/pizza-slice.js.map +1 -1
  308. package/dist/icon/icons/placeholder.js.map +1 -1
  309. package/dist/icon/icons/play.js.map +1 -1
  310. package/dist/icon/icons/plug.js.map +1 -1
  311. package/dist/icon/icons/plus-circle.js.map +1 -1
  312. package/dist/icon/icons/plus-minus.js.map +1 -1
  313. package/dist/icon/icons/pointer-stroke.js.map +1 -1
  314. package/dist/icon/icons/pointer.js.map +1 -1
  315. package/dist/icon/icons/priority-high.js.map +1 -1
  316. package/dist/icon/icons/priority-low.js.map +1 -1
  317. package/dist/icon/icons/priority-medium.js.map +1 -1
  318. package/dist/icon/icons/projector.js.map +1 -1
  319. package/dist/icon/icons/pull-close.js.map +1 -1
  320. package/dist/icon/icons/pull-draft.js.map +1 -1
  321. package/dist/icon/icons/pull-open.js.map +1 -1
  322. package/dist/icon/icons/pulse.js.map +1 -1
  323. package/dist/icon/icons/puzzle-piece.js.map +1 -1
  324. package/dist/icon/icons/question-mark-circle-stroke.js.map +1 -1
  325. package/dist/icon/icons/question-mark-circle.js.map +1 -1
  326. package/dist/icon/icons/rectangle-group.js.map +1 -1
  327. package/dist/icon/icons/rectangle-stack-horizontal.js.map +1 -1
  328. package/dist/icon/icons/rectangle-stack-vertical.js.map +1 -1
  329. package/dist/icon/icons/redo.js.map +1 -1
  330. package/dist/icon/icons/refresh.js.map +1 -1
  331. package/dist/icon/icons/reply.js.map +1 -1
  332. package/dist/icon/icons/rewind-10.js.map +1 -1
  333. package/dist/icon/icons/rewind.js.map +1 -1
  334. package/dist/icon/icons/rocketship.js.map +1 -1
  335. package/dist/icon/icons/running.js.map +1 -1
  336. package/dist/icon/icons/scale.js.map +1 -1
  337. package/dist/icon/icons/scissors.js.map +1 -1
  338. package/dist/icon/icons/search.js.map +1 -1
  339. package/dist/icon/icons/sensor.js.map +1 -1
  340. package/dist/icon/icons/server-stack.js.map +1 -1
  341. package/dist/icon/icons/server.js.map +1 -1
  342. package/dist/icon/icons/shapes.js.map +1 -1
  343. package/dist/icon/icons/share.js.map +1 -1
  344. package/dist/icon/icons/signal-slash.js.map +1 -1
  345. package/dist/icon/icons/signal.js.map +1 -1
  346. package/dist/icon/icons/signpost.js.map +1 -1
  347. package/dist/icon/icons/sort-ascending.js.map +1 -1
  348. package/dist/icon/icons/sort-descending.js.map +1 -1
  349. package/dist/icon/icons/soundwave.js.map +1 -1
  350. package/dist/icon/icons/sparkles.js.map +1 -1
  351. package/dist/icon/icons/split-horizontal.js.map +1 -1
  352. package/dist/icon/icons/split-none.js.map +1 -1
  353. package/dist/icon/icons/split-vertical.js.map +1 -1
  354. package/dist/icon/icons/star-half.js.map +1 -1
  355. package/dist/icon/icons/star-stroke.js.map +1 -1
  356. package/dist/icon/icons/star.js.map +1 -1
  357. package/dist/icon/icons/start.js.map +1 -1
  358. package/dist/icon/icons/status-offline.js.map +1 -1
  359. package/dist/icon/icons/status-online.js.map +1 -1
  360. package/dist/icon/icons/stop-sign.js.map +1 -1
  361. package/dist/icon/icons/stop.js.map +1 -1
  362. package/dist/icon/icons/stopwatch.js.map +1 -1
  363. package/dist/icon/icons/strikethrough.js.map +1 -1
  364. package/dist/icon/icons/sun.js.map +1 -1
  365. package/dist/icon/icons/swatch.js.map +1 -1
  366. package/dist/icon/icons/switch-apps.js.map +1 -1
  367. package/dist/icon/icons/switch.js.map +1 -1
  368. package/dist/icon/icons/table.js.map +1 -1
  369. package/dist/icon/icons/tag.js.map +1 -1
  370. package/dist/icon/icons/task.js.map +1 -1
  371. package/dist/icon/icons/telescope.js.map +1 -1
  372. package/dist/icon/icons/template.js.map +1 -1
  373. package/dist/icon/icons/terminal.js.map +1 -1
  374. package/dist/icon/icons/thumb-stroke.js.map +1 -1
  375. package/dist/icon/icons/thumb.js.map +1 -1
  376. package/dist/icon/icons/traffic-cone.js.map +1 -1
  377. package/dist/icon/icons/transparent-box.js.map +1 -1
  378. package/dist/icon/icons/trend-down.js.map +1 -1
  379. package/dist/icon/icons/trend-up.js.map +1 -1
  380. package/dist/icon/icons/trophy.js.map +1 -1
  381. package/dist/icon/icons/truck.js.map +1 -1
  382. package/dist/icon/icons/typography.js.map +1 -1
  383. package/dist/icon/icons/undo.js.map +1 -1
  384. package/dist/icon/icons/unlock.js.map +1 -1
  385. package/dist/icon/icons/upload.js.map +1 -1
  386. package/dist/icon/icons/video-camera.js.map +1 -1
  387. package/dist/icon/icons/view-as-grid.js.map +1 -1
  388. package/dist/icon/icons/volume-muted.js.map +1 -1
  389. package/dist/icon/icons/volume.js.map +1 -1
  390. package/dist/icon/icons/wifi.js.map +1 -1
  391. package/dist/icon/icons/wrench.js.map +1 -1
  392. package/dist/icon/icons/x-circle.js.map +1 -1
  393. package/dist/icon/icons/zoom-in.js.map +1 -1
  394. package/dist/icon/icons/zoom-out.js.map +1 -1
  395. package/dist/icon/icons.js.map +1 -1
  396. package/dist/icon-button/icon-button2.js +2 -2
  397. package/dist/icon-button/icon-button2.js.map +1 -1
  398. package/dist/index.js +1 -1
  399. package/dist/input/input-group2.js +1 -1
  400. package/dist/input/input-group2.js.map +1 -1
  401. package/dist/input/input2.js +2 -2
  402. package/dist/internal/base/button.js +3 -3
  403. package/dist/internal/base/button.js.map +1 -1
  404. package/dist/internal/controllers/audit.controller.js.map +1 -1
  405. package/dist/internal/controllers/i18n.controller.js.map +1 -1
  406. package/dist/internal/controllers/keynav-grid.controller.js.map +1 -1
  407. package/dist/internal/controllers/keynav-list.controller.js.map +1 -1
  408. package/dist/internal/controllers/state-active.controller.js.map +1 -1
  409. package/dist/internal/controllers/state-current.controller.js.map +1 -1
  410. package/dist/internal/controllers/state-disabled.controller.js.map +1 -1
  411. package/dist/internal/controllers/state-expanded.controller.js.map +1 -1
  412. package/dist/internal/controllers/state-highlighted.controller.js.map +1 -1
  413. package/dist/internal/controllers/state-pressed.controller.js.map +1 -1
  414. package/dist/internal/controllers/state-scroll.controller.js.map +1 -1
  415. package/dist/internal/controllers/state-selected.controller.js.map +1 -1
  416. package/dist/internal/controllers/type-anchor.controller.js.map +1 -1
  417. package/dist/internal/controllers/type-button.controller.js.map +1 -1
  418. package/dist/internal/controllers/type-closable.controller.js.map +1 -1
  419. package/dist/internal/controllers/type-command.controller.js.map +1 -1
  420. package/dist/internal/controllers/type-expandable.controller.js.map +1 -1
  421. package/dist/internal/controllers/type-interest.controller.js.map +1 -1
  422. package/dist/internal/controllers/type-native-popover-trigger.controller.js.map +1 -1
  423. package/dist/internal/controllers/type-native-popover.controller.js.map +1 -1
  424. package/dist/internal/controllers/type-native-popover.utils.js.map +1 -1
  425. package/dist/internal/controllers/type-selectable.controller.js.map +1 -1
  426. package/dist/internal/controllers/type-ssr.controller.js +2 -2
  427. package/dist/internal/controllers/type-ssr.controller.js.map +1 -1
  428. package/dist/internal/controllers/type-submit.controller.js.map +1 -1
  429. package/dist/internal/controllers/type-touch.controller.js.map +1 -1
  430. package/dist/internal/decorators/host-attr.js.map +1 -1
  431. package/dist/internal/decorators/scoped-registry.js.map +1 -1
  432. package/dist/internal/services/global.service.js +1 -1
  433. package/dist/internal/services/global.service.js.map +1 -1
  434. package/dist/internal/services/global.utils.js.map +1 -1
  435. package/dist/internal/services/i18n.service.js.map +1 -1
  436. package/dist/internal/services/log.service.js.map +1 -1
  437. package/dist/internal/services/transition.service.js.map +1 -1
  438. package/dist/internal/styles/index.js.map +1 -1
  439. package/dist/internal/styles/popover2.js.map +1 -1
  440. package/dist/internal/utils/a11y.js.map +1 -1
  441. package/dist/internal/utils/audit-logs.js.map +1 -1
  442. package/dist/internal/utils/audit.js.map +1 -1
  443. package/dist/internal/utils/dom.js.map +1 -1
  444. package/dist/internal/utils/events.js.map +1 -1
  445. package/dist/internal/utils/focus.js.map +1 -1
  446. package/dist/internal/utils/keynav.js.map +1 -1
  447. package/dist/internal/utils/objects.js.map +1 -1
  448. package/dist/internal/utils/strings.js.map +1 -1
  449. package/dist/internal/utils/supports.js.map +1 -1
  450. package/dist/logo/logo.examples.js.map +1 -1
  451. package/dist/logo/logo.examples.json +4 -4
  452. package/dist/logo/logo2.js +2 -2
  453. package/dist/logo/logo2.js.map +1 -1
  454. package/dist/menu/menu-item2.js +2 -2
  455. package/dist/menu/menu-item2.js.map +1 -1
  456. package/dist/menu/menu.examples.js.map +1 -1
  457. package/dist/menu/menu.examples.json +3 -3
  458. package/dist/menu/menu2.js +2 -2
  459. package/dist/menu/menu2.js.map +1 -1
  460. package/dist/month/month2.js +2 -2
  461. package/dist/month/month2.js.map +1 -1
  462. package/dist/notification/notification-group2.js +2 -2
  463. package/dist/notification/notification-group2.js.map +1 -1
  464. package/dist/notification/notification2.js +4 -4
  465. package/dist/notification/notification2.js.map +1 -1
  466. package/dist/page/page-panel/page-panel-content2.js +1 -1
  467. package/dist/page/page-panel/page-panel-content2.js.map +1 -1
  468. package/dist/page/page-panel/page-panel-footer2.js +2 -2
  469. package/dist/page/page-panel/page-panel-footer2.js.map +1 -1
  470. package/dist/page/page-panel/page-panel-header2.js +2 -2
  471. package/dist/page/page-panel/page-panel-header2.js.map +1 -1
  472. package/dist/page/page-panel/page-panel2.js +5 -5
  473. package/dist/page/page-panel/page-panel2.js.map +1 -1
  474. package/dist/page/page2.js +2 -2
  475. package/dist/page/page2.js.map +1 -1
  476. package/dist/page-header/page-header2.js +1 -1
  477. package/dist/page-header/page-header2.js.map +1 -1
  478. package/dist/page-loader/page-loader2.js +2 -2
  479. package/dist/page-loader/page-loader2.js.map +1 -1
  480. package/dist/pagination/pagination2.js +4 -4
  481. package/dist/pagination/pagination2.js.map +1 -1
  482. package/dist/panel/panel2.js +8 -8
  483. package/dist/panel/panel2.js.map +1 -1
  484. package/dist/password/password2.js +2 -2
  485. package/dist/password/password2.js.map +1 -1
  486. package/dist/polyfills/custom-state-set.js.map +1 -1
  487. package/dist/polyfills/index.js.map +1 -1
  488. package/dist/preferences-input/preferences-input.examples.js.map +1 -1
  489. package/dist/preferences-input/preferences-input.examples.json +1 -1
  490. package/dist/preferences-input/preferences-input2.js +4 -4
  491. package/dist/preferences-input/preferences-input2.js.map +1 -1
  492. package/dist/progress-bar/progress-bar2.js +2 -2
  493. package/dist/progress-bar/progress-bar2.js.map +1 -1
  494. package/dist/progress-ring/progress-ring2.js +5 -5
  495. package/dist/progress-ring/progress-ring2.js.map +1 -1
  496. package/dist/progressive-filter-chip/progressive-filter-chip2.js +5 -5
  497. package/dist/progressive-filter-chip/progressive-filter-chip2.js.map +1 -1
  498. package/dist/pulse/pulse2.js +2 -2
  499. package/dist/pulse/pulse2.js.map +1 -1
  500. package/dist/radio/radio-group2.js +2 -2
  501. package/dist/radio/radio2.js +2 -2
  502. package/dist/range/range2.js +2 -2
  503. package/dist/range/range2.js.map +1 -1
  504. package/dist/resize-handle/resize-handle2.js +5 -5
  505. package/dist/resize-handle/resize-handle2.js.map +1 -1
  506. package/dist/search/search2.js +2 -2
  507. package/dist/search/search2.js.map +1 -1
  508. package/dist/select/select2.js +6 -6
  509. package/dist/select/select2.js.map +1 -1
  510. package/dist/skeleton/skeleton2.js +2 -2
  511. package/dist/skeleton/skeleton2.js.map +1 -1
  512. package/dist/sort-button/sort-button2.js +14 -14
  513. package/dist/sort-button/sort-button2.js.map +1 -1
  514. package/dist/sparkline/sparkline.utils.d.ts +0 -1
  515. package/dist/sparkline/sparkline.utils.js.map +1 -1
  516. package/dist/sparkline/sparkline2.js +2 -2
  517. package/dist/sparkline/sparkline2.js.map +1 -1
  518. package/dist/star-rating/star-rating2.js +4 -4
  519. package/dist/star-rating/star-rating2.js.map +1 -1
  520. package/dist/steps/steps2.js +7 -7
  521. package/dist/steps/steps2.js.map +1 -1
  522. package/dist/switch/switch-group2.js +2 -2
  523. package/dist/switch/switch2.js +2 -2
  524. package/dist/tabs/tabs-group2.js +16 -16
  525. package/dist/tabs/tabs-group2.js.map +1 -1
  526. package/dist/tabs/tabs2.js +7 -7
  527. package/dist/tabs/tabs2.js.map +1 -1
  528. package/dist/tag/tag2.js +5 -5
  529. package/dist/tag/tag2.js.map +1 -1
  530. package/dist/textarea/textarea2.js +1 -1
  531. package/dist/time/time2.js +2 -2
  532. package/dist/time/time2.js.map +1 -1
  533. package/dist/toast/toast2.js +4 -4
  534. package/dist/toast/toast2.js.map +1 -1
  535. package/dist/toggletip/toggletip-footer2.js +2 -2
  536. package/dist/toggletip/toggletip-footer2.js.map +1 -1
  537. package/dist/toggletip/toggletip-header2.js +2 -2
  538. package/dist/toggletip/toggletip-header2.js.map +1 -1
  539. package/dist/toggletip/toggletip2.js +4 -4
  540. package/dist/toggletip/toggletip2.js.map +1 -1
  541. package/dist/toolbar/toolbar2.js +4 -4
  542. package/dist/toolbar/toolbar2.js.map +1 -1
  543. package/dist/tooltip/tooltip2.js +2 -2
  544. package/dist/tooltip/tooltip2.js.map +1 -1
  545. package/dist/tree/tree-node2.js +9 -9
  546. package/dist/tree/tree-node2.js.map +1 -1
  547. package/dist/tree/tree2.js +4 -4
  548. package/dist/tree/tree2.js.map +1 -1
  549. package/dist/tree/utils.js.map +1 -1
  550. package/dist/week/week2.js +2 -2
  551. package/dist/week/week2.js.map +1 -1
  552. package/package.json +32 -14
@@ -1 +1 @@
1
- {"version":3,"file":"icons.js","names":[],"sources":["../../src/icon/icons.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// This is an auto-generated file. DO NOT EDIT\nexport interface IconSVG {\n svg: () => Promise<string> | string;\n}\n\nfunction iconImport(importer: () => Promise<{default: string}>): IconSVG {\n return {\n async svg() {\n return (await importer()).default;\n }\n }\n}\n\nexport const ICON_IMPORTS = {\n 'placeholder': iconImport(() => import('./icons/placeholder.svg?raw')),\n 'caret': iconImport(() => import('./icons/caret.svg?raw')),\n 'person': iconImport(() => import('./icons/person.svg?raw')),\n 'menu': iconImport(() => import('./icons/menu.svg?raw')),\n 'cancel': iconImport(() => import('./icons/cancel.svg?raw')),\n 'gear': iconImport(() => import('./icons/gear.svg?raw')),\n 'chevron': iconImport(() => import('./icons/chevron.svg?raw')),\n 'logout': iconImport(() => import('./icons/logout.svg?raw')),\n 'copy': iconImport(() => import('./icons/copy.svg?raw')),\n 'more-actions': iconImport(() => import('./icons/more-actions.svg?raw')),\n 'add': iconImport(() => import('./icons/add.svg?raw')),\n 'arrow': iconImport(() => import('./icons/arrow.svg?raw')),\n 'delete': iconImport(() => import('./icons/delete.svg?raw')),\n 'download': iconImport(() => import('./icons/download.svg?raw')),\n 'search': iconImport(() => import('./icons/search.svg?raw')),\n 'split-vertical': iconImport(() => import('./icons/split-vertical.svg?raw')),\n 'sparkles': iconImport(() => import('./icons/sparkles.svg?raw')),\n 'branch': iconImport(() => import('./icons/branch.svg?raw')),\n 'refresh': iconImport(() => import('./icons/refresh.svg?raw')),\n 'double-chevron': iconImport(() => import('./icons/double-chevron.svg?raw')),\n 'academic-cap': iconImport(() => import('./icons/academic-cap.svg?raw')),\n 'add-asset': iconImport(() => import('./icons/add-asset.svg?raw')),\n 'add-comment': iconImport(() => import('./icons/add-comment.svg?raw')),\n 'add-grid': iconImport(() => import('./icons/add-grid.svg?raw')),\n 'add-user': iconImport(() => import('./icons/add-user.svg?raw')),\n 'ancestors': iconImport(() => import('./icons/ancestors.svg?raw')),\n 'archive': iconImport(() => import('./icons/archive.svg?raw')),\n 'arrow-angle': iconImport(() => import('./icons/arrow-angle.svg?raw')),\n 'arrow-both': iconImport(() => import('./icons/arrow-both.svg?raw')),\n 'arrow-cycle': iconImport(() => import('./icons/arrow-cycle.svg?raw')),\n 'arrow-path-rounded-square': iconImport(() => import('./icons/arrow-path-rounded-square.svg?raw')),\n 'arrow-stop': iconImport(() => import('./icons/arrow-stop.svg?raw')),\n 'at-symbol': iconImport(() => import('./icons/at-symbol.svg?raw')),\n 'backspace': iconImport(() => import('./icons/backspace.svg?raw')),\n 'bar-pill-stack': iconImport(() => import('./icons/bar-pill-stack.svg?raw')),\n 'bars-3': iconImport(() => import('./icons/bars-3.svg?raw')),\n 'bars-3-bottom-left': iconImport(() => import('./icons/bars-3-bottom-left.svg?raw')),\n 'bars-3-bottom-right': iconImport(() => import('./icons/bars-3-bottom-right.svg?raw')),\n 'bars-3-center-left': iconImport(() => import('./icons/bars-3-center-left.svg?raw')),\n 'bars-4': iconImport(() => import('./icons/bars-4.svg?raw')),\n 'beaker': iconImport(() => import('./icons/beaker.svg?raw')),\n 'bell': iconImport(() => import('./icons/bell.svg?raw')),\n 'bell-slash': iconImport(() => import('./icons/bell-slash.svg?raw')),\n 'bell-stroke': iconImport(() => import('./icons/bell-stroke.svg?raw')),\n 'bold': iconImport(() => import('./icons/bold.svg?raw')),\n 'book': iconImport(() => import('./icons/book.svg?raw')),\n 'bookmark': iconImport(() => import('./icons/bookmark.svg?raw')),\n 'bookmark-stroke': iconImport(() => import('./icons/bookmark-stroke.svg?raw')),\n 'bounding-box': iconImport(() => import('./icons/bounding-box.svg?raw')),\n 'briefcase': iconImport(() => import('./icons/briefcase.svg?raw')),\n 'broadcast': iconImport(() => import('./icons/broadcast.svg?raw')),\n 'browser': iconImport(() => import('./icons/browser.svg?raw')),\n 'bug': iconImport(() => import('./icons/bug.svg?raw')),\n 'calendar': iconImport(() => import('./icons/calendar.svg?raw')),\n 'camera': iconImport(() => import('./icons/camera.svg?raw')),\n 'carets-closed-square': iconImport(() => import('./icons/carets-closed-square.svg?raw')),\n 'carousel': iconImport(() => import('./icons/carousel.svg?raw')),\n 'category-list': iconImport(() => import('./icons/category-list.svg?raw')),\n 'chart-bar': iconImport(() => import('./icons/chart-bar.svg?raw')),\n 'chat-bubble': iconImport(() => import('./icons/chat-bubble.svg?raw')),\n 'chat-bubbles': iconImport(() => import('./icons/chat-bubbles.svg?raw')),\n 'check': iconImport(() => import('./icons/check.svg?raw')),\n 'check-badge': iconImport(() => import('./icons/check-badge.svg?raw')),\n 'checklist': iconImport(() => import('./icons/checklist.svg?raw')),\n 'checkmark-circle': iconImport(() => import('./icons/checkmark-circle.svg?raw')),\n 'chip': iconImport(() => import('./icons/chip.svg?raw')),\n 'circle': iconImport(() => import('./icons/circle.svg?raw')),\n 'circle-angled-line': iconImport(() => import('./icons/circle-angled-line.svg?raw')),\n 'circle-dash': iconImport(() => import('./icons/circle-dash.svg?raw')),\n 'circle-dot': iconImport(() => import('./icons/circle-dot.svg?raw')),\n 'circle-dot-arrows': iconImport(() => import('./icons/circle-dot-arrows.svg?raw')),\n 'circle-half': iconImport(() => import('./icons/circle-half.svg?raw')),\n 'circle-rule': iconImport(() => import('./icons/circle-rule.svg?raw')),\n 'circle-tick': iconImport(() => import('./icons/circle-tick.svg?raw')),\n 'clipboard': iconImport(() => import('./icons/clipboard.svg?raw')),\n 'clock': iconImport(() => import('./icons/clock.svg?raw')),\n 'clock-circle-arrow': iconImport(() => import('./icons/clock-circle-arrow.svg?raw')),\n 'cloud': iconImport(() => import('./icons/cloud.svg?raw')),\n 'cloud-download': iconImport(() => import('./icons/cloud-download.svg?raw')),\n 'cloud-upload': iconImport(() => import('./icons/cloud-upload.svg?raw')),\n 'code': iconImport(() => import('./icons/code.svg?raw')),\n 'collapse-all': iconImport(() => import('./icons/collapse-all.svg?raw')),\n 'collapse-details': iconImport(() => import('./icons/collapse-details.svg?raw')),\n 'color-palette': iconImport(() => import('./icons/color-palette.svg?raw')),\n 'columns': iconImport(() => import('./icons/columns.svg?raw')),\n 'compare': iconImport(() => import('./icons/compare.svg?raw')),\n 'computer': iconImport(() => import('./icons/computer.svg?raw')),\n 'connect-node': iconImport(() => import('./icons/connect-node.svg?raw')),\n 'connected-blocks': iconImport(() => import('./icons/connected-blocks.svg?raw')),\n 'cross-hairs': iconImport(() => import('./icons/cross-hairs.svg?raw')),\n 'cursor-rays': iconImport(() => import('./icons/cursor-rays.svg?raw')),\n 'cursor-ripples': iconImport(() => import('./icons/cursor-ripples.svg?raw')),\n 'data-management': iconImport(() => import('./icons/data-management.svg?raw')),\n 'delete-node': iconImport(() => import('./icons/delete-node.svg?raw')),\n 'doc-checkmark': iconImport(() => import('./icons/doc-checkmark.svg?raw')),\n 'dock-bottom': iconImport(() => import('./icons/dock-bottom.svg?raw')),\n 'dock-none': iconImport(() => import('./icons/dock-none.svg?raw')),\n 'dock-side': iconImport(() => import('./icons/dock-side.svg?raw')),\n 'document': iconImport(() => import('./icons/document.svg?raw')),\n 'document-clipboard': iconImport(() => import('./icons/document-clipboard.svg?raw')),\n 'dot': iconImport(() => import('./icons/dot.svg?raw')),\n 'dot-stroke': iconImport(() => import('./icons/dot-stroke.svg?raw')),\n 'drag': iconImport(() => import('./icons/drag.svg?raw')),\n 'dropper': iconImport(() => import('./icons/dropper.svg?raw')),\n 'duplicate': iconImport(() => import('./icons/duplicate.svg?raw')),\n 'edit': iconImport(() => import('./icons/edit.svg?raw')),\n 'ellipses': iconImport(() => import('./icons/ellipses.svg?raw')),\n 'envelope': iconImport(() => import('./icons/envelope.svg?raw')),\n 'exclamation-circle': iconImport(() => import('./icons/exclamation-circle.svg?raw')),\n 'exclamation-mark': iconImport(() => import('./icons/exclamation-mark.svg?raw')),\n 'exclamation-triangle': iconImport(() => import('./icons/exclamation-triangle.svg?raw')),\n 'expand-all': iconImport(() => import('./icons/expand-all.svg?raw')),\n 'expand-details': iconImport(() => import('./icons/expand-details.svg?raw')),\n 'expression': iconImport(() => import('./icons/expression.svg?raw')),\n 'eye': iconImport(() => import('./icons/eye.svg?raw')),\n 'eye-hidden': iconImport(() => import('./icons/eye-hidden.svg?raw')),\n 'face-frown': iconImport(() => import('./icons/face-frown.svg?raw')),\n 'face-smile': iconImport(() => import('./icons/face-smile.svg?raw')),\n 'fast-forward': iconImport(() => import('./icons/fast-forward.svg?raw')),\n 'fast-forward-10': iconImport(() => import('./icons/fast-forward-10.svg?raw')),\n 'film': iconImport(() => import('./icons/film.svg?raw')),\n 'filter': iconImport(() => import('./icons/filter.svg?raw')),\n 'filter-stroke': iconImport(() => import('./icons/filter-stroke.svg?raw')),\n 'flag': iconImport(() => import('./icons/flag.svg?raw')),\n 'flag-stroke': iconImport(() => import('./icons/flag-stroke.svg?raw')),\n 'fold': iconImport(() => import('./icons/fold.svg?raw')),\n 'folder': iconImport(() => import('./icons/folder.svg?raw')),\n 'fork': iconImport(() => import('./icons/fork.svg?raw')),\n 'globe': iconImport(() => import('./icons/globe.svg?raw')),\n 'globe-alt-stroke': iconImport(() => import('./icons/globe-alt-stroke.svg?raw')),\n 'group': iconImport(() => import('./icons/group.svg?raw')),\n 'group-boxes': iconImport(() => import('./icons/group-boxes.svg?raw')),\n 'hand': iconImport(() => import('./icons/hand.svg?raw')),\n 'hash': iconImport(() => import('./icons/hash.svg?raw')),\n 'heading': iconImport(() => import('./icons/heading.svg?raw')),\n 'home': iconImport(() => import('./icons/home.svg?raw')),\n 'horizontal-rule': iconImport(() => import('./icons/horizontal-rule.svg?raw')),\n 'hourglass': iconImport(() => import('./icons/hourglass.svg?raw')),\n 'hourglass-end': iconImport(() => import('./icons/hourglass-end.svg?raw')),\n 'hourglass-mid': iconImport(() => import('./icons/hourglass-mid.svg?raw')),\n 'hourglass-start': iconImport(() => import('./icons/hourglass-start.svg?raw')),\n 'identification': iconImport(() => import('./icons/identification.svg?raw')),\n 'image': iconImport(() => import('./icons/image.svg?raw')),\n 'inbox': iconImport(() => import('./icons/inbox.svg?raw')),\n 'infinity': iconImport(() => import('./icons/infinity.svg?raw')),\n 'information-circle-stroke': iconImport(() => import('./icons/information-circle-stroke.svg?raw')),\n 'inspect': iconImport(() => import('./icons/inspect.svg?raw')),\n 'italic': iconImport(() => import('./icons/italic.svg?raw')),\n 'key': iconImport(() => import('./icons/key.svg?raw')),\n 'keyboard': iconImport(() => import('./icons/keyboard.svg?raw')),\n 'laptop-phone': iconImport(() => import('./icons/laptop-phone.svg?raw')),\n 'layers': iconImport(() => import('./icons/layers.svg?raw')),\n 'lifebuoy': iconImport(() => import('./icons/lifebuoy.svg?raw')),\n 'lightbulb': iconImport(() => import('./icons/lightbulb.svg?raw')),\n 'lightning-bolt': iconImport(() => import('./icons/lightning-bolt.svg?raw')),\n 'link': iconImport(() => import('./icons/link.svg?raw')),\n 'list-ordered': iconImport(() => import('./icons/list-ordered.svg?raw')),\n 'list-unordered': iconImport(() => import('./icons/list-unordered.svg?raw')),\n 'lock': iconImport(() => import('./icons/lock.svg?raw')),\n 'login': iconImport(() => import('./icons/login.svg?raw')),\n 'looping': iconImport(() => import('./icons/looping.svg?raw')),\n 'looping-off': iconImport(() => import('./icons/looping-off.svg?raw')),\n 'map': iconImport(() => import('./icons/map.svg?raw')),\n 'map-drives': iconImport(() => import('./icons/map-drives.svg?raw')),\n 'map-pin': iconImport(() => import('./icons/map-pin.svg?raw')),\n 'markdown': iconImport(() => import('./icons/markdown.svg?raw')),\n 'maximize': iconImport(() => import('./icons/maximize.svg?raw')),\n 'megaphone': iconImport(() => import('./icons/megaphone.svg?raw')),\n 'merge': iconImport(() => import('./icons/merge.svg?raw')),\n 'meter': iconImport(() => import('./icons/meter.svg?raw')),\n 'minimize': iconImport(() => import('./icons/minimize.svg?raw')),\n 'minus': iconImport(() => import('./icons/minus.svg?raw')),\n 'minus-circle': iconImport(() => import('./icons/minus-circle.svg?raw')),\n 'moon': iconImport(() => import('./icons/moon.svg?raw')),\n 'multiselect': iconImport(() => import('./icons/multiselect.svg?raw')),\n 'music-note': iconImport(() => import('./icons/music-note.svg?raw')),\n 'newspaper': iconImport(() => import('./icons/newspaper.svg?raw')),\n 'not-allowed': iconImport(() => import('./icons/not-allowed.svg?raw')),\n 'numbers': iconImport(() => import('./icons/numbers.svg?raw')),\n 'office-building': iconImport(() => import('./icons/office-building.svg?raw')),\n 'outline': iconImport(() => import('./icons/outline.svg?raw')),\n 'paper-airplane': iconImport(() => import('./icons/paper-airplane.svg?raw')),\n 'paper-clip': iconImport(() => import('./icons/paper-clip.svg?raw')),\n 'pause': iconImport(() => import('./icons/pause.svg?raw')),\n 'pencil-square': iconImport(() => import('./icons/pencil-square.svg?raw')),\n 'person-2': iconImport(() => import('./icons/person-2.svg?raw')),\n 'person-3': iconImport(() => import('./icons/person-3.svg?raw')),\n 'person-circle': iconImport(() => import('./icons/person-circle.svg?raw')),\n 'phone': iconImport(() => import('./icons/phone.svg?raw')),\n 'picture-in-picture': iconImport(() => import('./icons/picture-in-picture.svg?raw')),\n 'pie-chart': iconImport(() => import('./icons/pie-chart.svg?raw')),\n 'pin': iconImport(() => import('./icons/pin.svg?raw')),\n 'pizza-slice': iconImport(() => import('./icons/pizza-slice.svg?raw')),\n 'play': iconImport(() => import('./icons/play.svg?raw')),\n 'plug': iconImport(() => import('./icons/plug.svg?raw')),\n 'plus-circle': iconImport(() => import('./icons/plus-circle.svg?raw')),\n 'plus-minus': iconImport(() => import('./icons/plus-minus.svg?raw')),\n 'pointer': iconImport(() => import('./icons/pointer.svg?raw')),\n 'pointer-stroke': iconImport(() => import('./icons/pointer-stroke.svg?raw')),\n 'priority-high': iconImport(() => import('./icons/priority-high.svg?raw')),\n 'priority-low': iconImport(() => import('./icons/priority-low.svg?raw')),\n 'priority-medium': iconImport(() => import('./icons/priority-medium.svg?raw')),\n 'projector': iconImport(() => import('./icons/projector.svg?raw')),\n 'pull-close': iconImport(() => import('./icons/pull-close.svg?raw')),\n 'pull-draft': iconImport(() => import('./icons/pull-draft.svg?raw')),\n 'pull-open': iconImport(() => import('./icons/pull-open.svg?raw')),\n 'pulse': iconImport(() => import('./icons/pulse.svg?raw')),\n 'puzzle-piece': iconImport(() => import('./icons/puzzle-piece.svg?raw')),\n 'question-mark-circle': iconImport(() => import('./icons/question-mark-circle.svg?raw')),\n 'question-mark-circle-stroke': iconImport(() => import('./icons/question-mark-circle-stroke.svg?raw')),\n 'rectangle-group': iconImport(() => import('./icons/rectangle-group.svg?raw')),\n 'rectangle-stack-horizontal': iconImport(() => import('./icons/rectangle-stack-horizontal.svg?raw')),\n 'rectangle-stack-vertical': iconImport(() => import('./icons/rectangle-stack-vertical.svg?raw')),\n 'redo': iconImport(() => import('./icons/redo.svg?raw')),\n 'reply': iconImport(() => import('./icons/reply.svg?raw')),\n 'rewind': iconImport(() => import('./icons/rewind.svg?raw')),\n 'rewind-10': iconImport(() => import('./icons/rewind-10.svg?raw')),\n 'rocketship': iconImport(() => import('./icons/rocketship.svg?raw')),\n 'running': iconImport(() => import('./icons/running.svg?raw')),\n 'scale': iconImport(() => import('./icons/scale.svg?raw')),\n 'scissors': iconImport(() => import('./icons/scissors.svg?raw')),\n 'sensor': iconImport(() => import('./icons/sensor.svg?raw')),\n 'server': iconImport(() => import('./icons/server.svg?raw')),\n 'server-stack': iconImport(() => import('./icons/server-stack.svg?raw')),\n 'shapes': iconImport(() => import('./icons/shapes.svg?raw')),\n 'share': iconImport(() => import('./icons/share.svg?raw')),\n 'signal': iconImport(() => import('./icons/signal.svg?raw')),\n 'signal-slash': iconImport(() => import('./icons/signal-slash.svg?raw')),\n 'signpost': iconImport(() => import('./icons/signpost.svg?raw')),\n 'sort-ascending': iconImport(() => import('./icons/sort-ascending.svg?raw')),\n 'sort-descending': iconImport(() => import('./icons/sort-descending.svg?raw')),\n 'soundwave': iconImport(() => import('./icons/soundwave.svg?raw')),\n 'split-horizontal': iconImport(() => import('./icons/split-horizontal.svg?raw')),\n 'split-none': iconImport(() => import('./icons/split-none.svg?raw')),\n 'star': iconImport(() => import('./icons/star.svg?raw')),\n 'star-half': iconImport(() => import('./icons/star-half.svg?raw')),\n 'star-stroke': iconImport(() => import('./icons/star-stroke.svg?raw')),\n 'start': iconImport(() => import('./icons/start.svg?raw')),\n 'status-offline': iconImport(() => import('./icons/status-offline.svg?raw')),\n 'status-online': iconImport(() => import('./icons/status-online.svg?raw')),\n 'stop': iconImport(() => import('./icons/stop.svg?raw')),\n 'stop-sign': iconImport(() => import('./icons/stop-sign.svg?raw')),\n 'stopwatch': iconImport(() => import('./icons/stopwatch.svg?raw')),\n 'strikethrough': iconImport(() => import('./icons/strikethrough.svg?raw')),\n 'sun': iconImport(() => import('./icons/sun.svg?raw')),\n 'swatch': iconImport(() => import('./icons/swatch.svg?raw')),\n 'switch': iconImport(() => import('./icons/switch.svg?raw')),\n 'switch-apps': iconImport(() => import('./icons/switch-apps.svg?raw')),\n 'table': iconImport(() => import('./icons/table.svg?raw')),\n 'tag': iconImport(() => import('./icons/tag.svg?raw')),\n 'task': iconImport(() => import('./icons/task.svg?raw')),\n 'telescope': iconImport(() => import('./icons/telescope.svg?raw')),\n 'template': iconImport(() => import('./icons/template.svg?raw')),\n 'terminal': iconImport(() => import('./icons/terminal.svg?raw')),\n 'thumb': iconImport(() => import('./icons/thumb.svg?raw')),\n 'thumb-stroke': iconImport(() => import('./icons/thumb-stroke.svg?raw')),\n 'traffic-cone': iconImport(() => import('./icons/traffic-cone.svg?raw')),\n 'transparent-box': iconImport(() => import('./icons/transparent-box.svg?raw')),\n 'trend-down': iconImport(() => import('./icons/trend-down.svg?raw')),\n 'trend-up': iconImport(() => import('./icons/trend-up.svg?raw')),\n 'trophy': iconImport(() => import('./icons/trophy.svg?raw')),\n 'truck': iconImport(() => import('./icons/truck.svg?raw')),\n 'typography': iconImport(() => import('./icons/typography.svg?raw')),\n 'undo': iconImport(() => import('./icons/undo.svg?raw')),\n 'unlock': iconImport(() => import('./icons/unlock.svg?raw')),\n 'upload': iconImport(() => import('./icons/upload.svg?raw')),\n 'video-camera': iconImport(() => import('./icons/video-camera.svg?raw')),\n 'view-as-grid': iconImport(() => import('./icons/view-as-grid.svg?raw')),\n 'volume': iconImport(() => import('./icons/volume.svg?raw')),\n 'volume-muted': iconImport(() => import('./icons/volume-muted.svg?raw')),\n 'wifi': iconImport(() => import('./icons/wifi.svg?raw')),\n 'wrench': iconImport(() => import('./icons/wrench.svg?raw')),\n 'x-circle': iconImport(() => import('./icons/x-circle.svg?raw')),\n 'zoom-in': iconImport(() => import('./icons/zoom-in.svg?raw')),\n 'zoom-out': iconImport(() => import('./icons/zoom-out.svg?raw')),\n};\n\nexport type IconName = keyof typeof ICON_IMPORTS;\n\n/** @deprecated */\nexport type IconNames = IconName;\n\nexport const ICON_NAMES = Object.keys(ICON_IMPORTS) as IconName[];\n"],"mappings":";AAQA,SAAS,EAAW,GAAqD;AACvE,QAAO,EACL,MAAM,MAAM;AACV,UAAQ,MAAM,GAAU,EAAE;IAE7B;;AAGH,IAAa,IAAe;CAC1B,aAAe,QAAiB,OAAO,0BAA+B;CACtE,OAAS,QAAiB,OAAO,oBAAyB;CAC1D,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,MAAQ,QAAiB,OAAO,mBAAwB;CACxD,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,MAAQ,QAAiB,OAAO,mBAAwB;CACxD,SAAW,QAAiB,OAAO,sBAA2B;CAC9D,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,MAAQ,QAAiB,OAAO,mBAAwB;CACxD,gBAAgB,QAAiB,OAAO,2BAAgC;CACxE,KAAO,QAAiB,OAAO,kBAAuB;CACtD,OAAS,QAAiB,OAAO,oBAAyB;CAC1D,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,UAAY,QAAiB,OAAO,uBAA4B;CAChE,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,kBAAkB,QAAiB,OAAO,6BAAkC;CAC5E,UAAY,QAAiB,OAAO,uBAA4B;CAChE,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,SAAW,QAAiB,OAAO,sBAA2B;CAC9D,kBAAkB,QAAiB,OAAO,6BAAkC;CAC5E,gBAAgB,QAAiB,OAAO,2BAAgC;CACxE,aAAa,QAAiB,OAAO,wBAA6B;CAClE,eAAe,QAAiB,OAAO,0BAA+B;CACtE,YAAY,QAAiB,OAAO,uBAA4B;CAChE,YAAY,QAAiB,OAAO,uBAA4B;CAChE,WAAa,QAAiB,OAAO,w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AAO,uBAA4B;CAChE,WAAW,QAAiB,OAAO,sBAA2B;CAC9D,YAAY,QAAiB,OAAO,uBAA4B;CACjE,EAOY,IAAa,OAAO,KAAK,EAAa"}
1
+ {"version":3,"file":"icons.js","names":[],"sources":["../../src/icon/icons.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\n// This is an auto-generated file. DO NOT EDIT\nexport interface IconSVG {\n svg: () => Promise<string> | string;\n}\n\nfunction iconImport(importer: () => Promise<{default: string}>): IconSVG {\n return {\n async svg() {\n return (await importer()).default;\n }\n }\n}\n\nexport const ICON_IMPORTS = {\n 'placeholder': iconImport(() => import('./icons/placeholder.svg?raw')),\n 'caret': iconImport(() => import('./icons/caret.svg?raw')),\n 'person': iconImport(() => import('./icons/person.svg?raw')),\n 'menu': iconImport(() => import('./icons/menu.svg?raw')),\n 'cancel': iconImport(() => import('./icons/cancel.svg?raw')),\n 'gear': iconImport(() => import('./icons/gear.svg?raw')),\n 'chevron': iconImport(() => import('./icons/chevron.svg?raw')),\n 'logout': iconImport(() => import('./icons/logout.svg?raw')),\n 'copy': iconImport(() => import('./icons/copy.svg?raw')),\n 'more-actions': iconImport(() => import('./icons/more-actions.svg?raw')),\n 'add': iconImport(() => import('./icons/add.svg?raw')),\n 'arrow': iconImport(() => import('./icons/arrow.svg?raw')),\n 'delete': iconImport(() => import('./icons/delete.svg?raw')),\n 'download': iconImport(() => import('./icons/download.svg?raw')),\n 'search': iconImport(() => import('./icons/search.svg?raw')),\n 'split-vertical': iconImport(() => import('./icons/split-vertical.svg?raw')),\n 'sparkles': iconImport(() => import('./icons/sparkles.svg?raw')),\n 'branch': iconImport(() => import('./icons/branch.svg?raw')),\n 'refresh': iconImport(() => import('./icons/refresh.svg?raw')),\n 'double-chevron': iconImport(() => import('./icons/double-chevron.svg?raw')),\n 'academic-cap': iconImport(() => import('./icons/academic-cap.svg?raw')),\n 'add-asset': iconImport(() => import('./icons/add-asset.svg?raw')),\n 'add-comment': iconImport(() => import('./icons/add-comment.svg?raw')),\n 'add-grid': iconImport(() => import('./icons/add-grid.svg?raw')),\n 'add-user': iconImport(() => import('./icons/add-user.svg?raw')),\n 'ancestors': iconImport(() => import('./icons/ancestors.svg?raw')),\n 'archive': iconImport(() => import('./icons/archive.svg?raw')),\n 'arrow-angle': iconImport(() => import('./icons/arrow-angle.svg?raw')),\n 'arrow-both': iconImport(() => import('./icons/arrow-both.svg?raw')),\n 'arrow-cycle': iconImport(() => import('./icons/arrow-cycle.svg?raw')),\n 'arrow-path-rounded-square': iconImport(() => import('./icons/arrow-path-rounded-square.svg?raw')),\n 'arrow-stop': iconImport(() => import('./icons/arrow-stop.svg?raw')),\n 'at-symbol': iconImport(() => import('./icons/at-symbol.svg?raw')),\n 'backspace': iconImport(() => import('./icons/backspace.svg?raw')),\n 'bar-pill-stack': iconImport(() => import('./icons/bar-pill-stack.svg?raw')),\n 'bars-3': iconImport(() => import('./icons/bars-3.svg?raw')),\n 'bars-3-bottom-left': iconImport(() => import('./icons/bars-3-bottom-left.svg?raw')),\n 'bars-3-bottom-right': iconImport(() => import('./icons/bars-3-bottom-right.svg?raw')),\n 'bars-3-center-left': iconImport(() => import('./icons/bars-3-center-left.svg?raw')),\n 'bars-4': iconImport(() => import('./icons/bars-4.svg?raw')),\n 'beaker': iconImport(() => import('./icons/beaker.svg?raw')),\n 'bell': iconImport(() => import('./icons/bell.svg?raw')),\n 'bell-slash': iconImport(() => import('./icons/bell-slash.svg?raw')),\n 'bell-stroke': iconImport(() => import('./icons/bell-stroke.svg?raw')),\n 'bold': iconImport(() => import('./icons/bold.svg?raw')),\n 'book': iconImport(() => import('./icons/book.svg?raw')),\n 'bookmark': iconImport(() => import('./icons/bookmark.svg?raw')),\n 'bookmark-stroke': iconImport(() => import('./icons/bookmark-stroke.svg?raw')),\n 'bounding-box': iconImport(() => import('./icons/bounding-box.svg?raw')),\n 'briefcase': iconImport(() => import('./icons/briefcase.svg?raw')),\n 'broadcast': iconImport(() => import('./icons/broadcast.svg?raw')),\n 'browser': iconImport(() => import('./icons/browser.svg?raw')),\n 'bug': iconImport(() => import('./icons/bug.svg?raw')),\n 'calendar': iconImport(() => import('./icons/calendar.svg?raw')),\n 'camera': iconImport(() => import('./icons/camera.svg?raw')),\n 'carets-closed-square': iconImport(() => import('./icons/carets-closed-square.svg?raw')),\n 'carousel': iconImport(() => import('./icons/carousel.svg?raw')),\n 'category-list': iconImport(() => import('./icons/category-list.svg?raw')),\n 'chart-bar': iconImport(() => import('./icons/chart-bar.svg?raw')),\n 'chat-bubble': iconImport(() => import('./icons/chat-bubble.svg?raw')),\n 'chat-bubbles': iconImport(() => import('./icons/chat-bubbles.svg?raw')),\n 'check': iconImport(() => import('./icons/check.svg?raw')),\n 'check-badge': iconImport(() => import('./icons/check-badge.svg?raw')),\n 'checklist': iconImport(() => import('./icons/checklist.svg?raw')),\n 'checkmark-circle': iconImport(() => import('./icons/checkmark-circle.svg?raw')),\n 'chip': iconImport(() => import('./icons/chip.svg?raw')),\n 'circle': iconImport(() => import('./icons/circle.svg?raw')),\n 'circle-angled-line': iconImport(() => import('./icons/circle-angled-line.svg?raw')),\n 'circle-dash': iconImport(() => import('./icons/circle-dash.svg?raw')),\n 'circle-dot': iconImport(() => import('./icons/circle-dot.svg?raw')),\n 'circle-dot-arrows': iconImport(() => import('./icons/circle-dot-arrows.svg?raw')),\n 'circle-half': iconImport(() => import('./icons/circle-half.svg?raw')),\n 'circle-rule': iconImport(() => import('./icons/circle-rule.svg?raw')),\n 'circle-tick': iconImport(() => import('./icons/circle-tick.svg?raw')),\n 'clipboard': iconImport(() => import('./icons/clipboard.svg?raw')),\n 'clock': iconImport(() => import('./icons/clock.svg?raw')),\n 'clock-circle-arrow': iconImport(() => import('./icons/clock-circle-arrow.svg?raw')),\n 'cloud': iconImport(() => import('./icons/cloud.svg?raw')),\n 'cloud-download': iconImport(() => import('./icons/cloud-download.svg?raw')),\n 'cloud-upload': iconImport(() => import('./icons/cloud-upload.svg?raw')),\n 'code': iconImport(() => import('./icons/code.svg?raw')),\n 'collapse-all': iconImport(() => import('./icons/collapse-all.svg?raw')),\n 'collapse-details': iconImport(() => import('./icons/collapse-details.svg?raw')),\n 'color-palette': iconImport(() => import('./icons/color-palette.svg?raw')),\n 'columns': iconImport(() => import('./icons/columns.svg?raw')),\n 'compare': iconImport(() => import('./icons/compare.svg?raw')),\n 'computer': iconImport(() => import('./icons/computer.svg?raw')),\n 'connect-node': iconImport(() => import('./icons/connect-node.svg?raw')),\n 'connected-blocks': iconImport(() => import('./icons/connected-blocks.svg?raw')),\n 'cross-hairs': iconImport(() => import('./icons/cross-hairs.svg?raw')),\n 'cursor-rays': iconImport(() => import('./icons/cursor-rays.svg?raw')),\n 'cursor-ripples': iconImport(() => import('./icons/cursor-ripples.svg?raw')),\n 'data-management': iconImport(() => import('./icons/data-management.svg?raw')),\n 'delete-node': iconImport(() => import('./icons/delete-node.svg?raw')),\n 'doc-checkmark': iconImport(() => import('./icons/doc-checkmark.svg?raw')),\n 'dock-bottom': iconImport(() => import('./icons/dock-bottom.svg?raw')),\n 'dock-none': iconImport(() => import('./icons/dock-none.svg?raw')),\n 'dock-side': iconImport(() => import('./icons/dock-side.svg?raw')),\n 'document': iconImport(() => import('./icons/document.svg?raw')),\n 'document-clipboard': iconImport(() => import('./icons/document-clipboard.svg?raw')),\n 'dot': iconImport(() => import('./icons/dot.svg?raw')),\n 'dot-stroke': iconImport(() => import('./icons/dot-stroke.svg?raw')),\n 'drag': iconImport(() => import('./icons/drag.svg?raw')),\n 'dropper': iconImport(() => import('./icons/dropper.svg?raw')),\n 'duplicate': iconImport(() => import('./icons/duplicate.svg?raw')),\n 'edit': iconImport(() => import('./icons/edit.svg?raw')),\n 'ellipses': iconImport(() => import('./icons/ellipses.svg?raw')),\n 'envelope': iconImport(() => import('./icons/envelope.svg?raw')),\n 'exclamation-circle': iconImport(() => import('./icons/exclamation-circle.svg?raw')),\n 'exclamation-mark': iconImport(() => import('./icons/exclamation-mark.svg?raw')),\n 'exclamation-triangle': iconImport(() => import('./icons/exclamation-triangle.svg?raw')),\n 'expand-all': iconImport(() => import('./icons/expand-all.svg?raw')),\n 'expand-details': iconImport(() => import('./icons/expand-details.svg?raw')),\n 'expression': iconImport(() => import('./icons/expression.svg?raw')),\n 'eye': iconImport(() => import('./icons/eye.svg?raw')),\n 'eye-hidden': iconImport(() => import('./icons/eye-hidden.svg?raw')),\n 'face-frown': iconImport(() => import('./icons/face-frown.svg?raw')),\n 'face-smile': iconImport(() => import('./icons/face-smile.svg?raw')),\n 'fast-forward': iconImport(() => import('./icons/fast-forward.svg?raw')),\n 'fast-forward-10': iconImport(() => import('./icons/fast-forward-10.svg?raw')),\n 'film': iconImport(() => import('./icons/film.svg?raw')),\n 'filter': iconImport(() => import('./icons/filter.svg?raw')),\n 'filter-stroke': iconImport(() => import('./icons/filter-stroke.svg?raw')),\n 'flag': iconImport(() => import('./icons/flag.svg?raw')),\n 'flag-stroke': iconImport(() => import('./icons/flag-stroke.svg?raw')),\n 'fold': iconImport(() => import('./icons/fold.svg?raw')),\n 'folder': iconImport(() => import('./icons/folder.svg?raw')),\n 'fork': iconImport(() => import('./icons/fork.svg?raw')),\n 'globe': iconImport(() => import('./icons/globe.svg?raw')),\n 'globe-alt-stroke': iconImport(() => import('./icons/globe-alt-stroke.svg?raw')),\n 'group': iconImport(() => import('./icons/group.svg?raw')),\n 'group-boxes': iconImport(() => import('./icons/group-boxes.svg?raw')),\n 'hand': iconImport(() => import('./icons/hand.svg?raw')),\n 'hash': iconImport(() => import('./icons/hash.svg?raw')),\n 'heading': iconImport(() => import('./icons/heading.svg?raw')),\n 'home': iconImport(() => import('./icons/home.svg?raw')),\n 'horizontal-rule': iconImport(() => import('./icons/horizontal-rule.svg?raw')),\n 'hourglass': iconImport(() => import('./icons/hourglass.svg?raw')),\n 'hourglass-end': iconImport(() => import('./icons/hourglass-end.svg?raw')),\n 'hourglass-mid': iconImport(() => import('./icons/hourglass-mid.svg?raw')),\n 'hourglass-start': iconImport(() => import('./icons/hourglass-start.svg?raw')),\n 'identification': iconImport(() => import('./icons/identification.svg?raw')),\n 'image': iconImport(() => import('./icons/image.svg?raw')),\n 'inbox': iconImport(() => import('./icons/inbox.svg?raw')),\n 'infinity': iconImport(() => import('./icons/infinity.svg?raw')),\n 'information-circle-stroke': iconImport(() => import('./icons/information-circle-stroke.svg?raw')),\n 'inspect': iconImport(() => import('./icons/inspect.svg?raw')),\n 'italic': iconImport(() => import('./icons/italic.svg?raw')),\n 'key': iconImport(() => import('./icons/key.svg?raw')),\n 'keyboard': iconImport(() => import('./icons/keyboard.svg?raw')),\n 'laptop-phone': iconImport(() => import('./icons/laptop-phone.svg?raw')),\n 'layers': iconImport(() => import('./icons/layers.svg?raw')),\n 'lifebuoy': iconImport(() => import('./icons/lifebuoy.svg?raw')),\n 'lightbulb': iconImport(() => import('./icons/lightbulb.svg?raw')),\n 'lightning-bolt': iconImport(() => import('./icons/lightning-bolt.svg?raw')),\n 'link': iconImport(() => import('./icons/link.svg?raw')),\n 'list-ordered': iconImport(() => import('./icons/list-ordered.svg?raw')),\n 'list-unordered': iconImport(() => import('./icons/list-unordered.svg?raw')),\n 'lock': iconImport(() => import('./icons/lock.svg?raw')),\n 'login': iconImport(() => import('./icons/login.svg?raw')),\n 'looping': iconImport(() => import('./icons/looping.svg?raw')),\n 'looping-off': iconImport(() => import('./icons/looping-off.svg?raw')),\n 'map': iconImport(() => import('./icons/map.svg?raw')),\n 'map-drives': iconImport(() => import('./icons/map-drives.svg?raw')),\n 'map-pin': iconImport(() => import('./icons/map-pin.svg?raw')),\n 'markdown': iconImport(() => import('./icons/markdown.svg?raw')),\n 'maximize': iconImport(() => import('./icons/maximize.svg?raw')),\n 'megaphone': iconImport(() => import('./icons/megaphone.svg?raw')),\n 'merge': iconImport(() => import('./icons/merge.svg?raw')),\n 'meter': iconImport(() => import('./icons/meter.svg?raw')),\n 'minimize': iconImport(() => import('./icons/minimize.svg?raw')),\n 'minus': iconImport(() => import('./icons/minus.svg?raw')),\n 'minus-circle': iconImport(() => import('./icons/minus-circle.svg?raw')),\n 'moon': iconImport(() => import('./icons/moon.svg?raw')),\n 'multiselect': iconImport(() => import('./icons/multiselect.svg?raw')),\n 'music-note': iconImport(() => import('./icons/music-note.svg?raw')),\n 'newspaper': iconImport(() => import('./icons/newspaper.svg?raw')),\n 'not-allowed': iconImport(() => import('./icons/not-allowed.svg?raw')),\n 'numbers': iconImport(() => import('./icons/numbers.svg?raw')),\n 'office-building': iconImport(() => import('./icons/office-building.svg?raw')),\n 'outline': iconImport(() => import('./icons/outline.svg?raw')),\n 'paper-airplane': iconImport(() => import('./icons/paper-airplane.svg?raw')),\n 'paper-clip': iconImport(() => import('./icons/paper-clip.svg?raw')),\n 'pause': iconImport(() => import('./icons/pause.svg?raw')),\n 'pencil-square': iconImport(() => import('./icons/pencil-square.svg?raw')),\n 'person-2': iconImport(() => import('./icons/person-2.svg?raw')),\n 'person-3': iconImport(() => import('./icons/person-3.svg?raw')),\n 'person-circle': iconImport(() => import('./icons/person-circle.svg?raw')),\n 'phone': iconImport(() => import('./icons/phone.svg?raw')),\n 'picture-in-picture': iconImport(() => import('./icons/picture-in-picture.svg?raw')),\n 'pie-chart': iconImport(() => import('./icons/pie-chart.svg?raw')),\n 'pin': iconImport(() => import('./icons/pin.svg?raw')),\n 'pizza-slice': iconImport(() => import('./icons/pizza-slice.svg?raw')),\n 'play': iconImport(() => import('./icons/play.svg?raw')),\n 'plug': iconImport(() => import('./icons/plug.svg?raw')),\n 'plus-circle': iconImport(() => import('./icons/plus-circle.svg?raw')),\n 'plus-minus': iconImport(() => import('./icons/plus-minus.svg?raw')),\n 'pointer': iconImport(() => import('./icons/pointer.svg?raw')),\n 'pointer-stroke': iconImport(() => import('./icons/pointer-stroke.svg?raw')),\n 'priority-high': iconImport(() => import('./icons/priority-high.svg?raw')),\n 'priority-low': iconImport(() => import('./icons/priority-low.svg?raw')),\n 'priority-medium': iconImport(() => import('./icons/priority-medium.svg?raw')),\n 'projector': iconImport(() => import('./icons/projector.svg?raw')),\n 'pull-close': iconImport(() => import('./icons/pull-close.svg?raw')),\n 'pull-draft': iconImport(() => import('./icons/pull-draft.svg?raw')),\n 'pull-open': iconImport(() => import('./icons/pull-open.svg?raw')),\n 'pulse': iconImport(() => import('./icons/pulse.svg?raw')),\n 'puzzle-piece': iconImport(() => import('./icons/puzzle-piece.svg?raw')),\n 'question-mark-circle': iconImport(() => import('./icons/question-mark-circle.svg?raw')),\n 'question-mark-circle-stroke': iconImport(() => import('./icons/question-mark-circle-stroke.svg?raw')),\n 'rectangle-group': iconImport(() => import('./icons/rectangle-group.svg?raw')),\n 'rectangle-stack-horizontal': iconImport(() => import('./icons/rectangle-stack-horizontal.svg?raw')),\n 'rectangle-stack-vertical': iconImport(() => import('./icons/rectangle-stack-vertical.svg?raw')),\n 'redo': iconImport(() => import('./icons/redo.svg?raw')),\n 'reply': iconImport(() => import('./icons/reply.svg?raw')),\n 'rewind': iconImport(() => import('./icons/rewind.svg?raw')),\n 'rewind-10': iconImport(() => import('./icons/rewind-10.svg?raw')),\n 'rocketship': iconImport(() => import('./icons/rocketship.svg?raw')),\n 'running': iconImport(() => import('./icons/running.svg?raw')),\n 'scale': iconImport(() => import('./icons/scale.svg?raw')),\n 'scissors': iconImport(() => import('./icons/scissors.svg?raw')),\n 'sensor': iconImport(() => import('./icons/sensor.svg?raw')),\n 'server': iconImport(() => import('./icons/server.svg?raw')),\n 'server-stack': iconImport(() => import('./icons/server-stack.svg?raw')),\n 'shapes': iconImport(() => import('./icons/shapes.svg?raw')),\n 'share': iconImport(() => import('./icons/share.svg?raw')),\n 'signal': iconImport(() => import('./icons/signal.svg?raw')),\n 'signal-slash': iconImport(() => import('./icons/signal-slash.svg?raw')),\n 'signpost': iconImport(() => import('./icons/signpost.svg?raw')),\n 'sort-ascending': iconImport(() => import('./icons/sort-ascending.svg?raw')),\n 'sort-descending': iconImport(() => import('./icons/sort-descending.svg?raw')),\n 'soundwave': iconImport(() => import('./icons/soundwave.svg?raw')),\n 'split-horizontal': iconImport(() => import('./icons/split-horizontal.svg?raw')),\n 'split-none': iconImport(() => import('./icons/split-none.svg?raw')),\n 'star': iconImport(() => import('./icons/star.svg?raw')),\n 'star-half': iconImport(() => import('./icons/star-half.svg?raw')),\n 'star-stroke': iconImport(() => import('./icons/star-stroke.svg?raw')),\n 'start': iconImport(() => import('./icons/start.svg?raw')),\n 'status-offline': iconImport(() => import('./icons/status-offline.svg?raw')),\n 'status-online': iconImport(() => import('./icons/status-online.svg?raw')),\n 'stop': iconImport(() => import('./icons/stop.svg?raw')),\n 'stop-sign': iconImport(() => import('./icons/stop-sign.svg?raw')),\n 'stopwatch': iconImport(() => import('./icons/stopwatch.svg?raw')),\n 'strikethrough': iconImport(() => import('./icons/strikethrough.svg?raw')),\n 'sun': iconImport(() => import('./icons/sun.svg?raw')),\n 'swatch': iconImport(() => import('./icons/swatch.svg?raw')),\n 'switch': iconImport(() => import('./icons/switch.svg?raw')),\n 'switch-apps': iconImport(() => import('./icons/switch-apps.svg?raw')),\n 'table': iconImport(() => import('./icons/table.svg?raw')),\n 'tag': iconImport(() => import('./icons/tag.svg?raw')),\n 'task': iconImport(() => import('./icons/task.svg?raw')),\n 'telescope': iconImport(() => import('./icons/telescope.svg?raw')),\n 'template': iconImport(() => import('./icons/template.svg?raw')),\n 'terminal': iconImport(() => import('./icons/terminal.svg?raw')),\n 'thumb': iconImport(() => import('./icons/thumb.svg?raw')),\n 'thumb-stroke': iconImport(() => import('./icons/thumb-stroke.svg?raw')),\n 'traffic-cone': iconImport(() => import('./icons/traffic-cone.svg?raw')),\n 'transparent-box': iconImport(() => import('./icons/transparent-box.svg?raw')),\n 'trend-down': iconImport(() => import('./icons/trend-down.svg?raw')),\n 'trend-up': iconImport(() => import('./icons/trend-up.svg?raw')),\n 'trophy': iconImport(() => import('./icons/trophy.svg?raw')),\n 'truck': iconImport(() => import('./icons/truck.svg?raw')),\n 'typography': iconImport(() => import('./icons/typography.svg?raw')),\n 'undo': iconImport(() => import('./icons/undo.svg?raw')),\n 'unlock': iconImport(() => import('./icons/unlock.svg?raw')),\n 'upload': iconImport(() => import('./icons/upload.svg?raw')),\n 'video-camera': iconImport(() => import('./icons/video-camera.svg?raw')),\n 'view-as-grid': iconImport(() => import('./icons/view-as-grid.svg?raw')),\n 'volume': iconImport(() => import('./icons/volume.svg?raw')),\n 'volume-muted': iconImport(() => import('./icons/volume-muted.svg?raw')),\n 'wifi': iconImport(() => import('./icons/wifi.svg?raw')),\n 'wrench': iconImport(() => import('./icons/wrench.svg?raw')),\n 'x-circle': iconImport(() => import('./icons/x-circle.svg?raw')),\n 'zoom-in': iconImport(() => import('./icons/zoom-in.svg?raw')),\n 'zoom-out': iconImport(() => import('./icons/zoom-out.svg?raw')),\n};\n\nexport type IconName = keyof typeof ICON_IMPORTS;\n\n/** @deprecated */\nexport type IconNames = IconName;\n\nexport const ICON_NAMES = Object.keys(ICON_IMPORTS) as IconName[];\n"],"mappings":";AAQA,SAAS,EAAW,GAAqD;CACvE,OAAO,EACL,MAAM,MAAM;EACV,QAAQ,MAAM,GAAU,EAAE;IAE7B;;AAGH,IAAa,IAAe;CAC1B,aAAe,QAAiB,OAAO,0BAA+B;CACtE,OAAS,QAAiB,OAAO,oBAAyB;CAC1D,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,MAAQ,QAAiB,OAAO,mBAAwB;CACxD,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,MAAQ,QAAiB,OAAO,mBAAwB;CACxD,SAAW,QAAiB,OAAO,sBAA2B;CAC9D,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,MAAQ,QAAiB,OAAO,mBAAwB;CACxD,gBAAgB,QAAiB,OAAO,2BAAgC;CACxE,KAAO,QAAiB,OAAO,kBAAuB;CACtD,OAAS,QAAiB,OAAO,oBAAyB;CAC1D,QAAU,QAAiB,OA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,OAAO,uBAA4B;CAChE,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,OAAS,QAAiB,OAAO,oBAAyB;CAC1D,YAAc,QAAiB,OAAO,yBAA8B;CACpE,MAAQ,QAAiB,OAAO,mBAAwB;CACxD,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,gBAAgB,QAAiB,OAAO,2BAAgC;CACxE,gBAAgB,QAAiB,OAAO,2BAAgC;CACxE,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,gBAAgB,QAAiB,OAAO,2BAAgC;CACxE,MAAQ,QAAiB,OAAO,mBAAwB;CACxD,QAAU,QAAiB,OAAO,qBAA0B;CAC5D,YAAY,QAAiB,OAAO,uBAA4B;CAChE,WAAW,QAAiB,OAAO,sBAA2B;CAC9D,YAAY,QAAiB,OAAO,uBAA4B;CACjE,EAOY,IAAa,OAAO,KAAK,EAAa"}
@@ -1,5 +1,5 @@
1
1
  import { removeEmptySlotWhitespace as e } from "../internal/utils/dom.js";
2
- import { __decorate as t } from "../_virtual/_@oxc-project_runtime@0.123.0/helpers/decorate.js";
2
+ import { __decorate as t } from "../_virtual/_@oxc-project_runtime@0.128.0/helpers/decorate.js";
3
3
  import { scopedRegistry as n } from "../internal/decorators/scoped-registry.js";
4
4
  import { useStyles as r } from "../internal/styles/index.js";
5
5
  import { Icon as i } from "../icon/icon2.js";
@@ -15,7 +15,7 @@ var l = class extends a {
15
15
  static {
16
16
  this.metadata = {
17
17
  tag: "nve-icon-button",
18
- version: "0.0.12"
18
+ version: "0.1.1"
19
19
  };
20
20
  }
21
21
  static {
@@ -1 +1 @@
1
- {"version":3,"file":"icon-button2.js","names":[],"sources":["../../src/icon-button/icon-button.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport type { Size } from '@nvidia-elements/core/internal';\nimport { removeEmptySlotWhitespace, scopedRegistry, useStyles } from '@nvidia-elements/core/internal';\nimport { Button } from '@nvidia-elements/core/button';\nimport type { IconName } from '@nvidia-elements/core/icon';\nimport { Icon } from '@nvidia-elements/core/icon';\nimport styles from './icon-button.css?inline';\n\n/**\n * @element nve-icon-button\n * @description An icon button is a button that displays only an icon without a visual label.\n * @since 0.2.1\n * @entrypoint \\@nvidia-elements/core/icon-button\n * @slot - default slot for custom icons\n * @cssprop --border-radius\n * @cssprop --padding\n * @cssprop --line-height\n * @cssprop --gap\n * @cssprop --height\n * @cssprop --width\n * @cssprop --font-size\n * @cssprop --color\n * @cssprop --background\n * @csspart icon - The icon element\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/button/\n */\n@scopedRegistry()\nexport class IconButton extends Button {\n /**\n * Sets the icon name, which determines which icon to display.\n */\n @property({ type: String, attribute: 'icon-name' }) iconName: IconName;\n\n /**\n * Sets the direction of the icon.\n * Only supported by expand-panel/collapse-panel (horizontal axis) and arrow/caret/chevron icons (4-directions)\n */\n @property({ type: String, reflect: true }) direction: 'up' | 'down' | 'left' | 'right';\n\n /**\n * Sets size of the icon button.\n */\n @property({ type: String, reflect: true }) size?: Size;\n\n static styles = useStyles([...Button.styles, styles]);\n\n static readonly metadata = {\n tag: 'nve-icon-button',\n version: '0.0.0'\n };\n\n static elementDefinitions = {\n [Icon.metadata.tag]: Icon\n };\n\n render() {\n return html`\n <div internal-host interaction-state focus-within aria-hidden=\"true\">\n <slot @slotchange=${(e: Event) => removeEmptySlotWhitespace(e.target as HTMLSlotElement)}>\n <nve-icon .name=${this.iconName} .direction=${this.direction} .size=${this.size} aria-hidden=\"true\" part=\"icon\"></nve-icon>\n </slot>\n </div>\n <slot name=\"anchor\"></slot>\n `;\n }\n}\n"],"mappings":";;;;;;;;;;AA+BO,IAAA,IAAA,cAAyB,EAAO;;gBAiBrB,EAAU,CAAC,GAAG,EAAO,QAAQ,EAAO,CAAC;;;kBAE1B;GACzB,KAAK;GACL,SAAS;GACV;;;4BAE2B,GACzB,EAAK,SAAS,MAAM,GACtB;;CAED,SAAS;AACP,SAAO,CAAI,4FAEc,MAAa,EAA0B,EAAE,OAA0B,CAAC,qBACrE,KAAK,SAAS,gBAAc,KAAK,UAAU,WAAS,KAAK,KAAK;;;GA5BvF,EAAS;CAAE,MAAM;CAAQ,WAAW;CAAa,CAAC,CAAA,EAAA,EAAA,WAAA,YAAA,KAAA,EAAA,KAMlD,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,aAAA,KAAA,EAAA,KAKzC,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,QAAA,KAAA,EAAA,SAhB3C,GAAgB,CAAA,EAAA,EAAA"}
1
+ {"version":3,"file":"icon-button2.js","names":[],"sources":["../../src/icon-button/icon-button.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport type { Size } from '@nvidia-elements/core/internal';\nimport { removeEmptySlotWhitespace, scopedRegistry, useStyles } from '@nvidia-elements/core/internal';\nimport { Button } from '@nvidia-elements/core/button';\nimport type { IconName } from '@nvidia-elements/core/icon';\nimport { Icon } from '@nvidia-elements/core/icon';\nimport styles from './icon-button.css?inline';\n\n/**\n * @element nve-icon-button\n * @description An icon button is a button that displays only an icon without a visual label.\n * @since 0.2.1\n * @entrypoint \\@nvidia-elements/core/icon-button\n * @slot - default slot for custom icons\n * @cssprop --border-radius\n * @cssprop --padding\n * @cssprop --line-height\n * @cssprop --gap\n * @cssprop --height\n * @cssprop --width\n * @cssprop --font-size\n * @cssprop --color\n * @cssprop --background\n * @csspart icon - The icon element\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/button/\n */\n@scopedRegistry()\nexport class IconButton extends Button {\n /**\n * Sets the icon name, which determines which icon to display.\n */\n @property({ type: String, attribute: 'icon-name' }) iconName: IconName;\n\n /**\n * Sets the direction of the icon.\n * Only supported by expand-panel/collapse-panel (horizontal axis) and arrow/caret/chevron icons (4-directions)\n */\n @property({ type: String, reflect: true }) direction: 'up' | 'down' | 'left' | 'right';\n\n /**\n * Sets size of the icon button.\n */\n @property({ type: String, reflect: true }) size?: Size;\n\n static styles = useStyles([...Button.styles, styles]);\n\n static readonly metadata = {\n tag: 'nve-icon-button',\n version: '0.0.0'\n };\n\n static elementDefinitions = {\n [Icon.metadata.tag]: Icon\n };\n\n render() {\n return html`\n <div internal-host interaction-state focus-within aria-hidden=\"true\">\n <slot @slotchange=${(e: Event) => removeEmptySlotWhitespace(e.target as HTMLSlotElement)}>\n <nve-icon .name=${this.iconName} .direction=${this.direction} .size=${this.size} aria-hidden=\"true\" part=\"icon\"></nve-icon>\n </slot>\n </div>\n <slot name=\"anchor\"></slot>\n `;\n }\n}\n"],"mappings":";;;;;;;;;;AA+BO,IAAA,IAAA,cAAyB,EAAO;;gBAiBrB,EAAU,CAAC,GAAG,EAAO,QAAQ,EAAO,CAAC;;;kBAE1B;GACzB,KAAK;GACL,SAAS;GACV;;;4BAE2B,GACzB,EAAK,SAAS,MAAM,GACtB;;CAED,SAAS;EACP,OAAO,CAAI,4FAEc,MAAa,EAA0B,EAAE,OAA0B,CAAC,qBACrE,KAAK,SAAS,gBAAc,KAAK,UAAU,WAAS,KAAK,KAAK;;;GA5BvF,EAAS;CAAE,MAAM;CAAQ,WAAW;CAAa,CAAC,CAAA,EAAA,EAAA,WAAA,YAAA,KAAA,EAAA,KAMlD,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,aAAA,KAAA,EAAA,KAKzC,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,QAAA,KAAA,EAAA,SAhB3C,GAAgB,CAAA,EAAA,EAAA"}
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@ import { getThemeTokens as e } from "./internal/utils/dom.js";
2
2
  import { I18nService as t } from "./internal/services/i18n.service.js";
3
3
  import { statusIcons as n } from "./internal/types/index.js";
4
4
  //#region src/index.ts
5
- var r = "0.0.12", i = "@nvidia-elements";
5
+ var r = "0.1.1", i = "@nvidia-elements";
6
6
  //#endregion
7
7
  export { t as I18nService, i as SCOPE, r as VERSION, e as getThemeTokens, n as statusIcons };
8
8
 
@@ -11,7 +11,7 @@ var a = class extends n {
11
11
  static {
12
12
  this.metadata = {
13
13
  tag: "nve-input-group",
14
- version: "0.0.12"
14
+ version: "0.1.1"
15
15
  };
16
16
  }
17
17
  async connectedCallback() {
@@ -1 +1 @@
1
- {"version":3,"file":"input-group2.js","names":[],"sources":["../../src/input/input-group.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { CSSResult } from 'lit';\nimport { useStyles, appendRootNodeStyle } from '@nvidia-elements/core/internal';\nimport { ControlGroup } from '@nvidia-elements/core/forms';\nimport globalStyles from './input-group.global.css?inline';\nimport styles from './input-group.css?inline';\n\n/**\n * @element nve-input-group\n * @description Visually combines many related input controls into a unified composite field with shared styling.\n * @since 0.3.0\n * @entrypoint \\@nvidia-elements/core/input\n * @cssprop --background\n * @cssprop --color\n * @cssprop --border-radius\n * @cssprop --gap\n * @cssprop --border\n * @cssprop --padding\n * @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input\n */\nexport class InputGroup extends ControlGroup {\n static styles: CSSResult[] = useStyles([...ControlGroup.styles, styles]);\n\n static readonly metadata = {\n tag: 'nve-input-group',\n version: '0.0.0'\n };\n\n async connectedCallback() {\n appendRootNodeStyle(this, globalStyles);\n super.connectedCallback();\n await this.updateComplete;\n const controls = Array.from(\n this.shadowRoot!.querySelector<HTMLSlotElement>('slot:not([name])')!.assignedElements()\n );\n controls[0]?.setAttribute('first-control', '');\n controls[controls.length - 1]?.setAttribute('last-control', '');\n }\n}\n"],"mappings":";;;;;;AAsBA,IAAa,IAAb,cAAgC,EAAa;;gBACd,EAAU,CAAC,GAAG,EAAa,QAAQ,EAAO,CAAC;;;kBAE7C;GACzB,KAAK;GACL,SAAS;GACV;;CAED,MAAM,oBAAoB;AAGxB,EAFA,EAAoB,MAAM,EAAa,EACvC,MAAM,mBAAmB,EACzB,MAAM,KAAK;EACX,IAAM,IAAW,MAAM,KACrB,KAAK,WAAY,cAA+B,mBAAmB,CAAE,kBAAkB,CACxF;AAED,EADA,EAAS,IAAI,aAAa,iBAAiB,GAAG,EAC9C,EAAS,EAAS,SAAS,IAAI,aAAa,gBAAgB,GAAG"}
1
+ {"version":3,"file":"input-group2.js","names":[],"sources":["../../src/input/input-group.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { CSSResult } from 'lit';\nimport { useStyles, appendRootNodeStyle } from '@nvidia-elements/core/internal';\nimport { ControlGroup } from '@nvidia-elements/core/forms';\nimport globalStyles from './input-group.global.css?inline';\nimport styles from './input-group.css?inline';\n\n/**\n * @element nve-input-group\n * @description Visually combines many related input controls into a unified composite field with shared styling.\n * @since 0.3.0\n * @entrypoint \\@nvidia-elements/core/input\n * @cssprop --background\n * @cssprop --color\n * @cssprop --border-radius\n * @cssprop --gap\n * @cssprop --border\n * @cssprop --padding\n * @aria https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input\n */\nexport class InputGroup extends ControlGroup {\n static styles: CSSResult[] = useStyles([...ControlGroup.styles, styles]);\n\n static readonly metadata = {\n tag: 'nve-input-group',\n version: '0.0.0'\n };\n\n async connectedCallback() {\n appendRootNodeStyle(this, globalStyles);\n super.connectedCallback();\n await this.updateComplete;\n const controls = Array.from(\n this.shadowRoot!.querySelector<HTMLSlotElement>('slot:not([name])')!.assignedElements()\n );\n controls[0]?.setAttribute('first-control', '');\n controls[controls.length - 1]?.setAttribute('last-control', '');\n }\n}\n"],"mappings":";;;;;;AAsBA,IAAa,IAAb,cAAgC,EAAa;;gBACd,EAAU,CAAC,GAAG,EAAa,QAAQ,EAAO,CAAC;;;kBAE7C;GACzB,KAAK;GACL,SAAS;GACV;;CAED,MAAM,oBAAoB;EAGxB,AAFA,EAAoB,MAAM,EAAa,EACvC,MAAM,mBAAmB,EACzB,MAAM,KAAK;EACX,IAAM,IAAW,MAAM,KACrB,KAAK,WAAY,cAA+B,mBAAmB,CAAE,kBAAkB,CACxF;EAED,AADA,EAAS,IAAI,aAAa,iBAAiB,GAAG,EAC9C,EAAS,EAAS,SAAS,IAAI,aAAa,gBAAgB,GAAG"}
@@ -1,4 +1,4 @@
1
- import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.123.0/helpers/decorate.js";
1
+ import { __decorate as e } from "../_virtual/_@oxc-project_runtime@0.128.0/helpers/decorate.js";
2
2
  import { useStyles as t } from "../internal/styles/index.js";
3
3
  import { Control as n } from "../forms/control/control2.js";
4
4
  import r from "./input.js";
@@ -14,7 +14,7 @@ var a = r, o = class extends n {
14
14
  static {
15
15
  this.metadata = {
16
16
  tag: "nve-input",
17
- version: "0.0.12"
17
+ version: "0.1.1"
18
18
  };
19
19
  }
20
20
  };
@@ -11,18 +11,18 @@ import { typeNativePopoverTrigger as l } from "../controllers/type-native-popove
11
11
  import { stateCurrent as u } from "../controllers/state-current.controller.js";
12
12
  import { typeCommand as d } from "../controllers/type-command.controller.js";
13
13
  import { typeInterest as f } from "../controllers/type-interest.controller.js";
14
- import { __decorate as p } from "../../_virtual/_@oxc-project_runtime@0.123.0/helpers/decorate.js";
14
+ import { __decorate as p } from "../../_virtual/_@oxc-project_runtime@0.128.0/helpers/decorate.js";
15
15
  import { LitElement as m, html as h, isServer as g } from "lit";
16
16
  import { property as _ } from "lit/decorators/property.js";
17
17
  //#region src/internal/base/button.ts
18
18
  var v = class extends m {
19
19
  constructor(...e) {
20
- super(...e), this.disabled = !1, this.popoverTargetElement = null, this.commandForElement = null, this.commandfor = null, this.interestForElement = null, this.interestfor = null;
20
+ super(...e), this.#e = null, this.disabled = !1, this.popoverTargetElement = null, this.commandForElement = null, this.commandfor = null, this.interestForElement = null, this.interestfor = null;
21
21
  }
22
22
  static {
23
23
  this.formAssociated = !0;
24
24
  }
25
- #e = null;
25
+ #e;
26
26
  set form(e) {
27
27
  this.#e = e, typeof e == "string" ? this.setAttribute("form", e) : this.removeAttribute("form");
28
28
  }
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","names":["#form"],"sources":["../../../src/internal/base/button.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html, isServer, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { stateActive } from '../controllers/state-active.controller.js';\nimport { stateDisabled } from '../controllers/state-disabled.controller.js';\nimport { stateExpanded } from '../controllers/state-expanded.controller.js';\nimport { statePressed } from '../controllers/state-pressed.controller.js';\nimport { stateSelected } from '../controllers/state-selected.controller.js';\nimport { typeButton } from '../controllers/type-button.controller.js';\nimport { typeAnchor } from '../controllers/type-anchor.controller.js';\nimport { typeSubmit } from '../controllers/type-submit.controller.js';\nimport { typeNativePopoverTrigger } from '../controllers/type-native-popover-trigger.controller.js';\nimport { stateCurrent } from '../controllers/state-current.controller.js';\nimport { typeCommand } from '../controllers/type-command.controller.js';\nimport { attachInternals } from '../utils/a11y.js';\nimport { typeInterest } from '../controllers/type-interest.controller.js';\n\n/**\n * Standard button behaviors for custom elements.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/button/\n */\n@typeButton<BaseButton>()\n@typeAnchor<BaseButton>()\n@typeSubmit<BaseButton & { form: HTMLFormElement | null }>() // override to exclude type string from getter, see comment in getter below\n@typeNativePopoverTrigger<BaseButton>()\n@typeCommand<BaseButton>()\n@typeInterest<BaseButton>()\n@stateActive<BaseButton>()\n@stateCurrent<BaseButton>()\n@statePressed<BaseButton>()\n@stateSelected<BaseButton>()\n@stateDisabled<BaseButton>()\n@stateExpanded<BaseButton>()\nexport class BaseButton extends LitElement {\n static formAssociated = true;\n\n /**\n * Use for toggle button types.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed\n */\n @property({ type: Boolean, reflect: true }) pressed: boolean;\n\n /**\n * Use for buttons that expand/collapse content.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded\n */\n @property({ type: Boolean, reflect: true }) expanded: boolean;\n\n /**\n * Like input readonly, sets a button semantically as visual treatment only\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly\n */\n @property({ type: Boolean, reflect: true }) readonly: boolean;\n\n #form: string | HTMLFormElement | null = null;\n\n /**\n * Like input form, sets a button to submit a form outside its parent form.\n * Returns a reference to the form element if available.\n * https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/form\n */\n @property({\n type: String,\n attribute: 'form',\n converter: {\n fromAttribute: (value: string) => value\n }\n })\n set form(form: string | HTMLFormElement) {\n this.#form = form;\n if (typeof form === 'string') {\n this.setAttribute('form', form);\n } else {\n this.removeAttribute('form');\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs\n get form(): HTMLFormElement | null | string {\n // string should drop from the type but without it the type does not derive from the setter correctly\n if (this.#form && typeof this.#form !== 'string') {\n return this.#form;\n } else if (typeof this.#form === 'string' && !isServer) {\n const rootNode = this.getRootNode() as Document | ShadowRoot;\n return rootNode.getElementById ? (rootNode.getElementById(this.#form) as HTMLFormElement) : null;\n } else {\n return this._internals?.form;\n }\n }\n\n /**\n * The name of the button, submitted as a pair with the button's value as part of the form data, when that button submits the form.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-name\n */\n @property({ type: String, reflect: true }) name: string;\n\n /**\n * Defines the value associated with the button's name when submitting the form data. The server receives this value in params when the form submits through this button.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-value\n */\n @property({ type: String, reflect: true }) value: string;\n\n /**\n * Defines the button behavior when associated within an <form> element.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n */\n @property({ type: String, reflect: true }) type: 'button' | 'submit' | 'reset';\n\n /**\n * This Boolean attribute prevents the user from interacting with the button: it cannot receive press or focus events.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-disabled\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * This Boolean attribute prevents the selected state when the button belongs to a multi-choice selection group\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected\n */\n @property({ type: Boolean, reflect: true }) selected: boolean;\n\n /**\n * This Boolean attribute sets the current state, used to represent the current page or navigation link\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current\n */\n @property({ type: String, reflect: true }) current: 'page' | 'step';\n\n /**\n * Establishing a relationship between a popover and its invoker button.\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetElement\n */\n @property({ type: Object }) popoverTargetElement: HTMLElement | null = null; // eslint-disable-line local/primitive-property\n\n /**\n * The idref of the element that receives the popover.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#popovertarget\n */\n @property({ type: String, attribute: 'popovertarget', reflect: true }) popovertarget: string;\n\n /**\n * The popover target action to perform on the popover target element.\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetAction\n */\n @property({ type: String, attribute: 'popovertargetaction', reflect: true })\n popoverTargetAction: 'show' | 'hide' | 'toggle';\n\n /**\n * The element that receives the command.\n * https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API\n */\n @property({ type: Object }) commandForElement: HTMLElement | null = null; // eslint-disable-line local/primitive-property\n\n /**\n * The idref of the element that receives the command.\n * https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API\n */\n @property({ type: String, attribute: 'commandfor', reflect: true }) commandfor: string | null = null;\n\n /**\n * The command to execute on the element.\n * https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API\n */\n @property({ type: String, attribute: 'command', reflect: true }) command: string;\n\n /**\n * The element that receives the interest.\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement\n */\n @property({ type: Object }) interestForElement: HTMLElement | null = null; // eslint-disable-line local/primitive-property\n\n /**\n * The idref of the element that receives the interest.\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement\n */\n @property({ type: String, reflect: true }) interestfor: string | null = null;\n\n /**\n * @private\n * An instance of `ElementInternals` that decorators/controllers set dynamically\n */\n declare _internals: ElementInternals;\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n }\n\n render() {\n return html`<div internal-host><slot></slot></div>`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAoCO,IAAA,IAAA,cAAyB,EAAW;;+BA+Ec,gCAkBgB,+BAmBH,wBAM4B,gCAY3B,yBAMG;;;wBA3IhD;;CAoBxB,KAAyC;CAOzC,IAOI,KAAK,GAAgC;AAEvC,EADA,MAAA,IAAa,GACT,OAAO,KAAS,WAClB,KAAK,aAAa,QAAQ,EAAK,GAE/B,KAAK,gBAAgB,OAAO;;CAKhC,IAAI,OAAwC;AAE1C,MAAI,MAAA,KAAc,OAAO,MAAA,KAAe,SACtC,QAAO,MAAA;MACE,OAAO,MAAA,KAAe,YAAY,CAAC,GAAU;GACtD,IAAM,IAAW,KAAK,aAAa;AACnC,UAAO,EAAS,iBAAkB,EAAS,eAAe,MAAA,EAAW,GAAuB;QAE5F,QAAO,KAAK,YAAY;;CA+F5B,oBAAoB;AAElB,EADA,MAAM,mBAAmB,EACzB,EAAgB,KAAK;;C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CAAA,EAAA,EAAA,WAAA,uBAAA,KAAA,EAAA,KAO3E,EAAS,EAAE,MAAM,QAAQ,CAAC,CAAA,EAAA,EAAA,WAAA,qBAAA,KAAA,EAAA,KAM1B,EAAS;CAAE,MAAM;CAAQ,WAAW;CAAc,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,cAAA,KAAA,EAAA,KAMlE,EAAS;CAAE,MAAM;CAAQ,WAAW;CAAW,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,WAAA,KAAA,EAAA,KAM/D,EAAS,EAAE,MAAM,QAAQ,CAAC,CAAA,EAAA,EAAA,WAAA,sBAAA,KAAA,EAAA,KAM1B,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,eAAA,KAAA,EAAA;CAxJ3C,GAAwB;CACxB,GAAwB;CACxB,GAA2D;CAC3D,GAAsC;CACtC,GAAyB;CACzB,GAA0B;CAC1B,GAAyB;CACzB,GAA0B;CAC1B,GAA0B;CAC1B,GAA2B;CAC3B,GAA2B;CAC3B,GAA2B"}
1
+ {"version":3,"file":"button.js","names":["#form"],"sources":["../../../src/internal/base/button.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { html, isServer, LitElement } from 'lit';\nimport { property } from 'lit/decorators/property.js';\nimport { stateActive } from '../controllers/state-active.controller.js';\nimport { stateDisabled } from '../controllers/state-disabled.controller.js';\nimport { stateExpanded } from '../controllers/state-expanded.controller.js';\nimport { statePressed } from '../controllers/state-pressed.controller.js';\nimport { stateSelected } from '../controllers/state-selected.controller.js';\nimport { typeButton } from '../controllers/type-button.controller.js';\nimport { typeAnchor } from '../controllers/type-anchor.controller.js';\nimport { typeSubmit } from '../controllers/type-submit.controller.js';\nimport { typeNativePopoverTrigger } from '../controllers/type-native-popover-trigger.controller.js';\nimport { stateCurrent } from '../controllers/state-current.controller.js';\nimport { typeCommand } from '../controllers/type-command.controller.js';\nimport { attachInternals } from '../utils/a11y.js';\nimport { typeInterest } from '../controllers/type-interest.controller.js';\n\n/**\n * Standard button behaviors for custom elements.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button\n * @aria https://www.w3.org/WAI/ARIA/apg/patterns/button/\n */\n@typeButton<BaseButton>()\n@typeAnchor<BaseButton>()\n@typeSubmit<BaseButton & { form: HTMLFormElement | null }>() // override to exclude type string from getter, see comment in getter below\n@typeNativePopoverTrigger<BaseButton>()\n@typeCommand<BaseButton>()\n@typeInterest<BaseButton>()\n@stateActive<BaseButton>()\n@stateCurrent<BaseButton>()\n@statePressed<BaseButton>()\n@stateSelected<BaseButton>()\n@stateDisabled<BaseButton>()\n@stateExpanded<BaseButton>()\nexport class BaseButton extends LitElement {\n static formAssociated = true;\n\n /**\n * Use for toggle button types.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-pressed\n */\n @property({ type: Boolean, reflect: true }) pressed: boolean;\n\n /**\n * Use for buttons that expand/collapse content.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded\n */\n @property({ type: Boolean, reflect: true }) expanded: boolean;\n\n /**\n * Like input readonly, sets a button semantically as visual treatment only\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/readonly\n */\n @property({ type: Boolean, reflect: true }) readonly: boolean;\n\n #form: string | HTMLFormElement | null = null;\n\n /**\n * Like input form, sets a button to submit a form outside its parent form.\n * Returns a reference to the form element if available.\n * https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/form\n */\n @property({\n type: String,\n attribute: 'form',\n converter: {\n fromAttribute: (value: string) => value\n }\n })\n set form(form: string | HTMLFormElement) {\n this.#form = form;\n if (typeof form === 'string') {\n this.setAttribute('form', form);\n } else {\n this.removeAttribute('form');\n }\n }\n\n // eslint-disable-next-line @typescript-eslint/related-getter-setter-pairs\n get form(): HTMLFormElement | null | string {\n // string should drop from the type but without it the type does not derive from the setter correctly\n if (this.#form && typeof this.#form !== 'string') {\n return this.#form;\n } else if (typeof this.#form === 'string' && !isServer) {\n const rootNode = this.getRootNode() as Document | ShadowRoot;\n return rootNode.getElementById ? (rootNode.getElementById(this.#form) as HTMLFormElement) : null;\n } else {\n return this._internals?.form;\n }\n }\n\n /**\n * The name of the button, submitted as a pair with the button's value as part of the form data, when that button submits the form.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-name\n */\n @property({ type: String, reflect: true }) name: string;\n\n /**\n * Defines the value associated with the button's name when submitting the form data. The server receives this value in params when the form submits through this button.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-value\n */\n @property({ type: String, reflect: true }) value: string;\n\n /**\n * Defines the button behavior when associated within an <form> element.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-type\n */\n @property({ type: String, reflect: true }) type: 'button' | 'submit' | 'reset';\n\n /**\n * This Boolean attribute prevents the user from interacting with the button: it cannot receive press or focus events.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#attr-disabled\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * This Boolean attribute prevents the selected state when the button belongs to a multi-choice selection group\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-selected\n */\n @property({ type: Boolean, reflect: true }) selected: boolean;\n\n /**\n * This Boolean attribute sets the current state, used to represent the current page or navigation link\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current\n */\n @property({ type: String, reflect: true }) current: 'page' | 'step';\n\n /**\n * Establishing a relationship between a popover and its invoker button.\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetElement\n */\n @property({ type: Object }) popoverTargetElement: HTMLElement | null = null; // eslint-disable-line local/primitive-property\n\n /**\n * The idref of the element that receives the popover.\n * https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/button#popovertarget\n */\n @property({ type: String, attribute: 'popovertarget', reflect: true }) popovertarget: string;\n\n /**\n * The popover target action to perform on the popover target element.\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/popoverTargetAction\n */\n @property({ type: String, attribute: 'popovertargetaction', reflect: true })\n popoverTargetAction: 'show' | 'hide' | 'toggle';\n\n /**\n * The element that receives the command.\n * https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API\n */\n @property({ type: Object }) commandForElement: HTMLElement | null = null; // eslint-disable-line local/primitive-property\n\n /**\n * The idref of the element that receives the command.\n * https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API\n */\n @property({ type: String, attribute: 'commandfor', reflect: true }) commandfor: string | null = null;\n\n /**\n * The command to execute on the element.\n * https://developer.mozilla.org/en-US/docs/Web/API/Invoker_Commands_API\n */\n @property({ type: String, attribute: 'command', reflect: true }) command: string;\n\n /**\n * The element that receives the interest.\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement\n */\n @property({ type: Object }) interestForElement: HTMLElement | null = null; // eslint-disable-line local/primitive-property\n\n /**\n * The idref of the element that receives the interest.\n * https://developer.mozilla.org/en-US/docs/Web/API/HTMLAnchorElement/interestForElement\n */\n @property({ type: String, reflect: true }) interestfor: string | null = null;\n\n /**\n * @private\n * An instance of `ElementInternals` that decorators/controllers set dynamically\n */\n declare _internals: ElementInternals;\n\n connectedCallback() {\n super.connectedCallback();\n attachInternals(this);\n }\n\n render() {\n return html`<div internal-host><slot></slot></div>`;\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAoCO,IAAA,IAAA,cAAyB,EAAW;;yBAqBA,sBA0Dc,gCAkBgB,+BAmBH,wBAM4B,gCAY3B,yBAMG;;;wBA3IhD;;CAoBxB;CAOA,IAOI,KAAK,GAAgC;EAEvC,AADA,KAAKA,KAAQ,GACT,OAAO,KAAS,WAClB,KAAK,aAAa,QAAQ,EAAK,GAE/B,KAAK,gBAAgB,OAAO;;CAK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S;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,WAAA,KAAA,EAAA,KAMzC,EAAS,EAAE,MAAM,QAAQ,CAAC,CAAA,EAAA,EAAA,WAAA,wBAAA,KAAA,EAAA,KAM1B,EAAS;CAAE,MAAM;CAAQ,WAAW;CAAiB,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,iBAAA,KAAA,EAAA,KAMrE,EAAS;CAAE,MAAM;CAAQ,WAAW;CAAuB,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,uBAAA,KAAA,EAAA,KAO3E,EAAS,EAAE,MAAM,QAAQ,CAAC,CAAA,EAAA,EAAA,WAAA,qBAAA,KAAA,EAAA,KAM1B,EAAS;CAAE,MAAM;CAAQ,WAAW;CAAc,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,cAAA,KAAA,EAAA,KAMlE,EAAS;CAAE,MAAM;CAAQ,WAAW;CAAW,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,WAAA,KAAA,EAAA,KAM/D,EAAS,EAAE,MAAM,QAAQ,CAAC,CAAA,EAAA,EAAA,WAAA,sBAAA,KAAA,EAAA,KAM1B,EAAS;CAAE,MAAM;CAAQ,SAAS;CAAM,CAAC,CAAA,EAAA,EAAA,WAAA,eAAA,KAAA,EAAA;CAxJ3C,GAAwB;CACxB,GAAwB;CACxB,GAA2D;CAC3D,GAAsC;CACtC,GAAyB;CACzB,GAA0B;CAC1B,GAAyB;CACzB,GAA0B;CAC1B,GAA0B;CAC1B,GAA2B;CAC3B,GAA2B;CAC3B,GAA2B"}
@@ -1 +1 @@
1
- {"version":3,"file":"audit.controller.js","names":["#hostAuditState","#production","#hostMetadata","#initializeAudit","#auditExcessiveInstanceLimit","#auditSlots","#auditParentElement","#cleanupExcessiveInstanceLimit","#update"],"sources":["../../../src/internal/controllers/audit.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { GlobalStateService } from '../services/global.service.js';\nimport { auditSlots, auditParentElement } from '../utils/audit.js';\n\nexport const excessiveInstanceLimit = 50;\n\nexport interface AuditOptions {\n excessiveInstanceLimit?: number;\n alternates?: { name: string; use: string }[];\n}\n\nexport interface AuditMetadata {\n parents?: string[];\n children?: string[];\n disallowedChildren?: string[];\n}\n\ninterface AuditRegistry {\n [key: string]: {\n count?: number;\n excessiveInstanceLimitAudited?: boolean;\n };\n}\n\nasync function log(message: string) {\n const { LogService } = await import('../services/log.service.js');\n LogService.warn(message);\n}\n\nexport function audit<T extends Audit>(options: AuditOptions = {}): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new AuditController(instance, options));\n}\n\nexport type Audit = ReactiveElement;\n\nexport class AuditController<T extends Audit> implements ReactiveController {\n get #hostAuditState() {\n return GlobalStateService.state.audit[this.host.localName] ?? { count: 0 };\n }\n\n get #production() {\n return GlobalStateService.state.env === 'production';\n }\n\n get #hostMetadata() {\n return (this.host.constructor as unknown as { metadata: AuditMetadata }).metadata;\n }\n\n constructor(\n private host: T,\n private options: AuditOptions\n ) {\n if (!this.#production) {\n this.host.addController(this);\n this.#initializeAudit();\n }\n }\n\n async hostConnected() {\n await this.host.updateComplete;\n if (!this.#production) {\n void this.#auditExcessiveInstanceLimit();\n void this.#auditSlots();\n void this.#auditParentElement();\n }\n }\n\n hostDisconnected() {\n this.#cleanupExcessiveInstanceLimit();\n }\n\n #initializeAudit() {\n if (!GlobalStateService.state.audit[this.host.localName]) {\n this.#update({ [this.host.localName]: { count: 0 } });\n }\n }\n\n async #auditExcessiveInstanceLimit() {\n if (this.options.excessiveInstanceLimit !== undefined) {\n if (\n this.#hostAuditState.count! > this.options.excessiveInstanceLimit &&\n !this.#hostAuditState.excessiveInstanceLimitAudited\n ) {\n const { getExcessiveInstanceLimitWarning } = await import('../utils/audit-logs.js');\n void log(getExcessiveInstanceLimitWarning(this.#hostAuditState.count!, this.host.localName));\n this.#update({\n [this.host.localName]: { count: this.#hostAuditState.count! + 1, excessiveInstanceLimitAudited: true }\n });\n } else {\n this.#update({ [this.host.localName]: { count: this.#hostAuditState.count! + 1 } });\n }\n }\n }\n\n #cleanupExcessiveInstanceLimit() {\n if (this.options.excessiveInstanceLimit) {\n this.#update({\n [this.host.localName]: { count: this.#hostAuditState.count! - 1, excessiveInstanceLimitAudited: false }\n });\n }\n }\n\n #update(registry: AuditRegistry) {\n GlobalStateService.dispatch('NVE_ELEMENTS_AUDIT_UPDATE', { audit: registry } as Partial<\n typeof globalThis.NVE_ELEMENTS.state\n >);\n }\n\n async #auditSlots() {\n if (this.#hostMetadata.children || this.#hostMetadata.disallowedChildren) {\n const [invalidElements, validElements] = auditSlots(this.host);\n if (invalidElements.length) {\n const { getInvalidSlottedChildrenWarning } = await import('../utils/audit-logs.js');\n void log(getInvalidSlottedChildrenWarning(this.host.localName, validElements));\n }\n }\n }\n\n async #auditParentElement() {\n if (this.#hostMetadata.parents) {\n const [valid, validParents] = auditParentElement(this.host);\n if (!valid) {\n const { getInvalidParentWarning } = await import('../utils/audit-logs.js');\n void log(getInvalidParentWarning(this.host.localName, validParents.join(', ')));\n }\n }\n }\n}\n"],"mappings":";;;AAQA,IAAa,IAAyB;AAoBtC,eAAe,EAAI,GAAiB;CAClC,IAAM,EAAE,kBAAe,MAAM,OAAO;AACpC,GAAW,KAAK,EAAQ;;AAG1B,SAAgB,EAAuB,IAAwB,EAAE,EAAkB;AACjF,SAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAAgB,GAAU,EAAQ,CAAC;;AAKnF,IAAa,IAAb,MAA4E;CAC1E,KAAA,IAAsB;AACpB,SAAO,EAAmB,MAAM,MAAM,KAAK,KAAK,cAAc,EAAE,OAAO,GAAG;;CAG5E,KAAA,IAAkB;AAChB,SAAO,EAAm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IAAM,CAAC,GAAiB,KAAiB,EAAW,KAAK,KAAK;AAC9D,OAAI,EAAgB,QAAQ;IAC1B,IAAM,EAAE,wCAAqC,MAAM,OAAO;AACrD,MAAI,EAAiC,KAAK,KAAK,WAAW,EAAc,CAAC;;;;CAKpF,OAAA,IAA4B;AAC1B,MAAI,MAAA,EAAmB,SAAS;GAC9B,IAAM,CAAC,GAAO,KAAgB,EAAmB,KAAK,KAAK;AAC3D,OAAI,CAAC,GAAO;IACV,IAAM,EAAE,+BAA4B,MAAM,OAAO;AAC5C,MAAI,EAAwB,KAAK,KAAK,WAAW,EAAa,KAAK,KAAK,CAAC,CAAC"}
1
+ {"version":3,"file":"audit.controller.js","names":["#hostAuditState","#production","#hostMetadata","#initializeAudit","#auditExcessiveInstanceLimit","#auditSlots","#auditParentElement","#cleanupExcessiveInstanceLimit","#update"],"sources":["../../../src/internal/controllers/audit.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { GlobalStateService } from '../services/global.service.js';\nimport { auditSlots, auditParentElement } from '../utils/audit.js';\n\nexport const excessiveInstanceLimit = 50;\n\nexport interface AuditOptions {\n excessiveInstanceLimit?: number;\n alternates?: { name: string; use: string }[];\n}\n\nexport interface AuditMetadata {\n parents?: string[];\n children?: string[];\n disallowedChildren?: string[];\n}\n\ninterface AuditRegistry {\n [key: string]: {\n count?: number;\n excessiveInstanceLimitAudited?: boolean;\n };\n}\n\nasync function log(message: string) {\n const { LogService } = await import('../services/log.service.js');\n LogService.warn(message);\n}\n\nexport function audit<T extends Audit>(options: AuditOptions = {}): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new AuditController(instance, options));\n}\n\nexport type Audit = ReactiveElement;\n\nexport class AuditController<T extends Audit> implements ReactiveController {\n get #hostAuditState() {\n return GlobalStateService.state.audit[this.host.localName] ?? { count: 0 };\n }\n\n get #production() {\n return GlobalStateService.state.env === 'production';\n }\n\n get #hostMetadata() {\n return (this.host.constructor as unknown as { metadata: AuditMetadata }).metadata;\n }\n\n constructor(\n private host: T,\n private options: AuditOptions\n ) {\n if (!this.#production) {\n this.host.addController(this);\n this.#initializeAudit();\n }\n }\n\n async hostConnected() {\n await this.host.updateComplete;\n if (!this.#production) {\n void this.#auditExcessiveInstanceLimit();\n void this.#auditSlots();\n void this.#auditParentElement();\n }\n }\n\n hostDisconnected() {\n this.#cleanupExcessiveInstanceLimit();\n }\n\n #initializeAudit() {\n if (!GlobalStateService.state.audit[this.host.localName]) {\n this.#update({ [this.host.localName]: { count: 0 } });\n }\n }\n\n async #auditExcessiveInstanceLimit() {\n if (this.options.excessiveInstanceLimit !== undefined) {\n if (\n this.#hostAuditState.count! > this.options.excessiveInstanceLimit &&\n !this.#hostAuditState.excessiveInstanceLimitAudited\n ) {\n const { getExcessiveInstanceLimitWarning } = await import('../utils/audit-logs.js');\n void log(getExcessiveInstanceLimitWarning(this.#hostAuditState.count!, this.host.localName));\n this.#update({\n [this.host.localName]: { count: this.#hostAuditState.count! + 1, excessiveInstanceLimitAudited: true }\n });\n } else {\n this.#update({ [this.host.localName]: { count: this.#hostAuditState.count! + 1 } });\n }\n }\n }\n\n #cleanupExcessiveInstanceLimit() {\n if (this.options.excessiveInstanceLimit) {\n this.#update({\n [this.host.localName]: { count: this.#hostAuditState.count! - 1, excessiveInstanceLimitAudited: false }\n });\n }\n }\n\n #update(registry: AuditRegistry) {\n GlobalStateService.dispatch('NVE_ELEMENTS_AUDIT_UPDATE', { audit: registry } as Partial<\n typeof globalThis.NVE_ELEMENTS.state\n >);\n }\n\n async #auditSlots() {\n if (this.#hostMetadata.children || this.#hostMetadata.disallowedChildren) {\n const [invalidElements, validElements] = auditSlots(this.host);\n if (invalidElements.length) {\n const { getInvalidSlottedChildrenWarning } = await import('../utils/audit-logs.js');\n void log(getInvalidSlottedChildrenWarning(this.host.localName, validElements));\n }\n }\n }\n\n async #auditParentElement() {\n if (this.#hostMetadata.parents) {\n const [valid, validParents] = auditParentElement(this.host);\n if (!valid) {\n const { getInvalidParentWarning } = await import('../utils/audit-logs.js');\n void log(getInvalidParentWarning(this.host.localName, validParents.join(', ')));\n }\n }\n }\n}\n"],"mappings":";;;AAQA,IAAa,IAAyB;AAoBtC,eAAe,EAAI,GAAiB;CAClC,IAAM,EAAE,kBAAe,MAAM,OAAO;CACpC,EAAW,KAAK,EAAQ;;AAG1B,SAAgB,EAAuB,IAAwB,EAAE,EAAkB;CACjF,QAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAAgB,GAAU,EAAQ,CAAC;;AAKnF,IAAa,IAAb,MAA4E;CAC1E,IAAIA,KAAkB;EACpB,OAAO,EAAmB,MAAM,MAAM,KAAK,KAAK,cAAc,EAAE,OAAO,GAAG;;CAG5E,IAAIC,KAAc;EAChB,OAAO,EAAmB,MAAM,QAAQ;;CAG1C,IAAIC,KAAgB;EAClB,OAAQ,KAAK,KAAK,YAAuD;;CAG3E,YACE,GACA,GACA;EACA,AAHQ,KAAA,OAAA,GACA,KAAA,UAAA,GAEH,KAAKD,OACR,KAAK,KAAK,cAAc,KAAK,EAC7B,KAAKE,IAAkB;;CAI3B,MAAM,gBAAgB;EAEpB,AADA,MAAM,KAAK,KAAK,gBACX,KAAKF,OACR,KAAUG,IAA8B,EACxC,KAAUC,IAAa,EACvB,KAAUC,IAAqB;;CAInC,mBAAmB;EACjB,KAAKC,IAAgC;;CAGvC,KAAmB;EACjB,AAAK,EAAmB,MAAM,MAAM,KAAK,KAAK,cAC5C,KAAKC,GAAQ,GAAG,KAAK,KAAK,YAAY,EAAE,OAAO,GAAG,EAAE,CAAC;;CAIzD,MAAMJ,KAA+B;EACnC,IAAI,KAAK,QAAQ,2BAA2B,KAAA,GAC1C,IACE,KAAKJ,GAAgB,QAAS,KAAK,QAAQ,0BAC3C,CAAC,KAAKA,GAAgB,+BACtB;GACA,IAAM,EAAE,wCAAqC,MAAM,OAAO;GAE1D,AADA,EAAS,EAAiC,KAAKA,GAAgB,OAAQ,KAAK,KAAK,UAAU,CAAC,EAC5F,KAAKQ,GAAQ,GACV,KAAK,KAAK,YAAY;IAAE,OAAO,KAAKR,GAAgB,QAAS;IAAG,+BAA+B;IAAM,EACvG,CAAC;SAEF,KAAKQ,GAAQ,GAAG,KAAK,KAAK,YAAY,EAAE,OAAO,KAAKR,GAAgB,QAAS,GAAG,EAAE,CAAC;;CAKzF,KAAiC;EAC/B,AAAI,KAAK,QAAQ,0BACf,KAAKQ,GAAQ,GACV,KAAK,KAAK,YAAY;GAAE,OAAO,KAAKR,GAAgB,QAAS;GAAG,+BAA+B;GAAO,EACxG,CAAC;;CAIN,GAAQ,GAAyB;EAC/B,EAAmB,SAAS,6BAA6B,EAAE,OAAO,GAAU,CAE1E;;CAGJ,MAAMK,KAAc;EAClB,IAAI,KAAKH,GAAc,YAAY,KAAKA,GAAc,oBAAoB;GACxE,IAAM,CAAC,GAAiB,KAAiB,EAAW,KAAK,KAAK;GAC9D,IAAI,EAAgB,QAAQ;IAC1B,IAAM,EAAE,wCAAqC,MAAM,OAAO;IAC1D,EAAS,EAAiC,KAAK,KAAK,WAAW,EAAc,CAAC;;;;CAKpF,MAAMI,KAAsB;EAC1B,IAAI,KAAKJ,GAAc,SAAS;GAC9B,IAAM,CAAC,GAAO,KAAgB,EAAmB,KAAK,KAAK;GAC3D,IAAI,CAAC,GAAO;IACV,IAAM,EAAE,+BAA4B,MAAM,OAAO;IACjD,EAAS,EAAwB,KAAK,KAAK,WAAW,EAAa,KAAK,KAAK,CAAC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"i18n.controller.js","names":["#update","#overrides"],"sources":["../../../src/internal/controllers/i18n.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport type { I18nStrings } from '../services/i18n.service.js';\nimport { I18nService } from '../services/i18n.service.js';\n\nexport function i18n<T extends I18n>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) => target.addInitializer!((instance: T) => new I18nController(instance));\n}\n\nexport type I18n = ReactiveElement & { i18n: Partial<I18nStrings> & { __set?: boolean } };\n\nexport class I18nController<T extends I18n> implements ReactiveController {\n get i18n(): Partial<I18nStrings & { __set: boolean }> {\n return { ...I18nService.i18n, ...this.host.i18n, __set: false };\n }\n\n #overrides: Partial<I18nStrings> = {};\n\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n hostConnected() {\n globalThis.document.addEventListener('NVE_ELEMENTS_I18N_UPDATE', this.#update);\n }\n\n hostDisconnected() {\n globalThis.document.removeEventListener('NVE_ELEMENTS_I18N_UPDATE', this.#update);\n }\n\n hostUpdated() {\n if (this.host.i18n.__set === undefined) {\n // if the host lacks a set, an override exists\n this.#overrides = this.host.i18n;\n this.#update();\n }\n }\n\n #update = () => {\n this.host.i18n = { ...I18nService.i18n, ...this.#overrides, __set: true };\n };\n}\n"],"mappings":";;AAQA,SAAgB,IAAuC;AACrD,SAAQ,MAAkC,EAAO,gBAAiB,MAAgB,IAAI,EAAe,EAAS,CAAC;;AAKjH,IAAa,IAAb,MAA0E;CACxE,IAAI,OAAkD;AACpD,SAAO;GAAE,GAAG,EAAY;GAAM,GAAG,KAAK,KAAK;GAAM,OAAO;GAAO;;CAGjE,KAAmC,EAAE;CAErC,YAAY,GAAiB;AAC3B,EADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAG/B,gBAAgB;AACd,aAAW,SAAS,iBAAiB,4BAA4B,MAAA,EAAa;;CAGhF,mBAAmB;AACjB,aAAW,SAAS,oBAAoB,4BAA4B,MAAA,EAAa;;CAGnF,cAAc;AACZ,EAAI,KAAK,KAAK,KAAK,UAAU,KAAA,MAE3B,MAAA,IAAkB,KAAK,KAAK,MAC5B,MAAA,GAAc;;CAIlB,WAAgB;AACd,OAAK,KAAK,OAAO;GAAE,GAAG,EAAY;GAAM,GAAG,MAAA;GAAiB,OAAO;GAAM"}
1
+ {"version":3,"file":"i18n.controller.js","names":["#update","#overrides"],"sources":["../../../src/internal/controllers/i18n.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport type { I18nStrings } from '../services/i18n.service.js';\nimport { I18nService } from '../services/i18n.service.js';\n\nexport function i18n<T extends I18n>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) => target.addInitializer!((instance: T) => new I18nController(instance));\n}\n\nexport type I18n = ReactiveElement & { i18n: Partial<I18nStrings> & { __set?: boolean } };\n\nexport class I18nController<T extends I18n> implements ReactiveController {\n get i18n(): Partial<I18nStrings & { __set: boolean }> {\n return { ...I18nService.i18n, ...this.host.i18n, __set: false };\n }\n\n #overrides: Partial<I18nStrings> = {};\n\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n hostConnected() {\n globalThis.document.addEventListener('NVE_ELEMENTS_I18N_UPDATE', this.#update);\n }\n\n hostDisconnected() {\n globalThis.document.removeEventListener('NVE_ELEMENTS_I18N_UPDATE', this.#update);\n }\n\n hostUpdated() {\n if (this.host.i18n.__set === undefined) {\n // if the host lacks a set, an override exists\n this.#overrides = this.host.i18n;\n this.#update();\n }\n }\n\n #update = () => {\n this.host.i18n = { ...I18nService.i18n, ...this.#overrides, __set: true };\n };\n}\n"],"mappings":";;AAQA,SAAgB,IAAuC;CACrD,QAAQ,MAAkC,EAAO,gBAAiB,MAAgB,IAAI,EAAe,EAAS,CAAC;;AAKjH,IAAa,IAAb,MAA0E;CACxE,IAAI,OAAkD;EACpD,OAAO;GAAE,GAAG,EAAY;GAAM,GAAG,KAAK,KAAK;GAAM,OAAO;GAAO;;CAGjE,KAAmC,EAAE;CAErC,YAAY,GAAiB;EAC3B,AADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAG/B,gBAAgB;EACd,WAAW,SAAS,iBAAiB,4BAA4B,KAAKA,GAAQ;;CAGhF,mBAAmB;EACjB,WAAW,SAAS,oBAAoB,4BAA4B,KAAKA,GAAQ;;CAGnF,cAAc;EACZ,AAAI,KAAK,KAAK,KAAK,UAAU,KAAA,MAE3B,KAAKC,KAAa,KAAK,KAAK,MAC5B,KAAKD,IAAS;;CAIlB,WAAgB;EACd,KAAK,KAAK,OAAO;GAAE,GAAG,EAAY;GAAM,GAAG,KAAKC;GAAY,OAAO;GAAM"}
@@ -1 +1 @@
1
- {"version":3,"file":"keynav-grid.controller.js","names":["#config","#hostRows","#hostCells","#updateCellActivation","#keynavCell","#clickCell","#observers","#setActiveCell"],"sources":["../../../src/internal/controllers/keynav-grid.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { onChildListMutation, throttle } from '../utils/events.js';\nimport { GlobalStateService } from '../services/global.service.js';\nimport { LogService } from '../services/log.service.js';\nimport {\n validKeyNavigationCode,\n isContextMenuClick,\n getFlattenedDOMTree,\n getFlattenedFocusableItems,\n KeynavCode,\n hasInvalidDOMGrid\n} from '../utils/dom.js';\nimport {\n focusElement,\n getActiveElement,\n initializeKeyListItems,\n setActiveKeyListItem,\n isSimpleFocusable\n} from '../utils/focus.js';\n\nexport interface KeynavGridConfig {\n grid?: HTMLElement;\n columnRow?: HTMLElement;\n columns?: NodeListOf<HTMLElement> | HTMLElement[];\n rows: NodeListOf<HTMLElement> | HTMLElement[];\n cells: NodeListOf<HTMLElement> | HTMLElement[];\n}\n\nexport interface KeynavGridElement {\n keynavGridConfig: KeynavGridConfig;\n}\n\n/**\n * https://w3c.github.io/aria-practices/#gridNav_focus\n */\nexport function keyNavigationGrid<T extends ReactiveElement & KeynavGridElement>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new KeyNavigationGridController(instance));\n}\n\nexport class KeyNavigationGridController<T extends ReactiveElement & KeynavGridElement> implements ReactiveController {\n #observers: MutationObserver[] = [];\n\n get #config() {\n return {\n grid: this.host,\n ...this.host.keynavGridConfig\n };\n }\n\n get #hostRows() {\n const rows = Array.from(this.#config.rows);\n\n if (this.#config.columnRow) {\n rows.unshift(this.#config.columnRow);\n }\n\n return rows;\n }\n\n get #hostCells() {\n return [...Array.from(this.#config.columns ?? []), ...Array.from(this.#config.cells)];\n }\n\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n async hostConnected() {\n await this.host.updateComplete;\n initializeKeyListItems(this.#hostCells);\n this.#config.grid.addEventListener('keyup', (e: KeyboardEvent) => this.#updateCellActivation(e));\n this.#config.grid.addEventListener('keydown', (e: KeyboardEvent) => this.#keynavCell(e));\n this.#config.grid.addEventListener('mouseup', (e: MouseEvent) => this.#clickCell(e));\n this.#observers.push(\n onChildListMutation(\n this.host,\n throttle(() => initializeKeyListItems(this.#hostCells), 500)\n )\n );\n }\n\n hostDisconnected() {\n this.#observers.forEach(o => o?.disconnect());\n }\n\n #clickCell(e: MouseEvent) {\n if (!isContextMenuClick(e)) {\n const focusedElement = e.composedPath()[0] as HTMLElement;\n const activeCell = this.#hostCells.find(i => i === focusedElement) ? focusedElement : null;\n if (activeCell) {\n this.#setActiveCell(e, activeCell as HTMLElement);\n }\n }\n }\n\n #keynavCell(e: KeyboardEvent) {\n const rows = Array.from(this.#hostRows);\n const cells = Array.from(this.#hostCells);\n\n if (GlobalStateService.state.env !== 'production' && hasInvalidDOMGrid(rows)) {\n LogService.warn('Invalid grid structure, all rows must have the same number of cells');\n return;\n }\n\n if (validKeyNavigationCode(e) && isSimpleFocusable(getActiveElement() as Element)) {\n const { x, y } = getNextKeyGridItem(cells, rows, {\n code: e.code,\n ctrlKey: e.ctrlKey,\n dir: this.host.dir\n });\n\n const nextCell = Array.from(getFlattenedDOMTree(rows[y]!)).filter(c => !!cells.find(i => i === c))[\n x\n ] as HTMLElement;\n this.#setActiveCell(e, nextCell);\n e.preventDefault();\n }\n }\n\n #setActiveCell(e: KeyboardEvent | MouseEvent, activeCell: HTMLElement) {\n setActiveKeyListItem(this.#hostCells, activeCell);\n\n const items = getFlattenedFocusableItems(activeCell);\n const simpleItems = items.filter(i => isSimpleFocusable(i));\n\n if (simpleItems.length === 1 && items.length === 1) {\n focusElement(simpleItems[0]!);\n } else {\n focusElement(activeCell);\n }\n\n const detail = { code: e instanceof KeyboardEvent ? e.code : null, shiftKey: e.shiftKey, activeItem: activeCell };\n activeCell.dispatchEvent(new CustomEvent('nve-key-change', { bubbles: true, composed: true, detail }));\n }\n\n #updateCellActivation(e: KeyboardEvent) {\n const activeCell = Array.from(this.#hostCells).find(i => i.tabIndex === 0) as HTMLElement;\n if (e.code === 'Escape') {\n activeCell?.focus();\n }\n\n if (e.code === 'Enter' && activeCell === e.composedPath()[0]) {\n getFlattenedFocusableItems(activeCell as HTMLElement)[0]?.focus();\n }\n }\n}\n\nfunction getGridDelta(code: KeynavCode | string, dir: string): { dx: number; dy: number } | null {\n const start = dir === 'rtl' ? KeynavCode.ArrowRight : KeynavCode.ArrowLeft;\n const end = dir === 'rtl' ? KeynavCode.ArrowLeft : KeynavCode.ArrowRight;\n\n if (code === KeynavCode.ArrowUp) return { dx: 0, dy: -1 };\n if (code === KeynavCode.ArrowDown) return { dx: 0, dy: 1 };\n if (code === start) return { dx: -1, dy: 0 };\n if (code === end) return { dx: 1, dy: 0 };\n if (code === KeynavCode.PageUp) return { dx: 0, dy: -4 };\n if (code === KeynavCode.PageDown) return { dx: 0, dy: 4 };\n return null;\n}\n\nfunction applyGridHomeEnd(\n code: KeynavCode | string,\n position: { x: number; y: number },\n bounds: { columnCount: number; rowCount: number; ctrlKey: boolean }\n) {\n const { x, y } = position;\n const { columnCount, rowCount, ctrlKey } = bounds;\n if (code === KeynavCode.End) {\n return { x: columnCount, y: ctrlKey ? rowCount : y };\n }\n\n if (code === KeynavCode.Home) {\n return { x: 0, y: ctrlKey ? 0 : y };\n }\n\n return { x, y };\n}\n\nexport function getNextKeyGridItem(\n cells: HTMLElement[],\n rows: HTMLElement[],\n config: { code: KeynavCode | string; ctrlKey: boolean; dir: string }\n) {\n const currentCell = cells.find(i => i.tabIndex === 0) as HTMLElement;\n const currentRow = rows.find(r => getFlattenedDOMTree(r).find(c => c === currentCell)) as HTMLElement;\n const currentRowCells = Array.from(getFlattenedDOMTree(currentRow)).filter(c => !!cells.find(i => i === c));\n const rowCount = rows.length - 1;\n const columnCount = currentRowCells.length - 1;\n\n let x = currentRowCells.indexOf(currentCell);\n let y = rows.indexOf(currentRow);\n\n const delta = getGridDelta(config.code, config.dir);\n if (delta) {\n x = Math.max(0, Math.min(columnCount, x + delta.dx));\n y = Math.max(0, Math.min(rowCount, y + delta.dy));\n } else {\n ({ x, y } = applyGridHomeEnd(config.code, { x, y }, { columnCount, rowCount, ctrlKey: config.ctrlKey }));\n }\n\n return { x, y };\n}\n"],"mappings":";;;;;;AAuCA,SAAgB,IAAmF;AACjG,SAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAA4B,EAAS,CAAC;;AAGtF,IAAa,IAAb,MAAsH;CACpH,KAAiC,EAAE;CAEnC,KAAA,IAAc;AACZ,SAAO;GACL,MAAM,KAAK;GACX,GAAG,KAAK,KAAK;GACd;;CAGH,KAAA,IAAgB;EACd,IAAM,IAAO,MAAM,KAAK,MAAA,EAAa,KAAK;AAM1C,SAJI,MAAA,EAAa,aACf,EAAK,QAAQ,MAAA,EAAa,UAAU,EAG/B;;CAGT,KAAA,IAAiB;AACf,S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AiB;EAAE,IAAI;EAAG,IAAI;EAAG,GAClD;;AAGT,SAAS,EACP,GACA,GACA,GACA;CACA,IAAM,EAAE,MAAG,SAAM,GACX,EAAE,gBAAa,aAAU,eAAY;AAS3C,QARI,MAAS,EAAW,MACf;EAAE,GAAG;EAAa,GAAG,IAAU,IAAW;EAAG,GAGlD,MAAS,EAAW,OACf;EAAE,GAAG;EAAG,GAAG,IAAU,IAAI;EAAG,GAG9B;EAAE;EAAG;EAAG;;AAGjB,SAAgB,EACd,GACA,GACA,GACA;CACA,IAAM,IAAc,EAAM,MAAK,MAAK,EAAE,aAAa,EAAE,EAC/C,IAAa,EAAK,MAAK,MAAK,EAAoB,EAAE,CAAC,MAAK,MAAK,MAAM,EAAY,CAAC,EAChF,IAAkB,MAAM,KAAK,EAAoB,EAAW,CAAC,CAAC,QAAO,MAAK,CAAC,CAAC,EAAM,MAAK,MAAK,MAAM,EAAE,CAAC,EACrG,IAAW,EAAK,SAAS,GACzB,IAAc,EAAgB,SAAS,GAEzC,IAAI,EAAgB,QAAQ,EAAY,EACxC,IAAI,EAAK,QAAQ,EAAW,EAE1B,IAAQ,EAAa,EAAO,MAAM,EAAO,IAAI;AAQnD,QAPI,KACF,IAAI,KAAK,IAAI,GAAG,KAAK,IAAI,GAAa,IAAI,EAAM,GAAG,CAAC,EACpD,IAAI,KAAK,IAAI,GAAG,KAAK,IAAI,GAAU,IAAI,EAAM,GAAG,CAAC,IAEhD,eAAW,EAAiB,EAAO,MAAM;EAAE;EAAG;EAAG,EAAE;EAAE;EAAa;EAAU,SAAS,EAAO;EAAS,CAAC,EAGlG;EAAE;EAAG;EAAG"}
1
+ {"version":3,"file":"keynav-grid.controller.js","names":["#config","#hostRows","#hostCells","#updateCellActivation","#keynavCell","#clickCell","#observers","#setActiveCell"],"sources":["../../../src/internal/controllers/keynav-grid.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { onChildListMutation, throttle } from '../utils/events.js';\nimport { GlobalStateService } from '../services/global.service.js';\nimport { LogService } from '../services/log.service.js';\nimport {\n validKeyNavigationCode,\n isContextMenuClick,\n getFlattenedDOMTree,\n getFlattenedFocusableItems,\n KeynavCode,\n hasInvalidDOMGrid\n} from '../utils/dom.js';\nimport {\n focusElement,\n getActiveElement,\n initializeKeyListItems,\n setActiveKeyListItem,\n isSimpleFocusable\n} from '../utils/focus.js';\n\nexport interface KeynavGridConfig {\n grid?: HTMLElement;\n columnRow?: HTMLElement;\n columns?: NodeListOf<HTMLElement> | HTMLElement[];\n rows: NodeListOf<HTMLElement> | HTMLElement[];\n cells: NodeListOf<HTMLElement> | HTMLElement[];\n}\n\nexport interface KeynavGridElement {\n keynavGridConfig: KeynavGridConfig;\n}\n\n/**\n * https://w3c.github.io/aria-practices/#gridNav_focus\n */\nexport function keyNavigationGrid<T extends ReactiveElement & KeynavGridElement>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new KeyNavigationGridController(instance));\n}\n\nexport class KeyNavigationGridController<T extends ReactiveElement & KeynavGridElement> implements ReactiveController {\n #observers: MutationObserver[] = [];\n\n get #config() {\n return {\n grid: this.host,\n ...this.host.keynavGridConfig\n };\n }\n\n get #hostRows() {\n const rows = Array.from(this.#config.rows);\n\n if (this.#config.columnRow) {\n rows.unshift(this.#config.columnRow);\n }\n\n return rows;\n }\n\n get #hostCells() {\n return [...Array.from(this.#config.columns ?? []), ...Array.from(this.#config.cells)];\n }\n\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n async hostConnected() {\n await this.host.updateComplete;\n initializeKeyListItems(this.#hostCells);\n this.#config.grid.addEventListener('keyup', (e: KeyboardEvent) => this.#updateCellActivation(e));\n this.#config.grid.addEventListener('keydown', (e: KeyboardEvent) => this.#keynavCell(e));\n this.#config.grid.addEventListener('mouseup', (e: MouseEvent) => this.#clickCell(e));\n this.#observers.push(\n onChildListMutation(\n this.host,\n throttle(() => initializeKeyListItems(this.#hostCells), 500)\n )\n );\n }\n\n hostDisconnected() {\n this.#observers.forEach(o => o?.disconnect());\n }\n\n #clickCell(e: MouseEvent) {\n if (!isContextMenuClick(e)) {\n const focusedElement = e.composedPath()[0] as HTMLElement;\n const activeCell = this.#hostCells.find(i => i === focusedElement) ? focusedElement : null;\n if (activeCell) {\n this.#setActiveCell(e, activeCell as HTMLElement);\n }\n }\n }\n\n #keynavCell(e: KeyboardEvent) {\n const rows = Array.from(this.#hostRows);\n const cells = Array.from(this.#hostCells);\n\n if (GlobalStateService.state.env !== 'production' && hasInvalidDOMGrid(rows)) {\n LogService.warn('Invalid grid structure, all rows must have the same number of cells');\n return;\n }\n\n if (validKeyNavigationCode(e) && isSimpleFocusable(getActiveElement() as Element)) {\n const { x, y } = getNextKeyGridItem(cells, rows, {\n code: e.code,\n ctrlKey: e.ctrlKey,\n dir: this.host.dir\n });\n\n const nextCell = Array.from(getFlattenedDOMTree(rows[y]!)).filter(c => !!cells.find(i => i === c))[\n x\n ] as HTMLElement;\n this.#setActiveCell(e, nextCell);\n e.preventDefault();\n }\n }\n\n #setActiveCell(e: KeyboardEvent | MouseEvent, activeCell: HTMLElement) {\n setActiveKeyListItem(this.#hostCells, activeCell);\n\n const items = getFlattenedFocusableItems(activeCell);\n const simpleItems = items.filter(i => isSimpleFocusable(i));\n\n if (simpleItems.length === 1 && items.length === 1) {\n focusElement(simpleItems[0]!);\n } else {\n focusElement(activeCell);\n }\n\n const detail = { code: e instanceof KeyboardEvent ? e.code : null, shiftKey: e.shiftKey, activeItem: activeCell };\n activeCell.dispatchEvent(new CustomEvent('nve-key-change', { bubbles: true, composed: true, detail }));\n }\n\n #updateCellActivation(e: KeyboardEvent) {\n const activeCell = Array.from(this.#hostCells).find(i => i.tabIndex === 0) as HTMLElement;\n if (e.code === 'Escape') {\n activeCell?.focus();\n }\n\n if (e.code === 'Enter' && activeCell === e.composedPath()[0]) {\n getFlattenedFocusableItems(activeCell as HTMLElement)[0]?.focus();\n }\n }\n}\n\nfunction getGridDelta(code: KeynavCode | string, dir: string): { dx: number; dy: number } | null {\n const start = dir === 'rtl' ? KeynavCode.ArrowRight : KeynavCode.ArrowLeft;\n const end = dir === 'rtl' ? KeynavCode.ArrowLeft : KeynavCode.ArrowRight;\n\n if (code === KeynavCode.ArrowUp) return { dx: 0, dy: -1 };\n if (code === KeynavCode.ArrowDown) return { dx: 0, dy: 1 };\n if (code === start) return { dx: -1, dy: 0 };\n if (code === end) return { dx: 1, dy: 0 };\n if (code === KeynavCode.PageUp) return { dx: 0, dy: -4 };\n if (code === KeynavCode.PageDown) return { dx: 0, dy: 4 };\n return null;\n}\n\nfunction applyGridHomeEnd(\n code: KeynavCode | string,\n position: { x: number; y: number },\n bounds: { columnCount: number; rowCount: number; ctrlKey: boolean }\n) {\n const { x, y } = position;\n const { columnCount, rowCount, ctrlKey } = bounds;\n if (code === KeynavCode.End) {\n return { x: columnCount, y: ctrlKey ? rowCount : y };\n }\n\n if (code === KeynavCode.Home) {\n return { x: 0, y: ctrlKey ? 0 : y };\n }\n\n return { x, y };\n}\n\nexport function getNextKeyGridItem(\n cells: HTMLElement[],\n rows: HTMLElement[],\n config: { code: KeynavCode | string; ctrlKey: boolean; dir: string }\n) {\n const currentCell = cells.find(i => i.tabIndex === 0) as HTMLElement;\n const currentRow = rows.find(r => getFlattenedDOMTree(r).find(c => c === currentCell)) as HTMLElement;\n const currentRowCells = Array.from(getFlattenedDOMTree(currentRow)).filter(c => !!cells.find(i => i === c));\n const rowCount = rows.length - 1;\n const columnCount = currentRowCells.length - 1;\n\n let x = currentRowCells.indexOf(currentCell);\n let y = rows.indexOf(currentRow);\n\n const delta = getGridDelta(config.code, config.dir);\n if (delta) {\n x = Math.max(0, Math.min(columnCount, x + delta.dx));\n y = Math.max(0, Math.min(rowCount, y + delta.dy));\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EAAO,IAAI;CAQnD,OAPI,KACF,IAAI,KAAK,IAAI,GAAG,KAAK,IAAI,GAAa,IAAI,EAAM,GAAG,CAAC,EACpD,IAAI,KAAK,IAAI,GAAG,KAAK,IAAI,GAAU,IAAI,EAAM,GAAG,CAAC,IAEhD,eAAW,EAAiB,EAAO,MAAM;EAAE;EAAG;EAAG,EAAE;EAAE;EAAa;EAAU,SAAS,EAAO;EAAS,CAAC,EAGlG;EAAE;EAAG;EAAG"}
@@ -1 +1 @@
1
- {"version":3,"file":"keynav-list.controller.js","names":["#config","#keynavDisabled","#initializeTabIndex","#clickItem","#focusItem","#getActiveItem","#setActiveItem"],"sources":["../../../src/internal/controllers/keynav-list.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { focusElement, initializeKeyListItems, setActiveKeyListItem } from '../utils/focus.js';\nimport { KeynavCode, validKeyNavigationCode } from '../utils/dom.js';\n\nexport interface KeynavListConfig {\n items: NodeListOf<HTMLElement> | HTMLElement[];\n layout?: 'both' | 'horizontal' | 'vertical';\n manageFocus?: boolean;\n manageTabindex?: boolean;\n loop?: boolean;\n dir?: string | null;\n}\n\nexport interface KeynavListElement {\n keynavListConfig: KeynavListConfig;\n}\n\n/** https://webaim.org/techniques/keyboard/ */\nexport function keyNavigationList<T extends ReactiveElement & KeynavListElement>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new KeyNavigationListController(instance));\n}\n\nexport class KeyNavigationListController<T extends ReactiveElement & KeynavListElement> implements ReactiveController {\n get #config(): KeynavListConfig & { items: HTMLElement[] } {\n return {\n layout: 'horizontal',\n manageFocus: true,\n manageTabindex: true,\n loop: false,\n dir: this.host.getAttribute('rtl'),\n ...this.host.keynavListConfig,\n items: Array.from(this.host.keynavListConfig.items).filter(\n (i: HTMLElement & { disabled?: boolean }) => !i.disabled\n )\n };\n }\n\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n /** @private attr nve-keynav-disabled is an internal API for advanced use cases only */\n get #keynavDisabled() {\n return this.host.hasAttribute('nve-keynav-disabled');\n }\n\n async hostConnected() {\n await this.host.updateComplete;\n this.#initializeTabIndex();\n this.host.addEventListener('pointerup', (e: PointerEvent) => this.#clickItem(e));\n this.host.addEventListener('keydown', (e: KeyboardEvent) => this.#focusItem(e));\n }\n\n #initializeTabIndex() {\n const { manageFocus, manageTabindex, items } = this.#config;\n if (manageFocus && manageTabindex && !this.#keynavDisabled) {\n initializeKeyListItems(items);\n }\n }\n\n #clickItem(e: PointerEvent) {\n const item = this.#getActiveItem(e, this.#config.items);\n if (item) {\n this.#setActiveItem(e, item);\n }\n }\n\n #focusItem(e: KeyboardEvent) {\n if (validKeyNavigationCode(e) && !this.#keynavDisabled) {\n const { loop, layout, dir, items } = this.#config;\n const activeItem = this.#getActiveItem(e, items);\n if (activeItem) {\n const { next, previous } = getNextKeyListItem(activeItem, Array.from(items), {\n loop,\n layout,\n dir,\n code: e.code as KeynavCode\n });\n\n if (next !== previous) {\n this.#setActiveItem(e, items[next]!, items[previous]);\n }\n }\n }\n }\n\n #getActiveItem(e: Event, items: HTMLElement[]) {\n const focusedElement = e.composedPath()[0] as HTMLElement;\n return items.find(i => i === focusedElement) ? focusedElement : null;\n }\n\n #setActiveItem(e: KeyboardEvent | PointerEvent, activeItem: HTMLElement, previousItem?: HTMLElement) {\n const { manageFocus, manageTabindex, items } = this.#config;\n if (manageFocus) {\n if (manageTabindex) {\n setActiveKeyListItem(items, activeItem);\n }\n\n focusElement(activeItem);\n e.preventDefault();\n }\n\n const detail = {\n activeItem,\n previousItem,\n code: e instanceof KeyboardEvent ? e.code : null,\n metaKey: e.ctrlKey || e.metaKey,\n items\n };\n activeItem.dispatchEvent(new CustomEvent('nve-key-change', { bubbles: true, composed: true, detail }));\n }\n}\n\ninterface KeyListConfig {\n code: KeynavCode;\n loop?: boolean;\n layout?: 'horizontal' | 'vertical' | 'both';\n dir: string | null | undefined;\n}\n\nfunction resolveArrowDirection(config: KeyListConfig): 'backward' | 'forward' | null {\n const { code, layout, dir } = config;\n const start = dir === 'rtl' ? KeynavCode.ArrowRight : KeynavCode.ArrowLeft;\n const end = dir === 'rtl' ? KeynavCode.ArrowLeft : KeynavCode.ArrowRight;\n\n if (layout !== 'horizontal') {\n if (code === KeynavCode.ArrowUp) return 'backward';\n if (code === KeynavCode.ArrowDown) return 'forward';\n }\n\n if (layout !== 'vertical') {\n if (code === start) return 'backward';\n if (code === end) return 'forward';\n }\n\n return null;\n}\n\nfunction resolveSpecialKey(code: KeynavCode): 'home' | 'end' | 'pageup' | 'pagedown' | null {\n if (code === KeynavCode.End) return 'end';\n if (code === KeynavCode.Home) return 'home';\n if (code === KeynavCode.PageUp) return 'pageup';\n if (code === KeynavCode.PageDown) return 'pagedown';\n return null;\n}\n\nfunction navigateWithLoop(current: number, step: number, options: { limit: number; loop: boolean | undefined }) {\n const { limit, loop } = options;\n const next = current + step;\n if (next >= 0 && next <= limit) return next;\n return loop ? (step < 0 ? limit : 0) : current;\n}\n\nexport function getNextKeyListItem(item: HTMLElement, items: HTMLElement[], config: KeyListConfig) {\n let next = items.indexOf(item);\n const previous = next;\n const itemCount = items.length - 1;\n const direction = resolveArrowDirection(config);\n\n switch (direction ?? resolveSpecialKey(config.code)) {\n case 'backward':\n next = navigateWithLoop(next, -1, { limit: itemCount, loop: config.loop });\n break;\n case 'forward':\n next = navigateWithLoop(next, 1, { limit: itemCount, loop: config.loop });\n break;\n case 'end':\n next = itemCount;\n break;\n case 'home':\n next = 0;\n break;\n case 'pageup':\n next = Math.max(0, next - 4);\n break;\n case 'pagedown':\n next = Math.min(itemCount, next + 4);\n break;\n case null:\n break;\n }\n\n return { next, previous };\n}\n"],"mappings":";;;AAsBA,SAAgB,IAAmF;AACjG,SAAQ,MAC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QAAQ,EAAK,EACxB,IAAW,GACX,IAAY,EAAM,SAAS;AAGjC,SAFkB,EAAsB,EAAO,IAE1B,EAAkB,EAAO,KAAK,EAAnD;EACE,KAAK;AACH,OAAO,EAAiB,GAAM,IAAI;IAAE,OAAO;IAAW,MAAM,EAAO;IAAM,CAAC;AAC1E;EACF,KAAK;AACH,OAAO,EAAiB,GAAM,GAAG;IAAE,OAAO;IAAW,MAAM,EAAO;IAAM,CAAC;AACzE;EACF,KAAK;AACH,OAAO;AACP;EACF,KAAK;AACH,OAAO;AACP;EACF,KAAK;AACH,OAAO,KAAK,IAAI,GAAG,IAAO,EAAE;AAC5B;EACF,KAAK;AACH,OAAO,KAAK,IAAI,GAAW,IAAO,EAAE;AACpC;EACF,KAAK,KACH;;AAGJ,QAAO;EAAE;EAAM;EAAU"}
1
+ {"version":3,"file":"keynav-list.controller.js","names":["#config","#keynavDisabled","#initializeTabIndex","#clickItem","#focusItem","#getActiveItem","#setActiveItem"],"sources":["../../../src/internal/controllers/keynav-list.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { focusElement, initializeKeyListItems, setActiveKeyListItem } from '../utils/focus.js';\nimport { KeynavCode, validKeyNavigationCode } from '../utils/dom.js';\n\nexport interface KeynavListConfig {\n items: NodeListOf<HTMLElement> | HTMLElement[];\n layout?: 'both' | 'horizontal' | 'vertical';\n manageFocus?: boolean;\n manageTabindex?: boolean;\n loop?: boolean;\n dir?: string | null;\n}\n\nexport interface KeynavListElement {\n keynavListConfig: KeynavListConfig;\n}\n\n/** https://webaim.org/techniques/keyboard/ */\nexport function keyNavigationList<T extends ReactiveElement & KeynavListElement>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new KeyNavigationListController(instance));\n}\n\nexport class KeyNavigationListController<T extends ReactiveElement & KeynavListElement> implements ReactiveController {\n get #config(): KeynavListConfig & { items: HTMLElement[] } {\n return {\n layout: 'horizontal',\n manageFocus: true,\n manageTabindex: true,\n loop: false,\n dir: this.host.getAttribute('rtl'),\n ...this.host.keynavListConfig,\n items: Array.from(this.host.keynavListConfig.items).filter(\n (i: HTMLElement & { disabled?: boolean }) => !i.disabled\n )\n };\n }\n\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n /** @private attr nve-keynav-disabled is an internal API for advanced use cases only */\n get #keynavDisabled() {\n return this.host.hasAttribute('nve-keynav-disabled');\n }\n\n async hostConnected() {\n await this.host.updateComplete;\n this.#initializeTabIndex();\n this.host.addEventListener('pointerup', (e: PointerEvent) => this.#clickItem(e));\n this.host.addEventListener('keydown', (e: KeyboardEvent) => this.#focusItem(e));\n }\n\n #initializeTabIndex() {\n const { manageFocus, manageTabindex, items } = this.#config;\n if (manageFocus && manageTabindex && !this.#keynavDisabled) {\n initializeKeyListItems(items);\n }\n }\n\n #clickItem(e: PointerEvent) {\n const item = this.#getActiveItem(e, this.#config.items);\n if (item) {\n this.#setActiveItem(e, item);\n }\n }\n\n #focusItem(e: KeyboardEvent) {\n if (validKeyNavigationCode(e) && !this.#keynavDisabled) {\n const { loop, layout, dir, items } = this.#config;\n const activeItem = this.#getActiveItem(e, items);\n if (activeItem) {\n const { next, previous } = getNextKeyListItem(activeItem, Array.from(items), {\n loop,\n layout,\n dir,\n code: e.code as KeynavCode\n });\n\n if (next !== previous) {\n this.#setActiveItem(e, items[next]!, items[previous]);\n }\n }\n }\n }\n\n #getActiveItem(e: Event, items: HTMLElement[]) {\n const focusedElement = e.composedPath()[0] as HTMLElement;\n return items.find(i => i === focusedElement) ? focusedElement : null;\n }\n\n #setActiveItem(e: KeyboardEvent | PointerEvent, activeItem: HTMLElement, previousItem?: HTMLElement) {\n const { manageFocus, manageTabindex, items } = this.#config;\n if (manageFocus) {\n if (manageTabindex) {\n setActiveKeyListItem(items, activeItem);\n }\n\n focusElement(activeItem);\n e.preventDefault();\n }\n\n const detail = {\n activeItem,\n previousItem,\n code: e instanceof KeyboardEvent ? e.code : null,\n metaKey: e.ctrlKey || e.metaKey,\n items\n };\n activeItem.dispatchEvent(new CustomEvent('nve-key-change', { bubbles: true, composed: true, detail }));\n }\n}\n\ninterface KeyListConfig {\n code: KeynavCode;\n loop?: boolean;\n layout?: 'horizontal' | 'vertical' | 'both';\n dir: string | null | undefined;\n}\n\nfunction resolveArrowDirection(config: KeyListConfig): 'backward' | 'forward' | null {\n const { code, layout, dir } = config;\n const start = dir === 'rtl' ? KeynavCode.ArrowRight : KeynavCode.ArrowLeft;\n const end = dir === 'rtl' ? KeynavCode.ArrowLeft : KeynavCode.ArrowRight;\n\n if (layout !== 'horizontal') {\n if (code === KeynavCode.ArrowUp) return 'backward';\n if (code === KeynavCode.ArrowDown) return 'forward';\n }\n\n if (layout !== 'vertical') {\n if (code === start) return 'backward';\n if (code === end) return 'forward';\n }\n\n return null;\n}\n\nfunction resolveSpecialKey(code: KeynavCode): 'home' | 'end' | 'pageup' | 'pagedown' | null {\n if (code === KeynavCode.End) return 'end';\n if (code === KeynavCode.Home) return 'home';\n if (code === KeynavCode.PageUp) return 'pageup';\n if (code === KeynavCode.PageDown) return 'pagedown';\n return null;\n}\n\nfunction navigateWithLoop(current: number, step: number, options: { limit: number; loop: boolean | undefined }) {\n const { limit, loop } = options;\n const next = current + step;\n if (next >= 0 && next <= limit) return next;\n return loop ? (step < 0 ? limit : 0) : current;\n}\n\nexport function getNextKeyListItem(item: HTMLElement, items: HTMLElement[], config: KeyListConfig) {\n let next = items.indexOf(item);\n const previous = next;\n const itemCount = items.length - 1;\n const direction = resolveArrowDirection(config);\n\n switch (direction ?? resolveSpecialKey(config.code)) {\n case 'backward':\n next = navigateWithLoop(next, -1, { limit: itemCount, loop: config.loop });\n break;\n case 'forward':\n next = navigateWithLoop(next, 1, { limit: itemCount, loop: config.loop });\n break;\n case 'end':\n next = itemCount;\n break;\n case 'home':\n next = 0;\n break;\n case 'pageup':\n next = Math.max(0, next - 4);\n break;\n case 'pagedown':\n next = Math.min(itemCount, next + 4);\n break;\n case null:\n break;\n }\n\n return { next, previous };\n}\n"],"mappings":";;;AAsBA,SAAgB,IAAmF;CACjG,QAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAA4B,EAAS,CAAC;;AAGtF,IAAa,IAAb,MAAsH;CACpH,IAAIA,KAAuD;EACzD,OAAO;GACL,QAAQ;GACR,aAAa;GACb,gBAAgB;GAChB,MAAM;GACN,KAAK,KAAK,KAAK,aAAa,MAAM;GAClC,GAAG,KAAK,KAAK;GACb,OAAO,MAAM,KAAK,KAAK,KAAK,iBAAiB,MAAM,CAAC,QACjD,MAA4C,CAAC,EAAE,SACjD;GACF;;CAGH,YAAY,GAAiB;EAC3B,AADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAI/B,IAAIC,KAAkB;EACpB,OAAO,KAAK,KAAK,aAAa,sBAAsB;;CAGtD,MAAM,gBAAgB;EAIpB,AAHA,MAAM,KAAK,KAAK,gBAChB,KAAKC,IAAqB,EAC1B,KAAK,KAAK,iBAAiB,cAAc,MAAoB,KAAKC,GAAW,EAAE,CAAC,EAChF,KAAK,KAAK,iBAAiB,YAAY,MAAqB,KAAKC,GAAW,EAAE,CAAC;;CAGjF,KAAsB;EACpB,IAAM,EAAE,gBAAa,mBAAgB,aAAU,KAAKJ;EACpD,AAAI,KAAe,KAAkB,CAAC,KAAKC,MACzC,EAAuB,EAAM;;CAIjC,GAAW,GAAiB;EAC1B,IAAM,IAAO,KAAKI,GAAe,GAAG,KAAKL,GAAQ,MAAM;EACvD,AAAI,KACF,KAAKM,GAAe,GAAG,EAAK;;CAIhC,GAAW,GAAkB;EAC3B,IAAI,EAAuB,EAAE,IAAI,CAAC,KAAKL,IAAiB;GACtD,IAAM,EAAE,SAAM,WAAQ,QAAK,aAAU,KAAKD,IACpC,IAA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B,GAAc,GAAuD;CAC9G,IAAM,EAAE,UAAO,YAAS,GAClB,IAAO,IAAU;CAEvB,OADI,KAAQ,KAAK,KAAQ,IAAc,IAChC,IAAQ,IAAO,IAAI,IAAQ,IAAK;;AAGzC,SAAgB,EAAmB,GAAmB,GAAsB,GAAuB;CACjG,IAAI,IAAO,EAAM,QAAQ,EAAK,EACxB,IAAW,GACX,IAAY,EAAM,SAAS;CAGjC,QAFkB,EAAsB,EAEhC,IAAa,EAAkB,EAAO,KAAK,EAAnD;EACE,KAAK;GACH,IAAO,EAAiB,GAAM,IAAI;IAAE,OAAO;IAAW,MAAM,EAAO;IAAM,CAAC;GAC1E;EACF,KAAK;GACH,IAAO,EAAiB,GAAM,GAAG;IAAE,OAAO;IAAW,MAAM,EAAO;IAAM,CAAC;GACzE;EACF,KAAK;GACH,IAAO;GACP;EACF,KAAK;GACH,IAAO;GACP;EACF,KAAK;GACH,IAAO,KAAK,IAAI,GAAG,IAAO,EAAE;GAC5B;EACF,KAAK;GACH,IAAO,KAAK,IAAI,GAAW,IAAO,EAAE;GACpC;EACF,KAAK,MACH;;CAGJ,OAAO;EAAE;EAAM;EAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"state-active.controller.js","names":["#emulateActive","#emulateInactive","#isValidKeyEvent"],"sources":["../../../src/internal/controllers/state-active.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { attachInternals } from '../utils/a11y.js';\n\n/**\n * Adds CSS State psuedo-selector :state(active) behavior for keydown space/enter for custom elements\n * https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/states\n */\nexport function stateActive<T extends Active>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new StateActiveController(instance));\n}\n\ntype Active = ReactiveElement & { disabled: boolean; _internals?: ElementInternals };\n\nexport class StateActiveController<T extends Active> implements ReactiveController {\n #initialized = false;\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n hostConnected() {\n attachInternals(this.host);\n this.host.addEventListener('keypress', this.#emulateActive as EventListener);\n this.host.addEventListener('mousedown', this.#emulateActive as EventListener);\n this.host.addEventListener('keyup', this.#emulateInactive);\n this.host.addEventListener('blur', this.#emulateInactive);\n this.host.addEventListener('mouseup', this.#emulateInactive);\n }\n\n hostDisconnected() {\n this.host.removeEventListener('keypress', this.#emulateActive as EventListener);\n this.host.removeEventListener('mousedown', this.#emulateActive as EventListener);\n this.host.removeEventListener('keyup', this.#emulateInactive);\n this.host.removeEventListener('blur', this.#emulateInactive);\n this.host.removeEventListener('mouseup', this.#emulateInactive);\n }\n\n #emulateActive = (e: KeyboardEvent | PointerEvent) => {\n if (!this.host.disabled && this.#isValidKeyEvent(e)) {\n this.host._internals!.states.add('active');\n }\n\n if (e instanceof KeyboardEvent && e.code === 'Space' && e.target === this.host) {\n e.preventDefault(); // prevent space bar scroll with standard button behavior\n }\n };\n\n #emulateInactive = () => {\n this.host._internals!.states.delete('active');\n };\n\n #isValidKeyEvent(e: KeyboardEvent | PointerEvent) {\n return e instanceof KeyboardEvent ? e.code === 'Space' || e.code === 'Enter' : true;\n }\n}\n"],"mappings":";;AAWA,SAAgB,IAAgD;AAC9D,SAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAAsB,EAAS,CAAC;;AAKhF,IAAa,IAAb,MAAmF;CAEjF,YAAY,GAAiB;AAC3B,EADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAG/B,gBAAgB;AAMd,EALA,EAAgB,KAAK,KAAK,EAC1B,KAAK,KAAK,iBAAiB,YAAY,MAAA,EAAqC,EAC5E,KAAK,KAAK,iBAAiB,aAAa,MAAA,EAAqC,EAC7E,KAAK,KAAK,iBAAiB,SAAS,MAAA,EAAsB,EAC1D,KAAK,KAAK,iBAAiB,QAAQ,MAAA,EAAsB,EACzD,KAAK,KAAK,iBAAiB,WAAW,MAAA,EAAsB;;CAG9D,mBAAmB;AAKjB,EAJA,KAAK,KAAK,oBAAoB,YAAY,MAAA,EAAqC,EAC/E,KAAK,KAAK,oBAAoB,aAAa,MAAA,EAAqC,EAChF,KAAK,KAAK,oBAAoB,SAAS,MAAA,EAAsB,EAC7D,KAAK,KAAK,oBAAoB,QAAQ,MAAA,EAAsB,EAC5D,KAAK,KAAK,oBAAoB,WAAW,MAAA,EAAsB;;CAGjE,MAAkB,MAAoC;AAKpD,EAJI,CAAC,KAAK,KAAK,YAAY,MAAA,EAAsB,EAAE,IACjD,KAAK,KAAK,WAAY,OAAO,IAAI,SAAS,EAGxC,aAAa,iBAAiB,EAAE,SAAS,WAAW,EAAE,WAAW,KAAK,QACxE,EAAE,gBAAgB;;CAItB,WAAyB;AACvB,OAAK,KAAK,WAAY,OAAO,OAAO,SAAS;;CAG/C,GAAiB,GAAiC;AAChD,SAAO,aAAa,gBAAgB,EAAE,SAAS,WAAW,EAAE,SAAS,UAAU"}
1
+ {"version":3,"file":"state-active.controller.js","names":["#emulateActive","#emulateInactive","#isValidKeyEvent"],"sources":["../../../src/internal/controllers/state-active.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { attachInternals } from '../utils/a11y.js';\n\n/**\n * Adds CSS State psuedo-selector :state(active) behavior for keydown space/enter for custom elements\n * https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/states\n */\nexport function stateActive<T extends Active>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new StateActiveController(instance));\n}\n\ntype Active = ReactiveElement & { disabled: boolean; _internals?: ElementInternals };\n\nexport class StateActiveController<T extends Active> implements ReactiveController {\n #initialized = false;\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n hostConnected() {\n attachInternals(this.host);\n this.host.addEventListener('keypress', this.#emulateActive as EventListener);\n this.host.addEventListener('mousedown', this.#emulateActive as EventListener);\n this.host.addEventListener('keyup', this.#emulateInactive);\n this.host.addEventListener('blur', this.#emulateInactive);\n this.host.addEventListener('mouseup', this.#emulateInactive);\n }\n\n hostDisconnected() {\n this.host.removeEventListener('keypress', this.#emulateActive as EventListener);\n this.host.removeEventListener('mousedown', this.#emulateActive as EventListener);\n this.host.removeEventListener('keyup', this.#emulateInactive);\n this.host.removeEventListener('blur', this.#emulateInactive);\n this.host.removeEventListener('mouseup', this.#emulateInactive);\n }\n\n #emulateActive = (e: KeyboardEvent | PointerEvent) => {\n if (!this.host.disabled && this.#isValidKeyEvent(e)) {\n this.host._internals!.states.add('active');\n }\n\n if (e instanceof KeyboardEvent && e.code === 'Space' && e.target === this.host) {\n e.preventDefault(); // prevent space bar scroll with standard button behavior\n }\n };\n\n #emulateInactive = () => {\n this.host._internals!.states.delete('active');\n };\n\n #isValidKeyEvent(e: KeyboardEvent | PointerEvent) {\n return e instanceof KeyboardEvent ? e.code === 'Space' || e.code === 'Enter' : true;\n }\n}\n"],"mappings":";;AAWA,SAAgB,IAAgD;CAC9D,QAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAAsB,EAAS,CAAC;;AAKhF,IAAa,IAAb,MAAmF;CAEjF,YAAY,GAAiB;EAC3B,AADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAG/B,gBAAgB;EAMd,AALA,EAAgB,KAAK,KAAK,EAC1B,KAAK,KAAK,iBAAiB,YAAY,KAAKA,GAAgC,EAC5E,KAAK,KAAK,iBAAiB,aAAa,KAAKA,GAAgC,EAC7E,KAAK,KAAK,iBAAiB,SAAS,KAAKC,GAAiB,EAC1D,KAAK,KAAK,iBAAiB,QAAQ,KAAKA,GAAiB,EACzD,KAAK,KAAK,iBAAiB,WAAW,KAAKA,GAAiB;;CAG9D,mBAAmB;EAKjB,AAJA,KAAK,KAAK,oBAAoB,YAAY,KAAKD,GAAgC,EAC/E,KAAK,KAAK,oBAAoB,aAAa,KAAKA,GAAgC,EAChF,KAAK,KAAK,oBAAoB,SAAS,KAAKC,GAAiB,EAC7D,KAAK,KAAK,oBAAoB,QAAQ,KAAKA,GAAiB,EAC5D,KAAK,KAAK,oBAAoB,WAAW,KAAKA,GAAiB;;CAGjE,MAAkB,MAAoC;EAKpD,AAJI,CAAC,KAAK,KAAK,YAAY,KAAKC,GAAiB,EAAE,IACjD,KAAK,KAAK,WAAY,OAAO,IAAI,SAAS,EAGxC,aAAa,iBAAiB,EAAE,SAAS,WAAW,EAAE,WAAW,KAAK,QACxE,EAAE,gBAAgB;;CAItB,WAAyB;EACvB,KAAK,KAAK,WAAY,OAAO,OAAO,SAAS;;CAG/C,GAAiB,GAAiC;EAChD,OAAO,aAAa,gBAAgB,EAAE,SAAS,WAAW,EAAE,SAAS,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"state-current.controller.js","names":[],"sources":["../../../src/internal/controllers/state-current.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { attachInternals } from '../utils/a11y.js';\n\n/**\n * Adds current support for interactive custom elements including CSS State psuedo-selector :state(current) and aria-current.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current\n */\nexport function stateCurrent<T extends Current>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new StateCurrentController(instance));\n}\n\ntype Current = ReactiveElement & { current: 'page' | 'step'; readonly?: boolean; _internals?: ElementInternals };\n\nexport class StateCurrentController<T extends Current> implements ReactiveController {\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n hostConnected() {\n attachInternals(this.host);\n }\n\n hostUpdated() {\n if (this.host.readonly) {\n this.host._internals!.ariaCurrent = null;\n this.host._internals!.states.delete('current');\n return;\n }\n\n if (this.host._internals?.states.has('anchor') && this.host.current) {\n this.host._internals!.ariaCurrent = null;\n this.host._internals!.states.add('current');\n this.host.querySelector('a')?.setAttribute('aria-current', 'page');\n return;\n }\n\n if (this.host.current !== null && this.host.current !== undefined) {\n this.host._internals!.ariaCurrent = `${this.host.current}`;\n }\n\n if (this.host.current) {\n this.host._internals!.states.add('current');\n } else {\n this.host._internals!.states.delete('current');\n }\n }\n}\n"],"mappings":";;AAWA,SAAgB,IAAkD;AAChE,SAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAAuB,EAAS,CAAC;;AAKjF,IAAa,IAAb,MAAqF;CACnF,YAAY,GAAiB;AAC3B,EADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAG/B,gBAAgB;AACd,IAAgB,KAAK,KAAK;;CAG5B,cAAc;AACZ,MAAI,KAAK,KAAK,UAAU;AAEtB,GADA,KAAK,KAAK,WAAY,cAAc,MACpC,KAAK,KAAK,WAAY,OAAO,OAAO,UAAU;AAC9C;;AAGF,MAAI,KAAK,KAAK,YAAY,OAAO,IAAI,SAAS,IAAI,KAAK,KAAK,SAAS;AAGnE,GAFA,KAAK,KAAK,WAAY,cAAc,MACpC,KAAK,KAAK,WAAY,OAAO,IAAI,UAAU,EAC3C,KAAK,KAAK,cAAc,IAAI,EAAE,aAAa,gBAAgB,OAAO;AAClE;;AAOF,EAJI,KAAK,KAAK,YAAY,QAAQ,KAAK,KAAK,YAAY,KAAA,MACtD,KAAK,KAAK,WAAY,cAAc,GAAG,KAAK,KAAK,YAG/C,KAAK,KAAK,UACZ,KAAK,KAAK,WAAY,OAAO,IAAI,UAAU,GAE3C,KAAK,KAAK,WAAY,OAAO,OAAO,UAAU"}
1
+ {"version":3,"file":"state-current.controller.js","names":[],"sources":["../../../src/internal/controllers/state-current.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { attachInternals } from '../utils/a11y.js';\n\n/**\n * Adds current support for interactive custom elements including CSS State psuedo-selector :state(current) and aria-current.\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-current\n */\nexport function stateCurrent<T extends Current>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new StateCurrentController(instance));\n}\n\ntype Current = ReactiveElement & { current: 'page' | 'step'; readonly?: boolean; _internals?: ElementInternals };\n\nexport class StateCurrentController<T extends Current> implements ReactiveController {\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n hostConnected() {\n attachInternals(this.host);\n }\n\n hostUpdated() {\n if (this.host.readonly) {\n this.host._internals!.ariaCurrent = null;\n this.host._internals!.states.delete('current');\n return;\n }\n\n if (this.host._internals?.states.has('anchor') && this.host.current) {\n this.host._internals!.ariaCurrent = null;\n this.host._internals!.states.add('current');\n this.host.querySelector('a')?.setAttribute('aria-current', 'page');\n return;\n }\n\n if (this.host.current !== null && this.host.current !== undefined) {\n this.host._internals!.ariaCurrent = `${this.host.current}`;\n }\n\n if (this.host.current) {\n this.host._internals!.states.add('current');\n } else {\n this.host._internals!.states.delete('current');\n }\n }\n}\n"],"mappings":";;AAWA,SAAgB,IAAkD;CAChE,QAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAAuB,EAAS,CAAC;;AAKjF,IAAa,IAAb,MAAqF;CACnF,YAAY,GAAiB;EAC3B,AADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAG/B,gBAAgB;EACd,EAAgB,KAAK,KAAK;;CAG5B,cAAc;EACZ,IAAI,KAAK,KAAK,UAAU;GAEtB,AADA,KAAK,KAAK,WAAY,cAAc,MACpC,KAAK,KAAK,WAAY,OAAO,OAAO,UAAU;GAC9C;;EAGF,IAAI,KAAK,KAAK,YAAY,OAAO,IAAI,SAAS,IAAI,KAAK,KAAK,SAAS;GAGnE,AAFA,KAAK,KAAK,WAAY,cAAc,MACpC,KAAK,KAAK,WAAY,OAAO,IAAI,UAAU,EAC3C,KAAK,KAAK,cAAc,IAAI,EAAE,aAAa,gBAAgB,OAAO;GAClE;;EAOF,AAJI,KAAK,KAAK,YAAY,QAAQ,KAAK,KAAK,YAAY,KAAA,MACtD,KAAK,KAAK,WAAY,cAAc,GAAG,KAAK,KAAK,YAG/C,KAAK,KAAK,UACZ,KAAK,KAAK,WAAY,OAAO,IAAI,UAAU,GAE3C,KAAK,KAAK,WAAY,OAAO,OAAO,UAAU"}
@@ -1 +1 @@
1
- {"version":3,"file":"state-disabled.controller.js","names":[],"sources":["../../../src/internal/controllers/state-disabled.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { attachInternals } from '../utils/a11y.js';\n\n/**\n * Adds disabled support for interactive custom elements including CSS State psuedo-selector :state(disabled) and aria-disabled.\n * https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/states\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-disabled\n */\nexport function stateDisabled<T extends Disabled>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new StateDisabledController(instance));\n}\n\nexport type Disabled = ReactiveElement & { disabled: boolean; readonly?: boolean; _internals?: ElementInternals };\n\nexport class StateDisabledController<T extends Disabled> implements ReactiveController {\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n hostConnected() {\n attachInternals(this.host);\n }\n\n hostUpdated() {\n if (this.host.disabled !== null && this.host.disabled !== undefined) {\n this.host._internals!.ariaDisabled = `${this.host.disabled}`;\n } else {\n this.host._internals!.ariaDisabled = null;\n }\n\n if (this.host.disabled) {\n this.host._internals!.states.add('disabled');\n } else {\n this.host._internals!.states.delete('disabled');\n }\n\n if (this.host.readonly) {\n this.host._internals!.ariaDisabled = null;\n }\n }\n}\n"],"mappings":";;AAYA,SAAgB,IAAoD;AAClE,SAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAAwB,EAAS,CAAC;;AAKlF,IAAa,IAAb,MAAuF;CACrF,YAAY,GAAiB;AAC3B,EADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAG/B,gBAAgB;AACd,IAAgB,KAAK,KAAK;;CAG5B,cAAc;AAaZ,EAZI,KAAK,KAAK,aAAa,QAAQ,KAAK,KAAK,aAAa,KAAA,IACxD,KAAK,KAAK,WAAY,eAAe,GAAG,KAAK,KAAK,aAElD,KAAK,KAAK,WAAY,eAAe,MAGnC,KAAK,KAAK,WACZ,KAAK,KAAK,WAAY,OAAO,IAAI,WAAW,GAE5C,KAAK,KAAK,WAAY,OAAO,OAAO,WAAW,EAG7C,KAAK,KAAK,aACZ,KAAK,KAAK,WAAY,eAAe"}
1
+ {"version":3,"file":"state-disabled.controller.js","names":[],"sources":["../../../src/internal/controllers/state-disabled.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { attachInternals } from '../utils/a11y.js';\n\n/**\n * Adds disabled support for interactive custom elements including CSS State psuedo-selector :state(disabled) and aria-disabled.\n * https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/states\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-disabled\n */\nexport function stateDisabled<T extends Disabled>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new StateDisabledController(instance));\n}\n\nexport type Disabled = ReactiveElement & { disabled: boolean; readonly?: boolean; _internals?: ElementInternals };\n\nexport class StateDisabledController<T extends Disabled> implements ReactiveController {\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n hostConnected() {\n attachInternals(this.host);\n }\n\n hostUpdated() {\n if (this.host.disabled !== null && this.host.disabled !== undefined) {\n this.host._internals!.ariaDisabled = `${this.host.disabled}`;\n } else {\n this.host._internals!.ariaDisabled = null;\n }\n\n if (this.host.disabled) {\n this.host._internals!.states.add('disabled');\n } else {\n this.host._internals!.states.delete('disabled');\n }\n\n if (this.host.readonly) {\n this.host._internals!.ariaDisabled = null;\n }\n }\n}\n"],"mappings":";;AAYA,SAAgB,IAAoD;CAClE,QAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAAwB,EAAS,CAAC;;AAKlF,IAAa,IAAb,MAAuF;CACrF,YAAY,GAAiB;EAC3B,AADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAG/B,gBAAgB;EACd,EAAgB,KAAK,KAAK;;CAG5B,cAAc;EAaZ,AAZI,KAAK,KAAK,aAAa,QAAQ,KAAK,KAAK,aAAa,KAAA,IACxD,KAAK,KAAK,WAAY,eAAe,GAAG,KAAK,KAAK,aAElD,KAAK,KAAK,WAAY,eAAe,MAGnC,KAAK,KAAK,WACZ,KAAK,KAAK,WAAY,OAAO,IAAI,WAAW,GAE5C,KAAK,KAAK,WAAY,OAAO,OAAO,WAAW,EAG7C,KAAK,KAAK,aACZ,KAAK,KAAK,WAAY,eAAe"}
@@ -1 +1 @@
1
- {"version":3,"file":"state-expanded.controller.js","names":[],"sources":["../../../src/internal/controllers/state-expanded.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { attachInternals } from '../utils/a11y.js';\n\n/**\n * Adds expanded support for interactive custom elements including CSS State psuedo-selector :state(expanded) and aria-expanded.\n * https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/states\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded\n */\nexport function stateExpanded<T extends Expanded>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new StateExpandedController(instance));\n}\n\nexport type Expanded = ReactiveElement & { expanded: boolean; readonly?: boolean; _internals?: ElementInternals };\n\nexport class StateExpandedController<T extends Expanded> implements ReactiveController {\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n hostConnected() {\n attachInternals(this.host);\n }\n\n hostUpdated() {\n if (this.host.expanded !== null && this.host.expanded !== undefined) {\n this.host._internals!.ariaExpanded = `${this.host.expanded}`;\n }\n\n if (this.host.expanded) {\n this.host._internals!.states.add('expanded');\n } else {\n this.host._internals!.states.delete('expanded');\n }\n\n if (this.host.readonly) {\n this.host._internals!.ariaExpanded = null;\n this.host._internals!.states.delete('expanded');\n }\n }\n}\n"],"mappings":";;AAYA,SAAgB,IAAoD;AAClE,SAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAAwB,EAAS,CAAC;;AAKlF,IAAa,IAAb,MAAuF;CACrF,YAAY,GAAiB;AAC3B,EADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAG/B,gBAAgB;AACd,IAAgB,KAAK,KAAK;;CAG5B,cAAc;AAWZ,EAVI,KAAK,KAAK,aAAa,QAAQ,KAAK,KAAK,aAAa,KAAA,MACxD,KAAK,KAAK,WAAY,eAAe,GAAG,KAAK,KAAK,aAGhD,KAAK,KAAK,WACZ,KAAK,KAAK,WAAY,OAAO,IAAI,WAAW,GAE5C,KAAK,KAAK,WAAY,OAAO,OAAO,WAAW,EAG7C,KAAK,KAAK,aACZ,KAAK,KAAK,WAAY,eAAe,MACrC,KAAK,KAAK,WAAY,OAAO,OAAO,WAAW"}
1
+ {"version":3,"file":"state-expanded.controller.js","names":[],"sources":["../../../src/internal/controllers/state-expanded.controller.ts"],"sourcesContent":["// SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport type { ReactiveController, ReactiveElement } from 'lit';\nimport type { LegacyDecoratorTarget } from '../types/index.js';\nimport { attachInternals } from '../utils/a11y.js';\n\n/**\n * Adds expanded support for interactive custom elements including CSS State psuedo-selector :state(expanded) and aria-expanded.\n * https://developer.mozilla.org/en-US/docs/Web/API/ElementInternals/states\n * https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Attributes/aria-expanded\n */\nexport function stateExpanded<T extends Expanded>(): ClassDecorator {\n return (target: LegacyDecoratorTarget) =>\n target.addInitializer!((instance: T) => new StateExpandedController(instance));\n}\n\nexport type Expanded = ReactiveElement & { expanded: boolean; readonly?: boolean; _internals?: ElementInternals };\n\nexport class StateExpandedController<T extends Expanded> implements ReactiveController {\n constructor(private host: T) {\n this.host.addController(this);\n }\n\n hostConnected() {\n attachInternals(this.host);\n }\n\n hostUpdated() {\n if (this.host.expanded !== null && this.host.expanded !== undefined) {\n this.host._internals!.ariaExpanded = `${this.host.expanded}`;\n }\n\n if (this.host.expanded) {\n this.host._internals!.states.add('expanded');\n } else {\n this.host._internals!.states.delete('expanded');\n }\n\n if (this.host.readonly) {\n this.host._internals!.ariaExpanded = null;\n this.host._internals!.states.delete('expanded');\n }\n }\n}\n"],"mappings":";;AAYA,SAAgB,IAAoD;CAClE,QAAQ,MACN,EAAO,gBAAiB,MAAgB,IAAI,EAAwB,EAAS,CAAC;;AAKlF,IAAa,IAAb,MAAuF;CACrF,YAAY,GAAiB;EAC3B,AADkB,KAAA,OAAA,GAClB,KAAK,KAAK,cAAc,KAAK;;CAG/B,gBAAgB;EACd,EAAgB,KAAK,KAAK;;CAG5B,cAAc;EAWZ,AAVI,KAAK,KAAK,aAAa,QAAQ,KAAK,KAAK,aAAa,KAAA,MACxD,KAAK,KAAK,WAAY,eAAe,GAAG,KAAK,KAAK,aAGhD,KAAK,KAAK,WACZ,KAAK,KAAK,WAAY,OAAO,IAAI,WAAW,GAE5C,KAAK,KAAK,WAAY,OAAO,OAAO,WAAW,EAG7C,KAAK,KAAK,aACZ,KAAK,KAAK,WAAY,eAAe,MACrC,KAAK,KAAK,WAAY,OAAO,OAAO,WAAW"}