@aquera/nile-elements 1.6.2 → 1.6.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (747) hide show
  1. package/README.md +16 -0
  2. package/demo/variables.css +1 -0
  3. package/dist/index.cjs.js +1 -1
  4. package/dist/index.esm.js +1 -1
  5. package/dist/index.js +527 -339
  6. package/dist/internal/accessibility/a11y.custom-value.enum.cjs.js +2 -0
  7. package/dist/internal/accessibility/a11y.custom-value.enum.cjs.js.map +1 -0
  8. package/dist/internal/accessibility/a11y.custom-value.enum.esm.js +1 -0
  9. package/dist/internal/accessibility/a11y.property.enum.cjs.js +2 -0
  10. package/dist/internal/accessibility/a11y.property.enum.cjs.js.map +1 -0
  11. package/dist/internal/accessibility/a11y.property.enum.esm.js +1 -0
  12. package/dist/internal/accessibility/a11y.role.enum.cjs.js +2 -0
  13. package/dist/internal/accessibility/a11y.role.enum.cjs.js.map +1 -0
  14. package/dist/internal/accessibility/a11y.role.enum.esm.js +1 -0
  15. package/dist/internal/accessibility/a11y.state.enum.cjs.js +2 -0
  16. package/dist/internal/accessibility/a11y.state.enum.cjs.js.map +1 -0
  17. package/dist/internal/accessibility/a11y.state.enum.esm.js +1 -0
  18. package/dist/internal/accessibility/accessibility.const.cjs.js +2 -0
  19. package/dist/internal/accessibility/accessibility.const.cjs.js.map +1 -0
  20. package/dist/internal/accessibility/accessibility.const.esm.js +1 -0
  21. package/dist/internal/accessibility/role.enum.cjs.js +2 -0
  22. package/dist/internal/accessibility/role.enum.cjs.js.map +1 -0
  23. package/dist/internal/accessibility/role.enum.esm.js +1 -0
  24. package/dist/internal/nile-element.cjs.js +1 -1
  25. package/dist/internal/nile-element.cjs.js.map +1 -1
  26. package/dist/internal/nile-element.esm.js +1 -1
  27. package/dist/nile-accordion/index.cjs.js +1 -1
  28. package/dist/nile-accordion/index.esm.js +1 -1
  29. package/dist/nile-accordion/nile-accordion.cjs.js +1 -1
  30. package/dist/nile-accordion/nile-accordion.cjs.js.map +1 -1
  31. package/dist/nile-accordion/nile-accordion.esm.js +2 -2
  32. package/dist/nile-auto-complete/index.cjs.js +1 -1
  33. package/dist/nile-auto-complete/index.esm.js +1 -1
  34. package/dist/nile-auto-complete/nile-auto-complete.cjs.js +1 -1
  35. package/dist/nile-auto-complete/nile-auto-complete.cjs.js.map +1 -1
  36. package/dist/nile-auto-complete/nile-auto-complete.esm.js +1 -1
  37. package/dist/nile-avatar/index.cjs.js +1 -1
  38. package/dist/nile-avatar/index.esm.js +1 -1
  39. package/dist/nile-avatar/nile-avatar.cjs.js +1 -1
  40. package/dist/nile-avatar/nile-avatar.cjs.js.map +1 -1
  41. package/dist/nile-avatar/nile-avatar.esm.js +3 -1
  42. package/dist/nile-badge/index.cjs.js +1 -1
  43. package/dist/nile-badge/index.esm.js +1 -1
  44. package/dist/nile-badge/nile-badge.cjs.js +1 -1
  45. package/dist/nile-badge/nile-badge.cjs.js.map +1 -1
  46. package/dist/nile-badge/nile-badge.esm.js +2 -2
  47. package/dist/nile-breadcrumb/index.cjs.js +1 -1
  48. package/dist/nile-breadcrumb/index.esm.js +1 -1
  49. package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js +1 -1
  50. package/dist/nile-breadcrumb/nile-breadcrumb.cjs.js.map +1 -1
  51. package/dist/nile-breadcrumb/nile-breadcrumb.esm.js +1 -1
  52. package/dist/nile-breadcrumb-item/index.cjs.js +1 -1
  53. package/dist/nile-breadcrumb-item/index.esm.js +1 -1
  54. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js +1 -1
  55. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.cjs.js.map +1 -1
  56. package/dist/nile-breadcrumb-item/nile-breadcrumb-item.esm.js +4 -4
  57. package/dist/nile-button/index.cjs.js +1 -1
  58. package/dist/nile-button/index.esm.js +1 -1
  59. package/dist/nile-button/nile-button.cjs.js +1 -1
  60. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  61. package/dist/nile-button/nile-button.css.cjs.js +1 -1
  62. package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
  63. package/dist/nile-button/nile-button.css.esm.js +5 -0
  64. package/dist/nile-button/nile-button.esm.js +1 -1
  65. package/dist/nile-button-filter/index.cjs.js +1 -1
  66. package/dist/nile-button-filter/index.esm.js +1 -1
  67. package/dist/nile-button-filter/nile-button-filter.cjs.js +1 -1
  68. package/dist/nile-button-filter/nile-button-filter.cjs.js.map +1 -1
  69. package/dist/nile-button-filter/nile-button-filter.esm.js +7 -7
  70. package/dist/nile-button-toggle/index.cjs.js +1 -1
  71. package/dist/nile-button-toggle/index.esm.js +1 -1
  72. package/dist/nile-button-toggle/nile-button-toggle.cjs.js +1 -1
  73. package/dist/nile-button-toggle/nile-button-toggle.cjs.js.map +1 -1
  74. package/dist/nile-button-toggle/nile-button-toggle.esm.js +2 -2
  75. package/dist/nile-button-toggle-group/index.cjs.js +1 -1
  76. package/dist/nile-button-toggle-group/index.esm.js +1 -1
  77. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js +1 -1
  78. package/dist/nile-button-toggle-group/nile-button-toggle-group.cjs.js.map +1 -1
  79. package/dist/nile-button-toggle-group/nile-button-toggle-group.esm.js +1 -1
  80. package/dist/nile-calendar/index.cjs.js +1 -1
  81. package/dist/nile-calendar/index.esm.js +1 -1
  82. package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
  83. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
  84. package/dist/nile-calendar/nile-calendar.esm.js +4 -4
  85. package/dist/nile-card/index.cjs.js +1 -1
  86. package/dist/nile-card/index.esm.js +1 -1
  87. package/dist/nile-card/nile-card.cjs.js +1 -1
  88. package/dist/nile-card/nile-card.cjs.js.map +1 -1
  89. package/dist/nile-card/nile-card.esm.js +2 -2
  90. package/dist/nile-carousel/index.cjs.js +1 -1
  91. package/dist/nile-carousel/index.esm.js +1 -1
  92. package/dist/nile-carousel/nile-carousel-item/index.cjs.js +1 -1
  93. package/dist/nile-carousel/nile-carousel-item/index.esm.js +1 -1
  94. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.cjs.js +1 -1
  95. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.cjs.js.map +1 -1
  96. package/dist/nile-carousel/nile-carousel-item/nile-carousel-item.esm.js +2 -2
  97. package/dist/nile-carousel/nile-carousel.cjs.js +1 -1
  98. package/dist/nile-carousel/nile-carousel.cjs.js.map +1 -1
  99. package/dist/nile-carousel/nile-carousel.esm.js +1 -1
  100. package/dist/nile-checkbox/index.cjs.js +1 -1
  101. package/dist/nile-checkbox/index.esm.js +1 -1
  102. package/dist/nile-checkbox/nile-checkbox.cjs.js +1 -1
  103. package/dist/nile-checkbox/nile-checkbox.cjs.js.map +1 -1
  104. package/dist/nile-checkbox/nile-checkbox.css.cjs.js +1 -1
  105. package/dist/nile-checkbox/nile-checkbox.css.cjs.js.map +1 -1
  106. package/dist/nile-checkbox/nile-checkbox.css.esm.js +4 -0
  107. package/dist/nile-checkbox/nile-checkbox.esm.js +3 -3
  108. package/dist/nile-checkbox-group/index.cjs.js +2 -0
  109. package/dist/nile-checkbox-group/index.cjs.js.map +1 -0
  110. package/dist/nile-checkbox-group/index.esm.js +1 -0
  111. package/dist/nile-checkbox-group/nile-checkbox-group.cjs.js +2 -0
  112. package/dist/nile-checkbox-group/nile-checkbox-group.cjs.js.map +1 -0
  113. package/dist/nile-checkbox-group/nile-checkbox-group.css.cjs.js +2 -0
  114. package/dist/nile-checkbox-group/nile-checkbox-group.css.cjs.js.map +1 -0
  115. package/dist/nile-checkbox-group/nile-checkbox-group.css.esm.js +68 -0
  116. package/dist/nile-checkbox-group/nile-checkbox-group.esm.js +56 -0
  117. package/dist/nile-chip/index.cjs.js +1 -1
  118. package/dist/nile-chip/index.esm.js +1 -1
  119. package/dist/nile-chip/nile-chip.cjs.js +1 -1
  120. package/dist/nile-chip/nile-chip.cjs.js.map +1 -1
  121. package/dist/nile-chip/nile-chip.esm.js +2 -2
  122. package/dist/nile-circular-progressbar/index.cjs.js +1 -1
  123. package/dist/nile-circular-progressbar/index.esm.js +1 -1
  124. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js +1 -1
  125. package/dist/nile-circular-progressbar/nile-circular-progressbar.cjs.js.map +1 -1
  126. package/dist/nile-circular-progressbar/nile-circular-progressbar.esm.js +2 -2
  127. package/dist/nile-code-editor/index.cjs.js +1 -1
  128. package/dist/nile-code-editor/index.esm.js +1 -1
  129. package/dist/nile-code-editor/nile-code-editor.cjs.js +2 -2
  130. package/dist/nile-code-editor/nile-code-editor.cjs.js.map +1 -1
  131. package/dist/nile-code-editor/nile-code-editor.esm.js +2 -2
  132. package/dist/nile-content-editor/index.cjs.js +1 -1
  133. package/dist/nile-content-editor/index.esm.js +1 -1
  134. package/dist/nile-content-editor/nile-content-editor.cjs.js +1 -1
  135. package/dist/nile-content-editor/nile-content-editor.cjs.js.map +1 -1
  136. package/dist/nile-content-editor/nile-content-editor.esm.js +5 -5
  137. package/dist/nile-date-picker/index.cjs.js +1 -1
  138. package/dist/nile-date-picker/index.esm.js +1 -1
  139. package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
  140. package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
  141. package/dist/nile-date-picker/nile-date-picker.esm.js +1 -1
  142. package/dist/nile-detail/index.cjs.js +1 -1
  143. package/dist/nile-detail/index.esm.js +1 -1
  144. package/dist/nile-detail/nile-detail.cjs.js +1 -1
  145. package/dist/nile-detail/nile-detail.cjs.js.map +1 -1
  146. package/dist/nile-detail/nile-detail.esm.js +2 -2
  147. package/dist/nile-dialog/index.cjs.js +1 -1
  148. package/dist/nile-dialog/index.esm.js +1 -1
  149. package/dist/nile-dialog/nile-dialog.cjs.js +1 -1
  150. package/dist/nile-dialog/nile-dialog.cjs.js.map +1 -1
  151. package/dist/nile-dialog/nile-dialog.esm.js +2 -2
  152. package/dist/nile-divider/index.cjs.js +1 -1
  153. package/dist/nile-divider/index.esm.js +1 -1
  154. package/dist/nile-divider/nile-divider.cjs.js +1 -1
  155. package/dist/nile-divider/nile-divider.cjs.js.map +1 -1
  156. package/dist/nile-divider/nile-divider.esm.js +2 -2
  157. package/dist/nile-drawer/index.cjs.js +1 -1
  158. package/dist/nile-drawer/index.esm.js +1 -1
  159. package/dist/nile-drawer/nile-drawer.cjs.js +1 -1
  160. package/dist/nile-drawer/nile-drawer.cjs.js.map +1 -1
  161. package/dist/nile-drawer/nile-drawer.esm.js +1 -1
  162. package/dist/nile-dropdown/index.cjs.js +1 -1
  163. package/dist/nile-dropdown/index.esm.js +1 -1
  164. package/dist/nile-dropdown/nile-dropdown.cjs.js +1 -1
  165. package/dist/nile-dropdown/nile-dropdown.cjs.js.map +1 -1
  166. package/dist/nile-dropdown/nile-dropdown.esm.js +1 -1
  167. package/dist/nile-empty-state/index.cjs.js +1 -1
  168. package/dist/nile-empty-state/index.esm.js +1 -1
  169. package/dist/nile-empty-state/nile-empty-state.cjs.js +1 -1
  170. package/dist/nile-empty-state/nile-empty-state.cjs.js.map +1 -1
  171. package/dist/nile-empty-state/nile-empty-state.esm.js +2 -2
  172. package/dist/nile-file-preview/index.cjs.js +1 -1
  173. package/dist/nile-file-preview/index.esm.js +1 -1
  174. package/dist/nile-file-preview/nile-file-preview.cjs.js +1 -1
  175. package/dist/nile-file-preview/nile-file-preview.cjs.js.map +1 -1
  176. package/dist/nile-file-preview/nile-file-preview.esm.js +1 -1
  177. package/dist/nile-file-upload/index.cjs.js +1 -1
  178. package/dist/nile-file-upload/index.esm.js +1 -1
  179. package/dist/nile-file-upload/nile-file-upload.cjs.js +1 -1
  180. package/dist/nile-file-upload/nile-file-upload.cjs.js.map +1 -1
  181. package/dist/nile-file-upload/nile-file-upload.esm.js +2 -2
  182. package/dist/nile-filter-chip/index.cjs.js +1 -1
  183. package/dist/nile-filter-chip/index.esm.js +1 -1
  184. package/dist/nile-filter-chip/nile-filter-chip.cjs.js +1 -1
  185. package/dist/nile-filter-chip/nile-filter-chip.cjs.js.map +1 -1
  186. package/dist/nile-filter-chip/nile-filter-chip.esm.js +2 -2
  187. package/dist/nile-floating-panel/index.cjs.js +1 -1
  188. package/dist/nile-floating-panel/index.esm.js +1 -1
  189. package/dist/nile-floating-panel/nile-floating-panel.cjs.js +1 -1
  190. package/dist/nile-floating-panel/nile-floating-panel.cjs.js.map +1 -1
  191. package/dist/nile-floating-panel/nile-floating-panel.esm.js +1 -1
  192. package/dist/nile-form-group/index.cjs.js +1 -1
  193. package/dist/nile-form-group/index.esm.js +1 -1
  194. package/dist/nile-form-group/nile-form-group.cjs.js +1 -1
  195. package/dist/nile-form-group/nile-form-group.cjs.js.map +1 -1
  196. package/dist/nile-form-group/nile-form-group.esm.js +2 -2
  197. package/dist/nile-format-date/index.cjs.js +1 -1
  198. package/dist/nile-format-date/index.esm.js +1 -1
  199. package/dist/nile-format-date/nile-format-date.cjs.js +1 -1
  200. package/dist/nile-format-date/nile-format-date.cjs.js.map +1 -1
  201. package/dist/nile-format-date/nile-format-date.esm.js +1 -1
  202. package/dist/nile-grid/index.cjs.js +1 -1
  203. package/dist/nile-grid/index.esm.js +1 -1
  204. package/dist/nile-grid/nile-grid-body/index.cjs.js +1 -1
  205. package/dist/nile-grid/nile-grid-body/index.esm.js +1 -1
  206. package/dist/nile-grid/nile-grid-body/nile-grid-body.cjs.js +1 -1
  207. package/dist/nile-grid/nile-grid-body/nile-grid-body.cjs.js.map +1 -1
  208. package/dist/nile-grid/nile-grid-body/nile-grid-body.esm.js +2 -2
  209. package/dist/nile-grid/nile-grid-cell-item/index.cjs.js +1 -1
  210. package/dist/nile-grid/nile-grid-cell-item/index.esm.js +1 -1
  211. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js +1 -1
  212. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.cjs.js.map +1 -1
  213. package/dist/nile-grid/nile-grid-cell-item/nile-grid-cell-item.esm.js +2 -2
  214. package/dist/nile-grid/nile-grid-head/index.cjs.js +1 -1
  215. package/dist/nile-grid/nile-grid-head/index.esm.js +1 -1
  216. package/dist/nile-grid/nile-grid-head/nile-grid-head.cjs.js +1 -1
  217. package/dist/nile-grid/nile-grid-head/nile-grid-head.cjs.js.map +1 -1
  218. package/dist/nile-grid/nile-grid-head/nile-grid-head.esm.js +2 -2
  219. package/dist/nile-grid/nile-grid-head-item/index.cjs.js +1 -1
  220. package/dist/nile-grid/nile-grid-head-item/index.esm.js +1 -1
  221. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js +1 -1
  222. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.cjs.js.map +1 -1
  223. package/dist/nile-grid/nile-grid-head-item/nile-grid-head-item.esm.js +3 -3
  224. package/dist/nile-grid/nile-grid-row/index.cjs.js +1 -1
  225. package/dist/nile-grid/nile-grid-row/index.esm.js +1 -1
  226. package/dist/nile-grid/nile-grid-row/nile-grid-row.cjs.js +1 -1
  227. package/dist/nile-grid/nile-grid-row/nile-grid-row.cjs.js.map +1 -1
  228. package/dist/nile-grid/nile-grid-row/nile-grid-row.esm.js +2 -2
  229. package/dist/nile-grid/nile-grid.cjs.js +1 -1
  230. package/dist/nile-grid/nile-grid.cjs.js.map +1 -1
  231. package/dist/nile-grid/nile-grid.esm.js +2 -2
  232. package/dist/nile-hero/index.cjs.js +1 -1
  233. package/dist/nile-hero/index.esm.js +1 -1
  234. package/dist/nile-hero/nile-hero.cjs.js +1 -1
  235. package/dist/nile-hero/nile-hero.cjs.js.map +1 -1
  236. package/dist/nile-hero/nile-hero.esm.js +2 -2
  237. package/dist/nile-hero-header/index.cjs.js +1 -1
  238. package/dist/nile-hero-header/index.esm.js +1 -1
  239. package/dist/nile-hero-header/nile-hero-header.cjs.js +1 -1
  240. package/dist/nile-hero-header/nile-hero-header.cjs.js.map +1 -1
  241. package/dist/nile-hero-header/nile-hero-header.esm.js +2 -2
  242. package/dist/nile-icon/icons/svg/arrow-left-small.cjs.js +2 -0
  243. package/dist/nile-icon/icons/svg/arrow-left-small.cjs.js.map +1 -0
  244. package/dist/nile-icon/icons/svg/arrow-left-small.esm.js +1 -0
  245. package/dist/nile-icon/icons/svg/arrow-right-small.cjs.js +2 -0
  246. package/dist/nile-icon/icons/svg/arrow-right-small.cjs.js.map +1 -0
  247. package/dist/nile-icon/icons/svg/arrow-right-small.esm.js +1 -0
  248. package/dist/nile-icon/icons/svg/arrow_left_small.cjs.js +2 -0
  249. package/dist/nile-icon/icons/svg/arrow_left_small.cjs.js.map +1 -0
  250. package/dist/nile-icon/icons/svg/arrow_left_small.esm.js +1 -0
  251. package/dist/nile-icon/icons/svg/arrow_right_small.cjs.js +2 -0
  252. package/dist/nile-icon/icons/svg/arrow_right_small.cjs.js.map +1 -0
  253. package/dist/nile-icon/icons/svg/arrow_right_small.esm.js +1 -0
  254. package/dist/nile-icon/icons/svg/index.cjs.js +1 -1
  255. package/dist/nile-icon/icons/svg/index.esm.js +1 -1
  256. package/dist/nile-icon/index.cjs.js +1 -1
  257. package/dist/nile-icon/index.cjs.js.map +1 -1
  258. package/dist/nile-icon/index.esm.js +1 -1
  259. package/dist/nile-icon-button/index.cjs.js +1 -1
  260. package/dist/nile-icon-button/index.esm.js +1 -1
  261. package/dist/nile-icon-button/nile-icon-button.cjs.js +1 -1
  262. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  263. package/dist/nile-icon-button/nile-icon-button.esm.js +1 -1
  264. package/dist/nile-inline-edit/index.cjs.js +1 -1
  265. package/dist/nile-inline-edit/index.esm.js +1 -1
  266. package/dist/nile-inline-edit/nile-inline-edit.cjs.js +1 -1
  267. package/dist/nile-inline-edit/nile-inline-edit.cjs.js.map +1 -1
  268. package/dist/nile-inline-edit/nile-inline-edit.esm.js +2 -2
  269. package/dist/nile-inline-sidebar/index.cjs.js +1 -1
  270. package/dist/nile-inline-sidebar/index.esm.js +1 -1
  271. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js +1 -1
  272. package/dist/nile-inline-sidebar/nile-inline-sidebar.cjs.js.map +1 -1
  273. package/dist/nile-inline-sidebar/nile-inline-sidebar.esm.js +3 -3
  274. package/dist/nile-inline-sidebar-group/index.cjs.js +1 -1
  275. package/dist/nile-inline-sidebar-group/index.esm.js +1 -1
  276. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.cjs.js +1 -1
  277. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.cjs.js.map +1 -1
  278. package/dist/nile-inline-sidebar-group/nile-inline-sidebar-group.esm.js +3 -3
  279. package/dist/nile-inline-sidebar-item/index.cjs.js +1 -1
  280. package/dist/nile-inline-sidebar-item/index.esm.js +1 -1
  281. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js +1 -1
  282. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.cjs.js.map +1 -1
  283. package/dist/nile-inline-sidebar-item/nile-inline-sidebar-item.esm.js +3 -3
  284. package/dist/nile-input/index.cjs.js +1 -1
  285. package/dist/nile-input/index.esm.js +1 -1
  286. package/dist/nile-input/nile-input.cjs.js +1 -1
  287. package/dist/nile-input/nile-input.cjs.js.map +1 -1
  288. package/dist/nile-input/nile-input.esm.js +1 -1
  289. package/dist/nile-link/index.cjs.js +1 -1
  290. package/dist/nile-link/index.esm.js +1 -1
  291. package/dist/nile-link/nile-link.cjs.js +1 -1
  292. package/dist/nile-link/nile-link.cjs.js.map +1 -1
  293. package/dist/nile-link/nile-link.esm.js +3 -3
  294. package/dist/nile-list/index.cjs.js +1 -1
  295. package/dist/nile-list/index.esm.js +1 -1
  296. package/dist/nile-list/nile-list.cjs.js +1 -1
  297. package/dist/nile-list/nile-list.cjs.js.map +1 -1
  298. package/dist/nile-list/nile-list.esm.js +1 -1
  299. package/dist/nile-list-item/index.cjs.js +1 -1
  300. package/dist/nile-list-item/index.esm.js +1 -1
  301. package/dist/nile-list-item/nile-list-item.cjs.js +1 -1
  302. package/dist/nile-list-item/nile-list-item.cjs.js.map +1 -1
  303. package/dist/nile-list-item/nile-list-item.esm.js +2 -2
  304. package/dist/nile-lite-tooltip/index.cjs.js +1 -1
  305. package/dist/nile-lite-tooltip/index.esm.js +1 -1
  306. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js +1 -1
  307. package/dist/nile-lite-tooltip/nile-lite-tooltip.cjs.js.map +1 -1
  308. package/dist/nile-lite-tooltip/nile-lite-tooltip.esm.js +1 -1
  309. package/dist/nile-menu/index.cjs.js +1 -1
  310. package/dist/nile-menu/index.esm.js +1 -1
  311. package/dist/nile-menu/nile-menu.cjs.js +1 -1
  312. package/dist/nile-menu/nile-menu.cjs.js.map +1 -1
  313. package/dist/nile-menu/nile-menu.esm.js +2 -2
  314. package/dist/nile-menu-item/index.cjs.js +1 -1
  315. package/dist/nile-menu-item/index.esm.js +1 -1
  316. package/dist/nile-menu-item/nile-menu-item.cjs.js +1 -1
  317. package/dist/nile-menu-item/nile-menu-item.cjs.js.map +1 -1
  318. package/dist/nile-menu-item/nile-menu-item.css.cjs.js +1 -1
  319. package/dist/nile-menu-item/nile-menu-item.css.cjs.js.map +1 -1
  320. package/dist/nile-menu-item/nile-menu-item.css.esm.js +11 -2
  321. package/dist/nile-menu-item/nile-menu-item.esm.js +3 -3
  322. package/dist/nile-option/index.cjs.js +1 -1
  323. package/dist/nile-option/index.esm.js +1 -1
  324. package/dist/nile-option/nile-option.cjs.js +1 -1
  325. package/dist/nile-option/nile-option.cjs.js.map +1 -1
  326. package/dist/nile-option/nile-option.esm.js +1 -1
  327. package/dist/nile-option-group/index.cjs.js +1 -1
  328. package/dist/nile-option-group/index.esm.js +1 -1
  329. package/dist/nile-option-group/nile-option-group.cjs.js +1 -1
  330. package/dist/nile-option-group/nile-option-group.cjs.js.map +1 -1
  331. package/dist/nile-option-group/nile-option-group.esm.js +2 -2
  332. package/dist/nile-otp-input/index.cjs.js +1 -1
  333. package/dist/nile-otp-input/index.esm.js +1 -1
  334. package/dist/nile-otp-input/nile-otp-input.cjs.js +1 -1
  335. package/dist/nile-otp-input/nile-otp-input.cjs.js.map +1 -1
  336. package/dist/nile-otp-input/nile-otp-input.esm.js +1 -1
  337. package/dist/nile-page-header/index.cjs.js +1 -1
  338. package/dist/nile-page-header/index.esm.js +1 -1
  339. package/dist/nile-page-header/nile-page-header.cjs.js +1 -1
  340. package/dist/nile-page-header/nile-page-header.cjs.js.map +1 -1
  341. package/dist/nile-page-header/nile-page-header.esm.js +2 -2
  342. package/dist/nile-pagination/index.cjs.js +1 -1
  343. package/dist/nile-pagination/index.esm.js +1 -1
  344. package/dist/nile-pagination/nile-pagination.cjs.js +1 -1
  345. package/dist/nile-pagination/nile-pagination.cjs.js.map +1 -1
  346. package/dist/nile-pagination/nile-pagination.css.cjs.js +1 -1
  347. package/dist/nile-pagination/nile-pagination.css.cjs.js.map +1 -1
  348. package/dist/nile-pagination/nile-pagination.css.esm.js +13 -0
  349. package/dist/nile-pagination/nile-pagination.esm.js +1 -1
  350. package/dist/nile-popover/index.cjs.js +1 -1
  351. package/dist/nile-popover/index.esm.js +1 -1
  352. package/dist/nile-popover/nile-popover.cjs.js +2 -2
  353. package/dist/nile-popover/nile-popover.cjs.js.map +1 -1
  354. package/dist/nile-popover/nile-popover.esm.js +3 -3
  355. package/dist/nile-popup/index.cjs.js +1 -1
  356. package/dist/nile-popup/index.esm.js +1 -1
  357. package/dist/nile-popup/nile-popup.cjs.js +1 -1
  358. package/dist/nile-popup/nile-popup.cjs.js.map +1 -1
  359. package/dist/nile-popup/nile-popup.esm.js +2 -2
  360. package/dist/nile-progress-bar/index.cjs.js +1 -1
  361. package/dist/nile-progress-bar/index.esm.js +1 -1
  362. package/dist/nile-progress-bar/nile-progress-bar.cjs.js +1 -1
  363. package/dist/nile-progress-bar/nile-progress-bar.cjs.js.map +1 -1
  364. package/dist/nile-progress-bar/nile-progress-bar.esm.js +2 -2
  365. package/dist/nile-qr-code/index.cjs.js +1 -1
  366. package/dist/nile-qr-code/index.esm.js +1 -1
  367. package/dist/nile-qr-code/nile-qr-code.cjs.js +1 -1
  368. package/dist/nile-qr-code/nile-qr-code.cjs.js.map +1 -1
  369. package/dist/nile-qr-code/nile-qr-code.esm.js +2 -2
  370. package/dist/nile-radio/index.cjs.js +1 -1
  371. package/dist/nile-radio/index.esm.js +1 -1
  372. package/dist/nile-radio/nile-radio.cjs.js +1 -1
  373. package/dist/nile-radio/nile-radio.cjs.js.map +1 -1
  374. package/dist/nile-radio/nile-radio.css.cjs.js +1 -1
  375. package/dist/nile-radio/nile-radio.css.cjs.js.map +1 -1
  376. package/dist/nile-radio/nile-radio.css.esm.js +4 -0
  377. package/dist/nile-radio/nile-radio.esm.js +2 -2
  378. package/dist/nile-radio-group/index.cjs.js +1 -1
  379. package/dist/nile-radio-group/index.esm.js +1 -1
  380. package/dist/nile-radio-group/nile-radio-group.cjs.js +1 -1
  381. package/dist/nile-radio-group/nile-radio-group.cjs.js.map +1 -1
  382. package/dist/nile-radio-group/nile-radio-group.esm.js +2 -2
  383. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js +1 -1
  384. package/dist/nile-rich-text-editor/nile-rich-text-editor.cjs.js.map +1 -1
  385. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js +1 -1
  386. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.cjs.js.map +1 -1
  387. package/dist/nile-rich-text-editor/nile-rich-text-editor.css.esm.js +8 -6
  388. package/dist/nile-rich-text-editor/nile-rich-text-editor.esm.js +1 -1
  389. package/dist/nile-rich-text-editor/utils/list-utils.cjs.js +1 -1
  390. package/dist/nile-rich-text-editor/utils/list-utils.cjs.js.map +1 -1
  391. package/dist/nile-rich-text-editor/utils/list-utils.esm.js +1 -1
  392. package/dist/nile-section-message/index.cjs.js +1 -1
  393. package/dist/nile-section-message/index.esm.js +1 -1
  394. package/dist/nile-section-message/nile-section-message.cjs.js +1 -1
  395. package/dist/nile-section-message/nile-section-message.cjs.js.map +1 -1
  396. package/dist/nile-section-message/nile-section-message.esm.js +2 -2
  397. package/dist/nile-select/index.cjs.js +1 -1
  398. package/dist/nile-select/index.esm.js +1 -1
  399. package/dist/nile-select/nile-select.cjs.js +1 -1
  400. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  401. package/dist/nile-select/nile-select.css.cjs.js +1 -1
  402. package/dist/nile-select/nile-select.css.cjs.js.map +1 -1
  403. package/dist/nile-select/nile-select.css.esm.js +21 -2
  404. package/dist/nile-select/nile-select.esm.js +33 -25
  405. package/dist/nile-select/portal-utils.cjs.js +1 -1
  406. package/dist/nile-select/portal-utils.cjs.js.map +1 -1
  407. package/dist/nile-select/portal-utils.esm.js +1 -1
  408. package/dist/nile-side-bar/index.cjs.js +1 -1
  409. package/dist/nile-side-bar/index.esm.js +1 -1
  410. package/dist/nile-side-bar/nile-side-bar.cjs.js +1 -1
  411. package/dist/nile-side-bar/nile-side-bar.cjs.js.map +1 -1
  412. package/dist/nile-side-bar/nile-side-bar.esm.js +2 -2
  413. package/dist/nile-side-bar-action/index.cjs.js +1 -1
  414. package/dist/nile-side-bar-action/index.esm.js +1 -1
  415. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js +1 -1
  416. package/dist/nile-side-bar-action/nile-side-bar-action.cjs.js.map +1 -1
  417. package/dist/nile-side-bar-action/nile-side-bar-action.esm.js +3 -3
  418. package/dist/nile-side-bar-action-menu/index.cjs.js +1 -1
  419. package/dist/nile-side-bar-action-menu/index.esm.js +1 -1
  420. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.cjs.js +1 -1
  421. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.cjs.js.map +1 -1
  422. package/dist/nile-side-bar-action-menu/nile-side-bar-action-menu.esm.js +2 -2
  423. package/dist/nile-side-bar-action-menu-item/index.cjs.js +1 -1
  424. package/dist/nile-side-bar-action-menu-item/index.esm.js +1 -1
  425. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js +1 -1
  426. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.cjs.js.map +1 -1
  427. package/dist/nile-side-bar-action-menu-item/nile-side-bar-action-menu-item.esm.js +1 -1
  428. package/dist/nile-side-bar-expand/index.cjs.js +1 -1
  429. package/dist/nile-side-bar-expand/index.esm.js +1 -1
  430. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js +1 -1
  431. package/dist/nile-side-bar-expand/nile-side-bar-expand.cjs.js.map +1 -1
  432. package/dist/nile-side-bar-expand/nile-side-bar-expand.esm.js +2 -2
  433. package/dist/nile-side-bar-footer/index.cjs.js +1 -1
  434. package/dist/nile-side-bar-footer/index.esm.js +1 -1
  435. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js +1 -1
  436. package/dist/nile-side-bar-footer/nile-side-bar-footer.cjs.js.map +1 -1
  437. package/dist/nile-side-bar-footer/nile-side-bar-footer.esm.js +2 -2
  438. package/dist/nile-side-bar-footer-item/index.cjs.js +1 -1
  439. package/dist/nile-side-bar-footer-item/index.esm.js +1 -1
  440. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js +1 -1
  441. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.cjs.js.map +1 -1
  442. package/dist/nile-side-bar-footer-item/nile-side-bar-footer-item.esm.js +1 -1
  443. package/dist/nile-side-bar-footer-text/index.cjs.js +1 -1
  444. package/dist/nile-side-bar-footer-text/index.esm.js +1 -1
  445. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js +1 -1
  446. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.cjs.js.map +1 -1
  447. package/dist/nile-side-bar-footer-text/nile-side-bar-footer-text.esm.js +3 -3
  448. package/dist/nile-side-bar-group/index.cjs.js +1 -1
  449. package/dist/nile-side-bar-group/index.esm.js +1 -1
  450. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js +1 -1
  451. package/dist/nile-side-bar-group/nile-side-bar-group.cjs.js.map +1 -1
  452. package/dist/nile-side-bar-group/nile-side-bar-group.esm.js +2 -2
  453. package/dist/nile-side-bar-group-item/index.cjs.js +1 -1
  454. package/dist/nile-side-bar-group-item/index.esm.js +1 -1
  455. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js +1 -1
  456. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.cjs.js.map +1 -1
  457. package/dist/nile-side-bar-group-item/nile-side-bar-group-item.esm.js +2 -2
  458. package/dist/nile-side-bar-group-item-icon/index.cjs.js +1 -1
  459. package/dist/nile-side-bar-group-item-icon/index.esm.js +1 -1
  460. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js +1 -1
  461. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.cjs.js.map +1 -1
  462. package/dist/nile-side-bar-group-item-icon/nile-side-bar-group-item-icon.esm.js +2 -2
  463. package/dist/nile-side-bar-group-item-text/index.cjs.js +1 -1
  464. package/dist/nile-side-bar-group-item-text/index.esm.js +1 -1
  465. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.cjs.js +1 -1
  466. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.cjs.js.map +1 -1
  467. package/dist/nile-side-bar-group-item-text/nile-side-bar-group-item-text.esm.js +1 -1
  468. package/dist/nile-side-bar-header/index.cjs.js +1 -1
  469. package/dist/nile-side-bar-header/index.esm.js +1 -1
  470. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js +1 -1
  471. package/dist/nile-side-bar-header/nile-side-bar-header.cjs.js.map +1 -1
  472. package/dist/nile-side-bar-header/nile-side-bar-header.esm.js +2 -2
  473. package/dist/nile-side-bar-logo/index.cjs.js +1 -1
  474. package/dist/nile-side-bar-logo/index.esm.js +1 -1
  475. package/dist/nile-side-bar-logo/nile-side-bar-logo.cjs.js +1 -1
  476. package/dist/nile-side-bar-logo/nile-side-bar-logo.cjs.js.map +1 -1
  477. package/dist/nile-side-bar-logo/nile-side-bar-logo.esm.js +2 -2
  478. package/dist/nile-side-bar-panel/index.cjs.js +1 -1
  479. package/dist/nile-side-bar-panel/index.esm.js +1 -1
  480. package/dist/nile-side-bar-panel/nile-side-bar-panel.cjs.js +1 -1
  481. package/dist/nile-side-bar-panel/nile-side-bar-panel.cjs.js.map +1 -1
  482. package/dist/nile-side-bar-panel/nile-side-bar-panel.esm.js +2 -2
  483. package/dist/nile-skeleton-loader/index.cjs.js +1 -1
  484. package/dist/nile-skeleton-loader/index.esm.js +1 -1
  485. package/dist/nile-skeleton-loader/nile-skeleton-loader.cjs.js +1 -1
  486. package/dist/nile-skeleton-loader/nile-skeleton-loader.cjs.js.map +1 -1
  487. package/dist/nile-skeleton-loader/nile-skeleton-loader.esm.js +2 -2
  488. package/dist/nile-slide-toggle/index.cjs.js +1 -1
  489. package/dist/nile-slide-toggle/index.esm.js +1 -1
  490. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js +1 -1
  491. package/dist/nile-slide-toggle/nile-slide-toggle.cjs.js.map +1 -1
  492. package/dist/nile-slide-toggle/nile-slide-toggle.esm.js +2 -2
  493. package/dist/nile-slider/index.cjs.js +1 -1
  494. package/dist/nile-slider/index.esm.js +1 -1
  495. package/dist/nile-slider/nile-slider.cjs.js +1 -1
  496. package/dist/nile-slider/nile-slider.cjs.js.map +1 -1
  497. package/dist/nile-slider/nile-slider.esm.js +3 -3
  498. package/dist/nile-split-panel/index.cjs.js +1 -1
  499. package/dist/nile-split-panel/index.esm.js +1 -1
  500. package/dist/nile-split-panel/nile-split-panel.cjs.js +1 -1
  501. package/dist/nile-split-panel/nile-split-panel.cjs.js.map +1 -1
  502. package/dist/nile-split-panel/nile-split-panel.esm.js +2 -2
  503. package/dist/nile-stepper/index.cjs.js +1 -1
  504. package/dist/nile-stepper/index.esm.js +1 -1
  505. package/dist/nile-stepper/nile-stepper.cjs.js +1 -1
  506. package/dist/nile-stepper/nile-stepper.cjs.js.map +1 -1
  507. package/dist/nile-stepper/nile-stepper.esm.js +3 -3
  508. package/dist/nile-stepper-item/index.cjs.js +1 -1
  509. package/dist/nile-stepper-item/index.esm.js +1 -1
  510. package/dist/nile-stepper-item/nile-stepper-item.cjs.js +1 -1
  511. package/dist/nile-stepper-item/nile-stepper-item.cjs.js.map +1 -1
  512. package/dist/nile-stepper-item/nile-stepper-item.esm.js +1 -1
  513. package/dist/nile-switcher/index.cjs.js +1 -1
  514. package/dist/nile-switcher/index.esm.js +1 -1
  515. package/dist/nile-switcher/nile-switcher.cjs.js +1 -1
  516. package/dist/nile-switcher/nile-switcher.cjs.js.map +1 -1
  517. package/dist/nile-switcher/nile-switcher.esm.js +23 -23
  518. package/dist/nile-tab/index.cjs.js +1 -1
  519. package/dist/nile-tab/index.esm.js +1 -1
  520. package/dist/nile-tab/nile-tab.cjs.js +1 -1
  521. package/dist/nile-tab/nile-tab.cjs.js.map +1 -1
  522. package/dist/nile-tab/nile-tab.esm.js +1 -1
  523. package/dist/nile-tab-group/index.cjs.js +1 -1
  524. package/dist/nile-tab-group/index.esm.js +1 -1
  525. package/dist/nile-tab-group/nile-tab-group.cjs.js +1 -1
  526. package/dist/nile-tab-group/nile-tab-group.cjs.js.map +1 -1
  527. package/dist/nile-tab-group/nile-tab-group.esm.js +1 -1
  528. package/dist/nile-tab-panel/index.cjs.js +1 -1
  529. package/dist/nile-tab-panel/index.esm.js +1 -1
  530. package/dist/nile-tab-panel/nile-tab-panel.cjs.js +1 -1
  531. package/dist/nile-tab-panel/nile-tab-panel.cjs.js.map +1 -1
  532. package/dist/nile-tab-panel/nile-tab-panel.esm.js +3 -3
  533. package/dist/nile-table/index.cjs.js +1 -1
  534. package/dist/nile-table/index.esm.js +1 -1
  535. package/dist/nile-table/nile-table.cjs.js +1 -1
  536. package/dist/nile-table/nile-table.cjs.js.map +1 -1
  537. package/dist/nile-table/nile-table.esm.js +1 -1
  538. package/dist/nile-table-body/index.cjs.js +1 -1
  539. package/dist/nile-table-body/index.esm.js +1 -1
  540. package/dist/nile-table-body/nile-table-body.cjs.js +1 -1
  541. package/dist/nile-table-body/nile-table-body.cjs.js.map +1 -1
  542. package/dist/nile-table-body/nile-table-body.esm.js +3 -3
  543. package/dist/nile-table-cell-item/index.cjs.js +1 -1
  544. package/dist/nile-table-cell-item/index.esm.js +1 -1
  545. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js +1 -1
  546. package/dist/nile-table-cell-item/nile-table-cell-item.cjs.js.map +1 -1
  547. package/dist/nile-table-cell-item/nile-table-cell-item.esm.js +5 -5
  548. package/dist/nile-table-header-item/index.cjs.js +1 -1
  549. package/dist/nile-table-header-item/index.esm.js +1 -1
  550. package/dist/nile-table-header-item/nile-table-header-item.cjs.js +1 -1
  551. package/dist/nile-table-header-item/nile-table-header-item.cjs.js.map +1 -1
  552. package/dist/nile-table-header-item/nile-table-header-item.esm.js +1 -1
  553. package/dist/nile-table-row/index.cjs.js +1 -1
  554. package/dist/nile-table-row/index.esm.js +1 -1
  555. package/dist/nile-table-row/nile-table-row.cjs.js +1 -1
  556. package/dist/nile-table-row/nile-table-row.cjs.js.map +1 -1
  557. package/dist/nile-table-row/nile-table-row.esm.js +2 -2
  558. package/dist/nile-tag/index.cjs.js +1 -1
  559. package/dist/nile-tag/index.esm.js +1 -1
  560. package/dist/nile-tag/nile-tag.cjs.js +1 -1
  561. package/dist/nile-tag/nile-tag.cjs.js.map +1 -1
  562. package/dist/nile-tag/nile-tag.esm.js +1 -1
  563. package/dist/nile-textarea/index.cjs.js +1 -1
  564. package/dist/nile-textarea/index.esm.js +1 -1
  565. package/dist/nile-textarea/nile-textarea.cjs.js +1 -1
  566. package/dist/nile-textarea/nile-textarea.cjs.js.map +1 -1
  567. package/dist/nile-textarea/nile-textarea.esm.js +2 -2
  568. package/dist/nile-title/index.cjs.js +1 -1
  569. package/dist/nile-title/index.esm.js +1 -1
  570. package/dist/nile-title/nile-title.cjs.js +1 -1
  571. package/dist/nile-title/nile-title.cjs.js.map +1 -1
  572. package/dist/nile-title/nile-title.esm.js +1 -1
  573. package/dist/nile-toast/index.cjs.js +1 -1
  574. package/dist/nile-toast/index.esm.js +1 -1
  575. package/dist/nile-toast/nile-toast.cjs.js +1 -1
  576. package/dist/nile-toast/nile-toast.cjs.js.map +1 -1
  577. package/dist/nile-toast/nile-toast.esm.js +1 -1
  578. package/dist/nile-toolbar/index.cjs.js +1 -1
  579. package/dist/nile-toolbar/index.esm.js +1 -1
  580. package/dist/nile-toolbar/nile-toolbar.cjs.js +1 -1
  581. package/dist/nile-toolbar/nile-toolbar.cjs.js.map +1 -1
  582. package/dist/nile-toolbar/nile-toolbar.esm.js +2 -2
  583. package/dist/nile-tooltip/index.cjs.js +1 -1
  584. package/dist/nile-tooltip/index.esm.js +1 -1
  585. package/dist/nile-tooltip/nile-tooltip.cjs.js +1 -1
  586. package/dist/nile-tooltip/nile-tooltip.cjs.js.map +1 -1
  587. package/dist/nile-tooltip/nile-tooltip.esm.js +2 -2
  588. package/dist/nile-tree/index.cjs.js +1 -1
  589. package/dist/nile-tree/index.esm.js +1 -1
  590. package/dist/nile-tree/nile-tree.cjs.js +1 -1
  591. package/dist/nile-tree/nile-tree.cjs.js.map +1 -1
  592. package/dist/nile-tree/nile-tree.esm.js +1 -1
  593. package/dist/nile-tree-item/index.cjs.js +1 -1
  594. package/dist/nile-tree-item/index.esm.js +1 -1
  595. package/dist/nile-tree-item/nile-tree-item.cjs.js +1 -1
  596. package/dist/nile-tree-item/nile-tree-item.cjs.js.map +1 -1
  597. package/dist/nile-tree-item/nile-tree-item.esm.js +1 -1
  598. package/dist/nile-vertical-stepper-item/index.cjs.js +1 -1
  599. package/dist/nile-vertical-stepper-item/index.esm.js +1 -1
  600. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js +1 -1
  601. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.cjs.js.map +1 -1
  602. package/dist/nile-vertical-stepper-item/nile-vertical-stepper-item.esm.js +7 -7
  603. package/dist/nile-virtual-select/index.cjs.js +1 -1
  604. package/dist/nile-virtual-select/index.esm.js +1 -1
  605. package/dist/nile-virtual-select/nile-virtual-select.cjs.js +2 -2
  606. package/dist/nile-virtual-select/nile-virtual-select.esm.js +1 -1
  607. package/dist/src/index.d.ts +1 -0
  608. package/dist/src/index.js +1 -0
  609. package/dist/src/index.js.map +1 -1
  610. package/dist/src/internal/accessibility/a11y.custom-value.enum.d.ts +69 -0
  611. package/dist/src/internal/accessibility/a11y.custom-value.enum.js +71 -0
  612. package/dist/src/internal/accessibility/a11y.custom-value.enum.js.map +1 -0
  613. package/dist/src/internal/accessibility/a11y.property.enum.d.ts +33 -0
  614. package/dist/src/internal/accessibility/a11y.property.enum.js +35 -0
  615. package/dist/src/internal/accessibility/a11y.property.enum.js.map +1 -0
  616. package/dist/src/internal/accessibility/a11y.role.enum.d.ts +50 -0
  617. package/dist/src/internal/accessibility/a11y.role.enum.js +52 -0
  618. package/dist/src/internal/accessibility/a11y.role.enum.js.map +1 -0
  619. package/dist/src/internal/accessibility/a11y.state.enum.d.ts +17 -0
  620. package/dist/src/internal/accessibility/a11y.state.enum.js +19 -0
  621. package/dist/src/internal/accessibility/a11y.state.enum.js.map +1 -0
  622. package/dist/src/internal/accessibility/accessibility.const.d.ts +8 -0
  623. package/dist/src/internal/accessibility/accessibility.const.js +9 -0
  624. package/dist/src/internal/accessibility/accessibility.const.js.map +1 -0
  625. package/dist/src/internal/accessibility/role.enum.d.ts +3 -0
  626. package/dist/src/internal/accessibility/role.enum.js +5 -0
  627. package/dist/src/internal/accessibility/role.enum.js.map +1 -0
  628. package/dist/src/internal/nile-element.d.ts +52 -0
  629. package/dist/src/internal/nile-element.js +45 -0
  630. package/dist/src/internal/nile-element.js.map +1 -1
  631. package/dist/src/nile-avatar/nile-avatar.js +2 -0
  632. package/dist/src/nile-avatar/nile-avatar.js.map +1 -1
  633. package/dist/src/nile-badge/nile-badge.d.ts +1 -0
  634. package/dist/src/nile-badge/nile-badge.js +12 -1
  635. package/dist/src/nile-badge/nile-badge.js.map +1 -1
  636. package/dist/src/nile-button/nile-button.css.js +5 -0
  637. package/dist/src/nile-button/nile-button.css.js.map +1 -1
  638. package/dist/src/nile-checkbox/nile-checkbox.css.js +4 -0
  639. package/dist/src/nile-checkbox/nile-checkbox.css.js.map +1 -1
  640. package/dist/src/nile-checkbox/nile-checkbox.d.ts +2 -0
  641. package/dist/src/nile-checkbox/nile-checkbox.js +5 -0
  642. package/dist/src/nile-checkbox/nile-checkbox.js.map +1 -1
  643. package/dist/src/nile-checkbox-group/index.d.ts +1 -0
  644. package/dist/src/nile-checkbox-group/index.js +2 -0
  645. package/dist/src/nile-checkbox-group/index.js.map +1 -0
  646. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.d.ts +1 -0
  647. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.js +70 -0
  648. package/dist/src/nile-checkbox-group/nile-checkbox-group.css.js.map +1 -0
  649. package/dist/src/nile-checkbox-group/nile-checkbox-group.d.ts +84 -0
  650. package/dist/src/nile-checkbox-group/nile-checkbox-group.js +355 -0
  651. package/dist/src/nile-checkbox-group/nile-checkbox-group.js.map +1 -0
  652. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.d.ts +2 -0
  653. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.js +671 -0
  654. package/dist/src/nile-checkbox-group/nile-checkbox-group.test.js.map +1 -0
  655. package/dist/src/nile-code-editor/nile-code-editor.d.ts +1 -1
  656. package/dist/src/nile-code-editor/nile-code-editor.js +1 -7
  657. package/dist/src/nile-code-editor/nile-code-editor.js.map +1 -1
  658. package/dist/src/nile-icon/icons/svg/arrow-left-small.d.ts +5 -0
  659. package/dist/src/nile-icon/icons/svg/arrow-left-small.js +5 -0
  660. package/dist/src/nile-icon/icons/svg/arrow-left-small.js.map +1 -0
  661. package/dist/src/nile-icon/icons/svg/arrow-right-small.d.ts +5 -0
  662. package/dist/src/nile-icon/icons/svg/arrow-right-small.js +5 -0
  663. package/dist/src/nile-icon/icons/svg/arrow-right-small.js.map +1 -0
  664. package/dist/src/nile-icon/icons/svg/arrow_left_small.d.ts +5 -0
  665. package/dist/src/nile-icon/icons/svg/arrow_left_small.js +5 -0
  666. package/dist/src/nile-icon/icons/svg/arrow_left_small.js.map +1 -0
  667. package/dist/src/nile-icon/icons/svg/arrow_right_small.d.ts +5 -0
  668. package/dist/src/nile-icon/icons/svg/arrow_right_small.js +5 -0
  669. package/dist/src/nile-icon/icons/svg/arrow_right_small.js.map +1 -0
  670. package/dist/src/nile-icon/icons/svg/index.d.ts +4 -0
  671. package/dist/src/nile-icon/icons/svg/index.js +4 -0
  672. package/dist/src/nile-icon/icons/svg/index.js.map +1 -1
  673. package/dist/src/nile-link/nile-link.d.ts +2 -1
  674. package/dist/src/nile-link/nile-link.js +18 -1
  675. package/dist/src/nile-link/nile-link.js.map +1 -1
  676. package/dist/src/nile-menu-item/nile-menu-item.css.js +11 -2
  677. package/dist/src/nile-menu-item/nile-menu-item.css.js.map +1 -1
  678. package/dist/src/nile-menu-item/nile-menu-item.d.ts +2 -0
  679. package/dist/src/nile-menu-item/nile-menu-item.js +7 -1
  680. package/dist/src/nile-menu-item/nile-menu-item.js.map +1 -1
  681. package/dist/src/nile-otp-input/nile-otp-input.test.js +7 -7
  682. package/dist/src/nile-otp-input/nile-otp-input.test.js.map +1 -1
  683. package/dist/src/nile-pagination/nile-pagination.css.js +13 -0
  684. package/dist/src/nile-pagination/nile-pagination.css.js.map +1 -1
  685. package/dist/src/nile-radio/nile-radio.css.js +4 -0
  686. package/dist/src/nile-radio/nile-radio.css.js.map +1 -1
  687. package/dist/src/nile-radio-group/nile-radio-group.js +7 -0
  688. package/dist/src/nile-radio-group/nile-radio-group.js.map +1 -1
  689. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js +8 -6
  690. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.css.js.map +1 -1
  691. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.d.ts +2 -0
  692. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js +43 -0
  693. package/dist/src/nile-rich-text-editor/nile-rich-text-editor.js.map +1 -1
  694. package/dist/src/nile-rich-text-editor/nile-rte-link.test.js +6 -5
  695. package/dist/src/nile-rich-text-editor/nile-rte-link.test.js.map +1 -1
  696. package/dist/src/nile-rich-text-editor/utils/list-utils.js +0 -1
  697. package/dist/src/nile-rich-text-editor/utils/list-utils.js.map +1 -1
  698. package/dist/src/nile-select/nile-select.css.js +21 -2
  699. package/dist/src/nile-select/nile-select.css.js.map +1 -1
  700. package/dist/src/nile-select/nile-select.d.ts +4 -0
  701. package/dist/src/nile-select/nile-select.js +42 -24
  702. package/dist/src/nile-select/nile-select.js.map +1 -1
  703. package/dist/src/nile-select/portal-utils.d.ts +2 -0
  704. package/dist/src/nile-select/portal-utils.js +36 -3
  705. package/dist/src/nile-select/portal-utils.js.map +1 -1
  706. package/dist/src/version.js +2 -2
  707. package/dist/src/version.js.map +1 -1
  708. package/dist/tsconfig.tsbuildinfo +1 -1
  709. package/package.json +3 -2
  710. package/src/index.ts +1 -0
  711. package/src/internal/accessibility/a11y.custom-value.enum.ts +69 -0
  712. package/src/internal/accessibility/a11y.property.enum.ts +33 -0
  713. package/src/internal/accessibility/a11y.role.enum.ts +50 -0
  714. package/src/internal/accessibility/a11y.state.enum.ts +17 -0
  715. package/src/internal/accessibility/accessibility.const.ts +9 -0
  716. package/src/internal/accessibility/role.enum.ts +3 -0
  717. package/src/internal/nile-element.ts +99 -0
  718. package/src/nile-avatar/nile-avatar.ts +2 -0
  719. package/src/nile-badge/nile-badge.ts +13 -1
  720. package/src/nile-button/nile-button.css.ts +5 -0
  721. package/src/nile-checkbox/nile-checkbox.css.ts +4 -0
  722. package/src/nile-checkbox/nile-checkbox.ts +3 -0
  723. package/src/nile-checkbox-group/index.ts +1 -0
  724. package/src/nile-checkbox-group/nile-checkbox-group.css.ts +70 -0
  725. package/src/nile-checkbox-group/nile-checkbox-group.test.ts +769 -0
  726. package/src/nile-checkbox-group/nile-checkbox-group.ts +351 -0
  727. package/src/nile-code-editor/nile-code-editor.ts +1 -7
  728. package/src/nile-icon/icons/svg/arrow-left-small.ts +5 -0
  729. package/src/nile-icon/icons/svg/arrow-right-small.ts +5 -0
  730. package/src/nile-icon/icons/svg/arrow_left_small.ts +5 -0
  731. package/src/nile-icon/icons/svg/arrow_right_small.ts +5 -0
  732. package/src/nile-icon/icons/svg/index.ts +4 -0
  733. package/src/nile-link/nile-link.ts +21 -2
  734. package/src/nile-menu-item/nile-menu-item.css.ts +11 -2
  735. package/src/nile-menu-item/nile-menu-item.ts +5 -1
  736. package/src/nile-otp-input/nile-otp-input.test.ts +7 -7
  737. package/src/nile-pagination/nile-pagination.css.ts +13 -0
  738. package/src/nile-radio/nile-radio.css.ts +4 -0
  739. package/src/nile-radio-group/nile-radio-group.ts +7 -0
  740. package/src/nile-rich-text-editor/nile-rich-text-editor.css.ts +8 -6
  741. package/src/nile-rich-text-editor/nile-rich-text-editor.ts +43 -0
  742. package/src/nile-rich-text-editor/nile-rte-link.test.ts +6 -5
  743. package/src/nile-rich-text-editor/utils/list-utils.ts +1 -2
  744. package/src/nile-select/nile-select.css.ts +21 -2
  745. package/src/nile-select/nile-select.ts +44 -24
  746. package/src/nile-select/portal-utils.ts +46 -3
  747. package/vscode-html-custom-data.json +117 -20
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-panel.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var s,e,r,t,i,_templateObject,l;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){s=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){r=_litDecoratorsJs.customElement;},function(_nileSideBarPanelCssCjsJs){t=_nileSideBarPanelCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",l=/*#__PURE__*/function(_i){function l(){_classCallCheck(this,l);return _callSuper(this,l,arguments);}_inherits(l,_i);return _createClass(l,[{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t<slot> </slot>\n\t\t\t"])));}}],[{key:"styles",get:function get(){return[t];}}]);}(i));_export("N",l=s([r("nile-side-bar-panel")],l));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","./nile-side-bar-panel.css.cjs.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"],function(_export,_context){"use strict";var s,e,t,r,i,_templateObject,l;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){s=_tslib.__decorate;},function(_lit){e=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.customElement;},function(_nileSideBarPanelCssCjsJs){r=_nileSideBarPanelCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",l=/*#__PURE__*/function(_i){function l(){_classCallCheck(this,l);return _callSuper(this,l,arguments);}_inherits(l,_i);return _createClass(l,[{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t<slot> </slot>\n\t\t\t"])));}}],[{key:"styles",get:function get(){return[r];}}]);}(i));_export("N",l=s([t("nile-side-bar-panel")],l));}};});
2
2
  //# sourceMappingURL=nile-side-bar-panel.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-side-bar-panel.cjs.js","sources":["../../../src/nile-side-bar-panel/nile-side-bar-panel.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 {LitElement, html, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property} from 'lit/decorators.js';\nimport {styles} from './nile-side-bar-panel.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile side-bar-panel component.\n *\n * @tag nile-side-bar-panel\n *\n */\n@customElement('nile-side-bar-panel')\nexport class NileSideBarPanel extends NileElement {\n\n\t/**\n\t * The styles for nile-side-bar-panel\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t\t<slot> </slot>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileSideBarPanel;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-panel': NileSideBarPanel;\n }\n}"],"names":["NileSideBarPanel","render","html","_templateObject","_taggedTemplateLiteral","key","get","styles","NileElement","__decorate","customElement"],"mappings":"inGAoBaA,CAAAA,uBAAAA,EAAAA,WAAAA,EAAAA,EAAAA,eAAAA,MAAAA,CAAAA,SAAAA,UAAAA,MAAAA,CAAAA,CAAAA,SAAAA,GAAAA,SAAAA,CAAAA,CAAAA,CAAAA,EAAAA,SAAAA,YAAAA,CAAAA,CAAAA,GAAAA,GAAAA,UAAAA,KAAAA,CAkBL,SAAAC,MAAAA,CAAAA,CACN,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,uCAGX,CAAA,KAAAC,GAAA,UAAAC,GAAA,CAhBM,SAAAA,IAAA,EACN,MAAO,CAACC,EACR,EAUM,MAlB8BC,CAM9B,GANKR,OAAAA,KAAAA,CAAgBS,CAAAA,CAAAA,CAAA,CAD5BC,CAAAA,CAAc,wBACFV"}
1
+ {"version":3,"file":"nile-side-bar-panel.cjs.js","sources":["../../../src/nile-side-bar-panel/nile-side-bar-panel.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 {LitElement, html, CSSResultArray, TemplateResult} from 'lit';\nimport { customElement, property} from 'lit/decorators.js';\nimport {styles} from './nile-side-bar-panel.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile side-bar-panel component.\n *\n * @tag nile-side-bar-panel\n *\n */\n@customElement('nile-side-bar-panel')\nexport class NileSideBarPanel extends NileElement {\n\n\t/**\n\t * The styles for nile-side-bar-panel\n\t * @remarks If you are extending this class you can extend the base styles with super. Eg `return [super(), myCustomStyles]`\n\t */\n\tpublic static get styles(): CSSResultArray {\n\t\treturn [styles];\n\t}\n\n\t/* #endregion */\n\n\t/* #region Methods */\n\n\t/**\n\t * Render method\n\t * @slot This is a slot test\n\t */\n\tpublic render(): TemplateResult {\n\t\treturn html`\n\t\t\t<slot> </slot>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileSideBarPanel;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-side-bar-panel': NileSideBarPanel;\n }\n}"],"names":["NileSideBarPanel","_i","l","_classCallCheck","_callSuper","arguments","_inherits","_createClass","key","value","render","html","_templateObject","_taggedTemplateLiteral","get","styles","NileElement","__decorate","customElement"],"mappings":"o6GAoBaA,CAAN,uBAAAC,EAAA,WAAAC,EAAA,EAAAC,eAAA,MAAAD,CAAA,SAAAE,UAAA,MAAAF,CAAA,CAAAG,SAAA,GAAAC,SAAA,CAAAJ,CAAA,CAAAD,EAAA,SAAAM,YAAA,CAAAL,CAAA,GAAAM,GAAA,UAAAC,KAAA,CAkBC,SAAAC,MAAAA,CAAAA,CACN,CAAA,MAAOC,CAAAA,CAAI,CAAAC,eAAA,GAAAA,eAAA,CAAAC,sBAAA,uCAGX,CAAA,KAAAL,GAAA,UAAAM,GAAA,CAhBM,SAAAA,IAAA,CACN,CAAA,MAAO,CAACC,CAAAA,CACR,EAUM,MAlB8BC,CAM9B,GANKhB,OAAAA,KAAAA,CAAgBiB,CAAAA,CAAAA,CAAA,CAD5BC,CAAAA,CAAc,wBACFlB"}
@@ -1,3 +1,3 @@
1
- import{__decorate as e}from"tslib";import{html as s}from"lit";import{customElement as r}from"lit/decorators.js";import{s as t}from"./nile-side-bar-panel.css.esm.js";import{N as i}from"../internal/nile-element.esm.js";let l=class extends i{static get styles(){return[t]}render(){return s`
1
+ import{__decorate as e}from"tslib";import{html as s}from"lit";import{customElement as t}from"lit/decorators.js";import{s as r}from"./nile-side-bar-panel.css.esm.js";import{N as i}from"../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";let l=class extends i{static get styles(){return[r]}render(){return s`
2
2
  <slot> </slot>
3
- `}};l=e([r("nile-side-bar-panel")],l);export{l as N};
3
+ `}};l=e([t("nile-side-bar-panel")],l);export{l as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-skeleton-loader.cjs.js","tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-skeleton-loader.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSkeletonLoaderCjsJs){_export("NileSkeletonLoader",_nileSkeletonLoaderCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_litDirectivesClassMapJs){},function(_nileSkeletonLoaderCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-skeleton-loader.cjs.js","tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-skeleton-loader.css.cjs.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"],function(_export,_context){"use strict";return{setters:[function(_nileSkeletonLoaderCjsJs){_export("NileSkeletonLoader",_nileSkeletonLoaderCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_litDirectivesClassMapJs){},function(_nileSkeletonLoaderCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileSkeletonLoader}from"./nile-skeleton-loader.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"./nile-skeleton-loader.css.esm.js";import"../internal/nile-element.esm.js";
1
+ export{N as NileSkeletonLoader}from"./nile-skeleton-loader.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"./nile-skeleton-loader.css.esm.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";
@@ -1,2 +1,2 @@
1
- function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-skeleton-loader.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,r,e,i,s,a,o,_templateObject,d;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){r=_lit.html;},function(_litDecoratorsJs){e=_litDecoratorsJs.property;i=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){s=_litDirectivesClassMapJs.classMap;},function(_nileSkeletonLoaderCssCjsJs){a=_nileSkeletonLoaderCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",d=/*#__PURE__*/function(_o){function d(){var _this;_classCallCheck(this,d);_this=_callSuper(this,d,arguments),_this.variant="text",_this.width="",_this.height="",_this.borderRadius="";return _this;}_inherits(d,_o);return _createClass(d,[{key:"formatDimension",value:function formatDimension(t){if(!t)return"";if("number"==typeof t)return"".concat(t,"px");var r=String(t).trim();return /^\d+(\.\d+)?$/.test(r)?"".concat(r,"px"):r;}},{key:"getComputedWidth",value:function getComputedWidth(){var t=this.formatDimension(this.width);return t||("circular"===this.variant?"40px":"calc(100% - 20px)");}},{key:"getComputedHeight",value:function getComputedHeight(){var t=this.formatDimension(this.height);return t||("circular"===this.variant?"40px":"text"===this.variant?"1em":"20px");}},{key:"getComputedBorderRadius",value:function getComputedBorderRadius(){return this.borderRadius?this.borderRadius:"circular"===this.variant?"50%":"rounded"===this.variant?"var(--nile-radius-radius-md, var(--ng-radius-md, 4px))":"text"===this.variant?"var(--nile-radius-radius-xs, var(--ng-radius-xs, 2px))":"var(--nile-radius-radius-xs, var(--ng-radius-xs))";}},{key:"render",value:function render(){return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n part=\"base\"\n class=\"skeleton-loader\"\n >\n <div\n part=\"skeleton\"\n class=","\n style=\"\n width: ",";\n height: ",";\n border-radius: ",";\n \"\n ></div>\n </div>\n "])),s({skeleton:!0,"skeleton--text":"text"===this.variant,"skeleton--circular":"circular"===this.variant,"skeleton--rectangular":"rectangular"===this.variant,"skeleton--rounded":"rounded"===this.variant}),this.getComputedWidth(),this.getComputedHeight(),this.getComputedBorderRadius());}}],[{key:"styles",get:function get(){return[a];}}]);}(o));t([e({reflect:!0})],d.prototype,"variant",void 0),t([e({type:String})],d.prototype,"width",void 0),t([e({type:String})],d.prototype,"height",void 0),t([e({type:String,attribute:"border-radius"})],d.prototype,"borderRadius",void 0),_export("N",d=t([i("nile-skeleton-loader")],d));}};});
1
+ function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}System.register(["tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-skeleton-loader.css.cjs.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"],function(_export,_context){"use strict";var t,r,i,e,s,a,n,_templateObject,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 _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}function _inherits(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}return{setters:[function(_tslib){t=_tslib.__decorate;},function(_lit){r=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;e=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){s=_litDirectivesClassMapJs.classMap;},function(_nileSkeletonLoaderCssCjsJs){a=_nileSkeletonLoaderCssCjsJs.s;},function(_internalNileElementCjsJs){n=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",o=/*#__PURE__*/function(_n){function o(){var _this;_classCallCheck(this,o);_this=_callSuper(this,o,arguments),_this.variant="text",_this.width="",_this.height="",_this.borderRadius="";return _this;}_inherits(o,_n);return _createClass(o,[{key:"formatDimension",value:function formatDimension(t){if(!t)return"";if("number"==typeof t)return"".concat(t,"px");var r=String(t).trim();return /^\d+(\.\d+)?$/.test(r)?"".concat(r,"px"):r;}},{key:"getComputedWidth",value:function getComputedWidth(){var t=this.formatDimension(this.width);return t||("circular"===this.variant?"40px":"calc(100% - 20px)");}},{key:"getComputedHeight",value:function getComputedHeight(){var t=this.formatDimension(this.height);return t||("circular"===this.variant?"40px":"text"===this.variant?"1em":"20px");}},{key:"getComputedBorderRadius",value:function getComputedBorderRadius(){return this.borderRadius?this.borderRadius:"circular"===this.variant?"50%":"rounded"===this.variant?"var(--nile-radius-radius-md, var(--ng-radius-md, 4px))":"text"===this.variant?"var(--nile-radius-radius-xs, var(--ng-radius-xs, 2px))":"var(--nile-radius-radius-xs, var(--ng-radius-xs))";}},{key:"render",value:function render(){return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n part=\"base\"\n class=\"skeleton-loader\"\n >\n <div\n part=\"skeleton\"\n class=","\n style=\"\n width: ",";\n height: ",";\n border-radius: ",";\n \"\n ></div>\n </div>\n "])),s({skeleton:!0,"skeleton--text":"text"===this.variant,"skeleton--circular":"circular"===this.variant,"skeleton--rectangular":"rectangular"===this.variant,"skeleton--rounded":"rounded"===this.variant}),this.getComputedWidth(),this.getComputedHeight(),this.getComputedBorderRadius());}}],[{key:"styles",get:function get(){return[a];}}]);}(n));t([i({reflect:!0})],o.prototype,"variant",void 0),t([i({type:String})],o.prototype,"width",void 0),t([i({type:String})],o.prototype,"height",void 0),t([i({type:String,attribute:"border-radius"})],o.prototype,"borderRadius",void 0),_export("N",o=t([e("nile-skeleton-loader")],o));}};});
2
2
  //# sourceMappingURL=nile-skeleton-loader.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-skeleton-loader.cjs.js","sources":["../../../src/nile-skeleton-loader/nile-skeleton-loader.ts"],"sourcesContent":["import {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-skeleton-loader.css';\nimport NileElement from '../internal/nile-element';\n\n@customElement('nile-skeleton-loader')\nexport class NileSkeletonLoader extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ reflect: true }) variant: 'text' | 'circular' | 'rectangular' | 'rounded' = 'text';\n\n @property({ type: String }) width: string | number = '';\n\n @property({ type: String }) height: string | number = '';\n\n @property({ type: String, attribute: 'border-radius' }) borderRadius = '';\n\n private formatDimension(value: string | number): string {\n if (!value) return '';\n if (typeof value === 'number') {\n return `${value}px`;\n }\n const trimmed = String(value).trim();\n if (/^\\d+(\\.\\d+)?$/.test(trimmed)) {\n return `${trimmed}px`;\n }\n return trimmed;\n }\n\n private getComputedWidth(): string {\n const formattedWidth = this.formatDimension(this.width);\n if (formattedWidth) {\n return formattedWidth;\n }\n return this.variant === 'circular' ? '40px' : 'calc(100% - 20px)';\n }\n\n private getComputedHeight(): string {\n const formattedHeight = this.formatDimension(this.height);\n if (formattedHeight) {\n return formattedHeight;\n }\n if (this.variant === 'circular') {\n return '40px';\n }\n return this.variant === 'text' ? '1em' : '20px';\n }\n\n private getComputedBorderRadius(): string {\n if (this.borderRadius) {\n return this.borderRadius;\n }\n if (this.variant === 'circular') {\n return '50%';\n }\n if (this.variant === 'rounded') {\n return 'var(--nile-radius-radius-md, var(--ng-radius-md, 4px))';\n }\n if (this.variant === 'text') {\n return 'var(--nile-radius-radius-xs, var(--ng-radius-xs, 2px))';\n }\n return 'var(--nile-radius-radius-xs, var(--ng-radius-xs))';\n }\n\n public render(): TemplateResult {\n return html`\n <div\n part=\"base\"\n class=\"skeleton-loader\"\n >\n <div\n part=\"skeleton\"\n class=${classMap({\n skeleton: true,\n 'skeleton--text': this.variant === 'text',\n 'skeleton--circular': this.variant === 'circular',\n 'skeleton--rectangular': this.variant === 'rectangular',\n 'skeleton--rounded': this.variant === 'rounded',\n })}\n style=\"\n width: ${this.getComputedWidth()};\n height: ${this.getComputedHeight()};\n border-radius: ${this.getComputedBorderRadius()};\n \"\n ></div>\n </div>\n `;\n }\n}\n\nexport default NileSkeletonLoader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-skeleton-loader': NileSkeletonLoader;\n }\n}\n\n"],"names":["NileSkeletonLoader","d","constructor","this","variant","width","height","borderRadius","_this","_inherits","_o","_createClass","key","value","formatDimension","concat","trimmed","String","trim","test","getComputedWidth","formattedWidth","getComputedHeight","formattedHeight","getComputedBorderRadius","render","html","_templateObject","_taggedTemplateLiteral","classMap","skeleton","__decorate","get","styles","NileElement","property","reflect","prototype","type","attribute","_export","customElement"],"mappings":"6vGAYaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAKwBC,KAAAA,CAAOC,OAAAA,CAAoD,MAE5DD,CAAAA,KAAAA,CAAKE,KAAoB,CAAA,EAAA,CAEzBF,KAAAA,CAAMG,MAAAA,CAAoB,EAEEH,CAAAA,KAAAA,CAAYI,YAAG,CAAA,EAyExE,QAAAC,KAAA,EAnFQC,SAAA,CAAAR,CAAA,CAAAS,EAAA,SAAAC,YAAA,CAAAV,CAAA,GAAAW,GAAA,mBAAAC,KAAA,CAYC,SAAAC,eAAAA,CAAgBD,CAAAA,CAAAA,CACtB,GAAKA,CAAAA,CAAAA,CAAO,MAAO,EAAA,CACnB,GAAqB,QAAA,EAAA,MAAVA,CAAAA,CACT,CAAA,SAAAE,MAAA,CAAUF,CAAAA,OAEZ,GAAMG,CAAAA,CAAAA,CAAUC,MAAOJ,CAAAA,CAAAA,CAAAA,CAAOK,IAC9B,CAAA,CAAA,CAAA,MAAI,gBAAgBC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QAC3B,uBAA0C,CAAA,aAAA,GAAjBD,KAAKC,OAC9B,CAAA,mBAAA,CAAsC,YAAjBD,IAAKC,CAAAA,OAAAA,CAAAA,CAAAA,CAGjBD,IAAKiB,CAAAA,gBAAAA,CAAAA,CAAAA,CACJjB,IAAKmB,CAAAA,iBAAAA,CAAAA,CAAAA,CACEnB,IAAKqB,CAAAA,uBAAAA,CAAAA,CAAAA,EAK/B,CA9E4BO,KAAAA,GAAAA,UAAAA,GAAAA,CAJtB,SAAAC,IAAA,CACL,CAAA,MAAO,CAACC,CAAAA,CACT,EAUO,MAb8BC,CAAAA,GAKTH,CAAAA,CAAA,CAA5BI,CAAS,CAAA,CAAEC,SAAS,CAA0EpC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAqC,UAAA,SAAA,CAAA,IAAA,EAAA,CAAA,CAEnEN,EAAA,CAA3BI,CAAAA,CAAS,CAAEG,IAAMrB,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAsCjB,EAAAqC,SAAA,CAAA,OAAA,CAAA,IAAA,EAE5BN,CAAAA,CAAAA,CAAAA,CAAA,CAA3BI,CAAAA,CAAS,CAAEG,IAAMrB,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAuCjB,EAAAqC,SAAA,CAAA,QAAA,CAAA,IAAA,IAEDN,CAAA,CAAA,CAAvDI,CAAS,CAAA,CAAEG,IAAMrB,CAAAA,MAAAA,CAAQsB,UAAW,eAAqCvC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAqC,UAAA,cAAA,CAAA,IAAA,EAAA,CAAA,CAAAG,OAAA,KAX/DxC,EAAkB+B,CAAA,CAAA,CAD9BU,CAAc,CAAA,sBAAA,CAAA,CAAA,CACFzC"}
1
+ {"version":3,"file":"nile-skeleton-loader.cjs.js","sources":["../../../src/nile-skeleton-loader/nile-skeleton-loader.ts"],"sourcesContent":["import {\n LitElement,\n html,\n CSSResultArray,\n TemplateResult,\n} from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-skeleton-loader.css';\nimport NileElement from '../internal/nile-element';\n\n@customElement('nile-skeleton-loader')\nexport class NileSkeletonLoader extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ reflect: true }) variant: 'text' | 'circular' | 'rectangular' | 'rounded' = 'text';\n\n @property({ type: String }) width: string | number = '';\n\n @property({ type: String }) height: string | number = '';\n\n @property({ type: String, attribute: 'border-radius' }) borderRadius = '';\n\n private formatDimension(value: string | number): string {\n if (!value) return '';\n if (typeof value === 'number') {\n return `${value}px`;\n }\n const trimmed = String(value).trim();\n if (/^\\d+(\\.\\d+)?$/.test(trimmed)) {\n return `${trimmed}px`;\n }\n return trimmed;\n }\n\n private getComputedWidth(): string {\n const formattedWidth = this.formatDimension(this.width);\n if (formattedWidth) {\n return formattedWidth;\n }\n return this.variant === 'circular' ? '40px' : 'calc(100% - 20px)';\n }\n\n private getComputedHeight(): string {\n const formattedHeight = this.formatDimension(this.height);\n if (formattedHeight) {\n return formattedHeight;\n }\n if (this.variant === 'circular') {\n return '40px';\n }\n return this.variant === 'text' ? '1em' : '20px';\n }\n\n private getComputedBorderRadius(): string {\n if (this.borderRadius) {\n return this.borderRadius;\n }\n if (this.variant === 'circular') {\n return '50%';\n }\n if (this.variant === 'rounded') {\n return 'var(--nile-radius-radius-md, var(--ng-radius-md, 4px))';\n }\n if (this.variant === 'text') {\n return 'var(--nile-radius-radius-xs, var(--ng-radius-xs, 2px))';\n }\n return 'var(--nile-radius-radius-xs, var(--ng-radius-xs))';\n }\n\n public render(): TemplateResult {\n return html`\n <div\n part=\"base\"\n class=\"skeleton-loader\"\n >\n <div\n part=\"skeleton\"\n class=${classMap({\n skeleton: true,\n 'skeleton--text': this.variant === 'text',\n 'skeleton--circular': this.variant === 'circular',\n 'skeleton--rectangular': this.variant === 'rectangular',\n 'skeleton--rounded': this.variant === 'rounded',\n })}\n style=\"\n width: ${this.getComputedWidth()};\n height: ${this.getComputedHeight()};\n border-radius: ${this.getComputedBorderRadius()};\n \"\n ></div>\n </div>\n `;\n }\n}\n\nexport default NileSkeletonLoader;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-skeleton-loader': NileSkeletonLoader;\n }\n}\n\n"],"names":["NileSkeletonLoader","_n","o","this","variant","width","height","borderRadius","_this","_inherits","_createClass","key","value","formatDimension","concat","trimmed","String","trim","test","getComputedWidth","formattedWidth","getComputedHeight","formattedHeight","getComputedBorderRadius","render","html","_templateObject","_taggedTemplateLiteral","classMap","skeleton","__decorate","get","styles","NileElement","property","reflect","prototype","type","attribute","_export","customElement"],"mappings":"gjHAYaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,qEAKwBC,EAAAA,KAAAA,CAAOC,OAAoD,CAAA,MAAA,CAE5DD,KAAAA,CAAKE,KAAAA,CAAoB,GAEzBF,KAAAA,CAAMG,MAAAA,CAAoB,EAEEH,CAAAA,KAAAA,CAAYI,YAAG,CAAA,EAyExE,QAAAC,KAAA,EAnFQC,SAAA,CAAAP,CAAA,CAAAD,EAAA,SAAAS,YAAA,CAAAR,CAAA,GAAAS,GAAA,mBAAAC,KAAA,CAYC,SAAAC,eAAAA,CAAgBD,CAAAA,CAAAA,CACtB,GAAKA,CAAAA,CAAAA,CAAO,MAAO,EAAA,CACnB,GAAqB,QAAA,EAAA,MAAVA,CAAAA,CACT,CAAA,SAAAE,MAAA,CAAUF,CAAAA,OAEZ,GAAMG,CAAAA,CAAAA,CAAUC,MAAOJ,CAAAA,CAAAA,CAAAA,CAAOK,IAC9B,CAAA,CAAA,CAAA,MAAI,iBAAgBC,IAAKH,CAAAA,CAAAA,CAAAA,IAAAA,MAAAA,CACbA,CAAAA,OAELA,CACR,EAEO,GAAAJ,GAAA,oBAAAC,KAAA,UAAAO,gBAAAA,CAAAA,CAAAA,CACN,GAAMC,CAAAA,CAAAA,CAAiBjB,IAAKU,CAAAA,eAAAA,CAAgBV,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A,CACElB,IAAKoB,CAAAA,uBAAAA,CAAAA,CAAAA,EAK/B,CA9E4BO,KAAAA,GAAAA,UAAAA,GAAAA,CAJtB,SAAAC,IAAA,CACL,CAAA,MAAO,CAACC,CAAAA,CACT,EAUO,MAb8BC,CAAjC,GAKwBH,CAAAA,CAAA,CAA5BI,CAAS,CAAA,CAAEC,SAAS,CAA0EnC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAoC,UAAA,SAAA,CAAA,IAAA,EAAA,CAAA,CAEnEN,EAAA,CAA3BI,CAAAA,CAAS,CAAEG,IAAMrB,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAsChB,EAAAoC,SAAA,CAAA,OAAA,CAAA,IAAA,EAE5BN,CAAAA,CAAAA,CAAAA,CAAA,CAA3BI,CAAAA,CAAS,CAAEG,IAAMrB,CAAAA,MAAAA,CAAAA,CAAAA,CAAAA,CAAuChB,EAAAoC,SAAA,CAAA,QAAA,CAAA,IAAA,IAEDN,CAAA,CAAA,CAAvDI,CAAS,CAAA,CAAEG,IAAMrB,CAAAA,MAAAA,CAAQsB,UAAW,eAAqCtC,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAoC,UAAA,cAAA,CAAA,IAAA,EAAA,CAAA,CAAAG,OAAA,KAX/DvC,EAAkB8B,CAAA,CAAA,CAD9BU,CAAc,CAAA,sBAAA,CAAA,CAAA,CACFxC"}
@@ -1,4 +1,4 @@
1
- import{__decorate as t}from"tslib";import{html as r}from"lit";import{property as e,customElement as i}from"lit/decorators.js";import{classMap as s}from"lit/directives/class-map.js";import{s as a}from"./nile-skeleton-loader.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";let d=class extends o{constructor(){super(...arguments),this.variant="text",this.width="",this.height="",this.borderRadius=""}static get styles(){return[a]}formatDimension(t){if(!t)return"";if("number"==typeof t)return`${t}px`;const r=String(t).trim();return/^\d+(\.\d+)?$/.test(r)?`${r}px`:r}getComputedWidth(){const t=this.formatDimension(this.width);return t||("circular"===this.variant?"40px":"calc(100% - 20px)")}getComputedHeight(){const t=this.formatDimension(this.height);return t||("circular"===this.variant?"40px":"text"===this.variant?"1em":"20px")}getComputedBorderRadius(){return this.borderRadius?this.borderRadius:"circular"===this.variant?"50%":"rounded"===this.variant?"var(--nile-radius-radius-md, var(--ng-radius-md, 4px))":"text"===this.variant?"var(--nile-radius-radius-xs, var(--ng-radius-xs, 2px))":"var(--nile-radius-radius-xs, var(--ng-radius-xs))"}render(){return r`
1
+ import{__decorate as t}from"tslib";import{html as e}from"lit";import{property as r,customElement as i}from"lit/decorators.js";import{classMap as s}from"lit/directives/class-map.js";import{s as a}from"./nile-skeleton-loader.css.esm.js";import{N as n}from"../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";let o=class extends n{constructor(){super(...arguments),this.variant="text",this.width="",this.height="",this.borderRadius=""}static get styles(){return[a]}formatDimension(t){if(!t)return"";if("number"==typeof t)return`${t}px`;const e=String(t).trim();return/^\d+(\.\d+)?$/.test(e)?`${e}px`:e}getComputedWidth(){const t=this.formatDimension(this.width);return t||("circular"===this.variant?"40px":"calc(100% - 20px)")}getComputedHeight(){const t=this.formatDimension(this.height);return t||("circular"===this.variant?"40px":"text"===this.variant?"1em":"20px")}getComputedBorderRadius(){return this.borderRadius?this.borderRadius:"circular"===this.variant?"50%":"rounded"===this.variant?"var(--nile-radius-radius-md, var(--ng-radius-md, 4px))":"text"===this.variant?"var(--nile-radius-radius-xs, var(--ng-radius-xs, 2px))":"var(--nile-radius-radius-xs, var(--ng-radius-xs))"}render(){return e`
2
2
  <div
3
3
  part="base"
4
4
  class="skeleton-loader"
@@ -13,4 +13,4 @@ import{__decorate as t}from"tslib";import{html as r}from"lit";import{property as
13
13
  "
14
14
  ></div>
15
15
  </div>
16
- `}};t([e({reflect:!0})],d.prototype,"variant",void 0),t([e({type:String})],d.prototype,"width",void 0),t([e({type:String})],d.prototype,"height",void 0),t([e({type:String,attribute:"border-radius"})],d.prototype,"borderRadius",void 0),d=t([i("nile-skeleton-loader")],d);export{d as N};
16
+ `}};t([r({reflect:!0})],o.prototype,"variant",void 0),t([r({type:String})],o.prototype,"width",void 0),t([r({type:String})],o.prototype,"height",void 0),t([r({type:String,attribute:"border-radius"})],o.prototype,"borderRadius",void 0),o=t([i("nile-skeleton-loader")],o);export{o as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-slide-toggle.cjs.js","tslib","lit","./nile-slide-toggle.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js","lit/decorators.js"],function(_export,_context){"use strict";return{setters:[function(_nileSlideToggleCjsJs){_export("NileSlideToggle",_nileSlideToggleCjsJs.N);},function(_tslib){},function(_lit){},function(_nileSlideToggleCssCjsJs){},function(_internalNileElementCjsJs){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-slide-toggle.cjs.js","tslib","lit","./nile-slide-toggle.css.cjs.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","lit/directives/class-map.js","lit/decorators.js"],function(_export,_context){"use strict";return{setters:[function(_nileSlideToggleCjsJs){_export("NileSlideToggle",_nileSlideToggleCjsJs.N);},function(_tslib){},function(_lit){},function(_nileSlideToggleCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileSlideToggle}from"./nile-slide-toggle.esm.js";import"tslib";import"lit";import"./nile-slide-toggle.css.esm.js";import"../internal/nile-element.esm.js";import"lit/directives/class-map.js";import"lit/decorators.js";
1
+ export{N as NileSlideToggle}from"./nile-slide-toggle.esm.js";import"tslib";import"lit";import"./nile-slide-toggle.css.esm.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"lit/directives/class-map.js";import"lit/decorators.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","./nile-slide-toggle.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js","lit/decorators.js"],function(_export,_context){"use strict";var e,t,i,s,l,r,o,_templateObject,_templateObject2,_templateObject3,a;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(_nileSlideToggleCssCjsJs){i=_nileSlideToggleCssCjsJs.s;},function(_internalNileElementCjsJs){s=_internalNileElementCjsJs.N;},function(_litDirectivesClassMapJs){l=_litDirectivesClassMapJs.classMap;},function(_litDecoratorsJs){r=_litDecoratorsJs.property;o=_litDecoratorsJs.customElement;}],execute:function execute(){_export("N",a=/*#__PURE__*/function(_s){function a(){var _this;_classCallCheck(this,a);_this=_callSuper(this,a,arguments),_this.label="",_this.sublabel="",_this.textPosition="right",_this.isChecked=!1,_this.fullWidth=!1,_this.disabled=!1,_this.helpText="",_this.errorMessage="";return _this;}_inherits(a,_s);return _createClass(a,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(a,"connectedCallback",this,3)([]),this.emit("nile-init"),this.style.setProperty("--slide-toggle-width",this.fullWidth?"100%":"auto");}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(a,"disconnectedCallback",this,3)([]),this.emit("nile-destroy");}},{key:"toggleValue",value:function toggleValue(){this.isChecked=!this.isChecked,this.emit("change",{checked:this.isChecked,value:this.isChecked}),this.emit("nile-change",{checked:this.isChecked,value:this.isChecked});}},{key:"render",value:function render(){var e=!!this.helpText,i=!!this.errorMessage;return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n class=","\n part=\"base\"\n >\n <label \n class=\"","\"\n class=\"nile-slide-toggle__switch\" part=\"slide-toggle-switch\">\n <input\n type=\"checkbox\"\n .checked=","\n @change=","\n tabindex=","\n />\n <span class=\"nile-slide-toggle__slider\" part=\"slide-toggle-slider\"></span>\n </label>\n <span class=\"nile-slide-toggle__label\" part=\"slide-toggle-label-container\">\n <span part=\"slide-toggle-label\">","</span>\n <span class=\"nile-slide-toggle__sublabel\" part=\"slide-toggle-sublabel\">","</span>\n </span>\n </div>\n ","\n ","\n "])),l({"nile-slide-toggle":!0,"nile-slide--disabled":this.disabled,"nile-slide-toggle--reverse":"left"==this.textPosition}),l({"nile-slide-toggle__switch":!0,"nile-slide-toggle__switch--left":"right"==this.textPosition,"nile-slide-toggle__switch--right":"left"==this.textPosition}),this.isChecked,this.toggleValue,this.disabled?"-1":"0",this.label,this.sublabel,e?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral([" <nile-form-help-text>","</nile-form-help-text> "])),this.helpText):"",i?t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-form-error-message\n >","</nile-form-error-message\n >\n "])),this.errorMessage):"");}}]);}(s));a.styles=i,e([r({type:String})],a.prototype,"label",void 0),e([r({type:String})],a.prototype,"sublabel",void 0),e([r({type:String})],a.prototype,"textPosition",void 0),e([r({type:Boolean,reflect:!0})],a.prototype,"isChecked",void 0),e([r({type:Boolean,reflect:!0})],a.prototype,"fullWidth",void 0),e([r({type:Boolean,reflect:!0})],a.prototype,"disabled",void 0),e([r({attribute:"help-text",reflect:!0})],a.prototype,"helpText",void 0),e([r({attribute:"error-message",reflect:!0})],a.prototype,"errorMessage",void 0),_export("N",a=e([o("nile-slide-toggle")],a));}};});
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","./nile-slide-toggle.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js","lit/decorators.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,i,s,l,r,a,_templateObject,_templateObject2,_templateObject3,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(_nileSlideToggleCssCjsJs){i=_nileSlideToggleCssCjsJs.s;},function(_internalNileElementCjsJs){s=_internalNileElementCjsJs.N;},function(_litDirectivesClassMapJs){l=_litDirectivesClassMapJs.classMap;},function(_litDecoratorsJs){r=_litDecoratorsJs.property;a=_litDecoratorsJs.customElement;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",o=/*#__PURE__*/function(_s){function o(){var _this;_classCallCheck(this,o);_this=_callSuper(this,o,arguments),_this.label="",_this.sublabel="",_this.textPosition="right",_this.isChecked=!1,_this.fullWidth=!1,_this.disabled=!1,_this.helpText="",_this.errorMessage="";return _this;}_inherits(o,_s);return _createClass(o,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(o,"connectedCallback",this,3)([]),this.emit("nile-init"),this.style.setProperty("--slide-toggle-width",this.fullWidth?"100%":"auto");}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(o,"disconnectedCallback",this,3)([]),this.emit("nile-destroy");}},{key:"toggleValue",value:function toggleValue(){this.isChecked=!this.isChecked,this.emit("change",{checked:this.isChecked,value:this.isChecked}),this.emit("nile-change",{checked:this.isChecked,value:this.isChecked});}},{key:"render",value:function render(){var e=!!this.helpText,i=!!this.errorMessage;return t(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n class=","\n part=\"base\"\n >\n <label \n class=\"","\"\n class=\"nile-slide-toggle__switch\" part=\"slide-toggle-switch\">\n <input\n type=\"checkbox\"\n .checked=","\n @change=","\n tabindex=","\n />\n <span class=\"nile-slide-toggle__slider\" part=\"slide-toggle-slider\"></span>\n </label>\n <span class=\"nile-slide-toggle__label\" part=\"slide-toggle-label-container\">\n <span part=\"slide-toggle-label\">","</span>\n <span class=\"nile-slide-toggle__sublabel\" part=\"slide-toggle-sublabel\">","</span>\n </span>\n </div>\n ","\n ","\n "])),l({"nile-slide-toggle":!0,"nile-slide--disabled":this.disabled,"nile-slide-toggle--reverse":"left"==this.textPosition}),l({"nile-slide-toggle__switch":!0,"nile-slide-toggle__switch--left":"right"==this.textPosition,"nile-slide-toggle__switch--right":"left"==this.textPosition}),this.isChecked,this.toggleValue,this.disabled?"-1":"0",this.label,this.sublabel,e?t(_templateObject2||(_templateObject2=_taggedTemplateLiteral([" <nile-form-help-text>","</nile-form-help-text> "])),this.helpText):"",i?t(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["\n <nile-form-error-message\n >","</nile-form-error-message\n >\n "])),this.errorMessage):"");}}]);}(s));o.styles=i,e([r({type:String})],o.prototype,"label",void 0),e([r({type:String})],o.prototype,"sublabel",void 0),e([r({type:String})],o.prototype,"textPosition",void 0),e([r({type:Boolean,reflect:!0})],o.prototype,"isChecked",void 0),e([r({type:Boolean,reflect:!0})],o.prototype,"fullWidth",void 0),e([r({type:Boolean,reflect:!0})],o.prototype,"disabled",void 0),e([r({attribute:"help-text",reflect:!0})],o.prototype,"helpText",void 0),e([r({attribute:"error-message",reflect:!0})],o.prototype,"errorMessage",void 0),_export("N",o=e([a("nile-slide-toggle")],o));}};});
2
2
  //# sourceMappingURL=nile-slide-toggle.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-slide-toggle.cjs.js","sources":["../../../src/nile-slide-toggle/nile-slide-toggle.ts"],"sourcesContent":["import { CSSResultGroup,PropertyValues } from 'lit';\nimport { LitElement, html} from 'lit';\nimport styles from './nile-slide-toggle.css';\nimport NileElement from '../internal/nile-element';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { customElement, property } from 'lit/decorators.js';\n\n@customElement('nile-slide-toggle')\nexport class NileSlideToggle extends NileElement {\n public static styles: CSSResultGroup = styles;\n\n @property({ type: String }) label = '';\n\n @property({ type: String }) sublabel = '';\n\n @property({ type: String, }) textPosition:'left' | 'right' = 'right';\n\n @property({ type: Boolean, reflect: true }) isChecked = false;\n\n @property({ type: Boolean, reflect: true }) fullWidth = false;\n\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n @property({ attribute: 'help-text', reflect: true }) helpText = '';\n\n @property({ attribute: 'error-message', reflect: true }) errorMessage = '';\n\n connectedCallback() {\n super.connectedCallback();\n this.emit('nile-init');\n this.style.setProperty('--slide-toggle-width',this.fullWidth?'100%':'auto')\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.emit('nile-destroy');\n }\n\n toggleValue() {\n this.isChecked = !this.isChecked;\n this.emit('change',{ checked: this.isChecked, value: this.isChecked });\n this.emit('nile-change',{ checked: this.isChecked, value: this.isChecked });\n }\n\n public render() {\n const hasHelpText = this.helpText ? true : false;\n const hasErrorMessage = this.errorMessage ? true : false;\n\n return html`\n <div\n class=${classMap({\n 'nile-slide-toggle': true,\n 'nile-slide--disabled': this.disabled,\n 'nile-slide-toggle--reverse':this.textPosition=='left'\n })}\n part=\"base\"\n >\n <label \n class=\"${classMap({\n 'nile-slide-toggle__switch':true,\n 'nile-slide-toggle__switch--left':this.textPosition=='right',\n 'nile-slide-toggle__switch--right':this.textPosition=='left',\n })}\"\n class=\"nile-slide-toggle__switch\" part=\"slide-toggle-switch\">\n <input\n type=\"checkbox\"\n .checked=${this.isChecked}\n @change=${this.toggleValue}\n tabindex=${this.disabled ? '-1' : '0'}\n />\n <span class=\"nile-slide-toggle__slider\" part=\"slide-toggle-slider\"></span>\n </label>\n <span class=\"nile-slide-toggle__label\" part=\"slide-toggle-label-container\">\n <span part=\"slide-toggle-label\">${this.label}</span>\n <span class=\"nile-slide-toggle__sublabel\" part=\"slide-toggle-sublabel\">${this.sublabel}</span>\n </span>\n </div>\n ${hasHelpText\n ? html` <nile-form-help-text>${this.helpText}</nile-form-help-text> `\n : ``}\n ${hasErrorMessage\n ? html`\n <nile-form-error-message\n >${this.errorMessage}</nile-form-error-message\n >\n `\n : ``}\n `;\n }\n}\n"],"names":["NileSlideToggle","a","constructor","this","label","sublabel","textPosition","isChecked","fullWidth","disabled","helpText","errorMessage","_this","_inherits","_s","_createClass","key","value","connectedCallback","super","emit","style","setProperty","disconnectedCallback","toggleValue","checked","render","hasHelpText","hasErrorMessage","html","_templateObject","_taggedTemplateLiteral","classMap","_templateObject2","_templateObject3","NileElement","styles","__decorate","property","type","String","prototype","Boolean","reflect","attribute","_export","customElement"],"mappings":"myHAQaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,mCAGuBC,EAAAA,KAAAA,CAAKC,KAAG,CAAA,EAAA,CAERD,KAAAA,CAAQE,QAAAA,CAAG,GAEVF,KAAAA,CAAYG,YAAAA,CAAoB,OAEjBH,CAAAA,KAAAA,CAASI,SAAG,CAAA,CAAA,CAAA,CAEZJ,KAAAA,CAASK,SAAG,CAAA,CAAA,CAAA,CAEZL,KAAAA,CAAQM,QAAAA,CAAAA,CAAG,CAEFN,CAAAA,KAAAA,CAAQO,SAAG,EAEPP,CAAAA,KAAAA,CAAYQ,YAAG,CAAA,EAgEzE,QAAAC,KAAA,EA9DCC,SAAA,CAAAZ,CAAA,CAAAa,EAAA,SAAAC,YAAA,CAAAd,CAAA,GAAAe,GAAA,qBAAAC,KAAA,UAAAC,iBAAAA,CAAAA,EACEC,aAAAA,CAAAA,CAAAA,iCACAhB,IAAKiB,CAAAA,IAAAA,CAAK,WACVjB,CAAAA,CAAAA,IAAAA,CAAKkB,MAAMC,WAAY,CAAA,sBAAA,CAAuBnB,KAAKK,SAAU,CAAA,MAAA,CAAO,OACrE,EAED,GAAAQ,GAAA,wBAAAC,KAAA,UAAAM,oBAAAA,CAAAA,CACEJ,CAAAA,aAAAA,CAAAA,CAAAA,oCACAhB,IAAAA,CAAKiB,KAAK,cACX,CAAA,EAED,GAAAJ,GAAA,eAAAC,KAAA,UAAAO,WAAAA,CAAAA,CAAAA,CACErB,IAA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,CAAA,CAAEM,SAAW,CAAA,eAAA,CAAiBD,SAAS,CAA0B3C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAyC,UAAA,cAAA,CAAA,IAAA,EAAA,CAAA,CAAAI,OAAA,KAjBhE7C,EAAeqC,CAAA,CAAA,CAD3BS,CAAc,CAAA,mBAAA,CAAA,CAAA,CACF9C"}
1
+ {"version":3,"file":"nile-slide-toggle.cjs.js","sources":["../../../src/nile-slide-toggle/nile-slide-toggle.ts"],"sourcesContent":["import { CSSResultGroup,PropertyValues } from 'lit';\nimport { LitElement, html} from 'lit';\nimport styles from './nile-slide-toggle.css';\nimport NileElement from '../internal/nile-element';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { customElement, property } from 'lit/decorators.js';\n\n@customElement('nile-slide-toggle')\nexport class NileSlideToggle extends NileElement {\n public static styles: CSSResultGroup = styles;\n\n @property({ type: String }) label = '';\n\n @property({ type: String }) sublabel = '';\n\n @property({ type: String, }) textPosition:'left' | 'right' = 'right';\n\n @property({ type: Boolean, reflect: true }) isChecked = false;\n\n @property({ type: Boolean, reflect: true }) fullWidth = false;\n\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n @property({ attribute: 'help-text', reflect: true }) helpText = '';\n\n @property({ attribute: 'error-message', reflect: true }) errorMessage = '';\n\n connectedCallback() {\n super.connectedCallback();\n this.emit('nile-init');\n this.style.setProperty('--slide-toggle-width',this.fullWidth?'100%':'auto')\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.emit('nile-destroy');\n }\n\n toggleValue() {\n this.isChecked = !this.isChecked;\n this.emit('change',{ checked: this.isChecked, value: this.isChecked });\n this.emit('nile-change',{ checked: this.isChecked, value: this.isChecked });\n }\n\n public render() {\n const hasHelpText = this.helpText ? true : false;\n const hasErrorMessage = this.errorMessage ? true : false;\n\n return html`\n <div\n class=${classMap({\n 'nile-slide-toggle': true,\n 'nile-slide--disabled': this.disabled,\n 'nile-slide-toggle--reverse':this.textPosition=='left'\n })}\n part=\"base\"\n >\n <label \n class=\"${classMap({\n 'nile-slide-toggle__switch':true,\n 'nile-slide-toggle__switch--left':this.textPosition=='right',\n 'nile-slide-toggle__switch--right':this.textPosition=='left',\n })}\"\n class=\"nile-slide-toggle__switch\" part=\"slide-toggle-switch\">\n <input\n type=\"checkbox\"\n .checked=${this.isChecked}\n @change=${this.toggleValue}\n tabindex=${this.disabled ? '-1' : '0'}\n />\n <span class=\"nile-slide-toggle__slider\" part=\"slide-toggle-slider\"></span>\n </label>\n <span class=\"nile-slide-toggle__label\" part=\"slide-toggle-label-container\">\n <span part=\"slide-toggle-label\">${this.label}</span>\n <span class=\"nile-slide-toggle__sublabel\" part=\"slide-toggle-sublabel\">${this.sublabel}</span>\n </span>\n </div>\n ${hasHelpText\n ? html` <nile-form-help-text>${this.helpText}</nile-form-help-text> `\n : ``}\n ${hasErrorMessage\n ? html`\n <nile-form-error-message\n >${this.errorMessage}</nile-form-error-message\n >\n `\n : ``}\n `;\n }\n}\n"],"names":["NileSlideToggle","o","this","label","sublabel","textPosition","isChecked","fullWidth","disabled","helpText","errorMessage","_this","_inherits","_s","_createClass","key","value","connectedCallback","super","emit","style","setProperty","disconnectedCallback","toggleValue","checked","render","hasHelpText","hasErrorMessage","html","_templateObject","_taggedTemplateLiteral","classMap","_templateObject2","_templateObject3","NileElement","styles","__decorate","property","type","String","prototype","Boolean","reflect","attribute","_export","customElement"],"mappings":"slIAQaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,qEAGuBC,EAAAA,KAAAA,CAAKC,KAAG,CAAA,EAAA,CAERD,KAAAA,CAAQE,QAAG,CAAA,EAAA,CAEVF,KAAAA,CAAYG,YAAAA,CAAoB,OAEjBH,CAAAA,KAAAA,CAASI,WAAG,CAEZJ,CAAAA,KAAAA,CAASK,SAAG,CAAA,CAAA,CAAA,CAEZL,KAAAA,CAAQM,QAAAA,CAAAA,CAAG,EAEFN,KAAAA,CAAQO,QAAAA,CAAG,EAEPP,CAAAA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AAA,CAAAA,CAAAA,CAAAA,CAAAwC,UAAA,WAAA,CAAA,IAAA,EAAA,CAAA,CAElBJ,CAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,KAAMG,OAASC,CAAAA,OAAAA,CAAAA,CAAS,KAA0B1C,CAAAwC,CAAAA,SAAAA,CAAA,gBAAA,EAElBJ,CAAAA,CAAAA,CAAAA,CAAA,CAA3CC,CAAS,CAAA,CAAEC,KAAMG,OAASC,CAAAA,OAAAA,CAAAA,CAAS,KAAyB1C,CAAAwC,CAAAA,SAAAA,CAAA,eAAA,EAERJ,CAAAA,CAAAA,CAAAA,CAAA,CAApDC,CAAAA,CAAS,CAAEM,SAAAA,CAAW,YAAaD,OAAS,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAAsB1C,EAAAwC,SAAA,CAAA,UAAA,CAAA,IAAA,IAEVJ,CAAA,CAAA,CAAxDC,CAAS,CAAA,CAAEM,SAAW,CAAA,eAAA,CAAiBD,SAAS,CAA0B1C,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAwC,UAAA,cAAA,CAAA,IAAA,EAAA,CAAA,CAAAI,OAAA,KAjBhE5C,EAAeoC,CAAA,CAAA,CAD3BS,CAAc,CAAA,mBAAA,CAAA,CAAA,CACF7C"}
@@ -1,4 +1,4 @@
1
- import{__decorate as e}from"tslib";import{html as t}from"lit";import{s as i}from"./nile-slide-toggle.css.esm.js";import{N as s}from"../internal/nile-element.esm.js";import{classMap as l}from"lit/directives/class-map.js";import{property as r,customElement as o}from"lit/decorators.js";let a=class extends s{constructor(){super(...arguments),this.label="",this.sublabel="",this.textPosition="right",this.isChecked=!1,this.fullWidth=!1,this.disabled=!1,this.helpText="",this.errorMessage=""}connectedCallback(){super.connectedCallback(),this.emit("nile-init"),this.style.setProperty("--slide-toggle-width",this.fullWidth?"100%":"auto")}disconnectedCallback(){super.disconnectedCallback(),this.emit("nile-destroy")}toggleValue(){this.isChecked=!this.isChecked,this.emit("change",{checked:this.isChecked,value:this.isChecked}),this.emit("nile-change",{checked:this.isChecked,value:this.isChecked})}render(){const e=!!this.helpText,i=!!this.errorMessage;return t`
1
+ import{__decorate as e}from"tslib";import{html as t}from"lit";import{s as i}from"./nile-slide-toggle.css.esm.js";import{N as s}from"../internal/nile-element.esm.js";import{classMap as l}from"lit/directives/class-map.js";import{property as r,customElement as a}from"lit/decorators.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 o=class extends s{constructor(){super(...arguments),this.label="",this.sublabel="",this.textPosition="right",this.isChecked=!1,this.fullWidth=!1,this.disabled=!1,this.helpText="",this.errorMessage=""}connectedCallback(){super.connectedCallback(),this.emit("nile-init"),this.style.setProperty("--slide-toggle-width",this.fullWidth?"100%":"auto")}disconnectedCallback(){super.disconnectedCallback(),this.emit("nile-destroy")}toggleValue(){this.isChecked=!this.isChecked,this.emit("change",{checked:this.isChecked,value:this.isChecked}),this.emit("nile-change",{checked:this.isChecked,value:this.isChecked})}render(){const e=!!this.helpText,i=!!this.errorMessage;return t`
2
2
  <div
3
3
  class=${l({"nile-slide-toggle":!0,"nile-slide--disabled":this.disabled,"nile-slide-toggle--reverse":"left"==this.textPosition})}
4
4
  part="base"
@@ -25,4 +25,4 @@ import{__decorate as e}from"tslib";import{html as t}from"lit";import{s as i}from
25
25
  >${this.errorMessage}</nile-form-error-message
26
26
  >
27
27
  `:""}
28
- `}};a.styles=i,e([r({type:String})],a.prototype,"label",void 0),e([r({type:String})],a.prototype,"sublabel",void 0),e([r({type:String})],a.prototype,"textPosition",void 0),e([r({type:Boolean,reflect:!0})],a.prototype,"isChecked",void 0),e([r({type:Boolean,reflect:!0})],a.prototype,"fullWidth",void 0),e([r({type:Boolean,reflect:!0})],a.prototype,"disabled",void 0),e([r({attribute:"help-text",reflect:!0})],a.prototype,"helpText",void 0),e([r({attribute:"error-message",reflect:!0})],a.prototype,"errorMessage",void 0),a=e([o("nile-slide-toggle")],a);export{a as N};
28
+ `}};o.styles=i,e([r({type:String})],o.prototype,"label",void 0),e([r({type:String})],o.prototype,"sublabel",void 0),e([r({type:String})],o.prototype,"textPosition",void 0),e([r({type:Boolean,reflect:!0})],o.prototype,"isChecked",void 0),e([r({type:Boolean,reflect:!0})],o.prototype,"fullWidth",void 0),e([r({type:Boolean,reflect:!0})],o.prototype,"disabled",void 0),e([r({attribute:"help-text",reflect:!0})],o.prototype,"helpText",void 0),e([r({attribute:"error-message",reflect:!0})],o.prototype,"errorMessage",void 0),o=e([a("nile-slide-toggle")],o);export{o as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-slider.cjs.js","tslib","./nile-slider.css.cjs.js","lit","../internal/nile-element.cjs.js","lit/directives/class-map.js","lit/decorators.js","./nile-slider.template.cjs.js","./utils/nile-slider.utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSliderCjsJs){_export("NileSlider",_nileSliderCjsJs.N);},function(_tslib){},function(_nileSliderCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){},function(_nileSliderTemplateCjsJs){},function(_utilsNileSliderUtilsCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-slider.cjs.js","tslib","./nile-slider.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","lit/directives/class-map.js","lit/decorators.js","./nile-slider.template.cjs.js","./utils/nile-slider.utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSliderCjsJs){_export("NileSlider",_nileSliderCjsJs.N);},function(_tslib){},function(_nileSliderCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_litDirectivesClassMapJs){},function(_litDecoratorsJs){},function(_nileSliderTemplateCjsJs){},function(_utilsNileSliderUtilsCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileSlider}from"./nile-slider.esm.js";import"tslib";import"./nile-slider.css.esm.js";import"lit";import"../internal/nile-element.esm.js";import"lit/directives/class-map.js";import"lit/decorators.js";import"./nile-slider.template.esm.js";import"./utils/nile-slider.utils.esm.js";
1
+ export{N as NileSlider}from"./nile-slider.esm.js";import"tslib";import"./nile-slider.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"lit/directives/class-map.js";import"lit/decorators.js";import"./nile-slider.template.esm.js";import"./utils/nile-slider.utils.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-slider.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js","lit","lit/decorators.js","./nile-slider.template.cjs.js","./utils/nile-slider.utils.cjs.js"],function(_export,_context){"use strict";var t,s,i,e,h,a,l,n,o,r,c,d,p,m,u,v,b,g,_templateObject,_templateObject2,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(_nileSliderCssCjsJs){s=_nileSliderCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;},function(_litDirectivesClassMapJs){e=_litDirectivesClassMapJs.classMap;},function(_lit){h=_lit.html;},function(_litDecoratorsJs){a=_litDecoratorsJs.property;l=_litDecoratorsJs.customElement;},function(_nileSliderTemplateCjsJs){n=_nileSliderTemplateCjsJs.l;o=_nileSliderTemplateCjsJs.r;r=_nileSliderTemplateCjsJs.s;},function(_utilsNileSliderUtilsCjsJs){c=_utilsNileSliderUtilsCjsJs.h;d=_utilsNileSliderUtilsCjsJs.a;p=_utilsNileSliderUtilsCjsJs.b;m=_utilsNileSliderUtilsCjsJs.v;u=_utilsNileSliderUtilsCjsJs.r;v=_utilsNileSliderUtilsCjsJs.c;b=_utilsNileSliderUtilsCjsJs.d;g=_utilsNileSliderUtilsCjsJs.g;}],execute:function execute(){_export("N",f=/*#__PURE__*/function(_i){function f(){var _this;_classCallCheck(this,f);_this=_callSuper(this,f,arguments),_this.minValue=0,_this.value=_this.minValue,_this.maxValue=100,_this.rangeOneValue=_this.minValue,_this.rangeTwoValue=_this.maxValue,_this.showLabel=!1,_this.labelStart="",_this.labelEnd="",_this.rangeSlider=!1,_this.labelPosition="top",_this.tooltipPosition="top",_this.activeThumb=null,_this.onMouseMove=function(t){var s=_this.range.getBoundingClientRect();if(_this.rangeSlider){"one"===_this.activeThumb?d(t,s,_assertThisInitialized(_this)):"two"===_this.activeThumb&&p(t,s,_assertThisInitialized(_this));var _i2=m(_this.rangeOneValue,_assertThisInitialized(_this)),_e=m(_this.rangeTwoValue,_assertThisInitialized(_this)),_h=Math.min(_i2,_e),_a=Math.abs(_e-_i2);_this.rangeTwoValue>=_this.rangeOneValue&&(_this.completed.style.left="".concat(_h,"%"),_this.completed.style.width="".concat(_a,"%"));}else c(t,s,_assertThisInitialized(_this));},_this.onMouseUp=function(){_this.rangeSlider?(_this.emit("nile-button-first-change-end",{value:_this.rangeOneValue}),_this.emit("nile-button-last-change-end",{value:_this.rangeTwoValue})):_this.emit("nile-change-end",{value:_this.value}),_this.activeThumb=null,u(_assertThisInitialized(_this));},_this.onMouseDown=function(t){var s=_this.range.getBoundingClientRect(),i=(t.clientX-s.left)/s.width*100,e=_this.minValue+i/100*(_this.maxValue-_this.minValue);if(_this.rangeSlider){b(e,_assertThisInitialized(_this));var _t=Math.abs(e-_this.rangeOneValue),_s=Math.abs(e-_this.rangeTwoValue);_this.activeThumb=_t<=_s?"one":"two",v(_assertThisInitialized(_this));}else c(t,s,_assertThisInitialized(_this)),_this.activeThumb="one",v(_assertThisInitialized(_this));};return _this;}_inherits(f,_i);return _createClass(f,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(f,"connectedCallback",this,3)([]),this.emit("nile-init"),this.rangeSlider&&this.checkRangeValidity();}},{key:"firstUpdated",value:function firstUpdated(t){if(g(this),!this.rangeSlider&&t.has("value")){this.value=this.checkValueValidity(this.value,this.minValue,this.maxValue);var _t2=m(this.value,this);this.buttonOne.style.left="".concat(_t2,"%"),this.completed.style.width="".concat(_t2,"%");}else if(this.rangeSlider){var _t3=m(this.rangeOneValue,this),_s2=m(this.rangeTwoValue,this);this.buttonOne&&(this.buttonOne.style.left="".concat(_t3,"%")),this.buttonTwo&&(this.buttonTwo.style.left="".concat(_s2,"%"));var _i3=Math.min(_t3,_s2),_e2=Math.abs(_s2-_t3);this.completed.style.left="".concat(_i3,"%"),this.completed.style.width="".concat(_e2,"%");}}},{key:"checkValueValidity",value:function checkValueValidity(t,s,i){return i-s<=1?Math.max(s,Math.min(t,i)):Math.floor(Math.max(s,Math.min(t,i)));}},{key:"checkRangeValidity",value:function checkRangeValidity(){this.rangeTwoValue>this.maxValue?this.rangeTwoValue=this.maxValue:this.rangeTwoValue<this.rangeOneValue&&(this.rangeTwoValue=this.rangeOneValue),this.rangeOneValue<this.minValue?this.rangeOneValue=this.minValue:this.rangeOneValue>this.rangeTwoValue&&(this.rangeOneValue=this.rangeTwoValue);}},{key:"render",value:function render(){var t=this.showLabel,s=t?"label-start label-end":void 0;return h(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n part=\"base\"\n class=","\n >\n <slot class=\"span\" name=\"prefix\"></slot>\n \n <div\n part=\"range-container\"\n class=","\n >\n ","\n \n <div\n class=\"range\"\n part=\"range\"\n role=\"group\"\n aria-labelledby=","\n >\n <span class=\"range-completed\" part=\"range-completed\"></span>\n ","\n </div>\n </div>\n \n <slot class=\"span\" name=\"suffix\"></slot>\n </div>\n "])),e({container:!0,"align-item-center":!t}),e({"range-container":!0,"column-reverse":"bottom"===this.labelPosition}),t?n(this):h(_templateObject2||(_templateObject2=_taggedTemplateLiteral([""]))),s,this.rangeSlider?o(this):r(this));}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(f,"disconnectedCallback",this,3)([]),this.emit("nile-destroy");}}],[{key:"styles",get:function get(){return[s];}}]);}(i));t([a({type:Number})],f.prototype,"minValue",void 0),t([a({type:Number})],f.prototype,"value",void 0),t([a({type:Number})],f.prototype,"maxValue",void 0),t([a({type:Number})],f.prototype,"rangeOneValue",void 0),t([a({type:Number})],f.prototype,"rangeTwoValue",void 0),t([a({type:Boolean})],f.prototype,"showLabel",void 0),t([a({type:String})],f.prototype,"labelStart",void 0),t([a({type:String})],f.prototype,"labelEnd",void 0),t([a({type:Boolean})],f.prototype,"rangeSlider",void 0),t([a({type:String})],f.prototype,"labelPosition",void 0),t([a({type:String})],f.prototype,"tooltipPosition",void 0),_export("N",f=t([l("nile-slider")],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-slider.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/class-map.js","lit","lit/decorators.js","./nile-slider.template.cjs.js","./utils/nile-slider.utils.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 t,s,i,e,h,a,l,n,r,o,c,p,d,m,u,v,b,y,_templateObject,_templateObject2,g;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(_nileSliderCssCjsJs){s=_nileSliderCssCjsJs.s;},function(_internalNileElementCjsJs){i=_internalNileElementCjsJs.N;},function(_litDirectivesClassMapJs){e=_litDirectivesClassMapJs.classMap;},function(_lit){h=_lit.html;},function(_litDecoratorsJs){a=_litDecoratorsJs.property;l=_litDecoratorsJs.customElement;},function(_nileSliderTemplateCjsJs){n=_nileSliderTemplateCjsJs.l;r=_nileSliderTemplateCjsJs.r;o=_nileSliderTemplateCjsJs.s;},function(_utilsNileSliderUtilsCjsJs){c=_utilsNileSliderUtilsCjsJs.h;p=_utilsNileSliderUtilsCjsJs.a;d=_utilsNileSliderUtilsCjsJs.b;m=_utilsNileSliderUtilsCjsJs.v;u=_utilsNileSliderUtilsCjsJs.r;v=_utilsNileSliderUtilsCjsJs.c;b=_utilsNileSliderUtilsCjsJs.d;y=_utilsNileSliderUtilsCjsJs.g;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",g=/*#__PURE__*/function(_i){function g(){var _this;_classCallCheck(this,g);_this=_callSuper(this,g,arguments),_this.minValue=0,_this.value=_this.minValue,_this.maxValue=100,_this.rangeOneValue=_this.minValue,_this.rangeTwoValue=_this.maxValue,_this.showLabel=!1,_this.labelStart="",_this.labelEnd="",_this.rangeSlider=!1,_this.labelPosition="top",_this.tooltipPosition="top",_this.activeThumb=null,_this.onMouseMove=function(t){var s=_this.range.getBoundingClientRect();if(_this.rangeSlider){"one"===_this.activeThumb?p(t,s,_assertThisInitialized(_this)):"two"===_this.activeThumb&&d(t,s,_assertThisInitialized(_this));var _i2=m(_this.rangeOneValue,_assertThisInitialized(_this)),_e=m(_this.rangeTwoValue,_assertThisInitialized(_this)),_h=Math.min(_i2,_e),_a=Math.abs(_e-_i2);_this.rangeTwoValue>=_this.rangeOneValue&&(_this.completed.style.left="".concat(_h,"%"),_this.completed.style.width="".concat(_a,"%"));}else c(t,s,_assertThisInitialized(_this));},_this.onMouseUp=function(){_this.rangeSlider?(_this.emit("nile-button-first-change-end",{value:_this.rangeOneValue}),_this.emit("nile-button-last-change-end",{value:_this.rangeTwoValue})):_this.emit("nile-change-end",{value:_this.value}),_this.activeThumb=null,u(_assertThisInitialized(_this));},_this.onMouseDown=function(t){var s=_this.range.getBoundingClientRect(),i=(t.clientX-s.left)/s.width*100,e=_this.minValue+i/100*(_this.maxValue-_this.minValue);if(_this.rangeSlider){b(e,_assertThisInitialized(_this));var _t=Math.abs(e-_this.rangeOneValue),_s=Math.abs(e-_this.rangeTwoValue);_this.activeThumb=_t<=_s?"one":"two",v(_assertThisInitialized(_this));}else c(t,s,_assertThisInitialized(_this)),_this.activeThumb="one",v(_assertThisInitialized(_this));};return _this;}_inherits(g,_i);return _createClass(g,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(g,"connectedCallback",this,3)([]),this.emit("nile-init"),this.rangeSlider&&this.checkRangeValidity();}},{key:"firstUpdated",value:function firstUpdated(t){if(y(this),!this.rangeSlider&&t.has("value")){this.value=this.checkValueValidity(this.value,this.minValue,this.maxValue);var _t2=m(this.value,this);this.buttonOne.style.left="".concat(_t2,"%"),this.completed.style.width="".concat(_t2,"%");}else if(this.rangeSlider){var _t3=m(this.rangeOneValue,this),_s2=m(this.rangeTwoValue,this);this.buttonOne&&(this.buttonOne.style.left="".concat(_t3,"%")),this.buttonTwo&&(this.buttonTwo.style.left="".concat(_s2,"%"));var _i3=Math.min(_t3,_s2),_e2=Math.abs(_s2-_t3);this.completed.style.left="".concat(_i3,"%"),this.completed.style.width="".concat(_e2,"%");}}},{key:"checkValueValidity",value:function checkValueValidity(t,s,i){return i-s<=1?Math.max(s,Math.min(t,i)):Math.floor(Math.max(s,Math.min(t,i)));}},{key:"checkRangeValidity",value:function checkRangeValidity(){this.rangeTwoValue>this.maxValue?this.rangeTwoValue=this.maxValue:this.rangeTwoValue<this.rangeOneValue&&(this.rangeTwoValue=this.rangeOneValue),this.rangeOneValue<this.minValue?this.rangeOneValue=this.minValue:this.rangeOneValue>this.rangeTwoValue&&(this.rangeOneValue=this.rangeTwoValue);}},{key:"render",value:function render(){var t=this.showLabel,s=t?"label-start label-end":void 0;return h(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <div\n part=\"base\"\n class=","\n >\n <slot class=\"span\" name=\"prefix\"></slot>\n \n <div\n part=\"range-container\"\n class=","\n >\n ","\n \n <div\n class=\"range\"\n part=\"range\"\n role=\"group\"\n aria-labelledby=","\n >\n <span class=\"range-completed\" part=\"range-completed\"></span>\n ","\n </div>\n </div>\n \n <slot class=\"span\" name=\"suffix\"></slot>\n </div>\n "])),e({container:!0,"align-item-center":!t}),e({"range-container":!0,"column-reverse":"bottom"===this.labelPosition}),t?n(this):h(_templateObject2||(_templateObject2=_taggedTemplateLiteral([""]))),s,this.rangeSlider?r(this):o(this));}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(g,"disconnectedCallback",this,3)([]),this.emit("nile-destroy");}}],[{key:"styles",get:function get(){return[s];}}]);}(i));t([a({type:Number})],g.prototype,"minValue",void 0),t([a({type:Number})],g.prototype,"value",void 0),t([a({type:Number})],g.prototype,"maxValue",void 0),t([a({type:Number})],g.prototype,"rangeOneValue",void 0),t([a({type:Number})],g.prototype,"rangeTwoValue",void 0),t([a({type:Boolean})],g.prototype,"showLabel",void 0),t([a({type:String})],g.prototype,"labelStart",void 0),t([a({type:String})],g.prototype,"labelEnd",void 0),t([a({type:Boolean})],g.prototype,"rangeSlider",void 0),t([a({type:String})],g.prototype,"labelPosition",void 0),t([a({type:String})],g.prototype,"tooltipPosition",void 0),_export("N",g=t([l("nile-slider")],g));}};});
2
2
  //# sourceMappingURL=nile-slider.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-slider.cjs.js","sources":["../../../src/nile-slider/nile-slider.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-slider.css';\nimport NileElement from '../internal/nile-element';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { TooltipPosition } from './types/nile-slider.types';\nimport { NileSliderEvents } from './types/nile-slider.enums';\nimport { rangeSlider, singleSlider, lableContaier } from './nile-slider.template';\nimport { \n handleSingleSlider, \n handleRangeOne, \n handleRangeTwo, \n getHtmlElements, \n removeMoveListeners,\n valueToPercent,\n handleTwoThumbClick,\n addMoveListeners\n} from './utils/nile-slider.utils'\n\n/** \n * Nile slider component.\n *\n * @tag nile-slider\n */\n@customElement('nile-slider')\nexport class NileSlider extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number }) minValue: number = 0;\n @property({ type: Number }) value: number = this.minValue;\n @property({ type: Number }) maxValue: number = 100;\n @property({ type: Number }) rangeOneValue: number = this.minValue;\n @property({ type: Number }) rangeTwoValue: number = this.maxValue;\n @property({ type: Boolean}) showLabel: boolean = false;\n @property({ type: String }) labelStart: string = \"\";\n @property({ type: String }) labelEnd: string = \"\";\n @property({ type: Boolean}) rangeSlider: boolean = false;\n @property({ type: String }) labelPosition: string = \"top\";\n @property({ type: String }) tooltipPosition: TooltipPosition = \"top\";\n\n public buttonOne!: HTMLElement;\n public buttonTwo!: HTMLElement;\n public range!: HTMLElement;\n public completed!: HTMLElement;\n public activeThumb: 'one' | 'two' | null = null;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.emit(NileSliderEvents.NILE_INIT); \n\n if(this.rangeSlider) {\n this.checkRangeValidity();\n }\n }\n\n firstUpdated(changedProps: Map<string, any>): void {\n getHtmlElements(this);\n\n if (!this.rangeSlider && changedProps.has('value')) {\n this.value = this.checkValueValidity(this.value, this.minValue, this.maxValue);\n const percent = valueToPercent(this.value, this);\n \n this.buttonOne.style.left = `${percent}%`;\n this.completed.style.width = `${percent}%`;\n } else if (this.rangeSlider) {\n \n const percentOne = valueToPercent(this.rangeOneValue, this);\n const percentTwo = valueToPercent(this.rangeTwoValue, this);\n \n if (this.buttonOne) this.buttonOne.style.left = `${percentOne}%`;\n if (this.buttonTwo) this.buttonTwo.style.left = `${percentTwo}%`;\n \n const left = Math.min(percentOne, percentTwo);\n const width = Math.abs(percentTwo - percentOne);\n \n this.completed.style.left = `${left}%`;\n this.completed.style.width = `${width}%`;\n }\n }\n\n checkValueValidity(value: number, min: number, max: number): number {\n if(max - min <= 1) { \n return Math.max(min, Math.min(value, max));\n }\n return Math.floor(Math.max(min, Math.min(value, max)));\n }\n\n checkRangeValidity(): void {\n if(this.rangeTwoValue > this.maxValue) {\n this.rangeTwoValue = this.maxValue;\n } else if(this.rangeTwoValue < this.rangeOneValue) {\n this.rangeTwoValue = this.rangeOneValue;\n }\n\n if(this.rangeOneValue < this.minValue) {\n this.rangeOneValue = this.minValue;\n } else if(this.rangeOneValue > this.rangeTwoValue) {\n this.rangeOneValue = this.rangeTwoValue;\n }\n } \n\n public onMouseMove = (e: MouseEvent): void => {\n const rect = this.range.getBoundingClientRect();\n\n if (!this.rangeSlider) {\n handleSingleSlider(e, rect, this);\n } else {\n if (this.activeThumb === 'one') {\n handleRangeOne(e, rect, this);\n } else if (this.activeThumb === 'two') {\n handleRangeTwo(e, rect, this);\n }\n\n const start = valueToPercent(this.rangeOneValue, this);\n const end = valueToPercent(this.rangeTwoValue, this);\n const left = Math.min(start, end);\n const width = Math.abs(end - start);\n\n if(this.rangeTwoValue >= this.rangeOneValue) {\n this.completed.style.left = `${left}%`;\n this.completed.style.width = `${width}%`;\n }\n }\n };\n\n public onMouseUp = (): void => {\n if(!this.rangeSlider) this.emit(NileSliderEvents.NILE_CHANGE_END, { value: this.value });\n else {\n this.emit(NileSliderEvents.NILE_BUTTON_FIRST_CHANGE_END, { value: this.rangeOneValue });\n this.emit(NileSliderEvents.NILE_BUTTON_LAST_CHANGE_END, { value: this.rangeTwoValue });\n }\n this.activeThumb = null;\n removeMoveListeners(this);\n };\n\n public onMouseDown = (e: MouseEvent): void => {\n const rect = this.range.getBoundingClientRect();\n const clickX = e.clientX - rect.left;\n const percent = (clickX / rect.width) * 100;\n const value = this.minValue + (percent / 100) * (this.maxValue - this.minValue);\n \n if (!this.rangeSlider) {\n handleSingleSlider(e, rect, this);\n this.activeThumb = 'one';\n addMoveListeners(this);\n } else {\n handleTwoThumbClick(value, this);\n const distToOne = Math.abs(value - this.rangeOneValue);\n const distToTwo = Math.abs(value - this.rangeTwoValue);\n this.activeThumb = distToOne <= distToTwo ? 'one' : 'two';\n addMoveListeners(this);\n }\n };\n\n public render(): TemplateResult {\n const hasLabels = this.showLabel;\n const ariaLabelledby = hasLabels ? 'label-start label-end' : undefined;\n \n return html`\n <div\n part=\"base\"\n class=${classMap({\n 'container': true,\n 'align-item-center': !hasLabels\n })}\n >\n <slot class=\"span\" name=\"prefix\"></slot>\n \n <div\n part=\"range-container\"\n class=${classMap({\n 'range-container': true,\n 'column-reverse': this.labelPosition === 'bottom'\n })}\n >\n ${hasLabels ? lableContaier(this) : html``}\n \n <div\n class=\"range\"\n part=\"range\"\n role=\"group\"\n aria-labelledby=${ariaLabelledby}\n >\n <span class=\"range-completed\" part=\"range-completed\"></span>\n ${this.rangeSlider ? rangeSlider(this) : singleSlider(this)}\n </div>\n </div>\n \n <slot class=\"span\" name=\"suffix\"></slot>\n </div>\n `;\n } \n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.emit(NileSliderEvents.NILE_DESTROY);\n }\n}\n\nexport default NileSlider;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-slider': NileSlider;\n }\n}\n"],"names":["NileSlider","f","this","minValue","value","maxValue","rangeOneValue","rangeTwoValue","showLabel","labelStart","labelEnd","rangeSlider","labelPosition","tooltipPosition","activeThumb","onMouseMove","e","rect","range","getBoundingClientRect","handleRangeOne","handleRangeTwo","start","valueToPercent","end","left","Math","min","width","abs","completed","style","concat","handleSingleSlider","onMouseUp","emit","removeMoveListeners","onMouseDown","percent","clientX","handleTwoThumbClick","distToOne","distToTwo","addMoveListeners","_this","_inherits","_i","_createClass","key","connectedCallback","super","checkRangeValidity","firstUpdated","changedProps","getHtmlElements","has","checkValueValidity","buttonOne","percentOne","percentTwo","buttonTwo","max","floor","render","hasLabels","ariaLabelledby","undefined","html","_templateObject","_taggedTemplateLiteral","classMap","container","lableContaier","_templateObject2","singleSlider","disconnectedCallback","__decorate","get","styles","NileElement","property","type","Number","prototype","Boolean","String","customElement"],"mappings":"svIAgCaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,uEAKuBC,KAAAA,CAAQC,QAAAA,CAAW,CACnBD,CAAAA,KAAA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":["/**\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-slider.css';\nimport NileElement from '../internal/nile-element';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { html, CSSResultArray, TemplateResult } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { TooltipPosition } from './types/nile-slider.types';\nimport { NileSliderEvents } from './types/nile-slider.enums';\nimport { rangeSlider, singleSlider, lableContaier } from './nile-slider.template';\nimport { \n handleSingleSlider, \n handleRangeOne, \n handleRangeTwo, \n getHtmlElements, \n removeMoveListeners,\n valueToPercent,\n handleTwoThumbClick,\n addMoveListeners\n} from './utils/nile-slider.utils'\n\n/** \n * Nile slider component.\n *\n * @tag nile-slider\n */\n@customElement('nile-slider')\nexport class NileSlider extends NileElement {\n public static get styles(): CSSResultArray {\n return [styles];\n }\n\n @property({ type: Number }) minValue: number = 0;\n @property({ type: Number }) value: number = this.minValue;\n @property({ type: Number }) maxValue: number = 100;\n @property({ type: Number }) rangeOneValue: number = this.minValue;\n @property({ type: Number }) rangeTwoValue: number = this.maxValue;\n @property({ type: Boolean}) showLabel: boolean = false;\n @property({ type: String }) labelStart: string = \"\";\n @property({ type: String }) labelEnd: string = \"\";\n @property({ type: Boolean}) rangeSlider: boolean = false;\n @property({ type: String }) labelPosition: string = \"top\";\n @property({ type: String }) tooltipPosition: TooltipPosition = \"top\";\n\n public buttonOne!: HTMLElement;\n public buttonTwo!: HTMLElement;\n public range!: HTMLElement;\n public completed!: HTMLElement;\n public activeThumb: 'one' | 'two' | null = null;\n\n connectedCallback(): void {\n super.connectedCallback();\n this.emit(NileSliderEvents.NILE_INIT); \n\n if(this.rangeSlider) {\n this.checkRangeValidity();\n }\n }\n\n firstUpdated(changedProps: Map<string, any>): void {\n getHtmlElements(this);\n\n if (!this.rangeSlider && changedProps.has('value')) {\n this.value = this.checkValueValidity(this.value, this.minValue, this.maxValue);\n const percent = valueToPercent(this.value, this);\n \n this.buttonOne.style.left = `${percent}%`;\n this.completed.style.width = `${percent}%`;\n } else if (this.rangeSlider) {\n \n const percentOne = valueToPercent(this.rangeOneValue, this);\n const percentTwo = valueToPercent(this.rangeTwoValue, this);\n \n if (this.buttonOne) this.buttonOne.style.left = `${percentOne}%`;\n if (this.buttonTwo) this.buttonTwo.style.left = `${percentTwo}%`;\n \n const left = Math.min(percentOne, percentTwo);\n const width = Math.abs(percentTwo - percentOne);\n \n this.completed.style.left = `${left}%`;\n this.completed.style.width = `${width}%`;\n }\n }\n\n checkValueValidity(value: number, min: number, max: number): number {\n if(max - min <= 1) { \n return Math.max(min, Math.min(value, max));\n }\n return Math.floor(Math.max(min, Math.min(value, max)));\n }\n\n checkRangeValidity(): void {\n if(this.rangeTwoValue > this.maxValue) {\n this.rangeTwoValue = this.maxValue;\n } else if(this.rangeTwoValue < this.rangeOneValue) {\n this.rangeTwoValue = this.rangeOneValue;\n }\n\n if(this.rangeOneValue < this.minValue) {\n this.rangeOneValue = this.minValue;\n } else if(this.rangeOneValue > this.rangeTwoValue) {\n this.rangeOneValue = this.rangeTwoValue;\n }\n } \n\n public onMouseMove = (e: MouseEvent): void => {\n const rect = this.range.getBoundingClientRect();\n\n if (!this.rangeSlider) {\n handleSingleSlider(e, rect, this);\n } else {\n if (this.activeThumb === 'one') {\n handleRangeOne(e, rect, this);\n } else if (this.activeThumb === 'two') {\n handleRangeTwo(e, rect, this);\n }\n\n const start = valueToPercent(this.rangeOneValue, this);\n const end = valueToPercent(this.rangeTwoValue, this);\n const left = Math.min(start, end);\n const width = Math.abs(end - start);\n\n if(this.rangeTwoValue >= this.rangeOneValue) {\n this.completed.style.left = `${left}%`;\n this.completed.style.width = `${width}%`;\n }\n }\n };\n\n public onMouseUp = (): void => {\n if(!this.rangeSlider) this.emit(NileSliderEvents.NILE_CHANGE_END, { value: this.value });\n else {\n this.emit(NileSliderEvents.NILE_BUTTON_FIRST_CHANGE_END, { value: this.rangeOneValue });\n this.emit(NileSliderEvents.NILE_BUTTON_LAST_CHANGE_END, { value: this.rangeTwoValue });\n }\n this.activeThumb = null;\n removeMoveListeners(this);\n };\n\n public onMouseDown = (e: MouseEvent): void => {\n const rect = this.range.getBoundingClientRect();\n const clickX = e.clientX - rect.left;\n const percent = (clickX / rect.width) * 100;\n const value = this.minValue + (percent / 100) * (this.maxValue - this.minValue);\n \n if (!this.rangeSlider) {\n handleSingleSlider(e, rect, this);\n this.activeThumb = 'one';\n addMoveListeners(this);\n } else {\n handleTwoThumbClick(value, this);\n const distToOne = Math.abs(value - this.rangeOneValue);\n const distToTwo = Math.abs(value - this.rangeTwoValue);\n this.activeThumb = distToOne <= distToTwo ? 'one' : 'two';\n addMoveListeners(this);\n }\n };\n\n public render(): TemplateResult {\n const hasLabels = this.showLabel;\n const ariaLabelledby = hasLabels ? 'label-start label-end' : undefined;\n \n return html`\n <div\n part=\"base\"\n class=${classMap({\n 'container': true,\n 'align-item-center': !hasLabels\n })}\n >\n <slot class=\"span\" name=\"prefix\"></slot>\n \n <div\n part=\"range-container\"\n class=${classMap({\n 'range-container': true,\n 'column-reverse': this.labelPosition === 'bottom'\n })}\n >\n ${hasLabels ? lableContaier(this) : html``}\n \n <div\n class=\"range\"\n part=\"range\"\n role=\"group\"\n aria-labelledby=${ariaLabelledby}\n >\n <span class=\"range-completed\" part=\"range-completed\"></span>\n ${this.rangeSlider ? rangeSlider(this) : singleSlider(this)}\n </div>\n </div>\n \n <slot class=\"span\" name=\"suffix\"></slot>\n </div>\n `;\n } \n\n disconnectedCallback(): void {\n super.disconnectedCallback();\n this.emit(NileSliderEvents.NILE_DESTROY);\n }\n}\n\nexport default NileSlider;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-slider': NileSlider;\n }\n}\n"],"names":["NileSlider","_i","g","constructor","this","minValue","value","maxValue","rangeOneValue","rangeTwoValue","showLabel","labelStart","labelEnd","rangeSlider","labelPosition","tooltipPosition","activeThumb","onMouseMove","e","rect","range","getBoundingClientRect","handleRangeOne","handleRangeTwo","start","valueToPercent","end","left","Math","min","width","abs","completed","style","concat","handleSingleSlider","onMouseUp","emit","removeMoveListeners","onMouseDown","percent","clientX","handleTwoThumbClick","distToOne","distToTwo","addMoveListeners","_this","_inherits","_createClass","key","connectedCallback","super","checkRangeValidity","firstUpdated","changedProps","getHtmlElements","has","checkValueValidity","buttonOne","percentOne","percentTwo","buttonTwo","max","floor","render","hasLabels","ariaLabelledby","undefined","html","_templateObject","_taggedTemplateLiteral","classMap","container","lableContaier","_templateObject2","singleSlider","disconnectedCallback","__decorate","get","styles","NileElement","property","type","Number","prototype","Boolean","String","customElement"],"mappings":"yiJAgCaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAKuBC,KAAAA,CAAQC,QAAAA,CAAW,EACnBD,KAAAA,CAAAE,KAAAA,CAAgBF,KAAAA,CAAKC,QAAAA,CACrBD,KAAAA,CAAQG,QAAAA,CAAW,IACnBH,KAAAA,CAAAI,aAAAA,CAAwBJ,KAAAA,CAAKC,QAAAA,CAC7BD,KAAAA,CAAAK,aAAAA,CAAwBL,KAAAA,CAAKG,QAC7BH,CAAAA,KAAAA,CAASM,WAAY,CACrBN,CAAAA,KAAAA,CAAUO,WAAW,EACrBP,CAAAA,KAAAA,CAAQQ,QAAW,CAAA,EAAA,CACnBR,KAAAA,CAAWS,WAAAA,CAAAA,CAAY,EACvBT,KAAAA,CAAaU,aAAAA,CAAW,KACxBV,CAAAA,KAAAA,CAAeW,eAAoB,CAAA,KAAA,CAMxDX,KAAAA,CAAWY,WAAyB,CAAA,IAAA,CAyDpCZ,KAAAA,CAAAa,WAAAA,CAAeC,SAAAA,CACpB,CAAA,CAAA,GAAMC,CAAAA,EAAOf,KAAAA,CAAKgB,KAAAA,CAAMC,wBAExB,GAAKjB,KAAAA,CAAKS,YAEH,CACoB,KAAA,GAArBT,KAAAA,CAAKY,WAAAA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A,CAAA,eAAA,CAAA,IAAA,EAC9BP,CAAAA,CAAAA,CAAAA,CAAA,CAA3BI,CAAAA,CAAS,CAAEC,IAAAA,CAAMI,MAAmDtF,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAoF,SAAA,CAAA,iBAAA,CAAA,IAAA,EAf1DpF,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAU6E,CAAA,CAAA,CADtBU,CAAc,CAAA,aAAA,CAAA,CAAA,CACFvF"}
@@ -1,4 +1,4 @@
1
- import{__decorate as t}from"tslib";import{s}from"./nile-slider.css.esm.js";import{N as i}from"../internal/nile-element.esm.js";import{classMap as e}from"lit/directives/class-map.js";import{html as h}from"lit";import{property as a,customElement as l}from"lit/decorators.js";import{l as n,r as o,s as r}from"./nile-slider.template.esm.js";import{h as d,a as c,b as p,v as m,r as u,c as v,d as b,g}from"./utils/nile-slider.utils.esm.js";let f=class extends i{constructor(){super(...arguments),this.minValue=0,this.value=this.minValue,this.maxValue=100,this.rangeOneValue=this.minValue,this.rangeTwoValue=this.maxValue,this.showLabel=!1,this.labelStart="",this.labelEnd="",this.rangeSlider=!1,this.labelPosition="top",this.tooltipPosition="top",this.activeThumb=null,this.onMouseMove=t=>{const s=this.range.getBoundingClientRect();if(this.rangeSlider){"one"===this.activeThumb?c(t,s,this):"two"===this.activeThumb&&p(t,s,this);const i=m(this.rangeOneValue,this),e=m(this.rangeTwoValue,this),h=Math.min(i,e),a=Math.abs(e-i);this.rangeTwoValue>=this.rangeOneValue&&(this.completed.style.left=`${h}%`,this.completed.style.width=`${a}%`)}else d(t,s,this)},this.onMouseUp=()=>{this.rangeSlider?(this.emit("nile-button-first-change-end",{value:this.rangeOneValue}),this.emit("nile-button-last-change-end",{value:this.rangeTwoValue})):this.emit("nile-change-end",{value:this.value}),this.activeThumb=null,u(this)},this.onMouseDown=t=>{const s=this.range.getBoundingClientRect(),i=(t.clientX-s.left)/s.width*100,e=this.minValue+i/100*(this.maxValue-this.minValue);if(this.rangeSlider){b(e,this);const t=Math.abs(e-this.rangeOneValue),s=Math.abs(e-this.rangeTwoValue);this.activeThumb=t<=s?"one":"two",v(this)}else d(t,s,this),this.activeThumb="one",v(this)}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.emit("nile-init"),this.rangeSlider&&this.checkRangeValidity()}firstUpdated(t){if(g(this),!this.rangeSlider&&t.has("value")){this.value=this.checkValueValidity(this.value,this.minValue,this.maxValue);const t=m(this.value,this);this.buttonOne.style.left=`${t}%`,this.completed.style.width=`${t}%`}else if(this.rangeSlider){const t=m(this.rangeOneValue,this),s=m(this.rangeTwoValue,this);this.buttonOne&&(this.buttonOne.style.left=`${t}%`),this.buttonTwo&&(this.buttonTwo.style.left=`${s}%`);const i=Math.min(t,s),e=Math.abs(s-t);this.completed.style.left=`${i}%`,this.completed.style.width=`${e}%`}}checkValueValidity(t,s,i){return i-s<=1?Math.max(s,Math.min(t,i)):Math.floor(Math.max(s,Math.min(t,i)))}checkRangeValidity(){this.rangeTwoValue>this.maxValue?this.rangeTwoValue=this.maxValue:this.rangeTwoValue<this.rangeOneValue&&(this.rangeTwoValue=this.rangeOneValue),this.rangeOneValue<this.minValue?this.rangeOneValue=this.minValue:this.rangeOneValue>this.rangeTwoValue&&(this.rangeOneValue=this.rangeTwoValue)}render(){const t=this.showLabel,s=t?"label-start label-end":void 0;return h`
1
+ import{__decorate as t}from"tslib";import{s}from"./nile-slider.css.esm.js";import{N as i}from"../internal/nile-element.esm.js";import{classMap as e}from"lit/directives/class-map.js";import{html as h}from"lit";import{property as a,customElement as l}from"lit/decorators.js";import{l as n,r,s as o}from"./nile-slider.template.esm.js";import{h as c,a as m,b as p,v as d,r as u,c as v,d as b,g as y}from"./utils/nile-slider.utils.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 g=class extends i{constructor(){super(...arguments),this.minValue=0,this.value=this.minValue,this.maxValue=100,this.rangeOneValue=this.minValue,this.rangeTwoValue=this.maxValue,this.showLabel=!1,this.labelStart="",this.labelEnd="",this.rangeSlider=!1,this.labelPosition="top",this.tooltipPosition="top",this.activeThumb=null,this.onMouseMove=t=>{const s=this.range.getBoundingClientRect();if(this.rangeSlider){"one"===this.activeThumb?m(t,s,this):"two"===this.activeThumb&&p(t,s,this);const i=d(this.rangeOneValue,this),e=d(this.rangeTwoValue,this),h=Math.min(i,e),a=Math.abs(e-i);this.rangeTwoValue>=this.rangeOneValue&&(this.completed.style.left=`${h}%`,this.completed.style.width=`${a}%`)}else c(t,s,this)},this.onMouseUp=()=>{this.rangeSlider?(this.emit("nile-button-first-change-end",{value:this.rangeOneValue}),this.emit("nile-button-last-change-end",{value:this.rangeTwoValue})):this.emit("nile-change-end",{value:this.value}),this.activeThumb=null,u(this)},this.onMouseDown=t=>{const s=this.range.getBoundingClientRect(),i=(t.clientX-s.left)/s.width*100,e=this.minValue+i/100*(this.maxValue-this.minValue);if(this.rangeSlider){b(e,this);const t=Math.abs(e-this.rangeOneValue),s=Math.abs(e-this.rangeTwoValue);this.activeThumb=t<=s?"one":"two",v(this)}else c(t,s,this),this.activeThumb="one",v(this)}}static get styles(){return[s]}connectedCallback(){super.connectedCallback(),this.emit("nile-init"),this.rangeSlider&&this.checkRangeValidity()}firstUpdated(t){if(y(this),!this.rangeSlider&&t.has("value")){this.value=this.checkValueValidity(this.value,this.minValue,this.maxValue);const t=d(this.value,this);this.buttonOne.style.left=`${t}%`,this.completed.style.width=`${t}%`}else if(this.rangeSlider){const t=d(this.rangeOneValue,this),s=d(this.rangeTwoValue,this);this.buttonOne&&(this.buttonOne.style.left=`${t}%`),this.buttonTwo&&(this.buttonTwo.style.left=`${s}%`);const i=Math.min(t,s),e=Math.abs(s-t);this.completed.style.left=`${i}%`,this.completed.style.width=`${e}%`}}checkValueValidity(t,s,i){return i-s<=1?Math.max(s,Math.min(t,i)):Math.floor(Math.max(s,Math.min(t,i)))}checkRangeValidity(){this.rangeTwoValue>this.maxValue?this.rangeTwoValue=this.maxValue:this.rangeTwoValue<this.rangeOneValue&&(this.rangeTwoValue=this.rangeOneValue),this.rangeOneValue<this.minValue?this.rangeOneValue=this.minValue:this.rangeOneValue>this.rangeTwoValue&&(this.rangeOneValue=this.rangeTwoValue)}render(){const t=this.showLabel,s=t?"label-start label-end":void 0;return h`
2
2
  <div
3
3
  part="base"
4
4
  class=${e({container:!0,"align-item-center":!t})}
@@ -18,10 +18,10 @@ import{__decorate as t}from"tslib";import{s}from"./nile-slider.css.esm.js";impor
18
18
  aria-labelledby=${s}
19
19
  >
20
20
  <span class="range-completed" part="range-completed"></span>
21
- ${this.rangeSlider?o(this):r(this)}
21
+ ${this.rangeSlider?r(this):o(this)}
22
22
  </div>
23
23
  </div>
24
24
 
25
25
  <slot class="span" name="suffix"></slot>
26
26
  </div>
27
- `}disconnectedCallback(){super.disconnectedCallback(),this.emit("nile-destroy")}};t([a({type:Number})],f.prototype,"minValue",void 0),t([a({type:Number})],f.prototype,"value",void 0),t([a({type:Number})],f.prototype,"maxValue",void 0),t([a({type:Number})],f.prototype,"rangeOneValue",void 0),t([a({type:Number})],f.prototype,"rangeTwoValue",void 0),t([a({type:Boolean})],f.prototype,"showLabel",void 0),t([a({type:String})],f.prototype,"labelStart",void 0),t([a({type:String})],f.prototype,"labelEnd",void 0),t([a({type:Boolean})],f.prototype,"rangeSlider",void 0),t([a({type:String})],f.prototype,"labelPosition",void 0),t([a({type:String})],f.prototype,"tooltipPosition",void 0),f=t([l("nile-slider")],f);export{f as N};
27
+ `}disconnectedCallback(){super.disconnectedCallback(),this.emit("nile-destroy")}};t([a({type:Number})],g.prototype,"minValue",void 0),t([a({type:Number})],g.prototype,"value",void 0),t([a({type:Number})],g.prototype,"maxValue",void 0),t([a({type:Number})],g.prototype,"rangeOneValue",void 0),t([a({type:Number})],g.prototype,"rangeTwoValue",void 0),t([a({type:Boolean})],g.prototype,"showLabel",void 0),t([a({type:String})],g.prototype,"labelStart",void 0),t([a({type:String})],g.prototype,"labelEnd",void 0),t([a({type:Boolean})],g.prototype,"rangeSlider",void 0),t([a({type:String})],g.prototype,"labelPosition",void 0),t([a({type:String})],g.prototype,"tooltipPosition",void 0),g=t([l("nile-slider")],g);export{g as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-split-panel.cjs.js","tslib","./nile-split-panel.css.cjs.js","lit","../internal/nile-element.cjs.js","../internal/math.cjs.js","lit/decorators.js","../internal/drag.cjs.js","lit/directives/if-defined.js","../internal/watch.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSplitPanelCjsJs){_export("NileSplitPanel",_nileSplitPanelCjsJs.N);},function(_tslib){},function(_nileSplitPanelCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_internalMathCjsJs){},function(_litDecoratorsJs){},function(_internalDragCjsJs){},function(_litDirectivesIfDefinedJs){},function(_internalWatchCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-split-panel.cjs.js","tslib","./nile-split-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","../internal/math.cjs.js","lit/decorators.js","../internal/drag.cjs.js","lit/directives/if-defined.js","../internal/watch.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSplitPanelCjsJs){_export("NileSplitPanel",_nileSplitPanelCjsJs.N);},function(_tslib){},function(_nileSplitPanelCssCjsJs){},function(_lit){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_internalMathCjsJs){},function(_litDecoratorsJs){},function(_internalDragCjsJs){},function(_litDirectivesIfDefinedJs){},function(_internalWatchCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileSplitPanel}from"./nile-split-panel.esm.js";import"tslib";import"./nile-split-panel.css.esm.js";import"lit";import"../internal/nile-element.esm.js";import"../internal/math.esm.js";import"lit/decorators.js";import"../internal/drag.esm.js";import"lit/directives/if-defined.js";import"../internal/watch.esm.js";
1
+ export{N as NileSplitPanel}from"./nile-split-panel.esm.js";import"tslib";import"./nile-split-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"../internal/math.esm.js";import"lit/decorators.js";import"../internal/drag.esm.js";import"lit/directives/if-defined.js";import"../internal/watch.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-split-panel.css.cjs.js","../internal/nile-element.cjs.js","../internal/math.cjs.js","lit/decorators.js","../internal/drag.cjs.js","lit","lit/directives/if-defined.js","../internal/watch.cjs.js"],function(_export,_context){"use strict";var i,t,s,e,r,n,h,a,o,l,d,_templateObject,p;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){i=_tslib.__decorate;},function(_nileSplitPanelCssCjsJs){t=_nileSplitPanelCssCjsJs.s;},function(_internalNileElementCjsJs){s=_internalNileElementCjsJs.N;},function(_internalMathCjsJs){e=_internalMathCjsJs.c;},function(_litDecoratorsJs){r=_litDecoratorsJs.query;n=_litDecoratorsJs.property;h=_litDecoratorsJs.customElement;},function(_internalDragCjsJs){a=_internalDragCjsJs.d;},function(_lit){o=_lit.html;},function(_litDirectivesIfDefinedJs){l=_litDirectivesIfDefinedJs.ifDefined;},function(_internalWatchCjsJs){d=_internalWatchCjsJs.w;}],execute:function execute(){_export("N",p=/*#__PURE__*/function(_s){function p(){var _this;_classCallCheck(this,p);_this=_callSuper(this,p,arguments),_this.position=50,_this.vertical=!1,_this.disabled=!1,_this.snapThreshold=12;return _this;}_inherits(p,_s);return _createClass(p,[{key:"connectedCallback",value:function connectedCallback(){var _this2=this;_superPropGet(p,"connectedCallback",this,3)([]),this.resizeObserver=new ResizeObserver(function(i){return _this2.handleResize(i);}),this.updateComplete.then(function(){return _this2.resizeObserver.observe(_this2);}),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position);}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(p,"disconnectedCallback",this,3)([]),this.resizeObserver.unobserve(this);}},{key:"detectSize",value:function detectSize(){var _this$getBoundingClie=this.getBoundingClientRect(),i=_this$getBoundingClie.width,t=_this$getBoundingClie.height;this.size=this.vertical?t:i;}},{key:"percentageToPixels",value:function percentageToPixels(i){return this.size*(i/100);}},{key:"pixelsToPercentage",value:function pixelsToPercentage(i){return i/this.size*100;}},{key:"handleDrag",value:function handleDrag(i){var _this3=this;this.disabled||(i.cancelable&&i.preventDefault(),a(this,{onMove:function onMove(i,t){var s=_this3.vertical?t:i;if("end"===_this3.primary&&(s=_this3.size-s),_this3.snap){_this3.snap.split(" ").forEach(function(i){var t;t=i.endsWith("%")?_this3.size*(parseFloat(i)/100):parseFloat(i),s>=t-_this3.snapThreshold&&s<=t+_this3.snapThreshold&&(s=t);});}_this3.position=e(_this3.pixelsToPercentage(s),0,100);},initialEvent:i}));}},{key:"handleKeyDown",value:function handleKeyDown(i){if(!this.disabled&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(i.key)){var _t=this.position;var _s2=(i.shiftKey?10:1)*("end"===this.primary?-1:1);i.preventDefault(),("ArrowLeft"===i.key&&!this.vertical||"ArrowUp"===i.key&&this.vertical)&&(_t-=_s2),("ArrowRight"===i.key&&!this.vertical||"ArrowDown"===i.key&&this.vertical)&&(_t+=_s2),"Home"===i.key&&(_t="end"===this.primary?100:0),"End"===i.key&&(_t="end"===this.primary?0:100),this.position=e(_t,0,100);}}},{key:"handleResize",value:function handleResize(i){var _i$0$contentRect=i[0].contentRect,t=_i$0$contentRect.width,s=_i$0$contentRect.height;this.size=this.vertical?s:t,this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels));}},{key:"handlePositionChange",value:function handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.positionInPixels=this.percentageToPixels(this.position),this.emit("nile-reposition");}},{key:"handlePositionInPixelsChange",value:function handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels);}},{key:"handleVerticalChange",value:function handleVerticalChange(){this.detectSize();}},{key:"render",value:function render(){var i=this.vertical?"gridTemplateRows":"gridTemplateColumns",t=this.vertical?"gridTemplateColumns":"gridTemplateRows",s="\n clamp(\n 0%,\n clamp(\n var(--min),\n ".concat(this.position,"% - var(--divider-width) / 2,\n var(--max)\n ),\n calc(100% - var(--divider-width))\n )\n "),e="auto";return"end"===this.primary?this.style[i]="".concat(e," var(--divider-width) ").concat(s):this.style[i]="".concat(s," var(--divider-width) ").concat(e),this.style[t]="",o(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <slot name=\"start\" part=\"panel start\" class=\"start\"></slot>\n\n <div\n part=\"divider\"\n class=\"divider\"\n tabindex=","\n role=\"separator\"\n aria-valuenow=","\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-label=\"resize\"\n @keydown=","\n @mousedown=","\n @touchstart=","\n >\n <slot name=\"divider\"></slot>\n </div>\n\n <slot name=\"end\" part=\"panel end\" class=\"end\"></slot>\n "])),l(this.disabled?void 0:"0"),this.position,this.handleKeyDown,this.handleDrag,this.handleDrag);}}]);}(s));p.styles=t,i([r(".divider")],p.prototype,"divider",void 0),i([n({type:Number,reflect:!0})],p.prototype,"position",void 0),i([n({attribute:"position-in-pixels",type:Number})],p.prototype,"positionInPixels",void 0),i([n({type:Boolean,reflect:!0})],p.prototype,"vertical",void 0),i([n({type:Boolean,reflect:!0})],p.prototype,"disabled",void 0),i([n()],p.prototype,"primary",void 0),i([n()],p.prototype,"snap",void 0),i([n({type:Number,attribute:"snap-threshold"})],p.prototype,"snapThreshold",void 0),i([d("position")],p.prototype,"handlePositionChange",null),i([d("positionInPixels")],p.prototype,"handlePositionInPixelsChange",null),i([d("vertical")],p.prototype,"handleVerticalChange",null),_export("N",p=i([h("nile-split-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","./nile-split-panel.css.cjs.js","../internal/nile-element.cjs.js","../internal/math.cjs.js","lit/decorators.js","../internal/drag.cjs.js","lit","lit/directives/if-defined.js","../internal/watch.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 i,t,s,e,r,n,a,o,h,l,d,_templateObject,p;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){i=_tslib.__decorate;},function(_nileSplitPanelCssCjsJs){t=_nileSplitPanelCssCjsJs.s;},function(_internalNileElementCjsJs){s=_internalNileElementCjsJs.N;},function(_internalMathCjsJs){e=_internalMathCjsJs.c;},function(_litDecoratorsJs){r=_litDecoratorsJs.query;n=_litDecoratorsJs.property;a=_litDecoratorsJs.customElement;},function(_internalDragCjsJs){o=_internalDragCjsJs.d;},function(_lit){h=_lit.html;},function(_litDirectivesIfDefinedJs){l=_litDirectivesIfDefinedJs.ifDefined;},function(_internalWatchCjsJs){d=_internalWatchCjsJs.w;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",p=/*#__PURE__*/function(_s){function p(){var _this;_classCallCheck(this,p);_this=_callSuper(this,p,arguments),_this.position=50,_this.vertical=!1,_this.disabled=!1,_this.snapThreshold=12;return _this;}_inherits(p,_s);return _createClass(p,[{key:"connectedCallback",value:function connectedCallback(){var _this2=this;_superPropGet(p,"connectedCallback",this,3)([]),this.resizeObserver=new ResizeObserver(function(i){return _this2.handleResize(i);}),this.updateComplete.then(function(){return _this2.resizeObserver.observe(_this2);}),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position);}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(p,"disconnectedCallback",this,3)([]),this.resizeObserver.unobserve(this);}},{key:"detectSize",value:function detectSize(){var _this$getBoundingClie=this.getBoundingClientRect(),i=_this$getBoundingClie.width,t=_this$getBoundingClie.height;this.size=this.vertical?t:i;}},{key:"percentageToPixels",value:function percentageToPixels(i){return this.size*(i/100);}},{key:"pixelsToPercentage",value:function pixelsToPercentage(i){return i/this.size*100;}},{key:"handleDrag",value:function handleDrag(i){var _this3=this;this.disabled||(i.cancelable&&i.preventDefault(),o(this,{onMove:function onMove(i,t){var s=_this3.vertical?t:i;if("end"===_this3.primary&&(s=_this3.size-s),_this3.snap){_this3.snap.split(" ").forEach(function(i){var t;t=i.endsWith("%")?_this3.size*(parseFloat(i)/100):parseFloat(i),s>=t-_this3.snapThreshold&&s<=t+_this3.snapThreshold&&(s=t);});}_this3.position=e(_this3.pixelsToPercentage(s),0,100);},initialEvent:i}));}},{key:"handleKeyDown",value:function handleKeyDown(i){if(!this.disabled&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(i.key)){var _t=this.position;var _s2=(i.shiftKey?10:1)*("end"===this.primary?-1:1);i.preventDefault(),("ArrowLeft"===i.key&&!this.vertical||"ArrowUp"===i.key&&this.vertical)&&(_t-=_s2),("ArrowRight"===i.key&&!this.vertical||"ArrowDown"===i.key&&this.vertical)&&(_t+=_s2),"Home"===i.key&&(_t="end"===this.primary?100:0),"End"===i.key&&(_t="end"===this.primary?0:100),this.position=e(_t,0,100);}}},{key:"handleResize",value:function handleResize(i){var _i$0$contentRect=i[0].contentRect,t=_i$0$contentRect.width,s=_i$0$contentRect.height;this.size=this.vertical?s:t,this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels));}},{key:"handlePositionChange",value:function handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.positionInPixels=this.percentageToPixels(this.position),this.emit("nile-reposition");}},{key:"handlePositionInPixelsChange",value:function handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels);}},{key:"handleVerticalChange",value:function handleVerticalChange(){this.detectSize();}},{key:"render",value:function render(){var i=this.vertical?"gridTemplateRows":"gridTemplateColumns",t=this.vertical?"gridTemplateColumns":"gridTemplateRows",s="\n clamp(\n 0%,\n clamp(\n var(--min),\n ".concat(this.position,"% - var(--divider-width) / 2,\n var(--max)\n ),\n calc(100% - var(--divider-width))\n )\n "),e="auto";return"end"===this.primary?this.style[i]="".concat(e," var(--divider-width) ").concat(s):this.style[i]="".concat(s," var(--divider-width) ").concat(e),this.style[t]="",h(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n <slot name=\"start\" part=\"panel start\" class=\"start\"></slot>\n\n <div\n part=\"divider\"\n class=\"divider\"\n tabindex=","\n role=\"separator\"\n aria-valuenow=","\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-label=\"resize\"\n @keydown=","\n @mousedown=","\n @touchstart=","\n >\n <slot name=\"divider\"></slot>\n </div>\n\n <slot name=\"end\" part=\"panel end\" class=\"end\"></slot>\n "])),l(this.disabled?void 0:"0"),this.position,this.handleKeyDown,this.handleDrag,this.handleDrag);}}]);}(s));p.styles=t,i([r(".divider")],p.prototype,"divider",void 0),i([n({type:Number,reflect:!0})],p.prototype,"position",void 0),i([n({attribute:"position-in-pixels",type:Number})],p.prototype,"positionInPixels",void 0),i([n({type:Boolean,reflect:!0})],p.prototype,"vertical",void 0),i([n({type:Boolean,reflect:!0})],p.prototype,"disabled",void 0),i([n()],p.prototype,"primary",void 0),i([n()],p.prototype,"snap",void 0),i([n({type:Number,attribute:"snap-threshold"})],p.prototype,"snapThreshold",void 0),i([d("position")],p.prototype,"handlePositionChange",null),i([d("positionInPixels")],p.prototype,"handlePositionInPixelsChange",null),i([d("vertical")],p.prototype,"handleVerticalChange",null),_export("N",p=i([a("nile-split-panel")],p));}};});
2
2
  //# sourceMappingURL=nile-split-panel.cjs.js.map