@aquera/nile-elements 0.1.64-beta-1.1 → 0.1.64

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 (1193) hide show
  1. package/README.md +27 -1
  2. package/demo/index.html +10 -175
  3. package/dist/{fixture-75825990.cjs.js → fixture-3bfb4490.cjs.js} +2 -2
  4. package/dist/{fixture-75825990.cjs.js.map → fixture-3bfb4490.cjs.js.map} +1 -1
  5. package/dist/{fixture-e831ec79.esm.js → fixture-8edec91c.esm.js} +1 -1
  6. package/dist/index.cjs.js +1 -1
  7. package/dist/index.esm.js +1 -1
  8. package/dist/index.js +7827 -5700
  9. package/dist/internal/form.cjs.js +1 -1
  10. package/dist/internal/form.cjs.js.map +1 -1
  11. package/dist/internal/form.esm.js +1 -1
  12. package/dist/internal/resizable-table-helper.cjs.js +2 -0
  13. package/dist/internal/resizable-table-helper.cjs.js.map +1 -0
  14. package/dist/internal/resizable-table-helper.esm.js +1 -0
  15. package/dist/internal/resizable-table-styles.cjs.js +2 -0
  16. package/dist/internal/resizable-table-styles.cjs.js.map +1 -0
  17. package/dist/internal/resizable-table-styles.esm.js +132 -0
  18. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  19. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  20. package/dist/nile-auto-complete/index.cjs.js +1 -1
  21. package/dist/nile-auto-complete/index.esm.js +1 -1
  22. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -17
  23. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  24. package/dist/nile-auto-complete/nile-auto-complete.esm.js +8 -29
  25. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  26. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
  27. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  28. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  29. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -1
  30. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  31. package/dist/nile-badge/index.cjs.js +1 -1
  32. package/dist/nile-badge/index.esm.js +1 -1
  33. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  34. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  35. package/dist/nile-badge/nile-badge.esm.js +1 -1
  36. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  37. package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
  38. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  39. package/dist/nile-button/index.cjs.js +1 -1
  40. package/dist/nile-button/index.esm.js +1 -1
  41. package/dist/nile-button/nile-button.cjs.js +1 -1
  42. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  43. package/dist/nile-button/nile-button.esm.js +1 -1
  44. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  45. package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
  46. package/dist/nile-button/nile-button.test.esm.js +1 -1
  47. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  48. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  49. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  50. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  51. package/dist/nile-calendar/nile-calendar.test.esm.js +1 -1
  52. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  53. package/dist/nile-card/nile-card.test.esm.js +1 -1
  54. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  55. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  56. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  57. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  58. package/dist/nile-chip/nile-chip.esm.js +1 -1
  59. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  60. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  61. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  62. package/dist/nile-code-editor/extensionSetup.cjs.js +5 -5
  63. package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
  64. package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
  65. package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
  66. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  67. package/dist/nile-code-editor/nile-code-editor.esm.js +3 -3
  68. package/dist/nile-code-editor/theme.cjs.js +1 -1
  69. package/dist/nile-code-editor/theme.cjs.js.map +1 -1
  70. package/dist/nile-code-editor/theme.esm.js +1 -1
  71. package/dist/nile-dialog/index.cjs.js +1 -1
  72. package/dist/nile-dialog/index.esm.js +1 -1
  73. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  74. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  75. package/dist/nile-dialog/nile-dialog.esm.js +1 -1
  76. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  77. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
  78. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  79. package/dist/nile-drawer/index.cjs.js +1 -1
  80. package/dist/nile-drawer/index.esm.js +1 -1
  81. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  82. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  83. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  84. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  85. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
  86. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  87. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  88. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  89. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  90. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  91. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  92. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  93. package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
  94. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
  95. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +1 -1
  96. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -1
  97. package/dist/nile-file-preview/nile-file-preview.css.esm.js +203 -184
  98. package/dist/nile-file-preview/nile-file-preview.esm.js +1 -3
  99. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +1 -1
  100. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -1
  101. package/dist/nile-file-preview/nile-file-preview.template.esm.js +59 -62
  102. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  103. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  104. package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js +1 -1
  105. package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js.map +1 -1
  106. package/dist/nile-file-preview/types/nile-file-preview.enums.esm.js +1 -1
  107. package/dist/nile-file-preview/utils/index.cjs.js +1 -1
  108. package/dist/nile-file-preview/utils/index.esm.js +1 -1
  109. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +1 -1
  110. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +1 -1
  111. package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +1 -1
  112. package/dist/nile-file-upload/index.cjs.js +1 -1
  113. package/dist/nile-file-upload/index.esm.js +1 -1
  114. package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
  115. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
  116. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +1 -1
  117. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -1
  118. package/dist/nile-file-upload/nile-file-upload.css.esm.js +142 -89
  119. package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
  120. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +3 -3
  121. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -1
  122. package/dist/nile-file-upload/nile-file-upload.template.esm.js +44 -98
  123. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  124. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  125. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +1 -1
  126. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -1
  127. package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -1
  128. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +1 -1
  129. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -1
  130. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -1
  131. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +2 -1
  132. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -1
  133. package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -1
  134. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  135. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  136. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  137. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  138. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  139. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  140. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  141. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  142. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  143. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  144. package/dist/nile-icon/index.cjs.js +1 -1
  145. package/dist/nile-icon/index.cjs.js.map +1 -1
  146. package/dist/nile-icon/index.esm.js +1 -1
  147. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  148. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  149. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  150. package/dist/nile-icon-button/index.cjs.js +1 -1
  151. package/dist/nile-icon-button/index.esm.js +1 -1
  152. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  153. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  154. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  155. package/dist/nile-input/index.cjs.js +1 -1
  156. package/dist/nile-input/index.esm.js +1 -1
  157. package/dist/nile-input/nile-input.cjs.js +1 -1
  158. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  159. package/dist/nile-input/nile-input.esm.js +1 -1
  160. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  161. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  162. package/dist/nile-input/nile-input.test.esm.js +2 -2
  163. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  164. package/dist/nile-link/nile-link.test.esm.js +1 -1
  165. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  166. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  167. package/dist/nile-menu-item/index.cjs.js +1 -1
  168. package/dist/nile-menu-item/index.esm.js +1 -1
  169. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  170. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  171. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  172. package/dist/nile-option/index.cjs.js +1 -1
  173. package/dist/nile-option/index.esm.js +1 -1
  174. package/dist/nile-option/nile-option.cjs.js +1 -1
  175. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  176. package/dist/nile-option/nile-option.esm.js +2 -2
  177. package/dist/nile-popover/index.cjs.js +1 -1
  178. package/dist/nile-popover/index.esm.js +1 -1
  179. package/dist/nile-popover/nile-popover.cjs.js +3 -11
  180. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  181. package/dist/nile-popover/nile-popover.esm.js +7 -13
  182. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  183. package/dist/nile-popover/nile-popover.test.cjs.js.map +1 -1
  184. package/dist/nile-popover/nile-popover.test.esm.js +3 -3
  185. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  186. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  187. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  188. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  189. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  190. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  191. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  192. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  193. package/dist/nile-select/index.cjs.js +1 -1
  194. package/dist/nile-select/index.esm.js +1 -1
  195. package/dist/nile-select/nile-select.cjs.js +1 -1
  196. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  197. package/dist/nile-select/nile-select.esm.js +2 -2
  198. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  199. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  200. package/dist/nile-select/nile-select.test.esm.js +2 -2
  201. package/dist/nile-select/virtual-scroll-helper.cjs.js +2 -0
  202. package/dist/nile-select/virtual-scroll-helper.cjs.js.map +1 -0
  203. package/dist/nile-select/virtual-scroll-helper.esm.js +38 -0
  204. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  205. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  206. package/dist/nile-slider/index.cjs.js +2 -0
  207. package/dist/nile-slider/index.esm.js +1 -0
  208. package/dist/nile-slider/nile-slider.cjs.js +2 -0
  209. package/dist/nile-slider/nile-slider.cjs.js.map +1 -0
  210. package/dist/nile-slider/nile-slider.css.cjs.js +2 -0
  211. package/dist/nile-slider/nile-slider.css.cjs.js.map +1 -0
  212. package/dist/nile-slider/nile-slider.css.esm.js +106 -0
  213. package/dist/nile-slider/nile-slider.esm.js +27 -0
  214. package/dist/nile-slider/nile-slider.template.cjs.js +2 -0
  215. package/dist/nile-slider/nile-slider.template.cjs.js.map +1 -0
  216. package/dist/nile-slider/nile-slider.template.esm.js +59 -0
  217. package/dist/nile-slider/types/nile-slider.enums.cjs.js +2 -0
  218. package/dist/nile-slider/types/nile-slider.enums.cjs.js.map +1 -0
  219. package/dist/nile-slider/types/nile-slider.enums.esm.js +1 -0
  220. package/dist/nile-slider/types/nile-slider.types.cjs.js +2 -0
  221. package/dist/nile-slider/types/nile-slider.types.cjs.js.map +1 -0
  222. package/dist/nile-slider/types/nile-slider.types.esm.js +1 -0
  223. package/dist/nile-slider/utils/nile-slider.utils.cjs.js +2 -0
  224. package/dist/nile-slider/utils/nile-slider.utils.cjs.js.map +1 -0
  225. package/dist/nile-slider/utils/nile-slider.utils.esm.js +1 -0
  226. package/dist/nile-tab/index.cjs.js +1 -1
  227. package/dist/nile-tab/index.esm.js +1 -1
  228. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  229. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  230. package/dist/nile-tab/nile-tab.esm.js +1 -1
  231. package/dist/nile-tab-group/index.cjs.js +1 -1
  232. package/dist/nile-tab-group/index.esm.js +1 -1
  233. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  234. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  235. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  236. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  237. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
  238. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  239. package/dist/nile-table-body/index.cjs.js +1 -1
  240. package/dist/nile-table-body/index.esm.js +1 -1
  241. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  242. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  243. package/dist/nile-table-body/nile-table-body.css.cjs.js +1 -1
  244. package/dist/nile-table-body/nile-table-body.css.cjs.js.map +1 -1
  245. package/dist/nile-table-body/nile-table-body.css.esm.js +4 -2
  246. package/dist/nile-table-body/nile-table-body.esm.js +3 -2
  247. package/dist/nile-table-cell-item/index.cjs.js +1 -1
  248. package/dist/nile-table-cell-item/index.esm.js +1 -1
  249. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
  250. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
  251. package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js +1 -1
  252. package/dist/nile-table-cell-item/nile-table-cell-item.css.cjs.js.map +1 -1
  253. package/dist/nile-table-cell-item/nile-table-cell-item.css.esm.js +16 -3
  254. package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +8 -3
  255. package/dist/nile-table-header-item/index.cjs.js +1 -1
  256. package/dist/nile-table-header-item/index.esm.js +1 -1
  257. package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
  258. package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
  259. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js +1 -1
  260. package/dist/nile-table-header-item/nile-table-header-item.css.cjs.js.map +1 -1
  261. package/dist/nile-table-header-item/nile-table-header-item.css.esm.js +5 -2
  262. package/dist/nile-table-header-item/nile-table-header-item.esm.js +9 -8
  263. package/dist/nile-tag/index.cjs.js +1 -1
  264. package/dist/nile-tag/index.esm.js +1 -1
  265. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  266. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  267. package/dist/nile-tag/nile-tag.esm.js +1 -1
  268. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  269. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  270. package/dist/nile-toast/index.cjs.js +1 -1
  271. package/dist/nile-toast/index.esm.js +1 -1
  272. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  273. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  274. package/dist/nile-toast/nile-toast.esm.js +1 -1
  275. package/dist/nile-tree/index.cjs.js +1 -1
  276. package/dist/nile-tree/index.esm.js +1 -1
  277. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  278. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  279. package/dist/nile-tree/nile-tree.esm.js +1 -1
  280. package/dist/nile-tree-item/index.cjs.js +1 -1
  281. package/dist/nile-tree-item/index.esm.js +1 -1
  282. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  283. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  284. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  285. package/dist/nile-virtual-select/index.cjs.js +2 -0
  286. package/dist/nile-virtual-select/index.esm.js +1 -0
  287. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -0
  288. package/dist/nile-virtual-select/nile-virtual-select.cjs.js.map +1 -0
  289. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js +2 -0
  290. package/dist/nile-virtual-select/nile-virtual-select.css.cjs.js.map +1 -0
  291. package/dist/nile-virtual-select/nile-virtual-select.css.esm.js +477 -0
  292. package/dist/nile-virtual-select/nile-virtual-select.esm.js +227 -0
  293. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +2 -0
  294. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +1 -0
  295. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +93 -0
  296. package/dist/nile-virtual-select/renderer.cjs.js +2 -0
  297. package/dist/nile-virtual-select/renderer.cjs.js.map +1 -0
  298. package/dist/nile-virtual-select/renderer.esm.js +27 -0
  299. package/dist/nile-virtual-select/search-manager.cjs.js +2 -0
  300. package/dist/nile-virtual-select/search-manager.cjs.js.map +1 -0
  301. package/dist/nile-virtual-select/search-manager.esm.js +1 -0
  302. package/dist/nile-virtual-select/selection-manager.cjs.js +2 -0
  303. package/dist/nile-virtual-select/selection-manager.cjs.js.map +1 -0
  304. package/dist/nile-virtual-select/selection-manager.esm.js +1 -0
  305. package/dist/nile-virtual-select/types.cjs.js +2 -0
  306. package/dist/nile-virtual-select/types.cjs.js.map +1 -0
  307. package/dist/nile-virtual-select/types.esm.js +1 -0
  308. package/dist/src/index.d.ts +4 -3
  309. package/dist/src/index.js +4 -3
  310. package/dist/src/index.js.map +1 -1
  311. package/dist/src/internal/form.js +3 -3
  312. package/dist/src/internal/form.js.map +1 -1
  313. package/dist/src/internal/resizable-table-helper.d.ts +59 -0
  314. package/dist/src/internal/resizable-table-helper.js +111 -0
  315. package/dist/src/internal/resizable-table-helper.js.map +1 -0
  316. package/dist/src/internal/resizable-table-styles.d.ts +16 -0
  317. package/dist/src/internal/resizable-table-styles.js +149 -0
  318. package/dist/src/internal/resizable-table-styles.js.map +1 -0
  319. package/dist/src/nile-chip/nile-chip.js +10 -1
  320. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  321. package/dist/src/nile-code-editor/nile-code-editor.d.ts +3 -0
  322. package/dist/src/nile-code-editor/nile-code-editor.js +23 -3
  323. package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
  324. package/dist/src/nile-code-editor/theme.d.ts +6 -0
  325. package/dist/src/nile-code-editor/theme.js +8 -2
  326. package/dist/src/nile-code-editor/theme.js.map +1 -1
  327. package/dist/src/nile-file-preview/nile-file-preview.css.js +201 -182
  328. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
  329. package/dist/src/nile-file-preview/nile-file-preview.d.ts +6 -2
  330. package/dist/src/nile-file-preview/nile-file-preview.js +49 -20
  331. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
  332. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +3 -2
  333. package/dist/src/nile-file-preview/nile-file-preview.template.js +51 -47
  334. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
  335. package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +4 -3
  336. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +3 -2
  337. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -1
  338. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +4 -0
  339. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +25 -0
  340. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
  341. package/dist/src/nile-file-upload/nile-file-upload.css.js +140 -87
  342. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
  343. package/dist/src/nile-file-upload/nile-file-upload.d.ts +4 -1
  344. package/dist/src/nile-file-upload/nile-file-upload.js +30 -20
  345. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
  346. package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +7 -5
  347. package/dist/src/nile-file-upload/nile-file-upload.template.js +63 -105
  348. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
  349. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +11 -4
  350. package/dist/src/nile-file-upload/types/file-upload.enums.js +8 -1
  351. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
  352. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +2 -4
  353. package/dist/src/nile-file-upload/utils/drag-drop.util.js +18 -21
  354. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
  355. package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +3 -1
  356. package/dist/src/nile-file-upload/utils/file-validation.util.js +82 -32
  357. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
  358. package/dist/src/nile-icon/icons/svg/index.d.ts +0 -9
  359. package/dist/src/nile-icon/icons/svg/index.js +0 -9
  360. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  361. package/dist/src/nile-option/nile-option.d.ts +3 -1
  362. package/dist/src/nile-option/nile-option.js +21 -14
  363. package/dist/src/nile-option/nile-option.js.map +1 -1
  364. package/dist/src/nile-select/nile-select.d.ts +14 -3
  365. package/dist/src/nile-select/nile-select.js +64 -21
  366. package/dist/src/nile-select/nile-select.js.map +1 -1
  367. package/dist/src/nile-select/virtual-scroll-helper.d.ts +9 -0
  368. package/dist/src/nile-select/virtual-scroll-helper.js +51 -0
  369. package/dist/src/nile-select/virtual-scroll-helper.js.map +1 -0
  370. package/dist/src/nile-slider/index.d.ts +1 -0
  371. package/dist/src/nile-slider/index.js +2 -0
  372. package/dist/src/nile-slider/index.js.map +1 -0
  373. package/dist/src/{nile-richtexteditor/nile-richtexteditor.css.d.ts → nile-slider/nile-slider.css.d.ts} +2 -2
  374. package/dist/src/nile-slider/nile-slider.css.js +118 -0
  375. package/dist/src/nile-slider/nile-slider.css.js.map +1 -0
  376. package/dist/src/nile-slider/nile-slider.d.ts +48 -0
  377. package/dist/src/nile-slider/nile-slider.js +217 -0
  378. package/dist/src/nile-slider/nile-slider.js.map +1 -0
  379. package/dist/src/nile-slider/nile-slider.template.d.ts +5 -0
  380. package/dist/src/nile-slider/nile-slider.template.js +73 -0
  381. package/dist/src/nile-slider/nile-slider.template.js.map +1 -0
  382. package/dist/src/nile-slider/types/nile-slider.enums.d.ts +10 -0
  383. package/dist/src/nile-slider/types/nile-slider.enums.js +2 -0
  384. package/dist/src/nile-slider/types/nile-slider.enums.js.map +1 -0
  385. package/dist/src/nile-slider/types/nile-slider.types.d.ts +1 -0
  386. package/dist/src/nile-slider/types/nile-slider.types.js +2 -0
  387. package/dist/src/nile-slider/types/nile-slider.types.js.map +1 -0
  388. package/dist/src/nile-slider/utils/nile-slider.utils.d.ts +11 -0
  389. package/dist/src/nile-slider/utils/nile-slider.utils.js +99 -0
  390. package/dist/src/nile-slider/utils/nile-slider.utils.js.map +1 -0
  391. package/dist/src/nile-table-body/nile-table-body.css.js +3 -0
  392. package/dist/src/nile-table-body/nile-table-body.css.js.map +1 -1
  393. package/dist/src/nile-table-body/nile-table-body.d.ts +2 -0
  394. package/dist/src/nile-table-body/nile-table-body.js +10 -0
  395. package/dist/src/nile-table-body/nile-table-body.js.map +1 -1
  396. package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js +15 -1
  397. package/dist/src/nile-table-cell-item/nile-table-cell-item.css.js.map +1 -1
  398. package/dist/src/nile-table-cell-item/nile-table-cell-item.d.ts +3 -0
  399. package/dist/src/nile-table-cell-item/nile-table-cell-item.js +27 -8
  400. package/dist/src/nile-table-cell-item/nile-table-cell-item.js.map +1 -1
  401. package/dist/src/nile-table-header-item/nile-table-header-item.css.js +4 -0
  402. package/dist/src/nile-table-header-item/nile-table-header-item.css.js.map +1 -1
  403. package/dist/src/nile-table-header-item/nile-table-header-item.d.ts +3 -0
  404. package/dist/src/nile-table-header-item/nile-table-header-item.js +22 -15
  405. package/dist/src/nile-table-header-item/nile-table-header-item.js.map +1 -1
  406. package/dist/src/nile-virtual-select/index.d.ts +1 -0
  407. package/dist/src/nile-virtual-select/index.js +2 -0
  408. package/dist/src/nile-virtual-select/index.js.map +1 -0
  409. package/dist/src/nile-virtual-select/nile-virtual-select.css.d.ts +12 -0
  410. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +489 -0
  411. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +1 -0
  412. package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +266 -0
  413. package/dist/src/nile-virtual-select/nile-virtual-select.js +1226 -0
  414. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +1 -0
  415. package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +7 -0
  416. package/dist/src/nile-virtual-select/nile-virtual-select.test.js +631 -0
  417. package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -0
  418. package/dist/src/nile-virtual-select/renderer.d.ts +16 -0
  419. package/dist/src/nile-virtual-select/renderer.js +71 -0
  420. package/dist/src/nile-virtual-select/renderer.js.map +1 -0
  421. package/dist/src/nile-virtual-select/search-manager.d.ts +12 -0
  422. package/dist/src/nile-virtual-select/search-manager.js +40 -0
  423. package/dist/src/nile-virtual-select/search-manager.js.map +1 -0
  424. package/dist/src/nile-virtual-select/selection-manager.d.ts +12 -0
  425. package/dist/src/nile-virtual-select/selection-manager.js +64 -0
  426. package/dist/src/nile-virtual-select/selection-manager.js.map +1 -0
  427. package/dist/src/nile-virtual-select/types.d.ts +50 -0
  428. package/dist/src/nile-virtual-select/types.js +8 -0
  429. package/dist/src/nile-virtual-select/types.js.map +1 -0
  430. package/dist/tsconfig.tsbuildinfo +1 -1
  431. package/dist/virtualize-a4a40d96.esm.js +22 -0
  432. package/dist/virtualize-b6a2fbe0.cjs.js +18 -0
  433. package/dist/virtualize-b6a2fbe0.cjs.js.map +1 -0
  434. package/package.json +3 -5
  435. package/src/index.ts +4 -3
  436. package/src/internal/form.ts +3 -3
  437. package/src/internal/resizable-table-helper.ts +151 -0
  438. package/src/internal/resizable-table-styles.ts +156 -0
  439. package/src/nile-chip/nile-chip.ts +9 -1
  440. package/src/nile-code-editor/nile-code-editor.ts +25 -4
  441. package/src/nile-code-editor/theme.ts +8 -2
  442. package/src/nile-file-preview/index.ts +1 -0
  443. package/src/nile-file-preview/nile-file-preview.css.ts +589 -0
  444. package/src/nile-file-preview/nile-file-preview.template.ts +259 -0
  445. package/src/nile-file-preview/nile-file-preview.test.ts +38 -0
  446. package/src/nile-file-preview/nile-file-preview.ts +205 -0
  447. package/src/nile-file-preview/types/index.ts +2 -0
  448. package/src/nile-file-preview/types/nile-file-preview.enums.ts +32 -0
  449. package/src/nile-file-preview/types/nile-file-preview.interface.ts +4 -0
  450. package/src/nile-file-preview/utils/index.ts +1 -0
  451. package/src/nile-file-preview/utils/nile-file-preview.util.ts +72 -0
  452. package/src/nile-file-upload/index.ts +1 -0
  453. package/src/nile-file-upload/nile-file-upload.css.ts +624 -0
  454. package/src/nile-file-upload/nile-file-upload.template.ts +217 -0
  455. package/src/nile-file-upload/nile-file-upload.test.ts +38 -0
  456. package/src/nile-file-upload/nile-file-upload.ts +161 -0
  457. package/src/nile-file-upload/types/file-upload.enums.ts +46 -0
  458. package/src/nile-file-upload/types/file-upload.type.ts +5 -0
  459. package/src/nile-file-upload/types/index.ts +2 -0
  460. package/src/nile-file-upload/utils/drag-drop.util.ts +106 -0
  461. package/src/nile-file-upload/utils/file-validation.util.ts +216 -0
  462. package/src/nile-icon/icons/svg/index.ts +0 -9
  463. package/src/nile-option/nile-option.ts +18 -11
  464. package/src/nile-select/nile-select.ts +65 -13
  465. package/src/nile-select/virtual-scroll-helper.ts +56 -0
  466. package/src/nile-slider/index.ts +1 -0
  467. package/src/nile-slider/nile-slider.css.ts +119 -0
  468. package/src/nile-slider/nile-slider.template.ts +77 -0
  469. package/src/nile-slider/nile-slider.ts +215 -0
  470. package/src/nile-slider/types/nile-slider.enums.ts +10 -0
  471. package/src/nile-slider/types/nile-slider.types.ts +13 -0
  472. package/src/nile-slider/utils/nile-slider.utils.ts +136 -0
  473. package/src/nile-table-body/nile-table-body.css.ts +3 -0
  474. package/src/nile-table-body/nile-table-body.ts +9 -0
  475. package/src/nile-table-cell-item/nile-table-cell-item.css.ts +15 -1
  476. package/src/nile-table-cell-item/nile-table-cell-item.ts +22 -5
  477. package/src/nile-table-header-item/nile-table-header-item.css.ts +4 -0
  478. package/src/nile-table-header-item/nile-table-header-item.ts +11 -5
  479. package/src/nile-virtual-select/index.ts +1 -0
  480. package/src/nile-virtual-select/nile-virtual-select.css.ts +491 -0
  481. package/src/nile-virtual-select/nile-virtual-select.test.ts +774 -0
  482. package/src/nile-virtual-select/nile-virtual-select.ts +1314 -0
  483. package/src/nile-virtual-select/renderer.ts +99 -0
  484. package/src/nile-virtual-select/search-manager.ts +50 -0
  485. package/src/nile-virtual-select/selection-manager.ts +75 -0
  486. package/src/nile-virtual-select/types.ts +54 -0
  487. package/vscode-html-custom-data.json +524 -190
  488. package/dist/axe.min-2b379f29.cjs.js +0 -12
  489. package/dist/axe.min-2b379f29.cjs.js.map +0 -1
  490. package/dist/axe.min-c2cd8733.esm.js +0 -12
  491. package/dist/fixture-2b5b3aba.esm.js +0 -569
  492. package/dist/fixture-3330277d.cjs.js +0 -395
  493. package/dist/fixture-3330277d.cjs.js.map +0 -1
  494. package/dist/fixture-588a3119.esm.js +0 -569
  495. package/dist/fixture-7bfb866e.cjs.js +0 -395
  496. package/dist/fixture-7bfb866e.cjs.js.map +0 -1
  497. package/dist/nile-icon/icons/svg/bold.cjs.js +0 -2
  498. package/dist/nile-icon/icons/svg/bold.cjs.js.map +0 -1
  499. package/dist/nile-icon/icons/svg/bold.esm.js +0 -1
  500. package/dist/nile-icon/icons/svg/center-align.cjs.js +0 -2
  501. package/dist/nile-icon/icons/svg/center-align.cjs.js.map +0 -1
  502. package/dist/nile-icon/icons/svg/center-align.esm.js +0 -1
  503. package/dist/nile-icon/icons/svg/itallic.cjs.js +0 -2
  504. package/dist/nile-icon/icons/svg/itallic.cjs.js.map +0 -1
  505. package/dist/nile-icon/icons/svg/itallic.esm.js +0 -1
  506. package/dist/nile-icon/icons/svg/justify-align.cjs.js +0 -2
  507. package/dist/nile-icon/icons/svg/justify-align.cjs.js.map +0 -1
  508. package/dist/nile-icon/icons/svg/justify-align.esm.js +0 -1
  509. package/dist/nile-icon/icons/svg/left-align.cjs.js +0 -2
  510. package/dist/nile-icon/icons/svg/left-align.cjs.js.map +0 -1
  511. package/dist/nile-icon/icons/svg/left-align.esm.js +0 -1
  512. package/dist/nile-icon/icons/svg/ng-activity.cjs.js +0 -2
  513. package/dist/nile-icon/icons/svg/ng-activity.cjs.js.map +0 -1
  514. package/dist/nile-icon/icons/svg/ng-activity.esm.js +0 -1
  515. package/dist/nile-icon/icons/svg/ng-align-center.cjs.js +0 -2
  516. package/dist/nile-icon/icons/svg/ng-align-center.cjs.js.map +0 -1
  517. package/dist/nile-icon/icons/svg/ng-align-center.esm.js +0 -1
  518. package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js +0 -2
  519. package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js.map +0 -1
  520. package/dist/nile-icon/icons/svg/ng-annotation-x.esm.js +0 -1
  521. package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js +0 -2
  522. package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js.map +0 -1
  523. package/dist/nile-icon/icons/svg/ng-arrow-down.esm.js +0 -1
  524. package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js +0 -2
  525. package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js.map +0 -1
  526. package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.esm.js +0 -1
  527. package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js +0 -2
  528. package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js.map +0 -1
  529. package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.esm.js +0 -1
  530. package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js +0 -2
  531. package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js.map +0 -1
  532. package/dist/nile-icon/icons/svg/ng-arrow-up.esm.js +0 -1
  533. package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js +0 -2
  534. package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js.map +0 -1
  535. package/dist/nile-icon/icons/svg/ng-bar-chart-12.esm.js +0 -1
  536. package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js +0 -2
  537. package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js.map +0 -1
  538. package/dist/nile-icon/icons/svg/ng-bell-01.esm.js +0 -1
  539. package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js +0 -2
  540. package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js.map +0 -1
  541. package/dist/nile-icon/icons/svg/ng-bell-ringing-04.esm.js +0 -1
  542. package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js +0 -2
  543. package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js.map +0 -1
  544. package/dist/nile-icon/icons/svg/ng-bold-01.esm.js +0 -1
  545. package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js +0 -2
  546. package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js.map +0 -1
  547. package/dist/nile-icon/icons/svg/ng-calendar-plus-02.esm.js +0 -1
  548. package/dist/nile-icon/icons/svg/ng-calendar.cjs.js +0 -2
  549. package/dist/nile-icon/icons/svg/ng-calendar.cjs.js.map +0 -1
  550. package/dist/nile-icon/icons/svg/ng-calendar.esm.js +0 -1
  551. package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js +0 -2
  552. package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js.map +0 -1
  553. package/dist/nile-icon/icons/svg/ng-check-circle.esm.js +0 -1
  554. package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js +0 -2
  555. package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js.map +0 -1
  556. package/dist/nile-icon/icons/svg/ng-check-square-broken.esm.js +0 -1
  557. package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js +0 -2
  558. package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js.map +0 -1
  559. package/dist/nile-icon/icons/svg/ng-chevron-down.esm.js +0 -1
  560. package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js +0 -2
  561. package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js.map +0 -1
  562. package/dist/nile-icon/icons/svg/ng-chevron-left.esm.js +0 -1
  563. package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js +0 -2
  564. package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js.map +0 -1
  565. package/dist/nile-icon/icons/svg/ng-chevron-right.esm.js +0 -1
  566. package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js +0 -2
  567. package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js.map +0 -1
  568. package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.esm.js +0 -1
  569. package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js +0 -2
  570. package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js.map +0 -1
  571. package/dist/nile-icon/icons/svg/ng-chevron-up-double.esm.js +0 -1
  572. package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js +0 -2
  573. package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js.map +0 -1
  574. package/dist/nile-icon/icons/svg/ng-chevron-up.esm.js +0 -1
  575. package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js +0 -2
  576. package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js.map +0 -1
  577. package/dist/nile-icon/icons/svg/ng-copy-03.esm.js +0 -1
  578. package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js +0 -2
  579. package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js.map +0 -1
  580. package/dist/nile-icon/icons/svg/ng-dots-grid.esm.js +0 -1
  581. package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js +0 -2
  582. package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js.map +0 -1
  583. package/dist/nile-icon/icons/svg/ng-dots-vertical.esm.js +0 -1
  584. package/dist/nile-icon/icons/svg/ng-download-01.cjs.js +0 -2
  585. package/dist/nile-icon/icons/svg/ng-download-01.cjs.js.map +0 -1
  586. package/dist/nile-icon/icons/svg/ng-download-01.esm.js +0 -1
  587. package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js +0 -2
  588. package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js.map +0 -1
  589. package/dist/nile-icon/icons/svg/ng-dropdown.esm.js +0 -1
  590. package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js +0 -2
  591. package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js.map +0 -1
  592. package/dist/nile-icon/icons/svg/ng-edit-02.esm.js +0 -1
  593. package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js +0 -2
  594. package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js.map +0 -1
  595. package/dist/nile-icon/icons/svg/ng-edit-05.esm.js +0 -1
  596. package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js +0 -2
  597. package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js.map +0 -1
  598. package/dist/nile-icon/icons/svg/ng-expand-06.esm.js +0 -1
  599. package/dist/nile-icon/icons/svg/ng-eye.cjs.js +0 -2
  600. package/dist/nile-icon/icons/svg/ng-eye.cjs.js.map +0 -1
  601. package/dist/nile-icon/icons/svg/ng-eye.esm.js +0 -1
  602. package/dist/nile-icon/icons/svg/ng-file-02.cjs.js +0 -2
  603. package/dist/nile-icon/icons/svg/ng-file-02.cjs.js.map +0 -1
  604. package/dist/nile-icon/icons/svg/ng-file-02.esm.js +0 -1
  605. package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js +0 -2
  606. package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js.map +0 -1
  607. package/dist/nile-icon/icons/svg/ng-file-check-02.esm.js +0 -1
  608. package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js +0 -2
  609. package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js.map +0 -1
  610. package/dist/nile-icon/icons/svg/ng-file-question-03.esm.js +0 -1
  611. package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js +0 -2
  612. package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js.map +0 -1
  613. package/dist/nile-icon/icons/svg/ng-filter-lines.esm.js +0 -1
  614. package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js +0 -2
  615. package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js.map +0 -1
  616. package/dist/nile-icon/icons/svg/ng-grid-01.esm.js +0 -1
  617. package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js +0 -2
  618. package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js.map +0 -1
  619. package/dist/nile-icon/icons/svg/ng-help-circle.esm.js +0 -1
  620. package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js +0 -2
  621. package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js.map +0 -1
  622. package/dist/nile-icon/icons/svg/ng-image-user-left.esm.js +0 -1
  623. package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js +0 -2
  624. package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js.map +0 -1
  625. package/dist/nile-icon/icons/svg/ng-info-circle.esm.js +0 -1
  626. package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js +0 -2
  627. package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js.map +0 -1
  628. package/dist/nile-icon/icons/svg/ng-italic-01.esm.js +0 -1
  629. package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js +0 -2
  630. package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js.map +0 -1
  631. package/dist/nile-icon/icons/svg/ng-layers-three-01.esm.js +0 -1
  632. package/dist/nile-icon/icons/svg/ng-list.cjs.js +0 -2
  633. package/dist/nile-icon/icons/svg/ng-list.cjs.js.map +0 -1
  634. package/dist/nile-icon/icons/svg/ng-list.esm.js +0 -1
  635. package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js +0 -2
  636. package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js.map +0 -1
  637. package/dist/nile-icon/icons/svg/ng-log-out-01.esm.js +0 -1
  638. package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js +0 -2
  639. package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js.map +0 -1
  640. package/dist/nile-icon/icons/svg/ng-mail-01.esm.js +0 -1
  641. package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js +0 -2
  642. package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js.map +0 -1
  643. package/dist/nile-icon/icons/svg/ng-mail-04.esm.js +0 -1
  644. package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js +0 -2
  645. package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js.map +0 -1
  646. package/dist/nile-icon/icons/svg/ng-menu-05.esm.js +0 -1
  647. package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js +0 -2
  648. package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js.map +0 -1
  649. package/dist/nile-icon/icons/svg/ng-message-text-square-01.esm.js +0 -1
  650. package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js +0 -2
  651. package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js.map +0 -1
  652. package/dist/nile-icon/icons/svg/ng-minimize-02.esm.js +0 -1
  653. package/dist/nile-icon/icons/svg/ng-plus.cjs.js +0 -2
  654. package/dist/nile-icon/icons/svg/ng-plus.cjs.js.map +0 -1
  655. package/dist/nile-icon/icons/svg/ng-plus.esm.js +0 -1
  656. package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js +0 -2
  657. package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js.map +0 -1
  658. package/dist/nile-icon/icons/svg/ng-refresh-cw-02.esm.js +0 -1
  659. package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js +0 -2
  660. package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js.map +0 -1
  661. package/dist/nile-icon/icons/svg/ng-rocket-02.esm.js +0 -1
  662. package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js +0 -2
  663. package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js.map +0 -1
  664. package/dist/nile-icon/icons/svg/ng-search-lg.esm.js +0 -1
  665. package/dist/nile-icon/icons/svg/ng-send-01.cjs.js +0 -2
  666. package/dist/nile-icon/icons/svg/ng-send-01.cjs.js.map +0 -1
  667. package/dist/nile-icon/icons/svg/ng-send-01.esm.js +0 -1
  668. package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js +0 -2
  669. package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js.map +0 -1
  670. package/dist/nile-icon/icons/svg/ng-settings-01.esm.js +0 -1
  671. package/dist/nile-icon/icons/svg/ng-share-04.cjs.js +0 -2
  672. package/dist/nile-icon/icons/svg/ng-share-04.cjs.js.map +0 -1
  673. package/dist/nile-icon/icons/svg/ng-share-04.esm.js +0 -1
  674. package/dist/nile-icon/icons/svg/ng-share-06.cjs.js +0 -2
  675. package/dist/nile-icon/icons/svg/ng-share-06.cjs.js.map +0 -1
  676. package/dist/nile-icon/icons/svg/ng-share-06.esm.js +0 -1
  677. package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js +0 -2
  678. package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js.map +0 -1
  679. package/dist/nile-icon/icons/svg/ng-stars-02.esm.js +0 -1
  680. package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js +0 -2
  681. package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js.map +0 -1
  682. package/dist/nile-icon/icons/svg/ng-trash-01.esm.js +0 -1
  683. package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js +0 -2
  684. package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js.map +0 -1
  685. package/dist/nile-icon/icons/svg/ng-trash-03.esm.js +0 -1
  686. package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js +0 -2
  687. package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js.map +0 -1
  688. package/dist/nile-icon/icons/svg/ng-trend-up-01.esm.js +0 -1
  689. package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js +0 -2
  690. package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js.map +0 -1
  691. package/dist/nile-icon/icons/svg/ng-underline-01.esm.js +0 -1
  692. package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js +0 -2
  693. package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js.map +0 -1
  694. package/dist/nile-icon/icons/svg/ng-upload-01.esm.js +0 -1
  695. package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js +0 -2
  696. package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js.map +0 -1
  697. package/dist/nile-icon/icons/svg/ng-upload-cloud-02.esm.js +0 -1
  698. package/dist/nile-icon/icons/svg/ng-user-01.cjs.js +0 -2
  699. package/dist/nile-icon/icons/svg/ng-user-01.cjs.js.map +0 -1
  700. package/dist/nile-icon/icons/svg/ng-user-01.esm.js +0 -1
  701. package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js +0 -2
  702. package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js.map +0 -1
  703. package/dist/nile-icon/icons/svg/ng-user-check-02-1.esm.js +0 -1
  704. package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js +0 -2
  705. package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js.map +0 -1
  706. package/dist/nile-icon/icons/svg/ng-user-check-02.esm.js +0 -1
  707. package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js +0 -2
  708. package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js.map +0 -1
  709. package/dist/nile-icon/icons/svg/ng-user-plus-02.esm.js +0 -1
  710. package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js +0 -2
  711. package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js.map +0 -1
  712. package/dist/nile-icon/icons/svg/ng-user-right-01.esm.js +0 -1
  713. package/dist/nile-icon/icons/svg/ng-users-01.cjs.js +0 -2
  714. package/dist/nile-icon/icons/svg/ng-users-01.cjs.js.map +0 -1
  715. package/dist/nile-icon/icons/svg/ng-users-01.esm.js +0 -1
  716. package/dist/nile-icon/icons/svg/ng-x-close.cjs.js +0 -2
  717. package/dist/nile-icon/icons/svg/ng-x-close.cjs.js.map +0 -1
  718. package/dist/nile-icon/icons/svg/ng-x-close.esm.js +0 -1
  719. package/dist/nile-icon/icons/svg/ng-x-square.cjs.js +0 -2
  720. package/dist/nile-icon/icons/svg/ng-x-square.cjs.js.map +0 -1
  721. package/dist/nile-icon/icons/svg/ng-x-square.esm.js +0 -1
  722. package/dist/nile-icon/icons/svg/ol.cjs.js +0 -2
  723. package/dist/nile-icon/icons/svg/ol.cjs.js.map +0 -1
  724. package/dist/nile-icon/icons/svg/ol.esm.js +0 -1
  725. package/dist/nile-icon/icons/svg/right-align.cjs.js +0 -2
  726. package/dist/nile-icon/icons/svg/right-align.cjs.js.map +0 -1
  727. package/dist/nile-icon/icons/svg/right-align.esm.js +0 -1
  728. package/dist/nile-icon/icons/svg/ul.cjs.js +0 -2
  729. package/dist/nile-icon/icons/svg/ul.cjs.js.map +0 -1
  730. package/dist/nile-icon/icons/svg/ul.esm.js +0 -1
  731. package/dist/nile-icon/icons/svg/underline.cjs.js +0 -2
  732. package/dist/nile-icon/icons/svg/underline.cjs.js.map +0 -1
  733. package/dist/nile-icon/icons/svg/underline.esm.js +0 -1
  734. package/dist/nile-lightdomeditor/index.cjs.js +0 -2
  735. package/dist/nile-lightdomeditor/index.esm.js +0 -1
  736. package/dist/nile-lightdomeditor/nile-lightdomeditor.cjs.js +0 -2
  737. package/dist/nile-lightdomeditor/nile-lightdomeditor.cjs.js.map +0 -1
  738. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.cjs.js +0 -2
  739. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.cjs.js.map +0 -1
  740. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.esm.js +0 -225
  741. package/dist/nile-lightdomeditor/nile-lightdomeditor.esm.js +0 -122
  742. package/dist/nile-rich-text-editor/index.cjs.js +0 -2
  743. package/dist/nile-rich-text-editor/index.esm.js +0 -1
  744. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +0 -2
  745. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +0 -1
  746. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +0 -2
  747. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +0 -1
  748. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +0 -7
  749. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +0 -1
  750. package/dist/nile-rich-text-editor/nile-rte-color.cjs.js +0 -2
  751. package/dist/nile-rich-text-editor/nile-rte-color.cjs.js.map +0 -1
  752. package/dist/nile-rich-text-editor/nile-rte-color.esm.js +0 -1
  753. package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js +0 -2
  754. package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js.map +0 -1
  755. package/dist/nile-rich-text-editor/nile-rte-divider.esm.js +0 -1
  756. package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js +0 -2
  757. package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js.map +0 -1
  758. package/dist/nile-rich-text-editor/nile-rte-mentions-item.esm.js +0 -1
  759. package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js +0 -3
  760. package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js.map +0 -1
  761. package/dist/nile-rich-text-editor/nile-rte-mentions.esm.js +0 -1
  762. package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js +0 -2
  763. package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js.map +0 -1
  764. package/dist/nile-rich-text-editor/nile-rte-preview.esm.js +0 -1
  765. package/dist/nile-rich-text-editor/nile-rte-select.cjs.js +0 -2
  766. package/dist/nile-rich-text-editor/nile-rte-select.cjs.js.map +0 -1
  767. package/dist/nile-rich-text-editor/nile-rte-select.esm.js +0 -32
  768. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js +0 -2
  769. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js.map +0 -1
  770. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.esm.js +0 -1
  771. package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js +0 -2
  772. package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js.map +0 -1
  773. package/dist/nile-rich-text-editor/nile-rte-toolbar.esm.js +0 -1
  774. package/dist/nile-rich-text-editor/utils.cjs.js +0 -2
  775. package/dist/nile-rich-text-editor/utils.cjs.js.map +0 -1
  776. package/dist/nile-rich-text-editor/utils.esm.js +0 -1
  777. package/dist/nile-richcodeeditor/index.cjs.js +0 -2
  778. package/dist/nile-richcodeeditor/index.cjs.js.map +0 -1
  779. package/dist/nile-richcodeeditor/index.esm.js +0 -1
  780. package/dist/nile-richcodeeditor/nile-richcodeeditor.cjs.js +0 -2
  781. package/dist/nile-richcodeeditor/nile-richcodeeditor.cjs.js.map +0 -1
  782. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.cjs.js +0 -2
  783. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.cjs.js.map +0 -1
  784. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.esm.js +0 -5
  785. package/dist/nile-richcodeeditor/nile-richcodeeditor.esm.js +0 -66
  786. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +0 -17
  787. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +0 -310
  788. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +0 -34
  789. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +0 -31
  790. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +0 -47
  791. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +0 -16
  792. package/dist/src/nile-icon/icons/svg/bold.d.ts +0 -5
  793. package/dist/src/nile-icon/icons/svg/bold.js +0 -5
  794. package/dist/src/nile-icon/icons/svg/bold.js.map +0 -1
  795. package/dist/src/nile-icon/icons/svg/center-align.d.ts +0 -5
  796. package/dist/src/nile-icon/icons/svg/center-align.js +0 -5
  797. package/dist/src/nile-icon/icons/svg/center-align.js.map +0 -1
  798. package/dist/src/nile-icon/icons/svg/itallic.d.ts +0 -5
  799. package/dist/src/nile-icon/icons/svg/itallic.js +0 -5
  800. package/dist/src/nile-icon/icons/svg/itallic.js.map +0 -1
  801. package/dist/src/nile-icon/icons/svg/justify-align.d.ts +0 -5
  802. package/dist/src/nile-icon/icons/svg/justify-align.js +0 -5
  803. package/dist/src/nile-icon/icons/svg/justify-align.js.map +0 -1
  804. package/dist/src/nile-icon/icons/svg/left-align.d.ts +0 -5
  805. package/dist/src/nile-icon/icons/svg/left-align.js +0 -5
  806. package/dist/src/nile-icon/icons/svg/left-align.js.map +0 -1
  807. package/dist/src/nile-icon/icons/svg/ng-activity.d.ts +0 -5
  808. package/dist/src/nile-icon/icons/svg/ng-activity.js +0 -5
  809. package/dist/src/nile-icon/icons/svg/ng-activity.js.map +0 -1
  810. package/dist/src/nile-icon/icons/svg/ng-align-center.d.ts +0 -5
  811. package/dist/src/nile-icon/icons/svg/ng-align-center.js +0 -5
  812. package/dist/src/nile-icon/icons/svg/ng-align-center.js.map +0 -1
  813. package/dist/src/nile-icon/icons/svg/ng-annotation-x.d.ts +0 -5
  814. package/dist/src/nile-icon/icons/svg/ng-annotation-x.js +0 -5
  815. package/dist/src/nile-icon/icons/svg/ng-annotation-x.js.map +0 -1
  816. package/dist/src/nile-icon/icons/svg/ng-arrow-down.d.ts +0 -5
  817. package/dist/src/nile-icon/icons/svg/ng-arrow-down.js +0 -5
  818. package/dist/src/nile-icon/icons/svg/ng-arrow-down.js.map +0 -1
  819. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.d.ts +0 -5
  820. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.js +0 -5
  821. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-down.js.map +0 -1
  822. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.d.ts +0 -5
  823. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.js +0 -5
  824. package/dist/src/nile-icon/icons/svg/ng-arrow-narrow-left.js.map +0 -1
  825. package/dist/src/nile-icon/icons/svg/ng-arrow-up.d.ts +0 -5
  826. package/dist/src/nile-icon/icons/svg/ng-arrow-up.js +0 -5
  827. package/dist/src/nile-icon/icons/svg/ng-arrow-up.js.map +0 -1
  828. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.d.ts +0 -5
  829. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.js +0 -5
  830. package/dist/src/nile-icon/icons/svg/ng-bar-chart-12.js.map +0 -1
  831. package/dist/src/nile-icon/icons/svg/ng-bell-01.d.ts +0 -5
  832. package/dist/src/nile-icon/icons/svg/ng-bell-01.js +0 -5
  833. package/dist/src/nile-icon/icons/svg/ng-bell-01.js.map +0 -1
  834. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.d.ts +0 -5
  835. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.js +0 -5
  836. package/dist/src/nile-icon/icons/svg/ng-bell-ringing-04.js.map +0 -1
  837. package/dist/src/nile-icon/icons/svg/ng-bold-01.d.ts +0 -5
  838. package/dist/src/nile-icon/icons/svg/ng-bold-01.js +0 -5
  839. package/dist/src/nile-icon/icons/svg/ng-bold-01.js.map +0 -1
  840. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.d.ts +0 -5
  841. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.js +0 -5
  842. package/dist/src/nile-icon/icons/svg/ng-calendar-plus-02.js.map +0 -1
  843. package/dist/src/nile-icon/icons/svg/ng-calendar.d.ts +0 -5
  844. package/dist/src/nile-icon/icons/svg/ng-calendar.js +0 -5
  845. package/dist/src/nile-icon/icons/svg/ng-calendar.js.map +0 -1
  846. package/dist/src/nile-icon/icons/svg/ng-check-circle.d.ts +0 -5
  847. package/dist/src/nile-icon/icons/svg/ng-check-circle.js +0 -5
  848. package/dist/src/nile-icon/icons/svg/ng-check-circle.js.map +0 -1
  849. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.d.ts +0 -5
  850. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.js +0 -5
  851. package/dist/src/nile-icon/icons/svg/ng-check-square-broken.js.map +0 -1
  852. package/dist/src/nile-icon/icons/svg/ng-chevron-down.d.ts +0 -5
  853. package/dist/src/nile-icon/icons/svg/ng-chevron-down.js +0 -5
  854. package/dist/src/nile-icon/icons/svg/ng-chevron-down.js.map +0 -1
  855. package/dist/src/nile-icon/icons/svg/ng-chevron-left.d.ts +0 -5
  856. package/dist/src/nile-icon/icons/svg/ng-chevron-left.js +0 -5
  857. package/dist/src/nile-icon/icons/svg/ng-chevron-left.js.map +0 -1
  858. package/dist/src/nile-icon/icons/svg/ng-chevron-right.d.ts +0 -5
  859. package/dist/src/nile-icon/icons/svg/ng-chevron-right.js +0 -5
  860. package/dist/src/nile-icon/icons/svg/ng-chevron-right.js.map +0 -1
  861. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.d.ts +0 -5
  862. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.js +0 -5
  863. package/dist/src/nile-icon/icons/svg/ng-chevron-selector-vertical.js.map +0 -1
  864. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.d.ts +0 -5
  865. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.js +0 -5
  866. package/dist/src/nile-icon/icons/svg/ng-chevron-up-double.js.map +0 -1
  867. package/dist/src/nile-icon/icons/svg/ng-chevron-up.d.ts +0 -5
  868. package/dist/src/nile-icon/icons/svg/ng-chevron-up.js +0 -5
  869. package/dist/src/nile-icon/icons/svg/ng-chevron-up.js.map +0 -1
  870. package/dist/src/nile-icon/icons/svg/ng-copy-03.d.ts +0 -5
  871. package/dist/src/nile-icon/icons/svg/ng-copy-03.js +0 -5
  872. package/dist/src/nile-icon/icons/svg/ng-copy-03.js.map +0 -1
  873. package/dist/src/nile-icon/icons/svg/ng-dots-grid.d.ts +0 -5
  874. package/dist/src/nile-icon/icons/svg/ng-dots-grid.js +0 -5
  875. package/dist/src/nile-icon/icons/svg/ng-dots-grid.js.map +0 -1
  876. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.d.ts +0 -5
  877. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.js +0 -5
  878. package/dist/src/nile-icon/icons/svg/ng-dots-vertical.js.map +0 -1
  879. package/dist/src/nile-icon/icons/svg/ng-download-01.d.ts +0 -5
  880. package/dist/src/nile-icon/icons/svg/ng-download-01.js +0 -5
  881. package/dist/src/nile-icon/icons/svg/ng-download-01.js.map +0 -1
  882. package/dist/src/nile-icon/icons/svg/ng-dropdown.d.ts +0 -5
  883. package/dist/src/nile-icon/icons/svg/ng-dropdown.js +0 -5
  884. package/dist/src/nile-icon/icons/svg/ng-dropdown.js.map +0 -1
  885. package/dist/src/nile-icon/icons/svg/ng-edit-02.d.ts +0 -5
  886. package/dist/src/nile-icon/icons/svg/ng-edit-02.js +0 -5
  887. package/dist/src/nile-icon/icons/svg/ng-edit-02.js.map +0 -1
  888. package/dist/src/nile-icon/icons/svg/ng-edit-05.d.ts +0 -5
  889. package/dist/src/nile-icon/icons/svg/ng-edit-05.js +0 -5
  890. package/dist/src/nile-icon/icons/svg/ng-edit-05.js.map +0 -1
  891. package/dist/src/nile-icon/icons/svg/ng-expand-06.d.ts +0 -5
  892. package/dist/src/nile-icon/icons/svg/ng-expand-06.js +0 -5
  893. package/dist/src/nile-icon/icons/svg/ng-expand-06.js.map +0 -1
  894. package/dist/src/nile-icon/icons/svg/ng-eye.d.ts +0 -5
  895. package/dist/src/nile-icon/icons/svg/ng-eye.js +0 -5
  896. package/dist/src/nile-icon/icons/svg/ng-eye.js.map +0 -1
  897. package/dist/src/nile-icon/icons/svg/ng-file-02.d.ts +0 -5
  898. package/dist/src/nile-icon/icons/svg/ng-file-02.js +0 -5
  899. package/dist/src/nile-icon/icons/svg/ng-file-02.js.map +0 -1
  900. package/dist/src/nile-icon/icons/svg/ng-file-check-02.d.ts +0 -5
  901. package/dist/src/nile-icon/icons/svg/ng-file-check-02.js +0 -5
  902. package/dist/src/nile-icon/icons/svg/ng-file-check-02.js.map +0 -1
  903. package/dist/src/nile-icon/icons/svg/ng-file-question-03.d.ts +0 -5
  904. package/dist/src/nile-icon/icons/svg/ng-file-question-03.js +0 -5
  905. package/dist/src/nile-icon/icons/svg/ng-file-question-03.js.map +0 -1
  906. package/dist/src/nile-icon/icons/svg/ng-filter-lines.d.ts +0 -5
  907. package/dist/src/nile-icon/icons/svg/ng-filter-lines.js +0 -5
  908. package/dist/src/nile-icon/icons/svg/ng-filter-lines.js.map +0 -1
  909. package/dist/src/nile-icon/icons/svg/ng-grid-01.d.ts +0 -5
  910. package/dist/src/nile-icon/icons/svg/ng-grid-01.js +0 -5
  911. package/dist/src/nile-icon/icons/svg/ng-grid-01.js.map +0 -1
  912. package/dist/src/nile-icon/icons/svg/ng-help-circle.d.ts +0 -5
  913. package/dist/src/nile-icon/icons/svg/ng-help-circle.js +0 -5
  914. package/dist/src/nile-icon/icons/svg/ng-help-circle.js.map +0 -1
  915. package/dist/src/nile-icon/icons/svg/ng-image-user-left.d.ts +0 -5
  916. package/dist/src/nile-icon/icons/svg/ng-image-user-left.js +0 -5
  917. package/dist/src/nile-icon/icons/svg/ng-image-user-left.js.map +0 -1
  918. package/dist/src/nile-icon/icons/svg/ng-info-circle.d.ts +0 -5
  919. package/dist/src/nile-icon/icons/svg/ng-info-circle.js +0 -5
  920. package/dist/src/nile-icon/icons/svg/ng-info-circle.js.map +0 -1
  921. package/dist/src/nile-icon/icons/svg/ng-italic-01.d.ts +0 -5
  922. package/dist/src/nile-icon/icons/svg/ng-italic-01.js +0 -5
  923. package/dist/src/nile-icon/icons/svg/ng-italic-01.js.map +0 -1
  924. package/dist/src/nile-icon/icons/svg/ng-layers-three-01.d.ts +0 -5
  925. package/dist/src/nile-icon/icons/svg/ng-layers-three-01.js +0 -5
  926. package/dist/src/nile-icon/icons/svg/ng-layers-three-01.js.map +0 -1
  927. package/dist/src/nile-icon/icons/svg/ng-list.d.ts +0 -5
  928. package/dist/src/nile-icon/icons/svg/ng-list.js +0 -5
  929. package/dist/src/nile-icon/icons/svg/ng-list.js.map +0 -1
  930. package/dist/src/nile-icon/icons/svg/ng-log-out-01.d.ts +0 -5
  931. package/dist/src/nile-icon/icons/svg/ng-log-out-01.js +0 -5
  932. package/dist/src/nile-icon/icons/svg/ng-log-out-01.js.map +0 -1
  933. package/dist/src/nile-icon/icons/svg/ng-mail-01.d.ts +0 -5
  934. package/dist/src/nile-icon/icons/svg/ng-mail-01.js +0 -5
  935. package/dist/src/nile-icon/icons/svg/ng-mail-01.js.map +0 -1
  936. package/dist/src/nile-icon/icons/svg/ng-mail-04.d.ts +0 -5
  937. package/dist/src/nile-icon/icons/svg/ng-mail-04.js +0 -5
  938. package/dist/src/nile-icon/icons/svg/ng-mail-04.js.map +0 -1
  939. package/dist/src/nile-icon/icons/svg/ng-menu-05.d.ts +0 -5
  940. package/dist/src/nile-icon/icons/svg/ng-menu-05.js +0 -5
  941. package/dist/src/nile-icon/icons/svg/ng-menu-05.js.map +0 -1
  942. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.d.ts +0 -5
  943. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js +0 -5
  944. package/dist/src/nile-icon/icons/svg/ng-message-text-square-01.js.map +0 -1
  945. package/dist/src/nile-icon/icons/svg/ng-minimize-02.d.ts +0 -5
  946. package/dist/src/nile-icon/icons/svg/ng-minimize-02.js +0 -5
  947. package/dist/src/nile-icon/icons/svg/ng-minimize-02.js.map +0 -1
  948. package/dist/src/nile-icon/icons/svg/ng-plus.d.ts +0 -5
  949. package/dist/src/nile-icon/icons/svg/ng-plus.js +0 -5
  950. package/dist/src/nile-icon/icons/svg/ng-plus.js.map +0 -1
  951. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.d.ts +0 -5
  952. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.js +0 -5
  953. package/dist/src/nile-icon/icons/svg/ng-refresh-cw-02.js.map +0 -1
  954. package/dist/src/nile-icon/icons/svg/ng-rocket-02.d.ts +0 -5
  955. package/dist/src/nile-icon/icons/svg/ng-rocket-02.js +0 -5
  956. package/dist/src/nile-icon/icons/svg/ng-rocket-02.js.map +0 -1
  957. package/dist/src/nile-icon/icons/svg/ng-search-lg.d.ts +0 -5
  958. package/dist/src/nile-icon/icons/svg/ng-search-lg.js +0 -5
  959. package/dist/src/nile-icon/icons/svg/ng-search-lg.js.map +0 -1
  960. package/dist/src/nile-icon/icons/svg/ng-send-01.d.ts +0 -5
  961. package/dist/src/nile-icon/icons/svg/ng-send-01.js +0 -5
  962. package/dist/src/nile-icon/icons/svg/ng-send-01.js.map +0 -1
  963. package/dist/src/nile-icon/icons/svg/ng-settings-01.d.ts +0 -5
  964. package/dist/src/nile-icon/icons/svg/ng-settings-01.js +0 -5
  965. package/dist/src/nile-icon/icons/svg/ng-settings-01.js.map +0 -1
  966. package/dist/src/nile-icon/icons/svg/ng-share-04.d.ts +0 -5
  967. package/dist/src/nile-icon/icons/svg/ng-share-04.js +0 -5
  968. package/dist/src/nile-icon/icons/svg/ng-share-04.js.map +0 -1
  969. package/dist/src/nile-icon/icons/svg/ng-share-06.d.ts +0 -5
  970. package/dist/src/nile-icon/icons/svg/ng-share-06.js +0 -5
  971. package/dist/src/nile-icon/icons/svg/ng-share-06.js.map +0 -1
  972. package/dist/src/nile-icon/icons/svg/ng-stars-02.d.ts +0 -5
  973. package/dist/src/nile-icon/icons/svg/ng-stars-02.js +0 -5
  974. package/dist/src/nile-icon/icons/svg/ng-stars-02.js.map +0 -1
  975. package/dist/src/nile-icon/icons/svg/ng-trash-01.d.ts +0 -5
  976. package/dist/src/nile-icon/icons/svg/ng-trash-01.js +0 -5
  977. package/dist/src/nile-icon/icons/svg/ng-trash-01.js.map +0 -1
  978. package/dist/src/nile-icon/icons/svg/ng-trash-03.d.ts +0 -5
  979. package/dist/src/nile-icon/icons/svg/ng-trash-03.js +0 -5
  980. package/dist/src/nile-icon/icons/svg/ng-trash-03.js.map +0 -1
  981. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.d.ts +0 -5
  982. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.js +0 -5
  983. package/dist/src/nile-icon/icons/svg/ng-trend-up-01.js.map +0 -1
  984. package/dist/src/nile-icon/icons/svg/ng-underline-01.d.ts +0 -5
  985. package/dist/src/nile-icon/icons/svg/ng-underline-01.js +0 -5
  986. package/dist/src/nile-icon/icons/svg/ng-underline-01.js.map +0 -1
  987. package/dist/src/nile-icon/icons/svg/ng-upload-01.d.ts +0 -5
  988. package/dist/src/nile-icon/icons/svg/ng-upload-01.js +0 -5
  989. package/dist/src/nile-icon/icons/svg/ng-upload-01.js.map +0 -1
  990. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.d.ts +0 -5
  991. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.js +0 -5
  992. package/dist/src/nile-icon/icons/svg/ng-upload-cloud-02.js.map +0 -1
  993. package/dist/src/nile-icon/icons/svg/ng-user-01.d.ts +0 -5
  994. package/dist/src/nile-icon/icons/svg/ng-user-01.js +0 -5
  995. package/dist/src/nile-icon/icons/svg/ng-user-01.js.map +0 -1
  996. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.d.ts +0 -5
  997. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.js +0 -5
  998. package/dist/src/nile-icon/icons/svg/ng-user-check-02-1.js.map +0 -1
  999. package/dist/src/nile-icon/icons/svg/ng-user-check-02.d.ts +0 -5
  1000. package/dist/src/nile-icon/icons/svg/ng-user-check-02.js +0 -5
  1001. package/dist/src/nile-icon/icons/svg/ng-user-check-02.js.map +0 -1
  1002. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.d.ts +0 -5
  1003. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.js +0 -5
  1004. package/dist/src/nile-icon/icons/svg/ng-user-plus-02.js.map +0 -1
  1005. package/dist/src/nile-icon/icons/svg/ng-user-right-01.d.ts +0 -5
  1006. package/dist/src/nile-icon/icons/svg/ng-user-right-01.js +0 -5
  1007. package/dist/src/nile-icon/icons/svg/ng-user-right-01.js.map +0 -1
  1008. package/dist/src/nile-icon/icons/svg/ng-users-01.d.ts +0 -5
  1009. package/dist/src/nile-icon/icons/svg/ng-users-01.js +0 -5
  1010. package/dist/src/nile-icon/icons/svg/ng-users-01.js.map +0 -1
  1011. package/dist/src/nile-icon/icons/svg/ng-x-close.d.ts +0 -5
  1012. package/dist/src/nile-icon/icons/svg/ng-x-close.js +0 -5
  1013. package/dist/src/nile-icon/icons/svg/ng-x-close.js.map +0 -1
  1014. package/dist/src/nile-icon/icons/svg/ng-x-square.d.ts +0 -5
  1015. package/dist/src/nile-icon/icons/svg/ng-x-square.js +0 -5
  1016. package/dist/src/nile-icon/icons/svg/ng-x-square.js.map +0 -1
  1017. package/dist/src/nile-icon/icons/svg/ol.d.ts +0 -5
  1018. package/dist/src/nile-icon/icons/svg/ol.js +0 -5
  1019. package/dist/src/nile-icon/icons/svg/ol.js.map +0 -1
  1020. package/dist/src/nile-icon/icons/svg/right-align.d.ts +0 -5
  1021. package/dist/src/nile-icon/icons/svg/right-align.js +0 -5
  1022. package/dist/src/nile-icon/icons/svg/right-align.js.map +0 -1
  1023. package/dist/src/nile-icon/icons/svg/ul.d.ts +0 -5
  1024. package/dist/src/nile-icon/icons/svg/ul.js +0 -5
  1025. package/dist/src/nile-icon/icons/svg/ul.js.map +0 -1
  1026. package/dist/src/nile-icon/icons/svg/underline.d.ts +0 -5
  1027. package/dist/src/nile-icon/icons/svg/underline.js +0 -5
  1028. package/dist/src/nile-icon/icons/svg/underline.js.map +0 -1
  1029. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +0 -75
  1030. package/dist/src/nile-lightdomeditor/index.d.ts +0 -1
  1031. package/dist/src/nile-lightdomeditor/index.js +0 -2
  1032. package/dist/src/nile-lightdomeditor/index.js.map +0 -1
  1033. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.d.ts +0 -6
  1034. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.js +0 -237
  1035. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.js.map +0 -1
  1036. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.d.ts +0 -74
  1037. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.js +0 -591
  1038. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.js.map +0 -1
  1039. package/dist/src/nile-lightdomeditor/utils/nile-mention.d.ts +0 -13
  1040. package/dist/src/nile-lightdomeditor/utils/nile-mention.js +0 -47
  1041. package/dist/src/nile-lightdomeditor/utils/nile-mention.js.map +0 -1
  1042. package/dist/src/nile-markdowneditor/index.d.ts +0 -1
  1043. package/dist/src/nile-markdowneditor/index.js +0 -2
  1044. package/dist/src/nile-markdowneditor/index.js.map +0 -1
  1045. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.d.ts +0 -12
  1046. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.js +0 -17
  1047. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.js.map +0 -1
  1048. package/dist/src/nile-markdowneditor/nile-markdowneditor.d.ts +0 -32
  1049. package/dist/src/nile-markdowneditor/nile-markdowneditor.js +0 -43
  1050. package/dist/src/nile-markdowneditor/nile-markdowneditor.js.map +0 -1
  1051. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +0 -22
  1052. package/dist/src/nile-prosemirror-poc/index.d.ts +0 -1
  1053. package/dist/src/nile-prosemirror-poc/index.js +0 -2
  1054. package/dist/src/nile-prosemirror-poc/index.js.map +0 -1
  1055. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.d.ts +0 -12
  1056. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.js +0 -17
  1057. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.js.map +0 -1
  1058. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.d.ts +0 -24
  1059. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.js +0 -190
  1060. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.js.map +0 -1
  1061. package/dist/src/nile-rich-text-editor/index.d.ts +0 -1
  1062. package/dist/src/nile-rich-text-editor/index.js +0 -2
  1063. package/dist/src/nile-rich-text-editor/index.js.map +0 -1
  1064. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.d.ts +0 -12
  1065. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +0 -19
  1066. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +0 -1
  1067. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +0 -54
  1068. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +0 -591
  1069. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +0 -1
  1070. package/dist/src/nile-rich-text-editor/nile-rte-color.d.ts +0 -14
  1071. package/dist/src/nile-rich-text-editor/nile-rte-color.js +0 -28
  1072. package/dist/src/nile-rich-text-editor/nile-rte-color.js.map +0 -1
  1073. package/dist/src/nile-rich-text-editor/nile-rte-divider.d.ts +0 -10
  1074. package/dist/src/nile-rich-text-editor/nile-rte-divider.js +0 -12
  1075. package/dist/src/nile-rich-text-editor/nile-rte-divider.js.map +0 -1
  1076. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.d.ts +0 -17
  1077. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js +0 -42
  1078. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js.map +0 -1
  1079. package/dist/src/nile-rich-text-editor/nile-rte-mentions.d.ts +0 -54
  1080. package/dist/src/nile-rich-text-editor/nile-rte-mentions.js +0 -400
  1081. package/dist/src/nile-rich-text-editor/nile-rte-mentions.js.map +0 -1
  1082. package/dist/src/nile-rich-text-editor/nile-rte-preview.d.ts +0 -10
  1083. package/dist/src/nile-rich-text-editor/nile-rte-preview.js +0 -12
  1084. package/dist/src/nile-rich-text-editor/nile-rte-preview.js.map +0 -1
  1085. package/dist/src/nile-rich-text-editor/nile-rte-select.d.ts +0 -23
  1086. package/dist/src/nile-rich-text-editor/nile-rte-select.js +0 -144
  1087. package/dist/src/nile-rich-text-editor/nile-rte-select.js.map +0 -1
  1088. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.d.ts +0 -12
  1089. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js +0 -23
  1090. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js.map +0 -1
  1091. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.d.ts +0 -10
  1092. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js +0 -12
  1093. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js.map +0 -1
  1094. package/dist/src/nile-rich-text-editor/nille-rte-mention.d.ts +0 -21
  1095. package/dist/src/nile-rich-text-editor/nille-rte-mention.js +0 -47
  1096. package/dist/src/nile-rich-text-editor/nille-rte-mention.js.map +0 -1
  1097. package/dist/src/nile-rich-text-editor/nille-rte-mentions.d.ts +0 -21
  1098. package/dist/src/nile-rich-text-editor/nille-rte-mentions.js +0 -47
  1099. package/dist/src/nile-rich-text-editor/nille-rte-mentions.js.map +0 -1
  1100. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.d.ts +0 -0
  1101. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.js +0 -2
  1102. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.js.map +0 -1
  1103. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.d.ts +0 -8
  1104. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.js +0 -39
  1105. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.js.map +0 -1
  1106. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.d.ts +0 -0
  1107. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.js +0 -2
  1108. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.js.map +0 -1
  1109. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.d.ts +0 -12
  1110. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.js +0 -24
  1111. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.js.map +0 -1
  1112. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.d.ts +0 -25
  1113. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.js +0 -89
  1114. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.js.map +0 -1
  1115. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.d.ts +0 -12
  1116. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.js +0 -47
  1117. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.js.map +0 -1
  1118. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.d.ts +0 -7
  1119. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.js +0 -28
  1120. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.js.map +0 -1
  1121. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.d.ts +0 -6
  1122. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.js +0 -237
  1123. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.js.map +0 -1
  1124. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.d.ts +0 -5
  1125. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.js +0 -26
  1126. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.js.map +0 -1
  1127. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.d.ts +0 -6
  1128. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.js +0 -237
  1129. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.js.map +0 -1
  1130. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.d.ts +0 -8
  1131. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.js +0 -36
  1132. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.js.map +0 -1
  1133. package/dist/src/nile-rich-text-editor/utils.d.ts +0 -12
  1134. package/dist/src/nile-rich-text-editor/utils.js +0 -234
  1135. package/dist/src/nile-rich-text-editor/utils.js.map +0 -1
  1136. package/dist/src/nile-richcodeeditor/index.d.ts +0 -1
  1137. package/dist/src/nile-richcodeeditor/index.js +0 -2
  1138. package/dist/src/nile-richcodeeditor/index.js.map +0 -1
  1139. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.d.ts +0 -12
  1140. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.js +0 -17
  1141. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.js.map +0 -1
  1142. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.d.ts +0 -31
  1143. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.js +0 -203
  1144. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.js.map +0 -1
  1145. package/dist/src/nile-richeditor/index.d.ts +0 -1
  1146. package/dist/src/nile-richeditor/index.js +0 -2
  1147. package/dist/src/nile-richeditor/index.js.map +0 -1
  1148. package/dist/src/nile-richeditor/nile-richeditor.css.d.ts +0 -12
  1149. package/dist/src/nile-richeditor/nile-richeditor.css.js +0 -17
  1150. package/dist/src/nile-richeditor/nile-richeditor.css.js.map +0 -1
  1151. package/dist/src/nile-richeditor/nile-richeditor.d.ts +0 -19
  1152. package/dist/src/nile-richeditor/nile-richeditor.js +0 -234
  1153. package/dist/src/nile-richeditor/nile-richeditor.js.map +0 -1
  1154. package/dist/src/nile-richtexteditor/index.d.ts +0 -1
  1155. package/dist/src/nile-richtexteditor/index.js +0 -2
  1156. package/dist/src/nile-richtexteditor/index.js.map +0 -1
  1157. package/dist/src/nile-richtexteditor/nile-richtexteditor.css.js +0 -237
  1158. package/dist/src/nile-richtexteditor/nile-richtexteditor.css.js.map +0 -1
  1159. package/dist/src/nile-richtexteditor/nile-richtexteditor.d.ts +0 -32
  1160. package/dist/src/nile-richtexteditor/nile-richtexteditor.js +0 -46
  1161. package/dist/src/nile-richtexteditor/nile-richtexteditor.js.map +0 -1
  1162. package/dist/src/nile-richtexteditor/utils/nile-mention.d.ts +0 -13
  1163. package/dist/src/nile-richtexteditor/utils/nile-mention.js +0 -47
  1164. package/dist/src/nile-richtexteditor/utils/nile-mention.js.map +0 -1
  1165. package/src/nile-icon/icons/svg/bold.ts +0 -5
  1166. package/src/nile-icon/icons/svg/center-align.ts +0 -5
  1167. package/src/nile-icon/icons/svg/itallic.ts +0 -5
  1168. package/src/nile-icon/icons/svg/justify-align.ts +0 -5
  1169. package/src/nile-icon/icons/svg/left-align.ts +0 -5
  1170. package/src/nile-icon/icons/svg/ol.ts +0 -5
  1171. package/src/nile-icon/icons/svg/right-align.ts +0 -5
  1172. package/src/nile-icon/icons/svg/ul.ts +0 -5
  1173. package/src/nile-icon/icons/svg/underline.ts +0 -5
  1174. package/src/nile-lightdomeditor/index.ts +0 -1
  1175. package/src/nile-lightdomeditor/nile-lightdomeditor.css.ts +0 -238
  1176. package/src/nile-lightdomeditor/nile-lightdomeditor.ts +0 -523
  1177. package/src/nile-rich-text-editor/index.ts +0 -1
  1178. package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +0 -21
  1179. package/src/nile-rich-text-editor/nile-rich-text-editor.ts +0 -606
  1180. package/src/nile-rich-text-editor/nile-rte-color.ts +0 -14
  1181. package/src/nile-rich-text-editor/nile-rte-divider.ts +0 -9
  1182. package/src/nile-rich-text-editor/nile-rte-mentions-item.ts +0 -37
  1183. package/src/nile-rich-text-editor/nile-rte-mentions.ts +0 -426
  1184. package/src/nile-rich-text-editor/nile-rte-preview.ts +0 -9
  1185. package/src/nile-rich-text-editor/nile-rte-select.ts +0 -147
  1186. package/src/nile-rich-text-editor/nile-rte-toolbar-item.ts +0 -13
  1187. package/src/nile-rich-text-editor/nile-rte-toolbar.ts +0 -9
  1188. package/src/nile-rich-text-editor/utils.ts +0 -179
  1189. package/src/nile-richcodeeditor/index.ts +0 -1
  1190. package/src/nile-richcodeeditor/nile-richcodeeditor.css.ts +0 -19
  1191. package/src/nile-richcodeeditor/nile-richcodeeditor.ts +0 -192
  1192. /package/dist/{nile-lightdomeditor → nile-slider}/index.cjs.js.map +0 -0
  1193. /package/dist/{nile-rich-text-editor → nile-virtual-select}/index.cjs.js.map +0 -0
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-dropdown.cjs.js","tslib","lit/decorators.js","./nile-dropdown.css.cjs.js","../internal/animate.cjs.js","lit/directives/class-map.js","../utilities/animation-registry.cjs.js","../internal/tabbable.cjs.js","../internal/event.cjs.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js","../nile-popup/nile-popup.cjs.js","../nile-popup/nile-popup.css.cjs.js"],function(_export,_context){"use strict";var n,e,o,t,i,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15;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(_fixture001CjsJs){n=_fixture001CjsJs.f;e=_fixture001CjsJs.a;o=_fixture001CjsJs.e;t=_fixture001CjsJs.o;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileDropdownCjsJs){s=_nileDropdownCjsJs.N;},function(_tslib){},function(_litDecoratorsJs){},function(_nileDropdownCssCjsJs){},function(_internalAnimateCjsJs){},function(_litDirectivesClassMapJs){},function(_utilitiesAnimationRegistryCjsJs){},function(_internalTabbableCjsJs){},function(_internalEventCjsJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){},function(_nilePopupNilePopupCjsJs){},function(_nilePopupNilePopupCssCjsJs){}],execute:function execute(){describe("NileDropdown",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return n(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context2.sent;e(o).to.be.instanceOf(s),e(o.shadowRoot).not.to.be["null"];case 4:case"end":return _context2.stop();}},_callee);}))),it("should be closed by default",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return n(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context3.sent;e(o.open).to.be["false"];t=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".dropdown__panel");e(t===null||t===void 0?void 0:t.getAttribute("aria-hidden")).to.equal("true");case 6:case"end":return _context3.stop();}},_callee2);}))),it('should open the dropdown when "open" property is set to true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _t$shadowRoot;var t,s;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return n(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:t=_context4.sent;t.open=!0;_context4.next=6;return o(t);case 6:s=(_t$shadowRoot=t.shadowRoot)===null||_t$shadowRoot===void 0?void 0:_t$shadowRoot.querySelector(".dropdown__panel");e(t.open).to.be["true"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("false");case 8:case"end":return _context4.stop();}},_callee3);}))),it('should close the dropdown when "open" property is set to false',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _t$shadowRoot2;var t,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return n(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-dropdown open></nile-dropdown>"]))));case 2:t=_context5.sent;t.open=!1;_context5.next=6;return o(t);case 6:s=(_t$shadowRoot2=t.shadowRoot)===null||_t$shadowRoot2===void 0?void 0:_t$shadowRoot2.querySelector(".dropdown__panel");e(t.open).to.be["false"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("true");case 8:case"end":return _context5.stop();}},_callee4);}))),it('should emit "nile-show" and "nile-after-show" when opening the dropdown',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var o,s,a;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return n(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context6.sent;s=t(o,"nile-show");a=t(o,"nile-after-show");o.open=!0;_context6.next=8;return s;case 8:_context6.next=10;return a;case 10:e(o.open).to.be["true"];case 11:case"end":return _context6.stop();}},_callee5);}))),it('should emit "nile-hide" and "nile-after-hide" when closing the dropdown',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var o,s,a;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return n(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-dropdown open></nile-dropdown>"]))));case 2:o=_context7.sent;s=t(o,"nile-hide");a=t(o,"nile-after-hide");o.open=!1;_context7.next=8;return s;case 8:_context7.next=10;return a;case 10:e(o.open).to.be["false"];case 11:case"end":return _context7.stop();}},_callee6);}))),it('should not open the dropdown if "disabled" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _t$shadowRoot3;var t,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return n(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-dropdown disabled></nile-dropdown>"]))));case 2:t=_context8.sent;t.open=!0;_context8.next=6;return o(t);case 6:s=(_t$shadowRoot3=t.shadowRoot)===null||_t$shadowRoot3===void 0?void 0:_t$shadowRoot3.querySelector(".dropdown__panel");e(t.open).to.be["false"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("true");case 8:case"end":return _context8.stop();}},_callee7);}))),it("should toggle the dropdown when clicking the trigger",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var t,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return n(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-dropdown>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context9.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context9.next=7;return o(t);case 7:e(t.open).to.be["true"];s!==null&&s!==void 0&&s.click();_context9.next=11;return o(t);case 11:e(t.open).to.be["false"];case 12:case"end":return _context9.stop();}},_callee8);}))),it('should close the dropdown when "Escape" is pressed',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var t,s;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return n(i(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <nile-dropdown open>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context10.sent;s=new KeyboardEvent("keydown",{key:"Escape"});document.dispatchEvent(s);_context10.next=7;return o(t);case 7:e(t.open).to.be["false"];case 8:case"end":return _context10.stop();}},_callee9);}))),it('should keep the dropdown open when "stayOpenOnSelect" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var t,s,a;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return n(i(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n <nile-dropdown stay-open-on-select>\n <button slot=\"trigger\">Toggle</button>\n <nile-menu>\n <nile-menu-item>Item 1</nile-menu-item>\n <nile-menu-item>Item 2</nile-menu-item>\n </nile-menu>\n </nile-dropdown>\n "]))));case 2:t=_context11.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context11.next=7;return o(t);case 7:a=t.querySelector("nile-menu-item");a!==null&&a!==void 0&&a.click();_context11.next=11;return o(t);case 11:e(t.open).to.be["true"];case 12:case"end":return _context11.stop();}},_callee10);}))),it('should apply the correct placement class when setting "placement"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _t$shadowRoot4;var t,s;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return n(i(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["<nile-dropdown placement=\"top\"></nile-dropdown>"]))));case 2:t=_context12.sent;t.open=!0;_context12.next=6;return o(t);case 6:s=(_t$shadowRoot4=t.shadowRoot)===null||_t$shadowRoot4===void 0?void 0:_t$shadowRoot4.querySelector("nile-popup");e(s===null||s===void 0?void 0:s.getAttribute("placement")).to.equal("top");case 8:case"end":return _context12.stop();}},_callee11);}))),it('should reposition the dropdown when calling "reposition()"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var t;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return n(i(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <nile-dropdown open>\n <button slot=\"trigger\">Toggle</button>\n <nile-menu>\n <nile-menu-item>Item 1</nile-menu-item>\n </nile-menu>\n </nile-dropdown>\n "]))));case 2:t=_context13.sent;t.reposition();_context13.next=6;return o(t);case 6:e(t).to.be.ok;case 7:case"end":return _context13.stop();}},_callee12);}))),it('should not open the dropdown if "noOpenOnClick" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var t,s;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.next=2;return n(i(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n <nile-dropdown noOpenOnClick>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context14.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context14.next=7;return o(t);case 7:e(t.open).to.be["false"];case 8:case"end":return _context14.stop();}},_callee13);}))),it('should hoist the dropdown when "hoist" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var _t$shadowRoot5;var t,s;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return n(i(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["<nile-dropdown hoist></nile-dropdown>"]))));case 2:t=_context15.sent;t.open=!0;_context15.next=6;return o(t);case 6:s=(_t$shadowRoot5=t.shadowRoot)===null||_t$shadowRoot5===void 0?void 0:_t$shadowRoot5.querySelector("nile-popup");e(s===null||s===void 0?void 0:s.getAttribute("strategy")).to.equal("fixed");case 8:case"end":return _context15.stop();}},_callee14);}))),it("should apply animations when opening and closing",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var o,s,a;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return n(i(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context16.sent;s=t(o,"nile-after-show");o.open=!0;_context16.next=7;return s;case 7:a=t(o,"nile-after-hide");o.open=!1;_context16.next=11;return a;case 11:e(o.open).to.be["false"];case 12:case"end":return _context16.stop();}},_callee15);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-3bfb4490.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-dropdown.cjs.js","tslib","lit/decorators.js","./nile-dropdown.css.cjs.js","../internal/animate.cjs.js","lit/directives/class-map.js","../utilities/animation-registry.cjs.js","../internal/tabbable.cjs.js","../internal/event.cjs.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js","../nile-popup/nile-popup.cjs.js","../nile-popup/nile-popup.css.cjs.js"],function(_export,_context){"use strict";var n,e,o,t,i,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture003CjsJs){n=_fixture003CjsJs.f;e=_fixture003CjsJs.a;o=_fixture003CjsJs.e;t=_fixture003CjsJs.o;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileDropdownCjsJs){s=_nileDropdownCjsJs.N;},function(_tslib){},function(_litDecoratorsJs){},function(_nileDropdownCssCjsJs){},function(_internalAnimateCjsJs){},function(_litDirectivesClassMapJs){},function(_utilitiesAnimationRegistryCjsJs){},function(_internalTabbableCjsJs){},function(_internalEventCjsJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){},function(_nilePopupNilePopupCjsJs){},function(_nilePopupNilePopupCssCjsJs){}],execute:function execute(){describe("NileDropdown",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return n(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context2.sent;e(o).to.be.instanceOf(s),e(o.shadowRoot).not.to.be["null"];case 4:case"end":return _context2.stop();}},_callee);}))),it("should be closed by default",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return n(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context3.sent;e(o.open).to.be["false"];t=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".dropdown__panel");e(t===null||t===void 0?void 0:t.getAttribute("aria-hidden")).to.equal("true");case 6:case"end":return _context3.stop();}},_callee2);}))),it('should open the dropdown when "open" property is set to true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _t$shadowRoot;var t,s;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return n(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:t=_context4.sent;t.open=!0;_context4.next=6;return o(t);case 6:s=(_t$shadowRoot=t.shadowRoot)===null||_t$shadowRoot===void 0?void 0:_t$shadowRoot.querySelector(".dropdown__panel");e(t.open).to.be["true"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("false");case 8:case"end":return _context4.stop();}},_callee3);}))),it('should close the dropdown when "open" property is set to false',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _t$shadowRoot2;var t,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return n(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-dropdown open></nile-dropdown>"]))));case 2:t=_context5.sent;t.open=!1;_context5.next=6;return o(t);case 6:s=(_t$shadowRoot2=t.shadowRoot)===null||_t$shadowRoot2===void 0?void 0:_t$shadowRoot2.querySelector(".dropdown__panel");e(t.open).to.be["false"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("true");case 8:case"end":return _context5.stop();}},_callee4);}))),it('should emit "nile-show" and "nile-after-show" when opening the dropdown',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var o,s,a;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return n(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context6.sent;s=t(o,"nile-show");a=t(o,"nile-after-show");o.open=!0;_context6.next=8;return s;case 8:_context6.next=10;return a;case 10:e(o.open).to.be["true"];case 11:case"end":return _context6.stop();}},_callee5);}))),it('should emit "nile-hide" and "nile-after-hide" when closing the dropdown',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var o,s,a;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return n(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-dropdown open></nile-dropdown>"]))));case 2:o=_context7.sent;s=t(o,"nile-hide");a=t(o,"nile-after-hide");o.open=!1;_context7.next=8;return s;case 8:_context7.next=10;return a;case 10:e(o.open).to.be["false"];case 11:case"end":return _context7.stop();}},_callee6);}))),it('should not open the dropdown if "disabled" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _t$shadowRoot3;var t,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return n(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-dropdown disabled></nile-dropdown>"]))));case 2:t=_context8.sent;t.open=!0;_context8.next=6;return o(t);case 6:s=(_t$shadowRoot3=t.shadowRoot)===null||_t$shadowRoot3===void 0?void 0:_t$shadowRoot3.querySelector(".dropdown__panel");e(t.open).to.be["false"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("true");case 8:case"end":return _context8.stop();}},_callee7);}))),it("should toggle the dropdown when clicking the trigger",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var t,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return n(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-dropdown>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context9.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context9.next=7;return o(t);case 7:e(t.open).to.be["true"];s!==null&&s!==void 0&&s.click();_context9.next=11;return o(t);case 11:e(t.open).to.be["false"];case 12:case"end":return _context9.stop();}},_callee8);}))),it('should close the dropdown when "Escape" is pressed',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var t,s;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return n(i(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <nile-dropdown open>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context10.sent;s=new KeyboardEvent("keydown",{key:"Escape"});document.dispatchEvent(s);_context10.next=7;return o(t);case 7:e(t.open).to.be["false"];case 8:case"end":return _context10.stop();}},_callee9);}))),it('should keep the dropdown open when "stayOpenOnSelect" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var t,s,a;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return n(i(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n <nile-dropdown stay-open-on-select>\n <button slot=\"trigger\">Toggle</button>\n <nile-menu>\n <nile-menu-item>Item 1</nile-menu-item>\n <nile-menu-item>Item 2</nile-menu-item>\n </nile-menu>\n </nile-dropdown>\n "]))));case 2:t=_context11.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context11.next=7;return o(t);case 7:a=t.querySelector("nile-menu-item");a!==null&&a!==void 0&&a.click();_context11.next=11;return o(t);case 11:e(t.open).to.be["true"];case 12:case"end":return _context11.stop();}},_callee10);}))),it('should apply the correct placement class when setting "placement"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _t$shadowRoot4;var t,s;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return n(i(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["<nile-dropdown placement=\"top\"></nile-dropdown>"]))));case 2:t=_context12.sent;t.open=!0;_context12.next=6;return o(t);case 6:s=(_t$shadowRoot4=t.shadowRoot)===null||_t$shadowRoot4===void 0?void 0:_t$shadowRoot4.querySelector("nile-popup");e(s===null||s===void 0?void 0:s.getAttribute("placement")).to.equal("top");case 8:case"end":return _context12.stop();}},_callee11);}))),it('should reposition the dropdown when calling "reposition()"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var t;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return n(i(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <nile-dropdown open>\n <button slot=\"trigger\">Toggle</button>\n <nile-menu>\n <nile-menu-item>Item 1</nile-menu-item>\n </nile-menu>\n </nile-dropdown>\n "]))));case 2:t=_context13.sent;t.reposition();_context13.next=6;return o(t);case 6:e(t).to.be.ok;case 7:case"end":return _context13.stop();}},_callee12);}))),it('should not open the dropdown if "noOpenOnClick" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var t,s;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.next=2;return n(i(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n <nile-dropdown noOpenOnClick>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context14.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context14.next=7;return o(t);case 7:e(t.open).to.be["false"];case 8:case"end":return _context14.stop();}},_callee13);}))),it('should hoist the dropdown when "hoist" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var _t$shadowRoot5;var t,s;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return n(i(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["<nile-dropdown hoist></nile-dropdown>"]))));case 2:t=_context15.sent;t.open=!0;_context15.next=6;return o(t);case 6:s=(_t$shadowRoot5=t.shadowRoot)===null||_t$shadowRoot5===void 0?void 0:_t$shadowRoot5.querySelector("nile-popup");e(s===null||s===void 0?void 0:s.getAttribute("strategy")).to.equal("fixed");case 8:case"end":return _context15.stop();}},_callee14);}))),it("should apply animations when opening and closing",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var o,s,a;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return n(i(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context16.sent;s=t(o,"nile-after-show");o.open=!0;_context16.next=7;return s;case 7:a=t(o,"nile-after-hide");o.open=!1;_context16.next=11;return a;case 11:e(o.open).to.be["false"];case 12:case"end":return _context16.stop();}},_callee15);})));});}};});
2
2
  //# sourceMappingURL=nile-dropdown.test.cjs.js.map
@@ -1,4 +1,4 @@
1
- import{f as n,a as e,e as o,o as t}from"../fixture-588a3119.esm.js";import{html as i}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 s}from"./nile-dropdown.esm.js";import"tslib";import"lit/decorators.js";import"./nile-dropdown.css.esm.js";import"../internal/animate.esm.js";import"lit/directives/class-map.js";import"../utilities/animation-registry.esm.js";import"../internal/tabbable.esm.js";import"../internal/event.esm.js";import"../internal/watch.esm.js";import"../internal/nile-element.esm.js";import"../nile-popup/nile-popup.esm.js";import"../nile-popup/nile-popup.css.esm.js";describe("NileDropdown",(()=>{it("should render correctly",(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`);e(o).to.be.instanceOf(s),e(o.shadowRoot).not.to.be.null})),it("should be closed by default",(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`);e(o.open).to.be.false;const t=o.shadowRoot?.querySelector(".dropdown__panel");e(t?.getAttribute("aria-hidden")).to.equal("true")})),it('should open the dropdown when "open" property is set to true',(async()=>{const t=await n(i`<nile-dropdown></nile-dropdown>`);t.open=!0,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.true,e(s?.getAttribute("aria-hidden")).to.equal("false")})),it('should close the dropdown when "open" property is set to false',(async()=>{const t=await n(i`<nile-dropdown open></nile-dropdown>`);t.open=!1,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.false,e(s?.getAttribute("aria-hidden")).to.equal("true")})),it('should emit "nile-show" and "nile-after-show" when opening the dropdown',(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`),s=t(o,"nile-show"),a=t(o,"nile-after-show");o.open=!0,await s,await a,e(o.open).to.be.true})),it('should emit "nile-hide" and "nile-after-hide" when closing the dropdown',(async()=>{const o=await n(i`<nile-dropdown open></nile-dropdown>`),s=t(o,"nile-hide"),a=t(o,"nile-after-hide");o.open=!1,await s,await a,e(o.open).to.be.false})),it('should not open the dropdown if "disabled" is true',(async()=>{const t=await n(i`<nile-dropdown disabled></nile-dropdown>`);t.open=!0,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.false,e(s?.getAttribute("aria-hidden")).to.equal("true")})),it("should toggle the dropdown when clicking the trigger",(async()=>{const t=await n(i`
1
+ import{f as n,a as e,e as o,o as t}from"../fixture-8edec91c.esm.js";import{html as i}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 s}from"./nile-dropdown.esm.js";import"tslib";import"lit/decorators.js";import"./nile-dropdown.css.esm.js";import"../internal/animate.esm.js";import"lit/directives/class-map.js";import"../utilities/animation-registry.esm.js";import"../internal/tabbable.esm.js";import"../internal/event.esm.js";import"../internal/watch.esm.js";import"../internal/nile-element.esm.js";import"../nile-popup/nile-popup.esm.js";import"../nile-popup/nile-popup.css.esm.js";describe("NileDropdown",(()=>{it("should render correctly",(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`);e(o).to.be.instanceOf(s),e(o.shadowRoot).not.to.be.null})),it("should be closed by default",(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`);e(o.open).to.be.false;const t=o.shadowRoot?.querySelector(".dropdown__panel");e(t?.getAttribute("aria-hidden")).to.equal("true")})),it('should open the dropdown when "open" property is set to true',(async()=>{const t=await n(i`<nile-dropdown></nile-dropdown>`);t.open=!0,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.true,e(s?.getAttribute("aria-hidden")).to.equal("false")})),it('should close the dropdown when "open" property is set to false',(async()=>{const t=await n(i`<nile-dropdown open></nile-dropdown>`);t.open=!1,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.false,e(s?.getAttribute("aria-hidden")).to.equal("true")})),it('should emit "nile-show" and "nile-after-show" when opening the dropdown',(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`),s=t(o,"nile-show"),a=t(o,"nile-after-show");o.open=!0,await s,await a,e(o.open).to.be.true})),it('should emit "nile-hide" and "nile-after-hide" when closing the dropdown',(async()=>{const o=await n(i`<nile-dropdown open></nile-dropdown>`),s=t(o,"nile-hide"),a=t(o,"nile-after-hide");o.open=!1,await s,await a,e(o.open).to.be.false})),it('should not open the dropdown if "disabled" is true',(async()=>{const t=await n(i`<nile-dropdown disabled></nile-dropdown>`);t.open=!0,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.false,e(s?.getAttribute("aria-hidden")).to.equal("true")})),it("should toggle the dropdown when clicking the trigger",(async()=>{const t=await n(i`
2
2
  <nile-dropdown>
3
3
  <button slot="trigger">Toggle</button>
4
4
  </nile-dropdown>
@@ -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-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-empty-state.cjs.js","tslib","lit/decorators.js","lit/directives/class-map.js","./nile-empty-state.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,e,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6;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(_fixture001CjsJs){t=_fixture001CjsJs.f;e=_fixture001CjsJs.a;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileEmptyStateCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_litDirectivesClassMapJs){},function(_nileEmptyStateCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileEmptyState",function(){it("renders correctly with default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var i;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(s(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-empty-state></nile-empty-state>"]))));case 2:i=_context2.sent;e(i.size).to.equal("md"),e(i.variant).to.equal("tonal"),e(i.icon).to.equal("error"),e(i.grayscale).to.be["false"],e(i.text).to.equal("Empty State"),e(i.subText).to.equal("No Data");case 4:case"end":return _context2.stop();}},_callee);}))),it("should reflect properties to attributes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var i,a;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:i="action";_context3.next=3;return t(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-empty-state size=\"sm\" variant=\"flat\" icon="," grayscale text=\"Test state text\" sub-text=\"Test sub text\"></nile-empty-state>\n "])),i));case 3:a=_context3.sent;e(a.getAttribute("size")).to.equal("sm"),e(a.getAttribute("variant")).to.equal("flat"),e(a.getAttribute("icon")).to.equal(i),e(a.hasAttribute("grayscale")).to.be["true"],e(a.getAttribute("text")).to.equal("Test state text"),e(a.getAttribute("sub-text")).to.equal("Test sub text");case 5:case"end":return _context3.stop();}},_callee2);}))),it("should render different sizes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var i,_i2,_i,a,_i3;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:i=["sm","md","lg"];_i2=0,_i=i;case 2:if(!(_i2<_i.length)){_context4.next=11;break;}a=_i[_i2];_context4.next=6;return t(s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-empty-state size=\"","\"></nile-empty-state>"])),a));case 6:_i3=_context4.sent.shadowRoot.querySelector(".empty-state");e(_i3.classList.contains("empty-state--".concat(a))).to.be["true"];case 8:_i2++;_context4.next=2;break;case 11:case"end":return _context4.stop();}},_callee3);}))),it("should render different variants correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var i,_i5,_i4,a,_i6;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:i=["flat","content","tonal"];_i5=0,_i4=i;case 2:if(!(_i5<_i4.length)){_context5.next=11;break;}a=_i4[_i5];_context5.next=6;return t(s(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-empty-state variant=\"","\"></nile-empty-state>"])),a));case 6:_i6=_context5.sent.shadowRoot.querySelector(".empty-state__body--".concat(a));e(_i6).to.exist;case 8:_i5++;_context5.next=2;break;case 11:case"end":return _context5.stop();}},_callee4);}))),it("should render text properties correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var i,a,o,n,r;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:i="Custom Text";a="Custom SubText";_context6.next=4;return t(s(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-empty-state text="," sub-text=","></nile-empty-state>\n "])),i,a));case 4:o=_context6.sent;n=o.shadowRoot.querySelector(".empty-state__text");r=o.shadowRoot.querySelector(".empty-state__subtext");e(n.textContent).to.equal(i),e(r.textContent).to.equal(a);case 8:case"end":return _context6.stop();}},_callee5);}))),it("should render slot content",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var i;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return t(s(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-empty-state>\n <div class=\"slot-content\">Slot Content</div>\n </nile-empty-state>\n "]))));case 2:i=_context7.sent.querySelector(".slot-content");e(i).to.exist,e(i.textContent).to.equal("Slot Content");case 4:case"end":return _context7.stop();}},_callee6);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-3bfb4490.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-empty-state.cjs.js","tslib","lit/decorators.js","lit/directives/class-map.js","./nile-empty-state.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,e,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture003CjsJs){t=_fixture003CjsJs.f;e=_fixture003CjsJs.a;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileEmptyStateCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_litDirectivesClassMapJs){},function(_nileEmptyStateCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileEmptyState",function(){it("renders correctly with default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var i;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(s(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-empty-state></nile-empty-state>"]))));case 2:i=_context2.sent;e(i.size).to.equal("md"),e(i.variant).to.equal("tonal"),e(i.icon).to.equal("error"),e(i.grayscale).to.be["false"],e(i.text).to.equal("Empty State"),e(i.subText).to.equal("No Data");case 4:case"end":return _context2.stop();}},_callee);}))),it("should reflect properties to attributes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var i,a;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:i="action";_context3.next=3;return t(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-empty-state size=\"sm\" variant=\"flat\" icon="," grayscale text=\"Test state text\" sub-text=\"Test sub text\"></nile-empty-state>\n "])),i));case 3:a=_context3.sent;e(a.getAttribute("size")).to.equal("sm"),e(a.getAttribute("variant")).to.equal("flat"),e(a.getAttribute("icon")).to.equal(i),e(a.hasAttribute("grayscale")).to.be["true"],e(a.getAttribute("text")).to.equal("Test state text"),e(a.getAttribute("sub-text")).to.equal("Test sub text");case 5:case"end":return _context3.stop();}},_callee2);}))),it("should render different sizes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var i,_i2,_i,a,_i3;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:i=["sm","md","lg"];_i2=0,_i=i;case 2:if(!(_i2<_i.length)){_context4.next=11;break;}a=_i[_i2];_context4.next=6;return t(s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-empty-state size=\"","\"></nile-empty-state>"])),a));case 6:_i3=_context4.sent.shadowRoot.querySelector(".empty-state");e(_i3.classList.contains("empty-state--".concat(a))).to.be["true"];case 8:_i2++;_context4.next=2;break;case 11:case"end":return _context4.stop();}},_callee3);}))),it("should render different variants correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var i,_i5,_i4,a,_i6;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:i=["flat","content","tonal"];_i5=0,_i4=i;case 2:if(!(_i5<_i4.length)){_context5.next=11;break;}a=_i4[_i5];_context5.next=6;return t(s(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-empty-state variant=\"","\"></nile-empty-state>"])),a));case 6:_i6=_context5.sent.shadowRoot.querySelector(".empty-state__body--".concat(a));e(_i6).to.exist;case 8:_i5++;_context5.next=2;break;case 11:case"end":return _context5.stop();}},_callee4);}))),it("should render text properties correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var i,a,o,n,r;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:i="Custom Text";a="Custom SubText";_context6.next=4;return t(s(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-empty-state text="," sub-text=","></nile-empty-state>\n "])),i,a));case 4:o=_context6.sent;n=o.shadowRoot.querySelector(".empty-state__text");r=o.shadowRoot.querySelector(".empty-state__subtext");e(n.textContent).to.equal(i),e(r.textContent).to.equal(a);case 8:case"end":return _context6.stop();}},_callee5);}))),it("should render slot content",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var i;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return t(s(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-empty-state>\n <div class=\"slot-content\">Slot Content</div>\n </nile-empty-state>\n "]))));case 2:i=_context7.sent.querySelector(".slot-content");e(i).to.exist,e(i.textContent).to.equal("Slot Content");case 4:case"end":return _context7.stop();}},_callee6);})));});}};});
2
2
  //# sourceMappingURL=nile-empty-state.test.cjs.js.map
@@ -1,4 +1,4 @@
1
- import{f as t,a as e}from"../fixture-588a3119.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-empty-state.esm.js";import"tslib";import"lit/decorators.js";import"lit/directives/class-map.js";import"./nile-empty-state.css.esm.js";import"../internal/nile-element.esm.js";describe("NileEmptyState",(()=>{it("renders correctly with default properties",(async()=>{const i=await t(s`<nile-empty-state></nile-empty-state>`);e(i.size).to.equal("md"),e(i.variant).to.equal("tonal"),e(i.icon).to.equal("error"),e(i.grayscale).to.be.false,e(i.text).to.equal("Empty State"),e(i.subText).to.equal("No Data")})),it("should reflect properties to attributes",(async()=>{const i="action",a=await t(s`
1
+ import{f as t,a as e}from"../fixture-8edec91c.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-empty-state.esm.js";import"tslib";import"lit/decorators.js";import"lit/directives/class-map.js";import"./nile-empty-state.css.esm.js";import"../internal/nile-element.esm.js";describe("NileEmptyState",(()=>{it("renders correctly with default properties",(async()=>{const i=await t(s`<nile-empty-state></nile-empty-state>`);e(i.size).to.equal("md"),e(i.variant).to.equal("tonal"),e(i.icon).to.equal("error"),e(i.grayscale).to.be.false,e(i.text).to.equal("Empty State"),e(i.subText).to.equal("No Data")})),it("should reflect properties to attributes",(async()=>{const i="action",a=await t(s`
2
2
  <nile-empty-state size="sm" variant="flat" icon=${i} grayscale text="Test state text" sub-text="Test sub text"></nile-empty-state>
3
3
  `);e(a.getAttribute("size")).to.equal("sm"),e(a.getAttribute("variant")).to.equal("flat"),e(a.getAttribute("icon")).to.equal(i),e(a.hasAttribute("grayscale")).to.be.true,e(a.getAttribute("text")).to.equal("Test state text"),e(a.getAttribute("sub-text")).to.equal("Test sub text")})),it("should render different sizes correctly",(async()=>{const i=["sm","md","lg"];for(const a of i){const i=(await t(s`<nile-empty-state size="${a}"></nile-empty-state>`)).shadowRoot.querySelector(".empty-state");e(i.classList.contains(`empty-state--${a}`)).to.be.true}})),it("should render different variants correctly",(async()=>{const i=["flat","content","tonal"];for(const a of i){const i=(await t(s`<nile-empty-state variant="${a}"></nile-empty-state>`)).shadowRoot.querySelector(`.empty-state__body--${a}`);e(i).to.exist}})),it("should render text properties correctly",(async()=>{const i="Custom Text",a="Custom SubText",o=await t(s`
4
4
  <nile-empty-state text=${i} sub-text=${a}></nile-empty-state>
@@ -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-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-error-message.cjs.js","tslib","lit/decorators.js","./nile-error-message.css.cjs.js"],function(_export,_context){"use strict";var e,r,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9;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(_fixture001CjsJs){e=_fixture001CjsJs.f;r=_fixture001CjsJs.a;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileErrorMessageCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileErrorMessageCssCjsJs){}],execute:function execute(){describe("NileErrorMessage",function(){it("should render the error message",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;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-error-message errorMessage=\"An error occurred\"></nile-error-message>"]))));case 2:o=_context2.sent.shadowRoot.querySelector(".nile-error-message__error");r(o.textContent).to.equal("An error occurred");case 4:case"end":return _context2.stop();}},_callee);}))),it("should truncate the error response if it is too long",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var o,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:o="a".repeat(150);_context3.next=3;return e(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"","\"></nile-error-message>"])),o));case 3:t=_context3.sent.getTruncatedResponse();r(t).to.equal("".concat(o.substring(0,100),"..."));case 5:case"end":return _context3.stop();}},_callee2);}))),it("should not truncate the error response if it is within the maximum length",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var o,t;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o="Short error message";_context4.next=3;return e(s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"","\"></nile-error-message>"])),o));case 3:t=_context4.sent.getTruncatedResponse();r(t).to.equal(o);case 5:case"end":return _context4.stop();}},_callee3);}))),it("should toggle the expanded state when the button is clicked",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _o$shadowRoot$querySe;var o,t;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return e(s(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context5.sent;t=(_o$shadowRoot$querySe=o.shadowRoot.querySelector(".nile-error-message__more-button"))!==null&&_o$shadowRoot$querySe!==void 0?_o$shadowRoot$querySe:{};t.click(),r(o.isExpanded).to.be["true"],t.click(),r(o.isExpanded).to.be["false"];case 5:case"end":return _context5.stop();}},_callee4);}))),it('should display the "View More" button if there is extended error information',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var o;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return e(s(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context6.sent.shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.exist;case 4:case"end":return _context6.stop();}},_callee5);}))),it('should not display the "View More" button if there is no extended error information',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var o;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return e(s(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\"></nile-error-message>"]))));case 2:o=_context7.sent.shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.not.exist;case 4:case"end":return _context7.stop();}},_callee6);}))),it("should show the extended error information when expanded",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var o,t;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e(s(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context8.sent;o.isExpanded=!0;_context8.next=6;return o.updateComplete;case 6:t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t===null||t===void 0?void 0:t.textContent).to.include("Detailed error information");case 8:case"end":return _context8.stop();}},_callee7);}))),it("should hide the extended error information when collapsed",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var o,t;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e(s(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context9.sent;o.isExpanded=!1;_context9.next=6;return o.updateComplete;case 6:t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t).to.have["class"]("collapsed");case 8:case"end":return _context9.stop();}},_callee8);}))),it("should render icon and error message parts",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var o,t,n;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return e(s(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-error-message errorMessage=\"An error occurred\"></nile-error-message>"]))));case 2:o=_context10.sent;t=o.shadowRoot.querySelector("nile-icon");r(t).to.exist;n=o.shadowRoot.querySelector(".nile-error-message__error");r(n).to.exist;case 7:case"end":return _context10.stop();}},_callee9);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-3bfb4490.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-error-message.cjs.js","tslib","lit/decorators.js","./nile-error-message.css.cjs.js"],function(_export,_context){"use strict";var e,r,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture003CjsJs){e=_fixture003CjsJs.f;r=_fixture003CjsJs.a;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileErrorMessageCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileErrorMessageCssCjsJs){}],execute:function execute(){describe("NileErrorMessage",function(){it("should render the error message",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;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-error-message errorMessage=\"An error occurred\"></nile-error-message>"]))));case 2:o=_context2.sent.shadowRoot.querySelector(".nile-error-message__error");r(o.textContent).to.equal("An error occurred");case 4:case"end":return _context2.stop();}},_callee);}))),it("should truncate the error response if it is too long",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var o,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:o="a".repeat(150);_context3.next=3;return e(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"","\"></nile-error-message>"])),o));case 3:t=_context3.sent.getTruncatedResponse();r(t).to.equal("".concat(o.substring(0,100),"..."));case 5:case"end":return _context3.stop();}},_callee2);}))),it("should not truncate the error response if it is within the maximum length",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var o,t;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o="Short error message";_context4.next=3;return e(s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"","\"></nile-error-message>"])),o));case 3:t=_context4.sent.getTruncatedResponse();r(t).to.equal(o);case 5:case"end":return _context4.stop();}},_callee3);}))),it("should toggle the expanded state when the button is clicked",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _o$shadowRoot$querySe;var o,t;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return e(s(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context5.sent;t=(_o$shadowRoot$querySe=o.shadowRoot.querySelector(".nile-error-message__more-button"))!==null&&_o$shadowRoot$querySe!==void 0?_o$shadowRoot$querySe:{};t.click(),r(o.isExpanded).to.be["true"],t.click(),r(o.isExpanded).to.be["false"];case 5:case"end":return _context5.stop();}},_callee4);}))),it('should display the "View More" button if there is extended error information',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var o;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return e(s(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context6.sent.shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.exist;case 4:case"end":return _context6.stop();}},_callee5);}))),it('should not display the "View More" button if there is no extended error information',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var o;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return e(s(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\"></nile-error-message>"]))));case 2:o=_context7.sent.shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.not.exist;case 4:case"end":return _context7.stop();}},_callee6);}))),it("should show the extended error information when expanded",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var o,t;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e(s(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context8.sent;o.isExpanded=!0;_context8.next=6;return o.updateComplete;case 6:t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t===null||t===void 0?void 0:t.textContent).to.include("Detailed error information");case 8:case"end":return _context8.stop();}},_callee7);}))),it("should hide the extended error information when collapsed",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var o,t;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e(s(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context9.sent;o.isExpanded=!1;_context9.next=6;return o.updateComplete;case 6:t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t).to.have["class"]("collapsed");case 8:case"end":return _context9.stop();}},_callee8);}))),it("should render icon and error message parts",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var o,t,n;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return e(s(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-error-message errorMessage=\"An error occurred\"></nile-error-message>"]))));case 2:o=_context10.sent;t=o.shadowRoot.querySelector("nile-icon");r(t).to.exist;n=o.shadowRoot.querySelector(".nile-error-message__error");r(n).to.exist;case 7:case"end":return _context10.stop();}},_callee9);})));});}};});
2
2
  //# sourceMappingURL=nile-error-message.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as e,a as r}from"../fixture-588a3119.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-error-message.esm.js";import"tslib";import"lit/decorators.js";import"./nile-error-message.css.esm.js";describe("NileErrorMessage",(()=>{it("should render the error message",(async()=>{const o=(await e(s`<nile-error-message errorMessage="An error occurred"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__error");r(o.textContent).to.equal("An error occurred")})),it("should truncate the error response if it is too long",(async()=>{const o="a".repeat(150),t=(await e(s`<nile-error-message errorResponse="${o}"></nile-error-message>`)).getTruncatedResponse();r(t).to.equal(`${o.substring(0,100)}...`)})),it("should not truncate the error response if it is within the maximum length",(async()=>{const o="Short error message",t=(await e(s`<nile-error-message errorResponse="${o}"></nile-error-message>`)).getTruncatedResponse();r(t).to.equal(o)})),it("should toggle the expanded state when the button is clicked",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`),t=o.shadowRoot.querySelector(".nile-error-message__more-button")??{};t.click(),r(o.isExpanded).to.be.true,t.click(),r(o.isExpanded).to.be.false})),it('should display the "View More" button if there is extended error information',(async()=>{const o=(await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.exist})),it('should not display the "View More" button if there is no extended error information',(async()=>{const o=(await e(s`<nile-error-message errorResponse="Short error message"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.not.exist})),it("should show the extended error information when expanded",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`);o.isExpanded=!0,await o.updateComplete;const t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t?.textContent).to.include("Detailed error information")})),it("should hide the extended error information when collapsed",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`);o.isExpanded=!1,await o.updateComplete;const t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t).to.have.class("collapsed")})),it("should render icon and error message parts",(async()=>{const o=await e(s`<nile-error-message errorMessage="An error occurred"></nile-error-message>`),t=o.shadowRoot.querySelector("nile-icon");r(t).to.exist;const n=o.shadowRoot.querySelector(".nile-error-message__error");r(n).to.exist}))}));
1
+ import{f as e,a as r}from"../fixture-8edec91c.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-error-message.esm.js";import"tslib";import"lit/decorators.js";import"./nile-error-message.css.esm.js";describe("NileErrorMessage",(()=>{it("should render the error message",(async()=>{const o=(await e(s`<nile-error-message errorMessage="An error occurred"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__error");r(o.textContent).to.equal("An error occurred")})),it("should truncate the error response if it is too long",(async()=>{const o="a".repeat(150),t=(await e(s`<nile-error-message errorResponse="${o}"></nile-error-message>`)).getTruncatedResponse();r(t).to.equal(`${o.substring(0,100)}...`)})),it("should not truncate the error response if it is within the maximum length",(async()=>{const o="Short error message",t=(await e(s`<nile-error-message errorResponse="${o}"></nile-error-message>`)).getTruncatedResponse();r(t).to.equal(o)})),it("should toggle the expanded state when the button is clicked",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`),t=o.shadowRoot.querySelector(".nile-error-message__more-button")??{};t.click(),r(o.isExpanded).to.be.true,t.click(),r(o.isExpanded).to.be.false})),it('should display the "View More" button if there is extended error information',(async()=>{const o=(await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.exist})),it('should not display the "View More" button if there is no extended error information',(async()=>{const o=(await e(s`<nile-error-message errorResponse="Short error message"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.not.exist})),it("should show the extended error information when expanded",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`);o.isExpanded=!0,await o.updateComplete;const t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t?.textContent).to.include("Detailed error information")})),it("should hide the extended error information when collapsed",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`);o.isExpanded=!1,await o.updateComplete;const t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t).to.have.class("collapsed")})),it("should render icon and error message parts",(async()=>{const o=await e(s`<nile-error-message errorMessage="An error occurred"></nile-error-message>`),t=o.shadowRoot.querySelector("nile-icon");r(t).to.exist;const n=o.shadowRoot.querySelector(".nile-error-message__error");r(n).to.exist}))}));
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","./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","lit","./nile-file-preview.template.cjs.js"],function(_export,_context){"use strict";var t,i,s,e,h,a,r,l,o,n,p,c,m,d,f,u,y,v,j,_templateObject,_templateObject2,w;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}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 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);});};}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(_nileFilePreviewCssCjsJs){i=_nileFilePreviewCssCjsJs.s;},function(_internalNileElementCjsJs){s=_internalNileElementCjsJs.N;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;h=_litDecoratorsJs.customElement;},function(_utilsNileFilePreviewUtilCjsJs){a=_utilsNileFilePreviewUtilCjsJs.g;},function(_typesNileFilePreviewEnumsCjsJs){r=_typesNileFilePreviewEnumsCjsJs.F;l=_typesNileFilePreviewEnumsCjsJs.a;o=_typesNileFilePreviewEnumsCjsJs.b;n=_typesNileFilePreviewEnumsCjsJs.c;},function(_lit){p=_lit.html;},function(_nileFilePreviewTemplateCjsJs){c=_nileFilePreviewTemplateCjsJs.g;m=_nileFilePreviewTemplateCjsJs.a;d=_nileFilePreviewTemplateCjsJs.b;f=_nileFilePreviewTemplateCjsJs.c;u=_nileFilePreviewTemplateCjsJs.d;y=_nileFilePreviewTemplateCjsJs.e;v=_nileFilePreviewTemplateCjsJs.f;j=_nileFilePreviewTemplateCjsJs.h;}],execute:function execute(){_export("N",w=/*#__PURE__*/function(_s){function w(){var _this;_classCallCheck(this,w);_this=_callSuper(this,w,arguments),_this.errorMessage="",_this.fileUrl="",_this.uploadStatus=0,_this.allowedTypes=[],_this.state=r.DEFAULT,_this.variant=l.HORIZONTAL,_this.inputFileName="",_this.inputFileHtml=null,_this.originalUrl="",_this.dummyFile=new File(["sdfjbs ewhf"],"dummy.txt",{type:"text/plain"});return _this;}_inherits(w,_s);return _createClass(w,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(w,"connectedCallback",this,3)([]),this.emit(o.NILE_INIT);}},{key:"updated",value:function updated(t){t.has("uploadStatus")&&this.uploadStatus?this.uploadStatus<100?(this.createUploadState(this.inputFile,this.uploadStatus),this.emit(o.NILE_UPLOADING)):this.createState(this.inputFile):t.has("inputFile")&&this.inputFile?(this.createState(this.inputFile),this.emit(o.NILE_RECEIVE)):t.has("fileUrl")&&this.fileUrl?(this.handleFileUrl(this.fileUrl),this.emit(o.NILE_RECEIVE)):t.has("errorMessage")&&this.createState(this.inputFile);}},{key:"createUploadState",value:function createUploadState(t,i){var s=this.variant===l.HORIZONTAL;this.inputFileHtml=s?c(t,i):m(t,i),this.requestUpdate();}},{key:"handleFileUrl",value:function(){var _handleFileUrl=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){var _i,_s2,_e,_h,_i2;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:this.originalUrl=t;_context2.prev=1;_context2.next=4;return fetch(t);case 4:_i=_context2.sent;_context2.next=7;return _i.blob();case 7:_s2=_context2.sent;_e=this.inputFileName||t.split("/").pop()||n.UNKNOWN_FILE_NAME;_h=new File([_s2],_e,{type:_s2.type});this.createState(_h);_context2.next=17;break;case 13:_context2.prev=13;_context2.t0=_context2["catch"](1);_i2=new File([],this.inputFileName||n.UNKNOWN_FILE_NAME,{type:"application/octet-stream"});this.errorMessage=n.FAILED_TO_LOAD,this.inputFileHtml=this.variant===l.HORIZONTAL?d(_i2,this.errorMessage,this.originalUrl):f(_i2,this.errorMessage,this.originalUrl),this.requestUpdate();case 17:case"end":return _context2.stop();}},_callee,this,[[1,13]]);}));function handleFileUrl(_x){return _handleFileUrl.apply(this,arguments);}return handleFileUrl;}()},{key:"createState",value:function(){var _createState=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t){var i,_s3;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:i=this.variant===l.HORIZONTAL;if(!(this.allowedTypes.includes(t.type)&&!this.errorMessage)){_context3.next=18;break;}if(!t.type.startsWith("image/")){_context3.next=15;break;}_context3.prev=3;_context3.next=6;return a(t);case 6:_s3=_context3.sent;this.inputFileHtml=i?u(_s3,t,this.originalUrl):y(_s3,t,this.originalUrl);_context3.next=13;break;case 10:_context3.prev=10;_context3.t0=_context3["catch"](3);this.inputFileHtml=i?v(t,this.originalUrl):j(t,this.originalUrl);case 13:_context3.next=16;break;case 15:this.inputFileHtml=i?v(t,this.originalUrl):j(t,this.originalUrl);case 16:_context3.next=19;break;case 18:this.errorMessage=this.errorMessage?n.UPLOAD_CANCEL:n.INVALID_FORMAT,this.inputFileHtml=i?d(t,this.errorMessage,this.originalUrl):f(t,this.errorMessage,this.originalUrl);case 19:this.requestUpdate();case 20:case"end":return _context3.stop();}},_callee2,this,[[3,10]]);}));function createState(_x2){return _createState.apply(this,arguments);}return createState;}()},{key:"render",value:function render(){return p(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t","\n "])),this.inputFileHtml?this.inputFileHtml:p(_templateObject2||(_templateObject2=_taggedTemplateLiteral([""]))));}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(w,"disconnectedCallback",this,3)([]),this.emit(o.NILE_DESTROY);}}],[{key:"styles",get:function get(){return[i];}}]);}(s));t([e({type:String})],w.prototype,"errorMessage",void 0),t([e({type:Object})],w.prototype,"inputFile",void 0),t([e({type:String})],w.prototype,"fileUrl",void 0),t([e({type:Number})],w.prototype,"uploadStatus",void 0),t([e({type:Array})],w.prototype,"allowedTypes",void 0),t([e({type:String})],w.prototype,"state",void 0),t([e({type:String})],w.prototype,"variant",void 0),t([e({type:String})],w.prototype,"inputFileName",void 0),_export("N",w=t([h("nile-file-preview")],w));}};});
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","./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","lit","./nile-file-preview.template.cjs.js"],function(_export,_context){"use strict";var t,s,i,e,h,r,a,n,l,c,o,p,u,d,m,f,g,y,v,_templateObject,_templateObject2,_templateObject3,_templateObject4,j;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}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 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);});};}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(_nileFilePreviewCssCjsJs){s=_nileFilePreviewCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;h=_litDecoratorsJs.customElement;},function(_utilsNileFilePreviewUtilCjsJs){r=_utilsNileFilePreviewUtilCjsJs.a;},function(_typesNileFilePreviewEnumsCjsJs){a=_typesNileFilePreviewEnumsCjsJs.F;n=_typesNileFilePreviewEnumsCjsJs.a;l=_typesNileFilePreviewEnumsCjsJs.b;c=_typesNileFilePreviewEnumsCjsJs.c;},function(_lit){o=_lit.html;},function(_nileFilePreviewTemplateCjsJs){p=_nileFilePreviewTemplateCjsJs.g;u=_nileFilePreviewTemplateCjsJs.a;d=_nileFilePreviewTemplateCjsJs.b;m=_nileFilePreviewTemplateCjsJs.c;f=_nileFilePreviewTemplateCjsJs.d;g=_nileFilePreviewTemplateCjsJs.e;y=_nileFilePreviewTemplateCjsJs.f;v=_nileFilePreviewTemplateCjsJs.h;}],execute:function execute(){_export("N",j=/*#__PURE__*/function(_i){function j(){var _this;_classCallCheck(this,j);_this=_callSuper(this,j,arguments),_this.errorMessage="",_this.fileUrl="",_this.uploadStatus=0,_this.state=a.DEFAULT,_this.variant=n.HORIZONTAL,_this.inputFileName="",_this.inputFileHtml=null,_this.originalUrl="",_this.isStringTruncated=!1,_this.customFile=new File([],"Harsh",{type:"image/png"});return _this;}_inherits(j,_i);return _createClass(j,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(j,"connectedCallback",this,3)([]),this.emit(l.NILE_INIT);}},{key:"firstUpdated",value:function firstUpdated(t){_superPropGet(j,"firstUpdated",this,3)([t]);}},{key:"updated",value:function updated(t){t.has("uploadStatus")&&this.uploadStatus?this.uploadStatus<100?this.createUploadState(this.inputFile,this.uploadStatus):this.createState(this.inputFile):t.has("inputFile")&&this.inputFile?(this.createState(this.inputFile),this.emit(l.NILE_RECEIVE)):t.has("fileUrl")&&this.fileUrl?(this.handleFileUrl(this.fileUrl),this.emit(l.NILE_RECEIVE)):t.has("errorMessage")&&this.createState(this.inputFile);}},{key:"createUploadState",value:function createUploadState(t,s){var i=this.variant===n.HORIZONTAL;this.inputFileHtml=i?p(t,s):u(t,s),this.requestUpdate();}},{key:"handleFileUrl",value:function(){var _handleFileUrl=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(t){var _s,_i2,_e,_h,_s2;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:this.originalUrl=t;_context2.prev=1;_context2.next=4;return fetch(t);case 4:_s=_context2.sent;_context2.next=7;return _s.blob();case 7:_i2=_context2.sent;_e=this.inputFileName||t.split("/").pop()||c.UNKNOWN_FILE_NAME;_h=new File([_i2],_e,{type:_i2.type});this.createState(_h);_context2.next=17;break;case 13:_context2.prev=13;_context2.t0=_context2["catch"](1);_s2=new File([],this.inputFileName||c.UNKNOWN_FILE_NAME,{type:"application/octet-stream"});this.errorMessage=c.FAILED_TO_LOAD,console.error(this.errorMessage),this.inputFileHtml=this.variant===n.HORIZONTAL?d(_s2,this.errorMessage,this.originalUrl,this):m(_s2,this.errorMessage,this.originalUrl,this),this.requestUpdate();case 17:case"end":return _context2.stop();}},_callee,this,[[1,13]]);}));function handleFileUrl(_x){return _handleFileUrl.apply(this,arguments);}return handleFileUrl;}()},{key:"createState",value:function(){var _createState=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(t){var s,_i3;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:s=this.variant===n.HORIZONTAL;if(!this.errorMessage){_context3.next=5;break;}this.inputFileHtml=s?d(t,this.errorMessage,this.originalUrl,this):m(t,this.errorMessage,this.originalUrl,this);_context3.next=19;break;case 5:if(!(t&&t.type.startsWith("image/"))){_context3.next=18;break;}_context3.prev=6;_context3.next=9;return r(t);case 9:_i3=_context3.sent;this.inputFileHtml=s?f(_i3,t,this.originalUrl):g(_i3,t,this.originalUrl);_context3.next=16;break;case 13:_context3.prev=13;_context3.t0=_context3["catch"](6);this.inputFileHtml=s?y(t,this.originalUrl):v(t,this.originalUrl);case 16:_context3.next=19;break;case 18:this.inputFileHtml=s?y(t,this.originalUrl):v(t,this.originalUrl);case 19:this.requestUpdate();case 20:case"end":return _context3.stop();}},_callee2,this,[[6,13]]);}));function createState(_x2){return _createState.apply(this,arguments);}return createState;}()},{key:"getState",value:function getState(){return"horizontal"===this.variant?this.getHorizontalStates():this.getVerticalStates();}},{key:"getHorizontalStates",value:function getHorizontalStates(){switch(this.state){case a.UPLOADING:return p(this.customFile,2);case a.PREVIEW:return f("https://s6.imgcdn.dev/YINe6a.jpg",this.customFile,this.originalUrl);case a.NO_PREVIEW:return y(this.customFile,this.originalUrl);case a.ERROR:return d(this.customFile,c.CUSTOM_ERROR,this.originalUrl,this);default:return this.inputFileHtml||o(_templateObject||(_templateObject=_taggedTemplateLiteral([""])));}}},{key:"getVerticalStates",value:function getVerticalStates(){switch(this.state){case a.UPLOADING:return u(this.customFile,2);case a.PREVIEW:return g("https://s6.imgcdn.dev/YINe6a.jpg",this.customFile,this.originalUrl);case a.NO_PREVIEW:return v(this.customFile,this.originalUrl);case a.ERROR:return m(this.customFile,c.CUSTOM_ERROR,this.originalUrl,this);default:return this.inputFileHtml||o(_templateObject2||(_templateObject2=_taggedTemplateLiteral([""])));}}},{key:"render",value:function render(){var _this$inputFileHtml;return this.state?this.getState():o(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["",""])),(_this$inputFileHtml=this.inputFileHtml)!==null&&_this$inputFileHtml!==void 0?_this$inputFileHtml:o(_templateObject4||(_templateObject4=_taggedTemplateLiteral([""]))));}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(j,"disconnectedCallback",this,3)([]),this.emit(l.NILE_DESTROY);}}],[{key:"styles",get:function get(){return[s];}}]);}(i));t([e({type:String})],j.prototype,"errorMessage",void 0),t([e({type:Object})],j.prototype,"inputFile",void 0),t([e({type:String})],j.prototype,"fileUrl",void 0),t([e({type:Number})],j.prototype,"uploadStatus",void 0),t([e({type:String})],j.prototype,"state",void 0),t([e({type:String})],j.prototype,"variant",void 0),t([e({type:String})],j.prototype,"inputFileName",void 0),_export("N",j=t([h("nile-file-preview")],j));}};});
2
2
  //# sourceMappingURL=nile-file-preview.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-file-preview.cjs.js","sources":["../../../src/nile-file-preview/nile-file-preview.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 {styles} from './nile-file-preview.css';\nimport NileElement from '../internal/nile-element';\nimport { customElement, property } from 'lit/decorators.js';\nimport { generatePreviewUrl } from './utils';\nimport { FilePreviewState, FilePreviewVariant, FilePreviewErrorMessages, FilePreviewEvent } from './types';\nimport { LitElement, html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport {\n getHorizontalErrorState,\n getHorizontalNoPreviewState,\n getHorizontalPreviewState,\n getHorizontalUploadingState,\n getVerticalErrorState,\n getVerticalNoPreviewState,\n getVerticalPreviewState,\n getVerticalUploadingState\n} from './nile-file-preview.template';\n\n\n/**\n * Nile preview component.\n *\n * @tag nile-preview\n *\n */\n@customElement('nile-file-preview')\nexport class NileFilePreview extends NileElement {\n /**\n * The styles for nile-preview\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String }) errorMessage: string = \"\";\n\t@property({ type: Object }) inputFile: File; \n\t@property({ type: String }) fileUrl: string = \"\";\n\t@property({ type: Number }) uploadStatus: number = 0;\n @property({ type: Array }) allowedTypes: string[] = [];\n\t@property({ type: String }) state: FilePreviewState = FilePreviewState.DEFAULT;\n\t@property({ type: String }) variant: FilePreviewVariant = FilePreviewVariant.HORIZONTAL;\n @property({ type: String }) inputFileName: string = \"\";\n\tprivate inputFileHtml: TemplateResult | null = null;\n private originalUrl: string = \"\";\n\n /**\n * Render method\n * @slot This is a slot test\n */\n\n connectedCallback(): void {\n super.connectedCallback();\n this.emit(FilePreviewEvent.NILE_INIT);\n }\n\n protected updated(changedProperties: PropertyValues): void {\n if(changedProperties.has('uploadStatus') && this.uploadStatus) {\n if(this.uploadStatus < 100) {\n this.createUploadState(this.inputFile, this.uploadStatus);\n this.emit(FilePreviewEvent.NILE_UPLOADING);\n\n } else {\n this.createState(this.inputFile);\n }\n\n } else if (changedProperties.has('inputFile') && this.inputFile) {\n this.createState(this.inputFile);\n this.emit(FilePreviewEvent.NILE_RECEIVE);\n\n } else if (changedProperties.has('fileUrl') && this.fileUrl) {\n this.handleFileUrl(this.fileUrl);\n this.emit(FilePreviewEvent.NILE_RECEIVE);\n\n } else if (changedProperties.has('errorMessage')) {\n this.createState(this.inputFile);\n }\n }\n\n private createUploadState( file: File, uploadStatus: number): void {\n const isHorizontal = this.variant === FilePreviewVariant.HORIZONTAL;\n\n this.inputFileHtml = isHorizontal \n ? getHorizontalUploadingState(file, uploadStatus)\n : getVerticalUploadingState(file, uploadStatus);\n\n this.requestUpdate();\n }\n\n private async handleFileUrl(url: string): Promise<void> {\n this.originalUrl = url;\n try {\n const response = await fetch(url);\n const blob = await response.blob();\n const fileName = this.inputFileName || url.split('/').pop() || FilePreviewErrorMessages.UNKNOWN_FILE_NAME;\n const file = new File([blob], fileName, { type: blob.type });\n\n this.createState(file);\n } catch (error) {\n const dummyFile = new File([], this.inputFileName || FilePreviewErrorMessages.UNKNOWN_FILE_NAME, { type: 'application/octet-stream' });\n this.errorMessage = FilePreviewErrorMessages.FAILED_TO_LOAD;\n\n this.inputFileHtml = this.variant === FilePreviewVariant.HORIZONTAL\n ? getHorizontalErrorState(dummyFile, this.errorMessage, this.originalUrl)\n : getVerticalErrorState(dummyFile, this.errorMessage, this.originalUrl);\n this.requestUpdate();\n }\n }\n\n\tpublic async createState(file: File): Promise<void> {\n const isHorizontal = this.variant === FilePreviewVariant.HORIZONTAL;\n\n if (this.allowedTypes.includes(file.type) && !this.errorMessage) { \n if (file.type.startsWith('image/')) {\n try {\n const url = await generatePreviewUrl(file);\n this.inputFileHtml = isHorizontal\n ? getHorizontalPreviewState(url, file, this.originalUrl)\n : getVerticalPreviewState(url, file, this.originalUrl);\n } catch (error) {\n this.inputFileHtml = isHorizontal\n ? getHorizontalNoPreviewState(file, this.originalUrl)\n : getVerticalNoPreviewState(file, this.originalUrl); \n }\n } else {\n this.inputFileHtml = isHorizontal\n ? getHorizontalNoPreviewState(file, this.originalUrl)\n : getVerticalNoPreviewState(file, this.originalUrl);\n }\n } else {\n this.errorMessage = !this.errorMessage\n ? FilePreviewErrorMessages.INVALID_FORMAT\n : FilePreviewErrorMessages.UPLOAD_CANCEL;\n\n this.inputFileHtml = isHorizontal\n ? getHorizontalErrorState(file, this.errorMessage, this.originalUrl)\n : getVerticalErrorState(file, this.errorMessage, this.originalUrl);\n }\n this.requestUpdate();\n }\n\n private dummyFile = new File(['sdfjbs ewhf'], \"dummy.txt\", { type: \"text/plain\" });\n\n public render(): TemplateResult {\n return html`\n\t\t\t${this.inputFileHtml ?\n\t\t\t\tthis.inputFileHtml :\n\t\t\t\thtml``\n\t\t\t}\n `;\n }\n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.emit(FilePreviewEvent.NILE_DESTROY);\n }\n\n /* #endregion */\n}\n\nexport default NileFilePreview;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-file-preview': NileFilePreview;\n }\n}"],"names":["NileFilePreview","w","constructor","this","errorMessage","fileUrl","uploadStatus","allowedTypes","state","FilePreviewState","DEFAULT","variant","FilePreviewVariant","HORIZONTAL","inputFileName","inputFileHtml","originalUrl","dummyFile","File","type","_this","_inherits","_s","_createClass","key","value","connectedCallback","super","emit","FilePreviewEvent","NILE_INIT","updated","changedProperties","has","createUploadState","inputFile","NILE_UPLOADING","createState","NILE_RECEIVE","handleFileUrl","file","isHorizontal","getHorizontalUploadingState","getVerticalUploadingState","requestUpdate","_handleFileUrl","_asyncToGenerator","_regeneratorRuntime","mark","_callee","url","_context2","prev","next","fetch","response","blob","fileName","split","pop","FilePreviewErrorMessages","UNKNOWN_FILE_NAME","t0","FAILED_TO_LOAD","getHorizontalErrorState","getVerticalErrorState","stop","_callee2","i","_s3","wrap","_callee2$","_context3","includes","startsWith","generatePreviewUrl","getHorizontalPreviewState","getVerticalPreviewState","getHorizontalNoPreviewState","getVerticalNoPreviewState","UPLOAD_CANCEL","INVALID_FORMAT","render","html","_templateObject","_taggedTemplateLiteral","_templateObject2","disconnectedCallback","NILE_DESTROY","__decorate","get","styles","NileElement","property","String","prototype","Object","Number","Array","_export","customElement"],"mappings":"03YAgCaA,4BAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,mCASuBC,EAAAA,KAAAA,CAAYC,aAAW,EAExBD,CAAAA,KAAAA,CAAOE,QAAW,EAClBF,CAAAA,KAAAA,CAAYG,YAAW,CAAA,CAAA,CACtBH,KAAAA,CAAYI,YAAa,CAAA,EAAA,CAC1BJ,KAAAA,CAAAK,KAAAA,CAA0BC,EAAiBC,OAC3CP,CAAAA,KAAAA,CAAAQ,OAA8BC,CAAAA,CAAAA,CAAmBC,WAChDV,KAAAA,CAAaW,aAAAA,CAAW,GAC7CX,KAAAA,CAAaY,aAAAA,CAA0B,KACtCZ,KAAAA,CAAWa,WAAAA,CAAW,EAiGtBb,CAAAA,KAAAA,CAAAc,UAAY,GAAIC,CAAAA,IAAAA,CAAK,CAAC,aAAgB,CAAA,CAAA,WAAA,CAAa,CAAEC,IAAM,CAAA,YAAA,CAAA,CAiBpE,QAAAC,KAAA,EA/HQC,SAAA,CAAApB,CAAA,CAAAqB,EAAA,SAAAC,YAAA,CAAAtB,CAAA,GAAAuB,GAAA,qBAAAC,KAAA,CAoBP,SAAAC,iBAAAA,CAAAA,EACEC,aAAAA,CAAAA,CAAAA,iCACAxB,IAAKyB,CAAAA,IAAAA,CAAKC,EAAiBC,SAC5B,CAAA,EAES,GAAAN,GAAA,WAAAC,KAAA,UAAAM,OAAAA,CAAQC,GACbA,CAAkBC,CAAAA,GAAAA,CAAI,cAAmB9B,CAAAA,EAAAA,IAAAA,CAAKG,aAC5CH,IAAKG,CAAAA,YAAAA,CAAe,KACrBH,IAAK+B,CAAAA,iBAAAA,CAAkB/B,KAAKgC,SAAWhC,CAAAA,IAAAA,CAAKG,YAC5CH,CAAAA,CAAAA,IAAAA,CAAKyB,KAAKC,CAAiBO,CAAAA,cAAAA,CAAAA,EAG3BjC,KAAKkC,WAAYlC,CAAAA,IAAAA,CAAKgC,WAGfH,CAAkBC,CAAAA,GAAAA,CAAI,WAAgB9B,CAAAA,EAAAA,IAAAA,CAAKgC,WACpDhC,IAAKkC,CAAAA,WAAAA,CAAYlC,KAAKgC,SACtBhC,CAAAA,CAAAA,IAAAA,CAAKyB,KAAKC,CAAiBS,CAAAA,YAAAA,CAAAA,EAElBN,CAAkBC,CAAAA,GAAAA,CAAI,YAAc9B,IAAKE,CAAAA,OAAAA,EAClDF,KAAKoC,aAAcpC,CAAAA,IAAAA,CAAKE,SACxBF,IAAKyB,CAAAA,IAAAA,CAAKC,CAAiBS,CAAAA,YAAAA,CAAAA,EAElBN,EAAkBC,GAAI,CAAA,cAAA,CAAA,EAC/B9B,KAAKkC,WAAYlC,CAAAA,IAAAA,CAAKgC,UAEzB,EAEO,GAAAX,GAAA,qBAAAC,KAAA,UAAAS,iBAAAA,CAAmBM,CAAAA,CAAYlC,GACrC,GAAMmC,CAAAA,CAAAA,CAAetC,KAAKQ,OAAYC,GAAAA,CAAAA,CAAmBC,WAEzDV,IAAKY,CAAAA,aAAAA,CAAgB0B,CACnBC,CAAAA,CAAAA,CAA4BF,EAAMlC,CAClCqC,CAAAA,CAAAA,CAAAA,CAA0BH,EAAMlC,CAElCH,CAAAA,CAAAA,IAAAA,CAAKyC,eACN,EAEO,GAAApB,GAAA,iBAAAC,KAAA,gBAAAoB,cAAA,CAAAC,iBAAA,cAAAC,mBAAA,GAAAC,IAAA,UAAAC,QAAoBC,CAAAA,MAAAA,EAAAA,CAAAA,GAAAA,CAAAA,EAAAA,CAAAA,EAAAA,CAAAA,GAAAA,QAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,SAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAC1B/C,KAAKa,WAAckC,CAAAA,CAAAA,CACnBC,SAAA,CAAAC,IAAA,GAAAD,SAAA,CAAAE,IAAA,SACyBC,CAAAA,KAAMJ,CAAAA,CAAAA,CAAAA,QAAvBK,yCACaA,CAAAA,EAAAA,CAASC,cAAtBA,GAAaD,CAAAA,SAAAA,CAAAA,IAAAA,CACbE,EAAWtD,CAAAA,IAAAA,CAAKW,eAAiBoC,CAAIQ,CAAAA,KAAAA,CAAM,KAAKC,GAASC,CAAAA,CAAAA,EAAAA,CAAAA,CAAyBC,iBAClFrB,CAAAA,EAAAA,CAAO,GAAItB,CAAAA,IAAK,CAAA,CAACsC,KAAOC,EAAU,CAAA,CAAEtC,KAAMqC,GAAKrC,CAAAA,IAAAA,CAAAA,CAAAA,CAErDhB,IAAKkC,CAAAA,WAAAA,CAAYG,GAClB,CAAAW,SAAA,CAAAE,IAAA,kBAAAF,SAAA,CAAAC,IAAA,IAAAD,SAAA,CAAAW,EAAA,CAAAX,SAAA,aACOlC,GAAAA,CAAY,GAAIC,CAAAA,IAAK,CAAA,EAAA,CAAIf,IAAKW,CAAAA,aAAAA,EAAiB8C,EAAyBC,iBAAmB,CAAA,CAAE1C,IAAM,CAAA,0BAAA,CAAA,CAAA,CACzGhB,KAAKC,YAAewD,CAAAA,CAAAA,CAAyBG,cAE7C5D,CAAAA,IAAAA,CAAKY,cAAgBZ,IAAKQ,CAAAA,OAAAA,GAAYC,EAAmBC,UACrDmD,CAAAA,CAAAA,CAAwB/C,IAAWd,IAAKC,CAAAA,YAAAA,CAAcD,IAAKa,CAAAA,WAAAA,CAAAA,CAC3DiD,EAAsBhD,GAAWd,CAAAA,IAAAA,CAAKC,aAAcD,IAAKa,CAAAA,WAAAA,CAAAA,CAC7Db,KAAKyC,aACN,CAAA,CAAA,0BAAAO,SAAA,CAAAe,IAAA,MAAAjB,OAAA,iBAGG,WApBE,CAAAV,aAAMA,CAAAA,EAAAA,SAAAA,cAAAA,CAAAA,KAAAA,MAAAA,SAAAA,SAAN,CAAAA,aAAMA,OAAAA,GAAAA,eAAAA,KAAAA,gBAAAA,YAAAA,CAAAA,iBAAAA,cAAAA,mBAAAA,GAAAA,IAAAA,CAoBR,SAAA4B,SAAkB3B,CACtB,MAAA4B,CAAA,CAAAC,GAAA,QAAAtB,mBAAA,GAAAuB,IAAA,UAAAC,UAAAC,SAAA,iBAAAA,SAAA,CAAApB,IAAA,CAAAoB,SAAA,CAAAnB,IAAA,SAAMZ,EAAetC,IAAKQ,CAAAA,OAAAA,GAAYC,EAAmBC,UAEzD,MAAIV,IAAKI,CAAAA,YAAAA,CAAakE,SAASjC,CAAKrB,CAAAA,IAAAA,CAAAA,EAAAA,CAAUhB,IAAKC,CAAAA,YAAAA,GAAAA,SAAAA,CAAAA,IAAAA,eAC7CoC,CAAKrB,CAAAA,IAAAA,CAAKuD,UAAW,CAAA,QAAA,CAAA,EAAAF,SAAA,CAAAnB,IAAA,WAAAmB,SAAA,CAAApB,IAAA,GAAAoB,SAAA,CAAAnB,IAAA,SAEHsB,CAAAA,EAAmBnC,CACrCrC,CAAAA,QADM+C,GAAAA,CAAAA,SAAAA,CAAAA,IAAAA,CACN/C,IAAAA,CAAKY,cAAgB0B,CACjBmC,CAAAA,CAAAA,CAA0B1B,GAAKV,CAAAA,CAAAA,CAAMrC,KAAKa,WAC1C6D,CAAAA,CAAAA,CAAAA,CAAwB3B,IAAKV,CAAMrC,CAAAA,IAAAA,CAAKa,YAC7C,CAAAwD,SAAA,CAAAnB,IAAA,kBAAAmB,SAAA,CAAApB,IAAA,IAAAoB,SAAA,CAAAV,EAAA,CAAAU,SAAA,aACCrE,IAAAA,CAAKY,cAAgB0B,CACjBqC,CAAAA,CAAAA,CAA4BtC,EAAMrC,IAAKa,CAAAA,WAAAA,CAAAA,CACvC+D,EAA0BvC,CAAMrC,CAAAA,IAAAA,CAAKa,WAC1C,CAAA,SAAAwD,SAAA,CAAAnB,IAAA,kBAEDlD,KAAKY,aAAgB0B,CAAAA,CAAAA,CACjBqC,EAA4BtC,CAAMrC,CAAAA,IAAAA,CAAKa,aACvC+D,CAA0BvC,CAAAA,CAAAA,CAAMrC,IAAKa,CAAAA,WAAAA,CAAAA,CAAAA,QAAAA,SAAAA,CAAAA,IAAAA,kBAG3Cb,KAAKC,YAAgBD,CAAAA,IAAAA,CAAKC,aAEtBwD,CAAyBoB,CAAAA,aAAAA,CADzBpB,EAAyBqB,cAG7B9E,CAAAA,IAAAA,CAAKY,aAAgB0B,CAAAA,CAAAA,CACjBuB,EAAwBxB,CAAMrC,CAAAA,IAAAA,CAAKC,aAAcD,IAAKa,CAAAA,WAAAA,CAAAA,CACtDiD,EAAsBzB,CAAMrC,CAAAA,IAAAA,CAAKC,YAAcD,CAAAA,IAAAA,CAAKa,aAE1Db,YAAKyC,CAAAA,aAAAA,CAAAA,CACN,0BAAA4B,SAAA,CAAAN,IAAA,MAAAC,QAAA,iBAIM,WAlCD,CAAA9B,WAAMA,CAAAA,GAAAA,SAAAA,YAAAA,CAAAA,KAAAA,MAAAA,SAAAA,SAAN,CAAAA,WAAMA,OAAAA,GAAAA,UAAAA,KAAAA,CAkCL,SAAA6C,MAAAA,CAAAA,CAAAA,CACL,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,yBACVlF,IAAKY,CAAAA,aAAAA,CACNZ,IAAKY,CAAAA,aAAAA,CACLoE,CAAI,CAAAG,gBAAA,GAAAA,gBAAA,CAAAD,sBAAA,QAAA,EAGL,CAED,GAAA7D,GAAA,wBAAAC,KAAA,UAAA8D,oBAAAA,CAAAA,EACE5D,aAAAA,CAAAA,CAAAA,oCACAxB,KAAKyB,IAAKC,CAAAA,CAAAA,CAAiB2D,aAC5B,EAxH2BC,KAAAA,GAAAA,UAAAA,GAAAA,CAJrB,SAAAC,IAAA,EACL,MAAO,CAACC,EACT,EAkBD,MAzBmCC,CAAAA,GASPH,CAAAA,CAAA,CAA3BI,CAAS,CAAA,CAAE1E,KAAM2E,MAAoC9F,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA+F,UAAA,cAAA,CAAA,IAAA,EAAA,CAAA,CAC3BN,EAAA,CAA3BI,CAAAA,CAAS,CAAE1E,IAAM6E,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAA0BhG,EAAA+F,SAAA,CAAA,WAAA,CAAA,IAAA,IAChBN,CAAA,CAAA,CAA3BI,EAAS,CAAE1E,IAAAA,CAAM2E,UAA+B9F,CAAA+F,CAAAA,SAAAA,CAAA,cAAA,EACrBN,CAAAA,CAAAA,CAAAA,CAAA,CAA3BI,CAAS,CAAA,CAAE1E,IAAM8E,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAmCjG,CAAA+F,CAAAA,SAAAA,CAAA,mBAAA,EACxBN,CAAAA,CAAAA,CAAAA,CAAA,CAA3BI,CAAS,CAAA,CAAE1E,KAAM+E,KAAsClG,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA+F,UAAA,cAAA,CAAA,IAAA,EAAA,CAAA,CAC7BN,EAAA,CAA3BI,CAAAA,CAAS,CAAE1E,IAAM2E,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAA6D9F,EAAA+F,SAAA,CAAA,OAAA,CAAA,IAAA,IACnDN,CAAA,CAAA,CAA3BI,EAAS,CAAE1E,IAAAA,CAAM2E,UAAsE9F,CAAA+F,CAAAA,SAAAA,CAAA,cAAA,EAC3DN,CAAAA,CAAAA,CAAAA,CAAA,CAA3BI,CAAS,CAAA,CAAE1E,KAAM2E,MAAqC9F,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA+F,UAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAAI,OAAA,KAhB5CnG,EAAeyF,CAAA,CAAA,CAD3BW,CAAc,CAAA,mBAAA,CAAA,CAAA,CACFpG"}
1
+ {"version":3,"file":"nile-file-preview.cjs.js","sources":["../../../src/nile-file-preview/nile-file-preview.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 {styles} from './nile-file-preview.css';\nimport NileElement from '../internal/nile-element';\nimport { customElement, property } from 'lit/decorators.js';\nimport { generatePreviewUrl } from './utils';\nimport { FilePreviewState, FilePreviewVariant, FilePreviewErrorMessages, FilePreviewEvent } from './types';\nimport { LitElement, html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport {\n getHorizontalErrorState,\n getHorizontalNoPreviewState,\n getHorizontalPreviewState,\n getHorizontalUploadingState,\n getVerticalErrorState,\n getVerticalNoPreviewState,\n getVerticalPreviewState,\n getVerticalUploadingState\n} from './nile-file-preview.template';\n\n\n/**\n * Nile preview component.\n *\n * @tag nile-preview\n *\n */\n@customElement('nile-file-preview')\nexport class NileFilePreview extends NileElement {\n /**\n * The styles for nile-preview\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String }) errorMessage: string = \"\";\n\t@property({ type: Object }) inputFile: File; \n\t@property({ type: String }) fileUrl: string = \"\";\n\t@property({ type: Number }) uploadStatus: number = 0;\n\t@property({ type: String }) state: FilePreviewState = FilePreviewState.DEFAULT;\n\t@property({ type: String }) variant: FilePreviewVariant = FilePreviewVariant.HORIZONTAL;\n @property({ type: String }) inputFileName: string = \"\";\n\tprivate inputFileHtml: TemplateResult | null = null;\n private originalUrl: string = \"\";\n public isStringTruncated: boolean = false;\n\n /**\n * Render method\n * @slot This is a slot test\n */\n\n connectedCallback(): void {\n super.connectedCallback();\n this.emit(FilePreviewEvent.NILE_INIT);\n }\n\n protected firstUpdated(_changedProperties: PropertyValues): void {\n super.firstUpdated(_changedProperties);\n }\n\n protected updated(changedProperties: PropertyValues): void {\n if(changedProperties.has('uploadStatus') && this.uploadStatus) {\n if(this.uploadStatus < 100) {\n this.createUploadState(this.inputFile, this.uploadStatus);\n } else {\n this.createState(this.inputFile);\n }\n } else if (changedProperties.has('inputFile') && this.inputFile) {\n this.createState(this.inputFile); \n this.emit(FilePreviewEvent.NILE_RECEIVE);\n\n } else if (changedProperties.has('fileUrl') && this.fileUrl) {\n this.handleFileUrl(this.fileUrl);\n this.emit(FilePreviewEvent.NILE_RECEIVE);\n\n } else if (changedProperties.has('errorMessage')) {\n this.createState(this.inputFile);\n }\n }\n\n private createUploadState( file: File, uploadStatus: number): void {\n const isHorizontal = this.variant === FilePreviewVariant.HORIZONTAL;\n\n this.inputFileHtml = isHorizontal \n ? getHorizontalUploadingState(file, uploadStatus)\n : getVerticalUploadingState(file, uploadStatus);\n\n this.requestUpdate();\n }\n\n private async handleFileUrl(url: string): Promise<void> {\n this.originalUrl = url;\n try {\n const response = await fetch(url);\n const blob = await response.blob();\n const fileName = this.inputFileName || url.split('/').pop() || FilePreviewErrorMessages.UNKNOWN_FILE_NAME;\n const file = new File([blob], fileName, { type: blob.type });\n\n this.createState(file);\n } catch (error) {\n const dummyFile = new File([], this.inputFileName || FilePreviewErrorMessages.UNKNOWN_FILE_NAME, { type: 'application/octet-stream' });\n this.errorMessage = FilePreviewErrorMessages.FAILED_TO_LOAD;\n console.error(this.errorMessage);\n\n this.inputFileHtml = this.variant === FilePreviewVariant.HORIZONTAL\n ? getHorizontalErrorState(dummyFile, this.errorMessage, this.originalUrl, this)\n : getVerticalErrorState(dummyFile, this.errorMessage, this.originalUrl, this);\n this.requestUpdate();\n }\n }\n\n\tpublic async createState(file: File): Promise<void> {\n const isHorizontal = this.variant === FilePreviewVariant.HORIZONTAL;\n\n if (!this.errorMessage) { \n if (file && file.type.startsWith('image/')) {\n try {\n const url = await generatePreviewUrl(file);\n this.inputFileHtml = isHorizontal\n ? getHorizontalPreviewState(url, file, this.originalUrl)\n : getVerticalPreviewState(url, file, this.originalUrl);\n } catch (error) {\n this.inputFileHtml = isHorizontal\n ? getHorizontalNoPreviewState(file, this.originalUrl)\n : getVerticalNoPreviewState(file, this.originalUrl); \n }\n } else {\n this.inputFileHtml = isHorizontal\n ? getHorizontalNoPreviewState(file, this.originalUrl)\n : getVerticalNoPreviewState(file, this.originalUrl);\n }\n } else {\n this.inputFileHtml = isHorizontal\n ? getHorizontalErrorState(file, this.errorMessage, this.originalUrl, this)\n : getVerticalErrorState(file, this.errorMessage, this.originalUrl, this);\n }\n this.requestUpdate();\n }\n\n private customFile = new File([], \"Harsh\", { type: \"image/png\" })\n\n getState(): TemplateResult {\n if(this.variant === \"horizontal\") return this.getHorizontalStates();\n return this.getVerticalStates();\n }\n\n getHorizontalStates(): TemplateResult {\n switch(this.state) {\n case FilePreviewState.UPLOADING:\n return getHorizontalUploadingState(this.customFile, 2);\n case FilePreviewState.PREVIEW:\n return getHorizontalPreviewState(\"https://s6.imgcdn.dev/YINe6a.jpg\", this.customFile, this.originalUrl);\n case FilePreviewState.NO_PREVIEW:\n return getHorizontalNoPreviewState(this.customFile, this.originalUrl);\n case FilePreviewState.ERROR:\n return getHorizontalErrorState(this.customFile, FilePreviewErrorMessages.CUSTOM_ERROR, this.originalUrl, this);\n default:\n return this.inputFileHtml || html``;\n }\n }\n\n getVerticalStates(): TemplateResult {\n switch(this.state) {\n case FilePreviewState.UPLOADING:\n return getVerticalUploadingState(this.customFile, 2);\n case FilePreviewState.PREVIEW:\n return getVerticalPreviewState(\"https://s6.imgcdn.dev/YINe6a.jpg\", this.customFile, this.originalUrl);\n case FilePreviewState.NO_PREVIEW:\n return getVerticalNoPreviewState(this.customFile, this.originalUrl);\n case FilePreviewState.ERROR:\n return getVerticalErrorState(this.customFile, FilePreviewErrorMessages.CUSTOM_ERROR, this.originalUrl, this);\n default:\n return this.inputFileHtml || html``;\n }\n }\n\n public render(): TemplateResult {\n if (this.state) {\n return this.getState();\n }\n return html`${this.inputFileHtml ?? html``}`;\n }\n \n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.emit(FilePreviewEvent.NILE_DESTROY);\n }\n\n /* #endregion */\n}\n\nexport default NileFilePreview;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-file-preview': NileFilePreview;\n }\n}"],"names":["NileFilePreview","_i","j","constructor","this","errorMessage","fileUrl","uploadStatus","state","FilePreviewState","DEFAULT","variant","FilePreviewVariant","HORIZONTAL","inputFileName","inputFileHtml","originalUrl","isStringTruncated","customFile","File","type","_this","_inherits","_createClass","key","value","connectedCallback","super","emit","FilePreviewEvent","NILE_INIT","firstUpdated","_changedProperties","updated","changedProperties","has","createUploadState","inputFile","createState","NILE_RECEIVE","handleFileUrl","file","isHorizontal","getHorizontalUploadingState","getVerticalUploadingState","requestUpdate","_handleFileUrl","_asyncToGenerator","_regeneratorRuntime","mark","_callee","url","_context2","prev","next","fetch","blob","response","fileName","split","pop","FilePreviewErrorMessages","UNKNOWN_FILE_NAME","t0","dummyFile","FAILED_TO_LOAD","console","error","getHorizontalErrorState","getVerticalErrorState","stop","_callee2","startsWith","_context3","generatePreviewUrl","getHorizontalPreviewState","getVerticalPreviewState","getHorizontalNoPreviewState","getVerticalNoPreviewState","getState","getHorizontalStates","getVerticalStates","UPLOADING","PREVIEW","NO_PREVIEW","ERROR","CUSTOM_ERROR","html","_templateObject","_taggedTemplateLiteral","_templateObject2","render","_templateObject3","_this$inputFileHtml","_templateObject4","disconnectedCallback","NILE_DESTROY","__decorate","get","styles","NileElement","property","String","prototype","Object","Number","_export","customElement"],"mappings":"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"}