@elementar-rt/components 0.6.56 → 0.6.57

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 (344) hide show
  1. package/README.md +49 -49
  2. package/badge/index.d.ts +18 -0
  3. package/bottom-sheet/index.d.ts +32 -0
  4. package/button-toggle/index.d.ts +33 -0
  5. package/calendar/index.d.ts +44 -0
  6. package/card/index.d.ts +32 -0
  7. package/chips/index.d.ts +23 -0
  8. package/clipboard-copy/index.d.ts +28 -0
  9. package/code-highlighter/index.d.ts +5 -1
  10. package/combobox/index.d.ts +38 -0
  11. package/content-editor/index.d.ts +18 -0
  12. package/dashboard/index.d.ts +1 -1
  13. package/data-grid/index.d.ts +64 -0
  14. package/datepicker/index.d.ts +32 -0
  15. package/dialog/index.d.ts +48 -0
  16. package/digit-roller/index.d.ts +18 -0
  17. package/empty-state/index.d.ts +17 -0
  18. package/expansion-panel/index.d.ts +12 -0
  19. package/fesm2022/elementar-rt-components-action-required.mjs +4 -4
  20. package/fesm2022/elementar-rt-components-action-required.mjs.map +1 -1
  21. package/fesm2022/elementar-rt-components-alert.mjs +17 -17
  22. package/fesm2022/elementar-rt-components-alert.mjs.map +1 -1
  23. package/fesm2022/elementar-rt-components-announcement.mjs +8 -8
  24. package/fesm2022/elementar-rt-components-announcement.mjs.map +1 -1
  25. package/fesm2022/elementar-rt-components-avatar.mjs +22 -22
  26. package/fesm2022/elementar-rt-components-avatar.mjs.map +1 -1
  27. package/fesm2022/elementar-rt-components-badge.mjs +38 -0
  28. package/fesm2022/elementar-rt-components-badge.mjs.map +1 -0
  29. package/fesm2022/elementar-rt-components-block-loader.mjs +7 -7
  30. package/fesm2022/elementar-rt-components-block-loader.mjs.map +1 -1
  31. package/fesm2022/elementar-rt-components-block-state.mjs +24 -24
  32. package/fesm2022/elementar-rt-components-block-state.mjs.map +1 -1
  33. package/fesm2022/elementar-rt-components-bottom-sheet.mjs +71 -0
  34. package/fesm2022/elementar-rt-components-bottom-sheet.mjs.map +1 -0
  35. package/fesm2022/elementar-rt-components-brand-colors.mjs +5 -5
  36. package/fesm2022/elementar-rt-components-brand-colors.mjs.map +1 -1
  37. package/fesm2022/elementar-rt-components-breadcrumbs.mjs +41 -41
  38. package/fesm2022/elementar-rt-components-breadcrumbs.mjs.map +1 -1
  39. package/fesm2022/elementar-rt-components-button-toggle.mjs +89 -0
  40. package/fesm2022/elementar-rt-components-button-toggle.mjs.map +1 -0
  41. package/fesm2022/elementar-rt-components-calendar.mjs +130 -0
  42. package/fesm2022/elementar-rt-components-calendar.mjs.map +1 -0
  43. package/fesm2022/elementar-rt-components-card-overlay.mjs +7 -7
  44. package/fesm2022/elementar-rt-components-card-overlay.mjs.map +1 -1
  45. package/fesm2022/elementar-rt-components-card.mjs +60 -0
  46. package/fesm2022/elementar-rt-components-card.mjs.map +1 -0
  47. package/fesm2022/elementar-rt-components-carousel.mjs +22 -22
  48. package/fesm2022/elementar-rt-components-carousel.mjs.map +1 -1
  49. package/fesm2022/elementar-rt-components-chips.mjs +54 -0
  50. package/fesm2022/elementar-rt-components-chips.mjs.map +1 -0
  51. package/fesm2022/elementar-rt-components-clipboard-copy.mjs +115 -0
  52. package/fesm2022/elementar-rt-components-clipboard-copy.mjs.map +1 -0
  53. package/fesm2022/elementar-rt-components-code-highlighter.mjs +19 -6
  54. package/fesm2022/elementar-rt-components-code-highlighter.mjs.map +1 -1
  55. package/fesm2022/elementar-rt-components-color-picker.mjs +27 -27
  56. package/fesm2022/elementar-rt-components-color-picker.mjs.map +1 -1
  57. package/fesm2022/elementar-rt-components-color-scheme.mjs +10 -10
  58. package/fesm2022/elementar-rt-components-color-scheme.mjs.map +1 -1
  59. package/fesm2022/elementar-rt-components-combobox.mjs +70 -0
  60. package/fesm2022/elementar-rt-components-combobox.mjs.map +1 -0
  61. package/fesm2022/elementar-rt-components-command-bar.mjs +12 -12
  62. package/fesm2022/elementar-rt-components-command-bar.mjs.map +1 -1
  63. package/fesm2022/elementar-rt-components-comment-editor.mjs +82 -82
  64. package/fesm2022/elementar-rt-components-comment-editor.mjs.map +1 -1
  65. package/fesm2022/elementar-rt-components-comparison-slider.mjs +10 -10
  66. package/fesm2022/elementar-rt-components-comparison-slider.mjs.map +1 -1
  67. package/fesm2022/elementar-rt-components-confirm.mjs +7 -7
  68. package/fesm2022/elementar-rt-components-confirm.mjs.map +1 -1
  69. package/fesm2022/elementar-rt-components-content-editor.mjs +121 -0
  70. package/fesm2022/elementar-rt-components-content-editor.mjs.map +1 -0
  71. package/fesm2022/elementar-rt-components-content-fade.mjs +4 -4
  72. package/fesm2022/elementar-rt-components-content-fade.mjs.map +1 -1
  73. package/fesm2022/elementar-rt-components-cookie-popup.mjs +13 -13
  74. package/fesm2022/elementar-rt-components-cookie-popup.mjs.map +1 -1
  75. package/fesm2022/elementar-rt-components-core.mjs +64 -64
  76. package/fesm2022/elementar-rt-components-core.mjs.map +1 -1
  77. package/fesm2022/elementar-rt-components-country-select.mjs +5 -5
  78. package/fesm2022/elementar-rt-components-country-select.mjs.map +1 -1
  79. package/fesm2022/elementar-rt-components-crop.mjs +4 -4
  80. package/fesm2022/elementar-rt-components-crop.mjs.map +1 -1
  81. package/fesm2022/elementar-rt-components-currency-select.mjs +5 -5
  82. package/fesm2022/elementar-rt-components-currency-select.mjs.map +1 -1
  83. package/fesm2022/elementar-rt-components-dashboard.mjs +9 -9
  84. package/fesm2022/elementar-rt-components-dashboard.mjs.map +1 -1
  85. package/fesm2022/elementar-rt-components-data-grid.mjs +120 -0
  86. package/fesm2022/elementar-rt-components-data-grid.mjs.map +1 -0
  87. package/fesm2022/elementar-rt-components-data-view.mjs +17 -17
  88. package/fesm2022/elementar-rt-components-data-view.mjs.map +1 -1
  89. package/fesm2022/elementar-rt-components-date-format-select.mjs +5 -5
  90. package/fesm2022/elementar-rt-components-date-format-select.mjs.map +1 -1
  91. package/fesm2022/elementar-rt-components-datepicker.mjs +81 -0
  92. package/fesm2022/elementar-rt-components-datepicker.mjs.map +1 -0
  93. package/fesm2022/elementar-rt-components-dialog.mjs +97 -0
  94. package/fesm2022/elementar-rt-components-dialog.mjs.map +1 -0
  95. package/fesm2022/elementar-rt-components-digit-roller.mjs +41 -0
  96. package/fesm2022/elementar-rt-components-digit-roller.mjs.map +1 -0
  97. package/fesm2022/elementar-rt-components-divider.mjs +8 -8
  98. package/fesm2022/elementar-rt-components-divider.mjs.map +1 -1
  99. package/fesm2022/elementar-rt-components-drawer.mjs +8 -8
  100. package/fesm2022/elementar-rt-components-drawer.mjs.map +1 -1
  101. package/fesm2022/elementar-rt-components-emoji-picker.mjs +7 -7
  102. package/fesm2022/elementar-rt-components-emoji-picker.mjs.map +1 -1
  103. package/fesm2022/elementar-rt-components-empty-state.mjs +35 -0
  104. package/fesm2022/elementar-rt-components-empty-state.mjs.map +1 -0
  105. package/fesm2022/elementar-rt-components-expand.mjs +4 -4
  106. package/fesm2022/elementar-rt-components-expand.mjs.map +1 -1
  107. package/fesm2022/elementar-rt-components-expansion-panel.mjs +32 -0
  108. package/fesm2022/elementar-rt-components-expansion-panel.mjs.map +1 -0
  109. package/fesm2022/elementar-rt-components-filter-builder.mjs +13 -13
  110. package/fesm2022/elementar-rt-components-filter-builder.mjs.map +1 -1
  111. package/fesm2022/elementar-rt-components-filter-select.mjs +126 -0
  112. package/fesm2022/elementar-rt-components-filter-select.mjs.map +1 -0
  113. package/fesm2022/elementar-rt-components-form-renderer-autocomplete-many-field.component-C2Ai6F2X.mjs +123 -0
  114. package/fesm2022/elementar-rt-components-form-renderer-autocomplete-many-field.component-C2Ai6F2X.mjs.map +1 -0
  115. package/fesm2022/elementar-rt-components-form-renderer-checkbox-field.component-a0XAs0-_.mjs +22 -0
  116. package/fesm2022/elementar-rt-components-form-renderer-checkbox-field.component-a0XAs0-_.mjs.map +1 -0
  117. package/fesm2022/elementar-rt-components-form-renderer-datepicker-field.component-CTVrrf43.mjs +40 -0
  118. package/fesm2022/elementar-rt-components-form-renderer-datepicker-field.component-CTVrrf43.mjs.map +1 -0
  119. package/fesm2022/{elementar-rt-components-form-renderer-divider-content.component-CjlGcU3B.mjs → elementar-rt-components-form-renderer-divider-content.component-CkYa0MOQ.mjs} +5 -5
  120. package/fesm2022/elementar-rt-components-form-renderer-divider-content.component-CkYa0MOQ.mjs.map +1 -0
  121. package/fesm2022/{elementar-rt-components-form-renderer-image-content.component-0pL2Fk0H.mjs → elementar-rt-components-form-renderer-image-content.component-B5uj3hoV.mjs} +5 -5
  122. package/fesm2022/elementar-rt-components-form-renderer-image-content.component-B5uj3hoV.mjs.map +1 -0
  123. package/fesm2022/elementar-rt-components-form-renderer-input-field.component-DnaWJIK9.mjs +33 -0
  124. package/fesm2022/elementar-rt-components-form-renderer-input-field.component-DnaWJIK9.mjs.map +1 -0
  125. package/fesm2022/elementar-rt-components-form-renderer-radio-group-field.component-9BLv1MsP.mjs +38 -0
  126. package/fesm2022/elementar-rt-components-form-renderer-radio-group-field.component-9BLv1MsP.mjs.map +1 -0
  127. package/fesm2022/elementar-rt-components-form-renderer-select-field.component-C97pIEdh.mjs +39 -0
  128. package/fesm2022/elementar-rt-components-form-renderer-select-field.component-C97pIEdh.mjs.map +1 -0
  129. package/fesm2022/{elementar-rt-components-form-renderer-text-content.component-BmFyUG06.mjs → elementar-rt-components-form-renderer-text-content.component-CJxCc5vX.mjs} +5 -5
  130. package/fesm2022/elementar-rt-components-form-renderer-text-content.component-CJxCc5vX.mjs.map +1 -0
  131. package/fesm2022/elementar-rt-components-form-renderer-textarea-field.component-CCtWiJOk.mjs +37 -0
  132. package/fesm2022/elementar-rt-components-form-renderer-textarea-field.component-CCtWiJOk.mjs.map +1 -0
  133. package/fesm2022/elementar-rt-components-form-renderer-timezone-field.component-GvZgdvUX.mjs +35 -0
  134. package/fesm2022/elementar-rt-components-form-renderer-timezone-field.component-GvZgdvUX.mjs.map +1 -0
  135. package/fesm2022/elementar-rt-components-form-renderer-toggle-field.component-DBiIiV-9.mjs +22 -0
  136. package/fesm2022/elementar-rt-components-form-renderer-toggle-field.component-DBiIiV-9.mjs.map +1 -0
  137. package/fesm2022/elementar-rt-components-form-renderer.mjs +29 -29
  138. package/fesm2022/elementar-rt-components-form-renderer.mjs.map +1 -1
  139. package/fesm2022/elementar-rt-components-gauge.mjs +8 -8
  140. package/fesm2022/elementar-rt-components-gauge.mjs.map +1 -1
  141. package/fesm2022/elementar-rt-components-grid.mjs +37 -0
  142. package/fesm2022/elementar-rt-components-grid.mjs.map +1 -0
  143. package/fesm2022/elementar-rt-components-guided-tour.mjs +161 -0
  144. package/fesm2022/elementar-rt-components-guided-tour.mjs.map +1 -0
  145. package/fesm2022/elementar-rt-components-headless-stepper.mjs +72 -0
  146. package/fesm2022/elementar-rt-components-headless-stepper.mjs.map +1 -0
  147. package/fesm2022/elementar-rt-components-icon.mjs +4 -4
  148. package/fesm2022/elementar-rt-components-icon.mjs.map +1 -1
  149. package/fesm2022/elementar-rt-components-image-placeholder.mjs +30 -0
  150. package/fesm2022/elementar-rt-components-image-placeholder.mjs.map +1 -0
  151. package/fesm2022/elementar-rt-components-image-resizer.mjs +10 -10
  152. package/fesm2022/elementar-rt-components-image-resizer.mjs.map +1 -1
  153. package/fesm2022/elementar-rt-components-image-viewer.mjs +19 -19
  154. package/fesm2022/elementar-rt-components-image-viewer.mjs.map +1 -1
  155. package/fesm2022/elementar-rt-components-image-zoom-viewer.mjs +97 -0
  156. package/fesm2022/elementar-rt-components-image-zoom-viewer.mjs.map +1 -0
  157. package/fesm2022/elementar-rt-components-incidents.mjs +49 -49
  158. package/fesm2022/elementar-rt-components-incidents.mjs.map +1 -1
  159. package/fesm2022/elementar-rt-components-inline-text-edit.mjs +4 -4
  160. package/fesm2022/elementar-rt-components-inline-text-edit.mjs.map +1 -1
  161. package/fesm2022/elementar-rt-components-input-mask.mjs +9 -9
  162. package/fesm2022/elementar-rt-components-input-mask.mjs.map +1 -1
  163. package/fesm2022/elementar-rt-components-input-validator.mjs.map +1 -1
  164. package/fesm2022/elementar-rt-components-kanban-board.mjs +7 -7
  165. package/fesm2022/elementar-rt-components-kanban-board.mjs.map +1 -1
  166. package/fesm2022/elementar-rt-components-keyboard.mjs +63 -0
  167. package/fesm2022/elementar-rt-components-keyboard.mjs.map +1 -0
  168. package/fesm2022/elementar-rt-components-layout.mjs +32 -32
  169. package/fesm2022/elementar-rt-components-layout.mjs.map +1 -1
  170. package/fesm2022/elementar-rt-components-list.mjs +43 -0
  171. package/fesm2022/elementar-rt-components-list.mjs.map +1 -0
  172. package/fesm2022/elementar-rt-components-logo.mjs +12 -12
  173. package/fesm2022/elementar-rt-components-logo.mjs.map +1 -1
  174. package/fesm2022/elementar-rt-components-marquee.mjs +7 -7
  175. package/fesm2022/elementar-rt-components-marquee.mjs.map +1 -1
  176. package/fesm2022/elementar-rt-components-menu.mjs +94 -0
  177. package/fesm2022/elementar-rt-components-menu.mjs.map +1 -0
  178. package/fesm2022/elementar-rt-components-micro-chart.mjs +24 -24
  179. package/fesm2022/elementar-rt-components-micro-chart.mjs.map +1 -1
  180. package/fesm2022/elementar-rt-components-multi-select.mjs +66 -0
  181. package/fesm2022/elementar-rt-components-multi-select.mjs.map +1 -0
  182. package/fesm2022/elementar-rt-components-navigation.mjs +39 -39
  183. package/fesm2022/elementar-rt-components-navigation.mjs.map +1 -1
  184. package/fesm2022/elementar-rt-components-notifications.mjs +40 -40
  185. package/fesm2022/elementar-rt-components-notifications.mjs.map +1 -1
  186. package/fesm2022/elementar-rt-components-number-input.mjs +17 -17
  187. package/fesm2022/elementar-rt-components-number-input.mjs.map +1 -1
  188. package/fesm2022/elementar-rt-components-overlay-scrollbar.mjs +4 -4
  189. package/fesm2022/elementar-rt-components-overlay-scrollbar.mjs.map +1 -1
  190. package/fesm2022/elementar-rt-components-overlay.mjs.map +1 -1
  191. package/fesm2022/elementar-rt-components-page-loading-bar.mjs +4 -4
  192. package/fesm2022/elementar-rt-components-page-loading-bar.mjs.map +1 -1
  193. package/fesm2022/elementar-rt-components-paginator.mjs +50 -0
  194. package/fesm2022/elementar-rt-components-paginator.mjs.map +1 -0
  195. package/fesm2022/elementar-rt-components-panel.mjs +24 -24
  196. package/fesm2022/elementar-rt-components-panel.mjs.map +1 -1
  197. package/fesm2022/elementar-rt-components-password-strength.mjs +13 -13
  198. package/fesm2022/elementar-rt-components-password-strength.mjs.map +1 -1
  199. package/fesm2022/elementar-rt-components-phone-input.mjs +11 -11
  200. package/fesm2022/elementar-rt-components-phone-input.mjs.map +1 -1
  201. package/fesm2022/elementar-rt-components-pin-input.mjs +8 -8
  202. package/fesm2022/elementar-rt-components-pin-input.mjs.map +1 -1
  203. package/fesm2022/elementar-rt-components-popover.mjs +10 -10
  204. package/fesm2022/elementar-rt-components-popover.mjs.map +1 -1
  205. package/fesm2022/elementar-rt-components-progress-bar.mjs +32 -0
  206. package/fesm2022/elementar-rt-components-progress-bar.mjs.map +1 -0
  207. package/fesm2022/elementar-rt-components-progress-spinner.mjs +94 -0
  208. package/fesm2022/elementar-rt-components-progress-spinner.mjs.map +1 -0
  209. package/fesm2022/elementar-rt-components-radio-card.mjs +17 -17
  210. package/fesm2022/elementar-rt-components-radio-card.mjs.map +1 -1
  211. package/fesm2022/elementar-rt-components-rail-nav.mjs +12 -12
  212. package/fesm2022/elementar-rt-components-rail-nav.mjs.map +1 -1
  213. package/fesm2022/elementar-rt-components-rating.mjs +84 -0
  214. package/fesm2022/elementar-rt-components-rating.mjs.map +1 -0
  215. package/fesm2022/elementar-rt-components-resizable-container.mjs +4 -4
  216. package/fesm2022/elementar-rt-components-resizable-container.mjs.map +1 -1
  217. package/fesm2022/elementar-rt-components-screen-loader.mjs +4 -4
  218. package/fesm2022/elementar-rt-components-screen-loader.mjs.map +1 -1
  219. package/fesm2022/elementar-rt-components-scroll-spy.mjs +16 -16
  220. package/fesm2022/elementar-rt-components-scroll-spy.mjs.map +1 -1
  221. package/fesm2022/elementar-rt-components-segmented.mjs +12 -12
  222. package/fesm2022/elementar-rt-components-segmented.mjs.map +1 -1
  223. package/fesm2022/elementar-rt-components-side-panel.mjs +8 -8
  224. package/fesm2022/elementar-rt-components-side-panel.mjs.map +1 -1
  225. package/fesm2022/elementar-rt-components-sidebar.mjs +61 -61
  226. package/fesm2022/elementar-rt-components-sidebar.mjs.map +1 -1
  227. package/fesm2022/elementar-rt-components-sidenav.mjs +72 -0
  228. package/fesm2022/elementar-rt-components-sidenav.mjs.map +1 -0
  229. package/fesm2022/elementar-rt-components-signature-pad.mjs +4 -4
  230. package/fesm2022/elementar-rt-components-signature-pad.mjs.map +1 -1
  231. package/fesm2022/elementar-rt-components-skeleton.mjs +16 -16
  232. package/fesm2022/elementar-rt-components-skeleton.mjs.map +1 -1
  233. package/fesm2022/elementar-rt-components-slider.mjs +64 -0
  234. package/fesm2022/elementar-rt-components-slider.mjs.map +1 -0
  235. package/fesm2022/elementar-rt-components-snackbar.mjs +81 -0
  236. package/fesm2022/elementar-rt-components-snackbar.mjs.map +1 -0
  237. package/fesm2022/elementar-rt-components-sort.mjs +69 -0
  238. package/fesm2022/elementar-rt-components-sort.mjs.map +1 -0
  239. package/fesm2022/elementar-rt-components-splash-screen.mjs +4 -4
  240. package/fesm2022/elementar-rt-components-splash-screen.mjs.map +1 -1
  241. package/fesm2022/elementar-rt-components-split-pane.mjs +70 -0
  242. package/fesm2022/elementar-rt-components-split-pane.mjs.map +1 -0
  243. package/fesm2022/elementar-rt-components-stat-card.mjs +27 -0
  244. package/fesm2022/elementar-rt-components-stat-card.mjs.map +1 -0
  245. package/fesm2022/elementar-rt-components-step-tracker.mjs +30 -0
  246. package/fesm2022/elementar-rt-components-step-tracker.mjs.map +1 -0
  247. package/fesm2022/elementar-rt-components-stepper.mjs +6 -6
  248. package/fesm2022/elementar-rt-components-stepper.mjs.map +1 -1
  249. package/fesm2022/elementar-rt-components-suggestions.mjs +18 -18
  250. package/fesm2022/elementar-rt-components-suggestions.mjs.map +1 -1
  251. package/fesm2022/elementar-rt-components-tab-panel.mjs +48 -48
  252. package/fesm2022/elementar-rt-components-tab-panel.mjs.map +1 -1
  253. package/fesm2022/elementar-rt-components-table.mjs +84 -0
  254. package/fesm2022/elementar-rt-components-table.mjs.map +1 -0
  255. package/fesm2022/elementar-rt-components-tabs.mjs +59 -0
  256. package/fesm2022/elementar-rt-components-tabs.mjs.map +1 -0
  257. package/fesm2022/elementar-rt-components-tag.mjs +28 -0
  258. package/fesm2022/elementar-rt-components-tag.mjs.map +1 -0
  259. package/fesm2022/elementar-rt-components-text-editor.mjs +85 -85
  260. package/fesm2022/elementar-rt-components-text-editor.mjs.map +1 -1
  261. package/fesm2022/elementar-rt-components-thumbnail-maker.mjs +7 -7
  262. package/fesm2022/elementar-rt-components-thumbnail-maker.mjs.map +1 -1
  263. package/fesm2022/elementar-rt-components-tiles.mjs +35 -0
  264. package/fesm2022/elementar-rt-components-tiles.mjs.map +1 -0
  265. package/fesm2022/elementar-rt-components-timeline.mjs +39 -39
  266. package/fesm2022/elementar-rt-components-timeline.mjs.map +1 -1
  267. package/fesm2022/elementar-rt-components-timepicker.mjs +75 -0
  268. package/fesm2022/elementar-rt-components-timepicker.mjs.map +1 -0
  269. package/fesm2022/elementar-rt-components-timezone-select.mjs +8 -8
  270. package/fesm2022/elementar-rt-components-timezone-select.mjs.map +1 -1
  271. package/fesm2022/elementar-rt-components-toast.mjs +98 -0
  272. package/fesm2022/elementar-rt-components-toast.mjs.map +1 -0
  273. package/fesm2022/elementar-rt-components-toolbar.mjs +24 -0
  274. package/fesm2022/elementar-rt-components-toolbar.mjs.map +1 -0
  275. package/fesm2022/elementar-rt-components-tooltip.mjs +119 -0
  276. package/fesm2022/elementar-rt-components-tooltip.mjs.map +1 -0
  277. package/fesm2022/elementar-rt-components-tree.mjs +77 -0
  278. package/fesm2022/elementar-rt-components-tree.mjs.map +1 -0
  279. package/fesm2022/elementar-rt-components-upload.mjs +57 -57
  280. package/fesm2022/elementar-rt-components-upload.mjs.map +1 -1
  281. package/fesm2022/elementar-rt-components-video-player.mjs +144 -0
  282. package/fesm2022/elementar-rt-components-video-player.mjs.map +1 -0
  283. package/fesm2022/elementar-rt-components-video-viewer.mjs +98 -0
  284. package/fesm2022/elementar-rt-components-video-viewer.mjs.map +1 -0
  285. package/fesm2022/elementar-rt-components.mjs.map +1 -1
  286. package/filter-select/index.d.ts +40 -0
  287. package/grid/index.d.ts +24 -0
  288. package/guided-tour/index.d.ts +45 -0
  289. package/headless-stepper/index.d.ts +30 -0
  290. package/image-placeholder/index.d.ts +18 -0
  291. package/image-zoom-viewer/index.d.ts +33 -0
  292. package/keyboard/index.d.ts +13 -0
  293. package/list/index.d.ts +18 -0
  294. package/menu/index.d.ts +38 -0
  295. package/multi-select/index.d.ts +36 -0
  296. package/package.json +225 -33
  297. package/paginator/index.d.ts +26 -0
  298. package/progress-bar/index.d.ts +17 -0
  299. package/progress-spinner/index.d.ts +19 -0
  300. package/rating/index.d.ts +30 -0
  301. package/sidenav/index.d.ts +31 -0
  302. package/slider/index.d.ts +26 -0
  303. package/snackbar/index.d.ts +36 -0
  304. package/sort/index.d.ts +27 -0
  305. package/split-pane/index.d.ts +25 -0
  306. package/stat-card/index.d.ts +16 -0
  307. package/step-tracker/index.d.ts +21 -0
  308. package/styles/_common.scss +777 -776
  309. package/styles/themes/cyan-orange.scss +41 -41
  310. package/styles/themes/default.scss +5 -5
  311. package/styles/themes/magenta-violet.scss +41 -41
  312. package/styles/themes/rose-red.scss +41 -41
  313. package/table/index.d.ts +44 -0
  314. package/tabs/index.d.ts +26 -0
  315. package/tag/index.d.ts +17 -0
  316. package/tiles/index.d.ts +14 -0
  317. package/timepicker/index.d.ts +29 -0
  318. package/toast/index.d.ts +48 -0
  319. package/toolbar/index.d.ts +10 -0
  320. package/tooltip/index.d.ts +30 -0
  321. package/tree/index.d.ts +42 -0
  322. package/video-player/index.d.ts +49 -0
  323. package/video-viewer/index.d.ts +33 -0
  324. package/fesm2022/elementar-rt-components-form-renderer-autocomplete-many-field.component-AqEghjO_.mjs +0 -123
  325. package/fesm2022/elementar-rt-components-form-renderer-autocomplete-many-field.component-AqEghjO_.mjs.map +0 -1
  326. package/fesm2022/elementar-rt-components-form-renderer-checkbox-field.component-CUKmZGFq.mjs +0 -22
  327. package/fesm2022/elementar-rt-components-form-renderer-checkbox-field.component-CUKmZGFq.mjs.map +0 -1
  328. package/fesm2022/elementar-rt-components-form-renderer-datepicker-field.component-DihIRWMt.mjs +0 -40
  329. package/fesm2022/elementar-rt-components-form-renderer-datepicker-field.component-DihIRWMt.mjs.map +0 -1
  330. package/fesm2022/elementar-rt-components-form-renderer-divider-content.component-CjlGcU3B.mjs.map +0 -1
  331. package/fesm2022/elementar-rt-components-form-renderer-image-content.component-0pL2Fk0H.mjs.map +0 -1
  332. package/fesm2022/elementar-rt-components-form-renderer-input-field.component-X2sKvj6J.mjs +0 -33
  333. package/fesm2022/elementar-rt-components-form-renderer-input-field.component-X2sKvj6J.mjs.map +0 -1
  334. package/fesm2022/elementar-rt-components-form-renderer-radio-group-field.component-DWXZAA3F.mjs +0 -38
  335. package/fesm2022/elementar-rt-components-form-renderer-radio-group-field.component-DWXZAA3F.mjs.map +0 -1
  336. package/fesm2022/elementar-rt-components-form-renderer-select-field.component-Cx9DZoD6.mjs +0 -39
  337. package/fesm2022/elementar-rt-components-form-renderer-select-field.component-Cx9DZoD6.mjs.map +0 -1
  338. package/fesm2022/elementar-rt-components-form-renderer-text-content.component-BmFyUG06.mjs.map +0 -1
  339. package/fesm2022/elementar-rt-components-form-renderer-textarea-field.component-D9KmE049.mjs +0 -37
  340. package/fesm2022/elementar-rt-components-form-renderer-textarea-field.component-D9KmE049.mjs.map +0 -1
  341. package/fesm2022/elementar-rt-components-form-renderer-timezone-field.component-BroP_Q4P.mjs +0 -35
  342. package/fesm2022/elementar-rt-components-form-renderer-timezone-field.component-BroP_Q4P.mjs.map +0 -1
  343. package/fesm2022/elementar-rt-components-form-renderer-toggle-field.component-nGbtVi1_.mjs +0 -22
  344. package/fesm2022/elementar-rt-components-form-renderer-toggle-field.component-nGbtVi1_.mjs.map +0 -1
@@ -0,0 +1,84 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, numberAttribute, booleanAttribute, output, signal, computed, forwardRef, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
4
+
5
+ class RatingComponent {
6
+ max = input(5, ...(ngDevMode ? [{ debugName: "max", transform: numberAttribute }] : [{ transform: numberAttribute }]));
7
+ allowHalf = input(false, ...(ngDevMode ? [{ debugName: "allowHalf", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
8
+ disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
9
+ readonly = input(false, ...(ngDevMode ? [{ debugName: "readonly", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
10
+ size = input('md', ...(ngDevMode ? [{ debugName: "size" }] : []));
11
+ color = input('', ...(ngDevMode ? [{ debugName: "color" }] : []));
12
+ ratingChange = output();
13
+ _value = signal(0, ...(ngDevMode ? [{ debugName: "_value" }] : []));
14
+ _hovered = signal(-1, ...(ngDevMode ? [{ debugName: "_hovered" }] : []));
15
+ _stars = computed(() => {
16
+ const max = this.max();
17
+ return Array.from({ length: max }, (_, i) => i + 1);
18
+ }, ...(ngDevMode ? [{ debugName: "_stars" }] : []));
19
+ _displayValue = computed(() => this._hovered() >= 0 ? this._hovered() : this._value(), ...(ngDevMode ? [{ debugName: "_displayValue" }] : []));
20
+ _onChange = (_) => { };
21
+ _onTouched = () => { };
22
+ writeValue(val) { this._value.set(val ?? 0); }
23
+ registerOnChange(fn) { this._onChange = fn; }
24
+ registerOnTouched(fn) { this._onTouched = fn; }
25
+ setDisabledState(isDisabled) { }
26
+ _getStarFill(star) {
27
+ const val = this._displayValue();
28
+ if (val >= star)
29
+ return 'full';
30
+ if (this.allowHalf() && val >= star - 0.5)
31
+ return 'half';
32
+ return 'empty';
33
+ }
34
+ _onMouseMove(star, event) {
35
+ if (this.disabled() || this.readonly())
36
+ return;
37
+ if (this.allowHalf()) {
38
+ const rect = event.currentTarget.getBoundingClientRect();
39
+ const half = event.clientX < rect.left + rect.width / 2;
40
+ this._hovered.set(half ? star - 0.5 : star);
41
+ }
42
+ else {
43
+ this._hovered.set(star);
44
+ }
45
+ }
46
+ _onMouseLeave() { this._hovered.set(-1); }
47
+ _onSelect(star, event) {
48
+ if (this.disabled() || this.readonly())
49
+ return;
50
+ let val = star;
51
+ if (this.allowHalf()) {
52
+ const rect = event.currentTarget.getBoundingClientRect();
53
+ val = event.clientX < rect.left + rect.width / 2 ? star - 0.5 : star;
54
+ }
55
+ this._value.set(val);
56
+ this._onChange(val);
57
+ this._onTouched();
58
+ this.ratingChange.emit(val);
59
+ }
60
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RatingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
61
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.25", type: RatingComponent, isStandalone: true, selector: "emr-rating", inputs: { max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, allowHalf: { classPropertyName: "allowHalf", publicName: "allowHalf", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { ratingChange: "ratingChange" }, host: { properties: { "attr.data-disabled": "disabled() || null", "attr.data-readonly": "readonly() || null" } }, providers: [{
62
+ provide: NG_VALUE_ACCESSOR,
63
+ useExisting: forwardRef(() => RatingComponent),
64
+ multi: true
65
+ }], ngImport: i0, template: "@for (star of _stars(); track star) {\n <button\n type=\"button\"\n class=\"star-btn\"\n [attr.data-fill]=\"_getStarFill(star)\"\n [attr.data-size]=\"size()\"\n [disabled]=\"disabled()\"\n (mousemove)=\"_onMouseMove(star, $event)\"\n (mouseleave)=\"_onMouseLeave()\"\n (click)=\"_onSelect(star, $event)\"\n [attr.aria-label]=\"'Rate ' + star + ' of ' + max()\"\n >\n <svg class=\"star-full\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"/>\n </svg>\n <svg class=\"star-half\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77V2z\"/>\n </svg>\n <svg class=\"star-empty\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" aria-hidden=\"true\">\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"/>\n </svg>\n </button>\n}\n", styles: [":host{--emr-rating-color: var(--color-orange);--emr-rating-empty-color: var(--color-outline-variant);--emr-rating-size: calc(var(--spacing, .25rem) * 6);display:inline-flex;align-items:center;gap:calc(var(--spacing, .25rem) * .5)}:host[data-disabled]{opacity:.5;pointer-events:none}:host[data-readonly]{pointer-events:none}.star-btn{position:relative;display:flex;align-items:center;justify-content:center;background:transparent;border:none;padding:0;cursor:pointer;color:var(--emr-rating-empty-color);transition:transform .1s ease,color .1s ease;width:var(--emr-rating-size);height:var(--emr-rating-size)}.star-btn[data-size=sm]{width:calc(var(--spacing, .25rem) * 4);height:calc(var(--spacing, .25rem) * 4)}.star-btn[data-size=md]{width:calc(var(--spacing, .25rem) * 6);height:calc(var(--spacing, .25rem) * 6)}.star-btn[data-size=lg]{width:calc(var(--spacing, .25rem) * 8);height:calc(var(--spacing, .25rem) * 8)}.star-btn:hover{transform:scale(1.15)}.star-btn[data-fill=full]{color:var(--emr-rating-color)}.star-btn[data-fill=full] .star-full{display:block}.star-btn[data-fill=full] .star-half,.star-btn[data-fill=full] .star-empty{display:none}.star-btn[data-fill=half] .star-half{display:block;color:var(--emr-rating-color)}.star-btn[data-fill=half] .star-full,.star-btn[data-fill=half] .star-empty{display:none}.star-btn[data-fill=empty] .star-empty{display:block}.star-btn[data-fill=empty] .star-full,.star-btn[data-fill=empty] .star-half{display:none}.star-full,.star-half,.star-empty{width:100%;height:100%}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
66
+ }
67
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: RatingComponent, decorators: [{
68
+ type: Component,
69
+ args: [{ selector: 'emr-rating', standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{
70
+ provide: NG_VALUE_ACCESSOR,
71
+ useExisting: forwardRef(() => RatingComponent),
72
+ multi: true
73
+ }], host: {
74
+ '[attr.data-disabled]': 'disabled() || null',
75
+ '[attr.data-readonly]': 'readonly() || null',
76
+ }, template: "@for (star of _stars(); track star) {\n <button\n type=\"button\"\n class=\"star-btn\"\n [attr.data-fill]=\"_getStarFill(star)\"\n [attr.data-size]=\"size()\"\n [disabled]=\"disabled()\"\n (mousemove)=\"_onMouseMove(star, $event)\"\n (mouseleave)=\"_onMouseLeave()\"\n (click)=\"_onSelect(star, $event)\"\n [attr.aria-label]=\"'Rate ' + star + ' of ' + max()\"\n >\n <svg class=\"star-full\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"/>\n </svg>\n <svg class=\"star-half\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77V2z\"/>\n </svg>\n <svg class=\"star-empty\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" aria-hidden=\"true\">\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"/>\n </svg>\n </button>\n}\n", styles: [":host{--emr-rating-color: var(--color-orange);--emr-rating-empty-color: var(--color-outline-variant);--emr-rating-size: calc(var(--spacing, .25rem) * 6);display:inline-flex;align-items:center;gap:calc(var(--spacing, .25rem) * .5)}:host[data-disabled]{opacity:.5;pointer-events:none}:host[data-readonly]{pointer-events:none}.star-btn{position:relative;display:flex;align-items:center;justify-content:center;background:transparent;border:none;padding:0;cursor:pointer;color:var(--emr-rating-empty-color);transition:transform .1s ease,color .1s ease;width:var(--emr-rating-size);height:var(--emr-rating-size)}.star-btn[data-size=sm]{width:calc(var(--spacing, .25rem) * 4);height:calc(var(--spacing, .25rem) * 4)}.star-btn[data-size=md]{width:calc(var(--spacing, .25rem) * 6);height:calc(var(--spacing, .25rem) * 6)}.star-btn[data-size=lg]{width:calc(var(--spacing, .25rem) * 8);height:calc(var(--spacing, .25rem) * 8)}.star-btn:hover{transform:scale(1.15)}.star-btn[data-fill=full]{color:var(--emr-rating-color)}.star-btn[data-fill=full] .star-full{display:block}.star-btn[data-fill=full] .star-half,.star-btn[data-fill=full] .star-empty{display:none}.star-btn[data-fill=half] .star-half{display:block;color:var(--emr-rating-color)}.star-btn[data-fill=half] .star-full,.star-btn[data-fill=half] .star-empty{display:none}.star-btn[data-fill=empty] .star-empty{display:block}.star-btn[data-fill=empty] .star-full,.star-btn[data-fill=empty] .star-half{display:none}.star-full,.star-half,.star-empty{width:100%;height:100%}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] }]
77
+ }], propDecorators: { max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], allowHalf: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowHalf", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], ratingChange: [{ type: i0.Output, args: ["ratingChange"] }] } });
78
+
79
+ /**
80
+ * Generated bundle index. Do not edit.
81
+ */
82
+
83
+ export { RatingComponent };
84
+ //# sourceMappingURL=elementar-rt-components-rating.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"elementar-rt-components-rating.mjs","sources":["../../../projects/components/rating/src/rating/rating.component.ts","../../../projects/components/rating/src/rating/rating.component.html","../../../projects/components/rating/elementar-rt-components-rating.ts"],"sourcesContent":["import {\n Component, input, output, signal, computed,\n ChangeDetectionStrategy, booleanAttribute, numberAttribute, forwardRef\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\n@Component({\n selector: 'emr-rating',\n standalone: true,\n templateUrl: './rating.component.html',\n styleUrl: './rating.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => RatingComponent),\n multi: true\n }],\n host: {\n '[attr.data-disabled]': 'disabled() || null',\n '[attr.data-readonly]': 'readonly() || null',\n }\n})\nexport class RatingComponent implements ControlValueAccessor {\n max = input(5, { transform: numberAttribute });\n allowHalf = input(false, { transform: booleanAttribute });\n disabled = input(false, { transform: booleanAttribute });\n readonly = input(false, { transform: booleanAttribute });\n size = input<'sm' | 'md' | 'lg'>('md');\n color = input<string>('');\n\n ratingChange = output<number>();\n\n protected _value = signal(0);\n protected _hovered = signal(-1);\n\n protected _stars = computed(() => {\n const max = this.max();\n return Array.from({ length: max }, (_, i) => i + 1);\n });\n\n protected _displayValue = computed(() =>\n this._hovered() >= 0 ? this._hovered() : this._value()\n );\n\n private _onChange = (_: number) => {};\n private _onTouched = () => {};\n\n writeValue(val: number): void { this._value.set(val ?? 0); }\n registerOnChange(fn: (_: number) => void): void { this._onChange = fn; }\n registerOnTouched(fn: () => void): void { this._onTouched = fn; }\n setDisabledState(isDisabled: boolean): void {}\n\n protected _getStarFill(star: number): 'full' | 'half' | 'empty' {\n const val = this._displayValue();\n if (val >= star) return 'full';\n if (this.allowHalf() && val >= star - 0.5) return 'half';\n return 'empty';\n }\n\n protected _onMouseMove(star: number, event: MouseEvent): void {\n if (this.disabled() || this.readonly()) return;\n if (this.allowHalf()) {\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect();\n const half = event.clientX < rect.left + rect.width / 2;\n this._hovered.set(half ? star - 0.5 : star);\n } else {\n this._hovered.set(star);\n }\n }\n\n protected _onMouseLeave(): void { this._hovered.set(-1); }\n\n protected _onSelect(star: number, event: MouseEvent): void {\n if (this.disabled() || this.readonly()) return;\n let val = star;\n if (this.allowHalf()) {\n const rect = (event.currentTarget as HTMLElement).getBoundingClientRect();\n val = event.clientX < rect.left + rect.width / 2 ? star - 0.5 : star;\n }\n this._value.set(val);\n this._onChange(val);\n this._onTouched();\n this.ratingChange.emit(val);\n }\n}\n","@for (star of _stars(); track star) {\n <button\n type=\"button\"\n class=\"star-btn\"\n [attr.data-fill]=\"_getStarFill(star)\"\n [attr.data-size]=\"size()\"\n [disabled]=\"disabled()\"\n (mousemove)=\"_onMouseMove(star, $event)\"\n (mouseleave)=\"_onMouseLeave()\"\n (click)=\"_onSelect(star, $event)\"\n [attr.aria-label]=\"'Rate ' + star + ' of ' + max()\"\n >\n <svg class=\"star-full\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"/>\n </svg>\n <svg class=\"star-half\" viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77V2z\"/>\n </svg>\n <svg class=\"star-empty\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"currentColor\" stroke-width=\"1.5\" aria-hidden=\"true\">\n <path d=\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\"/>\n </svg>\n </button>\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAsBa,eAAe,CAAA;AAC1B,IAAA,GAAG,GAAG,KAAK,CAAC,CAAC,uCAAI,SAAS,EAAE,eAAe,EAAA,CAAA,GAAA,CAA5B,EAAE,SAAS,EAAE,eAAe,EAAE,GAAC;AAC9C,IAAA,SAAS,GAAG,KAAK,CAAC,KAAK,6CAAI,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CAA7B,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAC;AACzD,IAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,4CAAI,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CAA7B,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAC;AACxD,IAAA,QAAQ,GAAG,KAAK,CAAC,KAAK,4CAAI,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CAA7B,EAAE,SAAS,EAAE,gBAAgB,EAAE,GAAC;AACxD,IAAA,IAAI,GAAG,KAAK,CAAqB,IAAI,gDAAC;AACtC,IAAA,KAAK,GAAG,KAAK,CAAS,EAAE,iDAAC;IAEzB,YAAY,GAAG,MAAM,EAAU;AAErB,IAAA,MAAM,GAAG,MAAM,CAAC,CAAC,kDAAC;AAClB,IAAA,QAAQ,GAAG,MAAM,CAAC,CAAC,CAAC,oDAAC;AAErB,IAAA,MAAM,GAAG,Q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f,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,eAAe,u8BAVf,CAAC;AACV,gBAAA,OAAO,EAAE,iBAAiB;AAC1B,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,eAAe,CAAC;AAC9C,gBAAA,KAAK,EAAE;AACR,aAAA,CAAC,0BChBJ,sjCAuBA,EAAA,MAAA,EAAA,CAAA,mjDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FDDa,eAAe,EAAA,UAAA,EAAA,CAAA;kBAhB3B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,YAAY,cACV,IAAI,EAAA,eAAA,EAGC,uBAAuB,CAAC,MAAM,aACpC,CAAC;AACV,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAE,UAAU,CAAC,qBAAqB,CAAC;AAC9C,4BAAA,KAAK,EAAE;AACR,yBAAA,CAAC,EAAA,IAAA,EACI;AACJ,wBAAA,sBAAsB,EAAE,oBAAoB;AAC5C,wBAAA,sBAAsB,EAAE,oBAAoB;AAC7C,qBAAA,EAAA,QAAA,EAAA,sjCAAA,EAAA,MAAA,EAAA,CAAA,mjDAAA,CAAA,EAAA;;;AEpBH;;AAEG;;;;"}
@@ -51,14 +51,14 @@ class ResizableContainerComponent {
51
51
  });
52
52
  });
53
53
  }
54
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ResizableContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
55
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.10", type: ResizableContainerComponent, isStandalone: true, selector: "emr-resizable-container", inputs: { minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "emr-resizable-container" }, viewQueries: [{ propertyName: "handlerRef", first: true, predicate: ["handler"], descendants: true, isSignal: true }], exportAs: ["emrResizableContainer"], ngImport: i0, template: "<div class=\"content\">\r\n <ng-content/>\r\n</div>\r\n<button #handler class=\"handler\">\r\n <span class=\"handler-indicator\"></span>\r\n</button>\r\n", styles: [":host{position:relative;display:flex;align-items:stretch;overflow:hidden}:host .content{flex-grow:1;height:100%;margin-inline-end:calc(var(--spacing) * 4)}:host .handler{position:absolute;-webkit-user-select:none;user-select:none;border-inline-start:1px solid var(--color-border);top:0;bottom:0;inset-inline-end:0;cursor:ew-resize;align-items:center;display:flex;justify-content:center;width:calc(var(--spacing) * 5)}:host .handler .handler-indicator{background:var(--color-surface-container-high);display:flex;height:calc(var(--spacing) * 8);width:calc(var(--spacing) * 1.5);border-radius:calc(infinity * 1px)}:host .handler:hover .handler-indicator,:host .handler:active .handler-indicator{background:var(--color-secondary)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
54
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ResizableContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
55
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.25", type: ResizableContainerComponent, isStandalone: true, selector: "emr-resizable-container", inputs: { minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "emr-resizable-container" }, viewQueries: [{ propertyName: "handlerRef", first: true, predicate: ["handler"], descendants: true, isSignal: true }], exportAs: ["emrResizableContainer"], ngImport: i0, template: "<div class=\"content\">\n <ng-content/>\n</div>\n<button #handler class=\"handler\">\n <span class=\"handler-indicator\"></span>\n</button>\n", styles: [":host{position:relative;display:flex;align-items:stretch;overflow:hidden}:host .content{flex-grow:1;height:100%;margin-inline-end:calc(var(--spacing) * 4)}:host .handler{position:absolute;-webkit-user-select:none;user-select:none;border-inline-start:1px solid var(--color-border);top:0;bottom:0;inset-inline-end:0;cursor:ew-resize;align-items:center;display:flex;justify-content:center;width:calc(var(--spacing) * 5)}:host .handler .handler-indicator{background:var(--color-surface-container-high);display:flex;height:calc(var(--spacing) * 8);width:calc(var(--spacing) * 1.5);border-radius:calc(infinity * 1px)}:host .handler:hover .handler-indicator,:host .handler:active .handler-indicator{background:var(--color-secondary)}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
56
56
  }
57
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ResizableContainerComponent, decorators: [{
57
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ResizableContainerComponent, decorators: [{
58
58
  type: Component,
59
59
  args: [{ selector: 'emr-resizable-container', exportAs: 'emrResizableContainer', changeDetection: ChangeDetectionStrategy.OnPush, host: {
60
60
  'class': 'emr-resizable-container'
61
- }, template: "<div class=\"content\">\r\n <ng-content/>\r\n</div>\r\n<button #handler class=\"handler\">\r\n <span class=\"handler-indicator\"></span>\r\n</button>\r\n", styles: [":host{position:relative;display:flex;align-items:stretch;overflow:hidden}:host .content{flex-grow:1;height:100%;margin-inline-end:calc(var(--spacing) * 4)}:host .handler{position:absolute;-webkit-user-select:none;user-select:none;border-inline-start:1px solid var(--color-border);top:0;bottom:0;inset-inline-end:0;cursor:ew-resize;align-items:center;display:flex;justify-content:center;width:calc(var(--spacing) * 5)}:host .handler .handler-indicator{background:var(--color-surface-container-high);display:flex;height:calc(var(--spacing) * 8);width:calc(var(--spacing) * 1.5);border-radius:calc(infinity * 1px)}:host .handler:hover .handler-indicator,:host .handler:active .handler-indicator{background:var(--color-secondary)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
61
+ }, template: "<div class=\"content\">\n <ng-content/>\n</div>\n<button #handler class=\"handler\">\n <span class=\"handler-indicator\"></span>\n</button>\n", styles: [":host{position:relative;display:flex;align-items:stretch;overflow:hidden}:host .content{flex-grow:1;height:100%;margin-inline-end:calc(var(--spacing) * 4)}:host .handler{position:absolute;-webkit-user-select:none;user-select:none;border-inline-start:1px solid var(--color-border);top:0;bottom:0;inset-inline-end:0;cursor:ew-resize;align-items:center;display:flex;justify-content:center;width:calc(var(--spacing) * 5)}:host .handler .handler-indicator{background:var(--color-surface-container-high);display:flex;height:calc(var(--spacing) * 8);width:calc(var(--spacing) * 1.5);border-radius:calc(infinity * 1px)}:host .handler:hover .handler-indicator,:host .handler:active .handler-indicator{background:var(--color-secondary)}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] }]
62
62
  }], propDecorators: { handlerRef: [{ type: i0.ViewChild, args: ['handler', { isSignal: true }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }] } });
63
63
 
64
64
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"elementar-rt-components-resizable-container.mjs","sources":["../../../projects/components/resizable-container/src/resizable-container/resizable-container.component.ts","../../../projects/components/resizable-container/src/resizable-container/resizable-container.component.html","../../../projects/components/resizable-container/elementar-rt-components-resizable-container.ts"],"sourcesContent":["import {\r\n ChangeDetectionStrategy,\r\n ChangeDetectorRef,\r\n Component,\r\n DestroyRef,\r\n ElementRef,\r\n inject, input,\r\n NgZone,\r\n numberAttribute,\r\n OnInit,\r\n Renderer2,\r\n viewChild,\r\n DOCUMENT\r\n} from '@angular/core';\r\nimport { fromEvent, throttleTime } from 'rxjs';\r\n\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\n\r\n@Component({\r\n selector: 'emr-resizable-container',\r\n exportAs: 'emrResizableContainer',\r\n templateUrl: './resizable-container.component.html',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n styleUrl: './resizable-container.component.scss',\r\n host: {\r\n 'class': 'emr-resizable-container'\r\n }\r\n})\r\nexport class ResizableContainerComponent implements OnInit {\r\n private _renderer = inject(Renderer2);\r\n private _elementRef = inject(ElementRef);\r\n private _cdr = inject(ChangeDetectorRef);\r\n private _ngZone = inject(NgZone);\r\n private _destroyRef = inject(DestroyRef);\r\n private _document = inject(DOCUMENT);\r\n private _resizing = false;\r\n private _maxWidth: number;\r\n private _clientX: number;\r\n\r\n readonly handlerRef = viewChild.required<ElementRef>('handler');\r\n\r\n minWidth = input(0, {\r\n transform: numberAttribute\r\n });\r\n\r\n ngOnInit() {\r\n this._ngZone.runOutsideAngular(() => {\r\n fromEvent<MouseEvent>(this.handlerRef().nativeElement, 'mousedown')\r\n .pipe(takeUntilDestroyed(this._destroyRef))\r\n .subscribe((event: MouseEvent) => {\r\n this._resizing = true;\r\n\r\n if (!this._maxWidth) {\r\n this._maxWidth = this._elementRef.nativeElement.getBoundingClientRect().width;\r\n this._clientX = event.clientX;\r\n }\r\n\r\n this._cdr.detectChanges();\r\n })\r\n ;\r\n fromEvent<MouseEvent>(this._document, 'mousemove')\r\n .pipe(\r\n throttleTime(5),\r\n takeUntilDestroyed(this._destroyRef)\r\n )\r\n .subscribe((event: MouseEvent) => {\r\n if (this._resizing) {\r\n let width = this._maxWidth - (this._clientX - event.clientX);\r\n\r\n if (width <= this.minWidth()) {\r\n width = this.minWidth();\r\n } else if (width >= this._maxWidth) {\r\n width = this._maxWidth;\r\n }\r\n\r\n this._renderer.setStyle(this._elementRef.nativeElement, 'width', width + 'px');\r\n }\r\n })\r\n ;\r\n fromEvent(this._document, 'mouseup')\r\n .pipe(takeUntilDestroyed(this._destroyRef))\r\n .subscribe(event => {\r\n this._resizing = false;\r\n this._cdr.detectChanges();\r\n })\r\n ;\r\n });\r\n }\r\n}\r\n","<div class=\"content\">\r\n <ng-content/>\r\n</div>\r\n<button #handler class=\"handler\">\r\n <span class=\"handler-indicator\"></span>\r\n</button>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './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AA,MAAA,EAAA,CAAA,8xBAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FDsBa,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAVvC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,yBAAyB,YACzB,uBAAuB,EAAA,eAAA,EAEhB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EAEzC;AACJ,wBAAA,OAAO,EAAE;AACV,qBAAA,EAAA,QAAA,EAAA,6JAAA,EAAA,MAAA,EAAA,CAAA,8xBAAA,CAAA,EAAA;wEAaoD,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvChE;;AAEG;;;;"}
1
+ {"version":3,"file":"elementar-rt-components-resizable-container.mjs","sources":["../../../projects/components/resizable-container/src/resizable-container/resizable-container.component.ts","../../../projects/components/resizable-container/src/resizable-container/resizable-container.component.html","../../../projects/components/resizable-container/elementar-rt-components-resizable-container.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n ElementRef,\n inject, input,\n NgZone,\n numberAttribute,\n OnInit,\n Renderer2,\n viewChild,\n DOCUMENT\n} from '@angular/core';\nimport { fromEvent, throttleTime } from 'rxjs';\n\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\n\n@Component({\n selector: 'emr-resizable-container',\n exportAs: 'emrResizableContainer',\n templateUrl: './resizable-container.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n styleUrl: './resizable-container.component.scss',\n host: {\n 'class': 'emr-resizable-container'\n }\n})\nexport class ResizableContainerComponent implements OnInit {\n private _renderer = inject(Renderer2);\n private _elementRef = inject(ElementRef);\n private _cdr = inject(ChangeDetectorRef);\n private _ngZone = inject(NgZone);\n private _destroyRef = inject(DestroyRef);\n private _document = inject(DOCUMENT);\n private _resizing = false;\n private _maxWidth: number;\n private _clientX: number;\n\n readonly handlerRef = viewChild.required<ElementRef>('handler');\n\n minWidth = input(0, {\n transform: numberAttribute\n });\n\n ngOnInit() {\n this._ngZone.runOutsideAngular(() => {\n fromEvent<MouseEvent>(this.handlerRef().nativeElement, 'mousedown')\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe((event: MouseEvent) => {\n this._resizing = true;\n\n if (!this._maxWidth) {\n this._maxWidth = this._elementRef.nativeElement.getBoundingClientRect().width;\n this._clientX = event.clientX;\n }\n\n this._cdr.detectChanges();\n })\n ;\n fromEvent<MouseEvent>(this._document, 'mousemove')\n .pipe(\n throttleTime(5),\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe((event: MouseEvent) => {\n if (this._resizing) {\n let width = this._maxWidth - (this._clientX - event.clientX);\n\n if (width <= this.minWidth()) {\n width = this.minWidth();\n } else if (width >= this._maxWidth) {\n width = this._maxWidth;\n }\n\n this._renderer.setStyle(this._elementRef.nativeElement, 'width', width + 'px');\n }\n })\n ;\n fromEvent(this._document, 'mouseup')\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe(event => {\n this._resizing = false;\n this._cdr.detectChanges();\n })\n ;\n });\n }\n}\n","<div class=\"content\">\n <ng-content/>\n</div>\n<button #handler class=\"handler\">\n <span class=\"handler-indicator\"></span>\n</button>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MA4Ba,2BAA2B,CAAA;AAC9B,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC7B,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,IAAA,IAAI,GAAG,MAAM,CAAC,iBAAiB,C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A,EAAA,yBAAyB,YACzB,uBAAuB,EAAA,eAAA,EAEhB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EAEzC;AACJ,wBAAA,OAAO,EAAE;AACV,qBAAA,EAAA,QAAA,EAAA,iJAAA,EAAA,MAAA,EAAA,CAAA,6xBAAA,CAAA,EAAA;wEAaoD,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEvChE;;AAEG;;;;"}
@@ -6,17 +6,17 @@ class ScreenLoaderComponent {
6
6
  opened = input(false, ...(ngDevMode ? [{ debugName: "opened", transform: booleanAttribute }] : [{
7
7
  transform: booleanAttribute
8
8
  }]));
9
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ScreenLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.10", type: ScreenLoaderComponent, isStandalone: true, selector: "emr-screen-loader", inputs: { opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-opened": "opened()" }, classAttribute: "emr-screen-loader" }, exportAs: ["emrScreenLoader"], ngImport: i0, template: "<p class=\"message\"><ng-content/></p>\r\n<div class=\"progress-bar\">\r\n <mat-progress-bar mode=\"indeterminate\"/>\r\n</div>\r\n", styles: [":host{--emr-screen-loader-bg: var(--color-background);opacity:0;position:fixed;inset:0;z-index:-9999;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--emr-screen-loader-bg)}:host.is-opened{z-index:9999;opacity:1}:host .message{max-width:600px;line-height:var(--leading-snug);text-align:center}:host .progress-bar{width:calc(var(--spacing) * 64);margin-top:calc(var(--spacing, .25rem) * 4)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
9
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScreenLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
10
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.25", type: ScreenLoaderComponent, isStandalone: true, selector: "emr-screen-loader", inputs: { opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.is-opened": "opened()" }, classAttribute: "emr-screen-loader" }, exportAs: ["emrScreenLoader"], ngImport: i0, template: "<p class=\"message\"><ng-content/></p>\n<div class=\"progress-bar\">\n <mat-progress-bar mode=\"indeterminate\"/>\n</div>\n", styles: [":host{--emr-screen-loader-bg: var(--color-background);opacity:0;position:fixed;inset:0;z-index:-9999;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--emr-screen-loader-bg)}:host.is-opened{z-index:9999;opacity:1}:host .message{max-width:600px;line-height:var(--leading-snug);text-align:center}:host .progress-bar{width:calc(var(--spacing) * 64);margin-top:calc(var(--spacing, .25rem) * 4)}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "component", type: MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }] });
11
11
  }
12
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ScreenLoaderComponent, decorators: [{
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScreenLoaderComponent, decorators: [{
13
13
  type: Component,
14
14
  args: [{ selector: 'emr-screen-loader', exportAs: 'emrScreenLoader', imports: [
15
15
  MatProgressBar
16
16
  ], host: {
17
17
  'class': 'emr-screen-loader',
18
18
  '[class.is-opened]': 'opened()'
19
- }, template: "<p class=\"message\"><ng-content/></p>\r\n<div class=\"progress-bar\">\r\n <mat-progress-bar mode=\"indeterminate\"/>\r\n</div>\r\n", styles: [":host{--emr-screen-loader-bg: var(--color-background);opacity:0;position:fixed;inset:0;z-index:-9999;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--emr-screen-loader-bg)}:host.is-opened{z-index:9999;opacity:1}:host .message{max-width:600px;line-height:var(--leading-snug);text-align:center}:host .progress-bar{width:calc(var(--spacing) * 64);margin-top:calc(var(--spacing, .25rem) * 4)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
19
+ }, template: "<p class=\"message\"><ng-content/></p>\n<div class=\"progress-bar\">\n <mat-progress-bar mode=\"indeterminate\"/>\n</div>\n", styles: [":host{--emr-screen-loader-bg: var(--color-background);opacity:0;position:fixed;inset:0;z-index:-9999;display:flex;align-items:center;justify-content:center;flex-direction:column;background:var(--emr-screen-loader-bg)}:host.is-opened{z-index:9999;opacity:1}:host .message{max-width:600px;line-height:var(--leading-snug);text-align:center}:host .progress-bar{width:calc(var(--spacing) * 64);margin-top:calc(var(--spacing, .25rem) * 4)}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] }]
20
20
  }], propDecorators: { opened: [{ type: i0.Input, args: [{ isSignal: true, alias: "opened", required: false }] }] } });
21
21
 
22
22
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"elementar-rt-components-screen-loader.mjs","sources":["../../../projects/components/screen-loader/src/screen-loader/screen-loader.component.ts","../../../projects/components/screen-loader/src/screen-loader/screen-loader.component.html","../../../projects/components/screen-loader/elementar-rt-components-screen-loader.ts"],"sourcesContent":["import { booleanAttribute, Component, input } from '@angular/core';\r\nimport { MatProgressBar } from '@angular/material/progress-bar';\r\n\r\n@Component({\r\n selector: 'emr-screen-loader',\r\n exportAs: 'emrScreenLoader',\r\n imports: [\r\n MatProgressBar\r\n ],\r\n templateUrl: './screen-loader.component.html',\r\n styleUrl: './screen-loader.component.scss',\r\n host: {\r\n 'class': 'emr-screen-loader',\r\n '[class.is-opened]': 'opened()'\r\n }\r\n})\r\nexport class ScreenLoaderComponent {\r\n opened = input(false, {\r\n transform: booleanAttribute\r\n });\r\n}\r\n","<p class=\"message\"><ng-content/></p>\r\n<div class=\"progress-bar\">\r\n <mat-progress-bar mode=\"indeterminate\"/>\r\n</div>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAgBa,qBAAqB,CAAA;IAChC,MAAM,GAAG,KAAK,CAAC,KAAK,0CAClB,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CADP;AACpB,YAAA,SAAS,EAAE;AACZ,SAAA,CAAA,CAAA,CAAC;wGAHS,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAArB,qBAAqB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,QAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,EAAA,cAAA,EAAA,mBAAA,EAAA,EAAA,QAAA,EAAA,CAAA,iBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChBlC,sIAIA,EAAA,MAAA,EAAA,CAAA,yfAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDGI,cAAc,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,aAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,cAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,CAAA;;4FASL,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAbjC,SAAS;+BACE,mBAAmB,EAAA,QAAA,EACnB,iBAAiB,EAAA,OAAA,EAClB;wBACP;qBACD,EAAA,IAAA,EAGK;AACJ,wBAAA,OAAO,EAAE,mBAAmB;AAC5B,wBAAA,mBAAmB,EAAE;AACtB,qBAAA,EAAA,QAAA,EAAA,sIAAA,EAAA,MAAA,EAAA,CAAA,yfAAA,CAAA,EAAA;;;AEdH;;AAEG;;;;"}
1
+ {"version":3,"file":"elementar-rt-components-screen-loader.mjs","sources":["../../../projects/components/screen-loader/src/screen-loader/screen-loader.component.ts","../../../projects/components/screen-loader/src/screen-loader/screen-loader.component.html","../../../projects/components/screen-loader/elementar-rt-components-screen-loader.ts"],"sourcesContent":["import { booleanAttribute, Component, input } from '@angular/core';\nimport { MatProgressBar } from '@angular/material/progress-bar';\n\n@Component({\n selector: 'emr-screen-loader',\n exportAs: 'emrScreenLoader',\n imports: [\n MatProgressBar\n ],\n templateUrl: './screen-loader.component.html',\n styleUrl: './screen-loader.component.scss',\n host: {\n 'class': 'emr-screen-loader',\n '[class.is-opened]': 'opened()'\n }\n})\nexport class ScreenLoaderComponent {\n opened = input(false, {\n transform: booleanAttribute\n });\n}\n","<p class=\"message\"><ng-content/></p>\n<div class=\"progress-bar\">\n <mat-progress-bar mode=\"indeterminate\"/>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAgBa,qBAAqB,CAAA;IAChC,MAAM,GAAG,KAAK,CAAC,KAAK,0CAClB,SAAS,EAAE,gBA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16 @@ class ScrollSpyOnComponent {
24
24
  event.stopPropagation();
25
25
  this._parent.scrollTo(this.targetId());
26
26
  }
27
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ScrollSpyOnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.10", type: ScrollSpyOnComponent, isStandalone: true, selector: "emr-scroll-spy-on,[emr-scroll-spy-on]", inputs: { targetId: { classPropertyName: "targetId", publicName: "targetId", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "click": "_handleClick($event)" }, properties: { "class.is-active": "isActive" }, classAttribute: "emr-scroll-spy-on" }, exportAs: ["emrScrollSpyOn"], ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;width:max-content;border-radius:calc(infinity * 1px);padding:calc(var(--spacing) * 2) calc(var(--spacing) * 4);color:var(--color-neutral-800);font-size:.875rem;margin-top:calc(var(--spacing) * 1.5);border:1px solid transparent}:host:hover{background:var(var(--color-neutral-200));color:var(--color-neutral-900)}:host.is-active{border-color:var(--sys-outline)}:host-context(html.dark){color:var(--color-neutral-300)}:host-context(html.dark):hover{background:var(var(--color-neutral-600))}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
27
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollSpyOnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.25", type: ScrollSpyOnComponent, isStandalone: true, selector: "emr-scroll-spy-on,[emr-scroll-spy-on]", inputs: { targetId: { classPropertyName: "targetId", publicName: "targetId", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "click": "_handleClick($event)" }, properties: { "class.is-active": "isActive" }, classAttribute: "emr-scroll-spy-on" }, exportAs: ["emrScrollSpyOn"], ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:block;width:max-content;border-radius:calc(infinity * 1px);padding:calc(var(--spacing) * 2) calc(var(--spacing) * 4);color:var(--color-neutral-800);font-size:.875rem;margin-top:calc(var(--spacing) * 1.5);border:1px solid transparent}:host:hover{background:var(var(--color-neutral-200));color:var(--color-neutral-900)}:host.is-active{border-color:var(--sys-outline)}:host-context(html.dark){color:var(--color-neutral-300)}:host-context(html.dark):hover{background:var(var(--color-neutral-600))}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] });
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ScrollSpyOnComponent, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollSpyOnComponent, decorators: [{
31
31
  type: Component,
32
32
  args: [{ selector: 'emr-scroll-spy-on,[emr-scroll-spy-on]', exportAs: 'emrScrollSpyOn', host: {
33
33
  'class': 'emr-scroll-spy-on',
34
34
  '[class.is-active]': 'isActive',
35
35
  '(click)': '_handleClick($event)'
36
- }, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;width:max-content;border-radius:calc(infinity * 1px);padding:calc(var(--spacing) * 2) calc(var(--spacing) * 4);color:var(--color-neutral-800);font-size:.875rem;margin-top:calc(var(--spacing) * 1.5);border:1px solid transparent}:host:hover{background:var(var(--color-neutral-200));color:var(--color-neutral-900)}:host.is-active{border-color:var(--sys-outline)}:host-context(html.dark){color:var(--color-neutral-300)}:host-context(html.dark):hover{background:var(var(--color-neutral-600))}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
36
+ }, template: "<ng-content></ng-content>\n", styles: [":host{display:block;width:max-content;border-radius:calc(infinity * 1px);padding:calc(var(--spacing) * 2) calc(var(--spacing) * 4);color:var(--color-neutral-800);font-size:.875rem;margin-top:calc(var(--spacing) * 1.5);border:1px solid transparent}:host:hover{background:var(var(--color-neutral-200));color:var(--color-neutral-900)}:host.is-active{border-color:var(--sys-outline)}:host-context(html.dark){color:var(--color-neutral-300)}:host-context(html.dark):hover{background:var(var(--color-neutral-600))}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] }]
37
37
  }], propDecorators: { targetId: [{ type: i0.Input, args: [{ isSignal: true, alias: "targetId", required: true }] }] } });
38
38
 
39
39
  class ScrollSpyNavComponent {
@@ -111,15 +111,15 @@ class ScrollSpyNavComponent {
111
111
  ((left > 0 && left < innerWidth) || (right > 0 && right < innerWidth))
112
112
  : top >= 0 && left >= 0 && bottom <= innerHeight && right <= innerWidth;
113
113
  }
114
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ScrollSpyNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
115
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.10", type: ScrollSpyNavComponent, isStandalone: true, selector: "emr-scroll-spy-nav,[emr-scroll-spy-nav]", host: { classAttribute: "emr-scroll-spy-nav" }, providers: [
114
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollSpyNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
115
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "20.3.25", type: ScrollSpyNavComponent, isStandalone: true, selector: "emr-scroll-spy-nav,[emr-scroll-spy-nav]", host: { classAttribute: "emr-scroll-spy-nav" }, providers: [
116
116
  {
117
117
  provide: SCROLL_SPY_NAV,
118
118
  useExisting: ScrollSpyNavComponent
119
119
  }
120
- ], queries: [{ propertyName: "_items", predicate: ScrollSpyOnComponent, isSignal: true }], exportAs: ["emrScrollSpyNav"], ngImport: i0, template: "<ng-content/>\r\n", styles: [":host{width:200px;border-inline-start:1px solid var(--color-border);padding-inline-start:calc(var(--spacing) * 6)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
120
+ ], queries: [{ propertyName: "_items", predicate: ScrollSpyOnComponent, isSignal: true }], exportAs: ["emrScrollSpyNav"], ngImport: i0, template: "<ng-content/>\n", styles: [":host{width:200px;border-inline-start:1px solid var(--color-border);padding-inline-start:calc(var(--spacing) * 6)}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] });
121
121
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ScrollSpyNavComponent, decorators: [{
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollSpyNavComponent, decorators: [{
123
123
  type: Component,
124
124
  args: [{ selector: 'emr-scroll-spy-nav,[emr-scroll-spy-nav]', exportAs: 'emrScrollSpyNav', providers: [
125
125
  {
@@ -128,25 +128,25 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImpo
128
128
  }
129
129
  ], host: {
130
130
  'class': 'emr-scroll-spy-nav'
131
- }, template: "<ng-content/>\r\n", styles: [":host{width:200px;border-inline-start:1px solid var(--color-border);padding-inline-start:calc(var(--spacing) * 6)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
131
+ }, template: "<ng-content/>\n", styles: [":host{width:200px;border-inline-start:1px solid var(--color-border);padding-inline-start:calc(var(--spacing) * 6)}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] }]
132
132
  }], propDecorators: { _items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => ScrollSpyOnComponent), { isSignal: true }] }] } });
133
133
 
134
134
  class ScrollSpyTitleComponent {
135
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ScrollSpyTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
136
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.10", type: ScrollSpyTitleComponent, isStandalone: true, selector: "emr-scroll-spy-title", host: { classAttribute: "emr-scroll-spy-title" }, exportAs: ["emrScrollSpyTitle"], ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;font-weight:500;font-size:1.25rem;margin-bottom:calc(var(--spacing) * 4)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
135
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollSpyTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
136
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.25", type: ScrollSpyTitleComponent, isStandalone: true, selector: "emr-scroll-spy-title", host: { classAttribute: "emr-scroll-spy-title" }, exportAs: ["emrScrollSpyTitle"], ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:block;font-weight:500;font-size:1.25rem;margin-bottom:calc(var(--spacing) * 4)}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] });
137
137
  }
138
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ScrollSpyTitleComponent, decorators: [{
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollSpyTitleComponent, decorators: [{
139
139
  type: Component,
140
140
  args: [{ selector: 'emr-scroll-spy-title', exportAs: 'emrScrollSpyTitle', host: {
141
141
  'class': 'emr-scroll-spy-title'
142
- }, template: "<ng-content></ng-content>\r\n", styles: [":host{display:block;font-weight:500;font-size:1.25rem;margin-bottom:calc(var(--spacing) * 4)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
142
+ }, template: "<ng-content></ng-content>\n", styles: [":host{display:block;font-weight:500;font-size:1.25rem;margin-bottom:calc(var(--spacing) * 4)}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] }]
143
143
  }] });
144
144
 
145
145
  class ScrollSpyContainerDirective {
146
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ScrollSpyContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
147
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: ScrollSpyContainerDirective, isStandalone: true, selector: "[emrScrollSpyContainer]", host: { classAttribute: "emr-scroll-spy-container" }, exportAs: ["emrScrollSpyContainer"], ngImport: i0 });
146
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollSpyContainerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
147
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: ScrollSpyContainerDirective, isStandalone: true, selector: "[emrScrollSpyContainer]", host: { classAttribute: "emr-scroll-spy-container" }, exportAs: ["emrScrollSpyContainer"], ngImport: i0 });
148
148
  }
149
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: ScrollSpyContainerDirective, decorators: [{
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: ScrollSpyContainerDirective, decorators: [{
150
150
  type: Directive,
151
151
  args: [{
152
152
  selector: '[emrScrollSpyContainer]',
@@ -1 +1 @@
1
- {"version":3,"file":"elementar-rt-components-scroll-spy.mjs","sources":["../../../projects/components/scroll-spy/src/types.ts","../../../projects/components/scroll-spy/src/scroll-spy-on/scroll-spy-on.component.ts","../../../projects/components/scroll-spy/src/scroll-spy-on/scroll-spy-on.component.html","../../../projects/components/scroll-spy/src/scroll-spy-nav/scroll-spy-nav.component.ts","../../../projects/components/scroll-spy/src/scroll-spy-nav/scroll-spy-nav.component.html","../../../projects/components/scroll-spy/src/scroll-spy-title/scroll-spy-title.component.ts","../../../projects/components/scroll-spy/src/scroll-spy-title/scroll-spy-title.component.html","../../../projects/components/scroll-spy/src/scroll-spy-container.directive.ts","../../../projects/components/scroll-spy/elementar-rt-components-scroll-spy.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nexport const SCROLL_SPY_NAV = new InjectionToken('SPY_NAV');\r\n","import { Component, ElementRef, inject, input, OnInit, Renderer2, DOCUMENT } from '@angular/core';\r\n\r\nimport { ScrollSpyNavComponent } from '../scroll-spy-nav/scroll-spy-nav.component';\r\nimport { SCROLL_SPY_NAV } from '../types';\r\n\r\n@Component({\r\n selector: 'emr-scroll-spy-on,[emr-scroll-spy-on]',\r\n exportAs: 'emrScrollSpyOn',\r\n templateUrl: './scroll-spy-on.component.html',\r\n styleUrl: './scroll-spy-on.component.scss',\r\n host: {\r\n 'class': 'emr-scroll-spy-on',\r\n '[class.is-active]': 'isActive',\r\n '(click)': '_handleClick($event)'\r\n }\r\n})\r\nexport class ScrollSpyOnComponent implements OnInit {\r\n private _parent = inject<ScrollSpyNavComponent>(SCROLL_SPY_NAV);\r\n private _elementRef = inject(ElementRef);\r\n private _renderer = inject(Renderer2);\r\n private _document = inject(DOCUMENT);\r\n\r\n targetId = input.required<string>();\r\n\r\n ngOnInit() {\r\n const fullUrl = this._document.location.origin + this._document.location.pathname;\r\n this._renderer.setAttribute(this._elementRef.nativeElement, 'href', fullUrl + '#' + this.targetId());\r\n }\r\n\r\n protected get isActive() {\r\n return this.targetId() === this._parent.activeId;\r\n }\r\n\r\n protected _handleClick(event: MouseEvent) {\r\n event.preventDefault();\r\n event.stopPropagation();\r\n this._parent.scrollTo(this.targetId());\r\n }\r\n}\r\n","<ng-content></ng-content>\r\n","import {\r\n AfterContentInit,\r\n ChangeDetectorRef,\r\n Component,\r\n DestroyRef,\r\n inject,\r\n NgZone,\r\n PLATFORM_ID,\r\n contentChildren,\r\n DOCUMENT\r\n} from '@angular/core';\r\nimport { isPlatformServer } from '@angular/common';\r\nimport { debounceTime, fromEvent } from 'rxjs';\r\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\r\nimport { SCROLL_SPY_NAV } from '../types';\r\nimport { ScrollSpyOnComponent } from '../scroll-spy-on/scroll-spy-on.component';\r\n\r\n@Component({\r\n selector: 'emr-scroll-spy-nav,[emr-scroll-spy-nav]',\r\n exportAs: 'emrScrollSpyNav',\r\n templateUrl: './scroll-spy-nav.component.html',\r\n styleUrl: './scroll-spy-nav.component.scss',\r\n providers: [\r\n {\r\n provide: SCROLL_SPY_NAV,\r\n useExisting: ScrollSpyNavComponent\r\n }\r\n ],\r\n host: {\r\n 'class': 'emr-scroll-spy-nav'\r\n }\r\n})\r\nexport class ScrollSpyNavComponent implements AfterContentInit {\r\n private _document = inject(DOCUMENT);\r\n private _cdr = inject(ChangeDetectorRef);\r\n private _platformId = inject(PLATFORM_ID);\r\n private _zone = inject(NgZone);\r\n private _threshold = 10;\r\n private _destroyRef = inject(DestroyRef);\r\n\r\n readonly _items = contentChildren(ScrollSpyOnComponent);\r\n\r\n protected _activeId: string;\r\n private _elementToScroll: HTMLElement;\r\n\r\n ngAfterContentInit() {\r\n if (isPlatformServer(this._platformId)) {\r\n return;\r\n }\r\n\r\n this._elementToScroll = this._document.querySelector('.emr-layout-body:has(:not(.emr-layout-body))') as HTMLElement;\r\n\r\n if (this._elementToScroll) {\r\n this._zone.runOutsideAngular(() => {\r\n fromEvent(this._elementToScroll, 'scroll')\r\n .pipe(\r\n debounceTime(35),\r\n takeUntilDestroyed(this._destroyRef)\r\n )\r\n .subscribe(() => {\r\n this._findActiveItem();\r\n })\r\n ;\r\n });\r\n // start finding active item after layout body will be scrolled to top\r\n setTimeout(() => {\r\n this._findActiveItem();\r\n }, 10);\r\n }\r\n }\r\n\r\n get activeId(): string {\r\n return this._activeId;\r\n }\r\n\r\n scrollTo(targetId: string) {\r\n if (!this._elementToScroll) {\r\n return;\r\n }\r\n\r\n this._activeId = targetId;\r\n const targetElement = this._document.querySelector('#' + targetId) as HTMLElement;\r\n const offsetTopFix = parseInt(getComputedStyle(targetElement).marginTop) +\r\n parseInt(getComputedStyle(targetElement).height) + this._threshold\r\n ;\r\n this._cdr.detectChanges();\r\n this._elementToScroll.scroll({\r\n top: targetElement.offsetTop - offsetTopFix,\r\n left: 0,\r\n behavior: 'smooth'\r\n });\r\n }\r\n\r\n private _findActiveItem() {\r\n for (let item of this._items()) {\r\n const targetElement = this._document.querySelector('#' + item.targetId()) as HTMLElement;\r\n\r\n if (targetElement) {\r\n if (this._elementIsVisibleInViewport(this._elementToScroll, targetElement)) {\r\n if (this._activeId === item.targetId()) {\r\n return;\r\n }\r\n\r\n this._zone.run(() => {\r\n this._activeId = item.targetId();\r\n this._cdr.detectChanges();\r\n });\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n\r\n private _elementIsVisibleInViewport(container: HTMLElement, targetEl: HTMLElement, partiallyVisible = false) {\r\n const { top, left, bottom, right } = targetEl.getBoundingClientRect();\r\n const containerRect = container.getBoundingClientRect();\r\n const innerWidth = containerRect.width;\r\n const innerHeight = containerRect.height;\r\n\r\n return partiallyVisible\r\n ? ((top > 0 && top < innerHeight) ||\r\n (bottom > 0 && bottom < innerHeight)) &&\r\n ((left > 0 && left < innerWidth) || (right > 0 && right < innerWidth))\r\n : top >= 0 && left >= 0 && bottom <= innerHeight && right <= innerWidth\r\n ;\r\n }\r\n}\r\n","<ng-content/>\r\n","import { Component } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'emr-scroll-spy-title',\r\n exportAs: 'emrScrollSpyTitle',\r\n templateUrl: './scroll-spy-title.component.html',\r\n styleUrl: './scroll-spy-title.component.scss',\r\n host: {\r\n 'class': 'emr-scroll-spy-title'\r\n }\r\n})\r\nexport class ScrollSpyTitleComponent {\r\n\r\n}\r\n","<ng-content></ng-content>\r\n","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrScrollSpyContainer]',\r\n exportAs: 'emrScrollSpyContainer',\r\n host: {\r\n 'class': 'emr-scroll-spy-container'\r\n }\r\n})\r\nexport class ScrollSpyContainerDirective {\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAEa,cAAc,GAAG,IAAI,cAAc,CAAC,SAAS;;MCc7C,oBAAoB,CAAA;AACvB,IAAA,OAAO,GAAG,MAAM,CAAwB,cAAc,CAAC;AACvD,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC7B,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;AAEpC,IAAA,QAAQ,GAAG,KAAK,CAAC,QAAQ,mDAAU;IAEnC,QAAQ,GAAA;AACN,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ;QACjF,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,GAAG,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IACtG;AAEA,IAAA,IAAc,QAAQ,GAAA;QACpB,OAAO,IAAI,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,OAAO,CAAC,QAAQ;IAClD;AAEU,IAAA,YAAY,CAAC,KAAiB,EAAA;QACtC,KAAK,CAAC,cAAc,EAAE;QACtB,KAAK,CAAC,eAAe,EAAE;QACvB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;IACxC;wGArBW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EA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,CAAA,qKAAA,CAAA,EAAA;;;MEAU,2BAA2B,CAAA;wGAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,0BAAA,EAAA,EAAA,QAAA,EAAA,CAAA,uBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,IAAI,EAAE;AACJ,wBAAA,OAAO,EAAE;AACV;AACF,iBAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"elementar-rt-components-scroll-spy.mjs","sources":["../../../projects/components/scroll-spy/src/types.ts","../../../projects/components/scroll-spy/src/scroll-spy-on/scroll-spy-on.component.ts","../../../projects/components/scroll-spy/src/scroll-spy-on/scroll-spy-on.component.html","../../../projects/components/scroll-spy/src/scroll-spy-nav/scroll-spy-nav.component.ts","../../../projects/components/scroll-spy/src/scroll-spy-nav/scroll-spy-nav.component.html","../../../projects/components/scroll-spy/src/scroll-spy-title/scroll-spy-title.component.ts","../../../projects/components/scroll-spy/src/scroll-spy-title/scroll-spy-title.component.html","../../../projects/components/scroll-spy/src/scroll-spy-container.directive.ts","../../../projects/components/scroll-spy/elementar-rt-components-scroll-spy.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const SCROLL_SPY_NAV = new InjectionToken('SPY_NAV');\n","import { Component, ElementRef, inject, input, OnInit, Renderer2, DOCUMENT } from '@angular/core';\n\nimport { ScrollSpyNavComponent } from '../scroll-spy-nav/scroll-spy-nav.component';\nimport { SCROLL_SPY_NAV } from '../types';\n\n@Component({\n selector: 'emr-scroll-spy-on,[emr-scroll-spy-on]',\n exportAs: 'emrScrollSpyOn',\n templateUrl: './scroll-spy-on.component.html',\n styleUrl: './scroll-spy-on.component.scss',\n host: {\n 'class': 'emr-scroll-spy-on',\n '[class.is-active]': 'isActive',\n '(click)': '_handleClick($event)'\n }\n})\nexport class ScrollSpyOnComponent implements OnInit {\n private _parent = inject<ScrollSpyNavComponent>(SCROLL_SPY_NAV);\n private _elementRef = inject(ElementRef);\n private _renderer = inject(Renderer2);\n private _document = inject(DOCUMENT);\n\n targetId = input.required<string>();\n\n ngOnInit() {\n const fullUrl = this._document.location.origin + this._document.location.pathname;\n this._renderer.setAttribute(this._elementRef.nativeElement, 'href', fullUrl + '#' + this.targetId());\n }\n\n protected get isActive() {\n return this.targetId() === this._parent.activeId;\n }\n\n protected _handleClick(event: MouseEvent) {\n event.preventDefault();\n event.stopPropagation();\n this._parent.scrollTo(this.targetId());\n }\n}\n","<ng-content></ng-content>\n","import {\n AfterContentInit,\n ChangeDetectorRef,\n Component,\n DestroyRef,\n inject,\n NgZone,\n PLATFORM_ID,\n contentChildren,\n DOCUMENT\n} from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { debounceTime, fromEvent } from 'rxjs';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { SCROLL_SPY_NAV } from '../types';\nimport { ScrollSpyOnComponent } from '../scroll-spy-on/scroll-spy-on.component';\n\n@Component({\n selector: 'emr-scroll-spy-nav,[emr-scroll-spy-nav]',\n exportAs: 'emrScrollSpyNav',\n templateUrl: './scroll-spy-nav.component.html',\n styleUrl: './scroll-spy-nav.component.scss',\n providers: [\n {\n provide: SCROLL_SPY_NAV,\n useExisting: ScrollSpyNavComponent\n }\n ],\n host: {\n 'class': 'emr-scroll-spy-nav'\n }\n})\nexport class ScrollSpyNavComponent implements AfterContentInit {\n private _document = inject(DOCUMENT);\n private _cdr = inject(ChangeDetectorRef);\n private _platformId = inject(PLATFORM_ID);\n private _zone = inject(NgZone);\n private _threshold = 10;\n private _destroyRef = inject(DestroyRef);\n\n readonly _items = contentChildren(ScrollSpyOnComponent);\n\n protected _activeId: string;\n private _elementToScroll: HTMLElement;\n\n ngAfterContentInit() {\n if (isPlatformServer(this._platformId)) {\n return;\n }\n\n this._elementToScroll = this._document.querySelector('.emr-layout-body:has(:not(.emr-layout-body))') as HTMLElement;\n\n if (this._elementToScroll) {\n this._zone.runOutsideAngular(() => {\n fromEvent(this._elementToScroll, 'scroll')\n .pipe(\n debounceTime(35),\n takeUntilDestroyed(this._destroyRef)\n )\n .subscribe(() => {\n this._findActiveItem();\n })\n ;\n });\n // start finding active item after layout body will be scrolled to top\n setTimeout(() => {\n this._findActiveItem();\n }, 10);\n }\n }\n\n get activeId(): string {\n return this._activeId;\n }\n\n scrollTo(targetId: string) {\n if (!this._elementToScroll) {\n return;\n }\n\n this._activeId = targetId;\n const targetElement = this._document.querySelector('#' + targetId) as HTMLElement;\n const offsetTopFix = parseInt(getComputedStyle(targetElement).marginTop) +\n parseInt(getComputedStyle(targetElement).height) + this._threshold\n ;\n this._cdr.detectChanges();\n this._elementToScroll.scroll({\n top: targetElement.offsetTop - offsetTopFix,\n left: 0,\n behavior: 'smooth'\n });\n }\n\n private _findActiveItem() {\n for (let item of this._items()) {\n const targetElement = this._document.querySelector('#' + item.targetId()) as HTMLElement;\n\n if (targetElement) {\n if (this._elementIsVisibleInViewport(this._elementToScroll, targetElement)) {\n if (this._activeId === item.targetId()) {\n return;\n }\n\n this._zone.run(() => {\n this._activeId = item.targetId();\n this._cdr.detectChanges();\n });\n break;\n }\n }\n }\n }\n\n private _elementIsVisibleInViewport(container: HTMLElement, targetEl: HTMLElement, partiallyVisible = false) {\n const { top, left, bottom, right } = targetEl.getBoundingClientRect();\n const containerRect = container.getBoundingClientRect();\n const innerWidth = containerRect.width;\n const innerHeight = containerRect.height;\n\n return partiallyVisible\n ? ((top > 0 && top < innerHeight) ||\n (bottom > 0 && bottom < innerHeight)) &&\n ((left > 0 && left < innerWidth) || (right > 0 && right < innerWidth))\n : top >= 0 && left >= 0 && bottom <= innerHeight && right <= innerWidth\n ;\n }\n}\n","<ng-content/>\n","import { Component } from '@angular/core';\n\n@Component({\n selector: 'emr-scroll-spy-title',\n exportAs: 'emrScrollSpyTitle',\n templateUrl: './scroll-spy-title.component.html',\n styleUrl: './scroll-spy-title.component.scss',\n host: {\n 'class': 'emr-scroll-spy-title'\n }\n})\nexport class ScrollSpyTitleComponent {\n\n}\n","<ng-content></ng-content>\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[emrScrollSpyContainer]',\n exportAs: 'emrScrollSpyContainer',\n host: {\n 'class': 'emr-scroll-spy-container'\n }\n})\nexport class ScrollSpyContainerDirective {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAEa,cAAc,GAAG,IAAI,cAAc,CAAC,SAAS;;MCc7C,oBAAoB,CAAA;AACvB,IAAA,OAAO,GAAG,MAAM,CAAwB,cAAc,CAAC;AACvD,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC7B,IAAA,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC;AAEpC,IAAA,QAAQ,GAAG,KAAK,CAAC,QAAQ,mDAAU;IAEnC,QAAQ,GAAA;AACN,QAAA,MAAM,OAAO,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,GAAG,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,QAAQ;QACjF,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,MAAM,EAAE,OAAO,GAAG,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC;IACtG;AAEA,IAAA,IAAc,QAAQ,GAAA;QACpB,OAAO,IAAI,CAAC,QAAQ,EAAE,KAAK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AA,CAAA;AAAvB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,uBAAuB,mKCXpC,6BACA,EAAA,MAAA,EAAA,CAAA,oKAAA,CAAA,EAAA,CAAA;;4FDUa,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBATnC,SAAS;+BACE,sBAAsB,EAAA,QAAA,EACtB,mBAAmB,EAAA,IAAA,EAGvB;AACJ,wBAAA,OAAO,EAAE;AACV,qBAAA,EAAA,QAAA,EAAA,6BAAA,EAAA,MAAA,EAAA,CAAA,oKAAA,CAAA,EAAA;;;MEAU,2BAA2B,CAAA;wGAA3B,2BAA2B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,0BAAA,EAAA,EAAA,QAAA,EAAA,CAAA,uBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAA3B,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBAPvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yBAAyB;AACnC,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,IAAI,EAAE;AACJ,wBAAA,OAAO,EAAE;AACV;AACF,iBAAA;;;ACRD;;AAEG;;;;"}
@@ -63,8 +63,8 @@ class SegmentedComponent {
63
63
  this._onChange(value);
64
64
  this._onTouched(value);
65
65
  }
66
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: SegmentedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
67
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.10", type: SegmentedComponent, isStandalone: true, selector: "emr-segmented", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.is-disabled": "disabled() || _disabled || null" }, classAttribute: "emr-segmented" }, providers: [
66
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SegmentedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
67
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.25", type: SegmentedComponent, isStandalone: true, selector: "emr-segmented", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { valueChange: "valueChange" }, host: { properties: { "class.is-disabled": "disabled() || _disabled || null" }, classAttribute: "emr-segmented" }, providers: [
68
68
  {
69
69
  provide: NG_VALUE_ACCESSOR,
70
70
  useExisting: forwardRef(() => SegmentedComponent),
@@ -74,9 +74,9 @@ class SegmentedComponent {
74
74
  provide: EMR_SEGMENTED,
75
75
  useExisting: forwardRef(() => SegmentedComponent)
76
76
  }
77
- ], exportAs: ["emrSegmented"], usesOnChanges: true, ngImport: i0, template: "<ng-content select=\"emr-segmented-button,[emr-segmented-button]\"/>\r\n", styles: [":host{--emr-segmented-button-height: calc(var(--spacing) * 8);--emr-segmented-bg: var(--color-surface-container);--emr-segmented-button-hover-bg: var(--color-surface-container-highest);--emr-segmented-button-color: var(--color-neutral-700);--emr-segmented-button-hover-color: var(--color-on-surface);--emr-segmented-button-selected-color: var(--color-primary-650);--emr-segmented-button-selected-bg: white;--emr-segmented-button-selected-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--emr-segmented-padding: calc(var(--spacing) * 1);--emr-segmented-border-radius: calc(infinity * 1px);--emr-segmented-button-border-radius: calc(infinity * 1px);--emr-segmented-button-padding: 0 calc(var(--spacing) * 3);--emr-segmented-button-min-width: calc(var(--spacing) * 12);--emr-segmented-button-font-size: var(--text-tiny);--emr-segmented-gap: calc(var(--spacing) * 1);--emr-segmented-button-gap: calc(var(--spacing) * 1);--emr-segmented-button-icon-offset-margin: -6px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;width:max-content;background:var(--emr-segmented-bg);padding:var(--emr-segmented-padding);border-radius:var(--emr-segmented-border-radius);gap:var(--emr-segmented-gap)}:host[emr-segmented-size=sm]{--emr-segmented-button-height: calc(calc(var(--spacing) * 10) - calc(var(--spacing) * 2));--emr-segmented-button-font-size: var(--text-xs);--emr-segmented-button-padding: 0 calc(var(--spacing) * 2);--emr-segmented-button-gap: calc(var(--spacing) * .5)}:host[emr-segmented-size=lg]{--emr-segmented-button-height: calc(calc(var(--spacing) * 14) - calc(var(--spacing) * 2));--emr-segmented-button-font-size: .875rem;--emr-segmented-button-padding: 0 calc(var(--spacing) * 4);--emr-segmented-button-gap: calc(var(--spacing) * 1.5)}:host-context(html.dark){--emr-segmented-button-color: var(--color-neutral-300);--emr-segmented-button-selected-bg: var(--color-neutral-300)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
77
+ ], exportAs: ["emrSegmented"], usesOnChanges: true, ngImport: i0, template: "<ng-content select=\"emr-segmented-button,[emr-segmented-button]\"/>\n", styles: [":host{--emr-segmented-button-height: calc(var(--spacing) * 8);--emr-segmented-bg: var(--color-surface-container);--emr-segmented-button-hover-bg: var(--color-surface-container-highest);--emr-segmented-button-color: var(--color-neutral-700);--emr-segmented-button-hover-color: var(--color-on-surface);--emr-segmented-button-selected-color: var(--color-primary-650);--emr-segmented-button-selected-bg: white;--emr-segmented-button-selected-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--emr-segmented-padding: calc(var(--spacing) * 1);--emr-segmented-border-radius: calc(infinity * 1px);--emr-segmented-button-border-radius: calc(infinity * 1px);--emr-segmented-button-padding: 0 calc(var(--spacing) * 3);--emr-segmented-button-min-width: calc(var(--spacing) * 12);--emr-segmented-button-font-size: var(--text-tiny);--emr-segmented-gap: calc(var(--spacing) * 1);--emr-segmented-button-gap: calc(var(--spacing) * 1);--emr-segmented-button-icon-offset-margin: -6px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;width:max-content;background:var(--emr-segmented-bg);padding:var(--emr-segmented-padding);border-radius:var(--emr-segmented-border-radius);gap:var(--emr-segmented-gap)}:host[emr-segmented-size=sm]{--emr-segmented-button-height: calc(calc(var(--spacing) * 10) - calc(var(--spacing) * 2));--emr-segmented-button-font-size: var(--text-xs);--emr-segmented-button-padding: 0 calc(var(--spacing) * 2);--emr-segmented-button-gap: calc(var(--spacing) * .5)}:host[emr-segmented-size=lg]{--emr-segmented-button-height: calc(calc(var(--spacing) * 14) - calc(var(--spacing) * 2));--emr-segmented-button-font-size: .875rem;--emr-segmented-button-padding: 0 calc(var(--spacing) * 4);--emr-segmented-button-gap: calc(var(--spacing) * 1.5)}:host-context(html.dark){--emr-segmented-button-color: var(--color-neutral-300);--emr-segmented-button-selected-bg: var(--color-neutral-300)}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] });
78
78
  }
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: SegmentedComponent, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SegmentedComponent, decorators: [{
80
80
  type: Component,
81
81
  args: [{ selector: 'emr-segmented', exportAs: 'emrSegmented', providers: [
82
82
  {
@@ -91,7 +91,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImpo
91
91
  ], host: {
92
92
  'class': 'emr-segmented',
93
93
  '[class.is-disabled]': 'disabled() || _disabled || null',
94
- }, template: "<ng-content select=\"emr-segmented-button,[emr-segmented-button]\"/>\r\n", styles: [":host{--emr-segmented-button-height: calc(var(--spacing) * 8);--emr-segmented-bg: var(--color-surface-container);--emr-segmented-button-hover-bg: var(--color-surface-container-highest);--emr-segmented-button-color: var(--color-neutral-700);--emr-segmented-button-hover-color: var(--color-on-surface);--emr-segmented-button-selected-color: var(--color-primary-650);--emr-segmented-button-selected-bg: white;--emr-segmented-button-selected-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--emr-segmented-padding: calc(var(--spacing) * 1);--emr-segmented-border-radius: calc(infinity * 1px);--emr-segmented-button-border-radius: calc(infinity * 1px);--emr-segmented-button-padding: 0 calc(var(--spacing) * 3);--emr-segmented-button-min-width: calc(var(--spacing) * 12);--emr-segmented-button-font-size: var(--text-tiny);--emr-segmented-gap: calc(var(--spacing) * 1);--emr-segmented-button-gap: calc(var(--spacing) * 1);--emr-segmented-button-icon-offset-margin: -6px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;width:max-content;background:var(--emr-segmented-bg);padding:var(--emr-segmented-padding);border-radius:var(--emr-segmented-border-radius);gap:var(--emr-segmented-gap)}:host[emr-segmented-size=sm]{--emr-segmented-button-height: calc(calc(var(--spacing) * 10) - calc(var(--spacing) * 2));--emr-segmented-button-font-size: var(--text-xs);--emr-segmented-button-padding: 0 calc(var(--spacing) * 2);--emr-segmented-button-gap: calc(var(--spacing) * .5)}:host[emr-segmented-size=lg]{--emr-segmented-button-height: calc(calc(var(--spacing) * 14) - calc(var(--spacing) * 2));--emr-segmented-button-font-size: .875rem;--emr-segmented-button-padding: 0 calc(var(--spacing) * 4);--emr-segmented-button-gap: calc(var(--spacing) * 1.5)}:host-context(html.dark){--emr-segmented-button-color: var(--color-neutral-300);--emr-segmented-button-selected-bg: var(--color-neutral-300)}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
94
+ }, template: "<ng-content select=\"emr-segmented-button,[emr-segmented-button]\"/>\n", styles: [":host{--emr-segmented-button-height: calc(var(--spacing) * 8);--emr-segmented-bg: var(--color-surface-container);--emr-segmented-button-hover-bg: var(--color-surface-container-highest);--emr-segmented-button-color: var(--color-neutral-700);--emr-segmented-button-hover-color: var(--color-on-surface);--emr-segmented-button-selected-color: var(--color-primary-650);--emr-segmented-button-selected-bg: white;--emr-segmented-button-selected-shadow: 0 1px 3px 0 rgb(0 0 0 / .1), 0 1px 2px -1px rgb(0 0 0 / .1);--emr-segmented-padding: calc(var(--spacing) * 1);--emr-segmented-border-radius: calc(infinity * 1px);--emr-segmented-button-border-radius: calc(infinity * 1px);--emr-segmented-button-padding: 0 calc(var(--spacing) * 3);--emr-segmented-button-min-width: calc(var(--spacing) * 12);--emr-segmented-button-font-size: var(--text-tiny);--emr-segmented-gap: calc(var(--spacing) * 1);--emr-segmented-button-gap: calc(var(--spacing) * 1);--emr-segmented-button-icon-offset-margin: -6px;display:flex;align-items:center;-webkit-user-select:none;user-select:none;width:max-content;background:var(--emr-segmented-bg);padding:var(--emr-segmented-padding);border-radius:var(--emr-segmented-border-radius);gap:var(--emr-segmented-gap)}:host[emr-segmented-size=sm]{--emr-segmented-button-height: calc(calc(var(--spacing) * 10) - calc(var(--spacing) * 2));--emr-segmented-button-font-size: var(--text-xs);--emr-segmented-button-padding: 0 calc(var(--spacing) * 2);--emr-segmented-button-gap: calc(var(--spacing) * .5)}:host[emr-segmented-size=lg]{--emr-segmented-button-height: calc(calc(var(--spacing) * 14) - calc(var(--spacing) * 2));--emr-segmented-button-font-size: .875rem;--emr-segmented-button-padding: 0 calc(var(--spacing) * 4);--emr-segmented-button-gap: calc(var(--spacing) * 1.5)}:host-context(html.dark){--emr-segmented-button-color: var(--color-neutral-300);--emr-segmented-button-selected-bg: var(--color-neutral-300)}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] }]
95
95
  }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], valueChange: [{ type: i0.Output, args: ["valueChange"] }] } });
96
96
 
97
97
  class SegmentedButtonComponent {
@@ -114,10 +114,10 @@ class SegmentedButtonComponent {
114
114
  _handleClick() {
115
115
  this._segmented.api.select(this.value());
116
116
  }
117
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: SegmentedButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
118
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.10", type: SegmentedButtonComponent, isStandalone: true, selector: "emr-segmented-button,[emr-segmented-button]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_handleClick()" }, properties: { "class.icon-only": "iconOnly()", "class.is-selected": "_isSelected", "class.is-disabled": "disabled() || null" }, classAttribute: "emr-segmented-button" }, exportAs: ["emrSegmentedButton"], hostDirectives: [{ directive: i1.MatRipple }], ngImport: i0, template: "<div class=\"icon\">\r\n <ng-content select=\"[emrSegmentedIcon]\"/>\r\n</div>\r\n<div class=\"content\">\r\n <ng-content/>\r\n</div>\r\n", styles: [":host{display:flex;align-items:center;cursor:pointer;justify-content:center;color:var(--emr-segmented-button-color);font-size:var(--emr-segmented-button-font-size);min-width:var(--emr-segmented-button-min-width);border-radius:var(--emr-segmented-button-border-radius);gap:var(--emr-segmented-button-gap);flex:none;padding:var(--emr-segmented-button-padding);height:var(--emr-segmented-button-height)}:host.icon-only{--emr-segmented-button-min-width: 0;--emr-segmented-button-icon-offset-margin: 0;width:var(--emr-segmented-button-height);gap:0;padding:0}:host.icon-only .content{display:none}:host .icon{line-height:0;display:flex;align-items:center;justify-content:center;margin-inline-start:var(--emr-segmented-button-icon-offset-margin)}:host .icon ::ng-deep .mat-icon{display:inline-flex!important;align-items:center;justify-content:center}:host .icon:empty{display:none}:host:hover{background-color:var(--emr-segmented-button-hover-bg);color:var(--emr-segmented-button-hover-color);text-decoration-line:none}:host.is-selected{pointer-events:none;background-color:var(--emr-segmented-button-selected-bg);color:var(--emr-segmented-button-selected-color);box-shadow:var(--emr-segmented-button-selected-shadow)}:host:disabled,:host.is-disabled{pointer-events:none;opacity:65%}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] });
117
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SegmentedButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
118
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "20.3.25", type: SegmentedButtonComponent, isStandalone: true, selector: "emr-segmented-button,[emr-segmented-button]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, iconOnly: { classPropertyName: "iconOnly", publicName: "iconOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "click": "_handleClick()" }, properties: { "class.icon-only": "iconOnly()", "class.is-selected": "_isSelected", "class.is-disabled": "disabled() || null" }, classAttribute: "emr-segmented-button" }, exportAs: ["emrSegmentedButton"], hostDirectives: [{ directive: i1.MatRipple }], ngImport: i0, template: "<div class=\"icon\">\n <ng-content select=\"[emrSegmentedIcon]\"/>\n</div>\n<div class=\"content\">\n <ng-content/>\n</div>\n", styles: [":host{display:flex;align-items:center;cursor:pointer;justify-content:center;color:var(--emr-segmented-button-color);font-size:var(--emr-segmented-button-font-size);min-width:var(--emr-segmented-button-min-width);border-radius:var(--emr-segmented-button-border-radius);gap:var(--emr-segmented-button-gap);flex:none;padding:var(--emr-segmented-button-padding);height:var(--emr-segmented-button-height)}:host.icon-only{--emr-segmented-button-min-width: 0;--emr-segmented-button-icon-offset-margin: 0;width:var(--emr-segmented-button-height);gap:0;padding:0}:host.icon-only .content{display:none}:host .icon{line-height:0;display:flex;align-items:center;justify-content:center;margin-inline-start:var(--emr-segmented-button-icon-offset-margin)}:host .icon ::ng-deep .mat-icon{display:inline-flex!important;align-items:center;justify-content:center}:host .icon:empty{display:none}:host:hover{background-color:var(--emr-segmented-button-hover-bg);color:var(--emr-segmented-button-hover-color);text-decoration-line:none}:host.is-selected{pointer-events:none;background-color:var(--emr-segmented-button-selected-bg);color:var(--emr-segmented-button-selected-color);box-shadow:var(--emr-segmented-button-selected-shadow)}:host:disabled,:host.is-disabled{pointer-events:none;opacity:65%}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] });
119
119
  }
120
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: SegmentedButtonComponent, decorators: [{
120
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SegmentedButtonComponent, decorators: [{
121
121
  type: Component,
122
122
  args: [{ selector: 'emr-segmented-button,[emr-segmented-button]', exportAs: 'emrSegmentedButton', hostDirectives: [
123
123
  MatRipple
@@ -127,14 +127,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImpo
127
127
  '[class.is-selected]': '_isSelected',
128
128
  '[class.is-disabled]': 'disabled() || null',
129
129
  '(click)': '_handleClick()',
130
- }, template: "<div class=\"icon\">\r\n <ng-content select=\"[emrSegmentedIcon]\"/>\r\n</div>\r\n<div class=\"content\">\r\n <ng-content/>\r\n</div>\r\n", styles: [":host{display:flex;align-items:center;cursor:pointer;justify-content:center;color:var(--emr-segmented-button-color);font-size:var(--emr-segmented-button-font-size);min-width:var(--emr-segmented-button-min-width);border-radius:var(--emr-segmented-button-border-radius);gap:var(--emr-segmented-button-gap);flex:none;padding:var(--emr-segmented-button-padding);height:var(--emr-segmented-button-height)}:host.icon-only{--emr-segmented-button-min-width: 0;--emr-segmented-button-icon-offset-margin: 0;width:var(--emr-segmented-button-height);gap:0;padding:0}:host.icon-only .content{display:none}:host .icon{line-height:0;display:flex;align-items:center;justify-content:center;margin-inline-start:var(--emr-segmented-button-icon-offset-margin)}:host .icon ::ng-deep .mat-icon{display:inline-flex!important;align-items:center;justify-content:center}:host .icon:empty{display:none}:host:hover{background-color:var(--emr-segmented-button-hover-bg);color:var(--emr-segmented-button-hover-color);text-decoration-line:none}:host.is-selected{pointer-events:none;background-color:var(--emr-segmented-button-selected-bg);color:var(--emr-segmented-button-selected-color);box-shadow:var(--emr-segmented-button-selected-shadow)}:host:disabled,:host.is-disabled{pointer-events:none;opacity:65%}\n/*! tailwindcss v4.1.14 | MIT License | https://tailwindcss.com */\n"] }]
130
+ }, template: "<div class=\"icon\">\n <ng-content select=\"[emrSegmentedIcon]\"/>\n</div>\n<div class=\"content\">\n <ng-content/>\n</div>\n", styles: [":host{display:flex;align-items:center;cursor:pointer;justify-content:center;color:var(--emr-segmented-button-color);font-size:var(--emr-segmented-button-font-size);min-width:var(--emr-segmented-button-min-width);border-radius:var(--emr-segmented-button-border-radius);gap:var(--emr-segmented-button-gap);flex:none;padding:var(--emr-segmented-button-padding);height:var(--emr-segmented-button-height)}:host.icon-only{--emr-segmented-button-min-width: 0;--emr-segmented-button-icon-offset-margin: 0;width:var(--emr-segmented-button-height);gap:0;padding:0}:host.icon-only .content{display:none}:host .icon{line-height:0;display:flex;align-items:center;justify-content:center;margin-inline-start:var(--emr-segmented-button-icon-offset-margin)}:host .icon ::ng-deep .mat-icon{display:inline-flex!important;align-items:center;justify-content:center}:host .icon:empty{display:none}:host:hover{background-color:var(--emr-segmented-button-hover-bg);color:var(--emr-segmented-button-hover-color);text-decoration-line:none}:host.is-selected{pointer-events:none;background-color:var(--emr-segmented-button-selected-bg);color:var(--emr-segmented-button-selected-color);box-shadow:var(--emr-segmented-button-selected-shadow)}:host:disabled,:host.is-disabled{pointer-events:none;opacity:65%}\n/*! tailwindcss v4.3.2 | MIT License | https://tailwindcss.com */\n"] }]
131
131
  }], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], iconOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconOnly", required: false }] }] } });
132
132
 
133
133
  class SegmentedIconDirective {
134
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: SegmentedIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
135
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.10", type: SegmentedIconDirective, isStandalone: true, selector: "[emrSegmentedIcon]", host: { classAttribute: "emr-segmented-icon" }, exportAs: ["emrSegmentedIcon"], ngImport: i0 });
134
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SegmentedIconDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
135
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "20.3.25", type: SegmentedIconDirective, isStandalone: true, selector: "[emrSegmentedIcon]", host: { classAttribute: "emr-segmented-icon" }, exportAs: ["emrSegmentedIcon"], ngImport: i0 });
136
136
  }
137
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: SegmentedIconDirective, decorators: [{
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.25", ngImport: i0, type: SegmentedIconDirective, decorators: [{
138
138
  type: Directive,
139
139
  args: [{
140
140
  selector: '[emrSegmentedIcon]',
@@ -1 +1 @@
1
- {"version":3,"file":"elementar-rt-components-segmented.mjs","sources":["../../../projects/components/segmented/src/types.ts","../../../projects/components/segmented/src/segmented/segmented.component.ts","../../../projects/components/segmented/src/segmented/segmented.component.html","../../../projects/components/segmented/src/segmented-button/segmented-button.component.ts","../../../projects/components/segmented/src/segmented-button/segmented-button.component.html","../../../projects/components/segmented/src/segmented-icon.directive.ts","../../../projects/components/segmented/elementar-rt-components-segmented.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\r\n\r\nexport const EMR_SEGMENTED = new InjectionToken('EMR_SEGMENTED');\r\nexport type SegmentedTriggerSize = 'sm' | 'default' | 'lg' | string;\r\n","import {\r\n booleanAttribute,\r\n ChangeDetectorRef,\r\n Component, effect,\r\n ElementRef,\r\n forwardRef,\r\n inject, input,\r\n OnChanges,\r\n OnInit, output,\r\n Renderer2, SimpleChanges\r\n} from '@angular/core';\r\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\r\nimport { SegmentedTriggerSize, EMR_SEGMENTED } from '../types';\r\nimport { SelectionModel } from '@angular/cdk/collections';\r\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\r\n\r\n@Component({\r\n selector: 'emr-segmented',\r\n exportAs: 'emrSegmented',\r\n templateUrl: './segmented.component.html',\r\n styleUrl: './segmented.component.scss',\r\n providers: [\r\n {\r\n provide: NG_VALUE_ACCESSOR,\r\n useExisting: forwardRef(() => SegmentedComponent),\r\n multi: true\r\n },\r\n {\r\n provide: EMR_SEGMENTED,\r\n useExisting: forwardRef(() => SegmentedComponent)\r\n }\r\n ],\r\n host: {\r\n 'class': 'emr-segmented',\r\n '[class.is-disabled]': 'disabled() || _disabled || null',\r\n },\r\n})\r\nexport class SegmentedComponent implements OnInit, OnChanges, ControlValueAccessor {\r\n private _elementRef = inject(ElementRef);\r\n private _renderer = inject(Renderer2);\r\n private _cdr = inject(ChangeDetectorRef);\r\n protected _disabled = false;\r\n\r\n value = input();\r\n disabled = input(false, {\r\n transform: booleanAttribute\r\n });\r\n size = input<SegmentedTriggerSize>('default');\r\n\r\n readonly valueChange = output<any>();\r\n\r\n private _selectedValue = new SelectionModel<any>(false, []);\r\n\r\n _onChange: any = () => {};\r\n _onTouched: any = () => {};\r\n\r\n get api() {\r\n return {\r\n isSelected: (value: any) => this._selectedValue.isSelected(value),\r\n select: (value: any) => this._select(value)\r\n };\r\n }\r\n\r\n constructor() {\r\n effect(() => {\r\n this._selectedValue.select(this.value());\r\n });\r\n }\r\n\r\n ngOnInit() {\r\n this._renderer.setAttribute(this._elementRef.nativeElement, 'emr-segmented-size', this.size());\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges) {\r\n if (changes['size']) {\r\n this._renderer.setAttribute(this._elementRef.nativeElement, 'emr-segmented-size', this.size());\r\n }\r\n\r\n if (changes['selectedValue']) {\r\n this._selectedValue.select(changes['selectedValue'].currentValue);\r\n }\r\n }\r\n\r\n writeValue(value: any): void {\r\n this._selectedValue.select(value ? value : []);\r\n this._cdr.detectChanges();\r\n }\r\n\r\n registerOnChange(fn: any): void {\r\n this._onChange = fn;\r\n }\r\n\r\n registerOnTouched(fn: any): void {\r\n this._onTouched = fn;\r\n }\r\n\r\n setDisabledState(isDisabled: BooleanInput): void {\r\n this._disabled = coerceBooleanProperty(isDisabled);\r\n }\r\n\r\n private _select(value: any): void {\r\n this._selectedValue.select(value);\r\n this.valueChange.emit(value);\r\n this._onChange(value);\r\n this._onTouched(value);\r\n }\r\n}\r\n","<ng-content select=\"emr-segmented-button,[emr-segmented-button]\"/>\r\n","import {\r\n booleanAttribute,\r\n Component,\r\n inject,\r\n input\r\n} from '@angular/core';\r\nimport { EMR_SEGMENTED } from '../types';\r\nimport { SegmentedComponent } from '../segmented/segmented.component';\r\nimport { MatRipple } from '@angular/material/core';\r\n\r\n@Component({\r\n selector: 'emr-segmented-button,[emr-segmented-button]',\r\n exportAs: 'emrSegmentedButton',\r\n templateUrl: './segmented-button.component.html',\r\n styleUrl: './segmented-button.component.scss',\r\n hostDirectives: [\r\n MatRipple\r\n ],\r\n host: {\r\n 'class': 'emr-segmented-button',\r\n '[class.icon-only]': 'iconOnly()',\r\n '[class.is-selected]': '_isSelected',\r\n '[class.is-disabled]': 'disabled() || null',\r\n '(click)': '_handleClick()',\r\n }\r\n})\r\nexport class SegmentedButtonComponent {\r\n private _segmented = inject<SegmentedComponent>(EMR_SEGMENTED, { skipSelf: true });\r\n\r\n value = input.required<any>();\r\n disabled = input(false, {\r\n transform: booleanAttribute\r\n });\r\n iconOnly = input(false, {\r\n transform: booleanAttribute\r\n });\r\n\r\n get _isSelected(): boolean {\r\n return this._segmented.api.isSelected(this.value());\r\n }\r\n\r\n get api() {\r\n return {\r\n isSelected: () => this._isSelected\r\n }\r\n }\r\n\r\n protected _handleClick() {\r\n this._segmented.api.select(this.value());\r\n }\r\n}\r\n","<div class=\"icon\">\r\n <ng-content select=\"[emrSegmentedIcon]\"/>\r\n</div>\r\n<div class=\"content\">\r\n <ng-content/>\r\n</div>\r\n","import { Directive } from '@angular/core';\r\n\r\n@Directive({\r\n selector: '[emrSegmentedIcon]',\r\n exportAs: 'emrSegmentedIcon',\r\n host: {\r\n 'class': 'emr-segmented-icon'\r\n }\r\n})\r\nexport class SegmentedIconDirective {\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEO,MAAM,aAAa,GAAG,IAAI,cAAc,CAAC,eAAe,CAAC;;MCmCnD,kBAAkB,CAAA;AACrB,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC7B,IAAA,IAAI,GAAG,MAAM,CAAC,iBAAiB,CAAC;IAC9B,SAAS,GAAG,KAAK;IAE3B,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAA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A,q0CAAA,CAAA,EAAA,CAAA;;4FDoBa,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAhBpC,SAAS;+BACE,6CAA6C,EAAA,QAAA,EAC7C,oBAAoB,EAAA,cAAA,EAGd;wBACd;qBACD,EAAA,IAAA,EACK;AACJ,wBAAA,OAAO,EAAE,sBAAsB;AAC/B,wBAAA,mBAAmB,EAAE,YAAY;AACjC,wBAAA,qBAAqB,EAAE,aAAa;AACpC,wBAAA,qBAAqB,EAAE,oBAAoB;AAC3C,wBAAA,SAAS,EAAE,gBAAgB;AAC5B,qBAAA,EAAA,QAAA,EAAA,6IAAA,EAAA,MAAA,EAAA,CAAA,q0CAAA,CAAA,EAAA;;;MEfU,sBAAsB,CAAA;wGAAtB,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,oBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,oBAAA,EAAA,EAAA,QAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAPlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,IAAI,EAAE;AACJ,wBAAA,OAAO,EAAE;AACV;AACF,iBAAA;;;ACRD;;AAEG;;;;"}
1
+ {"version":3,"file":"elementar-rt-components-segmented.mjs","sources":["../../../projects/components/segmented/src/types.ts","../../../projects/components/segmented/src/segmented/segmented.component.ts","../../../projects/components/segmented/src/segmented/segmented.component.html","../../../projects/components/segmented/src/segmented-button/segmented-button.component.ts","../../../projects/components/segmented/src/segmented-button/segmented-button.component.html","../../../projects/components/segmented/src/segmented-icon.directive.ts","../../../projects/components/segmented/elementar-rt-components-segmented.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const EMR_SEGMENTED = new InjectionToken('EMR_SEGMENTED');\nexport type SegmentedTriggerSize = 'sm' | 'default' | 'lg' | string;\n","import {\n booleanAttribute,\n ChangeDetectorRef,\n Component, effect,\n ElementRef,\n forwardRef,\n inject, input,\n OnChanges,\n OnInit, output,\n Renderer2, SimpleChanges\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { SegmentedTriggerSize, EMR_SEGMENTED } from '../types';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\n\n@Component({\n selector: 'emr-segmented',\n exportAs: 'emrSegmented',\n templateUrl: './segmented.component.html',\n styleUrl: './segmented.component.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => SegmentedComponent),\n multi: true\n },\n {\n provide: EMR_SEGMENTED,\n useExisting: forwardRef(() => SegmentedComponent)\n }\n ],\n host: {\n 'class': 'emr-segmented',\n '[class.is-disabled]': 'disabled() || _disabled || null',\n },\n})\nexport class SegmentedComponent implements OnInit, OnChanges, ControlValueAccessor {\n private _elementRef = inject(ElementRef);\n private _renderer = inject(Renderer2);\n private _cdr = inject(ChangeDetectorRef);\n protected _disabled = false;\n\n value = input();\n disabled = input(false, {\n transform: booleanAttribute\n });\n size = input<SegmentedTriggerSize>('default');\n\n readonly valueChange = output<any>();\n\n private _selectedValue = new SelectionModel<any>(false, []);\n\n _onChange: any = () => {};\n _onTouched: any = () => {};\n\n get api() {\n return {\n isSelected: (value: any) => this._selectedValue.isSelected(value),\n select: (value: any) => this._select(value)\n };\n }\n\n constructor() {\n effect(() => {\n this._selectedValue.select(this.value());\n });\n }\n\n ngOnInit() {\n this._renderer.setAttribute(this._elementRef.nativeElement, 'emr-segmented-size', this.size());\n }\n\n ngOnChanges(changes: SimpleChanges) {\n if (changes['size']) {\n this._renderer.setAttribute(this._elementRef.nativeElement, 'emr-segmented-size', this.size());\n }\n\n if (changes['selectedValue']) {\n this._selectedValue.select(changes['selectedValue'].currentValue);\n }\n }\n\n writeValue(value: any): void {\n this._selectedValue.select(value ? value : []);\n this._cdr.detectChanges();\n }\n\n registerOnChange(fn: any): void {\n this._onChange = fn;\n }\n\n registerOnTouched(fn: any): void {\n this._onTouched = fn;\n }\n\n setDisabledState(isDisabled: BooleanInput): void {\n this._disabled = coerceBooleanProperty(isDisabled);\n }\n\n private _select(value: any): void {\n this._selectedValue.select(value);\n this.valueChange.emit(value);\n this._onChange(value);\n this._onTouched(value);\n }\n}\n","<ng-content select=\"emr-segmented-button,[emr-segmented-button]\"/>\n","import {\n booleanAttribute,\n Component,\n inject,\n input\n} from '@angular/core';\nimport { EMR_SEGMENTED } from '../types';\nimport { SegmentedComponent } from '../segmented/segmented.component';\nimport { MatRipple } from '@angular/material/core';\n\n@Component({\n selector: 'emr-segmented-button,[emr-segmented-button]',\n exportAs: 'emrSegmentedButton',\n templateUrl: './segmented-button.component.html',\n styleUrl: './segmented-button.component.scss',\n hostDirectives: [\n MatRipple\n ],\n host: {\n 'class': 'emr-segmented-button',\n '[class.icon-only]': 'iconOnly()',\n '[class.is-selected]': '_isSelected',\n '[class.is-disabled]': 'disabled() || null',\n '(click)': '_handleClick()',\n }\n})\nexport class SegmentedButtonComponent {\n private _segmented = inject<SegmentedComponent>(EMR_SEGMENTED, { skipSelf: true });\n\n value = input.required<any>();\n disabled = input(false, {\n transform: booleanAttribute\n });\n iconOnly = input(false, {\n transform: booleanAttribute\n });\n\n get _isSelected(): boolean {\n return this._segmented.api.isSelected(this.value());\n }\n\n get api() {\n return {\n isSelected: () => this._isSelected\n }\n }\n\n protected _handleClick() {\n this._segmented.api.select(this.value());\n }\n}\n","<div class=\"icon\">\n <ng-content select=\"[emrSegmentedIcon]\"/>\n</div>\n<div class=\"content\">\n <ng-content/>\n</div>\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[emrSegmentedIcon]',\n exportAs: 'emrSegmentedIcon',\n host: {\n 'class': 'emr-segmented-icon'\n }\n})\nexport class SegmentedIconDirective {\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEO,MAAM,aAAa,GAAG,IAAI,cAAc,CAAC,eAAe,CAAC;;MCmCnD,kBAAkB,CAAA;AACrB,IAAA,WAAW,GAAG,MAAM,CAAC,UAAU,CAAC;AAChC,IAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;AAC7B,IAAA,IAAI,GAAG,MAAM,CAAC,iBAAiB,CAAC;IAC9B,SAAS,GAAG,KAAK;IAE3B,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAE;IACf,QAAQ,GAAG,KAAK,CAAC,KAAK,4CACpB,SAAS,EAAE,gBAAgB,EAAA,CAAA,GAAA,CADL;AACtB,YAAA,SAAS,EAAE;AACZ,SAAA,CAAA,CAAA,CAAC;AACF,IAAA,IAAI,GAAG,KAAK,CAAuB,SAAS,gDAAC;IAEpC,WAAW,GAAG,MAAM,EAAO;IAE5B,cAAc,GAAG,IAAI,cAAc,CAAM,KAAK,EAAE,EAAE,CAAC;AAE3D,IAAA,SAAS,GAAQ,MAAK,EAAE,CAAC;AACzB,IAAA,UAAU,GAAQ,MAAK,EAAE,CAAC;AAE1B,IAAA,IAAI,GAAG,GAAA;QACL,OAAO;AACL,YAAA,UAAU,EAAE,CAAC,KAAU,KAAK,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,KAAK,CAAC;YACjE,MAAM,EAAE,CAAC,KAAU,KAAK,IAAI,CAAC,OAAO,CAAC,KAAK;SAC3C;IACH;AAEA,IAAA,WAAA,GAAA;QACE,MAAM,CAAC,MAAK;YACV,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,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