@aquera/nile-elements 2.0.22 → 2.0.24

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 (477) hide show
  1. package/README.md +76 -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 +1929 -936
  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 +13 -6
  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.cjs.js +1 -1
  199. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.cjs.js.map +1 -1
  200. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js +1 -1
  201. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js.map +1 -1
  202. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.esm.js +51 -2
  203. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.esm.js +1 -1
  204. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js +1 -1
  205. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js.map +1 -1
  206. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.esm.js +3 -3
  207. package/dist/src/index.d.ts +6 -0
  208. package/dist/src/index.js +6 -0
  209. package/dist/src/index.js.map +1 -1
  210. package/dist/src/nile-app-shell/nile-app-shell.css.js +70 -63
  211. package/dist/src/nile-app-shell/nile-app-shell.css.js.map +1 -1
  212. package/dist/src/nile-app-shell/nile-app-shell.d.ts +40 -7
  213. package/dist/src/nile-app-shell/nile-app-shell.js +192 -41
  214. package/dist/src/nile-app-shell/nile-app-shell.js.map +1 -1
  215. package/dist/src/nile-app-shell/nile-app-shell.test.d.ts +2 -0
  216. package/dist/src/nile-app-shell/nile-app-shell.test.js +272 -1020
  217. package/dist/src/nile-app-shell/nile-app-shell.test.js.map +1 -1
  218. package/dist/src/nile-app-shell/zz-layout.test.d.ts +15 -0
  219. package/dist/src/nile-app-shell/zz-layout.test.js +253 -0
  220. package/dist/src/nile-app-shell/zz-layout.test.js.map +1 -0
  221. package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js +1 -1
  222. package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js.map +1 -1
  223. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js +24 -6
  224. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js.map +1 -1
  225. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.d.ts +8 -2
  226. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js +56 -2
  227. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js.map +1 -1
  228. package/dist/src/nile-button-filter/nile-button-filter.css.js +1 -1
  229. package/dist/src/nile-button-filter/nile-button-filter.css.js.map +1 -1
  230. package/dist/src/nile-button-filter/nile-button-filter.js +1 -3
  231. package/dist/src/nile-button-filter/nile-button-filter.js.map +1 -1
  232. package/dist/src/nile-calendar/nile-calendar.css.js +9 -8
  233. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
  234. package/dist/src/nile-color-picker/nile-color-picker.css.js +3 -3
  235. package/dist/src/nile-color-picker/nile-color-picker.css.js.map +1 -1
  236. package/dist/src/nile-combobox/nile-combobox.css.js +1 -1
  237. package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -1
  238. package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js +5 -1
  239. package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js.map +1 -1
  240. package/dist/src/nile-context-menu/nile-context-menu.css.js +2 -4
  241. package/dist/src/nile-context-menu/nile-context-menu.css.js.map +1 -1
  242. package/dist/src/nile-dropdown-switcher/index.d.ts +1 -0
  243. package/dist/src/nile-dropdown-switcher/index.js +2 -0
  244. package/dist/src/nile-dropdown-switcher/index.js.map +1 -0
  245. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.d.ts +10 -0
  246. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js +49 -0
  247. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js.map +1 -0
  248. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.d.ts +101 -0
  249. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js +463 -0
  250. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js.map +1 -0
  251. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.d.ts +4 -0
  252. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js +506 -0
  253. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js.map +1 -0
  254. package/dist/src/nile-dropdown-switcher-group/index.d.ts +1 -0
  255. package/dist/src/nile-dropdown-switcher-group/index.js +2 -0
  256. package/dist/src/nile-dropdown-switcher-group/index.js.map +1 -0
  257. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.d.ts +12 -0
  258. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js +49 -0
  259. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js.map +1 -0
  260. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.d.ts +37 -0
  261. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js +72 -0
  262. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js.map +1 -0
  263. package/dist/src/nile-dropdown-switcher-header/index.d.ts +1 -0
  264. package/dist/src/nile-dropdown-switcher-header/index.js +2 -0
  265. package/dist/src/nile-dropdown-switcher-header/index.js.map +1 -0
  266. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.d.ts +12 -0
  267. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js +103 -0
  268. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js.map +1 -0
  269. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.d.ts +46 -0
  270. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js +105 -0
  271. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js.map +1 -0
  272. package/dist/src/nile-dropdown-switcher-item/index.d.ts +1 -0
  273. package/dist/src/nile-dropdown-switcher-item/index.js +2 -0
  274. package/dist/src/nile-dropdown-switcher-item/index.js.map +1 -0
  275. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.d.ts +10 -0
  276. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js +112 -0
  277. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js.map +1 -0
  278. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.d.ts +55 -0
  279. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js +154 -0
  280. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js.map +1 -0
  281. package/dist/src/nile-filter-chip/nile-filter-chip.css.js +2 -2
  282. package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
  283. package/dist/src/nile-form-group/nile-form-group.css.js +1 -1
  284. package/dist/src/nile-form-group/nile-form-group.css.js.map +1 -1
  285. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js +20 -4
  286. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js.map +1 -1
  287. package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js +1 -1
  288. package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js.map +1 -1
  289. package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js +3 -3
  290. package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js.map +1 -1
  291. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js +4 -4
  292. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js.map +1 -1
  293. package/dist/src/nile-menu/nile-menu.css.js +1 -2
  294. package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
  295. package/dist/src/nile-menu-item/nile-menu-item.css.js +4 -4
  296. package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
  297. package/dist/src/nile-nav-tab/nile-nav-tab.css.js +3 -3
  298. package/dist/src/nile-nav-tab/nile-nav-tab.css.js.map +1 -1
  299. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js +15 -12
  300. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js.map +1 -1
  301. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js +111 -0
  302. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js.map +1 -1
  303. package/dist/src/nile-option/nile-option.css.js +2 -2
  304. package/dist/src/nile-option/nile-option.css.js.map +1 -1
  305. package/dist/src/nile-pagination/nile-pagination.css.js +10 -0
  306. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
  307. package/dist/src/nile-pagination/nile-pagination.d.ts +2 -0
  308. package/dist/src/nile-pagination/nile-pagination.js +13 -9
  309. package/dist/src/nile-pagination/nile-pagination.js.map +1 -1
  310. package/dist/src/nile-side-bar/nile-side-bar.css.js +14 -12
  311. package/dist/src/nile-side-bar/nile-side-bar.css.js.map +1 -1
  312. package/dist/src/nile-side-bar/nile-side-bar.d.ts +17 -0
  313. package/dist/src/nile-side-bar/nile-side-bar.js +68 -12
  314. package/dist/src/nile-side-bar/nile-side-bar.js.map +1 -1
  315. package/dist/src/nile-side-bar/nile-side-bar.test.d.ts +23 -0
  316. package/dist/src/nile-side-bar/nile-side-bar.test.js +1614 -1
  317. package/dist/src/nile-side-bar/nile-side-bar.test.js.map +1 -1
  318. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js +11 -4
  319. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js.map +1 -1
  320. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +8 -3
  321. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
  322. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.d.ts +7 -5
  323. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js +7 -5
  324. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js.map +1 -1
  325. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +179 -23
  326. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
  327. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.d.ts +15 -0
  328. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js +82 -2
  329. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js.map +1 -1
  330. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.d.ts +9 -0
  331. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js +201 -0
  332. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js.map +1 -0
  333. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js +8 -3
  334. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js.map +1 -1
  335. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js +50 -7
  336. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js.map +1 -1
  337. package/dist/src/nile-side-bar-group/nile-side-bar-group.d.ts +35 -0
  338. package/dist/src/nile-side-bar-group/nile-side-bar-group.js +90 -3
  339. package/dist/src/nile-side-bar-group/nile-side-bar-group.js.map +1 -1
  340. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js +52 -7
  341. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js.map +1 -1
  342. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js +11 -2
  343. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js.map +1 -1
  344. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.d.ts +11 -2
  345. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js +21 -15
  346. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js.map +1 -1
  347. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js +7 -4
  348. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js.map +1 -1
  349. package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js +22 -17
  350. package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js.map +1 -1
  351. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.d.ts +4 -0
  352. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js +143 -0
  353. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js.map +1 -0
  354. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js +11 -4
  355. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js.map +1 -1
  356. package/dist/src/nile-side-bar-header/nile-side-bar-header.d.ts +7 -5
  357. package/dist/src/nile-side-bar-header/nile-side-bar-header.js +7 -5
  358. package/dist/src/nile-side-bar-header/nile-side-bar-header.js.map +1 -1
  359. package/dist/src/nile-side-bar-header-switcher/index.d.ts +1 -0
  360. package/dist/src/nile-side-bar-header-switcher/index.js +2 -0
  361. package/dist/src/nile-side-bar-header-switcher/index.js.map +1 -0
  362. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.d.ts +14 -0
  363. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js +97 -0
  364. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js.map +1 -0
  365. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.d.ts +38 -0
  366. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js +86 -0
  367. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js.map +1 -0
  368. package/dist/src/nile-side-bar-search/index.d.ts +1 -0
  369. package/dist/src/nile-side-bar-search/index.js +2 -0
  370. package/dist/src/nile-side-bar-search/index.js.map +1 -0
  371. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.d.ts +15 -0
  372. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js +118 -0
  373. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js.map +1 -0
  374. package/dist/src/nile-side-bar-search/nile-side-bar-search.d.ts +56 -0
  375. package/dist/src/nile-side-bar-search/nile-side-bar-search.js +150 -0
  376. package/dist/src/nile-side-bar-search/nile-side-bar-search.js.map +1 -0
  377. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.d.ts +3 -0
  378. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js +153 -0
  379. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js.map +1 -0
  380. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +1 -1
  381. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
  382. package/dist/src/nile-tooltip/nile-tooltip.css.js +7 -5
  383. package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
  384. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +1 -1
  385. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -1
  386. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +51 -2
  387. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
  388. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js +1 -1
  389. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.js.map +1 -1
  390. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js +3 -3
  391. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js.map +1 -1
  392. package/dist/src/version.js +1 -1
  393. package/dist/src/version.js.map +1 -1
  394. package/dist/tsconfig.tsbuildinfo +1 -1
  395. package/dist/version.cjs.js +1 -1
  396. package/dist/version.cjs.js.map +1 -1
  397. package/dist/version.esm.js +1 -1
  398. package/docs/screenshots/wysiwyg-focus-state-focused.png +0 -0
  399. package/docs/screenshots/wysiwyg-focus-state-unfocused.png +0 -0
  400. package/package.json +1 -1
  401. package/src/index.ts +6 -0
  402. package/src/nile-app-shell/nile-app-shell.css.ts +70 -63
  403. package/src/nile-app-shell/nile-app-shell.test.ts +332 -1227
  404. package/src/nile-app-shell/nile-app-shell.ts +223 -44
  405. package/src/nile-app-shell/zz-layout.test.ts +271 -0
  406. package/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.ts +1 -5
  407. package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.ts +24 -6
  408. package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.ts +62 -2
  409. package/src/nile-button-filter/nile-button-filter.css.ts +1 -1
  410. package/src/nile-button-filter/nile-button-filter.ts +1 -3
  411. package/src/nile-calendar/nile-calendar.css.ts +9 -8
  412. package/src/nile-color-picker/nile-color-picker.css.ts +3 -3
  413. package/src/nile-combobox/nile-combobox.css.ts +1 -1
  414. package/src/nile-command-menu-item/nile-command-menu-item.css.ts +5 -1
  415. package/src/nile-context-menu/nile-context-menu.css.ts +2 -4
  416. package/src/nile-dropdown-switcher/index.ts +1 -0
  417. package/src/nile-dropdown-switcher/nile-dropdown-switcher.css.ts +51 -0
  418. package/src/nile-dropdown-switcher/nile-dropdown-switcher.test.ts +570 -0
  419. package/src/nile-dropdown-switcher/nile-dropdown-switcher.ts +502 -0
  420. package/src/nile-dropdown-switcher-group/index.ts +1 -0
  421. package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.ts +51 -0
  422. package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.ts +78 -0
  423. package/src/nile-dropdown-switcher-header/index.ts +1 -0
  424. package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.ts +105 -0
  425. package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.ts +105 -0
  426. package/src/nile-dropdown-switcher-item/index.ts +1 -0
  427. package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.ts +114 -0
  428. package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.ts +151 -0
  429. package/src/nile-filter-chip/nile-filter-chip.css.ts +2 -2
  430. package/src/nile-form-group/nile-form-group.css.ts +1 -1
  431. package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts +20 -4
  432. package/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.ts +1 -1
  433. package/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts +3 -3
  434. package/src/nile-markdown-editor/nile-markdown-editor.css.ts +4 -4
  435. package/src/nile-menu/nile-menu.css.ts +1 -2
  436. package/src/nile-menu-item/nile-menu-item.css.ts +4 -4
  437. package/src/nile-nav-tab/nile-nav-tab.css.ts +3 -3
  438. package/src/nile-nav-tab-group/nile-nav-tab-group.css.ts +15 -12
  439. package/src/nile-nav-tab-group/nile-nav-tab-group.test.ts +130 -0
  440. package/src/nile-option/nile-option.css.ts +2 -2
  441. package/src/nile-pagination/nile-pagination.css.ts +10 -0
  442. package/src/nile-pagination/nile-pagination.ts +14 -9
  443. package/src/nile-side-bar/nile-side-bar.css.ts +14 -12
  444. package/src/nile-side-bar/nile-side-bar.test.ts +1854 -2
  445. package/src/nile-side-bar/nile-side-bar.ts +72 -15
  446. package/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.ts +11 -4
  447. package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +8 -3
  448. package/src/nile-side-bar-footer/nile-side-bar-footer.ts +7 -5
  449. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +179 -23
  450. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.ts +219 -0
  451. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts +84 -2
  452. package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.ts +8 -3
  453. package/src/nile-side-bar-group/nile-side-bar-group.css.ts +50 -7
  454. package/src/nile-side-bar-group/nile-side-bar-group.ts +100 -2
  455. package/src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts +52 -7
  456. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts +11 -2
  457. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts +22 -19
  458. package/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts +7 -4
  459. package/src/nile-side-bar-header/nile-side-bar-app-shell.test.ts +22 -17
  460. package/src/nile-side-bar-header/nile-side-bar-header-surface.test.ts +175 -0
  461. package/src/nile-side-bar-header/nile-side-bar-header.css.ts +11 -4
  462. package/src/nile-side-bar-header/nile-side-bar-header.ts +7 -5
  463. package/src/nile-side-bar-header-switcher/index.ts +1 -0
  464. package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.ts +99 -0
  465. package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.ts +88 -0
  466. package/src/nile-side-bar-search/index.ts +1 -0
  467. package/src/nile-side-bar-search/nile-side-bar-search.css.ts +120 -0
  468. package/src/nile-side-bar-search/nile-side-bar-search.test.ts +175 -0
  469. package/src/nile-side-bar-search/nile-side-bar-search.ts +160 -0
  470. package/src/nile-slide-toggle/nile-slide-toggle.css.ts +1 -1
  471. package/src/nile-tooltip/nile-tooltip.css.ts +7 -5
  472. package/src/nile-virtual-select/nile-virtual-select.css.ts +1 -1
  473. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +51 -2
  474. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.ts +1 -1
  475. package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +3 -3
  476. package/test-timings.json +0 -1
  477. package/vscode-html-custom-data.json +349 -22
@@ -6,9 +6,9 @@ import '../nile-app-shell-panel/nile-app-shell-panel';
6
6
  import '../nile-nav-tab-group/nile-nav-tab-group';
7
7
  import '../nile-nav-tab/nile-nav-tab';
8
8
  import '../nile-side-bar/nile-side-bar';
9
- // renderGlyph fails silently on an unknown name, so the glyph tests need the real element.
10
9
  import '@aquera/nile-glyph/nile-glyph';
11
- // Sizes the host explicitly and waits for the ResizeObserver to land.
10
+ import '../nile-app-shell-side-nav/nile-app-shell-side-nav';
11
+ import '../nile-app-shell-main/nile-app-shell-main';
12
12
  const sized = async (width) => {
13
13
  const el = await fixture(html `
14
14
  <nile-app-shell style="width: ${width}px; height: 600px;">
@@ -58,43 +58,7 @@ describe('NileAppShell — regions', () => {
58
58
  expect(el.contentAlign).to.equal('fluid');
59
59
  expect(el.rail).to.be.false;
60
60
  });
61
- it('2. mounts only the regions that have slotted content', async () => {
62
- const el = await sized(1440);
63
- expect(el.hasAttribute('has-side-nav')).to.be.true;
64
- expect(el.hasAttribute('has-top-bar')).to.be.true;
65
- expect(el.hasAttribute('has-panel')).to.be.true;
66
- expect(el.hasAttribute('has-banner')).to.be.false;
67
- expect(el.hasAttribute('has-aside')).to.be.false;
68
- });
69
- it('3. reports no panel when the panel slot is empty', async () => {
70
- const el = await fixture(html `<nile-app-shell><p>page</p></nile-app-shell>`);
71
- expect(el.panelAvailable).to.be.false;
72
- expect(el.hasAttribute('has-panel')).to.be.false;
73
- });
74
- it('4. renders the top bar inside the container by default', async () => {
75
- const el = await sized(1440);
76
- expect(part(el, 'container').contains(part(el, 'top-bar'))).to.be.true;
77
- });
78
- it('5. spans the shell with the top bar when asked', async () => {
79
- const el = await sized(1440);
80
- el.topBarPlacement = 'shell';
81
- await el.updateComplete;
82
- const bar = part(el, 'top-bar');
83
- expect(bar.classList.contains('shell-top-bar')).to.be.true;
84
- expect(part(el, 'container').contains(bar)).to.be.false;
85
- });
86
61
  });
87
- /**
88
- * The name the control's glyph asks for, once nile-glyph has resolved it to
89
- * real path data. An unknown name leaves an empty <svg>, so this fails loudly
90
- * rather than letting a missing icon ship as a blank box.
91
- */
92
- const drawnGlyph = async (control) => {
93
- const glyph = control.querySelector('nile-glyph');
94
- expect(glyph, 'the control renders a nile-glyph').to.exist;
95
- await waitUntil(() => (glyph.shadowRoot?.querySelector('svg')?.childElementCount ?? 0) > 0, `${glyph.getAttribute('name')} draws no paths — is it in the nile-glyph set?`);
96
- return glyph.getAttribute('name');
97
- };
98
62
  describe('NileAppShell — nav', () => {
99
63
  it('6. collapseNav()/expandNav() drive the rail and reflect it', async () => {
100
64
  const el = await sized(1440);
@@ -144,13 +108,6 @@ describe('NileAppShell — nav', () => {
144
108
  expect(button.disabled).to.be.true;
145
109
  expect(el.hasAttribute('rail')).to.be.true;
146
110
  });
147
- it('62. the built-in toggle draws a real glyph in both states', async () => {
148
- const el = await sized(1440);
149
- expect(await drawnGlyph(part(el, 'nav-toggle'))).to.equal('ng-panel-left');
150
- el.collapseNav();
151
- await el.updateComplete;
152
- expect(await drawnGlyph(part(el, 'nav-toggle'))).to.equal('ng-panel-right');
153
- });
154
111
  });
155
112
  describe('NileAppShell — Ask Aquera panel', () => {
156
113
  it('11. openPanel()/closePanel() drive panel-open', async () => {
@@ -194,11 +151,6 @@ describe('NileAppShell — Ask Aquera panel', () => {
194
151
  expect(container.getBoundingClientRect().right).to.be.at.most(Math.round(panel.getBoundingClientRect().left) + 1);
195
152
  }
196
153
  });
197
- it("14b. overlays below an author's breakpoint when one is set", async () => {
198
- const el = await overlaying(1000);
199
- await waitUntil(() => el.panelMode === 'overlay');
200
- expect(el.getAttribute('panel-mode')).to.equal('overlay');
201
- });
202
154
  it('15. an open docked panel forces the rail below the docked breakpoint', async () => {
203
155
  const el = await sized(1360);
204
156
  await waitUntil(() => el.panelMode === 'docked');
@@ -218,53 +170,6 @@ describe('NileAppShell — Ask Aquera panel', () => {
218
170
  await el.updateComplete;
219
171
  expect(el.panelOpen).to.be.false;
220
172
  });
221
- it('17. labels the panel and its default heading from panel-label', async () => {
222
- const el = await sized(1440);
223
- el.panelLabel = 'Ask Aquera';
224
- await el.updateComplete;
225
- expect(part(el, 'panel').getAttribute('aria-label')).to.equal('Ask Aquera');
226
- expect(part(el, 'panel-title').textContent.trim()).to.equal('Ask Aquera');
227
- });
228
- // Amendment A (A-8): Figma's Assistant Title is Text lg/Semibold, 18/28; the shell sets it on the title it renders itself.
229
- it('17b. sets its own panel title at 18/28 in text-primary-900', async () => {
230
- const tokens = '--ng-font-size-text-lg: 18px; --ng-line-height-text-lg: 28px; --ng-font-weight-semibold: 600; --ng-colors-text-primary-900: rgb(24, 29, 39)';
231
- const el = await sized(1440);
232
- el.setAttribute('style', `${el.getAttribute('style')}; ${tokens}`);
233
- el.openPanel();
234
- await el.updateComplete;
235
- const own = getComputedStyle(part(el, 'panel-title'));
236
- expect(own.fontSize).to.equal('18px');
237
- expect(own.lineHeight).to.equal('28px');
238
- expect(own.fontWeight).to.equal('600');
239
- expect(own.color).to.equal('rgb(24, 29, 39)');
240
- });
241
- // A-8: a slotted nile-app-shell-panel (part of App Shell) draws the same Figma title: 18/28 SemiBold, text-primary-900.
242
- it('17c. sets the nile-app-shell-panel title at 18/28 in text-primary-900', async () => {
243
- const tokens = '--ng-font-size-text-sm: 14px; --ng-font-size-text-lg: 18px; --ng-line-height-text-lg: 28px; --ng-font-weight-semibold: 600; --ng-colors-text-primary-900: rgb(24, 29, 39)';
244
- const slotted = await fixture(html `
245
- <nile-app-shell-panel label="Ask Aquera" style="${tokens}"></nile-app-shell-panel>
246
- `);
247
- await slotted.updateComplete;
248
- const style = getComputedStyle(slotted.shadowRoot.querySelector('.title'));
249
- expect(style.fontSize).to.equal('18px');
250
- expect(style.lineHeight).to.equal('28px');
251
- expect(style.fontWeight).to.equal('600');
252
- expect(style.color).to.equal('rgb(24, 29, 39)');
253
- });
254
- // The enterprise sheet keeps its own panel title: --nile-type-scale-3 and an inherited line height, exactly as before.
255
- // Enterprise defines no --ng-* tokens, so the NxtGen line height does not apply there.
256
- it('17d. leaves the enterprise nile-app-shell-panel title as it was', async () => {
257
- const slotted = await fixture(html `
258
- <nile-app-shell-panel
259
- label="Ask Aquera"
260
- style="--nile-type-scale-3: 14px; line-height: 20px"
261
- ></nile-app-shell-panel>
262
- `);
263
- await slotted.updateComplete;
264
- const style = getComputedStyle(slotted.shadowRoot.querySelector('.title'));
265
- expect(style.fontSize).to.equal('14px');
266
- expect(style.lineHeight).to.equal('20px');
267
- });
268
173
  it('18. Cmd/Ctrl+J toggles the panel', async () => {
269
174
  const el = await sized(1440);
270
175
  document.dispatchEvent(new KeyboardEvent('keydown', { key: 'j', ctrlKey: true }));
@@ -286,28 +191,6 @@ describe('NileAppShell — Ask Aquera panel', () => {
286
191
  await overlay.updateComplete;
287
192
  expect(overlay.panelOpen).to.be.false;
288
193
  });
289
- it('20. no-panel-shortcut drops the keyboard handling', async () => {
290
- const el = await sized(1440);
291
- el.noPanelShortcut = true;
292
- await el.updateComplete;
293
- document.dispatchEvent(new KeyboardEvent('keydown', { key: 'j', metaKey: true }));
294
- await el.updateComplete;
295
- expect(el.panelOpen).to.be.false;
296
- });
297
- });
298
- describe('NileAppShell — content container', () => {
299
- it('23. content-container makes the slotted page root a size container', async () => {
300
- const el = await fixture(html `
301
- <nile-app-shell style="width: 1440px; height: 600px;" content-container>
302
- <div class="page">page</div>
303
- </nile-app-shell>
304
- `);
305
- const page = el.querySelector('.page');
306
- expect(getComputedStyle(page).containerType).to.equal('inline-size');
307
- el.contentContainer = false;
308
- await el.updateComplete;
309
- expect(getComputedStyle(page).containerType).to.equal('normal');
310
- });
311
194
  });
312
195
  describe('NileAppShellNavToggle', () => {
313
196
  it('21. drives the nearest shell and mirrors its rail state', async () => {
@@ -346,231 +229,8 @@ describe('NileAppShellNavToggle', () => {
346
229
  await toggle.updateComplete;
347
230
  expect(toggle.shadowRoot.querySelector('[part~="button"]').disabled).to.be.true;
348
231
  });
349
- it('63. draws a real glyph in both states', async () => {
350
- const el = await fixture(html `
351
- <nile-app-shell style="width: 1440px; height: 600px;" no-nav-toggle>
352
- <nav slot="side-nav">nav</nav>
353
- <nile-app-shell-nav-toggle slot="top-bar"></nile-app-shell-nav-toggle>
354
- <p>page</p>
355
- </nile-app-shell>
356
- `);
357
- const toggle = el.querySelector('nile-app-shell-nav-toggle');
358
- await waitUntil(() => toggle.appShell === el);
359
- const button = () => toggle.shadowRoot.querySelector('[part~="button"]');
360
- expect(await drawnGlyph(button())).to.equal('ng-panel-left');
361
- button().click();
362
- await el.updateComplete;
363
- await toggle.updateComplete;
364
- expect(await drawnGlyph(button())).to.equal('ng-panel-right');
365
- });
366
- });
367
- // The nav track is theme-dependent, so tests load one token pair or the other explicitly.
368
- const ENTERPRISE_NAV = '--nile-width-240px: 240px; --nile-width-70px: 70px;';
369
- const NXTGEN_NAV = '--ng-spacing-296: 296px; --ng-spacing-68: 68px;';
370
- describe('NileAppShell — the content row never overflows', () => {
371
- const withAside = async (width) => {
372
- const el = await fixture(html `
373
- <nile-app-shell style="width: ${width}px; height: 600px;" panel-open>
374
- <nav slot="side-nav">nav</nav>
375
- <span slot="top-bar">Title</span>
376
- <p>page</p>
377
- <div slot="aside">aside</div>
378
- <div slot="panel">assistant</div>
379
- </nile-app-shell>
380
- `);
381
- await waitUntil(() => el.hasAttribute('has-aside'));
382
- return el;
383
- };
384
- /** Overflow of the flex row past the box that clips it. */
385
- const overflow = (el) => {
386
- const section = el.shadowRoot.querySelector('.content-section');
387
- return (section.scrollWidth - Math.round(section.getBoundingClientRect().width));
388
- };
389
- it('23. tightens the side columns rather than covering the page', async () => {
390
- // Short of what the row prefers, so the panel and aside give width back while the page stays beside the panel.
391
- const el = await withAside(1500);
392
- await waitUntil(() => el.navLocked);
393
- await settled(el);
394
- expect(el.panelMode).to.equal('docked');
395
- const panel = el.shadowRoot.querySelector('.panel');
396
- const width = panel.getBoundingClientRect().width;
397
- expect(width).to.be.below(480);
398
- expect(width).to.be.at.least(360);
399
- expect(overflow(el)).to.equal(0);
400
- });
401
- it('24. rails the nav rather than clip the row', async () => {
402
- // 1600 fits the docked panel over a rail, not over the expanded track.
403
- const el = await withAside(1600);
404
- await waitUntil(() => el.navLocked);
405
- await settled(el);
406
- expect(el.panelMode).to.equal('docked');
407
- expect(overflow(el)).to.equal(0);
408
- });
409
- it('25. holds the container floor while the row has room for it', async () => {
410
- const el = await withAside(1800);
411
- await waitUntil(() => el.panelMode === 'docked');
412
- await settled(el);
413
- const container = el.shadowRoot.querySelector('.container');
414
- expect(container.getBoundingClientRect().width).to.be.at.least(640);
415
- expect(el.navLocked).to.be.false;
416
- expect(overflow(el)).to.equal(0);
417
- });
418
- it('26. asks the page for room last, and only after the floors are met', async () => {
419
- const el = await withAside(820);
420
- await waitUntil(() => el.navLocked);
421
- await settled(el);
422
- const px = (sel) => el.shadowRoot.querySelector(sel).getBoundingClientRect().width;
423
- // Both side columns sit on their floors before the page gives anything.
424
- expect(Math.round(px('.panel'))).to.equal(360);
425
- expect(Math.round(px('.aside'))).to.equal(240);
426
- expect(px('.container')).to.be.below(640);
427
- expect(overflow(el)).to.equal(0);
428
- });
429
- it('27. keeps the page above its floor at ordinary widths', async () => {
430
- const el = await sized(1300);
431
- el.openPanel();
432
- await el.updateComplete;
433
- await settled(el);
434
- expect(el.panelMode).to.equal('docked');
435
- const container = el.shadowRoot.querySelector('.container');
436
- expect(container.getBoundingClientRect().width).to.be.at.least(640);
437
- expect(overflow(el)).to.equal(0);
438
- });
439
- // Pins the stylesheet defaults to the JS geometry fallbacks so the two copies cannot drift apart.
440
- it('71. the stylesheet defaults still match the JS geometry fallbacks', async () => {
441
- const el = await fixture(html `
442
- <nile-app-shell
443
- style="width: 1440px; height: 600px; --nile-spacing-xs: 4px;"
444
- >
445
- <nav slot="side-nav">nav</nav>
446
- <p>page</p>
447
- </nile-app-shell>
448
- `);
449
- await el.updateComplete;
450
- const value = (name) => parseFloat(getComputedStyle(el).getPropertyValue(name));
451
- // No theme sheet here, so the nav track falls to its own enterprise-pair literals, which is what _geometry() carries too.
452
- expect(value('--nile-app-shell-side-nav-width')).to.equal(240);
453
- expect(value('--nile-app-shell-side-nav-rail-width')).to.equal(70);
454
- expect(value('--nile-app-shell-gutter')).to.equal(4);
455
- expect(value('--nile-app-shell-content-min-width')).to.equal(640);
456
- expect(value('--nile-app-shell-aside-width')).to.equal(320);
457
- expect(value('--nile-app-shell-panel-width')).to.equal(480);
458
- });
459
- // The nav track mirrors nile-side-bar's token expressions and resolves per theme.
460
- it('78. resolves the nav track per theme, as nile-side-bar does', async () => {
461
- const track = async (tokens) => {
462
- const el = await fixture(html `
463
- <nile-app-shell style="width: 1440px; height: 600px; ${tokens}">
464
- <nav slot="side-nav">nav</nav>
465
- <p>page</p>
466
- </nile-app-shell>
467
- `);
468
- await el.updateComplete;
469
- const read = (name) => parseFloat(getComputedStyle(el).getPropertyValue(name));
470
- return [
471
- read('--nile-app-shell-side-nav-width'),
472
- read('--nile-app-shell-side-nav-rail-width'),
473
- ];
474
- };
475
- expect(await track('--nile-width-240px: 240px; --nile-width-70px: 70px;'), 'enterprise').to.deep.equal([240, 70]);
476
- expect(await track('--ng-spacing-296: 296px; --ng-spacing-68: 68px;'), 'nxtgen').to.deep.equal([296, 68]);
477
- });
478
- // The nav rails at the row's own theme-dependent width requirement (enterprise 1368, nxtgen 1424), with docked-rail-breakpoint at 0 so the measured value governs.
479
- it('72. rails the nav at the row’s own width requirement, not a gutter early', async () => {
480
- const at = async (width, tokens = ENTERPRISE_NAV) => {
481
- const el = await fixture(html `
482
- <nile-app-shell
483
- style="width: ${width}px; height: 600px; ${tokens}"
484
- docked-rail-breakpoint="0"
485
- >
486
- <nav slot="side-nav">nav</nav>
487
- <p>page</p>
488
- <div slot="panel">assistant</div>
489
- </nile-app-shell>
490
- `);
491
- await waitUntil(() => el.hasAttribute('has-panel'));
492
- el.openPanel();
493
- await el.updateComplete;
494
- await settled(el);
495
- return el.navLocked;
496
- };
497
- // Exactly the requirement: the row fits, so the nav keeps its width.
498
- expect(await at(1368)).to.be.false;
499
- // One pixel under: the track is what the row cannot afford.
500
- expect(await at(1367)).to.be.true;
501
- expect(await at(1370)).to.be.false;
502
- // NxtGen's wider track moves the same boundary up by 56px, following whatever the side bar measures.
503
- expect(await at(1424, NXTGEN_NAV)).to.be.false;
504
- expect(await at(1423, NXTGEN_NAV)).to.be.true;
505
- // And the enterprise boundary is comfortably inside NxtGen's requirement.
506
- expect(await at(1368, NXTGEN_NAV)).to.be.true;
507
- });
508
232
  });
509
233
  // An empty flex item still takes the row's gap, pulling the bar's content short of its padding edge.
510
- describe('NileAppShell — the top bar reaches its padding edge', () => {
511
- it('28. an empty actions group reserves no gap', async () => {
512
- const el = await sized(1440);
513
- // The Ask button lives in that group, so drop it to leave it truly empty.
514
- el.noAsk = true;
515
- await settled(el);
516
- expect(el.hasAttribute('has-top-bar-actions')).to.be.false;
517
- expect(el.hasAttribute('has-ask')).to.be.false;
518
- const bar = el.shadowRoot.querySelector('.top-bar');
519
- const content = el.shadowRoot.querySelector('.top-bar-content');
520
- const padEnd = parseFloat(getComputedStyle(bar).paddingInlineEnd);
521
- const shortfall = bar.getBoundingClientRect().right - content.getBoundingClientRect().right;
522
- expect(Math.round(shortfall)).to.equal(Math.round(padEnd));
523
- });
524
- it('29. slotted actions mount the group', async () => {
525
- const el = await fixture(html `
526
- <nile-app-shell style="width: 1440px; height: 600px;">
527
- <nav slot="side-nav">nav</nav>
528
- <span slot="top-bar">Title</span>
529
- <button slot="top-bar-actions">Save</button>
530
- <p>page</p>
531
- </nile-app-shell>
532
- `);
533
- await waitUntil(() => el.hasAttribute('has-top-bar-actions'));
534
- const actions = el.shadowRoot.querySelector('.top-bar-actions');
535
- expect(getComputedStyle(actions).display).to.not.equal('none');
536
- expect(actions.getBoundingClientRect().width).to.be.greaterThan(0);
537
- });
538
- // The rule that separates the nav toggle from the header's content follows both a filled slot and a title block.
539
- it('76. draws the toggle rule for a title block, not just a filled slot', async () => {
540
- const rule = (el) => part(el, 'rule');
541
- const slotted = await fixture(html `
542
- <nile-app-shell style="width: 1440px; height: 600px;">
543
- <nav slot="side-nav">nav</nav>
544
- <span slot="top-bar">Title</span>
545
- <p>page</p>
546
- </nile-app-shell>
547
- `);
548
- await waitUntil(() => slotted.hasAttribute('has-top-bar'));
549
- expect(rule(slotted)).to.exist;
550
- // The same heading through pageTitle, top-bar slot empty.
551
- const titled = await fixture(html `
552
- <nile-app-shell
553
- style="width: 1440px; height: 600px;"
554
- pageTitle="Applications"
555
- >
556
- <nav slot="side-nav">nav</nav>
557
- <p>page</p>
558
- </nile-app-shell>
559
- `);
560
- await titled.updateComplete;
561
- expect(titled.hasAttribute('has-top-bar')).to.be.true;
562
- expect(rule(titled), 'a title block earns the rule too').to.exist;
563
- // Neither: the toggle stands alone, so there is nothing to separate.
564
- const bare = await fixture(html `
565
- <nile-app-shell style="width: 1440px; height: 600px;">
566
- <nav slot="side-nav">nav</nav>
567
- <p>page</p>
568
- </nile-app-shell>
569
- `);
570
- await bare.updateComplete;
571
- expect(rule(bare)).to.be.null;
572
- });
573
- });
574
234
  // The built-in Ask button turns on whether a panel is mounted for this route and calls openPanel().
575
235
  describe('NileAppShell — the built-in Ask button', () => {
576
236
  const ask = (el) => part(el, 'ask');
@@ -600,99 +260,6 @@ describe('NileAppShell — the built-in Ask button', () => {
600
260
  expect(el.askVisible).to.be.false;
601
261
  expect(ask(el)).to.be.null;
602
262
  });
603
- it('33. takes its label from ask-label', async () => {
604
- const el = await sized(1440);
605
- el.askLabel = 'Ask Aquera';
606
- await el.updateComplete;
607
- expect(ask(el).textContent.trim()).to.equal('Ask Aquera');
608
- });
609
- it('34. keeps the actions group mounted on its own', async () => {
610
- const el = await sized(1440);
611
- await settled(el);
612
- // Nothing is slotted into top-bar-actions, but the Ask button lives there.
613
- expect(el.hasAttribute('has-top-bar-actions')).to.be.false;
614
- expect(el.hasAttribute('has-ask')).to.be.true;
615
- const actions = el.shadowRoot.querySelector('.top-bar-actions');
616
- expect(getComputedStyle(actions).display).to.not.equal('none');
617
- expect(actions.getBoundingClientRect().width).to.be.greaterThan(0);
618
- });
619
- // Amendment A (M8): the design's Ask is the secondary button, not the filled primary.
620
- it('34b. renders Ask as the secondary variant', async () => {
621
- const el = await sized(1440);
622
- expect(ask(el).getAttribute('variant')).to.equal('secondary');
623
- });
624
- // Amendment A (M9, M10): app actions, a 16px divider, then Ask, 16px apart; with no app actions, no divider.
625
- it('34c. draws a divider before Ask only when the page slots actions, 16px from both', async () => {
626
- const alone = await sized(1440);
627
- await settled(alone);
628
- expect(part(alone, 'ask-rule')).to.be.null;
629
- const el = await fixture(html `
630
- <nile-app-shell style="width: 1440px; height: 600px; --ng-spacing-xl: 16px;">
631
- <nav slot="side-nav">nav</nav>
632
- <span slot="top-bar">Title</span>
633
- <button slot="top-bar-actions" id="one">One</button>
634
- <button slot="top-bar-actions" id="two">Two</button>
635
- <p>page</p>
636
- <div slot="panel">assistant</div>
637
- </nile-app-shell>
638
- `);
639
- await waitUntil(() => el.hasAttribute('has-top-bar-actions'));
640
- await el.updateComplete;
641
- const rule = part(el, 'ask-rule');
642
- expect(rule).to.exist;
643
- const one = el.querySelector('#one').getBoundingClientRect();
644
- const two = el.querySelector('#two').getBoundingClientRect();
645
- const ruleBox = rule.getBoundingClientRect();
646
- const askBox = ask(el).getBoundingClientRect();
647
- expect(Math.round(ruleBox.height)).to.equal(16);
648
- expect(Math.round(two.left - one.right)).to.equal(16);
649
- expect(Math.round(ruleBox.left - two.right)).to.equal(16);
650
- expect(Math.round(askBox.left - ruleBox.left)).to.equal(16);
651
- // Order: the page's actions, the divider, then Ask.
652
- /* eslint-disable-next-line no-bitwise */
653
- const ruleBeforeAsk = rule.compareDocumentPosition(ask(el)) & Node.DOCUMENT_POSITION_FOLLOWING;
654
- expect(ruleBeforeAsk).to.be.greaterThan(0);
655
- el.noAsk = true;
656
- await el.updateComplete;
657
- expect(part(el, 'ask-rule'), 'no Ask, no divider').to.be.null;
658
- });
659
- // The shell draws its icon controls as bare glyphs via ::part(base), overriding nile-button's circle and ghost surface.
660
- const utilityBase = (el, name) => part(el, name).shadowRoot.querySelector('[part~="base"]');
661
- it('35. draws its icon controls with no resting surface', async () => {
662
- const el = await sized(1440);
663
- el.openPanel();
664
- await el.updateComplete;
665
- for (const name of ['nav-toggle', 'panel-close']) {
666
- const base = utilityBase(el, name);
667
- expect(getComputedStyle(base).backgroundColor).to.equal('rgba(0, 0, 0, 0)');
668
- }
669
- });
670
- it('36. sizes its icon controls to the utility box, not the button circle', async () => {
671
- const el = await sized(1440);
672
- el.openPanel();
673
- await el.updateComplete;
674
- for (const name of ['nav-toggle', 'panel-close']) {
675
- const box = utilityBase(el, name).getBoundingClientRect();
676
- expect(box.width).to.equal(32);
677
- expect(box.height).to.equal(32);
678
- }
679
- });
680
- it('37. holds the panel back control until panelBack asks for it', async () => {
681
- const el = await sized(1440);
682
- el.openPanel();
683
- await el.updateComplete;
684
- const mark = el.shadowRoot.querySelector('.panel-mark');
685
- // Not rendered at all in the root view, so no stylesheet override can surface it.
686
- expect(part(el, 'panel-back')).to.not.exist;
687
- expect(getComputedStyle(mark).display).to.not.equal('none');
688
- el.panelBack = true;
689
- await el.updateComplete;
690
- const back = part(el, 'panel-back');
691
- expect(back).to.exist;
692
- expect(getComputedStyle(back).display).to.not.equal('none');
693
- // The back control stands where the brand mark stands in the root view.
694
- expect(getComputedStyle(mark).display).to.equal('none');
695
- });
696
263
  it('38. emits nile-panel-back and takes its label from panelBackLabel', async () => {
697
264
  const el = await sized(1440);
698
265
  el.panelBack = true;
@@ -707,16 +274,6 @@ describe('NileAppShell — the built-in Ask button', () => {
707
274
  // The shell keeps no view stack, so going back leaves the panel open.
708
275
  expect(el.panelOpen).to.be.true;
709
276
  });
710
- it('81. goBackPanel() emits nile-panel-back, and goBack() stays its alias', async () => {
711
- const el = await sized(1440);
712
- const named = oneEvent(el, 'nile-panel-back');
713
- el.goBackPanel();
714
- expect(await named).to.exist;
715
- // Deprecated, but still the same event: existing callers keep working.
716
- const aliased = oneEvent(el, 'nile-panel-back');
717
- el.goBack();
718
- expect(await aliased).to.exist;
719
- });
720
277
  });
721
278
  describe('NileAppShell — the tab strip', () => {
722
279
  /** The strip is slot-driven, so it needs something in the slot to exist. */
@@ -736,11 +293,6 @@ describe('NileAppShell — the tab strip', () => {
736
293
  return el;
737
294
  };
738
295
  const strip = (el) => el.shadowRoot.querySelector('.tabs');
739
- it('39. mounts the strip for a filled slot', async () => {
740
- const el = await tabbed();
741
- expect(el.tabsVisible).to.be.true;
742
- expect(getComputedStyle(strip(el)).display).to.not.equal('none');
743
- });
744
296
  it('40. noTabs hides the strip without emptying the slot', async () => {
745
297
  const el = await tabbed();
746
298
  el.noTabs = true;
@@ -756,91 +308,6 @@ describe('NileAppShell — the tab strip', () => {
756
308
  expect(el.tabsVisible).to.be.true;
757
309
  expect(getComputedStyle(strip(el)).display).to.not.equal('none');
758
310
  });
759
- // has-tabs advertises the visible strip, not the filled slot, matching has-panel and has-ask.
760
- it('68. has-tabs follows the visible strip, not the filled slot', async () => {
761
- // Slotted, not switched off: the strip is up and the flag is on.
762
- const el = await tabbed();
763
- expect(el.tabsVisible).to.be.true;
764
- expect(el.hasAttribute('has-tabs')).to.be.true;
765
- // Slotted, switched off: the slot stays filled, the flag goes with the strip.
766
- el.noTabs = true;
767
- await el.updateComplete;
768
- expect(el.querySelector('nile-nav-tab-group')).to.exist;
769
- expect(el.hasAttribute('has-tabs')).to.be.false;
770
- expect(getComputedStyle(strip(el)).display).to.equal('none');
771
- // And back, so the flag is not a one-way latch.
772
- el.noTabs = false;
773
- await el.updateComplete;
774
- expect(el.hasAttribute('has-tabs')).to.be.true;
775
- // Nothing slotted: no strip, no flag, whatever noTabs says.
776
- const bare = await sized(1440);
777
- await settled(bare);
778
- expect(bare.hasAttribute('has-tabs')).to.be.false;
779
- bare.noTabs = true;
780
- await bare.updateComplete;
781
- expect(bare.hasAttribute('has-tabs')).to.be.false;
782
- });
783
- it('41. leaves the strip off when the slot is empty', async () => {
784
- const el = await sized(1440);
785
- await settled(el);
786
- expect(el.hasAttribute('has-tabs')).to.be.false;
787
- expect(el.tabsVisible).to.be.false;
788
- });
789
- it('77. sizes bare slotted tab controls to their labels, not the strip', async () => {
790
- const el = await fixture(html `
791
- <nile-app-shell style="width: 1176px; height: 600px; ${HEADER_TOKENS}">
792
- <nav slot="side-nav">nav</nav>
793
- <span slot="top-bar">Title</span>
794
- <button slot="tabs" id="short">A</button>
795
- <button slot="tabs" id="long">A considerably longer tab label</button>
796
- <p>page</p>
797
- </nile-app-shell>
798
- `);
799
- await waitUntil(() => el.hasAttribute('has-tabs'));
800
- await settled(el);
801
- const short = el.querySelector('#short').getBoundingClientRect().width;
802
- const long = el.querySelector('#long').getBoundingClientRect().width;
803
- // Stretched, they would be equal; sized to content they are not close.
804
- expect(long).to.be.greaterThan(short * 2);
805
- });
806
- it('43. leaves the slotted strip one rule, edge to edge', async () => {
807
- const el = await tabbed();
808
- const group = el.querySelector('nile-nav-tab-group');
809
- const groupStyle = getComputedStyle(group);
810
- expect(groupStyle.getPropertyValue('--track-width').trim()).to.equal('0px');
811
- expect(groupStyle.alignSelf).to.equal('flex-end');
812
- // The region's rule is as wide as the container it closes, padding and all.
813
- const container = el.shadowRoot.querySelector('.container');
814
- const stripWidth = strip(el).getBoundingClientRect().width;
815
- const inner = container.getBoundingClientRect().width -
816
- parseFloat(getComputedStyle(container).borderLeftWidth) -
817
- parseFloat(getComputedStyle(container).borderRightWidth);
818
- expect(Math.round(stripWidth)).to.equal(Math.round(inner));
819
- // The group is wholly inside the region, and ends where the rule is.
820
- const strippedBottom = strip(el).getBoundingClientRect().bottom;
821
- const groupBottom = group.getBoundingClientRect().bottom;
822
- expect(strippedBottom - groupBottom).to.be.lessThan(2);
823
- });
824
- // The Header Bar draws no rule of its own; the one divider belongs to the tab rail, so switching the strip off leaves the header with no rule.
825
- it('42. draws the header rule on the strip only, never on the bar', async () => {
826
- const el = await tabbed();
827
- const bar = el.shadowRoot.querySelector('.container > .top-bar');
828
- expect(parseFloat(getComputedStyle(bar).borderBottomWidth)).to.equal(0);
829
- expect(parseFloat(getComputedStyle(strip(el)).borderBottomWidth)).to.be.greaterThan(0);
830
- expect(getComputedStyle(strip(el)).borderBottomColor).to.not.equal('rgba(0, 0, 0, 0)');
831
- // No tabs, no rule anywhere in the header block.
832
- el.noTabs = true;
833
- await el.updateComplete;
834
- expect(parseFloat(getComputedStyle(bar).borderBottomWidth)).to.equal(0);
835
- });
836
- // The bar and the strip sit flush, with the stroke as the separation, not space.
837
- it('62. leaves no vertical gap between the bar and the strip', async () => {
838
- const el = await tabbed();
839
- const bar = el.shadowRoot.querySelector('.container > .top-bar');
840
- const gap = strip(el).getBoundingClientRect().top -
841
- bar.getBoundingClientRect().bottom;
842
- expect(Math.abs(gap)).to.be.lessThan(0.5);
843
- });
844
311
  });
845
312
  // The test page loads no theme sheet, so the header fixtures carry the nxtgen token values the title block and tab row read.
846
313
  const HEADER_TOKENS = [
@@ -854,6 +321,7 @@ const HEADER_TOKENS = [
854
321
  '--ng-spacing-lg: 12px',
855
322
  '--ng-spacing-xl: 16px',
856
323
  '--ng-spacing-3xl: 24px',
324
+ '--ng-height-36px: 36px',
857
325
  '--ng-font-size-text-xs: 12px',
858
326
  '--ng-line-height-text-xs: 18px',
859
327
  '--ng-font-size-text-sm: 14px',
@@ -902,54 +370,6 @@ const header = async (axes = {}) => {
902
370
  };
903
371
  // The header title block: the shell's own heading, the Leading axis, the badge and the description line.
904
372
  describe('NileAppShell — the header title block', () => {
905
- it('44. draws no title block at all until an axis asks for one', async () => {
906
- const el = await header();
907
- expect(el.headerBack).to.be.false;
908
- expect(el.hasAttribute('has-app-icon')).to.be.false;
909
- expect(part(el, 'title-area')).to.be.null;
910
- expect(part(el, 'page-title')).to.be.null;
911
- expect(part(el, 'description')).to.be.null;
912
- expect(part(el, 'badge')).to.be.null;
913
- expect(el.hasAttribute('has-description')).to.be.false;
914
- });
915
- // description and badge are modifiers on the page title, so neither mounts the title block by itself.
916
- it('73. does not mount a title block for a description or badge alone', async () => {
917
- for (const axes of [
918
- { description: 'Manage the apps connected to this tenant' },
919
- { badge: '94 apps' },
920
- { description: 'Manage the apps', badge: '94 apps' },
921
- ]) {
922
- const el = await header(axes);
923
- const label = JSON.stringify(axes);
924
- expect(part(el, 'title-area'), label).to.be.null;
925
- expect(part(el, 'description'), label).to.be.null;
926
- expect(part(el, 'badge'), label).to.be.null;
927
- // And no height is reserved for the line that cannot render.
928
- expect(el.hasAttribute('has-description'), label).to.be.false;
929
- }
930
- });
931
- it('74. brings both back as soon as there is a title to hang them on', async () => {
932
- const el = await header({
933
- description: 'Manage the apps connected to this tenant',
934
- badge: '94 apps',
935
- });
936
- expect(part(el, 'title-area')).to.be.null;
937
- el.pageTitle = 'Applications';
938
- await el.updateComplete;
939
- expect(part(el, 'title-area')).to.exist;
940
- expect(part(el, 'description')).to.exist;
941
- expect(part(el, 'badge')).to.exist;
942
- expect(el.hasAttribute('has-description')).to.be.true;
943
- });
944
- // The back arrow is the exception: it stands on its own but brings no empty title stack.
945
- it('75. mounts the back arrow on its own, without an empty title stack', async () => {
946
- const el = await header({ leading: 'back' });
947
- expect(part(el, 'title-area')).to.exist;
948
- expect(part(el, 'back')).to.exist;
949
- expect(part(el, 'page-title')).to.be.null;
950
- expect(el.shadowRoot.querySelector('.title-stack')).to.be.null;
951
- expect(el.shadowRoot.querySelector('.title-row')).to.be.null;
952
- });
953
373
  it('45. renders pageTitle as the header’s own heading', async () => {
954
374
  const el = await header({ pageTitle: 'Applications' });
955
375
  const title = part(el, 'page-title');
@@ -979,65 +399,6 @@ describe('NileAppShell — the header title block', () => {
979
399
  expect(marked.headingLevel).to.equal(3);
980
400
  expect(part(marked, 'page-title').getAttribute('aria-level')).to.equal('3');
981
401
  });
982
- it('80. clamps an invalid heading level to a safe aria-level', async () => {
983
- const el = await header({ pageTitle: 'Applications' });
984
- const cases = [
985
- [0, '1'],
986
- [-3, '1'],
987
- [7, '6'],
988
- [2.7, '2'],
989
- [NaN, '1'],
990
- ['abc', '1'],
991
- [undefined, '1'],
992
- ];
993
- for (const [value, expected] of cases) {
994
- el.headingLevel = value;
995
- await el.updateComplete;
996
- expect(part(el, 'page-title').getAttribute('aria-level'), String(value)).to.equal(expected);
997
- }
998
- // From markup too: a non-numeric attribute still leaves a level-1 heading.
999
- const marked = await fixture(html `
1000
- <nile-app-shell pageTitle="Applications" headingLevel="nope">
1001
- <p>page</p>
1002
- </nile-app-shell>
1003
- `);
1004
- await marked.updateComplete;
1005
- expect(part(marked, 'page-title').getAttribute('aria-level')).to.equal('1');
1006
- expect(part(marked, 'page-title').textContent.trim()).to.equal('Applications');
1007
- });
1008
- // The title block renders before the top-bar slot, so a page slotting its own title keeps its output.
1009
- it('46. renders the block before whatever the page slots into top-bar', async () => {
1010
- const el = await fixture(html `
1011
- <nile-app-shell style="width: 1176px; height: 800px;" pageTitle="Apps">
1012
- <nav slot="side-nav">nav</nav>
1013
- <span slot="top-bar" id="own">the page’s own bar</span>
1014
- <p>page</p>
1015
- </nile-app-shell>
1016
- `);
1017
- await el.updateComplete;
1018
- const area = part(el, 'title-area');
1019
- const slot = el.shadowRoot.querySelector('slot[name="top-bar"]');
1020
- expect(el.querySelector('#own').assignedSlot).to.equal(slot);
1021
- /* eslint-disable-next-line no-bitwise */
1022
- const areaIsFirst = area.compareDocumentPosition(slot) & Node.DOCUMENT_POSITION_FOLLOWING;
1023
- expect(areaIsFirst).to.be.greaterThan(0);
1024
- });
1025
- it('47. mounts the top bar for a title block on its own', async () => {
1026
- const el = await fixture(html `
1027
- <nile-app-shell
1028
- style="width: 1176px; height: 800px;"
1029
- pageTitle="Applications"
1030
- no-nav-toggle
1031
- >
1032
- <p>page</p>
1033
- </nile-app-shell>
1034
- `);
1035
- await el.updateComplete;
1036
- // Nothing is slotted anywhere, and there is no nav toggle to mount it.
1037
- expect(el.hasAttribute('has-side-nav')).to.be.false;
1038
- expect(el.hasAttribute('has-top-bar')).to.be.true;
1039
- expect(part(el, 'page-title')).to.exist;
1040
- });
1041
402
  it('48. renders a badge after the title, and only when set', async () => {
1042
403
  const plain = await header({ pageTitle: 'Applications' });
1043
404
  expect(part(plain, 'badge')).to.be.null;
@@ -1050,73 +411,6 @@ describe('NileAppShell — the header title block', () => {
1050
411
  Node.DOCUMENT_POSITION_FOLLOWING;
1051
412
  expect(titleIsFirst).to.be.greaterThan(0);
1052
413
  });
1053
- // The badge's surface tokens must resolve on both the enterprise and nxtgen sheets, so each test pins one sheet on its own.
1054
- const badged = (tokens) => fixture(html `
1055
- <nile-app-shell
1056
- style="width: 1176px; height: 800px; ${tokens}"
1057
- pageTitle="Applications"
1058
- badge="Beta"
1059
- >
1060
- <nav slot="side-nav">nav</nav>
1061
- <p>page</p>
1062
- </nile-app-shell>
1063
- `);
1064
- it('69. resolves the badge on the enterprise sheet alone', async () => {
1065
- const el = await badged([
1066
- '--nile-border-width-1: 1px',
1067
- '--nile-colors-neutral-100: #FAFAFA',
1068
- '--nile-colors-neutral-400: #E6E9EB',
1069
- '--nile-colors-dark-500: #636363',
1070
- // The ink the badge must not fall back to by inheriting the title's.
1071
- '--nile-colors-dark-900: #000000',
1072
- ].join('; '));
1073
- const style = getComputedStyle(part(el, 'badge'));
1074
- expect(style.backgroundColor).to.equal('rgb(250, 250, 250)');
1075
- expect(style.borderTopColor).to.equal('rgb(230, 233, 235)');
1076
- expect(style.borderTopWidth).to.equal('1px');
1077
- expect(style.color).to.equal('rgb(99, 99, 99)');
1078
- });
1079
- it('70. resolves the badge on the nxtgen sheet alone', async () => {
1080
- const el = await badged([
1081
- '--ng-border-width-1: 1px',
1082
- '--ng-componentcolors-utility-gray-50: #FAFAFAFF',
1083
- '--ng-componentcolors-utility-gray-200: #E9EAEBFF',
1084
- '--ng-componentcolors-utility-gray-700: #414651FF',
1085
- '--ng-colors-text-primary-900: #181D27FF',
1086
- ].join('; '));
1087
- const style = getComputedStyle(part(el, 'badge'));
1088
- expect(style.backgroundColor).to.equal('rgb(250, 250, 250)');
1089
- expect(style.borderTopColor).to.equal('rgb(233, 234, 235)');
1090
- expect(style.borderTopWidth).to.equal('1px');
1091
- expect(style.color).to.equal('rgb(65, 70, 81)');
1092
- });
1093
- it('49. renders a description line, and reserves nothing without one', async () => {
1094
- const off = await header({ pageTitle: 'Applications' });
1095
- expect(off.hasAttribute('has-description')).to.be.false;
1096
- expect(part(off, 'description')).to.be.null;
1097
- const el = await header({
1098
- pageTitle: 'Applications',
1099
- description: 'Manage the apps connected to this tenant',
1100
- });
1101
- const line = part(el, 'description');
1102
- expect(el.hasAttribute('has-description')).to.be.true;
1103
- expect(line).to.exist;
1104
- expect(line.textContent.trim()).to.equal('Manage the apps connected to this tenant');
1105
- // Clearing the string takes the axis back off.
1106
- el.description = '';
1107
- await el.updateComplete;
1108
- expect(el.hasAttribute('has-description')).to.be.false;
1109
- expect(part(el, 'description')).to.be.null;
1110
- });
1111
- it('50. headerBack defaults to false and draws no arrow, and no slotted icon draws no icon', async () => {
1112
- const el = await header({ pageTitle: 'Applications' });
1113
- expect(el.headerBack).to.be.false;
1114
- expect(el.hasAttribute('headerback')).to.be.false;
1115
- expect(part(el, 'back')).to.be.null;
1116
- expect(el.hasAttribute('has-app-icon')).to.be.false;
1117
- expect(getComputedStyle(part(el, 'app-icon')).display).to.equal('none');
1118
- expect(el.shadowRoot.querySelector('.crumb-divider')).to.be.null;
1119
- });
1120
414
  // Amendment A: the back control is the arrow alone, with no previous-page label and no slash.
1121
415
  it('51. headerBack draws the narrow-left arrow only, then the title', async () => {
1122
416
  const el = await header({ pageTitle: 'Applications', leading: 'back' });
@@ -1139,35 +433,12 @@ describe('NileAppShell — the header title block', () => {
1139
433
  expect(backIsFirst).to.be.greaterThan(0);
1140
434
  expect(back.getBoundingClientRect().width).to.be.greaterThan(0);
1141
435
  });
1142
- // camelCase property, attribute: true + reflect: true — the title-block pattern.
1143
- it('51b. headerBack and headerBackLabel work from markup and reflect to their attributes', async () => {
1144
- const marked = await fixture(html `
1145
- <nile-app-shell pageTitle="Applications" headerBack headerBackLabel="Retour">
1146
- <p>page</p>
1147
- </nile-app-shell>
1148
- `);
1149
- await marked.updateComplete;
1150
- expect(marked.headerBack).to.be.true;
1151
- expect(marked.headerBackLabel).to.equal('Retour');
1152
- expect(part(marked, 'back')).to.exist;
1153
- const el = await header({ pageTitle: 'Applications' });
1154
- el.headerBack = true;
1155
- el.headerBackLabel = 'Go back';
1156
- await el.updateComplete;
1157
- expect(el.hasAttribute('headerback')).to.be.true;
1158
- expect(el.getAttribute('headerbacklabel')).to.equal('Go back');
1159
- expect(part(el, 'back')).to.exist;
1160
- el.headerBack = false;
1161
- await el.updateComplete;
1162
- expect(el.hasAttribute('headerback')).to.be.false;
1163
- expect(part(el, 'back')).to.be.null;
1164
- });
1165
436
  // headerBackLabel names the control for assistive tech and is never drawn as text.
1166
437
  it('52. headerBackLabel is the accessible name only, never visible text', async () => {
1167
438
  const el = await header({ pageTitle: 'Applications', leading: 'back' });
1168
439
  const back = part(el, 'back');
1169
440
  expect(back.getAttribute('aria-label')).to.equal('Back');
1170
- expect(back.getAttribute('title')).to.equal('Back');
441
+ expect(back.closest('nile-lite-tooltip').content).to.equal('Back');
1171
442
  expect(back.querySelector('nile-glyph').getAttribute('aria-hidden')).to.not.equal('false');
1172
443
  el.headerBackLabel = 'Integrations';
1173
444
  await el.updateComplete;
@@ -1202,212 +473,6 @@ describe('NileAppShell — the header title block', () => {
1202
473
  // It is the page's event, not the panel's: nothing about the panel moves.
1203
474
  expect(el.panelOpen).to.be.false;
1204
475
  });
1205
- // A nile-click bubbling up from page content must not read as the header back press.
1206
- it('53b. a nile-click from slotted content is distinguishable by its target', async () => {
1207
- const el = await header({ pageTitle: 'Applications', leading: 'back' });
1208
- const page = el.querySelector('p');
1209
- const seen = [];
1210
- el.addEventListener('nile-click', e => seen.push(e.target));
1211
- page.dispatchEvent(new CustomEvent('nile-click', {
1212
- bubbles: true,
1213
- composed: true,
1214
- detail: { value: 'back' },
1215
- }));
1216
- part(el, 'back').click();
1217
- expect(seen).to.deep.equal([page, el]);
1218
- });
1219
- // The four combinations are independent; with an app icon the description sits under the icon, otherwise under the title.
1220
- it('63. aligns the description under the app icon when there is one, else the title', async () => {
1221
- for (const leading of LEADINGS) {
1222
- const el = await header({
1223
- pageTitle: 'Applications',
1224
- description: 'Manage the apps connected to this tenant',
1225
- leading,
1226
- });
1227
- const anchor = hasIcon(leading) ? part(el, 'app-icon') : part(el, 'page-title');
1228
- const description = part(el, 'description').getBoundingClientRect();
1229
- expect(Math.round(description.left), leading).to.equal(Math.round(anchor.getBoundingClientRect().left));
1230
- }
1231
- });
1232
- // The arrow sits beside the stack; the app icon is the first thing in the title row.
1233
- it('64. renders the arrow beside the title stack and the app icon inside the title row', async () => {
1234
- for (const leading of LEADINGS) {
1235
- const el = await header({ pageTitle: 'Applications', leading });
1236
- const row = el.shadowRoot.querySelector('.title-row');
1237
- const area = part(el, 'title-area');
1238
- const back = part(el, 'back');
1239
- const icon = part(el, 'app-icon');
1240
- expect(!!back, `${leading} back`).to.equal(hasBack(leading));
1241
- expect(el.hasAttribute('has-app-icon'), `${leading} icon`).to.equal(hasIcon(leading));
1242
- if (back) {
1243
- expect(row.contains(back), leading).to.be.false;
1244
- expect(area.contains(back), leading).to.be.true;
1245
- }
1246
- expect(row.contains(icon), leading).to.be.true;
1247
- if (hasIcon(leading)) {
1248
- expect(row.firstElementChild, leading).to.equal(icon);
1249
- }
1250
- }
1251
- });
1252
- // The arrow sits on the title's row, and its offset does not move when a description appears.
1253
- it('65. sits the back arrow on the title row, description or not', async () => {
1254
- for (const leading of ['back', 'back+app-icon']) {
1255
- for (const description of ['', 'Manage the apps connected here']) {
1256
- const el = await header({
1257
- pageTitle: 'Applications',
1258
- leading,
1259
- description,
1260
- });
1261
- const title = part(el, 'page-title').getBoundingClientRect();
1262
- const box = el.shadowRoot.querySelector('.back-line');
1263
- const label = `${leading} description=${!!description}`;
1264
- // The line box is the title's own, and it starts where the title does.
1265
- expect(Math.round(box.getBoundingClientRect().top), label).to.equal(Math.round(title.top));
1266
- expect(Math.round(box.getBoundingClientRect().height), label).to.equal(24);
1267
- }
1268
- }
1269
- });
1270
- // Figma Title Area: arrow → 16px → [icon → 8px → title]; Breadcrumb / 01: toggle glyph → 16px → divider (16px tall) → 16px.
1271
- it('65b. spaces the toggle, divider, arrow, icon and title as the design does', async () => {
1272
- const el = await header({ pageTitle: 'Applications', leading: 'back+app-icon' });
1273
- const toggle = part(el, 'nav-toggle');
1274
- const glyph = toggle.querySelector('nile-glyph') ?? toggle;
1275
- const rule = part(el, 'rule').getBoundingClientRect();
1276
- const backGlyph = part(el, 'back').querySelector('nile-glyph').getBoundingClientRect();
1277
- const icon = part(el, 'app-icon').getBoundingClientRect();
1278
- const title = part(el, 'page-title').getBoundingClientRect();
1279
- const toggleGlyph = glyph.getBoundingClientRect();
1280
- expect(Math.round(rule.height)).to.equal(16);
1281
- expect(Math.round(rule.left - toggleGlyph.right)).to.equal(16);
1282
- expect(Math.round(backGlyph.left - rule.left)).to.equal(16);
1283
- expect(Math.round(backGlyph.width)).to.equal(20);
1284
- expect(Math.round(icon.left - backGlyph.right)).to.equal(16);
1285
- expect(Math.round(title.left - icon.right)).to.equal(8);
1286
- // Without an icon the title takes the icon's place, 16px after the arrow.
1287
- const plain = await header({ pageTitle: 'Applications', leading: 'back' });
1288
- const plainArrow = part(plain, 'back').querySelector('nile-glyph').getBoundingClientRect();
1289
- const plainTitle = part(plain, 'page-title').getBoundingClientRect();
1290
- expect(Math.round(plainTitle.left - plainArrow.right)).to.equal(16);
1291
- });
1292
- // The app-icon slot works with or without headerBack, and with or without a title.
1293
- it('65c. shows a slotted app icon independently of headerBack', async () => {
1294
- const iconOnly = await header({ pageTitle: 'Applications', leading: 'app-icon' });
1295
- expect(part(iconOnly, 'back')).to.be.null;
1296
- expect(part(iconOnly, 'app-icon').getBoundingClientRect().width).to.equal(20);
1297
- // An icon on its own still mounts the title block.
1298
- const bare = await fixture(html `
1299
- <nile-app-shell style="width: 1176px; height: 800px; ${HEADER_TOKENS}">
1300
- <nav slot="side-nav">nav</nav>
1301
- <span slot="app-icon" id="mark">A</span>
1302
- <p>page</p>
1303
- </nile-app-shell>
1304
- `);
1305
- await waitUntil(() => bare.hasAttribute('has-app-icon'));
1306
- await bare.updateComplete;
1307
- expect(part(bare, 'title-area')).to.exist;
1308
- expect(part(bare, 'app-icon').getBoundingClientRect().width).to.equal(20);
1309
- // Removing the mark takes the icon (and the block it alone mounted) away again.
1310
- bare.querySelector('#mark').remove();
1311
- await waitUntil(() => !bare.hasAttribute('has-app-icon'));
1312
- await bare.updateComplete;
1313
- expect(part(bare, 'title-area')).to.be.null;
1314
- });
1315
- // Amendment A (M11): the inactive tab colour is scoped to the shell's strip; a standalone group keeps its defaults.
1316
- it('65e. colours the inactive header tabs through the shell only', async () => {
1317
- const colours = [
1318
- '--ng-colors-fg-brand-primary-alt: rgb(21, 94, 239)',
1319
- '--ng-colors-text-brand-secondary-700: rgb(0, 78, 235)',
1320
- '--ng-colors-text-quaternary-500: rgb(113, 118, 128)',
1321
- '--ng-colors-text-secondary-700: rgb(65, 70, 81)',
1322
- ].join('; ');
1323
- const el = await header({ pageTitle: 'Applications', tabs: true });
1324
- el.setAttribute('style', `${el.getAttribute('style')}; ${colours}`);
1325
- await el.updateComplete;
1326
- const group = el.querySelector('nile-nav-tab-group');
1327
- const inactive = el.querySelectorAll('nile-nav-tab')[1];
1328
- // Known limitation (M12, A-7): the shell sets no indicator colour, because nile-nav-tab-group's top indicator
1329
- // hard-codes its token in its own shadow tree; the indicator keeps the group's default.
1330
- const indicatorOf = (g) => getComputedStyle(g.shadowRoot.querySelector('.nav-tab-group__indicator'))
1331
- .borderBottomColor;
1332
- expect(indicatorOf(group)).to.equal('rgb(0, 78, 235)');
1333
- // The inactive label is remapped inside the shell only: nile-nav-tab itself is unchanged and still paints
1334
- // var(--nile-colors-dark-500, var(--ng-colors-text-secondary-700)); the shell points that fallback token at quaternary-500.
1335
- // (The painted ink sits inside nile-link, which this runner does not render; it is checked in the browser instead.)
1336
- const secondaryOf = (node) => getComputedStyle(node).getPropertyValue('--ng-colors-text-secondary-700').trim();
1337
- expect(secondaryOf(inactive)).to.equal('rgb(113, 118, 128)');
1338
- const sheets = customElements.get('nile-nav-tab').styles;
1339
- const tabStyles = [].concat(sheets).map(sheet => sheet.cssText).join('\n');
1340
- expect(tabStyles).to.include('color: var(--nile-colors-dark-500, var(--ng-colors-text-secondary-700));');
1341
- expect(tabStyles, 'no new hook on the shared component').to.not.include('--nile-nav-tab-text-color:');
1342
- // Nothing else in the shell's tree is remapped.
1343
- expect(secondaryOf(el)).to.equal('rgb(65, 70, 81)');
1344
- // Outside the shell nothing changes.
1345
- const standalone = await fixture(html `
1346
- <nile-nav-tab-group style="${colours}">
1347
- <nile-nav-tab slot="nav" panel="apps" active>Connected</nile-nav-tab>
1348
- <nile-nav-tab slot="nav" panel="approvals">Approvals</nile-nav-tab>
1349
- </nile-nav-tab-group>
1350
- `);
1351
- const loneTab = standalone.querySelectorAll('nile-nav-tab')[1];
1352
- expect(secondaryOf(loneTab), 'the global default is untouched').to.equal('rgb(65, 70, 81)');
1353
- await standalone.updateComplete;
1354
- expect(indicatorOf(standalone), 'a standalone group paints its own default').to.equal('rgb(0, 78, 235)');
1355
- });
1356
- it('65d. colours the description text-quaternary-500', async () => {
1357
- const el = await header({
1358
- pageTitle: 'Applications',
1359
- description: 'Manage the apps connected here',
1360
- });
1361
- el.style.setProperty('--ng-colors-text-quaternary-500', 'rgb(113, 118, 128)');
1362
- el.style.setProperty('--ng-colors-text-tertiary-600', 'rgb(1, 2, 3)');
1363
- expect(getComputedStyle(part(el, 'description')).color).to.equal('rgb(113, 118, 128)');
1364
- });
1365
- it('66. centres a 20px app icon in the 24px title row, two pixels down', async () => {
1366
- const el = await header({
1367
- pageTitle: 'Applications',
1368
- leading: 'app-icon',
1369
- description: 'Manage the apps connected here',
1370
- });
1371
- const title = part(el, 'page-title').getBoundingClientRect();
1372
- const icon = part(el, 'app-icon').getBoundingClientRect();
1373
- // (24 - 20) / 2 — structural, not an offset written anywhere.
1374
- expect(Math.round(icon.top - title.top)).to.equal(2);
1375
- });
1376
- // The app icon is sized apart from the utility controls, so retuning one cannot move the other.
1377
- it('67. sizes the app icon independently of the utility controls', async () => {
1378
- const el = await header({ pageTitle: 'Applications', leading: 'app-icon' });
1379
- const host = getComputedStyle(el);
1380
- expect(host.getPropertyValue('--nile-app-shell-app-icon-size').trim()).to.equal('20px');
1381
- expect(host.getPropertyValue('--nile-app-shell-utility-size').trim()).to.equal('32px');
1382
- el.style.setProperty('--nile-app-shell-app-icon-size', '28px');
1383
- await el.updateComplete;
1384
- expect(part(el, 'app-icon').getBoundingClientRect().width).to.equal(28);
1385
- // The nav toggle is untouched by that.
1386
- const toggle = part(el, 'nav-toggle');
1387
- const base = toggle.shadowRoot.querySelector('[part~="base"]');
1388
- expect(base.getBoundingClientRect().width).to.equal(32);
1389
- });
1390
- it('54. a slotted app icon draws a 20px block around the mark', async () => {
1391
- const el = await header({ pageTitle: 'Applications', leading: 'app-icon' });
1392
- const box = part(el, 'app-icon');
1393
- expect(box).to.exist;
1394
- expect(part(el, 'back')).to.be.null;
1395
- const rect = box.getBoundingClientRect();
1396
- // Its own size, not the 32px utility control box the nav toggle uses.
1397
- expect(rect.width).to.equal(20);
1398
- expect(rect.height).to.equal(20);
1399
- // The page's mark is assigned into the shell's box.
1400
- const slot = box.querySelector('slot[name="app-icon"]');
1401
- expect(slot).to.exist;
1402
- expect(slot.assignedElements()).to.deep.equal([
1403
- el.querySelector('#mark'),
1404
- ]);
1405
- // The block sits before the title, not after it.
1406
- /* eslint-disable-next-line no-bitwise */
1407
- const boxIsFirst = box.compareDocumentPosition(part(el, 'page-title')) &
1408
- Node.DOCUMENT_POSITION_FOLLOWING;
1409
- expect(boxIsFirst).to.be.greaterThan(0);
1410
- });
1411
476
  });
1412
477
  // The four header heights are viewport-height sensitive, so these tests set a viewport where the spec numbers apply.
1413
478
  describe('NileAppShell — the four header heights', () => {
@@ -1429,44 +494,6 @@ describe('NileAppShell — the four header heights', () => {
1429
494
  : bar(el).getBoundingClientRect().bottom;
1430
495
  return bottom - top;
1431
496
  };
1432
- it('55. is 68px with neither axis on, whatever the leading', async () => {
1433
- for (const leading of LEADINGS) {
1434
- const el = await header({ pageTitle: 'Applications', leading });
1435
- expect(bar(el).getBoundingClientRect().height, leading).to.equal(68);
1436
- // The leading axis changes what is in the bar, never how tall it is.
1437
- const area = part(el, 'title-area').getBoundingClientRect().height;
1438
- expect(area, leading).to.be.at.most(bar(el).clientHeight);
1439
- }
1440
- });
1441
- // A description adds its own line (24 title + 2 gap + 18 description = 44) in a 76px bar; asserted as the lines' own boxes.
1442
- it('56. is 76px with a description, and the second line fits it', async () => {
1443
- const el = await header({
1444
- pageTitle: 'Applications',
1445
- description: 'Manage the apps connected to this tenant',
1446
- });
1447
- expect(bar(el).getBoundingClientRect().height).to.equal(76);
1448
- const stack = el.shadowRoot.querySelector('.title-stack');
1449
- expect(part(el, 'page-title').getBoundingClientRect().height).to.equal(24);
1450
- expect(part(el, 'description').getBoundingClientRect().height).to.equal(18);
1451
- expect(stack.getBoundingClientRect().height).to.equal(44);
1452
- // Nothing is clipped: the stack sits wholly inside the bar's box.
1453
- const barBox = bar(el).getBoundingClientRect();
1454
- const stackBox = stack.getBoundingClientRect();
1455
- expect(stackBox.top).to.be.at.least(barBox.top);
1456
- expect(stackBox.bottom).to.be.at.most(barBox.bottom);
1457
- });
1458
- it('57. adds a 33px strip for tabs: 101px, and 109px with a description', async () => {
1459
- const tabbed = await header({ pageTitle: 'Applications', tabs: true });
1460
- expect(strip(tabbed).getBoundingClientRect().height).to.equal(33);
1461
- expect(headerBlock(tabbed)).to.equal(101);
1462
- const described = await header({
1463
- pageTitle: 'Applications',
1464
- description: 'Manage the apps connected to this tenant',
1465
- tabs: true,
1466
- });
1467
- expect(strip(described).getBoundingClientRect().height).to.equal(33);
1468
- expect(headerBlock(described)).to.equal(109);
1469
- });
1470
497
  // The three axes are independent, so all twelve combinations land on one of the four heights.
1471
498
  it('58. resolves every variant to exactly the four heights', async () => {
1472
499
  for (const leading of LEADINGS) {
@@ -1487,55 +514,280 @@ describe('NileAppShell — the four header heights', () => {
1487
514
  }
1488
515
  });
1489
516
  // The strip is a control row plus its rule; the row shrinks to fit via the group's own padding hook, staying shorter than the standalone group.
1490
- it('59. shrinks the slotted tab row to fit the strip, rather than crop it', async () => {
1491
- const el = await header({ pageTitle: 'Applications', tabs: true });
1492
- const standalone = await fixture(html `
1493
- <nile-nav-tab-group style="${HEADER_TOKENS}">
517
+ it('62b. is not a fixed height: a tall slotted description grows the bar, unclipped, and moves the tabs and page down', async () => {
518
+ const make = async (tall) => {
519
+ const el = await fixture(html `
520
+ <nile-app-shell style="width: 1176px; height: 900px; ${HEADER_TOKENS}" .pageTitle=${'Applications'}>
521
+ <nav slot="side-nav">nav</nav>
522
+ ${tall
523
+ ? html `<div slot="description" id="desc" style="height: 120px">Multi-line description</div>`
524
+ : html `<span slot="description" id="desc">Manage apps</span>`}
525
+ <nile-nav-tab-group slot="tabs">
1494
526
  <nile-nav-tab slot="nav" panel="apps" active>Connected</nile-nav-tab>
1495
- <nile-nav-tab slot="nav" panel="approvals">Approvals</nile-nav-tab>
1496
527
  </nile-nav-tab-group>
528
+ <p>page</p>
529
+ </nile-app-shell>
1497
530
  `);
1498
- const stripBox = strip(el).getBoundingClientRect();
1499
- const slottedRow = el.querySelector('nile-nav-tab-group').getBoundingClientRect();
1500
- const loneRow = standalone.getBoundingClientRect();
1501
- // The design's row: 0 + 20px label + 12px = 32, in a 33px strip.
1502
- expect(slottedRow.height).to.equal(32);
1503
- expect(stripBox.height).to.equal(33);
1504
- // The shell's hook is load-bearing: the same group is taller on its own.
1505
- expect(loneRow.height).to.be.greaterThan(slottedRow.height);
1506
- expect(loneRow.height).to.be.greaterThan(stripBox.height);
1507
- // Nothing is cropped and there is no slack: the row fills the strip above the rule it sits on.
1508
- expect(slottedRow.top).to.be.at.least(stripBox.top);
1509
- expect(slottedRow.bottom).to.be.at.most(stripBox.bottom);
1510
- expect(slottedRow.top - stripBox.top).to.equal(0);
1511
- });
1512
- it('60. drives the row through the group’s own padding hook', async () => {
531
+ await waitUntil(() => el.hasAttribute('has-tabs') && el.hasAttribute('has-description'));
532
+ await el.updateComplete;
533
+ return el;
534
+ };
535
+ const normal = await make(false);
536
+ const tall = await make(true);
537
+ expect(bar(normal).getBoundingClientRect().height).to.equal(76);
538
+ const grown = bar(tall).getBoundingClientRect();
539
+ expect(grown.height, 'one 120px slot: 16 + 24 + 2 + 120 + 16').to.equal(178);
540
+ const desc = tall.querySelector('#desc').getBoundingClientRect();
541
+ expect(desc.height, 'the slot keeps its own height, uncropped').to.equal(120);
542
+ expect(grown.bottom - desc.bottom, 'bottom padding intact').to.equal(16);
543
+ const title = part(tall, 'page-title').getBoundingClientRect();
544
+ expect(title.top - grown.top, 'top padding intact').to.equal(16);
545
+ expect(strip(tall).getBoundingClientRect().top, 'tabs sit directly under the grown bar').to.equal(grown.bottom);
546
+ const main = tall.shadowRoot.querySelector('.main');
547
+ expect(main.getBoundingClientRect().top).to.be.at.least(strip(tall).getBoundingClientRect().bottom);
548
+ expect(headerBlock(tall) - headerBlock(normal)).to.equal(178 - 76);
549
+ });
550
+ it('60b. draws one rule under the tabs: the strip\'s, with the group\'s own track at zero height', async () => {
1513
551
  const el = await header({ pageTitle: 'Applications', tabs: true });
1514
552
  const group = el.querySelector('nile-nav-tab-group');
1515
- const padding = getComputedStyle(group)
1516
- .getPropertyValue('--nile-nav-tab-padding')
1517
- .split(/\s+/)
1518
- .filter(Boolean);
1519
- // The tab node's padding is 0 / 4 / 12 / 4, the 12px bottom being the active indicator's band.
1520
- expect(padding).to.deep.equal(['0px', '4px', '12px', '4px']);
1521
- // The inter-tab gap is the group's own 12px and is deliberately untouched.
1522
- expect(getComputedStyle(group).getPropertyValue('--tab-gap').trim()).to.equal('12px');
553
+ const track = group.shadowRoot.querySelector('.nav-tab-group__indicator__path');
554
+ expect(getComputedStyle(track).height).to.equal('0px');
555
+ expect(getComputedStyle(strip(el)).borderBottomWidth).to.equal('1px');
1523
556
  });
1524
- // The compression under a short viewport is documented behaviour, asserted here to keep the resize honest.
1525
- it('61. compresses to 56/64px under 600px of viewport height', async () => {
1526
- await setViewport(SHORT);
1527
- try {
1528
- const plain = await header({ pageTitle: 'Applications' });
1529
- expect(bar(plain).getBoundingClientRect().height).to.equal(56);
1530
- const described = await header({
1531
- pageTitle: 'Applications',
1532
- description: 'Manage connected apps',
1533
- });
1534
- expect(bar(described).getBoundingClientRect().height).to.equal(64);
1535
- }
1536
- finally {
1537
- await setViewport(TALL);
1538
- }
557
+ });
558
+ // App shell audit (2026-10-01): the non-sidebar header and container items, asserted on NxtGen tokens with the enterprise values pinned.
559
+ describe('nile-app-shell breadcrumb slot', () => {
560
+ const shellWith = async (title, crumb, description = '') => {
561
+ const el = await fixture(html `
562
+ <nile-app-shell
563
+ style="width: 1176px; height: 800px; ${HEADER_TOKENS}"
564
+ .pageTitle=${title}
565
+ .description=${description}
566
+ >
567
+ ${crumb ? html `<nav slot="breadcrumb" id="crumb">Home / Settings</nav>` : ''}
568
+ <main>page</main>
569
+ </nile-app-shell>
570
+ `);
571
+ await el.updateComplete;
572
+ await new Promise(resolve => requestAnimationFrame(() => resolve(null)));
573
+ await el.updateComplete;
574
+ return el;
575
+ };
576
+ const row = (el) => el.shadowRoot.querySelector('[part~="breadcrumb"]');
577
+ const topBar = (el) => el.shadowRoot.querySelector('.top-bar');
578
+ const titleTop = (el) => el.shadowRoot.querySelector('[part~="page-title"]').getBoundingClientRect().top;
579
+ it('shows the slotted breadcrumb above the page title and grows the bar', async () => {
580
+ const el = await shellWith('Applications', true);
581
+ expect(el.hasAttribute('has-breadcrumb')).to.be.true;
582
+ const crumb = el.querySelector('#crumb');
583
+ expect(crumb.getBoundingClientRect().bottom).to.be.at.most(titleTop(el));
584
+ expect(topBar(el).getBoundingClientRect().height).to.be.greaterThan(64);
585
+ });
586
+ });
587
+ describe('NileAppShell — page-title and description slots', () => {
588
+ const frame = () => new Promise(resolve => requestAnimationFrame(() => resolve(null)));
589
+ const build = async (axes = {}) => {
590
+ const el = await fixture(html `
591
+ <nile-app-shell
592
+ style="width: 1176px; height: 800px; ${HEADER_TOKENS}"
593
+ .pageTitle=${axes.pageTitle ?? ''}
594
+ .description=${axes.description ?? ''}
595
+ .headingLevel=${axes.headingLevel ?? 1}
596
+ >
597
+ <nav slot="side-nav">nav</nav>
598
+ ${axes.titleSlot
599
+ ? html `<span slot="page-title" id="slotted-title">${axes.titleSlot}</span>`
600
+ : ''}
601
+ ${axes.descriptionSlot
602
+ ? html `<div slot="description" id="slotted-description">${axes.descriptionSlot}</div>`
603
+ : ''}
604
+ <p>page</p>
605
+ </nile-app-shell>
606
+ `);
607
+ await frame();
608
+ await el.updateComplete;
609
+ await frame();
610
+ await el.updateComplete;
611
+ return el;
612
+ };
613
+ const bar = (el) => el.shadowRoot.querySelector('.top-bar');
614
+ const heading = (el) => part(el, 'page-title');
615
+ const desc = (el) => part(el, 'description');
616
+ const slotIn = (host, name) => host?.querySelector(`slot[name="${name}"]`);
617
+ it('renders a property-only page title in the heading wrapper', async () => {
618
+ const el = await build({ pageTitle: 'Applications' });
619
+ expect(heading(el).getAttribute('role')).to.equal('heading');
620
+ expect(heading(el).textContent.trim()).to.equal('Applications');
621
+ expect(slotIn(heading(el), 'page-title').assignedNodes()).to.have.length(0);
622
+ });
623
+ it('lets the slot win when the property and the slot are both set', async () => {
624
+ const el = await build({
625
+ pageTitle: 'Property title',
626
+ description: 'Property description',
627
+ titleSlot: 'Slotted title',
628
+ descriptionSlot: 'Slotted description',
629
+ });
630
+ expect(slotIn(heading(el), 'page-title').assignedElements()[0].id).to.equal('slotted-title');
631
+ expect(slotIn(desc(el), 'description').assignedElements()[0].id).to.equal('slotted-description');
1539
632
  });
1540
633
  });
634
+ describe('NileAppShell — tooltips', () => {
635
+ const LONG = 'A very long page title that cannot possibly fit in a narrow header bar';
636
+ const LONG_DESC = 'A very long description that cannot possibly fit in a narrow header bar either, however wide it is';
637
+ const build = async (attrs = {}) => {
638
+ const el = await fixture(html `
639
+ <nile-app-shell
640
+ style="width: ${attrs.width ?? 520}px; height: 600px; ${HEADER_TOKENS}"
641
+ .pageTitle=${LONG}
642
+ .description=${attrs.slotDescription ? '' : attrs.description ?? ''}
643
+ ?disableTooltip=${attrs.disableTooltip === true}
644
+ headerBack
645
+ >
646
+ <nav slot="side-nav">nav</nav>
647
+ ${attrs.slotDescription ? html `<span slot="description">${LONG_DESC}</span>` : ''}
648
+ <p>page</p>
649
+ </nile-app-shell>
650
+ `);
651
+ await el.updateComplete;
652
+ await new Promise(r => setTimeout(r, 100));
653
+ await el.updateComplete;
654
+ return el;
655
+ };
656
+ const tipAround = (el, selector) => el.shadowRoot.querySelector(selector).closest('nile-lite-tooltip');
657
+ it('wraps the nav toggle and the back arrow in a lite tooltip carrying their label', async () => {
658
+ const el = await build();
659
+ expect(tipAround(el, '.nav-toggle').content).to.equal('Collapse navigation');
660
+ expect(tipAround(el, '.nav-toggle').disabled).to.be.false;
661
+ expect(tipAround(el, '.back').content).to.equal('Back');
662
+ expect(el.shadowRoot.querySelector('.nav-toggle').hasAttribute('title')).to.be.false;
663
+ el.collapseNav();
664
+ await el.updateComplete;
665
+ expect(tipAround(el, '.nav-toggle').content).to.equal('Expand navigation');
666
+ });
667
+ it('shows the title and description in a tooltip only while the ellipsis is cutting them off', async () => {
668
+ const narrow = await build({ description: LONG_DESC });
669
+ const title = tipAround(narrow, '.page-title');
670
+ expect(title.content).to.equal(LONG);
671
+ expect(title.disabled).to.be.false;
672
+ expect(tipAround(narrow, '.description').content).to.equal(LONG_DESC);
673
+ const el = narrow.shadowRoot.querySelector('.page-title');
674
+ expect(el.scrollWidth).to.be.greaterThan(el.clientWidth);
675
+ narrow.style.width = '1400px';
676
+ await new Promise(r => setTimeout(r, 200));
677
+ await narrow.updateComplete;
678
+ expect(tipAround(narrow, '.page-title').disabled, 'the title now fits, so no tooltip').to.be.true;
679
+ });
680
+ it('gives a slotted, wrapping description no tooltip, since nothing is cut off', async () => {
681
+ const el = await build({ slotDescription: true });
682
+ expect(tipAround(el, '.description').disabled).to.be.true;
683
+ });
684
+ it('disableTooltip turns every shell tooltip off, even for clipped text', async () => {
685
+ const el = await build({ description: LONG_DESC, disableTooltip: true });
686
+ expect(el.disableTooltip).to.be.true;
687
+ const tips = Array.from(el.shadowRoot.querySelectorAll('nile-lite-tooltip.tip'));
688
+ expect(tips.length).to.be.greaterThan(3);
689
+ expect(tips.every(t => t.disabled)).to.be.true;
690
+ });
691
+ });
692
+ {
693
+ /** The compositional form: one child element per region, no slot names. */
694
+ const composed = async (width = 1440, overlayBreakpoint = 0) => {
695
+ const el = await fixture(html `
696
+ <nile-app-shell
697
+ style="width: ${width}px; height: 600px;"
698
+ overlay-breakpoint=${overlayBreakpoint}
699
+ >
700
+ <nile-app-shell-side-nav>
701
+ <span slot="header">Aquera</span>
702
+ <nav>nav</nav>
703
+ <span slot="footer">account</span>
704
+ </nile-app-shell-side-nav>
705
+
706
+ <span slot="top-bar">Title</span>
707
+
708
+ <nile-app-shell-main>
709
+ <div class="page">page</div>
710
+ </nile-app-shell-main>
711
+
712
+ <nile-app-shell-panel label="Ask Aquera">
713
+ <div>answer</div>
714
+ <div slot="footer">composer</div>
715
+ </nile-app-shell-panel>
716
+ </nile-app-shell>
717
+ `);
718
+ await waitUntil(() => el.hasAttribute('has-panel'));
719
+ return el;
720
+ };
721
+ const region = (el, tag) => el.querySelector(tag);
722
+ describe('Region components — slot assignment', () => {
723
+ it('1. each region claims the shell slot it belongs to', async () => {
724
+ const el = await composed();
725
+ expect(region(el, 'nile-app-shell-side-nav').getAttribute('slot')).to.equal('side-nav');
726
+ expect(region(el, 'nile-app-shell-panel').getAttribute('slot')).to.equal('panel');
727
+ // Main belongs to the default slot, so it must claim no slot at all.
728
+ expect(region(el, 'nile-app-shell-main').hasAttribute('slot')).to.be.false;
729
+ });
730
+ });
731
+ describe('nile-app-shell-panel', () => {
732
+ it('9. takes over the panel chrome from the shell', async () => {
733
+ const el = await composed();
734
+ expect(el.getAttribute('panel-chrome')).to.equal('external');
735
+ // The shell's own header must not also render.
736
+ expect(el.shadowRoot.querySelector('[part~="panel-header"]')).to.not.exist;
737
+ const panel = region(el, 'nile-app-shell-panel');
738
+ expect(panel.shadowRoot.querySelector('[part~="header"]')).to.exist;
739
+ expect(panel.shadowRoot.querySelector('[part~="title"]').textContent.trim()).to.equal('Ask Aquera');
740
+ });
741
+ it('12. its close button closes the panel through the shell', async () => {
742
+ const el = await composed();
743
+ el.openPanel();
744
+ await el.updateComplete;
745
+ const panel = region(el, 'nile-app-shell-panel');
746
+ const close = panel.shadowRoot.querySelector('[part~="close"]');
747
+ const closed = oneEvent(panel, 'nile-close');
748
+ close.click();
749
+ const event = await closed;
750
+ expect(event).to.exist;
751
+ await el.updateComplete;
752
+ expect(el.panelOpen).to.be.false;
753
+ });
754
+ // Birat's review: a page listening on the shell for nile-panel-back must not go deaf when it slots this panel.
755
+ it('82. its back control also emits nile-panel-back, once, and it reaches the shell', async () => {
756
+ const el = await composed();
757
+ el.openPanel();
758
+ await el.updateComplete;
759
+ const panel = region(el, 'nile-app-shell-panel');
760
+ panel.back = true;
761
+ await panel.updateComplete;
762
+ const order = [];
763
+ const log = (e) => order.push(e.type);
764
+ el.addEventListener('nile-back', log);
765
+ el.addEventListener('nile-panel-back', log);
766
+ const reached = oneEvent(el, 'nile-panel-back');
767
+ panel.shadowRoot.querySelector('[part~="back"]').click();
768
+ const event = await reached;
769
+ // Bubbles and composed, so a listener outside the shadow roots hears it.
770
+ expect(event.bubbles).to.be.true;
771
+ expect(event.composed).to.be.true;
772
+ // One press: nile-back then nile-panel-back, each exactly once.
773
+ expect(order).to.deep.equal(['nile-back', 'nile-panel-back']);
774
+ order.length = 0;
775
+ panel.goBack();
776
+ expect(order).to.deep.equal(['nile-back', 'nile-panel-back']);
777
+ });
778
+ });
779
+ // The shell's nav track mirrors nile-side-bar's per-theme width, so ::slotted width:100% remains only so a raw nav still fills the track.
780
+ /*
781
+ * The HTML API, driven from markup. pageTitle, headerBack, headerBackLabel,
782
+ * noTabs, panelBack and panelBackLabel declare no kebab `attribute:` option, so Lit
783
+ * observes the lowercased property name (pagetitle, notabs, ...) and markup
784
+ * writes them camelCase — HTML lowercases `pageTitle=` to match.
785
+ *
786
+ * Every other test in this suite sets these as JS properties, which works no
787
+ * matter what the attribute is called — so if a kebab `attribute:` option is
788
+ * added back, nothing else fails and `<nile-app-shell pageTitle="...">`
789
+ * silently does nothing. This fixture is markup-only on purpose: it is the
790
+ * one that breaks if that happens.
791
+ */
792
+ }
1541
793
  //# sourceMappingURL=nile-app-shell.test.js.map