@aquera/nile-elements 1.3.4 → 1.3.5

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 (516) hide show
  1. package/README.md +5 -0
  2. package/demo/index.css +0 -3
  3. package/demo/index.html +329 -21
  4. package/dist/{fixture-1c49c014.cjs.js → fixture-54600b35.cjs.js} +2 -2
  5. package/dist/{fixture-1c49c014.cjs.js.map → fixture-54600b35.cjs.js.map} +1 -1
  6. package/dist/fixture-5b79f853.cjs.js +395 -0
  7. package/dist/fixture-5b79f853.cjs.js.map +1 -0
  8. package/dist/fixture-73855806.cjs.js +395 -0
  9. package/dist/fixture-73855806.cjs.js.map +1 -0
  10. package/dist/fixture-90b199c4.esm.js +569 -0
  11. package/dist/{fixture-985bba12.esm.js → fixture-9871e8a9.esm.js} +1 -1
  12. package/dist/fixture-c1d78368.cjs.js +395 -0
  13. package/dist/fixture-c1d78368.cjs.js.map +1 -0
  14. package/dist/fixture-cf7bfcf5.esm.js +569 -0
  15. package/dist/fixture-dbd66009.cjs.js +395 -0
  16. package/dist/fixture-dbd66009.cjs.js.map +1 -0
  17. package/dist/index.cjs.js +1 -1
  18. package/dist/index.esm.js +1 -1
  19. package/dist/index.js +254 -214
  20. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  21. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  22. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  23. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  24. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  25. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  26. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  27. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  28. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  29. package/dist/nile-button/nile-button.test.esm.js +1 -1
  30. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  31. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  32. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  33. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  34. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  35. package/dist/nile-card/nile-card.test.esm.js +1 -1
  36. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  37. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  38. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  39. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  40. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js +2 -0
  41. package/dist/nile-code-editor/backup_nile-code-editor copy.cjs.js.map +1 -0
  42. package/dist/nile-code-editor/backup_nile-code-editor copy.esm.js +1 -0
  43. package/dist/nile-date-picker/index.cjs.js +1 -1
  44. package/dist/nile-date-picker/index.esm.js +1 -1
  45. package/dist/nile-date-picker/nile-date-picker-utils.cjs.js +2 -0
  46. package/dist/nile-date-picker/nile-date-picker-utils.cjs.js.map +1 -0
  47. package/dist/nile-date-picker/nile-date-picker-utils.esm.js +1 -0
  48. package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
  49. package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
  50. package/dist/nile-date-picker/nile-date-picker.esm.js +7 -3
  51. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  52. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  53. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  54. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  55. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  56. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  57. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  58. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  59. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  60. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  61. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  62. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  63. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  64. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  65. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  66. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  67. package/dist/nile-floating-panel/anchor-manager.cjs.js +2 -0
  68. package/dist/nile-floating-panel/anchor-manager.cjs.js.map +1 -0
  69. package/dist/nile-floating-panel/anchor-manager.esm.js +1 -0
  70. package/dist/nile-floating-panel/content-manager.cjs.js +2 -0
  71. package/dist/nile-floating-panel/content-manager.cjs.js.map +1 -0
  72. package/dist/nile-floating-panel/content-manager.esm.js +1 -0
  73. package/dist/nile-floating-panel/event-manager.cjs.js +2 -0
  74. package/dist/nile-floating-panel/event-manager.cjs.js.map +1 -0
  75. package/dist/nile-floating-panel/event-manager.esm.js +1 -0
  76. package/dist/nile-floating-panel/index.cjs.js +2 -0
  77. package/dist/nile-floating-panel/index.cjs.js.map +1 -0
  78. package/dist/nile-floating-panel/index.esm.js +1 -0
  79. package/dist/nile-floating-panel/nile-floating-panel.cjs.js +2 -0
  80. package/dist/nile-floating-panel/nile-floating-panel.cjs.js.map +1 -0
  81. package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js +2 -0
  82. package/dist/nile-floating-panel/nile-floating-panel.css.cjs.js.map +1 -0
  83. package/dist/nile-floating-panel/nile-floating-panel.css.esm.js +37 -0
  84. package/dist/nile-floating-panel/nile-floating-panel.esm.js +1 -0
  85. package/dist/nile-floating-panel/position-manager.cjs.js +2 -0
  86. package/dist/nile-floating-panel/position-manager.cjs.js.map +1 -0
  87. package/dist/nile-floating-panel/position-manager.esm.js +1 -0
  88. package/dist/nile-floating-panel/style-manager.cjs.js +2 -0
  89. package/dist/nile-floating-panel/style-manager.cjs.js.map +1 -0
  90. package/dist/nile-floating-panel/style-manager.esm.js +1 -0
  91. package/dist/nile-floating-panel/types.cjs.js +2 -0
  92. package/dist/nile-floating-panel/types.cjs.js.map +1 -0
  93. package/dist/nile-floating-panel/types.esm.js +1 -0
  94. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  95. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  96. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  97. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  98. package/dist/nile-grid/nile-grid.types.cjs.js +2 -0
  99. package/dist/nile-grid/nile-grid.types.cjs.js.map +1 -0
  100. package/dist/nile-grid/nile-grid.types.esm.js +1 -0
  101. package/dist/nile-grid-body/index.cjs.js +2 -0
  102. package/dist/nile-grid-body/index.cjs.js.map +1 -0
  103. package/dist/nile-grid-body/index.esm.js +1 -0
  104. package/dist/nile-grid-body/nile-grid-body.cjs.js +2 -0
  105. package/dist/nile-grid-body/nile-grid-body.cjs.js.map +1 -0
  106. package/dist/nile-grid-body/nile-grid-body.css.cjs.js +2 -0
  107. package/dist/nile-grid-body/nile-grid-body.css.cjs.js.map +1 -0
  108. package/dist/nile-grid-body/nile-grid-body.css.esm.js +10 -0
  109. package/dist/nile-grid-body/nile-grid-body.esm.js +5 -0
  110. package/dist/nile-grid-cell-item/index.cjs.js +2 -0
  111. package/dist/nile-grid-cell-item/index.cjs.js.map +1 -0
  112. package/dist/nile-grid-cell-item/index.esm.js +1 -0
  113. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js +2 -0
  114. package/dist/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +1 -0
  115. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js +2 -0
  116. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.cjs.js.map +1 -0
  117. package/dist/nile-grid-cell-item/nile-grid-cell-item.css.esm.js +35 -0
  118. package/dist/nile-grid-cell-item/nile-grid-cell-item.esm.js +12 -0
  119. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js +2 -0
  120. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.cjs.js.map +1 -0
  121. package/dist/nile-grid-cell-item/nile-grid-cell-item.utils.esm.js +1 -0
  122. package/dist/nile-grid-head/index.cjs.js +2 -0
  123. package/dist/nile-grid-head/index.cjs.js.map +1 -0
  124. package/dist/nile-grid-head/index.esm.js +1 -0
  125. package/dist/nile-grid-head/nile-grid-head.cjs.js +2 -0
  126. package/dist/nile-grid-head/nile-grid-head.cjs.js.map +1 -0
  127. package/dist/nile-grid-head/nile-grid-head.css.cjs.js +2 -0
  128. package/dist/nile-grid-head/nile-grid-head.css.cjs.js.map +1 -0
  129. package/dist/nile-grid-head/nile-grid-head.css.esm.js +7 -0
  130. package/dist/nile-grid-head/nile-grid-head.esm.js +5 -0
  131. package/dist/nile-grid-head-item/index.cjs.js +2 -0
  132. package/dist/nile-grid-head-item/index.cjs.js.map +1 -0
  133. package/dist/nile-grid-head-item/index.esm.js +1 -0
  134. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js +2 -0
  135. package/dist/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -0
  136. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js +2 -0
  137. package/dist/nile-grid-head-item/nile-grid-head-item.css.cjs.js.map +1 -0
  138. package/dist/nile-grid-head-item/nile-grid-head-item.css.esm.js +34 -0
  139. package/dist/nile-grid-head-item/nile-grid-head-item.esm.js +12 -0
  140. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +2 -0
  141. package/dist/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +1 -0
  142. package/dist/nile-grid-head-item/nile-grid-head-item.utils.esm.js +1 -0
  143. package/dist/nile-grid-row/index.cjs.js +2 -0
  144. package/dist/nile-grid-row/index.cjs.js.map +1 -0
  145. package/dist/nile-grid-row/index.esm.js +1 -0
  146. package/dist/nile-grid-row/nile-grid-row.cjs.js +2 -0
  147. package/dist/nile-grid-row/nile-grid-row.cjs.js.map +1 -0
  148. package/dist/nile-grid-row/nile-grid-row.css.cjs.js +2 -0
  149. package/dist/nile-grid-row/nile-grid-row.css.cjs.js.map +1 -0
  150. package/dist/nile-grid-row/nile-grid-row.css.esm.js +15 -0
  151. package/dist/nile-grid-row/nile-grid-row.esm.js +7 -0
  152. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  153. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  154. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  155. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  156. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  157. package/dist/nile-input/nile-input.test.esm.js +1 -1
  158. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  159. package/dist/nile-link/nile-link.test.esm.js +1 -1
  160. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  161. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  162. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  163. package/dist/nile-popover/nile-popover.test.esm.js +1 -1
  164. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  165. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  166. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  167. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  168. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  169. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  170. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  171. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  172. package/dist/nile-rich-text-editor/utils.cjs.js +2 -0
  173. package/dist/nile-rich-text-editor/utils.cjs.js.map +1 -0
  174. package/dist/nile-rich-text-editor/utils.esm.js +1 -0
  175. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  176. package/dist/nile-select/nile-select.test.esm.js +1 -1
  177. package/dist/nile-sidebar/index.cjs.js +2 -0
  178. package/dist/nile-sidebar/index.cjs.js.map +1 -0
  179. package/dist/nile-sidebar/index.esm.js +75 -0
  180. package/dist/nile-sidebar-menu/index.cjs.js +2 -0
  181. package/dist/nile-sidebar-menu/index.cjs.js.map +1 -0
  182. package/dist/nile-sidebar-menu/index.esm.js +1 -0
  183. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js +2 -0
  184. package/dist/nile-sidebar-menu/nile-sidebar-menu.cjs.js.map +1 -0
  185. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js +2 -0
  186. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.cjs.js.map +1 -0
  187. package/dist/nile-sidebar-menu/nile-sidebar-menu.css.esm.js +38 -0
  188. package/dist/nile-sidebar-menu/nile-sidebar-menu.esm.js +10 -0
  189. package/dist/nile-sidebar-menu-items/index.cjs.js +2 -0
  190. package/dist/nile-sidebar-menu-items/index.cjs.js.map +1 -0
  191. package/dist/nile-sidebar-menu-items/index.esm.js +1 -0
  192. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js +2 -0
  193. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.cjs.js.map +1 -0
  194. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js +2 -0
  195. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.cjs.js.map +1 -0
  196. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.css.esm.js +36 -0
  197. package/dist/nile-sidebar-menu-items/nile-sidebar-menu-items.esm.js +15 -0
  198. package/dist/nile-sidebar-wrapper/index.cjs.js +2 -0
  199. package/dist/nile-sidebar-wrapper/index.cjs.js.map +1 -0
  200. package/dist/nile-sidebar-wrapper/index.esm.js +1 -0
  201. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js +2 -0
  202. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.cjs.js.map +1 -0
  203. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js +2 -0
  204. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.cjs.js.map +1 -0
  205. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.css.esm.js +105 -0
  206. package/dist/nile-sidebar-wrapper/nile-sidebar-wrapper.esm.js +16 -0
  207. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  208. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  209. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  210. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  211. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  212. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  213. package/dist/nile-virtual-select/group-manager.cjs.js +2 -0
  214. package/dist/nile-virtual-select/group-manager.cjs.js.map +1 -0
  215. package/dist/nile-virtual-select/group-manager.esm.js +1 -0
  216. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +1 -1
  217. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -1
  218. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  219. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +1 -1
  220. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +1 -1
  221. package/dist/nile-virtual-select/portal-manager.cjs.js +1 -1
  222. package/dist/nile-virtual-select/portal-manager.cjs.js.map +1 -1
  223. package/dist/nile-virtual-select/portal-manager.esm.js +1 -1
  224. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js +2 -0
  225. package/dist/nile-virtual-select/temp_nile-virtual-select copy.cjs.js.map +1 -0
  226. package/dist/nile-virtual-select/temp_nile-virtual-select copy.esm.js +231 -0
  227. package/dist/scopedElementsWrapper-1bff26ef.cjs.js +2 -0
  228. package/dist/scopedElementsWrapper-1bff26ef.cjs.js.map +1 -0
  229. package/dist/scopedElementsWrapper-4c29be11.esm.js +7 -0
  230. package/dist/scopedElementsWrapper-a112fc73.cjs.js +6 -0
  231. package/dist/scopedElementsWrapper-a112fc73.cjs.js.map +1 -0
  232. package/dist/scopedElementsWrapper-c815042c.cjs.js +2 -0
  233. package/dist/scopedElementsWrapper-c815042c.cjs.js.map +1 -0
  234. package/dist/src/index.d.ts +1 -0
  235. package/dist/src/index.js +1 -0
  236. package/dist/src/index.js.map +1 -1
  237. package/dist/src/internal/portal-manager.d.ts +53 -0
  238. package/dist/src/internal/portal-manager.js +196 -0
  239. package/dist/src/internal/portal-manager.js.map +1 -0
  240. package/dist/src/internal/portal.d.ts +60 -0
  241. package/dist/src/internal/portal.js +199 -0
  242. package/dist/src/internal/portal.js.map +1 -0
  243. package/dist/src/internal/resizable-helper.d.ts +59 -0
  244. package/dist/src/internal/resizable-helper.js +115 -0
  245. package/dist/src/internal/resizable-helper.js.map +1 -0
  246. package/dist/src/internal/resizable-styles.d.ts +16 -0
  247. package/dist/src/internal/resizable-styles.js +144 -0
  248. package/dist/src/internal/resizable-styles.js.map +1 -0
  249. package/dist/src/internal/virtualizer-error-handler.d.ts +30 -0
  250. package/dist/src/internal/virtualizer-error-handler.js +82 -0
  251. package/dist/src/internal/virtualizer-error-handler.js.map +1 -0
  252. package/dist/src/lib/index.d.ts +7 -0
  253. package/dist/src/lib/index.js +8 -0
  254. package/dist/src/lib/index.js.map +1 -0
  255. package/dist/src/lib/virtualize.d.ts +32 -0
  256. package/dist/src/lib/virtualize.js +105 -0
  257. package/dist/src/lib/virtualize.js.map +1 -0
  258. package/dist/src/lib/virtualize.test.d.ts +7 -0
  259. package/dist/src/lib/virtualize.test.js +57 -0
  260. package/dist/src/lib/virtualize.test.js.map +1 -0
  261. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +17 -0
  262. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +310 -0
  263. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +34 -0
  264. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +31 -0
  265. package/dist/src/nile-code-editor/Old_theme copy.d.ts +191 -0
  266. package/dist/src/nile-code-editor/Old_theme copy.js +193 -0
  267. package/dist/src/nile-code-editor/Old_theme copy.js.map +1 -0
  268. package/dist/src/nile-code-editor/backup_nile-code-editor copy.d.ts +0 -0
  269. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js +675 -0
  270. package/dist/src/nile-code-editor/backup_nile-code-editor copy.js.map +1 -0
  271. package/dist/src/nile-code-editor/theme copy.d.ts +191 -0
  272. package/dist/src/nile-code-editor/theme copy.js +193 -0
  273. package/dist/src/nile-code-editor/theme copy.js.map +1 -0
  274. package/dist/src/nile-date-picker/nile-date-picker-utils.d.ts +7 -0
  275. package/dist/src/nile-date-picker/nile-date-picker-utils.js +84 -0
  276. package/dist/src/nile-date-picker/nile-date-picker-utils.js.map +1 -0
  277. package/dist/src/nile-date-picker/nile-date-picker.d.ts +12 -12
  278. package/dist/src/nile-date-picker/nile-date-picker.js +96 -7
  279. package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
  280. package/dist/src/nile-floating-panel/anchor-manager.d.ts +6 -0
  281. package/dist/src/nile-floating-panel/anchor-manager.js +27 -0
  282. package/dist/src/nile-floating-panel/anchor-manager.js.map +1 -0
  283. package/dist/src/nile-floating-panel/content-manager.d.ts +5 -0
  284. package/dist/src/nile-floating-panel/content-manager.js +44 -0
  285. package/dist/src/nile-floating-panel/content-manager.js.map +1 -0
  286. package/dist/src/nile-floating-panel/event-manager.d.ts +14 -0
  287. package/dist/src/nile-floating-panel/event-manager.js +52 -0
  288. package/dist/src/nile-floating-panel/event-manager.js.map +1 -0
  289. package/dist/src/nile-floating-panel/index.d.ts +1 -0
  290. package/dist/src/nile-floating-panel/index.js +2 -0
  291. package/dist/src/nile-floating-panel/index.js.map +1 -0
  292. package/dist/src/nile-floating-panel/nile-floating-panel.css.d.ts +10 -0
  293. package/dist/src/nile-floating-panel/nile-floating-panel.css.js +47 -0
  294. package/dist/src/nile-floating-panel/nile-floating-panel.css.js.map +1 -0
  295. package/dist/src/nile-floating-panel/nile-floating-panel.d.ts +43 -0
  296. package/dist/src/nile-floating-panel/nile-floating-panel.js +238 -0
  297. package/dist/src/nile-floating-panel/nile-floating-panel.js.map +1 -0
  298. package/dist/src/nile-floating-panel/position-manager.d.ts +17 -0
  299. package/dist/src/nile-floating-panel/position-manager.js +72 -0
  300. package/dist/src/nile-floating-panel/position-manager.js.map +1 -0
  301. package/dist/src/nile-floating-panel/style-manager.d.ts +9 -0
  302. package/dist/src/nile-floating-panel/style-manager.js +44 -0
  303. package/dist/src/nile-floating-panel/style-manager.js.map +1 -0
  304. package/dist/src/nile-floating-panel/types.d.ts +11 -0
  305. package/dist/src/nile-floating-panel/types.js +2 -0
  306. package/dist/src/nile-floating-panel/types.js.map +1 -0
  307. package/dist/src/nile-grid/data-processor.d.ts +37 -0
  308. package/dist/src/nile-grid/data-processor.js +122 -0
  309. package/dist/src/nile-grid/data-processor.js.map +1 -0
  310. package/dist/src/nile-grid/event-handlers.d.ts +35 -0
  311. package/dist/src/nile-grid/event-handlers.js +158 -0
  312. package/dist/src/nile-grid/event-handlers.js.map +1 -0
  313. package/dist/src/nile-grid/nile-grid.types.d.ts +3 -0
  314. package/dist/src/nile-grid/nile-grid.types.js +2 -0
  315. package/dist/src/nile-grid/nile-grid.types.js.map +1 -0
  316. package/dist/src/nile-grid/renderer.d.ts +8 -0
  317. package/dist/src/nile-grid/renderer.js +78 -0
  318. package/dist/src/nile-grid/renderer.js.map +1 -0
  319. package/dist/src/nile-grid/resize-handler.d.ts +4 -0
  320. package/dist/src/nile-grid/resize-handler.js +36 -0
  321. package/dist/src/nile-grid/resize-handler.js.map +1 -0
  322. package/dist/src/nile-grid/types.d.ts +32 -0
  323. package/dist/src/nile-grid/types.js +2 -0
  324. package/dist/src/nile-grid/types.js.map +1 -0
  325. package/dist/src/nile-grid/utils.d.ts +4 -0
  326. package/dist/src/nile-grid/utils.js +32 -0
  327. package/dist/src/nile-grid/utils.js.map +1 -0
  328. package/dist/src/nile-grid-body/index.d.ts +1 -0
  329. package/dist/src/nile-grid-body/index.js +2 -0
  330. package/dist/src/nile-grid-body/index.js.map +1 -0
  331. package/dist/src/nile-grid-body/nile-grid-body.css.d.ts +12 -0
  332. package/dist/src/nile-grid-body/nile-grid-body.css.js +22 -0
  333. package/dist/src/nile-grid-body/nile-grid-body.css.js.map +1 -0
  334. package/dist/src/nile-grid-body/nile-grid-body.d.ts +29 -0
  335. package/dist/src/nile-grid-body/nile-grid-body.js +43 -0
  336. package/dist/src/nile-grid-body/nile-grid-body.js.map +1 -0
  337. package/dist/src/nile-grid-cell-item/index.d.ts +1 -0
  338. package/dist/src/nile-grid-cell-item/index.js +2 -0
  339. package/dist/src/nile-grid-cell-item/index.js.map +1 -0
  340. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.d.ts +12 -0
  341. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js +47 -0
  342. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.css.js.map +1 -0
  343. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.d.ts +36 -0
  344. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js +93 -0
  345. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.js.map +1 -0
  346. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.d.ts +10 -0
  347. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js +34 -0
  348. package/dist/src/nile-grid-cell-item/nile-grid-cell-item.utils.js.map +1 -0
  349. package/dist/src/nile-grid-head/index.d.ts +1 -0
  350. package/dist/src/nile-grid-head/index.js +2 -0
  351. package/dist/src/nile-grid-head/index.js.map +1 -0
  352. package/dist/src/nile-grid-head/nile-grid-head.css.d.ts +12 -0
  353. package/dist/src/nile-grid-head/nile-grid-head.css.js +19 -0
  354. package/dist/src/nile-grid-head/nile-grid-head.css.js.map +1 -0
  355. package/dist/src/nile-grid-head/nile-grid-head.d.ts +28 -0
  356. package/dist/src/nile-grid-head/nile-grid-head.js +41 -0
  357. package/dist/src/nile-grid-head/nile-grid-head.js.map +1 -0
  358. package/dist/src/nile-grid-head-item/index.d.ts +1 -0
  359. package/dist/src/nile-grid-head-item/index.js +2 -0
  360. package/dist/src/nile-grid-head-item/index.js.map +1 -0
  361. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.d.ts +12 -0
  362. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js +46 -0
  363. package/dist/src/nile-grid-head-item/nile-grid-head-item.css.js.map +1 -0
  364. package/dist/src/nile-grid-head-item/nile-grid-head-item.d.ts +37 -0
  365. package/dist/src/nile-grid-head-item/nile-grid-head-item.js +100 -0
  366. package/dist/src/nile-grid-head-item/nile-grid-head-item.js.map +1 -0
  367. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.d.ts +10 -0
  368. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js +34 -0
  369. package/dist/src/nile-grid-head-item/nile-grid-head-item.utils.js.map +1 -0
  370. package/dist/src/nile-grid-row/index.d.ts +1 -0
  371. package/dist/src/nile-grid-row/index.js +2 -0
  372. package/dist/src/nile-grid-row/index.js.map +1 -0
  373. package/dist/src/nile-grid-row/nile-grid-row.css.d.ts +12 -0
  374. package/dist/src/nile-grid-row/nile-grid-row.css.js +27 -0
  375. package/dist/src/nile-grid-row/nile-grid-row.css.js.map +1 -0
  376. package/dist/src/nile-grid-row/nile-grid-row.d.ts +29 -0
  377. package/dist/src/nile-grid-row/nile-grid-row.js +45 -0
  378. package/dist/src/nile-grid-row/nile-grid-row.js.map +1 -0
  379. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +47 -0
  380. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +16 -0
  381. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +75 -0
  382. package/dist/src/nile-menu/portal-manager.d.ts +39 -0
  383. package/dist/src/nile-menu/portal-manager.js +340 -0
  384. package/dist/src/nile-menu/portal-manager.js.map +1 -0
  385. package/dist/src/nile-menu/portal-utils.d.ts +21 -0
  386. package/dist/src/nile-menu/portal-utils.js +128 -0
  387. package/dist/src/nile-menu/portal-utils.js.map +1 -0
  388. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +22 -0
  389. package/dist/src/nile-popover/popover-portal-handler.d.ts +21 -0
  390. package/dist/src/nile-popover/popover-portal-handler.js +106 -0
  391. package/dist/src/nile-popover/popover-portal-handler.js.map +1 -0
  392. package/dist/src/nile-portal-wrapper/index.d.ts +1 -0
  393. package/dist/src/nile-portal-wrapper/index.js +2 -0
  394. package/dist/src/nile-portal-wrapper/index.js.map +1 -0
  395. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.d.ts +47 -0
  396. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js +451 -0
  397. package/dist/src/nile-portal-wrapper/nile-portal-wrapper.js.map +1 -0
  398. package/dist/src/nile-rich-text-editor/utils.d.ts +13 -0
  399. package/dist/src/nile-rich-text-editor/utils.js +538 -0
  400. package/dist/src/nile-rich-text-editor/utils.js.map +1 -0
  401. package/dist/src/nile-select/body-append-manager.d.ts +90 -0
  402. package/dist/src/nile-select/body-append-manager.js +298 -0
  403. package/dist/src/nile-select/body-append-manager.js.map +1 -0
  404. package/dist/src/nile-sidebar/index.d.ts +28 -0
  405. package/dist/src/nile-sidebar/index.js +116 -0
  406. package/dist/src/nile-sidebar/index.js.map +1 -0
  407. package/dist/src/nile-sidebar-menu/index.d.ts +1 -0
  408. package/dist/src/nile-sidebar-menu/index.js +2 -0
  409. package/dist/src/nile-sidebar-menu/index.js.map +1 -0
  410. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.d.ts +12 -0
  411. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js +47 -0
  412. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.css.js.map +1 -0
  413. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.d.ts +37 -0
  414. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js +84 -0
  415. package/dist/src/nile-sidebar-menu/nile-sidebar-menu.js.map +1 -0
  416. package/dist/src/nile-sidebar-menu-items/index.d.ts +1 -0
  417. package/dist/src/nile-sidebar-menu-items/index.js +2 -0
  418. package/dist/src/nile-sidebar-menu-items/index.js.map +1 -0
  419. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.d.ts +12 -0
  420. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js +45 -0
  421. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.css.js.map +1 -0
  422. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.d.ts +35 -0
  423. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js +78 -0
  424. package/dist/src/nile-sidebar-menu-items/nile-sidebar-menu-items.js.map +1 -0
  425. package/dist/src/nile-sidebar-wrapper/index.d.ts +1 -0
  426. package/dist/src/nile-sidebar-wrapper/index.js +2 -0
  427. package/dist/src/nile-sidebar-wrapper/index.js.map +1 -0
  428. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.d.ts +12 -0
  429. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js +114 -0
  430. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.css.js.map +1 -0
  431. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.d.ts +35 -0
  432. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js +89 -0
  433. package/dist/src/nile-sidebar-wrapper/nile-sidebar-wrapper.js.map +1 -0
  434. package/dist/src/nile-table-body/virtual-scroll-helper.d.ts +9 -0
  435. package/dist/src/nile-table-body/virtual-scroll-helper.js +24 -0
  436. package/dist/src/nile-table-body/virtual-scroll-helper.js.map +1 -0
  437. package/dist/src/nile-virtual-select/body-append-helper.d.ts +16 -0
  438. package/dist/src/nile-virtual-select/body-append-helper.js +95 -0
  439. package/dist/src/nile-virtual-select/body-append-helper.js.map +1 -0
  440. package/dist/src/nile-virtual-select/group-manager.d.ts +32 -0
  441. package/dist/src/nile-virtual-select/group-manager.js +134 -0
  442. package/dist/src/nile-virtual-select/group-manager.js.map +1 -0
  443. package/dist/src/nile-virtual-select/nile-virtual-select.js +1 -1
  444. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -1
  445. package/dist/src/nile-virtual-select/portal-manager.js +1 -1
  446. package/dist/src/nile-virtual-select/portal-manager.js.map +1 -1
  447. package/dist/src/nile-virtual-select/portal-utils.d.ts +65 -0
  448. package/dist/src/nile-virtual-select/portal-utils.js +376 -0
  449. package/dist/src/nile-virtual-select/portal-utils.js.map +1 -0
  450. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.d.ts +273 -0
  451. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js +1305 -0
  452. package/dist/src/nile-virtual-select/temp_nile-virtual-select copy.js.map +1 -0
  453. package/dist/src/nile-virtual-select/virtualizer-error-handler.d.ts +21 -0
  454. package/dist/src/nile-virtual-select/virtualizer-error-handler.js +56 -0
  455. package/dist/src/nile-virtual-select/virtualizer-error-handler.js.map +1 -0
  456. package/dist/src/nile-virtual-select-disabled/index.d.ts +1 -0
  457. package/dist/src/nile-virtual-select-disabled/index.js +2 -0
  458. package/dist/src/nile-virtual-select-disabled/index.js.map +1 -0
  459. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.d.ts +12 -0
  460. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js +538 -0
  461. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.css.js.map +1 -0
  462. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.d.ts +299 -0
  463. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js +1441 -0
  464. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.js.map +1 -0
  465. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.d.ts +7 -0
  466. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js +631 -0
  467. package/dist/src/nile-virtual-select-disabled/nile-virtual-select.test.js.map +1 -0
  468. package/dist/src/nile-virtual-select-disabled/portal-manager.d.ts +45 -0
  469. package/dist/src/nile-virtual-select-disabled/portal-manager.js +333 -0
  470. package/dist/src/nile-virtual-select-disabled/portal-manager.js.map +1 -0
  471. package/dist/src/nile-virtual-select-disabled/renderer.d.ts +16 -0
  472. package/dist/src/nile-virtual-select-disabled/renderer.js +79 -0
  473. package/dist/src/nile-virtual-select-disabled/renderer.js.map +1 -0
  474. package/dist/src/nile-virtual-select-disabled/search-manager.d.ts +12 -0
  475. package/dist/src/nile-virtual-select-disabled/search-manager.js +40 -0
  476. package/dist/src/nile-virtual-select-disabled/search-manager.js.map +1 -0
  477. package/dist/src/nile-virtual-select-disabled/selection-manager.d.ts +12 -0
  478. package/dist/src/nile-virtual-select-disabled/selection-manager.js +64 -0
  479. package/dist/src/nile-virtual-select-disabled/selection-manager.js.map +1 -0
  480. package/dist/src/nile-virtual-select-disabled/types.d.ts +50 -0
  481. package/dist/src/nile-virtual-select-disabled/types.js +8 -0
  482. package/dist/src/nile-virtual-select-disabled/types.js.map +1 -0
  483. package/dist/src/nile-virtual-table-body/index.d.ts +2 -0
  484. package/dist/src/nile-virtual-table-body/index.js +3 -0
  485. package/dist/src/nile-virtual-table-body/index.js.map +1 -0
  486. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.d.ts +1 -0
  487. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js +44 -0
  488. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.css.js.map +1 -0
  489. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.d.ts +50 -0
  490. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js +135 -0
  491. package/dist/src/nile-virtual-table-body/nile-virtual-table-body.js.map +1 -0
  492. package/dist/src/nile-virtual-table-body/renderer.d.ts +16 -0
  493. package/dist/src/nile-virtual-table-body/renderer.js +49 -0
  494. package/dist/src/nile-virtual-table-body/renderer.js.map +1 -0
  495. package/dist/src/utilities/stepper-utils.d.ts +71 -0
  496. package/dist/src/utilities/stepper-utils.js +108 -0
  497. package/dist/src/utilities/stepper-utils.js.map +1 -0
  498. package/dist/src/version.js +1 -1
  499. package/dist/src/version.js.map +1 -1
  500. package/dist/tsconfig.tsbuildinfo +1 -1
  501. package/package.json +1 -1
  502. package/src/index.ts +2 -1
  503. package/src/nile-date-picker/nile-date-picker-utils.ts +105 -0
  504. package/src/nile-date-picker/nile-date-picker.ts +114 -8
  505. package/src/nile-floating-panel/anchor-manager.ts +33 -0
  506. package/src/nile-floating-panel/content-manager.ts +54 -0
  507. package/src/nile-floating-panel/event-manager.ts +74 -0
  508. package/src/nile-floating-panel/index.ts +2 -0
  509. package/src/nile-floating-panel/nile-floating-panel.css.ts +50 -0
  510. package/src/nile-floating-panel/nile-floating-panel.ts +291 -0
  511. package/src/nile-floating-panel/position-manager.ts +102 -0
  512. package/src/nile-floating-panel/style-manager.ts +54 -0
  513. package/src/nile-floating-panel/types.ts +15 -0
  514. package/src/nile-virtual-select/nile-virtual-select.ts +1 -1
  515. package/src/nile-virtual-select/portal-manager.ts +1 -1
  516. package/vscode-html-custom-data.json +71 -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-1c49c014.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-file-preview.cjs.js","tslib","./nile-file-preview.css.cjs.js","../internal/nile-element.cjs.js","lit/decorators.js","./utils/nile-file-preview.util.cjs.js","./types/nile-file-preview.enums.cjs.js","./nile-file-preview.template.cjs.js"],function(_export,_context){"use strict";var e,i,t,s,_templateObject,_templateObject2;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(_fixture005CjsJs){e=_fixture005CjsJs.f;i=_fixture005CjsJs.a;t=_fixture005CjsJs.h;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFilePreviewCjsJs){},function(_tslib){},function(_nileFilePreviewCssCjsJs){},function(_internalNileElementCjsJs){},function(_litDecoratorsJs){},function(_utilsNileFilePreviewUtilCjsJs){},function(_typesNileFilePreviewEnumsCjsJs){},function(_nileFilePreviewTemplateCjsJs){}],execute:function execute(){describe("<nile-preview>",function(){var l;beforeEach(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(s(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-file-preview></nile-file-preview>"]))));case 2:l=_context2.sent;case 3:case"end":return _context2.stop();}},_callee);}))),it("passes accessibility test",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(l).to.be.accessible();case 2:case"end":return _context3.stop();}},_callee2);}))),it("renders with the correct tag name",function(){i(l.tagName.toLowerCase()).to.equal("nile-preview");}),it("renders with slot content when provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _o$0$textContent;var r,n,o;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:r="Test Content";_context4.next=3;return e(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-file-preview>","</nile-file-preview>"])),r));case 3:l=_context4.sent;n=l.shadowRoot.querySelector("slot");t.exists(n,"Slot should exist");o=n.assignedNodes({flatten:!0});i(o.length).to.be.greaterThan(0),i((_o$0$textContent=o[0].textContent)===null||_o$0$textContent===void 0?void 0:_o$0$textContent.trim()).to.equal(r);case 8:case"end":return _context4.stop();}},_callee3);})));});}};});
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-54600b35.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-file-preview.cjs.js","tslib","./nile-file-preview.css.cjs.js","../internal/nile-element.cjs.js","lit/decorators.js","./utils/nile-file-preview.util.cjs.js","./types/nile-file-preview.enums.cjs.js","./nile-file-preview.template.cjs.js"],function(_export,_context){"use strict";var e,i,t,s,_templateObject,_templateObject2;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(_fixture005CjsJs){e=_fixture005CjsJs.f;i=_fixture005CjsJs.a;t=_fixture005CjsJs.h;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFilePreviewCjsJs){},function(_tslib){},function(_nileFilePreviewCssCjsJs){},function(_internalNileElementCjsJs){},function(_litDecoratorsJs){},function(_utilsNileFilePreviewUtilCjsJs){},function(_typesNileFilePreviewEnumsCjsJs){},function(_nileFilePreviewTemplateCjsJs){}],execute:function execute(){describe("<nile-preview>",function(){var l;beforeEach(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(s(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-file-preview></nile-file-preview>"]))));case 2:l=_context2.sent;case 3:case"end":return _context2.stop();}},_callee);}))),it("passes accessibility test",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(l).to.be.accessible();case 2:case"end":return _context3.stop();}},_callee2);}))),it("renders with the correct tag name",function(){i(l.tagName.toLowerCase()).to.equal("nile-preview");}),it("renders with slot content when provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _o$0$textContent;var r,n,o;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:r="Test Content";_context4.next=3;return e(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-file-preview>","</nile-file-preview>"])),r));case 3:l=_context4.sent;n=l.shadowRoot.querySelector("slot");t.exists(n,"Slot should exist");o=n.assignedNodes({flatten:!0});i(o.length).to.be.greaterThan(0),i((_o$0$textContent=o[0].textContent)===null||_o$0$textContent===void 0?void 0:_o$0$textContent.trim()).to.equal(r);case 8:case"end":return _context4.stop();}},_callee3);})));});}};});
2
2
  //# sourceMappingURL=nile-file-preview.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as e,a as i,h as t}from"../fixture-985bba12.esm.js";import{html as s}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-file-preview.esm.js";import"tslib";import"./nile-file-preview.css.esm.js";import"../internal/nile-element.esm.js";import"lit/decorators.js";import"./utils/nile-file-preview.util.esm.js";import"./types/nile-file-preview.enums.esm.js";import"./nile-file-preview.template.esm.js";describe("<nile-preview>",(()=>{let l;beforeEach((async()=>{l=await e(s`<nile-file-preview></nile-file-preview>`)})),it("passes accessibility test",(async()=>{await i(l).to.be.accessible()})),it("renders with the correct tag name",(()=>{i(l.tagName.toLowerCase()).to.equal("nile-preview")})),it("renders with slot content when provided",(async()=>{const r="Test Content";l=await e(s`<nile-file-preview>${r}</nile-file-preview>`);const n=l.shadowRoot.querySelector("slot");t.exists(n,"Slot should exist");const m=n.assignedNodes({flatten:!0});i(m.length).to.be.greaterThan(0),i(m[0].textContent?.trim()).to.equal(r)}))}));
1
+ import{f as e,a as i,h as t}from"../fixture-9871e8a9.esm.js";import{html as s}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-file-preview.esm.js";import"tslib";import"./nile-file-preview.css.esm.js";import"../internal/nile-element.esm.js";import"lit/decorators.js";import"./utils/nile-file-preview.util.esm.js";import"./types/nile-file-preview.enums.esm.js";import"./nile-file-preview.template.esm.js";describe("<nile-preview>",(()=>{let l;beforeEach((async()=>{l=await e(s`<nile-file-preview></nile-file-preview>`)})),it("passes accessibility test",(async()=>{await i(l).to.be.accessible()})),it("renders with the correct tag name",(()=>{i(l.tagName.toLowerCase()).to.equal("nile-preview")})),it("renders with slot content when provided",(async()=>{const r="Test Content";l=await e(s`<nile-file-preview>${r}</nile-file-preview>`);const n=l.shadowRoot.querySelector("slot");t.exists(n,"Slot should exist");const m=n.assignedNodes({flatten:!0});i(m.length).to.be.greaterThan(0),i(m[0].textContent?.trim()).to.equal(r)}))}));
@@ -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-1c49c014.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-file-upload.cjs.js","tslib","./nile-file-upload.css.cjs.js","../internal/nile-element.cjs.js","./utils/drag-drop.util.cjs.js","./utils/file-validation.util.cjs.js","./types/file-upload.enums.cjs.js","lit/decorators.js","./nile-file-upload.template.cjs.js","../lit-html-9b3af046.cjs.js"],function(_export,_context){"use strict";var t,i,e,l,_templateObject,_templateObject2;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(_fixture005CjsJs){t=_fixture005CjsJs.f;i=_fixture005CjsJs.a;e=_fixture005CjsJs.h;},function(_litStaticHtmlJs){l=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFileUploadCjsJs){},function(_tslib){},function(_nileFileUploadCssCjsJs){},function(_internalNileElementCjsJs){},function(_utilsDragDropUtilCjsJs){},function(_utilsFileValidationUtilCjsJs){},function(_typesFileUploadEnumsCjsJs){},function(_litDecoratorsJs){},function(_nileFileUploadTemplateCjsJs){},function(_litHtml003CjsJs){}],execute:function execute(){describe("<nile-file-upload>",function(){var s;beforeEach(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-file-upload></nile-file-upload>"]))));case 2:s=_context2.sent;case 3:case"end":return _context2.stop();}},_callee);}))),it("passes accessibility test",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(s).to.be.accessible();case 2:case"end":return _context3.stop();}},_callee2);}))),it("renders with the correct tag name",function(){i(s.tagName.toLowerCase()).to.equal("nile-file-upload");}),it("renders with slot content when provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _r$0$textContent;var o,a,r;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o="Test Content";_context4.next=3;return t(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-file-upload>","</nile-file-upload>"])),o));case 3:s=_context4.sent;a=s.shadowRoot.querySelector("slot");e.exists(a,"Slot should exist");r=a.assignedNodes({flatten:!0});i(r.length).to.be.greaterThan(0),i((_r$0$textContent=r[0].textContent)===null||_r$0$textContent===void 0?void 0:_r$0$textContent.trim()).to.equal(o);case 8:case"end":return _context4.stop();}},_callee3);})));});}};});
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-54600b35.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-file-upload.cjs.js","tslib","./nile-file-upload.css.cjs.js","../internal/nile-element.cjs.js","./utils/drag-drop.util.cjs.js","./utils/file-validation.util.cjs.js","./types/file-upload.enums.cjs.js","lit/decorators.js","./nile-file-upload.template.cjs.js","../lit-html-9b3af046.cjs.js"],function(_export,_context){"use strict";var t,i,e,l,_templateObject,_templateObject2;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(_fixture005CjsJs){t=_fixture005CjsJs.f;i=_fixture005CjsJs.a;e=_fixture005CjsJs.h;},function(_litStaticHtmlJs){l=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFileUploadCjsJs){},function(_tslib){},function(_nileFileUploadCssCjsJs){},function(_internalNileElementCjsJs){},function(_utilsDragDropUtilCjsJs){},function(_utilsFileValidationUtilCjsJs){},function(_typesFileUploadEnumsCjsJs){},function(_litDecoratorsJs){},function(_nileFileUploadTemplateCjsJs){},function(_litHtml003CjsJs){}],execute:function execute(){describe("<nile-file-upload>",function(){var s;beforeEach(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-file-upload></nile-file-upload>"]))));case 2:s=_context2.sent;case 3:case"end":return _context2.stop();}},_callee);}))),it("passes accessibility test",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(s).to.be.accessible();case 2:case"end":return _context3.stop();}},_callee2);}))),it("renders with the correct tag name",function(){i(s.tagName.toLowerCase()).to.equal("nile-file-upload");}),it("renders with slot content when provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _r$0$textContent;var o,a,r;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o="Test Content";_context4.next=3;return t(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-file-upload>","</nile-file-upload>"])),o));case 3:s=_context4.sent;a=s.shadowRoot.querySelector("slot");e.exists(a,"Slot should exist");r=a.assignedNodes({flatten:!0});i(r.length).to.be.greaterThan(0),i((_r$0$textContent=r[0].textContent)===null||_r$0$textContent===void 0?void 0:_r$0$textContent.trim()).to.equal(o);case 8:case"end":return _context4.stop();}},_callee3);})));});}};});
2
2
  //# sourceMappingURL=nile-file-upload.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as t,a as i,h as e}from"../fixture-985bba12.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";import"./nile-file-upload.esm.js";import"tslib";import"./nile-file-upload.css.esm.js";import"../internal/nile-element.esm.js";import"./utils/drag-drop.util.esm.js";import"./utils/file-validation.util.esm.js";import"./types/file-upload.enums.esm.js";import"lit/decorators.js";import"./nile-file-upload.template.esm.js";import"../lit-html-39a6718c.esm.js";describe("<nile-file-upload>",(()=>{let s;beforeEach((async()=>{s=await t(l`<nile-file-upload></nile-file-upload>`)})),it("passes accessibility test",(async()=>{await i(s).to.be.accessible()})),it("renders with the correct tag name",(()=>{i(s.tagName.toLowerCase()).to.equal("nile-file-upload")})),it("renders with slot content when provided",(async()=>{const o="Test Content";s=await t(l`<nile-file-upload>${o}</nile-file-upload>`);const a=s.shadowRoot.querySelector("slot");e.exists(a,"Slot should exist");const r=a.assignedNodes({flatten:!0});i(r.length).to.be.greaterThan(0),i(r[0].textContent?.trim()).to.equal(o)}))}));
1
+ import{f as t,a as i,h as e}from"../fixture-9871e8a9.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";import"./nile-file-upload.esm.js";import"tslib";import"./nile-file-upload.css.esm.js";import"../internal/nile-element.esm.js";import"./utils/drag-drop.util.esm.js";import"./utils/file-validation.util.esm.js";import"./types/file-upload.enums.esm.js";import"lit/decorators.js";import"./nile-file-upload.template.esm.js";import"../lit-html-39a6718c.esm.js";describe("<nile-file-upload>",(()=>{let s;beforeEach((async()=>{s=await t(l`<nile-file-upload></nile-file-upload>`)})),it("passes accessibility test",(async()=>{await i(s).to.be.accessible()})),it("renders with the correct tag name",(()=>{i(s.tagName.toLowerCase()).to.equal("nile-file-upload")})),it("renders with slot content when provided",(async()=>{const o="Test Content";s=await t(l`<nile-file-upload>${o}</nile-file-upload>`);const a=s.shadowRoot.querySelector("slot");e.exists(a,"Slot should exist");const r=a.assignedNodes({flatten:!0});i(r.length).to.be.greaterThan(0),i(r[0].textContent?.trim()).to.equal(o)}))}));
@@ -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-1c49c014.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-filter-chip.cjs.js","tslib","lit/decorators.js","../internal/nile-element.cjs.js","./nile-filter-chip.css.cjs.js"],function(_export,_context){"use strict";var e,i,l,t,a,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8;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(_fixture005CjsJs){e=_fixture005CjsJs.f;i=_fixture005CjsJs.a;l=_fixture005CjsJs.o;},function(_litStaticHtmlJs){t=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFilterChipCjsJs){a=_nileFilterChipCjsJs.N;},function(_tslib){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){},function(_nileFilterChipCssCjsJs){}],execute:function execute(){describe("<nile-filter-chip>",function(){afterEach(function(){a.activeChips=[];}),it("registers and unregisters itself in activeChips",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-filter-chip label=\"L\" value=\"T\"></nile-filter-chip>\n "]))));case 2:l=_context2.sent;i(a.activeChips).to.include(l);l.remove();_context2.next=7;return l.updateComplete;case 7:i(a.activeChips).to.not.include(l);case 8:case"end":return _context2.stop();}},_callee);}))),it("renders fallback label and value",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var l,a,n;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return e(t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-filter-chip label=\"MyLabel\" value=\"MyText\"></nile-filter-chip>\n "]))));case 2:l=_context3.sent;a=l.shadowRoot.querySelector(".label");n=l.shadowRoot.querySelector(".value");i(a.textContent).to.equal("MyLabel:"),i(n.textContent.trim()).to.equal("MyText");case 6:case"end":return _context3.stop();}},_callee2);}))),it("renders slotted label and value over fallback",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var l,a,n;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return e(t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-filter-chip>\n <span slot=\"label\">SLOT-LBL</span>\n <span slot=\"value\">SLOT-VAL</span>\n </nile-filter-chip>\n "]))));case 2:l=_context4.sent;a=l.querySelector('[slot="label"]');n=l.querySelector('[slot="value"]');i(a.textContent).to.equal("SLOT-LBL"),i(n.textContent).to.equal("SLOT-VAL");case 6:case"end":return _context4.stop();}},_callee3);}))),it("renders an icon when the `icon` property is set",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var l;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return e(t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-filter-chip icon=\"\u2605\" label=\"L\" value=\"T\"></nile-filter-chip>\n "]))));case 2:l=_context5.sent.shadowRoot.querySelector(".icon");i(l).to.exist,i(l.textContent).to.equal("★");case 4:case"end":return _context5.stop();}},_callee4);}))),it("does not render a badge when viewMoreCount is zero",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var l;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return e(t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-filter-chip viewMoreCount=\"0\" label=\"L\" value=\"T\"></nile-filter-chip>\n "]))));case 2:l=_context6.sent;i(l.shadowRoot.querySelector("nile-badge")).to.be["null"];case 4:case"end":return _context6.stop();}},_callee5);}))),it("renders a +badge when viewMoreCount > 0",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var l;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return e(t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-filter-chip viewMoreCount=\"5\" label=\"L\" value=\"T\"></nile-filter-chip>\n "]))));case 2:l=_context7.sent.shadowRoot.querySelector("nile-badge");i(l).to.exist,i(l.textContent).to.contain("+5");case 4:case"end":return _context7.stop();}},_callee6);}))),it("dispatches `nile-click` on chip click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var a,n,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e(t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <nile-filter-chip label=\"L\" value=\"T\"></nile-filter-chip>\n "]))));case 2:a=_context8.sent;n=a.shadowRoot.querySelector(".chip");setTimeout(function(){return n.click();});_context8.next=7;return l(a,"nile-click");case 7:s=_context8.sent;i(s.detail).to.deep.equal({value:"T",viewMoreCount:0});case 9:case"end":return _context8.stop();}},_callee7);}))),it("dispatches `nile-close` on close icon click and removes itself",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var a,n,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e(t(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-filter-chip closable viewMoreCount=\"2\" value=\"TT\"></nile-filter-chip>\n "]))));case 2:a=_context9.sent;n=a.shadowRoot.querySelector(".close-icon");setTimeout(function(){return n.click();});_context9.next=7;return l(a,"nile-close");case 7:s=_context9.sent;i(s.detail).to.deep.equal({value:"TT",viewMoreCount:2}),i(document.body.contains(a)).to.be["false"];case 9:case"end":return _context9.stop();}},_callee8);})));});}};});
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-54600b35.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-filter-chip.cjs.js","tslib","lit/decorators.js","../internal/nile-element.cjs.js","./nile-filter-chip.css.cjs.js"],function(_export,_context){"use strict";var e,i,l,t,a,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8;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(_fixture005CjsJs){e=_fixture005CjsJs.f;i=_fixture005CjsJs.a;l=_fixture005CjsJs.o;},function(_litStaticHtmlJs){t=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFilterChipCjsJs){a=_nileFilterChipCjsJs.N;},function(_tslib){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){},function(_nileFilterChipCssCjsJs){}],execute:function execute(){describe("<nile-filter-chip>",function(){afterEach(function(){a.activeChips=[];}),it("registers and unregisters itself in activeChips",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-filter-chip label=\"L\" value=\"T\"></nile-filter-chip>\n "]))));case 2:l=_context2.sent;i(a.activeChips).to.include(l);l.remove();_context2.next=7;return l.updateComplete;case 7:i(a.activeChips).to.not.include(l);case 8:case"end":return _context2.stop();}},_callee);}))),it("renders fallback label and value",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var l,a,n;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return e(t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-filter-chip label=\"MyLabel\" value=\"MyText\"></nile-filter-chip>\n "]))));case 2:l=_context3.sent;a=l.shadowRoot.querySelector(".label");n=l.shadowRoot.querySelector(".value");i(a.textContent).to.equal("MyLabel:"),i(n.textContent.trim()).to.equal("MyText");case 6:case"end":return _context3.stop();}},_callee2);}))),it("renders slotted label and value over fallback",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var l,a,n;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return e(t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-filter-chip>\n <span slot=\"label\">SLOT-LBL</span>\n <span slot=\"value\">SLOT-VAL</span>\n </nile-filter-chip>\n "]))));case 2:l=_context4.sent;a=l.querySelector('[slot="label"]');n=l.querySelector('[slot="value"]');i(a.textContent).to.equal("SLOT-LBL"),i(n.textContent).to.equal("SLOT-VAL");case 6:case"end":return _context4.stop();}},_callee3);}))),it("renders an icon when the `icon` property is set",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var l;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return e(t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-filter-chip icon=\"\u2605\" label=\"L\" value=\"T\"></nile-filter-chip>\n "]))));case 2:l=_context5.sent.shadowRoot.querySelector(".icon");i(l).to.exist,i(l.textContent).to.equal("★");case 4:case"end":return _context5.stop();}},_callee4);}))),it("does not render a badge when viewMoreCount is zero",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var l;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return e(t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-filter-chip viewMoreCount=\"0\" label=\"L\" value=\"T\"></nile-filter-chip>\n "]))));case 2:l=_context6.sent;i(l.shadowRoot.querySelector("nile-badge")).to.be["null"];case 4:case"end":return _context6.stop();}},_callee5);}))),it("renders a +badge when viewMoreCount > 0",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var l;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return e(t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-filter-chip viewMoreCount=\"5\" label=\"L\" value=\"T\"></nile-filter-chip>\n "]))));case 2:l=_context7.sent.shadowRoot.querySelector("nile-badge");i(l).to.exist,i(l.textContent).to.contain("+5");case 4:case"end":return _context7.stop();}},_callee6);}))),it("dispatches `nile-click` on chip click",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var a,n,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e(t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <nile-filter-chip label=\"L\" value=\"T\"></nile-filter-chip>\n "]))));case 2:a=_context8.sent;n=a.shadowRoot.querySelector(".chip");setTimeout(function(){return n.click();});_context8.next=7;return l(a,"nile-click");case 7:s=_context8.sent;i(s.detail).to.deep.equal({value:"T",viewMoreCount:0});case 9:case"end":return _context8.stop();}},_callee7);}))),it("dispatches `nile-close` on close icon click and removes itself",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var a,n,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e(t(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-filter-chip closable viewMoreCount=\"2\" value=\"TT\"></nile-filter-chip>\n "]))));case 2:a=_context9.sent;n=a.shadowRoot.querySelector(".close-icon");setTimeout(function(){return n.click();});_context9.next=7;return l(a,"nile-close");case 7:s=_context9.sent;i(s.detail).to.deep.equal({value:"TT",viewMoreCount:2}),i(document.body.contains(a)).to.be["false"];case 9:case"end":return _context9.stop();}},_callee8);})));});}};});
2
2
  //# sourceMappingURL=nile-filter-chip.test.cjs.js.map
@@ -1,4 +1,4 @@
1
- import{f as e,a as i,o as l}from"../fixture-985bba12.esm.js";import{html as t}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import{N as a}from"./nile-filter-chip.esm.js";import"tslib";import"lit/decorators.js";import"../internal/nile-element.esm.js";import"./nile-filter-chip.css.esm.js";describe("<nile-filter-chip>",(()=>{afterEach((()=>{a.activeChips=[]})),it("registers and unregisters itself in activeChips",(async()=>{const l=await e(t`
1
+ import{f as e,a as i,o as l}from"../fixture-9871e8a9.esm.js";import{html as t}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import{N as a}from"./nile-filter-chip.esm.js";import"tslib";import"lit/decorators.js";import"../internal/nile-element.esm.js";import"./nile-filter-chip.css.esm.js";describe("<nile-filter-chip>",(()=>{afterEach((()=>{a.activeChips=[]})),it("registers and unregisters itself in activeChips",(async()=>{const l=await e(t`
2
2
  <nile-filter-chip label="L" value="T"></nile-filter-chip>
3
3
  `);i(a.activeChips).to.include(l),l.remove(),await l.updateComplete,i(a.activeChips).to.not.include(l)})),it("renders fallback label and value",(async()=>{const l=await e(t`
4
4
  <nile-filter-chip label="MyLabel" value="MyText"></nile-filter-chip>
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";var t;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 _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:[],execute:function execute(){_export("A",t=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"resolveAnchor",value:function resolveAnchor(_t){if(_t instanceof HTMLElement)return _t;if("string"==typeof _t){var e=document.querySelector(_t);if(e)return e;var n=document.getElementById(_t);if(n)return n;}return document.body;}},{key:"appendToAnchor",value:function appendToAnchor(_t2,e){_t2.appendChild(e);}},{key:"removeFromAnchor",value:function removeFromAnchor(_t3){_t3.parentNode&&_t3.parentNode.removeChild(_t3);}}]);}());}};});
2
+ //# sourceMappingURL=anchor-manager.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"anchor-manager.cjs.js","sources":["../../../src/nile-floating-panel/anchor-manager.ts"],"sourcesContent":["import type { FloatingPanelAnchor } from './types';\n\nexport class AnchorManager {\n static resolveAnchor(anchor: FloatingPanelAnchor): HTMLElement {\n if (anchor instanceof HTMLElement) {\n return anchor;\n }\n\n if (typeof anchor === 'string') {\n const element = document.querySelector(anchor) as HTMLElement;\n if (element) {\n return element;\n }\n const byId = document.getElementById(anchor);\n if (byId) {\n return byId;\n }\n }\n\n return document.body;\n }\n\n static appendToAnchor(anchor: HTMLElement, panelContainer: HTMLElement): void {\n anchor.appendChild(panelContainer);\n }\n\n static removeFromAnchor(panelContainer: HTMLElement): void {\n if (panelContainer.parentNode) {\n panelContainer.parentNode.removeChild(panelContainer);\n }\n }\n}\n\n"],"names":["AnchorManager","resolveAnchor","anchor","HTMLElement","element","document","querySelector","byId","getElementById","body","key","value","appendToAnchor","panelContainer","appendChild","removeFromAnchor","parentNode","removeChild"],"mappings":"6sCAEaA,CAAAA,kCAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,UAAAA,YAAAA,CAAAA,CAAAA,QAAAA,GAAAA,iBAAAA,KAAAA,CACX,QAAOC,CAAAA,aAAAA,CAAcC,EACnB,CAAA,CAAA,GAAIA,aAAkBC,CAAAA,WACpB,CAAA,MAAOD,CAAAA,EAGT,CAAA,GAAsB,QAAXA,EAAAA,MAAAA,CAAAA,EAAAA,CAAqB,CAC9B,GAAME,CAAAA,CAAAA,CAAUC,QAASC,CAAAA,aAAAA,CAAcJ,EACvC,CAAA,CAAA,GAAIE,EACF,MAAOA,CAAAA,CAAAA,CAET,GAAMG,CAAAA,CAAAA,CAAOF,QAASG,CAAAA,cAAAA,CAAeN,IACrC,GAAIK,CAAAA,CACF,MAAOA,CAAAA,CAEV,EAED,MAAOF,CAAAA,SAASI,IACjB,EAED,GAAAC,GAAA,kBAAAC,KAAA,SAAOC,CAAAA,cAAAA,CAAeV,GAAqBW,CAAAA,CAAAA,CAAAA,CACzCX,IAAOY,WAAYD,CAAAA,CAAAA,CACpB,EAED,GAAAH,GAAA,oBAAAC,KAAA,SAAA,CAAAI,gBAAOA,CAAiBF,GAAAA,CAAAA,CAClBA,GAAeG,CAAAA,UAAAA,EACjBH,GAAeG,CAAAA,UAAAA,CAAWC,WAAYJ,CAAAA,GAAAA,CAEzC"}
@@ -0,0 +1 @@
1
+ class t{static resolveAnchor(t){if(t instanceof HTMLElement)return t;if("string"==typeof t){const e=document.querySelector(t);if(e)return e;const n=document.getElementById(t);if(n)return n}return document.body}static appendToAnchor(t,e){t.appendChild(e)}static removeFromAnchor(t){t.parentNode&&t.parentNode.removeChild(t)}}export{t as A};
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";var t;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 _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:[],execute:function execute(){_export("C",t=/*#__PURE__*/function(){function t(){_classCallCheck(this,t);}return _createClass(t,null,[{key:"updatePanelContent",value:function updatePanelContent(_t,e,n){_t.innerHTML="";var o=e?e.assignedNodes({flatten:!0}):[];o.length>0&&o.some(function(_t2){var _t2$textContent;return _t2.nodeType===Node.TEXT_NODE?""!==((_t2$textContent=_t2.textContent)===null||_t2$textContent===void 0?void 0:_t2$textContent.trim()):_t2 instanceof HTMLElement;})?o.forEach(function(e){if(e.nodeType===Node.TEXT_NODE){var _n=document.createTextNode(e.textContent||"");_t.appendChild(_n);}else e instanceof HTMLElement&&_t.appendChild(e.cloneNode(!0));}):n&&(_t.textContent=n);}},{key:"hasSlotContent",value:function hasSlotContent(_t3){if(!_t3)return!1;var e=_t3.assignedNodes({flatten:!0});return e.length>0&&e.some(function(_t4){var _t4$textContent;return _t4.nodeType===Node.TEXT_NODE?""!==((_t4$textContent=_t4.textContent)===null||_t4$textContent===void 0?void 0:_t4$textContent.trim()):_t4 instanceof HTMLElement;});}},{key:"getSlotContent",value:function getSlotContent(_t5){return _t5?_t5.assignedNodes({flatten:!0}):[];}}]);}());}};});
2
+ //# sourceMappingURL=content-manager.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"content-manager.cjs.js","sources":["../../../src/nile-floating-panel/content-manager.ts"],"sourcesContent":["import type { FloatingPanelContentConfig } from './types';\n\nexport class ContentManager {\n static updatePanelContent(\n panelContainer: HTMLElement,\n slot: HTMLSlotElement | null,\n dataContent: string\n ): void {\n panelContainer.innerHTML = '';\n\n const slotContent = slot ? slot.assignedNodes({ flatten: true }) : [];\n\n const hasSlotContent = slotContent.length > 0 &&\n slotContent.some(node => {\n if (node.nodeType === Node.TEXT_NODE) {\n return node.textContent?.trim() !== '';\n }\n return node instanceof HTMLElement;\n });\n\n if (hasSlotContent) {\n slotContent.forEach(node => {\n if (node.nodeType === Node.TEXT_NODE) {\n const textNode = document.createTextNode(node.textContent || '');\n panelContainer.appendChild(textNode);\n } else if (node instanceof HTMLElement) {\n panelContainer.appendChild(node.cloneNode(true));\n }\n });\n } else if (dataContent) {\n panelContainer.textContent = dataContent;\n }\n }\n\n static hasSlotContent(slot: HTMLSlotElement | null): boolean {\n if (!slot) {\n return false;\n }\n\n const slotContent = slot.assignedNodes({ flatten: true });\n return slotContent.length > 0 &&\n slotContent.some(node => {\n if (node.nodeType === Node.TEXT_NODE) {\n return node.textContent?.trim() !== '';\n }\n return node instanceof HTMLElement;\n });\n }\n\n static getSlotContent(slot: HTMLSlotElement | null): Node[] {\n return slot ? slot.assignedNodes({ flatten: true }) : [];\n }\n}\n\n"],"names":["ContentManager","updatePanelContent","panelContainer","slot","dataContent","innerHTML","slotContent","assignedNodes","flatten","length","some","node","nodeType","Node","TEXT_NODE","_t2$textContent","textContent","trim","HTMLElement","forEach","textNode","document","createTextNode","appendChild","cloneNode","key","value","hasSlotContent","_t4$textContent","getSlotContent"],"mappings":"6sCAEaA,CAAAA,kCAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,UAAAA,YAAAA,CAAAA,CAAAA,QAAAA,GAAAA,sBAAAA,KAAAA,CACX,QAAOC,CAAAA,kBAAAA,CACLC,EACAC,CAAAA,CAAAA,CACAC,GAEAF,EAAeG,CAAAA,SAAAA,CAAY,EAE3B,CAAA,GAAMC,CAAAA,CAAcH,CAAAA,CAAAA,CAAOA,EAAKI,aAAc,CAAA,CAAEC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAU,EAE5CF,CAAAA,CAAAA,CAAYG,OAAS,CAC1CH,EAAAA,CAAAA,CAAYI,IAAKC,CAAAA,SAAAA,GAAAA,MAAAA,eAAAA,OACXA,CAAAA,GAAKC,CAAAA,QAAAA,GAAaC,KAAKC,SACW,CAAA,EAAA,KAAAC,eAAA,CAA7BJ,GAAKK,CAAAA,WAAAA,UAAAA,eAAAA,iBAALL,eAAAA,CAAkBM,IAEpBN,CAAAA,CAAAA,EAAAA,GAAAA,WAAgBO,CAAAA,eAIzBZ,CAAYa,CAAAA,OAAAA,CAAQR,SAAAA,CAClB,CAAA,CAAA,GAAIA,CAAKC,CAAAA,QAAAA,GAAaC,KAAKC,SAAW,CAAA,CACpC,GAAMM,CAAAA,EAAAA,CAAWC,QAASC,CAAAA,cAAAA,CAAeX,CAAKK,CAAAA,WAAAA,EAAe,EAC7Dd,CAAAA,CAAAA,EAAAA,CAAeqB,WAAYH,CAAAA,EAAAA,CAC5B,EAAUT,IAAAA,CAAAA,CAAAA,WAAgBO,CAAAA,aACzBhB,EAAeqB,CAAAA,WAAAA,CAAYZ,CAAKa,CAAAA,SAAAA,CAAAA,CAAU,CAC3C,CAAA,CAAA,EAAA,CAAA,CAEMpB,IACTF,EAAec,CAAAA,WAAAA,CAAcZ,CAEhC,CAAA,EAED,GAAAqB,GAAA,kBAAAC,KAAA,SAAOC,CAAAA,cAAAA,CAAexB,KACpB,GAAKA,CAAAA,GAAAA,CACH,MAAO,CAAA,CAAA,CAGT,GAAMG,CAAAA,CAAAA,CAAcH,IAAKI,aAAc,CAAA,CAAEC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAClD,MAAOF,CAAAA,CAAAA,CAAYG,OAAS,CAC1BH,EAAAA,CAAAA,CAAYI,IAAKC,CAAAA,SAAAA,GAAAA,MAAAA,eAAAA,OACXA,CAAAA,GAAKC,CAAAA,QAAAA,GAAaC,KAAKC,SACW,CAAA,EAAA,KAAAc,eAAA,CAA7BjB,GAAKK,CAAAA,WAAAA,UAAAA,eAAAA,iBAALL,eAAAA,CAAkBM,IAEpBN,CAAAA,CAAAA,EAAAA,GAAAA,WAAgBO,CAAAA,cAE5B,EAED,GAAAO,GAAA,kBAAAC,KAAA,SAAA,CAAAG,cAAOA,CAAe1B,GAAAA,CAAAA,CACpB,MAAOA,CAAAA,GAAAA,CAAOA,GAAKI,CAAAA,aAAAA,CAAc,CAAEC,OAAAA,CAAAA,CAAS,CAAU,CAAA,CAAA,CAAA,EACvD"}
@@ -0,0 +1 @@
1
+ class t{static updatePanelContent(t,e,n){t.innerHTML="";const o=e?e.assignedNodes({flatten:!0}):[];o.length>0&&o.some((t=>t.nodeType===Node.TEXT_NODE?""!==t.textContent?.trim():t instanceof HTMLElement))?o.forEach((e=>{if(e.nodeType===Node.TEXT_NODE){const n=document.createTextNode(e.textContent||"");t.appendChild(n)}else e instanceof HTMLElement&&t.appendChild(e.cloneNode(!0))})):n&&(t.textContent=n)}static hasSlotContent(t){if(!t)return!1;const e=t.assignedNodes({flatten:!0});return e.length>0&&e.some((t=>t.nodeType===Node.TEXT_NODE?""!==t.textContent?.trim():t instanceof HTMLElement))}static getSlotContent(t){return t?t.assignedNodes({flatten:!0}):[]}}export{t as C};
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";var t;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 _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:[],execute:function execute(){_export("E",t=/*#__PURE__*/function(){function t(_t){_classCallCheck(this,t);this.panelContainer=null,this.closeOnOutsideClick=!0,this.isOpen=!1,this.boundHandleDocumentClick=null,this.onCloseCallback=null,this.component=_t;}return _createClass(t,[{key:"setupOutsideClickHandler",value:function setupOutsideClickHandler(_t2,s,i,h){this.panelContainer=_t2,this.closeOnOutsideClick=s,this.isOpen=i,this.onCloseCallback=h,this.closeOnOutsideClick&&!this.boundHandleDocumentClick&&(this.boundHandleDocumentClick=this.handleDocumentClick.bind(this),document.addEventListener("mousedown",this.boundHandleDocumentClick,!0));}},{key:"updateOutsideClickHandler",value:function updateOutsideClickHandler(_t3,s,i){this.panelContainer=_t3,this.closeOnOutsideClick=s,this.isOpen=i,this.cleanupOutsideClickHandler(),i&&s&&_t3&&(this.boundHandleDocumentClick=this.handleDocumentClick.bind(this),document.addEventListener("mousedown",this.boundHandleDocumentClick,!0));}},{key:"cleanupOutsideClickHandler",value:function cleanupOutsideClickHandler(){this.boundHandleDocumentClick&&(document.removeEventListener("mousedown",this.boundHandleDocumentClick,!0),this.boundHandleDocumentClick=null);}},{key:"handleDocumentClick",value:function handleDocumentClick(_t4){if(!(this.isOpen&&this.closeOnOutsideClick&&this.panelContainer&&this.onCloseCallback))return;var s=_t4.target;this.panelContainer.contains(s)||this.component.contains(s)||this.onCloseCallback();}},{key:"destroy",value:function destroy(){this.cleanupOutsideClickHandler(),this.panelContainer=null,this.onCloseCallback=null;}}]);}());}};});
2
+ //# sourceMappingURL=event-manager.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"event-manager.cjs.js","sources":["../../../src/nile-floating-panel/event-manager.ts"],"sourcesContent":["export class EventManager {\n private component: HTMLElement;\n private panelContainer: HTMLElement | null = null;\n private closeOnOutsideClick: boolean = true;\n private isOpen: boolean = false;\n private boundHandleDocumentClick: ((event: MouseEvent) => void) | null = null;\n private onCloseCallback: (() => void) | null = null;\n\n constructor(component: HTMLElement) {\n this.component = component;\n }\n\n setupOutsideClickHandler(\n panelContainer: HTMLElement,\n closeOnOutsideClick: boolean,\n isOpen: boolean,\n onClose: () => void\n ): void {\n this.panelContainer = panelContainer;\n this.closeOnOutsideClick = closeOnOutsideClick;\n this.isOpen = isOpen;\n this.onCloseCallback = onClose;\n\n if (!this.closeOnOutsideClick || this.boundHandleDocumentClick) {\n return;\n }\n\n this.boundHandleDocumentClick = this.handleDocumentClick.bind(this);\n document.addEventListener('mousedown', this.boundHandleDocumentClick, true);\n }\n\n updateOutsideClickHandler(\n panelContainer: HTMLElement | null,\n closeOnOutsideClick: boolean,\n isOpen: boolean\n ): void {\n this.panelContainer = panelContainer;\n this.closeOnOutsideClick = closeOnOutsideClick;\n this.isOpen = isOpen;\n\n this.cleanupOutsideClickHandler();\n\n if (isOpen && closeOnOutsideClick && panelContainer) {\n this.boundHandleDocumentClick = this.handleDocumentClick.bind(this);\n document.addEventListener('mousedown', this.boundHandleDocumentClick, true);\n }\n }\n\n cleanupOutsideClickHandler(): void {\n if (this.boundHandleDocumentClick) {\n document.removeEventListener('mousedown', this.boundHandleDocumentClick, true);\n this.boundHandleDocumentClick = null;\n }\n }\n\n private handleDocumentClick(event: MouseEvent): void {\n if (!this.isOpen || !this.closeOnOutsideClick || !this.panelContainer || !this.onCloseCallback) {\n return;\n }\n\n const target = event.target as Node;\n\n if (!this.panelContainer.contains(target) && !this.component.contains(target)) {\n this.onCloseCallback();\n }\n }\n\n destroy(): void {\n this.cleanupOutsideClickHandler();\n this.panelContainer = null;\n this.onCloseCallback = null;\n }\n}\n\n"],"names":["EventManager","t","component","this","panelContainer","closeOnOutsideClick","isOpen","boundHandleDocumentClick","onCloseCallback","_createClass","key","value","setupOutsideClickHandler","onClose","handleDocumentClick","bind","document","addEventListener","updateOutsideClickHandler","cleanupOutsideClickHandler","removeEventListener","event","target","contains","destroy"],"mappings":"6sCAAaA,CAQX,yBAAA,SAAAC,EAAYC,EAAAA,CAAAA,CAAAA,eAAAA,MAAAA,CAAAA,EANJC,KAAcC,cAAuB,CAAA,IAAA,CACrCD,IAAmBE,CAAAA,mBAAAA,CAAAA,CAAY,CAC/BF,CAAAA,IAAAA,CAAMG,MAAY,CAAA,CAAA,CAAA,CAClBH,KAAwBI,wBAAyC,CAAA,IAAA,CACjEJ,IAAeK,CAAAA,eAAAA,CAAwB,IAG7CL,CAAAA,IAAAA,CAAKD,SAAYA,CAAAA,EAClB,EAED,OAAAO,YAAA,CAAAR,CAAA,GAAAS,GAAA,4BAAAC,KAAA,UAAAC,wBAAAA,CACER,GACAC,CAAAA,CAAAA,CACAC,CACAO,CAAAA,CAAAA,CAAAA,CAEAV,IAAKC,CAAAA,cAAAA,CAAiBA,IACtBD,IAAKE,CAAAA,mBAAAA,CAAsBA,CAC3BF,CAAAA,IAAAA,CAAKG,MAASA,CAAAA,CAAAA,CACdH,IAAKK,CAAAA,eAAAA,CAAkBK,EAElBV,IAAKE,CAAAA,mBAAAA,EAAAA,CAAuBF,IAAKI,CAAAA,wBAAAA,GAItCJ,IAAKI,CAAAA,wBAAAA,CAA2BJ,IAAKW,CAAAA,mBAAAA,CAAoBC,KAAKZ,IAC9Da,CAAAA,CAAAA,QAAAA,CAASC,gBAAiB,CAAA,WAAA,CAAad,IAAKI,CAAAA,wBAAAA,CAAAA,CAA0B,CACvE,CAAA,CAAA,EAED,GAAAG,GAAA,6BAAAC,KAAA,UAAAO,yBAAAA,CACEd,GAAAA,CACAC,CACAC,CAAAA,CAAAA,CAAAA,CAEAH,KAAKC,cAAiBA,CAAAA,GAAAA,CACtBD,IAAKE,CAAAA,mBAAAA,CAAsBA,EAC3BF,IAAKG,CAAAA,MAAAA,CAASA,CAEdH,CAAAA,IAAAA,CAAKgB,0BAEDb,CAAAA,CAAAA,CAAAA,CAAAA,EAAUD,CAAuBD,EAAAA,GAAAA,GACnCD,KAAKI,wBAA2BJ,CAAAA,IAAAA,CAAKW,mBAAoBC,CAAAA,IAAAA,CAAKZ,IAC9Da,CAAAA,CAAAA,QAAAA,CAASC,gBAAiB,CAAA,WAAA,CAAad,KAAKI,wBAA0B,CAAA,CAAA,CAAA,CAAA,CAEzE,EAED,GAAAG,GAAA,8BAAAC,KAAA,UAAAQ,0BAAAA,CAAAA,CACMhB,CAAAA,IAAAA,CAAKI,wBACPS,GAAAA,QAAAA,CAASI,oBAAoB,WAAajB,CAAAA,IAAAA,CAAKI,wBAA0B,CAAA,CAAA,CAAA,CAAA,CACzEJ,IAAKI,CAAAA,wBAAAA,CAA2B,IAEnC,CAAA,EAEO,GAAAG,GAAA,uBAAAC,KAAA,UAAAG,mBAAAA,CAAoBO,GAAAA,CAAAA,CAC1B,GAAKlB,EAAAA,IAAAA,CAAKG,MAAWH,EAAAA,IAAAA,CAAKE,mBAAwBF,EAAAA,IAAAA,CAAKC,gBAAmBD,IAAKK,CAAAA,eAAAA,CAAAA,CAC7E,OAGF,GAAMc,CAAAA,CAASD,CAAAA,GAAAA,CAAMC,MAEhBnB,CAAAA,IAAAA,CAAKC,eAAemB,QAASD,CAAAA,CAAAA,CAAAA,EAAYnB,IAAKD,CAAAA,SAAAA,CAAUqB,QAASD,CAAAA,CAAAA,CAAAA,EACpEnB,IAAKK,CAAAA,eAAAA,CAAAA,CAER,EAED,GAAAE,GAAA,WAAAC,KAAA,UAAAa,OAAAA,CAAAA,CAAAA,CACErB,IAAKgB,CAAAA,0BAAAA,CAAAA,CAAAA,CACLhB,KAAKC,cAAiB,CAAA,IAAA,CACtBD,IAAKK,CAAAA,eAAAA,CAAkB,IACxB"}
@@ -0,0 +1 @@
1
+ class t{constructor(t){this.panelContainer=null,this.closeOnOutsideClick=!0,this.isOpen=!1,this.boundHandleDocumentClick=null,this.onCloseCallback=null,this.component=t}setupOutsideClickHandler(t,s,i,h){this.panelContainer=t,this.closeOnOutsideClick=s,this.isOpen=i,this.onCloseCallback=h,this.closeOnOutsideClick&&!this.boundHandleDocumentClick&&(this.boundHandleDocumentClick=this.handleDocumentClick.bind(this),document.addEventListener("mousedown",this.boundHandleDocumentClick,!0))}updateOutsideClickHandler(t,s,i){this.panelContainer=t,this.closeOnOutsideClick=s,this.isOpen=i,this.cleanupOutsideClickHandler(),i&&s&&t&&(this.boundHandleDocumentClick=this.handleDocumentClick.bind(this),document.addEventListener("mousedown",this.boundHandleDocumentClick,!0))}cleanupOutsideClickHandler(){this.boundHandleDocumentClick&&(document.removeEventListener("mousedown",this.boundHandleDocumentClick,!0),this.boundHandleDocumentClick=null)}handleDocumentClick(t){if(!(this.isOpen&&this.closeOnOutsideClick&&this.panelContainer&&this.onCloseCallback))return;const s=t.target;this.panelContainer.contains(s)||this.component.contains(s)||this.onCloseCallback()}destroy(){this.cleanupOutsideClickHandler(),this.panelContainer=null,this.onCloseCallback=null}}export{t as E};
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-floating-panel.cjs.js","tslib","lit","lit/decorators.js","./nile-floating-panel.css.cjs.js","../internal/nile-element.cjs.js","./position-manager.cjs.js","../floating-ui.dom-007bbe96.cjs.js","./style-manager.cjs.js","./content-manager.cjs.js","./anchor-manager.cjs.js","./event-manager.cjs.js","../utilities/visibility-manager.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileFloatingPanelCjsJs){_export("NileFloatingPanel",_nileFloatingPanelCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileFloatingPanelCssCjsJs){},function(_internalNileElementCjsJs){},function(_positionManagerCjsJs){},function(_floatingUiDom001CjsJs){},function(_styleManagerCjsJs){},function(_contentManagerCjsJs){},function(_anchorManagerCjsJs){},function(_eventManagerCjsJs){},function(_utilitiesVisibilityManagerCjsJs){}],execute:function execute(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export{N as NileFloatingPanel}from"./nile-floating-panel.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-floating-panel.css.esm.js";import"../internal/nile-element.esm.js";import"./position-manager.esm.js";import"../floating-ui.dom-cc9126da.esm.js";import"./style-manager.esm.js";import"./content-manager.esm.js";import"./anchor-manager.esm.js";import"./event-manager.esm.js";import"../utilities/visibility-manager.esm.js";
@@ -0,0 +1,2 @@
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-floating-panel.css.cjs.js","../internal/nile-element.cjs.js","./position-manager.cjs.js","./style-manager.cjs.js","./content-manager.cjs.js","./anchor-manager.cjs.js","./event-manager.cjs.js","../utilities/visibility-manager.cjs.js","../floating-ui.dom-007bbe96.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,n,h,o,l,r,a,c,u,_templateObject,m;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){i=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;e=_litDecoratorsJs.customElement;},function(_nileFloatingPanelCssCjsJs){n=_nileFloatingPanelCssCjsJs.s;},function(_internalNileElementCjsJs){h=_internalNileElementCjsJs.N;},function(_positionManagerCjsJs){o=_positionManagerCjsJs.P;},function(_styleManagerCjsJs){l=_styleManagerCjsJs.S;},function(_contentManagerCjsJs){r=_contentManagerCjsJs.C;},function(_anchorManagerCjsJs){a=_anchorManagerCjsJs.A;},function(_eventManagerCjsJs){c=_eventManagerCjsJs.E;},function(_utilitiesVisibilityManagerCjsJs){u=_utilitiesVisibilityManagerCjsJs.V;},function(_floatingUiDom001CjsJs){}],execute:function execute(){_export("N",m=/*#__PURE__*/function(_h){function m(){var _this;_classCallCheck(this,m);_this=_callSuper(this,m,arguments),_this.anchor=null,_this.position="bottom",_this.open=!1,_this.closeOnOutsideClick=!0,_this.enableVisibilityEffect=!0,_this.enableTabClose=!1,_this.panelContainer=null,_this.positionManager=null,_this.styleManager=new l(),_this.eventManager=new c(_assertThisInitialized(_this)),_this.handleSlotChange=function(){_this.open&&_this.panelContainer&&_this.updatePanelContent();};return _this;}_inherits(m,_h);return _createClass(m,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(m,"connectedCallback",this,3)([]);}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$visibilityManag;_superPropGet(m,"disconnectedCallback",this,3)([]),this.cleanupPanel(),(_this$visibilityManag=this.visibilityManager)===null||_this$visibilityManag===void 0?void 0:_this$visibilityManag.cleanup();}},{key:"updated",value:function updated(t){var _this$visibilityManag2,_this$visibilityManag3;_superPropGet(m,"updated",this,3)([t]),t.has("open")&&(this.open?(this.emit("nile-show"),this.setupPanel(),(_this$visibilityManag2=this.visibilityManager)===null||_this$visibilityManag2===void 0?void 0:_this$visibilityManag2.setup()):(this.emit("nile-hide"),(_this$visibilityManag3=this.visibilityManager)!==null&&_this$visibilityManag3!==void 0&&_this$visibilityManag3.cleanup(),this.cleanupPanel())),t.has("closeOnOutsideClick")&&this.open&&this.panelContainer&&this.eventManager.updateOutsideClickHandler(this.panelContainer,this.closeOnOutsideClick,this.open),t.has("anchor")&&this.open&&(this.cleanupPanel(),this.setupPanel()),(t.has("enableVisibilityEffect")||t.has("enableTabClose"))&&this.open&&this.setupVisibilityManager(),t.has("position")&&this.open&&this.positionManager&&this.positionManager.updatePosition(this.position),t.has("open")&&this.open&&this.panelContainer&&this.updatePanelContent();}},{key:"setupPanel",value:function setupPanel(){var _this2=this;if(this.panelContainer)return;var t=this.constructor.styles;t&&this.styleManager.injectStyles(t),this.panelContainer=document.createElement("div"),this.panelContainer.setAttribute("part","panel"),this.panelContainer.className="nile-floating-panel__container",this.updatePanelContent();var i=a.resolveAnchor(this.anchor);a.appendToAnchor(i,this.panelContainer),requestAnimationFrame(function(){_this2.setupPositionManager(),_this2.setupEventHandlers(),_this2.setupVisibilityManager();});}},{key:"setupEventHandlers",value:function setupEventHandlers(){var _this3=this;this.panelContainer&&this.eventManager.setupOutsideClickHandler(this.panelContainer,this.closeOnOutsideClick,this.open,function(){_this3.open=!1;});}},{key:"setupPositionManager",value:function setupPositionManager(){if(!this.panelContainer)return;var t=this.findTriggerElement()||this;this.positionManager=new o(t,this.panelContainer,this.position),this.positionManager.reposition(),this.positionManager.setupAutoUpdate();}},{key:"findTriggerElement",value:function findTriggerElement(){var t=this.nextElementSibling;for(;t;){if(t instanceof HTMLElement)return t;t=t.nextElementSibling;}var i=this.previousElementSibling;for(;i;){if(i instanceof HTMLElement)return i;i=i.previousElementSibling;}return null;}},{key:"setupVisibilityManager",value:function setupVisibilityManager(){var _this4=this;if(!this.enableVisibilityEffect)return;var t=this.findTriggerElement();this.visibilityManager&&this.visibilityManager.cleanup(),this.visibilityManager=new u({host:this,target:t||null,enableVisibilityEffect:this.enableVisibilityEffect,enableTabClose:this.enableTabClose,isOpen:function isOpen(){return _this4.open;},onAnchorOutOfView:function onAnchorOutOfView(){_this4.open=!1,_this4.emit("nile-visibility-change",{visible:!1,reason:"anchor-out-of-view"});},onDocumentHidden:function onDocumentHidden(){_this4.open=!1,_this4.emit("nile-visibility-change",{visible:!1,reason:"document-hidden"});},emit:function emit(t,i){return _this4.emit("nile-".concat(t),i);}}),this.open&&this.visibilityManager.setup();}},{key:"updatePanelContent",value:function updatePanelContent(){var _this$shadowRoot;if(!this.panelContainer)return;var t=((_this$shadowRoot=this.shadowRoot)===null||_this$shadowRoot===void 0?void 0:_this$shadowRoot.querySelector("slot"))||null;r.updatePanelContent(this.panelContainer,t,"");}},{key:"reposition",value:function reposition(){this.positionManager&&this.positionManager.reposition();}},{key:"cleanupPanel",value:function cleanupPanel(){this.eventManager.destroy(),this.positionManager&&(this.positionManager.destroy(),this.positionManager=null),this.panelContainer&&a.removeFromAnchor(this.panelContainer),this.panelContainer=null,this.styleManager.cleanupStyles();}},{key:"render",value:function render(){return i(_templateObject||(_templateObject=_taggedTemplateLiteral([" <slot @slotchange=","></slot> "])),this.handleSlotChange);}}],[{key:"styles",get:function get(){return[n];}}]);}(h));t([s()],m.prototype,"anchor",void 0),t([s()],m.prototype,"position",void 0),t([s({type:Boolean,reflect:!0,attribute:!0})],m.prototype,"open",void 0),t([s({type:Boolean,reflect:!0,attribute:"close-on-outside-click",converter:{fromAttribute:function fromAttribute(t){return!(!t||"false"===t);},toAttribute:function toAttribute(t){return t?"true":"false";}}})],m.prototype,"closeOnOutsideClick",void 0),t([s({type:Boolean,reflect:!0})],m.prototype,"enableVisibilityEffect",void 0),t([s({type:Boolean,reflect:!0})],m.prototype,"enableTabClose",void 0),_export("N",m=t([e("nile-floating-panel")],m));}};});
2
+ //# sourceMappingURL=nile-floating-panel.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-floating-panel.cjs.js","sources":["../../../src/nile-floating-panel/nile-floating-panel.ts"],"sourcesContent":["import {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n PropertyValues,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-floating-panel.css';\nimport NileElement from '../internal/nile-element';\nimport { PositionManager } from './position-manager';\nimport { StyleManager } from './style-manager';\nimport { ContentManager } from './content-manager';\nimport { AnchorManager } from './anchor-manager';\nimport { EventManager } from './event-manager';\nimport { VisibilityManager } from '../utilities/visibility-manager';\nimport type { FloatingPanelPosition, FloatingPanelAnchor } from './types';\n\n/**\n * Nile floating panel component.\n *\n * @tag nile-floating-panel\n * @event nile-show - Emitted when the panel opens.\n * @event nile-hide - Emitted when the panel closes.\n */\n@customElement('nile-floating-panel')\nexport class NileFloatingPanel extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property() anchor: FloatingPanelAnchor = null;\n\n @property() position: FloatingPanelPosition = 'bottom';\n\n @property({ type: Boolean, reflect: true, attribute: true }) open = false;\n\n @property({\n type: Boolean,\n reflect: true,\n attribute: 'close-on-outside-click',\n converter: {\n fromAttribute: (value: string | null) => (!value || value === 'false' ? false : true),\n toAttribute: (value: boolean) => (value ? 'true' : 'false'),\n },\n })\n closeOnOutsideClick = true;\n\n @property({ type: Boolean, reflect: true }) enableVisibilityEffect = true;\n\n @property({ type: Boolean, reflect: true }) enableTabClose = false;\n\n private panelContainer: HTMLElement | null = null;\n private positionManager: PositionManager | null = null;\n private styleManager: StyleManager = new StyleManager();\n private eventManager: EventManager = new EventManager(this);\n private visibilityManager?: VisibilityManager;\n\n connectedCallback() {\n super.connectedCallback();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.cleanupPanel();\n this.visibilityManager?.cleanup();\n }\n\n updated(changedProperties: Map<string, unknown>) {\n super.updated(changedProperties);\n\n if (changedProperties.has('open')) {\n if (this.open) {\n this.emit('nile-show');\n this.setupPanel();\n this.visibilityManager?.setup();\n } else {\n this.emit('nile-hide');\n this.visibilityManager?.cleanup();\n this.cleanupPanel();\n }\n }\n\n if (\n changedProperties.has('closeOnOutsideClick') &&\n this.open &&\n this.panelContainer\n ) {\n this.eventManager.updateOutsideClickHandler(\n this.panelContainer,\n this.closeOnOutsideClick,\n this.open\n );\n }\n\n if (changedProperties.has('anchor') && this.open) {\n this.cleanupPanel();\n this.setupPanel();\n }\n\n if (\n (changedProperties.has('enableVisibilityEffect') ||\n changedProperties.has('enableTabClose')) &&\n this.open\n ) {\n this.setupVisibilityManager();\n }\n\n if (\n changedProperties.has('position') &&\n this.open &&\n this.positionManager\n ) {\n this.positionManager.updatePosition(this.position);\n }\n\n if (changedProperties.has('open') && this.open && this.panelContainer) {\n this.updatePanelContent();\n }\n }\n\n private setupPanel() {\n if (this.panelContainer) {\n return;\n }\n\n const componentStyles = (this.constructor as typeof NileFloatingPanel)\n .styles;\n if (componentStyles) {\n this.styleManager.injectStyles(componentStyles);\n }\n\n this.panelContainer = document.createElement('div');\n this.panelContainer.setAttribute('part', 'panel');\n this.panelContainer.className = 'nile-floating-panel__container';\n\n this.updatePanelContent();\n\n const anchorElement = AnchorManager.resolveAnchor(this.anchor);\n AnchorManager.appendToAnchor(anchorElement, this.panelContainer);\n\n requestAnimationFrame(() => {\n this.setupPositionManager();\n this.setupEventHandlers();\n this.setupVisibilityManager();\n });\n }\n\n private setupEventHandlers() {\n if (!this.panelContainer) {\n return;\n }\n\n this.eventManager.setupOutsideClickHandler(\n this.panelContainer,\n this.closeOnOutsideClick,\n this.open,\n () => {\n this.open = false;\n }\n );\n }\n\n private setupPositionManager() {\n if (!this.panelContainer) {\n return;\n }\n\n const referenceElement = this.findTriggerElement() || this;\n this.positionManager = new PositionManager(\n referenceElement,\n this.panelContainer,\n this.position\n );\n\n this.positionManager.reposition();\n this.positionManager.setupAutoUpdate();\n }\n\n private findTriggerElement(): HTMLElement | null {\n // Try to find the next sibling element as the trigger\n let nextSibling = this.nextElementSibling;\n while (nextSibling) {\n if (nextSibling instanceof HTMLElement) {\n return nextSibling;\n }\n nextSibling = nextSibling.nextElementSibling;\n }\n\n // Try to find the previous sibling element\n let previousSibling = this.previousElementSibling;\n while (previousSibling) {\n if (previousSibling instanceof HTMLElement) {\n return previousSibling;\n }\n previousSibling = previousSibling.previousElementSibling;\n }\n\n return null;\n }\n\n private setupVisibilityManager(): void {\n if (!this.enableVisibilityEffect) {\n return;\n }\n\n const triggerElement = this.findTriggerElement();\n \n // Cleanup existing visibility manager if it exists\n if (this.visibilityManager) {\n this.visibilityManager.cleanup();\n }\n\n this.visibilityManager = new VisibilityManager({\n host: this,\n target: triggerElement || null,\n enableVisibilityEffect: this.enableVisibilityEffect,\n enableTabClose: this.enableTabClose,\n isOpen: () => this.open,\n onAnchorOutOfView: () => {\n this.open = false;\n this.emit('nile-visibility-change', {\n visible: false,\n reason: 'anchor-out-of-view',\n });\n },\n onDocumentHidden: () => {\n this.open = false;\n this.emit('nile-visibility-change', {\n visible: false,\n reason: 'document-hidden',\n });\n },\n emit: (event, detail) => this.emit(`nile-${event}`, detail),\n });\n\n if (this.open) {\n this.visibilityManager.setup();\n }\n }\n\n private updatePanelContent() {\n if (!this.panelContainer) {\n return;\n }\n\n const slot = this.shadowRoot?.querySelector('slot') || null;\n ContentManager.updatePanelContent(this.panelContainer, slot, '');\n }\n\n private reposition() {\n if (this.positionManager) {\n this.positionManager.reposition();\n }\n }\n\n private cleanupPanel() {\n this.eventManager.destroy();\n\n if (this.positionManager) {\n this.positionManager.destroy();\n this.positionManager = null;\n }\n\n if (this.panelContainer) {\n AnchorManager.removeFromAnchor(this.panelContainer);\n }\n\n this.panelContainer = null;\n\n this.styleManager.cleanupStyles();\n }\n\n public render(): TemplateResult {\n return html` <slot @slotchange=${this.handleSlotChange}></slot> `;\n }\n\n private handleSlotChange = () => {\n if (this.open && this.panelContainer) {\n this.updatePanelContent();\n }\n };\n}\n\nexport default NileFloatingPanel;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-floating-panel': NileFloatingPanel;\n }\n}\n"],"names":["NileFloatingPanel","_h","m","this","anchor","position","open","closeOnOutsideClick","enableVisibilityEffect","enableTabClose","panelContainer","positionManager","styleManager","StyleManager","eventManager","EventManager","handleSlotChange","updatePanelContent","_this","_inherits","_createClass","key","value","connectedCallback","super","disconnectedCallback","cleanupPanel","visibilityManager","cleanup","updated","changedProperties","has","emit","setupPanel","setup","_this$visibilityManag3","updateOutsideClickHandler","setupVisibilityManager","updatePosition","componentStyles","constructor","styles","injectStyles","document","createElement","setAttribute","className","anchorElement","AnchorManager","resolveAnchor","appendToAnchor","requestAnimationFrame","setupPositionManager","setupEventHandlers","setupOutsideClickHandler","referenceElement","findTriggerElement","PositionManager","reposition","setupAutoUpdate","nextSibling","nextElementSibling","HTMLElement","previousSibling","previousElementSibling","triggerElement","VisibilityManager","host","target","isOpen","onAnchorOutOfView","visible","reason","onDocumentHidden","event","detail","slot","shadowRoot","querySelector","ContentManager","destroy","removeFromAnchor","cleanupStyles","render","html","_templateObject","_taggedTemplateLiteral","get","NileElement","__decorate","property","prototype","type","Boolean","reflect","attribute","converter","fromAttribute","toAttribute","_export","customElement"],"mappings":"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"}
@@ -0,0 +1,2 @@
1
+ System.register(["lit"],function(_export,_context){"use strict";var n,_templateObject,_templateObject2,o,i;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){n=_lit.css;}],execute:function execute(){_export("s",o=n(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n :host {\n box-sizing: border-box;\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n display: inline-block;\n position: relative;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n slot {\n display: none;\n }\n"])))),_export("p",i=n(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n .nile-floating-panel__container {\n position: fixed;\n box-sizing: border-box;\n z-index: 800;\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n border: solid 1px var(--nile-colors-dark-200, var(--ng-colors-border-secondary-alt));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));\n padding: var(--nile-spacing-xl, var(--ng-spacing-xl));\n min-width: var(--nile-width-352px, var(--ng-width-80));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));\n font-style: normal;\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-sm));\n letter-spacing: var(--nile-spacing-one-by-five-x, var(--ng-spacing-none));\n }\n"]))));}};});
2
+ //# sourceMappingURL=nile-floating-panel.css.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-floating-panel.css.cjs.js","sources":["../../../src/nile-floating-panel/nile-floating-panel.css.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 { css } from 'lit';\nexport const styles = css`\n :host {\n box-sizing: border-box;\n -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));\n -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));\n text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));\n display: inline-block;\n position: relative;\n }\n\n :host([hidden]) {\n display: none;\n }\n\n slot {\n display: none;\n }\n`;\n\nexport const panelContainerStyles = css`\n .nile-floating-panel__container {\n position: fixed;\n box-sizing: border-box;\n z-index: 800;\n background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));\n border: solid 1px var(--nile-colors-dark-200, var(--ng-colors-border-secondary-alt));\n border-radius: var(--nile-radius-sm, var(--ng-radius-md));\n box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));\n padding: var(--nile-spacing-xl, var(--ng-spacing-xl));\n min-width: var(--nile-width-352px, var(--ng-width-80));\n color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));\n font-family: var(--nile-font-family-serif, var(--ng-font-family-body));\n font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));\n font-style: normal;\n font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));\n line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-sm));\n letter-spacing: var(--nile-spacing-one-by-five-x, var(--ng-spacing-none));\n }\n`;\n\nexport default [styles];\n\n"],"names":["styles","css","_templateObject","_taggedTemplateLiteral","_export","panelContainerStyles","_templateObject2"],"mappings":"uUAQaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,mdAAAC,OAAA,KAmBZC,CAAAA,CAAuBJ,CAAG,CAAAK,gBAAA,GAAAA,gBAAA,CAAAH,sBAAA"}
@@ -0,0 +1,37 @@
1
+ import{css as n}from"lit";const o=n`
2
+ :host {
3
+ box-sizing: border-box;
4
+ -webkit-font-smoothing: var(--nile-webkit-font-smoothing, var(--ng-webkit-font-smoothing));
5
+ -moz-osx-font-smoothing: var(--nile-moz-osx-font-smoothing, var(--ng-moz-osx-font-smoothing));
6
+ text-rendering: var(--nile-text-rendering, var(--ng-text-rendering));
7
+ display: inline-block;
8
+ position: relative;
9
+ }
10
+
11
+ :host([hidden]) {
12
+ display: none;
13
+ }
14
+
15
+ slot {
16
+ display: none;
17
+ }
18
+ `,i=n`
19
+ .nile-floating-panel__container {
20
+ position: fixed;
21
+ box-sizing: border-box;
22
+ z-index: 800;
23
+ background-color: var(--nile-colors-white-base, var(--ng-colors-bg-primary));
24
+ border: solid 1px var(--nile-colors-dark-200, var(--ng-colors-border-secondary-alt));
25
+ border-radius: var(--nile-radius-sm, var(--ng-radius-md));
26
+ box-shadow: var(--nile-box-shadow-2, var(--ng-shadow-lg));
27
+ padding: var(--nile-spacing-xl, var(--ng-spacing-xl));
28
+ min-width: var(--nile-width-352px, var(--ng-width-80));
29
+ color: var(--nile-colors-dark-900, var(--ng-colors-text-primary-900));
30
+ font-family: var(--nile-font-family-serif, var(--ng-font-family-body));
31
+ font-size: var(--nile-type-scale-4, var(--ng-font-size-text-sm));
32
+ font-style: normal;
33
+ font-weight: var(--nile-font-weight-medium, var(--ng-font-weight-semibold));
34
+ line-height: var(--nile-line-height-xsmall, var(--ng-line-height-text-sm));
35
+ letter-spacing: var(--nile-spacing-one-by-five-x, var(--ng-spacing-none));
36
+ }
37
+ `;export{i as p,o as s};
@@ -0,0 +1 @@
1
+ import{__decorate as t}from"tslib";import{html as i}from"lit";import{property as s,customElement as e}from"lit/decorators.js";import{s as n}from"./nile-floating-panel.css.esm.js";import{N as h}from"../internal/nile-element.esm.js";import{P as o}from"./position-manager.esm.js";import{S as l}from"./style-manager.esm.js";import{C as r}from"./content-manager.esm.js";import{A as a}from"./anchor-manager.esm.js";import{E as m}from"./event-manager.esm.js";import{V as c}from"../utilities/visibility-manager.esm.js";import"../floating-ui.dom-cc9126da.esm.js";let u=class extends h{constructor(){super(...arguments),this.anchor=null,this.position="bottom",this.open=!1,this.closeOnOutsideClick=!0,this.enableVisibilityEffect=!0,this.enableTabClose=!1,this.panelContainer=null,this.positionManager=null,this.styleManager=new l,this.eventManager=new m(this),this.handleSlotChange=()=>{this.open&&this.panelContainer&&this.updatePanelContent()}}static get styles(){return[n]}connectedCallback(){super.connectedCallback()}disconnectedCallback(){super.disconnectedCallback(),this.cleanupPanel(),this.visibilityManager?.cleanup()}updated(t){super.updated(t),t.has("open")&&(this.open?(this.emit("nile-show"),this.setupPanel(),this.visibilityManager?.setup()):(this.emit("nile-hide"),this.visibilityManager?.cleanup(),this.cleanupPanel())),t.has("closeOnOutsideClick")&&this.open&&this.panelContainer&&this.eventManager.updateOutsideClickHandler(this.panelContainer,this.closeOnOutsideClick,this.open),t.has("anchor")&&this.open&&(this.cleanupPanel(),this.setupPanel()),(t.has("enableVisibilityEffect")||t.has("enableTabClose"))&&this.open&&this.setupVisibilityManager(),t.has("position")&&this.open&&this.positionManager&&this.positionManager.updatePosition(this.position),t.has("open")&&this.open&&this.panelContainer&&this.updatePanelContent()}setupPanel(){if(this.panelContainer)return;const t=this.constructor.styles;t&&this.styleManager.injectStyles(t),this.panelContainer=document.createElement("div"),this.panelContainer.setAttribute("part","panel"),this.panelContainer.className="nile-floating-panel__container",this.updatePanelContent();const i=a.resolveAnchor(this.anchor);a.appendToAnchor(i,this.panelContainer),requestAnimationFrame((()=>{this.setupPositionManager(),this.setupEventHandlers(),this.setupVisibilityManager()}))}setupEventHandlers(){this.panelContainer&&this.eventManager.setupOutsideClickHandler(this.panelContainer,this.closeOnOutsideClick,this.open,(()=>{this.open=!1}))}setupPositionManager(){if(!this.panelContainer)return;const t=this.findTriggerElement()||this;this.positionManager=new o(t,this.panelContainer,this.position),this.positionManager.reposition(),this.positionManager.setupAutoUpdate()}findTriggerElement(){let t=this.nextElementSibling;for(;t;){if(t instanceof HTMLElement)return t;t=t.nextElementSibling}let i=this.previousElementSibling;for(;i;){if(i instanceof HTMLElement)return i;i=i.previousElementSibling}return null}setupVisibilityManager(){if(!this.enableVisibilityEffect)return;const t=this.findTriggerElement();this.visibilityManager&&this.visibilityManager.cleanup(),this.visibilityManager=new c({host:this,target:t||null,enableVisibilityEffect:this.enableVisibilityEffect,enableTabClose:this.enableTabClose,isOpen:()=>this.open,onAnchorOutOfView:()=>{this.open=!1,this.emit("nile-visibility-change",{visible:!1,reason:"anchor-out-of-view"})},onDocumentHidden:()=>{this.open=!1,this.emit("nile-visibility-change",{visible:!1,reason:"document-hidden"})},emit:(t,i)=>this.emit(`nile-${t}`,i)}),this.open&&this.visibilityManager.setup()}updatePanelContent(){if(!this.panelContainer)return;const t=this.shadowRoot?.querySelector("slot")||null;r.updatePanelContent(this.panelContainer,t,"")}reposition(){this.positionManager&&this.positionManager.reposition()}cleanupPanel(){this.eventManager.destroy(),this.positionManager&&(this.positionManager.destroy(),this.positionManager=null),this.panelContainer&&a.removeFromAnchor(this.panelContainer),this.panelContainer=null,this.styleManager.cleanupStyles()}render(){return i` <slot @slotchange=${this.handleSlotChange}></slot> `}};t([s()],u.prototype,"anchor",void 0),t([s()],u.prototype,"position",void 0),t([s({type:Boolean,reflect:!0,attribute:!0})],u.prototype,"open",void 0),t([s({type:Boolean,reflect:!0,attribute:"close-on-outside-click",converter:{fromAttribute:t=>!(!t||"false"===t),toAttribute:t=>t?"true":"false"}})],u.prototype,"closeOnOutsideClick",void 0),t([s({type:Boolean,reflect:!0})],u.prototype,"enableVisibilityEffect",void 0),t([s({type:Boolean,reflect:!0})],u.prototype,"enableTabClose",void 0),u=t([e("nile-floating-panel")],u);export{u as N};
@@ -0,0 +1,2 @@
1
+ System.register(["../floating-ui.dom-007bbe96.cjs.js"],function(_export,_context){"use strict";var t,s,i,e,h,a;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 _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(_floatingUiDom001CjsJs){t=_floatingUiDom001CjsJs.b;s=_floatingUiDom001CjsJs.c;i=_floatingUiDom001CjsJs.o;e=_floatingUiDom001CjsJs.f;h=_floatingUiDom001CjsJs.a;}],execute:function execute(){_export("P",a=/*#__PURE__*/function(){function a(t,s,i){var e=arguments.length>3&&arguments[3]!==undefined?arguments[3]:8;var h=arguments.length>4&&arguments[4]!==undefined?arguments[4]:8;_classCallCheck(this,a);this.cleanup=null,this.referenceElement=t,this.floatingElement=s,this.position=i,this.offsetValue=e,this.shiftPadding=h;}return _createClass(a,[{key:"setupAutoUpdate",value:function setupAutoUpdate(){var _this=this;this.cleanupAutoUpdate(),this.cleanup=t(this.referenceElement,this.floatingElement,function(){_this.reposition();},{ancestorScroll:!0,ancestorResize:!0,elementResize:!0,layoutShift:!0,animationFrame:!1});}},{key:"cleanupAutoUpdate",value:function cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null);}},{key:"reposition",value:function reposition(){var _this2=this;var t=this.position;s(this.referenceElement,this.floatingElement,{placement:t,strategy:"fixed",middleware:[i(this.offsetValue),e(),h({padding:this.shiftPadding})]}).then(function(_ref){var t=_ref.x,s=_ref.y,i=_ref.placement;var e=s;i.startsWith("bottom")?e=s+10:i.startsWith("top")&&(e=s-20),Object.assign(_this2.floatingElement.style,{left:"".concat(t,"px"),top:"".concat(e,"px"),position:"fixed"});});}},{key:"updatePosition",value:function updatePosition(t){this.position=t,this.reposition();}},{key:"updateOffset",value:function updateOffset(t){this.offsetValue=t,this.reposition();}},{key:"updateShiftPadding",value:function updateShiftPadding(t){this.shiftPadding=t,this.reposition();}},{key:"destroy",value:function destroy(){this.cleanupAutoUpdate();}}]);}());}};});
2
+ //# sourceMappingURL=position-manager.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"position-manager.cjs.js","sources":["../../../src/nile-floating-panel/position-manager.ts"],"sourcesContent":["import { autoUpdate, computePosition, offset, shift, flip } from '@floating-ui/dom';\nimport type { Placement } from '@floating-ui/dom';\nimport type { FloatingPanelPosition } from './types';\n\nexport class PositionManager {\n private cleanup: (() => void) | null = null;\n private referenceElement: HTMLElement;\n private floatingElement: HTMLElement;\n private position: FloatingPanelPosition;\n private offsetValue: number;\n private shiftPadding: number;\n\n constructor(\n referenceElement: HTMLElement,\n floatingElement: HTMLElement,\n position: FloatingPanelPosition,\n offsetValue: number = 8,\n shiftPadding: number = 8\n ) {\n this.referenceElement = referenceElement;\n this.floatingElement = floatingElement;\n this.position = position;\n this.offsetValue = offsetValue;\n this.shiftPadding = shiftPadding;\n }\n\n setupAutoUpdate(): void {\n this.cleanupAutoUpdate();\n\n this.cleanup = autoUpdate(\n this.referenceElement,\n this.floatingElement,\n () => {\n this.reposition();\n },\n {\n ancestorScroll: true,\n ancestorResize: true,\n elementResize: true,\n layoutShift: true,\n animationFrame: false,\n }\n );\n }\n\n cleanupAutoUpdate(): void {\n if (this.cleanup) {\n this.cleanup();\n this.cleanup = null;\n }\n }\n\n reposition(): void {\n const placement: Placement = this.position;\n\n computePosition(this.referenceElement, this.floatingElement, {\n placement,\n strategy: 'fixed',\n middleware: [\n offset(this.offsetValue),\n flip(),\n shift({\n padding: this.shiftPadding,\n }),\n ],\n }).then(({ x, y, placement: finalPlacement }) => {\n let adjustedY = y;\n \n if (finalPlacement.startsWith('bottom')) {\n adjustedY = y + 10;\n } else if (finalPlacement.startsWith('top')) {\n adjustedY = y - 20;\n }\n \n Object.assign(this.floatingElement.style, {\n left: `${x}px`,\n top: `${adjustedY}px`,\n position: 'fixed',\n });\n });\n }\n\n updatePosition(position: FloatingPanelPosition): void {\n this.position = position;\n this.reposition();\n }\n\n updateOffset(offset: number): void {\n this.offsetValue = offset;\n this.reposition();\n }\n\n updateShiftPadding(padding: number): void {\n this.shiftPadding = padding;\n this.reposition();\n }\n\n destroy(): void {\n this.cleanupAutoUpdate();\n }\n}\n\n"],"names":["PositionManager","a","referenceElement","floatingElement","position","offsetValue","shiftPadding","arguments","length","undefined","_classCallCheck","this","cleanup","_createClass","key","value","setupAutoUpdate","cleanupAutoUpdate","autoUpdate","reposition","ancestorScroll","ancestorResize","elementResize","layoutShift","animationFrame","placement","computePosition","strategy","middleware","offset","flip","shift","padding","then","_ref","finalPlacement","x","y","adjustedY","startsWith","Object","assign","style","left","concat","top","updatePosition","updateOffset","updateShiftPadding","destroy"],"mappings":"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"}
@@ -0,0 +1 @@
1
+ import{b as t,c as s,o as i,f as e,a as h}from"../floating-ui.dom-cc9126da.esm.js";class a{constructor(t,s,i,e=8,h=8){this.cleanup=null,this.referenceElement=t,this.floatingElement=s,this.position=i,this.offsetValue=e,this.shiftPadding=h}setupAutoUpdate(){this.cleanupAutoUpdate(),this.cleanup=t(this.referenceElement,this.floatingElement,(()=>{this.reposition()}),{ancestorScroll:!0,ancestorResize:!0,elementResize:!0,layoutShift:!0,animationFrame:!1})}cleanupAutoUpdate(){this.cleanup&&(this.cleanup(),this.cleanup=null)}reposition(){const t=this.position;s(this.referenceElement,this.floatingElement,{placement:t,strategy:"fixed",middleware:[i(this.offsetValue),e(),h({padding:this.shiftPadding})]}).then((({x:t,y:s,placement:i})=>{let e=s;i.startsWith("bottom")?e=s+10:i.startsWith("top")&&(e=s-20),Object.assign(this.floatingElement.style,{left:`${t}px`,top:`${e}px`,position:"fixed"})}))}updatePosition(t){this.position=t,this.reposition()}updateOffset(t){this.offsetValue=t,this.reposition()}updateShiftPadding(t){this.shiftPadding=t,this.reposition()}destroy(){this.cleanupAutoUpdate()}}export{a as P};
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-floating-panel.css.cjs.js","lit"],function(_export,_context){"use strict";var t,e;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 _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(_nileFloatingPanelCssCjsJs){t=_nileFloatingPanelCssCjsJs.p;},function(_lit){}],execute:function execute(){_export("S",e=/*#__PURE__*/function(){function e(){_classCallCheck(this,e);this.injectedStyleId=null;}return _createClass(e,[{key:"injectStyles",value:function injectStyles(t){var s="nile-floating-panel-styles-global";if(e.injectedStyleIds.has(s))return;if(this.injectedStyleId&&document.getElementById(this.injectedStyleId))return;this.injectedStyleId=s,e.injectedStyleIds.add(s);var n=this.extractCSSFromStyles(t),l=document.createElement("style");l.id=s,l.textContent=n,document.head.appendChild(l);}},{key:"extractCSSFromStyles",value:function extractCSSFromStyles(_e){return(t.cssText||"")+"\n"+_e.map(function(t){return"string"==typeof t?t:t&&"cssText"in t?t.cssText:"";}).join("\n");}},{key:"cleanupStyles",value:function cleanupStyles(){}},{key:"getInjectedStyleId",value:function getInjectedStyleId(){return this.injectedStyleId;}}]);}());e.injectedStyleIds=new Set();}};});
2
+ //# sourceMappingURL=style-manager.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"style-manager.cjs.js","sources":["../../../src/nile-floating-panel/style-manager.ts"],"sourcesContent":["import type { CSSResultArray } from 'lit';\nimport { panelContainerStyles } from './nile-floating-panel.css';\n\nexport class StyleManager {\n private injectedStyleId: string | null = null;\n private static injectedStyleIds: Set<string> = new Set();\n\n injectStyles(componentStyles: CSSResultArray): void {\n const globalStyleId = 'nile-floating-panel-styles-global';\n if (StyleManager.injectedStyleIds.has(globalStyleId)) {\n return;\n }\n\n if (this.injectedStyleId && document.getElementById(this.injectedStyleId)) {\n return;\n }\n\n this.injectedStyleId = globalStyleId;\n StyleManager.injectedStyleIds.add(globalStyleId);\n\n const cssText = this.extractCSSFromStyles(componentStyles);\n\n const styleElement = document.createElement('style');\n styleElement.id = globalStyleId;\n styleElement.textContent = cssText;\n document.head.appendChild(styleElement);\n }\n\n private extractCSSFromStyles(styles: CSSResultArray): string {\n const containerStyles = panelContainerStyles.cssText || '';\n\n const componentStyles = styles\n .map(style => {\n if (typeof style === 'string') {\n return style;\n }\n if (style && 'cssText' in style) {\n return (style as any).cssText;\n }\n return '';\n })\n .join('\\n');\n\n return containerStyles + '\\n' + componentStyles;\n }\n\n cleanupStyles(): void {\n }\n\n getInjectedStyleId(): string | null {\n return this.injectedStyleId;\n }\n}\n\n"],"names":["StyleManager","e","this","injectedStyleId","_createClass","key","value","injectStyles","componentStyles","globalStyleId","injectedStyleIds","has","document","getElementById","add","cssText","extractCSSFromStyles","styleElement","createElement","id","textContent","head","appendChild","styles","panelContainerStyles","map","style","join","cleanupStyles","getInjectedStyleId","Set"],"mappings":"60CAGaA,CAAAA,yBAAb,SAAAC,EAAA,CACUC,CAAAA,eAAAA,MAAAA,CAAAA,EAAAA,IAAAA,CAAeC,gBAAkB,IAgD1C,EA7CC,OAAAC,YAAA,CAAAH,CAAA,GAAAI,GAAA,gBAAAC,KAAA,UAAAC,YAAAA,CAAaC,CAAAA,CAAAA,CACX,GAAMC,CAAAA,CAAgB,CAAA,mCAAA,CACtB,GAAIT,CAAaU,CAAAA,gBAAAA,CAAiBC,IAAIF,CACpC,CAAA,CAAA,OAGF,GAAIP,IAAKC,CAAAA,eAAAA,EAAmBS,SAASC,cAAeX,CAAAA,IAAAA,CAAKC,iBACvD,OAGFD,IAAAA,CAAKC,gBAAkBM,CACvBT,CAAAA,CAAAA,CAAaU,iBAAiBI,GAAIL,CAAAA,CAAAA,CAAAA,CAElC,GAAMM,CAAAA,CAAUb,CAAAA,IAAAA,CAAKc,qBAAqBR,CAEpCS,CAAAA,CAAAA,CAAAA,CAAeL,SAASM,aAAc,CAAA,OAAA,CAAA,CAC5CD,EAAaE,EAAKV,CAAAA,CAAAA,CAClBQ,EAAaG,WAAcL,CAAAA,CAAAA,CAC3BH,SAASS,IAAKC,CAAAA,WAAAA,CAAYL,EAC3B,EAEO,GAAAZ,GAAA,wBAAAC,KAAA,UAAAU,oBAAAA,CAAqBO,EAe3B,CAAA,CAAA,MAAA,CAdwBC,EAAqBT,OAAW,EAAA,EAAA,EAc/B,KAZDQ,EACrBE,CAAAA,GAAAA,CAAIC,SAAAA,SACkB,QAAVA,EAAAA,MAAAA,CAAAA,CAAAA,CACFA,EAELA,CAAS,EAAA,SAAA,EAAaA,CAAAA,EAChBA,CAAcX,CAAAA,OAAAA,CAEjB,MAERY,IAAK,CAAA,IAAA,CAGT,EAED,GAAAtB,GAAA,iBAAAC,KAAA,UAAAsB,aAAAA,CAAAA,CAAAA,CACC,CAED,GAAAvB,GAAA,sBAAAC,KAAA,UAAAuB,kBAAAA,CAAAA,CAAAA,CACE,MAAO3B,KAAKC,CAAAA,eACb,WA9CcH,CAAAU,CAAAA,gBAAAA,CAAgC,GAAIoB,CAAAA"}
@@ -0,0 +1 @@
1
+ import{p as t}from"./nile-floating-panel.css.esm.js";import"lit";class e{constructor(){this.injectedStyleId=null}injectStyles(t){const s="nile-floating-panel-styles-global";if(e.injectedStyleIds.has(s))return;if(this.injectedStyleId&&document.getElementById(this.injectedStyleId))return;this.injectedStyleId=s,e.injectedStyleIds.add(s);const n=this.extractCSSFromStyles(t),l=document.createElement("style");l.id=s,l.textContent=n,document.head.appendChild(l)}extractCSSFromStyles(e){return(t.cssText||"")+"\n"+e.map((t=>"string"==typeof t?t:t&&"cssText"in t?t.cssText:"")).join("\n")}cleanupStyles(){}getInjectedStyleId(){return this.injectedStyleId}}e.injectedStyleIds=new Set;export{e as S};
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";return{setters:[],execute:function execute(){}};});
2
+ //# sourceMappingURL=types.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}