@aquera/nile-elements 1.5.2 → 1.5.3

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 (517) hide show
  1. package/README.md +6 -0
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/dist/index.js +239 -195
  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-file-preview/nile-file-preview.cjs.js +1 -1
  12. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
  13. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +1 -1
  14. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -1
  15. package/dist/nile-file-preview/nile-file-preview.css.esm.js +2 -2
  16. package/dist/nile-file-preview/nile-file-preview.esm.js +1 -1
  17. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +1 -1
  18. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -1
  19. package/dist/nile-file-preview/nile-file-preview.template.esm.js +55 -25
  20. package/dist/nile-file-preview/utils/index.cjs.js +1 -1
  21. package/dist/nile-file-preview/utils/index.esm.js +1 -1
  22. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +1 -1
  23. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +1 -1
  24. package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +1 -1
  25. package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
  26. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
  27. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +1 -1
  28. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -1
  29. package/dist/nile-file-upload/nile-file-upload.css.esm.js +15 -5
  30. package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
  31. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +2 -2
  32. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -1
  33. package/dist/nile-file-upload/nile-file-upload.template.esm.js +36 -32
  34. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +1 -1
  35. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -1
  36. package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -1
  37. package/dist/nile-file-upload/types/index.cjs.js +1 -1
  38. package/dist/nile-file-upload/types/index.esm.js +1 -1
  39. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +1 -1
  40. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -1
  41. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -1
  42. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +4 -2
  43. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -1
  44. package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -1
  45. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js +1 -1
  46. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -1
  47. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.esm.js +3 -3
  48. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +1 -1
  49. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +1 -1
  50. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.esm.js +1 -1
  51. package/dist/nile-grid/nile-grid.cjs.js +1 -1
  52. package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
  53. package/dist/nile-grid/nile-grid.esm.js +2 -2
  54. package/dist/nile-grid/nile-grid.layout.cjs.js +1 -1
  55. package/dist/nile-grid/nile-grid.layout.esm.js +1 -1
  56. package/dist/nile-grid/nile-grid.resize.cjs.js +1 -1
  57. package/dist/nile-grid/nile-grid.resize.esm.js +1 -1
  58. package/dist/nile-grid/nile-grid.utils.cjs.js +1 -1
  59. package/dist/nile-grid/nile-grid.utils.esm.js +1 -1
  60. package/dist/nile-grid/nile-grid.width.cjs.js +1 -1
  61. package/dist/nile-grid/nile-grid.width.cjs.js.map +1 -1
  62. package/dist/nile-grid/nile-grid.width.esm.js +1 -1
  63. package/dist/nile-input/nile-input.cjs.js +1 -1
  64. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  65. package/dist/nile-input/nile-input.esm.js +1 -1
  66. package/dist/nile-popover/index.cjs.js +1 -1
  67. package/dist/nile-popover/index.esm.js +1 -1
  68. package/dist/nile-popover/nile-popover.cjs.js +4 -4
  69. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  70. package/dist/nile-popover/nile-popover.esm.js +11 -6
  71. package/dist/src/nile-accordion/nile-accordian.test.js +101 -99
  72. package/dist/src/nile-accordion/nile-accordian.test.js.map +1 -1
  73. package/dist/src/nile-auto-complete/nile-auto-complete.css.js +1 -1
  74. package/dist/src/nile-auto-complete/nile-auto-complete.css.js.map +1 -1
  75. package/dist/src/nile-auto-complete/nile-auto-complete.js +1 -1
  76. package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
  77. package/dist/src/nile-auto-complete/nile-auto-complete.test.js +104 -112
  78. package/dist/src/nile-auto-complete/nile-auto-complete.test.js.map +1 -1
  79. package/dist/src/nile-avatar/nile-avatar.test.d.ts +0 -1
  80. package/dist/src/nile-avatar/nile-avatar.test.js +103 -87
  81. package/dist/src/nile-avatar/nile-avatar.test.js.map +1 -1
  82. package/dist/src/nile-badge/nile-badge.test.js +554 -35
  83. package/dist/src/nile-badge/nile-badge.test.js.map +1 -1
  84. package/dist/src/nile-breadcrumb/nile-breadcrumb.test.d.ts +2 -0
  85. package/dist/src/nile-breadcrumb/nile-breadcrumb.test.js +106 -0
  86. package/dist/src/nile-breadcrumb/nile-breadcrumb.test.js.map +1 -0
  87. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.d.ts +1 -0
  88. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.js +108 -0
  89. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.js.map +1 -0
  90. package/dist/src/nile-button/nile-button.test.js +499 -39
  91. package/dist/src/nile-button/nile-button.test.js.map +1 -1
  92. package/dist/src/nile-button-filter/nile-button-filter.test.d.ts +1 -0
  93. package/dist/src/nile-button-filter/nile-button-filter.test.js +108 -0
  94. package/dist/src/nile-button-filter/nile-button-filter.test.js.map +1 -0
  95. package/dist/src/nile-button-toggle/nile-button-toggle.test.d.ts +1 -0
  96. package/dist/src/nile-button-toggle/nile-button-toggle.test.js +108 -0
  97. package/dist/src/nile-button-toggle/nile-button-toggle.test.js.map +1 -0
  98. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.d.ts +1 -1
  99. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js +105 -104
  100. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js.map +1 -1
  101. package/dist/src/nile-calendar/nile-calendar.test.d.ts +0 -6
  102. package/dist/src/nile-calendar/nile-calendar.test.js +103 -318
  103. package/dist/src/nile-calendar/nile-calendar.test.js.map +1 -1
  104. package/dist/src/nile-card/nile-card.test.js +102 -66
  105. package/dist/src/nile-card/nile-card.test.js.map +1 -1
  106. package/dist/src/nile-checkbox/nile-checkbox.test.js +547 -108
  107. package/dist/src/nile-checkbox/nile-checkbox.test.js.map +1 -1
  108. package/dist/src/nile-chip/nile-chip.test.d.ts +0 -2
  109. package/dist/src/nile-chip/nile-chip.test.js +101 -102
  110. package/dist/src/nile-chip/nile-chip.test.js.map +1 -1
  111. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.d.ts +1 -0
  112. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.js +108 -0
  113. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.js.map +1 -0
  114. package/dist/src/nile-date-picker/nile-date-picker.test.d.ts +1 -0
  115. package/dist/src/nile-date-picker/nile-date-picker.test.js +108 -0
  116. package/dist/src/nile-date-picker/nile-date-picker.test.js.map +1 -0
  117. package/dist/src/nile-dialog/nile-dialog.test.d.ts +0 -1
  118. package/dist/src/nile-dialog/nile-dialog.test.js +104 -126
  119. package/dist/src/nile-dialog/nile-dialog.test.js.map +1 -1
  120. package/dist/src/nile-divider/nile-divider.test.d.ts +1 -0
  121. package/dist/src/nile-divider/nile-divider.test.js +560 -0
  122. package/dist/src/nile-divider/nile-divider.test.js.map +1 -0
  123. package/dist/src/nile-drawer/nile-drawer.test.js +106 -86
  124. package/dist/src/nile-drawer/nile-drawer.test.js.map +1 -1
  125. package/dist/src/nile-dropdown/nile-dropdown.test.js +104 -148
  126. package/dist/src/nile-dropdown/nile-dropdown.test.js.map +1 -1
  127. package/dist/src/nile-empty-state/nile-empty-state.test.js +107 -59
  128. package/dist/src/nile-empty-state/nile-empty-state.test.js.map +1 -1
  129. package/dist/src/nile-error-message/nile-error-message.test.js +105 -55
  130. package/dist/src/nile-error-message/nile-error-message.test.js.map +1 -1
  131. package/dist/src/nile-error-notification/nile-error-notification.test.d.ts +1 -0
  132. package/dist/src/nile-error-notification/nile-error-notification.test.js +108 -0
  133. package/dist/src/nile-error-notification/nile-error-notification.test.js.map +1 -0
  134. package/dist/src/nile-file-preview/nile-file-preview.css.js +2 -2
  135. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
  136. package/dist/src/nile-file-preview/nile-file-preview.d.ts +1 -4
  137. package/dist/src/nile-file-preview/nile-file-preview.js +21 -47
  138. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
  139. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +6 -6
  140. package/dist/src/nile-file-preview/nile-file-preview.template.js +53 -23
  141. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
  142. package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +0 -6
  143. package/dist/src/nile-file-preview/nile-file-preview.test.js +106 -28
  144. package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -1
  145. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +3 -2
  146. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +32 -7
  147. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
  148. package/dist/src/nile-file-upload/nile-file-upload.css.js +15 -5
  149. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
  150. package/dist/src/nile-file-upload/nile-file-upload.d.ts +4 -1
  151. package/dist/src/nile-file-upload/nile-file-upload.js +13 -1
  152. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
  153. package/dist/src/nile-file-upload/nile-file-upload.template.js +19 -15
  154. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
  155. package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +0 -6
  156. package/dist/src/nile-file-upload/nile-file-upload.test.js +106 -28
  157. package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -1
  158. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +17 -3
  159. package/dist/src/nile-file-upload/types/file-upload.enums.js +17 -1
  160. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
  161. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +2 -0
  162. package/dist/src/nile-file-upload/utils/drag-drop.util.js +14 -8
  163. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
  164. package/dist/src/nile-file-upload/utils/file-validation.util.js +89 -10
  165. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
  166. package/dist/src/nile-filter-chip/nile-filter-chip.test.js +102 -77
  167. package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -1
  168. package/dist/src/nile-form-error-message/nile-form-error-message.test.d.ts +1 -0
  169. package/dist/src/nile-form-error-message/nile-form-error-message.test.js +108 -0
  170. package/dist/src/nile-form-error-message/nile-form-error-message.test.js.map +1 -0
  171. package/dist/src/nile-form-group/nile-form-group.test.js +104 -51
  172. package/dist/src/nile-form-group/nile-form-group.test.js.map +1 -1
  173. package/dist/src/nile-form-help-text/nile-form-help-text.test.js +104 -84
  174. package/dist/src/nile-form-help-text/nile-form-help-text.test.js.map +1 -1
  175. package/dist/src/nile-format-date/nile-format-date.test.d.ts +1 -0
  176. package/dist/src/nile-format-date/nile-format-date.test.js +108 -0
  177. package/dist/src/nile-format-date/nile-format-date.test.js.map +1 -0
  178. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js +6 -5
  179. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js.map +1 -1
  180. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.d.ts +14 -0
  181. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js +24 -0
  182. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js.map +1 -1
  183. package/dist/src/nile-grid/nile-grid.d.ts +1 -0
  184. package/dist/src/nile-grid/nile-grid.js +5 -1
  185. package/dist/src/nile-grid/nile-grid.js.map +1 -1
  186. package/dist/src/nile-grid/nile-grid.utils.d.ts +6 -0
  187. package/dist/src/nile-grid/nile-grid.utils.js +13 -0
  188. package/dist/src/nile-grid/nile-grid.utils.js.map +1 -1
  189. package/dist/src/nile-heading/nile-heading.test.d.ts +1 -0
  190. package/dist/src/nile-heading/nile-heading.test.js +108 -0
  191. package/dist/src/nile-heading/nile-heading.test.js.map +1 -0
  192. package/dist/src/nile-hero/nile-hero.test.js +101 -38
  193. package/dist/src/nile-hero/nile-hero.test.js.map +1 -1
  194. package/dist/src/nile-icon/nile-icon.test.js +103 -40
  195. package/dist/src/nile-icon/nile-icon.test.js.map +1 -1
  196. package/dist/src/nile-icon-button/nile-icon-button.test.d.ts +1 -0
  197. package/dist/src/nile-icon-button/nile-icon-button.test.js +568 -0
  198. package/dist/src/nile-icon-button/nile-icon-button.test.js.map +1 -0
  199. package/dist/src/nile-inline-edit/nile-inline-edit.test.d.ts +1 -0
  200. package/dist/src/nile-inline-edit/nile-inline-edit.test.js +108 -0
  201. package/dist/src/nile-inline-edit/nile-inline-edit.test.js.map +1 -0
  202. package/dist/src/nile-input/nile-input.js +1 -1
  203. package/dist/src/nile-input/nile-input.js.map +1 -1
  204. package/dist/src/nile-input/nile-input.test.js +109 -139
  205. package/dist/src/nile-input/nile-input.test.js.map +1 -1
  206. package/dist/src/nile-link/nile-link.test.js +103 -67
  207. package/dist/src/nile-link/nile-link.test.js.map +1 -1
  208. package/dist/src/nile-list/nile-list.test.d.ts +1 -0
  209. package/dist/src/nile-list/nile-list.test.js +108 -0
  210. package/dist/src/nile-list/nile-list.test.js.map +1 -0
  211. package/dist/src/nile-list-item/nile-list-item.test.d.ts +1 -0
  212. package/dist/src/nile-list-item/nile-list-item.test.js +108 -0
  213. package/dist/src/nile-list-item/nile-list-item.test.js.map +1 -0
  214. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.d.ts +2 -0
  215. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.js +109 -0
  216. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.js.map +1 -0
  217. package/dist/src/nile-loader/nile-loader.test.js +107 -40
  218. package/dist/src/nile-loader/nile-loader.test.js.map +1 -1
  219. package/dist/src/nile-menu/nile-menu.test.d.ts +1 -0
  220. package/dist/src/nile-menu/nile-menu.test.js +113 -0
  221. package/dist/src/nile-menu/nile-menu.test.js.map +1 -0
  222. package/dist/src/nile-menu-item/nile-menu-item.test.d.ts +1 -0
  223. package/dist/src/nile-menu-item/nile-menu-item.test.js +113 -0
  224. package/dist/src/nile-menu-item/nile-menu-item.test.js.map +1 -0
  225. package/dist/src/nile-option/nile-option.test.d.ts +1 -0
  226. package/dist/src/nile-option/nile-option.test.js +108 -0
  227. package/dist/src/nile-option/nile-option.test.js.map +1 -0
  228. package/dist/src/nile-option-group/nile-option-group.test.d.ts +1 -0
  229. package/dist/src/nile-option-group/nile-option-group.test.js +108 -0
  230. package/dist/src/nile-option-group/nile-option-group.test.js.map +1 -0
  231. package/dist/src/nile-page-header/nile-page-header.test.d.ts +1 -0
  232. package/dist/src/nile-page-header/nile-page-header.test.js +108 -0
  233. package/dist/src/nile-page-header/nile-page-header.test.js.map +1 -0
  234. package/dist/src/nile-pagination/nile-pagination.test.d.ts +1 -0
  235. package/dist/src/nile-pagination/nile-pagination.test.js +108 -0
  236. package/dist/src/nile-pagination/nile-pagination.test.js.map +1 -0
  237. package/dist/src/nile-popover/nile-popover.test.js +103 -68
  238. package/dist/src/nile-popover/nile-popover.test.js.map +1 -1
  239. package/dist/src/nile-popup/nile-popup.test.js +104 -65
  240. package/dist/src/nile-popup/nile-popup.test.js.map +1 -1
  241. package/dist/src/nile-progress-bar/nile-progress-bar.test.js +104 -44
  242. package/dist/src/nile-progress-bar/nile-progress-bar.test.js.map +1 -1
  243. package/dist/src/nile-radio/nile-radio.test.js +103 -66
  244. package/dist/src/nile-radio/nile-radio.test.js.map +1 -1
  245. package/dist/src/nile-radio-group/nile-radio-group.test.d.ts +0 -1
  246. package/dist/src/nile-radio-group/nile-radio-group.test.js +105 -171
  247. package/dist/src/nile-radio-group/nile-radio-group.test.js.map +1 -1
  248. package/dist/src/nile-section-message/nile-section-message.test.d.ts +1 -0
  249. package/dist/src/nile-section-message/nile-section-message.test.js +108 -0
  250. package/dist/src/nile-section-message/nile-section-message.test.js.map +1 -0
  251. package/dist/src/nile-select/nile-select.test.d.ts +0 -5
  252. package/dist/src/nile-select/nile-select.test.js +105 -244
  253. package/dist/src/nile-select/nile-select.test.js.map +1 -1
  254. package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.d.ts +1 -0
  255. package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.js +108 -0
  256. package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.js.map +1 -0
  257. package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js +104 -50
  258. package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js.map +1 -1
  259. package/dist/src/nile-slider/nile-slider.test.d.ts +1 -0
  260. package/dist/src/nile-slider/nile-slider.test.js +108 -0
  261. package/dist/src/nile-slider/nile-slider.test.js.map +1 -0
  262. package/dist/src/nile-spinner/nile-spinner.test.d.ts +1 -0
  263. package/dist/src/nile-spinner/nile-spinner.test.js +569 -0
  264. package/dist/src/nile-spinner/nile-spinner.test.js.map +1 -0
  265. package/dist/src/nile-split-panel/nile-split-panel.test.d.ts +1 -0
  266. package/dist/src/nile-split-panel/nile-split-panel.test.js +108 -0
  267. package/dist/src/nile-split-panel/nile-split-panel.test.js.map +1 -0
  268. package/dist/src/nile-stepper/nile-stepper.test.d.ts +2 -0
  269. package/dist/src/nile-stepper/nile-stepper.test.js +109 -0
  270. package/dist/src/nile-stepper/nile-stepper.test.js.map +1 -0
  271. package/dist/src/nile-stepper-item/nile-stepper-item.test.d.ts +1 -0
  272. package/dist/src/nile-stepper-item/nile-stepper-item.test.js +108 -0
  273. package/dist/src/nile-stepper-item/nile-stepper-item.test.js.map +1 -0
  274. package/dist/src/nile-tab/nile-tab.test.d.ts +1 -0
  275. package/dist/src/nile-tab/nile-tab.test.js +108 -0
  276. package/dist/src/nile-tab/nile-tab.test.js.map +1 -0
  277. package/dist/src/nile-tab-group/nile-tab-group.test.js +105 -172
  278. package/dist/src/nile-tab-group/nile-tab-group.test.js.map +1 -1
  279. package/dist/src/nile-tab-panel/nile-tab-panel.test.d.ts +1 -0
  280. package/dist/src/nile-tab-panel/nile-tab-panel.test.js +108 -0
  281. package/dist/src/nile-tab-panel/nile-tab-panel.test.js.map +1 -0
  282. package/dist/src/nile-tag/nile-tag.test.d.ts +1 -0
  283. package/dist/src/nile-tag/nile-tag.test.js +574 -0
  284. package/dist/src/nile-tag/nile-tag.test.js.map +1 -0
  285. package/dist/src/nile-textarea/nile-textarea.test.d.ts +1 -1
  286. package/dist/src/nile-textarea/nile-textarea.test.js +105 -84
  287. package/dist/src/nile-textarea/nile-textarea.test.js.map +1 -1
  288. package/dist/src/nile-title/nile-title.test.d.ts +1 -0
  289. package/dist/src/nile-title/nile-title.test.js +108 -0
  290. package/dist/src/nile-title/nile-title.test.js.map +1 -0
  291. package/dist/src/nile-toast/nile-toast.test.d.ts +1 -0
  292. package/dist/src/nile-toast/nile-toast.test.js +526 -0
  293. package/dist/src/nile-toast/nile-toast.test.js.map +1 -0
  294. package/dist/src/nile-toolbar/nile-toolbar.test.d.ts +1 -0
  295. package/dist/src/nile-toolbar/nile-toolbar.test.js +108 -0
  296. package/dist/src/nile-toolbar/nile-toolbar.test.js.map +1 -0
  297. package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +1 -0
  298. package/dist/src/nile-tooltip/nile-tooltip.test.js +546 -0
  299. package/dist/src/nile-tooltip/nile-tooltip.test.js.map +1 -0
  300. package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +1 -7
  301. package/dist/src/nile-virtual-select/nile-virtual-select.test.js +105 -628
  302. package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -1
  303. package/dist/src/version.js +1 -1
  304. package/dist/src/version.js.map +1 -1
  305. package/dist/tsconfig.tsbuildinfo +1 -1
  306. package/package.json +1 -1
  307. package/rollup.config.js +7 -1
  308. package/src/nile-accordion/nile-accordian.test.ts +102 -116
  309. package/src/nile-auto-complete/nile-auto-complete.css.ts +1 -1
  310. package/src/nile-auto-complete/nile-auto-complete.test.ts +102 -145
  311. package/src/nile-auto-complete/nile-auto-complete.ts +1 -1
  312. package/src/nile-avatar/nile-avatar.test.ts +102 -112
  313. package/src/nile-badge/nile-badge.test.ts +642 -30
  314. package/src/nile-breadcrumb/nile-breadcrumb.test.ts +107 -0
  315. package/src/nile-breadcrumb-item/nile-breadcrumb-item.test.ts +106 -0
  316. package/src/nile-button/nile-button.test.ts +593 -61
  317. package/src/nile-button-filter/nile-button-filter.test.ts +106 -0
  318. package/src/nile-button-toggle/nile-button-toggle.test.ts +106 -0
  319. package/src/nile-button-toggle-group/nile-button-toggle-group.test.ts +104 -126
  320. package/src/nile-calendar/nile-calendar.test.ts +102 -406
  321. package/src/nile-card/nile-card.test.ts +103 -71
  322. package/src/nile-checkbox/nile-checkbox.test.ts +614 -108
  323. package/src/nile-chip/nile-chip.test.ts +102 -136
  324. package/src/nile-circular-progressbar/nile-circular-progressbar.test.ts +106 -0
  325. package/src/nile-date-picker/nile-date-picker.test.ts +106 -0
  326. package/src/nile-dialog/nile-dialog.test.ts +102 -164
  327. package/src/nile-divider/nile-divider.test.ts +659 -0
  328. package/src/nile-drawer/nile-drawer.test.ts +105 -105
  329. package/src/nile-dropdown/nile-dropdown.test.ts +102 -190
  330. package/src/nile-empty-state/nile-empty-state.test.ts +104 -67
  331. package/src/nile-error-message/nile-error-message.test.ts +104 -67
  332. package/src/nile-error-notification/nile-error-notification.test.ts +106 -0
  333. package/src/nile-file-preview/nile-file-preview.css.ts +2 -2
  334. package/src/nile-file-preview/nile-file-preview.template.ts +59 -23
  335. package/src/nile-file-preview/nile-file-preview.test.ts +105 -37
  336. package/src/nile-file-preview/nile-file-preview.ts +23 -56
  337. package/src/nile-file-preview/utils/nile-file-preview.util.ts +37 -8
  338. package/src/nile-file-upload/nile-file-upload.css.ts +15 -5
  339. package/src/nile-file-upload/nile-file-upload.template.ts +22 -18
  340. package/src/nile-file-upload/nile-file-upload.test.ts +105 -37
  341. package/src/nile-file-upload/nile-file-upload.ts +11 -3
  342. package/src/nile-file-upload/types/file-upload.enums.ts +20 -4
  343. package/src/nile-file-upload/utils/drag-drop.util.ts +20 -11
  344. package/src/nile-file-upload/utils/file-validation.util.ts +104 -22
  345. package/src/nile-filter-chip/nile-filter-chip.test.ts +103 -89
  346. package/src/nile-form-error-message/nile-form-error-message.test.ts +106 -0
  347. package/src/nile-form-group/nile-form-group.test.ts +103 -60
  348. package/src/nile-form-help-text/nile-form-help-text.test.ts +102 -106
  349. package/src/nile-format-date/nile-format-date.test.ts +106 -0
  350. package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.ts +7 -5
  351. package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.ts +28 -0
  352. package/src/nile-grid/nile-grid.ts +6 -1
  353. package/src/nile-grid/nile-grid.utils.ts +18 -1
  354. package/src/nile-heading/nile-heading.test.ts +106 -0
  355. package/src/nile-hero/nile-hero.test.ts +103 -42
  356. package/src/nile-icon/nile-icon.test.ts +103 -50
  357. package/src/nile-icon-button/nile-icon-button.test.ts +667 -0
  358. package/src/nile-inline-edit/nile-inline-edit.test.ts +106 -0
  359. package/src/nile-input/nile-input.test.ts +105 -164
  360. package/src/nile-input/nile-input.ts +1 -1
  361. package/src/nile-link/nile-link.test.ts +104 -81
  362. package/src/nile-list/nile-list.test.ts +106 -0
  363. package/src/nile-list-item/nile-list-item.test.ts +106 -0
  364. package/src/nile-lite-tooltip/nile-lite-tooltip.test.ts +107 -0
  365. package/src/nile-loader/nile-loader.test.ts +103 -48
  366. package/src/nile-menu/nile-menu.test.ts +106 -0
  367. package/src/nile-menu-item/nile-menu-item.test.ts +106 -0
  368. package/src/nile-option/nile-option.test.ts +106 -0
  369. package/src/nile-option-group/nile-option-group.test.ts +106 -0
  370. package/src/nile-page-header/nile-page-header.test.ts +106 -0
  371. package/src/nile-pagination/nile-pagination.test.ts +106 -0
  372. package/src/nile-popover/nile-popover.test.ts +103 -83
  373. package/src/nile-popup/nile-popup.test.ts +102 -82
  374. package/src/nile-progress-bar/nile-progress-bar.test.ts +103 -52
  375. package/src/nile-radio/nile-radio.test.ts +103 -78
  376. package/src/nile-radio-group/nile-radio-group.test.ts +104 -213
  377. package/src/nile-section-message/nile-section-message.test.ts +106 -0
  378. package/src/nile-select/nile-select.test.ts +105 -308
  379. package/src/nile-skeleton-loader/nile-skeleton-loader.test.ts +106 -0
  380. package/src/nile-slide-toggle/nile-slide-toggle.test.ts +103 -58
  381. package/src/nile-slider/nile-slider.test.ts +106 -0
  382. package/src/nile-spinner/nile-spinner.test.ts +668 -0
  383. package/src/nile-split-panel/nile-split-panel.test.ts +106 -0
  384. package/src/nile-stepper/nile-stepper.test.ts +107 -0
  385. package/src/nile-stepper-item/nile-stepper-item.test.ts +106 -0
  386. package/src/nile-tab/nile-tab.test.ts +106 -0
  387. package/src/nile-tab-group/nile-tab-group.test.ts +104 -211
  388. package/src/nile-tab-panel/nile-tab-panel.test.ts +106 -0
  389. package/src/nile-tag/nile-tag.test.ts +675 -0
  390. package/src/nile-textarea/nile-textarea.test.ts +104 -100
  391. package/src/nile-title/nile-title.test.ts +106 -0
  392. package/src/nile-toast/nile-toast.test.ts +625 -0
  393. package/src/nile-toolbar/nile-toolbar.test.ts +106 -0
  394. package/src/nile-tooltip/nile-tooltip.test.ts +645 -0
  395. package/src/nile-virtual-select/nile-virtual-select.test.ts +104 -772
  396. package/vscode-html-custom-data.json +8 -3
  397. package/web-test-runner.config.mjs +4 -2
  398. package/dist/axe.min-2720cd56.esm.js +0 -1
  399. package/dist/axe.min-69d47269.cjs.js +0 -2
  400. package/dist/axe.min-69d47269.cjs.js.map +0 -1
  401. package/dist/css-tag-bb10c0fa.cjs.js +0 -6
  402. package/dist/css-tag-bb10c0fa.cjs.js.map +0 -1
  403. package/dist/css-tag-dc564feb.esm.js +0 -6
  404. package/dist/fixture-958445f8.cjs.js +0 -395
  405. package/dist/fixture-958445f8.cjs.js.map +0 -1
  406. package/dist/fixture-985bba12.esm.js +0 -569
  407. package/dist/nile-accordion/nile-accordian.test.cjs.js +0 -2
  408. package/dist/nile-accordion/nile-accordian.test.cjs.js.map +0 -1
  409. package/dist/nile-accordion/nile-accordian.test.esm.js +0 -1
  410. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +0 -2
  411. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +0 -1
  412. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +0 -9
  413. package/dist/nile-avatar/nile-avatar.test.cjs.js +0 -2
  414. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +0 -1
  415. package/dist/nile-avatar/nile-avatar.test.esm.js +0 -11
  416. package/dist/nile-badge/nile-badge.test.cjs.js +0 -2
  417. package/dist/nile-badge/nile-badge.test.cjs.js.map +0 -1
  418. package/dist/nile-badge/nile-badge.test.esm.js +0 -1
  419. package/dist/nile-button/nile-button.test.cjs.js +0 -2
  420. package/dist/nile-button/nile-button.test.cjs.js.map +0 -1
  421. package/dist/nile-button/nile-button.test.esm.js +0 -4
  422. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +0 -2
  423. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js.map +0 -1
  424. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +0 -49
  425. package/dist/nile-calendar/nile-calendar.test.cjs.js +0 -2
  426. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +0 -1
  427. package/dist/nile-calendar/nile-calendar.test.esm.js +0 -11
  428. package/dist/nile-card/nile-card.test.cjs.js +0 -2
  429. package/dist/nile-card/nile-card.test.cjs.js.map +0 -1
  430. package/dist/nile-card/nile-card.test.esm.js +0 -51
  431. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +0 -2
  432. package/dist/nile-checkbox/nile-checkbox.test.cjs.js.map +0 -1
  433. package/dist/nile-checkbox/nile-checkbox.test.esm.js +0 -17
  434. package/dist/nile-chip/nile-chip.test.cjs.js +0 -2
  435. package/dist/nile-chip/nile-chip.test.cjs.js.map +0 -1
  436. package/dist/nile-chip/nile-chip.test.esm.js +0 -1
  437. package/dist/nile-dialog/nile-dialog.test.cjs.js +0 -2
  438. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +0 -1
  439. package/dist/nile-dialog/nile-dialog.test.esm.js +0 -7
  440. package/dist/nile-drawer/nile-drawer.test.cjs.js +0 -2
  441. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +0 -1
  442. package/dist/nile-drawer/nile-drawer.test.esm.js +0 -17
  443. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +0 -2
  444. package/dist/nile-dropdown/nile-dropdown.test.cjs.js.map +0 -1
  445. package/dist/nile-dropdown/nile-dropdown.test.esm.js +0 -28
  446. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +0 -2
  447. package/dist/nile-empty-state/nile-empty-state.test.cjs.js.map +0 -1
  448. package/dist/nile-empty-state/nile-empty-state.test.esm.js +0 -9
  449. package/dist/nile-error-message/nile-error-message.test.cjs.js +0 -2
  450. package/dist/nile-error-message/nile-error-message.test.cjs.js.map +0 -1
  451. package/dist/nile-error-message/nile-error-message.test.esm.js +0 -1
  452. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +0 -2
  453. package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +0 -1
  454. package/dist/nile-file-preview/nile-file-preview.test.esm.js +0 -1
  455. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +0 -2
  456. package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +0 -1
  457. package/dist/nile-file-upload/nile-file-upload.test.esm.js +0 -1
  458. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +0 -2
  459. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +0 -1
  460. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +0 -20
  461. package/dist/nile-form-group/nile-form-group.test.cjs.js +0 -2
  462. package/dist/nile-form-group/nile-form-group.test.cjs.js.map +0 -1
  463. package/dist/nile-form-group/nile-form-group.test.esm.js +0 -1
  464. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +0 -2
  465. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js.map +0 -1
  466. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +0 -1
  467. package/dist/nile-hero/nile-hero.test.cjs.js +0 -2
  468. package/dist/nile-hero/nile-hero.test.cjs.js.map +0 -1
  469. package/dist/nile-hero/nile-hero.test.esm.js +0 -14
  470. package/dist/nile-icon/nile-icon.test.cjs.js +0 -2
  471. package/dist/nile-icon/nile-icon.test.cjs.js.map +0 -1
  472. package/dist/nile-icon/nile-icon.test.esm.js +0 -1
  473. package/dist/nile-input/nile-input.test.cjs.js +0 -2
  474. package/dist/nile-input/nile-input.test.cjs.js.map +0 -1
  475. package/dist/nile-input/nile-input.test.esm.js +0 -17
  476. package/dist/nile-link/nile-link.test.cjs.js +0 -2
  477. package/dist/nile-link/nile-link.test.cjs.js.map +0 -1
  478. package/dist/nile-link/nile-link.test.esm.js +0 -1
  479. package/dist/nile-loader/nile-loader.test.cjs.js +0 -2
  480. package/dist/nile-loader/nile-loader.test.cjs.js.map +0 -1
  481. package/dist/nile-loader/nile-loader.test.esm.js +0 -1
  482. package/dist/nile-popover/nile-popover.test.cjs.js +0 -2
  483. package/dist/nile-popover/nile-popover.test.cjs.js.map +0 -1
  484. package/dist/nile-popover/nile-popover.test.esm.js +0 -21
  485. package/dist/nile-popup/nile-popup.test.cjs.js +0 -2
  486. package/dist/nile-popup/nile-popup.test.cjs.js.map +0 -1
  487. package/dist/nile-popup/nile-popup.test.esm.js +0 -1
  488. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +0 -2
  489. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js.map +0 -1
  490. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +0 -1
  491. package/dist/nile-radio/nile-radio.test.cjs.js +0 -2
  492. package/dist/nile-radio/nile-radio.test.cjs.js.map +0 -1
  493. package/dist/nile-radio/nile-radio.test.esm.js +0 -1
  494. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +0 -2
  495. package/dist/nile-radio-group/nile-radio-group.test.cjs.js.map +0 -1
  496. package/dist/nile-radio-group/nile-radio-group.test.esm.js +0 -57
  497. package/dist/nile-select/nile-select.test.cjs.js +0 -2
  498. package/dist/nile-select/nile-select.test.cjs.js.map +0 -1
  499. package/dist/nile-select/nile-select.test.esm.js +0 -55
  500. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +0 -2
  501. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js.map +0 -1
  502. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +0 -1
  503. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +0 -2
  504. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +0 -1
  505. package/dist/nile-tab-group/nile-tab-group.test.esm.js +0 -65
  506. package/dist/nile-textarea/nile-textarea.test.cjs.js +0 -2
  507. package/dist/nile-textarea/nile-textarea.test.cjs.js.map +0 -1
  508. package/dist/nile-textarea/nile-textarea.test.esm.js +0 -1
  509. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +0 -2
  510. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +0 -1
  511. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +0 -93
  512. package/dist/scopedElementsWrapper-31107e48.esm.js +0 -1
  513. package/dist/scopedElementsWrapper-9b188ea6.cjs.js +0 -2
  514. package/dist/scopedElementsWrapper-9b188ea6.cjs.js.map +0 -1
  515. package/dist/sinon-esm-68c8e378.esm.js +0 -1
  516. package/dist/sinon-esm-97570c13.cjs.js +0 -2
  517. package/dist/sinon-esm-97570c13.cjs.js.map +0 -1
@@ -1,30 +1,108 @@
1
- /**
2
- * Copyright Aquera Inc 2025
3
- *
4
- * This source code is licensed under the BSD-3-Clause license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- */
7
- import { fixture, assert, expect, html } from '@open-wc/testing';
8
- import './nile-file-preview'; // Just import to register the element
9
- describe('<nile-preview>', () => {
10
- let element;
11
- beforeEach(async () => {
12
- element = await fixture(html `<nile-file-preview></nile-file-preview>`);
13
- });
14
- it('passes accessibility test', async () => {
15
- await expect(element).to.be.accessible();
16
- });
17
- it('renders with the correct tag name', () => {
18
- expect(element.tagName.toLowerCase()).to.equal('nile-preview');
19
- });
20
- it('renders with slot content when provided', async () => {
21
- const testContent = 'Test Content';
22
- element = await fixture(html `<nile-file-preview>${testContent}</nile-file-preview>`);
23
- const slot = element.shadowRoot.querySelector('slot');
24
- assert.exists(slot, 'Slot should exist');
25
- const assignedNodes = slot.assignedNodes({ flatten: true });
26
- expect(assignedNodes.length).to.be.greaterThan(0);
27
- expect(assignedNodes[0].textContent?.trim()).to.equal(testContent);
28
- });
1
+ import { expect, fixture, html } from '@open-wc/testing';
2
+ import './nile-file-preview';
3
+ describe('NileFilePreview', () => {
4
+ it('1. renders', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el).to.exist; });
5
+ it('2. shadow root', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot).to.not.be.null; });
6
+ it('3. tag name', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.tagName.toLowerCase()).to.equal('nile-file-preview'); });
7
+ it('4. is defined', async () => { expect(customElements.get('nile-file-preview')).to.exist; });
8
+ it('5. has styles', async () => { expect((await import('./nile-file-preview')).NileFilePreview.styles).to.exist; });
9
+ it('6. shadow mode', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.mode).to.equal('open'); });
10
+ it('7. isConnected', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.isConnected).to.be.true; });
11
+ it('8. removal', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.remove(); expect(el.isConnected).to.be.false; });
12
+ it('9. outerHTML', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.outerHTML).to.contain('nile-file-preview'); });
13
+ it('10. matches', async () => { const el = await fixture(html `<nile-file-preview class="x"></nile-file-preview>`); expect(el.matches('.x')).to.be.true; });
14
+ it('11. closest', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.closest('nile-file-preview')).to.equal(el); });
15
+ it('12. cloneNode', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.cloneNode(true).tagName.toLowerCase()).to.equal('nile-file-preview'); });
16
+ it('13. dispatchEvent', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });
17
+ it('14. updateComplete', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });
18
+ it('15. render method', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.render).to.be.a('function'); });
19
+ it('16. shadowRoot host', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.host).to.equal(el); });
20
+ it('17. class attr', async () => { const el = await fixture(html `<nile-file-preview class="fp"></nile-file-preview>`); expect(el.classList.contains('fp')).to.be.true; });
21
+ it('18. id attr', async () => { const el = await fixture(html `<nile-file-preview id="fp1"></nile-file-preview>`); expect(el.id).to.equal('fp1'); });
22
+ it('19. hidden', async () => { const el = await fixture(html `<nile-file-preview hidden></nile-file-preview>`); expect(el.hidden).to.be.true; });
23
+ it('20. nodeType', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.nodeType).to.equal(1); });
24
+ it('21. localName', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.localName).to.equal('nile-file-preview'); });
25
+ it('22. namespaceURI', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });
26
+ it('23. ownerDocument', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.ownerDocument).to.equal(document); });
27
+ it('24. multiple instances', async () => { const c = await fixture(html `<div><nile-file-preview></nile-file-preview><nile-file-preview></nile-file-preview></div>`); expect(c.querySelectorAll('nile-file-preview').length).to.equal(2); });
28
+ it('25. parent-child', async () => { const c = await fixture(html `<div><nile-file-preview></nile-file-preview></div>`); expect(c.querySelector('nile-file-preview').parentElement).to.equal(c); });
29
+ it('26. createElement', async () => { const el = document.createElement('nile-file-preview'); document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });
30
+ it('27. dataset', async () => { const el = await fixture(html `<nile-file-preview data-idx="0"></nile-file-preview>`); expect(el.dataset.idx).to.equal('0'); });
31
+ it('28. classList add', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });
32
+ it('29. getBoundingClientRect', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.getBoundingClientRect()).to.exist; });
33
+ it('30. style attr', async () => { const el = await fixture(html `<nile-file-preview style="color:red"></nile-file-preview>`); expect(el.style.color).to.equal('red'); });
34
+ it('31. aria-label', async () => { const el = await fixture(html `<nile-file-preview aria-label="FP"></nile-file-preview>`); expect(el.getAttribute('aria-label')).to.equal('FP'); });
35
+ it('32. dir', async () => { const el = await fixture(html `<nile-file-preview dir="rtl"></nile-file-preview>`); expect(el.dir).to.equal('rtl'); });
36
+ it('33. lang attr', async () => { const el = await fixture(html `<nile-file-preview lang="en"></nile-file-preview>`); expect(el.lang).to.equal('en'); });
37
+ it('34. tabindex', async () => { const el = await fixture(html `<nile-file-preview tabindex="0"></nile-file-preview>`); expect(el.getAttribute('tabindex')).to.equal('0'); });
38
+ it('35. requestUpdate', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });
39
+ it('36. shadow childNodes', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.childNodes.length).to.be.greaterThan(0); });
40
+ it('37. scrollIntoView', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.scrollIntoView).to.be.a('function'); });
41
+ it('38. focus method', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.focus).to.be.a('function'); });
42
+ it('39. blur method', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.blur).to.be.a('function'); });
43
+ it('40. class toggle', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });
44
+ it('41. toggle hidden', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.hidden = true; expect(el.hidden).to.be.true; });
45
+ it('42. dispatchCustomEvent', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); let d; el.addEventListener('t', ((e) => { d = e.detail; })); el.dispatchEvent(new CustomEvent('t', { detail: 'x' })); expect(d).to.equal('x'); });
46
+ it('43. nested in div', async () => { const c = await fixture(html `<div><nile-file-preview></nile-file-preview></div>`); expect(c.querySelector('nile-file-preview')).to.exist; });
47
+ it('44. default errorMessage', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.errorMessage).to.equal(''); });
48
+ it('45. default fileUrl', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.fileUrl).to.equal(''); });
49
+ it('46. default uploadStatus', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.uploadStatus).to.equal(0); });
50
+ it('47. default state', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.state).to.exist; });
51
+ it('48. default variant', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.variant).to.exist; });
52
+ it('49. set errorMessage', async () => { const el = await fixture(html `<nile-file-preview error-message="Error"></nile-file-preview>`); expect(el.getAttribute('error-message')).to.equal('Error'); });
53
+ it('50. set fileUrl', async () => { const el = await fixture(html `<nile-file-preview file-url="http://test.com/f.png"></nile-file-preview>`); expect(el.getAttribute('file-url')).to.equal('http://test.com/f.png'); });
54
+ it('51. set inputFileName', async () => { const el = await fixture(html `<nile-file-preview input-file-name="test.png"></nile-file-preview>`); expect(el.getAttribute('input-file-name')).to.equal('test.png'); });
55
+ it('52. no canvas', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('canvas')).to.be.null; });
56
+ it('53. no video', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('video')).to.be.null; });
57
+ it('54. no audio', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('audio')).to.be.null; });
58
+ it('55. no nav', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nav')).to.be.null; });
59
+ it('56. no aside', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('aside')).to.be.null; });
60
+ it('57. no table', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('table')).to.be.null; });
61
+ it('58. no anchor', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('a')).to.be.null; });
62
+ it('59. no svg', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('svg')).to.be.null; });
63
+ it('60. no form', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('form')).to.be.null; });
64
+ it('61. title attr', async () => { const el = await fixture(html `<nile-file-preview title="FP"></nile-file-preview>`); expect(el.title).to.equal('FP'); });
65
+ it('62. no h1', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('h1')).to.be.null; });
66
+ it('63. no pre', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('pre')).to.be.null; });
67
+ it('64. no code', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('code')).to.be.null; });
68
+ it('65. no hr', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('hr')).to.be.null; });
69
+ it('66. no ul', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('ul')).to.be.null; });
70
+ it('67. no textarea', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('textarea')).to.be.null; });
71
+ it('68. no select', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('select')).to.be.null; });
72
+ it('69. no nile-badge', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-badge')).to.be.null; });
73
+ it('70. no nile-radio', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-radio')).to.be.null; });
74
+ it('71. no nile-dialog', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-dialog')).to.be.null; });
75
+ it('72. no nile-drawer', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-drawer')).to.be.null; });
76
+ it('73. no nile-slider', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-slider')).to.be.null; });
77
+ it('74. no nile-accordion', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-accordion')).to.be.null; });
78
+ it('75. setAttribute data', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });
79
+ it('76. removeAttribute hidden', async () => { const el = await fixture(html `<nile-file-preview hidden></nile-file-preview>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });
80
+ it('77. setAttribute class', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });
81
+ it('78. aria-describedby', async () => { const el = await fixture(html `<nile-file-preview aria-describedby="d"></nile-file-preview>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });
82
+ it('79. multiple re-renders', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); for (let i = 0; i < 3; i++) {
83
+ el.requestUpdate();
84
+ await el.updateComplete;
85
+ } expect(el.shadowRoot).to.not.be.null; });
86
+ it('80. contains', async () => { const el = await fixture(html `<nile-file-preview><span id="s1">C</span></nile-file-preview>`); expect(el.contains(el.querySelector('#s1'))).to.be.true; });
87
+ it('81. data attr', async () => { const el = await fixture(html `<nile-file-preview data-x="1"></nile-file-preview>`); expect(el.getAttribute('data-x')).to.equal('1'); });
88
+ it('82. role attr', async () => { const el = await fixture(html `<nile-file-preview role="img"></nile-file-preview>`); expect(el.getAttribute('role')).to.equal('img'); });
89
+ it('83. no section', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('section')).to.be.null; });
90
+ it('84. no header', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('header')).to.be.null; });
91
+ it('85. no footer', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('footer')).to.be.null; });
92
+ it('86. no main', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('main')).to.be.null; });
93
+ it('87. no article', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('article')).to.be.null; });
94
+ it('88. no nile-toolbar', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-toolbar')).to.be.null; });
95
+ it('89. no nile-link', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-link')).to.be.null; });
96
+ it('90. no nile-menu', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-menu')).to.be.null; });
97
+ it('91. no nile-textarea', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-textarea')).to.be.null; });
98
+ it('92. no nile-card', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-card')).to.be.null; });
99
+ it('93. no nile-tab', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-tab')).to.be.null; });
100
+ it('94. no nile-stepper', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-stepper')).to.be.null; });
101
+ it('95. no nile-pagination', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-pagination')).to.be.null; });
102
+ it('96. no nile-calendar', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-calendar')).to.be.null; });
103
+ it('97. no nile-select', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-select')).to.be.null; });
104
+ it('98. no nile-input', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-input')).to.be.null; });
105
+ it('99. no nile-checkbox', async () => { const el = await fixture(html `<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot.querySelector('nile-checkbox')).to.be.null; });
106
+ it('100. full integration', async () => { const el = await fixture(html `<nile-file-preview class="fp" id="fp1" error-message="" input-file-name="doc.pdf"></nile-file-preview>`); expect(el.id).to.equal('fp1'); expect(el.shadowRoot).to.not.be.null; expect(el.getAttribute('error-message')).to.equal(''); expect(el.getAttribute('input-file-name')).to.equal('doc.pdf'); });
29
107
  });
30
108
  //# sourceMappingURL=nile-file-preview.test.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-file-preview.test.js","sourceRoot":"","sources":["../../../src/nile-file-preview/nile-file-preview.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,qBAAqB,CAAC,CAAC,sCAAsC;AAEpE,QAAQ,CAAC,gBAAgB,EAAE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is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n \nimport { fixture, assert, expect, html } from '@open-wc/testing';\nimport './nile-file-preview'; // Just import to register the element\n\ndescribe('<nile-preview>', () => {\n let element: HTMLElement;\n\n beforeEach(async () => {\n element = await fixture(html`<nile-file-preview></nile-file-preview>`);\n });\n\n it('passes accessibility test', async () => {\n await expect(element).to.be.accessible();\n });\n\n it('renders with the correct tag name', () => {\n expect(element.tagName.toLowerCase()).to.equal('nile-preview');\n });\n\n it('renders with slot content when provided', async () => {\n const testContent = 'Test Content';\n element = await fixture(html`<nile-file-preview>${testContent}</nile-file-preview>`);\n \n const slot = (element.shadowRoot!.querySelector('slot') as HTMLSlotElement);\n assert.exists(slot, 'Slot should exist');\n\n const assignedNodes = slot.assignedNodes({ flatten: true });\n expect(assignedNodes.length).to.be.greaterThan(0);\n expect(assignedNodes[0].textContent?.trim()).to.equal(testContent);\n });\n});"]}
1
+ {"version":3,"file":"nile-file-preview.test.js","sourceRoot":"","sources":["../../../src/nile-file-preview/nile-file-preview.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,qBAAqB,CAAC;AAG7B,QAAQ,CAAC,iBAAiB,EAAE,GAAG,EAAE;IAC/B,EAAE,CAAC,YAAY,EAAE,KAAK,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,OAAO,CAAkB,IAAI,CAAA,yCAAyC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;IACjJ,EAAE,CAAC,gBAAgB,EAAE,KAAK,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,OAAO,CAAkB,IAAI,CAAA,yCAAyC,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,GAAG,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AC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,UAAW,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;IACxM,EAAE,CAAC,uBAAuB,EAAE,KAAK,IAAI,EAAE,GAAG,MAAM,EAAE,GAAG,MAAM,OAAO,CAAkB,IAAI,CAAA,wGAAwG,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,YAAY,CAAC,iBAAiB,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACpY,CAAC,CAAC,CAAC","sourcesContent":["import { expect, fixture, html } from '@open-wc/testing';\nimport './nile-file-preview';\nimport type { NileFilePreview } from './nile-file-preview';\n\ndescribe('NileFilePreview', () => {\n it('1. renders', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el).to.exist; });\n it('2. shadow root', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot).to.not.be.null; });\n it('3. tag name', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.tagName.toLowerCase()).to.equal('nile-file-preview'); });\n it('4. is defined', async () => { expect(customElements.get('nile-file-preview')).to.exist; });\n it('5. has styles', async () => { expect((await import('./nile-file-preview')).NileFilePreview.styles).to.exist; });\n it('6. shadow mode', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.mode).to.equal('open'); });\n it('7. isConnected', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.isConnected).to.be.true; });\n it('8. removal', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.remove(); expect(el.isConnected).to.be.false; });\n it('9. outerHTML', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.outerHTML).to.contain('nile-file-preview'); });\n it('10. matches', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview class=\"x\"></nile-file-preview>`); expect(el.matches('.x')).to.be.true; });\n it('11. closest', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.closest('nile-file-preview')).to.equal(el); });\n it('12. cloneNode', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect((el.cloneNode(true) as Element).tagName.toLowerCase()).to.equal('nile-file-preview'); });\n it('13. dispatchEvent', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); let f = false; el.addEventListener('c', () => (f = true)); el.dispatchEvent(new Event('c')); expect(f).to.be.true; });\n it('14. updateComplete', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); const r = await el.updateComplete; expect(r).to.not.be.undefined; });\n it('15. render method', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.render).to.be.a('function'); });\n it('16. shadowRoot host', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.host).to.equal(el); });\n it('17. class attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview class=\"fp\"></nile-file-preview>`); expect(el.classList.contains('fp')).to.be.true; });\n it('18. id attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview id=\"fp1\"></nile-file-preview>`); expect(el.id).to.equal('fp1'); });\n it('19. hidden', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview hidden></nile-file-preview>`); expect(el.hidden).to.be.true; });\n it('20. nodeType', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.nodeType).to.equal(1); });\n it('21. localName', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.localName).to.equal('nile-file-preview'); });\n it('22. namespaceURI', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.namespaceURI).to.equal('http://www.w3.org/1999/xhtml'); });\n it('23. ownerDocument', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.ownerDocument).to.equal(document); });\n it('24. multiple instances', async () => { const c = await fixture(html`<div><nile-file-preview></nile-file-preview><nile-file-preview></nile-file-preview></div>`); expect(c.querySelectorAll('nile-file-preview').length).to.equal(2); });\n it('25. parent-child', async () => { const c = await fixture(html`<div><nile-file-preview></nile-file-preview></div>`); expect(c.querySelector('nile-file-preview')!.parentElement).to.equal(c); });\n it('26. createElement', async () => { const el = document.createElement('nile-file-preview') as NileFilePreview; document.body.appendChild(el); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; document.body.removeChild(el); });\n it('27. dataset', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview data-idx=\"0\"></nile-file-preview>`); expect(el.dataset.idx).to.equal('0'); });\n it('28. classList add', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.classList.add('z'); expect(el.classList.contains('z')).to.be.true; });\n it('29. getBoundingClientRect', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.getBoundingClientRect()).to.exist; });\n it('30. style attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview style=\"color:red\"></nile-file-preview>`); expect(el.style.color).to.equal('red'); });\n it('31. aria-label', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview aria-label=\"FP\"></nile-file-preview>`); expect(el.getAttribute('aria-label')).to.equal('FP'); });\n it('32. dir', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview dir=\"rtl\"></nile-file-preview>`); expect(el.dir).to.equal('rtl'); });\n it('33. lang attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview lang=\"en\"></nile-file-preview>`); expect(el.lang).to.equal('en'); });\n it('34. tabindex', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview tabindex=\"0\"></nile-file-preview>`); expect(el.getAttribute('tabindex')).to.equal('0'); });\n it('35. requestUpdate', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.requestUpdate(); await el.updateComplete; expect(el.shadowRoot).to.not.be.null; });\n it('36. shadow childNodes', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.childNodes.length).to.be.greaterThan(0); });\n it('37. scrollIntoView', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.scrollIntoView).to.be.a('function'); });\n it('38. focus method', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.focus).to.be.a('function'); });\n it('39. blur method', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.blur).to.be.a('function'); });\n it('40. class toggle', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.classList.toggle('a'); expect(el.classList.contains('a')).to.be.true; });\n it('41. toggle hidden', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.hidden = true; expect(el.hidden).to.be.true; });\n it('42. dispatchCustomEvent', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); 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'); });\n it('43. nested in div', async () => { const c = await fixture(html`<div><nile-file-preview></nile-file-preview></div>`); expect(c.querySelector('nile-file-preview')).to.exist; });\n it('44. default errorMessage', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.errorMessage).to.equal(''); });\n it('45. default fileUrl', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.fileUrl).to.equal(''); });\n it('46. default uploadStatus', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.uploadStatus).to.equal(0); });\n it('47. default state', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.state).to.exist; });\n it('48. default variant', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.variant).to.exist; });\n it('49. set errorMessage', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview error-message=\"Error\"></nile-file-preview>`); expect(el.getAttribute('error-message')).to.equal('Error'); });\n it('50. set fileUrl', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview file-url=\"http://test.com/f.png\"></nile-file-preview>`); expect(el.getAttribute('file-url')).to.equal('http://test.com/f.png'); });\n it('51. set inputFileName', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview input-file-name=\"test.png\"></nile-file-preview>`); expect(el.getAttribute('input-file-name')).to.equal('test.png'); });\n it('52. no canvas', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('canvas')).to.be.null; });\n it('53. no video', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('video')).to.be.null; });\n it('54. no audio', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('audio')).to.be.null; });\n it('55. no nav', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nav')).to.be.null; });\n it('56. no aside', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('aside')).to.be.null; });\n it('57. no table', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('table')).to.be.null; });\n it('58. no anchor', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('a')).to.be.null; });\n it('59. no svg', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('svg')).to.be.null; });\n it('60. no form', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('form')).to.be.null; });\n it('61. title attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview title=\"FP\"></nile-file-preview>`); expect(el.title).to.equal('FP'); });\n it('62. no h1', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('h1')).to.be.null; });\n it('63. no pre', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('pre')).to.be.null; });\n it('64. no code', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('code')).to.be.null; });\n it('65. no hr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('hr')).to.be.null; });\n it('66. no ul', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('ul')).to.be.null; });\n it('67. no textarea', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('textarea')).to.be.null; });\n it('68. no select', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('select')).to.be.null; });\n it('69. no nile-badge', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-badge')).to.be.null; });\n it('70. no nile-radio', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-radio')).to.be.null; });\n it('71. no nile-dialog', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-dialog')).to.be.null; });\n it('72. no nile-drawer', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-drawer')).to.be.null; });\n it('73. no nile-slider', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-slider')).to.be.null; });\n it('74. no nile-accordion', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-accordion')).to.be.null; });\n it('75. setAttribute data', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.setAttribute('data-test', '1'); expect(el.dataset.test).to.equal('1'); });\n it('76. removeAttribute hidden', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview hidden></nile-file-preview>`); el.removeAttribute('hidden'); expect(el.hidden).to.be.false; });\n it('77. setAttribute class', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); el.setAttribute('class', 'test'); expect(el.classList.contains('test')).to.be.true; });\n it('78. aria-describedby', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview aria-describedby=\"d\"></nile-file-preview>`); expect(el.getAttribute('aria-describedby')).to.equal('d'); });\n it('79. multiple re-renders', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); for (let i = 0; i < 3; i++) { el.requestUpdate(); await el.updateComplete; } expect(el.shadowRoot).to.not.be.null; });\n it('80. contains', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview><span id=\"s1\">C</span></nile-file-preview>`); expect(el.contains(el.querySelector('#s1'))).to.be.true; });\n it('81. data attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview data-x=\"1\"></nile-file-preview>`); expect(el.getAttribute('data-x')).to.equal('1'); });\n it('82. role attr', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview role=\"img\"></nile-file-preview>`); expect(el.getAttribute('role')).to.equal('img'); });\n it('83. no section', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('section')).to.be.null; });\n it('84. no header', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('header')).to.be.null; });\n it('85. no footer', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('footer')).to.be.null; });\n it('86. no main', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('main')).to.be.null; });\n it('87. no article', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('article')).to.be.null; });\n it('88. no nile-toolbar', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-toolbar')).to.be.null; });\n it('89. no nile-link', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-link')).to.be.null; });\n it('90. no nile-menu', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-menu')).to.be.null; });\n it('91. no nile-textarea', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-textarea')).to.be.null; });\n it('92. no nile-card', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-card')).to.be.null; });\n it('93. no nile-tab', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-tab')).to.be.null; });\n it('94. no nile-stepper', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-stepper')).to.be.null; });\n it('95. no nile-pagination', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-pagination')).to.be.null; });\n it('96. no nile-calendar', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-calendar')).to.be.null; });\n it('97. no nile-select', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-select')).to.be.null; });\n it('98. no nile-input', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-input')).to.be.null; });\n it('99. no nile-checkbox', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview></nile-file-preview>`); expect(el.shadowRoot!.querySelector('nile-checkbox')).to.be.null; });\n it('100. full integration', async () => { const el = await fixture<NileFilePreview>(html`<nile-file-preview class=\"fp\" id=\"fp1\" error-message=\"\" input-file-name=\"doc.pdf\"></nile-file-preview>`); expect(el.id).to.equal('fp1'); expect(el.shadowRoot).to.not.be.null; expect(el.getAttribute('error-message')).to.equal(''); expect(el.getAttribute('input-file-name')).to.equal('doc.pdf'); });\n});\n"]}
@@ -2,7 +2,8 @@ import NileFilePreview from "../nile-file-preview";
2
2
  import { RemoveFileDetail } from "../types";
3
3
  export declare const generatePreviewUrl: (file: File) => Promise<string>;
4
4
  export declare const removeFile: (removeFile: File, e: CustomEvent<RemoveFileDetail>, originalUrl: string) => void;
5
- export declare const cancelFileUpload: (file: File, e: CustomEvent<RemoveFileDetail>) => void;
5
+ export declare const cancelFileUpload: (file: File, e: CustomEvent<RemoveFileDetail>, nileFilePreview: NileFilePreview) => void;
6
6
  export declare const formatFileSize: (bytes: number) => string;
7
- export declare const getFileType: (type: string) => string;
7
+ export declare const getFileType: (file: File, showFileType: boolean) => string;
8
8
  export declare const truncateString: (nileFilePreview: NileFilePreview) => void;
9
+ export declare const isRealImage: (file: File) => Promise<boolean>;
@@ -1,4 +1,4 @@
1
- import { FilePreviewEvent, FilePreviewErrorMessages } from "../types";
1
+ import { FilePreviewEvent, FilePreviewErrorMessages, FilePreviewState } from "../types";
2
2
  export const generatePreviewUrl = (file) => {
3
3
  return new Promise((resolve, reject) => {
4
4
  const reader = new FileReader();
@@ -26,19 +26,22 @@ export const removeFile = (removeFile, e, originalUrl) => {
26
26
  }));
27
27
  }
28
28
  };
29
- export const cancelFileUpload = (file, e) => {
29
+ export const cancelFileUpload = (file, e, nileFilePreview) => {
30
30
  if (e.target) {
31
31
  e.target.dispatchEvent(new CustomEvent(FilePreviewEvent.NILE_CANCEL_UPLOAD, {
32
32
  detail: { file: file },
33
33
  bubbles: true,
34
34
  composed: true,
35
35
  }));
36
+ nileFilePreview.state = FilePreviewState.ERROR;
37
+ nileFilePreview.errorMessage = FilePreviewErrorMessages.UPLOAD_CANCEL;
38
+ nileFilePreview.requestUpdate();
36
39
  }
37
40
  };
38
41
  export const formatFileSize = (bytes) => {
39
- const kb = bytes / 1024;
40
- const mb = kb / 1024;
41
- const gb = mb / 1024;
42
+ const kb = bytes / 1000;
43
+ const mb = bytes / 1000000;
44
+ const gb = bytes / 1000000000;
42
45
  if (gb >= 1)
43
46
  return gb.toFixed(2) + ' GB';
44
47
  if (mb >= 1)
@@ -47,8 +50,14 @@ export const formatFileSize = (bytes) => {
47
50
  return kb.toFixed(2) + ' KB';
48
51
  return bytes + ' B';
49
52
  };
50
- export const getFileType = (type) => {
51
- return type.split('/')[1].toUpperCase();
53
+ export const getFileType = (file, showFileType) => {
54
+ if (showFileType) {
55
+ return file.name.split('.').pop() || '';
56
+ }
57
+ const type = file.type || '';
58
+ const parts = type.split('/');
59
+ const subtype = parts[1] || '';
60
+ return subtype.toUpperCase();
52
61
  };
53
62
  export const truncateString = (nileFilePreview) => {
54
63
  if (nileFilePreview.variant === 'vertical' && nileFilePreview.errorMessage.length > 34) {
@@ -60,4 +69,20 @@ export const truncateString = (nileFilePreview) => {
60
69
  nileFilePreview.requestUpdate();
61
70
  }
62
71
  };
72
+ export const isRealImage = (file) => {
73
+ return new Promise((resolve) => {
74
+ const blob = new Blob([file], { type: file.type });
75
+ const url = URL.createObjectURL(blob);
76
+ const img = new Image();
77
+ img.onload = () => {
78
+ URL.revokeObjectURL(url);
79
+ resolve(true);
80
+ };
81
+ img.onerror = () => {
82
+ URL.revokeObjectURL(url);
83
+ resolve(false);
84
+ };
85
+ img.src = url;
86
+ });
87
+ };
63
88
  //# sourceMappingURL=nile-file-preview.util.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-file-preview.util.js","sourceRoot":"","sources":["../../../../src/nile-file-preview/utils/nile-file-preview.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,gBAAgB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAExF,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAU,EAAmB,EAAE;IAChE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAAM,MAAM,GAAG,IAAI,UAAU,EAAE,CAAC;QAEhC,IAAI,IAAI,EAAE,CAAC;YACT,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,wBAAwB,CAAC,gBAAgB,CAAC,CAAC;QACpD,CAAC;QAED,MAAM,CAAC,MAAM,GAAG,GAAG,EAAE;YACnB,MAAM,UAAU,GAAG,MAAM,CAAC,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AAC,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IAC1C,IAAI,EAAE,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IAC1C,IAAI,EAAE,IAAI,CAAC;QAAE,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC;IAC1C,OAAO,KAAK,GAAG,IAAI,CAAC;AACtB,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,IAAY,EAAU,EAAE;IAClD,OAAO,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;AAC1C,CAAC,CAAA;AAED,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,eAAgC,EAAQ,EAAE;IACvE,IAAG,eAAe,CAAC,OAAO,KAAK,UAAU,IAAI,eAAe,CAAC,YAAY,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QACtF,eAAe,CAAC,iBAAiB,GAAG,IAAI,CAAC;QACzC,eAAe,CAAC,aAAa,EAAE,CAAC;IAClC,CAAC;SAAM,IAAG,eAAe,CAAC,OAAO,KAAK,YAAY,IAAI,eAAe,CAAC,YAAY,CAAC,MAAM,GAAG,EAAE,EAAE,CAAC;QAC/F,eAAe,CAAC,iBAAiB,GAAG,IAAI,CAAC;QACzC,eAAe,CAAC,aAAa,EAAE,CAAC;IAClC,CAAC;AACH,CAAC,CAAA","sourcesContent":["import NileFilePreview from \"../nile-file-preview\";\nimport { RemoveFileDetail, FilePreviewEvent, FilePreviewErrorMessages } from \"../types\";\n\nexport const generatePreviewUrl = (file: File): Promise<string> => {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n\n if (file) {\n reader.readAsDataURL(file);\n } else {\n reject(FilePreviewErrorMessages.NO_FILE_SELECTED);\n }\n\n reader.onload = () => {\n const previewUrl = reader.result as string;\n resolve(previewUrl);\n };\n\n reader.onerror = (error) => {\n reject(FilePreviewErrorMessages.UNABLE_TO_GENEARTE_URL);\n }\n });\n}\n\nexport const removeFile = (removeFile: File, e: CustomEvent<RemoveFileDetail>, originalUrl: string): void => {\n if (e.target) {\n e.target.dispatchEvent(\n new CustomEvent(FilePreviewEvent.NILE_REMOVE, {\n detail: { value: removeFile, url: originalUrl },\n bubbles: true,\n composed: true,\n })\n );\n }\n};\n\nexport const cancelFileUpload = (file: File, e: CustomEvent<RemoveFileDetail>) => {\n if(e.target) {\n e.target.dispatchEvent(\n new CustomEvent(FilePreviewEvent.NILE_CANCEL_UPLOAD, {\n detail: { file: file },\n bubbles: true,\n composed: true,\n })\n );\n }\n}\n\nexport const formatFileSize = (bytes: number): string => {\n const kb = bytes / 1024;\n const mb = kb / 1024;\n const gb = mb / 1024;\n\n if (gb >= 1) return gb.toFixed(2) + ' GB';\n if (mb >= 1) return mb.toFixed(2) + ' MB';\n if (kb >= 1) return kb.toFixed(2) + ' KB';\n return bytes + ' B';\n}\n\nexport const getFileType = (type: string): string => {\n return type.split('/')[1].toUpperCase();\n}\n\nexport const truncateString = (nileFilePreview: NileFilePreview): void => {\n if(nileFilePreview.variant === 'vertical' && nileFilePreview.errorMessage.length > 34) {\n nileFilePreview.isStringTruncated = true;\n nileFilePreview.requestUpdate();\n } else if(nileFilePreview.variant === 'horizontal' && nileFilePreview.errorMessage.length > 96) {\n nileFilePreview.isStringTruncated = true;\n nileFilePreview.requestUpdate();\n }\n}"]}
1
+ {"version":3,"file":"nile-file-preview.util.js","sourceRoot":"","sources":["../../../../src/nile-file-preview/utils/nile-file-preview.util.ts"],"names":[],"mappings":"AACA,OAAO,EAAoB,gBAAgB,EAAE,wBAAwB,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE1G,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,IAAU,EAAmB,EAAE;IAChE,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE;QACrC,MAA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ewEvent, FilePreviewErrorMessages, FilePreviewState } from \"../types\";\n\nexport const generatePreviewUrl = (file: File): Promise<string> => {\n return new Promise((resolve, reject) => {\n const reader = new FileReader();\n\n if (file) {\n reader.readAsDataURL(file);\n } else {\n reject(FilePreviewErrorMessages.NO_FILE_SELECTED);\n }\n\n reader.onload = () => {\n const previewUrl = reader.result as string;\n resolve(previewUrl);\n };\n\n reader.onerror = (error) => {\n reject(FilePreviewErrorMessages.UNABLE_TO_GENEARTE_URL);\n }\n });\n}\n\nexport const removeFile = (removeFile: File, e: CustomEvent<RemoveFileDetail>, originalUrl: string): void => {\n if (e.target) {\n e.target.dispatchEvent(\n new CustomEvent(FilePreviewEvent.NILE_REMOVE, {\n detail: { value: removeFile, url: originalUrl },\n bubbles: true,\n composed: true,\n })\n );\n }\n};\n\nexport const cancelFileUpload = (file: File, e: CustomEvent<RemoveFileDetail>, nileFilePreview: NileFilePreview) => {\n if(e.target) {\n e.target.dispatchEvent(\n new CustomEvent(FilePreviewEvent.NILE_CANCEL_UPLOAD, {\n detail: { file: file },\n bubbles: true,\n composed: true,\n })\n );\n nileFilePreview.state = FilePreviewState.ERROR;\n nileFilePreview.errorMessage = FilePreviewErrorMessages.UPLOAD_CANCEL;\n nileFilePreview.requestUpdate();\n }\n}\n\nexport const formatFileSize = (bytes: number): string => {\n const kb = bytes / 1000;\n const mb = bytes / 1_000_000;\n const gb = bytes / 1_000_000_000;\n\n if (gb >= 1) return gb.toFixed(2) + ' GB';\n if (mb >= 1) return mb.toFixed(2) + ' MB';\n if (kb >= 1) return kb.toFixed(2) + ' KB';\n return bytes + ' B';\n};\n\nexport const getFileType = (file: File, showFileType: boolean): string => {\n if(showFileType) {\n return file.name.split('.').pop() || '';\n }\n const type = file.type || '';\n const parts = type.split('/');\n const subtype = parts[1] || '';\n return subtype.toUpperCase();\n}\n\nexport const truncateString = (nileFilePreview: NileFilePreview): void => {\n if(nileFilePreview.variant === 'vertical' && nileFilePreview.errorMessage.length > 34) {\n nileFilePreview.isStringTruncated = true;\n nileFilePreview.requestUpdate();\n } else if(nileFilePreview.variant === 'horizontal' && nileFilePreview.errorMessage.length > 96) {\n nileFilePreview.isStringTruncated = true;\n nileFilePreview.requestUpdate();\n }\n}\n\nexport const isRealImage = (file: File): Promise<boolean> => {\n return new Promise((resolve) => {\n const blob = new Blob([file], { type: file.type });\n const url = URL.createObjectURL(blob);\n const img = new Image();\n\n img.onload = () => {\n URL.revokeObjectURL(url);\n resolve(true);\n };\n\n img.onerror = () => {\n URL.revokeObjectURL(url);\n resolve(false);\n };\n\n img.src = url;\n });\n}"]}
@@ -11,6 +11,7 @@ import { css } from 'lit';
11
11
  export const styles = css `
12
12
  :host {
13
13
  display: inline-block;
14
+ width: 100%;
14
15
  }
15
16
 
16
17
  * {
@@ -24,7 +25,7 @@ export const styles = css `
24
25
  flex-direction: column;
25
26
  justify-content: center;
26
27
  align-items: flex-start;
27
- width: min-content;
28
+ width: 100%;
28
29
  }
29
30
 
30
31
  input {
@@ -32,10 +33,8 @@ export const styles = css `
32
33
  }
33
34
 
34
35
  .horizontal-div {
35
- margin-bottom: 10px;
36
36
  height: 62px;
37
- max-width: 648px;
38
- width: 648px;
37
+ width: 100%;
39
38
  min-width: 230px;
40
39
  padding: 12px;
41
40
  display: flex;
@@ -48,6 +47,16 @@ export const styles = css `
48
47
  background-color: var(--nile-colors-white-base);
49
48
  }
50
49
 
50
+ @media (width < 400px) {
51
+ .browse-file-button {
52
+ display: none;
53
+ }
54
+
55
+ .horizontal-div {
56
+ cursor: pointer;
57
+ }
58
+ }
59
+
51
60
  .hover-border {
52
61
  border-color: var(--nile-colors-primary-600);
53
62
  }
@@ -88,7 +97,6 @@ export const styles = css `
88
97
  border: 1px dashed var(--nile-colors-neutral-500);
89
98
  background-color: var(--nile-colors-white-base);
90
99
  position: relative;
91
- margin-bottom: 10px;
92
100
  }
93
101
 
94
102
  .vertical-div:hover {
@@ -591,6 +599,7 @@ export const styles = css `
591
599
  justify-content: flex-start;
592
600
  align-items: center;
593
601
  gap: var(--nile-spacing-one-half-x);
602
+ margin-top: 10px;
594
603
  }
595
604
 
596
605
  .upload-error > nile-tooltip > span {
@@ -605,6 +614,7 @@ export const styles = css `
605
614
  .vertical-upload-error {
606
615
  display: flex;
607
616
  gap: 4px;
617
+ margin-top: 10px;
608
618
  }
609
619
 
610
620
  .vertical-upload-error nile-tooltip span, .vertical-upload-error span {
@@ -1 +1 @@
1
- {"version":3,"file":"nile-file-upload.css.js","sourceRoot":"","sources":["../../../src/nile-file-upload/nile-file-upload.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAimBxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * FileUpload CSS\n */\nexport const styles = css`\n :host {\n display: inline-block;\n }\n\n * {\n padding: 0px;\n margin: 0px;\n box-sizing: border-box;\n }\n\n .wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n width: min-content;\n }\n\n input {\n display: none;\n }\n\n .horizontal-div {\n margin-bottom: 10px;\n height: 62px;\n max-width: 648px;\n width: 648px;\n min-width: 230px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 18px;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px dashed var(--nile-colors-neutral-500);\n color: var(--nile-colors-dark-900);\n background-color: var(--nile-colors-white-base);\n }\n\n .hover-border {\n border-color: var(--nile-colors-primary-600);\n }\n\n .title {\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 454px;\n width: 100%;\n }\n\n .subtitle {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-500);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 454px;\n }\n\n .vertical-div {\n min-height: 156px;\n height: auto;\n min-width: 240px;\n width: 240px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n padding: 12px;\n border-radius: var(--nile-radius-radius-xs);\n color: var(--nile-colors-dark-900);\n border: 1px dashed var(--nile-colors-neutral-500);\n background-color: var(--nile-colors-white-base);\n position: relative;\n margin-bottom: 10px;\n }\n\n .vertical-div:hover {\n border-color: var(--nile-colors-blue-500);\n }\n\n .outer-div-border {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .inner-div {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 18px;\n box-sizing: border-box;\n }\n\n .content {\n display: flex; \n flex-direction: column;\n justify-content: center;\n gap: 8px;\n }\n\n .content h4 {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 454px;\n }\n \n .content p {\n margin: 0px;\n font-size: var(--nile-type-scale-2);\n color: var(--nile-colors-neutral-700);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 454px;\n }\n\n ::slotted(img), ::slotted(nile-icon), ::slotted(video) {\n --nile-svg-height: 24px !important ;\n --nile-svg-width: 24px !important ;\n height:42px;\n width: 42px;\n object-fit: cover;\n }\n\n .browse-file-button {\n cursor: pointer;\n }\n\n /* DISABLED STATE */\n .disable {\n background-color: var(--nile-colors-dark-200);\n opacity: 0.8;\n cursor: not-allowed;\n color: var(--nile-colors-neutral-500);\n pointer-events: none;\n }\n\n /* DRAGGING */\n .dragging {\n background-color: var(--nile-colors-blue-100);\n border-color: var(--nile-colors-primary-600);\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 18px;\n color: var(--nile-colors-blue-700);\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .icons-container {\n display: flex;\n gap: 4px;\n }\n\n .general-icon {\n transform: rotate(-18.11deg);\n position: relative;\n bottom: 3px;\n }\n\n .image-icon {\n transform: rotate(15deg);\n }\n\n .icon:hover {\n cursor: pointer;\n }\n\n /* Uploading State */\n .uploading {\n width: 648px;\n min-width: 230px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 18px;\n box-sizing: border-box;\n border: 1px solid var(--nile-colors-neutral-400)\n }\n \n .uploading:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .progress-bar-container {\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 0px;\n }\n\n .progress-bar-percent {\n width: 100%;\n display: flex;\n justify-content: space-between;\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .progress-bar-container p {\n margin: 0px;\n }\n\n .progress-bar-container > p {\n font-size: var(--nile-type-scale-1);\n color: var(--nile-colors-dark-500);\n }\n\n /* PREVIEW STATE */\n .preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .preview-inner {\n display: flex;\n gap: 18px;\n }\n\n .preview-image-container {\n height: 42px;\n width: 42px;\n }\n\n .preview-image-container img {\n height: 42px;\n width: 42px;\n object-fit: contain;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px solid var(--nile-colors-neutral-400);\n }\n \n .preview-file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .preview-file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview-file-info p:last-of-type{\n color: var(--nile-colors-neutral-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview nile-icon:hover {\n cursor: pointer;\n }\n\n /* NO PREVIEW STATE */\n .no-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .no-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .no-preview-container {\n display: flex;\n gap: 18px;\n }\n\n .document-icon {\n height: 40px;\n width: 40px;\n border-radius: var(--nile-radius-radius-xs);\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid var(--nile-colors-blue-400);\n background-color: var(--nile-colors-blue-100);\n }\n\n .document-icon nile-icon {\n height: 40px;\n width: 40px;\n }\n \n .preview-file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .preview-file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview-file-info p:last-of-type{\n color: var(--nile-colors-neutral-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .no-preview > nile-icon:hover {\n cursor: pointer;\n }\n\n /* ERROR STATE */\n \n .error {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .error:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .error-container {\n width: 100%;\n display: flex;\n gap: 18px;\n }\n\n .error-icon {\n height: 40px;\n width: 40px;\n border-radius: var(--nile-radius-radius-xs);\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid var(--nile-colors-red-400);\n background-color: var(--nile-colors-red-100);\n }\n\n .error-icon nile-icon {\n height: 40px;\n width: 40px;\n }\n \n .file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .file-info p:last-of-type{\n color: var(--nile-colors-red-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .error > nile-icon:hover {\n cursor: pointer;\n }\n\n /* VARTICAL STATE START */\n /* Default State */\n\n .vertical-default {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 18px\n }\n\n .content-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 8px;\n }\n\n .content-container div.title {\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 222px;\n }\n\n .content-container div.subtitle {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-500);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 222px;\n }\n\n /* Drag State */\n .vertical-drag {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap:18px;\n font-size: var(--nile-type-scale-3);\n color: var(--nile-colors-blue-700);\n background-color: var(--nile-colors-blue-100);\n border-color: var(--nile-colors-blue-500);\n }\n\n /* Uploading State */\n .vertical-uploading {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: center;\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-uploading:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .loading {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .corner-icon {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n\n /* Preview State */\n .vertical-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .image-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n object-fit: cover;\n width: 80px;\n height: 80px;\n border-radius: var(--nile-radius-radius-xs);\n }\n\n /* Vertical No Preview State */\n .vertical-no-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-no-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .vertical-document-icon {\n height: 80px;\n width: 80px;\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px solid var(--nile-colors-blue-400);\n background-color: var(--nile-colors-blue-100);\n }\n\n /* Veritcal Error State */\n .vertical-error {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-error:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .error-bg {\n background-color: var(--nile-colors-red-100);\n border: 1px solid var(--nile-colors-red-400);\n }\n\n .error-message {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 8px;\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n text-align: start;\n }\n\n .error-p {\n color: var(--nile-colors-red-700);\n font-size: var(--nile-type-scale-2);\n width: 216px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: center;\n }\n\n .error-p p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 0;\n }\n\n\n /* Displaing uploaded files CSS */\n .display-files {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n width: 648px;\n min-width: 230px;\n max-height: 200px;\n overflow-y: auto;\n border: 1px solid var(--nile-colors-neutral-700);\n border-radius: var(--nile-radius-radius-xs);\n scrollbar-width: none;\n padding: 12px;\n }\n\n ul, li {\n width: 100%;\n }\n\n li {\n list-style-type: none;\n }\n\n /* for the upload error messages */\n .upload-error {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-red-700);\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: var(--nile-spacing-one-half-x);\n }\n\n .upload-error > nile-tooltip > span {\n color: var(--nile-colors-red-700);\n white-space: nowrap;\n text-align: left;\n max-width: 560px;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .vertical-upload-error {\n display: flex;\n gap: 4px;\n }\n\n .vertical-upload-error nile-tooltip span, .vertical-upload-error span {\n color: var(--nile-colors-red-700);\n white-space: nowrap;\n text-align: left;\n width: 222px;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: var(--nile-type-scale-2);\n display: inline-block;\n }\n`;\n\nexport default [styles];"]}
1
+ {"version":3,"file":"nile-file-upload.css.js","sourceRoot":"","sources":["../../../src/nile-file-upload/nile-file-upload.css.ts"],"names":[],"mappings":"AAAA;;;;;EAKE;AAEF,OAAO,EAAC,GAAG,EAAC,MAAM,KAAK,CAAC;AAExB;;GAEG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2mBxB,CAAC;AAEF,eAAe,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {css} from 'lit';\n\n/**\n * FileUpload CSS\n */\nexport const styles = css`\n :host {\n display: inline-block;\n width: 100%;\n }\n\n * {\n padding: 0px;\n margin: 0px;\n box-sizing: border-box;\n }\n\n .wrapper {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n width: 100%;\n }\n\n input {\n display: none;\n }\n\n .horizontal-div {\n height: 62px;\n width: 100%;\n min-width: 230px;\n padding: 12px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: 18px;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px dashed var(--nile-colors-neutral-500);\n color: var(--nile-colors-dark-900);\n background-color: var(--nile-colors-white-base);\n }\n\n @media (width < 400px) {\n .browse-file-button {\n display: none;\n }\n\n .horizontal-div {\n cursor: pointer;\n }\n }\n\n .hover-border {\n border-color: var(--nile-colors-primary-600);\n }\n\n .title {\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 454px;\n width: 100%;\n }\n\n .subtitle {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-500);\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n max-width: 454px;\n }\n\n .vertical-div {\n min-height: 156px;\n height: auto;\n min-width: 240px;\n width: 240px;\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n align-items: center;\n padding: 12px;\n border-radius: var(--nile-radius-radius-xs);\n color: var(--nile-colors-dark-900);\n border: 1px dashed var(--nile-colors-neutral-500);\n background-color: var(--nile-colors-white-base);\n position: relative;\n }\n\n .vertical-div:hover {\n border-color: var(--nile-colors-blue-500);\n }\n\n .outer-div-border {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .inner-div {\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 18px;\n box-sizing: border-box;\n }\n\n .content {\n display: flex; \n flex-direction: column;\n justify-content: center;\n gap: 8px;\n }\n\n .content h4 {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 454px;\n }\n \n .content p {\n margin: 0px;\n font-size: var(--nile-type-scale-2);\n color: var(--nile-colors-neutral-700);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 454px;\n }\n\n ::slotted(img), ::slotted(nile-icon), ::slotted(video) {\n --nile-svg-height: 24px !important ;\n --nile-svg-width: 24px !important ;\n height:42px;\n width: 42px;\n object-fit: cover;\n }\n\n .browse-file-button {\n cursor: pointer;\n }\n\n /* DISABLED STATE */\n .disable {\n background-color: var(--nile-colors-dark-200);\n opacity: 0.8;\n cursor: not-allowed;\n color: var(--nile-colors-neutral-500);\n pointer-events: none;\n }\n\n /* DRAGGING */\n .dragging {\n background-color: var(--nile-colors-blue-100);\n border-color: var(--nile-colors-primary-600);\n display: flex;\n align-items: center;\n justify-content: flex-start;\n gap: 18px;\n color: var(--nile-colors-blue-700);\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .icons-container {\n display: flex;\n gap: 4px;\n }\n\n .general-icon {\n transform: rotate(-18.11deg);\n position: relative;\n bottom: 3px;\n }\n\n .image-icon {\n transform: rotate(15deg);\n }\n\n .icon:hover {\n cursor: pointer;\n }\n\n /* Uploading State */\n .uploading {\n width: 648px;\n min-width: 230px;\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 18px;\n box-sizing: border-box;\n border: 1px solid var(--nile-colors-neutral-400)\n }\n \n .uploading:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .progress-bar-container {\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 0px;\n }\n\n .progress-bar-percent {\n width: 100%;\n display: flex;\n justify-content: space-between;\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .progress-bar-container p {\n margin: 0px;\n }\n\n .progress-bar-container > p {\n font-size: var(--nile-type-scale-1);\n color: var(--nile-colors-dark-500);\n }\n\n /* PREVIEW STATE */\n .preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .preview-inner {\n display: flex;\n gap: 18px;\n }\n\n .preview-image-container {\n height: 42px;\n width: 42px;\n }\n\n .preview-image-container img {\n height: 42px;\n width: 42px;\n object-fit: contain;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px solid var(--nile-colors-neutral-400);\n }\n \n .preview-file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .preview-file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview-file-info p:last-of-type{\n color: var(--nile-colors-neutral-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview nile-icon:hover {\n cursor: pointer;\n }\n\n /* NO PREVIEW STATE */\n .no-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .no-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .no-preview-container {\n display: flex;\n gap: 18px;\n }\n\n .document-icon {\n height: 40px;\n width: 40px;\n border-radius: var(--nile-radius-radius-xs);\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid var(--nile-colors-blue-400);\n background-color: var(--nile-colors-blue-100);\n }\n\n .document-icon nile-icon {\n height: 40px;\n width: 40px;\n }\n \n .preview-file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .preview-file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .preview-file-info p:last-of-type{\n color: var(--nile-colors-neutral-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .no-preview > nile-icon:hover {\n cursor: pointer;\n }\n\n /* ERROR STATE */\n \n .error {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .error:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .error-container {\n width: 100%;\n display: flex;\n gap: 18px;\n }\n\n .error-icon {\n height: 40px;\n width: 40px;\n border-radius: var(--nile-radius-radius-xs);\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border: 1px solid var(--nile-colors-red-400);\n background-color: var(--nile-colors-red-100);\n }\n\n .error-icon nile-icon {\n height: 40px;\n width: 40px;\n }\n \n .file-info {\n width: 100%;\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n gap: 8px;\n }\n\n .file-info p {\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .file-info p:last-of-type{\n color: var(--nile-colors-red-700);\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n }\n\n .error > nile-icon:hover {\n cursor: pointer;\n }\n\n /* VARTICAL STATE START */\n /* Default State */\n\n .vertical-default {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n gap: 18px\n }\n\n .content-container {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 8px;\n }\n\n .content-container div.title {\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-900);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 222px;\n }\n\n .content-container div.subtitle {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-dark-500);\n text-align: center;\n white-space: nowrap;\n text-overflow: ellipsis;\n overflow: hidden;\n width: 222px;\n }\n\n /* Drag State */\n .vertical-drag {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap:18px;\n font-size: var(--nile-type-scale-3);\n color: var(--nile-colors-blue-700);\n background-color: var(--nile-colors-blue-100);\n border-color: var(--nile-colors-blue-500);\n }\n\n /* Uploading State */\n .vertical-uploading {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: center;\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-uploading:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .loading {\n display: flex;\n justify-content: center;\n align-items: center;\n }\n\n .corner-icon {\n position: absolute;\n top: 10px;\n right: 10px;\n }\n\n /* Preview State */\n .vertical-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .image-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n object-fit: cover;\n width: 80px;\n height: 80px;\n border-radius: var(--nile-radius-radius-xs);\n }\n\n /* Vertical No Preview State */\n .vertical-no-preview {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-no-preview:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .vertical-document-icon {\n height: 80px;\n width: 80px;\n padding: 2px 3px 2px 3px;\n display: flex;\n justify-content: center;\n align-items: center;\n border-radius: var(--nile-radius-radius-xs);\n border: 1px solid var(--nile-colors-blue-400);\n background-color: var(--nile-colors-blue-100);\n }\n\n /* Veritcal Error State */\n .vertical-error {\n border: 1px solid var(--nile-colors-neutral-400);\n }\n\n .vertical-error:hover {\n border-color: var(--nile-colors-neutral-400);\n }\n\n .error-bg {\n background-color: var(--nile-colors-red-100);\n border: 1px solid var(--nile-colors-red-400);\n }\n\n .error-message {\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: center;\n gap: 8px;\n margin: 0px;\n font-size: var(--nile-type-scale-3);\n font-weight: var(--nile-font-weight-regular);\n text-align: start;\n }\n\n .error-p {\n color: var(--nile-colors-red-700);\n font-size: var(--nile-type-scale-2);\n width: 216px;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: center;\n }\n\n .error-p p {\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n margin: 0;\n }\n\n\n /* Displaing uploaded files CSS */\n .display-files {\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: center;\n gap: 8px;\n width: 648px;\n min-width: 230px;\n max-height: 200px;\n overflow-y: auto;\n border: 1px solid var(--nile-colors-neutral-700);\n border-radius: var(--nile-radius-radius-xs);\n scrollbar-width: none;\n padding: 12px;\n }\n\n ul, li {\n width: 100%;\n }\n\n li {\n list-style-type: none;\n }\n\n /* for the upload error messages */\n .upload-error {\n font-size: var(--nile-type-scale-2);\n font-weight: var(--nile-font-weight-regular);\n color: var(--nile-colors-red-700);\n display: flex;\n justify-content: flex-start;\n align-items: center;\n gap: var(--nile-spacing-one-half-x);\n margin-top: 10px;\n }\n\n .upload-error > nile-tooltip > span {\n color: var(--nile-colors-red-700);\n white-space: nowrap;\n text-align: left;\n max-width: 560px;\n overflow: hidden;\n text-overflow: ellipsis;\n }\n\n .vertical-upload-error {\n display: flex;\n gap: 4px;\n margin-top: 10px;\n }\n\n .vertical-upload-error nile-tooltip span, .vertical-upload-error span {\n color: var(--nile-colors-red-700);\n white-space: nowrap;\n text-align: left;\n width: 222px;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: var(--nile-type-scale-2);\n display: inline-block;\n }\n`;\n\nexport default [styles];"]}
@@ -33,7 +33,9 @@ export declare class NileFileUpload extends NileElement {
33
33
  variant: FileUploadVariant;
34
34
  fileUploadUrl: string;
35
35
  autoUpload: boolean;
36
+ doNotUpload: File[];
36
37
  input: HTMLInputElement;
38
+ horizontalDiv: HTMLDivElement;
37
39
  uploadRequests: Map<File, XMLHttpRequest>;
38
40
  fileSizeExceededFilesNumber: number;
39
41
  isStringTruncated: boolean;
@@ -41,9 +43,10 @@ export declare class NileFileUpload extends NileElement {
41
43
  connectedCallback(): void;
42
44
  firstUpdated(changedProps: ChangedPropsInterface): void;
43
45
  updated(changedProps: ChangedPropsInterface): void;
44
- private browseFiles;
46
+ browseFiles(): void;
45
47
  setState: (newState: FileUploadState) => void;
46
48
  render(): TemplateResult;
49
+ clearAllUploadedFiles(): void;
47
50
  private getState;
48
51
  private getHorizontalState;
49
52
  private getVerticalState;
@@ -10,7 +10,7 @@ import NileElement from '../internal/nile-element';
10
10
  import { DragHandler } from './utils/drag-drop.util';
11
11
  import { FileUploadDefaults } from './types/file-upload.enums';
12
12
  import { html } from 'lit';
13
- import { customElement, property, query } from 'lit/decorators.js';
13
+ import { customElement, property, query, state } from 'lit/decorators.js';
14
14
  import { FileUploadState, FileUploadVariant, FileUploadEvent } from './types/file-upload.enums';
15
15
  import { setUpDragHandler, addGlobalListeners, addInternalListeners, uploadFiles } from './utils/file-validation.util';
16
16
  import { getHorizontalDefaultState, getHorizontalDragState, getVerticalDefaultState, getVerticalDisabledState, getVerticalDragState, getHorizontalErrorState, getVerticalErrorState, getHorizontalDisabledState } from './nile-file-upload.template';
@@ -36,6 +36,7 @@ let NileFileUpload = class NileFileUpload extends NileElement {
36
36
  this.variant = FileUploadVariant.HORIZONTAL;
37
37
  this.fileUploadUrl = "";
38
38
  this.autoUpload = true;
39
+ this.doNotUpload = [];
39
40
  this.uploadRequests = new Map();
40
41
  this.fileSizeExceededFilesNumber = 0;
41
42
  this.isStringTruncated = false;
@@ -89,6 +90,11 @@ let NileFileUpload = class NileFileUpload extends NileElement {
89
90
  ${this.getState()}
90
91
  `;
91
92
  }
93
+ clearAllUploadedFiles() {
94
+ this.uploadedFiles = [];
95
+ this.state = FileUploadState.DEFAULT;
96
+ this.errorMessage = "";
97
+ }
92
98
  getState() {
93
99
  return this.variant === FileUploadVariant.HORIZONTAL
94
100
  ? this.getHorizontalState()
@@ -165,9 +171,15 @@ __decorate([
165
171
  __decorate([
166
172
  property({ type: Boolean })
167
173
  ], NileFileUpload.prototype, "autoUpload", void 0);
174
+ __decorate([
175
+ state()
176
+ ], NileFileUpload.prototype, "doNotUpload", void 0);
168
177
  __decorate([
169
178
  query('input')
170
179
  ], NileFileUpload.prototype, "input", void 0);
180
+ __decorate([
181
+ query('.horizontal-div')
182
+ ], NileFileUpload.prototype, "horizontalDiv", void 0);
171
183
  NileFileUpload = __decorate([
172
184
  customElement('nile-file-upload')
173
185
  ], NileFileUpload);