@trismegisto/angular 3.3.13 → 3.4.0

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 (926) hide show
  1. package/README.md +22 -4
  2. package/fesm2022/trismegisto-angular-access-control.mjs +21 -264
  3. package/fesm2022/trismegisto-angular-access-control.mjs.map +1 -1
  4. package/fesm2022/trismegisto-angular-accordion.mjs +3 -39
  5. package/fesm2022/trismegisto-angular-accordion.mjs.map +1 -1
  6. package/fesm2022/trismegisto-angular-account-avatar.mjs +2 -27
  7. package/fesm2022/trismegisto-angular-account-avatar.mjs.map +1 -1
  8. package/fesm2022/trismegisto-angular-account-closure.mjs +8 -58
  9. package/fesm2022/trismegisto-angular-account-closure.mjs.map +1 -1
  10. package/fesm2022/trismegisto-angular-account-forms.mjs +32 -235
  11. package/fesm2022/trismegisto-angular-account-forms.mjs.map +1 -1
  12. package/fesm2022/trismegisto-angular-account-switcher.mjs +8 -44
  13. package/fesm2022/trismegisto-angular-account-switcher.mjs.map +1 -1
  14. package/fesm2022/trismegisto-angular-address.mjs +28 -149
  15. package/fesm2022/trismegisto-angular-address.mjs.map +1 -1
  16. package/fesm2022/trismegisto-angular-agent.mjs +26 -206
  17. package/fesm2022/trismegisto-angular-agent.mjs.map +1 -1
  18. package/fesm2022/trismegisto-angular-alert-history.mjs +14 -77
  19. package/fesm2022/trismegisto-angular-alert-history.mjs.map +1 -1
  20. package/fesm2022/trismegisto-angular-alert-rule-editor.mjs +17 -178
  21. package/fesm2022/trismegisto-angular-alert-rule-editor.mjs.map +1 -1
  22. package/fesm2022/trismegisto-angular-alert.mjs +17 -53
  23. package/fesm2022/trismegisto-angular-alert.mjs.map +1 -1
  24. package/fesm2022/trismegisto-angular-anchor-nav.mjs +4 -10
  25. package/fesm2022/trismegisto-angular-anchor-nav.mjs.map +1 -1
  26. package/fesm2022/trismegisto-angular-api-exchange.mjs +11 -110
  27. package/fesm2022/trismegisto-angular-api-exchange.mjs.map +1 -1
  28. package/fesm2022/trismegisto-angular-appointment-details.mjs +20 -181
  29. package/fesm2022/trismegisto-angular-appointment-details.mjs.map +1 -1
  30. package/fesm2022/trismegisto-angular-approval.mjs +10 -36
  31. package/fesm2022/trismegisto-angular-approval.mjs.map +1 -1
  32. package/fesm2022/trismegisto-angular-assignee.mjs +8 -24
  33. package/fesm2022/trismegisto-angular-assignee.mjs.map +1 -1
  34. package/fesm2022/trismegisto-angular-attachment.mjs +22 -72
  35. package/fesm2022/trismegisto-angular-attachment.mjs.map +1 -1
  36. package/fesm2022/trismegisto-angular-availability-editor.mjs +12 -97
  37. package/fesm2022/trismegisto-angular-availability-editor.mjs.map +1 -1
  38. package/fesm2022/trismegisto-angular-avatar-group.mjs +3 -9
  39. package/fesm2022/trismegisto-angular-avatar-group.mjs.map +1 -1
  40. package/fesm2022/trismegisto-angular-backlog.mjs +9 -31
  41. package/fesm2022/trismegisto-angular-backlog.mjs.map +1 -1
  42. package/fesm2022/trismegisto-angular-billing.mjs +41 -276
  43. package/fesm2022/trismegisto-angular-billing.mjs.map +1 -1
  44. package/fesm2022/trismegisto-angular-bottom-navigation.mjs +4 -19
  45. package/fesm2022/trismegisto-angular-bottom-navigation.mjs.map +1 -1
  46. package/fesm2022/trismegisto-angular-bottom-sheet.mjs +25 -56
  47. package/fesm2022/trismegisto-angular-bottom-sheet.mjs.map +1 -1
  48. package/fesm2022/trismegisto-angular-breadcrumb.mjs +9 -15
  49. package/fesm2022/trismegisto-angular-breadcrumb.mjs.map +1 -1
  50. package/fesm2022/trismegisto-angular-bubble.mjs +5 -16
  51. package/fesm2022/trismegisto-angular-bubble.mjs.map +1 -1
  52. package/fesm2022/trismegisto-angular-bulk-input.mjs +23 -97
  53. package/fesm2022/trismegisto-angular-bulk-input.mjs.map +1 -1
  54. package/fesm2022/trismegisto-angular-button-group.mjs +3 -17
  55. package/fesm2022/trismegisto-angular-button-group.mjs.map +1 -1
  56. package/fesm2022/trismegisto-angular-card-container.mjs +12 -27
  57. package/fesm2022/trismegisto-angular-card-container.mjs.map +1 -1
  58. package/fesm2022/trismegisto-angular-carousel.mjs +16 -16
  59. package/fesm2022/trismegisto-angular-carousel.mjs.map +1 -1
  60. package/fesm2022/trismegisto-angular-cart.mjs +26 -124
  61. package/fesm2022/trismegisto-angular-cart.mjs.map +1 -1
  62. package/fesm2022/trismegisto-angular-cascader.mjs +40 -140
  63. package/fesm2022/trismegisto-angular-cascader.mjs.map +1 -1
  64. package/fesm2022/trismegisto-angular-certificate-viewer.mjs +15 -92
  65. package/fesm2022/trismegisto-angular-certificate-viewer.mjs.map +1 -1
  66. package/fesm2022/trismegisto-angular-change-history.mjs +3 -17
  67. package/fesm2022/trismegisto-angular-change-history.mjs.map +1 -1
  68. package/fesm2022/trismegisto-angular-charts.mjs +796 -0
  69. package/fesm2022/trismegisto-angular-charts.mjs.map +1 -0
  70. package/fesm2022/trismegisto-angular-checkbox-group.mjs +3 -11
  71. package/fesm2022/trismegisto-angular-checkbox-group.mjs.map +1 -1
  72. package/fesm2022/trismegisto-angular-chip.mjs +2 -7
  73. package/fesm2022/trismegisto-angular-chip.mjs.map +1 -1
  74. package/fesm2022/trismegisto-angular-code-diff.mjs +47 -127
  75. package/fesm2022/trismegisto-angular-code-diff.mjs.map +1 -1
  76. package/fesm2022/trismegisto-angular-code-input.mjs +5 -2
  77. package/fesm2022/trismegisto-angular-code-input.mjs.map +1 -1
  78. package/fesm2022/trismegisto-angular-code-viewer.mjs +53 -356
  79. package/fesm2022/trismegisto-angular-code-viewer.mjs.map +1 -1
  80. package/fesm2022/trismegisto-angular-color-picker.mjs +18 -48
  81. package/fesm2022/trismegisto-angular-color-picker.mjs.map +1 -1
  82. package/fesm2022/trismegisto-angular-combobox-multi.mjs +5 -15
  83. package/fesm2022/trismegisto-angular-combobox-multi.mjs.map +1 -1
  84. package/fesm2022/trismegisto-angular-combobox.mjs +50 -169
  85. package/fesm2022/trismegisto-angular-combobox.mjs.map +1 -1
  86. package/fesm2022/trismegisto-angular-command-palette.mjs +73 -126
  87. package/fesm2022/trismegisto-angular-command-palette.mjs.map +1 -1
  88. package/fesm2022/trismegisto-angular-commerce-format.mjs +4 -64
  89. package/fesm2022/trismegisto-angular-commerce-format.mjs.map +1 -1
  90. package/fesm2022/trismegisto-angular-connection-wizard.mjs +10 -49
  91. package/fesm2022/trismegisto-angular-connection-wizard.mjs.map +1 -1
  92. package/fesm2022/trismegisto-angular-consent.mjs +9 -82
  93. package/fesm2022/trismegisto-angular-consent.mjs.map +1 -1
  94. package/fesm2022/trismegisto-angular-copy-button.mjs +5 -57
  95. package/fesm2022/trismegisto-angular-copy-button.mjs.map +1 -1
  96. package/fesm2022/trismegisto-angular-credentials-form.mjs +16 -141
  97. package/fesm2022/trismegisto-angular-credentials-form.mjs.map +1 -1
  98. package/fesm2022/trismegisto-angular-data-grid.mjs +225 -1109
  99. package/fesm2022/trismegisto-angular-data-grid.mjs.map +1 -1
  100. package/fesm2022/trismegisto-angular-data-source-picker.mjs +11 -35
  101. package/fesm2022/trismegisto-angular-data-source-picker.mjs.map +1 -1
  102. package/fesm2022/trismegisto-angular-date-picker.mjs +75 -155
  103. package/fesm2022/trismegisto-angular-date-picker.mjs.map +1 -1
  104. package/fesm2022/trismegisto-angular-datetime-picker.mjs +17 -49
  105. package/fesm2022/trismegisto-angular-datetime-picker.mjs.map +1 -1
  106. package/fesm2022/trismegisto-angular-deadline.mjs +38 -91
  107. package/fesm2022/trismegisto-angular-deadline.mjs.map +1 -1
  108. package/fesm2022/trismegisto-angular-deploy-pipeline.mjs +19 -55
  109. package/fesm2022/trismegisto-angular-deploy-pipeline.mjs.map +1 -1
  110. package/fesm2022/trismegisto-angular-description-list.mjs +11 -18
  111. package/fesm2022/trismegisto-angular-description-list.mjs.map +1 -1
  112. package/fesm2022/trismegisto-angular-dialog.mjs +6 -17
  113. package/fesm2022/trismegisto-angular-dialog.mjs.map +1 -1
  114. package/fesm2022/trismegisto-angular-direction.mjs +3 -17
  115. package/fesm2022/trismegisto-angular-direction.mjs.map +1 -1
  116. package/fesm2022/trismegisto-angular-drag-drop.mjs +85 -624
  117. package/fesm2022/trismegisto-angular-drag-drop.mjs.map +1 -1
  118. package/fesm2022/trismegisto-angular-drawer.mjs +36 -45
  119. package/fesm2022/trismegisto-angular-drawer.mjs.map +1 -1
  120. package/fesm2022/trismegisto-angular-dropdown.mjs +4 -15
  121. package/fesm2022/trismegisto-angular-dropdown.mjs.map +1 -1
  122. package/fesm2022/trismegisto-angular-dual-list.mjs +5 -7
  123. package/fesm2022/trismegisto-angular-dual-list.mjs.map +1 -1
  124. package/fesm2022/trismegisto-angular-endpoint-card.mjs +7 -87
  125. package/fesm2022/trismegisto-angular-endpoint-card.mjs.map +1 -1
  126. package/fesm2022/trismegisto-angular-entity-picker.mjs +12 -90
  127. package/fesm2022/trismegisto-angular-entity-picker.mjs.map +1 -1
  128. package/fesm2022/trismegisto-angular-environment-picker.mjs +13 -50
  129. package/fesm2022/trismegisto-angular-environment-picker.mjs.map +1 -1
  130. package/fesm2022/trismegisto-angular-event-calendar.mjs +42 -164
  131. package/fesm2022/trismegisto-angular-event-calendar.mjs.map +1 -1
  132. package/fesm2022/trismegisto-angular-execution-status.mjs +16 -24
  133. package/fesm2022/trismegisto-angular-execution-status.mjs.map +1 -1
  134. package/fesm2022/trismegisto-angular-fab.mjs +34 -58
  135. package/fesm2022/trismegisto-angular-fab.mjs.map +1 -1
  136. package/fesm2022/trismegisto-angular-feature-flags.mjs +11 -73
  137. package/fesm2022/trismegisto-angular-feature-flags.mjs.map +1 -1
  138. package/fesm2022/trismegisto-angular-field-mapping.mjs +19 -107
  139. package/fesm2022/trismegisto-angular-field-mapping.mjs.map +1 -1
  140. package/fesm2022/trismegisto-angular-file-list.mjs +10 -137
  141. package/fesm2022/trismegisto-angular-file-list.mjs.map +1 -1
  142. package/fesm2022/trismegisto-angular-file-permissions.mjs +16 -146
  143. package/fesm2022/trismegisto-angular-file-permissions.mjs.map +1 -1
  144. package/fesm2022/trismegisto-angular-file-upload.mjs +26 -86
  145. package/fesm2022/trismegisto-angular-file-upload.mjs.map +1 -1
  146. package/fesm2022/trismegisto-angular-file-versions.mjs +11 -64
  147. package/fesm2022/trismegisto-angular-file-versions.mjs.map +1 -1
  148. package/fesm2022/trismegisto-angular-filter-bar.mjs +40 -76
  149. package/fesm2022/trismegisto-angular-filter-bar.mjs.map +1 -1
  150. package/fesm2022/trismegisto-angular-finance.mjs +35 -280
  151. package/fesm2022/trismegisto-angular-finance.mjs.map +1 -1
  152. package/fesm2022/trismegisto-angular-floating-window.mjs +78 -118
  153. package/fesm2022/trismegisto-angular-floating-window.mjs.map +1 -1
  154. package/fesm2022/trismegisto-angular-form-error-summary.mjs +4 -22
  155. package/fesm2022/trismegisto-angular-form-error-summary.mjs.map +1 -1
  156. package/fesm2022/trismegisto-angular-forms.mjs +14 -25
  157. package/fesm2022/trismegisto-angular-forms.mjs.map +1 -1
  158. package/fesm2022/trismegisto-angular-gantt.mjs +25 -70
  159. package/fesm2022/trismegisto-angular-gantt.mjs.map +1 -1
  160. package/fesm2022/trismegisto-angular-global-search.mjs +23 -85
  161. package/fesm2022/trismegisto-angular-global-search.mjs.map +1 -1
  162. package/fesm2022/trismegisto-angular-header.mjs +9 -24
  163. package/fesm2022/trismegisto-angular-header.mjs.map +1 -1
  164. package/fesm2022/trismegisto-angular-health-status.mjs +10 -85
  165. package/fesm2022/trismegisto-angular-health-status.mjs.map +1 -1
  166. package/fesm2022/trismegisto-angular-i18n.mjs +27 -132
  167. package/fesm2022/trismegisto-angular-i18n.mjs.map +1 -1
  168. package/fesm2022/trismegisto-angular-icon.mjs +6 -1
  169. package/fesm2022/trismegisto-angular-icon.mjs.map +1 -1
  170. package/fesm2022/trismegisto-angular-identity-document.mjs +19 -94
  171. package/fesm2022/trismegisto-angular-identity-document.mjs.map +1 -1
  172. package/fesm2022/trismegisto-angular-illustration-attention.mjs +2 -2
  173. package/fesm2022/trismegisto-angular-illustration-attention.mjs.map +1 -1
  174. package/fesm2022/trismegisto-angular-illustration-error.mjs +2 -2
  175. package/fesm2022/trismegisto-angular-illustration-error.mjs.map +1 -1
  176. package/fesm2022/trismegisto-angular-illustration-journey-end.mjs +2 -2
  177. package/fesm2022/trismegisto-angular-illustration-journey-end.mjs.map +1 -1
  178. package/fesm2022/trismegisto-angular-illustration-locked.mjs +2 -2
  179. package/fesm2022/trismegisto-angular-illustration-locked.mjs.map +1 -1
  180. package/fesm2022/trismegisto-angular-illustration-no-permission.mjs +2 -2
  181. package/fesm2022/trismegisto-angular-illustration-no-permission.mjs.map +1 -1
  182. package/fesm2022/trismegisto-angular-illustration-no-results.mjs +2 -2
  183. package/fesm2022/trismegisto-angular-illustration-no-results.mjs.map +1 -1
  184. package/fesm2022/trismegisto-angular-illustration-not-found.mjs +2 -2
  185. package/fesm2022/trismegisto-angular-illustration-not-found.mjs.map +1 -1
  186. package/fesm2022/trismegisto-angular-illustration-session-expired.mjs +2 -2
  187. package/fesm2022/trismegisto-angular-illustration-session-expired.mjs.map +1 -1
  188. package/fesm2022/trismegisto-angular-illustration-shared.mjs +3 -23
  189. package/fesm2022/trismegisto-angular-illustration-shared.mjs.map +1 -1
  190. package/fesm2022/trismegisto-angular-illustration-success.mjs +2 -2
  191. package/fesm2022/trismegisto-angular-illustration-success.mjs.map +1 -1
  192. package/fesm2022/trismegisto-angular-illustration-unlocked.mjs +2 -2
  193. package/fesm2022/trismegisto-angular-illustration-unlocked.mjs.map +1 -1
  194. package/fesm2022/trismegisto-angular-image-crop.mjs +52 -358
  195. package/fesm2022/trismegisto-angular-image-crop.mjs.map +1 -1
  196. package/fesm2022/trismegisto-angular-image-gallery.mjs +28 -94
  197. package/fesm2022/trismegisto-angular-image-gallery.mjs.map +1 -1
  198. package/fesm2022/trismegisto-angular-incident.mjs +17 -113
  199. package/fesm2022/trismegisto-angular-incident.mjs.map +1 -1
  200. package/fesm2022/trismegisto-angular-input.mjs +12 -73
  201. package/fesm2022/trismegisto-angular-input.mjs.map +1 -1
  202. package/fesm2022/trismegisto-angular-integration-text.mjs +5 -61
  203. package/fesm2022/trismegisto-angular-integration-text.mjs.map +1 -1
  204. package/fesm2022/trismegisto-angular-integration.mjs +17 -175
  205. package/fesm2022/trismegisto-angular-integration.mjs.map +1 -1
  206. package/fesm2022/trismegisto-angular-invoice.mjs +12 -125
  207. package/fesm2022/trismegisto-angular-invoice.mjs.map +1 -1
  208. package/fesm2022/trismegisto-angular-json-viewer.mjs +27 -168
  209. package/fesm2022/trismegisto-angular-json-viewer.mjs.map +1 -1
  210. package/fesm2022/trismegisto-angular-kanban.mjs +15 -26
  211. package/fesm2022/trismegisto-angular-kanban.mjs.map +1 -1
  212. package/fesm2022/trismegisto-angular-level-badge.mjs +6 -11
  213. package/fesm2022/trismegisto-angular-level-badge.mjs.map +1 -1
  214. package/fesm2022/trismegisto-angular-list-editor.mjs +5 -18
  215. package/fesm2022/trismegisto-angular-list-editor.mjs.map +1 -1
  216. package/fesm2022/trismegisto-angular-location-select.mjs +26 -47
  217. package/fesm2022/trismegisto-angular-location-select.mjs.map +1 -1
  218. package/fesm2022/trismegisto-angular-log-viewer.mjs +13 -53
  219. package/fesm2022/trismegisto-angular-log-viewer.mjs.map +1 -1
  220. package/fesm2022/trismegisto-angular-maintenance-window.mjs +10 -80
  221. package/fesm2022/trismegisto-angular-maintenance-window.mjs.map +1 -1
  222. package/fesm2022/trismegisto-angular-map.mjs +2203 -0
  223. package/fesm2022/trismegisto-angular-map.mjs.map +1 -0
  224. package/fesm2022/trismegisto-angular-member-list.mjs +28 -76
  225. package/fesm2022/trismegisto-angular-member-list.mjs.map +1 -1
  226. package/fesm2022/trismegisto-angular-menu-button.mjs +27 -6
  227. package/fesm2022/trismegisto-angular-menu-button.mjs.map +1 -1
  228. package/fesm2022/trismegisto-angular-menu.mjs +45 -117
  229. package/fesm2022/trismegisto-angular-menu.mjs.map +1 -1
  230. package/fesm2022/trismegisto-angular-menubar.mjs +6 -10
  231. package/fesm2022/trismegisto-angular-menubar.mjs.map +1 -1
  232. package/fesm2022/trismegisto-angular-message-scroller.mjs +33 -167
  233. package/fesm2022/trismegisto-angular-message-scroller.mjs.map +1 -1
  234. package/fesm2022/trismegisto-angular-message.mjs +7 -58
  235. package/fesm2022/trismegisto-angular-message.mjs.map +1 -1
  236. package/fesm2022/trismegisto-angular-metric-explorer.mjs +12 -110
  237. package/fesm2022/trismegisto-angular-metric-explorer.mjs.map +1 -1
  238. package/fesm2022/trismegisto-angular-modal.mjs +32 -34
  239. package/fesm2022/trismegisto-angular-modal.mjs.map +1 -1
  240. package/fesm2022/trismegisto-angular-monitoring-text.mjs +5 -103
  241. package/fesm2022/trismegisto-angular-monitoring-text.mjs.map +1 -1
  242. package/fesm2022/trismegisto-angular-month-picker.mjs +27 -72
  243. package/fesm2022/trismegisto-angular-month-picker.mjs.map +1 -1
  244. package/fesm2022/trismegisto-angular-motion.mjs +39 -163
  245. package/fesm2022/trismegisto-angular-motion.mjs.map +1 -1
  246. package/fesm2022/trismegisto-angular-navigation-menu.mjs +33 -134
  247. package/fesm2022/trismegisto-angular-navigation-menu.mjs.map +1 -1
  248. package/fesm2022/trismegisto-angular-number-field.mjs +14 -48
  249. package/fesm2022/trismegisto-angular-number-field.mjs.map +1 -1
  250. package/fesm2022/trismegisto-angular-observability-text.mjs +3 -236
  251. package/fesm2022/trismegisto-angular-observability-text.mjs.map +1 -1
  252. package/fesm2022/trismegisto-angular-order.mjs +18 -126
  253. package/fesm2022/trismegisto-angular-order.mjs.map +1 -1
  254. package/fesm2022/trismegisto-angular-org-chart.mjs +26 -123
  255. package/fesm2022/trismegisto-angular-org-chart.mjs.map +1 -1
  256. package/fesm2022/trismegisto-angular-overlay-stage.mjs +16 -0
  257. package/fesm2022/trismegisto-angular-overlay-stage.mjs.map +1 -0
  258. package/fesm2022/trismegisto-angular-page-header.mjs +2 -4
  259. package/fesm2022/trismegisto-angular-page-header.mjs.map +1 -1
  260. package/fesm2022/trismegisto-angular-paginator.mjs +20 -25
  261. package/fesm2022/trismegisto-angular-paginator.mjs.map +1 -1
  262. package/fesm2022/trismegisto-angular-password-strength.mjs +4 -76
  263. package/fesm2022/trismegisto-angular-password-strength.mjs.map +1 -1
  264. package/fesm2022/trismegisto-angular-payment-fields.mjs +18 -254
  265. package/fesm2022/trismegisto-angular-payment-fields.mjs.map +1 -1
  266. package/fesm2022/trismegisto-angular-payment-form.mjs +19 -130
  267. package/fesm2022/trismegisto-angular-payment-form.mjs.map +1 -1
  268. package/fesm2022/trismegisto-angular-payment-method.mjs +10 -122
  269. package/fesm2022/trismegisto-angular-payment-method.mjs.map +1 -1
  270. package/fesm2022/trismegisto-angular-pdf-viewer.mjs +7 -41
  271. package/fesm2022/trismegisto-angular-pdf-viewer.mjs.map +1 -1
  272. package/fesm2022/trismegisto-angular-permission-matrix.mjs +4 -34
  273. package/fesm2022/trismegisto-angular-permission-matrix.mjs.map +1 -1
  274. package/fesm2022/trismegisto-angular-pipes.mjs +13 -101
  275. package/fesm2022/trismegisto-angular-pipes.mjs.map +1 -1
  276. package/fesm2022/trismegisto-angular-popconfirm.mjs +11 -27
  277. package/fesm2022/trismegisto-angular-popconfirm.mjs.map +1 -1
  278. package/fesm2022/trismegisto-angular-popover.mjs +61 -222
  279. package/fesm2022/trismegisto-angular-popover.mjs.map +1 -1
  280. package/fesm2022/trismegisto-angular-price.mjs +16 -98
  281. package/fesm2022/trismegisto-angular-price.mjs.map +1 -1
  282. package/fesm2022/trismegisto-angular-product.mjs +38 -132
  283. package/fesm2022/trismegisto-angular-product.mjs.map +1 -1
  284. package/fesm2022/trismegisto-angular-progress.mjs +7 -25
  285. package/fesm2022/trismegisto-angular-progress.mjs.map +1 -1
  286. package/fesm2022/trismegisto-angular-prompt-input.mjs +7 -52
  287. package/fesm2022/trismegisto-angular-prompt-input.mjs.map +1 -1
  288. package/fesm2022/trismegisto-angular-prompt-suggestions.mjs +4 -12
  289. package/fesm2022/trismegisto-angular-prompt-suggestions.mjs.map +1 -1
  290. package/fesm2022/trismegisto-angular-property-view.mjs +13 -14
  291. package/fesm2022/trismegisto-angular-property-view.mjs.map +1 -1
  292. package/fesm2022/trismegisto-angular-questionnaire.mjs +28 -99
  293. package/fesm2022/trismegisto-angular-questionnaire.mjs.map +1 -1
  294. package/fesm2022/trismegisto-angular-radio.mjs +4 -8
  295. package/fesm2022/trismegisto-angular-radio.mjs.map +1 -1
  296. package/fesm2022/trismegisto-angular-rating.mjs +8 -28
  297. package/fesm2022/trismegisto-angular-rating.mjs.map +1 -1
  298. package/fesm2022/trismegisto-angular-reason-dialog.mjs +5 -4
  299. package/fesm2022/trismegisto-angular-reason-dialog.mjs.map +1 -1
  300. package/fesm2022/trismegisto-angular-recurrence-editor.mjs +21 -306
  301. package/fesm2022/trismegisto-angular-recurrence-editor.mjs.map +1 -1
  302. package/fesm2022/trismegisto-angular-release-timeline.mjs +6 -46
  303. package/fesm2022/trismegisto-angular-release-timeline.mjs.map +1 -1
  304. package/fesm2022/trismegisto-angular-reorder-list.mjs +7 -22
  305. package/fesm2022/trismegisto-angular-reorder-list.mjs.map +1 -1
  306. package/fesm2022/trismegisto-angular-report-history.mjs +24 -177
  307. package/fesm2022/trismegisto-angular-report-history.mjs.map +1 -1
  308. package/fesm2022/trismegisto-angular-report-schedule.mjs +19 -125
  309. package/fesm2022/trismegisto-angular-report-schedule.mjs.map +1 -1
  310. package/fesm2022/trismegisto-angular-resource-calendar.mjs +14 -64
  311. package/fesm2022/trismegisto-angular-resource-calendar.mjs.map +1 -1
  312. package/fesm2022/trismegisto-angular-resource-usage.mjs +9 -89
  313. package/fesm2022/trismegisto-angular-resource-usage.mjs.map +1 -1
  314. package/fesm2022/trismegisto-angular-return-request.mjs +21 -107
  315. package/fesm2022/trismegisto-angular-return-request.mjs.map +1 -1
  316. package/fesm2022/trismegisto-angular-rich-text.mjs +100 -1078
  317. package/fesm2022/trismegisto-angular-rich-text.mjs.map +1 -1
  318. package/fesm2022/trismegisto-angular-risk-register.mjs +10 -55
  319. package/fesm2022/trismegisto-angular-risk-register.mjs.map +1 -1
  320. package/fesm2022/trismegisto-angular-save-status.mjs +4 -34
  321. package/fesm2022/trismegisto-angular-save-status.mjs.map +1 -1
  322. package/fesm2022/trismegisto-angular-search-field.mjs +11 -24
  323. package/fesm2022/trismegisto-angular-search-field.mjs.map +1 -1
  324. package/fesm2022/trismegisto-angular-segmented-control.mjs +4 -26
  325. package/fesm2022/trismegisto-angular-segmented-control.mjs.map +1 -1
  326. package/fesm2022/trismegisto-angular-service-map.mjs +24 -191
  327. package/fesm2022/trismegisto-angular-service-map.mjs.map +1 -1
  328. package/fesm2022/trismegisto-angular-service-status.mjs +17 -57
  329. package/fesm2022/trismegisto-angular-service-status.mjs.map +1 -1
  330. package/fesm2022/trismegisto-angular-session-recovery.mjs +3 -32
  331. package/fesm2022/trismegisto-angular-session-recovery.mjs.map +1 -1
  332. package/fesm2022/trismegisto-angular-settings.mjs +78 -50
  333. package/fesm2022/trismegisto-angular-settings.mjs.map +1 -1
  334. package/fesm2022/trismegisto-angular-shipping.mjs +11 -135
  335. package/fesm2022/trismegisto-angular-shipping.mjs.map +1 -1
  336. package/fesm2022/trismegisto-angular-shortcut-list.mjs +30 -73
  337. package/fesm2022/trismegisto-angular-shortcut-list.mjs.map +1 -1
  338. package/fesm2022/trismegisto-angular-sidebar.mjs +16 -39
  339. package/fesm2022/trismegisto-angular-sidebar.mjs.map +1 -1
  340. package/fesm2022/trismegisto-angular-skip-link.mjs +4 -10
  341. package/fesm2022/trismegisto-angular-skip-link.mjs.map +1 -1
  342. package/fesm2022/trismegisto-angular-sla-summary.mjs +10 -122
  343. package/fesm2022/trismegisto-angular-sla-summary.mjs.map +1 -1
  344. package/fesm2022/trismegisto-angular-slider.mjs +16 -49
  345. package/fesm2022/trismegisto-angular-slider.mjs.map +1 -1
  346. package/fesm2022/trismegisto-angular-slot-picker.mjs +31 -122
  347. package/fesm2022/trismegisto-angular-slot-picker.mjs.map +1 -1
  348. package/fesm2022/trismegisto-angular-spine-audit.mjs +1123 -0
  349. package/fesm2022/trismegisto-angular-spine-audit.mjs.map +1 -0
  350. package/fesm2022/trismegisto-angular-spine-auto-service-apps.technical-eMYcFdZd.mjs +95 -0
  351. package/fesm2022/trismegisto-angular-spine-auto-service-apps.technical-eMYcFdZd.mjs.map +1 -0
  352. package/fesm2022/trismegisto-angular-spine-auto-service-apps.usage-C0F_MlCo.mjs +92 -0
  353. package/fesm2022/trismegisto-angular-spine-auto-service-apps.usage-C0F_MlCo.mjs.map +1 -0
  354. package/fesm2022/trismegisto-angular-spine-auto-service-audit.technical-DDNiWP35.mjs +43 -0
  355. package/fesm2022/trismegisto-angular-spine-auto-service-audit.technical-DDNiWP35.mjs.map +1 -0
  356. package/fesm2022/trismegisto-angular-spine-auto-service-audit.usage-IdXMruv5.mjs +64 -0
  357. package/fesm2022/trismegisto-angular-spine-auto-service-audit.usage-IdXMruv5.mjs.map +1 -0
  358. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-audit.component-CBXhh-iC.mjs +42 -0
  359. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-audit.component-CBXhh-iC.mjs.map +1 -0
  360. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client-picker.component-B3rVvnJs.mjs +70 -0
  361. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client-picker.component-B3rVvnJs.mjs.map +1 -0
  362. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client.component-cxncrQTB.mjs +780 -0
  363. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client.component-cxncrQTB.mjs.map +1 -0
  364. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-delete-CXDC4Og6.mjs +48 -0
  365. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-delete-CXDC4Og6.mjs.map +1 -0
  366. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-groups.component-C7j0R1RD.mjs +647 -0
  367. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-groups.component-C7j0R1RD.mjs.map +1 -0
  368. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-login-attempts.component-CZXKTG-H.mjs +41 -0
  369. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-login-attempts.component-CZXKTG-H.mjs.map +1 -0
  370. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-news-page.component-Dl-kjuul.mjs +368 -0
  371. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-news-page.component-Dl-kjuul.mjs.map +1 -0
  372. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-ratings-page.component-CX6tKCB3.mjs +575 -0
  373. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-ratings-page.component-CX6tKCB3.mjs.map +1 -0
  374. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-suggestions-page.component-D8Hi7H-I.mjs +3470 -0
  375. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-suggestions-page.component-D8Hi7H-I.mjs.map +1 -0
  376. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service.component-Bu_Jz4TS.mjs +895 -0
  377. package/fesm2022/trismegisto-angular-spine-auto-service-auto-service.component-Bu_Jz4TS.mjs.map +1 -0
  378. package/fesm2022/trismegisto-angular-spine-auto-service-home.component-DFa8tG6V.mjs +149 -0
  379. package/fesm2022/trismegisto-angular-spine-auto-service-home.component-DFa8tG6V.mjs.map +1 -0
  380. package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.technical-CQkFtjaw.mjs +37 -0
  381. package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.technical-CQkFtjaw.mjs.map +1 -0
  382. package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.usage-BMgLNu7W.mjs +60 -0
  383. package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.usage-BMgLNu7W.mjs.map +1 -0
  384. package/fesm2022/trismegisto-angular-spine-auto-service-optional-id.validator-COEdvZMD.mjs +12 -0
  385. package/fesm2022/trismegisto-angular-spine-auto-service-optional-id.validator-COEdvZMD.mjs.map +1 -0
  386. package/fesm2022/trismegisto-angular-spine-auto-service.mjs +237 -0
  387. package/fesm2022/trismegisto-angular-spine-auto-service.mjs.map +1 -0
  388. package/fesm2022/trismegisto-angular-spine-graphql.mjs +181 -0
  389. package/fesm2022/trismegisto-angular-spine-graphql.mjs.map +1 -0
  390. package/fesm2022/trismegisto-angular-spine-layout-ai-agent-chat.component-BgV6hNNQ.mjs +503 -0
  391. package/fesm2022/trismegisto-angular-spine-layout-ai-agent-chat.component-BgV6hNNQ.mjs.map +1 -0
  392. package/fesm2022/trismegisto-angular-spine-layout-ai-agent-page.component-Dio9azFT.mjs +119 -0
  393. package/fesm2022/trismegisto-angular-spine-layout-ai-agent-page.component-Dio9azFT.mjs.map +1 -0
  394. package/fesm2022/trismegisto-angular-spine-layout-suggestions-page.component-CYcqjY8s.mjs +577 -0
  395. package/fesm2022/trismegisto-angular-spine-layout-suggestions-page.component-CYcqjY8s.mjs.map +1 -0
  396. package/fesm2022/trismegisto-angular-spine-layout-trismegisto-angular-spine-layout-CB0MMMrV.mjs +8678 -0
  397. package/fesm2022/trismegisto-angular-spine-layout-trismegisto-angular-spine-layout-CB0MMMrV.mjs.map +1 -0
  398. package/fesm2022/trismegisto-angular-spine-layout.mjs +2 -0
  399. package/fesm2022/trismegisto-angular-spine-layout.mjs.map +1 -0
  400. package/fesm2022/trismegisto-angular-spine-modal.mjs +143 -0
  401. package/fesm2022/trismegisto-angular-spine-modal.mjs.map +1 -0
  402. package/fesm2022/trismegisto-angular-spine-notification.mjs +74 -0
  403. package/fesm2022/trismegisto-angular-spine-notification.mjs.map +1 -0
  404. package/fesm2022/trismegisto-angular-spine-routing.mjs +317 -0
  405. package/fesm2022/trismegisto-angular-spine-routing.mjs.map +1 -0
  406. package/fesm2022/trismegisto-angular-spine-shell.mjs +409 -0
  407. package/fesm2022/trismegisto-angular-spine-shell.mjs.map +1 -0
  408. package/fesm2022/trismegisto-angular-spine-side-panel.mjs +143 -0
  409. package/fesm2022/trismegisto-angular-spine-side-panel.mjs.map +1 -0
  410. package/fesm2022/trismegisto-angular-spine.mjs +875 -0
  411. package/fesm2022/trismegisto-angular-spine.mjs.map +1 -0
  412. package/fesm2022/trismegisto-angular-split-button.mjs +10 -22
  413. package/fesm2022/trismegisto-angular-split-button.mjs.map +1 -1
  414. package/fesm2022/trismegisto-angular-splitter.mjs +6 -15
  415. package/fesm2022/trismegisto-angular-splitter.mjs.map +1 -1
  416. package/fesm2022/trismegisto-angular-state-page.mjs +11 -28
  417. package/fesm2022/trismegisto-angular-state-page.mjs.map +1 -1
  418. package/fesm2022/trismegisto-angular-state-screen.mjs +3 -3
  419. package/fesm2022/trismegisto-angular-state-screen.mjs.map +1 -1
  420. package/fesm2022/trismegisto-angular-status-badge.mjs +3 -21
  421. package/fesm2022/trismegisto-angular-status-badge.mjs.map +1 -1
  422. package/fesm2022/trismegisto-angular-status-select.mjs +15 -31
  423. package/fesm2022/trismegisto-angular-status-select.mjs.map +1 -1
  424. package/fesm2022/trismegisto-angular-stepper.mjs +5 -13
  425. package/fesm2022/trismegisto-angular-stepper.mjs.map +1 -1
  426. package/fesm2022/trismegisto-angular-storage-usage.mjs +15 -74
  427. package/fesm2022/trismegisto-angular-storage-usage.mjs.map +1 -1
  428. package/fesm2022/trismegisto-angular-swimlane-board.mjs +6 -33
  429. package/fesm2022/trismegisto-angular-swimlane-board.mjs.map +1 -1
  430. package/fesm2022/trismegisto-angular-sync-status.mjs +24 -156
  431. package/fesm2022/trismegisto-angular-sync-status.mjs.map +1 -1
  432. package/fesm2022/trismegisto-angular-tab-bar.mjs +14 -53
  433. package/fesm2022/trismegisto-angular-tab-bar.mjs.map +1 -1
  434. package/fesm2022/trismegisto-angular-tabs.mjs +20 -66
  435. package/fesm2022/trismegisto-angular-tabs.mjs.map +1 -1
  436. package/fesm2022/trismegisto-angular-tag-input.mjs +16 -64
  437. package/fesm2022/trismegisto-angular-tag-input.mjs.map +1 -1
  438. package/fesm2022/trismegisto-angular-task-card.mjs +10 -9
  439. package/fesm2022/trismegisto-angular-task-card.mjs.map +1 -1
  440. package/fesm2022/trismegisto-angular-task-detail.mjs +40 -68
  441. package/fesm2022/trismegisto-angular-task-detail.mjs.map +1 -1
  442. package/fesm2022/trismegisto-angular-terminal.mjs +263 -0
  443. package/fesm2022/trismegisto-angular-terminal.mjs.map +1 -0
  444. package/fesm2022/trismegisto-angular-textarea.mjs +20 -88
  445. package/fesm2022/trismegisto-angular-textarea.mjs.map +1 -1
  446. package/fesm2022/trismegisto-angular-theme-builder.mjs +17 -43
  447. package/fesm2022/trismegisto-angular-theme-builder.mjs.map +1 -1
  448. package/fesm2022/trismegisto-angular-time-picker.mjs +28 -60
  449. package/fesm2022/trismegisto-angular-time-picker.mjs.map +1 -1
  450. package/fesm2022/trismegisto-angular-time-range.mjs +12 -78
  451. package/fesm2022/trismegisto-angular-time-range.mjs.map +1 -1
  452. package/fesm2022/trismegisto-angular-toast.mjs +19 -44
  453. package/fesm2022/trismegisto-angular-toast.mjs.map +1 -1
  454. package/fesm2022/trismegisto-angular-toggle-group.mjs +10 -54
  455. package/fesm2022/trismegisto-angular-toggle-group.mjs.map +1 -1
  456. package/fesm2022/trismegisto-angular-toggletip.mjs +7 -24
  457. package/fesm2022/trismegisto-angular-toggletip.mjs.map +1 -1
  458. package/fesm2022/trismegisto-angular-toolbar.mjs +11 -109
  459. package/fesm2022/trismegisto-angular-toolbar.mjs.map +1 -1
  460. package/fesm2022/trismegisto-angular-tooltip.mjs +22 -133
  461. package/fesm2022/trismegisto-angular-tooltip.mjs.map +1 -1
  462. package/fesm2022/trismegisto-angular-tour.mjs +14 -59
  463. package/fesm2022/trismegisto-angular-tour.mjs.map +1 -1
  464. package/fesm2022/trismegisto-angular-trace-waterfall.mjs +25 -155
  465. package/fesm2022/trismegisto-angular-trace-waterfall.mjs.map +1 -1
  466. package/fesm2022/trismegisto-angular-trace.mjs +4 -31
  467. package/fesm2022/trismegisto-angular-trace.mjs.map +1 -1
  468. package/fesm2022/trismegisto-angular-transaction.mjs +14 -170
  469. package/fesm2022/trismegisto-angular-transaction.mjs.map +1 -1
  470. package/fesm2022/trismegisto-angular-tree-select.mjs +11 -72
  471. package/fesm2022/trismegisto-angular-tree-select.mjs.map +1 -1
  472. package/fesm2022/trismegisto-angular-tree.mjs +135 -341
  473. package/fesm2022/trismegisto-angular-tree.mjs.map +1 -1
  474. package/fesm2022/trismegisto-angular-unsaved-changes.mjs +16 -47
  475. package/fesm2022/trismegisto-angular-unsaved-changes.mjs.map +1 -1
  476. package/fesm2022/trismegisto-angular-uptime-bar.mjs +14 -53
  477. package/fesm2022/trismegisto-angular-uptime-bar.mjs.map +1 -1
  478. package/fesm2022/trismegisto-angular-user-card.mjs +4 -34
  479. package/fesm2022/trismegisto-angular-user-card.mjs.map +1 -1
  480. package/fesm2022/trismegisto-angular-vehicle-plate.mjs +20 -87
  481. package/fesm2022/trismegisto-angular-vehicle-plate.mjs.map +1 -1
  482. package/fesm2022/trismegisto-angular-webhook.mjs +23 -196
  483. package/fesm2022/trismegisto-angular-webhook.mjs.map +1 -1
  484. package/fesm2022/trismegisto-angular-wizard.mjs +25 -46
  485. package/fesm2022/trismegisto-angular-wizard.mjs.map +1 -1
  486. package/fesm2022/trismegisto-angular-workflow-diagram.mjs +12 -74
  487. package/fesm2022/trismegisto-angular-workflow-diagram.mjs.map +1 -1
  488. package/fesm2022/trismegisto-angular-workflow-i18n.mjs +11 -852
  489. package/fesm2022/trismegisto-angular-workflow-i18n.mjs.map +1 -1
  490. package/fesm2022/trismegisto-angular-workload.mjs +3 -3
  491. package/fesm2022/trismegisto-angular-workload.mjs.map +1 -1
  492. package/fesm2022/trismegisto-angular-workspace-persistence.mjs +3 -41
  493. package/fesm2022/trismegisto-angular-workspace-persistence.mjs.map +1 -1
  494. package/fesm2022/trismegisto-angular-workspace.mjs +12 -40
  495. package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
  496. package/fesm2022/trismegisto-angular-zoom.mjs +12 -24
  497. package/fesm2022/trismegisto-angular-zoom.mjs.map +1 -1
  498. package/fesm2022/trismegisto-angular.mjs +1 -0
  499. package/fesm2022/trismegisto-angular.mjs.map +1 -1
  500. package/package.json +106 -6
  501. package/spine/README.md +404 -0
  502. package/types/trismegisto-angular-access-control.d.ts +9 -84
  503. package/types/trismegisto-angular-access-control.d.ts.map +1 -1
  504. package/types/trismegisto-angular-accordion.d.ts +0 -5
  505. package/types/trismegisto-angular-accordion.d.ts.map +1 -1
  506. package/types/trismegisto-angular-account-avatar.d.ts +1 -7
  507. package/types/trismegisto-angular-account-avatar.d.ts.map +1 -1
  508. package/types/trismegisto-angular-account-closure.d.ts +4 -23
  509. package/types/trismegisto-angular-account-closure.d.ts.map +1 -1
  510. package/types/trismegisto-angular-account-forms.d.ts +6 -67
  511. package/types/trismegisto-angular-account-forms.d.ts.map +1 -1
  512. package/types/trismegisto-angular-account-switcher.d.ts +5 -20
  513. package/types/trismegisto-angular-account-switcher.d.ts.map +1 -1
  514. package/types/trismegisto-angular-address.d.ts +5 -49
  515. package/types/trismegisto-angular-address.d.ts.map +1 -1
  516. package/types/trismegisto-angular-agent.d.ts +45 -124
  517. package/types/trismegisto-angular-agent.d.ts.map +1 -1
  518. package/types/trismegisto-angular-alert-history.d.ts +12 -38
  519. package/types/trismegisto-angular-alert-history.d.ts.map +1 -1
  520. package/types/trismegisto-angular-alert-rule-editor.d.ts +8 -46
  521. package/types/trismegisto-angular-alert-rule-editor.d.ts.map +1 -1
  522. package/types/trismegisto-angular-alert.d.ts.map +1 -1
  523. package/types/trismegisto-angular-anchor-nav.d.ts +4 -16
  524. package/types/trismegisto-angular-anchor-nav.d.ts.map +1 -1
  525. package/types/trismegisto-angular-api-exchange.d.ts +3 -10
  526. package/types/trismegisto-angular-api-exchange.d.ts.map +1 -1
  527. package/types/trismegisto-angular-appointment-details.d.ts +5 -11
  528. package/types/trismegisto-angular-appointment-details.d.ts.map +1 -1
  529. package/types/trismegisto-angular-approval.d.ts +5 -19
  530. package/types/trismegisto-angular-approval.d.ts.map +1 -1
  531. package/types/trismegisto-angular-assignee.d.ts +2 -1
  532. package/types/trismegisto-angular-assignee.d.ts.map +1 -1
  533. package/types/trismegisto-angular-attachment.d.ts +2 -8
  534. package/types/trismegisto-angular-attachment.d.ts.map +1 -1
  535. package/types/trismegisto-angular-availability-editor.d.ts +6 -22
  536. package/types/trismegisto-angular-availability-editor.d.ts.map +1 -1
  537. package/types/trismegisto-angular-avatar-group.d.ts +2 -5
  538. package/types/trismegisto-angular-avatar-group.d.ts.map +1 -1
  539. package/types/trismegisto-angular-backlog.d.ts +4 -10
  540. package/types/trismegisto-angular-backlog.d.ts.map +1 -1
  541. package/types/trismegisto-angular-billing.d.ts +11 -83
  542. package/types/trismegisto-angular-billing.d.ts.map +1 -1
  543. package/types/trismegisto-angular-bottom-navigation.d.ts +3 -18
  544. package/types/trismegisto-angular-bottom-navigation.d.ts.map +1 -1
  545. package/types/trismegisto-angular-bottom-sheet.d.ts +3 -23
  546. package/types/trismegisto-angular-bottom-sheet.d.ts.map +1 -1
  547. package/types/trismegisto-angular-breadcrumb.d.ts +2 -9
  548. package/types/trismegisto-angular-breadcrumb.d.ts.map +1 -1
  549. package/types/trismegisto-angular-bubble.d.ts +2 -15
  550. package/types/trismegisto-angular-bubble.d.ts.map +1 -1
  551. package/types/trismegisto-angular-bulk-input.d.ts.map +1 -1
  552. package/types/trismegisto-angular-button-group.d.ts.map +1 -1
  553. package/types/trismegisto-angular-card-container.d.ts.map +1 -1
  554. package/types/trismegisto-angular-carousel.d.ts.map +1 -1
  555. package/types/trismegisto-angular-cart.d.ts +3 -41
  556. package/types/trismegisto-angular-cart.d.ts.map +1 -1
  557. package/types/trismegisto-angular-cascader.d.ts +3 -26
  558. package/types/trismegisto-angular-cascader.d.ts.map +1 -1
  559. package/types/trismegisto-angular-certificate-viewer.d.ts +6 -4
  560. package/types/trismegisto-angular-certificate-viewer.d.ts.map +1 -1
  561. package/types/trismegisto-angular-change-history.d.ts +2 -10
  562. package/types/trismegisto-angular-change-history.d.ts.map +1 -1
  563. package/types/trismegisto-angular-charts.d.ts +305 -0
  564. package/types/trismegisto-angular-charts.d.ts.map +1 -0
  565. package/types/trismegisto-angular-checkbox-group.d.ts.map +1 -1
  566. package/types/trismegisto-angular-chip.d.ts.map +1 -1
  567. package/types/trismegisto-angular-code-diff.d.ts.map +1 -1
  568. package/types/trismegisto-angular-code-input.d.ts.map +1 -1
  569. package/types/trismegisto-angular-code-viewer.d.ts +38 -93
  570. package/types/trismegisto-angular-code-viewer.d.ts.map +1 -1
  571. package/types/trismegisto-angular-color-picker.d.ts +3 -18
  572. package/types/trismegisto-angular-color-picker.d.ts.map +1 -1
  573. package/types/trismegisto-angular-combobox-multi.d.ts.map +1 -1
  574. package/types/trismegisto-angular-combobox.d.ts +8 -25
  575. package/types/trismegisto-angular-combobox.d.ts.map +1 -1
  576. package/types/trismegisto-angular-command-palette.d.ts +22 -35
  577. package/types/trismegisto-angular-command-palette.d.ts.map +1 -1
  578. package/types/trismegisto-angular-commerce-format.d.ts +2 -24
  579. package/types/trismegisto-angular-commerce-format.d.ts.map +1 -1
  580. package/types/trismegisto-angular-connection-wizard.d.ts +5 -28
  581. package/types/trismegisto-angular-connection-wizard.d.ts.map +1 -1
  582. package/types/trismegisto-angular-consent.d.ts +4 -30
  583. package/types/trismegisto-angular-consent.d.ts.map +1 -1
  584. package/types/trismegisto-angular-copy-button.d.ts +2 -2
  585. package/types/trismegisto-angular-copy-button.d.ts.map +1 -1
  586. package/types/trismegisto-angular-credentials-form.d.ts +6 -54
  587. package/types/trismegisto-angular-credentials-form.d.ts.map +1 -1
  588. package/types/trismegisto-angular-data-grid.d.ts +58 -208
  589. package/types/trismegisto-angular-data-grid.d.ts.map +1 -1
  590. package/types/trismegisto-angular-data-source-picker.d.ts +6 -19
  591. package/types/trismegisto-angular-data-source-picker.d.ts.map +1 -1
  592. package/types/trismegisto-angular-date-picker.d.ts +13 -27
  593. package/types/trismegisto-angular-date-picker.d.ts.map +1 -1
  594. package/types/trismegisto-angular-datetime-picker.d.ts +3 -17
  595. package/types/trismegisto-angular-datetime-picker.d.ts.map +1 -1
  596. package/types/trismegisto-angular-deadline.d.ts +3 -3
  597. package/types/trismegisto-angular-deadline.d.ts.map +1 -1
  598. package/types/trismegisto-angular-deploy-pipeline.d.ts +11 -23
  599. package/types/trismegisto-angular-deploy-pipeline.d.ts.map +1 -1
  600. package/types/trismegisto-angular-description-list.d.ts.map +1 -1
  601. package/types/trismegisto-angular-dialog.d.ts +4 -9
  602. package/types/trismegisto-angular-dialog.d.ts.map +1 -1
  603. package/types/trismegisto-angular-direction.d.ts +1 -19
  604. package/types/trismegisto-angular-direction.d.ts.map +1 -1
  605. package/types/trismegisto-angular-drag-drop.d.ts +22 -71
  606. package/types/trismegisto-angular-drag-drop.d.ts.map +1 -1
  607. package/types/trismegisto-angular-drawer.d.ts +15 -5
  608. package/types/trismegisto-angular-drawer.d.ts.map +1 -1
  609. package/types/trismegisto-angular-dropdown.d.ts +2 -3
  610. package/types/trismegisto-angular-dropdown.d.ts.map +1 -1
  611. package/types/trismegisto-angular-dual-list.d.ts.map +1 -1
  612. package/types/trismegisto-angular-endpoint-card.d.ts +6 -27
  613. package/types/trismegisto-angular-endpoint-card.d.ts.map +1 -1
  614. package/types/trismegisto-angular-entity-picker.d.ts +6 -30
  615. package/types/trismegisto-angular-entity-picker.d.ts.map +1 -1
  616. package/types/trismegisto-angular-environment-picker.d.ts +7 -22
  617. package/types/trismegisto-angular-environment-picker.d.ts.map +1 -1
  618. package/types/trismegisto-angular-event-calendar.d.ts +6 -17
  619. package/types/trismegisto-angular-event-calendar.d.ts.map +1 -1
  620. package/types/trismegisto-angular-execution-status.d.ts +3 -1
  621. package/types/trismegisto-angular-execution-status.d.ts.map +1 -1
  622. package/types/trismegisto-angular-fab.d.ts +2 -12
  623. package/types/trismegisto-angular-fab.d.ts.map +1 -1
  624. package/types/trismegisto-angular-feature-flags.d.ts +3 -10
  625. package/types/trismegisto-angular-feature-flags.d.ts.map +1 -1
  626. package/types/trismegisto-angular-field-mapping.d.ts +3 -38
  627. package/types/trismegisto-angular-field-mapping.d.ts.map +1 -1
  628. package/types/trismegisto-angular-file-list.d.ts +7 -21
  629. package/types/trismegisto-angular-file-list.d.ts.map +1 -1
  630. package/types/trismegisto-angular-file-permissions.d.ts +3 -10
  631. package/types/trismegisto-angular-file-permissions.d.ts.map +1 -1
  632. package/types/trismegisto-angular-file-upload.d.ts +3 -2
  633. package/types/trismegisto-angular-file-upload.d.ts.map +1 -1
  634. package/types/trismegisto-angular-file-versions.d.ts +2 -10
  635. package/types/trismegisto-angular-file-versions.d.ts.map +1 -1
  636. package/types/trismegisto-angular-filter-bar.d.ts +2 -3
  637. package/types/trismegisto-angular-filter-bar.d.ts.map +1 -1
  638. package/types/trismegisto-angular-finance.d.ts +12 -108
  639. package/types/trismegisto-angular-finance.d.ts.map +1 -1
  640. package/types/trismegisto-angular-floating-window.d.ts +20 -22
  641. package/types/trismegisto-angular-floating-window.d.ts.map +1 -1
  642. package/types/trismegisto-angular-form-error-summary.d.ts +3 -23
  643. package/types/trismegisto-angular-form-error-summary.d.ts.map +1 -1
  644. package/types/trismegisto-angular-forms.d.ts +5 -2
  645. package/types/trismegisto-angular-forms.d.ts.map +1 -1
  646. package/types/trismegisto-angular-gantt.d.ts +3 -12
  647. package/types/trismegisto-angular-gantt.d.ts.map +1 -1
  648. package/types/trismegisto-angular-global-search.d.ts +2 -27
  649. package/types/trismegisto-angular-global-search.d.ts.map +1 -1
  650. package/types/trismegisto-angular-header.d.ts.map +1 -1
  651. package/types/trismegisto-angular-health-status.d.ts +6 -23
  652. package/types/trismegisto-angular-health-status.d.ts.map +1 -1
  653. package/types/trismegisto-angular-i18n.d.ts +11 -54
  654. package/types/trismegisto-angular-i18n.d.ts.map +1 -1
  655. package/types/trismegisto-angular-icon.d.ts +6 -1
  656. package/types/trismegisto-angular-icon.d.ts.map +1 -1
  657. package/types/trismegisto-angular-identity-document.d.ts +3 -22
  658. package/types/trismegisto-angular-identity-document.d.ts.map +1 -1
  659. package/types/trismegisto-angular-illustration-attention.d.ts +2 -2
  660. package/types/trismegisto-angular-illustration-attention.d.ts.map +1 -1
  661. package/types/trismegisto-angular-illustration-error.d.ts +2 -2
  662. package/types/trismegisto-angular-illustration-error.d.ts.map +1 -1
  663. package/types/trismegisto-angular-illustration-journey-end.d.ts +2 -2
  664. package/types/trismegisto-angular-illustration-journey-end.d.ts.map +1 -1
  665. package/types/trismegisto-angular-illustration-locked.d.ts +2 -2
  666. package/types/trismegisto-angular-illustration-locked.d.ts.map +1 -1
  667. package/types/trismegisto-angular-illustration-no-permission.d.ts +2 -2
  668. package/types/trismegisto-angular-illustration-no-permission.d.ts.map +1 -1
  669. package/types/trismegisto-angular-illustration-no-results.d.ts +2 -2
  670. package/types/trismegisto-angular-illustration-no-results.d.ts.map +1 -1
  671. package/types/trismegisto-angular-illustration-not-found.d.ts +2 -2
  672. package/types/trismegisto-angular-illustration-not-found.d.ts.map +1 -1
  673. package/types/trismegisto-angular-illustration-session-expired.d.ts +2 -2
  674. package/types/trismegisto-angular-illustration-session-expired.d.ts.map +1 -1
  675. package/types/trismegisto-angular-illustration-shared.d.ts +1 -22
  676. package/types/trismegisto-angular-illustration-shared.d.ts.map +1 -1
  677. package/types/trismegisto-angular-illustration-success.d.ts +2 -2
  678. package/types/trismegisto-angular-illustration-success.d.ts.map +1 -1
  679. package/types/trismegisto-angular-illustration-unlocked.d.ts +2 -2
  680. package/types/trismegisto-angular-illustration-unlocked.d.ts.map +1 -1
  681. package/types/trismegisto-angular-image-crop.d.ts +10 -31
  682. package/types/trismegisto-angular-image-crop.d.ts.map +1 -1
  683. package/types/trismegisto-angular-image-gallery.d.ts +4 -26
  684. package/types/trismegisto-angular-image-gallery.d.ts.map +1 -1
  685. package/types/trismegisto-angular-incident.d.ts +8 -70
  686. package/types/trismegisto-angular-incident.d.ts.map +1 -1
  687. package/types/trismegisto-angular-input.d.ts +4 -6
  688. package/types/trismegisto-angular-input.d.ts.map +1 -1
  689. package/types/trismegisto-angular-integration-text.d.ts +4 -33
  690. package/types/trismegisto-angular-integration-text.d.ts.map +1 -1
  691. package/types/trismegisto-angular-integration.d.ts +9 -70
  692. package/types/trismegisto-angular-integration.d.ts.map +1 -1
  693. package/types/trismegisto-angular-invoice.d.ts +5 -70
  694. package/types/trismegisto-angular-invoice.d.ts.map +1 -1
  695. package/types/trismegisto-angular-json-viewer.d.ts +3 -32
  696. package/types/trismegisto-angular-json-viewer.d.ts.map +1 -1
  697. package/types/trismegisto-angular-kanban.d.ts.map +1 -1
  698. package/types/trismegisto-angular-level-badge.d.ts +6 -4
  699. package/types/trismegisto-angular-level-badge.d.ts.map +1 -1
  700. package/types/trismegisto-angular-list-editor.d.ts.map +1 -1
  701. package/types/trismegisto-angular-location-select.d.ts +7 -17
  702. package/types/trismegisto-angular-location-select.d.ts.map +1 -1
  703. package/types/trismegisto-angular-log-viewer.d.ts +3 -35
  704. package/types/trismegisto-angular-log-viewer.d.ts.map +1 -1
  705. package/types/trismegisto-angular-maintenance-window.d.ts +7 -26
  706. package/types/trismegisto-angular-maintenance-window.d.ts.map +1 -1
  707. package/types/trismegisto-angular-map.d.ts +701 -0
  708. package/types/trismegisto-angular-map.d.ts.map +1 -0
  709. package/types/trismegisto-angular-member-list.d.ts +8 -29
  710. package/types/trismegisto-angular-member-list.d.ts.map +1 -1
  711. package/types/trismegisto-angular-menu-button.d.ts +3 -0
  712. package/types/trismegisto-angular-menu-button.d.ts.map +1 -1
  713. package/types/trismegisto-angular-menu.d.ts +2 -11
  714. package/types/trismegisto-angular-menu.d.ts.map +1 -1
  715. package/types/trismegisto-angular-menubar.d.ts.map +1 -1
  716. package/types/trismegisto-angular-message-scroller.d.ts +4 -22
  717. package/types/trismegisto-angular-message-scroller.d.ts.map +1 -1
  718. package/types/trismegisto-angular-message.d.ts +4 -18
  719. package/types/trismegisto-angular-message.d.ts.map +1 -1
  720. package/types/trismegisto-angular-metric-explorer.d.ts +12 -73
  721. package/types/trismegisto-angular-metric-explorer.d.ts.map +1 -1
  722. package/types/trismegisto-angular-modal.d.ts +14 -3
  723. package/types/trismegisto-angular-modal.d.ts.map +1 -1
  724. package/types/trismegisto-angular-monitoring-text.d.ts +4 -41
  725. package/types/trismegisto-angular-monitoring-text.d.ts.map +1 -1
  726. package/types/trismegisto-angular-month-picker.d.ts +7 -21
  727. package/types/trismegisto-angular-month-picker.d.ts.map +1 -1
  728. package/types/trismegisto-angular-motion.d.ts +5 -11
  729. package/types/trismegisto-angular-motion.d.ts.map +1 -1
  730. package/types/trismegisto-angular-navigation-menu.d.ts +3 -13
  731. package/types/trismegisto-angular-navigation-menu.d.ts.map +1 -1
  732. package/types/trismegisto-angular-number-field.d.ts.map +1 -1
  733. package/types/trismegisto-angular-observability-text.d.ts +1 -84
  734. package/types/trismegisto-angular-observability-text.d.ts.map +1 -1
  735. package/types/trismegisto-angular-order.d.ts +78 -136
  736. package/types/trismegisto-angular-order.d.ts.map +1 -1
  737. package/types/trismegisto-angular-org-chart.d.ts +5 -37
  738. package/types/trismegisto-angular-org-chart.d.ts.map +1 -1
  739. package/types/trismegisto-angular-overlay-stage.d.ts +20 -0
  740. package/types/trismegisto-angular-overlay-stage.d.ts.map +1 -0
  741. package/types/trismegisto-angular-page-header.d.ts +3 -3
  742. package/types/trismegisto-angular-page-header.d.ts.map +1 -1
  743. package/types/trismegisto-angular-paginator.d.ts.map +1 -1
  744. package/types/trismegisto-angular-password-strength.d.ts +3 -30
  745. package/types/trismegisto-angular-password-strength.d.ts.map +1 -1
  746. package/types/trismegisto-angular-payment-fields.d.ts +4 -67
  747. package/types/trismegisto-angular-payment-fields.d.ts.map +1 -1
  748. package/types/trismegisto-angular-payment-form.d.ts +10 -49
  749. package/types/trismegisto-angular-payment-form.d.ts.map +1 -1
  750. package/types/trismegisto-angular-payment-method.d.ts +7 -44
  751. package/types/trismegisto-angular-payment-method.d.ts.map +1 -1
  752. package/types/trismegisto-angular-pdf-viewer.d.ts +5 -22
  753. package/types/trismegisto-angular-pdf-viewer.d.ts.map +1 -1
  754. package/types/trismegisto-angular-permission-matrix.d.ts +3 -16
  755. package/types/trismegisto-angular-permission-matrix.d.ts.map +1 -1
  756. package/types/trismegisto-angular-pipes.d.ts +4 -30
  757. package/types/trismegisto-angular-pipes.d.ts.map +1 -1
  758. package/types/trismegisto-angular-popconfirm.d.ts +6 -19
  759. package/types/trismegisto-angular-popconfirm.d.ts.map +1 -1
  760. package/types/trismegisto-angular-popover.d.ts +7 -15
  761. package/types/trismegisto-angular-popover.d.ts.map +1 -1
  762. package/types/trismegisto-angular-price.d.ts +6 -38
  763. package/types/trismegisto-angular-price.d.ts.map +1 -1
  764. package/types/trismegisto-angular-product.d.ts +3 -33
  765. package/types/trismegisto-angular-product.d.ts.map +1 -1
  766. package/types/trismegisto-angular-progress.d.ts +3 -5
  767. package/types/trismegisto-angular-progress.d.ts.map +1 -1
  768. package/types/trismegisto-angular-prompt-input.d.ts +5 -38
  769. package/types/trismegisto-angular-prompt-input.d.ts.map +1 -1
  770. package/types/trismegisto-angular-prompt-suggestions.d.ts +2 -11
  771. package/types/trismegisto-angular-prompt-suggestions.d.ts.map +1 -1
  772. package/types/trismegisto-angular-property-view.d.ts.map +1 -1
  773. package/types/trismegisto-angular-questionnaire.d.ts +5 -23
  774. package/types/trismegisto-angular-questionnaire.d.ts.map +1 -1
  775. package/types/trismegisto-angular-radio.d.ts.map +1 -1
  776. package/types/trismegisto-angular-rating.d.ts +4 -16
  777. package/types/trismegisto-angular-rating.d.ts.map +1 -1
  778. package/types/trismegisto-angular-reason-dialog.d.ts.map +1 -1
  779. package/types/trismegisto-angular-recurrence-editor.d.ts +5 -16
  780. package/types/trismegisto-angular-recurrence-editor.d.ts.map +1 -1
  781. package/types/trismegisto-angular-release-timeline.d.ts +7 -41
  782. package/types/trismegisto-angular-release-timeline.d.ts.map +1 -1
  783. package/types/trismegisto-angular-reorder-list.d.ts.map +1 -1
  784. package/types/trismegisto-angular-report-history.d.ts +8 -21
  785. package/types/trismegisto-angular-report-history.d.ts.map +1 -1
  786. package/types/trismegisto-angular-report-schedule.d.ts +4 -17
  787. package/types/trismegisto-angular-report-schedule.d.ts.map +1 -1
  788. package/types/trismegisto-angular-resource-calendar.d.ts +3 -10
  789. package/types/trismegisto-angular-resource-calendar.d.ts.map +1 -1
  790. package/types/trismegisto-angular-resource-usage.d.ts +6 -57
  791. package/types/trismegisto-angular-resource-usage.d.ts.map +1 -1
  792. package/types/trismegisto-angular-return-request.d.ts +11 -51
  793. package/types/trismegisto-angular-return-request.d.ts.map +1 -1
  794. package/types/trismegisto-angular-rich-text.d.ts +21 -57
  795. package/types/trismegisto-angular-rich-text.d.ts.map +1 -1
  796. package/types/trismegisto-angular-risk-register.d.ts +5 -26
  797. package/types/trismegisto-angular-risk-register.d.ts.map +1 -1
  798. package/types/trismegisto-angular-save-status.d.ts +4 -20
  799. package/types/trismegisto-angular-save-status.d.ts.map +1 -1
  800. package/types/trismegisto-angular-search-field.d.ts +2 -2
  801. package/types/trismegisto-angular-search-field.d.ts.map +1 -1
  802. package/types/trismegisto-angular-segmented-control.d.ts.map +1 -1
  803. package/types/trismegisto-angular-service-map.d.ts +15 -52
  804. package/types/trismegisto-angular-service-map.d.ts.map +1 -1
  805. package/types/trismegisto-angular-service-status.d.ts +6 -28
  806. package/types/trismegisto-angular-service-status.d.ts.map +1 -1
  807. package/types/trismegisto-angular-session-recovery.d.ts +2 -6
  808. package/types/trismegisto-angular-session-recovery.d.ts.map +1 -1
  809. package/types/trismegisto-angular-settings.d.ts +16 -6
  810. package/types/trismegisto-angular-settings.d.ts.map +1 -1
  811. package/types/trismegisto-angular-shipping.d.ts +13 -59
  812. package/types/trismegisto-angular-shipping.d.ts.map +1 -1
  813. package/types/trismegisto-angular-shortcut-list.d.ts +13 -51
  814. package/types/trismegisto-angular-shortcut-list.d.ts.map +1 -1
  815. package/types/trismegisto-angular-sidebar.d.ts +1 -1
  816. package/types/trismegisto-angular-sidebar.d.ts.map +1 -1
  817. package/types/trismegisto-angular-skip-link.d.ts +3 -16
  818. package/types/trismegisto-angular-skip-link.d.ts.map +1 -1
  819. package/types/trismegisto-angular-sla-summary.d.ts +8 -45
  820. package/types/trismegisto-angular-sla-summary.d.ts.map +1 -1
  821. package/types/trismegisto-angular-slider.d.ts +2 -2
  822. package/types/trismegisto-angular-slider.d.ts.map +1 -1
  823. package/types/trismegisto-angular-slot-picker.d.ts +4 -17
  824. package/types/trismegisto-angular-slot-picker.d.ts.map +1 -1
  825. package/types/trismegisto-angular-spine-audit.d.ts +749 -0
  826. package/types/trismegisto-angular-spine-audit.d.ts.map +1 -0
  827. package/types/trismegisto-angular-spine-auto-service.d.ts +143 -0
  828. package/types/trismegisto-angular-spine-auto-service.d.ts.map +1 -0
  829. package/types/trismegisto-angular-spine-graphql.d.ts +47 -0
  830. package/types/trismegisto-angular-spine-graphql.d.ts.map +1 -0
  831. package/types/trismegisto-angular-spine-layout.d.ts +3572 -0
  832. package/types/trismegisto-angular-spine-layout.d.ts.map +1 -0
  833. package/types/trismegisto-angular-spine-modal.d.ts +70 -0
  834. package/types/trismegisto-angular-spine-modal.d.ts.map +1 -0
  835. package/types/trismegisto-angular-spine-notification.d.ts +38 -0
  836. package/types/trismegisto-angular-spine-notification.d.ts.map +1 -0
  837. package/types/trismegisto-angular-spine-routing.d.ts +175 -0
  838. package/types/trismegisto-angular-spine-routing.d.ts.map +1 -0
  839. package/types/trismegisto-angular-spine-shell.d.ts +138 -0
  840. package/types/trismegisto-angular-spine-shell.d.ts.map +1 -0
  841. package/types/trismegisto-angular-spine-side-panel.d.ts +68 -0
  842. package/types/trismegisto-angular-spine-side-panel.d.ts.map +1 -0
  843. package/types/trismegisto-angular-spine.d.ts +344 -0
  844. package/types/trismegisto-angular-spine.d.ts.map +1 -0
  845. package/types/trismegisto-angular-split-button.d.ts +3 -13
  846. package/types/trismegisto-angular-split-button.d.ts.map +1 -1
  847. package/types/trismegisto-angular-splitter.d.ts.map +1 -1
  848. package/types/trismegisto-angular-state-page.d.ts +4 -29
  849. package/types/trismegisto-angular-state-page.d.ts.map +1 -1
  850. package/types/trismegisto-angular-state-screen.d.ts.map +1 -1
  851. package/types/trismegisto-angular-status-badge.d.ts +2 -4
  852. package/types/trismegisto-angular-status-badge.d.ts.map +1 -1
  853. package/types/trismegisto-angular-status-select.d.ts +2 -9
  854. package/types/trismegisto-angular-status-select.d.ts.map +1 -1
  855. package/types/trismegisto-angular-stepper.d.ts.map +1 -1
  856. package/types/trismegisto-angular-storage-usage.d.ts +4 -13
  857. package/types/trismegisto-angular-storage-usage.d.ts.map +1 -1
  858. package/types/trismegisto-angular-swimlane-board.d.ts +4 -6
  859. package/types/trismegisto-angular-swimlane-board.d.ts.map +1 -1
  860. package/types/trismegisto-angular-sync-status.d.ts +10 -63
  861. package/types/trismegisto-angular-sync-status.d.ts.map +1 -1
  862. package/types/trismegisto-angular-tab-bar.d.ts +5 -16
  863. package/types/trismegisto-angular-tab-bar.d.ts.map +1 -1
  864. package/types/trismegisto-angular-tabs.d.ts +1 -5
  865. package/types/trismegisto-angular-tabs.d.ts.map +1 -1
  866. package/types/trismegisto-angular-tag-input.d.ts +3 -23
  867. package/types/trismegisto-angular-tag-input.d.ts.map +1 -1
  868. package/types/trismegisto-angular-task-card.d.ts +5 -9
  869. package/types/trismegisto-angular-task-card.d.ts.map +1 -1
  870. package/types/trismegisto-angular-task-detail.d.ts +7 -25
  871. package/types/trismegisto-angular-task-detail.d.ts.map +1 -1
  872. package/types/trismegisto-angular-terminal.d.ts +90 -0
  873. package/types/trismegisto-angular-terminal.d.ts.map +1 -0
  874. package/types/trismegisto-angular-textarea.d.ts +4 -10
  875. package/types/trismegisto-angular-textarea.d.ts.map +1 -1
  876. package/types/trismegisto-angular-theme-builder.d.ts +2 -3
  877. package/types/trismegisto-angular-theme-builder.d.ts.map +1 -1
  878. package/types/trismegisto-angular-time-picker.d.ts +0 -1
  879. package/types/trismegisto-angular-time-picker.d.ts.map +1 -1
  880. package/types/trismegisto-angular-time-range.d.ts +3 -23
  881. package/types/trismegisto-angular-time-range.d.ts.map +1 -1
  882. package/types/trismegisto-angular-toast.d.ts +1 -1
  883. package/types/trismegisto-angular-toast.d.ts.map +1 -1
  884. package/types/trismegisto-angular-toggle-group.d.ts +3 -3
  885. package/types/trismegisto-angular-toggle-group.d.ts.map +1 -1
  886. package/types/trismegisto-angular-toggletip.d.ts +2 -2
  887. package/types/trismegisto-angular-toggletip.d.ts.map +1 -1
  888. package/types/trismegisto-angular-toolbar.d.ts +2 -4
  889. package/types/trismegisto-angular-toolbar.d.ts.map +1 -1
  890. package/types/trismegisto-angular-tooltip.d.ts +3 -19
  891. package/types/trismegisto-angular-tooltip.d.ts.map +1 -1
  892. package/types/trismegisto-angular-tour.d.ts +3 -21
  893. package/types/trismegisto-angular-tour.d.ts.map +1 -1
  894. package/types/trismegisto-angular-trace-waterfall.d.ts +10 -50
  895. package/types/trismegisto-angular-trace-waterfall.d.ts.map +1 -1
  896. package/types/trismegisto-angular-trace.d.ts +4 -15
  897. package/types/trismegisto-angular-trace.d.ts.map +1 -1
  898. package/types/trismegisto-angular-transaction.d.ts +9 -63
  899. package/types/trismegisto-angular-transaction.d.ts.map +1 -1
  900. package/types/trismegisto-angular-tree-select.d.ts +4 -26
  901. package/types/trismegisto-angular-tree-select.d.ts.map +1 -1
  902. package/types/trismegisto-angular-tree.d.ts +2 -3
  903. package/types/trismegisto-angular-tree.d.ts.map +1 -1
  904. package/types/trismegisto-angular-unsaved-changes.d.ts +6 -20
  905. package/types/trismegisto-angular-unsaved-changes.d.ts.map +1 -1
  906. package/types/trismegisto-angular-uptime-bar.d.ts +4 -16
  907. package/types/trismegisto-angular-uptime-bar.d.ts.map +1 -1
  908. package/types/trismegisto-angular-user-card.d.ts +4 -14
  909. package/types/trismegisto-angular-user-card.d.ts.map +1 -1
  910. package/types/trismegisto-angular-vehicle-plate.d.ts +3 -26
  911. package/types/trismegisto-angular-vehicle-plate.d.ts.map +1 -1
  912. package/types/trismegisto-angular-webhook.d.ts +17 -86
  913. package/types/trismegisto-angular-webhook.d.ts.map +1 -1
  914. package/types/trismegisto-angular-wizard.d.ts +6 -3
  915. package/types/trismegisto-angular-wizard.d.ts.map +1 -1
  916. package/types/trismegisto-angular-workflow-diagram.d.ts +3 -19
  917. package/types/trismegisto-angular-workflow-diagram.d.ts.map +1 -1
  918. package/types/trismegisto-angular-workflow-i18n.d.ts +7 -340
  919. package/types/trismegisto-angular-workflow-i18n.d.ts.map +1 -1
  920. package/types/trismegisto-angular-workload.d.ts.map +1 -1
  921. package/types/trismegisto-angular-workspace-persistence.d.ts +3 -13
  922. package/types/trismegisto-angular-workspace-persistence.d.ts.map +1 -1
  923. package/types/trismegisto-angular-workspace.d.ts.map +1 -1
  924. package/types/trismegisto-angular-zoom.d.ts.map +1 -1
  925. package/types/trismegisto-angular.d.ts +1 -0
  926. package/types/trismegisto-angular.d.ts.map +1 -1
@@ -0,0 +1,2203 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken, inject, input, output, DestroyRef, Directive, computed, ChangeDetectionStrategy, Component, numberAttribute, NgZone, booleanAttribute, viewChild, signal, Injector, ElementRef, afterNextRender, effect, untracked, ViewEncapsulation, model, contentChild, contentChildren } from '@angular/core';
3
+ import { ICON_ARROW, ICON_ARROW_FORWARD, ICON_BOAT, ICON_FLAG, ICON_IMAGE, ICON_MAP_MARKER, ICON_MINUS, ICON_PLUS, ICON_REDO, ICON_REFRESH, ICON_TIMES, ICON_UNDO, ICON_WINDOW_MAX, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
4
+ export { ICON_MAP_MARKER } from '@trismegisto/angular/icon';
5
+ import { polylineItems, polygonItems, circleItems, mapsCatalogs, resolveMapsMessages, DEFAULT_TILE_SIZE, joinAttributions, unionLayerExtents, sameFitExtent, resolveMapLimits, toLatLngBounds, mapScaleBars, toLatLng, sameLatLng, toLayerPoint, panIntoViewDelta, clientToLayerPoint, revealPointDelta, pathClassName, layerTransform, MapEngine, MapInteractions, zoomStatusText, geoJsonShapes, geoJsonSeries, geoJsonItems, clusteringActive, clusterGroups, clusterLabel, boundsOf, clusterFallbackView, clusterKeyHas, excludeRegions, regionPaths, regionLabels, loadBasemapLayer, regionsExtent, choroplethFormatter, joinChoropleth, choroplethClassList, choroplethItems, choroplethDrawn, choroplethTabStop, choroplethListLabel, choroplethLegend, choroplethPanel, regionKeyAction, routeEndpoints, routeEndpointNames, routePathItems, routeStepLocation, routeTotalsText, routeOptions, routeStepViews, routeStepKeyTarget, normalizeHeading, streetViewHeadingText, rotateHeading, streetViewKeyAction } from '@trismegisto/maps';
6
+ import { HermesI18nService, liveCatalog } from '@trismegisto/angular/i18n';
7
+ import { LegendComponent } from '@trismegisto/angular/legend';
8
+ import { prefersReducedMotion } from '@trismegisto/primitives/motion';
9
+ import { SpinnerComponent } from '@trismegisto/angular/spinner';
10
+
11
+ const MAP_ICONS = [ICON_ARROW, ICON_ARROW_FORWARD, ICON_BOAT, ICON_FLAG, ICON_IMAGE, ICON_MAP_MARKER, ICON_MINUS, ICON_PLUS, ICON_REDO, ICON_REFRESH, ICON_TIMES, ICON_UNDO, ICON_WINDOW_MAX];
12
+
13
+ const HM_MAP = new InjectionToken('HM_MAP');
14
+ const HM_MAP_MARKER = new InjectionToken('HM_MAP_MARKER');
15
+
16
+ let nextId$6 = 0;
17
+ /** Base das formas vetoriais: inputs de estilo e registro dos caminhos no SVG do `hm-map`. */
18
+ class MapPathBase {
19
+ #icons = useHermesIcons(MAP_ICONS);
20
+ map = inject(HM_MAP);
21
+ id = `hm-map-path-${++nextId$6}`;
22
+ /** Cor do traço (qualquer valor CSS). Padrão: `--hm-data-categorical-1`. */
23
+ color = input(undefined, ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
24
+ /** Série da paleta de dados (1–8), usada quando `color` não vem. */
25
+ series = input(undefined, ...(ngDevMode ? [{ debugName: "series" }] : /* istanbul ignore next */ []));
26
+ /** Espessura do traço, em px. */
27
+ weight = input(undefined, ...(ngDevMode ? [{ debugName: "weight" }] : /* istanbul ignore next */ []));
28
+ opacity = input(undefined, ...(ngDevMode ? [{ debugName: "opacity" }] : /* istanbul ignore next */ []));
29
+ dashArray = input(undefined, ...(ngDevMode ? [{ debugName: "dashArray" }] : /* istanbul ignore next */ []));
30
+ /** Classe CSS extra no `<path>`. */
31
+ pathClass = input(undefined, ...(ngDevMode ? [{ debugName: "pathClass" }] : /* istanbul ignore next */ []));
32
+ /** Clique na forma (só com `interactive`). */
33
+ shapeClick = output();
34
+ style() {
35
+ return {
36
+ color: this.color(),
37
+ series: this.series(),
38
+ weight: this.weight(),
39
+ opacity: this.opacity(),
40
+ dashArray: this.dashArray(),
41
+ className: this.pathClass(),
42
+ };
43
+ }
44
+ /** Emissor do clique quando a forma reage a ele. */
45
+ clickHandler(interactive) {
46
+ return interactive ? () => this.shapeClick.emit() : undefined;
47
+ }
48
+ /** Registra os caminhos no mapa pela vida do componente. */
49
+ register(items) {
50
+ const remove = this.map.registerPaths(items);
51
+ inject(DestroyRef).onDestroy(remove);
52
+ }
53
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapPathBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
54
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.24", type: MapPathBase, isStandalone: true, inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, series: { classPropertyName: "series", publicName: "series", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, opacity: { classPropertyName: "opacity", publicName: "opacity", isSignal: true, isRequired: false, transformFunction: null }, dashArray: { classPropertyName: "dashArray", publicName: "dashArray", isSignal: true, isRequired: false, transformFunction: null }, pathClass: { classPropertyName: "pathClass", publicName: "pathClass", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { shapeClick: "shapeClick" }, ngImport: i0 });
55
+ }
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapPathBase, decorators: [{
57
+ type: Directive
58
+ }], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], series: [{ type: i0.Input, args: [{ isSignal: true, alias: "series", required: false }] }], weight: [{ type: i0.Input, args: [{ isSignal: true, alias: "weight", required: false }] }], opacity: [{ type: i0.Input, args: [{ isSignal: true, alias: "opacity", required: false }] }], dashArray: [{ type: i0.Input, args: [{ isSignal: true, alias: "dashArray", required: false }] }], pathClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "pathClass", required: false }] }], shapeClick: [{ type: i0.Output, args: ["shapeClick"] }] } });
59
+ /** Linha (ou várias, com `LatLngLike[][]`) desenhada no mapa. */
60
+ class MapPolylineComponent extends MapPathBase {
61
+ #icons = useHermesIcons(MAP_ICONS);
62
+ /** Pontos da linha — ou lista de linhas. */
63
+ points = input.required(...(ngDevMode ? [{ debugName: "points" }] : /* istanbul ignore next */ []));
64
+ /** Reage a clique (emite `shapeClick`). */
65
+ interactive = input(false, ...(ngDevMode ? [{ debugName: "interactive" }] : /* istanbul ignore next */ []));
66
+ items = computed(() => polylineItems(this.id, this.points(), this.style(), this.map.frame(), this.map.tileSize, this.clickHandler(this.interactive())), ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
67
+ constructor() {
68
+ super();
69
+ this.register(this.items);
70
+ }
71
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapPolylineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
72
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: MapPolylineComponent, isStandalone: true, selector: "hm-map-polyline", inputs: { points: { classPropertyName: "points", publicName: "points", isSignal: true, isRequired: true, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
73
+ }
74
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapPolylineComponent, decorators: [{
75
+ type: Component,
76
+ args: [{
77
+ selector: 'hm-map-polyline',
78
+ template: '',
79
+ changeDetection: ChangeDetectionStrategy.OnPush,
80
+ }]
81
+ }], ctorParameters: () => [], propDecorators: { points: [{ type: i0.Input, args: [{ isSignal: true, alias: "points", required: true }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }] } });
82
+ /** Polígono: um anel (`LatLngLike[]`) ou anel externo + furos (`LatLngLike[][]`). */
83
+ class MapPolygonComponent extends MapPathBase {
84
+ #icons = useHermesIcons(MAP_ICONS);
85
+ points = input.required(...(ngDevMode ? [{ debugName: "points" }] : /* istanbul ignore next */ []));
86
+ /** Cor do preenchimento. Padrão: a do traço. */
87
+ fillColor = input(undefined, ...(ngDevMode ? [{ debugName: "fillColor" }] : /* istanbul ignore next */ []));
88
+ fillOpacity = input(undefined, ...(ngDevMode ? [{ debugName: "fillOpacity" }] : /* istanbul ignore next */ []));
89
+ interactive = input(false, ...(ngDevMode ? [{ debugName: "interactive" }] : /* istanbul ignore next */ []));
90
+ items = computed(() => polygonItems(this.id, this.points(), { ...this.style(), fillColor: this.fillColor(), fillOpacity: this.fillOpacity() }, this.map.frame(), this.map.tileSize, this.clickHandler(this.interactive())), ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
91
+ constructor() {
92
+ super();
93
+ this.register(this.items);
94
+ }
95
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapPolygonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
96
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: MapPolygonComponent, isStandalone: true, selector: "hm-map-polygon", inputs: { points: { classPropertyName: "points", publicName: "points", isSignal: true, isRequired: true, transformFunction: null }, fillColor: { classPropertyName: "fillColor", publicName: "fillColor", isSignal: true, isRequired: false, transformFunction: null }, fillOpacity: { classPropertyName: "fillOpacity", publicName: "fillOpacity", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
97
+ }
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapPolygonComponent, decorators: [{
99
+ type: Component,
100
+ args: [{
101
+ selector: 'hm-map-polygon',
102
+ template: '',
103
+ changeDetection: ChangeDetectionStrategy.OnPush,
104
+ }]
105
+ }], ctorParameters: () => [], propDecorators: { points: [{ type: i0.Input, args: [{ isSignal: true, alias: "points", required: true }] }], fillColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "fillColor", required: false }] }], fillOpacity: [{ type: i0.Input, args: [{ isSignal: true, alias: "fillOpacity", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }] } });
106
+ /** Círculo geográfico: centro e raio em metros (acompanha o zoom). */
107
+ class MapCircleComponent extends MapPathBase {
108
+ #icons = useHermesIcons(MAP_ICONS);
109
+ center = input.required(...(ngDevMode ? [{ debugName: "center" }] : /* istanbul ignore next */ []));
110
+ /** Raio em metros. */
111
+ radius = input.required({ ...(ngDevMode ? { debugName: "radius" } : /* istanbul ignore next */ {}), transform: numberAttribute });
112
+ fillColor = input(undefined, ...(ngDevMode ? [{ debugName: "fillColor" }] : /* istanbul ignore next */ []));
113
+ fillOpacity = input(undefined, ...(ngDevMode ? [{ debugName: "fillOpacity" }] : /* istanbul ignore next */ []));
114
+ interactive = input(false, ...(ngDevMode ? [{ debugName: "interactive" }] : /* istanbul ignore next */ []));
115
+ items = computed(() => circleItems(this.id, this.center(), this.radius(), { ...this.style(), fillColor: this.fillColor(), fillOpacity: this.fillOpacity() }, this.map.frame(), this.map.tileSize, this.clickHandler(this.interactive())), ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
116
+ constructor() {
117
+ super();
118
+ this.register(this.items);
119
+ }
120
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapCircleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
121
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: MapCircleComponent, isStandalone: true, selector: "hm-map-circle", inputs: { center: { classPropertyName: "center", publicName: "center", isSignal: true, isRequired: true, transformFunction: null }, radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: true, transformFunction: null }, fillColor: { classPropertyName: "fillColor", publicName: "fillColor", isSignal: true, isRequired: false, transformFunction: null }, fillOpacity: { classPropertyName: "fillOpacity", publicName: "fillOpacity", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
122
+ }
123
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapCircleComponent, decorators: [{
124
+ type: Component,
125
+ args: [{
126
+ selector: 'hm-map-circle',
127
+ template: '',
128
+ changeDetection: ChangeDetectionStrategy.OnPush,
129
+ }]
130
+ }], ctorParameters: () => [], propDecorators: { center: [{ type: i0.Input, args: [{ isSignal: true, alias: "center", required: true }] }], radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: true }] }], fillColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "fillColor", required: false }] }], fillOpacity: [{ type: i0.Input, args: [{ isSignal: true, alias: "fillOpacity", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }] } });
131
+
132
+ const MAPS_I18N_CONFIG = new InjectionToken('MAPS_I18N_CONFIG', {
133
+ providedIn: 'root',
134
+ factory: () => ({}),
135
+ });
136
+ /**
137
+ * Textos dos mapas no idioma ativo da lib (`HermesI18nService.locale`): `setLocale` troca a lib e os
138
+ * mapas juntos. Vista viva, como `HERMES_MESSAGES` (`inject(MAPS_MESSAGES).controls.zoomIn`).
139
+ */
140
+ const MAPS_MESSAGES = new InjectionToken('MAPS_MESSAGES', {
141
+ providedIn: 'root',
142
+ factory: () => {
143
+ const i18n = inject(HermesI18nService);
144
+ const config = inject(MAPS_I18N_CONFIG);
145
+ const catalogs = mapsCatalogs(config);
146
+ const active = computed(() => resolveMapsMessages((byLocale, fallback) => i18n.pick(byLocale, fallback), catalogs, config.override), ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
147
+ return liveCatalog(() => active());
148
+ },
149
+ });
150
+ /** Sobrescreve textos dos mapas e/ou acrescenta idiomas. O idioma em si vem de `provideHermesI18n`. */
151
+ function provideMapsMessages(config) {
152
+ return { provide: MAPS_I18N_CONFIG, useValue: config };
153
+ }
154
+
155
+ let nextId$5 = 0;
156
+ /**
157
+ * Mapa interativo com mapas base vetoriais embutidos, camadas vetoriais (SVG), marcadores e popups.
158
+ *
159
+ * Funciona sem servidor nenhum: o fundo é o do tema (água) e `<hm-map-basemap>`/`<hm-map-choropleth>`
160
+ * desenham países, UFs, municípios... a partir dos dados embutidos no pacote. Tiles raster são opcionais:
161
+ * `tileUrl` é um template (`https://{s}.exemplo/{z}/{x}/{y}.png`) de um servidor do app e `attribution` o
162
+ * crédito exigido por ele (HTML com links, sanitizado); as camadas de dados acrescentam o próprio crédito.
163
+ *
164
+ * Conteúdo: `<hm-map-basemap>`, `<hm-map-choropleth>`, `<hm-map-marker>`, `<hm-map-popup>`,
165
+ * `<hm-map-polyline>`, `<hm-map-polygon>`, `<hm-map-circle>`, `<hm-map-geojson>` e `<hm-map-route>` como filhos diretos.
166
+ *
167
+ * Teclado: com o foco no mapa, setas movem e `+`/`−` aproximam/afastam (Shift amplia o passo). Os
168
+ * marcadores entram na ordem de Tab depois do mapa.
169
+ */
170
+ class MapComponent {
171
+ #icons = useHermesIcons(MAP_ICONS);
172
+ text = inject(MAPS_MESSAGES);
173
+ i18n = inject(HermesI18nService);
174
+ zone = inject(NgZone);
175
+ // ---------------------------------------------------------------- vista
176
+ /** Centro inicial (e sempre que mudar): `[lat, lng]` ou `{ lat, lng }`. */
177
+ center = input([0, 0], ...(ngDevMode ? [{ debugName: "center" }] : /* istanbul ignore next */ []));
178
+ zoom = input(2, { ...(ngDevMode ? { debugName: "zoom" } : /* istanbul ignore next */ {}), transform: numberAttribute });
179
+ minZoom = input(0, { ...(ngDevMode ? { debugName: "minZoom" } : /* istanbul ignore next */ {}), transform: numberAttribute });
180
+ maxZoom = input(19, { ...(ngDevMode ? { debugName: "maxZoom" } : /* istanbul ignore next */ {}), transform: numberAttribute });
181
+ /** Área de onde a vista não sai. */
182
+ maxBounds = input(null, ...(ngDevMode ? [{ debugName: "maxBounds" }] : /* istanbul ignore next */ []));
183
+ /** Enquadra este retângulo (vence `center`/`zoom` quando presente). */
184
+ bounds = input(null, ...(ngDevMode ? [{ debugName: "bounds" }] : /* istanbul ignore next */ []));
185
+ /** Folga, em px, ao enquadrar `bounds`. */
186
+ boundsPadding = input(0, { ...(ngDevMode ? { debugName: "boundsPadding" } : /* istanbul ignore next */ {}), transform: numberAttribute });
187
+ // ---------------------------------------------------------------- tiles
188
+ /** Template da URL dos tiles: `{z}`, `{x}`, `{y}`, `{-y}`, `{s}`, `{r}`. Vazio: sem tiles. */
189
+ tileUrl = input('', ...(ngDevMode ? [{ debugName: "tileUrl" }] : /* istanbul ignore next */ []));
190
+ subdomains = input('abc', ...(ngDevMode ? [{ debugName: "subdomains" }] : /* istanbul ignore next */ []));
191
+ tileSize = DEFAULT_TILE_SIZE;
192
+ /** Zoom máximo servido pelo provedor; acima dele, os tiles são ampliados. */
193
+ maxNativeZoom = input(undefined, ...(ngDevMode ? [{ debugName: "maxNativeZoom" }] : /* istanbul ignore next */ []));
194
+ /** Crédito exigido pelo provedor dos tiles/dados (HTML com links; sanitizado pelo Angular). */
195
+ attribution = input('', ...(ngDevMode ? [{ debugName: "attribution" }] : /* istanbul ignore next */ []));
196
+ // ---------------------------------------------------------------- interface
197
+ /** Nome acessível do mapa (ex.: "Lojas em Recife"). Padrão: o do catálogo. */
198
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
199
+ zoomControl = input(true, { ...(ngDevMode ? { debugName: "zoomControl" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
200
+ /** Mostra a escala gráfica. */
201
+ scale = input(false, { ...(ngDevMode ? { debugName: "scale" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
202
+ scaleUnits = input('metric', ...(ngDevMode ? [{ debugName: "scaleUnits" }] : /* istanbul ignore next */ []));
203
+ /** Desligado: o mapa não responde a arrasto, roda, pinça, duplo clique nem teclado. */
204
+ interactive = input(true, { ...(ngDevMode ? { debugName: "interactive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
205
+ /** Zoom pela roda do mouse (desligue em páginas longas com rolagem). */
206
+ scrollWheelZoom = input(true, { ...(ngDevMode ? { debugName: "scrollWheelZoom" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
207
+ /** Fim de cada mudança de vista feita pela pessoa ou pelos métodos públicos. */
208
+ viewChange = output();
209
+ helpId = `hm-map-help-${++nextId$5}`;
210
+ viewportRef = viewChild.required('viewport');
211
+ paneRef = viewChild.required('pane');
212
+ tilesRef = viewChild.required('tiles');
213
+ engine = null;
214
+ interactions = null;
215
+ readyState = signal(false, ...(ngDevMode ? [{ debugName: "readyState" }] : /* istanbul ignore next */ []));
216
+ ready = this.readyState.asReadonly();
217
+ frameState = signal({ zoom: 2, origin: { x: 0, y: 0 } }, ...(ngDevMode ? [{ debugName: "frameState" }] : /* istanbul ignore next */ []));
218
+ view = signal({ center: { lat: 0, lng: 0 }, zoom: 2 }, ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
219
+ size = signal({ x: 0, y: 0 }, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
220
+ /** A pessoa já mexeu na vista: mudança de tamanho não reenquadra `bounds` por cima dela. */
221
+ userMoved = false;
222
+ status = signal('', ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
223
+ pathSources = signal([], ...(ngDevMode ? [{ debugName: "pathSources" }] : /* istanbul ignore next */ []));
224
+ attributionSources = signal([], ...(ngDevMode ? [{ debugName: "attributionSources" }] : /* istanbul ignore next */ []));
225
+ extentSources = signal([], ...(ngDevMode ? [{ debugName: "extentSources" }] : /* istanbul ignore next */ []));
226
+ panelSources = signal([], ...(ngDevMode ? [{ debugName: "panelSources" }] : /* istanbul ignore next */ []));
227
+ tooltip = signal(null, ...(ngDevMode ? [{ debugName: "tooltip" }] : /* istanbul ignore next */ []));
228
+ /** Painel cuja tabela de dados está aberta sobre o mapa. */
229
+ openTable = signal(null, ...(ngDevMode ? [{ debugName: "openTable" }] : /* istanbul ignore next */ []));
230
+ /** Zoom mínimo que o enquadramento automático na camada deixou (um nível de folga abaixo dele). */
231
+ fitMinZoom = signal(null, ...(ngDevMode ? [{ debugName: "fitMinZoom" }] : /* istanbul ignore next */ []));
232
+ injector = inject(Injector);
233
+ host = inject(ElementRef);
234
+ frame = this.frameState.asReadonly();
235
+ viewSize = this.size.asReadonly();
236
+ paths = computed(() => this.pathSources().flatMap((s) => s()), ...(ngDevMode ? [{ debugName: "paths" }] : /* istanbul ignore next */ []));
237
+ /** Crédito do app (`attribution`) + o de cada camada de dados, sem repetição. */
238
+ attributionHtml = computed(() => joinAttributions([this.attribution(), ...this.attributionSources().map((s) => s())]), ...(ngDevMode ? [{ debugName: "attributionHtml" }] : /* istanbul ignore next */ []));
239
+ panels = computed(() => this.panelSources()
240
+ .map((s) => s())
241
+ .filter((p) => !!p), ...(ngDevMode ? [{ debugName: "panels" }] : /* istanbul ignore next */ []));
242
+ /** União das áreas das camadas que pedem enquadramento (`fit`); o zoom máximo é o menor entre elas. */
243
+ layerExtent = computed(() => unionLayerExtents(this.extentSources().map((source) => source())), { ...(ngDevMode ? { debugName: "layerExtent" } : /* istanbul ignore next */ {}), equal: sameFitExtent });
244
+ /**
245
+ * Limites em vigor: os inputs, apertados pela camada enquadrada — zoom máximo útil dos dados, um nível
246
+ * de folga abaixo do enquadramento e a área da camada com meia largura de margem (quando o app não deu
247
+ * `maxBounds`).
248
+ */
249
+ limits = computed(() => {
250
+ const user = this.maxBounds();
251
+ return resolveMapLimits({
252
+ minZoom: this.minZoom(),
253
+ maxZoom: this.maxZoom(),
254
+ maxBounds: user ? toLatLngBounds(user) : null,
255
+ extent: this.layerExtent(),
256
+ fitMinZoom: this.fitMinZoom(),
257
+ });
258
+ }, ...(ngDevMode ? [{ debugName: "limits" }] : /* istanbul ignore next */ []));
259
+ /** Zoom atual (o inteiro em vigor, não o input). */
260
+ currentZoom = computed(() => this.frameState().zoom, ...(ngDevMode ? [{ debugName: "currentZoom" }] : /* istanbul ignore next */ []));
261
+ /** Zoom mínimo e máximo que a vista permite agora (camadas e `minZoom`/`maxZoom`). */
262
+ zoomRange = computed(() => ({ minZoom: this.limits().minZoom, maxZoom: this.limits().maxZoom }), ...(ngDevMode ? [{ debugName: "zoomRange" }] : /* istanbul ignore next */ []));
263
+ scaleBars = computed(() => {
264
+ const { center, zoom } = this.view();
265
+ return mapScaleBars(center, zoom, this.scaleUnits(), this.i18n.locale(), this.tileSize);
266
+ }, ...(ngDevMode ? [{ debugName: "scaleBars" }] : /* istanbul ignore next */ []));
267
+ constructor() {
268
+ afterNextRender(() => this.zone.runOutsideAngular(() => this.init()));
269
+ inject(DestroyRef).onDestroy(() => {
270
+ this.interactions?.destroy();
271
+ this.engine?.destroy();
272
+ this.engine = null;
273
+ this.interactions = null;
274
+ });
275
+ // Vista vinda dos inputs (centro/zoom); `bounds` vence quando presente.
276
+ effect(() => {
277
+ if (!this.ready())
278
+ return;
279
+ const bounds = this.bounds();
280
+ const padding = this.boundsPadding();
281
+ if (bounds) {
282
+ this.userMoved = false;
283
+ untracked(() => this.engine?.fitBounds(toLatLngBounds(bounds), { x: padding, y: padding }, { silent: true }));
284
+ return;
285
+ }
286
+ const center = toLatLng(this.center());
287
+ const zoom = this.zoom();
288
+ untracked(() => {
289
+ const engine = this.engine;
290
+ if (!engine)
291
+ return;
292
+ if (!sameLatLng(engine.center, center, 1e-7) || engine.zoom !== Math.round(zoom))
293
+ engine.setView(center, zoom, { silent: true });
294
+ });
295
+ });
296
+ // O tamanho muda logo depois da criação (o layout da página ainda assentando) ou mais tarde: `bounds` continua
297
+ // valendo. Sem isto, o zoom fica o do tamanho antigo e o retângulo sai da tela. Depois que a pessoa mexeu, a vista é dela.
298
+ effect(() => {
299
+ if (!this.ready())
300
+ return;
301
+ this.size();
302
+ untracked(() => {
303
+ const bounds = this.bounds();
304
+ if (!bounds || this.userMoved)
305
+ return;
306
+ const padding = this.boundsPadding();
307
+ this.engine?.fitBounds(toLatLngBounds(bounds), { x: padding, y: padding }, { silent: true });
308
+ });
309
+ });
310
+ effect(() => {
311
+ if (!this.ready())
312
+ return;
313
+ const limits = this.limits();
314
+ untracked(() => this.engine?.setLimits(limits));
315
+ });
316
+ // Enquadra a camada de regiões quando ela chega (o `bounds` do app, se houver, vence).
317
+ effect(() => {
318
+ if (!this.ready())
319
+ return;
320
+ const extent = this.layerExtent();
321
+ if (!extent || this.bounds())
322
+ return;
323
+ const padding = this.boundsPadding();
324
+ untracked(() => {
325
+ const engine = this.engine;
326
+ if (!engine)
327
+ return;
328
+ this.fitMinZoom.set(null);
329
+ engine.setLimits(this.limits());
330
+ engine.fitBounds(extent.bounds, { x: padding, y: padding }, { silent: true });
331
+ this.fitMinZoom.set(Math.max(0, engine.zoom - 1));
332
+ });
333
+ });
334
+ effect(() => {
335
+ if (!this.ready())
336
+ return;
337
+ const tiles = this.tileOptions();
338
+ untracked(() => this.engine?.setTiles(tiles));
339
+ });
340
+ effect(() => {
341
+ if (!this.ready())
342
+ return;
343
+ const on = this.interactive();
344
+ const wheel = this.scrollWheelZoom();
345
+ untracked(() => this.interactions?.setOptions({
346
+ dragging: on,
347
+ touchZoom: on,
348
+ doubleClickZoom: on,
349
+ keyboard: on,
350
+ scrollWheelZoom: on && wheel,
351
+ }));
352
+ });
353
+ }
354
+ // ---------------------------------------------------------------- API pública
355
+ setView(center, zoom) {
356
+ this.engine?.setView(toLatLng(center), zoom ?? this.currentZoom());
357
+ }
358
+ zoomIn(delta = 1) {
359
+ this.engine?.zoomBy(delta);
360
+ this.announceZoom();
361
+ }
362
+ zoomOut(delta = 1) {
363
+ this.engine?.zoomBy(-delta);
364
+ this.announceZoom();
365
+ }
366
+ panBy(x, y) {
367
+ this.engine?.panBy({ x, y });
368
+ this.engine?.settle();
369
+ }
370
+ fitBounds(bounds, padding = 0) {
371
+ this.engine?.fitBounds(toLatLngBounds(bounds), { x: padding, y: padding });
372
+ }
373
+ /** Vista atual (centro, zoom e retângulo visível). */
374
+ getView() {
375
+ const engine = this.engine;
376
+ if (!engine) {
377
+ const center = toLatLng(this.center());
378
+ return { center, zoom: this.zoom(), bounds: { south: center.lat, west: center.lng, north: center.lat, east: center.lng } };
379
+ }
380
+ return { center: engine.center, zoom: engine.zoom, bounds: engine.bounds };
381
+ }
382
+ /** Força a releitura do tamanho (ex.: o mapa estava num painel oculto). */
383
+ invalidateSize() {
384
+ const el = this.viewportRef().nativeElement;
385
+ this.engine?.setSize({ x: el.clientWidth, y: el.clientHeight });
386
+ }
387
+ // ---------------------------------------------------------------- HmMapContext
388
+ layerPoint(latlng) {
389
+ return toLayerPoint(latlng, this.frameState(), this.tileSize);
390
+ }
391
+ registerPaths(source) {
392
+ this.pathSources.update((all) => [...all, source]);
393
+ return () => this.pathSources.update((all) => all.filter((s) => s !== source));
394
+ }
395
+ panIntoView(el) {
396
+ const engine = this.engine;
397
+ if (!engine)
398
+ return;
399
+ const delta = panIntoViewDelta(this.viewportRef().nativeElement.getBoundingClientRect(), el.getBoundingClientRect());
400
+ if (delta) {
401
+ engine.panBy(delta);
402
+ engine.settle(false);
403
+ }
404
+ }
405
+ focus() {
406
+ this.viewportRef().nativeElement.focus();
407
+ }
408
+ registerAttribution(source) {
409
+ this.attributionSources.update((all) => [...all, source]);
410
+ return () => this.attributionSources.update((all) => all.filter((s) => s !== source));
411
+ }
412
+ registerExtent(source) {
413
+ this.extentSources.update((all) => [...all, source]);
414
+ return () => this.extentSources.update((all) => all.filter((s) => s !== source));
415
+ }
416
+ registerPanel(source) {
417
+ this.panelSources.update((all) => [...all, source]);
418
+ return () => {
419
+ const id = untracked(source)?.id;
420
+ if (id && this.openTable() === id)
421
+ this.openTable.set(null);
422
+ this.panelSources.update((all) => all.filter((s) => s !== source));
423
+ };
424
+ }
425
+ showTooltip(tip) {
426
+ this.tooltip.set(tip);
427
+ }
428
+ hideTooltip(owner) {
429
+ if (this.tooltip()?.owner === owner)
430
+ this.tooltip.set(null);
431
+ }
432
+ clientToLayer(clientX, clientY) {
433
+ return clientToLayerPoint(clientX, clientY, this.viewportRef().nativeElement.getBoundingClientRect(), this.engine?.offset ?? { x: 0, y: 0 });
434
+ }
435
+ revealLayerPoint(p) {
436
+ const engine = this.engine;
437
+ if (!engine)
438
+ return;
439
+ const delta = revealPointDelta(p, engine.offset, engine.size);
440
+ if (delta) {
441
+ engine.panBy(delta);
442
+ engine.settle(false);
443
+ }
444
+ }
445
+ /** Abre/fecha a tabela de dados de uma camada sobre o mapa (o foco vai para a tabela e volta ao botão). */
446
+ toggleTable(id) {
447
+ if (this.openTable() === id) {
448
+ this.closeTable(id);
449
+ return;
450
+ }
451
+ this.openTable.set(id);
452
+ afterNextRender(() => this.host.nativeElement.querySelector(`[id="${id}-table"] .hm-map__table-scroll`)?.focus(), {
453
+ injector: this.injector,
454
+ });
455
+ }
456
+ closeTable(id) {
457
+ this.openTable.set(null);
458
+ afterNextRender(() => this.host.nativeElement.querySelector(`[id="${id}-toggle"]`)?.focus(), { injector: this.injector });
459
+ }
460
+ // ---------------------------------------------------------------- interno
461
+ pathClass = pathClassName;
462
+ transformFor = layerTransform;
463
+ tileOptions = computed(() => {
464
+ const url = this.tileUrl();
465
+ if (!url)
466
+ return null;
467
+ return { url, subdomains: this.subdomains(), tileSize: this.tileSize, maxNativeZoom: this.maxNativeZoom() };
468
+ }, ...(ngDevMode ? [{ debugName: "tileOptions" }] : /* istanbul ignore next */ []));
469
+ init() {
470
+ const viewport = this.viewportRef().nativeElement;
471
+ const bounds = this.bounds();
472
+ const engine = new MapEngine(viewport, this.paneRef().nativeElement, this.tilesRef().nativeElement, {
473
+ center: toLatLng(this.center()),
474
+ zoom: this.zoom(),
475
+ minZoom: this.minZoom(),
476
+ maxZoom: this.maxZoom(),
477
+ maxBounds: this.maxBounds() ? toLatLngBounds(this.maxBounds()) : null,
478
+ tileSize: this.tileSize,
479
+ tiles: this.tileOptions(),
480
+ }, {
481
+ frame: (frame) => {
482
+ // Chamado já durante a construção do motor (this.engine ainda nulo): o estado inicial é lido logo depois.
483
+ this.frameState.set(frame);
484
+ // A dica está em coordenadas do enquadramento anterior.
485
+ this.tooltip.set(null);
486
+ if (this.engine) {
487
+ this.size.set(this.engine.size);
488
+ this.view.set(this.engine.view);
489
+ }
490
+ },
491
+ moveEnd: (view, user) => {
492
+ this.view.set(view);
493
+ if (user)
494
+ this.userMoved = true;
495
+ if (user && this.engine)
496
+ this.viewChange.emit({ center: view.center, zoom: view.zoom, bounds: this.engine.bounds });
497
+ },
498
+ });
499
+ this.engine = engine;
500
+ this.size.set(engine.size);
501
+ this.view.set(engine.view);
502
+ this.frameState.set(engine.frame);
503
+ if (bounds)
504
+ engine.fitBounds(toLatLngBounds(bounds), { x: this.boundsPadding(), y: this.boundsPadding() }, { silent: true });
505
+ this.interactions = new MapInteractions(viewport, engine, {}, () => prefersReducedMotion(), (action) => {
506
+ if (action.type === 'zoom')
507
+ this.announceZoom();
508
+ });
509
+ this.readyState.set(true);
510
+ }
511
+ announceZoom() {
512
+ const engine = this.engine;
513
+ if (!engine)
514
+ return;
515
+ this.status.set(zoomStatusText(this.text, engine.zoom, engine.maxZoom));
516
+ }
517
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
518
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapComponent, isStandalone: true, selector: "hm-map", inputs: { center: { classPropertyName: "center", publicName: "center", isSignal: true, isRequired: false, transformFunction: null }, zoom: { classPropertyName: "zoom", publicName: "zoom", isSignal: true, isRequired: false, transformFunction: null }, minZoom: { classPropertyName: "minZoom", publicName: "minZoom", isSignal: true, isRequired: false, transformFunction: null }, maxZoom: { classPropertyName: "maxZoom", publicName: "maxZoom", isSignal: true, isRequired: false, transformFunction: null }, maxBounds: { classPropertyName: "maxBounds", publicName: "maxBounds", isSignal: true, isRequired: false, transformFunction: null }, bounds: { classPropertyName: "bounds", publicName: "bounds", isSignal: true, isRequired: false, transformFunction: null }, boundsPadding: { classPropertyName: "boundsPadding", publicName: "boundsPadding", isSignal: true, isRequired: false, transformFunction: null }, tileUrl: { classPropertyName: "tileUrl", publicName: "tileUrl", isSignal: true, isRequired: false, transformFunction: null }, subdomains: { classPropertyName: "subdomains", publicName: "subdomains", isSignal: true, isRequired: false, transformFunction: null }, maxNativeZoom: { classPropertyName: "maxNativeZoom", publicName: "maxNativeZoom", isSignal: true, isRequired: false, transformFunction: null }, attribution: { classPropertyName: "attribution", publicName: "attribution", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, zoomControl: { classPropertyName: "zoomControl", publicName: "zoomControl", isSignal: true, isRequired: false, transformFunction: null }, scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null }, scaleUnits: { classPropertyName: "scaleUnits", publicName: "scaleUnits", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null }, scrollWheelZoom: { classPropertyName: "scrollWheelZoom", publicName: "scrollWheelZoom", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { viewChange: "viewChange" }, host: { properties: { "class.hm-map--static": "!interactive()" }, classAttribute: "hm-map" }, providers: [{ provide: HM_MAP, useExisting: MapComponent }], viewQueries: [{ propertyName: "viewportRef", first: true, predicate: ["viewport"], descendants: true, isSignal: true }, { propertyName: "paneRef", first: true, predicate: ["pane"], descendants: true, isSignal: true }, { propertyName: "tilesRef", first: true, predicate: ["tiles"], descendants: true, isSignal: true }], ngImport: i0, template: `
519
+ <div
520
+ #viewport
521
+ class="hm-map__viewport"
522
+ tabindex="0"
523
+ role="region"
524
+ [attr.aria-roledescription]="text.map.roleDescription"
525
+ [attr.aria-label]="label() || text.map.label"
526
+ [attr.aria-describedby]="helpId"
527
+ >
528
+ <div #pane class="hm-map__pane">
529
+ <div #tiles class="hm-map__tiles"></div>
530
+ <div class="hm-map__regions"><ng-content select="hm-map-basemap, hm-map-choropleth" /></div>
531
+ <svg
532
+ class="hm-map__overlay"
533
+ aria-hidden="true"
534
+ focusable="false"
535
+ [attr.width]="size().x"
536
+ [attr.height]="size().y"
537
+ >
538
+ @for (p of paths(); track p.key) {
539
+ <path
540
+ [attr.d]="p.d"
541
+ [attr.class]="pathClass(p)"
542
+ [style.stroke]="p.stroke"
543
+ [style.fill]="p.fill"
544
+ [style.stroke-width.px]="p.weight"
545
+ [style.stroke-opacity]="p.opacity"
546
+ [style.fill-opacity]="p.fillOpacity"
547
+ [style.stroke-dasharray]="p.dashArray"
548
+ (click)="p.onClick?.()"
549
+ />
550
+ }
551
+ </svg>
552
+ <div class="hm-map__markers"><ng-content select="hm-map-marker, hm-map-cluster, hm-map-route" /></div>
553
+ <div class="hm-map__popups"><ng-content select="hm-map-popup" /></div>
554
+ @if (tooltip(); as tip) {
555
+ <div class="hm-map__tooltip" aria-hidden="true" [style.transform]="transformFor(tip.at)">
556
+ <div class="hm-map__tooltip-box">
557
+ <span class="hm-map__tooltip-title">{{ tip.title }}</span>
558
+ @if (tip.detail) {
559
+ <span class="hm-map__tooltip-detail">{{ tip.detail }}</span>
560
+ }
561
+ </div>
562
+ </div>
563
+ }
564
+ </div>
565
+
566
+ @if (zoomControl()) {
567
+ <div class="hm-map__controls" role="group" data-hm-map-nodrag [attr.aria-label]="text.controls.label">
568
+ <button
569
+ type="button"
570
+ class="hm-map__control"
571
+ [attr.aria-label]="text.controls.zoomIn"
572
+ [disabled]="currentZoom() >= limits().maxZoom"
573
+ (click)="zoomIn()"
574
+ >
575
+ <hm-icon shape="plus" />
576
+ </button>
577
+ <button
578
+ type="button"
579
+ class="hm-map__control"
580
+ [attr.aria-label]="text.controls.zoomOut"
581
+ [disabled]="currentZoom() <= limits().minZoom"
582
+ (click)="zoomOut()"
583
+ >
584
+ <hm-icon shape="minus" />
585
+ </button>
586
+ </div>
587
+ }
588
+
589
+ @if (panels().length) {
590
+ <div class="hm-map__panels" data-hm-map-nodrag>
591
+ @for (panel of panels(); track panel.id) {
592
+ <div class="hm-map__panel">
593
+ @if (panel.legend) {
594
+ <hm-legend class="hm-map__legend" marker="square" [items]="panel.legend" [label]="panel.legendLabel" />
595
+ }
596
+ @if (panel.table) {
597
+ <button
598
+ type="button"
599
+ class="hm-map__table-toggle"
600
+ [id]="panel.id + '-toggle'"
601
+ [attr.aria-expanded]="openTable() === panel.id"
602
+ [attr.aria-controls]="panel.id + '-table'"
603
+ (click)="toggleTable(panel.id)"
604
+ >
605
+ {{ text.data.showTable }}
606
+ </button>
607
+ }
608
+ </div>
609
+ }
610
+ </div>
611
+ }
612
+
613
+ <div class="hm-map__footer" data-hm-map-nodrag>
614
+ @if (scale()) {
615
+ <div class="hm-map__scale" role="group" [attr.aria-label]="text.controls.scale">
616
+ @for (bar of scaleBars(); track bar.unit) {
617
+ <span class="hm-map__scale-bar" [style.width.px]="bar.width">{{ bar.label }}</span>
618
+ }
619
+ </div>
620
+ }
621
+ @if (attributionHtml()) {
622
+ <div class="hm-map__attribution" role="note" [attr.aria-label]="text.map.attribution" [innerHTML]="attributionHtml()"></div>
623
+ }
624
+ </div>
625
+
626
+ <p class="hm-map__sr-only" [id]="helpId">{{ text.map.instructions }}</p>
627
+ <div class="hm-map__sr-only" aria-live="polite" aria-atomic="true">{{ status() }}</div>
628
+ </div>
629
+ @for (panel of panels(); track panel.id) {
630
+ @if (panel.table; as table) {
631
+ <div
632
+ class="hm-map__table"
633
+ [id]="panel.id + '-table'"
634
+ [class.hm-map__sr-only]="openTable() !== panel.id"
635
+ [attr.role]="openTable() === panel.id ? 'region' : null"
636
+ [attr.aria-label]="openTable() === panel.id ? table.caption : null"
637
+ (keydown.escape)="openTable() === panel.id && closeTable(panel.id)"
638
+ >
639
+ @if (openTable() === panel.id) {
640
+ <div class="hm-map__table-bar">
641
+ <button type="button" class="hm-map__table-toggle" (click)="closeTable(panel.id)">{{ text.data.hideTable }}</button>
642
+ </div>
643
+ }
644
+ <div class="hm-map__table-scroll" [attr.tabindex]="openTable() === panel.id ? 0 : null">
645
+ <table class="hm-table hm-table--compact">
646
+ <caption>{{ table.caption }}</caption>
647
+ <thead>
648
+ <tr>
649
+ <th scope="col">{{ table.columns[0] }}</th>
650
+ <th scope="col" class="hm-map__table-num">{{ table.columns[1] }}</th>
651
+ </tr>
652
+ </thead>
653
+ <tbody>
654
+ @for (row of table.rows; track row.key) {
655
+ <tr>
656
+ <th scope="row">{{ row.header }}</th>
657
+ <td class="hm-map__table-num">{{ row.value }}</td>
658
+ </tr>
659
+ }
660
+ </tbody>
661
+ </table>
662
+ </div>
663
+ </div>
664
+ }
665
+ }
666
+ <div class="hm-map__layers" hidden><ng-content /></div>
667
+ `, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: LegendComponent, selector: "hm-legend", inputs: ["items", "orientation", "marker", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
668
+ }
669
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapComponent, decorators: [{
670
+ type: Component,
671
+ args: [{
672
+ selector: 'hm-map',
673
+ imports: [IconComponent, LegendComponent],
674
+ providers: [{ provide: HM_MAP, useExisting: MapComponent }],
675
+ encapsulation: ViewEncapsulation.None,
676
+ changeDetection: ChangeDetectionStrategy.OnPush,
677
+ host: {
678
+ class: 'hm-map',
679
+ '[class.hm-map--static]': '!interactive()',
680
+ },
681
+ template: `
682
+ <div
683
+ #viewport
684
+ class="hm-map__viewport"
685
+ tabindex="0"
686
+ role="region"
687
+ [attr.aria-roledescription]="text.map.roleDescription"
688
+ [attr.aria-label]="label() || text.map.label"
689
+ [attr.aria-describedby]="helpId"
690
+ >
691
+ <div #pane class="hm-map__pane">
692
+ <div #tiles class="hm-map__tiles"></div>
693
+ <div class="hm-map__regions"><ng-content select="hm-map-basemap, hm-map-choropleth" /></div>
694
+ <svg
695
+ class="hm-map__overlay"
696
+ aria-hidden="true"
697
+ focusable="false"
698
+ [attr.width]="size().x"
699
+ [attr.height]="size().y"
700
+ >
701
+ @for (p of paths(); track p.key) {
702
+ <path
703
+ [attr.d]="p.d"
704
+ [attr.class]="pathClass(p)"
705
+ [style.stroke]="p.stroke"
706
+ [style.fill]="p.fill"
707
+ [style.stroke-width.px]="p.weight"
708
+ [style.stroke-opacity]="p.opacity"
709
+ [style.fill-opacity]="p.fillOpacity"
710
+ [style.stroke-dasharray]="p.dashArray"
711
+ (click)="p.onClick?.()"
712
+ />
713
+ }
714
+ </svg>
715
+ <div class="hm-map__markers"><ng-content select="hm-map-marker, hm-map-cluster, hm-map-route" /></div>
716
+ <div class="hm-map__popups"><ng-content select="hm-map-popup" /></div>
717
+ @if (tooltip(); as tip) {
718
+ <div class="hm-map__tooltip" aria-hidden="true" [style.transform]="transformFor(tip.at)">
719
+ <div class="hm-map__tooltip-box">
720
+ <span class="hm-map__tooltip-title">{{ tip.title }}</span>
721
+ @if (tip.detail) {
722
+ <span class="hm-map__tooltip-detail">{{ tip.detail }}</span>
723
+ }
724
+ </div>
725
+ </div>
726
+ }
727
+ </div>
728
+
729
+ @if (zoomControl()) {
730
+ <div class="hm-map__controls" role="group" data-hm-map-nodrag [attr.aria-label]="text.controls.label">
731
+ <button
732
+ type="button"
733
+ class="hm-map__control"
734
+ [attr.aria-label]="text.controls.zoomIn"
735
+ [disabled]="currentZoom() >= limits().maxZoom"
736
+ (click)="zoomIn()"
737
+ >
738
+ <hm-icon shape="plus" />
739
+ </button>
740
+ <button
741
+ type="button"
742
+ class="hm-map__control"
743
+ [attr.aria-label]="text.controls.zoomOut"
744
+ [disabled]="currentZoom() <= limits().minZoom"
745
+ (click)="zoomOut()"
746
+ >
747
+ <hm-icon shape="minus" />
748
+ </button>
749
+ </div>
750
+ }
751
+
752
+ @if (panels().length) {
753
+ <div class="hm-map__panels" data-hm-map-nodrag>
754
+ @for (panel of panels(); track panel.id) {
755
+ <div class="hm-map__panel">
756
+ @if (panel.legend) {
757
+ <hm-legend class="hm-map__legend" marker="square" [items]="panel.legend" [label]="panel.legendLabel" />
758
+ }
759
+ @if (panel.table) {
760
+ <button
761
+ type="button"
762
+ class="hm-map__table-toggle"
763
+ [id]="panel.id + '-toggle'"
764
+ [attr.aria-expanded]="openTable() === panel.id"
765
+ [attr.aria-controls]="panel.id + '-table'"
766
+ (click)="toggleTable(panel.id)"
767
+ >
768
+ {{ text.data.showTable }}
769
+ </button>
770
+ }
771
+ </div>
772
+ }
773
+ </div>
774
+ }
775
+
776
+ <div class="hm-map__footer" data-hm-map-nodrag>
777
+ @if (scale()) {
778
+ <div class="hm-map__scale" role="group" [attr.aria-label]="text.controls.scale">
779
+ @for (bar of scaleBars(); track bar.unit) {
780
+ <span class="hm-map__scale-bar" [style.width.px]="bar.width">{{ bar.label }}</span>
781
+ }
782
+ </div>
783
+ }
784
+ @if (attributionHtml()) {
785
+ <div class="hm-map__attribution" role="note" [attr.aria-label]="text.map.attribution" [innerHTML]="attributionHtml()"></div>
786
+ }
787
+ </div>
788
+
789
+ <p class="hm-map__sr-only" [id]="helpId">{{ text.map.instructions }}</p>
790
+ <div class="hm-map__sr-only" aria-live="polite" aria-atomic="true">{{ status() }}</div>
791
+ </div>
792
+ @for (panel of panels(); track panel.id) {
793
+ @if (panel.table; as table) {
794
+ <div
795
+ class="hm-map__table"
796
+ [id]="panel.id + '-table'"
797
+ [class.hm-map__sr-only]="openTable() !== panel.id"
798
+ [attr.role]="openTable() === panel.id ? 'region' : null"
799
+ [attr.aria-label]="openTable() === panel.id ? table.caption : null"
800
+ (keydown.escape)="openTable() === panel.id && closeTable(panel.id)"
801
+ >
802
+ @if (openTable() === panel.id) {
803
+ <div class="hm-map__table-bar">
804
+ <button type="button" class="hm-map__table-toggle" (click)="closeTable(panel.id)">{{ text.data.hideTable }}</button>
805
+ </div>
806
+ }
807
+ <div class="hm-map__table-scroll" [attr.tabindex]="openTable() === panel.id ? 0 : null">
808
+ <table class="hm-table hm-table--compact">
809
+ <caption>{{ table.caption }}</caption>
810
+ <thead>
811
+ <tr>
812
+ <th scope="col">{{ table.columns[0] }}</th>
813
+ <th scope="col" class="hm-map__table-num">{{ table.columns[1] }}</th>
814
+ </tr>
815
+ </thead>
816
+ <tbody>
817
+ @for (row of table.rows; track row.key) {
818
+ <tr>
819
+ <th scope="row">{{ row.header }}</th>
820
+ <td class="hm-map__table-num">{{ row.value }}</td>
821
+ </tr>
822
+ }
823
+ </tbody>
824
+ </table>
825
+ </div>
826
+ </div>
827
+ }
828
+ }
829
+ <div class="hm-map__layers" hidden><ng-content /></div>
830
+ `,
831
+ }]
832
+ }], ctorParameters: () => [], propDecorators: { center: [{ type: i0.Input, args: [{ isSignal: true, alias: "center", required: false }] }], zoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoom", required: false }] }], minZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "minZoom", required: false }] }], maxZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxZoom", required: false }] }], maxBounds: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxBounds", required: false }] }], bounds: [{ type: i0.Input, args: [{ isSignal: true, alias: "bounds", required: false }] }], boundsPadding: [{ type: i0.Input, args: [{ isSignal: true, alias: "boundsPadding", required: false }] }], tileUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "tileUrl", required: false }] }], subdomains: [{ type: i0.Input, args: [{ isSignal: true, alias: "subdomains", required: false }] }], maxNativeZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxNativeZoom", required: false }] }], attribution: [{ type: i0.Input, args: [{ isSignal: true, alias: "attribution", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], zoomControl: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomControl", required: false }] }], scale: [{ type: i0.Input, args: [{ isSignal: true, alias: "scale", required: false }] }], scaleUnits: [{ type: i0.Input, args: [{ isSignal: true, alias: "scaleUnits", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], scrollWheelZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollWheelZoom", required: false }] }], viewChange: [{ type: i0.Output, args: ["viewChange"] }], viewportRef: [{ type: i0.ViewChild, args: ['viewport', { isSignal: true }] }], paneRef: [{ type: i0.ViewChild, args: ['pane', { isSignal: true }] }], tilesRef: [{ type: i0.ViewChild, args: ['tiles', { isSignal: true }] }] } });
833
+
834
+ /**
835
+ * Camada GeoJSON: Point, LineString, Polygon, as variantes Multi*, GeometryCollection, Feature e
836
+ * FeatureCollection. Cada feature recebe uma cor da paleta de dados (`--hm-data-categorical-*`):
837
+ * `colorProperty` dá uma série por valor distinto daquela propriedade (na ordem em que aparecem);
838
+ * `featureStyle` decide tudo por feature e vence o resto. Pontos viram círculos de `pointRadius` px.
839
+ */
840
+ class MapGeoJsonComponent extends MapPathBase {
841
+ #icons = useHermesIcons(MAP_ICONS);
842
+ data = input(null, ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
843
+ /** Propriedade que separa as features em séries de cor (ex.: `'categoria'`). */
844
+ colorProperty = input(undefined, ...(ngDevMode ? [{ debugName: "colorProperty" }] : /* istanbul ignore next */ []));
845
+ /** Estilo por feature (vence `colorProperty` e os inputs de estilo). */
846
+ featureStyle = input(undefined, ...(ngDevMode ? [{ debugName: "featureStyle" }] : /* istanbul ignore next */ []));
847
+ fillColor = input(undefined, ...(ngDevMode ? [{ debugName: "fillColor" }] : /* istanbul ignore next */ []));
848
+ fillOpacity = input(undefined, ...(ngDevMode ? [{ debugName: "fillOpacity" }] : /* istanbul ignore next */ []));
849
+ /** Raio, em px, dos pontos. */
850
+ pointRadius = input(6, { ...(ngDevMode ? { debugName: "pointRadius" } : /* istanbul ignore next */ {}), transform: numberAttribute });
851
+ /** Features reagem a clique (emite `featureClick`). */
852
+ interactive = input(false, ...(ngDevMode ? [{ debugName: "interactive" }] : /* istanbul ignore next */ []));
853
+ featureClick = output();
854
+ shapes = computed(() => geoJsonShapes(this.data()), ...(ngDevMode ? [{ debugName: "shapes" }] : /* istanbul ignore next */ []));
855
+ /** Série de cada valor distinto de `colorProperty`, na ordem de aparição. */
856
+ seriesByValue = computed(() => geoJsonSeries(this.shapes(), this.colorProperty()), ...(ngDevMode ? [{ debugName: "seriesByValue" }] : /* istanbul ignore next */ []));
857
+ items = computed(() => geoJsonItems(this.id, this.shapes(), {
858
+ style: { ...this.style(), fillColor: this.fillColor(), fillOpacity: this.fillOpacity() },
859
+ colorProperty: this.colorProperty(),
860
+ series: this.seriesByValue(),
861
+ featureStyle: this.featureStyle(),
862
+ pointRadius: this.pointRadius(),
863
+ onFeatureClick: this.interactive() ? (feature, index) => this.featureClick.emit({ feature, index }) : undefined,
864
+ }, this.map.frame(), this.map.tileSize), ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
865
+ constructor() {
866
+ super();
867
+ this.register(this.items);
868
+ }
869
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapGeoJsonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
870
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: MapGeoJsonComponent, isStandalone: true, selector: "hm-map-geojson", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, colorProperty: { classPropertyName: "colorProperty", publicName: "colorProperty", isSignal: true, isRequired: false, transformFunction: null }, featureStyle: { classPropertyName: "featureStyle", publicName: "featureStyle", isSignal: true, isRequired: false, transformFunction: null }, fillColor: { classPropertyName: "fillColor", publicName: "fillColor", isSignal: true, isRequired: false, transformFunction: null }, fillOpacity: { classPropertyName: "fillOpacity", publicName: "fillOpacity", isSignal: true, isRequired: false, transformFunction: null }, pointRadius: { classPropertyName: "pointRadius", publicName: "pointRadius", isSignal: true, isRequired: false, transformFunction: null }, interactive: { classPropertyName: "interactive", publicName: "interactive", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { featureClick: "featureClick" }, usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
871
+ }
872
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapGeoJsonComponent, decorators: [{
873
+ type: Component,
874
+ args: [{
875
+ selector: 'hm-map-geojson',
876
+ template: '',
877
+ changeDetection: ChangeDetectionStrategy.OnPush,
878
+ }]
879
+ }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], colorProperty: [{ type: i0.Input, args: [{ isSignal: true, alias: "colorProperty", required: false }] }], featureStyle: [{ type: i0.Input, args: [{ isSignal: true, alias: "featureStyle", required: false }] }], fillColor: [{ type: i0.Input, args: [{ isSignal: true, alias: "fillColor", required: false }] }], fillOpacity: [{ type: i0.Input, args: [{ isSignal: true, alias: "fillOpacity", required: false }] }], pointRadius: [{ type: i0.Input, args: [{ isSignal: true, alias: "pointRadius", required: false }] }], interactive: [{ type: i0.Input, args: [{ isSignal: true, alias: "interactive", required: false }] }], featureClick: [{ type: i0.Output, args: ["featureClick"] }] } });
880
+
881
+ let nextId$4 = 0;
882
+ /**
883
+ * Balão ancorado num ponto do mapa. Dentro de um `<hm-map-marker>` ancora no marcador e abre/fecha com
884
+ * ele; solto no `<hm-map>`, ancora em `position`. É um diálogo não modal: ao abrir pela pessoa, recebe
885
+ * o foco e o mapa se move para ele caber na tela; Esc ou o botão fechar devolvem o foco ao marcador.
886
+ */
887
+ class MapPopupComponent {
888
+ #icons = useHermesIcons(MAP_ICONS);
889
+ text = inject(MAPS_MESSAGES);
890
+ map = inject(HM_MAP);
891
+ marker = inject(HM_MAP_MARKER, { optional: true });
892
+ host = inject(ElementRef);
893
+ injector = inject(Injector);
894
+ /** Ponto de ancoragem quando o popup não está dentro de um marcador. */
895
+ position = input(null, ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
896
+ /** Aberto/fechado (`[(open)]`). */
897
+ open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
898
+ /** Nome acessível do diálogo. Padrão: "Detalhes do local". */
899
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
900
+ closeButton = input(true, { ...(ngDevMode ? { debugName: "closeButton" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
901
+ boxId = `hm-map-popup-${++nextId$4}`;
902
+ anchored = !!this.marker;
903
+ constructor() {
904
+ // Aberto por qualquer caminho (input, marcador, `show`): o mapa se move para o balão caber na tela.
905
+ // Espera o mapa ficar pronto: antes disso o marcador ainda não está na posição real.
906
+ effect(() => {
907
+ if (!this.open() || !this.map.ready())
908
+ return;
909
+ afterNextRender(() => {
910
+ const box = this.box();
911
+ if (box)
912
+ this.map.panIntoView(box);
913
+ }, { injector: this.injector });
914
+ });
915
+ }
916
+ transform = computed(() => {
917
+ const position = this.position();
918
+ if (this.anchored || !position)
919
+ return null;
920
+ return layerTransform(this.map.layerPoint(toLatLng(position)));
921
+ }, ...(ngDevMode ? [{ debugName: "transform" }] : /* istanbul ignore next */ []));
922
+ /** Alterna; `byUser` move o foco para o popup e ajusta o mapa para ele caber. */
923
+ toggle(byUser = false) {
924
+ if (this.open())
925
+ this.close(byUser);
926
+ else
927
+ this.show(byUser);
928
+ }
929
+ show(byUser = false) {
930
+ this.open.set(true);
931
+ if (!byUser)
932
+ return;
933
+ afterNextRender(() => this.box()?.focus({ preventScroll: true }), { injector: this.injector });
934
+ }
935
+ box() {
936
+ return this.host.nativeElement.querySelector('.hm-map-popup__box');
937
+ }
938
+ close(restoreFocus = false) {
939
+ const hadFocus = this.host.nativeElement.contains(this.host.nativeElement.ownerDocument.activeElement);
940
+ this.open.set(false);
941
+ if (restoreFocus || hadFocus) {
942
+ if (this.marker)
943
+ this.marker.focus();
944
+ else
945
+ this.map.focus();
946
+ }
947
+ }
948
+ onEscape(event) {
949
+ event.stopPropagation();
950
+ this.close(true);
951
+ }
952
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapPopupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
953
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapPopupComponent, isStandalone: true, selector: "hm-map-popup", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, closeButton: { classPropertyName: "closeButton", publicName: "closeButton", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { properties: { "class.hm-map-popup--anchored": "anchored", "style.transform": "transform()" }, classAttribute: "hm-map-popup" }, ngImport: i0, template: `
954
+ @if (open()) {
955
+ <div
956
+ class="hm-map-popup__box"
957
+ role="dialog"
958
+ tabindex="-1"
959
+ data-hm-map-nodrag
960
+ [id]="boxId"
961
+ [attr.aria-label]="label() || text.popup.label"
962
+ (keydown.escape)="onEscape($event)"
963
+ >
964
+ @if (closeButton()) {
965
+ <button type="button" class="hm-map-popup__close" [attr.aria-label]="text.popup.close" (click)="close(true)">
966
+ <hm-icon shape="times" />
967
+ </button>
968
+ }
969
+ <div class="hm-map-popup__content"><ng-content /></div>
970
+ </div>
971
+ }
972
+ `, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
973
+ }
974
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapPopupComponent, decorators: [{
975
+ type: Component,
976
+ args: [{
977
+ selector: 'hm-map-popup',
978
+ imports: [IconComponent],
979
+ encapsulation: ViewEncapsulation.None,
980
+ changeDetection: ChangeDetectionStrategy.OnPush,
981
+ host: {
982
+ class: 'hm-map-popup',
983
+ '[class.hm-map-popup--anchored]': 'anchored',
984
+ '[style.transform]': 'transform()',
985
+ },
986
+ template: `
987
+ @if (open()) {
988
+ <div
989
+ class="hm-map-popup__box"
990
+ role="dialog"
991
+ tabindex="-1"
992
+ data-hm-map-nodrag
993
+ [id]="boxId"
994
+ [attr.aria-label]="label() || text.popup.label"
995
+ (keydown.escape)="onEscape($event)"
996
+ >
997
+ @if (closeButton()) {
998
+ <button type="button" class="hm-map-popup__close" [attr.aria-label]="text.popup.close" (click)="close(true)">
999
+ <hm-icon shape="times" />
1000
+ </button>
1001
+ }
1002
+ <div class="hm-map-popup__content"><ng-content /></div>
1003
+ </div>
1004
+ }
1005
+ `,
1006
+ }]
1007
+ }], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], closeButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeButton", required: false }] }] } });
1008
+
1009
+ let nextId$3 = 0;
1010
+ /**
1011
+ * Marcador num ponto do mapa: um botão focável com nome acessível (`label`). O desenho padrão é o ícone
1012
+ * `map-marker`; conteúdo projetado substitui o desenho (um `hm-icon` com outro `shape`, um avatar...).
1013
+ * Um `<hm-map-popup>` filho abre e fecha ao acionar o marcador (clique, Enter ou Espaço).
1014
+ */
1015
+ class MapMarkerComponent {
1016
+ #icons = useHermesIcons(MAP_ICONS);
1017
+ text = inject(MAPS_MESSAGES);
1018
+ map = inject(HM_MAP);
1019
+ host = inject(ElementRef);
1020
+ /** Posição: `[lat, lng]` ou `{ lat, lng }`. */
1021
+ position = input.required(...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
1022
+ /** Nome acessível (o que o leitor de tela anuncia). Padrão: "Marcador". */
1023
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1024
+ /** Ponto de ancoragem do desenho: a ponta de baixo (alfinete) ou o centro (bolinha, avatar). */
1025
+ anchor = input('bottom', ...(ngDevMode ? [{ debugName: "anchor" }] : /* istanbul ignore next */ []));
1026
+ /** Cor do desenho padrão (qualquer valor CSS, ex.: `var(--hm-data-categorical-3)`). */
1027
+ color = input('', ...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
1028
+ markerClick = output();
1029
+ popup = contentChild(MapPopupComponent, ...(ngDevMode ? [{ debugName: "popup" }] : /* istanbul ignore next */ []));
1030
+ buttonId = `hm-map-marker-${++nextId$3}`;
1031
+ /** Escondido dentro de um grupo do `hm-map-cluster` (quem liga e desliga é o grupo). */
1032
+ clustered = signal(false, ...(ngDevMode ? [{ debugName: "clustered" }] : /* istanbul ignore next */ []));
1033
+ transform = computed(() => layerTransform(this.map.layerPoint(toLatLng(this.position()))), ...(ngDevMode ? [{ debugName: "transform" }] : /* istanbul ignore next */ []));
1034
+ activate() {
1035
+ this.markerClick.emit();
1036
+ const popup = this.popup();
1037
+ if (popup)
1038
+ popup.toggle(true);
1039
+ }
1040
+ /** Devolve o foco ao botão do marcador (usado pelo popup ao fechar). */
1041
+ focus() {
1042
+ this.host.nativeElement.querySelector('.hm-map-marker__button')?.focus();
1043
+ }
1044
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1045
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "21.2.24", type: MapMarkerComponent, isStandalone: true, selector: "hm-map-marker", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { markerClick: "markerClick" }, host: { properties: { "class.hm-map-marker--center": "anchor() === 'center'", "class.hm-map-marker--open": "popup()?.open()", "style.transform": "transform()", "style.--hm-map-marker-color": "color() || null", "class.hm-map-marker--clustered": "clustered()", "attr.hidden": "clustered() || null" }, classAttribute: "hm-map-marker" }, providers: [{ provide: HM_MAP_MARKER, useExisting: MapMarkerComponent }], queries: [{ propertyName: "popup", first: true, predicate: MapPopupComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
1046
+ <button
1047
+ type="button"
1048
+ class="hm-map-marker__button"
1049
+ [id]="buttonId"
1050
+ [attr.aria-label]="label() || text.marker.label"
1051
+ [attr.aria-expanded]="popup() ? !!popup()!.open() : null"
1052
+ [attr.aria-controls]="popup()?.open() ? popup()!.boxId : null"
1053
+ (click)="activate()"
1054
+ >
1055
+ <ng-content><hm-icon class="hm-map-marker__icon" shape="map-marker" solid /></ng-content>
1056
+ </button>
1057
+ <ng-content select="hm-map-popup" />
1058
+ `, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1059
+ }
1060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapMarkerComponent, decorators: [{
1061
+ type: Component,
1062
+ args: [{
1063
+ selector: 'hm-map-marker',
1064
+ imports: [IconComponent],
1065
+ providers: [{ provide: HM_MAP_MARKER, useExisting: MapMarkerComponent }],
1066
+ encapsulation: ViewEncapsulation.None,
1067
+ changeDetection: ChangeDetectionStrategy.OnPush,
1068
+ host: {
1069
+ class: 'hm-map-marker',
1070
+ '[class.hm-map-marker--center]': "anchor() === 'center'",
1071
+ '[class.hm-map-marker--open]': 'popup()?.open()',
1072
+ '[style.transform]': 'transform()',
1073
+ '[style.--hm-map-marker-color]': 'color() || null',
1074
+ '[class.hm-map-marker--clustered]': 'clustered()',
1075
+ '[attr.hidden]': 'clustered() || null',
1076
+ },
1077
+ template: `
1078
+ <button
1079
+ type="button"
1080
+ class="hm-map-marker__button"
1081
+ [id]="buttonId"
1082
+ [attr.aria-label]="label() || text.marker.label"
1083
+ [attr.aria-expanded]="popup() ? !!popup()!.open() : null"
1084
+ [attr.aria-controls]="popup()?.open() ? popup()!.boxId : null"
1085
+ (click)="activate()"
1086
+ >
1087
+ <ng-content><hm-icon class="hm-map-marker__icon" shape="map-marker" solid /></ng-content>
1088
+ </button>
1089
+ <ng-content select="hm-map-popup" />
1090
+ `,
1091
+ }]
1092
+ }], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], anchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchor", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], markerClick: [{ type: i0.Output, args: ["markerClick"] }], popup: [{ type: i0.ContentChild, args: [i0.forwardRef(() => MapPopupComponent), { isSignal: true }] }] } });
1093
+
1094
+ /**
1095
+ * Agrupa os `<hm-map-marker>` filhos que ficam próximos na tela (opt-in: só os marcadores dentro dele).
1096
+ * Cada grupo vira um botão com a contagem; acionar (clique, Enter ou Espaço) aproxima até o grupo se
1097
+ * separar; no zoom máximo, mostra os marcadores do grupo. Os grupos se refazem a cada zoom.
1098
+ */
1099
+ class MapClusterComponent {
1100
+ #icons = useHermesIcons(MAP_ICONS);
1101
+ map = inject(HM_MAP);
1102
+ host = inject(ElementRef);
1103
+ text = inject(MAPS_MESSAGES);
1104
+ /** Distância (px na tela) até a qual marcadores entram no mesmo grupo. */
1105
+ radius = input(56, { ...(ngDevMode ? { debugName: "radius" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1106
+ /** Desliga o agrupamento (os marcadores aparecem todos), sem tirar o componente. */
1107
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1108
+ /** A partir deste zoom não agrupa mais; padrão: agrupa até o zoom máximo. */
1109
+ disableAtZoom = input(null, ...(ngDevMode ? [{ debugName: "disableAtZoom" }] : /* istanbul ignore next */ []));
1110
+ /** Emite ao acionar um grupo (antes de aproximar ou expandir). */
1111
+ clusterClick = output();
1112
+ markers = contentChildren(MapMarkerComponent, ...(ngDevMode ? [{ debugName: "markers" }] : /* istanbul ignore next */ []));
1113
+ /** Grupos abertos no zoom máximo (chave = ids dos marcadores); fecham quando o zoom muda. */
1114
+ expanded = signal(new Set(), ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
1115
+ expandedAtZoom = null;
1116
+ groups = computed(() => {
1117
+ const markers = this.markers();
1118
+ const frame = this.map.frame();
1119
+ const stop = this.disableAtZoom();
1120
+ if (!clusteringActive(this.disabled(), this.map.ready(), frame.zoom, stop))
1121
+ return [];
1122
+ const points = markers.map((m) => this.map.layerPoint(toLatLng(m.position())));
1123
+ const atMax = frame.zoom >= this.map.zoomRange().maxZoom;
1124
+ return clusterGroups(markers, points, (m) => m.buttonId, this.radius(), atMax, this.expanded()).map((g) => ({
1125
+ key: g.key,
1126
+ markers: g.members,
1127
+ x: g.x,
1128
+ y: g.y,
1129
+ count: g.count,
1130
+ atMax: g.atMax,
1131
+ }));
1132
+ }, ...(ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []));
1133
+ constructor() {
1134
+ // Esconde os marcadores que estão dentro de um grupo; mostra os demais.
1135
+ effect(() => {
1136
+ const hidden = new Set(this.groups().flatMap((g) => g.markers));
1137
+ const markers = this.markers();
1138
+ untracked(() => markers.forEach((m) => m.clustered.set(hidden.has(m))));
1139
+ });
1140
+ // Grupos abertos valem só para o zoom em que foram abertos.
1141
+ effect(() => {
1142
+ const zoom = this.map.frame().zoom;
1143
+ untracked(() => {
1144
+ if (this.expandedAtZoom !== null && zoom !== this.expandedAtZoom) {
1145
+ this.expandedAtZoom = null;
1146
+ this.expanded.set(new Set());
1147
+ }
1148
+ });
1149
+ });
1150
+ }
1151
+ labelFor(group) {
1152
+ return clusterLabel(this.text, group.count, group.atMax);
1153
+ }
1154
+ transformFor(group) {
1155
+ return layerTransform(group);
1156
+ }
1157
+ activate(group) {
1158
+ const positions = group.markers.map((m) => toLatLng(m.position()));
1159
+ this.clusterClick.emit({ markers: group.markers, positions });
1160
+ if (group.atMax) {
1161
+ // Sem como aproximar mais: abre o grupo e leva o foco ao primeiro marcador dele.
1162
+ this.expandedAtZoom = this.map.frame().zoom;
1163
+ this.expanded.set(new Set([...this.expanded(), group.key]));
1164
+ queueMicrotask(() => group.markers[0]?.focus());
1165
+ return;
1166
+ }
1167
+ const before = this.map.frame().zoom;
1168
+ const bounds = boundsOf(positions);
1169
+ if (bounds)
1170
+ this.map.fitBounds(bounds, this.radius());
1171
+ // Área pequena demais para enquadrar (ou vista sem tamanho): aproxima dois níveis no centro do grupo.
1172
+ const fallback = clusterFallbackView(bounds, before, this.map.frame().zoom, this.map.zoomRange().maxZoom);
1173
+ if (fallback)
1174
+ this.map.setView(fallback.center, fallback.zoom);
1175
+ this.refocus(group.markers[0]);
1176
+ }
1177
+ /**
1178
+ * O botão acionado some ao aproximar (os grupos se refazem): o foco vai para o grupo que ainda
1179
+ * contém o primeiro marcador ou, se ele ficou sozinho, para o próprio marcador.
1180
+ */
1181
+ refocus(marker) {
1182
+ if (!marker)
1183
+ return;
1184
+ setTimeout(() => {
1185
+ const buttons = this.host.nativeElement.querySelectorAll('[data-hm-cluster-members]');
1186
+ const holder = [...buttons].find((b) => clusterKeyHas(b.dataset['hmClusterMembers'], marker.buttonId));
1187
+ if (holder)
1188
+ holder.focus();
1189
+ else
1190
+ marker.focus();
1191
+ });
1192
+ }
1193
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapClusterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1194
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapClusterComponent, isStandalone: true, selector: "hm-map-cluster", inputs: { radius: { classPropertyName: "radius", publicName: "radius", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, disableAtZoom: { classPropertyName: "disableAtZoom", publicName: "disableAtZoom", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { clusterClick: "clusterClick" }, host: { classAttribute: "hm-map-cluster" }, queries: [{ propertyName: "markers", predicate: MapMarkerComponent, isSignal: true }], ngImport: i0, template: `
1195
+ <ng-content select="hm-map-marker" />
1196
+ @for (group of groups(); track group.key) {
1197
+ <div class="hm-map-cluster__group" [style.transform]="transformFor(group)">
1198
+ <button
1199
+ type="button"
1200
+ class="hm-map-cluster__button"
1201
+ [class.hm-map-cluster__button--large]="group.count >= 10"
1202
+ [attr.aria-label]="labelFor(group)"
1203
+ [attr.data-hm-cluster-members]="group.key"
1204
+ (click)="activate(group)"
1205
+ >
1206
+ <span aria-hidden="true">{{ group.count }}</span>
1207
+ </button>
1208
+ </div>
1209
+ }
1210
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1211
+ }
1212
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapClusterComponent, decorators: [{
1213
+ type: Component,
1214
+ args: [{
1215
+ selector: 'hm-map-cluster',
1216
+ encapsulation: ViewEncapsulation.None,
1217
+ changeDetection: ChangeDetectionStrategy.OnPush,
1218
+ host: { class: 'hm-map-cluster' },
1219
+ template: `
1220
+ <ng-content select="hm-map-marker" />
1221
+ @for (group of groups(); track group.key) {
1222
+ <div class="hm-map-cluster__group" [style.transform]="transformFor(group)">
1223
+ <button
1224
+ type="button"
1225
+ class="hm-map-cluster__button"
1226
+ [class.hm-map-cluster__button--large]="group.count >= 10"
1227
+ [attr.aria-label]="labelFor(group)"
1228
+ [attr.data-hm-cluster-members]="group.key"
1229
+ (click)="activate(group)"
1230
+ >
1231
+ <span aria-hidden="true">{{ group.count }}</span>
1232
+ </button>
1233
+ </div>
1234
+ }
1235
+ `,
1236
+ }]
1237
+ }], ctorParameters: () => [], propDecorators: { radius: [{ type: i0.Input, args: [{ isSignal: true, alias: "radius", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], disableAtZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableAtZoom", required: false }] }], clusterClick: [{ type: i0.Output, args: ["clusterClick"] }], markers: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => MapMarkerComponent), { isSignal: true }] }] } });
1238
+
1239
+ let nextId$2 = 0;
1240
+ /**
1241
+ * Base das camadas de regiões (`hm-map-basemap`, `hm-map-choropleth`): carrega a camada (id embutido ou
1242
+ * `BasemapLayer` pronta), informa ao `hm-map` a área (enquadramento e limites) e o crédito da fonte,
1243
+ * projeta as regiões a cada enquadramento e posiciona os rótulos.
1244
+ */
1245
+ class MapRegionsBase {
1246
+ #icons = useHermesIcons(MAP_ICONS);
1247
+ map = inject(HM_MAP);
1248
+ text = inject(MAPS_MESSAGES);
1249
+ i18n = inject(HermesI18nService);
1250
+ host = inject(ElementRef);
1251
+ uid = `hm-map-regions-${++nextId$2}`;
1252
+ /**
1253
+ * Camada: id de um mapa base embutido (`'world'`, `'world/50m'`, `'br/regioes'`, `'br/ufs'`,
1254
+ * `'br/mesorregioes'`, `'br/microrregioes'`, `'br/municipios/SP'`) — carregado sob demanda — ou uma
1255
+ * `BasemapLayer` já pronta (`basemapLayer(dados, objeto)`).
1256
+ */
1257
+ layer = input.required(...(ngDevMode ? [{ debugName: "layer" }] : /* istanbul ignore next */ []));
1258
+ /** Enquadra a vista na camada quando ela chega e limita zoom e área a ela. */
1259
+ fit = input(true, { ...(ngDevMode ? { debugName: "fit" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1260
+ /** Rótulos sobre as regiões: `true` (nome), o nome de uma propriedade (ex.: `'sigla'`) ou `false`. */
1261
+ labels = input(false, ...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
1262
+ /** Códigos de regiões que não entram (ex.: `['BRA']` num mundo de contexto sob as UFs). */
1263
+ exclude = input([], ...(ngDevMode ? [{ debugName: "exclude" }] : /* istanbul ignore next */ []));
1264
+ /** A camada carregou (ou mudou). */
1265
+ layerLoad = output();
1266
+ loaded = signal(null, ...(ngDevMode ? [{ debugName: "loaded" }] : /* istanbul ignore next */ []));
1267
+ failed = signal(false, ...(ngDevMode ? [{ debugName: "failed" }] : /* istanbul ignore next */ []));
1268
+ /** Camada em uso (depois de carregada). */
1269
+ current = this.loaded.asReadonly();
1270
+ /** Regiões desenhadas (a camada menos `exclude`). */
1271
+ regions = computed(() => excludeRegions(this.loaded(), this.exclude()), ...(ngDevMode ? [{ debugName: "regions" }] : /* istanbul ignore next */ []));
1272
+ regionPaths = computed(() => {
1273
+ const regions = this.regions();
1274
+ if (!regions.length || !this.map.ready())
1275
+ return [];
1276
+ return regionPaths(regions, this.map.frame(), this.map.tileSize);
1277
+ }, ...(ngDevMode ? [{ debugName: "regionPaths" }] : /* istanbul ignore next */ []));
1278
+ labelItems = computed(() => {
1279
+ const regions = this.regions();
1280
+ const labels = this.labels();
1281
+ if (!regions.length || labels === false || labels === null || !this.map.ready())
1282
+ return [];
1283
+ return regionLabels(regions, labels, this.i18n.locale(), this.map.frame(), this.map.tileSize);
1284
+ }, ...(ngDevMode ? [{ debugName: "labelItems" }] : /* istanbul ignore next */ []));
1285
+ constructor() {
1286
+ effect((onCleanup) => {
1287
+ const layer = this.layer();
1288
+ let cancelled = false;
1289
+ onCleanup(() => (cancelled = true));
1290
+ untracked(() => this.failed.set(false));
1291
+ if (typeof layer !== 'string') {
1292
+ untracked(() => this.accept(layer));
1293
+ return;
1294
+ }
1295
+ loadBasemapLayer(layer).then((loaded) => {
1296
+ if (!cancelled)
1297
+ this.accept(loaded);
1298
+ }, (error) => {
1299
+ if (cancelled)
1300
+ return;
1301
+ this.loaded.set(null);
1302
+ this.failed.set(true);
1303
+ console.error(error);
1304
+ });
1305
+ });
1306
+ const extent = computed(() => regionsExtent(this.loaded(), this.fit()), ...(ngDevMode ? [{ debugName: "extent" }] : /* istanbul ignore next */ []));
1307
+ const offExtent = this.map.registerExtent(extent);
1308
+ const offAttribution = this.map.registerAttribution(computed(() => this.loaded()?.attribution ?? ''));
1309
+ inject(DestroyRef).onDestroy(() => {
1310
+ offExtent();
1311
+ offAttribution();
1312
+ this.map.hideTooltip(this.uid);
1313
+ });
1314
+ }
1315
+ accept(layer) {
1316
+ this.loaded.set(layer);
1317
+ this.layerLoad.emit(layer);
1318
+ }
1319
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapRegionsBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1320
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.24", type: MapRegionsBase, isStandalone: true, inputs: { layer: { classPropertyName: "layer", publicName: "layer", isSignal: true, isRequired: true, transformFunction: null }, fit: { classPropertyName: "fit", publicName: "fit", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null }, exclude: { classPropertyName: "exclude", publicName: "exclude", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { layerLoad: "layerLoad" }, ngImport: i0 });
1321
+ }
1322
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapRegionsBase, decorators: [{
1323
+ type: Directive
1324
+ }], ctorParameters: () => [], propDecorators: { layer: [{ type: i0.Input, args: [{ isSignal: true, alias: "layer", required: true }] }], fit: [{ type: i0.Input, args: [{ isSignal: true, alias: "fit", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], exclude: [{ type: i0.Input, args: [{ isSignal: true, alias: "exclude", required: false }] }], layerLoad: [{ type: i0.Output, args: ["layerLoad"] }] } });
1325
+
1326
+ /**
1327
+ * Mapa base vetorial embutido: países (Natural Earth) ou malhas do IBGE (regiões, UFs, mesorregiões,
1328
+ * microrregiões, municípios por UF), desenhado em SVG com as cores do tema — terra, bordas e rótulos vêm
1329
+ * de `--hm-map-land`, `--hm-map-border` e `--hm-map-label`, e o fundo do `hm-map` faz o papel da água. Trocar
1330
+ * tema ou família recolore na hora (é tudo `var(--hm-*)`). Sem tiles e sem serviço externo: os dados vêm
1331
+ * do próprio pacote, carregados sob demanda.
1332
+ *
1333
+ * Decorativo para leitor de tela (`aria-hidden`): para dados por região, use `hm-map-choropleth`.
1334
+ *
1335
+ * ```html
1336
+ * <hm-map label="Brasil">
1337
+ * <hm-map-basemap layer="br/ufs" labels="sigla" />
1338
+ * </hm-map>
1339
+ * ```
1340
+ */
1341
+ class MapBasemapComponent extends MapRegionsBase {
1342
+ #icons = useHermesIcons(MAP_ICONS);
1343
+ /** Terra em tom esmaecido, entre a terra e a água: para a camada de contexto (o mundo em volta do Brasil). */
1344
+ muted = input(false, { ...(ngDevMode ? { debugName: "muted" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1345
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapBasemapComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
1346
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapBasemapComponent, isStandalone: true, selector: "hm-map-basemap", inputs: { muted: { classPropertyName: "muted", publicName: "muted", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.hm-map-basemap--muted": "muted()" }, classAttribute: "hm-map-regions hm-map-basemap" }, usesInheritance: true, ngImport: i0, template: `
1347
+ <svg
1348
+ class="hm-map-regions__svg"
1349
+ aria-hidden="true"
1350
+ focusable="false"
1351
+ [attr.width]="map.viewSize().x"
1352
+ [attr.height]="map.viewSize().y"
1353
+ >
1354
+ <g class="hm-map-basemap__land">
1355
+ @for (p of regionPaths(); track p.region.id) {
1356
+ <path class="hm-map-basemap__region" [attr.d]="p.d" [attr.data-region]="p.region.id" />
1357
+ }
1358
+ </g>
1359
+ @if (labelItems().length) {
1360
+ <g class="hm-map-regions__labels">
1361
+ @for (l of labelItems(); track l.id) {
1362
+ <text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
1363
+ }
1364
+ </g>
1365
+ }
1366
+ </svg>
1367
+ @if (failed()) {
1368
+ <p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
1369
+ }
1370
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1371
+ }
1372
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapBasemapComponent, decorators: [{
1373
+ type: Component,
1374
+ args: [{
1375
+ selector: 'hm-map-basemap',
1376
+ encapsulation: ViewEncapsulation.None,
1377
+ changeDetection: ChangeDetectionStrategy.OnPush,
1378
+ host: { class: 'hm-map-regions hm-map-basemap', '[class.hm-map-basemap--muted]': 'muted()' },
1379
+ template: `
1380
+ <svg
1381
+ class="hm-map-regions__svg"
1382
+ aria-hidden="true"
1383
+ focusable="false"
1384
+ [attr.width]="map.viewSize().x"
1385
+ [attr.height]="map.viewSize().y"
1386
+ >
1387
+ <g class="hm-map-basemap__land">
1388
+ @for (p of regionPaths(); track p.region.id) {
1389
+ <path class="hm-map-basemap__region" [attr.d]="p.d" [attr.data-region]="p.region.id" />
1390
+ }
1391
+ </g>
1392
+ @if (labelItems().length) {
1393
+ <g class="hm-map-regions__labels">
1394
+ @for (l of labelItems(); track l.id) {
1395
+ <text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
1396
+ }
1397
+ </g>
1398
+ }
1399
+ </svg>
1400
+ @if (failed()) {
1401
+ <p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
1402
+ }
1403
+ `,
1404
+ }]
1405
+ }], propDecorators: { muted: [{ type: i0.Input, args: [{ isSignal: true, alias: "muted", required: false }] }] } });
1406
+
1407
+ /**
1408
+ * Mapa coroplético: pinta as regiões de um mapa base pelo valor de cada uma, numa escala de dados do tema
1409
+ * (`sequential`: `--hm-data-sequential-1…5`; `diverging`: `--hm-data-diverging-1…7`, com o neutro no
1410
+ * `midpoint`). As cores ficam como `var(...)`: claro/escuro e famílias trocam na hora.
1411
+ *
1412
+ * Acessibilidade (o padrão dos gráficos): a legenda diz em texto o intervalo de cada cor; as regiões formam
1413
+ * uma lista com uma parada de Tab só (setas, Home/End, Enter seleciona, Esc volta ao mapa), cada uma com
1414
+ * nome e valor ("São Paulo: 12,5"); e "Ver como tabela" mostra a mesma informação numa tabela, que fica
1415
+ * sempre na árvore de acessibilidade. A dica (tooltip) é só visual.
1416
+ *
1417
+ * ```html
1418
+ * <hm-map label="Indicador por UF">
1419
+ * <hm-map-choropleth layer="br/ufs" [data]="linhas" joinBy="sigla" valueKey="indice" label="Índice por UF" />
1420
+ * </hm-map>
1421
+ * ```
1422
+ */
1423
+ class MapChoroplethComponent extends MapRegionsBase {
1424
+ #icons = useHermesIcons(MAP_ICONS);
1425
+ /** Valores: linhas (`[{ sigla: 'SP', valor: 12 }]`) ou mapa chave → valor (`{ SP: 12 }`). */
1426
+ data = input(null, ...(ngDevMode ? [{ debugName: "data" }] : /* istanbul ignore next */ []));
1427
+ /** Como ligar linha e região: `'id'` (código oficial), uma propriedade da região (`'sigla'`) ou `[propriedade, campo]`. */
1428
+ joinBy = input('id', ...(ngDevMode ? [{ debugName: "joinBy" }] : /* istanbul ignore next */ []));
1429
+ /** Campo do valor nas linhas. */
1430
+ valueKey = input('value', ...(ngDevMode ? [{ debugName: "valueKey" }] : /* istanbul ignore next */ []));
1431
+ scale = input('sequential', ...(ngDevMode ? [{ debugName: "scale" }] : /* istanbul ignore next */ []));
1432
+ /** Número de classes (sequencial até 5, divergente até 7). Padrão: todas. */
1433
+ classes = input(undefined, ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
1434
+ /** `equal` (intervalos iguais) ou `quantile` (mesmo número de regiões por classe). */
1435
+ method = input('equal', ...(ngDevMode ? [{ debugName: "method" }] : /* istanbul ignore next */ []));
1436
+ /** Domínio `[mín, máx]` (padrão: o dos dados). */
1437
+ domain = input(null, ...(ngDevMode ? [{ debugName: "domain" }] : /* istanbul ignore next */ []));
1438
+ /** Limiares explícitos entre as classes (vencem `classes`/`method`). */
1439
+ breaks = input(null, ...(ngDevMode ? [{ debugName: "breaks" }] : /* istanbul ignore next */ []));
1440
+ /** Divergente: valor neutro do meio. */
1441
+ midpoint = input(0, ...(ngDevMode ? [{ debugName: "midpoint" }] : /* istanbul ignore next */ []));
1442
+ /** Formata os valores (legenda, dica, tabela, nome acessível). Padrão: número no idioma ativo. */
1443
+ format = input(null, ...(ngDevMode ? [{ debugName: "format" }] : /* istanbul ignore next */ []));
1444
+ /** Nome do conjunto de dados ("População por UF"): legenda, tabela e lista de regiões. */
1445
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1446
+ /** Cabeçalho da coluna de valores da tabela. Padrão: "Valor". */
1447
+ valueLabel = input('', ...(ngDevMode ? [{ debugName: "valueLabel" }] : /* istanbul ignore next */ []));
1448
+ /** Cabeçalho da coluna de regiões da tabela. Padrão: "Região". */
1449
+ regionLabel = input('', ...(ngDevMode ? [{ debugName: "regionLabel" }] : /* istanbul ignore next */ []));
1450
+ /** Legenda sobre o mapa. Desligue para montar a sua com `legendItems()` (`<hm-legend [items]="…">`). */
1451
+ legend = input(true, { ...(ngDevMode ? { debugName: "legend" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1452
+ /** Botão "Ver como tabela" (a tabela fica na árvore de acessibilidade de qualquer forma). */
1453
+ table = input(true, { ...(ngDevMode ? { debugName: "table" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1454
+ /** Região acionada por clique, Enter ou Espaço. */
1455
+ regionClick = output();
1456
+ /** Índice (na ordem alfabética) da região que recebe o Tab. */
1457
+ active = signal(0, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
1458
+ hovered = signal(null, ...(ngDevMode ? [{ debugName: "hovered" }] : /* istanbul ignore next */ []));
1459
+ focused = signal(null, ...(ngDevMode ? [{ debugName: "focused" }] : /* istanbul ignore next */ []));
1460
+ formatter = computed(() => choroplethFormatter(this.format(), this.i18n.locale()), ...(ngDevMode ? [{ debugName: "formatter" }] : /* istanbul ignore next */ []));
1461
+ matches = computed(() => joinChoropleth(this.regions(), this.data(), this.joinBy(), this.valueKey()), ...(ngDevMode ? [{ debugName: "matches" }] : /* istanbul ignore next */ []));
1462
+ /** Classes da escala com os valores atuais. */
1463
+ classList = computed(() => choroplethClassList(this.matches(), {
1464
+ scale: this.scale(),
1465
+ classes: this.classes(),
1466
+ method: this.method(),
1467
+ domain: this.domain(),
1468
+ breaks: this.breaks(),
1469
+ midpoint: this.midpoint(),
1470
+ }), ...(ngDevMode ? [{ debugName: "classList" }] : /* istanbul ignore next */ []));
1471
+ /** Regiões em ordem alfabética (a ordem do teclado, da lista e da tabela). */
1472
+ items = computed(() => choroplethItems(this.regions(), this.matches(), this.classList(), this.formatter(), this.i18n.locale(), this.text.data), ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
1473
+ drawn = computed(() => choroplethDrawn(this.items(), this.regionPaths()), ...(ngDevMode ? [{ debugName: "drawn" }] : /* istanbul ignore next */ []));
1474
+ /** Região com `tabindex="0"` (a última foi para o fim da lista se a camada encolheu). */
1475
+ tabStop = computed(() => choroplethTabStop(this.active(), this.drawn().length), ...(ngDevMode ? [{ debugName: "tabStop" }] : /* istanbul ignore next */ []));
1476
+ highlight = computed(() => {
1477
+ const i = this.hovered() ?? this.focused();
1478
+ return i === null ? null : (this.drawn()[i]?.d ?? null);
1479
+ }, ...(ngDevMode ? [{ debugName: "highlight" }] : /* istanbul ignore next */ []));
1480
+ listLabel = computed(() => choroplethListLabel(this.label(), this.text), ...(ngDevMode ? [{ debugName: "listLabel" }] : /* istanbul ignore next */ []));
1481
+ /** Itens da legenda (intervalo por cor + "Sem dados" quando falta valor), para usar num `hm-legend` próprio. */
1482
+ legendItems = computed(() => choroplethLegend(this.classList(), this.items(), this.formatter(), this.text.data), ...(ngDevMode ? [{ debugName: "legendItems" }] : /* istanbul ignore next */ []));
1483
+ constructor() {
1484
+ super();
1485
+ const panel = computed(() => {
1486
+ if (!this.loaded())
1487
+ return null;
1488
+ const options = {
1489
+ id: this.uid,
1490
+ label: this.label(),
1491
+ legend: this.legend() ? this.legendItems() : null,
1492
+ table: this.table(),
1493
+ regionLabel: this.regionLabel(),
1494
+ valueLabel: this.valueLabel(),
1495
+ };
1496
+ return options.legend || options.table ? choroplethPanel(options, this.items(), this.text) : null;
1497
+ }, ...(ngDevMode ? [{ debugName: "panel" }] : /* istanbul ignore next */ []));
1498
+ const off = this.map.registerPanel(panel);
1499
+ inject(DestroyRef).onDestroy(off);
1500
+ }
1501
+ // ---------------------------------------------------------------- interação
1502
+ onFocus(i) {
1503
+ this.active.set(i);
1504
+ this.focused.set(i);
1505
+ const item = this.drawn()[i]?.item;
1506
+ if (!item)
1507
+ return;
1508
+ const at = this.map.layerPoint(item.region.labelPoint);
1509
+ this.map.revealLayerPoint(at);
1510
+ this.map.showTooltip({ owner: this.uid, at: this.map.layerPoint(item.region.labelPoint), title: item.name, detail: item.valueText });
1511
+ }
1512
+ onBlur(i) {
1513
+ if (this.focused() === i)
1514
+ this.focused.set(null);
1515
+ if (this.hovered() === null)
1516
+ this.map.hideTooltip(this.uid);
1517
+ }
1518
+ onPointer(event, i) {
1519
+ // Arrastando o mapa: sem dica.
1520
+ if (event.buttons) {
1521
+ this.onLeave(i);
1522
+ return;
1523
+ }
1524
+ const item = this.drawn()[i]?.item;
1525
+ if (!item)
1526
+ return;
1527
+ this.hovered.set(i);
1528
+ this.map.showTooltip({ owner: this.uid, at: this.map.clientToLayer(event.clientX, event.clientY), title: item.name, detail: item.valueText });
1529
+ }
1530
+ onLeave(i) {
1531
+ if (this.hovered() === i)
1532
+ this.hovered.set(null);
1533
+ this.map.hideTooltip(this.uid);
1534
+ }
1535
+ select(i) {
1536
+ const item = this.drawn()[i]?.item;
1537
+ if (item)
1538
+ this.regionClick.emit({ region: item.region, value: item.value, row: item.row });
1539
+ }
1540
+ onKeydown(event, i) {
1541
+ const action = regionKeyAction(event.key, i, this.drawn().length);
1542
+ if (!action)
1543
+ return;
1544
+ event.preventDefault();
1545
+ if (action.type === 'select') {
1546
+ this.select(i);
1547
+ return;
1548
+ }
1549
+ if (action.type === 'exit') {
1550
+ this.map.hideTooltip(this.uid);
1551
+ this.map.focus();
1552
+ return;
1553
+ }
1554
+ event.stopPropagation();
1555
+ const next = action.index;
1556
+ if (next === i)
1557
+ return;
1558
+ this.active.set(next);
1559
+ this.host.nativeElement.querySelectorAll('.hm-map-choropleth__region')[next]?.focus();
1560
+ }
1561
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapChoroplethComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1562
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapChoroplethComponent, isStandalone: true, selector: "hm-map-choropleth", inputs: { data: { classPropertyName: "data", publicName: "data", isSignal: true, isRequired: false, transformFunction: null }, joinBy: { classPropertyName: "joinBy", publicName: "joinBy", isSignal: true, isRequired: false, transformFunction: null }, valueKey: { classPropertyName: "valueKey", publicName: "valueKey", isSignal: true, isRequired: false, transformFunction: null }, scale: { classPropertyName: "scale", publicName: "scale", isSignal: true, isRequired: false, transformFunction: null }, classes: { classPropertyName: "classes", publicName: "classes", isSignal: true, isRequired: false, transformFunction: null }, method: { classPropertyName: "method", publicName: "method", isSignal: true, isRequired: false, transformFunction: null }, domain: { classPropertyName: "domain", publicName: "domain", isSignal: true, isRequired: false, transformFunction: null }, breaks: { classPropertyName: "breaks", publicName: "breaks", isSignal: true, isRequired: false, transformFunction: null }, midpoint: { classPropertyName: "midpoint", publicName: "midpoint", isSignal: true, isRequired: false, transformFunction: null }, format: { classPropertyName: "format", publicName: "format", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, valueLabel: { classPropertyName: "valueLabel", publicName: "valueLabel", isSignal: true, isRequired: false, transformFunction: null }, regionLabel: { classPropertyName: "regionLabel", publicName: "regionLabel", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, table: { classPropertyName: "table", publicName: "table", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { regionClick: "regionClick" }, host: { classAttribute: "hm-map-regions hm-map-choropleth" }, usesInheritance: true, ngImport: i0, template: `
1563
+ <svg
1564
+ class="hm-map-regions__svg"
1565
+ focusable="false"
1566
+ role="list"
1567
+ [attr.aria-label]="listLabel()"
1568
+ [attr.aria-describedby]="uid + '-help'"
1569
+ [attr.width]="map.viewSize().x"
1570
+ [attr.height]="map.viewSize().y"
1571
+ >
1572
+ @for (p of drawn(); track p.item.region.id; let i = $index) {
1573
+ <path
1574
+ role="listitem"
1575
+ class="hm-map-choropleth__region"
1576
+ [class.hm-map-choropleth__region--empty]="!p.item.cls"
1577
+ [attr.d]="p.d"
1578
+ [style.fill]="p.item.cls?.color ?? null"
1579
+ [attr.tabindex]="i === tabStop() ? 0 : -1"
1580
+ [attr.aria-label]="p.item.label"
1581
+ [attr.data-region]="p.item.region.id"
1582
+ (focus)="onFocus(i)"
1583
+ (blur)="onBlur(i)"
1584
+ (keydown)="onKeydown($event, i)"
1585
+ (click)="select(i)"
1586
+ (pointermove)="onPointer($event, i)"
1587
+ (pointerleave)="onLeave(i)"
1588
+ />
1589
+ }
1590
+ @if (highlight(); as d) {
1591
+ <path class="hm-map-choropleth__highlight" aria-hidden="true" [attr.d]="d" />
1592
+ }
1593
+ @if (labelItems().length) {
1594
+ <g class="hm-map-regions__labels" aria-hidden="true">
1595
+ @for (l of labelItems(); track l.id) {
1596
+ <text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
1597
+ }
1598
+ </g>
1599
+ }
1600
+ </svg>
1601
+ <p class="hm-map__sr-only" [id]="uid + '-help'">{{ text.data.regionsInstructions }}</p>
1602
+ @if (failed()) {
1603
+ <p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
1604
+ }
1605
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1606
+ }
1607
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapChoroplethComponent, decorators: [{
1608
+ type: Component,
1609
+ args: [{
1610
+ selector: 'hm-map-choropleth',
1611
+ encapsulation: ViewEncapsulation.None,
1612
+ changeDetection: ChangeDetectionStrategy.OnPush,
1613
+ host: { class: 'hm-map-regions hm-map-choropleth' },
1614
+ template: `
1615
+ <svg
1616
+ class="hm-map-regions__svg"
1617
+ focusable="false"
1618
+ role="list"
1619
+ [attr.aria-label]="listLabel()"
1620
+ [attr.aria-describedby]="uid + '-help'"
1621
+ [attr.width]="map.viewSize().x"
1622
+ [attr.height]="map.viewSize().y"
1623
+ >
1624
+ @for (p of drawn(); track p.item.region.id; let i = $index) {
1625
+ <path
1626
+ role="listitem"
1627
+ class="hm-map-choropleth__region"
1628
+ [class.hm-map-choropleth__region--empty]="!p.item.cls"
1629
+ [attr.d]="p.d"
1630
+ [style.fill]="p.item.cls?.color ?? null"
1631
+ [attr.tabindex]="i === tabStop() ? 0 : -1"
1632
+ [attr.aria-label]="p.item.label"
1633
+ [attr.data-region]="p.item.region.id"
1634
+ (focus)="onFocus(i)"
1635
+ (blur)="onBlur(i)"
1636
+ (keydown)="onKeydown($event, i)"
1637
+ (click)="select(i)"
1638
+ (pointermove)="onPointer($event, i)"
1639
+ (pointerleave)="onLeave(i)"
1640
+ />
1641
+ }
1642
+ @if (highlight(); as d) {
1643
+ <path class="hm-map-choropleth__highlight" aria-hidden="true" [attr.d]="d" />
1644
+ }
1645
+ @if (labelItems().length) {
1646
+ <g class="hm-map-regions__labels" aria-hidden="true">
1647
+ @for (l of labelItems(); track l.id) {
1648
+ <text class="hm-map-regions__label" [attr.x]="l.x" [attr.y]="l.y">{{ l.text }}</text>
1649
+ }
1650
+ </g>
1651
+ }
1652
+ </svg>
1653
+ <p class="hm-map__sr-only" [id]="uid + '-help'">{{ text.data.regionsInstructions }}</p>
1654
+ @if (failed()) {
1655
+ <p class="hm-map__sr-only" role="status">{{ text.data.loadError }}</p>
1656
+ }
1657
+ `,
1658
+ }]
1659
+ }], ctorParameters: () => [], propDecorators: { data: [{ type: i0.Input, args: [{ isSignal: true, alias: "data", required: false }] }], joinBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "joinBy", required: false }] }], valueKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueKey", required: false }] }], scale: [{ type: i0.Input, args: [{ isSignal: true, alias: "scale", required: false }] }], classes: [{ type: i0.Input, args: [{ isSignal: true, alias: "classes", required: false }] }], method: [{ type: i0.Input, args: [{ isSignal: true, alias: "method", required: false }] }], domain: [{ type: i0.Input, args: [{ isSignal: true, alias: "domain", required: false }] }], breaks: [{ type: i0.Input, args: [{ isSignal: true, alias: "breaks", required: false }] }], midpoint: [{ type: i0.Input, args: [{ isSignal: true, alias: "midpoint", required: false }] }], format: [{ type: i0.Input, args: [{ isSignal: true, alias: "format", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], valueLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueLabel", required: false }] }], regionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "regionLabel", required: false }] }], legend: [{ type: i0.Input, args: [{ isSignal: true, alias: "legend", required: false }] }], table: [{ type: i0.Input, args: [{ isSignal: true, alias: "table", required: false }] }], regionClick: [{ type: i0.Output, args: ["regionClick"] }] } });
1660
+
1661
+ let nextId$1 = 0;
1662
+ /**
1663
+ * Camada de rota dentro do `hm-map`: a linha da rota escolhida (com contorno, para ler sobre qualquer
1664
+ * fundo), as alternativas mais apagadas por baixo, marcadores de partida e chegada com nome acessível e o
1665
+ * destaque do trecho do passo ativo (`activeStep`). Clicar numa alternativa emite `(routeSelect)` com o
1666
+ * `id` dela — o app troca a rota escolhida; quem usa teclado escolhe pela lista do `hm-route-directions`,
1667
+ * que é o equivalente acessível da linha (o SVG é decorativo).
1668
+ *
1669
+ * Não calcula rota: recebe a rota pronta (`MapRoute`) do serviço que o app usar. Para enquadrar, passe
1670
+ * `routeBounds(route)` ao `[bounds]` do `hm-map`.
1671
+ *
1672
+ * ```html
1673
+ * <hm-map label="Rota até o escritório" [bounds]="bounds" [boundsPadding]="32">
1674
+ * <hm-map-route [route]="route" [alternatives]="others" [activeStep]="step()" (routeSelect)="choose($event)" />
1675
+ * </hm-map>
1676
+ * ```
1677
+ */
1678
+ class MapRouteComponent {
1679
+ #icons = useHermesIcons(MAP_ICONS);
1680
+ text = inject(MAPS_MESSAGES);
1681
+ map = inject(HM_MAP);
1682
+ id = `hm-map-route-${++nextId$1}`;
1683
+ /** Rota escolhida. */
1684
+ route = input.required(...(ngDevMode ? [{ debugName: "route" }] : /* istanbul ignore next */ []));
1685
+ /** Outras rotas possíveis, desenhadas por baixo e mais apagadas. */
1686
+ alternatives = input([], ...(ngDevMode ? [{ debugName: "alternatives" }] : /* istanbul ignore next */ []));
1687
+ /** Passo destacado (índice em `route.steps`); `-1` = nenhum. O mapa se move para mostrá-lo. */
1688
+ activeStep = input(-1, ...(ngDevMode ? [{ debugName: "activeStep" }] : /* istanbul ignore next */ []));
1689
+ /** Nome do lugar de partida ("Av. Paulista, 1000"), para o marcador. */
1690
+ startLabel = input('', ...(ngDevMode ? [{ debugName: "startLabel" }] : /* istanbul ignore next */ []));
1691
+ /** Nome do lugar de chegada, para o marcador. */
1692
+ endLabel = input('', ...(ngDevMode ? [{ debugName: "endLabel" }] : /* istanbul ignore next */ []));
1693
+ /** Marcadores de partida e chegada. */
1694
+ markers = input(true, { ...(ngDevMode ? { debugName: "markers" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1695
+ /** Clique numa alternativa: `id` da rota. */
1696
+ routeSelect = output();
1697
+ startPoint = computed(() => routeEndpoints(this.route()).start, ...(ngDevMode ? [{ debugName: "startPoint" }] : /* istanbul ignore next */ []));
1698
+ endPoint = computed(() => routeEndpoints(this.route()).end, ...(ngDevMode ? [{ debugName: "endPoint" }] : /* istanbul ignore next */ []));
1699
+ startName = computed(() => routeEndpointNames(this.text.route, this.startLabel(), this.endLabel()).start, ...(ngDevMode ? [{ debugName: "startName" }] : /* istanbul ignore next */ []));
1700
+ endName = computed(() => routeEndpointNames(this.text.route, this.startLabel(), this.endLabel()).end, ...(ngDevMode ? [{ debugName: "endName" }] : /* istanbul ignore next */ []));
1701
+ items = computed(() => routePathItems(this.id, {
1702
+ route: this.route(),
1703
+ alternatives: this.alternatives(),
1704
+ activeStep: this.activeStep(),
1705
+ onSelect: (id) => this.routeSelect.emit(id),
1706
+ layerPoint: (latlng) => this.map.layerPoint(latlng),
1707
+ }, this.map.frame(), this.map.tileSize), ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
1708
+ constructor() {
1709
+ inject(DestroyRef).onDestroy(this.map.registerPaths(this.items));
1710
+ // Passo ativo novo: leva o local dele para dentro da área visível.
1711
+ effect(() => {
1712
+ const step = this.activeStep();
1713
+ const route = this.route();
1714
+ if (!this.map.ready() || step < 0)
1715
+ return;
1716
+ const location = routeStepLocation(route, step);
1717
+ if (location)
1718
+ untracked(() => this.map.revealLayerPoint(this.map.layerPoint(location)));
1719
+ });
1720
+ }
1721
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapRouteComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1722
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: MapRouteComponent, isStandalone: true, selector: "hm-map-route", inputs: { route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: true, transformFunction: null }, alternatives: { classPropertyName: "alternatives", publicName: "alternatives", isSignal: true, isRequired: false, transformFunction: null }, activeStep: { classPropertyName: "activeStep", publicName: "activeStep", isSignal: true, isRequired: false, transformFunction: null }, startLabel: { classPropertyName: "startLabel", publicName: "startLabel", isSignal: true, isRequired: false, transformFunction: null }, endLabel: { classPropertyName: "endLabel", publicName: "endLabel", isSignal: true, isRequired: false, transformFunction: null }, markers: { classPropertyName: "markers", publicName: "markers", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { routeSelect: "routeSelect" }, host: { classAttribute: "hm-map-route" }, ngImport: i0, template: `
1723
+ @if (markers()) {
1724
+ @if (startPoint(); as p) {
1725
+ <hm-map-marker class="hm-map-route__start" [position]="p" [label]="startName()" />
1726
+ }
1727
+ @if (endPoint(); as p) {
1728
+ <hm-map-marker class="hm-map-route__end" [position]="p" [label]="endName()">
1729
+ <hm-icon class="hm-map-marker__icon" shape="flag" solid />
1730
+ </hm-map-marker>
1731
+ }
1732
+ }
1733
+ `, isInline: true, dependencies: [{ kind: "component", type: MapMarkerComponent, selector: "hm-map-marker", inputs: ["position", "label", "anchor", "color"], outputs: ["markerClick"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1734
+ }
1735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: MapRouteComponent, decorators: [{
1736
+ type: Component,
1737
+ args: [{
1738
+ selector: 'hm-map-route',
1739
+ imports: [MapMarkerComponent, IconComponent],
1740
+ encapsulation: ViewEncapsulation.None,
1741
+ changeDetection: ChangeDetectionStrategy.OnPush,
1742
+ host: { class: 'hm-map-route' },
1743
+ template: `
1744
+ @if (markers()) {
1745
+ @if (startPoint(); as p) {
1746
+ <hm-map-marker class="hm-map-route__start" [position]="p" [label]="startName()" />
1747
+ }
1748
+ @if (endPoint(); as p) {
1749
+ <hm-map-marker class="hm-map-route__end" [position]="p" [label]="endName()">
1750
+ <hm-icon class="hm-map-marker__icon" shape="flag" solid />
1751
+ </hm-map-marker>
1752
+ }
1753
+ }
1754
+ `,
1755
+ }]
1756
+ }], ctorParameters: () => [], propDecorators: { route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: true }] }], alternatives: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternatives", required: false }] }], activeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeStep", required: false }] }], startLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "startLabel", required: false }] }], endLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "endLabel", required: false }] }], markers: [{ type: i0.Input, args: [{ isSignal: true, alias: "markers", required: false }] }], routeSelect: [{ type: i0.Output, args: ["routeSelect"] }] } });
1757
+ /**
1758
+ * Lista de direções de uma rota: totais no topo, rotas alternativas como opções (botões com
1759
+ * `aria-pressed`) e os passos numa lista ordenada (`<ol>`), cada um com o ícone da manobra (decorativo),
1760
+ * a instrução e a distância. `[(activeStep)]` liga a lista ao `hm-map-route`: focar ou clicar num passo o
1761
+ * torna ativo, e o mapa vai até ele. Setas para cima/baixo, Home e End percorrem os passos.
1762
+ *
1763
+ * ```html
1764
+ * <hm-route-directions [route]="route" [alternatives]="others" [(activeStep)]="step" (routeSelect)="choose($event)" />
1765
+ * ```
1766
+ */
1767
+ class RouteDirectionsComponent {
1768
+ #icons = useHermesIcons(MAP_ICONS);
1769
+ text = inject(MAPS_MESSAGES);
1770
+ i18n = inject(HermesI18nService);
1771
+ host = inject(ElementRef);
1772
+ uid = `hm-route-directions-${++nextId$1}`;
1773
+ titleId = `${this.uid}-title`;
1774
+ helpId = `${this.uid}-help`;
1775
+ route = input.required(...(ngDevMode ? [{ debugName: "route" }] : /* istanbul ignore next */ []));
1776
+ alternatives = input([], ...(ngDevMode ? [{ debugName: "alternatives" }] : /* istanbul ignore next */ []));
1777
+ /** Passo ativo (`-1` = nenhum). */
1778
+ activeStep = model(-1, ...(ngDevMode ? [{ debugName: "activeStep" }] : /* istanbul ignore next */ []));
1779
+ /** Sistema de unidades das distâncias. */
1780
+ units = input('metric', ...(ngDevMode ? [{ debugName: "units" }] : /* istanbul ignore next */ []));
1781
+ /** Título da lista. Padrão: o `label` da rota ou "Direções". */
1782
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1783
+ /** Escolha de outra rota: `id` dela. */
1784
+ routeSelect = output();
1785
+ totalsText = computed(() => routeTotalsText(this.route(), this.text.route, this.i18n.locale(), this.units()), ...(ngDevMode ? [{ debugName: "totalsText" }] : /* istanbul ignore next */ []));
1786
+ options = computed(() => routeOptions(this.route(), this.alternatives(), this.text.route, this.i18n.locale(), this.units()), ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
1787
+ steps = computed(() => routeStepViews(this.route(), this.i18n.locale(), this.units()), ...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
1788
+ select(index) {
1789
+ if (this.activeStep() !== index)
1790
+ this.activeStep.set(index);
1791
+ }
1792
+ chooseRoute(option) {
1793
+ if (!option.selected)
1794
+ this.routeSelect.emit(option.id);
1795
+ }
1796
+ onKeydown(event) {
1797
+ const next = routeStepKeyTarget(event.key, this.activeStep(), this.steps().length);
1798
+ if (next === null)
1799
+ return;
1800
+ event.preventDefault();
1801
+ this.host.nativeElement.querySelectorAll('.hm-route-directions__step')[next]?.focus();
1802
+ this.select(next);
1803
+ }
1804
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RouteDirectionsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1805
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: RouteDirectionsComponent, isStandalone: true, selector: "hm-route-directions", inputs: { route: { classPropertyName: "route", publicName: "route", isSignal: true, isRequired: true, transformFunction: null }, alternatives: { classPropertyName: "alternatives", publicName: "alternatives", isSignal: true, isRequired: false, transformFunction: null }, activeStep: { classPropertyName: "activeStep", publicName: "activeStep", isSignal: true, isRequired: false, transformFunction: null }, units: { classPropertyName: "units", publicName: "units", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeStep: "activeStepChange", routeSelect: "routeSelect" }, host: { classAttribute: "hm-route-directions" }, ngImport: i0, template: `
1806
+ <div class="hm-route-directions__header">
1807
+ <p class="hm-route-directions__title" [id]="titleId">{{ label() || route().label || text.route.directions }}</p>
1808
+ <p class="hm-route-directions__totals">{{ totalsText() }}</p>
1809
+ </div>
1810
+
1811
+ @if (options().length > 1) {
1812
+ <div class="hm-route-directions__options" role="group" [attr.aria-label]="text.route.alternatives">
1813
+ @for (option of options(); track option.id) {
1814
+ <button
1815
+ type="button"
1816
+ class="hm-route-directions__option"
1817
+ [class.hm-route-directions__option--selected]="option.selected"
1818
+ [attr.aria-pressed]="option.selected"
1819
+ [attr.aria-label]="option.name"
1820
+ (click)="chooseRoute(option)"
1821
+ >
1822
+ <span class="hm-route-directions__option-label">{{ option.label }}</span>
1823
+ <span class="hm-route-directions__option-meta" aria-hidden="true">{{ option.distance }} · {{ option.duration }}</span>
1824
+ </button>
1825
+ }
1826
+ </div>
1827
+ }
1828
+
1829
+ @if (steps().length) {
1830
+ <p class="hm-route-directions__sr-only" [id]="helpId">{{ text.route.stepsInstructions }}</p>
1831
+ <ol class="hm-route-directions__steps" [attr.aria-labelledby]="titleId" [attr.aria-describedby]="helpId" (keydown)="onKeydown($event)">
1832
+ @for (step of steps(); track $index) {
1833
+ <li class="hm-route-directions__item">
1834
+ <button
1835
+ type="button"
1836
+ class="hm-route-directions__step"
1837
+ [class.hm-route-directions__step--active]="activeStep() === $index"
1838
+ [attr.aria-current]="activeStep() === $index ? 'step' : null"
1839
+ (click)="select($index)"
1840
+ (focus)="select($index)"
1841
+ >
1842
+ <span class="hm-route-directions__maneuver" aria-hidden="true">
1843
+ <hm-icon [shape]="step.icon" [solid]="step.solid" [style.transform]="step.rotation ? 'rotate(' + step.rotation + 'deg)' : null" />
1844
+ </span>
1845
+ <span class="hm-route-directions__instruction">{{ step.instruction }}</span>
1846
+ @if (step.distance) {
1847
+ <span class="hm-route-directions__distance">{{ step.distance }}</span>
1848
+ }
1849
+ </button>
1850
+ </li>
1851
+ }
1852
+ </ol>
1853
+ } @else {
1854
+ <p class="hm-route-directions__empty">{{ text.route.empty }}</p>
1855
+ }
1856
+ `, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1857
+ }
1858
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RouteDirectionsComponent, decorators: [{
1859
+ type: Component,
1860
+ args: [{
1861
+ selector: 'hm-route-directions',
1862
+ imports: [IconComponent],
1863
+ encapsulation: ViewEncapsulation.None,
1864
+ changeDetection: ChangeDetectionStrategy.OnPush,
1865
+ host: { class: 'hm-route-directions' },
1866
+ template: `
1867
+ <div class="hm-route-directions__header">
1868
+ <p class="hm-route-directions__title" [id]="titleId">{{ label() || route().label || text.route.directions }}</p>
1869
+ <p class="hm-route-directions__totals">{{ totalsText() }}</p>
1870
+ </div>
1871
+
1872
+ @if (options().length > 1) {
1873
+ <div class="hm-route-directions__options" role="group" [attr.aria-label]="text.route.alternatives">
1874
+ @for (option of options(); track option.id) {
1875
+ <button
1876
+ type="button"
1877
+ class="hm-route-directions__option"
1878
+ [class.hm-route-directions__option--selected]="option.selected"
1879
+ [attr.aria-pressed]="option.selected"
1880
+ [attr.aria-label]="option.name"
1881
+ (click)="chooseRoute(option)"
1882
+ >
1883
+ <span class="hm-route-directions__option-label">{{ option.label }}</span>
1884
+ <span class="hm-route-directions__option-meta" aria-hidden="true">{{ option.distance }} · {{ option.duration }}</span>
1885
+ </button>
1886
+ }
1887
+ </div>
1888
+ }
1889
+
1890
+ @if (steps().length) {
1891
+ <p class="hm-route-directions__sr-only" [id]="helpId">{{ text.route.stepsInstructions }}</p>
1892
+ <ol class="hm-route-directions__steps" [attr.aria-labelledby]="titleId" [attr.aria-describedby]="helpId" (keydown)="onKeydown($event)">
1893
+ @for (step of steps(); track $index) {
1894
+ <li class="hm-route-directions__item">
1895
+ <button
1896
+ type="button"
1897
+ class="hm-route-directions__step"
1898
+ [class.hm-route-directions__step--active]="activeStep() === $index"
1899
+ [attr.aria-current]="activeStep() === $index ? 'step' : null"
1900
+ (click)="select($index)"
1901
+ (focus)="select($index)"
1902
+ >
1903
+ <span class="hm-route-directions__maneuver" aria-hidden="true">
1904
+ <hm-icon [shape]="step.icon" [solid]="step.solid" [style.transform]="step.rotation ? 'rotate(' + step.rotation + 'deg)' : null" />
1905
+ </span>
1906
+ <span class="hm-route-directions__instruction">{{ step.instruction }}</span>
1907
+ @if (step.distance) {
1908
+ <span class="hm-route-directions__distance">{{ step.distance }}</span>
1909
+ }
1910
+ </button>
1911
+ </li>
1912
+ }
1913
+ </ol>
1914
+ } @else {
1915
+ <p class="hm-route-directions__empty">{{ text.route.empty }}</p>
1916
+ }
1917
+ `,
1918
+ }]
1919
+ }], propDecorators: { route: [{ type: i0.Input, args: [{ isSignal: true, alias: "route", required: true }] }], alternatives: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternatives", required: false }] }], activeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeStep", required: false }] }, { type: i0.Output, args: ["activeStepChange"] }], units: [{ type: i0.Input, args: [{ isSignal: true, alias: "units", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], routeSelect: [{ type: i0.Output, args: ["routeSelect"] }] } });
1920
+
1921
+ let nextId = 0;
1922
+ /**
1923
+ * Moldura de street view: o app projeta a imagem ou o visualizador do provedor que usa (panorama,
1924
+ * `<img>`, `<canvas>`) e a moldura dá o resto — cabeçalho com endereço e legenda, bússola com a direção da
1925
+ * vista (`heading`, graus: 0 = norte, 90 = leste), botões de girar e de avançar/voltar, tela cheia
1926
+ * opcional, a atribuição exigida pelo provedor e os estados "carregando" e "sem imagem para este local".
1927
+ *
1928
+ * Não fala com provedor nenhum: girar muda `[(heading)]` (o app repassa ao visualizador), avançar/voltar
1929
+ * emitem `(move)` e tela cheia emite `(fullscreenRequest)` — o app decide o que fazer com cada intenção.
1930
+ * Teclado na área da imagem: ←/→ giram (`rotateStep` graus), ↑/↓ avançam e voltam.
1931
+ *
1932
+ * ```html
1933
+ * <hm-street-view address="Av. Paulista, 1578" attribution="Imagens: Exemplo" [(heading)]="heading" (move)="walk($event)">
1934
+ * <img [src]="frame()" alt="" />
1935
+ * </hm-street-view>
1936
+ * ```
1937
+ */
1938
+ class StreetViewComponent {
1939
+ #icons = useHermesIcons(MAP_ICONS);
1940
+ text = inject(MAPS_MESSAGES);
1941
+ helpId = `hm-street-view-help-${++nextId}`;
1942
+ /** Endereço do ponto (cabeçalho). Também nomeia a área da imagem quando não há `label`. */
1943
+ address = input('', ...(ngDevMode ? [{ debugName: "address" }] : /* istanbul ignore next */ []));
1944
+ /** Legenda curta (data da captura, "Vista a partir da calçada"...). */
1945
+ caption = input('', ...(ngDevMode ? [{ debugName: "caption" }] : /* istanbul ignore next */ []));
1946
+ /** Nome acessível da área da imagem. */
1947
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
1948
+ /** Direção da vista, em graus (0 = norte, 90 = leste). */
1949
+ heading = model(0, ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
1950
+ /** Quantos graus cada giro anda. */
1951
+ rotateStep = input(45, { ...(ngDevMode ? { debugName: "rotateStep" } : /* istanbul ignore next */ {}), transform: numberAttribute });
1952
+ /** Crédito exigido pelo provedor das imagens (HTML com links, sanitizado). Obrigatório. */
1953
+ attribution = input.required(...(ngDevMode ? [{ debugName: "attribution" }] : /* istanbul ignore next */ []));
1954
+ status = input('ready', ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
1955
+ /** Mostra o botão de tela cheia (emite `fullscreenRequest`). */
1956
+ fullscreen = input(false, { ...(ngDevMode ? { debugName: "fullscreen" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1957
+ canMoveForward = input(true, { ...(ngDevMode ? { debugName: "canMoveForward" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1958
+ canMoveBackward = input(true, { ...(ngDevMode ? { debugName: "canMoveBackward" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
1959
+ /** Avançar ou voltar ao ponto vizinho. */
1960
+ move = output();
1961
+ /** Pedido de tela cheia: o app chama `requestFullscreen()` no elemento que quiser. */
1962
+ fullscreenRequest = output();
1963
+ normalized = computed(() => normalizeHeading(this.heading()), ...(ngDevMode ? [{ debugName: "normalized" }] : /* istanbul ignore next */ []));
1964
+ headingText = computed(() => streetViewHeadingText(this.text.streetView, this.normalized()), ...(ngDevMode ? [{ debugName: "headingText" }] : /* istanbul ignore next */ []));
1965
+ /** Anuncia a direção só depois de um giro pedido pela pessoa (não na 1ª pintura). */
1966
+ rotated = false;
1967
+ announcement = computed(() => {
1968
+ const text = this.headingText();
1969
+ return this.rotated ? text : '';
1970
+ }, ...(ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []));
1971
+ rotate(direction) {
1972
+ this.rotated = true;
1973
+ this.heading.set(rotateHeading(this.heading(), direction, this.rotateStep()));
1974
+ }
1975
+ go(direction) {
1976
+ if (direction === 'forward' ? this.canMoveForward() : this.canMoveBackward())
1977
+ this.move.emit(direction);
1978
+ }
1979
+ onKeydown(event) {
1980
+ if (event.target !== event.currentTarget || this.status() !== 'ready')
1981
+ return;
1982
+ const action = streetViewKeyAction(event.key);
1983
+ if (!action)
1984
+ return;
1985
+ event.preventDefault();
1986
+ if (action.type === 'rotate')
1987
+ this.rotate(action.direction);
1988
+ else
1989
+ this.go(action.direction);
1990
+ }
1991
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: StreetViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1992
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: StreetViewComponent, isStandalone: true, selector: "hm-street-view", inputs: { address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, rotateStep: { classPropertyName: "rotateStep", publicName: "rotateStep", isSignal: true, isRequired: false, transformFunction: null }, attribution: { classPropertyName: "attribution", publicName: "attribution", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, fullscreen: { classPropertyName: "fullscreen", publicName: "fullscreen", isSignal: true, isRequired: false, transformFunction: null }, canMoveForward: { classPropertyName: "canMoveForward", publicName: "canMoveForward", isSignal: true, isRequired: false, transformFunction: null }, canMoveBackward: { classPropertyName: "canMoveBackward", publicName: "canMoveBackward", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { heading: "headingChange", move: "move", fullscreenRequest: "fullscreenRequest" }, host: { classAttribute: "hm-street-view" }, ngImport: i0, template: `
1993
+ @if (address() || caption()) {
1994
+ <div class="hm-street-view__header">
1995
+ @if (address()) {
1996
+ <p class="hm-street-view__address">{{ address() }}</p>
1997
+ }
1998
+ @if (caption()) {
1999
+ <p class="hm-street-view__caption">{{ caption() }}</p>
2000
+ }
2001
+ </div>
2002
+ }
2003
+
2004
+ <div
2005
+ class="hm-street-view__stage"
2006
+ role="region"
2007
+ tabindex="0"
2008
+ [attr.aria-roledescription]="text.streetView.roleDescription"
2009
+ [attr.aria-label]="label() || address() || text.streetView.label"
2010
+ [attr.aria-describedby]="helpId"
2011
+ [attr.aria-busy]="status() === 'loading' ? 'true' : null"
2012
+ (keydown)="onKeydown($event)"
2013
+ >
2014
+ @switch (status()) {
2015
+ @case ('loading') {
2016
+ <div class="hm-street-view__state" role="status">
2017
+ <hm-spinner decorative />
2018
+ <span>{{ text.streetView.loading }}</span>
2019
+ </div>
2020
+ }
2021
+ @case ('empty') {
2022
+ <div class="hm-street-view__state" role="status">
2023
+ <hm-icon class="hm-street-view__state-icon" shape="image" />
2024
+ <span class="hm-street-view__state-title">{{ text.streetView.noImagery }}</span>
2025
+ <span class="hm-street-view__state-hint">{{ text.streetView.noImageryHint }}</span>
2026
+ </div>
2027
+ }
2028
+ @default {
2029
+ <div class="hm-street-view__media"><ng-content /></div>
2030
+ }
2031
+ }
2032
+
2033
+ @if (status() === 'ready') {
2034
+ <div class="hm-street-view__compass" role="img" [attr.aria-label]="headingText()">
2035
+ <span class="hm-street-view__needle" [style.transform]="'rotate(' + -normalized() + 'deg)'" aria-hidden="true">
2036
+ <span class="hm-street-view__north">{{ text.streetView.north }}</span>
2037
+ <hm-icon shape="arrow" />
2038
+ </span>
2039
+ </div>
2040
+
2041
+ <div class="hm-street-view__controls" role="group" [attr.aria-label]="text.streetView.controls">
2042
+ <button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateLeft" (click)="rotate(-1)">
2043
+ <hm-icon shape="undo" />
2044
+ </button>
2045
+ <button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.forward" [disabled]="!canMoveForward()" (click)="go('forward')">
2046
+ <hm-icon shape="arrow" />
2047
+ </button>
2048
+ <button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.backward" [disabled]="!canMoveBackward()" (click)="go('backward')">
2049
+ <hm-icon shape="arrow" direction="down" />
2050
+ </button>
2051
+ <button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateRight" (click)="rotate(1)">
2052
+ <hm-icon shape="redo" />
2053
+ </button>
2054
+ @if (fullscreen()) {
2055
+ <button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.fullscreen" (click)="fullscreenRequest.emit()">
2056
+ <hm-icon shape="window-max" />
2057
+ </button>
2058
+ }
2059
+ </div>
2060
+ }
2061
+
2062
+ <p class="hm-street-view__sr-only" [id]="helpId">{{ text.streetView.instructions }}</p>
2063
+ <div class="hm-street-view__sr-only" aria-live="polite" aria-atomic="true">{{ announcement() }}</div>
2064
+ </div>
2065
+
2066
+ @if (attribution()) {
2067
+ <div class="hm-street-view__attribution" role="note" [attr.aria-label]="text.streetView.attribution" [innerHTML]="attribution()"></div>
2068
+ }
2069
+ `, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: SpinnerComponent, selector: "hm-spinner", inputs: ["size", "inverse", "label", "labelVisible", "decorative", "done", "doneLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2070
+ }
2071
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: StreetViewComponent, decorators: [{
2072
+ type: Component,
2073
+ args: [{
2074
+ selector: 'hm-street-view',
2075
+ imports: [IconComponent, SpinnerComponent],
2076
+ encapsulation: ViewEncapsulation.None,
2077
+ changeDetection: ChangeDetectionStrategy.OnPush,
2078
+ host: { class: 'hm-street-view' },
2079
+ template: `
2080
+ @if (address() || caption()) {
2081
+ <div class="hm-street-view__header">
2082
+ @if (address()) {
2083
+ <p class="hm-street-view__address">{{ address() }}</p>
2084
+ }
2085
+ @if (caption()) {
2086
+ <p class="hm-street-view__caption">{{ caption() }}</p>
2087
+ }
2088
+ </div>
2089
+ }
2090
+
2091
+ <div
2092
+ class="hm-street-view__stage"
2093
+ role="region"
2094
+ tabindex="0"
2095
+ [attr.aria-roledescription]="text.streetView.roleDescription"
2096
+ [attr.aria-label]="label() || address() || text.streetView.label"
2097
+ [attr.aria-describedby]="helpId"
2098
+ [attr.aria-busy]="status() === 'loading' ? 'true' : null"
2099
+ (keydown)="onKeydown($event)"
2100
+ >
2101
+ @switch (status()) {
2102
+ @case ('loading') {
2103
+ <div class="hm-street-view__state" role="status">
2104
+ <hm-spinner decorative />
2105
+ <span>{{ text.streetView.loading }}</span>
2106
+ </div>
2107
+ }
2108
+ @case ('empty') {
2109
+ <div class="hm-street-view__state" role="status">
2110
+ <hm-icon class="hm-street-view__state-icon" shape="image" />
2111
+ <span class="hm-street-view__state-title">{{ text.streetView.noImagery }}</span>
2112
+ <span class="hm-street-view__state-hint">{{ text.streetView.noImageryHint }}</span>
2113
+ </div>
2114
+ }
2115
+ @default {
2116
+ <div class="hm-street-view__media"><ng-content /></div>
2117
+ }
2118
+ }
2119
+
2120
+ @if (status() === 'ready') {
2121
+ <div class="hm-street-view__compass" role="img" [attr.aria-label]="headingText()">
2122
+ <span class="hm-street-view__needle" [style.transform]="'rotate(' + -normalized() + 'deg)'" aria-hidden="true">
2123
+ <span class="hm-street-view__north">{{ text.streetView.north }}</span>
2124
+ <hm-icon shape="arrow" />
2125
+ </span>
2126
+ </div>
2127
+
2128
+ <div class="hm-street-view__controls" role="group" [attr.aria-label]="text.streetView.controls">
2129
+ <button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateLeft" (click)="rotate(-1)">
2130
+ <hm-icon shape="undo" />
2131
+ </button>
2132
+ <button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.forward" [disabled]="!canMoveForward()" (click)="go('forward')">
2133
+ <hm-icon shape="arrow" />
2134
+ </button>
2135
+ <button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.backward" [disabled]="!canMoveBackward()" (click)="go('backward')">
2136
+ <hm-icon shape="arrow" direction="down" />
2137
+ </button>
2138
+ <button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.rotateRight" (click)="rotate(1)">
2139
+ <hm-icon shape="redo" />
2140
+ </button>
2141
+ @if (fullscreen()) {
2142
+ <button type="button" class="hm-street-view__control" [attr.aria-label]="text.streetView.fullscreen" (click)="fullscreenRequest.emit()">
2143
+ <hm-icon shape="window-max" />
2144
+ </button>
2145
+ }
2146
+ </div>
2147
+ }
2148
+
2149
+ <p class="hm-street-view__sr-only" [id]="helpId">{{ text.streetView.instructions }}</p>
2150
+ <div class="hm-street-view__sr-only" aria-live="polite" aria-atomic="true">{{ announcement() }}</div>
2151
+ </div>
2152
+
2153
+ @if (attribution()) {
2154
+ <div class="hm-street-view__attribution" role="note" [attr.aria-label]="text.streetView.attribution" [innerHTML]="attribution()"></div>
2155
+ }
2156
+ `,
2157
+ }]
2158
+ }], propDecorators: { address: [{ type: i0.Input, args: [{ isSignal: true, alias: "address", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }, { type: i0.Output, args: ["headingChange"] }], rotateStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotateStep", required: false }] }], attribution: [{ type: i0.Input, args: [{ isSignal: true, alias: "attribution", required: true }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], fullscreen: [{ type: i0.Input, args: [{ isSignal: true, alias: "fullscreen", required: false }] }], canMoveForward: [{ type: i0.Input, args: [{ isSignal: true, alias: "canMoveForward", required: false }] }], canMoveBackward: [{ type: i0.Input, args: [{ isSignal: true, alias: "canMoveBackward", required: false }] }], move: [{ type: i0.Output, args: ["move"] }], fullscreenRequest: [{ type: i0.Output, args: ["fullscreenRequest"] }] } });
2159
+
2160
+ // Os componentes desta pasta registram `MAP_ICONS` (`icons.generated.ts`); os conjuntos abaixo continuam como API pública.
2161
+ // As manobras escolhem o ícone no núcleo (`maneuverIcon` de `@trismegisto/maps`), fora da varredura de
2162
+ // `scripts/generate-internal-icons.mjs`: os nomes ficam escritos aqui para o gerador incluí-los. Constante sem uso: o
2163
+ // bundler descarta.
2164
+ const CORE_ICON_NAMES = ['map-marker', 'arrow', 'flag', 'undo', 'refresh', 'arrow-forward', 'boat', 'redo', 'window-max', 'image'];
2165
+ /** Ícones das manobras (lista de direções). */
2166
+ const ROUTE_ICONS = [
2167
+ ICON_MAP_MARKER,
2168
+ ICON_ARROW,
2169
+ ICON_FLAG,
2170
+ ICON_UNDO,
2171
+ ICON_REFRESH,
2172
+ ICON_ARROW_FORWARD,
2173
+ ICON_BOAT,
2174
+ ];
2175
+ /** Ícones da moldura de street view. */
2176
+ const STREET_VIEW_ICONS = [ICON_ARROW, ICON_UNDO, ICON_REDO, ICON_WINDOW_MAX, ICON_IMAGE];
2177
+
2178
+ // Ponto de import `@trismegisto/angular/map` (secundário do ng-packagr): as peças Angular do mapa. O núcleo sem framework
2179
+ // (projeção, vista, tiles, GeoJSON, mapas base, rotas, catálogos de texto) fica em `@trismegisto/maps`, que o app instala
2180
+ // junto. Fora do barrel `@trismegisto/angular` de propósito: o pacote do núcleo é dependência opcional (e pesado).
2181
+ /** Todas as peças do mapa, para `imports: [HM_MAP_COMPONENTS]`. */
2182
+ const HM_MAP_COMPONENTS = [
2183
+ MapComponent,
2184
+ MapBasemapComponent,
2185
+ MapChoroplethComponent,
2186
+ MapMarkerComponent,
2187
+ MapPopupComponent,
2188
+ MapPolylineComponent,
2189
+ MapPolygonComponent,
2190
+ MapCircleComponent,
2191
+ MapGeoJsonComponent,
2192
+ MapClusterComponent,
2193
+ MapRouteComponent,
2194
+ RouteDirectionsComponent,
2195
+ StreetViewComponent,
2196
+ ];
2197
+
2198
+ /**
2199
+ * Generated bundle index. Do not edit.
2200
+ */
2201
+
2202
+ export { HM_MAP, HM_MAP_COMPONENTS, HM_MAP_MARKER, MAPS_I18N_CONFIG, MAPS_MESSAGES, MapBasemapComponent, MapChoroplethComponent, MapCircleComponent, MapClusterComponent, MapComponent, MapGeoJsonComponent, MapMarkerComponent, MapPathBase, MapPolygonComponent, MapPolylineComponent, MapPopupComponent, MapRegionsBase, MapRouteComponent, ROUTE_ICONS, RouteDirectionsComponent, STREET_VIEW_ICONS, StreetViewComponent, provideMapsMessages };
2203
+ //# sourceMappingURL=trismegisto-angular-map.mjs.map