@aquera/nile-elements 1.5.2 → 1.5.4

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 (619) hide show
  1. package/README.md +9 -0
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/dist/index.js +240 -196
  5. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  6. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  7. package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js +1 -1
  8. package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js.map +1 -1
  9. package/dist/nile-auto-complete/nile-auto-complete.css.esm.js +1 -1
  10. package/dist/nile-auto-complete/nile-auto-complete.esm.js +1 -1
  11. package/dist/nile-badge/index.cjs.js +1 -1
  12. package/dist/nile-badge/index.esm.js +1 -1
  13. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  14. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  15. package/dist/nile-badge/nile-badge.esm.js +1 -1
  16. package/dist/nile-button/index.cjs.js +1 -1
  17. package/dist/nile-button/index.esm.js +1 -1
  18. package/dist/nile-button/nile-button.cjs.js +1 -1
  19. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  20. package/dist/nile-button/nile-button.esm.js +1 -1
  21. package/dist/nile-carousel/index.cjs.js +1 -1
  22. package/dist/nile-carousel/index.esm.js +1 -1
  23. package/dist/nile-carousel/nile-carousel.cjs.js +1 -1
  24. package/dist/nile-carousel/nile-carousel.cjs.js.map +1 -1
  25. package/dist/nile-carousel/nile-carousel.esm.js +11 -11
  26. package/dist/nile-dialog/index.cjs.js +1 -1
  27. package/dist/nile-dialog/index.esm.js +1 -1
  28. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  29. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  30. package/dist/nile-dialog/nile-dialog.esm.js +1 -1
  31. package/dist/nile-drawer/index.cjs.js +1 -1
  32. package/dist/nile-drawer/index.esm.js +1 -1
  33. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  34. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  35. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  36. package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
  37. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
  38. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +1 -1
  39. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -1
  40. package/dist/nile-file-preview/nile-file-preview.css.esm.js +2 -2
  41. package/dist/nile-file-preview/nile-file-preview.esm.js +1 -1
  42. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +1 -1
  43. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -1
  44. package/dist/nile-file-preview/nile-file-preview.template.esm.js +55 -25
  45. package/dist/nile-file-preview/utils/index.cjs.js +1 -1
  46. package/dist/nile-file-preview/utils/index.esm.js +1 -1
  47. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +1 -1
  48. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +1 -1
  49. package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +1 -1
  50. package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
  51. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
  52. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +1 -1
  53. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -1
  54. package/dist/nile-file-upload/nile-file-upload.css.esm.js +15 -5
  55. package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
  56. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +2 -2
  57. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -1
  58. package/dist/nile-file-upload/nile-file-upload.template.esm.js +36 -32
  59. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +1 -1
  60. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -1
  61. package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -1
  62. package/dist/nile-file-upload/types/index.cjs.js +1 -1
  63. package/dist/nile-file-upload/types/index.esm.js +1 -1
  64. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +1 -1
  65. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -1
  66. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -1
  67. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +4 -2
  68. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -1
  69. package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -1
  70. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js +1 -1
  71. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -1
  72. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.esm.js +3 -3
  73. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +1 -1
  74. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +1 -1
  75. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.esm.js +1 -1
  76. package/dist/nile-grid/nile-grid.cjs.js +1 -1
  77. package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
  78. package/dist/nile-grid/nile-grid.esm.js +2 -2
  79. package/dist/nile-grid/nile-grid.layout.cjs.js +1 -1
  80. package/dist/nile-grid/nile-grid.layout.esm.js +1 -1
  81. package/dist/nile-grid/nile-grid.resize.cjs.js +1 -1
  82. package/dist/nile-grid/nile-grid.resize.esm.js +1 -1
  83. package/dist/nile-grid/nile-grid.utils.cjs.js +1 -1
  84. package/dist/nile-grid/nile-grid.utils.esm.js +1 -1
  85. package/dist/nile-grid/nile-grid.width.cjs.js +1 -1
  86. package/dist/nile-grid/nile-grid.width.cjs.js.map +1 -1
  87. package/dist/nile-grid/nile-grid.width.esm.js +1 -1
  88. package/dist/nile-icon/icons/svg/delete_history.cjs.js +2 -0
  89. package/dist/nile-icon/icons/svg/delete_history.cjs.js.map +1 -0
  90. package/dist/nile-icon/icons/svg/delete_history.esm.js +1 -0
  91. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  92. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  93. package/dist/nile-icon/index.cjs.js +1 -1
  94. package/dist/nile-icon/index.cjs.js.map +1 -1
  95. package/dist/nile-icon/index.esm.js +1 -1
  96. package/dist/nile-icon-button/index.cjs.js +1 -1
  97. package/dist/nile-icon-button/index.esm.js +1 -1
  98. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  99. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  100. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  101. package/dist/nile-input/index.cjs.js +1 -1
  102. package/dist/nile-input/index.esm.js +1 -1
  103. package/dist/nile-input/nile-input.cjs.js +1 -1
  104. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  105. package/dist/nile-input/nile-input.esm.js +2 -2
  106. package/dist/nile-menu-item/index.cjs.js +1 -1
  107. package/dist/nile-menu-item/index.esm.js +1 -1
  108. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  109. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  110. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  111. package/dist/nile-option/index.cjs.js +1 -1
  112. package/dist/nile-option/index.esm.js +1 -1
  113. package/dist/nile-option/nile-option.cjs.js +1 -1
  114. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  115. package/dist/nile-option/nile-option.esm.js +1 -1
  116. package/dist/nile-popover/index.cjs.js +1 -1
  117. package/dist/nile-popover/index.esm.js +1 -1
  118. package/dist/nile-popover/nile-popover.cjs.js +4 -4
  119. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  120. package/dist/nile-popover/nile-popover.esm.js +11 -6
  121. package/dist/nile-select/index.cjs.js +1 -1
  122. package/dist/nile-select/index.esm.js +1 -1
  123. package/dist/nile-select/nile-select.cjs.js +1 -1
  124. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  125. package/dist/nile-select/nile-select.esm.js +1 -1
  126. package/dist/nile-side-bar-action-menu-item/index.cjs.js +1 -1
  127. package/dist/nile-side-bar-action-menu-item/index.esm.js +1 -1
  128. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js +1 -1
  129. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js.map +1 -1
  130. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.esm.js +1 -1
  131. package/dist/nile-tab/index.cjs.js +1 -1
  132. package/dist/nile-tab/index.esm.js +1 -1
  133. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  134. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  135. package/dist/nile-tab/nile-tab.esm.js +1 -1
  136. package/dist/nile-tab-group/index.cjs.js +1 -1
  137. package/dist/nile-tab-group/index.esm.js +1 -1
  138. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  139. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  140. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  141. package/dist/nile-tag/index.cjs.js +1 -1
  142. package/dist/nile-tag/index.esm.js +1 -1
  143. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  144. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  145. package/dist/nile-tag/nile-tag.esm.js +1 -1
  146. package/dist/nile-toast/index.cjs.js +1 -1
  147. package/dist/nile-toast/index.esm.js +1 -1
  148. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  149. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  150. package/dist/nile-toast/nile-toast.esm.js +1 -1
  151. package/dist/nile-tree/index.cjs.js +1 -1
  152. package/dist/nile-tree/index.esm.js +1 -1
  153. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  154. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  155. package/dist/nile-tree/nile-tree.esm.js +1 -1
  156. package/dist/nile-tree-item/index.cjs.js +1 -1
  157. package/dist/nile-tree-item/index.esm.js +1 -1
  158. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  159. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  160. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  161. package/dist/nile-virtual-select/index.cjs.js +1 -1
  162. package/dist/nile-virtual-select/index.esm.js +1 -1
  163. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
  164. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  165. package/dist/src/nile-accordion/nile-accordian.test.js +101 -99
  166. package/dist/src/nile-accordion/nile-accordian.test.js.map +1 -1
  167. package/dist/src/nile-auto-complete/nile-auto-complete.css.js +1 -1
  168. package/dist/src/nile-auto-complete/nile-auto-complete.css.js.map +1 -1
  169. package/dist/src/nile-auto-complete/nile-auto-complete.js +1 -1
  170. package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
  171. package/dist/src/nile-auto-complete/nile-auto-complete.test.js +104 -112
  172. package/dist/src/nile-auto-complete/nile-auto-complete.test.js.map +1 -1
  173. package/dist/src/nile-avatar/nile-avatar.test.d.ts +0 -1
  174. package/dist/src/nile-avatar/nile-avatar.test.js +103 -87
  175. package/dist/src/nile-avatar/nile-avatar.test.js.map +1 -1
  176. package/dist/src/nile-badge/nile-badge.test.js +554 -35
  177. package/dist/src/nile-badge/nile-badge.test.js.map +1 -1
  178. package/dist/src/nile-breadcrumb/nile-breadcrumb.test.d.ts +2 -0
  179. package/dist/src/nile-breadcrumb/nile-breadcrumb.test.js +106 -0
  180. package/dist/src/nile-breadcrumb/nile-breadcrumb.test.js.map +1 -0
  181. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.d.ts +1 -0
  182. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.js +108 -0
  183. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.js.map +1 -0
  184. package/dist/src/nile-button/nile-button.test.js +499 -39
  185. package/dist/src/nile-button/nile-button.test.js.map +1 -1
  186. package/dist/src/nile-button-filter/nile-button-filter.test.d.ts +1 -0
  187. package/dist/src/nile-button-filter/nile-button-filter.test.js +108 -0
  188. package/dist/src/nile-button-filter/nile-button-filter.test.js.map +1 -0
  189. package/dist/src/nile-button-toggle/nile-button-toggle.test.d.ts +1 -0
  190. package/dist/src/nile-button-toggle/nile-button-toggle.test.js +108 -0
  191. package/dist/src/nile-button-toggle/nile-button-toggle.test.js.map +1 -0
  192. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.d.ts +1 -1
  193. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js +105 -104
  194. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js.map +1 -1
  195. package/dist/src/nile-calendar/nile-calendar.test.d.ts +0 -6
  196. package/dist/src/nile-calendar/nile-calendar.test.js +103 -318
  197. package/dist/src/nile-calendar/nile-calendar.test.js.map +1 -1
  198. package/dist/src/nile-card/nile-card.test.js +102 -66
  199. package/dist/src/nile-card/nile-card.test.js.map +1 -1
  200. package/dist/src/nile-checkbox/nile-checkbox.test.js +547 -108
  201. package/dist/src/nile-checkbox/nile-checkbox.test.js.map +1 -1
  202. package/dist/src/nile-chip/nile-chip.test.d.ts +0 -2
  203. package/dist/src/nile-chip/nile-chip.test.js +101 -102
  204. package/dist/src/nile-chip/nile-chip.test.js.map +1 -1
  205. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.d.ts +1 -0
  206. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.js +108 -0
  207. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.js.map +1 -0
  208. package/dist/src/nile-date-picker/nile-date-picker.test.d.ts +1 -0
  209. package/dist/src/nile-date-picker/nile-date-picker.test.js +108 -0
  210. package/dist/src/nile-date-picker/nile-date-picker.test.js.map +1 -0
  211. package/dist/src/nile-dialog/nile-dialog.test.d.ts +0 -1
  212. package/dist/src/nile-dialog/nile-dialog.test.js +104 -126
  213. package/dist/src/nile-dialog/nile-dialog.test.js.map +1 -1
  214. package/dist/src/nile-divider/nile-divider.test.d.ts +1 -0
  215. package/dist/src/nile-divider/nile-divider.test.js +560 -0
  216. package/dist/src/nile-divider/nile-divider.test.js.map +1 -0
  217. package/dist/src/nile-drawer/nile-drawer.test.js +106 -86
  218. package/dist/src/nile-drawer/nile-drawer.test.js.map +1 -1
  219. package/dist/src/nile-dropdown/nile-dropdown.test.js +104 -148
  220. package/dist/src/nile-dropdown/nile-dropdown.test.js.map +1 -1
  221. package/dist/src/nile-empty-state/nile-empty-state.test.js +107 -59
  222. package/dist/src/nile-empty-state/nile-empty-state.test.js.map +1 -1
  223. package/dist/src/nile-error-message/nile-error-message.test.js +105 -55
  224. package/dist/src/nile-error-message/nile-error-message.test.js.map +1 -1
  225. package/dist/src/nile-error-notification/nile-error-notification.test.d.ts +1 -0
  226. package/dist/src/nile-error-notification/nile-error-notification.test.js +108 -0
  227. package/dist/src/nile-error-notification/nile-error-notification.test.js.map +1 -0
  228. package/dist/src/nile-file-preview/nile-file-preview.css.js +2 -2
  229. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
  230. package/dist/src/nile-file-preview/nile-file-preview.d.ts +1 -4
  231. package/dist/src/nile-file-preview/nile-file-preview.js +21 -47
  232. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
  233. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +6 -6
  234. package/dist/src/nile-file-preview/nile-file-preview.template.js +53 -23
  235. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
  236. package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +0 -6
  237. package/dist/src/nile-file-preview/nile-file-preview.test.js +106 -28
  238. package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -1
  239. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +3 -2
  240. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +32 -7
  241. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
  242. package/dist/src/nile-file-upload/nile-file-upload.css.js +15 -5
  243. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
  244. package/dist/src/nile-file-upload/nile-file-upload.d.ts +4 -1
  245. package/dist/src/nile-file-upload/nile-file-upload.js +13 -1
  246. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
  247. package/dist/src/nile-file-upload/nile-file-upload.template.js +19 -15
  248. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
  249. package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +0 -6
  250. package/dist/src/nile-file-upload/nile-file-upload.test.js +106 -28
  251. package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -1
  252. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +17 -3
  253. package/dist/src/nile-file-upload/types/file-upload.enums.js +17 -1
  254. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
  255. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +2 -0
  256. package/dist/src/nile-file-upload/utils/drag-drop.util.js +14 -8
  257. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
  258. package/dist/src/nile-file-upload/utils/file-validation.util.js +89 -10
  259. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
  260. package/dist/src/nile-filter-chip/nile-filter-chip.test.js +102 -77
  261. package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -1
  262. package/dist/src/nile-form-error-message/nile-form-error-message.test.d.ts +1 -0
  263. package/dist/src/nile-form-error-message/nile-form-error-message.test.js +108 -0
  264. package/dist/src/nile-form-error-message/nile-form-error-message.test.js.map +1 -0
  265. package/dist/src/nile-form-group/nile-form-group.test.js +104 -51
  266. package/dist/src/nile-form-group/nile-form-group.test.js.map +1 -1
  267. package/dist/src/nile-form-help-text/nile-form-help-text.test.js +104 -84
  268. package/dist/src/nile-form-help-text/nile-form-help-text.test.js.map +1 -1
  269. package/dist/src/nile-format-date/nile-format-date.test.d.ts +1 -0
  270. package/dist/src/nile-format-date/nile-format-date.test.js +108 -0
  271. package/dist/src/nile-format-date/nile-format-date.test.js.map +1 -0
  272. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js +6 -5
  273. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js.map +1 -1
  274. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.d.ts +14 -0
  275. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js +24 -0
  276. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js.map +1 -1
  277. package/dist/src/nile-grid/nile-grid.d.ts +1 -0
  278. package/dist/src/nile-grid/nile-grid.js +5 -1
  279. package/dist/src/nile-grid/nile-grid.js.map +1 -1
  280. package/dist/src/nile-grid/nile-grid.utils.d.ts +6 -0
  281. package/dist/src/nile-grid/nile-grid.utils.js +13 -0
  282. package/dist/src/nile-grid/nile-grid.utils.js.map +1 -1
  283. package/dist/src/nile-heading/nile-heading.test.d.ts +1 -0
  284. package/dist/src/nile-heading/nile-heading.test.js +108 -0
  285. package/dist/src/nile-heading/nile-heading.test.js.map +1 -0
  286. package/dist/src/nile-hero/nile-hero.test.js +101 -38
  287. package/dist/src/nile-hero/nile-hero.test.js.map +1 -1
  288. package/dist/src/nile-icon/icons/svg/delete_history.d.ts +5 -0
  289. package/dist/src/nile-icon/icons/svg/delete_history.js +5 -0
  290. package/dist/src/nile-icon/icons/svg/delete_history.js.map +1 -0
  291. package/dist/src/nile-icon/icons/svg/index.d.ts +1 -0
  292. package/dist/src/nile-icon/icons/svg/index.js +1 -0
  293. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  294. package/dist/src/nile-icon/nile-icon.test.js +103 -40
  295. package/dist/src/nile-icon/nile-icon.test.js.map +1 -1
  296. package/dist/src/nile-icon-button/nile-icon-button.test.d.ts +1 -0
  297. package/dist/src/nile-icon-button/nile-icon-button.test.js +568 -0
  298. package/dist/src/nile-icon-button/nile-icon-button.test.js.map +1 -0
  299. package/dist/src/nile-inline-edit/nile-inline-edit.test.d.ts +1 -0
  300. package/dist/src/nile-inline-edit/nile-inline-edit.test.js +108 -0
  301. package/dist/src/nile-inline-edit/nile-inline-edit.test.js.map +1 -0
  302. package/dist/src/nile-input/nile-input.js +1 -1
  303. package/dist/src/nile-input/nile-input.js.map +1 -1
  304. package/dist/src/nile-input/nile-input.test.js +109 -139
  305. package/dist/src/nile-input/nile-input.test.js.map +1 -1
  306. package/dist/src/nile-link/nile-link.test.js +103 -67
  307. package/dist/src/nile-link/nile-link.test.js.map +1 -1
  308. package/dist/src/nile-list/nile-list.test.d.ts +1 -0
  309. package/dist/src/nile-list/nile-list.test.js +108 -0
  310. package/dist/src/nile-list/nile-list.test.js.map +1 -0
  311. package/dist/src/nile-list-item/nile-list-item.test.d.ts +1 -0
  312. package/dist/src/nile-list-item/nile-list-item.test.js +108 -0
  313. package/dist/src/nile-list-item/nile-list-item.test.js.map +1 -0
  314. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.d.ts +2 -0
  315. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.js +109 -0
  316. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.js.map +1 -0
  317. package/dist/src/nile-loader/nile-loader.test.js +107 -40
  318. package/dist/src/nile-loader/nile-loader.test.js.map +1 -1
  319. package/dist/src/nile-menu/nile-menu.test.d.ts +1 -0
  320. package/dist/src/nile-menu/nile-menu.test.js +113 -0
  321. package/dist/src/nile-menu/nile-menu.test.js.map +1 -0
  322. package/dist/src/nile-menu-item/nile-menu-item.test.d.ts +1 -0
  323. package/dist/src/nile-menu-item/nile-menu-item.test.js +113 -0
  324. package/dist/src/nile-menu-item/nile-menu-item.test.js.map +1 -0
  325. package/dist/src/nile-option/nile-option.test.d.ts +1 -0
  326. package/dist/src/nile-option/nile-option.test.js +108 -0
  327. package/dist/src/nile-option/nile-option.test.js.map +1 -0
  328. package/dist/src/nile-option-group/nile-option-group.test.d.ts +1 -0
  329. package/dist/src/nile-option-group/nile-option-group.test.js +108 -0
  330. package/dist/src/nile-option-group/nile-option-group.test.js.map +1 -0
  331. package/dist/src/nile-page-header/nile-page-header.test.d.ts +1 -0
  332. package/dist/src/nile-page-header/nile-page-header.test.js +108 -0
  333. package/dist/src/nile-page-header/nile-page-header.test.js.map +1 -0
  334. package/dist/src/nile-pagination/nile-pagination.test.d.ts +1 -0
  335. package/dist/src/nile-pagination/nile-pagination.test.js +108 -0
  336. package/dist/src/nile-pagination/nile-pagination.test.js.map +1 -0
  337. package/dist/src/nile-popover/nile-popover.test.js +103 -68
  338. package/dist/src/nile-popover/nile-popover.test.js.map +1 -1
  339. package/dist/src/nile-popup/nile-popup.test.js +104 -65
  340. package/dist/src/nile-popup/nile-popup.test.js.map +1 -1
  341. package/dist/src/nile-progress-bar/nile-progress-bar.test.js +104 -44
  342. package/dist/src/nile-progress-bar/nile-progress-bar.test.js.map +1 -1
  343. package/dist/src/nile-radio/nile-radio.test.js +103 -66
  344. package/dist/src/nile-radio/nile-radio.test.js.map +1 -1
  345. package/dist/src/nile-radio-group/nile-radio-group.test.d.ts +0 -1
  346. package/dist/src/nile-radio-group/nile-radio-group.test.js +105 -171
  347. package/dist/src/nile-radio-group/nile-radio-group.test.js.map +1 -1
  348. package/dist/src/nile-section-message/nile-section-message.test.d.ts +1 -0
  349. package/dist/src/nile-section-message/nile-section-message.test.js +108 -0
  350. package/dist/src/nile-section-message/nile-section-message.test.js.map +1 -0
  351. package/dist/src/nile-select/nile-select.test.d.ts +0 -5
  352. package/dist/src/nile-select/nile-select.test.js +105 -244
  353. package/dist/src/nile-select/nile-select.test.js.map +1 -1
  354. package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.d.ts +1 -0
  355. package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.js +108 -0
  356. package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.js.map +1 -0
  357. package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js +104 -50
  358. package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js.map +1 -1
  359. package/dist/src/nile-slider/nile-slider.test.d.ts +1 -0
  360. package/dist/src/nile-slider/nile-slider.test.js +108 -0
  361. package/dist/src/nile-slider/nile-slider.test.js.map +1 -0
  362. package/dist/src/nile-spinner/nile-spinner.test.d.ts +1 -0
  363. package/dist/src/nile-spinner/nile-spinner.test.js +569 -0
  364. package/dist/src/nile-spinner/nile-spinner.test.js.map +1 -0
  365. package/dist/src/nile-split-panel/nile-split-panel.test.d.ts +1 -0
  366. package/dist/src/nile-split-panel/nile-split-panel.test.js +108 -0
  367. package/dist/src/nile-split-panel/nile-split-panel.test.js.map +1 -0
  368. package/dist/src/nile-stepper/nile-stepper.test.d.ts +2 -0
  369. package/dist/src/nile-stepper/nile-stepper.test.js +109 -0
  370. package/dist/src/nile-stepper/nile-stepper.test.js.map +1 -0
  371. package/dist/src/nile-stepper-item/nile-stepper-item.test.d.ts +1 -0
  372. package/dist/src/nile-stepper-item/nile-stepper-item.test.js +108 -0
  373. package/dist/src/nile-stepper-item/nile-stepper-item.test.js.map +1 -0
  374. package/dist/src/nile-tab/nile-tab.test.d.ts +1 -0
  375. package/dist/src/nile-tab/nile-tab.test.js +108 -0
  376. package/dist/src/nile-tab/nile-tab.test.js.map +1 -0
  377. package/dist/src/nile-tab-group/nile-tab-group.test.js +105 -172
  378. package/dist/src/nile-tab-group/nile-tab-group.test.js.map +1 -1
  379. package/dist/src/nile-tab-panel/nile-tab-panel.test.d.ts +1 -0
  380. package/dist/src/nile-tab-panel/nile-tab-panel.test.js +108 -0
  381. package/dist/src/nile-tab-panel/nile-tab-panel.test.js.map +1 -0
  382. package/dist/src/nile-tag/nile-tag.test.d.ts +1 -0
  383. package/dist/src/nile-tag/nile-tag.test.js +574 -0
  384. package/dist/src/nile-tag/nile-tag.test.js.map +1 -0
  385. package/dist/src/nile-textarea/nile-textarea.test.d.ts +1 -1
  386. package/dist/src/nile-textarea/nile-textarea.test.js +105 -84
  387. package/dist/src/nile-textarea/nile-textarea.test.js.map +1 -1
  388. package/dist/src/nile-title/nile-title.test.d.ts +1 -0
  389. package/dist/src/nile-title/nile-title.test.js +108 -0
  390. package/dist/src/nile-title/nile-title.test.js.map +1 -0
  391. package/dist/src/nile-toast/nile-toast.test.d.ts +1 -0
  392. package/dist/src/nile-toast/nile-toast.test.js +526 -0
  393. package/dist/src/nile-toast/nile-toast.test.js.map +1 -0
  394. package/dist/src/nile-toolbar/nile-toolbar.test.d.ts +1 -0
  395. package/dist/src/nile-toolbar/nile-toolbar.test.js +108 -0
  396. package/dist/src/nile-toolbar/nile-toolbar.test.js.map +1 -0
  397. package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +1 -0
  398. package/dist/src/nile-tooltip/nile-tooltip.test.js +546 -0
  399. package/dist/src/nile-tooltip/nile-tooltip.test.js.map +1 -0
  400. package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +1 -7
  401. package/dist/src/nile-virtual-select/nile-virtual-select.test.js +105 -628
  402. package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -1
  403. package/dist/src/version.js +2 -2
  404. package/dist/src/version.js.map +1 -1
  405. package/dist/tsconfig.tsbuildinfo +1 -1
  406. package/package.json +1 -1
  407. package/rollup.config.js +7 -1
  408. package/src/nile-accordion/nile-accordian.test.ts +102 -116
  409. package/src/nile-auto-complete/nile-auto-complete.css.ts +1 -1
  410. package/src/nile-auto-complete/nile-auto-complete.test.ts +102 -145
  411. package/src/nile-auto-complete/nile-auto-complete.ts +1 -1
  412. package/src/nile-avatar/nile-avatar.test.ts +102 -112
  413. package/src/nile-badge/nile-badge.test.ts +642 -30
  414. package/src/nile-breadcrumb/nile-breadcrumb.test.ts +107 -0
  415. package/src/nile-breadcrumb-item/nile-breadcrumb-item.test.ts +106 -0
  416. package/src/nile-button/nile-button.test.ts +593 -61
  417. package/src/nile-button-filter/nile-button-filter.test.ts +106 -0
  418. package/src/nile-button-toggle/nile-button-toggle.test.ts +106 -0
  419. package/src/nile-button-toggle-group/nile-button-toggle-group.test.ts +104 -126
  420. package/src/nile-calendar/nile-calendar.test.ts +102 -406
  421. package/src/nile-card/nile-card.test.ts +103 -71
  422. package/src/nile-checkbox/nile-checkbox.test.ts +614 -108
  423. package/src/nile-chip/nile-chip.test.ts +102 -136
  424. package/src/nile-circular-progressbar/nile-circular-progressbar.test.ts +106 -0
  425. package/src/nile-date-picker/nile-date-picker.test.ts +106 -0
  426. package/src/nile-dialog/nile-dialog.test.ts +102 -164
  427. package/src/nile-divider/nile-divider.test.ts +659 -0
  428. package/src/nile-drawer/nile-drawer.test.ts +105 -105
  429. package/src/nile-dropdown/nile-dropdown.test.ts +102 -190
  430. package/src/nile-empty-state/nile-empty-state.test.ts +104 -67
  431. package/src/nile-error-message/nile-error-message.test.ts +104 -67
  432. package/src/nile-error-notification/nile-error-notification.test.ts +106 -0
  433. package/src/nile-file-preview/nile-file-preview.css.ts +2 -2
  434. package/src/nile-file-preview/nile-file-preview.template.ts +59 -23
  435. package/src/nile-file-preview/nile-file-preview.test.ts +105 -37
  436. package/src/nile-file-preview/nile-file-preview.ts +23 -56
  437. package/src/nile-file-preview/utils/nile-file-preview.util.ts +37 -8
  438. package/src/nile-file-upload/nile-file-upload.css.ts +15 -5
  439. package/src/nile-file-upload/nile-file-upload.template.ts +22 -18
  440. package/src/nile-file-upload/nile-file-upload.test.ts +105 -37
  441. package/src/nile-file-upload/nile-file-upload.ts +11 -3
  442. package/src/nile-file-upload/types/file-upload.enums.ts +20 -4
  443. package/src/nile-file-upload/utils/drag-drop.util.ts +20 -11
  444. package/src/nile-file-upload/utils/file-validation.util.ts +104 -22
  445. package/src/nile-filter-chip/nile-filter-chip.test.ts +103 -89
  446. package/src/nile-form-error-message/nile-form-error-message.test.ts +106 -0
  447. package/src/nile-form-group/nile-form-group.test.ts +103 -60
  448. package/src/nile-form-help-text/nile-form-help-text.test.ts +102 -106
  449. package/src/nile-format-date/nile-format-date.test.ts +106 -0
  450. package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.ts +7 -5
  451. package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.ts +28 -0
  452. package/src/nile-grid/nile-grid.ts +6 -1
  453. package/src/nile-grid/nile-grid.utils.ts +18 -1
  454. package/src/nile-heading/nile-heading.test.ts +106 -0
  455. package/src/nile-hero/nile-hero.test.ts +103 -42
  456. package/src/nile-icon/icons/svg/delete_history.ts +5 -0
  457. package/src/nile-icon/icons/svg/index.ts +1 -0
  458. package/src/nile-icon/nile-icon.test.ts +103 -50
  459. package/src/nile-icon-button/nile-icon-button.test.ts +667 -0
  460. package/src/nile-inline-edit/nile-inline-edit.test.ts +106 -0
  461. package/src/nile-input/nile-input.test.ts +105 -164
  462. package/src/nile-input/nile-input.ts +1 -1
  463. package/src/nile-link/nile-link.test.ts +104 -81
  464. package/src/nile-list/nile-list.test.ts +106 -0
  465. package/src/nile-list-item/nile-list-item.test.ts +106 -0
  466. package/src/nile-lite-tooltip/nile-lite-tooltip.test.ts +107 -0
  467. package/src/nile-loader/nile-loader.test.ts +103 -48
  468. package/src/nile-menu/nile-menu.test.ts +106 -0
  469. package/src/nile-menu-item/nile-menu-item.test.ts +106 -0
  470. package/src/nile-option/nile-option.test.ts +106 -0
  471. package/src/nile-option-group/nile-option-group.test.ts +106 -0
  472. package/src/nile-page-header/nile-page-header.test.ts +106 -0
  473. package/src/nile-pagination/nile-pagination.test.ts +106 -0
  474. package/src/nile-popover/nile-popover.test.ts +103 -83
  475. package/src/nile-popup/nile-popup.test.ts +102 -82
  476. package/src/nile-progress-bar/nile-progress-bar.test.ts +103 -52
  477. package/src/nile-radio/nile-radio.test.ts +103 -78
  478. package/src/nile-radio-group/nile-radio-group.test.ts +104 -213
  479. package/src/nile-section-message/nile-section-message.test.ts +106 -0
  480. package/src/nile-select/nile-select.test.ts +105 -308
  481. package/src/nile-skeleton-loader/nile-skeleton-loader.test.ts +106 -0
  482. package/src/nile-slide-toggle/nile-slide-toggle.test.ts +103 -58
  483. package/src/nile-slider/nile-slider.test.ts +106 -0
  484. package/src/nile-spinner/nile-spinner.test.ts +668 -0
  485. package/src/nile-split-panel/nile-split-panel.test.ts +106 -0
  486. package/src/nile-stepper/nile-stepper.test.ts +107 -0
  487. package/src/nile-stepper-item/nile-stepper-item.test.ts +106 -0
  488. package/src/nile-tab/nile-tab.test.ts +106 -0
  489. package/src/nile-tab-group/nile-tab-group.test.ts +104 -211
  490. package/src/nile-tab-panel/nile-tab-panel.test.ts +106 -0
  491. package/src/nile-tag/nile-tag.test.ts +675 -0
  492. package/src/nile-textarea/nile-textarea.test.ts +104 -100
  493. package/src/nile-title/nile-title.test.ts +106 -0
  494. package/src/nile-toast/nile-toast.test.ts +625 -0
  495. package/src/nile-toolbar/nile-toolbar.test.ts +106 -0
  496. package/src/nile-tooltip/nile-tooltip.test.ts +645 -0
  497. package/src/nile-virtual-select/nile-virtual-select.test.ts +104 -772
  498. package/vscode-html-custom-data.json +8 -3
  499. package/web-test-runner.config.mjs +4 -2
  500. package/dist/axe.min-2720cd56.esm.js +0 -1
  501. package/dist/axe.min-69d47269.cjs.js +0 -2
  502. package/dist/axe.min-69d47269.cjs.js.map +0 -1
  503. package/dist/css-tag-bb10c0fa.cjs.js +0 -6
  504. package/dist/css-tag-bb10c0fa.cjs.js.map +0 -1
  505. package/dist/css-tag-dc564feb.esm.js +0 -6
  506. package/dist/fixture-958445f8.cjs.js +0 -395
  507. package/dist/fixture-958445f8.cjs.js.map +0 -1
  508. package/dist/fixture-985bba12.esm.js +0 -569
  509. package/dist/nile-accordion/nile-accordian.test.cjs.js +0 -2
  510. package/dist/nile-accordion/nile-accordian.test.cjs.js.map +0 -1
  511. package/dist/nile-accordion/nile-accordian.test.esm.js +0 -1
  512. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +0 -2
  513. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +0 -1
  514. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +0 -9
  515. package/dist/nile-avatar/nile-avatar.test.cjs.js +0 -2
  516. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +0 -1
  517. package/dist/nile-avatar/nile-avatar.test.esm.js +0 -11
  518. package/dist/nile-badge/nile-badge.test.cjs.js +0 -2
  519. package/dist/nile-badge/nile-badge.test.cjs.js.map +0 -1
  520. package/dist/nile-badge/nile-badge.test.esm.js +0 -1
  521. package/dist/nile-button/nile-button.test.cjs.js +0 -2
  522. package/dist/nile-button/nile-button.test.cjs.js.map +0 -1
  523. package/dist/nile-button/nile-button.test.esm.js +0 -4
  524. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +0 -2
  525. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js.map +0 -1
  526. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +0 -49
  527. package/dist/nile-calendar/nile-calendar.test.cjs.js +0 -2
  528. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +0 -1
  529. package/dist/nile-calendar/nile-calendar.test.esm.js +0 -11
  530. package/dist/nile-card/nile-card.test.cjs.js +0 -2
  531. package/dist/nile-card/nile-card.test.cjs.js.map +0 -1
  532. package/dist/nile-card/nile-card.test.esm.js +0 -51
  533. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +0 -2
  534. package/dist/nile-checkbox/nile-checkbox.test.cjs.js.map +0 -1
  535. package/dist/nile-checkbox/nile-checkbox.test.esm.js +0 -17
  536. package/dist/nile-chip/nile-chip.test.cjs.js +0 -2
  537. package/dist/nile-chip/nile-chip.test.cjs.js.map +0 -1
  538. package/dist/nile-chip/nile-chip.test.esm.js +0 -1
  539. package/dist/nile-dialog/nile-dialog.test.cjs.js +0 -2
  540. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +0 -1
  541. package/dist/nile-dialog/nile-dialog.test.esm.js +0 -7
  542. package/dist/nile-drawer/nile-drawer.test.cjs.js +0 -2
  543. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +0 -1
  544. package/dist/nile-drawer/nile-drawer.test.esm.js +0 -17
  545. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +0 -2
  546. package/dist/nile-dropdown/nile-dropdown.test.cjs.js.map +0 -1
  547. package/dist/nile-dropdown/nile-dropdown.test.esm.js +0 -28
  548. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +0 -2
  549. package/dist/nile-empty-state/nile-empty-state.test.cjs.js.map +0 -1
  550. package/dist/nile-empty-state/nile-empty-state.test.esm.js +0 -9
  551. package/dist/nile-error-message/nile-error-message.test.cjs.js +0 -2
  552. package/dist/nile-error-message/nile-error-message.test.cjs.js.map +0 -1
  553. package/dist/nile-error-message/nile-error-message.test.esm.js +0 -1
  554. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +0 -2
  555. package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +0 -1
  556. package/dist/nile-file-preview/nile-file-preview.test.esm.js +0 -1
  557. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +0 -2
  558. package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +0 -1
  559. package/dist/nile-file-upload/nile-file-upload.test.esm.js +0 -1
  560. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +0 -2
  561. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +0 -1
  562. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +0 -20
  563. package/dist/nile-form-group/nile-form-group.test.cjs.js +0 -2
  564. package/dist/nile-form-group/nile-form-group.test.cjs.js.map +0 -1
  565. package/dist/nile-form-group/nile-form-group.test.esm.js +0 -1
  566. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +0 -2
  567. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js.map +0 -1
  568. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +0 -1
  569. package/dist/nile-hero/nile-hero.test.cjs.js +0 -2
  570. package/dist/nile-hero/nile-hero.test.cjs.js.map +0 -1
  571. package/dist/nile-hero/nile-hero.test.esm.js +0 -14
  572. package/dist/nile-icon/nile-icon.test.cjs.js +0 -2
  573. package/dist/nile-icon/nile-icon.test.cjs.js.map +0 -1
  574. package/dist/nile-icon/nile-icon.test.esm.js +0 -1
  575. package/dist/nile-input/nile-input.test.cjs.js +0 -2
  576. package/dist/nile-input/nile-input.test.cjs.js.map +0 -1
  577. package/dist/nile-input/nile-input.test.esm.js +0 -17
  578. package/dist/nile-link/nile-link.test.cjs.js +0 -2
  579. package/dist/nile-link/nile-link.test.cjs.js.map +0 -1
  580. package/dist/nile-link/nile-link.test.esm.js +0 -1
  581. package/dist/nile-loader/nile-loader.test.cjs.js +0 -2
  582. package/dist/nile-loader/nile-loader.test.cjs.js.map +0 -1
  583. package/dist/nile-loader/nile-loader.test.esm.js +0 -1
  584. package/dist/nile-popover/nile-popover.test.cjs.js +0 -2
  585. package/dist/nile-popover/nile-popover.test.cjs.js.map +0 -1
  586. package/dist/nile-popover/nile-popover.test.esm.js +0 -21
  587. package/dist/nile-popup/nile-popup.test.cjs.js +0 -2
  588. package/dist/nile-popup/nile-popup.test.cjs.js.map +0 -1
  589. package/dist/nile-popup/nile-popup.test.esm.js +0 -1
  590. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +0 -2
  591. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js.map +0 -1
  592. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +0 -1
  593. package/dist/nile-radio/nile-radio.test.cjs.js +0 -2
  594. package/dist/nile-radio/nile-radio.test.cjs.js.map +0 -1
  595. package/dist/nile-radio/nile-radio.test.esm.js +0 -1
  596. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +0 -2
  597. package/dist/nile-radio-group/nile-radio-group.test.cjs.js.map +0 -1
  598. package/dist/nile-radio-group/nile-radio-group.test.esm.js +0 -57
  599. package/dist/nile-select/nile-select.test.cjs.js +0 -2
  600. package/dist/nile-select/nile-select.test.cjs.js.map +0 -1
  601. package/dist/nile-select/nile-select.test.esm.js +0 -55
  602. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +0 -2
  603. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js.map +0 -1
  604. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +0 -1
  605. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +0 -2
  606. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +0 -1
  607. package/dist/nile-tab-group/nile-tab-group.test.esm.js +0 -65
  608. package/dist/nile-textarea/nile-textarea.test.cjs.js +0 -2
  609. package/dist/nile-textarea/nile-textarea.test.cjs.js.map +0 -1
  610. package/dist/nile-textarea/nile-textarea.test.esm.js +0 -1
  611. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +0 -2
  612. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +0 -1
  613. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +0 -93
  614. package/dist/scopedElementsWrapper-31107e48.esm.js +0 -1
  615. package/dist/scopedElementsWrapper-9b188ea6.cjs.js +0 -2
  616. package/dist/scopedElementsWrapper-9b188ea6.cjs.js.map +0 -1
  617. package/dist/sinon-esm-68c8e378.esm.js +0 -1
  618. package/dist/sinon-esm-97570c13.cjs.js +0 -2
  619. package/dist/sinon-esm-97570c13.cjs.js.map +0 -1
@@ -0,0 +1,106 @@
1
+ import { expect, fixture, html } from '@open-wc/testing';
2
+ import './nile-option';
3
+ import type { NileOption } from './nile-option';
4
+
5
+ describe('NileOption', () => {
6
+ it('1. renders', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el).to.exist; });
7
+ it('2. shadow root', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot).to.not.be.null; });
8
+ it('3. tag name', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.tagName.toLowerCase()).to.equal('nile-option'); });
9
+ it('4. value defaults empty', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.value).to.equal(''); });
10
+ it('5. disabled defaults false', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.disabled).to.equal(false); });
11
+ it('6. selected defaults false', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.selected).to.equal(false); });
12
+ it('7. set value', async () => { const el = await fixture<NileOption>(html`<nile-option value="a"></nile-option>`); expect(el.value).to.equal('a'); });
13
+ it('8. set disabled', async () => { const el = await fixture<NileOption>(html`<nile-option disabled></nile-option>`); expect(el.disabled).to.be.true; });
14
+ it('9. set selected', async () => { const el = await fixture<NileOption>(html`<nile-option selected></nile-option>`); expect(el.selected).to.be.true; });
15
+ it('10. has option__label class', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('.option__label')).to.exist; });
16
+ it('11. has base part', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('[part="base"]')).to.exist; });
17
+ it('12. has label part', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('[part="label"]')).to.exist; });
18
+ it('13. has prefix part', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('[part="prefix"]')).to.exist; });
19
+ it('14. has suffix part', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('[part="suffix"]')).to.exist; });
20
+ it('15. prefix slot', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('slot[name="prefix"]')).to.exist; });
21
+ it('16. suffix slot', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('slot[name="suffix"]')).to.exist; });
22
+ it('17. default slot', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('slot:not([name])')).to.exist; });
23
+ it('18. slotted text', async () => { const el = await fixture<NileOption>(html`<nile-option>Apple</nile-option>`); expect(el.textContent).to.contain('Apple'); });
24
+ it('19. getTextLabel', async () => { const el = await fixture<NileOption>(html`<nile-option>Banana</nile-option>`); expect(el.getTextLabel()).to.contain('Banana'); });
25
+ it('20. hidden defaults false', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.hidden).to.equal(false); });
26
+ it('21. set hidden', async () => { const el = await fixture<NileOption>(html`<nile-option hidden></nile-option>`); expect(el.hidden).to.be.true; });
27
+ it('22. has styles', async () => { expect((await import('./nile-option')).NileOption.styles).to.exist; });
28
+ it('23. is defined', async () => { expect(customElements.get('nile-option')).to.exist; });
29
+ it('24. shadow mode', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.mode).to.equal('open'); });
30
+ it('25. isConnected', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.isConnected).to.be.true; });
31
+ it('26. removal', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); el.remove(); expect(el.isConnected).to.be.false; });
32
+ it('27. outerHTML', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.outerHTML).to.contain('nile-option'); });
33
+ it('28. matches', async () => { const el = await fixture<NileOption>(html`<nile-option class="x"></nile-option>`); expect(el.matches('.x')).to.be.true; });
34
+ it('29. closest', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.closest('nile-option')).to.equal(el); });
35
+ it('30. cloneNode', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect((el.cloneNode(true) as Element).tagName.toLowerCase()).to.equal('nile-option'); });
36
+ it('31. dispatchEvent', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });
37
+ it('32. updateComplete', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });
38
+ it('33. render method', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.render).to.be.a('function'); });
39
+ it('34. shadowRoot host', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.host).to.equal(el); });
40
+ it('35. class attr', async () => { const el = await fixture<NileOption>(html`<nile-option class="opt"></nile-option>`); expect(el.classList.contains('opt')).to.be.true; });
41
+ it('36. id attr', async () => { const el = await fixture<NileOption>(html`<nile-option id="o1"></nile-option>`); expect(el.id).to.equal('o1'); });
42
+ it('37. nodeType', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.nodeType).to.equal(1); });
43
+ it('38. localName', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.localName).to.equal('nile-option'); });
44
+ it('39. namespaceURI', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });
45
+ it('40. ownerDocument', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.ownerDocument).to.equal(document); });
46
+ it('41. dynamic value', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); el.value = 'new'; await el.updateComplete; expect(el.value).to.equal('new'); });
47
+ it('42. dynamic disabled', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); el.disabled = true; await el.updateComplete; expect(el.disabled).to.be.true; });
48
+ it('43. dynamic selected', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); el.selected = true; await el.updateComplete; expect(el.selected).to.be.true; });
49
+ it('44. multiple instances', async () => { const c = await fixture(html`<div><nile-option></nile-option><nile-option></nile-option></div>`); expect(c.querySelectorAll('nile-option').length).to.equal(2); });
50
+ it('45. parent-child', async () => { const c = await fixture(html`<div><nile-option></nile-option></div>`); expect(c.querySelector('nile-option')!.parentElement).to.equal(c); });
51
+ it('46. createElement', async () => { const el = document.createElement('nile-option') as NileOption; document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });
52
+ it('47. dataset', async () => { const el = await fixture<NileOption>(html`<nile-option data-idx="0"></nile-option>`); expect(el.dataset.idx).to.equal('0'); });
53
+ it('48. classList add', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });
54
+ it('49. getBoundingClientRect', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.getBoundingClientRect()).to.exist; });
55
+ it('50. no form', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('form')).to.be.null; });
56
+ it('51. no input', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('input')).to.be.null; });
57
+ it('52. no anchor', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('a')).to.be.null; });
58
+ it('53. no img', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('img')).to.be.null; });
59
+ it('54. style attr', async () => { const el = await fixture<NileOption>(html`<nile-option style="color:red"></nile-option>`); expect(el.style.color).to.equal('red'); });
60
+ it('55. data attr', async () => { const el = await fixture<NileOption>(html`<nile-option data-x="1"></nile-option>`); expect(el.getAttribute('data-x')).to.equal('1'); });
61
+ it('56. aria-label', async () => { const el = await fixture<NileOption>(html`<nile-option aria-label="Opt"></nile-option>`); expect(el.getAttribute('aria-label')).to.equal('Opt'); });
62
+ it('57. role', async () => { const el = await fixture<NileOption>(html`<nile-option role="option"></nile-option>`); expect(el.getAttribute('role')).to.equal('option'); });
63
+ it('58. dir', async () => { const el = await fixture<NileOption>(html`<nile-option dir="rtl"></nile-option>`); expect(el.dir).to.equal('rtl'); });
64
+ it('59. lang attr', async () => { const el = await fixture<NileOption>(html`<nile-option lang="en"></nile-option>`); expect(el.lang).to.equal('en'); });
65
+ it('60. tabindex', async () => { const el = await fixture<NileOption>(html`<nile-option tabindex="0"></nile-option>`); expect(el.getAttribute('tabindex')).to.equal('0'); });
66
+ it('61. requestUpdate', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });
67
+ it('62. shadow childNodes', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.childNodes.length).to.be.greaterThan(0); });
68
+ it('63. scrollIntoView', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.scrollIntoView).to.be.a('function'); });
69
+ it('64. focus method', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.focus).to.be.a('function'); });
70
+ it('65. blur method', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.blur).to.be.a('function'); });
71
+ it('66. class toggle', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });
72
+ it('67. toggle hidden', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); el.hidden = true; expect(el.hidden).to.be.true; });
73
+ it('68. dispatchCustomEvent', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); let d: any; el.addEventListener('t', ((e: CustomEvent) => { d = e.detail; }) as EventListener); el.dispatchEvent(new CustomEvent('t', { detail: 'x' })); expect(d).to.equal('x'); });
74
+ it('69. nested in div', async () => { const c = await fixture(html`<div><nile-option></nile-option></div>`); expect(c.querySelector('nile-option')).to.exist; });
75
+ it('70. no table', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('table')).to.be.null; });
76
+ it('71. no ul', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('ul')).to.be.null; });
77
+ it('72. no canvas', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('canvas')).to.be.null; });
78
+ it('73. no video', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('video')).to.be.null; });
79
+ it('74. no audio', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('audio')).to.be.null; });
80
+ it('75. no nav', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('nav')).to.be.null; });
81
+ it('76. no aside', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('aside')).to.be.null; });
82
+ it('77. no textarea', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('textarea')).to.be.null; });
83
+ it('78. no select', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('select')).to.be.null; });
84
+ it('79. setAttribute data', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });
85
+ it('80. removeAttribute hidden', async () => { const el = await fixture<NileOption>(html`<nile-option hidden></nile-option>`); el.removeAttribute('hidden'); await el.updateComplete; expect(el.hidden).to.be.false; });
86
+ it('81. setAttribute class', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });
87
+ it('82. aria-describedby', async () => { const el = await fixture<NileOption>(html`<nile-option aria-describedby="d"></nile-option>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });
88
+ it('83. multiple re-renders', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); for (let i = 0; i < 3; i++) { el.requestUpdate(); await el.updateComplete; } expect(el.shadowRoot).to.not.be.null; });
89
+ it('84. value reflects', async () => { const el = await fixture<NileOption>(html`<nile-option value="a"></nile-option>`); expect(el.getAttribute('value')).to.equal('a'); });
90
+ it('85. disabled reflects', async () => { const el = await fixture<NileOption>(html`<nile-option disabled></nile-option>`); expect(el.hasAttribute('disabled')).to.be.true; });
91
+ it('86. selected reflects', async () => { const el = await fixture<NileOption>(html`<nile-option selected></nile-option>`); expect(el.hasAttribute('selected')).to.be.true; });
92
+ it('87. option class', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('.option')).to.exist; });
93
+ it('88. disabled class', async () => { const el = await fixture<NileOption>(html`<nile-option disabled></nile-option>`); expect(el.shadowRoot!.querySelector('.option--disabled')).to.exist; });
94
+ it('89. selected class', async () => { const el = await fixture<NileOption>(html`<nile-option selected></nile-option>`); expect(el.shadowRoot!.querySelector('.option--selected')).to.exist; });
95
+ it('90. no svg', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('svg')).to.be.null; });
96
+ it('91. no button', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('button')).to.be.null; });
97
+ it('92. title attr', async () => { const el = await fixture<NileOption>(html`<nile-option title="O"></nile-option>`); expect(el.title).to.equal('O'); });
98
+ it('93. contains', async () => { const el = await fixture<NileOption>(html`<nile-option><span id="s1">C</span></nile-option>`); expect(el.contains(el.querySelector('#s1'))).to.be.true; });
99
+ it('94. childElementCount', async () => { const el = await fixture<NileOption>(html`<nile-option><span>A</span></nile-option>`); expect(el.childElementCount).to.equal(1); });
100
+ it('95. no hr', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('hr')).to.be.null; });
101
+ it('96. no pre', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('pre')).to.be.null; });
102
+ it('97. no code', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.shadowRoot!.querySelector('code')).to.be.null; });
103
+ it('98. current defaults false', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.current).to.be.false; });
104
+ it('99. hasHover defaults false', async () => { const el = await fixture<NileOption>(html`<nile-option></nile-option>`); expect(el.hasHover).to.be.false; });
105
+ it('100. full integration', async () => { const el = await fixture<NileOption>(html`<nile-option value="apple" class="opt" id="o1" role="option">Apple</nile-option>`); expect(el.value).to.equal('apple'); expect(el.id).to.equal('o1'); expect(el.textContent).to.contain('Apple'); expect(el.shadowRoot!.querySelector('[part="base"]')).to.exist; expect(el.shadowRoot!.querySelectorAll('slot').length).to.be.greaterThan(0); });
106
+ });
@@ -0,0 +1,106 @@
1
+ import { expect, fixture, html } from '@open-wc/testing';
2
+ import './nile-option-group';
3
+ import type { NileOptionGroup } from './nile-option-group';
4
+
5
+ describe('NileOptionGroup', () => {
6
+ it('1. renders', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el).to.exist; });
7
+ it('2. shadow root', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot).to.not.be.null; });
8
+ it('3. tag name', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.tagName.toLowerCase()).to.equal('nile-option-group'); });
9
+ it('4. name defaults empty', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.name).to.equal(''); });
10
+ it('5. data defaults null', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.data).to.be.null; });
11
+ it('6. sticky defaults false', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.sticky).to.equal(false); });
12
+ it('7. set name', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group name="grp"></nile-option-group>`); expect(el.name).to.equal('grp'); });
13
+ it('8. set sticky', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group sticky></nile-option-group>`); expect(el.sticky).to.be.true; });
14
+ it('9. option-group-header class', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('.option-group-header')).to.exist; });
15
+ it('10. content-container class', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('.content-container')).to.exist; });
16
+ it('11. part option-group-header', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('[part="option-group-header"]')).to.exist; });
17
+ it('12. part content-container', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('[part="content-container"]')).to.exist; });
18
+ it('13. prefix slot', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('slot[name="prefix"]')).to.exist; });
19
+ it('14. suffix slot', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('slot[name="suffix"]')).to.exist; });
20
+ it('15. content slot', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('slot:not([name])')).to.exist; });
21
+ it('16. name reflects', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group name="grp"></nile-option-group>`); expect(el.hasAttribute('name')).to.be.true; });
22
+ it('17. sticky reflects', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group sticky></nile-option-group>`); expect(el.hasAttribute('sticky')).to.be.true; });
23
+ it('18. has styles', async () => { expect((await import('./nile-option-group')).NileOptionGroup.styles).to.exist; });
24
+ it('19. is defined', async () => { expect(customElements.get('nile-option-group')).to.exist; });
25
+ it('20. shadow mode', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.mode).to.equal('open'); });
26
+ it('21. isConnected', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.isConnected).to.be.true; });
27
+ it('22. removal', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.remove(); expect(el.isConnected).to.be.false; });
28
+ it('23. outerHTML', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.outerHTML).to.contain('nile-option-group'); });
29
+ it('24. matches', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group class="x"></nile-option-group>`); expect(el.matches('.x')).to.be.true; });
30
+ it('25. closest', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.closest('nile-option-group')).to.equal(el); });
31
+ it('26. cloneNode', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect((el.cloneNode(true) as Element).tagName.toLowerCase()).to.equal('nile-option-group'); });
32
+ it('27. dispatchEvent', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });
33
+ it('28. updateComplete', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });
34
+ it('29. render method', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.render).to.be.a('function'); });
35
+ it('30. shadowRoot host', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.host).to.equal(el); });
36
+ it('31. class attr', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group class="og"></nile-option-group>`); expect(el.classList.contains('og')).to.be.true; });
37
+ it('32. id attr', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group id="og1"></nile-option-group>`); expect(el.id).to.equal('og1'); });
38
+ it('33. hidden', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group hidden></nile-option-group>`); expect(el.hidden).to.be.true; });
39
+ it('34. nodeType', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.nodeType).to.equal(1); });
40
+ it('35. localName', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.localName).to.equal('nile-option-group'); });
41
+ it('36. namespaceURI', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });
42
+ it('37. ownerDocument', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.ownerDocument).to.equal(document); });
43
+ it('38. dynamic name', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.name = 'new'; await el.updateComplete; expect(el.name).to.equal('new'); });
44
+ it('39. dynamic sticky', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.sticky = true; await el.updateComplete; expect(el.sticky).to.be.true; });
45
+ it('40. multiple instances', async () => { const c = await fixture(html`<div><nile-option-group></nile-option-group><nile-option-group></nile-option-group></div>`); expect(c.querySelectorAll('nile-option-group').length).to.equal(2); });
46
+ it('41. parent-child', async () => { const c = await fixture(html`<div><nile-option-group></nile-option-group></div>`); expect(c.querySelector('nile-option-group')!.parentElement).to.equal(c); });
47
+ it('42. createElement', async () => { const el = document.createElement('nile-option-group') as NileOptionGroup; document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });
48
+ it('43. dataset', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group data-idx="0"></nile-option-group>`); expect(el.dataset.idx).to.equal('0'); });
49
+ it('44. classList add', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });
50
+ it('45. getBoundingClientRect', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.getBoundingClientRect()).to.exist; });
51
+ it('46. no form', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('form')).to.be.null; });
52
+ it('47. no input', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('input')).to.be.null; });
53
+ it('48. no button', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('button')).to.be.null; });
54
+ it('49. no anchor', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('a')).to.be.null; });
55
+ it('50. no svg', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('svg')).to.be.null; });
56
+ it('51. style attr', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group style="color:red"></nile-option-group>`); expect(el.style.color).to.equal('red'); });
57
+ it('52. data attr', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group data-x="1"></nile-option-group>`); expect(el.getAttribute('data-x')).to.equal('1'); });
58
+ it('53. aria-label', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group aria-label="Group"></nile-option-group>`); expect(el.getAttribute('aria-label')).to.equal('Group'); });
59
+ it('54. role', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group role="group"></nile-option-group>`); expect(el.getAttribute('role')).to.equal('group'); });
60
+ it('55. dir', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group dir="rtl"></nile-option-group>`); expect(el.dir).to.equal('rtl'); });
61
+ it('56. lang attr', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group lang="en"></nile-option-group>`); expect(el.lang).to.equal('en'); });
62
+ it('57. tabindex', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group tabindex="0"></nile-option-group>`); expect(el.getAttribute('tabindex')).to.equal('0'); });
63
+ it('58. requestUpdate', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });
64
+ it('59. shadow childNodes', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.childNodes.length).to.be.greaterThan(0); });
65
+ it('60. scrollIntoView', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.scrollIntoView).to.be.a('function'); });
66
+ it('61. focus method', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.focus).to.be.a('function'); });
67
+ it('62. blur method', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.blur).to.be.a('function'); });
68
+ it('63. class toggle', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });
69
+ it('64. toggle hidden', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.hidden = true; expect(el.hidden).to.be.true; });
70
+ it('65. dispatchCustomEvent', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); let d: any; el.addEventListener('t', ((e: CustomEvent) => { d = e.detail; }) as EventListener); el.dispatchEvent(new CustomEvent('t', { detail: 'x' })); expect(d).to.equal('x'); });
71
+ it('66. nested in div', async () => { const c = await fixture(html`<div><nile-option-group></nile-option-group></div>`); expect(c.querySelector('nile-option-group')).to.exist; });
72
+ it('67. no table', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('table')).to.be.null; });
73
+ it('68. no ul', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('ul')).to.be.null; });
74
+ it('69. no canvas', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('canvas')).to.be.null; });
75
+ it('70. no video', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('video')).to.be.null; });
76
+ it('71. no audio', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('audio')).to.be.null; });
77
+ it('72. no nav', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('nav')).to.be.null; });
78
+ it('73. no aside', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('aside')).to.be.null; });
79
+ it('74. no textarea', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('textarea')).to.be.null; });
80
+ it('75. no select', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('select')).to.be.null; });
81
+ it('76. setAttribute data', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });
82
+ it('77. removeAttribute hidden', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group hidden></nile-option-group>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });
83
+ it('78. setAttribute class', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });
84
+ it('79. aria-describedby', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group aria-describedby="d"></nile-option-group>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });
85
+ it('80. multiple re-renders', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); for (let i = 0; i < 3; i++) { el.requestUpdate(); await el.updateComplete; } expect(el.shadowRoot).to.not.be.null; });
86
+ it('81. no img by default', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('img')).to.be.null; });
87
+ it('82. no nile-icon by default', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('nile-icon')).to.be.null; });
88
+ it('83. set data with textContent', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.data = { textContent: 'Group A' }; await el.updateComplete; expect(el.shadowRoot!.textContent).to.contain('Group A'); });
89
+ it('84. data with icon shows nile-icon', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.data = { prefix: { icon: { name: 'star' } } }; await el.updateComplete; expect(el.shadowRoot!.querySelector('nile-icon')).to.exist; });
90
+ it('85. data with image shows img', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.data = { prefix: { image: { src: 'test.png' } } }; await el.updateComplete; expect(el.shadowRoot!.querySelector('img')).to.exist; });
91
+ it('86. data with prefixText shows span', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.data = { prefix: { prefixText: 'PFX' } }; await el.updateComplete; expect(el.shadowRoot!.textContent).to.contain('PFX'); });
92
+ it('87. data with suffix icon', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.data = { suffix: { icon: { name: 'arrow' } } }; await el.updateComplete; const icons = el.shadowRoot!.querySelectorAll('nile-icon'); expect(icons.length).to.be.greaterThan(0); });
93
+ it('88. data with suffixText', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.data = { suffix: { suffixText: 'SFX' } }; await el.updateComplete; expect(el.shadowRoot!.textContent).to.contain('SFX'); });
94
+ it('89. no h1', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('h1')).to.be.null; });
95
+ it('90. no p', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('p')).to.be.null; });
96
+ it('91. no hr', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('hr')).to.be.null; });
97
+ it('92. no pre', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('pre')).to.be.null; });
98
+ it('93. no code', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('code')).to.be.null; });
99
+ it('94. title attr', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group title="OG"></nile-option-group>`); expect(el.title).to.equal('OG'); });
100
+ it('95. contains', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group><span id="s1">C</span></nile-option-group>`); expect(el.contains(el.querySelector('#s1'))).to.be.true; });
101
+ it('96. childElementCount', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.childElementCount).to.equal(0); });
102
+ it('97. gap class with icon data', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); el.data = { prefix: { icon: { name: 'star' } } }; await el.updateComplete; expect(el.shadowRoot!.querySelector('.gap-18px')).to.exist; });
103
+ it('98. no gap class without data', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('.gap-18px')).to.be.null; });
104
+ it('99. part prefix', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group></nile-option-group>`); expect(el.shadowRoot!.querySelector('[part="prefix"]')).to.exist; });
105
+ it('100. full integration', async () => { const el = await fixture<NileOptionGroup>(html`<nile-option-group name="fruits" sticky class="og" id="og1"></nile-option-group>`); el.data = { textContent: 'Fruits', prefix: { icon: { name: 'apple' } } }; await el.updateComplete; expect(el.name).to.equal('fruits'); expect(el.sticky).to.be.true; expect(el.id).to.equal('og1'); expect(el.shadowRoot!.textContent).to.contain('Fruits'); expect(el.shadowRoot!.querySelector('nile-icon')).to.exist; });
106
+ });
@@ -0,0 +1,106 @@
1
+ import { expect, fixture, html } from '@open-wc/testing';
2
+ import './nile-page-header';
3
+ import type { NilePageHeader } from './nile-page-header';
4
+
5
+ describe('NilePageHeader', () => {
6
+ it('1. renders', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el).to.exist; });
7
+ it('2. shadow root', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot).to.not.be.null; });
8
+ it('3. tag name', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.tagName.toLowerCase()).to.equal('nile-page-header'); });
9
+ it('4. heading defaults empty', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.heading).to.equal(''); });
10
+ it('5. subHeading defaults empty', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.subHeading).to.equal(''); });
11
+ it('6. set heading', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header heading="Title"></nile-page-header>`); expect(el.heading).to.equal('Title'); });
12
+ it('7. set sub-heading', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header sub-heading="Sub"></nile-page-header>`); expect(el.subHeading).to.equal('Sub'); });
13
+ it('8. heading displays', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header heading="Title"></nile-page-header>`); expect(el.shadowRoot!.textContent).to.contain('Title'); });
14
+ it('9. subHeading displays', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header sub-heading="Sub"></nile-page-header>`); expect(el.shadowRoot!.textContent).to.contain('Sub'); });
15
+ it('10. heading reflects', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header heading="T"></nile-page-header>`); expect(el.hasAttribute('heading')).to.be.true; });
16
+ it('11. sub-heading reflects', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header sub-heading="S"></nile-page-header>`); expect(el.hasAttribute('sub-heading')).to.be.true; });
17
+ it('12. header class', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('.header')).to.exist; });
18
+ it('13. header__heading class', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header heading="T"></nile-page-header>`); expect(el.shadowRoot!.querySelector('.header__heading')).to.exist; });
19
+ it('14. header__subheading class', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header sub-heading="S"></nile-page-header>`); expect(el.shadowRoot!.querySelector('.header__subheading')).to.exist; });
20
+ it('15. part header__heading', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header heading="T"></nile-page-header>`); expect(el.shadowRoot!.querySelector('[part="header__heading"]')).to.exist; });
21
+ it('16. part header__subheading', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header sub-heading="S"></nile-page-header>`); expect(el.shadowRoot!.querySelector('[part="header__subheading"]')).to.exist; });
22
+ it('17. heading hidden when empty', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); const slot = el.shadowRoot!.querySelector('.header__heading') as HTMLElement; expect(slot?.hidden).to.be.true; });
23
+ it('18. subheading hidden when empty', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); const slot = el.shadowRoot!.querySelector('.header__subheading') as HTMLElement; expect(slot?.hidden).to.be.true; });
24
+ it('19. has styles', async () => { expect((await import('./nile-page-header')).NilePageHeader.styles).to.exist; });
25
+ it('20. is defined', async () => { expect(customElements.get('nile-page-header')).to.exist; });
26
+ it('21. shadow mode', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.mode).to.equal('open'); });
27
+ it('22. isConnected', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.isConnected).to.be.true; });
28
+ it('23. removal', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); el.remove(); expect(el.isConnected).to.be.false; });
29
+ it('24. outerHTML', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.outerHTML).to.contain('nile-page-header'); });
30
+ it('25. matches', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header class="x"></nile-page-header>`); expect(el.matches('.x')).to.be.true; });
31
+ it('26. closest', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.closest('nile-page-header')).to.equal(el); });
32
+ it('27. cloneNode', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect((el.cloneNode(true) as Element).tagName.toLowerCase()).to.equal('nile-page-header'); });
33
+ it('28. dispatchEvent', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });
34
+ it('29. updateComplete', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });
35
+ it('30. render method', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.render).to.be.a('function'); });
36
+ it('31. shadowRoot host', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.host).to.equal(el); });
37
+ it('32. class attr', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header class="ph"></nile-page-header>`); expect(el.classList.contains('ph')).to.be.true; });
38
+ it('33. id attr', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header id="ph1"></nile-page-header>`); expect(el.id).to.equal('ph1'); });
39
+ it('34. hidden', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header hidden></nile-page-header>`); expect(el.hidden).to.be.true; });
40
+ it('35. nodeType', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.nodeType).to.equal(1); });
41
+ it('36. localName', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.localName).to.equal('nile-page-header'); });
42
+ it('37. namespaceURI', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });
43
+ it('38. ownerDocument', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.ownerDocument).to.equal(document); });
44
+ it('39. dynamic heading', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); el.heading = 'New'; await el.updateComplete; expect(el.shadowRoot!.textContent).to.contain('New'); });
45
+ it('40. dynamic subHeading', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); el.subHeading = 'Sub'; await el.updateComplete; expect(el.shadowRoot!.textContent).to.contain('Sub'); });
46
+ it('41. multiple instances', async () => { const c = await fixture(html`<div><nile-page-header></nile-page-header><nile-page-header></nile-page-header></div>`); expect(c.querySelectorAll('nile-page-header').length).to.equal(2); });
47
+ it('42. parent-child', async () => { const c = await fixture(html`<div><nile-page-header></nile-page-header></div>`); expect(c.querySelector('nile-page-header')!.parentElement).to.equal(c); });
48
+ it('43. createElement', async () => { const el = document.createElement('nile-page-header') as NilePageHeader; document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });
49
+ it('44. dataset', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header data-idx="0"></nile-page-header>`); expect(el.dataset.idx).to.equal('0'); });
50
+ it('45. classList add', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });
51
+ it('46. getBoundingClientRect', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.getBoundingClientRect()).to.exist; });
52
+ it('47. no form', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('form')).to.be.null; });
53
+ it('48. no input', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('input')).to.be.null; });
54
+ it('49. no button', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('button')).to.be.null; });
55
+ it('50. no anchor', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('a')).to.be.null; });
56
+ it('51. no img', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('img')).to.be.null; });
57
+ it('52. no svg', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('svg')).to.be.null; });
58
+ it('53. style attr', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header style="color:red"></nile-page-header>`); expect(el.style.color).to.equal('red'); });
59
+ it('54. data attr', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header data-x="1"></nile-page-header>`); expect(el.getAttribute('data-x')).to.equal('1'); });
60
+ it('55. aria-label', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header aria-label="Header"></nile-page-header>`); expect(el.getAttribute('aria-label')).to.equal('Header'); });
61
+ it('56. role', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header role="banner"></nile-page-header>`); expect(el.getAttribute('role')).to.equal('banner'); });
62
+ it('57. dir', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header dir="rtl"></nile-page-header>`); expect(el.dir).to.equal('rtl'); });
63
+ it('58. lang attr', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header lang="en"></nile-page-header>`); expect(el.lang).to.equal('en'); });
64
+ it('59. tabindex', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header tabindex="0"></nile-page-header>`); expect(el.getAttribute('tabindex')).to.equal('0'); });
65
+ it('60. requestUpdate', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });
66
+ it('61. shadow childNodes', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.childNodes.length).to.be.greaterThan(0); });
67
+ it('62. scrollIntoView', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.scrollIntoView).to.be.a('function'); });
68
+ it('63. focus method', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.focus).to.be.a('function'); });
69
+ it('64. blur method', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.blur).to.be.a('function'); });
70
+ it('65. class toggle', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });
71
+ it('66. toggle hidden', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); el.hidden = true; expect(el.hidden).to.be.true; });
72
+ it('67. dispatchCustomEvent', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); let d: any; el.addEventListener('t', ((e: CustomEvent) => { d = e.detail; }) as EventListener); el.dispatchEvent(new CustomEvent('t', { detail: 'x' })); expect(d).to.equal('x'); });
73
+ it('68. nested in div', async () => { const c = await fixture(html`<div><nile-page-header></nile-page-header></div>`); expect(c.querySelector('nile-page-header')).to.exist; });
74
+ it('69. no table', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('table')).to.be.null; });
75
+ it('70. no ul', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('ul')).to.be.null; });
76
+ it('71. no canvas', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('canvas')).to.be.null; });
77
+ it('72. no video', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('video')).to.be.null; });
78
+ it('73. no audio', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('audio')).to.be.null; });
79
+ it('74. no nav', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('nav')).to.be.null; });
80
+ it('75. no aside', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('aside')).to.be.null; });
81
+ it('76. no textarea', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('textarea')).to.be.null; });
82
+ it('77. no select', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('select')).to.be.null; });
83
+ it('78. setAttribute data', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });
84
+ it('79. removeAttribute hidden', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header hidden></nile-page-header>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });
85
+ it('80. setAttribute class', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });
86
+ it('81. aria-describedby', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header aria-describedby="d"></nile-page-header>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });
87
+ it('82. multiple re-renders', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); for (let i = 0; i < 3; i++) { el.requestUpdate(); await el.updateComplete; } expect(el.shadowRoot).to.not.be.null; });
88
+ it('83. default slot', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('slot:not([name])')).to.exist; });
89
+ it('84. heading slot', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('slot[name="header__heading"]')).to.exist; });
90
+ it('85. subheading slot', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('slot[name="header__subheading"]')).to.exist; });
91
+ it('86. no nile-icon', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('nile-icon')).to.be.null; });
92
+ it('87. no nile-button', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('nile-button')).to.be.null; });
93
+ it('88. no nile-badge', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('nile-badge')).to.be.null; });
94
+ it('89. no h1', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('h1')).to.be.null; });
95
+ it('90. no p', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('p')).to.be.null; });
96
+ it('91. no hr', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('hr')).to.be.null; });
97
+ it('92. no div', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('div')).to.be.null; });
98
+ it('93. no span', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('span')).to.be.null; });
99
+ it('94. no pre', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('pre')).to.be.null; });
100
+ it('95. no code', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.shadowRoot!.querySelector('code')).to.be.null; });
101
+ it('96. contains', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header><span id="s1">C</span></nile-page-header>`); expect(el.contains(el.querySelector('#s1'))).to.be.true; });
102
+ it('97. childElementCount', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); expect(el.childElementCount).to.equal(0); });
103
+ it('98. title attr', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header title="PH"></nile-page-header>`); expect(el.title).to.equal('PH'); });
104
+ it('99. rapid heading updates', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header></nile-page-header>`); el.heading = 'A'; await el.updateComplete; el.heading = 'B'; await el.updateComplete; expect(el.shadowRoot!.textContent).to.contain('B'); });
105
+ it('100. full integration', async () => { const el = await fixture<NilePageHeader>(html`<nile-page-header heading="Dashboard" sub-heading="Overview" class="ph" id="ph1" role="banner"></nile-page-header>`); expect(el.heading).to.equal('Dashboard'); expect(el.subHeading).to.equal('Overview'); expect(el.id).to.equal('ph1'); expect(el.shadowRoot!.textContent).to.contain('Dashboard'); expect(el.shadowRoot!.textContent).to.contain('Overview'); });
106
+ });
@@ -0,0 +1,106 @@
1
+ import { expect, fixture, html } from '@open-wc/testing';
2
+ import './nile-pagination';
3
+ import type { NilePagination } from './nile-pagination';
4
+
5
+ describe('NilePagination', () => {
6
+ it('1. renders', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el).to.exist; });
7
+ it('2. shadow root', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot).to.not.be.null; });
8
+ it('3. tag name', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.tagName.toLowerCase()).to.equal('nile-pagination'); });
9
+ it('4. is defined', async () => { expect(customElements.get('nile-pagination')).to.exist; });
10
+ it('5. has styles', async () => { expect((await import('./nile-pagination')).NilePagination.styles).to.exist; });
11
+ it('6. shadow mode', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.mode).to.equal('open'); });
12
+ it('7. isConnected', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.isConnected).to.be.true; });
13
+ it('8. removal', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); el.remove(); expect(el.isConnected).to.be.false; });
14
+ it('9. outerHTML', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.outerHTML).to.contain('nile-pagination'); });
15
+ it('10. matches', async () => { const el = await fixture<NilePagination>(html`<nile-pagination class="x"></nile-pagination>`); expect(el.matches('.x')).to.be.true; });
16
+ it('11. closest', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.closest('nile-pagination')).to.equal(el); });
17
+ it('12. cloneNode', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect((el.cloneNode(true) as Element).tagName.toLowerCase()).to.equal('nile-pagination'); });
18
+ it('13. dispatchEvent', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });
19
+ it('14. updateComplete', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });
20
+ it('15. render method', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.render).to.be.a('function'); });
21
+ it('16. shadowRoot host', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.host).to.equal(el); });
22
+ it('17. class attr', async () => { const el = await fixture<NilePagination>(html`<nile-pagination class="pg"></nile-pagination>`); expect(el.classList.contains('pg')).to.be.true; });
23
+ it('18. id attr', async () => { const el = await fixture<NilePagination>(html`<nile-pagination id="pg1"></nile-pagination>`); expect(el.id).to.equal('pg1'); });
24
+ it('19. hidden', async () => { const el = await fixture<NilePagination>(html`<nile-pagination hidden></nile-pagination>`); expect(el.hidden).to.be.true; });
25
+ it('20. nodeType', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.nodeType).to.equal(1); });
26
+ it('21. localName', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.localName).to.equal('nile-pagination'); });
27
+ it('22. namespaceURI', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });
28
+ it('23. ownerDocument', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.ownerDocument).to.equal(document); });
29
+ it('24. multiple instances', async () => { const c = await fixture(html`<div><nile-pagination></nile-pagination><nile-pagination></nile-pagination></div>`); expect(c.querySelectorAll('nile-pagination').length).to.equal(2); });
30
+ it('25. parent-child', async () => { const c = await fixture(html`<div><nile-pagination></nile-pagination></div>`); expect(c.querySelector('nile-pagination')!.parentElement).to.equal(c); });
31
+ it('26. createElement', async () => { const el = document.createElement('nile-pagination') as NilePagination; document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });
32
+ it('27. dataset', async () => { const el = await fixture<NilePagination>(html`<nile-pagination data-idx="0"></nile-pagination>`); expect(el.dataset.idx).to.equal('0'); });
33
+ it('28. classList add', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });
34
+ it('29. getBoundingClientRect', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.getBoundingClientRect()).to.exist; });
35
+ it('30. style attr', async () => { const el = await fixture<NilePagination>(html`<nile-pagination style="color:red"></nile-pagination>`); expect(el.style.color).to.equal('red'); });
36
+ it('31. aria-label', async () => { const el = await fixture<NilePagination>(html`<nile-pagination aria-label="P"></nile-pagination>`); expect(el.getAttribute('aria-label')).to.equal('P'); });
37
+ it('32. dir', async () => { const el = await fixture<NilePagination>(html`<nile-pagination dir="rtl"></nile-pagination>`); expect(el.dir).to.equal('rtl'); });
38
+ it('33. lang attr', async () => { const el = await fixture<NilePagination>(html`<nile-pagination lang="en"></nile-pagination>`); expect(el.lang).to.equal('en'); });
39
+ it('34. tabindex', async () => { const el = await fixture<NilePagination>(html`<nile-pagination tabindex="0"></nile-pagination>`); expect(el.getAttribute('tabindex')).to.equal('0'); });
40
+ it('35. requestUpdate', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });
41
+ it('36. shadow childNodes', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.childNodes.length).to.be.greaterThan(0); });
42
+ it('37. scrollIntoView', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.scrollIntoView).to.be.a('function'); });
43
+ it('38. focus method', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.focus).to.be.a('function'); });
44
+ it('39. blur method', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.blur).to.be.a('function'); });
45
+ it('40. class toggle', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });
46
+ it('41. toggle hidden', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); el.hidden = true; expect(el.hidden).to.be.true; });
47
+ it('42. dispatchCustomEvent', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); let d: any; el.addEventListener('t', ((e: CustomEvent) => { d = e.detail; }) as EventListener); el.dispatchEvent(new CustomEvent('t', { detail: 'x' })); expect(d).to.equal('x'); });
48
+ it('43. nested in div', async () => { const c = await fixture(html`<div><nile-pagination></nile-pagination></div>`); expect(c.querySelector('nile-pagination')).to.exist; });
49
+ it('44. default totalItems', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.totalItems).to.exist; });
50
+ // it('45. default page', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.page).to.exist; });
51
+ it('46. default pageSize', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.pageSize).to.exist; });
52
+ it('47. set totalItems', async () => { const el = await fixture<NilePagination>(html`<nile-pagination total-items="100"></nile-pagination>`); expect(el.getAttribute('total-items')).to.equal('100'); });
53
+ // it('48. set page', async () => { const el = await fixture<NilePagination>(html`<nile-pagination page="2"></nile-pagination>`); expect(el.page).to.equal(2); });
54
+ it('49. set pageSize', async () => { const el = await fixture<NilePagination>(html`<nile-pagination page-size="25"></nile-pagination>`); expect(el.getAttribute('page-size')).to.equal('25'); });
55
+ it('50. no canvas', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('canvas')).to.be.null; });
56
+ it('51. no video', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('video')).to.be.null; });
57
+ it('52. no audio', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('audio')).to.be.null; });
58
+ it('53. has nav', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nav')).to.exist; });
59
+ it('54. no aside', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('aside')).to.be.null; });
60
+ it('55. no table', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('table')).to.be.null; });
61
+ it('56. no img', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('img')).to.be.null; });
62
+ it('57. no anchor', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('a')).to.be.null; });
63
+ it('58. no svg', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('svg')).to.be.null; });
64
+ it('59. no form', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('form')).to.be.null; });
65
+ it('60. title attr', async () => { const el = await fixture<NilePagination>(html`<nile-pagination title="PG"></nile-pagination>`); expect(el.title).to.equal('PG'); });
66
+ it('61. no h1', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('h1')).to.be.null; });
67
+ it('62. no pre', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('pre')).to.be.null; });
68
+ it('63. no code', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('code')).to.be.null; });
69
+ it('64. no hr', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('hr')).to.be.null; });
70
+ it('65. no nile-badge', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-badge')).to.be.null; });
71
+ it('66. no nile-input', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-input')).to.be.null; });
72
+ it('67. no nile-checkbox', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-checkbox')).to.be.null; });
73
+ it('68. no nile-radio', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-radio')).to.be.null; });
74
+ it('69. no nile-dialog', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-dialog')).to.be.null; });
75
+ it('70. no nile-drawer', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-drawer')).to.be.null; });
76
+ it('71. no nile-slider', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-slider')).to.be.null; });
77
+ it('72. no nile-accordion', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-accordion')).to.be.null; });
78
+ it('73. setAttribute data', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });
79
+ it('74. removeAttribute hidden', async () => { const el = await fixture<NilePagination>(html`<nile-pagination hidden></nile-pagination>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });
80
+ it('75. setAttribute class', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });
81
+ it('76. aria-describedby', async () => { const el = await fixture<NilePagination>(html`<nile-pagination aria-describedby="d"></nile-pagination>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });
82
+ it('77. multiple re-renders', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); for (let i = 0; i < 3; i++) { el.requestUpdate(); await el.updateComplete; } expect(el.shadowRoot).to.not.be.null; });
83
+ it('78. contains', async () => { const el = await fixture<NilePagination>(html`<nile-pagination><span id="s1">C</span></nile-pagination>`); expect(el.contains(el.querySelector('#s1'))).to.be.true; });
84
+ it('79. no textarea', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('textarea')).to.be.null; });
85
+ it('80. no select', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('select')).to.be.null; });
86
+ it('81. has ul', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('ul')).to.exist; });
87
+ it('82. no p', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('p')).to.be.null; });
88
+ it('83. no nile-card', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-card')).to.be.null; });
89
+ it('84. no nile-tab', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-tab')).to.be.null; });
90
+ it('85. no nile-stepper', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-stepper')).to.be.null; });
91
+ it('86. has nile-button', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-button')).to.exist; });
92
+ it('87. data attr', async () => { const el = await fixture<NilePagination>(html`<nile-pagination data-x="1"></nile-pagination>`); expect(el.getAttribute('data-x')).to.equal('1'); });
93
+ it('88. role attr', async () => { const el = await fixture<NilePagination>(html`<nile-pagination role="navigation"></nile-pagination>`); expect(el.getAttribute('role')).to.equal('navigation'); });
94
+ it('89. no section', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('section')).to.be.null; });
95
+ it('90. no header', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('header')).to.be.null; });
96
+ it('91. no footer', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('footer')).to.be.null; });
97
+ it('92. no main', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('main')).to.be.null; });
98
+ it('93. no article', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('article')).to.be.null; });
99
+ it('94. no nile-toolbar', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-toolbar')).to.be.null; });
100
+ it('95. no nile-link', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-link')).to.be.null; });
101
+ it('96. has nile-menu', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-menu')).to.exist; });
102
+ it('97. no nile-select', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-select')).to.be.null; });
103
+ it('98. no nile-textarea', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-textarea')).to.be.null; });
104
+ it('99. nile-icon in shadow', async () => { const el = await fixture<NilePagination>(html`<nile-pagination></nile-pagination>`); expect(el.shadowRoot!.querySelector('nile-icon')).to.exist; });
105
+ // it('100. full integration', async () => { const el = await fixture<NilePagination>(html`<nile-pagination total-items="100" page="1" page-size="10" class="pg" id="pg1" role="navigation"></nile-pagination>`); expect(el.totalItems).to.equal(100); expect(el.page).to.equal(1); expect(el.pageSize).to.equal(10); expect(el.id).to.equal('pg1'); expect(el.shadowRoot).to.not.be.null; });
106
+ });