@aquera/nile-elements 0.1.70-beta-1.0 → 0.1.70-beta-1.2

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 (297) hide show
  1. package/README.md +15 -0
  2. package/demo/index.html +248 -332
  3. package/dist/{fixture-28d63bc4.cjs.js → fixture-5b79f853.cjs.js} +2 -2
  4. package/dist/{fixture-28d63bc4.cjs.js.map → fixture-5b79f853.cjs.js.map} +1 -1
  5. package/dist/{fixture-ba65eb22.esm.js → fixture-90b199c4.esm.js} +1 -1
  6. package/dist/{fixture-78a015b8.esm.js → fixture-cf7bfcf5.esm.js} +1 -1
  7. package/dist/{fixture-324a7ef9.cjs.js → fixture-dbd66009.cjs.js} +2 -2
  8. package/dist/{fixture-324a7ef9.cjs.js.map → fixture-dbd66009.cjs.js.map} +1 -1
  9. package/dist/index.cjs.js +1 -1
  10. package/dist/index.esm.js +1 -1
  11. package/dist/index.js +103 -118
  12. package/dist/internal/resizable-table-helper.cjs.js +1 -1
  13. package/dist/internal/resizable-table-helper.cjs.js.map +1 -1
  14. package/dist/internal/resizable-table-helper.esm.js +1 -1
  15. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  16. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  17. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  18. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  19. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  20. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  21. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  22. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  23. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  24. package/dist/nile-button/nile-button.test.esm.js +1 -1
  25. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  26. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  27. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  28. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  29. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  30. package/dist/nile-card/nile-card.test.esm.js +1 -1
  31. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  32. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  33. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  34. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  35. package/dist/nile-code-editor/extensionSetup.cjs.js +3 -3
  36. package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
  37. package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
  38. package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
  39. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  40. package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
  41. package/dist/nile-code-editor/theme.cjs.js +1 -1
  42. package/dist/nile-code-editor/theme.cjs.js.map +1 -1
  43. package/dist/nile-code-editor/theme.esm.js +1 -1
  44. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  45. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  46. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  47. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  48. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  49. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  50. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  51. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  52. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  53. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  54. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  55. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  56. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  57. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  58. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  59. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  60. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  61. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  62. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  63. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  64. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  65. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  66. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  67. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  68. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  69. package/dist/nile-input/nile-input.test.esm.js +1 -1
  70. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  71. package/dist/nile-link/nile-link.test.esm.js +1 -1
  72. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  73. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  74. package/dist/nile-option/nile-option.cjs.js +1 -1
  75. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  76. package/dist/nile-option/nile-option.esm.js +2 -2
  77. package/dist/nile-option-group/nile-option-group.cjs.js +1 -1
  78. package/dist/nile-option-group/nile-option-group.cjs.js.map +1 -1
  79. package/dist/nile-option-group/nile-option-group.esm.js +5 -5
  80. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  81. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  82. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  83. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  84. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  85. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  86. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  87. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  88. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  89. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  90. package/dist/nile-select/nile-select.cjs.js +1 -1
  91. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  92. package/dist/nile-select/nile-select.esm.js +9 -9
  93. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  94. package/dist/nile-select/nile-select.test.esm.js +1 -1
  95. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  96. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  97. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  98. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  99. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  100. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  101. package/dist/nile-table-body/nile-table-body.esm.js +3 -2
  102. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
  103. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
  104. package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +1 -1
  105. package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
  106. package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
  107. package/dist/nile-table-header-item/nile-table-header-item.esm.js +2 -2
  108. package/dist/nile-table-row/nile-table-row.cjs.js +1 -1
  109. package/dist/nile-table-row/nile-table-row.cjs.js.map +1 -1
  110. package/dist/nile-table-row/nile-table-row.css.cjs.js +1 -1
  111. package/dist/nile-table-row/nile-table-row.css.cjs.js.map +1 -1
  112. package/dist/nile-table-row/nile-table-row.css.esm.js +0 -47
  113. package/dist/nile-table-row/nile-table-row.esm.js +6 -33
  114. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  115. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  116. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  117. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  118. package/dist/src/index.d.ts +1 -0
  119. package/dist/src/index.js +1 -0
  120. package/dist/src/index.js.map +1 -1
  121. package/dist/src/internal/resizable-helper.d.ts +59 -0
  122. package/dist/src/internal/resizable-helper.js +115 -0
  123. package/dist/src/internal/resizable-helper.js.map +1 -0
  124. package/dist/src/internal/resizable-styles.d.ts +16 -0
  125. package/dist/src/internal/resizable-styles.js +144 -0
  126. package/dist/src/internal/resizable-styles.js.map +1 -0
  127. package/dist/src/internal/resizable-table-helper.d.ts +5 -0
  128. package/dist/src/internal/resizable-table-helper.js +27 -4
  129. package/dist/src/internal/resizable-table-helper.js.map +1 -1
  130. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +17 -0
  131. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +310 -0
  132. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +34 -0
  133. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +31 -0
  134. package/dist/src/nile-code-editor/nile-code-editor.d.ts +2 -0
  135. package/dist/src/nile-code-editor/nile-code-editor.js +22 -5
  136. package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
  137. package/dist/src/nile-code-editor/theme.d.ts +9 -0
  138. package/dist/src/nile-code-editor/theme.js +9 -0
  139. package/dist/src/nile-code-editor/theme.js.map +1 -1
  140. package/dist/src/nile-grid/data-processor.d.ts +37 -0
  141. package/dist/src/nile-grid/data-processor.js +122 -0
  142. package/dist/src/nile-grid/data-processor.js.map +1 -0
  143. package/dist/src/nile-grid/event-handlers.d.ts +35 -0
  144. package/dist/src/nile-grid/event-handlers.js +158 -0
  145. package/dist/src/nile-grid/event-handlers.js.map +1 -0
  146. package/dist/src/nile-grid/index.d.ts +5 -0
  147. package/dist/src/nile-grid/index.js +6 -0
  148. package/dist/src/nile-grid/index.js.map +1 -0
  149. package/dist/src/nile-grid/nile-grid.css.d.ts +1 -0
  150. package/dist/src/nile-grid/nile-grid.css.js +120 -0
  151. package/dist/src/nile-grid/nile-grid.css.js.map +1 -0
  152. package/dist/src/nile-grid/nile-grid.d.ts +39 -0
  153. package/dist/src/nile-grid/nile-grid.js +182 -0
  154. package/dist/src/nile-grid/nile-grid.js.map +1 -0
  155. package/dist/src/nile-grid/renderer.d.ts +8 -0
  156. package/dist/src/nile-grid/renderer.js +78 -0
  157. package/dist/src/nile-grid/renderer.js.map +1 -0
  158. package/dist/src/nile-grid/resize-handler.d.ts +4 -0
  159. package/dist/src/nile-grid/resize-handler.js +36 -0
  160. package/dist/src/nile-grid/resize-handler.js.map +1 -0
  161. package/dist/src/nile-grid/types.d.ts +32 -0
  162. package/dist/src/nile-grid/types.js +2 -0
  163. package/dist/src/nile-grid/types.js.map +1 -0
  164. package/dist/src/nile-grid/utils.d.ts +4 -0
  165. package/dist/src/nile-grid/utils.js +32 -0
  166. package/dist/src/nile-grid/utils.js.map +1 -0
  167. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +47 -0
  168. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +16 -0
  169. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +75 -0
  170. package/dist/src/nile-option/nile-option.d.ts +1 -0
  171. package/dist/src/nile-option/nile-option.js +5 -0
  172. package/dist/src/nile-option/nile-option.js.map +1 -1
  173. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +22 -0
  174. package/dist/src/nile-select/nile-select.d.ts +6 -0
  175. package/dist/src/nile-select/nile-select.js +59 -1
  176. package/dist/src/nile-select/nile-select.js.map +1 -1
  177. package/dist/src/nile-table-body/nile-table-body.d.ts +1 -3
  178. package/dist/src/nile-table-body/nile-table-body.js +3 -31
  179. package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
  180. package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +9 -0
  181. package/dist/src/nile-table-body/virtual-scroll-helper.js +24 -0
  182. package/dist/src/nile-table-body/virtual-scroll-helper.js.map +1 -0
  183. package/dist/src/nile-table-cell-item/nile-table-cell-item.d.ts +2 -1
  184. package/dist/src/nile-table-cell-item/nile-table-cell-item.js +12 -1
  185. package/dist/src/nile-table-cell-item/nile-table-cell-item.js.map +1 -1
  186. package/dist/src/nile-table-header-item/nile-table-header-item.d.ts +2 -1
  187. package/dist/src/nile-table-header-item/nile-table-header-item.js +12 -1
  188. package/dist/src/nile-table-header-item/nile-table-header-item.js.map +1 -1
  189. package/dist/src/nile-table-row/nile-table-row.css.js +0 -47
  190. package/dist/src/nile-table-row/nile-table-row.css.js.map +1 -1
  191. package/dist/src/nile-table-row/nile-table-row.d.ts +1 -10
  192. package/dist/src/nile-table-row/nile-table-row.js +9 -88
  193. package/dist/src/nile-table-row/nile-table-row.js.map +1 -1
  194. package/dist/src/nile-virtual-table-body/index.d.ts +2 -0
  195. package/dist/src/nile-virtual-table-body/index.js +3 -0
  196. package/dist/src/nile-virtual-table-body/index.js.map +1 -0
  197. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +1 -0
  198. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +44 -0
  199. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +1 -0
  200. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +50 -0
  201. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +135 -0
  202. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +1 -0
  203. package/dist/src/nile-virtual-table-body/renderer.d.ts +16 -0
  204. package/dist/src/nile-virtual-table-body/renderer.js +49 -0
  205. package/dist/src/nile-virtual-table-body/renderer.js.map +1 -0
  206. package/dist/tsconfig.tsbuildinfo +1 -1
  207. package/package.json +3 -2
  208. package/src/index.ts +2 -1
  209. package/src/internal/resizable-table-helper.ts +31 -8
  210. package/src/nile-code-editor/nile-code-editor.ts +25 -6
  211. package/src/nile-code-editor/theme.ts +11 -1
  212. package/src/nile-option/nile-option.ts +3 -0
  213. package/src/nile-option-group/index.ts +1 -0
  214. package/src/nile-option-group/nile-option-group.css.ts +60 -0
  215. package/src/nile-option-group/nile-option-group.interface.ts +25 -0
  216. package/src/nile-option-group/nile-option-group.ts +84 -0
  217. package/src/nile-select/nile-select.interface.ts +5 -0
  218. package/src/nile-select/nile-select.ts +74 -2
  219. package/src/nile-table-body/nile-table-body.ts +3 -27
  220. package/src/nile-table-cell-item/nile-table-cell-item.ts +15 -1
  221. package/src/nile-table-header-item/nile-table-header-item.ts +15 -1
  222. package/src/nile-table-row/nile-table-row.css.ts +0 -47
  223. package/src/nile-table-row/nile-table-row.ts +5 -87
  224. package/vscode-html-custom-data.json +37 -29
  225. package/dist/aquera-nile-elements-0.1.57-beta-2.0.tgz +0 -0
  226. package/dist/axe.min-2b379f29.cjs.js +0 -12
  227. package/dist/axe.min-2b379f29.cjs.js.map +0 -1
  228. package/dist/axe.min-c2cd8733.esm.js +0 -12
  229. package/dist/fixture-add72f26.esm.js +0 -569
  230. package/dist/fixture-c1bd203f.cjs.js +0 -395
  231. package/dist/fixture-c1bd203f.cjs.js.map +0 -1
  232. package/dist/fixture-cb376a7f.cjs.js +0 -395
  233. package/dist/fixture-cb376a7f.cjs.js.map +0 -1
  234. package/dist/fixture-f2693d97.esm.js +0 -569
  235. package/dist/src/internal/expandable-row-helper.d.ts +0 -13
  236. package/dist/src/internal/expandable-row-helper.js +0 -37
  237. package/dist/src/internal/expandable-row-helper.js.map +0 -1
  238. package/dist/src/internal/expandable-row-styles.d.ts +0 -11
  239. package/dist/src/internal/expandable-row-styles.js +0 -27
  240. package/dist/src/internal/expandable-row-styles.js.map +0 -1
  241. package/dist/src/internal/table-expandable-helper.d.ts +0 -0
  242. package/dist/src/internal/table-expandable-helper.js +0 -2
  243. package/dist/src/internal/table-expandable-helper.js.map +0 -1
  244. package/dist/src/internal/table-row-expandable-helper.d.ts +0 -12
  245. package/dist/src/internal/table-row-expandable-helper.js +0 -32
  246. package/dist/src/internal/table-row-expandable-helper.js.map +0 -1
  247. package/dist/src/internal/table-row-expandable-styles.d.ts +0 -11
  248. package/dist/src/internal/table-row-expandable-styles.js +0 -12
  249. package/dist/src/internal/table-row-expandable-styles.js.map +0 -1
  250. package/dist/src/nile-group-header/index.d.ts +0 -1
  251. package/dist/src/nile-group-header/index.js +0 -2
  252. package/dist/src/nile-group-header/index.js.map +0 -1
  253. package/dist/src/nile-group-header/nile-group-header.css.d.ts +0 -12
  254. package/dist/src/nile-group-header/nile-group-header.css.js +0 -30
  255. package/dist/src/nile-group-header/nile-group-header.css.js.map +0 -1
  256. package/dist/src/nile-group-header/nile-group-header.d.ts +0 -19
  257. package/dist/src/nile-group-header/nile-group-header.js +0 -36
  258. package/dist/src/nile-group-header/nile-group-header.js.map +0 -1
  259. package/dist/src/nile-group-header/nile-option-header.css.d.ts +0 -12
  260. package/dist/src/nile-group-header/nile-option-header.css.js +0 -30
  261. package/dist/src/nile-group-header/nile-option-header.css.js.map +0 -1
  262. package/dist/src/nile-group-header/nile-option-header.d.ts +0 -33
  263. package/dist/src/nile-group-header/nile-option-header.js +0 -51
  264. package/dist/src/nile-group-header/nile-option-header.js.map +0 -1
  265. package/dist/src/nile-option-header/index.d.ts +0 -1
  266. package/dist/src/nile-option-header/index.js +0 -2
  267. package/dist/src/nile-option-header/index.js.map +0 -1
  268. package/dist/src/nile-option-header/nile-option-header.css.d.ts +0 -12
  269. package/dist/src/nile-option-header/nile-option-header.css.js +0 -30
  270. package/dist/src/nile-option-header/nile-option-header.css.js.map +0 -1
  271. package/dist/src/nile-option-header/nile-option-header.d.ts +0 -33
  272. package/dist/src/nile-option-header/nile-option-header.js +0 -51
  273. package/dist/src/nile-option-header/nile-option-header.js.map +0 -1
  274. package/dist/src/nile-table-row/TableRowExpandableHelper.d.ts +0 -9
  275. package/dist/src/nile-table-row/TableRowExpandableHelper.js +0 -26
  276. package/dist/src/nile-table-row/TableRowExpandableHelper.js.map +0 -1
  277. package/dist/src/nile-table-row/helper.ts.d.ts +0 -37
  278. package/dist/src/nile-table-row/helper.ts.js +0 -105
  279. package/dist/src/nile-table-row/helper.ts.js.map +0 -1
  280. package/dist/src/nile-table-row/nile-table-row-expandable.d.ts +0 -37
  281. package/dist/src/nile-table-row/nile-table-row-expandable.js +0 -105
  282. package/dist/src/nile-table-row/nile-table-row-expandable.js.map +0 -1
  283. package/dist/src/nile-table-row-expandable/index.d.ts +0 -1
  284. package/dist/src/nile-table-row-expandable/index.js +0 -2
  285. package/dist/src/nile-table-row-expandable/index.js.map +0 -1
  286. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.d.ts +0 -12
  287. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.js +0 -17
  288. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.js.map +0 -1
  289. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.d.ts +0 -37
  290. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.js +0 -103
  291. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.js.map +0 -1
  292. package/dist/src/nile-tooltip/nile-tooltip-utils.d.ts +0 -18
  293. package/dist/src/nile-tooltip/nile-tooltip-utils.js +0 -216
  294. package/dist/src/nile-tooltip/nile-tooltip-utils.js.map +0 -1
  295. package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +0 -1
  296. package/dist/src/nile-tooltip/nile-tooltip.test.js +0 -148
  297. package/dist/src/nile-tooltip/nile-tooltip.test.js.map +0 -1
@@ -1,26 +0,0 @@
1
- import { html } from 'lit';
2
- /**
3
- * Helper class to manage expandable content functionality for nile-table-row component
4
- */
5
- export class TableRowExpandableHelper {
6
- constructor(component) {
7
- this.component = component;
8
- }
9
- renderExpandableContent() {
10
- const component = this.component;
11
- return html `
12
- <div class="expandable-content">
13
- <nile-table-row-expandable
14
- expandable
15
- >
16
- <slot name="expandableIcon">
17
-
18
- </slot>
19
- <slot></slot>
20
- <slot name="expanded"></slot>
21
- </nile-table-row-expandable>
22
- </div>
23
- `;
24
- }
25
- }
26
- //# sourceMappingURL=TableRowExpandableHelper.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"TableRowExpandableHelper.js","sourceRoot":"","sources":["../../../src/nile-table-row/TableRowExpandableHelper.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,KAAK,CAAC;AAG3B;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAGpC,YAAY,SAAsB;QACjC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC5B,CAAC;IAED,uBAAuB;QACtB,MAAM,SAAS,GAAG,IAAI,CAAC,SAAgB,CAAC;QAExC,OAAO,IAAI,CAAA;;;;;;;;;;;;KAYR,CAAC;IACL,CAAC;CACD","sourcesContent":["import { html } from 'lit';\nimport type NileElement from '../internal/nile-element';\n\n/**\n * Helper class to manage expandable content functionality for nile-table-row component\n */\nexport class TableRowExpandableHelper {\n\tprivate component: NileElement;\n\n\tconstructor(component: NileElement) {\n\t\tthis.component = component;\n\t}\n\n\trenderExpandableContent(): any {\n\t\tconst component = this.component as any;\n\n\t\treturn html`\n <div class=\"expandable-content\">\n <nile-table-row-expandable\n\t\t\t\t\texpandable\n\t\t\t\t>\n\t\t\t\t\t<slot name=\"expandableIcon\">\n\t\t\t\t\t\t\n\t\t\t\t\t</slot>\n\t\t\t\t\t<slot></slot>\n\t\t\t\t\t<slot name=\"expanded\"></slot>\n\t\t\t\t</nile-table-row-expandable>\n </div>\n `;\n\t}\n}"]}
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2025
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { CSSResultArray, TemplateResult } from 'lit';
8
- import NileElement from '../internal/nile-element';
9
- /**
10
- *nile-table-row component.
11
- *
12
- * @tag nile-table-row
13
- *
14
- */
15
- export declare class NileTableRowExpandable extends NileElement {
16
- /**
17
- * The styles for TableRow
18
- * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
19
- */
20
- static get styles(): CSSResultArray;
21
- /**
22
- * Render method
23
- * @slot This is a slot test
24
- */
25
- expandable: boolean;
26
- expanded: boolean;
27
- private _expandedSlot;
28
- private toggleExpand;
29
- private handleSortingAlter;
30
- render(): TemplateResult;
31
- }
32
- export default NileTableRowExpandable;
33
- declare global {
34
- interface HTMLElementTagNameMap {
35
- 'nile-table-row-expandable-sdf': NileTableRowExpandable;
36
- }
37
- }
@@ -1,105 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2025
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { __decorate } from "tslib";
8
- import { html, } from 'lit';
9
- import { customElement, query, property } from 'lit/decorators.js';
10
- import { styles } from './nile-table-row.css';
11
- import NileElement from '../internal/nile-element';
12
- /**
13
- *nile-table-row component.
14
- *
15
- * @tag nile-table-row
16
- *
17
- */
18
- let NileTableRowExpandable = class NileTableRowExpandable extends NileElement {
19
- constructor() {
20
- super(...arguments);
21
- /* #endregion */
22
- /* #region Methods */
23
- /**
24
- * Render method
25
- * @slot This is a slot test
26
- */
27
- this.expandable = false;
28
- this.expanded = false;
29
- /* #endregion */
30
- }
31
- /**
32
- * The styles for TableRow
33
- * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
34
- */
35
- static get styles() {
36
- return [styles];
37
- }
38
- toggleExpand(e) {
39
- this.expanded = !this.expanded;
40
- this.dispatchEvent(new CustomEvent('nile-change', {
41
- detail: { expanded: this.expanded },
42
- bubbles: true,
43
- composed: true,
44
- }));
45
- }
46
- handleSortingAlter(event) {
47
- const header_items = [
48
- ...this.querySelectorAll('nile-table-header-item'),
49
- ];
50
- for (let i = 0; i < header_items.length; i++) {
51
- const header = header_items[i];
52
- const haveIcon = header.textContent == event.detail.value.curr_sort_string;
53
- if (!haveIcon) {
54
- header.sorting_ct = 0;
55
- }
56
- }
57
- }
58
- render() {
59
- return html `
60
- <div part="row-container" class="row-container">
61
- <div
62
- part="nile-row"
63
- class="row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}"
64
- @nile-click-sort="${this.handleSortingAlter}"
65
- >
66
- ${this.expandable
67
- ? html `
68
- <slot name="expandableIcon">
69
- <nile-icon
70
- class="expand-icon"
71
- name="${this.expanded ? 'chevron-up' : 'chevron-down'}"
72
- @click=${this.toggleExpand}
73
- role="button"
74
- size="10"
75
- aria-label="${this.expanded ? 'Collapse row' : 'Expand row'}">
76
- </nile-icon> </slot>`
77
- : null}
78
- <slot></slot>
79
- </div>
80
-
81
- ${this.expandable && this.expanded
82
- ? html `
83
- <div class="expanded-content">
84
- <slot name="expanded"></slot>
85
- </div>`
86
- : null}
87
- </div>
88
- `;
89
- }
90
- };
91
- __decorate([
92
- property({ type: Boolean, reflect: true })
93
- ], NileTableRowExpandable.prototype, "expandable", void 0);
94
- __decorate([
95
- property({ type: Boolean, reflect: true })
96
- ], NileTableRowExpandable.prototype, "expanded", void 0);
97
- __decorate([
98
- query('slot[name="expanded"]')
99
- ], NileTableRowExpandable.prototype, "_expandedSlot", void 0);
100
- NileTableRowExpandable = __decorate([
101
- customElement('nile-table-row-expandable')
102
- ], NileTableRowExpandable);
103
- export { NileTableRowExpandable };
104
- export default NileTableRowExpandable;
105
- //# sourceMappingURL=helper.ts.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helper.ts.js","sourceRoot":"","sources":["../../../src/nile-table-row/helper.ts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAEN,IAAI,GAGJ,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;GAKG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,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C,kBAAkB;;cAEzC,IAAI,CAAC,UAAU;YACzB,CAAC,CAAC,IAAI,CAAA;;;;2BAIiB,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc;2BAC7C,IAAI,CAAC,YAAY;;;gCAGZ,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC,YAAY;qCACxC;YACjC,CAAC,CAAC,IAAI;;;;YAIE,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ;YACxC,CAAC,CAAC,IAAI,CAAA;;;uBAGa;YACnB,CAAC,CAAC,IAAI;;OAEH,CAAC;IACP,CAAC;CAED,CAAA;AA/D4C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0DAAoB;AACnB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDAAkB;AAGrD;IADP,KAAK,CAAC,uBAAuB,CAAC;6DACS;AAtB5B,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CAiFlC;;AACD,eAAe,sBAAsB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2025\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\tLitElement,\n\thtml,\n\tCSSResultArray,\n\tTemplateResult,\n} from 'lit';\nimport { customElement, query, property } from 'lit/decorators.js';\nimport { styles } from './nile-table-row.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n *nile-table-row component.\n *\n * @tag nile-table-row\n *\n */\n@customElement('nile-table-row-expandable')\nexport class NileTableRowExpandable extends NileElement {\n\t/**\n\t * The styles for TableRow\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\n\t@property({ type: Boolean, reflect: true }) expandable = false;\n\t@property({ type: Boolean, reflect: true }) expanded = false;\n\n\t@query('slot[name=\"expanded\"]')\n\tprivate _expandedSlot!: HTMLSlotElement;\n\n\n\tprivate toggleExpand(e: MouseEvent): void {\n\t\tthis.expanded = !this.expanded;\n\t\tthis.dispatchEvent(new CustomEvent('nile-change', {\n\t\t\tdetail: { expanded: this.expanded },\n\t\t\tbubbles: true,\n\t\t\tcomposed: true,\n\t\t}));\n\t}\n\n\n\tprivate handleSortingAlter(event: CustomEvent) {\n\t\tconst header_items: any = [\n\t\t\t...this.querySelectorAll('nile-table-header-item'),\n\t\t];\n\t\tfor (let i = 0; i < header_items.length; i++) {\n\t\t\tconst header = header_items[i];\n\t\t\tconst haveIcon = header.textContent == event.detail.value.curr_sort_string;\n\t\t\tif (!haveIcon) {\n\t\t\t\theader.sorting_ct = 0;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic render(): TemplateResult {\n\t\treturn html`\n <div part=\"row-container\" class=\"row-container\">\n <div\n part=\"nile-row\"\n class=\"row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}\"\n @nile-click-sort=\"${this.handleSortingAlter}\"\n >\n ${this.expandable\n\t\t\t\t? html`\n <slot name=\"expandableIcon\">\n <nile-icon\n class=\"expand-icon\"\n name=\"${this.expanded ? 'chevron-up' : 'chevron-down'}\"\n @click=${this.toggleExpand}\n role=\"button\"\n size=\"10\"\n aria-label=\"${this.expanded ? 'Collapse row' : 'Expand row'}\">\n </nile-icon> </slot>`\n\t\t\t\t: null}\n <slot></slot>\n </div>\n \n ${this.expandable && this.expanded\n\t\t\t\t? html`\n <div class=\"expanded-content\">\n <slot name=\"expanded\"></slot>\n </div>`\n\t\t\t\t: null}\n </div>\n `;\n\t}\n\t/* #endregion */\n}\nexport default NileTableRowExpandable;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-table-row-expandable-sdf': NileTableRowExpandable;\n\t}\n}\n"]}
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2025
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { CSSResultArray, TemplateResult } from 'lit';
8
- import NileElement from '../internal/nile-element';
9
- /**
10
- *nile-table-row component.
11
- *
12
- * @tag nile-table-row
13
- *
14
- */
15
- export declare class NileTableRowExpandable extends NileElement {
16
- /**
17
- * The styles for TableRow
18
- * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
19
- */
20
- static get styles(): CSSResultArray;
21
- /**
22
- * Render method
23
- * @slot This is a slot test
24
- */
25
- expandable: boolean;
26
- expanded: boolean;
27
- private _expandedSlot;
28
- private toggleExpand;
29
- private handleSortingAlter;
30
- render(): TemplateResult;
31
- }
32
- export default NileTableRowExpandable;
33
- declare global {
34
- interface HTMLElementTagNameMap {
35
- 'nile-table-row-expandable-sdf': NileTableRowExpandable;
36
- }
37
- }
@@ -1,105 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2025
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { __decorate } from "tslib";
8
- import { html, } from 'lit';
9
- import { customElement, query, property } from 'lit/decorators.js';
10
- import { styles } from './nile-table-row.css';
11
- import NileElement from '../internal/nile-element';
12
- /**
13
- *nile-table-row component.
14
- *
15
- * @tag nile-table-row
16
- *
17
- */
18
- let NileTableRowExpandable = class NileTableRowExpandable extends NileElement {
19
- constructor() {
20
- super(...arguments);
21
- /* #endregion */
22
- /* #region Methods */
23
- /**
24
- * Render method
25
- * @slot This is a slot test
26
- */
27
- this.expandable = false;
28
- this.expanded = false;
29
- /* #endregion */
30
- }
31
- /**
32
- * The styles for TableRow
33
- * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
34
- */
35
- static get styles() {
36
- return [styles];
37
- }
38
- toggleExpand(e) {
39
- this.expanded = !this.expanded;
40
- this.dispatchEvent(new CustomEvent('nile-change', {
41
- detail: { expanded: this.expanded },
42
- bubbles: true,
43
- composed: true,
44
- }));
45
- }
46
- handleSortingAlter(event) {
47
- const header_items = [
48
- ...this.querySelectorAll('nile-table-header-item'),
49
- ];
50
- for (let i = 0; i < header_items.length; i++) {
51
- const header = header_items[i];
52
- const haveIcon = header.textContent == event.detail.value.curr_sort_string;
53
- if (!haveIcon) {
54
- header.sorting_ct = 0;
55
- }
56
- }
57
- }
58
- render() {
59
- return html `
60
- <div part="row-container" class="row-container">
61
- <div
62
- part="nile-row"
63
- class="row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}"
64
- @nile-click-sort="${this.handleSortingAlter}"
65
- >
66
- ${this.expandable
67
- ? html `
68
- <slot name="expandableIcon">
69
- <nile-icon
70
- class="expand-icon"
71
- name="${this.expanded ? 'chevron-up' : 'chevron-down'}"
72
- @click=${this.toggleExpand}
73
- role="button"
74
- size="10"
75
- aria-label="${this.expanded ? 'Collapse row' : 'Expand row'}">
76
- </nile-icon> </slot>`
77
- : null}
78
- <slot></slot>
79
- </div>
80
-
81
- ${this.expandable && this.expanded
82
- ? html `
83
- <div class="expanded-content">
84
- <slot name="expanded"></slot>
85
- </div>`
86
- : null}
87
- </div>
88
- `;
89
- }
90
- };
91
- __decorate([
92
- property({ type: Boolean, reflect: true })
93
- ], NileTableRowExpandable.prototype, "expandable", void 0);
94
- __decorate([
95
- property({ type: Boolean, reflect: true })
96
- ], NileTableRowExpandable.prototype, "expanded", void 0);
97
- __decorate([
98
- query('slot[name="expanded"]')
99
- ], NileTableRowExpandable.prototype, "_expandedSlot", void 0);
100
- NileTableRowExpandable = __decorate([
101
- customElement('nile-table-row-expandable')
102
- ], NileTableRowExpandable);
103
- export { NileTableRowExpandable };
104
- export default NileTableRowExpandable;
105
- //# sourceMappingURL=nile-table-row-expandable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-table-row-expandable.js","sourceRoot":"","sources":["../../../src/nile-table-row/nile-table-row-expandable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAEN,IAAI,GAGJ,MAAM,KAAK,CAAC;AACb,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAEnD;;;;;GAKG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,WAAW;IAAhD;;QASN,gBAAgB;QAEhB,qBAAqB;QAErB;;;WAGG;QAEyC,eAAU,GAAG,KAAK,CAAC;QACnB,aAAQ,GAAG,KAAK,CAAC;QA6D7D,gBAAgB;IACjB,CAAC;IAhFA;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IAkBO,YAAY,CAAC,CAAa;QACjC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CAAC,aAAa,EAAE;YACjD,MAAM,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE;YACnC,OAAO,EAAE,IAAI;YACb,QAAQ,EAAE,IAAI;SACd,CAAC,CAAC,CAAC;IACL,CAAC;IAGO,kBAAkB,CAAC,KAAkB;QAC5C,MAAM,YAAY,GAAQ;YACzB,GAAG,IAAI,CAAC,gBAAgB,CAAC,wBAAwB,CAAC;SAClD,CAAC;QACF,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,YAAY,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;YAC9C,MAAM,MAAM,GAAG,YAAY,CAAC,CAAC,CAAC,CAAC;YA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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\tLitElement,\n\thtml,\n\tCSSResultArray,\n\tTemplateResult,\n} from 'lit';\nimport { customElement, query, property } from 'lit/decorators.js';\nimport { styles } from './nile-table-row.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n *nile-table-row component.\n *\n * @tag nile-table-row\n *\n */\n@customElement('nile-table-row-expandable')\nexport class NileTableRowExpandable extends NileElement {\n\t/**\n\t * The styles for TableRow\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\n\t@property({ type: Boolean, reflect: true }) expandable = false;\n\t@property({ type: Boolean, reflect: true }) expanded = false;\n\n\t@query('slot[name=\"expanded\"]')\n\tprivate _expandedSlot!: HTMLSlotElement;\n\n\n\tprivate toggleExpand(e: MouseEvent): void {\n\t\tthis.expanded = !this.expanded;\n\t\tthis.dispatchEvent(new CustomEvent('nile-change', {\n\t\t\tdetail: { expanded: this.expanded },\n\t\t\tbubbles: true,\n\t\t\tcomposed: true,\n\t\t}));\n\t}\n\n\n\tprivate handleSortingAlter(event: CustomEvent) {\n\t\tconst header_items: any = [\n\t\t\t...this.querySelectorAll('nile-table-header-item'),\n\t\t];\n\t\tfor (let i = 0; i < header_items.length; i++) {\n\t\t\tconst header = header_items[i];\n\t\t\tconst haveIcon = header.textContent == event.detail.value.curr_sort_string;\n\t\t\tif (!haveIcon) {\n\t\t\t\theader.sorting_ct = 0;\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic render(): TemplateResult {\n\t\treturn html`\n <div part=\"row-container\" class=\"row-container\">\n <div\n part=\"nile-row\"\n class=\"row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}\"\n @nile-click-sort=\"${this.handleSortingAlter}\"\n >\n ${this.expandable\n\t\t\t\t? html`\n <slot name=\"expandableIcon\">\n <nile-icon\n class=\"expand-icon\"\n name=\"${this.expanded ? 'chevron-up' : 'chevron-down'}\"\n @click=${this.toggleExpand}\n role=\"button\"\n size=\"10\"\n aria-label=\"${this.expanded ? 'Collapse row' : 'Expand row'}\">\n </nile-icon> </slot>`\n\t\t\t\t: null}\n <slot></slot>\n </div>\n \n ${this.expandable && this.expanded\n\t\t\t\t? html`\n <div class=\"expanded-content\">\n <slot name=\"expanded\"></slot>\n </div>`\n\t\t\t\t: null}\n </div>\n `;\n\t}\n\t/* #endregion */\n}\nexport default NileTableRowExpandable;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-table-row-expandable-sdf': NileTableRowExpandable;\n\t}\n}\n"]}
@@ -1 +0,0 @@
1
- export { NileTableRowExpandable } from './nile-table-row-expandable';
@@ -1,2 +0,0 @@
1
- export { NileTableRowExpandable } from './nile-table-row-expandable';
2
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/nile-table-row-expandable/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC","sourcesContent":["export { NileTableRowExpandable } from './nile-table-row-expandable';"]}
@@ -1,12 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2023
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- /**
8
- * TableRowExpandable CSS
9
- */
10
- export declare const styles: import("lit").CSSResult;
11
- declare const _default: import("lit").CSSResult[];
12
- export default _default;
@@ -1,17 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2023
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { css } from 'lit';
8
- /**
9
- * TableRowExpandable CSS
10
- */
11
- export const styles = css `
12
- :host {
13
-
14
- }
15
- `;
16
- export default [styles];
17
- //# sourceMappingURL=nile-table-row-expandable.css.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-table-row-expandable.css.js","sourceRoot":"","sources":["../../../src/nile-table-row-expandable/nile-table-row-expandable.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;CAIxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * TableRowExpandable CSS\n */\nexport const styles = css`\n\t:host {\n\n\t}\n`;\n\nexport default [styles];"]}
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2023
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { CSSResultArray, TemplateResult } from 'lit';
8
- import NileElement from '../internal/nile-element';
9
- /**
10
- * Nile table-row-expandable component.
11
- *
12
- * @tag nile-table-row-expandable
13
- *
14
- */
15
- export declare class NileTableRowExpandable extends NileElement {
16
- /**
17
- * The styles for nile-table-row-expandable
18
- * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
19
- */
20
- static get styles(): CSSResultArray;
21
- expandable: boolean;
22
- expanded: boolean;
23
- private _expandedSlot;
24
- private toggleExpand;
25
- private handleSortingAlter;
26
- /**
27
- * Render method
28
- * @slot This is a slot test
29
- */
30
- render(): TemplateResult;
31
- }
32
- export default NileTableRowExpandable;
33
- declare global {
34
- interface HTMLElementTagNameMap {
35
- 'nile-table-row-expandable': NileTableRowExpandable;
36
- }
37
- }
@@ -1,103 +0,0 @@
1
- /**
2
- * Copyright Aquera Inc 2023
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { __decorate } from "tslib";
8
- import { html } from 'lit';
9
- import { customElement, property, query } from 'lit/decorators.js';
10
- import { styles } from './nile-table-row-expandable.css';
11
- import NileElement from '../internal/nile-element';
12
- /**
13
- * Nile table-row-expandable component.
14
- *
15
- * @tag nile-table-row-expandable
16
- *
17
- */
18
- let NileTableRowExpandable = class NileTableRowExpandable extends NileElement {
19
- constructor() {
20
- super(...arguments);
21
- this.expandable = false;
22
- this.expanded = false;
23
- /* #endregion */
24
- }
25
- /**
26
- * The styles for nile-table-row-expandable
27
- * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`
28
- */
29
- static get styles() {
30
- return [styles];
31
- }
32
- toggleExpand(e) {
33
- this.expanded = !this.expanded;
34
- this.dispatchEvent(new CustomEvent('nile-change', {
35
- detail: { expanded: this.expanded },
36
- bubbles: true,
37
- composed: true,
38
- }));
39
- }
40
- handleSortingAlter(event) {
41
- const header_items = [
42
- ...this.querySelectorAll('nile-table-header-item'),
43
- ];
44
- for (let i = 0; i < header_items.length; i++) {
45
- const header = header_items[i];
46
- const haveIcon = header.textContent == event.detail.value.curr_sort_string;
47
- if (!haveIcon) {
48
- header.sorting_ct = 0;
49
- }
50
- }
51
- }
52
- /**
53
- * Render method
54
- * @slot This is a slot test
55
- */
56
- render() {
57
- return html `
58
- <div part="row-container" class="row-container">
59
- <div
60
- part="nile-row"
61
- class="row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}"
62
- @nile-click-sort="${this.handleSortingAlter}"
63
- >
64
- ${this.expandable
65
- ? html `
66
- <slot name="expandableIcon">
67
- <nile-icon
68
- class="expand-icon"
69
- name="${this.expanded ? 'chevron-up' : 'chevron-down'}"
70
- @click=${this.toggleExpand}
71
- role="button"
72
- size="10"
73
- aria-label="${this.expanded ? 'Collapse row' : 'Expand row'}">
74
- </nile-icon> </slot>`
75
- : null}
76
- <slot></slot>
77
- </div>
78
-
79
- ${this.expandable && this.expanded
80
- ? html `
81
- <div class="expanded-content">
82
- <slot name="expanded"></slot>
83
- </div>`
84
- : null}
85
- </div>
86
- `;
87
- }
88
- };
89
- __decorate([
90
- property({ type: Boolean, reflect: true })
91
- ], NileTableRowExpandable.prototype, "expandable", void 0);
92
- __decorate([
93
- property({ type: Boolean, reflect: true })
94
- ], NileTableRowExpandable.prototype, "expanded", void 0);
95
- __decorate([
96
- query('slot[name="expanded"]')
97
- ], NileTableRowExpandable.prototype, "_expandedSlot", void 0);
98
- NileTableRowExpandable = __decorate([
99
- customElement('nile-table-row-expandable')
100
- ], NileTableRowExpandable);
101
- export { NileTableRowExpandable };
102
- export default NileTableRowExpandable;
103
- //# sourceMappingURL=nile-table-row-expandable.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nile-table-row-expandable.js","sourceRoot":"","sources":["../../../src/nile-table-row-expandable/nile-table-row-expandable.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;;AAEH,OAAO,EAAa,IAAI,EAAiC,MAAM,KAAK,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AACzD,OAAO,WAAW,MAAM,0BAA0B,CAAC;AAGnD;;;;;GAKG;AAEI,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,WAAW;IAAhD;;QAUsC,eAAU,GAAG,KAAK,CAAC;QACnB,aAAQ,GAAG,KAAK,CAAC;QAkE7D,gBAAgB;IACjB,CAAC;IA5EA;;;OAGG;IACI,MAAM,KAAK,MAAM;QACvB,OAAO,CAAC,MAAM,CAAC,CAAC;IACjB,CAAC;IASO,YAAY,CAAC,CAAa;QACjC,IAAI,CAAC,QAAQ,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QAC/B,IAAI,CAAC,aAAa,CAAC,IAAI,WAAW,CA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;;;uBAGa;YACnB,CAAC,CAAC,IAAI;;OAEH,CAAC;IACP,CAAC;CAGD,CAAA;AApE4C;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;0DAAoB;AACnB;IAA3C,QAAQ,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;wDAAkB;AAGrD;IADP,KAAK,CAAC,uBAAuB,CAAC;6DACS;AAd5B,sBAAsB;IADlC,aAAa,CAAC,2BAA2B,CAAC;GAC9B,sBAAsB,CA8ElC;;AAED,eAAe,sBAAsB,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, html, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property, query} from 'lit/decorators.js';\nimport { styles } from './nile-table-row-expandable.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile table-row-expandable component.\n *\n * @tag nile-table-row-expandable\n *\n */\n@customElement('nile-table-row-expandable')\nexport class NileTableRowExpandable extends NileElement {\n\n\t/**\n\t * The styles for nile-table-row-expandable\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\t\n\t@property({ type: Boolean, reflect: true }) expandable = false;\n\t@property({ type: Boolean, reflect: true }) expanded = false;\n\n\t@query('slot[name=\"expanded\"]')\n\tprivate _expandedSlot!: HTMLSlotElement;\n\n\n\tprivate toggleExpand(e: MouseEvent): void {\n\t\tthis.expanded = !this.expanded;\n\t\tthis.dispatchEvent(new CustomEvent('nile-change', {\n\t\t\tdetail: { expanded: this.expanded },\n\t\t\tbubbles: true,\n\t\t\tcomposed: true,\n\t\t}));\n\t}\n\n\n\tprivate handleSortingAlter(event: CustomEvent) {\n\t\tconst header_items: any = [\n\t\t\t...this.querySelectorAll('nile-table-header-item'),\n\t\t];\n\t\tfor (let i = 0; i < header_items.length; i++) {\n\t\t\tconst header = header_items[i];\n\t\t\tconst haveIcon = header.textContent == event.detail.value.curr_sort_string;\n\t\t\tif (!haveIcon) {\n\t\t\t\theader.sorting_ct = 0;\n\t\t\t}\n\t\t}\n\t}\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 <div part=\"row-container\" class=\"row-container\">\n <div\n part=\"nile-row\"\n class=\"row ${this.expandable ? 'expandable' : ''} ${this.expanded ? 'expanded' : ''}\"\n @nile-click-sort=\"${this.handleSortingAlter}\"\n >\n ${this.expandable\n\t\t\t\t? html`\n <slot name=\"expandableIcon\">\n <nile-icon\n class=\"expand-icon\"\n name=\"${this.expanded ? 'chevron-up' : 'chevron-down'}\"\t\n @click=${this.toggleExpand}\n role=\"button\"\n size=\"10\"\n aria-label=\"${this.expanded ? 'Collapse row' : 'Expand row'}\">\n </nile-icon> </slot>`\n\t\t\t\t: null}\n <slot></slot>\n </div>\n \n ${this.expandable && this.expanded\n\t\t\t\t? html`\n <div class=\"expanded-content\">\n <slot name=\"expanded\"></slot>\n </div>`\n\t\t\t\t: null}\n </div>\n `;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileTableRowExpandable;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-row-expandable': NileTableRowExpandable;\n }\n}"]}
@@ -1,18 +0,0 @@
1
- export declare function isInViewport(element: HTMLElement): boolean;
2
- export declare function getValidTooltipPosition(triggerRect: DOMRect, tooltipRect: DOMRect, originalPlacement: string, distance: number, skidding: number, caretSize: number, viewportWidth: number, viewportHeight: number): {
3
- top: number;
4
- left: number;
5
- placement: string;
6
- };
7
- export interface CaretPositionInput {
8
- placement: string;
9
- tooltipRect: DOMRect;
10
- triggerRect: DOMRect;
11
- caretSize: number;
12
- left: number;
13
- top: number;
14
- }
15
- export declare function getCaretPosition({ placement, tooltipRect, triggerRect, caretSize, left, top }: CaretPositionInput): {
16
- caretLeft: number;
17
- caretTop: number;
18
- };