@aquera/nile-elements 0.1.57-beta-1.8 → 0.1.57-beta-1.9

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 (366) hide show
  1. package/README.md +0 -3
  2. package/demo/index.html +25 -9
  3. package/demo/index.js +0 -83
  4. package/dist/axe.min-2b379f29.cjs.js +12 -0
  5. package/dist/axe.min-2b379f29.cjs.js.map +1 -0
  6. package/dist/axe.min-c2cd8733.esm.js +12 -0
  7. package/dist/fixture-2b5b3aba.esm.js +569 -0
  8. package/dist/fixture-7bfb866e.cjs.js +395 -0
  9. package/dist/fixture-7bfb866e.cjs.js.map +1 -0
  10. package/dist/index.cjs.js +1 -1
  11. package/dist/index.esm.js +1 -1
  12. package/dist/index.js +93 -276
  13. package/dist/nile-select/nile-select.cjs.js +1 -1
  14. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  15. package/dist/nile-select/nile-select.esm.js +1 -1
  16. package/dist/nile-table-body/index.cjs.js +1 -1
  17. package/dist/nile-table-body/index.esm.js +1 -1
  18. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  19. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  20. package/dist/nile-table-body/nile-table-body.css.cjs.js +1 -1
  21. package/dist/nile-table-body/nile-table-body.css.cjs.js.map +1 -1
  22. package/dist/nile-table-body/nile-table-body.css.esm.js +2 -5
  23. package/dist/nile-table-body/nile-table-body.esm.js +2 -3
  24. package/dist/nile-table-cell-item/index.cjs.js +1 -1
  25. package/dist/nile-table-cell-item/index.esm.js +1 -1
  26. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
  27. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
  28. package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js +1 -1
  29. package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js.map +1 -1
  30. package/dist/nile-table-cell-item/nile-table-cell-item.css.esm.js +3 -22
  31. package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +3 -8
  32. package/dist/nile-table-header-item/index.cjs.js +1 -1
  33. package/dist/nile-table-header-item/index.esm.js +1 -1
  34. package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
  35. package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
  36. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js +1 -1
  37. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js.map +1 -1
  38. package/dist/nile-table-header-item/nile-table-header-item.css.esm.js +2 -6
  39. package/dist/nile-table-header-item/nile-table-header-item.esm.js +32 -64
  40. package/dist/src/nile-file-preview/index.d.ts +1 -0
  41. package/dist/src/nile-file-preview/index.js +2 -0
  42. package/dist/src/nile-file-preview/index.js.map +1 -0
  43. package/dist/src/nile-file-preview/nile-file-preview.css.d.ts +12 -0
  44. package/dist/src/nile-file-preview/nile-file-preview.css.js +568 -0
  45. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -0
  46. package/dist/src/nile-file-preview/nile-file-preview.d.ts +50 -0
  47. package/dist/src/nile-file-preview/nile-file-preview.js +171 -0
  48. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -0
  49. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +13 -0
  50. package/dist/src/nile-file-preview/nile-file-preview.template.js +210 -0
  51. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -0
  52. package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +7 -0
  53. package/dist/src/nile-file-preview/nile-file-preview.test.js +30 -0
  54. package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -0
  55. package/dist/src/nile-file-preview/types/index.d.ts +2 -0
  56. package/dist/src/nile-file-preview/types/index.js +3 -0
  57. package/dist/src/nile-file-preview/types/index.js.map +1 -0
  58. package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +28 -0
  59. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +33 -0
  60. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -0
  61. package/dist/src/nile-file-preview/types/nile-file-preview.interface.d.ts +4 -0
  62. package/dist/src/nile-file-preview/types/nile-file-preview.interface.js +2 -0
  63. package/dist/src/nile-file-preview/types/nile-file-preview.interface.js.map +1 -0
  64. package/dist/src/nile-file-preview/utils/index.d.ts +1 -0
  65. package/dist/src/nile-file-preview/utils/index.js +2 -0
  66. package/dist/src/nile-file-preview/utils/index.js.map +1 -0
  67. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +4 -0
  68. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +38 -0
  69. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -0
  70. package/dist/src/nile-file-upload/index.d.ts +1 -0
  71. package/dist/src/nile-file-upload/index.js +2 -0
  72. package/dist/src/nile-file-upload/index.js.map +1 -0
  73. package/dist/src/nile-file-upload/nile-file-upload.css.d.ts +12 -0
  74. package/dist/src/nile-file-upload/nile-file-upload.css.js +569 -0
  75. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -0
  76. package/dist/src/nile-file-upload/nile-file-upload.d.ts +48 -0
  77. package/dist/src/nile-file-upload/nile-file-upload.js +165 -0
  78. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -0
  79. package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +11 -0
  80. package/dist/src/nile-file-upload/nile-file-upload.template.js +171 -0
  81. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -0
  82. package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +7 -0
  83. package/dist/src/nile-file-upload/nile-file-upload.test.js +30 -0
  84. package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -0
  85. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +35 -0
  86. package/dist/src/nile-file-upload/types/file-upload.enums.js +42 -0
  87. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -0
  88. package/dist/src/nile-file-upload/types/file-upload.type.d.ts +4 -0
  89. package/dist/src/nile-file-upload/types/file-upload.type.js +2 -0
  90. package/dist/src/nile-file-upload/types/file-upload.type.js.map +1 -0
  91. package/dist/src/nile-file-upload/types/index.d.ts +2 -0
  92. package/dist/src/nile-file-upload/types/index.js +3 -0
  93. package/dist/src/nile-file-upload/types/index.js.map +1 -0
  94. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +23 -0
  95. package/dist/src/nile-file-upload/utils/drag-drop.util.js +85 -0
  96. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -0
  97. package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +11 -0
  98. package/dist/src/nile-file-upload/utils/file-validation.util.js +120 -0
  99. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -0
  100. package/dist/src/nile-icon/icons/svg/ng-activity.d.ts +5 -0
  101. package/dist/src/nile-icon/icons/svg/ng-activity.js +5 -0
  102. package/dist/src/nile-icon/icons/svg/ng-activity.js.map +1 -0
  103. package/dist/src/nile-icon/icons/svg/ng-align-center.d.ts +5 -0
  104. package/dist/src/nile-icon/icons/svg/ng-align-center.js +5 -0
  105. package/dist/src/nile-icon/icons/svg/ng-align-center.js.map +1 -0
  106. package/dist/src/nile-icon/icons/svg/ng-annotation-x.d.ts +5 -0
  107. package/dist/src/nile-icon/icons/svg/ng-annotation-x.js +5 -0
  108. package/dist/src/nile-icon/icons/svg/ng-annotation-x.js.map +1 -0
  109. package/dist/src/nile-icon/icons/svg/ng-arrow-down.d.ts +5 -0
  110. package/dist/src/nile-icon/icons/svg/ng-arrow-down.js +5 -0
  111. package/dist/src/nile-icon/icons/svg/ng-arrow-down.js.map +1 -0
  112. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.d.ts +5 -0
  113. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.js +5 -0
  114. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.js.map +1 -0
  115. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.d.ts +5 -0
  116. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.js +5 -0
  117. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.js.map +1 -0
  118. package/dist/src/nile-icon/icons/svg/ng-arrow-up.d.ts +5 -0
  119. package/dist/src/nile-icon/icons/svg/ng-arrow-up.js +5 -0
  120. package/dist/src/nile-icon/icons/svg/ng-arrow-up.js.map +1 -0
  121. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.d.ts +5 -0
  122. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.js +5 -0
  123. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.js.map +1 -0
  124. package/dist/src/nile-icon/icons/svg/ng-bell-01.d.ts +5 -0
  125. package/dist/src/nile-icon/icons/svg/ng-bell-01.js +5 -0
  126. package/dist/src/nile-icon/icons/svg/ng-bell-01.js.map +1 -0
  127. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.d.ts +5 -0
  128. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.js +5 -0
  129. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.js.map +1 -0
  130. package/dist/src/nile-icon/icons/svg/ng-bold-01.d.ts +5 -0
  131. package/dist/src/nile-icon/icons/svg/ng-bold-01.js +5 -0
  132. package/dist/src/nile-icon/icons/svg/ng-bold-01.js.map +1 -0
  133. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.d.ts +5 -0
  134. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.js +5 -0
  135. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.js.map +1 -0
  136. package/dist/src/nile-icon/icons/svg/ng-calendar.d.ts +5 -0
  137. package/dist/src/nile-icon/icons/svg/ng-calendar.js +5 -0
  138. package/dist/src/nile-icon/icons/svg/ng-calendar.js.map +1 -0
  139. package/dist/src/nile-icon/icons/svg/ng-check-circle.d.ts +5 -0
  140. package/dist/src/nile-icon/icons/svg/ng-check-circle.js +5 -0
  141. package/dist/src/nile-icon/icons/svg/ng-check-circle.js.map +1 -0
  142. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.d.ts +5 -0
  143. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.js +5 -0
  144. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.js.map +1 -0
  145. package/dist/src/nile-icon/icons/svg/ng-chevron-down.d.ts +5 -0
  146. package/dist/src/nile-icon/icons/svg/ng-chevron-down.js +5 -0
  147. package/dist/src/nile-icon/icons/svg/ng-chevron-down.js.map +1 -0
  148. package/dist/src/nile-icon/icons/svg/ng-chevron-left.d.ts +5 -0
  149. package/dist/src/nile-icon/icons/svg/ng-chevron-left.js +5 -0
  150. package/dist/src/nile-icon/icons/svg/ng-chevron-left.js.map +1 -0
  151. package/dist/src/nile-icon/icons/svg/ng-chevron-right.d.ts +5 -0
  152. package/dist/src/nile-icon/icons/svg/ng-chevron-right.js +5 -0
  153. package/dist/src/nile-icon/icons/svg/ng-chevron-right.js.map +1 -0
  154. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.d.ts +5 -0
  155. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.js +5 -0
  156. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.js.map +1 -0
  157. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.d.ts +5 -0
  158. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.js +5 -0
  159. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.js.map +1 -0
  160. package/dist/src/nile-icon/icons/svg/ng-chevron-up.d.ts +5 -0
  161. package/dist/src/nile-icon/icons/svg/ng-chevron-up.js +5 -0
  162. package/dist/src/nile-icon/icons/svg/ng-chevron-up.js.map +1 -0
  163. package/dist/src/nile-icon/icons/svg/ng-copy-03.d.ts +5 -0
  164. package/dist/src/nile-icon/icons/svg/ng-copy-03.js +5 -0
  165. package/dist/src/nile-icon/icons/svg/ng-copy-03.js.map +1 -0
  166. package/dist/src/nile-icon/icons/svg/ng-dots-grid.d.ts +5 -0
  167. package/dist/src/nile-icon/icons/svg/ng-dots-grid.js +5 -0
  168. package/dist/src/nile-icon/icons/svg/ng-dots-grid.js.map +1 -0
  169. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.d.ts +5 -0
  170. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.js +5 -0
  171. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.js.map +1 -0
  172. package/dist/src/nile-icon/icons/svg/ng-download-01.d.ts +5 -0
  173. package/dist/src/nile-icon/icons/svg/ng-download-01.js +5 -0
  174. package/dist/src/nile-icon/icons/svg/ng-download-01.js.map +1 -0
  175. package/dist/src/nile-icon/icons/svg/ng-dropdown.d.ts +5 -0
  176. package/dist/src/nile-icon/icons/svg/ng-dropdown.js +5 -0
  177. package/dist/src/nile-icon/icons/svg/ng-dropdown.js.map +1 -0
  178. package/dist/src/nile-icon/icons/svg/ng-edit-02.d.ts +5 -0
  179. package/dist/src/nile-icon/icons/svg/ng-edit-02.js +5 -0
  180. package/dist/src/nile-icon/icons/svg/ng-edit-02.js.map +1 -0
  181. package/dist/src/nile-icon/icons/svg/ng-edit-05.d.ts +5 -0
  182. package/dist/src/nile-icon/icons/svg/ng-edit-05.js +5 -0
  183. package/dist/src/nile-icon/icons/svg/ng-edit-05.js.map +1 -0
  184. package/dist/src/nile-icon/icons/svg/ng-expand-06.d.ts +5 -0
  185. package/dist/src/nile-icon/icons/svg/ng-expand-06.js +5 -0
  186. package/dist/src/nile-icon/icons/svg/ng-expand-06.js.map +1 -0
  187. package/dist/src/nile-icon/icons/svg/ng-file-02.d.ts +5 -0
  188. package/dist/src/nile-icon/icons/svg/ng-file-02.js +5 -0
  189. package/dist/src/nile-icon/icons/svg/ng-file-02.js.map +1 -0
  190. package/dist/src/nile-icon/icons/svg/ng-file-check-02.d.ts +5 -0
  191. package/dist/src/nile-icon/icons/svg/ng-file-check-02.js +5 -0
  192. package/dist/src/nile-icon/icons/svg/ng-file-check-02.js.map +1 -0
  193. package/dist/src/nile-icon/icons/svg/ng-file-question-03.d.ts +5 -0
  194. package/dist/src/nile-icon/icons/svg/ng-file-question-03.js +5 -0
  195. package/dist/src/nile-icon/icons/svg/ng-file-question-03.js.map +1 -0
  196. package/dist/src/nile-icon/icons/svg/ng-filter-lines.d.ts +5 -0
  197. package/dist/src/nile-icon/icons/svg/ng-filter-lines.js +5 -0
  198. package/dist/src/nile-icon/icons/svg/ng-filter-lines.js.map +1 -0
  199. package/dist/src/nile-icon/icons/svg/ng-grid-01.d.ts +5 -0
  200. package/dist/src/nile-icon/icons/svg/ng-grid-01.js +5 -0
  201. package/dist/src/nile-icon/icons/svg/ng-grid-01.js.map +1 -0
  202. package/dist/src/nile-icon/icons/svg/ng-help-circle.d.ts +5 -0
  203. package/dist/src/nile-icon/icons/svg/ng-help-circle.js +5 -0
  204. package/dist/src/nile-icon/icons/svg/ng-help-circle.js.map +1 -0
  205. package/dist/src/nile-icon/icons/svg/ng-image-user-left.d.ts +5 -0
  206. package/dist/src/nile-icon/icons/svg/ng-image-user-left.js +5 -0
  207. package/dist/src/nile-icon/icons/svg/ng-image-user-left.js.map +1 -0
  208. package/dist/src/nile-icon/icons/svg/ng-info-circle.d.ts +5 -0
  209. package/dist/src/nile-icon/icons/svg/ng-info-circle.js +5 -0
  210. package/dist/src/nile-icon/icons/svg/ng-info-circle.js.map +1 -0
  211. package/dist/src/nile-icon/icons/svg/ng-italic-01.d.ts +5 -0
  212. package/dist/src/nile-icon/icons/svg/ng-italic-01.js +5 -0
  213. package/dist/src/nile-icon/icons/svg/ng-italic-01.js.map +1 -0
  214. package/dist/src/nile-icon/icons/svg/ng-list.d.ts +5 -0
  215. package/dist/src/nile-icon/icons/svg/ng-list.js +5 -0
  216. package/dist/src/nile-icon/icons/svg/ng-list.js.map +1 -0
  217. package/dist/src/nile-icon/icons/svg/ng-log-out-01.d.ts +5 -0
  218. package/dist/src/nile-icon/icons/svg/ng-log-out-01.js +5 -0
  219. package/dist/src/nile-icon/icons/svg/ng-log-out-01.js.map +1 -0
  220. package/dist/src/nile-icon/icons/svg/ng-mail-01.d.ts +5 -0
  221. package/dist/src/nile-icon/icons/svg/ng-mail-01.js +5 -0
  222. package/dist/src/nile-icon/icons/svg/ng-mail-01.js.map +1 -0
  223. package/dist/src/nile-icon/icons/svg/ng-mail-04.d.ts +5 -0
  224. package/dist/src/nile-icon/icons/svg/ng-mail-04.js +5 -0
  225. package/dist/src/nile-icon/icons/svg/ng-mail-04.js.map +1 -0
  226. package/dist/src/nile-icon/icons/svg/ng-menu-05.d.ts +5 -0
  227. package/dist/src/nile-icon/icons/svg/ng-menu-05.js +5 -0
  228. package/dist/src/nile-icon/icons/svg/ng-menu-05.js.map +1 -0
  229. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.d.ts +5 -0
  230. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js +5 -0
  231. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js.map +1 -0
  232. package/dist/src/nile-icon/icons/svg/ng-minimize-02.d.ts +5 -0
  233. package/dist/src/nile-icon/icons/svg/ng-minimize-02.js +5 -0
  234. package/dist/src/nile-icon/icons/svg/ng-minimize-02.js.map +1 -0
  235. package/dist/src/nile-icon/icons/svg/ng-plus.d.ts +5 -0
  236. package/dist/src/nile-icon/icons/svg/ng-plus.js +5 -0
  237. package/dist/src/nile-icon/icons/svg/ng-plus.js.map +1 -0
  238. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.d.ts +5 -0
  239. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.js +5 -0
  240. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.js.map +1 -0
  241. package/dist/src/nile-icon/icons/svg/ng-rocket-02.d.ts +5 -0
  242. package/dist/src/nile-icon/icons/svg/ng-rocket-02.js +5 -0
  243. package/dist/src/nile-icon/icons/svg/ng-rocket-02.js.map +1 -0
  244. package/dist/src/nile-icon/icons/svg/ng-search-lg.d.ts +5 -0
  245. package/dist/src/nile-icon/icons/svg/ng-search-lg.js +5 -0
  246. package/dist/src/nile-icon/icons/svg/ng-search-lg.js.map +1 -0
  247. package/dist/src/nile-icon/icons/svg/ng-send-01.d.ts +5 -0
  248. package/dist/src/nile-icon/icons/svg/ng-send-01.js +5 -0
  249. package/dist/src/nile-icon/icons/svg/ng-send-01.js.map +1 -0
  250. package/dist/src/nile-icon/icons/svg/ng-settings-01.d.ts +5 -0
  251. package/dist/src/nile-icon/icons/svg/ng-settings-01.js +5 -0
  252. package/dist/src/nile-icon/icons/svg/ng-settings-01.js.map +1 -0
  253. package/dist/src/nile-icon/icons/svg/ng-share-04.d.ts +5 -0
  254. package/dist/src/nile-icon/icons/svg/ng-share-04.js +5 -0
  255. package/dist/src/nile-icon/icons/svg/ng-share-04.js.map +1 -0
  256. package/dist/src/nile-icon/icons/svg/ng-share-06.d.ts +5 -0
  257. package/dist/src/nile-icon/icons/svg/ng-share-06.js +5 -0
  258. package/dist/src/nile-icon/icons/svg/ng-share-06.js.map +1 -0
  259. package/dist/src/nile-icon/icons/svg/ng-stars-02.d.ts +5 -0
  260. package/dist/src/nile-icon/icons/svg/ng-stars-02.js +5 -0
  261. package/dist/src/nile-icon/icons/svg/ng-stars-02.js.map +1 -0
  262. package/dist/src/nile-icon/icons/svg/ng-trash-01.d.ts +5 -0
  263. package/dist/src/nile-icon/icons/svg/ng-trash-01.js +5 -0
  264. package/dist/src/nile-icon/icons/svg/ng-trash-01.js.map +1 -0
  265. package/dist/src/nile-icon/icons/svg/ng-trash-03.d.ts +5 -0
  266. package/dist/src/nile-icon/icons/svg/ng-trash-03.js +5 -0
  267. package/dist/src/nile-icon/icons/svg/ng-trash-03.js.map +1 -0
  268. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.d.ts +5 -0
  269. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.js +5 -0
  270. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.js.map +1 -0
  271. package/dist/src/nile-icon/icons/svg/ng-underline-01.d.ts +5 -0
  272. package/dist/src/nile-icon/icons/svg/ng-underline-01.js +5 -0
  273. package/dist/src/nile-icon/icons/svg/ng-underline-01.js.map +1 -0
  274. package/dist/src/nile-icon/icons/svg/ng-upload-01.d.ts +5 -0
  275. package/dist/src/nile-icon/icons/svg/ng-upload-01.js +5 -0
  276. package/dist/src/nile-icon/icons/svg/ng-upload-01.js.map +1 -0
  277. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.d.ts +5 -0
  278. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.js +5 -0
  279. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.js.map +1 -0
  280. package/dist/src/nile-icon/icons/svg/ng-user-01.d.ts +5 -0
  281. package/dist/src/nile-icon/icons/svg/ng-user-01.js +5 -0
  282. package/dist/src/nile-icon/icons/svg/ng-user-01.js.map +1 -0
  283. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.d.ts +5 -0
  284. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.js +5 -0
  285. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.js.map +1 -0
  286. package/dist/src/nile-icon/icons/svg/ng-user-check-02.d.ts +5 -0
  287. package/dist/src/nile-icon/icons/svg/ng-user-check-02.js +5 -0
  288. package/dist/src/nile-icon/icons/svg/ng-user-check-02.js.map +1 -0
  289. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.d.ts +5 -0
  290. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.js +5 -0
  291. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.js.map +1 -0
  292. package/dist/src/nile-icon/icons/svg/ng-user-right-01.d.ts +5 -0
  293. package/dist/src/nile-icon/icons/svg/ng-user-right-01.js +5 -0
  294. package/dist/src/nile-icon/icons/svg/ng-user-right-01.js.map +1 -0
  295. package/dist/src/nile-icon/icons/svg/ng-users-01.d.ts +5 -0
  296. package/dist/src/nile-icon/icons/svg/ng-users-01.js +5 -0
  297. package/dist/src/nile-icon/icons/svg/ng-users-01.js.map +1 -0
  298. package/dist/src/nile-icon/icons/svg/ng-x-close.d.ts +5 -0
  299. package/dist/src/nile-icon/icons/svg/ng-x-close.js +5 -0
  300. package/dist/src/nile-icon/icons/svg/ng-x-close.js.map +1 -0
  301. package/dist/src/nile-icon/icons/svg/ng-x-square.d.ts +5 -0
  302. package/dist/src/nile-icon/icons/svg/ng-x-square.js +5 -0
  303. package/dist/src/nile-icon/icons/svg/ng-x-square.js.map +1 -0
  304. package/dist/src/nile-select/nile-select.d.ts +4 -0
  305. package/dist/src/nile-select/nile-select.js +31 -1
  306. package/dist/src/nile-select/nile-select.js.map +1 -1
  307. package/dist/src/nile-slider/index.d.ts +1 -0
  308. package/dist/src/nile-slider/index.js +2 -0
  309. package/dist/src/nile-slider/index.js.map +1 -0
  310. package/dist/src/nile-slider/nile-slider.css.d.ts +12 -0
  311. package/dist/src/nile-slider/nile-slider.css.js +110 -0
  312. package/dist/src/nile-slider/nile-slider.css.js.map +1 -0
  313. package/dist/src/nile-slider/nile-slider.d.ts +47 -0
  314. package/dist/src/nile-slider/nile-slider.js +181 -0
  315. package/dist/src/nile-slider/nile-slider.js.map +1 -0
  316. package/dist/src/nile-slider/nile-slider.template.d.ts +5 -0
  317. package/dist/src/nile-slider/nile-slider.template.js +44 -0
  318. package/dist/src/nile-slider/nile-slider.template.js.map +1 -0
  319. package/dist/src/nile-slider/types/nile-slider.enums.d.ts +10 -0
  320. package/dist/src/nile-slider/types/nile-slider.enums.js +2 -0
  321. package/dist/src/nile-slider/types/nile-slider.enums.js.map +1 -0
  322. package/dist/src/nile-slider/types/nile-slider.types.d.ts +1 -0
  323. package/dist/src/nile-slider/types/nile-slider.types.js +2 -0
  324. package/dist/src/nile-slider/types/nile-slider.types.js.map +1 -0
  325. package/dist/src/nile-slider/utils/nile-slider.utils.d.ts +11 -0
  326. package/dist/src/nile-slider/utils/nile-slider.utils.js +86 -0
  327. package/dist/src/nile-slider/utils/nile-slider.utils.js.map +1 -0
  328. package/dist/src/nile-table-body/nile-table-body.css.js +0 -4
  329. package/dist/src/nile-table-body/nile-table-body.css.js.map +1 -1
  330. package/dist/src/nile-table-body/nile-table-body.d.ts +0 -2
  331. package/dist/src/nile-table-body/nile-table-body.js +0 -11
  332. package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
  333. package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js +1 -21
  334. package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js.map +1 -1
  335. package/dist/src/nile-table-cell-item/nile-table-cell-item.d.ts +0 -3
  336. package/dist/src/nile-table-cell-item/nile-table-cell-item.js +8 -27
  337. package/dist/src/nile-table-cell-item/nile-table-cell-item.js.map +1 -1
  338. package/dist/src/nile-table-header-item/nile-table-header-item.css.js +0 -5
  339. package/dist/src/nile-table-header-item/nile-table-header-item.css.js.map +1 -1
  340. package/dist/src/nile-table-header-item/nile-table-header-item.d.ts +0 -3
  341. package/dist/src/nile-table-header-item/nile-table-header-item.js +35 -86
  342. package/dist/src/nile-table-header-item/nile-table-header-item.js.map +1 -1
  343. package/dist/tsconfig.tsbuildinfo +1 -1
  344. package/package.json +1 -1
  345. package/src/nile-select/nile-select.ts +37 -1
  346. package/src/nile-table-body/nile-table-body.css.ts +0 -4
  347. package/src/nile-table-body/nile-table-body.ts +0 -10
  348. package/src/nile-table-cell-item/nile-table-cell-item.css.ts +1 -21
  349. package/src/nile-table-cell-item/nile-table-cell-item.ts +5 -22
  350. package/src/nile-table-header-item/nile-table-header-item.css.ts +0 -5
  351. package/src/nile-table-header-item/nile-table-header-item.ts +45 -94
  352. package/vscode-html-custom-data.json +5 -16
  353. package/dist/internal/resizable-table-helper.cjs.js +0 -2
  354. package/dist/internal/resizable-table-helper.cjs.js.map +0 -1
  355. package/dist/internal/resizable-table-helper.esm.js +0 -1
  356. package/dist/internal/resizable-table-styles.cjs.js +0 -2
  357. package/dist/internal/resizable-table-styles.cjs.js.map +0 -1
  358. package/dist/internal/resizable-table-styles.esm.js +0 -120
  359. package/dist/src/internal/resizable-table-helper.d.ts +0 -59
  360. package/dist/src/internal/resizable-table-helper.js +0 -111
  361. package/dist/src/internal/resizable-table-helper.js.map +0 -1
  362. package/dist/src/internal/resizable-table-styles.d.ts +0 -16
  363. package/dist/src/internal/resizable-table-styles.js +0 -137
  364. package/dist/src/internal/resizable-table-styles.js.map +0 -1
  365. package/src/internal/resizable-table-helper.ts +0 -151
  366. package/src/internal/resizable-table-styles.ts +0 -144
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.1.57-beta-1.8",
6
+ "version": "0.1.57-beta-1.9",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
@@ -258,12 +258,48 @@ export class NileSelect extends NileElement implements NileFormControl {
258
258
  this.emit('nile-destroy');
259
259
  }
260
260
 
261
+ private observer: MutationObserver | null = null;
262
+
261
263
  protected updated(_changedProperties: PropertyValues): void {
262
264
  if(_changedProperties.has('multiple')) {
263
- this.setCheckBoxInOption(this.multiple);
265
+ this.waitForChildrenRender().then(() => {
266
+ this.setCheckBoxInOption(this.multiple);
267
+ });
264
268
  }
265
269
  }
266
270
 
271
+ protected firstUpdated(_changedProperties: PropertyValues): void {
272
+ this.waitForChildrenRender().then(() => {
273
+ this.setCheckBoxInOption(this.multiple);
274
+ });
275
+ }
276
+
277
+ private waitForChildrenRender(): Promise<void> {
278
+ return new Promise((resolve) => {
279
+ if (this.areChildrenReady()) {
280
+ resolve();
281
+ return;
282
+ }
283
+
284
+ this.observer?.disconnect();
285
+ this.observer = new MutationObserver(() => {
286
+ if (this.areChildrenReady()) {
287
+ this.observer?.disconnect();
288
+ resolve();
289
+ }
290
+ });
291
+
292
+ this.observer.observe(this.renderRoot as HTMLElement, {
293
+ childList: true
294
+ });
295
+ });
296
+ }
297
+
298
+ private areChildrenReady(): boolean {
299
+ const options = this.getAllOptions();
300
+ return options.length > 0;
301
+ }
302
+
267
303
  setCheckBoxInOption(checked: boolean): void {
268
304
  const options = this.getAllOptions();
269
305
  options.forEach((option: NileOption) => {
@@ -6,7 +6,6 @@
6
6
  */
7
7
 
8
8
  import { css } from 'lit';
9
- import { tableLayoutStyles } from '../internal/resizable-table-styles';
10
9
 
11
10
  /**
12
11
  * TableBody CSS
@@ -49,9 +48,6 @@ export const styles = css`
49
48
  slot::slotted(nile-table-row:last-child) {
50
49
  border-bottom: 0px;
51
50
  }
52
-
53
- /* Import resizable styles */
54
- ${tableLayoutStyles}
55
51
  `;
56
52
 
57
53
  export default [styles];
@@ -24,7 +24,6 @@ import {
24
24
  import { styles } from './nile-table-body.css';
25
25
  import NileElement from '../internal/nile-element';
26
26
  import { getInnerHTML } from '../slot';
27
- import { hasResizableColumns } from '../internal/resizable-table-helper';
28
27
 
29
28
  /**
30
29
  * nile-table-body component.
@@ -47,7 +46,6 @@ export class NileTableBody extends NileElement {
47
46
  @state() private header_rows_data: any[] = [];
48
47
  @state() private sort__index: number;
49
48
  @state() private search__index: number;
50
- @state() private hasResizableColumns = false;
51
49
 
52
50
  public static get styles(): CSSResultArray {
53
51
  return [styles];
@@ -69,10 +67,6 @@ export class NileTableBody extends NileElement {
69
67
  return this.header_rows_data.indexOf(index__value);
70
68
  }
71
69
 
72
- private checkForResizableColumns() {
73
- this.hasResizableColumns = hasResizableColumns(this);
74
- }
75
-
76
70
  handleSlotchange(e: any) {
77
71
  let row_data: any = [];
78
72
  this._childNodes.forEach((child: any) => {
@@ -94,9 +88,6 @@ export class NileTableBody extends NileElement {
94
88
  row_data = [];
95
89
  }
96
90
  });
97
-
98
- // Check for resizable columns after slot change
99
- this.checkForResizableColumns();
100
91
  }
101
92
 
102
93
  private handleSort(e: any) {
@@ -124,7 +115,6 @@ export class NileTableBody extends NileElement {
124
115
  @slotchange=${this.handleSlotchange}
125
116
  @nile-click-sort=${this.handleSort}
126
117
  class="nile__table__body"
127
- ?resizable=${this.hasResizableColumns}
128
118
  @nile-search=${this.handleSearch}
129
119
  ></slot>
130
120
  </div>
@@ -6,7 +6,6 @@
6
6
  */
7
7
 
8
8
  import { css } from 'lit';
9
- import { resizableHostStyles, resizerStyles, resizableSlotStyles } from '../internal/resizable-table-styles';
10
9
 
11
10
  /**
12
11
  * TableCellItem CSS
@@ -20,20 +19,11 @@ export const styles = css`
20
19
  box-sizing: border-box;
21
20
  display: table-cell;
22
21
  vertical-align: middle;
22
+ max-width: var(--max--cell-width);
23
23
  padding: 16px 24px;
24
- max-width: var(--max--cell-width);
25
24
  min-height: var(--min--height);
26
25
  }
27
26
 
28
- .cell__wrapper {
29
- height: 100%;
30
- position: relative;
31
- display: flex;
32
- align-items: center;
33
- overflow: hidden;
34
- width: 100%;
35
- }
36
-
37
27
  .column {
38
28
  min-width:var(--min-cell-width);
39
29
  width:var(--cell-width);
@@ -46,17 +36,7 @@ export const styles = css`
46
36
  /* line-height: var(--nile-type-scale-6); */
47
37
  line-height: normal;
48
38
  letter-spacing: 0.2px;
49
- overflow: hidden;
50
- text-overflow: ellipsis;
51
- white-space: nowrap;
52
- flex: 1;
53
- display: block;
54
39
  }
55
-
56
- /* Import resizable styles */
57
- ${resizableHostStyles}
58
- ${resizerStyles}
59
- ${resizableSlotStyles}
60
40
  `;
61
41
 
62
42
  export default [styles];
@@ -15,7 +15,6 @@ import { customElement, property } from 'lit/decorators.js';
15
15
  import { styles } from './nile-table-cell-item.css';
16
16
  import NileElement from '../internal/nile-element';
17
17
  import { HasSlotController } from '../internal/slot';
18
- import { createResizeHandler } from '../internal/resizable-table-helper';
19
18
 
20
19
  /**
21
20
  * Nile table Cell Item component.
@@ -34,36 +33,20 @@ export class NileTableCellItem extends NileElement {
34
33
  return [styles];
35
34
  }
36
35
 
37
- /** Enables the resize functionality. */
38
- @property({ type: Boolean, reflect: true }) resizable = false;
39
-
40
36
  /* #endregion */
41
37
 
42
38
  /* #region Methods */
43
39
 
44
- private handleResizeStart = createResizeHandler(this, 50);
45
-
46
40
  /**
47
41
  * Render method
48
42
  * @slot This is a slot test
49
43
  */
50
44
  public render(): TemplateResult {
51
- if (this.resizable) {
52
- return html`
53
- <div class="cell__wrapper" part="nile__table-cell">
54
- ${this.hasSlotController.test('[default]')
55
- ? html` <div class="column" part="nile__table-cell"><slot></slot></div>`
56
- : ''}
57
- <div class="resizer" @mousedown=${this.handleResizeStart}></div>
58
- </div>
59
- `;
60
- } else {
61
- return html`
62
- ${this.hasSlotController.test('[default]')
63
- ? html` <slot class="column" part="nile__table-cell"> </slot>`
64
- : ''}
65
- `;
66
- }
45
+ return html`
46
+ ${this.hasSlotController.test('[default]')
47
+ ? html` <slot class="column" part="nile__table-cell"> </slot>`
48
+ : ''}
49
+ `;
67
50
  }
68
51
 
69
52
  /* #endregion */
@@ -6,7 +6,6 @@
6
6
  */
7
7
 
8
8
  import { css } from 'lit';
9
- import { resizableHeaderStyles, headerResizerStyles } from '../internal/resizable-table-styles';
10
9
 
11
10
  /**
12
11
  * TableHeaderItem CSS
@@ -68,10 +67,6 @@ export const styles = css`
68
67
  .headers:hover .hover__arrow {
69
68
  opacity: 0.3;
70
69
  }
71
-
72
- /* Import resizable styles */
73
- ${resizableHeaderStyles}
74
- ${headerResizerStyles}
75
70
  `;
76
71
 
77
72
  export default [styles];
@@ -15,7 +15,6 @@ import { customElement, state, property } from 'lit/decorators.js';
15
15
  import { styles } from './nile-table-header-item.css';
16
16
  import NileElement from '../internal/nile-element';
17
17
  import { HasSlotController } from '../internal/slot';
18
- import { createResizeHandler } from '../internal/resizable-table-helper';
19
18
 
20
19
  /**
21
20
  * Nile icon component.
@@ -44,9 +43,6 @@ export class NileTableHeaderItem extends NileElement {
44
43
  @property({ type: String, reflect: true, attribute: 'icon-name' }) iconName =
45
44
  '';
46
45
 
47
- /** Enables the resize functionality. */
48
- @property({ type: Boolean, reflect: true }) resizable = false;
49
-
50
46
  @state() sorting_ct = 0;
51
47
 
52
48
  /* #endregion */
@@ -70,98 +66,53 @@ export class NileTableHeaderItem extends NileElement {
70
66
  this.emit('nile-search', { value: e.detail.value });
71
67
  }
72
68
 
73
- private handleResizeStart = createResizeHandler(this, 50);
74
-
75
69
  public render(): TemplateResult {
76
- if (this.resizable) {
77
- return html`
78
- <div class="header__item__wrapper" part="nile__table-header-cell">
79
- <div class="headers">
80
- <slot> </slot>
81
- ${this.havesort && this.sorting_ct % 3 === 0
82
- ? html`<nile-icon
83
- name="sortdown"
84
- size="16"
85
- @click=${this.handleSort}
86
- class="hover__arrow"
87
- ></nile-icon>`
88
- : null}
89
- ${this.havesort && this.sorting_ct % 3 === 1
90
- ? html`<nile-icon
91
- name="sortdown"
92
- size="16"
93
- @click=${this.handleSort}
94
- ></nile-icon>`
95
- : null}
96
- ${this.havesort && this.sorting_ct % 3 === 2
97
- ? html`<nile-icon
98
- name="sortup"
99
- size="16"
100
- @click=${this.handleSort}
101
- ></nile-icon>`
102
- : null}
103
- ${this.iconName
104
- ? html` <nile-icon name="${this.iconName}" size="16"></nile-icon>`
105
- : html``}
106
- ${this.havefilter
107
- ? html` <nile-popover title="Filter" placement="bottom">
108
- <nile-icon name="filter" size="16" slot="anchor"></nile-icon>
109
- <nile-input
110
- placeholder="Search"
111
- @nile-input=${this.handleSearch}
112
- part="filter__search"
113
- ></nile-input>
114
- <slot name="filter__content" part="filter__content"></slot>
115
- </nile-popover>`
116
- : html``}
117
- </div>
118
- <div class="resizer" @mousedown=${this.handleResizeStart}></div>
119
- </div>`;
120
- } else {
121
- return html`
122
- <div class="header__item__wrapper" part="nile__table-header-cell">
123
- <div class="headers">
124
- <slot> </slot>
125
- ${this.havesort && this.sorting_ct % 3 === 0
126
- ? html`<nile-icon
127
- name="sortdown"
128
- size="16"
129
- @click=${this.handleSort}
130
- class="hover__arrow"
131
- ></nile-icon>`
132
- : null}
133
- ${this.havesort && this.sorting_ct % 3 === 1
134
- ? html`<nile-icon
135
- name="sortdown"
136
- size="16"
137
- @click=${this.handleSort}
138
- ></nile-icon>`
139
- : null}
140
- ${this.havesort && this.sorting_ct % 3 === 2
141
- ? html`<nile-icon
142
- name="sortup"
143
- size="16"
144
- @click=${this.handleSort}
145
- ></nile-icon>`
146
- : null}
147
- ${this.iconName
148
- ? html` <nile-icon name="${this.iconName}" size="16"></nile-icon>`
149
- : html``}
150
- ${this.havefilter
151
- ? html` <nile-popover title="Filter" placement="bottom">
152
- <nile-icon name="filter" size="16" slot="anchor"></nile-icon>
153
- <nile-input
154
- placeholder="Search"
155
- @nile-input=${this.handleSearch}
156
- part="filter__search"
157
- ></nile-input>
158
- <slot name="filter__content" part="filter__content"></slot>
159
- </nile-popover>`
160
- : html``}
161
- </div>
162
- </div>`;
163
- }
70
+ return html` ${this.hasSlotController.test('[default]')
71
+ ? html`
72
+ <div class="header__item__wrapper" part="nile__table-header-cell">
73
+ <div class="headers">
74
+ <slot> </slot>
75
+ ${this.havesort && this.sorting_ct % 3 === 0
76
+ ? html`<nile-icon
77
+ name="sortdown"
78
+ size="16"
79
+ @click=${this.handleSort}
80
+ class="hover__arrow"
81
+ ></nile-icon>`
82
+ : null}
83
+ ${this.havesort && this.sorting_ct % 3 === 1
84
+ ? html`<nile-icon
85
+ name="sortdown"
86
+ size="16"
87
+ @click=${this.handleSort}
88
+ ></nile-icon>`
89
+ : null}
90
+ ${this.havesort && this.sorting_ct % 3 === 2
91
+ ? html`<nile-icon
92
+ name="sortup"
93
+ size="16"
94
+ @click=${this.handleSort}
95
+ ></nile-icon>`
96
+ : null}
97
+ ${this.iconName
98
+ ? html` <nile-icon name="${this.iconName}" size="16"></nile-icon>`
99
+ : html``}
100
+ ${this.havefilter
101
+ ? html` <nile-popover title="Filter" placement="bottom">
102
+ <nile-icon name="filter" size="16" slot="anchor"></nile-icon>
103
+ <nile-input
104
+ placeholder="Search"
105
+ @nile-input=${this.handleSearch}
106
+ part="filter__search"
107
+ ></nile-input>
108
+ <slot name="filter__content" part="filter__content"></slot>
109
+ </nile-popover>`
110
+ : html``}
111
+ </div>
112
+ </div>`
113
+ : null}`;
164
114
  }
115
+ /* #endregion */
165
116
  }
166
117
 
167
118
  export default NileTableHeaderItem;
@@ -2838,7 +2838,7 @@
2838
2838
  },
2839
2839
  {
2840
2840
  "name": "nile-select",
2841
- "description": "Events:\n\n * `nile-change` {} - Emitted when the control's value changes.\n\n * `nile-clear` {} - Emitted when the control's value is cleared.\n\n * `nile-input` {} - Emitted when the control receives input.\n\n * `nile-focus` {} - Emitted when the control gains focus.\n\n * `nile-blur` {} - Emitted when the control loses focus.\n\n * `nile-show` {} - Emitted when the select's menu opens.\n\n * `nile-after-show` {} - Emitted after the select's menu opens and all animations are complete.\n\n * `nile-hide` {} - Emitted when the select's menu closes.\n\n * `nile-after-hide` {} - Emitted after the select's menu closes and all animations are complete.\n\n * `nile-invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * ` ` {} - The listbox options. Must be `<nile-option>` elements. You can use `<nile-divider>` to group items visually.\n\n * `label` {} - The input's label. Alternatively, you can use the `label` attribute.\n\n * `prefix` {} - Used to prepend a presentational icon or similar element to the combobox.\n\n * `clear-icon` {} - An icon to use in lieu of the default clear icon.\n\n * `expand-icon` {} - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n\n * `help-text` {} - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\nAttributes:\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internal-search-placeholder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `help-text` {`string`} - \n\n * `error-message` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `max-options-visible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `required` {`boolean`} - The select's required attribute.\n\nProperties:\n\n * `styles` - \n\n * `formControlController` - \n\n * `hasSlotController` - \n\n * `typeToSelectString` {`string`} - \n\n * `typeToSelectTimeout` {`number`} - \n\n * `popup` - \n\n * `combobox` {`HTMLSlotElement`} - \n\n * `displayInput` {`HTMLInputElement`} - \n\n * `valueInput` {`HTMLInputElement`} - \n\n * `listbox` {`HTMLSlotElement`} - \n\n * `hasFocus` {`boolean`} - \n\n * `displayLabel` {`string`} - \n\n * `currentOption` - \n\n * `selectedOptions` {`NileOption[]`} - \n\n * `oldValue` {`string | string[]`} - \n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchValue` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internalSearchPlaceHolder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `errorMessage` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `maxOptionsVisible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `oldMaxOptionsVisible` {`number`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `defaultValue` {`string | string[]`} - The default value of the form control. Primarily used for resetting the form control.\n\n * `defaultChecked` {`boolean | undefined`} - \n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `pattern` {`string | undefined`} - \n\n * `min` {`string | number | Date | undefined`} - \n\n * `max` {`string | number | Date | undefined`} - \n\n * `step` {`number | \"any\" | undefined`} - \n\n * `required` {`boolean`} - The select's required attribute.\n\n * `minlength` {`number | undefined`} - \n\n * `maxlength` {`number | undefined`} - \n\n * `validity` {`ValidityState`} - Gets the validity state object\n\n * `validationMessage` {`string`} - Gets the validation message\n\n * `checkValidity` - \n\n * `getForm` - \n\n * `reportValidity` - \n\n * `setCustomValidity` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
2841
+ "description": "Events:\n\n * `nile-change` {} - Emitted when the control's value changes.\n\n * `nile-clear` {} - Emitted when the control's value is cleared.\n\n * `nile-input` {} - Emitted when the control receives input.\n\n * `nile-focus` {} - Emitted when the control gains focus.\n\n * `nile-blur` {} - Emitted when the control loses focus.\n\n * `nile-show` {} - Emitted when the select's menu opens.\n\n * `nile-after-show` {} - Emitted after the select's menu opens and all animations are complete.\n\n * `nile-hide` {} - Emitted when the select's menu closes.\n\n * `nile-after-hide` {} - Emitted after the select's menu closes and all animations are complete.\n\n * `nile-invalid` {} - Emitted when the form control has been checked for validity and its constraints aren't satisfied.\n\nSlots:\n\n * ` ` {} - The listbox options. Must be `<nile-option>` elements. You can use `<nile-divider>` to group items visually.\n\n * `label` {} - The input's label. Alternatively, you can use the `label` attribute.\n\n * `prefix` {} - Used to prepend a presentational icon or similar element to the combobox.\n\n * `clear-icon` {} - An icon to use in lieu of the default clear icon.\n\n * `expand-icon` {} - The icon to show when the control is expanded and collapsed. Rotates on open and close.\n\n * `help-text` {} - Text that describes how to use the input. Alternatively, you can use the `help-text` attribute.\n\nAttributes:\n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internal-search-placeholder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `help-text` {`string`} - \n\n * `error-message` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `max-options-visible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `required` {`boolean`} - The select's required attribute.\n\nProperties:\n\n * `styles` - \n\n * `formControlController` - \n\n * `hasSlotController` - \n\n * `typeToSelectString` {`string`} - \n\n * `typeToSelectTimeout` {`number`} - \n\n * `popup` - \n\n * `combobox` {`HTMLSlotElement`} - \n\n * `displayInput` {`HTMLInputElement`} - \n\n * `valueInput` {`HTMLInputElement`} - \n\n * `listbox` {`HTMLSlotElement`} - \n\n * `hasFocus` {`boolean`} - \n\n * `displayLabel` {`string`} - \n\n * `currentOption` - \n\n * `selectedOptions` {`NileOption[]`} - \n\n * `oldValue` {`string | string[]`} - \n\n * `size` {`\"medium\" | \"small\" | \"large\"`} - The select's size.\n\n * `placeholder` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchValue` {`string`} - Placeholder text to show as a hint when the select is empty.\n\n * `searchEnabled` {`boolean`} - \n\n * `internalSearchPlaceHolder` {`string`} - \n\n * `blockValueChange` {`boolean`} - \n\n * `disableLocalSearch` {`boolean`} - \n\n * `optionsLoading` {`boolean`} - \n\n * `noWidthSync` {`boolean`} - \n\n * `multiple` {`boolean`} - Allows more than one option to be selected.\n\n * `helpText` {`string`} - \n\n * `errorMessage` {`string`} - \n\n * `warning` {`boolean`} - Sets the input to a warning state, changing its visual appearance.\n\n * `error` {`boolean`} - Sets the input to an error state, changing its visual appearance.\n\n * `success` {`boolean`} - Sets the input to a success state, changing its visual appearance.\n\n * `maxOptionsVisible` {`number`} - The maximum number of selected options to show when `multiple` is true. After the maximum, \"+n\" will be shown to\nindicate the number of additional items that are selected. Set to 0 to remove the limit.\n\n * `clearable` {`boolean`} - Adds a clear button when the select is not empty.\n\n * `open` {`boolean`} - Indicates whether or not the select is open. You can toggle this attribute to show and hide the menu, or you can\nuse the `show()` and `hide()` methods and this attribute will reflect the select's open state.\n\n * `hoist` {`boolean`} - Enable this option to prevent the listbox from being clipped when the component is placed inside a container with\n`overflow: auto|scroll`. Hoisting uses a fixed positioning strategy that works in many, but not all, scenarios.\n\n * `filled` {`boolean`} - Draws a filled select.\n\n * `pill` {`boolean`} - Draws a pill-style select with rounded edges.\n\n * `label` {`string`} - The select's label. If you need to display HTML, use the `label` slot instead.\n\n * `placement` {`\"top\" | \"bottom\"`} - The preferred placement of the select's menu. Note that the actual placement may vary as needed to keep the listbox\ninside of the viewport.\n\n * `showSelected` {`boolean`} - \n\n * `oldMaxOptionsVisible` {`number`} - \n\n * `showNoResults` {`boolean`} - \n\n * `noResultsMessage` {`string`} - \n\n * `observer` {`MutationObserver | null`} - \n\n * `name` {`string`} - The name of the select, submitted as a name/value pair with form data.\n\n * `value` {`string | string[]`} - The current value of the select, submitted as a name/value pair with form data. When `multiple` is enabled, the\nvalue will be a space-delimited list of values based on the options selected.\n\n * `disabled` {`boolean`} - Disables the select control.\n\n * `defaultValue` {`string | string[]`} - The default value of the form control. Primarily used for resetting the form control.\n\n * `defaultChecked` {`boolean | undefined`} - \n\n * `form` {`string`} - By default, form controls are associated with the nearest containing `<form>` element. This attribute allows you\nto place the form control outside of a form and associate it with the form that has this `id`. The form must be in\nthe same document or shadow root for this to work.\n\n * `pattern` {`string | undefined`} - \n\n * `min` {`string | number | Date | undefined`} - \n\n * `max` {`string | number | Date | undefined`} - \n\n * `step` {`number | \"any\" | undefined`} - \n\n * `required` {`boolean`} - The select's required attribute.\n\n * `minlength` {`number | undefined`} - \n\n * `maxlength` {`number | undefined`} - \n\n * `validity` {`ValidityState`} - Gets the validity state object\n\n * `validationMessage` {`string`} - Gets the validation message\n\n * `checkValidity` - \n\n * `getForm` - \n\n * `reportValidity` - \n\n * `setCustomValidity` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
2842
2842
  "attributes": [
2843
2843
  {
2844
2844
  "name": "size",
@@ -3402,7 +3402,7 @@
3402
3402
  },
3403
3403
  {
3404
3404
  "name": "nile-table-body",
3405
- "description": "nile-table-body component.\n\nAttributes:\n\n * `type` {`\"primary\" | \"secondary\"`} - \n\nProperties:\n\n * `defaultSlot` {`HTMLSlotElement`} - The styles for TableBody\n\n * `_childNodes` {`HTMLElement[]`} - \n\n * `type` {`\"primary\" | \"secondary\"`} - \n\n * `rows_data` {`any[]`} - \n\n * `header_rows_data` {`any[]`} - \n\n * `sort__index` {`number`} - \n\n * `search__index` {`number`} - \n\n * `hasResizableColumns` {`boolean`} - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
3405
+ "description": "nile-table-body component.\n\nAttributes:\n\n * `type` {`\"primary\" | \"secondary\"`} - \n\nProperties:\n\n * `defaultSlot` {`HTMLSlotElement`} - The styles for TableBody\n\n * `_childNodes` {`HTMLElement[]`} - \n\n * `type` {`\"primary\" | \"secondary\"`} - \n\n * `rows_data` {`any[]`} - \n\n * `header_rows_data` {`any[]`} - \n\n * `sort__index` {`number`} - \n\n * `search__index` {`number`} - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
3406
3406
  "attributes": [
3407
3407
  {
3408
3408
  "name": "type",
@@ -3420,18 +3420,12 @@
3420
3420
  },
3421
3421
  {
3422
3422
  "name": "nile-table-cell-item",
3423
- "description": "Nile table Cell Item component.\n\nAttributes:\n\n * `resizable` {`boolean`} - Enables the resize functionality.\n\nProperties:\n\n * `hasSlotController` - \n\n * `resizable` {`boolean`} - Enables the resize functionality.\n\n * `handleResizeStart` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
3424
- "attributes": [
3425
- {
3426
- "name": "resizable",
3427
- "description": "`resizable` {`boolean`} - Enables the resize functionality.\n\nProperty: resizable\n\nDefault: false",
3428
- "valueSet": "v"
3429
- }
3430
- ]
3423
+ "description": "Nile table Cell Item component.\n\nProperties:\n\n * `hasSlotController` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
3424
+ "attributes": []
3431
3425
  },
3432
3426
  {
3433
3427
  "name": "nile-table-header-item",
3434
- "description": "Nile icon component.\n\nAttributes:\n\n * `havesort` {`boolean`} - Enables the sort functionality.\n\n * `havefilter` {`boolean`} - Enables the sort functionality.\n\n * `icon-name` {`string`} - Places the icon .\n\n * `resizable` {`boolean`} - Enables the resize functionality.\n\nProperties:\n\n * `hasSlotController` - \n\n * `havesort` {`boolean`} - Enables the sort functionality.\n\n * `havefilter` {`boolean`} - Enables the sort functionality.\n\n * `iconName` {`string`} - Places the icon .\n\n * `resizable` {`boolean`} - Enables the resize functionality.\n\n * `sorting_ct` {`number`} - \n\n * `handleResizeStart` - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
3428
+ "description": "Nile icon component.\n\nAttributes:\n\n * `havesort` {`boolean`} - Enables the sort functionality.\n\n * `havefilter` {`boolean`} - Enables the sort functionality.\n\n * `icon-name` {`string`} - Places the icon .\n\nProperties:\n\n * `hasSlotController` - \n\n * `havesort` {`boolean`} - Enables the sort functionality.\n\n * `havefilter` {`boolean`} - Enables the sort functionality.\n\n * `iconName` {`string`} - Places the icon .\n\n * `sorting_ct` {`number`} - \n\n * `BUBBLES` {`boolean`} - \n\n * `COMPOSED` {`boolean`} - \n\n * `CANCELABLE` {`boolean`} - ",
3435
3429
  "attributes": [
3436
3430
  {
3437
3431
  "name": "havesort",
@@ -3446,11 +3440,6 @@
3446
3440
  {
3447
3441
  "name": "icon-name",
3448
3442
  "description": "`icon-name` {`string`} - Places the icon .\n\nProperty: iconName\n\nDefault: "
3449
- },
3450
- {
3451
- "name": "resizable",
3452
- "description": "`resizable` {`boolean`} - Enables the resize functionality.\n\nProperty: resizable\n\nDefault: false",
3453
- "valueSet": "v"
3454
3443
  }
3455
3444
  ]
3456
3445
  },
@@ -1,2 +0,0 @@
1
- System.register([],function(_export,_context){"use strict";function e(e,t){e.preventDefault(),e.stopPropagation();var _t$minWidth=t.minWidth,n=_t$minWidth===void 0?50:_t$minWidth,i=t.startX,o=t.startWidth,r=t.element,u=e.target;u.classList.add("resizing");var l=function l(e){e.preventDefault(),e.stopPropagation();var t=e.pageX-i,u=Math.max(n,o+t);r.style.width=u+"px",function(e,t){var n=e.closest("nile-table-body");if(!n)return;var i="nile-table-header-item"===e.tagName.toLowerCase(),o="nile-table-cell-item",r=function(e,t){var n=e.closest("nile-table-row");if(n){var _i=n.querySelectorAll(t);return Array.from(_i).indexOf(e);}return 0;}(e,i?"nile-table-header-item":"nile-table-cell-item");n.querySelectorAll("nile-table-row").forEach(function(e){var n=e.querySelectorAll(o);n[r]&&(n[r].style.width=t+"px");});}(r,u);},_c=function c(){u.classList.remove("resizing"),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",_c);};return document.addEventListener("mousemove",l),document.addEventListener("mouseup",_c),function(){document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",_c);};}function t(e){return e.hasAttribute("resizable");}function n(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:50;return function(i){e(i,{minWidth:n,startX:i.pageX,startWidth:t.offsetWidth,element:t});};}function i(e){var n=e.querySelectorAll("nile-table-header-item"),i=e.querySelectorAll("nile-table-cell-item"),o=Array.from(n).some(function(e){return t(e);}),r=Array.from(i).some(function(e){return t(e);});return o||r;}_export({c:n,h:i});return{setters:[],execute:function execute(){}};});
2
- //# sourceMappingURL=resizable-table-helper.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resizable-table-helper.cjs.js","sources":["../../../src/internal/resizable-table-helper.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n/**\n * Resizable Helper Utility\n * Provides common functionality for resizable table columns\n */\n\nexport interface ResizeOptions {\n minWidth?: number;\n startX: number;\n startWidth: number;\n element: HTMLElement;\n}\n\nexport interface ColumnResizeData {\n columnIndex: number;\n newWidth: number;\n}\n\n/**\n * Handles the start of a resize operation\n * @param e Mouse event\n * @param options Resize configuration options\n * @returns Cleanup function to remove event listeners\n */\nexport function handleResizeStart(e: MouseEvent, options: ResizeOptions): () => void {\n e.preventDefault();\n e.stopPropagation();\n \n const { minWidth = 50, startX, startWidth, element } = options;\n const resizer = e.target as HTMLElement;\n \n resizer.classList.add('resizing');\n\n const onMouseMove = (e: MouseEvent) => {\n e.preventDefault();\n e.stopPropagation();\n \n const delta = e.pageX - startX;\n const newWidth = Math.max(minWidth, startWidth + delta);\n\n element.style.width = newWidth + 'px';\n\n synchronizeColumnWidth(element, newWidth);\n };\n\n const onMouseUp = () => {\n resizer.classList.remove('resizing');\n document.removeEventListener('mousemove', onMouseMove);\n document.removeEventListener('mouseup', onMouseUp);\n };\n\n document.addEventListener('mousemove', onMouseMove);\n document.addEventListener('mouseup', onMouseUp);\n\n return () => {\n document.removeEventListener('mousemove', onMouseMove);\n document.removeEventListener('mouseup', onMouseUp);\n };\n}\n\n/**\n * Gets the column index of an element within its table row\n * @param element The table cell or header element\n * @param selector The CSS selector for the column elements\n * @returns Column index (0-based)\n */\nexport function getColumnIndex(element: HTMLElement, selector: string): number {\n const tableRow = element.closest('nile-table-row');\n if (tableRow) {\n const columns = tableRow.querySelectorAll(selector);\n return Array.from(columns).indexOf(element);\n }\n return 0;\n}\n\n/**\n * Synchronizes the width of all cells in the same column\n * @param sourceElement The element that was resized\n * @param newWidth The new width to apply\n */\nexport function synchronizeColumnWidth(sourceElement: HTMLElement, newWidth: number): void {\n const tableBody = sourceElement.closest('nile-table-body');\n if (!tableBody) return;\n\n const isHeader = sourceElement.tagName.toLowerCase() === 'nile-table-header-item';\n const selector = isHeader ? 'nile-table-header-item' : 'nile-table-cell-item';\n const targetSelector = isHeader ? 'nile-table-cell-item' : 'nile-table-cell-item';\n \n const columnIndex = getColumnIndex(sourceElement, selector);\n const rows = tableBody.querySelectorAll('nile-table-row');\n \n rows.forEach(row => {\n const cells = row.querySelectorAll(targetSelector);\n if (cells[columnIndex]) {\n cells[columnIndex].style.width = newWidth + 'px';\n }\n });\n}\n\n/**\n * Checks if an element has the resizable attribute\n * @param element The element to check\n * @returns True if the element is resizable\n */\nexport function isResizable(element: HTMLElement): boolean {\n return element.hasAttribute('resizable');\n}\n\n/**\n * Creates a resize handler function for use in component event listeners\n * @param element The element to make resizable\n * @param minWidth Minimum width constraint\n * @returns Event handler function\n */\nexport function createResizeHandler(element: HTMLElement, minWidth: number = 50): (e: MouseEvent) => void {\n return (e: MouseEvent) => {\n const options: ResizeOptions = {\n minWidth,\n startX: e.pageX,\n startWidth: element.offsetWidth,\n element\n };\n \n handleResizeStart(e, options);\n };\n}\n\n/**\n * Detects if any columns in a table are resizable\n * @param tableBody The table body element\n * @returns True if any columns have resizable attribute\n */\nexport function hasResizableColumns(tableBody: HTMLElement): boolean {\n const headerItems = tableBody.querySelectorAll('nile-table-header-item');\n const cellItems = tableBody.querySelectorAll('nile-table-cell-item');\n \n const hasResizableHeaders = Array.from(headerItems).some(item => \n isResizable(item)\n );\n const hasResizableCells = Array.from(cellItems).some(item => \n isResizable(item)\n );\n \n return hasResizableHeaders || hasResizableCells;\n} \n"],"names":["handleResizeStart","e","options","preventDefault","stopPropagation","_t$minWidth","minWidth","startX","startWidth","element","resizer","target","classList","add","onMouseMove","delta","pageX","newWidth","Math","max","style","width","sourceElement","tableBody","closest","isHeader","tagName","toLowerCase","targetSelector","columnIndex","selector","tableRow","columns","querySelectorAll","Array","from","indexOf","getColumnIndex","forEach","row","cells","synchronizeColumnWidth","onMouseUp","c","remove","document","removeEventListener","addEventListener","isResizable","hasAttribute","createResizeHandler","arguments","length","undefined","offsetWidth","t","hasResizableColumns","headerItems","cellItems","hasResizableHeaders","some","item","hasResizableCells","_export"],"mappings":"2DA8BgB,QAAAA,CAAAA,CAAAA,CAAkBC,EAAeC,CAC/CD,CAAAA,CAAAA,CAAAA,CAAEE,iBACFF,CAAEG,CAAAA,eAAAA,CAAAA,CAAAA,CAEF,IAAAC,WAAA,CAAuDH,CAAAA,CAAjDI,QAAAA,CAAEA,CAAW,CAAAD,WAAA,UAAA,EAAA,CAAAA,WAAA,CAAIE,CAAMC,CAA0BN,CAAAA,CAAlCK,OAAUC,CAAUC,CAAcP,CAAAA,CAA1BM,UAAAA,CAAcC,CAAYP,CAAAA,CAAAA,CAAdO,OAAAA,CACnCC,EAAUT,CAAEU,CAAAA,MAAAA,CAElBD,CAAQE,CAAAA,SAAAA,CAAUC,GAAI,CAAA,UAAA,CAAA,CAEtB,GAAMC,CAAAA,CAAeb,CAAAA,QAAfa,CAAAA,CAAeb,CAAAA,CAAAA,CAAAA,CACnBA,CAAEE,CAAAA,cAAAA,CAAAA,CAAAA,CACFF,CAAEG,CAAAA,eAAAA,CAAAA,CAAAA,CAEF,GAAMW,CAAAA,CAAQd,CAAAA,CAAAA,CAAEe,KAAQT,CAAAA,CAAAA,CAClBU,CAAWC,CAAAA,IAAAA,CAAKC,IAAIb,CAAUE,CAAAA,CAAAA,CAAaO,CAEjDN,CAAAA,CAAAA,CAAAA,CAAQW,KAAMC,CAAAA,KAAAA,CAAQJ,EAAW,IAwCrB,CAAA,SAAuBK,CAA4BL,CAAAA,CAAAA,CAAAA,CACjE,GAAMM,CAAAA,CAAAA,CAAYD,EAAcE,OAAQ,CAAA,iBAAA,CAAA,CACxC,GAAKD,CAAAA,CAAAA,CAAW,OAEhB,GAAME,CAAAA,EAAmD,wBAAxCH,GAAAA,CAAAA,CAAcI,OAAQC,CAAAA,WAAAA,CAAAA,CAAAA,CAEjCC,CAA4B,CAAA,sBAAA,CAE5BC,EAtBQ,SAAepB,CAAAA,CAAsBqB,CACnD,CAAA,CAAA,GAAMC,CAAAA,CAAWtB,CAAAA,CAAAA,CAAQe,QAAQ,gBACjC,CAAA,CAAA,GAAIO,CAAU,CAAA,CACZ,GAAMC,CAAAA,EAAAA,CAAUD,EAASE,gBAAiBH,CAAAA,CAAAA,CAAAA,CAC1C,MAAOI,CAAAA,KAAAA,CAAMC,IAAKH,CAAAA,EAAAA,CAAAA,CAASI,QAAQ3B,CACpC,CAAA,EACD,MAAO,EACT,EAesB4B,CAAef,EAHlBG,CAAW,CAAA,wBAAA,CAA2B,sBAI1CF,CAAAA,CAAAA,CAAAA,CAAUU,gBAAiB,CAAA,gBAAA,CAAA,CAEnCK,QAAQC,SAAAA,CACX,CAAA,CAAA,GAAMC,CAAAA,CAAQD,CAAAA,CAAAA,CAAIN,gBAAiBL,CAAAA,CAAAA,CAAAA,CAC/BY,EAAMX,CACRW,CAAAA,GAAAA,CAAAA,CAAMX,GAAaT,KAAMC,CAAAA,KAAAA,CAAQJ,EAAW,IAC7C,CAAA,EAAA,CAEL,EAvDIwB,CAAuBhC,CAASQ,CAAAA,CAAAA,CAAS,GAGrCyB,EAAY,CAAA,QAAZA,CAAAA,CAAYC,CAAA,CAAA,CAChBjC,CAAQE,CAAAA,SAAAA,CAAUgC,MAAO,CAAA,UAAA,CAAA,CACzBC,SAASC,mBAAoB,CAAA,WAAA,CAAahC,CAC1C+B,CAAAA,CAAAA,QAAAA,CAASC,mBAAoB,CAAA,SAAA,CAAWJ,GAAU,EAMpD,CAAA,MAHAG,CAAAA,QAASE,CAAAA,gBAAAA,CAAiB,WAAajC,CAAAA,CAAAA,CAAAA,CACvC+B,SAASE,gBAAiB,CAAA,SAAA,CAAWL,EAE9B,CAAA,CAAA,UAAA,CACLG,QAASC,CAAAA,mBAAAA,CAAoB,YAAahC,CAC1C+B,CAAAA,CAAAA,QAAAA,CAASC,mBAAoB,CAAA,SAAA,CAAWJ,EAAU,CAAA,EAEtD,EA8CM,QAAUM,CAAAA,CAAAA,CAAYvC,CAC1B,CAAA,CAAA,MAAOA,CAAAA,CAAQwC,CAAAA,YAAAA,CAAa,YAC9B,UAQgBC,CAAAA,CAAoBzC,CAAAA,CAAAA,CAAyC,IAAnBH,CAAAA,CAAmB,CAAA6C,SAAA,CAAAC,MAAA,IAAAD,SAAA,MAAAE,SAAA,CAAAF,SAAA,IAAA,EAAA,CAC3E,MAAQlD,UAAAA,CAQND,CAAAA,CAAAA,CAAAA,CAAkBC,CAPa,CAAA,CAC7BK,QACAC,CAAAA,CAAAA,CAAAA,MAAAA,CAAQN,EAAEe,KACVR,CAAAA,UAAAA,CAAYC,CAAQ6C,CAAAA,WAAAA,CACpB7C,OAG2B,CAAA8C,CAAA,CAAA,CAAA,EAEjC,EAOM,QAAUC,CAAAA,CAAAA,CAAoBjC,CAClC,CAAA,CAAA,GAAMkC,CAAAA,CAAclC,CAAAA,CAAAA,CAAUU,iBAAiB,wBACzCyB,CAAAA,CAAAA,CAAAA,CAAYnC,CAAUU,CAAAA,gBAAAA,CAAiB,sBAEvC0B,CAAAA,CAAAA,CAAAA,CAAsBzB,MAAMC,IAAKsB,CAAAA,CAAAA,CAAAA,CAAaG,IAAKC,CAAAA,SAAAA,CAAAA,QACvDb,CAAAA,CAAYa,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,CAERC,EAAoB5B,KAAMC,CAAAA,IAAAA,CAAKuB,CAAWE,CAAAA,CAAAA,IAAAA,CAAKC,SAAAA,CACnDb,QAAAA,CAAAA,CAAAA,CAAYa,MAGd,MAAOF,CAAAA,CAAAA,EAAuBG,CAChC,EAAAC,OAAA,EAAApB,CAAA"}
@@ -1 +0,0 @@
1
- function e(e,t){e.preventDefault(),e.stopPropagation();const{minWidth:n=50,startX:i,startWidth:o,element:r}=t,u=e.target;u.classList.add("resizing");const l=e=>{e.preventDefault(),e.stopPropagation();const t=e.pageX-i,u=Math.max(n,o+t);r.style.width=u+"px",function(e,t){const n=e.closest("nile-table-body");if(!n)return;const i="nile-table-header-item"===e.tagName.toLowerCase(),o="nile-table-cell-item",r=function(e,t){const n=e.closest("nile-table-row");if(n){const i=n.querySelectorAll(t);return Array.from(i).indexOf(e)}return 0}(e,i?"nile-table-header-item":"nile-table-cell-item");n.querySelectorAll("nile-table-row").forEach((e=>{const n=e.querySelectorAll(o);n[r]&&(n[r].style.width=t+"px")}))}(r,u)},c=()=>{u.classList.remove("resizing"),document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c)};return document.addEventListener("mousemove",l),document.addEventListener("mouseup",c),()=>{document.removeEventListener("mousemove",l),document.removeEventListener("mouseup",c)}}function t(e){return e.hasAttribute("resizable")}function n(t,n=50){return i=>{e(i,{minWidth:n,startX:i.pageX,startWidth:t.offsetWidth,element:t})}}function i(e){const n=e.querySelectorAll("nile-table-header-item"),i=e.querySelectorAll("nile-table-cell-item"),o=Array.from(n).some((e=>t(e))),r=Array.from(i).some((e=>t(e)));return o||r}export{n as c,i as h};
@@ -1,2 +0,0 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,o,r,t,i,s,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){e=_lit.css;}],execute:function execute(){_export("r",o=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host([resizable]) {\n position: relative;\n overflow: hidden;\n table-layout: fixed;\n }\n"])))),_export("c",r=e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n :host([resizable]) {\n position: relative;\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n\n :host([resizable]) .header__item__wrapper {\n position: relative;\n }\n"])))),_export("a",t=e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n .resizer {\n position: absolute;\n right: 0;\n top: -1000px;\n bottom: -1000px;\n width: 8px;\n cursor: col-resize;\n user-select: none;\n background-color: var(--nile-colors-neutral-100);\n transition: background-color 0.2s;\n z-index: 10;\n opacity: 0;\n transition: opacity 0.2s ease;\n pointer-events: none;\n }\n\n :host([resizable]):hover .resizer {\n opacity: 1;\n pointer-events: auto;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n right: 3px;\n top: 0;\n width: 2px;\n height: 100%;\n background-color: var(--nile-colors-neutral-500);\n opacity: 0.8;\n }\n\n .resizer:hover {\n background-color: var(--nile-colors-neutral-400);\n }\n\n .resizer:hover::before {\n background-color: var(--nile-colors-neutral-700);\n opacity: 1;\n }\n\n .resizer.resizing {\n background-color: var(--nile-colors-neutral-400);\n opacity: 1;\n pointer-events: auto;\n }\n\n .resizer.resizing::before {\n background-color: var(--nile-colors-neutral-700);\n opacity: 1;\n width: 3px;\n }\n"])))),_export("h",i=e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n .resizer {\n position: absolute;\n right: -2px;\n top: -1000px;\n bottom: -1000px;\n width: 8px;\n cursor: ew-resize;\n user-select: none;\n transition: background-color 0.2s;\n z-index: 10;\n opacity: 0;\n transition: opacity 0.2s ease;\n }\n\n :host([resizable]):hover .resizer {\n opacity: 1;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n height: 100%;\n opacity: 0.8;\n }\n\n .resizer.resizing {\n border-right: 4px double var(--nile-colors-neutral-400);\n background-color: transparent;\n opacity: 1;\n }\n"])))),_export("b",s=e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n :host([resizable]) ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n\n :host([resizable]) ::slotted(span),\n :host([resizable]) ::slotted(div),\n :host([resizable]) ::slotted(p) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n"])))),_export("t",a=e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n .nile__table__body[resizable] {\n table-layout: fixed;\n }\n"]))));}};});
2
- //# sourceMappingURL=resizable-table-styles.cjs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"resizable-table-styles.cjs.js","sources":["../../../src/internal/resizable-table-styles.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 * Resizable Styles Utility\n * Centralized styles for resizable table functionality\n */\n\nexport const resizableHostStyles = css`\n :host([resizable]) {\n position: relative;\n overflow: hidden;\n table-layout: fixed;\n }\n`;\n\nexport const resizableHeaderStyles = css`\n :host([resizable]) {\n position: relative;\n border-right: 1px solid var(--nile-colors-neutral-400);\n }\n\n :host([resizable]) .header__item__wrapper {\n position: relative;\n }\n`;\n\nexport const resizerStyles = css`\n .resizer {\n position: absolute;\n right: 0;\n top: -1000px;\n bottom: -1000px;\n width: 8px;\n cursor: col-resize;\n user-select: none;\n background-color: var(--nile-colors-neutral-100);\n transition: background-color 0.2s;\n z-index: 10;\n opacity: 0;\n transition: opacity 0.2s ease;\n pointer-events: none;\n }\n\n :host([resizable]):hover .resizer {\n opacity: 1;\n pointer-events: auto;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n right: 3px;\n top: 0;\n width: 2px;\n height: 100%;\n background-color: var(--nile-colors-neutral-500);\n opacity: 0.8;\n }\n\n .resizer:hover {\n background-color: var(--nile-colors-neutral-400);\n }\n\n .resizer:hover::before {\n background-color: var(--nile-colors-neutral-700);\n opacity: 1;\n }\n\n .resizer.resizing {\n background-color: var(--nile-colors-neutral-400);\n opacity: 1;\n pointer-events: auto;\n }\n\n .resizer.resizing::before {\n background-color: var(--nile-colors-neutral-700);\n opacity: 1;\n width: 3px;\n }\n`;\n\nexport const headerResizerStyles = css`\n .resizer {\n position: absolute;\n right: -2px;\n top: -1000px;\n bottom: -1000px;\n width: 8px;\n cursor: ew-resize;\n user-select: none;\n transition: background-color 0.2s;\n z-index: 10;\n opacity: 0;\n transition: opacity 0.2s ease;\n }\n\n :host([resizable]):hover .resizer {\n opacity: 1;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n height: 100%;\n opacity: 0.8;\n }\n\n .resizer.resizing {\n border-right: 4px double var(--nile-colors-neutral-400);\n background-color: transparent;\n opacity: 1;\n }\n`;\n\nexport const resizableSlotStyles = css`\n :host([resizable]) ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n\n :host([resizable]) ::slotted(span),\n :host([resizable]) ::slotted(div),\n :host([resizable]) ::slotted(p) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n`;\n\nexport const tableLayoutStyles = css`\n .nile__table__body[resizable] {\n table-layout: fixed;\n }\n`; \n"],"names":["resizableHostStyles","css","_templateObject","_taggedTemplateLiteral","_export","resizableHeaderStyles","_templateObject2","resizerStyles","_templateObject3","headerResizerStyles","_templateObject4","resizableSlotStyles","_templateObject5","tableLayoutStyles","_templateObject6"],"mappings":"mZAcaA,CAAAA,CAAsBC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,mHAAAC,OAAA,KAQzBC,CAAAA,CAAwBJ,CAAG,CAAAK,gBAAA,GAAAA,gBAAA,CAAAH,sBAAA,8MAAAC,OAAA,KAW3BG,CAAAA,CAAgBN,CAAG,CAAAO,gBAAA,GAAAA,gBAAA,CAAAL,sBAAA,8lCAAAC,OAAA,KAuDnBK,CAAAA,CAAsBR,CAAG,CAAAS,gBAAA,GAAAA,gBAAA,CAAAP,sBAAA,imBAAAC,OAAA,KAiCzBO,CAAAA,CAAsBV,CAAG,CAAAW,gBAAA,GAAAA,gBAAA,CAAAT,sBAAA,uXAAAC,OAAA,KAkBzBS,CAAAA,CAAoBZ,CAAG,CAAAa,gBAAA,GAAAA,gBAAA,CAAAX,sBAAA"}