@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 +1 @@
1
- {"version":3,"file":"nile-split-panel.cjs.js","sources":["../../../src/nile-split-panel/nile-split-panel.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, CSSResultArray, TemplateResult} from 'lit';\nimport {styles} from './nile-split-panel.css';\nimport NileElement from '../internal/nile-element';\n\n\nimport { clamp } from '../internal/math';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { drag } from '../internal/drag';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { watch } from '../internal/watch';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Split panels display two adjacent panels, allowing the user to reposition them.\n *\n * @event nile-reposition - Emitted when the divider's position changes.\n *\n * @slot start - Content to place in the start panel.\n * @slot end - Content to place in the end panel.\n * @slot divider - The divider. Useful for slotting in a custom icon that renders as a handle.\n *\n * @csspart start - The start panel.\n * @csspart end - The end panel.\n * @csspart panel - Targets both the start and end panels.\n * @csspart divider - The divider that separates the start and end panels.\n *\n * @cssproperty [--divider-width=4px] - The width of the visible divider.\n * @cssproperty [--divider-hit-area=12px] - The invisible region around the divider where dragging can occur. This is\n * usually wider than the divider to facilitate easier dragging.\n * @cssproperty [--min=0] - The minimum allowed size of the primary panel.\n * @cssproperty [--max=100%] - The maximum allowed size of the primary panel.\n */\n@customElement('nile-split-panel')\nexport class NileSplitPanel extends NileElement {\n\n\tstatic styles: CSSResultGroup = styles;\n\n private cachedPositionInPixels: number;\n private resizeObserver: ResizeObserver;\n private size: number;\n\n @query('.divider') divider: HTMLElement;\n\n /**\n * The current position of the divider from the primary panel's edge as a percentage 0-100. Defaults to 50% of the\n * container's initial size.\n */\n @property({ type: Number, reflect: true }) position = 50;\n\n /** The current position of the divider from the primary panel's edge in pixels. */\n @property({ attribute: 'position-in-pixels', type: Number }) positionInPixels: number;\n\n /** Draws the split panel in a vertical orientation with the start and end panels stacked. */\n @property({ type: Boolean, reflect: true }) vertical = false;\n\n /** Disables resizing. Note that the position may still change as a result of resizing the host element. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * If no primary panel is designated, both panels will resize proportionally when the host element is resized. If a\n * primary panel is designated, it will maintain its size and the other panel will grow or shrink as needed when the\n * host element is resized.\n */\n @property() primary?: 'start' | 'end';\n\n /**\n * One or more space-separated values at which the divider should snap. Values can be in pixels or percentages, e.g.\n * `\"100px 50%\"`.\n */\n @property() snap?: string;\n\n /** How close the divider must be to a snap point until snapping occurs. */\n @property({ type: Number, attribute: 'snap-threshold' }) snapThreshold = 12;\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(entries => this.handleResize(entries));\n this.updateComplete.then(() => this.resizeObserver.observe(this));\n\n this.detectSize();\n this.cachedPositionInPixels = this.percentageToPixels(this.position);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver.unobserve(this);\n }\n\n private detectSize() {\n const { width, height } = this.getBoundingClientRect();\n this.size = this.vertical ? height : width;\n }\n\n private percentageToPixels(value: number) {\n return this.size * (value / 100);\n }\n\n private pixelsToPercentage(value: number) {\n return (value / this.size) * 100;\n }\n\n private handleDrag(event: PointerEvent) {\n const isRtl = false;\n\n if (this.disabled) {\n return;\n }\n\n // Prevent text selection when dragging\n if (event.cancelable) {\n event.preventDefault();\n }\n\n drag(this, {\n onMove: (x, y) => {\n let newPositionInPixels = this.vertical ? y : x;\n\n // Flip for end panels\n if (this.primary === 'end') {\n newPositionInPixels = this.size - newPositionInPixels;\n }\n\n // Check snap points\n if (this.snap) {\n const snaps = this.snap.split(' ');\n\n snaps.forEach(value => {\n let snapPoint: number;\n\n if (value.endsWith('%')) {\n snapPoint = this.size * (parseFloat(value) / 100);\n } else {\n snapPoint = parseFloat(value);\n }\n\n if (isRtl && !this.vertical) {\n snapPoint = this.size - snapPoint;\n }\n\n if (\n newPositionInPixels >= snapPoint - this.snapThreshold &&\n newPositionInPixels <= snapPoint + this.snapThreshold\n ) {\n newPositionInPixels = snapPoint;\n }\n });\n }\n\n this.position = clamp(this.pixelsToPercentage(newPositionInPixels), 0, 100);\n },\n initialEvent: event\n });\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (this.disabled) {\n return;\n }\n\n if (['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'].includes(event.key)) {\n let newPosition = this.position;\n const incr = (event.shiftKey ? 10 : 1) * (this.primary === 'end' ? -1 : 1);\n\n event.preventDefault();\n\n if ((event.key === 'ArrowLeft' && !this.vertical) || (event.key === 'ArrowUp' && this.vertical)) {\n newPosition -= incr;\n }\n\n if ((event.key === 'ArrowRight' && !this.vertical) || (event.key === 'ArrowDown' && this.vertical)) {\n newPosition += incr;\n }\n\n if (event.key === 'Home') {\n newPosition = this.primary === 'end' ? 100 : 0;\n }\n\n if (event.key === 'End') {\n newPosition = this.primary === 'end' ? 0 : 100;\n }\n\n this.position = clamp(newPosition, 0, 100);\n }\n }\n\n private handleResize(entries: ResizeObserverEntry[]) {\n const { width, height } = entries[0].contentRect;\n this.size = this.vertical ? height : width;\n\n // Resize when a primary panel is set\n if (this.primary) {\n this.position = this.pixelsToPercentage(this.cachedPositionInPixels);\n }\n }\n\n @watch('position')\n handlePositionChange() {\n this.cachedPositionInPixels = this.percentageToPixels(this.position);\n this.positionInPixels = this.percentageToPixels(this.position);\n this.emit('nile-reposition');\n }\n\n @watch('positionInPixels')\n handlePositionInPixelsChange() {\n this.position = this.pixelsToPercentage(this.positionInPixels);\n }\n\n @watch('vertical')\n handleVerticalChange() {\n this.detectSize();\n }\n\n render() {\n const gridTemplate = this.vertical ? 'gridTemplateRows' : 'gridTemplateColumns';\n const gridTemplateAlt = this.vertical ? 'gridTemplateColumns' : 'gridTemplateRows';\n const isRtl = false;\n const primary = `\n clamp(\n 0%,\n clamp(\n var(--min),\n ${this.position}% - var(--divider-width) / 2,\n var(--max)\n ),\n calc(100% - var(--divider-width))\n )\n `;\n const secondary = 'auto';\n\n if (this.primary === 'end') {\n if (isRtl && !this.vertical) {\n this.style[gridTemplate] = `${primary} var(--divider-width) ${secondary}`;\n } else {\n this.style[gridTemplate] = `${secondary} var(--divider-width) ${primary}`;\n }\n } else {\n if (isRtl && !this.vertical) {\n this.style[gridTemplate] = `${secondary} var(--divider-width) ${primary}`;\n } else {\n this.style[gridTemplate] = `${primary} var(--divider-width) ${secondary}`;\n }\n }\n\n // Unset the alt grid template property\n this.style[gridTemplateAlt] = '';\n\n return html`\n <slot name=\"start\" part=\"panel start\" class=\"start\"></slot>\n\n <div\n part=\"divider\"\n class=\"divider\"\n tabindex=${ifDefined(this.disabled ? undefined : '0')}\n role=\"separator\"\n aria-valuenow=${this.position}\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-label=\"resize\"\n @keydown=${this.handleKeyDown}\n @mousedown=${this.handleDrag}\n @touchstart=${this.handleDrag}\n >\n <slot name=\"divider\"></slot>\n </div>\n\n <slot name=\"end\" part=\"panel end\" class=\"end\"></slot>\n `;\n }\n}\n\nexport default NileSplitPanel;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-split-panel': NileSplitPanel;\n }\n}\n"],"names":["NileSplitPanel","p","this","position","vertical","disabled","snapThreshold","_this","_inherits","_s","_createClass","key","value","connectedCallback","super","resizeObserver","ResizeObserver","entries","handleResize","updateComplete","then","observe","detectSize","cachedPositionInPixels","percentageToPixels","disconnectedCallback","unobserve","_this$getBoundingClie","getBoundingClientRect","width","height","size","pixelsToPercentage","handleDrag","event","cancelable","preventDefault","drag","onMove","x","y","newPositionInPixels","primary","snap","split","forEach","snapPoint","endsWith","parseFloat","clamp","initialEvent","handleKeyDown","includes","newPosition","incr","shiftKey","_i$0$contentRect","contentRect","handlePositionChange","positionInPixels","emit","handlePositionInPixelsChange","handleVerticalChange","render","gridTemplate","gridTemplateAlt","secondary","style","html","_templateObject","_taggedTemplateLiteral","ifDefined","undefined","NileElement","styles","__decorate","query","prototype","property","type","Number","reflect","attribute","Boolean","watch","customElement"],"mappings":"shIAyCaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,uEAcsCC,KAAAA,CAAQC,QAAAA,CAAG,GAMVD,KAAAA,CAAQE,QAAAA,CAAAA,CAAG,EAGXF,KAAAA,CAAQG,QAAAA,CAAAA,CAAG,EAgBEH,KAAAA,CAAaI,aAAAA,CAAG,EAoM1E,QAAAC,KAAA,EAlMCC,SAAA,CAAAP,CAAA,CAAAQ,EAAA,SAAAC,YAAA,CAAAT,CAAA,GAAAU,GAAA,qBAAAC,KAAA,UAAAC,iBAAAA,CAAAA,kBACEC,aAAAA,CAAAA,CAAAA,iCACAZ,IAAKa,CAAAA,cAAAA,CAAiB,GAAIC,CAAAA,cAAeC,CAA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IAAAA,CAAMC,MAAQE,CAAAA,SAAAA,CAAW,gBAAuClF,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6E,SAAA,CAAA,eAAA,CAAA,IAAA,EA4H5EF,CAAAA,CAAAA,CAAAA,CAAA,CADCS,CAAM,CAAA,UAAA,CAAA,CAAA,CAKNpF,CAAA6E,CAAAA,SAAAA,CAAA,sBAAA,CAAA,IAAA,CAAA,CAGDF,CAAA,CAAA,CADCS,CAAM,CAAA,kBAAA,CAAA,CAAA,CAGNpF,CAAA6E,CAAAA,SAAAA,CAAA,8BAAA,CAAA,IAAA,CAAA,CAGDF,EAAA,CADCS,CAAAA,CAAM,UAGNpF,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6E,SAAA,CAAA,sBAAA,CAAA,IAjLU7E,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAc2E,CAAA,CAAA,CAD1BU,CAAc,CAAA,kBAAA,CAAA,CAAA,CACFrF"}
1
+ {"version":3,"file":"nile-split-panel.cjs.js","sources":["../../../src/nile-split-panel/nile-split-panel.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport {LitElement, CSSResultArray, TemplateResult} from 'lit';\nimport {styles} from './nile-split-panel.css';\nimport NileElement from '../internal/nile-element';\n\n\nimport { clamp } from '../internal/math';\nimport { customElement, property, query } from 'lit/decorators.js';\nimport { drag } from '../internal/drag';\nimport { html } from 'lit';\nimport { ifDefined } from 'lit/directives/if-defined.js';\nimport { watch } from '../internal/watch';\nimport type { CSSResultGroup } from 'lit';\n\n/**\n * @summary Split panels display two adjacent panels, allowing the user to reposition them.\n *\n * @event nile-reposition - Emitted when the divider's position changes.\n *\n * @slot start - Content to place in the start panel.\n * @slot end - Content to place in the end panel.\n * @slot divider - The divider. Useful for slotting in a custom icon that renders as a handle.\n *\n * @csspart start - The start panel.\n * @csspart end - The end panel.\n * @csspart panel - Targets both the start and end panels.\n * @csspart divider - The divider that separates the start and end panels.\n *\n * @cssproperty [--divider-width=4px] - The width of the visible divider.\n * @cssproperty [--divider-hit-area=12px] - The invisible region around the divider where dragging can occur. This is\n * usually wider than the divider to facilitate easier dragging.\n * @cssproperty [--min=0] - The minimum allowed size of the primary panel.\n * @cssproperty [--max=100%] - The maximum allowed size of the primary panel.\n */\n@customElement('nile-split-panel')\nexport class NileSplitPanel extends NileElement {\n\n\tstatic styles: CSSResultGroup = styles;\n\n private cachedPositionInPixels: number;\n private resizeObserver: ResizeObserver;\n private size: number;\n\n @query('.divider') divider: HTMLElement;\n\n /**\n * The current position of the divider from the primary panel's edge as a percentage 0-100. Defaults to 50% of the\n * container's initial size.\n */\n @property({ type: Number, reflect: true }) position = 50;\n\n /** The current position of the divider from the primary panel's edge in pixels. */\n @property({ attribute: 'position-in-pixels', type: Number }) positionInPixels: number;\n\n /** Draws the split panel in a vertical orientation with the start and end panels stacked. */\n @property({ type: Boolean, reflect: true }) vertical = false;\n\n /** Disables resizing. Note that the position may still change as a result of resizing the host element. */\n @property({ type: Boolean, reflect: true }) disabled = false;\n\n /**\n * If no primary panel is designated, both panels will resize proportionally when the host element is resized. If a\n * primary panel is designated, it will maintain its size and the other panel will grow or shrink as needed when the\n * host element is resized.\n */\n @property() primary?: 'start' | 'end';\n\n /**\n * One or more space-separated values at which the divider should snap. Values can be in pixels or percentages, e.g.\n * `\"100px 50%\"`.\n */\n @property() snap?: string;\n\n /** How close the divider must be to a snap point until snapping occurs. */\n @property({ type: Number, attribute: 'snap-threshold' }) snapThreshold = 12;\n\n connectedCallback() {\n super.connectedCallback();\n this.resizeObserver = new ResizeObserver(entries => this.handleResize(entries));\n this.updateComplete.then(() => this.resizeObserver.observe(this));\n\n this.detectSize();\n this.cachedPositionInPixels = this.percentageToPixels(this.position);\n }\n\n disconnectedCallback() {\n super.disconnectedCallback();\n this.resizeObserver.unobserve(this);\n }\n\n private detectSize() {\n const { width, height } = this.getBoundingClientRect();\n this.size = this.vertical ? height : width;\n }\n\n private percentageToPixels(value: number) {\n return this.size * (value / 100);\n }\n\n private pixelsToPercentage(value: number) {\n return (value / this.size) * 100;\n }\n\n private handleDrag(event: PointerEvent) {\n const isRtl = false;\n\n if (this.disabled) {\n return;\n }\n\n // Prevent text selection when dragging\n if (event.cancelable) {\n event.preventDefault();\n }\n\n drag(this, {\n onMove: (x, y) => {\n let newPositionInPixels = this.vertical ? y : x;\n\n // Flip for end panels\n if (this.primary === 'end') {\n newPositionInPixels = this.size - newPositionInPixels;\n }\n\n // Check snap points\n if (this.snap) {\n const snaps = this.snap.split(' ');\n\n snaps.forEach(value => {\n let snapPoint: number;\n\n if (value.endsWith('%')) {\n snapPoint = this.size * (parseFloat(value) / 100);\n } else {\n snapPoint = parseFloat(value);\n }\n\n if (isRtl && !this.vertical) {\n snapPoint = this.size - snapPoint;\n }\n\n if (\n newPositionInPixels >= snapPoint - this.snapThreshold &&\n newPositionInPixels <= snapPoint + this.snapThreshold\n ) {\n newPositionInPixels = snapPoint;\n }\n });\n }\n\n this.position = clamp(this.pixelsToPercentage(newPositionInPixels), 0, 100);\n },\n initialEvent: event\n });\n }\n\n private handleKeyDown(event: KeyboardEvent) {\n if (this.disabled) {\n return;\n }\n\n if (['ArrowLeft', 'ArrowRight', 'ArrowUp', 'ArrowDown', 'Home', 'End'].includes(event.key)) {\n let newPosition = this.position;\n const incr = (event.shiftKey ? 10 : 1) * (this.primary === 'end' ? -1 : 1);\n\n event.preventDefault();\n\n if ((event.key === 'ArrowLeft' && !this.vertical) || (event.key === 'ArrowUp' && this.vertical)) {\n newPosition -= incr;\n }\n\n if ((event.key === 'ArrowRight' && !this.vertical) || (event.key === 'ArrowDown' && this.vertical)) {\n newPosition += incr;\n }\n\n if (event.key === 'Home') {\n newPosition = this.primary === 'end' ? 100 : 0;\n }\n\n if (event.key === 'End') {\n newPosition = this.primary === 'end' ? 0 : 100;\n }\n\n this.position = clamp(newPosition, 0, 100);\n }\n }\n\n private handleResize(entries: ResizeObserverEntry[]) {\n const { width, height } = entries[0].contentRect;\n this.size = this.vertical ? height : width;\n\n // Resize when a primary panel is set\n if (this.primary) {\n this.position = this.pixelsToPercentage(this.cachedPositionInPixels);\n }\n }\n\n @watch('position')\n handlePositionChange() {\n this.cachedPositionInPixels = this.percentageToPixels(this.position);\n this.positionInPixels = this.percentageToPixels(this.position);\n this.emit('nile-reposition');\n }\n\n @watch('positionInPixels')\n handlePositionInPixelsChange() {\n this.position = this.pixelsToPercentage(this.positionInPixels);\n }\n\n @watch('vertical')\n handleVerticalChange() {\n this.detectSize();\n }\n\n render() {\n const gridTemplate = this.vertical ? 'gridTemplateRows' : 'gridTemplateColumns';\n const gridTemplateAlt = this.vertical ? 'gridTemplateColumns' : 'gridTemplateRows';\n const isRtl = false;\n const primary = `\n clamp(\n 0%,\n clamp(\n var(--min),\n ${this.position}% - var(--divider-width) / 2,\n var(--max)\n ),\n calc(100% - var(--divider-width))\n )\n `;\n const secondary = 'auto';\n\n if (this.primary === 'end') {\n if (isRtl && !this.vertical) {\n this.style[gridTemplate] = `${primary} var(--divider-width) ${secondary}`;\n } else {\n this.style[gridTemplate] = `${secondary} var(--divider-width) ${primary}`;\n }\n } else {\n if (isRtl && !this.vertical) {\n this.style[gridTemplate] = `${secondary} var(--divider-width) ${primary}`;\n } else {\n this.style[gridTemplate] = `${primary} var(--divider-width) ${secondary}`;\n }\n }\n\n // Unset the alt grid template property\n this.style[gridTemplateAlt] = '';\n\n return html`\n <slot name=\"start\" part=\"panel start\" class=\"start\"></slot>\n\n <div\n part=\"divider\"\n class=\"divider\"\n tabindex=${ifDefined(this.disabled ? undefined : '0')}\n role=\"separator\"\n aria-valuenow=${this.position}\n aria-valuemin=\"0\"\n aria-valuemax=\"100\"\n aria-label=\"resize\"\n @keydown=${this.handleKeyDown}\n @mousedown=${this.handleDrag}\n @touchstart=${this.handleDrag}\n >\n <slot name=\"divider\"></slot>\n </div>\n\n <slot name=\"end\" part=\"panel end\" class=\"end\"></slot>\n `;\n }\n}\n\nexport default NileSplitPanel;\n\ndeclare global {\n interface HTMLElementTagNameMap {\n 'nile-split-panel': NileSplitPanel;\n }\n}\n"],"names":["NileSplitPanel","p","this","position","vertical","disabled","snapThreshold","_this","_inherits","_s","_createClass","key","value","connectedCallback","super","resizeObserver","ResizeObserver","entries","handleResize","updateComplete","then","observe","detectSize","cachedPositionInPixels","percentageToPixels","disconnectedCallback","unobserve","_this$getBoundingClie","getBoundingClientRect","width","height","size","pixelsToPercentage","handleDrag","event","cancelable","preventDefault","drag","onMove","x","y","newPositionInPixels","primary","snap","split","forEach","snapPoint","endsWith","parseFloat","clamp","initialEvent","handleKeyDown","includes","newPosition","incr","shiftKey","_i$0$contentRect","contentRect","handlePositionChange","positionInPixels","emit","handlePositionInPixelsChange","handleVerticalChange","render","gridTemplate","gridTemplateAlt","secondary","style","html","_templateObject","_taggedTemplateLiteral","ifDefined","undefined","NileElement","styles","__decorate","query","prototype","property","type","Number","reflect","attribute","Boolean","watch","customElement"],"mappings":"y0IAyCaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,uEAcsCC,KAAAA,CAAQC,QAAG,CAAA,EAAA,CAMVD,KAAAA,CAAQE,QAAG,CAAA,CAAA,CAAA,CAGXF,KAAAA,CAAQG,QAAG,CAAA,CAAA,CAAA,CAgBEH,KAAAA,CAAaI,aAAG,CAAA,EAoM1E,QAAAC,KAAA,EAlMCC,SAAA,CAAAP,CAAA,CAAAQ,EAAA,SAAAC,YAAA,CAAAT,CAAA,GAAAU,GAAA,qBAAAC,KAAA,UAAAC,iBAAAA,CAAAA,CAAAA,KAAAA,MAAAA,MACEC,aAAAA,CAAAA,CAAAA,iCACAZ,KAAKa,cAAiB,CAAA,GAAIC,CAAAA,eAAeC,SAAAA,CAAWf,QAAAA,CAAAA,MAAAA,CAAKgB,aAAaD,CACtEf,CAAAA,EAAAA,CAAAA,CAAAA,IAAAA,CAAKiB,eAAeC,IAAK,CAAA,iBA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H5EF,CAAAA,CAAAA,CAAAA,CAAA,CADCS,CAAM,CAAA,UAAA,CAAA,CAAA,CAKNpF,CAAA6E,CAAAA,SAAAA,CAAA,sBAAA,CAAA,IAAA,CAAA,CAGDF,CAAA,CAAA,CADCS,CAAM,CAAA,kBAAA,CAAA,CAAA,CAGNpF,CAAA6E,CAAAA,SAAAA,CAAA,8BAAA,CAAA,IAAA,CAAA,CAGDF,EAAA,CADCS,CAAAA,CAAM,UAGNpF,CAAAA,CAAAA,CAAAA,CAAAA,CAAA6E,SAAA,CAAA,sBAAA,CAAA,IAjLU7E,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAc2E,CAAA,CAAA,CAD1BU,CAAc,CAAA,kBAAA,CAAA,CAAA,CACFrF"}
@@ -1,4 +1,4 @@
1
- import{__decorate as i}from"tslib";import{s as t}from"./nile-split-panel.css.esm.js";import{N as s}from"../internal/nile-element.esm.js";import{c as e}from"../internal/math.esm.js";import{query as r,property as n,customElement as h}from"lit/decorators.js";import{d as a}from"../internal/drag.esm.js";import{html as o}from"lit";import{ifDefined as l}from"lit/directives/if-defined.js";import{w as d}from"../internal/watch.esm.js";let p=class extends s{constructor(){super(...arguments),this.position=50,this.vertical=!1,this.disabled=!1,this.snapThreshold=12}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((i=>this.handleResize(i))),this.updateComplete.then((()=>this.resizeObserver.observe(this))),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}detectSize(){const{width:i,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:i}percentageToPixels(i){return this.size*(i/100)}pixelsToPercentage(i){return i/this.size*100}handleDrag(i){this.disabled||(i.cancelable&&i.preventDefault(),a(this,{onMove:(i,t)=>{let s=this.vertical?t:i;if("end"===this.primary&&(s=this.size-s),this.snap){this.snap.split(" ").forEach((i=>{let t;t=i.endsWith("%")?this.size*(parseFloat(i)/100):parseFloat(i),s>=t-this.snapThreshold&&s<=t+this.snapThreshold&&(s=t)}))}this.position=e(this.pixelsToPercentage(s),0,100)},initialEvent:i}))}handleKeyDown(i){if(!this.disabled&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(i.key)){let t=this.position;const s=(i.shiftKey?10:1)*("end"===this.primary?-1:1);i.preventDefault(),("ArrowLeft"===i.key&&!this.vertical||"ArrowUp"===i.key&&this.vertical)&&(t-=s),("ArrowRight"===i.key&&!this.vertical||"ArrowDown"===i.key&&this.vertical)&&(t+=s),"Home"===i.key&&(t="end"===this.primary?100:0),"End"===i.key&&(t="end"===this.primary?0:100),this.position=e(t,0,100)}}handleResize(i){const{width:t,height:s}=i[0].contentRect;this.size=this.vertical?s:t,this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.positionInPixels=this.percentageToPixels(this.position),this.emit("nile-reposition")}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){const i=this.vertical?"gridTemplateRows":"gridTemplateColumns",t=this.vertical?"gridTemplateColumns":"gridTemplateRows",s=`\n clamp(\n 0%,\n clamp(\n var(--min),\n ${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]=`${e} var(--divider-width) ${s}`:this.style[i]=`${s} var(--divider-width) ${e}`,this.style[t]="",o`
1
+ import{__decorate as i}from"tslib";import{s as t}from"./nile-split-panel.css.esm.js";import{N as e}from"../internal/nile-element.esm.js";import{c as s}from"../internal/math.esm.js";import{query as r,property as n,customElement as a}from"lit/decorators.js";import{d as o}from"../internal/drag.esm.js";import{html as h}from"lit";import{ifDefined as l}from"lit/directives/if-defined.js";import{w as d}from"../internal/watch.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 m=class extends e{constructor(){super(...arguments),this.position=50,this.vertical=!1,this.disabled=!1,this.snapThreshold=12}connectedCallback(){super.connectedCallback(),this.resizeObserver=new ResizeObserver((i=>this.handleResize(i))),this.updateComplete.then((()=>this.resizeObserver.observe(this))),this.detectSize(),this.cachedPositionInPixels=this.percentageToPixels(this.position)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.unobserve(this)}detectSize(){const{width:i,height:t}=this.getBoundingClientRect();this.size=this.vertical?t:i}percentageToPixels(i){return this.size*(i/100)}pixelsToPercentage(i){return i/this.size*100}handleDrag(i){this.disabled||(i.cancelable&&i.preventDefault(),o(this,{onMove:(i,t)=>{let e=this.vertical?t:i;if("end"===this.primary&&(e=this.size-e),this.snap){this.snap.split(" ").forEach((i=>{let t;t=i.endsWith("%")?this.size*(parseFloat(i)/100):parseFloat(i),e>=t-this.snapThreshold&&e<=t+this.snapThreshold&&(e=t)}))}this.position=s(this.pixelsToPercentage(e),0,100)},initialEvent:i}))}handleKeyDown(i){if(!this.disabled&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown","Home","End"].includes(i.key)){let t=this.position;const e=(i.shiftKey?10:1)*("end"===this.primary?-1:1);i.preventDefault(),("ArrowLeft"===i.key&&!this.vertical||"ArrowUp"===i.key&&this.vertical)&&(t-=e),("ArrowRight"===i.key&&!this.vertical||"ArrowDown"===i.key&&this.vertical)&&(t+=e),"Home"===i.key&&(t="end"===this.primary?100:0),"End"===i.key&&(t="end"===this.primary?0:100),this.position=s(t,0,100)}}handleResize(i){const{width:t,height:e}=i[0].contentRect;this.size=this.vertical?e:t,this.primary&&(this.position=this.pixelsToPercentage(this.cachedPositionInPixels))}handlePositionChange(){this.cachedPositionInPixels=this.percentageToPixels(this.position),this.positionInPixels=this.percentageToPixels(this.position),this.emit("nile-reposition")}handlePositionInPixelsChange(){this.position=this.pixelsToPercentage(this.positionInPixels)}handleVerticalChange(){this.detectSize()}render(){const i=this.vertical?"gridTemplateRows":"gridTemplateColumns",t=this.vertical?"gridTemplateColumns":"gridTemplateRows",e=`\n clamp(\n 0%,\n clamp(\n var(--min),\n ${this.position}% - var(--divider-width) / 2,\n var(--max)\n ),\n calc(100% - var(--divider-width))\n )\n `,s="auto";return"end"===this.primary?this.style[i]=`${s} var(--divider-width) ${e}`:this.style[i]=`${e} var(--divider-width) ${s}`,this.style[t]="",h`
2
2
  <slot name="start" part="panel start" class="start"></slot>
3
3
 
4
4
  <div
@@ -18,4 +18,4 @@ import{__decorate as i}from"tslib";import{s as t}from"./nile-split-panel.css.esm
18
18
  </div>
19
19
 
20
20
  <slot name="end" part="panel end" class="end"></slot>
21
- `}};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),p=i([h("nile-split-panel")],p);export{p as N};
21
+ `}};m.styles=t,i([r(".divider")],m.prototype,"divider",void 0),i([n({type:Number,reflect:!0})],m.prototype,"position",void 0),i([n({attribute:"position-in-pixels",type:Number})],m.prototype,"positionInPixels",void 0),i([n({type:Boolean,reflect:!0})],m.prototype,"vertical",void 0),i([n({type:Boolean,reflect:!0})],m.prototype,"disabled",void 0),i([n()],m.prototype,"primary",void 0),i([n()],m.prototype,"snap",void 0),i([n({type:Number,attribute:"snap-threshold"})],m.prototype,"snapThreshold",void 0),i([d("position")],m.prototype,"handlePositionChange",null),i([d("positionInPixels")],m.prototype,"handlePositionInPixelsChange",null),i([d("vertical")],m.prototype,"handleVerticalChange",null),m=i([a("nile-split-panel")],m);export{m as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-stepper.cjs.js","tslib","lit","lit/decorators.js","./nile-stepper.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js","lit/directives/class-map.js","./stepper-utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileStepperCjsJs){_export("NileStepper",_nileStepperCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileStepperCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalWatchCjsJs){},function(_litDirectivesClassMapJs){},function(_stepperUtilsCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-stepper.cjs.js","tslib","lit","lit/decorators.js","./nile-stepper.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","../internal/watch.cjs.js","lit/directives/class-map.js","./stepper-utils.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileStepperCjsJs){_export("NileStepper",_nileStepperCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileStepperCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_internalWatchCjsJs){},function(_litDirectivesClassMapJs){},function(_stepperUtilsCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileStepper}from"./nile-stepper.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-stepper.css.esm.js";import"../internal/nile-element.esm.js";import"../internal/watch.esm.js";import"lit/directives/class-map.js";import"./stepper-utils.esm.js";
1
+ export{N as NileStepper}from"./nile-stepper.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-stepper.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"../internal/watch.esm.js";import"lit/directives/class-map.js";import"./stepper-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","lit","lit/decorators.js","./nile-stepper.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js","lit/directives/class-map.js","./stepper-utils.cjs.js"],function(_export,_context){"use strict";var t,e,i,s,r,l,n,p,o,_templateObject,a;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _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(_lit){e=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileStepperCssCjsJs){r=_nileStepperCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_internalWatchCjsJs){n=_internalWatchCjsJs.w;},function(_litDirectivesClassMapJs){p=_litDirectivesClassMapJs.classMap;},function(_stepperUtilsCjsJs){o=_stepperUtilsCjsJs.u;}],execute:function execute(){_export("N",a=/*#__PURE__*/function(_l){function a(){var _this;_classCallCheck(this,a);_this=_callSuper(this,a,arguments),_this.isVertical=!1,_this.contentBelow=!1,_this.currentStep=0,_this.completedStep=0,_this.size="lg",_this.icon="tick",_this.manual=!1;return _this;}_inherits(a,_l);return _createClass(a,[{key:"update",value:function update(t){_superPropGet(a,"update",this,3)([t]),(t.has("currentStep")||t.has("completedStep")||t.has("manual"))&&this.updateItems();}},{key:"handleCurrentStepChanges",value:function handleCurrentStepChanges(){this.updateItems(),this.emit("nile-current-change",{value:this.currentStep});}},{key:"handleCompletedStepChanges",value:function handleCompletedStepChanges(){this.updateItems(),this.emit("nile-completed-change",{value:this.completedStep});}},{key:"updateItems",value:function updateItems(){var _this2=this;var t=_toConsumableArray(this.querySelectorAll(this.isVertical?"nile-vertical-stepper-item":"nile-stepper-item"));if(!t.length)return;var e=t.length<3;if(this.manual)o(t,{icon:this.icon,size:this.size,contentBelow:this.contentBelow,manual:this.manual,isVertical:this.isVertical},e);else{var _i=0==this.currentStep||this.currentStep>t.length?1:this.currentStep,_s=this.completedStep>t.length||this.completedStep<_i?_i:this.completedStep,_r=this.completedStep>t.length?0:this.completedStep;t.forEach(function(l,n){n+1<_i?(l.isComplete=!0,l.isCurrent=!1):n+1==_i?(l.isComplete=n+1<=_s,l.isCurrent=!0):(l.isComplete=n+1<=_s,l.isCurrent=!1),l.isFirst=!1,l.isLast=!1,0==n&&(l.isFirst=!0),n==t.length-1&&(l.isLast=!0),l.currentStepValue=_i,l.calculatedCompletedStepValue=_s,l.completedStepValue=_r,l.icon=_this2.icon,l.size=_this2.size,l.value=n+1,l.contentBelow=_this2.contentBelow,l.isManualMode=_this2.manual,0!=n&&n!=t.length-1||(l.haveFlex=e);});}}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t<div part=\"stepper\" class=",">\n\t\t\t\t<slot\n\t\t\t\t\t@slotchange=","\n\t\t\t\t></slot>\n\t\t\t</div>\n\t\t\t"])),p({"nile-stepper":!0,"nile-stepper--horizontal":!this.isVertical,"nile-stepper--vertical":this.isVertical}),this.updateItems);}}],[{key:"styles",get:function get(){return[r];}}]);}(l));t([i({type:Boolean,attribute:"vertical"})],a.prototype,"isVertical",void 0),t([i({type:Boolean,attribute:!0,reflect:!0})],a.prototype,"contentBelow",void 0),t([i({type:Number,attribute:!0,reflect:!0})],a.prototype,"currentStep",void 0),t([i({type:Number,attribute:!0,reflect:!0})],a.prototype,"completedStep",void 0),t([i({type:String,attribute:!0,reflect:!0})],a.prototype,"size",void 0),t([i({type:String,attribute:!0,reflect:!0})],a.prototype,"icon",void 0),t([i({type:Boolean,attribute:!0,reflect:!0})],a.prototype,"manual",void 0),t([n("currentStep")],a.prototype,"handleCurrentStepChanges",null),t([n("completedStep")],a.prototype,"handleCompletedStepChanges",null),_export("N",a=t([s("nile-stepper")],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","lit/decorators.js","./nile-stepper.css.cjs.js","../internal/nile-element.cjs.js","../internal/watch.cjs.js","lit/directives/class-map.js","./stepper-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,e,i,s,r,l,n,a,p,_templateObject,o;function _taggedTemplateLiteral(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}));}function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}function _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(_lit){e=_lit.html;},function(_litDecoratorsJs){i=_litDecoratorsJs.property;s=_litDecoratorsJs.customElement;},function(_nileStepperCssCjsJs){r=_nileStepperCssCjsJs.s;},function(_internalNileElementCjsJs){l=_internalNileElementCjsJs.N;},function(_internalWatchCjsJs){n=_internalWatchCjsJs.w;},function(_litDirectivesClassMapJs){a=_litDirectivesClassMapJs.classMap;},function(_stepperUtilsCjsJs){p=_stepperUtilsCjsJs.u;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",o=/*#__PURE__*/function(_l){function o(){var _this;_classCallCheck(this,o);_this=_callSuper(this,o,arguments),_this.isVertical=!1,_this.contentBelow=!1,_this.currentStep=0,_this.completedStep=0,_this.size="lg",_this.icon="tick",_this.manual=!1;return _this;}_inherits(o,_l);return _createClass(o,[{key:"update",value:function update(t){_superPropGet(o,"update",this,3)([t]),(t.has("currentStep")||t.has("completedStep")||t.has("manual"))&&this.updateItems();}},{key:"handleCurrentStepChanges",value:function handleCurrentStepChanges(){this.updateItems(),this.emit("nile-current-change",{value:this.currentStep});}},{key:"handleCompletedStepChanges",value:function handleCompletedStepChanges(){this.updateItems(),this.emit("nile-completed-change",{value:this.completedStep});}},{key:"updateItems",value:function updateItems(){var _this2=this;var t=_toConsumableArray(this.querySelectorAll(this.isVertical?"nile-vertical-stepper-item":"nile-stepper-item"));if(!t.length)return;var e=t.length<3;if(this.manual)p(t,{icon:this.icon,size:this.size,contentBelow:this.contentBelow,manual:this.manual,isVertical:this.isVertical},e);else{var _i=0==this.currentStep||this.currentStep>t.length?1:this.currentStep,_s=this.completedStep>t.length||this.completedStep<_i?_i:this.completedStep,_r=this.completedStep>t.length?0:this.completedStep;t.forEach(function(l,n){n+1<_i?(l.isComplete=!0,l.isCurrent=!1):n+1==_i?(l.isComplete=n+1<=_s,l.isCurrent=!0):(l.isComplete=n+1<=_s,l.isCurrent=!1),l.isFirst=!1,l.isLast=!1,0==n&&(l.isFirst=!0),n==t.length-1&&(l.isLast=!0),l.currentStepValue=_i,l.calculatedCompletedStepValue=_s,l.completedStepValue=_r,l.icon=_this2.icon,l.size=_this2.size,l.value=n+1,l.contentBelow=_this2.contentBelow,l.isManualMode=_this2.manual,0!=n&&n!=t.length-1||(l.haveFlex=e);});}}},{key:"render",value:function render(){return e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t<div part=\"stepper\" class=",">\n\t\t\t\t<slot\n\t\t\t\t\t@slotchange=","\n\t\t\t\t></slot>\n\t\t\t</div>\n\t\t\t"])),a({"nile-stepper":!0,"nile-stepper--horizontal":!this.isVertical,"nile-stepper--vertical":this.isVertical}),this.updateItems);}}],[{key:"styles",get:function get(){return[r];}}]);}(l));t([i({type:Boolean,attribute:"vertical"})],o.prototype,"isVertical",void 0),t([i({type:Boolean,attribute:!0,reflect:!0})],o.prototype,"contentBelow",void 0),t([i({type:Number,attribute:!0,reflect:!0})],o.prototype,"currentStep",void 0),t([i({type:Number,attribute:!0,reflect:!0})],o.prototype,"completedStep",void 0),t([i({type:String,attribute:!0,reflect:!0})],o.prototype,"size",void 0),t([i({type:String,attribute:!0,reflect:!0})],o.prototype,"icon",void 0),t([i({type:Boolean,attribute:!0,reflect:!0})],o.prototype,"manual",void 0),t([n("currentStep")],o.prototype,"handleCurrentStepChanges",null),t([n("completedStep")],o.prototype,"handleCompletedStepChanges",null),_export("N",o=t([s("nile-stepper")],o));}};});
2
2
  //# sourceMappingURL=nile-stepper.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-stepper.cjs.js","sources":["../../../src/nile-stepper/nile-stepper.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html, CSSResultArray, TemplateResult, PropertyValueMap } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-stepper.css';\nimport NileElement from '../internal/nile-element';\nimport { watch } from '../internal/watch';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { updateItemsInManualMode } from './stepper-utils';\n\n\n/**\n * Nile stepper component.\n *\n * @tag nile-stepper\n *\n */\n@customElement('nile-stepper')\nexport class NileStepper extends NileElement {\n\n\t@property({ type: Boolean, attribute: 'vertical' }) isVertical: boolean = false;\n\t@property({ type: Boolean, attribute: true, reflect:true }) contentBelow: boolean = false;\n\t@property({ type: Number, attribute: true, reflect:true }) currentStep: number = 0;\n\t@property({ type: Number, attribute: true, reflect:true }) completedStep: number = 0;\n\t@property({ type: String, attribute: true, reflect:true }) size: 'sm' | 'lg' = 'lg';\n\t@property({ type: String, attribute: true, reflect:true }) icon: string = 'tick';\n\t@property({ type: Boolean, attribute: true, reflect:true }) manual: boolean = false;\n\n\tprotected update(changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void{\n super.update(changedProperties);\n\t\tif(changedProperties.has('currentStep') || changedProperties.has('completedStep') || changedProperties.has('manual')){\n\t\t\tthis.updateItems();\n\t\t}\n\t}\n\n\t@watch('currentStep')\n\thandleCurrentStepChanges() {\n\t\tthis.updateItems();\n\t\tthis.emit('nile-current-change', { value: this.currentStep });\n\t}\n\n\t@watch('completedStep')\n\thandleCompletedStepChanges() {\n\t\tthis.updateItems()\n\t\tthis.emit('nile-completed-change', { value: this.completedStep });\n\t}\n\t\n\tprivate updateItems() {\n\t\tconst items: any = [...this.querySelectorAll(this.isVertical ? 'nile-vertical-stepper-item' : 'nile-stepper-item')];\n\t\tif (!items.length) return;\n\t\tconst haveFlex = items.length < 3;\n\n\t\tif (this.manual) {\n\t\t\t// Manual mode: use inline properties from each item\n\t\t\tupdateItemsInManualMode(items, {\n\t\t\t\ticon: this.icon,\n\t\t\t\tsize: this.size,\n\t\t\t\tcontentBelow: this.contentBelow,\n\t\t\t\tmanual: this.manual,\n\t\t\t\tisVertical: this.isVertical\n\t\t\t}, haveFlex);\n\t\t} else {\n\t\t\t// Automatic mode: use currentStep and completedStep properties\n\t\t\tconst current = (this.currentStep == 0 || this.currentStep > items.length) ? 1 : this.currentStep;\n\t\t\tconst calculatedCompleted = this.completedStep > items.length ? current : this.completedStep < current ? current : this.completedStep;\n\t\t\tconst completed = this.completedStep > items.length ? 0 : this.completedStep;\n\n\t\t\titems.forEach((el: any, index: number) => {\n\t\t\t\t// set item is complete and is current values\n\t\t\t\tif (index + 1 < current) {\n\t\t\t\t\tel.isComplete = true;\n\t\t\t\t\tel.isCurrent = false;\n\t\t\t\t}\n\t\t\t\telse if (index + 1 == current) {\n\t\t\t\t\tif (index + 1 <= calculatedCompleted) el.isComplete = true;\n\t\t\t\t\telse el.isComplete = false;\n\t\t\t\t\tel.isCurrent = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (index + 1 <= calculatedCompleted) el.isComplete = true;\n\t\t\t\t\telse el.isComplete = false;\n\t\t\t\t\tel.isCurrent = false;\n\t\t\t\t}\n\n\t\t\t\t// Reset and set isLast and isFirst\n\t\t\t\tel.isFirst = false;\n\t\t\t\tel.isLast = false;\n\t\t\t\tif (index == 0) el.isFirst = true;\n\t\t\t\tif (index == items.length - 1) el.isLast = true;\n\n\t\t\t\t// setting default values\n\t\t\t\tel.currentStepValue = current;\n\t\t\t\tel.calculatedCompletedStepValue = calculatedCompleted;\n\t\t\t\tel.completedStepValue = completed;\n\n\t\t\t\tel.icon = this.icon;\n\t\t\t\tel.size = this.size;\n\t\t\t\tel.value = index + 1;\n\t\t\t\tel.contentBelow = this.contentBelow;\n\t\t\t\tel.isManualMode = this.manual;\n\t\t\t\tif (index == 0 || index == items.length - 1) {\n\t\t\t\t\tel.haveFlex = haveFlex;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * The styles for nile-stepper\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<div part=\"stepper\" class=${classMap({\n\t\t\t\t'nile-stepper':true,\n\t\t\t\t'nile-stepper--horizontal':!this.isVertical,\n\t\t\t\t'nile-stepper--vertical':this.isVertical\n\t\t\t})}>\n\t\t\t\t<slot\n\t\t\t\t\t@slotchange=${this.updateItems}\n\t\t\t\t></slot>\n\t\t\t</div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileStepper;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-stepper': NileStepper;\n\t}\n}\n"],"names":["NileStepper","a","constructor","this","isVertical","contentBelow","currentStep","completedStep","size","icon","manual","_this","_inherits","_l","_createClass","key","value","update","changedProperties","super","has","updateItems","handleCurrentStepChanges","emit","handleCompletedStepChanges","items","querySelectorAll","length","haveFlex","updateItemsInManualMode","current","calculatedCompleted","completed","forEach","el","index","isComplete","isCurrent","isFirst","isLast","currentStepValue","calculatedCompletedStepValue","completedStepValue","isManualMode","render","html","_templateObject","_taggedTemplateLiteral","classMap","__decorate","get","styles","NileElement","property","type","Boolean","attribute","prototype","reflect","Number","String","watch","customElement"],"mappings":"i3JAuBaA,CAAAA,uBAAAA,EAAAA,EAAN,SAAAC,EAAA,CAAAC,KAAAA,KAAAA,CAAAA,eAAAA,MAAAA,CAAAA,qCAE8CC,KAAAA,CAAUC,UAAAA,CAAAA,CAAY,CACdD,CAAAA,KAAAA,CAAYE,cAAY,CACzBF,CAAAA,K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A,CAAAA,CAAAA,CAAA,CAA3DI,CAAAA,CAAS,CAAEC,IAAAA,CAAMM,OAAQJ,SAAW,CAAA,CAAA,CAAA,CAAME,OAAQ,CAAA,CAAA,CAAA,CAAA,CAAA,CAAA,CAA+B1D,CAAAyD,CAAAA,SAAAA,CAAA,MAAA,CAAA,IAAA,EAAA,CAAA,CACtBR,CAAA,CAAA,CAA3DI,CAAS,CAAA,CAAEC,IAAMC,CAAAA,OAAAA,CAASC,WAAW,CAAME,CAAAA,OAAAA,CAAAA,CAAQ,CAAgC1D,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAyD,SAAA,CAAA,QAAA,CAAA,IAAA,EAUpFR,CAAAA,CAAAA,CAAAA,CAAA,CADCY,CAAAA,CAAM,aAIN7D,CAAAA,CAAAA,CAAAA,CAAAA,CAAAyD,SAAA,CAAA,0BAAA,CAAA,IAGDR,CAAAA,CAAAA,CAAAA,CAAA,CADCY,CAAAA,CAAM,eAIN7D,CAAAA,CAAAA,CAAAA,CAAAA,CAAAyD,SAAA,CAAA,4BAAA,CAAA,IA3BWzD,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAWiD,CAAA,CAAA,CADvBa,CAAc,CAAA,cAAA,CAAA,CAAA,CACF9D"}
1
+ {"version":3,"file":"nile-stepper.cjs.js","sources":["../../../src/nile-stepper/nile-stepper.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, html, CSSResultArray, TemplateResult, PropertyValueMap } from 'lit';\nimport { customElement, property } from 'lit/decorators.js';\nimport { styles } from './nile-stepper.css';\nimport NileElement from '../internal/nile-element';\nimport { watch } from '../internal/watch';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { updateItemsInManualMode } from './stepper-utils';\n\n\n/**\n * Nile stepper component.\n *\n * @tag nile-stepper\n *\n */\n@customElement('nile-stepper')\nexport class NileStepper extends NileElement {\n\n\t@property({ type: Boolean, attribute: 'vertical' }) isVertical: boolean = false;\n\t@property({ type: Boolean, attribute: true, reflect:true }) contentBelow: boolean = false;\n\t@property({ type: Number, attribute: true, reflect:true }) currentStep: number = 0;\n\t@property({ type: Number, attribute: true, reflect:true }) completedStep: number = 0;\n\t@property({ type: String, attribute: true, reflect:true }) size: 'sm' | 'lg' = 'lg';\n\t@property({ type: String, attribute: true, reflect:true }) icon: string = 'tick';\n\t@property({ type: Boolean, attribute: true, reflect:true }) manual: boolean = false;\n\n\tprotected update(changedProperties: PropertyValueMap<any> | Map<PropertyKey, unknown>): void{\n super.update(changedProperties);\n\t\tif(changedProperties.has('currentStep') || changedProperties.has('completedStep') || changedProperties.has('manual')){\n\t\t\tthis.updateItems();\n\t\t}\n\t}\n\n\t@watch('currentStep')\n\thandleCurrentStepChanges() {\n\t\tthis.updateItems();\n\t\tthis.emit('nile-current-change', { value: this.currentStep });\n\t}\n\n\t@watch('completedStep')\n\thandleCompletedStepChanges() {\n\t\tthis.updateItems()\n\t\tthis.emit('nile-completed-change', { value: this.completedStep });\n\t}\n\t\n\tprivate updateItems() {\n\t\tconst items: any = [...this.querySelectorAll(this.isVertical ? 'nile-vertical-stepper-item' : 'nile-stepper-item')];\n\t\tif (!items.length) return;\n\t\tconst haveFlex = items.length < 3;\n\n\t\tif (this.manual) {\n\t\t\t// Manual mode: use inline properties from each item\n\t\t\tupdateItemsInManualMode(items, {\n\t\t\t\ticon: this.icon,\n\t\t\t\tsize: this.size,\n\t\t\t\tcontentBelow: this.contentBelow,\n\t\t\t\tmanual: this.manual,\n\t\t\t\tisVertical: this.isVertical\n\t\t\t}, haveFlex);\n\t\t} else {\n\t\t\t// Automatic mode: use currentStep and completedStep properties\n\t\t\tconst current = (this.currentStep == 0 || this.currentStep > items.length) ? 1 : this.currentStep;\n\t\t\tconst calculatedCompleted = this.completedStep > items.length ? current : this.completedStep < current ? current : this.completedStep;\n\t\t\tconst completed = this.completedStep > items.length ? 0 : this.completedStep;\n\n\t\t\titems.forEach((el: any, index: number) => {\n\t\t\t\t// set item is complete and is current values\n\t\t\t\tif (index + 1 < current) {\n\t\t\t\t\tel.isComplete = true;\n\t\t\t\t\tel.isCurrent = false;\n\t\t\t\t}\n\t\t\t\telse if (index + 1 == current) {\n\t\t\t\t\tif (index + 1 <= calculatedCompleted) el.isComplete = true;\n\t\t\t\t\telse el.isComplete = false;\n\t\t\t\t\tel.isCurrent = true;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tif (index + 1 <= calculatedCompleted) el.isComplete = true;\n\t\t\t\t\telse el.isComplete = false;\n\t\t\t\t\tel.isCurrent = false;\n\t\t\t\t}\n\n\t\t\t\t// Reset and set isLast and isFirst\n\t\t\t\tel.isFirst = false;\n\t\t\t\tel.isLast = false;\n\t\t\t\tif (index == 0) el.isFirst = true;\n\t\t\t\tif (index == items.length - 1) el.isLast = true;\n\n\t\t\t\t// setting default values\n\t\t\t\tel.currentStepValue = current;\n\t\t\t\tel.calculatedCompletedStepValue = calculatedCompleted;\n\t\t\t\tel.completedStepValue = completed;\n\n\t\t\t\tel.icon = this.icon;\n\t\t\t\tel.size = this.size;\n\t\t\t\tel.value = index + 1;\n\t\t\t\tel.contentBelow = this.contentBelow;\n\t\t\t\tel.isManualMode = this.manual;\n\t\t\t\tif (index == 0 || index == items.length - 1) {\n\t\t\t\t\tel.haveFlex = haveFlex;\n\t\t\t\t}\n\t\t\t});\n\t\t}\n\t}\n\n\t/**\n\t * The styles for nile-stepper\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<div part=\"stepper\" class=${classMap({\n\t\t\t\t'nile-stepper':true,\n\t\t\t\t'nile-stepper--horizontal':!this.isVertical,\n\t\t\t\t'nile-stepper--vertical':this.isVertical\n\t\t\t})}>\n\t\t\t\t<slot\n\t\t\t\t\t@slotchange=${this.updateItems}\n\t\t\t\t></slot>\n\t\t\t</div>\n\t\t\t`;\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileStepper;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-stepper': NileStepper;\n\t}\n}\n"],"names":["NileStepper","_l","o","this","isVertical","contentBelow","currentStep","completedStep","size","icon","manual","_this","_inherits","_createClass","key","value","update","changedProperties","super","has","updateItems","handleCurrentStepChanges","emit","handleCompletedStepChanges","_this2","items","_toConsumableArray","querySelectorAll","length","haveFlex","updateItemsInManualMode","current","calculatedCompleted","completed","forEach","el","index","isComplete","isCurrent","isFirst","isLast","currentStepValue","calculatedCompletedStepValue","completedStepValue","isManualMode","render","html","_templateObject","_taggedTemplateLiteral","classMap","__decorate","get","styles","NileElement","property","type","Boolean","attribute","prototype","reflect","Number","String","watch","customElement"],"mappings":"oqKAuBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,qEAE8CC,EAAAA,KAAAA,CAAUC,YAAY,CACdD,CAAAA,KAAAA,CAAYE,YAAY,CAAA,CAAA,CAAA,CACzBF,KAAAA,CAAWG,WAAAA,CAAW,CACrBH,CAAAA,KAAAA,CAAaI,aAAW,CAAA,CAAA,CACxBJ,KAAAA,CAAIK,IAAAA,CAAgB,IACpBL,CAAAA,KAAAA,CAAIM,IAAW,CAAA,MAAA,CACfN,KAAAA,CAAMO,MAAY,CAAA,CAAA,CAgH9E,QAAAC,KAAA,EA9GUC,SAAA,CAAAV,CAAA,CAAAD,EAAA,SAAAY,YAAA,CAAAX,CAAA,GAAAY,GAAA,UAAAC,KAAA,UAAAC,MAAAA,CAAOC,CAAAA,CAAAA,CACdC,aAAAA,CAAAA,CAAAA,mBAAaD,CACZA,GAAAA,CAAAA,CAAAA,CAAkBE,GAAI,CAAA,aAAA,CAAA,EAAkBF,CAAkB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AA,CAAA,CADCY,CAAAA,CAAM,aAIN9D,CAAAA,CAAAA,CAAAA,CAAAA,CAAA0D,SAAA,CAAA,0BAAA,CAAA,IAGDR,CAAAA,CAAAA,CAAAA,CAAA,CADCY,CAAAA,CAAM,eAIN9D,CAAAA,CAAAA,CAAAA,CAAAA,CAAA0D,SAAA,CAAA,4BAAA,CAAA,IA3BW1D,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAWkD,CAAA,CAAA,CADvBa,CAAc,CAAA,cAAA,CAAA,CAAA,CACF/D"}
@@ -1,7 +1,7 @@
1
- import{__decorate as t}from"tslib";import{html as e}from"lit";import{property as i,customElement as s}from"lit/decorators.js";import{s as r}from"./nile-stepper.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";import{w as n}from"../internal/watch.esm.js";import{classMap as p}from"lit/directives/class-map.js";import{u as o}from"./stepper-utils.esm.js";let a=class extends l{constructor(){super(...arguments),this.isVertical=!1,this.contentBelow=!1,this.currentStep=0,this.completedStep=0,this.size="lg",this.icon="tick",this.manual=!1}update(t){super.update(t),(t.has("currentStep")||t.has("completedStep")||t.has("manual"))&&this.updateItems()}handleCurrentStepChanges(){this.updateItems(),this.emit("nile-current-change",{value:this.currentStep})}handleCompletedStepChanges(){this.updateItems(),this.emit("nile-completed-change",{value:this.completedStep})}updateItems(){const t=[...this.querySelectorAll(this.isVertical?"nile-vertical-stepper-item":"nile-stepper-item")];if(!t.length)return;const e=t.length<3;if(this.manual)o(t,{icon:this.icon,size:this.size,contentBelow:this.contentBelow,manual:this.manual,isVertical:this.isVertical},e);else{const i=0==this.currentStep||this.currentStep>t.length?1:this.currentStep,s=this.completedStep>t.length||this.completedStep<i?i:this.completedStep,r=this.completedStep>t.length?0:this.completedStep;t.forEach(((l,n)=>{n+1<i?(l.isComplete=!0,l.isCurrent=!1):n+1==i?(l.isComplete=n+1<=s,l.isCurrent=!0):(l.isComplete=n+1<=s,l.isCurrent=!1),l.isFirst=!1,l.isLast=!1,0==n&&(l.isFirst=!0),n==t.length-1&&(l.isLast=!0),l.currentStepValue=i,l.calculatedCompletedStepValue=s,l.completedStepValue=r,l.icon=this.icon,l.size=this.size,l.value=n+1,l.contentBelow=this.contentBelow,l.isManualMode=this.manual,0!=n&&n!=t.length-1||(l.haveFlex=e)}))}}static get styles(){return[r]}render(){return e`
2
- <div part="stepper" class=${p({"nile-stepper":!0,"nile-stepper--horizontal":!this.isVertical,"nile-stepper--vertical":this.isVertical})}>
1
+ import{__decorate as t}from"tslib";import{html as e}from"lit";import{property as i,customElement as s}from"lit/decorators.js";import{s as r}from"./nile-stepper.css.esm.js";import{N as l}from"../internal/nile-element.esm.js";import{w as n}from"../internal/watch.esm.js";import{classMap as a}from"lit/directives/class-map.js";import{u as p}from"./stepper-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 o=class extends l{constructor(){super(...arguments),this.isVertical=!1,this.contentBelow=!1,this.currentStep=0,this.completedStep=0,this.size="lg",this.icon="tick",this.manual=!1}update(t){super.update(t),(t.has("currentStep")||t.has("completedStep")||t.has("manual"))&&this.updateItems()}handleCurrentStepChanges(){this.updateItems(),this.emit("nile-current-change",{value:this.currentStep})}handleCompletedStepChanges(){this.updateItems(),this.emit("nile-completed-change",{value:this.completedStep})}updateItems(){const t=[...this.querySelectorAll(this.isVertical?"nile-vertical-stepper-item":"nile-stepper-item")];if(!t.length)return;const e=t.length<3;if(this.manual)p(t,{icon:this.icon,size:this.size,contentBelow:this.contentBelow,manual:this.manual,isVertical:this.isVertical},e);else{const i=0==this.currentStep||this.currentStep>t.length?1:this.currentStep,s=this.completedStep>t.length||this.completedStep<i?i:this.completedStep,r=this.completedStep>t.length?0:this.completedStep;t.forEach(((l,n)=>{n+1<i?(l.isComplete=!0,l.isCurrent=!1):n+1==i?(l.isComplete=n+1<=s,l.isCurrent=!0):(l.isComplete=n+1<=s,l.isCurrent=!1),l.isFirst=!1,l.isLast=!1,0==n&&(l.isFirst=!0),n==t.length-1&&(l.isLast=!0),l.currentStepValue=i,l.calculatedCompletedStepValue=s,l.completedStepValue=r,l.icon=this.icon,l.size=this.size,l.value=n+1,l.contentBelow=this.contentBelow,l.isManualMode=this.manual,0!=n&&n!=t.length-1||(l.haveFlex=e)}))}}static get styles(){return[r]}render(){return e`
2
+ <div part="stepper" class=${a({"nile-stepper":!0,"nile-stepper--horizontal":!this.isVertical,"nile-stepper--vertical":this.isVertical})}>
3
3
  <slot
4
4
  @slotchange=${this.updateItems}
5
5
  ></slot>
6
6
  </div>
7
- `}};t([i({type:Boolean,attribute:"vertical"})],a.prototype,"isVertical",void 0),t([i({type:Boolean,attribute:!0,reflect:!0})],a.prototype,"contentBelow",void 0),t([i({type:Number,attribute:!0,reflect:!0})],a.prototype,"currentStep",void 0),t([i({type:Number,attribute:!0,reflect:!0})],a.prototype,"completedStep",void 0),t([i({type:String,attribute:!0,reflect:!0})],a.prototype,"size",void 0),t([i({type:String,attribute:!0,reflect:!0})],a.prototype,"icon",void 0),t([i({type:Boolean,attribute:!0,reflect:!0})],a.prototype,"manual",void 0),t([n("currentStep")],a.prototype,"handleCurrentStepChanges",null),t([n("completedStep")],a.prototype,"handleCompletedStepChanges",null),a=t([s("nile-stepper")],a);export{a as N};
7
+ `}};t([i({type:Boolean,attribute:"vertical"})],o.prototype,"isVertical",void 0),t([i({type:Boolean,attribute:!0,reflect:!0})],o.prototype,"contentBelow",void 0),t([i({type:Number,attribute:!0,reflect:!0})],o.prototype,"currentStep",void 0),t([i({type:Number,attribute:!0,reflect:!0})],o.prototype,"completedStep",void 0),t([i({type:String,attribute:!0,reflect:!0})],o.prototype,"size",void 0),t([i({type:String,attribute:!0,reflect:!0})],o.prototype,"icon",void 0),t([i({type:Boolean,attribute:!0,reflect:!0})],o.prototype,"manual",void 0),t([n("currentStep")],o.prototype,"handleCurrentStepChanges",null),t([n("completedStep")],o.prototype,"handleCompletedStepChanges",null),o=t([s("nile-stepper")],o);export{o as N};
@@ -1,2 +1,2 @@
1
- System.register(["./nile-stepper-item.cjs.js","tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-stepper-item.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileStepperItemCjsJs){_export("NileStepperItem",_nileStepperItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_litDirectivesClassMapJs){},function(_nileStepperItemCssCjsJs){},function(_internalNileElementCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-stepper-item.cjs.js","tslib","lit","lit/decorators.js","lit/directives/class-map.js","./nile-stepper-item.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(_nileStepperItemCjsJs){_export("NileStepperItem",_nileStepperItemCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_litDirectivesClassMapJs){},function(_nileStepperItemCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileStepperItem}from"./nile-stepper-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"./nile-stepper-item.css.esm.js";import"../internal/nile-element.esm.js";
1
+ export{N as NileStepperItem}from"./nile-stepper-item.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"lit/directives/class-map.js";import"./nile-stepper-item.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-stepper-item.css.cjs.js","../internal/nile-element.cjs.js"],function(_export,_context){"use strict";var t,e,i,s,l,_,p,r,n,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,c;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){e=_lit.html;i=_lit.nothing;},function(_litDecoratorsJs){s=_litDecoratorsJs.query;l=_litDecoratorsJs.property;_=_litDecoratorsJs.state;p=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){r=_litDirectivesClassMapJs.classMap;},function(_nileStepperItemCssCjsJs){n=_nileStepperItemCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;}],execute:function execute(){_export("N",c=/*#__PURE__*/function(_o){function c(){var _this;_classCallCheck(this,c);_this=_callSuper(this,c,arguments),_this.title="",_this.subtitle="",_this.completed=!1,_this.current=!1,_this.contentBelow=!1,_this.size="lg",_this.icon="tick",_this.isFirst=!1,_this.isLast=!1,_this.isComplete=!1,_this.isCurrent=!1,_this.isManualMode=!1,_this.haveFlex=!0;return _this;}_inherits(c,_o);return _createClass(c,[{key:"updated",value:function updated(t){if(t.has("subtitle")&&this.isLast&&!this.contentBelow&&this.subtitle){var _this$absoluteSubtitl,_this$absoluteSubtitl2;var _t=(_this$absoluteSubtitl=(_this$absoluteSubtitl2=this.absoluteSubtitle)===null||_this$absoluteSubtitl2===void 0?void 0:_this$absoluteSubtitl2.scrollWidth)!==null&&_this$absoluteSubtitl!==void 0?_this$absoluteSubtitl:"0";this.absoluteTitle.style.minWidth=_t+"px";}}},{key:"render",value:function render(){this.haveFlex||this.style.setProperty("--stepper-flex-val","0");var t=this.isManualMode?this.current:this.isCurrent,s=this.isManualMode?this.completed:this.isComplete;var l=!1;(s&&!t||this.completedStepValue==this.value)&&(l=!0);var _=!1;return s&&(_=!0,this.calculatedCompletedStepValue==this.value&&(_=!1)),e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t<div part=\"item\" class=\"","\">\n\t\t\t\t<div part=\"line-content\" class=\"stepper__line__content\">\n\t\t\t\t\t<div class=\"stepper__line__container\">\n\t\t\t\t\t\t","\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div part=\"bulletin\" class=",">\n\t\t\t\t\t\t","\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div part=\"line-container\" class=\"","\">\n\t\t\t\t\t\t","\n\t\t\t\t\t\t","\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t","\n\t\t\t</div>\n\t\t"])),r({stepper__item:!0,"stepper__item--selected":t,"stepper__item--sm":"sm"==this.size,"stepper__item--lg":"lg"==this.size}),this.isFirst?i:e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n\t\t\t\t\t\t\t<hr class=\"","\"/>\n\t\t\t\t\t\t"])),r({stepper__line:!0,"stepper__line--active":s||t})),r({stepper__item__bulletin:!0,"stepper__item__bulletin--inline":!this.contentBelow}),l?e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<div part=\"bulletin-icon\" class=\"","\">","</div>"])),r({"stepper__bulletin--icon":!0,"stepper__bulletin__icon--active":t}),this.getSvg()):e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<div part=\"bulletin-dot\" class=\"","\"></div>"])),r({"stepper__bulletin--dot":!0,"stepper__bulletin__dot--active":t})),r({stepper__line__container:!0,"stepper__line--hastitle":!this.contentBelow}),this.contentBelow||!this.title?i:e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n\n\t\t\t\t\t\t\t<div part=\"content-above\" class=\"stepper__item__content--above\">\n\t\t\t\t\t\t\t\t<div part=\"title_above\" class=\"","\">\n\t\t\t\t\t\t\t\t\t","\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"","\">","</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t"])),r({stepper__content__title:!0,"stepper__content__title--active":t}),this.title,r({stepper__content__subtitle:!0,"stepper__content__subtitle--active":t}),this.subtitle),this.isLast?i:e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n\t\t\t\t\t\t\t<hr part=\"line\" class=\"","\" style=\"flex-grow:1;\"/>\n\t\t\t\t\t\t"])),r({stepper__line:!0,"stepper__line--active":_})),this.contentBelow?e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n\t\t\t\t\t<div part=\"content-below\" class=\"stepper__item__content--below\">\n\t\t\t\t\t\t<div part=\"title_below\" class=\"","\">\n\t\t\t\t\t\t\t","\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div part=\"subtitle_below\" class=\"","\">","</div>\n\t\t\t\t\t</div>\n\t\t\t\t"])),r({stepper__content__title:!0,"stepper__content__title--active":t}),this.title,r({stepper__content__subtitle:!0,"stepper__content__subtitle--active":t}),this.subtitle):i);}},{key:"getSvg",value:function getSvg(){var t="sm"==this.size?20:"lg"==this.size?24:28;return e(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n\t\t<svg width=\"","\" height=\"","\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.7953 9.85334L13.2487 19.0667L10.7153 16.36C10.2487 15.92 9.51534 15.8933 8.982 16.2667C8.462 16.6533 8.31534 17.3333 8.63534 17.88L11.6353 22.76C11.9287 23.2133 12.4353 23.4933 13.0087 23.4933C13.5553 23.4933 14.0753 23.2133 14.3687 22.76C14.8487 22.1333 24.0087 11.2133 24.0087 11.2133C25.2087 9.98668 23.7553 8.90668 22.7953 9.84001V9.85334Z\" fill=\"white\"/>\n\t\t</svg>\n\t\t"])),t,t);}}],[{key:"styles",get:function get(){return[n];}}]);}(o));t([s(".stepper__item__content--above .stepper__content__title")],c.prototype,"absoluteTitle",void 0),t([s(".stepper__item__content--above .stepper__content__subtitle")],c.prototype,"absoluteSubtitle",void 0),t([l({attribute:!0,reflect:!0})],c.prototype,"title",void 0),t([l({attribute:!0,reflect:!0})],c.prototype,"subtitle",void 0),t([l({attribute:!0,reflect:!0})],c.prototype,"completed",void 0),t([l({attribute:!0,reflect:!0})],c.prototype,"current",void 0),t([_()],c.prototype,"contentBelow",void 0),t([_()],c.prototype,"size",void 0),t([_()],c.prototype,"icon",void 0),t([_()],c.prototype,"isFirst",void 0),t([_()],c.prototype,"isLast",void 0),t([_()],c.prototype,"isComplete",void 0),t([_()],c.prototype,"isCurrent",void 0),t([_()],c.prototype,"isManualMode",void 0),t([_()],c.prototype,"currentStepValue",void 0),t([_()],c.prototype,"completedStepValue",void 0),t([_()],c.prototype,"calculatedCompletedStepValue",void 0),t([_()],c.prototype,"value",void 0),t([_()],c.prototype,"haveFlex",void 0),_export("N",c=t([p("nile-stepper-item")],c));}};});
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-stepper-item.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,e,i,s,l,_,p,r,n,o,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,c;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){e=_lit.html;i=_lit.nothing;},function(_litDecoratorsJs){s=_litDecoratorsJs.query;l=_litDecoratorsJs.property;_=_litDecoratorsJs.state;p=_litDecoratorsJs.customElement;},function(_litDirectivesClassMapJs){r=_litDirectivesClassMapJs.classMap;},function(_nileStepperItemCssCjsJs){n=_nileStepperItemCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){_export("N",c=/*#__PURE__*/function(_o){function c(){var _this;_classCallCheck(this,c);_this=_callSuper(this,c,arguments),_this.title="",_this.subtitle="",_this.completed=!1,_this.current=!1,_this.contentBelow=!1,_this.size="lg",_this.icon="tick",_this.isFirst=!1,_this.isLast=!1,_this.isComplete=!1,_this.isCurrent=!1,_this.isManualMode=!1,_this.haveFlex=!0;return _this;}_inherits(c,_o);return _createClass(c,[{key:"updated",value:function updated(t){if(t.has("subtitle")&&this.isLast&&!this.contentBelow&&this.subtitle){var _this$absoluteSubtitl,_this$absoluteSubtitl2;var _t=(_this$absoluteSubtitl=(_this$absoluteSubtitl2=this.absoluteSubtitle)===null||_this$absoluteSubtitl2===void 0?void 0:_this$absoluteSubtitl2.scrollWidth)!==null&&_this$absoluteSubtitl!==void 0?_this$absoluteSubtitl:"0";this.absoluteTitle.style.minWidth=_t+"px";}}},{key:"render",value:function render(){this.haveFlex||this.style.setProperty("--stepper-flex-val","0");var t=this.isManualMode?this.current:this.isCurrent,s=this.isManualMode?this.completed:this.isComplete;var l=!1;(s&&!t||this.completedStepValue==this.value)&&(l=!0);var _=!1;return s&&(_=!0,this.calculatedCompletedStepValue==this.value&&(_=!1)),e(_templateObject||(_templateObject=_taggedTemplateLiteral(["\n\t\t\t<div part=\"item\" class=\"","\">\n\t\t\t\t<div part=\"line-content\" class=\"stepper__line__content\">\n\t\t\t\t\t<div class=\"stepper__line__container\">\n\t\t\t\t\t\t","\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div part=\"bulletin\" class=",">\n\t\t\t\t\t\t","\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div part=\"line-container\" class=\"","\">\n\t\t\t\t\t\t","\n\t\t\t\t\t\t","\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t","\n\t\t\t</div>\n\t\t"])),r({stepper__item:!0,"stepper__item--selected":t,"stepper__item--sm":"sm"==this.size,"stepper__item--lg":"lg"==this.size}),this.isFirst?i:e(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["\n\t\t\t\t\t\t\t<hr class=\"","\"/>\n\t\t\t\t\t\t"])),r({stepper__line:!0,"stepper__line--active":s||t})),r({stepper__item__bulletin:!0,"stepper__item__bulletin--inline":!this.contentBelow}),l?e(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<div part=\"bulletin-icon\" class=\"","\">","</div>"])),r({"stepper__bulletin--icon":!0,"stepper__bulletin__icon--active":t}),this.getSvg()):e(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<div part=\"bulletin-dot\" class=\"","\"></div>"])),r({"stepper__bulletin--dot":!0,"stepper__bulletin__dot--active":t})),r({stepper__line__container:!0,"stepper__line--hastitle":!this.contentBelow}),this.contentBelow||!this.title?i:e(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["\n\n\t\t\t\t\t\t\t<div part=\"content-above\" class=\"stepper__item__content--above\">\n\t\t\t\t\t\t\t\t<div part=\"title_above\" class=\"","\">\n\t\t\t\t\t\t\t\t\t","\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"","\">","</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t"])),r({stepper__content__title:!0,"stepper__content__title--active":t}),this.title,r({stepper__content__subtitle:!0,"stepper__content__subtitle--active":t}),this.subtitle),this.isLast?i:e(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["\n\t\t\t\t\t\t\t<hr part=\"line\" class=\"","\" style=\"flex-grow:1;\"/>\n\t\t\t\t\t\t"])),r({stepper__line:!0,"stepper__line--active":_})),this.contentBelow?e(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["\n\t\t\t\t\t<div part=\"content-below\" class=\"stepper__item__content--below\">\n\t\t\t\t\t\t<div part=\"title_below\" class=\"","\">\n\t\t\t\t\t\t\t","\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div part=\"subtitle_below\" class=\"","\">","</div>\n\t\t\t\t\t</div>\n\t\t\t\t"])),r({stepper__content__title:!0,"stepper__content__title--active":t}),this.title,r({stepper__content__subtitle:!0,"stepper__content__subtitle--active":t}),this.subtitle):i);}},{key:"getSvg",value:function getSvg(){var t="sm"==this.size?20:"lg"==this.size?24:28;return e(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n\t\t<svg width=\"","\" height=\"","\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.7953 9.85334L13.2487 19.0667L10.7153 16.36C10.2487 15.92 9.51534 15.8933 8.982 16.2667C8.462 16.6533 8.31534 17.3333 8.63534 17.88L11.6353 22.76C11.9287 23.2133 12.4353 23.4933 13.0087 23.4933C13.5553 23.4933 14.0753 23.2133 14.3687 22.76C14.8487 22.1333 24.0087 11.2133 24.0087 11.2133C25.2087 9.98668 23.7553 8.90668 22.7953 9.84001V9.85334Z\" fill=\"white\"/>\n\t\t</svg>\n\t\t"])),t,t);}}],[{key:"styles",get:function get(){return[n];}}]);}(o));t([s(".stepper__item__content--above .stepper__content__title")],c.prototype,"absoluteTitle",void 0),t([s(".stepper__item__content--above .stepper__content__subtitle")],c.prototype,"absoluteSubtitle",void 0),t([l({attribute:!0,reflect:!0})],c.prototype,"title",void 0),t([l({attribute:!0,reflect:!0})],c.prototype,"subtitle",void 0),t([l({attribute:!0,reflect:!0})],c.prototype,"completed",void 0),t([l({attribute:!0,reflect:!0})],c.prototype,"current",void 0),t([_()],c.prototype,"contentBelow",void 0),t([_()],c.prototype,"size",void 0),t([_()],c.prototype,"icon",void 0),t([_()],c.prototype,"isFirst",void 0),t([_()],c.prototype,"isLast",void 0),t([_()],c.prototype,"isComplete",void 0),t([_()],c.prototype,"isCurrent",void 0),t([_()],c.prototype,"isManualMode",void 0),t([_()],c.prototype,"currentStepValue",void 0),t([_()],c.prototype,"completedStepValue",void 0),t([_()],c.prototype,"calculatedCompletedStepValue",void 0),t([_()],c.prototype,"value",void 0),t([_()],c.prototype,"haveFlex",void 0),_export("N",c=t([p("nile-stepper-item")],c));}};});
2
2
  //# sourceMappingURL=nile-stepper-item.cjs.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"nile-stepper-item.cjs.js","sources":["../../../src/nile-stepper-item/nile-stepper-item.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, nothing, html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property, state, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-stepper-item.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile stepper-item component.\n *\n * @tag nile-stepper-item\n *\n */\n@customElement('nile-stepper-item')\nexport class NileStepperItem extends NileElement {\n\n\t@query('.stepper__item__content--above .stepper__content__title') absoluteTitle:HTMLDivElement;\n\t@query('.stepper__item__content--above .stepper__content__subtitle') absoluteSubtitle:HTMLDivElement;\n\n\t/* Properties passed directly */\n\t@property({attribute: true, reflect: true}) title: string = '';\n\t@property({attribute: true, reflect: true}) subtitle: string = '';\n\t@property({attribute: true, reflect: true}) completed: boolean = false;\n\t@property({attribute: true, reflect: true}) current: boolean = false;\n\n\t/* Properties passed to parent component: NileStepper */\n\t@state() private contentBelow = false;\n\t@state() private size : 'sm' | 'lg' = 'lg';\n\t@state() private icon = 'tick';\n\n\n\t/* Properties Computed at parent level component NileStepper */\n\t@state() private isFirst = false;\n\t@state() private isLast = false;\n\n\t@state() private isComplete = false;\n\t@state() private isCurrent = false;\n\t@state() private isManualMode = false;\n\t@state() private currentStepValue :Number;\n\t@state() private completedStepValue :Number;\n\t@state() private calculatedCompletedStepValue :Number;\n\n\t@state() private value :Number;\n\t@state() private haveFlex :Boolean=true;\n\n\t/**\n\t * The styles for nile-stepper-item\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\tprotected updated(_changedProperties: PropertyValues): void {\n\t\tif(_changedProperties.has('subtitle') && this.isLast && !this.contentBelow && this.subtitle){\n\t\t\tconst subtitleWidth=this.absoluteSubtitle?.scrollWidth as number ?? '0';\n\t\t\tthis.absoluteTitle.style.minWidth=subtitleWidth+\"px\"\n\t\t}\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\n\t\tif (!this.haveFlex) this.style.setProperty('--stepper-flex-val', `0`);\n\t\tconst isCurrent = this.isManualMode ? this.current : this.isCurrent;\n\t\tconst isComplete = this.isManualMode ? this.completed : this.isComplete;\n\n\t\tlet showCompletedIcon = false;\n\t\tif (isComplete && !isCurrent || this.completedStepValue == this.value) showCompletedIcon = true;\n\n\t\tlet suffixStepperLineActive = false;\n\t\tif (isComplete) {\n\t\t\tsuffixStepperLineActive = true;\n\t\t\tif (this.calculatedCompletedStepValue == this.value) suffixStepperLineActive = false;\n\t\t}\n\t\treturn html`\n\t\t\t<div part=\"item\" class=\"${classMap({\n\t\t\t\t'stepper__item':true,\n\t\t\t\t'stepper__item--selected':isCurrent,\n\t\t\t\t'stepper__item--sm':this.size=='sm',\n\t\t\t\t'stepper__item--lg':this.size=='lg',\n\t\t\t})}\">\n\t\t\t\t<div part=\"line-content\" class=\"stepper__line__content\">\n\t\t\t\t\t<div class=\"stepper__line__container\">\n\t\t\t\t\t\t${this.isFirst ? nothing : html`\n\t\t\t\t\t\t\t<hr class=\"${classMap({\n\t\t\t\t\t\t\t\t'stepper__line':true,\n\t\t\t\t\t\t\t\t'stepper__line--active':isComplete || isCurrent\n\t\t\t\t\t\t\t})}\"/>\n\t\t\t\t\t\t`}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div part=\"bulletin\" class=${classMap({ 'stepper__item__bulletin':true, 'stepper__item__bulletin--inline': !this.contentBelow })}>\n\t\t\t\t\t\t${showCompletedIcon ? \n\t\t\t\t\t\t\thtml`<div part=\"bulletin-icon\" class=\"${classMap({ 'stepper__bulletin--icon':true, 'stepper__bulletin__icon--active':isCurrent })}\">${this.getSvg()}</div>`\n\t\t\t\t\t\t\t: html`<div part=\"bulletin-dot\" class=\"${classMap({ 'stepper__bulletin--dot':true, 'stepper__bulletin__dot--active':isCurrent })}\"></div>`\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div part=\"line-container\" class=\"${classMap({\n\t\t\t\t\t\t'stepper__line__container':true,\n\t\t\t\t\t\t'stepper__line--hastitle':!this.contentBelow\n\t\t\t\t\t})}\">\n\t\t\t\t\t\t${this.contentBelow || !this.title ? nothing:html`\n\n\t\t\t\t\t\t\t<div part=\"content-above\" class=\"stepper__item__content--above\">\n\t\t\t\t\t\t\t\t<div part=\"title_above\" class=\"${classMap({ 'stepper__content__title':true, 'stepper__content__title--active':isCurrent })}\">\n\t\t\t\t\t\t\t\t\t${this.title}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"${classMap({ 'stepper__content__subtitle':true, 'stepper__content__subtitle--active':isCurrent })}\">${this.subtitle}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t`}\n\t\t\t\t\t\t${this.isLast ? nothing : html`\n\t\t\t\t\t\t\t<hr part=\"line\" class=\"${classMap({\n\t\t\t\t\t\t\t\t'stepper__line':true,\n\t\t\t\t\t\t\t\t'stepper__line--active':suffixStepperLineActive\n\t\t\t\t\t\t\t})}\" style=\"flex-grow:1;\"/>\n\t\t\t\t\t\t`}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t${this.contentBelow?\n\t\t\t\t\thtml`\n\t\t\t\t\t<div part=\"content-below\" class=\"stepper__item__content--below\">\n\t\t\t\t\t\t<div part=\"title_below\" class=\"${classMap({ 'stepper__content__title':true, 'stepper__content__title--active':isCurrent })}\">\n\t\t\t\t\t\t\t${this.title}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div part=\"subtitle_below\" class=\"${classMap({ 'stepper__content__subtitle':true, 'stepper__content__subtitle--active':isCurrent })}\">${this.subtitle}</div>\n\t\t\t\t\t</div>\n\t\t\t\t`:nothing}\n\t\t\t</div>\n\t\t`;\n\t}\n\n\tgetSvg():TemplateResult{\n\t\tlet iconSize = this.size == 'sm' ? 20 : this.size == 'lg' ? 24 : 28;\n\t\treturn html`\n\t\t<svg width=\"${iconSize}\" height=\"${iconSize}\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.7953 9.85334L13.2487 19.0667L10.7153 16.36C10.2487 15.92 9.51534 15.8933 8.982 16.2667C8.462 16.6533 8.31534 17.3333 8.63534 17.88L11.6353 22.76C11.9287 23.2133 12.4353 23.4933 13.0087 23.4933C13.5553 23.4933 14.0753 23.2133 14.3687 22.76C14.8487 22.1333 24.0087 11.2133 24.0087 11.2133C25.2087 9.98668 23.7553 8.90668 22.7953 9.84001V9.85334Z\" fill=\"white\"/>\n\t\t</svg>\n\t\t`\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileStepperItem;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-stepper-item': NileStepperItem;\n\t}\n}\n"],"names":["NileStepperItem","_o","c","this","title","subtitle","completed","current","contentBelow","size","icon","isFirst","isLast","isComplete","isCurrent","isManualMode","haveFlex","_this","_inherits","_createClass","key","value","updated","_changedProperties","has","_this$absoluteSubtitl","_this$absoluteSubtitl2","subtitleWidth","absoluteSubtitle","scrollWidth","absoluteTitle","style","minWidth","render","setProperty","showCompletedIcon","completedStepValue","suffixStepperLineActive","calculatedCompletedStepValue","html","_templateObject","_taggedTemplateLiteral","classMap","stepper__item","nothing","_templateObject2","stepper__line","stepper__item__bulletin","_templateObject3","getSvg","_templateObject4","stepper__line__container","_templateObject5","stepper__content__title","stepper__content__subtitle","_templateObject6","_templateObject7","iconSize","_templateObject8","get","styles","NileElement","__decorate","query","prototype","property","attribute","reflect","state","customElement"],"mappings":"k7GAqBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,uEAMsCC,KAAAA,CAAKC,KAAAA,CAAW,EAChBD,CAAAA,KAAAA,CAAQE,SAAW,EACnBF,CAAAA,KAAAA,CAASG,SAAY,CAAA,CAAA,CAAA,CACrBH,KAAAA,CAAOI,OAAY,CAAA,CAAA,CAAA,CAG9CJ,KAAAA,CAAYK,YAAAA,CAAAA,CAAG,CACfL,CAAAA,KAAAA,CAAIM,IAAiB,CAAA,IAAA,CACrBN,KAAAA,CAAIO,IAAG,CAAA,MAAA,CAIPP,KAAAA,CAAOQ,OAAAA,CAAAA,CAAG,CACVR,CAAAA,KAAAA,CAAMS,MAAG,CAAA,CAAA,CAAA,CAETT,KAAAA,CAAUU,UAAG,CAAA,CAAA,CAAA,CACbV,KAAAA,CAASW,SAAAA,CAAAA,CAAG,CACZX,CAAAA,KAAAA,CAAYY,YAAG,CAAA,CAAA,CAAA,CAMfZ,KAAAA,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,CAAe8D,EAAA,CAD3BO,CAAAA,CAAc,sBACFrE"}
1
+ {"version":3,"file":"nile-stepper-item.cjs.js","sources":["../../../src/nile-stepper-item/nile-stepper-item.ts"],"sourcesContent":["/**\n * Copyright Aquera Inc 2023\n *\n * This source code is licensed under the BSD-3-Clause license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\nimport { LitElement, nothing, html, CSSResultArray, TemplateResult, PropertyValues } from 'lit';\nimport { customElement, property, state, query } from 'lit/decorators.js';\nimport { classMap } from 'lit/directives/class-map.js';\nimport { styles } from './nile-stepper-item.css';\nimport NileElement from '../internal/nile-element';\n\n\n/**\n * Nile stepper-item component.\n *\n * @tag nile-stepper-item\n *\n */\n@customElement('nile-stepper-item')\nexport class NileStepperItem extends NileElement {\n\n\t@query('.stepper__item__content--above .stepper__content__title') absoluteTitle:HTMLDivElement;\n\t@query('.stepper__item__content--above .stepper__content__subtitle') absoluteSubtitle:HTMLDivElement;\n\n\t/* Properties passed directly */\n\t@property({attribute: true, reflect: true}) title: string = '';\n\t@property({attribute: true, reflect: true}) subtitle: string = '';\n\t@property({attribute: true, reflect: true}) completed: boolean = false;\n\t@property({attribute: true, reflect: true}) current: boolean = false;\n\n\t/* Properties passed to parent component: NileStepper */\n\t@state() private contentBelow = false;\n\t@state() private size : 'sm' | 'lg' = 'lg';\n\t@state() private icon = 'tick';\n\n\n\t/* Properties Computed at parent level component NileStepper */\n\t@state() private isFirst = false;\n\t@state() private isLast = false;\n\n\t@state() private isComplete = false;\n\t@state() private isCurrent = false;\n\t@state() private isManualMode = false;\n\t@state() private currentStepValue :Number;\n\t@state() private completedStepValue :Number;\n\t@state() private calculatedCompletedStepValue :Number;\n\n\t@state() private value :Number;\n\t@state() private haveFlex :Boolean=true;\n\n\t/**\n\t * The styles for nile-stepper-item\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\tprotected updated(_changedProperties: PropertyValues): void {\n\t\tif(_changedProperties.has('subtitle') && this.isLast && !this.contentBelow && this.subtitle){\n\t\t\tconst subtitleWidth=this.absoluteSubtitle?.scrollWidth as number ?? '0';\n\t\t\tthis.absoluteTitle.style.minWidth=subtitleWidth+\"px\"\n\t\t}\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\n\t\tif (!this.haveFlex) this.style.setProperty('--stepper-flex-val', `0`);\n\t\tconst isCurrent = this.isManualMode ? this.current : this.isCurrent;\n\t\tconst isComplete = this.isManualMode ? this.completed : this.isComplete;\n\n\t\tlet showCompletedIcon = false;\n\t\tif (isComplete && !isCurrent || this.completedStepValue == this.value) showCompletedIcon = true;\n\n\t\tlet suffixStepperLineActive = false;\n\t\tif (isComplete) {\n\t\t\tsuffixStepperLineActive = true;\n\t\t\tif (this.calculatedCompletedStepValue == this.value) suffixStepperLineActive = false;\n\t\t}\n\t\treturn html`\n\t\t\t<div part=\"item\" class=\"${classMap({\n\t\t\t\t'stepper__item':true,\n\t\t\t\t'stepper__item--selected':isCurrent,\n\t\t\t\t'stepper__item--sm':this.size=='sm',\n\t\t\t\t'stepper__item--lg':this.size=='lg',\n\t\t\t})}\">\n\t\t\t\t<div part=\"line-content\" class=\"stepper__line__content\">\n\t\t\t\t\t<div class=\"stepper__line__container\">\n\t\t\t\t\t\t${this.isFirst ? nothing : html`\n\t\t\t\t\t\t\t<hr class=\"${classMap({\n\t\t\t\t\t\t\t\t'stepper__line':true,\n\t\t\t\t\t\t\t\t'stepper__line--active':isComplete || isCurrent\n\t\t\t\t\t\t\t})}\"/>\n\t\t\t\t\t\t`}\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<div part=\"bulletin\" class=${classMap({ 'stepper__item__bulletin':true, 'stepper__item__bulletin--inline': !this.contentBelow })}>\n\t\t\t\t\t\t${showCompletedIcon ? \n\t\t\t\t\t\t\thtml`<div part=\"bulletin-icon\" class=\"${classMap({ 'stepper__bulletin--icon':true, 'stepper__bulletin__icon--active':isCurrent })}\">${this.getSvg()}</div>`\n\t\t\t\t\t\t\t: html`<div part=\"bulletin-dot\" class=\"${classMap({ 'stepper__bulletin--dot':true, 'stepper__bulletin__dot--active':isCurrent })}\"></div>`\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t\n\t\t\t\t\t<div part=\"line-container\" class=\"${classMap({\n\t\t\t\t\t\t'stepper__line__container':true,\n\t\t\t\t\t\t'stepper__line--hastitle':!this.contentBelow\n\t\t\t\t\t})}\">\n\t\t\t\t\t\t${this.contentBelow || !this.title ? nothing:html`\n\n\t\t\t\t\t\t\t<div part=\"content-above\" class=\"stepper__item__content--above\">\n\t\t\t\t\t\t\t\t<div part=\"title_above\" class=\"${classMap({ 'stepper__content__title':true, 'stepper__content__title--active':isCurrent })}\">\n\t\t\t\t\t\t\t\t\t${this.title}\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<div class=\"${classMap({ 'stepper__content__subtitle':true, 'stepper__content__subtitle--active':isCurrent })}\">${this.subtitle}</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t`}\n\t\t\t\t\t\t${this.isLast ? nothing : html`\n\t\t\t\t\t\t\t<hr part=\"line\" class=\"${classMap({\n\t\t\t\t\t\t\t\t'stepper__line':true,\n\t\t\t\t\t\t\t\t'stepper__line--active':suffixStepperLineActive\n\t\t\t\t\t\t\t})}\" style=\"flex-grow:1;\"/>\n\t\t\t\t\t\t`}\n\t\t\t\t\t</div>\n\t\t\t\t</div>\n\t\t\t\t${this.contentBelow?\n\t\t\t\t\thtml`\n\t\t\t\t\t<div part=\"content-below\" class=\"stepper__item__content--below\">\n\t\t\t\t\t\t<div part=\"title_below\" class=\"${classMap({ 'stepper__content__title':true, 'stepper__content__title--active':isCurrent })}\">\n\t\t\t\t\t\t\t${this.title}\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t<div part=\"subtitle_below\" class=\"${classMap({ 'stepper__content__subtitle':true, 'stepper__content__subtitle--active':isCurrent })}\">${this.subtitle}</div>\n\t\t\t\t\t</div>\n\t\t\t\t`:nothing}\n\t\t\t</div>\n\t\t`;\n\t}\n\n\tgetSvg():TemplateResult{\n\t\tlet iconSize = this.size == 'sm' ? 20 : this.size == 'lg' ? 24 : 28;\n\t\treturn html`\n\t\t<svg width=\"${iconSize}\" height=\"${iconSize}\" viewBox=\"0 0 32 32\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t<path fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M22.7953 9.85334L13.2487 19.0667L10.7153 16.36C10.2487 15.92 9.51534 15.8933 8.982 16.2667C8.462 16.6533 8.31534 17.3333 8.63534 17.88L11.6353 22.76C11.9287 23.2133 12.4353 23.4933 13.0087 23.4933C13.5553 23.4933 14.0753 23.2133 14.3687 22.76C14.8487 22.1333 24.0087 11.2133 24.0087 11.2133C25.2087 9.98668 23.7553 8.90668 22.7953 9.84001V9.85334Z\" fill=\"white\"/>\n\t\t</svg>\n\t\t`\n\t}\n\n\t/* #endregion */\n}\n\nexport default NileStepperItem;\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'nile-stepper-item': NileStepperItem;\n\t}\n}\n"],"names":["NileStepperItem","_o","c","this","title","subtitle","completed","current","contentBelow","size","icon","isFirst","isLast","isComplete","isCurrent","isManualMode","haveFlex","_this","_inherits","_createClass","key","value","updated","_changedProperties","has","_this$absoluteSubtitl","_this$absoluteSubtitl2","subtitleWidth","absoluteSubtitle","scrollWidth","absoluteTitle","style","minWidth","render","setProperty","showCompletedIcon","completedStepValue","suffixStepperLineActive","calculatedCompletedStepValue","html","_templateObject","_taggedTemplateLiteral","classMap","stepper__item","nothing","_templateObject2","stepper__line","stepper__item__bulletin","_templateObject3","getSvg","_templateObject4","stepper__line__container","_templateObject5","stepper__content__title","stepper__content__subtitle","_templateObject6","_templateObject7","iconSize","_templateObject8","get","styles","NileElement","__decorate","query","prototype","property","attribute","reflect","state","customElement"],"mappings":"quHAqBaA,CAAN,uBAAAC,EAAA,EAAA,SAAAC,EAAA,uEAMsCC,KAAAA,CAAKC,KAAAA,CAAW,GAChBD,KAAAA,CAAQE,QAAAA,CAAW,EACnBF,CAAAA,KAAAA,CAASG,WAAY,CACrBH,CAAAA,KAAAA,CAAOI,OAAY,CAAA,CAAA,CAAA,CAG9CJ,KAAAA,CAAYK,YAAAA,CAAAA,CAAG,CACfL,CAAAA,KAAAA,CAAIM,KAAiB,IACrBN,CAAAA,KAAAA,CAAIO,IAAG,CAAA,MAAA,CAIPP,KAAAA,CAAOQ,OAAG,CAAA,CAAA,CAAA,CACVR,KAAAA,CAAMS,MAAAA,CAAAA,CAAG,EAETT,KAAAA,CAAUU,UAAAA,CAAAA,CAAG,CACbV,CAAAA,KAAAA,CAASW,SAAG,CAAA,CAAA,CAAA,CACZX,KAAAA,CAAYY,YAAAA,CAAAA,CAAG,EAMfZ,KAAAA,CAAQa,QAAAA,CAAAA,CAAU,CA2GnC,QAAAC,KAAA,EArGOC,SAAA,CAAAhB,CAAA,CAAAD,EAAA,SAAAkB,YAAA,CAAAjB,CAAA,GAAAkB,GAAA,WAAAC,KAAA,CAIG,SAAAC,OAAAA,CAAQC,CACjB,CAAA,CAAA,GAAGA,CAAmBC,CAAAA,GAAAA,CAAI,UAAerB,CAAAA,EAAAA,IAAAA,CAAKS,SAAWT,IAAKK,CAAAA,YAAAA,EAAgBL,IAAKE,CAAAA,QAAAA,CAAS,KAAAoB,qBAAA,CAAAC,sBAAA,CAC3F,GAAMC,CAAAA,EAAAA,EAAAA,qBAAAA,EAAAA,sBAAAA,CAAcxB,IAAKyB,CAAAA,gBAAAA,UAAAA,sBAAAA,iBAALzB,sBAAAA,CAAuB0B,0EAAyB,GACpE1B,CAAAA,IAAAA,CAAK2B,aAAcC,CAAAA,KAAAA,CAAMC,QAASL,CAAAA,EAAAA,CAAc,IACh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,CAAAgE,CAAAA,SAAAA,CAAA,mBAAA,EACrBF,CAAAA,CAAAA,CAAAA,CAAA,CAAhBM,CAAAA,CAAAA,CAAAA,CAAAA,CAAyCpE,EAAAgE,SAAA,CAAA,kBAAA,CAAA,IAAA,EACzBF,CAAAA,CAAAA,CAAAA,CAAA,CAAhBM,CAA2CpE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAgE,SAAA,CAAA,oBAAA,CAAA,IAAA,IAC3BF,CAAA,CAAA,CAAhBM,CAAqDpE,CAAAA,CAAAA,CAAAA,CAAAA,CAAAA,CAAAgE,UAAA,8BAAA,CAAA,IAAA,EAAA,CAAA,CAErCF,CAAA,CAAA,CAAhBM,KAA8BpE,CAAAgE,CAAAA,SAAAA,CAAA,OAAA,CAAA,IAAA,EAAA,CAAA,CACdF,EAAA,CAAhBM,CAAAA,CAAAA,CAAAA,CAAAA,CAAuCpE,CAAAgE,CAAAA,SAAAA,CAAA,eAAA,EA7B5BhE,CAAAA,CAAAA,OAAAA,KAAAA,CAAAA,CAAe8D,EAAA,CAD3BO,CAAAA,CAAc,sBACFrE"}
@@ -1,4 +1,4 @@
1
- import{__decorate as t}from"tslib";import{html as e,nothing as i}from"lit";import{query as s,property as l,state as _,customElement as p}from"lit/decorators.js";import{classMap as r}from"lit/directives/class-map.js";import{s as n}from"./nile-stepper-item.css.esm.js";import{N as o}from"../internal/nile-element.esm.js";let a=class extends o{constructor(){super(...arguments),this.title="",this.subtitle="",this.completed=!1,this.current=!1,this.contentBelow=!1,this.size="lg",this.icon="tick",this.isFirst=!1,this.isLast=!1,this.isComplete=!1,this.isCurrent=!1,this.isManualMode=!1,this.haveFlex=!0}static get styles(){return[n]}updated(t){if(t.has("subtitle")&&this.isLast&&!this.contentBelow&&this.subtitle){const t=this.absoluteSubtitle?.scrollWidth??"0";this.absoluteTitle.style.minWidth=t+"px"}}render(){this.haveFlex||this.style.setProperty("--stepper-flex-val","0");const t=this.isManualMode?this.current:this.isCurrent,s=this.isManualMode?this.completed:this.isComplete;let l=!1;(s&&!t||this.completedStepValue==this.value)&&(l=!0);let _=!1;return s&&(_=!0,this.calculatedCompletedStepValue==this.value&&(_=!1)),e`
1
+ import{__decorate as t}from"tslib";import{html as e,nothing as i}from"lit";import{query as s,property as l,state as _,customElement as p}from"lit/decorators.js";import{classMap as r}from"lit/directives/class-map.js";import{s as n}from"./nile-stepper-item.css.esm.js";import{N as o}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 a=class extends o{constructor(){super(...arguments),this.title="",this.subtitle="",this.completed=!1,this.current=!1,this.contentBelow=!1,this.size="lg",this.icon="tick",this.isFirst=!1,this.isLast=!1,this.isComplete=!1,this.isCurrent=!1,this.isManualMode=!1,this.haveFlex=!0}static get styles(){return[n]}updated(t){if(t.has("subtitle")&&this.isLast&&!this.contentBelow&&this.subtitle){const t=this.absoluteSubtitle?.scrollWidth??"0";this.absoluteTitle.style.minWidth=t+"px"}}render(){this.haveFlex||this.style.setProperty("--stepper-flex-val","0");const t=this.isManualMode?this.current:this.isCurrent,s=this.isManualMode?this.completed:this.isComplete;let l=!1;(s&&!t||this.completedStepValue==this.value)&&(l=!0);let _=!1;return s&&(_=!0,this.calculatedCompletedStepValue==this.value&&(_=!1)),e`
2
2
  <div part="item" class="${r({stepper__item:!0,"stepper__item--selected":t,"stepper__item--sm":"sm"==this.size,"stepper__item--lg":"lg"==this.size})}">
3
3
  <div part="line-content" class="stepper__line__content">
4
4
  <div class="stepper__line__container">
@@ -1,2 +1,2 @@
1
- System.register(["./nile-switcher.cjs.js","tslib","lit","lit/decorators.js","./nile-switcher.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/choose.js","lit/directives/class-map.js","lit/directives/repeat.js","../internal/watch.cjs.js","../internal/slot.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSwitcherCjsJs){_export("NileSwitcher",_nileSwitcherCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileSwitcherCssCjsJs){},function(_internalNileElementCjsJs){},function(_litDirectivesChooseJs){},function(_litDirectivesClassMapJs){},function(_litDirectivesRepeatJs){},function(_internalWatchCjsJs){},function(_internalSlotCjsJs){}],execute:function execute(){}};});
1
+ System.register(["./nile-switcher.cjs.js","tslib","lit","lit/decorators.js","./nile-switcher.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/choose.js","lit/directives/class-map.js","lit/directives/repeat.js","../internal/watch.cjs.js","../internal/slot.cjs.js"],function(_export,_context){"use strict";return{setters:[function(_nileSwitcherCjsJs){_export("NileSwitcher",_nileSwitcherCjsJs.N);},function(_tslib){},function(_lit){},function(_litDecoratorsJs){},function(_nileSwitcherCssCjsJs){},function(_internalNileElementCjsJs){},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){},function(_litDirectivesChooseJs){},function(_litDirectivesClassMapJs){},function(_litDirectivesRepeatJs){},function(_internalWatchCjsJs){},function(_internalSlotCjsJs){}],execute:function execute(){}};});
2
2
  //# sourceMappingURL=index.cjs.js.map
@@ -1 +1 @@
1
- export{N as NileSwitcher}from"./nile-switcher.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-switcher.css.esm.js";import"../internal/nile-element.esm.js";import"lit/directives/choose.js";import"lit/directives/class-map.js";import"lit/directives/repeat.js";import"../internal/watch.esm.js";import"../internal/slot.esm.js";
1
+ export{N as NileSwitcher}from"./nile-switcher.esm.js";import"tslib";import"lit";import"lit/decorators.js";import"./nile-switcher.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/choose.js";import"lit/directives/class-map.js";import"lit/directives/repeat.js";import"../internal/watch.esm.js";import"../internal/slot.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","./nile-switcher.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/choose.js","lit/directives/class-map.js","lit/directives/repeat.js","../internal/watch.cjs.js","../internal/slot.cjs.js"],function(_export,_context){"use strict";var e,r,t,i,s,o,n,l,a,c,d,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16,_templateObject17,h,p,u,$,b;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){r=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;i=_litDecoratorsJs.customElement;},function(_nileSwitcherCssCjsJs){s=_nileSwitcherCssCjsJs.s;},function(_internalNileElementCjsJs){o=_internalNileElementCjsJs.N;},function(_litDirectivesChooseJs){n=_litDirectivesChooseJs.choose;},function(_litDirectivesClassMapJs){l=_litDirectivesClassMapJs.classMap;},function(_litDirectivesRepeatJs){a=_litDirectivesRepeatJs.repeat;},function(_internalWatchCjsJs){c=_internalWatchCjsJs.w;},function(_internalSlotCjsJs){d=_internalSlotCjsJs.H;}],execute:function execute(){!function(e){e.INLINE="inline",e.BLOCK="block";}(h||(h={})),function(e){e.DEFAULT="defaultInput",e.SWITCH="switchInput";}(p||(p={})),function(e){e.DROPDOWN="dropdown",e.TEXT="text",e.CHECKBOX="checkbox",e.TEXTAREA="text-area",e.RADIO="radio",e.CONTENTEDITOR="content-editor",e.OBJECT_MAPPER="object-mapper",e.CODE_EDITOR="code-editor";}(u||(u={})),function(e){e.CREATE="create",e.EDIT="edit";}($||($={}));_export("N",b=/*#__PURE__*/function(_o){function b(){var _this;_classCallCheck(this,b);_this=_callSuper(this,b,arguments),_this.hasSlotController=new d(_assertThisInitialized(_this),"label"),_this.current=0,_this.isToggleSwitch=function(e){return void 0===e||e;};return _this;}_inherits(b,_o);return _createClass(b,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(b,"connectedCallback",this,3)([]),this.emit("nile-init");}},{key:"handleSwitcherChange",value:function handleSwitcherChange(){this.setCurrentInput();}},{key:"setCurrentInput",value:function setCurrentInput(){var _this$nileSwitchConfi,_this2=this;((_this$nileSwitchConfi=this.nileSwitchConfig)===null||_this$nileSwitchConfi===void 0?void 0:_this$nileSwitchConfi.inputs)&&(this.currentInput=this.nileSwitchConfig.inputs.filter(function(e,r){return r===_this2.current;})[0]);}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(b,"disconnectedCallback",this,3)([]),this.emit("nile-destroy");}},{key:"renderNileText",value:function renderNileText(e){var _this3=this;var t=e.value,i=e.label,s=e.placeholder,o=e.disabled,n=e.required,a=e.error,c=e.errorMessage,d=e.inputType,h=e.noborder;return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-input\n class=","\n .value=","\n .label=","\n .disabled=","\n .required=","\n .errorMessage=","\n .placeholder=","\n .error=","\n @nile-input=","\n ></nile-input>"])),l({"switcher-input":!0,"switcher-input--noborder":!!h}),t,i,o,n,c,s,a,function(e){_this3.handleChange(e,d);});}},{key:"renderDropdown",value:function renderDropdown(e){var _this4=this;var t=e.options,i=e.multiple,s=e.placeholder,o=e.disabled,n=e.value,a=e.error,c=e.errorMessage,d=e.inputType,h=e.noborder;return r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-select\n part=\"dropdown\"\n class=","\n .placeholder=","\n .disabled=\"","\"\n .multiple=\"","\"\n .value=\"","\"\n .error=\"","\"\n .errorMessage=\"","\"\n @nile-change=","\n >\n ","\n </nile-select>"])),l({"switcher-dropdown":!0,"switcher-dropdown--noborder":!!h}),s,o,i,n,a,c,function(e){_this4.handleChange(e,d);},t===null||t===void 0?void 0:t.map(function(e){return r(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-option .value=\"","\">"," </nile-option>"])),e,e);}));}},{key:"renderNileTextArea",value:function renderNileTextArea(e){var _this5=this;var t=e.value,i=e.disabled,s=e.readonly,o=e.errorMessage,n=e.error,l=e.inputType;return r(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-textarea\n class=\"switcher-textarea\"\n .value=","\n .disabled=","\n ?readonly=","\n .error=","\n .errorMessage=","\n @nile-input=","\n ></nile-textarea>"])),t,i,s,n,o,function(e){_this5.handleChange(e,l);});}},{key:"renderNileCheckBox",value:function renderNileCheckBox(e){var _this6=this;var t=e.value,i=e.label,s=e.disabled,o=e.inputType;return r(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-checkbox\n class=\"switcher-checkbox\"\n .checked=","\n .label=","\n .disabled=","\n @valueChange=","\n ></nile-checkbox\n >; "])),t,i,s,function(e){_this6.handleChange(e,o);});}},{key:"renderNileRadio",value:function renderNileRadio(e){var _this7=this;var t=e.options,i=e.value,s=e.disabled,o=e.errorMessage,n=e.inputType,l=!!o;return r(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-radio-group\n class=\"switcher-radio-group\"\n .value=","\n .disabled=","\n @change=","\n >\n ","\n ","\n </nile-radio-group> "])),i,s,function(e){_this7.handleChange(e,n);},t&&t.map(function(e){return r(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-radio .value=\"","\">"," </nile-radio>"])),e,e);}),l?this.renderErrorMessage(o):"");}},{key:"renderErrorMessage",value:function renderErrorMessage(e){return r(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-form-error-message>","</nile-form-error-message>\n "])),e);}},{key:"renderContentEditor",value:function renderContentEditor(e){var _this8=this;var t=e.options,i=e.inputType,s=e.errorMessage,o=e.type,n=e.readonly,l=e.noborder,a=e.value,c=e.updateValue;return r(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-content-editor\n class=\"switcher-content-editor\"\n .value=","\n .options=","\n .type=","\n .readonly=","\n .noborder=","\n .updateValue=","\n .errorMessage=","\n @nile-change=","\n >\n </nile-content-editor>"])),a,t,o,n,l,c,s,function(e){_this8.handleChange(e,i);});}},{key:"renderObjectMapper",value:function renderObjectMapper(e){var _this9=this;var t=e.options,i=e.inputType,s=e.error,o=e.errorMessage,n=e.type,a=e.readonly,c=e.noborder;var d=this.currentInput.mode===$.CREATE?"Click to Create - Not Mapped":"Click to Edit";return r(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<nile-input\n class=","\n .value=","\n .errorMessage=","\n .error=","\n readonly=\"true\"\n @click=\"","\"\n >\n <nile-icon\n class=\"pointer-cursor switcher-object-mapper-icon\"\n slot=\"suffix\"\n name=\"var(--nile-icon-expand-2, var(--ng-icon-expand-06))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n color=\"var(--nile-colors-primary-600)\"\n size=\"16\"\n >\n </nile-icon>\n </nile-input>"])),l({"switcher-object-mapper":!0,"switcher-object-mapper--noborder":!!c}),d,o,s,function(e){return _this9.handleChange(e,u.OBJECT_MAPPER);});}},{key:"renderCodeEditor",value:function renderCodeEditor(e){var _this10=this;var t=e.value,i=e.multiLine,s=e.customAutoCompletions,o=e.disabled,n=e.readonly,a=e.errorMessage,c=e.error,d=e.inputType,h=e.noborder,p=e.expand,$=e.updateValue;return r(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["<nile-code-editor\n part=\"switcher-code-editor\"\n exportparts=\"code-editor-base\"\n class=","\n @nile-expand=\"","\"\n @nile-change=\"","\"\n .multiline=\"","\"\n .value=\"","\"\n .readonly=","\n .expandable=\"","\"\n .error=","\n .noborder=","\n .updateValue=","\n .errorMessage=","\n .customAutoCompletions=\"","\"\n ></nile-code-editor> "])),l({"code-editor":!0}),function(e){return _this10.handleExpand(e,u.CODE_EDITOR);},function(e){return _this10.handleChange(e,u.CODE_EDITOR);},i,t,n,p,c,h,$,a,s);}},{key:"handleExpand",value:function handleExpand(e,r){this.currentInput.expand=e.detail.expand,this.emit("nile-change",{input:this.currentInput});}},{key:"handleChange",value:function handleChange(e,r){switch(r){case u.OBJECT_MAPPER:this.currentInput.value="clicked";break;case u.CHECKBOX:this.currentInput.value=e.detail.checked;break;case u.CODE_EDITOR:default:this.currentInput.value=e.detail.value;}e.stopPropagation(),this.emit("nile-change",{input:this.currentInput});}},{key:"renderIcon",value:function renderIcon(){var _this11=this;var e=this.nileSwitchConfig.inputs,t=this.nileSwitchConfig.align===h.BLOCK?"top":"bottom";return r(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <div part=\"icons-container\" class=\"switcher-icons-container\">\n ","\n </div>\n "])),a(e,function(e,i){return r(_templateObject13||(_templateObject13=_taggedTemplateLiteral([" <nile-tooltip\n class=","\n content=","\n placement=","\n >\n <div class=",">\n <nile-icon\n size=\"16\"\n class=","\n .name=","\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n color=\"#000000\"\n @click=","\n ></nile-icon>\n <div>\n \n </nile-tooltip>"])),l({"switcher-tooltip-container":!0}),e.helperText,t,l({"switcher-icon-container":!0,current:i===_this11.current}),l({"pointer-cursor":!0,"pointer-cursor-not-allowed":i===_this11.current}),e.icon,function(){return _this11.toggleField(e,i);});}));}},{key:"toggleField",value:function toggleField(e,r){this.emit("nile-switch",{inputClicked:r,currentInput:e});}},{key:"singleFieldSwitcher",value:function singleFieldSwitcher(){var _this12=this;return this.setCurrentInput(),r(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["\n ","\n "])),n(this.currentInput.inputType,[[u.TEXT,function(){return _this12.renderNileText(_this12.currentInput);}],[u.CHECKBOX,function(){return _this12.renderNileCheckBox(_this12.currentInput);}],[u.TEXTAREA,function(){return _this12.renderNileTextArea(_this12.currentInput);}],[u.RADIO,function(){return _this12.renderNileRadio(_this12.currentInput);}],[u.DROPDOWN,function(){return _this12.renderDropdown(_this12.currentInput);}],[u.CONTENTEDITOR,function(){return _this12.renderContentEditor(_this12.currentInput);}],[u.OBJECT_MAPPER,function(){return _this12.renderObjectMapper(_this12.currentInput);}],[u.CODE_EDITOR,function(){return _this12.renderCodeEditor(_this12.currentInput);}]],function(){return _this12.renderNileText(_this12.currentInput);}));}},{key:"render",value:function render(){var e=this.hasSlotController.test("label"),t=this.nileSwitchConfig.align,i=this.nileSwitchConfig.disable;return r(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["<div\n part=\"base\"\n class=","\n >\n <div class=\"label-container\">\n ","\n ","\n </div>\n ","\n </div>"])),l({"switcher-block":t===h.BLOCK,"switcher-inline":t===h.INLINE,"switcher-container":!0}),e?r(_templateObject16||(_templateObject16=_taggedTemplateLiteral(["\n <label\n part=\"switcher-label\"\n class=\"switcher__label\"\n for=\"input\"\n >\n <slot name=\"label\"></slot>\n </label>\n </div> "]))):"",i?"":r(_templateObject17||(_templateObject17=_taggedTemplateLiteral(["",""])),this.renderIcon()),this.singleFieldSwitcher());}}]);}(o));b.styles=s,e([t({type:Object})],b.prototype,"nileSwitchConfig",void 0),e([t({type:Number})],b.prototype,"current",void 0),e([t({type:Object})],b.prototype,"currentInput",void 0),e([c(["current"],{waitUntilFirstUpdate:!0})],b.prototype,"handleSwitcherChange",null),_export("N",b=e([i("nile-switcher")],b));}};});
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-switcher.css.cjs.js","../internal/nile-element.cjs.js","lit/directives/choose.js","lit/directives/class-map.js","lit/directives/repeat.js","../internal/watch.cjs.js","../internal/slot.cjs.js","../internal/accessibility/a11y.state.enum.cjs.js","../internal/accessibility/a11y.property.enum.cjs.js","../internal/accessibility/role.enum.cjs.js"],function(_export,_context){"use strict";var e,r,t,i,s,n,o,l,a,c,d,_templateObject,_templateObject2,_templateObject3,_templateObject4,_templateObject5,_templateObject6,_templateObject7,_templateObject8,_templateObject9,_templateObject10,_templateObject11,_templateObject12,_templateObject13,_templateObject14,_templateObject15,_templateObject16,_templateObject17,h,p,u,$,b;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){r=_lit.html;},function(_litDecoratorsJs){t=_litDecoratorsJs.property;i=_litDecoratorsJs.customElement;},function(_nileSwitcherCssCjsJs){s=_nileSwitcherCssCjsJs.s;},function(_internalNileElementCjsJs){n=_internalNileElementCjsJs.N;},function(_litDirectivesChooseJs){o=_litDirectivesChooseJs.choose;},function(_litDirectivesClassMapJs){l=_litDirectivesClassMapJs.classMap;},function(_litDirectivesRepeatJs){a=_litDirectivesRepeatJs.repeat;},function(_internalWatchCjsJs){c=_internalWatchCjsJs.w;},function(_internalSlotCjsJs){d=_internalSlotCjsJs.H;},function(_internalAccessibilityA11yStateEnumCjsJs){},function(_internalAccessibilityA11yPropertyEnumCjsJs){},function(_internalAccessibilityRoleEnumCjsJs){}],execute:function execute(){!function(e){e.INLINE="inline",e.BLOCK="block";}(h||(h={})),function(e){e.DEFAULT="defaultInput",e.SWITCH="switchInput";}(p||(p={})),function(e){e.DROPDOWN="dropdown",e.TEXT="text",e.CHECKBOX="checkbox",e.TEXTAREA="text-area",e.RADIO="radio",e.CONTENTEDITOR="content-editor",e.OBJECT_MAPPER="object-mapper",e.CODE_EDITOR="code-editor";}(u||(u={})),function(e){e.CREATE="create",e.EDIT="edit";}($||($={}));_export("N",b=/*#__PURE__*/function(_n){function b(){var _this;_classCallCheck(this,b);_this=_callSuper(this,b,arguments),_this.hasSlotController=new d(_assertThisInitialized(_this),"label"),_this.current=0,_this.isToggleSwitch=function(e){return void 0===e||e;};return _this;}_inherits(b,_n);return _createClass(b,[{key:"connectedCallback",value:function connectedCallback(){_superPropGet(b,"connectedCallback",this,3)([]),this.emit("nile-init");}},{key:"handleSwitcherChange",value:function handleSwitcherChange(){this.setCurrentInput();}},{key:"setCurrentInput",value:function setCurrentInput(){var _this$nileSwitchConfi,_this2=this;((_this$nileSwitchConfi=this.nileSwitchConfig)===null||_this$nileSwitchConfi===void 0?void 0:_this$nileSwitchConfi.inputs)&&(this.currentInput=this.nileSwitchConfig.inputs.filter(function(e,r){return r===_this2.current;})[0]);}},{key:"disconnectedCallback",value:function disconnectedCallback(){_superPropGet(b,"disconnectedCallback",this,3)([]),this.emit("nile-destroy");}},{key:"renderNileText",value:function renderNileText(e){var _this3=this;var t=e.value,i=e.label,s=e.placeholder,n=e.disabled,o=e.required,a=e.error,c=e.errorMessage,d=e.inputType,h=e.noborder;return r(_templateObject||(_templateObject=_taggedTemplateLiteral(["<nile-input\n class=","\n .value=","\n .label=","\n .disabled=","\n .required=","\n .errorMessage=","\n .placeholder=","\n .error=","\n @nile-input=","\n ></nile-input>"])),l({"switcher-input":!0,"switcher-input--noborder":!!h}),t,i,n,o,c,s,a,function(e){_this3.handleChange(e,d);});}},{key:"renderDropdown",value:function renderDropdown(e){var _this4=this;var t=e.options,i=e.multiple,s=e.placeholder,n=e.disabled,o=e.value,a=e.error,c=e.errorMessage,d=e.inputType,h=e.noborder;return r(_templateObject2||(_templateObject2=_taggedTemplateLiteral(["<nile-select\n part=\"dropdown\"\n class=","\n .placeholder=","\n .disabled=\"","\"\n .multiple=\"","\"\n .value=\"","\"\n .error=\"","\"\n .errorMessage=\"","\"\n @nile-change=","\n >\n ","\n </nile-select>"])),l({"switcher-dropdown":!0,"switcher-dropdown--noborder":!!h}),s,n,i,o,a,c,function(e){_this4.handleChange(e,d);},t===null||t===void 0?void 0:t.map(function(e){return r(_templateObject3||(_templateObject3=_taggedTemplateLiteral(["<nile-option .value=\"","\">"," </nile-option>"])),e,e);}));}},{key:"renderNileTextArea",value:function renderNileTextArea(e){var _this5=this;var t=e.value,i=e.disabled,s=e.readonly,n=e.errorMessage,o=e.error,l=e.inputType;return r(_templateObject4||(_templateObject4=_taggedTemplateLiteral(["<nile-textarea\n class=\"switcher-textarea\"\n .value=","\n .disabled=","\n ?readonly=","\n .error=","\n .errorMessage=","\n @nile-input=","\n ></nile-textarea>"])),t,i,s,o,n,function(e){_this5.handleChange(e,l);});}},{key:"renderNileCheckBox",value:function renderNileCheckBox(e){var _this6=this;var t=e.value,i=e.label,s=e.disabled,n=e.inputType;return r(_templateObject5||(_templateObject5=_taggedTemplateLiteral(["<nile-checkbox\n class=\"switcher-checkbox\"\n .checked=","\n .label=","\n .disabled=","\n @valueChange=","\n ></nile-checkbox\n >; "])),t,i,s,function(e){_this6.handleChange(e,n);});}},{key:"renderNileRadio",value:function renderNileRadio(e){var _this7=this;var t=e.options,i=e.value,s=e.disabled,n=e.errorMessage,o=e.inputType,l=!!n;return r(_templateObject6||(_templateObject6=_taggedTemplateLiteral(["<nile-radio-group\n class=\"switcher-radio-group\"\n .value=","\n .disabled=","\n @change=","\n >\n ","\n ","\n </nile-radio-group> "])),i,s,function(e){_this7.handleChange(e,o);},t&&t.map(function(e){return r(_templateObject7||(_templateObject7=_taggedTemplateLiteral(["<nile-radio .value=\"","\">"," </nile-radio>"])),e,e);}),l?this.renderErrorMessage(n):"");}},{key:"renderErrorMessage",value:function renderErrorMessage(e){return r(_templateObject8||(_templateObject8=_taggedTemplateLiteral(["\n <nile-form-error-message>","</nile-form-error-message>\n "])),e);}},{key:"renderContentEditor",value:function renderContentEditor(e){var _this8=this;var t=e.options,i=e.inputType,s=e.errorMessage,n=e.type,o=e.readonly,l=e.noborder,a=e.value,c=e.updateValue;return r(_templateObject9||(_templateObject9=_taggedTemplateLiteral(["<nile-content-editor\n class=\"switcher-content-editor\"\n .value=","\n .options=","\n .type=","\n .readonly=","\n .noborder=","\n .updateValue=","\n .errorMessage=","\n @nile-change=","\n >\n </nile-content-editor>"])),a,t,n,o,l,c,s,function(e){_this8.handleChange(e,i);});}},{key:"renderObjectMapper",value:function renderObjectMapper(e){var _this9=this;var t=e.options,i=e.inputType,s=e.error,n=e.errorMessage,o=e.type,a=e.readonly,c=e.noborder;var d=this.currentInput.mode===$.CREATE?"Click to Create - Not Mapped":"Click to Edit";return r(_templateObject10||(_templateObject10=_taggedTemplateLiteral(["<nile-input\n class=","\n .value=","\n .errorMessage=","\n .error=","\n readonly=\"true\"\n @click=\"","\"\n >\n <nile-icon\n class=\"pointer-cursor switcher-object-mapper-icon\"\n slot=\"suffix\"\n name=\"var(--nile-icon-expand-2, var(--ng-icon-expand-06))\"\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n color=\"var(--nile-colors-primary-600)\"\n size=\"16\"\n >\n </nile-icon>\n </nile-input>"])),l({"switcher-object-mapper":!0,"switcher-object-mapper--noborder":!!c}),d,n,s,function(e){return _this9.handleChange(e,u.OBJECT_MAPPER);});}},{key:"renderCodeEditor",value:function renderCodeEditor(e){var _this10=this;var t=e.value,i=e.multiLine,s=e.customAutoCompletions,n=e.disabled,o=e.readonly,a=e.errorMessage,c=e.error,d=e.inputType,h=e.noborder,p=e.expand,$=e.updateValue;return r(_templateObject11||(_templateObject11=_taggedTemplateLiteral(["<nile-code-editor\n part=\"switcher-code-editor\"\n exportparts=\"code-editor-base\"\n class=","\n @nile-expand=\"","\"\n @nile-change=\"","\"\n .multiline=\"","\"\n .value=\"","\"\n .readonly=","\n .expandable=\"","\"\n .error=","\n .noborder=","\n .updateValue=","\n .errorMessage=","\n .customAutoCompletions=\"","\"\n ></nile-code-editor> "])),l({"code-editor":!0}),function(e){return _this10.handleExpand(e,u.CODE_EDITOR);},function(e){return _this10.handleChange(e,u.CODE_EDITOR);},i,t,o,p,c,h,$,a,s);}},{key:"handleExpand",value:function handleExpand(e,r){this.currentInput.expand=e.detail.expand,this.emit("nile-change",{input:this.currentInput});}},{key:"handleChange",value:function handleChange(e,r){switch(r){case u.OBJECT_MAPPER:this.currentInput.value="clicked";break;case u.CHECKBOX:this.currentInput.value=e.detail.checked;break;case u.CODE_EDITOR:default:this.currentInput.value=e.detail.value;}e.stopPropagation(),this.emit("nile-change",{input:this.currentInput});}},{key:"renderIcon",value:function renderIcon(){var _this11=this;var e=this.nileSwitchConfig.inputs,t=this.nileSwitchConfig.align===h.BLOCK?"top":"bottom";return r(_templateObject12||(_templateObject12=_taggedTemplateLiteral(["\n <div part=\"icons-container\" class=\"switcher-icons-container\">\n ","\n </div>\n "])),a(e,function(e,i){return r(_templateObject13||(_templateObject13=_taggedTemplateLiteral([" <nile-tooltip\n class=","\n content=","\n placement=","\n >\n <div class=",">\n <nile-icon\n size=\"16\"\n class=","\n .name=","\n method=\"var(--nile-svg-method-fill, var(--ng-svg-method-stroke))\"\n color=\"#000000\"\n @click=","\n ></nile-icon>\n <div>\n \n </nile-tooltip>"])),l({"switcher-tooltip-container":!0}),e.helperText,t,l({"switcher-icon-container":!0,current:i===_this11.current}),l({"pointer-cursor":!0,"pointer-cursor-not-allowed":i===_this11.current}),e.icon,function(){return _this11.toggleField(e,i);});}));}},{key:"toggleField",value:function toggleField(e,r){this.emit("nile-switch",{inputClicked:r,currentInput:e});}},{key:"singleFieldSwitcher",value:function singleFieldSwitcher(){var _this12=this;return this.setCurrentInput(),r(_templateObject14||(_templateObject14=_taggedTemplateLiteral(["\n ","\n "])),o(this.currentInput.inputType,[[u.TEXT,function(){return _this12.renderNileText(_this12.currentInput);}],[u.CHECKBOX,function(){return _this12.renderNileCheckBox(_this12.currentInput);}],[u.TEXTAREA,function(){return _this12.renderNileTextArea(_this12.currentInput);}],[u.RADIO,function(){return _this12.renderNileRadio(_this12.currentInput);}],[u.DROPDOWN,function(){return _this12.renderDropdown(_this12.currentInput);}],[u.CONTENTEDITOR,function(){return _this12.renderContentEditor(_this12.currentInput);}],[u.OBJECT_MAPPER,function(){return _this12.renderObjectMapper(_this12.currentInput);}],[u.CODE_EDITOR,function(){return _this12.renderCodeEditor(_this12.currentInput);}]],function(){return _this12.renderNileText(_this12.currentInput);}));}},{key:"render",value:function render(){var e=this.hasSlotController.test("label"),t=this.nileSwitchConfig.align,i=this.nileSwitchConfig.disable;return r(_templateObject15||(_templateObject15=_taggedTemplateLiteral(["<div\n part=\"base\"\n class=","\n >\n <div class=\"label-container\">\n ","\n ","\n </div>\n ","\n </div>"])),l({"switcher-block":t===h.BLOCK,"switcher-inline":t===h.INLINE,"switcher-container":!0}),e?r(_templateObject16||(_templateObject16=_taggedTemplateLiteral(["\n <label\n part=\"switcher-label\"\n class=\"switcher__label\"\n for=\"input\"\n >\n <slot name=\"label\"></slot>\n </label>\n </div> "]))):"",i?"":r(_templateObject17||(_templateObject17=_taggedTemplateLiteral(["",""])),this.renderIcon()),this.singleFieldSwitcher());}}]);}(n));b.styles=s,e([t({type:Object})],b.prototype,"nileSwitchConfig",void 0),e([t({type:Number})],b.prototype,"current",void 0),e([t({type:Object})],b.prototype,"currentInput",void 0),e([c(["current"],{waitUntilFirstUpdate:!0})],b.prototype,"handleSwitcherChange",null),_export("N",b=e([i("nile-switcher")],b));}};});
2
2
  //# sourceMappingURL=nile-switcher.cjs.js.map