@aquera/nile-elements 1.6.1 → 1.6.3

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 (741) hide show
  1. package/README.md +14 -0
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/dist/index.js +1150 -624
  5. package/dist/internal/accessibility/a11y.custom-value.enum.cjs.js +2 -0
  6. package/dist/internal/accessibility/a11y.custom-value.enum.cjs.js.map +1 -0
  7. package/dist/internal/accessibility/a11y.custom-value.enum.esm.js +1 -0
  8. package/dist/internal/accessibility/a11y.property.enum.cjs.js +2 -0
  9. package/dist/internal/accessibility/a11y.property.enum.cjs.js.map +1 -0
  10. package/dist/internal/accessibility/a11y.property.enum.esm.js +1 -0
  11. package/dist/internal/accessibility/a11y.role.enum.cjs.js +2 -0
  12. package/dist/internal/accessibility/a11y.role.enum.cjs.js.map +1 -0
  13. package/dist/internal/accessibility/a11y.role.enum.esm.js +1 -0
  14. package/dist/internal/accessibility/a11y.state.enum.cjs.js +2 -0
  15. package/dist/internal/accessibility/a11y.state.enum.cjs.js.map +1 -0
  16. package/dist/internal/accessibility/a11y.state.enum.esm.js +1 -0
  17. package/dist/internal/accessibility/accessibility.const.cjs.js +2 -0
  18. package/dist/internal/accessibility/accessibility.const.cjs.js.map +1 -0
  19. package/dist/internal/accessibility/accessibility.const.esm.js +1 -0
  20. package/dist/internal/accessibility/role.enum.cjs.js +2 -0
  21. package/dist/internal/accessibility/role.enum.cjs.js.map +1 -0
  22. package/dist/internal/accessibility/role.enum.esm.js +1 -0
  23. package/dist/internal/enum.cjs.js +1 -1
  24. package/dist/internal/enum.cjs.js.map +1 -1
  25. package/dist/internal/enum.esm.js +1 -1
  26. package/dist/internal/nile-element.cjs.js +1 -1
  27. package/dist/internal/nile-element.cjs.js.map +1 -1
  28. package/dist/internal/nile-element.esm.js +1 -1
  29. package/dist/nile-accordion/index.cjs.js +1 -1
  30. package/dist/nile-accordion/index.esm.js +1 -1
  31. package/dist/nile-accordion/nile-accordion.cjs.js +1 -1
  32. package/dist/nile-accordion/nile-accordion.cjs.js.map +1 -1
  33. package/dist/nile-accordion/nile-accordion.esm.js +2 -2
  34. package/dist/nile-auto-complete/index.cjs.js +1 -1
  35. package/dist/nile-auto-complete/index.esm.js +1 -1
  36. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  37. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  38. package/dist/nile-auto-complete/nile-auto-complete.esm.js +1 -1
  39. package/dist/nile-avatar/index.cjs.js +1 -1
  40. package/dist/nile-avatar/index.esm.js +1 -1
  41. package/dist/nile-avatar/nile-avatar.cjs.js +1 -1
  42. package/dist/nile-avatar/nile-avatar.cjs.js.map +1 -1
  43. package/dist/nile-avatar/nile-avatar.esm.js +3 -1
  44. package/dist/nile-badge/index.cjs.js +1 -1
  45. package/dist/nile-badge/index.esm.js +1 -1
  46. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  47. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  48. package/dist/nile-badge/nile-badge.esm.js +2 -2
  49. package/dist/nile-breadcrumb/index.cjs.js +1 -1
  50. package/dist/nile-breadcrumb/index.esm.js +1 -1
  51. package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js +1 -1
  52. package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js.map +1 -1
  53. package/dist/nile-breadcrumb/nile-breadcrumb.esm.js +1 -1
  54. package/dist/nile-breadcrumb-item/index.cjs.js +1 -1
  55. package/dist/nile-breadcrumb-item/index.esm.js +1 -1
  56. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js +1 -1
  57. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js.map +1 -1
  58. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.esm.js +4 -4
  59. package/dist/nile-button/index.cjs.js +1 -1
  60. package/dist/nile-button/index.esm.js +1 -1
  61. package/dist/nile-button/nile-button.cjs.js +1 -1
  62. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  63. package/dist/nile-button/nile-button.esm.js +1 -1
  64. package/dist/nile-button-filter/index.cjs.js +1 -1
  65. package/dist/nile-button-filter/index.esm.js +1 -1
  66. package/dist/nile-button-filter/nile-button-filter.cjs.js +1 -1
  67. package/dist/nile-button-filter/nile-button-filter.cjs.js.map +1 -1
  68. package/dist/nile-button-filter/nile-button-filter.esm.js +7 -7
  69. package/dist/nile-button-toggle/index.cjs.js +1 -1
  70. package/dist/nile-button-toggle/index.esm.js +1 -1
  71. package/dist/nile-button-toggle/nile-button-toggle.cjs.js +1 -1
  72. package/dist/nile-button-toggle/nile-button-toggle.cjs.js.map +1 -1
  73. package/dist/nile-button-toggle/nile-button-toggle.esm.js +2 -2
  74. package/dist/nile-button-toggle-group/index.cjs.js +1 -1
  75. package/dist/nile-button-toggle-group/index.esm.js +1 -1
  76. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js +1 -1
  77. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js.map +1 -1
  78. package/dist/nile-button-toggle-group/nile-button-toggle-group.esm.js +1 -1
  79. package/dist/nile-calendar/index.cjs.js +1 -1
  80. package/dist/nile-calendar/index.esm.js +1 -1
  81. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  82. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  83. package/dist/nile-calendar/nile-calendar.esm.js +4 -4
  84. package/dist/nile-card/index.cjs.js +1 -1
  85. package/dist/nile-card/index.esm.js +1 -1
  86. package/dist/nile-card/nile-card.cjs.js +1 -1
  87. package/dist/nile-card/nile-card.cjs.js.map +1 -1
  88. package/dist/nile-card/nile-card.esm.js +2 -2
  89. package/dist/nile-carousel/index.cjs.js +1 -1
  90. package/dist/nile-carousel/index.esm.js +1 -1
  91. package/dist/nile-carousel/nile-carousel-item/index.cjs.js +1 -1
  92. package/dist/nile-carousel/nile-carousel-item/index.esm.js +1 -1
  93. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.cjs.js +1 -1
  94. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.cjs.js.map +1 -1
  95. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.esm.js +2 -2
  96. package/dist/nile-carousel/nile-carousel.cjs.js +1 -1
  97. package/dist/nile-carousel/nile-carousel.cjs.js.map +1 -1
  98. package/dist/nile-carousel/nile-carousel.esm.js +1 -1
  99. package/dist/nile-checkbox/index.cjs.js +1 -1
  100. package/dist/nile-checkbox/index.esm.js +1 -1
  101. package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
  102. package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
  103. package/dist/nile-checkbox/nile-checkbox.css.cjs.js +1 -1
  104. package/dist/nile-checkbox/nile-checkbox.css.cjs.js.map +1 -1
  105. package/dist/nile-checkbox/nile-checkbox.css.esm.js +4 -0
  106. package/dist/nile-checkbox/nile-checkbox.esm.js +3 -3
  107. package/dist/nile-checkbox-group/index.cjs.js +2 -0
  108. package/dist/nile-checkbox-group/index.cjs.js.map +1 -0
  109. package/dist/nile-checkbox-group/index.esm.js +1 -0
  110. package/dist/nile-checkbox-group/nile-checkbox-group.cjs.js +2 -0
  111. package/dist/nile-checkbox-group/nile-checkbox-group.cjs.js.map +1 -0
  112. package/dist/nile-checkbox-group/nile-checkbox-group.css.cjs.js +2 -0
  113. package/dist/nile-checkbox-group/nile-checkbox-group.css.cjs.js.map +1 -0
  114. package/dist/nile-checkbox-group/nile-checkbox-group.css.esm.js +68 -0
  115. package/dist/nile-checkbox-group/nile-checkbox-group.esm.js +56 -0
  116. package/dist/nile-chip/index.cjs.js +1 -1
  117. package/dist/nile-chip/index.esm.js +1 -1
  118. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  119. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  120. package/dist/nile-chip/nile-chip.esm.js +2 -2
  121. package/dist/nile-circular-progressbar/index.cjs.js +1 -1
  122. package/dist/nile-circular-progressbar/index.esm.js +1 -1
  123. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js +1 -1
  124. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js.map +1 -1
  125. package/dist/nile-circular-progressbar/nile-circular-progressbar.esm.js +2 -2
  126. package/dist/nile-code-editor/index.cjs.js +1 -1
  127. package/dist/nile-code-editor/index.esm.js +1 -1
  128. package/dist/nile-code-editor/nile-code-editor.cjs.js +1 -1
  129. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  130. package/dist/nile-code-editor/nile-code-editor.esm.js +1 -1
  131. package/dist/nile-content-editor/index.cjs.js +1 -1
  132. package/dist/nile-content-editor/index.esm.js +1 -1
  133. package/dist/nile-content-editor/nile-content-editor.cjs.js +1 -1
  134. package/dist/nile-content-editor/nile-content-editor.cjs.js.map +1 -1
  135. package/dist/nile-content-editor/nile-content-editor.esm.js +5 -5
  136. package/dist/nile-date-picker/index.cjs.js +1 -1
  137. package/dist/nile-date-picker/index.esm.js +1 -1
  138. package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
  139. package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
  140. package/dist/nile-date-picker/nile-date-picker.esm.js +1 -1
  141. package/dist/nile-detail/index.cjs.js +1 -1
  142. package/dist/nile-detail/index.esm.js +1 -1
  143. package/dist/nile-detail/nile-detail.cjs.js +1 -1
  144. package/dist/nile-detail/nile-detail.cjs.js.map +1 -1
  145. package/dist/nile-detail/nile-detail.esm.js +2 -2
  146. package/dist/nile-dialog/index.cjs.js +1 -1
  147. package/dist/nile-dialog/index.esm.js +1 -1
  148. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  149. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  150. package/dist/nile-dialog/nile-dialog.esm.js +2 -2
  151. package/dist/nile-divider/index.cjs.js +1 -1
  152. package/dist/nile-divider/index.esm.js +1 -1
  153. package/dist/nile-divider/nile-divider.cjs.js +1 -1
  154. package/dist/nile-divider/nile-divider.cjs.js.map +1 -1
  155. package/dist/nile-divider/nile-divider.esm.js +2 -2
  156. package/dist/nile-drawer/index.cjs.js +1 -1
  157. package/dist/nile-drawer/index.esm.js +1 -1
  158. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  159. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  160. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  161. package/dist/nile-dropdown/index.cjs.js +1 -1
  162. package/dist/nile-dropdown/index.esm.js +1 -1
  163. package/dist/nile-dropdown/nile-dropdown.cjs.js +1 -1
  164. package/dist/nile-dropdown/nile-dropdown.cjs.js.map +1 -1
  165. package/dist/nile-dropdown/nile-dropdown.esm.js +1 -1
  166. package/dist/nile-empty-state/index.cjs.js +1 -1
  167. package/dist/nile-empty-state/index.esm.js +1 -1
  168. package/dist/nile-empty-state/nile-empty-state.cjs.js +1 -1
  169. package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
  170. package/dist/nile-empty-state/nile-empty-state.esm.js +2 -2
  171. package/dist/nile-file-preview/index.cjs.js +1 -1
  172. package/dist/nile-file-preview/index.esm.js +1 -1
  173. package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
  174. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
  175. package/dist/nile-file-preview/nile-file-preview.esm.js +1 -1
  176. package/dist/nile-file-upload/index.cjs.js +1 -1
  177. package/dist/nile-file-upload/index.esm.js +1 -1
  178. package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
  179. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
  180. package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
  181. package/dist/nile-filter-chip/index.cjs.js +1 -1
  182. package/dist/nile-filter-chip/index.esm.js +1 -1
  183. package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
  184. package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
  185. package/dist/nile-filter-chip/nile-filter-chip.esm.js +2 -2
  186. package/dist/nile-floating-panel/index.cjs.js +1 -1
  187. package/dist/nile-floating-panel/index.esm.js +1 -1
  188. package/dist/nile-floating-panel/nile-floating-panel.cjs.js +1 -1
  189. package/dist/nile-floating-panel/nile-floating-panel.cjs.js.map +1 -1
  190. package/dist/nile-floating-panel/nile-floating-panel.esm.js +1 -1
  191. package/dist/nile-form-group/index.cjs.js +1 -1
  192. package/dist/nile-form-group/index.esm.js +1 -1
  193. package/dist/nile-form-group/nile-form-group.cjs.js +1 -1
  194. package/dist/nile-form-group/nile-form-group.cjs.js.map +1 -1
  195. package/dist/nile-form-group/nile-form-group.esm.js +2 -2
  196. package/dist/nile-format-date/index.cjs.js +1 -1
  197. package/dist/nile-format-date/index.esm.js +1 -1
  198. package/dist/nile-format-date/nile-format-date.cjs.js +1 -1
  199. package/dist/nile-format-date/nile-format-date.cjs.js.map +1 -1
  200. package/dist/nile-format-date/nile-format-date.esm.js +1 -1
  201. package/dist/nile-grid/index.cjs.js +1 -1
  202. package/dist/nile-grid/index.esm.js +1 -1
  203. package/dist/nile-grid/nile-grid-body/index.cjs.js +1 -1
  204. package/dist/nile-grid/nile-grid-body/index.esm.js +1 -1
  205. package/dist/nile-grid/nile-grid-body/nile-grid-body.cjs.js +1 -1
  206. package/dist/nile-grid/nile-grid-body/nile-grid-body.cjs.js.map +1 -1
  207. package/dist/nile-grid/nile-grid-body/nile-grid-body.esm.js +2 -2
  208. package/dist/nile-grid/nile-grid-cell-item/index.cjs.js +1 -1
  209. package/dist/nile-grid/nile-grid-cell-item/index.esm.js +1 -1
  210. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js +1 -1
  211. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +1 -1
  212. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.esm.js +2 -2
  213. package/dist/nile-grid/nile-grid-head/index.cjs.js +1 -1
  214. package/dist/nile-grid/nile-grid-head/index.esm.js +1 -1
  215. package/dist/nile-grid/nile-grid-head/nile-grid-head.cjs.js +1 -1
  216. package/dist/nile-grid/nile-grid-head/nile-grid-head.cjs.js.map +1 -1
  217. package/dist/nile-grid/nile-grid-head/nile-grid-head.esm.js +2 -2
  218. package/dist/nile-grid/nile-grid-head-item/index.cjs.js +1 -1
  219. package/dist/nile-grid/nile-grid-head-item/index.esm.js +1 -1
  220. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js +1 -1
  221. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -1
  222. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.esm.js +3 -3
  223. package/dist/nile-grid/nile-grid-row/index.cjs.js +1 -1
  224. package/dist/nile-grid/nile-grid-row/index.esm.js +1 -1
  225. package/dist/nile-grid/nile-grid-row/nile-grid-row.cjs.js +1 -1
  226. package/dist/nile-grid/nile-grid-row/nile-grid-row.cjs.js.map +1 -1
  227. package/dist/nile-grid/nile-grid-row/nile-grid-row.esm.js +2 -2
  228. package/dist/nile-grid/nile-grid.cjs.js +1 -1
  229. package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
  230. package/dist/nile-grid/nile-grid.esm.js +2 -2
  231. package/dist/nile-hero/index.cjs.js +1 -1
  232. package/dist/nile-hero/index.esm.js +1 -1
  233. package/dist/nile-hero/nile-hero.cjs.js +1 -1
  234. package/dist/nile-hero/nile-hero.cjs.js.map +1 -1
  235. package/dist/nile-hero/nile-hero.esm.js +2 -2
  236. package/dist/nile-hero-header/index.cjs.js +1 -1
  237. package/dist/nile-hero-header/index.esm.js +1 -1
  238. package/dist/nile-hero-header/nile-hero-header.cjs.js +1 -1
  239. package/dist/nile-hero-header/nile-hero-header.cjs.js.map +1 -1
  240. package/dist/nile-hero-header/nile-hero-header.esm.js +2 -2
  241. package/dist/nile-icon/icons/svg/folder_delete.cjs.js +2 -0
  242. package/dist/nile-icon/icons/svg/folder_delete.cjs.js.map +1 -0
  243. package/dist/nile-icon/icons/svg/folder_delete.esm.js +1 -0
  244. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  245. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  246. package/dist/nile-icon/icons/svg/layers-three-02.cjs.js +1 -1
  247. package/dist/nile-icon/icons/svg/layers-three-02.cjs.js.map +1 -1
  248. package/dist/nile-icon/icons/svg/layers-three-02.esm.js +1 -1
  249. package/dist/nile-icon/index.cjs.js +1 -1
  250. package/dist/nile-icon/index.cjs.js.map +1 -1
  251. package/dist/nile-icon/index.esm.js +1 -1
  252. package/dist/nile-icon-button/index.cjs.js +1 -1
  253. package/dist/nile-icon-button/index.esm.js +1 -1
  254. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  255. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  256. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  257. package/dist/nile-inline-edit/index.cjs.js +1 -1
  258. package/dist/nile-inline-edit/index.esm.js +1 -1
  259. package/dist/nile-inline-edit/nile-inline-edit.cjs.js +1 -1
  260. package/dist/nile-inline-edit/nile-inline-edit.cjs.js.map +1 -1
  261. package/dist/nile-inline-edit/nile-inline-edit.esm.js +2 -2
  262. package/dist/nile-inline-sidebar/index.cjs.js +1 -1
  263. package/dist/nile-inline-sidebar/index.esm.js +1 -1
  264. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js +1 -1
  265. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js.map +1 -1
  266. package/dist/nile-inline-sidebar/nile-inline-sidebar.esm.js +3 -3
  267. package/dist/nile-inline-sidebar-group/index.cjs.js +1 -1
  268. package/dist/nile-inline-sidebar-group/index.esm.js +1 -1
  269. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.cjs.js +1 -1
  270. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.cjs.js.map +1 -1
  271. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.esm.js +3 -3
  272. package/dist/nile-inline-sidebar-item/index.cjs.js +1 -1
  273. package/dist/nile-inline-sidebar-item/index.esm.js +1 -1
  274. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js +1 -1
  275. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js.map +1 -1
  276. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.esm.js +3 -3
  277. package/dist/nile-input/index.cjs.js +1 -1
  278. package/dist/nile-input/index.esm.js +1 -1
  279. package/dist/nile-input/nile-input.cjs.js +1 -1
  280. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  281. package/dist/nile-input/nile-input.esm.js +1 -1
  282. package/dist/nile-link/index.cjs.js +1 -1
  283. package/dist/nile-link/index.esm.js +1 -1
  284. package/dist/nile-link/nile-link.cjs.js +1 -1
  285. package/dist/nile-link/nile-link.cjs.js.map +1 -1
  286. package/dist/nile-link/nile-link.esm.js +3 -3
  287. package/dist/nile-list/index.cjs.js +1 -1
  288. package/dist/nile-list/index.esm.js +1 -1
  289. package/dist/nile-list/nile-list.cjs.js +1 -1
  290. package/dist/nile-list/nile-list.cjs.js.map +1 -1
  291. package/dist/nile-list/nile-list.esm.js +1 -1
  292. package/dist/nile-list-item/index.cjs.js +1 -1
  293. package/dist/nile-list-item/index.esm.js +1 -1
  294. package/dist/nile-list-item/nile-list-item.cjs.js +1 -1
  295. package/dist/nile-list-item/nile-list-item.cjs.js.map +1 -1
  296. package/dist/nile-list-item/nile-list-item.esm.js +2 -2
  297. package/dist/nile-lite-tooltip/index.cjs.js +1 -1
  298. package/dist/nile-lite-tooltip/index.esm.js +1 -1
  299. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
  300. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
  301. package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
  302. package/dist/nile-menu/index.cjs.js +1 -1
  303. package/dist/nile-menu/index.esm.js +1 -1
  304. package/dist/nile-menu/nile-menu.cjs.js +1 -1
  305. package/dist/nile-menu/nile-menu.cjs.js.map +1 -1
  306. package/dist/nile-menu/nile-menu.esm.js +2 -2
  307. package/dist/nile-menu-item/index.cjs.js +1 -1
  308. package/dist/nile-menu-item/index.esm.js +1 -1
  309. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  310. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  311. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  312. package/dist/nile-option/index.cjs.js +1 -1
  313. package/dist/nile-option/index.esm.js +1 -1
  314. package/dist/nile-option/nile-option.cjs.js +1 -1
  315. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  316. package/dist/nile-option/nile-option.esm.js +5 -5
  317. package/dist/nile-option-group/index.cjs.js +1 -1
  318. package/dist/nile-option-group/index.esm.js +1 -1
  319. package/dist/nile-option-group/nile-option-group.cjs.js +1 -1
  320. package/dist/nile-option-group/nile-option-group.cjs.js.map +1 -1
  321. package/dist/nile-option-group/nile-option-group.esm.js +2 -2
  322. package/dist/nile-otp-input/index.cjs.js +2 -0
  323. package/dist/nile-otp-input/index.cjs.js.map +1 -0
  324. package/dist/nile-otp-input/index.esm.js +1 -0
  325. package/dist/nile-otp-input/nile-otp-input.cjs.js +2 -0
  326. package/dist/nile-otp-input/nile-otp-input.cjs.js.map +1 -0
  327. package/dist/nile-otp-input/nile-otp-input.css.cjs.js +2 -0
  328. package/dist/nile-otp-input/nile-otp-input.css.cjs.js.map +1 -0
  329. package/dist/nile-otp-input/nile-otp-input.css.esm.js +257 -0
  330. package/dist/nile-otp-input/nile-otp-input.enum.cjs.js +2 -0
  331. package/dist/nile-otp-input/nile-otp-input.enum.cjs.js.map +1 -0
  332. package/dist/nile-otp-input/nile-otp-input.enum.esm.js +1 -0
  333. package/dist/nile-otp-input/nile-otp-input.esm.js +103 -0
  334. package/dist/nile-page-header/index.cjs.js +1 -1
  335. package/dist/nile-page-header/index.esm.js +1 -1
  336. package/dist/nile-page-header/nile-page-header.cjs.js +1 -1
  337. package/dist/nile-page-header/nile-page-header.cjs.js.map +1 -1
  338. package/dist/nile-page-header/nile-page-header.esm.js +2 -2
  339. package/dist/nile-pagination/index.cjs.js +1 -1
  340. package/dist/nile-pagination/index.esm.js +1 -1
  341. package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
  342. package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
  343. package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
  344. package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
  345. package/dist/nile-pagination/nile-pagination.css.esm.js +7 -0
  346. package/dist/nile-pagination/nile-pagination.esm.js +1 -1
  347. package/dist/nile-popover/index.cjs.js +1 -1
  348. package/dist/nile-popover/index.esm.js +1 -1
  349. package/dist/nile-popover/nile-popover.cjs.js +2 -2
  350. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  351. package/dist/nile-popover/nile-popover.esm.js +3 -3
  352. package/dist/nile-popup/index.cjs.js +1 -1
  353. package/dist/nile-popup/index.esm.js +1 -1
  354. package/dist/nile-popup/nile-popup.cjs.js +1 -1
  355. package/dist/nile-popup/nile-popup.cjs.js.map +1 -1
  356. package/dist/nile-popup/nile-popup.esm.js +2 -2
  357. package/dist/nile-progress-bar/index.cjs.js +1 -1
  358. package/dist/nile-progress-bar/index.esm.js +1 -1
  359. package/dist/nile-progress-bar/nile-progress-bar.cjs.js +1 -1
  360. package/dist/nile-progress-bar/nile-progress-bar.cjs.js.map +1 -1
  361. package/dist/nile-progress-bar/nile-progress-bar.esm.js +2 -2
  362. package/dist/nile-qr-code/index.cjs.js +1 -1
  363. package/dist/nile-qr-code/index.esm.js +1 -1
  364. package/dist/nile-qr-code/nile-qr-code.cjs.js +1 -1
  365. package/dist/nile-qr-code/nile-qr-code.cjs.js.map +1 -1
  366. package/dist/nile-qr-code/nile-qr-code.esm.js +2 -2
  367. package/dist/nile-radio/index.cjs.js +1 -1
  368. package/dist/nile-radio/index.esm.js +1 -1
  369. package/dist/nile-radio/nile-radio.cjs.js +1 -1
  370. package/dist/nile-radio/nile-radio.cjs.js.map +1 -1
  371. package/dist/nile-radio/nile-radio.css.cjs.js +1 -1
  372. package/dist/nile-radio/nile-radio.css.cjs.js.map +1 -1
  373. package/dist/nile-radio/nile-radio.css.esm.js +4 -0
  374. package/dist/nile-radio/nile-radio.esm.js +2 -2
  375. package/dist/nile-radio-group/index.cjs.js +1 -1
  376. package/dist/nile-radio-group/index.esm.js +1 -1
  377. package/dist/nile-radio-group/nile-radio-group.cjs.js +1 -1
  378. package/dist/nile-radio-group/nile-radio-group.cjs.js.map +1 -1
  379. package/dist/nile-radio-group/nile-radio-group.esm.js +2 -2
  380. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
  381. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
  382. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
  383. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
  384. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +8 -6
  385. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
  386. package/dist/nile-section-message/index.cjs.js +1 -1
  387. package/dist/nile-section-message/index.esm.js +1 -1
  388. package/dist/nile-section-message/nile-section-message.cjs.js +1 -1
  389. package/dist/nile-section-message/nile-section-message.cjs.js.map +1 -1
  390. package/dist/nile-section-message/nile-section-message.esm.js +2 -2
  391. package/dist/nile-select/index.cjs.js +1 -1
  392. package/dist/nile-select/index.esm.js +1 -1
  393. package/dist/nile-select/nile-select.cjs.js +1 -1
  394. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  395. package/dist/nile-select/nile-select.css.cjs.js +1 -1
  396. package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
  397. package/dist/nile-select/nile-select.css.esm.js +21 -2
  398. package/dist/nile-select/nile-select.esm.js +33 -25
  399. package/dist/nile-select/portal-utils.cjs.js +1 -1
  400. package/dist/nile-select/portal-utils.cjs.js.map +1 -1
  401. package/dist/nile-select/portal-utils.esm.js +1 -1
  402. package/dist/nile-side-bar/index.cjs.js +1 -1
  403. package/dist/nile-side-bar/index.esm.js +1 -1
  404. package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
  405. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
  406. package/dist/nile-side-bar/nile-side-bar.esm.js +2 -2
  407. package/dist/nile-side-bar-action/index.cjs.js +1 -1
  408. package/dist/nile-side-bar-action/index.esm.js +1 -1
  409. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js +1 -1
  410. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js.map +1 -1
  411. package/dist/nile-side-bar-action/nile-side-bar-action.esm.js +3 -3
  412. package/dist/nile-side-bar-action-menu/index.cjs.js +1 -1
  413. package/dist/nile-side-bar-action-menu/index.esm.js +1 -1
  414. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.cjs.js +1 -1
  415. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.cjs.js.map +1 -1
  416. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.esm.js +2 -2
  417. package/dist/nile-side-bar-action-menu-item/index.cjs.js +1 -1
  418. package/dist/nile-side-bar-action-menu-item/index.esm.js +1 -1
  419. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js +1 -1
  420. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js.map +1 -1
  421. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.esm.js +1 -1
  422. package/dist/nile-side-bar-expand/index.cjs.js +1 -1
  423. package/dist/nile-side-bar-expand/index.esm.js +1 -1
  424. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js +1 -1
  425. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js.map +1 -1
  426. package/dist/nile-side-bar-expand/nile-side-bar-expand.esm.js +2 -2
  427. package/dist/nile-side-bar-footer/index.cjs.js +1 -1
  428. package/dist/nile-side-bar-footer/index.esm.js +1 -1
  429. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js +1 -1
  430. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
  431. package/dist/nile-side-bar-footer/nile-side-bar-footer.esm.js +2 -2
  432. package/dist/nile-side-bar-footer-item/index.cjs.js +1 -1
  433. package/dist/nile-side-bar-footer-item/index.esm.js +1 -1
  434. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
  435. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
  436. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +1 -1
  437. package/dist/nile-side-bar-footer-text/index.cjs.js +1 -1
  438. package/dist/nile-side-bar-footer-text/index.esm.js +1 -1
  439. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js +1 -1
  440. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js.map +1 -1
  441. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.esm.js +3 -3
  442. package/dist/nile-side-bar-group/index.cjs.js +1 -1
  443. package/dist/nile-side-bar-group/index.esm.js +1 -1
  444. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
  445. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
  446. package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +2 -2
  447. package/dist/nile-side-bar-group-item/index.cjs.js +1 -1
  448. package/dist/nile-side-bar-group-item/index.esm.js +1 -1
  449. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js +1 -1
  450. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js.map +1 -1
  451. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.esm.js +2 -2
  452. package/dist/nile-side-bar-group-item-icon/index.cjs.js +1 -1
  453. package/dist/nile-side-bar-group-item-icon/index.esm.js +1 -1
  454. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
  455. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
  456. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +2 -2
  457. package/dist/nile-side-bar-group-item-text/index.cjs.js +1 -1
  458. package/dist/nile-side-bar-group-item-text/index.esm.js +1 -1
  459. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.cjs.js +1 -1
  460. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.cjs.js.map +1 -1
  461. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.esm.js +1 -1
  462. package/dist/nile-side-bar-header/index.cjs.js +1 -1
  463. package/dist/nile-side-bar-header/index.esm.js +1 -1
  464. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js +1 -1
  465. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
  466. package/dist/nile-side-bar-header/nile-side-bar-header.esm.js +2 -2
  467. package/dist/nile-side-bar-logo/index.cjs.js +1 -1
  468. package/dist/nile-side-bar-logo/index.esm.js +1 -1
  469. package/dist/nile-side-bar-logo/nile-side-bar-logo.cjs.js +1 -1
  470. package/dist/nile-side-bar-logo/nile-side-bar-logo.cjs.js.map +1 -1
  471. package/dist/nile-side-bar-logo/nile-side-bar-logo.esm.js +2 -2
  472. package/dist/nile-side-bar-panel/index.cjs.js +1 -1
  473. package/dist/nile-side-bar-panel/index.esm.js +1 -1
  474. package/dist/nile-side-bar-panel/nile-side-bar-panel.cjs.js +1 -1
  475. package/dist/nile-side-bar-panel/nile-side-bar-panel.cjs.js.map +1 -1
  476. package/dist/nile-side-bar-panel/nile-side-bar-panel.esm.js +2 -2
  477. package/dist/nile-skeleton-loader/index.cjs.js +1 -1
  478. package/dist/nile-skeleton-loader/index.esm.js +1 -1
  479. package/dist/nile-skeleton-loader/nile-skeleton-loader.cjs.js +1 -1
  480. package/dist/nile-skeleton-loader/nile-skeleton-loader.cjs.js.map +1 -1
  481. package/dist/nile-skeleton-loader/nile-skeleton-loader.esm.js +2 -2
  482. package/dist/nile-slide-toggle/index.cjs.js +1 -1
  483. package/dist/nile-slide-toggle/index.esm.js +1 -1
  484. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
  485. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
  486. package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +2 -2
  487. package/dist/nile-slider/index.cjs.js +1 -1
  488. package/dist/nile-slider/index.esm.js +1 -1
  489. package/dist/nile-slider/nile-slider.cjs.js +1 -1
  490. package/dist/nile-slider/nile-slider.cjs.js.map +1 -1
  491. package/dist/nile-slider/nile-slider.esm.js +3 -3
  492. package/dist/nile-split-panel/index.cjs.js +1 -1
  493. package/dist/nile-split-panel/index.esm.js +1 -1
  494. package/dist/nile-split-panel/nile-split-panel.cjs.js +1 -1
  495. package/dist/nile-split-panel/nile-split-panel.cjs.js.map +1 -1
  496. package/dist/nile-split-panel/nile-split-panel.esm.js +2 -2
  497. package/dist/nile-stepper/index.cjs.js +1 -1
  498. package/dist/nile-stepper/index.esm.js +1 -1
  499. package/dist/nile-stepper/nile-stepper.cjs.js +1 -1
  500. package/dist/nile-stepper/nile-stepper.cjs.js.map +1 -1
  501. package/dist/nile-stepper/nile-stepper.esm.js +3 -3
  502. package/dist/nile-stepper-item/index.cjs.js +1 -1
  503. package/dist/nile-stepper-item/index.esm.js +1 -1
  504. package/dist/nile-stepper-item/nile-stepper-item.cjs.js +1 -1
  505. package/dist/nile-stepper-item/nile-stepper-item.cjs.js.map +1 -1
  506. package/dist/nile-stepper-item/nile-stepper-item.esm.js +1 -1
  507. package/dist/nile-switcher/index.cjs.js +1 -1
  508. package/dist/nile-switcher/index.esm.js +1 -1
  509. package/dist/nile-switcher/nile-switcher.cjs.js +1 -1
  510. package/dist/nile-switcher/nile-switcher.cjs.js.map +1 -1
  511. package/dist/nile-switcher/nile-switcher.esm.js +23 -23
  512. package/dist/nile-tab/index.cjs.js +1 -1
  513. package/dist/nile-tab/index.esm.js +1 -1
  514. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  515. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  516. package/dist/nile-tab/nile-tab.esm.js +1 -1
  517. package/dist/nile-tab-group/index.cjs.js +1 -1
  518. package/dist/nile-tab-group/index.esm.js +1 -1
  519. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  520. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  521. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  522. package/dist/nile-tab-panel/index.cjs.js +1 -1
  523. package/dist/nile-tab-panel/index.esm.js +1 -1
  524. package/dist/nile-tab-panel/nile-tab-panel.cjs.js +1 -1
  525. package/dist/nile-tab-panel/nile-tab-panel.cjs.js.map +1 -1
  526. package/dist/nile-tab-panel/nile-tab-panel.esm.js +3 -3
  527. package/dist/nile-table/index.cjs.js +1 -1
  528. package/dist/nile-table/index.esm.js +1 -1
  529. package/dist/nile-table/nile-table.cjs.js +1 -1
  530. package/dist/nile-table/nile-table.cjs.js.map +1 -1
  531. package/dist/nile-table/nile-table.esm.js +1 -1
  532. package/dist/nile-table-body/index.cjs.js +1 -1
  533. package/dist/nile-table-body/index.esm.js +1 -1
  534. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  535. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  536. package/dist/nile-table-body/nile-table-body.esm.js +3 -3
  537. package/dist/nile-table-cell-item/index.cjs.js +1 -1
  538. package/dist/nile-table-cell-item/index.esm.js +1 -1
  539. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
  540. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
  541. package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +5 -5
  542. package/dist/nile-table-header-item/index.cjs.js +1 -1
  543. package/dist/nile-table-header-item/index.esm.js +1 -1
  544. package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
  545. package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
  546. package/dist/nile-table-header-item/nile-table-header-item.esm.js +1 -1
  547. package/dist/nile-table-row/index.cjs.js +1 -1
  548. package/dist/nile-table-row/index.esm.js +1 -1
  549. package/dist/nile-table-row/nile-table-row.cjs.js +1 -1
  550. package/dist/nile-table-row/nile-table-row.cjs.js.map +1 -1
  551. package/dist/nile-table-row/nile-table-row.esm.js +2 -2
  552. package/dist/nile-tag/index.cjs.js +1 -1
  553. package/dist/nile-tag/index.esm.js +1 -1
  554. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  555. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  556. package/dist/nile-tag/nile-tag.esm.js +1 -1
  557. package/dist/nile-textarea/index.cjs.js +1 -1
  558. package/dist/nile-textarea/index.esm.js +1 -1
  559. package/dist/nile-textarea/nile-textarea.cjs.js +1 -1
  560. package/dist/nile-textarea/nile-textarea.cjs.js.map +1 -1
  561. package/dist/nile-textarea/nile-textarea.esm.js +2 -2
  562. package/dist/nile-title/index.cjs.js +1 -1
  563. package/dist/nile-title/index.esm.js +1 -1
  564. package/dist/nile-title/nile-title.cjs.js +1 -1
  565. package/dist/nile-title/nile-title.cjs.js.map +1 -1
  566. package/dist/nile-title/nile-title.esm.js +1 -1
  567. package/dist/nile-toast/index.cjs.js +1 -1
  568. package/dist/nile-toast/index.esm.js +1 -1
  569. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  570. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  571. package/dist/nile-toast/nile-toast.esm.js +2 -2
  572. package/dist/nile-toolbar/index.cjs.js +1 -1
  573. package/dist/nile-toolbar/index.esm.js +1 -1
  574. package/dist/nile-toolbar/nile-toolbar.cjs.js +1 -1
  575. package/dist/nile-toolbar/nile-toolbar.cjs.js.map +1 -1
  576. package/dist/nile-toolbar/nile-toolbar.esm.js +2 -2
  577. package/dist/nile-tooltip/index.cjs.js +1 -1
  578. package/dist/nile-tooltip/index.esm.js +1 -1
  579. package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
  580. package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
  581. package/dist/nile-tooltip/nile-tooltip.esm.js +2 -2
  582. package/dist/nile-tree/index.cjs.js +1 -1
  583. package/dist/nile-tree/index.esm.js +1 -1
  584. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  585. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  586. package/dist/nile-tree/nile-tree.esm.js +1 -1
  587. package/dist/nile-tree-item/index.cjs.js +1 -1
  588. package/dist/nile-tree-item/index.esm.js +1 -1
  589. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  590. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  591. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  592. package/dist/nile-vertical-stepper-item/index.cjs.js +1 -1
  593. package/dist/nile-vertical-stepper-item/index.esm.js +1 -1
  594. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js +1 -1
  595. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js.map +1 -1
  596. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.esm.js +7 -7
  597. package/dist/nile-virtual-select/index.cjs.js +1 -1
  598. package/dist/nile-virtual-select/index.esm.js +1 -1
  599. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +3 -3
  600. package/dist/nile-virtual-select/nile-virtual-select.esm.js +3 -3
  601. package/dist/src/index.d.ts +2 -0
  602. package/dist/src/index.js +2 -0
  603. package/dist/src/index.js.map +1 -1
  604. package/dist/src/internal/accessibility/a11y.custom-value.enum.d.ts +69 -0
  605. package/dist/src/internal/accessibility/a11y.custom-value.enum.js +71 -0
  606. package/dist/src/internal/accessibility/a11y.custom-value.enum.js.map +1 -0
  607. package/dist/src/internal/accessibility/a11y.property.enum.d.ts +33 -0
  608. package/dist/src/internal/accessibility/a11y.property.enum.js +35 -0
  609. package/dist/src/internal/accessibility/a11y.property.enum.js.map +1 -0
  610. package/dist/src/internal/accessibility/a11y.role.enum.d.ts +50 -0
  611. package/dist/src/internal/accessibility/a11y.role.enum.js +52 -0
  612. package/dist/src/internal/accessibility/a11y.role.enum.js.map +1 -0
  613. package/dist/src/internal/accessibility/a11y.state.enum.d.ts +17 -0
  614. package/dist/src/internal/accessibility/a11y.state.enum.js +19 -0
  615. package/dist/src/internal/accessibility/a11y.state.enum.js.map +1 -0
  616. package/dist/src/internal/accessibility/accessibility.const.d.ts +8 -0
  617. package/dist/src/internal/accessibility/accessibility.const.js +9 -0
  618. package/dist/src/internal/accessibility/accessibility.const.js.map +1 -0
  619. package/dist/src/internal/accessibility/role.enum.d.ts +3 -0
  620. package/dist/src/internal/accessibility/role.enum.js +5 -0
  621. package/dist/src/internal/accessibility/role.enum.js.map +1 -0
  622. package/dist/src/internal/enum.d.ts +21 -0
  623. package/dist/src/internal/enum.js +23 -1
  624. package/dist/src/internal/enum.js.map +1 -1
  625. package/dist/src/internal/nile-element.d.ts +52 -0
  626. package/dist/src/internal/nile-element.js +45 -0
  627. package/dist/src/internal/nile-element.js.map +1 -1
  628. package/dist/src/nile-avatar/nile-avatar.js +2 -0
  629. package/dist/src/nile-avatar/nile-avatar.js.map +1 -1
  630. package/dist/src/nile-badge/nile-badge.d.ts +1 -0
  631. package/dist/src/nile-badge/nile-badge.js +12 -1
  632. package/dist/src/nile-badge/nile-badge.js.map +1 -1
  633. package/dist/src/nile-checkbox/nile-checkbox.css.js +4 -0
  634. package/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
  635. package/dist/src/nile-checkbox/nile-checkbox.d.ts +2 -0
  636. package/dist/src/nile-checkbox/nile-checkbox.js +5 -0
  637. package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
  638. package/dist/src/nile-checkbox-group/index.d.ts +1 -0
  639. package/dist/src/nile-checkbox-group/index.js +2 -0
  640. package/dist/src/nile-checkbox-group/index.js.map +1 -0
  641. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.d.ts +1 -0
  642. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.js +70 -0
  643. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.js.map +1 -0
  644. package/dist/src/nile-checkbox-group/nile-checkbox-group.d.ts +84 -0
  645. package/dist/src/nile-checkbox-group/nile-checkbox-group.js +355 -0
  646. package/dist/src/nile-checkbox-group/nile-checkbox-group.js.map +1 -0
  647. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.d.ts +2 -0
  648. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.js +671 -0
  649. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.js.map +1 -0
  650. package/dist/src/nile-floating-panel/nile-floating-panel.d.ts +2 -0
  651. package/dist/src/nile-floating-panel/nile-floating-panel.js +12 -1
  652. package/dist/src/nile-floating-panel/nile-floating-panel.js.map +1 -1
  653. package/dist/src/nile-icon/icons/svg/folder_delete.d.ts +5 -0
  654. package/dist/src/nile-icon/icons/svg/folder_delete.js +5 -0
  655. package/dist/src/nile-icon/icons/svg/folder_delete.js.map +1 -0
  656. package/dist/src/nile-icon/icons/svg/index.d.ts +1 -0
  657. package/dist/src/nile-icon/icons/svg/index.js +1 -0
  658. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  659. package/dist/src/nile-icon/icons/svg/layers-three-02.d.ts +1 -1
  660. package/dist/src/nile-icon/icons/svg/layers-three-02.js +1 -1
  661. package/dist/src/nile-icon/icons/svg/layers-three-02.js.map +1 -1
  662. package/dist/src/nile-link/nile-link.d.ts +2 -1
  663. package/dist/src/nile-link/nile-link.js +18 -1
  664. package/dist/src/nile-link/nile-link.js.map +1 -1
  665. package/dist/src/nile-otp-input/index.d.ts +1 -0
  666. package/dist/src/nile-otp-input/index.js +2 -0
  667. package/dist/src/nile-otp-input/index.js.map +1 -0
  668. package/dist/src/nile-otp-input/nile-otp-input.css.d.ts +12 -0
  669. package/dist/src/nile-otp-input/nile-otp-input.css.js +269 -0
  670. package/dist/src/nile-otp-input/nile-otp-input.css.js.map +1 -0
  671. package/dist/src/nile-otp-input/nile-otp-input.d.ts +156 -0
  672. package/dist/src/nile-otp-input/nile-otp-input.enum.d.ts +26 -0
  673. package/dist/src/nile-otp-input/nile-otp-input.enum.js +32 -0
  674. package/dist/src/nile-otp-input/nile-otp-input.enum.js.map +1 -0
  675. package/dist/src/nile-otp-input/nile-otp-input.js +762 -0
  676. package/dist/src/nile-otp-input/nile-otp-input.js.map +1 -0
  677. package/dist/src/nile-otp-input/nile-otp-input.test.d.ts +1 -0
  678. package/dist/src/nile-otp-input/nile-otp-input.test.js +493 -0
  679. package/dist/src/nile-otp-input/nile-otp-input.test.js.map +1 -0
  680. package/dist/src/nile-pagination/nile-pagination.css.js +7 -0
  681. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
  682. package/dist/src/nile-radio/nile-radio.css.js +4 -0
  683. package/dist/src/nile-radio/nile-radio.css.js.map +1 -1
  684. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +8 -6
  685. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
  686. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +2 -0
  687. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +43 -0
  688. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
  689. package/dist/src/nile-rich-text-editor/nile-rte-link.test.js +6 -5
  690. package/dist/src/nile-rich-text-editor/nile-rte-link.test.js.map +1 -1
  691. package/dist/src/nile-select/nile-select.css.js +21 -2
  692. package/dist/src/nile-select/nile-select.css.js.map +1 -1
  693. package/dist/src/nile-select/nile-select.d.ts +4 -0
  694. package/dist/src/nile-select/nile-select.js +42 -24
  695. package/dist/src/nile-select/nile-select.js.map +1 -1
  696. package/dist/src/nile-select/portal-utils.d.ts +2 -0
  697. package/dist/src/nile-select/portal-utils.js +36 -3
  698. package/dist/src/nile-select/portal-utils.js.map +1 -1
  699. package/dist/src/version.js +2 -2
  700. package/dist/src/version.js.map +1 -1
  701. package/dist/tsconfig.tsbuildinfo +1 -1
  702. package/package.json +4 -2
  703. package/plop-templates/lit/index.ts.hbs +1 -1
  704. package/plop-templates/lit/lit.css.ts.hbs +1 -1
  705. package/plop-templates/lit/lit.ts.hbs +1 -1
  706. package/src/index.ts +3 -1
  707. package/src/internal/accessibility/a11y.custom-value.enum.ts +69 -0
  708. package/src/internal/accessibility/a11y.property.enum.ts +33 -0
  709. package/src/internal/accessibility/a11y.role.enum.ts +50 -0
  710. package/src/internal/accessibility/a11y.state.enum.ts +17 -0
  711. package/src/internal/accessibility/accessibility.const.ts +9 -0
  712. package/src/internal/accessibility/role.enum.ts +3 -0
  713. package/src/internal/enum.ts +23 -1
  714. package/src/internal/nile-element.ts +99 -0
  715. package/src/nile-avatar/nile-avatar.ts +2 -0
  716. package/src/nile-badge/nile-badge.ts +13 -1
  717. package/src/nile-checkbox/nile-checkbox.css.ts +4 -0
  718. package/src/nile-checkbox/nile-checkbox.ts +3 -0
  719. package/src/nile-checkbox-group/index.ts +1 -0
  720. package/src/nile-checkbox-group/nile-checkbox-group.css.ts +70 -0
  721. package/src/nile-checkbox-group/nile-checkbox-group.test.ts +769 -0
  722. package/src/nile-checkbox-group/nile-checkbox-group.ts +351 -0
  723. package/src/nile-floating-panel/nile-floating-panel.ts +10 -1
  724. package/src/nile-icon/icons/svg/folder_delete.ts +5 -0
  725. package/src/nile-icon/icons/svg/index.ts +1 -0
  726. package/src/nile-icon/icons/svg/layers-three-02.ts +1 -1
  727. package/src/nile-link/nile-link.ts +21 -2
  728. package/src/nile-otp-input/index.ts +1 -0
  729. package/src/nile-otp-input/nile-otp-input.css.ts +271 -0
  730. package/src/nile-otp-input/nile-otp-input.enum.ts +30 -0
  731. package/src/nile-otp-input/nile-otp-input.test.ts +732 -0
  732. package/src/nile-otp-input/nile-otp-input.ts +835 -0
  733. package/src/nile-pagination/nile-pagination.css.ts +7 -0
  734. package/src/nile-radio/nile-radio.css.ts +4 -0
  735. package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +8 -6
  736. package/src/nile-rich-text-editor/nile-rich-text-editor.ts +43 -0
  737. package/src/nile-rich-text-editor/nile-rte-link.test.ts +6 -5
  738. package/src/nile-select/nile-select.css.ts +21 -2
  739. package/src/nile-select/nile-select.ts +44 -24
  740. package/src/nile-select/portal-utils.ts +46 -3
  741. package/vscode-html-custom-data.json +281 -19
@@ -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';\nimport { hasResizableColumns } from '../internal/resizable-table-helper';\nimport { ifDefined } from 'lit/directives/if-defined.js';\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 @property() bodyStyle: string;\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 style=${ifDefined(this.bodyStyle ? `display: ${this.bodyStyle}` : undefined)}\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","c","constructor","this","type","rows_data","header_rows_data","hasResizableColumns","_this","_inherits","_d","_createClass","key","value","firstUpdated","_changedProperties","emit","comp","getChildren","child","tagname","querySelectorAll","getIndexValue","index__value","indexOf","checkForResizableColumns","handleSlotchange","e","_this2","row_data","_childNodes","forEach","_e$tagName","tagName","toLowerCase","nilerows","length","element","push","innerHTML","nileheaders","header","index","handleSort","_e$detail$value","detail","curr_sort_string","order","header_index","handleSearch","searchText","search__index","target","textContent","render","html","_templateObject","_taggedTemplateLiteral","ifDefined","bodyStyle","undefined","get","styles","NileElement","__decorate","query","prototype","queryAssignedNodes","flatten","property","state","customElement"],"mappings":"+iHAoCaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,mCAQOC,EAAAA,KAAAA,CAAIC,KAA4B,SAG3BD,CAAAA,KAAAA,CAASE,UAAU,EACnBF,CAAAA,KAAAA,CAAgBG,gBAAU,CAAA,EAAA,CAG1BH,KAAAA,CAAmBI,mBAAAA,CAAAA,CAAG,CAqFxC,QAAAC,KAAA,EAnFQC,SAAA,CAAAR,CAAA,CAAAS,EAAA,SAAAC,YAAA,CAAAV,CAAA,GAAAW,GAAA,gBAAAC,KAAA,CAIG,SAAAC,YAAAA,CAAaC,CAAAA,CAAAA,CACrBZ,IAAKa,CAAAA,IAAAA,CAAK,iBAAkB,CAAEH,KAAAA,CAAOV,KAAKC,IAAMa,CAAAA,IAAAA,CAAKd,OAAO,CAAK,CAAA,CAAA,CAAA,CAClE,EAMO,GAAAS,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,MAAOpB,KAAAA,CAAKG,gBAAiBkB,CAAAA,OAAAA,CAAQD,EACtC,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era 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';\nimport { ifDefined } from 'lit/directives/if-defined.js';\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 @property() bodyStyle: string;\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 style=${ifDefined(this.bodyStyle ? `display: ${this.bodyStyle}` : undefined)}\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","_n","c","constructor","this","type","rows_data","header_rows_data","hasResizableColumns","_this","_inherits","_createClass","key","value","firstUpdated","_changedProperties","emit","comp","getChildren","child","tagname","querySelectorAll","getIndexValue","index__value","indexOf","checkForResizableColumns","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","ifDefined","bodyStyle","undefined","get","styles","NileElement","__decorate","query","prototype","queryAssignedNodes","flatten","property","state","customElement"],"mappings":"k2HAoCaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,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F,CAAAA,CAAAA,CAAAA,CAAA,CAAhBM,CAAsCpE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAgE,SAAA,CAAA,WAAA,CAAA,IAAA,EACtBF,CAAAA,CAAAA,CAAAA,CAAA,CAAhBM,CAAAA,CAAAA,CAAAA,CAAAA,CAA6CpE,EAAAgE,SAAA,CAAA,kBAAA,CAAA,IAAA,EAC7BF,CAAAA,CAAAA,CAAAA,CAAA,CAAhBM,CAAoCpE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAgE,SAAA,CAAA,aAAA,CAAA,IAAA,IACpBF,CAAA,CAAA,CAAhBM,CAAsCpE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAgE,SAAA,CAAA,eAAA,CAAA,IAAA,EACtBF,CAAAA,CAAAA,CAAAA,CAAA,CAAhBM,CAA4CpE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAgE,SAAA,CAAA,qBAAA,CAAA,IAAA,gBAflChE,CAAa8D,CAAAA,CAAAA,CAAA,CADzBO,CAAAA,CAAc,oBACFrE"}
@@ -1,13 +1,13 @@
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 d}from"../internal/nile-element.esm.js";import{h}from"../internal/resizable-table-helper.esm.js";import{ifDefined as n}from"lit/directives/if-defined.js";import"../internal/resizable-table-styles.esm.js";let c=class extends d{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=h(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`
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 n}from"../internal/nile-element.esm.js";import{h as d}from"../internal/resizable-table-helper.esm.js";import{ifDefined as h}from"lit/directives/if-defined.js";import"../internal/resizable-table-styles.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let m=class extends n{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=d(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
- style=${n(this.bodyStyle?`display: ${this.bodyStyle}`:void 0)}
8
+ style=${h(this.bodyStyle?`display: ${this.bodyStyle}`:void 0)}
9
9
  ?resizable=${this.hasResizableColumns}
10
10
  @nile-search=${this.handleSearch}
11
11
  ></slot>
12
12
  </div>
13
- `}};e([s("slot")],c.prototype,"defaultSlot",void 0),e([i({flatten:!0})],c.prototype,"_childNodes",void 0),e([l()],c.prototype,"type",void 0),e([l()],c.prototype,"bodyStyle",void 0),e([r()],c.prototype,"rows_data",void 0),e([r()],c.prototype,"header_rows_data",void 0),e([r()],c.prototype,"sort__index",void 0),e([r()],c.prototype,"search__index",void 0),e([r()],c.prototype,"hasResizableColumns",void 0),c=e([a("nile-table-body")],c);export{c as N};
13
+ `}};e([s("slot")],m.prototype,"defaultSlot",void 0),e([i({flatten:!0})],m.prototype,"_childNodes",void 0),e([l()],m.prototype,"type",void 0),e([l()],m.prototype,"bodyStyle",void 0),e([r()],m.prototype,"rows_data",void 0),e([r()],m.prototype,"header_rows_data",void 0),e([r()],m.prototype,"sort__index",void 0),e([r()],m.prototype,"search__index",void 0),e([r()],m.prototype,"hasResizableColumns",void 0),m=e([a("nile-table-body")],m);export{m 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/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(){}};});
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/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.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(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},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/resizable-table-styles.esm.js";import"../internal/nile-element.esm.js";import"../internal/slot.esm.js";import"../internal/resizable-table-helper.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/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.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","../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,n,_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 _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){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;n=_internalResizableTableHelperCjsJs.r;},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:"updated",value:function updated(e){if(_superPropGet(c,"updated",this,3)([e]),e.has("resizable")&&!this.resizable){var _e=this.closest("nile-table-body");_e&&n(_e);}}},{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));}};});
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","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var e,s,t,l,i,r,a,o,n,_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 _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){s=_lit.html;},function(_litDecoratorsJs){t=_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;n=_internalResizableTableHelperCjsJs.r;},function(_internalResizableTableStylesCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],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:"updated",value:function updated(e){if(_superPropGet(c,"updated",this,3)([e]),e.has("resizable")&&!this.resizable){var _e=this.closest("nile-table-body");_e&&n(_e);}}},{key:"render",value:function render(){return this.resizable?s(_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]")?s(_templateObject2||(_templateObject2=_taggedTemplateLiteral([" <div class=\"column\" part=\"nile__table-cell\"><slot></slot></div>"]))):"",this.handleResizeStart):s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n ","\n "])),this.hasSlotController.test("[default]")?s(_templateObject4||(_templateObject4=_taggedTemplateLiteral([" <slot class=\"column\" part=\"nile__table-cell\"> </slot>"]))):"");}}],[{key:"styles",get:function get(){return[i];}}]);}(r));e([t({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 PropertyValues,\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, resetAllColumnWidths } 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 protected updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n \n if (changedProperties.has('resizable')) {\n if (!this.resizable) {\n const tableBody = this.closest('nile-table-body');\n if (tableBody) {\n resetAllColumnWidths(tableBody);\n }\n }\n }\n }\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","_r","c","this","hasSlotController","HasSlotController","resizable","handleResizeStart","createResizeHandler","_this","_inherits","_createClass","key","value","updated","changedProperties","super","has","tableBody","closest","resetAllColumnWidths","render","html","_templateObject","_taggedTemplateLiteral","test","_templateObject2","_templateObject3","_templateObject4","get","styles","NileElement","__decorate","property","type","Boolean","reflect","prototype","customElement"],"mappings":"4iIA2BaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,uEACYC,KAAAA,CAAiBC,iBAAAA,CAAG,GAAIC,CAAAA,CAAAA,CAAAA,sBAAAA,CAAAA,KAAAA,EAAwB,WAUrBF,CAAAA,CAAAA,KAAAA,CAASG,SAAG,CAAA,CAAA,CAAA,CAMhDH,KAAAA,CAAAI,iBAAoBC,CAAAA,CAAAA,CAAAA,sBAAAA,CAAAA,KAAAA,EAA0B,EAAA,CAuCvD,QAAAC,KAAA,EAlDQC,SAAA,CAAAR,CAAA,CAAAD,EAAA,SAAAU,YAAA,CAAAT,CAAA,GAAAU,GAAA,WAAAC,KAAA,CAaG,SAAAC,OAAAA,CAAQC,GAGhB,G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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 { 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, resetAllColumnWidths } 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 protected updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n \n if (changedProperties.has('resizable')) {\n if (!this.resizable) {\n const tableBody = this.closest('nile-table-body');\n if (tableBody) {\n resetAllColumnWidths(tableBody);\n }\n }\n }\n }\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","constructor","this","hasSlotController","HasSlotController","resizable","handleResizeStart","createResizeHandler","_this","_inherits","_r","_createClass","key","value","updated","changedProperties","super","has","tableBody","closest","resetAllColumnWidths","render","html","_templateObject","_taggedTemplateLiteral","test","_templateObject2","_templateObject3","_templateObject4","get","styles","NileElement","__decorate","property","type","Boolean","reflect","prototype","customElement"],"mappings":"+1IA2BaA,4BAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,mCACYC,EAAAA,KAAAA,CAAiBC,iBAAG,CAAA,GAAIC,CAAAA,gCAAwB,WAAA,CAAA,CAUrBF,KAAAA,CAASG,SAAAA,CAAAA,CAAG,EAMhDH,KAAAA,CAAAI,iBAAAA,CAAoBC,CAAoBL,CAAAA,sBAAAA,CAAAA,KAAAA,EAAM,GAuCvD,QAAAM,KAAA,EAlDQC,SAAA,CAAAT,CAAA,CAAAU,EAAA,SAAAC,YAAA,CAAAX,CAAA,GAAAY,GAAA,WAAAC,KAAA,CAaG,SAAAC,OAAAA,CAAQC,GAGhB,GAFAC,aAAAA,CAAAA,CAAAA,oBAAcD,CAAAA,GAEVA,EAAkBE,GAAI,CAAA,WAAA,CAAA,EAAA,CACnBf,IAAKG,CAAAA,SAAAA,CAAW,CACnB,GAAMa,CAAAA,EAAAA,CAAYhB,IAAKiB,CAAAA,OAAAA,CAAQ,mBAC3BD,EACFE,EAAAA,CAAAA,CAAqBF,EAExB,CAAA,EAEJ,CAMM,GAAAN,GAAA,UAAAC,KAAA,UAAAQ,MAAAA,CAAAA,CAAAA,CACL,MAAInB,KAAAA,CAAKG,UACAiB,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,wKAELtB,IAAAA,CAAKC,iBAAkBsB,CAAAA,IAAAA,CAAK,WAC1BH,CAAAA,CAAAA,CAAI,CAAAI,gBAAA,GAAAA,gBAAA,CAAAF,sBAAA,6EACJ,EAAA,CAC8BtB,IAAKI,CAAAA,iBAAAA,EAIpCgB,CAAI,CAAAK,gBAAA,GAAAA,gBAAA,CAAAH,sBAAA,6BACPtB,IAAAA,CAAKC,iBAAkBsB,CAAAA,IAAAA,CAAK,WAC1BH,CAAAA,CAAAA,CAAI,CAAAM,gBAAA,GAAAA,gBAAA,CAAAJ,sBAAA,mEACJ,EAAA,CAGT,EAAA,KAAAZ,GAAA,UAAAiB,GAAA,CA/CM,SAAAA,IAAA,CACL,CAAA,MAAO,CAACC,CACT,CAAA,EAWS,MAnB2BC,CAAAA,GAWOC,EAAA,CAA3CC,CAAAA,CAAS,CAAEC,IAAAA,CAAMC,QAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA0BrC,CAAAsC,CAAAA,SAAAA,CAAA,gBAAA,EAXnDtC,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAiBiC,EAAA,CAD7BM,CAAAA,CAAc,yBACFvC"}
@@ -1,8 +1,8 @@
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,r as n}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]}updated(e){if(super.updated(e),e.has("resizable")&&!this.resizable){const e=this.closest("nile-table-body");e&&n(e)}}render(){return this.resizable?t`
1
+ import{__decorate as e}from"tslib";import{html as s}from"lit";import{property as t,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,r as n}from"../internal/resizable-table-helper.esm.js";import"../internal/resizable-table-styles.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.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]}updated(e){if(super.updated(e),e.has("resizable")&&!this.resizable){const e=this.closest("nile-table-body");e&&n(e)}}render(){return this.resizable?s`
2
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>`:""}
3
+ ${this.hasSlotController.test("[default]")?s` <div class="column" part="nile__table-cell"><slot></slot></div>`:""}
4
4
  <div class="resizer" @mousedown=${this.handleResizeStart}></div>
5
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};
6
+ `:s`
7
+ ${this.hasSlotController.test("[default]")?s` <slot class="column" part="nile__table-cell"> </slot>`:""}
8
+ `}};e([t({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/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(){}};});
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/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.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(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},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/resizable-table-styles.esm.js";import"../internal/nile-element.esm.js";import"../internal/slot.esm.js";import"../internal/resizable-table-helper.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/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.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","../internal/resizable-table-helper.cjs.js","../internal/resizable-table-styles.cjs.js"],function(_export,_context){"use strict";var e,i,t,s,r,n,l,o,a,c,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,h;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;s=_litDecoratorsJs.state;r=_litDecoratorsJs.customElement;},function(_nileTableHeaderItemCssCjsJs){n=_nileTableHeaderItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_internalSlotCjsJs){o=_internalSlotCjsJs.H;},function(_internalResizableTableHelperCjsJs){a=_internalResizableTableHelperCjsJs.c;c=_internalResizableTableHelperCjsJs.r;},function(_internalResizableTableStylesCjsJs){}],execute:function execute(){_export("N",h=/*#__PURE__*/function(_l){function h(){var _this;_classCallCheck(this,h);_this=_callSuper(this,h,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(h,_l);return _createClass(h,[{key:"updated",value:function updated(e){if(_superPropGet(h,"updated",this,3)([e]),e.has("resizable")&&!this.resizable){var _e=this.closest("nile-table-body");_e&&c(_e);}}},{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=\"var(--nile-icon-sort, var(--ng-icon-chevron-selector-vertical))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\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=\"var(--nile-icon-sort-down, var(--ng-icon-arrow-down))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\n class=\"stroke-width\"\n @click=","\n ></nile-icon>"])),this.handleSort):null,this.havesort&&this.sorting_ct%3==2?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-icon\n name=\"var(--nile-icon-sort-up, var(--ng-icon-arrow-up))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\n class=\"stroke-width\"\n @click=","\n ></nile-icon>"])),this.handleSort):null,this.iconName?i(_templateObject5||(_templateObject5=_taggedTemplateLiteral([" <nile-icon name=\"","\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" 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=\"var(--nile-icon-filter, var(--ng-icon-filter-lines))\" size=\"16\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" 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[n];}}]);}(l));e([t({type:Boolean,reflect:!0})],h.prototype,"havesort",void 0),e([t({type:Boolean,reflect:!0})],h.prototype,"havefilter",void 0),e([t({type:String,reflect:!0,attribute:"icon-name"})],h.prototype,"iconName",void 0),e([t({type:Boolean,reflect:!0})],h.prototype,"resizable",void 0),e([s()],h.prototype,"sorting_ct",void 0),_export("N",h=e([r("nile-table-header-item")],h));}};});
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","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var e,i,t,s,r,n,l,o,a,c,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,h;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){e=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;s=_litDecoratorsJs.state;r=_litDecoratorsJs.customElement;},function(_nileTableHeaderItemCssCjsJs){n=_nileTableHeaderItemCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_internalSlotCjsJs){o=_internalSlotCjsJs.H;},function(_internalResizableTableHelperCjsJs){a=_internalResizableTableHelperCjsJs.c;c=_internalResizableTableHelperCjsJs.r;},function(_internalResizableTableStylesCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",h=/*#__PURE__*/function(_l){function h(){var _this;_classCallCheck(this,h);_this=_callSuper(this,h,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(h,_l);return _createClass(h,[{key:"updated",value:function updated(e){if(_superPropGet(h,"updated",this,3)([e]),e.has("resizable")&&!this.resizable){var _e=this.closest("nile-table-body");_e&&c(_e);}}},{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=\"var(--nile-icon-sort, var(--ng-icon-chevron-selector-vertical))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\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=\"var(--nile-icon-sort-down, var(--ng-icon-arrow-down))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\n class=\"stroke-width\"\n @click=","\n ></nile-icon>"])),this.handleSort):null,this.havesort&&this.sorting_ct%3==2?i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-icon\n name=\"var(--nile-icon-sort-up, var(--ng-icon-arrow-up))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\n class=\"stroke-width\"\n @click=","\n ></nile-icon>"])),this.handleSort):null,this.iconName?i(_templateObject5||(_templateObject5=_taggedTemplateLiteral([" <nile-icon name=\"","\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" 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=\"var(--nile-icon-filter, var(--ng-icon-filter-lines))\" size=\"16\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" 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[n];}}]);}(l));e([t({type:Boolean,reflect:!0})],h.prototype,"havesort",void 0),e([t({type:Boolean,reflect:!0})],h.prototype,"havefilter",void 0),e([t({type:String,reflect:!0,attribute:"icon-name"})],h.prototype,"iconName",void 0),e([t({type:Boolean,reflect:!0})],h.prototype,"resizable",void 0),e([s()],h.prototype,"sorting_ct",void 0),_export("N",h=e([r("nile-table-header-item")],h));}};});
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 PropertyValues,\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, resetAllColumnWidths } 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 protected updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n \n if (changedProperties.has('resizable')) {\n if (!this.resizable) {\n const tableBody = this.closest('nile-table-body');\n if (tableBody) {\n resetAllColumnWidths(tableBody);\n }\n }\n }\n }\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=\"var(--nile-icon-sort, var(--ng-icon-chevron-selector-vertical))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\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=\"var(--nile-icon-sort-down, var(--ng-icon-arrow-down))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\n class=\"stroke-width\"\n @click=${this.handleSort}\n ></nile-icon>`\n : null}\n ${this.havesort && this.sorting_ct % 3 === 2\n ? html`<nile-icon\n name=\"var(--nile-icon-sort-up, var(--ng-icon-arrow-up))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\n class=\"stroke-width\"\n @click=${this.handleSort}\n ></nile-icon>`\n : null}\n ${this.iconName\n ? html` <nile-icon name=\"${this.iconName}\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" size=\"16\"></nile-icon>`\n : html``}\n ${this.havefilter\n ? html` <nile-popover title=\"Filter\" placement=\"bottom\">\n <nile-icon name=\"var(--nile-icon-filter, var(--ng-icon-filter-lines))\" size=\"16\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" 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","h","constructor","this","hasSlotController","HasSlotController","havesort","havefilter","iconName","resizable","sorting_ct","handleResizeStart","createResizeHandler","_this","_inherits","_l","_createClass","key","value","updated","changedProperties","super","has","tableBody","closest","resetAllColumnWidths","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":"kqIA2BaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCACYC,KAAAA,CAAiBC,iBAAAA,CAAG,GAAIC,CAAAA,CAAAA,CAAAA,sBAAAA,CAAAA,KAAAA,EAAwB,WAAA,CAAA,CAUrBF,KAAAA,CAAQG,QAAAA,CAAAA,CAAG,CAGXH,CAAAA,KAAAA,CAAUI,UAAG,CAAA,CAAA,CAAA,CAGUJ,KAAAA,CAAQK,QAAAA,CACzE,EAG0CL,CAAAA,KAAAA,CAASM,SAAG,CAAA,CAAA,CAAA,CAE/CN,KAAAA,CAAUO,UAAAA,CAAG,CAoCdP,CAAAA,KAAAA,CAAAQ,iBAAoBC,CAAAA,CAAAA,CAAAA,sBAAAA,CAAAA,KAAAA,EAA0B,EAAA,CAsDvD,QAAAC,KAAA,EA3GQC,SAAA,CAAAb,CAAA,CAAAc,EAAA,SAAAC,YAAA,CAAAf,CAAA,GAAAgB,GAAA,WAAAC,KAAA,CAuBG,SAAAC,OAAAA,CAAQC,CAAAA,CAAAA,CAGhB,GAFAC,aAAAA,CAAAA,CAAAA,oBAAcD,CAAAA,GAEVA,CAAkBE,CAAAA,GAAAA,CAAI,WACnBnB,CAAAA,EAAAA,CAAAA,IAAAA,CAAKM,SAAW,CAAA,CACnB,GAAMc,CAAAA,EAAAA,CAAYpB,IAAKqB,CAAAA,OAAAA,CAAQ,iBAC3BD,CAAAA,CAAAA,EAAAA,EACFE,CAAqBF,CAAAA,EAAAA,CAExB,EAEJ,CAMO,GAAAN,GAAA,cAAAC,KAAA,UAAAQ,UAAAA,CAAWC,CACjBxB,CAAAA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A,CAAMC,OAASC,CAAAA,OAAAA,CAAAA,CAAS,CAA0BtD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAuD,SAAA,CAAA,WAAA,CAAA,IAAA,EAErDL,CAAAA,CAAAA,CAAAA,CAAA,CAARQ,CAAAA,CAAAA,CAAAA,CAAAA,CAAuB1D,CAAAuD,CAAAA,SAAAA,CAAA,YAAA,CAAA,IAAA,EAAA,CAAA,CAAAI,OAAA,KAvBb3D,CAAmBkD,CAAAA,CAAAA,CAAA,CAD/BU,CAAAA,CAAc,2BACF5D"}
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 PropertyValues,\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, resetAllColumnWidths } 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 protected updated(changedProperties: PropertyValues) {\n super.updated(changedProperties);\n \n if (changedProperties.has('resizable')) {\n if (!this.resizable) {\n const tableBody = this.closest('nile-table-body');\n if (tableBody) {\n resetAllColumnWidths(tableBody);\n }\n }\n }\n }\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=\"var(--nile-icon-sort, var(--ng-icon-chevron-selector-vertical))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\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=\"var(--nile-icon-sort-down, var(--ng-icon-arrow-down))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\n class=\"stroke-width\"\n @click=${this.handleSort}\n ></nile-icon>`\n : null}\n ${this.havesort && this.sorting_ct % 3 === 2\n ? html`<nile-icon\n name=\"var(--nile-icon-sort-up, var(--ng-icon-arrow-up))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n size=\"var(--nile-icon-size-16, var(--ng-icon-size-12))\"\n class=\"stroke-width\"\n @click=${this.handleSort}\n ></nile-icon>`\n : null}\n ${this.iconName\n ? html` <nile-icon name=\"${this.iconName}\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" size=\"16\"></nile-icon>`\n : html``}\n ${this.havefilter\n ? html` <nile-popover title=\"Filter\" placement=\"bottom\">\n <nile-icon name=\"var(--nile-icon-filter, var(--ng-icon-filter-lines))\" size=\"16\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\" 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","h","constructor","this","hasSlotController","HasSlotController","havesort","havefilter","iconName","resizable","sorting_ct","handleResizeStart","createResizeHandler","_this","_inherits","_l","_createClass","key","value","updated","changedProperties","super","has","tableBody","closest","resetAllColumnWidths","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":"q9IA2BaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCACYC,KAAAA,CAAiBC,iBAAAA,CAAG,GAAIC,CAAAA,CAAAA,CAAAA,sBAAAA,CAAAA,KAAAA,EAAwB,WAAA,CAAA,CAUrBF,KAAAA,CAAQG,QAAAA,CAAAA,CAAG,CAGXH,CAAAA,KAAAA,CAAUI,UAAG,CAAA,CAAA,CAAA,CAGUJ,KAAAA,CAAQK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AA,CACL,CAAA,MAAO,CAACC,CAAAA,CACT,EAqBS,MA7B6BC,CAAAA,GAWKC,CAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,OAAAA,CAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAyBtD,CAAAuD,CAAAA,SAAAA,CAAA,UAAA,CAAA,IAAA,EAAA,CAAA,CAGjBL,CAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,OAAAA,CAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA2BtD,CAAAuD,CAAAA,SAAAA,CAAA,YAAA,CAAA,IAAA,EAAA,CAAA,CAGIL,CAAA,CAAA,CAAlEC,CAAS,CAAA,CAAEC,KAAMI,MAAQF,CAAAA,OAAAA,CAAAA,CAAS,CAAMG,CAAAA,SAAAA,CAAW,WAC/CzD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAuD,SAAA,CAAA,UAAA,CAAA,IAAA,EAGuCL,CAAAA,CAAAA,CAAAA,CAAA,CAA3CC,CAAAA,CAAS,CAAEC,IAAAA,CAAMC,OAASC,CAAAA,OAAAA,CAAAA,CAAS,CAA0BtD,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAuD,SAAA,CAAA,WAAA,CAAA,IAAA,EAErDL,CAAAA,CAAAA,CAAAA,CAAA,CAARQ,CAAAA,CAAAA,CAAAA,CAAAA,CAAuB1D,CAAAuD,CAAAA,SAAAA,CAAA,YAAA,CAAA,IAAA,EAAA,CAAA,CAAAI,OAAA,KAvBb3D,CAAmBkD,CAAAA,CAAAA,CAAA,CAD/BU,CAAAA,CAAc,2BACF5D"}
@@ -1,4 +1,4 @@
1
- import{__decorate as e}from"tslib";import{html as i}from"lit";import{property as t,state as s,customElement as r}from"lit/decorators.js";import{s as n}from"./nile-table-header-item.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";import{H as o}from"../internal/slot.esm.js";import{c as a,r as c}from"../internal/resizable-table-helper.esm.js";import"../internal/resizable-table-styles.esm.js";let h=class extends l{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[n]}updated(e){if(super.updated(e),e.has("resizable")&&!this.resizable){const e=this.closest("nile-table-body");e&&c(e)}}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`
1
+ import{__decorate as e}from"tslib";import{html as i}from"lit";import{property as t,state as s,customElement as r}from"lit/decorators.js";import{s as n}from"./nile-table-header-item.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";import{H as o}from"../internal/slot.esm.js";import{c as a,r as c}from"../internal/resizable-table-helper.esm.js";import"../internal/resizable-table-styles.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let h=class extends l{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[n]}updated(e){if(super.updated(e),e.has("resizable")&&!this.resizable){const e=this.closest("nile-table-body");e&&c(e)}}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>
@@ -1,2 +1,2 @@
1
- System.register(["./nile-table-row.cjs.js","tslib","lit","lit/decorators.js","./nile-table-row.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileTableRowCjsJs){_export("NileTableRow",_nileTableRowCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileTableRowCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-table-row.cjs.js","tslib","lit","lit/decorators.js","./nile-table-row.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileTableRowCjsJs){_export("NileTableRow",_nileTableRowCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileTableRowCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileTableRow}from"./nile-table-row.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-table-row.css.esm.js";import"../internal/nile-element.esm.js";
1
+ export{N as NileTableRow}from"./nile-table-row.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-table-row.css.esm.js";import"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.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-row.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,e,r,s,l,_templateObject,o;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){r=_litDecoratorsJs.customElement;},function(_nileTableRowCssCjsJs){s=_nileTableRowCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",o=/*#__PURE__*/function(_l){function o(){_classCallCheck(this,o);return _callSuper(this,o,arguments);}_inherits(o,_l);return _createClass(o,[{key:"handleSortingAlter",value:function handleSortingAlter(t){var e=_toConsumableArray(this.querySelectorAll("nile-table-header-item"));for(var _r=0;_r<e.length;_r++){var _s=e[_r];_s.textContent==t.detail.value.curr_sort_string||(_s.sorting_ct=0);}}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <slot\n part=\"nile-row\"\n @nile-click-sort=\"","\"\n ></slot>\n "])),this.handleSortingAlter);}}],[{key:"styles",get:function get(){return[s];}}]);}(l));_export("N",o=t([r("nile-table-row")],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-row.css.cjs.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,e,s,r,i,_templateObject,l;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _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(_nileTableRowCssCjsJs){r=_nileTableRowCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",l=/*#__PURE__*/function(_i){function l(){_classCallCheck(this,l);return _callSuper(this,l,arguments);}_inherits(l,_i);return _createClass(l,[{key:"handleSortingAlter",value:function handleSortingAlter(t){var e=_toConsumableArray(this.querySelectorAll("nile-table-header-item"));for(var _s=0;_s<e.length;_s++){var _r=e[_s];_r.textContent==t.detail.value.curr_sort_string||(_r.sorting_ct=0);}}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <slot\n part=\"nile-row\"\n @nile-click-sort=\"","\"\n ></slot>\n "])),this.handleSortingAlter);}}],[{key:"styles",get:function get(){return[r];}}]);}(i));_export("N",l=t([s("nile-table-row")],l));}};});
2
2
  //# sourceMappingURL=nile-table-row.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-table-row.cjs.js","sources":["../../../src/nile-table-row/nile-table-row.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, query, property } from 'lit/decorators.js';\nimport { styles } from './nile-table-row.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n *nile-table-row component.\n *\n * @tag nile-table-row\n *\n */\n@customElement('nile-table-row')\nexport class NileTableRow extends NileElement {\n /**\n * The styles for TableRow\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\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\n private handleSortingAlter(event: CustomEvent) {\n const header_items: any = [\n ...this.querySelectorAll('nile-table-header-item'),\n ];\n for (let i = 0; i < header_items.length; i++) {\n const header = header_items[i];\n const haveIcon = header.textContent == event.detail.value.curr_sort_string;\n if (!haveIcon) {\n header.sorting_ct = 0;\n }\n }\n }\n\n public render(): TemplateResult {\n return html`\n <slot\n part=\"nile-row\"\n @nile-click-sort=\"${this.handleSortingAlter}\"\n ></slot>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileTableRow;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-row': NileTableRow;\n }\n}\n"],"names":["NileTableRow","_l","o","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","handleSortingAlter","event","header_items","_toConsumableArray","this","querySelectorAll","i","length","header","textContent","detail","curr_sort_string","sorting_ct","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","customElement"],"mappings":"2jIAwBaA,CAAN,uBAAAC,EAAA,WAAAC,EAAA,EAAAC,eAAA,MAAAD,CAAA,SAAAE,UAAA,MAAAF,CAAA,CAAAG,SAAA,GAAAC,SAAA,CAAAJ,CAAA,CAAAD,EAAA,SAAAM,YAAA,CAAAL,CAAA,GAAAM,GAAA,sBAAAC,KAAA,CAmBG,SAAAC,kBAAAA,CAAmBC,CACzB,CAAA,CAAA,GAAMC,CAAAA,CAAoB,CAAAC,kBAAA,CACrBC,IAAKC,CAAAA,gBAAAA,CAAiB,2BAE3B,IAAK,GAAIC,CAAAA,EAAI,CAAA,CAAA,CAAGA,EAAIJ,CAAAA,CAAAA,CAAaK,MAAQD,CAAAA,EAAAA,EAAAA,CAAK,CAC5C,GAAME,CAAAA,EAASN,CAAAA,CAAAA,CAAaI,EACXE,CAAAA,CAAAA,EAAAA,CAAOC,aAAeR,CAAMS,CAAAA,MAAAA,CAAOX,KAAMY,CAAAA,gBAAAA,GAExDH,EAAOI,CAAAA,UAAAA,CAAa,CAEvB,CAAA,EACF,CAEM,GAAAd,GAAA,UAAAC,KAAA,UAAAc,MAAAA,CAAAA,CACL,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,wGAGaZ,IAAKJ,CAAAA,kBAAAA,EAG9B,CAAA,KAAAF,GAAA,UAAAmB,GAAA,CAjCM,SAAAA,IAAA,CAAWC,CAChB,MAAO,CAACA,CACT,CAAA,EAWO,MAnBwBC,IAArB7B,OAAAA,KAAAA,CAAY8B,CAAAA,CAAAA,CAAA,CADxBC,CAAAA,CAAc,mBACF/B"}
1
+ {"version":3,"file":"nile-table-row.cjs.js","sources":["../../../src/nile-table-row/nile-table-row.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, query, property } from 'lit/decorators.js';\nimport { styles } from './nile-table-row.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n *nile-table-row component.\n *\n * @tag nile-table-row\n *\n */\n@customElement('nile-table-row')\nexport class NileTableRow extends NileElement {\n /**\n * The styles for TableRow\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\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\n private handleSortingAlter(event: CustomEvent) {\n const header_items: any = [\n ...this.querySelectorAll('nile-table-header-item'),\n ];\n for (let i = 0; i < header_items.length; i++) {\n const header = header_items[i];\n const haveIcon = header.textContent == event.detail.value.curr_sort_string;\n if (!haveIcon) {\n header.sorting_ct = 0;\n }\n }\n }\n\n public render(): TemplateResult {\n return html`\n <slot\n part=\"nile-row\"\n @nile-click-sort=\"${this.handleSortingAlter}\"\n ></slot>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileTableRow;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-table-row': NileTableRow;\n }\n}\n"],"names":["NileTableRow","_i","l","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","handleSortingAlter","event","header_items","this","querySelectorAll","i","length","header","textContent","detail","curr_sort_string","sorting_ct","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","customElement"],"mappings":"82IAwBaA,CAAN,uBAAAC,EAAA,WAAAC,EAAA,EAAAC,eAAA,MAAAD,CAAA,SAAAE,UAAA,MAAAF,CAAA,CAAAG,SAAA,GAAAC,SAAA,CAAAJ,CAAA,CAAAD,EAAA,SAAAM,YAAA,CAAAL,CAAA,GAAAM,GAAA,sBAAAC,KAAA,CAmBG,SAAAC,kBAAAA,CAAmBC,CAAAA,CAAAA,CACzB,GAAMC,CAAAA,CAAAA,CAAAA,kBAAAA,CACDC,IAAAA,CAAKC,iBAAiB,wBAE3B,CAAA,CAAA,CAAA,IAAK,GAAIC,CAAAA,EAAAA,CAAI,CAAGA,CAAAA,EAAAA,CAAIH,CAAaI,CAAAA,MAAAA,CAAQD,EAAK,EAAA,CAAA,CAC5C,GAAME,CAAAA,EAAAA,CAASL,CAAaG,CAAAA,EAAAA,CAAAA,CACXE,EAAOC,CAAAA,WAAAA,EAAeP,CAAMQ,CAAAA,MAAAA,CAAOV,KAAMW,CAAAA,gBAAAA,GAExDH,EAAOI,CAAAA,UAAAA,CAAa,CAEvB,CAAA,EACF,CAEM,GAAAb,GAAA,UAAAC,KAAA,UAAAa,MAAAA,CAAAA,CACL,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,wGAGaZ,IAAKH,CAAAA,kBAAAA,EAG9B,CAAA,KAAAF,GAAA,UAAAkB,GAAA,CAjCM,SAAAA,IAAA,CACL,CAAA,MAAO,CAACC,CAAAA,CACT,EAWO,MAnBwBC,CAMzB,GANI5B,OAAAA,KAAAA,CAAY6B,CAAAA,CAAAA,CAAA,CADxBC,CAAAA,CAAc,mBACF9B"}
@@ -1,6 +1,6 @@
1
- import{__decorate as t}from"tslib";import{html as e}from"lit";import{customElement as r}from"lit/decorators.js";import{s}from"./nile-table-row.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";let o=class extends l{static get styles(){return[s]}handleSortingAlter(t){const e=[...this.querySelectorAll("nile-table-header-item")];for(let r=0;r<e.length;r++){const s=e[r];s.textContent==t.detail.value.curr_sort_string||(s.sorting_ct=0)}}render(){return e`
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{customElement as s}from"lit/decorators.js";import{s as r}from"./nile-table-row.css.esm.js";import{N as i}from"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let l=class extends i{static get styles(){return[r]}handleSortingAlter(e){const t=[...this.querySelectorAll("nile-table-header-item")];for(let s=0;s<t.length;s++){const r=t[s];r.textContent==e.detail.value.curr_sort_string||(r.sorting_ct=0)}}render(){return t`
2
2
  <slot
3
3
  part="nile-row"
4
4
  @nile-click-sort="${this.handleSortingAlter}"
5
5
  ></slot>
6
- `}};o=t([r("nile-table-row")],o);export{o as N};
6
+ `}};l=e([s("nile-table-row")],l);export{l as N};