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

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 (1098) hide show
  1. package/README.md +59 -14
  2. package/demo/index.css +17 -53
  3. package/demo/index.html +195 -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 +935 -494
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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.cjs.js +2 -0
  161. package/dist/nile-icon/icons/svg/bold.cjs.js.map +1 -0
  162. package/dist/nile-icon/icons/svg/bold.esm.js +1 -0
  163. package/dist/nile-icon/icons/svg/center-align.cjs.js +2 -0
  164. package/dist/nile-icon/icons/svg/center-align.cjs.js.map +1 -0
  165. package/dist/nile-icon/icons/svg/center-align.esm.js +1 -0
  166. package/dist/nile-icon/icons/svg/database.cjs.js +1 -1
  167. package/dist/nile-icon/icons/svg/database.cjs.js.map +1 -1
  168. package/dist/nile-icon/icons/svg/database.esm.js +1 -1
  169. package/dist/nile-icon/icons/svg/done.cjs.js +1 -1
  170. package/dist/nile-icon/icons/svg/done.cjs.js.map +1 -1
  171. package/dist/nile-icon/icons/svg/done.esm.js +1 -1
  172. package/dist/nile-icon/icons/svg/dontmap.cjs.js +1 -1
  173. package/dist/nile-icon/icons/svg/dontmap.cjs.js.map +1 -1
  174. package/dist/nile-icon/icons/svg/dontmap.esm.js +1 -1
  175. package/dist/nile-icon/icons/svg/doublearrowleft.cjs.js +1 -1
  176. package/dist/nile-icon/icons/svg/doublearrowleft.cjs.js.map +1 -1
  177. package/dist/nile-icon/icons/svg/doublearrowleft.esm.js +1 -1
  178. package/dist/nile-icon/icons/svg/doublearrowright.cjs.js +1 -1
  179. package/dist/nile-icon/icons/svg/doublearrowright.cjs.js.map +1 -1
  180. package/dist/nile-icon/icons/svg/doublearrowright.esm.js +1 -1
  181. package/dist/nile-icon/icons/svg/drag.cjs.js +1 -1
  182. package/dist/nile-icon/icons/svg/drag.cjs.js.map +1 -1
  183. package/dist/nile-icon/icons/svg/drag.esm.js +1 -1
  184. package/dist/nile-icon/icons/svg/expand-06.cjs.js +1 -1
  185. package/dist/nile-icon/icons/svg/expand-06.cjs.js.map +1 -1
  186. package/dist/nile-icon/icons/svg/expand-06.esm.js +1 -1
  187. package/dist/nile-icon/icons/svg/expand.cjs.js +1 -1
  188. package/dist/nile-icon/icons/svg/expand.cjs.js.map +1 -1
  189. package/dist/nile-icon/icons/svg/expand.esm.js +1 -1
  190. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  191. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  192. package/dist/nile-icon/icons/svg/info.cjs.js +1 -1
  193. package/dist/nile-icon/icons/svg/info.cjs.js.map +1 -1
  194. package/dist/nile-icon/icons/svg/info.esm.js +1 -1
  195. package/dist/nile-icon/icons/svg/integer.cjs.js +1 -1
  196. package/dist/nile-icon/icons/svg/integer.cjs.js.map +1 -1
  197. package/dist/nile-icon/icons/svg/integer.esm.js +1 -1
  198. package/dist/nile-icon/icons/svg/itallic.cjs.js +2 -0
  199. package/dist/nile-icon/icons/svg/itallic.cjs.js.map +1 -0
  200. package/dist/nile-icon/icons/svg/itallic.esm.js +1 -0
  201. package/dist/nile-icon/icons/svg/justify-align.cjs.js +2 -0
  202. package/dist/nile-icon/icons/svg/justify-align.cjs.js.map +1 -0
  203. package/dist/nile-icon/icons/svg/justify-align.esm.js +1 -0
  204. package/dist/nile-icon/icons/svg/left-align.cjs.js +2 -0
  205. package/dist/nile-icon/icons/svg/left-align.cjs.js.map +1 -0
  206. package/dist/nile-icon/icons/svg/left-align.esm.js +1 -0
  207. package/dist/nile-icon/icons/svg/ng-activity.cjs.js +2 -0
  208. package/dist/nile-icon/icons/svg/ng-activity.cjs.js.map +1 -0
  209. package/dist/nile-icon/icons/svg/ng-activity.esm.js +1 -0
  210. package/dist/nile-icon/icons/svg/ng-align-center.cjs.js +2 -0
  211. package/dist/nile-icon/icons/svg/ng-align-center.cjs.js.map +1 -0
  212. package/dist/nile-icon/icons/svg/ng-align-center.esm.js +1 -0
  213. package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js +2 -0
  214. package/dist/nile-icon/icons/svg/ng-annotation-x.cjs.js.map +1 -0
  215. package/dist/nile-icon/icons/svg/ng-annotation-x.esm.js +1 -0
  216. package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js +2 -0
  217. package/dist/nile-icon/icons/svg/ng-arrow-down.cjs.js.map +1 -0
  218. package/dist/nile-icon/icons/svg/ng-arrow-down.esm.js +1 -0
  219. package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js +2 -0
  220. package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.cjs.js.map +1 -0
  221. package/dist/nile-icon/icons/svg/ng-arrow-narrow-down.esm.js +1 -0
  222. package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js +2 -0
  223. package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.cjs.js.map +1 -0
  224. package/dist/nile-icon/icons/svg/ng-arrow-narrow-left.esm.js +1 -0
  225. package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js +2 -0
  226. package/dist/nile-icon/icons/svg/ng-arrow-up.cjs.js.map +1 -0
  227. package/dist/nile-icon/icons/svg/ng-arrow-up.esm.js +1 -0
  228. package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js +2 -0
  229. package/dist/nile-icon/icons/svg/ng-bar-chart-12.cjs.js.map +1 -0
  230. package/dist/nile-icon/icons/svg/ng-bar-chart-12.esm.js +1 -0
  231. package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js +2 -0
  232. package/dist/nile-icon/icons/svg/ng-bell-01.cjs.js.map +1 -0
  233. package/dist/nile-icon/icons/svg/ng-bell-01.esm.js +1 -0
  234. package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js +2 -0
  235. package/dist/nile-icon/icons/svg/ng-bell-ringing-04.cjs.js.map +1 -0
  236. package/dist/nile-icon/icons/svg/ng-bell-ringing-04.esm.js +1 -0
  237. package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js +2 -0
  238. package/dist/nile-icon/icons/svg/ng-bold-01.cjs.js.map +1 -0
  239. package/dist/nile-icon/icons/svg/ng-bold-01.esm.js +1 -0
  240. package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js +2 -0
  241. package/dist/nile-icon/icons/svg/ng-calendar-plus-02.cjs.js.map +1 -0
  242. package/dist/nile-icon/icons/svg/ng-calendar-plus-02.esm.js +1 -0
  243. package/dist/nile-icon/icons/svg/ng-calendar.cjs.js +2 -0
  244. package/dist/nile-icon/icons/svg/ng-calendar.cjs.js.map +1 -0
  245. package/dist/nile-icon/icons/svg/ng-calendar.esm.js +1 -0
  246. package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js +2 -0
  247. package/dist/nile-icon/icons/svg/ng-check-circle.cjs.js.map +1 -0
  248. package/dist/nile-icon/icons/svg/ng-check-circle.esm.js +1 -0
  249. package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js +2 -0
  250. package/dist/nile-icon/icons/svg/ng-check-square-broken.cjs.js.map +1 -0
  251. package/dist/nile-icon/icons/svg/ng-check-square-broken.esm.js +1 -0
  252. package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js +2 -0
  253. package/dist/nile-icon/icons/svg/ng-chevron-down.cjs.js.map +1 -0
  254. package/dist/nile-icon/icons/svg/ng-chevron-down.esm.js +1 -0
  255. package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js +2 -0
  256. package/dist/nile-icon/icons/svg/ng-chevron-left.cjs.js.map +1 -0
  257. package/dist/nile-icon/icons/svg/ng-chevron-left.esm.js +1 -0
  258. package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js +2 -0
  259. package/dist/nile-icon/icons/svg/ng-chevron-right.cjs.js.map +1 -0
  260. package/dist/nile-icon/icons/svg/ng-chevron-right.esm.js +1 -0
  261. package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js +2 -0
  262. package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.cjs.js.map +1 -0
  263. package/dist/nile-icon/icons/svg/ng-chevron-selector-vertical.esm.js +1 -0
  264. package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js +2 -0
  265. package/dist/nile-icon/icons/svg/ng-chevron-up-double.cjs.js.map +1 -0
  266. package/dist/nile-icon/icons/svg/ng-chevron-up-double.esm.js +1 -0
  267. package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js +2 -0
  268. package/dist/nile-icon/icons/svg/ng-chevron-up.cjs.js.map +1 -0
  269. package/dist/nile-icon/icons/svg/ng-chevron-up.esm.js +1 -0
  270. package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js +2 -0
  271. package/dist/nile-icon/icons/svg/ng-copy-03.cjs.js.map +1 -0
  272. package/dist/nile-icon/icons/svg/ng-copy-03.esm.js +1 -0
  273. package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js +2 -0
  274. package/dist/nile-icon/icons/svg/ng-dots-grid.cjs.js.map +1 -0
  275. package/dist/nile-icon/icons/svg/ng-dots-grid.esm.js +1 -0
  276. package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js +2 -0
  277. package/dist/nile-icon/icons/svg/ng-dots-vertical.cjs.js.map +1 -0
  278. package/dist/nile-icon/icons/svg/ng-dots-vertical.esm.js +1 -0
  279. package/dist/nile-icon/icons/svg/ng-download-01.cjs.js +2 -0
  280. package/dist/nile-icon/icons/svg/ng-download-01.cjs.js.map +1 -0
  281. package/dist/nile-icon/icons/svg/ng-download-01.esm.js +1 -0
  282. package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js +2 -0
  283. package/dist/nile-icon/icons/svg/ng-dropdown.cjs.js.map +1 -0
  284. package/dist/nile-icon/icons/svg/ng-dropdown.esm.js +1 -0
  285. package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js +2 -0
  286. package/dist/nile-icon/icons/svg/ng-edit-02.cjs.js.map +1 -0
  287. package/dist/nile-icon/icons/svg/ng-edit-02.esm.js +1 -0
  288. package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js +2 -0
  289. package/dist/nile-icon/icons/svg/ng-edit-05.cjs.js.map +1 -0
  290. package/dist/nile-icon/icons/svg/ng-edit-05.esm.js +1 -0
  291. package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js +2 -0
  292. package/dist/nile-icon/icons/svg/ng-expand-06.cjs.js.map +1 -0
  293. package/dist/nile-icon/icons/svg/ng-expand-06.esm.js +1 -0
  294. package/dist/nile-icon/icons/svg/ng-eye.cjs.js +2 -0
  295. package/dist/nile-icon/icons/svg/ng-eye.cjs.js.map +1 -0
  296. package/dist/nile-icon/icons/svg/ng-eye.esm.js +1 -0
  297. package/dist/nile-icon/icons/svg/ng-file-02.cjs.js +2 -0
  298. package/dist/nile-icon/icons/svg/ng-file-02.cjs.js.map +1 -0
  299. package/dist/nile-icon/icons/svg/ng-file-02.esm.js +1 -0
  300. package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js +2 -0
  301. package/dist/nile-icon/icons/svg/ng-file-check-02.cjs.js.map +1 -0
  302. package/dist/nile-icon/icons/svg/ng-file-check-02.esm.js +1 -0
  303. package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js +2 -0
  304. package/dist/nile-icon/icons/svg/ng-file-question-03.cjs.js.map +1 -0
  305. package/dist/nile-icon/icons/svg/ng-file-question-03.esm.js +1 -0
  306. package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js +2 -0
  307. package/dist/nile-icon/icons/svg/ng-filter-lines.cjs.js.map +1 -0
  308. package/dist/nile-icon/icons/svg/ng-filter-lines.esm.js +1 -0
  309. package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js +2 -0
  310. package/dist/nile-icon/icons/svg/ng-grid-01.cjs.js.map +1 -0
  311. package/dist/nile-icon/icons/svg/ng-grid-01.esm.js +1 -0
  312. package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js +2 -0
  313. package/dist/nile-icon/icons/svg/ng-help-circle.cjs.js.map +1 -0
  314. package/dist/nile-icon/icons/svg/ng-help-circle.esm.js +1 -0
  315. package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js +2 -0
  316. package/dist/nile-icon/icons/svg/ng-image-user-left.cjs.js.map +1 -0
  317. package/dist/nile-icon/icons/svg/ng-image-user-left.esm.js +1 -0
  318. package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js +2 -0
  319. package/dist/nile-icon/icons/svg/ng-info-circle.cjs.js.map +1 -0
  320. package/dist/nile-icon/icons/svg/ng-info-circle.esm.js +1 -0
  321. package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js +2 -0
  322. package/dist/nile-icon/icons/svg/ng-italic-01.cjs.js.map +1 -0
  323. package/dist/nile-icon/icons/svg/ng-italic-01.esm.js +1 -0
  324. package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js +2 -0
  325. package/dist/nile-icon/icons/svg/ng-layers-three-01.cjs.js.map +1 -0
  326. package/dist/nile-icon/icons/svg/ng-layers-three-01.esm.js +1 -0
  327. package/dist/nile-icon/icons/svg/ng-list.cjs.js +2 -0
  328. package/dist/nile-icon/icons/svg/ng-list.cjs.js.map +1 -0
  329. package/dist/nile-icon/icons/svg/ng-list.esm.js +1 -0
  330. package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js +2 -0
  331. package/dist/nile-icon/icons/svg/ng-log-out-01.cjs.js.map +1 -0
  332. package/dist/nile-icon/icons/svg/ng-log-out-01.esm.js +1 -0
  333. package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js +2 -0
  334. package/dist/nile-icon/icons/svg/ng-mail-01.cjs.js.map +1 -0
  335. package/dist/nile-icon/icons/svg/ng-mail-01.esm.js +1 -0
  336. package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js +2 -0
  337. package/dist/nile-icon/icons/svg/ng-mail-04.cjs.js.map +1 -0
  338. package/dist/nile-icon/icons/svg/ng-mail-04.esm.js +1 -0
  339. package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js +2 -0
  340. package/dist/nile-icon/icons/svg/ng-menu-05.cjs.js.map +1 -0
  341. package/dist/nile-icon/icons/svg/ng-menu-05.esm.js +1 -0
  342. package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js +2 -0
  343. package/dist/nile-icon/icons/svg/ng-message-text-square-01.cjs.js.map +1 -0
  344. package/dist/nile-icon/icons/svg/ng-message-text-square-01.esm.js +1 -0
  345. package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js +2 -0
  346. package/dist/nile-icon/icons/svg/ng-minimize-02.cjs.js.map +1 -0
  347. package/dist/nile-icon/icons/svg/ng-minimize-02.esm.js +1 -0
  348. package/dist/nile-icon/icons/svg/ng-plus.cjs.js +2 -0
  349. package/dist/nile-icon/icons/svg/ng-plus.cjs.js.map +1 -0
  350. package/dist/nile-icon/icons/svg/ng-plus.esm.js +1 -0
  351. package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js +2 -0
  352. package/dist/nile-icon/icons/svg/ng-refresh-cw-02.cjs.js.map +1 -0
  353. package/dist/nile-icon/icons/svg/ng-refresh-cw-02.esm.js +1 -0
  354. package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js +2 -0
  355. package/dist/nile-icon/icons/svg/ng-rocket-02.cjs.js.map +1 -0
  356. package/dist/nile-icon/icons/svg/ng-rocket-02.esm.js +1 -0
  357. package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js +2 -0
  358. package/dist/nile-icon/icons/svg/ng-search-lg.cjs.js.map +1 -0
  359. package/dist/nile-icon/icons/svg/ng-search-lg.esm.js +1 -0
  360. package/dist/nile-icon/icons/svg/ng-send-01.cjs.js +2 -0
  361. package/dist/nile-icon/icons/svg/ng-send-01.cjs.js.map +1 -0
  362. package/dist/nile-icon/icons/svg/ng-send-01.esm.js +1 -0
  363. package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js +2 -0
  364. package/dist/nile-icon/icons/svg/ng-settings-01.cjs.js.map +1 -0
  365. package/dist/nile-icon/icons/svg/ng-settings-01.esm.js +1 -0
  366. package/dist/nile-icon/icons/svg/ng-share-04.cjs.js +2 -0
  367. package/dist/nile-icon/icons/svg/ng-share-04.cjs.js.map +1 -0
  368. package/dist/nile-icon/icons/svg/ng-share-04.esm.js +1 -0
  369. package/dist/nile-icon/icons/svg/ng-share-06.cjs.js +2 -0
  370. package/dist/nile-icon/icons/svg/ng-share-06.cjs.js.map +1 -0
  371. package/dist/nile-icon/icons/svg/ng-share-06.esm.js +1 -0
  372. package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js +2 -0
  373. package/dist/nile-icon/icons/svg/ng-stars-02.cjs.js.map +1 -0
  374. package/dist/nile-icon/icons/svg/ng-stars-02.esm.js +1 -0
  375. package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js +2 -0
  376. package/dist/nile-icon/icons/svg/ng-trash-01.cjs.js.map +1 -0
  377. package/dist/nile-icon/icons/svg/ng-trash-01.esm.js +1 -0
  378. package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js +2 -0
  379. package/dist/nile-icon/icons/svg/ng-trash-03.cjs.js.map +1 -0
  380. package/dist/nile-icon/icons/svg/ng-trash-03.esm.js +1 -0
  381. package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js +2 -0
  382. package/dist/nile-icon/icons/svg/ng-trend-up-01.cjs.js.map +1 -0
  383. package/dist/nile-icon/icons/svg/ng-trend-up-01.esm.js +1 -0
  384. package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js +2 -0
  385. package/dist/nile-icon/icons/svg/ng-underline-01.cjs.js.map +1 -0
  386. package/dist/nile-icon/icons/svg/ng-underline-01.esm.js +1 -0
  387. package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js +2 -0
  388. package/dist/nile-icon/icons/svg/ng-upload-01.cjs.js.map +1 -0
  389. package/dist/nile-icon/icons/svg/ng-upload-01.esm.js +1 -0
  390. package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js +2 -0
  391. package/dist/nile-icon/icons/svg/ng-upload-cloud-02.cjs.js.map +1 -0
  392. package/dist/nile-icon/icons/svg/ng-upload-cloud-02.esm.js +1 -0
  393. package/dist/nile-icon/icons/svg/ng-user-01.cjs.js +2 -0
  394. package/dist/nile-icon/icons/svg/ng-user-01.cjs.js.map +1 -0
  395. package/dist/nile-icon/icons/svg/ng-user-01.esm.js +1 -0
  396. package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js +2 -0
  397. package/dist/nile-icon/icons/svg/ng-user-check-02-1.cjs.js.map +1 -0
  398. package/dist/nile-icon/icons/svg/ng-user-check-02-1.esm.js +1 -0
  399. package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js +2 -0
  400. package/dist/nile-icon/icons/svg/ng-user-check-02.cjs.js.map +1 -0
  401. package/dist/nile-icon/icons/svg/ng-user-check-02.esm.js +1 -0
  402. package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js +2 -0
  403. package/dist/nile-icon/icons/svg/ng-user-plus-02.cjs.js.map +1 -0
  404. package/dist/nile-icon/icons/svg/ng-user-plus-02.esm.js +1 -0
  405. package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js +2 -0
  406. package/dist/nile-icon/icons/svg/ng-user-right-01.cjs.js.map +1 -0
  407. package/dist/nile-icon/icons/svg/ng-user-right-01.esm.js +1 -0
  408. package/dist/nile-icon/icons/svg/ng-users-01.cjs.js +2 -0
  409. package/dist/nile-icon/icons/svg/ng-users-01.cjs.js.map +1 -0
  410. package/dist/nile-icon/icons/svg/ng-users-01.esm.js +1 -0
  411. package/dist/nile-icon/icons/svg/ng-x-close.cjs.js +2 -0
  412. package/dist/nile-icon/icons/svg/ng-x-close.cjs.js.map +1 -0
  413. package/dist/nile-icon/icons/svg/ng-x-close.esm.js +1 -0
  414. package/dist/nile-icon/icons/svg/ng-x-square.cjs.js +2 -0
  415. package/dist/nile-icon/icons/svg/ng-x-square.cjs.js.map +1 -0
  416. package/dist/nile-icon/icons/svg/ng-x-square.esm.js +1 -0
  417. package/dist/nile-icon/icons/svg/ol.cjs.js +2 -0
  418. package/dist/nile-icon/icons/svg/ol.cjs.js.map +1 -0
  419. package/dist/nile-icon/icons/svg/ol.esm.js +1 -0
  420. package/dist/nile-icon/icons/svg/pluscircle.cjs.js +1 -1
  421. package/dist/nile-icon/icons/svg/pluscircle.cjs.js.map +1 -1
  422. package/dist/nile-icon/icons/svg/pluscircle.esm.js +1 -1
  423. package/dist/nile-icon/icons/svg/question.cjs.js +1 -1
  424. package/dist/nile-icon/icons/svg/question.cjs.js.map +1 -1
  425. package/dist/nile-icon/icons/svg/question.esm.js +1 -1
  426. package/dist/nile-icon/icons/svg/resource.cjs.js +1 -1
  427. package/dist/nile-icon/icons/svg/resource.cjs.js.map +1 -1
  428. package/dist/nile-icon/icons/svg/resource.esm.js +1 -1
  429. package/dist/nile-icon/icons/svg/right-align.cjs.js +2 -0
  430. package/dist/nile-icon/icons/svg/right-align.cjs.js.map +1 -0
  431. package/dist/nile-icon/icons/svg/right-align.esm.js +1 -0
  432. package/dist/nile-icon/icons/svg/sendescalation.cjs.js +1 -1
  433. package/dist/nile-icon/icons/svg/sendescalation.cjs.js.map +1 -1
  434. package/dist/nile-icon/icons/svg/sendescalation.esm.js +1 -1
  435. package/dist/nile-icon/icons/svg/sendreminder.cjs.js +1 -1
  436. package/dist/nile-icon/icons/svg/sendreminder.cjs.js.map +1 -1
  437. package/dist/nile-icon/icons/svg/sendreminder.esm.js +1 -1
  438. package/dist/nile-icon/icons/svg/timezone.cjs.js +1 -1
  439. package/dist/nile-icon/icons/svg/timezone.cjs.js.map +1 -1
  440. package/dist/nile-icon/icons/svg/timezone.esm.js +1 -1
  441. package/dist/nile-icon/icons/svg/ul.cjs.js +2 -0
  442. package/dist/nile-icon/icons/svg/ul.cjs.js.map +1 -0
  443. package/dist/nile-icon/icons/svg/ul.esm.js +1 -0
  444. package/dist/nile-icon/icons/svg/underline.cjs.js +2 -0
  445. package/dist/nile-icon/icons/svg/underline.cjs.js.map +1 -0
  446. package/dist/nile-icon/icons/svg/underline.esm.js +1 -0
  447. package/dist/nile-icon/icons/svg/unmute.cjs.js +1 -1
  448. package/dist/nile-icon/icons/svg/unmute.cjs.js.map +1 -1
  449. package/dist/nile-icon/icons/svg/unmute.esm.js +1 -1
  450. package/dist/nile-icon/icons/svg/upgrade.cjs.js +1 -1
  451. package/dist/nile-icon/icons/svg/upgrade.cjs.js.map +1 -1
  452. package/dist/nile-icon/icons/svg/upgrade.esm.js +1 -1
  453. package/dist/nile-icon/index.cjs.js +1 -1
  454. package/dist/nile-icon/index.cjs.js.map +1 -1
  455. package/dist/nile-icon/index.esm.js +1 -1
  456. package/dist/nile-icon/nile-icon.test.cjs.js +1 -1
  457. package/dist/nile-icon/nile-icon.test.cjs.js.map +1 -1
  458. package/dist/nile-icon/nile-icon.test.esm.js +1 -1
  459. package/dist/nile-icon-button/index.cjs.js +1 -1
  460. package/dist/nile-icon-button/index.esm.js +1 -1
  461. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  462. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  463. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  464. package/dist/nile-input/index.cjs.js +1 -1
  465. package/dist/nile-input/index.esm.js +1 -1
  466. package/dist/nile-input/nile-input.cjs.js +1 -1
  467. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  468. package/dist/nile-input/nile-input.esm.js +1 -1
  469. package/dist/nile-input/nile-input.test.cjs.js +1 -1
  470. package/dist/nile-input/nile-input.test.cjs.js.map +1 -1
  471. package/dist/nile-input/nile-input.test.esm.js +2 -2
  472. package/dist/nile-lightdomeditor/index.cjs.js +2 -0
  473. package/dist/nile-lightdomeditor/index.esm.js +1 -0
  474. package/dist/nile-lightdomeditor/nile-lightdomeditor.cjs.js +2 -0
  475. package/dist/nile-lightdomeditor/nile-lightdomeditor.cjs.js.map +1 -0
  476. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.cjs.js +2 -0
  477. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.cjs.js.map +1 -0
  478. package/dist/nile-lightdomeditor/nile-lightdomeditor.css.esm.js +225 -0
  479. package/dist/nile-lightdomeditor/nile-lightdomeditor.esm.js +122 -0
  480. package/dist/nile-link/nile-link.test.cjs.js +1 -1
  481. package/dist/nile-link/nile-link.test.esm.js +1 -1
  482. package/dist/nile-loader/nile-loader.test.cjs.js +1 -1
  483. package/dist/nile-loader/nile-loader.test.esm.js +1 -1
  484. package/dist/nile-menu/nile-menu.css.cjs.js +1 -1
  485. package/dist/nile-menu/nile-menu.css.cjs.js.map +1 -1
  486. package/dist/nile-menu/nile-menu.css.esm.js +3 -3
  487. package/dist/nile-menu-item/index.cjs.js +1 -1
  488. package/dist/nile-menu-item/index.esm.js +1 -1
  489. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  490. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  491. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  492. package/dist/nile-option/index.cjs.js +1 -1
  493. package/dist/nile-option/index.esm.js +1 -1
  494. package/dist/nile-option/nile-option.cjs.js +1 -1
  495. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  496. package/dist/nile-option/nile-option.esm.js +2 -2
  497. package/dist/nile-popover/index.cjs.js +1 -1
  498. package/dist/nile-popover/index.esm.js +1 -1
  499. package/dist/nile-popover/nile-popover.cjs.js +11 -3
  500. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  501. package/dist/nile-popover/nile-popover.esm.js +13 -7
  502. package/dist/nile-popover/nile-popover.test.cjs.js +1 -1
  503. package/dist/nile-popover/nile-popover.test.cjs.js.map +1 -1
  504. package/dist/nile-popover/nile-popover.test.esm.js +3 -3
  505. package/dist/nile-popup/nile-popup.cjs.js +1 -1
  506. package/dist/nile-popup/nile-popup.cjs.js.map +1 -1
  507. package/dist/nile-popup/nile-popup.esm.js +1 -1
  508. package/dist/nile-popup/nile-popup.test.cjs.js +1 -1
  509. package/dist/nile-popup/nile-popup.test.esm.js +1 -1
  510. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +1 -1
  511. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +1 -1
  512. package/dist/nile-radio/nile-radio.test.cjs.js +1 -1
  513. package/dist/nile-radio/nile-radio.test.esm.js +1 -1
  514. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +1 -1
  515. package/dist/nile-radio-group/nile-radio-group.test.esm.js +1 -1
  516. package/dist/nile-rich-text-editor/index.cjs.js +2 -0
  517. package/dist/nile-rich-text-editor/index.cjs.js.map +1 -0
  518. package/dist/nile-rich-text-editor/index.esm.js +1 -0
  519. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +2 -0
  520. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -0
  521. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +2 -0
  522. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -0
  523. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +7 -0
  524. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -0
  525. package/dist/nile-rich-text-editor/nile-rte-color.cjs.js +2 -0
  526. package/dist/nile-rich-text-editor/nile-rte-color.cjs.js.map +1 -0
  527. package/dist/nile-rich-text-editor/nile-rte-color.esm.js +1 -0
  528. package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js +2 -0
  529. package/dist/nile-rich-text-editor/nile-rte-divider.cjs.js.map +1 -0
  530. package/dist/nile-rich-text-editor/nile-rte-divider.esm.js +1 -0
  531. package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js +2 -0
  532. package/dist/nile-rich-text-editor/nile-rte-mentions-item.cjs.js.map +1 -0
  533. package/dist/nile-rich-text-editor/nile-rte-mentions-item.esm.js +1 -0
  534. package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js +3 -0
  535. package/dist/nile-rich-text-editor/nile-rte-mentions.cjs.js.map +1 -0
  536. package/dist/nile-rich-text-editor/nile-rte-mentions.esm.js +1 -0
  537. package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js +2 -0
  538. package/dist/nile-rich-text-editor/nile-rte-preview.cjs.js.map +1 -0
  539. package/dist/nile-rich-text-editor/nile-rte-preview.esm.js +1 -0
  540. package/dist/nile-rich-text-editor/nile-rte-select.cjs.js +2 -0
  541. package/dist/nile-rich-text-editor/nile-rte-select.cjs.js.map +1 -0
  542. package/dist/nile-rich-text-editor/nile-rte-select.esm.js +32 -0
  543. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js +2 -0
  544. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.cjs.js.map +1 -0
  545. package/dist/nile-rich-text-editor/nile-rte-toolbar-item.esm.js +1 -0
  546. package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js +2 -0
  547. package/dist/nile-rich-text-editor/nile-rte-toolbar.cjs.js.map +1 -0
  548. package/dist/nile-rich-text-editor/nile-rte-toolbar.esm.js +1 -0
  549. package/dist/nile-rich-text-editor/utils.cjs.js +2 -0
  550. package/dist/nile-rich-text-editor/utils.cjs.js.map +1 -0
  551. package/dist/nile-rich-text-editor/utils.esm.js +1 -0
  552. package/dist/nile-richcodeeditor/index.cjs.js +2 -0
  553. package/dist/nile-richcodeeditor/index.cjs.js.map +1 -0
  554. package/dist/nile-richcodeeditor/index.esm.js +1 -0
  555. package/dist/nile-richcodeeditor/nile-richcodeeditor.cjs.js +2 -0
  556. package/dist/nile-richcodeeditor/nile-richcodeeditor.cjs.js.map +1 -0
  557. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.cjs.js +2 -0
  558. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.cjs.js.map +1 -0
  559. package/dist/nile-richcodeeditor/nile-richcodeeditor.css.esm.js +5 -0
  560. package/dist/nile-richcodeeditor/nile-richcodeeditor.esm.js +66 -0
  561. package/dist/nile-select/index.cjs.js +1 -1
  562. package/dist/nile-select/index.esm.js +1 -1
  563. package/dist/nile-select/nile-select.cjs.js +1 -1
  564. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  565. package/dist/nile-select/nile-select.esm.js +1 -1
  566. package/dist/nile-select/nile-select.test.cjs.js +1 -1
  567. package/dist/nile-select/nile-select.test.cjs.js.map +1 -1
  568. package/dist/nile-select/nile-select.test.esm.js +1 -1
  569. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +1 -1
  570. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +1 -1
  571. package/dist/nile-tab/index.cjs.js +1 -1
  572. package/dist/nile-tab/index.esm.js +1 -1
  573. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  574. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  575. package/dist/nile-tab/nile-tab.esm.js +2 -2
  576. package/dist/nile-tab-group/index.cjs.js +1 -1
  577. package/dist/nile-tab-group/index.esm.js +1 -1
  578. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  579. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  580. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  581. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +1 -1
  582. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +1 -1
  583. package/dist/nile-tab-group/nile-tab-group.test.esm.js +1 -1
  584. package/dist/nile-tag/index.cjs.js +1 -1
  585. package/dist/nile-tag/index.esm.js +1 -1
  586. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  587. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  588. package/dist/nile-tag/nile-tag.esm.js +1 -1
  589. package/dist/nile-textarea/nile-textarea.test.cjs.js +1 -1
  590. package/dist/nile-textarea/nile-textarea.test.esm.js +1 -1
  591. package/dist/nile-toast/index.cjs.js +1 -1
  592. package/dist/nile-toast/index.esm.js +1 -1
  593. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  594. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  595. package/dist/nile-toast/nile-toast.esm.js +1 -1
  596. package/dist/nile-tree/index.cjs.js +1 -1
  597. package/dist/nile-tree/index.esm.js +1 -1
  598. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  599. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  600. package/dist/nile-tree/nile-tree.esm.js +1 -1
  601. package/dist/nile-tree-item/index.cjs.js +1 -1
  602. package/dist/nile-tree-item/index.esm.js +1 -1
  603. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  604. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  605. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  606. package/dist/src/index.d.ts +4 -2
  607. package/dist/src/index.js +4 -2
  608. package/dist/src/index.js.map +1 -1
  609. package/dist/src/nile-badge/__snapshots__/nile-badge.test.snap.js +17 -0
  610. package/dist/src/nile-calendar/__snapshots__/nile-calendar.test.snap.js +310 -0
  611. package/dist/src/nile-card/__snapshots__/nile-card.test.snap.js +34 -0
  612. package/dist/src/nile-checkbox/__snapshots__/nile-checkbox.test.snap.js +31 -0
  613. package/dist/src/nile-chip/nile-chip.js +1 -9
  614. package/dist/src/nile-chip/nile-chip.js.map +1 -1
  615. package/dist/src/nile-code-editor/nile-code-editor.d.ts +2 -0
  616. package/dist/src/nile-code-editor/nile-code-editor.js +48 -6
  617. package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
  618. package/dist/src/nile-code-editor/theme.d.ts +110 -0
  619. package/dist/src/nile-code-editor/theme.js +110 -0
  620. package/dist/src/nile-code-editor/theme.js.map +1 -1
  621. package/dist/src/nile-empty-state/nile-empty-state.js +11 -11
  622. package/dist/src/nile-empty-state/nile-empty-state.js.map +1 -1
  623. package/dist/src/nile-error-notification/nile-error-notification.js +4 -2
  624. package/dist/src/nile-error-notification/nile-error-notification.js.map +1 -1
  625. package/dist/src/nile-file-preview/nile-file-preview.css.js +168 -227
  626. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
  627. package/dist/src/nile-file-preview/nile-file-preview.d.ts +1 -2
  628. package/dist/src/nile-file-preview/nile-file-preview.js +13 -14
  629. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
  630. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +2 -3
  631. package/dist/src/nile-file-preview/nile-file-preview.template.js +47 -51
  632. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
  633. package/dist/src/nile-file-preview/types/nile-file-preview.enums.d.ts +3 -3
  634. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js +2 -2
  635. package/dist/src/nile-file-preview/types/nile-file-preview.enums.js.map +1 -1
  636. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +0 -4
  637. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +0 -25
  638. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
  639. package/dist/src/nile-file-upload/nile-file-upload.css.js +87 -140
  640. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
  641. package/dist/src/nile-file-upload/nile-file-upload.d.ts +1 -4
  642. package/dist/src/nile-file-upload/nile-file-upload.js +20 -30
  643. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
  644. package/dist/src/nile-file-upload/nile-file-upload.template.d.ts +5 -5
  645. package/dist/src/nile-file-upload/nile-file-upload.template.js +103 -57
  646. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
  647. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +3 -8
  648. package/dist/src/nile-file-upload/types/file-upload.enums.js +1 -6
  649. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
  650. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +4 -2
  651. package/dist/src/nile-file-upload/utils/drag-drop.util.js +21 -18
  652. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
  653. package/dist/src/nile-file-upload/utils/file-validation.util.d.ts +1 -3
  654. package/dist/src/nile-file-upload/utils/file-validation.util.js +32 -83
  655. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
  656. package/dist/src/nile-hero/__snapshots__/nile-hero.test.snap.js +47 -0
  657. package/dist/src/nile-icon/__snapshots__/nile-icon.test.snap.js +16 -0
  658. package/dist/src/nile-icon/icons/svg/accessreview.d.ts +1 -1
  659. package/dist/src/nile-icon/icons/svg/accessreview.js +1 -1
  660. package/dist/src/nile-icon/icons/svg/accessreview.js.map +1 -1
  661. package/dist/src/nile-icon/icons/svg/agent.d.ts +1 -1
  662. package/dist/src/nile-icon/icons/svg/agent.js +1 -1
  663. package/dist/src/nile-icon/icons/svg/agent.js.map +1 -1
  664. package/dist/src/nile-icon/icons/svg/api.d.ts +1 -1
  665. package/dist/src/nile-icon/icons/svg/api.js +1 -1
  666. package/dist/src/nile-icon/icons/svg/api.js.map +1 -1
  667. package/dist/src/nile-icon/icons/svg/apply-filter.d.ts +1 -1
  668. package/dist/src/nile-icon/icons/svg/apply-filter.js +1 -1
  669. package/dist/src/nile-icon/icons/svg/apply-filter.js.map +1 -1
  670. package/dist/src/nile-icon/icons/svg/arrowdropdown.d.ts +1 -1
  671. package/dist/src/nile-icon/icons/svg/arrowdropdown.js +1 -1
  672. package/dist/src/nile-icon/icons/svg/arrowdropdown.js.map +1 -1
  673. package/dist/src/nile-icon/icons/svg/arrowdropup.d.ts +1 -1
  674. package/dist/src/nile-icon/icons/svg/arrowdropup.js +1 -1
  675. package/dist/src/nile-icon/icons/svg/arrowdropup.js.map +1 -1
  676. package/dist/src/nile-icon/icons/svg/bold.d.ts +5 -0
  677. package/dist/src/nile-icon/icons/svg/bold.js +5 -0
  678. package/dist/src/nile-icon/icons/svg/bold.js.map +1 -0
  679. package/dist/src/nile-icon/icons/svg/center-align.d.ts +5 -0
  680. package/dist/src/nile-icon/icons/svg/center-align.js +5 -0
  681. package/dist/src/nile-icon/icons/svg/center-align.js.map +1 -0
  682. package/dist/src/nile-icon/icons/svg/database.d.ts +1 -1
  683. package/dist/src/nile-icon/icons/svg/database.js +1 -1
  684. package/dist/src/nile-icon/icons/svg/database.js.map +1 -1
  685. package/dist/src/nile-icon/icons/svg/done.d.ts +1 -1
  686. package/dist/src/nile-icon/icons/svg/done.js +1 -1
  687. package/dist/src/nile-icon/icons/svg/done.js.map +1 -1
  688. package/dist/src/nile-icon/icons/svg/dontmap.d.ts +1 -1
  689. package/dist/src/nile-icon/icons/svg/dontmap.js +1 -1
  690. package/dist/src/nile-icon/icons/svg/dontmap.js.map +1 -1
  691. package/dist/src/nile-icon/icons/svg/doublearrowleft.d.ts +1 -1
  692. package/dist/src/nile-icon/icons/svg/doublearrowleft.js +1 -1
  693. package/dist/src/nile-icon/icons/svg/doublearrowleft.js.map +1 -1
  694. package/dist/src/nile-icon/icons/svg/doublearrowright.d.ts +1 -1
  695. package/dist/src/nile-icon/icons/svg/doublearrowright.js +1 -1
  696. package/dist/src/nile-icon/icons/svg/doublearrowright.js.map +1 -1
  697. package/dist/src/nile-icon/icons/svg/drag.d.ts +1 -1
  698. package/dist/src/nile-icon/icons/svg/drag.js +1 -1
  699. package/dist/src/nile-icon/icons/svg/drag.js.map +1 -1
  700. package/dist/src/nile-icon/icons/svg/expand-06.d.ts +1 -1
  701. package/dist/src/nile-icon/icons/svg/expand-06.js +1 -1
  702. package/dist/src/nile-icon/icons/svg/expand-06.js.map +1 -1
  703. package/dist/src/nile-icon/icons/svg/expand.d.ts +1 -1
  704. package/dist/src/nile-icon/icons/svg/expand.js +1 -1
  705. package/dist/src/nile-icon/icons/svg/expand.js.map +1 -1
  706. package/dist/src/nile-icon/icons/svg/index.d.ts +15 -0
  707. package/dist/src/nile-icon/icons/svg/index.js +15 -0
  708. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  709. package/dist/src/nile-icon/icons/svg/info.d.ts +1 -1
  710. package/dist/src/nile-icon/icons/svg/info.js +1 -1
  711. package/dist/src/nile-icon/icons/svg/info.js.map +1 -1
  712. package/dist/src/nile-icon/icons/svg/integer.d.ts +1 -1
  713. package/dist/src/nile-icon/icons/svg/integer.js +1 -1
  714. package/dist/src/nile-icon/icons/svg/integer.js.map +1 -1
  715. package/dist/src/nile-icon/icons/svg/itallic.d.ts +5 -0
  716. package/dist/src/nile-icon/icons/svg/itallic.js +5 -0
  717. package/dist/src/nile-icon/icons/svg/itallic.js.map +1 -0
  718. package/dist/src/nile-icon/icons/svg/justify-align.d.ts +5 -0
  719. package/dist/src/nile-icon/icons/svg/justify-align.js +5 -0
  720. package/dist/src/nile-icon/icons/svg/justify-align.js.map +1 -0
  721. package/dist/src/nile-icon/icons/svg/left-align.d.ts +5 -0
  722. package/dist/src/nile-icon/icons/svg/left-align.js +5 -0
  723. package/dist/src/nile-icon/icons/svg/left-align.js.map +1 -0
  724. package/dist/src/nile-icon/icons/svg/ol.d.ts +5 -0
  725. package/dist/src/nile-icon/icons/svg/ol.js +5 -0
  726. package/dist/src/nile-icon/icons/svg/ol.js.map +1 -0
  727. package/dist/src/nile-icon/icons/svg/pluscircle.d.ts +1 -1
  728. package/dist/src/nile-icon/icons/svg/pluscircle.js +1 -1
  729. package/dist/src/nile-icon/icons/svg/pluscircle.js.map +1 -1
  730. package/dist/src/nile-icon/icons/svg/question.d.ts +1 -1
  731. package/dist/src/nile-icon/icons/svg/question.js +1 -1
  732. package/dist/src/nile-icon/icons/svg/question.js.map +1 -1
  733. package/dist/src/nile-icon/icons/svg/resource.d.ts +1 -1
  734. package/dist/src/nile-icon/icons/svg/resource.js +1 -1
  735. package/dist/src/nile-icon/icons/svg/resource.js.map +1 -1
  736. package/dist/src/nile-icon/icons/svg/right-align.d.ts +5 -0
  737. package/dist/src/nile-icon/icons/svg/right-align.js +5 -0
  738. package/dist/src/nile-icon/icons/svg/right-align.js.map +1 -0
  739. package/dist/src/nile-icon/icons/svg/sendescalation.d.ts +1 -1
  740. package/dist/src/nile-icon/icons/svg/sendescalation.js +1 -1
  741. package/dist/src/nile-icon/icons/svg/sendescalation.js.map +1 -1
  742. package/dist/src/nile-icon/icons/svg/sendreminder.d.ts +1 -1
  743. package/dist/src/nile-icon/icons/svg/sendreminder.js +1 -1
  744. package/dist/src/nile-icon/icons/svg/sendreminder.js.map +1 -1
  745. package/dist/src/nile-icon/icons/svg/timezone.d.ts +1 -1
  746. package/dist/src/nile-icon/icons/svg/timezone.js +1 -1
  747. package/dist/src/nile-icon/icons/svg/timezone.js.map +1 -1
  748. package/dist/src/nile-icon/icons/svg/ul.d.ts +5 -0
  749. package/dist/src/nile-icon/icons/svg/ul.js +5 -0
  750. package/dist/src/nile-icon/icons/svg/ul.js.map +1 -0
  751. package/dist/src/nile-icon/icons/svg/underline.d.ts +5 -0
  752. package/dist/src/nile-icon/icons/svg/underline.js +5 -0
  753. package/dist/src/nile-icon/icons/svg/underline.js.map +1 -0
  754. package/dist/src/nile-icon/icons/svg/unmute.d.ts +1 -1
  755. package/dist/src/nile-icon/icons/svg/unmute.js +1 -1
  756. package/dist/src/nile-icon/icons/svg/unmute.js.map +1 -1
  757. package/dist/src/nile-icon/icons/svg/upgrade.d.ts +1 -1
  758. package/dist/src/nile-icon/icons/svg/upgrade.js +1 -1
  759. package/dist/src/nile-icon/icons/svg/upgrade.js.map +1 -1
  760. package/dist/src/nile-input/__snapshots__/nile-input.test.snap.js +75 -0
  761. package/dist/src/nile-lightdomeditor/index.d.ts +1 -0
  762. package/dist/src/nile-lightdomeditor/index.js +2 -0
  763. package/dist/src/nile-lightdomeditor/index.js.map +1 -0
  764. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.d.ts +6 -0
  765. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.js +237 -0
  766. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.css.js.map +1 -0
  767. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.d.ts +74 -0
  768. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.js +591 -0
  769. package/dist/src/nile-lightdomeditor/nile-lightdomeditor.js.map +1 -0
  770. package/dist/src/nile-lightdomeditor/utils/nile-mention.d.ts +13 -0
  771. package/dist/src/nile-lightdomeditor/utils/nile-mention.js +47 -0
  772. package/dist/src/nile-lightdomeditor/utils/nile-mention.js.map +1 -0
  773. package/dist/src/nile-markdowneditor/index.d.ts +1 -0
  774. package/dist/src/nile-markdowneditor/index.js +2 -0
  775. package/dist/src/nile-markdowneditor/index.js.map +1 -0
  776. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.d.ts +12 -0
  777. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.js +17 -0
  778. package/dist/src/nile-markdowneditor/nile-markdowneditor.css.js.map +1 -0
  779. package/dist/src/nile-markdowneditor/nile-markdowneditor.d.ts +32 -0
  780. package/dist/src/nile-markdowneditor/nile-markdowneditor.js +43 -0
  781. package/dist/src/nile-markdowneditor/nile-markdowneditor.js.map +1 -0
  782. package/dist/src/nile-menu/nile-menu.css.js +1 -1
  783. package/dist/src/nile-menu/nile-menu.css.js.map +1 -1
  784. package/dist/src/nile-option/nile-option.d.ts +3 -1
  785. package/dist/src/nile-option/nile-option.js +9 -0
  786. package/dist/src/nile-option/nile-option.js.map +1 -1
  787. package/dist/src/nile-popover/__snapshots__/nile-popover.test.snap.js +22 -0
  788. package/dist/src/nile-popup/nile-popup.js +20 -1
  789. package/dist/src/nile-popup/nile-popup.js.map +1 -1
  790. package/dist/src/nile-prosemirror-poc/index.d.ts +1 -0
  791. package/dist/src/nile-prosemirror-poc/index.js +2 -0
  792. package/dist/src/nile-prosemirror-poc/index.js.map +1 -0
  793. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.d.ts +12 -0
  794. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.js +17 -0
  795. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.css.js.map +1 -0
  796. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.d.ts +24 -0
  797. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.js +190 -0
  798. package/dist/src/nile-prosemirror-poc/nile-prosemirror-poc.js.map +1 -0
  799. package/dist/src/nile-rich-text-editor/index.d.ts +1 -0
  800. package/dist/src/nile-rich-text-editor/index.js +2 -0
  801. package/dist/src/nile-rich-text-editor/index.js.map +1 -0
  802. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.d.ts +12 -0
  803. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +19 -0
  804. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -0
  805. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +54 -0
  806. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +591 -0
  807. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -0
  808. package/dist/src/nile-rich-text-editor/nile-rte-color.d.ts +14 -0
  809. package/dist/src/nile-rich-text-editor/nile-rte-color.js +28 -0
  810. package/dist/src/nile-rich-text-editor/nile-rte-color.js.map +1 -0
  811. package/dist/src/nile-rich-text-editor/nile-rte-divider.d.ts +10 -0
  812. package/dist/src/nile-rich-text-editor/nile-rte-divider.js +12 -0
  813. package/dist/src/nile-rich-text-editor/nile-rte-divider.js.map +1 -0
  814. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.d.ts +17 -0
  815. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js +42 -0
  816. package/dist/src/nile-rich-text-editor/nile-rte-mentions-item.js.map +1 -0
  817. package/dist/src/nile-rich-text-editor/nile-rte-mentions.d.ts +54 -0
  818. package/dist/src/nile-rich-text-editor/nile-rte-mentions.js +400 -0
  819. package/dist/src/nile-rich-text-editor/nile-rte-mentions.js.map +1 -0
  820. package/dist/src/nile-rich-text-editor/nile-rte-preview.d.ts +10 -0
  821. package/dist/src/nile-rich-text-editor/nile-rte-preview.js +12 -0
  822. package/dist/src/nile-rich-text-editor/nile-rte-preview.js.map +1 -0
  823. package/dist/src/nile-rich-text-editor/nile-rte-select.d.ts +23 -0
  824. package/dist/src/nile-rich-text-editor/nile-rte-select.js +144 -0
  825. package/dist/src/nile-rich-text-editor/nile-rte-select.js.map +1 -0
  826. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.d.ts +12 -0
  827. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js +23 -0
  828. package/dist/src/nile-rich-text-editor/nile-rte-toolbar-item.js.map +1 -0
  829. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.d.ts +10 -0
  830. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js +12 -0
  831. package/dist/src/nile-rich-text-editor/nile-rte-toolbar.js.map +1 -0
  832. package/dist/src/nile-rich-text-editor/nille-rte-mention.d.ts +21 -0
  833. package/dist/src/nile-rich-text-editor/nille-rte-mention.js +47 -0
  834. package/dist/src/nile-rich-text-editor/nille-rte-mention.js.map +1 -0
  835. package/dist/src/nile-rich-text-editor/nille-rte-mentions.d.ts +21 -0
  836. package/dist/src/nile-rich-text-editor/nille-rte-mentions.js +47 -0
  837. package/dist/src/nile-rich-text-editor/nille-rte-mentions.js.map +1 -0
  838. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.d.ts +0 -0
  839. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.js +2 -0
  840. package/dist/src/nile-rich-text-editor/sub-components/nile-rich-text-editor-toolbar-item.js.map +1 -0
  841. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.d.ts +8 -0
  842. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.js +39 -0
  843. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-content.js.map +1 -0
  844. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.d.ts +0 -0
  845. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.js +2 -0
  846. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-content/nile-rich-text-editor-preview.js.map +1 -0
  847. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.d.ts +12 -0
  848. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.js +24 -0
  849. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions/nile-rich-text-editor-mentions.js.map +1 -0
  850. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.d.ts +25 -0
  851. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.js +89 -0
  852. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-mentions-item/nile-rich-text-editor-mentions-item.js.map +1 -0
  853. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.d.ts +12 -0
  854. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.js +47 -0
  855. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.css.js.map +1 -0
  856. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.d.ts +7 -0
  857. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.js +28 -0
  858. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-preview/nile-rich-text-editor-preview.js.map +1 -0
  859. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.d.ts +6 -0
  860. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.js +237 -0
  861. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.css.js.map +1 -0
  862. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.d.ts +5 -0
  863. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.js +26 -0
  864. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar/nile-rich-text-editor-toolbar.js.map +1 -0
  865. 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
  866. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.css.js +237 -0
  867. 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
  868. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.d.ts +8 -0
  869. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.js +36 -0
  870. package/dist/src/nile-rich-text-editor/subcomponents/nile-rich-text-editor-toolbar-item/nile-rich-text-editor-toolbar-item.js.map +1 -0
  871. package/dist/src/nile-rich-text-editor/utils.d.ts +12 -0
  872. package/dist/src/nile-rich-text-editor/utils.js +234 -0
  873. package/dist/src/nile-rich-text-editor/utils.js.map +1 -0
  874. package/dist/src/nile-richcodeeditor/index.d.ts +1 -0
  875. package/dist/src/nile-richcodeeditor/index.js +2 -0
  876. package/dist/src/nile-richcodeeditor/index.js.map +1 -0
  877. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.d.ts +12 -0
  878. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.js +17 -0
  879. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.css.js.map +1 -0
  880. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.d.ts +31 -0
  881. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.js +203 -0
  882. package/dist/src/nile-richcodeeditor/nile-richcodeeditor.js.map +1 -0
  883. package/dist/src/nile-richeditor/index.d.ts +1 -0
  884. package/dist/src/nile-richeditor/index.js +2 -0
  885. package/dist/src/nile-richeditor/index.js.map +1 -0
  886. package/dist/src/nile-richeditor/nile-richeditor.css.d.ts +12 -0
  887. package/dist/src/nile-richeditor/nile-richeditor.css.js +17 -0
  888. package/dist/src/nile-richeditor/nile-richeditor.css.js.map +1 -0
  889. package/dist/src/nile-richeditor/nile-richeditor.d.ts +19 -0
  890. package/dist/src/nile-richeditor/nile-richeditor.js +234 -0
  891. package/dist/src/nile-richeditor/nile-richeditor.js.map +1 -0
  892. package/dist/src/nile-richtexteditor/index.d.ts +1 -0
  893. package/dist/src/nile-richtexteditor/index.js +2 -0
  894. package/dist/src/nile-richtexteditor/index.js.map +1 -0
  895. package/dist/src/{nile-slider/nile-slider.css.d.ts → nile-richtexteditor/nile-richtexteditor.css.d.ts} +2 -2
  896. package/dist/src/nile-richtexteditor/nile-richtexteditor.css.js +237 -0
  897. package/dist/src/nile-richtexteditor/nile-richtexteditor.css.js.map +1 -0
  898. package/dist/src/nile-richtexteditor/nile-richtexteditor.d.ts +32 -0
  899. package/dist/src/nile-richtexteditor/nile-richtexteditor.js +46 -0
  900. package/dist/src/nile-richtexteditor/nile-richtexteditor.js.map +1 -0
  901. package/dist/src/nile-richtexteditor/utils/nile-mention.d.ts +13 -0
  902. package/dist/src/nile-richtexteditor/utils/nile-mention.js +47 -0
  903. package/dist/src/nile-richtexteditor/utils/nile-mention.js.map +1 -0
  904. package/dist/src/nile-select/nile-select.d.ts +3 -1
  905. package/dist/src/nile-select/nile-select.js +11 -0
  906. package/dist/src/nile-select/nile-select.js.map +1 -1
  907. package/dist/src/nile-tab/nile-tab.js +1 -1
  908. package/dist/src/nile-tab/nile-tab.js.map +1 -1
  909. package/dist/tsconfig.tsbuildinfo +1 -1
  910. package/package.json +7 -3
  911. package/rollup.config.js +27 -39
  912. package/src/index.ts +5 -3
  913. package/src/nile-chip/nile-chip.ts +1 -9
  914. package/src/nile-code-editor/nile-code-editor.ts +55 -6
  915. package/src/nile-code-editor/theme.ts +111 -0
  916. package/src/nile-empty-state/nile-empty-state.ts +11 -11
  917. package/src/nile-error-notification/nile-error-notification.ts +4 -3
  918. package/src/nile-icon/icons/svg/accessreview.ts +1 -1
  919. package/src/nile-icon/icons/svg/agent.ts +1 -1
  920. package/src/nile-icon/icons/svg/api.ts +1 -1
  921. package/src/nile-icon/icons/svg/apply-filter.ts +1 -1
  922. package/src/nile-icon/icons/svg/arrowdropdown.ts +1 -1
  923. package/src/nile-icon/icons/svg/arrowdropup.ts +1 -1
  924. package/src/nile-icon/icons/svg/attribute.ts +5 -0
  925. package/src/nile-icon/icons/svg/bold.ts +5 -0
  926. package/src/nile-icon/icons/svg/center-align.ts +5 -0
  927. package/src/nile-icon/icons/svg/class.ts +5 -0
  928. package/src/nile-icon/icons/svg/column-add.ts +5 -0
  929. package/src/nile-icon/icons/svg/database.ts +1 -1
  930. package/src/nile-icon/icons/svg/done.ts +1 -1
  931. package/src/nile-icon/icons/svg/dontmap.ts +1 -1
  932. package/src/nile-icon/icons/svg/doublearrowleft.ts +1 -1
  933. package/src/nile-icon/icons/svg/doublearrowright.ts +1 -1
  934. package/src/nile-icon/icons/svg/drag.ts +1 -1
  935. package/src/nile-icon/icons/svg/expand-06.ts +1 -1
  936. package/src/nile-icon/icons/svg/expand.ts +1 -1
  937. package/src/nile-icon/icons/svg/function.ts +5 -0
  938. package/src/nile-icon/icons/svg/index.ts +15 -0
  939. package/src/nile-icon/icons/svg/info.ts +1 -1
  940. package/src/nile-icon/icons/svg/integer.ts +1 -1
  941. package/src/nile-icon/icons/svg/itallic.ts +5 -0
  942. package/src/nile-icon/icons/svg/justify-align.ts +5 -0
  943. package/src/nile-icon/icons/svg/keyword.ts +5 -0
  944. package/src/nile-icon/icons/svg/left-align.ts +5 -0
  945. package/src/nile-icon/icons/svg/ol.ts +5 -0
  946. package/src/nile-icon/icons/svg/pluscircle.ts +1 -1
  947. package/src/nile-icon/icons/svg/question.ts +1 -1
  948. package/src/nile-icon/icons/svg/resource.ts +1 -1
  949. package/src/nile-icon/icons/svg/right-align.ts +5 -0
  950. package/src/nile-icon/icons/svg/savings.ts +5 -0
  951. package/src/nile-icon/icons/svg/sendescalation.ts +1 -1
  952. package/src/nile-icon/icons/svg/sendreminder.ts +1 -1
  953. package/src/nile-icon/icons/svg/timezone.ts +1 -1
  954. package/src/nile-icon/icons/svg/ul.ts +5 -0
  955. package/src/nile-icon/icons/svg/underline.ts +5 -0
  956. package/src/nile-icon/icons/svg/unmute.ts +1 -1
  957. package/src/nile-icon/icons/svg/upgrade.ts +1 -1
  958. package/src/nile-lightdomeditor/index.ts +1 -0
  959. package/src/nile-lightdomeditor/nile-lightdomeditor.css.ts +238 -0
  960. package/src/nile-lightdomeditor/nile-lightdomeditor.ts +523 -0
  961. package/src/nile-menu/nile-menu.css.ts +1 -1
  962. package/src/nile-option/nile-option.ts +9 -1
  963. package/src/nile-pagination/index.ts +1 -0
  964. package/src/nile-pagination/nile-pagination-utils.ts +63 -0
  965. package/src/nile-pagination/nile-pagination.css.ts +252 -0
  966. package/src/nile-pagination/nile-pagination.ts +361 -0
  967. package/src/nile-popup/nile-popup.ts +20 -3
  968. package/src/nile-rich-text-editor/index.ts +1 -0
  969. package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +21 -0
  970. package/src/nile-rich-text-editor/nile-rich-text-editor.ts +606 -0
  971. package/src/nile-rich-text-editor/nile-rte-color.ts +14 -0
  972. package/src/nile-rich-text-editor/nile-rte-divider.ts +9 -0
  973. package/src/nile-rich-text-editor/nile-rte-mentions-item.ts +37 -0
  974. package/src/nile-rich-text-editor/nile-rte-mentions.ts +426 -0
  975. package/src/nile-rich-text-editor/nile-rte-preview.ts +9 -0
  976. package/src/nile-rich-text-editor/nile-rte-select.ts +147 -0
  977. package/src/nile-rich-text-editor/nile-rte-toolbar-item.ts +13 -0
  978. package/src/nile-rich-text-editor/nile-rte-toolbar.ts +9 -0
  979. package/src/nile-rich-text-editor/utils.ts +179 -0
  980. package/src/nile-richcodeeditor/index.ts +1 -0
  981. package/src/nile-richcodeeditor/nile-richcodeeditor.css.ts +19 -0
  982. package/src/nile-richcodeeditor/nile-richcodeeditor.ts +192 -0
  983. package/src/nile-select/nile-select.ts +14 -1
  984. package/src/nile-tab/nile-tab.ts +1 -1
  985. package/vscode-html-custom-data.json +191 -145
  986. package/demo/filenames.txt +0 -1
  987. package/demo/filenames.txt +0 -1
  988. package/dist/aquera-nile-elements-0.1.57-beta-2.0.tgz +0 -0
  989. package/dist/fixture-cb376a7f.cjs.js.map +0 -1
  990. package/dist/nile-slider/index.cjs.js +0 -2
  991. package/dist/nile-slider/index.esm.js +0 -1
  992. package/dist/nile-slider/nile-slider.cjs.js +0 -2
  993. package/dist/nile-slider/nile-slider.cjs.js.map +0 -1
  994. package/dist/nile-slider/nile-slider.css.cjs.js +0 -2
  995. package/dist/nile-slider/nile-slider.css.cjs.js.map +0 -1
  996. package/dist/nile-slider/nile-slider.css.esm.js +0 -106
  997. package/dist/nile-slider/nile-slider.esm.js +0 -27
  998. package/dist/nile-slider/nile-slider.template.cjs.js +0 -2
  999. package/dist/nile-slider/nile-slider.template.cjs.js.map +0 -1
  1000. package/dist/nile-slider/nile-slider.template.esm.js +0 -59
  1001. package/dist/nile-slider/types/nile-slider.enums.cjs.js +0 -2
  1002. package/dist/nile-slider/types/nile-slider.enums.cjs.js.map +0 -1
  1003. package/dist/nile-slider/types/nile-slider.enums.esm.js +0 -1
  1004. package/dist/nile-slider/types/nile-slider.types.cjs.js +0 -2
  1005. package/dist/nile-slider/types/nile-slider.types.cjs.js.map +0 -1
  1006. package/dist/nile-slider/types/nile-slider.types.esm.js +0 -1
  1007. package/dist/nile-slider/utils/nile-slider.utils.cjs.js +0 -2
  1008. package/dist/nile-slider/utils/nile-slider.utils.cjs.js.map +0 -1
  1009. package/dist/nile-slider/utils/nile-slider.utils.esm.js +0 -1
  1010. package/dist/src/internal/resizable-table-helper.d.ts +0 -59
  1011. package/dist/src/internal/resizable-table-helper.js +0 -111
  1012. package/dist/src/internal/resizable-table-helper.js.map +0 -1
  1013. package/dist/src/internal/resizable-table-styles.d.ts +0 -16
  1014. package/dist/src/internal/resizable-table-styles.js +0 -149
  1015. package/dist/src/internal/resizable-table-styles.js.map +0 -1
  1016. package/dist/src/nile-icon/icons/svg/ng-building-01.d.ts +0 -5
  1017. package/dist/src/nile-icon/icons/svg/ng-building-01.js +0 -5
  1018. package/dist/src/nile-icon/icons/svg/ng-building-01.js.map +0 -1
  1019. package/dist/src/nile-icon/icons/svg/ng-building-05.d.ts +0 -5
  1020. package/dist/src/nile-icon/icons/svg/ng-building-05.js +0 -5
  1021. package/dist/src/nile-icon/icons/svg/ng-building-05.js.map +0 -1
  1022. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.d.ts +0 -5
  1023. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.js +0 -5
  1024. package/dist/src/nile-icon/icons/svg/ng-dataflow-04.js.map +0 -1
  1025. package/dist/src/nile-icon/icons/svg/ng-eye-off.d.ts +0 -5
  1026. package/dist/src/nile-icon/icons/svg/ng-eye-off.js +0 -5
  1027. package/dist/src/nile-icon/icons/svg/ng-eye-off.js.map +0 -1
  1028. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.d.ts +0 -5
  1029. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.js +0 -5
  1030. package/dist/src/nile-icon/icons/svg/ng-marker-pin-01.js.map +0 -1
  1031. package/dist/src/nile-select/virtual-scroll-helper.d.ts +0 -9
  1032. package/dist/src/nile-select/virtual-scroll-helper.js +0 -51
  1033. package/dist/src/nile-select/virtual-scroll-helper.js.map +0 -1
  1034. package/dist/src/nile-slider/index.d.ts +0 -1
  1035. package/dist/src/nile-slider/index.js +0 -2
  1036. package/dist/src/nile-slider/index.js.map +0 -1
  1037. package/dist/src/nile-slider/nile-slider.css.js +0 -118
  1038. package/dist/src/nile-slider/nile-slider.css.js.map +0 -1
  1039. package/dist/src/nile-slider/nile-slider.d.ts +0 -48
  1040. package/dist/src/nile-slider/nile-slider.js +0 -217
  1041. package/dist/src/nile-slider/nile-slider.js.map +0 -1
  1042. package/dist/src/nile-slider/nile-slider.template.d.ts +0 -5
  1043. package/dist/src/nile-slider/nile-slider.template.js +0 -73
  1044. package/dist/src/nile-slider/nile-slider.template.js.map +0 -1
  1045. package/dist/src/nile-slider/types/nile-slider.enums.d.ts +0 -10
  1046. package/dist/src/nile-slider/types/nile-slider.enums.js +0 -2
  1047. package/dist/src/nile-slider/types/nile-slider.enums.js.map +0 -1
  1048. package/dist/src/nile-slider/types/nile-slider.types.d.ts +0 -1
  1049. package/dist/src/nile-slider/types/nile-slider.types.js +0 -2
  1050. package/dist/src/nile-slider/types/nile-slider.types.js.map +0 -1
  1051. package/dist/src/nile-slider/utils/nile-slider.utils.d.ts +0 -11
  1052. package/dist/src/nile-slider/utils/nile-slider.utils.js +0 -99
  1053. package/dist/src/nile-slider/utils/nile-slider.utils.js.map +0 -1
  1054. package/dist/src/nile-virtual-select/index.d.ts +0 -1
  1055. package/dist/src/nile-virtual-select/index.js +0 -2
  1056. package/dist/src/nile-virtual-select/index.js.map +0 -1
  1057. package/dist/src/nile-virtual-select/nile-virtual-select.css.d.ts +0 -12
  1058. package/dist/src/nile-virtual-select/nile-virtual-select.css.js +0 -489
  1059. package/dist/src/nile-virtual-select/nile-virtual-select.css.js.map +0 -1
  1060. package/dist/src/nile-virtual-select/nile-virtual-select.d.ts +0 -266
  1061. package/dist/src/nile-virtual-select/nile-virtual-select.js +0 -1226
  1062. package/dist/src/nile-virtual-select/nile-virtual-select.js.map +0 -1
  1063. package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +0 -7
  1064. package/dist/src/nile-virtual-select/nile-virtual-select.test.js +0 -631
  1065. package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +0 -1
  1066. package/dist/src/nile-virtual-select/renderer.d.ts +0 -16
  1067. package/dist/src/nile-virtual-select/renderer.js +0 -71
  1068. package/dist/src/nile-virtual-select/renderer.js.map +0 -1
  1069. package/dist/src/nile-virtual-select/search-manager.d.ts +0 -12
  1070. package/dist/src/nile-virtual-select/search-manager.js +0 -40
  1071. package/dist/src/nile-virtual-select/search-manager.js.map +0 -1
  1072. package/dist/src/nile-virtual-select/selection-manager.d.ts +0 -12
  1073. package/dist/src/nile-virtual-select/selection-manager.js +0 -64
  1074. package/dist/src/nile-virtual-select/selection-manager.js.map +0 -1
  1075. package/dist/src/nile-virtual-select/types.d.ts +0 -50
  1076. package/dist/src/nile-virtual-select/types.js +0 -8
  1077. package/dist/src/nile-virtual-select/types.js.map +0 -1
  1078. package/src/nile-file-preview/index.ts +0 -1
  1079. package/src/nile-file-preview/nile-file-preview.css.ts +0 -629
  1080. package/src/nile-file-preview/nile-file-preview.template.ts +0 -259
  1081. package/src/nile-file-preview/nile-file-preview.test.ts +0 -38
  1082. package/src/nile-file-preview/nile-file-preview.ts +0 -176
  1083. package/src/nile-file-preview/types/index.ts +0 -2
  1084. package/src/nile-file-preview/types/nile-file-preview.enums.ts +0 -31
  1085. package/src/nile-file-preview/types/nile-file-preview.interface.ts +0 -4
  1086. package/src/nile-file-preview/utils/index.ts +0 -1
  1087. package/src/nile-file-preview/utils/nile-file-preview.util.ts +0 -72
  1088. package/src/nile-file-upload/index.ts +0 -1
  1089. package/src/nile-file-upload/nile-file-upload.css.ts +0 -624
  1090. package/src/nile-file-upload/nile-file-upload.template.ts +0 -192
  1091. package/src/nile-file-upload/nile-file-upload.test.ts +0 -38
  1092. package/src/nile-file-upload/nile-file-upload.ts +0 -157
  1093. package/src/nile-file-upload/types/file-upload.enums.ts +0 -44
  1094. package/src/nile-file-upload/types/file-upload.type.ts +0 -5
  1095. package/src/nile-file-upload/types/index.ts +0 -2
  1096. package/src/nile-file-upload/utils/drag-drop.util.ts +0 -106
  1097. package/src/nile-file-upload/utils/file-validation.util.ts +0 -218
  1098. /package/dist/{nile-slider → nile-lightdomeditor}/index.cjs.js.map +0 -0
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-cb376a7f.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-dropdown.cjs.js","tslib","lit/decorators.js","./nile-dropdown.css.cjs.js","../internal/animate.cjs.js","lit/directives/class-map.js","../utilities/animation-registry.cjs.js","../internal/tabbable.cjs.js","../internal/event.cjs.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js","../nile-popup/nile-popup.cjs.js","../nile-popup/nile-popup.css.cjs.js"],function(_export,_context){"use strict";var n,e,o,t,i,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture002CjsJs){n=_fixture002CjsJs.f;e=_fixture002CjsJs.a;o=_fixture002CjsJs.e;t=_fixture002CjsJs.o;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileDropdownCjsJs){s=_nileDropdownCjsJs.N;},function(_tslib){},function(_litDecoratorsJs){},function(_nileDropdownCssCjsJs){},function(_internalAnimateCjsJs){},function(_litDirectivesClassMapJs){},function(_utilitiesAnimationRegistryCjsJs){},function(_internalTabbableCjsJs){},function(_internalEventCjsJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){},function(_nilePopupNilePopupCjsJs){},function(_nilePopupNilePopupCssCjsJs){}],execute:function execute(){describe("NileDropdown",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return n(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context2.sent;e(o).to.be.instanceOf(s),e(o.shadowRoot).not.to.be["null"];case 4:case"end":return _context2.stop();}},_callee);}))),it("should be closed by default",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return n(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context3.sent;e(o.open).to.be["false"];t=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".dropdown__panel");e(t===null||t===void 0?void 0:t.getAttribute("aria-hidden")).to.equal("true");case 6:case"end":return _context3.stop();}},_callee2);}))),it('should open the dropdown when "open" property is set to true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _t$shadowRoot;var t,s;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return n(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:t=_context4.sent;t.open=!0;_context4.next=6;return o(t);case 6:s=(_t$shadowRoot=t.shadowRoot)===null||_t$shadowRoot===void 0?void 0:_t$shadowRoot.querySelector(".dropdown__panel");e(t.open).to.be["true"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("false");case 8:case"end":return _context4.stop();}},_callee3);}))),it('should close the dropdown when "open" property is set to false',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _t$shadowRoot2;var t,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return n(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-dropdown open></nile-dropdown>"]))));case 2:t=_context5.sent;t.open=!1;_context5.next=6;return o(t);case 6:s=(_t$shadowRoot2=t.shadowRoot)===null||_t$shadowRoot2===void 0?void 0:_t$shadowRoot2.querySelector(".dropdown__panel");e(t.open).to.be["false"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("true");case 8:case"end":return _context5.stop();}},_callee4);}))),it('should emit "nile-show" and "nile-after-show" when opening the dropdown',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var o,s,a;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return n(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context6.sent;s=t(o,"nile-show");a=t(o,"nile-after-show");o.open=!0;_context6.next=8;return s;case 8:_context6.next=10;return a;case 10:e(o.open).to.be["true"];case 11:case"end":return _context6.stop();}},_callee5);}))),it('should emit "nile-hide" and "nile-after-hide" when closing the dropdown',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var o,s,a;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return n(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-dropdown open></nile-dropdown>"]))));case 2:o=_context7.sent;s=t(o,"nile-hide");a=t(o,"nile-after-hide");o.open=!1;_context7.next=8;return s;case 8:_context7.next=10;return a;case 10:e(o.open).to.be["false"];case 11:case"end":return _context7.stop();}},_callee6);}))),it('should not open the dropdown if "disabled" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _t$shadowRoot3;var t,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return n(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-dropdown disabled></nile-dropdown>"]))));case 2:t=_context8.sent;t.open=!0;_context8.next=6;return o(t);case 6:s=(_t$shadowRoot3=t.shadowRoot)===null||_t$shadowRoot3===void 0?void 0:_t$shadowRoot3.querySelector(".dropdown__panel");e(t.open).to.be["false"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("true");case 8:case"end":return _context8.stop();}},_callee7);}))),it("should toggle the dropdown when clicking the trigger",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var t,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return n(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-dropdown>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context9.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context9.next=7;return o(t);case 7:e(t.open).to.be["true"];s!==null&&s!==void 0&&s.click();_context9.next=11;return o(t);case 11:e(t.open).to.be["false"];case 12:case"end":return _context9.stop();}},_callee8);}))),it('should close the dropdown when "Escape" is pressed',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var t,s;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return n(i(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <nile-dropdown open>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context10.sent;s=new KeyboardEvent("keydown",{key:"Escape"});document.dispatchEvent(s);_context10.next=7;return o(t);case 7:e(t.open).to.be["false"];case 8:case"end":return _context10.stop();}},_callee9);}))),it('should keep the dropdown open when "stayOpenOnSelect" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var t,s,a;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return n(i(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n <nile-dropdown stay-open-on-select>\n <button slot=\"trigger\">Toggle</button>\n <nile-menu>\n <nile-menu-item>Item 1</nile-menu-item>\n <nile-menu-item>Item 2</nile-menu-item>\n </nile-menu>\n </nile-dropdown>\n "]))));case 2:t=_context11.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context11.next=7;return o(t);case 7:a=t.querySelector("nile-menu-item");a!==null&&a!==void 0&&a.click();_context11.next=11;return o(t);case 11:e(t.open).to.be["true"];case 12:case"end":return _context11.stop();}},_callee10);}))),it('should apply the correct placement class when setting "placement"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _t$shadowRoot4;var t,s;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return n(i(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["<nile-dropdown placement=\"top\"></nile-dropdown>"]))));case 2:t=_context12.sent;t.open=!0;_context12.next=6;return o(t);case 6:s=(_t$shadowRoot4=t.shadowRoot)===null||_t$shadowRoot4===void 0?void 0:_t$shadowRoot4.querySelector("nile-popup");e(s===null||s===void 0?void 0:s.getAttribute("placement")).to.equal("top");case 8:case"end":return _context12.stop();}},_callee11);}))),it('should reposition the dropdown when calling "reposition()"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var t;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return n(i(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <nile-dropdown open>\n <button slot=\"trigger\">Toggle</button>\n <nile-menu>\n <nile-menu-item>Item 1</nile-menu-item>\n </nile-menu>\n </nile-dropdown>\n "]))));case 2:t=_context13.sent;t.reposition();_context13.next=6;return o(t);case 6:e(t).to.be.ok;case 7:case"end":return _context13.stop();}},_callee12);}))),it('should not open the dropdown if "noOpenOnClick" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var t,s;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.next=2;return n(i(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n <nile-dropdown noOpenOnClick>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context14.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context14.next=7;return o(t);case 7:e(t.open).to.be["false"];case 8:case"end":return _context14.stop();}},_callee13);}))),it('should hoist the dropdown when "hoist" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var _t$shadowRoot5;var t,s;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return n(i(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["<nile-dropdown hoist></nile-dropdown>"]))));case 2:t=_context15.sent;t.open=!0;_context15.next=6;return o(t);case 6:s=(_t$shadowRoot5=t.shadowRoot)===null||_t$shadowRoot5===void 0?void 0:_t$shadowRoot5.querySelector("nile-popup");e(s===null||s===void 0?void 0:s.getAttribute("strategy")).to.equal("fixed");case 8:case"end":return _context15.stop();}},_callee14);}))),it("should apply animations when opening and closing",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var o,s,a;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return n(i(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context16.sent;s=t(o,"nile-after-show");o.open=!0;_context16.next=7;return s;case 7:a=t(o,"nile-after-hide");o.open=!1;_context16.next=11;return a;case 11:e(o.open).to.be["false"];case 12:case"end":return _context16.stop();}},_callee15);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-dropdown.cjs.js","tslib","lit/decorators.js","./nile-dropdown.css.cjs.js","../internal/animate.cjs.js","lit/directives/class-map.js","../utilities/animation-registry.cjs.js","../internal/tabbable.cjs.js","../internal/event.cjs.js","../internal/watch.cjs.js","../internal/nile-element.cjs.js","../nile-popup/nile-popup.cjs.js","../nile-popup/nile-popup.css.cjs.js"],function(_export,_context){"use strict";var n,e,o,t,i,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture001CjsJs){n=_fixture001CjsJs.f;e=_fixture001CjsJs.a;o=_fixture001CjsJs.e;t=_fixture001CjsJs.o;},function(_litStaticHtmlJs){i=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileDropdownCjsJs){s=_nileDropdownCjsJs.N;},function(_tslib){},function(_litDecoratorsJs){},function(_nileDropdownCssCjsJs){},function(_internalAnimateCjsJs){},function(_litDirectivesClassMapJs){},function(_utilitiesAnimationRegistryCjsJs){},function(_internalTabbableCjsJs){},function(_internalEventCjsJs){},function(_internalWatchCjsJs){},function(_internalNileElementCjsJs){},function(_nilePopupNilePopupCjsJs){},function(_nilePopupNilePopupCssCjsJs){}],execute:function execute(){describe("NileDropdown",function(){it("should render correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return n(i(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context2.sent;e(o).to.be.instanceOf(s),e(o.shadowRoot).not.to.be["null"];case 4:case"end":return _context2.stop();}},_callee);}))),it("should be closed by default",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var _o$shadowRoot;var o,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:_context3.next=2;return n(i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context3.sent;e(o.open).to.be["false"];t=(_o$shadowRoot=o.shadowRoot)===null||_o$shadowRoot===void 0?void 0:_o$shadowRoot.querySelector(".dropdown__panel");e(t===null||t===void 0?void 0:t.getAttribute("aria-hidden")).to.equal("true");case 6:case"end":return _context3.stop();}},_callee2);}))),it('should open the dropdown when "open" property is set to true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var _t$shadowRoot;var t,s;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_context4.next=2;return n(i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:t=_context4.sent;t.open=!0;_context4.next=6;return o(t);case 6:s=(_t$shadowRoot=t.shadowRoot)===null||_t$shadowRoot===void 0?void 0:_t$shadowRoot.querySelector(".dropdown__panel");e(t.open).to.be["true"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("false");case 8:case"end":return _context4.stop();}},_callee3);}))),it('should close the dropdown when "open" property is set to false',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _t$shadowRoot2;var t,s;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return n(i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-dropdown open></nile-dropdown>"]))));case 2:t=_context5.sent;t.open=!1;_context5.next=6;return o(t);case 6:s=(_t$shadowRoot2=t.shadowRoot)===null||_t$shadowRoot2===void 0?void 0:_t$shadowRoot2.querySelector(".dropdown__panel");e(t.open).to.be["false"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("true");case 8:case"end":return _context5.stop();}},_callee4);}))),it('should emit "nile-show" and "nile-after-show" when opening the dropdown',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var o,s,a;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return n(i(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context6.sent;s=t(o,"nile-show");a=t(o,"nile-after-show");o.open=!0;_context6.next=8;return s;case 8:_context6.next=10;return a;case 10:e(o.open).to.be["true"];case 11:case"end":return _context6.stop();}},_callee5);}))),it('should emit "nile-hide" and "nile-after-hide" when closing the dropdown',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var o,s,a;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return n(i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-dropdown open></nile-dropdown>"]))));case 2:o=_context7.sent;s=t(o,"nile-hide");a=t(o,"nile-after-hide");o.open=!1;_context7.next=8;return s;case 8:_context7.next=10;return a;case 10:e(o.open).to.be["false"];case 11:case"end":return _context7.stop();}},_callee6);}))),it('should not open the dropdown if "disabled" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var _t$shadowRoot3;var t,s;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return n(i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-dropdown disabled></nile-dropdown>"]))));case 2:t=_context8.sent;t.open=!0;_context8.next=6;return o(t);case 6:s=(_t$shadowRoot3=t.shadowRoot)===null||_t$shadowRoot3===void 0?void 0:_t$shadowRoot3.querySelector(".dropdown__panel");e(t.open).to.be["false"],e(s===null||s===void 0?void 0:s.getAttribute("aria-hidden")).to.equal("true");case 8:case"end":return _context8.stop();}},_callee7);}))),it("should toggle the dropdown when clicking the trigger",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var t,s;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return n(i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-dropdown>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context9.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context9.next=7;return o(t);case 7:e(t.open).to.be["true"];s!==null&&s!==void 0&&s.click();_context9.next=11;return o(t);case 11:e(t.open).to.be["false"];case 12:case"end":return _context9.stop();}},_callee8);}))),it('should close the dropdown when "Escape" is pressed',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var t,s;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return n(i(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <nile-dropdown open>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context10.sent;s=new KeyboardEvent("keydown",{key:"Escape"});document.dispatchEvent(s);_context10.next=7;return o(t);case 7:e(t.open).to.be["false"];case 8:case"end":return _context10.stop();}},_callee9);}))),it('should keep the dropdown open when "stayOpenOnSelect" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var t,s,a;return _regeneratorRuntime().wrap(function _callee10$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:_context11.next=2;return n(i(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["\n <nile-dropdown stay-open-on-select>\n <button slot=\"trigger\">Toggle</button>\n <nile-menu>\n <nile-menu-item>Item 1</nile-menu-item>\n <nile-menu-item>Item 2</nile-menu-item>\n </nile-menu>\n </nile-dropdown>\n "]))));case 2:t=_context11.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context11.next=7;return o(t);case 7:a=t.querySelector("nile-menu-item");a!==null&&a!==void 0&&a.click();_context11.next=11;return o(t);case 11:e(t.open).to.be["true"];case 12:case"end":return _context11.stop();}},_callee10);}))),it('should apply the correct placement class when setting "placement"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(){var _t$shadowRoot4;var t,s;return _regeneratorRuntime().wrap(function _callee11$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_context12.next=2;return n(i(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["<nile-dropdown placement=\"top\"></nile-dropdown>"]))));case 2:t=_context12.sent;t.open=!0;_context12.next=6;return o(t);case 6:s=(_t$shadowRoot4=t.shadowRoot)===null||_t$shadowRoot4===void 0?void 0:_t$shadowRoot4.querySelector("nile-popup");e(s===null||s===void 0?void 0:s.getAttribute("placement")).to.equal("top");case 8:case"end":return _context12.stop();}},_callee11);}))),it('should reposition the dropdown when calling "reposition()"',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(){var t;return _regeneratorRuntime().wrap(function _callee12$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:_context13.next=2;return n(i(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <nile-dropdown open>\n <button slot=\"trigger\">Toggle</button>\n <nile-menu>\n <nile-menu-item>Item 1</nile-menu-item>\n </nile-menu>\n </nile-dropdown>\n "]))));case 2:t=_context13.sent;t.reposition();_context13.next=6;return o(t);case 6:e(t).to.be.ok;case 7:case"end":return _context13.stop();}},_callee12);}))),it('should not open the dropdown if "noOpenOnClick" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var t,s;return _regeneratorRuntime().wrap(function _callee13$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:_context14.next=2;return n(i(_templateObject13||(_templateObject13=_taggedTemplateLiteral(["\n <nile-dropdown noOpenOnClick>\n <button slot=\"trigger\">Toggle</button>\n </nile-dropdown>\n "]))));case 2:t=_context14.sent;s=t.querySelector("button");s!==null&&s!==void 0&&s.click();_context14.next=7;return o(t);case 7:e(t.open).to.be["false"];case 8:case"end":return _context14.stop();}},_callee13);}))),it('should hoist the dropdown when "hoist" is true',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var _t$shadowRoot5;var t,s;return _regeneratorRuntime().wrap(function _callee14$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:_context15.next=2;return n(i(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["<nile-dropdown hoist></nile-dropdown>"]))));case 2:t=_context15.sent;t.open=!0;_context15.next=6;return o(t);case 6:s=(_t$shadowRoot5=t.shadowRoot)===null||_t$shadowRoot5===void 0?void 0:_t$shadowRoot5.querySelector("nile-popup");e(s===null||s===void 0?void 0:s.getAttribute("strategy")).to.equal("fixed");case 8:case"end":return _context15.stop();}},_callee14);}))),it("should apply animations when opening and closing",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var o,s,a;return _regeneratorRuntime().wrap(function _callee15$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_context16.next=2;return n(i(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["<nile-dropdown></nile-dropdown>"]))));case 2:o=_context16.sent;s=t(o,"nile-after-show");o.open=!0;_context16.next=7;return s;case 7:a=t(o,"nile-after-hide");o.open=!1;_context16.next=11;return a;case 11:e(o.open).to.be["false"];case 12:case"end":return _context16.stop();}},_callee15);})));});}};});
2
2
  //# sourceMappingURL=nile-dropdown.test.cjs.js.map
@@ -1,4 +1,4 @@
1
- import{f as n,a as e,e as o,o as t}from"../fixture-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 s}from"./nile-dropdown.esm.js";import"tslib";import"lit/decorators.js";import"./nile-dropdown.css.esm.js";import"../internal/animate.esm.js";import"lit/directives/class-map.js";import"../utilities/animation-registry.esm.js";import"../internal/tabbable.esm.js";import"../internal/event.esm.js";import"../internal/watch.esm.js";import"../internal/nile-element.esm.js";import"../nile-popup/nile-popup.esm.js";import"../nile-popup/nile-popup.css.esm.js";describe("NileDropdown",(()=>{it("should render correctly",(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`);e(o).to.be.instanceOf(s),e(o.shadowRoot).not.to.be.null})),it("should be closed by default",(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`);e(o.open).to.be.false;const t=o.shadowRoot?.querySelector(".dropdown__panel");e(t?.getAttribute("aria-hidden")).to.equal("true")})),it('should open the dropdown when "open" property is set to true',(async()=>{const t=await n(i`<nile-dropdown></nile-dropdown>`);t.open=!0,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.true,e(s?.getAttribute("aria-hidden")).to.equal("false")})),it('should close the dropdown when "open" property is set to false',(async()=>{const t=await n(i`<nile-dropdown open></nile-dropdown>`);t.open=!1,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.false,e(s?.getAttribute("aria-hidden")).to.equal("true")})),it('should emit "nile-show" and "nile-after-show" when opening the dropdown',(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`),s=t(o,"nile-show"),a=t(o,"nile-after-show");o.open=!0,await s,await a,e(o.open).to.be.true})),it('should emit "nile-hide" and "nile-after-hide" when closing the dropdown',(async()=>{const o=await n(i`<nile-dropdown open></nile-dropdown>`),s=t(o,"nile-hide"),a=t(o,"nile-after-hide");o.open=!1,await s,await a,e(o.open).to.be.false})),it('should not open the dropdown if "disabled" is true',(async()=>{const t=await n(i`<nile-dropdown disabled></nile-dropdown>`);t.open=!0,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.false,e(s?.getAttribute("aria-hidden")).to.equal("true")})),it("should toggle the dropdown when clicking the trigger",(async()=>{const t=await n(i`
1
+ import{f as n,a as e,e as o,o as t}from"../fixture-588a3119.esm.js";import{html as i}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import{N as s}from"./nile-dropdown.esm.js";import"tslib";import"lit/decorators.js";import"./nile-dropdown.css.esm.js";import"../internal/animate.esm.js";import"lit/directives/class-map.js";import"../utilities/animation-registry.esm.js";import"../internal/tabbable.esm.js";import"../internal/event.esm.js";import"../internal/watch.esm.js";import"../internal/nile-element.esm.js";import"../nile-popup/nile-popup.esm.js";import"../nile-popup/nile-popup.css.esm.js";describe("NileDropdown",(()=>{it("should render correctly",(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`);e(o).to.be.instanceOf(s),e(o.shadowRoot).not.to.be.null})),it("should be closed by default",(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`);e(o.open).to.be.false;const t=o.shadowRoot?.querySelector(".dropdown__panel");e(t?.getAttribute("aria-hidden")).to.equal("true")})),it('should open the dropdown when "open" property is set to true',(async()=>{const t=await n(i`<nile-dropdown></nile-dropdown>`);t.open=!0,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.true,e(s?.getAttribute("aria-hidden")).to.equal("false")})),it('should close the dropdown when "open" property is set to false',(async()=>{const t=await n(i`<nile-dropdown open></nile-dropdown>`);t.open=!1,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.false,e(s?.getAttribute("aria-hidden")).to.equal("true")})),it('should emit "nile-show" and "nile-after-show" when opening the dropdown',(async()=>{const o=await n(i`<nile-dropdown></nile-dropdown>`),s=t(o,"nile-show"),a=t(o,"nile-after-show");o.open=!0,await s,await a,e(o.open).to.be.true})),it('should emit "nile-hide" and "nile-after-hide" when closing the dropdown',(async()=>{const o=await n(i`<nile-dropdown open></nile-dropdown>`),s=t(o,"nile-hide"),a=t(o,"nile-after-hide");o.open=!1,await s,await a,e(o.open).to.be.false})),it('should not open the dropdown if "disabled" is true',(async()=>{const t=await n(i`<nile-dropdown disabled></nile-dropdown>`);t.open=!0,await o(t);const s=t.shadowRoot?.querySelector(".dropdown__panel");e(t.open).to.be.false,e(s?.getAttribute("aria-hidden")).to.equal("true")})),it("should toggle the dropdown when clicking the trigger",(async()=>{const t=await n(i`
2
2
  <nile-dropdown>
3
3
  <button slot="trigger">Toggle</button>
4
4
  </nile-dropdown>
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-empty-state.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,s,i,e,a,o,m,l,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){s=_lit.html;i=_lit.nothing;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;a=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){o=_litDirectivesClassMapJs.classMap;},function(_nileEmptyStateCssCjsJs){m=_nileEmptyStateCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",n=/*#__PURE__*/function(_l){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.size="md",_this.variant="tonal",_this.icon="error",_this.grayscale=!1,_this.text="Empty State",_this.subText="No Data";return _this;}_inherits(n,_l);return _createClass(n,[{key:"render",value:function render(){return s(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t<div class=\"","\">\n <div class=\"","\">\n\n ","\n\t\t\t\t\n\t\t\t ","\n\n\t\t\t ","\n \n <div class=\"empty__state__text-section\">\n <div class=\"empty-state__text\">","</div>\n <div class=\"empty-state__subtext\">","</div>\n </div>\n\t\t\t</div>\n\n\t\t\t<div class=\"empty-state-actions\">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t</div>\n\t\t"])),o({"empty-state":!0,"empty-state--sm":"sm"==this.size,"empty-state--md":"md"==this.size,"empty-state--lg":"lg"==this.size}),o({"empty-state__body":!0}),"content"==this.variant?s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div class=\"empty-state__body--content\">\n \n <div src=\"\" class=\"","\"></div>\n ","\n </div>"])),o({"empty-state__image":!0,"empty-state__image--grayscale":this.grayscale}),this.icon?s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div class=\"empty-state__img__icon\">\n <nile-icon name=\"","\" color=\"white\" size=\"","\"></nile-icon>\n </div>"])),this.icon,"sm"==this.size||"md"==this.size?24:28):i):i,"tonal"==this.variant?s(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"empty-state__body--tonal\">\n\t\t\t\t\t<nile-icon name=\"","\" size=\"40\"></nile-icon>\n\t\t\t\t</div>"])),this.icon):i,"flat"==this.variant?s(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n\t\t\t\t<div class=\"empty-state__body--flat\">\n\t\t\t\t\t<span class=\"nile-flat-type-icon\">\n\t\t\t\t\t\t<nile-icon name=\"","\" size=\"","\" variant=\"secondary\"></nile-icon>\n\t\t\t\t\t</span>\n\t\t\t\t</div>"])),this.icon,"sm"==this.size||"md"==this.size?24:28):i,this.text,this.subText);}}],[{key:"styles",get:function get(){return[m];}}]);}(l));t([e()],n.prototype,"size",void 0),t([e()],n.prototype,"variant",void 0),t([e()],n.prototype,"icon",void 0),t([e({type:Boolean})],n.prototype,"grayscale",void 0),t([e()],n.prototype,"text",void 0),t([e({attribute:"sub-text"})],n.prototype,"subText",void 0),_export("N",n=t([a("nile-empty-state")],n));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-empty-state.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,s,i,e,a,o,n,r,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,l;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){s=_lit.html;i=_lit.nothing;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;a=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){o=_litDirectivesClassMapJs.classMap;},function(_nileEmptyStateCssCjsJs){n=_nileEmptyStateCssCjsJs.s;},function(_internalNileElementCjsJs){r=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",l=/*#__PURE__*/function(_r){function l(){var _this;_classCallCheck(this,l);_this=_callSuper(this,l,arguments),_this.size="md",_this.variant="tonal",_this.icon="error",_this.grayscale=!1,_this.text="Empty State",_this.subText="No Data";return _this;}_inherits(l,_r);return _createClass(l,[{key:"render",value:function render(){return s(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t<div part=\"container\" class=\"","\">\n <div part=\"body\" class=\"","\">\n\n ","\n\t\t\t\t\n\t\t\t ","\n\n\t\t\t ","\n \n <div part=\"text-section\" class=\"empty__state__text-section\">\n <div part=\"text\" class=\"empty-state__text\">","</div>\n <div part=\"subtitle\" class=\"empty-state__subtext\">","</div>\n </div>\n\t\t\t</div>\n\n\t\t\t<div part=\"actions\" class=\"empty-state-actions\">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t</div>\n\t\t"])),o({"empty-state":!0,"empty-state--sm":"sm"==this.size,"empty-state--md":"md"==this.size,"empty-state--lg":"lg"==this.size}),o({"empty-state__body":!0}),"content"==this.variant?s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <div part=\"content-image\" class=\"empty-state__body--content\">\n \n <div part=\"image\" src=\"\" class=\"","\"></div>\n ","\n </div>"])),o({"empty-state__image":!0,"empty-state__image--grayscale":this.grayscale}),this.icon?s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <div part=\"icon-wrapper\" class=\"empty-state__img__icon\">\n <nile-icon name=\"","\" color=\"white\" size=\"","\"></nile-icon>\n </div>"])),this.icon,"sm"==this.size||"md"==this.size?24:28):i):i,"tonal"==this.variant?s(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n\t\t\t\t<div part=\"tonal-body\" class=\"empty-state__body--tonal\">\n\t\t\t\t\t<nile-icon name=\"","\" size=\"40\"></nile-icon>\n\t\t\t\t</div>"])),this.icon):i,"flat"==this.variant?s(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n\t\t\t\t<div part=\"flat-body\" class=\"empty-state__body--flat\">\n\t\t\t\t\t<span class=\"nile-flat-type-icon\">\n\t\t\t\t\t\t<nile-icon name=\"","\" size=\"","\" variant=\"secondary\"></nile-icon>\n\t\t\t\t\t</span>\n\t\t\t\t</div>"])),this.icon,"sm"==this.size||"md"==this.size?24:28):i,this.text,this.subText);}}],[{key:"styles",get:function get(){return[n];}}]);}(r));t([e()],l.prototype,"size",void 0),t([e()],l.prototype,"variant",void 0),t([e()],l.prototype,"icon",void 0),t([e({type:Boolean})],l.prototype,"grayscale",void 0),t([e()],l.prototype,"text",void 0),t([e({attribute:"sub-text"})],l.prototype,"subText",void 0),_export("N",l=t([a("nile-empty-state")],l));}};});
2
2
  //# sourceMappingURL=nile-empty-state.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-empty-state.cjs.js","sources":["../../../src/nile-empty-state/nile-empty-state.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, nothing, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-empty-state.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile empty-state component.\n *\n * @tag nile-empty-state\n *\n */\n@customElement('nile-empty-state')\nexport class NileEmptyState extends NileElement {\n\n /**\n * The styles for nile-empty-state\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property() size: 'sm' | 'md' | 'lg' = 'md';\n\n @property() variant:\n | 'flat'\n | 'content'\n | 'tonal' = 'tonal';\n\n @property() icon: string = 'error';\n @property({type:Boolean}) grayscale: boolean = false;\n\n @property() text: String = 'Empty State';\n @property({attribute:'sub-text'}) subText: String = 'No Data';\n\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n public render(): TemplateResult {\n return html`\n\t\t<div class=\"${classMap({\n 'empty-state': true,\n 'empty-state--sm': this.size == 'sm',\n 'empty-state--md': this.size == 'md',\n 'empty-state--lg': this.size == 'lg'\n })}\">\n <div class=\"${classMap({ 'empty-state__body': true })}\">\n\n ${this.variant == 'content' ? html`\n <div class=\"empty-state__body--content\">\n \n <div src=\"\" class=\"${classMap({ 'empty-state__image': true, 'empty-state__image--grayscale':this.grayscale })}\"></div>\n ${!this.icon ? nothing : html`\n <div class=\"empty-state__img__icon\">\n <nile-icon name=\"${this.icon}\" color=\"white\" size=\"${this.size == 'sm' ? 24 : this.size == 'md' ? 24 : 28}\"></nile-icon>\n </div>`\n }\n </div>`: nothing\n }\n\t\t\t\t\n\t\t\t ${this.variant == 'tonal' ? html`\n\t\t\t\t<div class=\"empty-state__body--tonal\">\n\t\t\t\t\t<nile-icon name=\"${this.icon}\" size=\"40\"></nile-icon>\n\t\t\t\t</div>`: nothing\n }\n\n\t\t\t ${this.variant == 'flat' ? html`\n\t\t\t\t<div class=\"empty-state__body--flat\">\n\t\t\t\t\t<span class=\"nile-flat-type-icon\">\n\t\t\t\t\t\t<nile-icon name=\"${this.icon}\" size=\"${this.size == 'sm' ? 24 : this.size == 'md' ? 24 : 28}\" variant=\"secondary\"></nile-icon>\n\t\t\t\t\t</span>\n\t\t\t\t</div>`: nothing\n }\n \n <div class=\"empty__state__text-section\">\n <div class=\"empty-state__text\">${this.text}</div>\n <div class=\"empty-state__subtext\">${this.subText}</div>\n </div>\n\t\t\t</div>\n\n\t\t\t<div class=\"empty-state-actions\">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t</div>\n\t\t`;\n }\n\n /* #endregion */\n}\n\nexport default NileEmptyState;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-empty-state': NileEmptyState;\n }\n}"],"names":["NileEmptyState","n","this","size","variant","icon","grayscale","text","subText","_this","_inherits","_l","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","classMap","_templateObject2","_templateObject3","nothing","_templateObject4","_templateObject5","__decorate","get","styles","NileElement","property","prototype","type","Boolean","attribute","customElement"],"mappings":"s0GAoBaA,4BAAN,SAAAC,EAAA,qEAUOC,EAAAA,KAAAA,CAAIC,IAAuB,CAAA,IAAA,CAE3BD,KAAAA,CAAOE,OAGL,CAAA,OAAA,CAEFF,KAAAA,CAAIG,IAAW,CAAA,OAAA,CACDH,KAAAA,CAASI,SAAY,CAAA,CAAA,CAAA,CAEnCJ,KAAAA,CAAIK,IAAAA,CAAW,aACOL,CAAAA,KAAAA,CAAOM,QAAW,SA6DrD,QAAAC,KAAA,EA5EQC,SAAA,CAAAT,CAAA,CAAAU,EAAA,SAAAC,YAAA,CAAAX,CAAA,GAAAY,GAAA,UAAAC,KAAA,CA0BA,SAAAC,MAAAA,CAAAA,CACL,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,8ZACCC,CAAAA,CAAS,CACnB,aAAA,CAAA,CAAe,CACf,CAAA,iBAAA,CAAgC,IAAbjB,EAAAA,IAAAA,CAAKC,IACxB,CAAA,iBAAA,CAAgC,IAAbD,EAAAA,IAAAA,CAAKC,IACxB,CAAA,iBAAA,CAAgC,MAAbD,IAAKC,CAAAA,IAAAA,CAAAA,CAAAA,CAEVgB,CAAAA,CAAS,CAAE,mBAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAE1B,SAAhBjB,EAAAA,IAAAA,CAAKE,QAAuBY,CAAI,CAAAI,gBAAA,GAAAA,gBAAA,CAAAF,sBAAA,qJAGXC,CAAAA,CAAS,CAAE,oBAAA,CAAA,CAAsB,CAAM,CAAA,+BAAA,CAAgCjB,IAAKI,CAAAA,SAAAA,CAAAA,CAAAA,CAC9FJ,IAAAA,CAAKG,KAAiBW,CAAI,CAAAK,gBAAA,GAAAA,gBAAA,CAAAH,sBAAA,2JAERhB,IAAAA,CAAKG,KAA0C,IAAbH,EAAAA,IAAAA,CAAKC,MAAiC,IAAbD,EAAAA,IAAAA,CAAKC,KAAV,EAA8B,CAAA,EAAA,EAF1FmB,CAAAA,EAKRA,CAAAA,CAGM,OAAhBpB,EAAAA,IAAAA,CAAKE,QAAqBY,CAAI,CAAAO,gBAAA,GAAAA,gBAAA,CAAAL,sBAAA,sIAEbhB,IAAKG,CAAAA,IAAAA,EAChBiB,CAAAA,CAGU,MAAhBpB,EAAAA,IAAAA,CAAKE,QAAoBY,CAAI,CAAAQ,gBAAA,GAAAA,gBAAA,CAAAN,sBAAA,iOAGXhB,IAAAA,CAAKG,KAA4B,IAAbH,EAAAA,IAAAA,CAAKC,MAAiC,IAAbD,EAAAA,IAAAA,CAAKC,KAAV,EAA8B,CAAA,EAAA,EAElFmB,CAAAA,CAI8BpB,IAAKK,CAAAA,IAAAA,CACFL,IAAKM,CAAAA,OAAAA,EAShD,CArEWiB,KAAAA,GAAAA,UAAAA,GAAAA,CAJL,SAAAC,IAAA,CAAWC,CAChB,MAAO,CAACA,EACT,EAwBM,MAhC2BC,CAAAA,GAUtBH,CAAAA,CAAA,CAAXI,CAAAA,CAAAA,CAAAA,CAAAA,CAA2C7B,CAAA8B,CAAAA,SAAAA,CAAA,WAAA,EAEhCL,CAAAA,CAAAA,CAAAA,CAAA,CAAXI,CAAAA,CAAAA,CAAAA,CAAAA,CAGqB7B,CAAA8B,CAAAA,SAAAA,CAAA,cAAA,EAEVL,CAAAA,CAAAA,CAAAA,CAAA,CAAXI,CAAAA,CAAAA,CAAAA,CAAAA,CAAkC7B,CAAA8B,CAAAA,SAAAA,CAAA,WAAA,EACTL,CAAAA,CAAAA,CAAAA,CAAA,CAAzBI,CAAAA,CAAS,CAACE,IAAAA,CAAKC,WAAqChC,CAAA8B,CAAAA,SAAAA,CAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAEzCL,CAAA,CAAA,CAAXI,KAAwC7B,CAAA8B,CAAAA,SAAAA,CAAA,MAAA,CAAA,IAAA,EAAA,CAAA,CACPL,CAAA,CAAA,CAAjCI,EAAS,CAACI,SAAAA,CAAU,UAAyCjC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA8B,SAAA,CAAA,SAAA,CAAA,IAAA,EArBnD9B,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAcyB,CAAA,CAAA,CAD1BS,CAAc,CAAA,kBAAA,CAAA,CAAA,CACFlC"}
1
+ {"version":3,"file":"nile-empty-state.cjs.js","sources":["../../../src/nile-empty-state/nile-empty-state.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { html, nothing, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property, state } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-empty-state.css';\nimport NileElement from '../internal/nile-element';\n\n/**\n * Nile empty-state component.\n *\n * @tag nile-empty-state\n *\n */\n@customElement('nile-empty-state')\nexport class NileEmptyState extends NileElement {\n\n /**\n * The styles for nile-empty-state\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property() size: 'sm' | 'md' | 'lg' = 'md';\n\n @property() variant:\n | 'flat'\n | 'content'\n | 'tonal' = 'tonal';\n\n @property() icon: string = 'error';\n @property({type:Boolean}) grayscale: boolean = false;\n\n @property() text: String = 'Empty State';\n @property({attribute:'sub-text'}) subText: String = 'No Data';\n\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n public render(): TemplateResult {\n return html`\n\t\t<div part=\"container\" class=\"${classMap({\n 'empty-state': true,\n 'empty-state--sm': this.size == 'sm',\n 'empty-state--md': this.size == 'md',\n 'empty-state--lg': this.size == 'lg'\n })}\">\n <div part=\"body\" class=\"${classMap({ 'empty-state__body': true })}\">\n\n ${this.variant == 'content' ? html`\n <div part=\"content-image\" class=\"empty-state__body--content\">\n \n <div part=\"image\" src=\"\" class=\"${classMap({ 'empty-state__image': true, 'empty-state__image--grayscale':this.grayscale })}\"></div>\n ${!this.icon ? nothing : html`\n <div part=\"icon-wrapper\" class=\"empty-state__img__icon\">\n <nile-icon name=\"${this.icon}\" color=\"white\" size=\"${this.size == 'sm' ? 24 : this.size == 'md' ? 24 : 28}\"></nile-icon>\n </div>`\n }\n </div>`: nothing\n }\n\t\t\t\t\n\t\t\t ${this.variant == 'tonal' ? html`\n\t\t\t\t<div part=\"tonal-body\" class=\"empty-state__body--tonal\">\n\t\t\t\t\t<nile-icon name=\"${this.icon}\" size=\"40\"></nile-icon>\n\t\t\t\t</div>`: nothing\n }\n\n\t\t\t ${this.variant == 'flat' ? html`\n\t\t\t\t<div part=\"flat-body\" class=\"empty-state__body--flat\">\n\t\t\t\t\t<span class=\"nile-flat-type-icon\">\n\t\t\t\t\t\t<nile-icon name=\"${this.icon}\" size=\"${this.size == 'sm' ? 24 : this.size == 'md' ? 24 : 28}\" variant=\"secondary\"></nile-icon>\n\t\t\t\t\t</span>\n\t\t\t\t</div>`: nothing\n }\n \n <div part=\"text-section\" class=\"empty__state__text-section\">\n <div part=\"text\" class=\"empty-state__text\">${this.text}</div>\n <div part=\"subtitle\" class=\"empty-state__subtext\">${this.subText}</div>\n </div>\n\t\t\t</div>\n\n\t\t\t<div part=\"actions\" class=\"empty-state-actions\">\n\t\t\t\t<slot></slot>\n\t\t\t</div>\n\t\t</div>\n\t\t`;\n }\n\n /* #endregion */\n}\n\nexport default NileEmptyState;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-empty-state': NileEmptyState;\n }\n}"],"names":["NileEmptyState","l","this","size","variant","icon","grayscale","text","subText","_this","_inherits","_r","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","classMap","_templateObject2","_templateObject3","nothing","_templateObject4","_templateObject5","__decorate","get","styles","NileElement","property","prototype","type","Boolean","attribute","customElement"],"mappings":"s0GAoBaA,4BAAN,SAAAC,EAAA,qEAUOC,EAAAA,KAAAA,CAAIC,IAAuB,CAAA,IAAA,CAE3BD,KAAAA,CAAOE,OAGL,CAAA,OAAA,CAEFF,KAAAA,CAAIG,IAAW,CAAA,OAAA,CACDH,KAAAA,CAASI,SAAY,CAAA,CAAA,CAAA,CAEnCJ,KAAAA,CAAIK,IAAAA,CAAW,aACOL,CAAAA,KAAAA,CAAOM,QAAW,SA6DrD,QAAAC,KAAA,EA5EQC,SAAA,CAAAT,CAAA,CAAAU,EAAA,SAAAC,YAAA,CAAAX,CAAA,GAAAY,GAAA,UAAAC,KAAA,CA0BA,SAAAC,MAAAA,CAAAA,CACL,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,ugBACkBC,CAAAA,CAAS,CACpC,aAAA,CAAA,CAAe,CACf,CAAA,iBAAA,CAAgC,IAAbjB,EAAAA,IAAAA,CAAKC,IACxB,CAAA,iBAAA,CAAgC,IAAbD,EAAAA,IAAAA,CAAKC,IACxB,CAAA,iBAAA,CAAgC,MAAbD,IAAKC,CAAAA,IAAAA,CAAAA,CAAAA,CAEGgB,CAAAA,CAAS,CAAE,mBAAqB,CAAA,CAAA,CAAA,CAAA,CAAA,CAEvC,SAAhBjB,EAAAA,IAAAA,CAAKE,QAAuBY,CAAI,CAAAI,gBAAA,GAAAA,gBAAA,CAAAF,sBAAA,2LAGEC,CAAAA,CAAS,CAAE,oBAAA,CAAA,CAAsB,CAAM,CAAA,+BAAA,CAAgCjB,IAAKI,CAAAA,SAAAA,CAAAA,CAAAA,CAC3GJ,IAAAA,CAAKG,KAAiBW,CAAI,CAAAK,gBAAA,GAAAA,gBAAA,CAAAH,sBAAA,iLAERhB,IAAAA,CAAKG,KAA0C,IAAbH,EAAAA,IAAAA,CAAKC,MAAiC,IAAbD,EAAAA,IAAAA,CAAKC,KAAV,EAA8B,CAAA,EAAA,EAF1FmB,CAAAA,EAKRA,CAAAA,CAGM,OAAhBpB,EAAAA,IAAAA,CAAKE,QAAqBY,CAAI,CAAAO,gBAAA,GAAAA,gBAAA,CAAAL,sBAAA,0JAEbhB,IAAKG,CAAAA,IAAAA,EAChBiB,CAAAA,CAGU,MAAhBpB,EAAAA,IAAAA,CAAKE,QAAoBY,CAAI,CAAAQ,gBAAA,GAAAA,gBAAA,CAAAN,sBAAA,oPAGXhB,IAAAA,CAAKG,KAA4B,IAAbH,EAAAA,IAAAA,CAAKC,MAAiC,IAAbD,EAAAA,IAAAA,CAAKC,KAAV,EAA8B,CAAA,EAAA,EAElFmB,CAAAA,CAI0CpB,IAAKK,CAAAA,IAAAA,CACEL,IAAKM,CAAAA,OAAAA,EAShE,CArEWiB,KAAAA,GAAAA,UAAAA,GAAAA,CAJL,SAAAC,IAAA,CAAWC,CAChB,MAAO,CAACA,EACT,EAwBM,MAhC2BC,CAAAA,GAUtBH,CAAAA,CAAA,CAAXI,CAAAA,CAAAA,CAAAA,CAAAA,CAA2C7B,CAAA8B,CAAAA,SAAAA,CAAA,WAAA,EAEhCL,CAAAA,CAAAA,CAAAA,CAAA,CAAXI,CAAAA,CAAAA,CAAAA,CAAAA,CAGqB7B,CAAA8B,CAAAA,SAAAA,CAAA,cAAA,EAEVL,CAAAA,CAAAA,CAAAA,CAAA,CAAXI,CAAAA,CAAAA,CAAAA,CAAAA,CAAkC7B,CAAA8B,CAAAA,SAAAA,CAAA,WAAA,EACTL,CAAAA,CAAAA,CAAAA,CAAA,CAAzBI,CAAAA,CAAS,CAACE,IAAAA,CAAKC,WAAqChC,CAAA8B,CAAAA,SAAAA,CAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAEzCL,CAAA,CAAA,CAAXI,KAAwC7B,CAAA8B,CAAAA,SAAAA,CAAA,MAAA,CAAA,IAAA,EAAA,CAAA,CACPL,CAAA,CAAA,CAAjCI,EAAS,CAACI,SAAAA,CAAU,UAAyCjC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA8B,SAAA,CAAA,SAAA,CAAA,IAAA,EArBnD9B,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAcyB,CAAA,CAAA,CAD1BS,CAAc,CAAA,kBAAA,CAAA,CAAA,CACFlC"}
@@ -1,37 +1,37 @@
1
- import{__decorate as t}from"tslib";import{html as s,nothing as i}from"lit";import{property as e,customElement as a}from"lit/decorators.js";import{classMap as o}from"lit/directives/class-map.js";import{s as m}from"./nile-empty-state.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";let n=class extends l{constructor(){super(...arguments),this.size="md",this.variant="tonal",this.icon="error",this.grayscale=!1,this.text="Empty State",this.subText="No Data"}static get styles(){return[m]}render(){return s`
2
- <div class="${o({"empty-state":!0,"empty-state--sm":"sm"==this.size,"empty-state--md":"md"==this.size,"empty-state--lg":"lg"==this.size})}">
3
- <div class="${o({"empty-state__body":!0})}">
1
+ import{__decorate as t}from"tslib";import{html as s,nothing as i}from"lit";import{property as e,customElement as a}from"lit/decorators.js";import{classMap as o}from"lit/directives/class-map.js";import{s as n}from"./nile-empty-state.css.esm.js";import{N as m}from"../internal/nile-element.esm.js";let r=class extends m{constructor(){super(...arguments),this.size="md",this.variant="tonal",this.icon="error",this.grayscale=!1,this.text="Empty State",this.subText="No Data"}static get styles(){return[n]}render(){return s`
2
+ <div part="container" class="${o({"empty-state":!0,"empty-state--sm":"sm"==this.size,"empty-state--md":"md"==this.size,"empty-state--lg":"lg"==this.size})}">
3
+ <div part="body" class="${o({"empty-state__body":!0})}">
4
4
 
5
5
  ${"content"==this.variant?s`
6
- <div class="empty-state__body--content">
6
+ <div part="content-image" class="empty-state__body--content">
7
7
 
8
- <div src="" class="${o({"empty-state__image":!0,"empty-state__image--grayscale":this.grayscale})}"></div>
8
+ <div part="image" src="" class="${o({"empty-state__image":!0,"empty-state__image--grayscale":this.grayscale})}"></div>
9
9
  ${this.icon?s`
10
- <div class="empty-state__img__icon">
10
+ <div part="icon-wrapper" class="empty-state__img__icon">
11
11
  <nile-icon name="${this.icon}" color="white" size="${"sm"==this.size||"md"==this.size?24:28}"></nile-icon>
12
12
  </div>`:i}
13
13
  </div>`:i}
14
14
 
15
15
  ${"tonal"==this.variant?s`
16
- <div class="empty-state__body--tonal">
16
+ <div part="tonal-body" class="empty-state__body--tonal">
17
17
  <nile-icon name="${this.icon}" size="40"></nile-icon>
18
18
  </div>`:i}
19
19
 
20
20
  ${"flat"==this.variant?s`
21
- <div class="empty-state__body--flat">
21
+ <div part="flat-body" class="empty-state__body--flat">
22
22
  <span class="nile-flat-type-icon">
23
23
  <nile-icon name="${this.icon}" size="${"sm"==this.size||"md"==this.size?24:28}" variant="secondary"></nile-icon>
24
24
  </span>
25
25
  </div>`:i}
26
26
 
27
- <div class="empty__state__text-section">
28
- <div class="empty-state__text">${this.text}</div>
29
- <div class="empty-state__subtext">${this.subText}</div>
27
+ <div part="text-section" class="empty__state__text-section">
28
+ <div part="text" class="empty-state__text">${this.text}</div>
29
+ <div part="subtitle" class="empty-state__subtext">${this.subText}</div>
30
30
  </div>
31
31
  </div>
32
32
 
33
- <div class="empty-state-actions">
33
+ <div part="actions" class="empty-state-actions">
34
34
  <slot></slot>
35
35
  </div>
36
36
  </div>
37
- `}};t([e()],n.prototype,"size",void 0),t([e()],n.prototype,"variant",void 0),t([e()],n.prototype,"icon",void 0),t([e({type:Boolean})],n.prototype,"grayscale",void 0),t([e()],n.prototype,"text",void 0),t([e({attribute:"sub-text"})],n.prototype,"subText",void 0),n=t([a("nile-empty-state")],n);export{n as N};
37
+ `}};t([e()],r.prototype,"size",void 0),t([e()],r.prototype,"variant",void 0),t([e()],r.prototype,"icon",void 0),t([e({type:Boolean})],r.prototype,"grayscale",void 0),t([e()],r.prototype,"text",void 0),t([e({attribute:"sub-text"})],r.prototype,"subText",void 0),r=t([a("nile-empty-state")],r);export{r as N};
@@ -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-empty-state.cjs.js","tslib","lit/decorators.js","lit/directives/class-map.js","./nile-empty-state.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,e,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture002CjsJs){t=_fixture002CjsJs.f;e=_fixture002CjsJs.a;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileEmptyStateCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_litDirectivesClassMapJs){},function(_nileEmptyStateCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileEmptyState",function(){it("renders correctly with default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var i;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(s(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-empty-state></nile-empty-state>"]))));case 2:i=_context2.sent;e(i.size).to.equal("md"),e(i.variant).to.equal("tonal"),e(i.icon).to.equal("error"),e(i.grayscale).to.be["false"],e(i.text).to.equal("Empty State"),e(i.subText).to.equal("No Data");case 4:case"end":return _context2.stop();}},_callee);}))),it("should reflect properties to attributes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var i,a;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:i="action";_context3.next=3;return t(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-empty-state size=\"sm\" variant=\"flat\" icon="," grayscale text=\"Test state text\" sub-text=\"Test sub text\"></nile-empty-state>\n "])),i));case 3:a=_context3.sent;e(a.getAttribute("size")).to.equal("sm"),e(a.getAttribute("variant")).to.equal("flat"),e(a.getAttribute("icon")).to.equal(i),e(a.hasAttribute("grayscale")).to.be["true"],e(a.getAttribute("text")).to.equal("Test state text"),e(a.getAttribute("sub-text")).to.equal("Test sub text");case 5:case"end":return _context3.stop();}},_callee2);}))),it("should render different sizes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var i,_i2,_i,a,_i3;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:i=["sm","md","lg"];_i2=0,_i=i;case 2:if(!(_i2<_i.length)){_context4.next=11;break;}a=_i[_i2];_context4.next=6;return t(s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-empty-state size=\"","\"></nile-empty-state>"])),a));case 6:_i3=_context4.sent.shadowRoot.querySelector(".empty-state");e(_i3.classList.contains("empty-state--".concat(a))).to.be["true"];case 8:_i2++;_context4.next=2;break;case 11:case"end":return _context4.stop();}},_callee3);}))),it("should render different variants correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var i,_i5,_i4,a,_i6;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:i=["flat","content","tonal"];_i5=0,_i4=i;case 2:if(!(_i5<_i4.length)){_context5.next=11;break;}a=_i4[_i5];_context5.next=6;return t(s(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-empty-state variant=\"","\"></nile-empty-state>"])),a));case 6:_i6=_context5.sent.shadowRoot.querySelector(".empty-state__body--".concat(a));e(_i6).to.exist;case 8:_i5++;_context5.next=2;break;case 11:case"end":return _context5.stop();}},_callee4);}))),it("should render text properties correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var i,a,o,n,r;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:i="Custom Text";a="Custom SubText";_context6.next=4;return t(s(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-empty-state text="," sub-text=","></nile-empty-state>\n "])),i,a));case 4:o=_context6.sent;n=o.shadowRoot.querySelector(".empty-state__text");r=o.shadowRoot.querySelector(".empty-state__subtext");e(n.textContent).to.equal(i),e(r.textContent).to.equal(a);case 8:case"end":return _context6.stop();}},_callee5);}))),it("should render slot content",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var i;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return t(s(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-empty-state>\n <div class=\"slot-content\">Slot Content</div>\n </nile-empty-state>\n "]))));case 2:i=_context7.sent.querySelector(".slot-content");e(i).to.exist,e(i.textContent).to.equal("Slot Content");case 4:case"end":return _context7.stop();}},_callee6);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-empty-state.cjs.js","tslib","lit/decorators.js","lit/directives/class-map.js","./nile-empty-state.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,e,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture001CjsJs){t=_fixture001CjsJs.f;e=_fixture001CjsJs.a;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileEmptyStateCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_litDirectivesClassMapJs){},function(_nileEmptyStateCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){describe("NileEmptyState",function(){it("renders correctly with default properties",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var i;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return t(s(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-empty-state></nile-empty-state>"]))));case 2:i=_context2.sent;e(i.size).to.equal("md"),e(i.variant).to.equal("tonal"),e(i.icon).to.equal("error"),e(i.grayscale).to.be["false"],e(i.text).to.equal("Empty State"),e(i.subText).to.equal("No Data");case 4:case"end":return _context2.stop();}},_callee);}))),it("should reflect properties to attributes",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var i,a;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:i="action";_context3.next=3;return t(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <nile-empty-state size=\"sm\" variant=\"flat\" icon="," grayscale text=\"Test state text\" sub-text=\"Test sub text\"></nile-empty-state>\n "])),i));case 3:a=_context3.sent;e(a.getAttribute("size")).to.equal("sm"),e(a.getAttribute("variant")).to.equal("flat"),e(a.getAttribute("icon")).to.equal(i),e(a.hasAttribute("grayscale")).to.be["true"],e(a.getAttribute("text")).to.equal("Test state text"),e(a.getAttribute("sub-text")).to.equal("Test sub text");case 5:case"end":return _context3.stop();}},_callee2);}))),it("should render different sizes correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var i,_i2,_i,a,_i3;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:i=["sm","md","lg"];_i2=0,_i=i;case 2:if(!(_i2<_i.length)){_context4.next=11;break;}a=_i[_i2];_context4.next=6;return t(s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-empty-state size=\"","\"></nile-empty-state>"])),a));case 6:_i3=_context4.sent.shadowRoot.querySelector(".empty-state");e(_i3.classList.contains("empty-state--".concat(a))).to.be["true"];case 8:_i2++;_context4.next=2;break;case 11:case"end":return _context4.stop();}},_callee3);}))),it("should render different variants correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var i,_i5,_i4,a,_i6;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:i=["flat","content","tonal"];_i5=0,_i4=i;case 2:if(!(_i5<_i4.length)){_context5.next=11;break;}a=_i4[_i5];_context5.next=6;return t(s(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-empty-state variant=\"","\"></nile-empty-state>"])),a));case 6:_i6=_context5.sent.shadowRoot.querySelector(".empty-state__body--".concat(a));e(_i6).to.exist;case 8:_i5++;_context5.next=2;break;case 11:case"end":return _context5.stop();}},_callee4);}))),it("should render text properties correctly",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var i,a,o,n,r;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:i="Custom Text";a="Custom SubText";_context6.next=4;return t(s(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n <nile-empty-state text="," sub-text=","></nile-empty-state>\n "])),i,a));case 4:o=_context6.sent;n=o.shadowRoot.querySelector(".empty-state__text");r=o.shadowRoot.querySelector(".empty-state__subtext");e(n.textContent).to.equal(i),e(r.textContent).to.equal(a);case 8:case"end":return _context6.stop();}},_callee5);}))),it("should render slot content",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var i;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return t(s(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <nile-empty-state>\n <div class=\"slot-content\">Slot Content</div>\n </nile-empty-state>\n "]))));case 2:i=_context7.sent.querySelector(".slot-content");e(i).to.exist,e(i.textContent).to.equal("Slot Content");case 4:case"end":return _context7.stop();}},_callee6);})));});}};});
2
2
  //# sourceMappingURL=nile-empty-state.test.cjs.js.map
@@ -1,4 +1,4 @@
1
- import{f as t,a as e}from"../fixture-add72f26.esm.js";import{html as s}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-empty-state.esm.js";import"tslib";import"lit/decorators.js";import"lit/directives/class-map.js";import"./nile-empty-state.css.esm.js";import"../internal/nile-element.esm.js";describe("NileEmptyState",(()=>{it("renders correctly with default properties",(async()=>{const i=await t(s`<nile-empty-state></nile-empty-state>`);e(i.size).to.equal("md"),e(i.variant).to.equal("tonal"),e(i.icon).to.equal("error"),e(i.grayscale).to.be.false,e(i.text).to.equal("Empty State"),e(i.subText).to.equal("No Data")})),it("should reflect properties to attributes",(async()=>{const i="action",a=await t(s`
1
+ import{f as t,a as e}from"../fixture-588a3119.esm.js";import{html as s}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-empty-state.esm.js";import"tslib";import"lit/decorators.js";import"lit/directives/class-map.js";import"./nile-empty-state.css.esm.js";import"../internal/nile-element.esm.js";describe("NileEmptyState",(()=>{it("renders correctly with default properties",(async()=>{const i=await t(s`<nile-empty-state></nile-empty-state>`);e(i.size).to.equal("md"),e(i.variant).to.equal("tonal"),e(i.icon).to.equal("error"),e(i.grayscale).to.be.false,e(i.text).to.equal("Empty State"),e(i.subText).to.equal("No Data")})),it("should reflect properties to attributes",(async()=>{const i="action",a=await t(s`
2
2
  <nile-empty-state size="sm" variant="flat" icon=${i} grayscale text="Test state text" sub-text="Test sub text"></nile-empty-state>
3
3
  `);e(a.getAttribute("size")).to.equal("sm"),e(a.getAttribute("variant")).to.equal("flat"),e(a.getAttribute("icon")).to.equal(i),e(a.hasAttribute("grayscale")).to.be.true,e(a.getAttribute("text")).to.equal("Test state text"),e(a.getAttribute("sub-text")).to.equal("Test sub text")})),it("should render different sizes correctly",(async()=>{const i=["sm","md","lg"];for(const a of i){const i=(await t(s`<nile-empty-state size="${a}"></nile-empty-state>`)).shadowRoot.querySelector(".empty-state");e(i.classList.contains(`empty-state--${a}`)).to.be.true}})),it("should render different variants correctly",(async()=>{const i=["flat","content","tonal"];for(const a of i){const i=(await t(s`<nile-empty-state variant="${a}"></nile-empty-state>`)).shadowRoot.querySelector(`.empty-state__body--${a}`);e(i).to.exist}})),it("should render text properties correctly",(async()=>{const i="Custom Text",a="Custom SubText",o=await t(s`
4
4
  <nile-empty-state text=${i} sub-text=${a}></nile-empty-state>
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-cb376a7f.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-error-message.cjs.js","tslib","lit/decorators.js","./nile-error-message.css.cjs.js"],function(_export,_context){"use strict";var e,r,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture002CjsJs){e=_fixture002CjsJs.f;r=_fixture002CjsJs.a;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileErrorMessageCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileErrorMessageCssCjsJs){}],execute:function execute(){describe("NileErrorMessage",function(){it("should render the error message",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(s(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-error-message errorMessage=\"An error occurred\"></nile-error-message>"]))));case 2:o=_context2.sent.shadowRoot.querySelector(".nile-error-message__error");r(o.textContent).to.equal("An error occurred");case 4:case"end":return _context2.stop();}},_callee);}))),it("should truncate the error response if it is too long",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var o,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:o="a".repeat(150);_context3.next=3;return e(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"","\"></nile-error-message>"])),o));case 3:t=_context3.sent.getTruncatedResponse();r(t).to.equal("".concat(o.substring(0,100),"..."));case 5:case"end":return _context3.stop();}},_callee2);}))),it("should not truncate the error response if it is within the maximum length",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var o,t;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o="Short error message";_context4.next=3;return e(s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"","\"></nile-error-message>"])),o));case 3:t=_context4.sent.getTruncatedResponse();r(t).to.equal(o);case 5:case"end":return _context4.stop();}},_callee3);}))),it("should toggle the expanded state when the button is clicked",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _o$shadowRoot$querySe;var o,t;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return e(s(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context5.sent;t=(_o$shadowRoot$querySe=o.shadowRoot.querySelector(".nile-error-message__more-button"))!==null&&_o$shadowRoot$querySe!==void 0?_o$shadowRoot$querySe:{};t.click(),r(o.isExpanded).to.be["true"],t.click(),r(o.isExpanded).to.be["false"];case 5:case"end":return _context5.stop();}},_callee4);}))),it('should display the "View More" button if there is extended error information',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var o;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return e(s(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context6.sent.shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.exist;case 4:case"end":return _context6.stop();}},_callee5);}))),it('should not display the "View More" button if there is no extended error information',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var o;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return e(s(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\"></nile-error-message>"]))));case 2:o=_context7.sent.shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.not.exist;case 4:case"end":return _context7.stop();}},_callee6);}))),it("should show the extended error information when expanded",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var o,t;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e(s(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context8.sent;o.isExpanded=!0;_context8.next=6;return o.updateComplete;case 6:t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t===null||t===void 0?void 0:t.textContent).to.include("Detailed error information");case 8:case"end":return _context8.stop();}},_callee7);}))),it("should hide the extended error information when collapsed",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var o,t;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e(s(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context9.sent;o.isExpanded=!1;_context9.next=6;return o.updateComplete;case 6:t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t).to.have["class"]("collapsed");case 8:case"end":return _context9.stop();}},_callee8);}))),it("should render icon and error message parts",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var o,t,n;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return e(s(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-error-message errorMessage=\"An error occurred\"></nile-error-message>"]))));case 2:o=_context10.sent;t=o.shadowRoot.querySelector("nile-icon");r(t).to.exist;n=o.shadowRoot.querySelector(".nile-error-message__error");r(n).to.exist;case 7:case"end":return _context10.stop();}},_callee9);})));});}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["../fixture-3330277d.cjs.js","lit/static-html.js","lit/html.js","lit/directive-helpers.js","lit","lit/directives/unsafe-html.js","./nile-error-message.cjs.js","tslib","lit/decorators.js","./nile-error-message.css.cjs.js"],function(_export,_context){"use strict";var e,r,s,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9;function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator["return"]&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},"catch":function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function asyncGeneratorStep(n,t,e,r,o,a,c){try{var i=n[a](c),u=i.value;}catch(n){return void e(n);}i.done?t(u):Promise.resolve(u).then(r,o);}function _asyncToGenerator(n){return function(){var t=this,e=arguments;return new Promise(function(r,o){var a=n.apply(t,e);function _next(n){asyncGeneratorStep(a,r,o,_next,_throw,"next",n);}function _throw(n){asyncGeneratorStep(a,r,o,_next,_throw,"throw",n);}_next(void 0);});};}return{setters:[function(_fixture001CjsJs){e=_fixture001CjsJs.f;r=_fixture001CjsJs.a;},function(_litStaticHtmlJs){s=_litStaticHtmlJs.html;},function(_litHtmlJs){},function(_litDirectiveHelpersJs){},function(_lit){},function(_litDirectivesUnsafeHtmlJs){},function(_nileErrorMessageCjsJs){},function(_tslib){},function(_litDecoratorsJs){},function(_nileErrorMessageCssCjsJs){}],execute:function execute(){describe("NileErrorMessage",function(){it("should render the error message",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var o;return _regeneratorRuntime().wrap(function _callee$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:_context2.next=2;return e(s(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-error-message errorMessage=\"An error occurred\"></nile-error-message>"]))));case 2:o=_context2.sent.shadowRoot.querySelector(".nile-error-message__error");r(o.textContent).to.equal("An error occurred");case 4:case"end":return _context2.stop();}},_callee);}))),it("should truncate the error response if it is too long",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var o,t;return _regeneratorRuntime().wrap(function _callee2$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:o="a".repeat(150);_context3.next=3;return e(s(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"","\"></nile-error-message>"])),o));case 3:t=_context3.sent.getTruncatedResponse();r(t).to.equal("".concat(o.substring(0,100),"..."));case 5:case"end":return _context3.stop();}},_callee2);}))),it("should not truncate the error response if it is within the maximum length",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var o,t;return _regeneratorRuntime().wrap(function _callee3$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:o="Short error message";_context4.next=3;return e(s(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"","\"></nile-error-message>"])),o));case 3:t=_context4.sent.getTruncatedResponse();r(t).to.equal(o);case 5:case"end":return _context4.stop();}},_callee3);}))),it("should toggle the expanded state when the button is clicked",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var _o$shadowRoot$querySe;var o,t;return _regeneratorRuntime().wrap(function _callee4$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_context5.next=2;return e(s(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context5.sent;t=(_o$shadowRoot$querySe=o.shadowRoot.querySelector(".nile-error-message__more-button"))!==null&&_o$shadowRoot$querySe!==void 0?_o$shadowRoot$querySe:{};t.click(),r(o.isExpanded).to.be["true"],t.click(),r(o.isExpanded).to.be["false"];case 5:case"end":return _context5.stop();}},_callee4);}))),it('should display the "View More" button if there is extended error information',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var o;return _regeneratorRuntime().wrap(function _callee5$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.next=2;return e(s(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context6.sent.shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.exist;case 4:case"end":return _context6.stop();}},_callee5);}))),it('should not display the "View More" button if there is no extended error information',/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(){var o;return _regeneratorRuntime().wrap(function _callee6$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:_context7.next=2;return e(s(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\"></nile-error-message>"]))));case 2:o=_context7.sent.shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.not.exist;case 4:case"end":return _context7.stop();}},_callee6);}))),it("should show the extended error information when expanded",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(){var o,t;return _regeneratorRuntime().wrap(function _callee7$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:_context8.next=2;return e(s(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context8.sent;o.isExpanded=!0;_context8.next=6;return o.updateComplete;case 6:t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t===null||t===void 0?void 0:t.textContent).to.include("Detailed error information");case 8:case"end":return _context8.stop();}},_callee7);}))),it("should hide the extended error information when collapsed",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var o,t;return _regeneratorRuntime().wrap(function _callee8$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:_context9.next=2;return e(s(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<nile-error-message errorResponse=\"Short error message\" errorResponseLong=\"Detailed error information\"></nile-error-message>"]))));case 2:o=_context9.sent;o.isExpanded=!1;_context9.next=6;return o.updateComplete;case 6:t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t).to.have["class"]("collapsed");case 8:case"end":return _context9.stop();}},_callee8);}))),it("should render icon and error message parts",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(){var o,t,n;return _regeneratorRuntime().wrap(function _callee9$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:_context10.next=2;return e(s(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-error-message errorMessage=\"An error occurred\"></nile-error-message>"]))));case 2:o=_context10.sent;t=o.shadowRoot.querySelector("nile-icon");r(t).to.exist;n=o.shadowRoot.querySelector(".nile-error-message__error");r(n).to.exist;case 7:case"end":return _context10.stop();}},_callee9);})));});}};});
2
2
  //# sourceMappingURL=nile-error-message.test.cjs.js.map
@@ -1 +1 @@
1
- import{f as e,a as r}from"../fixture-add72f26.esm.js";import{html as s}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-error-message.esm.js";import"tslib";import"lit/decorators.js";import"./nile-error-message.css.esm.js";describe("NileErrorMessage",(()=>{it("should render the error message",(async()=>{const o=(await e(s`<nile-error-message errorMessage="An error occurred"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__error");r(o.textContent).to.equal("An error occurred")})),it("should truncate the error response if it is too long",(async()=>{const o="a".repeat(150),t=(await e(s`<nile-error-message errorResponse="${o}"></nile-error-message>`)).getTruncatedResponse();r(t).to.equal(`${o.substring(0,100)}...`)})),it("should not truncate the error response if it is within the maximum length",(async()=>{const o="Short error message",t=(await e(s`<nile-error-message errorResponse="${o}"></nile-error-message>`)).getTruncatedResponse();r(t).to.equal(o)})),it("should toggle the expanded state when the button is clicked",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`),t=o.shadowRoot.querySelector(".nile-error-message__more-button")??{};t.click(),r(o.isExpanded).to.be.true,t.click(),r(o.isExpanded).to.be.false})),it('should display the "View More" button if there is extended error information',(async()=>{const o=(await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.exist})),it('should not display the "View More" button if there is no extended error information',(async()=>{const o=(await e(s`<nile-error-message errorResponse="Short error message"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.not.exist})),it("should show the extended error information when expanded",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`);o.isExpanded=!0,await o.updateComplete;const t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t?.textContent).to.include("Detailed error information")})),it("should hide the extended error information when collapsed",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`);o.isExpanded=!1,await o.updateComplete;const t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t).to.have.class("collapsed")})),it("should render icon and error message parts",(async()=>{const o=await e(s`<nile-error-message errorMessage="An error occurred"></nile-error-message>`),t=o.shadowRoot.querySelector("nile-icon");r(t).to.exist;const n=o.shadowRoot.querySelector(".nile-error-message__error");r(n).to.exist}))}));
1
+ import{f as e,a as r}from"../fixture-588a3119.esm.js";import{html as s}from"lit/static-html.js";import"lit/html.js";import"lit/directive-helpers.js";import"lit";import"lit/directives/unsafe-html.js";import"./nile-error-message.esm.js";import"tslib";import"lit/decorators.js";import"./nile-error-message.css.esm.js";describe("NileErrorMessage",(()=>{it("should render the error message",(async()=>{const o=(await e(s`<nile-error-message errorMessage="An error occurred"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__error");r(o.textContent).to.equal("An error occurred")})),it("should truncate the error response if it is too long",(async()=>{const o="a".repeat(150),t=(await e(s`<nile-error-message errorResponse="${o}"></nile-error-message>`)).getTruncatedResponse();r(t).to.equal(`${o.substring(0,100)}...`)})),it("should not truncate the error response if it is within the maximum length",(async()=>{const o="Short error message",t=(await e(s`<nile-error-message errorResponse="${o}"></nile-error-message>`)).getTruncatedResponse();r(t).to.equal(o)})),it("should toggle the expanded state when the button is clicked",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`),t=o.shadowRoot.querySelector(".nile-error-message__more-button")??{};t.click(),r(o.isExpanded).to.be.true,t.click(),r(o.isExpanded).to.be.false})),it('should display the "View More" button if there is extended error information',(async()=>{const o=(await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.exist})),it('should not display the "View More" button if there is no extended error information',(async()=>{const o=(await e(s`<nile-error-message errorResponse="Short error message"></nile-error-message>`)).shadowRoot.querySelector(".nile-error-message__more-button");r(o).to.not.exist})),it("should show the extended error information when expanded",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`);o.isExpanded=!0,await o.updateComplete;const t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t?.textContent).to.include("Detailed error information")})),it("should hide the extended error information when collapsed",(async()=>{const o=await e(s`<nile-error-message errorResponse="Short error message" errorResponseLong="Detailed error information"></nile-error-message>`);o.isExpanded=!1,await o.updateComplete;const t=o.shadowRoot.querySelector(".nile-error-message__response-expanded");r(t).to.have.class("collapsed")})),it("should render icon and error message parts",(async()=>{const o=await e(s`<nile-error-message errorMessage="An error occurred"></nile-error-message>`),t=o.shadowRoot.querySelector("nile-icon");r(t).to.exist;const n=o.shadowRoot.querySelector(".nile-error-message__error");r(n).to.exist}))}));
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-error-notification.css.cjs.js"],function(_export,_context){"use strict";var i,r,o,t,e,n,_templateObject,s;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){i=_tslib.__decorate;},function(_lit){r=_lit.LitElement;o=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;e=_litDecoratorsJs.customElement;},function(_nileErrorNotificationCssCjsJs){n=_nileErrorNotificationCssCjsJs.s;}],execute:function execute(){_export("N",s=/*#__PURE__*/function(_r){function s(){var _this;_classCallCheck(this,s);_this=_callSuper(this,s,arguments),_this.errorMessage="",_this.color="";return _this;}_inherits(s,_r);return _createClass(s,[{key:"updated",value:function updated(i){i.has("color")&&this.style.setProperty("--indication-color",this.color);}},{key:"render",value:function render(){return o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"nile-error-notification\">\n <nile-icon\n name=\"info2\"\n size=\"14\"\n class=\"nile-error-notification__icon\"\n part=\"icon\"\n color=\"var(--indication-color)\"\n ></nile-icon>\n ","\n </div>\n "])),this.errorMessage);}}],[{key:"styles",get:function get(){return[n];}}]);}(r));i([t({type:String,reflect:!0})],s.prototype,"errorMessage",void 0),i([t({type:String,reflect:!0})],s.prototype,"color",void 0),_export("N",s=i([e("nile-error-notification")],s));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-error-notification.css.cjs.js"],function(_export,_context){"use strict";var i,r,o,t,e,n,_templateObject,s;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){i=_tslib.__decorate;},function(_lit){r=_lit.LitElement;o=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;e=_litDecoratorsJs.customElement;},function(_nileErrorNotificationCssCjsJs){n=_nileErrorNotificationCssCjsJs.s;}],execute:function execute(){_export("N",s=/*#__PURE__*/function(_r){function s(){var _this;_classCallCheck(this,s);_this=_callSuper(this,s,arguments),_this.errorMessage="",_this.color="";return _this;}_inherits(s,_r);return _createClass(s,[{key:"updated",value:function updated(i){i.has("color")&&this.style.setProperty("--indication-color",this.color);}},{key:"render",value:function render(){return o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"nile-error-notification\" part=\"container\">\n <nile-icon\n name=\"info2\"\n size=\"14\"\n class=\"nile-error-notification__icon\"\n part=\"icon\"\n color=\"var(--indication-color)\"\n ></nile-icon>\n <span part=\"message\">\n ","\n </span>\n </div>\n "])),this.errorMessage);}}],[{key:"styles",get:function get(){return[n];}}]);}(r));i([t({type:String,reflect:!0})],s.prototype,"errorMessage",void 0),i([t({type:String,reflect:!0})],s.prototype,"color",void 0),_export("N",s=i([e("nile-error-notification")],s));}};});
2
2
  //# sourceMappingURL=nile-error-notification.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-error-notification.cjs.js","sources":["../../../src/nile-error-notification/nile-error-notification.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n PropertyValues,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-error-notification.css';\n\n/**\n * Nile icon component.\n *\n * @tag nile-error-notification\n *\n */\n@customElement('nile-error-notification')\nexport class NileErrorNotification extends LitElement {\n /**\n * The styles for ErrorNotification\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n // Represents the error message to be displayed to the user.\n @property({ type: String, reflect: true }) errorMessage: string = '';\n\n @property({ type: String, reflect: true }) color: string = '';\n \n protected updated(_changedProperties: PropertyValues): void {\n if(_changedProperties.has('color')){\n this.style.setProperty('--indication-color',this.color)\n }\n }\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n public render(): TemplateResult {\n return html`\n <div class=\"nile-error-notification\">\n <nile-icon\n name=\"info2\"\n size=\"14\"\n class=\"nile-error-notification__icon\"\n part=\"icon\"\n color=\"var(--indication-color)\"\n ></nile-icon>\n ${this.errorMessage}\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileErrorNotification;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-error-notification': NileErrorNotification;\n }\n}\n"],"names":["NileErrorNotification","s","this","errorMessage","color","_this","_inherits","_r","_createClass","key","value","updated","_changedProperties","has","style","setProperty","render","html","_templateObject","_taggedTemplateLiteral","get","styles","LitElement","__decorate","property","type","String","reflect","prototype","_export","customElement"],"mappings":"ykGAwBaA,4BAAN,SAAAC,EAAA,uEAUuCC,KAAAA,CAAYC,YAAAA,CAAW,EAEvBD,CAAAA,KAAAA,CAAKE,KAAW,CAAA,EAgC7D,QAAAC,KAAA,EAvCQC,SAAA,CAAAL,CAAA,CAAAM,EAAA,SAAAC,YAAA,CAAAP,CAAA,GAAAQ,GAAA,WAAAC,KAAA,CASG,SAAAC,OAAAA,CAAQC,GACbA,CAAmBC,CAAAA,GAAAA,CAAI,UACxBX,IAAKY,CAAAA,KAAAA,CAAMC,YAAY,oBAAqBb,CAAAA,IAAAA,CAAKE,MAEpD,EAUM,GAAAK,GAAA,UAAAC,KAAA,UAAAM,MAAAA,CAAAA,CACL,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,6SASLjB,IAAKC,CAAAA,YAAAA,EAGZ,CAAA,KAAAM,GAAA,UAAAW,GAAA,CApCM,SAAAA,IAAA,CAAWC,CAChB,MAAO,CAACA,CAAAA,CACT,EAOS,MAd+BC,CAAAA,GAUGC,CAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAQC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC3B,CAAA4B,CAAAA,SAAAA,CAAA,cAAA,CAAA,IAAA,EAAA,CAAA,CAE1BL,CAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAQC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA4B3B,CAAA4B,CAAAA,SAAAA,CAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CAAAC,OAAA,KAZpD7B,CAAqBuB,CAAAA,CAAAA,CAAA,CADjCO,CAAAA,CAAc,4BACF9B"}
1
+ {"version":3,"file":"nile-error-notification.cjs.js","sources":["../../../src/nile-error-notification/nile-error-notification.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n PropertyValues,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-error-notification.css';\n\n/**\n * Nile icon component.\n *\n * @tag nile-error-notification\n *\n */\n@customElement('nile-error-notification')\nexport class NileErrorNotification extends LitElement {\n /**\n * The styles for ErrorNotification\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n // Represents the error message to be displayed to the user.\n @property({ type: String, reflect: true }) errorMessage: string = '';\n\n @property({ type: String, reflect: true }) color: string = '';\n protected updated(_changedProperties: PropertyValues): void {\n if(_changedProperties.has('color')){\n this.style.setProperty('--indication-color',this.color)\n }\n }\n\n /* #endregion */\n\n /* #region Methods */\n\n /**\n * Render method\n * @slot This is a slot test\n */\n public render(): TemplateResult {\n return html`\n <div class=\"nile-error-notification\" part=\"container\">\n <nile-icon\n name=\"info2\"\n size=\"14\"\n class=\"nile-error-notification__icon\"\n part=\"icon\"\n color=\"var(--indication-color)\"\n ></nile-icon>\n <span part=\"message\">\n ${this.errorMessage}\n </span>\n </div>\n `;\n }\n\n /* #endregion */\n}\n\nexport default NileErrorNotification;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-error-notification': NileErrorNotification;\n }\n}\n"],"names":["NileErrorNotification","s","this","errorMessage","color","_this","_inherits","_r","_createClass","key","value","updated","_changedProperties","has","style","setProperty","render","html","_templateObject","_taggedTemplateLiteral","get","styles","LitElement","__decorate","property","type","String","reflect","prototype","_export","customElement"],"mappings":"ykGAwBaA,4BAAN,SAAAC,EAAA,uEAUuCC,KAAAA,CAAYC,YAAAA,CAAW,EAEvBD,CAAAA,KAAAA,CAAKE,KAAW,CAAA,EAiC7D,QAAAC,KAAA,EAxCQC,SAAA,CAAAL,CAAA,CAAAM,EAAA,SAAAC,YAAA,CAAAP,CAAA,GAAAQ,GAAA,WAAAC,KAAA,CAQG,SAAAC,OAAAA,CAAQC,GACbA,CAAmBC,CAAAA,GAAAA,CAAI,UACxBX,IAAKY,CAAAA,KAAAA,CAAMC,YAAY,oBAAqBb,CAAAA,IAAAA,CAAKE,MAEpD,EAUM,GAAAK,GAAA,UAAAC,KAAA,UAAAM,MAAAA,CAAAA,CACL,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,oXAUHjB,IAAKC,CAAAA,YAAAA,EAId,CAAA,KAAAM,GAAA,UAAAW,GAAA,CArCM,SAAAA,IAAA,CAAWC,CAChB,MAAO,CAACA,CAAAA,CACT,EAMS,MAb+BC,CAAAA,GAUGC,CAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAQC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAmC3B,CAAA4B,CAAAA,SAAAA,CAAA,cAAA,CAAA,IAAA,EAAA,CAAA,CAE1BL,CAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAQC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA4B3B,CAAA4B,CAAAA,SAAAA,CAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CAAAC,OAAA,KAZpD7B,CAAqBuB,CAAAA,CAAAA,CAAA,CADjCO,CAAAA,CAAc,4BACF9B"}
@@ -1,5 +1,5 @@
1
1
  import{__decorate as i}from"tslib";import{LitElement as r,html as o}from"lit";import{property as t,customElement as e}from"lit/decorators.js";import{s as n}from"./nile-error-notification.css.esm.js";let s=class extends r{constructor(){super(...arguments),this.errorMessage="",this.color=""}static get styles(){return[n]}updated(i){i.has("color")&&this.style.setProperty("--indication-color",this.color)}render(){return o`
2
- <div class="nile-error-notification">
2
+ <div class="nile-error-notification" part="container">
3
3
  <nile-icon
4
4
  name="info2"
5
5
  size="14"
@@ -7,6 +7,8 @@ import{__decorate as i}from"tslib";import{LitElement as r,html as o}from"lit";im
7
7
  part="icon"
8
8
  color="var(--indication-color)"
9
9
  ></nile-icon>
10
- ${this.errorMessage}
10
+ <span part="message">
11
+ ${this.errorMessage}
12
+ </span>
11
13
  </div>
12
14
  `}};i([t({type:String,reflect:!0})],s.prototype,"errorMessage",void 0),i([t({type:String,reflect:!0})],s.prototype,"color",void 0),s=i([e("nile-error-notification")],s);export{s as N};