@aquera/nile-elements 0.1.61-beta-1.0 → 0.1.62

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 (569) hide show
  1. package/README.md +22 -0
  2. package/demo/index.html +10 -45
  3. package/dist/{fixture-f2693d97.esm.js → fixture-e7023246.esm.js} +1 -1
  4. package/dist/{fixture-324a7ef9.cjs.js → fixture-fe6c932e.cjs.js} +2 -2
  5. package/dist/{fixture-324a7ef9.cjs.js.map → fixture-fe6c932e.cjs.js.map} +1 -1
  6. package/dist/index.cjs.js +1 -1
  7. package/dist/index.esm.js +1 -1
  8. package/dist/index.js +1683 -573
  9. package/dist/internal/form.cjs.js +1 -1
  10. package/dist/internal/form.cjs.js.map +1 -1
  11. package/dist/internal/form.esm.js +1 -1
  12. package/dist/internal/resizable-table-helper.cjs.js +2 -0
  13. package/dist/internal/resizable-table-helper.cjs.js.map +1 -0
  14. package/dist/internal/resizable-table-helper.esm.js +1 -0
  15. package/dist/internal/resizable-table-styles.cjs.js +2 -0
  16. package/dist/internal/resizable-table-styles.cjs.js.map +1 -0
  17. package/dist/internal/resizable-table-styles.esm.js +132 -0
  18. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  19. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  20. package/dist/nile-auto-complete/index.cjs.js +1 -1
  21. package/dist/nile-auto-complete/index.esm.js +1 -1
  22. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -17
  23. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  24. package/dist/nile-auto-complete/nile-auto-complete.esm.js +8 -29
  25. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  26. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
  27. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  28. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  29. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  30. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  31. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  32. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  33. package/dist/nile-button/nile-button.test.esm.js +1 -1
  34. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  35. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  36. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  37. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  38. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  39. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  40. package/dist/nile-card/nile-card.test.esm.js +1 -1
  41. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  42. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  43. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  44. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  45. package/dist/nile-chip/nile-chip.esm.js +1 -1
  46. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  47. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  48. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  49. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  50. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  51. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  52. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  53. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  54. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  55. package/dist/nile-empty-state/nile-empty-state.cjs.js +1 -1
  56. package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
  57. package/dist/nile-empty-state/nile-empty-state.esm.js +13 -13
  58. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  59. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  60. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  61. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  62. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  63. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  64. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  65. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  66. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  67. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  68. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  69. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  70. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  71. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  72. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  73. package/dist/nile-input/nile-input.test.esm.js +1 -1
  74. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  75. package/dist/nile-link/nile-link.test.esm.js +1 -1
  76. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  77. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  78. package/dist/nile-option/nile-option.cjs.js +1 -1
  79. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  80. package/dist/nile-option/nile-option.esm.js +2 -2
  81. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  82. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  83. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  84. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  85. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  86. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  87. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  88. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  89. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  90. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  91. package/dist/nile-select/index.cjs.js +1 -1
  92. package/dist/nile-select/index.esm.js +1 -1
  93. package/dist/nile-select/nile-select.cjs.js +1 -1
  94. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  95. package/dist/nile-select/nile-select.esm.js +2 -2
  96. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  97. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  98. package/dist/nile-select/nile-select.test.esm.js +2 -2
  99. package/dist/nile-select/virtual-scroll-helper.cjs.js +2 -0
  100. package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -0
  101. package/dist/nile-select/virtual-scroll-helper.esm.js +38 -0
  102. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  103. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  104. package/dist/nile-slider/nile-slider.css.cjs.js +1 -1
  105. package/dist/nile-slider/nile-slider.css.cjs.js.map +1 -1
  106. package/dist/nile-slider/nile-slider.css.esm.js +1 -1
  107. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  108. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  109. package/dist/nile-table-body/index.cjs.js +1 -1
  110. package/dist/nile-table-body/index.esm.js +1 -1
  111. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  112. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  113. package/dist/nile-table-body/nile-table-body.css.cjs.js +1 -1
  114. package/dist/nile-table-body/nile-table-body.css.cjs.js.map +1 -1
  115. package/dist/nile-table-body/nile-table-body.css.esm.js +4 -2
  116. package/dist/nile-table-body/nile-table-body.esm.js +3 -2
  117. package/dist/nile-table-cell-item/index.cjs.js +1 -1
  118. package/dist/nile-table-cell-item/index.esm.js +1 -1
  119. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
  120. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
  121. package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js +1 -1
  122. package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js.map +1 -1
  123. package/dist/nile-table-cell-item/nile-table-cell-item.css.esm.js +16 -3
  124. package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +8 -3
  125. package/dist/nile-table-header-item/index.cjs.js +1 -1
  126. package/dist/nile-table-header-item/index.esm.js +1 -1
  127. package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
  128. package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
  129. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js +1 -1
  130. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js.map +1 -1
  131. package/dist/nile-table-header-item/nile-table-header-item.css.esm.js +5 -2
  132. package/dist/nile-table-header-item/nile-table-header-item.esm.js +9 -8
  133. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  134. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  135. package/dist/nile-virtual-select/index.cjs.js +2 -0
  136. package/dist/nile-virtual-select/index.esm.js +1 -0
  137. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -0
  138. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -0
  139. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +2 -0
  140. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -0
  141. package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +477 -0
  142. package/dist/nile-virtual-select/nile-virtual-select.esm.js +227 -0
  143. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +2 -0
  144. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +1 -0
  145. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +93 -0
  146. package/dist/nile-virtual-select/renderer.cjs.js +2 -0
  147. package/dist/nile-virtual-select/renderer.cjs.js.map +1 -0
  148. package/dist/nile-virtual-select/renderer.esm.js +27 -0
  149. package/dist/nile-virtual-select/search-manager.cjs.js +2 -0
  150. package/dist/nile-virtual-select/search-manager.cjs.js.map +1 -0
  151. package/dist/nile-virtual-select/search-manager.esm.js +1 -0
  152. package/dist/nile-virtual-select/selection-manager.cjs.js +2 -0
  153. package/dist/nile-virtual-select/selection-manager.cjs.js.map +1 -0
  154. package/dist/nile-virtual-select/selection-manager.esm.js +1 -0
  155. package/dist/{nile-file-upload/types/file-upload.type.cjs.js → nile-virtual-select/types.cjs.js} +1 -1
  156. package/dist/nile-virtual-select/types.cjs.js.map +1 -0
  157. package/dist/src/index.d.ts +2 -0
  158. package/dist/src/index.js +2 -0
  159. package/dist/src/index.js.map +1 -1
  160. package/dist/src/internal/form.js +3 -3
  161. package/dist/src/internal/form.js.map +1 -1
  162. package/dist/src/internal/resizable-table-styles.js +12 -0
  163. package/dist/src/internal/resizable-table-styles.js.map +1 -1
  164. package/dist/src/nile-chip/nile-chip.js +10 -1
  165. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  166. package/dist/src/nile-empty-state/nile-empty-state.js +11 -11
  167. package/dist/src/nile-empty-state/nile-empty-state.js.map +1 -1
  168. package/dist/src/nile-option/nile-option.d.ts +2 -1
  169. package/dist/src/nile-option/nile-option.js +8 -5
  170. package/dist/src/nile-option/nile-option.js.map +1 -1
  171. package/dist/src/nile-select/nile-select.d.ts +11 -2
  172. package/dist/src/nile-select/nile-select.js +37 -18
  173. package/dist/src/nile-select/nile-select.js.map +1 -1
  174. package/dist/src/nile-table-body/nile-table-body.css.js +3 -0
  175. package/dist/src/nile-table-body/nile-table-body.css.js.map +1 -1
  176. package/dist/src/nile-table-body/nile-table-body.d.ts +2 -0
  177. package/dist/src/nile-table-body/nile-table-body.js +10 -0
  178. package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
  179. package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js +15 -1
  180. package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js.map +1 -1
  181. package/dist/src/nile-table-cell-item/nile-table-cell-item.d.ts +3 -0
  182. package/dist/src/nile-table-cell-item/nile-table-cell-item.js +27 -8
  183. package/dist/src/nile-table-cell-item/nile-table-cell-item.js.map +1 -1
  184. package/dist/src/nile-table-header-item/nile-table-header-item.css.js +4 -0
  185. package/dist/src/nile-table-header-item/nile-table-header-item.css.js.map +1 -1
  186. package/dist/src/nile-table-header-item/nile-table-header-item.d.ts +3 -0
  187. package/dist/src/nile-table-header-item/nile-table-header-item.js +22 -15
  188. package/dist/src/nile-table-header-item/nile-table-header-item.js.map +1 -1
  189. package/dist/tsconfig.tsbuildinfo +1 -1
  190. package/dist/virtualize-a4a40d96.esm.js +22 -0
  191. package/dist/virtualize-b6a2fbe0.cjs.js +18 -0
  192. package/dist/virtualize-b6a2fbe0.cjs.js.map +1 -0
  193. package/package.json +3 -3
  194. package/src/index.ts +4 -1
  195. package/src/internal/form.ts +3 -3
  196. package/src/internal/resizable-table-helper.ts +151 -0
  197. package/src/internal/resizable-table-styles.ts +156 -0
  198. package/src/nile-chip/nile-chip.ts +9 -1
  199. package/src/nile-empty-state/nile-empty-state.ts +11 -11
  200. package/src/nile-option/nile-option.ts +6 -2
  201. package/src/nile-select/nile-select.ts +35 -9
  202. package/src/nile-select/virtual-scroll-helper.ts +56 -0
  203. package/src/nile-slider/index.ts +1 -0
  204. package/src/nile-slider/nile-slider.css.ts +119 -0
  205. package/src/nile-slider/nile-slider.template.ts +77 -0
  206. package/src/nile-slider/nile-slider.ts +215 -0
  207. package/src/nile-slider/types/nile-slider.enums.ts +10 -0
  208. package/src/nile-slider/types/nile-slider.types.ts +13 -0
  209. package/src/nile-slider/utils/nile-slider.utils.ts +136 -0
  210. package/src/nile-table-body/nile-table-body.css.ts +3 -0
  211. package/src/nile-table-body/nile-table-body.ts +9 -0
  212. package/src/nile-table-cell-item/nile-table-cell-item.css.ts +15 -1
  213. package/src/nile-table-cell-item/nile-table-cell-item.ts +22 -5
  214. package/src/nile-table-header-item/nile-table-header-item.css.ts +4 -0
  215. package/src/nile-table-header-item/nile-table-header-item.ts +11 -5
  216. package/src/nile-virtual-select/index.ts +1 -0
  217. package/src/nile-virtual-select/nile-virtual-select.css.ts +491 -0
  218. package/src/nile-virtual-select/nile-virtual-select.test.ts +774 -0
  219. package/src/nile-virtual-select/nile-virtual-select.ts +1314 -0
  220. package/src/nile-virtual-select/renderer.ts +99 -0
  221. package/src/nile-virtual-select/search-manager.ts +50 -0
  222. package/src/nile-virtual-select/selection-manager.ts +75 -0
  223. package/src/nile-virtual-select/types.ts +54 -0
  224. package/vscode-html-custom-data.json +373 -50
  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-ba65eb22.esm.js +0 -569
  231. package/dist/fixture-c1bd203f.cjs.js +0 -395
  232. package/dist/fixture-c1bd203f.cjs.js.map +0 -1
  233. package/dist/fixture-cb376a7f.cjs.js +0 -395
  234. package/dist/fixture-cb376a7f.cjs.js.map +0 -1
  235. package/dist/lit-html-39a6718c.esm.js +0 -6
  236. package/dist/lit-html-9b3af046.cjs.js +0 -6
  237. package/dist/lit-html-9b3af046.cjs.js.map +0 -1
  238. package/dist/nile-file-preview/index.cjs.js +0 -2
  239. package/dist/nile-file-preview/index.esm.js +0 -1
  240. package/dist/nile-file-preview/nile-file-preview.cjs.js +0 -2
  241. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +0 -1
  242. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +0 -2
  243. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +0 -1
  244. package/dist/nile-file-preview/nile-file-preview.css.esm.js +0 -594
  245. package/dist/nile-file-preview/nile-file-preview.esm.js +0 -3
  246. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +0 -2
  247. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +0 -1
  248. package/dist/nile-file-preview/nile-file-preview.template.esm.js +0 -176
  249. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +0 -2
  250. package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +0 -1
  251. package/dist/nile-file-preview/nile-file-preview.test.esm.js +0 -1
  252. package/dist/nile-file-preview/types/index.cjs.js +0 -2
  253. package/dist/nile-file-preview/types/index.cjs.js.map +0 -1
  254. package/dist/nile-file-preview/types/index.esm.js +0 -1
  255. package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js +0 -2
  256. package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js.map +0 -1
  257. package/dist/nile-file-preview/types/nile-file-preview.enums.esm.js +0 -1
  258. package/dist/nile-file-preview/types/nile-file-preview.interface.cjs.js +0 -2
  259. package/dist/nile-file-preview/types/nile-file-preview.interface.cjs.js.map +0 -1
  260. package/dist/nile-file-preview/utils/index.cjs.js +0 -2
  261. package/dist/nile-file-preview/utils/index.cjs.js.map +0 -1
  262. package/dist/nile-file-preview/utils/index.esm.js +0 -1
  263. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +0 -2
  264. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +0 -1
  265. package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +0 -1
  266. package/dist/nile-file-upload/index.cjs.js +0 -2
  267. package/dist/nile-file-upload/index.cjs.js.map +0 -1
  268. package/dist/nile-file-upload/index.esm.js +0 -1
  269. package/dist/nile-file-upload/nile-file-upload.cjs.js +0 -2
  270. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +0 -1
  271. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +0 -2
  272. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +0 -1
  273. package/dist/nile-file-upload/nile-file-upload.css.esm.js +0 -585
  274. package/dist/nile-file-upload/nile-file-upload.esm.js +0 -3
  275. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +0 -10
  276. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +0 -1
  277. package/dist/nile-file-upload/nile-file-upload.template.esm.js +0 -109
  278. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +0 -2
  279. package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +0 -1
  280. package/dist/nile-file-upload/nile-file-upload.test.esm.js +0 -1
  281. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +0 -2
  282. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +0 -1
  283. package/dist/nile-file-upload/types/file-upload.enums.esm.js +0 -1
  284. package/dist/nile-file-upload/types/file-upload.type.cjs.js.map +0 -1
  285. package/dist/nile-file-upload/types/file-upload.type.esm.js +0 -1
  286. package/dist/nile-file-upload/types/index.cjs.js +0 -2
  287. package/dist/nile-file-upload/types/index.cjs.js.map +0 -1
  288. package/dist/nile-file-upload/types/index.esm.js +0 -1
  289. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +0 -2
  290. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +0 -1
  291. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +0 -1
  292. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +0 -3
  293. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +0 -1
  294. package/dist/nile-file-upload/utils/file-validation.util.esm.js +0 -1
  295. package/dist/src/nile-file-preview/index.d.ts +0 -1
  296. package/dist/src/nile-file-preview/index.js +0 -2
  297. package/dist/src/nile-file-preview/index.js.map +0 -1
  298. package/dist/src/nile-file-preview/nile-file-preview.css.d.ts +0 -12
  299. package/dist/src/nile-file-preview/nile-file-preview.css.js +0 -606
  300. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +0 -1
  301. package/dist/src/nile-file-preview/nile-file-preview.d.ts +0 -50
  302. package/dist/src/nile-file-preview/nile-file-preview.js +0 -171
  303. package/dist/src/nile-file-preview/nile-file-preview.js.map +0 -1
  304. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +0 -13
  305. package/dist/src/nile-file-preview/nile-file-preview.template.js +0 -208
  306. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +0 -1
  307. package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +0 -7
  308. package/dist/src/nile-file-preview/nile-file-preview.test.js +0 -30
  309. package/dist/src/nile-file-preview/nile-file-preview.test.js.map +0 -1
  310. package/dist/src/nile-file-preview/types/index.d.ts +0 -2
  311. package/dist/src/nile-file-preview/types/index.js +0 -3
  312. package/dist/src/nile-file-preview/types/index.js.map +0 -1
  313. package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +0 -28
  314. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +0 -33
  315. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +0 -1
  316. package/dist/src/nile-file-preview/types/nile-file-preview.interface.d.ts +0 -4
  317. package/dist/src/nile-file-preview/types/nile-file-preview.interface.js +0 -2
  318. package/dist/src/nile-file-preview/types/nile-file-preview.interface.js.map +0 -1
  319. package/dist/src/nile-file-preview/utils/index.d.ts +0 -1
  320. package/dist/src/nile-file-preview/utils/index.js +0 -2
  321. package/dist/src/nile-file-preview/utils/index.js.map +0 -1
  322. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +0 -9
  323. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +0 -63
  324. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +0 -1
  325. package/dist/src/nile-file-upload/index.d.ts +0 -1
  326. package/dist/src/nile-file-upload/index.js +0 -2
  327. package/dist/src/nile-file-upload/index.js.map +0 -1
  328. package/dist/src/nile-file-upload/nile-file-upload.css.d.ts +0 -12
  329. package/dist/src/nile-file-upload/nile-file-upload.css.js +0 -597
  330. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +0 -1
  331. package/dist/src/nile-file-upload/nile-file-upload.d.ts +0 -50
  332. package/dist/src/nile-file-upload/nile-file-upload.js +0 -182
  333. package/dist/src/nile-file-upload/nile-file-upload.js.map +0 -1
  334. package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +0 -10
  335. package/dist/src/nile-file-upload/nile-file-upload.template.js +0 -116
  336. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +0 -1
  337. package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +0 -7
  338. package/dist/src/nile-file-upload/nile-file-upload.test.js +0 -30
  339. package/dist/src/nile-file-upload/nile-file-upload.test.js.map +0 -1
  340. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +0 -39
  341. package/dist/src/nile-file-upload/types/file-upload.enums.js +0 -46
  342. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +0 -1
  343. package/dist/src/nile-file-upload/types/file-upload.type.d.ts +0 -4
  344. package/dist/src/nile-file-upload/types/file-upload.type.js +0 -2
  345. package/dist/src/nile-file-upload/types/file-upload.type.js.map +0 -1
  346. package/dist/src/nile-file-upload/types/index.d.ts +0 -2
  347. package/dist/src/nile-file-upload/types/index.js +0 -3
  348. package/dist/src/nile-file-upload/types/index.js.map +0 -1
  349. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +0 -21
  350. package/dist/src/nile-file-upload/utils/drag-drop.util.js +0 -82
  351. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +0 -1
  352. package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +0 -12
  353. package/dist/src/nile-file-upload/utils/file-validation.util.js +0 -154
  354. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +0 -1
  355. package/dist/src/nile-icon/icons/svg/ng-activity.d.ts +0 -5
  356. package/dist/src/nile-icon/icons/svg/ng-activity.js +0 -5
  357. package/dist/src/nile-icon/icons/svg/ng-activity.js.map +0 -1
  358. package/dist/src/nile-icon/icons/svg/ng-align-center.d.ts +0 -5
  359. package/dist/src/nile-icon/icons/svg/ng-align-center.js +0 -5
  360. package/dist/src/nile-icon/icons/svg/ng-align-center.js.map +0 -1
  361. package/dist/src/nile-icon/icons/svg/ng-annotation-x.d.ts +0 -5
  362. package/dist/src/nile-icon/icons/svg/ng-annotation-x.js +0 -5
  363. package/dist/src/nile-icon/icons/svg/ng-annotation-x.js.map +0 -1
  364. package/dist/src/nile-icon/icons/svg/ng-arrow-down.d.ts +0 -5
  365. package/dist/src/nile-icon/icons/svg/ng-arrow-down.js +0 -5
  366. package/dist/src/nile-icon/icons/svg/ng-arrow-down.js.map +0 -1
  367. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.d.ts +0 -5
  368. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.js +0 -5
  369. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.js.map +0 -1
  370. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.d.ts +0 -5
  371. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.js +0 -5
  372. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.js.map +0 -1
  373. package/dist/src/nile-icon/icons/svg/ng-arrow-up.d.ts +0 -5
  374. package/dist/src/nile-icon/icons/svg/ng-arrow-up.js +0 -5
  375. package/dist/src/nile-icon/icons/svg/ng-arrow-up.js.map +0 -1
  376. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.d.ts +0 -5
  377. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.js +0 -5
  378. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.js.map +0 -1
  379. package/dist/src/nile-icon/icons/svg/ng-bell-01.d.ts +0 -5
  380. package/dist/src/nile-icon/icons/svg/ng-bell-01.js +0 -5
  381. package/dist/src/nile-icon/icons/svg/ng-bell-01.js.map +0 -1
  382. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.d.ts +0 -5
  383. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.js +0 -5
  384. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.js.map +0 -1
  385. package/dist/src/nile-icon/icons/svg/ng-bold-01.d.ts +0 -5
  386. package/dist/src/nile-icon/icons/svg/ng-bold-01.js +0 -5
  387. package/dist/src/nile-icon/icons/svg/ng-bold-01.js.map +0 -1
  388. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.d.ts +0 -5
  389. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.js +0 -5
  390. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.js.map +0 -1
  391. package/dist/src/nile-icon/icons/svg/ng-calendar.d.ts +0 -5
  392. package/dist/src/nile-icon/icons/svg/ng-calendar.js +0 -5
  393. package/dist/src/nile-icon/icons/svg/ng-calendar.js.map +0 -1
  394. package/dist/src/nile-icon/icons/svg/ng-check-circle.d.ts +0 -5
  395. package/dist/src/nile-icon/icons/svg/ng-check-circle.js +0 -5
  396. package/dist/src/nile-icon/icons/svg/ng-check-circle.js.map +0 -1
  397. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.d.ts +0 -5
  398. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.js +0 -5
  399. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.js.map +0 -1
  400. package/dist/src/nile-icon/icons/svg/ng-chevron-down.d.ts +0 -5
  401. package/dist/src/nile-icon/icons/svg/ng-chevron-down.js +0 -5
  402. package/dist/src/nile-icon/icons/svg/ng-chevron-down.js.map +0 -1
  403. package/dist/src/nile-icon/icons/svg/ng-chevron-left.d.ts +0 -5
  404. package/dist/src/nile-icon/icons/svg/ng-chevron-left.js +0 -5
  405. package/dist/src/nile-icon/icons/svg/ng-chevron-left.js.map +0 -1
  406. package/dist/src/nile-icon/icons/svg/ng-chevron-right.d.ts +0 -5
  407. package/dist/src/nile-icon/icons/svg/ng-chevron-right.js +0 -5
  408. package/dist/src/nile-icon/icons/svg/ng-chevron-right.js.map +0 -1
  409. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.d.ts +0 -5
  410. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.js +0 -5
  411. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.js.map +0 -1
  412. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.d.ts +0 -5
  413. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.js +0 -5
  414. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.js.map +0 -1
  415. package/dist/src/nile-icon/icons/svg/ng-chevron-up.d.ts +0 -5
  416. package/dist/src/nile-icon/icons/svg/ng-chevron-up.js +0 -5
  417. package/dist/src/nile-icon/icons/svg/ng-chevron-up.js.map +0 -1
  418. package/dist/src/nile-icon/icons/svg/ng-copy-03.d.ts +0 -5
  419. package/dist/src/nile-icon/icons/svg/ng-copy-03.js +0 -5
  420. package/dist/src/nile-icon/icons/svg/ng-copy-03.js.map +0 -1
  421. package/dist/src/nile-icon/icons/svg/ng-dots-grid.d.ts +0 -5
  422. package/dist/src/nile-icon/icons/svg/ng-dots-grid.js +0 -5
  423. package/dist/src/nile-icon/icons/svg/ng-dots-grid.js.map +0 -1
  424. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.d.ts +0 -5
  425. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.js +0 -5
  426. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.js.map +0 -1
  427. package/dist/src/nile-icon/icons/svg/ng-download-01.d.ts +0 -5
  428. package/dist/src/nile-icon/icons/svg/ng-download-01.js +0 -5
  429. package/dist/src/nile-icon/icons/svg/ng-download-01.js.map +0 -1
  430. package/dist/src/nile-icon/icons/svg/ng-dropdown.d.ts +0 -5
  431. package/dist/src/nile-icon/icons/svg/ng-dropdown.js +0 -5
  432. package/dist/src/nile-icon/icons/svg/ng-dropdown.js.map +0 -1
  433. package/dist/src/nile-icon/icons/svg/ng-edit-02.d.ts +0 -5
  434. package/dist/src/nile-icon/icons/svg/ng-edit-02.js +0 -5
  435. package/dist/src/nile-icon/icons/svg/ng-edit-02.js.map +0 -1
  436. package/dist/src/nile-icon/icons/svg/ng-edit-05.d.ts +0 -5
  437. package/dist/src/nile-icon/icons/svg/ng-edit-05.js +0 -5
  438. package/dist/src/nile-icon/icons/svg/ng-edit-05.js.map +0 -1
  439. package/dist/src/nile-icon/icons/svg/ng-expand-06.d.ts +0 -5
  440. package/dist/src/nile-icon/icons/svg/ng-expand-06.js +0 -5
  441. package/dist/src/nile-icon/icons/svg/ng-expand-06.js.map +0 -1
  442. package/dist/src/nile-icon/icons/svg/ng-eye-off.d.ts +0 -5
  443. package/dist/src/nile-icon/icons/svg/ng-eye-off.js +0 -5
  444. package/dist/src/nile-icon/icons/svg/ng-eye-off.js.map +0 -1
  445. package/dist/src/nile-icon/icons/svg/ng-eye.d.ts +0 -5
  446. package/dist/src/nile-icon/icons/svg/ng-eye.js +0 -5
  447. package/dist/src/nile-icon/icons/svg/ng-eye.js.map +0 -1
  448. package/dist/src/nile-icon/icons/svg/ng-file-02.d.ts +0 -5
  449. package/dist/src/nile-icon/icons/svg/ng-file-02.js +0 -5
  450. package/dist/src/nile-icon/icons/svg/ng-file-02.js.map +0 -1
  451. package/dist/src/nile-icon/icons/svg/ng-file-check-02.d.ts +0 -5
  452. package/dist/src/nile-icon/icons/svg/ng-file-check-02.js +0 -5
  453. package/dist/src/nile-icon/icons/svg/ng-file-check-02.js.map +0 -1
  454. package/dist/src/nile-icon/icons/svg/ng-file-question-03.d.ts +0 -5
  455. package/dist/src/nile-icon/icons/svg/ng-file-question-03.js +0 -5
  456. package/dist/src/nile-icon/icons/svg/ng-file-question-03.js.map +0 -1
  457. package/dist/src/nile-icon/icons/svg/ng-filter-lines.d.ts +0 -5
  458. package/dist/src/nile-icon/icons/svg/ng-filter-lines.js +0 -5
  459. package/dist/src/nile-icon/icons/svg/ng-filter-lines.js.map +0 -1
  460. package/dist/src/nile-icon/icons/svg/ng-grid-01.d.ts +0 -5
  461. package/dist/src/nile-icon/icons/svg/ng-grid-01.js +0 -5
  462. package/dist/src/nile-icon/icons/svg/ng-grid-01.js.map +0 -1
  463. package/dist/src/nile-icon/icons/svg/ng-help-circle.d.ts +0 -5
  464. package/dist/src/nile-icon/icons/svg/ng-help-circle.js +0 -5
  465. package/dist/src/nile-icon/icons/svg/ng-help-circle.js.map +0 -1
  466. package/dist/src/nile-icon/icons/svg/ng-image-user-left.d.ts +0 -5
  467. package/dist/src/nile-icon/icons/svg/ng-image-user-left.js +0 -5
  468. package/dist/src/nile-icon/icons/svg/ng-image-user-left.js.map +0 -1
  469. package/dist/src/nile-icon/icons/svg/ng-info-circle.d.ts +0 -5
  470. package/dist/src/nile-icon/icons/svg/ng-info-circle.js +0 -5
  471. package/dist/src/nile-icon/icons/svg/ng-info-circle.js.map +0 -1
  472. package/dist/src/nile-icon/icons/svg/ng-italic-01.d.ts +0 -5
  473. package/dist/src/nile-icon/icons/svg/ng-italic-01.js +0 -5
  474. package/dist/src/nile-icon/icons/svg/ng-italic-01.js.map +0 -1
  475. package/dist/src/nile-icon/icons/svg/ng-layers-three-01.d.ts +0 -5
  476. package/dist/src/nile-icon/icons/svg/ng-layers-three-01.js +0 -5
  477. package/dist/src/nile-icon/icons/svg/ng-layers-three-01.js.map +0 -1
  478. package/dist/src/nile-icon/icons/svg/ng-list.d.ts +0 -5
  479. package/dist/src/nile-icon/icons/svg/ng-list.js +0 -5
  480. package/dist/src/nile-icon/icons/svg/ng-list.js.map +0 -1
  481. package/dist/src/nile-icon/icons/svg/ng-log-out-01.d.ts +0 -5
  482. package/dist/src/nile-icon/icons/svg/ng-log-out-01.js +0 -5
  483. package/dist/src/nile-icon/icons/svg/ng-log-out-01.js.map +0 -1
  484. package/dist/src/nile-icon/icons/svg/ng-mail-01.d.ts +0 -5
  485. package/dist/src/nile-icon/icons/svg/ng-mail-01.js +0 -5
  486. package/dist/src/nile-icon/icons/svg/ng-mail-01.js.map +0 -1
  487. package/dist/src/nile-icon/icons/svg/ng-mail-04.d.ts +0 -5
  488. package/dist/src/nile-icon/icons/svg/ng-mail-04.js +0 -5
  489. package/dist/src/nile-icon/icons/svg/ng-mail-04.js.map +0 -1
  490. package/dist/src/nile-icon/icons/svg/ng-menu-05.d.ts +0 -5
  491. package/dist/src/nile-icon/icons/svg/ng-menu-05.js +0 -5
  492. package/dist/src/nile-icon/icons/svg/ng-menu-05.js.map +0 -1
  493. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.d.ts +0 -5
  494. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js +0 -5
  495. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js.map +0 -1
  496. package/dist/src/nile-icon/icons/svg/ng-minimize-02.d.ts +0 -5
  497. package/dist/src/nile-icon/icons/svg/ng-minimize-02.js +0 -5
  498. package/dist/src/nile-icon/icons/svg/ng-minimize-02.js.map +0 -1
  499. package/dist/src/nile-icon/icons/svg/ng-plus.d.ts +0 -5
  500. package/dist/src/nile-icon/icons/svg/ng-plus.js +0 -5
  501. package/dist/src/nile-icon/icons/svg/ng-plus.js.map +0 -1
  502. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.d.ts +0 -5
  503. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.js +0 -5
  504. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.js.map +0 -1
  505. package/dist/src/nile-icon/icons/svg/ng-rocket-02.d.ts +0 -5
  506. package/dist/src/nile-icon/icons/svg/ng-rocket-02.js +0 -5
  507. package/dist/src/nile-icon/icons/svg/ng-rocket-02.js.map +0 -1
  508. package/dist/src/nile-icon/icons/svg/ng-search-lg.d.ts +0 -5
  509. package/dist/src/nile-icon/icons/svg/ng-search-lg.js +0 -5
  510. package/dist/src/nile-icon/icons/svg/ng-search-lg.js.map +0 -1
  511. package/dist/src/nile-icon/icons/svg/ng-send-01.d.ts +0 -5
  512. package/dist/src/nile-icon/icons/svg/ng-send-01.js +0 -5
  513. package/dist/src/nile-icon/icons/svg/ng-send-01.js.map +0 -1
  514. package/dist/src/nile-icon/icons/svg/ng-settings-01.d.ts +0 -5
  515. package/dist/src/nile-icon/icons/svg/ng-settings-01.js +0 -5
  516. package/dist/src/nile-icon/icons/svg/ng-settings-01.js.map +0 -1
  517. package/dist/src/nile-icon/icons/svg/ng-share-04.d.ts +0 -5
  518. package/dist/src/nile-icon/icons/svg/ng-share-04.js +0 -5
  519. package/dist/src/nile-icon/icons/svg/ng-share-04.js.map +0 -1
  520. package/dist/src/nile-icon/icons/svg/ng-share-06.d.ts +0 -5
  521. package/dist/src/nile-icon/icons/svg/ng-share-06.js +0 -5
  522. package/dist/src/nile-icon/icons/svg/ng-share-06.js.map +0 -1
  523. package/dist/src/nile-icon/icons/svg/ng-stars-02.d.ts +0 -5
  524. package/dist/src/nile-icon/icons/svg/ng-stars-02.js +0 -5
  525. package/dist/src/nile-icon/icons/svg/ng-stars-02.js.map +0 -1
  526. package/dist/src/nile-icon/icons/svg/ng-trash-01.d.ts +0 -5
  527. package/dist/src/nile-icon/icons/svg/ng-trash-01.js +0 -5
  528. package/dist/src/nile-icon/icons/svg/ng-trash-01.js.map +0 -1
  529. package/dist/src/nile-icon/icons/svg/ng-trash-03.d.ts +0 -5
  530. package/dist/src/nile-icon/icons/svg/ng-trash-03.js +0 -5
  531. package/dist/src/nile-icon/icons/svg/ng-trash-03.js.map +0 -1
  532. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.d.ts +0 -5
  533. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.js +0 -5
  534. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.js.map +0 -1
  535. package/dist/src/nile-icon/icons/svg/ng-underline-01.d.ts +0 -5
  536. package/dist/src/nile-icon/icons/svg/ng-underline-01.js +0 -5
  537. package/dist/src/nile-icon/icons/svg/ng-underline-01.js.map +0 -1
  538. package/dist/src/nile-icon/icons/svg/ng-upload-01.d.ts +0 -5
  539. package/dist/src/nile-icon/icons/svg/ng-upload-01.js +0 -5
  540. package/dist/src/nile-icon/icons/svg/ng-upload-01.js.map +0 -1
  541. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.d.ts +0 -5
  542. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.js +0 -5
  543. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.js.map +0 -1
  544. package/dist/src/nile-icon/icons/svg/ng-user-01.d.ts +0 -5
  545. package/dist/src/nile-icon/icons/svg/ng-user-01.js +0 -5
  546. package/dist/src/nile-icon/icons/svg/ng-user-01.js.map +0 -1
  547. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.d.ts +0 -5
  548. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.js +0 -5
  549. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.js.map +0 -1
  550. package/dist/src/nile-icon/icons/svg/ng-user-check-02.d.ts +0 -5
  551. package/dist/src/nile-icon/icons/svg/ng-user-check-02.js +0 -5
  552. package/dist/src/nile-icon/icons/svg/ng-user-check-02.js.map +0 -1
  553. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.d.ts +0 -5
  554. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.js +0 -5
  555. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.js.map +0 -1
  556. package/dist/src/nile-icon/icons/svg/ng-user-right-01.d.ts +0 -5
  557. package/dist/src/nile-icon/icons/svg/ng-user-right-01.js +0 -5
  558. package/dist/src/nile-icon/icons/svg/ng-user-right-01.js.map +0 -1
  559. package/dist/src/nile-icon/icons/svg/ng-users-01.d.ts +0 -5
  560. package/dist/src/nile-icon/icons/svg/ng-users-01.js +0 -5
  561. package/dist/src/nile-icon/icons/svg/ng-users-01.js.map +0 -1
  562. package/dist/src/nile-icon/icons/svg/ng-x-close.d.ts +0 -5
  563. package/dist/src/nile-icon/icons/svg/ng-x-close.js +0 -5
  564. package/dist/src/nile-icon/icons/svg/ng-x-close.js.map +0 -1
  565. package/dist/src/nile-icon/icons/svg/ng-x-square.d.ts +0 -5
  566. package/dist/src/nile-icon/icons/svg/ng-x-square.js +0 -5
  567. package/dist/src/nile-icon/icons/svg/ng-x-square.js.map +0 -1
  568. /package/dist/{nile-file-preview → nile-virtual-select}/index.cjs.js.map +0 -0
  569. /package/dist/{nile-file-preview/types/nile-file-preview.interface.esm.js → nile-virtual-select/types.esm.js} +0 -0
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-table-body.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var e,t,s,i,r,l,a,o,d,_templateObject,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.query;i=_litDecoratorsJs.queryAssignedNodes;r=_litDecoratorsJs.property;l=_litDecoratorsJs.state;a=_litDecoratorsJs.customElement;},function(_nileTableBodyCssCjsJs){o=_nileTableBodyCssCjsJs.s;},function(_internalNileElementCjsJs){d=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_d){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.type="primary",_this.rows_data=[],_this.header_rows_data=[];return _this;}_inherits(n,_d);return _createClass(n,[{key:"firstUpdated",value:function firstUpdated(e){this.emit("nile-body-load",{value:this.type,comp:this},!0,!1);}},{key:"getChildren",value:function getChildren(e,t){return e.querySelectorAll(t);}},{key:"getIndexValue",value:function getIndexValue(e){return this.header_rows_data.indexOf(e);}},{key:"handleSlotchange",value:function handleSlotchange(e){var _this2=this;var t=[];this._childNodes.forEach(function(e){var _e$tagName;if(e.tagName&&"nile-table-row"===(e===null||e===void 0||(_e$tagName=e.tagName)===null||_e$tagName===void 0?void 0:_e$tagName.toLowerCase())){var _s=_this2.getChildren(e,"nile-table-cell-item");if(_s.length>0)_s.forEach(function(e){t.push(e.innerHTML);}),_this2.rows_data.push(t);else{var _t=_this2.getChildren(e,"nile-table-header-item");_t.length>0&&_t.forEach(function(e,t){_this2.header_rows_data.push(e.innerHTML);});}t=[];}});}},{key:"handleSort",value:function handleSort(e){var _e$detail$value=e.detail.value,t=_e$detail$value.curr_sort_string,s=_e$detail$value.order,i=this.getIndexValue(t);this.emit("nile-sort",{value:{header_index:i,curr_sort_string:t,order:s}});}},{key:"handleSearch",value:function handleSearch(e){var t=e.detail.value;this.search__index=this.getIndexValue(e.target.textContent),this.emit("nile-table-search",{index:this.search__index,value:t});}},{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"base\" part=\"base\">\n <slot name=\"table__header\" class=\"table__header\"></slot>\n <slot\n @slotchange=","\n @nile-click-sort=","\n class=\"nile__table__body\"\n @nile-search=","\n ></slot>\n </div>\n "])),this.handleSlotchange,this.handleSort,this.handleSearch);}}],[{key:"styles",get:function get(){return[o];}}]);}(d));e([s("slot")],n.prototype,"defaultSlot",void 0),e([i({flatten:!0})],n.prototype,"_childNodes",void 0),e([r()],n.prototype,"type",void 0),e([l()],n.prototype,"rows_data",void 0),e([l()],n.prototype,"header_rows_data",void 0),e([l()],n.prototype,"sort__index",void 0),e([l()],n.prototype,"search__index",void 0),_export("N",n=e([a("nile-table-body")],n));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-table-body.css.cjs.js","../internal/nile-element.cjs.js","../internal/resizable-table-helper.cjs.js","../internal/resizable-table-styles.cjs.js"],function(_export,_context){"use strict";var e,t,s,i,l,r,a,o,h,n,_templateObject,d;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.query;i=_litDecoratorsJs.queryAssignedNodes;l=_litDecoratorsJs.property;r=_litDecoratorsJs.state;a=_litDecoratorsJs.customElement;},function(_nileTableBodyCssCjsJs){o=_nileTableBodyCssCjsJs.s;},function(_internalNileElementCjsJs){h=_internalNileElementCjsJs.N;},function(_internalResizableTableHelperCjsJs){n=_internalResizableTableHelperCjsJs.h;},function(_internalResizableTableStylesCjsJs){}],execute:function execute(){_export("N",d=/*#__PURE__*/function(_h){function d(){var _this;_classCallCheck(this,d);_this=_callSuper(this,d,arguments),_this.type="primary",_this.rows_data=[],_this.header_rows_data=[],_this.hasResizableColumns=!1;return _this;}_inherits(d,_h);return _createClass(d,[{key:"firstUpdated",value:function firstUpdated(e){this.emit("nile-body-load",{value:this.type,comp:this},!0,!1);}},{key:"getChildren",value:function getChildren(e,t){return e.querySelectorAll(t);}},{key:"getIndexValue",value:function getIndexValue(e){return this.header_rows_data.indexOf(e);}},{key:"checkForResizableColumns",value:function checkForResizableColumns(){this.hasResizableColumns=n(this);}},{key:"handleSlotchange",value:function handleSlotchange(e){var _this2=this;var t=[];this._childNodes.forEach(function(e){var _e$tagName;if(e.tagName&&"nile-table-row"===(e===null||e===void 0||(_e$tagName=e.tagName)===null||_e$tagName===void 0?void 0:_e$tagName.toLowerCase())){var _s=_this2.getChildren(e,"nile-table-cell-item");if(_s.length>0)_s.forEach(function(e){t.push(e.innerHTML);}),_this2.rows_data.push(t);else{var _t=_this2.getChildren(e,"nile-table-header-item");_t.length>0&&_t.forEach(function(e,t){_this2.header_rows_data.push(e.innerHTML);});}t=[];}}),this.checkForResizableColumns();}},{key:"handleSort",value:function handleSort(e){var _e$detail$value=e.detail.value,t=_e$detail$value.curr_sort_string,s=_e$detail$value.order,i=this.getIndexValue(t);this.emit("nile-sort",{value:{header_index:i,curr_sort_string:t,order:s}});}},{key:"handleSearch",value:function handleSearch(e){var t=e.detail.value;this.search__index=this.getIndexValue(e.target.textContent),this.emit("nile-table-search",{index:this.search__index,value:t});}},{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"base\" part=\"base\">\n <slot name=\"table__header\" class=\"table__header\"></slot>\n <slot\n @slotchange=","\n @nile-click-sort=","\n class=\"nile__table__body\"\n ?resizable=","\n @nile-search=","\n ></slot>\n </div>\n "])),this.handleSlotchange,this.handleSort,this.hasResizableColumns,this.handleSearch);}}],[{key:"styles",get:function get(){return[o];}}]);}(h));e([s("slot")],d.prototype,"defaultSlot",void 0),e([i({flatten:!0})],d.prototype,"_childNodes",void 0),e([l()],d.prototype,"type",void 0),e([r()],d.prototype,"rows_data",void 0),e([r()],d.prototype,"header_rows_data",void 0),e([r()],d.prototype,"sort__index",void 0),e([r()],d.prototype,"search__index",void 0),e([r()],d.prototype,"hasResizableColumns",void 0),_export("N",d=e([a("nile-table-body")],d));}};});
2
2
  //# sourceMappingURL=nile-table-body.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-table-body.cjs.js","sources":["../../../src/nile-table-body/nile-table-body.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 PropertyValues,\n} from 'lit';\nimport {\n customElement,\n query,\n state,\n queryAll,\n queryAssignedElements,\n queryAssignedNodes,\n property\n} from 'lit/decorators.js';\nimport { styles } from './nile-table-body.css';\nimport NileElement from '../internal/nile-element';\nimport { getInnerHTML } from '../slot';\n\n/**\n * nile-table-body component.\n *\n * @tag nile-table-body\n *\n */\n@customElement('nile-table-body')\nexport class NileTableBody extends NileElement {\n /**\n * The styles for TableBody\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n\n @query('slot') defaultSlot: HTMLSlotElement;\n @queryAssignedNodes({ flatten: true }) _childNodes!: Array<HTMLElement>;\n @property() type: 'primary' | 'secondary' = 'primary';\n\n @state() private rows_data: any[] = [];\n @state() private header_rows_data: any[] = [];\n @state() private sort__index: number;\n @state() private search__index: number;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n protected firstUpdated(_changedProperties: PropertyValues): void {\n this.emit('nile-body-load', { value: this.type, comp:this },true,false)\n }\n\n /* #endregion */\n\n /* #region Methods */\n\n private getChildren(child: any, tagname: string) {\n return child.querySelectorAll(tagname);\n }\n\n private getIndexValue(index__value: string): number {\n return this.header_rows_data.indexOf(index__value);\n }\n\n handleSlotchange(e: any) {\n let row_data: any = [];\n this._childNodes.forEach((child: any) => {\n if (child.tagName && child?.tagName?.toLowerCase() === 'nile-table-row') {\n let nilerows = this.getChildren(child, 'nile-table-cell-item');\n if (nilerows.length > 0) {\n nilerows.forEach((element: { innerHTML: any }) => {\n row_data.push(element.innerHTML);\n });\n this.rows_data.push(row_data);\n } else {\n let nileheaders = this.getChildren(child, 'nile-table-header-item');\n if (nileheaders.length > 0) {\n nileheaders.forEach((header: HTMLSlotElement, index: number) => {\n this.header_rows_data.push(header.innerHTML);\n });\n }\n }\n row_data = [];\n }\n });\n }\n\n private handleSort(e: any) {\n const { curr_sort_string, order } = e.detail.value;\n const header_index = this.getIndexValue(curr_sort_string);\n this.emit('nile-sort', {\n value: { header_index, curr_sort_string, order },\n });\n }\n\n private handleSearch(e: any) {\n const searchText = e.detail.value;\n this.search__index = this.getIndexValue(e.target.textContent);\n this.emit('nile-table-search', {\n index: this.search__index,\n value: searchText,\n });\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"base\" part=\"base\">\n <slot name=\"table__header\" class=\"table__header\"></slot>\n <slot\n @slotchange=${this.handleSlotchange}\n @nile-click-sort=${this.handleSort}\n class=\"nile__table__body\"\n @nile-search=${this.handleSearch}\n ></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileTableBody;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-body': NileTableBody;\n }\n}\n"],"names":["NileTableBody","_d","n","constructor","this","type","rows_data","header_rows_data","_this","_inherits","_createClass","key","value","firstUpdated","_changedProperties","emit","comp","getChildren","child","tagname","querySelectorAll","getIndexValue","index__value","indexOf","handleSlotchange","e","row_data","_childNodes","forEach","tagName","toLowerCase","nilerows","length","element","push","innerHTML","nileheaders","header","index","handleSort","_e$detail$value","detail","header_index","curr_sort_string","order","handleSearch","searchText","search__index","target","textContent","render","html","_templateObject","_taggedTemplateLiteral","__decorate","get","styles","NileElement","query","prototype","queryAssignedNodes","flatten","property","state","customElement"],"mappings":"muGAkCaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,mCAQOC,EAAAA,KAAAA,CAAIC,KAA4B,SAE3BD,CAAAA,KAAAA,CAASE,UAAU,EACnBF,CAAAA,KAAAA,CAAgBG,iBAAU,EA+E5C,QAAAC,KAAA,EA3EQC,SAAA,CAAAP,CAAA,CAAAD,EAAA,SAAAS,YAAA,CAAAR,CAAA,GAAAS,GAAA,gBAAAC,KAAA,CAIG,SAAAC,YAAAA,CAAaC,CAAAA,CAAAA,CACrBV,KAAKW,IAAK,CAAA,gBAAA,CAAkB,CAAEH,KAAOR,CAAAA,IAAAA,CAAKC,KAAMW,IAAKZ,CAAAA,IAAAA,CAAAA,CAAAA,CAAO,GAAK,CAClE,CAAA,EAMO,GAAAO,GAAA,eAAAC,KAAA,UAAAK,WAAAA,CAAYC,CAAAA,CAAYC,GAC9B,MAAOD,CAAAA,CAAAA,CAAME,iBAAiBD,CAC/B,CAAA,EAEO,GAAAR,GAAA,iBAAAC,KAAA,UAAAS,aAAAA,CAAcC,CAAAA,CAAAA,CACpB,MAAOlB,KAAKG,CAAAA,gBAAAA,C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A,CAAhBS,CAAsC/D,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA2D,UAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CACtBL,CAAA,CAAA,CAAhBS,CAA6C/D,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA2D,SAAA,CAAA,kBAAA,CAAA,IAAA,EAC7BL,CAAAA,CAAAA,CAAAA,CAAA,CAAhBS,CAAAA,CAAAA,CAAAA,CAAAA,CAAoC/D,CAAA2D,CAAAA,SAAAA,CAAA,aAAA,CAAA,IAAA,EAAA,CAAA,CACpBL,CAAA,CAAA,CAAhBS,CAAsC/D,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA2D,SAAA,CAAA,eAAA,CAAA,IAAA,EAb5B3D,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAasD,CAAA,CAAA,CADzBU,CAAc,CAAA,iBAAA,CAAA,CAAA,CACFhE"}
1
+ {"version":3,"file":"nile-table-body.cjs.js","sources":["../../../src/nile-table-body/nile-table-body.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 PropertyValues,\n} from 'lit';\nimport {\n customElement,\n query,\n state,\n queryAll,\n queryAssignedElements,\n queryAssignedNodes,\n property\n} from 'lit/decorators.js';\nimport { styles } from './nile-table-body.css';\nimport NileElement from '../internal/nile-element';\nimport { getInnerHTML } from '../slot';\nimport { hasResizableColumns } from '../internal/resizable-table-helper';\n\n/**\n * nile-table-body component.\n *\n * @tag nile-table-body\n *\n */\n@customElement('nile-table-body')\nexport class NileTableBody extends NileElement {\n /**\n * The styles for TableBody\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n\n @query('slot') defaultSlot: HTMLSlotElement;\n @queryAssignedNodes({ flatten: true }) _childNodes!: Array<HTMLElement>;\n @property() type: 'primary' | 'secondary' = 'primary';\n\n @state() private rows_data: any[] = [];\n @state() private header_rows_data: any[] = [];\n @state() private sort__index: number;\n @state() private search__index: number;\n @state() private hasResizableColumns = false;\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n protected firstUpdated(_changedProperties: PropertyValues): void {\n this.emit('nile-body-load', { value: this.type, comp:this },true,false)\n }\n\n /* #endregion */\n\n /* #region Methods */\n\n private getChildren(child: any, tagname: string) {\n return child.querySelectorAll(tagname);\n }\n\n private getIndexValue(index__value: string): number {\n return this.header_rows_data.indexOf(index__value);\n }\n\n private checkForResizableColumns() {\n this.hasResizableColumns = hasResizableColumns(this);\n }\n\n handleSlotchange(e: any) {\n let row_data: any = [];\n this._childNodes.forEach((child: any) => {\n if (child.tagName && child?.tagName?.toLowerCase() === 'nile-table-row') {\n let nilerows = this.getChildren(child, 'nile-table-cell-item');\n if (nilerows.length > 0) {\n nilerows.forEach((element: { innerHTML: any }) => {\n row_data.push(element.innerHTML);\n });\n this.rows_data.push(row_data);\n } else {\n let nileheaders = this.getChildren(child, 'nile-table-header-item');\n if (nileheaders.length > 0) {\n nileheaders.forEach((header: HTMLSlotElement, index: number) => {\n this.header_rows_data.push(header.innerHTML);\n });\n }\n }\n row_data = [];\n }\n });\n \n this.checkForResizableColumns();\n }\n\n private handleSort(e: any) {\n const { curr_sort_string, order } = e.detail.value;\n const header_index = this.getIndexValue(curr_sort_string);\n this.emit('nile-sort', {\n value: { header_index, curr_sort_string, order },\n });\n }\n\n private handleSearch(e: any) {\n const searchText = e.detail.value;\n this.search__index = this.getIndexValue(e.target.textContent);\n this.emit('nile-table-search', {\n index: this.search__index,\n value: searchText,\n });\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"base\" part=\"base\">\n <slot name=\"table__header\" class=\"table__header\"></slot>\n <slot\n @slotchange=${this.handleSlotchange}\n @nile-click-sort=${this.handleSort}\n class=\"nile__table__body\"\n ?resizable=${this.hasResizableColumns}\n @nile-search=${this.handleSearch}\n ></slot>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileTableBody;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-body': NileTableBody;\n }\n}\n"],"names":["NileTableBody","d","constructor","this","type","rows_data","header_rows_data","hasResizableColumns","_this","_inherits","_h","_createClass","key","value","firstUpdated","_changedProperties","emit","comp","getChildren","child","tagname","querySelectorAll","getIndexValue","index__value","indexOf","checkForResizableColumns","handleSlotchange","e","_this2","row_data","_childNodes","forEach","tagName","toLowerCase","nilerows","length","element","push","innerHTML","nileheaders","header","index","handleSort","_e$detail$value","detail","header_index","curr_sort_string","order","s","handleSearch","searchText","search__index","target","textContent","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","query","prototype","queryAssignedNodes","flatten","property","state","_export","customElement"],"mappings":"k8GAmCaA,4BAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAQOC,KAAAA,CAAIC,IAA4B,CAAA,SAAA,CAE3BD,KAAAA,CAASE,SAAU,CAAA,EAAA,CACnBF,KAAAA,CAAgBG,gBAAU,CAAA,EAAA,CAG1BH,KAAAA,CAAmBI,mBAAAA,CAAAA,CAAG,CAoFxC,QAAAC,KAAA,EAlFQC,SAAA,CAAAR,CAAA,CAAAS,EAAA,SAAAC,YAAA,CAAAV,CAAA,GAAAW,GAAA,gBAAAC,KAAA,CAIG,SAAAC,YAAAA,CAAaC,CAAAA,CAAAA,CACrBZ,IAAKa,CAAAA,IAAAA,CAAK,gBAAkB,CAAA,CAAEH,MAAOV,IAAKC,CAAAA,IAAAA,CAAMa,KAAKd,IAAO,CAAA,CAAA,CAAA,CAAA,CAAA,CAAK,EAClE,EAMO,GAAAS,GAAA,eAAAC,KAAA,UAAAK,WAAAA,CAAYC,CAAAA,CAAYC,CAC9B,CAAA,CAAA,MAAOD,CAAAA,EAAME,gBAAiBD,CAAAA,CAAAA,CAC/B,EAEO,GAAAR,GAAA,iB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AAA,aAAA,CAAA,IAAA,EAAA,CAAA,CACLF,CAAA,CAAA,CAAtCG,CAAmB,CAAA,CAAEC,SAAS,CAAyCjE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA+D,SAAA,CAAA,aAAA,CAAA,IAAA,EAC5DF,CAAAA,CAAAA,CAAAA,CAAA,CAAXK,CAAAA,CAAAA,CAAAA,CAAAA,CAAqDlE,CAAA+D,CAAAA,SAAAA,CAAA,MAAA,CAAA,IAAA,EAAA,CAAA,CAErCF,CAAA,CAAA,CAAhBM,CAAsCnE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA+D,UAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CACtBF,CAAA,CAAA,CAAhBM,CAA6CnE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA+D,SAAA,CAAA,kBAAA,CAAA,IAAA,EAC7BF,CAAAA,CAAAA,CAAAA,CAAA,CAAhBM,CAAAA,CAAAA,CAAAA,CAAAA,CAAoCnE,CAAA+D,CAAAA,SAAAA,CAAA,aAAA,CAAA,IAAA,EAAA,CAAA,CACpBF,EAAA,CAAhBM,CAAAA,CAAAA,CAAAA,CAAAA,CAAsCnE,CAAA+D,CAAAA,SAAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CACtBF,CAAA,CAAA,CAAhBM,KAA4CnE,CAAA+D,CAAAA,SAAAA,CAAA,qBAAA,CAAA,IAAA,EAAA,CAAA,CAAAK,OAAA,KAdlCpE,CAAa6D,CAAAA,CAAAA,CAAA,CADzBQ,CAAAA,CAAc,oBACFrE"}
@@ -1,2 +1,2 @@
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 box-sizing: border-box;\n --nile-table-background--odd: var(--nile-colors-base-white);\n --nile-table-background--even: var(--nile-colors-base-white);\n }\n\n .base {\n background-color: var(--nile-colors-white-base);\n border: 1px solid var(--nile-table-row-border-color);\n border-radius: var(--nile-radius-radius-xl);\n box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1),0px 1px 2px 0px rgba(16, 24, 40, 0.06);\n overflow: hidden;\n }\n\n .table__header {\n display: flex;\n box-sizing: border-box;\n }\n\n .nile__table__body {\n display: table;\n border-collapse: collapse;\n width: 100%;\n }\n\n slot::slotted(nile-table-row:nth-child(odd)) {\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n background: var(--nile-table-background--odd);\n }\n\n slot::slotted(nile-table-row:nth-child(even)) {\n background: var(--nile-table-background--even);\n }\n\n slot::slotted(nile-table-row:last-child) {\n border-bottom: 0px;\n }\n"]))));}};});
1
+ System.register(["lit","../internal/resizable-table-styles.cjs.js"],function(_export,_context){"use strict";var o,e,_templateObject,l;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;},function(_internalResizableTableStylesCjsJs){e=_internalResizableTableStylesCjsJs.t;}],execute:function execute(){_export("s",l=o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n box-sizing: border-box;\n --nile-table-background--odd: var(--nile-colors-base-white);\n --nile-table-background--even: var(--nile-colors-base-white);\n }\n\n .base {\n background-color: var(--nile-colors-white-base);\n border: 1px solid var(--nile-table-row-border-color);\n border-radius: var(--nile-radius-radius-xl);\n box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1),0px 1px 2px 0px rgba(16, 24, 40, 0.06);\n overflow: hidden;\n }\n\n .table__header {\n display: flex;\n box-sizing: border-box;\n }\n\n .nile__table__body {\n display: table;\n border-collapse: collapse;\n width: 100%;\n }\n\n slot::slotted(nile-table-row:nth-child(odd)) {\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n background: var(--nile-table-background--odd);\n }\n\n slot::slotted(nile-table-row:nth-child(even)) {\n background: var(--nile-table-background--even);\n }\n\n slot::slotted(nile-table-row:last-child) {\n border-bottom: 0px;\n }\n\n ","\n"])),e));}};});
2
2
  //# sourceMappingURL=nile-table-body.css.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-table-body.css.cjs.js","sources":["../../../src/nile-table-body/nile-table-body.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 * TableBody CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n --nile-table-background--odd: var(--nile-colors-base-white);\n --nile-table-background--even: var(--nile-colors-base-white);\n }\n\n .base {\n background-color: var(--nile-colors-white-base);\n border: 1px solid var(--nile-table-row-border-color);\n border-radius: var(--nile-radius-radius-xl);\n box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1),0px 1px 2px 0px rgba(16, 24, 40, 0.06);\n overflow: hidden;\n }\n\n .table__header {\n display: flex;\n box-sizing: border-box;\n }\n\n .nile__table__body {\n display: table;\n border-collapse: collapse;\n width: 100%;\n }\n\n slot::slotted(nile-table-row:nth-child(odd)) {\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n background: var(--nile-table-background--odd);\n }\n\n slot::slotted(nile-table-row:nth-child(even)) {\n background: var(--nile-table-background--even);\n }\n\n slot::slotted(nile-table-row:last-child) {\n border-bottom: 0px;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
1
+ {"version":3,"file":"nile-table-body.css.cjs.js","sources":["../../../src/nile-table-body/nile-table-body.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';\nimport { tableLayoutStyles } from '../internal/resizable-table-styles';\n\n/**\n * TableBody CSS\n */\nexport const styles = css`\n :host {\n box-sizing: border-box;\n --nile-table-background--odd: var(--nile-colors-base-white);\n --nile-table-background--even: var(--nile-colors-base-white);\n }\n\n .base {\n background-color: var(--nile-colors-white-base);\n border: 1px solid var(--nile-table-row-border-color);\n border-radius: var(--nile-radius-radius-xl);\n box-shadow: 0px 1px 3px 0px rgba(16, 24, 40, 0.1),0px 1px 2px 0px rgba(16, 24, 40, 0.06);\n overflow: hidden;\n }\n\n .table__header {\n display: flex;\n box-sizing: border-box;\n }\n\n .nile__table__body {\n display: table;\n border-collapse: collapse;\n width: 100%;\n }\n\n slot::slotted(nile-table-row:nth-child(odd)) {\n border-bottom: 1px solid var(--nile-colors-neutral-400);\n background: var(--nile-table-background--odd);\n }\n\n slot::slotted(nile-table-row:nth-child(even)) {\n background: var(--nile-table-background--even);\n }\n\n slot::slotted(nile-table-row:last-child) {\n border-bottom: 0px;\n }\n\n ${tableLayoutStyles}\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral","tableLayoutStyles"],"mappings":"wbAaaA,EAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,0gCAuCrBC,CAAAA"}
@@ -1,4 +1,4 @@
1
- import{css as o}from"lit";const e=o`
1
+ import{css as e}from"lit";import{t as o}from"../internal/resizable-table-styles.esm.js";const l=e`
2
2
  :host {
3
3
  box-sizing: border-box;
4
4
  --nile-table-background--odd: var(--nile-colors-base-white);
@@ -36,4 +36,6 @@ import{css as o}from"lit";const e=o`
36
36
  slot::slotted(nile-table-row:last-child) {
37
37
  border-bottom: 0px;
38
38
  }
39
- `;export{e as s};
39
+
40
+ ${o}
41
+ `;export{l as s};
@@ -1,11 +1,12 @@
1
- import{__decorate as e}from"tslib";import{html as t}from"lit";import{query as s,queryAssignedNodes as i,property as r,state as l,customElement as a}from"lit/decorators.js";import{s as o}from"./nile-table-body.css.esm.js";import{N as d}from"../internal/nile-element.esm.js";let n=class extends d{constructor(){super(...arguments),this.type="primary",this.rows_data=[],this.header_rows_data=[]}static get styles(){return[o]}firstUpdated(e){this.emit("nile-body-load",{value:this.type,comp:this},!0,!1)}getChildren(e,t){return e.querySelectorAll(t)}getIndexValue(e){return this.header_rows_data.indexOf(e)}handleSlotchange(e){let t=[];this._childNodes.forEach((e=>{if(e.tagName&&"nile-table-row"===e?.tagName?.toLowerCase()){let s=this.getChildren(e,"nile-table-cell-item");if(s.length>0)s.forEach((e=>{t.push(e.innerHTML)})),this.rows_data.push(t);else{let t=this.getChildren(e,"nile-table-header-item");t.length>0&&t.forEach(((e,t)=>{this.header_rows_data.push(e.innerHTML)}))}t=[]}}))}handleSort(e){const{curr_sort_string:t,order:s}=e.detail.value,i=this.getIndexValue(t);this.emit("nile-sort",{value:{header_index:i,curr_sort_string:t,order:s}})}handleSearch(e){const t=e.detail.value;this.search__index=this.getIndexValue(e.target.textContent),this.emit("nile-table-search",{index:this.search__index,value:t})}render(){return t`
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{query as s,queryAssignedNodes as i,property as l,state as r,customElement as a}from"lit/decorators.js";import{s as o}from"./nile-table-body.css.esm.js";import{N as h}from"../internal/nile-element.esm.js";import{h as n}from"../internal/resizable-table-helper.esm.js";import"../internal/resizable-table-styles.esm.js";let d=class extends h{constructor(){super(...arguments),this.type="primary",this.rows_data=[],this.header_rows_data=[],this.hasResizableColumns=!1}static get styles(){return[o]}firstUpdated(e){this.emit("nile-body-load",{value:this.type,comp:this},!0,!1)}getChildren(e,t){return e.querySelectorAll(t)}getIndexValue(e){return this.header_rows_data.indexOf(e)}checkForResizableColumns(){this.hasResizableColumns=n(this)}handleSlotchange(e){let t=[];this._childNodes.forEach((e=>{if(e.tagName&&"nile-table-row"===e?.tagName?.toLowerCase()){let s=this.getChildren(e,"nile-table-cell-item");if(s.length>0)s.forEach((e=>{t.push(e.innerHTML)})),this.rows_data.push(t);else{let t=this.getChildren(e,"nile-table-header-item");t.length>0&&t.forEach(((e,t)=>{this.header_rows_data.push(e.innerHTML)}))}t=[]}})),this.checkForResizableColumns()}handleSort(e){const{curr_sort_string:t,order:s}=e.detail.value,i=this.getIndexValue(t);this.emit("nile-sort",{value:{header_index:i,curr_sort_string:t,order:s}})}handleSearch(e){const t=e.detail.value;this.search__index=this.getIndexValue(e.target.textContent),this.emit("nile-table-search",{index:this.search__index,value:t})}render(){return t`
2
2
  <div class="base" part="base">
3
3
  <slot name="table__header" class="table__header"></slot>
4
4
  <slot
5
5
  @slotchange=${this.handleSlotchange}
6
6
  @nile-click-sort=${this.handleSort}
7
7
  class="nile__table__body"
8
+ ?resizable=${this.hasResizableColumns}
8
9
  @nile-search=${this.handleSearch}
9
10
  ></slot>
10
11
  </div>
11
- `}};e([s("slot")],n.prototype,"defaultSlot",void 0),e([i({flatten:!0})],n.prototype,"_childNodes",void 0),e([r()],n.prototype,"type",void 0),e([l()],n.prototype,"rows_data",void 0),e([l()],n.prototype,"header_rows_data",void 0),e([l()],n.prototype,"sort__index",void 0),e([l()],n.prototype,"search__index",void 0),n=e([a("nile-table-body")],n);export{n as N};
12
+ `}};e([s("slot")],d.prototype,"defaultSlot",void 0),e([i({flatten:!0})],d.prototype,"_childNodes",void 0),e([l()],d.prototype,"type",void 0),e([r()],d.prototype,"rows_data",void 0),e([r()],d.prototype,"header_rows_data",void 0),e([r()],d.prototype,"sort__index",void 0),e([r()],d.prototype,"search__index",void 0),e([r()],d.prototype,"hasResizableColumns",void 0),d=e([a("nile-table-body")],d);export{d as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-table-cell-item.cjs.js","tslib","lit","lit/decorators.js","./nile-table-cell-item.css.cjs.js","../internal/nile-element.cjs.js","../internal/slot.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileTableCellItemCjsJs){_export("NileTableCellItem",_nileTableCellItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileTableCellItemCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalSlotCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-table-cell-item.cjs.js","tslib","lit","lit/decorators.js","./nile-table-cell-item.css.cjs.js","../internal/resizable-table-styles.cjs.js","../internal/nile-element.cjs.js","../internal/slot.cjs.js","../internal/resizable-table-helper.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileTableCellItemCjsJs){_export("NileTableCellItem",_nileTableCellItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileTableCellItemCssCjsJs){},function(_internalResizableTableStylesCjsJs){},function(_internalNileElementCjsJs){},function(_internalSlotCjsJs){},function(_internalResizableTableHelperCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileTableCellItem}from"./nile-table-cell-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-table-cell-item.css.esm.js";import"../internal/nile-element.esm.js";import"../internal/slot.esm.js";
1
+ export{N as NileTableCellItem}from"./nile-table-cell-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-table-cell-item.css.esm.js";import"../internal/resizable-table-styles.esm.js";import"../internal/nile-element.esm.js";import"../internal/slot.esm.js";import"../internal/resizable-table-helper.esm.js";
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-table-cell-item.css.cjs.js","../internal/nile-element.cjs.js","../internal/slot.cjs.js"],function(_export,_context){"use strict";var t,e,s,l,r,i,_templateObject,_templateObject2,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){t=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.customElement;},function(_nileTableCellItemCssCjsJs){l=_nileTableCellItemCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;},function(_internalSlotCjsJs){i=_internalSlotCjsJs.H;}],execute:function execute(){_export("N",o=/*#__PURE__*/function(_r){function o(){var _this;_classCallCheck(this,o);_this=_callSuper(this,o,arguments),_this.hasSlotController=new i(_assertThisInitialized(_this),"[default]");return _this;}_inherits(o,_r);return _createClass(o,[{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n ","\n "])),this.hasSlotController.test("[default]")?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral([" <slot class=\"column\" part=\"nile__table-cell\"> </slot>"]))):"");}}],[{key:"styles",get:function get(){return[l];}}]);}(r));_export("N",o=t([s("nile-table-cell-item")],o));}};});
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-table-cell-item.css.cjs.js","../internal/nile-element.cjs.js","../internal/slot.cjs.js","../internal/resizable-table-helper.cjs.js","../internal/resizable-table-styles.cjs.js"],function(_export,_context){"use strict";var e,t,s,l,i,r,a,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,c;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;l=_litDecoratorsJs.customElement;},function(_nileTableCellItemCssCjsJs){i=_nileTableCellItemCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;},function(_internalSlotCjsJs){a=_internalSlotCjsJs.H;},function(_internalResizableTableHelperCjsJs){o=_internalResizableTableHelperCjsJs.c;},function(_internalResizableTableStylesCjsJs){}],execute:function execute(){_export("N",c=/*#__PURE__*/function(_r){function c(){var _this;_classCallCheck(this,c);_this=_callSuper(this,c,arguments),_this.hasSlotController=new a(_assertThisInitialized(_this),"[default]"),_this.resizable=!1,_this.handleResizeStart=o(_assertThisInitialized(_this),50);return _this;}_inherits(c,_r);return _createClass(c,[{key:"render",value:function render(){return this.resizable?t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"cell__wrapper\" part=\"nile__table-cell\">\n ","\n <div class=\"resizer\" @mousedown=","></div>\n </div>\n "])),this.hasSlotController.test("[default]")?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral([" <div class=\"column\" part=\"nile__table-cell\"><slot></slot></div>"]))):"",this.handleResizeStart):t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n ","\n "])),this.hasSlotController.test("[default]")?t(_templateObject4||(_templateObject4=_taggedTemplateLiteral([" <slot class=\"column\" part=\"nile__table-cell\"> </slot>"]))):"");}}],[{key:"styles",get:function get(){return[i];}}]);}(r));e([s({type:Boolean,reflect:!0})],c.prototype,"resizable",void 0),_export("N",c=e([l("nile-table-cell-item")],c));}};});
2
2
  //# sourceMappingURL=nile-table-cell-item.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-table-cell-item.cjs.js","sources":["../../../src/nile-table-cell-item/nile-table-cell-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 {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-table-cell-item.css';\nimport NileElement from '../internal/nile-element';\nimport { HasSlotController } from '../internal/slot';\n\n/**\n * Nile table Cell Item component.\n *\n * @tag nile-table-cell-item\n *\n */\n@customElement('nile-table-cell-item')\nexport class NileTableCellItem extends NileElement {\n private readonly hasSlotController = new HasSlotController(this, '[default]');\n /**\n * The styles for TableCellItem\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 /* #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 ${this.hasSlotController.test('[default]')\n ? html` <slot class=\"column\" part=\"nile__table-cell\"> </slot>`\n : ''}\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileTableCellItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-cell-item': NileTableCellItem;\n }\n}\n"],"names":["NileTableCellItem","_r","o","constructor","this","hasSlotController","HasSlotController","_this","_inherits","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","test","_templateObject2","get","styles","NileElement","__decorate","customElement"],"mappings":"utGAyBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCACYC,KAAAA,CAAiBC,iBAAG,CAAA,GAAIC,CAAAA,CAAkBF,CAAAA,sBAAAA,CAAAA,KAAAA,EAAM,YA0BlE,QAAAG,KAAA,EArBQC,SAAA,CAAAN,CAAA,CAAAD,EAAA,SAAAQ,YAAA,CAAAP,CAAA,GAAAQ,GAAA,UAAAC,KAAA,CAYA,SAAAC,MAAAA,CAAAA,CAAAA,CACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,yBACPX,IAAAA,CAAKC,iBAAkBW,CAAAA,IAAAA,CAAK,WAC1BH,CAAAA,CAAAA,CAAI,CAAAI,gBAAA,GAAAA,gBAAA,CAAAF,sBAAA,mEACJ,EAAA,EAEP,CAAA,KAAAL,GAAA,UAAAQ,GAAA,CAlBM,SAAAA,IAAA,CACL,CAAA,MAAO,CAACC,CACT,CAAA,EAUM,MAlB8BC,IAA1BpB,OAAAA,KAAAA,CAAiBqB,CAAAA,CAAAA,CAAA,CAD7BC,CAAAA,CAAc,yBACFtB"}
1
+ {"version":3,"file":"nile-table-cell-item.cjs.js","sources":["../../../src/nile-table-cell-item/nile-table-cell-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 {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-table-cell-item.css';\nimport NileElement from '../internal/nile-element';\nimport { HasSlotController } from '../internal/slot';\nimport { createResizeHandler } from '../internal/resizable-table-helper';\n\n/**\n * Nile table Cell Item component.\n *\n * @tag nile-table-cell-item\n *\n */\n@customElement('nile-table-cell-item')\nexport class NileTableCellItem extends NileElement {\n private readonly hasSlotController = new HasSlotController(this, '[default]');\n /**\n * The styles for TableCellItem\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 /** Enables the resize functionality. */\n @property({ type: Boolean, reflect: true }) resizable = false;\n\n /* #endregion */\n\n /* #region Methods */\n\n private handleResizeStart = createResizeHandler(this, 50);\n\n /**\n * Render method\n * @slot This is a slot test\n */\n public render(): TemplateResult {\n if (this.resizable) {\n return html`\n <div class=\"cell__wrapper\" part=\"nile__table-cell\">\n ${this.hasSlotController.test('[default]')\n ? html` <div class=\"column\" part=\"nile__table-cell\"><slot></slot></div>`\n : ''}\n <div class=\"resizer\" @mousedown=${this.handleResizeStart}></div>\n </div>\n `;\n } else {\n return html`\n ${this.hasSlotController.test('[default]')\n ? html` <slot class=\"column\" part=\"nile__table-cell\"> </slot>`\n : ''}\n `;\n }\n }\n\n /* #endregion */\n}\n\nexport default NileTableCellItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-cell-item': NileTableCellItem;\n }\n}\n"],"names":["NileTableCellItem","c","this","hasSlotController","HasSlotController","resizable","handleResizeStart","createResizeHandler","_this","_inherits","_r","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","test","_templateObject2","_templateObject3","_templateObject4","get","styles","NileElement","__decorate","property","type","Boolean","reflect","prototype","customElement"],"mappings":"s/GA0BaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,qEACYC,EAAAA,KAAAA,CAAiBC,kBAAG,GAAIC,CAAAA,CAAAA,CAAAA,sBAAAA,CAAAA,KAAAA,EAAwB,WAUrBF,CAAAA,CAAAA,KAAAA,CAASG,WAAG,CAMhDH,CAAAA,KAAAA,CAAAI,iBAAoBC,CAAAA,CAAAA,CAAAA,sBAAAA,CAAAA,KAAAA,EAA0B,EAAA,CA0BvD,QAAAC,KAAA,EArCQC,SAAA,CAAAR,CAAA,CAAAS,EAAA,SAAAC,YAAA,CAAAV,CAAA,GAAAW,GAAA,UAAAC,KAAA,CAiBA,SAAAC,MAAAA,CAAAA,CACL,CAAA,MAAIZ,KAAKG,CAAAA,SAAAA,CACAU,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,wKAELf,IAAAA,CAAKC,iBAAkBe,CAAAA,IAAAA,CAAK,WAC1BH,CAAAA,CAAAA,CAAI,CAAAI,gBAAA,GAAAA,gBAAA,CAAAF,sBAAA,6EACJ,EAAA,CAC8Bf,IAAKI,CAAAA,iBAAAA,EAIpCS,CAAI,CAAAK,gBAAA,GAAAA,gBAAA,CAAAH,sBAAA,6BACPf,IAAAA,CAAKC,iBAAkBe,CAAAA,IAAAA,CAAK,WAC1BH,CAAAA,CAAAA,CAAI,CAAAM,gBAAA,GAAAA,gBAAA,CAAAJ,sBAAA,mEACJ,EAAA,CAGT,EAAA,KAAAL,GAAA,UAAAU,GAAA,CAlCM,SAAAA,IAAA,CAAWC,CAChB,MAAO,CAACA,CACT,CAAA,EAeM,MAvB8BC,CAAhC,GAWuCC,EAAA,CAA3CC,CAAAA,CAAS,CAAEC,IAAAA,CAAMC,QAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0B7B,CAAA8B,CAAAA,SAAAA,CAAA,gBAAA,EAXnD9B,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAiByB,EAAA,CAD7BM,CAAAA,CAAc,yBACF/B"}
@@ -1,2 +1,2 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var i,_templateObject,l;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){i=_lit.css;}],execute:function execute(){_export("s",l=i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --min-cell-width:auto;\n --cell-width:auto;\n --min--height: 52px;\n --max--cell-width: auto;\n box-sizing: border-box;\n display: table-cell;\n vertical-align: middle;\n max-width: var(--max--cell-width);\n padding: 16px 24px;\n min-height: var(--min--height);\n }\n\n .column {\n min-width:var(--min-cell-width);\n width:var(--cell-width);\n height: 100%;\n color: var(--nile-colors-gray-light-mode-600);\n font-family: var(--nile-font-family-serif);\n font-size: var(--nile-type-scale-3);\n font-style: normal;\n font-weight: var(--nile-font-weight-regular);\n /* line-height: var(--nile-type-scale-6); */\n line-height: normal;\n letter-spacing: 0.2px;\n }\n"]))));}};});
1
+ System.register(["lit","../internal/resizable-table-styles.cjs.js"],function(_export,_context){"use strict";var i,e,l,t,_templateObject,a;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){i=_lit.css;},function(_internalResizableTableStylesCjsJs){e=_internalResizableTableStylesCjsJs.r;l=_internalResizableTableStylesCjsJs.a;t=_internalResizableTableStylesCjsJs.b;}],execute:function execute(){_export("s",a=i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --min-cell-width:auto;\n --cell-width:auto;\n --min--height: 52px;\n --max--cell-width: auto;\n box-sizing: border-box;\n display: table-cell;\n vertical-align: middle;\n padding: 16px 24px;\n max-width: var(--max--cell-width); \n min-height: var(--min--height);\n }\n\n .cell__wrapper {\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n overflow: hidden;\n width: 100%;\n }\n\n .column {\n min-width:var(--min-cell-width);\n width:var(--cell-width);\n height: 100%;\n color: var(--nile-colors-gray-light-mode-600);\n font-family: var(--nile-font-family-serif);\n font-size: var(--nile-type-scale-3);\n font-style: normal;\n font-weight: var(--nile-font-weight-regular);\n /* line-height: var(--nile-type-scale-6); */\n line-height: normal;\n letter-spacing: 0.2px;\n }\n\n ","\n ","\n ","\n"])),e,l,t));}};});
2
2
  //# sourceMappingURL=nile-table-cell-item.css.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-table-cell-item.css.cjs.js","sources":["../../../src/nile-table-cell-item/nile-table-cell-item.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 * TableCellItem CSS\n */\nexport const styles = css`\n :host {\n --min-cell-width:auto;\n --cell-width:auto;\n --min--height: 52px;\n --max--cell-width: auto;\n box-sizing: border-box;\n display: table-cell;\n vertical-align: middle;\n max-width: var(--max--cell-width);\n padding: 16px 24px;\n min-height: var(--min--height);\n }\n\n .column {\n min-width:var(--min-cell-width);\n width:var(--cell-width);\n height: 100%;\n color: var(--nile-colors-gray-light-mode-600);\n font-family: var(--nile-font-family-serif);\n font-size: var(--nile-type-scale-3);\n font-style: normal;\n font-weight: var(--nile-font-weight-regular);\n /* line-height: var(--nile-type-scale-6); */\n line-height: normal;\n letter-spacing: 0.2px;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
1
+ {"version":3,"file":"nile-table-cell-item.css.cjs.js","sources":["../../../src/nile-table-cell-item/nile-table-cell-item.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';\nimport { resizableHostStyles, resizerStyles, resizableSlotStyles } from '../internal/resizable-table-styles';\n\n/**\n * TableCellItem CSS\n */\nexport const styles = css`\n :host {\n --min-cell-width:auto;\n --cell-width:auto;\n --min--height: 52px;\n --max--cell-width: auto;\n box-sizing: border-box;\n display: table-cell;\n vertical-align: middle;\n padding: 16px 24px;\n max-width: var(--max--cell-width); \n min-height: var(--min--height);\n }\n\n .cell__wrapper {\n height: 100%;\n position: relative;\n display: flex;\n align-items: center;\n overflow: hidden;\n width: 100%;\n }\n\n .column {\n min-width:var(--min-cell-width);\n width:var(--cell-width);\n height: 100%;\n color: var(--nile-colors-gray-light-mode-600);\n font-family: var(--nile-font-family-serif);\n font-size: var(--nile-type-scale-3);\n font-style: normal;\n font-weight: var(--nile-font-weight-regular);\n /* line-height: var(--nile-type-scale-6); */\n line-height: normal;\n letter-spacing: 0.2px;\n }\n\n ${resizableHostStyles}\n ${resizerStyles}\n ${resizableSlotStyles}\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral","resizableHostStyles","resizerStyles","resizableSlotStyles"],"mappings":"0gBAaaA,EAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,q6BAqCrBC,CAAAA,CACAC,CAAAA,CACAC,CAAAA"}
@@ -1,4 +1,4 @@
1
- import{css as i}from"lit";const l=i`
1
+ import{css as i}from"lit";import{r as e,a as l,b as t}from"../internal/resizable-table-styles.esm.js";const a=i`
2
2
  :host {
3
3
  --min-cell-width:auto;
4
4
  --cell-width:auto;
@@ -7,11 +7,20 @@ import{css as i}from"lit";const l=i`
7
7
  box-sizing: border-box;
8
8
  display: table-cell;
9
9
  vertical-align: middle;
10
- max-width: var(--max--cell-width);
11
10
  padding: 16px 24px;
11
+ max-width: var(--max--cell-width);
12
12
  min-height: var(--min--height);
13
13
  }
14
14
 
15
+ .cell__wrapper {
16
+ height: 100%;
17
+ position: relative;
18
+ display: flex;
19
+ align-items: center;
20
+ overflow: hidden;
21
+ width: 100%;
22
+ }
23
+
15
24
  .column {
16
25
  min-width:var(--min-cell-width);
17
26
  width:var(--cell-width);
@@ -25,4 +34,8 @@ import{css as i}from"lit";const l=i`
25
34
  line-height: normal;
26
35
  letter-spacing: 0.2px;
27
36
  }
28
- `;export{l as s};
37
+
38
+ ${e}
39
+ ${l}
40
+ ${t}
41
+ `;export{a as s};
@@ -1,3 +1,8 @@
1
- import{__decorate as t}from"tslib";import{html as e}from"lit";import{customElement as s}from"lit/decorators.js";import{s as l}from"./nile-table-cell-item.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import{H as i}from"../internal/slot.esm.js";let o=class extends r{constructor(){super(...arguments),this.hasSlotController=new i(this,"[default]")}static get styles(){return[l]}render(){return e`
2
- ${this.hasSlotController.test("[default]")?e` <slot class="column" part="nile__table-cell"> </slot>`:""}
3
- `}};o=t([s("nile-table-cell-item")],o);export{o as N};
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as s,customElement as l}from"lit/decorators.js";import{s as i}from"./nile-table-cell-item.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import{H as a}from"../internal/slot.esm.js";import{c as o}from"../internal/resizable-table-helper.esm.js";import"../internal/resizable-table-styles.esm.js";let m=class extends r{constructor(){super(...arguments),this.hasSlotController=new a(this,"[default]"),this.resizable=!1,this.handleResizeStart=o(this,50)}static get styles(){return[i]}render(){return this.resizable?t`
2
+ <div class="cell__wrapper" part="nile__table-cell">
3
+ ${this.hasSlotController.test("[default]")?t` <div class="column" part="nile__table-cell"><slot></slot></div>`:""}
4
+ <div class="resizer" @mousedown=${this.handleResizeStart}></div>
5
+ </div>
6
+ `:t`
7
+ ${this.hasSlotController.test("[default]")?t` <slot class="column" part="nile__table-cell"> </slot>`:""}
8
+ `}};e([s({type:Boolean,reflect:!0})],m.prototype,"resizable",void 0),m=e([l("nile-table-cell-item")],m);export{m as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-table-header-item.cjs.js","tslib","lit","lit/decorators.js","./nile-table-header-item.css.cjs.js","../internal/nile-element.cjs.js","../internal/slot.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileTableHeaderItemCjsJs){_export("NileTableHeaderItem",_nileTableHeaderItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileTableHeaderItemCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalSlotCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-table-header-item.cjs.js","tslib","lit","lit/decorators.js","./nile-table-header-item.css.cjs.js","../internal/resizable-table-styles.cjs.js","../internal/nile-element.cjs.js","../internal/slot.cjs.js","../internal/resizable-table-helper.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileTableHeaderItemCjsJs){_export("NileTableHeaderItem",_nileTableHeaderItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileTableHeaderItemCssCjsJs){},function(_internalResizableTableStylesCjsJs){},function(_internalNileElementCjsJs){},function(_internalSlotCjsJs){},function(_internalResizableTableHelperCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileTableHeaderItem}from"./nile-table-header-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-table-header-item.css.esm.js";import"../internal/nile-element.esm.js";import"../internal/slot.esm.js";
1
+ export{N as NileTableHeaderItem}from"./nile-table-header-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-table-header-item.css.esm.js";import"../internal/resizable-table-styles.esm.js";import"../internal/nile-element.esm.js";import"../internal/slot.esm.js";import"../internal/resizable-table-helper.esm.js";
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-table-header-item.css.cjs.js","../internal/nile-element.cjs.js","../internal/slot.cjs.js"],function(_export,_context){"use strict";var e,t,i,l,s,n,r,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,a;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;l=_litDecoratorsJs.state;s=_litDecoratorsJs.customElement;},function(_nileTableHeaderItemCssCjsJs){n=_nileTableHeaderItemCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;},function(_internalSlotCjsJs){o=_internalSlotCjsJs.H;}],execute:function execute(){_export("N",a=/*#__PURE__*/function(_r){function a(){var _this;_classCallCheck(this,a);_this=_callSuper(this,a,arguments),_this.hasSlotController=new o(_assertThisInitialized(_this),"[default]"),_this.havesort=!1,_this.havefilter=!1,_this.iconName="",_this.sorting_ct=0;return _this;}_inherits(a,_r);return _createClass(a,[{key:"handleSort",value:function handleSort(e){this.sorting_ct++;var t=this.hasSlotController.host.innerHTML;this.emit("nile-click-sort",{value:{curr_sort_string:t,order:["normal","asc","des"][this.sorting_ct%3]}});}},{key:"handleSearch",value:function handleSearch(e){this.emit("nile-search",{value:e.detail.value});}},{key:"render",value:function render(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral([" ",""])),this.hasSlotController.test("[default]")?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div class=\"header__item__wrapper\" part=\"nile__table-header-cell\">\n <div class=\"headers\">\n <slot> </slot>\n ","\n ","\n ","\n ","\n ","\n </div>\n </div>"])),this.havesort&&this.sorting_ct%3==0?t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-icon\n name=\"sortdown\"\n size=\"16\"\n @click=","\n class=\"hover__arrow\"\n ></nile-icon>"])),this.handleSort):null,this.havesort&&this.sorting_ct%3==1?t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-icon\n name=\"sortdown\"\n size=\"16\"\n @click=","\n ></nile-icon>"])),this.handleSort):null,this.havesort&&this.sorting_ct%3==2?t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-icon\n name=\"sortup\"\n size=\"16\"\n @click=","\n ></nile-icon>"])),this.handleSort):null,this.iconName?t(_templateObject6||(_templateObject6=_taggedTemplateLiteral([" <nile-icon name=\"","\" size=\"16\"></nile-icon>"])),this.iconName):t(_templateObject7||(_templateObject7=_taggedTemplateLiteral([""]))),this.havefilter?t(_templateObject8||(_templateObject8=_taggedTemplateLiteral([" <nile-popover title=\"Filter\" placement=\"bottom\">\n <nile-icon name=\"filter\" size=\"16\" slot=\"anchor\"></nile-icon>\n <nile-input\n placeholder=\"Search\"\n @nile-input=","\n part=\"filter__search\"\n ></nile-input>\n <slot name=\"filter__content\" part=\"filter__content\"></slot>\n </nile-popover>"])),this.handleSearch):t(_templateObject9||(_templateObject9=_taggedTemplateLiteral([""])))):null);}}],[{key:"styles",get:function get(){return[n];}}]);}(r));e([i({type:Boolean,reflect:!0})],a.prototype,"havesort",void 0),e([i({type:Boolean,reflect:!0})],a.prototype,"havefilter",void 0),e([i({type:String,reflect:!0,attribute:"icon-name"})],a.prototype,"iconName",void 0),e([l()],a.prototype,"sorting_ct",void 0),_export("N",a=e([s("nile-table-header-item")],a));}};});
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-table-header-item.css.cjs.js","../internal/nile-element.cjs.js","../internal/slot.cjs.js","../internal/resizable-table-helper.cjs.js","../internal/resizable-table-styles.cjs.js"],function(_export,_context){"use strict";var e,i,t,s,l,r,n,o,a,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,c;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.state;l=_litDecoratorsJs.customElement;},function(_nileTableHeaderItemCssCjsJs){r=_nileTableHeaderItemCssCjsJs.s;},function(_internalNileElementCjsJs){n=_internalNileElementCjsJs.N;},function(_internalSlotCjsJs){o=_internalSlotCjsJs.H;},function(_internalResizableTableHelperCjsJs){a=_internalResizableTableHelperCjsJs.c;},function(_internalResizableTableStylesCjsJs){}],execute:function execute(){_export("N",c=/*#__PURE__*/function(_n){function c(){var _this;_classCallCheck(this,c);_this=_callSuper(this,c,arguments),_this.hasSlotController=new o(_assertThisInitialized(_this),"[default]"),_this.havesort=!1,_this.havefilter=!1,_this.iconName="",_this.resizable=!1,_this.sorting_ct=0,_this.handleResizeStart=a(_assertThisInitialized(_this),50);return _this;}_inherits(c,_n);return _createClass(c,[{key:"handleSort",value:function handleSort(e){this.sorting_ct++;var i=this.hasSlotController.host.innerHTML;this.emit("nile-click-sort",{value:{curr_sort_string:i,order:["normal","asc","des"][this.sorting_ct%3]}});}},{key:"handleSearch",value:function handleSearch(e){this.emit("nile-search",{value:e.detail.value});}},{key:"render",value:function render(){return i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"header__item__wrapper\" part=\"nile__table-header-cell\">\n <div class=\"headers\">\n <slot> </slot>\n ","\n ","\n ","\n ","\n ","\n </div>\n ","\n </div>"])),this.havesort&&this.sorting_ct%3==0?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-icon\n name=\"sortdown\"\n size=\"16\"\n @click=","\n class=\"hover__arrow\"\n ></nile-icon>"])),this.handleSort):null,this.havesort&&this.sorting_ct%3==1?i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-icon\n name=\"sortdown\"\n size=\"16\"\n @click=","\n ></nile-icon>"])),this.handleSort):null,this.havesort&&this.sorting_ct%3==2?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-icon\n name=\"sortup\"\n size=\"16\"\n @click=","\n ></nile-icon>"])),this.handleSort):null,this.iconName?i(_templateObject5||(_templateObject5=_taggedTemplateLiteral([" <nile-icon name=\"","\" size=\"16\"></nile-icon>"])),this.iconName):i(_templateObject6||(_templateObject6=_taggedTemplateLiteral([""]))),this.havefilter?i(_templateObject7||(_templateObject7=_taggedTemplateLiteral([" <nile-popover title=\"Filter\" placement=\"bottom\">\n <nile-icon name=\"filter\" size=\"16\" slot=\"anchor\"></nile-icon>\n <nile-input\n placeholder=\"Search\"\n @nile-input=","\n part=\"filter__search\"\n ></nile-input>\n <slot name=\"filter__content\" part=\"filter__content\"></slot>\n </nile-popover>"])),this.handleSearch):i(_templateObject8||(_templateObject8=_taggedTemplateLiteral([""]))),this.resizable?i(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<div class=\"resizer\" @mousedown=","></div>"])),this.handleResizeStart):null);}}],[{key:"styles",get:function get(){return[r];}}]);}(n));e([t({type:Boolean,reflect:!0})],c.prototype,"havesort",void 0),e([t({type:Boolean,reflect:!0})],c.prototype,"havefilter",void 0),e([t({type:String,reflect:!0,attribute:"icon-name"})],c.prototype,"iconName",void 0),e([t({type:Boolean,reflect:!0})],c.prototype,"resizable",void 0),e([s()],c.prototype,"sorting_ct",void 0),_export("N",c=e([l("nile-table-header-item")],c));}};});
2
2
  //# sourceMappingURL=nile-table-header-item.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-table-header-item.cjs.js","sources":["../../../src/nile-table-header-item/nile-table-header-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 {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, state, property } from 'lit/decorators.js';\nimport { styles } from './nile-table-header-item.css';\nimport NileElement from '../internal/nile-element';\nimport { HasSlotController } from '../internal/slot';\n\n/**\n * Nile icon component.\n *\n * @tag nile-table-header-item\n *\n */\n@customElement('nile-table-header-item')\nexport class NileTableHeaderItem extends NileElement {\n private readonly hasSlotController = new HasSlotController(this, '[default]');\n /**\n * The styles for TableHeaderItem\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 /** Enables the sort functionality. */\n @property({ type: Boolean, reflect: true }) havesort = false;\n\n /** Enables the sort functionality. */\n @property({ type: Boolean, reflect: true }) havefilter = false;\n\n /** Places the icon . */\n @property({ type: String, reflect: true, attribute: 'icon-name' }) iconName =\n '';\n\n @state() sorting_ct = 0;\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n private handleSort(e: any) {\n this.sorting_ct++;\n let curr_sort_string = this.hasSlotController.host.innerHTML;\n const order = ['normal', 'asc', 'des'];\n this.emit('nile-click-sort', {\n value: { curr_sort_string, order: order[this.sorting_ct % 3] },\n });\n }\n\n private handleSearch(e: any) {\n this.emit('nile-search', { value: e.detail.value });\n }\n\n public render(): TemplateResult {\n return html` ${this.hasSlotController.test('[default]')\n ? html`\n <div class=\"header__item__wrapper\" part=\"nile__table-header-cell\">\n <div class=\"headers\">\n <slot> </slot>\n ${this.havesort && this.sorting_ct % 3 === 0\n ? html`<nile-icon\n name=\"sortdown\"\n size=\"16\"\n @click=${this.handleSort}\n class=\"hover__arrow\"\n ></nile-icon>`\n : null}\n ${this.havesort && this.sorting_ct % 3 === 1\n ? html`<nile-icon\n name=\"sortdown\"\n size=\"16\"\n @click=${this.handleSort}\n ></nile-icon>`\n : null}\n ${this.havesort && this.sorting_ct % 3 === 2\n ? html`<nile-icon\n name=\"sortup\"\n size=\"16\"\n @click=${this.handleSort}\n ></nile-icon>`\n : null}\n ${this.iconName\n ? html` <nile-icon name=\"${this.iconName}\" size=\"16\"></nile-icon>`\n : html``}\n ${this.havefilter\n ? html` <nile-popover title=\"Filter\" placement=\"bottom\">\n <nile-icon name=\"filter\" size=\"16\" slot=\"anchor\"></nile-icon>\n <nile-input\n placeholder=\"Search\"\n @nile-input=${this.handleSearch}\n part=\"filter__search\"\n ></nile-input>\n <slot name=\"filter__content\" part=\"filter__content\"></slot>\n </nile-popover>`\n : html``}\n </div>\n </div>`\n : null}`;\n }\n /* #endregion */\n}\n\nexport default NileTableHeaderItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-header-item': NileTableHeaderItem;\n }\n}\n"],"names":["NileTableHeaderItem","_r","a","constructor","this","hasSlotController","HasSlotController","havesort","havefilter","iconName","sorting_ct","_this","_inherits","_createClass","key","value","handleSort","e","curr_sort_string","host","innerHTML","emit","order","handleSearch","detail","render","html","_templateObject","_taggedTemplateLiteral","test","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","get","styles","NileElement","__decorate","property","type","Boolean","reflect","prototype","String","attribute","state","_export","customElement"],"mappings":"64GAyBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAA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AA,SAAAA,CAAA,YAAA,CAAA,IAAA,EAAA,CAAA,CAGIL,EAAA,CAAlEC,CAAAA,CAAS,CAAEC,IAAAA,CAAMI,MAAQF,CAAAA,OAAAA,CAAAA,CAAS,EAAMG,SAAW,CAAA,WAAA,CAAA,CAAA,CAAA,CAC/ChD,CAAA8C,CAAAA,SAAAA,CAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAEIL,EAAA,CAARQ,CAAAA,CAAAA,CAAAA,CAAAA,CAAuBjD,CAAA8C,CAAAA,SAAAA,CAAA,YAAA,CAAA,IAAA,EAAA,CAAA,CAAAI,OAAA,KApBblD,EAAmByC,CAAA,CAAA,CAD/BU,CAAc,CAAA,wBAAA,CAAA,CAAA,CACFnD"}
1
+ {"version":3,"file":"nile-table-header-item.cjs.js","sources":["../../../src/nile-table-header-item/nile-table-header-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 {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, state, property } from 'lit/decorators.js';\nimport { styles } from './nile-table-header-item.css';\nimport NileElement from '../internal/nile-element';\nimport { HasSlotController } from '../internal/slot';\nimport { createResizeHandler } from '../internal/resizable-table-helper';\n\n/**\n * Nile icon component.\n *\n * @tag nile-table-header-item\n *\n */\n@customElement('nile-table-header-item')\nexport class NileTableHeaderItem extends NileElement {\n private readonly hasSlotController = new HasSlotController(this, '[default]');\n /**\n * The styles for TableHeaderItem\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 /** Enables the sort functionality. */\n @property({ type: Boolean, reflect: true }) havesort = false;\n\n /** Enables the sort functionality. */\n @property({ type: Boolean, reflect: true }) havefilter = false;\n\n /** Places the icon . */\n @property({ type: String, reflect: true, attribute: 'icon-name' }) iconName =\n '';\n\n /** Enables the resize functionality. */\n @property({ type: Boolean, reflect: true }) resizable = false;\n\n @state() sorting_ct = 0;\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n private handleSort(e: any) {\n this.sorting_ct++;\n let curr_sort_string = this.hasSlotController.host.innerHTML;\n const order = ['normal', 'asc', 'des'];\n this.emit('nile-click-sort', {\n value: { curr_sort_string, order: order[this.sorting_ct % 3] },\n });\n }\n\n private handleSearch(e: any) {\n this.emit('nile-search', { value: e.detail.value });\n }\n\n private handleResizeStart = createResizeHandler(this, 50);\n\n public render(): TemplateResult {\n return html`\n <div class=\"header__item__wrapper\" part=\"nile__table-header-cell\">\n <div class=\"headers\">\n <slot> </slot>\n ${this.havesort && this.sorting_ct % 3 === 0\n ? html`<nile-icon\n name=\"sortdown\"\n size=\"16\"\n @click=${this.handleSort}\n class=\"hover__arrow\"\n ></nile-icon>`\n : null}\n ${this.havesort && this.sorting_ct % 3 === 1\n ? html`<nile-icon\n name=\"sortdown\"\n size=\"16\"\n @click=${this.handleSort}\n ></nile-icon>`\n : null}\n ${this.havesort && this.sorting_ct % 3 === 2\n ? html`<nile-icon\n name=\"sortup\"\n size=\"16\"\n @click=${this.handleSort}\n ></nile-icon>`\n : null}\n ${this.iconName\n ? html` <nile-icon name=\"${this.iconName}\" size=\"16\"></nile-icon>`\n : html``}\n ${this.havefilter\n ? html` <nile-popover title=\"Filter\" placement=\"bottom\">\n <nile-icon name=\"filter\" size=\"16\" slot=\"anchor\"></nile-icon>\n <nile-input\n placeholder=\"Search\"\n @nile-input=${this.handleSearch}\n part=\"filter__search\"\n ></nile-input>\n <slot name=\"filter__content\" part=\"filter__content\"></slot>\n </nile-popover>`\n : html``}\n </div>\n ${this.resizable \n ? html`<div class=\"resizer\" @mousedown=${this.handleResizeStart}></div>`\n : null}\n </div>`;\n }\n}\n\nexport default NileTableHeaderItem;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-header-item': NileTableHeaderItem;\n }\n}\n"],"names":["NileTableHeaderItem","_n","c","this","hasSlotController","HasSlotController","havesort","havefilter","iconName","resizable","sorting_ct","handleResizeStart","createResizeHandler","_this","_inherits","_createClass","key","value","handleSort","e","curr_sort_string","host","innerHTML","emit","order","handleSearch","detail","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","_templateObject4","_templateObject5","_templateObject6","_templateObject7","_templateObject8","_templateObject9","get","styles","NileElement","__decorate","property","type","Boolean","reflect","prototype","String","attribute","state","_export","customElement"],"mappings":"4mHA0BaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,uEACYC,KAAAA,CAAiBC,iBAAAA,CAAG,GAAIC,CAAAA,CAAkBF,CAAAA,sBAAAA,CAAAA,KAAAA,EAAM,aAUrBA,KAAAA,CAAQG,QAAAA,CAAAA,CAAG,CAGXH,CAAAA,KAAAA,CAAUI,UAAG,CAAA,CAAA,CAAA,CAGUJ,KAAAA,CAAQK,QACzE,CAAA,EAAA,CAG0CL,KAAAA,CAASM,SAAG,CAAA,CAAA,CAAA,CAE/CN,KAAAA,CAAUO,UAAG,CAAA,CAAA,CAuBdP,KAAAA,CAAAQ,iBAAAA,CAAoBC,CAAoBT,CAAAA,sBAAAA,CAAAA,KAAAA,EAAM,GAiDvD,QAAAU,KAAA,EAzFQC,SAAA,CAAAZ,CAAA,CAAAD,EAAA,SAAAc,YAAA,CAAAb,CAAA,GAAAc,GAAA,cAAAC,KAAA,CA2BC,SAAAC,UAAAA,CAAWC,CAAAA,CAAAA,CACjBhB,IAAKO,CAAAA,UAAAA,EAAAA,CACL,GAAIU,CAAAA,CAAmBjB,CAAAA,IAAAA,CAAKC,kBAAkBiB,IAAKC,CAAAA,SAAAA,CAEnDnB,KAAKoB,IAAK,CAAA,iBAAA,CAAmB,CAC3BN,KAAAA,CAAO,CAAEG,gBAAAA,CAAAA,CAAAA,CAAkBI,MAFf,CAAC,QAAA,CAAU,MAAO,KAEUrB,CAAAA,CAAAA,IAAAA,CAAKO,W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System.register(["lit"],function(_export,_context){"use strict";var i,_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){i=_lit.css;}],execute:function execute(){_export("s",e=i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --cell-min-width: auto;\n --cell-width: auto;\n display: table-cell;\n box-sizing: border-box;\n }\n \n .header__item__wrapper{\n min-width:var(--cell-min-width);\n width:var(--cell-width);\n display:flex;\n align-items:center;\n box-sizing: border-box;\n padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-3xl);\n min-height: 44px;\n height: 44px;\n }\n\n .headers {\n overflow:hidden;\n display: flex;\n align-items: center;\n height: auto;\n width: 100%;\n gap: 8px;\n color: var(--nile-colors-gray-light-mode-600);\n font-family: var(--nile-font-family-serif);\n font-feature-settings: 'clig' off, 'liga' off;\n font-size: var(--nile-type-scale-2);\n font-weight: 500;\n font-style: normal;\n /* line-height: var(--nile-type-scale-5); */\n line-height: normal;\n }\n\n nile-icon {\n cursor: pointer;\n }\n\n .sorting__icons {\n display: flex;\n flex-direction: column;\n align-items: centre;\n }\n\n .sorting__icons nile-icon:hover {\n opacity: 0.4;\n }\n\n .hover__arrow {\n opacity: 0;\n }\n\n .headers:hover .hover__arrow {\n opacity: 0.3;\n }\n"]))));}};});
1
+ System.register(["lit","../internal/resizable-table-styles.cjs.js"],function(_export,_context){"use strict";var i,e,l,_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){i=_lit.css;},function(_internalResizableTableStylesCjsJs){e=_internalResizableTableStylesCjsJs.c;l=_internalResizableTableStylesCjsJs.h;}],execute:function execute(){_export("s",t=i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n --cell-min-width: auto;\n --cell-width: auto;\n display: table-cell;\n box-sizing: border-box;\n }\n \n .header__item__wrapper{\n min-width:var(--cell-min-width);\n width:var(--cell-width);\n display:flex;\n align-items:center;\n box-sizing: border-box;\n padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-3xl);\n min-height: 44px;\n height: 44px;\n }\n\n .headers {\n overflow:hidden;\n display: flex;\n align-items: center;\n height: auto;\n width: 100%;\n gap: 8px;\n color: var(--nile-colors-gray-light-mode-600);\n font-family: var(--nile-font-family-serif);\n font-feature-settings: 'clig' off, 'liga' off;\n font-size: var(--nile-type-scale-2);\n font-weight: 500;\n font-style: normal;\n /* line-height: var(--nile-type-scale-5); */\n line-height: normal;\n }\n\n nile-icon {\n cursor: pointer;\n }\n\n .sorting__icons {\n display: flex;\n flex-direction: column;\n align-items: centre;\n }\n\n .sorting__icons nile-icon:hover {\n opacity: 0.4;\n }\n\n .hover__arrow {\n opacity: 0;\n }\n\n .headers:hover .hover__arrow {\n opacity: 0.3;\n }\n\n ","\n ","\n"])),e,l));}};});
2
2
  //# sourceMappingURL=nile-table-header-item.css.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-table-header-item.css.cjs.js","sources":["../../../src/nile-table-header-item/nile-table-header-item.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 * TableHeaderItem CSS\n */\nexport const styles = css`\n :host {\n --cell-min-width: auto;\n --cell-width: auto;\n display: table-cell;\n box-sizing: border-box;\n }\n \n .header__item__wrapper{\n min-width:var(--cell-min-width);\n width:var(--cell-width);\n display:flex;\n align-items:center;\n box-sizing: border-box;\n padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-3xl);\n min-height: 44px;\n height: 44px;\n }\n\n .headers {\n overflow:hidden;\n display: flex;\n align-items: center;\n height: auto;\n width: 100%;\n gap: 8px;\n color: var(--nile-colors-gray-light-mode-600);\n font-family: var(--nile-font-family-serif);\n font-feature-settings: 'clig' off, 'liga' off;\n font-size: var(--nile-type-scale-2);\n font-weight: 500;\n font-style: normal;\n /* line-height: var(--nile-type-scale-5); */\n line-height: normal;\n }\n\n nile-icon {\n cursor: pointer;\n }\n\n .sorting__icons {\n display: flex;\n flex-direction: column;\n align-items: centre;\n }\n\n .sorting__icons nile-icon:hover {\n opacity: 0.4;\n }\n\n .hover__arrow {\n opacity: 0;\n }\n\n .headers:hover .hover__arrow {\n opacity: 0.3;\n }\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
1
+ {"version":3,"file":"nile-table-header-item.css.cjs.js","sources":["../../../src/nile-table-header-item/nile-table-header-item.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';\nimport { resizableHeaderStyles, headerResizerStyles } from '../internal/resizable-table-styles';\n\n/**\n * TableHeaderItem CSS\n */\nexport const styles = css`\n :host {\n --cell-min-width: auto;\n --cell-width: auto;\n display: table-cell;\n box-sizing: border-box;\n }\n \n .header__item__wrapper{\n min-width:var(--cell-min-width);\n width:var(--cell-width);\n display:flex;\n align-items:center;\n box-sizing: border-box;\n padding: var(--nile-spacing-spacing-lg) var(--nile-spacing-spacing-3xl);\n min-height: 44px;\n height: 44px;\n }\n\n .headers {\n overflow:hidden;\n display: flex;\n align-items: center;\n height: auto;\n width: 100%;\n gap: 8px;\n color: var(--nile-colors-gray-light-mode-600);\n font-family: var(--nile-font-family-serif);\n font-feature-settings: 'clig' off, 'liga' off;\n font-size: var(--nile-type-scale-2);\n font-weight: 500;\n font-style: normal;\n /* line-height: var(--nile-type-scale-5); */\n line-height: normal;\n }\n\n nile-icon {\n cursor: pointer;\n }\n\n .sorting__icons {\n display: flex;\n flex-direction: column;\n align-items: centre;\n }\n\n .sorting__icons nile-icon:hover {\n opacity: 0.4;\n }\n\n .hover__arrow {\n opacity: 0;\n }\n\n .headers:hover .hover__arrow {\n opacity: 0.3;\n }\n\n ${resizableHeaderStyles}\n ${headerResizerStyles}\n`;\n\nexport default [styles];\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral","resizableHeaderStyles","headerResizerStyles"],"mappings":"ieAaaA,EAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,qsCA0DrBC,CAAAA,CACAC,CAAAA"}
@@ -1,4 +1,4 @@
1
- import{css as i}from"lit";const e=i`
1
+ import{css as i}from"lit";import{c as e,h as l}from"../internal/resizable-table-styles.esm.js";const t=i`
2
2
  :host {
3
3
  --cell-min-width: auto;
4
4
  --cell-width: auto;
@@ -55,4 +55,7 @@ import{css as i}from"lit";const e=i`
55
55
  .headers:hover .hover__arrow {
56
56
  opacity: 0.3;
57
57
  }
58
- `;export{e as s};
58
+
59
+ ${e}
60
+ ${l}
61
+ `;export{t as s};
@@ -1,25 +1,25 @@
1
- import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as i,state as l,customElement as s}from"lit/decorators.js";import{s as n}from"./nile-table-header-item.css.esm.js";import{N as r}from"../internal/nile-element.esm.js";import{H as o}from"../internal/slot.esm.js";let a=class extends r{constructor(){super(...arguments),this.hasSlotController=new o(this,"[default]"),this.havesort=!1,this.havefilter=!1,this.iconName="",this.sorting_ct=0}static get styles(){return[n]}handleSort(e){this.sorting_ct++;let t=this.hasSlotController.host.innerHTML;this.emit("nile-click-sort",{value:{curr_sort_string:t,order:["normal","asc","des"][this.sorting_ct%3]}})}handleSearch(e){this.emit("nile-search",{value:e.detail.value})}render(){return t` ${this.hasSlotController.test("[default]")?t`
1
+ import{__decorate as e}from"tslib";import{html as i}from"lit";import{property as t,state as s,customElement as l}from"lit/decorators.js";import{s as r}from"./nile-table-header-item.css.esm.js";import{N as n}from"../internal/nile-element.esm.js";import{H as o}from"../internal/slot.esm.js";import{c as a}from"../internal/resizable-table-helper.esm.js";import"../internal/resizable-table-styles.esm.js";let c=class extends n{constructor(){super(...arguments),this.hasSlotController=new o(this,"[default]"),this.havesort=!1,this.havefilter=!1,this.iconName="",this.resizable=!1,this.sorting_ct=0,this.handleResizeStart=a(this,50)}static get styles(){return[r]}handleSort(e){this.sorting_ct++;let i=this.hasSlotController.host.innerHTML;this.emit("nile-click-sort",{value:{curr_sort_string:i,order:["normal","asc","des"][this.sorting_ct%3]}})}handleSearch(e){this.emit("nile-search",{value:e.detail.value})}render(){return i`
2
2
  <div class="header__item__wrapper" part="nile__table-header-cell">
3
3
  <div class="headers">
4
4
  <slot> </slot>
5
- ${this.havesort&&this.sorting_ct%3==0?t`<nile-icon
5
+ ${this.havesort&&this.sorting_ct%3==0?i`<nile-icon
6
6
  name="sortdown"
7
7
  size="16"
8
8
  @click=${this.handleSort}
9
9
  class="hover__arrow"
10
10
  ></nile-icon>`:null}
11
- ${this.havesort&&this.sorting_ct%3==1?t`<nile-icon
11
+ ${this.havesort&&this.sorting_ct%3==1?i`<nile-icon
12
12
  name="sortdown"
13
13
  size="16"
14
14
  @click=${this.handleSort}
15
15
  ></nile-icon>`:null}
16
- ${this.havesort&&this.sorting_ct%3==2?t`<nile-icon
16
+ ${this.havesort&&this.sorting_ct%3==2?i`<nile-icon
17
17
  name="sortup"
18
18
  size="16"
19
19
  @click=${this.handleSort}
20
20
  ></nile-icon>`:null}
21
- ${this.iconName?t` <nile-icon name="${this.iconName}" size="16"></nile-icon>`:t``}
22
- ${this.havefilter?t` <nile-popover title="Filter" placement="bottom">
21
+ ${this.iconName?i` <nile-icon name="${this.iconName}" size="16"></nile-icon>`:i``}
22
+ ${this.havefilter?i` <nile-popover title="Filter" placement="bottom">
23
23
  <nile-icon name="filter" size="16" slot="anchor"></nile-icon>
24
24
  <nile-input
25
25
  placeholder="Search"
@@ -27,6 +27,7 @@ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as
27
27
  part="filter__search"
28
28
  ></nile-input>
29
29
  <slot name="filter__content" part="filter__content"></slot>
30
- </nile-popover>`:t``}
30
+ </nile-popover>`:i``}
31
31
  </div>
32
- </div>`:null}`}};e([i({type:Boolean,reflect:!0})],a.prototype,"havesort",void 0),e([i({type:Boolean,reflect:!0})],a.prototype,"havefilter",void 0),e([i({type:String,reflect:!0,attribute:"icon-name"})],a.prototype,"iconName",void 0),e([l()],a.prototype,"sorting_ct",void 0),a=e([s("nile-table-header-item")],a);export{a as N};
32
+ ${this.resizable?i`<div class="resizer" @mousedown=${this.handleResizeStart}></div>`:null}
33
+ </div>`}};e([t({type:Boolean,reflect:!0})],c.prototype,"havesort",void 0),e([t({type:Boolean,reflect:!0})],c.prototype,"havefilter",void 0),e([t({type:String,reflect:!0,attribute:"icon-name"})],c.prototype,"iconName",void 0),e([t({type:Boolean,reflect:!0})],c.prototype,"resizable",void 0),e([s()],c.prototype,"sorting_ct",void 0),c=e([l("nile-table-header-item")],c);export{c as N};