@aquera/nile-elements 1.3.9-beta-1.3 → 1.3.9-beta-1.4

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 (262) hide show
  1. package/demo/index.html +13 -13
  2. package/demo/nxtgen.css +2 -0
  3. package/demo/variables.css +2 -0
  4. package/dist/index.cjs.js +1 -1
  5. package/dist/index.esm.js +1 -1
  6. package/dist/index.js +29 -26
  7. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  8. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -1
  9. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  10. package/dist/nile-badge/index.cjs.js +1 -1
  11. package/dist/nile-badge/index.esm.js +1 -1
  12. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  13. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  14. package/dist/nile-badge/nile-badge.esm.js +3 -3
  15. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  16. package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
  17. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  18. package/dist/nile-button/index.cjs.js +1 -1
  19. package/dist/nile-button/index.esm.js +1 -1
  20. package/dist/nile-button/nile-button.cjs.js +1 -1
  21. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  22. package/dist/nile-button/nile-button.esm.js +8 -8
  23. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  24. package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
  25. package/dist/nile-button/nile-button.test.esm.js +1 -1
  26. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  27. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  28. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  29. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  30. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  31. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  32. package/dist/nile-dialog/index.cjs.js +1 -1
  33. package/dist/nile-dialog/index.esm.js +1 -1
  34. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  35. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  36. package/dist/nile-dialog/nile-dialog.esm.js +8 -8
  37. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  38. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
  39. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  40. package/dist/nile-drawer/index.cjs.js +1 -1
  41. package/dist/nile-drawer/index.esm.js +1 -1
  42. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  43. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  44. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  45. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  46. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
  47. package/dist/nile-drawer/nile-drawer.test.esm.js +5 -5
  48. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  49. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  50. package/dist/nile-icon/icons/svg/ng-bar-chart-square-02.cjs.js +2 -0
  51. package/dist/nile-icon/icons/svg/ng-bar-chart-square-02.cjs.js.map +1 -0
  52. package/dist/nile-icon/icons/svg/ng-bar-chart-square-02.esm.js +1 -0
  53. package/dist/nile-icon/icons/svg/ng-check-done-01.cjs.js +2 -0
  54. package/dist/nile-icon/icons/svg/ng-check-done-01.cjs.js.map +1 -0
  55. package/dist/nile-icon/icons/svg/ng-check-done-01.esm.js +1 -0
  56. package/dist/nile-icon/icons/svg/ng-chevron-left-double.cjs.js +2 -0
  57. package/dist/nile-icon/icons/svg/ng-chevron-left-double.cjs.js.map +1 -0
  58. package/dist/nile-icon/icons/svg/ng-chevron-left-double.esm.js +1 -0
  59. package/dist/nile-icon/icons/svg/ng-chevron-right-double.cjs.js +2 -0
  60. package/dist/nile-icon/icons/svg/ng-chevron-right-double.cjs.js.map +1 -0
  61. package/dist/nile-icon/icons/svg/ng-chevron-right-double.esm.js +1 -0
  62. package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js +1 -1
  63. package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js.map +1 -1
  64. package/dist/nile-icon/icons/svg/ng-chevron-right.esm.js +1 -1
  65. package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js +1 -1
  66. package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js.map +1 -1
  67. package/dist/nile-icon/icons/svg/ng-help-circle.esm.js +1 -1
  68. package/dist/nile-icon/icons/svg/ng-home-line.cjs.js +2 -0
  69. package/dist/nile-icon/icons/svg/ng-home-line.cjs.js.map +1 -0
  70. package/dist/nile-icon/icons/svg/ng-home-line.esm.js +1 -0
  71. package/dist/nile-icon/icons/svg/ng-pie-chart-03.cjs.js +2 -0
  72. package/dist/nile-icon/icons/svg/ng-pie-chart-03.cjs.js.map +1 -0
  73. package/dist/nile-icon/icons/svg/ng-pie-chart-03.esm.js +1 -0
  74. package/dist/nile-icon/icons/svg/ng-rows-01.cjs.js +2 -0
  75. package/dist/nile-icon/icons/svg/ng-rows-01.cjs.js.map +1 -0
  76. package/dist/nile-icon/icons/svg/ng-rows-01.esm.js +1 -0
  77. package/dist/nile-icon/icons/svg/ng-users-01.cjs.js +1 -1
  78. package/dist/nile-icon/icons/svg/ng-users-01.cjs.js.map +1 -1
  79. package/dist/nile-icon/icons/svg/ng-users-01.esm.js +1 -1
  80. package/dist/nile-icon/index.cjs.js +1 -1
  81. package/dist/nile-icon/index.cjs.js.map +1 -1
  82. package/dist/nile-icon/index.esm.js +1 -1
  83. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  84. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  85. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  86. package/dist/nile-icon-button/index.cjs.js +1 -1
  87. package/dist/nile-icon-button/index.esm.js +1 -1
  88. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  89. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  90. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  91. package/dist/nile-input/index.cjs.js +1 -1
  92. package/dist/nile-input/index.esm.js +1 -1
  93. package/dist/nile-input/nile-input.cjs.js +1 -1
  94. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  95. package/dist/nile-input/nile-input.esm.js +1 -1
  96. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  97. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  98. package/dist/nile-input/nile-input.test.esm.js +1 -1
  99. package/dist/nile-menu-item/index.cjs.js +1 -1
  100. package/dist/nile-menu-item/index.esm.js +1 -1
  101. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  102. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  103. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  104. package/dist/nile-option/index.cjs.js +1 -1
  105. package/dist/nile-option/index.esm.js +1 -1
  106. package/dist/nile-option/nile-option.cjs.js +1 -1
  107. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  108. package/dist/nile-option/nile-option.esm.js +1 -1
  109. package/dist/nile-select/index.cjs.js +1 -1
  110. package/dist/nile-select/index.esm.js +1 -1
  111. package/dist/nile-select/nile-select.cjs.js +1 -1
  112. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  113. package/dist/nile-select/nile-select.esm.js +1 -1
  114. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  115. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  116. package/dist/nile-select/nile-select.test.esm.js +12 -12
  117. package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
  118. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
  119. package/dist/nile-side-bar/nile-side-bar.esm.js +4 -4
  120. package/dist/nile-side-bar-action-menu-item/index.cjs.js +1 -1
  121. package/dist/nile-side-bar-action-menu-item/index.esm.js +1 -1
  122. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js +1 -1
  123. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js.map +1 -1
  124. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.esm.js +1 -1
  125. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js +1 -1
  126. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js.map +1 -1
  127. package/dist/nile-side-bar-expand/nile-side-bar-expand.esm.js +7 -7
  128. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
  129. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
  130. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +6 -3
  131. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js +1 -1
  132. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js.map +1 -1
  133. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js +1 -1
  134. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.cjs.js.map +1 -1
  135. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.css.esm.js +3 -3
  136. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.esm.js +5 -5
  137. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
  138. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
  139. package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +1 -1
  140. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js +1 -1
  141. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js.map +1 -1
  142. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.esm.js +5 -5
  143. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
  144. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
  145. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +4 -4
  146. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js +1 -1
  147. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
  148. package/dist/nile-side-bar-header/nile-side-bar-header.esm.js +5 -5
  149. package/dist/nile-tab/index.cjs.js +1 -1
  150. package/dist/nile-tab/index.esm.js +1 -1
  151. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  152. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  153. package/dist/nile-tab/nile-tab.esm.js +1 -1
  154. package/dist/nile-tab-group/index.cjs.js +1 -1
  155. package/dist/nile-tab-group/index.esm.js +1 -1
  156. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  157. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  158. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  159. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  160. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
  161. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  162. package/dist/nile-tag/index.cjs.js +1 -1
  163. package/dist/nile-tag/index.esm.js +1 -1
  164. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  165. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  166. package/dist/nile-tag/nile-tag.esm.js +1 -1
  167. package/dist/nile-toast/index.cjs.js +1 -1
  168. package/dist/nile-toast/index.esm.js +1 -1
  169. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  170. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  171. package/dist/nile-toast/nile-toast.esm.js +1 -1
  172. package/dist/nile-tree/index.cjs.js +1 -1
  173. package/dist/nile-tree/index.esm.js +1 -1
  174. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  175. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  176. package/dist/nile-tree/nile-tree.esm.js +1 -1
  177. package/dist/nile-tree-item/index.cjs.js +1 -1
  178. package/dist/nile-tree-item/index.esm.js +1 -1
  179. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  180. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  181. package/dist/nile-tree-item/nile-tree-item.esm.js +3 -3
  182. package/dist/nile-virtual-select/index.cjs.js +1 -1
  183. package/dist/nile-virtual-select/index.esm.js +1 -1
  184. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
  185. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  186. package/dist/src/nile-icon/icons/svg/index.d.ts +7 -0
  187. package/dist/src/nile-icon/icons/svg/index.js +7 -0
  188. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  189. package/dist/src/nile-icon/icons/svg/ng-bar-chart-square-02.d.ts +5 -0
  190. package/dist/src/nile-icon/icons/svg/ng-bar-chart-square-02.js +5 -0
  191. package/dist/src/nile-icon/icons/svg/ng-bar-chart-square-02.js.map +1 -0
  192. package/dist/src/nile-icon/icons/svg/ng-check-done-01.d.ts +5 -0
  193. package/dist/src/nile-icon/icons/svg/ng-check-done-01.js +5 -0
  194. package/dist/src/nile-icon/icons/svg/ng-check-done-01.js.map +1 -0
  195. package/dist/src/nile-icon/icons/svg/ng-chevron-left-double.d.ts +5 -0
  196. package/dist/src/nile-icon/icons/svg/ng-chevron-left-double.js +5 -0
  197. package/dist/src/nile-icon/icons/svg/ng-chevron-left-double.js.map +1 -0
  198. package/dist/src/nile-icon/icons/svg/ng-chevron-right-double.d.ts +5 -0
  199. package/dist/src/nile-icon/icons/svg/ng-chevron-right-double.js +5 -0
  200. package/dist/src/nile-icon/icons/svg/ng-chevron-right-double.js.map +1 -0
  201. package/dist/src/nile-icon/icons/svg/ng-chevron-right.d.ts +1 -1
  202. package/dist/src/nile-icon/icons/svg/ng-chevron-right.js +1 -1
  203. package/dist/src/nile-icon/icons/svg/ng-chevron-right.js.map +1 -1
  204. package/dist/src/nile-icon/icons/svg/ng-help-circle.d.ts +1 -1
  205. package/dist/src/nile-icon/icons/svg/ng-help-circle.js +1 -1
  206. package/dist/src/nile-icon/icons/svg/ng-help-circle.js.map +1 -1
  207. package/dist/src/nile-icon/icons/svg/ng-home-line.d.ts +5 -0
  208. package/dist/src/nile-icon/icons/svg/ng-home-line.js +5 -0
  209. package/dist/src/nile-icon/icons/svg/ng-home-line.js.map +1 -0
  210. package/dist/src/nile-icon/icons/svg/ng-pie-chart-03.d.ts +5 -0
  211. package/dist/src/nile-icon/icons/svg/ng-pie-chart-03.js +5 -0
  212. package/dist/src/nile-icon/icons/svg/ng-pie-chart-03.js.map +1 -0
  213. package/dist/src/nile-icon/icons/svg/ng-rows-01.d.ts +5 -0
  214. package/dist/src/nile-icon/icons/svg/ng-rows-01.js +5 -0
  215. package/dist/src/nile-icon/icons/svg/ng-rows-01.js.map +1 -0
  216. package/dist/src/nile-icon/icons/svg/ng-users-01.d.ts +1 -1
  217. package/dist/src/nile-icon/icons/svg/ng-users-01.js +1 -1
  218. package/dist/src/nile-icon/icons/svg/ng-users-01.js.map +1 -1
  219. package/dist/src/nile-side-bar/nile-side-bar.js +3 -3
  220. package/dist/src/nile-side-bar/nile-side-bar.js.map +1 -1
  221. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.js +3 -3
  222. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.js.map +1 -1
  223. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +4 -1
  224. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
  225. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js +3 -3
  226. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.js.map +1 -1
  227. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.js +3 -3
  228. package/dist/src/nile-side-bar-footer-text/nile-side-bar-footer-text.js.map +1 -1
  229. package/dist/src/nile-side-bar-group/nile-side-bar-group.js +1 -1
  230. package/dist/src/nile-side-bar-group/nile-side-bar-group.js.map +1 -1
  231. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.js +3 -3
  232. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.js.map +1 -1
  233. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.d.ts +2 -0
  234. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js +10 -2
  235. package/dist/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.js.map +1 -1
  236. package/dist/src/nile-side-bar-header/nile-side-bar-header.js +3 -3
  237. package/dist/src/nile-side-bar-header/nile-side-bar-header.js.map +1 -1
  238. package/dist/src/version.js +2 -2
  239. package/dist/src/version.js.map +1 -1
  240. package/dist/tsconfig.tsbuildinfo +1 -1
  241. package/package.json +1 -1
  242. package/src/nile-icon/icons/svg/index.ts +7 -0
  243. package/src/nile-icon/icons/svg/ng-bar-chart-square-02.ts +5 -0
  244. package/src/nile-icon/icons/svg/ng-check-done-01.ts +5 -0
  245. package/src/nile-icon/icons/svg/ng-chevron-left-double.ts +5 -0
  246. package/src/nile-icon/icons/svg/ng-chevron-right-double.ts +5 -0
  247. package/src/nile-icon/icons/svg/ng-chevron-right.ts +1 -1
  248. package/src/nile-icon/icons/svg/ng-help-circle.ts +1 -1
  249. package/src/nile-icon/icons/svg/ng-home-line.ts +5 -0
  250. package/src/nile-icon/icons/svg/ng-pie-chart-03.ts +5 -0
  251. package/src/nile-icon/icons/svg/ng-rows-01.ts +5 -0
  252. package/src/nile-icon/icons/svg/ng-users-01.ts +1 -1
  253. package/src/nile-side-bar/nile-side-bar.ts +3 -3
  254. package/src/nile-side-bar-expand/nile-side-bar-expand.ts +3 -3
  255. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +4 -1
  256. package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.css.ts +3 -3
  257. package/src/nile-side-bar-footer-text/nile-side-bar-footer-text.ts +3 -3
  258. package/src/nile-side-bar-group/nile-side-bar-group.ts +1 -1
  259. package/src/nile-side-bar-group-item/nile-side-bar-group-item.ts +3 -3
  260. package/src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.ts +8 -2
  261. package/src/nile-side-bar-header/nile-side-bar-header.ts +3 -3
  262. package/vscode-html-custom-data.json +9 -1
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-group-item.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,i,e,s,o,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileSideBarGroupItemCssCjsJs){o=_nileSideBarGroupItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",r=/*#__PURE__*/function(_l){function r(){var _this;_classCallCheck(this,r);_this=_callSuper(this,r,arguments),_this.href=null,_this.active=!1,_this.type="default",_this.expanded=!1,_this.disabled=!1;return _this;}_inherits(r,_l);return _createClass(r,[{key:"toggleExpand",value:function toggleExpand(){"dropdown"!==this.type&&"popover"!==this.type||this.disabled||(this.expanded=!this.expanded);}},{key:"connectedCallback",value:function connectedCallback(){_superPropGet(r,"connectedCallback",this,3)([]),this.href&&window.location.pathname===this.href&&(this.active=!0);}},{key:"handleSelect",value:function handleSelect(t){var _this2=this,_this$textContent;if(this.disabled)return t.preventDefault(),void t.stopImmediatePropagation();this.href||t.preventDefault();var i=this.closest("nile-side-bar");i&&i.querySelectorAll("nile-side-bar-group-item[active]").forEach(function(t){t!==_this2&&(t.active=!1,t.expanded=!1);}),this.active=!0,"dropdown"!==this.type&&"popover"!==this.type||this.disabled||(this.expanded=!0),this.dispatchEvent(new CustomEvent("nile-click",{bubbles:!0,composed:!0,detail:{href:this.href,text:((_this$textContent=this.textContent)===null||_this$textContent===void 0?void 0:_this$textContent.trim())||"",type:this.type}}));}},{key:"render",value:function render(){var _this3=this;var t="dropdown"===this.type||"popover"===this.type;return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n part=\"base\"\n class=\"group-item ","\"\n role=\"listitem\"\n ?data-expanded=","\n aria-disabled=","\n >\n ","\n </div>\n\n ","\n "])),this.disabled?"disabled":"",this.expanded,this.disabled?"true":"false",this.href?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <a\n part=\"link\"\n class=\"item-link\"\n href=","\n @click=","\n tabindex=","\n >\n <slot name=\"icon\"></slot>\n <slot name=\"text\"></slot>\n <slot name=\"trigger\"></slot>\n </a>\n "])),this.href,this.handleSelect,this.disabled?"-1":"0"):i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div\n part=\"link\"\n class=\"item-link\"\n @click=","\n tabindex=","\n >\n <slot name=\"icon\"></slot>\n <slot name=\"text\"></slot>\n <slot name=\"trigger\"></slot>\n </div>\n "])),function(i){_this3.handleSelect(i),t&&!_this3.disabled&&_this3.toggleExpand();},this.disabled?"-1":"0"),t?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <div\n part=\"content\"\n class=\"item-content\"\n role=","\n ?hidden=","\n >\n <slot name=\"content\"></slot>\n </div>\n "])),"dropdown"===this.type?"menu":"dialog",!this.expanded):null);}}],[{key:"styles",get:function get(){return[o];}}]);}(l));t([e({type:String})],r.prototype,"href",void 0),t([e({type:Boolean,reflect:!0,attribute:!0})],r.prototype,"active",void 0),t([e({type:String,reflect:!0})],r.prototype,"type",void 0),t([e({type:Boolean,reflect:!0})],r.prototype,"expanded",void 0),t([e({type:Boolean,reflect:!0})],r.prototype,"disabled",void 0),_export("N",r=t([s("nile-side-bar-group-item")],r));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-group-item.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,i,e,s,o,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,l;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileSideBarGroupItemCssCjsJs){o=_nileSideBarGroupItemCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",l=/*#__PURE__*/function(_r){function l(){var _this;_classCallCheck(this,l);_this=_callSuper(this,l,arguments),_this.href=null,_this.active=!1,_this.type="default",_this.expanded=!1,_this.disabled=!1;return _this;}_inherits(l,_r);return _createClass(l,[{key:"toggleExpand",value:function toggleExpand(){"dropdown"!==this.type&&"popover"!==this.type||this.disabled||(this.expanded=!this.expanded);}},{key:"connectedCallback",value:function connectedCallback(){_superPropGet(l,"connectedCallback",this,3)([]),this.href&&window.location.pathname===this.href&&(this.active=!0);}},{key:"handleSelect",value:function handleSelect(t){var _this2=this,_this$textContent;if(this.disabled)return t.preventDefault(),void t.stopImmediatePropagation();this.href||t.preventDefault();var i=this.closest("nile-side-bar");i&&i.querySelectorAll("nile-side-bar-group-item[active]").forEach(function(t){t!==_this2&&(t.active=!1,t.expanded=!1);}),this.active=!0,"dropdown"!==this.type&&"popover"!==this.type||this.disabled||(this.expanded=!0),this.dispatchEvent(new CustomEvent("nile-click",{bubbles:!0,composed:!0,detail:{href:this.href,text:((_this$textContent=this.textContent)===null||_this$textContent===void 0?void 0:_this$textContent.trim())||"",type:this.type}}));}},{key:"render",value:function render(){var _this3=this;var t="dropdown"===this.type||"popover"===this.type;return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n part=\"base\"\n class=\"group-item ","\"\n role=\"listitem\"\n ?data-expanded=","\n aria-disabled=","\n >\n ","\n </div>\n\n ","\n "])),this.disabled?"disabled":"",this.expanded,this.disabled?"true":"false",this.href?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <a\n part=\"link\"\n class=\"item-link\"\n href=","\n @click=","\n tabindex=","\n >\n <slot name=\"icon\"></slot>\n <slot name=\"text\"></slot>\n <slot name=\"trigger\"></slot>\n </a>\n "])),this.href,this.handleSelect,this.disabled?"-1":"0"):i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div\n part=\"link\"\n class=\"item-link\"\n @click=","\n tabindex=","\n >\n <slot name=\"icon\" part=\"icon\"></slot>\n <slot name=\"text\" part=\"text\"></slot>\n <slot name=\"trigger\" part=\"trigger\"></slot>\n </div>\n "])),function(i){_this3.handleSelect(i),t&&!_this3.disabled&&_this3.toggleExpand();},this.disabled?"-1":"0"),t?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <div\n part=\"content\"\n class=\"item-content\"\n role=","\n ?hidden=","\n >\n <slot name=\"content\"></slot>\n </div>\n "])),"dropdown"===this.type?"menu":"dialog",!this.expanded):null);}}],[{key:"styles",get:function get(){return[o];}}]);}(r));t([e({type:String})],l.prototype,"href",void 0),t([e({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"active",void 0),t([e({type:String,reflect:!0})],l.prototype,"type",void 0),t([e({type:Boolean,reflect:!0})],l.prototype,"expanded",void 0),t([e({type:Boolean,reflect:!0})],l.prototype,"disabled",void 0),_export("N",l=t([s("nile-side-bar-group-item")],l));}};});
2
2
  //# sourceMappingURL=nile-side-bar-group-item.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-group-item.cjs.js","sources":["../../../src/nile-side-bar-group-item/nile-side-bar-group-item.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 } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-group-item.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-group-item component.\n *\n * @tag nile-side-bar-group-item\n *\n * @slot icon - Slot for the item icon\n * @slot text - Slot for the item text\n * @slot trigger - Slot for chevron/trigger icons\n * @slot content - Slot for dropdown/popover content\n *\n * @csspart base - Wrapper for the group item\n * @csspart link - The clickable row (div or anchor)\n * @csspart content - Content container (for dropdown/popover)\n */\n@customElement('nile-side-bar-group-item')\nexport class NileSideBarGroupItem extends NileElement {\n\n @property({ type: String }) href: string | null = null;\n\n @property({ type: Boolean, reflect: true, attribute: true }) active = false;\n\n @property({ type: String, reflect: true })\n type: 'default' | 'dropdown' | 'popover' = 'default';\n\n @property({ type: Boolean, reflect: true }) expanded: boolean = false;\n\n @property({ type: Boolean, reflect: true }) disabled: boolean = false;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n private toggleExpand() {\n if ((this.type === 'dropdown' || this.type === 'popover') && !this.disabled) {\n this.expanded = !this.expanded;\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.href && window.location.pathname === this.href) {\n this.active = true;\n }\n }\n\n private handleSelect(e: Event) {\n if (this.disabled) {\n e.preventDefault();\n e.stopImmediatePropagation();\n return;\n }\n\n if (!this.href) {\n e.preventDefault();\n }\n const parent = this.closest('nile-side-bar');\n if (parent) {\n parent.querySelectorAll<NileSideBarGroupItem>('nile-side-bar-group-item[active]')\n .forEach(item => {\n if (item !== this) {\n item.active = false;\n item.expanded = false; \n }\n });\n }\n \n this.active = true;\n \n if ((this.type === 'dropdown' || this.type === 'popover') && !this.disabled) {\n this.expanded = true;\n }\n this.dispatchEvent(\n new CustomEvent('nile-click', {\n bubbles: true,\n composed: true,\n detail: {\n href: this.href,\n text: this.textContent?.trim() || '',\n type: this.type,\n },\n })\n );\n }\n\n public render(): TemplateResult {\n const interactive = this.type === 'dropdown' || this.type === 'popover';\n\n return html`\n <div\n part=\"base\"\n class=\"group-item ${this.disabled ? 'disabled' : ''}\"\n role=\"listitem\"\n ?data-expanded=${this.expanded}\n aria-disabled=${this.disabled ? 'true' : 'false'}\n >\n ${this.href\n ? html`\n <a\n part=\"link\"\n class=\"item-link\"\n href=${this.href}\n @click=${this.handleSelect}\n tabindex=${this.disabled ? '-1' : '0'}\n >\n <slot name=\"icon\"></slot>\n <slot name=\"text\"></slot>\n <slot name=\"trigger\"></slot>\n </a>\n `\n : html`\n <div\n part=\"link\"\n class=\"item-link\"\n @click=${(e: Event) => {\n this.handleSelect(e);\n if (interactive && !this.disabled) this.toggleExpand();\n }}\n tabindex=${this.disabled ? '-1' : '0'}\n >\n <slot name=\"icon\"></slot>\n <slot name=\"text\"></slot>\n <slot name=\"trigger\"></slot>\n </div>\n `}\n </div>\n\n ${interactive\n ? html`\n <div\n part=\"content\"\n class=\"item-content\"\n role=${this.type === 'dropdown' ? 'menu' : 'dialog'}\n ?hidden=${!this.expanded}\n >\n <slot name=\"content\"></slot>\n </div>\n `\n : null}\n `;\n }\n}\n\nexport default NileSideBarGroupItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-group-item': NileSideBarGroupItem;\n }\n}\n"],"names":["NileSideBarGroupItem","r","this","href","active","type","expanded","disabled","_this","_inherits","_l","_createClass","key","value","toggleExpand","connectedCallback","super","window","location","pathname","handleSelect","e","_this2","_this$textContent","preventDefault","stopImmediatePropagation","parent","closest","querySelectorAll","forEach","item","dispatchEvent","CustomEvent","bubbles","composed","detail","text","textContent","trim","render","_this3","interactive","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","_templateObject4","get","styles","NileElement","__decorate","property","String","prototype","Boolean","reflect","attribute","_export","customElement"],"mappings":"4tHA2BaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,qEAEuBC,EAAAA,KAAAA,CAAIC,KAAkB,IAEWD,CAAAA,KAAAA,CAAME,MAAG,CAAA,CAAA,CAAA,CAGtEF,KAAAA,CAAIG,IAAuC,CAAA,SAAA,CAECH,KAAAA,CAAQI,QAAAA,CAAAA,CAAY,EAEpBJ,KAAAA,CAAQK,QAAAA,CAAAA,CAAY,CAkHj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AAsD,CAAAA,SAAAA,CAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAAAI,OAAA,KAX3D1D,CAAoBmD,CAAAA,CAAAA,CAAA,CADhCQ,CAAAA,CAAc,6BACF3D"}
1
+ {"version":3,"file":"nile-side-bar-group-item.cjs.js","sources":["../../../src/nile-side-bar-group-item/nile-side-bar-group-item.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 } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-group-item.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile side-bar-group-item component.\n *\n * @tag nile-side-bar-group-item\n *\n * @slot icon - Slot for the item icon\n * @slot text - Slot for the item text\n * @slot trigger - Slot for chevron/trigger icons\n * @slot content - Slot for dropdown/popover content\n *\n * @csspart base - Wrapper for the group item\n * @csspart link - The clickable row (div or anchor)\n * @csspart content - Content container (for dropdown/popover)\n */\n@customElement('nile-side-bar-group-item')\nexport class NileSideBarGroupItem extends NileElement {\n\n @property({ type: String }) href: string | null = null;\n\n @property({ type: Boolean, reflect: true, attribute: true }) active = false;\n\n @property({ type: String, reflect: true })\n type: 'default' | 'dropdown' | 'popover' = 'default';\n\n @property({ type: Boolean, reflect: true }) expanded: boolean = false;\n\n @property({ type: Boolean, reflect: true }) disabled: boolean = false;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n private toggleExpand() {\n if ((this.type === 'dropdown' || this.type === 'popover') && !this.disabled) {\n this.expanded = !this.expanded;\n }\n }\n\n connectedCallback() {\n super.connectedCallback();\n if (this.href && window.location.pathname === this.href) {\n this.active = true;\n }\n }\n\n private handleSelect(e: Event) {\n if (this.disabled) {\n e.preventDefault();\n e.stopImmediatePropagation();\n return;\n }\n\n if (!this.href) {\n e.preventDefault();\n }\n const parent = this.closest('nile-side-bar');\n if (parent) {\n parent.querySelectorAll<NileSideBarGroupItem>('nile-side-bar-group-item[active]')\n .forEach(item => {\n if (item !== this) {\n item.active = false;\n item.expanded = false; \n }\n });\n }\n \n this.active = true;\n \n if ((this.type === 'dropdown' || this.type === 'popover') && !this.disabled) {\n this.expanded = true;\n }\n this.dispatchEvent(\n new CustomEvent('nile-click', {\n bubbles: true,\n composed: true,\n detail: {\n href: this.href,\n text: this.textContent?.trim() || '',\n type: this.type,\n },\n })\n );\n }\n\n public render(): TemplateResult {\n const interactive = this.type === 'dropdown' || this.type === 'popover';\n\n return html`\n <div\n part=\"base\"\n class=\"group-item ${this.disabled ? 'disabled' : ''}\"\n role=\"listitem\"\n ?data-expanded=${this.expanded}\n aria-disabled=${this.disabled ? 'true' : 'false'}\n >\n ${this.href\n ? html`\n <a\n part=\"link\"\n class=\"item-link\"\n href=${this.href}\n @click=${this.handleSelect}\n tabindex=${this.disabled ? '-1' : '0'}\n >\n <slot name=\"icon\"></slot>\n <slot name=\"text\"></slot>\n <slot name=\"trigger\"></slot>\n </a>\n `\n : html`\n <div\n part=\"link\"\n class=\"item-link\"\n @click=${(e: Event) => {\n this.handleSelect(e);\n if (interactive && !this.disabled) this.toggleExpand();\n }}\n tabindex=${this.disabled ? '-1' : '0'}\n >\n <slot name=\"icon\" part=\"icon\"></slot>\n <slot name=\"text\" part=\"text\"></slot>\n <slot name=\"trigger\" part=\"trigger\"></slot>\n </div>\n `}\n </div>\n\n ${interactive\n ? html`\n <div\n part=\"content\"\n class=\"item-content\"\n role=${this.type === 'dropdown' ? 'menu' : 'dialog'}\n ?hidden=${!this.expanded}\n >\n <slot name=\"content\"></slot>\n </div>\n `\n : null}\n `;\n }\n}\n\nexport default NileSideBarGroupItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-group-item': NileSideBarGroupItem;\n }\n}\n"],"names":["NileSideBarGroupItem","l","this","href","active","type","expanded","disabled","_this","_inherits","_r","_createClass","key","value","toggleExpand","connectedCallback","super","window","location","pathname","handleSelect","e","_this2","_this$textContent","preventDefault","stopImmediatePropagation","parent","closest","querySelectorAll","forEach","item","dispatchEvent","CustomEvent","bubbles","composed","detail","text","textContent","trim","render","_this3","interactive","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","_templateObject4","get","styles","NileElement","__decorate","property","String","prototype","Boolean","reflect","attribute","_export","customElement"],"mappings":"4tHA2BaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,qEAEuBC,EAAAA,KAAAA,CAAIC,KAAkB,IAEWD,CAAAA,KAAAA,CAAME,MAAG,CAAA,CAAA,CAAA,CAGtEF,KAAAA,CAAIG,IAAuC,CAAA,SAAA,CAECH,KAAAA,CAAQI,QAAAA,CAAAA,CAAY,EAEpBJ,KAAAA,CAAQK,QAAAA,CAAAA,CAAY,CAkHjE,QAAAC,KAAA,EAhHQC,SAAA,CAAAR,CAAA,CAAAS,EAAA,SAAAC,YAAA,CAAAV,CAAA,GAAAW,GAAA,gBAAAC,KAAA,CAIC,SAAAC,YAAAA,CAAAA,CAAAA,CACa,UAAdZ,GAAAA,IAAAA,CAAKG,MAAqC,SAAdH,GAAAA,IAAAA,CAAKG,IAAwBH,EAAAA,IAAAA,CAAKK,WACjEL,IAAKI,CAAAA,QAAAA,CAAAA,CAAYJ,IAAKI,CAAAA,QAAAA,CAEzB,EAED,GAAAM,GAAA,qBAAAC,KAAA,UAAAE,iBAAAA,CAAAA,CAAAA,CACEC,aAAAA,CAAAA,CAAAA,iCACId,KAAKC,IAAQc,EAAAA,MAAAA,CAAOC,QAASC,CAAAA,QAAAA,GAAajB,KAAKC,IACjDD,GAAAA,IAAAA,CAAKE,MAAS,CAAA,CAAA,CAAA,CAEjB,EAEO,GAAAQ,GAAA,gBAAAC,KAAA,UAAAO,YAAAA,CAAaC,CACnB,CAAA,KAAAC,MAAA,MAAAC,iBAAA,CAAA,GAAIrB,KAAKK,QAGP,CAAA,MAFAc,CAAAA,CAAEG,CAAAA,cAAAA,CAAAA,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,CAAA,QAAA,CAAA,IAAA,EAG5EH,CAAAA,CAAAA,CAAAA,CAAA,CADCC,CAAAA,CAAS,CAAE/C,IAAAA,CAAMgD,OAAQG,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CACkBxD,CAAAsD,CAAAA,SAAAA,CAAA,MAAA,CAAA,IAAA,EAAA,CAAA,CAETH,CAAA,CAAA,CAA3CC,CAAS,CAAA,CAAE/C,IAAMkD,CAAAA,OAAAA,CAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAkCxD,CAAAsD,CAAAA,SAAAA,CAAA,eAAA,EAE1BH,CAAAA,CAAAA,CAAAA,CAAA,CAA3CC,CAAAA,CAAS,CAAE/C,IAAAA,CAAMkD,OAASC,CAAAA,OAAAA,CAAAA,CAAS,KAAkCxD,CAAAsD,CAAAA,SAAAA,CAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAAAI,OAAA,KAX3D1D,CAAoBmD,CAAAA,CAAAA,CAAA,CADhCQ,CAAAA,CAAc,6BACF3D"}
@@ -1,4 +1,4 @@
1
- import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as e,customElement as s}from"lit/decorators.js";import{s as o}from"./nile-side-bar-group-item.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";let r=class extends l{constructor(){super(...arguments),this.href=null,this.active=!1,this.type="default",this.expanded=!1,this.disabled=!1}static get styles(){return[o]}toggleExpand(){"dropdown"!==this.type&&"popover"!==this.type||this.disabled||(this.expanded=!this.expanded)}connectedCallback(){super.connectedCallback(),this.href&&window.location.pathname===this.href&&(this.active=!0)}handleSelect(t){if(this.disabled)return t.preventDefault(),void t.stopImmediatePropagation();this.href||t.preventDefault();const i=this.closest("nile-side-bar");i&&i.querySelectorAll("nile-side-bar-group-item[active]").forEach((t=>{t!==this&&(t.active=!1,t.expanded=!1)})),this.active=!0,"dropdown"!==this.type&&"popover"!==this.type||this.disabled||(this.expanded=!0),this.dispatchEvent(new CustomEvent("nile-click",{bubbles:!0,composed:!0,detail:{href:this.href,text:this.textContent?.trim()||"",type:this.type}}))}render(){const t="dropdown"===this.type||"popover"===this.type;return i`
1
+ import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as e,customElement as s}from"lit/decorators.js";import{s as o}from"./nile-side-bar-group-item.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";let l=class extends r{constructor(){super(...arguments),this.href=null,this.active=!1,this.type="default",this.expanded=!1,this.disabled=!1}static get styles(){return[o]}toggleExpand(){"dropdown"!==this.type&&"popover"!==this.type||this.disabled||(this.expanded=!this.expanded)}connectedCallback(){super.connectedCallback(),this.href&&window.location.pathname===this.href&&(this.active=!0)}handleSelect(t){if(this.disabled)return t.preventDefault(),void t.stopImmediatePropagation();this.href||t.preventDefault();const i=this.closest("nile-side-bar");i&&i.querySelectorAll("nile-side-bar-group-item[active]").forEach((t=>{t!==this&&(t.active=!1,t.expanded=!1)})),this.active=!0,"dropdown"!==this.type&&"popover"!==this.type||this.disabled||(this.expanded=!0),this.dispatchEvent(new CustomEvent("nile-click",{bubbles:!0,composed:!0,detail:{href:this.href,text:this.textContent?.trim()||"",type:this.type}}))}render(){const t="dropdown"===this.type||"popover"===this.type;return i`
2
2
  <div
3
3
  part="base"
4
4
  class="group-item ${this.disabled?"disabled":""}"
@@ -25,9 +25,9 @@ import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as
25
25
  @click=${i=>{this.handleSelect(i),t&&!this.disabled&&this.toggleExpand()}}
26
26
  tabindex=${this.disabled?"-1":"0"}
27
27
  >
28
- <slot name="icon"></slot>
29
- <slot name="text"></slot>
30
- <slot name="trigger"></slot>
28
+ <slot name="icon" part="icon"></slot>
29
+ <slot name="text" part="text"></slot>
30
+ <slot name="trigger" part="trigger"></slot>
31
31
  </div>
32
32
  `}
33
33
  </div>
@@ -42,4 +42,4 @@ import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as
42
42
  <slot name="content"></slot>
43
43
  </div>
44
44
  `:null}
45
- `}};t([e({type:String})],r.prototype,"href",void 0),t([e({type:Boolean,reflect:!0,attribute:!0})],r.prototype,"active",void 0),t([e({type:String,reflect:!0})],r.prototype,"type",void 0),t([e({type:Boolean,reflect:!0})],r.prototype,"expanded",void 0),t([e({type:Boolean,reflect:!0})],r.prototype,"disabled",void 0),r=t([s("nile-side-bar-group-item")],r);export{r as N};
45
+ `}};t([e({type:String})],l.prototype,"href",void 0),t([e({type:Boolean,reflect:!0,attribute:!0})],l.prototype,"active",void 0),t([e({type:String,reflect:!0})],l.prototype,"type",void 0),t([e({type:Boolean,reflect:!0})],l.prototype,"expanded",void 0),t([e({type:Boolean,reflect:!0})],l.prototype,"disabled",void 0),l=t([s("nile-side-bar-group-item")],l);export{l as N};
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-group-item-icon.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,i,e,s,o,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileSideBarGroupItemIconCssCjsJs){o=_nileSideBarGroupItemIconCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_r){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.icon="",_this.tooltip="",_this.sidebar=null;return _this;}_inherits(n,_r);return _createClass(n,[{key:"connectedCallback",value:function connectedCallback(){var _this2=this;if(this.hasAttribute("slot")||this.setAttribute("slot","icon"),_superPropGet(n,"connectedCallback",this,3)([]),this.sidebar=this.closest("nile-side-bar"),this.sidebar){var _t=new MutationObserver(function(){return _this2.requestUpdate();});_t.observe(this.sidebar,{attributes:!0,attributeFilter:["collapsed"]}),this._observer=_t;}}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_observer;_superPropGet(n,"disconnectedCallback",this,3)([]),(_this$_observer=this._observer)===null||_this$_observer===void 0?void 0:_this$_observer.disconnect();}},{key:"getSiblingText",value:function getSiblingText(){var _i$textContent$trim,_i$textContent;var t=this.parentElement,i=t===null||t===void 0?void 0:t.querySelector("nile-side-bar-group-item-text");return(_i$textContent$trim=i===null||i===void 0||(_i$textContent=i.textContent)===null||_i$textContent===void 0?void 0:_i$textContent.trim())!==null&&_i$textContent$trim!==void 0?_i$textContent$trim:"";}},{key:"render",value:function render(){var _this$sidebar;var t=!!((_this$sidebar=this.sidebar)!==null&&_this$sidebar!==void 0&&_this$sidebar.collapsed),e=this.tooltip||this.getSiblingText();return t&&e?i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-tooltip distance=\"18\" content="," placement=\"right\" >\n <slot>\n ","\n </slot>\n </nile-tooltip>\n "])),e,this.icon?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-icon size=\"14\" color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" name=","></nile-icon>"])),this.icon):null):i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <slot>\n ","\n </slot>\n "])),this.icon?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-icon color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" size=\"14\" name=","></nile-icon>"])),this.icon):null);}}],[{key:"styles",get:function get(){return[o];}}]);}(r));t([e({type:String,reflect:!0})],n.prototype,"icon",void 0),t([e({type:String})],n.prototype,"tooltip",void 0),_export("N",n=t([s("nile-side-bar-group-item-icon")],n));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-group-item-icon.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,o,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;e=_litDecoratorsJs.customElement;},function(_nileSideBarGroupItemIconCssCjsJs){o=_nileSideBarGroupItemIconCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_r){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.icon="",_this.tooltip="",_this.method="fill",_this.size="14",_this.sidebar=null;return _this;}_inherits(n,_r);return _createClass(n,[{key:"connectedCallback",value:function connectedCallback(){var _this2=this;if(this.hasAttribute("slot")||this.setAttribute("slot","icon"),_superPropGet(n,"connectedCallback",this,3)([]),this.sidebar=this.closest("nile-side-bar"),this.sidebar){var _t=new MutationObserver(function(){return _this2.requestUpdate();});_t.observe(this.sidebar,{attributes:!0,attributeFilter:["collapsed"]}),this._observer=_t;}}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$_observer;_superPropGet(n,"disconnectedCallback",this,3)([]),(_this$_observer=this._observer)===null||_this$_observer===void 0?void 0:_this$_observer.disconnect();}},{key:"getSiblingText",value:function getSiblingText(){var _i$textContent$trim,_i$textContent;var t=this.parentElement,i=t===null||t===void 0?void 0:t.querySelector("nile-side-bar-group-item-text");return(_i$textContent$trim=i===null||i===void 0||(_i$textContent=i.textContent)===null||_i$textContent===void 0?void 0:_i$textContent.trim())!==null&&_i$textContent$trim!==void 0?_i$textContent$trim:"";}},{key:"render",value:function render(){var _this$sidebar;var t=!!((_this$sidebar=this.sidebar)!==null&&_this$sidebar!==void 0&&_this$sidebar.collapsed),s=this.tooltip||this.getSiblingText();return t&&s?i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-tooltip distance=\"18\" content="," placement=\"right\" >\n <slot>\n ","\n </slot>\n </nile-tooltip>\n "])),s,this.icon?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-icon size="," color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" name="," method=","></nile-icon>"])),this.size,this.icon,this.method):null):i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <slot>\n ","\n </slot>\n "])),this.icon?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-icon size="," color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" size=\"14\" name="," method=","></nile-icon>"])),this.size,this.icon,this.method):null);}}],[{key:"styles",get:function get(){return[o];}}]);}(r));t([s({type:String,reflect:!0})],n.prototype,"icon",void 0),t([s({type:String})],n.prototype,"tooltip",void 0),t([s({type:String})],n.prototype,"method",void 0),t([s({type:String})],n.prototype,"size",void 0),_export("N",n=t([e("nile-side-bar-group-item-icon")],n));}};});
2
2
  //# sourceMappingURL=nile-side-bar-group-item-icon.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-group-item-icon.cjs.js","sources":["../../../src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.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 } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-group-item-icon.css';\nimport NileElement from '../internal/nile-element';\nimport type { NileSideBar } from '../nile-side-bar/nile-side-bar';\n\n/**\n * Nile side-bar-group-item-icon component.\n *\n * @tag nile-side-bar-group-item-icon\n *\n * @attr icon - The name of the icon to render inside <nile-icon>\n * @attr tooltip - Tooltip text shown when sidebar is collapsed\n *\n * @slot - Optional slot to override the icon completely\n */\n@customElement('nile-side-bar-group-item-icon')\nexport class NileSideBarGroupItemIcon extends NileElement {\n /**\n * Name of the icon (passed to <nile-icon name=\"\">)\n */\n @property({ type: String, reflect: true })\n icon: string = '';\n\n /**\n * Tooltip text (auto-synced from sibling text if available)\n */\n @property({ type: String })\n tooltip: string = '';\n\n private sidebar: NileSideBar | null = null;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback(): void {\n\tif (!this.hasAttribute('slot')) {\n\t\tthis.setAttribute('slot', 'icon');\n\t }\n\t \n super.connectedCallback();\n this.sidebar = this.closest('nile-side-bar') as NileSideBar | null;\n if (this.sidebar) {\n const observer = new MutationObserver(() => this.requestUpdate());\n observer.observe(this.sidebar, { attributes: true, attributeFilter: ['collapsed'] });\n (this as any)._observer = observer;\n }\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n (this as any)._observer?.disconnect();\n }\n\n private getSiblingText(): string {\n const parent = this.parentElement;\n const textEl = parent?.querySelector('nile-side-bar-group-item-text');\n return textEl?.textContent?.trim() ?? '';\n }\n\n public render(): TemplateResult {\n const isCollapsed = !!this.sidebar?.collapsed;\n const text = this.tooltip || this.getSiblingText();\n\n if (isCollapsed && text) {\n return html`\n <nile-tooltip distance=\"18\" content=${text} placement=\"right\" >\n <slot>\n ${this.icon ? html`<nile-icon size=\"14\" color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" name=${this.icon}></nile-icon>` : null}\n </slot>\n </nile-tooltip>\n `;\n }\n\n return html`\n <slot>\n ${this.icon ? html`<nile-icon color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" size=\"14\" name=${this.icon}></nile-icon>` : null}\n </slot>\n `;\n }\n}\n\nexport default NileSideBarGroupItemIcon;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-group-item-icon': NileSideBarGroupItemIcon;\n }\n}\n"],"names":["NileSideBarGroupItemIcon","n","this","icon","tooltip","sidebar","_this","_inherits","_r","_createClass","key","value","connectedCallback","hasAttribute","setAttribute","super","closest","observer","MutationObserver","requestUpdate","observe","attributes","attributeFilter","_observer","disconnectedCallback","disconnect","getSiblingText","_i$textContent$trim","_i$textContent","parent","parentElement","textEl","querySelector","textContent","trim","render","isCollapsed","collapsed","text","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","_templateObject4","__decorate","get","styles","NileElement","property","type","String","reflect","prototype","customElement"],"mappings":"yu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MAAQC,CAAAA,OAAAA,CAAAA,CAAS,CACjBpD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAqD,SAAA,CAAA,MAAA,CAAA,IAAA,EAMlBR,CAAAA,CAAAA,CAAAA,CAAA,CADCI,CAAAA,CAAS,CAAEC,IAAAA,CAAMC,MACGnD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAqD,SAAA,CAAA,SAAA,CAAA,IAAA,EAXVrD,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAwB6C,CAAA,CAAA,CADpCS,CAAc,CAAA,+BAAA,CAAA,CAAA,CACFtD"}
1
+ {"version":3,"file":"nile-side-bar-group-item-icon.cjs.js","sources":["../../../src/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.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 } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-side-bar-group-item-icon.css';\nimport NileElement from '../internal/nile-element';\nimport type { NileSideBar } from '../nile-side-bar/nile-side-bar';\n\n/**\n * Nile side-bar-group-item-icon component.\n *\n * @tag nile-side-bar-group-item-icon\n *\n * @attr icon - The name of the icon to render inside <nile-icon>\n * @attr tooltip - Tooltip text shown when sidebar is collapsed\n *\n * @slot - Optional slot to override the icon completely\n */\n@customElement('nile-side-bar-group-item-icon')\nexport class NileSideBarGroupItemIcon extends NileElement {\n /**\n * Name of the icon (passed to <nile-icon name=\"\">)\n */\n @property({ type: String, reflect: true })\n icon: string = '';\n\n /**\n * Tooltip text (auto-synced from sibling text if available)\n */\n @property({ type: String })\n tooltip: string = '';\n\n @property({ type: String })\n method: string = 'fill';\n\n @property({ type: String })\n size: string = '14';\n\n private sidebar: NileSideBar | null = null;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback(): void {\n\tif (!this.hasAttribute('slot')) {\n\t\tthis.setAttribute('slot', 'icon');\n\t }\n\t \n super.connectedCallback();\n this.sidebar = this.closest('nile-side-bar') as NileSideBar | null;\n if (this.sidebar) {\n const observer = new MutationObserver(() => this.requestUpdate());\n observer.observe(this.sidebar, { attributes: true, attributeFilter: ['collapsed'] });\n (this as any)._observer = observer;\n }\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n (this as any)._observer?.disconnect();\n }\n\n private getSiblingText(): string {\n const parent = this.parentElement;\n const textEl = parent?.querySelector('nile-side-bar-group-item-text');\n return textEl?.textContent?.trim() ?? '';\n }\n\n public render(): TemplateResult {\n const isCollapsed = !!this.sidebar?.collapsed;\n const text = this.tooltip || this.getSiblingText();\n\n if (isCollapsed && text) {\n return html`\n <nile-tooltip distance=\"18\" content=${text} placement=\"right\" >\n <slot>\n ${this.icon ? html`<nile-icon size=${this.size} color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" name=${this.icon} method=${this.method}></nile-icon>` : null}\n </slot>\n </nile-tooltip>\n `;\n }\n\n return html`\n <slot>\n ${this.icon ? html`<nile-icon size=${this.size} color=\"var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))\" size=\"14\" name=${this.icon} method=${this.method}></nile-icon>` : null}\n </slot>\n `;\n }\n}\n\nexport default NileSideBarGroupItemIcon;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-group-item-icon': NileSideBarGroupItemIcon;\n }\n}\n"],"names":["NileSideBarGroupItemIcon","_r","n","this","icon","tooltip","method","size","sidebar","_this","_inherits","_createClass","key","value","connectedCallback","hasAttribute","setAttribute","_superPropGet","closest","observer","MutationObserver","requestUpdate","observe","attributes","attributeFilter","_observer","disconnectedCallback","super","disconnect","getSiblingText","_i$textContent$trim","_i$textContent","parent","parentElement","textEl","querySelector","textContent","trim","render","_this$sidebar","isCollapsed","collapsed","text","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","_templateObject4","__decorate","get","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,IAAAA,CAAeD,KAAKG,MAAwB,EAAA,IAAA,CAG9L,EAhED2C,KAAAA,GAAAA,UAAAA,GAAAA,CAgBO,SAAAC,IAAA,CAAWC,CAChB,MAAO,CAACA,CACT,CAAA,EAED,MAzB4CC,CAAvC,GAKLH,CAAAA,CAAA,CADCI,CAAS,CAAA,CAAEC,KAAMC,MAAQC,CAAAA,OAAAA,CAAAA,CAAS,KACjBxD,CAAAyD,CAAAA,SAAAA,CAAA,WAAA,EAMlBR,CAAAA,CAAAA,CAAAA,CAAA,CADCI,CAAS,CAAA,CAAEC,KAAMC,MACGvD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAyD,SAAA,CAAA,SAAA,CAAA,IAAA,EAGrBR,CAAAA,CAAAA,CAAAA,CAAA,CADCI,CAAS,CAAA,CAAEC,KAAMC,MACMvD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAyD,UAAA,QAAA,CAAA,IAAA,EAAA,CAAA,CAGxBR,CAAA,CAAA,CADCI,CAAS,CAAA,CAAEC,KAAMC,MACEvD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAyD,UAAA,MAAA,CAAA,IAAA,EAAA,CAAA,CAAAC,OAAA,KAjBT1D,EAAwBiD,CAAA,CAAA,CADpCU,CAAc,CAAA,+BAAA,CAAA,CAAA,CACF3D"}
@@ -1,11 +1,11 @@
1
- import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as e,customElement as s}from"lit/decorators.js";import{s as o}from"./nile-side-bar-group-item-icon.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";let n=class extends r{constructor(){super(...arguments),this.icon="",this.tooltip="",this.sidebar=null}static get styles(){return[o]}connectedCallback(){if(this.hasAttribute("slot")||this.setAttribute("slot","icon"),super.connectedCallback(),this.sidebar=this.closest("nile-side-bar"),this.sidebar){const t=new MutationObserver((()=>this.requestUpdate()));t.observe(this.sidebar,{attributes:!0,attributeFilter:["collapsed"]}),this._observer=t}}disconnectedCallback(){super.disconnectedCallback(),this._observer?.disconnect()}getSiblingText(){const t=this.parentElement,i=t?.querySelector("nile-side-bar-group-item-text");return i?.textContent?.trim()??""}render(){const t=!!this.sidebar?.collapsed,e=this.tooltip||this.getSiblingText();return t&&e?i`
1
+ import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as e,customElement as s}from"lit/decorators.js";import{s as o}from"./nile-side-bar-group-item-icon.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";let n=class extends r{constructor(){super(...arguments),this.icon="",this.tooltip="",this.method="fill",this.size="14",this.sidebar=null}static get styles(){return[o]}connectedCallback(){if(this.hasAttribute("slot")||this.setAttribute("slot","icon"),super.connectedCallback(),this.sidebar=this.closest("nile-side-bar"),this.sidebar){const t=new MutationObserver((()=>this.requestUpdate()));t.observe(this.sidebar,{attributes:!0,attributeFilter:["collapsed"]}),this._observer=t}}disconnectedCallback(){super.disconnectedCallback(),this._observer?.disconnect()}getSiblingText(){const t=this.parentElement,i=t?.querySelector("nile-side-bar-group-item-text");return i?.textContent?.trim()??""}render(){const t=!!this.sidebar?.collapsed,e=this.tooltip||this.getSiblingText();return t&&e?i`
2
2
  <nile-tooltip distance="18" content=${e} placement="right" >
3
3
  <slot>
4
- ${this.icon?i`<nile-icon size="14" color="var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))" name=${this.icon}></nile-icon>`:null}
4
+ ${this.icon?i`<nile-icon size=${this.size} color="var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))" name=${this.icon} method=${this.method}></nile-icon>`:null}
5
5
  </slot>
6
6
  </nile-tooltip>
7
7
  `:i`
8
8
  <slot>
9
- ${this.icon?i`<nile-icon color="var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))" size="14" name=${this.icon}></nile-icon>`:null}
9
+ ${this.icon?i`<nile-icon size=${this.size} color="var(--nile-colors-dark-900,var(--ng-colors-fg-quaternary-400))" size="14" name=${this.icon} method=${this.method}></nile-icon>`:null}
10
10
  </slot>
11
- `}};t([e({type:String,reflect:!0})],n.prototype,"icon",void 0),t([e({type:String})],n.prototype,"tooltip",void 0),n=t([s("nile-side-bar-group-item-icon")],n);export{n as N};
11
+ `}};t([e({type:String,reflect:!0})],n.prototype,"icon",void 0),t([e({type:String})],n.prototype,"tooltip",void 0),t([e({type:String})],n.prototype,"method",void 0),t([e({type:String})],n.prototype,"size",void 0),n=t([s("nile-side-bar-group-item-icon")],n);export{n as N};
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-header.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var e,s,t,r,o,_templateObject,i;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){s=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.customElement;},function(_nileSideBarHeaderCssCjsJs){r=_nileSideBarHeaderCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",i=/*#__PURE__*/function(_o){function i(){_classCallCheck(this,i);return _callSuper(this,i,arguments);}_inherits(i,_o);return _createClass(i,[{key:"render",value:function render(){return s(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t <div class=\"header-content\">\n <slot name=\"logo\"></slot>\n <slot name=\"expand\"></slot>\n </div>\n\t\t\t"])));}}],[{key:"styles",get:function get(){return[r];}}]);}(o));_export("N",i=e([t("nile-side-bar-header")],i));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-header.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var e,t,r,s,o,_templateObject,a;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){r=_litDecoratorsJs.customElement;},function(_nileSideBarHeaderCssCjsJs){s=_nileSideBarHeaderCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",a=/*#__PURE__*/function(_o){function a(){_classCallCheck(this,a);return _callSuper(this,a,arguments);}_inherits(a,_o);return _createClass(a,[{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t <div class=\"header-content\" part=\"header-content\">\n <slot name=\"logo\" part=\"logo\"></slot>\n <slot name=\"expand\" part=\"expand\"></slot>\n </div>\n\t\t\t"])));}}],[{key:"styles",get:function get(){return[s];}}]);}(o));_export("N",a=e([r("nile-side-bar-header")],a));}};});
2
2
  //# sourceMappingURL=nile-side-bar-header.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-header.cjs.js","sources":["../../../src/nile-side-bar-header/nile-side-bar-header.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 {LitElement, html, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property} from 'lit/decorators.js';\nimport {styles} from './nile-side-bar-header.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile side-bar-header component.\n *\n * @tag nile-side-bar-header\n *\n */\n@customElement('nile-side-bar-header')\nexport class NileSideBarHeader extends NileElement {\n\n\t/**\n\t * The styles for nile-side-bar-header\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t <div class=\"header-content\">\n <slot name=\"logo\"></slot>\n <slot name=\"expand\"></slot>\n </div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileSideBarHeader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-header': NileSideBarHeader;\n }\n}"],"names":["NileSideBarHeader","render","html","_templateObject","_taggedTemplateLiteral","key","get","styles","NileElement","__decorate","customElement"],"mappings":"onGAoBaA,CAAAA,uBAAAA,EAAAA,WAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,SAAAA,UAAAA,MAAAA,CAAAA,CAAAA,SAAAA,GAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,SAAAA,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,UAAAA,KAAAA,CAkBL,SAAAC,MAAAA,CAAAA,CACN,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,2IAMX,CAAA,KAAAC,GAAA,UAAAC,GAAA,CAnBM,SAAAA,IAAA,EACN,MAAO,CAACC,EACR,EAUM,MAlB+BC,CAM/B,GANKR,OAAAA,KAAAA,CAAiBS,CAAAA,CAAAA,CAAA,CAD7BC,CAAAA,CAAc,yBACFV"}
1
+ {"version":3,"file":"nile-side-bar-header.cjs.js","sources":["../../../src/nile-side-bar-header/nile-side-bar-header.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 {LitElement, html, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property} from 'lit/decorators.js';\nimport {styles} from './nile-side-bar-header.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile side-bar-header component.\n *\n * @tag nile-side-bar-header\n *\n */\n@customElement('nile-side-bar-header')\nexport class NileSideBarHeader extends NileElement {\n\n\t/**\n\t * The styles for nile-side-bar-header\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t <div class=\"header-content\" part=\"header-content\">\n <slot name=\"logo\" part=\"logo\"></slot>\n <slot name=\"expand\" part=\"expand\"></slot>\n </div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileSideBarHeader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-header': NileSideBarHeader;\n }\n}"],"names":["NileSideBarHeader","render","html","_templateObject","_taggedTemplateLiteral","key","get","styles","NileElement","__decorate","customElement"],"mappings":"onGAoBaA,CAAAA,uBAAAA,EAAAA,WAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,SAAAA,UAAAA,MAAAA,CAAAA,CAAAA,SAAAA,GAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,SAAAA,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,UAAAA,KAAAA,CAkBL,SAAAC,MAAAA,CAAAA,CACN,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,iMAMX,CAAA,KAAAC,GAAA,UAAAC,GAAA,CAnBM,SAAAA,IAAA,EACN,MAAO,CAACC,EACR,EAUM,MAlB+BC,CAM/B,GANKR,OAAAA,KAAAA,CAAiBS,CAAAA,CAAAA,CAAA,CAD7BC,CAAAA,CAAc,yBACFV"}
@@ -1,6 +1,6 @@
1
- import{__decorate as e}from"tslib";import{html as s}from"lit";import{customElement as t}from"lit/decorators.js";import{s as r}from"./nile-side-bar-header.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";let i=class extends o{static get styles(){return[r]}render(){return s`
2
- <div class="header-content">
3
- <slot name="logo"></slot>
4
- <slot name="expand"></slot>
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{customElement as r}from"lit/decorators.js";import{s}from"./nile-side-bar-header.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";let a=class extends o{static get styles(){return[s]}render(){return t`
2
+ <div class="header-content" part="header-content">
3
+ <slot name="logo" part="logo"></slot>
4
+ <slot name="expand" part="expand"></slot>
5
5
  </div>
6
- `}};i=e([t("nile-side-bar-header")],i);export{i as N};
6
+ `}};a=e([r("nile-side-bar-header")],a);export{a as N};