@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
@@ -1 +1 @@
1
- {"version":3,"file":"nile-app-shell.cjs.js","sources":["../../../src/nile-app-shell/nile-app-shell.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { styles } from './nile-app-shell.css';\nimport { renderGlyph } from '../internal/glyph';\nimport NileElement from '../internal/nile-element';\nimport '../nile-button/nile-button';\n\n/** The mode the AI panel is currently in. */\nexport type NileAppShellPanelMode = 'docked' | 'overlay';\n\n/** Where the top bar is mounted. */\nexport type NileAppShellTopBarPlacement = 'content' | 'shell';\n\n/** How the main region lays its content out. */\nexport type NileAppShellContentAlign = 'fluid' | 'centered';\n\n/** The `detail` of the `nile-click` the header back control emits. */\nexport interface NileAppShellClickDetail {\n value: 'back';\n}\n\n/** The shell's own track and region widths, in px. */\ninterface ShellGeometry {\n nav: number;\n rail: number;\n gutter: number;\n content: number;\n aside: number;\n panel: number;\n}\n\n/**\n * @summary The application frame every route inherits: a side nav, a content container, an optional aside and an AI assistant panel.\n *\n * @status stable\n * @since 2.0\n *\n * @tag nile-app-shell\n *\n * @dependency nile-button\n * @dependency nile-glyph\n *\n * @slot - The page body, inside the content container.\n * @slot banner - A full-width strip above every other region.\n * @slot top-bar - The page-title bar, mounted inside the container by default or spanning the shell when `top-bar-placement=\"shell\"`.\n * @slot top-bar-actions - Controls pinned to the end of the top bar.\n * @slot tabs - A hoisted second-level tab strip, flush under the top bar and outside `<main>`'s scroller.\n * @slot app-icon - The mark shown before the page title whenever this slot has content, clipped to the shell's box.\n * @slot side-nav - The navigation track. Works best with `<nile-side-bar>`.\n * @slot aside - A secondary column between the content container and the panel.\n * @slot panel - The AI panel's body. When empty the panel is unmounted and `openPanel()` is a no-op.\n * @slot panel-header - Replaces the default panel heading (mark plus title).\n * @slot panel-actions - Controls added before the panel's close button.\n * @slot panel-footer - A bar docked below the panel's scroll region, for a composer.\n *\n * @event nile-nav-toggle - Emitted after the nav's collapsed state or forced-rail lock changes. `detail: { collapsed, locked }`.\n * @event nile-panel-toggle - Emitted after the panel opens or closes. `detail: { open, mode }`.\n * @event nile-panel-mode-change - Emitted when the panel flips between docked and overlay. `detail: { mode }`.\n * @event nile-click - Emitted when the header's back control is pressed, or `goBackHeader()` is called. `detail: { value: 'back' }`. Emitted on the shell itself, so check `event.target === shell` as well as the value: a `nile-click` from page content bubbles through the shell too.\n * @event nile-panel-back - Emitted when the panel's back control is pressed, whether the shell's built-in panel chrome or a slotted `nile-app-shell-panel` draws it.\n *\n * @csspart skip-link - The skip-to-content link.\n * @csspart banner - The banner region.\n * @csspart shell-top-bar - The top bar when it spans the shell.\n * @csspart top-bar - The top bar, in either placement.\n * @csspart nav-toggle - The built-in nav toggle button.\n * @csspart rule - The vertical rule after the nav toggle.\n * @csspart ask-rule - The vertical rule before the Ask button, drawn when `top-bar-actions` has content.\n * @csspart top-bar-actions - The end-aligned top bar action group.\n * @csspart ask - The built-in Ask button, the shell's single door to the panel.\n * @csspart title-area - The header's own title block: back control, app icon, title, badge and description.\n * @csspart page-title - The title text, exposed as a heading whose level `headingLevel` sets.\n * @csspart description - The second line under the title.\n * @csspart badge - The pill after the title.\n * @csspart back - The header back control, shown by `headerBack`.\n * @csspart app-icon - The block holding the `app-icon` slot, shown when the slot has content and sized by `--nile-app-shell-app-icon-size`.\n * @csspart tabs - The hoisted tab-strip region, under the top bar.\n * @csspart side-nav - The navigation track.\n * @csspart content-section - The flex row holding container, aside and panel.\n * @csspart container - The content container.\n * @csspart main - The scrolling page body.\n * @csspart aside - The aside region.\n * @csspart panel - The AI panel.\n * @csspart panel-header - The panel's header bar.\n * @csspart panel-back - The panel's back control, shown by `panelBack`.\n * @csspart panel-title - The panel's title text.\n * @csspart panel-actions - The panel's header action group.\n * @csspart panel-close - The panel's close button.\n * @csspart panel-body - The panel's scroll region.\n * @csspart panel-footer - The panel's footer.\n *\n * @cssproperty [--nile-app-shell-side-nav-width=240px] - Expanded nav track.\n * @cssproperty [--nile-app-shell-side-nav-rail-width=70px] - Collapsed track.\n * @cssproperty [--nile-app-shell-side-nav-bg=transparent] - Surface behind a slotted side nav.\n * @cssproperty [--nile-app-shell-side-nav-border=0] - Edge on a slotted side nav.\n * @cssproperty [--nile-app-shell-gutter=4px] - Content-section padding, and the gap between container, aside and panel.\n * @cssproperty [--nile-app-shell-content-padding=24px] - Container inner padding.\n * @cssproperty [--nile-app-shell-top-bar-height=68px] - Top bar height.\n * @cssproperty [--nile-app-shell-panel-header-height=56px] - The panel header's own height.\n * @cssproperty [--nile-app-shell-tabs-height=33px] - Tab strip height.\n * @cssproperty [--nile-app-shell-panel-width=480px] - Docked panel width, and the `min()` ceiling for the overlay drawer.\n * @cssproperty [--nile-app-shell-panel-min-width=360px] - How far a docked panel shrinks to keep pushing rather than covering the page.\n * @cssproperty [--nile-app-shell-aside-width=320px] - Aside width.\n * @cssproperty [--nile-app-shell-aside-min-width=240px] - How far the aside shrinks before the page is asked for room.\n * @cssproperty [--nile-app-shell-content-min-width=640px] - Container floor.\n * @cssproperty [--nile-app-shell-min-width=768px] - Below this the window scrolls rather than the shell compressing.\n * @cssproperty [--nile-app-shell-centered-width=824px] - Column width under `content-align=\"centered\"`.\n * @cssproperty [--nile-app-shell-app-icon-size=20px] - The app icon's box.\n * @cssproperty [--nile-app-shell-utility-size=32px] - Box the shell's own icon controls sit in.\n * @cssproperty [--nile-app-shell-radius=16px] - Container, aside and panel radius.\n * @cssproperty [--nile-app-shell-duration=250ms] - Track and panel motion.\n * @cssproperty [--nile-app-shell-ease] - Easing for moves and resizes.\n *\n * @method openPanel() - Open the AI panel. No-op when the panel is unavailable.\n * @method closePanel() - Close the AI panel.\n * @method togglePanel(force?) - Toggle, or force a specific open state.\n * @method expandNav() - Expand the side nav.\n * @method collapseNav() - Collapse the side nav to a rail.\n * @method toggleNav(force?) - Toggle, or force a specific collapsed state.\n * @method goBackHeader() - Emit `nile-click` with `{ value: 'back' }`, as the header's back control does.\n * @method goBackPanel() - Emit `nile-panel-back`, as the panel's back control does.\n * @method goBack() - Deprecated alias of `goBackPanel()`.\n */\n@customElement('nile-app-shell')\nexport class NileAppShell extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /** The user's nav preference. The nav can still render as a rail while this is false — see `navLocked`. */\n @property({ type: Boolean, reflect: true, attribute: 'nav-collapsed' })\n navCollapsed: boolean = false;\n\n /** Whether the AI panel is open. */\n @property({ type: Boolean, reflect: true, attribute: 'panel-open' })\n panelOpen: boolean = false;\n\n /** Unmounts the AI panel for this route even when the `panel` slot is filled; `openPanel()` becomes a no-op. */\n @property({ type: Boolean, reflect: true, attribute: 'no-panel' })\n noPanel: boolean = false;\n\n /** The default panel heading. Ignored when `panel-header` is slotted. */\n @property({ type: String, attribute: 'panel-label' })\n panelLabel: string = 'Ask Aquera';\n\n /** The page title, rendered as the top bar's own heading (`role=\"heading\"`, level from `headingLevel`) before anything slotted into `top-bar`; leave unset and no title block renders. */\n @property({ type: String, attribute: true, reflect: true })\n pageTitle?: string;\n\n /** The `aria-level` of the `pageTitle` heading, 1–6, so the title can fit the page's own heading outline; e.g. 2 when the page body or banner already has its h1. Out-of-range values clamp to 1–6 and non-numbers fall back to 1. */\n @property({ type: Number, attribute: true, reflect: true })\n headingLevel: number = 1;\n\n /** A second line under the page title; a modifier on `pageTitle` that renders nothing with no title, and takes the bar to 76px. */\n @property({ type: String, attribute: true, reflect: true })\n description?: string;\n\n /** A pill after the page title; a modifier on `pageTitle` like `description`, so with no title there is no badge. */\n @property({ type: String, attribute: true, reflect: true })\n badge?: string;\n\n /** Shows the back arrow before the page title; pressing it emits `nile-click` with `{ value: 'back' }`. Independent of the `app-icon` slot. */\n @property({ type: Boolean, attribute: true, reflect: true })\n headerBack: boolean = false;\n\n /** Accessible name of the header back control. Never rendered as visible text. */\n @property({ type: String, attribute: true, reflect: true })\n headerBackLabel: string = 'Back';\n\n /** Hides the built-in nav toggle. Mount `nile-app-shell-nav-toggle` yourself. */\n @property({ type: Boolean, reflect: true, attribute: 'no-nav-toggle' })\n noNavToggle: boolean = false;\n\n /** Drops the Cmd/Ctrl+J and Escape panel shortcuts. */\n @property({ type: Boolean, attribute: 'no-panel-shortcut' })\n noPanelShortcut: boolean = false;\n\n /** Hides the skip-to-content link. */\n @property({ type: Boolean, reflect: true, attribute: 'no-skip-link' })\n noSkipLink: boolean = false;\n\n /** Label for the skip-to-content link. */\n @property({ type: String, attribute: 'skip-link-label' })\n skipLinkLabel: string = 'Skip to main content';\n\n /** Where the top bar is mounted: inside the container, or spanning the shell. */\n @property({ type: String, reflect: true, attribute: 'top-bar-placement' })\n topBarPlacement: NileAppShellTopBarPlacement = 'content';\n\n /** `centered` caps the page body at `--nile-app-shell-centered-width`. */\n @property({ type: String, reflect: true, attribute: 'content-align' })\n contentAlign: NileAppShellContentAlign = 'fluid';\n\n /** Makes the slotted page root a size query container, so page CSS can size against the content container instead of the viewport. */\n @property({ type: Boolean, reflect: true, attribute: 'content-container' })\n contentContainer: boolean = false;\n\n /** Drops the container's card chrome for a full-bleed page. */\n @property({ type: Boolean, reflect: true })\n flat: boolean = false;\n\n /** Removes the container's inner padding. */\n @property({ type: Boolean, reflect: true, attribute: 'no-padding' })\n noPadding: boolean = false;\n\n /** The label on the built-in Ask button. */\n @property({ type: String, attribute: 'ask-label' })\n askLabel: string = 'Ask';\n\n /** Drops the built-in Ask button, for a bar that renders its own. */\n @property({ type: Boolean, reflect: true, attribute: 'no-ask' })\n noAsk: boolean = false;\n\n /** Shows a back control at the start of the panel header for a panel sub-view; emits `nile-panel-back`. */\n @property({ type: Boolean, reflect: true })\n panelBack: boolean = false;\n\n /** Accessible name of the panel's back control. */\n @property({ type: String })\n panelBackLabel: string = 'Back';\n\n /** Hides the tab strip for this route even when the `tabs` slot is filled. */\n @property({ type: Boolean, reflect: true })\n noTabs: boolean = false;\n\n /** Sizes the shell to the viewport instead of its parent. */\n @property({ type: Boolean, reflect: true, attribute: 'full-height' })\n fullHeight: boolean = false;\n\n /** Below this shell width the panel overlays the content instead of pushing it, and the nav is forced to a rail; zero (default) means never. */\n @property({ type: Number, attribute: 'overlay-breakpoint' })\n overlayBreakpoint: number = 0;\n\n /** Below this shell width an open docked panel forces the nav to a rail. */\n @property({ type: Number, attribute: 'docked-rail-breakpoint' })\n dockedRailBreakpoint: number = 1440;\n\n /** Persists the nav preference and docked panel state under this key. Overlay panel state is never persisted. */\n @property({ type: String, attribute: 'persist-key' })\n persistKey?: string;\n\n /** The panel's current mode. Derived from the shell's width. */\n @state() private _panelMode: NileAppShellPanelMode = 'docked';\n\n /** Whether the nav is held at a rail by the shell's width. */\n @state() private _navLocked: boolean = false;\n\n @state() private _hasBanner: boolean = false;\n @state() private _hasSideNav: boolean = false;\n @state() private _hasTopBar: boolean = false;\n @state() private _hasTopBarActions: boolean = false;\n @state() private _hasTabs: boolean = false;\n @state() private _hasAppIcon: boolean = false;\n @state() private _hasPanel: boolean = false;\n @state() private _hasPanelFooter: boolean = false;\n\n /** True when a `nile-app-shell-panel` is slotted, owning the panel's own chrome so the shell renders a bare region. */\n @state() private _panelOwnsChrome: boolean = false;\n @state() private _hasAside: boolean = false;\n\n @query('.main') private _main?: HTMLElement;\n\n private _width: number = 0;\n private _resizeObserver?: ResizeObserver;\n private _restoredPanelOpen: boolean | null = null;\n\n /** The panel's current mode: `docked` or `overlay`. */\n public get panelMode(): NileAppShellPanelMode {\n return this._panelMode;\n }\n\n /** Whether the shell is holding the nav at a rail. The toggle is disabled. */\n public get navLocked(): boolean {\n return this._navLocked;\n }\n\n /** Whether a panel is mounted for this route. */\n public get panelAvailable(): boolean {\n return this._hasPanel && !this.noPanel;\n }\n\n /** Whether the tab strip is rendered: something slotted, and not switched off. */\n public get tabsVisible(): boolean {\n return this._hasTabs && !this.noTabs;\n }\n\n /** Whether the built-in Ask button is rendered. */\n public get askVisible(): boolean {\n return this.panelAvailable && !this.noAsk;\n }\n\n /** Whether the nav renders as a rail right now, preference or lock. */\n public get rail(): boolean {\n return this.navCollapsed || this._navLocked;\n }\n\n public connectedCallback(): void {\n super.connectedCallback();\n this._restore();\n this._resizeObserver = new ResizeObserver(entries => {\n const entry = entries[entries.length - 1];\n this._measure(entry.contentRect.width);\n });\n this._resizeObserver.observe(this);\n document.addEventListener('keydown', this._onKeyDown);\n }\n\n public disconnectedCallback(): void {\n super.disconnectedCallback();\n this._resizeObserver?.disconnect();\n this._resizeObserver = undefined;\n document.removeEventListener('keydown', this._onKeyDown);\n }\n\n protected willUpdate(changed: PropertyValues<this>): void {\n if (\n changed.has('panelOpen') ||\n changed.has('noPanel') ||\n changed.has('overlayBreakpoint') ||\n changed.has('dockedRailBreakpoint') ||\n // Aside/side-nav mounting changes what a docked panel fits beside; ask the map since private state is outside `keyof this`.\n (changed as Map<string, unknown>).has('_hasAside') ||\n (changed as Map<string, unknown>).has('_hasSideNav')\n ) {\n this._recompute();\n }\n }\n\n protected updated(changed: PropertyValues<this>): void {\n super.updated(changed);\n\n // Derived state the stylesheet and consumers read off the host.\n this.toggleAttribute('rail', this.rail);\n this.toggleAttribute('nav-locked', this._navLocked);\n this.toggleAttribute('has-banner', this._hasBanner);\n this.toggleAttribute('has-side-nav', this._hasSideNav);\n this.toggleAttribute(\n 'has-top-bar',\n this._hasTopBar ||\n this._hasTitleBlock ||\n (!this.noNavToggle && this._hasSideNav)\n );\n // Only with a title to sit under: see _hasTitleBlock.\n this.toggleAttribute(\n 'has-description',\n !!this.description && !!this.pageTitle\n );\n this.toggleAttribute('has-top-bar-actions', this._hasTopBarActions);\n this.toggleAttribute('has-app-icon', this._hasAppIcon);\n this.toggleAttribute('has-ask', this.askVisible);\n this.toggleAttribute('has-tabs', this.tabsVisible);\n this.toggleAttribute('has-aside', this._hasAside);\n this.toggleAttribute('has-panel', this.panelAvailable);\n this.toggleAttribute('has-panel-footer', this._hasPanelFooter);\n this.setAttribute('panel-mode', this._panelMode);\n this.setAttribute(\n 'panel-chrome',\n this._panelOwnsChrome ? 'external' : 'internal'\n );\n\n this._syncSideNav();\n }\n\n /** Open the AI panel. No-op when no panel is mounted for this route. */\n public openPanel(): void {\n if (!this.panelAvailable) return;\n this._setPanelOpen(true);\n }\n\n /** Close the AI panel. */\n public closePanel(): void {\n this._setPanelOpen(false);\n }\n\n /** Toggle the panel, or force a state. */\n public togglePanel(force?: boolean): void {\n const next = force ?? !this.panelOpen;\n if (next) this.openPanel();\n else this.closePanel();\n }\n\n /** Emit `nile-click` with `{ value: 'back' }`, as the header's back control does; the page owns the history. */\n public goBackHeader(): void {\n const detail: NileAppShellClickDetail = { value: 'back' };\n this.emit('nile-click', detail);\n }\n\n /** Emit `nile-panel-back`, as the panel's back control does; the page owns the view stack. */\n public goBackPanel(): void {\n this.emit('nile-panel-back');\n }\n\n /** @deprecated Use `goBackPanel()`; kept as an alias that emits `nile-panel-back`. */\n public goBack(): void {\n this.goBackPanel();\n }\n\n /** Expand the side nav. */\n public expandNav(): void {\n this._setNavCollapsed(false);\n }\n\n /** Collapse the side nav to a rail. */\n public collapseNav(): void {\n this._setNavCollapsed(true);\n }\n\n /** Toggle the side nav, or force a collapsed state. */\n public toggleNav(force?: boolean): void {\n this._setNavCollapsed(force ?? !this.navCollapsed);\n }\n\n /** Move focus to the page body. */\n public focusMain(): void {\n this._main?.focus();\n }\n\n private _setPanelOpen(value: boolean): void {\n if (this.panelOpen === value) return;\n this.panelOpen = value;\n this._persist();\n this.emit('nile-panel-toggle', { open: value, mode: this._panelMode });\n }\n\n private _setNavCollapsed(value: boolean): void {\n if (this.navCollapsed === value) return;\n this.navCollapsed = value;\n this._persist();\n this.emit('nile-nav-toggle', {\n collapsed: value,\n locked: this._navLocked,\n });\n }\n\n /** Records the shell's width and re-derives everything that depends on it. */\n private _measure(width: number): void {\n if (width === this._width) return;\n const first = this._width === 0;\n this._width = width;\n this._recompute();\n\n // A persisted panel state only applies once we know the panel would dock.\n if (first && this._restoredPanelOpen !== null) {\n const open = this._restoredPanelOpen;\n this._restoredPanelOpen = null;\n if (open && this._panelMode === 'docked') this.openPanel();\n }\n }\n\n /** The shell's geometry, read off its own custom properties, falling back to defaults before a computed style exists. */\n private _geometry(): ShellGeometry {\n const style = getComputedStyle(this);\n const px = (name: string, fallback: number): number => {\n const value = parseFloat(style.getPropertyValue(name));\n return Number.isFinite(value) ? value : fallback;\n };\n return {\n // Read the substituted value so they follow the active theme; the literals are the enterprise fallback.\n nav: px('--nile-app-shell-side-nav-width', 240),\n rail: px('--nile-app-shell-side-nav-rail-width', 70),\n gutter: px('--nile-app-shell-gutter', 4),\n content: px('--nile-app-shell-content-min-width', 640),\n aside: px('--nile-app-shell-aside-width', 320),\n panel: px('--nile-app-shell-panel-width', 480),\n };\n }\n\n /** The shell width a docked panel needs to sit beside the content floor, over a side-nav `track` wide. */\n private _dockRequirement(geo: ShellGeometry, track: number): number {\n const nav = this._hasSideNav ? track : 0;\n const aside = this._hasAside ? geo.aside + geo.gutter : 0;\n /* The content row's chrome is end-edge padding plus one flex gap between container and panel (an aside carries its own gap above), and start-edge padding too when no nav track is there to sit flush against. */\n const gutters = this._hasSideNav ? 2 : 3;\n return nav + geo.content + aside + geo.panel + geo.gutter * gutters;\n }\n\n private _recompute(): void {\n const width = this._width;\n const geo = this._geometry();\n\n /* Overlay is opt-in: the shell only overlays below a width the author names, never from running out of room. */\n const overlay =\n this.overlayBreakpoint > 0 && width > 0 && width < this.overlayBreakpoint;\n const mode: NileAppShellPanelMode = overlay ? 'overlay' : 'docked';\n\n // A docked panel squeezes the container, so a narrow shell trades the expanded nav for content width, measured against the expanded track.\n const railAt = Math.max(\n this.dockedRailBreakpoint,\n this._dockRequirement(geo, geo.nav)\n );\n const squeezed =\n !overlay &&\n this.panelOpen &&\n this.panelAvailable &&\n width > 0 &&\n width < railAt;\n const locked = overlay || squeezed;\n\n if (mode !== this._panelMode) {\n this._panelMode = mode;\n this.emit('nile-panel-mode-change', { mode });\n }\n\n if (locked !== this._navLocked) {\n this._navLocked = locked;\n this.emit('nile-nav-toggle', {\n collapsed: this.navCollapsed,\n locked,\n });\n }\n }\n\n /** Mirrors the effective rail state onto a slotted `nile-side-bar`. */\n private _syncSideNav(): void {\n this.querySelectorAll('[slot=\"side-nav\"]').forEach(el => {\n if (el.tagName === 'NILE-SIDE-BAR')\n el.toggleAttribute('collapsed', this.rail);\n });\n }\n\n /** A slotted sidebar's own expand button is the same toggle. */\n private _onSideNavToggle = (event: Event): void => {\n const detail = (event as CustomEvent).detail;\n if (detail && typeof detail.collapsed === 'boolean') {\n this._setNavCollapsed(detail.collapsed);\n }\n };\n\n private _onKeyDown = (event: KeyboardEvent): void => {\n if (this.noPanelShortcut || !this.panelAvailable) return;\n\n const key = event.key ?? '';\n\n if ((event.metaKey || event.ctrlKey) && key.toLowerCase() === 'j') {\n event.preventDefault();\n this.togglePanel();\n return;\n }\n\n // A docked panel is furniture, not a dismissible overlay.\n if (key === 'Escape' && this.panelOpen && this._panelMode === 'overlay') {\n this.closePanel();\n }\n };\n\n private _storageKey(part: string): string {\n return `nile-app-shell:${this.persistKey}:${part}`;\n }\n\n private _restore(): void {\n if (!this.persistKey) return;\n try {\n const nav = localStorage.getItem(this._storageKey('nav-collapsed'));\n if (nav !== null) this.navCollapsed = nav === 'true';\n const panel = localStorage.getItem(this._storageKey('panel-open'));\n if (panel !== null) this._restoredPanelOpen = panel === 'true';\n } catch {\n /* Storage can be blocked; the shell still works without it. */\n }\n }\n\n private _persist(): void {\n if (!this.persistKey) return;\n try {\n localStorage.setItem(\n this._storageKey('nav-collapsed'),\n String(this.navCollapsed)\n );\n if (this._panelMode === 'docked') {\n localStorage.setItem(\n this._storageKey('panel-open'),\n String(this.panelOpen)\n );\n }\n } catch {\n /* Storage can be blocked; the shell still works without it. */\n }\n }\n\n private _onSlotChange(slot: string, event: Event): void {\n const assigned = (event.target as HTMLSlotElement).assignedNodes({\n flatten: true,\n });\n const filled = assigned.some(\n node =>\n node.nodeType === Node.ELEMENT_NODE ||\n (node.textContent ?? '').trim() !== ''\n );\n\n switch (slot) {\n case 'banner':\n this._hasBanner = filled;\n break;\n case 'side-nav':\n this._hasSideNav = filled;\n this._syncSideNav();\n break;\n case 'top-bar':\n this._hasTopBar = filled;\n break;\n case 'top-bar-actions':\n this._hasTopBarActions = filled;\n break;\n case 'tabs':\n this._hasTabs = filled;\n break;\n case 'app-icon':\n this._hasAppIcon = filled;\n break;\n case 'aside':\n this._hasAside = filled;\n break;\n case 'panel':\n this._hasPanel = filled;\n this._panelOwnsChrome = assigned.some(\n node =>\n node.nodeType === Node.ELEMENT_NODE &&\n (node as Element).tagName === 'NILE-APP-SHELL-PANEL'\n );\n this._recompute();\n break;\n case 'panel-footer':\n this._hasPanelFooter = filled;\n break;\n default:\n break;\n }\n }\n\n private _renderNavToggle(): TemplateResult | string {\n if (this.noNavToggle || !this._hasSideNav) return '';\n const expanded = !this.rail;\n return html`\n <div class=\"nav-toggle-group\">\n <nile-button\n class=\"nav-toggle utility-control\"\n part=\"nav-toggle\"\n variant=\"ghost\"\n circle\n aria-controls=\"side-nav\"\n aria-expanded=${expanded ? 'true' : 'false'}\n ?disabled=${this._navLocked}\n title=${this._navLocked\n ? 'The navigation stays collapsed at this window width'\n : expanded\n ? 'Collapse navigation'\n : 'Expand navigation'}\n aria-label=${expanded ? 'Collapse navigation' : 'Expand navigation'}\n @click=${() => this.toggleNav()}\n >\n ${renderGlyph(\n expanded ? 'ng-panel-left' : 'ng-panel-right',\n 20,\n 'currentColor'\n )}\n </nile-button>\n ${this._hasTopBar || this._hasTitleBlock\n ? html`<span class=\"rule\" part=\"rule\"></span>`\n : ''}\n </div>\n `;\n }\n\n /** Whether the header has a title block of its own to draw: a title, the back arrow or a slotted app icon mounts it. */\n private get _hasTitleBlock(): boolean {\n return !!this.pageTitle || this.headerBack || this._hasAppIcon;\n }\n\n /** `headingLevel` as a safe `aria-level`: a whole number clamped to 1–6, and 1 for anything non-numeric. */\n private get _headingLevel(): number {\n const level = Math.trunc(Number(this.headingLevel));\n return Number.isFinite(level) ? Math.min(6, Math.max(1, level)) : 1;\n }\n\n private _renderBack(): TemplateResult | string {\n if (!this.headerBack) return '';\n return html`\n <span class=\"back-line\">\n <button\n class=\"back\"\n part=\"back\"\n type=\"button\"\n aria-label=${this.headerBackLabel}\n title=${this.headerBackLabel}\n @click=${() => this.goBackHeader()}\n >\n ${renderGlyph('ng-arrow-narrow-left', 20, 'currentColor')}\n </button>\n </span>\n `;\n }\n\n private _renderAppIconSlot(): TemplateResult {\n return html`<slot\n name=\"app-icon\"\n @slotchange=${(e: Event) => this._onSlotChange('app-icon', e)}\n ></slot>`;\n }\n\n /* The app-icon slot has to exist whenever the stack does not, or a slotted icon could never mount it: park it, hidden. */\n private _renderAppIconProbe(): TemplateResult {\n return html`<span class=\"app-icon-probe\" hidden\n >${this._renderAppIconSlot()}</span\n >`;\n }\n\n private _renderTitleBlock(): TemplateResult {\n if (!this._hasTitleBlock) return this._renderAppIconProbe();\n\n /* The stack is the title and/or the app icon; a back arrow on its own brings no empty stack. */\n if (!this.pageTitle && !this._hasAppIcon) {\n return html`\n <div class=\"title-area\" part=\"title-area\">\n ${this._renderBack()} ${this._renderAppIconProbe()}\n </div>\n `;\n }\n\n /* The back arrow sits beside the stack; the app icon starts the stack's first row, so the description lines up under the icon when there is one and under the title when not. */\n return html`\n <div class=\"title-area\" part=\"title-area\">\n ${this._renderBack()}\n <div class=\"title-stack\">\n <div class=\"title-row\">\n <span class=\"app-icon\" part=\"app-icon\"\n >${this._renderAppIconSlot()}</span\n >\n ${this.pageTitle\n ? html`<div\n class=\"page-title\"\n part=\"page-title\"\n role=\"heading\"\n aria-level=${this._headingLevel}\n >${this.pageTitle}</div>`\n : ''}\n ${this.pageTitle && this.badge\n ? html`<span class=\"badge\" part=\"badge\">${this.badge}</span>`\n : ''}\n </div>\n ${this.pageTitle && this.description\n ? html`<p class=\"description\" part=\"description\">\n ${this.description}\n </p>`\n : ''}\n </div>\n </div>\n `;\n }\n\n private _renderTopBar(\n placement: NileAppShellTopBarPlacement\n ): TemplateResult {\n return html`\n <div\n class=${placement === 'shell' ? 'top-bar shell-top-bar' : 'top-bar'}\n part=${placement === 'shell' ? 'top-bar shell-top-bar' : 'top-bar'}\n >\n ${this._renderNavToggle()}\n <div class=\"top-bar-content\">\n ${this._renderTitleBlock()}\n <slot\n name=\"top-bar\"\n @slotchange=${(e: Event) => this._onSlotChange('top-bar', e)}\n ></slot>\n </div>\n <div class=\"top-bar-actions\" part=\"top-bar-actions\">\n <slot\n name=\"top-bar-actions\"\n @slotchange=${(e: Event) =>\n this._onSlotChange('top-bar-actions', e)}\n ></slot>\n ${this.askVisible && this._hasTopBarActions\n ? html`<span class=\"rule ask-rule\" part=\"ask-rule\"></span>`\n : ''}\n ${this.askVisible\n ? html`\n <nile-button\n class=\"ask\"\n part=\"ask\"\n exportparts=\"base: ask__base, label: ask__label\"\n variant=\"secondary\"\n @click=${() => this.openPanel()}\n >\n <span slot=\"prefix\" class=\"ask-mark\">\n ${renderGlyph('ng-sparkles', 16, 'currentColor')}\n </span>\n ${this.askLabel}\n </nile-button>\n `\n : ''}\n </div>\n </div>\n `;\n }\n\n public render(): TemplateResult {\n const shellBar = this.topBarPlacement === 'shell';\n\n return html`\n <button\n class=\"skip-link\"\n part=\"skip-link\"\n type=\"button\"\n @click=${() => this.focusMain()}\n >\n ${this.skipLinkLabel}\n </button>\n\n <div class=\"banner\" part=\"banner\">\n <slot\n name=\"banner\"\n @slotchange=${(e: Event) => this._onSlotChange('banner', e)}\n ></slot>\n </div>\n\n ${shellBar ? this._renderTopBar('shell') : ''}\n\n <div\n id=\"side-nav\"\n class=\"side-nav\"\n part=\"side-nav\"\n @nile-toggle=${this._onSideNavToggle}\n >\n <slot\n name=\"side-nav\"\n @slotchange=${(e: Event) => this._onSlotChange('side-nav', e)}\n ></slot>\n </div>\n\n <div class=\"content-section\" part=\"content-section\">\n <div class=\"container\" part=\"container\">\n ${shellBar ? '' : this._renderTopBar('content')}\n <div class=\"tabs\" part=\"tabs\">\n <slot\n name=\"tabs\"\n @slotchange=${(e: Event) => this._onSlotChange('tabs', e)}\n ></slot>\n </div>\n <main class=\"main\" part=\"main\" tabindex=\"-1\">\n <div class=\"main-inner\"><slot></slot></div>\n </main>\n </div>\n\n <div class=\"aside\" part=\"aside\">\n <slot\n name=\"aside\"\n @slotchange=${(e: Event) => this._onSlotChange('aside', e)}\n ></slot>\n </div>\n\n <aside\n class=\"panel\"\n part=\"panel\"\n aria-label=${ifDefined(\n this._panelOwnsChrome ? undefined : this.panelLabel\n )}\n aria-hidden=${this.panelOpen ? 'false' : 'true'}\n >\n ${this._panelOwnsChrome\n ? html`<slot\n name=\"panel\"\n @slotchange=${(e: Event) => this._onSlotChange('panel', e)}\n ></slot>`\n : html`\n <header class=\"panel-header\" part=\"panel-header\">\n ${this.panelBack\n ? html`<nile-button\n class=\"panel-back utility-control\"\n part=\"panel-back\"\n variant=\"ghost\"\n circle\n title=${this.panelBackLabel}\n aria-label=${this.panelBackLabel}\n @click=${() => this.goBackPanel()}\n >\n ${renderGlyph('ng-arrow-left', 20, 'currentColor')}\n </nile-button>`\n : ''}\n <slot name=\"panel-header\">\n <span class=\"panel-heading\">\n <span class=\"panel-mark\">\n ${renderGlyph('ng-sparkles', 20, 'currentColor')}\n </span>\n <h2 class=\"panel-title\" part=\"panel-title\">\n ${this.panelLabel}\n </h2>\n </span>\n </slot>\n <div class=\"panel-actions\" part=\"panel-actions\">\n <slot name=\"panel-actions\"></slot>\n <nile-button\n class=\"panel-close utility-control\"\n part=\"panel-close\"\n variant=\"ghost\"\n circle\n title=\"Close ${this.panelLabel}\"\n aria-label=\"Close ${this.panelLabel}\"\n @click=${() => this.closePanel()}\n >\n ${renderGlyph('ng-x-close', 20, 'currentColor')}\n </nile-button>\n </div>\n </header>\n <div class=\"panel-body\" part=\"panel-body\">\n <slot\n name=\"panel\"\n @slotchange=${(e: Event) => this._onSlotChange('panel', e)}\n ></slot>\n </div>\n <div class=\"panel-footer\" part=\"panel-footer\">\n <slot\n name=\"panel-footer\"\n @slotchange=${(e: Event) =>\n this._onSlotChange('panel-footer', e)}\n ></slot>\n </div>\n `}\n </aside>\n </div>\n `;\n }\n}\n\nexport default NileAppShell;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-app-shell': NileAppShell;\n }\n}\n"],"names":["NileAppShell","p","this","navCollapsed","panelOpen","noPanel","panelLabel","headingLevel","headerBack","headerBackLabel","noNavToggle","noPanelShortcut","noSkipLink","skipLinkLabel","topBarPlacement","contentAlign","contentContainer","flat","noPadding","askLabel","noAsk","panelBack","panelBackLabel","noTabs","fullHeight","overlayBreakpoint","dockedRailBreakpoint","_panelMode","_navLocked","_hasBanner","_hasSideNav","_hasTopBar","_hasTopBarActions","_hasTabs","_hasAppIcon","_hasPanel","_hasPanelFooter","_panelOwnsChrome","_hasAside","_width","_restoredPanelOpen","_onSideNavToggle","event","detail","collapsed","_setNavCollapsed","_onKeyDown","panelAvailable","key","metaKey","ctrlKey","toLowerCase","preventDefault","togglePanel","closePanel","_this","_inherits","_j","_createClass","get","tabsVisible","value","connectedCallback","super","_restore","_resizeObserver","ResizeObserver","entries","entry","length","_measure","contentRect","width","observe","document","addEventListener","disconnectedCallback","disconnect","undefined","removeEventListener","willUpdate","changed","has","_recompute","updated","toggleAttribute","rail","_hasTitleBlock","description","pageTitle","askVisible","setAttribute","_syncSideNav","openPanel","_setPanelOpen","force","goBackHeader","emit","goBackPanel","goBack","expandNav","collapseNav","toggleNav","focusMain","_main","focus","_persist","open","mode","locked","first","_geometry","style","getComputedStyle","px","name","fallback","parseFloat","getPropertyValue","Number","isFinite","nav","gutter","content","aside","panel","_dockRequirement","geo","track","gutters","overlay","railAt","Math","max","squeezed","querySelectorAll","forEach","el","tagName","_storageKey","part","concat","persistKey","localStorage","getItem","_unused","setItem","String","_unused2","_onSlotChange","slot","assigned","target","assignedNodes","flatten","filled","some","node","nodeType","Node","ELEMENT_NODE","textContent","trim","_renderNavToggle","_this4","expanded","html","_templateObject","_taggedTemplateLiteral","renderGlyph","_templateObject2","level","trunc","min","_renderBack","_templateObject3","_renderAppIconSlot","_this6","_templateObject4","e","_renderAppIconProbe","_templateObject5","_renderTitleBlock","_templateObject6","_templateObject7","_headingLevel","badge","_templateObject8","_templateObject9","_templateObject10","_renderTopBar","placement","_templateObject11","_templateObject12","_templateObject13","render","shellBar","_templateObject14","ifDefined","_templateObject15","_templateObject16","_templateObject17","__decorate","styles","NileElement","property","type","Boolean","reflect","attribute","prototype","state","query","customElement"],"mappings":"01yDAoIaA,CAAAA,uBAAAA,EAAA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A,EAxIjClN,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAY0M,CAAA,CAAA,CADxBW,CAAc,CAAA,gBAAA,CAAA,CAAA,CACFrN"}
1
+ {"version":3,"file":"nile-app-shell.cjs.js","sources":["../../../src/nile-app-shell/nile-app-shell.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { styles } from './nile-app-shell.css';\nimport { renderGlyph } from '../internal/glyph';\nimport NileElement from '../internal/nile-element';\nimport '../nile-button/nile-button';\nimport '../nile-lite-tooltip/index';\nimport type { NileliteTooltip } from '../nile-lite-tooltip/nile-lite-tooltip';\n\n/** The mode the AI panel is currently in. */\nexport type NileAppShellPanelMode = 'docked' | 'overlay';\n\n/** Where the top bar is mounted. */\nexport type NileAppShellTopBarPlacement = 'content' | 'shell';\n\n/** How the main region lays its content out. */\nexport type NileAppShellContentAlign = 'fluid' | 'centered';\n\n/** The `detail` of the `nile-click` the header back control emits. */\nexport interface NileAppShellClickDetail {\n value: 'back';\n}\n\n/** The shell's own track and region widths, in px. */\ninterface ShellGeometry {\n nav: number;\n rail: number;\n gutter: number;\n content: number;\n aside: number;\n panel: number;\n}\n\n/**\n * @summary The application frame every route inherits: a side nav, a content container, an optional aside and an AI assistant panel.\n *\n * @status stable\n * @since 2.0\n *\n * @tag nile-app-shell\n *\n * @dependency nile-button\n * @dependency nile-glyph\n * @dependency nile-lite-tooltip\n *\n * @slot - The page body, inside the content container.\n * @slot banner - A full-width strip above every other region.\n * @slot top-bar - The page-title bar, mounted inside the container by default or spanning the shell when `top-bar-placement=\"shell\"`.\n * @slot top-bar-actions - Controls pinned to the end of the top bar.\n * @slot tabs - A hoisted second-level tab strip, flush under the top bar and outside `<main>`'s scroller.\n * @slot page-title - The page title's content, replacing `pageTitle`. It sits inside the shell's own heading wrapper, so the heading role and `headingLevel` still apply.\n * @slot description - The line under the page title, replacing `description`. Takes any content, and the header grows to fit it.\n * @slot breadcrumb - A breadcrumb trail (e.g. `<nile-breadcrumb>`) above the page title. Shown only with a `pageTitle`; the title block is pushed down by however tall the trail is.\n * @slot app-icon - The mark shown before the page title whenever this slot has content, clipped to the shell's box.\n * @slot side-nav - The navigation track. Works best with `<nile-side-bar>`.\n * @slot aside - A secondary column between the content container and the panel.\n * @slot panel - The AI panel's body. When empty the panel is unmounted and `openPanel()` is a no-op.\n * @slot panel-header - Replaces the default panel heading (mark plus title).\n * @slot panel-actions - Controls added before the panel's close button.\n * @slot panel-footer - A bar docked below the panel's scroll region, for a composer.\n *\n * @event nile-nav-toggle - Emitted after the nav's collapsed state or forced-rail lock changes. `detail: { collapsed, locked }`.\n * @event nile-panel-toggle - Emitted after the panel opens or closes. `detail: { open, mode }`.\n * @event nile-panel-mode-change - Emitted when the panel flips between docked and overlay. `detail: { mode }`.\n * @event nile-click - Emitted when the header's back control is pressed, or `goBackHeader()` is called. `detail: { value: 'back' }`. Emitted on the shell itself, so check `event.target === shell` as well as the value: a `nile-click` from page content bubbles through the shell too.\n * @event nile-panel-back - Emitted when the panel's back control is pressed, whether the shell's built-in panel chrome or a slotted `nile-app-shell-panel` draws it.\n *\n * @csspart skip-link - The skip-to-content link.\n * @csspart banner - The banner region.\n * @csspart shell-top-bar - The top bar when it spans the shell.\n * @csspart top-bar - The top bar, in either placement.\n * @csspart nav-toggle - The built-in nav toggle button.\n * @csspart rule - The vertical rule after the nav toggle.\n * @csspart ask-rule - The vertical rule before the Ask button, drawn when `top-bar-actions` has content.\n * @csspart top-bar-actions - The end-aligned top bar action group.\n * @csspart ask - The built-in Ask button, the shell's single door to the panel.\n * @csspart title-area - The header's own title block: back control, app icon, title, badge and description.\n * @csspart breadcrumb - The row above the page title that holds the `breadcrumb` slot.\n * @csspart page-title - The title text, exposed as a heading whose level `headingLevel` sets.\n * @csspart description - The second line under the title.\n * @csspart badge - The pill after the title.\n * @csspart back - The header back control, shown by `headerBack`.\n * @csspart app-icon - The block holding the `app-icon` slot, shown when the slot has content and sized by `--nile-app-shell-app-icon-size`.\n * @csspart tabs - The hoisted tab-strip region, under the top bar.\n * @csspart side-nav - The navigation track.\n * @csspart content-section - The flex row holding container, aside and panel.\n * @csspart container - The content container.\n * @csspart main - The scrolling page body.\n * @csspart aside - The aside region.\n * @csspart panel - The AI panel.\n * @csspart panel-header - The panel's header bar.\n * @csspart panel-back - The panel's back control, shown by `panelBack`.\n * @csspart panel-title - The panel's title text.\n * @csspart panel-actions - The panel's header action group.\n * @csspart panel-close - The panel's close button.\n * @csspart panel-body - The panel's scroll region.\n * @csspart panel-footer - The panel's footer.\n *\n * @cssproperty [--nile-app-shell-side-nav-width=260px] - Expanded nav track (240px on the enterprise sheet), in step with nile-side-bar.\n * @cssproperty [--nile-app-shell-side-nav-rail-width=72px] - Collapsed track (70px on the enterprise sheet), in step with nile-side-bar.\n * @cssproperty [--nile-app-shell-gutter=4px] - Content-section padding, and the gap between container, aside and panel.\n * @cssproperty [--nile-app-shell-content-padding=24px] - Container inner padding.\n * @cssproperty [--nile-app-shell-panel-header-height=56px] - The panel header's own height.\n * @cssproperty [--nile-app-shell-tabs-height=33px] - Tab strip height.\n * @cssproperty [--nile-app-shell-panel-width=480px] - Docked panel width, and the `min()` ceiling for the overlay drawer.\n * @cssproperty [--nile-app-shell-panel-min-width=360px] - How far a docked panel shrinks to keep pushing rather than covering the page.\n * @cssproperty [--nile-app-shell-aside-width=320px] - Aside width.\n * @cssproperty [--nile-app-shell-aside-min-width=240px] - How far the aside shrinks before the page is asked for room.\n * @cssproperty [--nile-app-shell-content-min-width=640px] - Container floor.\n * @cssproperty [--nile-app-shell-min-width=768px] - Below this the window scrolls rather than the shell compressing.\n * @cssproperty [--nile-app-shell-centered-width=824px] - Column width under `content-align=\"centered\"`.\n * @cssproperty [--nile-app-shell-app-icon-size=20px] - The app icon's box.\n * @cssproperty [--nile-app-shell-utility-size=32px] - Box the shell's own icon controls sit in.\n * @cssproperty [--nile-app-shell-radius=16px] - Container, aside and panel radius.\n * @cssproperty [--nile-app-shell-duration=250ms] - Track and panel motion.\n * @cssproperty [--nile-app-shell-ease] - Easing for moves and resizes.\n *\n * @method openPanel() - Open the AI panel. No-op when the panel is unavailable.\n * @method closePanel() - Close the AI panel.\n * @method togglePanel(force?) - Toggle, or force a specific open state.\n * @method expandNav() - Expand the side nav.\n * @method collapseNav() - Collapse the side nav to a rail.\n * @method toggleNav(force?) - Toggle, or force a specific collapsed state.\n * @method goBackHeader() - Emit `nile-click` with `{ value: 'back' }`, as the header's back control does.\n * @method goBackPanel() - Emit `nile-panel-back`, as the panel's back control does.\n * @method goBack() - Deprecated alias of `goBackPanel()`.\n */\n@customElement('nile-app-shell')\nexport class NileAppShell extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n /** The user's nav preference. The nav can still render as a rail while this is false — see `navLocked`. */\n @property({ type: Boolean, reflect: true, attribute: 'nav-collapsed' })\n navCollapsed: boolean = false;\n\n /** Whether the AI panel is open. */\n @property({ type: Boolean, reflect: true, attribute: 'panel-open' })\n panelOpen: boolean = false;\n\n /** Unmounts the AI panel for this route even when the `panel` slot is filled; `openPanel()` becomes a no-op. */\n @property({ type: Boolean, reflect: true, attribute: 'no-panel' })\n noPanel: boolean = false;\n\n /** The default panel heading. Ignored when `panel-header` is slotted. */\n @property({ type: String, attribute: 'panel-label' })\n panelLabel: string = 'Ask Aquera';\n\n /** The page title, rendered as the top bar's own heading (`role=\"heading\"`, level from `headingLevel`) before anything slotted into `top-bar`; the fallback for the `page-title` slot. Leave unset, with the slot empty, and no title block renders. */\n @property({ type: String, attribute: true, reflect: true })\n pageTitle?: string;\n\n /** The `aria-level` of the `pageTitle` heading, 1–6, so the title can fit the page's own heading outline; e.g. 2 when the page body or banner already has its h1. Out-of-range values clamp to 1–6 and non-numbers fall back to 1. */\n @property({ type: Number, attribute: true, reflect: true })\n headingLevel: number = 1;\n\n /** A second line under the page title; the fallback for the `description` slot, and a modifier on the title that renders nothing without one. */\n @property({ type: String, attribute: true, reflect: true })\n description?: string;\n\n /** A pill after the page title; a modifier on `pageTitle` like `description`, so with no title there is no badge. */\n @property({ type: String, attribute: true, reflect: true })\n badge?: string;\n\n /** Shows the back arrow before the page title; pressing it emits `nile-click` with `{ value: 'back' }`. Independent of the `app-icon` slot. */\n @property({ type: Boolean, attribute: true, reflect: true })\n headerBack: boolean = false;\n\n /** Accessible name of the header back control. Never rendered as visible text. */\n @property({ type: String, attribute: true, reflect: true })\n headerBackLabel: string = 'Back';\n\n /** Turns off the shell's own tooltips: the labels on its icon buttons, and the full text of a title, description or panel title that its ellipsis has cut off. */\n @property({ type: Boolean, reflect: true, attribute: true })\n disableTooltip: boolean = false;\n\n /** Placement of the tooltips on the shell's icon buttons: the nav toggle, the back button and the panel's back and close buttons. Unset keeps `bottom`. Any `nile-lite-tooltip` placement. */\n @property({ type: String, attribute: true })\n controlTooltipPlacement?: NileliteTooltip['placement'];\n\n /** Placement of the full-text tooltips on a title, description or panel title that its ellipsis has cut off. Unset keeps `top`. Any `nile-lite-tooltip` placement. */\n @property({ type: String, attribute: true })\n textTooltipPlacement?: NileliteTooltip['placement'];\n\n /** Hides the built-in nav toggle. Mount `nile-app-shell-nav-toggle` yourself. */\n @property({ type: Boolean, reflect: true, attribute: 'no-nav-toggle' })\n noNavToggle: boolean = false;\n\n /** Drops the Cmd/Ctrl+J and Escape panel shortcuts. */\n @property({ type: Boolean, attribute: 'no-panel-shortcut' })\n noPanelShortcut: boolean = false;\n\n /** Hides the skip-to-content link. */\n @property({ type: Boolean, reflect: true, attribute: 'no-skip-link' })\n noSkipLink: boolean = false;\n\n /** Label for the skip-to-content link. */\n @property({ type: String, attribute: 'skip-link-label' })\n skipLinkLabel: string = 'Skip to main content';\n\n /** Where the top bar is mounted: inside the container, or spanning the shell. */\n @property({ type: String, reflect: true, attribute: 'top-bar-placement' })\n topBarPlacement: NileAppShellTopBarPlacement = 'content';\n\n /** `centered` caps the page body at `--nile-app-shell-centered-width`. */\n @property({ type: String, reflect: true, attribute: 'content-align' })\n contentAlign: NileAppShellContentAlign = 'fluid';\n\n /** Makes the slotted page root a size query container, so page CSS can size against the content container instead of the viewport. */\n @property({ type: Boolean, reflect: true, attribute: 'content-container' })\n contentContainer: boolean = false;\n\n /** Drops the container's card chrome for a full-bleed page. */\n @property({ type: Boolean, reflect: true })\n flat: boolean = false;\n\n /** Removes the container's inner padding. */\n @property({ type: Boolean, reflect: true, attribute: 'no-padding' })\n noPadding: boolean = false;\n\n /** The label on the built-in Ask button. */\n @property({ type: String, attribute: 'ask-label' })\n askLabel: string = 'Ask';\n\n /** Drops the built-in Ask button, for a bar that renders its own. */\n @property({ type: Boolean, reflect: true, attribute: 'no-ask' })\n noAsk: boolean = false;\n\n /** Shows a back control at the start of the panel header for a panel sub-view; emits `nile-panel-back`. */\n @property({ type: Boolean, reflect: true })\n panelBack: boolean = false;\n\n /** Accessible name of the panel's back control. */\n @property({ type: String })\n panelBackLabel: string = 'Back';\n\n /** Hides the tab strip for this route even when the `tabs` slot is filled. */\n @property({ type: Boolean, reflect: true })\n noTabs: boolean = false;\n\n /** Sizes the shell to the viewport instead of its parent. */\n @property({ type: Boolean, reflect: true, attribute: 'full-height' })\n fullHeight: boolean = false;\n\n /** Below this shell width the panel overlays the content instead of pushing it, and the nav is forced to a rail; zero (default) means never. */\n @property({ type: Number, attribute: 'overlay-breakpoint' })\n overlayBreakpoint: number = 0;\n\n /** Below this shell width an open docked panel forces the nav to a rail. */\n @property({ type: Number, attribute: 'docked-rail-breakpoint' })\n dockedRailBreakpoint: number = 1440;\n\n /** Persists the nav preference and docked panel state under this key. Overlay panel state is never persisted. */\n @property({ type: String, attribute: 'persist-key' })\n persistKey?: string;\n\n /** The panel's current mode. Derived from the shell's width. */\n @state() private _panelMode: NileAppShellPanelMode = 'docked';\n\n /** Whether the nav is held at a rail by the shell's width. */\n @state() private _navLocked: boolean = false;\n\n @state() private _hasBanner: boolean = false;\n @state() private _hasSideNav: boolean = false;\n @state() private _hasTopBar: boolean = false;\n @state() private _hasTopBarActions: boolean = false;\n @state() private _hasTabs: boolean = false;\n @state() private _hasAppIcon: boolean = false;\n @state() private _hasBreadcrumb: boolean = false;\n @state() private _hasTitleSlot: boolean = false;\n @state() private _hasDescriptionSlot: boolean = false;\n @state() private _hasPanel: boolean = false;\n @state() private _hasPanelFooter: boolean = false;\n\n /** True when a `nile-app-shell-panel` is slotted, owning the panel's own chrome so the shell renders a bare region. */\n @state() private _panelOwnsChrome: boolean = false;\n @state() private _hasAside: boolean = false;\n\n /** The full text of each heading the ellipsis is currently cutting off; empty while it fits. */\n @state() private _clipped = { title: '', description: '', panelTitle: '' };\n\n @query('.main') private _main?: HTMLElement;\n\n private _width: number = 0;\n private _resizeObserver?: ResizeObserver;\n private _restoredPanelOpen: boolean | null = null;\n\n /** The panel's current mode: `docked` or `overlay`. */\n public get panelMode(): NileAppShellPanelMode {\n return this._panelMode;\n }\n\n /** Whether the shell is holding the nav at a rail. The toggle is disabled. */\n public get navLocked(): boolean {\n return this._navLocked;\n }\n\n /** Whether a panel is mounted for this route. */\n public get panelAvailable(): boolean {\n return this._hasPanel && !this.noPanel;\n }\n\n /** Whether the tab strip is rendered: something slotted, and not switched off. */\n public get tabsVisible(): boolean {\n return this._hasTabs && !this.noTabs;\n }\n\n /** Whether the built-in Ask button is rendered. */\n public get askVisible(): boolean {\n return this.panelAvailable && !this.noAsk;\n }\n\n /** Whether the nav renders as a rail right now, preference or lock. */\n public get rail(): boolean {\n return this.navCollapsed || this._navLocked;\n }\n\n public connectedCallback(): void {\n super.connectedCallback();\n this._restore();\n this._resizeObserver = new ResizeObserver(entries => {\n this._syncClipping();\n const entry = entries[entries.length - 1];\n this._measure(entry.contentRect.width);\n });\n this._resizeObserver.observe(this);\n document.addEventListener('keydown', this._onKeyDown);\n }\n\n public disconnectedCallback(): void {\n super.disconnectedCallback();\n this._resizeObserver?.disconnect();\n this._resizeObserver = undefined;\n document.removeEventListener('keydown', this._onKeyDown);\n }\n\n protected willUpdate(changed: PropertyValues<this>): void {\n if (\n changed.has('panelOpen') ||\n changed.has('noPanel') ||\n changed.has('overlayBreakpoint') ||\n changed.has('dockedRailBreakpoint') ||\n // Aside/side-nav mounting changes what a docked panel fits beside; ask the map since private state is outside `keyof this`.\n (changed as Map<string, unknown>).has('_hasAside') ||\n (changed as Map<string, unknown>).has('_hasSideNav')\n ) {\n this._recompute();\n }\n }\n\n protected updated(changed: PropertyValues<this>): void {\n super.updated(changed);\n\n // Derived state the stylesheet and consumers read off the host.\n this.toggleAttribute('rail', this.rail);\n this.toggleAttribute('nav-locked', this._navLocked);\n this.toggleAttribute('has-banner', this._hasBanner);\n this.toggleAttribute('has-side-nav', this._hasSideNav);\n this.toggleAttribute(\n 'has-top-bar',\n this._hasTopBar ||\n this._hasTitleBlock ||\n (!this.noNavToggle && this._hasSideNav)\n );\n // Only with a title to sit under: see _hasTitleBlock.\n this.toggleAttribute(\n 'has-description',\n this._hasDescription && this._hasTitle\n );\n this.toggleAttribute(\n 'has-breadcrumb',\n this._hasBreadcrumb && this._hasTitle\n );\n this.toggleAttribute('has-top-bar-actions', this._hasTopBarActions);\n this.toggleAttribute('has-app-icon', this._hasAppIcon);\n this.toggleAttribute('has-ask', this.askVisible);\n this.toggleAttribute('has-tabs', this.tabsVisible);\n this.toggleAttribute('has-aside', this._hasAside);\n this.toggleAttribute('has-panel', this.panelAvailable);\n this.toggleAttribute('has-panel-footer', this._hasPanelFooter);\n this.setAttribute('panel-mode', this._panelMode);\n this.setAttribute(\n 'panel-chrome',\n this._panelOwnsChrome ? 'external' : 'internal'\n );\n\n this._syncSideNav();\n this._syncClipping();\n }\n\n /** Records the text of each title the ellipsis has cut off, so only those get a tooltip. */\n private _syncClipping(): void {\n const root = this.shadowRoot;\n if (!root) return;\n const textOf = (slotName: string, fallback: string | undefined): string => {\n const slot = root.querySelector<HTMLSlotElement>(`slot[name=\"${slotName}\"]`);\n const assigned = slot?.assignedNodes({ flatten: true }) ?? [];\n const text = assigned.map(node => node.textContent ?? '').join('').trim();\n return text || (fallback ?? '').trim();\n };\n const clippedText = (selector: string, text: () => string): string => {\n const el = root.querySelector<HTMLElement>(selector);\n return el && el.scrollWidth > el.clientWidth ? text() : '';\n };\n const next = {\n title: clippedText('.page-title', () => textOf('page-title', this.pageTitle)),\n description: clippedText('.description', () => textOf('description', this.description)),\n panelTitle: clippedText('.panel-title', () => this.panelLabel),\n };\n const prev = this._clipped;\n if (\n next.title !== prev.title ||\n next.description !== prev.description ||\n next.panelTitle !== prev.panelTitle\n ) {\n this._clipped = next;\n }\n }\n\n /** Wraps a control or heading in a nile-lite-tooltip; an empty `content`, or `disableTooltip`, leaves the tooltip off. */\n private _tip(content: string, child: TemplateResult, kind: 'control' | 'text' = 'control'): TemplateResult {\n const placement =\n kind === 'text'\n ? this.textTooltipPlacement ?? 'top'\n : this.controlTooltipPlacement ?? 'bottom';\n return html`<nile-lite-tooltip\n class=\"tip\"\n placement=${placement}\n content=${content}\n ?disabled=${this.disableTooltip || !content}\n >${child}</nile-lite-tooltip\n >`;\n }\n\n /** Open the AI panel. No-op when no panel is mounted for this route. */\n public openPanel(): void {\n if (!this.panelAvailable) return;\n this._setPanelOpen(true);\n }\n\n /** Close the AI panel. */\n public closePanel(): void {\n this._setPanelOpen(false);\n }\n\n /** Toggle the panel, or force a state. */\n public togglePanel(force?: boolean): void {\n const next = force ?? !this.panelOpen;\n if (next) this.openPanel();\n else this.closePanel();\n }\n\n /** Emit `nile-click` with `{ value: 'back' }`, as the header's back control does; the page owns the history. */\n public goBackHeader(): void {\n const detail: NileAppShellClickDetail = { value: 'back' };\n this.emit('nile-click', detail);\n }\n\n /** Emit `nile-panel-back`, as the panel's back control does; the page owns the view stack. */\n public goBackPanel(): void {\n this.emit('nile-panel-back');\n }\n\n /** @deprecated Use `goBackPanel()`; kept as an alias that emits `nile-panel-back`. */\n public goBack(): void {\n this.goBackPanel();\n }\n\n /** Expand the side nav. */\n public expandNav(): void {\n this._setNavCollapsed(false);\n }\n\n /** Collapse the side nav to a rail. */\n public collapseNav(): void {\n this._setNavCollapsed(true);\n }\n\n /** Toggle the side nav, or force a collapsed state. */\n public toggleNav(force?: boolean): void {\n this._setNavCollapsed(force ?? !this.navCollapsed);\n }\n\n /** Move focus to the page body. */\n public focusMain(): void {\n this._main?.focus();\n }\n\n private _setPanelOpen(value: boolean): void {\n if (this.panelOpen === value) return;\n this.panelOpen = value;\n this._persist();\n this.emit('nile-panel-toggle', { open: value, mode: this._panelMode });\n }\n\n private _setNavCollapsed(value: boolean): void {\n if (this.navCollapsed === value) return;\n this.navCollapsed = value;\n this._persist();\n this.emit('nile-nav-toggle', {\n collapsed: value,\n locked: this._navLocked,\n });\n }\n\n /** Records the shell's width and re-derives everything that depends on it. */\n private _measure(width: number): void {\n if (width === this._width) return;\n const first = this._width === 0;\n this._width = width;\n this._recompute();\n\n // A persisted panel state only applies once we know the panel would dock.\n if (first && this._restoredPanelOpen !== null) {\n const open = this._restoredPanelOpen;\n this._restoredPanelOpen = null;\n if (open && this._panelMode === 'docked') this.openPanel();\n }\n }\n\n /** The shell's geometry, read off its own custom properties, falling back to defaults before a computed style exists. */\n private _geometry(): ShellGeometry {\n const style = getComputedStyle(this);\n const px = (name: string, fallback: number): number => {\n const value = parseFloat(style.getPropertyValue(name));\n return Number.isFinite(value) ? value : fallback;\n };\n return {\n // Read the substituted value so they follow the active theme; the literals mirror the CSS fallback (NxtGen 260 / 72).\n nav: px('--nile-app-shell-side-nav-width', 260),\n rail: px('--nile-app-shell-side-nav-rail-width', 72),\n gutter: px('--nile-app-shell-gutter', 4),\n content: px('--nile-app-shell-content-min-width', 640),\n aside: px('--nile-app-shell-aside-width', 320),\n panel: px('--nile-app-shell-panel-width', 480),\n };\n }\n\n /** The shell width a docked panel needs to sit beside the content floor, over a side-nav `track` wide. */\n private _dockRequirement(geo: ShellGeometry, track: number): number {\n const nav = this._hasSideNav ? track : 0;\n const aside = this._hasAside ? geo.aside + geo.gutter : 0;\n /* The content row's chrome is end-edge padding plus one flex gap between container and panel (an aside carries its own gap above), and start-edge padding too when no nav track is there to sit flush against. */\n const gutters = this._hasSideNav ? 2 : 3;\n return nav + geo.content + aside + geo.panel + geo.gutter * gutters;\n }\n\n private _recompute(): void {\n const width = this._width;\n const geo = this._geometry();\n\n /* Overlay is opt-in: the shell only overlays below a width the author names, never from running out of room. */\n const overlay =\n this.overlayBreakpoint > 0 && width > 0 && width < this.overlayBreakpoint;\n const mode: NileAppShellPanelMode = overlay ? 'overlay' : 'docked';\n\n // A docked panel squeezes the container, so a narrow shell trades the expanded nav for content width, measured against the expanded track.\n const railAt = Math.max(\n this.dockedRailBreakpoint,\n this._dockRequirement(geo, geo.nav)\n );\n const squeezed =\n !overlay &&\n this.panelOpen &&\n this.panelAvailable &&\n width > 0 &&\n width < railAt;\n const locked = overlay || squeezed;\n\n if (mode !== this._panelMode) {\n this._panelMode = mode;\n this.emit('nile-panel-mode-change', { mode });\n }\n\n if (locked !== this._navLocked) {\n this._navLocked = locked;\n this.emit('nile-nav-toggle', {\n collapsed: this.navCollapsed,\n locked,\n });\n }\n }\n\n /** Mirrors the effective rail state onto a slotted `nile-side-bar`. */\n private _syncSideNav(): void {\n this.querySelectorAll('[slot=\"side-nav\"]').forEach(el => {\n if (el.tagName === 'NILE-SIDE-BAR')\n el.toggleAttribute('collapsed', this.rail);\n });\n }\n\n /**\n * Sets the effective rail state on a slotted nile-side-bar and on one nested in a nile-app-shell-side-nav.\n * It sets the `collapsed` property rather than the attribute: a sidebar that has just toggled itself has\n * not reflected that to its attribute yet, so toggling the attribute back would be a no-op.\n */\n private _reassertRail(): void {\n const bars = [\n ...this.querySelectorAll('nile-side-bar[slot=\"side-nav\"]'),\n ...[...this.querySelectorAll('nile-app-shell-side-nav')].flatMap(nav =>\n [...nav.querySelectorAll('nile-side-bar')].filter(\n bar => bar.parentElement?.closest('nile-side-bar, nile-app-shell-side-nav') === nav\n )\n ),\n ];\n bars.forEach(bar => ((bar as HTMLElement & { collapsed: boolean }).collapsed = this.rail));\n }\n\n /** A slotted sidebar's own expand button is the same toggle. */\n private _onSideNavToggle = (event: Event): void => {\n const detail = (event as CustomEvent).detail;\n if (detail && typeof detail.collapsed === 'boolean') {\n this._setNavCollapsed(detail.collapsed);\n // The shell decides the rail: a locked rail stays a rail whatever the button asked for.\n this._reassertRail();\n }\n };\n\n private _onKeyDown = (event: KeyboardEvent): void => {\n if (this.noPanelShortcut || !this.panelAvailable) return;\n\n const key = event.key ?? '';\n\n if ((event.metaKey || event.ctrlKey) && key.toLowerCase() === 'j') {\n event.preventDefault();\n this.togglePanel();\n return;\n }\n\n // A docked panel is furniture, not a dismissible overlay.\n if (key === 'Escape' && this.panelOpen && this._panelMode === 'overlay') {\n this.closePanel();\n }\n };\n\n private _storageKey(part: string): string {\n return `nile-app-shell:${this.persistKey}:${part}`;\n }\n\n private _restore(): void {\n if (!this.persistKey) return;\n try {\n const nav = localStorage.getItem(this._storageKey('nav-collapsed'));\n if (nav !== null) this.navCollapsed = nav === 'true';\n const panel = localStorage.getItem(this._storageKey('panel-open'));\n if (panel !== null) this._restoredPanelOpen = panel === 'true';\n } catch {\n /* Storage can be blocked; the shell still works without it. */\n }\n }\n\n private _persist(): void {\n if (!this.persistKey) return;\n try {\n localStorage.setItem(\n this._storageKey('nav-collapsed'),\n String(this.navCollapsed)\n );\n if (this._panelMode === 'docked') {\n localStorage.setItem(\n this._storageKey('panel-open'),\n String(this.panelOpen)\n );\n }\n } catch {\n /* Storage can be blocked; the shell still works without it. */\n }\n }\n\n private _onSlotChange(slot: string, event: Event): void {\n if (!(event.target as HTMLSlotElement).isConnected) return;\n const assigned = (event.target as HTMLSlotElement).assignedNodes({\n flatten: true,\n });\n const filled = assigned.some(\n node =>\n node.nodeType === Node.ELEMENT_NODE ||\n (node.textContent ?? '').trim() !== ''\n );\n\n switch (slot) {\n case 'banner':\n this._hasBanner = filled;\n break;\n case 'side-nav':\n this._hasSideNav = filled;\n this._syncSideNav();\n break;\n case 'top-bar':\n this._hasTopBar = filled;\n break;\n case 'top-bar-actions':\n this._hasTopBarActions = filled;\n break;\n case 'tabs':\n this._hasTabs = filled;\n break;\n case 'app-icon':\n this._hasAppIcon = filled;\n break;\n case 'breadcrumb':\n this._hasBreadcrumb = filled;\n break;\n case 'page-title':\n this._hasTitleSlot = filled;\n break;\n case 'description':\n this._hasDescriptionSlot = filled;\n break;\n case 'aside':\n this._hasAside = filled;\n break;\n case 'panel':\n this._hasPanel = filled;\n this._panelOwnsChrome = assigned.some(\n node =>\n node.nodeType === Node.ELEMENT_NODE &&\n (node as Element).tagName === 'NILE-APP-SHELL-PANEL'\n );\n this._recompute();\n break;\n case 'panel-footer':\n this._hasPanelFooter = filled;\n break;\n default:\n break;\n }\n }\n\n private _renderNavToggle(): TemplateResult | string {\n if (this.noNavToggle || !this._hasSideNav) return '';\n const expanded = !this.rail;\n return html`\n <div class=\"nav-toggle-group\">\n ${this._tip(\n this._navLocked\n ? 'The navigation stays collapsed at this window width'\n : expanded\n ? 'Collapse navigation'\n : 'Expand navigation',\n html`<nile-button\n class=\"nav-toggle utility-control\"\n part=\"nav-toggle\"\n variant=\"ghost\"\n circle\n aria-controls=\"side-nav\"\n aria-expanded=${expanded ? 'true' : 'false'}\n ?disabled=${this._navLocked}\n aria-label=${expanded ? 'Collapse navigation' : 'Expand navigation'}\n @click=${() => this.toggleNav()}\n >\n ${renderGlyph('ng-panel-left', 20, 'currentColor')}\n </nile-button>`\n )}\n ${this._hasTopBar || this._hasTitleBlock\n ? html`<span class=\"rule\" part=\"rule\"></span>`\n : ''}\n </div>\n `;\n }\n\n /** Whether the header has a title block of its own to draw: a title, the back arrow or a slotted app icon mounts it. */\n private get _hasTitleBlock(): boolean {\n return this._hasTitle || this.headerBack || this._hasAppIcon;\n }\n\n /** A title is present when `pageTitle` has content or the `page-title` slot is filled. */\n private get _hasTitle(): boolean {\n return !!this.pageTitle || this._hasTitleSlot;\n }\n\n /** A description is present when `description` has content or the `description` slot is filled. */\n private get _hasDescription(): boolean {\n return !!this.description || this._hasDescriptionSlot;\n }\n\n /** `headingLevel` as a safe `aria-level`: a whole number clamped to 1–6, and 1 for anything non-numeric. */\n private get _headingLevel(): number {\n const level = Math.trunc(Number(this.headingLevel));\n return Number.isFinite(level) ? Math.min(6, Math.max(1, level)) : 1;\n }\n\n private _renderBack(): TemplateResult | string {\n if (!this.headerBack) return '';\n return html`\n <span class=\"back-line\">\n ${this._tip(\n this.headerBackLabel,\n html`<button\n class=\"back\"\n part=\"back\"\n type=\"button\"\n aria-label=${this.headerBackLabel}\n @click=${() => this.goBackHeader()}\n >\n ${renderGlyph('ng-arrow-narrow-left', 20, 'currentColor')}\n </button>`\n )}\n </span>\n `;\n }\n\n private _renderAppIconSlot(): TemplateResult {\n return html`<slot\n name=\"app-icon\"\n @slotchange=${(e: Event) => this._onSlotChange('app-icon', e)}\n ></slot>`;\n }\n\n private _renderBreadcrumbSlot(): TemplateResult {\n return html`<slot\n name=\"breadcrumb\"\n @slotchange=${(e: Event) => this._onSlotChange('breadcrumb', e)}\n ></slot>`;\n }\n\n /* The app-icon slot has to exist whenever the stack does not, or a slotted icon could never mount it: park it, hidden. */\n private _renderAppIconProbe(): TemplateResult {\n return html`<span class=\"app-icon-probe\" hidden\n >${this._renderAppIconSlot()}</span\n >`;\n }\n\n /* A slot that is not live in the stack still has to exist, or slotted content could never mount it: park it, hidden. */\n private _renderTitleProbe(): TemplateResult | string {\n const descriptionLive = this._hasTitle && this._hasDescription;\n if (descriptionLive) return '';\n return html`<span class=\"title-probe\" hidden\n >${this._hasTitle ? '' : this._renderTitleSlot()}${descriptionLive\n ? ''\n : this._renderDescriptionSlot()}</span\n >`;\n }\n\n private _renderTitleSlot(): TemplateResult {\n return html`<slot\n name=\"page-title\"\n @slotchange=${(e: Event) => this._onSlotChange('page-title', e)}\n >${this.pageTitle}</slot\n >`;\n }\n\n private _renderDescriptionSlot(): TemplateResult {\n return html`<slot\n name=\"description\"\n @slotchange=${(e: Event) => this._onSlotChange('description', e)}\n >${this.description}</slot\n >`;\n }\n\n private _renderTitleBlock(): TemplateResult {\n if (!this._hasTitleBlock) {\n return html`${this._renderAppIconProbe()}${this._renderTitleProbe()}`;\n }\n\n /* The stack is the title and/or the app icon; a back arrow on its own brings no empty stack. */\n if (!this._hasTitle && !this._hasAppIcon) {\n return html`\n <div class=\"title-area\" part=\"title-area\">\n ${this._renderBack()} ${this._renderAppIconProbe()}\n ${this._renderTitleProbe()}\n </div>\n `;\n }\n\n /* The back arrow sits beside the stack; the app icon starts the stack's first row, so the description lines up under the icon when there is one and under the title when not. */\n return html`\n <div class=\"title-area\" part=\"title-area\">\n ${this._renderBack()}\n <div class=\"title-stack\">\n <div class=\"title-row\">\n <span class=\"app-icon\" part=\"app-icon\"\n >${this._renderAppIconSlot()}</span\n >\n ${this._hasTitle\n ? this._tip(\n this._clipped.title,\n html`<div\n class=\"page-title\"\n part=\"page-title\"\n role=\"heading\"\n aria-level=${this._headingLevel}\n >${this._renderTitleSlot()}</div>`,\n 'text'\n )\n : ''}\n ${this._hasTitle && this.badge\n ? html`<span class=\"badge\" part=\"badge\">${this.badge}</span>`\n : ''}\n </div>\n ${this._hasTitle && this._hasDescription\n ? this._tip(\n this._clipped.description,\n html`<p\n class=${this._hasDescriptionSlot\n ? 'description is-slotted'\n : 'description'}\n part=\"description\"\n >\n ${this._renderDescriptionSlot()}\n </p>`,\n 'text'\n )\n : ''}\n ${this._renderTitleProbe()}\n </div>\n </div>\n `;\n }\n\n private _renderTopBar(\n placement: NileAppShellTopBarPlacement\n ): TemplateResult {\n return html`\n <div\n class=${placement === 'shell' ? 'top-bar shell-top-bar' : 'top-bar'}\n part=${placement === 'shell' ? 'top-bar shell-top-bar' : 'top-bar'}\n >\n <div\n class=\"breadcrumb\"\n part=\"breadcrumb\"\n ?hidden=${!this._hasTitle || !this._hasBreadcrumb}\n >\n ${this._renderBreadcrumbSlot()}\n </div>\n <div class=\"top-bar-row\">\n ${this._renderNavToggle()}\n <div class=\"top-bar-content\">\n ${this._renderTitleBlock()}\n <slot\n name=\"top-bar\"\n @slotchange=${(e: Event) => this._onSlotChange('top-bar', e)}\n ></slot>\n </div>\n <div class=\"top-bar-actions\" part=\"top-bar-actions\">\n <slot\n name=\"top-bar-actions\"\n @slotchange=${(e: Event) =>\n this._onSlotChange('top-bar-actions', e)}\n ></slot>\n ${this.askVisible && this._hasTopBarActions\n ? html`<span class=\"rule ask-rule\" part=\"ask-rule\"></span>`\n : ''}\n ${this.askVisible\n ? html`\n <nile-button\n class=\"ask\"\n part=\"ask\"\n exportparts=\"base: ask__base, label: ask__label\"\n variant=\"secondary\"\n @click=${() => this.openPanel()}\n >\n <span slot=\"prefix\" class=\"ask-mark\">\n ${renderGlyph('ng-sparkles', 20, 'currentColor')}\n </span>\n ${this.askLabel}\n </nile-button>\n `\n : ''}\n </div>\n </div>\n </div>\n `;\n }\n\n public render(): TemplateResult {\n const shellBar = this.topBarPlacement === 'shell';\n\n return html`\n <button\n class=\"skip-link\"\n part=\"skip-link\"\n type=\"button\"\n @click=${() => this.focusMain()}\n >\n ${this.skipLinkLabel}\n </button>\n\n <div class=\"banner\" part=\"banner\">\n <slot\n name=\"banner\"\n @slotchange=${(e: Event) => this._onSlotChange('banner', e)}\n ></slot>\n </div>\n\n ${shellBar ? this._renderTopBar('shell') : ''}\n\n <div\n id=\"side-nav\"\n class=\"side-nav\"\n part=\"side-nav\"\n @nile-toggle=${this._onSideNavToggle}\n >\n <slot\n name=\"side-nav\"\n @slotchange=${(e: Event) => this._onSlotChange('side-nav', e)}\n ></slot>\n </div>\n\n <div class=\"content-section\" part=\"content-section\">\n <div class=\"container\" part=\"container\">\n ${shellBar ? '' : this._renderTopBar('content')}\n <div class=\"tabs\" part=\"tabs\">\n <slot\n name=\"tabs\"\n @slotchange=${(e: Event) => this._onSlotChange('tabs', e)}\n ></slot>\n </div>\n <main class=\"main\" part=\"main\" tabindex=\"-1\">\n <div class=\"main-inner\"><slot></slot></div>\n </main>\n </div>\n\n <div class=\"aside\" part=\"aside\">\n <slot\n name=\"aside\"\n @slotchange=${(e: Event) => this._onSlotChange('aside', e)}\n ></slot>\n </div>\n\n <aside\n class=\"panel\"\n part=\"panel\"\n aria-label=${ifDefined(\n this._panelOwnsChrome ? undefined : this.panelLabel\n )}\n aria-hidden=${this.panelOpen ? 'false' : 'true'}\n >\n ${this._panelOwnsChrome\n ? html`<slot\n name=\"panel\"\n @slotchange=${(e: Event) => this._onSlotChange('panel', e)}\n ></slot>`\n : html`\n <header class=\"panel-header\" part=\"panel-header\">\n ${this.panelBack\n ? this._tip(\n this.panelBackLabel,\n html`<nile-button\n class=\"panel-back utility-control\"\n part=\"panel-back\"\n variant=\"ghost\"\n circle\n aria-label=${this.panelBackLabel}\n @click=${() => this.goBackPanel()}\n >\n ${renderGlyph('ng-arrow-left', 20, 'currentColor')}\n </nile-button>`\n )\n : ''}\n <slot name=\"panel-header\">\n <span class=\"panel-heading\">\n <span class=\"panel-mark\">\n ${renderGlyph('ng-sparkles', 20, 'currentColor')}\n </span>\n ${this._tip(\n this._clipped.panelTitle,\n html`<h2 class=\"panel-title\" part=\"panel-title\">\n ${this.panelLabel}\n </h2>`,\n 'text'\n )}\n </span>\n </slot>\n <div class=\"panel-actions\" part=\"panel-actions\">\n <slot name=\"panel-actions\"></slot>\n ${this._tip(\n `Close ${this.panelLabel}`,\n html`<nile-button\n class=\"panel-close utility-control\"\n part=\"panel-close\"\n variant=\"ghost\"\n circle\n aria-label=\"Close ${this.panelLabel}\"\n @click=${() => this.closePanel()}\n >\n ${renderGlyph('ng-x-close', 20, 'currentColor')}\n </nile-button>`\n )}\n </div>\n </header>\n <div class=\"panel-body\" part=\"panel-body\">\n <slot\n name=\"panel\"\n @slotchange=${(e: Event) => this._onSlotChange('panel', e)}\n ></slot>\n </div>\n <div class=\"panel-footer\" part=\"panel-footer\">\n <slot\n name=\"panel-footer\"\n @slotchange=${(e: Event) =>\n this._onSlotChange('panel-footer', e)}\n ></slot>\n </div>\n `}\n </aside>\n </div>\n `;\n }\n}\n\nexport default NileAppShell;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-app-shell': NileAppShell;\n }\n}\n"],"names":["NileAppShell","_j","p","this","navCollapsed","panelOpen","noPanel","panelLabel","headingLevel","headerBack","headerBackLabel","disableTooltip","noNavToggle","noPanelShortcut","noSkipLink","skipLinkLabel","topBarPlacement","contentAlign","contentContainer","flat","noPadding","askLabel","noAsk","panelBack","panelBackLabel","noTabs","fullHeight","overlayBreakpoint","dockedRailBreakpoint","_panelMode","_navLocked","_hasBanner","_hasSideNav","_hasTopBar","_hasTopBarActions","_hasTabs","_hasAppIcon","_hasBreadcrumb","_hasTitleSlot","_hasDescriptionSlot","_hasPanel","_hasPanelFooter","_panelOwnsChrome","_hasAside","_clipped","title","description","panelTitle","_width","_restoredPanelOpen","_onSideNavToggle","event","detail","collapsed","_setNavCollapsed","_reassertRail","_onKeyDown","_i$key","panelAvailable","key","metaKey","ctrlKey","toLowerCase","preventDefault","togglePanel","closePanel","_this","_inherits","_createClass","get","panelMode","tabsVisible","value","connectedCallback","super","_restore","_resizeObserver","ResizeObserver","entries","_syncClipping","entry","length","_measure","contentRect","width","observe","document","addEventListener","disconnectedCallback","disconnect","undefined","removeEventListener","willUpdate","changed","has","_recompute","updated","toggleAttribute","rail","_hasTitleBlock","_hasDescription","_hasTitle","askVisible","setAttribute","_syncSideNav","root","shadowRoot","textOf","slotName","fallback","slot","querySelector","assignedNodes","flatten","_o$assignedNodes","map","node","textContent","join","trim","clippedText","n","selector","text","el","scrollWidth","clientWidth","next","pageTitle","prev","_tip","content","child","_this$textTooltipPlac","_this$controlTooltipP","kind","arguments","placement","textTooltipPlacement","controlTooltipPlacement","html","_templateObject","_taggedTemplateLiteral","openPanel","_setPanelOpen","force","goBackHeader","emit","goBackPanel","goBack","expandNav","collapseNav","toggleNav","focusMain","_main","focus","_persist","open","mode","locked","first","_geometry","style","getComputedStyle","px","name","parseFloat","getPropertyValue","Number","isFinite","nav","gutter","aside","panel","_dockRequirement","geo","track","gutters","overlay","railAt","Math","max","squeezed","querySelectorAll","forEach","tagName","concat","_toConsumableArray","flatMap","filter","bar","parentElement","closest","_storageKey","part","persistKey","localStorage","getItem","_unused","setItem","String","_unused2","_onSlotChange","target","isConnected","assigned","filled","some","nodeType","Node","ELEMENT_NODE","_i$textContent2","_renderNavToggle","expanded","_templateObject2","_templateObject3","renderGlyph","_templateObject4","level","trunc","min","_renderBack","_this7","_templateObject5","_templateObject6","_renderAppIconSlot","_this8","_templateObject7","e","_renderBreadcrumbSlot","_this9","_templateObject8","_renderAppIconProbe","_templateObject9","_renderTitleProbe","descriptionLive","_templateObject10","_renderTitleSlot","_renderDescriptionSlot","_this10","_templateObject11","_this11","_templateObject12","_renderTitleBlock","_templateObject13","_templateObject14","_headingLevel","badge","_templateObject15","_templateObject16","_templateObject17","_templateObject18","_renderTopBar","_this12","_templateObject19","_templateObject20","_templateObject21","render","shellBar","_templateObject22","ifDefined","_templateObject23","_templateObject24","_templateObject25","_templateObject26","_templateObject27","styles","NileElement","__decorate","property","type","Boolean","reflect","attribute","prototype","state","query","_export","customElement"],"mappings":"441DAwIaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,uEAOLC,KAAAA,CAAYC,YAAAA,CAAAA,CAAY,CAIxBD,CAAAA,KAAAA,CAASE,SAAY,CAAA,CAAA,CAAA,CAIrBF,KAAAA,CAAOG,OAAY,CAAA,CAAA,CAAA,CAInBH,KAAAA,CAAUI,UAAAA,CAAW,aAQrBJ,KAAAA,CAAYK,YAAAA,CAAW,CAYvBL,CAAAA,KAAAA,CAAUM,YAAY,CAItBN,CAAAA,KAAAA,CAAeO,eAAW,CAAA,MAAA,CAI1BP,KAAAA,CAAcQ,cAAAA,CAAAA,CAAY,CAY1BR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AA,CAC/BN,CAAA,CAAA,CAAhBO,CAAqDnR,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAkR,SAAA,CAAA,qBAAA,CAAA,IAAA,EACrCN,CAAAA,CAAAA,CAAAA,CAAA,CAAhBO,CAAAA,CAAAA,CAAAA,CAAAA,CAA2CnR,CAAAkR,CAAAA,SAAAA,CAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAC3BN,CAAA,CAAA,CAAhBO,CAAiDnR,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAkR,SAAA,CAAA,iBAAA,CAAA,IAAA,IAGjCN,CAAA,CAAA,CAAhBO,CAAkDnR,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAkR,SAAA,CAAA,kBAAA,CAAA,IAAA,EAClCN,CAAAA,CAAAA,CAAAA,CAAA,CAAhBO,CAAAA,CAAAA,CAAAA,CAAAA,CAA2CnR,CAAAkR,CAAAA,SAAAA,CAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAG3BN,CAAA,CAAA,CAAhBO,KAA0EnR,CAAAkR,CAAAA,SAAAA,CAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAEnDN,CAAA,CAAA,CAAvBQ,CAAM,CAAA,OAAA,CAAA,CAAA,CAAqCpR,CAAAkR,CAAAA,SAAAA,CAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CAAAG,OAAA,KA1JjCrR,CAAY4Q,CAAAA,CAAAA,CAAA,CADxBU,CAAAA,CAAc,mBACFtR"}
@@ -1,2 +1,2 @@
1
- System.register(["lit","../internal/app-shell-utility-control-styles.cjs.js"],function(_export,_context){"use strict";var e,n,_templateObject,a;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;},function(_internalAppShellUtilityControlStylesCjsJs){n=_internalAppShellUtilityControlStylesCjsJs.u;}],execute:function execute(){_export("s",a=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n /* Geometry: design tokens where one exists, bare pixels where none does. */\n /* The nav track mirrors nile-side-bar's own width expressions (enterprise 240/70, NxtGen 296/68); keep in step with nile-side-bar.css.ts. */\n --nile-app-shell-side-nav-width: var(\n --nile-width-240px,\n var(--ng-spacing-296, 240px)\n );\n --nile-app-shell-side-nav-rail-width: var(\n --nile-width-70px,\n var(--ng-spacing-68, 70px)\n );\n --nile-app-shell-gutter: var(--nile-spacing-xs, var(--ng-spacing-xs));\n --nile-app-shell-content-padding: var(\n --nile-spacing-3xl,\n var(--ng-spacing-3xl)\n );\n --nile-app-shell-top-bar-height: 68px;\n /* The panel header keeps its own height, distinct from the page header. */\n --nile-app-shell-panel-header-height: 56px;\n --nile-app-shell-tabs-height: 33px;\n /* The leading app icon is its own 20px size, not the 32px utility box. */\n --nile-app-shell-app-icon-size: 20px;\n --nile-app-shell-panel-width: 480px;\n --nile-app-shell-panel-min-width: 360px;\n --nile-app-shell-aside-width: 320px;\n --nile-app-shell-aside-min-width: 240px;\n --nile-app-shell-content-min-width: 640px;\n --nile-app-shell-min-width: 768px;\n --nile-app-shell-centered-width: 824px;\n /* Both tokens are 32px; the literal is the floor with no theme sheet loaded. */\n --nile-app-shell-utility-size: var(\n --nile-spacing-4xl,\n var(--ng-spacing-4xl, 32px)\n );\n --nile-app-shell-radius: var(--nile-radius-xl, var(--ng-radius-2xl));\n --nile-app-shell-duration: var(\n --nile-transition-duration-default,\n var(--ng-transition-duration-default)\n );\n /* NxtGen ships no easing tokens, so the shell names its own. */\n --nile-app-shell-ease: cubic-bezier(0.2, 0, 0, 1);\n\n --_side-nav-track: var(--nile-app-shell-side-nav-width);\n\n position: relative;\n box-sizing: border-box;\n display: grid;\n grid-template-areas:\n 'banner banner'\n 'top-bar top-bar'\n 'side-nav content';\n grid-template-columns: var(--_side-nav-track) minmax(0, 1fr);\n grid-template-rows: auto auto minmax(0, 1fr);\n /* Below this the window scrolls rather than the shell compressing. */\n min-width: var(--nile-app-shell-min-width);\n height: 100%;\n overflow: hidden;\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-tertiary));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n transition: grid-template-columns var(--nile-app-shell-duration)\n var(--nile-app-shell-ease);\n }\n\n :host([hidden]) {\n display: none;\n }\n\n :host([full-height]) {\n height: 100dvh;\n }\n\n /* Effective rail state: the user's preference, or a forced rail when narrow. */\n :host([rail]) {\n --_side-nav-track: var(--nile-app-shell-side-nav-rail-width);\n }\n\n :host(:not([has-side-nav])) {\n --_side-nav-track: 0px;\n }\n\n /* The Description axis: a present description adds the 8px its second line occupies. */\n :host([has-description]) {\n --nile-app-shell-top-bar-height: 76px;\n }\n\n /* The top bar compresses before the content does. */\n @media (max-height: 600px) {\n :host {\n --nile-app-shell-top-bar-height: 56px;\n }\n\n :host([has-description]) {\n --nile-app-shell-top-bar-height: 64px;\n }\n }\n\n /* ---------------------------------------------------------------- banner */\n\n .banner {\n grid-area: banner;\n min-width: 0;\n }\n\n :host(:not([has-banner])) .banner {\n display: none;\n }\n\n /* ------------------------------------------------------------- side nav */\n\n .side-nav {\n grid-area: side-nav;\n display: flex;\n min-width: 0;\n overflow: hidden;\n }\n\n :host(:not([has-side-nav])) .side-nav {\n display: none;\n }\n\n /* A slotted sidebar fills the shell-owned track and drops its own surface and edge; set --nile-app-shell-side-nav-bg to restore one. */\n /* width is deliberately not !important: the 100% lets a raw <nav> or nile-app-shell-side-nav fill the track, while a slotted\n nile-side-bar sizes itself from the same tokens the track reads (see the :host geometry block). Tests 21/22 in\n nile-app-shell-regions.test.ts lock the two together; change both or neither. */\n ::slotted([slot='side-nav']) {\n width: 100%;\n height: 100%;\n background: var(--nile-app-shell-side-nav-bg, transparent) !important;\n border-right: var(--nile-app-shell-side-nav-border, 0) !important;\n }\n\n /* -------------------------------------------------------- content column */\n\n .content-section {\n grid-area: content;\n position: relative;\n display: flex;\n min-width: 0;\n gap: var(--nile-app-shell-gutter);\n padding: var(--nile-app-shell-gutter);\n /* Flush against the nav track; the gutter insets the other three sides. */\n padding-inline-start: 0;\n box-sizing: border-box;\n }\n\n /* With no nav track there is nothing to sit flush against, so the start edge takes the gutter too. */\n :host(:not([has-side-nav])) .content-section {\n padding-inline-start: var(--nile-app-shell-gutter);\n }\n\n .container {\n box-sizing: border-box;\n /* The floor is the flex basis, not a min-width, so the container yields instead of overflowing the clipped row. */\n flex: 1 1 var(--nile-app-shell-content-min-width);\n display: flex;\n flex-direction: column;\n min-width: 0;\n overflow: hidden;\n background: var(--nile-colors-white-base, var(--ng-colors-bg-secondary));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-500, var(--ng-colors-border-primary));\n border-radius: var(--nile-app-shell-radius);\n box-shadow: var(--nile-box-shadow-none, var(--ng-shadow-none));\n /* The container, not the viewport, is the sizing context for page content. */\n container-type: inline-size;\n container-name: nile-content;\n }\n\n /* content-container moves the size query context onto the slotted page root so page CSS can query nile-content; opt-in as it brings containment. */\n :host([content-container]) slot:not([name])::slotted(*) {\n container-type: inline-size;\n container-name: nile-content;\n }\n\n :host([flat]) .container {\n background: transparent;\n border-color: transparent;\n border-radius: 0;\n }\n\n /* ---------------------------------------------------------------- top bar */\n\n .top-bar {\n box-sizing: border-box;\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n height: var(--nile-app-shell-top-bar-height);\n padding-inline: var(--nile-app-shell-content-padding);\n }\n\n /* The header bar draws no bottom rule in any variant; the only divider comes from the tab rail (see .tabs). */\n\n .shell-top-bar {\n grid-area: top-bar;\n min-width: 0;\n padding-inline: var(--nile-spacing-xl, var(--ng-spacing-xl));\n background: var(--nile-colors-white-base, var(--ng-colors-bg-secondary));\n border-bottom: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n /* No slotted bar content and no nav toggle means no bar at all. */\n :host(:not([has-top-bar])) .top-bar {\n display: none;\n }\n\n .top-bar-content {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n min-width: 0;\n flex: 1 1 auto;\n }\n\n /* The title block: the back arrow, then the stack (app icon, heading and badge, with the description under them); renders before the top-bar slot. */\n .title-area {\n display: flex;\n /* Top-aligned, not centred: the back arrow belongs to the title's row, not the title-plus-description stack. */\n align-items: flex-start;\n /* Figma's Title Area gap: 16px from the arrow to the stack. */\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n min-width: 0;\n }\n\n /* The back arrow's line box: exactly the page title's line height, centring the arrow on the title row. */\n .back-line {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n min-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n }\n\n .title-stack {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: var(--nile-spacing-xxs, var(--ng-spacing-xxs));\n min-width: 0;\n }\n\n .title-row {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n min-width: 0;\n }\n\n .page-title {\n margin: 0;\n min-width: 0;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));\n line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .description {\n margin: 0;\n min-width: 0;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-1, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* The badge sits on the title row and never shrinks the title away; each surface token pairs a Nile name with its NxtGen equivalent. */\n .badge {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n padding-inline: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-block: var(--nile-spacing-xxs, var(--ng-spacing-xxs));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(\n --nile-colors-neutral-400,\n var(--ng-componentcolors-utility-gray-200)\n );\n border-radius: var(--nile-radius-full, var(--ng-radius-full));\n background: var(\n --nile-colors-neutral-100,\n var(--ng-componentcolors-utility-gray-50)\n );\n color: var(\n --nile-colors-dark-500,\n var(--ng-componentcolors-utility-gray-700)\n );\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-1, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n white-space: nowrap;\n }\n\n /* headerBack: an icon-only native button, so the aria-label names it directly; the shell owns no history, so pressing it only emits nile-click { value: 'back' }. */\n .back {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n cursor: pointer;\n color: var(--nile-colors-dark-500, var(--ng-colors-fg-quaternary-400));\n }\n\n .back:hover {\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n /* App icon: a 20px block at the start of the title row, so the description lines up under it; shown whenever the app-icon slot has content. */\n .app-icon {\n position: relative;\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-app-shell-app-icon-size);\n height: var(--nile-app-shell-app-icon-size);\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n overflow: hidden;\n }\n\n /* The slotted mark fills the wrapper edge to edge, clipped to the box. */\n .app-icon slot::slotted(*) {\n width: 100%;\n height: 100%;\n display: block;\n object-fit: cover;\n }\n\n /* The wrapper takes no fill; the rim is a white-12% gradient drawn as a masked ::before, with literal mask fallbacks for the nxtgen-only tokens. */\n .app-icon::before {\n content: '';\n position: absolute;\n inset: 0;\n border-radius: inherit;\n pointer-events: none;\n z-index: 1;\n background: linear-gradient(\n 180deg,\n rgb(255 255 255 / 12%) 0%,\n rgb(255 255 255 / 0%) 100%\n );\n mask: var(\n --ng-mask-rim,\n linear-gradient(#000 0 0) content-box,\n linear-gradient(#000 0 0)\n );\n mask-composite: var(--ng-mask-composite-exclude, exclude);\n padding: 1.4px;\n }\n\n :host(:not([has-app-icon])) .app-icon {\n display: none;\n }\n\n /* Figma's Header Bar gap: 16px between every header action, the divider and Ask. */\n .top-bar-actions {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n margin-inline-start: auto;\n }\n\n /* Hidden when empty, so an empty group's gap does not pull the bar's content short of the padding edge. */\n :host(:not([has-top-bar-actions]):not([has-ask])) .top-bar-actions {\n display: none;\n }\n\n /* The Ask button: a stock <nile-button variant=\"secondary\"> the shell renders itself; the only rule here is its flex behaviour as a top-bar item. */\n .ask {\n flex: 0 0 auto;\n }\n\n .ask-mark {\n display: inline-flex;\n align-items: center;\n }\n\n .ask-mark nile-glyph {\n --nile-svg-fill: currentColor;\n --nile-svg-stroke-width: var(--ng-svg-stroke-width);\n width: 16px;\n height: 16px;\n }\n\n /* 10px after the 32px circle is 16px after the 20px glyph (6px overhang + 10), Figma's toggle-to-divider gap. */\n .nav-toggle-group {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md-alt, var(--ng-spacing-md-alt));\n }\n\n /* Lands the 20px glyph box, not the 32px utility circle, on the 24px origin: (32 - 20) / 2 = 6. */\n .nav-toggle {\n margin-inline-start: -6px;\n }\n\n /* Figma's Divider Line: a 16px 1px stroke that takes no layout width, so the items on both sides sit a clean 16px from it. Used after the nav toggle and, as ask-rule, before Ask. */\n .rule {\n flex: 0 0 auto;\n width: var(--nile-border-width-1, var(--ng-border-width-1));\n margin-inline-end: calc(-1 * var(--nile-border-width-1, var(--ng-border-width-1)));\n height: 16px;\n background: var(\n --nile-colors-neutral-400,\n var(--ng-colors-border-secondary)\n );\n }\n\n /* ------------------------------------------------------- utility controls */\n\n /* The shell's own icon controls (nav toggle, panel back and close): the shared utility-control recipe. */\n ","\n\n /* --------------------------------------------------------------- tab strip */\n\n /* Hoisted out of the scroller so it never scrolls away; sits flush under the top bar and carries the header block's single bottom rule. */\n .tabs {\n box-sizing: border-box;\n flex: 0 0 auto;\n display: flex;\n align-items: stretch;\n gap: var(--nile-spacing-xs, var(--ng-spacing-xs));\n min-width: 0;\n /* A floor, not a fixed box: the strip is as tall as the row it holds plus its rule. */\n min-height: var(--nile-app-shell-tabs-height);\n padding-inline: var(--nile-app-shell-content-padding);\n /* The strip carries the rule for the whole header block. */\n border-bottom: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n overflow-x: auto;\n scrollbar-width: none;\n }\n\n /* The header tab's 0/4/12/4 padding composes the 32px row; the 12px bottom gives the active indicator its band, set via the group's public padding hook. */\n ::slotted([slot='tabs']) {\n --nile-nav-tab-padding: var(--nile-spacing-none, var(--ng-spacing-none))\n var(--nile-spacing-xs, var(--ng-spacing-xs))\n var(--nile-spacing-lg, var(--ng-spacing-lg))\n var(--nile-spacing-xs, var(--ng-spacing-xs));\n }\n\n .tabs::-webkit-scrollbar {\n display: none;\n }\n\n :host(:not([has-tabs])) .tabs,\n :host([notabs]) .tabs {\n display: none;\n }\n\n /* A slotted nile-nav-tab-group drops its own track (--track-width:0 on the host) and is bottom-aligned so its indicator sits on the region's single rule. */\n /* Scoped to the group, not the slot, so bare tab controls are not stretched to an equal share of the strip. */\n ::slotted(nile-nav-tab-group[slot='tabs']) {\n --track-width: 0px;\n /*\n * The active indicator (Figma: fg-brand-primary-alt) is NOT set here: the top placement hard-codes\n * var(--nile-colors-primary-600, var(--ng-colors-text-brand-secondary-700)) inside nile-nav-tab-group's shadow tree, and\n * remapping either token from here would also recolour nile-nav-tab's focus ring and focus label. Known limitation (spec A-7).\n */\n /*\n * The inactive label: nile-nav-tab paints it var(--nile-colors-dark-500, var(--ng-colors-text-secondary-700)), so the strip\n * points the NxtGen fallback at text-quaternary-500. Enterprise defines --nile-colors-dark-500 and is untouched. Inside an\n * underline group nothing else reads text-secondary-700 (only the group's other variants and side placements do).\n */\n --ng-colors-text-secondary-700: var(--ng-colors-text-quaternary-500);\n flex: 1 1 auto;\n min-width: 0;\n align-self: flex-end;\n }\n\n /* ------------------------------------------------------------------- main */\n\n .main {\n box-sizing: border-box;\n flex: 1 1 auto;\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow: auto;\n /* Top and sides only: the page runs to the container's bottom edge. */\n padding: var(--nile-app-shell-content-padding);\n padding-block-end: 0;\n }\n\n .main:focus {\n outline: none;\n }\n\n :host([no-padding]) .main {\n padding: 0;\n }\n\n .main-inner {\n width: 100%;\n min-height: 0;\n }\n\n /* Centred when short, scrolls from the top when tall. */\n :host([content-align='centered']) .main-inner {\n /* width:100% + max-width leaves space for the auto margins to centre it while short, and scroll from the top when tall. */\n width: 100%;\n max-width: var(--nile-app-shell-centered-width);\n margin: auto;\n }\n\n /* ------------------------------------------------------------------ aside */\n\n .aside {\n box-sizing: border-box;\n /* Gives before the page does, down to its own floor. */\n flex: 0 1 var(--nile-app-shell-aside-width);\n min-width: var(--nile-app-shell-aside-min-width);\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow: auto;\n padding: var(--nile-app-shell-content-padding);\n background: var(--nile-colors-white-base, var(--ng-colors-bg-secondary));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n border-radius: var(--nile-app-shell-radius);\n }\n\n :host(:not([has-aside])) .aside {\n display: none;\n }\n\n /* -------------------------------------------------------------- AI panel */\n\n .panel {\n box-sizing: border-box;\n /* The panel pushes the page rather than covering it: full width while the row affords it, shrinking to a real min-width floor. */\n flex: 0 1 var(--nile-app-shell-panel-width);\n width: var(--nile-app-shell-panel-width);\n min-width: var(--nile-app-shell-panel-min-width);\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n background: var(--nile-colors-white-base, var(--ng-colors-bg-secondary));\n /* The panel is elevated, so its edge sits a rung above the container's. */\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-500, var(--ng-colors-border-primary));\n border-radius: var(--nile-app-shell-radius);\n box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));\n }\n\n /* Docked: a flex sibling. It squeezes the content, it does not cover it. */\n :host(:not([panel-open])) .panel {\n display: none;\n }\n\n /* Overlay: contained to the content column, above it, and animated in. */\n :host([panel-mode='overlay']) .panel {\n position: absolute;\n z-index: 1001;\n inset-block: var(--nile-app-shell-gutter);\n inset-inline-end: var(--nile-app-shell-gutter);\n flex: none;\n display: flex;\n width: min(var(--nile-app-shell-panel-width), 92%);\n visibility: hidden;\n transform: translateX(calc(100% + var(--nile-app-shell-gutter)));\n transition: transform var(--nile-app-shell-duration)\n var(--nile-app-shell-ease),\n visibility 0s linear var(--nile-app-shell-duration);\n }\n\n :host([panel-mode='overlay'][panel-open]) .panel {\n visibility: visible;\n transform: none;\n transition: transform var(--nile-app-shell-duration)\n var(--nile-app-shell-ease);\n }\n\n /* An unavailable panel is unmounted in either mode. */\n :host(:not([has-panel])) .panel {\n display: none;\n }\n\n .panel-header {\n box-sizing: border-box;\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n height: var(--nile-app-shell-panel-header-height);\n padding-inline: var(--nile-spacing-3xl, var(--ng-spacing-3xl));\n border-bottom: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n /* The back control for a panel sub-view; stands where the brand mark does in the root view. */\n .panel-back {\n flex: 0 0 auto;\n margin-inline-start: -6px;\n }\n\n /* Mirrors the back control's offset on the end edge: the 20px glyph, not the 32px circle, lands on the padding line. */\n .panel-close {\n margin-inline-end: -6px;\n }\n\n :host([panelback]) .panel-mark {\n display: none;\n }\n\n .panel-heading {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n min-width: 0;\n }\n\n .panel-mark {\n display: inline-flex;\n color: var(\n --nile-colors-primary-600,\n var(--ng-colors-fg-brand-primary-600)\n );\n }\n\n .panel-mark nile-glyph {\n --nile-svg-fill: currentColor;\n --nile-svg-stroke-width: var(--ng-svg-stroke-width);\n width: 20px;\n height: 20px;\n }\n\n .panel-title {\n margin: 0;\n /* Figma's Assistant Title: Text lg/Semibold, 18/28 on NxtGen. Enterprise keeps --nile-type-scale-3, and it defines no --ng-* tokens, so the line-height declaration is invalid there and the title inherits its line height exactly as before. */\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-lg));\n line-height: var(--ng-line-height-text-lg);\n font-weight: var(\n --nile-font-weight-semi-bold,\n var(--ng-font-weight-semibold)\n );\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .panel-actions {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-xs, var(--ng-spacing-xs));\n margin-inline-start: auto;\n }\n\n .panel-body {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n /* 16 under the header, 24 on the sides and bottom. */\n padding: var(--nile-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-3xl, var(--ng-spacing-3xl)) var(--nile-spacing-3xl, var(--ng-spacing-3xl));\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n }\n\n .panel-footer {\n flex: 0 0 auto;\n padding: var(--nile-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-3xl, var(--ng-spacing-3xl)) var(--nile-spacing-3xl, var(--ng-spacing-3xl));\n border-top: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n :host(:not([has-panel-footer])) .panel-footer {\n display: none;\n }\n\n /* ---------------------------------------------------------- skip link */\n\n .skip-link {\n position: absolute;\n z-index: 1002;\n inset-inline-start: var(--nile-spacing-md, var(--ng-spacing-md));\n inset-block-start: var(--nile-spacing-md, var(--ng-spacing-md));\n display: inline-flex;\n align-items: center;\n padding: var(--nile-spacing-md, var(--ng-spacing-md))\n var(--nile-spacing-lg, var(--ng-spacing-lg));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-500, var(--ng-colors-border-primary));\n border-radius: var(--nile-radius-md, var(--ng-radius-md));\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n font: inherit;\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));\n cursor: pointer;\n transform: translateY(-200%);\n transition: transform\n var(--nile-transition-duration-short, var(--ng-transition-duration-fast))\n var(--nile-app-shell-ease);\n }\n\n .skip-link:focus-visible {\n outline: none;\n transform: none;\n box-shadow: 0 0 0 2px\n var(--nile-colors-neutral-100, var(--ng-colors-bg-tertiary)),\n 0 0 0 4px\n var(--nile-colors-primary-600, var(--ng-colors-fg-brand-primary-600));\n }\n\n :host([no-skip-link]) .skip-link {\n display: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host,\n .panel,\n .skip-link {\n transition: none;\n }\n }\n"])),n));}};});
1
+ System.register(["lit","../internal/app-shell-utility-control-styles.cjs.js"],function(_export,_context){"use strict";var e,n,_templateObject,i;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;},function(_internalAppShellUtilityControlStylesCjsJs){n=_internalAppShellUtilityControlStylesCjsJs.u;}],execute:function execute(){_export("s",i=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n /* Geometry: design tokens where one exists, bare pixels where none does. */\n /* The nav track mirrors nile-side-bar's own width expressions (NxtGen 260/72); keep in step with nile-side-bar.css.ts. */\n --nile-app-shell-side-nav-width: 260px;\n --nile-app-shell-side-nav-rail-width: 72px;\n --nile-app-shell-gutter: var(--nile-spacing-xs, var(--ng-spacing-xs));\n --nile-app-shell-content-padding: var(\n --nile-spacing-3xl,\n var(--ng-spacing-3xl)\n );\n /* The panel header keeps its own height, distinct from the page header. */\n --nile-app-shell-panel-header-height: 56px;\n --nile-app-shell-tabs-height: 33px;\n /* The leading app icon is its own 20px size, not the 32px utility box. */\n --nile-app-shell-app-icon-size: 20px;\n --nile-app-shell-panel-width: 480px;\n --nile-app-shell-panel-min-width: 360px;\n --nile-app-shell-aside-width: 320px;\n --nile-app-shell-aside-min-width: 240px;\n --nile-app-shell-content-min-width: 640px;\n --nile-app-shell-min-width: 768px;\n --nile-app-shell-centered-width: 824px;\n /* Both tokens are 32px; the literal is the floor with no theme sheet loaded. */\n --nile-app-shell-utility-size: var(\n --nile-spacing-4xl,\n var(--ng-spacing-4xl, 32px)\n );\n --nile-app-shell-radius: var(--nile-radius-xl, var(--ng-radius-2xl));\n --nile-app-shell-duration: var(\n --nile-transition-duration-default,\n var(--ng-transition-duration-default)\n );\n /* NxtGen ships no easing tokens, so the shell names its own. */\n --nile-app-shell-ease: cubic-bezier(0.2, 0, 0, 1);\n\n --_side-nav-track: var(--nile-app-shell-side-nav-width);\n\n position: relative;\n box-sizing: border-box;\n display: grid;\n grid-template-areas:\n 'banner banner'\n 'top-bar top-bar'\n 'side-nav content';\n grid-template-columns: var(--_side-nav-track) minmax(0, 1fr);\n grid-template-rows: auto auto minmax(0, 1fr);\n /* Below this the window scrolls rather than the shell compressing. */\n min-width: var(--nile-app-shell-min-width);\n height: 100%;\n overflow: hidden;\n background: var(--nile-colors-neutral-100, var(--ng-colors-bg-tertiary));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n font-family: var(--nile-font-family-sans-serif, var(--ng-font-family-body));\n transition: grid-template-columns var(--nile-app-shell-duration)\n var(--nile-app-shell-ease);\n }\n\n :host([hidden]) {\n display: none;\n }\n\n :host([full-height]) {\n height: 100dvh;\n }\n\n /* Effective rail state: the user's preference, or a forced rail when narrow. */\n :host([rail]) {\n --_side-nav-track: var(--nile-app-shell-side-nav-rail-width);\n }\n\n :host(:not([has-side-nav])) {\n --_side-nav-track: 0px;\n }\n\n /* ---------------------------------------------------------------- banner */\n\n .tip {\n display: contents;\n }\n\n .banner {\n grid-area: banner;\n min-width: 0;\n }\n\n :host(:not([has-banner])) .banner {\n display: none;\n }\n\n /* ------------------------------------------------------------- side nav */\n\n .side-nav {\n grid-area: side-nav;\n display: flex;\n min-width: 0;\n overflow: hidden;\n }\n\n :host(:not([has-side-nav])) .side-nav {\n display: none;\n }\n\n /* -------------------------------------------------------- content column */\n\n .content-section {\n grid-area: content;\n position: relative;\n display: flex;\n min-width: 0;\n gap: var(--nile-app-shell-gutter);\n padding: var(--nile-app-shell-gutter);\n /* Flush against the nav track; the gutter insets the other three sides. */\n padding-inline-start: 0;\n box-sizing: border-box;\n }\n\n /* With no nav track there is nothing to sit flush against, so the start edge takes the gutter too. */\n :host(:not([has-side-nav])) .content-section {\n padding-inline-start: var(--nile-app-shell-gutter);\n }\n\n .container {\n box-sizing: border-box;\n /* The floor is the flex basis, not a min-width, so the container yields instead of overflowing the clipped row. */\n flex: 1 1 var(--nile-app-shell-content-min-width);\n display: flex;\n flex-direction: column;\n min-width: 0;\n overflow: hidden;\n background: var(--nile-colors-white-base, var(--ng-colors-bg-secondary));\n /* border-secondary on NxtGen; enterprise is unchanged. */\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-500, var(--ng-colors-border-secondary));\n border-radius: var(--nile-app-shell-radius);\n box-shadow: var(--nile-box-shadow-none, var(--ng-shadow-none));\n /* The container, not the viewport, is the sizing context for page content. */\n container-type: inline-size;\n container-name: nile-content;\n }\n\n /* content-container moves the size query context onto the slotted page root so page CSS can query nile-content; opt-in as it brings containment. */\n :host([content-container]) slot:not([name])::slotted(*) {\n container-type: inline-size;\n container-name: nile-content;\n }\n\n :host([flat]) .container {\n background: transparent;\n border-color: transparent;\n border-radius: 0;\n }\n\n /* ---------------------------------------------------------------- top bar */\n\n .top-bar {\n box-sizing: border-box;\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-block: var(--nile-spacing-xl, var(--ng-spacing-xl));\n padding-inline: var(--nile-app-shell-content-padding);\n }\n\n .top-bar-row {\n display: contents;\n }\n\n :host([has-breadcrumb]) .top-bar {\n flex-direction: column;\n align-items: stretch;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n }\n\n :host([has-breadcrumb]) .top-bar-row {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n flex: 0 0 auto;\n min-width: 0;\n }\n\n /* The header bar draws no bottom rule in any variant; the only divider comes from the tab rail (see .tabs). */\n\n .shell-top-bar {\n grid-area: top-bar;\n min-width: 0;\n padding-inline: var(--nile-spacing-xl, var(--ng-spacing-xl));\n background: var(--nile-colors-white-base, var(--ng-colors-bg-secondary));\n border-bottom: var(--nile-border-width-1, var(--ng-border-width-0)) solid\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n /* No slotted bar content and no nav toggle means no bar at all. */\n :host(:not([has-top-bar])) .top-bar {\n display: none;\n }\n\n .top-bar-content {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n min-width: 0;\n flex: 1 1 auto;\n min-height: var(--nile-spacing-none, var(--ng-height-36px));\n }\n\n /* The title block: the back arrow, then the stack (app icon, heading and badge, with the description under them); renders before the top-bar slot. */\n .title-area {\n display: flex;\n /* Top-aligned, not centred: the back arrow belongs to the title's row, not the title-plus-description stack. */\n align-items: flex-start;\n /* Figma's Title Area gap: 16px from the arrow to the stack. */\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n min-width: 0;\n }\n\n /* The back arrow's line box: exactly the page title's line height, centring the arrow on the title row. */\n .back-line {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n min-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n }\n\n .title-stack {\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: var(--nile-spacing-xxs, var(--ng-spacing-xxs));\n min-width: 0;\n }\n\n .breadcrumb {\n box-sizing: border-box;\n min-width: 0;\n }\n\n .breadcrumb[hidden] {\n display: none;\n }\n\n .title-row {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n min-width: 0;\n }\n\n .page-title {\n margin: 0;\n min-width: 0;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-md));\n line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .description.is-slotted {\n white-space: normal;\n overflow: visible;\n text-overflow: clip;\n }\n\n .description {\n margin: 0;\n min-width: 0;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-1, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-regular, var(--ng-font-weight-regular));\n color: var(--nile-colors-dark-500, var(--ng-colors-text-quaternary-500));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* The badge sits on the title row and never shrinks the title away; each surface token pairs a Nile name with its NxtGen equivalent. */\n .badge {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n padding-inline: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-block: var(--nile-spacing-xxs, var(--ng-spacing-xxs));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(\n --nile-colors-neutral-400,\n var(--ng-componentcolors-utility-gray-200)\n );\n border-radius: var(--nile-radius-full, var(--ng-radius-full));\n background: var(\n --nile-colors-neutral-100,\n var(--ng-componentcolors-utility-gray-50)\n );\n color: var(\n --nile-colors-dark-500,\n var(--ng-componentcolors-utility-gray-700)\n );\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-1, var(--ng-font-size-text-xs));\n line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-xs));\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-medium));\n white-space: nowrap;\n }\n\n /* headerBack: an icon-only native button, so the aria-label names it directly; the shell owns no history, so pressing it only emits nile-click { value: 'back' }. */\n .back {\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n margin: 0;\n padding: 0;\n border: 0;\n background: none;\n cursor: pointer;\n color: var(--nile-colors-dark-500, var(--ng-colors-fg-quaternary-400));\n }\n\n .back:hover {\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n }\n\n /* App icon: a 20px block at the start of the title row, so the description lines up under it; shown whenever the app-icon slot has content. */\n .app-icon {\n position: relative;\n flex: 0 0 auto;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n width: var(--nile-app-shell-app-icon-size);\n height: var(--nile-app-shell-app-icon-size);\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n overflow: hidden;\n }\n\n /* The slotted mark fills the wrapper edge to edge, clipped to the box. */\n .app-icon slot::slotted(*) {\n width: 100%;\n height: 100%;\n display: block;\n object-fit: cover;\n }\n\n /* The wrapper takes no fill; the rim is a white-12% gradient drawn as a masked ::before, with literal mask fallbacks for the nxtgen-only tokens. */\n .app-icon::before {\n content: '';\n position: absolute;\n inset: 0;\n border-radius: inherit;\n pointer-events: none;\n z-index: 1;\n background: linear-gradient(\n 180deg,\n rgb(255 255 255 / 12%) 0%,\n rgb(255 255 255 / 0%) 100%\n );\n mask: var(\n --ng-mask-rim,\n linear-gradient(#000 0 0) content-box,\n linear-gradient(#000 0 0)\n );\n mask-composite: var(--ng-mask-composite-exclude, exclude);\n padding: 1.4px;\n }\n\n :host(:not([has-app-icon])) .app-icon {\n display: none;\n }\n\n /* Figma's Header Bar gap: 16px between every header action, the divider and Ask. */\n .top-bar-actions {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n margin-inline-start: auto;\n }\n\n /* Hidden when empty, so an empty group's gap does not pull the bar's content short of the padding edge. */\n :host(:not([has-top-bar-actions]):not([has-ask])) .top-bar-actions {\n display: none;\n }\n\n /* The Ask button: a stock <nile-button variant=\"secondary\"> the shell renders itself, as a top-bar flex item. */\n .ask {\n flex: 0 0 auto;\n }\n\n .ask::part(base) {\n height: var(--nile-height-40px, var(--ng-height-36px));\n padding: var(--nile-spacing-10px, var(--ng-spacing-md))\n var(--nile-spacing-14px, var(--ng-spacing-lg));\n }\n\n .ask-mark {\n display: inline-flex;\n align-items: center;\n }\n\n .ask-mark nile-glyph {\n --nile-svg-fill: currentColor;\n --nile-svg-stroke-width: var(--ng-svg-stroke-width);\n width: var(--nile-width-16px, var(--ng-height-20px));\n height: var(--nile-width-16px, var(--ng-height-20px));\n }\n\n /* 10px after the 32px circle is 16px after the 20px glyph (6px overhang + 10), Figma's toggle-to-divider gap. */\n .nav-toggle-group {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md-alt, var(--ng-spacing-md-alt));\n }\n\n /* With a description, the toggle and its rule sit on the title's row, as the back arrow does, not on the centre of the two-line stack: a title-line box at the stack's top edge. */\n :host([has-description]) .nav-toggle-group {\n align-self: flex-start;\n height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n }\n\n /* Lands the 20px glyph box, not the 32px utility circle, on the 24px origin: (32 - 20) / 2 = 6. */\n .nav-toggle {\n margin-inline-start: -6px;\n }\n\n /* fg-quaternary-400 on NxtGen, set on the glyph because it otherwise inherits the ghost button's text colour; enterprise keeps black. */\n .nav-toggle nile-glyph {\n color: var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-400));\n }\n\n /* The hover surface matches the bg-secondary container, so the glyph's own hover colour is the visible cue. */\n .nav-toggle:hover:not([disabled]) nile-glyph {\n color: var(--nile-colors-dark-900, var(--ng-colors-fg-quaternary-hover));\n }\n\n /* Figma's Divider Line: a 16px 1px stroke that takes no layout width, so the items on both sides sit a clean 16px from it. Used after the nav toggle and, as ask-rule, before Ask. */\n .rule {\n flex: 0 0 auto;\n width: var(--nile-border-width-1, var(--ng-border-width-1));\n margin-inline-end: calc(-1 * var(--nile-border-width-1, var(--ng-border-width-1)));\n height: 16px;\n background: var(\n --nile-colors-neutral-400,\n var(--ng-colors-border-secondary)\n );\n }\n\n /* ------------------------------------------------------- utility controls */\n\n /* The shell's own icon controls (nav toggle, panel back and close): the shared utility-control recipe. */\n ","\n\n /* --------------------------------------------------------------- tab strip */\n\n /* Hoisted out of the scroller so it never scrolls away; sits flush under the top bar and carries the header block's single bottom rule. */\n .tabs {\n box-sizing: border-box;\n flex: 0 0 auto;\n display: flex;\n align-items: stretch;\n gap: var(--nile-spacing-xs, var(--ng-spacing-xs));\n min-width: 0;\n /* A floor, not a fixed box: the strip is as tall as the row it holds plus its rule. */\n min-height: var(--nile-app-shell-tabs-height);\n padding-inline: var(--nile-app-shell-content-padding);\n /* The strip carries the rule for the whole header block. */\n border-bottom: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n overflow-x: auto;\n scrollbar-width: none;\n }\n\n .tabs::-webkit-scrollbar {\n display: none;\n }\n\n :host(:not([has-tabs])) .tabs,\n :host([notabs]) .tabs {\n display: none;\n }\n\n /* Scoped to the group, not the slot, so bare tab controls are not stretched to an equal share of the strip. */\n ::slotted(nile-nav-tab-group[slot='tabs']) {\n flex: 1 1 auto;\n min-width: 0;\n align-self: flex-end;\n --track-width: var(--nile-spacing-none, var(--ng-spacing-none));\n }\n\n /* ------------------------------------------------------------------- main */\n\n .main {\n box-sizing: border-box;\n flex: 1 1 auto;\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow: auto;\n /* Top and sides only: the page runs to the container's bottom edge. */\n padding: var(--nile-app-shell-content-padding);\n padding-block-end: 0;\n }\n\n .main:focus {\n outline: none;\n }\n\n :host([no-padding]) .main {\n padding: 0;\n }\n\n .main-inner {\n width: 100%;\n min-height: 0;\n }\n\n /* Centred when short, scrolls from the top when tall. */\n :host([content-align='centered']) .main-inner {\n /* width:100% + max-width leaves space for the auto margins to centre it while short, and scroll from the top when tall. */\n width: 100%;\n max-width: var(--nile-app-shell-centered-width);\n margin: auto;\n }\n\n /* ------------------------------------------------------------------ aside */\n\n .aside {\n box-sizing: border-box;\n /* Gives before the page does, down to its own floor. */\n flex: 0 1 var(--nile-app-shell-aside-width);\n min-width: var(--nile-app-shell-aside-min-width);\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow: auto;\n padding: var(--nile-app-shell-content-padding);\n background: var(--nile-colors-white-base, var(--ng-colors-bg-secondary));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n border-radius: var(--nile-app-shell-radius);\n }\n\n :host(:not([has-aside])) .aside {\n display: none;\n }\n\n /* -------------------------------------------------------------- AI panel */\n\n .panel {\n box-sizing: border-box;\n /* The panel pushes the page rather than covering it: full width while the row affords it, shrinking to a real min-width floor. */\n flex: 0 1 var(--nile-app-shell-panel-width);\n width: var(--nile-app-shell-panel-width);\n min-width: var(--nile-app-shell-panel-min-width);\n display: flex;\n flex-direction: column;\n min-height: 0;\n overflow: hidden;\n background: var(--nile-colors-white-base, var(--ng-colors-bg-secondary));\n /* The panel is elevated, so its edge sits a rung above the container's. */\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-500, var(--ng-colors-border-primary));\n border-radius: var(--nile-app-shell-radius);\n box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));\n }\n\n /* Docked: a flex sibling. It squeezes the content, it does not cover it. */\n :host(:not([panel-open])) .panel {\n display: none;\n }\n\n /* Overlay: contained to the content column, above it, and animated in. */\n :host([panel-mode='overlay']) .panel {\n position: absolute;\n z-index: 1001;\n inset-block: var(--nile-app-shell-gutter);\n inset-inline-end: var(--nile-app-shell-gutter);\n flex: none;\n display: flex;\n width: min(var(--nile-app-shell-panel-width), 92%);\n visibility: hidden;\n transform: translateX(calc(100% + var(--nile-app-shell-gutter)));\n transition: transform var(--nile-app-shell-duration)\n var(--nile-app-shell-ease),\n visibility 0s linear var(--nile-app-shell-duration);\n }\n\n :host([panel-mode='overlay'][panel-open]) .panel {\n visibility: visible;\n transform: none;\n transition: transform var(--nile-app-shell-duration)\n var(--nile-app-shell-ease);\n }\n\n /* An unavailable panel is unmounted in either mode. */\n :host(:not([has-panel])) .panel {\n display: none;\n }\n\n .panel-header {\n box-sizing: border-box;\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n height: var(--nile-app-shell-panel-header-height);\n padding-inline: var(--nile-spacing-3xl, var(--ng-spacing-3xl));\n border-bottom: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n /* The back control for a panel sub-view; stands where the brand mark does in the root view. */\n .panel-back {\n flex: 0 0 auto;\n margin-inline-start: -6px;\n }\n\n /* Mirrors the back control's offset on the end edge: the 20px glyph, not the 32px circle, lands on the padding line. */\n .panel-close {\n margin-inline-end: -6px;\n }\n\n :host([panelback]) .panel-mark {\n display: none;\n }\n\n .panel-heading {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-md, var(--ng-spacing-md));\n min-width: 0;\n }\n\n .panel-mark {\n display: inline-flex;\n color: var(\n --nile-colors-primary-600,\n var(--ng-colors-fg-brand-primary-600)\n );\n }\n\n .panel-mark nile-glyph {\n --nile-svg-fill: currentColor;\n --nile-svg-stroke-width: var(--ng-svg-stroke-width);\n width: 20px;\n height: 20px;\n }\n\n .panel-title {\n margin: 0;\n /* Figma's Assistant Title: Text lg/Semibold, 18/28 on NxtGen. Enterprise keeps --nile-type-scale-3, and it defines no --ng-* tokens, so the line-height declaration is invalid there and the title inherits its line height exactly as before. */\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-lg));\n line-height: var(--ng-line-height-text-lg);\n font-weight: var(\n --nile-font-weight-semi-bold,\n var(--ng-font-weight-semibold)\n );\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .panel-actions {\n display: flex;\n align-items: center;\n gap: var(--nile-spacing-xs, var(--ng-spacing-xs));\n margin-inline-start: auto;\n }\n\n .panel-body {\n flex: 1 1 auto;\n min-height: 0;\n overflow: auto;\n /* 16 under the header, 24 on the sides and bottom. */\n padding: var(--nile-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-3xl, var(--ng-spacing-3xl)) var(--nile-spacing-3xl, var(--ng-spacing-3xl));\n display: flex;\n flex-direction: column;\n gap: var(--nile-spacing-xl, var(--ng-spacing-xl));\n }\n\n .panel-footer {\n flex: 0 0 auto;\n padding: var(--nile-spacing-xl, var(--ng-spacing-xl)) var(--nile-spacing-3xl, var(--ng-spacing-3xl)) var(--nile-spacing-3xl, var(--ng-spacing-3xl));\n border-top: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n }\n\n :host(:not([has-panel-footer])) .panel-footer {\n display: none;\n }\n\n /* ---------------------------------------------------------- skip link */\n\n .skip-link {\n position: absolute;\n z-index: 1002;\n inset-inline-start: var(--nile-spacing-md, var(--ng-spacing-md));\n inset-block-start: var(--nile-spacing-md, var(--ng-spacing-md));\n display: inline-flex;\n align-items: center;\n padding: var(--nile-spacing-md, var(--ng-spacing-md))\n var(--nile-spacing-lg, var(--ng-spacing-lg));\n border: var(--nile-border-width-1, var(--ng-border-width-1)) solid\n var(--nile-colors-neutral-500, var(--ng-colors-border-primary));\n border-radius: var(--nile-radius-md, var(--ng-radius-md));\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n font: inherit;\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));\n cursor: pointer;\n transform: translateY(-200%);\n transition: transform\n var(--nile-transition-duration-short, var(--ng-transition-duration-fast))\n var(--nile-app-shell-ease);\n }\n\n .skip-link:focus-visible {\n outline: none;\n transform: none;\n box-shadow: 0 0 0 2px\n var(--nile-colors-neutral-100, var(--ng-colors-bg-tertiary)),\n 0 0 0 4px\n var(--nile-colors-primary-600, var(--ng-colors-fg-brand-primary-600));\n }\n\n :host([no-skip-link]) .skip-link {\n display: none;\n }\n\n @media (prefers-reduced-motion: reduce) {\n :host,\n .panel,\n .skip-link {\n transition: none;\n }\n }\n"])),n));}};});
2
2
  //# sourceMappingURL=nile-app-shell.css.cjs.js.map