@aquera/nile-elements 1.5.2 → 1.5.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (619) hide show
  1. package/README.md +9 -0
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/dist/index.js +240 -196
  5. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  6. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  7. package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js +1 -1
  8. package/dist/nile-auto-complete/nile-auto-complete.css.cjs.js.map +1 -1
  9. package/dist/nile-auto-complete/nile-auto-complete.css.esm.js +1 -1
  10. package/dist/nile-auto-complete/nile-auto-complete.esm.js +1 -1
  11. package/dist/nile-badge/index.cjs.js +1 -1
  12. package/dist/nile-badge/index.esm.js +1 -1
  13. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  14. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  15. package/dist/nile-badge/nile-badge.esm.js +1 -1
  16. package/dist/nile-button/index.cjs.js +1 -1
  17. package/dist/nile-button/index.esm.js +1 -1
  18. package/dist/nile-button/nile-button.cjs.js +1 -1
  19. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  20. package/dist/nile-button/nile-button.esm.js +1 -1
  21. package/dist/nile-carousel/index.cjs.js +1 -1
  22. package/dist/nile-carousel/index.esm.js +1 -1
  23. package/dist/nile-carousel/nile-carousel.cjs.js +1 -1
  24. package/dist/nile-carousel/nile-carousel.cjs.js.map +1 -1
  25. package/dist/nile-carousel/nile-carousel.esm.js +11 -11
  26. package/dist/nile-dialog/index.cjs.js +1 -1
  27. package/dist/nile-dialog/index.esm.js +1 -1
  28. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  29. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  30. package/dist/nile-dialog/nile-dialog.esm.js +1 -1
  31. package/dist/nile-drawer/index.cjs.js +1 -1
  32. package/dist/nile-drawer/index.esm.js +1 -1
  33. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  34. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  35. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  36. package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
  37. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
  38. package/dist/nile-file-preview/nile-file-preview.css.cjs.js +1 -1
  39. package/dist/nile-file-preview/nile-file-preview.css.cjs.js.map +1 -1
  40. package/dist/nile-file-preview/nile-file-preview.css.esm.js +2 -2
  41. package/dist/nile-file-preview/nile-file-preview.esm.js +1 -1
  42. package/dist/nile-file-preview/nile-file-preview.template.cjs.js +1 -1
  43. package/dist/nile-file-preview/nile-file-preview.template.cjs.js.map +1 -1
  44. package/dist/nile-file-preview/nile-file-preview.template.esm.js +55 -25
  45. package/dist/nile-file-preview/utils/index.cjs.js +1 -1
  46. package/dist/nile-file-preview/utils/index.esm.js +1 -1
  47. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js +1 -1
  48. package/dist/nile-file-preview/utils/nile-file-preview.util.cjs.js.map +1 -1
  49. package/dist/nile-file-preview/utils/nile-file-preview.util.esm.js +1 -1
  50. package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
  51. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
  52. package/dist/nile-file-upload/nile-file-upload.css.cjs.js +1 -1
  53. package/dist/nile-file-upload/nile-file-upload.css.cjs.js.map +1 -1
  54. package/dist/nile-file-upload/nile-file-upload.css.esm.js +15 -5
  55. package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
  56. package/dist/nile-file-upload/nile-file-upload.template.cjs.js +2 -2
  57. package/dist/nile-file-upload/nile-file-upload.template.cjs.js.map +1 -1
  58. package/dist/nile-file-upload/nile-file-upload.template.esm.js +36 -32
  59. package/dist/nile-file-upload/types/file-upload.enums.cjs.js +1 -1
  60. package/dist/nile-file-upload/types/file-upload.enums.cjs.js.map +1 -1
  61. package/dist/nile-file-upload/types/file-upload.enums.esm.js +1 -1
  62. package/dist/nile-file-upload/types/index.cjs.js +1 -1
  63. package/dist/nile-file-upload/types/index.esm.js +1 -1
  64. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js +1 -1
  65. package/dist/nile-file-upload/utils/drag-drop.util.cjs.js.map +1 -1
  66. package/dist/nile-file-upload/utils/drag-drop.util.esm.js +1 -1
  67. package/dist/nile-file-upload/utils/file-validation.util.cjs.js +4 -2
  68. package/dist/nile-file-upload/utils/file-validation.util.cjs.js.map +1 -1
  69. package/dist/nile-file-upload/utils/file-validation.util.esm.js +1 -1
  70. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js +1 -1
  71. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -1
  72. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.esm.js +3 -3
  73. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js +1 -1
  74. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.cjs.js.map +1 -1
  75. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.esm.js +1 -1
  76. package/dist/nile-grid/nile-grid.cjs.js +1 -1
  77. package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
  78. package/dist/nile-grid/nile-grid.esm.js +2 -2
  79. package/dist/nile-grid/nile-grid.layout.cjs.js +1 -1
  80. package/dist/nile-grid/nile-grid.layout.esm.js +1 -1
  81. package/dist/nile-grid/nile-grid.resize.cjs.js +1 -1
  82. package/dist/nile-grid/nile-grid.resize.esm.js +1 -1
  83. package/dist/nile-grid/nile-grid.utils.cjs.js +1 -1
  84. package/dist/nile-grid/nile-grid.utils.esm.js +1 -1
  85. package/dist/nile-grid/nile-grid.width.cjs.js +1 -1
  86. package/dist/nile-grid/nile-grid.width.cjs.js.map +1 -1
  87. package/dist/nile-grid/nile-grid.width.esm.js +1 -1
  88. package/dist/nile-icon/icons/svg/delete_history.cjs.js +2 -0
  89. package/dist/nile-icon/icons/svg/delete_history.cjs.js.map +1 -0
  90. package/dist/nile-icon/icons/svg/delete_history.esm.js +1 -0
  91. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  92. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  93. package/dist/nile-icon/index.cjs.js +1 -1
  94. package/dist/nile-icon/index.cjs.js.map +1 -1
  95. package/dist/nile-icon/index.esm.js +1 -1
  96. package/dist/nile-icon-button/index.cjs.js +1 -1
  97. package/dist/nile-icon-button/index.esm.js +1 -1
  98. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  99. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  100. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  101. package/dist/nile-input/index.cjs.js +1 -1
  102. package/dist/nile-input/index.esm.js +1 -1
  103. package/dist/nile-input/nile-input.cjs.js +1 -1
  104. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  105. package/dist/nile-input/nile-input.esm.js +2 -2
  106. package/dist/nile-menu-item/index.cjs.js +1 -1
  107. package/dist/nile-menu-item/index.esm.js +1 -1
  108. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  109. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  110. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  111. package/dist/nile-option/index.cjs.js +1 -1
  112. package/dist/nile-option/index.esm.js +1 -1
  113. package/dist/nile-option/nile-option.cjs.js +1 -1
  114. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  115. package/dist/nile-option/nile-option.esm.js +1 -1
  116. package/dist/nile-popover/index.cjs.js +1 -1
  117. package/dist/nile-popover/index.esm.js +1 -1
  118. package/dist/nile-popover/nile-popover.cjs.js +4 -4
  119. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  120. package/dist/nile-popover/nile-popover.esm.js +11 -6
  121. package/dist/nile-select/index.cjs.js +1 -1
  122. package/dist/nile-select/index.esm.js +1 -1
  123. package/dist/nile-select/nile-select.cjs.js +1 -1
  124. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  125. package/dist/nile-select/nile-select.esm.js +1 -1
  126. package/dist/nile-side-bar-action-menu-item/index.cjs.js +1 -1
  127. package/dist/nile-side-bar-action-menu-item/index.esm.js +1 -1
  128. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js +1 -1
  129. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js.map +1 -1
  130. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.esm.js +1 -1
  131. package/dist/nile-tab/index.cjs.js +1 -1
  132. package/dist/nile-tab/index.esm.js +1 -1
  133. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  134. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  135. package/dist/nile-tab/nile-tab.esm.js +1 -1
  136. package/dist/nile-tab-group/index.cjs.js +1 -1
  137. package/dist/nile-tab-group/index.esm.js +1 -1
  138. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  139. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  140. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  141. package/dist/nile-tag/index.cjs.js +1 -1
  142. package/dist/nile-tag/index.esm.js +1 -1
  143. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  144. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  145. package/dist/nile-tag/nile-tag.esm.js +1 -1
  146. package/dist/nile-toast/index.cjs.js +1 -1
  147. package/dist/nile-toast/index.esm.js +1 -1
  148. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  149. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  150. package/dist/nile-toast/nile-toast.esm.js +1 -1
  151. package/dist/nile-tree/index.cjs.js +1 -1
  152. package/dist/nile-tree/index.esm.js +1 -1
  153. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  154. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  155. package/dist/nile-tree/nile-tree.esm.js +1 -1
  156. package/dist/nile-tree-item/index.cjs.js +1 -1
  157. package/dist/nile-tree-item/index.esm.js +1 -1
  158. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  159. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  160. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  161. package/dist/nile-virtual-select/index.cjs.js +1 -1
  162. package/dist/nile-virtual-select/index.esm.js +1 -1
  163. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
  164. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  165. package/dist/src/nile-accordion/nile-accordian.test.js +101 -99
  166. package/dist/src/nile-accordion/nile-accordian.test.js.map +1 -1
  167. package/dist/src/nile-auto-complete/nile-auto-complete.css.js +1 -1
  168. package/dist/src/nile-auto-complete/nile-auto-complete.css.js.map +1 -1
  169. package/dist/src/nile-auto-complete/nile-auto-complete.js +1 -1
  170. package/dist/src/nile-auto-complete/nile-auto-complete.js.map +1 -1
  171. package/dist/src/nile-auto-complete/nile-auto-complete.test.js +104 -112
  172. package/dist/src/nile-auto-complete/nile-auto-complete.test.js.map +1 -1
  173. package/dist/src/nile-avatar/nile-avatar.test.d.ts +0 -1
  174. package/dist/src/nile-avatar/nile-avatar.test.js +103 -87
  175. package/dist/src/nile-avatar/nile-avatar.test.js.map +1 -1
  176. package/dist/src/nile-badge/nile-badge.test.js +554 -35
  177. package/dist/src/nile-badge/nile-badge.test.js.map +1 -1
  178. package/dist/src/nile-breadcrumb/nile-breadcrumb.test.d.ts +2 -0
  179. package/dist/src/nile-breadcrumb/nile-breadcrumb.test.js +106 -0
  180. package/dist/src/nile-breadcrumb/nile-breadcrumb.test.js.map +1 -0
  181. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.d.ts +1 -0
  182. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.js +108 -0
  183. package/dist/src/nile-breadcrumb-item/nile-breadcrumb-item.test.js.map +1 -0
  184. package/dist/src/nile-button/nile-button.test.js +499 -39
  185. package/dist/src/nile-button/nile-button.test.js.map +1 -1
  186. package/dist/src/nile-button-filter/nile-button-filter.test.d.ts +1 -0
  187. package/dist/src/nile-button-filter/nile-button-filter.test.js +108 -0
  188. package/dist/src/nile-button-filter/nile-button-filter.test.js.map +1 -0
  189. package/dist/src/nile-button-toggle/nile-button-toggle.test.d.ts +1 -0
  190. package/dist/src/nile-button-toggle/nile-button-toggle.test.js +108 -0
  191. package/dist/src/nile-button-toggle/nile-button-toggle.test.js.map +1 -0
  192. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.d.ts +1 -1
  193. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js +105 -104
  194. package/dist/src/nile-button-toggle-group/nile-button-toggle-group.test.js.map +1 -1
  195. package/dist/src/nile-calendar/nile-calendar.test.d.ts +0 -6
  196. package/dist/src/nile-calendar/nile-calendar.test.js +103 -318
  197. package/dist/src/nile-calendar/nile-calendar.test.js.map +1 -1
  198. package/dist/src/nile-card/nile-card.test.js +102 -66
  199. package/dist/src/nile-card/nile-card.test.js.map +1 -1
  200. package/dist/src/nile-checkbox/nile-checkbox.test.js +547 -108
  201. package/dist/src/nile-checkbox/nile-checkbox.test.js.map +1 -1
  202. package/dist/src/nile-chip/nile-chip.test.d.ts +0 -2
  203. package/dist/src/nile-chip/nile-chip.test.js +101 -102
  204. package/dist/src/nile-chip/nile-chip.test.js.map +1 -1
  205. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.d.ts +1 -0
  206. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.js +108 -0
  207. package/dist/src/nile-circular-progressbar/nile-circular-progressbar.test.js.map +1 -0
  208. package/dist/src/nile-date-picker/nile-date-picker.test.d.ts +1 -0
  209. package/dist/src/nile-date-picker/nile-date-picker.test.js +108 -0
  210. package/dist/src/nile-date-picker/nile-date-picker.test.js.map +1 -0
  211. package/dist/src/nile-dialog/nile-dialog.test.d.ts +0 -1
  212. package/dist/src/nile-dialog/nile-dialog.test.js +104 -126
  213. package/dist/src/nile-dialog/nile-dialog.test.js.map +1 -1
  214. package/dist/src/nile-divider/nile-divider.test.d.ts +1 -0
  215. package/dist/src/nile-divider/nile-divider.test.js +560 -0
  216. package/dist/src/nile-divider/nile-divider.test.js.map +1 -0
  217. package/dist/src/nile-drawer/nile-drawer.test.js +106 -86
  218. package/dist/src/nile-drawer/nile-drawer.test.js.map +1 -1
  219. package/dist/src/nile-dropdown/nile-dropdown.test.js +104 -148
  220. package/dist/src/nile-dropdown/nile-dropdown.test.js.map +1 -1
  221. package/dist/src/nile-empty-state/nile-empty-state.test.js +107 -59
  222. package/dist/src/nile-empty-state/nile-empty-state.test.js.map +1 -1
  223. package/dist/src/nile-error-message/nile-error-message.test.js +105 -55
  224. package/dist/src/nile-error-message/nile-error-message.test.js.map +1 -1
  225. package/dist/src/nile-error-notification/nile-error-notification.test.d.ts +1 -0
  226. package/dist/src/nile-error-notification/nile-error-notification.test.js +108 -0
  227. package/dist/src/nile-error-notification/nile-error-notification.test.js.map +1 -0
  228. package/dist/src/nile-file-preview/nile-file-preview.css.js +2 -2
  229. package/dist/src/nile-file-preview/nile-file-preview.css.js.map +1 -1
  230. package/dist/src/nile-file-preview/nile-file-preview.d.ts +1 -4
  231. package/dist/src/nile-file-preview/nile-file-preview.js +21 -47
  232. package/dist/src/nile-file-preview/nile-file-preview.js.map +1 -1
  233. package/dist/src/nile-file-preview/nile-file-preview.template.d.ts +6 -6
  234. package/dist/src/nile-file-preview/nile-file-preview.template.js +53 -23
  235. package/dist/src/nile-file-preview/nile-file-preview.template.js.map +1 -1
  236. package/dist/src/nile-file-preview/nile-file-preview.test.d.ts +0 -6
  237. package/dist/src/nile-file-preview/nile-file-preview.test.js +106 -28
  238. package/dist/src/nile-file-preview/nile-file-preview.test.js.map +1 -1
  239. package/dist/src/nile-file-preview/utils/nile-file-preview.util.d.ts +3 -2
  240. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js +32 -7
  241. package/dist/src/nile-file-preview/utils/nile-file-preview.util.js.map +1 -1
  242. package/dist/src/nile-file-upload/nile-file-upload.css.js +15 -5
  243. package/dist/src/nile-file-upload/nile-file-upload.css.js.map +1 -1
  244. package/dist/src/nile-file-upload/nile-file-upload.d.ts +4 -1
  245. package/dist/src/nile-file-upload/nile-file-upload.js +13 -1
  246. package/dist/src/nile-file-upload/nile-file-upload.js.map +1 -1
  247. package/dist/src/nile-file-upload/nile-file-upload.template.js +19 -15
  248. package/dist/src/nile-file-upload/nile-file-upload.template.js.map +1 -1
  249. package/dist/src/nile-file-upload/nile-file-upload.test.d.ts +0 -6
  250. package/dist/src/nile-file-upload/nile-file-upload.test.js +106 -28
  251. package/dist/src/nile-file-upload/nile-file-upload.test.js.map +1 -1
  252. package/dist/src/nile-file-upload/types/file-upload.enums.d.ts +17 -3
  253. package/dist/src/nile-file-upload/types/file-upload.enums.js +17 -1
  254. package/dist/src/nile-file-upload/types/file-upload.enums.js.map +1 -1
  255. package/dist/src/nile-file-upload/utils/drag-drop.util.d.ts +2 -0
  256. package/dist/src/nile-file-upload/utils/drag-drop.util.js +14 -8
  257. package/dist/src/nile-file-upload/utils/drag-drop.util.js.map +1 -1
  258. package/dist/src/nile-file-upload/utils/file-validation.util.js +89 -10
  259. package/dist/src/nile-file-upload/utils/file-validation.util.js.map +1 -1
  260. package/dist/src/nile-filter-chip/nile-filter-chip.test.js +102 -77
  261. package/dist/src/nile-filter-chip/nile-filter-chip.test.js.map +1 -1
  262. package/dist/src/nile-form-error-message/nile-form-error-message.test.d.ts +1 -0
  263. package/dist/src/nile-form-error-message/nile-form-error-message.test.js +108 -0
  264. package/dist/src/nile-form-error-message/nile-form-error-message.test.js.map +1 -0
  265. package/dist/src/nile-form-group/nile-form-group.test.js +104 -51
  266. package/dist/src/nile-form-group/nile-form-group.test.js.map +1 -1
  267. package/dist/src/nile-form-help-text/nile-form-help-text.test.js +104 -84
  268. package/dist/src/nile-form-help-text/nile-form-help-text.test.js.map +1 -1
  269. package/dist/src/nile-format-date/nile-format-date.test.d.ts +1 -0
  270. package/dist/src/nile-format-date/nile-format-date.test.js +108 -0
  271. package/dist/src/nile-format-date/nile-format-date.test.js.map +1 -0
  272. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js +6 -5
  273. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.js.map +1 -1
  274. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.d.ts +14 -0
  275. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js +24 -0
  276. package/dist/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.js.map +1 -1
  277. package/dist/src/nile-grid/nile-grid.d.ts +1 -0
  278. package/dist/src/nile-grid/nile-grid.js +5 -1
  279. package/dist/src/nile-grid/nile-grid.js.map +1 -1
  280. package/dist/src/nile-grid/nile-grid.utils.d.ts +6 -0
  281. package/dist/src/nile-grid/nile-grid.utils.js +13 -0
  282. package/dist/src/nile-grid/nile-grid.utils.js.map +1 -1
  283. package/dist/src/nile-heading/nile-heading.test.d.ts +1 -0
  284. package/dist/src/nile-heading/nile-heading.test.js +108 -0
  285. package/dist/src/nile-heading/nile-heading.test.js.map +1 -0
  286. package/dist/src/nile-hero/nile-hero.test.js +101 -38
  287. package/dist/src/nile-hero/nile-hero.test.js.map +1 -1
  288. package/dist/src/nile-icon/icons/svg/delete_history.d.ts +5 -0
  289. package/dist/src/nile-icon/icons/svg/delete_history.js +5 -0
  290. package/dist/src/nile-icon/icons/svg/delete_history.js.map +1 -0
  291. package/dist/src/nile-icon/icons/svg/index.d.ts +1 -0
  292. package/dist/src/nile-icon/icons/svg/index.js +1 -0
  293. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  294. package/dist/src/nile-icon/nile-icon.test.js +103 -40
  295. package/dist/src/nile-icon/nile-icon.test.js.map +1 -1
  296. package/dist/src/nile-icon-button/nile-icon-button.test.d.ts +1 -0
  297. package/dist/src/nile-icon-button/nile-icon-button.test.js +568 -0
  298. package/dist/src/nile-icon-button/nile-icon-button.test.js.map +1 -0
  299. package/dist/src/nile-inline-edit/nile-inline-edit.test.d.ts +1 -0
  300. package/dist/src/nile-inline-edit/nile-inline-edit.test.js +108 -0
  301. package/dist/src/nile-inline-edit/nile-inline-edit.test.js.map +1 -0
  302. package/dist/src/nile-input/nile-input.js +1 -1
  303. package/dist/src/nile-input/nile-input.js.map +1 -1
  304. package/dist/src/nile-input/nile-input.test.js +109 -139
  305. package/dist/src/nile-input/nile-input.test.js.map +1 -1
  306. package/dist/src/nile-link/nile-link.test.js +103 -67
  307. package/dist/src/nile-link/nile-link.test.js.map +1 -1
  308. package/dist/src/nile-list/nile-list.test.d.ts +1 -0
  309. package/dist/src/nile-list/nile-list.test.js +108 -0
  310. package/dist/src/nile-list/nile-list.test.js.map +1 -0
  311. package/dist/src/nile-list-item/nile-list-item.test.d.ts +1 -0
  312. package/dist/src/nile-list-item/nile-list-item.test.js +108 -0
  313. package/dist/src/nile-list-item/nile-list-item.test.js.map +1 -0
  314. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.d.ts +2 -0
  315. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.js +109 -0
  316. package/dist/src/nile-lite-tooltip/nile-lite-tooltip.test.js.map +1 -0
  317. package/dist/src/nile-loader/nile-loader.test.js +107 -40
  318. package/dist/src/nile-loader/nile-loader.test.js.map +1 -1
  319. package/dist/src/nile-menu/nile-menu.test.d.ts +1 -0
  320. package/dist/src/nile-menu/nile-menu.test.js +113 -0
  321. package/dist/src/nile-menu/nile-menu.test.js.map +1 -0
  322. package/dist/src/nile-menu-item/nile-menu-item.test.d.ts +1 -0
  323. package/dist/src/nile-menu-item/nile-menu-item.test.js +113 -0
  324. package/dist/src/nile-menu-item/nile-menu-item.test.js.map +1 -0
  325. package/dist/src/nile-option/nile-option.test.d.ts +1 -0
  326. package/dist/src/nile-option/nile-option.test.js +108 -0
  327. package/dist/src/nile-option/nile-option.test.js.map +1 -0
  328. package/dist/src/nile-option-group/nile-option-group.test.d.ts +1 -0
  329. package/dist/src/nile-option-group/nile-option-group.test.js +108 -0
  330. package/dist/src/nile-option-group/nile-option-group.test.js.map +1 -0
  331. package/dist/src/nile-page-header/nile-page-header.test.d.ts +1 -0
  332. package/dist/src/nile-page-header/nile-page-header.test.js +108 -0
  333. package/dist/src/nile-page-header/nile-page-header.test.js.map +1 -0
  334. package/dist/src/nile-pagination/nile-pagination.test.d.ts +1 -0
  335. package/dist/src/nile-pagination/nile-pagination.test.js +108 -0
  336. package/dist/src/nile-pagination/nile-pagination.test.js.map +1 -0
  337. package/dist/src/nile-popover/nile-popover.test.js +103 -68
  338. package/dist/src/nile-popover/nile-popover.test.js.map +1 -1
  339. package/dist/src/nile-popup/nile-popup.test.js +104 -65
  340. package/dist/src/nile-popup/nile-popup.test.js.map +1 -1
  341. package/dist/src/nile-progress-bar/nile-progress-bar.test.js +104 -44
  342. package/dist/src/nile-progress-bar/nile-progress-bar.test.js.map +1 -1
  343. package/dist/src/nile-radio/nile-radio.test.js +103 -66
  344. package/dist/src/nile-radio/nile-radio.test.js.map +1 -1
  345. package/dist/src/nile-radio-group/nile-radio-group.test.d.ts +0 -1
  346. package/dist/src/nile-radio-group/nile-radio-group.test.js +105 -171
  347. package/dist/src/nile-radio-group/nile-radio-group.test.js.map +1 -1
  348. package/dist/src/nile-section-message/nile-section-message.test.d.ts +1 -0
  349. package/dist/src/nile-section-message/nile-section-message.test.js +108 -0
  350. package/dist/src/nile-section-message/nile-section-message.test.js.map +1 -0
  351. package/dist/src/nile-select/nile-select.test.d.ts +0 -5
  352. package/dist/src/nile-select/nile-select.test.js +105 -244
  353. package/dist/src/nile-select/nile-select.test.js.map +1 -1
  354. package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.d.ts +1 -0
  355. package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.js +108 -0
  356. package/dist/src/nile-skeleton-loader/nile-skeleton-loader.test.js.map +1 -0
  357. package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js +104 -50
  358. package/dist/src/nile-slide-toggle/nile-slide-toggle.test.js.map +1 -1
  359. package/dist/src/nile-slider/nile-slider.test.d.ts +1 -0
  360. package/dist/src/nile-slider/nile-slider.test.js +108 -0
  361. package/dist/src/nile-slider/nile-slider.test.js.map +1 -0
  362. package/dist/src/nile-spinner/nile-spinner.test.d.ts +1 -0
  363. package/dist/src/nile-spinner/nile-spinner.test.js +569 -0
  364. package/dist/src/nile-spinner/nile-spinner.test.js.map +1 -0
  365. package/dist/src/nile-split-panel/nile-split-panel.test.d.ts +1 -0
  366. package/dist/src/nile-split-panel/nile-split-panel.test.js +108 -0
  367. package/dist/src/nile-split-panel/nile-split-panel.test.js.map +1 -0
  368. package/dist/src/nile-stepper/nile-stepper.test.d.ts +2 -0
  369. package/dist/src/nile-stepper/nile-stepper.test.js +109 -0
  370. package/dist/src/nile-stepper/nile-stepper.test.js.map +1 -0
  371. package/dist/src/nile-stepper-item/nile-stepper-item.test.d.ts +1 -0
  372. package/dist/src/nile-stepper-item/nile-stepper-item.test.js +108 -0
  373. package/dist/src/nile-stepper-item/nile-stepper-item.test.js.map +1 -0
  374. package/dist/src/nile-tab/nile-tab.test.d.ts +1 -0
  375. package/dist/src/nile-tab/nile-tab.test.js +108 -0
  376. package/dist/src/nile-tab/nile-tab.test.js.map +1 -0
  377. package/dist/src/nile-tab-group/nile-tab-group.test.js +105 -172
  378. package/dist/src/nile-tab-group/nile-tab-group.test.js.map +1 -1
  379. package/dist/src/nile-tab-panel/nile-tab-panel.test.d.ts +1 -0
  380. package/dist/src/nile-tab-panel/nile-tab-panel.test.js +108 -0
  381. package/dist/src/nile-tab-panel/nile-tab-panel.test.js.map +1 -0
  382. package/dist/src/nile-tag/nile-tag.test.d.ts +1 -0
  383. package/dist/src/nile-tag/nile-tag.test.js +574 -0
  384. package/dist/src/nile-tag/nile-tag.test.js.map +1 -0
  385. package/dist/src/nile-textarea/nile-textarea.test.d.ts +1 -1
  386. package/dist/src/nile-textarea/nile-textarea.test.js +105 -84
  387. package/dist/src/nile-textarea/nile-textarea.test.js.map +1 -1
  388. package/dist/src/nile-title/nile-title.test.d.ts +1 -0
  389. package/dist/src/nile-title/nile-title.test.js +108 -0
  390. package/dist/src/nile-title/nile-title.test.js.map +1 -0
  391. package/dist/src/nile-toast/nile-toast.test.d.ts +1 -0
  392. package/dist/src/nile-toast/nile-toast.test.js +526 -0
  393. package/dist/src/nile-toast/nile-toast.test.js.map +1 -0
  394. package/dist/src/nile-toolbar/nile-toolbar.test.d.ts +1 -0
  395. package/dist/src/nile-toolbar/nile-toolbar.test.js +108 -0
  396. package/dist/src/nile-toolbar/nile-toolbar.test.js.map +1 -0
  397. package/dist/src/nile-tooltip/nile-tooltip.test.d.ts +1 -0
  398. package/dist/src/nile-tooltip/nile-tooltip.test.js +546 -0
  399. package/dist/src/nile-tooltip/nile-tooltip.test.js.map +1 -0
  400. package/dist/src/nile-virtual-select/nile-virtual-select.test.d.ts +1 -7
  401. package/dist/src/nile-virtual-select/nile-virtual-select.test.js +105 -628
  402. package/dist/src/nile-virtual-select/nile-virtual-select.test.js.map +1 -1
  403. package/dist/src/version.js +2 -2
  404. package/dist/src/version.js.map +1 -1
  405. package/dist/tsconfig.tsbuildinfo +1 -1
  406. package/package.json +1 -1
  407. package/rollup.config.js +7 -1
  408. package/src/nile-accordion/nile-accordian.test.ts +102 -116
  409. package/src/nile-auto-complete/nile-auto-complete.css.ts +1 -1
  410. package/src/nile-auto-complete/nile-auto-complete.test.ts +102 -145
  411. package/src/nile-auto-complete/nile-auto-complete.ts +1 -1
  412. package/src/nile-avatar/nile-avatar.test.ts +102 -112
  413. package/src/nile-badge/nile-badge.test.ts +642 -30
  414. package/src/nile-breadcrumb/nile-breadcrumb.test.ts +107 -0
  415. package/src/nile-breadcrumb-item/nile-breadcrumb-item.test.ts +106 -0
  416. package/src/nile-button/nile-button.test.ts +593 -61
  417. package/src/nile-button-filter/nile-button-filter.test.ts +106 -0
  418. package/src/nile-button-toggle/nile-button-toggle.test.ts +106 -0
  419. package/src/nile-button-toggle-group/nile-button-toggle-group.test.ts +104 -126
  420. package/src/nile-calendar/nile-calendar.test.ts +102 -406
  421. package/src/nile-card/nile-card.test.ts +103 -71
  422. package/src/nile-checkbox/nile-checkbox.test.ts +614 -108
  423. package/src/nile-chip/nile-chip.test.ts +102 -136
  424. package/src/nile-circular-progressbar/nile-circular-progressbar.test.ts +106 -0
  425. package/src/nile-date-picker/nile-date-picker.test.ts +106 -0
  426. package/src/nile-dialog/nile-dialog.test.ts +102 -164
  427. package/src/nile-divider/nile-divider.test.ts +659 -0
  428. package/src/nile-drawer/nile-drawer.test.ts +105 -105
  429. package/src/nile-dropdown/nile-dropdown.test.ts +102 -190
  430. package/src/nile-empty-state/nile-empty-state.test.ts +104 -67
  431. package/src/nile-error-message/nile-error-message.test.ts +104 -67
  432. package/src/nile-error-notification/nile-error-notification.test.ts +106 -0
  433. package/src/nile-file-preview/nile-file-preview.css.ts +2 -2
  434. package/src/nile-file-preview/nile-file-preview.template.ts +59 -23
  435. package/src/nile-file-preview/nile-file-preview.test.ts +105 -37
  436. package/src/nile-file-preview/nile-file-preview.ts +23 -56
  437. package/src/nile-file-preview/utils/nile-file-preview.util.ts +37 -8
  438. package/src/nile-file-upload/nile-file-upload.css.ts +15 -5
  439. package/src/nile-file-upload/nile-file-upload.template.ts +22 -18
  440. package/src/nile-file-upload/nile-file-upload.test.ts +105 -37
  441. package/src/nile-file-upload/nile-file-upload.ts +11 -3
  442. package/src/nile-file-upload/types/file-upload.enums.ts +20 -4
  443. package/src/nile-file-upload/utils/drag-drop.util.ts +20 -11
  444. package/src/nile-file-upload/utils/file-validation.util.ts +104 -22
  445. package/src/nile-filter-chip/nile-filter-chip.test.ts +103 -89
  446. package/src/nile-form-error-message/nile-form-error-message.test.ts +106 -0
  447. package/src/nile-form-group/nile-form-group.test.ts +103 -60
  448. package/src/nile-form-help-text/nile-form-help-text.test.ts +102 -106
  449. package/src/nile-format-date/nile-format-date.test.ts +106 -0
  450. package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.ts +7 -5
  451. package/src/nile-grid/nile-grid-head-item/nile-grid-head-item.utils.ts +28 -0
  452. package/src/nile-grid/nile-grid.ts +6 -1
  453. package/src/nile-grid/nile-grid.utils.ts +18 -1
  454. package/src/nile-heading/nile-heading.test.ts +106 -0
  455. package/src/nile-hero/nile-hero.test.ts +103 -42
  456. package/src/nile-icon/icons/svg/delete_history.ts +5 -0
  457. package/src/nile-icon/icons/svg/index.ts +1 -0
  458. package/src/nile-icon/nile-icon.test.ts +103 -50
  459. package/src/nile-icon-button/nile-icon-button.test.ts +667 -0
  460. package/src/nile-inline-edit/nile-inline-edit.test.ts +106 -0
  461. package/src/nile-input/nile-input.test.ts +105 -164
  462. package/src/nile-input/nile-input.ts +1 -1
  463. package/src/nile-link/nile-link.test.ts +104 -81
  464. package/src/nile-list/nile-list.test.ts +106 -0
  465. package/src/nile-list-item/nile-list-item.test.ts +106 -0
  466. package/src/nile-lite-tooltip/nile-lite-tooltip.test.ts +107 -0
  467. package/src/nile-loader/nile-loader.test.ts +103 -48
  468. package/src/nile-menu/nile-menu.test.ts +106 -0
  469. package/src/nile-menu-item/nile-menu-item.test.ts +106 -0
  470. package/src/nile-option/nile-option.test.ts +106 -0
  471. package/src/nile-option-group/nile-option-group.test.ts +106 -0
  472. package/src/nile-page-header/nile-page-header.test.ts +106 -0
  473. package/src/nile-pagination/nile-pagination.test.ts +106 -0
  474. package/src/nile-popover/nile-popover.test.ts +103 -83
  475. package/src/nile-popup/nile-popup.test.ts +102 -82
  476. package/src/nile-progress-bar/nile-progress-bar.test.ts +103 -52
  477. package/src/nile-radio/nile-radio.test.ts +103 -78
  478. package/src/nile-radio-group/nile-radio-group.test.ts +104 -213
  479. package/src/nile-section-message/nile-section-message.test.ts +106 -0
  480. package/src/nile-select/nile-select.test.ts +105 -308
  481. package/src/nile-skeleton-loader/nile-skeleton-loader.test.ts +106 -0
  482. package/src/nile-slide-toggle/nile-slide-toggle.test.ts +103 -58
  483. package/src/nile-slider/nile-slider.test.ts +106 -0
  484. package/src/nile-spinner/nile-spinner.test.ts +668 -0
  485. package/src/nile-split-panel/nile-split-panel.test.ts +106 -0
  486. package/src/nile-stepper/nile-stepper.test.ts +107 -0
  487. package/src/nile-stepper-item/nile-stepper-item.test.ts +106 -0
  488. package/src/nile-tab/nile-tab.test.ts +106 -0
  489. package/src/nile-tab-group/nile-tab-group.test.ts +104 -211
  490. package/src/nile-tab-panel/nile-tab-panel.test.ts +106 -0
  491. package/src/nile-tag/nile-tag.test.ts +675 -0
  492. package/src/nile-textarea/nile-textarea.test.ts +104 -100
  493. package/src/nile-title/nile-title.test.ts +106 -0
  494. package/src/nile-toast/nile-toast.test.ts +625 -0
  495. package/src/nile-toolbar/nile-toolbar.test.ts +106 -0
  496. package/src/nile-tooltip/nile-tooltip.test.ts +645 -0
  497. package/src/nile-virtual-select/nile-virtual-select.test.ts +104 -772
  498. package/vscode-html-custom-data.json +8 -3
  499. package/web-test-runner.config.mjs +4 -2
  500. package/dist/axe.min-2720cd56.esm.js +0 -1
  501. package/dist/axe.min-69d47269.cjs.js +0 -2
  502. package/dist/axe.min-69d47269.cjs.js.map +0 -1
  503. package/dist/css-tag-bb10c0fa.cjs.js +0 -6
  504. package/dist/css-tag-bb10c0fa.cjs.js.map +0 -1
  505. package/dist/css-tag-dc564feb.esm.js +0 -6
  506. package/dist/fixture-958445f8.cjs.js +0 -395
  507. package/dist/fixture-958445f8.cjs.js.map +0 -1
  508. package/dist/fixture-985bba12.esm.js +0 -569
  509. package/dist/nile-accordion/nile-accordian.test.cjs.js +0 -2
  510. package/dist/nile-accordion/nile-accordian.test.cjs.js.map +0 -1
  511. package/dist/nile-accordion/nile-accordian.test.esm.js +0 -1
  512. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js +0 -2
  513. package/dist/nile-auto-complete/nile-auto-complete.test.cjs.js.map +0 -1
  514. package/dist/nile-auto-complete/nile-auto-complete.test.esm.js +0 -9
  515. package/dist/nile-avatar/nile-avatar.test.cjs.js +0 -2
  516. package/dist/nile-avatar/nile-avatar.test.cjs.js.map +0 -1
  517. package/dist/nile-avatar/nile-avatar.test.esm.js +0 -11
  518. package/dist/nile-badge/nile-badge.test.cjs.js +0 -2
  519. package/dist/nile-badge/nile-badge.test.cjs.js.map +0 -1
  520. package/dist/nile-badge/nile-badge.test.esm.js +0 -1
  521. package/dist/nile-button/nile-button.test.cjs.js +0 -2
  522. package/dist/nile-button/nile-button.test.cjs.js.map +0 -1
  523. package/dist/nile-button/nile-button.test.esm.js +0 -4
  524. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js +0 -2
  525. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.cjs.js.map +0 -1
  526. package/dist/nile-button-toggle-group/nile-button-toggle-group.test.esm.js +0 -49
  527. package/dist/nile-calendar/nile-calendar.test.cjs.js +0 -2
  528. package/dist/nile-calendar/nile-calendar.test.cjs.js.map +0 -1
  529. package/dist/nile-calendar/nile-calendar.test.esm.js +0 -11
  530. package/dist/nile-card/nile-card.test.cjs.js +0 -2
  531. package/dist/nile-card/nile-card.test.cjs.js.map +0 -1
  532. package/dist/nile-card/nile-card.test.esm.js +0 -51
  533. package/dist/nile-checkbox/nile-checkbox.test.cjs.js +0 -2
  534. package/dist/nile-checkbox/nile-checkbox.test.cjs.js.map +0 -1
  535. package/dist/nile-checkbox/nile-checkbox.test.esm.js +0 -17
  536. package/dist/nile-chip/nile-chip.test.cjs.js +0 -2
  537. package/dist/nile-chip/nile-chip.test.cjs.js.map +0 -1
  538. package/dist/nile-chip/nile-chip.test.esm.js +0 -1
  539. package/dist/nile-dialog/nile-dialog.test.cjs.js +0 -2
  540. package/dist/nile-dialog/nile-dialog.test.cjs.js.map +0 -1
  541. package/dist/nile-dialog/nile-dialog.test.esm.js +0 -7
  542. package/dist/nile-drawer/nile-drawer.test.cjs.js +0 -2
  543. package/dist/nile-drawer/nile-drawer.test.cjs.js.map +0 -1
  544. package/dist/nile-drawer/nile-drawer.test.esm.js +0 -17
  545. package/dist/nile-dropdown/nile-dropdown.test.cjs.js +0 -2
  546. package/dist/nile-dropdown/nile-dropdown.test.cjs.js.map +0 -1
  547. package/dist/nile-dropdown/nile-dropdown.test.esm.js +0 -28
  548. package/dist/nile-empty-state/nile-empty-state.test.cjs.js +0 -2
  549. package/dist/nile-empty-state/nile-empty-state.test.cjs.js.map +0 -1
  550. package/dist/nile-empty-state/nile-empty-state.test.esm.js +0 -9
  551. package/dist/nile-error-message/nile-error-message.test.cjs.js +0 -2
  552. package/dist/nile-error-message/nile-error-message.test.cjs.js.map +0 -1
  553. package/dist/nile-error-message/nile-error-message.test.esm.js +0 -1
  554. package/dist/nile-file-preview/nile-file-preview.test.cjs.js +0 -2
  555. package/dist/nile-file-preview/nile-file-preview.test.cjs.js.map +0 -1
  556. package/dist/nile-file-preview/nile-file-preview.test.esm.js +0 -1
  557. package/dist/nile-file-upload/nile-file-upload.test.cjs.js +0 -2
  558. package/dist/nile-file-upload/nile-file-upload.test.cjs.js.map +0 -1
  559. package/dist/nile-file-upload/nile-file-upload.test.esm.js +0 -1
  560. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js +0 -2
  561. package/dist/nile-filter-chip/nile-filter-chip.test.cjs.js.map +0 -1
  562. package/dist/nile-filter-chip/nile-filter-chip.test.esm.js +0 -20
  563. package/dist/nile-form-group/nile-form-group.test.cjs.js +0 -2
  564. package/dist/nile-form-group/nile-form-group.test.cjs.js.map +0 -1
  565. package/dist/nile-form-group/nile-form-group.test.esm.js +0 -1
  566. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js +0 -2
  567. package/dist/nile-form-help-text/nile-form-help-text.test.cjs.js.map +0 -1
  568. package/dist/nile-form-help-text/nile-form-help-text.test.esm.js +0 -1
  569. package/dist/nile-hero/nile-hero.test.cjs.js +0 -2
  570. package/dist/nile-hero/nile-hero.test.cjs.js.map +0 -1
  571. package/dist/nile-hero/nile-hero.test.esm.js +0 -14
  572. package/dist/nile-icon/nile-icon.test.cjs.js +0 -2
  573. package/dist/nile-icon/nile-icon.test.cjs.js.map +0 -1
  574. package/dist/nile-icon/nile-icon.test.esm.js +0 -1
  575. package/dist/nile-input/nile-input.test.cjs.js +0 -2
  576. package/dist/nile-input/nile-input.test.cjs.js.map +0 -1
  577. package/dist/nile-input/nile-input.test.esm.js +0 -17
  578. package/dist/nile-link/nile-link.test.cjs.js +0 -2
  579. package/dist/nile-link/nile-link.test.cjs.js.map +0 -1
  580. package/dist/nile-link/nile-link.test.esm.js +0 -1
  581. package/dist/nile-loader/nile-loader.test.cjs.js +0 -2
  582. package/dist/nile-loader/nile-loader.test.cjs.js.map +0 -1
  583. package/dist/nile-loader/nile-loader.test.esm.js +0 -1
  584. package/dist/nile-popover/nile-popover.test.cjs.js +0 -2
  585. package/dist/nile-popover/nile-popover.test.cjs.js.map +0 -1
  586. package/dist/nile-popover/nile-popover.test.esm.js +0 -21
  587. package/dist/nile-popup/nile-popup.test.cjs.js +0 -2
  588. package/dist/nile-popup/nile-popup.test.cjs.js.map +0 -1
  589. package/dist/nile-popup/nile-popup.test.esm.js +0 -1
  590. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js +0 -2
  591. package/dist/nile-progress-bar/nile-progress-bar.test.cjs.js.map +0 -1
  592. package/dist/nile-progress-bar/nile-progress-bar.test.esm.js +0 -1
  593. package/dist/nile-radio/nile-radio.test.cjs.js +0 -2
  594. package/dist/nile-radio/nile-radio.test.cjs.js.map +0 -1
  595. package/dist/nile-radio/nile-radio.test.esm.js +0 -1
  596. package/dist/nile-radio-group/nile-radio-group.test.cjs.js +0 -2
  597. package/dist/nile-radio-group/nile-radio-group.test.cjs.js.map +0 -1
  598. package/dist/nile-radio-group/nile-radio-group.test.esm.js +0 -57
  599. package/dist/nile-select/nile-select.test.cjs.js +0 -2
  600. package/dist/nile-select/nile-select.test.cjs.js.map +0 -1
  601. package/dist/nile-select/nile-select.test.esm.js +0 -55
  602. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js +0 -2
  603. package/dist/nile-slide-toggle/nile-slide-toggle.test.cjs.js.map +0 -1
  604. package/dist/nile-slide-toggle/nile-slide-toggle.test.esm.js +0 -1
  605. package/dist/nile-tab-group/nile-tab-group.test.cjs.js +0 -2
  606. package/dist/nile-tab-group/nile-tab-group.test.cjs.js.map +0 -1
  607. package/dist/nile-tab-group/nile-tab-group.test.esm.js +0 -65
  608. package/dist/nile-textarea/nile-textarea.test.cjs.js +0 -2
  609. package/dist/nile-textarea/nile-textarea.test.cjs.js.map +0 -1
  610. package/dist/nile-textarea/nile-textarea.test.esm.js +0 -1
  611. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js +0 -2
  612. package/dist/nile-virtual-select/nile-virtual-select.test.cjs.js.map +0 -1
  613. package/dist/nile-virtual-select/nile-virtual-select.test.esm.js +0 -93
  614. package/dist/scopedElementsWrapper-31107e48.esm.js +0 -1
  615. package/dist/scopedElementsWrapper-9b188ea6.cjs.js +0 -2
  616. package/dist/scopedElementsWrapper-9b188ea6.cjs.js.map +0 -1
  617. package/dist/sinon-esm-68c8e378.esm.js +0 -1
  618. package/dist/sinon-esm-97570c13.cjs.js +0 -2
  619. package/dist/sinon-esm-97570c13.cjs.js.map +0 -1
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","./nile-file-upload.css.cjs.js","../internal/nile-element.cjs.js","./utils/drag-drop.util.cjs.js","./types/file-upload.enums.cjs.js","lit","lit/decorators.js","./utils/file-validation.util.cjs.js","./nile-file-upload.template.cjs.js","../lit-html-9b3af046.cjs.js","../directive-7733ffce.cjs.js"],function(_export,_context){"use strict";var t,s,i,h,e,r,a,o,l,p,n,d,u,c,m,f,y,j,v,g,S,b,w,B,_templateObject,U;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_nileFileUploadCssCjsJs){s=_nileFileUploadCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;},function(_utilsDragDropUtilCjsJs){h=_utilsDragDropUtilCjsJs.D;},function(_typesFileUploadEnumsCjsJs){e=_typesFileUploadEnumsCjsJs.c;r=_typesFileUploadEnumsCjsJs.F;a=_typesFileUploadEnumsCjsJs.d;o=_typesFileUploadEnumsCjsJs.b;},function(_lit){l=_lit.html;},function(_litDecoratorsJs){p=_litDecoratorsJs.property;n=_litDecoratorsJs.query;d=_litDecoratorsJs.customElement;},function(_utilsFileValidationUtilCjsJs){u=_utilsFileValidationUtilCjsJs.s;c=_utilsFileValidationUtilCjsJs.a;m=_utilsFileValidationUtilCjsJs.b;f=_utilsFileValidationUtilCjsJs.u;},function(_nileFileUploadTemplateCjsJs){y=_nileFileUploadTemplateCjsJs.g;j=_nileFileUploadTemplateCjsJs.a;v=_nileFileUploadTemplateCjsJs.b;g=_nileFileUploadTemplateCjsJs.c;S=_nileFileUploadTemplateCjsJs.d;b=_nileFileUploadTemplateCjsJs.e;w=_nileFileUploadTemplateCjsJs.f;B=_nileFileUploadTemplateCjsJs.h;},function(_litHtml003CjsJs){},function(_directive004CjsJs){}],execute:function execute(){_export("N",U=/*#__PURE__*/function(_i){function U(){var _this;_classCallCheck(this,U);_this=_callSuper(this,U,arguments),_this.size="10MB",_this.error=!1,_this.errorMessage="",_this.allowMultiple=!1,_this.allowDuplicates=!1,_this.allowedTypes=[],_this.uploadedFiles=[],_this.title=e.TITLE,_this.subtitle=e.SUBTITLE,_this.state=r.DEFAULT,_this.variant=a.HORIZONTAL,_this.fileUploadUrl="",_this.autoUpload=!0,_this.uploadRequests=new Map(),_this.fileSizeExceededFilesNumber=0,_this.isStringTruncated=!1,_this.setState=function(t){_this.state=t;};return _this;}_inherits(U,_i);return _createClass(U,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(U,"connectedCallback",this,3)([]),this.emit(o.NILE_INIT);}},{key:"firstUpdated",value:function firstUpdated(t){_superPropGet(U,"firstUpdated",this,3)([t]),this.dragHandler=new h(),u(this,this.dragHandler),c(this,this.dragHandler,this.uploadRequests),m(this.dragHandler);}},{key:"updated",value:function updated(t){_superPropGet(U,"updated",this,3)([t]),t.has("uploadedFiles")?(this.fileUploadUrl&&this.autoUpload&&f(this),this.emit(o.NILE_CHANGE,{files:this.uploadedFiles})):t.has("state")&&this.dragHandler.setValuesInDragHandler(this.state),t.has("autoUpload")&&this.autoUpload&&(this.fileUploadUrl&&this.autoUpload&&f(this),this.emit(o.NILE_CHANGE,{files:this.uploadedFiles}));}},{key:"browseFiles",value:function browseFiles(){this.emit(o.NILE_BROWSE),this.errorMessage="",this.input.click();}},{key:"render",value:function render(){return l(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n ","\n "])),this.getState());}},{key:"getState",value:function getState(){return this.variant===a.HORIZONTAL?this.getHorizontalState():this.getVerticalState();}},{key:"getHorizontalState",value:function getHorizontalState(){switch(this.state){case r.DEFAULT:return y(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DISABLED:return g(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DRAG:return v();case r.ERROR:return j(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);default:return y(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);}}},{key:"getVerticalState",value:function getVerticalState(){switch(this.state){case r.DEFAULT:return S(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);case r.DISABLED:return B(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);case r.DRAG:return w();case r.ERROR:return b(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);default:return S(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);}}},{key:"disconnectedCallback",value:function disconnectedCallback(){this.emit(o.NILE_DESTROY);}}],[{key:"styles",get:function get(){return[s];}}]);}(i));t([p({type:String})],U.prototype,"size",void 0),t([p({type:Boolean})],U.prototype,"error",void 0),t([p({type:String})],U.prototype,"errorMessage",void 0),t([p({type:Boolean})],U.prototype,"allowMultiple",void 0),t([p({type:Boolean})],U.prototype,"allowDuplicates",void 0),t([p({type:Array})],U.prototype,"allowedTypes",void 0),t([p({type:Array})],U.prototype,"uploadedFiles",void 0),t([p({type:String})],U.prototype,"title",void 0),t([p({type:String})],U.prototype,"subtitle",void 0),t([p({type:String})],U.prototype,"state",void 0),t([p({type:String})],U.prototype,"variant",void 0),t([p({type:String})],U.prototype,"fileUploadUrl",void 0),t([p({type:Boolean})],U.prototype,"autoUpload",void 0),t([n("input")],U.prototype,"input",void 0),_export("N",U=t([d("nile-file-upload")],U));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","./nile-file-upload.css.cjs.js","../internal/nile-element.cjs.js","./utils/drag-drop.util.cjs.js","./types/file-upload.enums.cjs.js","lit","lit/decorators.js","./utils/file-validation.util.cjs.js","./nile-file-upload.template.cjs.js","../lit-html-9b3af046.cjs.js","../directive-7733ffce.cjs.js"],function(_export,_context){"use strict";var t,s,i,h,e,r,a,o,l,d,p,n,u,c,m,f,v,y,j,g,S,b,w,U,B,_templateObject,F;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_nileFileUploadCssCjsJs){s=_nileFileUploadCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;},function(_utilsDragDropUtilCjsJs){h=_utilsDragDropUtilCjsJs.D;},function(_typesFileUploadEnumsCjsJs){e=_typesFileUploadEnumsCjsJs.d;r=_typesFileUploadEnumsCjsJs.F;a=_typesFileUploadEnumsCjsJs.e;o=_typesFileUploadEnumsCjsJs.b;},function(_lit){l=_lit.html;},function(_litDecoratorsJs){d=_litDecoratorsJs.property;p=_litDecoratorsJs.state;n=_litDecoratorsJs.query;u=_litDecoratorsJs.customElement;},function(_utilsFileValidationUtilCjsJs){c=_utilsFileValidationUtilCjsJs.s;m=_utilsFileValidationUtilCjsJs.a;f=_utilsFileValidationUtilCjsJs.b;v=_utilsFileValidationUtilCjsJs.u;},function(_nileFileUploadTemplateCjsJs){y=_nileFileUploadTemplateCjsJs.g;j=_nileFileUploadTemplateCjsJs.a;g=_nileFileUploadTemplateCjsJs.b;S=_nileFileUploadTemplateCjsJs.c;b=_nileFileUploadTemplateCjsJs.d;w=_nileFileUploadTemplateCjsJs.e;U=_nileFileUploadTemplateCjsJs.f;B=_nileFileUploadTemplateCjsJs.h;},function(_litHtml003CjsJs){},function(_directive004CjsJs){}],execute:function execute(){_export("N",F=/*#__PURE__*/function(_i){function F(){var _this;_classCallCheck(this,F);_this=_callSuper(this,F,arguments),_this.size="10MB",_this.error=!1,_this.errorMessage="",_this.allowMultiple=!1,_this.allowDuplicates=!1,_this.allowedTypes=[],_this.uploadedFiles=[],_this.title=e.TITLE,_this.subtitle=e.SUBTITLE,_this.state=r.DEFAULT,_this.variant=a.HORIZONTAL,_this.fileUploadUrl="",_this.autoUpload=!0,_this.doNotUpload=[],_this.uploadRequests=new Map(),_this.fileSizeExceededFilesNumber=0,_this.isStringTruncated=!1,_this.setState=function(t){_this.state=t;};return _this;}_inherits(F,_i);return _createClass(F,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(F,"connectedCallback",this,3)([]),this.emit(o.NILE_INIT);}},{key:"firstUpdated",value:function firstUpdated(t){_superPropGet(F,"firstUpdated",this,3)([t]),this.dragHandler=new h(),c(this,this.dragHandler),m(this,this.dragHandler,this.uploadRequests),f(this.dragHandler);}},{key:"updated",value:function updated(t){_superPropGet(F,"updated",this,3)([t]),t.has("uploadedFiles")?(this.fileUploadUrl&&this.autoUpload&&v(this),this.emit(o.NILE_CHANGE,{files:this.uploadedFiles})):t.has("state")&&this.dragHandler.setValuesInDragHandler(this.state),t.has("autoUpload")&&this.autoUpload&&(this.fileUploadUrl&&this.autoUpload&&v(this),this.emit(o.NILE_CHANGE,{files:this.uploadedFiles}));}},{key:"browseFiles",value:function browseFiles(){this.emit(o.NILE_BROWSE),this.errorMessage="",this.input.click();}},{key:"render",value:function render(){return l(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n ","\n "])),this.getState());}},{key:"clearAllUploadedFiles",value:function clearAllUploadedFiles(){this.uploadedFiles=[],this.state=r.DEFAULT,this.errorMessage="";}},{key:"getState",value:function getState(){return this.variant===a.HORIZONTAL?this.getHorizontalState():this.getVerticalState();}},{key:"getHorizontalState",value:function getHorizontalState(){switch(this.state){case r.DEFAULT:return y(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DISABLED:return S(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DRAG:return g();case r.ERROR:return j(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);default:return y(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);}}},{key:"getVerticalState",value:function getVerticalState(){switch(this.state){case r.DEFAULT:return b(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);case r.DISABLED:return B(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);case r.DRAG:return U();case r.ERROR:return w(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);default:return b(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);}}},{key:"disconnectedCallback",value:function disconnectedCallback(){this.emit(o.NILE_DESTROY);}}],[{key:"styles",get:function get(){return[s];}}]);}(i));t([d({type:String})],F.prototype,"size",void 0),t([d({type:Boolean})],F.prototype,"error",void 0),t([d({type:String})],F.prototype,"errorMessage",void 0),t([d({type:Boolean})],F.prototype,"allowMultiple",void 0),t([d({type:Boolean})],F.prototype,"allowDuplicates",void 0),t([d({type:Array})],F.prototype,"allowedTypes",void 0),t([d({type:Array})],F.prototype,"uploadedFiles",void 0),t([d({type:String})],F.prototype,"title",void 0),t([d({type:String})],F.prototype,"subtitle",void 0),t([d({type:String})],F.prototype,"state",void 0),t([d({type:String})],F.prototype,"variant",void 0),t([d({type:String})],F.prototype,"fileUploadUrl",void 0),t([d({type:Boolean})],F.prototype,"autoUpload",void 0),t([p()],F.prototype,"doNotUpload",void 0),t([n("input")],F.prototype,"input",void 0),t([n(".horizontal-div")],F.prototype,"horizontalDiv",void 0),_export("N",F=t([u("nile-file-upload")],F));}};});
2
2
  //# sourceMappingURL=nile-file-upload.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-file-upload.cjs.js","sources":["../../../src/nile-file-upload/nile-file-upload.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { styles } from './nile-file-upload.css';\nimport { ChangedPropsInterface } from './types/file-upload.type'\nimport NileElement from '../internal/nile-element';\nimport { DragHandler } from './utils/drag-drop.util';\nimport { FileUploadDefaults } from './types/file-upload.enums';\nimport { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { FileUploadState, FileUploadVariant, FileUploadError, FileUploadEvent } from './types/file-upload.enums';\nimport { setUpDragHandler, addGlobalListeners, addInternalListeners, uploadFiles, cancelFileUpload } from './utils/file-validation.util';\nimport {\n getHorizontalDefaultState,\n getHorizontalDragState,\n getVerticalDefaultState,\n getVerticalDisabledState,\n getVerticalDragState,\n getHorizontalErrorState,\n getVerticalErrorState,\n getHorizontalDisabledState\n} from './nile-file-upload.template';\n\n/**\n * Nile file-upload component.\n *\n * @tag nile-file-upload\n *\n */\n@customElement('nile-file-upload')\nexport class NileFileUpload extends NileElement {\n /**\n * The styles for nile-file-upload\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String }) size: string = \"10MB\";\n @property({ type: Boolean}) error: boolean = false;\n @property({ type: String }) errorMessage: string = \"\";\n @property({ type: Boolean}) allowMultiple: boolean = false;\n @property({ type: Boolean}) allowDuplicates: boolean = false;\n @property({ type: Array }) allowedTypes: string[] = [];\n @property({ type: Array }) uploadedFiles: File[] = [];\n @property({ type: String }) title: string = FileUploadDefaults.TITLE;\n @property({ type: String }) subtitle: string = FileUploadDefaults.SUBTITLE;\n @property({ type: String }) state: FileUploadState = FileUploadState.DEFAULT; \n @property({ type: String }) variant: FileUploadVariant = FileUploadVariant.HORIZONTAL;\n @property({ type: String }) fileUploadUrl: string = \"\";\n @property({ type: Boolean}) autoUpload: boolean = true;\n @query('input') input!: HTMLInputElement;\n public uploadRequests = new Map<File, XMLHttpRequest>();\n public fileSizeExceededFilesNumber: number = 0;\n public isStringTruncated: boolean = false;\n \n private dragHandler!: DragHandler;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.emit(FileUploadEvent.NILE_INIT);\n }\n\n firstUpdated(changedProps: ChangedPropsInterface): void {\n super.firstUpdated(changedProps);\n\n this.dragHandler = new DragHandler();\n setUpDragHandler(this, this.dragHandler);\n addInternalListeners(this, this.dragHandler, this.uploadRequests);\n addGlobalListeners(this.dragHandler);\n }\n\n updated(changedProps: ChangedPropsInterface): void {\n super.updated(changedProps);\n\n if (changedProps.has('uploadedFiles')) {\n if(this.fileUploadUrl && this.autoUpload) {\n uploadFiles(this);\n }\n this.emit(FileUploadEvent.NILE_CHANGE, { files: this.uploadedFiles });\n } else if (changedProps.has('state')) {\n this.dragHandler.setValuesInDragHandler(this.state);\n }\n\n if(changedProps.has('autoUpload') && this.autoUpload) {\n if(this.fileUploadUrl && this.autoUpload) {\n uploadFiles(this);\n }\n this.emit(FileUploadEvent.NILE_CHANGE, { files: this.uploadedFiles });\n }\n }\n\n private browseFiles(): void {\n this.emit(FileUploadEvent.NILE_BROWSE);\n this.errorMessage = \"\";\n this.input.click();\n }\n\n public setState = (newState: FileUploadState): void => {\n this.state = newState;\n }\n\n render(): TemplateResult {\n return html`\n ${this.getState()}\n `;\n }\n\n private getState(): TemplateResult {\n return this.variant === FileUploadVariant.HORIZONTAL\n ? this.getHorizontalState()\n : this.getVerticalState();\n }\n\n private getHorizontalState(): TemplateResult {\n switch(this.state) {\n case FileUploadState.DEFAULT:\n return getHorizontalDefaultState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.state, this.errorMessage, this.allowedTypes, this);\n\n case FileUploadState.DISABLED:\n return getHorizontalDisabledState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.state, this.errorMessage, this.allowedTypes, this);\n\n case FileUploadState.DRAG:\n return getHorizontalDragState();\n\n case FileUploadState.ERROR:\n return getHorizontalErrorState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.state, this.errorMessage, this.allowedTypes, this);\n\n default:\n return getHorizontalDefaultState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.state, this.errorMessage, this.allowedTypes, this);\n }\n }\n\n private getVerticalState(): TemplateResult {\n switch(this.state) {\n case FileUploadState.DEFAULT:\n return getVerticalDefaultState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.errorMessage, this.allowedTypes, this);\n\n case FileUploadState.DISABLED:\n return getVerticalDisabledState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.errorMessage, this.allowedTypes, this);\n\n case FileUploadState.DRAG:\n return getVerticalDragState();\n\n case FileUploadState.ERROR:\n return getVerticalErrorState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.errorMessage, this.allowedTypes, this);\n\n default:\n return getVerticalDefaultState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.errorMessage, this.allowedTypes, this);\n }\n }\n\n disconnectedCallback(): void {\n this.emit(FileUploadEvent.NILE_DESTROY);\n }\n}\n"],"names":["NileFileUpload","_i","U","constructor","this","size","error","errorMessage","allowMultiple","allowDuplicates","allowedTypes","uploadedFiles","title","FileUploadDefaults","TITLE","subtitle","SUBTITLE","state","FileUploadState","DEFAULT","variant","FileUploadVariant","HORIZONTAL","fileUploadUrl","autoUpload","uploadRequests","Map","fileSizeExceededFilesNumber","isStringTruncated","setState","newState","_this","_inherits","_createClass","key","value","connectedCallback","super","emit","FileUploadEvent","NILE_INIT","firstUpdated","changedProps","dragHandler","DragHandler","setUpDragHandler","addInternalListeners","addGlobalListeners","updated","has","uploadFiles","NILE_CHANGE","files","setValuesInDragHandler","browseFiles","NILE_BROWSE","input","click","render","html","_templateObject","_taggedTemplateLiteral","getState","getHorizontalState","getVerticalState","getHorizontalDefaultState","DISABLED","getHorizontalDisabledState","DRAG","getHorizontalDragState","ERROR","getHorizontalErrorState","getVerticalDefaultState","getVerticalDisabledState","getVerticalDragState","getVerticalErrorState","disconnectedCallback","NILE_DESTROY","get","styles","NileElement","__decorate","property","type","String","prototype","Boolean","Array","query","customElement"],"mappings":"+pJAkCaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCASuBC,KAAAA,CAAIC,IAAAA,CAAW,OACfD,KAAAA,CAAKE,KAAAA,CAAAA,CAAY,CACjBF,CAAAA,KAAAA,CAAYG,YAAW,CAAA,EAAA,CACvBH,KAAAA,CAAaI,aAAY,CAAA,CAAA,CAAA,CACzBJ,KAAAA,CAAeK,eAAY,CAAA,CAAA,CAAA,CAC3BL,KAAAA,CAAYM,YAAa,CAAA,EAAA,CACzBN,KAAAA,CAAaO,aAAAA,CAAW,EACxBP,CAAAA,KAAAA,CAAAQ,MAAgBC,CAAmBC,CAAAA,KAAAA,CACnCV,KAAAA,CAAAW,QAAmBF,CAAAA,CAAAA,CAAmBG,SACtCZ,KAAAA,CAAAa,KAAAA,CAAyBC,CAAgBC,CAAAA,OAAAA,CACzCf,KAAAA,CAAAgB,OAAAA,CAA6BC,EAAkBC,UAC/ClB,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CAAA,CAA3BC,CAAS,CAAA,CAAEC,KAAMC,MAA2DpF,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAqF,UAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CACjDJ,EAAA,CAA3BC,CAAAA,CAAS,CAAEC,IAAAA,CAAMC,UAAoEpF,CAAAqF,CAAAA,SAAAA,CAAA,SAAA,CAAA,IAAA,EAAA,CAAA,CAC1DJ,EAAA,CAA3BC,CAAAA,CAAS,CAAEC,IAAAA,CAAMC,UAAqCpF,CAAAqF,CAAAA,SAAAA,CAAA,oBAAA,EAC3BJ,CAAAA,CAAAA,CAAAA,CAAA,CAA3BC,CAAS,CAAA,CAAEC,IAAMG,CAAAA,OAAAA,CAAAA,CAAAA,CAAAA,CAAqCtF,EAAAqF,SAAA,CAAA,YAAA,CAAA,IAAA,EACvCJ,CAAAA,CAAAA,CAAAA,CAAA,CAAfO,CAAM,CAAA,OAAA,CAAA,CAAA,CAAkCxF,CAAAqF,CAAAA,SAAAA,CAAA,YAAA,EAtB9BrF,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAciF,EAAA,CAD1BQ,CAAAA,CAAc,qBACFzF"}
1
+ {"version":3,"file":"nile-file-upload.cjs.js","sources":["../../../src/nile-file-upload/nile-file-upload.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2025\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { styles } from './nile-file-upload.css';\nimport { ChangedPropsInterface } from './types/file-upload.type'\nimport NileElement from '../internal/nile-element';\nimport { DragHandler } from './utils/drag-drop.util';\nimport { FileUploadDefaults } from './types/file-upload.enums';\nimport { LitElement, html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property, query, state } from 'lit/decorators.js';\nimport { FileUploadState, FileUploadVariant, FileUploadError, FileUploadEvent } from './types/file-upload.enums';\nimport { setUpDragHandler, addGlobalListeners, addInternalListeners, uploadFiles, cancelFileUpload } from './utils/file-validation.util';\nimport {\n getHorizontalDefaultState,\n getHorizontalDragState,\n getVerticalDefaultState,\n getVerticalDisabledState,\n getVerticalDragState,\n getHorizontalErrorState,\n getVerticalErrorState,\n getHorizontalDisabledState\n} from './nile-file-upload.template';\n\n/**\n * Nile file-upload component.\n *\n * @tag nile-file-upload\n *\n */\n@customElement('nile-file-upload')\nexport class NileFileUpload extends NileElement {\n /**\n * The styles for nile-file-upload\n * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n */\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: String }) size: string = \"10MB\";\n @property({ type: Boolean}) error: boolean = false;\n @property({ type: String }) errorMessage: string = \"\";\n @property({ type: Boolean}) allowMultiple: boolean = false;\n @property({ type: Boolean}) allowDuplicates: boolean = false;\n @property({ type: Array }) allowedTypes: string[] = [];\n @property({ type: Array }) uploadedFiles: File[] = [];\n @property({ type: String }) title: string = FileUploadDefaults.TITLE;\n @property({ type: String }) subtitle: string = FileUploadDefaults.SUBTITLE;\n @property({ type: String }) state: FileUploadState = FileUploadState.DEFAULT;\n @property({ type: String }) variant: FileUploadVariant = FileUploadVariant.HORIZONTAL;\n @property({ type: String }) fileUploadUrl: string = \"\";\n @property({ type: Boolean}) autoUpload: boolean = true;\n @state() public doNotUpload: File[] = [];\n @query('input') input!: HTMLInputElement;\n @query('.horizontal-div') horizontalDiv!: HTMLDivElement;\n public uploadRequests = new Map<File, XMLHttpRequest>();\n public fileSizeExceededFilesNumber: number = 0;\n public isStringTruncated: boolean = false;\n\n private dragHandler!: DragHandler;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.emit(FileUploadEvent.NILE_INIT);\n }\n\n firstUpdated(changedProps: ChangedPropsInterface): void {\n super.firstUpdated(changedProps);\n\n this.dragHandler = new DragHandler();\n setUpDragHandler(this, this.dragHandler);\n addInternalListeners(this, this.dragHandler, this.uploadRequests);\n addGlobalListeners(this.dragHandler);\n }\n\n updated(changedProps: ChangedPropsInterface): void {\n super.updated(changedProps);\n\n if (changedProps.has('uploadedFiles')) {\n if(this.fileUploadUrl && this.autoUpload) {\n uploadFiles(this);\n }\n this.emit(FileUploadEvent.NILE_CHANGE, { files: this.uploadedFiles });\n } else if (changedProps.has('state')) {\n this.dragHandler.setValuesInDragHandler(this.state);\n }\n\n if(changedProps.has('autoUpload') && this.autoUpload) {\n if(this.fileUploadUrl && this.autoUpload) {\n uploadFiles(this);\n }\n this.emit(FileUploadEvent.NILE_CHANGE, { files: this.uploadedFiles });\n }\n }\n\n public browseFiles(): void {\n this.emit(FileUploadEvent.NILE_BROWSE);\n this.errorMessage = \"\";\n this.input.click();\n }\n\n public setState = (newState: FileUploadState): void => {\n this.state = newState;\n }\n\n render(): TemplateResult {\n return html`\n ${this.getState()}\n `;\n }\n\n public clearAllUploadedFiles(): void {\n this.uploadedFiles = [];\n this.state = FileUploadState.DEFAULT;\n this.errorMessage = \"\";\n }\n\n private getState(): TemplateResult {\n return this.variant === FileUploadVariant.HORIZONTAL\n ? this.getHorizontalState()\n : this.getVerticalState();\n }\n\n private getHorizontalState(): TemplateResult {\n switch(this.state) {\n case FileUploadState.DEFAULT:\n return getHorizontalDefaultState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.state, this.errorMessage, this.allowedTypes, this);\n\n case FileUploadState.DISABLED:\n return getHorizontalDisabledState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.state, this.errorMessage, this.allowedTypes, this);\n\n case FileUploadState.DRAG:\n return getHorizontalDragState();\n\n case FileUploadState.ERROR:\n return getHorizontalErrorState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.state, this.errorMessage, this.allowedTypes, this);\n\n default:\n return getHorizontalDefaultState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.state, this.errorMessage, this.allowedTypes, this);\n }\n }\n\n private getVerticalState(): TemplateResult {\n switch(this.state) {\n case FileUploadState.DEFAULT:\n return getVerticalDefaultState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.errorMessage, this.allowedTypes, this);\n\n case FileUploadState.DISABLED:\n return getVerticalDisabledState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.errorMessage, this.allowedTypes, this);\n\n case FileUploadState.DRAG:\n return getVerticalDragState();\n\n case FileUploadState.ERROR:\n return getVerticalErrorState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.errorMessage, this.allowedTypes, this);\n\n default:\n return getVerticalDefaultState(this.browseFiles, this.title, this.subtitle, this.dragHandler, this.errorMessage, this.allowedTypes, this);\n }\n }\n\n disconnectedCallback(): void {\n this.emit(FileUploadEvent.NILE_DESTROY);\n }\n}\n"],"names":["NileFileUpload","_i","F","constructor","this","size","error","errorMessage","allowMultiple","allowDuplicates","allowedTypes","uploadedFiles","title","FileUploadDefaults","TITLE","subtitle","SUBTITLE","state","FileUploadState","DEFAULT","variant","FileUploadVariant","HORIZONTAL","fileUploadUrl","autoUpload","doNotUpload","uploadRequests","Map","fileSizeExceededFilesNumber","isStringTruncated","setState","newState","_this","_inherits","_createClass","key","value","connectedCallback","super","emit","FileUploadEvent","NILE_INIT","firstUpdated","changedProps","dragHandler","DragHandler","setUpDragHandler","addInternalListeners","addGlobalListeners","updated","has","uploadFiles","NILE_CHANGE","files","setValuesInDragHandler","browseFiles","NILE_BROWSE","input","click","render","html","_templateObject","_taggedTemplateLiteral","getState","clearAllUploadedFiles","getHorizontalState","getVerticalState","getHorizontalDefaultState","DISABLED","getHorizontalDisabledState","DRAG","getHorizontalDragState","ERROR","getHorizontalErrorState","getVerticalDefaultState","getVerticalDisabledState","getVerticalDragState","getVerticalErrorState","disconnectedCallback","NILE_DESTROY","get","styles","NileElement","__decorate","property","type","String","prototype","Boolean","Array","query","customElement"],"mappings":"0rJAkCaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCASuBC,KAAAA,CAAIC,IAAAA,CAAW,OACfD,KAAAA,CAAKE,KAAAA,CAA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AAAA,CAAAA,CAAAA,CAAAA,CAAAuF,UAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CACfJ,EAAA,CAAzBO,CAAAA,CAAM,oBAAkD1F,CAAAuF,CAAAA,SAAAA,CAAA,oBAAA,EAxB9CvF,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAcmF,EAAA,CAD1BQ,CAAAA,CAAc,qBACF3F"}
@@ -1,2 +1,2 @@
1
- System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",r=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\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"]))));}};});
1
+ System.register(["lit"],function(_export,_context){"use strict";var e,_templateObject,r;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}return{setters:[function(_lit){e=_lit.css;}],execute:function execute(){_export("s",r=e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\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"]))));}};});
2
2
  //# sourceMappingURL=nile-file-upload.css.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-file-upload.css.cjs.js","sources":["../../../src/nile-file-upload/nile-file-upload.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {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];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
1
+ {"version":3,"file":"nile-file-upload.css.cjs.js","sources":["../../../src/nile-file-upload/nile-file-upload.css.ts"],"sourcesContent":["/**\n* Copyright Aquera Inc 2023\n*\n* This source code is licensed under the BSD-3-Clause license found in the\n* LICENSE file in the root directory of this source tree.\n*/\n\nimport {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];"],"names":["styles","css","_templateObject","_taggedTemplateLiteral"],"mappings":"oTAYaA,CAAAA,CAASC,CAAG,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA"}
@@ -1,6 +1,7 @@
1
1
  import{css as e}from"lit";const r=e`
2
2
  :host {
3
3
  display: inline-block;
4
+ width: 100%;
4
5
  }
5
6
 
6
7
  * {
@@ -14,7 +15,7 @@ import{css as e}from"lit";const r=e`
14
15
  flex-direction: column;
15
16
  justify-content: center;
16
17
  align-items: flex-start;
17
- width: min-content;
18
+ width: 100%;
18
19
  }
19
20
 
20
21
  input {
@@ -22,10 +23,8 @@ import{css as e}from"lit";const r=e`
22
23
  }
23
24
 
24
25
  .horizontal-div {
25
- margin-bottom: 10px;
26
26
  height: 62px;
27
- max-width: 648px;
28
- width: 648px;
27
+ width: 100%;
29
28
  min-width: 230px;
30
29
  padding: 12px;
31
30
  display: flex;
@@ -38,6 +37,16 @@ import{css as e}from"lit";const r=e`
38
37
  background-color: var(--nile-colors-white-base);
39
38
  }
40
39
 
40
+ @media (width < 400px) {
41
+ .browse-file-button {
42
+ display: none;
43
+ }
44
+
45
+ .horizontal-div {
46
+ cursor: pointer;
47
+ }
48
+ }
49
+
41
50
  .hover-border {
42
51
  border-color: var(--nile-colors-primary-600);
43
52
  }
@@ -78,7 +87,6 @@ import{css as e}from"lit";const r=e`
78
87
  border: 1px dashed var(--nile-colors-neutral-500);
79
88
  background-color: var(--nile-colors-white-base);
80
89
  position: relative;
81
- margin-bottom: 10px;
82
90
  }
83
91
 
84
92
  .vertical-div:hover {
@@ -581,6 +589,7 @@ import{css as e}from"lit";const r=e`
581
589
  justify-content: flex-start;
582
590
  align-items: center;
583
591
  gap: var(--nile-spacing-one-half-x);
592
+ margin-top: 10px;
584
593
  }
585
594
 
586
595
  .upload-error > nile-tooltip > span {
@@ -595,6 +604,7 @@ import{css as e}from"lit";const r=e`
595
604
  .vertical-upload-error {
596
605
  display: flex;
597
606
  gap: 4px;
607
+ margin-top: 10px;
598
608
  }
599
609
 
600
610
  .vertical-upload-error nile-tooltip span, .vertical-upload-error span {
@@ -1,3 +1,3 @@
1
- import{__decorate as t}from"tslib";import{s}from"./nile-file-upload.css.esm.js";import{N as i}from"../internal/nile-element.esm.js";import{D as e}from"./utils/drag-drop.util.esm.js";import{c as h,F as r,d as a,b as o}from"./types/file-upload.enums.esm.js";import{html as l}from"lit";import{property as p,query as n,customElement as d}from"lit/decorators.js";import{s as u,a as m,b as c,u as f}from"./utils/file-validation.util.esm.js";import{g as y,a as v,b as g,c as S,d as j,e as b,f as w,h as B}from"./nile-file-upload.template.esm.js";import"../lit-html-39a6718c.esm.js";import"../directive-ee0c609c.esm.js";let U=class extends i{constructor(){super(...arguments),this.size="10MB",this.error=!1,this.errorMessage="",this.allowMultiple=!1,this.allowDuplicates=!1,this.allowedTypes=[],this.uploadedFiles=[],this.title=h.TITLE,this.subtitle=h.SUBTITLE,this.state=r.DEFAULT,this.variant=a.HORIZONTAL,this.fileUploadUrl="",this.autoUpload=!0,this.uploadRequests=new Map,this.fileSizeExceededFilesNumber=0,this.isStringTruncated=!1,this.setState=t=>{this.state=t}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.emit(o.NILE_INIT)}firstUpdated(t){super.firstUpdated(t),this.dragHandler=new e,u(this,this.dragHandler),m(this,this.dragHandler,this.uploadRequests),c(this.dragHandler)}updated(t){super.updated(t),t.has("uploadedFiles")?(this.fileUploadUrl&&this.autoUpload&&f(this),this.emit(o.NILE_CHANGE,{files:this.uploadedFiles})):t.has("state")&&this.dragHandler.setValuesInDragHandler(this.state),t.has("autoUpload")&&this.autoUpload&&(this.fileUploadUrl&&this.autoUpload&&f(this),this.emit(o.NILE_CHANGE,{files:this.uploadedFiles}))}browseFiles(){this.emit(o.NILE_BROWSE),this.errorMessage="",this.input.click()}render(){return l`
1
+ import{__decorate as t}from"tslib";import{s}from"./nile-file-upload.css.esm.js";import{N as i}from"../internal/nile-element.esm.js";import{D as e}from"./utils/drag-drop.util.esm.js";import{d as h,F as r,e as a,b as o}from"./types/file-upload.enums.esm.js";import{html as l}from"lit";import{property as d,state as p,query as n,customElement as u}from"lit/decorators.js";import{s as m,a as c,b as f,u as v}from"./utils/file-validation.util.esm.js";import{g as y,a as g,b as S,c as j,d as b,e as w,f as U,h as B}from"./nile-file-upload.template.esm.js";import"../lit-html-39a6718c.esm.js";import"../directive-ee0c609c.esm.js";let F=class extends i{constructor(){super(...arguments),this.size="10MB",this.error=!1,this.errorMessage="",this.allowMultiple=!1,this.allowDuplicates=!1,this.allowedTypes=[],this.uploadedFiles=[],this.title=h.TITLE,this.subtitle=h.SUBTITLE,this.state=r.DEFAULT,this.variant=a.HORIZONTAL,this.fileUploadUrl="",this.autoUpload=!0,this.doNotUpload=[],this.uploadRequests=new Map,this.fileSizeExceededFilesNumber=0,this.isStringTruncated=!1,this.setState=t=>{this.state=t}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.emit(o.NILE_INIT)}firstUpdated(t){super.firstUpdated(t),this.dragHandler=new e,m(this,this.dragHandler),c(this,this.dragHandler,this.uploadRequests),f(this.dragHandler)}updated(t){super.updated(t),t.has("uploadedFiles")?(this.fileUploadUrl&&this.autoUpload&&v(this),this.emit(o.NILE_CHANGE,{files:this.uploadedFiles})):t.has("state")&&this.dragHandler.setValuesInDragHandler(this.state),t.has("autoUpload")&&this.autoUpload&&(this.fileUploadUrl&&this.autoUpload&&v(this),this.emit(o.NILE_CHANGE,{files:this.uploadedFiles}))}browseFiles(){this.emit(o.NILE_BROWSE),this.errorMessage="",this.input.click()}render(){return l`
2
2
  ${this.getState()}
3
- `}getState(){return this.variant===a.HORIZONTAL?this.getHorizontalState():this.getVerticalState()}getHorizontalState(){switch(this.state){case r.DEFAULT:return y(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DISABLED:return S(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DRAG:return g();case r.ERROR:return v(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);default:return y(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this)}}getVerticalState(){switch(this.state){case r.DEFAULT:return j(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);case r.DISABLED:return B(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);case r.DRAG:return w();case r.ERROR:return b(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);default:return j(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this)}}disconnectedCallback(){this.emit(o.NILE_DESTROY)}};t([p({type:String})],U.prototype,"size",void 0),t([p({type:Boolean})],U.prototype,"error",void 0),t([p({type:String})],U.prototype,"errorMessage",void 0),t([p({type:Boolean})],U.prototype,"allowMultiple",void 0),t([p({type:Boolean})],U.prototype,"allowDuplicates",void 0),t([p({type:Array})],U.prototype,"allowedTypes",void 0),t([p({type:Array})],U.prototype,"uploadedFiles",void 0),t([p({type:String})],U.prototype,"title",void 0),t([p({type:String})],U.prototype,"subtitle",void 0),t([p({type:String})],U.prototype,"state",void 0),t([p({type:String})],U.prototype,"variant",void 0),t([p({type:String})],U.prototype,"fileUploadUrl",void 0),t([p({type:Boolean})],U.prototype,"autoUpload",void 0),t([n("input")],U.prototype,"input",void 0),U=t([d("nile-file-upload")],U);export{U as N};
3
+ `}clearAllUploadedFiles(){this.uploadedFiles=[],this.state=r.DEFAULT,this.errorMessage=""}getState(){return this.variant===a.HORIZONTAL?this.getHorizontalState():this.getVerticalState()}getHorizontalState(){switch(this.state){case r.DEFAULT:return y(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DISABLED:return j(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DRAG:return S();case r.ERROR:return g(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);default:return y(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this)}}getVerticalState(){switch(this.state){case r.DEFAULT:return b(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);case r.DISABLED:return B(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);case r.DRAG:return U();case r.ERROR:return w(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this);default:return b(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.errorMessage,this.allowedTypes,this)}}disconnectedCallback(){this.emit(o.NILE_DESTROY)}};t([d({type:String})],F.prototype,"size",void 0),t([d({type:Boolean})],F.prototype,"error",void 0),t([d({type:String})],F.prototype,"errorMessage",void 0),t([d({type:Boolean})],F.prototype,"allowMultiple",void 0),t([d({type:Boolean})],F.prototype,"allowDuplicates",void 0),t([d({type:Array})],F.prototype,"allowedTypes",void 0),t([d({type:Array})],F.prototype,"uploadedFiles",void 0),t([d({type:String})],F.prototype,"title",void 0),t([d({type:String})],F.prototype,"subtitle",void 0),t([d({type:String})],F.prototype,"state",void 0),t([d({type:String})],F.prototype,"variant",void 0),t([d({type:String})],F.prototype,"fileUploadUrl",void 0),t([d({type:Boolean})],F.prototype,"autoUpload",void 0),t([p()],F.prototype,"doNotUpload",void 0),t([n("input")],F.prototype,"input",void 0),t([n(".horizontal-div")],F.prototype,"horizontalDiv",void 0),F=t([u("nile-file-upload")],F);export{F as N};
@@ -1,6 +1,6 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["lit","./nile-file-upload.css.cjs.js","../lit-html-9b3af046.cjs.js","../directive-7733ffce.cjs.js","./types/file-upload.enums.cjs.js","./utils/file-validation.util.cjs.js"],function(_export,_context){"use strict";var i,e,t,s,n,l,a,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,r,c,d,v,p,u,m,b,$,h,f;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function F(){};return{s:F,n:function(_n){function n(){return _n.apply(this,arguments);}n.toString=function(){return _n.toString();};return n;}(function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]};}),e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_lit){i=_lit.html;},function(_nileFileUploadCssCjsJs){},function(_litHtml003CjsJs){e=_litHtml003CjsJs.T;},function(_directive004CjsJs){t=_directive004CjsJs.e;s=_directive004CjsJs.i;n=_directive004CjsJs.t;},function(_typesFileUploadEnumsCjsJs){l=_typesFileUploadEnumsCjsJs.c;a=_typesFileUploadEnumsCjsJs.F;},function(_utilsFileValidationUtilCjsJs){o=_utilsFileValidationUtilCjsJs.t;}],execute:function execute(){/**
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["lit","./nile-file-upload.css.cjs.js","../lit-html-9b3af046.cjs.js","../directive-7733ffce.cjs.js","./types/file-upload.enums.cjs.js","./utils/file-validation.util.cjs.js"],function(_export,_context){"use strict";var i,e,t,l,a,s,o,n,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,r,c,d,p,v,u,m,b,h,$,f;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var n=0,F=function F(){};return{s:F,n:function(_n){function n(){return _n.apply(this,arguments);}n.toString=function(){return _n.toString();};return n;}(function(){return n>=r.length?{done:!0}:{done:!1,value:r[n++]};}),e:function e(r){throw r;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t["return"]||t["return"]();}finally{if(u)throw o;}}};}function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t["return"]&&(u=t["return"](),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(r){if(Array.isArray(r))return r;}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_lit){i=_lit.html;},function(_nileFileUploadCssCjsJs){},function(_litHtml003CjsJs){e=_litHtml003CjsJs.T;},function(_directive004CjsJs){t=_directive004CjsJs.e;l=_directive004CjsJs.i;a=_directive004CjsJs.t;},function(_typesFileUploadEnumsCjsJs){s=_typesFileUploadEnumsCjsJs.d;o=_typesFileUploadEnumsCjsJs.F;},function(_utilsFileValidationUtilCjsJs){n=_utilsFileValidationUtilCjsJs.t;}],execute:function execute(){/**
2
2
  * @license
3
3
  * Copyright 2018 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */r=t(/*#__PURE__*/function(_s){function _class(i){var _i$strings;var _this;_classCallCheck(this,_class);if(_this=_callSuper(this,_class,[i]),i.type!==n.ATTRIBUTE||"class"!==i.name||((_i$strings=i.strings)===null||_i$strings===void 0?void 0:_i$strings.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");return _this;}_inherits(_class,_s);return _createClass(_class,[{key:"render",value:function render(i){return" "+Object.keys(i).filter(function(e){return i[e];}).join(" ")+" ";}},{key:"update",value:function update(i,_ref){var _ref2=_slicedToArray(_ref,1),t=_ref2[0];if(void 0===this.st){this.st=new Set(),void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(function(i){return""!==i;})));for(var _i in t){var _this$nt;t[_i]&&!((_this$nt=this.nt)!==null&&_this$nt!==void 0&&_this$nt.has(_i))&&this.st.add(_i);}return this.render(t);}var s=i.element.classList;var _iterator=_createForOfIteratorHelper(this.st),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _i3=_step.value;_i3 in t||(s.remove(_i3),this.st["delete"](_i3));}}catch(err){_iterator.e(err);}finally{_iterator.f();}for(var _i2 in t){var _this$nt2;var _e=!!t[_i2];_e===this.st.has(_i2)||((_this$nt2=this.nt)===null||_this$nt2===void 0?void 0:_this$nt2.has(_i2))||(_e?(s.add(_i2),this.st.add(_i2)):(s.remove(_i2),this.st["delete"](_i2)));}return e;}}]);}(s)),c=function c(e,t,s,n,_c,d,v,p,u){return o(u),i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"wrapper\" part=\"horizontal-wrapper\">\n <div part=\"horizontal-div\" class=",">\n <div part=\"inner-div\" class=\"inner-div\">\n <slot class=\"upload-icon-slot\" name=\"upload-icon\">\n <nile-icon name=\"upload\" size=\"24\"></nile-icon>\n </slot>\n <div part=\"content\" class=\"content\">\n <div class=\"title\">","</div>\n <div class=\"subtitle\">","</div>\n </div>\n </div>\n <input\n type=\"file\"\n ?disabled=","\n @change=","\n multiple\n accept=","\n />\n <slot class=\"browse-file-button\" @click="," name=\"browse-file-button\">\n <nile-button variant=\"tertiary\" ?disabled=",">\n Browse File\n </nile-button>\n </slot>\n </div>\n ","\n </div>\n "])),r({"hover-border":"hover"===d,"horizontal-div":!0,disable:n}),t,s,n,function(i){_c.handleFiles(i);},p.join(","),n?void 0:e,n,v||u.state===a.ERROR?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<div class=\"upload-error\">\n <nile-icon name=\"warning\" size=\"12\" color=\"var(--nile-colors-red-700)\"></nile-icon>\n ","\n </div>"])),u.isStringTruncated?i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-tooltip content=",">\n <span>","</span>\n </nile-tooltip>"])),v||l.CUSTOM_ERROR,v||l.CUSTOM_ERROR):i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<span>","</span>"])),v||l.CUSTOM_ERROR)):i(_templateObject5||(_templateObject5=_taggedTemplateLiteral([""]))));},_export("g",d=function d(i,e,t,s,n,l,a,o){return c(i,e,t,!1,s,n,l,a,o);}),_export("c",v=function v(i,e,t,s,n,l,a,o){return c(i,e,t,!0,s,n,l,a,o);}),_export("a",p=function p(i,e,t,s,n,l,a,o){return c(i,e,t,!1,s,n,l,a,o);}),_export("b",u=function u(){return i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <div part=\"horizontal-drag-state\" class=\"horizontal-div dragging\">\n <div class=\"icons-container\">\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"general\"\n size=\"20\"\n class=\"general-icon\"\n ></nile-icon>\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"image\"\n size=\"24\"\n class=\"image-icon\"\n ></nile-icon>\n </div>\n <p>","</p>\n </div>\n"])),l.DRAG_STATE_DEFAULT);}),m=function m(e,t,s,n,r,c,d,v){return o(v),i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <div part=\"vertical-wrapper\" class=\"wrapper\">\n <div part=\"vertical-default\" class=\"vertical-default vertical-div ","\">\n <slot name=\"upload-icon\">\n <nile-icon name=\"upload\" size=\"24\"></nile-icon>\n </slot>\n <div part=\"vertical-content-container\" class=\"content-container\">\n <div class=\"title\">","</div>\n <div class=\"subtitle\">","</div>\n </div>\n <input\n type=\"file\"\n ?disabled=","\n @change=","\n multiple\n accept=","\n />\n <slot @click="," name=\"browse-file-button\">\n <nile-button variant=\"tertiary\" ?disabled=",">\n Browse File\n </nile-button>\n </slot>\n </div>\n ","\n </div>\n "])),n?"disable":"",t,s,n,function(i){return r.handleFiles(i);},d.join(","),n?void 0:e,n,c||v.state===a.ERROR?i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<div class=\"vertical-upload-error\">\n <nile-icon name=\"warning\" size=\"12\" color=\"var(--nile-colors-red-700)\"></nile-icon>\n ","\n </div>"])),v.isStringTruncated?i(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-tooltip content=",">\n <span>","</span>\n </nile-tooltip>"])),c||l.CUSTOM_ERROR,c||l.CUSTOM_ERROR):i(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<span>","</span>"])),c||l.CUSTOM_ERROR)):i(_templateObject11||(_templateObject11=_taggedTemplateLiteral([""]))));},_export("d",b=function b(i,e,t,s,n,l,a){return m(i,e,t,!1,s,n,l,a);}),_export("h",$=function $(i,e,t,s,n,l,a){return m(i,e,t,!0,s,n,l,a);}),_export("e",h=function h(i,e,t,s,n,l,a){return m(i,e,t,!1,s,n,l,a);}),_export("f",f=function f(){return i(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <div part=\"vertical-drag-state\" class=\"vertical-div vertical-drag\">\n <div class=\"icons-container\">\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"general\"\n size=\"20\"\n class=\"general-icon\"\n ></nile-icon>\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"image\"\n size=\"24\"\n class=\"image-icon\"\n ></nile-icon>\n </div>\n <p>","</p>\n </div>\n"])),l.DRAG_STATE_DEFAULT);});}};});
5
+ */r=t(/*#__PURE__*/function(_l){function _class(i){var _i$strings;var _this;_classCallCheck(this,_class);if(_this=_callSuper(this,_class,[i]),i.type!==a.ATTRIBUTE||"class"!==i.name||((_i$strings=i.strings)===null||_i$strings===void 0?void 0:_i$strings.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");return _this;}_inherits(_class,_l);return _createClass(_class,[{key:"render",value:function render(i){return" "+Object.keys(i).filter(function(e){return i[e];}).join(" ")+" ";}},{key:"update",value:function update(i,_ref){var _ref2=_slicedToArray(_ref,1),t=_ref2[0];if(void 0===this.st){this.st=new Set(),void 0!==i.strings&&(this.nt=new Set(i.strings.join(" ").split(/\s/).filter(function(i){return""!==i;})));for(var _i in t){var _this$nt;t[_i]&&!((_this$nt=this.nt)!==null&&_this$nt!==void 0&&_this$nt.has(_i))&&this.st.add(_i);}return this.render(t);}var l=i.element.classList;var _iterator=_createForOfIteratorHelper(this.st),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _i3=_step.value;_i3 in t||(l.remove(_i3),this.st["delete"](_i3));}}catch(err){_iterator.e(err);}finally{_iterator.f();}for(var _i2 in t){var _this$nt2;var _e=!!t[_i2];_e===this.st.has(_i2)||((_this$nt2=this.nt)===null||_this$nt2===void 0?void 0:_this$nt2.has(_i2))||(_e?(l.add(_i2),this.st.add(_i2)):(l.remove(_i2),this.st["delete"](_i2)));}return e;}}]);}(l)),c=function c(e,t,l,a,_c,d,p,v,u){return n(u),i(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div class=\"wrapper\" part=\"horizontal-wrapper\">\n <div part=\"horizontal-div\" class=",">\n <div part=\"inner-div\" class=\"inner-div\">\n <slot class=\"upload-icon-slot\" name=\"upload-icon\">\n <nile-icon name=\"upload\" size=\"24\"></nile-icon>\n </slot>\n <div part=\"content\" class=\"content\">\n <div part=\"horizontal-title\" class=\"title\">","</div>\n <div part=\"horizontal-subtitle\" class=\"subtitle\">","</div>\n </div>\n </div>\n <input\n type=\"file\"\n ?disabled=","\n @change=","\n ?multiple=","\n accept=","\n />\n <slot class=\"browse-file-button\" @click="," name=\"browse-file-button\">\n <nile-button variant=\"tertiary\" ?disabled=",">\n Browse File\n </nile-button>\n </slot>\n </div>\n ","\n </div>\n "])),r({"hover-border":"hover"===d,"horizontal-div":!0,disable:a}),t,l,a,function(i){_c.handleFiles(i);},u.allowMultiple,v.join(","),a?void 0:e,a,p||u.state===o.ERROR?i(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <slot name=\"error-message\">\n <div class=\"upload-error\" part=\"horizontal-upload-error\">\n <nile-icon name=\"warning\" size=\"12\" color=\"var(--nile-colors-red-700)\"></nile-icon>\n ","\n </div>\n </slot>\n "])),u.isStringTruncated?i(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-lite-tooltip .content=",">\n <span>","</span>\n </nile-lite-tooltip>"])),p||s.CUSTOM_ERROR,p||s.CUSTOM_ERROR):i(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<span>","</span>"])),p||s.CUSTOM_ERROR)):i(_templateObject5||(_templateObject5=_taggedTemplateLiteral([""]))));},_export("g",d=function d(i,e,t,l,a,s,o,n){return c(i,e,t,!1,l,a,s,o,n);}),_export("c",p=function p(i,e,t,l,a,s,o,n){return c(i,e,t,!0,l,a,s,o,n);}),_export("a",v=function v(i,e,t,l,a,s,o,n){return c(i,e,t,!1,l,a,s,o,n);}),_export("b",u=function u(){return i(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n <div part=\"horizontal-drag-state\" class=\"horizontal-div dragging\">\n <div class=\"icons-container\">\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"general\"\n size=\"20\"\n class=\"general-icon\"\n ></nile-icon>\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"image\"\n size=\"24\"\n class=\"image-icon\"\n ></nile-icon>\n </div>\n <p>","</p>\n </div>\n"])),s.DRAG_STATE_DEFAULT);}),m=function m(e,t,l,a,r,c,d,p){return n(p),i(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <div part=\"vertical-wrapper\" class=\"wrapper\">\n <div part=\"vertical-default\" class=\"vertical-default vertical-div ","\">\n <slot name=\"upload-icon\">\n <nile-icon name=\"upload\" size=\"24\"></nile-icon>\n </slot>\n <div part=\"vertical-content-container\" class=\"content-container\">\n <div part=\"vertical-title\" class=\"title\">","</div>\n <div part=\"vertical-subtitle\" class=\"subtitle\">","</div>\n </div>\n <input\n type=\"file\"\n ?disabled=","\n @change=","\n multiple\n accept=","\n />\n <slot @click="," name=\"browse-file-button\">\n <nile-button variant=\"tertiary\" ?disabled=",">\n Browse File\n </nile-button>\n </slot>\n </div>\n ","\n </div>\n "])),a?"disable":"",t,l,a,function(i){return r.handleFiles(i);},d.join(","),a?void 0:e,a,c||p.state===o.ERROR?i(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["<div class=\"vertical-upload-error\" part=\"vertical-upload-error\">\n <nile-icon name=\"warning\" size=\"12\" color=\"var(--nile-colors-red-700)\"></nile-icon>\n ","\n </div>"])),p.isStringTruncated?i(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-lite-tooltip .content=",">\n <span>","</span>\n </nile-lite-tooltip>"])),c||s.CUSTOM_ERROR,c||s.CUSTOM_ERROR):i(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<span>","</span>"])),c||s.CUSTOM_ERROR)):i(_templateObject11||(_templateObject11=_taggedTemplateLiteral([""]))));},_export("d",b=function b(i,e,t,l,a,s,o){return m(i,e,t,!1,l,a,s,o);}),_export("h",h=function h(i,e,t,l,a,s,o){return m(i,e,t,!0,l,a,s,o);}),_export("e",$=function $(i,e,t,l,a,s,o){return m(i,e,t,!1,l,a,s,o);}),_export("f",f=function f(){return i(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <div part=\"vertical-drag-state\" class=\"vertical-div vertical-drag\">\n <div class=\"icons-container\">\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"general\"\n size=\"20\"\n class=\"general-icon\"\n ></nile-icon>\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"image\"\n size=\"24\"\n class=\"image-icon\"\n ></nile-icon>\n </div>\n <p>","</p>\n </div>\n"])),s.DRAG_STATE_DEFAULT);});}};});
6
6
  //# sourceMappingURL=nile-file-upload.template.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-file-upload.template.cjs.js","sources":["../../../../node_modules/lit-html/directives/class-map.js","../../../src/nile-file-upload/nile-file-upload.template.ts"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((s=>t[s])).join(\" \")+\" \"}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n","import { html, TemplateResult } from 'lit';\nimport './nile-file-upload.css';\nimport { DragHandler } from './utils/drag-drop.util';\nimport { classMap } from 'lit-html/directives/class-map.js';\nimport { FileUploadDefaults, FileUploadState } from './types/file-upload.enums';\nimport { truncateString } from './utils/file-validation.util';\nimport { NileFileUpload } from './nile-file-upload';\n\nconst baseHorizontalState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n disabled: boolean,\n dragHandler: DragHandler,\n state: FileUploadState,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => {\n truncateString(nileFileUpload);\n return html`\n <div class=\"wrapper\" part=\"horizontal-wrapper\">\n <div part=\"horizontal-div\" class=${classMap({ 'hover-border': state === \"hover\", 'horizontal-div': true, 'disable': disabled })}>\n <div part=\"inner-div\" class=\"inner-div\">\n <slot class=\"upload-icon-slot\" name=\"upload-icon\">\n <nile-icon name=\"upload\" size=\"24\"></nile-icon>\n </slot>\n <div part=\"content\" class=\"content\">\n <div class=\"title\">${title}</div>\n <div class=\"subtitle\">${subtitle}</div>\n </div>\n </div>\n <input\n type=\"file\"\n ?disabled=${disabled}\n @change=${(e: Event | DragEvent) => { dragHandler.handleFiles(e) }}\n multiple\n accept=${allowedTypes.join(',')}\n />\n <slot class=\"browse-file-button\" @click=${disabled ? undefined : browseFiles} name=\"browse-file-button\">\n <nile-button variant=\"tertiary\" ?disabled=${disabled}>\n Browse File\n </nile-button>\n </slot>\n </div>\n ${errorMessage || nileFileUpload.state === FileUploadState.ERROR ?\n html`<div class=\"upload-error\">\n <nile-icon name=\"warning\" size=\"12\" color=\"var(--nile-colors-red-700)\"></nile-icon>\n ${\n nileFileUpload.isStringTruncated\n ? html`<nile-tooltip content=${errorMessage || FileUploadDefaults.CUSTOM_ERROR}>\n <span>${errorMessage || FileUploadDefaults.CUSTOM_ERROR}</span>\n </nile-tooltip>`\n : html`<span>${errorMessage || FileUploadDefaults.CUSTOM_ERROR}</span>`\n }\n </div>` :\n html``\n }\n </div>\n `;\n}\n\nexport const getHorizontalDefaultState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n state: FileUploadState,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseHorizontalState(browseFiles, title, subtitle, false, dragHandler, state, errorMessage, allowedTypes, nileFileUpload);\n\nexport const getHorizontalDisabledState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n state: FileUploadState,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseHorizontalState(browseFiles, title, subtitle, true, dragHandler, state, errorMessage, allowedTypes, nileFileUpload);\n\nexport const getHorizontalErrorState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n state: FileUploadState,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseHorizontalState(browseFiles, title, subtitle, false, dragHandler, state, errorMessage, allowedTypes, nileFileUpload);\n\nexport const getHorizontalDragState = (): TemplateResult => html`\n <div part=\"horizontal-drag-state\" class=\"horizontal-div dragging\">\n <div class=\"icons-container\">\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"general\"\n size=\"20\"\n class=\"general-icon\"\n ></nile-icon>\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"image\"\n size=\"24\"\n class=\"image-icon\"\n ></nile-icon>\n </div>\n <p>${FileUploadDefaults.DRAG_STATE_DEFAULT}</p>\n </div>\n`;\n\n// Vertical States\nconst baseVerticalState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n disabled: boolean,\n dragHandler: DragHandler,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => {\n truncateString(nileFileUpload);\n return html`\n <div part=\"vertical-wrapper\" class=\"wrapper\">\n <div part=\"vertical-default\" class=\"vertical-default vertical-div ${disabled ? 'disable' : ''}\">\n <slot name=\"upload-icon\">\n <nile-icon name=\"upload\" size=\"24\"></nile-icon>\n </slot>\n <div part=\"vertical-content-container\" class=\"content-container\">\n <div class=\"title\">${title}</div>\n <div class=\"subtitle\">${subtitle}</div>\n </div>\n <input\n type=\"file\"\n ?disabled=${disabled}\n @change=${(e: Event | DragEvent) => dragHandler.handleFiles(e)}\n multiple\n accept=${allowedTypes.join(',')}\n />\n <slot @click=${disabled ? undefined : browseFiles} name=\"browse-file-button\">\n <nile-button variant=\"tertiary\" ?disabled=${disabled}>\n Browse File\n </nile-button>\n </slot>\n </div>\n ${errorMessage || nileFileUpload.state === FileUploadState.ERROR ?\n html`<div class=\"vertical-upload-error\">\n <nile-icon name=\"warning\" size=\"12\" color=\"var(--nile-colors-red-700)\"></nile-icon>\n ${\n nileFileUpload.isStringTruncated\n ? html`<nile-tooltip content=${errorMessage || FileUploadDefaults.CUSTOM_ERROR}>\n <span>${errorMessage || FileUploadDefaults.CUSTOM_ERROR}</span>\n </nile-tooltip>`\n : html`<span>${errorMessage || FileUploadDefaults.CUSTOM_ERROR}</span>`\n }\n </div>` :\n html``\n }\n </div>\n `;\n}\n\nexport const getVerticalDefaultState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseVerticalState(browseFiles, title, subtitle, false, dragHandler, errorMessage, allowedTypes, nileFileUpload);\n\nexport const getVerticalDisabledState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseVerticalState(browseFiles, title, subtitle, true, dragHandler, errorMessage, allowedTypes, nileFileUpload);\n\nexport const getVerticalErrorState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseVerticalState(browseFiles, title, subtitle, false, dragHandler, errorMessage, allowedTypes, nileFileUpload);\n\n\nexport const getVerticalDragState = (): TemplateResult => html`\n <div part=\"vertical-drag-state\" class=\"vertical-div vertical-drag\">\n <div class=\"icons-container\">\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"general\"\n size=\"20\"\n class=\"general-icon\"\n ></nile-icon>\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"image\"\n size=\"24\"\n class=\"image-icon\"\n ></nile-icon>\n </div>\n <p>${FileUploadDefaults.DRAG_STATE_DEFAULT}</p>\n </div>\n`;"],"names":["e","s","_s","_class","t","_i$strings","_this","_classCallCheck","super","type","r","ATTRIBUTE","name","strings","length","Error","_inherits","_createClass","key","value","render","Object","keys","filter","join","update","i","this","st","Set","nt","split","has","add","element","classList","_iterator","_createForOfIteratorHelper","_step","n","done","remove","err","f","_this$nt2","baseHorizontalState","browseFiles","title","subtitle","disabled","dragHandler","state","errorMessage","allowedTypes","nileFileUpload","truncateString","html","_templateObject","_taggedTemplateLiteral","classMap","disable","handleFiles","undefined","FileUploadState","ERROR","_templateObject2","isStringTruncated","_templateObject3","FileUploadDefaults","CUSTOM_ERROR","_templateObject4","_templateObject5","getHorizontalDefaultState","getHorizontalDisabledState","getHorizontalErrorState","getHorizontalDragState","_templateObject6","DRAG_STATE_DEFAULT","baseVerticalState","m","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","getVerticalDefaultState","b","getVerticalDisabledState","$","getVerticalErrorState","getVerticalDragState","_templateObject12"],"mappings":";;;;AAKG,GAAMA,EAAEC,CAAE,uBAAAC,EAAA,EAAgB,SAAAC,OAAYC,CAAG,CAAA,KAAAC,UAAA,KAAAC,KAAA,CAAAC,eAAA,MAAAJ,MAAA,EAAA,GAAGK,KAAAA,CAAAA,UAAAA,MAAAA,MAAAA,EAAMJ,CAAAA,GAAGA,EAAEK,IAAOC,GAAAA,CAAAA,CAAEC,SAAW,EAAA,OAAA,GAAUP,EAAEQ,IAAMR,EAAAA,EAAAA,UAAAA,CAAAA,CAAAA,CAAES,OAASC,UAAAA,UAAAA,iBAAXV,UAA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cC,CAAAA,CAAAA,CAAcC,CAEvGmC,CAAAA,IAAAA,OAAAA,KAAAA,CAAAA,CAAwB,QAAxBA,CAAAA,CAAAA,CACX3C,CAAAA,CACAC,CACAC,CAAAA,CAAAA,CACAE,CACAE,CAAAA,CAAAA,CACAC,EACAC,CACmBwB,QAAAA,CAAAA,CAAAA,CAAkBhC,CAAaC,CAAAA,CAAAA,CAAOC,CAAU,CAAA,CAAA,CAAA,CAAOE,CAAaE,CAAAA,CAAAA,CAAcC,CAAcC,CAAAA,CAAAA,CAAAA,IAAAA,OAAAA,KAGxGoC,CAAuB,CAAA,QAAvBA,CAAAA,CAAuB/C,CAAA,QAAsBa,CAAAA,CAAI,CAAAmC,iBAAA,GAAAA,iBAAA,CAAAjC,sBAAA,seAgBrDU,CAAmBS,CAAAA,kBAAAA","x_google_ignoreList":[0]}
1
+ {"version":3,"file":"nile-file-upload.template.cjs.js","sources":["../../../../node_modules/lit-html/directives/class-map.js","../../../src/nile-file-upload/nile-file-upload.template.ts"],"sourcesContent":["import{noChange as t}from\"../lit-html.js\";import{directive as s,Directive as i,PartType as r}from\"../directive.js\";\n/**\n * @license\n * Copyright 2018 Google LLC\n * SPDX-License-Identifier: BSD-3-Clause\n */const e=s(class extends i{constructor(t){if(super(t),t.type!==r.ATTRIBUTE||\"class\"!==t.name||t.strings?.length>2)throw Error(\"`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.\")}render(t){return\" \"+Object.keys(t).filter((s=>t[s])).join(\" \")+\" \"}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(\" \").split(/\\s/).filter((t=>\"\"!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)))}return t}});export{e as classMap};\n//# sourceMappingURL=class-map.js.map\n","import { html, TemplateResult } from 'lit';\nimport './nile-file-upload.css';\nimport { DragHandler } from './utils/drag-drop.util';\nimport { classMap } from 'lit-html/directives/class-map.js';\nimport { FileUploadDefaults, FileUploadState } from './types/file-upload.enums';\nimport { truncateString } from './utils/file-validation.util';\nimport { NileFileUpload } from './nile-file-upload';\n\nconst baseHorizontalState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n disabled: boolean,\n dragHandler: DragHandler,\n state: FileUploadState,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => {\n truncateString(nileFileUpload);\n return html`\n <div class=\"wrapper\" part=\"horizontal-wrapper\">\n <div part=\"horizontal-div\" class=${classMap({ 'hover-border': state === \"hover\", 'horizontal-div': true, 'disable': disabled })}>\n <div part=\"inner-div\" class=\"inner-div\">\n <slot class=\"upload-icon-slot\" name=\"upload-icon\">\n <nile-icon name=\"upload\" size=\"24\"></nile-icon>\n </slot>\n <div part=\"content\" class=\"content\">\n <div part=\"horizontal-title\" class=\"title\">${title}</div>\n <div part=\"horizontal-subtitle\" class=\"subtitle\">${subtitle}</div>\n </div>\n </div>\n <input\n type=\"file\"\n ?disabled=${disabled}\n @change=${(e: Event | DragEvent) => { dragHandler.handleFiles(e) }}\n ?multiple=${nileFileUpload.allowMultiple}\n accept=${allowedTypes.join(',')}\n />\n <slot class=\"browse-file-button\" @click=${disabled ? undefined : browseFiles} name=\"browse-file-button\">\n <nile-button variant=\"tertiary\" ?disabled=${disabled}>\n Browse File\n </nile-button>\n </slot>\n </div>\n ${errorMessage || nileFileUpload.state === FileUploadState.ERROR ?\n html`\n <slot name=\"error-message\">\n <div class=\"upload-error\" part=\"horizontal-upload-error\">\n <nile-icon name=\"warning\" size=\"12\" color=\"var(--nile-colors-red-700)\"></nile-icon>\n ${\n nileFileUpload.isStringTruncated\n ? html`<nile-lite-tooltip .content=${errorMessage || FileUploadDefaults.CUSTOM_ERROR}>\n <span>${errorMessage || FileUploadDefaults.CUSTOM_ERROR}</span>\n </nile-lite-tooltip>`\n : html`<span>${errorMessage || FileUploadDefaults.CUSTOM_ERROR}</span>`\n }\n </div>\n </slot>\n `:\n html``\n }\n </div>\n `;\n}\n\nexport const getHorizontalDefaultState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n state: FileUploadState,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseHorizontalState(browseFiles, title, subtitle, false, dragHandler, state, errorMessage, allowedTypes, nileFileUpload);\n\nexport const getHorizontalDisabledState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n state: FileUploadState,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseHorizontalState(browseFiles, title, subtitle, true, dragHandler, state, errorMessage, allowedTypes, nileFileUpload);\n\nexport const getHorizontalErrorState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n state: FileUploadState,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseHorizontalState(browseFiles, title, subtitle, false, dragHandler, state, errorMessage, allowedTypes, nileFileUpload);\n\nexport const getHorizontalDragState = (): TemplateResult => html`\n <div part=\"horizontal-drag-state\" class=\"horizontal-div dragging\">\n <div class=\"icons-container\">\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"general\"\n size=\"20\"\n class=\"general-icon\"\n ></nile-icon>\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"image\"\n size=\"24\"\n class=\"image-icon\"\n ></nile-icon>\n </div>\n <p>${FileUploadDefaults.DRAG_STATE_DEFAULT}</p>\n </div>\n`;\n\n// Vertical States\nconst baseVerticalState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n disabled: boolean,\n dragHandler: DragHandler,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => {\n truncateString(nileFileUpload);\n return html`\n <div part=\"vertical-wrapper\" class=\"wrapper\">\n <div part=\"vertical-default\" class=\"vertical-default vertical-div ${disabled ? 'disable' : ''}\">\n <slot name=\"upload-icon\">\n <nile-icon name=\"upload\" size=\"24\"></nile-icon>\n </slot>\n <div part=\"vertical-content-container\" class=\"content-container\">\n <div part=\"vertical-title\" class=\"title\">${title}</div>\n <div part=\"vertical-subtitle\" class=\"subtitle\">${subtitle}</div>\n </div>\n <input\n type=\"file\"\n ?disabled=${disabled}\n @change=${(e: Event | DragEvent) => dragHandler.handleFiles(e)}\n multiple\n accept=${allowedTypes.join(',')}\n />\n <slot @click=${disabled ? undefined : browseFiles} name=\"browse-file-button\">\n <nile-button variant=\"tertiary\" ?disabled=${disabled}>\n Browse File\n </nile-button>\n </slot>\n </div>\n ${errorMessage || nileFileUpload.state === FileUploadState.ERROR ?\n html`<div class=\"vertical-upload-error\" part=\"vertical-upload-error\">\n <nile-icon name=\"warning\" size=\"12\" color=\"var(--nile-colors-red-700)\"></nile-icon>\n ${\n nileFileUpload.isStringTruncated\n ? html`<nile-lite-tooltip .content=${errorMessage || FileUploadDefaults.CUSTOM_ERROR}>\n <span>${errorMessage || FileUploadDefaults.CUSTOM_ERROR}</span>\n </nile-lite-tooltip>`\n : html`<span>${errorMessage || FileUploadDefaults.CUSTOM_ERROR}</span>`\n }\n </div>` :\n html``\n }\n </div>\n `;\n}\n\nexport const getVerticalDefaultState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseVerticalState(browseFiles, title, subtitle, false, dragHandler, errorMessage, allowedTypes, nileFileUpload);\n\nexport const getVerticalDisabledState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseVerticalState(browseFiles, title, subtitle, true, dragHandler, errorMessage, allowedTypes, nileFileUpload);\n\nexport const getVerticalErrorState = (\n browseFiles: Function,\n title: string,\n subtitle: string,\n dragHandler: DragHandler,\n errorMessage: string,\n allowedTypes: string[],\n nileFileUpload: NileFileUpload\n): TemplateResult => baseVerticalState(browseFiles, title, subtitle, false, dragHandler, errorMessage, allowedTypes, nileFileUpload);\n\n\nexport const getVerticalDragState = (): TemplateResult => html`\n <div part=\"vertical-drag-state\" class=\"vertical-div vertical-drag\">\n <div class=\"icons-container\">\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"general\"\n size=\"20\"\n class=\"general-icon\"\n ></nile-icon>\n <nile-icon\n color=\"var(--nile-colors-blue-500)\"\n name=\"image\"\n size=\"24\"\n class=\"image-icon\"\n ></nile-icon>\n </div>\n <p>${FileUploadDefaults.DRAG_STATE_DEFAULT}</p>\n </div>\n`;"],"names":["e","s","_l","_class","t","_i$strings","_this","_classCallCheck","super","type","r","ATTRIBUTE","name","strings","length","Error","_inherits","_createClass","key","value","render","Object","keys","filter","join","update","i","this","st","Set","nt","split","has","add","element","classList","_iterator","_createForOfIteratorHelper","_step","n","done","remove","err","f","_this$nt2","baseHorizontalState","browseFiles","title","subtitle","disabled","dragHandler","state","errorMessage","allowedTypes","nileFileUpload","truncateString","html","_templateObject","_taggedTemplateLiteral","classMap","disable","handleFiles","allowMultiple","undefined","FileUploadState","ERROR","_templateObject2","isStringTruncated","_templateObject3","FileUploadDefaults","CUSTOM_ERROR","_templateObject4","_templateObject5","getHorizontalDefaultState","getHorizontalDisabledState","getHorizontalErrorState","getHorizontalDragState","_templateObject6","DRAG_STATE_DEFAULT","baseVerticalState","m","_templateObject7","_templateObject8","_templateObject9","_templateObject10","_templateObject11","getVerticalDefaultState","b","getVerticalDisabledState","h","getVerticalErrorState","getVerticalDragState","_templateObject12"],"mappings":";;;;AAKG,GAAMA,EAAEC,CAAE,uBAAAC,EAAA,EAAgB,SAAAC,OAAYC,CAAG,CAAA,KAAAC,UAAA,K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