@aquera/nile-elements 2.0.22 → 2.0.23

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 (469) hide show
  1. package/README.md +72 -34
  2. package/demo/nxtgen-classes.css +24 -4
  3. package/demo/nxtgen-dark.css +30 -16
  4. package/demo/nxtgen-properties.css +9 -2
  5. package/demo/nxtgen-utilities.css +31 -4
  6. package/demo/nxtgen.css +8 -4
  7. package/demo/utilities.css +2 -2
  8. package/demo/variables.css +2 -2
  9. package/dist/index.cjs.js +1 -1
  10. package/dist/index.esm.js +1 -1
  11. package/dist/index.js +1966 -1022
  12. package/dist/nile-app-shell/index.cjs.js +1 -1
  13. package/dist/nile-app-shell/index.esm.js +1 -1
  14. package/dist/nile-app-shell/nile-app-shell.cjs.js +1 -1
  15. package/dist/nile-app-shell/nile-app-shell.cjs.js.map +1 -1
  16. package/dist/nile-app-shell/nile-app-shell.css.cjs.js +1 -1
  17. package/dist/nile-app-shell/nile-app-shell.css.cjs.js.map +1 -1
  18. package/dist/nile-app-shell/nile-app-shell.css.esm.js +72 -65
  19. package/dist/nile-app-shell/nile-app-shell.esm.js +60 -31
  20. package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js +1 -1
  21. package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js.map +1 -1
  22. package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.esm.js +1 -1
  23. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js +1 -1
  24. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js.map +1 -1
  25. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js +1 -1
  26. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js.map +1 -1
  27. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.esm.js +25 -7
  28. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.esm.js +2 -2
  29. package/dist/nile-button-filter/nile-button-filter.cjs.js +1 -1
  30. package/dist/nile-button-filter/nile-button-filter.cjs.js.map +1 -1
  31. package/dist/nile-button-filter/nile-button-filter.css.cjs.js +1 -1
  32. package/dist/nile-button-filter/nile-button-filter.css.cjs.js.map +1 -1
  33. package/dist/nile-button-filter/nile-button-filter.css.esm.js +1 -1
  34. package/dist/nile-button-filter/nile-button-filter.esm.js +2 -4
  35. package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
  36. package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
  37. package/dist/nile-calendar/nile-calendar.css.esm.js +9 -8
  38. package/dist/nile-color-picker/nile-color-picker.css.cjs.js +1 -1
  39. package/dist/nile-color-picker/nile-color-picker.css.cjs.js.map +1 -1
  40. package/dist/nile-color-picker/nile-color-picker.css.esm.js +1 -1
  41. package/dist/nile-combobox/nile-combobox.css.cjs.js +1 -1
  42. package/dist/nile-combobox/nile-combobox.css.cjs.js.map +1 -1
  43. package/dist/nile-combobox/nile-combobox.css.esm.js +1 -1
  44. package/dist/nile-command-menu-item/nile-command-menu-item.css.cjs.js +1 -1
  45. package/dist/nile-command-menu-item/nile-command-menu-item.css.cjs.js.map +1 -1
  46. package/dist/nile-command-menu-item/nile-command-menu-item.css.esm.js +5 -1
  47. package/dist/nile-context-menu/nile-context-menu.css.cjs.js +1 -1
  48. package/dist/nile-context-menu/nile-context-menu.css.cjs.js.map +1 -1
  49. package/dist/nile-context-menu/nile-context-menu.css.esm.js +2 -3
  50. package/dist/nile-dropdown-switcher/index.cjs.js +2 -0
  51. package/dist/nile-dropdown-switcher/index.cjs.js.map +1 -0
  52. package/dist/nile-dropdown-switcher/index.esm.js +1 -0
  53. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.cjs.js +2 -0
  54. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.cjs.js.map +1 -0
  55. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.cjs.js +2 -0
  56. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.cjs.js.map +1 -0
  57. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.esm.js +39 -0
  58. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.esm.js +1 -0
  59. package/dist/nile-dropdown-switcher-group/index.cjs.js +2 -0
  60. package/dist/nile-dropdown-switcher-group/index.cjs.js.map +1 -0
  61. package/dist/nile-dropdown-switcher-group/index.esm.js +1 -0
  62. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.cjs.js +2 -0
  63. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.cjs.js.map +1 -0
  64. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.cjs.js +2 -0
  65. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.cjs.js.map +1 -0
  66. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.esm.js +37 -0
  67. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.esm.js +8 -0
  68. package/dist/nile-dropdown-switcher-header/index.cjs.js +2 -0
  69. package/dist/nile-dropdown-switcher-header/index.cjs.js.map +1 -0
  70. package/dist/nile-dropdown-switcher-header/index.esm.js +1 -0
  71. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.cjs.js +2 -0
  72. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.cjs.js.map +1 -0
  73. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.cjs.js +2 -0
  74. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.cjs.js.map +1 -0
  75. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.esm.js +91 -0
  76. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.esm.js +33 -0
  77. package/dist/nile-dropdown-switcher-item/index.cjs.js +2 -0
  78. package/dist/nile-dropdown-switcher-item/index.cjs.js.map +1 -0
  79. package/dist/nile-dropdown-switcher-item/index.esm.js +1 -0
  80. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.cjs.js +2 -0
  81. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.cjs.js.map +1 -0
  82. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.cjs.js +2 -0
  83. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.cjs.js.map +1 -0
  84. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.esm.js +102 -0
  85. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.esm.js +35 -0
  86. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +1 -1
  87. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -1
  88. package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +2 -2
  89. package/dist/nile-form-group/nile-form-group.css.cjs.js +1 -1
  90. package/dist/nile-form-group/nile-form-group.css.cjs.js.map +1 -1
  91. package/dist/nile-form-group/nile-form-group.css.esm.js +3 -3
  92. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js +1 -1
  93. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js.map +1 -1
  94. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.esm.js +20 -4
  95. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js +1 -1
  96. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js.map +1 -1
  97. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.esm.js +3 -3
  98. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js +1 -1
  99. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js.map +1 -1
  100. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.esm.js +3 -3
  101. package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js +1 -1
  102. package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js.map +1 -1
  103. package/dist/nile-markdown-editor/nile-markdown-editor.css.esm.js +4 -4
  104. package/dist/nile-menu/nile-menu.css.cjs.js +1 -1
  105. package/dist/nile-menu/nile-menu.css.cjs.js.map +1 -1
  106. package/dist/nile-menu/nile-menu.css.esm.js +1 -2
  107. package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
  108. package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
  109. package/dist/nile-menu-item/nile-menu-item.css.esm.js +6 -6
  110. package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js +1 -1
  111. package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js.map +1 -1
  112. package/dist/nile-nav-tab/nile-nav-tab.css.esm.js +3 -3
  113. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js +1 -1
  114. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js.map +1 -1
  115. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.esm.js +15 -12
  116. package/dist/nile-option/nile-option.css.cjs.js +1 -1
  117. package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
  118. package/dist/nile-option/nile-option.css.esm.js +2 -2
  119. package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
  120. package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
  121. package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
  122. package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
  123. package/dist/nile-pagination/nile-pagination.css.esm.js +10 -0
  124. package/dist/nile-pagination/nile-pagination.esm.js +14 -14
  125. package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
  126. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
  127. package/dist/nile-side-bar/nile-side-bar.css.cjs.js +1 -1
  128. package/dist/nile-side-bar/nile-side-bar.css.cjs.js.map +1 -1
  129. package/dist/nile-side-bar/nile-side-bar.css.esm.js +16 -14
  130. package/dist/nile-side-bar/nile-side-bar.esm.js +2 -2
  131. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js +1 -1
  132. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js.map +1 -1
  133. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.esm.js +11 -4
  134. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
  135. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
  136. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
  137. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +8 -3
  138. package/dist/nile-side-bar-footer-item/index.cjs.js +1 -1
  139. package/dist/nile-side-bar-footer-item/index.esm.js +1 -1
  140. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
  141. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
  142. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
  143. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
  144. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +181 -25
  145. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +10 -3
  146. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js +1 -1
  147. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js.map +1 -1
  148. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.esm.js +10 -5
  149. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
  150. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
  151. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js +1 -1
  152. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js.map +1 -1
  153. package/dist/nile-side-bar-group/nile-side-bar-group.css.esm.js +52 -9
  154. package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +4 -4
  155. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js +1 -1
  156. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js.map +1 -1
  157. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.esm.js +53 -8
  158. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
  159. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
  160. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js +1 -1
  161. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js.map +1 -1
  162. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.esm.js +13 -4
  163. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +4 -4
  164. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js +1 -1
  165. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js.map +1 -1
  166. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.esm.js +9 -6
  167. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
  168. package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js +1 -1
  169. package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js.map +1 -1
  170. package/dist/nile-side-bar-header/nile-side-bar-header.css.esm.js +12 -5
  171. package/dist/nile-side-bar-header-switcher/index.cjs.js +2 -0
  172. package/dist/nile-side-bar-header-switcher/index.cjs.js.map +1 -0
  173. package/dist/nile-side-bar-header-switcher/index.esm.js +1 -0
  174. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js +2 -0
  175. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js.map +1 -0
  176. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js +2 -0
  177. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js.map +1 -0
  178. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.esm.js +83 -0
  179. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.esm.js +24 -0
  180. package/dist/nile-side-bar-search/index.cjs.js +2 -0
  181. package/dist/nile-side-bar-search/index.cjs.js.map +1 -0
  182. package/dist/nile-side-bar-search/index.esm.js +1 -0
  183. package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js +2 -0
  184. package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js.map +1 -0
  185. package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js +2 -0
  186. package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js.map +1 -0
  187. package/dist/nile-side-bar-search/nile-side-bar-search.css.esm.js +103 -0
  188. package/dist/nile-side-bar-search/nile-side-bar-search.esm.js +25 -0
  189. package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js +1 -1
  190. package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
  191. package/dist/nile-slide-toggle/nile-slide-toggle.css.esm.js +1 -1
  192. package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
  193. package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
  194. package/dist/nile-tooltip/nile-tooltip.css.esm.js +7 -5
  195. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +1 -1
  196. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -1
  197. package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +1 -1
  198. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js +1 -1
  199. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js.map +1 -1
  200. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.esm.js +2 -2
  201. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js +1 -1
  202. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js.map +1 -1
  203. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.esm.js +3 -3
  204. package/dist/src/index.d.ts +6 -0
  205. package/dist/src/index.js +6 -0
  206. package/dist/src/index.js.map +1 -1
  207. package/dist/src/nile-app-shell/nile-app-shell.css.js +70 -63
  208. package/dist/src/nile-app-shell/nile-app-shell.css.js.map +1 -1
  209. package/dist/src/nile-app-shell/nile-app-shell.d.ts +40 -7
  210. package/dist/src/nile-app-shell/nile-app-shell.js +192 -41
  211. package/dist/src/nile-app-shell/nile-app-shell.js.map +1 -1
  212. package/dist/src/nile-app-shell/nile-app-shell.test.d.ts +2 -0
  213. package/dist/src/nile-app-shell/nile-app-shell.test.js +272 -1020
  214. package/dist/src/nile-app-shell/nile-app-shell.test.js.map +1 -1
  215. package/dist/src/nile-app-shell/zz-layout.test.d.ts +15 -0
  216. package/dist/src/nile-app-shell/zz-layout.test.js +253 -0
  217. package/dist/src/nile-app-shell/zz-layout.test.js.map +1 -0
  218. package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js +1 -1
  219. package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js.map +1 -1
  220. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js +24 -6
  221. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js.map +1 -1
  222. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.d.ts +8 -2
  223. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js +56 -2
  224. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js.map +1 -1
  225. package/dist/src/nile-button-filter/nile-button-filter.css.js +1 -1
  226. package/dist/src/nile-button-filter/nile-button-filter.css.js.map +1 -1
  227. package/dist/src/nile-button-filter/nile-button-filter.js +1 -3
  228. package/dist/src/nile-button-filter/nile-button-filter.js.map +1 -1
  229. package/dist/src/nile-calendar/nile-calendar.css.js +9 -8
  230. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
  231. package/dist/src/nile-color-picker/nile-color-picker.css.js +3 -3
  232. package/dist/src/nile-color-picker/nile-color-picker.css.js.map +1 -1
  233. package/dist/src/nile-combobox/nile-combobox.css.js +1 -1
  234. package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -1
  235. package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js +5 -1
  236. package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js.map +1 -1
  237. package/dist/src/nile-context-menu/nile-context-menu.css.js +2 -4
  238. package/dist/src/nile-context-menu/nile-context-menu.css.js.map +1 -1
  239. package/dist/src/nile-dropdown-switcher/index.d.ts +1 -0
  240. package/dist/src/nile-dropdown-switcher/index.js +2 -0
  241. package/dist/src/nile-dropdown-switcher/index.js.map +1 -0
  242. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.d.ts +10 -0
  243. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js +49 -0
  244. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js.map +1 -0
  245. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.d.ts +101 -0
  246. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js +463 -0
  247. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js.map +1 -0
  248. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.d.ts +4 -0
  249. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js +506 -0
  250. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js.map +1 -0
  251. package/dist/src/nile-dropdown-switcher-group/index.d.ts +1 -0
  252. package/dist/src/nile-dropdown-switcher-group/index.js +2 -0
  253. package/dist/src/nile-dropdown-switcher-group/index.js.map +1 -0
  254. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.d.ts +12 -0
  255. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js +49 -0
  256. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js.map +1 -0
  257. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.d.ts +37 -0
  258. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js +72 -0
  259. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js.map +1 -0
  260. package/dist/src/nile-dropdown-switcher-header/index.d.ts +1 -0
  261. package/dist/src/nile-dropdown-switcher-header/index.js +2 -0
  262. package/dist/src/nile-dropdown-switcher-header/index.js.map +1 -0
  263. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.d.ts +12 -0
  264. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js +103 -0
  265. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js.map +1 -0
  266. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.d.ts +46 -0
  267. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js +105 -0
  268. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js.map +1 -0
  269. package/dist/src/nile-dropdown-switcher-item/index.d.ts +1 -0
  270. package/dist/src/nile-dropdown-switcher-item/index.js +2 -0
  271. package/dist/src/nile-dropdown-switcher-item/index.js.map +1 -0
  272. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.d.ts +10 -0
  273. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js +112 -0
  274. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js.map +1 -0
  275. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.d.ts +55 -0
  276. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js +154 -0
  277. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js.map +1 -0
  278. package/dist/src/nile-filter-chip/nile-filter-chip.css.js +2 -2
  279. package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
  280. package/dist/src/nile-form-group/nile-form-group.css.js +1 -1
  281. package/dist/src/nile-form-group/nile-form-group.css.js.map +1 -1
  282. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js +20 -4
  283. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js.map +1 -1
  284. package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js +1 -1
  285. package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js.map +1 -1
  286. package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js +3 -3
  287. package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js.map +1 -1
  288. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js +4 -4
  289. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js.map +1 -1
  290. package/dist/src/nile-menu/nile-menu.css.js +1 -2
  291. package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
  292. package/dist/src/nile-menu-item/nile-menu-item.css.js +4 -4
  293. package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
  294. package/dist/src/nile-nav-tab/nile-nav-tab.css.js +3 -3
  295. package/dist/src/nile-nav-tab/nile-nav-tab.css.js.map +1 -1
  296. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js +15 -12
  297. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js.map +1 -1
  298. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js +111 -0
  299. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js.map +1 -1
  300. package/dist/src/nile-option/nile-option.css.js +2 -2
  301. package/dist/src/nile-option/nile-option.css.js.map +1 -1
  302. package/dist/src/nile-pagination/nile-pagination.css.js +10 -0
  303. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
  304. package/dist/src/nile-pagination/nile-pagination.d.ts +2 -0
  305. package/dist/src/nile-pagination/nile-pagination.js +13 -9
  306. package/dist/src/nile-pagination/nile-pagination.js.map +1 -1
  307. package/dist/src/nile-side-bar/nile-side-bar.css.js +14 -12
  308. package/dist/src/nile-side-bar/nile-side-bar.css.js.map +1 -1
  309. package/dist/src/nile-side-bar/nile-side-bar.d.ts +17 -0
  310. package/dist/src/nile-side-bar/nile-side-bar.js +68 -12
  311. package/dist/src/nile-side-bar/nile-side-bar.js.map +1 -1
  312. package/dist/src/nile-side-bar/nile-side-bar.test.d.ts +23 -0
  313. package/dist/src/nile-side-bar/nile-side-bar.test.js +1614 -1
  314. package/dist/src/nile-side-bar/nile-side-bar.test.js.map +1 -1
  315. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js +11 -4
  316. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js.map +1 -1
  317. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +8 -3
  318. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
  319. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.d.ts +7 -5
  320. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js +7 -5
  321. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js.map +1 -1
  322. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +179 -23
  323. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
  324. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.d.ts +15 -0
  325. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js +82 -2
  326. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js.map +1 -1
  327. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.d.ts +9 -0
  328. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js +201 -0
  329. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js.map +1 -0
  330. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js +8 -3
  331. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js.map +1 -1
  332. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js +50 -7
  333. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js.map +1 -1
  334. package/dist/src/nile-side-bar-group/nile-side-bar-group.d.ts +35 -0
  335. package/dist/src/nile-side-bar-group/nile-side-bar-group.js +90 -3
  336. package/dist/src/nile-side-bar-group/nile-side-bar-group.js.map +1 -1
  337. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js +52 -7
  338. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js.map +1 -1
  339. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js +11 -2
  340. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js.map +1 -1
  341. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.d.ts +11 -2
  342. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js +21 -15
  343. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js.map +1 -1
  344. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js +7 -4
  345. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js.map +1 -1
  346. package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js +22 -17
  347. package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js.map +1 -1
  348. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.d.ts +4 -0
  349. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js +143 -0
  350. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js.map +1 -0
  351. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js +10 -3
  352. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js.map +1 -1
  353. package/dist/src/nile-side-bar-header/nile-side-bar-header.d.ts +7 -5
  354. package/dist/src/nile-side-bar-header/nile-side-bar-header.js +7 -5
  355. package/dist/src/nile-side-bar-header/nile-side-bar-header.js.map +1 -1
  356. package/dist/src/nile-side-bar-header-switcher/index.d.ts +1 -0
  357. package/dist/src/nile-side-bar-header-switcher/index.js +2 -0
  358. package/dist/src/nile-side-bar-header-switcher/index.js.map +1 -0
  359. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.d.ts +14 -0
  360. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js +97 -0
  361. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js.map +1 -0
  362. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.d.ts +38 -0
  363. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js +86 -0
  364. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js.map +1 -0
  365. package/dist/src/nile-side-bar-search/index.d.ts +1 -0
  366. package/dist/src/nile-side-bar-search/index.js +2 -0
  367. package/dist/src/nile-side-bar-search/index.js.map +1 -0
  368. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.d.ts +15 -0
  369. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js +118 -0
  370. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js.map +1 -0
  371. package/dist/src/nile-side-bar-search/nile-side-bar-search.d.ts +56 -0
  372. package/dist/src/nile-side-bar-search/nile-side-bar-search.js +150 -0
  373. package/dist/src/nile-side-bar-search/nile-side-bar-search.js.map +1 -0
  374. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.d.ts +3 -0
  375. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js +153 -0
  376. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js.map +1 -0
  377. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +1 -1
  378. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
  379. package/dist/src/nile-tooltip/nile-tooltip.css.js +7 -5
  380. package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
  381. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +1 -1
  382. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -1
  383. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +2 -2
  384. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
  385. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js +3 -3
  386. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js.map +1 -1
  387. package/dist/src/version.js +1 -1
  388. package/dist/src/version.js.map +1 -1
  389. package/dist/tsconfig.tsbuildinfo +1 -1
  390. package/dist/version.cjs.js +1 -1
  391. package/dist/version.cjs.js.map +1 -1
  392. package/dist/version.esm.js +1 -1
  393. package/package.json +1 -1
  394. package/src/index.ts +6 -0
  395. package/src/nile-app-shell/nile-app-shell.css.ts +70 -63
  396. package/src/nile-app-shell/nile-app-shell.test.ts +332 -1227
  397. package/src/nile-app-shell/nile-app-shell.ts +223 -44
  398. package/src/nile-app-shell/zz-layout.test.ts +271 -0
  399. package/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.ts +1 -5
  400. package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.ts +24 -6
  401. package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.ts +62 -2
  402. package/src/nile-button-filter/nile-button-filter.css.ts +1 -1
  403. package/src/nile-button-filter/nile-button-filter.ts +1 -3
  404. package/src/nile-calendar/nile-calendar.css.ts +9 -8
  405. package/src/nile-color-picker/nile-color-picker.css.ts +3 -3
  406. package/src/nile-combobox/nile-combobox.css.ts +1 -1
  407. package/src/nile-command-menu-item/nile-command-menu-item.css.ts +5 -1
  408. package/src/nile-context-menu/nile-context-menu.css.ts +2 -4
  409. package/src/nile-dropdown-switcher/index.ts +1 -0
  410. package/src/nile-dropdown-switcher/nile-dropdown-switcher.css.ts +51 -0
  411. package/src/nile-dropdown-switcher/nile-dropdown-switcher.test.ts +570 -0
  412. package/src/nile-dropdown-switcher/nile-dropdown-switcher.ts +502 -0
  413. package/src/nile-dropdown-switcher-group/index.ts +1 -0
  414. package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.ts +51 -0
  415. package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.ts +78 -0
  416. package/src/nile-dropdown-switcher-header/index.ts +1 -0
  417. package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.ts +105 -0
  418. package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.ts +105 -0
  419. package/src/nile-dropdown-switcher-item/index.ts +1 -0
  420. package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.ts +114 -0
  421. package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.ts +151 -0
  422. package/src/nile-filter-chip/nile-filter-chip.css.ts +2 -2
  423. package/src/nile-form-group/nile-form-group.css.ts +1 -1
  424. package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts +20 -4
  425. package/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.ts +1 -1
  426. package/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts +3 -3
  427. package/src/nile-markdown-editor/nile-markdown-editor.css.ts +4 -4
  428. package/src/nile-menu/nile-menu.css.ts +1 -2
  429. package/src/nile-menu-item/nile-menu-item.css.ts +4 -4
  430. package/src/nile-nav-tab/nile-nav-tab.css.ts +3 -3
  431. package/src/nile-nav-tab-group/nile-nav-tab-group.css.ts +15 -12
  432. package/src/nile-nav-tab-group/nile-nav-tab-group.test.ts +130 -0
  433. package/src/nile-option/nile-option.css.ts +2 -2
  434. package/src/nile-pagination/nile-pagination.css.ts +10 -0
  435. package/src/nile-pagination/nile-pagination.ts +14 -9
  436. package/src/nile-side-bar/nile-side-bar.css.ts +14 -12
  437. package/src/nile-side-bar/nile-side-bar.test.ts +1854 -2
  438. package/src/nile-side-bar/nile-side-bar.ts +72 -15
  439. package/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.ts +11 -4
  440. package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +8 -3
  441. package/src/nile-side-bar-footer/nile-side-bar-footer.ts +7 -5
  442. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +179 -23
  443. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.ts +219 -0
  444. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts +84 -2
  445. package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.ts +8 -3
  446. package/src/nile-side-bar-group/nile-side-bar-group.css.ts +50 -7
  447. package/src/nile-side-bar-group/nile-side-bar-group.ts +100 -2
  448. package/src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts +52 -7
  449. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts +11 -2
  450. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts +22 -19
  451. package/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts +7 -4
  452. package/src/nile-side-bar-header/nile-side-bar-app-shell.test.ts +22 -17
  453. package/src/nile-side-bar-header/nile-side-bar-header-surface.test.ts +175 -0
  454. package/src/nile-side-bar-header/nile-side-bar-header.css.ts +10 -3
  455. package/src/nile-side-bar-header/nile-side-bar-header.ts +7 -5
  456. package/src/nile-side-bar-header-switcher/index.ts +1 -0
  457. package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.ts +99 -0
  458. package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.ts +88 -0
  459. package/src/nile-side-bar-search/index.ts +1 -0
  460. package/src/nile-side-bar-search/nile-side-bar-search.css.ts +120 -0
  461. package/src/nile-side-bar-search/nile-side-bar-search.test.ts +175 -0
  462. package/src/nile-side-bar-search/nile-side-bar-search.ts +160 -0
  463. package/src/nile-slide-toggle/nile-slide-toggle.css.ts +1 -1
  464. package/src/nile-tooltip/nile-tooltip.css.ts +7 -5
  465. package/src/nile-virtual-select/nile-virtual-select.css.ts +1 -1
  466. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +2 -2
  467. package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +3 -3
  468. package/test-timings.json +0 -1
  469. package/vscode-html-custom-data.json +349 -22
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-dropdown-switcher.cjs.js","sources":["../../../src/nile-dropdown-switcher/nile-dropdown-switcher.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { customElement, property } from 'lit/decorators.js';\nimport type { PropertyValues } from 'lit';\nimport { styles } from './nile-dropdown-switcher.css';\nimport { styles as floatingPanelStyles } from '../nile-floating-panel/nile-floating-panel.css';\nimport NileElement from '../internal/nile-element';\nimport '../nile-floating-panel';\nimport '../nile-dropdown-switcher-header';\nimport '../nile-dropdown-switcher-group';\nimport '../nile-dropdown-switcher-item';\nimport type { NileFloatingPanel } from '../nile-floating-panel/nile-floating-panel';\nimport type { NileDropdownSwitcherItem } from '../nile-dropdown-switcher-item/nile-dropdown-switcher-item';\n\ntype Placement =\n | 'top' | 'top-start' | 'top-end'\n | 'right' | 'right-start' | 'right-end'\n | 'bottom' | 'bottom-start' | 'bottom-end'\n | 'left' | 'left-start' | 'left-end'\n | 'auto' | 'auto-start' | 'auto-end';\n\ntype RequestCloseSource = 'close-button' | 'keyboard' | 'overlay';\n\n// Light-DOM rendering means adoptedStyleSheets is a no-op, so both stylesheets are injected manually.\nlet stylesInjected = false;\nfunction ensureGlobalStyles(): void {\n if (stylesInjected) return;\n stylesInjected = true;\n const styleEl = document.createElement('style');\n styleEl.setAttribute('data-nile-component', 'nile-dropdown-switcher');\n styleEl.textContent = `${floatingPanelStyles.cssText}\\n${styles.cssText}`;\n document.head.appendChild(styleEl);\n}\n\n/**\n * A floating workspace/product switcher panel opened from an external trigger, independent of it.\n *\n * @tag nile-dropdown-switcher\n *\n * @slot header - A `nile-dropdown-switcher-header` child (optional).\n * @slot - One or more `nile-dropdown-switcher-group` (or bare `nile-dropdown-switcher-item`) children.\n *\n * @event nile-select - Emitted when an item is activated. `detail: { value, item }`.\n * @event nile-show - Forwarded from the internal floating panel.\n * @event nile-after-show - Forwarded from the internal floating panel. Fires after initial focus is set.\n * @event nile-hide - Forwarded from the internal floating panel.\n * @event nile-after-hide - Forwarded from the internal floating panel. Fires after focus is restored.\n * @event nile-request-close - Emitted when the user attempts to dismiss the panel. Cancelable. `detail: { source: 'close-button' | 'keyboard' | 'overlay' }`.\n *\n * @csspart body - The scrollable body wrapping the slotted groups/items.\n */\n@customElement('nile-dropdown-switcher')\nexport class NileDropdownSwitcher extends NileElement {\n // No `static styles` -- see `ensureGlobalStyles()` above instead.\n\n protected createRenderRoot() {\n return this;\n }\n\n /** The id of the external trigger element this panel opens from and anchors to. */\n @property({ attribute: true }) for = '';\n\n /** Whether the panel is open. Toggle this, or use `show()` / `hide()` / `toggle()`. */\n @property({ type: Boolean, attribute: true, reflect: true }) open = false;\n\n /** The currently selected item's value. */\n @property({ attribute: true, reflect: true }) value = '';\n\n /** Placement relative to the trigger, passed straight through to the internal floating panel. */\n @property({ attribute: true }) placement: Placement = 'right-start';\n\n /** Closes the panel after an item is selected. */\n @property({ type: Boolean, attribute: true }) closeOnSelect = true;\n\n /** Prevents the panel from opening. */\n @property({ type: Boolean, attribute: true, reflect: true }) disabled = false;\n\n private _panel: NileFloatingPanel | null = null;\n private _content: HTMLElement | null = null;\n private _anchorEl: HTMLElement | null = null;\n private _previouslyFocused: HTMLElement | null = null;\n private _built = false;\n private _waiters: Array<{ target: boolean; resolve: () => void }> = [];\n\n private _boundAnchorClick = this._handleAnchorClick.bind(this);\n private _boundOutsidePointer = this._handleOutsidePointer.bind(this) as (e: Event) => void;\n private _boundKeydown = this._handleKeydown.bind(this) as (e: Event) => void;\n private _boundContentClick = this._handleContentClick.bind(this) as (e: Event) => void;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.setAttribute('role', 'none');\n ensureGlobalStyles();\n if (this._built) {\n this._attachAnchor();\n if (this.open) this._addOpenListeners();\n }\n }\n\n firstUpdated(): void {\n this._buildDOM();\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this._detachAnchor();\n this._removeOpenListeners();\n }\n\n updated(changed: PropertyValues): void {\n super.updated(changed);\n if (!this._built) return;\n\n if (changed.has('for')) {\n this._attachAnchor();\n }\n\n if (changed.has('disabled') && this.disabled && this.open) {\n this.open = false;\n }\n\n if (changed.has('value')) {\n this._items().forEach(i => {\n i.selected = !!i.value && i.value === this.value;\n });\n }\n\n if (changed.has('open')) {\n this._handleOpenChange(changed.get('open') as boolean | undefined);\n }\n\n if (changed.has('placement') && this._panel) {\n this._panel.placement = this.placement;\n }\n\n if (changed.has('open')) {\n this._settleWaiters(w => w.target !== this.open);\n }\n }\n\n private _settleWaiters(match: (w: { target: boolean }) => boolean): void {\n const settled = this._waiters.filter(match);\n this._waiters = this._waiters.filter(w => !match(w));\n settled.forEach(w => w.resolve());\n }\n\n private _waitFor(target: boolean): Promise<void> {\n return new Promise(resolve => {\n this._waiters.push({ target, resolve });\n });\n }\n\n /** Shows the panel. Returns a promise that resolves after `nile-after-show`. */\n public show(): Promise<void> {\n if (this.open || this.disabled) return Promise.resolve();\n this.open = true;\n return this._waitFor(true);\n }\n\n /** Hides the panel. Returns a promise that resolves after `nile-after-hide`. */\n public hide(): Promise<void> {\n if (!this.open) return Promise.resolve();\n this.open = false;\n return this._waitFor(false);\n }\n\n /** Toggles the panel's open state. */\n public toggle(): void {\n this.open = !this.open;\n }\n\n /** All items across every group, in document order. Prefer this over `querySelector` from outside the component. */\n public get items(): NileDropdownSwitcherItem[] {\n return this._items();\n }\n\n /** Finds an item by its `value`, regardless of which group it belongs to. */\n public getItemByValue(value: string): NileDropdownSwitcherItem | undefined {\n return this._items().find(i => i.value === value);\n }\n\n // ─── DOM construction (light-DOM, mirrors nile-floating-panel's own convention) ───\n\n private _buildDOM(): void {\n const children = Array.from(this.childNodes);\n let headerNode: Node | null = null;\n const bodyNodes: Node[] = [];\n\n for (const child of children) {\n if (\n child instanceof HTMLElement &&\n child.tagName.toLowerCase() === 'nile-dropdown-switcher-header'\n ) {\n headerNode = child;\n continue;\n }\n bodyNodes.push(child);\n }\n\n while (this.firstChild) {\n this.removeChild(this.firstChild);\n }\n\n const panel = document.createElement('nile-floating-panel') as NileFloatingPanel;\n panel.for = this.for;\n panel.placement = this.placement;\n panel.trigger = 'manual';\n panel.hideOnClick = false;\n panel.closeOnEscape = false;\n panel.arrow = 'none';\n panel.panelClass = 'nile-dropdown-switcher-panel';\n // Defers Tippy's re-parenting of this content until the first real open.\n panel.disabled = true;\n\n panel.addEventListener('nile-show', () => this.emit('nile-show'));\n panel.addEventListener('nile-after-show', () => {\n this.emit('nile-after-show');\n this._focusInitialItem();\n this._settleWaiters(w => w.target);\n });\n panel.addEventListener('nile-hide', () => this.emit('nile-hide'));\n panel.addEventListener('nile-after-hide', () => {\n this.emit('nile-after-hide');\n this._settleWaiters(w => !w.target);\n });\n\n const content = document.createElement('div');\n content.className = 'nile-dropdown-switcher__content';\n content.addEventListener('click', this._boundContentClick);\n\n if (headerNode) {\n content.appendChild(headerNode);\n headerNode.addEventListener('nile-request-close', (e: Event) => {\n e.stopPropagation();\n const detail = (e as CustomEvent).detail;\n this._requestClose((detail?.source as RequestCloseSource) ?? 'close-button');\n });\n }\n\n const body = document.createElement('div');\n body.setAttribute('part', 'body');\n body.className = 'nile-dropdown-switcher__body';\n bodyNodes.forEach(n => body.appendChild(n));\n content.appendChild(body);\n\n panel.appendChild(content);\n this.appendChild(panel);\n\n this._panel = panel;\n this._content = content;\n this._built = true;\n\n this._reconcileSelection();\n this._attachAnchor();\n }\n\n private _reconcileSelection(): void {\n const items = this._items();\n const selected = items.filter(i => i.selected);\n if (selected.length > 1) {\n selected.slice(1).forEach(i => {\n i.selected = false;\n });\n }\n const current = items.find(i => i.selected);\n if (current) {\n this.value = current.value;\n } else if (this.value) {\n const match = items.find(i => i.value === this.value);\n if (match) match.selected = true;\n }\n }\n\n private _items(): NileDropdownSwitcherItem[] {\n if (!this._content) return [];\n return Array.from(\n this._content.querySelectorAll('nile-dropdown-switcher-item')\n ) as NileDropdownSwitcherItem[];\n }\n\n private _enabledItems(): NileDropdownSwitcherItem[] {\n return this._items().filter(i => !i.disabled);\n }\n\n // ─── Anchor wiring ───\n\n private _attachAnchor(): void {\n this._detachAnchor();\n if (!this.for) return;\n const el = document.getElementById(this.for);\n if (!el) return;\n this._anchorEl = el;\n el.addEventListener('nile-click', this._boundAnchorClick);\n }\n\n private _detachAnchor(): void {\n if (this._anchorEl) {\n this._anchorEl.removeEventListener('nile-click', this._boundAnchorClick);\n }\n this._anchorEl = null;\n }\n\n private _handleAnchorClick(): void {\n if (this.disabled) return;\n this.toggle();\n }\n\n // ─── Open/close ───\n\n private _handleOpenChange(prevOpen: boolean | undefined): void {\n if (!this._panel || this.open === prevOpen) return;\n\n if (this.open) {\n if (this.disabled) {\n this.open = false;\n return;\n }\n this._previouslyFocused = this._getDeepActiveElement();\n if (this._panel.disabled) {\n // Settle the disabled->enabled update before opening, to avoid racing Tippy's attach/show.\n this._panel.disabled = false;\n const panel = this._panel;\n panel.updateComplete.then(() => {\n if (!this.disabled && this._panel === panel && this.open) {\n panel.open = true;\n }\n });\n } else {\n this._panel.open = true;\n }\n this._addOpenListeners();\n } else {\n this._removeOpenListeners();\n const panelWasOpen = this._panel.open;\n this._panel.open = false;\n this._restoreFocus();\n if (!panelWasOpen) this._settleWaiters(w => !w.target);\n }\n }\n\n private _requestClose(source: RequestCloseSource): void {\n const event = this.emit('nile-request-close', { source }, undefined, undefined, true);\n if (event.defaultPrevented) return;\n this.open = false;\n }\n\n private _addOpenListeners(): void {\n document.addEventListener('pointerdown', this._boundOutsidePointer, true);\n document.addEventListener('keydown', this._boundKeydown, true);\n }\n\n private _removeOpenListeners(): void {\n document.removeEventListener('pointerdown', this._boundOutsidePointer, true);\n document.removeEventListener('keydown', this._boundKeydown, true);\n }\n\n private _handleOutsidePointer(e: PointerEvent): void {\n if (!this.open) return;\n const path = e.composedPath();\n if (this._anchorEl && path.includes(this._anchorEl)) return;\n if (this._content && path.includes(this._content)) return;\n this._requestClose('overlay');\n }\n\n // ─── Selection ───\n\n private _handleContentClick(e: MouseEvent): void {\n const target = e.target as HTMLElement;\n const item = target.closest('nile-dropdown-switcher-item') as NileDropdownSwitcherItem | null;\n if (!item || item.disabled) return;\n this._selectItem(item);\n }\n\n private _selectItem(item: NileDropdownSwitcherItem): void {\n if (this.disabled) return;\n this._items().forEach(i => {\n i.selected = i === item;\n });\n this.value = item.value;\n this.emit('nile-select', { value: item.value, item });\n if (this.closeOnSelect) {\n this.open = false;\n }\n }\n\n // ─── Keyboard navigation ───\n\n private _handleKeydown(e: KeyboardEvent): void {\n if (!this.open) return;\n const path = e.composedPath();\n const inside =\n (!!this._content && path.includes(this._content)) || (!!this._anchorEl && path.includes(this._anchorEl));\n switch (e.key) {\n case 'Escape':\n if (inside) e.preventDefault();\n this._requestClose('keyboard');\n return;\n case 'Tab':\n this.open = false;\n return;\n }\n if (!inside) return;\n switch (e.key) {\n case 'ArrowDown':\n e.preventDefault();\n this._moveFocus(1);\n return;\n case 'ArrowUp':\n e.preventDefault();\n this._moveFocus(-1);\n return;\n case 'Home':\n e.preventDefault();\n this._focusAt(0);\n return;\n case 'End':\n e.preventDefault();\n this._focusAt(-1);\n return;\n case 'Enter':\n case ' ': {\n const active = this._activeItem();\n if (active && !active.disabled) {\n e.preventDefault();\n this._selectItem(active);\n }\n return;\n }\n default:\n return;\n }\n }\n\n private _activeItem(): NileDropdownSwitcherItem | null {\n const active = document.activeElement;\n return this._items().find(i => i === active) ?? null;\n }\n\n private _moveFocus(delta: number): void {\n const enabled = this._enabledItems();\n if (enabled.length === 0) return;\n const current = this._activeItem();\n const idx = current ? enabled.indexOf(current) : -1;\n const next = idx === -1 ? (delta > 0 ? 0 : enabled.length - 1) : (((idx + delta) % enabled.length) + enabled.length) % enabled.length;\n this._focusItem(enabled[next]);\n }\n\n private _focusAt(index: number): void {\n const enabled = this._enabledItems();\n if (enabled.length === 0) return;\n const resolved = index === -1 ? enabled.length - 1 : index;\n this._focusItem(enabled[resolved]);\n }\n\n private _focusItem(item: NileDropdownSwitcherItem): void {\n this._items().forEach(i => {\n i.setAttribute('tabindex', i === item ? '0' : '-1');\n });\n item.focus();\n }\n\n private _focusInitialItem(): void {\n const enabled = this._enabledItems();\n if (enabled.length === 0) return;\n const selected = enabled.find(i => i.selected);\n this._focusItem(selected ?? enabled[0]);\n }\n\n // ─── Focus restoration ───\n\n /** Drills into nested shadow roots to find the real focused element, since `document.activeElement` retargets to the host. */\n private _getDeepActiveElement(): HTMLElement | null {\n let active = document.activeElement as (HTMLElement & { shadowRoot?: ShadowRoot }) | null;\n while (active?.shadowRoot?.activeElement) {\n active = active.shadowRoot.activeElement as HTMLElement & { shadowRoot?: ShadowRoot };\n }\n return active;\n }\n\n private _restoreFocus(): void {\n const active = document.activeElement as Node | null;\n const focusWasInside = !!(active && this._content && this._content.contains(active));\n const toFocus = this._previouslyFocused;\n this._previouslyFocused = null;\n if (focusWasInside && toFocus && typeof toFocus.focus === 'function') {\n toFocus.focus();\n }\n }\n}\n\nexport default NileDropdownSwitcher;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-dropdown-switcher': NileDropdownSwitcher;\n }\n}\n"],"names":["stylesInjected","_export","NileDropdownSwitcher","r","this","open","value","placement","closeOnSelect","disabled","_panel","_content","_anchorEl","_previouslyFocused","_built","_waiters","_boundAnchorClick","_handleAnchorClick","bind","_boundOutsidePointer","_handleOutsidePointer","_boundKeydown","_handleKeydown","_boundContentClick","_handleContentClick","_this","_inherits","_o","_createClass","key","createRenderRoot","connectedCallback","super","setAttribute","styleEl","document","createElement","textContent","floatingPanelStyles","cssText","styles","head","appendChild","ensureGlobalStyles","_attachAnchor","_addOpenListeners","firstUpdated","_buildDOM","disconnectedCallback","_detachAnchor","_removeOpenListeners","updated","changed","has","_items","forEach","i","selected","_handleOpenChange","get","_settleWaiters","w","target","match","settled","filter","resolve","_waitFor","Promise","push","show","hide","toggle","getItemByValue","find","children","Array","from","childNodes","headerNode","bodyNodes","_i","_t","child","HTMLElement","tagName","toLowerCase","firstChild","removeChild","panel","trigger","hideOnClick","closeOnEscape","arrow","panelClass","addEventListener","emit","_focusInitialItem","content","className","e","stopPropagation","detail","_requestClose","source","body","n","_reconcileSelection","items","length","slice","current","querySelectorAll","_enabledItems","for","el","getElementById","removeEventListener","prevOpen","_getDeepActiveElement","updateComplete","then","panelWasOpen","_restoreFocus","undefined","defaultPrevented","path","composedPath","includes","item","closest","_selectItem","inside","preventDefault","_moveFocus","_focusAt","active","_activeItem","_this$_items$find","activeElement","delta","enabled","idx","indexOf","next","_focusItem","index","resolved","focus","_t4","shadowRoot","focusWasInside","contains","toFocus","__decorate","NileElement","property","attribute","prototype","type","Boolean","reflect","customElement"],"mappings":"iyKA6BIA,CAAiB,CAAA,CAAA,CAAA,CAAAC,OAAA,KA4BRC,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,qEAQ0BC,EAAAA,KAAAA,OAAM,CAAA,EAAA,CAGwBA,KAAAA,CAAIC,IAAG,CAAA,CAAA,CAAA,CAGtBD,KAAAA,CAAKE,KAAAA,CAAG,EAGvBF,CAAAA,KAAAA,CAASG,SAAc,CAAA,aAAA,CAGRH,KAAAA,CAAaI,aAAG,CAAA,CAAA,CAAA,CAGDJ,KAAAA,CAAQK,QAAAA,CAAAA,CAAG,CAEhEL,CAAAA,KA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AAAA,CAAAA,CAAS,KAAqB/J,CAAA4J,CAAAA,SAAAA,CAAA,MAAA,CAAA,IAAA,EAAA,CAAA,CAG5BJ,CAAA,CAAA,CAA7CE,CAAS,CAAA,CAAEC,WAAW,CAAMI,CAAAA,OAAAA,CAAAA,CAAS,CAAmB/J,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA4J,UAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CAG1BJ,CAAA,CAAA,CAA9BE,EAAS,CAAEC,SAAAA,CAAAA,CAAW,CAA6C3J,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA4J,SAAA,CAAA,WAAA,CAAA,IAAA,EAGtBJ,CAAAA,CAAAA,CAAAA,CAAA,CAA7CE,CAAS,CAAA,CAAEG,IAAMC,CAAAA,OAAAA,CAASH,WAAW,CAA6B3J,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA4J,SAAA,CAAA,eAAA,CAAA,IAAA,IAGNJ,CAAA,CAAA,CAA5DE,CAAS,CAAA,CAAEG,IAAMC,CAAAA,OAAAA,CAASH,SAAW,CAAA,CAAA,CAAA,CAAMI,SAAS,CAAyB/J,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA4J,SAAA,CAAA,UAAA,CAAA,IAAA,gBAvBnE5J,CAAoBwJ,CAAAA,CAAAA,CAAA,CADhCQ,CAAAA,CAAc,2BACFhK"}
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var n,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){n=_lit.css;}],execute:function execute(){_export("s",r=n(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n nile-dropdown-switcher {\n display: contents;\n }\n\n .nile-dropdown-switcher-panel .tippy-box[data-theme~='floating-panel'] {\n background: transparent;\n border: var(--nile-border-width-0, var(--ng-border-width-0));\n border-radius: var(--nile-radius-none, var(--ng-radius-none));\n box-shadow: none;\n }\n\n .nile-dropdown-switcher-panel .tippy-box[data-theme~='floating-panel'] .nile-floating-panel__body {\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n gap: var(--nile-spacing-none, var(--ng-spacing-none));\n min-width: 0;\n }\n\n .nile-dropdown-switcher__content {\n display: flex;\n flex-direction: column;\n width: 278px;\n max-width: 278px;\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n /* Inset box-shadow, not a real border -- keeps the 1px stroke from consuming layout width. */\n border-radius: var(--nile-radius-lg, var(--ng-radius-xl));\n box-shadow:\n inset 0 0 0 1px var(--nile-colors-border-surface, var(--ng-colors-border-primary)),\n var(--nile-box-shadow-2, var(--ng-shadow-lg));\n overflow: hidden;\n }\n\n .nile-dropdown-switcher__body {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding: var(--nile-spacing-lg, var(--ng-spacing-lg));\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-dropdown-switcher.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-dropdown-switcher.css.cjs.js","sources":["../../../src/nile-dropdown-switcher/nile-dropdown-switcher.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/** DropdownSwitcher CSS -- light-DOM, manually injected; see `ensureGlobalStyles()` in the .ts file. */\nexport const styles = css`\n nile-dropdown-switcher {\n display: contents;\n }\n\n .nile-dropdown-switcher-panel .tippy-box[data-theme~='floating-panel'] {\n background: transparent;\n border: var(--nile-border-width-0, var(--ng-border-width-0));\n border-radius: var(--nile-radius-none, var(--ng-radius-none));\n box-shadow: none;\n }\n\n .nile-dropdown-switcher-panel .tippy-box[data-theme~='floating-panel'] .nile-floating-panel__body {\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n gap: var(--nile-spacing-none, var(--ng-spacing-none));\n min-width: 0;\n }\n\n .nile-dropdown-switcher__content {\n display: flex;\n flex-direction: column;\n width: 278px;\n max-width: 278px;\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n /* Inset box-shadow, not a real border -- keeps the 1px stroke from consuming layout width. */\n border-radius: var(--nile-radius-lg, var(--ng-radius-xl));\n box-shadow:\n inset 0 0 0 1px var(--nile-colors-border-surface, var(--ng-colors-border-primary)),\n var(--nile-box-shadow-2, var(--ng-shadow-lg));\n overflow: hidden;\n }\n\n .nile-dropdown-switcher__body {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding: var(--nile-spacing-lg, var(--ng-spacing-lg));\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAUaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,39 @@
1
+ import{css as n}from"lit";const r=n`
2
+ nile-dropdown-switcher {
3
+ display: contents;
4
+ }
5
+
6
+ .nile-dropdown-switcher-panel .tippy-box[data-theme~='floating-panel'] {
7
+ background: transparent;
8
+ border: var(--nile-border-width-0, var(--ng-border-width-0));
9
+ border-radius: var(--nile-radius-none, var(--ng-radius-none));
10
+ box-shadow: none;
11
+ }
12
+
13
+ .nile-dropdown-switcher-panel .tippy-box[data-theme~='floating-panel'] .nile-floating-panel__body {
14
+ padding: var(--nile-spacing-none, var(--ng-spacing-none));
15
+ gap: var(--nile-spacing-none, var(--ng-spacing-none));
16
+ min-width: 0;
17
+ }
18
+
19
+ .nile-dropdown-switcher__content {
20
+ display: flex;
21
+ flex-direction: column;
22
+ width: 278px;
23
+ max-width: 278px;
24
+ background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
25
+ /* Inset box-shadow, not a real border -- keeps the 1px stroke from consuming layout width. */
26
+ border-radius: var(--nile-radius-lg, var(--ng-radius-xl));
27
+ box-shadow:
28
+ inset 0 0 0 1px var(--nile-colors-border-surface, var(--ng-colors-border-primary)),
29
+ var(--nile-box-shadow-2, var(--ng-shadow-lg));
30
+ overflow: hidden;
31
+ }
32
+
33
+ .nile-dropdown-switcher__body {
34
+ display: flex;
35
+ flex-direction: column;
36
+ gap: var(--nile-spacing-lg, var(--ng-spacing-lg));
37
+ padding: var(--nile-spacing-lg, var(--ng-spacing-lg));
38
+ }
39
+ `;export{r as s};
@@ -0,0 +1 @@
1
+ import{__decorate as t}from"tslib";import{property as i,customElement as s}from"lit/decorators.js";import{s as e}from"./nile-dropdown-switcher.css.esm.js";import{s as n}from"../nile-floating-panel/nile-floating-panel.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";import"../nile-floating-panel/nile-floating-panel.esm.js";import"../nile-dropdown-switcher-header/nile-dropdown-switcher-header.esm.js";import"../nile-dropdown-switcher-group/nile-dropdown-switcher-group.esm.js";import"../nile-dropdown-switcher-item/nile-dropdown-switcher-item.esm.js";import"lit";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";import"../tippy.esm-57628c2b.esm.js";import"../nile-lite-tooltip/utils.esm.js";import"../utilities/visibility-manager.esm.js";import"../nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.esm.js";import"../internal/slot.esm.js";import"../nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.esm.js";import"lit/directives/class-map.js";import"../nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.esm.js";import"../internal/watch.esm.js";let h=!1;let r=class extends o{constructor(){super(...arguments),this.for="",this.open=!1,this.value="",this.placement="right-start",this.closeOnSelect=!0,this.disabled=!1,this._panel=null,this._content=null,this._anchorEl=null,this._previouslyFocused=null,this._built=!1,this._waiters=[],this._boundAnchorClick=this._handleAnchorClick.bind(this),this._boundOutsidePointer=this._handleOutsidePointer.bind(this),this._boundKeydown=this._handleKeydown.bind(this),this._boundContentClick=this._handleContentClick.bind(this)}createRenderRoot(){return this}connectedCallback(){super.connectedCallback(),this.setAttribute("role","none"),function(){if(h)return;h=!0;const t=document.createElement("style");t.setAttribute("data-nile-component","nile-dropdown-switcher"),t.textContent=`${n.cssText}\n${e.cssText}`,document.head.appendChild(t)}(),this._built&&(this._attachAnchor(),this.open&&this._addOpenListeners())}firstUpdated(){this._buildDOM()}disconnectedCallback(){super.disconnectedCallback(),this._detachAnchor(),this._removeOpenListeners()}updated(t){super.updated(t),this._built&&(t.has("for")&&this._attachAnchor(),t.has("disabled")&&this.disabled&&this.open&&(this.open=!1),t.has("value")&&this._items().forEach((t=>{t.selected=!!t.value&&t.value===this.value})),t.has("open")&&this._handleOpenChange(t.get("open")),t.has("placement")&&this._panel&&(this._panel.placement=this.placement),t.has("open")&&this._settleWaiters((t=>t.target!==this.open)))}_settleWaiters(t){const i=this._waiters.filter(t);this._waiters=this._waiters.filter((i=>!t(i))),i.forEach((t=>t.resolve()))}_waitFor(t){return new Promise((i=>{this._waiters.push({target:t,resolve:i})}))}show(){return this.open||this.disabled?Promise.resolve():(this.open=!0,this._waitFor(!0))}hide(){return this.open?(this.open=!1,this._waitFor(!1)):Promise.resolve()}toggle(){this.open=!this.open}get items(){return this._items()}getItemByValue(t){return this._items().find((i=>i.value===t))}_buildDOM(){const t=Array.from(this.childNodes);let i=null;const s=[];for(const e of t)e instanceof HTMLElement&&"nile-dropdown-switcher-header"===e.tagName.toLowerCase()?i=e:s.push(e);for(;this.firstChild;)this.removeChild(this.firstChild);const e=document.createElement("nile-floating-panel");e.for=this.for,e.placement=this.placement,e.trigger="manual",e.hideOnClick=!1,e.closeOnEscape=!1,e.arrow="none",e.panelClass="nile-dropdown-switcher-panel",e.disabled=!0,e.addEventListener("nile-show",(()=>this.emit("nile-show"))),e.addEventListener("nile-after-show",(()=>{this.emit("nile-after-show"),this._focusInitialItem(),this._settleWaiters((t=>t.target))})),e.addEventListener("nile-hide",(()=>this.emit("nile-hide"))),e.addEventListener("nile-after-hide",(()=>{this.emit("nile-after-hide"),this._settleWaiters((t=>!t.target))}));const n=document.createElement("div");n.className="nile-dropdown-switcher__content",n.addEventListener("click",this._boundContentClick),i&&(n.appendChild(i),i.addEventListener("nile-request-close",(t=>{t.stopPropagation();const i=t.detail;this._requestClose(i?.source??"close-button")})));const o=document.createElement("div");o.setAttribute("part","body"),o.className="nile-dropdown-switcher__body",s.forEach((t=>o.appendChild(t))),n.appendChild(o),e.appendChild(n),this.appendChild(e),this._panel=e,this._content=n,this._built=!0,this._reconcileSelection(),this._attachAnchor()}_reconcileSelection(){const t=this._items(),i=t.filter((t=>t.selected));i.length>1&&i.slice(1).forEach((t=>{t.selected=!1}));const s=t.find((t=>t.selected));if(s)this.value=s.value;else if(this.value){const i=t.find((t=>t.value===this.value));i&&(i.selected=!0)}}_items(){return this._content?Array.from(this._content.querySelectorAll("nile-dropdown-switcher-item")):[]}_enabledItems(){return this._items().filter((t=>!t.disabled))}_attachAnchor(){if(this._detachAnchor(),!this.for)return;const t=document.getElementById(this.for);t&&(this._anchorEl=t,t.addEventListener("nile-click",this._boundAnchorClick))}_detachAnchor(){this._anchorEl&&this._anchorEl.removeEventListener("nile-click",this._boundAnchorClick),this._anchorEl=null}_handleAnchorClick(){this.disabled||this.toggle()}_handleOpenChange(t){if(this._panel&&this.open!==t)if(this.open){if(this.disabled)return void(this.open=!1);if(this._previouslyFocused=this._getDeepActiveElement(),this._panel.disabled){this._panel.disabled=!1;const t=this._panel;t.updateComplete.then((()=>{!this.disabled&&this._panel===t&&this.open&&(t.open=!0)}))}else this._panel.open=!0;this._addOpenListeners()}else{this._removeOpenListeners();const t=this._panel.open;this._panel.open=!1,this._restoreFocus(),t||this._settleWaiters((t=>!t.target))}}_requestClose(t){this.emit("nile-request-close",{source:t},void 0,void 0,!0).defaultPrevented||(this.open=!1)}_addOpenListeners(){document.addEventListener("pointerdown",this._boundOutsidePointer,!0),document.addEventListener("keydown",this._boundKeydown,!0)}_removeOpenListeners(){document.removeEventListener("pointerdown",this._boundOutsidePointer,!0),document.removeEventListener("keydown",this._boundKeydown,!0)}_handleOutsidePointer(t){if(!this.open)return;const i=t.composedPath();this._anchorEl&&i.includes(this._anchorEl)||this._content&&i.includes(this._content)||this._requestClose("overlay")}_handleContentClick(t){const i=t.target.closest("nile-dropdown-switcher-item");i&&!i.disabled&&this._selectItem(i)}_selectItem(t){this.disabled||(this._items().forEach((i=>{i.selected=i===t})),this.value=t.value,this.emit("nile-select",{value:t.value,item:t}),this.closeOnSelect&&(this.open=!1))}_handleKeydown(t){if(!this.open)return;const i=t.composedPath(),s=!!this._content&&i.includes(this._content)||!!this._anchorEl&&i.includes(this._anchorEl);switch(t.key){case"Escape":return s&&t.preventDefault(),void this._requestClose("keyboard");case"Tab":return void(this.open=!1)}if(s)switch(t.key){case"ArrowDown":return t.preventDefault(),void this._moveFocus(1);case"ArrowUp":return t.preventDefault(),void this._moveFocus(-1);case"Home":return t.preventDefault(),void this._focusAt(0);case"End":return t.preventDefault(),void this._focusAt(-1);case"Enter":case" ":{const i=this._activeItem();return void(i&&!i.disabled&&(t.preventDefault(),this._selectItem(i)))}default:return}}_activeItem(){const t=document.activeElement;return this._items().find((i=>i===t))??null}_moveFocus(t){const i=this._enabledItems();if(0===i.length)return;const s=this._activeItem(),e=s?i.indexOf(s):-1,n=-1===e?t>0?0:i.length-1:((e+t)%i.length+i.length)%i.length;this._focusItem(i[n])}_focusAt(t){const i=this._enabledItems();if(0===i.length)return;const s=-1===t?i.length-1:t;this._focusItem(i[s])}_focusItem(t){this._items().forEach((i=>{i.setAttribute("tabindex",i===t?"0":"-1")})),t.focus()}_focusInitialItem(){const t=this._enabledItems();if(0===t.length)return;const i=t.find((t=>t.selected));this._focusItem(i??t[0])}_getDeepActiveElement(){let t=document.activeElement;for(;t?.shadowRoot?.activeElement;)t=t.shadowRoot.activeElement;return t}_restoreFocus(){const t=document.activeElement,i=!!(t&&this._content&&this._content.contains(t)),s=this._previouslyFocused;this._previouslyFocused=null,i&&s&&"function"==typeof s.focus&&s.focus()}};t([i({attribute:!0})],r.prototype,"for",void 0),t([i({type:Boolean,attribute:!0,reflect:!0})],r.prototype,"open",void 0),t([i({attribute:!0,reflect:!0})],r.prototype,"value",void 0),t([i({attribute:!0})],r.prototype,"placement",void 0),t([i({type:Boolean,attribute:!0})],r.prototype,"closeOnSelect",void 0),t([i({type:Boolean,attribute:!0,reflect:!0})],r.prototype,"disabled",void 0),r=t([s("nile-dropdown-switcher")],r);export{r as N};
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-dropdown-switcher-group.cjs.js","tslib","lit","lit/decorators.js","./nile-dropdown-switcher-group.css.cjs.js","../internal/slot.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileDropdownSwitcherGroupCjsJs){_export("NileDropdownSwitcherGroup",_nileDropdownSwitcherGroupCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileDropdownSwitcherGroupCssCjsJs){},function(_internalSlotCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export{N as NileDropdownSwitcherGroup}from"./nile-dropdown-switcher-group.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-dropdown-switcher-group.css.esm.js";import"../internal/slot.esm.js";import"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";
@@ -0,0 +1,2 @@
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-dropdown-switcher-group.css.cjs.js","../internal/slot.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var s,t,e,i,l,r,a,_templateObject,_templateObject2,o;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){s=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;i=_litDecoratorsJs.customElement;},function(_nileDropdownSwitcherGroupCssCjsJs){l=_nileDropdownSwitcherGroupCssCjsJs.s;},function(_internalSlotCjsJs){r=_internalSlotCjsJs.H;},function(_internalNileElementCjsJs){a=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",o=/*#__PURE__*/function(_a){function o(){var _this;_classCallCheck(this,o);_this=_callSuper(this,o,arguments),_this.hasSlotController=new r(_assertThisInitialized(_this),"label"),_this.label="";return _this;}_inherits(o,_a);return _createClass(o,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(o,"connectedCallback",this,3)([]),this.setAttribute("role","group");}},{key:"updated",value:function updated(){this.label.length>0||this.hasSlotController.test("label")?this.setAttribute("aria-label",this._labelSlotText()||this.label):this.removeAttribute("aria-label");}},{key:"_labelSlotText",value:function _labelSlotText(){var _this$querySelector$t,_this$querySelector;return(_this$querySelector$t=(_this$querySelector=this.querySelector('[slot="label"]'))===null||_this$querySelector===void 0||(_this$querySelector=_this$querySelector.textContent)===null||_this$querySelector===void 0?void 0:_this$querySelector.trim())!==null&&_this$querySelector$t!==void 0?_this$querySelector$t:"";}},{key:"render",value:function render(){var s=this.label.length>0||this.hasSlotController.test("label");return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"base\" class=\"group\">\n ","\n <slot part=\"items\" class=\"group__items\"></slot>\n </div>\n "])),s?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<div part=\"label\" class=\"group__label\">\n <slot name=\"label\">","</slot>\n </div>"])),this.label):"");}}]);}(a));o.styles=l,s([e({attribute:!0})],o.prototype,"label",void 0),_export("N",o=s([i("nile-dropdown-switcher-group")],o));}};});
2
+ //# sourceMappingURL=nile-dropdown-switcher-group.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-dropdown-switcher-group.cjs.js","sources":["../../../src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-dropdown-switcher-group.css';\nimport { HasSlotController } from '../internal/slot';\nimport NileElement from '../internal/nile-element';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * Groups related `nile-dropdown-switcher-item` rows under an optional heading inside a\n * `nile-dropdown-switcher`. The label is optional; multiple groups are supported.\n *\n * @tag nile-dropdown-switcher-group\n *\n * @slot - The group's items (`nile-dropdown-switcher-item`).\n * @slot label - Rich override of the `label` property.\n *\n * @csspart base - The component's base wrapper.\n * @csspart label - The group label.\n * @csspart items - The wrapper around the slotted items.\n */\n@customElement('nile-dropdown-switcher-group')\nexport class NileDropdownSwitcherGroup extends NileElement {\n static styles: CSSResultGroup = styles;\n\n private readonly hasSlotController = new HasSlotController(this, 'label');\n\n /** The text label shown above the group's items. Optional — omit for an unlabeled group. */\n @property({ attribute: true }) label = '';\n\n connectedCallback(): void {\n super.connectedCallback();\n this.setAttribute('role', 'group');\n }\n\n updated(): void {\n const hasLabel = this.label.length > 0 || this.hasSlotController.test('label');\n if (hasLabel) {\n this.setAttribute('aria-label', this._labelSlotText() || this.label);\n } else {\n this.removeAttribute('aria-label');\n }\n }\n\n private _labelSlotText(): string {\n return this.querySelector('[slot=\"label\"]')?.textContent?.trim() ?? '';\n }\n\n render() {\n const hasLabel = this.label.length > 0 || this.hasSlotController.test('label');\n\n return html`\n <div part=\"base\" class=\"group\">\n ${hasLabel\n ? html`<div part=\"label\" class=\"group__label\">\n <slot name=\"label\">${this.label}</slot>\n </div>`\n : ''}\n <slot part=\"items\" class=\"group__items\"></slot>\n </div>\n `;\n }\n}\n\nexport default NileDropdownSwitcherGroup;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-dropdown-switcher-group': NileDropdownSwitcherGroup;\n }\n}\n"],"names":["NileDropdownSwitcherGroup","o","this","hasSlotController","HasSlotController","label","_this","_inherits","_a","_createClass","key","value","connectedCallback","super","setAttribute","updated","length","test","_labelSlotText","removeAttribute","_this$querySelector$t","_this$querySelector","querySelector","textContent","trim","render","hasLabel","html","_templateObject","_taggedTemplateLiteral","_templateObject2","NileElement","styles","__decorate","property","attribute","prototype","customElement"],"mappings":"6kIA6BaA,CAAAA,uBAAAA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ELH,CAAAA,CACEC,CAAI,CAAAG,gBAAA,GAAAA,gBAAA,CAAAD,sBAAA,sHACmB3B,IAAKG,CAAAA,KAAAA,EAE5B,EAAA,EAIT,CAAA,MAvC4C0B,CAAxC,GACE/B,EAAMgC,MAAmBA,CAAAA,CAAAA,CAKDC,EAAA,CAA9BC,CAAAA,CAAS,CAAEC,SAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmBnC,CAAAoC,CAAAA,SAAAA,CAAA,YAAA,EAN/BpC,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAyBiC,EAAA,CADrCI,CAAAA,CAAc,iCACFrC"}
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var i,_templateObject,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){i=_lit.css;}],execute:function execute(){_export("s",n=i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n box-sizing: border-box;\n display: block;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n .group {\n display: flex;\n flex-direction: column;\n }\n\n .group__label {\n padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-sm, var(--ng-spacing-sm));\n margin-bottom: var(--nile-spacing-lg, var(--ng-spacing-lg));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-placeholder));\n }\n\n .group__items {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-sm, var(--ng-spacing-sm));\n }\n\n :host(:not(:last-child)) .group {\n margin-bottom: var(--nile-spacing-lg, var(--ng-spacing-lg));\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-dropdown-switcher-group.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-dropdown-switcher-group.css.cjs.js","sources":["../../../src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * DropdownSwitcherGroup CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n display: block;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n .group {\n display: flex;\n flex-direction: column;\n }\n\n .group__label {\n padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-sm, var(--ng-spacing-sm));\n margin-bottom: var(--nile-spacing-lg, var(--ng-spacing-lg));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-placeholder));\n }\n\n .group__items {\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-sm, var(--ng-spacing-sm));\n }\n\n :host(:not(:last-child)) .group {\n margin-bottom: var(--nile-spacing-lg, var(--ng-spacing-lg));\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,37 @@
1
+ import{css as i}from"lit";const n=i`
2
+ :host {
3
+ box-sizing: border-box;
4
+ display: block;
5
+ }
6
+
7
+ :host *,
8
+ :host *::before,
9
+ :host *::after {
10
+ box-sizing: inherit;
11
+ }
12
+
13
+ .group {
14
+ display: flex;
15
+ flex-direction: column;
16
+ }
17
+
18
+ .group__label {
19
+ padding: var(--nile-spacing-none, var(--ng-spacing-none)) var(--nile-spacing-sm, var(--ng-spacing-sm));
20
+ margin-bottom: var(--nile-spacing-lg, var(--ng-spacing-lg));
21
+ font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
22
+ font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
23
+ line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));
24
+ font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));
25
+ color: var(--nile-colors-dark-500, var(--ng-colors-text-placeholder));
26
+ }
27
+
28
+ .group__items {
29
+ display: flex;
30
+ flex-direction: column;
31
+ gap: var(--nile-spacing-sm, var(--ng-spacing-sm));
32
+ }
33
+
34
+ :host(:not(:last-child)) .group {
35
+ margin-bottom: var(--nile-spacing-lg, var(--ng-spacing-lg));
36
+ }
37
+ `;export{n as s};
@@ -0,0 +1,8 @@
1
+ import{__decorate as s}from"tslib";import{html as t}from"lit";import{property as e,customElement as i}from"lit/decorators.js";import{s as l}from"./nile-dropdown-switcher-group.css.esm.js";import{H as r}from"../internal/slot.esm.js";import{N as a}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let o=class extends a{constructor(){super(...arguments),this.hasSlotController=new r(this,"label"),this.label=""}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}updated(){this.label.length>0||this.hasSlotController.test("label")?this.setAttribute("aria-label",this._labelSlotText()||this.label):this.removeAttribute("aria-label")}_labelSlotText(){return this.querySelector('[slot="label"]')?.textContent?.trim()??""}render(){const s=this.label.length>0||this.hasSlotController.test("label");return t`
2
+ <div part="base" class="group">
3
+ ${s?t`<div part="label" class="group__label">
4
+ <slot name="label">${this.label}</slot>
5
+ </div>`:""}
6
+ <slot part="items" class="group__items"></slot>
7
+ </div>
8
+ `}};o.styles=l,s([e({attribute:!0})],o.prototype,"label",void 0),o=s([i("nile-dropdown-switcher-group")],o);export{o as N};
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-dropdown-switcher-header.cjs.js","tslib","lit","lit/decorators.js","./nile-dropdown-switcher-header.css.cjs.js","../internal/slot.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileDropdownSwitcherHeaderCjsJs){_export("NileDropdownSwitcherHeader",_nileDropdownSwitcherHeaderCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileDropdownSwitcherHeaderCssCjsJs){},function(_internalSlotCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export{N as NileDropdownSwitcherHeader}from"./nile-dropdown-switcher-header.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-dropdown-switcher-header.css.esm.js";import"../internal/slot.esm.js";import"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";
@@ -0,0 +1,2 @@
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-dropdown-switcher-header.css.cjs.js","../internal/slot.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var e,s,t,l,a,i,o,r,_templateObject,_templateObject2,_templateObject3,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){s=_lit.html;t=_lit.nothing;},function(_litDecoratorsJs){l=_litDecoratorsJs.property;a=_litDecoratorsJs.customElement;},function(_nileDropdownSwitcherHeaderCssCjsJs){i=_nileDropdownSwitcherHeaderCssCjsJs.s;},function(_internalSlotCjsJs){o=_internalSlotCjsJs.H;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_r){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.hasSlotController=new o(_assertThisInitialized(_this),"icon","sublabel"),_this.label="",_this.sublabel="",_this.hideClose=!1;return _this;}_inherits(n,_r);return _createClass(n,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(n,"connectedCallback",this,3)([]),this.setAttribute("role","none");}},{key:"_handleCloseClick",value:function _handleCloseClick(){this.emit("nile-request-close",{source:"close-button"},void 0,void 0,!0);}},{key:"render",value:function render(){return s(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"base\" class=\"header\">\n <span part=\"icon\" class=",">\n <slot name=\"icon\"></slot>\n </span>\n\n <span class=\"header__text\">\n <span part=\"label\" class=\"header__label\">\n <slot name=\"label\">","</slot>\n </span>\n ","\n </span>\n\n ","\n </div>\n "])),this.hasSlotController.test("icon")?"header__icon":"header__icon header__icon--empty",this.label,this.sublabel||this.hasSlotController.test("sublabel")?s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<span part=\"sublabel\" class=\"header__sublabel\">\n <slot name=\"sublabel\">","</slot>\n </span>"])),this.sublabel):t,this.hideClose?t:s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <button\n part=\"close-button\"\n class=\"header__close\"\n type=\"button\"\n aria-label=\"Close\"\n @click=","\n >\n <nile-glyph\n name=\"ng-x-close\"\n method=\"stroke\"\n size=\"20\"\n color=\"currentColor\"\n ></nile-glyph>\n </button>\n "])),this._handleCloseClick));}}]);}(r));n.styles=i,e([l({attribute:!0})],n.prototype,"label",void 0),e([l({attribute:!0})],n.prototype,"sublabel",void 0),e([l({type:Boolean,attribute:!0})],n.prototype,"hideClose",void 0),_export("N",n=e([a("nile-dropdown-switcher-header")],n));}};});
2
+ //# sourceMappingURL=nile-dropdown-switcher-header.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-dropdown-switcher-header.cjs.js","sources":["../../../src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, nothing } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-dropdown-switcher-header.css';\nimport { HasSlotController } from '../internal/slot';\nimport NileElement from '../internal/nile-element';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * The optional header of a `nile-dropdown-switcher`: an icon, a label/sublabel pair, and a close button.\n *\n * @tag nile-dropdown-switcher-header\n *\n * @dependency nile-glyph\n *\n * @slot icon - The header's icon. Slot-only, no icon prop. Expects a `<nile-glyph slot=\"icon\">`.\n * @slot label - Rich override of the `label` property.\n * @slot sublabel - Rich override of the `sublabel` property.\n *\n * @event nile-request-close - Emitted when the close button is pressed. Cancelable. `detail: { source: 'close-button' }`.\n *\n * @csspart base - The component's base wrapper.\n * @csspart icon - The icon container.\n * @csspart label - The title line.\n * @csspart sublabel - The subtitle line.\n * @csspart close-button - The close button.\n */\n@customElement('nile-dropdown-switcher-header')\nexport class NileDropdownSwitcherHeader extends NileElement {\n static styles: CSSResultGroup = styles;\n\n private readonly hasSlotController = new HasSlotController(this, 'icon', 'sublabel');\n\n /** The header's title. Use the `label` slot for rich content. */\n @property({ attribute: true }) label = '';\n\n /** The header's subtitle. Use the `sublabel` slot for rich content. */\n @property({ attribute: true }) sublabel = '';\n\n /** Hides the close button. */\n @property({ type: Boolean, attribute: true }) hideClose = false;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.setAttribute('role', 'none');\n }\n\n private _handleCloseClick(): void {\n this.emit('nile-request-close', { source: 'close-button' }, undefined, undefined, true);\n }\n\n render() {\n return html`\n <div part=\"base\" class=\"header\">\n <span part=\"icon\" class=${this.hasSlotController.test('icon') ? 'header__icon' : 'header__icon header__icon--empty'}>\n <slot name=\"icon\"></slot>\n </span>\n\n <span class=\"header__text\">\n <span part=\"label\" class=\"header__label\">\n <slot name=\"label\">${this.label}</slot>\n </span>\n ${this.sublabel || this.hasSlotController.test('sublabel')\n ? html`<span part=\"sublabel\" class=\"header__sublabel\">\n <slot name=\"sublabel\">${this.sublabel}</slot>\n </span>`\n : nothing}\n </span>\n\n ${this.hideClose\n ? nothing\n : html`\n <button\n part=\"close-button\"\n class=\"header__close\"\n type=\"button\"\n aria-label=\"Close\"\n @click=${this._handleCloseClick}\n >\n <nile-glyph\n name=\"ng-x-close\"\n method=\"stroke\"\n size=\"20\"\n color=\"currentColor\"\n ></nile-glyph>\n </button>\n `}\n </div>\n `;\n }\n}\n\nexport default NileDropdownSwitcherHeader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-dropdown-switcher-header': NileDropdownSwitcherHeader;\n }\n}\n"],"names":["NileDropdownSwitcherHeader","_r","n","this","hasSlotController","HasSlotController","label","sublabel","hideClose","_this","_inherits","_createClass","key","value","connectedCallback","super","setAttribute","_handleCloseClick","emit","source","undefined","render","html","_templateObject","_taggedTemplateLiteral","test","_templateObject2","nothing","_templateObject3","NileElement","styles","__decorate","property","attribute","prototype","type","Boolean","customElement"],"mappings":"knIAkCaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,qEAGYC,EAAAA,KAAAA,CAAiBC,iBAAG,CAAA,GAAIC,CAAAA,CAAkBF,CAAAA,sBAAAA,CAAAA,KAAAA,EAAM,OAAQ,UAG1CA,CAAAA,CAAAA,KAAAA,CAAKG,KAAG,CAAA,EAAA,CAGRH,KAAAA,CAAQI,QAAAA,CAAG,EAGIJ,CAAAA,KAAAA,CAASK,SAAG,CAAA,CAAA,CAkD3D,QAAAC,KAAA,EAhDCC,SAAA,CAAAR,CAAA,CAAAD,EAAA,SAAAU,YAAA,CAAAT,CAAA,GAAAU,GAAA,qBAAAC,KAAA,UAAAC,iBAAAA,CAAAA,CACEC,CAAAA,aAAAA,CAAAA,CAAAA,iCACAZ,IAAAA,CAAKa,aAAa,MAAQ,CAAA,MAAA,CAC3B,EAEO,GAAAJ,GAAA,qBAAAC,KAAA,UAAAI,iBAAAA,CAAAA,CACNd,CAAAA,IAAAA,CAAKe,IAAK,CAAA,oBAAA,CAAsB,CAAEC,MAAQ,CAAA,cAAA,CAAA,CAAA,IAAkBC,EAAWA,CAAAA,IAAAA,EAAAA,CAAAA,CAAW,CACnF,CAAA,EAED,GAAAR,GAAA,UAAAC,KAAA,UAAAQ,MAAAA,CAAAA,CAAAA,CACE,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,yXAEmBrB,IAAKC,CAAAA,iBAAAA,CAAkBqB,IAAK,CAAA,MAAA,CAAA,CAAU,cAAiB,CAAA,kCAAA,CAMxDtB,IAAKG,CAAAA,KAAAA,CAE1BH,IAAAA,CAAKI,QAAYJ,EAAAA,IAAAA,CAAKC,iBAAkBqB,CAAAA,IAAAA,CAAK,YAC3CH,CAAI,CAAAI,gBAAA,GAAAA,gBAAA,CAAAF,sBAAA,sIACsBrB,IAAKI,CAAAA,QAAAA,EAE/BoB,CAAAA,CAGJxB,IAAKK,CAAAA,SAAAA,CACHmB,EACAL,CAAI,CAAAM,gBAAA,GAAAA,gBAAA,CAAAJ,sBAAA,4dAMSrB,IAAKc,CAAAA,iBAAAA,GAY3B,CAAA,MA7D6CY,CAAzC,GACE7B,EAAM8B,MAAmBA,CAAAA,CAAAA,CAKDC,EAAA,CAA9BC,CAAAA,CAAS,CAAEC,SAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmBjC,CAAAkC,CAAAA,SAAAA,CAAA,YAAA,EAGXH,CAAAA,CAAAA,CAAAA,CAAA,CAA9BC,CAAS,CAAA,CAAEC,WAAW,CAAsBjC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAkC,SAAA,CAAA,UAAA,CAAA,IAAA,IAGCH,CAAA,CAAA,CAA7CC,EAAS,CAAEG,IAAAA,CAAMC,QAASH,SAAW,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0BjC,CAAAkC,CAAAA,SAAAA,CAAA,gBAAA,EAZrDlC,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAA0B+B,EAAA,CADtCM,CAAAA,CAAc,kCACFrC"}
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",r=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n box-sizing: border-box;\n display: block;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n .header {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n padding: var(--nile-spacing-lg, var(--ng-spacing-lg));\n border-bottom: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n .header__icon {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-32px, var(--ng-height-32px));\n height: var(--nile-height-32px, var(--ng-height-32px));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n overflow: hidden;\n }\n\n .header__icon--empty {\n display: none;\n }\n\n ::slotted([slot='icon']) {\n width: 100%;\n height: 100%;\n }\n\n .header__text {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n flex-direction: column;\n }\n\n .header__label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-sm, var(--ng-line-height-text-sm));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n .header__sublabel {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));\n }\n\n .header__close {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-28px, var(--ng-height-28px));\n height: var(--nile-height-28px, var(--ng-height-28px));\n margin: var(--nile-spacing-none, var(--ng-spacing-none));\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n border: var(--nile-border-width-0, var(--ng-border-width-0));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n background: transparent;\n color: var(--nile-colors-dark-500, var(--ng-colors-fg-quaternary-400));\n cursor: pointer;\n }\n\n .header__close:hover {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary-hover));\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-dropdown-switcher-header.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-dropdown-switcher-header.css.cjs.js","sources":["../../../src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * DropdownSwitcherHeader CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n display: block;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n .header {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n padding: var(--nile-spacing-lg, var(--ng-spacing-lg));\n border-bottom: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n .header__icon {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-32px, var(--ng-height-32px));\n height: var(--nile-height-32px, var(--ng-height-32px));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n overflow: hidden;\n }\n\n .header__icon--empty {\n display: none;\n }\n\n ::slotted([slot='icon']) {\n width: 100%;\n height: 100%;\n }\n\n .header__text {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n flex-direction: column;\n }\n\n .header__label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-sm, var(--ng-line-height-text-sm));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n .header__sublabel {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));\n }\n\n .header__close {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-28px, var(--ng-height-28px));\n height: var(--nile-height-28px, var(--ng-height-28px));\n margin: var(--nile-spacing-none, var(--ng-spacing-none));\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n border: var(--nile-border-width-0, var(--ng-border-width-0));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n background: transparent;\n color: var(--nile-colors-dark-500, var(--ng-colors-fg-quaternary-400));\n cursor: pointer;\n }\n\n .header__close:hover {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary-hover));\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -0,0 +1,91 @@
1
+ import{css as e}from"lit";const r=e`
2
+ :host {
3
+ box-sizing: border-box;
4
+ display: block;
5
+ }
6
+
7
+ :host *,
8
+ :host *::before,
9
+ :host *::after {
10
+ box-sizing: inherit;
11
+ }
12
+
13
+ .header {
14
+ display: flex;
15
+ align-items: center;
16
+ gap: var(--nile-spacing-md, var(--ng-spacing-md));
17
+ padding: var(--nile-spacing-lg, var(--ng-spacing-lg));
18
+ border-bottom: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
19
+ }
20
+
21
+ .header__icon {
22
+ flex: 0 0 auto;
23
+ display: inline-flex;
24
+ align-items: center;
25
+ justify-content: center;
26
+ width: var(--nile-height-32px, var(--ng-height-32px));
27
+ height: var(--nile-height-32px, var(--ng-height-32px));
28
+ border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
29
+ overflow: hidden;
30
+ }
31
+
32
+ .header__icon--empty {
33
+ display: none;
34
+ }
35
+
36
+ ::slotted([slot='icon']) {
37
+ width: 100%;
38
+ height: 100%;
39
+ }
40
+
41
+ .header__text {
42
+ flex: 1 1 auto;
43
+ min-width: 0;
44
+ display: flex;
45
+ flex-direction: column;
46
+ }
47
+
48
+ .header__label {
49
+ display: block;
50
+ white-space: nowrap;
51
+ overflow: hidden;
52
+ text-overflow: ellipsis;
53
+ font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
54
+ font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
55
+ line-height: var(--nile-line-height-sm, var(--ng-line-height-text-sm));
56
+ font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));
57
+ color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
58
+ }
59
+
60
+ .header__sublabel {
61
+ display: block;
62
+ white-space: nowrap;
63
+ overflow: hidden;
64
+ text-overflow: ellipsis;
65
+ font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
66
+ font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));
67
+ line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));
68
+ font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));
69
+ color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));
70
+ }
71
+
72
+ .header__close {
73
+ flex: 0 0 auto;
74
+ display: inline-flex;
75
+ align-items: center;
76
+ justify-content: center;
77
+ width: var(--nile-height-28px, var(--ng-height-28px));
78
+ height: var(--nile-height-28px, var(--ng-height-28px));
79
+ margin: var(--nile-spacing-none, var(--ng-spacing-none));
80
+ padding: var(--nile-spacing-none, var(--ng-spacing-none));
81
+ border: var(--nile-border-width-0, var(--ng-border-width-0));
82
+ border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
83
+ background: transparent;
84
+ color: var(--nile-colors-dark-500, var(--ng-colors-fg-quaternary-400));
85
+ cursor: pointer;
86
+ }
87
+
88
+ .header__close:hover {
89
+ background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary-hover));
90
+ }
91
+ `;export{r as s};
@@ -0,0 +1,33 @@
1
+ import{__decorate as e}from"tslib";import{html as s,nothing as t}from"lit";import{property as l,customElement as a}from"lit/decorators.js";import{s as i}from"./nile-dropdown-switcher-header.css.esm.js";import{H as o}from"../internal/slot.esm.js";import{N as r}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let n=class extends r{constructor(){super(...arguments),this.hasSlotController=new o(this,"icon","sublabel"),this.label="",this.sublabel="",this.hideClose=!1}connectedCallback(){super.connectedCallback(),this.setAttribute("role","none")}_handleCloseClick(){this.emit("nile-request-close",{source:"close-button"},void 0,void 0,!0)}render(){return s`
2
+ <div part="base" class="header">
3
+ <span part="icon" class=${this.hasSlotController.test("icon")?"header__icon":"header__icon header__icon--empty"}>
4
+ <slot name="icon"></slot>
5
+ </span>
6
+
7
+ <span class="header__text">
8
+ <span part="label" class="header__label">
9
+ <slot name="label">${this.label}</slot>
10
+ </span>
11
+ ${this.sublabel||this.hasSlotController.test("sublabel")?s`<span part="sublabel" class="header__sublabel">
12
+ <slot name="sublabel">${this.sublabel}</slot>
13
+ </span>`:t}
14
+ </span>
15
+
16
+ ${this.hideClose?t:s`
17
+ <button
18
+ part="close-button"
19
+ class="header__close"
20
+ type="button"
21
+ aria-label="Close"
22
+ @click=${this._handleCloseClick}
23
+ >
24
+ <nile-glyph
25
+ name="ng-x-close"
26
+ method="stroke"
27
+ size="20"
28
+ color="currentColor"
29
+ ></nile-glyph>
30
+ </button>
31
+ `}
32
+ </div>
33
+ `}};n.styles=i,e([l({attribute:!0})],n.prototype,"label",void 0),e([l({attribute:!0})],n.prototype,"sublabel",void 0),e([l({type:Boolean,attribute:!0})],n.prototype,"hideClose",void 0),n=e([a("nile-dropdown-switcher-header")],n);export{n as N};
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-dropdown-switcher-item.cjs.js","tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-dropdown-switcher-item.css.cjs.js","../internal/slot.cjs.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileDropdownSwitcherItemCjsJs){_export("NileDropdownSwitcherItem",_nileDropdownSwitcherItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_litDirectivesClassMapJs){},function(_nileDropdownSwitcherItemCssCjsJs){},function(_internalSlotCjsJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export{N as NileDropdownSwitcherItem}from"./nile-dropdown-switcher-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"./nile-dropdown-switcher-item.css.esm.js";import"../internal/slot.esm.js";import"../internal/watch.esm.js";import"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";
@@ -0,0 +1,2 @@
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-dropdown-switcher-item.css.cjs.js","../internal/slot.cjs.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,s,i,a,r,l,o,n,c,h,d,_templateObject,_templateObject2,_templateObject3,p;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){e=_lit.nothing;s=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.query;a=_litDecoratorsJs.property;r=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){l=_litDirectivesClassMapJs.classMap;},function(_nileDropdownSwitcherItemCssCjsJs){o=_nileDropdownSwitcherItemCssCjsJs.s;},function(_internalSlotCjsJs){n=_internalSlotCjsJs.H;c=_internalSlotCjsJs.g;},function(_internalWatchCjsJs){h=_internalWatchCjsJs.w;},function(_internalNileElementCjsJs){d=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",p=/*#__PURE__*/function(_d){function p(){var _this;_classCallCheck(this,p);_this=_callSuper(this,p,arguments),_this.hasSlotController=new n(_assertThisInitialized(_this),"[default]","icon","description"),_this.value="",_this.label="",_this.description="",_this.selected=!1,_this.disabled=!1;return _this;}_inherits(p,_d);return _createClass(p,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(p,"connectedCallback",this,3)([]),this.setAttribute("role","menuitemradio"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","-1"),this._syncAria();}},{key:"_syncAria",value:function _syncAria(){this.setAttribute("aria-checked",this.selected?"true":"false"),this.setAttribute("aria-disabled",this.disabled?"true":"false");}},{key:"_handleDefaultSlotChange",value:function _handleDefaultSlotChange(){var t=this.getTextLabel();void 0!==this.cachedTextLabel?t!==this.cachedTextLabel&&(this.cachedTextLabel=t,this.emit("slotchange")):this.cachedTextLabel=t;}},{key:"getTextLabel",value:function getTextLabel(){return c(this.defaultSlot);}},{key:"_renderCheck",value:function _renderCheck(){return this.selected?s(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <span part=\"check\" class=\"item__check\" aria-hidden=\"true\">\n <nile-glyph\n name=\"ng-check\"\n method=\"stroke\"\n size=\"16\"\n color=\"currentColor\"\n ></nile-glyph>\n </span>\n "]))):e;}},{key:"render",value:function render(){return s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div\n part=\"base\"\n class=","\n >\n <span\n part=\"icon\"\n class=","\n >\n <slot name=\"icon\"></slot>\n </span>\n\n <span class=\"item__text\">\n <span part=\"label\" class=\"item__label\">\n <slot class=\"item__label-slot\" @slotchange=","></slot\n >","\n </span>\n\n ","\n </span>\n\n ","\n </div>\n "])),l({item:!0,"item--selected":this.selected,"item--disabled":this.disabled}),l({item__icon:!0,"item__icon--empty":!this.hasSlotController.test("icon")}),this._handleDefaultSlotChange,this.hasSlotController.test("[default]")?e:this.label,this.description||this.hasSlotController.test("description")?s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<span part=\"description\" class=\"item__description\">\n <slot name=\"description\">","</slot>\n </span>"])),this.description):e,this._renderCheck());}}]);}(d));p.styles=o,t([i(".item__label-slot")],p.prototype,"defaultSlot",void 0),t([a({attribute:!0,reflect:!0})],p.prototype,"value",void 0),t([a({attribute:!0})],p.prototype,"label",void 0),t([a({attribute:!0})],p.prototype,"description",void 0),t([a({type:Boolean,attribute:!0,reflect:!0})],p.prototype,"selected",void 0),t([a({type:Boolean,attribute:!0,reflect:!0})],p.prototype,"disabled",void 0),t([h(["selected","disabled"])],p.prototype,"_syncAria",null),_export("N",p=t([r("nile-dropdown-switcher-item")],p));}};});
2
+ //# sourceMappingURL=nile-dropdown-switcher-item.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-dropdown-switcher-item.cjs.js","sources":["../../../src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, nothing, TemplateResult } from 'lit';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-dropdown-switcher-item.css';\nimport { getTextContent, HasSlotController } from '../internal/slot';\nimport { watch } from '../internal/watch';\nimport NileElement from '../internal/nile-element';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * A single selectable row inside a `nile-dropdown-switcher`. Owns no public selection event or keyboard handling -- the parent owns both.\n *\n * @tag nile-dropdown-switcher-item\n *\n * @dependency nile-glyph\n *\n * @slot - The item's primary label. Overrides the `label` property when provided.\n * @slot icon - The leading 32x32 icon tile. Expects a `<nile-glyph slot=\"icon\">`. No space is reserved when empty.\n * @slot description - Overrides the `description` property when provided.\n *\n * @csspart base - The component's base wrapper.\n * @csspart icon - The 32x32 icon container.\n * @csspart label - The primary label.\n * @csspart description - The supporting text line.\n * @csspart check - The trailing selected-state check icon.\n */\n@customElement('nile-dropdown-switcher-item')\nexport class NileDropdownSwitcherItem extends NileElement {\n static styles: CSSResultGroup = styles;\n\n private cachedTextLabel: string;\n\n // Whitespace-aware: avoids incidental whitespace defeating the default slot's fallback to `label`.\n private readonly hasSlotController = new HasSlotController(this, '[default]', 'icon', 'description');\n\n @query('.item__label-slot') defaultSlot: HTMLSlotElement;\n\n /** A unique value used to identify the item when it is selected. */\n @property({ attribute: true, reflect: true }) value = '';\n\n /** The item's primary text. Use the default slot for rich content instead. */\n @property({ attribute: true }) label = '';\n\n /** Optional supporting text shown under the label. Use the `description` slot for rich content. */\n @property({ attribute: true }) description = '';\n\n /** Indicates whether this is the currently selected workspace/product. */\n @property({ type: Boolean, attribute: true, reflect: true }) selected = false;\n\n /** Draws the item in a disabled state, preventing selection. */\n @property({ type: Boolean, attribute: true, reflect: true }) disabled = false;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.setAttribute('role', 'menuitemradio');\n if (!this.hasAttribute('tabindex')) {\n this.setAttribute('tabindex', '-1');\n }\n this._syncAria();\n }\n\n @watch(['selected', 'disabled'])\n _syncAria(): void {\n this.setAttribute('aria-checked', this.selected ? 'true' : 'false');\n this.setAttribute('aria-disabled', this.disabled ? 'true' : 'false');\n }\n\n private _handleDefaultSlotChange(): void {\n const textLabel = this.getTextLabel();\n if (typeof this.cachedTextLabel === 'undefined') {\n this.cachedTextLabel = textLabel;\n return;\n }\n if (textLabel !== this.cachedTextLabel) {\n this.cachedTextLabel = textLabel;\n this.emit('slotchange');\n }\n }\n\n /** Returns the plain-text label, for the parent's keyboard/typeahead use if ever needed. */\n getTextLabel(): string {\n return getTextContent(this.defaultSlot);\n }\n\n private _renderCheck(): TemplateResult | typeof nothing {\n if (!this.selected) return nothing;\n return html`\n <span part=\"check\" class=\"item__check\" aria-hidden=\"true\">\n <nile-glyph\n name=\"ng-check\"\n method=\"stroke\"\n size=\"16\"\n color=\"currentColor\"\n ></nile-glyph>\n </span>\n `;\n }\n\n render() {\n return html`\n <div\n part=\"base\"\n class=${classMap({\n item: true,\n 'item--selected': this.selected,\n 'item--disabled': this.disabled,\n })}\n >\n <span\n part=\"icon\"\n class=${classMap({\n item__icon: true,\n 'item__icon--empty': !this.hasSlotController.test('icon'),\n })}\n >\n <slot name=\"icon\"></slot>\n </span>\n\n <span class=\"item__text\">\n <span part=\"label\" class=\"item__label\">\n <slot class=\"item__label-slot\" @slotchange=${this._handleDefaultSlotChange}></slot\n >${this.hasSlotController.test('[default]') ? nothing : this.label}\n </span>\n\n ${this.description || this.hasSlotController.test('description')\n ? html`<span part=\"description\" class=\"item__description\">\n <slot name=\"description\">${this.description}</slot>\n </span>`\n : nothing}\n </span>\n\n ${this._renderCheck()}\n </div>\n `;\n }\n}\n\nexport default NileDropdownSwitcherItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-dropdown-switcher-item': NileDropdownSwitcherItem;\n }\n}\n"],"names":["NileDropdownSwitcherItem","_d","p","this","hasSlotController","HasSlotController","value","label","description","selected","disabled","_this","_inherits","_createClass","key","connectedCallback","super","setAttribute","hasAttribute","_syncAria","_handleDefaultSlotChange","textLabel","getTextLabel","cachedTextLabel","emit","getTextContent","defaultSlot","_renderCheck","html","_templateObject","_taggedTemplateLiteral","nothing","render","_templateObject2","classMap","item","item__icon","test","_templateObject3","NileElement","styles","__decorate","query","prototype","property","attribute","reflect","type","Boolean","watch","customElement"],"mappings":"81IAkCaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,qEAMYC,EAAAA,KAAAA,CAAAC,iBAAoB,CAAA,GAAIC,CAAAA,CAAkBF,CAAAA,sBAAAA,CAAAA,KAAAA,EAAM,WAAa,CAAA,MA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,sBAAkD1C,CAAA2C,CAAAA,SAAAA,CAAA,aAAA,CAAA,IAAA,EAAA,CAAA,CAGXF,EAAA,CAA7CG,CAAAA,CAAS,CAAEC,SAAW,CAAA,CAAA,CAAA,CAAMC,SAAS,CAAmB9C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA2C,SAAA,CAAA,OAAA,CAAA,IAAA,IAG1BF,CAAA,CAAA,CAA9BG,EAAS,CAAEC,SAAAA,CAAAA,CAAW,KAAmB7C,CAAA2C,CAAAA,SAAAA,CAAA,YAAA,EAGXF,CAAAA,CAAAA,CAAAA,CAAA,CAA9BG,CAAS,CAAA,CAAEC,WAAW,CAAyB7C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA2C,UAAA,aAAA,CAAA,IAAA,EAAA,CAAA,CAGaF,CAAA,CAAA,CAA5DG,EAAS,CAAEG,IAAAA,CAAMC,QAASH,SAAW,CAAA,CAAA,CAAA,CAAMC,SAAS,CAAyB9C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA2C,SAAA,CAAA,UAAA,CAAA,IAAA,IAGjBF,CAAA,CAAA,CAA5DG,EAAS,CAAEG,IAAAA,CAAMC,QAASH,SAAW,CAAA,CAAA,CAAA,CAAMC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyB9C,EAAA2C,SAAA,CAAA,UAAA,CAAA,IAAA,IAY9EF,CAAA,CAAA,CADCQ,EAAM,CAAC,UAAA,CAAY,cAInBjD,CAAA2C,CAAAA,SAAAA,CAAA,YAAA,IAtCU3C,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAwByC,EAAA,CADpCS,CAAAA,CAAc,gCACFlD"}
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,i;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",i=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n box-sizing: border-box;\n display: block;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n :host([disabled]) {\n pointer-events: none;\n }\n\n :host(:focus-visible) {\n outline: none;\n }\n\n .item {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n padding: var(--nile-spacing-xs, var(--ng-spacing-xs)) var(--nile-spacing-sm, var(--ng-spacing-sm));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n cursor: pointer;\n }\n\n :host(:hover) .item,\n :host(:focus-visible) .item {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary-hover));\n }\n\n .item--disabled {\n opacity: var(--nile-opacity-disabled, 0.5);\n cursor: not-allowed;\n }\n\n .item__icon {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-32px, var(--ng-height-32px));\n height: var(--nile-height-32px, var(--ng-height-32px));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n overflow: hidden;\n }\n\n /* No icon slotted: collapse the tile so the label (and the flex gap) don't leave a blank 32px. */\n .item__icon--empty {\n display: none;\n }\n\n ::slotted([slot='icon']) {\n width: 100%;\n height: 100%;\n }\n\n .item__text {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n flex-direction: column;\n }\n\n .item__label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n .item__description {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));\n }\n\n .item__check {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-16px, var(--ng-height-16px));\n height: var(--nile-height-16px, var(--ng-height-16px));\n color: var(--nile-colors-primary-600, var(--ng-colors-border-brand-alt));\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-dropdown-switcher-item.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-dropdown-switcher-item.css.cjs.js","sources":["../../../src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2026\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/** DropdownSwitcherItem CSS -- Default/Selected both render on bg-primary; only Hover gets bg-primary_hover. */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n display: block;\n }\n\n :host *,\n :host *::before,\n :host *::after {\n box-sizing: inherit;\n }\n\n :host([disabled]) {\n pointer-events: none;\n }\n\n :host(:focus-visible) {\n outline: none;\n }\n\n .item {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n padding: var(--nile-spacing-xs, var(--ng-spacing-xs)) var(--nile-spacing-sm, var(--ng-spacing-sm));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n cursor: pointer;\n }\n\n :host(:hover) .item,\n :host(:focus-visible) .item {\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-primary-hover));\n }\n\n .item--disabled {\n opacity: var(--nile-opacity-disabled, 0.5);\n cursor: not-allowed;\n }\n\n .item__icon {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-32px, var(--ng-height-32px));\n height: var(--nile-height-32px, var(--ng-height-32px));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n overflow: hidden;\n }\n\n /* No icon slotted: collapse the tile so the label (and the flex gap) don't leave a blank 32px. */\n .item__icon--empty {\n display: none;\n }\n\n ::slotted([slot='icon']) {\n width: 100%;\n height: 100%;\n }\n\n .item__text {\n flex: 1 1 auto;\n min-width: 0;\n display: flex;\n flex-direction: column;\n }\n\n .item__label {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-semibold, var(--ng-font-weight-semibold));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n .item__description {\n display: block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-2, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xs, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));\n }\n\n .item__check {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-height-16px, var(--ng-height-16px));\n height: var(--nile-height-16px, var(--ng-height-16px));\n color: var(--nile-colors-primary-600, var(--ng-colors-border-brand-alt));\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAUaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}