@aquera/nile-elements 0.1.64-beta-1.0 → 0.1.64-beta-1.2

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 (1168) hide show
  1. package/README.md +59 -14
  2. package/demo/index.css +17 -53
  3. package/demo/index.html +212 -181
  4. package/demo/index.js +0 -1
  5. package/dist/{fixture-ba65eb22.esm.js → fixture-2b5b3aba.esm.js} +1 -1
  6. package/dist/{fixture-324a7ef9.cjs.js → fixture-3330277d.cjs.js} +2 -2
  7. package/dist/{fixture-324a7ef9.cjs.js.map → fixture-3330277d.cjs.js.map} +1 -1
  8. package/dist/{fixture-f2693d97.esm.js → fixture-588a3119.esm.js} +1 -1
  9. package/dist/{fixture-cb376a7f.cjs.js → fixture-75825990.cjs.js} +2 -2
  10. package/dist/fixture-75825990.cjs.js.map +1 -0
  11. package/dist/{fixture-c1bd203f.cjs.js → fixture-7bfb866e.cjs.js} +2 -2
  12. package/dist/{fixture-c1bd203f.cjs.js.map → fixture-7bfb866e.cjs.js.map} +1 -1
  13. package/dist/{fixture-add72f26.esm.js → fixture-e831ec79.esm.js} +1 -1
  14. package/dist/index.cjs.js +1 -1
  15. package/dist/index.esm.js +1 -1
  16. package/dist/index.js +793 -307
  17. package/dist/nile-accordion/nile-accordian.test.cjs.js +1 -1
  18. package/dist/nile-accordion/nile-accordian.test.esm.js +1 -1
  19. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +1 -1
  20. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +1 -1
  21. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +1 -1
  22. package/dist/nile-avatar/nile-avatar.test.cjs.js +1 -1
  23. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +1 -1
  24. package/dist/nile-avatar/nile-avatar.test.esm.js +1 -1
  25. package/dist/nile-badge/index.cjs.js +1 -1
  26. package/dist/nile-badge/index.esm.js +1 -1
  27. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  28. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  29. package/dist/nile-badge/nile-badge.esm.js +1 -1
  30. package/dist/nile-badge/nile-badge.test.cjs.js +1 -1
  31. package/dist/nile-badge/nile-badge.test.cjs.js.map +1 -1
  32. package/dist/nile-badge/nile-badge.test.esm.js +1 -1
  33. package/dist/nile-button/index.cjs.js +1 -1
  34. package/dist/nile-button/index.esm.js +1 -1
  35. package/dist/nile-button/nile-button.cjs.js +1 -1
  36. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  37. package/dist/nile-button/nile-button.esm.js +2 -2
  38. package/dist/nile-button/nile-button.test.cjs.js +1 -1
  39. package/dist/nile-button/nile-button.test.cjs.js.map +1 -1
  40. package/dist/nile-button/nile-button.test.esm.js +1 -1
  41. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +1 -1
  42. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +1 -1
  43. package/dist/nile-calendar/nile-calendar.test.cjs.js +1 -1
  44. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +1 -1
  45. package/dist/nile-calendar/nile-calendar.test.esm.js +5 -5
  46. package/dist/nile-card/nile-card.test.cjs.js +1 -1
  47. package/dist/nile-card/nile-card.test.esm.js +1 -1
  48. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +1 -1
  49. package/dist/nile-checkbox/nile-checkbox.test.esm.js +1 -1
  50. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  51. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  52. package/dist/nile-chip/nile-chip.esm.js +9 -17
  53. package/dist/nile-chip/nile-chip.test.cjs.js +1 -1
  54. package/dist/nile-chip/nile-chip.test.cjs.js.map +1 -1
  55. package/dist/nile-chip/nile-chip.test.esm.js +1 -1
  56. package/dist/nile-code-editor/extensionSetup.cjs.js +5 -5
  57. package/dist/nile-code-editor/extensionSetup.cjs.js.map +1 -1
  58. package/dist/nile-code-editor/extensionSetup.esm.js +1 -1
  59. package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
  60. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  61. package/dist/nile-code-editor/nile-code-editor.esm.js +3 -3
  62. package/dist/nile-code-editor/theme.cjs.js +1 -1
  63. package/dist/nile-code-editor/theme.cjs.js.map +1 -1
  64. package/dist/nile-code-editor/theme.esm.js +1 -1
  65. package/dist/nile-dialog/index.cjs.js +1 -1
  66. package/dist/nile-dialog/index.esm.js +1 -1
  67. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  68. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  69. package/dist/nile-dialog/nile-dialog.esm.js +1 -1
  70. package/dist/nile-dialog/nile-dialog.test.cjs.js +1 -1
  71. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +1 -1
  72. package/dist/nile-dialog/nile-dialog.test.esm.js +1 -1
  73. package/dist/nile-drawer/index.cjs.js +1 -1
  74. package/dist/nile-drawer/index.esm.js +1 -1
  75. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  76. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  77. package/dist/nile-drawer/nile-drawer.esm.js +2 -2
  78. package/dist/nile-drawer/nile-drawer.test.cjs.js +1 -1
  79. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +1 -1
  80. package/dist/nile-drawer/nile-drawer.test.esm.js +1 -1
  81. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +1 -1
  82. package/dist/nile-dropdown/nile-dropdown.test.esm.js +1 -1
  83. package/dist/nile-empty-state/nile-empty-state.cjs.js +1 -1
  84. package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
  85. package/dist/nile-empty-state/nile-empty-state.esm.js +13 -13
  86. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +1 -1
  87. package/dist/nile-empty-state/nile-empty-state.test.esm.js +1 -1
  88. package/dist/nile-error-message/nile-error-message.test.cjs.js +1 -1
  89. package/dist/nile-error-message/nile-error-message.test.esm.js +1 -1
  90. package/dist/nile-error-notification/nile-error-notification.cjs.js +1 -1
  91. package/dist/nile-error-notification/nile-error-notification.cjs.js.map +1 -1
  92. package/dist/nile-error-notification/nile-error-notification.esm.js +4 -2
  93. package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
  94. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
  95. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +1 -1
  96. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -1
  97. package/dist/nile-file-preview/nile-file-preview.css.esm.js +170 -229
  98. package/dist/nile-file-preview/nile-file-preview.esm.js +2 -2
  99. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +1 -1
  100. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -1
  101. package/dist/nile-file-preview/nile-file-preview.template.esm.js +62 -59
  102. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +1 -1
  103. package/dist/nile-file-preview/nile-file-preview.test.esm.js +1 -1
  104. package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js +1 -1
  105. package/dist/nile-file-preview/types/nile-file-preview.enums.cjs.js.map +1 -1
  106. package/dist/nile-file-preview/types/nile-file-preview.enums.esm.js +1 -1
  107. package/dist/nile-file-preview/utils/index.cjs.js +1 -1
  108. package/dist/nile-file-preview/utils/index.esm.js +1 -1
  109. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +1 -1
  110. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +1 -1
  111. package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +1 -1
  112. package/dist/nile-file-upload/index.cjs.js +1 -1
  113. package/dist/nile-file-upload/index.esm.js +1 -1
  114. package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
  115. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
  116. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +1 -1
  117. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -1
  118. package/dist/nile-file-upload/nile-file-upload.css.esm.js +89 -142
  119. package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
  120. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +3 -3
  121. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -1
  122. package/dist/nile-file-upload/nile-file-upload.template.esm.js +98 -44
  123. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +1 -1
  124. package/dist/nile-file-upload/nile-file-upload.test.esm.js +1 -1
  125. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +1 -1
  126. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -1
  127. package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -1
  128. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +1 -1
  129. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -1
  130. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -1
  131. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +1 -2
  132. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -1
  133. package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -1
  134. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +1 -1
  135. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +1 -1
  136. package/dist/nile-form-group/nile-form-group.test.cjs.js +1 -1
  137. package/dist/nile-form-group/nile-form-group.test.esm.js +1 -1
  138. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +1 -1
  139. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +1 -1
  140. package/dist/nile-hero/nile-hero.test.cjs.js +1 -1
  141. package/dist/nile-hero/nile-hero.test.esm.js +1 -1
  142. package/dist/nile-icon/icons/svg/accessreview.cjs.js +1 -1
  143. package/dist/nile-icon/icons/svg/accessreview.cjs.js.map +1 -1
  144. package/dist/nile-icon/icons/svg/accessreview.esm.js +1 -1
  145. package/dist/nile-icon/icons/svg/agent.cjs.js +1 -1
  146. package/dist/nile-icon/icons/svg/agent.cjs.js.map +1 -1
  147. package/dist/nile-icon/icons/svg/agent.esm.js +1 -1
  148. package/dist/nile-icon/icons/svg/api.cjs.js +1 -1
  149. package/dist/nile-icon/icons/svg/api.cjs.js.map +1 -1
  150. package/dist/nile-icon/icons/svg/api.esm.js +1 -1
  151. package/dist/nile-icon/icons/svg/apply-filter.cjs.js +1 -1
  152. package/dist/nile-icon/icons/svg/apply-filter.cjs.js.map +1 -1
  153. package/dist/nile-icon/icons/svg/apply-filter.esm.js +1 -1
  154. package/dist/nile-icon/icons/svg/arrowdropdown.cjs.js +1 -1
  155. package/dist/nile-icon/icons/svg/arrowdropdown.cjs.js.map +1 -1
  156. package/dist/nile-icon/icons/svg/arrowdropdown.esm.js +1 -1
  157. package/dist/nile-icon/icons/svg/arrowdropup.cjs.js +1 -1
  158. package/dist/nile-icon/icons/svg/arrowdropup.cjs.js.map +1 -1
  159. package/dist/nile-icon/icons/svg/arrowdropup.esm.js +1 -1
  160. package/dist/nile-icon/icons/svg/bold-try.cjs.js +2 -0
  161. package/dist/nile-icon/icons/svg/bold-try.cjs.js.map +1 -0
  162. package/dist/nile-icon/icons/svg/bold-try.esm.js +1 -0
  163. package/dist/nile-icon/icons/svg/bold.cjs.js +2 -0
  164. package/dist/nile-icon/icons/svg/bold.cjs.js.map +1 -0
  165. package/dist/nile-icon/icons/svg/bold.esm.js +1 -0
  166. package/dist/nile-icon/icons/svg/center-align.cjs.js +2 -0
  167. package/dist/nile-icon/icons/svg/center-align.cjs.js.map +1 -0
  168. package/dist/nile-icon/icons/svg/center-align.esm.js +1 -0
  169. package/dist/nile-icon/icons/svg/database.cjs.js +1 -1
  170. package/dist/nile-icon/icons/svg/database.cjs.js.map +1 -1
  171. package/dist/nile-icon/icons/svg/database.esm.js +1 -1
  172. package/dist/nile-icon/icons/svg/done.cjs.js +1 -1
  173. package/dist/nile-icon/icons/svg/done.cjs.js.map +1 -1
  174. package/dist/nile-icon/icons/svg/done.esm.js +1 -1
  175. package/dist/nile-icon/icons/svg/dontmap.cjs.js +1 -1
  176. package/dist/nile-icon/icons/svg/dontmap.cjs.js.map +1 -1
  177. package/dist/nile-icon/icons/svg/dontmap.esm.js +1 -1
  178. package/dist/nile-icon/icons/svg/doublearrowleft.cjs.js +1 -1
  179. package/dist/nile-icon/icons/svg/doublearrowleft.cjs.js.map +1 -1
  180. package/dist/nile-icon/icons/svg/doublearrowleft.esm.js +1 -1
  181. package/dist/nile-icon/icons/svg/doublearrowright.cjs.js +1 -1
  182. package/dist/nile-icon/icons/svg/doublearrowright.cjs.js.map +1 -1
  183. package/dist/nile-icon/icons/svg/doublearrowright.esm.js +1 -1
  184. package/dist/nile-icon/icons/svg/drag.cjs.js +1 -1
  185. package/dist/nile-icon/icons/svg/drag.cjs.js.map +1 -1
  186. package/dist/nile-icon/icons/svg/drag.esm.js +1 -1
  187. package/dist/nile-icon/icons/svg/expand-06.cjs.js +1 -1
  188. package/dist/nile-icon/icons/svg/expand-06.cjs.js.map +1 -1
  189. package/dist/nile-icon/icons/svg/expand-06.esm.js +1 -1
  190. package/dist/nile-icon/icons/svg/expand.cjs.js +1 -1
  191. package/dist/nile-icon/icons/svg/expand.cjs.js.map +1 -1
  192. package/dist/nile-icon/icons/svg/expand.esm.js +1 -1
  193. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  194. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  195. package/dist/nile-icon/icons/svg/info.cjs.js +1 -1
  196. package/dist/nile-icon/icons/svg/info.cjs.js.map +1 -1
  197. package/dist/nile-icon/icons/svg/info.esm.js +1 -1
  198. package/dist/nile-icon/icons/svg/integer.cjs.js +1 -1
  199. package/dist/nile-icon/icons/svg/integer.cjs.js.map +1 -1
  200. package/dist/nile-icon/icons/svg/integer.esm.js +1 -1
  201. package/dist/nile-icon/icons/svg/itallic.cjs.js +2 -0
  202. package/dist/nile-icon/icons/svg/itallic.cjs.js.map +1 -0
  203. package/dist/nile-icon/icons/svg/itallic.esm.js +1 -0
  204. package/dist/nile-icon/icons/svg/justify-align.cjs.js +2 -0
  205. package/dist/nile-icon/icons/svg/justify-align.cjs.js.map +1 -0
  206. package/dist/nile-icon/icons/svg/justify-align.esm.js +1 -0
  207. package/dist/nile-icon/icons/svg/left-align.cjs.js +2 -0
  208. package/dist/nile-icon/icons/svg/left-align.cjs.js.map +1 -0
  209. package/dist/nile-icon/icons/svg/left-align.esm.js +1 -0
  210. package/dist/nile-icon/icons/svg/ng-activity.cjs.js +2 -0
  211. package/dist/nile-icon/icons/svg/ng-activity.cjs.js.map +1 -0
  212. package/dist/nile-icon/icons/svg/ng-activity.esm.js +1 -0
  213. package/dist/nile-icon/icons/svg/ng-align-center.cjs.js +2 -0
  214. package/dist/nile-icon/icons/svg/ng-align-center.cjs.js.map +1 -0
  215. package/dist/nile-icon/icons/svg/ng-align-center.esm.js +1 -0
  216. package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js +2 -0
  217. package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js.map +1 -0
  218. package/dist/nile-icon/icons/svg/ng-annotation-x.esm.js +1 -0
  219. package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js +2 -0
  220. package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js.map +1 -0
  221. package/dist/nile-icon/icons/svg/ng-arrow-down.esm.js +1 -0
  222. package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js +2 -0
  223. package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js.map +1 -0
  224. package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.esm.js +1 -0
  225. package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js +2 -0
  226. package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js.map +1 -0
  227. package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.esm.js +1 -0
  228. package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js +2 -0
  229. package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js.map +1 -0
  230. package/dist/nile-icon/icons/svg/ng-arrow-up.esm.js +1 -0
  231. package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js +2 -0
  232. package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js.map +1 -0
  233. package/dist/nile-icon/icons/svg/ng-bar-chart-12.esm.js +1 -0
  234. package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js +2 -0
  235. package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js.map +1 -0
  236. package/dist/nile-icon/icons/svg/ng-bell-01.esm.js +1 -0
  237. package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js +2 -0
  238. package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js.map +1 -0
  239. package/dist/nile-icon/icons/svg/ng-bell-ringing-04.esm.js +1 -0
  240. package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js +2 -0
  241. package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js.map +1 -0
  242. package/dist/nile-icon/icons/svg/ng-bold-01.esm.js +1 -0
  243. package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js +2 -0
  244. package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js.map +1 -0
  245. package/dist/nile-icon/icons/svg/ng-calendar-plus-02.esm.js +1 -0
  246. package/dist/nile-icon/icons/svg/ng-calendar.cjs.js +2 -0
  247. package/dist/nile-icon/icons/svg/ng-calendar.cjs.js.map +1 -0
  248. package/dist/nile-icon/icons/svg/ng-calendar.esm.js +1 -0
  249. package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js +2 -0
  250. package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js.map +1 -0
  251. package/dist/nile-icon/icons/svg/ng-check-circle.esm.js +1 -0
  252. package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js +2 -0
  253. package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js.map +1 -0
  254. package/dist/nile-icon/icons/svg/ng-check-square-broken.esm.js +1 -0
  255. package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js +2 -0
  256. package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js.map +1 -0
  257. package/dist/nile-icon/icons/svg/ng-chevron-down.esm.js +1 -0
  258. package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js +2 -0
  259. package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js.map +1 -0
  260. package/dist/nile-icon/icons/svg/ng-chevron-left.esm.js +1 -0
  261. package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js +2 -0
  262. package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js.map +1 -0
  263. package/dist/nile-icon/icons/svg/ng-chevron-right.esm.js +1 -0
  264. package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js +2 -0
  265. package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js.map +1 -0
  266. package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.esm.js +1 -0
  267. package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js +2 -0
  268. package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js.map +1 -0
  269. package/dist/nile-icon/icons/svg/ng-chevron-up-double.esm.js +1 -0
  270. package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js +2 -0
  271. package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js.map +1 -0
  272. package/dist/nile-icon/icons/svg/ng-chevron-up.esm.js +1 -0
  273. package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js +2 -0
  274. package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js.map +1 -0
  275. package/dist/nile-icon/icons/svg/ng-copy-03.esm.js +1 -0
  276. package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js +2 -0
  277. package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js.map +1 -0
  278. package/dist/nile-icon/icons/svg/ng-dots-grid.esm.js +1 -0
  279. package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js +2 -0
  280. package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js.map +1 -0
  281. package/dist/nile-icon/icons/svg/ng-dots-vertical.esm.js +1 -0
  282. package/dist/nile-icon/icons/svg/ng-download-01.cjs.js +2 -0
  283. package/dist/nile-icon/icons/svg/ng-download-01.cjs.js.map +1 -0
  284. package/dist/nile-icon/icons/svg/ng-download-01.esm.js +1 -0
  285. package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js +2 -0
  286. package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js.map +1 -0
  287. package/dist/nile-icon/icons/svg/ng-dropdown.esm.js +1 -0
  288. package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js +2 -0
  289. package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js.map +1 -0
  290. package/dist/nile-icon/icons/svg/ng-edit-02.esm.js +1 -0
  291. package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js +2 -0
  292. package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js.map +1 -0
  293. package/dist/nile-icon/icons/svg/ng-edit-05.esm.js +1 -0
  294. package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js +2 -0
  295. package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js.map +1 -0
  296. package/dist/nile-icon/icons/svg/ng-expand-06.esm.js +1 -0
  297. package/dist/nile-icon/icons/svg/ng-eye.cjs.js +2 -0
  298. package/dist/nile-icon/icons/svg/ng-eye.cjs.js.map +1 -0
  299. package/dist/nile-icon/icons/svg/ng-eye.esm.js +1 -0
  300. package/dist/nile-icon/icons/svg/ng-file-02.cjs.js +2 -0
  301. package/dist/nile-icon/icons/svg/ng-file-02.cjs.js.map +1 -0
  302. package/dist/nile-icon/icons/svg/ng-file-02.esm.js +1 -0
  303. package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js +2 -0
  304. package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js.map +1 -0
  305. package/dist/nile-icon/icons/svg/ng-file-check-02.esm.js +1 -0
  306. package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js +2 -0
  307. package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js.map +1 -0
  308. package/dist/nile-icon/icons/svg/ng-file-question-03.esm.js +1 -0
  309. package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js +2 -0
  310. package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js.map +1 -0
  311. package/dist/nile-icon/icons/svg/ng-filter-lines.esm.js +1 -0
  312. package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js +2 -0
  313. package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js.map +1 -0
  314. package/dist/nile-icon/icons/svg/ng-grid-01.esm.js +1 -0
  315. package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js +2 -0
  316. package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js.map +1 -0
  317. package/dist/nile-icon/icons/svg/ng-help-circle.esm.js +1 -0
  318. package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js +2 -0
  319. package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js.map +1 -0
  320. package/dist/nile-icon/icons/svg/ng-image-user-left.esm.js +1 -0
  321. package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js +2 -0
  322. package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js.map +1 -0
  323. package/dist/nile-icon/icons/svg/ng-info-circle.esm.js +1 -0
  324. package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js +2 -0
  325. package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js.map +1 -0
  326. package/dist/nile-icon/icons/svg/ng-italic-01.esm.js +1 -0
  327. package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js +2 -0
  328. package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js.map +1 -0
  329. package/dist/nile-icon/icons/svg/ng-layers-three-01.esm.js +1 -0
  330. package/dist/nile-icon/icons/svg/ng-list.cjs.js +2 -0
  331. package/dist/nile-icon/icons/svg/ng-list.cjs.js.map +1 -0
  332. package/dist/nile-icon/icons/svg/ng-list.esm.js +1 -0
  333. package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js +2 -0
  334. package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js.map +1 -0
  335. package/dist/nile-icon/icons/svg/ng-log-out-01.esm.js +1 -0
  336. package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js +2 -0
  337. package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js.map +1 -0
  338. package/dist/nile-icon/icons/svg/ng-mail-01.esm.js +1 -0
  339. package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js +2 -0
  340. package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js.map +1 -0
  341. package/dist/nile-icon/icons/svg/ng-mail-04.esm.js +1 -0
  342. package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js +2 -0
  343. package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js.map +1 -0
  344. package/dist/nile-icon/icons/svg/ng-menu-05.esm.js +1 -0
  345. package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js +2 -0
  346. package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js.map +1 -0
  347. package/dist/nile-icon/icons/svg/ng-message-text-square-01.esm.js +1 -0
  348. package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js +2 -0
  349. package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js.map +1 -0
  350. package/dist/nile-icon/icons/svg/ng-minimize-02.esm.js +1 -0
  351. package/dist/nile-icon/icons/svg/ng-plus.cjs.js +2 -0
  352. package/dist/nile-icon/icons/svg/ng-plus.cjs.js.map +1 -0
  353. package/dist/nile-icon/icons/svg/ng-plus.esm.js +1 -0
  354. package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js +2 -0
  355. package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js.map +1 -0
  356. package/dist/nile-icon/icons/svg/ng-refresh-cw-02.esm.js +1 -0
  357. package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js +2 -0
  358. package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js.map +1 -0
  359. package/dist/nile-icon/icons/svg/ng-rocket-02.esm.js +1 -0
  360. package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js +2 -0
  361. package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js.map +1 -0
  362. package/dist/nile-icon/icons/svg/ng-search-lg.esm.js +1 -0
  363. package/dist/nile-icon/icons/svg/ng-send-01.cjs.js +2 -0
  364. package/dist/nile-icon/icons/svg/ng-send-01.cjs.js.map +1 -0
  365. package/dist/nile-icon/icons/svg/ng-send-01.esm.js +1 -0
  366. package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js +2 -0
  367. package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js.map +1 -0
  368. package/dist/nile-icon/icons/svg/ng-settings-01.esm.js +1 -0
  369. package/dist/nile-icon/icons/svg/ng-share-04.cjs.js +2 -0
  370. package/dist/nile-icon/icons/svg/ng-share-04.cjs.js.map +1 -0
  371. package/dist/nile-icon/icons/svg/ng-share-04.esm.js +1 -0
  372. package/dist/nile-icon/icons/svg/ng-share-06.cjs.js +2 -0
  373. package/dist/nile-icon/icons/svg/ng-share-06.cjs.js.map +1 -0
  374. package/dist/nile-icon/icons/svg/ng-share-06.esm.js +1 -0
  375. package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js +2 -0
  376. package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js.map +1 -0
  377. package/dist/nile-icon/icons/svg/ng-stars-02.esm.js +1 -0
  378. package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js +2 -0
  379. package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js.map +1 -0
  380. package/dist/nile-icon/icons/svg/ng-trash-01.esm.js +1 -0
  381. package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js +2 -0
  382. package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js.map +1 -0
  383. package/dist/nile-icon/icons/svg/ng-trash-03.esm.js +1 -0
  384. package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js +2 -0
  385. package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js.map +1 -0
  386. package/dist/nile-icon/icons/svg/ng-trend-up-01.esm.js +1 -0
  387. package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js +2 -0
  388. package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js.map +1 -0
  389. package/dist/nile-icon/icons/svg/ng-underline-01.esm.js +1 -0
  390. package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js +2 -0
  391. package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js.map +1 -0
  392. package/dist/nile-icon/icons/svg/ng-upload-01.esm.js +1 -0
  393. package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js +2 -0
  394. package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js.map +1 -0
  395. package/dist/nile-icon/icons/svg/ng-upload-cloud-02.esm.js +1 -0
  396. package/dist/nile-icon/icons/svg/ng-user-01.cjs.js +2 -0
  397. package/dist/nile-icon/icons/svg/ng-user-01.cjs.js.map +1 -0
  398. package/dist/nile-icon/icons/svg/ng-user-01.esm.js +1 -0
  399. package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js +2 -0
  400. package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js.map +1 -0
  401. package/dist/nile-icon/icons/svg/ng-user-check-02-1.esm.js +1 -0
  402. package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js +2 -0
  403. package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js.map +1 -0
  404. package/dist/nile-icon/icons/svg/ng-user-check-02.esm.js +1 -0
  405. package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js +2 -0
  406. package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js.map +1 -0
  407. package/dist/nile-icon/icons/svg/ng-user-plus-02.esm.js +1 -0
  408. package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js +2 -0
  409. package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js.map +1 -0
  410. package/dist/nile-icon/icons/svg/ng-user-right-01.esm.js +1 -0
  411. package/dist/nile-icon/icons/svg/ng-users-01.cjs.js +2 -0
  412. package/dist/nile-icon/icons/svg/ng-users-01.cjs.js.map +1 -0
  413. package/dist/nile-icon/icons/svg/ng-users-01.esm.js +1 -0
  414. package/dist/nile-icon/icons/svg/ng-x-close.cjs.js +2 -0
  415. package/dist/nile-icon/icons/svg/ng-x-close.cjs.js.map +1 -0
  416. package/dist/nile-icon/icons/svg/ng-x-close.esm.js +1 -0
  417. package/dist/nile-icon/icons/svg/ng-x-square.cjs.js +2 -0
  418. package/dist/nile-icon/icons/svg/ng-x-square.cjs.js.map +1 -0
  419. package/dist/nile-icon/icons/svg/ng-x-square.esm.js +1 -0
  420. package/dist/nile-icon/icons/svg/nile-bold.cjs.js +2 -0
  421. package/dist/nile-icon/icons/svg/nile-bold.cjs.js.map +1 -0
  422. package/dist/nile-icon/icons/svg/nile-bold.esm.js +1 -0
  423. package/dist/nile-icon/icons/svg/nile-centeralign.cjs.js +2 -0
  424. package/dist/nile-icon/icons/svg/nile-centeralign.cjs.js.map +1 -0
  425. package/dist/nile-icon/icons/svg/nile-centeralign.esm.js +1 -0
  426. package/dist/nile-icon/icons/svg/nile-italic.cjs.js +2 -0
  427. package/dist/nile-icon/icons/svg/nile-italic.cjs.js.map +1 -0
  428. package/dist/nile-icon/icons/svg/nile-italic.esm.js +1 -0
  429. package/dist/nile-icon/icons/svg/nile-justify.cjs.js +2 -0
  430. package/dist/nile-icon/icons/svg/nile-justify.cjs.js.map +1 -0
  431. package/dist/nile-icon/icons/svg/nile-justify.esm.js +1 -0
  432. package/dist/nile-icon/icons/svg/nile-leftalign.cjs.js +2 -0
  433. package/dist/nile-icon/icons/svg/nile-leftalign.cjs.js.map +1 -0
  434. package/dist/nile-icon/icons/svg/nile-leftalign.esm.js +1 -0
  435. package/dist/nile-icon/icons/svg/nile-ol.cjs.js +2 -0
  436. package/dist/nile-icon/icons/svg/nile-ol.cjs.js.map +1 -0
  437. package/dist/nile-icon/icons/svg/nile-ol.esm.js +1 -0
  438. package/dist/nile-icon/icons/svg/nile-rightalign.cjs.js +2 -0
  439. package/dist/nile-icon/icons/svg/nile-rightalign.cjs.js.map +1 -0
  440. package/dist/nile-icon/icons/svg/nile-rightalign.esm.js +1 -0
  441. package/dist/nile-icon/icons/svg/nile-ul.cjs.js +2 -0
  442. package/dist/nile-icon/icons/svg/nile-ul.cjs.js.map +1 -0
  443. package/dist/nile-icon/icons/svg/nile-ul.esm.js +1 -0
  444. package/dist/nile-icon/icons/svg/nile-underline.cjs.js +2 -0
  445. package/dist/nile-icon/icons/svg/nile-underline.cjs.js.map +1 -0
  446. package/dist/nile-icon/icons/svg/nile-underline.esm.js +1 -0
  447. package/dist/nile-icon/icons/svg/ol.cjs.js +2 -0
  448. package/dist/nile-icon/icons/svg/ol.cjs.js.map +1 -0
  449. package/dist/nile-icon/icons/svg/ol.esm.js +1 -0
  450. package/dist/nile-icon/icons/svg/pluscircle.cjs.js +1 -1
  451. package/dist/nile-icon/icons/svg/pluscircle.cjs.js.map +1 -1
  452. package/dist/nile-icon/icons/svg/pluscircle.esm.js +1 -1
  453. package/dist/nile-icon/icons/svg/question.cjs.js +1 -1
  454. package/dist/nile-icon/icons/svg/question.cjs.js.map +1 -1
  455. package/dist/nile-icon/icons/svg/question.esm.js +1 -1
  456. package/dist/nile-icon/icons/svg/resource.cjs.js +1 -1
  457. package/dist/nile-icon/icons/svg/resource.cjs.js.map +1 -1
  458. package/dist/nile-icon/icons/svg/resource.esm.js +1 -1
  459. package/dist/nile-icon/icons/svg/right-align.cjs.js +2 -0
  460. package/dist/nile-icon/icons/svg/right-align.cjs.js.map +1 -0
  461. package/dist/nile-icon/icons/svg/right-align.esm.js +1 -0
  462. package/dist/nile-icon/icons/svg/sendescalation.cjs.js +1 -1
  463. package/dist/nile-icon/icons/svg/sendescalation.cjs.js.map +1 -1
  464. package/dist/nile-icon/icons/svg/sendescalation.esm.js +1 -1
  465. package/dist/nile-icon/icons/svg/sendreminder.cjs.js +1 -1
  466. package/dist/nile-icon/icons/svg/sendreminder.cjs.js.map +1 -1
  467. package/dist/nile-icon/icons/svg/sendreminder.esm.js +1 -1
  468. package/dist/nile-icon/icons/svg/timezone.cjs.js +1 -1
  469. package/dist/nile-icon/icons/svg/timezone.cjs.js.map +1 -1
  470. package/dist/nile-icon/icons/svg/timezone.esm.js +1 -1
  471. package/dist/nile-icon/icons/svg/ul.cjs.js +2 -0
  472. package/dist/nile-icon/icons/svg/ul.cjs.js.map +1 -0
  473. package/dist/nile-icon/icons/svg/ul.esm.js +1 -0
  474. package/dist/nile-icon/icons/svg/underline.cjs.js +2 -0
  475. package/dist/nile-icon/icons/svg/underline.cjs.js.map +1 -0
  476. package/dist/nile-icon/icons/svg/underline.esm.js +1 -0
  477. package/dist/nile-icon/icons/svg/unmute.cjs.js +1 -1
  478. package/dist/nile-icon/icons/svg/unmute.cjs.js.map +1 -1
  479. package/dist/nile-icon/icons/svg/unmute.esm.js +1 -1
  480. package/dist/nile-icon/icons/svg/upgrade.cjs.js +1 -1
  481. package/dist/nile-icon/icons/svg/upgrade.cjs.js.map +1 -1
  482. package/dist/nile-icon/icons/svg/upgrade.esm.js +1 -1
  483. package/dist/nile-icon/index.cjs.js +1 -1
  484. package/dist/nile-icon/index.cjs.js.map +1 -1
  485. package/dist/nile-icon/index.esm.js +1 -1
  486. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  487. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  488. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  489. package/dist/nile-icon-button/index.cjs.js +1 -1
  490. package/dist/nile-icon-button/index.esm.js +1 -1
  491. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  492. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  493. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  494. package/dist/nile-input/index.cjs.js +1 -1
  495. package/dist/nile-input/index.esm.js +1 -1
  496. package/dist/nile-input/nile-input.cjs.js +1 -1
  497. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  498. package/dist/nile-input/nile-input.esm.js +1 -1
  499. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  500. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  501. package/dist/nile-input/nile-input.test.esm.js +2 -2
  502. package/dist/nile-lightdomeditor/index.cjs.js +2 -0
  503. package/dist/nile-lightdomeditor/index.esm.js +1 -0
  504. package/dist/nile-lightdomeditor/nile-lightdomeditor.cjs.js +2 -0
  505. package/dist/nile-lightdomeditor/nile-lightdomeditor.cjs.js.map +1 -0
  506. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.cjs.js +2 -0
  507. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.cjs.js.map +1 -0
  508. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.esm.js +225 -0
  509. package/dist/nile-lightdomeditor/nile-lightdomeditor.esm.js +122 -0
  510. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  511. package/dist/nile-link/nile-link.test.esm.js +1 -1
  512. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  513. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  514. package/dist/nile-menu/nile-menu.css.cjs.js +1 -1
  515. package/dist/nile-menu/nile-menu.css.cjs.js.map +1 -1
  516. package/dist/nile-menu/nile-menu.css.esm.js +3 -3
  517. package/dist/nile-menu-item/index.cjs.js +1 -1
  518. package/dist/nile-menu-item/index.esm.js +1 -1
  519. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  520. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  521. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  522. package/dist/nile-option/index.cjs.js +1 -1
  523. package/dist/nile-option/index.esm.js +1 -1
  524. package/dist/nile-option/nile-option.cjs.js +1 -1
  525. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  526. package/dist/nile-option/nile-option.esm.js +2 -2
  527. package/dist/nile-popover/index.cjs.js +1 -1
  528. package/dist/nile-popover/index.esm.js +1 -1
  529. package/dist/nile-popover/nile-popover.cjs.js +11 -3
  530. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  531. package/dist/nile-popover/nile-popover.esm.js +13 -7
  532. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  533. package/dist/nile-popover/nile-popover.test.cjs.js.map +1 -1
  534. package/dist/nile-popover/nile-popover.test.esm.js +3 -3
  535. package/dist/nile-popup/nile-popup.cjs.js +1 -1
  536. package/dist/nile-popup/nile-popup.cjs.js.map +1 -1
  537. package/dist/nile-popup/nile-popup.esm.js +1 -1
  538. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  539. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  540. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  541. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  542. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  543. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  544. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  545. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  546. package/dist/nile-rich-text-editor/index.cjs.js +2 -0
  547. package/dist/nile-rich-text-editor/index.cjs.js.map +1 -0
  548. package/dist/nile-rich-text-editor/index.esm.js +1 -0
  549. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +2 -0
  550. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -0
  551. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +2 -0
  552. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -0
  553. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +44 -0
  554. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -0
  555. package/dist/nile-rich-text-editor/nile-rte-color.cjs.js +2 -0
  556. package/dist/nile-rich-text-editor/nile-rte-color.cjs.js.map +1 -0
  557. package/dist/nile-rich-text-editor/nile-rte-color.esm.js +1 -0
  558. package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js +2 -0
  559. package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js.map +1 -0
  560. package/dist/nile-rich-text-editor/nile-rte-divider.esm.js +1 -0
  561. package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js +2 -0
  562. package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js.map +1 -0
  563. package/dist/nile-rich-text-editor/nile-rte-mentions-item.esm.js +1 -0
  564. package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js +3 -0
  565. package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js.map +1 -0
  566. package/dist/nile-rich-text-editor/nile-rte-mentions.esm.js +1 -0
  567. package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js +2 -0
  568. package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js.map +1 -0
  569. package/dist/nile-rich-text-editor/nile-rte-preview.esm.js +1 -0
  570. package/dist/nile-rich-text-editor/nile-rte-select.cjs.js +2 -0
  571. package/dist/nile-rich-text-editor/nile-rte-select.cjs.js.map +1 -0
  572. package/dist/nile-rich-text-editor/nile-rte-select.esm.js +34 -0
  573. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js +2 -0
  574. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js.map +1 -0
  575. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.esm.js +1 -0
  576. package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js +2 -0
  577. package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js.map +1 -0
  578. package/dist/nile-rich-text-editor/nile-rte-toolbar.esm.js +1 -0
  579. package/dist/nile-rich-text-editor/utils.cjs.js +2 -0
  580. package/dist/nile-rich-text-editor/utils.cjs.js.map +1 -0
  581. package/dist/nile-rich-text-editor/utils.esm.js +1 -0
  582. package/dist/nile-richcodeeditor/index.cjs.js +2 -0
  583. package/dist/nile-richcodeeditor/index.cjs.js.map +1 -0
  584. package/dist/nile-richcodeeditor/index.esm.js +1 -0
  585. package/dist/nile-richcodeeditor/nile-richcodeeditor.cjs.js +2 -0
  586. package/dist/nile-richcodeeditor/nile-richcodeeditor.cjs.js.map +1 -0
  587. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.cjs.js +2 -0
  588. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.cjs.js.map +1 -0
  589. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.esm.js +5 -0
  590. package/dist/nile-richcodeeditor/nile-richcodeeditor.esm.js +66 -0
  591. package/dist/nile-select/index.cjs.js +1 -1
  592. package/dist/nile-select/index.esm.js +1 -1
  593. package/dist/nile-select/nile-select.cjs.js +1 -1
  594. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  595. package/dist/nile-select/nile-select.esm.js +1 -1
  596. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  597. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  598. package/dist/nile-select/nile-select.test.esm.js +1 -1
  599. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  600. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  601. package/dist/nile-tab/index.cjs.js +1 -1
  602. package/dist/nile-tab/index.esm.js +1 -1
  603. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  604. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  605. package/dist/nile-tab/nile-tab.esm.js +2 -2
  606. package/dist/nile-tab-group/index.cjs.js +1 -1
  607. package/dist/nile-tab-group/index.esm.js +1 -1
  608. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  609. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  610. package/dist/nile-tab-group/nile-tab-group.esm.js +2 -2
  611. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  612. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
  613. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  614. package/dist/nile-tag/index.cjs.js +1 -1
  615. package/dist/nile-tag/index.esm.js +1 -1
  616. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  617. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  618. package/dist/nile-tag/nile-tag.esm.js +1 -1
  619. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  620. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  621. package/dist/nile-toast/index.cjs.js +1 -1
  622. package/dist/nile-toast/index.esm.js +1 -1
  623. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  624. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  625. package/dist/nile-toast/nile-toast.esm.js +1 -1
  626. package/dist/nile-tree/index.cjs.js +1 -1
  627. package/dist/nile-tree/index.esm.js +1 -1
  628. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  629. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  630. package/dist/nile-tree/nile-tree.esm.js +1 -1
  631. package/dist/nile-tree-item/index.cjs.js +1 -1
  632. package/dist/nile-tree-item/index.esm.js +1 -1
  633. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  634. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  635. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  636. package/dist/src/index.d.ts +4 -2
  637. package/dist/src/index.js +4 -2
  638. package/dist/src/index.js.map +1 -1
  639. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +17 -0
  640. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +310 -0
  641. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +34 -0
  642. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +31 -0
  643. package/dist/src/nile-chip/nile-chip.js +1 -9
  644. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  645. package/dist/src/nile-code-editor/nile-code-editor.d.ts +2 -0
  646. package/dist/src/nile-code-editor/nile-code-editor.js +48 -6
  647. package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
  648. package/dist/src/nile-code-editor/theme.d.ts +110 -0
  649. package/dist/src/nile-code-editor/theme.js +110 -0
  650. package/dist/src/nile-code-editor/theme.js.map +1 -1
  651. package/dist/src/nile-empty-state/nile-empty-state.js +11 -11
  652. package/dist/src/nile-empty-state/nile-empty-state.js.map +1 -1
  653. package/dist/src/nile-error-notification/nile-error-notification.js +4 -2
  654. package/dist/src/nile-error-notification/nile-error-notification.js.map +1 -1
  655. package/dist/src/nile-file-preview/nile-file-preview.css.js +168 -227
  656. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
  657. package/dist/src/nile-file-preview/nile-file-preview.d.ts +1 -2
  658. package/dist/src/nile-file-preview/nile-file-preview.js +13 -14
  659. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
  660. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +2 -3
  661. package/dist/src/nile-file-preview/nile-file-preview.template.js +47 -51
  662. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
  663. package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +3 -3
  664. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +2 -2
  665. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -1
  666. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +0 -4
  667. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +0 -25
  668. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
  669. package/dist/src/nile-file-upload/nile-file-upload.css.js +87 -140
  670. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
  671. package/dist/src/nile-file-upload/nile-file-upload.d.ts +1 -4
  672. package/dist/src/nile-file-upload/nile-file-upload.js +20 -30
  673. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
  674. package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +5 -5
  675. package/dist/src/nile-file-upload/nile-file-upload.template.js +103 -57
  676. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
  677. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +3 -8
  678. package/dist/src/nile-file-upload/types/file-upload.enums.js +1 -6
  679. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
  680. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +4 -2
  681. package/dist/src/nile-file-upload/utils/drag-drop.util.js +21 -18
  682. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
  683. package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +1 -3
  684. package/dist/src/nile-file-upload/utils/file-validation.util.js +32 -83
  685. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
  686. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +47 -0
  687. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +16 -0
  688. package/dist/src/nile-icon/icons/svg/accessreview.d.ts +1 -1
  689. package/dist/src/nile-icon/icons/svg/accessreview.js +1 -1
  690. package/dist/src/nile-icon/icons/svg/accessreview.js.map +1 -1
  691. package/dist/src/nile-icon/icons/svg/agent.d.ts +1 -1
  692. package/dist/src/nile-icon/icons/svg/agent.js +1 -1
  693. package/dist/src/nile-icon/icons/svg/agent.js.map +1 -1
  694. package/dist/src/nile-icon/icons/svg/api.d.ts +1 -1
  695. package/dist/src/nile-icon/icons/svg/api.js +1 -1
  696. package/dist/src/nile-icon/icons/svg/api.js.map +1 -1
  697. package/dist/src/nile-icon/icons/svg/apply-filter.d.ts +1 -1
  698. package/dist/src/nile-icon/icons/svg/apply-filter.js +1 -1
  699. package/dist/src/nile-icon/icons/svg/apply-filter.js.map +1 -1
  700. package/dist/src/nile-icon/icons/svg/arrowdropdown.d.ts +1 -1
  701. package/dist/src/nile-icon/icons/svg/arrowdropdown.js +1 -1
  702. package/dist/src/nile-icon/icons/svg/arrowdropdown.js.map +1 -1
  703. package/dist/src/nile-icon/icons/svg/arrowdropup.d.ts +1 -1
  704. package/dist/src/nile-icon/icons/svg/arrowdropup.js +1 -1
  705. package/dist/src/nile-icon/icons/svg/arrowdropup.js.map +1 -1
  706. package/dist/src/nile-icon/icons/svg/bold-try.d.ts +5 -0
  707. package/dist/src/nile-icon/icons/svg/bold-try.js +5 -0
  708. package/dist/src/nile-icon/icons/svg/bold-try.js.map +1 -0
  709. package/dist/src/nile-icon/icons/svg/bold.d.ts +5 -0
  710. package/dist/src/nile-icon/icons/svg/bold.js +5 -0
  711. package/dist/src/nile-icon/icons/svg/bold.js.map +1 -0
  712. package/dist/src/nile-icon/icons/svg/center-align.d.ts +5 -0
  713. package/dist/src/nile-icon/icons/svg/center-align.js +5 -0
  714. package/dist/src/nile-icon/icons/svg/center-align.js.map +1 -0
  715. package/dist/src/nile-icon/icons/svg/database.d.ts +1 -1
  716. package/dist/src/nile-icon/icons/svg/database.js +1 -1
  717. package/dist/src/nile-icon/icons/svg/database.js.map +1 -1
  718. package/dist/src/nile-icon/icons/svg/done.d.ts +1 -1
  719. package/dist/src/nile-icon/icons/svg/done.js +1 -1
  720. package/dist/src/nile-icon/icons/svg/done.js.map +1 -1
  721. package/dist/src/nile-icon/icons/svg/dontmap.d.ts +1 -1
  722. package/dist/src/nile-icon/icons/svg/dontmap.js +1 -1
  723. package/dist/src/nile-icon/icons/svg/dontmap.js.map +1 -1
  724. package/dist/src/nile-icon/icons/svg/doublearrowleft.d.ts +1 -1
  725. package/dist/src/nile-icon/icons/svg/doublearrowleft.js +1 -1
  726. package/dist/src/nile-icon/icons/svg/doublearrowleft.js.map +1 -1
  727. package/dist/src/nile-icon/icons/svg/doublearrowright.d.ts +1 -1
  728. package/dist/src/nile-icon/icons/svg/doublearrowright.js +1 -1
  729. package/dist/src/nile-icon/icons/svg/doublearrowright.js.map +1 -1
  730. package/dist/src/nile-icon/icons/svg/drag.d.ts +1 -1
  731. package/dist/src/nile-icon/icons/svg/drag.js +1 -1
  732. package/dist/src/nile-icon/icons/svg/drag.js.map +1 -1
  733. package/dist/src/nile-icon/icons/svg/expand-06.d.ts +1 -1
  734. package/dist/src/nile-icon/icons/svg/expand-06.js +1 -1
  735. package/dist/src/nile-icon/icons/svg/expand-06.js.map +1 -1
  736. package/dist/src/nile-icon/icons/svg/expand.d.ts +1 -1
  737. package/dist/src/nile-icon/icons/svg/expand.js +1 -1
  738. package/dist/src/nile-icon/icons/svg/expand.js.map +1 -1
  739. package/dist/src/nile-icon/icons/svg/index.d.ts +25 -0
  740. package/dist/src/nile-icon/icons/svg/index.js +25 -0
  741. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  742. package/dist/src/nile-icon/icons/svg/info.d.ts +1 -1
  743. package/dist/src/nile-icon/icons/svg/info.js +1 -1
  744. package/dist/src/nile-icon/icons/svg/info.js.map +1 -1
  745. package/dist/src/nile-icon/icons/svg/integer.d.ts +1 -1
  746. package/dist/src/nile-icon/icons/svg/integer.js +1 -1
  747. package/dist/src/nile-icon/icons/svg/integer.js.map +1 -1
  748. package/dist/src/nile-icon/icons/svg/itallic.d.ts +5 -0
  749. package/dist/src/nile-icon/icons/svg/itallic.js +5 -0
  750. package/dist/src/nile-icon/icons/svg/itallic.js.map +1 -0
  751. package/dist/src/nile-icon/icons/svg/justify-align.d.ts +5 -0
  752. package/dist/src/nile-icon/icons/svg/justify-align.js +5 -0
  753. package/dist/src/nile-icon/icons/svg/justify-align.js.map +1 -0
  754. package/dist/src/nile-icon/icons/svg/left-align.d.ts +5 -0
  755. package/dist/src/nile-icon/icons/svg/left-align.js +5 -0
  756. package/dist/src/nile-icon/icons/svg/left-align.js.map +1 -0
  757. package/dist/src/nile-icon/icons/svg/nile-bold.d.ts +5 -0
  758. package/dist/src/nile-icon/icons/svg/nile-bold.js +5 -0
  759. package/dist/src/nile-icon/icons/svg/nile-bold.js.map +1 -0
  760. package/dist/src/nile-icon/icons/svg/nile-centeralign.d.ts +5 -0
  761. package/dist/src/nile-icon/icons/svg/nile-centeralign.js +5 -0
  762. package/dist/src/nile-icon/icons/svg/nile-centeralign.js.map +1 -0
  763. package/dist/src/nile-icon/icons/svg/nile-italic.d.ts +5 -0
  764. package/dist/src/nile-icon/icons/svg/nile-italic.js +5 -0
  765. package/dist/src/nile-icon/icons/svg/nile-italic.js.map +1 -0
  766. package/dist/src/nile-icon/icons/svg/nile-justify.d.ts +5 -0
  767. package/dist/src/nile-icon/icons/svg/nile-justify.js +5 -0
  768. package/dist/src/nile-icon/icons/svg/nile-justify.js.map +1 -0
  769. package/dist/src/nile-icon/icons/svg/nile-leftalign.d.ts +5 -0
  770. package/dist/src/nile-icon/icons/svg/nile-leftalign.js +5 -0
  771. package/dist/src/nile-icon/icons/svg/nile-leftalign.js.map +1 -0
  772. package/dist/src/nile-icon/icons/svg/nile-ol.d.ts +5 -0
  773. package/dist/src/nile-icon/icons/svg/nile-ol.js +5 -0
  774. package/dist/src/nile-icon/icons/svg/nile-ol.js.map +1 -0
  775. package/dist/src/nile-icon/icons/svg/nile-rightalign.d.ts +5 -0
  776. package/dist/src/nile-icon/icons/svg/nile-rightalign.js +5 -0
  777. package/dist/src/nile-icon/icons/svg/nile-rightalign.js.map +1 -0
  778. package/dist/src/nile-icon/icons/svg/nile-ul.d.ts +5 -0
  779. package/dist/src/nile-icon/icons/svg/nile-ul.js +5 -0
  780. package/dist/src/nile-icon/icons/svg/nile-ul.js.map +1 -0
  781. package/dist/src/nile-icon/icons/svg/nile-underline.d.ts +5 -0
  782. package/dist/src/nile-icon/icons/svg/nile-underline.js +5 -0
  783. package/dist/src/nile-icon/icons/svg/nile-underline.js.map +1 -0
  784. package/dist/src/nile-icon/icons/svg/ol.d.ts +5 -0
  785. package/dist/src/nile-icon/icons/svg/ol.js +5 -0
  786. package/dist/src/nile-icon/icons/svg/ol.js.map +1 -0
  787. package/dist/src/nile-icon/icons/svg/pluscircle.d.ts +1 -1
  788. package/dist/src/nile-icon/icons/svg/pluscircle.js +1 -1
  789. package/dist/src/nile-icon/icons/svg/pluscircle.js.map +1 -1
  790. package/dist/src/nile-icon/icons/svg/question.d.ts +1 -1
  791. package/dist/src/nile-icon/icons/svg/question.js +1 -1
  792. package/dist/src/nile-icon/icons/svg/question.js.map +1 -1
  793. package/dist/src/nile-icon/icons/svg/resource.d.ts +1 -1
  794. package/dist/src/nile-icon/icons/svg/resource.js +1 -1
  795. package/dist/src/nile-icon/icons/svg/resource.js.map +1 -1
  796. package/dist/src/nile-icon/icons/svg/right-align.d.ts +5 -0
  797. package/dist/src/nile-icon/icons/svg/right-align.js +5 -0
  798. package/dist/src/nile-icon/icons/svg/right-align.js.map +1 -0
  799. package/dist/src/nile-icon/icons/svg/sendescalation.d.ts +1 -1
  800. package/dist/src/nile-icon/icons/svg/sendescalation.js +1 -1
  801. package/dist/src/nile-icon/icons/svg/sendescalation.js.map +1 -1
  802. package/dist/src/nile-icon/icons/svg/sendreminder.d.ts +1 -1
  803. package/dist/src/nile-icon/icons/svg/sendreminder.js +1 -1
  804. package/dist/src/nile-icon/icons/svg/sendreminder.js.map +1 -1
  805. package/dist/src/nile-icon/icons/svg/timezone.d.ts +1 -1
  806. package/dist/src/nile-icon/icons/svg/timezone.js +1 -1
  807. package/dist/src/nile-icon/icons/svg/timezone.js.map +1 -1
  808. package/dist/src/nile-icon/icons/svg/ul.d.ts +5 -0
  809. package/dist/src/nile-icon/icons/svg/ul.js +5 -0
  810. package/dist/src/nile-icon/icons/svg/ul.js.map +1 -0
  811. package/dist/src/nile-icon/icons/svg/underline.d.ts +5 -0
  812. package/dist/src/nile-icon/icons/svg/underline.js +5 -0
  813. package/dist/src/nile-icon/icons/svg/underline.js.map +1 -0
  814. package/dist/src/nile-icon/icons/svg/unmute.d.ts +1 -1
  815. package/dist/src/nile-icon/icons/svg/unmute.js +1 -1
  816. package/dist/src/nile-icon/icons/svg/unmute.js.map +1 -1
  817. package/dist/src/nile-icon/icons/svg/upgrade.d.ts +1 -1
  818. package/dist/src/nile-icon/icons/svg/upgrade.js +1 -1
  819. package/dist/src/nile-icon/icons/svg/upgrade.js.map +1 -1
  820. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +75 -0
  821. package/dist/src/nile-lightdomeditor/index.d.ts +1 -0
  822. package/dist/src/nile-lightdomeditor/index.js +2 -0
  823. package/dist/src/nile-lightdomeditor/index.js.map +1 -0
  824. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.d.ts +6 -0
  825. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.js +237 -0
  826. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.js.map +1 -0
  827. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.d.ts +74 -0
  828. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.js +591 -0
  829. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.js.map +1 -0
  830. package/dist/src/nile-lightdomeditor/utils/nile-mention.d.ts +13 -0
  831. package/dist/src/nile-lightdomeditor/utils/nile-mention.js +47 -0
  832. package/dist/src/nile-lightdomeditor/utils/nile-mention.js.map +1 -0
  833. package/dist/src/nile-markdowneditor/index.d.ts +1 -0
  834. package/dist/src/nile-markdowneditor/index.js +2 -0
  835. package/dist/src/nile-markdowneditor/index.js.map +1 -0
  836. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.d.ts +12 -0
  837. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.js +17 -0
  838. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.js.map +1 -0
  839. package/dist/src/nile-markdowneditor/nile-markdowneditor.d.ts +32 -0
  840. package/dist/src/nile-markdowneditor/nile-markdowneditor.js +43 -0
  841. package/dist/src/nile-markdowneditor/nile-markdowneditor.js.map +1 -0
  842. package/dist/src/nile-menu/nile-menu.css.js +1 -1
  843. package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
  844. package/dist/src/nile-option/nile-option.d.ts +3 -1
  845. package/dist/src/nile-option/nile-option.js +9 -0
  846. package/dist/src/nile-option/nile-option.js.map +1 -1
  847. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +22 -0
  848. package/dist/src/nile-popup/nile-popup.js +20 -1
  849. package/dist/src/nile-popup/nile-popup.js.map +1 -1
  850. package/dist/src/nile-prosemirror-poc/index.d.ts +1 -0
  851. package/dist/src/nile-prosemirror-poc/index.js +2 -0
  852. package/dist/src/nile-prosemirror-poc/index.js.map +1 -0
  853. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.d.ts +12 -0
  854. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.js +17 -0
  855. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.js.map +1 -0
  856. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.d.ts +24 -0
  857. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.js +190 -0
  858. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.js.map +1 -0
  859. package/dist/src/nile-rich-text-editor/index.d.ts +1 -0
  860. package/dist/src/nile-rich-text-editor/index.js +2 -0
  861. package/dist/src/nile-rich-text-editor/index.js.map +1 -0
  862. package/dist/src/{nile-slider/nile-slider.css.d.ts → nile-rich-text-editor/nile-rich-text-editor.css.d.ts} +0 -3
  863. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +48 -0
  864. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -0
  865. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +54 -0
  866. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +544 -0
  867. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -0
  868. package/dist/src/nile-rich-text-editor/nile-rte-color.d.ts +14 -0
  869. package/dist/src/nile-rich-text-editor/nile-rte-color.js +28 -0
  870. package/dist/src/nile-rich-text-editor/nile-rte-color.js.map +1 -0
  871. package/dist/src/nile-rich-text-editor/nile-rte-divider.d.ts +10 -0
  872. package/dist/src/nile-rich-text-editor/nile-rte-divider.js +12 -0
  873. package/dist/src/nile-rich-text-editor/nile-rte-divider.js.map +1 -0
  874. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.d.ts +18 -0
  875. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js +47 -0
  876. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js.map +1 -0
  877. package/dist/src/nile-rich-text-editor/nile-rte-mentions.d.ts +57 -0
  878. package/dist/src/nile-rich-text-editor/nile-rte-mentions.js +437 -0
  879. package/dist/src/nile-rich-text-editor/nile-rte-mentions.js.map +1 -0
  880. package/dist/src/nile-rich-text-editor/nile-rte-preview.d.ts +10 -0
  881. package/dist/src/nile-rich-text-editor/nile-rte-preview.js +12 -0
  882. package/dist/src/nile-rich-text-editor/nile-rte-preview.js.map +1 -0
  883. package/dist/src/nile-rich-text-editor/nile-rte-select.d.ts +23 -0
  884. package/dist/src/nile-rich-text-editor/nile-rte-select.js +167 -0
  885. package/dist/src/nile-rich-text-editor/nile-rte-select.js.map +1 -0
  886. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.d.ts +12 -0
  887. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js +23 -0
  888. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js.map +1 -0
  889. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.d.ts +10 -0
  890. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js +12 -0
  891. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js.map +1 -0
  892. package/dist/src/nile-rich-text-editor/nille-rte-mention.d.ts +21 -0
  893. package/dist/src/nile-rich-text-editor/nille-rte-mention.js +47 -0
  894. package/dist/src/nile-rich-text-editor/nille-rte-mention.js.map +1 -0
  895. package/dist/src/nile-rich-text-editor/nille-rte-mentions.d.ts +21 -0
  896. package/dist/src/nile-rich-text-editor/nille-rte-mentions.js +47 -0
  897. package/dist/src/nile-rich-text-editor/nille-rte-mentions.js.map +1 -0
  898. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.d.ts +0 -0
  899. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.js +2 -0
  900. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.js.map +1 -0
  901. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.d.ts +8 -0
  902. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.js +39 -0
  903. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.js.map +1 -0
  904. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.d.ts +0 -0
  905. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.js +2 -0
  906. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.js.map +1 -0
  907. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.d.ts +12 -0
  908. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.js +24 -0
  909. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.js.map +1 -0
  910. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.d.ts +25 -0
  911. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.js +89 -0
  912. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.js.map +1 -0
  913. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.d.ts +12 -0
  914. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.js +47 -0
  915. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.js.map +1 -0
  916. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.d.ts +7 -0
  917. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.js +28 -0
  918. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.js.map +1 -0
  919. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.d.ts +6 -0
  920. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.js +237 -0
  921. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.js.map +1 -0
  922. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.d.ts +5 -0
  923. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.js +26 -0
  924. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.js.map +1 -0
  925. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.d.ts +6 -0
  926. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.js +237 -0
  927. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.js.map +1 -0
  928. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.d.ts +8 -0
  929. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.js +36 -0
  930. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.js.map +1 -0
  931. package/dist/src/nile-rich-text-editor/utils.d.ts +12 -0
  932. package/dist/src/nile-rich-text-editor/utils.js +234 -0
  933. package/dist/src/nile-rich-text-editor/utils.js.map +1 -0
  934. package/dist/src/nile-richcodeeditor/index.d.ts +1 -0
  935. package/dist/src/nile-richcodeeditor/index.js +2 -0
  936. package/dist/src/nile-richcodeeditor/index.js.map +1 -0
  937. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.d.ts +12 -0
  938. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.js +17 -0
  939. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.js.map +1 -0
  940. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.d.ts +31 -0
  941. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.js +203 -0
  942. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.js.map +1 -0
  943. package/dist/src/nile-richeditor/index.d.ts +1 -0
  944. package/dist/src/nile-richeditor/index.js +2 -0
  945. package/dist/src/nile-richeditor/index.js.map +1 -0
  946. package/dist/src/nile-richeditor/nile-richeditor.css.d.ts +12 -0
  947. package/dist/src/nile-richeditor/nile-richeditor.css.js +17 -0
  948. package/dist/src/nile-richeditor/nile-richeditor.css.js.map +1 -0
  949. package/dist/src/nile-richeditor/nile-richeditor.d.ts +19 -0
  950. package/dist/src/nile-richeditor/nile-richeditor.js +234 -0
  951. package/dist/src/nile-richeditor/nile-richeditor.js.map +1 -0
  952. package/dist/src/nile-richtexteditor/index.d.ts +1 -0
  953. package/dist/src/nile-richtexteditor/index.js +2 -0
  954. package/dist/src/nile-richtexteditor/index.js.map +1 -0
  955. package/dist/src/nile-richtexteditor/nile-richtexteditor.css.d.ts +6 -0
  956. package/dist/src/nile-richtexteditor/nile-richtexteditor.css.js +237 -0
  957. package/dist/src/nile-richtexteditor/nile-richtexteditor.css.js.map +1 -0
  958. package/dist/src/nile-richtexteditor/nile-richtexteditor.d.ts +32 -0
  959. package/dist/src/nile-richtexteditor/nile-richtexteditor.js +46 -0
  960. package/dist/src/nile-richtexteditor/nile-richtexteditor.js.map +1 -0
  961. package/dist/src/nile-richtexteditor/utils/nile-mention.d.ts +13 -0
  962. package/dist/src/nile-richtexteditor/utils/nile-mention.js +47 -0
  963. package/dist/src/nile-richtexteditor/utils/nile-mention.js.map +1 -0
  964. package/dist/src/nile-select/nile-select.d.ts +3 -1
  965. package/dist/src/nile-select/nile-select.js +11 -0
  966. package/dist/src/nile-select/nile-select.js.map +1 -1
  967. package/dist/src/nile-tab/nile-tab.js +1 -1
  968. package/dist/src/nile-tab/nile-tab.js.map +1 -1
  969. package/dist/tsconfig.tsbuildinfo +1 -1
  970. package/package.json +7 -3
  971. package/rollup.config.js +27 -39
  972. package/src/index.ts +5 -3
  973. package/src/nile-chip/nile-chip.ts +1 -9
  974. package/src/nile-code-editor/nile-code-editor.ts +55 -6
  975. package/src/nile-code-editor/theme.ts +111 -0
  976. package/src/nile-empty-state/nile-empty-state.ts +11 -11
  977. package/src/nile-error-notification/nile-error-notification.ts +4 -3
  978. package/src/nile-icon/icons/svg/accessreview.ts +1 -1
  979. package/src/nile-icon/icons/svg/agent.ts +1 -1
  980. package/src/nile-icon/icons/svg/api.ts +1 -1
  981. package/src/nile-icon/icons/svg/apply-filter.ts +1 -1
  982. package/src/nile-icon/icons/svg/arrowdropdown.ts +1 -1
  983. package/src/nile-icon/icons/svg/arrowdropup.ts +1 -1
  984. package/src/nile-icon/icons/svg/attribute.ts +5 -0
  985. package/src/nile-icon/icons/svg/bold-try.ts +5 -0
  986. package/src/nile-icon/icons/svg/bold.ts +5 -0
  987. package/src/nile-icon/icons/svg/center-align.ts +5 -0
  988. package/src/nile-icon/icons/svg/class.ts +5 -0
  989. package/src/nile-icon/icons/svg/column-add.ts +5 -0
  990. package/src/nile-icon/icons/svg/database.ts +1 -1
  991. package/src/nile-icon/icons/svg/done.ts +1 -1
  992. package/src/nile-icon/icons/svg/dontmap.ts +1 -1
  993. package/src/nile-icon/icons/svg/doublearrowleft.ts +1 -1
  994. package/src/nile-icon/icons/svg/doublearrowright.ts +1 -1
  995. package/src/nile-icon/icons/svg/drag.ts +1 -1
  996. package/src/nile-icon/icons/svg/expand-06.ts +1 -1
  997. package/src/nile-icon/icons/svg/expand.ts +1 -1
  998. package/src/nile-icon/icons/svg/function.ts +5 -0
  999. package/src/nile-icon/icons/svg/index.ts +25 -0
  1000. package/src/nile-icon/icons/svg/info.ts +1 -1
  1001. package/src/nile-icon/icons/svg/integer.ts +1 -1
  1002. package/src/nile-icon/icons/svg/itallic.ts +5 -0
  1003. package/src/nile-icon/icons/svg/justify-align.ts +5 -0
  1004. package/src/nile-icon/icons/svg/keyword.ts +5 -0
  1005. package/src/nile-icon/icons/svg/left-align.ts +5 -0
  1006. package/src/nile-icon/icons/svg/nile-bold.ts +5 -0
  1007. package/src/nile-icon/icons/svg/nile-centeralign.ts +5 -0
  1008. package/src/nile-icon/icons/svg/nile-italic.ts +5 -0
  1009. package/src/nile-icon/icons/svg/nile-justify.ts +5 -0
  1010. package/src/nile-icon/icons/svg/nile-leftalign.ts +5 -0
  1011. package/src/nile-icon/icons/svg/nile-ol.ts +5 -0
  1012. package/src/nile-icon/icons/svg/nile-rightalign.ts +5 -0
  1013. package/src/nile-icon/icons/svg/nile-ul.ts +5 -0
  1014. package/src/nile-icon/icons/svg/nile-underline.ts +5 -0
  1015. package/src/nile-icon/icons/svg/ol.ts +5 -0
  1016. package/src/nile-icon/icons/svg/pluscircle.ts +1 -1
  1017. package/src/nile-icon/icons/svg/question.ts +1 -1
  1018. package/src/nile-icon/icons/svg/resource.ts +1 -1
  1019. package/src/nile-icon/icons/svg/right-align.ts +5 -0
  1020. package/src/nile-icon/icons/svg/savings.ts +5 -0
  1021. package/src/nile-icon/icons/svg/sendescalation.ts +1 -1
  1022. package/src/nile-icon/icons/svg/sendreminder.ts +1 -1
  1023. package/src/nile-icon/icons/svg/timezone.ts +1 -1
  1024. package/src/nile-icon/icons/svg/ul.ts +5 -0
  1025. package/src/nile-icon/icons/svg/underline.ts +5 -0
  1026. package/src/nile-icon/icons/svg/unmute.ts +1 -1
  1027. package/src/nile-icon/icons/svg/upgrade.ts +1 -1
  1028. package/src/nile-lightdomeditor/index.ts +1 -0
  1029. package/src/nile-lightdomeditor/nile-lightdomeditor.css.ts +238 -0
  1030. package/src/nile-lightdomeditor/nile-lightdomeditor.ts +523 -0
  1031. package/src/nile-menu/nile-menu.css.ts +1 -1
  1032. package/src/nile-option/nile-option.ts +9 -1
  1033. package/src/nile-pagination/index.ts +1 -0
  1034. package/src/nile-pagination/nile-pagination-utils.ts +63 -0
  1035. package/src/nile-pagination/nile-pagination.css.ts +252 -0
  1036. package/src/nile-pagination/nile-pagination.ts +361 -0
  1037. package/src/nile-popup/nile-popup.ts +20 -3
  1038. package/src/nile-rich-text-editor/index.ts +1 -0
  1039. package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +49 -0
  1040. package/src/nile-rich-text-editor/nile-rich-text-editor.ts +568 -0
  1041. package/src/nile-rich-text-editor/nile-rte-color.ts +14 -0
  1042. package/src/nile-rich-text-editor/nile-rte-divider.ts +9 -0
  1043. package/src/nile-rich-text-editor/nile-rte-mentions-item.ts +42 -0
  1044. package/src/nile-rich-text-editor/nile-rte-mentions.ts +460 -0
  1045. package/src/nile-rich-text-editor/nile-rte-preview.ts +9 -0
  1046. package/src/nile-rich-text-editor/nile-rte-select.ts +169 -0
  1047. package/src/nile-rich-text-editor/nile-rte-toolbar-item.ts +13 -0
  1048. package/src/nile-rich-text-editor/nile-rte-toolbar.ts +9 -0
  1049. package/src/nile-rich-text-editor/utils.ts +179 -0
  1050. package/src/nile-richcodeeditor/index.ts +1 -0
  1051. package/src/nile-richcodeeditor/nile-richcodeeditor.css.ts +19 -0
  1052. package/src/nile-richcodeeditor/nile-richcodeeditor.ts +192 -0
  1053. package/src/nile-select/nile-select.ts +14 -1
  1054. package/src/nile-tab/nile-tab.ts +1 -1
  1055. package/vscode-html-custom-data.json +199 -145
  1056. package/demo/filenames.txt +0 -1
  1057. package/demo/filenames.txt +0 -1
  1058. package/dist/aquera-nile-elements-0.1.57-beta-2.0.tgz +0 -0
  1059. package/dist/fixture-cb376a7f.cjs.js.map +0 -1
  1060. package/dist/nile-slider/index.cjs.js +0 -2
  1061. package/dist/nile-slider/index.esm.js +0 -1
  1062. package/dist/nile-slider/nile-slider.cjs.js +0 -2
  1063. package/dist/nile-slider/nile-slider.cjs.js.map +0 -1
  1064. package/dist/nile-slider/nile-slider.css.cjs.js +0 -2
  1065. package/dist/nile-slider/nile-slider.css.cjs.js.map +0 -1
  1066. package/dist/nile-slider/nile-slider.css.esm.js +0 -106
  1067. package/dist/nile-slider/nile-slider.esm.js +0 -27
  1068. package/dist/nile-slider/nile-slider.template.cjs.js +0 -2
  1069. package/dist/nile-slider/nile-slider.template.cjs.js.map +0 -1
  1070. package/dist/nile-slider/nile-slider.template.esm.js +0 -59
  1071. package/dist/nile-slider/types/nile-slider.enums.cjs.js +0 -2
  1072. package/dist/nile-slider/types/nile-slider.enums.cjs.js.map +0 -1
  1073. package/dist/nile-slider/types/nile-slider.enums.esm.js +0 -1
  1074. package/dist/nile-slider/types/nile-slider.types.cjs.js +0 -2
  1075. package/dist/nile-slider/types/nile-slider.types.cjs.js.map +0 -1
  1076. package/dist/nile-slider/types/nile-slider.types.esm.js +0 -1
  1077. package/dist/nile-slider/utils/nile-slider.utils.cjs.js +0 -2
  1078. package/dist/nile-slider/utils/nile-slider.utils.cjs.js.map +0 -1
  1079. package/dist/nile-slider/utils/nile-slider.utils.esm.js +0 -1
  1080. package/dist/src/internal/resizable-table-helper.d.ts +0 -59
  1081. package/dist/src/internal/resizable-table-helper.js +0 -111
  1082. package/dist/src/internal/resizable-table-helper.js.map +0 -1
  1083. package/dist/src/internal/resizable-table-styles.d.ts +0 -16
  1084. package/dist/src/internal/resizable-table-styles.js +0 -149
  1085. package/dist/src/internal/resizable-table-styles.js.map +0 -1
  1086. package/dist/src/nile-icon/icons/svg/ng-building-01.d.ts +0 -5
  1087. package/dist/src/nile-icon/icons/svg/ng-building-01.js +0 -5
  1088. package/dist/src/nile-icon/icons/svg/ng-building-01.js.map +0 -1
  1089. package/dist/src/nile-icon/icons/svg/ng-building-05.d.ts +0 -5
  1090. package/dist/src/nile-icon/icons/svg/ng-building-05.js +0 -5
  1091. package/dist/src/nile-icon/icons/svg/ng-building-05.js.map +0 -1
  1092. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.d.ts +0 -5
  1093. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.js +0 -5
  1094. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.js.map +0 -1
  1095. package/dist/src/nile-icon/icons/svg/ng-eye-off.d.ts +0 -5
  1096. package/dist/src/nile-icon/icons/svg/ng-eye-off.js +0 -5
  1097. package/dist/src/nile-icon/icons/svg/ng-eye-off.js.map +0 -1
  1098. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.d.ts +0 -5
  1099. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.js +0 -5
  1100. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.js.map +0 -1
  1101. package/dist/src/nile-select/virtual-scroll-helper.d.ts +0 -9
  1102. package/dist/src/nile-select/virtual-scroll-helper.js +0 -51
  1103. package/dist/src/nile-select/virtual-scroll-helper.js.map +0 -1
  1104. package/dist/src/nile-slider/index.d.ts +0 -1
  1105. package/dist/src/nile-slider/index.js +0 -2
  1106. package/dist/src/nile-slider/index.js.map +0 -1
  1107. package/dist/src/nile-slider/nile-slider.css.js +0 -118
  1108. package/dist/src/nile-slider/nile-slider.css.js.map +0 -1
  1109. package/dist/src/nile-slider/nile-slider.d.ts +0 -48
  1110. package/dist/src/nile-slider/nile-slider.js +0 -217
  1111. package/dist/src/nile-slider/nile-slider.js.map +0 -1
  1112. package/dist/src/nile-slider/nile-slider.template.d.ts +0 -5
  1113. package/dist/src/nile-slider/nile-slider.template.js +0 -73
  1114. package/dist/src/nile-slider/nile-slider.template.js.map +0 -1
  1115. package/dist/src/nile-slider/types/nile-slider.enums.d.ts +0 -10
  1116. package/dist/src/nile-slider/types/nile-slider.enums.js +0 -2
  1117. package/dist/src/nile-slider/types/nile-slider.enums.js.map +0 -1
  1118. package/dist/src/nile-slider/types/nile-slider.types.d.ts +0 -1
  1119. package/dist/src/nile-slider/types/nile-slider.types.js +0 -2
  1120. package/dist/src/nile-slider/types/nile-slider.types.js.map +0 -1
  1121. package/dist/src/nile-slider/utils/nile-slider.utils.d.ts +0 -11
  1122. package/dist/src/nile-slider/utils/nile-slider.utils.js +0 -99
  1123. package/dist/src/nile-slider/utils/nile-slider.utils.js.map +0 -1
  1124. package/dist/src/nile-virtual-select/index.d.ts +0 -1
  1125. package/dist/src/nile-virtual-select/index.js +0 -2
  1126. package/dist/src/nile-virtual-select/index.js.map +0 -1
  1127. package/dist/src/nile-virtual-select/nile-virtual-select.css.d.ts +0 -12
  1128. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +0 -489
  1129. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +0 -1
  1130. package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +0 -266
  1131. package/dist/src/nile-virtual-select/nile-virtual-select.js +0 -1226
  1132. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +0 -1
  1133. package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +0 -7
  1134. package/dist/src/nile-virtual-select/nile-virtual-select.test.js +0 -631
  1135. package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +0 -1
  1136. package/dist/src/nile-virtual-select/renderer.d.ts +0 -16
  1137. package/dist/src/nile-virtual-select/renderer.js +0 -71
  1138. package/dist/src/nile-virtual-select/renderer.js.map +0 -1
  1139. package/dist/src/nile-virtual-select/search-manager.d.ts +0 -12
  1140. package/dist/src/nile-virtual-select/search-manager.js +0 -40
  1141. package/dist/src/nile-virtual-select/search-manager.js.map +0 -1
  1142. package/dist/src/nile-virtual-select/selection-manager.d.ts +0 -12
  1143. package/dist/src/nile-virtual-select/selection-manager.js +0 -64
  1144. package/dist/src/nile-virtual-select/selection-manager.js.map +0 -1
  1145. package/dist/src/nile-virtual-select/types.d.ts +0 -50
  1146. package/dist/src/nile-virtual-select/types.js +0 -8
  1147. package/dist/src/nile-virtual-select/types.js.map +0 -1
  1148. package/src/nile-file-preview/index.ts +0 -1
  1149. package/src/nile-file-preview/nile-file-preview.css.ts +0 -629
  1150. package/src/nile-file-preview/nile-file-preview.template.ts +0 -259
  1151. package/src/nile-file-preview/nile-file-preview.test.ts +0 -38
  1152. package/src/nile-file-preview/nile-file-preview.ts +0 -176
  1153. package/src/nile-file-preview/types/index.ts +0 -2
  1154. package/src/nile-file-preview/types/nile-file-preview.enums.ts +0 -31
  1155. package/src/nile-file-preview/types/nile-file-preview.interface.ts +0 -4
  1156. package/src/nile-file-preview/utils/index.ts +0 -1
  1157. package/src/nile-file-preview/utils/nile-file-preview.util.ts +0 -72
  1158. package/src/nile-file-upload/index.ts +0 -1
  1159. package/src/nile-file-upload/nile-file-upload.css.ts +0 -624
  1160. package/src/nile-file-upload/nile-file-upload.template.ts +0 -192
  1161. package/src/nile-file-upload/nile-file-upload.test.ts +0 -38
  1162. package/src/nile-file-upload/nile-file-upload.ts +0 -157
  1163. package/src/nile-file-upload/types/file-upload.enums.ts +0 -44
  1164. package/src/nile-file-upload/types/file-upload.type.ts +0 -5
  1165. package/src/nile-file-upload/types/index.ts +0 -2
  1166. package/src/nile-file-upload/utils/drag-drop.util.ts +0 -106
  1167. package/src/nile-file-upload/utils/file-validation.util.ts +0 -218
  1168. /package/dist/{nile-slider → nile-lightdomeditor}/index.cjs.js.map +0 -0
@@ -1,4 +1,4 @@
1
- import{__decorate as t}from"tslib";import{classMap as e}from"lit/directives/class-map.js";import{query as n,property as i,customElement as o}from"lit/decorators.js";import{html as r}from"lit";import{N as a}from"../internal/nile-element.esm.js";import{s}from"./nile-popup.css.esm.js";const l=Math.min,c=Math.max,u=Math.round,f=Math.floor,h=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function m(t,e,n){return c(t,l(e,n))}function y(t,e){return"function"==typeof t?t(e):t}function b(t){return t.split("-")[0]}function v(t){return t.split("-")[1]}function g(t){return"x"===t?"y":"x"}function w(t){return"y"===t?"height":"width"}function x(t){return["top","bottom"].includes(b(t))?"y":"x"}function A(t){return g(x(t))}function z(t){return t.replace(/start|end/g,(t=>p[t]))}function S(t){return t.replace(/left|right|bottom|top/g,(t=>d[t]))}function k(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function P(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function O(t,e,n){let{reference:i,floating:o}=t;const r=x(e),a=A(e),s=w(a),l=b(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let d;switch(l){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y}}switch(v(e)){case"start":d[a]-=h*(n&&c?-1:1);break;case"end":d[a]+=h*(n&&c?-1:1)}return d}async function $(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=y(e,t),p=k(d),m=s[h?"floating"===f?"reference":"floating":f],b=P(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===f?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),w=await(null==r.isElement?void 0:r.isElement(g))&&await(null==r.getScale?void 0:r.getScale(g))||{x:1,y:1},x=P(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:g,strategy:l}):v);return{top:(b.top-x.top+p.top)/w.y,bottom:(x.bottom-b.bottom+p.bottom)/w.y,left:(b.left-x.left+p.left)/w.x,right:(x.right-b.right+p.right)/w.x}}function F(){return"undefined"!=typeof window}function R(t){return j(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function C(t){var e;return null==(e=(j(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function j(t){return!!F()&&(t instanceof Node||t instanceof B(t).Node)}function E(t){return!!F()&&(t instanceof Element||t instanceof B(t).Element)}function N(t){return!!F()&&(t instanceof HTMLElement||t instanceof B(t).HTMLElement)}function D(t){return!(!F()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof B(t).ShadowRoot)}function T(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=q(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function M(t){return["table","td","th"].includes(R(t))}function L(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function H(t){const e=_(),n=E(t)?q(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function _(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function I(t){return["html","body","#document"].includes(R(t))}function q(t){return B(t).getComputedStyle(t)}function W(t){return E(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Y(t){if("html"===R(t))return t;const e=t.assignedSlot||t.parentNode||D(t)&&t.host||C(t);return D(e)?e.host:e}function V(t){const e=Y(t);return I(e)?t.ownerDocument?t.ownerDocument.body:t.body:N(e)&&T(e)?e:V(e)}function X(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=V(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),a=B(o);if(r){const t=G(a);return e.concat(a,a.visualViewport||[],T(o)?o:[],t&&n?X(t):[])}return e.concat(o,X(o,[],n))}function G(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function J(t){const e=q(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=N(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=u(n)!==r||u(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function K(t){return E(t)?t:t.contextElement}function Q(t){const e=K(t);if(!N(e))return h(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=J(e);let a=(r?u(n.width):n.width)/i,s=(r?u(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const U=h(0);function Z(t){const e=B(t);return _()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:U}function tt(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=K(t);let a=h(1);e&&(i?E(i)&&(a=Q(i)):a=Q(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==B(t))&&e}(r,n,i)?Z(r):h(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(r){const t=B(r),e=i&&E(i)?B(i):i;let n=t,o=G(n);for(;o&&i&&e!==n;){const t=Q(o),e=o.getBoundingClientRect(),i=q(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,u*=t.x,f*=t.y,l+=r,c+=a,n=B(o),o=G(n)}}return P({width:u,height:f,x:l,y:c})}function et(t,e){const n=W(t).scrollLeft;return e?e.left+n:tt(C(t)).left+n}function nt(t,e,n){void 0===n&&(n=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:et(t,i)),y:i.top+e.scrollTop}}function it(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=B(t),i=C(t),o=n.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const t=_();(!t||t&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,n);else if("document"===e)i=function(t){const e=C(t),n=W(t),i=t.ownerDocument.body,o=c(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=c(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+et(t);const s=-n.scrollTop;return"rtl"===q(i).direction&&(a+=c(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(C(t));else if(E(e))i=function(t,e){const n=tt(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=N(t)?Q(t):h(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=Z(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return P(i)}function ot(t,e){const n=Y(t);return!(n===e||!E(n)||I(n))&&("fixed"===q(n).position||ot(n,e))}function rt(t,e,n){const i=N(e),o=C(e),r="fixed"===n,a=tt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l=h(0);if(i||!i&&!r)if(("body"!==R(e)||T(o))&&(s=W(e)),i){const t=tt(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&(l.x=et(o));const c=!o||i||r?h(0):nt(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function at(t){return"static"===q(t).position}function st(t,e){if(!N(t)||"fixed"===q(t).position)return null;if(e)return e(t);let n=t.offsetParent;return C(t)===n&&(n=n.ownerDocument.body),n}function lt(t,e){const n=B(t);if(L(t))return n;if(!N(t)){let e=Y(t);for(;e&&!I(e);){if(E(e)&&!at(e))return e;e=Y(e)}return n}let i=st(t,e);for(;i&&M(i)&&at(i);)i=st(i,e);return i&&I(i)&&at(i)&&!H(i)?n:i||function(t){let e=Y(t);for(;N(e)&&!I(e);){if(H(e))return e;if(L(e))return null;e=Y(e)}return null}(t)||n}const ct={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,a=C(i),s=!!e&&L(e.floating);if(i===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},c=h(1);const u=h(0),f=N(i);if((f||!f&&!r)&&(("body"!==R(i)||T(a))&&(l=W(i)),N(i))){const t=tt(i);c=Q(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const d=!a||f||r?h(0):nt(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}},getDocumentElement:C,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?L(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=X(t,[],!1).filter((t=>E(t)&&"body"!==R(t))),o=null;const r="fixed"===q(t).position;let a=r?Y(t):t;for(;E(a)&&!I(a);){const e=q(a),n=H(a);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||T(a)&&!n&&ot(t,a))?i=i.filter((t=>t!==a)):o=e,a=Y(a)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=r[0],s=r.reduce(((t,n)=>{const i=it(e,n,o);return t.top=c(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=c(i.left,t.left),t}),it(e,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:lt,getElementRects:async function(t){const e=this.getOffsetParent||lt,n=this.getDimensions,i=await n(t.floating);return{reference:rt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=J(t);return{width:e,height:n}},getScale:Q,isElement:E,isRTL:function(t){return"rtl"===q(t).direction}};function ut(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ft(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,h=K(t),d=o||r?[...h?X(h):[],...X(e)]:[];d.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const p=h&&s?function(t,e){let n,i=null;const o=C(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),r();const h=t.getBoundingClientRect(),{left:d,top:p,width:m,height:y}=h;if(s||e(),!m||!y)return;const b={rootMargin:-f(p)+"px "+-f(o.clientWidth-(d+m))+"px "+-f(o.clientHeight-(p+y))+"px "+-f(d)+"px",threshold:c(0,l(1,u))||1};let v=!0;function g(e){const i=e[0].intersectionRatio;if(i!==u){if(!v)return a();i?a(!1,i):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==i||ut(h,t.getBoundingClientRect())||a(),v=!1}try{i=new IntersectionObserver(g,{...b,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(g,b)}i.observe(t)}(!0),r}(h,n):null;let m,y=-1,b=null;a&&(b=new ResizeObserver((t=>{let[i]=t;i&&i.target===h&&b&&(b.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=b)||t.observe(e)}))),n()})),h&&!u&&b.observe(h),b.observe(e));let v=u?tt(t):null;return u&&function e(){const i=tt(t);v&&!ut(v,i)&&n();v=i,m=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==p||p(),null==(t=b)||t.disconnect(),b=null,u&&cancelAnimationFrame(m)}}const ht=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:r,placement:a,middlewareData:s}=e,l=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),a=b(n),s=v(n),l="y"===x(n),c=["left","top"].includes(a)?-1:1,u=r&&l?-1:1,f=y(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof p&&(d="end"===s?-1*p:p),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(e,t);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:a}}}}},dt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=y(t,e),c={x:n,y:i},u=await $(e,l),f=x(b(o)),h=g(f);let d=c[h],p=c[f];if(r){const t="y"===h?"bottom":"right";d=m(d+u["y"===h?"top":"left"],d,d-u[t])}if(a){const t="y"===f?"bottom":"right";p=m(p+u["y"===f?"top":"left"],p,p-u[t])}const v=s.fn({...e,[h]:d,[f]:p});return{...v,data:{x:v.x-n,y:v.y-i,enabled:{[h]:r,[f]:a}}}}}},pt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=y(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const k=b(o),P=x(s),O=b(s)===s,F=await(null==l.isRTL?void 0:l.isRTL(c.floating)),R=h||(O||!m?[S(s)]:function(t){const e=S(t);return[z(t),e,z(e)]}(s)),B="none"!==p;!h&&B&&R.push(...function(t,e,n,i){const o=v(t);let r=function(t,e,n){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:a;default:return[]}}(b(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(z)))),r}(s,m,p,F));const C=[s,...R],j=await $(e,g),E=[];let N=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&E.push(j[k]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=v(t),o=A(t),r=w(o);let a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=S(a)),[a,S(a)]}(o,a,F);E.push(j[t[0]],j[t[1]])}if(N=[...N,{placement:o,overflows:E}],!E.every((t=>t<=0))){var D,T;const t=((null==(D=r.flip)?void 0:D.index)||0)+1,e=C[t];if(e)return{data:{index:t,overflows:N},reset:{placement:e}};let n=null==(T=N.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:T.placement;if(!n)switch(d){case"bestFit":{var M;const t=null==(M=N.filter((t=>{if(B){const e=x(t.placement);return e===P||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:M[0];t&&(n=t);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},mt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:o,rects:r,platform:a,elements:s}=e,{apply:u=()=>{},...f}=y(t,e),h=await $(e,f),d=b(o),p=v(o),m="y"===x(o),{width:g,height:w}=r.floating;let A,z;"top"===d||"bottom"===d?(A=d,z=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(z=d,A="end"===p?"top":"bottom");const S=w-h.top-h.bottom,k=g-h.left-h.right,P=l(w-h[A],S),O=l(g-h[z],k),F=!e.middlewareData.shift;let R=P,B=O;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(B=k),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(R=S),F&&!p){const t=c(h.left,0),e=c(h.right,0),n=c(h.top,0),i=c(h.bottom,0);m?B=g-2*(0!==t||0!==e?t+e:c(h.left,h.right)):R=w-2*(0!==n||0!==i?n+i:c(h.top,h.bottom))}await u({...e,availableWidth:B,availableHeight:R});const C=await a.getDimensions(s.floating);return g!==C.width||w!==C.height?{reset:{rects:!0}}:{}}}},yt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:a,elements:s,middlewareData:c}=e,{element:u,padding:f=0}=y(t,e)||{};if(null==u)return{};const h=k(f),d={x:n,y:i},p=A(o),b=w(p),g=await a.getDimensions(u),x="y"===p,z=x?"top":"left",S=x?"bottom":"right",P=x?"clientHeight":"clientWidth",O=r.reference[b]+r.reference[p]-d[p]-r.floating[b],$=d[p]-r.reference[p],F=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let R=F?F[P]:0;R&&await(null==a.isElement?void 0:a.isElement(F))||(R=s.floating[P]||r.floating[b]);const B=O/2-$/2,C=R/2-g[b]/2-1,j=l(h[z],C),E=l(h[S],C),N=j,D=R-g[b]-E,T=R/2-g[b]/2+B,M=m(N,T,D),L=!c.arrow&&null!=v(o)&&T!==M&&r.reference[b]/2-(T<N?j:E)-g[b]/2<0,H=L?T<N?T-N:T-D:0;return{[p]:d[p]+H,data:{[p]:M,centerOffset:T-M-H,...L&&{alignmentOffset:H}},reset:L}}}),bt=(t,e,n)=>{const i=new Map,o={platform:ct,...n},r={...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=O(c,i,l),h=i,d={},p=0;for(let n=0;n<s.length;n++){const{name:r,fn:m}=s[n],{x:y,y:b,data:v,reset:g}=await m({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=y?y:u,f=null!=b?b:f,d={...d,[r]:{...d[r],...v}},g&&p<=50&&(p++,"object"==typeof g&&(g.placement&&(h=g.placement),g.rects&&(c=!0===g.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):g.rects),({x:u,y:f}=O(c,h,l))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:d}})(t,e,{...o,platform:r})};function vt(t){return function(t){for(let e=t;e;e=gt(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=gt(t);e;e=gt(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function gt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}let wt=class extends a{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');if(this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),!this.anchorEl)throw new Error("Invalid anchor element: no anchor could be found using the anchor slot or the anchor attribute.");this.start()}start(){this.anchorEl&&(this.cleanup=ft(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const t=[ht({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(mt({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,n="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=n?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(pt({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(dt({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(mt({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(yt({element:this.arrowEl,padding:this.arrowPadding}));const e="absolute"===this.strategy?t=>ct.getOffsetParent(t,vt):ct.getOffsetParent;bt(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...ct,getOffsetParent:e}}).then((({x:t,y:e,middlewareData:n,placement:i})=>{const o="rtl"===getComputedStyle(this).direction,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=n.arrow.x,e=n.arrow.y;let i="",a="",s="",l="";if("start"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=o?n:"",l=o?"":n}else if("end"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=o?"":n,l=o?n:"",s="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:a,bottom:s,left:l,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("reposition")}render(){return r`
1
+ import{__decorate as t}from"tslib";import{classMap as e}from"lit/directives/class-map.js";import{query as n,property as i,customElement as o}from"lit/decorators.js";import{html as r}from"lit";import{N as a}from"../internal/nile-element.esm.js";import{s}from"./nile-popup.css.esm.js";const l=Math.min,c=Math.max,u=Math.round,f=Math.floor,h=t=>({x:t,y:t}),d={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function m(t,e,n){return c(t,l(e,n))}function y(t,e){return"function"==typeof t?t(e):t}function b(t){return t.split("-")[0]}function v(t){return t.split("-")[1]}function g(t){return"x"===t?"y":"x"}function w(t){return"y"===t?"height":"width"}function x(t){return["top","bottom"].includes(b(t))?"y":"x"}function A(t){return g(x(t))}function z(t){return t.replace(/start|end/g,(t=>p[t]))}function S(t){return t.replace(/left|right|bottom|top/g,(t=>d[t]))}function k(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}function P(t){const{x:e,y:n,width:i,height:o}=t;return{width:i,height:o,top:n,left:e,right:e+i,bottom:n+o,x:e,y:n}}function O(t,e,n){let{reference:i,floating:o}=t;const r=x(e),a=A(e),s=w(a),l=b(e),c="y"===r,u=i.x+i.width/2-o.width/2,f=i.y+i.height/2-o.height/2,h=i[s]/2-o[s]/2;let d;switch(l){case"top":d={x:u,y:i.y-o.height};break;case"bottom":d={x:u,y:i.y+i.height};break;case"right":d={x:i.x+i.width,y:f};break;case"left":d={x:i.x-o.width,y:f};break;default:d={x:i.x,y:i.y}}switch(v(e)){case"start":d[a]-=h*(n&&c?-1:1);break;case"end":d[a]+=h*(n&&c?-1:1)}return d}async function $(t,e){var n;void 0===e&&(e={});const{x:i,y:o,platform:r,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:f="floating",altBoundary:h=!1,padding:d=0}=y(e,t),p=k(d),m=s[h?"floating"===f?"reference":"floating":f],b=P(await r.getClippingRect({element:null==(n=await(null==r.isElement?void 0:r.isElement(m)))||n?m:m.contextElement||await(null==r.getDocumentElement?void 0:r.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),v="floating"===f?{x:i,y:o,width:a.floating.width,height:a.floating.height}:a.reference,g=await(null==r.getOffsetParent?void 0:r.getOffsetParent(s.floating)),w=await(null==r.isElement?void 0:r.isElement(g))&&await(null==r.getScale?void 0:r.getScale(g))||{x:1,y:1},x=P(r.convertOffsetParentRelativeRectToViewportRelativeRect?await r.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:v,offsetParent:g,strategy:l}):v);return{top:(b.top-x.top+p.top)/w.y,bottom:(x.bottom-b.bottom+p.bottom)/w.y,left:(b.left-x.left+p.left)/w.x,right:(x.right-b.right+p.right)/w.x}}function F(){return"undefined"!=typeof window}function R(t){return j(t)?(t.nodeName||"").toLowerCase():"#document"}function B(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function C(t){var e;return null==(e=(j(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function j(t){return!!F()&&(t instanceof Node||t instanceof B(t).Node)}function N(t){return!!F()&&(t instanceof Element||t instanceof B(t).Element)}function D(t){return!!F()&&(t instanceof HTMLElement||t instanceof B(t).HTMLElement)}function E(t){return!(!F()||"undefined"==typeof ShadowRoot)&&(t instanceof ShadowRoot||t instanceof B(t).ShadowRoot)}function T(t){const{overflow:e,overflowX:n,overflowY:i,display:o}=I(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+n)&&!["inline","contents"].includes(o)}function M(t){return["table","td","th"].includes(R(t))}function L(t){return[":popover-open",":modal"].some((e=>{try{return t.matches(e)}catch(t){return!1}}))}function H(t){const e=_(),n=N(t)?I(t):t;return["transform","translate","scale","rotate","perspective"].some((t=>!!n[t]&&"none"!==n[t]))||!!n.containerType&&"normal"!==n.containerType||!e&&!!n.backdropFilter&&"none"!==n.backdropFilter||!e&&!!n.filter&&"none"!==n.filter||["transform","translate","scale","rotate","perspective","filter"].some((t=>(n.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(n.contain||"").includes(t)))}function _(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function q(t){return["html","body","#document"].includes(R(t))}function I(t){return B(t).getComputedStyle(t)}function W(t){return N(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Y(t){if("html"===R(t))return t;const e=t.assignedSlot||t.parentNode||E(t)&&t.host||C(t);return E(e)?e.host:e}function V(t){const e=Y(t);return q(e)?t.ownerDocument?t.ownerDocument.body:t.body:D(e)&&T(e)?e:V(e)}function X(t,e,n){var i;void 0===e&&(e=[]),void 0===n&&(n=!0);const o=V(t),r=o===(null==(i=t.ownerDocument)?void 0:i.body),a=B(o);if(r){const t=G(a);return e.concat(a,a.visualViewport||[],T(o)?o:[],t&&n?X(t):[])}return e.concat(o,X(o,[],n))}function G(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function J(t){const e=I(t);let n=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const o=D(t),r=o?t.offsetWidth:n,a=o?t.offsetHeight:i,s=u(n)!==r||u(i)!==a;return s&&(n=r,i=a),{width:n,height:i,$:s}}function K(t){return N(t)?t:t.contextElement}function Q(t){const e=K(t);if(!D(e))return h(1);const n=e.getBoundingClientRect(),{width:i,height:o,$:r}=J(e);let a=(r?u(n.width):n.width)/i,s=(r?u(n.height):n.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const U=h(0);function Z(t){const e=B(t);return _()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:U}function tt(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=!1);const o=t.getBoundingClientRect(),r=K(t);let a=h(1);e&&(i?N(i)&&(a=Q(i)):a=Q(t));const s=function(t,e,n){return void 0===e&&(e=!1),!(!n||e&&n!==B(t))&&e}(r,n,i)?Z(r):h(0);let l=(o.left+s.x)/a.x,c=(o.top+s.y)/a.y,u=o.width/a.x,f=o.height/a.y;if(r){const t=B(r),e=i&&N(i)?B(i):i;let n=t,o=G(n);for(;o&&i&&e!==n;){const t=Q(o),e=o.getBoundingClientRect(),i=I(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,a=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,u*=t.x,f*=t.y,l+=r,c+=a,n=B(o),o=G(n)}}return P({width:u,height:f,x:l,y:c})}function et(t,e){const n=W(t).scrollLeft;return e?e.left+n:tt(C(t)).left+n}function nt(t,e,n){void 0===n&&(n=!1);const i=t.getBoundingClientRect();return{x:i.left+e.scrollLeft-(n?0:et(t,i)),y:i.top+e.scrollTop}}function it(t,e,n){let i;if("viewport"===e)i=function(t,e){const n=B(t),i=C(t),o=n.visualViewport;let r=i.clientWidth,a=i.clientHeight,s=0,l=0;if(o){r=o.width,a=o.height;const t=_();(!t||t&&"fixed"===e)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:r,height:a,x:s,y:l}}(t,n);else if("document"===e)i=function(t){const e=C(t),n=W(t),i=t.ownerDocument.body,o=c(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),r=c(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-n.scrollLeft+et(t);const s=-n.scrollTop;return"rtl"===I(i).direction&&(a+=c(e.clientWidth,i.clientWidth)-o),{width:o,height:r,x:a,y:s}}(C(t));else if(N(e))i=function(t,e){const n=tt(t,!0,"fixed"===e),i=n.top+t.clientTop,o=n.left+t.clientLeft,r=D(t)?Q(t):h(1);return{width:t.clientWidth*r.x,height:t.clientHeight*r.y,x:o*r.x,y:i*r.y}}(e,n);else{const n=Z(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return P(i)}function ot(t,e){const n=Y(t);return!(n===e||!N(n)||q(n))&&("fixed"===I(n).position||ot(n,e))}function rt(t,e,n){const i=D(e),o=C(e),r="fixed"===n,a=tt(t,!0,r,e);let s={scrollLeft:0,scrollTop:0};const l=h(0);if(i||!i&&!r)if(("body"!==R(e)||T(o))&&(s=W(e)),i){const t=tt(e,!0,r,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else o&&(l.x=et(o));const c=!o||i||r?h(0):nt(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function at(t){return"static"===I(t).position}function st(t,e){if(!D(t)||"fixed"===I(t).position)return null;if(e)return e(t);let n=t.offsetParent;return C(t)===n&&(n=n.ownerDocument.body),n}function lt(t,e){const n=B(t);if(L(t))return n;if(!D(t)){let e=Y(t);for(;e&&!q(e);){if(N(e)&&!at(e))return e;e=Y(e)}return n}let i=st(t,e);for(;i&&M(i)&&at(i);)i=st(i,e);return i&&q(i)&&at(i)&&!H(i)?n:i||function(t){let e=Y(t);for(;D(e)&&!q(e);){if(H(e))return e;if(L(e))return null;e=Y(e)}return null}(t)||n}const ct={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:e,rect:n,offsetParent:i,strategy:o}=t;const r="fixed"===o,a=C(i),s=!!e&&L(e.floating);if(i===a||s&&r)return n;let l={scrollLeft:0,scrollTop:0},c=h(1);const u=h(0),f=D(i);if((f||!f&&!r)&&(("body"!==R(i)||T(a))&&(l=W(i)),D(i))){const t=tt(i);c=Q(i),u.x=t.x+i.clientLeft,u.y=t.y+i.clientTop}const d=!a||f||r?h(0):nt(a,l,!0);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-l.scrollTop*c.y+u.y+d.y}},getDocumentElement:C,getClippingRect:function(t){let{element:e,boundary:n,rootBoundary:i,strategy:o}=t;const r=[..."clippingAncestors"===n?L(e)?[]:function(t,e){const n=e.get(t);if(n)return n;let i=X(t,[],!1).filter((t=>N(t)&&"body"!==R(t))),o=null;const r="fixed"===I(t).position;let a=r?Y(t):t;for(;N(a)&&!q(a);){const e=I(a),n=H(a);n||"fixed"!==e.position||(o=null),(r?!n&&!o:!n&&"static"===e.position&&o&&["absolute","fixed"].includes(o.position)||T(a)&&!n&&ot(t,a))?i=i.filter((t=>t!==a)):o=e,a=Y(a)}return e.set(t,i),i}(e,this._c):[].concat(n),i],a=r[0],s=r.reduce(((t,n)=>{const i=it(e,n,o);return t.top=c(i.top,t.top),t.right=l(i.right,t.right),t.bottom=l(i.bottom,t.bottom),t.left=c(i.left,t.left),t}),it(e,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:lt,getElementRects:async function(t){const e=this.getOffsetParent||lt,n=this.getDimensions,i=await n(t.floating);return{reference:rt(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){const{width:e,height:n}=J(t);return{width:e,height:n}},getScale:Q,isElement:N,isRTL:function(t){return"rtl"===I(t).direction}};function ut(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ft(t,e,n,i){void 0===i&&(i={});const{ancestorScroll:o=!0,ancestorResize:r=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,h=K(t),d=o||r?[...h?X(h):[],...X(e)]:[];d.forEach((t=>{o&&t.addEventListener("scroll",n,{passive:!0}),r&&t.addEventListener("resize",n)}));const p=h&&s?function(t,e){let n,i=null;const o=C(t);function r(){var t;clearTimeout(n),null==(t=i)||t.disconnect(),i=null}return function a(s,u){void 0===s&&(s=!1),void 0===u&&(u=1),r();const h=t.getBoundingClientRect(),{left:d,top:p,width:m,height:y}=h;if(s||e(),!m||!y)return;const b={rootMargin:-f(p)+"px "+-f(o.clientWidth-(d+m))+"px "+-f(o.clientHeight-(p+y))+"px "+-f(d)+"px",threshold:c(0,l(1,u))||1};let v=!0;function g(e){const i=e[0].intersectionRatio;if(i!==u){if(!v)return a();i?a(!1,i):n=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==i||ut(h,t.getBoundingClientRect())||a(),v=!1}try{i=new IntersectionObserver(g,{...b,root:o.ownerDocument})}catch(t){i=new IntersectionObserver(g,b)}i.observe(t)}(!0),r}(h,n):null;let m,y=-1,b=null;a&&(b=new ResizeObserver((t=>{let[i]=t;i&&i.target===h&&b&&(b.unobserve(e),cancelAnimationFrame(y),y=requestAnimationFrame((()=>{var t;null==(t=b)||t.observe(e)}))),n()})),h&&!u&&b.observe(h),b.observe(e));let v=u?tt(t):null;return u&&function e(){const i=tt(t);v&&!ut(v,i)&&n();v=i,m=requestAnimationFrame(e)}(),n(),()=>{var t;d.forEach((t=>{o&&t.removeEventListener("scroll",n),r&&t.removeEventListener("resize",n)})),null==p||p(),null==(t=b)||t.disconnect(),b=null,u&&cancelAnimationFrame(m)}}const ht=function(t){return void 0===t&&(t=0),{name:"offset",options:t,async fn(e){var n,i;const{x:o,y:r,placement:a,middlewareData:s}=e,l=await async function(t,e){const{placement:n,platform:i,elements:o}=t,r=await(null==i.isRTL?void 0:i.isRTL(o.floating)),a=b(n),s=v(n),l="y"===x(n),c=["left","top"].includes(a)?-1:1,u=r&&l?-1:1,f=y(e,t);let{mainAxis:h,crossAxis:d,alignmentAxis:p}="number"==typeof f?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:f.mainAxis||0,crossAxis:f.crossAxis||0,alignmentAxis:f.alignmentAxis};return s&&"number"==typeof p&&(d="end"===s?-1*p:p),l?{x:d*u,y:h*c}:{x:h*c,y:d*u}}(e,t);return a===(null==(n=s.offset)?void 0:n.placement)&&null!=(i=s.arrow)&&i.alignmentOffset?{}:{x:o+l.x,y:r+l.y,data:{...l,placement:a}}}}},dt=function(t){return void 0===t&&(t={}),{name:"shift",options:t,async fn(e){const{x:n,y:i,placement:o}=e,{mainAxis:r=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:n}=t;return{x:e,y:n}}},...l}=y(t,e),c={x:n,y:i},u=await $(e,l),f=x(b(o)),h=g(f);let d=c[h],p=c[f];if(r){const t="y"===h?"bottom":"right";d=m(d+u["y"===h?"top":"left"],d,d-u[t])}if(a){const t="y"===f?"bottom":"right";p=m(p+u["y"===f?"top":"left"],p,p-u[t])}const v=s.fn({...e,[h]:d,[f]:p});return{...v,data:{x:v.x-n,y:v.y-i,enabled:{[h]:r,[f]:a}}}}}},pt=function(t){return void 0===t&&(t={}),{name:"flip",options:t,async fn(e){var n,i;const{placement:o,middlewareData:r,rects:a,initialPlacement:s,platform:l,elements:c}=e,{mainAxis:u=!0,crossAxis:f=!0,fallbackPlacements:h,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:m=!0,...g}=y(t,e);if(null!=(n=r.arrow)&&n.alignmentOffset)return{};const k=b(o),P=x(s),O=b(s)===s,F=await(null==l.isRTL?void 0:l.isRTL(c.floating)),R=h||(O||!m?[S(s)]:function(t){const e=S(t);return[z(t),e,z(e)]}(s)),B="none"!==p;!h&&B&&R.push(...function(t,e,n,i){const o=v(t);let r=function(t,e,n){const i=["left","right"],o=["right","left"],r=["top","bottom"],a=["bottom","top"];switch(t){case"top":case"bottom":return n?e?o:i:e?i:o;case"left":case"right":return e?r:a;default:return[]}}(b(t),"start"===n,i);return o&&(r=r.map((t=>t+"-"+o)),e&&(r=r.concat(r.map(z)))),r}(s,m,p,F));const C=[s,...R],j=await $(e,g),N=[];let D=(null==(i=r.flip)?void 0:i.overflows)||[];if(u&&N.push(j[k]),f){const t=function(t,e,n){void 0===n&&(n=!1);const i=v(t),o=A(t),r=w(o);let a="x"===o?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[r]>e.floating[r]&&(a=S(a)),[a,S(a)]}(o,a,F);N.push(j[t[0]],j[t[1]])}if(D=[...D,{placement:o,overflows:N}],!N.every((t=>t<=0))){var E,T;const t=((null==(E=r.flip)?void 0:E.index)||0)+1,e=C[t];if(e)return{data:{index:t,overflows:D},reset:{placement:e}};let n=null==(T=D.filter((t=>t.overflows[0]<=0)).sort(((t,e)=>t.overflows[1]-e.overflows[1]))[0])?void 0:T.placement;if(!n)switch(d){case"bestFit":{var M;const t=null==(M=D.filter((t=>{if(B){const e=x(t.placement);return e===P||"y"===e}return!0})).map((t=>[t.placement,t.overflows.filter((t=>t>0)).reduce(((t,e)=>t+e),0)])).sort(((t,e)=>t[1]-e[1]))[0])?void 0:M[0];t&&(n=t);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},mt=function(t){return void 0===t&&(t={}),{name:"size",options:t,async fn(e){var n,i;const{placement:o,rects:r,platform:a,elements:s}=e,{apply:u=()=>{},...f}=y(t,e),h=await $(e,f),d=b(o),p=v(o),m="y"===x(o),{width:g,height:w}=r.floating;let A,z;"top"===d||"bottom"===d?(A=d,z=p===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(z=d,A="end"===p?"top":"bottom");const S=w-h.top-h.bottom,k=g-h.left-h.right,P=l(w-h[A],S),O=l(g-h[z],k),F=!e.middlewareData.shift;let R=P,B=O;if(null!=(n=e.middlewareData.shift)&&n.enabled.x&&(B=k),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(R=S),F&&!p){const t=c(h.left,0),e=c(h.right,0),n=c(h.top,0),i=c(h.bottom,0);m?B=g-2*(0!==t||0!==e?t+e:c(h.left,h.right)):R=w-2*(0!==n||0!==i?n+i:c(h.top,h.bottom))}await u({...e,availableWidth:B,availableHeight:R});const C=await a.getDimensions(s.floating);return g!==C.width||w!==C.height?{reset:{rects:!0}}:{}}}},yt=t=>({name:"arrow",options:t,async fn(e){const{x:n,y:i,placement:o,rects:r,platform:a,elements:s,middlewareData:c}=e,{element:u,padding:f=0}=y(t,e)||{};if(null==u)return{};const h=k(f),d={x:n,y:i},p=A(o),b=w(p),g=await a.getDimensions(u),x="y"===p,z=x?"top":"left",S=x?"bottom":"right",P=x?"clientHeight":"clientWidth",O=r.reference[b]+r.reference[p]-d[p]-r.floating[b],$=d[p]-r.reference[p],F=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let R=F?F[P]:0;R&&await(null==a.isElement?void 0:a.isElement(F))||(R=s.floating[P]||r.floating[b]);const B=O/2-$/2,C=R/2-g[b]/2-1,j=l(h[z],C),N=l(h[S],C),D=j,E=R-g[b]-N,T=R/2-g[b]/2+B,M=m(D,T,E),L=!c.arrow&&null!=v(o)&&T!==M&&r.reference[b]/2-(T<D?j:N)-g[b]/2<0,H=L?T<D?T-D:T-E:0;return{[p]:d[p]+H,data:{[p]:M,centerOffset:T-M-H,...L&&{alignmentOffset:H}},reset:L}}}),bt=(t,e,n)=>{const i=new Map,o={platform:ct,...n},r={...o.platform,_c:i};return(async(t,e,n)=>{const{placement:i="bottom",strategy:o="absolute",middleware:r=[],platform:a}=n,s=r.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:f}=O(c,i,l),h=i,d={},p=0;for(let n=0;n<s.length;n++){const{name:r,fn:m}=s[n],{x:y,y:b,data:v,reset:g}=await m({x:u,y:f,initialPlacement:i,placement:h,strategy:o,middlewareData:d,rects:c,platform:a,elements:{reference:t,floating:e}});u=null!=y?y:u,f=null!=b?b:f,d={...d,[r]:{...d[r],...v}},g&&p<=50&&(p++,"object"==typeof g&&(g.placement&&(h=g.placement),g.rects&&(c=!0===g.rects?await a.getElementRects({reference:t,floating:e,strategy:o}):g.rects),({x:u,y:f}=O(c,h,l))),n=-1)}return{x:u,y:f,placement:h,strategy:o,middlewareData:d}})(t,e,{...o,platform:r})};function vt(t){return function(t){for(let e=t;e;e=gt(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=gt(t);e;e=gt(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function gt(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}let wt=class extends a{constructor(){super(...arguments),this.active=!1,this.placement="top",this.strategy="absolute",this.distance=0,this.skidding=0,this.arrow=!1,this.arrowPlacement="anchor",this.arrowPadding=10,this.flip=!1,this.flipFallbackPlacements="",this.flipFallbackStrategy="best-fit",this.flipPadding=0,this.shift=!1,this.shiftPadding=0,this.autoSizePadding=0}async connectedCallback(){super.connectedCallback(),await this.updateComplete,this.start()}disconnectedCallback(){this.stop()}async updated(t){super.updated(t),t.has("active")&&(this.active?this.start():this.stop()),t.has("anchor")&&this.handleAnchorChange(),this.active&&(await this.updateComplete,this.reposition())}async handleAnchorChange(){if(await this.stop(),this.anchor&&"string"==typeof this.anchor){const t=this.getRootNode();this.anchorEl=t.getElementById(this.anchor)}else this.anchor instanceof Element?this.anchorEl=this.anchor:this.anchorEl=this.querySelector('[slot="anchor"]');this.anchorEl instanceof HTMLSlotElement&&(this.anchorEl=this.anchorEl.assignedElements({flatten:!0})[0]),this.anchorEl&&this.start()}start(){this.anchorEl&&(this.cleanup=ft(this.anchorEl,this.popup,(()=>{this.reposition()})))}async stop(){return new Promise((t=>{this.cleanup?(this.cleanup(),this.cleanup=void 0,this.removeAttribute("data-current-placement"),this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height"),requestAnimationFrame((()=>t()))):t()}))}reposition(){if(!this.active||!this.anchorEl)return;const t=[ht({mainAxis:this.distance,crossAxis:this.skidding})];this.sync?t.push(mt({apply:({rects:t})=>{const e="width"===this.sync||"both"===this.sync,n="height"===this.sync||"both"===this.sync;this.popup.style.width=e?`${t.reference.width}px`:"",this.popup.style.height=n?`${t.reference.height}px`:""}})):(this.popup.style.width="",this.popup.style.height=""),this.flip&&t.push(pt({boundary:this.flipBoundary,fallbackPlacements:this.flipFallbackPlacements,fallbackStrategy:"best-fit"===this.flipFallbackStrategy?"bestFit":"initialPlacement",padding:this.flipPadding})),this.shift&&t.push(dt({boundary:this.shiftBoundary,padding:this.shiftPadding})),this.autoSize?t.push(mt({boundary:this.autoSizeBoundary,padding:this.autoSizePadding,apply:({availableWidth:t,availableHeight:e})=>{"vertical"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-height",`${e}px`):this.style.removeProperty("--auto-size-available-height"),"horizontal"===this.autoSize||"both"===this.autoSize?this.style.setProperty("--auto-size-available-width",`${t}px`):this.style.removeProperty("--auto-size-available-width")}})):(this.style.removeProperty("--auto-size-available-width"),this.style.removeProperty("--auto-size-available-height")),this.arrow&&t.push(yt({element:this.arrowEl,padding:this.arrowPadding}));const e="absolute"===this.strategy?t=>ct.getOffsetParent(t,vt):ct.getOffsetParent;bt(this.anchorEl,this.popup,{placement:this.placement,middleware:t,strategy:this.strategy,platform:{...ct,getOffsetParent:e}}).then((({x:t,y:e,middlewareData:n,placement:i})=>{const o="rtl"===getComputedStyle(this).direction,r={top:"bottom",right:"left",bottom:"top",left:"right"}[i.split("-")[0]];if(this.setAttribute("data-current-placement",i),Object.assign(this.popup.style,{left:`${t}px`,top:`${e}px`}),this.arrow){const t=n.arrow.x,e=n.arrow.y;let i="",a="",s="",l="";if("start"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";i="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"",a=o?n:"",l=o?"":n}else if("end"===this.arrowPlacement){const n="number"==typeof t?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:"";a=o?"":n,l=o?n:"",s="number"==typeof e?`calc(${this.arrowPadding}px - var(--arrow-padding-offset))`:""}else"center"===this.arrowPlacement?(l="number"==typeof t?"calc(50% - var(--arrow-size-diagonal))":"",i="number"==typeof e?"calc(50% - var(--arrow-size-diagonal))":""):(l="number"==typeof t?`${t}px`:"",i="number"==typeof e?`${e}px`:"");Object.assign(this.arrowEl.style,{top:i,right:a,bottom:s,left:l,[r]:"calc(var(--arrow-size-diagonal) * -1)"})}})),this.emit("reposition")}render(){return r`
2
2
  <slot name="anchor" @slotchange=${this.handleAnchorChange}></slot>
3
3
 
4
4
  <div
@@ -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-cb376a7f.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-popup.cjs.js","tslib","lit/directives/class-map.js","lit/decorators.js","../internal/nile-element.cjs.js","./nile-popup.css.cjs.js"],function(_export,_context){"use strict";var p,t,o,i,e,_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){p=_fixture002CjsJs.f;t=_fixture002CjsJs.a;o=_fixture002CjsJs.e;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nilePopupCjsJs){e=_nilePopupCjsJs.N;},function(_tslib){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){},function(_nilePopupCssCjsJs){}],execute:function execute(){describe("NilePopup",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return p(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context2.sent;t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be["null"];case 4:case"end":return _context2.stop();}},_callee);}))),it("should be inactive by default",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return p(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context3.sent;t(o.active).to.be["false"];e=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".popup");t(e===null||e===void 0?void 0:e.classList.contains("popup--active")).to.be["false"];case 6:case"end":return _context3.stop();}},_callee2);}))),it("should show popup when active is set to true",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _e$shadowRoot;var e,s;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return p(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:e=_context4.sent;e.active=!0;_context4.next=6;return o(e);case 6:s=(_e$shadowRoot=e.shadowRoot)===null||_e$shadowRoot===void 0?void 0:_e$shadowRoot.querySelector(".popup");t(e.active).to.be["true"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["true"];case 8:case"end":return _context4.stop();}},_callee3);}))),it("should hide popup when active is set to false",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e$shadowRoot2;var e,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return p(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-popup active></nile-popup>"]))));case 2:e=_context5.sent;e.active=!1;_context5.next=6;return o(e);case 6:s=(_e$shadowRoot2=e.shadowRoot)===null||_e$shadowRoot2===void 0?void 0:_e$shadowRoot2.querySelector(".popup");t(e.active).to.be["false"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["false"];case 8:case"end":return _context5.stop();}},_callee4);}))),it('should set correct placement class based on "placement" property',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return p(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-popup placement=\"bottom\"></nile-popup>"]))));case 2:e=_context6.sent;e.active=!0;_context6.next=6;return o(e);case 6:t(e.placement).to.equal("bottom");t(e.getAttribute("placement")).to.equal("bottom");case 8:case"end":return _context6.stop();}},_callee5);}))),it("should position correctly when anchor is provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _s$shadowRoot;var e,s,a,n;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);_context7.next=4;return p(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-popup anchor=\"anchorEl\" active></nile-popup>"]))));case 4:s=_context7.sent;_context7.next=7;return o(s);case 7:a=(_s$shadowRoot=s.shadowRoot)===null||_s$shadowRoot===void 0?void 0:_s$shadowRoot.querySelector(".popup");t(a===null||a===void 0?void 0:a.classList.contains("popup--active")).to.be["true"];n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e);case 11:case"end":return _context7.stop();}},_callee6);}))),it('should display an arrow when the "arrow" property is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _e$shadowRoot3;var e,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return p(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-popup arrow></nile-popup>"]))));case 2:e=_context8.sent;e.active=!0;_context8.next=6;return o(e);case 6:s=(_e$shadowRoot3=e.shadowRoot)===null||_e$shadowRoot3===void 0?void 0:_e$shadowRoot3.querySelector(".popup__arrow");t(s).to.exist;case 8:case"end":return _context8.stop();}},_callee7);}))),it('should apply correct strategy when "strategy" is set',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _e$shadowRoot4;var e,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return p(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-popup strategy=\"fixed\"></nile-popup>"]))));case 2:e=_context9.sent;e.active=!0;_context9.next=6;return o(e);case 6:s=(_e$shadowRoot4=e.shadowRoot)===null||_e$shadowRoot4===void 0?void 0:_e$shadowRoot4.querySelector(".popup");t(s===null||s===void 0?void 0:s.classList.contains("popup--fixed")).to.be["true"];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-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-popup.cjs.js","tslib","lit/directives/class-map.js","lit/decorators.js","../internal/nile-element.cjs.js","./nile-popup.css.cjs.js"],function(_export,_context){"use strict";var p,t,o,i,e,_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){p=_fixture001CjsJs.f;t=_fixture001CjsJs.a;o=_fixture001CjsJs.e;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nilePopupCjsJs){e=_nilePopupCjsJs.N;},function(_tslib){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){},function(_nilePopupCssCjsJs){}],execute:function execute(){describe("NilePopup",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return p(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context2.sent;t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be["null"];case 4:case"end":return _context2.stop();}},_callee);}))),it("should be inactive by default",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return p(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:o=_context3.sent;t(o.active).to.be["false"];e=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".popup");t(e===null||e===void 0?void 0:e.classList.contains("popup--active")).to.be["false"];case 6:case"end":return _context3.stop();}},_callee2);}))),it("should show popup when active is set to true",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _e$shadowRoot;var e,s;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return p(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-popup></nile-popup>"]))));case 2:e=_context4.sent;e.active=!0;_context4.next=6;return o(e);case 6:s=(_e$shadowRoot=e.shadowRoot)===null||_e$shadowRoot===void 0?void 0:_e$shadowRoot.querySelector(".popup");t(e.active).to.be["true"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["true"];case 8:case"end":return _context4.stop();}},_callee3);}))),it("should hide popup when active is set to false",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e$shadowRoot2;var e,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return p(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-popup active></nile-popup>"]))));case 2:e=_context5.sent;e.active=!1;_context5.next=6;return o(e);case 6:s=(_e$shadowRoot2=e.shadowRoot)===null||_e$shadowRoot2===void 0?void 0:_e$shadowRoot2.querySelector(".popup");t(e.active).to.be["false"],t(s===null||s===void 0?void 0:s.classList.contains("popup--active")).to.be["false"];case 8:case"end":return _context5.stop();}},_callee4);}))),it('should set correct placement class based on "placement" property',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return p(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-popup placement=\"bottom\"></nile-popup>"]))));case 2:e=_context6.sent;e.active=!0;_context6.next=6;return o(e);case 6:t(e.placement).to.equal("bottom");t(e.getAttribute("placement")).to.equal("bottom");case 8:case"end":return _context6.stop();}},_callee5);}))),it("should position correctly when anchor is provided",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _s$shadowRoot;var e,s,a,n;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);_context7.next=4;return p(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-popup anchor=\"anchorEl\" active></nile-popup>"]))));case 4:s=_context7.sent;_context7.next=7;return o(s);case 7:a=(_s$shadowRoot=s.shadowRoot)===null||_s$shadowRoot===void 0?void 0:_s$shadowRoot.querySelector(".popup");t(a===null||a===void 0?void 0:a.classList.contains("popup--active")).to.be["true"];n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e);case 11:case"end":return _context7.stop();}},_callee6);}))),it('should display an arrow when the "arrow" property is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _e$shadowRoot3;var e,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return p(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-popup arrow></nile-popup>"]))));case 2:e=_context8.sent;e.active=!0;_context8.next=6;return o(e);case 6:s=(_e$shadowRoot3=e.shadowRoot)===null||_e$shadowRoot3===void 0?void 0:_e$shadowRoot3.querySelector(".popup__arrow");t(s).to.exist;case 8:case"end":return _context8.stop();}},_callee7);}))),it('should apply correct strategy when "strategy" is set',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _e$shadowRoot4;var e,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return p(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-popup strategy=\"fixed\"></nile-popup>"]))));case 2:e=_context9.sent;e.active=!0;_context9.next=6;return o(e);case 6:s=(_e$shadowRoot4=e.shadowRoot)===null||_e$shadowRoot4===void 0?void 0:_e$shadowRoot4.querySelector(".popup");t(s===null||s===void 0?void 0:s.classList.contains("popup--fixed")).to.be["true"];case 8:case"end":return _context9.stop();}},_callee8);})));});}};});
2
2
  //# sourceMappingURL=nile-popup.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as p,a as t,e as o}from"../fixture-add72f26.esm.js";import{html as i}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import{N as e}from"./nile-popup.esm.js";import"tslib";import"lit/directives/class-map.js";import"lit/decorators.js";import"../internal/nile-element.esm.js";import"./nile-popup.css.esm.js";describe("NilePopup",(()=>{it("should render correctly",(async()=>{const o=await p(i`<nile-popup></nile-popup>`);t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be.null})),it("should be inactive by default",(async()=>{const o=await p(i`<nile-popup></nile-popup>`);t(o.active).to.be.false;const e=o.shadowRoot?.querySelector(".popup");t(e?.classList.contains("popup--active")).to.be.false})),it("should show popup when active is set to true",(async()=>{const e=await p(i`<nile-popup></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(e.active).to.be.true,t(s?.classList.contains("popup--active")).to.be.true})),it("should hide popup when active is set to false",(async()=>{const e=await p(i`<nile-popup active></nile-popup>`);e.active=!1,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(e.active).to.be.false,t(s?.classList.contains("popup--active")).to.be.false})),it('should set correct placement class based on "placement" property',(async()=>{const e=await p(i`<nile-popup placement="bottom"></nile-popup>`);e.active=!0,await o(e),t(e.placement).to.equal("bottom"),t(e.getAttribute("placement")).to.equal("bottom")})),it("should position correctly when anchor is provided",(async()=>{const e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);const s=await p(i`<nile-popup anchor="anchorEl" active></nile-popup>`);await o(s);const a=s.shadowRoot?.querySelector(".popup");t(a?.classList.contains("popup--active")).to.be.true;const n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e)})),it('should display an arrow when the "arrow" property is true',(async()=>{const e=await p(i`<nile-popup arrow></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup__arrow");t(s).to.exist})),it('should apply correct strategy when "strategy" is set',(async()=>{const e=await p(i`<nile-popup strategy="fixed"></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(s?.classList.contains("popup--fixed")).to.be.true}))}));
1
+ import{f as p,a as t,e as o}from"../fixture-588a3119.esm.js";import{html as i}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import{N as e}from"./nile-popup.esm.js";import"tslib";import"lit/directives/class-map.js";import"lit/decorators.js";import"../internal/nile-element.esm.js";import"./nile-popup.css.esm.js";describe("NilePopup",(()=>{it("should render correctly",(async()=>{const o=await p(i`<nile-popup></nile-popup>`);t(o).to.be.instanceOf(e),t(o.shadowRoot).not.to.be.null})),it("should be inactive by default",(async()=>{const o=await p(i`<nile-popup></nile-popup>`);t(o.active).to.be.false;const e=o.shadowRoot?.querySelector(".popup");t(e?.classList.contains("popup--active")).to.be.false})),it("should show popup when active is set to true",(async()=>{const e=await p(i`<nile-popup></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(e.active).to.be.true,t(s?.classList.contains("popup--active")).to.be.true})),it("should hide popup when active is set to false",(async()=>{const e=await p(i`<nile-popup active></nile-popup>`);e.active=!1,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(e.active).to.be.false,t(s?.classList.contains("popup--active")).to.be.false})),it('should set correct placement class based on "placement" property',(async()=>{const e=await p(i`<nile-popup placement="bottom"></nile-popup>`);e.active=!0,await o(e),t(e.placement).to.equal("bottom"),t(e.getAttribute("placement")).to.equal("bottom")})),it("should position correctly when anchor is provided",(async()=>{const e=document.createElement("div");e.id="anchorEl",document.body.appendChild(e);const s=await p(i`<nile-popup anchor="anchorEl" active></nile-popup>`);await o(s);const a=s.shadowRoot?.querySelector(".popup");t(a?.classList.contains("popup--active")).to.be.true;const n=document.getElementById("anchorEl");t(n).to.exist,document.body.removeChild(e)})),it('should display an arrow when the "arrow" property is true',(async()=>{const e=await p(i`<nile-popup arrow></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup__arrow");t(s).to.exist})),it('should apply correct strategy when "strategy" is set',(async()=>{const e=await p(i`<nile-popup strategy="fixed"></nile-popup>`);e.active=!0,await o(e);const s=e.shadowRoot?.querySelector(".popup");t(s?.classList.contains("popup--fixed")).to.be.true}))}));
@@ -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-cb376a7f.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-progress-bar.cjs.js","tslib","./nile-progress-bar.css.cjs.js","lit/decorators.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var s,a,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;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){s=_fixture002CjsJs.f;a=_fixture002CjsJs.a;},function(_litStaticHtmlJs){r=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileProgressBarCjsJs){},function(_tslib){},function(_nileProgressBarCssCjsJs){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileProgressBar",function(){it("should have a default value of 0",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _e$shadowRoot$querySe;var e,t;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return s(r(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-progress-bar></nile-progress-bar>"]))));case 2:e=_context2.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe!==void 0?_e$shadowRoot$querySe:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context2.stop();}},_callee);}))),it("should set and display the provided value",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _e$shadowRoot$querySe2;var e,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return s(r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-progress-bar value=\"50\"></nile-progress-bar>"]))));case 2:e=_context3.sent;a(e.value).to.equal(50);t=(_e$shadowRoot$querySe2=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe2!==void 0?_e$shadowRoot$querySe2:{};a(t.style.width).to.equal("50%");case 6:case"end":return _context3.stop();}},_callee2);}))),it("should handle boundary value 0%",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _e$shadowRoot$querySe3;var e,t;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return s(r(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-progress-bar value=\"0\"></nile-progress-bar>"]))));case 2:e=_context4.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe3=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe3!==void 0?_e$shadowRoot$querySe3:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context4.stop();}},_callee3);}))),it("should handle boundary value 100%",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e$shadowRoot$querySe4;var e,t;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return s(r(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-progress-bar value=\"100\"></nile-progress-bar>"]))));case 2:e=_context5.sent;a(e.value).to.equal(100);t=(_e$shadowRoot$querySe4=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe4!==void 0?_e$shadowRoot$querySe4:{};a(t.style.width).to.equal("100%");case 6:case"end":return _context5.stop();}},_callee4);}))),it("should revert values greater than 100",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _e$shadowRoot$querySe5;var e,t;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return s(r(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-progress-bar value=\"150\"></nile-progress-bar>"]))));case 2:e=_context6.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe5=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe5!==void 0?_e$shadowRoot$querySe5:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context6.stop();}},_callee5);}))),it("should revert negative values",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _e$shadowRoot$querySe6;var e,t;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return s(r(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-progress-bar value=\"-50\"></nile-progress-bar>"]))));case 2:e=_context7.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe6=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe6!==void 0?_e$shadowRoot$querySe6:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context7.stop();}},_callee6);}))),it("should update the value dynamically",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _e$shadowRoot$querySe7;var e,t;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return s(r(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-progress-bar value=\"20\"></nile-progress-bar>"]))));case 2:e=_context8.sent;e.value=80;_context8.next=6;return e.updateComplete;case 6:t=(_e$shadowRoot$querySe7=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe7!==void 0?_e$shadowRoot$querySe7:{};a(t.style.width).to.equal("80%");case 8:case"end":return _context8.stop();}},_callee7);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-progress-bar.cjs.js","tslib","./nile-progress-bar.css.cjs.js","lit/decorators.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var s,a,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7;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){s=_fixture001CjsJs.f;a=_fixture001CjsJs.a;},function(_litStaticHtmlJs){r=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileProgressBarCjsJs){},function(_tslib){},function(_nileProgressBarCssCjsJs){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileProgressBar",function(){it("should have a default value of 0",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var _e$shadowRoot$querySe;var e,t;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return s(r(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-progress-bar></nile-progress-bar>"]))));case 2:e=_context2.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe!==void 0?_e$shadowRoot$querySe:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context2.stop();}},_callee);}))),it("should set and display the provided value",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _e$shadowRoot$querySe2;var e,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return s(r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-progress-bar value=\"50\"></nile-progress-bar>"]))));case 2:e=_context3.sent;a(e.value).to.equal(50);t=(_e$shadowRoot$querySe2=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe2!==void 0?_e$shadowRoot$querySe2:{};a(t.style.width).to.equal("50%");case 6:case"end":return _context3.stop();}},_callee2);}))),it("should handle boundary value 0%",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _e$shadowRoot$querySe3;var e,t;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return s(r(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-progress-bar value=\"0\"></nile-progress-bar>"]))));case 2:e=_context4.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe3=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe3!==void 0?_e$shadowRoot$querySe3:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context4.stop();}},_callee3);}))),it("should handle boundary value 100%",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _e$shadowRoot$querySe4;var e,t;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return s(r(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-progress-bar value=\"100\"></nile-progress-bar>"]))));case 2:e=_context5.sent;a(e.value).to.equal(100);t=(_e$shadowRoot$querySe4=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe4!==void 0?_e$shadowRoot$querySe4:{};a(t.style.width).to.equal("100%");case 6:case"end":return _context5.stop();}},_callee4);}))),it("should revert values greater than 100",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var _e$shadowRoot$querySe5;var e,t;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return s(r(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-progress-bar value=\"150\"></nile-progress-bar>"]))));case 2:e=_context6.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe5=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe5!==void 0?_e$shadowRoot$querySe5:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context6.stop();}},_callee5);}))),it("should revert negative values",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var _e$shadowRoot$querySe6;var e,t;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return s(r(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-progress-bar value=\"-50\"></nile-progress-bar>"]))));case 2:e=_context7.sent;a(e.value).to.equal(0);t=(_e$shadowRoot$querySe6=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe6!==void 0?_e$shadowRoot$querySe6:{};a(t.style.width).to.equal("0%");case 6:case"end":return _context7.stop();}},_callee6);}))),it("should update the value dynamically",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _e$shadowRoot$querySe7;var e,t;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return s(r(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-progress-bar value=\"20\"></nile-progress-bar>"]))));case 2:e=_context8.sent;e.value=80;_context8.next=6;return e.updateComplete;case 6:t=(_e$shadowRoot$querySe7=e.shadowRoot.querySelector("span"))!==null&&_e$shadowRoot$querySe7!==void 0?_e$shadowRoot$querySe7:{};a(t.style.width).to.equal("80%");case 8:case"end":return _context8.stop();}},_callee7);})));});}};});
2
2
  //# sourceMappingURL=nile-progress-bar.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as s,a as e}from"../fixture-add72f26.esm.js";import{html as a}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-progress-bar.esm.js";import"tslib";import"./nile-progress-bar.css.esm.js";import"lit/decorators.js";import"../internal/nile-element.esm.js";describe("NileProgressBar",(()=>{it("should have a default value of 0",(async()=>{const r=await s(a`<nile-progress-bar></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should set and display the provided value",(async()=>{const r=await s(a`<nile-progress-bar value="50"></nile-progress-bar>`);e(r.value).to.equal(50);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("50%")})),it("should handle boundary value 0%",(async()=>{const r=await s(a`<nile-progress-bar value="0"></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should handle boundary value 100%",(async()=>{const r=await s(a`<nile-progress-bar value="100"></nile-progress-bar>`);e(r.value).to.equal(100);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("100%")})),it("should revert values greater than 100",(async()=>{const r=await s(a`<nile-progress-bar value="150"></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should revert negative values",(async()=>{const r=await s(a`<nile-progress-bar value="-50"></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should update the value dynamically",(async()=>{const r=await s(a`<nile-progress-bar value="20"></nile-progress-bar>`);r.value=80,await r.updateComplete;const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("80%")}))}));
1
+ import{f as s,a as e}from"../fixture-588a3119.esm.js";import{html as a}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-progress-bar.esm.js";import"tslib";import"./nile-progress-bar.css.esm.js";import"lit/decorators.js";import"../internal/nile-element.esm.js";describe("NileProgressBar",(()=>{it("should have a default value of 0",(async()=>{const r=await s(a`<nile-progress-bar></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should set and display the provided value",(async()=>{const r=await s(a`<nile-progress-bar value="50"></nile-progress-bar>`);e(r.value).to.equal(50);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("50%")})),it("should handle boundary value 0%",(async()=>{const r=await s(a`<nile-progress-bar value="0"></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should handle boundary value 100%",(async()=>{const r=await s(a`<nile-progress-bar value="100"></nile-progress-bar>`);e(r.value).to.equal(100);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("100%")})),it("should revert values greater than 100",(async()=>{const r=await s(a`<nile-progress-bar value="150"></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should revert negative values",(async()=>{const r=await s(a`<nile-progress-bar value="-50"></nile-progress-bar>`);e(r.value).to.equal(0);const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("0%")})),it("should update the value dynamically",(async()=>{const r=await s(a`<nile-progress-bar value="20"></nile-progress-bar>`);r.value=80,await r.updateComplete;const t=r.shadowRoot.querySelector("span")??{};e(t.style.width).to.equal("80%")}))}));
@@ -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-cb376a7f.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-radio.cjs.js","tslib","lit/decorators.js","./nile-radio.css.cjs.js","lit/directives/class-map.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var i,a,e,t,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10;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){i=_fixture002CjsJs.f;a=_fixture002CjsJs.a;e=_fixture002CjsJs.e;},function(_litStaticHtmlJs){t=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileRadioCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileRadioCssCjsJs){},function(_litDirectivesClassMapJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileRadio",function(){it("should have the correct default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var e;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context2.sent;a(e.checked).to.be["false"],a(e.disabled).to.be["false"],a(e.size).to.equal("medium");case 4:case"end":return _context2.stop();}},_callee);}))),it("should reflect the disabled attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-radio disabled></nile-radio>"]))));case 2:e=_context3.sent;a(e.disabled).to.be["true"],a(e.hasAttribute("aria-disabled")).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}))),it("should update aria-checked when checked changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return i(t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context4.sent;e.checked=!0;_context4.next=6;return e.updateComplete;case 6:a(e.getAttribute("aria-checked")).to.equal("true");case 7:case"end":return _context4.stop();}},_callee3);}))),it("should toggle checked state on click when not disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:s=_context5.sent;s.click();_context5.next=6;return e(s);case 6:a(s.checked).to.be["true"];case 7:case"end":return _context5.stop();}},_callee4);}))),it("should not toggle checked state on click when disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var s;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-radio disabled></nile-radio>"]))));case 2:s=_context6.sent;s.click();_context6.next=6;return e(s);case 6:a(s.checked).to.be["false"];case 7:case"end":return _context6.stop();}},_callee5);}))),it("should emit nile-blur event on blur",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var e,s,o;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context7.sent;s=new Promise(function(i){return e.addEventListener("nile-blur",i);});e.dispatchEvent(new Event("blur"));_context7.next=7;return s;case 7:o=_context7.sent;a(o).to.exist;case 9:case"end":return _context7.stop();}},_callee6);}))),it("should emit nile-focus event on focus",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var e,s,o;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return i(t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context8.sent;s=new Promise(function(i){return e.addEventListener("nile-focus",i);});e.dispatchEvent(new Event("focus"));_context8.next=7;return s;case 7:o=_context8.sent;a(o).to.exist;case 9:case"end":return _context8.stop();}},_callee7);}))),it("should apply the correct classes based on state",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var e,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(t(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context9.sent;e.checked=!0;e.disabled=!0;e.size="medium";_context9.next=8;return e.updateComplete;case 8:s=e.shadowRoot.querySelector('[part="base"]');a(s.classList.contains("radio--checked")).to.be["true"],a(s.classList.contains("radio--disabled")).to.be["true"],a(s.classList.contains("radio--medium")).to.be["true"];case 10:case"end":return _context9.stop();}},_callee8);}))),it("should update aria-disabled when disabled changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var s;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return i(t(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:s=_context10.sent;s.disabled=!0;_context10.next=6;return e(s);case 6:a(s.getAttribute("aria-disabled")).to.equal("true");case 7:case"end":return _context10.stop();}},_callee9);}))),it("should set initial attributes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var e;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return i(t(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context11.sent;a(e.getAttribute("role")).to.equal("radio"),a(e.getAttribute("tabindex")).to.equal("-1"),a(e.getAttribute("aria-disabled")).to.equal("false");case 4:case"end":return _context11.stop();}},_callee10);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-radio.cjs.js","tslib","lit/decorators.js","./nile-radio.css.cjs.js","lit/directives/class-map.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var i,a,e,t,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10;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){i=_fixture001CjsJs.f;a=_fixture001CjsJs.a;e=_fixture001CjsJs.e;},function(_litStaticHtmlJs){t=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileRadioCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileRadioCssCjsJs){},function(_litDirectivesClassMapJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileRadio",function(){it("should have the correct default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var e;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return i(t(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context2.sent;a(e.checked).to.be["false"],a(e.disabled).to.be["false"],a(e.size).to.equal("medium");case 4:case"end":return _context2.stop();}},_callee);}))),it("should reflect the disabled attribute",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var e;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return i(t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-radio disabled></nile-radio>"]))));case 2:e=_context3.sent;a(e.disabled).to.be["true"],a(e.hasAttribute("aria-disabled")).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}))),it("should update aria-checked when checked changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var e;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return i(t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context4.sent;e.checked=!0;_context4.next=6;return e.updateComplete;case 6:a(e.getAttribute("aria-checked")).to.equal("true");case 7:case"end":return _context4.stop();}},_callee3);}))),it("should toggle checked state on click when not disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return i(t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:s=_context5.sent;s.click();_context5.next=6;return e(s);case 6:a(s.checked).to.be["true"];case 7:case"end":return _context5.stop();}},_callee4);}))),it("should not toggle checked state on click when disabled",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var s;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return i(t(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-radio disabled></nile-radio>"]))));case 2:s=_context6.sent;s.click();_context6.next=6;return e(s);case 6:a(s.checked).to.be["false"];case 7:case"end":return _context6.stop();}},_callee5);}))),it("should emit nile-blur event on blur",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var e,s,o;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return i(t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context7.sent;s=new Promise(function(i){return e.addEventListener("nile-blur",i);});e.dispatchEvent(new Event("blur"));_context7.next=7;return s;case 7:o=_context7.sent;a(o).to.exist;case 9:case"end":return _context7.stop();}},_callee6);}))),it("should emit nile-focus event on focus",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var e,s,o;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return i(t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context8.sent;s=new Promise(function(i){return e.addEventListener("nile-focus",i);});e.dispatchEvent(new Event("focus"));_context8.next=7;return s;case 7:o=_context8.sent;a(o).to.exist;case 9:case"end":return _context8.stop();}},_callee7);}))),it("should apply the correct classes based on state",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var e,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return i(t(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context9.sent;e.checked=!0;e.disabled=!0;e.size="medium";_context9.next=8;return e.updateComplete;case 8:s=e.shadowRoot.querySelector('[part="base"]');a(s.classList.contains("radio--checked")).to.be["true"],a(s.classList.contains("radio--disabled")).to.be["true"],a(s.classList.contains("radio--medium")).to.be["true"];case 10:case"end":return _context9.stop();}},_callee8);}))),it("should update aria-disabled when disabled changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var s;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return i(t(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:s=_context10.sent;s.disabled=!0;_context10.next=6;return e(s);case 6:a(s.getAttribute("aria-disabled")).to.equal("true");case 7:case"end":return _context10.stop();}},_callee9);}))),it("should set initial attributes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var e;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return i(t(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<nile-radio></nile-radio>"]))));case 2:e=_context11.sent;a(e.getAttribute("role")).to.equal("radio"),a(e.getAttribute("tabindex")).to.equal("-1"),a(e.getAttribute("aria-disabled")).to.equal("false");case 4:case"end":return _context11.stop();}},_callee10);})));});}};});
2
2
  //# sourceMappingURL=nile-radio.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as i,a as e,e as a}from"../fixture-add72f26.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-radio.esm.js";import"tslib";import"lit/decorators.js";import"./nile-radio.css.esm.js";import"lit/directives/class-map.js";import"../internal/watch.esm.js";import"../internal/nile-element.esm.js";describe("NileRadio",(()=>{it("should have the correct default properties",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);e(a.checked).to.be.false,e(a.disabled).to.be.false,e(a.size).to.equal("medium")})),it("should reflect the disabled attribute",(async()=>{const a=await i(t`<nile-radio disabled></nile-radio>`);e(a.disabled).to.be.true,e(a.hasAttribute("aria-disabled")).to.be.true})),it("should update aria-checked when checked changes",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);a.checked=!0,await a.updateComplete,e(a.getAttribute("aria-checked")).to.equal("true")})),it("should toggle checked state on click when not disabled",(async()=>{const s=await i(t`<nile-radio></nile-radio>`);s.click(),await a(s),e(s.checked).to.be.true})),it("should not toggle checked state on click when disabled",(async()=>{const s=await i(t`<nile-radio disabled></nile-radio>`);s.click(),await a(s),e(s.checked).to.be.false})),it("should emit nile-blur event on blur",(async()=>{const a=await i(t`<nile-radio></nile-radio>`),s=new Promise((i=>a.addEventListener("nile-blur",i)));a.dispatchEvent(new Event("blur"));const o=await s;e(o).to.exist})),it("should emit nile-focus event on focus",(async()=>{const a=await i(t`<nile-radio></nile-radio>`),s=new Promise((i=>a.addEventListener("nile-focus",i)));a.dispatchEvent(new Event("focus"));const o=await s;e(o).to.exist})),it("should apply the correct classes based on state",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);a.checked=!0,a.disabled=!0,a.size="medium",await a.updateComplete;const s=a.shadowRoot.querySelector('[part="base"]');e(s.classList.contains("radio--checked")).to.be.true,e(s.classList.contains("radio--disabled")).to.be.true,e(s.classList.contains("radio--medium")).to.be.true})),it("should update aria-disabled when disabled changes",(async()=>{const s=await i(t`<nile-radio></nile-radio>`);s.disabled=!0,await a(s),e(s.getAttribute("aria-disabled")).to.equal("true")})),it("should set initial attributes correctly",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);e(a.getAttribute("role")).to.equal("radio"),e(a.getAttribute("tabindex")).to.equal("-1"),e(a.getAttribute("aria-disabled")).to.equal("false")}))}));
1
+ import{f as i,a as e,e as a}from"../fixture-588a3119.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-radio.esm.js";import"tslib";import"lit/decorators.js";import"./nile-radio.css.esm.js";import"lit/directives/class-map.js";import"../internal/watch.esm.js";import"../internal/nile-element.esm.js";describe("NileRadio",(()=>{it("should have the correct default properties",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);e(a.checked).to.be.false,e(a.disabled).to.be.false,e(a.size).to.equal("medium")})),it("should reflect the disabled attribute",(async()=>{const a=await i(t`<nile-radio disabled></nile-radio>`);e(a.disabled).to.be.true,e(a.hasAttribute("aria-disabled")).to.be.true})),it("should update aria-checked when checked changes",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);a.checked=!0,await a.updateComplete,e(a.getAttribute("aria-checked")).to.equal("true")})),it("should toggle checked state on click when not disabled",(async()=>{const s=await i(t`<nile-radio></nile-radio>`);s.click(),await a(s),e(s.checked).to.be.true})),it("should not toggle checked state on click when disabled",(async()=>{const s=await i(t`<nile-radio disabled></nile-radio>`);s.click(),await a(s),e(s.checked).to.be.false})),it("should emit nile-blur event on blur",(async()=>{const a=await i(t`<nile-radio></nile-radio>`),s=new Promise((i=>a.addEventListener("nile-blur",i)));a.dispatchEvent(new Event("blur"));const o=await s;e(o).to.exist})),it("should emit nile-focus event on focus",(async()=>{const a=await i(t`<nile-radio></nile-radio>`),s=new Promise((i=>a.addEventListener("nile-focus",i)));a.dispatchEvent(new Event("focus"));const o=await s;e(o).to.exist})),it("should apply the correct classes based on state",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);a.checked=!0,a.disabled=!0,a.size="medium",await a.updateComplete;const s=a.shadowRoot.querySelector('[part="base"]');e(s.classList.contains("radio--checked")).to.be.true,e(s.classList.contains("radio--disabled")).to.be.true,e(s.classList.contains("radio--medium")).to.be.true})),it("should update aria-disabled when disabled changes",(async()=>{const s=await i(t`<nile-radio></nile-radio>`);s.disabled=!0,await a(s),e(s.getAttribute("aria-disabled")).to.equal("true")})),it("should set initial attributes correctly",(async()=>{const a=await i(t`<nile-radio></nile-radio>`);e(a.getAttribute("role")).to.equal("radio"),e(a.getAttribute("tabindex")).to.equal("-1"),e(a.getAttribute("aria-disabled")).to.equal("false")}))}));
@@ -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-cb376a7f.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-radio-group.cjs.js","../nile-radio/nile-radio.cjs.js","tslib","lit/directives/class-map.js","lit/decorators.js","../internal/slot.cjs.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js","./nile-radio-group.css.cjs.js","../nile-radio/nile-radio.css.cjs.js"],function(_export,_context){"use strict";var e,i,a,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10;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){a=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileRadioGroupCjsJs){},function(_nileRadioNileRadioCjsJs){},function(_tslib){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){},function(_internalSlotCjsJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){},function(_nileRadioGroupCssCjsJs){},function(_nileRadioNileRadioCssCjsJs){}],execute:function execute(){describe("nile-radio-group",function(){it("should render the radio group with radios",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o,l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(a(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Select an option\" name=\"options\" value=\"2\">\n <nile-radio name=\"test\" value=\"1\" label=\"Radio 1\"></nile-radio>\n <nile-radio name=\"test\" value=\"2\" label=\"Radio 2\"></nile-radio>\n <nile-radio name=\"test\" value=\"3\" label=\"Radio 3\"></nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context2.sent;l=o.querySelectorAll("nile-radio");i(l.length).to.equal(3),i(o.label).to.equal("Select an option");case 5:case"end":return _context2.stop();}},_callee);}))),it("should select the correct radio based on value",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var o;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return e(a(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Select an option\" name=\"options\" value=\"2\">\n <nile-radio name=\"test\" value=\"1\" label=\"Radio 1\"></nile-radio>\n <nile-radio name=\"test\" value=\"2\" label=\"Radio 2\"></nile-radio>\n <nile-radio name=\"test\" value=\"3\" label=\"Radio 3\"></nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context3.sent.querySelector('nile-radio[value="2"]');i(o===null||o===void 0?void 0:o.checked).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}))),it("should emit change event when radio selection changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var o,l,n;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return e(a(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Select an option\" name=\"options\" value=\"1\">\n <nile-radio name=\"test\" value=\"1\" label=\"Radio 1\"></nile-radio>\n <nile-radio name=\"test\" value=\"2\" label=\"Radio 2\"></nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context4.sent;l=!1;o.addEventListener("change",function(){l=!0;});n=o.querySelector('nile-radio[value="2"]');n!==null&&n!==void 0&&n.click();_context4.next=9;return o.updateComplete;case 9:i(l).to.be["true"];i(o.value).to.equal("2");case 11:case"end":return _context4.stop();}},_callee3);}))),it("should handle disabled radios correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var o,l,n;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return e(a(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Disabled Option\" name=\"options\">\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\" disabled islabelborder>Radio 2</nile-radio>\n <nile-radio name=\"test\" value=\"3\" disabled>Radio 3</nile-radio>\n <nile-radio name=\"test\" value=\"4\">Radio 4</nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context5.sent;l=o.querySelectorAll("nile-radio[disabled]");i(l.length).to.equal(2);n=o.querySelector('nile-radio[value="1"]');n!==null&&n!==void 0&&n.click();_context5.next=9;return o.updateComplete;case 9:i(o.value).to.equal("1");case 10:case"end":return _context5.stop();}},_callee4);}))),it("should not allow selection of disabled radio",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var o,l;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return e(a(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Disabled Option\" name=\"options\">\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\" disabled>Radio 2</nile-radio>\n <nile-radio name=\"test\" value=\"3\">Radio 3</nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context6.sent;l=o.querySelector('nile-radio[value="2"]');l!==null&&l!==void 0&&l.click();_context6.next=7;return o.updateComplete;case 7:i(o.value).to.equal("");case 8:case"end":return _context6.stop();}},_callee5);}))),it("should correctly handle the islabelborder property",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return e(a(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Border Option\" name=\"options\" islabelborder>\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\"> Radio 2 </nile-radio>\n </nile-radio-group>\n "]))));case 2:_context7.sent.querySelectorAll("nile-radio").forEach(function(e){i(e.islabelborder).to.be["true"];});case 3:case"end":return _context7.stop();}},_callee6);}))),it("should focus the first radio when the label is clicked",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _o$shadowRoot;var o,l,n;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e(a(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Focus Test\" name=\"options\">\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\"> Radio 2 </nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context8.sent;l=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector("label");l!==null&&l!==void 0&&l.click();_context8.next=7;return o.updateComplete;case 7:n=o.querySelector('nile-radio[value="1"]');i(document.activeElement).to.equal(n);case 9:case"end":return _context8.stop();}},_callee7);}))),it("should set required attribute correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _o$shadowRoot2;var o,l;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e(a(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Required Test\" name=\"options\" required>\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\"> Radio 2 </nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context9.sent;l=(_o$shadowRoot2=o.shadowRoot)===null||_o$shadowRoot2===void 0?void 0:_o$shadowRoot2.querySelector(".radio-group__validation-input");i(l===null||l===void 0?void 0:l.required).to.be["true"];case 5:case"end":return _context9.stop();}},_callee8);}))),it("should reflect the current value property correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var o,l;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return e(a(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Reflect Test\" name=\"options\" value=\"1\">\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\"> Radio 2 </nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context10.sent;i(o.value).to.equal("1");o.value="2";_context10.next=7;return o.updateComplete;case 7:i(o.value).to.equal("2");l=o.querySelector('nile-radio[value="2"]');i(l===null||l===void 0?void 0:l.checked).to.be["true"];case 10:case"end":return _context10.stop();}},_callee9);}))),it("should toggle selection with arrow keys",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var _o$shadowRoot3;var o,l,n,t,r,d,s,u,c;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return e(a(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n\t\t\t<nile-radio-group label=\"Arrow Key Navigation\" name=\"options\">\n\t\t\t\t<nile-radio name=\"test\" value=\"1\" label=\"Radio 1\"></nile-radio>\n\t\t\t\t<nile-radio name=\"test\" value=\"2\" label=\"Radio 2\"></nile-radio>\n\t\t\t\t<nile-radio name=\"test\" value=\"3\" label=\"Radio 3\"></nile-radio>\n\t\t\t</nile-radio-group>\n\t\t"]))));case 2:o=_context11.sent;l=(_o$shadowRoot3=o.shadowRoot)===null||_o$shadowRoot3===void 0?void 0:_o$shadowRoot3.querySelector("fieldset > div > div:nth-child(2) > slot");n=o.querySelector('nile-radio[value="1"]');n!==null&&n!==void 0&&n.click();_context11.next=8;return o.updateComplete;case 8:t=new KeyboardEvent("keydown",{key:"ArrowRight"});l!==null&&l!==void 0&&l.dispatchEvent(t);_context11.next=12;return o.updateComplete;case 12:r=o.querySelector('nile-radio[value="2"]');i(r===null||r===void 0?void 0:r.checked).to.be["true"];l!==null&&l!==void 0&&l.dispatchEvent(t);_context11.next=17;return o.updateComplete;case 17:d=o.querySelector('nile-radio[value="3"]');i(d===null||d===void 0?void 0:d.checked).to.be["true"];s=new KeyboardEvent("keydown",{key:"ArrowLeft"});l!==null&&l!==void 0&&l.dispatchEvent(s);_context11.next=23;return o.updateComplete;case 23:i(r===null||r===void 0?void 0:r.checked).to.be["true"];l!==null&&l!==void 0&&l.dispatchEvent(s);_context11.next=27;return o.updateComplete;case 27:i(n===null||n===void 0?void 0:n.checked).to.be["true"];u=new KeyboardEvent("keydown",{key:"ArrowDown"});l!==null&&l!==void 0&&l.dispatchEvent(u);_context11.next=32;return o.updateComplete;case 32:i(r===null||r===void 0?void 0:r.checked).to.be["true"];c=new KeyboardEvent("keydown",{key:"ArrowUp"});l!==null&&l!==void 0&&l.dispatchEvent(c);_context11.next=37;return o.updateComplete;case 37:i(n===null||n===void 0?void 0:n.checked).to.be["true"];case 38:case"end":return _context11.stop();}},_callee10);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-radio-group.cjs.js","../nile-radio/nile-radio.cjs.js","tslib","lit/directives/class-map.js","lit/decorators.js","../internal/slot.cjs.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js","./nile-radio-group.css.cjs.js","../nile-radio/nile-radio.css.cjs.js"],function(_export,_context){"use strict";var e,i,a,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10;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){a=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileRadioGroupCjsJs){},function(_nileRadioNileRadioCjsJs){},function(_tslib){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){},function(_internalSlotCjsJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){},function(_nileRadioGroupCssCjsJs){},function(_nileRadioNileRadioCssCjsJs){}],execute:function execute(){describe("nile-radio-group",function(){it("should render the radio group with radios",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o,l;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(a(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Select an option\" name=\"options\" value=\"2\">\n <nile-radio name=\"test\" value=\"1\" label=\"Radio 1\"></nile-radio>\n <nile-radio name=\"test\" value=\"2\" label=\"Radio 2\"></nile-radio>\n <nile-radio name=\"test\" value=\"3\" label=\"Radio 3\"></nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context2.sent;l=o.querySelectorAll("nile-radio");i(l.length).to.equal(3),i(o.label).to.equal("Select an option");case 5:case"end":return _context2.stop();}},_callee);}))),it("should select the correct radio based on value",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var o;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return e(a(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Select an option\" name=\"options\" value=\"2\">\n <nile-radio name=\"test\" value=\"1\" label=\"Radio 1\"></nile-radio>\n <nile-radio name=\"test\" value=\"2\" label=\"Radio 2\"></nile-radio>\n <nile-radio name=\"test\" value=\"3\" label=\"Radio 3\"></nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context3.sent.querySelector('nile-radio[value="2"]');i(o===null||o===void 0?void 0:o.checked).to.be["true"];case 4:case"end":return _context3.stop();}},_callee2);}))),it("should emit change event when radio selection changes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var o,l,n;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return e(a(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Select an option\" name=\"options\" value=\"1\">\n <nile-radio name=\"test\" value=\"1\" label=\"Radio 1\"></nile-radio>\n <nile-radio name=\"test\" value=\"2\" label=\"Radio 2\"></nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context4.sent;l=!1;o.addEventListener("change",function(){l=!0;});n=o.querySelector('nile-radio[value="2"]');n!==null&&n!==void 0&&n.click();_context4.next=9;return o.updateComplete;case 9:i(l).to.be["true"];i(o.value).to.equal("2");case 11:case"end":return _context4.stop();}},_callee3);}))),it("should handle disabled radios correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var o,l,n;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return e(a(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Disabled Option\" name=\"options\">\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\" disabled islabelborder>Radio 2</nile-radio>\n <nile-radio name=\"test\" value=\"3\" disabled>Radio 3</nile-radio>\n <nile-radio name=\"test\" value=\"4\">Radio 4</nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context5.sent;l=o.querySelectorAll("nile-radio[disabled]");i(l.length).to.equal(2);n=o.querySelector('nile-radio[value="1"]');n!==null&&n!==void 0&&n.click();_context5.next=9;return o.updateComplete;case 9:i(o.value).to.equal("1");case 10:case"end":return _context5.stop();}},_callee4);}))),it("should not allow selection of disabled radio",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var o,l;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return e(a(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Disabled Option\" name=\"options\">\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\" disabled>Radio 2</nile-radio>\n <nile-radio name=\"test\" value=\"3\">Radio 3</nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context6.sent;l=o.querySelector('nile-radio[value="2"]');l!==null&&l!==void 0&&l.click();_context6.next=7;return o.updateComplete;case 7:i(o.value).to.equal("");case 8:case"end":return _context6.stop();}},_callee5);}))),it("should correctly handle the islabelborder property",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return e(a(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Border Option\" name=\"options\" islabelborder>\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\"> Radio 2 </nile-radio>\n </nile-radio-group>\n "]))));case 2:_context7.sent.querySelectorAll("nile-radio").forEach(function(e){i(e.islabelborder).to.be["true"];});case 3:case"end":return _context7.stop();}},_callee6);}))),it("should focus the first radio when the label is clicked",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _o$shadowRoot;var o,l,n;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e(a(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Focus Test\" name=\"options\">\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\"> Radio 2 </nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context8.sent;l=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector("label");l!==null&&l!==void 0&&l.click();_context8.next=7;return o.updateComplete;case 7:n=o.querySelector('nile-radio[value="1"]');i(document.activeElement).to.equal(n);case 9:case"end":return _context8.stop();}},_callee7);}))),it("should set required attribute correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var _o$shadowRoot2;var o,l;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e(a(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Required Test\" name=\"options\" required>\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\"> Radio 2 </nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context9.sent;l=(_o$shadowRoot2=o.shadowRoot)===null||_o$shadowRoot2===void 0?void 0:_o$shadowRoot2.querySelector(".radio-group__validation-input");i(l===null||l===void 0?void 0:l.required).to.be["true"];case 5:case"end":return _context9.stop();}},_callee8);}))),it("should reflect the current value property correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var o,l;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return e(a(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <nile-radio-group label=\"Reflect Test\" name=\"options\" value=\"1\">\n <nile-radio name=\"test\" value=\"1\"> Radio 1 </nile-radio>\n <nile-radio name=\"test\" value=\"2\"> Radio 2 </nile-radio>\n </nile-radio-group>\n "]))));case 2:o=_context10.sent;i(o.value).to.equal("1");o.value="2";_context10.next=7;return o.updateComplete;case 7:i(o.value).to.equal("2");l=o.querySelector('nile-radio[value="2"]');i(l===null||l===void 0?void 0:l.checked).to.be["true"];case 10:case"end":return _context10.stop();}},_callee9);}))),it("should toggle selection with arrow keys",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var _o$shadowRoot3;var o,l,n,t,r,d,s,u,c;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return e(a(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n\t\t\t<nile-radio-group label=\"Arrow Key Navigation\" name=\"options\">\n\t\t\t\t<nile-radio name=\"test\" value=\"1\" label=\"Radio 1\"></nile-radio>\n\t\t\t\t<nile-radio name=\"test\" value=\"2\" label=\"Radio 2\"></nile-radio>\n\t\t\t\t<nile-radio name=\"test\" value=\"3\" label=\"Radio 3\"></nile-radio>\n\t\t\t</nile-radio-group>\n\t\t"]))));case 2:o=_context11.sent;l=(_o$shadowRoot3=o.shadowRoot)===null||_o$shadowRoot3===void 0?void 0:_o$shadowRoot3.querySelector("fieldset > div > div:nth-child(2) > slot");n=o.querySelector('nile-radio[value="1"]');n!==null&&n!==void 0&&n.click();_context11.next=8;return o.updateComplete;case 8:t=new KeyboardEvent("keydown",{key:"ArrowRight"});l!==null&&l!==void 0&&l.dispatchEvent(t);_context11.next=12;return o.updateComplete;case 12:r=o.querySelector('nile-radio[value="2"]');i(r===null||r===void 0?void 0:r.checked).to.be["true"];l!==null&&l!==void 0&&l.dispatchEvent(t);_context11.next=17;return o.updateComplete;case 17:d=o.querySelector('nile-radio[value="3"]');i(d===null||d===void 0?void 0:d.checked).to.be["true"];s=new KeyboardEvent("keydown",{key:"ArrowLeft"});l!==null&&l!==void 0&&l.dispatchEvent(s);_context11.next=23;return o.updateComplete;case 23:i(r===null||r===void 0?void 0:r.checked).to.be["true"];l!==null&&l!==void 0&&l.dispatchEvent(s);_context11.next=27;return o.updateComplete;case 27:i(n===null||n===void 0?void 0:n.checked).to.be["true"];u=new KeyboardEvent("keydown",{key:"ArrowDown"});l!==null&&l!==void 0&&l.dispatchEvent(u);_context11.next=32;return o.updateComplete;case 32:i(r===null||r===void 0?void 0:r.checked).to.be["true"];c=new KeyboardEvent("keydown",{key:"ArrowUp"});l!==null&&l!==void 0&&l.dispatchEvent(c);_context11.next=37;return o.updateComplete;case 37:i(n===null||n===void 0?void 0:n.checked).to.be["true"];case 38:case"end":return _context11.stop();}},_callee10);})));});}};});
2
2
  //# sourceMappingURL=nile-radio-group.test.cjs.js.map
@@ -1,4 +1,4 @@
1
- import{f as e,a as i}from"../fixture-add72f26.esm.js";import{html as a}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-radio-group.esm.js";import"../nile-radio/nile-radio.esm.js";import"tslib";import"lit/directives/class-map.js";import"lit/decorators.js";import"../internal/slot.esm.js";import"../internal/watch.esm.js";import"../internal/nile-element.esm.js";import"./nile-radio-group.css.esm.js";import"../nile-radio/nile-radio.css.esm.js";describe("nile-radio-group",(()=>{it("should render the radio group with radios",(async()=>{const o=await e(a`
1
+ import{f as e,a as i}from"../fixture-588a3119.esm.js";import{html as a}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-radio-group.esm.js";import"../nile-radio/nile-radio.esm.js";import"tslib";import"lit/directives/class-map.js";import"lit/decorators.js";import"../internal/slot.esm.js";import"../internal/watch.esm.js";import"../internal/nile-element.esm.js";import"./nile-radio-group.css.esm.js";import"../nile-radio/nile-radio.css.esm.js";describe("nile-radio-group",(()=>{it("should render the radio group with radios",(async()=>{const o=await e(a`
2
2
  <nile-radio-group label="Select an option" name="options" value="2">
3
3
  <nile-radio name="test" value="1" label="Radio 1"></nile-radio>
4
4
  <nile-radio name="test" value="2" label="Radio 2"></nile-radio>
@@ -0,0 +1,2 @@
1
+ System.register(["./nile-rich-text-editor.cjs.js","tslib","lit","lit/decorators.js","./nile-rte-toolbar.cjs.js","./nile-rte-toolbar-item.cjs.js","./nile-rte-select.cjs.js","./nile-rte-color.cjs.js","./nile-rte-divider.cjs.js","./nile-rte-preview.cjs.js","./nile-rte-mentions.cjs.js","./utils.cjs.js","./nile-rich-text-editor.css.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileRichTextEditorCjsJs){_export("NileRichTextEditor",_nileRichTextEditorCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileRteToolbarCjsJs){},function(_nileRteToolbarItemCjsJs){},function(_nileRteSelectCjsJs){},function(_nileRteColorCjsJs){},function(_nileRteDividerCjsJs){},function(_nileRtePreviewCjsJs){},function(_nileRteMentionsCjsJs){},function(_utilsCjsJs){},function(_nileRichTextEditorCssCjsJs){}],execute:function execute(){}};});
2
+ //# sourceMappingURL=index.cjs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.cjs.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1 @@
1
+ export{N as NileRichTextEditor}from"./nile-rich-text-editor.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-rte-toolbar.esm.js";import"./nile-rte-toolbar-item.esm.js";import"./nile-rte-select.esm.js";import"./nile-rte-color.esm.js";import"./nile-rte-divider.esm.js";import"./nile-rte-preview.esm.js";import"./nile-rte-mentions.esm.js";import"./utils.esm.js";import"./nile-rich-text-editor.css.esm.js";