@aquera/nile-elements 1.6.2 → 1.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (680) hide show
  1. package/README.md +8 -0
  2. package/dist/index.cjs.js +1 -1
  3. package/dist/index.esm.js +1 -1
  4. package/dist/index.js +503 -335
  5. package/dist/internal/accessibility/a11y.custom-value.enum.cjs.js +2 -0
  6. package/dist/internal/accessibility/a11y.custom-value.enum.cjs.js.map +1 -0
  7. package/dist/internal/accessibility/a11y.custom-value.enum.esm.js +1 -0
  8. package/dist/internal/accessibility/a11y.property.enum.cjs.js +2 -0
  9. package/dist/internal/accessibility/a11y.property.enum.cjs.js.map +1 -0
  10. package/dist/internal/accessibility/a11y.property.enum.esm.js +1 -0
  11. package/dist/internal/accessibility/a11y.role.enum.cjs.js +2 -0
  12. package/dist/internal/accessibility/a11y.role.enum.cjs.js.map +1 -0
  13. package/dist/internal/accessibility/a11y.role.enum.esm.js +1 -0
  14. package/dist/internal/accessibility/a11y.state.enum.cjs.js +2 -0
  15. package/dist/internal/accessibility/a11y.state.enum.cjs.js.map +1 -0
  16. package/dist/internal/accessibility/a11y.state.enum.esm.js +1 -0
  17. package/dist/internal/accessibility/accessibility.const.cjs.js +2 -0
  18. package/dist/internal/accessibility/accessibility.const.cjs.js.map +1 -0
  19. package/dist/internal/accessibility/accessibility.const.esm.js +1 -0
  20. package/dist/internal/accessibility/role.enum.cjs.js +2 -0
  21. package/dist/internal/accessibility/role.enum.cjs.js.map +1 -0
  22. package/dist/internal/accessibility/role.enum.esm.js +1 -0
  23. package/dist/internal/nile-element.cjs.js +1 -1
  24. package/dist/internal/nile-element.cjs.js.map +1 -1
  25. package/dist/internal/nile-element.esm.js +1 -1
  26. package/dist/nile-accordion/index.cjs.js +1 -1
  27. package/dist/nile-accordion/index.esm.js +1 -1
  28. package/dist/nile-accordion/nile-accordion.cjs.js +1 -1
  29. package/dist/nile-accordion/nile-accordion.cjs.js.map +1 -1
  30. package/dist/nile-accordion/nile-accordion.esm.js +2 -2
  31. package/dist/nile-auto-complete/index.cjs.js +1 -1
  32. package/dist/nile-auto-complete/index.esm.js +1 -1
  33. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  34. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  35. package/dist/nile-auto-complete/nile-auto-complete.esm.js +1 -1
  36. package/dist/nile-avatar/index.cjs.js +1 -1
  37. package/dist/nile-avatar/index.esm.js +1 -1
  38. package/dist/nile-avatar/nile-avatar.cjs.js +1 -1
  39. package/dist/nile-avatar/nile-avatar.cjs.js.map +1 -1
  40. package/dist/nile-avatar/nile-avatar.esm.js +3 -1
  41. package/dist/nile-badge/index.cjs.js +1 -1
  42. package/dist/nile-badge/index.esm.js +1 -1
  43. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  44. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  45. package/dist/nile-badge/nile-badge.esm.js +2 -2
  46. package/dist/nile-breadcrumb/index.cjs.js +1 -1
  47. package/dist/nile-breadcrumb/index.esm.js +1 -1
  48. package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js +1 -1
  49. package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js.map +1 -1
  50. package/dist/nile-breadcrumb/nile-breadcrumb.esm.js +1 -1
  51. package/dist/nile-breadcrumb-item/index.cjs.js +1 -1
  52. package/dist/nile-breadcrumb-item/index.esm.js +1 -1
  53. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js +1 -1
  54. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js.map +1 -1
  55. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.esm.js +4 -4
  56. package/dist/nile-button/index.cjs.js +1 -1
  57. package/dist/nile-button/index.esm.js +1 -1
  58. package/dist/nile-button/nile-button.cjs.js +1 -1
  59. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  60. package/dist/nile-button/nile-button.esm.js +1 -1
  61. package/dist/nile-button-filter/index.cjs.js +1 -1
  62. package/dist/nile-button-filter/index.esm.js +1 -1
  63. package/dist/nile-button-filter/nile-button-filter.cjs.js +1 -1
  64. package/dist/nile-button-filter/nile-button-filter.cjs.js.map +1 -1
  65. package/dist/nile-button-filter/nile-button-filter.esm.js +7 -7
  66. package/dist/nile-button-toggle/index.cjs.js +1 -1
  67. package/dist/nile-button-toggle/index.esm.js +1 -1
  68. package/dist/nile-button-toggle/nile-button-toggle.cjs.js +1 -1
  69. package/dist/nile-button-toggle/nile-button-toggle.cjs.js.map +1 -1
  70. package/dist/nile-button-toggle/nile-button-toggle.esm.js +2 -2
  71. package/dist/nile-button-toggle-group/index.cjs.js +1 -1
  72. package/dist/nile-button-toggle-group/index.esm.js +1 -1
  73. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js +1 -1
  74. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js.map +1 -1
  75. package/dist/nile-button-toggle-group/nile-button-toggle-group.esm.js +1 -1
  76. package/dist/nile-calendar/index.cjs.js +1 -1
  77. package/dist/nile-calendar/index.esm.js +1 -1
  78. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  79. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  80. package/dist/nile-calendar/nile-calendar.esm.js +4 -4
  81. package/dist/nile-card/index.cjs.js +1 -1
  82. package/dist/nile-card/index.esm.js +1 -1
  83. package/dist/nile-card/nile-card.cjs.js +1 -1
  84. package/dist/nile-card/nile-card.cjs.js.map +1 -1
  85. package/dist/nile-card/nile-card.esm.js +2 -2
  86. package/dist/nile-carousel/index.cjs.js +1 -1
  87. package/dist/nile-carousel/index.esm.js +1 -1
  88. package/dist/nile-carousel/nile-carousel-item/index.cjs.js +1 -1
  89. package/dist/nile-carousel/nile-carousel-item/index.esm.js +1 -1
  90. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.cjs.js +1 -1
  91. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.cjs.js.map +1 -1
  92. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.esm.js +2 -2
  93. package/dist/nile-carousel/nile-carousel.cjs.js +1 -1
  94. package/dist/nile-carousel/nile-carousel.cjs.js.map +1 -1
  95. package/dist/nile-carousel/nile-carousel.esm.js +1 -1
  96. package/dist/nile-checkbox/index.cjs.js +1 -1
  97. package/dist/nile-checkbox/index.esm.js +1 -1
  98. package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
  99. package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
  100. package/dist/nile-checkbox/nile-checkbox.css.cjs.js +1 -1
  101. package/dist/nile-checkbox/nile-checkbox.css.cjs.js.map +1 -1
  102. package/dist/nile-checkbox/nile-checkbox.css.esm.js +4 -0
  103. package/dist/nile-checkbox/nile-checkbox.esm.js +3 -3
  104. package/dist/nile-checkbox-group/index.cjs.js +2 -0
  105. package/dist/nile-checkbox-group/index.cjs.js.map +1 -0
  106. package/dist/nile-checkbox-group/index.esm.js +1 -0
  107. package/dist/nile-checkbox-group/nile-checkbox-group.cjs.js +2 -0
  108. package/dist/nile-checkbox-group/nile-checkbox-group.cjs.js.map +1 -0
  109. package/dist/nile-checkbox-group/nile-checkbox-group.css.cjs.js +2 -0
  110. package/dist/nile-checkbox-group/nile-checkbox-group.css.cjs.js.map +1 -0
  111. package/dist/nile-checkbox-group/nile-checkbox-group.css.esm.js +68 -0
  112. package/dist/nile-checkbox-group/nile-checkbox-group.esm.js +56 -0
  113. package/dist/nile-chip/index.cjs.js +1 -1
  114. package/dist/nile-chip/index.esm.js +1 -1
  115. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  116. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  117. package/dist/nile-chip/nile-chip.esm.js +2 -2
  118. package/dist/nile-circular-progressbar/index.cjs.js +1 -1
  119. package/dist/nile-circular-progressbar/index.esm.js +1 -1
  120. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js +1 -1
  121. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js.map +1 -1
  122. package/dist/nile-circular-progressbar/nile-circular-progressbar.esm.js +2 -2
  123. package/dist/nile-code-editor/index.cjs.js +1 -1
  124. package/dist/nile-code-editor/index.esm.js +1 -1
  125. package/dist/nile-code-editor/nile-code-editor.cjs.js +1 -1
  126. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  127. package/dist/nile-code-editor/nile-code-editor.esm.js +1 -1
  128. package/dist/nile-content-editor/index.cjs.js +1 -1
  129. package/dist/nile-content-editor/index.esm.js +1 -1
  130. package/dist/nile-content-editor/nile-content-editor.cjs.js +1 -1
  131. package/dist/nile-content-editor/nile-content-editor.cjs.js.map +1 -1
  132. package/dist/nile-content-editor/nile-content-editor.esm.js +5 -5
  133. package/dist/nile-date-picker/index.cjs.js +1 -1
  134. package/dist/nile-date-picker/index.esm.js +1 -1
  135. package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
  136. package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
  137. package/dist/nile-date-picker/nile-date-picker.esm.js +1 -1
  138. package/dist/nile-detail/index.cjs.js +1 -1
  139. package/dist/nile-detail/index.esm.js +1 -1
  140. package/dist/nile-detail/nile-detail.cjs.js +1 -1
  141. package/dist/nile-detail/nile-detail.cjs.js.map +1 -1
  142. package/dist/nile-detail/nile-detail.esm.js +2 -2
  143. package/dist/nile-dialog/index.cjs.js +1 -1
  144. package/dist/nile-dialog/index.esm.js +1 -1
  145. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  146. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  147. package/dist/nile-dialog/nile-dialog.esm.js +2 -2
  148. package/dist/nile-divider/index.cjs.js +1 -1
  149. package/dist/nile-divider/index.esm.js +1 -1
  150. package/dist/nile-divider/nile-divider.cjs.js +1 -1
  151. package/dist/nile-divider/nile-divider.cjs.js.map +1 -1
  152. package/dist/nile-divider/nile-divider.esm.js +2 -2
  153. package/dist/nile-drawer/index.cjs.js +1 -1
  154. package/dist/nile-drawer/index.esm.js +1 -1
  155. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  156. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  157. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  158. package/dist/nile-dropdown/index.cjs.js +1 -1
  159. package/dist/nile-dropdown/index.esm.js +1 -1
  160. package/dist/nile-dropdown/nile-dropdown.cjs.js +1 -1
  161. package/dist/nile-dropdown/nile-dropdown.cjs.js.map +1 -1
  162. package/dist/nile-dropdown/nile-dropdown.esm.js +1 -1
  163. package/dist/nile-empty-state/index.cjs.js +1 -1
  164. package/dist/nile-empty-state/index.esm.js +1 -1
  165. package/dist/nile-empty-state/nile-empty-state.cjs.js +1 -1
  166. package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
  167. package/dist/nile-empty-state/nile-empty-state.esm.js +2 -2
  168. package/dist/nile-file-preview/index.cjs.js +1 -1
  169. package/dist/nile-file-preview/index.esm.js +1 -1
  170. package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
  171. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
  172. package/dist/nile-file-preview/nile-file-preview.esm.js +1 -1
  173. package/dist/nile-file-upload/index.cjs.js +1 -1
  174. package/dist/nile-file-upload/index.esm.js +1 -1
  175. package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
  176. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
  177. package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
  178. package/dist/nile-filter-chip/index.cjs.js +1 -1
  179. package/dist/nile-filter-chip/index.esm.js +1 -1
  180. package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
  181. package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
  182. package/dist/nile-filter-chip/nile-filter-chip.esm.js +2 -2
  183. package/dist/nile-floating-panel/index.cjs.js +1 -1
  184. package/dist/nile-floating-panel/index.esm.js +1 -1
  185. package/dist/nile-floating-panel/nile-floating-panel.cjs.js +1 -1
  186. package/dist/nile-floating-panel/nile-floating-panel.cjs.js.map +1 -1
  187. package/dist/nile-floating-panel/nile-floating-panel.esm.js +1 -1
  188. package/dist/nile-form-group/index.cjs.js +1 -1
  189. package/dist/nile-form-group/index.esm.js +1 -1
  190. package/dist/nile-form-group/nile-form-group.cjs.js +1 -1
  191. package/dist/nile-form-group/nile-form-group.cjs.js.map +1 -1
  192. package/dist/nile-form-group/nile-form-group.esm.js +2 -2
  193. package/dist/nile-format-date/index.cjs.js +1 -1
  194. package/dist/nile-format-date/index.esm.js +1 -1
  195. package/dist/nile-format-date/nile-format-date.cjs.js +1 -1
  196. package/dist/nile-format-date/nile-format-date.cjs.js.map +1 -1
  197. package/dist/nile-format-date/nile-format-date.esm.js +1 -1
  198. package/dist/nile-grid/index.cjs.js +1 -1
  199. package/dist/nile-grid/index.esm.js +1 -1
  200. package/dist/nile-grid/nile-grid-body/index.cjs.js +1 -1
  201. package/dist/nile-grid/nile-grid-body/index.esm.js +1 -1
  202. package/dist/nile-grid/nile-grid-body/nile-grid-body.cjs.js +1 -1
  203. package/dist/nile-grid/nile-grid-body/nile-grid-body.cjs.js.map +1 -1
  204. package/dist/nile-grid/nile-grid-body/nile-grid-body.esm.js +2 -2
  205. package/dist/nile-grid/nile-grid-cell-item/index.cjs.js +1 -1
  206. package/dist/nile-grid/nile-grid-cell-item/index.esm.js +1 -1
  207. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js +1 -1
  208. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +1 -1
  209. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.esm.js +2 -2
  210. package/dist/nile-grid/nile-grid-head/index.cjs.js +1 -1
  211. package/dist/nile-grid/nile-grid-head/index.esm.js +1 -1
  212. package/dist/nile-grid/nile-grid-head/nile-grid-head.cjs.js +1 -1
  213. package/dist/nile-grid/nile-grid-head/nile-grid-head.cjs.js.map +1 -1
  214. package/dist/nile-grid/nile-grid-head/nile-grid-head.esm.js +2 -2
  215. package/dist/nile-grid/nile-grid-head-item/index.cjs.js +1 -1
  216. package/dist/nile-grid/nile-grid-head-item/index.esm.js +1 -1
  217. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js +1 -1
  218. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -1
  219. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.esm.js +3 -3
  220. package/dist/nile-grid/nile-grid-row/index.cjs.js +1 -1
  221. package/dist/nile-grid/nile-grid-row/index.esm.js +1 -1
  222. package/dist/nile-grid/nile-grid-row/nile-grid-row.cjs.js +1 -1
  223. package/dist/nile-grid/nile-grid-row/nile-grid-row.cjs.js.map +1 -1
  224. package/dist/nile-grid/nile-grid-row/nile-grid-row.esm.js +2 -2
  225. package/dist/nile-grid/nile-grid.cjs.js +1 -1
  226. package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
  227. package/dist/nile-grid/nile-grid.esm.js +2 -2
  228. package/dist/nile-hero/index.cjs.js +1 -1
  229. package/dist/nile-hero/index.esm.js +1 -1
  230. package/dist/nile-hero/nile-hero.cjs.js +1 -1
  231. package/dist/nile-hero/nile-hero.cjs.js.map +1 -1
  232. package/dist/nile-hero/nile-hero.esm.js +2 -2
  233. package/dist/nile-hero-header/index.cjs.js +1 -1
  234. package/dist/nile-hero-header/index.esm.js +1 -1
  235. package/dist/nile-hero-header/nile-hero-header.cjs.js +1 -1
  236. package/dist/nile-hero-header/nile-hero-header.cjs.js.map +1 -1
  237. package/dist/nile-hero-header/nile-hero-header.esm.js +2 -2
  238. package/dist/nile-icon-button/index.cjs.js +1 -1
  239. package/dist/nile-icon-button/index.esm.js +1 -1
  240. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  241. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  242. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  243. package/dist/nile-inline-edit/index.cjs.js +1 -1
  244. package/dist/nile-inline-edit/index.esm.js +1 -1
  245. package/dist/nile-inline-edit/nile-inline-edit.cjs.js +1 -1
  246. package/dist/nile-inline-edit/nile-inline-edit.cjs.js.map +1 -1
  247. package/dist/nile-inline-edit/nile-inline-edit.esm.js +2 -2
  248. package/dist/nile-inline-sidebar/index.cjs.js +1 -1
  249. package/dist/nile-inline-sidebar/index.esm.js +1 -1
  250. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js +1 -1
  251. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js.map +1 -1
  252. package/dist/nile-inline-sidebar/nile-inline-sidebar.esm.js +3 -3
  253. package/dist/nile-inline-sidebar-group/index.cjs.js +1 -1
  254. package/dist/nile-inline-sidebar-group/index.esm.js +1 -1
  255. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.cjs.js +1 -1
  256. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.cjs.js.map +1 -1
  257. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.esm.js +3 -3
  258. package/dist/nile-inline-sidebar-item/index.cjs.js +1 -1
  259. package/dist/nile-inline-sidebar-item/index.esm.js +1 -1
  260. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js +1 -1
  261. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js.map +1 -1
  262. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.esm.js +3 -3
  263. package/dist/nile-input/index.cjs.js +1 -1
  264. package/dist/nile-input/index.esm.js +1 -1
  265. package/dist/nile-input/nile-input.cjs.js +1 -1
  266. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  267. package/dist/nile-input/nile-input.esm.js +1 -1
  268. package/dist/nile-link/index.cjs.js +1 -1
  269. package/dist/nile-link/index.esm.js +1 -1
  270. package/dist/nile-link/nile-link.cjs.js +1 -1
  271. package/dist/nile-link/nile-link.cjs.js.map +1 -1
  272. package/dist/nile-link/nile-link.esm.js +3 -3
  273. package/dist/nile-list/index.cjs.js +1 -1
  274. package/dist/nile-list/index.esm.js +1 -1
  275. package/dist/nile-list/nile-list.cjs.js +1 -1
  276. package/dist/nile-list/nile-list.cjs.js.map +1 -1
  277. package/dist/nile-list/nile-list.esm.js +1 -1
  278. package/dist/nile-list-item/index.cjs.js +1 -1
  279. package/dist/nile-list-item/index.esm.js +1 -1
  280. package/dist/nile-list-item/nile-list-item.cjs.js +1 -1
  281. package/dist/nile-list-item/nile-list-item.cjs.js.map +1 -1
  282. package/dist/nile-list-item/nile-list-item.esm.js +2 -2
  283. package/dist/nile-lite-tooltip/index.cjs.js +1 -1
  284. package/dist/nile-lite-tooltip/index.esm.js +1 -1
  285. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
  286. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
  287. package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
  288. package/dist/nile-menu/index.cjs.js +1 -1
  289. package/dist/nile-menu/index.esm.js +1 -1
  290. package/dist/nile-menu/nile-menu.cjs.js +1 -1
  291. package/dist/nile-menu/nile-menu.cjs.js.map +1 -1
  292. package/dist/nile-menu/nile-menu.esm.js +2 -2
  293. package/dist/nile-menu-item/index.cjs.js +1 -1
  294. package/dist/nile-menu-item/index.esm.js +1 -1
  295. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  296. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  297. package/dist/nile-menu-item/nile-menu-item.esm.js +1 -1
  298. package/dist/nile-option/index.cjs.js +1 -1
  299. package/dist/nile-option/index.esm.js +1 -1
  300. package/dist/nile-option/nile-option.cjs.js +1 -1
  301. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  302. package/dist/nile-option/nile-option.esm.js +5 -5
  303. package/dist/nile-option-group/index.cjs.js +1 -1
  304. package/dist/nile-option-group/index.esm.js +1 -1
  305. package/dist/nile-option-group/nile-option-group.cjs.js +1 -1
  306. package/dist/nile-option-group/nile-option-group.cjs.js.map +1 -1
  307. package/dist/nile-option-group/nile-option-group.esm.js +2 -2
  308. package/dist/nile-otp-input/index.cjs.js +1 -1
  309. package/dist/nile-otp-input/index.esm.js +1 -1
  310. package/dist/nile-otp-input/nile-otp-input.cjs.js +1 -1
  311. package/dist/nile-otp-input/nile-otp-input.cjs.js.map +1 -1
  312. package/dist/nile-otp-input/nile-otp-input.esm.js +1 -1
  313. package/dist/nile-page-header/index.cjs.js +1 -1
  314. package/dist/nile-page-header/index.esm.js +1 -1
  315. package/dist/nile-page-header/nile-page-header.cjs.js +1 -1
  316. package/dist/nile-page-header/nile-page-header.cjs.js.map +1 -1
  317. package/dist/nile-page-header/nile-page-header.esm.js +2 -2
  318. package/dist/nile-pagination/index.cjs.js +1 -1
  319. package/dist/nile-pagination/index.esm.js +1 -1
  320. package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
  321. package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
  322. package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
  323. package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
  324. package/dist/nile-pagination/nile-pagination.css.esm.js +7 -0
  325. package/dist/nile-pagination/nile-pagination.esm.js +1 -1
  326. package/dist/nile-popover/index.cjs.js +1 -1
  327. package/dist/nile-popover/index.esm.js +1 -1
  328. package/dist/nile-popover/nile-popover.cjs.js +2 -2
  329. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  330. package/dist/nile-popover/nile-popover.esm.js +3 -3
  331. package/dist/nile-popup/index.cjs.js +1 -1
  332. package/dist/nile-popup/index.esm.js +1 -1
  333. package/dist/nile-popup/nile-popup.cjs.js +1 -1
  334. package/dist/nile-popup/nile-popup.cjs.js.map +1 -1
  335. package/dist/nile-popup/nile-popup.esm.js +2 -2
  336. package/dist/nile-progress-bar/index.cjs.js +1 -1
  337. package/dist/nile-progress-bar/index.esm.js +1 -1
  338. package/dist/nile-progress-bar/nile-progress-bar.cjs.js +1 -1
  339. package/dist/nile-progress-bar/nile-progress-bar.cjs.js.map +1 -1
  340. package/dist/nile-progress-bar/nile-progress-bar.esm.js +2 -2
  341. package/dist/nile-qr-code/index.cjs.js +1 -1
  342. package/dist/nile-qr-code/index.esm.js +1 -1
  343. package/dist/nile-qr-code/nile-qr-code.cjs.js +1 -1
  344. package/dist/nile-qr-code/nile-qr-code.cjs.js.map +1 -1
  345. package/dist/nile-qr-code/nile-qr-code.esm.js +2 -2
  346. package/dist/nile-radio/index.cjs.js +1 -1
  347. package/dist/nile-radio/index.esm.js +1 -1
  348. package/dist/nile-radio/nile-radio.cjs.js +1 -1
  349. package/dist/nile-radio/nile-radio.cjs.js.map +1 -1
  350. package/dist/nile-radio/nile-radio.css.cjs.js +1 -1
  351. package/dist/nile-radio/nile-radio.css.cjs.js.map +1 -1
  352. package/dist/nile-radio/nile-radio.css.esm.js +4 -0
  353. package/dist/nile-radio/nile-radio.esm.js +2 -2
  354. package/dist/nile-radio-group/index.cjs.js +1 -1
  355. package/dist/nile-radio-group/index.esm.js +1 -1
  356. package/dist/nile-radio-group/nile-radio-group.cjs.js +1 -1
  357. package/dist/nile-radio-group/nile-radio-group.cjs.js.map +1 -1
  358. package/dist/nile-radio-group/nile-radio-group.esm.js +2 -2
  359. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
  360. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
  361. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
  362. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
  363. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +8 -6
  364. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
  365. package/dist/nile-section-message/index.cjs.js +1 -1
  366. package/dist/nile-section-message/index.esm.js +1 -1
  367. package/dist/nile-section-message/nile-section-message.cjs.js +1 -1
  368. package/dist/nile-section-message/nile-section-message.cjs.js.map +1 -1
  369. package/dist/nile-section-message/nile-section-message.esm.js +2 -2
  370. package/dist/nile-select/index.cjs.js +1 -1
  371. package/dist/nile-select/index.esm.js +1 -1
  372. package/dist/nile-select/nile-select.cjs.js +1 -1
  373. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  374. package/dist/nile-select/nile-select.css.cjs.js +1 -1
  375. package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
  376. package/dist/nile-select/nile-select.css.esm.js +21 -2
  377. package/dist/nile-select/nile-select.esm.js +33 -25
  378. package/dist/nile-select/portal-utils.cjs.js +1 -1
  379. package/dist/nile-select/portal-utils.cjs.js.map +1 -1
  380. package/dist/nile-select/portal-utils.esm.js +1 -1
  381. package/dist/nile-side-bar/index.cjs.js +1 -1
  382. package/dist/nile-side-bar/index.esm.js +1 -1
  383. package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
  384. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
  385. package/dist/nile-side-bar/nile-side-bar.esm.js +2 -2
  386. package/dist/nile-side-bar-action/index.cjs.js +1 -1
  387. package/dist/nile-side-bar-action/index.esm.js +1 -1
  388. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js +1 -1
  389. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js.map +1 -1
  390. package/dist/nile-side-bar-action/nile-side-bar-action.esm.js +3 -3
  391. package/dist/nile-side-bar-action-menu/index.cjs.js +1 -1
  392. package/dist/nile-side-bar-action-menu/index.esm.js +1 -1
  393. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.cjs.js +1 -1
  394. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.cjs.js.map +1 -1
  395. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.esm.js +2 -2
  396. package/dist/nile-side-bar-action-menu-item/index.cjs.js +1 -1
  397. package/dist/nile-side-bar-action-menu-item/index.esm.js +1 -1
  398. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js +1 -1
  399. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js.map +1 -1
  400. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.esm.js +1 -1
  401. package/dist/nile-side-bar-expand/index.cjs.js +1 -1
  402. package/dist/nile-side-bar-expand/index.esm.js +1 -1
  403. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js +1 -1
  404. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js.map +1 -1
  405. package/dist/nile-side-bar-expand/nile-side-bar-expand.esm.js +2 -2
  406. package/dist/nile-side-bar-footer/index.cjs.js +1 -1
  407. package/dist/nile-side-bar-footer/index.esm.js +1 -1
  408. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js +1 -1
  409. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
  410. package/dist/nile-side-bar-footer/nile-side-bar-footer.esm.js +2 -2
  411. package/dist/nile-side-bar-footer-item/index.cjs.js +1 -1
  412. package/dist/nile-side-bar-footer-item/index.esm.js +1 -1
  413. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
  414. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
  415. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +1 -1
  416. package/dist/nile-side-bar-footer-text/index.cjs.js +1 -1
  417. package/dist/nile-side-bar-footer-text/index.esm.js +1 -1
  418. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js +1 -1
  419. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js.map +1 -1
  420. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.esm.js +3 -3
  421. package/dist/nile-side-bar-group/index.cjs.js +1 -1
  422. package/dist/nile-side-bar-group/index.esm.js +1 -1
  423. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
  424. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
  425. package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +2 -2
  426. package/dist/nile-side-bar-group-item/index.cjs.js +1 -1
  427. package/dist/nile-side-bar-group-item/index.esm.js +1 -1
  428. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js +1 -1
  429. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js.map +1 -1
  430. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.esm.js +2 -2
  431. package/dist/nile-side-bar-group-item-icon/index.cjs.js +1 -1
  432. package/dist/nile-side-bar-group-item-icon/index.esm.js +1 -1
  433. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
  434. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
  435. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +2 -2
  436. package/dist/nile-side-bar-group-item-text/index.cjs.js +1 -1
  437. package/dist/nile-side-bar-group-item-text/index.esm.js +1 -1
  438. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.cjs.js +1 -1
  439. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.cjs.js.map +1 -1
  440. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.esm.js +1 -1
  441. package/dist/nile-side-bar-header/index.cjs.js +1 -1
  442. package/dist/nile-side-bar-header/index.esm.js +1 -1
  443. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js +1 -1
  444. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
  445. package/dist/nile-side-bar-header/nile-side-bar-header.esm.js +2 -2
  446. package/dist/nile-side-bar-logo/index.cjs.js +1 -1
  447. package/dist/nile-side-bar-logo/index.esm.js +1 -1
  448. package/dist/nile-side-bar-logo/nile-side-bar-logo.cjs.js +1 -1
  449. package/dist/nile-side-bar-logo/nile-side-bar-logo.cjs.js.map +1 -1
  450. package/dist/nile-side-bar-logo/nile-side-bar-logo.esm.js +2 -2
  451. package/dist/nile-side-bar-panel/index.cjs.js +1 -1
  452. package/dist/nile-side-bar-panel/index.esm.js +1 -1
  453. package/dist/nile-side-bar-panel/nile-side-bar-panel.cjs.js +1 -1
  454. package/dist/nile-side-bar-panel/nile-side-bar-panel.cjs.js.map +1 -1
  455. package/dist/nile-side-bar-panel/nile-side-bar-panel.esm.js +2 -2
  456. package/dist/nile-skeleton-loader/index.cjs.js +1 -1
  457. package/dist/nile-skeleton-loader/index.esm.js +1 -1
  458. package/dist/nile-skeleton-loader/nile-skeleton-loader.cjs.js +1 -1
  459. package/dist/nile-skeleton-loader/nile-skeleton-loader.cjs.js.map +1 -1
  460. package/dist/nile-skeleton-loader/nile-skeleton-loader.esm.js +2 -2
  461. package/dist/nile-slide-toggle/index.cjs.js +1 -1
  462. package/dist/nile-slide-toggle/index.esm.js +1 -1
  463. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
  464. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
  465. package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +2 -2
  466. package/dist/nile-slider/index.cjs.js +1 -1
  467. package/dist/nile-slider/index.esm.js +1 -1
  468. package/dist/nile-slider/nile-slider.cjs.js +1 -1
  469. package/dist/nile-slider/nile-slider.cjs.js.map +1 -1
  470. package/dist/nile-slider/nile-slider.esm.js +3 -3
  471. package/dist/nile-split-panel/index.cjs.js +1 -1
  472. package/dist/nile-split-panel/index.esm.js +1 -1
  473. package/dist/nile-split-panel/nile-split-panel.cjs.js +1 -1
  474. package/dist/nile-split-panel/nile-split-panel.cjs.js.map +1 -1
  475. package/dist/nile-split-panel/nile-split-panel.esm.js +2 -2
  476. package/dist/nile-stepper/index.cjs.js +1 -1
  477. package/dist/nile-stepper/index.esm.js +1 -1
  478. package/dist/nile-stepper/nile-stepper.cjs.js +1 -1
  479. package/dist/nile-stepper/nile-stepper.cjs.js.map +1 -1
  480. package/dist/nile-stepper/nile-stepper.esm.js +3 -3
  481. package/dist/nile-stepper-item/index.cjs.js +1 -1
  482. package/dist/nile-stepper-item/index.esm.js +1 -1
  483. package/dist/nile-stepper-item/nile-stepper-item.cjs.js +1 -1
  484. package/dist/nile-stepper-item/nile-stepper-item.cjs.js.map +1 -1
  485. package/dist/nile-stepper-item/nile-stepper-item.esm.js +1 -1
  486. package/dist/nile-switcher/index.cjs.js +1 -1
  487. package/dist/nile-switcher/index.esm.js +1 -1
  488. package/dist/nile-switcher/nile-switcher.cjs.js +1 -1
  489. package/dist/nile-switcher/nile-switcher.cjs.js.map +1 -1
  490. package/dist/nile-switcher/nile-switcher.esm.js +23 -23
  491. package/dist/nile-tab/index.cjs.js +1 -1
  492. package/dist/nile-tab/index.esm.js +1 -1
  493. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  494. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  495. package/dist/nile-tab/nile-tab.esm.js +1 -1
  496. package/dist/nile-tab-group/index.cjs.js +1 -1
  497. package/dist/nile-tab-group/index.esm.js +1 -1
  498. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  499. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  500. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  501. package/dist/nile-tab-panel/index.cjs.js +1 -1
  502. package/dist/nile-tab-panel/index.esm.js +1 -1
  503. package/dist/nile-tab-panel/nile-tab-panel.cjs.js +1 -1
  504. package/dist/nile-tab-panel/nile-tab-panel.cjs.js.map +1 -1
  505. package/dist/nile-tab-panel/nile-tab-panel.esm.js +3 -3
  506. package/dist/nile-table/index.cjs.js +1 -1
  507. package/dist/nile-table/index.esm.js +1 -1
  508. package/dist/nile-table/nile-table.cjs.js +1 -1
  509. package/dist/nile-table/nile-table.cjs.js.map +1 -1
  510. package/dist/nile-table/nile-table.esm.js +1 -1
  511. package/dist/nile-table-body/index.cjs.js +1 -1
  512. package/dist/nile-table-body/index.esm.js +1 -1
  513. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  514. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  515. package/dist/nile-table-body/nile-table-body.esm.js +3 -3
  516. package/dist/nile-table-cell-item/index.cjs.js +1 -1
  517. package/dist/nile-table-cell-item/index.esm.js +1 -1
  518. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
  519. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
  520. package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +5 -5
  521. package/dist/nile-table-header-item/index.cjs.js +1 -1
  522. package/dist/nile-table-header-item/index.esm.js +1 -1
  523. package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
  524. package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
  525. package/dist/nile-table-header-item/nile-table-header-item.esm.js +1 -1
  526. package/dist/nile-table-row/index.cjs.js +1 -1
  527. package/dist/nile-table-row/index.esm.js +1 -1
  528. package/dist/nile-table-row/nile-table-row.cjs.js +1 -1
  529. package/dist/nile-table-row/nile-table-row.cjs.js.map +1 -1
  530. package/dist/nile-table-row/nile-table-row.esm.js +2 -2
  531. package/dist/nile-tag/index.cjs.js +1 -1
  532. package/dist/nile-tag/index.esm.js +1 -1
  533. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  534. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  535. package/dist/nile-tag/nile-tag.esm.js +1 -1
  536. package/dist/nile-textarea/index.cjs.js +1 -1
  537. package/dist/nile-textarea/index.esm.js +1 -1
  538. package/dist/nile-textarea/nile-textarea.cjs.js +1 -1
  539. package/dist/nile-textarea/nile-textarea.cjs.js.map +1 -1
  540. package/dist/nile-textarea/nile-textarea.esm.js +2 -2
  541. package/dist/nile-title/index.cjs.js +1 -1
  542. package/dist/nile-title/index.esm.js +1 -1
  543. package/dist/nile-title/nile-title.cjs.js +1 -1
  544. package/dist/nile-title/nile-title.cjs.js.map +1 -1
  545. package/dist/nile-title/nile-title.esm.js +1 -1
  546. package/dist/nile-toast/index.cjs.js +1 -1
  547. package/dist/nile-toast/index.esm.js +1 -1
  548. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  549. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  550. package/dist/nile-toast/nile-toast.esm.js +2 -2
  551. package/dist/nile-toolbar/index.cjs.js +1 -1
  552. package/dist/nile-toolbar/index.esm.js +1 -1
  553. package/dist/nile-toolbar/nile-toolbar.cjs.js +1 -1
  554. package/dist/nile-toolbar/nile-toolbar.cjs.js.map +1 -1
  555. package/dist/nile-toolbar/nile-toolbar.esm.js +2 -2
  556. package/dist/nile-tooltip/index.cjs.js +1 -1
  557. package/dist/nile-tooltip/index.esm.js +1 -1
  558. package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
  559. package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
  560. package/dist/nile-tooltip/nile-tooltip.esm.js +2 -2
  561. package/dist/nile-tree/index.cjs.js +1 -1
  562. package/dist/nile-tree/index.esm.js +1 -1
  563. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  564. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  565. package/dist/nile-tree/nile-tree.esm.js +1 -1
  566. package/dist/nile-tree-item/index.cjs.js +1 -1
  567. package/dist/nile-tree-item/index.esm.js +1 -1
  568. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  569. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  570. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  571. package/dist/nile-vertical-stepper-item/index.cjs.js +1 -1
  572. package/dist/nile-vertical-stepper-item/index.esm.js +1 -1
  573. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js +1 -1
  574. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js.map +1 -1
  575. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.esm.js +7 -7
  576. package/dist/nile-virtual-select/index.cjs.js +1 -1
  577. package/dist/nile-virtual-select/index.esm.js +1 -1
  578. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +3 -3
  579. package/dist/nile-virtual-select/nile-virtual-select.esm.js +3 -3
  580. package/dist/src/index.d.ts +1 -0
  581. package/dist/src/index.js +1 -0
  582. package/dist/src/index.js.map +1 -1
  583. package/dist/src/internal/accessibility/a11y.custom-value.enum.d.ts +69 -0
  584. package/dist/src/internal/accessibility/a11y.custom-value.enum.js +71 -0
  585. package/dist/src/internal/accessibility/a11y.custom-value.enum.js.map +1 -0
  586. package/dist/src/internal/accessibility/a11y.property.enum.d.ts +33 -0
  587. package/dist/src/internal/accessibility/a11y.property.enum.js +35 -0
  588. package/dist/src/internal/accessibility/a11y.property.enum.js.map +1 -0
  589. package/dist/src/internal/accessibility/a11y.role.enum.d.ts +50 -0
  590. package/dist/src/internal/accessibility/a11y.role.enum.js +52 -0
  591. package/dist/src/internal/accessibility/a11y.role.enum.js.map +1 -0
  592. package/dist/src/internal/accessibility/a11y.state.enum.d.ts +17 -0
  593. package/dist/src/internal/accessibility/a11y.state.enum.js +19 -0
  594. package/dist/src/internal/accessibility/a11y.state.enum.js.map +1 -0
  595. package/dist/src/internal/accessibility/accessibility.const.d.ts +8 -0
  596. package/dist/src/internal/accessibility/accessibility.const.js +9 -0
  597. package/dist/src/internal/accessibility/accessibility.const.js.map +1 -0
  598. package/dist/src/internal/accessibility/role.enum.d.ts +3 -0
  599. package/dist/src/internal/accessibility/role.enum.js +5 -0
  600. package/dist/src/internal/accessibility/role.enum.js.map +1 -0
  601. package/dist/src/internal/nile-element.d.ts +52 -0
  602. package/dist/src/internal/nile-element.js +45 -0
  603. package/dist/src/internal/nile-element.js.map +1 -1
  604. package/dist/src/nile-avatar/nile-avatar.js +2 -0
  605. package/dist/src/nile-avatar/nile-avatar.js.map +1 -1
  606. package/dist/src/nile-badge/nile-badge.d.ts +1 -0
  607. package/dist/src/nile-badge/nile-badge.js +12 -1
  608. package/dist/src/nile-badge/nile-badge.js.map +1 -1
  609. package/dist/src/nile-checkbox/nile-checkbox.css.js +4 -0
  610. package/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
  611. package/dist/src/nile-checkbox/nile-checkbox.d.ts +2 -0
  612. package/dist/src/nile-checkbox/nile-checkbox.js +5 -0
  613. package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
  614. package/dist/src/nile-checkbox-group/index.d.ts +1 -0
  615. package/dist/src/nile-checkbox-group/index.js +2 -0
  616. package/dist/src/nile-checkbox-group/index.js.map +1 -0
  617. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.d.ts +1 -0
  618. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.js +70 -0
  619. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.js.map +1 -0
  620. package/dist/src/nile-checkbox-group/nile-checkbox-group.d.ts +84 -0
  621. package/dist/src/nile-checkbox-group/nile-checkbox-group.js +355 -0
  622. package/dist/src/nile-checkbox-group/nile-checkbox-group.js.map +1 -0
  623. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.d.ts +2 -0
  624. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.js +671 -0
  625. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.js.map +1 -0
  626. package/dist/src/nile-link/nile-link.d.ts +2 -1
  627. package/dist/src/nile-link/nile-link.js +18 -1
  628. package/dist/src/nile-link/nile-link.js.map +1 -1
  629. package/dist/src/nile-otp-input/nile-otp-input.test.js +7 -7
  630. package/dist/src/nile-otp-input/nile-otp-input.test.js.map +1 -1
  631. package/dist/src/nile-pagination/nile-pagination.css.js +7 -0
  632. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
  633. package/dist/src/nile-radio/nile-radio.css.js +4 -0
  634. package/dist/src/nile-radio/nile-radio.css.js.map +1 -1
  635. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +8 -6
  636. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
  637. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +2 -0
  638. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +43 -0
  639. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
  640. package/dist/src/nile-rich-text-editor/nile-rte-link.test.js +6 -5
  641. package/dist/src/nile-rich-text-editor/nile-rte-link.test.js.map +1 -1
  642. package/dist/src/nile-select/nile-select.css.js +21 -2
  643. package/dist/src/nile-select/nile-select.css.js.map +1 -1
  644. package/dist/src/nile-select/nile-select.d.ts +4 -0
  645. package/dist/src/nile-select/nile-select.js +42 -24
  646. package/dist/src/nile-select/nile-select.js.map +1 -1
  647. package/dist/src/nile-select/portal-utils.d.ts +2 -0
  648. package/dist/src/nile-select/portal-utils.js +36 -3
  649. package/dist/src/nile-select/portal-utils.js.map +1 -1
  650. package/dist/src/version.js +1 -1
  651. package/dist/src/version.js.map +1 -1
  652. package/dist/tsconfig.tsbuildinfo +1 -1
  653. package/package.json +3 -2
  654. package/src/index.ts +1 -0
  655. package/src/internal/accessibility/a11y.custom-value.enum.ts +69 -0
  656. package/src/internal/accessibility/a11y.property.enum.ts +33 -0
  657. package/src/internal/accessibility/a11y.role.enum.ts +50 -0
  658. package/src/internal/accessibility/a11y.state.enum.ts +17 -0
  659. package/src/internal/accessibility/accessibility.const.ts +9 -0
  660. package/src/internal/accessibility/role.enum.ts +3 -0
  661. package/src/internal/nile-element.ts +99 -0
  662. package/src/nile-avatar/nile-avatar.ts +2 -0
  663. package/src/nile-badge/nile-badge.ts +13 -1
  664. package/src/nile-checkbox/nile-checkbox.css.ts +4 -0
  665. package/src/nile-checkbox/nile-checkbox.ts +3 -0
  666. package/src/nile-checkbox-group/index.ts +1 -0
  667. package/src/nile-checkbox-group/nile-checkbox-group.css.ts +70 -0
  668. package/src/nile-checkbox-group/nile-checkbox-group.test.ts +769 -0
  669. package/src/nile-checkbox-group/nile-checkbox-group.ts +351 -0
  670. package/src/nile-link/nile-link.ts +21 -2
  671. package/src/nile-otp-input/nile-otp-input.test.ts +7 -7
  672. package/src/nile-pagination/nile-pagination.css.ts +7 -0
  673. package/src/nile-radio/nile-radio.css.ts +4 -0
  674. package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +8 -6
  675. package/src/nile-rich-text-editor/nile-rich-text-editor.ts +43 -0
  676. package/src/nile-rich-text-editor/nile-rte-link.test.ts +6 -5
  677. package/src/nile-select/nile-select.css.ts +21 -2
  678. package/src/nile-select/nile-select.ts +44 -24
  679. package/src/nile-select/portal-utils.ts +46 -3
  680. package/vscode-html-custom-data.json +111 -19
@@ -1 +1 @@
1
- import{__decorate as t}from"tslib";import{s as i}from"./nile-file-preview.css.esm.js";import{N as s}from"../internal/nile-element.esm.js";import{property as e,customElement as h}from"lit/decorators.js";import{i as a,a as r}from"./utils/nile-file-preview.util.esm.js";import{F as l,a as o,b as n,c as p}from"./types/nile-file-preview.enums.esm.js";import{html as c}from"lit";import{g as m,a as d,b as f,c as u,d as y,e as v,f as w,h as g}from"./nile-file-preview.template.esm.js";let S=class extends s{constructor(){super(...arguments),this.errorMessage="",this.fileUrl="",this.uploadStatus=0,this.state=l.DEFAULT,this.variant=o.HORIZONTAL,this.inputFileName="",this.showFileType=!1,this.inputFileHtml=null,this.originalUrl="",this.isStringTruncated=!1}static get styles(){return[i]}connectedCallback(){super.connectedCallback(),this.emit(n.NILE_INIT)}firstUpdated(t){super.firstUpdated(t)}updated(t){t.has("uploadStatus")&&this.uploadStatus?this.uploadStatus<100?this.createUploadState(this.inputFile,this.uploadStatus):this.createState(this.inputFile):t.has("inputFile")&&this.inputFile?(this.createState(this.inputFile),this.emit(n.NILE_RECEIVE)):t.has("fileUrl")&&this.fileUrl?(this.handleFileUrl(this.fileUrl),this.emit(n.NILE_RECEIVE)):t.has("errorMessage")&&this.createState(this.inputFile)}createUploadState(t,i){const s=this.variant===o.HORIZONTAL;this.inputFileHtml=s?m(t,i,this):d(t,i,this),this.requestUpdate()}async handleFileUrl(t){this.originalUrl=t;try{const i=await fetch(t),s=await i.blob(),e=this.inputFileName||t.split("/").pop()||p.UNKNOWN_FILE_NAME,h=new File([s],e,{type:s.type});this.createState(h)}catch(t){const i=new File([],this.inputFileName||p.UNKNOWN_FILE_NAME,{type:"application/octet-stream"});this.errorMessage=p.FAILED_TO_LOAD,console.error(this.errorMessage),this.inputFileHtml=this.variant===o.HORIZONTAL?f(i,this.errorMessage,this.originalUrl,this):u(i,this.errorMessage,this.originalUrl,this),this.requestUpdate()}}async createState(t){const i=this.variant===o.HORIZONTAL;if(this.errorMessage)this.inputFileHtml=i?f(t,this.errorMessage,this.originalUrl,this):u(t,this.errorMessage,this.originalUrl,this);else{let s=!1;try{s=t&&await a(t)}catch(t){s=!1}if(s)try{const s=await r(t);this.inputFileHtml=i?y(s,t,this.originalUrl,this.showFileType):v(s,t,this.originalUrl,this.showFileType)}catch(s){this.inputFileHtml=i?w(t,this.originalUrl,this.showFileType):g(t,this.originalUrl,this.showFileType)}else this.inputFileHtml=i?w(t,this.originalUrl,this.showFileType):g(t,this.originalUrl,this.showFileType)}this.requestUpdate()}render(){return c`${this.inputFileHtml??c``}`}disconnectedCallback(){super.disconnectedCallback(),this.emit(n.NILE_DESTROY)}};t([e({type:String})],S.prototype,"errorMessage",void 0),t([e({type:Object})],S.prototype,"inputFile",void 0),t([e({type:String})],S.prototype,"fileUrl",void 0),t([e({type:Number})],S.prototype,"uploadStatus",void 0),t([e({type:String})],S.prototype,"state",void 0),t([e({type:String})],S.prototype,"variant",void 0),t([e({type:String})],S.prototype,"inputFileName",void 0),t([e({type:Boolean,reflect:!0,attribute:!0})],S.prototype,"showFileType",void 0),S=t([h("nile-file-preview")],S);export{S as N};
1
+ import{__decorate as t}from"tslib";import{s as i}from"./nile-file-preview.css.esm.js";import{N as s}from"../internal/nile-element.esm.js";import{property as e,customElement as h}from"lit/decorators.js";import{i as a,a as r}from"./utils/nile-file-preview.util.esm.js";import{F as l,a as o,b as n,c as p}from"./types/nile-file-preview.enums.esm.js";import{html as c}from"lit";import{g as m,a as u,b as y,c as d,d as f,e as v,f as w,h as b}from"./nile-file-preview.template.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";let j=class extends s{constructor(){super(...arguments),this.errorMessage="",this.fileUrl="",this.uploadStatus=0,this.state=l.DEFAULT,this.variant=o.HORIZONTAL,this.inputFileName="",this.showFileType=!1,this.inputFileHtml=null,this.originalUrl="",this.isStringTruncated=!1}static get styles(){return[i]}connectedCallback(){super.connectedCallback(),this.emit(n.NILE_INIT)}firstUpdated(t){super.firstUpdated(t)}updated(t){t.has("uploadStatus")&&this.uploadStatus?this.uploadStatus<100?this.createUploadState(this.inputFile,this.uploadStatus):this.createState(this.inputFile):t.has("inputFile")&&this.inputFile?(this.createState(this.inputFile),this.emit(n.NILE_RECEIVE)):t.has("fileUrl")&&this.fileUrl?(this.handleFileUrl(this.fileUrl),this.emit(n.NILE_RECEIVE)):t.has("errorMessage")&&this.createState(this.inputFile)}createUploadState(t,i){const s=this.variant===o.HORIZONTAL;this.inputFileHtml=s?m(t,i,this):u(t,i,this),this.requestUpdate()}async handleFileUrl(t){this.originalUrl=t;try{const i=await fetch(t),s=await i.blob(),e=this.inputFileName||t.split("/").pop()||p.UNKNOWN_FILE_NAME,h=new File([s],e,{type:s.type});this.createState(h)}catch(t){const i=new File([],this.inputFileName||p.UNKNOWN_FILE_NAME,{type:"application/octet-stream"});this.errorMessage=p.FAILED_TO_LOAD,console.error(this.errorMessage),this.inputFileHtml=this.variant===o.HORIZONTAL?y(i,this.errorMessage,this.originalUrl,this):d(i,this.errorMessage,this.originalUrl,this),this.requestUpdate()}}async createState(t){const i=this.variant===o.HORIZONTAL;if(this.errorMessage)this.inputFileHtml=i?y(t,this.errorMessage,this.originalUrl,this):d(t,this.errorMessage,this.originalUrl,this);else{let s=!1;try{s=t&&await a(t)}catch(t){s=!1}if(s)try{const s=await r(t);this.inputFileHtml=i?f(s,t,this.originalUrl,this.showFileType):v(s,t,this.originalUrl,this.showFileType)}catch(s){this.inputFileHtml=i?w(t,this.originalUrl,this.showFileType):b(t,this.originalUrl,this.showFileType)}else this.inputFileHtml=i?w(t,this.originalUrl,this.showFileType):b(t,this.originalUrl,this.showFileType)}this.requestUpdate()}render(){return c`${this.inputFileHtml??c``}`}disconnectedCallback(){super.disconnectedCallback(),this.emit(n.NILE_DESTROY)}};t([e({type:String})],j.prototype,"errorMessage",void 0),t([e({type:Object})],j.prototype,"inputFile",void 0),t([e({type:String})],j.prototype,"fileUrl",void 0),t([e({type:Number})],j.prototype,"uploadStatus",void 0),t([e({type:String})],j.prototype,"state",void 0),t([e({type:String})],j.prototype,"variant",void 0),t([e({type:String})],j.prototype,"inputFileName",void 0),t([e({type:Boolean,reflect:!0,attribute:!0})],j.prototype,"showFileType",void 0),j=t([h("nile-file-preview")],j);export{j as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-file-upload.cjs.js","tslib","./nile-file-upload.css.cjs.js","lit","../internal/nile-element.cjs.js","./utils/drag-drop.util.cjs.js","./utils/file-validation.util.cjs.js","./types/file-upload.enums.cjs.js","lit/decorators.js","./nile-file-upload.template.cjs.js","../lit-html-9b3af046.cjs.js","../directive-7733ffce.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileFileUploadCjsJs){_export("NileFileUpload",_nileFileUploadCjsJs.N);},function(_tslib){},function(_nileFileUploadCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_utilsDragDropUtilCjsJs){},function(_utilsFileValidationUtilCjsJs){},function(_typesFileUploadEnumsCjsJs){},function(_litDecoratorsJs){},function(_nileFileUploadTemplateCjsJs){},function(_litHtml003CjsJs){},function(_directive004CjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-file-upload.cjs.js","tslib","./nile-file-upload.css.cjs.js","lit","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js","./utils/drag-drop.util.cjs.js","./utils/file-validation.util.cjs.js","./types/file-upload.enums.cjs.js","lit/decorators.js","./nile-file-upload.template.cjs.js","../lit-html-9b3af046.cjs.js","../directive-7733ffce.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileFileUploadCjsJs){_export("NileFileUpload",_nileFileUploadCjsJs.N);},function(_tslib){},function(_nileFileUploadCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_utilsDragDropUtilCjsJs){},function(_utilsFileValidationUtilCjsJs){},function(_typesFileUploadEnumsCjsJs){},function(_litDecoratorsJs){},function(_nileFileUploadTemplateCjsJs){},function(_litHtml003CjsJs){},function(_directive004CjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileFileUpload}from"./nile-file-upload.esm.js";import"tslib";import"./nile-file-upload.css.esm.js";import"lit";import"../internal/nile-element.esm.js";import"./utils/drag-drop.util.esm.js";import"./utils/file-validation.util.esm.js";import"./types/file-upload.enums.esm.js";import"lit/decorators.js";import"./nile-file-upload.template.esm.js";import"../lit-html-39a6718c.esm.js";import"../directive-ee0c609c.esm.js";
1
+ export{N as NileFileUpload}from"./nile-file-upload.esm.js";import"tslib";import"./nile-file-upload.css.esm.js";import"lit";import"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";import"./utils/drag-drop.util.esm.js";import"./utils/file-validation.util.esm.js";import"./types/file-upload.enums.esm.js";import"lit/decorators.js";import"./nile-file-upload.template.esm.js";import"../lit-html-39a6718c.esm.js";import"../directive-ee0c609c.esm.js";
@@ -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,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));}};});
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","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js","../lit-html-9b3af046.cjs.js","../directive-7733ffce.cjs.js"],function(_export,_context){"use strict";var t,s,i,e,h,r,a,o,l,n,p,d,c,u,m,y,j,f,v,g,b,S,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){e=_utilsDragDropUtilCjsJs.D;},function(_typesFileUploadEnumsCjsJs){h=_typesFileUploadEnumsCjsJs.d;r=_typesFileUploadEnumsCjsJs.F;a=_typesFileUploadEnumsCjsJs.e;o=_typesFileUploadEnumsCjsJs.b;},function(_lit){l=_lit.html;},function(_litDecoratorsJs){n=_litDecoratorsJs.property;p=_litDecoratorsJs.state;d=_litDecoratorsJs.query;c=_litDecoratorsJs.customElement;},function(_utilsFileValidationUtilCjsJs){u=_utilsFileValidationUtilCjsJs.s;m=_utilsFileValidationUtilCjsJs.a;y=_utilsFileValidationUtilCjsJs.b;j=_utilsFileValidationUtilCjsJs.u;},function(_nileFileUploadTemplateCjsJs){f=_nileFileUploadTemplateCjsJs.g;v=_nileFileUploadTemplateCjsJs.a;g=_nileFileUploadTemplateCjsJs.b;b=_nileFileUploadTemplateCjsJs.c;S=_nileFileUploadTemplateCjsJs.d;w=_nileFileUploadTemplateCjsJs.e;U=_nileFileUploadTemplateCjsJs.f;B=_nileFileUploadTemplateCjsJs.h;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},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=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=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 e(),u(this,this.dragHandler),m(this,this.dragHandler,this.uploadRequests),y(this.dragHandler);}},{key:"updated",value:function updated(t){_superPropGet(F,"updated",this,3)([t]),t.has("uploadedFiles")?(this.fileUploadUrl&&this.autoUpload&&j(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&&j(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 f(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DISABLED:return b(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 f(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 U();case r.ERROR:return w(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([n({type:String})],F.prototype,"size",void 0),t([n({type:Boolean})],F.prototype,"error",void 0),t([n({type:String})],F.prototype,"errorMessage",void 0),t([n({type:Boolean})],F.prototype,"allowMultiple",void 0),t([n({type:Boolean})],F.prototype,"allowDuplicates",void 0),t([n({type:Array})],F.prototype,"allowedTypes",void 0),t([n({type:Array})],F.prototype,"uploadedFiles",void 0),t([n({type:String})],F.prototype,"title",void 0),t([n({type:String})],F.prototype,"subtitle",void 0),t([n({type:String})],F.prototype,"state",void 0),t([n({type:String})],F.prototype,"variant",void 0),t([n({type:String})],F.prototype,"fileUploadUrl",void 0),t([n({type:Boolean})],F.prototype,"autoUpload",void 0),t([p()],F.prototype,"doNotUpload",void 0),t([d("input")],F.prototype,"input",void 0),t([d(".horizontal-div")],F.prototype,"horizontalDiv",void 0),_export("N",F=t([c("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 @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,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,QAAAA,CAAmBF,CAAmBG,CAAAA,QAAAA,CACtCZ,KAAAA,CAAAa,KAAyBC,CAAAA,CAAAA,CAAgBC,OACzCf,CAAAA,KAAAA,CAAAgB,OAA6BC,CAAAA,CAAAA,CAAkBC,WAC/ClB,KAAAA,CAAamB,aAAAA,CAAW,GACxBnB,KAAAA,CAAUoB,UAAAA,CAAAA,CAAY,EAClCpB,KAAAA,CAAWqB,WAAAA,CAAW,EAG/BrB,CAAAA,KAAAA,CAAAsB,cAAiB,CAAA,GAAIC,CAAAA,MACrBvB,KAAAA,CAA2BwB,2BAAAA,CAAW,CACtCxB,CAAAA,KAAAA,CAAiByB,iBAAY,CAAA,CAAA,CAAA,CA4C7BzB,KAAAA,CAAA0B,QAAYC,CAAAA,SAAAA,CAAAA,CAAAA,CACjB3B,KAAAA,CAAKa,KAAAA,CAAQc,CAAQ,EA8DxB,QAAAC,KAAA,EAjIQC,SAAA,CAAA/B,CAAA,CAAAD,EAAA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CtF,EAAAuF,SAAA,CAAA,eAAA,CAAA,IAAA,IAC3BJ,CAAA,CAAA,CAA3BC,EAAS,CAAEC,IAAAA,CAAMG,WAAqCxF,CAAAuF,CAAAA,SAAAA,CAAA,iBAAA,EACvCJ,CAAAA,CAAAA,CAAAA,CAAA,CAAflE,CAAwCjB,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAuF,UAAA,aAAA,CAAA,IAAA,EAAA,CAAA,CACzBJ,CAAA,CAAA,CAAfO,EAAM,OAAkC1F,CAAAA,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
+ {"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","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","_i","_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":"6+JAkCaA,4BAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCASuBC,KAAAA,CAAIC,IAAW,CAAA,MAAA,CACfD,KAAAA,CAAKE,KAAAA,CAAAA,CAAY,CACjBF,CAAAA,KAAAA,CAAYG,aAAW,EACvBH,CAAAA,KAAAA,CAAaI,eAAY,CACzBJ,CAAAA,KAAAA,CAAeK,iBAAY,CAC3BL,CAAAA,KAAAA,CAAYM,YAAa,CAAA,EAAA,CACzBN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A,CAAcmF,EAAA,CAD1BQ,CAAAA,CAAc,qBACF3F"}
@@ -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{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`
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 n,state as p,query as d,customElement as u}from"lit/decorators.js";import{s as m,a as c,b as y,u as f}from"./utils/file-validation.util.esm.js";import{g as v,a as g,b as j,c as b,d as S,e as w,f as U,h as B}from"./nile-file-upload.template.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.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),y(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`
2
2
  ${this.getState()}
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};
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 v(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DISABLED:return b(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);case r.DRAG:return j();case r.ERROR:return g(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this);default:return v(this.browseFiles,this.title,this.subtitle,this.dragHandler,this.state,this.errorMessage,this.allowedTypes,this)}}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 U();case r.ERROR:return w(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)}}disconnectedCallback(){this.emit(o.NILE_DESTROY)}};t([n({type:String})],F.prototype,"size",void 0),t([n({type:Boolean})],F.prototype,"error",void 0),t([n({type:String})],F.prototype,"errorMessage",void 0),t([n({type:Boolean})],F.prototype,"allowMultiple",void 0),t([n({type:Boolean})],F.prototype,"allowDuplicates",void 0),t([n({type:Array})],F.prototype,"allowedTypes",void 0),t([n({type:Array})],F.prototype,"uploadedFiles",void 0),t([n({type:String})],F.prototype,"title",void 0),t([n({type:String})],F.prototype,"subtitle",void 0),t([n({type:String})],F.prototype,"state",void 0),t([n({type:String})],F.prototype,"variant",void 0),t([n({type:String})],F.prototype,"fileUploadUrl",void 0),t([n({type:Boolean})],F.prototype,"autoUpload",void 0),t([p()],F.prototype,"doNotUpload",void 0),t([d("input")],F.prototype,"input",void 0),t([d(".horizontal-div")],F.prototype,"horizontalDiv",void 0),F=t([u("nile-file-upload")],F);export{F as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-filter-chip.cjs.js","tslib","lit","lit/decorators.js","../internal/nile-element.cjs.js","./nile-filter-chip.css.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileFilterChipCjsJs){_export("NileFilterChip",_nileFilterChipCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){},function(_nileFilterChipCssCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-filter-chip.cjs.js","tslib","lit","lit/decorators.js","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js","./nile-filter-chip.css.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileFilterChipCjsJs){_export("NileFilterChip",_nileFilterChipCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_nileFilterChipCssCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileFilterChip}from"./nile-filter-chip.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"../internal/nile-element.esm.js";import"./nile-filter-chip.css.esm.js";
1
+ export{N as NileFilterChip}from"./nile-filter-chip.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";import"./nile-filter-chip.css.esm.js";
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","../internal/nile-element.cjs.js","./nile-filter-chip.css.cjs.js"],function(_export,_context){"use strict";var e,t,s,i,l,a,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_o,n;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _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){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;i=_litDecoratorsJs.customElement;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nileFilterChipCssCjsJs){a=_nileFilterChipCssCjsJs.s;}],execute:function execute(){_export("N",n=_o=/*#__PURE__*/function(_l){function o(){var _this;_classCallCheck(this,o);_this=_callSuper(this,o,arguments),_this.label="",_this.value="",_this.viewMoreCount=0,_this.editable=!1,_this.closable=!1,_this.icon="",_this.removeIcon="",_this.active=!1,_this.disabled=!1;return _this;}_inherits(o,_l);return _createClass(o,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(o,"connectedCallback",this,3)([]),this.registerChip();}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(o,"disconnectedCallback",this,3)([]),this.unregisterChip();}},{key:"registerChip",value:function registerChip(){_o.activeChips.push(this);}},{key:"unregisterChip",value:function unregisterChip(){var _this2=this;_o.activeChips=_o.activeChips.filter(function(e){return e!==_this2;});}},{key:"handleClose",value:function handleClose(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("nile-close",{detail:{value:this.value,viewMoreCount:this.viewMoreCount}})),this.remove();}},{key:"handleClick",value:function handleClick(){this.disabled||this.dispatchEvent(new CustomEvent("nile-click",{detail:{value:this.value,viewMoreCount:this.viewMoreCount}}));}},{key:"getLabelSlot",value:function getLabelSlot(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <span class=\"label-wrapper\">\n <slot name=\"label\">\n <span class=\"label\" part=\"label\">",":</span>\n </slot>\n </span>\n\n "])),this.label);}},{key:"getValueSlot",value:function getValueSlot(){return t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <span class=\"value-wrapper\">\n <slot name=\"value\">\n <span class=\"value\" part=\"value\">","</span>\n </slot>\n </span>\n\n "])),this.value);}},{key:"getviewMoreCountSlot",value:function getviewMoreCountSlot(){return t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <slot name=\"suffix\">\n ","\n </slot>\n "])),this.viewMoreCount?t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <span class=\"badge-wrapper\">\n <nile-badge class=\"badge\" part=\"badge\" variant=\"primary\" pilltype=\"pill-color\" exportparts=\"content, base\">\n +","\n </nile-badge>\n </span>\n\n "])),this.viewMoreCount):t(_templateObject5||(_templateObject5=_taggedTemplateLiteral([""]))));}},{key:"getCloseIconSlot",value:function getCloseIconSlot(){return t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n ","\n "])),this.closable?t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <span class=\"close-icon\" @click=\"","\">\n <nile-icon name=\"","\" size=\"12\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"></nile-icon>\n </span>\n "])),this.handleClose,this.removeIcon||"var(--nile-icon-close, var(--ng-icon-x-close))"):t(_templateObject8||(_templateObject8=_taggedTemplateLiteral([""]))));}},{key:"render",value:function render(){return t(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <div class=\"chip\" @click=\"","\">\n <slot name=\"icon\">\n ","\n </slot>\n ","\n <slot name=\"content\"></slot>\n ","\n ","\n ","\n </div>\n "])),this.handleClick,this.icon?t(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<span class=\"icon\">","</span>"])),this.icon):t(_templateObject11||(_templateObject11=_taggedTemplateLiteral([""]))),this.getLabelSlot(),this.getValueSlot(),this.getviewMoreCountSlot(),this.getCloseIconSlot());}}],[{key:"styles",get:function get(){return[a];}}]);}(l));n.activeChips=[],e([s({type:String})],n.prototype,"label",void 0),e([s({type:String})],n.prototype,"value",void 0),e([s({type:Number})],n.prototype,"viewMoreCount",void 0),e([s({type:Boolean})],n.prototype,"editable",void 0),e([s({type:Boolean})],n.prototype,"closable",void 0),e([s({type:String})],n.prototype,"icon",void 0),e([s({type:String})],n.prototype,"removeIcon",void 0),e([s({type:Boolean,reflect:!0})],n.prototype,"active",void 0),e([s({type:Boolean,reflect:!0})],n.prototype,"disabled",void 0),_export("N",n=_o=e([i("nile-filter-chip")],n));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","../internal/nile-element.cjs.js","./nile-filter-chip.css.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var e,t,s,i,l,a,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_n,o;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){e=_tslib.__decorate;},function(_lit){t=_lit.html;},function(_litDecoratorsJs){s=_litDecoratorsJs.property;i=_litDecoratorsJs.customElement;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_nileFilterChipCssCjsJs){a=_nileFilterChipCssCjsJs.s;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",o=_n=/*#__PURE__*/function(_l){function n(){var _this;_classCallCheck(this,n);_this=_callSuper(this,n,arguments),_this.label="",_this.value="",_this.viewMoreCount=0,_this.editable=!1,_this.closable=!1,_this.icon="",_this.removeIcon="",_this.active=!1,_this.disabled=!1;return _this;}_inherits(n,_l);return _createClass(n,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(n,"connectedCallback",this,3)([]),this.registerChip();}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(n,"disconnectedCallback",this,3)([]),this.unregisterChip();}},{key:"registerChip",value:function registerChip(){_n.activeChips.push(this);}},{key:"unregisterChip",value:function unregisterChip(){var _this2=this;_n.activeChips=_n.activeChips.filter(function(e){return e!==_this2;});}},{key:"handleClose",value:function handleClose(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("nile-close",{detail:{value:this.value,viewMoreCount:this.viewMoreCount}})),this.remove();}},{key:"handleClick",value:function handleClick(){this.disabled||this.dispatchEvent(new CustomEvent("nile-click",{detail:{value:this.value,viewMoreCount:this.viewMoreCount}}));}},{key:"getLabelSlot",value:function getLabelSlot(){return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <span class=\"label-wrapper\">\n <slot name=\"label\">\n <span class=\"label\" part=\"label\">",":</span>\n </slot>\n </span>\n\n "])),this.label);}},{key:"getValueSlot",value:function getValueSlot(){return t(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n <span class=\"value-wrapper\">\n <slot name=\"value\">\n <span class=\"value\" part=\"value\">","</span>\n </slot>\n </span>\n\n "])),this.value);}},{key:"getviewMoreCountSlot",value:function getviewMoreCountSlot(){return t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <slot name=\"suffix\">\n ","\n </slot>\n "])),this.viewMoreCount?t(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["\n <span class=\"badge-wrapper\">\n <nile-badge class=\"badge\" part=\"badge\" variant=\"primary\" pilltype=\"pill-color\" exportparts=\"content, base\">\n +","\n </nile-badge>\n </span>\n\n "])),this.viewMoreCount):t(_templateObject5||(_templateObject5=_taggedTemplateLiteral([""]))));}},{key:"getCloseIconSlot",value:function getCloseIconSlot(){return t(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n ","\n "])),this.closable?t(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n <span class=\"close-icon\" @click=\"","\">\n <nile-icon name=\"","\" size=\"12\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"></nile-icon>\n </span>\n "])),this.handleClose,this.removeIcon||"var(--nile-icon-close, var(--ng-icon-x-close))"):t(_templateObject8||(_templateObject8=_taggedTemplateLiteral([""]))));}},{key:"render",value:function render(){return t(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["\n <div class=\"chip\" @click=\"","\">\n <slot name=\"icon\">\n ","\n </slot>\n ","\n <slot name=\"content\"></slot>\n ","\n ","\n ","\n </div>\n "])),this.handleClick,this.icon?t(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<span class=\"icon\">","</span>"])),this.icon):t(_templateObject11||(_templateObject11=_taggedTemplateLiteral([""]))),this.getLabelSlot(),this.getValueSlot(),this.getviewMoreCountSlot(),this.getCloseIconSlot());}}],[{key:"styles",get:function get(){return[a];}}]);}(l));o.activeChips=[],e([s({type:String})],o.prototype,"label",void 0),e([s({type:String})],o.prototype,"value",void 0),e([s({type:Number})],o.prototype,"viewMoreCount",void 0),e([s({type:Boolean})],o.prototype,"editable",void 0),e([s({type:Boolean})],o.prototype,"closable",void 0),e([s({type:String})],o.prototype,"icon",void 0),e([s({type:String})],o.prototype,"removeIcon",void 0),e([s({type:Boolean,reflect:!0})],o.prototype,"active",void 0),e([s({type:Boolean,reflect:!0})],o.prototype,"disabled",void 0),_export("N",o=_n=e([i("nile-filter-chip")],o));}};});
2
2
  //# sourceMappingURL=nile-filter-chip.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-filter-chip.cjs.js","sources":["../../../src/nile-filter-chip/nile-filter-chip.ts"],"sourcesContent":["import { LitElement, html, css, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport NileElement from '../internal/nile-element';\nimport { styles } from './nile-filter-chip.css';\n\n/**\n * Nile filter-chip component.\n *\n * @tag nile-filter-chip\n */\n@customElement('nile-filter-chip')\nexport class NileFilterChip extends NileElement {\n @property({ type: String }) label = '';\n @property({ type: String }) value = '';\n @property({ type: Number }) viewMoreCount: number = 0;\n @property({ type: Boolean }) editable = false;\n @property({ type: Boolean }) closable = false;\n @property({ type: String }) icon = '';\n @property({ type: String }) removeIcon = '';\n @property({ type: Boolean, reflect: true }) active = false;\n @property({type:Boolean, reflect:true}) disabled = false;\n\n\n private static activeChips: NileFilterChip[] = [];\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.registerChip();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.unregisterChip();\n }\n\n private registerChip() {\n NileFilterChip.activeChips.push(this);\n }\n\n private unregisterChip() {\n NileFilterChip.activeChips = NileFilterChip.activeChips.filter(\n (chip) => chip !== this\n );\n }\n\n private handleClose(event: Event) {\n event.stopPropagation();\n this.dispatchEvent(\n new CustomEvent('nile-close', { detail: { value: this.value, viewMoreCount: this.viewMoreCount } })\n );\n this.remove();\n }\n\n private handleClick() {\n if (this.disabled) return;\n this.dispatchEvent(\n new CustomEvent('nile-click', { detail: { value: this.value, viewMoreCount: this.viewMoreCount } })\n );\n }\n\n private getLabelSlot(): TemplateResult {\n return html`\n <span class=\"label-wrapper\">\n <slot name=\"label\">\n <span class=\"label\" part=\"label\">${this.label}:</span>\n </slot>\n </span>\n\n `;\n }\n\n private getValueSlot(): TemplateResult {\n return html`\n <span class=\"value-wrapper\">\n <slot name=\"value\">\n <span class=\"value\" part=\"value\">${this.value}</span>\n </slot>\n </span>\n\n `;\n }\n\n private getviewMoreCountSlot(): TemplateResult {\n return html`\n <slot name=\"suffix\">\n ${this.viewMoreCount\n ? html`\n <span class=\"badge-wrapper\">\n <nile-badge class=\"badge\" part=\"badge\" variant=\"primary\" pilltype=\"pill-color\" exportparts=\"content, base\">\n +${this.viewMoreCount}\n </nile-badge>\n </span>\n\n `\n : html``}\n </slot>\n `;\n }\n\n private getCloseIconSlot(): TemplateResult {\n return html`\n ${this.closable\n ? html`\n <span class=\"close-icon\" @click=\"${this.handleClose}\">\n <nile-icon name=\"${this.removeIcon || 'var(--nile-icon-close, var(--ng-icon-x-close))'}\" size=\"12\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"></nile-icon>\n </span>\n `\n : html``}\n `;\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"chip\" @click=\"${this.handleClick}\">\n <slot name=\"icon\">\n ${this.icon ? html`<span class=\"icon\">${this.icon}</span>` : html``}\n </slot>\n ${this.getLabelSlot()}\n <slot name=\"content\"></slot>\n ${this.getValueSlot()}\n ${this.getviewMoreCountSlot()}\n ${this.getCloseIconSlot()}\n </div>\n `;\n }\n}\n\nexport default NileFilterChip;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-filter-chip': NileFilterChip;\n }\n}\n"],"names":["NileFilterChip","NileFilterChip_1","_l","o","this","label","value","viewMoreCount","editable","closable","icon","removeIcon","active","disabled","_this","_inherits","_createClass","key","connectedCallback","super","registerChip","disconnectedCallback","unregisterChip","activeChips","push","filter","chip","handleClose","event","stopPropagation","dispatchEvent","CustomEvent","detail","remove","handleClick","getLabelSlot","html","_templateObject","_taggedTemplateLiteral","getValueSlot","_templateObject2","getviewMoreCountSlot","_templateObject3","_templateObject4","_templateObject5","getCloseIconSlot","_templateObject6","_templateObject7","_templateObject8","render","_templateObject9","_templateObject10","_templateObject11","get","styles","NileElement","__decorate","property","type","String","prototype","Number","Boolean","reflect","customElement"],"mappings":"o0HAWaA,CAAAA,CAAcC,EAApB,uBAAAC,EAAA,EAAA,SAAAC,EAAA,qEACuBC,EAAAA,KAAAA,CAAKC,KAAG,CAAA,EAAA,CACRD,KAAAA,CAAKE,KAAAA,CAAG,EACRF,CAAAA,KAAAA,CAAaG,cAAW,CACvBH,CAAAA,KAAAA,CAAQI,QAAG,CAAA,CAAA,CAAA,CACXJ,KAAAA,CAAQK,QAAAA,CAAAA,CAAG,CACZL,CAAAA,KAAAA,CAAIM,IAAG,CAAA,EAAA,CACPN,KAAAA,CAAUO,UAAAA,CAAG,EACGP,CAAAA,KAAAA,CAAMQ,MAAG,CAAA,CAAA,CAAA,CACbR,KAAAA,CAAQS,QAAG,CAAA,CAAA,CA6GpD,QAAAC,KAAA,EAxGQC,SAAA,CAAAZ,CAAA,CAAAD,EAAA,SAAAc,YAAA,CAAAb,CAAA,GAAAc,GAAA,qBAAAX,KAAA,CAIP,SAAAY,iBAAAA,CAAAA,CACEC,CAAAA,aAAAA,CAAAA,CAAAA,iC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,CAAAA,CAAAA,CAAAA,CAAAA,CAAA4D,SAAA,CAAA,MAAA,CAAA,IAAA,EACVJ,CAAAA,CAAAA,CAAAA,CAAA,CAA3BC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAA0B3D,CAAA4D,CAAAA,SAAAA,CAAA,iBAAA,EACAJ,CAAAA,CAAAA,CAAAA,CAAA,CAA3CC,CAAAA,CAAS,CAAEC,IAAAA,CAAMI,QAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuB/D,EAAA4D,SAAA,CAAA,QAAA,CAAA,IAAA,IACnBJ,CAAA,CAAA,CAAvCC,CAAS,CAAA,CAACC,IAAKI,CAAAA,OAAAA,CAASC,SAAQ,CAAwB/D,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA4D,SAAA,CAAA,UAAA,CAAA,IAAA,EAT9C5D,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAcC,GAAAuD,CAAA,CAAA,CAD1BQ,CAAc,CAAA,kBAAA,CAAA,CAAA,CACFhE"}
1
+ {"version":3,"file":"nile-filter-chip.cjs.js","sources":["../../../src/nile-filter-chip/nile-filter-chip.ts"],"sourcesContent":["import { LitElement, html, css, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport NileElement from '../internal/nile-element';\nimport { styles } from './nile-filter-chip.css';\n\n/**\n * Nile filter-chip component.\n *\n * @tag nile-filter-chip\n */\n@customElement('nile-filter-chip')\nexport class NileFilterChip extends NileElement {\n @property({ type: String }) label = '';\n @property({ type: String }) value = '';\n @property({ type: Number }) viewMoreCount: number = 0;\n @property({ type: Boolean }) editable = false;\n @property({ type: Boolean }) closable = false;\n @property({ type: String }) icon = '';\n @property({ type: String }) removeIcon = '';\n @property({ type: Boolean, reflect: true }) active = false;\n @property({type:Boolean, reflect:true}) disabled = false;\n\n\n private static activeChips: NileFilterChip[] = [];\n\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n connectedCallback() {\n super.connectedCallback();\n this.registerChip();\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.unregisterChip();\n }\n\n private registerChip() {\n NileFilterChip.activeChips.push(this);\n }\n\n private unregisterChip() {\n NileFilterChip.activeChips = NileFilterChip.activeChips.filter(\n (chip) => chip !== this\n );\n }\n\n private handleClose(event: Event) {\n event.stopPropagation();\n this.dispatchEvent(\n new CustomEvent('nile-close', { detail: { value: this.value, viewMoreCount: this.viewMoreCount } })\n );\n this.remove();\n }\n\n private handleClick() {\n if (this.disabled) return;\n this.dispatchEvent(\n new CustomEvent('nile-click', { detail: { value: this.value, viewMoreCount: this.viewMoreCount } })\n );\n }\n\n private getLabelSlot(): TemplateResult {\n return html`\n <span class=\"label-wrapper\">\n <slot name=\"label\">\n <span class=\"label\" part=\"label\">${this.label}:</span>\n </slot>\n </span>\n\n `;\n }\n\n private getValueSlot(): TemplateResult {\n return html`\n <span class=\"value-wrapper\">\n <slot name=\"value\">\n <span class=\"value\" part=\"value\">${this.value}</span>\n </slot>\n </span>\n\n `;\n }\n\n private getviewMoreCountSlot(): TemplateResult {\n return html`\n <slot name=\"suffix\">\n ${this.viewMoreCount\n ? html`\n <span class=\"badge-wrapper\">\n <nile-badge class=\"badge\" part=\"badge\" variant=\"primary\" pilltype=\"pill-color\" exportparts=\"content, base\">\n +${this.viewMoreCount}\n </nile-badge>\n </span>\n\n `\n : html``}\n </slot>\n `;\n }\n\n private getCloseIconSlot(): TemplateResult {\n return html`\n ${this.closable\n ? html`\n <span class=\"close-icon\" @click=\"${this.handleClose}\">\n <nile-icon name=\"${this.removeIcon || 'var(--nile-icon-close, var(--ng-icon-x-close))'}\" size=\"12\" method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"></nile-icon>\n </span>\n `\n : html``}\n `;\n }\n\n public render(): TemplateResult {\n return html`\n <div class=\"chip\" @click=\"${this.handleClick}\">\n <slot name=\"icon\">\n ${this.icon ? html`<span class=\"icon\">${this.icon}</span>` : html``}\n </slot>\n ${this.getLabelSlot()}\n <slot name=\"content\"></slot>\n ${this.getValueSlot()}\n ${this.getviewMoreCountSlot()}\n ${this.getCloseIconSlot()}\n </div>\n `;\n }\n}\n\nexport default NileFilterChip;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-filter-chip': NileFilterChip;\n }\n}\n"],"names":["NileFilterChip","NileFilterChip_1","_l","n","this","label","value","viewMoreCount","editable","closable","icon","removeIcon","active","disabled","_this","_inherits","_createClass","key","connectedCallback","super","registerChip","disconnectedCallback","unregisterChip","activeChips","push","filter","chip","handleClose","event","stopPropagation","dispatchEvent","CustomEvent","detail","remove","handleClick","getLabelSlot","html","_templateObject","_taggedTemplateLiteral","getValueSlot","_templateObject2","getviewMoreCountSlot","_templateObject3","_templateObject4","_templateObject5","getCloseIconSlot","_templateObject6","_templateObject7","_templateObject8","render","_templateObject9","_templateObject10","_templateObject11","get","styles","NileElement","__decorate","property","type","String","prototype","Number","Boolean","reflect","customElement"],"mappings":"unIAWaA,CAAAA,CAAcC,EAApB,uBAAAC,EAAA,EAAA,SAAAC,EAAA,qEACuBC,EAAAA,KAAAA,CAAKC,KAAG,CAAA,EAAA,CACRD,KAAAA,CAAKE,KAAAA,CAAG,GACRF,KAAAA,CAAaG,aAAAA,CAAW,CACvBH,CAAAA,KAAAA,CAAQI,QAAG,CAAA,CAAA,CAAA,CACXJ,KAAAA,CAAQK,QAAAA,CAAAA,CAAG,CACZL,CAAAA,KAAAA,CAAIM,IAAG,CAAA,EAAA,CACPN,KAAAA,CAAUO,UAAAA,CAAG,EACGP,CAAAA,KAAAA,CAAMQ,QAAG,CACbR,CAAAA,KAAAA,CAAQS,QAAG,CAAA,CAAA,CA6GpD,QAAAC,KAAA,EAxGQC,SAAA,CAAAZ,CAAA,CAAAD,EAAA,SAAAc,YAAA,CAAAb,CAAA,GAAAc,GAAA,qBAAAX,KAAA,CAIP,SAAAY,iBAAAA,CAAAA,CAAAA,C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AAMC,MAAoB3D,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA4D,SAAA,CAAA,MAAA,CAAA,IAAA,EACVJ,CAAAA,CAAAA,CAAAA,CAAA,CAA3BC,CAAS,CAAA,CAAEC,IAAMC,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAA0B3D,CAAA4D,CAAAA,SAAAA,CAAA,iBAAA,EACAJ,CAAAA,CAAAA,CAAAA,CAAA,CAA3CC,CAAAA,CAAS,CAAEC,IAAAA,CAAMI,QAASC,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAuB/D,EAAA4D,SAAA,CAAA,QAAA,CAAA,IAAA,IACnBJ,CAAA,CAAA,CAAvCC,CAAS,CAAA,CAACC,IAAKI,CAAAA,OAAAA,CAASC,SAAQ,CAAwB/D,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA4D,SAAA,CAAA,UAAA,CAAA,IAAA,EAT9C5D,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAcC,GAAAuD,CAAA,CAAA,CAD1BQ,CAAc,CAAA,kBAAA,CAAA,CAAA,CACFhE"}
@@ -1,4 +1,4 @@
1
- import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as s,customElement as i}from"lit/decorators.js";import{N as l}from"../internal/nile-element.esm.js";import{s as a}from"./nile-filter-chip.css.esm.js";var o;let n=o=class extends l{constructor(){super(...arguments),this.label="",this.value="",this.viewMoreCount=0,this.editable=!1,this.closable=!1,this.icon="",this.removeIcon="",this.active=!1,this.disabled=!1}static get styles(){return[a]}connectedCallback(){super.connectedCallback(),this.registerChip()}disconnectedCallback(){super.disconnectedCallback(),this.unregisterChip()}registerChip(){o.activeChips.push(this)}unregisterChip(){o.activeChips=o.activeChips.filter((e=>e!==this))}handleClose(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("nile-close",{detail:{value:this.value,viewMoreCount:this.viewMoreCount}})),this.remove()}handleClick(){this.disabled||this.dispatchEvent(new CustomEvent("nile-click",{detail:{value:this.value,viewMoreCount:this.viewMoreCount}}))}getLabelSlot(){return t`
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as s,customElement as i}from"lit/decorators.js";import{N as l}from"../internal/nile-element.esm.js";import{s as a}from"./nile-filter-chip.css.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";var n;let o=n=class extends l{constructor(){super(...arguments),this.label="",this.value="",this.viewMoreCount=0,this.editable=!1,this.closable=!1,this.icon="",this.removeIcon="",this.active=!1,this.disabled=!1}static get styles(){return[a]}connectedCallback(){super.connectedCallback(),this.registerChip()}disconnectedCallback(){super.disconnectedCallback(),this.unregisterChip()}registerChip(){n.activeChips.push(this)}unregisterChip(){n.activeChips=n.activeChips.filter((e=>e!==this))}handleClose(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("nile-close",{detail:{value:this.value,viewMoreCount:this.viewMoreCount}})),this.remove()}handleClick(){this.disabled||this.dispatchEvent(new CustomEvent("nile-click",{detail:{value:this.value,viewMoreCount:this.viewMoreCount}}))}getLabelSlot(){return t`
2
2
  <span class="label-wrapper">
3
3
  <slot name="label">
4
4
  <span class="label" part="label">${this.label}:</span>
@@ -40,4 +40,4 @@ import{__decorate as e}from"tslib";import{html as t}from"lit";import{property as
40
40
  ${this.getviewMoreCountSlot()}
41
41
  ${this.getCloseIconSlot()}
42
42
  </div>
43
- `}};n.activeChips=[],e([s({type:String})],n.prototype,"label",void 0),e([s({type:String})],n.prototype,"value",void 0),e([s({type:Number})],n.prototype,"viewMoreCount",void 0),e([s({type:Boolean})],n.prototype,"editable",void 0),e([s({type:Boolean})],n.prototype,"closable",void 0),e([s({type:String})],n.prototype,"icon",void 0),e([s({type:String})],n.prototype,"removeIcon",void 0),e([s({type:Boolean,reflect:!0})],n.prototype,"active",void 0),e([s({type:Boolean,reflect:!0})],n.prototype,"disabled",void 0),n=o=e([i("nile-filter-chip")],n);export{n as N};
43
+ `}};o.activeChips=[],e([s({type:String})],o.prototype,"label",void 0),e([s({type:String})],o.prototype,"value",void 0),e([s({type:Number})],o.prototype,"viewMoreCount",void 0),e([s({type:Boolean})],o.prototype,"editable",void 0),e([s({type:Boolean})],o.prototype,"closable",void 0),e([s({type:String})],o.prototype,"icon",void 0),e([s({type:String})],o.prototype,"removeIcon",void 0),e([s({type:Boolean,reflect:!0})],o.prototype,"active",void 0),e([s({type:Boolean,reflect:!0})],o.prototype,"disabled",void 0),o=n=e([i("nile-filter-chip")],o);export{o as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-floating-panel.cjs.js","tslib","lit/decorators.js","./nile-floating-panel.css.cjs.js","lit","../internal/nile-element.cjs.js","../tippy.esm-78baa8f2.cjs.js","../nile-lite-tooltip/utils.cjs.js","../utilities/visibility-manager.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileFloatingPanelCjsJs){_export("NileFloatingPanel",_nileFloatingPanelCjsJs.N);},function(_tslib){},function(_litDecoratorsJs){},function(_nileFloatingPanelCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_tippyEsm005CjsJs){},function(_nileLiteTooltipUtilsCjsJs){},function(_utilitiesVisibilityManagerCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-floating-panel.cjs.js","tslib","lit/decorators.js","./nile-floating-panel.css.cjs.js","lit","../internal/nile-element.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js","../tippy.esm-78baa8f2.cjs.js","../nile-lite-tooltip/utils.cjs.js","../utilities/visibility-manager.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileFloatingPanelCjsJs){_export("NileFloatingPanel",_nileFloatingPanelCjsJs.N);},function(_tslib){},function(_litDecoratorsJs){},function(_nileFloatingPanelCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_tippyEsm005CjsJs){},function(_nileLiteTooltipUtilsCjsJs){},function(_utilitiesVisibilityManagerCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileFloatingPanel}from"./nile-floating-panel.esm.js";import"tslib";import"lit/decorators.js";import"./nile-floating-panel.css.esm.js";import"lit";import"../internal/nile-element.esm.js";import"../tippy.esm-57628c2b.esm.js";import"../nile-lite-tooltip/utils.esm.js";import"../utilities/visibility-manager.esm.js";
1
+ export{N as NileFloatingPanel}from"./nile-floating-panel.esm.js";import"tslib";import"lit/decorators.js";import"./nile-floating-panel.css.esm.js";import"lit";import"../internal/nile-element.esm.js";import"../internal/accessibility/a11y.state.enum.esm.js";import"../internal/accessibility/a11y.property.enum.esm.js";import"../internal/accessibility/role.enum.esm.js";import"../tippy.esm-57628c2b.esm.js";import"../nile-lite-tooltip/utils.esm.js";import"../utilities/visibility-manager.esm.js";
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit/decorators.js","./nile-floating-panel.css.cjs.js","../internal/nile-element.cjs.js","../tippy.esm-78baa8f2.cjs.js","../nile-lite-tooltip/utils.cjs.js","../utilities/visibility-manager.cjs.js","lit"],function(_export,_context){"use strict";var t,i,e,s,n,h,o,r,l,a,d,_c,p;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(_litDecoratorsJs){i=_litDecoratorsJs.property;e=_litDecoratorsJs.customElement;},function(_nileFloatingPanelCssCjsJs){s=_nileFloatingPanelCssCjsJs.s;},function(_internalNileElementCjsJs){n=_internalNileElementCjsJs.N;},function(_tippyEsm005CjsJs){h=_tippyEsm005CjsJs.R;o=_tippyEsm005CjsJs.f;r=_tippyEsm005CjsJs.t;},function(_nileLiteTooltipUtilsCjsJs){l=_nileLiteTooltipUtilsCjsJs.p;a=_nileLiteTooltipUtilsCjsJs.a;},function(_utilitiesVisibilityManagerCjsJs){d=_utilitiesVisibilityManagerCjsJs.V;},function(_lit){}],execute:function execute(){_export("N",p=_c=/*#__PURE__*/function(_n){function c(){var _this;_classCallCheck(this,c);_this=_callSuper(this,c,arguments),_this.placement="bottom",_this.trigger="click",_this.distance=12,_this.skidding=0,_this.arrow="round",_this.animation="fade",_this.duration=200,_this.delay=0,_this.interactive=!0,_this.interactiveBorder=2,_this.maxWidth="none",_this.zIndex=9999,_this.followCursor=!1,_this.hideOnClick=!0,_this.inertia=!1,_this.allowHTML=!1,_this.flip=!0,_this["for"]=null,_this.open=!1,_this.preventOverlayClose=!1,_this.title="",_this.disabled=!1,_this.group=null,_this.closeOnEscape=!0,_this.panelClass="",_this.enableVisibilityEffect=!1,_this.enableTabClose=!1,_this.tippyInstance=null,_this.panelContainer=null,_this.anchorEl=null,_this._suppressOpenWatch=!1,_this._panelId="nile-fp-".concat(Math.random().toString(36).slice(2,9)),_this._boundEscHandler=_this._handleEscapeKey.bind(_assertThisInitialized(_this)),_this._pendingShowListener=null,_this._pendingHideListener=null;return _this;}_inherits(c,_n);return _createClass(c,[{key:"createRenderRoot",value:function createRenderRoot(){return this;}},{key:"firstUpdated",value:function firstUpdated(){var _this2=this;this._buildDOM(),this._attachTippy(),this._joinGroup(),this.visibilityManager=new d({host:this,target:this.anchorEl||null,enableVisibilityEffect:this.enableVisibilityEffect,enableTabClose:this.enableTabClose,isOpen:function isOpen(){return _this2.open;},onAnchorOutOfView:function onAnchorOutOfView(){var _this2$tippyInstance;_this2._setOpen(!1),(_this2$tippyInstance=_this2.tippyInstance)!==null&&_this2$tippyInstance!==void 0&&_this2$tippyInstance.hide(),_this2.emit("nile-visibility-change",{visible:!1,reason:"anchor-out-of-view"});},onDocumentHidden:function onDocumentHidden(){var _this2$tippyInstance2;_this2._setOpen(!1),(_this2$tippyInstance2=_this2.tippyInstance)!==null&&_this2$tippyInstance2!==void 0&&_this2$tippyInstance2.hide(),_this2.emit("nile-visibility-change",{visible:!1,reason:"document-hidden"});},emit:function emit(t,i){return _this2.emit("nile-".concat(t),i);}}),this.emit("nile-init");}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$visibilityManag;_superPropGet(c,"disconnectedCallback",this,3)([]),this._cleanupPendingShowListener(),this._cleanupPendingHideListener(),(_this$visibilityManag=this.visibilityManager)!==null&&_this$visibilityManag!==void 0&&_this$visibilityManag.cleanup(),this._leaveGroup(),this._removeEscListener(),this._destroyTippy(),this.emit("nile-destroy");}},{key:"updated",value:function updated(t){var _this$visibilityManag2,_this3=this,_this$visibilityManag3,_this$tippyInstance;if(_superPropGet(c,"updated",this,3)([t]),!this.panelContainer)return;t.has("open")&&!this._suppressOpenWatch&&(this.open?((_this$visibilityManag2=this.visibilityManager)!==null&&_this$visibilityManag2!==void 0&&_this$visibilityManag2.setup(),queueMicrotask(function(){var _this3$tippyInstance;return(_this3$tippyInstance=_this3.tippyInstance)===null||_this3$tippyInstance===void 0?void 0:_this3$tippyInstance.show();})):((_this$visibilityManag3=this.visibilityManager)!==null&&_this$visibilityManag3!==void 0&&_this$visibilityManag3.cleanup(),(_this$tippyInstance=this.tippyInstance)===null||_this$tippyInstance===void 0?void 0:_this$tippyInstance.hide())),t.has("group")&&(this._leaveGroup(t.get("group")),this._joinGroup());["placement","trigger","distance","skidding","arrow","animation","duration","delay","interactive","interactiveBorder","maxWidth","zIndex","followCursor","hideOnClick","inertia","allowHTML","flip","preventOverlayClose","disabled","width","height","panelClass"].some(function(i){return t.has(i);})&&this._attachTippy();}},{key:"show",value:function show(){var _this4=this;return this.open=!0,new Promise(function(t){_this4._cleanupPendingShowListener();var i=function i(){_this4._pendingShowListener=null,t();};_this4._pendingShowListener=i,_this4.addEventListener("nile-after-show",i,{once:!0});});}},{key:"hide",value:function hide(){var _this5=this;return this.open=!1,new Promise(function(t){_this5._cleanupPendingHideListener();var i=function i(){_this5._pendingHideListener=null,t();};_this5._pendingHideListener=i,_this5.addEventListener("nile-after-hide",i,{once:!0});});}},{key:"_cleanupPendingShowListener",value:function _cleanupPendingShowListener(){this._pendingShowListener&&(this.removeEventListener("nile-after-show",this._pendingShowListener),this._pendingShowListener=null);}},{key:"_cleanupPendingHideListener",value:function _cleanupPendingHideListener(){this._pendingHideListener&&(this.removeEventListener("nile-after-hide",this._pendingHideListener),this._pendingHideListener=null);}},{key:"toggle",value:function toggle(){this.open=!this.open;}},{key:"refresh",value:function refresh(){this._attachTippy();}},{key:"getCurrentPlacement",value:function getCurrentPlacement(){var _this$tippyInstance2,_i$dataset$placement;var t=(_this$tippyInstance2=this.tippyInstance)===null||_this$tippyInstance2===void 0?void 0:_this$tippyInstance2.popper,i=t===null||t===void 0?void 0:t.querySelector(".tippy-box");return(_i$dataset$placement=i===null||i===void 0?void 0:i.dataset.placement)!==null&&_i$dataset$placement!==void 0?_i$dataset$placement:this.placement;}},{key:"isPositioningOptimal",value:function isPositioningOptimal(){return this.getCurrentPlacement()===this.placement;}},{key:"_joinGroup",value:function _joinGroup(){if(!this.group)return;var t=_c._groups.get(this.group);t||(t=new Set(),_c._groups.set(this.group,t)),t.add(this);}},{key:"_leaveGroup",value:function _leaveGroup(t){var i=t!==null&&t!==void 0?t:this.group;if(!i)return;var e=_c._groups.get(i);e&&(e["delete"](this),0===e.size&&_c._groups["delete"](i));}},{key:"_hideGroupSiblings",value:function _hideGroupSiblings(){var _this6=this;if(!this.group)return;var t=_c._groups.get(this.group);t&&t.forEach(function(t){var _t$tippyInstance;t!==_this6&&t.open&&(t._setOpen(!1),(_t$tippyInstance=t.tippyInstance)===null||_t$tippyInstance===void 0?void 0:_t$tippyInstance.hide());});}},{key:"_addEscListener",value:function _addEscListener(){this.closeOnEscape&&document.addEventListener("keydown",this._boundEscHandler);}},{key:"_removeEscListener",value:function _removeEscListener(){document.removeEventListener("keydown",this._boundEscHandler);}},{key:"_handleEscapeKey",value:function _handleEscapeKey(t){var _this$tippyInstance3;"Escape"===t.key&&this.open&&(this._setOpen(!1),(_this$tippyInstance3=this.tippyInstance)===null||_this$tippyInstance3===void 0?void 0:_this$tippyInstance3.hide());}},{key:"_applyAria",value:function _applyAria(){this.anchorEl&&this.panelContainer&&(this.panelContainer.setAttribute("role","dialog"),this.panelContainer.id=this._panelId,this.anchorEl.setAttribute("aria-haspopup","dialog"),this._syncAriaExpanded());}},{key:"_syncAriaExpanded",value:function _syncAriaExpanded(){var _this$anchorEl,_this$anchorEl2,_this$anchorEl3;(_this$anchorEl=this.anchorEl)!==null&&_this$anchorEl!==void 0&&_this$anchorEl.setAttribute("aria-expanded",String(this.open)),this.open?(_this$anchorEl2=this.anchorEl)===null||_this$anchorEl2===void 0?void 0:_this$anchorEl2.setAttribute("aria-describedby",this._panelId):(_this$anchorEl3=this.anchorEl)===null||_this$anchorEl3===void 0?void 0:_this$anchorEl3.removeAttribute("aria-describedby");}},{key:"_buildDOM",value:function _buildDOM(){var t=Array.from(this.childNodes);this.anchorEl=null;var i=[],e=[],s=[];var n=!1;for(var _i=0,_t=t;_i<_t.length;_i++){var _h=_t[_i];if(_h instanceof HTMLElement){var _t2=_h.getAttribute("slot");if("title"===_t2){_h.removeAttribute("slot"),i.push(_h);continue;}if("action"===_t2){_h.removeAttribute("slot"),e.push(_h);continue;}if(!n&&!this["for"]){this.anchorEl=_h,n=!0;continue;}}s.push(_h);}if(this["for"]){var _t3=document.getElementById(this["for"]);_t3&&(this.anchorEl=_t3);}for(;this.firstChild;)this.removeChild(this.firstChild);this.anchorEl&&!this["for"]&&this.appendChild(this.anchorEl),this.panelContainer=document.createElement("div"),this.panelContainer.className="nile-floating-panel__content",this.panelContainer.style.display="none";var h=document.createElement("div");if(h.className="nile-floating-panel__body",i.length>0||this.title){var _t4=document.createElement("div");_t4.className="nile-floating-panel__title",this.title?_t4.textContent=this.title:i.forEach(function(i){return _t4.appendChild(i);}),h.appendChild(_t4);}if(s.length>0){var _t5=document.createElement("div");_t5.className="nile-floating-panel__main",s.forEach(function(i){return _t5.appendChild(i);}),h.appendChild(_t5);}if(e.length>0){var _t6=document.createElement("div");_t6.className="nile-floating-panel__action",e.forEach(function(i){return _t6.appendChild(i);}),h.appendChild(_t6);}this.panelContainer.appendChild(h),this.appendChild(this.panelContainer),this._applyAria();}},{key:"_resolveArrow",value:function _resolveArrow(){switch(this.arrow){case"round":return h;case"none":return!1;default:return!0;}}},{key:"_setOpen",value:function _setOpen(t){this._suppressOpenWatch=!0,this.open=t,this._syncAriaExpanded(),this._suppressOpenWatch=!1;}},{key:"_getEffectiveDuration",value:function _getEffectiveDuration(){return _c.prefersReducedMotion?0:l(this.duration);}},{key:"_getEffectiveAnimation",value:function _getEffectiveAnimation(){return!_c.prefersReducedMotion&&this.animation;}},{key:"_attachTippy",value:function _attachTippy(){var _this7=this;if(this._destroyTippy(),this.disabled||!this.anchorEl||!this.panelContainer)return;var t=a(this.followCursor),i=!this.preventOverlayClose&&this.hideOnClick,e={content:this.panelContainer,placement:this.placement,trigger:this.trigger,offset:[this.skidding,this.distance],theme:"floating-panel",animation:this._getEffectiveAnimation(),interactive:this.interactive,arrow:this._resolveArrow(),duration:this._getEffectiveDuration(),allowHTML:this.allowHTML,delay:this.delay,maxWidth:this.maxWidth,zIndex:this.zIndex,hideOnClick:i,inertia:!_c.prefersReducedMotion&&this.inertia,interactiveBorder:this.interactiveBorder,appendTo:document.body,followCursor:t,plugins:t?[o]:[],popperOptions:{modifiers:[{name:"flip",enabled:this.flip}]},onMount:function onMount(t){_this7.panelContainer&&(_this7.panelContainer.style.display=""),_this7.panelClass&&_this7.panelClass.split(/\s+/).filter(Boolean).forEach(function(i){t.popper.classList.add(i);});},onShow:function onShow(t){_this7.panelContainer&&(_this7.panelContainer.style.display="");var i=t.popper.querySelector(".tippy-content");i&&(_this7.width&&(i.style.width=_this7.width),_this7.height&&(i.style.height=_this7.height,i.style.overflow="auto")),_this7._hideGroupSiblings(),_this7._setOpen(!0),_this7._addEscListener(),_this7.dispatchEvent(new CustomEvent("nile-show",{detail:{instance:t,target:t.reference}})),_this7.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!0,instance:t,target:t.reference}}));},onShown:function onShown(t){_this7.dispatchEvent(new CustomEvent("nile-after-show",{detail:{instance:t,target:t.reference}}));},onHide:function onHide(t){_this7._setOpen(!1),_this7._removeEscListener(),_this7.dispatchEvent(new CustomEvent("nile-hide",{detail:{instance:t,target:t.reference}})),_this7.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!1,instance:t,target:t.reference}}));},onHidden:function onHidden(t){_this7.panelContainer&&(_this7.panelContainer.style.display="none"),_this7.dispatchEvent(new CustomEvent("nile-after-hide",{detail:{instance:t,target:t.reference}}));}};this.tippyInstance=r(this.anchorEl,e),this.open&&queueMicrotask(function(){var _this7$tippyInstance;return(_this7$tippyInstance=_this7.tippyInstance)===null||_this7$tippyInstance===void 0?void 0:_this7$tippyInstance.show();});}},{key:"_destroyTippy",value:function _destroyTippy(){this.tippyInstance&&(this.tippyInstance.destroy(),this.tippyInstance=null),this.panelContainer&&(this.panelContainer.style.display="none",this.panelContainer.parentElement!==this&&this.appendChild(this.panelContainer));}}],[{key:"prefersReducedMotion",get:function get(){return _c._reducedMotionQuery||(_c._reducedMotionQuery=window.matchMedia("(prefers-reduced-motion: reduce)")),_c._reducedMotionQuery.matches;}},{key:"styles",get:function get(){return[s];}}]);}(n));p._groups=new Map(),p._reducedMotionQuery=null,t([i({type:String})],p.prototype,"placement",void 0),t([i({type:String})],p.prototype,"trigger",void 0),t([i({type:Number})],p.prototype,"distance",void 0),t([i({type:Number})],p.prototype,"skidding",void 0),t([i({type:String,reflect:!0})],p.prototype,"arrow",void 0),t([i({type:String,reflect:!0})],p.prototype,"animation",void 0),t([i({type:String,reflect:!0})],p.prototype,"duration",void 0),t([i({type:String,reflect:!0})],p.prototype,"delay",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"interactive",void 0),t([i({type:Number,reflect:!0})],p.prototype,"interactiveBorder",void 0),t([i({type:String,reflect:!0})],p.prototype,"maxWidth",void 0),t([i({type:Number,reflect:!0})],p.prototype,"zIndex",void 0),t([i({type:String,reflect:!0})],p.prototype,"followCursor",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"hideOnClick",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"inertia",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"allowHTML",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"flip",void 0),t([i({type:String,attribute:"for"})],p.prototype,"for",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"open",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"preventOverlayClose",void 0),t([i({type:String,reflect:!0})],p.prototype,"title",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"disabled",void 0),t([i({type:String,reflect:!0})],p.prototype,"width",void 0),t([i({type:String,reflect:!0})],p.prototype,"height",void 0),t([i({type:String,reflect:!0})],p.prototype,"group",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"closeOnEscape",void 0),t([i({type:String,reflect:!0,attribute:!0})],p.prototype,"panelClass",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"enableVisibilityEffect",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"enableTabClose",void 0),_export("N",p=_c=t([e("nile-floating-panel")],p));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit/decorators.js","./nile-floating-panel.css.cjs.js","../internal/nile-element.cjs.js","../tippy.esm-78baa8f2.cjs.js","../nile-lite-tooltip/utils.cjs.js","../utilities/visibility-manager.cjs.js","lit","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var t,i,e,s,n,h,o,r,l,a,c,_d,p;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(_litDecoratorsJs){i=_litDecoratorsJs.property;e=_litDecoratorsJs.customElement;},function(_nileFloatingPanelCssCjsJs){s=_nileFloatingPanelCssCjsJs.s;},function(_internalNileElementCjsJs){n=_internalNileElementCjsJs.N;},function(_tippyEsm005CjsJs){h=_tippyEsm005CjsJs.R;o=_tippyEsm005CjsJs.f;r=_tippyEsm005CjsJs.t;},function(_nileLiteTooltipUtilsCjsJs){l=_nileLiteTooltipUtilsCjsJs.p;a=_nileLiteTooltipUtilsCjsJs.a;},function(_utilitiesVisibilityManagerCjsJs){c=_utilitiesVisibilityManagerCjsJs.V;},function(_lit){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",p=_d=/*#__PURE__*/function(_n){function d(){var _this;_classCallCheck(this,d);_this=_callSuper(this,d,arguments),_this.placement="bottom",_this.trigger="click",_this.distance=12,_this.skidding=0,_this.arrow="round",_this.animation="fade",_this.duration=200,_this.delay=0,_this.interactive=!0,_this.interactiveBorder=2,_this.maxWidth="none",_this.zIndex=9999,_this.followCursor=!1,_this.hideOnClick=!0,_this.inertia=!1,_this.allowHTML=!1,_this.flip=!0,_this["for"]=null,_this.open=!1,_this.preventOverlayClose=!1,_this.title="",_this.disabled=!1,_this.group=null,_this.closeOnEscape=!0,_this.panelClass="",_this.enableVisibilityEffect=!1,_this.enableTabClose=!1,_this.tippyInstance=null,_this.panelContainer=null,_this.anchorEl=null,_this._suppressOpenWatch=!1,_this._panelId="nile-fp-".concat(Math.random().toString(36).slice(2,9)),_this._boundEscHandler=_this._handleEscapeKey.bind(_assertThisInitialized(_this)),_this._pendingShowListener=null,_this._pendingHideListener=null;return _this;}_inherits(d,_n);return _createClass(d,[{key:"createRenderRoot",value:function createRenderRoot(){return this;}},{key:"firstUpdated",value:function firstUpdated(){var _this2=this;this._buildDOM(),this._attachTippy(),this._joinGroup(),this.visibilityManager=new c({host:this,target:this.anchorEl||null,enableVisibilityEffect:this.enableVisibilityEffect,enableTabClose:this.enableTabClose,isOpen:function isOpen(){return _this2.open;},onAnchorOutOfView:function onAnchorOutOfView(){var _this2$tippyInstance;_this2._setOpen(!1),(_this2$tippyInstance=_this2.tippyInstance)!==null&&_this2$tippyInstance!==void 0&&_this2$tippyInstance.hide(),_this2.emit("nile-visibility-change",{visible:!1,reason:"anchor-out-of-view"});},onDocumentHidden:function onDocumentHidden(){var _this2$tippyInstance2;_this2._setOpen(!1),(_this2$tippyInstance2=_this2.tippyInstance)!==null&&_this2$tippyInstance2!==void 0&&_this2$tippyInstance2.hide(),_this2.emit("nile-visibility-change",{visible:!1,reason:"document-hidden"});},emit:function emit(t,i){return _this2.emit("nile-".concat(t),i);}}),this.emit("nile-init");}},{key:"disconnectedCallback",value:function disconnectedCallback(){var _this$visibilityManag;_superPropGet(d,"disconnectedCallback",this,3)([]),this._cleanupPendingShowListener(),this._cleanupPendingHideListener(),(_this$visibilityManag=this.visibilityManager)!==null&&_this$visibilityManag!==void 0&&_this$visibilityManag.cleanup(),this._leaveGroup(),this._removeEscListener(),this._destroyTippy(),this.emit("nile-destroy");}},{key:"updated",value:function updated(t){var _this$visibilityManag2,_this3=this,_this$visibilityManag3,_this$tippyInstance;if(_superPropGet(d,"updated",this,3)([t]),!this.panelContainer)return;t.has("open")&&!this._suppressOpenWatch&&(this.open?((_this$visibilityManag2=this.visibilityManager)!==null&&_this$visibilityManag2!==void 0&&_this$visibilityManag2.setup(),queueMicrotask(function(){var _this3$tippyInstance;return(_this3$tippyInstance=_this3.tippyInstance)===null||_this3$tippyInstance===void 0?void 0:_this3$tippyInstance.show();})):((_this$visibilityManag3=this.visibilityManager)!==null&&_this$visibilityManag3!==void 0&&_this$visibilityManag3.cleanup(),(_this$tippyInstance=this.tippyInstance)===null||_this$tippyInstance===void 0?void 0:_this$tippyInstance.hide())),t.has("group")&&(this._leaveGroup(t.get("group")),this._joinGroup());["placement","trigger","distance","skidding","arrow","animation","duration","delay","interactive","interactiveBorder","maxWidth","zIndex","followCursor","hideOnClick","inertia","allowHTML","flip","preventOverlayClose","disabled","width","height","panelClass"].some(function(i){return t.has(i);})&&this._attachTippy();}},{key:"show",value:function show(){var _this4=this;return this.open=!0,new Promise(function(t){_this4._cleanupPendingShowListener();var i=function i(){_this4._pendingShowListener=null,t();};_this4._pendingShowListener=i,_this4.addEventListener("nile-after-show",i,{once:!0});});}},{key:"hide",value:function hide(){var _this5=this;return this.open=!1,new Promise(function(t){_this5._cleanupPendingHideListener();var i=function i(){_this5._pendingHideListener=null,t();};_this5._pendingHideListener=i,_this5.addEventListener("nile-after-hide",i,{once:!0});});}},{key:"_cleanupPendingShowListener",value:function _cleanupPendingShowListener(){this._pendingShowListener&&(this.removeEventListener("nile-after-show",this._pendingShowListener),this._pendingShowListener=null);}},{key:"_cleanupPendingHideListener",value:function _cleanupPendingHideListener(){this._pendingHideListener&&(this.removeEventListener("nile-after-hide",this._pendingHideListener),this._pendingHideListener=null);}},{key:"toggle",value:function toggle(){this.open=!this.open;}},{key:"refresh",value:function refresh(){this._attachTippy();}},{key:"getCurrentPlacement",value:function getCurrentPlacement(){var _this$tippyInstance2,_i$dataset$placement;var t=(_this$tippyInstance2=this.tippyInstance)===null||_this$tippyInstance2===void 0?void 0:_this$tippyInstance2.popper,i=t===null||t===void 0?void 0:t.querySelector(".tippy-box");return(_i$dataset$placement=i===null||i===void 0?void 0:i.dataset.placement)!==null&&_i$dataset$placement!==void 0?_i$dataset$placement:this.placement;}},{key:"isPositioningOptimal",value:function isPositioningOptimal(){return this.getCurrentPlacement()===this.placement;}},{key:"_joinGroup",value:function _joinGroup(){if(!this.group)return;var t=_d._groups.get(this.group);t||(t=new Set(),_d._groups.set(this.group,t)),t.add(this);}},{key:"_leaveGroup",value:function _leaveGroup(t){var i=t!==null&&t!==void 0?t:this.group;if(!i)return;var e=_d._groups.get(i);e&&(e["delete"](this),0===e.size&&_d._groups["delete"](i));}},{key:"_hideGroupSiblings",value:function _hideGroupSiblings(){var _this6=this;if(!this.group)return;var t=_d._groups.get(this.group);t&&t.forEach(function(t){var _t$tippyInstance;t!==_this6&&t.open&&(t._setOpen(!1),(_t$tippyInstance=t.tippyInstance)===null||_t$tippyInstance===void 0?void 0:_t$tippyInstance.hide());});}},{key:"_addEscListener",value:function _addEscListener(){this.closeOnEscape&&document.addEventListener("keydown",this._boundEscHandler);}},{key:"_removeEscListener",value:function _removeEscListener(){document.removeEventListener("keydown",this._boundEscHandler);}},{key:"_handleEscapeKey",value:function _handleEscapeKey(t){var _this$tippyInstance3;"Escape"===t.key&&this.open&&(this._setOpen(!1),(_this$tippyInstance3=this.tippyInstance)===null||_this$tippyInstance3===void 0?void 0:_this$tippyInstance3.hide());}},{key:"_applyAria",value:function _applyAria(){this.anchorEl&&this.panelContainer&&(this.panelContainer.setAttribute("role","dialog"),this.panelContainer.id=this._panelId,this.anchorEl.setAttribute("aria-haspopup","dialog"),this._syncAriaExpanded());}},{key:"_syncAriaExpanded",value:function _syncAriaExpanded(){var _this$anchorEl,_this$anchorEl2,_this$anchorEl3;(_this$anchorEl=this.anchorEl)!==null&&_this$anchorEl!==void 0&&_this$anchorEl.setAttribute("aria-expanded",String(this.open)),this.open?(_this$anchorEl2=this.anchorEl)===null||_this$anchorEl2===void 0?void 0:_this$anchorEl2.setAttribute("aria-describedby",this._panelId):(_this$anchorEl3=this.anchorEl)===null||_this$anchorEl3===void 0?void 0:_this$anchorEl3.removeAttribute("aria-describedby");}},{key:"_buildDOM",value:function _buildDOM(){var t=Array.from(this.childNodes);this.anchorEl=null;var i=[],e=[],s=[];var n=!1;for(var _i=0,_t=t;_i<_t.length;_i++){var _h=_t[_i];if(_h instanceof HTMLElement){var _t2=_h.getAttribute("slot");if("title"===_t2){_h.removeAttribute("slot"),i.push(_h);continue;}if("action"===_t2){_h.removeAttribute("slot"),e.push(_h);continue;}if(!n&&!this["for"]){this.anchorEl=_h,n=!0;continue;}}s.push(_h);}if(this["for"]){var _t3=document.getElementById(this["for"]);_t3&&(this.anchorEl=_t3);}for(;this.firstChild;)this.removeChild(this.firstChild);this.anchorEl&&!this["for"]&&this.appendChild(this.anchorEl),this.panelContainer=document.createElement("div"),this.panelContainer.className="nile-floating-panel__content",this.panelContainer.style.display="none";var h=document.createElement("div");if(h.className="nile-floating-panel__body",i.length>0||this.title){var _t4=document.createElement("div");_t4.className="nile-floating-panel__title",this.title?_t4.textContent=this.title:i.forEach(function(i){return _t4.appendChild(i);}),h.appendChild(_t4);}if(s.length>0){var _t5=document.createElement("div");_t5.className="nile-floating-panel__main",s.forEach(function(i){return _t5.appendChild(i);}),h.appendChild(_t5);}if(e.length>0){var _t6=document.createElement("div");_t6.className="nile-floating-panel__action",e.forEach(function(i){return _t6.appendChild(i);}),h.appendChild(_t6);}this.panelContainer.appendChild(h),this.appendChild(this.panelContainer),this._applyAria();}},{key:"_resolveArrow",value:function _resolveArrow(){switch(this.arrow){case"round":return h;case"none":return!1;default:return!0;}}},{key:"_setOpen",value:function _setOpen(t){this._suppressOpenWatch=!0,this.open=t,this._syncAriaExpanded(),this._suppressOpenWatch=!1;}},{key:"_getEffectiveDuration",value:function _getEffectiveDuration(){return _d.prefersReducedMotion?0:l(this.duration);}},{key:"_getEffectiveAnimation",value:function _getEffectiveAnimation(){return!_d.prefersReducedMotion&&this.animation;}},{key:"_attachTippy",value:function _attachTippy(){var _this7=this;if(this._destroyTippy(),this.disabled||!this.anchorEl||!this.panelContainer)return;var t=a(this.followCursor),i=!this.preventOverlayClose&&this.hideOnClick,e={content:this.panelContainer,placement:this.placement,trigger:this.trigger,offset:[this.skidding,this.distance],theme:"floating-panel",animation:this._getEffectiveAnimation(),interactive:this.interactive,arrow:this._resolveArrow(),duration:this._getEffectiveDuration(),allowHTML:this.allowHTML,delay:this.delay,maxWidth:this.maxWidth,zIndex:this.zIndex,hideOnClick:i,inertia:!_d.prefersReducedMotion&&this.inertia,interactiveBorder:this.interactiveBorder,appendTo:document.body,followCursor:t,plugins:t?[o]:[],popperOptions:{modifiers:[{name:"flip",enabled:this.flip}]},onMount:function onMount(t){_this7.panelContainer&&(_this7.panelContainer.style.display=""),_this7.panelClass&&_this7.panelClass.split(/\s+/).filter(Boolean).forEach(function(i){t.popper.classList.add(i);});},onShow:function onShow(t){_this7.panelContainer&&(_this7.panelContainer.style.display="");var i=t.popper.querySelector(".tippy-content");i&&(_this7.width&&(i.style.width=_this7.width),_this7.height&&(i.style.height=_this7.height,i.style.overflow="auto")),_this7._hideGroupSiblings(),_this7._setOpen(!0),_this7._addEscListener(),_this7.dispatchEvent(new CustomEvent("nile-show",{detail:{instance:t,target:t.reference}})),_this7.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!0,instance:t,target:t.reference}}));},onShown:function onShown(t){_this7.dispatchEvent(new CustomEvent("nile-after-show",{detail:{instance:t,target:t.reference}}));},onHide:function onHide(t){_this7._setOpen(!1),_this7._removeEscListener(),_this7.dispatchEvent(new CustomEvent("nile-hide",{detail:{instance:t,target:t.reference}})),_this7.dispatchEvent(new CustomEvent("nile-toggle",{detail:{open:!1,instance:t,target:t.reference}}));},onHidden:function onHidden(t){_this7.panelContainer&&(_this7.panelContainer.style.display="none"),_this7.dispatchEvent(new CustomEvent("nile-after-hide",{detail:{instance:t,target:t.reference}}));}};this.tippyInstance=r(this.anchorEl,e),this.open&&queueMicrotask(function(){var _this7$tippyInstance;return(_this7$tippyInstance=_this7.tippyInstance)===null||_this7$tippyInstance===void 0?void 0:_this7$tippyInstance.show();});}},{key:"_destroyTippy",value:function _destroyTippy(){this.tippyInstance&&(this.tippyInstance.destroy(),this.tippyInstance=null),this.panelContainer&&(this.panelContainer.style.display="none",this.panelContainer.parentElement!==this&&this.appendChild(this.panelContainer));}}],[{key:"prefersReducedMotion",get:function get(){return _d._reducedMotionQuery||(_d._reducedMotionQuery=window.matchMedia("(prefers-reduced-motion: reduce)")),_d._reducedMotionQuery.matches;}},{key:"styles",get:function get(){return[s];}}]);}(n));p._groups=new Map(),p._reducedMotionQuery=null,t([i({type:String})],p.prototype,"placement",void 0),t([i({type:String})],p.prototype,"trigger",void 0),t([i({type:Number})],p.prototype,"distance",void 0),t([i({type:Number})],p.prototype,"skidding",void 0),t([i({type:String,reflect:!0})],p.prototype,"arrow",void 0),t([i({type:String,reflect:!0})],p.prototype,"animation",void 0),t([i({type:String,reflect:!0})],p.prototype,"duration",void 0),t([i({type:String,reflect:!0})],p.prototype,"delay",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"interactive",void 0),t([i({type:Number,reflect:!0})],p.prototype,"interactiveBorder",void 0),t([i({type:String,reflect:!0})],p.prototype,"maxWidth",void 0),t([i({type:Number,reflect:!0})],p.prototype,"zIndex",void 0),t([i({type:String,reflect:!0})],p.prototype,"followCursor",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"hideOnClick",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"inertia",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"allowHTML",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"flip",void 0),t([i({type:String,attribute:"for"})],p.prototype,"for",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"open",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"preventOverlayClose",void 0),t([i({type:String,reflect:!0})],p.prototype,"title",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"disabled",void 0),t([i({type:String,reflect:!0})],p.prototype,"width",void 0),t([i({type:String,reflect:!0})],p.prototype,"height",void 0),t([i({type:String,reflect:!0})],p.prototype,"group",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"closeOnEscape",void 0),t([i({type:String,reflect:!0,attribute:!0})],p.prototype,"panelClass",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"enableVisibilityEffect",void 0),t([i({type:Boolean,reflect:!0})],p.prototype,"enableTabClose",void 0),_export("N",p=_d=t([e("nile-floating-panel")],p));}};});
2
2
  //# sourceMappingURL=nile-floating-panel.cjs.js.map