@aquera/nile-elements 1.3.5-beta-1.0 → 1.3.6-beta-1.0

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 (540) hide show
  1. package/README.md +3 -1
  2. package/demo/index.css +3 -0
  3. package/demo/index.html +128 -6
  4. package/demo/variables.css +0 -1
  5. package/dist/index.cjs.js +1 -1
  6. package/dist/index.esm.js +1 -1
  7. package/dist/index.js +300 -231
  8. package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
  9. package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
  10. package/dist/nile-date-picker/nile-date-picker.esm.js +1 -1
  11. package/dist/nile-floating-panel/anchor-manager.cjs.js +2 -0
  12. package/dist/nile-floating-panel/anchor-manager.cjs.js.map +1 -0
  13. package/dist/nile-floating-panel/anchor-manager.esm.js +1 -0
  14. package/dist/nile-floating-panel/content-manager.cjs.js +2 -0
  15. package/dist/nile-floating-panel/content-manager.cjs.js.map +1 -0
  16. package/dist/nile-floating-panel/content-manager.esm.js +1 -0
  17. package/dist/nile-floating-panel/event-manager.cjs.js +2 -0
  18. package/dist/nile-floating-panel/event-manager.cjs.js.map +1 -0
  19. package/dist/nile-floating-panel/event-manager.esm.js +1 -0
  20. package/dist/nile-floating-panel/index.cjs.js +2 -0
  21. package/dist/nile-floating-panel/index.esm.js +1 -0
  22. package/dist/nile-floating-panel/nile-floating-panel.cjs.js +2 -0
  23. package/dist/nile-floating-panel/nile-floating-panel.cjs.js.map +1 -0
  24. package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js +2 -0
  25. package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js.map +1 -0
  26. package/dist/nile-floating-panel/nile-floating-panel.css.esm.js +37 -0
  27. package/dist/nile-floating-panel/nile-floating-panel.esm.js +1 -0
  28. package/dist/nile-floating-panel/position-manager.cjs.js +2 -0
  29. package/dist/nile-floating-panel/position-manager.cjs.js.map +1 -0
  30. package/dist/nile-floating-panel/position-manager.esm.js +1 -0
  31. package/dist/nile-floating-panel/style-manager.cjs.js +2 -0
  32. package/dist/nile-floating-panel/style-manager.cjs.js.map +1 -0
  33. package/dist/nile-floating-panel/style-manager.esm.js +1 -0
  34. package/dist/nile-floating-panel/types.cjs.js +2 -0
  35. package/dist/nile-floating-panel/types.cjs.js.map +1 -0
  36. package/dist/nile-floating-panel/types.esm.js +1 -0
  37. package/dist/nile-grid/nile-grid-body/nile-grid-body.css.cjs.js +1 -1
  38. package/dist/nile-grid/nile-grid-body/nile-grid-body.css.cjs.js.map +1 -1
  39. package/dist/nile-grid/nile-grid-body/nile-grid-body.css.esm.js +1 -1
  40. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +1 -1
  41. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +1 -1
  42. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +11 -10
  43. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.css.cjs.js +1 -1
  44. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +1 -1
  45. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.css.esm.js +14 -13
  46. package/dist/nile-grid/nile-grid-row/nile-grid-row.css.cjs.js +1 -1
  47. package/dist/nile-grid/nile-grid-row/nile-grid-row.css.cjs.js.map +1 -1
  48. package/dist/nile-grid/nile-grid-row/nile-grid-row.css.esm.js +4 -3
  49. package/dist/nile-grid/nile-grid.css.cjs.js +1 -1
  50. package/dist/nile-grid/nile-grid.css.cjs.js.map +1 -1
  51. package/dist/nile-grid/nile-grid.css.esm.js +7 -7
  52. package/dist/nile-grid/nile-grid.width.cjs.js +1 -1
  53. package/dist/nile-grid/nile-grid.width.cjs.js.map +1 -1
  54. package/dist/nile-grid/nile-grid.width.esm.js +1 -1
  55. package/dist/nile-icon/index.cjs.js +1 -1
  56. package/dist/nile-icon/index.cjs.js.map +1 -1
  57. package/dist/nile-icon/index.esm.js +4 -4
  58. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js +1 -1
  59. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js.map +1 -1
  60. package/dist/nile-inline-sidebar/nile-inline-sidebar.css.cjs.js +1 -1
  61. package/dist/nile-inline-sidebar/nile-inline-sidebar.css.cjs.js.map +1 -1
  62. package/dist/nile-inline-sidebar/nile-inline-sidebar.css.esm.js +10 -2
  63. package/dist/nile-inline-sidebar/nile-inline-sidebar.esm.js +10 -6
  64. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js +1 -1
  65. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js.map +1 -1
  66. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js +1 -1
  67. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.cjs.js.map +1 -1
  68. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.css.esm.js +8 -2
  69. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.esm.js +2 -2
  70. package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
  71. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
  72. package/dist/nile-side-bar/nile-side-bar.css.cjs.js +1 -1
  73. package/dist/nile-side-bar/nile-side-bar.css.cjs.js.map +1 -1
  74. package/dist/nile-side-bar/nile-side-bar.css.esm.js +24 -29
  75. package/dist/nile-side-bar/nile-side-bar.esm.js +7 -1
  76. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js +1 -1
  77. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js.map +1 -1
  78. package/dist/nile-side-bar-expand/nile-side-bar-expand.css.cjs.js +1 -1
  79. package/dist/nile-side-bar-expand/nile-side-bar-expand.css.cjs.js.map +1 -1
  80. package/dist/nile-side-bar-expand/nile-side-bar-expand.css.esm.js +3 -5
  81. package/dist/nile-side-bar-expand/nile-side-bar-expand.esm.js +8 -8
  82. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js +1 -1
  83. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.cjs.js.map +1 -1
  84. package/dist/nile-side-bar-footer/nile-side-bar-footer.css.esm.js +5 -3
  85. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
  86. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
  87. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js +1 -1
  88. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.cjs.js.map +1 -1
  89. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.css.esm.js +17 -5
  90. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +3 -3
  91. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js +1 -1
  92. package/dist/nile-side-bar-group/nile-side-bar-group.css.cjs.js.map +1 -1
  93. package/dist/nile-side-bar-group/nile-side-bar-group.css.esm.js +4 -7
  94. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js +1 -1
  95. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.cjs.js.map +1 -1
  96. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.css.esm.js +58 -56
  97. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +1 -1
  98. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
  99. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  100. package/dist/nile-virtual-select/portal-manager.cjs.js +1 -1
  101. package/dist/nile-virtual-select/portal-manager.cjs.js.map +1 -1
  102. package/dist/nile-virtual-select/portal-manager.esm.js +1 -1
  103. package/dist/src/index.d.ts +1 -0
  104. package/dist/src/index.js +1 -0
  105. package/dist/src/index.js.map +1 -1
  106. package/dist/src/nile-date-picker/nile-date-picker.js +3 -1
  107. package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
  108. package/dist/src/nile-floating-panel/anchor-manager.d.ts +6 -0
  109. package/dist/src/nile-floating-panel/anchor-manager.js +27 -0
  110. package/dist/src/nile-floating-panel/anchor-manager.js.map +1 -0
  111. package/dist/src/nile-floating-panel/content-manager.d.ts +5 -0
  112. package/dist/src/nile-floating-panel/content-manager.js +44 -0
  113. package/dist/src/nile-floating-panel/content-manager.js.map +1 -0
  114. package/dist/src/nile-floating-panel/event-manager.d.ts +14 -0
  115. package/dist/src/nile-floating-panel/event-manager.js +52 -0
  116. package/dist/src/nile-floating-panel/event-manager.js.map +1 -0
  117. package/dist/src/nile-floating-panel/index.d.ts +1 -0
  118. package/dist/src/nile-floating-panel/index.js +2 -0
  119. package/dist/src/nile-floating-panel/index.js.map +1 -0
  120. package/dist/src/{nile-grid-body/nile-grid-body.css.d.ts → nile-floating-panel/nile-floating-panel.css.d.ts} +1 -3
  121. package/dist/src/nile-floating-panel/nile-floating-panel.css.js +47 -0
  122. package/dist/src/nile-floating-panel/nile-floating-panel.css.js.map +1 -0
  123. package/dist/src/nile-floating-panel/nile-floating-panel.d.ts +43 -0
  124. package/dist/src/nile-floating-panel/nile-floating-panel.js +238 -0
  125. package/dist/src/nile-floating-panel/nile-floating-panel.js.map +1 -0
  126. package/dist/src/nile-floating-panel/position-manager.d.ts +17 -0
  127. package/dist/src/nile-floating-panel/position-manager.js +72 -0
  128. package/dist/src/nile-floating-panel/position-manager.js.map +1 -0
  129. package/dist/src/nile-floating-panel/style-manager.d.ts +9 -0
  130. package/dist/src/nile-floating-panel/style-manager.js +44 -0
  131. package/dist/src/nile-floating-panel/style-manager.js.map +1 -0
  132. package/dist/src/nile-floating-panel/types.d.ts +11 -0
  133. package/dist/src/nile-floating-panel/types.js +2 -0
  134. package/dist/src/nile-floating-panel/types.js.map +1 -0
  135. package/dist/src/nile-grid/nile-grid-body/nile-grid-body.css.js +1 -1
  136. package/dist/src/nile-grid/nile-grid-body/nile-grid-body.css.js.map +1 -1
  137. package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.js +9 -8
  138. package/dist/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.js.map +1 -1
  139. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.css.js +12 -11
  140. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.css.js.map +1 -1
  141. package/dist/src/nile-grid/nile-grid-row/nile-grid-row.css.js +4 -3
  142. package/dist/src/nile-grid/nile-grid-row/nile-grid-row.css.js.map +1 -1
  143. package/dist/src/nile-grid/nile-grid.css.js +5 -5
  144. package/dist/src/nile-grid/nile-grid.css.js.map +1 -1
  145. package/dist/src/nile-grid/nile-grid.layout.js +3 -3
  146. package/dist/src/nile-grid/nile-grid.layout.js.map +1 -1
  147. package/dist/src/nile-icon/index.js +1 -1
  148. package/dist/src/nile-icon/index.js.map +1 -1
  149. package/dist/src/nile-inline-sidebar/nile-inline-sidebar.css.js +10 -2
  150. package/dist/src/nile-inline-sidebar/nile-inline-sidebar.css.js.map +1 -1
  151. package/dist/src/nile-inline-sidebar/nile-inline-sidebar.js +10 -3
  152. package/dist/src/nile-inline-sidebar/nile-inline-sidebar.js.map +1 -1
  153. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js +6 -0
  154. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.js.map +1 -1
  155. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.d.ts +1 -0
  156. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.js +4 -0
  157. package/dist/src/nile-inline-sidebar-item/nile-inline-sidebar-item.js.map +1 -1
  158. package/dist/src/nile-side-bar/nile-side-bar.css.js +22 -27
  159. package/dist/src/nile-side-bar/nile-side-bar.css.js.map +1 -1
  160. package/dist/src/nile-side-bar/nile-side-bar.js +7 -1
  161. package/dist/src/nile-side-bar/nile-side-bar.js.map +1 -1
  162. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.css.js +3 -5
  163. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.css.js.map +1 -1
  164. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.d.ts +2 -0
  165. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.js +12 -4
  166. package/dist/src/nile-side-bar-expand/nile-side-bar-expand.js.map +1 -1
  167. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js +3 -1
  168. package/dist/src/nile-side-bar-footer/nile-side-bar-footer.css.js.map +1 -1
  169. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js +15 -3
  170. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.js.map +1 -1
  171. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.d.ts +1 -0
  172. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js +8 -1
  173. package/dist/src/nile-side-bar-footer-item/nile-side-bar-footer-item.js.map +1 -1
  174. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js +2 -5
  175. package/dist/src/nile-side-bar-group/nile-side-bar-group.css.js.map +1 -1
  176. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js +48 -46
  177. package/dist/src/nile-side-bar-group-item/nile-side-bar-group-item.css.js.map +1 -1
  178. package/dist/src/nile-virtual-select/nile-virtual-select.js +1 -1
  179. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
  180. package/dist/src/nile-virtual-select/portal-manager.js +1 -1
  181. package/dist/src/nile-virtual-select/portal-manager.js.map +1 -1
  182. package/dist/src/version.js +1 -1
  183. package/dist/src/version.js.map +1 -1
  184. package/dist/tsconfig.tsbuildinfo +1 -1
  185. package/package.json +1 -1
  186. package/src/index.ts +2 -1
  187. package/src/nile-date-picker/nile-date-picker.ts +3 -1
  188. package/src/nile-floating-panel/anchor-manager.ts +33 -0
  189. package/src/nile-floating-panel/content-manager.ts +54 -0
  190. package/src/nile-floating-panel/event-manager.ts +74 -0
  191. package/src/nile-floating-panel/index.ts +2 -0
  192. package/src/nile-floating-panel/nile-floating-panel.css.ts +50 -0
  193. package/src/nile-floating-panel/nile-floating-panel.ts +291 -0
  194. package/src/nile-floating-panel/position-manager.ts +102 -0
  195. package/src/nile-floating-panel/style-manager.ts +54 -0
  196. package/src/nile-floating-panel/types.ts +15 -0
  197. package/src/nile-grid/nile-grid-body/nile-grid-body.css.ts +1 -1
  198. package/src/nile-grid/nile-grid-cell-item/nile-grid-cell-item.css.ts +9 -8
  199. package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.css.ts +12 -11
  200. package/src/nile-grid/nile-grid-row/nile-grid-row.css.ts +4 -3
  201. package/src/nile-grid/nile-grid.css.ts +5 -5
  202. package/src/nile-grid/nile-grid.layout.ts +3 -3
  203. package/src/nile-icon/index.ts +1 -1
  204. package/src/nile-inline-sidebar/nile-inline-sidebar.css.ts +10 -2
  205. package/src/nile-inline-sidebar/nile-inline-sidebar.ts +16 -5
  206. package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.css.ts +6 -0
  207. package/src/nile-inline-sidebar-item/nile-inline-sidebar-item.ts +1 -0
  208. package/src/nile-side-bar/nile-side-bar.css.ts +22 -27
  209. package/src/nile-side-bar/nile-side-bar.ts +8 -1
  210. package/src/nile-side-bar-expand/nile-side-bar-expand.css.ts +3 -5
  211. package/src/nile-side-bar-expand/nile-side-bar-expand.ts +6 -4
  212. package/src/nile-side-bar-footer/nile-side-bar-footer.css.ts +3 -1
  213. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.css.ts +15 -3
  214. package/src/nile-side-bar-footer-item/nile-side-bar-footer-item.ts +9 -1
  215. package/src/nile-side-bar-group/nile-side-bar-group.css.ts +2 -5
  216. package/src/nile-side-bar-group-item/nile-side-bar-group-item.css.ts +49 -47
  217. package/src/nile-virtual-select/nile-virtual-select.ts +1 -1
  218. package/src/nile-virtual-select/portal-manager.ts +1 -1
  219. package/vscode-html-custom-data.json +77 -3
  220. package/dist/axe.min-140df6c2.cjs.js +0 -2
  221. package/dist/axe.min-140df6c2.cjs.js.map +0 -1
  222. package/dist/axe.min-591c52c3.esm.js +0 -1
  223. package/dist/css-tag-3c4464f5.esm.js +0 -6
  224. package/dist/css-tag-b6258454.cjs.js +0 -6
  225. package/dist/css-tag-b6258454.cjs.js.map +0 -1
  226. package/dist/fixture-ba65262e.esm.js +0 -569
  227. package/dist/fixture-d1470b58.cjs.js +0 -395
  228. package/dist/fixture-d1470b58.cjs.js.map +0 -1
  229. package/dist/fixture-e3592de4.cjs.js +0 -395
  230. package/dist/fixture-e3592de4.cjs.js.map +0 -1
  231. package/dist/flow-3e83b6f4.esm.js +0 -17
  232. package/dist/flow-ca47f938.cjs.js +0 -14
  233. package/dist/flow-ca47f938.cjs.js.map +0 -1
  234. package/dist/lit-html-21bc9a48.cjs.js +0 -6
  235. package/dist/lit-html-21bc9a48.cjs.js.map +0 -1
  236. package/dist/lit-html-82603fd0.esm.js +0 -6
  237. package/dist/nile-grid-body/index.cjs.js +0 -2
  238. package/dist/nile-grid-body/index.esm.js +0 -1
  239. package/dist/nile-grid-body/nile-grid-body.cjs.js +0 -2
  240. package/dist/nile-grid-body/nile-grid-body.cjs.js.map +0 -1
  241. package/dist/nile-grid-body/nile-grid-body.css.cjs.js +0 -2
  242. package/dist/nile-grid-body/nile-grid-body.css.cjs.js.map +0 -1
  243. package/dist/nile-grid-body/nile-grid-body.css.esm.js +0 -10
  244. package/dist/nile-grid-body/nile-grid-body.esm.js +0 -5
  245. package/dist/nile-grid-cell-item/index.cjs.js +0 -2
  246. package/dist/nile-grid-cell-item/index.cjs.js.map +0 -1
  247. package/dist/nile-grid-cell-item/index.esm.js +0 -1
  248. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js +0 -2
  249. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +0 -1
  250. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +0 -2
  251. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +0 -1
  252. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +0 -35
  253. package/dist/nile-grid-cell-item/nile-grid-cell-item.esm.js +0 -12
  254. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js +0 -2
  255. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js.map +0 -1
  256. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.esm.js +0 -1
  257. package/dist/nile-grid-head/index.cjs.js +0 -2
  258. package/dist/nile-grid-head/index.cjs.js.map +0 -1
  259. package/dist/nile-grid-head/index.esm.js +0 -1
  260. package/dist/nile-grid-head/nile-grid-head.cjs.js +0 -2
  261. package/dist/nile-grid-head/nile-grid-head.cjs.js.map +0 -1
  262. package/dist/nile-grid-head/nile-grid-head.css.cjs.js +0 -2
  263. package/dist/nile-grid-head/nile-grid-head.css.cjs.js.map +0 -1
  264. package/dist/nile-grid-head/nile-grid-head.css.esm.js +0 -7
  265. package/dist/nile-grid-head/nile-grid-head.esm.js +0 -5
  266. package/dist/nile-grid-head-item/index.cjs.js +0 -2
  267. package/dist/nile-grid-head-item/index.cjs.js.map +0 -1
  268. package/dist/nile-grid-head-item/index.esm.js +0 -1
  269. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js +0 -2
  270. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js.map +0 -1
  271. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js +0 -2
  272. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +0 -1
  273. package/dist/nile-grid-head-item/nile-grid-head-item.css.esm.js +0 -34
  274. package/dist/nile-grid-head-item/nile-grid-head-item.esm.js +0 -12
  275. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +0 -2
  276. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +0 -1
  277. package/dist/nile-grid-head-item/nile-grid-head-item.utils.esm.js +0 -1
  278. package/dist/nile-grid-row/index.cjs.js +0 -2
  279. package/dist/nile-grid-row/index.cjs.js.map +0 -1
  280. package/dist/nile-grid-row/index.esm.js +0 -1
  281. package/dist/nile-grid-row/nile-grid-row.cjs.js +0 -2
  282. package/dist/nile-grid-row/nile-grid-row.cjs.js.map +0 -1
  283. package/dist/nile-grid-row/nile-grid-row.css.cjs.js +0 -2
  284. package/dist/nile-grid-row/nile-grid-row.css.cjs.js.map +0 -1
  285. package/dist/nile-grid-row/nile-grid-row.css.esm.js +0 -15
  286. package/dist/nile-grid-row/nile-grid-row.esm.js +0 -7
  287. package/dist/nile-inlinesidebar/index.cjs.js +0 -2
  288. package/dist/nile-inlinesidebar/index.cjs.js.map +0 -1
  289. package/dist/nile-inlinesidebar/index.esm.js +0 -1
  290. package/dist/nile-inlinesidebar/nile-inlinesidebar.cjs.js +0 -2
  291. package/dist/nile-inlinesidebar/nile-inlinesidebar.cjs.js.map +0 -1
  292. package/dist/nile-inlinesidebar/nile-inlinesidebar.css.cjs.js +0 -2
  293. package/dist/nile-inlinesidebar/nile-inlinesidebar.css.cjs.js.map +0 -1
  294. package/dist/nile-inlinesidebar/nile-inlinesidebar.css.esm.js +0 -62
  295. package/dist/nile-inlinesidebar/nile-inlinesidebar.esm.js +0 -46
  296. package/dist/nile-inlinesidebar-group/index.cjs.js +0 -2
  297. package/dist/nile-inlinesidebar-group/index.cjs.js.map +0 -1
  298. package/dist/nile-inlinesidebar-group/index.esm.js +0 -1
  299. package/dist/nile-inlinesidebar-group/nile-inlinesidebar-group.cjs.js +0 -2
  300. package/dist/nile-inlinesidebar-group/nile-inlinesidebar-group.cjs.js.map +0 -1
  301. package/dist/nile-inlinesidebar-group/nile-inlinesidebar-group.css.cjs.js +0 -2
  302. package/dist/nile-inlinesidebar-group/nile-inlinesidebar-group.css.cjs.js.map +0 -1
  303. package/dist/nile-inlinesidebar-group/nile-inlinesidebar-group.css.esm.js +0 -33
  304. package/dist/nile-inlinesidebar-group/nile-inlinesidebar-group.esm.js +0 -12
  305. package/dist/nile-inlinesidebar-item/index.cjs.js +0 -2
  306. package/dist/nile-inlinesidebar-item/index.cjs.js.map +0 -1
  307. package/dist/nile-inlinesidebar-item/index.esm.js +0 -1
  308. package/dist/nile-inlinesidebar-item/nile-inlinesidebar-item.cjs.js +0 -2
  309. package/dist/nile-inlinesidebar-item/nile-inlinesidebar-item.cjs.js.map +0 -1
  310. package/dist/nile-inlinesidebar-item/nile-inlinesidebar-item.css.cjs.js +0 -2
  311. package/dist/nile-inlinesidebar-item/nile-inlinesidebar-item.css.cjs.js.map +0 -1
  312. package/dist/nile-inlinesidebar-item/nile-inlinesidebar-item.css.esm.js +0 -37
  313. package/dist/nile-inlinesidebar-item/nile-inlinesidebar-item.esm.js +0 -5
  314. package/dist/nile-rich-text-editor/utils.cjs.js +0 -2
  315. package/dist/nile-rich-text-editor/utils.cjs.js.map +0 -1
  316. package/dist/nile-rich-text-editor/utils.esm.js +0 -1
  317. package/dist/nile-side-bar-content/index.cjs.js +0 -2
  318. package/dist/nile-side-bar-content/index.cjs.js.map +0 -1
  319. package/dist/nile-side-bar-content/index.esm.js +0 -1
  320. package/dist/nile-side-bar-content/nile-side-bar-content.cjs.js +0 -2
  321. package/dist/nile-side-bar-content/nile-side-bar-content.cjs.js.map +0 -1
  322. package/dist/nile-side-bar-content/nile-side-bar-content.css.cjs.js +0 -2
  323. package/dist/nile-side-bar-content/nile-side-bar-content.css.cjs.js.map +0 -1
  324. package/dist/nile-side-bar-content/nile-side-bar-content.css.esm.js +0 -5
  325. package/dist/nile-side-bar-content/nile-side-bar-content.esm.js +0 -3
  326. package/dist/nile-side-bar-footer-icon/index.cjs.js +0 -2
  327. package/dist/nile-side-bar-footer-icon/index.cjs.js.map +0 -1
  328. package/dist/nile-side-bar-footer-icon/index.esm.js +0 -1
  329. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.cjs.js +0 -2
  330. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.cjs.js.map +0 -1
  331. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.cjs.js +0 -2
  332. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.cjs.js.map +0 -1
  333. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.esm.js +0 -5
  334. package/dist/nile-side-bar-footer-icon/nile-side-bar-footer-icon.esm.js +0 -3
  335. package/dist/nile-side-bar-group-item-content/index.cjs.js +0 -2
  336. package/dist/nile-side-bar-group-item-content/index.cjs.js.map +0 -1
  337. package/dist/nile-side-bar-group-item-content/index.esm.js +0 -1
  338. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.cjs.js +0 -2
  339. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.cjs.js.map +0 -1
  340. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.cjs.js +0 -2
  341. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.cjs.js.map +0 -1
  342. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.esm.js +0 -5
  343. package/dist/nile-side-bar-group-item-content/nile-side-bar-group-item-content.esm.js +0 -3
  344. package/dist/nile-sidebar/index.cjs.js +0 -2
  345. package/dist/nile-sidebar/index.cjs.js.map +0 -1
  346. package/dist/nile-sidebar/index.esm.js +0 -75
  347. package/dist/nile-sidebar-menu/index.cjs.js +0 -2
  348. package/dist/nile-sidebar-menu/index.cjs.js.map +0 -1
  349. package/dist/nile-sidebar-menu/index.esm.js +0 -1
  350. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js +0 -2
  351. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +0 -1
  352. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js +0 -2
  353. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js.map +0 -1
  354. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.esm.js +0 -38
  355. package/dist/nile-sidebar-menu/nile-sidebar-menu.esm.js +0 -10
  356. package/dist/nile-sidebar-menu-items/index.cjs.js +0 -2
  357. package/dist/nile-sidebar-menu-items/index.cjs.js.map +0 -1
  358. package/dist/nile-sidebar-menu-items/index.esm.js +0 -1
  359. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js +0 -2
  360. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +0 -1
  361. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +0 -2
  362. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +0 -1
  363. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +0 -36
  364. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.esm.js +0 -15
  365. package/dist/nile-sidebar-wrapper/index.cjs.js +0 -2
  366. package/dist/nile-sidebar-wrapper/index.cjs.js.map +0 -1
  367. package/dist/nile-sidebar-wrapper/index.esm.js +0 -1
  368. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js +0 -2
  369. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +0 -1
  370. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js +0 -2
  371. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js.map +0 -1
  372. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.esm.js +0 -105
  373. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.esm.js +0 -16
  374. package/dist/scopedElementsWrapper-abad3c53.cjs.js +0 -2
  375. package/dist/scopedElementsWrapper-abad3c53.cjs.js.map +0 -1
  376. package/dist/scopedElementsWrapper-c815042c.cjs.js +0 -2
  377. package/dist/scopedElementsWrapper-c815042c.cjs.js.map +0 -1
  378. package/dist/scopedElementsWrapper-ef11f868.esm.js +0 -1
  379. package/dist/sinon-esm-283dcc9b.cjs.js +0 -2
  380. package/dist/sinon-esm-283dcc9b.cjs.js.map +0 -1
  381. package/dist/sinon-esm-abe9b0ec.esm.js +0 -1
  382. package/dist/src/nile-grid/nile-grid.types.d.ts +0 -3
  383. package/dist/src/nile-grid/nile-grid.types.js +0 -2
  384. package/dist/src/nile-grid/nile-grid.types.js.map +0 -1
  385. package/dist/src/nile-grid-body/index.d.ts +0 -1
  386. package/dist/src/nile-grid-body/index.js +0 -2
  387. package/dist/src/nile-grid-body/index.js.map +0 -1
  388. package/dist/src/nile-grid-body/nile-grid-body.css.js +0 -22
  389. package/dist/src/nile-grid-body/nile-grid-body.css.js.map +0 -1
  390. package/dist/src/nile-grid-body/nile-grid-body.d.ts +0 -29
  391. package/dist/src/nile-grid-body/nile-grid-body.js +0 -43
  392. package/dist/src/nile-grid-body/nile-grid-body.js.map +0 -1
  393. package/dist/src/nile-grid-cell-item/index.d.ts +0 -1
  394. package/dist/src/nile-grid-cell-item/index.js +0 -2
  395. package/dist/src/nile-grid-cell-item/index.js.map +0 -1
  396. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.d.ts +0 -12
  397. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js +0 -47
  398. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js.map +0 -1
  399. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.d.ts +0 -36
  400. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js +0 -93
  401. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js.map +0 -1
  402. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.d.ts +0 -10
  403. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js +0 -34
  404. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +0 -1
  405. package/dist/src/nile-grid-head/index.d.ts +0 -1
  406. package/dist/src/nile-grid-head/index.js +0 -2
  407. package/dist/src/nile-grid-head/index.js.map +0 -1
  408. package/dist/src/nile-grid-head/nile-grid-head.css.d.ts +0 -12
  409. package/dist/src/nile-grid-head/nile-grid-head.css.js +0 -19
  410. package/dist/src/nile-grid-head/nile-grid-head.css.js.map +0 -1
  411. package/dist/src/nile-grid-head/nile-grid-head.d.ts +0 -28
  412. package/dist/src/nile-grid-head/nile-grid-head.js +0 -41
  413. package/dist/src/nile-grid-head/nile-grid-head.js.map +0 -1
  414. package/dist/src/nile-grid-head-item/index.d.ts +0 -1
  415. package/dist/src/nile-grid-head-item/index.js +0 -2
  416. package/dist/src/nile-grid-head-item/index.js.map +0 -1
  417. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.d.ts +0 -12
  418. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js +0 -46
  419. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js.map +0 -1
  420. package/dist/src/nile-grid-head-item/nile-grid-head-item.d.ts +0 -37
  421. package/dist/src/nile-grid-head-item/nile-grid-head-item.js +0 -100
  422. package/dist/src/nile-grid-head-item/nile-grid-head-item.js.map +0 -1
  423. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.d.ts +0 -10
  424. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js +0 -34
  425. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js.map +0 -1
  426. package/dist/src/nile-grid-row/index.d.ts +0 -1
  427. package/dist/src/nile-grid-row/index.js +0 -2
  428. package/dist/src/nile-grid-row/index.js.map +0 -1
  429. package/dist/src/nile-grid-row/nile-grid-row.css.d.ts +0 -12
  430. package/dist/src/nile-grid-row/nile-grid-row.css.js +0 -27
  431. package/dist/src/nile-grid-row/nile-grid-row.css.js.map +0 -1
  432. package/dist/src/nile-grid-row/nile-grid-row.d.ts +0 -29
  433. package/dist/src/nile-grid-row/nile-grid-row.js +0 -45
  434. package/dist/src/nile-grid-row/nile-grid-row.js.map +0 -1
  435. package/dist/src/nile-inlinesidebar/index.d.ts +0 -1
  436. package/dist/src/nile-inlinesidebar/index.js +0 -2
  437. package/dist/src/nile-inlinesidebar/index.js.map +0 -1
  438. package/dist/src/nile-inlinesidebar/nile-inlinesidebar.css.d.ts +0 -1
  439. package/dist/src/nile-inlinesidebar/nile-inlinesidebar.css.js +0 -64
  440. package/dist/src/nile-inlinesidebar/nile-inlinesidebar.css.js.map +0 -1
  441. package/dist/src/nile-inlinesidebar/nile-inlinesidebar.d.ts +0 -28
  442. package/dist/src/nile-inlinesidebar/nile-inlinesidebar.js +0 -97
  443. package/dist/src/nile-inlinesidebar/nile-inlinesidebar.js.map +0 -1
  444. package/dist/src/nile-inlinesidebar-group/index.d.ts +0 -1
  445. package/dist/src/nile-inlinesidebar-group/index.js +0 -2
  446. package/dist/src/nile-inlinesidebar-group/index.js.map +0 -1
  447. package/dist/src/nile-inlinesidebar-group/nile-inlinesidebar-group.css.d.ts +0 -3
  448. package/dist/src/nile-inlinesidebar-group/nile-inlinesidebar-group.css.js +0 -36
  449. package/dist/src/nile-inlinesidebar-group/nile-inlinesidebar-group.css.js.map +0 -1
  450. package/dist/src/nile-inlinesidebar-group/nile-inlinesidebar-group.d.ts +0 -34
  451. package/dist/src/nile-inlinesidebar-group/nile-inlinesidebar-group.js +0 -67
  452. package/dist/src/nile-inlinesidebar-group/nile-inlinesidebar-group.js.map +0 -1
  453. package/dist/src/nile-inlinesidebar-item/index.d.ts +0 -1
  454. package/dist/src/nile-inlinesidebar-item/index.js +0 -2
  455. package/dist/src/nile-inlinesidebar-item/index.js.map +0 -1
  456. package/dist/src/nile-inlinesidebar-item/nile-inlinesidebar-item.css.d.ts +0 -4
  457. package/dist/src/nile-inlinesidebar-item/nile-inlinesidebar-item.css.js +0 -42
  458. package/dist/src/nile-inlinesidebar-item/nile-inlinesidebar-item.css.js.map +0 -1
  459. package/dist/src/nile-inlinesidebar-item/nile-inlinesidebar-item.d.ts +0 -37
  460. package/dist/src/nile-inlinesidebar-item/nile-inlinesidebar-item.js +0 -68
  461. package/dist/src/nile-inlinesidebar-item/nile-inlinesidebar-item.js.map +0 -1
  462. package/dist/src/nile-nile-side-bar-expand/index.d.ts +0 -1
  463. package/dist/src/nile-nile-side-bar-expand/index.js +0 -2
  464. package/dist/src/nile-nile-side-bar-expand/index.js.map +0 -1
  465. package/dist/src/nile-nile-side-bar-expand/nile-nile-side-bar-expand.css.d.ts +0 -12
  466. package/dist/src/nile-nile-side-bar-expand/nile-nile-side-bar-expand.css.js +0 -17
  467. package/dist/src/nile-nile-side-bar-expand/nile-nile-side-bar-expand.css.js.map +0 -1
  468. package/dist/src/nile-nile-side-bar-expand/nile-nile-side-bar-expand.d.ts +0 -32
  469. package/dist/src/nile-nile-side-bar-expand/nile-nile-side-bar-expand.js +0 -43
  470. package/dist/src/nile-nile-side-bar-expand/nile-nile-side-bar-expand.js.map +0 -1
  471. package/dist/src/nile-rich-text-editor/utils.d.ts +0 -13
  472. package/dist/src/nile-rich-text-editor/utils.js +0 -538
  473. package/dist/src/nile-rich-text-editor/utils.js.map +0 -1
  474. package/dist/src/nile-side-bar-content/index.d.ts +0 -1
  475. package/dist/src/nile-side-bar-content/index.js +0 -2
  476. package/dist/src/nile-side-bar-content/index.js.map +0 -1
  477. package/dist/src/nile-side-bar-content/nile-side-bar-content.css.d.ts +0 -12
  478. package/dist/src/nile-side-bar-content/nile-side-bar-content.css.js +0 -17
  479. package/dist/src/nile-side-bar-content/nile-side-bar-content.css.js.map +0 -1
  480. package/dist/src/nile-side-bar-content/nile-side-bar-content.d.ts +0 -32
  481. package/dist/src/nile-side-bar-content/nile-side-bar-content.js +0 -43
  482. package/dist/src/nile-side-bar-content/nile-side-bar-content.js.map +0 -1
  483. package/dist/src/nile-side-bar-footer-icon/index.d.ts +0 -1
  484. package/dist/src/nile-side-bar-footer-icon/index.js +0 -2
  485. package/dist/src/nile-side-bar-footer-icon/index.js.map +0 -1
  486. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.d.ts +0 -12
  487. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.js +0 -17
  488. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.js.map +0 -1
  489. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.d.ts +0 -32
  490. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.js +0 -43
  491. package/dist/src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.js.map +0 -1
  492. package/dist/src/nile-side-bar-group-item-content/index.d.ts +0 -1
  493. package/dist/src/nile-side-bar-group-item-content/index.js +0 -2
  494. package/dist/src/nile-side-bar-group-item-content/index.js.map +0 -1
  495. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.d.ts +0 -12
  496. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.js +0 -17
  497. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.js.map +0 -1
  498. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.d.ts +0 -32
  499. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.js +0 -43
  500. package/dist/src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.js.map +0 -1
  501. package/dist/src/nile-sidebar/index.d.ts +0 -28
  502. package/dist/src/nile-sidebar/index.js +0 -116
  503. package/dist/src/nile-sidebar/index.js.map +0 -1
  504. package/dist/src/nile-sidebar/nile-sidebar.css.d.ts +0 -12
  505. package/dist/src/nile-sidebar/nile-sidebar.css.js +0 -17
  506. package/dist/src/nile-sidebar/nile-sidebar.css.js.map +0 -1
  507. package/dist/src/nile-sidebar/nile-sidebar.d.ts +0 -32
  508. package/dist/src/nile-sidebar/nile-sidebar.js +0 -43
  509. package/dist/src/nile-sidebar/nile-sidebar.js.map +0 -1
  510. package/dist/src/nile-sidebar-menu/index.d.ts +0 -1
  511. package/dist/src/nile-sidebar-menu/index.js +0 -2
  512. package/dist/src/nile-sidebar-menu/index.js.map +0 -1
  513. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.d.ts +0 -12
  514. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js +0 -47
  515. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js.map +0 -1
  516. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.d.ts +0 -37
  517. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js +0 -84
  518. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js.map +0 -1
  519. package/dist/src/nile-sidebar-menu-items/index.d.ts +0 -1
  520. package/dist/src/nile-sidebar-menu-items/index.js +0 -2
  521. package/dist/src/nile-sidebar-menu-items/index.js.map +0 -1
  522. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.d.ts +0 -12
  523. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js +0 -45
  524. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js.map +0 -1
  525. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.d.ts +0 -35
  526. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js +0 -78
  527. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js.map +0 -1
  528. package/dist/src/nile-sidebar-wrapper/index.d.ts +0 -1
  529. package/dist/src/nile-sidebar-wrapper/index.js +0 -2
  530. package/dist/src/nile-sidebar-wrapper/index.js.map +0 -1
  531. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.d.ts +0 -12
  532. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js +0 -114
  533. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js.map +0 -1
  534. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.d.ts +0 -35
  535. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js +0 -89
  536. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js.map +0 -1
  537. package/dist/virtualize-73f68d08.esm.js +0 -22
  538. package/dist/virtualize-eb33a9a0.cjs.js +0 -18
  539. package/dist/virtualize-eb33a9a0.cjs.js.map +0 -1
  540. /package/dist/{nile-grid-body → nile-floating-panel}/index.cjs.js.map +0 -0
@@ -1,12 +0,0 @@
1
- import{__decorate as s}from"tslib";import{html as t}from"lit";import{property as e,customElement as i}from"lit/decorators.js";import{s as l}from"./nile-inlinesidebar-group.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";let o=class extends r{constructor(){super(...arguments),this.label="",this.divider=!1}static get styles(){return[l]}render(){return t`
2
- <div class="group">
3
- ${this.label||this.hasLabelSlot()?t`
4
- <div class="group-label">
5
- <slot name="label">${this.label}</slot>
6
- </div>
7
- `:null}
8
- <div class="group-items">
9
- <slot></slot>
10
- </div>
11
- </div>
12
- `}hasLabelSlot(){const s=this.shadowRoot?.querySelector('slot[name="label"]');return!!s}};s([e({type:String})],o.prototype,"label",void 0),s([e({type:Boolean,reflect:!0})],o.prototype,"divider",void 0),o=s([i("nile-inlinesidebar-group")],o);export{o as N};
@@ -1,2 +0,0 @@
1
- System.register(["./nile-inlinesidebar-item.cjs.js","tslib","lit","lit/decorators.js","./nile-inlinesidebar-item.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileInlinesidebarItemCjsJs){_export("NileInlinesidebarItem",_nileInlinesidebarItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileInlinesidebarItemCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export{N as NileInlinesidebarItem}from"./nile-inlinesidebar-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-inlinesidebar-item.css.esm.js";import"../internal/nile-element.esm.js";
@@ -1,2 +0,0 @@
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-inlinesidebar-item.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var e,i,t,s,r,l,_templateObject,o;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _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){i=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileInlinesidebarItemCssCjsJs){r=_nileInlinesidebarItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",o=/*#__PURE__*/function(_l){function o(){var _this;_classCallCheck(this,o);_this=_callSuper(this,o,arguments),_this.active=!1,_this.disabled=!1;return _this;}_inherits(o,_l);return _createClass(o,[{key:"handleClick",value:function handleClick(e){if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.dispatchEvent(new CustomEvent("nile-inlinesidebar-item-select",{detail:{item:this},bubbles:!0,composed:!0}));}},{key:"render",value:function render(){return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"item\" @click=",">\n <slot></slot>\n </div>\n "])),this.handleClick);}}],[{key:"styles",get:function get(){return[r];}}]);}(l));e([t({type:Boolean,reflect:!0})],o.prototype,"active",void 0),e([t({type:Boolean,reflect:!0})],o.prototype,"disabled",void 0),_export("N",o=e([s("nile-inlinesidebar-item")],o));}};});
2
- //# sourceMappingURL=nile-inlinesidebar-item.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-inlinesidebar-item.cjs.js","sources":["../../../src/nile-inlinesidebar-item/nile-inlinesidebar-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 { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-inlinesidebar-item.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile inline sidebar item.\n *\n * @tag nile-inlinesidebar-item\n *\n * @attr active - Marks the item as active (selected).\n * @attr disabled - Marks the item as disabled (non-interactive).\n *\n * @slot - Default slot for the item text or content.\n */\n@customElement('nile-inlinesidebar-item')\nexport class NileInlinesidebarItem extends NileElement {\n /**\n * Whether the item is active (selected).\n */\n @property({ type: Boolean, reflect: true }) active = false;\n\n /**\n * Whether the item is disabled.\n */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n private handleClick(e: Event) {\n if (this.disabled) {\n e.preventDefault();\n e.stopPropagation();\n return;\n }\n\n this.dispatchEvent(new CustomEvent('nile-inlinesidebar-item-select', {\n detail: { item: this },\n bubbles: true,\n composed: true,\n }));\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"item\" @click=${this.handleClick}>\n <slot></slot>\n </div>\n `;\n }\n}\n\nexport default NileInlinesidebarItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-inlinesidebar-item': NileInlinesidebarItem;\n }\n}\n"],"names":["NileInlinesidebarItem","o","constructor","this","active","disabled","_this","_inherits","_l","_createClass","key","value","handleClick","e","preventDefault","stopPropagation","dispatchEvent","CustomEvent","detail","item","bubbles","composed","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","property","type","Boolean","reflect","prototype","_export","customElement"],"mappings":"6pGAuBaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAIuCC,KAAAA,CAAMC,MAAAA,CAAAA,CAAG,CAKTD,CAAAA,KAAAA,CAAQE,QAAG,CAAA,CAAA,CA2BxD,QAAAC,KAAA,EAzBQC,SAAA,CAAAN,CAAA,CAAAO,EAAA,SAAAC,YAAA,CAAAR,CAAA,GAAAS,GAAA,eAAAC,KAAA,CAIC,SAAAC,WAAAA,CAAYC,CAAAA,CAAAA,CAClB,GAAIV,IAAAA,CAAKE,QAGP,CAAA,MAFAQ,CAAAA,CAAEC,CAAAA,cAAAA,CAAAA,CAAAA,CAAAA,IACFD,CAAAA,CAAEE,CAAAA,eAAAA,CAAAA,CAAAA,CAIJZ,IAAKa,CAAAA,aAAAA,CAAc,GAAIC,CAAAA,WAAAA,CAAY,gCAAkC,CAAA,CACnEC,MAAQ,CAAA,CAAEC,IAAMhB,CAAAA,IAAAA,CAAAA,CAChBiB,OAAS,CAAA,CAAA,CAAA,CACTC,QAAU,CAAA,CAAA,CAAA,CAAA,CAAA,CAEb,EAEM,GAAAX,GAAA,UAAAC,KAAA,UAAAW,MAAAA,CAAAA,CACL,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,0FACkBtB,IAAKS,CAAAA,WAAAA,EAInC,CAAA,KAAAF,GAAA,UAAAgB,GAAA,CAxBM,SAAAA,IAAA,CACL,CAAA,MAAO,CAACC,CAAAA,CACT,EAEO,MAfiCC,CAAAA,GAIGC,CAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,OAAAA,CAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuBjC,CAAAkC,CAAAA,SAAAA,CAAA,QAAA,CAAA,IAAA,EAAA,CAAA,CAKfL,CAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,OAAAA,CAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyBjC,CAAAkC,CAAAA,SAAAA,CAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAAAC,OAAA,KATlDnC,CAAqB6B,CAAAA,CAAAA,CAAA,CADjCO,CAAAA,CAAc,4BACFpC"}
@@ -1,2 +0,0 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,e;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",e=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n:host {\n display: block;\n font-family: var(--nile-font-family, sans-serif);\n font-size: var(--nile-font-size, 14px);\n color: var(--nile-color-text, #111827);\n cursor: pointer;\n user-select: none;\n}\n\n.item {\n padding: 12px 8px;\n border-radius: 4px;\n transition: background 0.2s, color 0.2s;\n}\n\n/* Hover state */\n:host(:not([disabled])) .item:hover {\n background: var(--nile-color-hover, #f3f4f6);\n}\n\n/* Active state */\n:host([active]) .item {\n background: var(--nile-color-active-bg, #e5f0ff);\n font-weight: 500;\n}\n\n/* Disabled state */\n:host([disabled]) {\n color: var(--nile-color-disabled-text, #9ca3af);\n cursor: not-allowed;\n}\n\n:host([disabled]) .item {\n pointer-events: none;\n}\n"]))));}};});
2
- //# sourceMappingURL=nile-inlinesidebar-item.css.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-inlinesidebar-item.css.cjs.js","sources":["../../../src/nile-inlinesidebar-item/nile-inlinesidebar-item.css.ts"],"sourcesContent":["import { css } from 'lit';\n\n/**\n * InlinesidebarItem CSS\n */\nexport const styles = css`\n:host {\n display: block;\n font-family: var(--nile-font-family, sans-serif);\n font-size: var(--nile-font-size, 14px);\n color: var(--nile-color-text, #111827);\n cursor: pointer;\n user-select: none;\n}\n\n.item {\n padding: 12px 8px;\n border-radius: 4px;\n transition: background 0.2s, color 0.2s;\n}\n\n/* Hover state */\n:host(:not([disabled])) .item:hover {\n background: var(--nile-color-hover, #f3f4f6);\n}\n\n/* Active state */\n:host([active]) .item {\n background: var(--nile-color-active-bg, #e5f0ff);\n font-weight: 500;\n}\n\n/* Disabled state */\n:host([disabled]) {\n color: var(--nile-color-disabled-text, #9ca3af);\n cursor: not-allowed;\n}\n\n:host([disabled]) .item {\n pointer-events: none;\n}\n`;\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAKaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,37 +0,0 @@
1
- import{css as o}from"lit";const e=o`
2
- :host {
3
- display: block;
4
- font-family: var(--nile-font-family, sans-serif);
5
- font-size: var(--nile-font-size, 14px);
6
- color: var(--nile-color-text, #111827);
7
- cursor: pointer;
8
- user-select: none;
9
- }
10
-
11
- .item {
12
- padding: 12px 8px;
13
- border-radius: 4px;
14
- transition: background 0.2s, color 0.2s;
15
- }
16
-
17
- /* Hover state */
18
- :host(:not([disabled])) .item:hover {
19
- background: var(--nile-color-hover, #f3f4f6);
20
- }
21
-
22
- /* Active state */
23
- :host([active]) .item {
24
- background: var(--nile-color-active-bg, #e5f0ff);
25
- font-weight: 500;
26
- }
27
-
28
- /* Disabled state */
29
- :host([disabled]) {
30
- color: var(--nile-color-disabled-text, #9ca3af);
31
- cursor: not-allowed;
32
- }
33
-
34
- :host([disabled]) .item {
35
- pointer-events: none;
36
- }
37
- `;export{e as s};
@@ -1,5 +0,0 @@
1
- import{__decorate as e}from"tslib";import{html as i}from"lit";import{property as t,customElement as s}from"lit/decorators.js";import{s as r}from"./nile-inlinesidebar-item.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";let o=class extends l{constructor(){super(...arguments),this.active=!1,this.disabled=!1}static get styles(){return[r]}handleClick(e){if(this.disabled)return e.preventDefault(),void e.stopPropagation();this.dispatchEvent(new CustomEvent("nile-inlinesidebar-item-select",{detail:{item:this},bubbles:!0,composed:!0}))}render(){return i`
2
- <div class="item" @click=${this.handleClick}>
3
- <slot></slot>
4
- </div>
5
- `}};e([t({type:Boolean,reflect:!0})],o.prototype,"active",void 0),e([t({type:Boolean,reflect:!0})],o.prototype,"disabled",void 0),o=e([s("nile-inlinesidebar-item")],o);export{o as N};
@@ -1,2 +0,0 @@
1
- System.register([],function(_export,_context){"use strict";function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function n(n,t){for(;n&&n!==t;){var _n;if(n instanceof HTMLElement){var _t=getComputedStyle(n).display;if(n.tagName.match(/^(P|DIV|H1|H2|H3|H4|H5|H6|LI)$/)||"block"===_t||"list-item"===_t)return n;}n=((_n=n)===null||_n===void 0?void 0:_n.parentNode)||null;}return t;}function t(n){for(;n&&!(n instanceof HTMLElement);)n=n.parentNode;return n;}function o(n){var t=n.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/i);if(!t)return"#000000";return"#".concat(Number(t[1]).toString(16).padStart(2,"0")).concat(Number(t[2]).toString(16).padStart(2,"0")).concat(Number(t[3]).toString(16).padStart(2,"0"));}function e(n){var t=n.parentNode;if(t){for(;n.firstChild;)t.insertBefore(n.firstChild,n);t.removeChild(n);}}function r(n,t,o){var e=document.createElement(t);o&&Object.entries(o).forEach(function(_ref){var _ref2=_slicedToArray(_ref,2),n=_ref2[0],t=_ref2[1];return e.setAttribute(n,t);});try{n.surroundContents(e);}catch(_unused){var _t2=n.extractContents();e.appendChild(_t2),n.insertNode(e);}}function c(n,t,o){var r=n.parentNode;for(;r&&r!==t;)r instanceof HTMLElement&&o(r)?(e(r),r=n.parentNode):r=r.parentNode;}function u(t,o,e){var _strong$em$u$span$o;var u=document.getSelection();if(!u||0===u.rangeCount)return;var i=u.getRangeAt(0),f=(_strong$em$u$span$o={strong:["strong","b"],em:["em","i"],u:["u"],span:["span"]}[o])!==null&&_strong$em$u$span$o!==void 0?_strong$em$u$span$o:[o];function s(n){return f.includes(n.tagName.toLowerCase());}if(i.collapsed){var _n2=i.startContainer;for(;_n2&&_n2!==t;){if(_n2 instanceof HTMLElement&&s(_n2))return void c(i.startContainer,t,s);_n2=_n2.parentNode;}var _r=document.createElement(o);e&&Object.entries(e).forEach(function(_ref3){var _ref4=_slicedToArray(_ref3,2),n=_ref4[0],t=_ref4[1];return _r.setAttribute(n,t);}),_r.appendChild(document.createTextNode("​")),i.insertNode(_r);var _f=document.createRange();return _f.setStart(_r.firstChild,1),_f.collapse(!0),u.removeAllRanges(),void u.addRange(_f);}var d=n(i.startContainer,t),l=n(i.endContainer,t);if(d&&l&&d!==l){var _n3=[];var _t3=d;for(;_t3&&(_t3 instanceof HTMLElement&&_n3.push(_t3),_t3!==l);)_t3=_t3.nextSibling;return void _n3.forEach(function(n,t){var u=document.createRange();u.selectNodeContents(n);var i=[],f=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null);var d;for(;d=f.nextNode();){var _d$nodeValue;((_d$nodeValue=d.nodeValue)===null||_d$nodeValue===void 0?void 0:_d$nodeValue.trim())&&i.push(d);}i.length>0&&i.every(function(t){var o=t;for(;o&&o!==n;){if(o instanceof HTMLElement&&s(o))return!0;o=o.parentNode;}return!1;})?i.forEach(function(t){return c(t,n,s);}):r(u,o,e);});}var m=document.createTreeWalker(i.commonAncestorContainer,NodeFilter.SHOW_TEXT,{acceptNode:function acceptNode(n){if(!n.nodeValue||!n.nodeValue.trim())return NodeFilter.FILTER_REJECT;var t=document.createRange();t.selectNodeContents(n);return i.compareBoundaryPoints(Range.END_TO_START,t)<=0&&i.compareBoundaryPoints(Range.START_TO_END,t)>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;}}),a=[];var H;for(;H=m.nextNode();)a.push(H);if(0===a.length){var _n4=i.startContainer;for(;_n4&&_n4!==t;){if(_n4 instanceof HTMLElement&&s(_n4))return void c(i.startContainer,t,s);_n4=_n4.parentNode;}}a.length>0&&a.every(function(n){var o=n;for(;o&&o!==t;){if(o instanceof HTMLElement&&s(o))return!0;o=o.parentNode;}return!1;})?a.forEach(function(n){return c(n,t,s);}):r(i,o,e);var N=document.createRange();N.setStart(i.startContainer,i.startOffset),N.setEnd(i.endContainer,i.endOffset),u.removeAllRanges(),u.addRange(N);}function i(t,o){var e=document.getSelection();if(!e||0===e.rangeCount)return;var r=n(e.getRangeAt(0).startContainer,t);if(!r)return;if(r.tagName.toLowerCase()===o)return;var c=document.createElement(o);for(;r.firstChild;)c.appendChild(r.firstChild);r.replaceWith(c);var u=document.createRange();u.selectNodeContents(c),u.collapse(!0),e.removeAllRanges(),e.addRange(u);}function f(t,o){var e=document.getSelection();if(!e||0===e.rangeCount)return;var r=n(e.getRangeAt(0).startContainer,t);if(r)if("li"===r.tagName.toLowerCase()){r.style.textAlign=o;var _n5=r.closest("ul,ol");_n5&&(_n5.style.textAlign=o);}else r.style.textAlign="justify"===o?"justify":o;}function s(n,t){var o=document.getSelection();if(!o||0===o.rangeCount)return;var e=o.getRangeAt(0);if(e.collapsed){var _n6=document.createElement("span");_n6.style.fontFamily=t,_n6.appendChild(document.createTextNode("​")),e.insertNode(_n6);var _r2=document.createRange();return _r2.setStart(_n6.firstChild,1),_r2.collapse(!0),o.removeAllRanges(),void o.addRange(_r2);}r(e,"span",{style:"font-family:".concat(t)});}function d(n,t,o){for(;t&&t!==n;){if(t instanceof HTMLSpanElement&&t.hasAttribute(o))return t;t=t.parentNode;}return null;}function l(n,t,o,e){var r=window.getSelection();if(!r||0===r.rangeCount)return;var c=r.getRangeAt(0);if(!n.contains(c.commonAncestorContainer))return;var u=c.cloneRange();if(u.collapsed){var _c=d(n,u.startContainer,e);if(_c)return _c.style[t]=o,void a(n,e,t);var _i=document.createElement("span");_i.setAttribute(e,"1"),_i.style[t]=o,_i.appendChild(document.createTextNode("​")),u.insertNode(_i);var _f2=document.createRange();return _f2.setStart(_i.firstChild,1),_f2.collapse(!0),r.removeAllRanges(),r.addRange(_f2),void a(n,e,t);}var i=d(n,u.startContainer,e),f=d(n,u.endContainer,e);if(i&&i===f){if(function(n,t){var o=document.createRange();return o.selectNodeContents(t),n.compareBoundaryPoints(Range.START_TO_START,o)<=0&&n.compareBoundaryPoints(Range.END_TO_END,o)>=0;}(u,i))i.style[t]=o;else{var _n7=function(n,t,o,e,r){var c=n.style[e],u=document.createRange();u.setStart(n,0),u.setEnd(t.startContainer,t.startOffset);var i=document.createRange();i.setStart(t.endContainer,t.endOffset),i.setEnd(n,n.childNodes.length);var f=document.createDocumentFragment(),s=function s(n){var t=document.createElement("span");return t.setAttribute(o,"1"),t.style[e]=n,t;};if(m(u)){var _n8=s(c);_n8.appendChild(u.cloneContents()),f.appendChild(_n8);}var d=s(r);if(d.appendChild(t.cloneContents()),f.appendChild(d),m(i)){var _n9=s(c);_n9.appendChild(i.cloneContents()),f.appendChild(_n9);}return n.replaceWith(f),d;}(i,u,e,t,o),_r3=window.getSelection(),_c2=document.createRange();_c2.selectNodeContents(_n7),_r3!==null&&_r3!==void 0&&_r3.removeAllRanges(),_r3===null||_r3===void 0?void 0:_r3.addRange(_c2);}return void a(n,e,t);}var s=function(){var n=u.commonAncestorContainer;for(;n&&!(n instanceof HTMLElement);)n=n.parentNode;return n;}(),l=document.createTreeWalker(s||n,NodeFilter.SHOW_TEXT,{acceptNode:function acceptNode(n){if(!n.nodeValue||!n.nodeValue.trim())return NodeFilter.FILTER_REJECT;var t=document.createRange();t.selectNodeContents(n);return u.compareBoundaryPoints(Range.END_TO_START,t)<0&&u.compareBoundaryPoints(Range.START_TO_END,t)>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;}}),H=[];var N;for(;N=l.nextNode();)H.push(N);H.forEach(function(r){var c=0,i=r.length;r===u.startContainer&&(c=u.startOffset),r===u.endContainer&&(i=u.endOffset),c>0&&(r=r.splitText(c)),i<r.length&&r.splitText(i);var f=d(n,r,e);if(f)return void(f.style[t]=o);var s=document.createElement("span");s.setAttribute(e,"1"),s.style[t]=o;r.parentElement.replaceChild(s,r),s.appendChild(r);}),a(n,e,t),r.removeAllRanges(),r.addRange(u);}function m(n){if(n.collapsed)return!1;return(n.cloneContents().textContent||"").length>0;}function a(n,t,o){var e=Array.from(n.querySelectorAll("span[".concat(t,"]"))),r=function r(n){return n.style[o];};e.forEach(function(n){Array.from(n.querySelectorAll("span[".concat(t,"]"))).forEach(function(t){if(r(t)===r(n)){for(;t.firstChild;)n.insertBefore(t.firstChild,t);t.remove();}});var o=n.previousSibling;if(o instanceof HTMLSpanElement&&o.hasAttribute(t)&&r(o)===r(n)){for(;n.firstChild;)o.appendChild(n.firstChild);return void n.remove();}var e=n.nextSibling;if(e instanceof HTMLSpanElement&&e.hasAttribute(t)&&r(e)===r(n)){for(;e.firstChild;)n.appendChild(e.firstChild);e.remove();}});}function H(n,t){l(n,"color",t,"data-rte-color");}function N(n,t){l(n,"backgroundColor",t,"data-rte-bg");}function p(t,o){var e=document.getSelection();if(!e||0===e.rangeCount)return;var r=e.getRangeAt(0),c=[],u=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:function acceptNode(n){if(!(n instanceof HTMLElement))return NodeFilter.FILTER_SKIP;if(!/^(P|DIV|LI|H[1-6])$/.test(n.tagName))return NodeFilter.FILTER_SKIP;var t=document.createRange();t.selectNodeContents(n);return r.compareBoundaryPoints(Range.END_TO_START,t)<0&&r.compareBoundaryPoints(Range.START_TO_END,t)>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT;}});var i;for(;i=u.nextNode();)c.push(i);if(0===c.length){var _o=n(r.startContainer,t);_o&&c.push(_o);}var f=c[0].closest("li");if(f){var _n10=f.closest("ul,ol");if(!_n10)return;if(_n10.tagName.toLowerCase()===o){var _t4=document.createDocumentFragment();for(var _i2=0,_Array$from=Array.from(_n10.querySelectorAll("li"));_i2<_Array$from.length;_i2++){var _o2=_Array$from[_i2];var _n11=document.createElement("p");for(;_o2.firstChild;)_n11.appendChild(_o2.firstChild);_t4.appendChild(_n11);}_n10.replaceWith(_t4);}else{var _t5=document.createElement(o);for(;_n10.firstChild;)_t5.appendChild(_n10.firstChild);_n10.replaceWith(_t5);}return;}var s=document.createElement(o);for(var _i3=0,_c3=c;_i3<_c3.length;_i3++){var _n12=_c3[_i3];var _t6=document.createElement("li");for(;_n12.firstChild;)_t6.appendChild(_n12.firstChild);s.appendChild(_t6),_n12.replaceWith(s);}}_export({a:i,b:s,c:N,d:H,e:p,f:n,n:t,r:o,s:f,t:u});return{setters:[],execute:function execute(){}};});
2
- //# sourceMappingURL=utils.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"utils.cjs.js","sources":["../../../src/nile-rich-text-editor/utils.ts"],"sourcesContent":["export function closestBlock(\n node: Node | null,\n root: HTMLElement\n): HTMLElement | null {\n while (node && node !== root) {\n if (node instanceof HTMLElement) {\n const display = getComputedStyle(node).display;\n if (\n node.tagName.match(/^(P|DIV|H1|H2|H3|H4|H5|H6|LI)$/) ||\n display === 'block' ||\n display === 'list-item'\n ) {\n return node;\n }\n }\n node = node?.parentNode || null;\n }\n return root;\n}\n\nexport function nearestElement(n: Node | null): HTMLElement | null {\n while (n && !(n instanceof HTMLElement)) n = n.parentNode as Node | null;\n return n as HTMLElement | null;\n}\n\nexport function rgbToHex(rgb: string): string {\n const m = rgb.match(/rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)/i);\n if (!m) return '#000000';\n const r = Number(m[1]).toString(16).padStart(2, '0');\n const g = Number(m[2]).toString(16).padStart(2, '0');\n const b = Number(m[3]).toString(16).padStart(2, '0');\n return `#${r}${g}${b}`;\n}\n\nexport function unwrap(node: HTMLElement) {\n const p = node.parentNode;\n if (!p) return;\n while (node.firstChild) p.insertBefore(node.firstChild, node);\n p.removeChild(node);\n}\n\nexport function surroundInline(\n range: Range,\n tag: string,\n attrs?: Record<string, string>\n) {\n const wrap = document.createElement(tag);\n if (attrs) Object.entries(attrs).forEach(([k, v]) => wrap.setAttribute(k, v));\n try {\n range.surroundContents(wrap);\n } catch {\n const frag = range.extractContents();\n wrap.appendChild(frag);\n range.insertNode(wrap);\n }\n}\n\nfunction unwrapAllMatching(\n node: Node,\n root: HTMLElement,\n matcher: (el: HTMLElement) => boolean\n) {\n let n: Node | null = node.parentNode;\n while (n && n !== root) {\n if (n instanceof HTMLElement && matcher(n)) {\n unwrap(n);\n\n n = node.parentNode;\n continue;\n }\n n = n.parentNode;\n }\n}\n\nexport function toggleInlineTag(\n root: HTMLElement,\n tag: 'strong' | 'em' | 'u' | 'span',\n attrs?: Record<string, string>\n) {\n const sel = document.getSelection();\n if (!sel || sel.rangeCount === 0) {\n return;\n }\n const range = sel.getRangeAt(0);\n\n const aliases: Record<string, string[]> = {\n strong: ['strong', 'b'],\n em: ['em', 'i'],\n u: ['u'],\n span: ['span'],\n };\n const candidates = aliases[tag] ?? [tag];\n\n function isMatchingInline(el: HTMLElement): boolean {\n return candidates.includes(el.tagName.toLowerCase());\n }\n\n if (range.collapsed) {\n let n: Node | null = range.startContainer;\n while (n && n !== root) {\n if (n instanceof HTMLElement && isMatchingInline(n)) {\n unwrapAllMatching(range.startContainer, root, isMatchingInline);\n return;\n }\n n = n.parentNode;\n }\n\n const elm = document.createElement(tag);\n if (attrs)\n Object.entries(attrs).forEach(([k, v]) => elm.setAttribute(k, v));\n elm.appendChild(document.createTextNode('\\u200b'));\n range.insertNode(elm);\n\n const r = document.createRange();\n r.setStart(elm.firstChild!, 1);\n r.collapse(true);\n sel.removeAllRanges();\n sel.addRange(r);\n\n return;\n }\n\n const startBlock = closestBlock(range.startContainer, root);\n const endBlock = closestBlock(range.endContainer, root);\n if (startBlock && endBlock && startBlock !== endBlock) {\n const blocks: HTMLElement[] = [];\n let node: Node | null = startBlock;\n while (node) {\n if (node instanceof HTMLElement) blocks.push(node);\n if (node === endBlock) break;\n node = node.nextSibling;\n }\n\n blocks.forEach((block, i) => {\n const r = document.createRange();\n r.selectNodeContents(block);\n\n const textNodes: Text[] = [];\n const tw = document.createTreeWalker(block, NodeFilter.SHOW_TEXT, null);\n let tn: Node | null;\n while ((tn = tw.nextNode())) {\n if (tn.nodeValue?.trim()) textNodes.push(tn as Text);\n }\n\n const allWrapped =\n textNodes.length > 0 &&\n textNodes.every(txt => {\n let n: Node | null = txt;\n while (n && n !== block) {\n if (n instanceof HTMLElement && isMatchingInline(n)) return true;\n n = n.parentNode;\n }\n return false;\n });\n\n if (allWrapped) {\n textNodes.forEach(txt =>\n unwrapAllMatching(txt, block, isMatchingInline)\n );\n } else {\n surroundInline(r, tag, attrs);\n }\n });\n return;\n }\n const walker = document.createTreeWalker(\n range.commonAncestorContainer,\n NodeFilter.SHOW_TEXT,\n {\n acceptNode: n => {\n if (!n.nodeValue || !n.nodeValue.trim())\n return NodeFilter.FILTER_REJECT;\n const nodeRange = document.createRange();\n nodeRange.selectNodeContents(n);\n const intersects =\n range.compareBoundaryPoints(Range.END_TO_START, nodeRange) <= 0 &&\n range.compareBoundaryPoints(Range.START_TO_END, nodeRange) >= 0;\n return intersects ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;\n },\n }\n );\n\n const textNodes: Text[] = [];\n let t: Node | null;\n while ((t = walker.nextNode())) textNodes.push(t as Text);\n\n if (textNodes.length === 0) {\n let n: Node | null = range.startContainer;\n while (n && n !== root) {\n if (n instanceof HTMLElement && isMatchingInline(n)) {\n unwrapAllMatching(range.startContainer, root, isMatchingInline);\n return;\n }\n n = n.parentNode;\n }\n }\n\n const allWrapped =\n textNodes.length > 0 &&\n textNodes.every(txt => {\n let n: Node | null = txt;\n while (n && n !== root) {\n if (n instanceof HTMLElement && isMatchingInline(n)) {\n return true;\n }\n n = n.parentNode;\n }\n return false;\n });\n\n if (allWrapped) {\n textNodes.forEach(txt => unwrapAllMatching(txt, root, isMatchingInline));\n } else {\n surroundInline(range, tag, attrs);\n }\n\n // restore selection\n const selRange = document.createRange();\n selRange.setStart(range.startContainer, range.startOffset);\n selRange.setEnd(range.endContainer, range.endOffset);\n sel.removeAllRanges();\n sel.addRange(selRange);\n}\n\nexport function setBlockTag(root: HTMLElement, tag: 'p' | 'h1' | 'h2' | 'h3') {\n const sel = document.getSelection();\n if (!sel || sel.rangeCount === 0) return;\n const range = sel.getRangeAt(0);\n const block = closestBlock(range.startContainer, root);\n if (!block) return;\n if (block.tagName.toLowerCase() === tag) return;\n const nb = document.createElement(tag);\n while (block.firstChild) nb.appendChild(block.firstChild);\n block.replaceWith(nb);\n const r = document.createRange();\n r.selectNodeContents(nb);\n r.collapse(true);\n sel.removeAllRanges();\n sel.addRange(r);\n}\n\nexport function setAlignment(\n root: HTMLElement,\n align: 'left' | 'center' | 'right' | 'justify'\n) {\n const sel = document.getSelection();\n if (!sel || sel.rangeCount === 0) return;\n const range = sel.getRangeAt(0);\n\n let block = closestBlock(range.startContainer, root);\n if (!block) return;\n\n if (block.tagName.toLowerCase() === 'li') {\n block.style.textAlign = align;\n const list = block.closest('ul,ol') as HTMLElement | null;\n if (list) list.style.textAlign = align;\n } else {\n block.style.textAlign = align === 'justify' ? 'justify' : align;\n }\n}\n\nexport function setFontFamily(root: HTMLElement, family: string) {\n const sel = document.getSelection();\n if (!sel || sel.rangeCount === 0) return;\n const range = sel.getRangeAt(0);\n if (range.collapsed) {\n const span = document.createElement('span');\n span.style.fontFamily = family;\n span.appendChild(document.createTextNode('\\u200b'));\n range.insertNode(span);\n const r = document.createRange();\n r.setStart(span.firstChild!, 1);\n r.collapse(true);\n sel.removeAllRanges();\n sel.addRange(r);\n return;\n }\n surroundInline(range, 'span', { style: `font-family:${family}` });\n}\n\nfunction enclosingStyledSpan(\n editor: HTMLElement,\n node: Node | null,\n dataAttr: 'data-rte-color' | 'data-rte-bg'\n): HTMLSpanElement | null {\n while (node && node !== editor) {\n if (node instanceof HTMLSpanElement && node.hasAttribute(dataAttr)) {\n return node;\n }\n node = node.parentNode;\n }\n return null;\n}\n\nfunction applyInlineStyle(\n editor: HTMLElement,\n cssProp: 'color' | 'backgroundColor',\n value: string,\n dataAttr: 'data-rte-color' | 'data-rte-bg'\n) {\n const sel = window.getSelection();\n if (!sel || sel.rangeCount === 0) return;\n const r0 = sel.getRangeAt(0);\n if (!editor.contains(r0.commonAncestorContainer)) return;\n\n const range = r0.cloneRange();\n\n if (range.collapsed) {\n const enclosing = enclosingStyledSpan(\n editor,\n range.startContainer,\n dataAttr\n );\n if (enclosing) {\n (enclosing.style as any)[cssProp] = value;\n mergeAdjacentStyledSpans(editor, dataAttr, cssProp);\n return;\n }\n\n const s = document.createElement('span');\n s.setAttribute(dataAttr, '1');\n (s.style as any)[cssProp] = value;\n s.appendChild(document.createTextNode('\\u200B'));\n range.insertNode(s);\n\n const caret = document.createRange();\n caret.setStart(s.firstChild!, 1);\n caret.collapse(true);\n sel.removeAllRanges();\n sel.addRange(caret);\n\n mergeAdjacentStyledSpans(editor, dataAttr, cssProp);\n return;\n }\n\n const leftEdge = enclosingStyledSpan(editor, range.startContainer, dataAttr);\n const rightEdge = enclosingStyledSpan(editor, range.endContainer, dataAttr);\n if (leftEdge && leftEdge === rightEdge) {\n if (rangeCoversWholeNode(range, leftEdge)) {\n (leftEdge.style as any)[cssProp] = value;\n } else {\n const mid = splitAndRecolorWithinSpan(\n leftEdge,\n range,\n dataAttr,\n cssProp,\n value\n );\n\n const sel = window.getSelection();\n const r = document.createRange();\n r.selectNodeContents(mid);\n sel?.removeAllRanges();\n sel?.addRange(r);\n }\n mergeAdjacentStyledSpans(editor, dataAttr, cssProp);\n return;\n }\n\n const commonEl = (() => {\n let n: Node | null = range.commonAncestorContainer;\n while (n && !(n instanceof HTMLElement)) n = n.parentNode;\n return n as HTMLElement | null;\n })();\n\n const walker = document.createTreeWalker(\n commonEl || editor,\n NodeFilter.SHOW_TEXT,\n {\n acceptNode: n => {\n if (!n.nodeValue || !n.nodeValue.trim())\n return NodeFilter.FILTER_REJECT;\n const nodeRange = document.createRange();\n nodeRange.selectNodeContents(n);\n const intersects =\n range.compareBoundaryPoints(Range.END_TO_START, nodeRange) < 0 &&\n range.compareBoundaryPoints(Range.START_TO_END, nodeRange) > 0;\n return intersects ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;\n },\n }\n );\n\n const toProcess: Text[] = [];\n let t: Node | null;\n while ((t = walker.nextNode())) toProcess.push(t as Text);\n\n toProcess.forEach(text => {\n let start = 0,\n end = text.length;\n if (text === range.startContainer) start = range.startOffset;\n if (text === range.endContainer) end = range.endOffset;\n if (start > 0) text = text.splitText(start);\n if (end < text.length) text.splitText(end);\n\n const existing = enclosingStyledSpan(editor, text, dataAttr);\n if (existing) {\n (existing.style as any)[cssProp] = value;\n return;\n }\n\n const span = document.createElement('span');\n span.setAttribute(dataAttr, '1');\n (span.style as any)[cssProp] = value;\n const parent = text.parentElement!;\n parent.replaceChild(span, text);\n span.appendChild(text);\n });\n\n mergeAdjacentStyledSpans(editor, dataAttr, cssProp);\n\n // restore selection\n sel.removeAllRanges();\n sel.addRange(range);\n}\n\n// Is the range covering the entire node's contents?\nfunction rangeCoversWholeNode(range: Range, node: Node): boolean {\n const all = document.createRange();\n all.selectNodeContents(node);\n return (\n range.compareBoundaryPoints(Range.START_TO_START, all) <= 0 &&\n range.compareBoundaryPoints(Range.END_TO_END, all) >= 0\n );\n}\n\nfunction hasRangeContent(r: Range): boolean {\n if (r.collapsed) return false;\n const text = r.cloneContents().textContent || '';\n return text.length > 0;\n}\n\n// Split one styled span into [left][middle][right]; recolor only middle\nfunction splitAndRecolorWithinSpan(\n span: HTMLSpanElement,\n range: Range,\n dataAttr: 'data-rte-color' | 'data-rte-bg',\n cssProp: 'color' | 'backgroundColor',\n newValue: string\n): HTMLSpanElement {\n const oldValue = (span.style as any)[cssProp];\n\n const left = document.createRange();\n left.setStart(span, 0);\n left.setEnd(range.startContainer, range.startOffset);\n\n const right = document.createRange();\n right.setStart(range.endContainer, range.endOffset);\n right.setEnd(span, span.childNodes.length);\n\n // Build replacement fragment\n const frag = document.createDocumentFragment();\n\n // helper to make a styled clone shell\n const makeShell = (val: string) => {\n const s = document.createElement('span');\n s.setAttribute(dataAttr, '1');\n (s.style as any)[cssProp] = val;\n return s;\n };\n\n if (hasRangeContent(left)) {\n const sLeft = makeShell(oldValue);\n sLeft.appendChild(left.cloneContents());\n frag.appendChild(sLeft);\n }\n\n const mid = makeShell(newValue);\n mid.appendChild(range.cloneContents());\n frag.appendChild(mid);\n\n if (hasRangeContent(right)) {\n const sRight = makeShell(oldValue);\n sRight.appendChild(right.cloneContents());\n frag.appendChild(sRight);\n }\n\n span.replaceWith(frag);\n return mid;\n}\n\nfunction mergeAdjacentStyledSpans(\n root: HTMLElement,\n dataAttr: 'data-rte-color' | 'data-rte-bg',\n cssProp: 'color' | 'backgroundColor'\n) {\n const spans = Array.from(\n root.querySelectorAll<HTMLSpanElement>(`span[${dataAttr}]`)\n );\n\n const valOf = (el: HTMLElement) => (el.style as any)[cssProp];\n\n spans.forEach(s => {\n const nested = Array.from(\n s.querySelectorAll<HTMLSpanElement>(`span[${dataAttr}]`)\n );\n nested.forEach(child => {\n if (valOf(child) === valOf(s)) {\n while (child.firstChild) s.insertBefore(child.firstChild, child);\n child.remove();\n }\n });\n\n const prev = s.previousSibling;\n if (\n prev instanceof HTMLSpanElement &&\n prev.hasAttribute(dataAttr) &&\n valOf(prev) === valOf(s)\n ) {\n while (s.firstChild) prev.appendChild(s.firstChild);\n s.remove();\n return;\n }\n\n const next = s.nextSibling;\n if (\n next instanceof HTMLSpanElement &&\n next.hasAttribute(dataAttr) &&\n valOf(next) === valOf(s)\n ) {\n while (next.firstChild) s.appendChild(next.firstChild);\n next.remove();\n }\n });\n}\n\nexport function setForeColor(editor: HTMLElement, hex: string) {\n applyInlineStyle(editor, 'color', hex, 'data-rte-color');\n}\nexport function setBackColor(editor: HTMLElement, hex: string) {\n applyInlineStyle(editor, 'backgroundColor', hex, 'data-rte-bg');\n}\n\nexport function toggleList(root: HTMLElement, kind: 'ul' | 'ol') {\n const sel = document.getSelection();\n if (!sel || sel.rangeCount === 0) return;\n const range = sel.getRangeAt(0);\n\n const blocks: HTMLElement[] = [];\n const walker = document.createTreeWalker(root, NodeFilter.SHOW_ELEMENT, {\n acceptNode: n => {\n if (!(n instanceof HTMLElement)) return NodeFilter.FILTER_SKIP;\n if (!/^(P|DIV|LI|H[1-6])$/.test(n.tagName)) return NodeFilter.FILTER_SKIP;\n\n const r = document.createRange();\n r.selectNodeContents(n);\n const intersects =\n range.compareBoundaryPoints(Range.END_TO_START, r) < 0 &&\n range.compareBoundaryPoints(Range.START_TO_END, r) > 0;\n return intersects ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_REJECT;\n },\n });\n\n let n: Node | null;\n while ((n = walker.nextNode())) {\n blocks.push(n as HTMLElement);\n }\n\n if (blocks.length === 0) {\n const block = closestBlock(range.startContainer, root);\n if (block) blocks.push(block);\n }\n\n const firstLi = blocks[0].closest('li');\n if (firstLi) {\n const currentList = firstLi.closest('ul,ol') as HTMLElement | null;\n if (!currentList) return;\n\n if (currentList.tagName.toLowerCase() === kind) {\n const frag = document.createDocumentFragment();\n for (const li of Array.from(currentList.querySelectorAll('li'))) {\n const p = document.createElement('p');\n while (li.firstChild) p.appendChild(li.firstChild);\n frag.appendChild(p);\n }\n currentList.replaceWith(frag);\n } else {\n const newList = document.createElement(kind);\n while (currentList.firstChild)\n newList.appendChild(currentList.firstChild);\n currentList.replaceWith(newList);\n }\n return;\n }\n\n const newList = document.createElement(kind);\n for (const block of blocks) {\n const li = document.createElement('li');\n while (block.firstChild) li.appendChild(block.firstChild);\n newList.appendChild(li);\n block.replaceWith(newList);\n }\n}\n\nexport function insertOrEditLink(root: HTMLElement, href?: string) {\n const sel = document.getSelection();\n if (!sel || sel.rangeCount === 0) return;\n const range = sel.getRangeAt(0);\n\n let n: Node | null = range.startContainer;\n let a: HTMLAnchorElement | null = null;\n while (n && n !== root) {\n if (n instanceof HTMLAnchorElement) {\n a = n;\n break;\n }\n n = n.parentNode;\n }\n\n const url =\n href ??\n (typeof window !== 'undefined'\n ? window.prompt('Enter URL', a?.href || 'https://') || ''\n : '');\n if (!url) return;\n\n if (a) {\n a.href = url;\n return;\n }\n\n if (range.collapsed) {\n const link = document.createElement('a');\n link.href = url;\n link.textContent = url;\n range.insertNode(link);\n const r = document.createRange();\n r.setStartAfter(link);\n r.collapse(true);\n sel.removeAllRanges();\n sel.addRange(r);\n return;\n }\n\n const link = document.createElement('a');\n link.href = url;\n try {\n range.surroundContents(link);\n } catch {\n const frag = range.extractContents();\n link.appendChild(frag);\n range.insertNode(link);\n }\n}\n"],"names":["closestBlock","node","root","_n","HTMLElement","display","getComputedStyle","tagName","match","parentNode","nearestElement","n","rgbToHex","rgb","m","concat","Number","toString","padStart","unwrap","p","firstChild","insertBefore","removeChild","surroundInline","range","tag","attrs","wrap","document","createElement","Object","entries","forEach","_ref","_ref2","_slicedToArray","k","v","setAttribute","surroundContents","_unused","frag","extractContents","appendChild","insertNode","unwrapAllMatching","matcher","toggleInlineTag","_strong$em$u$span$o","sel","getSelection","rangeCount","getRangeAt","candidates","strong","em","u","span","isMatchingInline","el","includes","toLowerCase","collapsed","startContainer","elm","_ref3","_ref4","createTextNode","r","createRange","setStart","collapse","removeAllRanges","addRange","startBlock","endBlock","endContainer","blocks","push","nextSibling","block","i","selectNodeContents","textNodes","tw","createTreeWalker","NodeFilter","SHOW_TEXT","tn","nextNode","nodeValue","trim","length","every","txt","walker","commonAncestorContainer","acceptNode","FILTER_REJECT","nodeRange","compareBoundaryPoints","Range","END_TO_START","START_TO_END","FILTER_ACCEPT","t","selRange","startOffset","setEnd","endOffset","setBlockTag","nb","replaceWith","setAlignment","align","style","textAlign","list","closest","setFontFamily","family","fontFamily","enclosingStyledSpan","editor","dataAttr","HTMLSpanElement","hasAttribute","applyInlineStyle","cssProp","value","window","r0","contains","cloneRange","enclosing","mergeAdjacentStyledSpans","s","caret","leftEdge","rightEdge","all","START_TO_START","END_TO_END","rangeCoversWholeNode","mid","newValue","oldValue","left","right","childNodes","createDocumentFragment","makeShell","val","hasRangeContent","sLeft","cloneContents","sRight","splitAndRecolorWithinSpan","commonEl","toProcess","text","start","end","splitText","existing","parentElement","replaceChild","textContent","spans","Array","from","querySelectorAll","valOf","child","remove","prev","previousSibling","next","setForeColor","hex","setBackColor","toggleList","kind","SHOW_ELEMENT","FILTER_SKIP","test","firstLi","currentList","_i2","_Array$from","li","newList","_i3","_c3","_export","a"],"mappings":"0yCAAgB,QAAAA,CAAAA,CAAAA,CACdC,EACAC,CAEA,CAAA,CAAA,KAAOD,GAAQA,CAASC,GAAAA,CAAAA,EAAM,KAAAC,EAAA,CAC5B,GAAIF,CAAAA,WAAgBG,CAAAA,YAAa,CAC/B,GAAMC,CAAAA,GAAUC,gBAAiBL,CAAAA,CAAAA,CAAAA,CAAMI,QACvC,GACEJ,CAAAA,CAAKM,QAAQC,KAAM,CAAA,gCAAA,CAAA,EACP,UAAZH,EACY,EAAA,WAAA,GAAZA,GAEA,MAAOJ,CAAAA,CAEV,EACDA,CAAOA,CAAAA,EAAAA,EAAAA,CAAAA,CAAAA,UAAAA,EAAAA,iBAAAA,EAAAA,CAAMQ,aAAc,IAC5B,EACD,MAAOP,CAAAA,CACT,EAEM,QAAUQ,CAAAA,CAAeC,CAAAA,CAAAA,CAAAA,CAC7B,KAAOA,CAAOA,EAAAA,EAAAA,CAAAA,WAAaP,CAAAA,cA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EACD,OACD,CAED,GAAMA,CAAAA,CAAUnK,CAAAA,QAAAA,CAASC,cAAcyJ,CACvC,CAAA,CAAA,QAAAU,GAAA,GAAAC,GAAA,CAAoBpH,CAAAA,CAAAA,GAAAA,CAAAA,GAAAA,CAAAA,MAAAA,CAAAA,GAAAA,GAAQ,CAAvB,GAAMG,CAAAA,IAASH,CAAAA,GAAAA,CAAAA,GAAAA,EAClB,GAAMiH,CAAAA,GAAAA,CAAKlK,SAASC,aAAc,CAAA,IAAA,CAAA,CAClC,KAAOmD,IAAM5D,CAAAA,UAAAA,EAAY0K,IAAGnJ,WAAYqC,CAAAA,IAAAA,CAAM5D,YAC9C2K,CAAQpJ,CAAAA,WAAAA,CAAYmJ,KACpB9G,IAAMgC,CAAAA,WAAAA,CAAY+E,EACnB,EACH,CAAAG,OAAA,EAAAC,CAAA"}
@@ -1 +0,0 @@
1
- function n(n,t){for(;n&&n!==t;){if(n instanceof HTMLElement){const t=getComputedStyle(n).display;if(n.tagName.match(/^(P|DIV|H1|H2|H3|H4|H5|H6|LI)$/)||"block"===t||"list-item"===t)return n}n=n?.parentNode||null}return t}function t(n){for(;n&&!(n instanceof HTMLElement);)n=n.parentNode;return n}function o(n){const t=n.match(/rgba?\((\d+),\s*(\d+),\s*(\d+)/i);if(!t)return"#000000";return`#${Number(t[1]).toString(16).padStart(2,"0")}${Number(t[2]).toString(16).padStart(2,"0")}${Number(t[3]).toString(16).padStart(2,"0")}`}function e(n){const t=n.parentNode;if(t){for(;n.firstChild;)t.insertBefore(n.firstChild,n);t.removeChild(n)}}function r(n,t,o){const e=document.createElement(t);o&&Object.entries(o).forEach((([n,t])=>e.setAttribute(n,t)));try{n.surroundContents(e)}catch{const t=n.extractContents();e.appendChild(t),n.insertNode(e)}}function c(n,t,o){let r=n.parentNode;for(;r&&r!==t;)r instanceof HTMLElement&&o(r)?(e(r),r=n.parentNode):r=r.parentNode}function u(t,o,e){const u=document.getSelection();if(!u||0===u.rangeCount)return;const i=u.getRangeAt(0),f={strong:["strong","b"],em:["em","i"],u:["u"],span:["span"]}[o]??[o];function s(n){return f.includes(n.tagName.toLowerCase())}if(i.collapsed){let n=i.startContainer;for(;n&&n!==t;){if(n instanceof HTMLElement&&s(n))return void c(i.startContainer,t,s);n=n.parentNode}const r=document.createElement(o);e&&Object.entries(e).forEach((([n,t])=>r.setAttribute(n,t))),r.appendChild(document.createTextNode("​")),i.insertNode(r);const f=document.createRange();return f.setStart(r.firstChild,1),f.collapse(!0),u.removeAllRanges(),void u.addRange(f)}const d=n(i.startContainer,t),l=n(i.endContainer,t);if(d&&l&&d!==l){const n=[];let t=d;for(;t&&(t instanceof HTMLElement&&n.push(t),t!==l);)t=t.nextSibling;return void n.forEach(((n,t)=>{const u=document.createRange();u.selectNodeContents(n);const i=[],f=document.createTreeWalker(n,NodeFilter.SHOW_TEXT,null);let d;for(;d=f.nextNode();)d.nodeValue?.trim()&&i.push(d);i.length>0&&i.every((t=>{let o=t;for(;o&&o!==n;){if(o instanceof HTMLElement&&s(o))return!0;o=o.parentNode}return!1}))?i.forEach((t=>c(t,n,s))):r(u,o,e)}))}const m=document.createTreeWalker(i.commonAncestorContainer,NodeFilter.SHOW_TEXT,{acceptNode:n=>{if(!n.nodeValue||!n.nodeValue.trim())return NodeFilter.FILTER_REJECT;const t=document.createRange();t.selectNodeContents(n);return i.compareBoundaryPoints(Range.END_TO_START,t)<=0&&i.compareBoundaryPoints(Range.START_TO_END,t)>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),a=[];let H;for(;H=m.nextNode();)a.push(H);if(0===a.length){let n=i.startContainer;for(;n&&n!==t;){if(n instanceof HTMLElement&&s(n))return void c(i.startContainer,t,s);n=n.parentNode}}a.length>0&&a.every((n=>{let o=n;for(;o&&o!==t;){if(o instanceof HTMLElement&&s(o))return!0;o=o.parentNode}return!1}))?a.forEach((n=>c(n,t,s))):r(i,o,e);const N=document.createRange();N.setStart(i.startContainer,i.startOffset),N.setEnd(i.endContainer,i.endOffset),u.removeAllRanges(),u.addRange(N)}function i(t,o){const e=document.getSelection();if(!e||0===e.rangeCount)return;const r=n(e.getRangeAt(0).startContainer,t);if(!r)return;if(r.tagName.toLowerCase()===o)return;const c=document.createElement(o);for(;r.firstChild;)c.appendChild(r.firstChild);r.replaceWith(c);const u=document.createRange();u.selectNodeContents(c),u.collapse(!0),e.removeAllRanges(),e.addRange(u)}function f(t,o){const e=document.getSelection();if(!e||0===e.rangeCount)return;let r=n(e.getRangeAt(0).startContainer,t);if(r)if("li"===r.tagName.toLowerCase()){r.style.textAlign=o;const n=r.closest("ul,ol");n&&(n.style.textAlign=o)}else r.style.textAlign="justify"===o?"justify":o}function s(n,t){const o=document.getSelection();if(!o||0===o.rangeCount)return;const e=o.getRangeAt(0);if(e.collapsed){const n=document.createElement("span");n.style.fontFamily=t,n.appendChild(document.createTextNode("​")),e.insertNode(n);const r=document.createRange();return r.setStart(n.firstChild,1),r.collapse(!0),o.removeAllRanges(),void o.addRange(r)}r(e,"span",{style:`font-family:${t}`})}function d(n,t,o){for(;t&&t!==n;){if(t instanceof HTMLSpanElement&&t.hasAttribute(o))return t;t=t.parentNode}return null}function l(n,t,o,e){const r=window.getSelection();if(!r||0===r.rangeCount)return;const c=r.getRangeAt(0);if(!n.contains(c.commonAncestorContainer))return;const u=c.cloneRange();if(u.collapsed){const c=d(n,u.startContainer,e);if(c)return c.style[t]=o,void a(n,e,t);const i=document.createElement("span");i.setAttribute(e,"1"),i.style[t]=o,i.appendChild(document.createTextNode("​")),u.insertNode(i);const f=document.createRange();return f.setStart(i.firstChild,1),f.collapse(!0),r.removeAllRanges(),r.addRange(f),void a(n,e,t)}const i=d(n,u.startContainer,e),f=d(n,u.endContainer,e);if(i&&i===f){if(function(n,t){const o=document.createRange();return o.selectNodeContents(t),n.compareBoundaryPoints(Range.START_TO_START,o)<=0&&n.compareBoundaryPoints(Range.END_TO_END,o)>=0}(u,i))i.style[t]=o;else{const n=function(n,t,o,e,r){const c=n.style[e],u=document.createRange();u.setStart(n,0),u.setEnd(t.startContainer,t.startOffset);const i=document.createRange();i.setStart(t.endContainer,t.endOffset),i.setEnd(n,n.childNodes.length);const f=document.createDocumentFragment(),s=n=>{const t=document.createElement("span");return t.setAttribute(o,"1"),t.style[e]=n,t};if(m(u)){const n=s(c);n.appendChild(u.cloneContents()),f.appendChild(n)}const d=s(r);if(d.appendChild(t.cloneContents()),f.appendChild(d),m(i)){const n=s(c);n.appendChild(i.cloneContents()),f.appendChild(n)}return n.replaceWith(f),d}(i,u,e,t,o),r=window.getSelection(),c=document.createRange();c.selectNodeContents(n),r?.removeAllRanges(),r?.addRange(c)}return void a(n,e,t)}const s=(()=>{let n=u.commonAncestorContainer;for(;n&&!(n instanceof HTMLElement);)n=n.parentNode;return n})(),l=document.createTreeWalker(s||n,NodeFilter.SHOW_TEXT,{acceptNode:n=>{if(!n.nodeValue||!n.nodeValue.trim())return NodeFilter.FILTER_REJECT;const t=document.createRange();t.selectNodeContents(n);return u.compareBoundaryPoints(Range.END_TO_START,t)<0&&u.compareBoundaryPoints(Range.START_TO_END,t)>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),H=[];let N;for(;N=l.nextNode();)H.push(N);H.forEach((r=>{let c=0,i=r.length;r===u.startContainer&&(c=u.startOffset),r===u.endContainer&&(i=u.endOffset),c>0&&(r=r.splitText(c)),i<r.length&&r.splitText(i);const f=d(n,r,e);if(f)return void(f.style[t]=o);const s=document.createElement("span");s.setAttribute(e,"1"),s.style[t]=o;r.parentElement.replaceChild(s,r),s.appendChild(r)})),a(n,e,t),r.removeAllRanges(),r.addRange(u)}function m(n){if(n.collapsed)return!1;return(n.cloneContents().textContent||"").length>0}function a(n,t,o){const e=Array.from(n.querySelectorAll(`span[${t}]`)),r=n=>n.style[o];e.forEach((n=>{Array.from(n.querySelectorAll(`span[${t}]`)).forEach((t=>{if(r(t)===r(n)){for(;t.firstChild;)n.insertBefore(t.firstChild,t);t.remove()}}));const o=n.previousSibling;if(o instanceof HTMLSpanElement&&o.hasAttribute(t)&&r(o)===r(n)){for(;n.firstChild;)o.appendChild(n.firstChild);return void n.remove()}const e=n.nextSibling;if(e instanceof HTMLSpanElement&&e.hasAttribute(t)&&r(e)===r(n)){for(;e.firstChild;)n.appendChild(e.firstChild);e.remove()}}))}function H(n,t){l(n,"color",t,"data-rte-color")}function N(n,t){l(n,"backgroundColor",t,"data-rte-bg")}function p(t,o){const e=document.getSelection();if(!e||0===e.rangeCount)return;const r=e.getRangeAt(0),c=[],u=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{if(!(n instanceof HTMLElement))return NodeFilter.FILTER_SKIP;if(!/^(P|DIV|LI|H[1-6])$/.test(n.tagName))return NodeFilter.FILTER_SKIP;const t=document.createRange();t.selectNodeContents(n);return r.compareBoundaryPoints(Range.END_TO_START,t)<0&&r.compareBoundaryPoints(Range.START_TO_END,t)>0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}});let i;for(;i=u.nextNode();)c.push(i);if(0===c.length){const o=n(r.startContainer,t);o&&c.push(o)}const f=c[0].closest("li");if(f){const n=f.closest("ul,ol");if(!n)return;if(n.tagName.toLowerCase()===o){const t=document.createDocumentFragment();for(const o of Array.from(n.querySelectorAll("li"))){const n=document.createElement("p");for(;o.firstChild;)n.appendChild(o.firstChild);t.appendChild(n)}n.replaceWith(t)}else{const t=document.createElement(o);for(;n.firstChild;)t.appendChild(n.firstChild);n.replaceWith(t)}return}const s=document.createElement(o);for(const n of c){const t=document.createElement("li");for(;n.firstChild;)t.appendChild(n.firstChild);s.appendChild(t),n.replaceWith(s)}}export{i as a,s as b,N as c,H as d,p as e,n as f,t as n,o as r,f as s,u as t};
@@ -1,2 +0,0 @@
1
- System.register(["./nile-side-bar-content.cjs.js","tslib","lit","lit/decorators.js","./nile-side-bar-content.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSideBarContentCjsJs){_export("NileSideBarContent",_nileSideBarContentCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileSideBarContentCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export{N as NileSideBarContent}from"./nile-side-bar-content.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-side-bar-content.css.esm.js";import"../internal/nile-element.esm.js";
@@ -1,2 +0,0 @@
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-content.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,s,e,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){t=_tslib.__decorate;},function(_lit){s=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.customElement;},function(_nileSideBarContentCssCjsJs){r=_nileSideBarContentCssCjsJs.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\t<slot> </slot>\n\t\t\t"])));}}],[{key:"styles",get:function get(){return[r];}}]);}(o));_export("N",i=t([e("nile-side-bar-content")],i));}};});
2
- //# sourceMappingURL=nile-side-bar-content.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-side-bar-content.cjs.js","sources":["../../../src/nile-side-bar-content/nile-side-bar-content.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-content.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile side-bar-content component.\n *\n * @tag nile-side-bar-content\n *\n */\n@customElement('nile-side-bar-content')\nexport class NileSideBarContent extends NileElement {\n\n\t/**\n\t * The styles for nile-side-bar-content\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\t<slot> </slot>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileSideBarContent;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-content': NileSideBarContent;\n }\n}"],"names":["NileSideBarContent","render","html","_templateObject","_taggedTemplateLiteral","key","get","styles","NileElement","__decorate","customElement"],"mappings":"unGAoBaA,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,uCAGX,CAAA,KAAAC,GAAA,UAAAC,GAAA,CAhBM,SAAAA,IAAA,EACN,MAAO,CAACC,EACR,EAUM,MAlBgCC,CAMhC,GANKR,OAAAA,KAAAA,CAAkBS,CAAAA,CAAAA,CAAA,CAD9BC,CAAAA,CAAc,0BACFV"}
@@ -1,2 +0,0 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,t;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",t=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t:host {\n\n\t}\n"]))));}};});
2
- //# sourceMappingURL=nile-side-bar-content.css.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-side-bar-content.css.cjs.js","sources":["../../../src/nile-side-bar-content/nile-side-bar-content.css.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 {css} from 'lit';\n\n/**\n * SideBarContent CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,5 +0,0 @@
1
- import{css as o}from"lit";const t=o`
2
- :host {
3
-
4
- }
5
- `;export{t as s};
@@ -1,3 +0,0 @@
1
- import{__decorate as t}from"tslib";import{html as e}from"lit";import{customElement as s}from"lit/decorators.js";import{s as r}from"./nile-side-bar-content.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 e`
2
- <slot> </slot>
3
- `}};i=t([s("nile-side-bar-content")],i);export{i as N};
@@ -1,2 +0,0 @@
1
- System.register(["./nile-side-bar-footer-icon.cjs.js","tslib","lit","lit/decorators.js","./nile-side-bar-footer-icon.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSideBarFooterIconCjsJs){_export("NileSideBarFooterIcon",_nileSideBarFooterIconCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileSideBarFooterIconCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export{N as NileSideBarFooterIcon}from"./nile-side-bar-footer-icon.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-side-bar-footer-icon.css.esm.js";import"../internal/nile-element.esm.js";
@@ -1,2 +0,0 @@
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-footer-icon.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var r,t,s,e,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){r=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.customElement;},function(_nileSideBarFooterIconCssCjsJs){e=_nileSideBarFooterIconCssCjsJs.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 t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t<slot> </slot>\n\t\t\t"])));}}],[{key:"styles",get:function get(){return[e];}}]);}(o));_export("N",i=r([s("nile-side-bar-footer-icon")],i));}};});
2
- //# sourceMappingURL=nile-side-bar-footer-icon.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-side-bar-footer-icon.cjs.js","sources":["../../../src/nile-side-bar-footer-icon/nile-side-bar-footer-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 {LitElement, html, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property} from 'lit/decorators.js';\nimport {styles} from './nile-side-bar-footer-icon.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile side-bar-footer-icon component.\n *\n * @tag nile-side-bar-footer-icon\n *\n */\n@customElement('nile-side-bar-footer-icon')\nexport class NileSideBarFooterIcon extends NileElement {\n\n\t/**\n\t * The styles for nile-side-bar-footer-icon\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\t<slot> </slot>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileSideBarFooterIcon;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-footer-icon': NileSideBarFooterIcon;\n }\n}"],"names":["NileSideBarFooterIcon","render","html","_templateObject","_taggedTemplateLiteral","key","get","styles","NileElement","__decorate","customElement"],"mappings":"ioGAoBaA,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,uCAGX,CAAA,KAAAC,GAAA,UAAAC,GAAA,CAhBM,SAAAA,IAAA,EACN,MAAO,CAACC,EACR,EAUM,MAlBmCC,CAMnC,GANKR,OAAAA,KAAAA,CAAqBS,CAAAA,CAAAA,CAAA,CADjCC,CAAAA,CAAc,8BACFV"}
@@ -1,2 +0,0 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,t;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",t=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t:host {\n\n\t}\n"]))));}};});
2
- //# sourceMappingURL=nile-side-bar-footer-icon.css.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-side-bar-footer-icon.css.cjs.js","sources":["../../../src/nile-side-bar-footer-icon/nile-side-bar-footer-icon.css.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 {css} from 'lit';\n\n/**\n * SideBarFooterIcon CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,5 +0,0 @@
1
- import{css as o}from"lit";const t=o`
2
- :host {
3
-
4
- }
5
- `;export{t as s};
@@ -1,3 +0,0 @@
1
- import{__decorate as e}from"tslib";import{html as r}from"lit";import{customElement as t}from"lit/decorators.js";import{s}from"./nile-side-bar-footer-icon.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";let i=class extends o{static get styles(){return[s]}render(){return r`
2
- <slot> </slot>
3
- `}};i=e([t("nile-side-bar-footer-icon")],i);export{i as N};
@@ -1,2 +0,0 @@
1
- System.register(["./nile-side-bar-group-item-content.cjs.js","tslib","lit","lit/decorators.js","./nile-side-bar-group-item-content.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSideBarGroupItemContentCjsJs){_export("NileSideBarGroupItemContent",_nileSideBarGroupItemContentCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileSideBarGroupItemContentCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export{N as NileSideBarGroupItemContent}from"./nile-side-bar-group-item-content.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-side-bar-group-item-content.css.esm.js";import"../internal/nile-element.esm.js";
@@ -1,2 +0,0 @@
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-content.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,e,r,s,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){t=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){r=_litDecoratorsJs.customElement;},function(_nileSideBarGroupItemContentCssCjsJs){s=_nileSideBarGroupItemContentCssCjsJs.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 e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t<slot> </slot>\n\t\t\t"])));}}],[{key:"styles",get:function get(){return[s];}}]);}(o));_export("N",i=t([r("nile-side-bar-group-item-content")],i));}};});
2
- //# sourceMappingURL=nile-side-bar-group-item-content.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-side-bar-group-item-content.cjs.js","sources":["../../../src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.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-group-item-content.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile side-bar-group-item-content component.\n *\n * @tag nile-side-bar-group-item-content\n *\n */\n@customElement('nile-side-bar-group-item-content')\nexport class NileSideBarGroupItemContent extends NileElement {\n\n\t/**\n\t * The styles for nile-side-bar-group-item-content\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\t<slot> </slot>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileSideBarGroupItemContent;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-group-item-content': NileSideBarGroupItemContent;\n }\n}"],"names":["NileSideBarGroupItemContent","render","html","_templateObject","_taggedTemplateLiteral","key","get","styles","NileElement","__decorate","customElement"],"mappings":"opGAoBaA,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,uCAGX,CAAA,KAAAC,GAAA,UAAAC,GAAA,CAhBM,SAAAA,IAAA,EACN,MAAO,CAACC,EACR,EAUM,MAlByCC,CAMzC,GANKR,OAAAA,KAAAA,CAA2BS,CAAAA,CAAAA,CAAA,CADvCC,CAAAA,CAAc,qCACFV"}
@@ -1,2 +0,0 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var o,_templateObject,t;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){o=_lit.css;}],execute:function execute(){_export("s",t=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t:host {\n\n\t}\n"]))));}};});
2
- //# sourceMappingURL=nile-side-bar-group-item-content.css.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-side-bar-group-item-content.css.cjs.js","sources":["../../../src/nile-side-bar-group-item-content/nile-side-bar-group-item-content.css.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 {css} from 'lit';\n\n/**\n * SideBarGroupItemContent CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n`;\n\nexport default [styles];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,5 +0,0 @@
1
- import{css as o}from"lit";const t=o`
2
- :host {
3
-
4
- }
5
- `;export{t as s};
@@ -1,3 +0,0 @@
1
- import{__decorate as t}from"tslib";import{html as e}from"lit";import{customElement as r}from"lit/decorators.js";import{s}from"./nile-side-bar-group-item-content.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";let i=class extends o{static get styles(){return[s]}render(){return e`
2
- <slot> </slot>
3
- `}};i=t([r("nile-side-bar-group-item-content")],i);export{i as N};
@@ -1,2 +0,0 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var o,i,r,e,n,t,a,_templateObject,_templateObject2,s;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){o=_tslib.__decorate;},function(_lit){i=_lit.css;r=_lit.LitElement;e=_lit.html;},function(_litDecoratorsJs){n=_litDecoratorsJs.property;t=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){a=_litDirectivesClassMapJs.classMap;}],execute:function execute(){s=/*#__PURE__*/function(_r){function s(){var _this;_classCallCheck(this,s);_this=_callSuper(this,s,arguments),_this.title="",_this.showSidebar=!1;return _this;}_inherits(s,_r);return _createClass(s,[{key:"buttonClassMap",get:function get(){return{"nds-menu--active":this.showSidebar};}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"nile-menu--wrapper ","\" >\n <div class=\"nile-menu-group\">\n <a class=\"nile-logo\" href=\"/\">\n <img\n src=\"https://assets.aquera.io/img/aquera-logo-blue.svg\"\n alt=\"Aquera\"\n width=\"112.94px\"\n height=\"31.06px\"\n tabindex=\"1\"\n />\n </a>\n <div class=\"menu-group\">\n <slot name=\"menu\"></slot>\n </div>\n </div>\n <div class=\"\">\n <div class=\"nds-menu--bottom\">\n <slot name=\"bottom\"></slot>\n </div>\n </div>\n </div>\n "])),a(this.buttonClassMap));}}]);}(r);s.styles=i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n :host {\n background-color: var(--nile-alert-color-background-base);\n border-right: 1px solid var(--nile-colors-neutral-400);\n min-height: 100vh;\n background: var(--nile-colors-neutral-100);\n border: 1px solid var(--nile-colors-neutral-400);\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n :host([showSidebar=true]) {\n min-width: 240px;\n }\n .nile-logo {\n margin: var(--nile-spacing-2xl);\n display: block;\n margin-bottom: var(--nile-spacing-lg);\n }\n\n .menu-group {\n margin-left: var(--nile-spacing-2xl);\n margin-right: var(--nile-spacing-2xl);\n }\n\n .view-component {\n background-color: var(--nile-colors-white-base);\n min-width: 240px;\n }\n // padding: 3rem;\n .view-component__item {\n background-color: var(--nile-colors-white-base);\n // padding: 1rem;\n border-radius: var(--nile-radius-sm);\n border: solid 1px #eee;\n }\n\n .nile-menu__hr {\n border-bottom: solid 1px var(--nile-colors-dark-100);\n margin-top: var(--nile-spacing-lg) !important;\n margin-bottom: var(--nile-spacing-lg) !important;\n background-color: var(--nile-colors-dark-100);\n }\n\n .nds-menu--bottom {\n position: absolute;\n bottom: 0;\n }\n\n .nds-menu--active .nile-logo {\n display: none;\n }\n "]))),o([n()],s.prototype,"title",void 0),o([n()],s.prototype,"showSidebar",void 0),s=o([t("nile-sidebar")],s);}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":["../../../src/nile-sidebar/index.ts"],"sourcesContent":["import { LitElement, html, css } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\n\n/**\n * An nile-menu element.\n */\n\ninterface MenuItem {\n name: string;\n icon: string;\n href: string;\n}\n\ninterface MenuItemList {\n [key: string]: MenuItem;\n}\n\n/**\n * An nile-sidebar element.\n *\n * @fires count-changed - Indicates when the count changes\n * @slot - This element has a slot\n * @csspart button - The button\n */\n@customElement('nile-sidebar')\nexport class NileSidebar extends LitElement {\n static override styles = css`\n :host {\n background-color: var(--nile-alert-color-background-base);\n border-right: 1px solid var(--nile-colors-neutral-400);\n min-height: 100vh;\n background: var(--nile-colors-neutral-100);\n border: 1px solid var(--nile-colors-neutral-400);\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n }\n :host([showSidebar=true]) {\n min-width: 240px;\n }\n .nile-logo {\n margin: var(--nile-spacing-2xl);\n display: block;\n margin-bottom: var(--nile-spacing-lg);\n }\n\n .menu-group {\n margin-left: var(--nile-spacing-2xl);\n margin-right: var(--nile-spacing-2xl);\n }\n\n .view-component {\n background-color: var(--nile-colors-white-base);\n min-width: 240px;\n }\n // padding: 3rem;\n .view-component__item {\n background-color: var(--nile-colors-white-base);\n // padding: 1rem;\n border-radius: var(--nile-radius-sm);\n border: solid 1px #eee;\n }\n\n .nile-menu__hr {\n border-bottom: solid 1px var(--nile-colors-dark-100);\n margin-top: var(--nile-spacing-lg) !important;\n margin-bottom: var(--nile-spacing-lg) !important;\n background-color: var(--nile-colors-dark-100);\n }\n\n .nds-menu--bottom {\n position: absolute;\n bottom: 0;\n }\n\n .nds-menu--active .nile-logo {\n display: none;\n }\n `;\n\n /**\n * Button Lab\n */\n @property()\n title = '';\n\n /**\n * Hide Sidebar\n */\n @property()\n showSidebar = false;\n\n get buttonClassMap() {\n return {\n 'nds-menu--active': this.showSidebar\n };\n }\n\n // class=\"nds-menu ${classMap(this.buttonClassMap)}\"\n\n override render() {\n return html`\n <div class=\"nile-menu--wrapper ${classMap(this.buttonClassMap)}\" >\n <div class=\"nile-menu-group\">\n <a class=\"nile-logo\" href=\"/\">\n <img\n src=\"https://assets.aquera.io/img/aquera-logo-blue.svg\"\n alt=\"Aquera\"\n width=\"112.94px\"\n height=\"31.06px\"\n tabindex=\"1\"\n />\n </a>\n <div class=\"menu-group\">\n <slot name=\"menu\"></slot>\n </div>\n </div>\n <div class=\"\">\n <div class=\"nds-menu--bottom\">\n <slot name=\"bottom\"></slot>\n </div>\n </div>\n </div>\n `;\n }\n}\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-sidebar': NileSidebar;\n }\n}\n"],"names":["NileSidebar","_r","s","this","title","showSidebar","_this","_inherits","_createClass","key","get","value","render","html","_templateObject","_taggedTemplateLiteral","classMap","buttonClassMap","LitElement","styles","css","_templateObject2","__decorate","property","prototype","customElement"],"mappings":"6kGA0BaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,uEA2DLC,KAAAA,CAAKC,KAAAA,CAAG,GAMRD,KAAAA,CAAWE,WAAAA,CAAAA,CAAG,CAmCf,QAAAC,KAAA,EAjCCC,SAAA,CAAAL,CAAA,CAAAD,EAAA,SAAAO,YAAA,CAAAN,CAAA,GAAAO,GAAA,kBAAAC,GAAA,UAAAA,IAAA,CACE,CAAA,MAAO,CACL,kBAAA,CAAoBP,KAAKE,WAE5B,CAAA,EAIQ,GAAAI,GAAA,UAAAE,KAAA,UAAAC,MAAAA,CAAAA,CAAAA,CACP,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,kqBACyBC,CAAAA,CAASb,IAAKc,CAAAA,cAAAA,CAAAA,EAsBnD,CAlGejB,MADekB,CAA1B,EACWlB,CAAAA,CAAMmB,OAAGC,CAAG,CAAAC,gBAAA,GAAAA,gBAAA,CAAAN,sBAAA,mlDA0D5BO,CAAAA,CAAAA,CAAA,CADCC,CACUvB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwB,SAAA,CAAA,OAAA,CAAA,IAAA,IAMXF,CAAA,CAAA,CADCC,CACmBvB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwB,UAAA,aAAA,CAAA,IAAA,EAAA,CAAA,CAjETxB,EAAWsB,CAAA,CAAA,CADvBG,EAAc,cACFzB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA"}
@@ -1,75 +0,0 @@
1
- import{__decorate as o}from"tslib";import{css as i,LitElement as r,html as e}from"lit";import{property as n,customElement as t}from"lit/decorators.js";import{classMap as a}from"lit/directives/class-map.js";let s=class extends r{constructor(){super(...arguments),this.title="",this.showSidebar=!1}get buttonClassMap(){return{"nds-menu--active":this.showSidebar}}render(){return e`
2
- <div class="nile-menu--wrapper ${a(this.buttonClassMap)}" >
3
- <div class="nile-menu-group">
4
- <a class="nile-logo" href="/">
5
- <img
6
- src="https://assets.aquera.io/img/aquera-logo-blue.svg"
7
- alt="Aquera"
8
- width="112.94px"
9
- height="31.06px"
10
- tabindex="1"
11
- />
12
- </a>
13
- <div class="menu-group">
14
- <slot name="menu"></slot>
15
- </div>
16
- </div>
17
- <div class="">
18
- <div class="nds-menu--bottom">
19
- <slot name="bottom"></slot>
20
- </div>
21
- </div>
22
- </div>
23
- `}};s.styles=i`
24
- :host {
25
- background-color: var(--nile-alert-color-background-base);
26
- border-right: 1px solid var(--nile-colors-neutral-400);
27
- min-height: 100vh;
28
- background: var(--nile-colors-neutral-100);
29
- border: 1px solid var(--nile-colors-neutral-400);
30
- -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));
31
- -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));
32
- text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));
33
- }
34
- :host([showSidebar=true]) {
35
- min-width: 240px;
36
- }
37
- .nile-logo {
38
- margin: var(--nile-spacing-2xl);
39
- display: block;
40
- margin-bottom: var(--nile-spacing-lg);
41
- }
42
-
43
- .menu-group {
44
- margin-left: var(--nile-spacing-2xl);
45
- margin-right: var(--nile-spacing-2xl);
46
- }
47
-
48
- .view-component {
49
- background-color: var(--nile-colors-white-base);
50
- min-width: 240px;
51
- }
52
- // padding: 3rem;
53
- .view-component__item {
54
- background-color: var(--nile-colors-white-base);
55
- // padding: 1rem;
56
- border-radius: var(--nile-radius-sm);
57
- border: solid 1px #eee;
58
- }
59
-
60
- .nile-menu__hr {
61
- border-bottom: solid 1px var(--nile-colors-dark-100);
62
- margin-top: var(--nile-spacing-lg) !important;
63
- margin-bottom: var(--nile-spacing-lg) !important;
64
- background-color: var(--nile-colors-dark-100);
65
- }
66
-
67
- .nds-menu--bottom {
68
- position: absolute;
69
- bottom: 0;
70
- }
71
-
72
- .nds-menu--active .nile-logo {
73
- display: none;
74
- }
75
- `,o([n()],s.prototype,"title",void 0),o([n()],s.prototype,"showSidebar",void 0),s=o([t("nile-sidebar")],s);
@@ -1,2 +0,0 @@
1
- System.register(["./nile-sidebar-menu.cjs.js","tslib","lit","lit/decorators.js","./nile-sidebar-menu.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";return{setters:[function(_nileSidebarMenuCjsJs){_export("NileSidebarMenu",_nileSidebarMenuCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileSidebarMenuCssCjsJs){},function(_internalNileElementCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){}};});
2
- //# sourceMappingURL=index.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -1 +0,0 @@
1
- export{N as NileSidebarMenu}from"./nile-sidebar-menu.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-sidebar-menu.css.esm.js";import"../internal/nile-element.esm.js";import"lit/directives/class-map.js";
@@ -1,2 +0,0 @@
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-sidebar-menu.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var s,e,t,i,r,l,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 _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){s=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;i=_litDecoratorsJs.customElement;},function(_nileSidebarMenuCssCjsJs){r=_nileSidebarMenuCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_litDirectivesClassMapJs){o=_litDirectivesClassMapJs.classMap;}],execute:function execute(){_export("N",a=/*#__PURE__*/function(_l){function a(){var _this;_classCallCheck(this,a);_this=_callSuper(this,a,arguments),_this.sidemenucollapsed=!1;return _this;}_inherits(a,_l);return _createClass(a,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(a,"connectedCallback",this,3)([]),this.addEventListener("click",this.handleSidebarMenuCollapsed.bind(this));}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(a,"disconnectedCallback",this,3)([]),this.removeEventListener("click",this.handleSidebarMenuCollapsed);}},{key:"firstUpdated",value:function firstUpdated(){var _this2=this;if(this.sidemenucollapsed){this.querySelectorAll("nile-sidebar-menu-items").forEach(function(s){s.collapsed=_this2.sidemenucollapsed;});}}},{key:"handleSidebarMenuCollapsed",value:function handleSidebarMenuCollapsed(){var _this3=this;this.sidemenucollapsed=!this.sidemenucollapsed;this.querySelectorAll("nile-sidebar-menu-items").forEach(function(s){s.collapsed=_this3.sidemenucollapsed;});}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <slot name=\"header\" class=\"header\"></slot>\n <div class=\"submenu__box\">\n <slot\n class=","\n >\n </slot>\n <slot name=\"footer\" part=\"footer\" class=\"footer\"></slot>\n </div>\n "])),o({"sidemenu__items-list":!0}));}}],[{key:"styles",get:function get(){return[r];}}]);}(l));s([t({type:Boolean,reflect:!0})],a.prototype,"sidemenucollapsed",void 0),_export("N",a=s([i("nile-sidebar-menu")],a));}};});
2
- //# sourceMappingURL=nile-sidebar-menu.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-sidebar-menu.cjs.js","sources":["../../../src/nile-sidebar-menu/nile-sidebar-menu.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 {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, query, property } from 'lit/decorators.js';\nimport { styles } from './nile-sidebar-menu.css';\nimport NileElement from '../internal/nile-element';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { foreach, log } from '../nile-icon/icons/svg';\n\n/**\n * Nile sidebar-menu component.\n *\n * @tag nile-sidebar-menu\n *\n */\n@customElement('nile-sidebar-menu')\nexport class NileSidebarMenu extends NileElement {\n /**\n * The styles for nile-sidebar-menu\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Boolean, reflect: true }) sidemenucollapsed = false;\n\n connectedCallback() {\n super.connectedCallback();\n this.addEventListener('click', this.handleSidebarMenuCollapsed.bind(this));\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.removeEventListener('click', this.handleSidebarMenuCollapsed);\n }\n firstUpdated() {\n if (this.sidemenucollapsed) {\n const items = this.querySelectorAll('nile-sidebar-menu-items');\n items.forEach(curr_item => {\n curr_item.collapsed = this.sidemenucollapsed;\n });\n }\n }\n\n handleSidebarMenuCollapsed() {\n this.sidemenucollapsed = !this.sidemenucollapsed;\n const items = this.querySelectorAll('nile-sidebar-menu-items');\n items.forEach(curr_item => {\n curr_item.collapsed = this.sidemenucollapsed;\n });\n }\n\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n public render(): TemplateResult {\n return html`\n <slot name=\"header\" class=\"header\"></slot>\n <div class=\"submenu__box\">\n <slot\n class=${classMap({\n 'sidemenu__items-list': true,\n })}\n >\n </slot>\n <slot name=\"footer\" part=\"footer\" class=\"footer\"></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileSidebarMenu;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-sidebar-menu': NileSidebarMenu;\n }\n}\n"],"names":["NileSidebarMenu","_l","a","constructor","this","sidemenucollapsed","_this","_inherits","_createClass","key","value","connectedCallback","super","addEventListener","handleSidebarMenuCollapsed","bind","disconnectedCallback","removeEventListener","firstUpdated","querySelectorAll","forEach","curr_item","collapsed","render","html","_templateObject","_taggedTemplateLiteral","classMap","get","styles","Nile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