@aquera/nile-elements 0.1.35 → 0.1.36-beta-1.0

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 (742) hide show
  1. package/README.md +8 -0
  2. package/demo/filenames.txt +1 -1
  3. package/demo/index.html +9 -9
  4. package/dist/{fixture-372df3b0.esm.js → fixture-2b5b3aba.esm.js} +1 -1
  5. package/dist/fixture-76051ef1.esm.js +569 -0
  6. package/dist/{fixture-161dee0b.cjs.js → fixture-7bfb866e.cjs.js} +2 -2
  7. package/dist/{fixture-161dee0b.cjs.js.map → fixture-7bfb866e.cjs.js.map} +1 -1
  8. package/dist/fixture-948ae33c.cjs.js +395 -0
  9. package/dist/fixture-948ae33c.cjs.js.map +1 -0
  10. package/dist/index.cjs.js +1 -1
  11. package/dist/index.esm.js +1 -1
  12. package/dist/lit-html-39a6718c.esm.js +6 -0
  13. package/dist/lit-html-9b3af046.cjs.js +6 -0
  14. package/dist/lit-html-9b3af046.cjs.js.map +1 -0
  15. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  16. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  17. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  18. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
  19. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  20. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  21. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -1
  22. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  23. package/dist/nile-badge/index.cjs.js +1 -1
  24. package/dist/nile-badge/index.esm.js +1 -1
  25. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  26. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  27. package/dist/nile-badge/nile-badge.esm.js +2 -2
  28. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  29. package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
  30. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  31. package/dist/nile-button/index.cjs.js +1 -1
  32. package/dist/nile-button/index.esm.js +1 -1
  33. package/dist/nile-button/nile-button.cjs.js +1 -1
  34. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  35. package/dist/nile-button/nile-button.esm.js +2 -2
  36. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  37. package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
  38. package/dist/nile-button/nile-button.test.esm.js +1 -1
  39. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  40. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  41. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  42. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  43. package/dist/nile-calendar/nile-calendar.test.esm.js +4 -4
  44. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  45. package/dist/nile-card/nile-card.test.esm.js +1 -1
  46. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  47. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  48. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  49. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  50. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  51. package/dist/nile-dialog/index.cjs.js +1 -1
  52. package/dist/nile-dialog/index.esm.js +1 -1
  53. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  54. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  55. package/dist/nile-dialog/nile-dialog.esm.js +1 -1
  56. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  57. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
  58. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  59. package/dist/nile-drawer/index.cjs.js +1 -1
  60. package/dist/nile-drawer/index.esm.js +1 -1
  61. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  62. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  63. package/dist/nile-drawer/nile-drawer.esm.js +2 -2
  64. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  65. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
  66. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  67. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  68. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  69. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  70. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  71. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  72. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  73. package/dist/nile-file-preview/index.cjs.js +2 -0
  74. package/dist/nile-file-preview/index.cjs.js.map +1 -0
  75. package/dist/nile-file-preview/index.esm.js +1 -0
  76. package/dist/nile-file-preview/nile-file-preview.cjs.js +2 -0
  77. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -0
  78. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +2 -0
  79. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -0
  80. package/dist/nile-file-preview/nile-file-preview.css.esm.js +521 -0
  81. package/dist/nile-file-preview/nile-file-preview.esm.js +3 -0
  82. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +2 -0
  83. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -0
  84. package/dist/nile-file-preview/nile-file-preview.template.esm.js +117 -0
  85. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +2 -0
  86. package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +1 -0
  87. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -0
  88. package/dist/nile-file-preview/types/file-preview.enums.cjs.js +2 -0
  89. package/dist/nile-file-preview/types/file-preview.enums.cjs.js.map +1 -0
  90. package/dist/nile-file-preview/types/file-preview.enums.esm.js +1 -0
  91. package/dist/nile-file-preview/types/file-preview.interface.cjs.js +2 -0
  92. package/dist/nile-file-preview/types/file-preview.interface.cjs.js.map +1 -0
  93. package/dist/nile-file-preview/types/file-preview.interface.esm.js +1 -0
  94. package/dist/nile-file-preview/types/index.cjs.js +2 -0
  95. package/dist/nile-file-preview/types/index.cjs.js.map +1 -0
  96. package/dist/nile-file-preview/types/index.esm.js +1 -0
  97. package/dist/nile-file-preview/utils/file-preview.util.cjs.js +2 -0
  98. package/dist/nile-file-preview/utils/file-preview.util.cjs.js.map +1 -0
  99. package/dist/nile-file-preview/utils/file-preview.util.esm.js +1 -0
  100. package/dist/nile-file-preview/utils/index.cjs.js +2 -0
  101. package/dist/nile-file-preview/utils/index.cjs.js.map +1 -0
  102. package/dist/nile-file-preview/utils/index.esm.js +1 -0
  103. package/dist/nile-file-upload/index.cjs.js +2 -0
  104. package/dist/nile-file-upload/index.cjs.js.map +1 -0
  105. package/dist/nile-file-upload/index.esm.js +1 -0
  106. package/dist/nile-file-upload/nile-file-upload.cjs.js +2 -0
  107. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -0
  108. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +2 -0
  109. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -0
  110. package/dist/nile-file-upload/nile-file-upload.css.esm.js +535 -0
  111. package/dist/nile-file-upload/nile-file-upload.esm.js +3 -0
  112. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +10 -0
  113. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -0
  114. package/dist/nile-file-upload/nile-file-upload.template.esm.js +155 -0
  115. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +2 -0
  116. package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +1 -0
  117. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -0
  118. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +2 -0
  119. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -0
  120. package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -0
  121. package/dist/nile-file-upload/types/file-upload.type.cjs.js +2 -0
  122. package/dist/nile-file-upload/types/file-upload.type.cjs.js.map +1 -0
  123. package/dist/nile-file-upload/types/file-upload.type.esm.js +1 -0
  124. package/dist/nile-file-upload/types/index.cjs.js +2 -0
  125. package/dist/nile-file-upload/types/index.cjs.js.map +1 -0
  126. package/dist/nile-file-upload/types/index.esm.js +1 -0
  127. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +2 -0
  128. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -0
  129. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -0
  130. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +2 -0
  131. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -0
  132. package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -0
  133. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  134. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  135. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  136. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  137. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  138. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  139. package/dist/nile-icon/aliasmap.cjs.js +2 -0
  140. package/dist/nile-icon/aliasmap.cjs.js.map +1 -0
  141. package/dist/nile-icon/aliasmap.esm.js +1 -0
  142. package/dist/nile-icon/icons/svg/actionworkflow.cjs.js +1 -1
  143. package/dist/nile-icon/icons/svg/actionworkflow.cjs.js.map +1 -1
  144. package/dist/nile-icon/icons/svg/actionworkflow.esm.js +1 -1
  145. package/dist/nile-icon/icons/svg/agents.cjs.js +1 -1
  146. package/dist/nile-icon/icons/svg/agents.cjs.js.map +1 -1
  147. package/dist/nile-icon/icons/svg/agents.esm.js +1 -1
  148. package/dist/nile-icon/icons/svg/anomaly.cjs.js +1 -1
  149. package/dist/nile-icon/icons/svg/anomaly.cjs.js.map +1 -1
  150. package/dist/nile-icon/icons/svg/anomaly.esm.js +1 -1
  151. package/dist/nile-icon/icons/svg/application.cjs.js +1 -1
  152. package/dist/nile-icon/icons/svg/application.cjs.js.map +1 -1
  153. package/dist/nile-icon/icons/svg/application.esm.js +1 -1
  154. package/dist/nile-icon/icons/svg/applications.cjs.js +1 -1
  155. package/dist/nile-icon/icons/svg/applications.cjs.js.map +1 -1
  156. package/dist/nile-icon/icons/svg/applications.esm.js +1 -1
  157. package/dist/nile-icon/icons/svg/approve.cjs.js +1 -1
  158. package/dist/nile-icon/icons/svg/approve.cjs.js.map +1 -1
  159. package/dist/nile-icon/icons/svg/approve.esm.js +1 -1
  160. package/dist/nile-icon/icons/svg/bar-chart-square-03.cjs.js +1 -1
  161. package/dist/nile-icon/icons/svg/bar-chart-square-03.cjs.js.map +1 -1
  162. package/dist/nile-icon/icons/svg/bar-chart-square-03.esm.js +1 -1
  163. package/dist/nile-icon/icons/svg/basic.cjs.js +1 -1
  164. package/dist/nile-icon/icons/svg/basic.cjs.js.map +1 -1
  165. package/dist/nile-icon/icons/svg/basic.esm.js +1 -1
  166. package/dist/nile-icon/icons/svg/bell-icon.cjs.js +1 -1
  167. package/dist/nile-icon/icons/svg/bell-icon.cjs.js.map +1 -1
  168. package/dist/nile-icon/icons/svg/bell-icon.esm.js +1 -1
  169. package/dist/nile-icon/icons/svg/bell.cjs.js +1 -1
  170. package/dist/nile-icon/icons/svg/bell.cjs.js.map +1 -1
  171. package/dist/nile-icon/icons/svg/bell.esm.js +1 -1
  172. package/dist/nile-icon/icons/svg/block-02.cjs.js +1 -1
  173. package/dist/nile-icon/icons/svg/block-02.cjs.js.map +1 -1
  174. package/dist/nile-icon/icons/svg/block-02.esm.js +1 -1
  175. package/dist/nile-icon/icons/svg/calendar-01.cjs.js +1 -1
  176. package/dist/nile-icon/icons/svg/calendar-01.cjs.js.map +1 -1
  177. package/dist/nile-icon/icons/svg/calendar-01.esm.js +1 -1
  178. package/dist/nile-icon/icons/svg/cancel.cjs.js +1 -1
  179. package/dist/nile-icon/icons/svg/cancel.cjs.js.map +1 -1
  180. package/dist/nile-icon/icons/svg/cancel.esm.js +1 -1
  181. package/dist/nile-icon/icons/svg/caution.cjs.js +1 -1
  182. package/dist/nile-icon/icons/svg/caution.cjs.js.map +1 -1
  183. package/dist/nile-icon/icons/svg/caution.esm.js +1 -1
  184. package/dist/nile-icon/icons/svg/check.cjs.js +1 -1
  185. package/dist/nile-icon/icons/svg/check.cjs.js.map +1 -1
  186. package/dist/nile-icon/icons/svg/check.esm.js +1 -1
  187. package/dist/nile-icon/icons/svg/chevron-down.cjs.js +1 -1
  188. package/dist/nile-icon/icons/svg/chevron-down.cjs.js.map +1 -1
  189. package/dist/nile-icon/icons/svg/chevron-down.esm.js +1 -1
  190. package/dist/nile-icon/icons/svg/chevron-selector-vertical.cjs.js +1 -1
  191. package/dist/nile-icon/icons/svg/chevron-selector-vertical.cjs.js.map +1 -1
  192. package/dist/nile-icon/icons/svg/chevron-selector-vertical.esm.js +1 -1
  193. package/dist/nile-icon/icons/svg/componentblock.cjs.js +1 -1
  194. package/dist/nile-icon/icons/svg/componentblock.cjs.js.map +1 -1
  195. package/dist/nile-icon/icons/svg/componentblock.esm.js +1 -1
  196. package/dist/nile-icon/icons/svg/continuous.cjs.js +1 -1
  197. package/dist/nile-icon/icons/svg/continuous.cjs.js.map +1 -1
  198. package/dist/nile-icon/icons/svg/continuous.esm.js +1 -1
  199. package/dist/nile-icon/icons/svg/custom.cjs.js +1 -1
  200. package/dist/nile-icon/icons/svg/custom.cjs.js.map +1 -1
  201. package/dist/nile-icon/icons/svg/custom.esm.js +1 -1
  202. package/dist/nile-icon/icons/svg/data-type-expression.cjs.js +1 -1
  203. package/dist/nile-icon/icons/svg/data-type-expression.cjs.js.map +1 -1
  204. package/dist/nile-icon/icons/svg/data-type-expression.esm.js +1 -1
  205. package/dist/nile-icon/icons/svg/data-type-persistent-variable.cjs.js +1 -1
  206. package/dist/nile-icon/icons/svg/data-type-persistent-variable.cjs.js.map +1 -1
  207. package/dist/nile-icon/icons/svg/data-type-persistent-variable.esm.js +1 -1
  208. package/dist/nile-icon/icons/svg/data-type-variable.cjs.js +1 -1
  209. package/dist/nile-icon/icons/svg/data-type-variable.cjs.js.map +1 -1
  210. package/dist/nile-icon/icons/svg/data-type-variable.esm.js +1 -1
  211. package/dist/nile-icon/icons/svg/database-1.cjs.js +1 -1
  212. package/dist/nile-icon/icons/svg/database-1.cjs.js.map +1 -1
  213. package/dist/nile-icon/icons/svg/database-1.esm.js +1 -1
  214. package/dist/nile-icon/icons/svg/default-1.cjs.js +1 -1
  215. package/dist/nile-icon/icons/svg/default-1.cjs.js.map +1 -1
  216. package/dist/nile-icon/icons/svg/default-1.esm.js +1 -1
  217. package/dist/nile-icon/icons/svg/deleteuser.cjs.js +1 -1
  218. package/dist/nile-icon/icons/svg/deleteuser.cjs.js.map +1 -1
  219. package/dist/nile-icon/icons/svg/deleteuser.esm.js +1 -1
  220. package/dist/nile-icon/icons/svg/document-new.cjs.js +2 -0
  221. package/dist/nile-icon/icons/svg/document-new.cjs.js.map +1 -0
  222. package/dist/nile-icon/icons/svg/document-new.esm.js +1 -0
  223. package/dist/nile-icon/icons/svg/document.cjs.js +1 -1
  224. package/dist/nile-icon/icons/svg/document.cjs.js.map +1 -1
  225. package/dist/nile-icon/icons/svg/document.esm.js +1 -1
  226. package/dist/nile-icon/icons/svg/dots-vertical.cjs.js +1 -1
  227. package/dist/nile-icon/icons/svg/dots-vertical.cjs.js.map +1 -1
  228. package/dist/nile-icon/icons/svg/dots-vertical.esm.js +1 -1
  229. package/dist/nile-icon/icons/svg/downarrow.cjs.js +1 -1
  230. package/dist/nile-icon/icons/svg/downarrow.cjs.js.map +1 -1
  231. package/dist/nile-icon/icons/svg/downarrow.esm.js +1 -1
  232. package/dist/nile-icon/icons/svg/download-01.cjs.js +1 -1
  233. package/dist/nile-icon/icons/svg/download-01.cjs.js.map +1 -1
  234. package/dist/nile-icon/icons/svg/download-01.esm.js +1 -1
  235. package/dist/nile-icon/icons/svg/download-02.cjs.js +1 -1
  236. package/dist/nile-icon/icons/svg/download-02.cjs.js.map +1 -1
  237. package/dist/nile-icon/icons/svg/download-02.esm.js +1 -1
  238. package/dist/nile-icon/icons/svg/draglist.cjs.js +1 -1
  239. package/dist/nile-icon/icons/svg/draglist.cjs.js.map +1 -1
  240. package/dist/nile-icon/icons/svg/draglist.esm.js +1 -1
  241. package/dist/nile-icon/icons/svg/droparrow.cjs.js +1 -1
  242. package/dist/nile-icon/icons/svg/droparrow.cjs.js.map +1 -1
  243. package/dist/nile-icon/icons/svg/droparrow.esm.js +1 -1
  244. package/dist/nile-icon/icons/svg/dropdown.cjs.js +1 -1
  245. package/dist/nile-icon/icons/svg/dropdown.cjs.js.map +1 -1
  246. package/dist/nile-icon/icons/svg/dropdown.esm.js +1 -1
  247. package/dist/nile-icon/icons/svg/edit-01.cjs.js +1 -1
  248. package/dist/nile-icon/icons/svg/edit-01.cjs.js.map +1 -1
  249. package/dist/nile-icon/icons/svg/edit-01.esm.js +1 -1
  250. package/dist/nile-icon/icons/svg/edit-1.cjs.js +1 -1
  251. package/dist/nile-icon/icons/svg/edit-1.cjs.js.map +1 -1
  252. package/dist/nile-icon/icons/svg/edit-1.esm.js +1 -1
  253. package/dist/nile-icon/icons/svg/edit-pencil.cjs.js +1 -1
  254. package/dist/nile-icon/icons/svg/edit-pencil.cjs.js.map +1 -1
  255. package/dist/nile-icon/icons/svg/edit-pencil.esm.js +1 -1
  256. package/dist/nile-icon/icons/svg/enabled.cjs.js +1 -1
  257. package/dist/nile-icon/icons/svg/enabled.cjs.js.map +1 -1
  258. package/dist/nile-icon/icons/svg/enabled.esm.js +1 -1
  259. package/dist/nile-icon/icons/svg/event.cjs.js +1 -1
  260. package/dist/nile-icon/icons/svg/event.cjs.js.map +1 -1
  261. package/dist/nile-icon/icons/svg/event.esm.js +1 -1
  262. package/dist/nile-icon/icons/svg/every.cjs.js +1 -1
  263. package/dist/nile-icon/icons/svg/every.cjs.js.map +1 -1
  264. package/dist/nile-icon/icons/svg/every.esm.js +1 -1
  265. package/dist/nile-icon/icons/svg/expand-1.cjs.js +1 -1
  266. package/dist/nile-icon/icons/svg/expand-1.cjs.js.map +1 -1
  267. package/dist/nile-icon/icons/svg/expand-1.esm.js +1 -1
  268. package/dist/nile-icon/icons/svg/flow-01.cjs.js +1 -1
  269. package/dist/nile-icon/icons/svg/flow-01.cjs.js.map +1 -1
  270. package/dist/nile-icon/icons/svg/flow-01.esm.js +1 -1
  271. package/dist/nile-icon/icons/svg/flow-h.cjs.js +1 -1
  272. package/dist/nile-icon/icons/svg/flow-h.cjs.js.map +1 -1
  273. package/dist/nile-icon/icons/svg/flow-h.esm.js +1 -1
  274. package/dist/nile-icon/icons/svg/flowmap-aquera.cjs.js +1 -1
  275. package/dist/nile-icon/icons/svg/flowmap-aquera.cjs.js.map +1 -1
  276. package/dist/nile-icon/icons/svg/flowmap-aquera.esm.js +1 -1
  277. package/dist/nile-icon/icons/svg/flowmap-block.cjs.js +1 -1
  278. package/dist/nile-icon/icons/svg/flowmap-block.cjs.js.map +1 -1
  279. package/dist/nile-icon/icons/svg/flowmap-block.esm.js +1 -1
  280. package/dist/nile-icon/icons/svg/flowmap-cancel.cjs.js +1 -1
  281. package/dist/nile-icon/icons/svg/flowmap-cancel.cjs.js.map +1 -1
  282. package/dist/nile-icon/icons/svg/flowmap-cancel.esm.js +1 -1
  283. package/dist/nile-icon/icons/svg/flowmap-drag.cjs.js +1 -1
  284. package/dist/nile-icon/icons/svg/flowmap-drag.cjs.js.map +1 -1
  285. package/dist/nile-icon/icons/svg/flowmap-drag.esm.js +1 -1
  286. package/dist/nile-icon/icons/svg/flowmap-ellipsis.cjs.js +1 -1
  287. package/dist/nile-icon/icons/svg/flowmap-ellipsis.cjs.js.map +1 -1
  288. package/dist/nile-icon/icons/svg/flowmap-ellipsis.esm.js +1 -1
  289. package/dist/nile-icon/icons/svg/flowmap-hand.cjs.js +1 -1
  290. package/dist/nile-icon/icons/svg/flowmap-hand.cjs.js.map +1 -1
  291. package/dist/nile-icon/icons/svg/flowmap-hand.esm.js +1 -1
  292. package/dist/nile-icon/icons/svg/flowmap-redo.cjs.js +1 -1
  293. package/dist/nile-icon/icons/svg/flowmap-redo.cjs.js.map +1 -1
  294. package/dist/nile-icon/icons/svg/flowmap-redo.esm.js +1 -1
  295. package/dist/nile-icon/icons/svg/flowmap-section.cjs.js +1 -1
  296. package/dist/nile-icon/icons/svg/flowmap-section.cjs.js.map +1 -1
  297. package/dist/nile-icon/icons/svg/flowmap-section.esm.js +1 -1
  298. package/dist/nile-icon/icons/svg/flowmap-text.cjs.js +1 -1
  299. package/dist/nile-icon/icons/svg/flowmap-text.cjs.js.map +1 -1
  300. package/dist/nile-icon/icons/svg/flowmap-text.esm.js +1 -1
  301. package/dist/nile-icon/icons/svg/folder-01.cjs.js +1 -1
  302. package/dist/nile-icon/icons/svg/folder-01.cjs.js.map +1 -1
  303. package/dist/nile-icon/icons/svg/folder-01.esm.js +1 -1
  304. package/dist/nile-icon/icons/svg/form.cjs.js +1 -1
  305. package/dist/nile-icon/icons/svg/form.cjs.js.map +1 -1
  306. package/dist/nile-icon/icons/svg/form.esm.js +1 -1
  307. package/dist/nile-icon/icons/svg/header-actions.cjs.js +1 -1
  308. package/dist/nile-icon/icons/svg/header-actions.cjs.js.map +1 -1
  309. package/dist/nile-icon/icons/svg/header-actions.esm.js +1 -1
  310. package/dist/nile-icon/icons/svg/header-functions.cjs.js +1 -1
  311. package/dist/nile-icon/icons/svg/header-functions.cjs.js.map +1 -1
  312. package/dist/nile-icon/icons/svg/header-functions.esm.js +1 -1
  313. package/dist/nile-icon/icons/svg/header-variable.cjs.js +1 -1
  314. package/dist/nile-icon/icons/svg/header-variable.cjs.js.map +1 -1
  315. package/dist/nile-icon/icons/svg/header-variable.esm.js +1 -1
  316. package/dist/nile-icon/icons/svg/help-1.cjs.js +1 -1
  317. package/dist/nile-icon/icons/svg/help-1.cjs.js.map +1 -1
  318. package/dist/nile-icon/icons/svg/help-1.esm.js +1 -1
  319. package/dist/nile-icon/icons/svg/help-circle.cjs.js +1 -1
  320. package/dist/nile-icon/icons/svg/help-circle.cjs.js.map +1 -1
  321. package/dist/nile-icon/icons/svg/help-circle.esm.js +1 -1
  322. package/dist/nile-icon/icons/svg/if-else-new.cjs.js +2 -0
  323. package/dist/nile-icon/icons/svg/if-else-new.cjs.js.map +1 -0
  324. package/dist/nile-icon/icons/svg/if-else-new.esm.js +1 -0
  325. package/dist/nile-icon/icons/svg/if.cjs.js +1 -1
  326. package/dist/nile-icon/icons/svg/if.cjs.js.map +1 -1
  327. package/dist/nile-icon/icons/svg/if.esm.js +1 -1
  328. package/dist/nile-icon/icons/svg/ifelsenew.cjs.js +2 -0
  329. package/dist/nile-icon/icons/svg/ifelsenew.cjs.js.map +1 -0
  330. package/dist/nile-icon/icons/svg/ifelsenew.esm.js +1 -0
  331. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  332. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  333. package/dist/nile-icon/icons/svg/info-circle.cjs.js +1 -1
  334. package/dist/nile-icon/icons/svg/info-circle.cjs.js.map +1 -1
  335. package/dist/nile-icon/icons/svg/info-circle.esm.js +1 -1
  336. package/dist/nile-icon/icons/svg/info-icon1.cjs.js +1 -1
  337. package/dist/nile-icon/icons/svg/info-icon1.cjs.js.map +1 -1
  338. package/dist/nile-icon/icons/svg/info-icon1.esm.js +1 -1
  339. package/dist/nile-icon/icons/svg/info2.cjs.js +1 -1
  340. package/dist/nile-icon/icons/svg/info2.cjs.js.map +1 -1
  341. package/dist/nile-icon/icons/svg/info2.esm.js +1 -1
  342. package/dist/nile-icon/icons/svg/itemplaceholder.cjs.js +1 -1
  343. package/dist/nile-icon/icons/svg/itemplaceholder.cjs.js.map +1 -1
  344. package/dist/nile-icon/icons/svg/itemplaceholder.esm.js +1 -1
  345. package/dist/nile-icon/icons/svg/layers-three-01.cjs.js +1 -1
  346. package/dist/nile-icon/icons/svg/layers-three-01.cjs.js.map +1 -1
  347. package/dist/nile-icon/icons/svg/layers-three-01.esm.js +1 -1
  348. package/dist/nile-icon/icons/svg/leftarrow.cjs.js +1 -1
  349. package/dist/nile-icon/icons/svg/leftarrow.cjs.js.map +1 -1
  350. package/dist/nile-icon/icons/svg/leftarrow.esm.js +1 -1
  351. package/dist/nile-icon/icons/svg/manageduser.cjs.js +1 -1
  352. package/dist/nile-icon/icons/svg/manageduser.cjs.js.map +1 -1
  353. package/dist/nile-icon/icons/svg/manageduser.esm.js +1 -1
  354. package/dist/nile-icon/icons/svg/multiple-user.cjs.js +1 -1
  355. package/dist/nile-icon/icons/svg/multiple-user.cjs.js.map +1 -1
  356. package/dist/nile-icon/icons/svg/multiple-user.esm.js +1 -1
  357. package/dist/nile-icon/icons/svg/new-calendar.cjs.js +2 -0
  358. package/dist/nile-icon/icons/svg/new-calendar.cjs.js.map +1 -0
  359. package/dist/nile-icon/icons/svg/new-calendar.esm.js +1 -0
  360. package/dist/nile-icon/icons/svg/next-down.cjs.js +1 -1
  361. package/dist/nile-icon/icons/svg/next-down.cjs.js.map +1 -1
  362. package/dist/nile-icon/icons/svg/next-down.esm.js +1 -1
  363. package/dist/nile-icon/icons/svg/next.cjs.js +1 -1
  364. package/dist/nile-icon/icons/svg/next.cjs.js.map +1 -1
  365. package/dist/nile-icon/icons/svg/next.esm.js +1 -1
  366. package/dist/nile-icon/icons/svg/no-anomaly.cjs.js +1 -1
  367. package/dist/nile-icon/icons/svg/no-anomaly.cjs.js.map +1 -1
  368. package/dist/nile-icon/icons/svg/no-anomaly.esm.js +1 -1
  369. package/dist/nile-icon/icons/svg/not.cjs.js +1 -1
  370. package/dist/nile-icon/icons/svg/not.cjs.js.map +1 -1
  371. package/dist/nile-icon/icons/svg/not.esm.js +1 -1
  372. package/dist/nile-icon/icons/svg/notscheduled.cjs.js +1 -1
  373. package/dist/nile-icon/icons/svg/notscheduled.cjs.js.map +1 -1
  374. package/dist/nile-icon/icons/svg/notscheduled.esm.js +1 -1
  375. package/dist/nile-icon/icons/svg/ou-analysis-icon.cjs.js +1 -1
  376. package/dist/nile-icon/icons/svg/ou-analysis-icon.cjs.js.map +1 -1
  377. package/dist/nile-icon/icons/svg/ou-analysis-icon.esm.js +1 -1
  378. package/dist/nile-icon/icons/svg/palette.cjs.js +1 -1
  379. package/dist/nile-icon/icons/svg/palette.cjs.js.map +1 -1
  380. package/dist/nile-icon/icons/svg/palette.esm.js +1 -1
  381. package/dist/nile-icon/icons/svg/pen.cjs.js +1 -1
  382. package/dist/nile-icon/icons/svg/pen.cjs.js.map +1 -1
  383. package/dist/nile-icon/icons/svg/pen.esm.js +1 -1
  384. package/dist/nile-icon/icons/svg/personaldetails.cjs.js +1 -1
  385. package/dist/nile-icon/icons/svg/personaldetails.cjs.js.map +1 -1
  386. package/dist/nile-icon/icons/svg/personaldetails.esm.js +1 -1
  387. package/dist/nile-icon/icons/svg/placeholder-wf.cjs.js +1 -1
  388. package/dist/nile-icon/icons/svg/placeholder-wf.cjs.js.map +1 -1
  389. package/dist/nile-icon/icons/svg/placeholder-wf.esm.js +1 -1
  390. package/dist/nile-icon/icons/svg/play-circle.cjs.js +1 -1
  391. package/dist/nile-icon/icons/svg/play-circle.cjs.js.map +1 -1
  392. package/dist/nile-icon/icons/svg/play-circle.esm.js +1 -1
  393. package/dist/nile-icon/icons/svg/plus-icon.cjs.js +1 -1
  394. package/dist/nile-icon/icons/svg/plus-icon.cjs.js.map +1 -1
  395. package/dist/nile-icon/icons/svg/plus-icon.esm.js +1 -1
  396. package/dist/nile-icon/icons/svg/prev-up.cjs.js +1 -1
  397. package/dist/nile-icon/icons/svg/prev-up.cjs.js.map +1 -1
  398. package/dist/nile-icon/icons/svg/prev-up.esm.js +1 -1
  399. package/dist/nile-icon/icons/svg/prev.cjs.js +1 -1
  400. package/dist/nile-icon/icons/svg/prev.cjs.js.map +1 -1
  401. package/dist/nile-icon/icons/svg/prev.esm.js +1 -1
  402. package/dist/nile-icon/icons/svg/refresh-cw-03.cjs.js +1 -1
  403. package/dist/nile-icon/icons/svg/refresh-cw-03.cjs.js.map +1 -1
  404. package/dist/nile-icon/icons/svg/refresh-cw-03.esm.js +1 -1
  405. package/dist/nile-icon/icons/svg/revocation-cycle.cjs.js +2 -0
  406. package/dist/nile-icon/icons/svg/revocation-cycle.cjs.js.map +1 -0
  407. package/dist/nile-icon/icons/svg/revocation-cycle.esm.js +1 -0
  408. package/dist/nile-icon/icons/svg/revocationcycle.cjs.js +1 -1
  409. package/dist/nile-icon/icons/svg/revocationcycle.cjs.js.map +1 -1
  410. package/dist/nile-icon/icons/svg/revocationcycle.esm.js +1 -1
  411. package/dist/nile-icon/icons/svg/revokation-cycle.cjs.js +1 -1
  412. package/dist/nile-icon/icons/svg/revokation-cycle.cjs.js.map +1 -1
  413. package/dist/nile-icon/icons/svg/revokation-cycle.esm.js +1 -1
  414. package/dist/nile-icon/icons/svg/rightarrow.cjs.js +1 -1
  415. package/dist/nile-icon/icons/svg/rightarrow.cjs.js.map +1 -1
  416. package/dist/nile-icon/icons/svg/rightarrow.esm.js +1 -1
  417. package/dist/nile-icon/icons/svg/rolemanager.cjs.js +1 -1
  418. package/dist/nile-icon/icons/svg/rolemanager.cjs.js.map +1 -1
  419. package/dist/nile-icon/icons/svg/rolemanager.esm.js +1 -1
  420. package/dist/nile-icon/icons/svg/search-lg.cjs.js +1 -1
  421. package/dist/nile-icon/icons/svg/search-lg.cjs.js.map +1 -1
  422. package/dist/nile-icon/icons/svg/search-lg.esm.js +1 -1
  423. package/dist/nile-icon/icons/svg/section-02.cjs.js +1 -1
  424. package/dist/nile-icon/icons/svg/section-02.cjs.js.map +1 -1
  425. package/dist/nile-icon/icons/svg/section-02.esm.js +1 -1
  426. package/dist/nile-icon/icons/svg/selectuser.cjs.js +1 -1
  427. package/dist/nile-icon/icons/svg/selectuser.cjs.js.map +1 -1
  428. package/dist/nile-icon/icons/svg/selectuser.esm.js +1 -1
  429. package/dist/nile-icon/icons/svg/sendprompt.cjs.js +1 -1
  430. package/dist/nile-icon/icons/svg/sendprompt.cjs.js.map +1 -1
  431. package/dist/nile-icon/icons/svg/sendprompt.esm.js +1 -1
  432. package/dist/nile-icon/icons/svg/setting.cjs.js +1 -1
  433. package/dist/nile-icon/icons/svg/setting.cjs.js.map +1 -1
  434. package/dist/nile-icon/icons/svg/setting.esm.js +1 -1
  435. package/dist/nile-icon/icons/svg/settings-1.cjs.js +1 -1
  436. package/dist/nile-icon/icons/svg/settings-1.cjs.js.map +1 -1
  437. package/dist/nile-icon/icons/svg/settings-1.esm.js +1 -1
  438. package/dist/nile-icon/icons/svg/shape.cjs.js +1 -1
  439. package/dist/nile-icon/icons/svg/shape.cjs.js.map +1 -1
  440. package/dist/nile-icon/icons/svg/shape.esm.js +1 -1
  441. package/dist/nile-icon/icons/svg/smalltick.cjs.js +1 -1
  442. package/dist/nile-icon/icons/svg/smalltick.cjs.js.map +1 -1
  443. package/dist/nile-icon/icons/svg/smalltick.esm.js +1 -1
  444. package/dist/nile-icon/icons/svg/stop-circle.cjs.js +1 -1
  445. package/dist/nile-icon/icons/svg/stop-circle.cjs.js.map +1 -1
  446. package/dist/nile-icon/icons/svg/stop-circle.esm.js +1 -1
  447. package/dist/nile-icon/icons/svg/table-1.cjs.js +1 -1
  448. package/dist/nile-icon/icons/svg/table-1.cjs.js.map +1 -1
  449. package/dist/nile-icon/icons/svg/table-1.esm.js +1 -1
  450. package/dist/nile-icon/icons/svg/themes.cjs.js +1 -1
  451. package/dist/nile-icon/icons/svg/themes.cjs.js.map +1 -1
  452. package/dist/nile-icon/icons/svg/themes.esm.js +1 -1
  453. package/dist/nile-icon/icons/svg/trash-01.cjs.js +1 -1
  454. package/dist/nile-icon/icons/svg/trash-01.cjs.js.map +1 -1
  455. package/dist/nile-icon/icons/svg/trash-01.esm.js +1 -1
  456. package/dist/nile-icon/icons/svg/trash-03.cjs.js +1 -1
  457. package/dist/nile-icon/icons/svg/trash-03.cjs.js.map +1 -1
  458. package/dist/nile-icon/icons/svg/trash-03.esm.js +1 -1
  459. package/dist/nile-icon/icons/svg/trash-no-fill.cjs.js +1 -1
  460. package/dist/nile-icon/icons/svg/trash-no-fill.cjs.js.map +1 -1
  461. package/dist/nile-icon/icons/svg/trash-no-fill.esm.js +1 -1
  462. package/dist/nile-icon/icons/svg/trash.cjs.js +1 -1
  463. package/dist/nile-icon/icons/svg/trash.cjs.js.map +1 -1
  464. package/dist/nile-icon/icons/svg/trash.esm.js +1 -1
  465. package/dist/nile-icon/icons/svg/undo-1.cjs.js +1 -1
  466. package/dist/nile-icon/icons/svg/undo-1.cjs.js.map +1 -1
  467. package/dist/nile-icon/icons/svg/undo-1.esm.js +1 -1
  468. package/dist/nile-icon/icons/svg/uparrow.cjs.js +1 -1
  469. package/dist/nile-icon/icons/svg/uparrow.cjs.js.map +1 -1
  470. package/dist/nile-icon/icons/svg/uparrow.esm.js +1 -1
  471. package/dist/nile-icon/icons/svg/updateuser.cjs.js +1 -1
  472. package/dist/nile-icon/icons/svg/updateuser.cjs.js.map +1 -1
  473. package/dist/nile-icon/icons/svg/updateuser.esm.js +1 -1
  474. package/dist/nile-icon/icons/svg/user-01.cjs.js +1 -1
  475. package/dist/nile-icon/icons/svg/user-01.cjs.js.map +1 -1
  476. package/dist/nile-icon/icons/svg/user-01.esm.js +1 -1
  477. package/dist/nile-icon/icons/svg/user-03.cjs.js +1 -1
  478. package/dist/nile-icon/icons/svg/user-03.cjs.js.map +1 -1
  479. package/dist/nile-icon/icons/svg/user-03.esm.js +1 -1
  480. package/dist/nile-icon/icons/svg/user-analysis-icon.cjs.js +1 -1
  481. package/dist/nile-icon/icons/svg/user-analysis-icon.cjs.js.map +1 -1
  482. package/dist/nile-icon/icons/svg/user-analysis-icon.esm.js +1 -1
  483. package/dist/nile-icon/icons/svg/user-circle.cjs.js +1 -1
  484. package/dist/nile-icon/icons/svg/user-circle.cjs.js.map +1 -1
  485. package/dist/nile-icon/icons/svg/user-circle.esm.js +1 -1
  486. package/dist/nile-icon/icons/svg/user-inactive.cjs.js +1 -1
  487. package/dist/nile-icon/icons/svg/user-inactive.cjs.js.map +1 -1
  488. package/dist/nile-icon/icons/svg/user-inactive.esm.js +1 -1
  489. package/dist/nile-icon/icons/svg/user-selection.cjs.js +1 -1
  490. package/dist/nile-icon/icons/svg/user-selection.cjs.js.map +1 -1
  491. package/dist/nile-icon/icons/svg/user-selection.esm.js +1 -1
  492. package/dist/nile-icon/icons/svg/user-square.cjs.js +1 -1
  493. package/dist/nile-icon/icons/svg/user-square.cjs.js.map +1 -1
  494. package/dist/nile-icon/icons/svg/user-square.esm.js +1 -1
  495. package/dist/nile-icon/icons/svg/userremove-1.cjs.js +1 -1
  496. package/dist/nile-icon/icons/svg/userremove-1.cjs.js.map +1 -1
  497. package/dist/nile-icon/icons/svg/userremove-1.esm.js +1 -1
  498. package/dist/nile-icon/icons/svg/userremove-2.cjs.js +1 -1
  499. package/dist/nile-icon/icons/svg/userremove-2.cjs.js.map +1 -1
  500. package/dist/nile-icon/icons/svg/userremove-2.esm.js +1 -1
  501. package/dist/nile-icon/icons/svg/users-01.cjs.js +1 -1
  502. package/dist/nile-icon/icons/svg/users-01.cjs.js.map +1 -1
  503. package/dist/nile-icon/icons/svg/users-01.esm.js +1 -1
  504. package/dist/nile-icon/icons/svg/users-02.cjs.js +1 -1
  505. package/dist/nile-icon/icons/svg/users-02.cjs.js.map +1 -1
  506. package/dist/nile-icon/icons/svg/users-02.esm.js +1 -1
  507. package/dist/nile-icon/icons/svg/variable-local-1.cjs.js +1 -1
  508. package/dist/nile-icon/icons/svg/variable-local-1.cjs.js.map +1 -1
  509. package/dist/nile-icon/icons/svg/variable-local-1.esm.js +1 -1
  510. package/dist/nile-icon/icons/svg/variable-new-1.cjs.js +1 -1
  511. package/dist/nile-icon/icons/svg/variable-new-1.cjs.js.map +1 -1
  512. package/dist/nile-icon/icons/svg/variable-new-1.esm.js +1 -1
  513. package/dist/nile-icon/icons/svg/while.cjs.js +1 -1
  514. package/dist/nile-icon/icons/svg/while.cjs.js.map +1 -1
  515. package/dist/nile-icon/icons/svg/while.esm.js +1 -1
  516. package/dist/nile-icon/icons/svg/workflow-01.cjs.js +1 -1
  517. package/dist/nile-icon/icons/svg/workflow-01.cjs.js.map +1 -1
  518. package/dist/nile-icon/icons/svg/workflow-01.esm.js +1 -1
  519. package/dist/nile-icon/icons/svg/workflow-orchestration.cjs.js +1 -1
  520. package/dist/nile-icon/icons/svg/workflow-orchestration.cjs.js.map +1 -1
  521. package/dist/nile-icon/icons/svg/workflow-orchestration.esm.js +1 -1
  522. package/dist/nile-icon/icons/svg/workflow-section.cjs.js +1 -1
  523. package/dist/nile-icon/icons/svg/workflow-section.cjs.js.map +1 -1
  524. package/dist/nile-icon/icons/svg/workflow-section.esm.js +1 -1
  525. package/dist/nile-icon/icons/svg/workflow-solid.cjs.js +1 -1
  526. package/dist/nile-icon/icons/svg/workflow-solid.cjs.js.map +1 -1
  527. package/dist/nile-icon/icons/svg/workflow-solid.esm.js +1 -1
  528. package/dist/nile-icon/icons/svg/x-circle.cjs.js +1 -1
  529. package/dist/nile-icon/icons/svg/x-circle.cjs.js.map +1 -1
  530. package/dist/nile-icon/icons/svg/x-circle.esm.js +1 -1
  531. package/dist/nile-icon/index.cjs.js +1 -1
  532. package/dist/nile-icon/index.cjs.js.map +1 -1
  533. package/dist/nile-icon/index.esm.js +5 -5
  534. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  535. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  536. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  537. package/dist/nile-icon-button/index.cjs.js +1 -1
  538. package/dist/nile-icon-button/index.esm.js +1 -1
  539. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  540. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  541. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  542. package/dist/nile-input/index.cjs.js +1 -1
  543. package/dist/nile-input/index.esm.js +1 -1
  544. package/dist/nile-input/nile-input.cjs.js +1 -1
  545. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  546. package/dist/nile-input/nile-input.esm.js +1 -1
  547. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  548. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  549. package/dist/nile-input/nile-input.test.esm.js +1 -1
  550. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  551. package/dist/nile-link/nile-link.test.esm.js +1 -1
  552. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  553. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  554. package/dist/nile-menu-item/index.cjs.js +1 -1
  555. package/dist/nile-menu-item/index.esm.js +1 -1
  556. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  557. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  558. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  559. package/dist/nile-option/index.cjs.js +1 -1
  560. package/dist/nile-option/index.esm.js +1 -1
  561. package/dist/nile-option/nile-option.cjs.js +1 -1
  562. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  563. package/dist/nile-option/nile-option.esm.js +1 -1
  564. package/dist/nile-popover/index.cjs.js +1 -1
  565. package/dist/nile-popover/index.esm.js +1 -1
  566. package/dist/nile-popover/nile-popover.cjs.js +3 -11
  567. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  568. package/dist/nile-popover/nile-popover.esm.js +7 -13
  569. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  570. package/dist/nile-popover/nile-popover.test.cjs.js.map +1 -1
  571. package/dist/nile-popover/nile-popover.test.esm.js +3 -3
  572. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  573. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  574. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  575. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  576. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  577. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  578. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  579. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  580. package/dist/nile-select/index.cjs.js +1 -1
  581. package/dist/nile-select/index.esm.js +1 -1
  582. package/dist/nile-select/nile-select.cjs.js +1 -1
  583. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  584. package/dist/nile-select/nile-select.esm.js +10 -10
  585. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  586. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  587. package/dist/nile-select/nile-select.test.esm.js +1 -1
  588. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  589. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  590. package/dist/nile-tab/index.cjs.js +1 -1
  591. package/dist/nile-tab/index.esm.js +1 -1
  592. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  593. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  594. package/dist/nile-tab/nile-tab.esm.js +1 -1
  595. package/dist/nile-tab-group/index.cjs.js +1 -1
  596. package/dist/nile-tab-group/index.esm.js +1 -1
  597. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  598. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  599. package/dist/nile-tab-group/nile-tab-group.esm.js +2 -2
  600. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  601. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
  602. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  603. package/dist/nile-tag/index.cjs.js +1 -1
  604. package/dist/nile-tag/index.esm.js +1 -1
  605. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  606. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  607. package/dist/nile-tag/nile-tag.esm.js +2 -2
  608. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  609. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  610. package/dist/nile-toast/index.cjs.js +1 -1
  611. package/dist/nile-toast/index.esm.js +1 -1
  612. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  613. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  614. package/dist/nile-toast/nile-toast.esm.js +2 -2
  615. package/dist/nile-tree/index.cjs.js +1 -1
  616. package/dist/nile-tree/index.esm.js +1 -1
  617. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  618. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  619. package/dist/nile-tree/nile-tree.esm.js +1 -1
  620. package/dist/nile-tree-item/index.cjs.js +1 -1
  621. package/dist/nile-tree-item/index.esm.js +1 -1
  622. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  623. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  624. package/dist/nile-tree-item/nile-tree-item.esm.js +2 -2
  625. package/dist/src/index.d.ts +2 -0
  626. package/dist/src/index.js +2 -0
  627. package/dist/src/index.js.map +1 -1
  628. package/dist/src/nile-file-preview/index.d.ts +1 -0
  629. package/dist/src/nile-file-preview/index.js +2 -0
  630. package/dist/src/nile-file-preview/index.js.map +1 -0
  631. package/dist/src/nile-file-preview/nile-file-preview.css.d.ts +12 -0
  632. package/dist/src/nile-file-preview/nile-file-preview.css.js +533 -0
  633. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -0
  634. package/dist/src/nile-file-preview/nile-file-preview.d.ts +48 -0
  635. package/dist/src/nile-file-preview/nile-file-preview.js +149 -0
  636. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -0
  637. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +11 -0
  638. package/dist/src/nile-file-preview/nile-file-preview.template.js +144 -0
  639. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -0
  640. package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +7 -0
  641. package/dist/src/nile-file-preview/nile-file-preview.test.js +30 -0
  642. package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -0
  643. package/dist/src/nile-file-preview/types/file-preview.enums.d.ts +23 -0
  644. package/dist/src/nile-file-preview/types/file-preview.enums.js +28 -0
  645. package/dist/src/nile-file-preview/types/file-preview.enums.js.map +1 -0
  646. package/dist/src/nile-file-preview/types/file-preview.interface.d.ts +4 -0
  647. package/dist/src/nile-file-preview/types/file-preview.interface.js +2 -0
  648. package/dist/src/nile-file-preview/types/file-preview.interface.js.map +1 -0
  649. package/dist/src/nile-file-preview/types/index.d.ts +2 -0
  650. package/dist/src/nile-file-preview/types/index.js +3 -0
  651. package/dist/src/nile-file-preview/types/index.js.map +1 -0
  652. package/dist/src/nile-file-preview/utils/file-preview.util.d.ts +3 -0
  653. package/dist/src/nile-file-preview/utils/file-preview.util.js +29 -0
  654. package/dist/src/nile-file-preview/utils/file-preview.util.js.map +1 -0
  655. package/dist/src/nile-file-preview/utils/index.d.ts +1 -0
  656. package/dist/src/nile-file-preview/utils/index.js +2 -0
  657. package/dist/src/nile-file-preview/utils/index.js.map +1 -0
  658. package/dist/src/nile-file-upload/index.d.ts +1 -0
  659. package/dist/src/nile-file-upload/index.js +2 -0
  660. package/dist/src/nile-file-upload/index.js.map +1 -0
  661. package/dist/src/nile-file-upload/nile-file-upload.css.d.ts +12 -0
  662. package/dist/src/nile-file-upload/nile-file-upload.css.js +547 -0
  663. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -0
  664. package/dist/src/nile-file-upload/nile-file-upload.d.ts +45 -0
  665. package/dist/src/nile-file-upload/nile-file-upload.js +148 -0
  666. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -0
  667. package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +11 -0
  668. package/dist/src/nile-file-upload/nile-file-upload.template.js +163 -0
  669. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -0
  670. package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +7 -0
  671. package/dist/src/nile-file-upload/nile-file-upload.test.js +30 -0
  672. package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -0
  673. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +28 -0
  674. package/dist/src/nile-file-upload/types/file-upload.enums.js +35 -0
  675. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -0
  676. package/dist/src/nile-file-upload/types/file-upload.type.d.ts +4 -0
  677. package/dist/src/nile-file-upload/types/file-upload.type.js +2 -0
  678. package/dist/src/nile-file-upload/types/file-upload.type.js.map +1 -0
  679. package/dist/src/nile-file-upload/types/index.d.ts +2 -0
  680. package/dist/src/nile-file-upload/types/index.js +3 -0
  681. package/dist/src/nile-file-upload/types/index.js.map +1 -0
  682. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +19 -0
  683. package/dist/src/nile-file-upload/utils/drag-drop.util.js +77 -0
  684. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -0
  685. package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +9 -0
  686. package/dist/src/nile-file-upload/utils/file-validation.util.js +58 -0
  687. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -0
  688. package/dist/src/nile-icon/aliasmap.d.ts +1 -0
  689. package/dist/src/nile-icon/aliasmap.js +131 -0
  690. package/dist/src/nile-icon/aliasmap.js.map +1 -0
  691. package/dist/src/nile-icon/icons/svg/document-new.d.ts +5 -0
  692. package/dist/src/nile-icon/icons/svg/document-new.js +5 -0
  693. package/dist/src/nile-icon/icons/svg/document-new.js.map +1 -0
  694. package/dist/src/nile-icon/icons/svg/if-else-new.d.ts +5 -0
  695. package/dist/src/nile-icon/icons/svg/if-else-new.js +5 -0
  696. package/dist/src/nile-icon/icons/svg/if-else-new.js.map +1 -0
  697. package/dist/src/nile-icon/icons/svg/ifelsenew.d.ts +5 -0
  698. package/dist/src/nile-icon/icons/svg/ifelsenew.js +5 -0
  699. package/dist/src/nile-icon/icons/svg/ifelsenew.js.map +1 -0
  700. package/dist/src/nile-icon/icons/svg/index.d.ts +4 -124
  701. package/dist/src/nile-icon/icons/svg/index.js +4 -124
  702. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  703. package/dist/src/nile-icon/icons/svg/new-calendar.d.ts +5 -0
  704. package/dist/src/nile-icon/icons/svg/new-calendar.js +5 -0
  705. package/dist/src/nile-icon/icons/svg/new-calendar.js.map +1 -0
  706. package/dist/src/nile-icon/icons/svg/revocation-cycle.d.ts +5 -0
  707. package/dist/src/nile-icon/icons/svg/revocation-cycle.js +5 -0
  708. package/dist/src/nile-icon/icons/svg/revocation-cycle.js.map +1 -0
  709. package/dist/src/nile-icon/index.js +6 -5
  710. package/dist/src/nile-icon/index.js.map +1 -1
  711. package/dist/tsconfig.tsbuildinfo +1 -1
  712. package/package.json +1 -1
  713. package/src/index.ts +3 -1
  714. package/src/nile-file-preview/index.ts +1 -0
  715. package/src/nile-file-preview/nile-file-preview.css.ts +535 -0
  716. package/src/nile-file-preview/nile-file-preview.template.ts +174 -0
  717. package/src/nile-file-preview/nile-file-preview.test.ts +38 -0
  718. package/src/nile-file-preview/nile-file-preview.ts +146 -0
  719. package/src/nile-file-preview/types/file-preview.enums.ts +26 -0
  720. package/src/nile-file-preview/types/file-preview.interface.ts +4 -0
  721. package/src/nile-file-preview/types/index.ts +2 -0
  722. package/src/nile-file-preview/utils/file-preview.util.ts +34 -0
  723. package/src/nile-file-preview/utils/index.ts +1 -0
  724. package/src/nile-file-upload/index.ts +1 -0
  725. package/src/nile-file-upload/nile-file-upload.css.ts +549 -0
  726. package/src/nile-file-upload/nile-file-upload.template.ts +194 -0
  727. package/src/nile-file-upload/nile-file-upload.test.ts +38 -0
  728. package/src/nile-file-upload/nile-file-upload.ts +138 -0
  729. package/src/nile-file-upload/types/file-upload.enums.ts +32 -0
  730. package/src/nile-file-upload/types/file-upload.type.ts +5 -0
  731. package/src/nile-file-upload/types/index.ts +2 -0
  732. package/src/nile-file-upload/utils/drag-drop.util.ts +95 -0
  733. package/src/nile-file-upload/utils/file-validation.util.ts +80 -0
  734. package/src/nile-icon/aliasmap.ts +131 -0
  735. package/src/nile-icon/icons/svg/document-new.ts +5 -0
  736. package/src/nile-icon/icons/svg/if-else-new.ts +5 -0
  737. package/src/nile-icon/icons/svg/ifelsenew.ts +5 -0
  738. package/src/nile-icon/icons/svg/index.ts +5 -125
  739. package/src/nile-icon/icons/svg/new-calendar.ts +5 -0
  740. package/src/nile-icon/icons/svg/revocation-cycle.ts +5 -0
  741. package/src/nile-icon/index.ts +8 -9
  742. package/vscode-html-custom-data.json +134 -0
@@ -0,0 +1,155 @@
1
+ import{html as i}from"lit";import"./nile-file-upload.css.esm.js";import{T as e}from"../lit-html-39a6718c.esm.js";
2
+ /**
3
+ * @license
4
+ * Copyright 2017 Google LLC
5
+ * SPDX-License-Identifier: BSD-3-Clause
6
+ */const n=1;class t{constructor(i){}get _$AU(){return this._$AM._$AU}_$AT(i,e,n){this._$Ct=i,this._$AM=e,this._$Ci=n}_$AS(i,e){return this.update(i,e)}update(i,e){return this.render(...e)}}
7
+ /**
8
+ * @license
9
+ * Copyright 2018 Google LLC
10
+ * SPDX-License-Identifier: BSD-3-Clause
11
+ */const l=(i=>(...e)=>({_$litDirective$:i,values:e}))(class extends t{constructor(i){if(super(i),i.type!==n||"class"!==i.name||i.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(i){return" "+Object.keys(i).filter((e=>i[e])).join(" ")+" "}update(i,[n]){if(void 0===this.st){this.st=new Set,void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter((i=>""!==i))));for(const i in n)n[i]&&!this.nt?.has(i)&&this.st.add(i);return this.render(n)}const t=i.element.classList;for(const i of this.st)i in n||(t.remove(i),this.st.delete(i));for(const i in n){const e=!!n[i];e===this.st.has(i)||this.nt?.has(i)||(e?(t.add(i),this.st.add(i)):(t.remove(i),this.st.delete(i)))}return e}});let s;const o=i=>{s=i},a=(e,n,t,o,a)=>i`
12
+ <div>
13
+ <div class=${l({"hover-border":"hover"===a,"horizontal-div":!0})}>
14
+ <div class="inner-div">
15
+ <slot name="icon">
16
+ <nile-icon name="upload" size="24"></nile-icon>
17
+ </slot>
18
+ <div class="content">
19
+ <slot name="title">
20
+ <h4>${n}</h4>
21
+ </slot>
22
+ <slot name="subtitle">
23
+ <p>${t}</p>
24
+ </slot>
25
+ </div>
26
+ </div>
27
+ <input
28
+ type="file"
29
+ @change=${i=>s.handleFiles(i)}
30
+ multiple
31
+ />
32
+ <nile-button @click=${e} variant="tertiary">
33
+ Browse File
34
+ </nile-button>
35
+ </div>
36
+ ${o?i`<div class="upload-error">
37
+ <nile-icon name="warning" size="12" color="red"></nile-icon>
38
+ <span>${o}</span>
39
+ </div>`:i``}
40
+ </div>
41
+ `,r=(e,n,t)=>i`
42
+ <div
43
+ class="horizontal-div disabled"
44
+ >
45
+ <div class="inner-div">
46
+ <slot name="icon">
47
+ <nile-icon name="upload" size="24"></nile-icon>
48
+ </slot>
49
+ <div class="content">
50
+ <slot name="title">
51
+ <h4>${n}</h4>
52
+ </slot>
53
+ <slot name="subtitle">
54
+ <p>${t}</p>
55
+ </slot>
56
+ </div>
57
+ </div>
58
+ <input
59
+ type="file"
60
+ @change=${i=>s.handleFiles(i)}
61
+ multiple
62
+ />
63
+ <nile-button @click=${e} variant="tertiary">
64
+ Browse File
65
+ </nile-button>
66
+ </div>
67
+ `,c=()=>i`
68
+ <div class="horizontal-div dragging">
69
+ <div class="icons-container">
70
+ <nile-icon
71
+ color="var(--nile-colors-blue-500)"
72
+ name="general"
73
+ size="20"
74
+ class="general-icon"
75
+ ></nile-icon>
76
+ <nile-icon
77
+ color="var(--nile-colors-blue-500)"
78
+ name="image"
79
+ size="24"
80
+ class="image-icon"
81
+ ></nile-icon>
82
+ </div>
83
+ <p>Drop files here to upload</p>
84
+ </div>
85
+ `,d=(e,n,t,o,a)=>i`
86
+ <div>
87
+ <div class=${l({"hover-border":"hover"===a,"vertical-div":!0})}>
88
+ <slot name="icon">
89
+ <nile-icon name="upload" size="24"></nile-icon>
90
+ </slot>
91
+ <div class="content-container">
92
+ <slot name="title">
93
+ <h4>${n}</h4>
94
+ </slot>
95
+ <slot name="title">
96
+ <p>${t}</p>
97
+ </slot>
98
+ </div>
99
+ <input
100
+ type="file"
101
+ @change=${i=>s.handleFiles(i)}
102
+ multiple
103
+ />
104
+ <nile-button @click=${e} variant="tertiary">
105
+ Browse File
106
+ </nile-button>
107
+ </div>
108
+ ${o?i`<div class="upload-error">
109
+ <nile-icon name="warning" size="12" color="red"></nile-icon>
110
+ <span>${o}</span>
111
+ </div>`:i``}
112
+ </div>
113
+ `,v=(e,n,t)=>i`
114
+ <div
115
+ class="vertical-deafult vertical-div disable"
116
+ >
117
+ <slot name="icon">
118
+ <nile-icon name="upload" size="24"></nile-icon>
119
+ </slot>
120
+ <div class="content-container">
121
+ <slot name="title">
122
+ <h4>${n}</h4>
123
+ </slot>
124
+ <slot name="title">
125
+ <p>${t}o</p>
126
+ </slot>
127
+ </div>
128
+ <input
129
+ type="file"
130
+ @change=${i=>s.handleFiles(i)}
131
+ multiple
132
+ />
133
+ <nile-button @click=${e} variant="tertiary">
134
+ Browse File
135
+ </nile-button>
136
+ </div>
137
+ `,p=()=>i`
138
+ <div class="vertical-div vertical-drag">
139
+ <div class="icons-container">
140
+ <nile-icon
141
+ color="var(--nile-colors-blue-500)"
142
+ name="general"
143
+ size="20"
144
+ class="general-icon"
145
+ ></nile-icon>
146
+ <nile-icon
147
+ color="var(--nile-colors-blue-500)"
148
+ name="image"
149
+ size="24"
150
+ class="image-icon"
151
+ ></nile-icon>
152
+ </div>
153
+ <p>Drop files here to upload</p>
154
+ </div>
155
+ `;export{a,c as b,r as c,d,p as e,v as f,o as g};
@@ -0,0 +1,2 @@
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-948ae33c.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-file-upload.cjs.js","tslib","./nile-file-upload.css.cjs.js","../internal/nile-element.cjs.js","./utils/drag-drop.util.cjs.js","./types/file-upload.enums.cjs.js","./nile-file-upload.template.cjs.js","../lit-html-9b3af046.cjs.js","lit/decorators.js","./utils/file-validation.util.cjs.js"],function(_export,_context){"use strict";var t,i,e,l,_templateObject,_templateObject2;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture002CjsJs){t=_fixture002CjsJs.f;i=_fixture002CjsJs.a;e=_fixture002CjsJs.h;},function(_litStaticHtmlJs){l=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFileUploadCjsJs){},function(_tslib){},function(_nileFileUploadCssCjsJs){},function(_internalNileElementCjsJs){},function(_utilsDragDropUtilCjsJs){},function(_typesFileUploadEnumsCjsJs){},function(_nileFileUploadTemplateCjsJs){},function(_litHtml001CjsJs){},function(_litDecoratorsJs){},function(_utilsFileValidationUtilCjsJs){}],execute:function execute(){describe("<nile-file-upload>",function(){var s;beforeEach(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-file-upload></nile-file-upload>"]))));case 2:s=_context2.sent;case 3:case"end":return _context2.stop();}},_callee);}))),it("passes accessibility test",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(s).to.be.accessible();case 2:case"end":return _context3.stop();}},_callee2);}))),it("renders with the correct tag name",function(){i(s.tagName.toLowerCase()).to.equal("nile-file-upload");}),it("renders with slot content when provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _r$0$textContent;var o,a,r;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o="Test Content";_context4.next=3;return t(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-file-upload>","</nile-file-upload>"])),o));case 3:s=_context4.sent;a=s.shadowRoot.querySelector("slot");e.exists(a,"Slot should exist");r=a.assignedNodes({flatten:!0});i(r.length).to.be.greaterThan(0),i((_r$0$textContent=r[0].textContent)===null||_r$0$textContent===void 0?void 0:_r$0$textContent.trim()).to.equal(o);case 8:case"end":return _context4.stop();}},_callee3);})));});}};});
2
+ //# sourceMappingURL=nile-file-upload.test.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nile-file-upload.test.cjs.js","sources":["../../../src/nile-file-upload/nile-file-upload.test.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n \nimport { fixture, assert, expect, html } from '@open-wc/testing';\nimport './nile-file-upload'; // Just import to register the element\n\ndescribe('<nile-file-upload>', () => {\n let element: HTMLElement;\n\n beforeEach(async () => {\n element = await fixture(html`<nile-file-upload></nile-file-upload>`);\n });\n\n it('passes accessibility test', async () => {\n await expect(element).to.be.accessible();\n });\n\n it('renders with the correct tag name', () => {\n expect(element.tagName.toLowerCase()).to.equal('nile-file-upload');\n });\n\n it('renders with slot content when provided', async () => {\n const testContent = 'Test Content';\n element = await fixture(html`<nile-file-upload>${testContent}</nile-file-upload>`);\n \n const slot = (element.shadowRoot!.querySelector('slot') as HTMLSlotElement);\n assert.exists(slot, 'Slot should exist');\n\n const assignedNodes = slot.assignedNodes({ flatten: true });\n expect(assignedNodes.length).to.be.greaterThan(0);\n expect(assignedNodes[0].textContent?.trim()).to.equal(testContent);\n });\n});"],"names":["describe","element","beforeEach","async","fixture","html","_templateObject","_taggedTemplateLiteral","it","expect","to","be","accessible","_context3","stop","_callee2","tagName","toLowerCase","equal","_asyncToGenerator","_regeneratorRuntime","mark","testContent","_templateObject2","slot","shadowRoot","querySelector","assert","exists","assignedNodes","flatten","length","greaterThan","textContent","trim","_context4","_callee3"],"mappings":"4iTAWAA,SAAS,oBAAsB,CAAA,UAAA,CAC7B,GAAIC,CAAAA,CAEJC,CAAAA,UAAAA,cAAAA,iBAAAA,cAAAA,mBAAAA,GAAAA,IAAAA,CAAWC,SAAAA,QAAAA,SAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,SAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAAAA,SAAAA,CAAAA,IAAAA,SACOC,CAAAA,CAAAA,CAAQC,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,6CAAwC,CAAA,QAApEN,CAAgBG,CAAAA,SAAAA,CAAAA,IAAAA,yBAAAA,SAAAA,CAAAA,IAAAA,MAAAA,OAAAA,GAAoD,EAAA,CAAA,CAGtEI,GAAG,2BAA6BL,cAAAA,iBAAAA,cAAAA,mBAAAA,GAAAA,IAAAA,CAAAA,SAAAA,SAAAA,SAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,UAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SAAAA,SAAAA,CAAAA,IAAAA,SACxBM,CAAAA,EAAOR,CAASS,CAAAA,CAAAA,EAAAA,CAAGC,GAAGC,UAAY,CAAA,CAAA,yBAAAC,SAAA,CAAAC,IAAA,MAAAC,QAAA,GAAA,EAAA,CAAA,CAG1CP,GAAG,mCAAqC,CAAA,UAAA,CACtCC,CAAOR,CAAAA,CAAAA,CAAQe,OAAQC,CAAAA,WAAAA,CAAAA,CAAAA,CAAAA,CAAeP,GAAGQ,KAAM,CAAA,kBAAA,CAAmB,IAGpEV,EAAG,CAAA,yCAAA,cAAAW,iBAAA,cAAAC,mBAAA,GAAAC,IAAA,CAA2ClB,SAAAA,SAAAA,MAAAA,gBAAAA,KAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,QAAAA,mBAAAA,GAAAA,IAAAA,UAAAA,UAAAA,SAAAA,iBAAAA,SAAAA,CAAAA,IAAAA,CAAAA,SAAAA,CAAAA,IAAAA,SACtCmB,CAAAA,CAAc,sCACJlB,CAAAA,CAAAA,CAAQC,CAAI,CAAAkB,gBAAA,GAAAA,gBAAA,CAAAhB,sBAAA,gDAAqBe,CAAAA,CAAAA,CAAAA,QAAjDrB,CAAgBG,CAAAA,SAAAA,CAAAA,IAAAA,CAEVoB,CAAQvB,CAAAA,CAAAA,CAAQwB,WAAYC,aAAc,CAAA,MAAA,CAAA,CAChDC,EAAOC,MAAOJ,CAAAA,CAAAA,CAAM,qBAEdK,CAAAA,CAAgBL,EAAKK,aAAc,CAAA,CAAEC,SAAS,CACpDrB,CAAAA,CAAAA,CAAAA,CAAAA,CAAOoB,EAAcE,MAAQrB,CAAAA,CAAAA,EAAAA,CAAGC,GAAGqB,WAAY,CAAA,CAAA,CAAA,CAC/CvB,oBAAOoB,CAAc,CAAA,CAAA,CAAA,CAAGI,sDAAjBJ,gBAAAA,CAA8BK,IAAQxB,CAAAA,CAAAA,CAAAA,CAAAA,EAAAA,CAAGQ,KAAMI,CAAAA,CAAAA,CAAY,yBAAAa,SAAA,CAAArB,IAAA,MAAAsB,QAAA,GAClE,EAAA,CAAA,EAAA,CAAA,CAAA"}
@@ -0,0 +1 @@
1
+ import{f as t,a as i,h as e}from"../fixture-76051ef1.esm.js";import{html as l}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-file-upload.esm.js";import"tslib";import"./nile-file-upload.css.esm.js";import"../internal/nile-element.esm.js";import"./utils/drag-drop.util.esm.js";import"./types/file-upload.enums.esm.js";import"./nile-file-upload.template.esm.js";import"../lit-html-39a6718c.esm.js";import"lit/decorators.js";import"./utils/file-validation.util.esm.js";describe("<nile-file-upload>",(()=>{let s;beforeEach((async()=>{s=await t(l`<nile-file-upload></nile-file-upload>`)})),it("passes accessibility test",(async()=>{await i(s).to.be.accessible()})),it("renders with the correct tag name",(()=>{i(s.tagName.toLowerCase()).to.equal("nile-file-upload")})),it("renders with slot content when provided",(async()=>{const o="Test Content";s=await t(l`<nile-file-upload>${o}</nile-file-upload>`);const a=s.shadowRoot.querySelector("slot");e.exists(a,"Slot should exist");const r=a.assignedNodes({flatten:!0});i(r.length).to.be.greaterThan(0),i(r[0].textContent?.trim()).to.equal(o)}))}));
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";var e,i,l,a,o;_export({F:void 0,c:void 0,a:void 0,d:void 0,b:void 0});return{setters:[],execute:function execute(){!function(e){e.DEFAULT="default",e.DISABLED="disabled",e.HOVER="hover",e.DRAG="drag";}(e||_export("F",e={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical";}(i||_export("c",i={})),function(e){e.INVALID_FORMAT="Invalid file format! Upload valid file.",e.SIZE_LIMIT="File exceeds size limit! Upload smaller size.",e.MULTIPLE_NOT_ALLOWED="Please Upload Single File!",e.DUPLICATES_NOT_ALLOWED="Duplicate Files Are Not Allowed!";}(l||_export("a",l={})),function(e){e.NILE_INIT="nile-init",e.NILE_BROWSE="nile-browse",e.NILE_DRAG="nile-drag",e.NILE_CHANGE="nile-change",e.NILE_DESTROY="nile-destroy";}(a||_export("d",a={})),function(e){e.TITLE="Drag and drop to upload",e.SUBTITLE="PNG, JPG or SVG (upto 1MB) | 1:1 ratio",e.ERROR_MESSAGE="Invalid File Format.";}(o||_export("b",o={}));}};});
2
+ //# sourceMappingURL=file-upload.enums.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload.enums.cjs.js","sources":["../../../../src/nile-file-upload/types/file-upload.enums.ts"],"sourcesContent":["export enum FileUploadState {\n DEFAULT = 'default',\n DISABLED = 'disabled',\n HOVER = 'hover',\n DRAG = 'drag'\n}\n\nexport enum FileUploadVariant {\n HORIZONTAL = 'horizontal',\n VERTICAL = 'vertical'\n}\n\nexport enum FileUploadError {\n INVALID_FORMAT = \"Invalid file format! Upload valid file.\",\n SIZE_LIMIT = \"File exceeds size limit! Upload smaller size.\",\n MULTIPLE_NOT_ALLOWED = \"Please Upload Single File!\",\n DUPLICATES_NOT_ALLOWED = \"Duplicate Files Are Not Allowed!\"\n}\n\nexport enum FileUploadEvent {\n NILE_INIT = \"nile-init\",\n NILE_BROWSE = \"nile-browse\",\n NILE_DRAG = \"nile-drag\",\n NILE_CHANGE = \"nile-change\",\n NILE_DESTROY = \"nile-destroy\"\n}\n\nexport enum FileUploadDefaults {\n TITLE = 'Drag and drop to upload',\n SUBTITLE = 'PNG, JPG or SVG (upto 1MB) | 1:1 ratio',\n ERROR_MESSAGE = 'Invalid File Format.',\n};"],"names":["FileUploadState","DEFAULT","DISABLED","HOVER","DRAG","FileUploadVariant","HORIZONTAL","VERTICAL","FileUploadError","INVALID_FORMAT","SIZE_LIMIT","MULTIPLE_NOT_ALLOWED","DUPLICATES_NOT_ALLOWED","FileUploadEvent","NILE_INIT","NILE_BROWSE","NILE_DRAG","NILE_CHANGE","NILE_DESTROY","FileUploadDefaults","TITLE","SUBTITLE","ERROR_MESSAGE"],"mappings":"+KAAA,SAAYA,CAAAA,CAAAA,CACVA,CAAA,CAAAC,OAAA,CAAA,SACAD,CAAAA,CAAAA,CAAAE,SAAA,UACAF,CAAAA,CAAAA,CAAAG,MAAA,OACAH,CAAAA,CAAAA,CAAAI,KAAA,MACD,EALD,CAAYJ,CAAAA,EAAAA,OAAAA,KAAAA,CAKX,CAAA,CAAA,IAED,SAAYK,CAAAA,CAAAA,CACVA,EAAAC,UAAA,CAAA,YAAA,CACAD,EAAAE,QAAA,CAAA,UACD,EAHD,CAAYF,CAAAA,EAAAA,OAAAA,KAAAA,CAAAA,CAGX,CAAA,CAED,CAAA,CAAA,CAAA,SAAYG,CACVA,CAAAA,CAAAA,CAAAA,CAAAC,cAAA,CAAA,yCAAA,CACAD,EAAAE,UAAA,CAAA,+CAAA,CACAF,CAAA,CAAAG,oBAAA,CAAA,4BACAH,CAAAA,CAAAA,CAAAI,uBAAA,kCACD,EALD,CAAYJ,CAAAA,EAAAA,OAAAA,KAAAA,CAAAA,CAKX,CAAA,CAED,CAAA,CAAA,CAAA,SAAYK,CACVA,CAAAA,CAAAA,CAAAA,CAAAC,SAAA,CAAA,WAAA,CACAD,EAAAE,WAAA,CAAA,aAAA,CACAF,EAAAG,SAAA,CAAA,WAAA,CACAH,EAAAI,WAAA,CAAA,aAAA,CACAJ,CAAA,CAAAK,YAAA,CAAA,cACD,EAND,CAAYL,CAAAA,EAAAA,OAAAA,KAAAA,CAAAA,CAMX,CAAA,CAED,CAAA,CAAA,CAAA,SAAYM,GACVA,CAAA,CAAAC,KAAA,CAAA,yBACAD,CAAAA,CAAAA,CAAAE,QAAA,CAAA,wCAAA,CACAF,EAAAG,aAAA,CAAA,sBACD,EAJD,CAAYH,CAAAA,EAAAA,OAAAA,KAAAA,CAAAA,CAIX,CAAA"}
@@ -0,0 +1 @@
1
+ var e,i,l,a,o;!function(e){e.DEFAULT="default",e.DISABLED="disabled",e.HOVER="hover",e.DRAG="drag"}(e||(e={})),function(e){e.HORIZONTAL="horizontal",e.VERTICAL="vertical"}(i||(i={})),function(e){e.INVALID_FORMAT="Invalid file format! Upload valid file.",e.SIZE_LIMIT="File exceeds size limit! Upload smaller size.",e.MULTIPLE_NOT_ALLOWED="Please Upload Single File!",e.DUPLICATES_NOT_ALLOWED="Duplicate Files Are Not Allowed!"}(l||(l={})),function(e){e.NILE_INIT="nile-init",e.NILE_BROWSE="nile-browse",e.NILE_DRAG="nile-drag",e.NILE_CHANGE="nile-change",e.NILE_DESTROY="nile-destroy"}(a||(a={})),function(e){e.TITLE="Drag and drop to upload",e.SUBTITLE="PNG, JPG or SVG (upto 1MB) | 1:1 ratio",e.ERROR_MESSAGE="Invalid File Format."}(o||(o={}));export{e as F,l as a,o as b,i as c,a as d};
@@ -0,0 +1,2 @@
1
+ System.register([],function(_export,_context){"use strict";return{setters:[],execute:function execute(){}};});
2
+ //# sourceMappingURL=file-upload.type.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-upload.type.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ System.register(["./file-upload.enums.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_fileUploadEnumsCjsJs){_export({FileUploadDefaults:_fileUploadEnumsCjsJs.b,FileUploadError:_fileUploadEnumsCjsJs.a,FileUploadEvent:_fileUploadEnumsCjsJs.d,FileUploadState:_fileUploadEnumsCjsJs.F,FileUploadVariant:_fileUploadEnumsCjsJs.c});}],execute:function execute(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export{b as FileUploadDefaults,a as FileUploadError,d as FileUploadEvent,F as FileUploadState,c as FileUploadVariant}from"./file-upload.enums.esm.js";
@@ -0,0 +1,2 @@
1
+ System.register(["../types/file-upload.enums.cjs.js"],function(_export,_context){"use strict";var t,s;function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}return{setters:[function(_typesFileUploadEnumsCjsJs){t=_typesFileUploadEnumsCjsJs.F;}],execute:function execute(){_export("D",s=/*#__PURE__*/function(){function s(){_classCallCheck(this,s);this.currentState=t.DEFAULT;}return _createClass(s,[{key:"updateState",value:function updateState(t){this.currentState=t;}},{key:"onFileDrop",value:function onFileDrop(t){this.fileDropCallback=t;}},{key:"onStateChange",value:function onStateChange(t){this.stateChangeCallback=t;}},{key:"setState",value:function setState(_s){var _this$stateChangeCall;this.currentState!==t.DISABLED&&(this.currentState=_s,(_this$stateChangeCall=this.stateChangeCallback)===null||_this$stateChangeCall===void 0?void 0:_this$stateChangeCall.call(this,_s));}},{key:"dragEnter",value:function dragEnter(_s2){this.currentState!==t.DISABLED&&(_s2.preventDefault(),this.setState(t.DRAG));}},{key:"dragLeave",value:function dragLeave(_s3){this.currentState!==t.DISABLED&&(_s3.preventDefault(),this.setState(t.DEFAULT));}},{key:"dragOver",value:function dragOver(_s4){this.currentState!==t.DISABLED&&_s4.preventDefault();}},{key:"drop",value:function drop(_s5){this.currentState!==t.DISABLED&&(_s5.preventDefault(),_s5.stopPropagation(),this.setState(t.DEFAULT),this.handleFiles(_s5));}},{key:"handleDocumentDrop",value:function handleDocumentDrop(_s6){this.currentState!==t.DISABLED&&(_s6.preventDefault(),_s6.stopPropagation(),this.setState(t.DEFAULT));}},{key:"preventDragOver",value:function preventDragOver(t){t.preventDefault();}},{key:"preventDrop",value:function preventDrop(t){t.preventDefault(),t.stopPropagation();}},{key:"handleFiles",value:function handleFiles(_s7){var _s7$preventDefault;if(this.currentState===t.DISABLED)return;(_s7$preventDefault=_s7.preventDefault)===null||_s7$preventDefault===void 0||_s7$preventDefault.call(_s7);var e=null;if("dataTransfer"in _s7&&_s7.dataTransfer&&(e=_s7.dataTransfer.files),!e&&_s7.target instanceof HTMLInputElement&&(e=_s7.target.files),e&&e.length>0){var _this$fileDropCallbac;var _t=Array.from(e);(_this$fileDropCallbac=this.fileDropCallback)===null||_this$fileDropCallbac===void 0||_this$fileDropCallbac.call(this,_t);}}}]);}());}};});
2
+ //# sourceMappingURL=drag-drop.util.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drag-drop.util.cjs.js","sources":["../../../../src/nile-file-upload/utils/drag-drop.util.ts"],"sourcesContent":["import { FileUploadState } from \"../types\";\n\nexport class DragHandler {\n private currentState: FileUploadState = FileUploadState.DEFAULT;\n\n private stateChangeCallback?: (state: FileUploadState) => void;\n private fileDropCallback?: (files: File[]) => void;\n\n constructor() {}\n\n public updateState(state: FileUploadState): void {\n this.currentState = state;\n }\n\n public onFileDrop(callback: (files: File[]) => void): void {\n this.fileDropCallback = callback;\n }\n\n public onStateChange(callback: (state: FileUploadState) => void): void {\n this.stateChangeCallback = callback;\n }\n\n private setState(state: FileUploadState): void {\n if (this.currentState === FileUploadState.DISABLED) return;\n\n this.currentState = state;\n this.stateChangeCallback?.(state);\n }\n\n public dragEnter(e: DragEvent): void {\n if (this.currentState === FileUploadState.DISABLED) return;\n\n e.preventDefault();\n this.setState(FileUploadState.DRAG);\n }\n\n public dragLeave(e: DragEvent): void {\n if (this.currentState === FileUploadState.DISABLED) return;\n\n e.preventDefault();\n this.setState(FileUploadState.DEFAULT);\n }\n\n public dragOver(e: DragEvent): void {\n if (this.currentState === FileUploadState.DISABLED) return;\n\n e.preventDefault();\n }\n\n public drop(e: DragEvent): void {\n if (this.currentState === FileUploadState.DISABLED) return;\n\n e.preventDefault();\n e.stopPropagation();\n this.setState(FileUploadState.DEFAULT);\n this.handleFiles(e);\n }\n\n public handleDocumentDrop(e: DragEvent): void {\n if (this.currentState === FileUploadState.DISABLED) return;\n\n e.preventDefault();\n e.stopPropagation();\n this.setState(FileUploadState.DEFAULT);\n }\n\n public preventDragOver(e: DragEvent): void {\n e.preventDefault();\n }\n\n public preventDrop(e: DragEvent): void {\n e.preventDefault();\n e.stopPropagation();\n }\n\n public handleFiles(event: Event | DragEvent): void {\n if (this.currentState === FileUploadState.DISABLED) return;\n\n event.preventDefault?.();\n let files: FileList | null = null;\n\n if ('dataTransfer' in event && event.dataTransfer) {\n files = event.dataTransfer.files;\n }\n\n if (!files && event.target instanceof HTMLInputElement) {\n files = event.target.files;\n }\n\n if (files && files.length > 0) {\n const newFiles = Array.from(files);\n this.fileDropCallback?.(newFiles);\n }\n }\n}\n"],"names":["DragHandler","s","this","currentState","FileUploadState","DEFAULT","_createClass","key","value","updateState","state","onFileDrop","callback","fileDropCallback","onStateChange","stateChangeCallback","setState","DISABLED","dragEnter","e","preventDefault","DRAG","dragLeave","dragOver","drop","stopPropagation","handleFiles","handleDocumentDrop","preventDragOver","preventDrop","event","_s7$preventDefault","files","dataTransfer","target","HTMLInputElement","length","_this$fileDropCallbac","newFiles","Array","from"],"mappings":"uzCAEaA,CAAAA,yBAMX,SAAAC,EAAA,CALQC,CAAAA,eAAAA,MAAAA,CAAAA,EAAAA,IAAAA,CAAAC,aAAgCC,CAAgBC,CAAAA,OAKxC,EAET,OAAAC,YAAA,CAAAL,CAAA,GAAAM,GAAA,eAAAC,KAAA,UAAAC,WAAAA,CAAYC,CACjBR,CAAAA,CAAAA,IAAAA,CAAKC,aAAeO,CACrB,EAEM,GAAAH,GAAA,cAAAC,KAAA,UAAAG,UAAAA,CAAWC,CAAAA,CAAAA,CAChBV,IAAKW,CAAAA,gBAAAA,CAAmBD,CACzB,EAEM,GAAAL,GAAA,iBAAAC,KAAA,UAAAM,aAAAA,CAAcF,CACnBV,CAAAA,CAAAA,IAAAA,CAAKa,oBAAsBH,CAC5B,EAEO,GAAAL,GAAA,YAAAC,KAAA,UAAAQ,QAAAA,CAASN,EAAAA,CAAAA,KAAAA,qBAAAA,CACXR,KAAKC,YAAiBC,GAAAA,CAAAA,CAAgBa,WAE1Cf,IAAKC,CAAAA,YAAAA,CAAeO,0BACpBR,IAAKa,CAAAA,mBAAAA,UAAAA,qBAAAA,iBAALb,qBAAAA,CAAAA,IAAAA,KAAKa,CAAsBL,EAC5B,CAAA,CAAA,EAEM,GAAAH,GAAA,aAAAC,KAAA,UAAAU,SAAAA,CAAUC,GAAAA,CAAAA,CACXjB,KAAKC,YAAiBC,GAAAA,CAAAA,CAAgBa,WAE1CE,GAAEC,CAAAA,cAAAA,CAAAA,CAAAA,CACFlB,IAAKc,CAAAA,QAAAA,CAASZ,EAAgBiB,IAC/B,CAAA,CAAA,EAEM,GAAAd,GAAA,aAAAC,KAAA,UAAAc,SAAAA,CAAUH,GAAAA,CAAAA,CACXjB,KAAKC,YAAiBC,GAAAA,CAAAA,CAAgBa,QAE1CE,GAAAA,GAAAA,CAAEC,iBACFlB,IAAKc,CAAAA,QAAAA,CAASZ,EAAgBC,OAC/B,CAAA,CAAA,EAEM,GAAAE,GAAA,YAAAC,KAAA,UAAAe,QAAAA,CAASJ,GAAAA,CAAAA,CACVjB,KAAKC,YAAiBC,GAAAA,CAAAA,CAAgBa,UAE1CE,GAAEC,CAAAA,cAAAA,CAAAA,CACH,EAEM,GAAAb,GAAA,QAAAC,KAAA,UAAAgB,IAAAA,CAAKL,KACNjB,IAAKC,CAAAA,YAAAA,GAAiBC,CAAgBa,CAAAA,QAAAA,GAE1CE,IAAEC,cACFD,CAAAA,CAAAA,CAAAA,GAAAA,CAAEM,kBACFvB,IAAKc,CAAAA,QAAAA,CAASZ,EAAgBC,OAC9BH,CAAAA,CAAAA,IAAAA,CAAKwB,WAAYP,CAAAA,GAAAA,CAAAA,CAClB,EAEM,GAAAZ,GAAA,sBAAAC,KAAA,UAAAmB,kBAAAA,CAAmBR,KACpBjB,IAAKC,CAAAA,YAAAA,GAAiBC,EAAgBa,QAE1CE,GAAAA,GAAAA,CAAEC,cACFD,CAAAA,CAAAA,CAAAA,GAAAA,CAAEM,kBACFvB,IAAKc,CAAAA,QAAAA,CAASZ,EAAgBC,OAC/B,CAAA,CAAA,EAEM,GAAAE,GAAA,mBAAAC,KAAA,UAAAoB,eAAAA,CAAgBT,CAAAA,CAAAA,CACrBA,EAAEC,cACH,CAAA,CAAA,EAEM,GAAAb,GAAA,eAAAC,KAAA,UAAAqB,WAAAA,CAAYV,CAAAA,CAAAA,CACjBA,EAAEC,cACFD,CAAAA,CAAAA,CAAAA,CAAAA,CAAEM,iBACH,EAEM,GAAAlB,GAAA,eAAAC,KAAA,UAAAkB,WAAAA,CAAYI,GAAAA,CAAAA,KAAAA,kBAAAA,CACjB,GAAI5B,IAAKC,CAAAA,YAAAA,GAAiBC,EAAgBa,QAAU,CAAA,OAEpDa,CAAAA,kBAAAA,CAAAA,IAAMV,cACN,UAAAW,kBAAA,WADAD,kBAAAA,CAAAA,IAAAA,CAAAA,GACA,CAAA,CAAA,GAAIE,CAAAA,EAAyB,IAU7B,CAAA,GARI,gBAAkBF,CAAAA,GAASA,EAAAA,GAAAA,CAAMG,eACnCD,CAAQF,CAAAA,GAAAA,CAAMG,aAAaD,KAGxBA,CAAAA,CAAAA,CAAAA,CAAAA,EAASF,GAAMI,CAAAA,MAAAA,WAAkBC,CAAAA,mBACpCH,CAAQF,CAAAA,GAAAA,CAAMI,OAAOF,KAGnBA,CAAAA,CAAAA,CAAAA,EAASA,EAAMI,MAAS,CAAA,CAAA,CAAG,KAAAC,qBAAA,CAC7B,GAAMC,CAAAA,EAAAA,CAAWC,MAAMC,IAAKR,CAAAA,CAAAA,CAAAA,CAC5B9B,CAAAA,qBAAAA,MAAKW,gBAAmByB,UAAAA,qBAAAA,WAAxBpC,qBAAAA,CAAAA,IAAAA,MAAwBoC,EAAAA,CACzB,EACF"}
@@ -0,0 +1 @@
1
+ import{F as t}from"../types/file-upload.enums.esm.js";class s{constructor(){this.currentState=t.DEFAULT}updateState(t){this.currentState=t}onFileDrop(t){this.fileDropCallback=t}onStateChange(t){this.stateChangeCallback=t}setState(s){this.currentState!==t.DISABLED&&(this.currentState=s,this.stateChangeCallback?.(s))}dragEnter(s){this.currentState!==t.DISABLED&&(s.preventDefault(),this.setState(t.DRAG))}dragLeave(s){this.currentState!==t.DISABLED&&(s.preventDefault(),this.setState(t.DEFAULT))}dragOver(s){this.currentState!==t.DISABLED&&s.preventDefault()}drop(s){this.currentState!==t.DISABLED&&(s.preventDefault(),s.stopPropagation(),this.setState(t.DEFAULT),this.handleFiles(s))}handleDocumentDrop(s){this.currentState!==t.DISABLED&&(s.preventDefault(),s.stopPropagation(),this.setState(t.DEFAULT))}preventDragOver(t){t.preventDefault()}preventDrop(t){t.preventDefault(),t.stopPropagation()}handleFiles(s){if(this.currentState===t.DISABLED)return;s.preventDefault?.();let e=null;if("dataTransfer"in s&&s.dataTransfer&&(e=s.dataTransfer.files),!e&&s.target instanceof HTMLInputElement&&(e=s.target.files),e&&e.length>0){const t=Array.from(e);this.fileDropCallback?.(t)}}}export{s as D};
@@ -0,0 +1,2 @@
1
+ System.register(["../types/file-upload.enums.cjs.js"],function(_export,_context){"use strict";var e,r,a,o,s;function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}return{setters:[function(_typesFileUploadEnumsCjsJs){e=_typesFileUploadEnumsCjsJs.a;r=_typesFileUploadEnumsCjsJs.F;}],execute:function execute(){_export("s",a=function a(r,_a){_a.onStateChange(function(e){r.state=e;}),_a.onFileDrop(function(a){if(!r.allowMultiple){if(r.uploadedFiles.length+a.length>1)return r.errorMessage=e.MULTIPLE_NOT_ALLOWED,void r.requestUpdate();}if(!r.allowDuplicates){var _o=function(e,r){return e.some(function(e){return r.some(function(r){return e.name===r.name&&e.size===r.size&&e.lastModified===r.lastModified;});});}(a,r.uploadedFiles);if(_o)return r.errorMessage=e.DUPLICATES_NOT_ALLOWED,void r.requestUpdate();}r.uploadedFiles=[].concat(_toConsumableArray(r.uploadedFiles),_toConsumableArray(a)),r.requestUpdate();});}),_export("b",o=function o(e){document.addEventListener("dragover",e.preventDragOver,{passive:!1}),document.addEventListener("drop",e.preventDrop,{passive:!1});}),_export("a",s=function s(e,a){e.addEventListener("mouseenter",function(a){return o=e.setState,void(e.state===r.DEFAULT&&o(r.HOVER));var o;}),e.addEventListener("mouseleave",function(a){return o=e.setState,void(e.state===r.HOVER&&o(r.DEFAULT));var o;}),e.addEventListener("dragenter",function(e){return a.dragEnter(e);}),e.addEventListener("dragleave",function(e){return a.dragLeave(e);}),e.addEventListener("dragover",function(e){return a.dragOver(e);}),e.addEventListener("drop",function(e){return a.drop(e);});});}};});
2
+ //# sourceMappingURL=file-validation.util.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"file-validation.util.cjs.js","sources":["../../../../src/nile-file-upload/utils/file-validation.util.ts"],"sourcesContent":["import { DragHandler } from \"./drag-drop.util\";\nimport { FileUploadState, FileUploadError } from \"../types\";\nimport { NileFileUpload } from \"../nile-file-upload\";\n\n// to check the duplicate files\nexport const areDuplicates = (files: File[], uploadedFiles: File[]): boolean => {\n return files.some(file =>\n uploadedFiles.some(existing =>\n file.name === existing.name &&\n file.size === existing.size &&\n file.lastModified === existing.lastModified\n )\n );\n};\n\n// set up the drag handler\nexport const setUpDragHandler = (\n nileFileUpload: NileFileUpload,\n dragHandler: DragHandler\n): void => {\n dragHandler.onStateChange((newState: FileUploadState) => {\n nileFileUpload.state = newState;\n });\n\n dragHandler.onFileDrop((files: File[]) => {\n if (!nileFileUpload.allowMultiple) {\n const total = nileFileUpload.uploadedFiles.length + files.length;\n if (total > 1) {\n nileFileUpload.errorMessage = FileUploadError.MULTIPLE_NOT_ALLOWED;\n nileFileUpload.requestUpdate();\n return;\n }\n }\n\n if (!nileFileUpload.allowDuplicates) {\n const duplicates = areDuplicates(files, nileFileUpload.uploadedFiles);\n if (duplicates) {\n nileFileUpload.errorMessage = FileUploadError.DUPLICATES_NOT_ALLOWED;\n nileFileUpload.requestUpdate();\n return;\n }\n }\n nileFileUpload.uploadedFiles = [...nileFileUpload.uploadedFiles, ...files];\n nileFileUpload.requestUpdate();\n });\n};\n\n// global listenrers\nexport const addGlobalListeners = (dragHandler: DragHandler): void => {\n document.addEventListener('dragover', dragHandler.preventDragOver, { passive: false });\n document.addEventListener('drop', dragHandler.preventDrop, { passive: false });\n}\n\n// for hover & dragging functionality\nexport const addInternalListeners = (nileFileUpload: NileFileUpload, dragHandler: DragHandler): void => {\n nileFileUpload.addEventListener('mouseenter', (e) => handleHoverIn(nileFileUpload.setState, nileFileUpload.state));\n nileFileUpload.addEventListener('mouseleave', (e) => handleHoverOut(nileFileUpload.setState, nileFileUpload.state));\n nileFileUpload.addEventListener('dragenter', (e) => dragHandler.dragEnter(e));\n nileFileUpload.addEventListener('dragleave', (e) => dragHandler.dragLeave(e));\n nileFileUpload.addEventListener('dragover', (e) => dragHandler.dragOver(e));\n nileFileUpload.addEventListener('drop', (e) => dragHandler.drop(e));\n}\n\nexport function handleHoverIn(\n setState: (state: FileUploadState) => void,\n currentState: FileUploadState\n): void {\n if (currentState === FileUploadState.DEFAULT) {\n setState(FileUploadState.HOVER);\n }\n}\n\nexport function handleHoverOut(\n setState: (state: FileUploadState) => void,\n currentState: FileUploadState\n): void {\n if (currentState === FileUploadState.HOVER) {\n setState(FileUploadState.DEFAULT);\n }\n}"],"names":["setUpDragHandler","nileFileUpload","dragHandler","onStateChange","newState","state","onFileDrop","files","allowMultiple","uploadedFiles","length","errorMessage","FileUploadError","MULTIPLE_NOT_ALLOWED","requestUpdate","allowDuplicates","duplicates","some","file","existing","name","size","lastModified","DUPLICATES_NOT_ALLOWED","addGlobalListeners","document","addEventListener","preventDragOver","passive","preventDrop","addInternalListeners","e","handleHoverIn","setState","FileUploadState","DEFAULT","HOVER","handleHoverOut","dragEnter","dragLeave","dragOver","drop"],"mappings":"guCAgBaA,EAAmB,QAAnBA,CAAAA,EACXC,CAAAA,CACAC,IAEAA,EAAYC,CAAAA,aAAAA,CAAeC,SAAAA,CACzBH,CAAAA,CAAAA,CAAAA,CAAeI,MAAQD,CAAQ,EAAA,CAAA,CAGjCF,GAAYI,UAAYC,CAAAA,SAAAA,CAAAA,CAAAA,CACtB,IAAKN,CAAeO,CAAAA,aAAAA,CAAe,CAEjC,GADcP,EAAeQ,aAAcC,CAAAA,MAAAA,CAASH,EAAMG,MAC9C,CAAA,CAAA,CAGV,MAFAT,CAAAA,CAAeU,CAAAA,YAAAA,CAAeC,EAAgBC,oBAC9CZ,CAAAA,IAAAA,CAAAA,CAAAA,CAAea,eAGlB,EAED,GAAA,CAAKb,EAAec,eAAiB,CAAA,CACnC,GAAMC,CAAAA,EA9BiB,CAAA,SAACT,CAAeE,CAAAA,CAAAA,QACpCF,CAAAA,EAAMU,IAAKC,CAAAA,SAAAA,CAAAA,QAChBT,CAAAA,EAAcQ,IAAKE,CAAAA,SAAAA,CAAAA,QACjBD,CAAAA,EAAKE,IAASD,GAAAA,CAAAA,CAASC,IACvBF,EAAAA,CAAAA,CAAKG,OAASF,CAASE,CAAAA,IAAAA,EACvBH,EAAKI,YAAiBH,GAAAA,CAAAA,CAASG,qBAyBEf,CAAAA,CAAON,CAAeQ,CAAAA,aAAAA,CAAAA,CACvD,GAAIO,EAGF,CAAA,MAFAf,CAAAA,EAAeU,YAAeC,CAAAA,CAAAA,CAAgBW,2BAC9CtB,CAAAA,CAAea,CAAAA,aAAAA,CAAAA,CAGlB,EACDb,CAAeQ,CAAAA,aAAAA,IAAAA,MAAAA,CAAAA,kBAAAA,CAAoBR,CAAeQ,CAAAA,aAAAA,EAAAA,kBAAAA,CAAkBF,IACpEN,CAAea,CAAAA,aAAAA,CAAAA,CAAe,GAC9B,EAISU,EAAAA,OAAAA,KAAAA,CAAAA,CAAsBtB,QAAtBsB,CAAAA,CAAAA,CAAsBtB,CACjCuB,CAAAA,CAAAA,QAAAA,CAASC,iBAAiB,UAAYxB,CAAAA,CAAAA,CAAYyB,gBAAiB,CAAEC,OAAAA,CAAAA,CAAS,IAC9EH,QAASC,CAAAA,gBAAAA,CAAiB,MAAQxB,CAAAA,CAAAA,CAAY2B,YAAa,CAAED,OAAAA,CAAAA,CAAS,GAAQ,EAInEE,EAAAA,OAAAA,KAAAA,CAAAA,CAAuB,QAAvBA,CAAAA,CAAAA,CAAwB7B,CAAgCC,CAAAA,CAAAA,CAAAA,CACnED,CAAeyB,CAAAA,gBAAAA,CAAiB,aAAeK,SAAAA,CAAMC,CAAAA,CAAAA,MASrDC,CAAAA,EATmEhC,CAAegC,CAAAA,QAAAA,CAAAA,KAAUhC,EAAeI,KAYtF6B,GAAAA,CAAAA,CAAgBC,SACnCF,CAASC,CAAAA,CAAAA,CAAgBE,QALb,GACdH,CAAAA,CATiH,IACjHhC,CAAeyB,CAAAA,gBAAAA,CAAiB,aAAeK,SAAAA,CAAMM,CAAAA,CAAAA,MAiBrDJ,CAAAA,CAjBoEhC,CAAAA,CAAAA,CAAegC,cAAUhC,CAAeI,CAAAA,KAAAA,GAoBvF6B,EAAgBE,KACnCH,EAAAA,CAAAA,CAASC,EAAgBC,OALb,CAAA,CAAA,CAAA,GACdF,CAAAA,CAjBkH,EAAA,CAAA,CAClHhC,EAAeyB,gBAAiB,CAAA,WAAA,CAAcK,SAAAA,SAAM7B,CAAAA,CAAYoC,CAAAA,SAAAA,CAAUP,MAC1E9B,CAAeyB,CAAAA,gBAAAA,CAAiB,WAAcK,CAAAA,SAAAA,CAAAA,QAAM7B,CAAAA,EAAYqC,SAAUR,CAAAA,CAAAA,CAAAA,EAAAA,CAAAA,CAC1E9B,EAAeyB,gBAAiB,CAAA,UAAA,CAAaK,SAAAA,SAAM7B,CAAAA,CAAYsC,CAAAA,QAAAA,CAAST,MACxE9B,CAAeyB,CAAAA,gBAAAA,CAAiB,OAASK,SAAAA,CAAM7B,QAAAA,CAAAA,CAAAA,CAAYuC,KAAKV,CAAG,CAAA,EAAA,CAAA,EAAA"}
@@ -0,0 +1 @@
1
+ import{a as e,F as r}from"../types/file-upload.enums.esm.js";const a=(r,a)=>{a.onStateChange((e=>{r.state=e})),a.onFileDrop((a=>{if(!r.allowMultiple){if(r.uploadedFiles.length+a.length>1)return r.errorMessage=e.MULTIPLE_NOT_ALLOWED,void r.requestUpdate()}if(!r.allowDuplicates){const o=((e,r)=>e.some((e=>r.some((r=>e.name===r.name&&e.size===r.size&&e.lastModified===r.lastModified)))))(a,r.uploadedFiles);if(o)return r.errorMessage=e.DUPLICATES_NOT_ALLOWED,void r.requestUpdate()}r.uploadedFiles=[...r.uploadedFiles,...a],r.requestUpdate()}))},o=e=>{document.addEventListener("dragover",e.preventDragOver,{passive:!1}),document.addEventListener("drop",e.preventDrop,{passive:!1})},s=(e,a)=>{e.addEventListener("mouseenter",(a=>{return o=e.setState,void(e.state===r.DEFAULT&&o(r.HOVER));var o})),e.addEventListener("mouseleave",(a=>{return o=e.setState,void(e.state===r.HOVER&&o(r.DEFAULT));var o})),e.addEventListener("dragenter",(e=>a.dragEnter(e))),e.addEventListener("dragleave",(e=>a.dragLeave(e))),e.addEventListener("dragover",(e=>a.dragOver(e))),e.addEventListener("drop",(e=>a.drop(e)))};export{s as a,o as b,a as s};
@@ -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-161dee0b.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-form-group.cjs.js","tslib","lit/decorators.js","./nile-form-group.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,e,i,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture001CjsJs){t=_fixture001CjsJs.f;e=_fixture001CjsJs.a;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFormGroupCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileFormGroupCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileFormGroup",function(){it("should have default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-form-group></nile-form-group>"]))));case 2:l=_context2.sent;e(l.title).to.equal(""),e(l.subtitle).to.equal("");case 4:case"end":return _context2.stop();}},_callee);}))),it("should render title when set",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _l$textContent;var l;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-form-group title=\"Test Title\"></nile-form-group>"]))));case 2:l=_context3.sent.shadowRoot.querySelector('slot[name="title"]');e(l).to.exist,e(l===null||l===void 0||(_l$textContent=l.textContent)===null||_l$textContent===void 0?void 0:_l$textContent.trim()).to.equal("Test Title");case 4:case"end":return _context3.stop();}},_callee2);}))),it("should render subtitle when set",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _l$textContent2;var l;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return t(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-form-group title=\"Test Title\" subtitle=\"Test Subtitle\"></nile-form-group>"]))));case 2:l=_context4.sent.shadowRoot.querySelector('slot[name="subtitle"]');e(l).to.exist,e(l===null||l===void 0||(_l$textContent2=l.textContent)===null||_l$textContent2===void 0?void 0:_l$textContent2.trim()).to.equal("Test Subtitle");case 4:case"end":return _context4.stop();}},_callee3);}))),it("should not render title and subtitle if not set",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var l,o,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return t(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-form-group></nile-form-group>"]))));case 2:l=_context5.sent;o=l.shadowRoot.querySelector('slot[name="title"]');s=l.shadowRoot.querySelector('slot[name="subtitle"]');e(o).to.not.exist,e(s).to.not.exist;case 6:case"end":return _context5.stop();}},_callee4);}))),it("should render content inside the form body slot",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _l$assignedNodes;var l,o;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return t(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-form-group><p>Form Content</p></nile-form-group>"]))));case 2:l=_context6.sent.shadowRoot.querySelector(".form__body slot");o=(_l$assignedNodes=l===null||l===void 0?void 0:l.assignedNodes())!==null&&_l$assignedNodes!==void 0?_l$assignedNodes:[];e(o.length).to.equal(1),e(o[0].textContent.trim()).to.equal("Form Content");case 5:case"end":return _context6.stop();}},_callee5);}))),it("should reflect title and subtitle attributes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var l;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return t(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-form-group title=\"Test Title\" subtitle=\"Test Subtitle\"></nile-form-group>"]))));case 2:l=_context7.sent;e(l.getAttribute("title")).to.equal("Test Title"),e(l.getAttribute("subtitle")).to.equal("Test Subtitle");case 4:case"end":return _context7.stop();}},_callee6);}))),it("should update the title dynamically",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _l$shadowRoot$querySe;var l,o;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return t(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-form-group title=\"Initial Title\"></nile-form-group>"]))));case 2:l=_context8.sent;l.title="Updated Title";_context8.next=6;return l.updateComplete;case 6:o=(_l$shadowRoot$querySe=l.shadowRoot.querySelector('slot[name="title"]'))!==null&&_l$shadowRoot$querySe!==void 0?_l$shadowRoot$querySe:{};e(o.textContent.trim()).to.equal("Updated Title");case 8:case"end":return _context8.stop();}},_callee7);}))),it("should update the subtitle dynamically",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _l$shadowRoot$querySe2;var l,o;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return t(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-form-group title=\"Test Title\" subtitle=\"Initial Subtitle\"></nile-form-group>"]))));case 2:l=_context9.sent;l.subtitle="Updated Subtitle";_context9.next=6;return l.updateComplete;case 6:o=(_l$shadowRoot$querySe2=l.shadowRoot.querySelector('slot[name="subtitle"]'))!==null&&_l$shadowRoot$querySe2!==void 0?_l$shadowRoot$querySe2:{};e(o.textContent.trim()).to.equal("Updated Subtitle");case 8:case"end":return _context9.stop();}},_callee8);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-948ae33c.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-form-group.cjs.js","tslib","lit/decorators.js","./nile-form-group.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,e,i,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture002CjsJs){t=_fixture002CjsJs.f;e=_fixture002CjsJs.a;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFormGroupCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileFormGroupCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileFormGroup",function(){it("should have default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-form-group></nile-form-group>"]))));case 2:l=_context2.sent;e(l.title).to.equal(""),e(l.subtitle).to.equal("");case 4:case"end":return _context2.stop();}},_callee);}))),it("should render title when set",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _l$textContent;var l;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-form-group title=\"Test Title\"></nile-form-group>"]))));case 2:l=_context3.sent.shadowRoot.querySelector('slot[name="title"]');e(l).to.exist,e(l===null||l===void 0||(_l$textContent=l.textContent)===null||_l$textContent===void 0?void 0:_l$textContent.trim()).to.equal("Test Title");case 4:case"end":return _context3.stop();}},_callee2);}))),it("should render subtitle when set",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _l$textContent2;var l;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return t(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-form-group title=\"Test Title\" subtitle=\"Test Subtitle\"></nile-form-group>"]))));case 2:l=_context4.sent.shadowRoot.querySelector('slot[name="subtitle"]');e(l).to.exist,e(l===null||l===void 0||(_l$textContent2=l.textContent)===null||_l$textContent2===void 0?void 0:_l$textContent2.trim()).to.equal("Test Subtitle");case 4:case"end":return _context4.stop();}},_callee3);}))),it("should not render title and subtitle if not set",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var l,o,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return t(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-form-group></nile-form-group>"]))));case 2:l=_context5.sent;o=l.shadowRoot.querySelector('slot[name="title"]');s=l.shadowRoot.querySelector('slot[name="subtitle"]');e(o).to.not.exist,e(s).to.not.exist;case 6:case"end":return _context5.stop();}},_callee4);}))),it("should render content inside the form body slot",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _l$assignedNodes;var l,o;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return t(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-form-group><p>Form Content</p></nile-form-group>"]))));case 2:l=_context6.sent.shadowRoot.querySelector(".form__body slot");o=(_l$assignedNodes=l===null||l===void 0?void 0:l.assignedNodes())!==null&&_l$assignedNodes!==void 0?_l$assignedNodes:[];e(o.length).to.equal(1),e(o[0].textContent.trim()).to.equal("Form Content");case 5:case"end":return _context6.stop();}},_callee5);}))),it("should reflect title and subtitle attributes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var l;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return t(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-form-group title=\"Test Title\" subtitle=\"Test Subtitle\"></nile-form-group>"]))));case 2:l=_context7.sent;e(l.getAttribute("title")).to.equal("Test Title"),e(l.getAttribute("subtitle")).to.equal("Test Subtitle");case 4:case"end":return _context7.stop();}},_callee6);}))),it("should update the title dynamically",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _l$shadowRoot$querySe;var l,o;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return t(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-form-group title=\"Initial Title\"></nile-form-group>"]))));case 2:l=_context8.sent;l.title="Updated Title";_context8.next=6;return l.updateComplete;case 6:o=(_l$shadowRoot$querySe=l.shadowRoot.querySelector('slot[name="title"]'))!==null&&_l$shadowRoot$querySe!==void 0?_l$shadowRoot$querySe:{};e(o.textContent.trim()).to.equal("Updated Title");case 8:case"end":return _context8.stop();}},_callee7);}))),it("should update the subtitle dynamically",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _l$shadowRoot$querySe2;var l,o;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return t(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-form-group title=\"Test Title\" subtitle=\"Initial Subtitle\"></nile-form-group>"]))));case 2:l=_context9.sent;l.subtitle="Updated Subtitle";_context9.next=6;return l.updateComplete;case 6:o=(_l$shadowRoot$querySe2=l.shadowRoot.querySelector('slot[name="subtitle"]'))!==null&&_l$shadowRoot$querySe2!==void 0?_l$shadowRoot$querySe2:{};e(o.textContent.trim()).to.equal("Updated Subtitle");case 8:case"end":return _context9.stop();}},_callee8);})));});}};});
2
2
  //# sourceMappingURL=nile-form-group.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as t,a as e}from"../fixture-372df3b0.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"./nile-form-group.esm.js";import"tslib";import"lit/decorators.js";import"./nile-form-group.css.esm.js";import"../internal/nile-element.esm.js";describe("NileFormGroup",(()=>{it("should have default properties",(async()=>{const l=await t(i`<nile-form-group></nile-form-group>`);e(l.title).to.equal(""),e(l.subtitle).to.equal("")})),it("should render title when set",(async()=>{const l=(await t(i`<nile-form-group title="Test Title"></nile-form-group>`)).shadowRoot.querySelector('slot[name="title"]');e(l).to.exist,e(l?.textContent?.trim()).to.equal("Test Title")})),it("should render subtitle when set",(async()=>{const l=(await t(i`<nile-form-group title="Test Title" subtitle="Test Subtitle"></nile-form-group>`)).shadowRoot.querySelector('slot[name="subtitle"]');e(l).to.exist,e(l?.textContent?.trim()).to.equal("Test Subtitle")})),it("should not render title and subtitle if not set",(async()=>{const l=await t(i`<nile-form-group></nile-form-group>`),o=l.shadowRoot.querySelector('slot[name="title"]'),s=l.shadowRoot.querySelector('slot[name="subtitle"]');e(o).to.not.exist,e(s).to.not.exist})),it("should render content inside the form body slot",(async()=>{const l=(await t(i`<nile-form-group><p>Form Content</p></nile-form-group>`)).shadowRoot.querySelector(".form__body slot"),o=l?.assignedNodes()??[];e(o.length).to.equal(1),e(o[0].textContent.trim()).to.equal("Form Content")})),it("should reflect title and subtitle attributes",(async()=>{const l=await t(i`<nile-form-group title="Test Title" subtitle="Test Subtitle"></nile-form-group>`);e(l.getAttribute("title")).to.equal("Test Title"),e(l.getAttribute("subtitle")).to.equal("Test Subtitle")})),it("should update the title dynamically",(async()=>{const l=await t(i`<nile-form-group title="Initial Title"></nile-form-group>`);l.title="Updated Title",await l.updateComplete;const o=l.shadowRoot.querySelector('slot[name="title"]')??{};e(o.textContent.trim()).to.equal("Updated Title")})),it("should update the subtitle dynamically",(async()=>{const l=await t(i`<nile-form-group title="Test Title" subtitle="Initial Subtitle"></nile-form-group>`);l.subtitle="Updated Subtitle",await l.updateComplete;const o=l.shadowRoot.querySelector('slot[name="subtitle"]')??{};e(o.textContent.trim()).to.equal("Updated Subtitle")}))}));
1
+ import{f as t,a as e}from"../fixture-76051ef1.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"./nile-form-group.esm.js";import"tslib";import"lit/decorators.js";import"./nile-form-group.css.esm.js";import"../internal/nile-element.esm.js";describe("NileFormGroup",(()=>{it("should have default properties",(async()=>{const l=await t(i`<nile-form-group></nile-form-group>`);e(l.title).to.equal(""),e(l.subtitle).to.equal("")})),it("should render title when set",(async()=>{const l=(await t(i`<nile-form-group title="Test Title"></nile-form-group>`)).shadowRoot.querySelector('slot[name="title"]');e(l).to.exist,e(l?.textContent?.trim()).to.equal("Test Title")})),it("should render subtitle when set",(async()=>{const l=(await t(i`<nile-form-group title="Test Title" subtitle="Test Subtitle"></nile-form-group>`)).shadowRoot.querySelector('slot[name="subtitle"]');e(l).to.exist,e(l?.textContent?.trim()).to.equal("Test Subtitle")})),it("should not render title and subtitle if not set",(async()=>{const l=await t(i`<nile-form-group></nile-form-group>`),o=l.shadowRoot.querySelector('slot[name="title"]'),s=l.shadowRoot.querySelector('slot[name="subtitle"]');e(o).to.not.exist,e(s).to.not.exist})),it("should render content inside the form body slot",(async()=>{const l=(await t(i`<nile-form-group><p>Form Content</p></nile-form-group>`)).shadowRoot.querySelector(".form__body slot"),o=l?.assignedNodes()??[];e(o.length).to.equal(1),e(o[0].textContent.trim()).to.equal("Form Content")})),it("should reflect title and subtitle attributes",(async()=>{const l=await t(i`<nile-form-group title="Test Title" subtitle="Test Subtitle"></nile-form-group>`);e(l.getAttribute("title")).to.equal("Test Title"),e(l.getAttribute("subtitle")).to.equal("Test Subtitle")})),it("should update the title dynamically",(async()=>{const l=await t(i`<nile-form-group title="Initial Title"></nile-form-group>`);l.title="Updated Title",await l.updateComplete;const o=l.shadowRoot.querySelector('slot[name="title"]')??{};e(o.textContent.trim()).to.equal("Updated Title")})),it("should update the subtitle dynamically",(async()=>{const l=await t(i`<nile-form-group title="Test Title" subtitle="Initial Subtitle"></nile-form-group>`);l.subtitle="Updated Subtitle",await l.updateComplete;const o=l.shadowRoot.querySelector('slot[name="subtitle"]')??{};e(o.textContent.trim()).to.equal("Updated Subtitle")}))}));
@@ -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-161dee0b.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-form-help-text.cjs.js","tslib","lit/decorators.js","./nile-form-help-text.css.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var t,e,i,l,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5;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;i=_fixture001CjsJs.e;},function(_litStaticHtmlJs){l=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFormHelpTextCjsJs){o=_nileFormHelpTextCjsJs.N;},function(_tslib){},function(_litDecoratorsJs){},function(_nileFormHelpTextCssCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){describe("NileFormHelpText",function(){it("should render with default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _i$textContent;var i,s;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-form-help-text>This is a short text</nile-form-help-text>"]))));case 2:i=_context2.sent;e(i).to.be.instanceOf(o),e(i.isExpanded).to.be["false"];s=i===null||i===void 0||(_i$textContent=i.textContent)===null||_i$textContent===void 0?void 0:_i$textContent.trim();e(s).to.equal("This is a short text");case 6:case"end":return _context2.stop();}},_callee);}))),it('should not show "View More" button if the text fits within the container',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,s;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-form-help-text>This is a short text</nile-form-help-text>"]))));case 2:o=_context3.sent;_context3.next=5;return i(o);case 5:s=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".nile-form-help-text__more-button");e(s).to.be["null"],e(o.showButton).to.be["false"];case 7:case"end":return _context3.stop();}},_callee2);}))),it('should show "View More" button if the text overflows the container',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _o$shadowRoot2,_o$shadowRoot3;var o,s,h;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return t(l(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-form-help-text>","</nile-form-help-text>"])),'This is a very long help text that exceeds the container width and should show a "View More" button.'));case 2:o=_context4.sent;s=(_o$shadowRoot2=o.shadowRoot)===null||_o$shadowRoot2===void 0?void 0:_o$shadowRoot2.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300});Object.defineProperty(s,"clientWidth",{value:200});o.decideToToggleShowButton();_context4.next=9;return i(o);case 9:h=(_o$shadowRoot3=o.shadowRoot)===null||_o$shadowRoot3===void 0?void 0:_o$shadowRoot3.querySelector(".nile-form-help-text__more-button");e(h).to.exist,e(o.showButton).to.be["true"];case 11:case"end":return _context4.stop();}},_callee3);}))),it('should expand to show full text when "View More" is clicked',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _o$shadowRoot4,_o$shadowRoot5;var o,s,h;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return t(l(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-form-help-text>","</nile-form-help-text>"])),'This is a very long help text that exceeds the container width and should show a "View More" button.'));case 2:o=_context5.sent;s=(_o$shadowRoot4=o.shadowRoot)===null||_o$shadowRoot4===void 0?void 0:_o$shadowRoot4.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300});Object.defineProperty(s,"clientWidth",{value:200});o.decideToToggleShowButton();_context5.next=9;return i(o);case 9:h=(_o$shadowRoot5=o.shadowRoot)===null||_o$shadowRoot5===void 0?void 0:_o$shadowRoot5.querySelector(".nile-form-help-text__more-button");h!==null&&h!==void 0&&h.click();_context5.next=13;return i(o);case 13:e(o.isExpanded).to.be["true"];e(s).to.have["class"]("help__text__full--expanded");e(h===null||h===void 0?void 0:h.textContent).to.include("View Less");case 16:case"end":return _context5.stop();}},_callee4);}))),it('should collapse back to truncated text when "View Less" is clicked',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _o$shadowRoot6,_o$shadowRoot7;var o,s,h;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return t(l(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-form-help-text>","</nile-form-help-text>"])),'This is a very long help text that exceeds the container width and should show a "View More" button.'));case 2:o=_context6.sent;s=(_o$shadowRoot6=o.shadowRoot)===null||_o$shadowRoot6===void 0?void 0:_o$shadowRoot6.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300});Object.defineProperty(s,"clientWidth",{value:200});o.decideToToggleShowButton();_context6.next=9;return i(o);case 9:h=(_o$shadowRoot7=o.shadowRoot)===null||_o$shadowRoot7===void 0?void 0:_o$shadowRoot7.querySelector(".nile-form-help-text__more-button");h!==null&&h!==void 0&&h.click();_context6.next=13;return i(o);case 13:h!==null&&h!==void 0&&h.click();_context6.next=16;return i(o);case 16:e(o.isExpanded).to.be["false"];e(s).not.to.have["class"]("help__text__full--expanded");e(h===null||h===void 0?void 0:h.textContent).to.include("View More");case 19:case"end":return _context6.stop();}},_callee5);})));});}};});
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-948ae33c.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-form-help-text.cjs.js","tslib","lit/decorators.js","./nile-form-help-text.css.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var t,e,i,l,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5;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(_fixture002CjsJs){t=_fixture002CjsJs.f;e=_fixture002CjsJs.a;i=_fixture002CjsJs.e;},function(_litStaticHtmlJs){l=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileFormHelpTextCjsJs){o=_nileFormHelpTextCjsJs.N;},function(_tslib){},function(_litDecoratorsJs){},function(_nileFormHelpTextCssCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){describe("NileFormHelpText",function(){it("should render with default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _i$textContent;var i,s;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(l(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-form-help-text>This is a short text</nile-form-help-text>"]))));case 2:i=_context2.sent;e(i).to.be.instanceOf(o),e(i.isExpanded).to.be["false"];s=i===null||i===void 0||(_i$textContent=i.textContent)===null||_i$textContent===void 0?void 0:_i$textContent.trim();e(s).to.equal("This is a short text");case 6:case"end":return _context2.stop();}},_callee);}))),it('should not show "View More" button if the text fits within the container',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,s;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return t(l(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-form-help-text>This is a short text</nile-form-help-text>"]))));case 2:o=_context3.sent;_context3.next=5;return i(o);case 5:s=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".nile-form-help-text__more-button");e(s).to.be["null"],e(o.showButton).to.be["false"];case 7:case"end":return _context3.stop();}},_callee2);}))),it('should show "View More" button if the text overflows the container',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _o$shadowRoot2,_o$shadowRoot3;var o,s,h;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return t(l(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-form-help-text>","</nile-form-help-text>"])),'This is a very long help text that exceeds the container width and should show a "View More" button.'));case 2:o=_context4.sent;s=(_o$shadowRoot2=o.shadowRoot)===null||_o$shadowRoot2===void 0?void 0:_o$shadowRoot2.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300});Object.defineProperty(s,"clientWidth",{value:200});o.decideToToggleShowButton();_context4.next=9;return i(o);case 9:h=(_o$shadowRoot3=o.shadowRoot)===null||_o$shadowRoot3===void 0?void 0:_o$shadowRoot3.querySelector(".nile-form-help-text__more-button");e(h).to.exist,e(o.showButton).to.be["true"];case 11:case"end":return _context4.stop();}},_callee3);}))),it('should expand to show full text when "View More" is clicked',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _o$shadowRoot4,_o$shadowRoot5;var o,s,h;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return t(l(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-form-help-text>","</nile-form-help-text>"])),'This is a very long help text that exceeds the container width and should show a "View More" button.'));case 2:o=_context5.sent;s=(_o$shadowRoot4=o.shadowRoot)===null||_o$shadowRoot4===void 0?void 0:_o$shadowRoot4.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300});Object.defineProperty(s,"clientWidth",{value:200});o.decideToToggleShowButton();_context5.next=9;return i(o);case 9:h=(_o$shadowRoot5=o.shadowRoot)===null||_o$shadowRoot5===void 0?void 0:_o$shadowRoot5.querySelector(".nile-form-help-text__more-button");h!==null&&h!==void 0&&h.click();_context5.next=13;return i(o);case 13:e(o.isExpanded).to.be["true"];e(s).to.have["class"]("help__text__full--expanded");e(h===null||h===void 0?void 0:h.textContent).to.include("View Less");case 16:case"end":return _context5.stop();}},_callee4);}))),it('should collapse back to truncated text when "View Less" is clicked',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _o$shadowRoot6,_o$shadowRoot7;var o,s,h;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return t(l(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-form-help-text>","</nile-form-help-text>"])),'This is a very long help text that exceeds the container width and should show a "View More" button.'));case 2:o=_context6.sent;s=(_o$shadowRoot6=o.shadowRoot)===null||_o$shadowRoot6===void 0?void 0:_o$shadowRoot6.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300});Object.defineProperty(s,"clientWidth",{value:200});o.decideToToggleShowButton();_context6.next=9;return i(o);case 9:h=(_o$shadowRoot7=o.shadowRoot)===null||_o$shadowRoot7===void 0?void 0:_o$shadowRoot7.querySelector(".nile-form-help-text__more-button");h!==null&&h!==void 0&&h.click();_context6.next=13;return i(o);case 13:h!==null&&h!==void 0&&h.click();_context6.next=16;return i(o);case 16:e(o.isExpanded).to.be["false"];e(s).not.to.have["class"]("help__text__full--expanded");e(h===null||h===void 0?void 0:h.textContent).to.include("View More");case 19:case"end":return _context6.stop();}},_callee5);})));});}};});
2
2
  //# sourceMappingURL=nile-form-help-text.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as t,a as e,e as i}from"../fixture-372df3b0.esm.js";import{html as l}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import{N as o}from"./nile-form-help-text.esm.js";import"tslib";import"lit/decorators.js";import"./nile-form-help-text.css.esm.js";import"lit/directives/class-map.js";describe("NileFormHelpText",(()=>{it("should render with default properties",(async()=>{const i=await t(l`<nile-form-help-text>This is a short text</nile-form-help-text>`);e(i).to.be.instanceOf(o),e(i.isExpanded).to.be.false;const s=i?.textContent?.trim();e(s).to.equal("This is a short text")})),it('should not show "View More" button if the text fits within the container',(async()=>{const o=await t(l`<nile-form-help-text>This is a short text</nile-form-help-text>`);await i(o);const s=o.shadowRoot?.querySelector(".nile-form-help-text__more-button");e(s).to.be.null,e(o.showButton).to.be.false})),it('should show "View More" button if the text overflows the container',(async()=>{const o=await t(l`<nile-form-help-text>${'This is a very long help text that exceeds the container width and should show a "View More" button.'}</nile-form-help-text>`),s=o.shadowRoot?.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300}),Object.defineProperty(s,"clientWidth",{value:200}),o.decideToToggleShowButton(),await i(o);const h=o.shadowRoot?.querySelector(".nile-form-help-text__more-button");e(h).to.exist,e(o.showButton).to.be.true})),it('should expand to show full text when "View More" is clicked',(async()=>{const o=await t(l`<nile-form-help-text>${'This is a very long help text that exceeds the container width and should show a "View More" button.'}</nile-form-help-text>`),s=o.shadowRoot?.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300}),Object.defineProperty(s,"clientWidth",{value:200}),o.decideToToggleShowButton(),await i(o);const h=o.shadowRoot?.querySelector(".nile-form-help-text__more-button");h?.click(),await i(o),e(o.isExpanded).to.be.true,e(s).to.have.class("help__text__full--expanded"),e(h?.textContent).to.include("View Less")})),it('should collapse back to truncated text when "View Less" is clicked',(async()=>{const o=await t(l`<nile-form-help-text>${'This is a very long help text that exceeds the container width and should show a "View More" button.'}</nile-form-help-text>`),s=o.shadowRoot?.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300}),Object.defineProperty(s,"clientWidth",{value:200}),o.decideToToggleShowButton(),await i(o);const h=o.shadowRoot?.querySelector(".nile-form-help-text__more-button");h?.click(),await i(o),h?.click(),await i(o),e(o.isExpanded).to.be.false,e(s).not.to.have.class("help__text__full--expanded"),e(h?.textContent).to.include("View More")}))}));
1
+ import{f as t,a as e,e as i}from"../fixture-76051ef1.esm.js";import{html as l}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import{N as o}from"./nile-form-help-text.esm.js";import"tslib";import"lit/decorators.js";import"./nile-form-help-text.css.esm.js";import"lit/directives/class-map.js";describe("NileFormHelpText",(()=>{it("should render with default properties",(async()=>{const i=await t(l`<nile-form-help-text>This is a short text</nile-form-help-text>`);e(i).to.be.instanceOf(o),e(i.isExpanded).to.be.false;const s=i?.textContent?.trim();e(s).to.equal("This is a short text")})),it('should not show "View More" button if the text fits within the container',(async()=>{const o=await t(l`<nile-form-help-text>This is a short text</nile-form-help-text>`);await i(o);const s=o.shadowRoot?.querySelector(".nile-form-help-text__more-button");e(s).to.be.null,e(o.showButton).to.be.false})),it('should show "View More" button if the text overflows the container',(async()=>{const o=await t(l`<nile-form-help-text>${'This is a very long help text that exceeds the container width and should show a "View More" button.'}</nile-form-help-text>`),s=o.shadowRoot?.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300}),Object.defineProperty(s,"clientWidth",{value:200}),o.decideToToggleShowButton(),await i(o);const h=o.shadowRoot?.querySelector(".nile-form-help-text__more-button");e(h).to.exist,e(o.showButton).to.be.true})),it('should expand to show full text when "View More" is clicked',(async()=>{const o=await t(l`<nile-form-help-text>${'This is a very long help text that exceeds the container width and should show a "View More" button.'}</nile-form-help-text>`),s=o.shadowRoot?.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300}),Object.defineProperty(s,"clientWidth",{value:200}),o.decideToToggleShowButton(),await i(o);const h=o.shadowRoot?.querySelector(".nile-form-help-text__more-button");h?.click(),await i(o),e(o.isExpanded).to.be.true,e(s).to.have.class("help__text__full--expanded"),e(h?.textContent).to.include("View Less")})),it('should collapse back to truncated text when "View Less" is clicked',(async()=>{const o=await t(l`<nile-form-help-text>${'This is a very long help text that exceeds the container width and should show a "View More" button.'}</nile-form-help-text>`),s=o.shadowRoot?.querySelector(".help__text__full");Object.defineProperty(s,"scrollWidth",{value:300}),Object.defineProperty(s,"clientWidth",{value:200}),o.decideToToggleShowButton(),await i(o);const h=o.shadowRoot?.querySelector(".nile-form-help-text__more-button");h?.click(),await i(o),h?.click(),await i(o),e(o.isExpanded).to.be.false,e(s).not.to.have.class("help__text__full--expanded"),e(h?.textContent).to.include("View More")}))}));
@@ -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-161dee0b.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-hero.cjs.js","tslib","lit/decorators.js","./nile-hero.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var e,i,t,_templateObject,_templateObject2,_templateObject3;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;i=_fixture001CjsJs.a;},function(_litStaticHtmlJs){t=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileHeroCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileHeroCssCjsJs){},function(_internalNileElementCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){describe("NileHero",function(){it("renders correctly with default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var r;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t<nile-hero icon=\"error\" hero-text=\"Test Hero\">\n <nile-page-header\n heading=\"I am heading\"\n sub-heading=\"I am subheading\"\n ></nile-page-header>\n </nile-hero>"]))));case 2:r=_context2.sent;i(r.getAttribute("icon")).to.equal("error"),i(r.hasAttribute("collapse")).to.be["false"],i(r.getAttribute("img-src")).to.equal(""),i(r.getAttribute("hero-text")).to.equal("Test Hero"),i(r).shadowDom.to.equalSnapshot();case 4:case"end":return _context2.stop();}},_callee);}))),it("checks for collapsed state",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _r$shadowRoot;var r,a;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return e(t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-hero></nile-hero>"]))));case 2:r=_context3.sent;r.collapse=!0;_context3.next=6;return r.updateComplete;case 6:i(r.collapse).to.be["true"];r.collapse=!0;_context3.next=10;return r.updateComplete;case 10:a=(_r$shadowRoot=r.shadowRoot)===null||_r$shadowRoot===void 0?void 0:_r$shadowRoot.querySelector(".hero__container");i(a===null||a===void 0?void 0:a.classList.contains("hero__container--collapsed")).to.be["true"];case 12:case"end":return _context3.stop();}},_callee2);}))),it("should render slot content",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var r,a;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return e(t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-hero>\n <nile-page-header\n heading=\"I am heading\"\n sub-heading=\"I am subheading\"\n ></nile-page-header>\n </nile-hero>\n "]))));case 2:r=_context4.sent;_context4.next=5;return r.updateComplete;case 5:a=r.querySelector("nile-page-header");i(a).to.exist;case 7:case"end":return _context4.stop();}},_callee3);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-948ae33c.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-hero.cjs.js","tslib","lit/decorators.js","./nile-hero.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js"],function(_export,_context){"use strict";var e,i,t,_templateObject,_templateObject2,_templateObject3;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(_fixture002CjsJs){e=_fixture002CjsJs.f;i=_fixture002CjsJs.a;},function(_litStaticHtmlJs){t=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileHeroCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileHeroCssCjsJs){},function(_internalNileElementCjsJs){},function(_litDirectivesClassMapJs){}],execute:function execute(){describe("NileHero",function(){it("renders correctly with default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var r;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t<nile-hero icon=\"error\" hero-text=\"Test Hero\">\n <nile-page-header\n heading=\"I am heading\"\n sub-heading=\"I am subheading\"\n ></nile-page-header>\n </nile-hero>"]))));case 2:r=_context2.sent;i(r.getAttribute("icon")).to.equal("error"),i(r.hasAttribute("collapse")).to.be["false"],i(r.getAttribute("img-src")).to.equal(""),i(r.getAttribute("hero-text")).to.equal("Test Hero"),i(r).shadowDom.to.equalSnapshot();case 4:case"end":return _context2.stop();}},_callee);}))),it("checks for collapsed state",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _r$shadowRoot;var r,a;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return e(t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-hero></nile-hero>"]))));case 2:r=_context3.sent;r.collapse=!0;_context3.next=6;return r.updateComplete;case 6:i(r.collapse).to.be["true"];r.collapse=!0;_context3.next=10;return r.updateComplete;case 10:a=(_r$shadowRoot=r.shadowRoot)===null||_r$shadowRoot===void 0?void 0:_r$shadowRoot.querySelector(".hero__container");i(a===null||a===void 0?void 0:a.classList.contains("hero__container--collapsed")).to.be["true"];case 12:case"end":return _context3.stop();}},_callee2);}))),it("should render slot content",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var r,a;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return e(t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-hero>\n <nile-page-header\n heading=\"I am heading\"\n sub-heading=\"I am subheading\"\n ></nile-page-header>\n </nile-hero>\n "]))));case 2:r=_context4.sent;_context4.next=5;return r.updateComplete;case 5:a=r.querySelector("nile-page-header");i(a).to.exist;case 7:case"end":return _context4.stop();}},_callee3);})));});}};});
2
2
  //# sourceMappingURL=nile-hero.test.cjs.js.map
@@ -1,4 +1,4 @@
1
- import{f as e,a as i}from"../fixture-372df3b0.esm.js";import{html as t}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-hero.esm.js";import"tslib";import"lit/decorators.js";import"./nile-hero.css.esm.js";import"../internal/nile-element.esm.js";import"lit/directives/class-map.js";describe("NileHero",(()=>{it("renders correctly with default properties",(async()=>{const r=await e(t`
1
+ import{f as e,a as i}from"../fixture-76051ef1.esm.js";import{html as t}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-hero.esm.js";import"tslib";import"lit/decorators.js";import"./nile-hero.css.esm.js";import"../internal/nile-element.esm.js";import"lit/directives/class-map.js";describe("NileHero",(()=>{it("renders correctly with default properties",(async()=>{const r=await e(t`
2
2
  <nile-hero icon="error" hero-text="Test Hero">
3
3
  <nile-page-header
4
4
  heading="I am heading"