@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,115 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, model, booleanAttribute, inject, computed, ChangeDetectionStrategy, Component } from '@angular/core';
3
+ import { normalizeIntegrationSearch, integrationStatusIntent } from '@trismegisto/primitives';
4
+ import { HermesI18nService } from '@trismegisto/angular/i18n';
5
+ import { ICON_SERVERS_DATABASE, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
6
+ import { injectIntegrationText } from '@trismegisto/angular/integration-text';
7
+ import { SearchFieldComponent } from '@trismegisto/angular/search-field';
8
+ import { TagComponent } from '@trismegisto/angular/tag';
9
+
10
+ // Catálogo próprio da pasta (pt-BR/en/es): só os textos daqui, para não inchar o catálogo comum.
11
+ const DATA_SOURCE_PICKER_MESSAGES_PT_BR = {
12
+ dataSource: {
13
+ label: 'Fonte de dados',
14
+ search: 'Buscar fontes',
15
+ empty: 'Nenhuma fonte encontrada.',
16
+ unavailable: 'Indisponível',
17
+ },
18
+ };
19
+ const DATA_SOURCE_PICKER_MESSAGES_EN = {
20
+ dataSource: {
21
+ label: 'Data source',
22
+ search: 'Search sources',
23
+ empty: 'No sources found.',
24
+ unavailable: 'Unavailable',
25
+ },
26
+ };
27
+ const DATA_SOURCE_PICKER_MESSAGES_ES = {
28
+ dataSource: {
29
+ label: 'Fuente de datos',
30
+ search: 'Buscar fuentes',
31
+ empty: 'No se encontraron fuentes.',
32
+ unavailable: 'No disponible',
33
+ },
34
+ };
35
+
36
+ const DATA_SOURCE_PICKER_ICONS = [ICON_SERVERS_DATABASE];
37
+
38
+ let sequence = 0;
39
+ /**
40
+ * Escolha de uma fonte de dados (`hm-data-source-picker`): cartões de rádio agrupados pelo `type` de cada
41
+ * opção, com busca opcional. `[(value)]` guarda o `id` escolhido.
42
+ *
43
+ * ```html
44
+ * <hm-data-source-picker [options]="fontes" [(value)]="fonte" searchable />
45
+ * ```
46
+ *
47
+ * - Um grupo de rádios nativo (`role="radiogroup"` com nome): as setas andam entre todas as opções,
48
+ * inclusive de um tipo para outro, e Tab entra e sai do grupo de uma vez. Cada tipo é um `group` com título.
49
+ * - Opção `disabled` fica visível, marcada "Indisponível" em texto, e as setas a pulam.
50
+ * - O estado (`status`) aparece como etiqueta com texto.
51
+ * - A busca filtra por nome, tipo e descrição, sem acento nem caixa; a opção escolhida continua no
52
+ * `value` mesmo quando a busca a esconde.
53
+ */
54
+ class DataSourcePickerComponent {
55
+ #icons = useHermesIcons(DATA_SOURCE_PICKER_ICONS);
56
+ options = input([], ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
57
+ /** `id` escolhido. Two-way. */
58
+ value = model(null, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
59
+ /** Rótulo do grupo; vazio = catálogo ("Fonte de dados"). */
60
+ label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
61
+ /** Mostra a busca. */
62
+ searchable = input(false, { ...(ngDevMode ? { debugName: "searchable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
63
+ /** Texto da busca. Two-way. */
64
+ query = model('', ...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
65
+ #i18n = inject(HermesI18nService);
66
+ /** Sobrescrita parcial dos textos da pasta (o app troca a frase sem mudar de idioma). */
67
+ texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
68
+ allTexts = computed(() => ({
69
+ ...this.#i18n.pick({ 'pt-BR': DATA_SOURCE_PICKER_MESSAGES_PT_BR, en: DATA_SOURCE_PICKER_MESSAGES_EN, es: DATA_SOURCE_PICKER_MESSAGES_ES }, DATA_SOURCE_PICKER_MESSAGES_PT_BR),
70
+ ...(this.texts() ?? {}),
71
+ }), ...(ngDevMode ? [{ debugName: "allTexts" }] : /* istanbul ignore next */ []));
72
+ text = computed(() => this.allTexts().dataSource, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
73
+ common = injectIntegrationText();
74
+ id = `hm-data-source-picker-${++sequence}`;
75
+ fallbackIcon = 'servers-database';
76
+ groups = computed(() => {
77
+ const q = normalizeIntegrationSearch(this.query());
78
+ const visible = this.options().filter((o) => !q || [o.name, o.type, o.description].some((t) => t && normalizeIntegrationSearch(t).includes(q)));
79
+ const map = new Map();
80
+ for (const option of visible) {
81
+ const key = option.type ?? '';
82
+ (map.get(key) ?? map.set(key, []).get(key)).push(option);
83
+ }
84
+ return [...map.entries()].map(([type, items], index) => ({ type, items, headingId: `${this.id}-group-${index}` }));
85
+ }, ...(ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []));
86
+ statusText(option) {
87
+ return option.status ? this.common().status[option.status] : '';
88
+ }
89
+ statusColor(option) {
90
+ return integrationStatusIntent(option.status ?? 'disconnected');
91
+ }
92
+ optionId(option) {
93
+ return `${this.id}-${option.id}`;
94
+ }
95
+ choose(option) {
96
+ if (!option.disabled)
97
+ this.value.set(option.id);
98
+ }
99
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: DataSourcePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
100
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: DataSourcePickerComponent, isStandalone: true, selector: "hm-data-source-picker", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", query: "queryChange" }, host: { classAttribute: "hm-data-source-picker" }, ngImport: i0, template: "@if (searchable()) {\n <hm-search-field class=\"hm-data-source-picker__search\" [label]=\"text().search\" [landmark]=\"false\" [(value)]=\"query\" />\n}\n\n<div class=\"hm-data-source-picker__groups hm-radio hm-radio--card\" role=\"radiogroup\" [attr.aria-label]=\"label() || text().label\">\n @for (group of groups(); track group.type) {\n <div class=\"hm-data-source-picker__group\" role=\"group\" [attr.aria-labelledby]=\"group.type ? group.headingId : null\">\n @if (group.type) {\n <p class=\"hm-data-source-picker__type\" [id]=\"group.headingId\">{{ group.type }}</p>\n }\n <div class=\"hm-data-source-picker__options\">\n @for (option of group.items; track option.id) {\n <label\n class=\"hm-radio__row hm-radio__row--top hm-data-source-picker__option\"\n [class.hm-radio__row--checked]=\"option.id === value()\"\n [class.hm-radio__row--disabled]=\"!!option.disabled\"\n [for]=\"optionId(option)\"\n >\n <input\n type=\"radio\"\n class=\"hm-radio__control\"\n [id]=\"optionId(option)\"\n [name]=\"id\"\n [value]=\"option.id\"\n [checked]=\"option.id === value()\"\n [disabled]=\"!!option.disabled\"\n (change)=\"choose(option)\"\n />\n <span class=\"hm-radio__option-icon\" aria-hidden=\"true\"><hm-icon [shape]=\"option.icon || fallbackIcon\" /></span>\n <span class=\"hm-radio__option-text\">\n <span class=\"hm-radio__option-label\">{{ option.name }}</span>\n @if (option.description) {\n <span class=\"hm-radio__option-description\">{{ option.description }}</span>\n }\n @if (option.status || option.disabled) {\n <span class=\"hm-data-source-picker__meta\">\n @if (option.status) {\n <hm-tag [name]=\"statusText(option)\" [color]=\"statusColor(option)\" />\n }\n @if (option.disabled) {\n <span class=\"hm-data-source-picker__unavailable\">{{ text().unavailable }}</span>\n }\n </span>\n }\n </span>\n </label>\n }\n </div>\n </div>\n } @empty {\n <p class=\"hm-data-source-picker__empty\">{{ text().empty }}</p>\n }\n</div>\n", dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: SearchFieldComponent, selector: "hm-search-field", inputs: ["value", "label", "labelHidden", "placeholder", "hint", "size", "debounce", "landmark", "loading"], outputs: ["valueChange", "search", "cleared"] }, { kind: "component", type: TagComponent, selector: "hm-tag", inputs: ["name", "color", "compact"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
101
+ }
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: DataSourcePickerComponent, decorators: [{
103
+ type: Component,
104
+ args: [{ selector: 'hm-data-source-picker', imports: [IconComponent, SearchFieldComponent, TagComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-data-source-picker' }, template: "@if (searchable()) {\n <hm-search-field class=\"hm-data-source-picker__search\" [label]=\"text().search\" [landmark]=\"false\" [(value)]=\"query\" />\n}\n\n<div class=\"hm-data-source-picker__groups hm-radio hm-radio--card\" role=\"radiogroup\" [attr.aria-label]=\"label() || text().label\">\n @for (group of groups(); track group.type) {\n <div class=\"hm-data-source-picker__group\" role=\"group\" [attr.aria-labelledby]=\"group.type ? group.headingId : null\">\n @if (group.type) {\n <p class=\"hm-data-source-picker__type\" [id]=\"group.headingId\">{{ group.type }}</p>\n }\n <div class=\"hm-data-source-picker__options\">\n @for (option of group.items; track option.id) {\n <label\n class=\"hm-radio__row hm-radio__row--top hm-data-source-picker__option\"\n [class.hm-radio__row--checked]=\"option.id === value()\"\n [class.hm-radio__row--disabled]=\"!!option.disabled\"\n [for]=\"optionId(option)\"\n >\n <input\n type=\"radio\"\n class=\"hm-radio__control\"\n [id]=\"optionId(option)\"\n [name]=\"id\"\n [value]=\"option.id\"\n [checked]=\"option.id === value()\"\n [disabled]=\"!!option.disabled\"\n (change)=\"choose(option)\"\n />\n <span class=\"hm-radio__option-icon\" aria-hidden=\"true\"><hm-icon [shape]=\"option.icon || fallbackIcon\" /></span>\n <span class=\"hm-radio__option-text\">\n <span class=\"hm-radio__option-label\">{{ option.name }}</span>\n @if (option.description) {\n <span class=\"hm-radio__option-description\">{{ option.description }}</span>\n }\n @if (option.status || option.disabled) {\n <span class=\"hm-data-source-picker__meta\">\n @if (option.status) {\n <hm-tag [name]=\"statusText(option)\" [color]=\"statusColor(option)\" />\n }\n @if (option.disabled) {\n <span class=\"hm-data-source-picker__unavailable\">{{ text().unavailable }}</span>\n }\n </span>\n }\n </span>\n </label>\n }\n </div>\n </div>\n } @empty {\n <p class=\"hm-data-source-picker__empty\">{{ text().empty }}</p>\n }\n</div>\n" }]
105
+ }], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], query: [{ type: i0.Input, args: [{ isSignal: true, alias: "query", required: false }] }, { type: i0.Output, args: ["queryChange"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
106
+
107
+ // Ponto de import `@trismegisto/angular/data-source-picker`: escolha de fonte de dados. Ao criar arquivo público
108
+ // novo na pasta, acrescente a linha.
109
+
110
+ /**
111
+ * Generated bundle index. Do not edit.
112
+ */
113
+
114
+ export { DATA_SOURCE_PICKER_MESSAGES_EN, DATA_SOURCE_PICKER_MESSAGES_ES, DATA_SOURCE_PICKER_MESSAGES_PT_BR, DataSourcePickerComponent };
115
+ //# sourceMappingURL=trismegisto-angular-data-source-picker.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trismegisto-angular-data-source-picker.mjs","sources":["../../src/data-source-picker/data-source-picker-messages.ts","../../src/data-source-picker/icons.generated.ts","../../src/data-source-picker/data-source-picker.component.ts","../../src/data-source-picker/data-source-picker.component.html","../../src/data-source-picker/index.ts","../../src/data-source-picker/trismegisto-angular-data-source-picker.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-data-source-picker. */\nexport interface DataSourcePickerMessages {\n /** hm-data-source-picker. */\n dataSource: { label: string; search: string; empty: string; unavailable: string };\n}\n\nexport const DATA_SOURCE_PICKER_MESSAGES_PT_BR: DataSourcePickerMessages = {\n dataSource: {\n label: 'Fonte de dados',\n search: 'Buscar fontes',\n empty: 'Nenhuma fonte encontrada.',\n unavailable: 'Indisponível',\n },\n};\n\nexport const DATA_SOURCE_PICKER_MESSAGES_EN: DataSourcePickerMessages = {\n dataSource: {\n label: 'Data source',\n search: 'Search sources',\n empty: 'No sources found.',\n unavailable: 'Unavailable',\n },\n};\n\nexport const DATA_SOURCE_PICKER_MESSAGES_ES: DataSourcePickerMessages = {\n dataSource: {\n label: 'Fuente de datos',\n search: 'Buscar fuentes',\n empty: 'No se encontraron fuentes.',\n unavailable: 'No disponible',\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(DATA_SOURCE_PICKER_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_SERVERS_DATABASE,\n} from '@trismegisto/angular/icon';\n\nexport const DATA_SOURCE_PICKER_ICONS: readonly RegisteredIcon[] = [ICON_SERVERS_DATABASE];\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input, model } from '@angular/core';\nimport { integrationStatusIntent, normalizeIntegrationSearch, type DataSourceOption } from '@trismegisto/primitives';\nimport { HermesI18nService } from '@trismegisto/angular/i18n';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { injectIntegrationText } from '@trismegisto/angular/integration-text';\nimport { SearchFieldComponent } from '@trismegisto/angular/search-field';\nimport { TagComponent } from '@trismegisto/angular/tag';\nimport {\n DATA_SOURCE_PICKER_MESSAGES_EN,\n DATA_SOURCE_PICKER_MESSAGES_ES,\n DATA_SOURCE_PICKER_MESSAGES_PT_BR,\n type DataSourcePickerMessages,\n} from './data-source-picker-messages';\nimport { DATA_SOURCE_PICKER_ICONS } from './icons.generated';\n\nlet sequence = 0;\n\n/**\n * Escolha de uma fonte de dados (`hm-data-source-picker`): cartões de rádio agrupados pelo `type` de cada\n * opção, com busca opcional. `[(value)]` guarda o `id` escolhido.\n *\n * ```html\n * <hm-data-source-picker [options]=\"fontes\" [(value)]=\"fonte\" searchable />\n * ```\n *\n * - Um grupo de rádios nativo (`role=\"radiogroup\"` com nome): as setas andam entre todas as opções,\n * inclusive de um tipo para outro, e Tab entra e sai do grupo de uma vez. Cada tipo é um `group` com título.\n * - Opção `disabled` fica visível, marcada \"Indisponível\" em texto, e as setas a pulam.\n * - O estado (`status`) aparece como etiqueta com texto.\n * - A busca filtra por nome, tipo e descrição, sem acento nem caixa; a opção escolhida continua no\n * `value` mesmo quando a busca a esconde.\n */\n@Component({\n selector: 'hm-data-source-picker',\n imports: [IconComponent, SearchFieldComponent, TagComponent],\n templateUrl: './data-source-picker.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-data-source-picker' },\n})\nexport class DataSourcePickerComponent {\n readonly #icons = useHermesIcons(DATA_SOURCE_PICKER_ICONS);\n\n readonly options = input<readonly DataSourceOption[]>([]);\n /** `id` escolhido. Two-way. */\n readonly value = model<string | null>(null);\n /** Rótulo do grupo; vazio = catálogo (\"Fonte de dados\"). */\n readonly label = input('');\n /** Mostra a busca. */\n readonly searchable = input(false, { transform: booleanAttribute });\n /** Texto da busca. Two-way. */\n readonly query = model('');\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<DataSourcePickerMessages> | null>(null);\n protected readonly allTexts = computed<DataSourcePickerMessages>(() => ({\n ...this.#i18n.pick(\n { 'pt-BR': DATA_SOURCE_PICKER_MESSAGES_PT_BR, en: DATA_SOURCE_PICKER_MESSAGES_EN, es: DATA_SOURCE_PICKER_MESSAGES_ES },\n DATA_SOURCE_PICKER_MESSAGES_PT_BR,\n ),\n ...(this.texts() ?? {}),\n }));\n protected readonly text = computed(() => this.allTexts().dataSource);\n protected readonly common = injectIntegrationText();\n\n protected readonly id = `hm-data-source-picker-${++sequence}`;\n protected readonly fallbackIcon = 'servers-database';\n\n protected readonly groups = computed(() => {\n const q = normalizeIntegrationSearch(this.query());\n const visible = this.options().filter(\n (o) => !q || [o.name, o.type, o.description].some((t) => t && normalizeIntegrationSearch(t).includes(q)),\n );\n const map = new Map<string, DataSourceOption[]>();\n for (const option of visible) {\n const key = option.type ?? '';\n (map.get(key) ?? map.set(key, []).get(key)!).push(option);\n }\n return [...map.entries()].map(([type, items], index) => ({ type, items, headingId: `${this.id}-group-${index}` }));\n });\n\n protected statusText(option: DataSourceOption): string {\n return option.status ? this.common().status[option.status] : '';\n }\n\n protected statusColor(option: DataSourceOption) {\n return integrationStatusIntent(option.status ?? 'disconnected');\n }\n\n protected optionId(option: DataSourceOption): string {\n return `${this.id}-${option.id}`;\n }\n\n protected choose(option: DataSourceOption): void {\n if (!option.disabled) this.value.set(option.id);\n }\n}\n","@if (searchable()) {\n <hm-search-field class=\"hm-data-source-picker__search\" [label]=\"text().search\" [landmark]=\"false\" [(value)]=\"query\" />\n}\n\n<div class=\"hm-data-source-picker__groups hm-radio hm-radio--card\" role=\"radiogroup\" [attr.aria-label]=\"label() || text().label\">\n @for (group of groups(); track group.type) {\n <div class=\"hm-data-source-picker__group\" role=\"group\" [attr.aria-labelledby]=\"group.type ? group.headingId : null\">\n @if (group.type) {\n <p class=\"hm-data-source-picker__type\" [id]=\"group.headingId\">{{ group.type }}</p>\n }\n <div class=\"hm-data-source-picker__options\">\n @for (option of group.items; track option.id) {\n <label\n class=\"hm-radio__row hm-radio__row--top hm-data-source-picker__option\"\n [class.hm-radio__row--checked]=\"option.id === value()\"\n [class.hm-radio__row--disabled]=\"!!option.disabled\"\n [for]=\"optionId(option)\"\n >\n <input\n type=\"radio\"\n class=\"hm-radio__control\"\n [id]=\"optionId(option)\"\n [name]=\"id\"\n [value]=\"option.id\"\n [checked]=\"option.id === value()\"\n [disabled]=\"!!option.disabled\"\n (change)=\"choose(option)\"\n />\n <span class=\"hm-radio__option-icon\" aria-hidden=\"true\"><hm-icon [shape]=\"option.icon || fallbackIcon\" /></span>\n <span class=\"hm-radio__option-text\">\n <span class=\"hm-radio__option-label\">{{ option.name }}</span>\n @if (option.description) {\n <span class=\"hm-radio__option-description\">{{ option.description }}</span>\n }\n @if (option.status || option.disabled) {\n <span class=\"hm-data-source-picker__meta\">\n @if (option.status) {\n <hm-tag [name]=\"statusText(option)\" [color]=\"statusColor(option)\" />\n }\n @if (option.disabled) {\n <span class=\"hm-data-source-picker__unavailable\">{{ text().unavailable }}</span>\n }\n </span>\n }\n </span>\n </label>\n }\n </div>\n </div>\n } @empty {\n <p class=\"hm-data-source-picker__empty\">{{ text().empty }}</p>\n }\n</div>\n","// Ponto de import `@trismegisto/angular/data-source-picker`: escolha de fonte de dados. Ao criar arquivo público\n// novo na pasta, acrescente a linha.\nexport * from './data-source-picker.component';\nexport * from './data-source-picker-messages';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAAA;AAQO,MAAM,iCAAiC,GAA6B;AACzE,IAAA,UAAU,EAAE;AACV,QAAA,KAAK,EAAE,gBAAgB;AACvB,QAAA,MAAM,EAAE,eAAe;AACvB,QAAA,KAAK,EAAE,2BAA2B;AAClC,QAAA,WAAW,EAAE,cAAc;AAC5B,KAAA;;AAGI,MAAM,8BAA8B,GAA6B;AACtE,IAAA,UAAU,EAAE;AACV,QAAA,KAAK,EAAE,aAAa;AACpB,QAAA,MAAM,EAAE,gBAAgB;AACxB,QAAA,KAAK,EAAE,mBAAmB;AAC1B,QAAA,WAAW,EAAE,aAAa;AAC3B,KAAA;;AAGI,MAAM,8BAA8B,GAA6B;AACtE,IAAA,UAAU,EAAE;AACV,QAAA,KAAK,EAAE,iBAAiB;AACxB,QAAA,MAAM,EAAE,gBAAgB;AACxB,QAAA,KAAK,EAAE,4BAA4B;AACnC,QAAA,WAAW,EAAE,eAAe;AAC7B,KAAA;;;ACxBI,MAAM,wBAAwB,GAA8B,CAAC,qBAAqB,CAAC;;ACO1F,IAAI,QAAQ,GAAG,CAAC;AAEhB;;;;;;;;;;;;;;AAcG;MAQU,yBAAyB,CAAA;AAC3B,IAAA,MAAM,GAAG,cAAc,CAAC,wBAAwB,CAAC;AAEjD,IAAA,OAAO,GAAG,KAAK,CAA8B,EAAE,8EAAC;;AAEhD,IAAA,KAAK,GAAG,KAAK,CAAgB,IAAI,4EAAC;;AAElC,IAAA,KAAK,GAAG,KAAK,CAAC,EAAE,4EAAC;;IAEjB,UAAU,GAAG,KAAK,CAAC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;;AAE1D,IAAA,KAAK,GAAG,KAAK,CAAC,EAAE,4EAAC;AAEjB,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,iCAAiC,EAAE,EAAE,EAAE,8BAA8B,EAAE,EAAE,EAAE,8BAA8B,EAAE,EACtH,iCAAiC,CAClC;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,UAAU,2EAAC;IACjD,MAAM,GAAG,qBAAqB,EAAE;AAEhC,IAAA,EAAE,GAAG,CAAA,sBAAA,EAAyB,EAAE,QAAQ,EAAE;IAC1C,YAAY,GAAG,kBAAkB;AAEjC,IAAA,MAAM,GAAG,QAAQ,CAAC,MAAK;QACxC,MAAM,CAAC,GAAG,0BAA0B,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;QAClD,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,CAAC,MAAM,CACnC,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,0BAA0B,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CACzG;AACD,QAAA,MAAM,GAAG,GAAG,IAAI,GAAG,EAA8B;AACjD,QAAA,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;AAC5B,YAAA,MAAM,GAAG,GAAG,MAAM,CAAC,IAAI,IAAI,EAAE;YAC7B,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,GAAG,CAAE,EAAE,IAAI,CAAC,MAAM,CAAC;QAC3D;AACA,QAAA,OAAO,CAAC,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,EAAE,KAAK,CAAC,EAAE,KAAK,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,CAAA,EAAG,IAAI,CAAC,EAAE,CAAA,OAAA,EAAU,KAAK,EAAE,EAAE,CAAC,CAAC;AACpH,IAAA,CAAC,6EAAC;AAEQ,IAAA,UAAU,CAAC,MAAwB,EAAA;QAC3C,OAAO,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,GAAG,EAAE;IACjE;AAEU,IAAA,WAAW,CAAC,MAAwB,EAAA;QAC5C,OAAO,uBAAuB,CAAC,MAAM,CAAC,MAAM,IAAI,cAAc,CAAC;IACjE;AAEU,IAAA,QAAQ,CAAC,MAAwB,EAAA;QACzC,OAAO,CAAA,EAAG,IAAI,CAAC,EAAE,IAAI,MAAM,CAAC,EAAE,CAAA,CAAE;IAClC;AAEU,IAAA,MAAM,CAAC,MAAwB,EAAA;QACvC,IAAI,CAAC,MAAM,CAAC,QAAQ;YAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;IACjD;wGAxDW,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,86BCvCtC,w4EAqDA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDnBY,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,EAAE,oBAAoB,wNAAE,YAAY,EAAA,QAAA,EAAA,QAAA,EAAA,MAAA,EAAA,CAAA,MAAA,EAAA,OAAA,EAAA,SAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAKhD,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAPrC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,uBAAuB,WACxB,CAAC,aAAa,EAAE,oBAAoB,EAAE,YAAY,CAAC,EAAA,eAAA,EAE3C,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAE,KAAK,EAAE,uBAAuB,EAAE,EAAA,QAAA,EAAA,w4EAAA,EAAA;;;AErC1C;AACA;;ACDA;;AAEG;;"}
@@ -1,11 +1,40 @@
1
1
  import * as i0 from '@angular/core';
2
- import { input, output, inject, ElementRef, Injector, signal, computed, effect, untracked, afterNextRender, ChangeDetectionStrategy, Component, viewChild, DOCUMENT, PLATFORM_ID, DestroyRef, afterRenderEffect, model, booleanAttribute } from '@angular/core';
3
- import { todayIso, monthNames, firstDayOfWeek, weekdayNames, parseIso, monthGrid, longDateLabel, calendarKeyStep, addDays, addMonths, weekEdge, toIso, isOutOfRange, isSameAnchor, placeDirect, copyThemeScope, placeWithin, displayDatePattern, displayDateLength, toIsoDate, formatMessage, formatDisplayDate, maskDisplayDate, parseDisplayDate, fromIsoDate, EMPTY_DATE_RANGE, resolveDateRange, dateRangePreset, clampDateRange, isSameDateRange, normalizeDateRange } from '@trismegisto/primitives';
4
- import { HERMES_MESSAGES } from '@trismegisto/angular/i18n';
2
+ import { input, output, inject, computed, ElementRef, Injector, signal, effect, untracked, afterNextRender, ChangeDetectionStrategy, Component, viewChild, DOCUMENT, PLATFORM_ID, DestroyRef, afterRenderEffect, model, booleanAttribute } from '@angular/core';
3
+ import { toIsoMonth, todayIso, monthNames, firstDayOfWeek, weekdayNames, parseIso, monthGrid, isoMonthStart, longDateLabel, calendarKeyStep, addDays, addMonths, weekEdge, toIso, toIsoMonthParts, isOutOfRange, isMonthOutOfRange, currentIsoMonth, isSameAnchor, placeDirect, copyThemeScope, placeWithin, displayDatePattern, displayDateLength, toIsoDate, formatMessage, formatDisplayDate, maskDisplayDate, parseDisplayDate, fromIsoDate, EMPTY_DATE_RANGE, resolveDateRange, dateRangePreset, clampDateRange, isSameDateRange, normalizeDateRange } from '@trismegisto/primitives';
4
+ import { HERMES_MESSAGES, HermesI18nService } from '@trismegisto/angular/i18n';
5
5
  import { ICON_ANGLE, ICON_CALENDAR, ICON_CHECK, ICON_EXCLAMATION_TRIANGLE, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
6
6
  import { HermesFormFieldBase, DateRangeValidators } from '@trismegisto/angular/forms';
7
7
  import { isPlatformBrowser } from '@angular/common';
8
8
 
9
+ // Textos do modo `pickLevel="month"` do hm-calendar (usado pelo hm-month-picker), fora do HERMES_MESSAGES de
10
+ // propósito: o catálogo embutido não cresce por causa de uma peça nova.
11
+ const CALENDAR_MONTH_MESSAGES_PT_BR = {
12
+ previousYear: 'Ano anterior',
13
+ nextYear: 'Próximo ano',
14
+ chooseYear: 'Escolher ano',
15
+ thisMonth: 'Este mês',
16
+ clear: 'Limpar',
17
+ };
18
+ const CALENDAR_MONTH_MESSAGES_EN = {
19
+ previousYear: 'Previous year',
20
+ nextYear: 'Next year',
21
+ chooseYear: 'Choose year',
22
+ thisMonth: 'This month',
23
+ clear: 'Clear',
24
+ };
25
+ const CALENDAR_MONTH_MESSAGES_ES = {
26
+ previousYear: 'Año anterior',
27
+ nextYear: 'Año siguiente',
28
+ chooseYear: 'Elegir año',
29
+ thisMonth: 'Este mes',
30
+ clear: 'Limpiar',
31
+ };
32
+ const CALENDAR_MONTH_MESSAGES = {
33
+ 'pt-BR': CALENDAR_MONTH_MESSAGES_PT_BR,
34
+ en: CALENDAR_MONTH_MESSAGES_EN,
35
+ es: CALENDAR_MONTH_MESSAGES_ES,
36
+ };
37
+
9
38
  const DATE_PICKER_ICONS = [ICON_ANGLE, ICON_CALENDAR, ICON_CHECK, ICON_EXCLAMATION_TRIANGLE];
10
39
 
11
40
  const YEARS_PER_PAGE = 12;
@@ -33,10 +62,30 @@ class CalendarComponent {
33
62
  rangeEnd = input(null, ...(ngDevMode ? [{ debugName: "rangeEnd" }] : /* istanbul ignore next */ []));
34
63
  min = input(null, ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
35
64
  max = input(null, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
65
+ /**
66
+ * Até onde a pessoa escolhe: `'day'` (padrão, o calendário de sempre) ou `'month'` — abre na grade de
67
+ * meses, escolher um mês emite `monthPicked` (`AAAA-MM`) em vez de descer para os dias, e o rodapé
68
+ * oferece "Este mês". É o modo do `hm-month-picker`; `min`/`max` desabilitam os meses fora do período.
69
+ */
70
+ pickLevel = input('day', ...(ngDevMode ? [{ debugName: "pickLevel" }] : /* istanbul ignore next */ []));
71
+ /** Mês marcado no modo `pickLevel="month"` (`AAAA-MM`). */
72
+ selectedMonth = input(null, ...(ngDevMode ? [{ debugName: "selectedMonth" }] : /* istanbul ignore next */ []));
73
+ /** Textos próprios do modo mês (sobrescrevem os do catálogo da peça, por chave). */
74
+ texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
36
75
  picked = output();
37
76
  cleared = output();
77
+ /** Mês escolhido no modo `pickLevel="month"` (`AAAA-MM`). */
78
+ monthPicked = output();
38
79
  messages = inject(HERMES_MESSAGES);
39
80
  text = this.messages.datePicker;
81
+ #i18n = inject(HermesI18nService);
82
+ monthText = computed(() => ({
83
+ ...this.#i18n.pick(CALENDAR_MONTH_MESSAGES, CALENDAR_MONTH_MESSAGES_PT_BR),
84
+ ...this.texts(),
85
+ }), ...(ngDevMode ? [{ debugName: "monthText" }] : /* istanbul ignore next */ []));
86
+ monthLevel = computed(() => this.pickLevel() === 'month', ...(ngDevMode ? [{ debugName: "monthLevel" }] : /* istanbul ignore next */ []));
87
+ /** Mês marcado, normalizado (modo mês). */
88
+ #chosenMonth = computed(() => toIsoMonth(this.selectedMonth()), ...(ngDevMode ? [{ debugName: "#chosenMonth" }] : /* istanbul ignore next */ []));
40
89
  host = inject(ElementRef);
41
90
  injector = inject(Injector);
42
91
  view = signal('day', ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
@@ -67,7 +116,8 @@ class CalendarComponent {
67
116
  let first = true;
68
117
  effect(() => {
69
118
  // Só ISO válido ancora o mês (defesa extra: um valor inesperado não pode quebrar a grade).
70
- const candidate = this.selected() ?? this.rangeStart() ?? null;
119
+ const month = this.#chosenMonth();
120
+ const candidate = this.selected() ?? this.rangeStart() ?? (month ? isoMonthStart(month) : null);
71
121
  const anchor = candidate && parseIso(candidate) ? candidate : null;
72
122
  const min = this.min();
73
123
  // `untracked`: andar com as setas muda `focused`, e isso não pode disparar este efeito de novo
@@ -76,6 +126,8 @@ class CalendarComponent {
76
126
  const today = todayIso();
77
127
  const start = anchor ?? (min && today < min ? min : today);
78
128
  this.focused.set(start);
129
+ if (first && untracked(this.monthLevel))
130
+ this.view.set('month');
79
131
  first = false;
80
132
  }
81
133
  });
@@ -144,6 +196,13 @@ class CalendarComponent {
144
196
  }
145
197
  chooseMonth(month) {
146
198
  const p = parseIso(this.focused());
199
+ if (this.monthLevel()) {
200
+ if (this.monthDisabled(month))
201
+ return;
202
+ this.focused.set(toIso(p.year, month, 1));
203
+ this.monthPicked.emit(toIsoMonthParts(p.year, month));
204
+ return;
205
+ }
147
206
  this.focused.set(toIso(p.year, month, Math.min(p.day, 28)));
148
207
  this.view.set('day');
149
208
  this.focusActive();
@@ -160,16 +219,46 @@ class CalendarComponent {
160
219
  this.focused.set(today);
161
220
  this.picked.emit(today);
162
221
  }
222
+ /** Mês marcado na grade de meses: no modo mês, o valor; no modo dia, o mês exibido (como sempre foi). */
223
+ monthActive(month) {
224
+ if (!this.monthLevel())
225
+ return month === this.viewMonth();
226
+ return this.#chosenMonth() === toIsoMonthParts(this.viewYear(), month);
227
+ }
228
+ /** Mês fora de `min`/`max` (só no modo mês; no modo dia a grade de meses só navega). */
229
+ monthDisabled(month) {
230
+ return this.monthLevel() && isMonthOutOfRange(toIsoMonthParts(this.viewYear(), month), this.min(), this.max());
231
+ }
232
+ /** Mês que recebe o foco ao abrir no modo mês: o marcado, se estiver no ano exibido; senão o exibido. */
233
+ monthFocused(month) {
234
+ if (!this.monthLevel())
235
+ return null;
236
+ const chosen = this.#chosenMonth();
237
+ const year = this.viewYear();
238
+ if (chosen && chosen.startsWith(`${year}-`))
239
+ return chosen === toIsoMonthParts(year, month);
240
+ return month === this.viewMonth();
241
+ }
242
+ pickThisMonth() {
243
+ const month = currentIsoMonth();
244
+ if (isMonthOutOfRange(month, this.min(), this.max()))
245
+ return;
246
+ this.focused.set(isoMonthStart(month));
247
+ this.monthPicked.emit(month);
248
+ }
249
+ thisMonthDisabled() {
250
+ return isMonthOutOfRange(currentIsoMonth(), this.min(), this.max());
251
+ }
163
252
  todayDisabled() {
164
253
  return isOutOfRange(todayIso(), this.min(), this.max());
165
254
  }
166
255
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: CalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
167
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: CalendarComponent, isStandalone: true, selector: "hm-calendar", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, rangeStart: { classPropertyName: "rangeStart", publicName: "rangeStart", isSignal: true, isRequired: false, transformFunction: null }, rangeEnd: { classPropertyName: "rangeEnd", publicName: "rangeEnd", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { picked: "picked", cleared: "cleared" }, host: { classAttribute: "hm-calendar" }, ngImport: i0, template: "<div class=\"hm-calendar__header\">\n @if (view() === 'year') {\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.previousYears\" (click)=\"shiftYears(-12)\">\n <hm-icon shape=\"angle\" direction=\"left\" />\n </button>\n <span class=\"hm-calendar__title\">{{ yearPage()[0] }} \u2013 {{ yearPage()[yearPage().length - 1] }}</span>\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.nextYears\" (click)=\"shiftYears(12)\">\n <hm-icon shape=\"angle\" direction=\"right\" />\n </button>\n } @else {\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.previousMonth\" (click)=\"view() === 'day' ? shiftMonth(-1) : shiftYears(-1)\">\n <hm-icon shape=\"angle\" direction=\"left\" />\n </button>\n <button\n type=\"button\"\n class=\"hm-calendar__title hm-calendar__title--button\"\n [attr.aria-label]=\"text.chooseMonthYear + ': ' + title()\"\n [attr.aria-expanded]=\"view() !== 'day'\"\n (click)=\"view() === 'month' ? view.set('year') : toggleView()\"\n >\n {{ view() === 'day' ? title() : viewYear() }}\n <hm-icon shape=\"angle\" [direction]=\"view() === 'day' ? 'down' : 'up'\" />\n </button>\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.nextMonth\" (click)=\"view() === 'day' ? shiftMonth(1) : shiftYears(1)\">\n <hm-icon shape=\"angle\" direction=\"right\" />\n </button>\n }\n</div>\n\n@switch (view()) {\n @case ('day') {\n <table class=\"hm-calendar__grid\" role=\"grid\" [attr.aria-label]=\"title()\" (mouseleave)=\"hovered.set(null)\">\n <thead>\n <tr>\n @for (w of weekdays(); track $index) {\n <th scope=\"col\" [attr.abbr]=\"weekdaysLong()[$index]\">{{ w }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (week of weeks(); track $index) {\n <tr>\n @for (day of week; track day.iso) {\n <td\n role=\"gridcell\"\n [attr.aria-selected]=\"isSelected(day)\"\n [class.hm-calendar__cell--range]=\"inRange(day)\"\n [class.hm-calendar__cell--edge]=\"day.iso === rangeStart() || day.iso === rangeEnd() || isHoverEnd(day)\"\n >\n <button\n type=\"button\"\n class=\"hm-calendar__day\"\n [class.hm-calendar__day--outside]=\"!day.inMonth\"\n [class.hm-calendar__day--today]=\"day.today\"\n [class.hm-calendar__day--selected]=\"isSelected(day) || isHoverEnd(day)\"\n [attr.data-focused]=\"day.iso === focused()\"\n [tabindex]=\"day.iso === focused() ? 0 : -1\"\n [class.hm-calendar__day--disabled]=\"day.disabled\"\n [attr.aria-disabled]=\"day.disabled ? 'true' : null\"\n [attr.aria-label]=\"dayLabel(day)\"\n [attr.aria-current]=\"day.today ? 'date' : null\"\n (click)=\"pick(day)\"\n (mouseenter)=\"hovered.set(day.iso)\"\n (focus)=\"focused.set(day.iso)\"\n (keydown)=\"onDayKeydown($event)\"\n >\n {{ day.day }}\n </button>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n @case ('month') {\n <div class=\"hm-calendar__choices\" role=\"listbox\" [attr.aria-label]=\"text.chooseMonthYear\">\n @for (m of months(); track $index) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"hm-calendar__choice\"\n [class.hm-calendar__choice--active]=\"$index === viewMonth()\"\n [class.hm-calendar__choice--today]=\"$index === todayMonth && viewYear() === todayYear\"\n [attr.aria-selected]=\"$index === viewMonth()\"\n (click)=\"chooseMonth($index)\"\n >\n {{ m }}\n </button>\n }\n </div>\n }\n @case ('year') {\n <div class=\"hm-calendar__choices\" role=\"listbox\" [attr.aria-label]=\"text.chooseMonthYear\">\n @for (y of yearPage(); track y) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"hm-calendar__choice\"\n [class.hm-calendar__choice--active]=\"y === viewYear()\"\n [class.hm-calendar__choice--today]=\"y === todayYear\"\n [attr.aria-selected]=\"y === viewYear()\"\n (click)=\"chooseYear(y)\"\n >\n {{ y }}\n </button>\n }\n </div>\n }\n}\n\n<div class=\"hm-calendar__footer\">\n <button type=\"button\" class=\"hm-calendar__link\" [disabled]=\"todayDisabled()\" (click)=\"pickToday()\">{{ text.today }}</button>\n <button type=\"button\" class=\"hm-calendar__link\" (click)=\"cleared.emit()\">{{ text.clear }}</button>\n</div>\n", dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
256
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: CalendarComponent, isStandalone: true, selector: "hm-calendar", inputs: { selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, rangeStart: { classPropertyName: "rangeStart", publicName: "rangeStart", isSignal: true, isRequired: false, transformFunction: null }, rangeEnd: { classPropertyName: "rangeEnd", publicName: "rangeEnd", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, pickLevel: { classPropertyName: "pickLevel", publicName: "pickLevel", isSignal: true, isRequired: false, transformFunction: null }, selectedMonth: { classPropertyName: "selectedMonth", publicName: "selectedMonth", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { picked: "picked", cleared: "cleared", monthPicked: "monthPicked" }, host: { classAttribute: "hm-calendar" }, ngImport: i0, template: "<div class=\"hm-calendar__header\">\n @if (view() === 'year') {\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.previousYears\" (click)=\"shiftYears(-12)\">\n <hm-icon shape=\"angle\" direction=\"left\" />\n </button>\n <span class=\"hm-calendar__title\">{{ yearPage()[0] }} \u2013 {{ yearPage()[yearPage().length - 1] }}</span>\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.nextYears\" (click)=\"shiftYears(12)\">\n <hm-icon shape=\"angle\" direction=\"right\" />\n </button>\n } @else if (monthLevel()) {\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"monthText().previousYear\" (click)=\"shiftYears(-1)\">\n <hm-icon shape=\"angle\" direction=\"left\" />\n </button>\n <button\n type=\"button\"\n class=\"hm-calendar__title hm-calendar__title--button\"\n [attr.aria-label]=\"monthText().chooseYear + ': ' + viewYear()\"\n [attr.aria-expanded]=\"false\"\n (click)=\"view.set('year')\"\n >\n {{ viewYear() }}\n <hm-icon shape=\"angle\" direction=\"down\" />\n </button>\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"monthText().nextYear\" (click)=\"shiftYears(1)\">\n <hm-icon shape=\"angle\" direction=\"right\" />\n </button>\n } @else {\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.previousMonth\" (click)=\"view() === 'day' ? shiftMonth(-1) : shiftYears(-1)\">\n <hm-icon shape=\"angle\" direction=\"left\" />\n </button>\n <button\n type=\"button\"\n class=\"hm-calendar__title hm-calendar__title--button\"\n [attr.aria-label]=\"text.chooseMonthYear + ': ' + title()\"\n [attr.aria-expanded]=\"view() !== 'day'\"\n (click)=\"view() === 'month' ? view.set('year') : toggleView()\"\n >\n {{ view() === 'day' ? title() : viewYear() }}\n <hm-icon shape=\"angle\" [direction]=\"view() === 'day' ? 'down' : 'up'\" />\n </button>\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.nextMonth\" (click)=\"view() === 'day' ? shiftMonth(1) : shiftYears(1)\">\n <hm-icon shape=\"angle\" direction=\"right\" />\n </button>\n }\n</div>\n\n@switch (view()) {\n @case ('day') {\n <table class=\"hm-calendar__grid\" role=\"grid\" [attr.aria-label]=\"title()\" (mouseleave)=\"hovered.set(null)\">\n <thead>\n <tr>\n @for (w of weekdays(); track $index) {\n <th scope=\"col\" [attr.abbr]=\"weekdaysLong()[$index]\">{{ w }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (week of weeks(); track $index) {\n <tr>\n @for (day of week; track day.iso) {\n <td\n role=\"gridcell\"\n [attr.aria-selected]=\"isSelected(day)\"\n [class.hm-calendar__cell--range]=\"inRange(day)\"\n [class.hm-calendar__cell--edge]=\"day.iso === rangeStart() || day.iso === rangeEnd() || isHoverEnd(day)\"\n >\n <button\n type=\"button\"\n class=\"hm-calendar__day\"\n [class.hm-calendar__day--outside]=\"!day.inMonth\"\n [class.hm-calendar__day--today]=\"day.today\"\n [class.hm-calendar__day--selected]=\"isSelected(day) || isHoverEnd(day)\"\n [attr.data-focused]=\"day.iso === focused()\"\n [tabindex]=\"day.iso === focused() ? 0 : -1\"\n [class.hm-calendar__day--disabled]=\"day.disabled\"\n [attr.aria-disabled]=\"day.disabled ? 'true' : null\"\n [attr.aria-label]=\"dayLabel(day)\"\n [attr.aria-current]=\"day.today ? 'date' : null\"\n (click)=\"pick(day)\"\n (mouseenter)=\"hovered.set(day.iso)\"\n (focus)=\"focused.set(day.iso)\"\n (keydown)=\"onDayKeydown($event)\"\n >\n {{ day.day }}\n </button>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n @case ('month') {\n <div class=\"hm-calendar__choices\" role=\"listbox\" [attr.aria-label]=\"text.chooseMonthYear\">\n @for (m of months(); track $index) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"hm-calendar__choice\"\n [class.hm-calendar__choice--active]=\"monthActive($index)\"\n [class.hm-calendar__choice--today]=\"$index === todayMonth && viewYear() === todayYear\"\n [class.hm-calendar__choice--disabled]=\"monthDisabled($index)\"\n [attr.aria-selected]=\"monthActive($index)\"\n [attr.aria-disabled]=\"monthDisabled($index) ? 'true' : null\"\n [attr.data-focused]=\"monthFocused($index)\"\n (click)=\"chooseMonth($index)\"\n >\n {{ m }}\n </button>\n }\n </div>\n }\n @case ('year') {\n <div class=\"hm-calendar__choices\" role=\"listbox\" [attr.aria-label]=\"text.chooseMonthYear\">\n @for (y of yearPage(); track y) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"hm-calendar__choice\"\n [class.hm-calendar__choice--active]=\"y === viewYear()\"\n [class.hm-calendar__choice--today]=\"y === todayYear\"\n [attr.aria-selected]=\"y === viewYear()\"\n [attr.data-focused]=\"monthLevel() ? y === viewYear() : null\"\n (click)=\"chooseYear(y)\"\n >\n {{ y }}\n </button>\n }\n </div>\n }\n}\n\n<div class=\"hm-calendar__footer\">\n @if (monthLevel()) {\n <button type=\"button\" class=\"hm-calendar__link\" [disabled]=\"thisMonthDisabled()\" (click)=\"pickThisMonth()\">{{ monthText().thisMonth }}</button>\n <button type=\"button\" class=\"hm-calendar__link\" (click)=\"cleared.emit()\">{{ monthText().clear }}</button>\n } @else {\n <button type=\"button\" class=\"hm-calendar__link\" [disabled]=\"todayDisabled()\" (click)=\"pickToday()\">{{ text.today }}</button>\n <button type=\"button\" class=\"hm-calendar__link\" (click)=\"cleared.emit()\">{{ text.clear }}</button>\n }\n</div>\n", dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
168
257
  }
169
258
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: CalendarComponent, decorators: [{
170
259
  type: Component,
171
- args: [{ selector: 'hm-calendar', imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-calendar' }, template: "<div class=\"hm-calendar__header\">\n @if (view() === 'year') {\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.previousYears\" (click)=\"shiftYears(-12)\">\n <hm-icon shape=\"angle\" direction=\"left\" />\n </button>\n <span class=\"hm-calendar__title\">{{ yearPage()[0] }} \u2013 {{ yearPage()[yearPage().length - 1] }}</span>\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.nextYears\" (click)=\"shiftYears(12)\">\n <hm-icon shape=\"angle\" direction=\"right\" />\n </button>\n } @else {\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.previousMonth\" (click)=\"view() === 'day' ? shiftMonth(-1) : shiftYears(-1)\">\n <hm-icon shape=\"angle\" direction=\"left\" />\n </button>\n <button\n type=\"button\"\n class=\"hm-calendar__title hm-calendar__title--button\"\n [attr.aria-label]=\"text.chooseMonthYear + ': ' + title()\"\n [attr.aria-expanded]=\"view() !== 'day'\"\n (click)=\"view() === 'month' ? view.set('year') : toggleView()\"\n >\n {{ view() === 'day' ? title() : viewYear() }}\n <hm-icon shape=\"angle\" [direction]=\"view() === 'day' ? 'down' : 'up'\" />\n </button>\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.nextMonth\" (click)=\"view() === 'day' ? shiftMonth(1) : shiftYears(1)\">\n <hm-icon shape=\"angle\" direction=\"right\" />\n </button>\n }\n</div>\n\n@switch (view()) {\n @case ('day') {\n <table class=\"hm-calendar__grid\" role=\"grid\" [attr.aria-label]=\"title()\" (mouseleave)=\"hovered.set(null)\">\n <thead>\n <tr>\n @for (w of weekdays(); track $index) {\n <th scope=\"col\" [attr.abbr]=\"weekdaysLong()[$index]\">{{ w }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (week of weeks(); track $index) {\n <tr>\n @for (day of week; track day.iso) {\n <td\n role=\"gridcell\"\n [attr.aria-selected]=\"isSelected(day)\"\n [class.hm-calendar__cell--range]=\"inRange(day)\"\n [class.hm-calendar__cell--edge]=\"day.iso === rangeStart() || day.iso === rangeEnd() || isHoverEnd(day)\"\n >\n <button\n type=\"button\"\n class=\"hm-calendar__day\"\n [class.hm-calendar__day--outside]=\"!day.inMonth\"\n [class.hm-calendar__day--today]=\"day.today\"\n [class.hm-calendar__day--selected]=\"isSelected(day) || isHoverEnd(day)\"\n [attr.data-focused]=\"day.iso === focused()\"\n [tabindex]=\"day.iso === focused() ? 0 : -1\"\n [class.hm-calendar__day--disabled]=\"day.disabled\"\n [attr.aria-disabled]=\"day.disabled ? 'true' : null\"\n [attr.aria-label]=\"dayLabel(day)\"\n [attr.aria-current]=\"day.today ? 'date' : null\"\n (click)=\"pick(day)\"\n (mouseenter)=\"hovered.set(day.iso)\"\n (focus)=\"focused.set(day.iso)\"\n (keydown)=\"onDayKeydown($event)\"\n >\n {{ day.day }}\n </button>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n @case ('month') {\n <div class=\"hm-calendar__choices\" role=\"listbox\" [attr.aria-label]=\"text.chooseMonthYear\">\n @for (m of months(); track $index) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"hm-calendar__choice\"\n [class.hm-calendar__choice--active]=\"$index === viewMonth()\"\n [class.hm-calendar__choice--today]=\"$index === todayMonth && viewYear() === todayYear\"\n [attr.aria-selected]=\"$index === viewMonth()\"\n (click)=\"chooseMonth($index)\"\n >\n {{ m }}\n </button>\n }\n </div>\n }\n @case ('year') {\n <div class=\"hm-calendar__choices\" role=\"listbox\" [attr.aria-label]=\"text.chooseMonthYear\">\n @for (y of yearPage(); track y) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"hm-calendar__choice\"\n [class.hm-calendar__choice--active]=\"y === viewYear()\"\n [class.hm-calendar__choice--today]=\"y === todayYear\"\n [attr.aria-selected]=\"y === viewYear()\"\n (click)=\"chooseYear(y)\"\n >\n {{ y }}\n </button>\n }\n </div>\n }\n}\n\n<div class=\"hm-calendar__footer\">\n <button type=\"button\" class=\"hm-calendar__link\" [disabled]=\"todayDisabled()\" (click)=\"pickToday()\">{{ text.today }}</button>\n <button type=\"button\" class=\"hm-calendar__link\" (click)=\"cleared.emit()\">{{ text.clear }}</button>\n</div>\n" }]
172
- }], ctorParameters: () => [], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], rangeStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeStart", required: false }] }], rangeEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeEnd", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], picked: [{ type: i0.Output, args: ["picked"] }], cleared: [{ type: i0.Output, args: ["cleared"] }] } });
260
+ args: [{ selector: 'hm-calendar', imports: [IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-calendar' }, template: "<div class=\"hm-calendar__header\">\n @if (view() === 'year') {\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.previousYears\" (click)=\"shiftYears(-12)\">\n <hm-icon shape=\"angle\" direction=\"left\" />\n </button>\n <span class=\"hm-calendar__title\">{{ yearPage()[0] }} \u2013 {{ yearPage()[yearPage().length - 1] }}</span>\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.nextYears\" (click)=\"shiftYears(12)\">\n <hm-icon shape=\"angle\" direction=\"right\" />\n </button>\n } @else if (monthLevel()) {\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"monthText().previousYear\" (click)=\"shiftYears(-1)\">\n <hm-icon shape=\"angle\" direction=\"left\" />\n </button>\n <button\n type=\"button\"\n class=\"hm-calendar__title hm-calendar__title--button\"\n [attr.aria-label]=\"monthText().chooseYear + ': ' + viewYear()\"\n [attr.aria-expanded]=\"false\"\n (click)=\"view.set('year')\"\n >\n {{ viewYear() }}\n <hm-icon shape=\"angle\" direction=\"down\" />\n </button>\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"monthText().nextYear\" (click)=\"shiftYears(1)\">\n <hm-icon shape=\"angle\" direction=\"right\" />\n </button>\n } @else {\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.previousMonth\" (click)=\"view() === 'day' ? shiftMonth(-1) : shiftYears(-1)\">\n <hm-icon shape=\"angle\" direction=\"left\" />\n </button>\n <button\n type=\"button\"\n class=\"hm-calendar__title hm-calendar__title--button\"\n [attr.aria-label]=\"text.chooseMonthYear + ': ' + title()\"\n [attr.aria-expanded]=\"view() !== 'day'\"\n (click)=\"view() === 'month' ? view.set('year') : toggleView()\"\n >\n {{ view() === 'day' ? title() : viewYear() }}\n <hm-icon shape=\"angle\" [direction]=\"view() === 'day' ? 'down' : 'up'\" />\n </button>\n <button type=\"button\" class=\"hm-calendar__nav\" [attr.aria-label]=\"text.nextMonth\" (click)=\"view() === 'day' ? shiftMonth(1) : shiftYears(1)\">\n <hm-icon shape=\"angle\" direction=\"right\" />\n </button>\n }\n</div>\n\n@switch (view()) {\n @case ('day') {\n <table class=\"hm-calendar__grid\" role=\"grid\" [attr.aria-label]=\"title()\" (mouseleave)=\"hovered.set(null)\">\n <thead>\n <tr>\n @for (w of weekdays(); track $index) {\n <th scope=\"col\" [attr.abbr]=\"weekdaysLong()[$index]\">{{ w }}</th>\n }\n </tr>\n </thead>\n <tbody>\n @for (week of weeks(); track $index) {\n <tr>\n @for (day of week; track day.iso) {\n <td\n role=\"gridcell\"\n [attr.aria-selected]=\"isSelected(day)\"\n [class.hm-calendar__cell--range]=\"inRange(day)\"\n [class.hm-calendar__cell--edge]=\"day.iso === rangeStart() || day.iso === rangeEnd() || isHoverEnd(day)\"\n >\n <button\n type=\"button\"\n class=\"hm-calendar__day\"\n [class.hm-calendar__day--outside]=\"!day.inMonth\"\n [class.hm-calendar__day--today]=\"day.today\"\n [class.hm-calendar__day--selected]=\"isSelected(day) || isHoverEnd(day)\"\n [attr.data-focused]=\"day.iso === focused()\"\n [tabindex]=\"day.iso === focused() ? 0 : -1\"\n [class.hm-calendar__day--disabled]=\"day.disabled\"\n [attr.aria-disabled]=\"day.disabled ? 'true' : null\"\n [attr.aria-label]=\"dayLabel(day)\"\n [attr.aria-current]=\"day.today ? 'date' : null\"\n (click)=\"pick(day)\"\n (mouseenter)=\"hovered.set(day.iso)\"\n (focus)=\"focused.set(day.iso)\"\n (keydown)=\"onDayKeydown($event)\"\n >\n {{ day.day }}\n </button>\n </td>\n }\n </tr>\n }\n </tbody>\n </table>\n }\n @case ('month') {\n <div class=\"hm-calendar__choices\" role=\"listbox\" [attr.aria-label]=\"text.chooseMonthYear\">\n @for (m of months(); track $index) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"hm-calendar__choice\"\n [class.hm-calendar__choice--active]=\"monthActive($index)\"\n [class.hm-calendar__choice--today]=\"$index === todayMonth && viewYear() === todayYear\"\n [class.hm-calendar__choice--disabled]=\"monthDisabled($index)\"\n [attr.aria-selected]=\"monthActive($index)\"\n [attr.aria-disabled]=\"monthDisabled($index) ? 'true' : null\"\n [attr.data-focused]=\"monthFocused($index)\"\n (click)=\"chooseMonth($index)\"\n >\n {{ m }}\n </button>\n }\n </div>\n }\n @case ('year') {\n <div class=\"hm-calendar__choices\" role=\"listbox\" [attr.aria-label]=\"text.chooseMonthYear\">\n @for (y of yearPage(); track y) {\n <button\n type=\"button\"\n role=\"option\"\n class=\"hm-calendar__choice\"\n [class.hm-calendar__choice--active]=\"y === viewYear()\"\n [class.hm-calendar__choice--today]=\"y === todayYear\"\n [attr.aria-selected]=\"y === viewYear()\"\n [attr.data-focused]=\"monthLevel() ? y === viewYear() : null\"\n (click)=\"chooseYear(y)\"\n >\n {{ y }}\n </button>\n }\n </div>\n }\n}\n\n<div class=\"hm-calendar__footer\">\n @if (monthLevel()) {\n <button type=\"button\" class=\"hm-calendar__link\" [disabled]=\"thisMonthDisabled()\" (click)=\"pickThisMonth()\">{{ monthText().thisMonth }}</button>\n <button type=\"button\" class=\"hm-calendar__link\" (click)=\"cleared.emit()\">{{ monthText().clear }}</button>\n } @else {\n <button type=\"button\" class=\"hm-calendar__link\" [disabled]=\"todayDisabled()\" (click)=\"pickToday()\">{{ text.today }}</button>\n <button type=\"button\" class=\"hm-calendar__link\" (click)=\"cleared.emit()\">{{ text.clear }}</button>\n }\n</div>\n" }]
261
+ }], ctorParameters: () => [], propDecorators: { selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], rangeStart: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeStart", required: false }] }], rangeEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "rangeEnd", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], pickLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "pickLevel", required: false }] }], selectedMonth: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedMonth", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }], picked: [{ type: i0.Output, args: ["picked"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], monthPicked: [{ type: i0.Output, args: ["monthPicked"] }] } });
173
262
 
174
263
  /**
175
264
  * Cartão flutuante do calendário, ancorado no campo (abaixo, alinhado à esquerda; em cima se não
@@ -441,7 +530,7 @@ class DatePickerComponent extends HermesFormFieldBase {
441
530
  return this.frame().nativeElement;
442
531
  }
443
532
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: DatePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
444
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: DatePickerComponent, isStandalone: true, selector: "hm-date-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { classAttribute: "hm-field" }, viewQueries: [{ propertyName: "frame", first: true, predicate: ["frame"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "calendar", first: true, predicate: CalendarComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"hm-field\">\n <div class=\"hm-field__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <label class=\"hm-field__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (isRequired()) {\n <span class=\"hm-field__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n #frame\n class=\"hm-field__frame hm-date-picker__frame\"\n [class.hm-field__frame--invalid]=\"dateError()\"\n [class.hm-field__frame--disabled]=\"isDisabled()\"\n >\n <input\n #inputEl\n class=\"hm-field__control\"\n [id]=\"id\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [attr.maxlength]=\"dateLength()\"\n [value]=\"typed()\"\n [attr.placeholder]=\"placeholder() || text.placeholder\"\n [disabled]=\"isDisabled()\"\n [attr.aria-invalid]=\"dateError() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"hm-field__action\"\n [attr.aria-label]=\"text.openCalendar + (typed() ? ', ' + typed() : '')\"\n [attr.aria-expanded]=\"open()\"\n aria-haspopup=\"dialog\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n >\n <hm-icon shape=\"calendar\" />\n </button>\n </div>\n\n @if (hint()) {\n <p class=\"hm-field__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (dateError()) {\n <p class=\"hm-field__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n {{ dateError() }}\n </p>\n }\n</div>\n\n@if (open()) {\n <hm-date-popover [anchorEl]=\"frameEl()\" [label]=\"label()\" (closed)=\"close()\" (ready)=\"onPopoverReady()\">\n <hm-calendar [selected]=\"current()\" [min]=\"min()\" [max]=\"max()\" (picked)=\"onPicked($event)\" (cleared)=\"onCleared()\" />\n </hm-date-popover>\n}\n", dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: CalendarComponent, selector: "hm-calendar", inputs: ["selected", "rangeStart", "rangeEnd", "min", "max"], outputs: ["picked", "cleared"] }, { kind: "component", type: DatePopoverComponent, selector: "hm-date-popover", inputs: ["anchorEl", "label"], outputs: ["closed", "ready"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
533
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: DatePickerComponent, isStandalone: true, selector: "hm-date-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { classAttribute: "hm-field" }, viewQueries: [{ propertyName: "frame", first: true, predicate: ["frame"], descendants: true, isSignal: true }, { propertyName: "inputEl", first: true, predicate: ["inputEl"], descendants: true, isSignal: true }, { propertyName: "calendar", first: true, predicate: CalendarComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"hm-field\">\n <div class=\"hm-field__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <label class=\"hm-field__label\" [attr.for]=\"id\">{{ label() }}</label>\n @if (isRequired()) {\n <span class=\"hm-field__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n #frame\n class=\"hm-field__frame hm-date-picker__frame\"\n [class.hm-field__frame--invalid]=\"dateError()\"\n [class.hm-field__frame--disabled]=\"isDisabled()\"\n >\n <input\n #inputEl\n class=\"hm-field__control\"\n [id]=\"id\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [attr.maxlength]=\"dateLength()\"\n [value]=\"typed()\"\n [attr.placeholder]=\"placeholder() || text.placeholder\"\n [disabled]=\"isDisabled()\"\n [attr.aria-invalid]=\"dateError() ? 'true' : null\"\n [attr.aria-describedby]=\"describedBy()\"\n (input)=\"onInput($event)\"\n (blur)=\"onBlur()\"\n (keydown)=\"onKeydown($event)\"\n />\n <button\n type=\"button\"\n class=\"hm-field__action\"\n [attr.aria-label]=\"text.openCalendar + (typed() ? ', ' + typed() : '')\"\n [attr.aria-expanded]=\"open()\"\n aria-haspopup=\"dialog\"\n [disabled]=\"isDisabled()\"\n (click)=\"toggle()\"\n >\n <hm-icon shape=\"calendar\" />\n </button>\n </div>\n\n @if (hint()) {\n <p class=\"hm-field__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (dateError()) {\n <p class=\"hm-field__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n {{ dateError() }}\n </p>\n }\n</div>\n\n@if (open()) {\n <hm-date-popover [anchorEl]=\"frameEl()\" [label]=\"label()\" (closed)=\"close()\" (ready)=\"onPopoverReady()\">\n <hm-calendar [selected]=\"current()\" [min]=\"min()\" [max]=\"max()\" (picked)=\"onPicked($event)\" (cleared)=\"onCleared()\" />\n </hm-date-popover>\n}\n", dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: CalendarComponent, selector: "hm-calendar", inputs: ["selected", "rangeStart", "rangeEnd", "min", "max", "pickLevel", "selectedMonth", "texts"], outputs: ["picked", "cleared", "monthPicked"] }, { kind: "component", type: DatePopoverComponent, selector: "hm-date-popover", inputs: ["anchorEl", "label"], outputs: ["closed", "ready"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
445
534
  }
446
535
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: DatePickerComponent, decorators: [{
447
536
  type: Component,
@@ -692,7 +781,7 @@ class DateRangePickerComponent extends HermesFormFieldBase {
692
781
  return this.frame().nativeElement;
693
782
  }
694
783
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: DateRangePickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
695
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: DateRangePickerComponent, isStandalone: true, selector: "hm-date-range-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, presets: { classPropertyName: "presets", publicName: "presets", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, viewQueries: [{ propertyName: "frame", first: true, predicate: ["frame"], descendants: true, isSignal: true }, { propertyName: "startInput", first: true, predicate: ["startInput"], descendants: true, isSignal: true }, { propertyName: "calendar", first: true, predicate: CalendarComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"hm-field\" role=\"group\" [attr.aria-labelledby]=\"id + '-label'\">\n <div class=\"hm-field__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <span class=\"hm-field__label\" [id]=\"id + '-label'\">{{ label() }}</span>\n @if (rangeRequired()) {\n <span class=\"hm-field__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n #frame\n class=\"hm-field__frame hm-date-picker__frame hm-date-range\"\n [class.hm-field__frame--invalid]=\"rangeError()\"\n [class.hm-field__frame--disabled]=\"rangeDisabled()\"\n >\n <input\n #startInput\n class=\"hm-field__control hm-date-range__input\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [attr.maxlength]=\"dateLength()\"\n [attr.size]=\"dateLength()\"\n [value]=\"typedStart()\"\n [attr.placeholder]=\"text.placeholder\"\n [attr.aria-label]=\"label() + ' \u2014 ' + text.start\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"rangeRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"rangeError() ? 'true' : null\"\n [disabled]=\"rangeDisabled()\"\n (input)=\"onInput('start', $event)\"\n (blur)=\"onBlur('start')\"\n (keydown)=\"onKeydown('start', $event)\"\n />\n <span class=\"hm-date-range__sep\" aria-hidden=\"true\">\u2013</span>\n <input\n class=\"hm-field__control hm-date-range__input\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [attr.maxlength]=\"dateLength()\"\n [attr.size]=\"dateLength()\"\n [value]=\"typedEnd()\"\n [attr.placeholder]=\"text.placeholder\"\n [attr.aria-label]=\"label() + ' \u2014 ' + text.end\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"rangeRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"rangeError() ? 'true' : null\"\n [disabled]=\"rangeDisabled()\"\n (input)=\"onInput('end', $event)\"\n (blur)=\"onBlur('end')\"\n (keydown)=\"onKeydown('end', $event)\"\n />\n <button\n type=\"button\"\n class=\"hm-field__action\"\n [attr.aria-label]=\"text.openCalendar + ': ' + label()\"\n [attr.aria-expanded]=\"open()\"\n aria-haspopup=\"dialog\"\n [disabled]=\"rangeDisabled()\"\n (click)=\"toggle()\"\n >\n <hm-icon shape=\"calendar\" />\n </button>\n </div>\n\n @if (hint()) {\n <p class=\"hm-field__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (rangeError()) {\n <p class=\"hm-field__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n {{ rangeError() }}\n </p>\n }\n</div>\n\n@if (open()) {\n <hm-date-popover [anchorEl]=\"frameEl()\" [label]=\"label()\" (closed)=\"close()\" (ready)=\"onPopoverReady()\">\n <div class=\"hm-date-range__body\" [class.hm-date-range__body--presets]=\"presetViews().length\">\n <!-- Atalhos (`presets`): lista nomeada de bot\u00F5es altern\u00E1veis; o ativo tem aria-pressed e \u2713. -->\n @if (presetViews().length) {\n <ul class=\"hm-date-range__presets\" [attr.aria-label]=\"presetsLabel()\">\n @for (preset of presetViews(); track $index) {\n <li>\n <button\n type=\"button\"\n class=\"hm-date-range__preset\"\n [class.hm-date-range__preset--active]=\"preset.active\"\n [attr.aria-pressed]=\"preset.active\"\n [disabled]=\"!preset.range\"\n (click)=\"applyPreset(preset.range)\"\n >\n <span class=\"hm-date-range__preset-check\" aria-hidden=\"true\">\n @if (preset.active) {\n <hm-icon shape=\"check\" />\n }\n </span>\n {{ preset.label }}\n </button>\n </li>\n }\n </ul>\n }\n <hm-calendar\n [rangeStart]=\"startValue()\"\n [rangeEnd]=\"endValue()\"\n [min]=\"min()\"\n [max]=\"max()\"\n (picked)=\"onPicked($event)\"\n (cleared)=\"onCleared()\"\n />\n </div>\n </hm-date-popover>\n}\n", dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: CalendarComponent, selector: "hm-calendar", inputs: ["selected", "rangeStart", "rangeEnd", "min", "max"], outputs: ["picked", "cleared"] }, { kind: "component", type: DatePopoverComponent, selector: "hm-date-popover", inputs: ["anchorEl", "label"], outputs: ["closed", "ready"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
784
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: DateRangePickerComponent, isStandalone: true, selector: "hm-date-range-picker", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, valueFormat: { classPropertyName: "valueFormat", publicName: "valueFormat", isSignal: true, isRequired: false, transformFunction: null }, presets: { classPropertyName: "presets", publicName: "presets", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, viewQueries: [{ propertyName: "frame", first: true, predicate: ["frame"], descendants: true, isSignal: true }, { propertyName: "startInput", first: true, predicate: ["startInput"], descendants: true, isSignal: true }, { propertyName: "calendar", first: true, predicate: CalendarComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div class=\"hm-field\" role=\"group\" [attr.aria-labelledby]=\"id + '-label'\">\n <div class=\"hm-field__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <span class=\"hm-field__label\" [id]=\"id + '-label'\">{{ label() }}</span>\n @if (rangeRequired()) {\n <span class=\"hm-field__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div\n #frame\n class=\"hm-field__frame hm-date-picker__frame hm-date-range\"\n [class.hm-field__frame--invalid]=\"rangeError()\"\n [class.hm-field__frame--disabled]=\"rangeDisabled()\"\n >\n <input\n #startInput\n class=\"hm-field__control hm-date-range__input\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [attr.maxlength]=\"dateLength()\"\n [attr.size]=\"dateLength()\"\n [value]=\"typedStart()\"\n [attr.placeholder]=\"text.placeholder\"\n [attr.aria-label]=\"label() + ' \u2014 ' + text.start\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"rangeRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"rangeError() ? 'true' : null\"\n [disabled]=\"rangeDisabled()\"\n (input)=\"onInput('start', $event)\"\n (blur)=\"onBlur('start')\"\n (keydown)=\"onKeydown('start', $event)\"\n />\n <span class=\"hm-date-range__sep\" aria-hidden=\"true\">\u2013</span>\n <input\n class=\"hm-field__control hm-date-range__input\"\n type=\"text\"\n inputmode=\"numeric\"\n autocomplete=\"off\"\n [attr.maxlength]=\"dateLength()\"\n [attr.size]=\"dateLength()\"\n [value]=\"typedEnd()\"\n [attr.placeholder]=\"text.placeholder\"\n [attr.aria-label]=\"label() + ' \u2014 ' + text.end\"\n [attr.aria-describedby]=\"describedBy()\"\n [attr.aria-required]=\"rangeRequired() ? 'true' : null\"\n [attr.aria-invalid]=\"rangeError() ? 'true' : null\"\n [disabled]=\"rangeDisabled()\"\n (input)=\"onInput('end', $event)\"\n (blur)=\"onBlur('end')\"\n (keydown)=\"onKeydown('end', $event)\"\n />\n <button\n type=\"button\"\n class=\"hm-field__action\"\n [attr.aria-label]=\"text.openCalendar + ': ' + label()\"\n [attr.aria-expanded]=\"open()\"\n aria-haspopup=\"dialog\"\n [disabled]=\"rangeDisabled()\"\n (click)=\"toggle()\"\n >\n <hm-icon shape=\"calendar\" />\n </button>\n </div>\n\n @if (hint()) {\n <p class=\"hm-field__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (rangeError()) {\n <p class=\"hm-field__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n {{ rangeError() }}\n </p>\n }\n</div>\n\n@if (open()) {\n <hm-date-popover [anchorEl]=\"frameEl()\" [label]=\"label()\" (closed)=\"close()\" (ready)=\"onPopoverReady()\">\n <div class=\"hm-date-range__body\" [class.hm-date-range__body--presets]=\"presetViews().length\">\n <!-- Atalhos (`presets`): lista nomeada de bot\u00F5es altern\u00E1veis; o ativo tem aria-pressed e \u2713. -->\n @if (presetViews().length) {\n <ul class=\"hm-date-range__presets\" [attr.aria-label]=\"presetsLabel()\">\n @for (preset of presetViews(); track $index) {\n <li>\n <button\n type=\"button\"\n class=\"hm-date-range__preset\"\n [class.hm-date-range__preset--active]=\"preset.active\"\n [attr.aria-pressed]=\"preset.active\"\n [disabled]=\"!preset.range\"\n (click)=\"applyPreset(preset.range)\"\n >\n <span class=\"hm-date-range__preset-check\" aria-hidden=\"true\">\n @if (preset.active) {\n <hm-icon shape=\"check\" />\n }\n </span>\n {{ preset.label }}\n </button>\n </li>\n }\n </ul>\n }\n <hm-calendar\n [rangeStart]=\"startValue()\"\n [rangeEnd]=\"endValue()\"\n [min]=\"min()\"\n [max]=\"max()\"\n (picked)=\"onPicked($event)\"\n (cleared)=\"onCleared()\"\n />\n </div>\n </hm-date-popover>\n}\n", dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: CalendarComponent, selector: "hm-calendar", inputs: ["selected", "rangeStart", "rangeEnd", "min", "max", "pickLevel", "selectedMonth", "texts"], outputs: ["picked", "cleared", "monthPicked"] }, { kind: "component", type: DatePopoverComponent, selector: "hm-date-popover", inputs: ["anchorEl", "label"], outputs: ["closed", "ready"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
696
785
  }
697
786
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: DateRangePickerComponent, decorators: [{
698
787
  type: Component,
@@ -706,5 +795,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
706
795
  * Generated bundle index. Do not edit.
707
796
  */
708
797
 
709
- export { CalendarComponent, DatePickerComponent, DateRangePickerComponent };
798
+ export { CALENDAR_MONTH_MESSAGES, CALENDAR_MONTH_MESSAGES_EN, CALENDAR_MONTH_MESSAGES_ES, CALENDAR_MONTH_MESSAGES_PT_BR, CalendarComponent, DatePickerComponent, DatePopoverComponent, DateRangePickerComponent };
710
799
  //# sourceMappingURL=trismegisto-angular-date-picker.mjs.map