@aquera/nile-elements 2.0.22 → 2.0.23

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (469) hide show
  1. package/README.md +72 -34
  2. package/demo/nxtgen-classes.css +24 -4
  3. package/demo/nxtgen-dark.css +30 -16
  4. package/demo/nxtgen-properties.css +9 -2
  5. package/demo/nxtgen-utilities.css +31 -4
  6. package/demo/nxtgen.css +8 -4
  7. package/demo/utilities.css +2 -2
  8. package/demo/variables.css +2 -2
  9. package/dist/index.cjs.js +1 -1
  10. package/dist/index.esm.js +1 -1
  11. package/dist/index.js +1966 -1022
  12. package/dist/nile-app-shell/index.cjs.js +1 -1
  13. package/dist/nile-app-shell/index.esm.js +1 -1
  14. package/dist/nile-app-shell/nile-app-shell.cjs.js +1 -1
  15. package/dist/nile-app-shell/nile-app-shell.cjs.js.map +1 -1
  16. package/dist/nile-app-shell/nile-app-shell.css.cjs.js +1 -1
  17. package/dist/nile-app-shell/nile-app-shell.css.cjs.js.map +1 -1
  18. package/dist/nile-app-shell/nile-app-shell.css.esm.js +72 -65
  19. package/dist/nile-app-shell/nile-app-shell.esm.js +60 -31
  20. package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js +1 -1
  21. package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.cjs.js.map +1 -1
  22. package/dist/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.esm.js +1 -1
  23. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js +1 -1
  24. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.cjs.js.map +1 -1
  25. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js +1 -1
  26. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.cjs.js.map +1 -1
  27. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.css.esm.js +25 -7
  28. package/dist/nile-app-shell-side-nav/nile-app-shell-side-nav.esm.js +2 -2
  29. package/dist/nile-button-filter/nile-button-filter.cjs.js +1 -1
  30. package/dist/nile-button-filter/nile-button-filter.cjs.js.map +1 -1
  31. package/dist/nile-button-filter/nile-button-filter.css.cjs.js +1 -1
  32. package/dist/nile-button-filter/nile-button-filter.css.cjs.js.map +1 -1
  33. package/dist/nile-button-filter/nile-button-filter.css.esm.js +1 -1
  34. package/dist/nile-button-filter/nile-button-filter.esm.js +2 -4
  35. package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
  36. package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
  37. package/dist/nile-calendar/nile-calendar.css.esm.js +9 -8
  38. package/dist/nile-color-picker/nile-color-picker.css.cjs.js +1 -1
  39. package/dist/nile-color-picker/nile-color-picker.css.cjs.js.map +1 -1
  40. package/dist/nile-color-picker/nile-color-picker.css.esm.js +1 -1
  41. package/dist/nile-combobox/nile-combobox.css.cjs.js +1 -1
  42. package/dist/nile-combobox/nile-combobox.css.cjs.js.map +1 -1
  43. package/dist/nile-combobox/nile-combobox.css.esm.js +1 -1
  44. package/dist/nile-command-menu-item/nile-command-menu-item.css.cjs.js +1 -1
  45. package/dist/nile-command-menu-item/nile-command-menu-item.css.cjs.js.map +1 -1
  46. package/dist/nile-command-menu-item/nile-command-menu-item.css.esm.js +5 -1
  47. package/dist/nile-context-menu/nile-context-menu.css.cjs.js +1 -1
  48. package/dist/nile-context-menu/nile-context-menu.css.cjs.js.map +1 -1
  49. package/dist/nile-context-menu/nile-context-menu.css.esm.js +2 -3
  50. package/dist/nile-dropdown-switcher/index.cjs.js +2 -0
  51. package/dist/nile-dropdown-switcher/index.cjs.js.map +1 -0
  52. package/dist/nile-dropdown-switcher/index.esm.js +1 -0
  53. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.cjs.js +2 -0
  54. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.cjs.js.map +1 -0
  55. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.cjs.js +2 -0
  56. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.cjs.js.map +1 -0
  57. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.css.esm.js +39 -0
  58. package/dist/nile-dropdown-switcher/nile-dropdown-switcher.esm.js +1 -0
  59. package/dist/nile-dropdown-switcher-group/index.cjs.js +2 -0
  60. package/dist/nile-dropdown-switcher-group/index.cjs.js.map +1 -0
  61. package/dist/nile-dropdown-switcher-group/index.esm.js +1 -0
  62. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.cjs.js +2 -0
  63. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.cjs.js.map +1 -0
  64. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.cjs.js +2 -0
  65. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.cjs.js.map +1 -0
  66. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.esm.js +37 -0
  67. package/dist/nile-dropdown-switcher-group/nile-dropdown-switcher-group.esm.js +8 -0
  68. package/dist/nile-dropdown-switcher-header/index.cjs.js +2 -0
  69. package/dist/nile-dropdown-switcher-header/index.cjs.js.map +1 -0
  70. package/dist/nile-dropdown-switcher-header/index.esm.js +1 -0
  71. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.cjs.js +2 -0
  72. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.cjs.js.map +1 -0
  73. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.cjs.js +2 -0
  74. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.cjs.js.map +1 -0
  75. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.esm.js +91 -0
  76. package/dist/nile-dropdown-switcher-header/nile-dropdown-switcher-header.esm.js +33 -0
  77. package/dist/nile-dropdown-switcher-item/index.cjs.js +2 -0
  78. package/dist/nile-dropdown-switcher-item/index.cjs.js.map +1 -0
  79. package/dist/nile-dropdown-switcher-item/index.esm.js +1 -0
  80. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.cjs.js +2 -0
  81. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.cjs.js.map +1 -0
  82. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.cjs.js +2 -0
  83. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.cjs.js.map +1 -0
  84. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.esm.js +102 -0
  85. package/dist/nile-dropdown-switcher-item/nile-dropdown-switcher-item.esm.js +35 -0
  86. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js +1 -1
  87. package/dist/nile-filter-chip/nile-filter-chip.css.cjs.js.map +1 -1
  88. package/dist/nile-filter-chip/nile-filter-chip.css.esm.js +2 -2
  89. package/dist/nile-form-group/nile-form-group.css.cjs.js +1 -1
  90. package/dist/nile-form-group/nile-form-group.css.cjs.js.map +1 -1
  91. package/dist/nile-form-group/nile-form-group.css.esm.js +3 -3
  92. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js +1 -1
  93. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js.map +1 -1
  94. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.esm.js +20 -4
  95. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js +1 -1
  96. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.cjs.js.map +1 -1
  97. package/dist/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.esm.js +3 -3
  98. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js +1 -1
  99. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.cjs.js.map +1 -1
  100. package/dist/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.esm.js +3 -3
  101. package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js +1 -1
  102. package/dist/nile-markdown-editor/nile-markdown-editor.css.cjs.js.map +1 -1
  103. package/dist/nile-markdown-editor/nile-markdown-editor.css.esm.js +4 -4
  104. package/dist/nile-menu/nile-menu.css.cjs.js +1 -1
  105. package/dist/nile-menu/nile-menu.css.cjs.js.map +1 -1
  106. package/dist/nile-menu/nile-menu.css.esm.js +1 -2
  107. package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
  108. package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
  109. package/dist/nile-menu-item/nile-menu-item.css.esm.js +6 -6
  110. package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js +1 -1
  111. package/dist/nile-nav-tab/nile-nav-tab.css.cjs.js.map +1 -1
  112. package/dist/nile-nav-tab/nile-nav-tab.css.esm.js +3 -3
  113. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js +1 -1
  114. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.cjs.js.map +1 -1
  115. package/dist/nile-nav-tab-group/nile-nav-tab-group.css.esm.js +15 -12
  116. package/dist/nile-option/nile-option.css.cjs.js +1 -1
  117. package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
  118. package/dist/nile-option/nile-option.css.esm.js +2 -2
  119. package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
  120. package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
  121. package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
  122. package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
  123. package/dist/nile-pagination/nile-pagination.css.esm.js +10 -0
  124. package/dist/nile-pagination/nile-pagination.esm.js +14 -14
  125. package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
  126. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
  127. package/dist/nile-side-bar/nile-side-bar.css.cjs.js +1 -1
  128. package/dist/nile-side-bar/nile-side-bar.css.cjs.js.map +1 -1
  129. package/dist/nile-side-bar/nile-side-bar.css.esm.js +16 -14
  130. package/dist/nile-side-bar/nile-side-bar.esm.js +2 -2
  131. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js +1 -1
  132. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.cjs.js.map +1 -1
  133. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.esm.js +11 -4
  134. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
  135. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
  136. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
  137. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +8 -3
  138. package/dist/nile-side-bar-footer-item/index.cjs.js +1 -1
  139. package/dist/nile-side-bar-footer-item/index.esm.js +1 -1
  140. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
  141. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
  142. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
  143. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
  144. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +181 -25
  145. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +10 -3
  146. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js +1 -1
  147. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js.map +1 -1
  148. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.esm.js +10 -5
  149. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
  150. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
  151. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js +1 -1
  152. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js.map +1 -1
  153. package/dist/nile-side-bar-group/nile-side-bar-group.css.esm.js +52 -9
  154. package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +4 -4
  155. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js +1 -1
  156. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js.map +1 -1
  157. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.esm.js +53 -8
  158. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
  159. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
  160. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js +1 -1
  161. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.cjs.js.map +1 -1
  162. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.esm.js +13 -4
  163. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +4 -4
  164. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js +1 -1
  165. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.cjs.js.map +1 -1
  166. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.esm.js +9 -6
  167. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
  168. package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js +1 -1
  169. package/dist/nile-side-bar-header/nile-side-bar-header.css.cjs.js.map +1 -1
  170. package/dist/nile-side-bar-header/nile-side-bar-header.css.esm.js +12 -5
  171. package/dist/nile-side-bar-header-switcher/index.cjs.js +2 -0
  172. package/dist/nile-side-bar-header-switcher/index.cjs.js.map +1 -0
  173. package/dist/nile-side-bar-header-switcher/index.esm.js +1 -0
  174. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js +2 -0
  175. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.cjs.js.map +1 -0
  176. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js +2 -0
  177. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.cjs.js.map +1 -0
  178. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.esm.js +83 -0
  179. package/dist/nile-side-bar-header-switcher/nile-side-bar-header-switcher.esm.js +24 -0
  180. package/dist/nile-side-bar-search/index.cjs.js +2 -0
  181. package/dist/nile-side-bar-search/index.cjs.js.map +1 -0
  182. package/dist/nile-side-bar-search/index.esm.js +1 -0
  183. package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js +2 -0
  184. package/dist/nile-side-bar-search/nile-side-bar-search.cjs.js.map +1 -0
  185. package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js +2 -0
  186. package/dist/nile-side-bar-search/nile-side-bar-search.css.cjs.js.map +1 -0
  187. package/dist/nile-side-bar-search/nile-side-bar-search.css.esm.js +103 -0
  188. package/dist/nile-side-bar-search/nile-side-bar-search.esm.js +25 -0
  189. package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js +1 -1
  190. package/dist/nile-slide-toggle/nile-slide-toggle.css.cjs.js.map +1 -1
  191. package/dist/nile-slide-toggle/nile-slide-toggle.css.esm.js +1 -1
  192. package/dist/nile-tooltip/nile-tooltip.css.cjs.js +1 -1
  193. package/dist/nile-tooltip/nile-tooltip.css.cjs.js.map +1 -1
  194. package/dist/nile-tooltip/nile-tooltip.css.esm.js +7 -5
  195. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +1 -1
  196. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -1
  197. package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +1 -1
  198. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js +1 -1
  199. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.cjs.js.map +1 -1
  200. package/dist/nile-wysiwyg-editor/nile-wysiwyg-editor.css.esm.js +2 -2
  201. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js +1 -1
  202. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.cjs.js.map +1 -1
  203. package/dist/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.esm.js +3 -3
  204. package/dist/src/index.d.ts +6 -0
  205. package/dist/src/index.js +6 -0
  206. package/dist/src/index.js.map +1 -1
  207. package/dist/src/nile-app-shell/nile-app-shell.css.js +70 -63
  208. package/dist/src/nile-app-shell/nile-app-shell.css.js.map +1 -1
  209. package/dist/src/nile-app-shell/nile-app-shell.d.ts +40 -7
  210. package/dist/src/nile-app-shell/nile-app-shell.js +192 -41
  211. package/dist/src/nile-app-shell/nile-app-shell.js.map +1 -1
  212. package/dist/src/nile-app-shell/nile-app-shell.test.d.ts +2 -0
  213. package/dist/src/nile-app-shell/nile-app-shell.test.js +272 -1020
  214. package/dist/src/nile-app-shell/nile-app-shell.test.js.map +1 -1
  215. package/dist/src/nile-app-shell/zz-layout.test.d.ts +15 -0
  216. package/dist/src/nile-app-shell/zz-layout.test.js +253 -0
  217. package/dist/src/nile-app-shell/zz-layout.test.js.map +1 -0
  218. package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js +1 -1
  219. package/dist/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.js.map +1 -1
  220. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js +24 -6
  221. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.js.map +1 -1
  222. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.d.ts +8 -2
  223. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js +56 -2
  224. package/dist/src/nile-app-shell-side-nav/nile-app-shell-side-nav.js.map +1 -1
  225. package/dist/src/nile-button-filter/nile-button-filter.css.js +1 -1
  226. package/dist/src/nile-button-filter/nile-button-filter.css.js.map +1 -1
  227. package/dist/src/nile-button-filter/nile-button-filter.js +1 -3
  228. package/dist/src/nile-button-filter/nile-button-filter.js.map +1 -1
  229. package/dist/src/nile-calendar/nile-calendar.css.js +9 -8
  230. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
  231. package/dist/src/nile-color-picker/nile-color-picker.css.js +3 -3
  232. package/dist/src/nile-color-picker/nile-color-picker.css.js.map +1 -1
  233. package/dist/src/nile-combobox/nile-combobox.css.js +1 -1
  234. package/dist/src/nile-combobox/nile-combobox.css.js.map +1 -1
  235. package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js +5 -1
  236. package/dist/src/nile-command-menu-item/nile-command-menu-item.css.js.map +1 -1
  237. package/dist/src/nile-context-menu/nile-context-menu.css.js +2 -4
  238. package/dist/src/nile-context-menu/nile-context-menu.css.js.map +1 -1
  239. package/dist/src/nile-dropdown-switcher/index.d.ts +1 -0
  240. package/dist/src/nile-dropdown-switcher/index.js +2 -0
  241. package/dist/src/nile-dropdown-switcher/index.js.map +1 -0
  242. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.d.ts +10 -0
  243. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js +49 -0
  244. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.css.js.map +1 -0
  245. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.d.ts +101 -0
  246. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js +463 -0
  247. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.js.map +1 -0
  248. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.d.ts +4 -0
  249. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js +506 -0
  250. package/dist/src/nile-dropdown-switcher/nile-dropdown-switcher.test.js.map +1 -0
  251. package/dist/src/nile-dropdown-switcher-group/index.d.ts +1 -0
  252. package/dist/src/nile-dropdown-switcher-group/index.js +2 -0
  253. package/dist/src/nile-dropdown-switcher-group/index.js.map +1 -0
  254. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.d.ts +12 -0
  255. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js +49 -0
  256. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.js.map +1 -0
  257. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.d.ts +37 -0
  258. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js +72 -0
  259. package/dist/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.js.map +1 -0
  260. package/dist/src/nile-dropdown-switcher-header/index.d.ts +1 -0
  261. package/dist/src/nile-dropdown-switcher-header/index.js +2 -0
  262. package/dist/src/nile-dropdown-switcher-header/index.js.map +1 -0
  263. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.d.ts +12 -0
  264. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js +103 -0
  265. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.js.map +1 -0
  266. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.d.ts +46 -0
  267. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js +105 -0
  268. package/dist/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.js.map +1 -0
  269. package/dist/src/nile-dropdown-switcher-item/index.d.ts +1 -0
  270. package/dist/src/nile-dropdown-switcher-item/index.js +2 -0
  271. package/dist/src/nile-dropdown-switcher-item/index.js.map +1 -0
  272. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.d.ts +10 -0
  273. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js +112 -0
  274. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.js.map +1 -0
  275. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.d.ts +55 -0
  276. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js +154 -0
  277. package/dist/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.js.map +1 -0
  278. package/dist/src/nile-filter-chip/nile-filter-chip.css.js +2 -2
  279. package/dist/src/nile-filter-chip/nile-filter-chip.css.js.map +1 -1
  280. package/dist/src/nile-form-group/nile-form-group.css.js +1 -1
  281. package/dist/src/nile-form-group/nile-form-group.css.js.map +1 -1
  282. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js +20 -4
  283. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js.map +1 -1
  284. package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js +1 -1
  285. package/dist/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.js.map +1 -1
  286. package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js +3 -3
  287. package/dist/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.js.map +1 -1
  288. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js +4 -4
  289. package/dist/src/nile-markdown-editor/nile-markdown-editor.css.js.map +1 -1
  290. package/dist/src/nile-menu/nile-menu.css.js +1 -2
  291. package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
  292. package/dist/src/nile-menu-item/nile-menu-item.css.js +4 -4
  293. package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
  294. package/dist/src/nile-nav-tab/nile-nav-tab.css.js +3 -3
  295. package/dist/src/nile-nav-tab/nile-nav-tab.css.js.map +1 -1
  296. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js +15 -12
  297. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.css.js.map +1 -1
  298. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js +111 -0
  299. package/dist/src/nile-nav-tab-group/nile-nav-tab-group.test.js.map +1 -1
  300. package/dist/src/nile-option/nile-option.css.js +2 -2
  301. package/dist/src/nile-option/nile-option.css.js.map +1 -1
  302. package/dist/src/nile-pagination/nile-pagination.css.js +10 -0
  303. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
  304. package/dist/src/nile-pagination/nile-pagination.d.ts +2 -0
  305. package/dist/src/nile-pagination/nile-pagination.js +13 -9
  306. package/dist/src/nile-pagination/nile-pagination.js.map +1 -1
  307. package/dist/src/nile-side-bar/nile-side-bar.css.js +14 -12
  308. package/dist/src/nile-side-bar/nile-side-bar.css.js.map +1 -1
  309. package/dist/src/nile-side-bar/nile-side-bar.d.ts +17 -0
  310. package/dist/src/nile-side-bar/nile-side-bar.js +68 -12
  311. package/dist/src/nile-side-bar/nile-side-bar.js.map +1 -1
  312. package/dist/src/nile-side-bar/nile-side-bar.test.d.ts +23 -0
  313. package/dist/src/nile-side-bar/nile-side-bar.test.js +1614 -1
  314. package/dist/src/nile-side-bar/nile-side-bar.test.js.map +1 -1
  315. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js +11 -4
  316. package/dist/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.js.map +1 -1
  317. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +8 -3
  318. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
  319. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.d.ts +7 -5
  320. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js +7 -5
  321. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.js.map +1 -1
  322. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +179 -23
  323. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
  324. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.d.ts +15 -0
  325. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js +82 -2
  326. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js.map +1 -1
  327. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.d.ts +9 -0
  328. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js +201 -0
  329. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.js.map +1 -0
  330. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js +8 -3
  331. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js.map +1 -1
  332. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js +50 -7
  333. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js.map +1 -1
  334. package/dist/src/nile-side-bar-group/nile-side-bar-group.d.ts +35 -0
  335. package/dist/src/nile-side-bar-group/nile-side-bar-group.js +90 -3
  336. package/dist/src/nile-side-bar-group/nile-side-bar-group.js.map +1 -1
  337. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js +52 -7
  338. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js.map +1 -1
  339. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js +11 -2
  340. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.js.map +1 -1
  341. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.d.ts +11 -2
  342. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js +21 -15
  343. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js.map +1 -1
  344. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js +7 -4
  345. package/dist/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.js.map +1 -1
  346. package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js +22 -17
  347. package/dist/src/nile-side-bar-header/nile-side-bar-app-shell.test.js.map +1 -1
  348. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.d.ts +4 -0
  349. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js +143 -0
  350. package/dist/src/nile-side-bar-header/nile-side-bar-header-surface.test.js.map +1 -0
  351. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js +10 -3
  352. package/dist/src/nile-side-bar-header/nile-side-bar-header.css.js.map +1 -1
  353. package/dist/src/nile-side-bar-header/nile-side-bar-header.d.ts +7 -5
  354. package/dist/src/nile-side-bar-header/nile-side-bar-header.js +7 -5
  355. package/dist/src/nile-side-bar-header/nile-side-bar-header.js.map +1 -1
  356. package/dist/src/nile-side-bar-header-switcher/index.d.ts +1 -0
  357. package/dist/src/nile-side-bar-header-switcher/index.js +2 -0
  358. package/dist/src/nile-side-bar-header-switcher/index.js.map +1 -0
  359. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.d.ts +14 -0
  360. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js +97 -0
  361. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.js.map +1 -0
  362. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.d.ts +38 -0
  363. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js +86 -0
  364. package/dist/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.js.map +1 -0
  365. package/dist/src/nile-side-bar-search/index.d.ts +1 -0
  366. package/dist/src/nile-side-bar-search/index.js +2 -0
  367. package/dist/src/nile-side-bar-search/index.js.map +1 -0
  368. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.d.ts +15 -0
  369. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js +118 -0
  370. package/dist/src/nile-side-bar-search/nile-side-bar-search.css.js.map +1 -0
  371. package/dist/src/nile-side-bar-search/nile-side-bar-search.d.ts +56 -0
  372. package/dist/src/nile-side-bar-search/nile-side-bar-search.js +150 -0
  373. package/dist/src/nile-side-bar-search/nile-side-bar-search.js.map +1 -0
  374. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.d.ts +3 -0
  375. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js +153 -0
  376. package/dist/src/nile-side-bar-search/nile-side-bar-search.test.js.map +1 -0
  377. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js +1 -1
  378. package/dist/src/nile-slide-toggle/nile-slide-toggle.css.js.map +1 -1
  379. package/dist/src/nile-tooltip/nile-tooltip.css.js +7 -5
  380. package/dist/src/nile-tooltip/nile-tooltip.css.js.map +1 -1
  381. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +1 -1
  382. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -1
  383. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js +2 -2
  384. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.js.map +1 -1
  385. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js +3 -3
  386. package/dist/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.js.map +1 -1
  387. package/dist/src/version.js +1 -1
  388. package/dist/src/version.js.map +1 -1
  389. package/dist/tsconfig.tsbuildinfo +1 -1
  390. package/dist/version.cjs.js +1 -1
  391. package/dist/version.cjs.js.map +1 -1
  392. package/dist/version.esm.js +1 -1
  393. package/package.json +1 -1
  394. package/src/index.ts +6 -0
  395. package/src/nile-app-shell/nile-app-shell.css.ts +70 -63
  396. package/src/nile-app-shell/nile-app-shell.test.ts +332 -1227
  397. package/src/nile-app-shell/nile-app-shell.ts +223 -44
  398. package/src/nile-app-shell/zz-layout.test.ts +271 -0
  399. package/src/nile-app-shell-nav-toggle/nile-app-shell-nav-toggle.ts +1 -5
  400. package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.css.ts +24 -6
  401. package/src/nile-app-shell-side-nav/nile-app-shell-side-nav.ts +62 -2
  402. package/src/nile-button-filter/nile-button-filter.css.ts +1 -1
  403. package/src/nile-button-filter/nile-button-filter.ts +1 -3
  404. package/src/nile-calendar/nile-calendar.css.ts +9 -8
  405. package/src/nile-color-picker/nile-color-picker.css.ts +3 -3
  406. package/src/nile-combobox/nile-combobox.css.ts +1 -1
  407. package/src/nile-command-menu-item/nile-command-menu-item.css.ts +5 -1
  408. package/src/nile-context-menu/nile-context-menu.css.ts +2 -4
  409. package/src/nile-dropdown-switcher/index.ts +1 -0
  410. package/src/nile-dropdown-switcher/nile-dropdown-switcher.css.ts +51 -0
  411. package/src/nile-dropdown-switcher/nile-dropdown-switcher.test.ts +570 -0
  412. package/src/nile-dropdown-switcher/nile-dropdown-switcher.ts +502 -0
  413. package/src/nile-dropdown-switcher-group/index.ts +1 -0
  414. package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.css.ts +51 -0
  415. package/src/nile-dropdown-switcher-group/nile-dropdown-switcher-group.ts +78 -0
  416. package/src/nile-dropdown-switcher-header/index.ts +1 -0
  417. package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.css.ts +105 -0
  418. package/src/nile-dropdown-switcher-header/nile-dropdown-switcher-header.ts +105 -0
  419. package/src/nile-dropdown-switcher-item/index.ts +1 -0
  420. package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.css.ts +114 -0
  421. package/src/nile-dropdown-switcher-item/nile-dropdown-switcher-item.ts +151 -0
  422. package/src/nile-filter-chip/nile-filter-chip.css.ts +2 -2
  423. package/src/nile-form-group/nile-form-group.css.ts +1 -1
  424. package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts +20 -4
  425. package/src/nile-inline-sidebar-item-body/nile-inline-sidebar-item-body.css.ts +1 -1
  426. package/src/nile-inline-sidebar-item-header/nile-inline-sidebar-item-header.css.ts +3 -3
  427. package/src/nile-markdown-editor/nile-markdown-editor.css.ts +4 -4
  428. package/src/nile-menu/nile-menu.css.ts +1 -2
  429. package/src/nile-menu-item/nile-menu-item.css.ts +4 -4
  430. package/src/nile-nav-tab/nile-nav-tab.css.ts +3 -3
  431. package/src/nile-nav-tab-group/nile-nav-tab-group.css.ts +15 -12
  432. package/src/nile-nav-tab-group/nile-nav-tab-group.test.ts +130 -0
  433. package/src/nile-option/nile-option.css.ts +2 -2
  434. package/src/nile-pagination/nile-pagination.css.ts +10 -0
  435. package/src/nile-pagination/nile-pagination.ts +14 -9
  436. package/src/nile-side-bar/nile-side-bar.css.ts +14 -12
  437. package/src/nile-side-bar/nile-side-bar.test.ts +1854 -2
  438. package/src/nile-side-bar/nile-side-bar.ts +72 -15
  439. package/src/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.css.ts +11 -4
  440. package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +8 -3
  441. package/src/nile-side-bar-footer/nile-side-bar-footer.ts +7 -5
  442. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +179 -23
  443. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.test.ts +219 -0
  444. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts +84 -2
  445. package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.ts +8 -3
  446. package/src/nile-side-bar-group/nile-side-bar-group.css.ts +50 -7
  447. package/src/nile-side-bar-group/nile-side-bar-group.ts +100 -2
  448. package/src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts +52 -7
  449. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.css.ts +11 -2
  450. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts +22 -19
  451. package/src/nile-side-bar-group-item-text/nile-side-bar-group-item-text.css.ts +7 -4
  452. package/src/nile-side-bar-header/nile-side-bar-app-shell.test.ts +22 -17
  453. package/src/nile-side-bar-header/nile-side-bar-header-surface.test.ts +175 -0
  454. package/src/nile-side-bar-header/nile-side-bar-header.css.ts +10 -3
  455. package/src/nile-side-bar-header/nile-side-bar-header.ts +7 -5
  456. package/src/nile-side-bar-header-switcher/index.ts +1 -0
  457. package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.css.ts +99 -0
  458. package/src/nile-side-bar-header-switcher/nile-side-bar-header-switcher.ts +88 -0
  459. package/src/nile-side-bar-search/index.ts +1 -0
  460. package/src/nile-side-bar-search/nile-side-bar-search.css.ts +120 -0
  461. package/src/nile-side-bar-search/nile-side-bar-search.test.ts +175 -0
  462. package/src/nile-side-bar-search/nile-side-bar-search.ts +160 -0
  463. package/src/nile-slide-toggle/nile-slide-toggle.css.ts +1 -1
  464. package/src/nile-tooltip/nile-tooltip.css.ts +7 -5
  465. package/src/nile-virtual-select/nile-virtual-select.css.ts +1 -1
  466. package/src/nile-wysiwyg-editor/nile-wysiwyg-editor.css.ts +2 -2
  467. package/src/nile-wysiwyg-editor/nile-wysiwyg-toolbar/nile-wysiwyg-toolbar.css.ts +3 -3
  468. package/test-timings.json +0 -1
  469. package/vscode-html-custom-data.json +349 -22
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-footer.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer/nile-side-bar-footer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;;;;;;;;GAYG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,WAAW;IAA3C;;QACL;;;WAGG;QACyD,eAAU,GAA8B,SAAS,CAAC;IAahH,CAAC;IAXQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;;;;KAIV,CAAC;IACJ,CAAC;CACF,CAAA;AAb6D;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;qDAAmD;AALnG,iBAAiB;IAD7B,aAAa,CAAC,sBAAsB,CAAC;GACzB,iBAAiB,CAkB7B;;AAED,eAAe,iBAAiB,CAAC","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 } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-footer.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-footer component.\n *\n * @tag nile-side-bar-footer\n *\n * @slot icon - Slot for footer icon\n * @slot text - Slot for footer text\n *\n * @attr background - Background treatment of the footer (\"default\" | \"transparent\").\n * Defaults to \"default\", which paints the sidebar surface color. Set to\n * \"transparent\" to drop the background so whatever sits behind the footer shows\n * through.\n */\n@customElement('nile-side-bar-footer')\nexport class NileSideBarFooter extends NileElement {\n /**\n * Background treatment of the footer. `default` keeps the sidebar surface\n * color; `transparent` removes it.\n */\n @property({ type: String, reflect: true, attribute: true }) background: 'default' | 'transparent' = 'default';\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"base\" class=\"footer\">\n <slot> </slot>\n </div>\n `;\n }\n}\n\nexport default NileSideBarFooter;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-footer': NileSideBarFooter;\n }\n}\n"]}
1
+ {"version":3,"file":"nile-side-bar-footer.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer/nile-side-bar-footer.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AACpD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;;;;;;;;;GAaG;AAEI,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,WAAW;IAA3C;;QACL;;;;WAIG;QACyD,eAAU,GAA8B,SAAS,CAAC;IAahH,CAAC;IAXQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;;;;KAIV,CAAC;IACJ,CAAC;CACF,CAAA;AAb6D;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC;qDAAmD;AANnG,iBAAiB;IAD7B,aAAa,CAAC,sBAAsB,CAAC;GACzB,iBAAiB,CAmB7B;;AAED,eAAe,iBAAiB,CAAC","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 } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-footer.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-footer component.\n *\n * @tag nile-side-bar-footer\n *\n * @slot icon - Slot for footer icon\n * @slot text - Slot for footer text\n *\n * @attr background - Background treatment of the footer (\"default\" | \"transparent\").\n * Defaults to \"default\". Inside a `nile-side-bar` the footer paints nothing, so it\n * follows the sidebar's own surface with no attribute needed; on its own it paints\n * its own surface. \"transparent\" always drops the background so whatever sits\n * behind the footer shows through.\n */\n@customElement('nile-side-bar-footer')\nexport class NileSideBarFooter extends NileElement {\n /**\n * Background treatment of the footer. `default` follows the sidebar surface\n * inside a `nile-side-bar` (and paints its own surface when used on its own);\n * `transparent` removes the background everywhere.\n */\n @property({ type: String, reflect: true, attribute: true }) background: 'default' | 'transparent' = 'default';\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"base\" class=\"footer\">\n <slot> </slot>\n </div>\n `;\n }\n}\n\nexport default NileSideBarFooter;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-footer': NileSideBarFooter;\n }\n}\n"]}
@@ -3,26 +3,30 @@ export const styles = css `
3
3
  :host {
4
4
  display: block;
5
5
  width: 100%;
6
+ box-sizing: border-box;
7
+ /* 44px outer item wrapping a 40px inner row. */
8
+ padding: var(--nile-spacing-xxs, var(--ng-spacing-xxs)) var(--nile-spacing-none, var(--ng-spacing-none));
6
9
  }
7
10
 
8
11
  .footer-item {
9
12
  display: flex;
10
13
  align-items: center;
11
14
  justify-content: flex-start;
15
+ /* Untyped (Appearance/Help) row height; [type] variants below set their own. */
16
+ height: var(--nile-height-40px, var(--ng-height-36px));
12
17
  padding-top: var(--nile-spacing-md, var(--ng-spacing-md));
13
18
  padding-bottom: var(--nile-spacing-md, var(--ng-spacing-md));
14
19
  padding-left: var(--nile-spacing-lg, var(--ng-spacing-lg));
15
20
  padding-right: var(--nile-spacing-lg, var(--ng-spacing-lg));
16
21
  font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
17
- color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
22
+ color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));
18
23
  cursor: pointer;
19
24
  font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
20
- border-radius: var(--nile-radius-sm, var(--ng-radius-lg));
25
+ border-radius: var(--nile-radius-sm, var(--ng-radius-md));
21
26
  transition: background 0.2s ease;
22
27
  width: 100%;
23
28
  box-sizing: border-box;
24
29
  overflow: hidden;
25
- line-height: 0;
26
30
  }
27
31
 
28
32
  .footer-item:hover {
@@ -32,11 +36,31 @@ export const styles = css `
32
36
  );
33
37
  }
34
38
 
35
- /* left: icon */
39
+ /* Darkens the label on hover for every row except Account; the rule below repeats this for nile-side-bar-footer-text's own .main/.sub, which this selector alone can't reach. */
40
+ :host(:not([type='avatar'])) .footer-item:hover ::slotted([slot='text']) {
41
+ color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
42
+ }
43
+
44
+ :host(:not([type='avatar'])) .footer-item {
45
+ --nile-side-bar-footer-text-main-font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));
46
+ --nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));
47
+ }
48
+
49
+ :host(:not([type='avatar'])) .footer-item:hover {
50
+ --nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
51
+ }
52
+
53
+ :host(:not([type='avatar']):not([active])) .footer-item:hover {
54
+ background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));
55
+ --nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));
56
+ }
57
+
58
+ /* left: icon, a fixed 20x20 box regardless of what the consumer's own icon element asks for. */
36
59
  ::slotted([slot='icon']) {
37
60
  flex-shrink: 0;
38
- font-size: 1.25rem;
39
- margin-right: 0.5rem;
61
+ width: var(--nile-height-20px, var(--ng-height-20px));
62
+ height: var(--nile-height-20px, var(--ng-height-20px));
63
+ margin-right: var(--nile-spacing-md, var(--ng-spacing-md));
40
64
  }
41
65
 
42
66
  /* middle: text */
@@ -46,52 +70,184 @@ export const styles = css `
46
70
  white-space: nowrap;
47
71
  overflow: hidden;
48
72
  text-overflow: ellipsis;
73
+ font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));
74
+ line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));
75
+ font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
76
+ letter-spacing: normal;
49
77
  }
50
78
 
51
- /* right: action */
79
+ /* right: action (e.g. Help's trailing chevron), a fixed 16x16 box. */
52
80
  ::slotted([slot='action']) {
53
81
  flex-shrink: 0;
54
- font-size: 1.25rem;
82
+ width: var(--nile-width-16px, var(--ng-width-4));
83
+ height: var(--nile-width-16px, var(--ng-height-16px));
84
+ margin-left: var(--nile-spacing-lg, var(--ng-spacing-lg));
55
85
  color: var(
56
86
  --nile-side-bar-footer-icon-color,
57
- var(--ng-colors-fg-quaternary-400)
87
+ var(--ng-colors-fg-quaternary-hover)
58
88
  );
59
- margin-left: auto;
89
+ }
90
+
91
+ /* Collapsed: a trailing action (Help's chevron) isn't shown in the rail. */
92
+ :host([collapsed]:not([type='avatar'])) ::slotted([slot='action']) {
93
+ display: none;
60
94
  }
61
95
 
62
96
 
97
+ /* Resting: no fill, as in the design; the row sits on the sidebar surface. Hover below still fills. Enterprise keeps its neutral-400 fill. */
63
98
  :host([type='support']) .footer-item {
64
- background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary));
65
- height: var(--nile-height-38px, var(--ng-spacing-5xl));
66
- border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
99
+ background: var(--nile-colors-neutral-400, transparent);
100
+ height: var(--nile-height-38px, var(--ng-height-36px));
101
+ border-radius: var(--nile-radius-sm, var(--ng-radius-md));
67
102
 
68
103
  }
69
104
 
105
+ /* Hover follows the nav menu items (nile-side-bar-group-item): bg-secondary-subtle fill, text-tertiary-hover label, fg-tertiary-hover icon and chevron. bg-primary-hover was the same colour as the sidebar surface, so the row showed no change. */
70
106
  :host(:hover[type='support']) .footer-item {
71
- background: var(--nile-colors-neutral-500, var(--ng-colors-bg-primary-hover));
72
- height: var(--nile-height-38px, var(--ng-spacing-5xl));
107
+ background: var(--nile-colors-neutral-500, var(--ng-colors-bg-secondary-subtle));
108
+ height: var(--nile-height-38px, var(--ng-height-36px));
109
+ }
110
+
111
+ :host([type='support']) .footer-item:hover ::slotted([slot='text']) {
112
+ color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
113
+ }
114
+
115
+ :host([type='support']) .footer-item:hover {
116
+ --nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));
117
+ --nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));
118
+ }
119
+
120
+ /* Account row: 11px padding + 1px border reproduces Figma's 12px outer-edge-to-content distance, since Figma's stroke doesn't consume its own Auto Layout padding the way a CSS border does. */
121
+ :host([type='avatar']) {
122
+ padding: var(--nile-spacing-none, var(--ng-spacing-none));
123
+ --nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));
124
+ /* The Account row's name is semibold. Support/Help rows use the text's own medium. */
125
+ --nile-side-bar-footer-text-main-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));
73
126
  }
74
127
 
75
128
  :host([type='avatar']) .footer-item {
76
- border: 1px solid var(--ng-colors-border-secondary);
77
- min-height: var(--nile-radius-4xl, var(--ng-spacing-7xl));
129
+ height: auto;
130
+ padding: calc(var(--nile-spacing-lg, var(--ng-spacing-lg)) - 1px);
131
+ border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));
132
+ border-radius: var(--nile-radius-xl, var(--ng-radius-xl));
133
+ /* Resting/closed: bg-primary (Figma). Resolves to the same value as bg-primary-alt in Light and Dark. */
134
+ background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
78
135
  }
136
+
137
+ /* [data-action-open] is set via JS, not :has(), since Chromium doesn't re-match :has() on a slotted child's own attribute changes. */
138
+ :host([type='avatar']:not([collapsed])[data-action-open]) .footer-item {
139
+ background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));
140
+ }
141
+
142
+ /* Hover: bg-primary-hover, like the open state. Not while selected, which keeps its own background. */
143
+ :host([type='avatar']:not([collapsed]):not([active])) .footer-item:hover {
144
+ background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));
145
+ }
146
+
79
147
  :host([type='avatar'][active]) .footer-item {
80
148
  background: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));
81
149
  }
82
150
 
151
+ /* Avatar: 40x40, not the generic 20x20 icon box. */
152
+ :host([type='avatar']) ::slotted([slot='icon']) {
153
+ width: var(--nile-height-40px, var(--ng-height-40px));
154
+ height: var(--nile-height-40px, var(--ng-height-40px));
155
+ }
83
156
 
157
+ /* :not([collapsed]) avoids a specificity tie with the collapsed display:none rule below. */
158
+ :host([type='avatar']:not([collapsed])) ::slotted([slot='action']) {
159
+ display: flex;
160
+ align-items: center;
161
+ justify-content: center;
162
+ box-sizing: border-box;
163
+ width: var(--nile-height-32px, var(--ng-height-32px));
164
+ height: var(--nile-height-32px, var(--ng-height-32px));
165
+ padding: var(--nile-spacing-sm, var(--ng-spacing-sm));
166
+ border-radius: var(--nile-radius-sm, var(--ng-radius-sm));
167
+ }
84
168
 
85
169
  :host([collapsed][type='avatar']) .footer-item {
170
+ position: relative;
171
+ /* Explicit clamp -- the content-driven height above otherwise stays 44px even when collapsed. */
172
+ height: var(--nile-height-40px, var(--ng-height-40px));
86
173
  border: none;
87
- }
88
- :host([collapsed][type='avatar']) .footer-item {
89
- padding: 4px;
90
-
174
+ padding: var(--nile-spacing-none, var(--ng-spacing-none));
175
+ background: transparent;
176
+ border-radius: var(--nile-radius-full, var(--ng-radius-full));
91
177
  }
92
178
  :host([collapsed]) .footer-item{
93
- height: 38px;
94
- width: 38px;
179
+ width: var(--nile-width-40px, var(--ng-height-40px));
180
+ }
181
+
182
+ /* Collapsed NxtGen: a 40px row, 44px outer with the host's 2px block padding (Figma). The expanded row and the avatar are untouched, and enterprise resolves --nile-height-* first, so it keeps its own heights. */
183
+ :host([collapsed]:not([type])) .footer-item {
184
+ height: var(--nile-height-40px, var(--ng-height-40px));
185
+ }
186
+
187
+ :host([collapsed][type='support']) .footer-item,
188
+ :host(:hover[collapsed][type='support']) .footer-item {
189
+ height: var(--nile-height-38px, var(--ng-height-40px));
190
+ }
191
+
192
+ :host([collapsed][type='avatar']) ::slotted([slot='action']) {
193
+ position: absolute;
194
+ inset: 0;
195
+ display: block;
196
+ width: 100%;
197
+ height: 100%;
198
+ margin: var(--nile-spacing-none, var(--ng-spacing-none));
199
+ opacity: 0;
200
+ pointer-events: none;
201
+ }
202
+
203
+ /* Collapsed Account row. The 40px icon box carries no trailing margin (nothing sits beside it in a rail), is centred in the 40px row, and centres whatever avatar size it holds, so xs, sm, md and lg all sit on the rail's centre line. The row lets an avatar wider than 40px overflow evenly instead of being clipped. The expanded row is untouched. */
204
+ :host([collapsed][type='avatar']) .footer-item {
205
+ justify-content: center;
206
+ overflow: visible;
207
+ }
208
+
209
+ :host([collapsed][type='avatar']) ::slotted([slot='icon']) {
210
+ margin-right: var(--nile-spacing-none, var(--ng-spacing-none));
211
+ display: flex;
212
+ align-items: center;
213
+ justify-content: center;
214
+ }
215
+
216
+ /* Collapsed Appearance/Help (NxtGen): the 12px side padding and the 8px icon margin put the icon at x=38 in the 72px rail. Zero both and centre it so it sits at x=36, as the nav icons do; enterprise keeps its padding and margin. */
217
+ :host([collapsed]:not([type])) .footer-item {
218
+ padding-left: var(--nile-spacing-lg, var(--ng-spacing-none));
219
+ padding-right: var(--nile-spacing-lg, var(--ng-spacing-none));
220
+ justify-content: center;
221
+ }
222
+
223
+ :host([collapsed]:not([type])) ::slotted([slot='icon']) {
224
+ margin-right: var(--nile-spacing-md, var(--ng-spacing-none));
225
+ }
226
+
227
+ /* The label keeps its place in the tree but has no room, so only the icon is centred. */
228
+ :host([collapsed]:not([type])) ::slotted([slot='text']) {
229
+ flex: 0 0 0;
230
+ width: 0;
231
+ }
232
+
233
+ /* Appearance/Help selected state -- scoped to the untyped variant only; avatar's own [active] rule above is separate. */
234
+ :host([active]:not([type])) .footer-item {
235
+ background: var(--ng-colors-bg-primary);
236
+ border-radius: var(--nile-radius-sm, var(--ng-radius-md));
237
+ }
238
+
239
+ :host([active]:not([type])) ::slotted([slot='text']) {
240
+ color: var(--ng-colors-text-brand-secondary-700);
241
+ }
242
+
243
+ :host([active]:not([type])) {
244
+ --nile-side-bar-footer-icon-color: var(--ng-colors-fg-brand-primary-600);
245
+ }
246
+
247
+ /* Focus-visible is the ring only, independent of selection — same rule as nile-side-bar-group-item. */
248
+ .footer-item:focus-visible {
249
+ outline: none;
250
+ box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);
95
251
  }
96
252
  `;
97
253
  export default [styles];
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-footer-item.css.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8FxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n width: 100%;\n }\n\n .footer-item {\n display: flex;\n align-items: center;\n\t justify-content: flex-start;\n padding-top: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-lg));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n cursor: pointer;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n border-radius: var(--nile-radius-sm, var(--ng-radius-lg));\n transition: background 0.2s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: hidden;\n line-height: 0;\n }\n\n .footer-item:hover {\n background: var(\n --nile-side-bar-footer-hover-bg,\n var(--ng-colors-bg-primary-hover)\n );\n }\n\n /* left: icon */\n ::slotted([slot='icon']) {\n flex-shrink: 0;\n font-size: 1.25rem;\n margin-right: 0.5rem;\n }\n\n /* middle: text */\n ::slotted([slot='text']) {\n flex-grow: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n /* right: action */\n ::slotted([slot='action']) {\n flex-shrink: 0;\n font-size: 1.25rem;\n color: var(\n --nile-side-bar-footer-icon-color,\n var(--ng-colors-fg-quaternary-400)\n );\n margin-left: auto;\n }\n\n \n :host([type='support']) .footer-item {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary));\n height: var(--nile-height-38px, var(--ng-spacing-5xl));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n\n }\n \n :host(:hover[type='support']) .footer-item {\n background: var(--nile-colors-neutral-500, var(--ng-colors-bg-primary-hover));\n height: var(--nile-height-38px, var(--ng-spacing-5xl));\n }\n\n :host([type='avatar']) .footer-item {\nborder: 1px solid var(--ng-colors-border-secondary);\nmin-height: var(--nile-radius-4xl, var(--ng-spacing-7xl));\n}\n:host([type='avatar'][active]) .footer-item {\nbackground: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));\n}\n\n\n\n:host([collapsed][type='avatar']) .footer-item {\nborder: none;\n}\n :host([collapsed][type='avatar']) .footer-item {\n padding: 4px;\n \n}\n:host([collapsed]) .footer-item{\n height: 38px;\n width: 38px;\n}\n`;\n\nexport default [styles];\n"]}
1
+ {"version":3,"file":"nile-side-bar-footer-item.css.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0PxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["import { css } from 'lit';\n\nexport const styles = css`\n :host {\n display: block;\n width: 100%;\n box-sizing: border-box;\n /* 44px outer item wrapping a 40px inner row. */\n padding: var(--nile-spacing-xxs, var(--ng-spacing-xxs)) var(--nile-spacing-none, var(--ng-spacing-none));\n }\n\n .footer-item {\n display: flex;\n align-items: center;\n\t justify-content: flex-start;\n /* Untyped (Appearance/Help) row height; [type] variants below set their own. */\n height: var(--nile-height-40px, var(--ng-height-36px));\n padding-top: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-bottom: var(--nile-spacing-md, var(--ng-spacing-md));\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-lg));\n font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-secondary-700));\n cursor: pointer;\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n transition: background 0.2s ease;\n width: 100%;\n box-sizing: border-box;\n overflow: hidden;\n }\n\n .footer-item:hover {\n background: var(\n --nile-side-bar-footer-hover-bg,\n var(--ng-colors-bg-primary-hover)\n );\n }\n\n /* Darkens the label on hover for every row except Account; the rule below repeats this for nile-side-bar-footer-text's own .main/.sub, which this selector alone can't reach. */\n :host(:not([type='avatar'])) .footer-item:hover ::slotted([slot='text']) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([type='avatar'])) .footer-item {\n --nile-side-bar-footer-text-main-font-size: var(--nile-type-scale-3, var(--ng-font-size-text-sm));\n --nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));\n }\n\n :host(:not([type='avatar'])) .footer-item:hover {\n --nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host(:not([type='avatar']):not([active])) .footer-item:hover {\n background: var(--nile-colors-neutral-400, var(--ng-colors-bg-secondary-subtle));\n --nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* left: icon, a fixed 20x20 box regardless of what the consumer's own icon element asks for. */\n ::slotted([slot='icon']) {\n flex-shrink: 0;\n width: var(--nile-height-20px, var(--ng-height-20px));\n height: var(--nile-height-20px, var(--ng-height-20px));\n margin-right: var(--nile-spacing-md, var(--ng-spacing-md));\n }\n\n /* middle: text */\n ::slotted([slot='text']) {\n flex-grow: 1;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));\n line-height: var(--nile-line-height-medium, var(--ng-line-height-text-sm));\n font-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n letter-spacing: normal;\n }\n\n /* right: action (e.g. Help's trailing chevron), a fixed 16x16 box. */\n ::slotted([slot='action']) {\n flex-shrink: 0;\n width: var(--nile-width-16px, var(--ng-width-4));\n height: var(--nile-width-16px, var(--ng-height-16px));\n margin-left: var(--nile-spacing-lg, var(--ng-spacing-lg));\n color: var(\n --nile-side-bar-footer-icon-color,\n var(--ng-colors-fg-quaternary-hover)\n );\n }\n\n /* Collapsed: a trailing action (Help's chevron) isn't shown in the rail. */\n :host([collapsed]:not([type='avatar'])) ::slotted([slot='action']) {\n display: none;\n }\n\n \n /* Resting: no fill, as in the design; the row sits on the sidebar surface. Hover below still fills. Enterprise keeps its neutral-400 fill. */\n :host([type='support']) .footer-item {\n background: var(--nile-colors-neutral-400, transparent);\n height: var(--nile-height-38px, var(--ng-height-36px));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n\n }\n \n /* Hover follows the nav menu items (nile-side-bar-group-item): bg-secondary-subtle fill, text-tertiary-hover label, fg-tertiary-hover icon and chevron. bg-primary-hover was the same colour as the sidebar surface, so the row showed no change. */\n :host(:hover[type='support']) .footer-item {\n background: var(--nile-colors-neutral-500, var(--ng-colors-bg-secondary-subtle));\n height: var(--nile-height-38px, var(--ng-height-36px));\n }\n\n :host([type='support']) .footer-item:hover ::slotted([slot='text']) {\n color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n }\n\n :host([type='support']) .footer-item:hover {\n --nile-side-bar-footer-text-main-hover-color: var(--nile-colors-dark-800, var(--ng-colors-text-tertiary-hover));\n --nile-side-bar-footer-icon-color: var(--nile-colors-dark-900, var(--ng-colors-fg-tertiary-hover));\n }\n\n /* Account row: 11px padding + 1px border reproduces Figma's 12px outer-edge-to-content distance, since Figma's stroke doesn't consume its own Auto Layout padding the way a CSS border does. */\n :host([type='avatar']) {\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n --nile-side-bar-footer-text-main-line-height: var(--nile-line-height-medium, var(--ng-line-height-text-md));\n /* The Account row's name is semibold. Support/Help rows use the text's own medium. */\n --nile-side-bar-footer-text-main-weight: var(--nile-font-weight-semi-bold, var(--ng-font-weight-semibold));\n }\n\n :host([type='avatar']) .footer-item {\n height: auto;\n padding: calc(var(--nile-spacing-lg, var(--ng-spacing-lg)) - 1px);\n border: 1px solid var(--nile-colors-neutral-400, var(--ng-colors-border-secondary));\n border-radius: var(--nile-radius-xl, var(--ng-radius-xl));\n /* Resting/closed: bg-primary (Figma). Resolves to the same value as bg-primary-alt in Light and Dark. */\n background: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n}\n\n /* [data-action-open] is set via JS, not :has(), since Chromium doesn't re-match :has() on a slotted child's own attribute changes. */\n :host([type='avatar']:not([collapsed])[data-action-open]) .footer-item {\n background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));\n }\n\n /* Hover: bg-primary-hover, like the open state. Not while selected, which keeps its own background. */\n :host([type='avatar']:not([collapsed]):not([active])) .footer-item:hover {\n background: var(--nile-side-bar-footer-hover-bg, var(--ng-colors-bg-primary-hover));\n }\n\n:host([type='avatar'][active]) .footer-item {\nbackground: var(--nile-colors-neutral-400, var(--ng-colors-bg-active));\n}\n\n /* Avatar: 40x40, not the generic 20x20 icon box. */\n :host([type='avatar']) ::slotted([slot='icon']) {\n width: var(--nile-height-40px, var(--ng-height-40px));\n height: var(--nile-height-40px, var(--ng-height-40px));\n }\n\n /* :not([collapsed]) avoids a specificity tie with the collapsed display:none rule below. */\n :host([type='avatar']:not([collapsed])) ::slotted([slot='action']) {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: var(--nile-height-32px, var(--ng-height-32px));\n height: var(--nile-height-32px, var(--ng-height-32px));\n padding: var(--nile-spacing-sm, var(--ng-spacing-sm));\n border-radius: var(--nile-radius-sm, var(--ng-radius-sm));\n }\n\n:host([collapsed][type='avatar']) .footer-item {\n position: relative;\n /* Explicit clamp -- the content-driven height above otherwise stays 44px even when collapsed. */\n height: var(--nile-height-40px, var(--ng-height-40px));\nborder: none;\n padding: var(--nile-spacing-none, var(--ng-spacing-none));\n background: transparent;\n border-radius: var(--nile-radius-full, var(--ng-radius-full));\n}\n:host([collapsed]) .footer-item{\n width: var(--nile-width-40px, var(--ng-height-40px));\n}\n\n/* Collapsed NxtGen: a 40px row, 44px outer with the host's 2px block padding (Figma). The expanded row and the avatar are untouched, and enterprise resolves --nile-height-* first, so it keeps its own heights. */\n:host([collapsed]:not([type])) .footer-item {\n height: var(--nile-height-40px, var(--ng-height-40px));\n}\n\n:host([collapsed][type='support']) .footer-item,\n:host(:hover[collapsed][type='support']) .footer-item {\n height: var(--nile-height-38px, var(--ng-height-40px));\n}\n\n:host([collapsed][type='avatar']) ::slotted([slot='action']) {\n position: absolute;\n inset: 0;\n display: block;\n width: 100%;\n height: 100%;\n margin: var(--nile-spacing-none, var(--ng-spacing-none));\n opacity: 0;\n pointer-events: none;\n}\n\n/* Collapsed Account row. The 40px icon box carries no trailing margin (nothing sits beside it in a rail), is centred in the 40px row, and centres whatever avatar size it holds, so xs, sm, md and lg all sit on the rail's centre line. The row lets an avatar wider than 40px overflow evenly instead of being clipped. The expanded row is untouched. */\n:host([collapsed][type='avatar']) .footer-item {\n justify-content: center;\n overflow: visible;\n}\n\n:host([collapsed][type='avatar']) ::slotted([slot='icon']) {\n margin-right: var(--nile-spacing-none, var(--ng-spacing-none));\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n/* Collapsed Appearance/Help (NxtGen): the 12px side padding and the 8px icon margin put the icon at x=38 in the 72px rail. Zero both and centre it so it sits at x=36, as the nav icons do; enterprise keeps its padding and margin. */\n:host([collapsed]:not([type])) .footer-item {\n padding-left: var(--nile-spacing-lg, var(--ng-spacing-none));\n padding-right: var(--nile-spacing-lg, var(--ng-spacing-none));\n justify-content: center;\n}\n\n:host([collapsed]:not([type])) ::slotted([slot='icon']) {\n margin-right: var(--nile-spacing-md, var(--ng-spacing-none));\n}\n\n/* The label keeps its place in the tree but has no room, so only the icon is centred. */\n:host([collapsed]:not([type])) ::slotted([slot='text']) {\n flex: 0 0 0;\n width: 0;\n}\n\n/* Appearance/Help selected state -- scoped to the untyped variant only; avatar's own [active] rule above is separate. */\n:host([active]:not([type])) .footer-item {\n background: var(--ng-colors-bg-primary);\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n}\n\n:host([active]:not([type])) ::slotted([slot='text']) {\n color: var(--ng-colors-text-brand-secondary-700);\n}\n\n:host([active]:not([type])) {\n --nile-side-bar-footer-icon-color: var(--ng-colors-fg-brand-primary-600);\n}\n\n/* Focus-visible is the ring only, independent of selection — same rule as nile-side-bar-group-item. */\n.footer-item:focus-visible {\n outline: none;\n box-shadow: inset 0 0 0 var(--ng-border-width-2) var(--ng-colors-effects-focus-ring);\n}\n`;\n\nexport default [styles];\n"]}
@@ -9,6 +9,8 @@ import NileElement from '../internal/nile-element';
9
9
  * @slot text - Slot for footer item text
10
10
  * @slot action - Slot for footer item action
11
11
  *
12
+ * @attr active - Selected/current. Same state model as nile-side-bar-group-item.
13
+ *
12
14
  * @csspart base - Wrapper for the footer item
13
15
  * @csspart icon - Wrapper for the icon slot
14
16
  * @csspart text - Wrapper for the text slot
@@ -16,8 +18,21 @@ import NileElement from '../internal/nile-element';
16
18
  */
17
19
  export declare class NileSideBarFooterItem extends NileElement {
18
20
  type: string | null;
21
+ /** Selected/current, same state model and brand colors as nile-side-bar-group-item. */
22
+ active: boolean;
19
23
  static get styles(): CSSResultArray;
20
24
  private handleClick;
25
+ private handleActionVisibility;
26
+ connectedCallback(): void;
27
+ disconnectedCallback(): void;
28
+ static get observedAttributes(): string[];
29
+ attributeChangedCallback(name: string, old: string | null, value: string | null): void;
30
+ private actionWasOpen;
31
+ private get collapsedAccount();
32
+ private get actionElement();
33
+ private handleMouseDown;
34
+ private handleAccountClick;
35
+ private handleAccountKeyDown;
21
36
  render(): TemplateResult;
22
37
  }
23
38
  export default NileSideBarFooterItem;
@@ -1,5 +1,6 @@
1
1
  import { __decorate } from "tslib";
2
2
  import { html } from 'lit';
3
+ import { ifDefined } from 'lit/directives/if-defined.js';
3
4
  import { customElement, property } from 'lit/decorators.js';
4
5
  import { styles } from './nile-side-bar-footer-item.css';
5
6
  import NileElement from '../internal/nile-element';
@@ -12,6 +13,8 @@ import NileElement from '../internal/nile-element';
12
13
  * @slot text - Slot for footer item text
13
14
  * @slot action - Slot for footer item action
14
15
  *
16
+ * @attr active - Selected/current. Same state model as nile-side-bar-group-item.
17
+ *
15
18
  * @csspart base - Wrapper for the footer item
16
19
  * @csspart icon - Wrapper for the icon slot
17
20
  * @csspart text - Wrapper for the text slot
@@ -21,6 +24,9 @@ let NileSideBarFooterItem = class NileSideBarFooterItem extends NileElement {
21
24
  constructor() {
22
25
  super(...arguments);
23
26
  this.type = null;
27
+ /** Selected/current, same state model and brand colors as nile-side-bar-group-item. */
28
+ this.active = false;
29
+ this.actionWasOpen = false;
24
30
  }
25
31
  static get styles() {
26
32
  return [styles];
@@ -32,9 +38,80 @@ let NileSideBarFooterItem = class NileSideBarFooterItem extends NileElement {
32
38
  composed: true
33
39
  }));
34
40
  }
41
+ /* Reflects a slotted nile-side-bar-action's open state as [data-action-open], since :has() doesn't re-match on a slotted child's own attribute changes. */
42
+ handleActionVisibility(e) {
43
+ const target = e.target;
44
+ if (target.tagName?.toLowerCase() === 'nile-side-bar-action') {
45
+ this.toggleAttribute('data-action-open', e.type === 'nile-show');
46
+ }
47
+ }
48
+ connectedCallback() {
49
+ super.connectedCallback();
50
+ this.handleActionVisibility = this.handleActionVisibility.bind(this);
51
+ this.addEventListener('nile-show', this.handleActionVisibility);
52
+ this.addEventListener('nile-hide', this.handleActionVisibility);
53
+ }
54
+ disconnectedCallback() {
55
+ super.disconnectedCallback();
56
+ this.removeEventListener('nile-show', this.handleActionVisibility);
57
+ this.removeEventListener('nile-hide', this.handleActionVisibility);
58
+ }
59
+ static get observedAttributes() {
60
+ return [...super.observedAttributes, 'collapsed'];
61
+ }
62
+ attributeChangedCallback(name, old, value) {
63
+ super.attributeChangedCallback(name, old, value);
64
+ if (name === 'collapsed')
65
+ this.requestUpdate();
66
+ }
67
+ get collapsedAccount() {
68
+ return this.type === 'avatar' && this.hasAttribute('collapsed');
69
+ }
70
+ get actionElement() {
71
+ return this.querySelector(':scope > nile-side-bar-action[slot="action"]');
72
+ }
73
+ handleMouseDown() {
74
+ this.actionWasOpen = !!this.actionElement?.open;
75
+ }
76
+ handleAccountClick(e) {
77
+ if (!this.collapsedAccount || e.target.closest('nile-side-bar-action'))
78
+ return;
79
+ const action = this.actionElement;
80
+ if (!action)
81
+ return;
82
+ if (this.actionWasOpen) {
83
+ this.actionWasOpen = false;
84
+ return;
85
+ }
86
+ action.show();
87
+ }
88
+ handleAccountKeyDown(e) {
89
+ if (!this.collapsedAccount || e.target.closest('nile-side-bar-action'))
90
+ return;
91
+ if (e.key !== 'Enter' && e.key !== ' ')
92
+ return;
93
+ const action = this.actionElement;
94
+ if (!action)
95
+ return;
96
+ e.preventDefault();
97
+ if (action.open)
98
+ action.hide();
99
+ else
100
+ action.show();
101
+ }
35
102
  render() {
36
103
  return html `
37
- <div part="base" class="footer-item" @click=${this.handleClick}>
104
+ <div
105
+ part="base"
106
+ class="footer-item"
107
+ tabindex=${ifDefined(this.collapsedAccount && this.actionElement ? '0' : undefined)}
108
+ @mousedown=${this.handleMouseDown}
109
+ @click=${(e) => {
110
+ this.handleClick();
111
+ this.handleAccountClick(e);
112
+ }}
113
+ @keydown=${this.handleAccountKeyDown}
114
+ >
38
115
  <slot name="icon" part="icon"></slot>
39
116
  <slot name="text" part="text"></slot>
40
117
  <slot name="action" part="action"></slot>
@@ -43,8 +120,11 @@ let NileSideBarFooterItem = class NileSideBarFooterItem extends NileElement {
43
120
  }
44
121
  };
45
122
  __decorate([
46
- property({ type: String, reflect: true })
123
+ property({ type: String, attribute: true, reflect: true })
47
124
  ], NileSideBarFooterItem.prototype, "type", void 0);
125
+ __decorate([
126
+ property({ type: Boolean, attribute: true, reflect: true })
127
+ ], NileSideBarFooterItem.prototype, "active", void 0);
48
128
  NileSideBarFooterItem = __decorate([
49
129
  customElement('nile-side-bar-footer-item')
50
130
  ], NileSideBarFooterItem);
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-footer-item.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;;;;;;;;;GAaG;AAEI,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,WAAW;IAA/C;;QACsC,SAAI,GAAkB,IAAI,CAAC;IAuBxE,CAAC;IArBQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAEO,WAAW;QACjB,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,YAAY,EAAE;YAC/C,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;YAC3B,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC,CAAC;IACN,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;oDACqC,IAAI,CAAC,WAAW;;;;;KAK/D,CAAC;IACJ,CAAC;CACF,CAAA;AAvB4C;IAA1C,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAA4B;AAD3D,qBAAqB;IADjC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,qBAAqB,CAwBjC;;AAED,eAAe,qBAAqB,CAAC","sourcesContent":["import { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-footer-item.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-footer-item component.\n *\n * @tag nile-side-bar-footer-item\n *\n * @slot icon - Slot for footer item icon\n * @slot text - Slot for footer item text\n * @slot action - Slot for footer item action\n *\n * @csspart base - Wrapper for the footer item\n * @csspart icon - Wrapper for the icon slot\n * @csspart text - Wrapper for the text slot\n * @csspart action - Wrapper for the action slot\n */\n@customElement('nile-side-bar-footer-item')\nexport class NileSideBarFooterItem extends NileElement {\n @property({ type: String, reflect: true }) type: string | null = null;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n private handleClick(): void {\n this.dispatchEvent(new CustomEvent('nile-click', {\n detail: { type: this.type },\n bubbles: true,\n composed: true\n }));\n }\n\n public render(): TemplateResult {\n return html`\n <div part=\"base\" class=\"footer-item\" @click=${this.handleClick}>\n <slot name=\"icon\" part=\"icon\"></slot>\n <slot name=\"text\" part=\"text\"></slot>\n <slot name=\"action\" part=\"action\"></slot>\n </div>\n `;\n }\n}\n\nexport default NileSideBarFooterItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-footer-item': NileSideBarFooterItem;\n }\n}\n"]}
1
+ {"version":3,"file":"nile-side-bar-footer-item.js","sourceRoot":"","sources":["../../../src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAkC,MAAM,KAAK,CAAC;AAC3D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;;;;;;;;;;;GAeG;AAEI,IAAM,qBAAqB,GAA3B,MAAM,qBAAsB,SAAQ,WAAW;IAA/C;;QACuD,SAAI,GAAkB,IAAI,CAAC;QAEvF,uFAAuF;QAC1B,WAAM,GAAY,KAAK,CAAC;QA4C7E,kBAAa,GAAG,KAAK,CAAC;IAsDhC,CAAC;IAhGQ,MAAM,KAAK,MAAM;QACtB,OAAO,CAAC,MAAM,CAAC,CAAC;IAClB,CAAC;IAEO,WAAW;QACjB,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,YAAY,EAAE;YAC/C,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE;YAC3B,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACf,CAAC,CAAC,CAAC;IACN,CAAC;IAED,2JAA2J;IACnJ,sBAAsB,CAAC,CAAQ;QACrC,MAAM,MAAM,GAAG,CAAC,CAAC,MAAiB,CAAC;QACnC,IAAI,MAAM,CAAC,OAAO,EAAE,WAAW,EAAE,KAAK,sBAAsB,EAAE,CAAC;YAC7D,IAAI,CAAC,eAAe,CAAC,kBAAkB,EAAE,CAAC,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC;QACnE,CAAC;IACH,CAAC;IAED,iBAAiB;QACf,KAAK,CAAC,iBAAiB,EAAE,CAAC;QAC1B,IAAI,CAAC,sBAAsB,GAAG,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrE,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;QAChE,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IAClE,CAAC;IAED,oBAAoB;QAClB,KAAK,CAAC,oBAAoB,EAAE,CAAC;QAC7B,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;QACnE,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE,IAAI,CAAC,sBAAsB,CAAC,CAAC;IACrE,CAAC;IAED,MAAM,KAAK,kBAAkB;QAC3B,OAAO,CAAC,GAAG,KAAK,CAAC,kBAAkB,EAAE,WAAW,CAAC,CAAC;IACpD,CAAC;IAED,wBAAwB,CAAC,IAAY,EAAE,GAAkB,EAAE,KAAoB;QAC7E,KAAK,CAAC,wBAAwB,CAAC,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;QACjD,IAAI,IAAI,KAAK,WAAW;YAAE,IAAI,CAAC,aAAa,EAAE,CAAC;IACjD,CAAC;IAID,IAAY,gBAAgB;QAC1B,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,IAAI,IAAI,CAAC,YAAY,CAAC,WAAW,CAAC,CAAC;IAClE,CAAC;IAED,IAAY,aAAa;QACvB,OAAO,IAAI,CAAC,aAAa,CAAoB,8CAA8C,CAAC,CAAC;IAC/F,CAAC;IAEO,eAAe;QACrB,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,IAAI,CAAC;IAClD,CAAC;IAEO,kBAAkB,CAAC,CAAQ;QACjC,IAAI,CAAC,IAAI,CAAC,gBAAgB,IAAK,CAAC,CAAC,MAAkB,CAAC,OAAO,CAAC,sBAAsB,CAAC;YAAE,OAAO;QAC5F,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC;QAClC,IAAI,CAAC,MAAM;YAAE,OAAO;QACpB,IAAI,IAAI,CAAC,aAAa,EAAE,CAAC;YACvB,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;YAC3B,OAAO;QACT,CAAC;QACD,MAAM,CAAC,IAAI,EAAE,CAAC;IAChB,CAAC;IAEO,oBAAoB,CAAC,CAAgB;QAC3C,IAAI,CAAC,IAAI,CAAC,gBAAgB,IAAK,CAAC,CAAC,MAAkB,CAAC,OAAO,CAAC,sBAAsB,CAAC;YAAE,OAAO;QAC5F,IAAI,CAAC,CAAC,GAAG,KAAK,OAAO,IAAI,CAAC,CAAC,GAAG,KAAK,GAAG;YAAE,OAAO;QAC/C,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC;QAClC,IAAI,CAAC,MAAM;YAAE,OAAO;QACpB,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,IAAI,MAAM,CAAC,IAAI;YAAE,MAAM,CAAC,IAAI,EAAE,CAAC;;YAC1B,MAAM,CAAC,IAAI,EAAE,CAAC;IACrB,CAAC;IAEM,MAAM;QACX,OAAO,IAAI,CAAA;;;;mBAII,SAAS,CAAC,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,SAAS,CAAC;qBACtE,IAAI,CAAC,eAAe;iBACxB,CAAC,CAAQ,EAAE,EAAE;YACpB,IAAI,CAAC,WAAW,EAAE,CAAC;YACnB,IAAI,CAAC,kBAAkB,CAAC,CAAC,CAAC,CAAC;QAC7B,CAAC;mBACU,IAAI,CAAC,oBAAoB;;;;;;KAMvC,CAAC;IACJ,CAAC;CACF,CAAA;AArG6D;IAA3D,QAAQ,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;mDAA4B;AAG1B;IAA5D,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;qDAAyB;AAJ1E,qBAAqB;IADjC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,qBAAqB,CAsGjC;;AAED,eAAe,qBAAqB,CAAC","sourcesContent":["import { html, CSSResultArray, TemplateResult } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-footer-item.css';\nimport NileElement from '../internal/nile-element';\nimport type { NileSideBarAction } from '../nile-side-bar-action/nile-side-bar-action';\n\n/**\n * Nile side-bar-footer-item component.\n *\n * @tag nile-side-bar-footer-item\n *\n * @slot icon - Slot for footer item icon\n * @slot text - Slot for footer item text\n * @slot action - Slot for footer item action\n *\n * @attr active - Selected/current. Same state model as nile-side-bar-group-item.\n *\n * @csspart base - Wrapper for the footer item\n * @csspart icon - Wrapper for the icon slot\n * @csspart text - Wrapper for the text slot\n * @csspart action - Wrapper for the action slot\n */\n@customElement('nile-side-bar-footer-item')\nexport class NileSideBarFooterItem extends NileElement {\n @property({ type: String, attribute: true, reflect: true }) type: string | null = null;\n\n /** Selected/current, same state model and brand colors as nile-side-bar-group-item. */\n @property({ type: Boolean, attribute: true, reflect: true }) active: boolean = false;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n private handleClick(): void {\n this.dispatchEvent(new CustomEvent('nile-click', {\n detail: { type: this.type },\n bubbles: true,\n composed: true\n }));\n }\n\n /* Reflects a slotted nile-side-bar-action's open state as [data-action-open], since :has() doesn't re-match on a slotted child's own attribute changes. */\n private handleActionVisibility(e: Event): void {\n const target = e.target as Element;\n if (target.tagName?.toLowerCase() === 'nile-side-bar-action') {\n this.toggleAttribute('data-action-open', e.type === 'nile-show');\n }\n }\n\n connectedCallback(): void {\n super.connectedCallback();\n this.handleActionVisibility = this.handleActionVisibility.bind(this);\n this.addEventListener('nile-show', this.handleActionVisibility);\n this.addEventListener('nile-hide', this.handleActionVisibility);\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.removeEventListener('nile-show', this.handleActionVisibility);\n this.removeEventListener('nile-hide', this.handleActionVisibility);\n }\n\n static get observedAttributes(): string[] {\n return [...super.observedAttributes, 'collapsed'];\n }\n\n attributeChangedCallback(name: string, old: string | null, value: string | null): void {\n super.attributeChangedCallback(name, old, value);\n if (name === 'collapsed') this.requestUpdate();\n }\n\n private actionWasOpen = false;\n\n private get collapsedAccount(): boolean {\n return this.type === 'avatar' && this.hasAttribute('collapsed');\n }\n\n private get actionElement(): NileSideBarAction | null {\n return this.querySelector<NileSideBarAction>(':scope > nile-side-bar-action[slot=\"action\"]');\n }\n\n private handleMouseDown(): void {\n this.actionWasOpen = !!this.actionElement?.open;\n }\n\n private handleAccountClick(e: Event): void {\n if (!this.collapsedAccount || (e.target as Element).closest('nile-side-bar-action')) return;\n const action = this.actionElement;\n if (!action) return;\n if (this.actionWasOpen) {\n this.actionWasOpen = false;\n return;\n }\n action.show();\n }\n\n private handleAccountKeyDown(e: KeyboardEvent): void {\n if (!this.collapsedAccount || (e.target as Element).closest('nile-side-bar-action')) return;\n if (e.key !== 'Enter' && e.key !== ' ') return;\n const action = this.actionElement;\n if (!action) return;\n e.preventDefault();\n if (action.open) action.hide();\n else action.show();\n }\n\n public render(): TemplateResult {\n return html`\n <div\n part=\"base\"\n class=\"footer-item\"\n tabindex=${ifDefined(this.collapsedAccount && this.actionElement ? '0' : undefined)}\n @mousedown=${this.handleMouseDown}\n @click=${(e: Event) => {\n this.handleClick();\n this.handleAccountClick(e);\n }}\n @keydown=${this.handleAccountKeyDown}\n >\n <slot name=\"icon\" part=\"icon\"></slot>\n <slot name=\"text\" part=\"text\"></slot>\n <slot name=\"action\" part=\"action\"></slot>\n </div>\n `;\n }\n}\n\nexport default NileSideBarFooterItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-footer-item': NileSideBarFooterItem;\n }\n}\n"]}
@@ -0,0 +1,9 @@
1
+ import '../nile-side-bar';
2
+ import '../nile-side-bar-footer';
3
+ import '../nile-side-bar-footer-item';
4
+ import '../nile-side-bar-footer-text';
5
+ import '../nile-app-shell';
6
+ import '../nile-app-shell-side-nav';
7
+ import '../nile-avatar';
8
+ import '../nile-icon';
9
+ import '@aquera/nile-glyph/nile-glyph';