@aquera/nile-elements 0.1.72-beta-1.0 → 0.1.72

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 (504) hide show
  1. package/README.md +6 -0
  2. package/demo/index.html +9 -227
  3. package/dist/{fixture-28d63bc4.cjs.js → fixture-3bfb4490.cjs.js} +2 -2
  4. package/dist/{fixture-28d63bc4.cjs.js.map → fixture-3bfb4490.cjs.js.map} +1 -1
  5. package/dist/{fixture-78a015b8.esm.js → fixture-8edec91c.esm.js} +1 -1
  6. package/dist/index.js +96 -206
  7. package/dist/internal/resizable-table-styles.cjs.js +1 -1
  8. package/dist/internal/resizable-table-styles.cjs.js.map +1 -1
  9. package/dist/internal/resizable-table-styles.esm.js +25 -66
  10. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  11. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  12. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  13. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  14. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  15. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  16. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  17. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  18. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  19. package/dist/nile-button/nile-button.test.esm.js +1 -1
  20. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  21. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  22. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  23. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  24. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  25. package/dist/nile-card/nile-card.test.esm.js +1 -1
  26. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  27. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  28. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  29. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  30. package/dist/nile-code-editor/extensionSetup.cjs.js +2 -2
  31. package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
  32. package/dist/nile-code-editor/nile-code-editor.cjs.js +1 -1
  33. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  34. package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
  35. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  36. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  37. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  38. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  39. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  40. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  41. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  42. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  43. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  44. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  45. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  46. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  47. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  48. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  49. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  50. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  51. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  52. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  53. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  54. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  55. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  56. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  57. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  58. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  59. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  60. package/dist/nile-input/nile-input.test.esm.js +1 -1
  61. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  62. package/dist/nile-link/nile-link.test.esm.js +1 -1
  63. package/dist/nile-loader/nile-loader.cjs.js +1 -1
  64. package/dist/nile-loader/nile-loader.cjs.js.map +1 -1
  65. package/dist/nile-loader/nile-loader.esm.js +5 -5
  66. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  67. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  68. package/dist/nile-option/nile-option.cjs.js +1 -1
  69. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  70. package/dist/nile-option/nile-option.esm.js +2 -2
  71. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  72. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  73. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  74. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  75. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  76. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  77. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  78. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  79. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  80. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  81. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  82. package/dist/nile-select/nile-select.test.esm.js +1 -1
  83. package/dist/nile-select/virtual-scroll-helper.cjs.js +1 -1
  84. package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -1
  85. package/dist/nile-select/virtual-scroll-helper.esm.js +20 -0
  86. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  87. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  88. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  89. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  90. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  91. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  92. package/dist/nile-table-body/nile-table-body.css.cjs.js +1 -1
  93. package/dist/nile-table-body/nile-table-body.css.cjs.js.map +1 -1
  94. package/dist/nile-table-body/nile-table-body.css.esm.js +1 -1
  95. package/dist/nile-table-body/nile-table-body.esm.js +2 -2
  96. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
  97. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
  98. package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js +1 -1
  99. package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js.map +1 -1
  100. package/dist/nile-table-cell-item/nile-table-cell-item.css.esm.js +5 -10
  101. package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +5 -11
  102. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js +1 -1
  103. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js.map +1 -1
  104. package/dist/nile-table-header-item/nile-table-header-item.css.esm.js +1 -1
  105. package/dist/nile-table-row/nile-table-row.cjs.js +1 -1
  106. package/dist/nile-table-row/nile-table-row.cjs.js.map +1 -1
  107. package/dist/nile-table-row/nile-table-row.css.cjs.js +1 -1
  108. package/dist/nile-table-row/nile-table-row.css.cjs.js.map +1 -1
  109. package/dist/nile-table-row/nile-table-row.css.esm.js +0 -52
  110. package/dist/nile-table-row/nile-table-row.esm.js +6 -33
  111. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  112. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  113. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +1 -1
  114. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
  115. package/dist/nile-virtual-select/nile-virtual-select.esm.js +2 -2
  116. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  117. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  118. package/dist/nile-virtual-select/renderer.cjs.js +1 -1
  119. package/dist/nile-virtual-select/renderer.cjs.js.map +1 -1
  120. package/dist/nile-virtual-select/renderer.esm.js +11 -10
  121. package/dist/src/internal/resizable-table-styles.d.ts +2 -4
  122. package/dist/src/internal/resizable-table-styles.js +26 -69
  123. package/dist/src/internal/resizable-table-styles.js.map +1 -1
  124. package/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -0
  125. package/dist/src/nile-code-editor/nile-code-editor.js +5 -0
  126. package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
  127. package/dist/src/nile-loader/nile-loader.js +3 -3
  128. package/dist/src/nile-loader/nile-loader.js.map +1 -1
  129. package/dist/src/nile-option/nile-option.js +6 -6
  130. package/dist/src/nile-option/nile-option.js.map +1 -1
  131. package/dist/src/nile-select/virtual-scroll-helper.js +20 -0
  132. package/dist/src/nile-select/virtual-scroll-helper.js.map +1 -1
  133. package/dist/src/nile-table-body/nile-table-body.css.js +2 -2
  134. package/dist/src/nile-table-body/nile-table-body.css.js.map +1 -1
  135. package/dist/src/nile-table-body/nile-table-body.d.ts +0 -3
  136. package/dist/src/nile-table-body/nile-table-body.js +0 -32
  137. package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
  138. package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js +4 -9
  139. package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js.map +1 -1
  140. package/dist/src/nile-table-cell-item/nile-table-cell-item.d.ts +0 -1
  141. package/dist/src/nile-table-cell-item/nile-table-cell-item.js +2 -14
  142. package/dist/src/nile-table-cell-item/nile-table-cell-item.js.map +1 -1
  143. package/dist/src/nile-table-header-item/nile-table-header-item.css.js +2 -2
  144. package/dist/src/nile-table-header-item/nile-table-header-item.css.js.map +1 -1
  145. package/dist/src/nile-table-row/nile-table-row.css.js +0 -52
  146. package/dist/src/nile-table-row/nile-table-row.css.js.map +1 -1
  147. package/dist/src/nile-table-row/nile-table-row.d.ts +1 -12
  148. package/dist/src/nile-table-row/nile-table-row.js +9 -113
  149. package/dist/src/nile-table-row/nile-table-row.js.map +1 -1
  150. package/dist/src/nile-virtual-select/nile-virtual-select.js +2 -2
  151. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
  152. package/dist/src/nile-virtual-select/renderer.js +3 -2
  153. package/dist/src/nile-virtual-select/renderer.js.map +1 -1
  154. package/dist/tsconfig.tsbuildinfo +1 -1
  155. package/package.json +1 -1
  156. package/src/internal/resizable-table-styles.ts +26 -71
  157. package/src/nile-code-editor/nile-code-editor.ts +6 -0
  158. package/src/nile-loader/nile-loader.ts +3 -3
  159. package/src/nile-option/nile-option.ts +6 -7
  160. package/src/nile-select/virtual-scroll-helper.ts +20 -0
  161. package/src/nile-table-body/nile-table-body.css.ts +2 -2
  162. package/src/nile-table-body/nile-table-body.ts +1 -27
  163. package/src/nile-table-cell-item/nile-table-cell-item.css.ts +4 -9
  164. package/src/nile-table-cell-item/nile-table-cell-item.ts +2 -15
  165. package/src/nile-table-header-item/nile-table-header-item.css.ts +2 -2
  166. package/src/nile-table-row/nile-table-row.css.ts +0 -52
  167. package/src/nile-table-row/nile-table-row.ts +5 -108
  168. package/src/nile-virtual-select/nile-virtual-select.ts +2 -2
  169. package/src/nile-virtual-select/renderer.ts +3 -2
  170. package/vscode-html-custom-data.json +4 -43
  171. package/dist/aquera-nile-elements-0.1.57-beta-2.0.tgz +0 -0
  172. package/dist/axe.min-2b379f29.cjs.js +0 -12
  173. package/dist/axe.min-2b379f29.cjs.js.map +0 -1
  174. package/dist/axe.min-c2cd8733.esm.js +0 -12
  175. package/dist/fixture-324a7ef9.cjs.js +0 -395
  176. package/dist/fixture-324a7ef9.cjs.js.map +0 -1
  177. package/dist/fixture-add72f26.esm.js +0 -569
  178. package/dist/fixture-ba65eb22.esm.js +0 -569
  179. package/dist/fixture-c1bd203f.cjs.js +0 -395
  180. package/dist/fixture-c1bd203f.cjs.js.map +0 -1
  181. package/dist/fixture-cb376a7f.cjs.js +0 -395
  182. package/dist/fixture-cb376a7f.cjs.js.map +0 -1
  183. package/dist/fixture-f2693d97.esm.js +0 -569
  184. package/dist/src/internal/expandable-row-helper.d.ts +0 -13
  185. package/dist/src/internal/expandable-row-helper.js +0 -37
  186. package/dist/src/internal/expandable-row-helper.js.map +0 -1
  187. package/dist/src/internal/expandable-row-styles.d.ts +0 -11
  188. package/dist/src/internal/expandable-row-styles.js +0 -27
  189. package/dist/src/internal/expandable-row-styles.js.map +0 -1
  190. package/dist/src/internal/table-expandable-helper.d.ts +0 -0
  191. package/dist/src/internal/table-expandable-helper.js +0 -2
  192. package/dist/src/internal/table-expandable-helper.js.map +0 -1
  193. package/dist/src/internal/table-row-expandable-helper.d.ts +0 -12
  194. package/dist/src/internal/table-row-expandable-helper.js +0 -32
  195. package/dist/src/internal/table-row-expandable-helper.js.map +0 -1
  196. package/dist/src/internal/table-row-expandable-styles.d.ts +0 -11
  197. package/dist/src/internal/table-row-expandable-styles.js +0 -12
  198. package/dist/src/internal/table-row-expandable-styles.js.map +0 -1
  199. package/dist/src/nile-group-header/index.d.ts +0 -1
  200. package/dist/src/nile-group-header/index.js +0 -2
  201. package/dist/src/nile-group-header/index.js.map +0 -1
  202. package/dist/src/nile-group-header/nile-group-header.css.d.ts +0 -12
  203. package/dist/src/nile-group-header/nile-group-header.css.js +0 -30
  204. package/dist/src/nile-group-header/nile-group-header.css.js.map +0 -1
  205. package/dist/src/nile-group-header/nile-group-header.d.ts +0 -19
  206. package/dist/src/nile-group-header/nile-group-header.js +0 -36
  207. package/dist/src/nile-group-header/nile-group-header.js.map +0 -1
  208. package/dist/src/nile-group-header/nile-option-header.css.d.ts +0 -12
  209. package/dist/src/nile-group-header/nile-option-header.css.js +0 -30
  210. package/dist/src/nile-group-header/nile-option-header.css.js.map +0 -1
  211. package/dist/src/nile-group-header/nile-option-header.d.ts +0 -33
  212. package/dist/src/nile-group-header/nile-option-header.js +0 -51
  213. package/dist/src/nile-group-header/nile-option-header.js.map +0 -1
  214. package/dist/src/nile-icon/icons/svg/ng-action.d.ts +0 -5
  215. package/dist/src/nile-icon/icons/svg/ng-action.js +0 -5
  216. package/dist/src/nile-icon/icons/svg/ng-action.js.map +0 -1
  217. package/dist/src/nile-icon/icons/svg/ng-activity.d.ts +0 -5
  218. package/dist/src/nile-icon/icons/svg/ng-activity.js +0 -5
  219. package/dist/src/nile-icon/icons/svg/ng-activity.js.map +0 -1
  220. package/dist/src/nile-icon/icons/svg/ng-alert-circle.d.ts +0 -5
  221. package/dist/src/nile-icon/icons/svg/ng-alert-circle.js +0 -5
  222. package/dist/src/nile-icon/icons/svg/ng-alert-circle.js.map +0 -1
  223. package/dist/src/nile-icon/icons/svg/ng-align-center.d.ts +0 -5
  224. package/dist/src/nile-icon/icons/svg/ng-align-center.js +0 -5
  225. package/dist/src/nile-icon/icons/svg/ng-align-center.js.map +0 -1
  226. package/dist/src/nile-icon/icons/svg/ng-annotation-x.d.ts +0 -5
  227. package/dist/src/nile-icon/icons/svg/ng-annotation-x.js +0 -5
  228. package/dist/src/nile-icon/icons/svg/ng-annotation-x.js.map +0 -1
  229. package/dist/src/nile-icon/icons/svg/ng-arrow-down.d.ts +0 -5
  230. package/dist/src/nile-icon/icons/svg/ng-arrow-down.js +0 -5
  231. package/dist/src/nile-icon/icons/svg/ng-arrow-down.js.map +0 -1
  232. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.d.ts +0 -5
  233. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.js +0 -5
  234. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.js.map +0 -1
  235. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.d.ts +0 -5
  236. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.js +0 -5
  237. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.js.map +0 -1
  238. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.d.ts +0 -5
  239. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.js +0 -5
  240. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-right.js.map +0 -1
  241. package/dist/src/nile-icon/icons/svg/ng-arrow-up.d.ts +0 -5
  242. package/dist/src/nile-icon/icons/svg/ng-arrow-up.js +0 -5
  243. package/dist/src/nile-icon/icons/svg/ng-arrow-up.js.map +0 -1
  244. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.d.ts +0 -5
  245. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.js +0 -5
  246. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.js.map +0 -1
  247. package/dist/src/nile-icon/icons/svg/ng-bell-01.d.ts +0 -5
  248. package/dist/src/nile-icon/icons/svg/ng-bell-01.js +0 -5
  249. package/dist/src/nile-icon/icons/svg/ng-bell-01.js.map +0 -1
  250. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.d.ts +0 -5
  251. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.js +0 -5
  252. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.js.map +0 -1
  253. package/dist/src/nile-icon/icons/svg/ng-bold-01.d.ts +0 -5
  254. package/dist/src/nile-icon/icons/svg/ng-bold-01.js +0 -5
  255. package/dist/src/nile-icon/icons/svg/ng-bold-01.js.map +0 -1
  256. package/dist/src/nile-icon/icons/svg/ng-building-01.d.ts +0 -5
  257. package/dist/src/nile-icon/icons/svg/ng-building-01.js +0 -5
  258. package/dist/src/nile-icon/icons/svg/ng-building-01.js.map +0 -1
  259. package/dist/src/nile-icon/icons/svg/ng-building-05.d.ts +0 -5
  260. package/dist/src/nile-icon/icons/svg/ng-building-05.js +0 -5
  261. package/dist/src/nile-icon/icons/svg/ng-building-05.js.map +0 -1
  262. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.d.ts +0 -5
  263. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.js +0 -5
  264. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue-animated.js.map +0 -1
  265. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.d.ts +0 -5
  266. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.js +0 -5
  267. package/dist/src/nile-icon/icons/svg/ng-button-loading-blue.js.map +0 -1
  268. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.d.ts +0 -5
  269. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.js +0 -5
  270. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.js.map +0 -1
  271. package/dist/src/nile-icon/icons/svg/ng-calendar.d.ts +0 -5
  272. package/dist/src/nile-icon/icons/svg/ng-calendar.js +0 -5
  273. package/dist/src/nile-icon/icons/svg/ng-calendar.js.map +0 -1
  274. package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.d.ts +0 -5
  275. package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.js +0 -5
  276. package/dist/src/nile-icon/icons/svg/ng-check-circle-broken.js.map +0 -1
  277. package/dist/src/nile-icon/icons/svg/ng-check-circle.d.ts +0 -5
  278. package/dist/src/nile-icon/icons/svg/ng-check-circle.js +0 -5
  279. package/dist/src/nile-icon/icons/svg/ng-check-circle.js.map +0 -1
  280. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.d.ts +0 -5
  281. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.js +0 -5
  282. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.js.map +0 -1
  283. package/dist/src/nile-icon/icons/svg/ng-check.d.ts +0 -5
  284. package/dist/src/nile-icon/icons/svg/ng-check.js +0 -5
  285. package/dist/src/nile-icon/icons/svg/ng-check.js.map +0 -1
  286. package/dist/src/nile-icon/icons/svg/ng-chevron-down.d.ts +0 -5
  287. package/dist/src/nile-icon/icons/svg/ng-chevron-down.js +0 -5
  288. package/dist/src/nile-icon/icons/svg/ng-chevron-down.js.map +0 -1
  289. package/dist/src/nile-icon/icons/svg/ng-chevron-left.d.ts +0 -5
  290. package/dist/src/nile-icon/icons/svg/ng-chevron-left.js +0 -5
  291. package/dist/src/nile-icon/icons/svg/ng-chevron-left.js.map +0 -1
  292. package/dist/src/nile-icon/icons/svg/ng-chevron-right.d.ts +0 -5
  293. package/dist/src/nile-icon/icons/svg/ng-chevron-right.js +0 -5
  294. package/dist/src/nile-icon/icons/svg/ng-chevron-right.js.map +0 -1
  295. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.d.ts +0 -5
  296. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.js +0 -5
  297. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.js.map +0 -1
  298. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.d.ts +0 -5
  299. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.js +0 -5
  300. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.js.map +0 -1
  301. package/dist/src/nile-icon/icons/svg/ng-chevron-up.d.ts +0 -5
  302. package/dist/src/nile-icon/icons/svg/ng-chevron-up.js +0 -5
  303. package/dist/src/nile-icon/icons/svg/ng-chevron-up.js.map +0 -1
  304. package/dist/src/nile-icon/icons/svg/ng-copy-03.d.ts +0 -5
  305. package/dist/src/nile-icon/icons/svg/ng-copy-03.js +0 -5
  306. package/dist/src/nile-icon/icons/svg/ng-copy-03.js.map +0 -1
  307. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.d.ts +0 -5
  308. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.js +0 -5
  309. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.js.map +0 -1
  310. package/dist/src/nile-icon/icons/svg/ng-dots-grid.d.ts +0 -5
  311. package/dist/src/nile-icon/icons/svg/ng-dots-grid.js +0 -5
  312. package/dist/src/nile-icon/icons/svg/ng-dots-grid.js.map +0 -1
  313. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.d.ts +0 -5
  314. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.js +0 -5
  315. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.js.map +0 -1
  316. package/dist/src/nile-icon/icons/svg/ng-download-01.d.ts +0 -5
  317. package/dist/src/nile-icon/icons/svg/ng-download-01.js +0 -5
  318. package/dist/src/nile-icon/icons/svg/ng-download-01.js.map +0 -1
  319. package/dist/src/nile-icon/icons/svg/ng-dropdown.d.ts +0 -5
  320. package/dist/src/nile-icon/icons/svg/ng-dropdown.js +0 -5
  321. package/dist/src/nile-icon/icons/svg/ng-dropdown.js.map +0 -1
  322. package/dist/src/nile-icon/icons/svg/ng-edit-02.d.ts +0 -5
  323. package/dist/src/nile-icon/icons/svg/ng-edit-02.js +0 -5
  324. package/dist/src/nile-icon/icons/svg/ng-edit-02.js.map +0 -1
  325. package/dist/src/nile-icon/icons/svg/ng-edit-05.d.ts +0 -5
  326. package/dist/src/nile-icon/icons/svg/ng-edit-05.js +0 -5
  327. package/dist/src/nile-icon/icons/svg/ng-edit-05.js.map +0 -1
  328. package/dist/src/nile-icon/icons/svg/ng-expand-06.d.ts +0 -5
  329. package/dist/src/nile-icon/icons/svg/ng-expand-06.js +0 -5
  330. package/dist/src/nile-icon/icons/svg/ng-expand-06.js.map +0 -1
  331. package/dist/src/nile-icon/icons/svg/ng-eye-off.d.ts +0 -5
  332. package/dist/src/nile-icon/icons/svg/ng-eye-off.js +0 -5
  333. package/dist/src/nile-icon/icons/svg/ng-eye-off.js.map +0 -1
  334. package/dist/src/nile-icon/icons/svg/ng-eye.d.ts +0 -5
  335. package/dist/src/nile-icon/icons/svg/ng-eye.js +0 -5
  336. package/dist/src/nile-icon/icons/svg/ng-eye.js.map +0 -1
  337. package/dist/src/nile-icon/icons/svg/ng-file-02.d.ts +0 -5
  338. package/dist/src/nile-icon/icons/svg/ng-file-02.js +0 -5
  339. package/dist/src/nile-icon/icons/svg/ng-file-02.js.map +0 -1
  340. package/dist/src/nile-icon/icons/svg/ng-file-06.d.ts +0 -5
  341. package/dist/src/nile-icon/icons/svg/ng-file-06.js +0 -5
  342. package/dist/src/nile-icon/icons/svg/ng-file-06.js.map +0 -1
  343. package/dist/src/nile-icon/icons/svg/ng-file-check-02.d.ts +0 -5
  344. package/dist/src/nile-icon/icons/svg/ng-file-check-02.js +0 -5
  345. package/dist/src/nile-icon/icons/svg/ng-file-check-02.js.map +0 -1
  346. package/dist/src/nile-icon/icons/svg/ng-file-question-03.d.ts +0 -5
  347. package/dist/src/nile-icon/icons/svg/ng-file-question-03.js +0 -5
  348. package/dist/src/nile-icon/icons/svg/ng-file-question-03.js.map +0 -1
  349. package/dist/src/nile-icon/icons/svg/ng-filter-lines.d.ts +0 -5
  350. package/dist/src/nile-icon/icons/svg/ng-filter-lines.js +0 -5
  351. package/dist/src/nile-icon/icons/svg/ng-filter-lines.js.map +0 -1
  352. package/dist/src/nile-icon/icons/svg/ng-grid-01.d.ts +0 -5
  353. package/dist/src/nile-icon/icons/svg/ng-grid-01.js +0 -5
  354. package/dist/src/nile-icon/icons/svg/ng-grid-01.js.map +0 -1
  355. package/dist/src/nile-icon/icons/svg/ng-help-circle.d.ts +0 -5
  356. package/dist/src/nile-icon/icons/svg/ng-help-circle.js +0 -5
  357. package/dist/src/nile-icon/icons/svg/ng-help-circle.js.map +0 -1
  358. package/dist/src/nile-icon/icons/svg/ng-image-03.d.ts +0 -5
  359. package/dist/src/nile-icon/icons/svg/ng-image-03.js +0 -5
  360. package/dist/src/nile-icon/icons/svg/ng-image-03.js.map +0 -1
  361. package/dist/src/nile-icon/icons/svg/ng-image-user-left.d.ts +0 -5
  362. package/dist/src/nile-icon/icons/svg/ng-image-user-left.js +0 -5
  363. package/dist/src/nile-icon/icons/svg/ng-image-user-left.js.map +0 -1
  364. package/dist/src/nile-icon/icons/svg/ng-info-circle.d.ts +0 -5
  365. package/dist/src/nile-icon/icons/svg/ng-info-circle.js +0 -5
  366. package/dist/src/nile-icon/icons/svg/ng-info-circle.js.map +0 -1
  367. package/dist/src/nile-icon/icons/svg/ng-italic-01.d.ts +0 -5
  368. package/dist/src/nile-icon/icons/svg/ng-italic-01.js +0 -5
  369. package/dist/src/nile-icon/icons/svg/ng-italic-01.js.map +0 -1
  370. package/dist/src/nile-icon/icons/svg/ng-layers-three-01.d.ts +0 -5
  371. package/dist/src/nile-icon/icons/svg/ng-layers-three-01.js +0 -5
  372. package/dist/src/nile-icon/icons/svg/ng-layers-three-01.js.map +0 -1
  373. package/dist/src/nile-icon/icons/svg/ng-list.d.ts +0 -5
  374. package/dist/src/nile-icon/icons/svg/ng-list.js +0 -5
  375. package/dist/src/nile-icon/icons/svg/ng-list.js.map +0 -1
  376. package/dist/src/nile-icon/icons/svg/ng-log-out-01.d.ts +0 -5
  377. package/dist/src/nile-icon/icons/svg/ng-log-out-01.js +0 -5
  378. package/dist/src/nile-icon/icons/svg/ng-log-out-01.js.map +0 -1
  379. package/dist/src/nile-icon/icons/svg/ng-mail-01.d.ts +0 -5
  380. package/dist/src/nile-icon/icons/svg/ng-mail-01.js +0 -5
  381. package/dist/src/nile-icon/icons/svg/ng-mail-01.js.map +0 -1
  382. package/dist/src/nile-icon/icons/svg/ng-mail-04.d.ts +0 -5
  383. package/dist/src/nile-icon/icons/svg/ng-mail-04.js +0 -5
  384. package/dist/src/nile-icon/icons/svg/ng-mail-04.js.map +0 -1
  385. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.d.ts +0 -5
  386. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.js +0 -5
  387. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.js.map +0 -1
  388. package/dist/src/nile-icon/icons/svg/ng-menu-05.d.ts +0 -5
  389. package/dist/src/nile-icon/icons/svg/ng-menu-05.js +0 -5
  390. package/dist/src/nile-icon/icons/svg/ng-menu-05.js.map +0 -1
  391. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.d.ts +0 -5
  392. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js +0 -5
  393. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js.map +0 -1
  394. package/dist/src/nile-icon/icons/svg/ng-minimize-02.d.ts +0 -5
  395. package/dist/src/nile-icon/icons/svg/ng-minimize-02.js +0 -5
  396. package/dist/src/nile-icon/icons/svg/ng-minimize-02.js.map +0 -1
  397. package/dist/src/nile-icon/icons/svg/ng-minus.d.ts +0 -5
  398. package/dist/src/nile-icon/icons/svg/ng-minus.js +0 -5
  399. package/dist/src/nile-icon/icons/svg/ng-minus.js.map +0 -1
  400. package/dist/src/nile-icon/icons/svg/ng-plus.d.ts +0 -5
  401. package/dist/src/nile-icon/icons/svg/ng-plus.js +0 -5
  402. package/dist/src/nile-icon/icons/svg/ng-plus.js.map +0 -1
  403. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.d.ts +0 -5
  404. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.js +0 -5
  405. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.js.map +0 -1
  406. package/dist/src/nile-icon/icons/svg/ng-rocket-02.d.ts +0 -5
  407. package/dist/src/nile-icon/icons/svg/ng-rocket-02.js +0 -5
  408. package/dist/src/nile-icon/icons/svg/ng-rocket-02.js.map +0 -1
  409. package/dist/src/nile-icon/icons/svg/ng-search-lg.d.ts +0 -5
  410. package/dist/src/nile-icon/icons/svg/ng-search-lg.js +0 -5
  411. package/dist/src/nile-icon/icons/svg/ng-search-lg.js.map +0 -1
  412. package/dist/src/nile-icon/icons/svg/ng-send-01.d.ts +0 -5
  413. package/dist/src/nile-icon/icons/svg/ng-send-01.js +0 -5
  414. package/dist/src/nile-icon/icons/svg/ng-send-01.js.map +0 -1
  415. package/dist/src/nile-icon/icons/svg/ng-settings-01.d.ts +0 -5
  416. package/dist/src/nile-icon/icons/svg/ng-settings-01.js +0 -5
  417. package/dist/src/nile-icon/icons/svg/ng-settings-01.js.map +0 -1
  418. package/dist/src/nile-icon/icons/svg/ng-share-04.d.ts +0 -5
  419. package/dist/src/nile-icon/icons/svg/ng-share-04.js +0 -5
  420. package/dist/src/nile-icon/icons/svg/ng-share-04.js.map +0 -1
  421. package/dist/src/nile-icon/icons/svg/ng-share-06.d.ts +0 -5
  422. package/dist/src/nile-icon/icons/svg/ng-share-06.js +0 -5
  423. package/dist/src/nile-icon/icons/svg/ng-share-06.js.map +0 -1
  424. package/dist/src/nile-icon/icons/svg/ng-stars-02.d.ts +0 -5
  425. package/dist/src/nile-icon/icons/svg/ng-stars-02.js +0 -5
  426. package/dist/src/nile-icon/icons/svg/ng-stars-02.js.map +0 -1
  427. package/dist/src/nile-icon/icons/svg/ng-trash-01.d.ts +0 -5
  428. package/dist/src/nile-icon/icons/svg/ng-trash-01.js +0 -5
  429. package/dist/src/nile-icon/icons/svg/ng-trash-01.js.map +0 -1
  430. package/dist/src/nile-icon/icons/svg/ng-trash-03.d.ts +0 -5
  431. package/dist/src/nile-icon/icons/svg/ng-trash-03.js +0 -5
  432. package/dist/src/nile-icon/icons/svg/ng-trash-03.js.map +0 -1
  433. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.d.ts +0 -5
  434. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.js +0 -5
  435. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.js.map +0 -1
  436. package/dist/src/nile-icon/icons/svg/ng-underline-01.d.ts +0 -5
  437. package/dist/src/nile-icon/icons/svg/ng-underline-01.js +0 -5
  438. package/dist/src/nile-icon/icons/svg/ng-underline-01.js.map +0 -1
  439. package/dist/src/nile-icon/icons/svg/ng-upload-01.d.ts +0 -5
  440. package/dist/src/nile-icon/icons/svg/ng-upload-01.js +0 -5
  441. package/dist/src/nile-icon/icons/svg/ng-upload-01.js.map +0 -1
  442. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.d.ts +0 -5
  443. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.js +0 -5
  444. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.js.map +0 -1
  445. package/dist/src/nile-icon/icons/svg/ng-user-01.d.ts +0 -5
  446. package/dist/src/nile-icon/icons/svg/ng-user-01.js +0 -5
  447. package/dist/src/nile-icon/icons/svg/ng-user-01.js.map +0 -1
  448. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.d.ts +0 -5
  449. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.js +0 -5
  450. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.js.map +0 -1
  451. package/dist/src/nile-icon/icons/svg/ng-user-check-02.d.ts +0 -5
  452. package/dist/src/nile-icon/icons/svg/ng-user-check-02.js +0 -5
  453. package/dist/src/nile-icon/icons/svg/ng-user-check-02.js.map +0 -1
  454. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.d.ts +0 -5
  455. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.js +0 -5
  456. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.js.map +0 -1
  457. package/dist/src/nile-icon/icons/svg/ng-user-right-01.d.ts +0 -5
  458. package/dist/src/nile-icon/icons/svg/ng-user-right-01.js +0 -5
  459. package/dist/src/nile-icon/icons/svg/ng-user-right-01.js.map +0 -1
  460. package/dist/src/nile-icon/icons/svg/ng-users-01.d.ts +0 -5
  461. package/dist/src/nile-icon/icons/svg/ng-users-01.js +0 -5
  462. package/dist/src/nile-icon/icons/svg/ng-users-01.js.map +0 -1
  463. package/dist/src/nile-icon/icons/svg/ng-x-circle.d.ts +0 -5
  464. package/dist/src/nile-icon/icons/svg/ng-x-circle.js +0 -5
  465. package/dist/src/nile-icon/icons/svg/ng-x-circle.js.map +0 -1
  466. package/dist/src/nile-icon/icons/svg/ng-x-close.d.ts +0 -5
  467. package/dist/src/nile-icon/icons/svg/ng-x-close.js +0 -5
  468. package/dist/src/nile-icon/icons/svg/ng-x-close.js.map +0 -1
  469. package/dist/src/nile-icon/icons/svg/ng-x-square.d.ts +0 -5
  470. package/dist/src/nile-icon/icons/svg/ng-x-square.js +0 -5
  471. package/dist/src/nile-icon/icons/svg/ng-x-square.js.map +0 -1
  472. package/dist/src/nile-option-header/index.d.ts +0 -1
  473. package/dist/src/nile-option-header/index.js +0 -2
  474. package/dist/src/nile-option-header/index.js.map +0 -1
  475. package/dist/src/nile-option-header/nile-option-header.css.d.ts +0 -12
  476. package/dist/src/nile-option-header/nile-option-header.css.js +0 -30
  477. package/dist/src/nile-option-header/nile-option-header.css.js.map +0 -1
  478. package/dist/src/nile-option-header/nile-option-header.d.ts +0 -33
  479. package/dist/src/nile-option-header/nile-option-header.js +0 -51
  480. package/dist/src/nile-option-header/nile-option-header.js.map +0 -1
  481. package/dist/src/nile-table-row/TableRowExpandableHelper.d.ts +0 -9
  482. package/dist/src/nile-table-row/TableRowExpandableHelper.js +0 -26
  483. package/dist/src/nile-table-row/TableRowExpandableHelper.js.map +0 -1
  484. package/dist/src/nile-table-row/helper.ts.d.ts +0 -37
  485. package/dist/src/nile-table-row/helper.ts.js +0 -105
  486. package/dist/src/nile-table-row/helper.ts.js.map +0 -1
  487. package/dist/src/nile-table-row/nile-table-row-expandable.d.ts +0 -37
  488. package/dist/src/nile-table-row/nile-table-row-expandable.js +0 -105
  489. package/dist/src/nile-table-row/nile-table-row-expandable.js.map +0 -1
  490. package/dist/src/nile-table-row-expandable/index.d.ts +0 -1
  491. package/dist/src/nile-table-row-expandable/index.js +0 -2
  492. package/dist/src/nile-table-row-expandable/index.js.map +0 -1
  493. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.d.ts +0 -12
  494. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.js +0 -17
  495. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.css.js.map +0 -1
  496. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.d.ts +0 -37
  497. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.js +0 -103
  498. package/dist/src/nile-table-row-expandable/nile-table-row-expandable.js.map +0 -1
  499. package/dist/src/nile-tooltip/nile-tooltip-utils.d.ts +0 -18
  500. package/dist/src/nile-tooltip/nile-tooltip-utils.js +0 -216
  501. package/dist/src/nile-tooltip/nile-tooltip-utils.js.map +0 -1
  502. package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +0 -1
  503. package/dist/src/nile-tooltip/nile-tooltip.test.js +0 -148
  504. package/dist/src/nile-tooltip/nile-tooltip.test.js.map +0 -1
@@ -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(["../fixture-28d63bc4.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js"],function(_export,_context){"use strict";var t,e,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16,_templateObject17,_templateObject18,_templateObject19,_templateObject20,_templateObject21,_templateObject22,_templateObject23;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture003CjsJs){t=_fixture003CjsJs.f;e=_fixture003CjsJs.a;},function(_litStaticHtmlJs){l=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){}],execute:function execute(){describe("<nile-virtual-select>",function(){describe("maxOptionsVisible functionality",function(){it('should show "+n More" when more options are selected than maxOptionsVisible',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _i$shadowRoot,_o$textContent;var i,o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-virtual-select multiple max-options-visible=\"2\">\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context2.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"},{value:"option-4",label:"Option 4"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-2","option-3"];_context2.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot=i.shadowRoot)===null||_i$shadowRoot===void 0?void 0:_i$shadowRoot.querySelector(".select__tags-count");e(o).to.exist,e(o===null||o===void 0||(_o$textContent=o.textContent)===null||_o$textContent===void 0?void 0:_o$textContent.trim()).to.equal("+1 More");case 10:case"end":return _context2.stop();}},_callee);}))),it('should not show "+n More" when selected options are within maxOptionsVisible limit',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _i$shadowRoot2;var i,o;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-virtual-select multiple max-options-visible=\"3\">\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context3.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-2"];_context3.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot2=i.shadowRoot)===null||_i$shadowRoot2===void 0?void 0:_i$shadowRoot2.querySelector(".select__tags-count");e(o).to.not.exist;case 10:case"end":return _context3.stop();}},_callee2);}))),it("should show all tags when maxOptionsVisible is 0",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _i$shadowRoot3,_i$shadowRoot4;var i,o,a;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return t(l(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-virtual-select multiple max-options-visible=\"0\">\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context4.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"},{value:"option-4",label:"Option 4"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-2","option-3","option-4"];_context4.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot3=i.shadowRoot)===null||_i$shadowRoot3===void 0?void 0:_i$shadowRoot3.querySelector(".select__tags-count");e(o).to.not.exist;a=(_i$shadowRoot4=i.shadowRoot)===null||_i$shadowRoot4===void 0?void 0:_i$shadowRoot4.querySelectorAll("nile-tag");e(a===null||a===void 0?void 0:a.length).to.equal(4);case 12:case"end":return _context4.stop();}},_callee3);})));}),describe("option width functionality",function(){it("should render options with full width",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _i$shadowRoot5,_i$shadowRoot6,_i$shadowRoot7;var i,o,a,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return t(l(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context5.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context5.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot5=i.shadowRoot)===null||_i$shadowRoot5===void 0?void 0:_i$shadowRoot5.querySelector(".virtualized");e(o).to.exist;a=(_i$shadowRoot6=i.shadowRoot)===null||_i$shadowRoot6===void 0?void 0:_i$shadowRoot6.querySelector(".select__options");e(a).to.exist;s=(_i$shadowRoot7=i.shadowRoot)===null||_i$shadowRoot7===void 0?void 0:_i$shadowRoot7.querySelector(".select__listbox");e(s).to.exist,e(s===null||s===void 0?void 0:s.querySelector(".select__options")).to.exist;case 14:case"end":return _context5.stop();}},_callee4);}))),it("should render options with proper CSS classes for width",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _i$shadowRoot8,_i$shadowRoot9,_i$shadowRoot10;var i,o,a,s;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return t(l(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context6.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context6.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot8=i.shadowRoot)===null||_i$shadowRoot8===void 0?void 0:_i$shadowRoot8.querySelector(".virtualized");e(o).to.exist;a=(_i$shadowRoot9=i.shadowRoot)===null||_i$shadowRoot9===void 0?void 0:_i$shadowRoot9.querySelector(".select__options");e(a).to.exist;s=(_i$shadowRoot10=i.shadowRoot)===null||_i$shadowRoot10===void 0?void 0:_i$shadowRoot10.querySelector("lit-virtualizer");e(s).to.exist;case 14:case"end":return _context6.stop();}},_callee5);}))),it("should render virtualized options with full width structure",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _i$shadowRoot11;var i,o,a,s;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return t(l(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context7.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context7.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot11=i.shadowRoot)===null||_i$shadowRoot11===void 0?void 0:_i$shadowRoot11.querySelector(".select__listbox");e(o).to.exist;a=o===null||o===void 0?void 0:o.querySelector(".select__options");e(a).to.exist;s=a===null||a===void 0?void 0:a.querySelector(".virtualized");e(s).to.exist,e(o===null||o===void 0?void 0:o.contains(a||null)).to.be["true"],e(a===null||a===void 0?void 0:a.contains(s||null)).to.be["true"];case 14:case"end":return _context7.stop();}},_callee6);})));}),describe("selected options highlighting",function(){it("should highlight selected options with red border in single select mode",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _i$shadowRoot12;var i,o;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return t(l(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context8.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value="option-2";i.open=!0;_context8.next=9;return i.updateComplete;case 9:o=(_i$shadowRoot12=i.shadowRoot)===null||_i$shadowRoot12===void 0?void 0:_i$shadowRoot12.querySelector("nile-option[selected]");e(o).to.exist,e(o===null||o===void 0?void 0:o.getAttribute("value")).to.equal("option-2");case 11:case"end":return _context8.stop();}},_callee7);}))),it("should highlight selected options with red border in multiple select mode",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _i$shadowRoot13;var i,o,a;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return t(l(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-virtual-select multiple>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context9.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-3"];i.open=!0;_context9.next=9;return i.updateComplete;case 9:o=(_i$shadowRoot13=i.shadowRoot)===null||_i$shadowRoot13===void 0?void 0:_i$shadowRoot13.querySelectorAll("nile-option[selected]");e(o===null||o===void 0?void 0:o.length).to.equal(2);a=Array.from(o||[]).map(function(t){return t.getAttribute("value");});e(a).to.include("option-1"),e(a).to.include("option-3");case 13:case"end":return _context9.stop();}},_callee8);}))),it("should not highlight unselected options",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var _i$shadowRoot14;var i,o;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return t(l(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context10.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value="option-2";i.open=!0;_context10.next=9;return i.updateComplete;case 9:o=(_i$shadowRoot14=i.shadowRoot)===null||_i$shadowRoot14===void 0?void 0:_i$shadowRoot14.querySelector('nile-option[value="option-1"]');e(o).to.exist,e(o===null||o===void 0?void 0:o.hasAttribute("selected")).to.be["false"];case 11:case"end":return _context10.stop();}},_callee9);}))),it("should show tags for pre-selected values when data is set after value",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var _i$shadowRoot15,_i$shadowRoot16;var i,o,a,s;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return t(l(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n <nile-virtual-select multiple>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context11.sent;i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-3"];_context11.next=7;return i.updateComplete;case 7:o=(_i$shadowRoot15=i.shadowRoot)===null||_i$shadowRoot15===void 0?void 0:_i$shadowRoot15.querySelectorAll("nile-tag");e(o===null||o===void 0?void 0:o.length).to.equal(0);i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];_context11.next=12;return i.updateComplete;case 12:a=(_i$shadowRoot16=i.shadowRoot)===null||_i$shadowRoot16===void 0?void 0:_i$shadowRoot16.querySelectorAll("nile-tag");e(a===null||a===void 0?void 0:a.length).to.equal(2);s=Array.from(a||[]).map(function(t){var _t$textContent;return(_t$textContent=t.textContent)===null||_t$textContent===void 0?void 0:_t$textContent.trim();});e(s).to.include("Option 1"),e(s).to.include("Option 3");case 16:case"end":return _context11.stop();}},_callee10);}))),it("should show tags immediately without opening dropdown",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _i$shadowRoot17;var i,o,a;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return t(l(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["\n <nile-virtual-select multiple>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context12.sent;i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.value=["option-1","option-3"];_context12.next=8;return i.updateComplete;case 8:i.open=!1;_context12.next=11;return i.updateComplete;case 11:o=(_i$shadowRoot17=i.shadowRoot)===null||_i$shadowRoot17===void 0?void 0:_i$shadowRoot17.querySelectorAll("nile-tag");e(o===null||o===void 0?void 0:o.length).to.equal(2);a=Array.from(o||[]).map(function(t){var _t$textContent2;return(_t$textContent2=t.textContent)===null||_t$textContent2===void 0?void 0:_t$textContent2.trim();});e(a).to.include("Option 1"),e(a).to.include("Option 3");case 15:case"end":return _context12.stop();}},_callee11);}))),it("should show checkbox as checked for selected options in multiple mode",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var _i$shadowRoot18,_i$shadowRoot19,_a$shadowRoot;var i,o,a,s;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return t(l(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <nile-virtual-select multiple>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context13.sent;i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.value=["option-1","option-3"];i.open=!0;_context13.next=9;return i.updateComplete;case 9:o=(_i$shadowRoot18=i.shadowRoot)===null||_i$shadowRoot18===void 0?void 0:_i$shadowRoot18.querySelectorAll("nile-option[selected]");e(o===null||o===void 0?void 0:o.length).to.equal(2),o===null||o===void 0?void 0:o.forEach(function(t){var _t$shadowRoot;var l=(_t$shadowRoot=t.shadowRoot)===null||_t$shadowRoot===void 0?void 0:_t$shadowRoot.querySelector("nile-checkbox");e(l).to.exist,e(l===null||l===void 0?void 0:l.checked).to.be["true"];});a=(_i$shadowRoot19=i.shadowRoot)===null||_i$shadowRoot19===void 0?void 0:_i$shadowRoot19.querySelector('nile-option[value="option-2"]');e(a).to.exist;s=a===null||a===void 0||(_a$shadowRoot=a.shadowRoot)===null||_a$shadowRoot===void 0?void 0:_a$shadowRoot.querySelector("nile-checkbox");e(s).to.exist,e(s===null||s===void 0?void 0:s.checked).to.be["false"];case 15:case"end":return _context13.stop();}},_callee12);})));}),describe("no results message functionality",function(){it("should show no results message when data is empty and not loading",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var _i$shadowRoot20,_o$textContent2;var i,o;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.next=2;return t(l(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context14.sent;i.data=[];i.optionsLoading=!1;i.open=!0;_context14.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot20=i.shadowRoot)===null||_i$shadowRoot20===void 0?void 0:_i$shadowRoot20.querySelector(".select__no-results");e(o).to.exist,e(o===null||o===void 0||(_o$textContent2=o.textContent)===null||_o$textContent2===void 0?void 0:_o$textContent2.trim()).to.equal("No results found");case 10:case"end":return _context14.stop();}},_callee13);}))),it("should show custom no results message when provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var _i$shadowRoot21,_o$textContent3;var i,o;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return t(l(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["\n <nile-virtual-select no-results-message=\"No data available\">\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context15.sent;i.data=[];i.optionsLoading=!1;i.open=!0;_context15.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot21=i.shadowRoot)===null||_i$shadowRoot21===void 0?void 0:_i$shadowRoot21.querySelector(".select__no-results");e(o).to.exist,e(o===null||o===void 0||(_o$textContent3=o.textContent)===null||_o$textContent3===void 0?void 0:_o$textContent3.trim()).to.equal("No data available");case 10:case"end":return _context15.stop();}},_callee14);}))),it("should not show no results message when loading",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var _i$shadowRoot22;var i,o;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return t(l(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context16.sent;i.data=[];i.optionsLoading=!0;i.open=!0;_context16.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot22=i.shadowRoot)===null||_i$shadowRoot22===void 0?void 0:_i$shadowRoot22.querySelector(".select__no-results");e(o).to.not.exist;case 10:case"end":return _context16.stop();}},_callee15);}))),it("should show no results message when search returns no results",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(){var _i$shadowRoot23,_o$textContent4;var i,o;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:_context17.next=2;return t(l(_templateObject16||(_templateObject16=_taggedTemplateLiteral(["\n <nile-virtual-select search-enabled>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context17.sent;i.data=[{value:"option-1",label:"Apple"},{value:"option-2",label:"Banana"},{value:"option-3",label:"Cherry"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context17.next=8;return i.updateComplete;case 8:i.searchValue="Orange";i.filterVirtualOptions("Orange");_context17.next=12;return i.updateComplete;case 12:o=(_i$shadowRoot23=i.shadowRoot)===null||_i$shadowRoot23===void 0?void 0:_i$shadowRoot23.querySelector(".select__no-results");e(o).to.exist,e(o===null||o===void 0||(_o$textContent4=o.textContent)===null||_o$textContent4===void 0?void 0:_o$textContent4.trim()).to.equal("No results found");case 14:case"end":return _context17.stop();}},_callee16);}))),it("should hide no results message when data becomes available",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(){var _i$shadowRoot24,_i$shadowRoot25;var i,o;return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:_context18.next=2;return t(l(_templateObject17||(_templateObject17=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context18.sent;i.data=[];i.optionsLoading=!1;i.open=!0;_context18.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot24=i.shadowRoot)===null||_i$shadowRoot24===void 0?void 0:_i$shadowRoot24.querySelector(".select__no-results");e(o).to.exist;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"}];_context18.next=13;return i.updateComplete;case 13:o=(_i$shadowRoot25=i.shadowRoot)===null||_i$shadowRoot25===void 0?void 0:_i$shadowRoot25.querySelector(".select__no-results");e(o).to.not.exist;case 15:case"end":return _context18.stop();}},_callee17);})));}),describe("scroll position reset functionality",function(){it("should reset scroll position to top when dropdown opens",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(){var _i$shadowRoot26;var i,o;return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return t(l(_templateObject18||(_templateObject18=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context19.sent;i.data=Array.from({length:100},function(t,e){return{value:"option-".concat(e),label:"Option ".concat(e)};});i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context19.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot26=i.shadowRoot)===null||_i$shadowRoot26===void 0?void 0:_i$shadowRoot26.querySelector(".virtualized");e(o).to.exist;o.scrollTop=1e3;e(o.scrollTop).to.equal(1e3);i.open=!1;_context19.next=15;return i.updateComplete;case 15:i.open=!0;_context19.next=18;return i.updateComplete;case 18:e(o.scrollTop).to.equal(0);case 19:case"end":return _context19.stop();}},_callee18);}))),it("should reset scroll position when search value changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(){var _i$shadowRoot27;var i,o;return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_context20.next=2;return t(l(_templateObject19||(_templateObject19=_taggedTemplateLiteral(["\n <nile-virtual-select search-enabled>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context20.sent;i.data=Array.from({length:100},function(t,e){return{value:"option-".concat(e),label:"Option ".concat(e)};});i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context20.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot27=i.shadowRoot)===null||_i$shadowRoot27===void 0?void 0:_i$shadowRoot27.querySelector(".virtualized");e(o).to.exist;o.scrollTop=1e3;e(o.scrollTop).to.equal(1e3);i.searchValue="test";i.filterVirtualOptions("test");_context20.next=16;return i.updateComplete;case 16:e(o.scrollTop).to.equal(0);case 17:case"end":return _context20.stop();}},_callee19);}))),it("should reset scroll position when show selected state changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(){var _i$shadowRoot28,_i$shadowRoot29;var i,o,a;return _regeneratorRuntime().wrap(function _callee20$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:_context21.next=2;return t(l(_templateObject20||(_templateObject20=_taggedTemplateLiteral(["\n <nile-virtual-select multiple>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context21.sent;i.data=Array.from({length:100},function(t,e){return{value:"option-".concat(e),label:"Option ".concat(e)};});i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-2","option-3"];i.open=!0;_context21.next=9;return i.updateComplete;case 9:o=(_i$shadowRoot28=i.shadowRoot)===null||_i$shadowRoot28===void 0?void 0:_i$shadowRoot28.querySelector(".virtualized");e(o).to.exist,o.scrollTop=1e3,e(o.scrollTop).to.equal(1e3);a=(_i$shadowRoot29=i.shadowRoot)===null||_i$shadowRoot29===void 0?void 0:_i$shadowRoot29.querySelector("nile-checkbox");a!==null&&a!==void 0&&a.click();_context21.next=15;return i.updateComplete;case 15:e(o.scrollTop).to.equal(0);case 16:case"end":return _context21.stop();}},_callee20);})));}),describe("small dataset handling",function(){it("should render small datasets without virtualizer for better sizing",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(){var _i$shadowRoot30;var i,o,a,s,n;return _regeneratorRuntime().wrap(function _callee21$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:_context22.next=2;return t(l(_templateObject21||(_templateObject21=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context22.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context22.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot30=i.shadowRoot)===null||_i$shadowRoot30===void 0?void 0:_i$shadowRoot30.querySelector(".virtualized");e(o).to.exist;a=o.querySelector("lit-virtualizer");e(a).to.not.exist;s=o.querySelectorAll("nile-option");e(s.length).to.equal(3);n=Array.from(s).map(function(t){return t.getAttribute("value");});e(n).to.deep.equal(["option-1","option-2","option-3"]);case 16:case"end":return _context22.stop();}},_callee21);}))),it("should use virtualizer for large datasets",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(){var _i$shadowRoot31;var i,o,a;return _regeneratorRuntime().wrap(function _callee22$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:_context23.next=2;return t(l(_templateObject22||(_templateObject22=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context23.sent;i.data=Array.from({length:100},function(t,e){return{value:"option-".concat(e+1),label:"Option ".concat(e+1)};});i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context23.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot31=i.shadowRoot)===null||_i$shadowRoot31===void 0?void 0:_i$shadowRoot31.querySelector(".virtualized");e(o).to.exist;a=o.querySelector("lit-virtualizer");e(a).to.exist;case 12:case"end":return _context23.stop();}},_callee22);}))),it("should fit snugly without extra space for small datasets",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(){var _i$shadowRoot32,_i$shadowRoot33;var i,o,a,s,n,c;return _regeneratorRuntime().wrap(function _callee23$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:_context24.next=2;return t(l(_templateObject23||(_templateObject23=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context24.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context24.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot32=i.shadowRoot)===null||_i$shadowRoot32===void 0?void 0:_i$shadowRoot32.querySelector(".select__listbox");e(o).to.exist;a=(_i$shadowRoot33=i.shadowRoot)===null||_i$shadowRoot33===void 0?void 0:_i$shadowRoot33.querySelector(".virtualized");e(a).to.exist;s=a.offsetHeight,n=a.querySelectorAll("nile-option");e(n.length).to.equal(3),e(s).to.be.greaterThan(0);c=Array.from(n).reduce(function(t,e){return t+e.offsetHeight;},0);e(s).to.be.closeTo(c,20);case 16:case"end":return _context24.stop();}},_callee23);})));});});}};});
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(["../fixture-3bfb4490.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js"],function(_export,_context){"use strict";var t,e,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16,_templateObject17,_templateObject18,_templateObject19,_templateObject20,_templateObject21,_templateObject22,_templateObject23;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture003CjsJs){t=_fixture003CjsJs.f;e=_fixture003CjsJs.a;},function(_litStaticHtmlJs){l=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){}],execute:function execute(){describe("<nile-virtual-select>",function(){describe("maxOptionsVisible functionality",function(){it('should show "+n More" when more options are selected than maxOptionsVisible',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _i$shadowRoot,_o$textContent;var i,o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-virtual-select multiple max-options-visible=\"2\">\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context2.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"},{value:"option-4",label:"Option 4"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-2","option-3"];_context2.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot=i.shadowRoot)===null||_i$shadowRoot===void 0?void 0:_i$shadowRoot.querySelector(".select__tags-count");e(o).to.exist,e(o===null||o===void 0||(_o$textContent=o.textContent)===null||_o$textContent===void 0?void 0:_o$textContent.trim()).to.equal("+1 More");case 10:case"end":return _context2.stop();}},_callee);}))),it('should not show "+n More" when selected options are within maxOptionsVisible limit',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _i$shadowRoot2;var i,o;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-virtual-select multiple max-options-visible=\"3\">\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context3.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-2"];_context3.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot2=i.shadowRoot)===null||_i$shadowRoot2===void 0?void 0:_i$shadowRoot2.querySelector(".select__tags-count");e(o).to.not.exist;case 10:case"end":return _context3.stop();}},_callee2);}))),it("should show all tags when maxOptionsVisible is 0",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _i$shadowRoot3,_i$shadowRoot4;var i,o,a;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return t(l(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-virtual-select multiple max-options-visible=\"0\">\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context4.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"},{value:"option-4",label:"Option 4"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-2","option-3","option-4"];_context4.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot3=i.shadowRoot)===null||_i$shadowRoot3===void 0?void 0:_i$shadowRoot3.querySelector(".select__tags-count");e(o).to.not.exist;a=(_i$shadowRoot4=i.shadowRoot)===null||_i$shadowRoot4===void 0?void 0:_i$shadowRoot4.querySelectorAll("nile-tag");e(a===null||a===void 0?void 0:a.length).to.equal(4);case 12:case"end":return _context4.stop();}},_callee3);})));}),describe("option width functionality",function(){it("should render options with full width",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _i$shadowRoot5,_i$shadowRoot6,_i$shadowRoot7;var i,o,a,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return t(l(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context5.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context5.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot5=i.shadowRoot)===null||_i$shadowRoot5===void 0?void 0:_i$shadowRoot5.querySelector(".virtualized");e(o).to.exist;a=(_i$shadowRoot6=i.shadowRoot)===null||_i$shadowRoot6===void 0?void 0:_i$shadowRoot6.querySelector(".select__options");e(a).to.exist;s=(_i$shadowRoot7=i.shadowRoot)===null||_i$shadowRoot7===void 0?void 0:_i$shadowRoot7.querySelector(".select__listbox");e(s).to.exist,e(s===null||s===void 0?void 0:s.querySelector(".select__options")).to.exist;case 14:case"end":return _context5.stop();}},_callee4);}))),it("should render options with proper CSS classes for width",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _i$shadowRoot8,_i$shadowRoot9,_i$shadowRoot10;var i,o,a,s;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return t(l(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context6.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context6.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot8=i.shadowRoot)===null||_i$shadowRoot8===void 0?void 0:_i$shadowRoot8.querySelector(".virtualized");e(o).to.exist;a=(_i$shadowRoot9=i.shadowRoot)===null||_i$shadowRoot9===void 0?void 0:_i$shadowRoot9.querySelector(".select__options");e(a).to.exist;s=(_i$shadowRoot10=i.shadowRoot)===null||_i$shadowRoot10===void 0?void 0:_i$shadowRoot10.querySelector("lit-virtualizer");e(s).to.exist;case 14:case"end":return _context6.stop();}},_callee5);}))),it("should render virtualized options with full width structure",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _i$shadowRoot11;var i,o,a,s;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return t(l(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context7.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context7.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot11=i.shadowRoot)===null||_i$shadowRoot11===void 0?void 0:_i$shadowRoot11.querySelector(".select__listbox");e(o).to.exist;a=o===null||o===void 0?void 0:o.querySelector(".select__options");e(a).to.exist;s=a===null||a===void 0?void 0:a.querySelector(".virtualized");e(s).to.exist,e(o===null||o===void 0?void 0:o.contains(a||null)).to.be["true"],e(a===null||a===void 0?void 0:a.contains(s||null)).to.be["true"];case 14:case"end":return _context7.stop();}},_callee6);})));}),describe("selected options highlighting",function(){it("should highlight selected options with red border in single select mode",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _i$shadowRoot12;var i,o;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return t(l(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context8.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value="option-2";i.open=!0;_context8.next=9;return i.updateComplete;case 9:o=(_i$shadowRoot12=i.shadowRoot)===null||_i$shadowRoot12===void 0?void 0:_i$shadowRoot12.querySelector("nile-option[selected]");e(o).to.exist,e(o===null||o===void 0?void 0:o.getAttribute("value")).to.equal("option-2");case 11:case"end":return _context8.stop();}},_callee7);}))),it("should highlight selected options with red border in multiple select mode",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _i$shadowRoot13;var i,o,a;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return t(l(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-virtual-select multiple>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context9.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-3"];i.open=!0;_context9.next=9;return i.updateComplete;case 9:o=(_i$shadowRoot13=i.shadowRoot)===null||_i$shadowRoot13===void 0?void 0:_i$shadowRoot13.querySelectorAll("nile-option[selected]");e(o===null||o===void 0?void 0:o.length).to.equal(2);a=Array.from(o||[]).map(function(t){return t.getAttribute("value");});e(a).to.include("option-1"),e(a).to.include("option-3");case 13:case"end":return _context9.stop();}},_callee8);}))),it("should not highlight unselected options",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var _i$shadowRoot14;var i,o;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return t(l(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context10.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value="option-2";i.open=!0;_context10.next=9;return i.updateComplete;case 9:o=(_i$shadowRoot14=i.shadowRoot)===null||_i$shadowRoot14===void 0?void 0:_i$shadowRoot14.querySelector('nile-option[value="option-1"]');e(o).to.exist,e(o===null||o===void 0?void 0:o.hasAttribute("selected")).to.be["false"];case 11:case"end":return _context10.stop();}},_callee9);}))),it("should show tags for pre-selected values when data is set after value",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var _i$shadowRoot15,_i$shadowRoot16;var i,o,a,s;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return t(l(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n <nile-virtual-select multiple>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context11.sent;i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-3"];_context11.next=7;return i.updateComplete;case 7:o=(_i$shadowRoot15=i.shadowRoot)===null||_i$shadowRoot15===void 0?void 0:_i$shadowRoot15.querySelectorAll("nile-tag");e(o===null||o===void 0?void 0:o.length).to.equal(0);i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];_context11.next=12;return i.updateComplete;case 12:a=(_i$shadowRoot16=i.shadowRoot)===null||_i$shadowRoot16===void 0?void 0:_i$shadowRoot16.querySelectorAll("nile-tag");e(a===null||a===void 0?void 0:a.length).to.equal(2);s=Array.from(a||[]).map(function(t){var _t$textContent;return(_t$textContent=t.textContent)===null||_t$textContent===void 0?void 0:_t$textContent.trim();});e(s).to.include("Option 1"),e(s).to.include("Option 3");case 16:case"end":return _context11.stop();}},_callee10);}))),it("should show tags immediately without opening dropdown",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _i$shadowRoot17;var i,o,a;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return t(l(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["\n <nile-virtual-select multiple>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context12.sent;i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.value=["option-1","option-3"];_context12.next=8;return i.updateComplete;case 8:i.open=!1;_context12.next=11;return i.updateComplete;case 11:o=(_i$shadowRoot17=i.shadowRoot)===null||_i$shadowRoot17===void 0?void 0:_i$shadowRoot17.querySelectorAll("nile-tag");e(o===null||o===void 0?void 0:o.length).to.equal(2);a=Array.from(o||[]).map(function(t){var _t$textContent2;return(_t$textContent2=t.textContent)===null||_t$textContent2===void 0?void 0:_t$textContent2.trim();});e(a).to.include("Option 1"),e(a).to.include("Option 3");case 15:case"end":return _context12.stop();}},_callee11);}))),it("should show checkbox as checked for selected options in multiple mode",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var _i$shadowRoot18,_i$shadowRoot19,_a$shadowRoot;var i,o,a,s;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return t(l(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <nile-virtual-select multiple>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context13.sent;i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.value=["option-1","option-3"];i.open=!0;_context13.next=9;return i.updateComplete;case 9:o=(_i$shadowRoot18=i.shadowRoot)===null||_i$shadowRoot18===void 0?void 0:_i$shadowRoot18.querySelectorAll("nile-option[selected]");e(o===null||o===void 0?void 0:o.length).to.equal(2),o===null||o===void 0?void 0:o.forEach(function(t){var _t$shadowRoot;var l=(_t$shadowRoot=t.shadowRoot)===null||_t$shadowRoot===void 0?void 0:_t$shadowRoot.querySelector("nile-checkbox");e(l).to.exist,e(l===null||l===void 0?void 0:l.checked).to.be["true"];});a=(_i$shadowRoot19=i.shadowRoot)===null||_i$shadowRoot19===void 0?void 0:_i$shadowRoot19.querySelector('nile-option[value="option-2"]');e(a).to.exist;s=a===null||a===void 0||(_a$shadowRoot=a.shadowRoot)===null||_a$shadowRoot===void 0?void 0:_a$shadowRoot.querySelector("nile-checkbox");e(s).to.exist,e(s===null||s===void 0?void 0:s.checked).to.be["false"];case 15:case"end":return _context13.stop();}},_callee12);})));}),describe("no results message functionality",function(){it("should show no results message when data is empty and not loading",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var _i$shadowRoot20,_o$textContent2;var i,o;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.next=2;return t(l(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context14.sent;i.data=[];i.optionsLoading=!1;i.open=!0;_context14.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot20=i.shadowRoot)===null||_i$shadowRoot20===void 0?void 0:_i$shadowRoot20.querySelector(".select__no-results");e(o).to.exist,e(o===null||o===void 0||(_o$textContent2=o.textContent)===null||_o$textContent2===void 0?void 0:_o$textContent2.trim()).to.equal("No results found");case 10:case"end":return _context14.stop();}},_callee13);}))),it("should show custom no results message when provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var _i$shadowRoot21,_o$textContent3;var i,o;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return t(l(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["\n <nile-virtual-select no-results-message=\"No data available\">\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context15.sent;i.data=[];i.optionsLoading=!1;i.open=!0;_context15.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot21=i.shadowRoot)===null||_i$shadowRoot21===void 0?void 0:_i$shadowRoot21.querySelector(".select__no-results");e(o).to.exist,e(o===null||o===void 0||(_o$textContent3=o.textContent)===null||_o$textContent3===void 0?void 0:_o$textContent3.trim()).to.equal("No data available");case 10:case"end":return _context15.stop();}},_callee14);}))),it("should not show no results message when loading",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var _i$shadowRoot22;var i,o;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return t(l(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context16.sent;i.data=[];i.optionsLoading=!0;i.open=!0;_context16.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot22=i.shadowRoot)===null||_i$shadowRoot22===void 0?void 0:_i$shadowRoot22.querySelector(".select__no-results");e(o).to.not.exist;case 10:case"end":return _context16.stop();}},_callee15);}))),it("should show no results message when search returns no results",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(){var _i$shadowRoot23,_o$textContent4;var i,o;return _regeneratorRuntime().wrap(function _callee16$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:_context17.next=2;return t(l(_templateObject16||(_templateObject16=_taggedTemplateLiteral(["\n <nile-virtual-select search-enabled>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context17.sent;i.data=[{value:"option-1",label:"Apple"},{value:"option-2",label:"Banana"},{value:"option-3",label:"Cherry"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context17.next=8;return i.updateComplete;case 8:i.searchValue="Orange";i.filterVirtualOptions("Orange");_context17.next=12;return i.updateComplete;case 12:o=(_i$shadowRoot23=i.shadowRoot)===null||_i$shadowRoot23===void 0?void 0:_i$shadowRoot23.querySelector(".select__no-results");e(o).to.exist,e(o===null||o===void 0||(_o$textContent4=o.textContent)===null||_o$textContent4===void 0?void 0:_o$textContent4.trim()).to.equal("No results found");case 14:case"end":return _context17.stop();}},_callee16);}))),it("should hide no results message when data becomes available",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(){var _i$shadowRoot24,_i$shadowRoot25;var i,o;return _regeneratorRuntime().wrap(function _callee17$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:_context18.next=2;return t(l(_templateObject17||(_templateObject17=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context18.sent;i.data=[];i.optionsLoading=!1;i.open=!0;_context18.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot24=i.shadowRoot)===null||_i$shadowRoot24===void 0?void 0:_i$shadowRoot24.querySelector(".select__no-results");e(o).to.exist;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"}];_context18.next=13;return i.updateComplete;case 13:o=(_i$shadowRoot25=i.shadowRoot)===null||_i$shadowRoot25===void 0?void 0:_i$shadowRoot25.querySelector(".select__no-results");e(o).to.not.exist;case 15:case"end":return _context18.stop();}},_callee17);})));}),describe("scroll position reset functionality",function(){it("should reset scroll position to top when dropdown opens",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(){var _i$shadowRoot26;var i,o;return _regeneratorRuntime().wrap(function _callee18$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:_context19.next=2;return t(l(_templateObject18||(_templateObject18=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context19.sent;i.data=Array.from({length:100},function(t,e){return{value:"option-".concat(e),label:"Option ".concat(e)};});i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context19.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot26=i.shadowRoot)===null||_i$shadowRoot26===void 0?void 0:_i$shadowRoot26.querySelector(".virtualized");e(o).to.exist;o.scrollTop=1e3;e(o.scrollTop).to.equal(1e3);i.open=!1;_context19.next=15;return i.updateComplete;case 15:i.open=!0;_context19.next=18;return i.updateComplete;case 18:e(o.scrollTop).to.equal(0);case 19:case"end":return _context19.stop();}},_callee18);}))),it("should reset scroll position when search value changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee19(){var _i$shadowRoot27;var i,o;return _regeneratorRuntime().wrap(function _callee19$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_context20.next=2;return t(l(_templateObject19||(_templateObject19=_taggedTemplateLiteral(["\n <nile-virtual-select search-enabled>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context20.sent;i.data=Array.from({length:100},function(t,e){return{value:"option-".concat(e),label:"Option ".concat(e)};});i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context20.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot27=i.shadowRoot)===null||_i$shadowRoot27===void 0?void 0:_i$shadowRoot27.querySelector(".virtualized");e(o).to.exist;o.scrollTop=1e3;e(o.scrollTop).to.equal(1e3);i.searchValue="test";i.filterVirtualOptions("test");_context20.next=16;return i.updateComplete;case 16:e(o.scrollTop).to.equal(0);case 17:case"end":return _context20.stop();}},_callee19);}))),it("should reset scroll position when show selected state changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee20(){var _i$shadowRoot28,_i$shadowRoot29;var i,o,a;return _regeneratorRuntime().wrap(function _callee20$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:_context21.next=2;return t(l(_templateObject20||(_templateObject20=_taggedTemplateLiteral(["\n <nile-virtual-select multiple>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context21.sent;i.data=Array.from({length:100},function(t,e){return{value:"option-".concat(e),label:"Option ".concat(e)};});i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.value=["option-1","option-2","option-3"];i.open=!0;_context21.next=9;return i.updateComplete;case 9:o=(_i$shadowRoot28=i.shadowRoot)===null||_i$shadowRoot28===void 0?void 0:_i$shadowRoot28.querySelector(".virtualized");e(o).to.exist,o.scrollTop=1e3,e(o.scrollTop).to.equal(1e3);a=(_i$shadowRoot29=i.shadowRoot)===null||_i$shadowRoot29===void 0?void 0:_i$shadowRoot29.querySelector("nile-checkbox");a!==null&&a!==void 0&&a.click();_context21.next=15;return i.updateComplete;case 15:e(o.scrollTop).to.equal(0);case 16:case"end":return _context21.stop();}},_callee20);})));}),describe("small dataset handling",function(){it("should render small datasets without virtualizer for better sizing",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee21(){var _i$shadowRoot30;var i,o,a,s,n;return _regeneratorRuntime().wrap(function _callee21$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:_context22.next=2;return t(l(_templateObject21||(_templateObject21=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context22.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context22.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot30=i.shadowRoot)===null||_i$shadowRoot30===void 0?void 0:_i$shadowRoot30.querySelector(".virtualized");e(o).to.exist;a=o.querySelector("lit-virtualizer");e(a).to.not.exist;s=o.querySelectorAll("nile-option");e(s.length).to.equal(3);n=Array.from(s).map(function(t){return t.getAttribute("value");});e(n).to.deep.equal(["option-1","option-2","option-3"]);case 16:case"end":return _context22.stop();}},_callee21);}))),it("should use virtualizer for large datasets",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee22(){var _i$shadowRoot31;var i,o,a;return _regeneratorRuntime().wrap(function _callee22$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:_context23.next=2;return t(l(_templateObject22||(_templateObject22=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context23.sent;i.data=Array.from({length:100},function(t,e){return{value:"option-".concat(e+1),label:"Option ".concat(e+1)};});i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context23.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot31=i.shadowRoot)===null||_i$shadowRoot31===void 0?void 0:_i$shadowRoot31.querySelector(".virtualized");e(o).to.exist;a=o.querySelector("lit-virtualizer");e(a).to.exist;case 12:case"end":return _context23.stop();}},_callee22);}))),it("should fit snugly without extra space for small datasets",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee23(){var _i$shadowRoot32,_i$shadowRoot33;var i,o,a,s,n,c;return _regeneratorRuntime().wrap(function _callee23$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:_context24.next=2;return t(l(_templateObject23||(_templateObject23=_taggedTemplateLiteral(["\n <nile-virtual-select>\n <div slot=\"label\">Test Select</div>\n </nile-virtual-select>\n "]))));case 2:i=_context24.sent;i.data=[{value:"option-1",label:"Option 1"},{value:"option-2",label:"Option 2"},{value:"option-3",label:"Option 3"}];i.renderItemConfig={getDisplayText:function getDisplayText(t){return t.label;}};i.open=!0;_context24.next=8;return i.updateComplete;case 8:o=(_i$shadowRoot32=i.shadowRoot)===null||_i$shadowRoot32===void 0?void 0:_i$shadowRoot32.querySelector(".select__listbox");e(o).to.exist;a=(_i$shadowRoot33=i.shadowRoot)===null||_i$shadowRoot33===void 0?void 0:_i$shadowRoot33.querySelector(".virtualized");e(a).to.exist;s=a.offsetHeight,n=a.querySelectorAll("nile-option");e(n.length).to.equal(3),e(s).to.be.greaterThan(0);c=Array.from(n).reduce(function(t,e){return t+e.offsetHeight;},0);e(s).to.be.closeTo(c,20);case 16:case"end":return _context24.stop();}},_callee23);})));});});}};});
2
2
  //# sourceMappingURL=nile-virtual-select.test.cjs.js.map
@@ -1,4 +1,4 @@
1
- import{f as t,a as e}from"../fixture-78a015b8.esm.js";import{html as l}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";describe("<nile-virtual-select>",(()=>{describe("maxOptionsVisible functionality",(()=>{it('should show "+n More" when more options are selected than maxOptionsVisible',(async()=>{const i=await t(l`
1
+ import{f as t,a as e}from"../fixture-8edec91c.esm.js";import{html as l}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";describe("<nile-virtual-select>",(()=>{describe("maxOptionsVisible functionality",(()=>{it('should show "+n More" when more options are selected than maxOptionsVisible',(async()=>{const i=await t(l`
2
2
  <nile-virtual-select multiple max-options-visible="2">
3
3
  <div slot="label">Test Select</div>
4
4
  </nile-virtual-select>
@@ -1,2 +1,2 @@
1
- System.register(["lit","../virtualize-b6a2fbe0.cjs.js","lit/directives/unsafe-html.js","lit/directives/if-defined.js","lit/directive.js","lit/async-directive.js","lit/directives/repeat.js"],function(_export,_context){"use strict";var e,t,i,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,r;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);}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);}return{setters:[function(_lit){e=_lit.html;},function(_virtualize001CjsJs){t=_virtualize001CjsJs.v;},function(_litDirectivesUnsafeHtmlJs){i=_litDirectivesUnsafeHtmlJs.unsafeHTML;},function(_litDirectivesIfDefinedJs){s=_litDirectivesIfDefinedJs.ifDefined;},function(_litDirectiveJs){},function(_litAsyncDirectiveJs){},function(_litDirectivesRepeatJs){}],execute:function execute(){_export("V",r=/*#__PURE__*/function(){function r(){_classCallCheck(this,r);}return _createClass(r,null,[{key:"getVirtualizedContent",value:function getVirtualizedContent(i,s,l,o,c,d,a,n,v,m){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"select__options ","\">\n ","\n </div>"])),s?"select__options__search-enabled":"",n&&!m?e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div class=\"select__no-results\">\n ","\n </div>\n "])),v||"No results found"):e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div\n class=\"virtualized\"\n >\n ","\n </div>\n "])),r.shouldUseVirtualizer(i)?e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n ","\n "])),t({items:i,renderItem:function renderItem(e){return r.getItemRenderFunction(e,l,o,c,d,a);},scroller:!0})):e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n ","\n "])),i.map(function(e){return r.getItemRenderFunction(e,l,o,c,d,a);}))));}},{key:"getItemRenderFunction",value:function getItemRenderFunction(t,_r,l,o,c,d){var a=c||_r,n=d||function(e){return(e===null||e===void 0?void 0:e.value)||e;},v=n(t),m=a(t),u=t.disabled||!1,p=t.className;var $=!1;return $=o?Array.isArray(l)&&l.includes(v):(Array.isArray(l)?l[0]:l)===v,e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-option \n value="," \n .selected="," \n .disabled=","\n .showCheckbox=","\n class=","\n >\n ","\n </nile-option>\n "])),v,$,u,o,s(p||void 0),i(m));}},{key:"shouldUseVirtualizer",value:function shouldUseVirtualizer(e){return e.length>=50;}}]);}());}};});
1
+ System.register(["lit","../virtualize-b6a2fbe0.cjs.js","lit/directives/unsafe-html.js","lit/directives/if-defined.js","lit/directive.js","lit/async-directive.js","lit/directives/repeat.js"],function(_export,_context){"use strict";var t,e,i,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,r;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);}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);}return{setters:[function(_lit){t=_lit.html;},function(_virtualize001CjsJs){e=_virtualize001CjsJs.v;},function(_litDirectivesUnsafeHtmlJs){i=_litDirectivesUnsafeHtmlJs.unsafeHTML;},function(_litDirectivesIfDefinedJs){s=_litDirectivesIfDefinedJs.ifDefined;},function(_litDirectiveJs){},function(_litAsyncDirectiveJs){},function(_litDirectivesRepeatJs){}],execute:function execute(){_export("V",r=/*#__PURE__*/function(){function r(){_classCallCheck(this,r);}return _createClass(r,null,[{key:"getVirtualizedContent",value:function getVirtualizedContent(i,s,l,o,a,c,d,n,p,v){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div part=\"select-options\" class=\"select__options ","\">\n ","\n </div>"])),s?"select__options__search-enabled":"",n&&!v?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div part=\"select-no-results\" class=\"select__no-results\">\n ","\n </div>\n "])),p||"No results found"):t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div\n class=\"virtualized\"\n part=\"virtualized\"\n >\n ","\n </div>\n "])),r.shouldUseVirtualizer(i)?t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n ","\n "])),e({items:i,renderItem:function renderItem(t){return r.getItemRenderFunction(t,l,o,a,c,d);},scroller:!0})):t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n ","\n "])),i.map(function(t){return r.getItemRenderFunction(t,l,o,a,c,d);}))));}},{key:"getItemRenderFunction",value:function getItemRenderFunction(e,_r,l,o,a,c){var d=a||_r,n=c||function(t){return(t===null||t===void 0?void 0:t.value)||t;},p=n(e),v=d(e),u=e.disabled||!1,m=e.className;var $=!1;return $=o?Array.isArray(l)&&l.includes(p):(Array.isArray(l)?l[0]:l)===p,t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-option \n value="," \n .selected="," \n .disabled=","\n .showCheckbox=","\n class=","\n >\n ","\n </nile-option>\n "])),p,$,u,o,s(m||void 0),i(v));}},{key:"shouldUseVirtualizer",value:function shouldUseVirtualizer(t){return t.length>=50;}}]);}());}};});
2
2
  //# sourceMappingURL=renderer.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"renderer.cjs.js","sources":["../../../src/nile-virtual-select/renderer.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, type TemplateResult } from 'lit';\nimport { virtualize } from '@lit-labs/virtualizer/virtualize.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nexport class VirtualSelectRenderer {\n static getVirtualizedContent(\n data: any[], \n searchEnabled: boolean, \n renderItemFunction: (item: any) => string,\n value: string | string[],\n multiple: boolean,\n getDisplayText?: (item: any) => string,\n getItemValue?: (item: any) => string,\n showNoResults?: boolean,\n noResultsMessage?: string,\n optionsLoading?: boolean\n ): TemplateResult {\n return html`\n <div class=\"select__options ${\n searchEnabled ? 'select__options__search-enabled' : ``\n }\">\n ${showNoResults && !optionsLoading\n ? html`\n <div class=\"select__no-results\">\n ${noResultsMessage || 'No results found'}\n </div>\n `\n : html`\n <div\n class=\"virtualized\"\n >\n ${VirtualSelectRenderer.shouldUseVirtualizer(data)\n ? html`\n ${virtualize({\n items: data,\n renderItem: (item: any): TemplateResult =>\n VirtualSelectRenderer.getItemRenderFunction(item, renderItemFunction, value, multiple, getDisplayText, getItemValue),\n scroller: true,\n })}\n `\n : html`\n ${data.map((item: any) => \n VirtualSelectRenderer.getItemRenderFunction(item, renderItemFunction, value, multiple, getDisplayText, getItemValue)\n )}\n `}\n </div>\n `}\n </div>`;\n }\n\n static getItemRenderFunction(\n item: any, \n renderItemFunction: (item: any) => string, \n value: string | string[], \n multiple: boolean,\n getDisplayText?: (item: any) => string,\n getItemValue?: (item: any) => string\n ): TemplateResult {\n const displayTextFn = getDisplayText || renderItemFunction;\n const valueFn = getItemValue || ((item: any) => item?.value || item);\n \n const optionValue = valueFn(item);\n const displayText = displayTextFn(item);\n const isDisabled = item.disabled || false;\n const className = item.className;\n \n let isSelected = false;\n if (multiple) {\n isSelected = Array.isArray(value) && value.includes(optionValue);\n } else {\n isSelected = (Array.isArray(value) ? value[0] : value) === optionValue;\n }\n \n return html`\n <nile-option \n value=${optionValue} \n .selected=${isSelected} \n .disabled=${isDisabled}\n .showCheckbox=${multiple}\n class=${ifDefined(className || undefined)}\n >\n ${unsafeHTML(displayText)}\n </nile-option>\n `;\n }\n\n /**\n * Determines whether to use virtualizer based on dataset size\n * For small datasets (less than 50 items), use regular rendering for better sizing\n */\n private static shouldUseVirtualizer(data: any[]): boolean {\n return data.length >= 50;\n }\n} \n"],"names":["VirtualSelectRenderer","getVirtualizedContent","data","searchEnabled","renderItemFunction","value","multiple","getDisplayText","getItemValue","showNoResults","noResultsMessage","optionsLoading","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","shouldUseVirtualizer","_templateObject4","virtualize","items","renderItem","item","getItemRenderFunction","scroller","_templateObject5","map","key","displayTextFn","valueFn","optionValue","displayText","isDisabled","disabled","className","isSelected","Array","isArray","includes","_templateObject6","ifDefined","undefined","unsafeHTML","length"],"mappings":"47DAYaA,CAAAA,kCAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,UAAAA,YAAAA,CAAAA,CAAAA,QAAAA,GAAAA,yBAAAA,KAAAA,CACX,8BAAOC,CACLC,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,CAEA,CAAA,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,8EAEPX,CAAAA,CAAgB,iCAAoC,CAAA,EAAA,CAElDM,CAAAA,EAAAA,CAAkBE,EAChBC,CAAI,CAAAG,gBAAA,GAAAA,gBAAA,CAAAD,sBAAA,mHAEEJ,CAAoB,EAAA,kBAAA,EAG1BE,CAAI,CAAAI,gBAAA,GAAAA,gBAAA,CAAAF,sBAAA,6IAIEd,CAAsBiB,CAAAA,oBAAAA,CAAqBf,GACzCU,CAAI,CAAAM,gBAAA,GAAAA,gBAAA,CAAAJ,sBAAA,yDACAK,CAAAA,CAAW,CACXC,KAAAA,CAAOlB,CACPmB,CAAAA,UAAAA,CAAaC,QAAbD,CAAAA,UAAAA,CAAaC,CACXtB,QAAAA,CAAAA,CAAAA,CAAsBuB,qBAAsBD,CAAAA,CAAAA,CAAMlB,CAAoBC,CAAAA,CAAAA,CAAOC,CAAUC,CAAAA,CAAAA,CAAgBC,KACzGgB,QAAU,CAAA,CAAA,CAAA,CAAA,CAAA,EAGdZ,CAAI,CAAAa,gBAAA,GAAAA,gBAAA,CAAAX,sBAAA,yDACAZ,CAAKwB,CAAAA,GAAAA,CAAKJ,SAAAA,SACVtB,CAAAA,CAAsBuB,CAAAA,qBAAAA,CAAsBD,EAAMlB,CAAoBC,CAAAA,CAAAA,CAAOC,EAAUC,CAAgBC,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,IAM5H,CAED,GAAAmB,GAAA,yBAAAtB,KAAA,SAAA,CAAAkB,qBAAOA,CACLD,CACAlB,CAAAA,EAAAA,CACAC,EACAC,CACAC,CAAAA,CAAAA,CACAC,CAEA,CAAA,CAAA,GAAMoB,CAAAA,CAAgBrB,CAAAA,CAAAA,EAAkBH,GAClCyB,CAAUrB,CAAAA,CAAAA,EAAkBc,SAAAA,CAAAA,QAAcA,CAAAA,CAAMjB,SAANiB,CAAMjB,iBAANiB,CAAMjB,CAAAA,KAAAA,GAASiB,IAEzDQ,CAAcD,CAAAA,CAAAA,CAAQP,CACtBS,CAAAA,CAAAA,CAAAA,CAAcH,CAAcN,CAAAA,CAAAA,CAAAA,CAC5BU,EAAaV,CAAKW,CAAAA,QAAAA,EAAAA,CAAY,CAC9BC,CAAAA,CAAAA,CAAYZ,CAAKY,CAAAA,SAAAA,CAEvB,GAAIC,CAAAA,CAAa,CAAA,CAAA,CAAA,CAOjB,MALEA,CAAAA,CAAAA,CADE7B,CACW8B,CAAAA,KAAAA,CAAMC,QAAQhC,CAAUA,CAAAA,EAAAA,CAAAA,CAAMiC,QAASR,CAAAA,CAAAA,CAAAA,CAAAA,CAEtCM,KAAMC,CAAAA,OAAAA,CAAQhC,GAASA,CAAM,CAAA,CAAA,CAAA,CAAKA,CAAWyB,IAAAA,CAAAA,CAGtDlB,CAAI,CAAA2B,gBAAA,GAAAA,gBAAA,CAAAzB,sBAAA,gMAECgB,CAAAA,CACIK,CAAAA,CACAH,CAAAA,CACI1B,CAAAA,CACRkC,CAAAA,CAAUN,CAAaO,EAAAA,IAAAA,EAAAA,CAAAA,CAE7BC,CAAWX,CAAAA,CAAAA,CAAAA,CAGlB,EAMO,GAAAJ,GAAA,wBAAAtB,KAAA,8BAAOY,CAAqBf,CAAAA,CAAAA,CAClC,MAAOA,CAAAA,CAAKyC,CAAAA,MAAAA,EAAU,EACvB"}
1
+ {"version":3,"file":"renderer.cjs.js","sources":["../../../src/nile-virtual-select/renderer.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, type TemplateResult } from 'lit';\nimport { virtualize } from '@lit-labs/virtualizer/virtualize.js';\nimport { unsafeHTML } from 'lit/directives/unsafe-html.js';\nimport { ifDefined } from 'lit/directives/if-defined.js';\n\nexport class VirtualSelectRenderer {\n static getVirtualizedContent(\n data: any[], \n searchEnabled: boolean, \n renderItemFunction: (item: any) => string,\n value: string | string[],\n multiple: boolean,\n getDisplayText?: (item: any) => string,\n getItemValue?: (item: any) => string,\n showNoResults?: boolean,\n noResultsMessage?: string,\n optionsLoading?: boolean\n ): TemplateResult {\n return html`\n <div part=\"select-options\" class=\"select__options ${\n searchEnabled ? 'select__options__search-enabled' : ``\n }\">\n ${showNoResults && !optionsLoading\n ? html`\n <div part=\"select-no-results\" class=\"select__no-results\">\n ${noResultsMessage || 'No results found'}\n </div>\n `\n : html`\n <div\n class=\"virtualized\"\n part=\"virtualized\"\n >\n ${VirtualSelectRenderer.shouldUseVirtualizer(data)\n ? html`\n ${virtualize({\n items: data,\n renderItem: (item: any): TemplateResult =>\n VirtualSelectRenderer.getItemRenderFunction(item, renderItemFunction, value, multiple, getDisplayText, getItemValue),\n scroller: true,\n })}\n `\n : html`\n ${data.map((item: any) => \n VirtualSelectRenderer.getItemRenderFunction(item, renderItemFunction, value, multiple, getDisplayText, getItemValue)\n )}\n `}\n </div>\n `}\n </div>`;\n }\n\n static getItemRenderFunction(\n item: any, \n renderItemFunction: (item: any) => string, \n value: string | string[], \n multiple: boolean,\n getDisplayText?: (item: any) => string,\n getItemValue?: (item: any) => string\n ): TemplateResult {\n const displayTextFn = getDisplayText || renderItemFunction;\n const valueFn = getItemValue || ((item: any) => item?.value || item);\n \n const optionValue = valueFn(item);\n const displayText = displayTextFn(item);\n const isDisabled = item.disabled || false;\n const className = item.className;\n \n let isSelected = false;\n if (multiple) {\n isSelected = Array.isArray(value) && value.includes(optionValue);\n } else {\n isSelected = (Array.isArray(value) ? value[0] : value) === optionValue;\n }\n \n return html`\n <nile-option \n value=${optionValue} \n .selected=${isSelected} \n .disabled=${isDisabled}\n .showCheckbox=${multiple}\n class=${ifDefined(className || undefined)}\n >\n ${unsafeHTML(displayText)}\n </nile-option>\n `;\n }\n\n /**\n * Determines whether to use virtualizer based on dataset size\n * For small datasets (less than 50 items), use regular rendering for better sizing\n */\n private static shouldUseVirtualizer(data: any[]): boolean {\n return data.length >= 50;\n }\n} \n"],"names":["VirtualSelectRenderer","getVirtualizedContent","data","searchEnabled","renderItemFunction","value","multiple","getDisplayText","getItemValue","showNoResults","noResultsMessage","optionsLoading","html","_templateObject","_taggedTemplateLiteral","_templateObject2","_templateObject3","shouldUseVirtualizer","_templateObject4","virtualize","items","renderItem","item","getItemRenderFunction","scroller","_templateObject5","map","key","displayTextFn","valueFn","optionValue","displayText","isDisabled","disabled","className","isSelected","Array","isArray","includes","_templateObject6","ifDefined","undefined","unsafeHTML","length"],"mappings":"47DAYaA,CAAAA,kCAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,UAAAA,YAAAA,CAAAA,CAAAA,QAAAA,GAAAA,yBAAAA,KAAAA,CACX,8BAAOC,CACLC,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAC,CAEA,CAAA,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,sGAEPX,CAAAA,CAAgB,iCAAoC,CAAA,EAAA,CAElDM,CAAAA,EAAAA,CAAkBE,EAChBC,CAAI,CAAAG,gBAAA,GAAAA,gBAAA,CAAAD,sBAAA,8IAEEJ,CAAoB,EAAA,kBAAA,EAG1BE,CAAI,CAAAI,gBAAA,GAAAA,gBAAA,CAAAF,sBAAA,mLAKEd,CAAsBiB,CAAAA,oBAAAA,CAAqBf,GACzCU,CAAI,CAAAM,gBAAA,GAAAA,gBAAA,CAAAJ,sBAAA,yDACAK,CAAAA,CAAW,CACXC,KAAAA,CAAOlB,CACPmB,CAAAA,UAAAA,CAAaC,QAAbD,CAAAA,UAAAA,CAAaC,CACXtB,QAAAA,CAAAA,CAAAA,CAAsBuB,qBAAsBD,CAAAA,CAAAA,CAAMlB,CAAoBC,CAAAA,CAAAA,CAAOC,CAAUC,CAAAA,CAAAA,CAAgBC,KACzGgB,QAAU,CAAA,CAAA,CAAA,CAAA,CAAA,EAGdZ,CAAI,CAAAa,gBAAA,GAAAA,gBAAA,CAAAX,sBAAA,yDACAZ,CAAKwB,CAAAA,GAAAA,CAAKJ,SAAAA,SACVtB,CAAAA,CAAsBuB,CAAAA,qBAAAA,CAAsBD,EAAMlB,CAAoBC,CAAAA,CAAAA,CAAOC,EAAUC,CAAgBC,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,IAM5H,CAED,GAAAmB,GAAA,yBAAAtB,KAAA,SAAA,CAAAkB,qBAAOA,CACLD,CACAlB,CAAAA,EAAAA,CACAC,EACAC,CACAC,CAAAA,CAAAA,CACAC,CAEA,CAAA,CAAA,GAAMoB,CAAAA,CAAgBrB,CAAAA,CAAAA,EAAkBH,GAClCyB,CAAUrB,CAAAA,CAAAA,EAAkBc,SAAAA,CAAAA,QAAcA,CAAAA,CAAMjB,SAANiB,CAAMjB,iBAANiB,CAAMjB,CAAAA,KAAAA,GAASiB,IAEzDQ,CAAcD,CAAAA,CAAAA,CAAQP,CACtBS,CAAAA,CAAAA,CAAAA,CAAcH,CAAcN,CAAAA,CAAAA,CAAAA,CAC5BU,EAAaV,CAAKW,CAAAA,QAAAA,EAAAA,CAAY,CAC9BC,CAAAA,CAAAA,CAAYZ,CAAKY,CAAAA,SAAAA,CAEvB,GAAIC,CAAAA,CAAa,CAAA,CAAA,CAAA,CAOjB,MALEA,CAAAA,CAAAA,CADE7B,CACW8B,CAAAA,KAAAA,CAAMC,QAAQhC,CAAUA,CAAAA,EAAAA,CAAAA,CAAMiC,QAASR,CAAAA,CAAAA,CAAAA,CAAAA,CAEtCM,KAAMC,CAAAA,OAAAA,CAAQhC,GAASA,CAAM,CAAA,CAAA,CAAA,CAAKA,CAAWyB,IAAAA,CAAAA,CAGtDlB,CAAI,CAAA2B,gBAAA,GAAAA,gBAAA,CAAAzB,sBAAA,gMAECgB,CAAAA,CACIK,CAAAA,CACAH,CAAAA,CACI1B,CAAAA,CACRkC,CAAAA,CAAUN,CAAaO,EAAAA,IAAAA,EAAAA,CAAAA,CAE7BC,CAAWX,CAAAA,CAAAA,CAAAA,CAGlB,EAMO,GAAAJ,GAAA,wBAAAtB,KAAA,8BAAOY,CAAqBf,CAAAA,CAAAA,CAClC,MAAOA,CAAAA,CAAKyC,CAAAA,MAAAA,EAAU,EACvB"}
@@ -1,27 +1,28 @@
1
- import{html as e}from"lit";import{v as t}from"../virtualize-a4a40d96.esm.js";import{unsafeHTML as i}from"lit/directives/unsafe-html.js";import{ifDefined as s}from"lit/directives/if-defined.js";import"lit/directive.js";import"lit/async-directive.js";import"lit/directives/repeat.js";class r{static getVirtualizedContent(i,s,l,o,d,a,c,n,m,v){return e`
2
- <div class="select__options ${s?"select__options__search-enabled":""}">
1
+ import{html as e}from"lit";import{v as t}from"../virtualize-a4a40d96.esm.js";import{unsafeHTML as i}from"lit/directives/unsafe-html.js";import{ifDefined as s}from"lit/directives/if-defined.js";import"lit/directive.js";import"lit/async-directive.js";import"lit/directives/repeat.js";class r{static getVirtualizedContent(i,s,l,o,a,c,d,n,p,v){return e`
2
+ <div part="select-options" class="select__options ${s?"select__options__search-enabled":""}">
3
3
  ${n&&!v?e`
4
- <div class="select__no-results">
5
- ${m||"No results found"}
4
+ <div part="select-no-results" class="select__no-results">
5
+ ${p||"No results found"}
6
6
  </div>
7
7
  `:e`
8
8
  <div
9
9
  class="virtualized"
10
+ part="virtualized"
10
11
  >
11
12
  ${r.shouldUseVirtualizer(i)?e`
12
- ${t({items:i,renderItem:e=>r.getItemRenderFunction(e,l,o,d,a,c),scroller:!0})}
13
+ ${t({items:i,renderItem:e=>r.getItemRenderFunction(e,l,o,a,c,d),scroller:!0})}
13
14
  `:e`
14
- ${i.map((e=>r.getItemRenderFunction(e,l,o,d,a,c)))}
15
+ ${i.map((e=>r.getItemRenderFunction(e,l,o,a,c,d)))}
15
16
  `}
16
17
  </div>
17
18
  `}
18
- </div>`}static getItemRenderFunction(t,r,l,o,d,a){const c=d||r,n=a||(e=>e?.value||e),m=n(t),v=c(t),u=t.disabled||!1,p=t.className;let $=!1;return $=o?Array.isArray(l)&&l.includes(m):(Array.isArray(l)?l[0]:l)===m,e`
19
+ </div>`}static getItemRenderFunction(t,r,l,o,a,c){const d=a||r,n=c||(e=>e?.value||e),p=n(t),v=d(t),m=t.disabled||!1,u=t.className;let $=!1;return $=o?Array.isArray(l)&&l.includes(p):(Array.isArray(l)?l[0]:l)===p,e`
19
20
  <nile-option
20
- value=${m}
21
+ value=${p}
21
22
  .selected=${$}
22
- .disabled=${u}
23
+ .disabled=${m}
23
24
  .showCheckbox=${o}
24
- class=${s(p||void 0)}
25
+ class=${s(u||void 0)}
25
26
  >
26
27
  ${i(v)}
27
28
  </nile-option>
@@ -8,9 +8,7 @@
8
8
  * Resizable Styles Utility
9
9
  * Centralized styles for resizable table functionality
10
10
  */
11
- export declare const resizableHostStyles: import("lit").CSSResult;
11
+ export declare const resizableTableStyles: import("lit").CSSResult;
12
12
  export declare const resizableHeaderStyles: import("lit").CSSResult;
13
13
  export declare const resizerStyles: import("lit").CSSResult;
14
- export declare const headerResizerStyles: import("lit").CSSResult;
15
- export declare const resizableSlotStyles: import("lit").CSSResult;
16
- export declare const tableLayoutStyles: import("lit").CSSResult;
14
+ export declare const resizableCellStyles: import("lit").CSSResult;
@@ -9,15 +9,24 @@ import { css } from 'lit';
9
9
  * Resizable Styles Utility
10
10
  * Centralized styles for resizable table functionality
11
11
  */
12
- export const resizableHostStyles = css `
13
- :host([resizable]) {
14
- position: relative;
15
- overflow: hidden;
12
+ export const resizableTableStyles = css `
13
+ :host([resizable]) .base {
14
+ overflow: unset;
15
+ }
16
+ :host([resizable]) .nile__table__body {
17
+ display: table;
16
18
  table-layout: fixed;
19
+ border-collapse: collapse;
20
+ width: 100%;
21
+ position: relative;
17
22
  }
18
23
  `;
19
24
  export const resizableHeaderStyles = css `
20
- :host([resizable]) {
25
+ :host([resizable]) .headers {
26
+ overflow: hidden;
27
+ white-space: nowrap;
28
+ text-overflow: ellipsis;
29
+ padding: 4px 8px;
21
30
  position: relative;
22
31
  }
23
32
 
@@ -25,13 +34,20 @@ export const resizableHeaderStyles = css `
25
34
  border-right: 1px solid var(--nile-colors-neutral-400);
26
35
  position: relative;
27
36
  }
37
+
38
+ :host([resizable]) .headers {
39
+ overflow: hidden;
40
+ text-overflow: ellipsis;
41
+ white-space: nowrap;
42
+ display: block;
43
+ }
28
44
  `;
29
45
  export const resizerStyles = css `
30
46
  .resizer {
31
47
  position: absolute;
32
48
  right: 0;
33
- top: -1000px;
34
- bottom: -1000px;
49
+ top: 0px;
50
+ bottom: 0px;
35
51
  width: 8px;
36
52
  cursor: col-resize;
37
53
  user-select: none;
@@ -40,7 +56,6 @@ export const resizerStyles = css `
40
56
  z-index: 10;
41
57
  opacity: 0;
42
58
  transition: opacity 0.2s ease;
43
- pointer-events: none;
44
59
  }
45
60
 
46
61
  :host([resizable]):hover .resizer {
@@ -51,7 +66,7 @@ export const resizerStyles = css `
51
66
  .resizer::before {
52
67
  content: '';
53
68
  position: absolute;
54
- right: 3px;
69
+ right: 0px;
55
70
  top: 0;
56
71
  width: 2px;
57
72
  height: 100%;
@@ -79,71 +94,13 @@ export const resizerStyles = css `
79
94
  opacity: 1;
80
95
  width: 3px;
81
96
  }
82
-
83
- :host([resizable]) .column {
84
- overflow: hidden;
85
- text-overflow: ellipsis;
86
- white-space: nowrap;
87
- display: block;
88
- }
89
- `;
90
- export const headerResizerStyles = css `
91
- .resizer {
92
- position: absolute;
93
- right: -2px;
94
- top: -1000px;
95
- bottom: -1000px;
96
- width: 8px;
97
- cursor: ew-resize;
98
- user-select: none;
99
- transition: background-color 0.2s;
100
- z-index: 10;
101
- opacity: 0;
102
- transition: opacity 0.2s ease;
103
- }
104
-
105
- :host([resizable]):hover .resizer {
106
- opacity: 1;
107
- }
108
-
109
- .resizer::before {
110
- content: '';
111
- position: absolute;
112
- height: 100%;
113
- opacity: 0.8;
114
- }
115
-
116
- .resizer.resizing {
117
- border-right: 4px double var(--nile-colors-neutral-400);
118
- background-color: transparent;
119
- opacity: 1;
120
- }
121
-
122
- :host([resizable]) .headers {
123
- text-overflow: ellipsis;
124
- white-space: nowrap;
125
- }
126
97
  `;
127
- export const resizableSlotStyles = css `
128
- :host([resizable]) ::slotted(*) {
129
- overflow: hidden;
130
- text-overflow: ellipsis;
131
- white-space: nowrap;
132
- display: block;
133
- }
134
-
135
- :host([resizable]) ::slotted(span),
136
- :host([resizable]) ::slotted(div),
137
- :host([resizable]) ::slotted(p) {
98
+ export const resizableCellStyles = css `
99
+ :host([resizable]) .column {
138
100
  overflow: hidden;
139
101
  text-overflow: ellipsis;
140
102
  white-space: nowrap;
141
103
  display: block;
142
104
  }
143
105
  `;
144
- export const tableLayoutStyles = css `
145
- .nile__table__body[resizable] {
146
- table-layout: fixed;
147
- }
148
- `;
149
106
  //# sourceMappingURL=resizable-table-styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"resizable-table-styles.js","sourceRoot":"","sources":["../../../src/internal/resizable-table-styles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;GAGG;AAEH,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;CAMrC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAA;;;;;;;;;CASvC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4D/B,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoCrC,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;CAgBrC,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,CAAA;;;;CAInC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * Resizable Styles Utility\n * Centralized styles for resizable table functionality\n */\n\nexport const resizableHostStyles = css`\n :host([resizable]) {\n position: relative;\n overflow: hidden;\n table-layout: fixed;\n }\n`;\n\nexport const resizableHeaderStyles = css`\n :host([resizable]) {\n position: relative;\n }\n\n :host([resizable]) .header__item__wrapper {\n border-right: 1px solid var(--nile-colors-neutral-400);\n position: relative;\n }\n`;\n\nexport const resizerStyles = css`\n .resizer {\n position: absolute;\n right: 0;\n top: -1000px;\n bottom: -1000px;\n width: 8px;\n cursor: col-resize;\n user-select: none;\n background-color: var(--nile-colors-neutral-100);\n transition: background-color 0.2s;\n z-index: 10;\n opacity: 0;\n transition: opacity 0.2s ease;\n pointer-events: none;\n }\n\n :host([resizable]):hover .resizer {\n opacity: 1;\n pointer-events: auto;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n right: 3px;\n top: 0;\n width: 2px;\n height: 100%;\n background-color: var(--nile-colors-neutral-500);\n opacity: 0.8;\n }\n\n .resizer:hover {\n background-color: var(--nile-colors-neutral-400);\n }\n\n .resizer:hover::before {\n background-color: var(--nile-colors-neutral-700);\n opacity: 1;\n }\n\n .resizer.resizing {\n background-color: var(--nile-colors-neutral-400);\n opacity: 1;\n pointer-events: auto;\n }\n\n .resizer.resizing::before {\n background-color: var(--nile-colors-neutral-700);\n opacity: 1;\n width: 3px;\n }\n\n :host([resizable]) .column {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n`;\n\nexport const headerResizerStyles = css`\n .resizer {\n position: absolute;\n right: -2px;\n top: -1000px;\n bottom: -1000px;\n width: 8px;\n cursor: ew-resize;\n user-select: none;\n transition: background-color 0.2s;\n z-index: 10;\n opacity: 0;\n transition: opacity 0.2s ease;\n }\n\n :host([resizable]):hover .resizer {\n opacity: 1;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n height: 100%;\n opacity: 0.8;\n }\n\n .resizer.resizing {\n border-right: 4px double var(--nile-colors-neutral-400);\n background-color: transparent;\n opacity: 1;\n }\n\n :host([resizable]) .headers {\n text-overflow: ellipsis;\n white-space: nowrap;\n }\n`;\n\nexport const resizableSlotStyles = css`\n :host([resizable]) ::slotted(*) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n\n :host([resizable]) ::slotted(span),\n :host([resizable]) ::slotted(div),\n :host([resizable]) ::slotted(p) {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n`;\n\nexport const tableLayoutStyles = css`\n .nile__table__body[resizable] {\n table-layout: fixed;\n }\n`; \n"]}
1
+ {"version":3,"file":"resizable-table-styles.js","sourceRoot":"","sources":["../../../src/internal/resizable-table-styles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAE1B;;;GAGG;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,GAAG,CAAA;;;;;;;;;;;CAWtC,CAAC;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;CAoBvC,CAAC;AAEF,MAAM,CAAC,MAAM,aAAa,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoD/B,CAAC;AAEF,MAAM,CAAC,MAAM,mBAAmB,GAAG,GAAG,CAAA;;;;;;;CAOrC,CAAC","sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { css } from 'lit';\n\n/**\n * Resizable Styles Utility\n * Centralized styles for resizable table functionality\n */\n\nexport const resizableTableStyles = css`\n :host([resizable]) .base {\n overflow: unset;\n }\n :host([resizable]) .nile__table__body {\n display: table;\n table-layout: fixed;\n border-collapse: collapse;\n width: 100%;\n position: relative;\n }\n`;\n\nexport const resizableHeaderStyles = css`\n :host([resizable]) .headers {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n padding: 4px 8px;\n position: relative;\n }\n\n :host([resizable]) .header__item__wrapper {\n border-right: 1px solid var(--nile-colors-neutral-400);\n position: relative;\n }\n\n :host([resizable]) .headers {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n`;\n\nexport const resizerStyles = css`\n .resizer {\n position: absolute;\n right: 0;\n top: 0px;\n bottom: 0px;\n width: 8px;\n cursor: col-resize;\n user-select: none;\n background-color: var(--nile-colors-neutral-100);\n transition: background-color 0.2s;\n z-index: 10;\n opacity: 0;\n transition: opacity 0.2s ease;\n }\n\n :host([resizable]):hover .resizer {\n opacity: 1;\n pointer-events: auto;\n }\n\n .resizer::before {\n content: '';\n position: absolute;\n right: 0px;\n top: 0;\n width: 2px;\n height: 100%;\n background-color: var(--nile-colors-neutral-500);\n opacity: 0.8;\n }\n\n .resizer:hover {\n background-color: var(--nile-colors-neutral-400);\n }\n\n .resizer:hover::before {\n background-color: var(--nile-colors-neutral-700);\n opacity: 1;\n }\n\n .resizer.resizing {\n background-color: var(--nile-colors-neutral-400);\n opacity: 1;\n pointer-events: auto;\n }\n\n .resizer.resizing::before {\n background-color: var(--nile-colors-neutral-700);\n opacity: 1;\n width: 3px;\n }\n`;\n\nexport const resizableCellStyles = css`\n :host([resizable]) .column {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n display: block;\n }\n`;\n"]}
@@ -67,6 +67,7 @@ export declare class NileCodeEditor extends NileElement {
67
67
  render(): TemplateResult;
68
68
  createNewView(emitEvent?: boolean): void;
69
69
  checkForSpaceKey(e: KeyboardEvent): void;
70
+ closeCompletion(): void;
70
71
  handleEscapeKey(e: KeyboardEvent): void;
71
72
  createState(): EditorState;
72
73
  /**
@@ -249,6 +249,11 @@ let NileCodeEditor = class NileCodeEditor extends NileElement {
249
249
  this.isSpacePressed = false;
250
250
  }
251
251
  }
252
+ closeCompletion() {
253
+ if (this.view) {
254
+ closeCompletion(this.view);
255
+ }
256
+ }
252
257
  handleEscapeKey(e) {
253
258
  if (e.key === 'Escape' && this.view && completionStatus(this.view.state) !== null) {
254
259
  e.stopPropagation();