@trismegisto/angular 3.3.2 → 3.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (558) hide show
  1. package/fesm2022/trismegisto-angular-access-control.mjs +823 -0
  2. package/fesm2022/trismegisto-angular-access-control.mjs.map +1 -0
  3. package/fesm2022/trismegisto-angular-account-avatar.mjs +54 -3
  4. package/fesm2022/trismegisto-angular-account-avatar.mjs.map +1 -1
  5. package/fesm2022/trismegisto-angular-account-closure.mjs +221 -0
  6. package/fesm2022/trismegisto-angular-account-closure.mjs.map +1 -0
  7. package/fesm2022/trismegisto-angular-account-forms.mjs +924 -0
  8. package/fesm2022/trismegisto-angular-account-forms.mjs.map +1 -0
  9. package/fesm2022/trismegisto-angular-account-switcher.mjs +202 -0
  10. package/fesm2022/trismegisto-angular-account-switcher.mjs.map +1 -0
  11. package/fesm2022/trismegisto-angular-address.mjs +631 -0
  12. package/fesm2022/trismegisto-angular-address.mjs.map +1 -0
  13. package/fesm2022/trismegisto-angular-alert-history.mjs +294 -0
  14. package/fesm2022/trismegisto-angular-alert-history.mjs.map +1 -0
  15. package/fesm2022/trismegisto-angular-alert-rule-editor.mjs +450 -0
  16. package/fesm2022/trismegisto-angular-alert-rule-editor.mjs.map +1 -0
  17. package/fesm2022/trismegisto-angular-anchor-nav.mjs +157 -0
  18. package/fesm2022/trismegisto-angular-anchor-nav.mjs.map +1 -0
  19. package/fesm2022/trismegisto-angular-announcer.mjs +79 -0
  20. package/fesm2022/trismegisto-angular-announcer.mjs.map +1 -0
  21. package/fesm2022/trismegisto-angular-api-exchange.mjs +202 -0
  22. package/fesm2022/trismegisto-angular-api-exchange.mjs.map +1 -0
  23. package/fesm2022/trismegisto-angular-appointment-details.mjs +254 -0
  24. package/fesm2022/trismegisto-angular-appointment-details.mjs.map +1 -0
  25. package/fesm2022/trismegisto-angular-approval.mjs +242 -0
  26. package/fesm2022/trismegisto-angular-approval.mjs.map +1 -0
  27. package/fesm2022/trismegisto-angular-assignee.mjs +271 -0
  28. package/fesm2022/trismegisto-angular-assignee.mjs.map +1 -0
  29. package/fesm2022/trismegisto-angular-attachment.mjs +1 -1
  30. package/fesm2022/trismegisto-angular-attachment.mjs.map +1 -1
  31. package/fesm2022/trismegisto-angular-availability-editor.mjs +187 -0
  32. package/fesm2022/trismegisto-angular-availability-editor.mjs.map +1 -0
  33. package/fesm2022/trismegisto-angular-avatar-group.mjs +1 -1
  34. package/fesm2022/trismegisto-angular-avatar-group.mjs.map +1 -1
  35. package/fesm2022/trismegisto-angular-backlog.mjs +244 -0
  36. package/fesm2022/trismegisto-angular-backlog.mjs.map +1 -0
  37. package/fesm2022/trismegisto-angular-billing.mjs +1007 -0
  38. package/fesm2022/trismegisto-angular-billing.mjs.map +1 -0
  39. package/fesm2022/trismegisto-angular-bottom-navigation.mjs +203 -0
  40. package/fesm2022/trismegisto-angular-bottom-navigation.mjs.map +1 -0
  41. package/fesm2022/trismegisto-angular-bottom-sheet.mjs +428 -0
  42. package/fesm2022/trismegisto-angular-bottom-sheet.mjs.map +1 -0
  43. package/fesm2022/trismegisto-angular-card-container.mjs +1 -1
  44. package/fesm2022/trismegisto-angular-card-container.mjs.map +1 -1
  45. package/fesm2022/trismegisto-angular-cart.mjs +677 -0
  46. package/fesm2022/trismegisto-angular-cart.mjs.map +1 -0
  47. package/fesm2022/trismegisto-angular-cascader.mjs +419 -0
  48. package/fesm2022/trismegisto-angular-cascader.mjs.map +1 -0
  49. package/fesm2022/trismegisto-angular-change-history.mjs +148 -0
  50. package/fesm2022/trismegisto-angular-change-history.mjs.map +1 -0
  51. package/fesm2022/trismegisto-angular-code-diff.mjs +2 -2
  52. package/fesm2022/trismegisto-angular-code-diff.mjs.map +1 -1
  53. package/fesm2022/trismegisto-angular-color-picker.mjs +145 -0
  54. package/fesm2022/trismegisto-angular-color-picker.mjs.map +1 -0
  55. package/fesm2022/trismegisto-angular-combobox-multi.mjs +6 -4
  56. package/fesm2022/trismegisto-angular-combobox-multi.mjs.map +1 -1
  57. package/fesm2022/trismegisto-angular-commerce-format.mjs +103 -0
  58. package/fesm2022/trismegisto-angular-commerce-format.mjs.map +1 -0
  59. package/fesm2022/trismegisto-angular-connection-wizard.mjs +159 -0
  60. package/fesm2022/trismegisto-angular-connection-wizard.mjs.map +1 -0
  61. package/fesm2022/trismegisto-angular-consent.mjs +382 -0
  62. package/fesm2022/trismegisto-angular-consent.mjs.map +1 -0
  63. package/fesm2022/trismegisto-angular-credentials-form.mjs +461 -0
  64. package/fesm2022/trismegisto-angular-credentials-form.mjs.map +1 -0
  65. package/fesm2022/trismegisto-angular-data-grid.mjs +690 -18
  66. package/fesm2022/trismegisto-angular-data-grid.mjs.map +1 -1
  67. package/fesm2022/trismegisto-angular-data-source-picker.mjs +115 -0
  68. package/fesm2022/trismegisto-angular-data-source-picker.mjs.map +1 -0
  69. package/fesm2022/trismegisto-angular-date-picker.mjs +99 -10
  70. package/fesm2022/trismegisto-angular-date-picker.mjs.map +1 -1
  71. package/fesm2022/trismegisto-angular-datetime-picker.mjs +183 -0
  72. package/fesm2022/trismegisto-angular-datetime-picker.mjs.map +1 -0
  73. package/fesm2022/trismegisto-angular-deadline.mjs +326 -0
  74. package/fesm2022/trismegisto-angular-deadline.mjs.map +1 -0
  75. package/fesm2022/trismegisto-angular-deploy-pipeline.mjs +259 -0
  76. package/fesm2022/trismegisto-angular-deploy-pipeline.mjs.map +1 -0
  77. package/fesm2022/trismegisto-angular-drawer.mjs +11 -5
  78. package/fesm2022/trismegisto-angular-drawer.mjs.map +1 -1
  79. package/fesm2022/trismegisto-angular-endpoint-card.mjs +143 -0
  80. package/fesm2022/trismegisto-angular-endpoint-card.mjs.map +1 -0
  81. package/fesm2022/trismegisto-angular-entity-picker.mjs +246 -0
  82. package/fesm2022/trismegisto-angular-entity-picker.mjs.map +1 -0
  83. package/fesm2022/trismegisto-angular-environment-picker.mjs +217 -0
  84. package/fesm2022/trismegisto-angular-environment-picker.mjs.map +1 -0
  85. package/fesm2022/trismegisto-angular-event-calendar.mjs +234 -11
  86. package/fesm2022/trismegisto-angular-event-calendar.mjs.map +1 -1
  87. package/fesm2022/trismegisto-angular-execution-status.mjs +211 -0
  88. package/fesm2022/trismegisto-angular-execution-status.mjs.map +1 -0
  89. package/fesm2022/trismegisto-angular-feature-flags.mjs +153 -0
  90. package/fesm2022/trismegisto-angular-feature-flags.mjs.map +1 -0
  91. package/fesm2022/trismegisto-angular-field-mapping.mjs +178 -0
  92. package/fesm2022/trismegisto-angular-field-mapping.mjs.map +1 -0
  93. package/fesm2022/trismegisto-angular-file-list.mjs +222 -0
  94. package/fesm2022/trismegisto-angular-file-list.mjs.map +1 -0
  95. package/fesm2022/trismegisto-angular-file-permissions.mjs +273 -0
  96. package/fesm2022/trismegisto-angular-file-permissions.mjs.map +1 -0
  97. package/fesm2022/trismegisto-angular-file-upload.mjs +1 -1
  98. package/fesm2022/trismegisto-angular-file-upload.mjs.map +1 -1
  99. package/fesm2022/trismegisto-angular-file-versions.mjs +139 -0
  100. package/fesm2022/trismegisto-angular-file-versions.mjs.map +1 -0
  101. package/fesm2022/trismegisto-angular-filter-bar.mjs +1 -1
  102. package/fesm2022/trismegisto-angular-filter-bar.mjs.map +1 -1
  103. package/fesm2022/trismegisto-angular-finance.mjs +912 -0
  104. package/fesm2022/trismegisto-angular-finance.mjs.map +1 -0
  105. package/fesm2022/trismegisto-angular-form-error-summary.mjs +195 -0
  106. package/fesm2022/trismegisto-angular-form-error-summary.mjs.map +1 -0
  107. package/fesm2022/trismegisto-angular-forms.mjs +21 -3
  108. package/fesm2022/trismegisto-angular-forms.mjs.map +1 -1
  109. package/fesm2022/trismegisto-angular-gantt.mjs +453 -0
  110. package/fesm2022/trismegisto-angular-gantt.mjs.map +1 -0
  111. package/fesm2022/trismegisto-angular-header.mjs +22 -5
  112. package/fesm2022/trismegisto-angular-header.mjs.map +1 -1
  113. package/fesm2022/trismegisto-angular-health-status.mjs +204 -0
  114. package/fesm2022/trismegisto-angular-health-status.mjs.map +1 -0
  115. package/fesm2022/trismegisto-angular-icon.mjs +96 -1
  116. package/fesm2022/trismegisto-angular-icon.mjs.map +1 -1
  117. package/fesm2022/trismegisto-angular-identity-document.mjs +274 -0
  118. package/fesm2022/trismegisto-angular-identity-document.mjs.map +1 -0
  119. package/fesm2022/trismegisto-angular-image-gallery.mjs +320 -0
  120. package/fesm2022/trismegisto-angular-image-gallery.mjs.map +1 -0
  121. package/fesm2022/trismegisto-angular-incident.mjs +735 -0
  122. package/fesm2022/trismegisto-angular-incident.mjs.map +1 -0
  123. package/fesm2022/trismegisto-angular-input.mjs +2 -1
  124. package/fesm2022/trismegisto-angular-input.mjs.map +1 -1
  125. package/fesm2022/trismegisto-angular-integration-text.mjs +82 -0
  126. package/fesm2022/trismegisto-angular-integration-text.mjs.map +1 -0
  127. package/fesm2022/trismegisto-angular-integration.mjs +423 -0
  128. package/fesm2022/trismegisto-angular-integration.mjs.map +1 -0
  129. package/fesm2022/trismegisto-angular-invoice.mjs +381 -0
  130. package/fesm2022/trismegisto-angular-invoice.mjs.map +1 -0
  131. package/fesm2022/trismegisto-angular-json-viewer.mjs +388 -0
  132. package/fesm2022/trismegisto-angular-json-viewer.mjs.map +1 -0
  133. package/fesm2022/trismegisto-angular-kanban.mjs +49 -9
  134. package/fesm2022/trismegisto-angular-kanban.mjs.map +1 -1
  135. package/fesm2022/trismegisto-angular-level-badge.mjs +192 -0
  136. package/fesm2022/trismegisto-angular-level-badge.mjs.map +1 -0
  137. package/fesm2022/trismegisto-angular-location-select.mjs +213 -0
  138. package/fesm2022/trismegisto-angular-location-select.mjs.map +1 -0
  139. package/fesm2022/trismegisto-angular-log-viewer.mjs +260 -0
  140. package/fesm2022/trismegisto-angular-log-viewer.mjs.map +1 -0
  141. package/fesm2022/trismegisto-angular-maintenance-window.mjs +286 -0
  142. package/fesm2022/trismegisto-angular-maintenance-window.mjs.map +1 -0
  143. package/fesm2022/trismegisto-angular-member-list.mjs +303 -0
  144. package/fesm2022/trismegisto-angular-member-list.mjs.map +1 -0
  145. package/fesm2022/trismegisto-angular-mention-text.mjs +44 -0
  146. package/fesm2022/trismegisto-angular-mention-text.mjs.map +1 -0
  147. package/fesm2022/trismegisto-angular-menu.mjs +10 -4
  148. package/fesm2022/trismegisto-angular-menu.mjs.map +1 -1
  149. package/fesm2022/trismegisto-angular-message.mjs +132 -7
  150. package/fesm2022/trismegisto-angular-message.mjs.map +1 -1
  151. package/fesm2022/trismegisto-angular-metric-explorer.mjs +367 -0
  152. package/fesm2022/trismegisto-angular-metric-explorer.mjs.map +1 -0
  153. package/fesm2022/trismegisto-angular-modal.mjs +14 -5
  154. package/fesm2022/trismegisto-angular-modal.mjs.map +1 -1
  155. package/fesm2022/trismegisto-angular-monitoring-text.mjs +121 -0
  156. package/fesm2022/trismegisto-angular-monitoring-text.mjs.map +1 -0
  157. package/fesm2022/trismegisto-angular-month-picker.mjs +232 -0
  158. package/fesm2022/trismegisto-angular-month-picker.mjs.map +1 -0
  159. package/fesm2022/trismegisto-angular-navigation-menu.mjs +68 -9
  160. package/fesm2022/trismegisto-angular-navigation-menu.mjs.map +1 -1
  161. package/fesm2022/trismegisto-angular-number-field.mjs +275 -0
  162. package/fesm2022/trismegisto-angular-number-field.mjs.map +1 -0
  163. package/fesm2022/trismegisto-angular-observability-text.mjs +244 -0
  164. package/fesm2022/trismegisto-angular-observability-text.mjs.map +1 -0
  165. package/fesm2022/trismegisto-angular-order.mjs +443 -0
  166. package/fesm2022/trismegisto-angular-order.mjs.map +1 -0
  167. package/fesm2022/trismegisto-angular-org-chart.mjs +678 -0
  168. package/fesm2022/trismegisto-angular-org-chart.mjs.map +1 -0
  169. package/fesm2022/trismegisto-angular-password-strength.mjs +204 -0
  170. package/fesm2022/trismegisto-angular-password-strength.mjs.map +1 -0
  171. package/fesm2022/trismegisto-angular-payment-fields.mjs +818 -0
  172. package/fesm2022/trismegisto-angular-payment-fields.mjs.map +1 -0
  173. package/fesm2022/trismegisto-angular-payment-form.mjs +405 -0
  174. package/fesm2022/trismegisto-angular-payment-form.mjs.map +1 -0
  175. package/fesm2022/trismegisto-angular-payment-method.mjs +331 -0
  176. package/fesm2022/trismegisto-angular-payment-method.mjs.map +1 -0
  177. package/fesm2022/trismegisto-angular-pdf-viewer.mjs +113 -0
  178. package/fesm2022/trismegisto-angular-pdf-viewer.mjs.map +1 -0
  179. package/fesm2022/trismegisto-angular-permission-matrix.mjs +266 -0
  180. package/fesm2022/trismegisto-angular-permission-matrix.mjs.map +1 -0
  181. package/fesm2022/trismegisto-angular-pipes.mjs +171 -2
  182. package/fesm2022/trismegisto-angular-pipes.mjs.map +1 -1
  183. package/fesm2022/trismegisto-angular-popconfirm.mjs +239 -0
  184. package/fesm2022/trismegisto-angular-popconfirm.mjs.map +1 -0
  185. package/fesm2022/trismegisto-angular-popover.mjs +6 -2
  186. package/fesm2022/trismegisto-angular-popover.mjs.map +1 -1
  187. package/fesm2022/trismegisto-angular-price.mjs +276 -0
  188. package/fesm2022/trismegisto-angular-price.mjs.map +1 -0
  189. package/fesm2022/trismegisto-angular-product.mjs +800 -0
  190. package/fesm2022/trismegisto-angular-product.mjs.map +1 -0
  191. package/fesm2022/trismegisto-angular-progress.mjs +119 -4
  192. package/fesm2022/trismegisto-angular-progress.mjs.map +1 -1
  193. package/fesm2022/trismegisto-angular-rating.mjs +166 -0
  194. package/fesm2022/trismegisto-angular-rating.mjs.map +1 -0
  195. package/fesm2022/trismegisto-angular-reason-dialog.mjs +137 -0
  196. package/fesm2022/trismegisto-angular-reason-dialog.mjs.map +1 -0
  197. package/fesm2022/trismegisto-angular-recurrence-editor.mjs +429 -0
  198. package/fesm2022/trismegisto-angular-recurrence-editor.mjs.map +1 -0
  199. package/fesm2022/trismegisto-angular-release-timeline.mjs +175 -0
  200. package/fesm2022/trismegisto-angular-release-timeline.mjs.map +1 -0
  201. package/fesm2022/trismegisto-angular-report-history.mjs +251 -0
  202. package/fesm2022/trismegisto-angular-report-history.mjs.map +1 -0
  203. package/fesm2022/trismegisto-angular-report-schedule.mjs +240 -0
  204. package/fesm2022/trismegisto-angular-report-schedule.mjs.map +1 -0
  205. package/fesm2022/trismegisto-angular-resource-calendar.mjs +172 -0
  206. package/fesm2022/trismegisto-angular-resource-calendar.mjs.map +1 -0
  207. package/fesm2022/trismegisto-angular-resource-usage.mjs +208 -0
  208. package/fesm2022/trismegisto-angular-resource-usage.mjs.map +1 -0
  209. package/fesm2022/trismegisto-angular-return-request.mjs +316 -0
  210. package/fesm2022/trismegisto-angular-return-request.mjs.map +1 -0
  211. package/fesm2022/trismegisto-angular-rich-text.mjs +1 -1
  212. package/fesm2022/trismegisto-angular-rich-text.mjs.map +1 -1
  213. package/fesm2022/trismegisto-angular-risk-register.mjs +342 -0
  214. package/fesm2022/trismegisto-angular-risk-register.mjs.map +1 -0
  215. package/fesm2022/trismegisto-angular-save-status.mjs +166 -0
  216. package/fesm2022/trismegisto-angular-save-status.mjs.map +1 -0
  217. package/fesm2022/trismegisto-angular-service-map.mjs +471 -0
  218. package/fesm2022/trismegisto-angular-service-map.mjs.map +1 -0
  219. package/fesm2022/trismegisto-angular-service-status.mjs +278 -0
  220. package/fesm2022/trismegisto-angular-service-status.mjs.map +1 -0
  221. package/fesm2022/trismegisto-angular-shipping.mjs +410 -0
  222. package/fesm2022/trismegisto-angular-shipping.mjs.map +1 -0
  223. package/fesm2022/trismegisto-angular-sidebar.mjs +3 -0
  224. package/fesm2022/trismegisto-angular-sidebar.mjs.map +1 -1
  225. package/fesm2022/trismegisto-angular-skip-link.mjs +74 -0
  226. package/fesm2022/trismegisto-angular-skip-link.mjs.map +1 -0
  227. package/fesm2022/trismegisto-angular-sla-summary.mjs +349 -0
  228. package/fesm2022/trismegisto-angular-sla-summary.mjs.map +1 -0
  229. package/fesm2022/trismegisto-angular-slot-picker.mjs +229 -0
  230. package/fesm2022/trismegisto-angular-slot-picker.mjs.map +1 -0
  231. package/fesm2022/trismegisto-angular-split-button.mjs +190 -0
  232. package/fesm2022/trismegisto-angular-split-button.mjs.map +1 -0
  233. package/fesm2022/trismegisto-angular-status-badge.mjs +80 -0
  234. package/fesm2022/trismegisto-angular-status-badge.mjs.map +1 -0
  235. package/fesm2022/trismegisto-angular-status-select.mjs +156 -0
  236. package/fesm2022/trismegisto-angular-status-select.mjs.map +1 -0
  237. package/fesm2022/trismegisto-angular-storage-usage.mjs +136 -0
  238. package/fesm2022/trismegisto-angular-storage-usage.mjs.map +1 -0
  239. package/fesm2022/trismegisto-angular-swimlane-board.mjs +237 -0
  240. package/fesm2022/trismegisto-angular-swimlane-board.mjs.map +1 -0
  241. package/fesm2022/trismegisto-angular-sync-status.mjs +269 -0
  242. package/fesm2022/trismegisto-angular-sync-status.mjs.map +1 -0
  243. package/fesm2022/trismegisto-angular-tag-input.mjs +345 -0
  244. package/fesm2022/trismegisto-angular-tag-input.mjs.map +1 -0
  245. package/fesm2022/trismegisto-angular-task-card.mjs +315 -0
  246. package/fesm2022/trismegisto-angular-task-card.mjs.map +1 -0
  247. package/fesm2022/trismegisto-angular-task-detail.mjs +737 -0
  248. package/fesm2022/trismegisto-angular-task-detail.mjs.map +1 -0
  249. package/fesm2022/trismegisto-angular-textarea.mjs +129 -8
  250. package/fesm2022/trismegisto-angular-textarea.mjs.map +1 -1
  251. package/fesm2022/trismegisto-angular-time-range.mjs +201 -0
  252. package/fesm2022/trismegisto-angular-time-range.mjs.map +1 -0
  253. package/fesm2022/trismegisto-angular-toast.mjs +135 -34
  254. package/fesm2022/trismegisto-angular-toast.mjs.map +1 -1
  255. package/fesm2022/trismegisto-angular-tour.mjs +385 -0
  256. package/fesm2022/trismegisto-angular-tour.mjs.map +1 -0
  257. package/fesm2022/trismegisto-angular-trace-waterfall.mjs +511 -0
  258. package/fesm2022/trismegisto-angular-trace-waterfall.mjs.map +1 -0
  259. package/fesm2022/trismegisto-angular-transaction.mjs +616 -0
  260. package/fesm2022/trismegisto-angular-transaction.mjs.map +1 -0
  261. package/fesm2022/trismegisto-angular-tree-select.mjs +444 -0
  262. package/fesm2022/trismegisto-angular-tree-select.mjs.map +1 -0
  263. package/fesm2022/trismegisto-angular-tree.mjs +1 -1
  264. package/fesm2022/trismegisto-angular-tree.mjs.map +1 -1
  265. package/fesm2022/trismegisto-angular-unsaved-changes.mjs +147 -0
  266. package/fesm2022/trismegisto-angular-unsaved-changes.mjs.map +1 -0
  267. package/fesm2022/trismegisto-angular-uptime-bar.mjs +271 -0
  268. package/fesm2022/trismegisto-angular-uptime-bar.mjs.map +1 -0
  269. package/fesm2022/trismegisto-angular-user-card.mjs +298 -0
  270. package/fesm2022/trismegisto-angular-user-card.mjs.map +1 -0
  271. package/fesm2022/trismegisto-angular-vehicle-plate.mjs +245 -0
  272. package/fesm2022/trismegisto-angular-vehicle-plate.mjs.map +1 -0
  273. package/fesm2022/trismegisto-angular-webhook.mjs +358 -0
  274. package/fesm2022/trismegisto-angular-webhook.mjs.map +1 -0
  275. package/fesm2022/trismegisto-angular-wizard.mjs +2 -2
  276. package/fesm2022/trismegisto-angular-wizard.mjs.map +1 -1
  277. package/fesm2022/trismegisto-angular-workflow-diagram.mjs +441 -0
  278. package/fesm2022/trismegisto-angular-workflow-diagram.mjs.map +1 -0
  279. package/fesm2022/trismegisto-angular-workflow-i18n.mjs +890 -0
  280. package/fesm2022/trismegisto-angular-workflow-i18n.mjs.map +1 -0
  281. package/fesm2022/trismegisto-angular-workload.mjs +172 -0
  282. package/fesm2022/trismegisto-angular-workload.mjs.map +1 -0
  283. package/fesm2022/trismegisto-angular-workspace-persistence.mjs +3 -2
  284. package/fesm2022/trismegisto-angular-workspace-persistence.mjs.map +1 -1
  285. package/fesm2022/trismegisto-angular-workspace.mjs +229 -44
  286. package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
  287. package/fesm2022/trismegisto-angular.mjs +117 -7
  288. package/fesm2022/trismegisto-angular.mjs.map +1 -1
  289. package/package.json +449 -5
  290. package/types/trismegisto-angular-access-control.d.ts +330 -0
  291. package/types/trismegisto-angular-access-control.d.ts.map +1 -0
  292. package/types/trismegisto-angular-account-avatar.d.ts +18 -1
  293. package/types/trismegisto-angular-account-avatar.d.ts.map +1 -1
  294. package/types/trismegisto-angular-account-closure.d.ts +85 -0
  295. package/types/trismegisto-angular-account-closure.d.ts.map +1 -0
  296. package/types/trismegisto-angular-account-forms.d.ts +381 -0
  297. package/types/trismegisto-angular-account-forms.d.ts.map +1 -0
  298. package/types/trismegisto-angular-account-switcher.d.ts +60 -0
  299. package/types/trismegisto-angular-account-switcher.d.ts.map +1 -0
  300. package/types/trismegisto-angular-address.d.ts +267 -0
  301. package/types/trismegisto-angular-address.d.ts.map +1 -0
  302. package/types/trismegisto-angular-alert-history.d.ts +77 -0
  303. package/types/trismegisto-angular-alert-history.d.ts.map +1 -0
  304. package/types/trismegisto-angular-alert-rule-editor.d.ts +123 -0
  305. package/types/trismegisto-angular-alert-rule-editor.d.ts.map +1 -0
  306. package/types/trismegisto-angular-anchor-nav.d.ts +78 -0
  307. package/types/trismegisto-angular-anchor-nav.d.ts.map +1 -0
  308. package/types/trismegisto-angular-announcer.d.ts +49 -0
  309. package/types/trismegisto-angular-announcer.d.ts.map +1 -0
  310. package/types/trismegisto-angular-api-exchange.d.ts +155 -0
  311. package/types/trismegisto-angular-api-exchange.d.ts.map +1 -0
  312. package/types/trismegisto-angular-appointment-details.d.ts +123 -0
  313. package/types/trismegisto-angular-appointment-details.d.ts.map +1 -0
  314. package/types/trismegisto-angular-approval.d.ts +109 -0
  315. package/types/trismegisto-angular-approval.d.ts.map +1 -0
  316. package/types/trismegisto-angular-assignee.d.ts +120 -0
  317. package/types/trismegisto-angular-assignee.d.ts.map +1 -0
  318. package/types/trismegisto-angular-availability-editor.d.ts +100 -0
  319. package/types/trismegisto-angular-availability-editor.d.ts.map +1 -0
  320. package/types/trismegisto-angular-backlog.d.ts +98 -0
  321. package/types/trismegisto-angular-backlog.d.ts.map +1 -0
  322. package/types/trismegisto-angular-billing.d.ts +851 -0
  323. package/types/trismegisto-angular-billing.d.ts.map +1 -0
  324. package/types/trismegisto-angular-bottom-navigation.d.ts +83 -0
  325. package/types/trismegisto-angular-bottom-navigation.d.ts.map +1 -0
  326. package/types/trismegisto-angular-bottom-sheet.d.ts +121 -0
  327. package/types/trismegisto-angular-bottom-sheet.d.ts.map +1 -0
  328. package/types/trismegisto-angular-cart.d.ts +267 -0
  329. package/types/trismegisto-angular-cart.d.ts.map +1 -0
  330. package/types/trismegisto-angular-cascader.d.ts +133 -0
  331. package/types/trismegisto-angular-cascader.d.ts.map +1 -0
  332. package/types/trismegisto-angular-change-history.d.ts +58 -0
  333. package/types/trismegisto-angular-change-history.d.ts.map +1 -0
  334. package/types/trismegisto-angular-color-picker.d.ts +73 -0
  335. package/types/trismegisto-angular-color-picker.d.ts.map +1 -0
  336. package/types/trismegisto-angular-combobox-multi.d.ts +3 -1
  337. package/types/trismegisto-angular-combobox-multi.d.ts.map +1 -1
  338. package/types/trismegisto-angular-commerce-format.d.ts +43 -0
  339. package/types/trismegisto-angular-commerce-format.d.ts.map +1 -0
  340. package/types/trismegisto-angular-connection-wizard.d.ts +110 -0
  341. package/types/trismegisto-angular-connection-wizard.d.ts.map +1 -0
  342. package/types/trismegisto-angular-consent.d.ts +142 -0
  343. package/types/trismegisto-angular-consent.d.ts.map +1 -0
  344. package/types/trismegisto-angular-credentials-form.d.ts +242 -0
  345. package/types/trismegisto-angular-credentials-form.d.ts.map +1 -0
  346. package/types/trismegisto-angular-data-grid.d.ts +382 -48
  347. package/types/trismegisto-angular-data-grid.d.ts.map +1 -1
  348. package/types/trismegisto-angular-data-source-picker.d.ts +73 -0
  349. package/types/trismegisto-angular-data-source-picker.d.ts.map +1 -0
  350. package/types/trismegisto-angular-date-picker.d.ts +75 -4
  351. package/types/trismegisto-angular-date-picker.d.ts.map +1 -1
  352. package/types/trismegisto-angular-datetime-picker.d.ts +89 -0
  353. package/types/trismegisto-angular-datetime-picker.d.ts.map +1 -0
  354. package/types/trismegisto-angular-deadline.d.ts +143 -0
  355. package/types/trismegisto-angular-deadline.d.ts.map +1 -0
  356. package/types/trismegisto-angular-deploy-pipeline.d.ts +100 -0
  357. package/types/trismegisto-angular-deploy-pipeline.d.ts.map +1 -0
  358. package/types/trismegisto-angular-drawer.d.ts +6 -3
  359. package/types/trismegisto-angular-drawer.d.ts.map +1 -1
  360. package/types/trismegisto-angular-endpoint-card.d.ts +113 -0
  361. package/types/trismegisto-angular-endpoint-card.d.ts.map +1 -0
  362. package/types/trismegisto-angular-entity-picker.d.ts +88 -0
  363. package/types/trismegisto-angular-entity-picker.d.ts.map +1 -0
  364. package/types/trismegisto-angular-environment-picker.d.ts +72 -0
  365. package/types/trismegisto-angular-environment-picker.d.ts.map +1 -0
  366. package/types/trismegisto-angular-event-calendar.d.ts +52 -6
  367. package/types/trismegisto-angular-event-calendar.d.ts.map +1 -1
  368. package/types/trismegisto-angular-execution-status.d.ts +76 -0
  369. package/types/trismegisto-angular-execution-status.d.ts.map +1 -0
  370. package/types/trismegisto-angular-feature-flags.d.ts +97 -0
  371. package/types/trismegisto-angular-feature-flags.d.ts.map +1 -0
  372. package/types/trismegisto-angular-field-mapping.d.ts +118 -0
  373. package/types/trismegisto-angular-field-mapping.d.ts.map +1 -0
  374. package/types/trismegisto-angular-file-list.d.ts +136 -0
  375. package/types/trismegisto-angular-file-list.d.ts.map +1 -0
  376. package/types/trismegisto-angular-file-permissions.d.ts +171 -0
  377. package/types/trismegisto-angular-file-permissions.d.ts.map +1 -0
  378. package/types/trismegisto-angular-file-versions.d.ts +93 -0
  379. package/types/trismegisto-angular-file-versions.d.ts.map +1 -0
  380. package/types/trismegisto-angular-finance.d.ts +623 -0
  381. package/types/trismegisto-angular-finance.d.ts.map +1 -0
  382. package/types/trismegisto-angular-form-error-summary.d.ts +98 -0
  383. package/types/trismegisto-angular-form-error-summary.d.ts.map +1 -0
  384. package/types/trismegisto-angular-forms.d.ts +14 -1
  385. package/types/trismegisto-angular-forms.d.ts.map +1 -1
  386. package/types/trismegisto-angular-gantt.d.ts +128 -0
  387. package/types/trismegisto-angular-gantt.d.ts.map +1 -0
  388. package/types/trismegisto-angular-header.d.ts +5 -1
  389. package/types/trismegisto-angular-header.d.ts.map +1 -1
  390. package/types/trismegisto-angular-health-status.d.ts +71 -0
  391. package/types/trismegisto-angular-health-status.d.ts.map +1 -0
  392. package/types/trismegisto-angular-icon.d.ts +96 -1
  393. package/types/trismegisto-angular-icon.d.ts.map +1 -1
  394. package/types/trismegisto-angular-identity-document.d.ts +112 -0
  395. package/types/trismegisto-angular-identity-document.d.ts.map +1 -0
  396. package/types/trismegisto-angular-image-gallery.d.ts +129 -0
  397. package/types/trismegisto-angular-image-gallery.d.ts.map +1 -0
  398. package/types/trismegisto-angular-incident.d.ts +212 -0
  399. package/types/trismegisto-angular-incident.d.ts.map +1 -0
  400. package/types/trismegisto-angular-input.d.ts.map +1 -1
  401. package/types/trismegisto-angular-integration-text.d.ts +42 -0
  402. package/types/trismegisto-angular-integration-text.d.ts.map +1 -0
  403. package/types/trismegisto-angular-integration.d.ts +283 -0
  404. package/types/trismegisto-angular-integration.d.ts.map +1 -0
  405. package/types/trismegisto-angular-invoice.d.ts +221 -0
  406. package/types/trismegisto-angular-invoice.d.ts.map +1 -0
  407. package/types/trismegisto-angular-json-viewer.d.ts +117 -0
  408. package/types/trismegisto-angular-json-viewer.d.ts.map +1 -0
  409. package/types/trismegisto-angular-kanban.d.ts +38 -3
  410. package/types/trismegisto-angular-kanban.d.ts.map +1 -1
  411. package/types/trismegisto-angular-level-badge.d.ts +87 -0
  412. package/types/trismegisto-angular-level-badge.d.ts.map +1 -0
  413. package/types/trismegisto-angular-location-select.d.ts +80 -0
  414. package/types/trismegisto-angular-location-select.d.ts.map +1 -0
  415. package/types/trismegisto-angular-log-viewer.d.ts +125 -0
  416. package/types/trismegisto-angular-log-viewer.d.ts.map +1 -0
  417. package/types/trismegisto-angular-maintenance-window.d.ts +89 -0
  418. package/types/trismegisto-angular-maintenance-window.d.ts.map +1 -0
  419. package/types/trismegisto-angular-member-list.d.ts +80 -0
  420. package/types/trismegisto-angular-member-list.d.ts.map +1 -0
  421. package/types/trismegisto-angular-mention-text.d.ts +28 -0
  422. package/types/trismegisto-angular-mention-text.d.ts.map +1 -0
  423. package/types/trismegisto-angular-menu.d.ts +4 -1
  424. package/types/trismegisto-angular-menu.d.ts.map +1 -1
  425. package/types/trismegisto-angular-message.d.ts +31 -2
  426. package/types/trismegisto-angular-message.d.ts.map +1 -1
  427. package/types/trismegisto-angular-metric-explorer.d.ts +117 -0
  428. package/types/trismegisto-angular-metric-explorer.d.ts.map +1 -0
  429. package/types/trismegisto-angular-modal.d.ts +1 -0
  430. package/types/trismegisto-angular-modal.d.ts.map +1 -1
  431. package/types/trismegisto-angular-monitoring-text.d.ts +57 -0
  432. package/types/trismegisto-angular-monitoring-text.d.ts.map +1 -0
  433. package/types/trismegisto-angular-month-picker.d.ts +104 -0
  434. package/types/trismegisto-angular-month-picker.d.ts.map +1 -0
  435. package/types/trismegisto-angular-navigation-menu.d.ts +35 -2
  436. package/types/trismegisto-angular-navigation-menu.d.ts.map +1 -1
  437. package/types/trismegisto-angular-number-field.d.ts +148 -0
  438. package/types/trismegisto-angular-number-field.d.ts.map +1 -0
  439. package/types/trismegisto-angular-observability-text.d.ts +85 -0
  440. package/types/trismegisto-angular-observability-text.d.ts.map +1 -0
  441. package/types/trismegisto-angular-order.d.ts +268 -0
  442. package/types/trismegisto-angular-order.d.ts.map +1 -0
  443. package/types/trismegisto-angular-org-chart.d.ts +145 -0
  444. package/types/trismegisto-angular-org-chart.d.ts.map +1 -0
  445. package/types/trismegisto-angular-password-strength.d.ts +74 -0
  446. package/types/trismegisto-angular-password-strength.d.ts.map +1 -0
  447. package/types/trismegisto-angular-payment-fields.d.ts +450 -0
  448. package/types/trismegisto-angular-payment-fields.d.ts.map +1 -0
  449. package/types/trismegisto-angular-payment-form.d.ts +189 -0
  450. package/types/trismegisto-angular-payment-form.d.ts.map +1 -0
  451. package/types/trismegisto-angular-payment-method.d.ts +238 -0
  452. package/types/trismegisto-angular-payment-method.d.ts.map +1 -0
  453. package/types/trismegisto-angular-pdf-viewer.d.ts +70 -0
  454. package/types/trismegisto-angular-pdf-viewer.d.ts.map +1 -0
  455. package/types/trismegisto-angular-permission-matrix.d.ts +70 -0
  456. package/types/trismegisto-angular-permission-matrix.d.ts.map +1 -0
  457. package/types/trismegisto-angular-pipes.d.ts +108 -2
  458. package/types/trismegisto-angular-pipes.d.ts.map +1 -1
  459. package/types/trismegisto-angular-popconfirm.d.ts +115 -0
  460. package/types/trismegisto-angular-popconfirm.d.ts.map +1 -0
  461. package/types/trismegisto-angular-popover.d.ts +3 -1
  462. package/types/trismegisto-angular-popover.d.ts.map +1 -1
  463. package/types/trismegisto-angular-price.d.ts +185 -0
  464. package/types/trismegisto-angular-price.d.ts.map +1 -0
  465. package/types/trismegisto-angular-product.d.ts +391 -0
  466. package/types/trismegisto-angular-product.d.ts.map +1 -0
  467. package/types/trismegisto-angular-progress.d.ts +20 -3
  468. package/types/trismegisto-angular-progress.d.ts.map +1 -1
  469. package/types/trismegisto-angular-rating.d.ts +83 -0
  470. package/types/trismegisto-angular-rating.d.ts.map +1 -0
  471. package/types/trismegisto-angular-reason-dialog.d.ts +65 -0
  472. package/types/trismegisto-angular-reason-dialog.d.ts.map +1 -0
  473. package/types/trismegisto-angular-recurrence-editor.d.ts +151 -0
  474. package/types/trismegisto-angular-recurrence-editor.d.ts.map +1 -0
  475. package/types/trismegisto-angular-release-timeline.d.ts +79 -0
  476. package/types/trismegisto-angular-release-timeline.d.ts.map +1 -0
  477. package/types/trismegisto-angular-report-history.d.ts +144 -0
  478. package/types/trismegisto-angular-report-history.d.ts.map +1 -0
  479. package/types/trismegisto-angular-report-schedule.d.ts +138 -0
  480. package/types/trismegisto-angular-report-schedule.d.ts.map +1 -0
  481. package/types/trismegisto-angular-resource-calendar.d.ts +107 -0
  482. package/types/trismegisto-angular-resource-calendar.d.ts.map +1 -0
  483. package/types/trismegisto-angular-resource-usage.d.ts +91 -0
  484. package/types/trismegisto-angular-resource-usage.d.ts.map +1 -0
  485. package/types/trismegisto-angular-return-request.d.ts +158 -0
  486. package/types/trismegisto-angular-return-request.d.ts.map +1 -0
  487. package/types/trismegisto-angular-risk-register.d.ts +130 -0
  488. package/types/trismegisto-angular-risk-register.d.ts.map +1 -0
  489. package/types/trismegisto-angular-save-status.d.ts +67 -0
  490. package/types/trismegisto-angular-save-status.d.ts.map +1 -0
  491. package/types/trismegisto-angular-service-map.d.ts +111 -0
  492. package/types/trismegisto-angular-service-map.d.ts.map +1 -0
  493. package/types/trismegisto-angular-service-status.d.ts +82 -0
  494. package/types/trismegisto-angular-service-status.d.ts.map +1 -0
  495. package/types/trismegisto-angular-shipping.d.ts +221 -0
  496. package/types/trismegisto-angular-shipping.d.ts.map +1 -0
  497. package/types/trismegisto-angular-sidebar.d.ts +1 -0
  498. package/types/trismegisto-angular-sidebar.d.ts.map +1 -1
  499. package/types/trismegisto-angular-skip-link.d.ts +53 -0
  500. package/types/trismegisto-angular-skip-link.d.ts.map +1 -0
  501. package/types/trismegisto-angular-sla-summary.d.ts +104 -0
  502. package/types/trismegisto-angular-sla-summary.d.ts.map +1 -0
  503. package/types/trismegisto-angular-slot-picker.d.ts +128 -0
  504. package/types/trismegisto-angular-slot-picker.d.ts.map +1 -0
  505. package/types/trismegisto-angular-split-button.d.ts +81 -0
  506. package/types/trismegisto-angular-split-button.d.ts.map +1 -0
  507. package/types/trismegisto-angular-status-badge.d.ts +40 -0
  508. package/types/trismegisto-angular-status-badge.d.ts.map +1 -0
  509. package/types/trismegisto-angular-status-select.d.ts +76 -0
  510. package/types/trismegisto-angular-status-select.d.ts.map +1 -0
  511. package/types/trismegisto-angular-storage-usage.d.ts +82 -0
  512. package/types/trismegisto-angular-storage-usage.d.ts.map +1 -0
  513. package/types/trismegisto-angular-swimlane-board.d.ts +114 -0
  514. package/types/trismegisto-angular-swimlane-board.d.ts.map +1 -0
  515. package/types/trismegisto-angular-sync-status.d.ts +191 -0
  516. package/types/trismegisto-angular-sync-status.d.ts.map +1 -0
  517. package/types/trismegisto-angular-tag-input.d.ts +121 -0
  518. package/types/trismegisto-angular-tag-input.d.ts.map +1 -0
  519. package/types/trismegisto-angular-task-card.d.ts +106 -0
  520. package/types/trismegisto-angular-task-card.d.ts.map +1 -0
  521. package/types/trismegisto-angular-task-detail.d.ts +248 -0
  522. package/types/trismegisto-angular-task-detail.d.ts.map +1 -0
  523. package/types/trismegisto-angular-textarea.d.ts +31 -1
  524. package/types/trismegisto-angular-textarea.d.ts.map +1 -1
  525. package/types/trismegisto-angular-time-range.d.ts +92 -0
  526. package/types/trismegisto-angular-time-range.d.ts.map +1 -0
  527. package/types/trismegisto-angular-toast.d.ts +50 -11
  528. package/types/trismegisto-angular-toast.d.ts.map +1 -1
  529. package/types/trismegisto-angular-tour.d.ts +116 -0
  530. package/types/trismegisto-angular-tour.d.ts.map +1 -0
  531. package/types/trismegisto-angular-trace-waterfall.d.ts +111 -0
  532. package/types/trismegisto-angular-trace-waterfall.d.ts.map +1 -0
  533. package/types/trismegisto-angular-transaction.d.ts +542 -0
  534. package/types/trismegisto-angular-transaction.d.ts.map +1 -0
  535. package/types/trismegisto-angular-tree-select.d.ts +197 -0
  536. package/types/trismegisto-angular-tree-select.d.ts.map +1 -0
  537. package/types/trismegisto-angular-unsaved-changes.d.ts +101 -0
  538. package/types/trismegisto-angular-unsaved-changes.d.ts.map +1 -0
  539. package/types/trismegisto-angular-uptime-bar.d.ts +90 -0
  540. package/types/trismegisto-angular-uptime-bar.d.ts.map +1 -0
  541. package/types/trismegisto-angular-user-card.d.ts +126 -0
  542. package/types/trismegisto-angular-user-card.d.ts.map +1 -0
  543. package/types/trismegisto-angular-vehicle-plate.d.ts +107 -0
  544. package/types/trismegisto-angular-vehicle-plate.d.ts.map +1 -0
  545. package/types/trismegisto-angular-webhook.d.ts +244 -0
  546. package/types/trismegisto-angular-webhook.d.ts.map +1 -0
  547. package/types/trismegisto-angular-workflow-diagram.d.ts +136 -0
  548. package/types/trismegisto-angular-workflow-diagram.d.ts.map +1 -0
  549. package/types/trismegisto-angular-workflow-i18n.d.ts +358 -0
  550. package/types/trismegisto-angular-workflow-i18n.d.ts.map +1 -0
  551. package/types/trismegisto-angular-workload.d.ts +64 -0
  552. package/types/trismegisto-angular-workload.d.ts.map +1 -0
  553. package/types/trismegisto-angular-workspace-persistence.d.ts +5 -4
  554. package/types/trismegisto-angular-workspace-persistence.d.ts.map +1 -1
  555. package/types/trismegisto-angular-workspace.d.ts +79 -7
  556. package/types/trismegisto-angular-workspace.d.ts.map +1 -1
  557. package/types/trismegisto-angular.d.ts +120 -10
  558. package/types/trismegisto-angular.d.ts.map +1 -1
@@ -0,0 +1,159 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, model, booleanAttribute, output, inject, computed, viewChild, signal, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { ButtonComponent } from '@trismegisto/angular/button';
4
+ import { CredentialsFormComponent, ConnectionTestComponent } from '@trismegisto/angular/credentials-form';
5
+ import { DataSourcePickerComponent } from '@trismegisto/angular/data-source-picker';
6
+ import { HermesI18nService } from '@trismegisto/angular/i18n';
7
+ import { ICON_CHECK_CIRCLE, ICON_CONNECT, ICON_EXCLAMATION_TRIANGLE, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
8
+ import { StepComponent } from '@trismegisto/angular/stepper';
9
+ import { WizardComponent } from '@trismegisto/angular/wizard';
10
+
11
+ // Catálogo próprio da pasta (pt-BR/en/es): só os textos daqui, para não inchar o catálogo comum.
12
+ const CONNECTION_WIZARD_MESSAGES_PT_BR = {
13
+ wizard: {
14
+ heading: 'Conectar integração',
15
+ source: 'Escolher',
16
+ authorize: 'Credenciais',
17
+ test: 'Testar',
18
+ done: 'Concluir',
19
+ testFirst: 'Teste a conexão com sucesso antes de avançar.',
20
+ doneHeading: 'Tudo pronto',
21
+ doneBody: 'A conexão foi testada. Conclua para salvar e começar a usar.',
22
+ finish: 'Concluir',
23
+ testAction: 'Testar conexão',
24
+ },
25
+ };
26
+ const CONNECTION_WIZARD_MESSAGES_EN = {
27
+ wizard: {
28
+ heading: 'Connect integration',
29
+ source: 'Choose',
30
+ authorize: 'Credentials',
31
+ test: 'Test',
32
+ done: 'Finish',
33
+ testFirst: 'Test the connection successfully before moving on.',
34
+ doneHeading: 'All set',
35
+ doneBody: 'The connection was tested. Finish to save it and start using it.',
36
+ finish: 'Finish',
37
+ testAction: 'Test connection',
38
+ },
39
+ };
40
+ const CONNECTION_WIZARD_MESSAGES_ES = {
41
+ wizard: {
42
+ heading: 'Conectar integración',
43
+ source: 'Elegir',
44
+ authorize: 'Credenciales',
45
+ test: 'Probar',
46
+ done: 'Finalizar',
47
+ testFirst: 'Prueba la conexión con éxito antes de avanzar.',
48
+ doneHeading: 'Todo listo',
49
+ doneBody: 'La conexión se probó. Finaliza para guardarla y empezar a usarla.',
50
+ finish: 'Finalizar',
51
+ testAction: 'Probar conexión',
52
+ },
53
+ };
54
+
55
+ const CONNECTION_WIZARD_ICONS = [ICON_CHECK_CIRCLE, ICON_CONNECT, ICON_EXCLAMATION_TRIANGLE];
56
+
57
+ /**
58
+ * Assistente de conexão (`hm-connection-wizard`) sobre o `hm-wizard`: **Escolher** a fonte
59
+ * (`hm-data-source-picker`) → **Credenciais** (`hm-credentials-form`, ou conteúdo projetado para um fluxo
60
+ * de autorização) → **Testar** (`hm-connection-test`) → **Concluir**.
61
+ *
62
+ * ```html
63
+ * <hm-connection-wizard [(open)]="aberto" [sources]="fontes" [(sourceId)]="fonte" [fields]="campos"
64
+ * [(values)]="valores" [testResult]="teste()" [saving]="salvando()"
65
+ * (test)="testar($event)" (completed)="salvar($event)" />
66
+ * ```
67
+ *
68
+ * - Sem `sources`, a etapa Escolher some. Sem `fields`, a etapa Credenciais mostra o conteúdo projetado
69
+ * (um botão "Autorizar com…", por exemplo) e quem usa controla o `canAuthorize`.
70
+ * - Avançar das Credenciais valida os campos (`credentialIssues`); avançar do Testar exige um teste com
71
+ * sucesso (`testResult.state === 'success'`) e, sem ele, diz em texto o que falta.
72
+ * - O assistente só emite intenções: `test` (o app testa e devolve `testResult`), `completed` (o app salva,
73
+ * liga `saving` e fecha com `open = false`) e `cancelled`.
74
+ * - Segredos seguem as regras do `hm-credentials-form`: nada sai da etapa além dos eventos.
75
+ */
76
+ class ConnectionWizardComponent {
77
+ #icons = useHermesIcons(CONNECTION_WIZARD_ICONS);
78
+ /** Título; vazio = catálogo ("Conectar integração"). */
79
+ heading = input('', ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
80
+ mode = input('modal', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
81
+ size = input('large', ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
82
+ /** Visibilidade (modo `modal`). Two-way. */
83
+ open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
84
+ /** Fontes para a etapa Escolher; vazio = sem a etapa. */
85
+ sources = input([], ...(ngDevMode ? [{ debugName: "sources" }] : /* istanbul ignore next */ []));
86
+ /** Fonte escolhida. Two-way. */
87
+ sourceId = model(null, ...(ngDevMode ? [{ debugName: "sourceId" }] : /* istanbul ignore next */ []));
88
+ /** Campos de credencial; vazio = a etapa mostra o conteúdo projetado. */
89
+ fields = input([], ...(ngDevMode ? [{ debugName: "fields" }] : /* istanbul ignore next */ []));
90
+ /** Valores das credenciais. Two-way. */
91
+ values = model({}, ...(ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []));
92
+ /** Libera o Avançar da etapa Credenciais quando ela é um fluxo projetado (autorização). */
93
+ canAuthorize = input(true, { ...(ngDevMode ? { debugName: "canAuthorize" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
94
+ testResult = input(null, ...(ngDevMode ? [{ debugName: "testResult" }] : /* istanbul ignore next */ []));
95
+ /** Salvando: o Concluir carrega. */
96
+ saving = input(false, { ...(ngDevMode ? { debugName: "saving" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
97
+ /** Pergunta antes de cancelar (repassado ao `hm-wizard`). */
98
+ confirmCancel = input(false, { ...(ngDevMode ? { debugName: "confirmCancel" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
99
+ test = output();
100
+ completed = output();
101
+ cancelled = output();
102
+ #i18n = inject(HermesI18nService);
103
+ /** Sobrescrita parcial dos textos da pasta (o app troca a frase sem mudar de idioma). */
104
+ texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
105
+ allTexts = computed(() => ({
106
+ ...this.#i18n.pick({ 'pt-BR': CONNECTION_WIZARD_MESSAGES_PT_BR, en: CONNECTION_WIZARD_MESSAGES_EN, es: CONNECTION_WIZARD_MESSAGES_ES }, CONNECTION_WIZARD_MESSAGES_PT_BR),
107
+ ...(this.texts() ?? {}),
108
+ }), ...(ngDevMode ? [{ debugName: "allTexts" }] : /* istanbul ignore next */ []));
109
+ text = computed(() => this.allTexts().wizard, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
110
+ form = viewChild(CredentialsFormComponent, ...(ngDevMode ? [{ debugName: "form" }] : /* istanbul ignore next */ []));
111
+ /** Tentou avançar do Testar sem sucesso: mostra o que falta. */
112
+ testBlocked = signal(false, ...(ngDevMode ? [{ debugName: "testBlocked" }] : /* istanbul ignore next */ []));
113
+ tested = computed(() => this.testResult()?.state === 'success', ...(ngDevMode ? [{ debugName: "tested" }] : /* istanbul ignore next */ []));
114
+ testing = computed(() => this.testResult()?.state === 'testing', ...(ngDevMode ? [{ debugName: "testing" }] : /* istanbul ignore next */ []));
115
+ sourceGuard = () => !this.sources().length || !!this.sourceId();
116
+ credentialsGuard = () => {
117
+ const form = this.form();
118
+ return form ? form.validate() : this.canAuthorize();
119
+ };
120
+ testGuard = () => {
121
+ const ok = this.tested();
122
+ this.testBlocked.set(!ok);
123
+ return ok;
124
+ };
125
+ request() {
126
+ return { sourceId: this.sourceId(), values: this.values() };
127
+ }
128
+ requestTest() {
129
+ this.testBlocked.set(false);
130
+ this.test.emit(this.request());
131
+ }
132
+ complete() {
133
+ this.completed.emit(this.request());
134
+ }
135
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ConnectionWizardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
136
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ConnectionWizardComponent, isStandalone: true, selector: "hm-connection-wizard", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: false, transformFunction: null }, sourceId: { classPropertyName: "sourceId", publicName: "sourceId", isSignal: true, isRequired: false, transformFunction: null }, fields: { classPropertyName: "fields", publicName: "fields", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, canAuthorize: { classPropertyName: "canAuthorize", publicName: "canAuthorize", isSignal: true, isRequired: false, transformFunction: null }, testResult: { classPropertyName: "testResult", publicName: "testResult", isSignal: true, isRequired: false, transformFunction: null }, saving: { classPropertyName: "saving", publicName: "saving", isSignal: true, isRequired: false, transformFunction: null }, confirmCancel: { classPropertyName: "confirmCancel", publicName: "confirmCancel", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", sourceId: "sourceIdChange", values: "valuesChange", test: "test", completed: "completed", cancelled: "cancelled" }, host: { classAttribute: "hm-connection-wizard" }, viewQueries: [{ propertyName: "form", first: true, predicate: CredentialsFormComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<hm-wizard\n [heading]=\"heading() || text().heading\"\n [mode]=\"mode()\"\n [size]=\"size()\"\n [(open)]=\"open\"\n [loading]=\"saving()\"\n [confirmCancel]=\"confirmCancel()\"\n [finishLabel]=\"text().finish\"\n (completed)=\"complete()\"\n (cancelled)=\"cancelled.emit()\"\n>\n @if (sources().length) {\n <hm-step [label]=\"text().source\" [canAdvance]=\"sourceGuard\">\n <hm-data-source-picker [options]=\"sources()\" [(value)]=\"sourceId\" />\n </hm-step>\n }\n <hm-step [label]=\"text().authorize\" [canAdvance]=\"credentialsGuard\">\n @if (fields().length) {\n <hm-credentials-form [fields]=\"fields()\" [(values)]=\"values\" [testable]=\"false\" hideActions />\n } @else {\n <ng-content />\n }\n </hm-step>\n <hm-step [label]=\"text().test\" [canAdvance]=\"testGuard\">\n <div class=\"hm-connection-wizard__test\">\n <hm-button emphasis=\"medium\" icon=\"connect\" [loading]=\"testing()\" (clicked)=\"requestTest()\">{{ text().testAction }}</hm-button>\n <hm-connection-test [result]=\"testResult()\" />\n @if (testBlocked() && !tested()) {\n <p class=\"hm-connection-wizard__blocked\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" aria-hidden=\"true\" />\n <span>{{ text().testFirst }}</span>\n </p>\n }\n </div>\n </hm-step>\n <hm-step [label]=\"text().done\">\n <div class=\"hm-connection-wizard__done\">\n <hm-icon class=\"hm-connection-wizard__done-icon\" shape=\"check-circle\" aria-hidden=\"true\" />\n <p class=\"hm-connection-wizard__done-heading\">{{ text().doneHeading }}</p>\n <p class=\"hm-connection-wizard__done-body\">{{ text().doneBody }}</p>\n </div>\n </hm-step>\n</hm-wizard>\n", dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: ConnectionTestComponent, selector: "hm-connection-test", inputs: ["result", "showIdle", "texts"] }, { kind: "component", type: CredentialsFormComponent, selector: "hm-credentials-form", inputs: ["fields", "values", "testResult", "testable", "requireTest", "saving", "hideActions", "testLabel", "saveLabel", "texts"], outputs: ["valuesChange", "test", "save"] }, { kind: "component", type: DataSourcePickerComponent, selector: "hm-data-source-picker", inputs: ["options", "value", "label", "searchable", "query", "texts"], outputs: ["valueChange", "queryChange"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: StepComponent, selector: "hm-step", inputs: ["label", "description", "optional", "disabled", "error", "completed", "stepControl", "canAdvance", "summary"] }, { kind: "component", type: WizardComponent, selector: "hm-wizard", inputs: ["heading", "mode", "open", "size", "selectedIndex", "linear", "loading", "confirmCancel", "level", "resetOnOpen", "backLabel", "nextLabel", "finishLabel", "cancelLabel", "summary", "summaryLabel", "summaryDescription"], outputs: ["openChange", "selectedIndexChange", "completed", "cancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
137
+ }
138
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ConnectionWizardComponent, decorators: [{
139
+ type: Component,
140
+ args: [{ selector: 'hm-connection-wizard', imports: [
141
+ ButtonComponent,
142
+ ConnectionTestComponent,
143
+ CredentialsFormComponent,
144
+ DataSourcePickerComponent,
145
+ IconComponent,
146
+ StepComponent,
147
+ WizardComponent,
148
+ ], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-connection-wizard' }, template: "<hm-wizard\n [heading]=\"heading() || text().heading\"\n [mode]=\"mode()\"\n [size]=\"size()\"\n [(open)]=\"open\"\n [loading]=\"saving()\"\n [confirmCancel]=\"confirmCancel()\"\n [finishLabel]=\"text().finish\"\n (completed)=\"complete()\"\n (cancelled)=\"cancelled.emit()\"\n>\n @if (sources().length) {\n <hm-step [label]=\"text().source\" [canAdvance]=\"sourceGuard\">\n <hm-data-source-picker [options]=\"sources()\" [(value)]=\"sourceId\" />\n </hm-step>\n }\n <hm-step [label]=\"text().authorize\" [canAdvance]=\"credentialsGuard\">\n @if (fields().length) {\n <hm-credentials-form [fields]=\"fields()\" [(values)]=\"values\" [testable]=\"false\" hideActions />\n } @else {\n <ng-content />\n }\n </hm-step>\n <hm-step [label]=\"text().test\" [canAdvance]=\"testGuard\">\n <div class=\"hm-connection-wizard__test\">\n <hm-button emphasis=\"medium\" icon=\"connect\" [loading]=\"testing()\" (clicked)=\"requestTest()\">{{ text().testAction }}</hm-button>\n <hm-connection-test [result]=\"testResult()\" />\n @if (testBlocked() && !tested()) {\n <p class=\"hm-connection-wizard__blocked\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" aria-hidden=\"true\" />\n <span>{{ text().testFirst }}</span>\n </p>\n }\n </div>\n </hm-step>\n <hm-step [label]=\"text().done\">\n <div class=\"hm-connection-wizard__done\">\n <hm-icon class=\"hm-connection-wizard__done-icon\" shape=\"check-circle\" aria-hidden=\"true\" />\n <p class=\"hm-connection-wizard__done-heading\">{{ text().doneHeading }}</p>\n <p class=\"hm-connection-wizard__done-body\">{{ text().doneBody }}</p>\n </div>\n </hm-step>\n</hm-wizard>\n" }]
149
+ }], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], sources: [{ type: i0.Input, args: [{ isSignal: true, alias: "sources", required: false }] }], sourceId: [{ type: i0.Input, args: [{ isSignal: true, alias: "sourceId", required: false }] }, { type: i0.Output, args: ["sourceIdChange"] }], fields: [{ type: i0.Input, args: [{ isSignal: true, alias: "fields", required: false }] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], canAuthorize: [{ type: i0.Input, args: [{ isSignal: true, alias: "canAuthorize", required: false }] }], testResult: [{ type: i0.Input, args: [{ isSignal: true, alias: "testResult", required: false }] }], saving: [{ type: i0.Input, args: [{ isSignal: true, alias: "saving", required: false }] }], confirmCancel: [{ type: i0.Input, args: [{ isSignal: true, alias: "confirmCancel", required: false }] }], test: [{ type: i0.Output, args: ["test"] }], completed: [{ type: i0.Output, args: ["completed"] }], cancelled: [{ type: i0.Output, args: ["cancelled"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }], form: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CredentialsFormComponent), { isSignal: true }] }] } });
150
+
151
+ // Ponto de import `@trismegisto/angular/connection-wizard`: assistente de conexão sobre o `hm-wizard`. Ao criar
152
+ // arquivo público novo na pasta, acrescente a linha.
153
+
154
+ /**
155
+ * Generated bundle index. Do not edit.
156
+ */
157
+
158
+ export { CONNECTION_WIZARD_MESSAGES_EN, CONNECTION_WIZARD_MESSAGES_ES, CONNECTION_WIZARD_MESSAGES_PT_BR, ConnectionWizardComponent };
159
+ //# sourceMappingURL=trismegisto-angular-connection-wizard.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trismegisto-angular-connection-wizard.mjs","sources":["../../src/connection-wizard/connection-wizard-messages.ts","../../src/connection-wizard/icons.generated.ts","../../src/connection-wizard/connection-wizard.component.ts","../../src/connection-wizard/connection-wizard.component.html","../../src/connection-wizard/index.ts","../../src/connection-wizard/trismegisto-angular-connection-wizard.ts"],"sourcesContent":["// Catálogo próprio da pasta (pt-BR/en/es): só os textos daqui, para não inchar o catálogo comum.\n\n/** Textos do hm-connection-wizard. */\nexport interface ConnectionWizardMessages {\n /** hm-connection-wizard. */\n wizard: {\n heading: string;\n source: string;\n authorize: string;\n test: string;\n done: string;\n testFirst: string;\n doneHeading: string;\n doneBody: string;\n finish: string;\n testAction: string;\n };\n}\n\nexport const CONNECTION_WIZARD_MESSAGES_PT_BR: ConnectionWizardMessages = {\n wizard: {\n heading: 'Conectar integração',\n source: 'Escolher',\n authorize: 'Credenciais',\n test: 'Testar',\n done: 'Concluir',\n testFirst: 'Teste a conexão com sucesso antes de avançar.',\n doneHeading: 'Tudo pronto',\n doneBody: 'A conexão foi testada. Conclua para salvar e começar a usar.',\n finish: 'Concluir',\n testAction: 'Testar conexão',\n },\n};\n\nexport const CONNECTION_WIZARD_MESSAGES_EN: ConnectionWizardMessages = {\n wizard: {\n heading: 'Connect integration',\n source: 'Choose',\n authorize: 'Credentials',\n test: 'Test',\n done: 'Finish',\n testFirst: 'Test the connection successfully before moving on.',\n doneHeading: 'All set',\n doneBody: 'The connection was tested. Finish to save it and start using it.',\n finish: 'Finish',\n testAction: 'Test connection',\n },\n};\n\nexport const CONNECTION_WIZARD_MESSAGES_ES: ConnectionWizardMessages = {\n wizard: {\n heading: 'Conectar integración',\n source: 'Elegir',\n authorize: 'Credenciales',\n test: 'Probar',\n done: 'Finalizar',\n testFirst: 'Prueba la conexión con éxito antes de avanzar.',\n doneHeading: 'Todo listo',\n doneBody: 'La conexión se probó. Finaliza para guardarla y empezar a usarla.',\n finish: 'Finalizar',\n testAction: 'Probar conexión',\n },\n};\n","// GERADO por scripts/generate-internal-icons.mjs — não editar à mão.\n// Ícones que esta pasta usa por dentro; cada @Component/@Directive daqui os registra com\n// `readonly #icons = useHermesIcons(CONNECTION_WIZARD_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_CHECK_CIRCLE,\n ICON_CONNECT,\n ICON_EXCLAMATION_TRIANGLE,\n} from '@trismegisto/angular/icon';\n\nexport const CONNECTION_WIZARD_ICONS: readonly RegisteredIcon[] = [ICON_CHECK_CIRCLE, ICON_CONNECT, ICON_EXCLAMATION_TRIANGLE];\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input, model, output, signal, viewChild } from '@angular/core';\nimport type { ConnectionTestResult, CredentialField, DataSourceOption, ModalSize } from '@trismegisto/primitives';\nimport { ButtonComponent } from '@trismegisto/angular/button';\nimport { ConnectionTestComponent, CredentialsFormComponent, type CredentialFormValues } from '@trismegisto/angular/credentials-form';\nimport { DataSourcePickerComponent } from '@trismegisto/angular/data-source-picker';\nimport { HermesI18nService } from '@trismegisto/angular/i18n';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { StepComponent, type HermesStepGuard } from '@trismegisto/angular/stepper';\nimport { WizardComponent, type WizardMode } from '@trismegisto/angular/wizard';\nimport {\n CONNECTION_WIZARD_MESSAGES_EN,\n CONNECTION_WIZARD_MESSAGES_ES,\n CONNECTION_WIZARD_MESSAGES_PT_BR,\n type ConnectionWizardMessages,\n} from './connection-wizard-messages';\nimport { CONNECTION_WIZARD_ICONS } from './icons.generated';\n\n/** O que o assistente entrega ao concluir (ou ao pedir um teste). */\nexport interface ConnectionWizardRequest {\n /** Fonte escolhida (`null` quando não há etapa de escolha). */\n readonly sourceId: string | null;\n readonly values: CredentialFormValues;\n}\n\n/**\n * Assistente de conexão (`hm-connection-wizard`) sobre o `hm-wizard`: **Escolher** a fonte\n * (`hm-data-source-picker`) → **Credenciais** (`hm-credentials-form`, ou conteúdo projetado para um fluxo\n * de autorização) → **Testar** (`hm-connection-test`) → **Concluir**.\n *\n * ```html\n * <hm-connection-wizard [(open)]=\"aberto\" [sources]=\"fontes\" [(sourceId)]=\"fonte\" [fields]=\"campos\"\n * [(values)]=\"valores\" [testResult]=\"teste()\" [saving]=\"salvando()\"\n * (test)=\"testar($event)\" (completed)=\"salvar($event)\" />\n * ```\n *\n * - Sem `sources`, a etapa Escolher some. Sem `fields`, a etapa Credenciais mostra o conteúdo projetado\n * (um botão \"Autorizar com…\", por exemplo) e quem usa controla o `canAuthorize`.\n * - Avançar das Credenciais valida os campos (`credentialIssues`); avançar do Testar exige um teste com\n * sucesso (`testResult.state === 'success'`) e, sem ele, diz em texto o que falta.\n * - O assistente só emite intenções: `test` (o app testa e devolve `testResult`), `completed` (o app salva,\n * liga `saving` e fecha com `open = false`) e `cancelled`.\n * - Segredos seguem as regras do `hm-credentials-form`: nada sai da etapa além dos eventos.\n */\n@Component({\n selector: 'hm-connection-wizard',\n imports: [\n ButtonComponent,\n ConnectionTestComponent,\n CredentialsFormComponent,\n DataSourcePickerComponent,\n IconComponent,\n StepComponent,\n WizardComponent,\n ],\n templateUrl: './connection-wizard.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-connection-wizard' },\n})\nexport class ConnectionWizardComponent {\n readonly #icons = useHermesIcons(CONNECTION_WIZARD_ICONS);\n\n /** Título; vazio = catálogo (\"Conectar integração\"). */\n readonly heading = input('');\n readonly mode = input<WizardMode>('modal');\n readonly size = input<ModalSize>('large');\n /** Visibilidade (modo `modal`). Two-way. */\n readonly open = model(false);\n /** Fontes para a etapa Escolher; vazio = sem a etapa. */\n readonly sources = input<readonly DataSourceOption[]>([]);\n /** Fonte escolhida. Two-way. */\n readonly sourceId = model<string | null>(null);\n /** Campos de credencial; vazio = a etapa mostra o conteúdo projetado. */\n readonly fields = input<readonly CredentialField[]>([]);\n /** Valores das credenciais. Two-way. */\n readonly values = model<CredentialFormValues>({});\n /** Libera o Avançar da etapa Credenciais quando ela é um fluxo projetado (autorização). */\n readonly canAuthorize = input(true, { transform: booleanAttribute });\n readonly testResult = input<ConnectionTestResult | null>(null);\n /** Salvando: o Concluir carrega. */\n readonly saving = input(false, { transform: booleanAttribute });\n /** Pergunta antes de cancelar (repassado ao `hm-wizard`). */\n readonly confirmCancel = input(false, { transform: booleanAttribute });\n\n readonly test = output<ConnectionWizardRequest>();\n readonly completed = output<ConnectionWizardRequest>();\n readonly cancelled = output<void>();\n\n readonly #i18n = inject(HermesI18nService);\n /** Sobrescrita parcial dos textos da pasta (o app troca a frase sem mudar de idioma). */\n readonly texts = input<Partial<ConnectionWizardMessages> | null>(null);\n protected readonly allTexts = computed<ConnectionWizardMessages>(() => ({\n ...this.#i18n.pick(\n { 'pt-BR': CONNECTION_WIZARD_MESSAGES_PT_BR, en: CONNECTION_WIZARD_MESSAGES_EN, es: CONNECTION_WIZARD_MESSAGES_ES },\n CONNECTION_WIZARD_MESSAGES_PT_BR,\n ),\n ...(this.texts() ?? {}),\n }));\n protected readonly text = computed(() => this.allTexts().wizard);\n\n private readonly form = viewChild(CredentialsFormComponent);\n /** Tentou avançar do Testar sem sucesso: mostra o que falta. */\n protected readonly testBlocked = signal(false);\n\n protected readonly tested = computed(() => this.testResult()?.state === 'success');\n protected readonly testing = computed(() => this.testResult()?.state === 'testing');\n\n protected readonly sourceGuard: HermesStepGuard = () => !this.sources().length || !!this.sourceId();\n protected readonly credentialsGuard: HermesStepGuard = () => {\n const form = this.form();\n return form ? form.validate() : this.canAuthorize();\n };\n protected readonly testGuard: HermesStepGuard = () => {\n const ok = this.tested();\n this.testBlocked.set(!ok);\n return ok;\n };\n\n protected request(): ConnectionWizardRequest {\n return { sourceId: this.sourceId(), values: this.values() };\n }\n\n protected requestTest(): void {\n this.testBlocked.set(false);\n this.test.emit(this.request());\n }\n\n protected complete(): void {\n this.completed.emit(this.request());\n }\n}\n","<hm-wizard\n [heading]=\"heading() || text().heading\"\n [mode]=\"mode()\"\n [size]=\"size()\"\n [(open)]=\"open\"\n [loading]=\"saving()\"\n [confirmCancel]=\"confirmCancel()\"\n [finishLabel]=\"text().finish\"\n (completed)=\"complete()\"\n (cancelled)=\"cancelled.emit()\"\n>\n @if (sources().length) {\n <hm-step [label]=\"text().source\" [canAdvance]=\"sourceGuard\">\n <hm-data-source-picker [options]=\"sources()\" [(value)]=\"sourceId\" />\n </hm-step>\n }\n <hm-step [label]=\"text().authorize\" [canAdvance]=\"credentialsGuard\">\n @if (fields().length) {\n <hm-credentials-form [fields]=\"fields()\" [(values)]=\"values\" [testable]=\"false\" hideActions />\n } @else {\n <ng-content />\n }\n </hm-step>\n <hm-step [label]=\"text().test\" [canAdvance]=\"testGuard\">\n <div class=\"hm-connection-wizard__test\">\n <hm-button emphasis=\"medium\" icon=\"connect\" [loading]=\"testing()\" (clicked)=\"requestTest()\">{{ text().testAction }}</hm-button>\n <hm-connection-test [result]=\"testResult()\" />\n @if (testBlocked() && !tested()) {\n <p class=\"hm-connection-wizard__blocked\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" aria-hidden=\"true\" />\n <span>{{ text().testFirst }}</span>\n </p>\n }\n </div>\n </hm-step>\n <hm-step [label]=\"text().done\">\n <div class=\"hm-connection-wizard__done\">\n <hm-icon class=\"hm-connection-wizard__done-icon\" shape=\"check-circle\" aria-hidden=\"true\" />\n <p class=\"hm-connection-wizard__done-heading\">{{ text().doneHeading }}</p>\n <p class=\"hm-connection-wizard__done-body\">{{ text().doneBody }}</p>\n </div>\n </hm-step>\n</hm-wizard>\n","// Ponto de import `@trismegisto/angular/connection-wizard`: assistente de conexão sobre o `hm-wizard`. Ao criar\n// arquivo público novo na pasta, acrescente a linha.\nexport * from './connection-wizard.component';\nexport * from './connection-wizard-messages';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAAA;AAmBO,MAAM,gCAAgC,GAA6B;AACxE,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,qBAAqB;AAC9B,QAAA,MAAM,EAAE,UAAU;AAClB,QAAA,SAAS,EAAE,aAAa;AACxB,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,IAAI,EAAE,UAAU;AAChB,QAAA,SAAS,EAAE,+CAA+C;AAC1D,QAAA,WAAW,EAAE,aAAa;AAC1B,QAAA,QAAQ,EAAE,8DAA8D;AACxE,QAAA,MAAM,EAAE,UAAU;AAClB,QAAA,UAAU,EAAE,gBAAgB;AAC7B,KAAA;;AAGI,MAAM,6BAA6B,GAA6B;AACrE,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,qBAAqB;AAC9B,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,SAAS,EAAE,aAAa;AACxB,QAAA,IAAI,EAAE,MAAM;AACZ,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,SAAS,EAAE,oDAAoD;AAC/D,QAAA,WAAW,EAAE,SAAS;AACtB,QAAA,QAAQ,EAAE,kEAAkE;AAC5E,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,UAAU,EAAE,iBAAiB;AAC9B,KAAA;;AAGI,MAAM,6BAA6B,GAA6B;AACrE,IAAA,MAAM,EAAE;AACN,QAAA,OAAO,EAAE,sBAAsB;AAC/B,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,SAAS,EAAE,cAAc;AACzB,QAAA,IAAI,EAAE,QAAQ;AACd,QAAA,IAAI,EAAE,WAAW;AACjB,QAAA,SAAS,EAAE,gDAAgD;AAC3D,QAAA,WAAW,EAAE,YAAY;AACzB,QAAA,QAAQ,EAAE,mEAAmE;AAC7E,QAAA,MAAM,EAAE,WAAW;AACnB,QAAA,UAAU,EAAE,iBAAiB;AAC9B,KAAA;;;ACnDI,MAAM,uBAAuB,GAA8B,CAAC,iBAAiB,EAAE,YAAY,EAAE,yBAAyB,CAAC;;ACc9H;;;;;;;;;;;;;;;;;;AAkBG;MAgBU,yBAAyB,CAAA;AAC3B,IAAA,MAAM,GAAG,cAAc,CAAC,uBAAuB,CAAC;;AAGhD,IAAA,OAAO,GAAG,KAAK,CAAC,EAAE,8EAAC;AACnB,IAAA,IAAI,GAAG,KAAK,CAAa,OAAO,2EAAC;AACjC,IAAA,IAAI,GAAG,KAAK,CAAY,OAAO,2EAAC;;AAEhC,IAAA,IAAI,GAAG,KAAK,CAAC,KAAK,2EAAC;;AAEnB,IAAA,OAAO,GAAG,KAAK,CAA8B,EAAE,8EAAC;;AAEhD,IAAA,QAAQ,GAAG,KAAK,CAAgB,IAAI,+EAAC;;AAErC,IAAA,MAAM,GAAG,KAAK,CAA6B,EAAE,6EAAC;;AAE9C,IAAA,MAAM,GAAG,KAAK,CAAuB,EAAE,6EAAC;;IAExC,YAAY,GAAG,KAAK,CAAC,IAAI,oFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAC3D,IAAA,UAAU,GAAG,KAAK,CAA8B,IAAI,iFAAC;;IAErD,MAAM,GAAG,KAAK,CAAC,KAAK,8EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;IAEtD,aAAa,GAAG,KAAK,CAAC,KAAK,qFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;IAE7D,IAAI,GAAG,MAAM,EAA2B;IACxC,SAAS,GAAG,MAAM,EAA2B;IAC7C,SAAS,GAAG,MAAM,EAAQ;AAE1B,IAAA,KAAK,GAAG,MAAM,CAAC,iBAAiB,CAAC;;AAEjC,IAAA,KAAK,GAAG,KAAK,CAA2C,IAAI,4EAAC;AACnD,IAAA,QAAQ,GAAG,QAAQ,CAA2B,OAAO;QACtE,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAChB,EAAE,OAAO,EAAE,gCAAgC,EAAE,EAAE,EAAE,6BAA6B,EAAE,EAAE,EAAE,6BAA6B,EAAE,EACnH,gCAAgC,CACjC;AACD,QAAA,IAAI,IAAI,CAAC,KAAK,EAAE,IAAI,EAAE,CAAC;AACxB,KAAA,CAAC,+EAAC;AACgB,IAAA,IAAI,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAC,MAAM,2EAAC;AAE/C,IAAA,IAAI,GAAG,SAAS,CAAC,wBAAwB,2EAAC;;AAExC,IAAA,WAAW,GAAG,MAAM,CAAC,KAAK,kFAAC;AAE3B,IAAA,MAAM,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,KAAK,SAAS,6EAAC;AAC/D,IAAA,OAAO,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,UAAU,EAAE,EAAE,KAAK,KAAK,SAAS,8EAAC;AAEhE,IAAA,WAAW,GAAoB,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,IAAI,CAAC,CAAC,IAAI,CAAC,QAAQ,EAAE;IAChF,gBAAgB,GAAoB,MAAK;AAC1D,QAAA,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE;AACxB,QAAA,OAAO,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,GAAG,IAAI,CAAC,YAAY,EAAE;AACrD,IAAA,CAAC;IACkB,SAAS,GAAoB,MAAK;AACnD,QAAA,MAAM,EAAE,GAAG,IAAI,CAAC,MAAM,EAAE;QACxB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC;AACzB,QAAA,OAAO,EAAE;AACX,IAAA,CAAC;IAES,OAAO,GAAA;AACf,QAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE;IAC7D;IAEU,WAAW,GAAA;AACnB,QAAA,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,KAAK,CAAC;QAC3B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IAChC;IAEU,QAAQ,GAAA;QAChB,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IACrC;wGAtEW,yBAAyB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAzB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,yBAAyB,g7DAyCF,wBAAwB,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,ECnG5D,itDA2CA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDGI,eAAe,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,UAAA,EAAA,QAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,eAAA,EAAA,SAAA,EAAA,UAAA,EAAA,SAAA,EAAA,cAAA,EAAA,OAAA,EAAA,MAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,SAAA,CAAA,EAAA,OAAA,EAAA,CAAA,oBAAA,EAAA,eAAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACf,uBAAuB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,QAAA,EAAA,UAAA,EAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACvB,wBAAwB,8OACxB,yBAAyB,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,OAAA,EAAA,OAAA,EAAA,YAAA,EAAA,OAAA,EAAA,OAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,EAAA,aAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACzB,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,WAAA,EAAA,MAAA,EAAA,OAAA,EAAA,OAAA,EAAA,QAAA,EAAA,MAAA,EAAA,SAAA,EAAA,OAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EACb,aAAa,4KACb,eAAe,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,MAAA,EAAA,MAAA,EAAA,MAAA,EAAA,eAAA,EAAA,QAAA,EAAA,SAAA,EAAA,eAAA,EAAA,OAAA,EAAA,aAAA,EAAA,WAAA,EAAA,WAAA,EAAA,aAAA,EAAA,aAAA,EAAA,SAAA,EAAA,cAAA,EAAA,oBAAA,CAAA,EAAA,OAAA,EAAA,CAAA,YAAA,EAAA,qBAAA,EAAA,WAAA,EAAA,WAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAMN,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAfrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,sBAAsB,EAAA,OAAA,EACvB;wBACP,eAAe;wBACf,uBAAuB;wBACvB,wBAAwB;wBACxB,yBAAyB;wBACzB,aAAa;wBACb,aAAa;wBACb,eAAe;qBAChB,EAAA,eAAA,EAEgB,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAE,KAAK,EAAE,sBAAsB,EAAE,EAAA,QAAA,EAAA,itDAAA,EAAA;gkDA2CL,wBAAwB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEnG5D;AACA;;ACDA;;AAEG;;"}
@@ -0,0 +1,382 @@
1
+ import * as i0 from '@angular/core';
2
+ import { inject, computed, input, booleanAttribute, output, viewChild, signal, afterNextRender, ChangeDetectionStrategy, Component, model } from '@angular/core';
3
+ import { formatMessage, scrolledToEnd, initialConsent, setConsent, rejectOptionalConsent, acceptAllConsent } from '@trismegisto/primitives';
4
+ import { ButtonComponent } from '@trismegisto/angular/button';
5
+ import { CheckboxComponent } from '@trismegisto/angular/checkbox';
6
+ import { HermesI18nService } from '@trismegisto/angular/i18n';
7
+ import { ICON_CHECK_CIRCLE, ICON_INFO_CIRCLE, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
8
+ import { SwitchComponent } from '@trismegisto/angular/switch';
9
+
10
+ // Textos do termos e consentimento (pt-BR/en/es). Ficam na pasta do componente, fora do HERMES_MESSAGES compartilhado,
11
+ // para não pesar no bundle de quem não usa a peça. O componente escolhe pelo idioma ativo do
12
+ // `HermesI18nService` (`pick`) e aceita sobrescrita parcial por input.
13
+ const CONSENT_MESSAGES_PT_BR = {
14
+ terms: {
15
+ region: "Texto dos termos",
16
+ scrollHint: "Role até o fim do texto para aceitar.",
17
+ read: "Você leu até o fim.",
18
+ accept: "Aceitar",
19
+ decline: "Recusar",
20
+ checkbox: "Li e aceito os termos",
21
+ version: "Versão {version}, de {date}",
22
+ },
23
+ consent: {
24
+ label: "Preferências de privacidade",
25
+ required: "Sempre ativo",
26
+ save: "Salvar preferências",
27
+ acceptAll: "Aceitar todos",
28
+ rejectOptional: "Recusar opcionais",
29
+ customize: "Personalizar",
30
+ back: "Voltar",
31
+ bannerHeading: "Cookies e privacidade",
32
+ bannerBody: "Usamos cookies essenciais para o serviço funcionar e, com sua permissão, outros para medir o uso e melhorar a experiência.",
33
+ },
34
+ };
35
+ const CONSENT_MESSAGES_EN = {
36
+ terms: {
37
+ region: "Terms text",
38
+ scrollHint: "Scroll to the end of the text to accept.",
39
+ read: "You have read to the end.",
40
+ accept: "Accept",
41
+ decline: "Decline",
42
+ checkbox: "I have read and accept the terms",
43
+ version: "Version {version}, from {date}",
44
+ },
45
+ consent: {
46
+ label: "Privacy preferences",
47
+ required: "Always on",
48
+ save: "Save preferences",
49
+ acceptAll: "Accept all",
50
+ rejectOptional: "Reject optional",
51
+ customize: "Customize",
52
+ back: "Back",
53
+ bannerHeading: "Cookies and privacy",
54
+ bannerBody: "We use essential cookies to run the service and, with your permission, others to measure usage and improve the experience.",
55
+ },
56
+ };
57
+ const CONSENT_MESSAGES_ES = {
58
+ terms: {
59
+ region: "Texto de los términos",
60
+ scrollHint: "Desplácese hasta el final del texto para aceptar.",
61
+ read: "Ha leído hasta el final.",
62
+ accept: "Aceptar",
63
+ decline: "Rechazar",
64
+ checkbox: "He leído y acepto los términos",
65
+ version: "Versión {version}, del {date}",
66
+ },
67
+ consent: {
68
+ label: "Preferencias de privacidad",
69
+ required: "Siempre activo",
70
+ save: "Guardar preferencias",
71
+ acceptAll: "Aceptar todas",
72
+ rejectOptional: "Rechazar opcionales",
73
+ customize: "Personalizar",
74
+ back: "Volver",
75
+ bannerHeading: "Cookies y privacidad",
76
+ bannerBody: "Usamos cookies esenciales para que el servicio funcione y, con su permiso, otras para medir el uso y mejorar la experiencia.",
77
+ },
78
+ };
79
+ /** Catálogos por idioma, para `HermesI18nService.pick`. */
80
+ const CONSENT_MESSAGES = {
81
+ 'pt-BR': CONSENT_MESSAGES_PT_BR,
82
+ en: CONSENT_MESSAGES_EN,
83
+ es: CONSENT_MESSAGES_ES,
84
+ };
85
+
86
+ const CONSENT_ICONS = [ICON_CHECK_CIRCLE, ICON_INFO_CIRCLE];
87
+
88
+ let sequence = 0;
89
+ /** Texto do catálogo do idioma ativo com a sobrescrita parcial por cima (uso interno). */
90
+ function consentText(texts) {
91
+ const i18n = inject(HermesI18nService);
92
+ return computed(() => ({ ...i18n.pick(CONSENT_MESSAGES, CONSENT_MESSAGES_PT_BR), ...texts() }));
93
+ }
94
+ /**
95
+ * Aceite de termos: o texto (projetado) numa área com rolagem, a exigência de ler até o fim, a caixa "Li e aceito"
96
+ * e os botões aceitar/recusar.
97
+ *
98
+ * ```html
99
+ * <hm-terms-acceptance version="3.1" [updatedAt]="'2026-09-01'" (accepted)="accept()" (declined)="signOut()">
100
+ * <h3>1. Uso do serviço</h3><p>…</p>
101
+ * </hm-terms-acceptance>
102
+ * ```
103
+ *
104
+ * - `requireScroll` (padrão) só libera o aceite depois de rolar até o fim; o aviso diz isso por escrito e a
105
+ * área de texto é focável, então dá para rolar pelo teclado. Texto curto, sem rolagem, já conta como lido.
106
+ * - `requireCheckbox` (padrão) pede a caixa "Li e aceito os termos" além do botão.
107
+ */
108
+ class TermsAcceptanceComponent {
109
+ #icons = useHermesIcons(CONSENT_ICONS);
110
+ /** Versão dos termos ("3.1"). */
111
+ version = input('', ...(ngDevMode ? [{ debugName: "version" }] : /* istanbul ignore next */ []));
112
+ /** Data da versão (o que `new Date()` aceita). */
113
+ updatedAt = input(null, ...(ngDevMode ? [{ debugName: "updatedAt" }] : /* istanbul ignore next */ []));
114
+ requireScroll = input(true, { ...(ngDevMode ? { debugName: "requireScroll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
115
+ requireCheckbox = input(true, { ...(ngDevMode ? { debugName: "requireCheckbox" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
116
+ checkboxLabel = input('', ...(ngDevMode ? [{ debugName: "checkboxLabel" }] : /* istanbul ignore next */ []));
117
+ /** Botão "Recusar". */
118
+ declinable = input(true, { ...(ngDevMode ? { debugName: "declinable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
119
+ loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
120
+ /** Sobrescrita parcial dos textos (padrão: o catálogo do idioma ativo). */
121
+ texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
122
+ accepted = output();
123
+ declined = output();
124
+ #i18n = inject(HermesI18nService);
125
+ t = consentText(this.texts);
126
+ scroller = viewChild('scroller', ...(ngDevMode ? [{ debugName: "scroller" }] : /* istanbul ignore next */ []));
127
+ reachedEnd = signal(false, ...(ngDevMode ? [{ debugName: "reachedEnd" }] : /* istanbul ignore next */ []));
128
+ agreed = signal(false, ...(ngDevMode ? [{ debugName: "agreed" }] : /* istanbul ignore next */ []));
129
+ read = computed(() => !this.requireScroll() || this.reachedEnd(), ...(ngDevMode ? [{ debugName: "read" }] : /* istanbul ignore next */ []));
130
+ canAccept = computed(() => this.read() && (!this.requireCheckbox() || this.agreed()), ...(ngDevMode ? [{ debugName: "canAccept" }] : /* istanbul ignore next */ []));
131
+ versionText = computed(() => {
132
+ const value = this.updatedAt();
133
+ const date = value === null || value === '' ? null : new Date(value);
134
+ const dateText = date && !Number.isNaN(date.getTime()) ? new Intl.DateTimeFormat(this.#i18n.formatLocale(), { dateStyle: 'long' }).format(date) : '';
135
+ return this.version() ? formatMessage(this.t().terms.version, { version: this.version(), date: dateText }) : '';
136
+ }, ...(ngDevMode ? [{ debugName: "versionText" }] : /* istanbul ignore next */ []));
137
+ constructor() {
138
+ afterNextRender(() => this.check());
139
+ }
140
+ check() {
141
+ const el = this.scroller()?.nativeElement;
142
+ if (el && scrolledToEnd(el.scrollTop, el.clientHeight, el.scrollHeight))
143
+ this.reachedEnd.set(true);
144
+ }
145
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TermsAcceptanceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
146
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TermsAcceptanceComponent, isStandalone: true, selector: "hm-terms-acceptance", inputs: { version: { classPropertyName: "version", publicName: "version", isSignal: true, isRequired: false, transformFunction: null }, updatedAt: { classPropertyName: "updatedAt", publicName: "updatedAt", isSignal: true, isRequired: false, transformFunction: null }, requireScroll: { classPropertyName: "requireScroll", publicName: "requireScroll", isSignal: true, isRequired: false, transformFunction: null }, requireCheckbox: { classPropertyName: "requireCheckbox", publicName: "requireCheckbox", isSignal: true, isRequired: false, transformFunction: null }, checkboxLabel: { classPropertyName: "checkboxLabel", publicName: "checkboxLabel", isSignal: true, isRequired: false, transformFunction: null }, declinable: { classPropertyName: "declinable", publicName: "declinable", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { accepted: "accepted", declined: "declined" }, host: { classAttribute: "hm-terms" }, viewQueries: [{ propertyName: "scroller", first: true, predicate: ["scroller"], descendants: true, isSignal: true }], ngImport: i0, template: `
147
+ @if (versionText()) {
148
+ <p class="hm-terms__version">{{ versionText() }}</p>
149
+ }
150
+ <div #scroller class="hm-terms__body" role="region" tabindex="0" [attr.aria-label]="t().terms.region" (scroll)="check()">
151
+ <ng-content />
152
+ </div>
153
+ <p class="hm-terms__hint" [class.hm-terms__hint--done]="read()" role="status">
154
+ <hm-icon class="hm-terms__hint-icon" [shape]="read() ? 'check-circle' : 'info-circle'" />
155
+ <span>{{ read() ? t().terms.read : t().terms.scrollHint }}</span>
156
+ </p>
157
+ @if (requireCheckbox()) {
158
+ <hm-checkbox [label]="checkboxLabel() || t().terms.checkbox" [disabled]="!read()" [checked]="agreed()" (checkedChange)="agreed.set($event)" />
159
+ }
160
+ <div class="hm-terms__actions">
161
+ <hm-button [disabled]="!canAccept()" [loading]="loading()" (clicked)="accepted.emit()">{{ t().terms.accept }}</hm-button>
162
+ @if (declinable()) {
163
+ <hm-button emphasis="minimal" (clicked)="declined.emit()">{{ t().terms.decline }}</hm-button>
164
+ }
165
+ </div>
166
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: CheckboxComponent, selector: "hm-checkbox", inputs: ["label", "labelHidden", "checked", "indeterminate"], outputs: ["checkedChange"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
167
+ }
168
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TermsAcceptanceComponent, decorators: [{
169
+ type: Component,
170
+ args: [{
171
+ selector: 'hm-terms-acceptance',
172
+ imports: [ButtonComponent, CheckboxComponent, IconComponent],
173
+ changeDetection: ChangeDetectionStrategy.OnPush,
174
+ host: { class: 'hm-terms' },
175
+ template: `
176
+ @if (versionText()) {
177
+ <p class="hm-terms__version">{{ versionText() }}</p>
178
+ }
179
+ <div #scroller class="hm-terms__body" role="region" tabindex="0" [attr.aria-label]="t().terms.region" (scroll)="check()">
180
+ <ng-content />
181
+ </div>
182
+ <p class="hm-terms__hint" [class.hm-terms__hint--done]="read()" role="status">
183
+ <hm-icon class="hm-terms__hint-icon" [shape]="read() ? 'check-circle' : 'info-circle'" />
184
+ <span>{{ read() ? t().terms.read : t().terms.scrollHint }}</span>
185
+ </p>
186
+ @if (requireCheckbox()) {
187
+ <hm-checkbox [label]="checkboxLabel() || t().terms.checkbox" [disabled]="!read()" [checked]="agreed()" (checkedChange)="agreed.set($event)" />
188
+ }
189
+ <div class="hm-terms__actions">
190
+ <hm-button [disabled]="!canAccept()" [loading]="loading()" (clicked)="accepted.emit()">{{ t().terms.accept }}</hm-button>
191
+ @if (declinable()) {
192
+ <hm-button emphasis="minimal" (clicked)="declined.emit()">{{ t().terms.decline }}</hm-button>
193
+ }
194
+ </div>
195
+ `,
196
+ }]
197
+ }], ctorParameters: () => [], propDecorators: { version: [{ type: i0.Input, args: [{ isSignal: true, alias: "version", required: false }] }], updatedAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "updatedAt", required: false }] }], requireScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "requireScroll", required: false }] }], requireCheckbox: [{ type: i0.Input, args: [{ isSignal: true, alias: "requireCheckbox", required: false }] }], checkboxLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkboxLabel", required: false }] }], declinable: [{ type: i0.Input, args: [{ isSignal: true, alias: "declinable", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }], accepted: [{ type: i0.Output, args: ["accepted"] }], declined: [{ type: i0.Output, args: ["declined"] }], scroller: [{ type: i0.ViewChild, args: ['scroller', { isSignal: true }] }] } });
198
+ /**
199
+ * Preferências de privacidade/cookies: uma chave por categoria (obrigatórias travadas em "Sempre ativo") e as
200
+ * ações recusar opcionais, aceitar todos e salvar.
201
+ *
202
+ * ```html
203
+ * <hm-consent-preferences [categories]="categories" [(value)]="consent" (saved)="store($event)" />
204
+ * ```
205
+ *
206
+ * - `value` é um `model` (`categoria → consentiu`); `null` = sem escolha salva (usa os padrões, opt-in).
207
+ * - As três ações emitem `saved` com o estado final; guardar e aplicar (carregar scripts) é com o app.
208
+ */
209
+ class ConsentPreferencesComponent {
210
+ #icons = useHermesIcons(CONSENT_ICONS);
211
+ categories = input.required(...(ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []));
212
+ /** Escolha atual; `null` = nenhuma salva. */
213
+ value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
214
+ /** Sobrescrita parcial dos textos (padrão: o catálogo do idioma ativo). */
215
+ texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
216
+ saved = output();
217
+ t = consentText(this.texts);
218
+ state = computed(() => initialConsent(this.categories(), this.value()), ...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
219
+ toggle(id, on) {
220
+ this.value.set(setConsent(this.state(), this.categories(), id, on));
221
+ }
222
+ reject() {
223
+ return rejectOptionalConsent(this.categories());
224
+ }
225
+ acceptAll() {
226
+ return acceptAllConsent(this.categories());
227
+ }
228
+ save(state) {
229
+ this.value.set(state);
230
+ this.saved.emit(state);
231
+ }
232
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ConsentPreferencesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
233
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ConsentPreferencesComponent, isStandalone: true, selector: "hm-consent-preferences", inputs: { categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", saved: "saved" }, host: { classAttribute: "hm-consent" }, ngImport: i0, template: `
234
+ <ul class="hm-consent__categories" [attr.aria-label]="t().consent.label">
235
+ @for (category of categories(); track category.id) {
236
+ <li class="hm-consent__category">
237
+ <hm-switch
238
+ [label]="category.label"
239
+ [hint]="category.description ?? ''"
240
+ [disabled]="!!category.required"
241
+ [value]="!!state()[category.id]"
242
+ (valueChange)="toggle(category.id, $event)"
243
+ />
244
+ @if (category.required) {
245
+ <span class="hm-consent__required">{{ t().consent.required }}</span>
246
+ }
247
+ </li>
248
+ }
249
+ </ul>
250
+ <div class="hm-consent__actions">
251
+ <hm-button emphasis="medium" (clicked)="save(reject())">{{ t().consent.rejectOptional }}</hm-button>
252
+ <hm-button emphasis="medium" (clicked)="save(acceptAll())">{{ t().consent.acceptAll }}</hm-button>
253
+ <hm-button (clicked)="save(state())">{{ t().consent.save }}</hm-button>
254
+ </div>
255
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: SwitchComponent, selector: "hm-switch", inputs: ["value", "label", "hint", "labelPosition", "loading"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
256
+ }
257
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ConsentPreferencesComponent, decorators: [{
258
+ type: Component,
259
+ args: [{
260
+ selector: 'hm-consent-preferences',
261
+ imports: [ButtonComponent, SwitchComponent],
262
+ changeDetection: ChangeDetectionStrategy.OnPush,
263
+ host: { class: 'hm-consent' },
264
+ template: `
265
+ <ul class="hm-consent__categories" [attr.aria-label]="t().consent.label">
266
+ @for (category of categories(); track category.id) {
267
+ <li class="hm-consent__category">
268
+ <hm-switch
269
+ [label]="category.label"
270
+ [hint]="category.description ?? ''"
271
+ [disabled]="!!category.required"
272
+ [value]="!!state()[category.id]"
273
+ (valueChange)="toggle(category.id, $event)"
274
+ />
275
+ @if (category.required) {
276
+ <span class="hm-consent__required">{{ t().consent.required }}</span>
277
+ }
278
+ </li>
279
+ }
280
+ </ul>
281
+ <div class="hm-consent__actions">
282
+ <hm-button emphasis="medium" (clicked)="save(reject())">{{ t().consent.rejectOptional }}</hm-button>
283
+ <hm-button emphasis="medium" (clicked)="save(acceptAll())">{{ t().consent.acceptAll }}</hm-button>
284
+ <hm-button (clicked)="save(state())">{{ t().consent.save }}</hm-button>
285
+ </div>
286
+ `,
287
+ }]
288
+ }], propDecorators: { categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }], saved: [{ type: i0.Output, args: ["saved"] }] } });
289
+ /**
290
+ * Aviso de cookies: título, texto, links (projetados) e as escolhas recusar opcionais, personalizar e aceitar
291
+ * todos — "Personalizar" abre o `hm-consent-preferences` no próprio aviso.
292
+ *
293
+ * ```html
294
+ * @if (!consentSaved()) {
295
+ * <hm-cookie-banner [categories]="categories" position="bottom" (saved)="store($event)">
296
+ * <a href="/privacidade">Política de privacidade</a>
297
+ * </hm-cookie-banner>
298
+ * }
299
+ * ```
300
+ *
301
+ * - Recusar tem o mesmo peso visual de aceitar (escolha livre, sem padrão escuro).
302
+ * - É uma região nomeada pelo título; não rouba o foco nem bloqueia a página. Some quando o app para de desenhá-lo.
303
+ */
304
+ class CookieBannerComponent {
305
+ #icons = useHermesIcons(CONSENT_ICONS);
306
+ categories = input.required(...(ngDevMode ? [{ debugName: "categories" }] : /* istanbul ignore next */ []));
307
+ /** Escolha salva antes (para "Personalizar" partir dela). */
308
+ value = input(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
309
+ heading = input('', ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
310
+ message = input('', ...(ngDevMode ? [{ debugName: "message" }] : /* istanbul ignore next */ []));
311
+ position = input('inline', ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
312
+ /** Sobrescrita parcial dos textos (padrão: o catálogo do idioma ativo). */
313
+ texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
314
+ saved = output();
315
+ t = consentText(this.texts);
316
+ titleId = `hm-cookie-banner-${++sequence}`;
317
+ customizing = signal(false, ...(ngDevMode ? [{ debugName: "customizing" }] : /* istanbul ignore next */ []));
318
+ reject() {
319
+ return rejectOptionalConsent(this.categories());
320
+ }
321
+ acceptAll() {
322
+ return acceptAllConsent(this.categories());
323
+ }
324
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: CookieBannerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
325
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: CookieBannerComponent, isStandalone: true, selector: "hm-cookie-banner", inputs: { categories: { classPropertyName: "categories", publicName: "categories", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { saved: "saved" }, host: { attributes: { "role": "region" }, properties: { "class": "'hm-cookie-banner hm-cookie-banner--' + position()", "attr.aria-labelledby": "titleId" } }, ngImport: i0, template: `
326
+ <div class="hm-cookie-banner__panel">
327
+ <p class="hm-cookie-banner__title" [id]="titleId">{{ heading() || t().consent.bannerHeading }}</p>
328
+ <p class="hm-cookie-banner__text">{{ message() || t().consent.bannerBody }}</p>
329
+ <div class="hm-cookie-banner__links"><ng-content /></div>
330
+ @if (customizing()) {
331
+ <hm-consent-preferences [categories]="categories()" [texts]="texts()" [value]="value()" (saved)="saved.emit($event)" />
332
+ <hm-button emphasis="minimal" size="small" (clicked)="customizing.set(false)">{{ t().consent.back }}</hm-button>
333
+ } @else {
334
+ <div class="hm-cookie-banner__actions">
335
+ <hm-button emphasis="medium" (clicked)="saved.emit(reject())">{{ t().consent.rejectOptional }}</hm-button>
336
+ <hm-button emphasis="medium" (clicked)="customizing.set(true)">{{ t().consent.customize }}</hm-button>
337
+ <hm-button emphasis="medium" (clicked)="saved.emit(acceptAll())">{{ t().consent.acceptAll }}</hm-button>
338
+ </div>
339
+ }
340
+ </div>
341
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: ConsentPreferencesComponent, selector: "hm-consent-preferences", inputs: ["categories", "value", "texts"], outputs: ["valueChange", "saved"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
342
+ }
343
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: CookieBannerComponent, decorators: [{
344
+ type: Component,
345
+ args: [{
346
+ selector: 'hm-cookie-banner',
347
+ imports: [ButtonComponent, ConsentPreferencesComponent],
348
+ changeDetection: ChangeDetectionStrategy.OnPush,
349
+ host: {
350
+ '[class]': "'hm-cookie-banner hm-cookie-banner--' + position()",
351
+ role: 'region',
352
+ '[attr.aria-labelledby]': 'titleId',
353
+ },
354
+ template: `
355
+ <div class="hm-cookie-banner__panel">
356
+ <p class="hm-cookie-banner__title" [id]="titleId">{{ heading() || t().consent.bannerHeading }}</p>
357
+ <p class="hm-cookie-banner__text">{{ message() || t().consent.bannerBody }}</p>
358
+ <div class="hm-cookie-banner__links"><ng-content /></div>
359
+ @if (customizing()) {
360
+ <hm-consent-preferences [categories]="categories()" [texts]="texts()" [value]="value()" (saved)="saved.emit($event)" />
361
+ <hm-button emphasis="minimal" size="small" (clicked)="customizing.set(false)">{{ t().consent.back }}</hm-button>
362
+ } @else {
363
+ <div class="hm-cookie-banner__actions">
364
+ <hm-button emphasis="medium" (clicked)="saved.emit(reject())">{{ t().consent.rejectOptional }}</hm-button>
365
+ <hm-button emphasis="medium" (clicked)="customizing.set(true)">{{ t().consent.customize }}</hm-button>
366
+ <hm-button emphasis="medium" (clicked)="saved.emit(acceptAll())">{{ t().consent.acceptAll }}</hm-button>
367
+ </div>
368
+ }
369
+ </div>
370
+ `,
371
+ }]
372
+ }], propDecorators: { categories: [{ type: i0.Input, args: [{ isSignal: true, alias: "categories", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }], saved: [{ type: i0.Output, args: ["saved"] }] } });
373
+
374
+ // Ponto de import `@trismegisto/angular/consent` (secundário do ng-packagr): aceite de termos, preferências de
375
+ // privacidade e aviso de cookies. Ao criar arquivo público novo na pasta, acrescente a linha.
376
+
377
+ /**
378
+ * Generated bundle index. Do not edit.
379
+ */
380
+
381
+ export { CONSENT_MESSAGES, CONSENT_MESSAGES_EN, CONSENT_MESSAGES_ES, CONSENT_MESSAGES_PT_BR, ConsentPreferencesComponent, CookieBannerComponent, TermsAcceptanceComponent };
382
+ //# sourceMappingURL=trismegisto-angular-consent.mjs.map