@trismegisto/angular 3.3.3 → 3.3.5

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 (550) 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-tour.mjs +385 -0
  254. package/fesm2022/trismegisto-angular-tour.mjs.map +1 -0
  255. package/fesm2022/trismegisto-angular-trace-waterfall.mjs +511 -0
  256. package/fesm2022/trismegisto-angular-trace-waterfall.mjs.map +1 -0
  257. package/fesm2022/trismegisto-angular-transaction.mjs +616 -0
  258. package/fesm2022/trismegisto-angular-transaction.mjs.map +1 -0
  259. package/fesm2022/trismegisto-angular-tree-select.mjs +444 -0
  260. package/fesm2022/trismegisto-angular-tree-select.mjs.map +1 -0
  261. package/fesm2022/trismegisto-angular-tree.mjs +1 -1
  262. package/fesm2022/trismegisto-angular-tree.mjs.map +1 -1
  263. package/fesm2022/trismegisto-angular-unsaved-changes.mjs +147 -0
  264. package/fesm2022/trismegisto-angular-unsaved-changes.mjs.map +1 -0
  265. package/fesm2022/trismegisto-angular-uptime-bar.mjs +271 -0
  266. package/fesm2022/trismegisto-angular-uptime-bar.mjs.map +1 -0
  267. package/fesm2022/trismegisto-angular-user-card.mjs +298 -0
  268. package/fesm2022/trismegisto-angular-user-card.mjs.map +1 -0
  269. package/fesm2022/trismegisto-angular-vehicle-plate.mjs +245 -0
  270. package/fesm2022/trismegisto-angular-vehicle-plate.mjs.map +1 -0
  271. package/fesm2022/trismegisto-angular-webhook.mjs +358 -0
  272. package/fesm2022/trismegisto-angular-webhook.mjs.map +1 -0
  273. package/fesm2022/trismegisto-angular-wizard.mjs +2 -2
  274. package/fesm2022/trismegisto-angular-wizard.mjs.map +1 -1
  275. package/fesm2022/trismegisto-angular-workflow-diagram.mjs +441 -0
  276. package/fesm2022/trismegisto-angular-workflow-diagram.mjs.map +1 -0
  277. package/fesm2022/trismegisto-angular-workflow-i18n.mjs +890 -0
  278. package/fesm2022/trismegisto-angular-workflow-i18n.mjs.map +1 -0
  279. package/fesm2022/trismegisto-angular-workload.mjs +172 -0
  280. package/fesm2022/trismegisto-angular-workload.mjs.map +1 -0
  281. package/fesm2022/trismegisto-angular-workspace.mjs +229 -44
  282. package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
  283. package/fesm2022/trismegisto-angular.mjs +116 -6
  284. package/fesm2022/trismegisto-angular.mjs.map +1 -1
  285. package/package.json +449 -5
  286. package/types/trismegisto-angular-access-control.d.ts +330 -0
  287. package/types/trismegisto-angular-access-control.d.ts.map +1 -0
  288. package/types/trismegisto-angular-account-avatar.d.ts +18 -1
  289. package/types/trismegisto-angular-account-avatar.d.ts.map +1 -1
  290. package/types/trismegisto-angular-account-closure.d.ts +85 -0
  291. package/types/trismegisto-angular-account-closure.d.ts.map +1 -0
  292. package/types/trismegisto-angular-account-forms.d.ts +381 -0
  293. package/types/trismegisto-angular-account-forms.d.ts.map +1 -0
  294. package/types/trismegisto-angular-account-switcher.d.ts +60 -0
  295. package/types/trismegisto-angular-account-switcher.d.ts.map +1 -0
  296. package/types/trismegisto-angular-address.d.ts +267 -0
  297. package/types/trismegisto-angular-address.d.ts.map +1 -0
  298. package/types/trismegisto-angular-alert-history.d.ts +77 -0
  299. package/types/trismegisto-angular-alert-history.d.ts.map +1 -0
  300. package/types/trismegisto-angular-alert-rule-editor.d.ts +123 -0
  301. package/types/trismegisto-angular-alert-rule-editor.d.ts.map +1 -0
  302. package/types/trismegisto-angular-anchor-nav.d.ts +78 -0
  303. package/types/trismegisto-angular-anchor-nav.d.ts.map +1 -0
  304. package/types/trismegisto-angular-announcer.d.ts +49 -0
  305. package/types/trismegisto-angular-announcer.d.ts.map +1 -0
  306. package/types/trismegisto-angular-api-exchange.d.ts +155 -0
  307. package/types/trismegisto-angular-api-exchange.d.ts.map +1 -0
  308. package/types/trismegisto-angular-appointment-details.d.ts +123 -0
  309. package/types/trismegisto-angular-appointment-details.d.ts.map +1 -0
  310. package/types/trismegisto-angular-approval.d.ts +109 -0
  311. package/types/trismegisto-angular-approval.d.ts.map +1 -0
  312. package/types/trismegisto-angular-assignee.d.ts +120 -0
  313. package/types/trismegisto-angular-assignee.d.ts.map +1 -0
  314. package/types/trismegisto-angular-availability-editor.d.ts +100 -0
  315. package/types/trismegisto-angular-availability-editor.d.ts.map +1 -0
  316. package/types/trismegisto-angular-backlog.d.ts +98 -0
  317. package/types/trismegisto-angular-backlog.d.ts.map +1 -0
  318. package/types/trismegisto-angular-billing.d.ts +851 -0
  319. package/types/trismegisto-angular-billing.d.ts.map +1 -0
  320. package/types/trismegisto-angular-bottom-navigation.d.ts +83 -0
  321. package/types/trismegisto-angular-bottom-navigation.d.ts.map +1 -0
  322. package/types/trismegisto-angular-bottom-sheet.d.ts +121 -0
  323. package/types/trismegisto-angular-bottom-sheet.d.ts.map +1 -0
  324. package/types/trismegisto-angular-cart.d.ts +267 -0
  325. package/types/trismegisto-angular-cart.d.ts.map +1 -0
  326. package/types/trismegisto-angular-cascader.d.ts +133 -0
  327. package/types/trismegisto-angular-cascader.d.ts.map +1 -0
  328. package/types/trismegisto-angular-change-history.d.ts +58 -0
  329. package/types/trismegisto-angular-change-history.d.ts.map +1 -0
  330. package/types/trismegisto-angular-color-picker.d.ts +73 -0
  331. package/types/trismegisto-angular-color-picker.d.ts.map +1 -0
  332. package/types/trismegisto-angular-combobox-multi.d.ts +3 -1
  333. package/types/trismegisto-angular-combobox-multi.d.ts.map +1 -1
  334. package/types/trismegisto-angular-commerce-format.d.ts +43 -0
  335. package/types/trismegisto-angular-commerce-format.d.ts.map +1 -0
  336. package/types/trismegisto-angular-connection-wizard.d.ts +110 -0
  337. package/types/trismegisto-angular-connection-wizard.d.ts.map +1 -0
  338. package/types/trismegisto-angular-consent.d.ts +142 -0
  339. package/types/trismegisto-angular-consent.d.ts.map +1 -0
  340. package/types/trismegisto-angular-credentials-form.d.ts +242 -0
  341. package/types/trismegisto-angular-credentials-form.d.ts.map +1 -0
  342. package/types/trismegisto-angular-data-grid.d.ts +382 -48
  343. package/types/trismegisto-angular-data-grid.d.ts.map +1 -1
  344. package/types/trismegisto-angular-data-source-picker.d.ts +73 -0
  345. package/types/trismegisto-angular-data-source-picker.d.ts.map +1 -0
  346. package/types/trismegisto-angular-date-picker.d.ts +75 -4
  347. package/types/trismegisto-angular-date-picker.d.ts.map +1 -1
  348. package/types/trismegisto-angular-datetime-picker.d.ts +89 -0
  349. package/types/trismegisto-angular-datetime-picker.d.ts.map +1 -0
  350. package/types/trismegisto-angular-deadline.d.ts +143 -0
  351. package/types/trismegisto-angular-deadline.d.ts.map +1 -0
  352. package/types/trismegisto-angular-deploy-pipeline.d.ts +100 -0
  353. package/types/trismegisto-angular-deploy-pipeline.d.ts.map +1 -0
  354. package/types/trismegisto-angular-drawer.d.ts +6 -3
  355. package/types/trismegisto-angular-drawer.d.ts.map +1 -1
  356. package/types/trismegisto-angular-endpoint-card.d.ts +113 -0
  357. package/types/trismegisto-angular-endpoint-card.d.ts.map +1 -0
  358. package/types/trismegisto-angular-entity-picker.d.ts +88 -0
  359. package/types/trismegisto-angular-entity-picker.d.ts.map +1 -0
  360. package/types/trismegisto-angular-environment-picker.d.ts +72 -0
  361. package/types/trismegisto-angular-environment-picker.d.ts.map +1 -0
  362. package/types/trismegisto-angular-event-calendar.d.ts +52 -6
  363. package/types/trismegisto-angular-event-calendar.d.ts.map +1 -1
  364. package/types/trismegisto-angular-execution-status.d.ts +76 -0
  365. package/types/trismegisto-angular-execution-status.d.ts.map +1 -0
  366. package/types/trismegisto-angular-feature-flags.d.ts +97 -0
  367. package/types/trismegisto-angular-feature-flags.d.ts.map +1 -0
  368. package/types/trismegisto-angular-field-mapping.d.ts +118 -0
  369. package/types/trismegisto-angular-field-mapping.d.ts.map +1 -0
  370. package/types/trismegisto-angular-file-list.d.ts +136 -0
  371. package/types/trismegisto-angular-file-list.d.ts.map +1 -0
  372. package/types/trismegisto-angular-file-permissions.d.ts +171 -0
  373. package/types/trismegisto-angular-file-permissions.d.ts.map +1 -0
  374. package/types/trismegisto-angular-file-versions.d.ts +93 -0
  375. package/types/trismegisto-angular-file-versions.d.ts.map +1 -0
  376. package/types/trismegisto-angular-finance.d.ts +623 -0
  377. package/types/trismegisto-angular-finance.d.ts.map +1 -0
  378. package/types/trismegisto-angular-form-error-summary.d.ts +98 -0
  379. package/types/trismegisto-angular-form-error-summary.d.ts.map +1 -0
  380. package/types/trismegisto-angular-forms.d.ts +14 -1
  381. package/types/trismegisto-angular-forms.d.ts.map +1 -1
  382. package/types/trismegisto-angular-gantt.d.ts +128 -0
  383. package/types/trismegisto-angular-gantt.d.ts.map +1 -0
  384. package/types/trismegisto-angular-header.d.ts +5 -1
  385. package/types/trismegisto-angular-header.d.ts.map +1 -1
  386. package/types/trismegisto-angular-health-status.d.ts +71 -0
  387. package/types/trismegisto-angular-health-status.d.ts.map +1 -0
  388. package/types/trismegisto-angular-icon.d.ts +96 -1
  389. package/types/trismegisto-angular-icon.d.ts.map +1 -1
  390. package/types/trismegisto-angular-identity-document.d.ts +112 -0
  391. package/types/trismegisto-angular-identity-document.d.ts.map +1 -0
  392. package/types/trismegisto-angular-image-gallery.d.ts +129 -0
  393. package/types/trismegisto-angular-image-gallery.d.ts.map +1 -0
  394. package/types/trismegisto-angular-incident.d.ts +212 -0
  395. package/types/trismegisto-angular-incident.d.ts.map +1 -0
  396. package/types/trismegisto-angular-input.d.ts.map +1 -1
  397. package/types/trismegisto-angular-integration-text.d.ts +42 -0
  398. package/types/trismegisto-angular-integration-text.d.ts.map +1 -0
  399. package/types/trismegisto-angular-integration.d.ts +283 -0
  400. package/types/trismegisto-angular-integration.d.ts.map +1 -0
  401. package/types/trismegisto-angular-invoice.d.ts +221 -0
  402. package/types/trismegisto-angular-invoice.d.ts.map +1 -0
  403. package/types/trismegisto-angular-json-viewer.d.ts +117 -0
  404. package/types/trismegisto-angular-json-viewer.d.ts.map +1 -0
  405. package/types/trismegisto-angular-kanban.d.ts +38 -3
  406. package/types/trismegisto-angular-kanban.d.ts.map +1 -1
  407. package/types/trismegisto-angular-level-badge.d.ts +87 -0
  408. package/types/trismegisto-angular-level-badge.d.ts.map +1 -0
  409. package/types/trismegisto-angular-location-select.d.ts +80 -0
  410. package/types/trismegisto-angular-location-select.d.ts.map +1 -0
  411. package/types/trismegisto-angular-log-viewer.d.ts +125 -0
  412. package/types/trismegisto-angular-log-viewer.d.ts.map +1 -0
  413. package/types/trismegisto-angular-maintenance-window.d.ts +89 -0
  414. package/types/trismegisto-angular-maintenance-window.d.ts.map +1 -0
  415. package/types/trismegisto-angular-member-list.d.ts +80 -0
  416. package/types/trismegisto-angular-member-list.d.ts.map +1 -0
  417. package/types/trismegisto-angular-mention-text.d.ts +28 -0
  418. package/types/trismegisto-angular-mention-text.d.ts.map +1 -0
  419. package/types/trismegisto-angular-menu.d.ts +4 -1
  420. package/types/trismegisto-angular-menu.d.ts.map +1 -1
  421. package/types/trismegisto-angular-message.d.ts +31 -2
  422. package/types/trismegisto-angular-message.d.ts.map +1 -1
  423. package/types/trismegisto-angular-metric-explorer.d.ts +117 -0
  424. package/types/trismegisto-angular-metric-explorer.d.ts.map +1 -0
  425. package/types/trismegisto-angular-modal.d.ts +1 -0
  426. package/types/trismegisto-angular-modal.d.ts.map +1 -1
  427. package/types/trismegisto-angular-monitoring-text.d.ts +57 -0
  428. package/types/trismegisto-angular-monitoring-text.d.ts.map +1 -0
  429. package/types/trismegisto-angular-month-picker.d.ts +104 -0
  430. package/types/trismegisto-angular-month-picker.d.ts.map +1 -0
  431. package/types/trismegisto-angular-navigation-menu.d.ts +35 -2
  432. package/types/trismegisto-angular-navigation-menu.d.ts.map +1 -1
  433. package/types/trismegisto-angular-number-field.d.ts +148 -0
  434. package/types/trismegisto-angular-number-field.d.ts.map +1 -0
  435. package/types/trismegisto-angular-observability-text.d.ts +85 -0
  436. package/types/trismegisto-angular-observability-text.d.ts.map +1 -0
  437. package/types/trismegisto-angular-order.d.ts +268 -0
  438. package/types/trismegisto-angular-order.d.ts.map +1 -0
  439. package/types/trismegisto-angular-org-chart.d.ts +145 -0
  440. package/types/trismegisto-angular-org-chart.d.ts.map +1 -0
  441. package/types/trismegisto-angular-password-strength.d.ts +74 -0
  442. package/types/trismegisto-angular-password-strength.d.ts.map +1 -0
  443. package/types/trismegisto-angular-payment-fields.d.ts +450 -0
  444. package/types/trismegisto-angular-payment-fields.d.ts.map +1 -0
  445. package/types/trismegisto-angular-payment-form.d.ts +189 -0
  446. package/types/trismegisto-angular-payment-form.d.ts.map +1 -0
  447. package/types/trismegisto-angular-payment-method.d.ts +238 -0
  448. package/types/trismegisto-angular-payment-method.d.ts.map +1 -0
  449. package/types/trismegisto-angular-pdf-viewer.d.ts +70 -0
  450. package/types/trismegisto-angular-pdf-viewer.d.ts.map +1 -0
  451. package/types/trismegisto-angular-permission-matrix.d.ts +70 -0
  452. package/types/trismegisto-angular-permission-matrix.d.ts.map +1 -0
  453. package/types/trismegisto-angular-pipes.d.ts +108 -2
  454. package/types/trismegisto-angular-pipes.d.ts.map +1 -1
  455. package/types/trismegisto-angular-popconfirm.d.ts +115 -0
  456. package/types/trismegisto-angular-popconfirm.d.ts.map +1 -0
  457. package/types/trismegisto-angular-popover.d.ts +3 -1
  458. package/types/trismegisto-angular-popover.d.ts.map +1 -1
  459. package/types/trismegisto-angular-price.d.ts +185 -0
  460. package/types/trismegisto-angular-price.d.ts.map +1 -0
  461. package/types/trismegisto-angular-product.d.ts +391 -0
  462. package/types/trismegisto-angular-product.d.ts.map +1 -0
  463. package/types/trismegisto-angular-progress.d.ts +20 -3
  464. package/types/trismegisto-angular-progress.d.ts.map +1 -1
  465. package/types/trismegisto-angular-rating.d.ts +83 -0
  466. package/types/trismegisto-angular-rating.d.ts.map +1 -0
  467. package/types/trismegisto-angular-reason-dialog.d.ts +65 -0
  468. package/types/trismegisto-angular-reason-dialog.d.ts.map +1 -0
  469. package/types/trismegisto-angular-recurrence-editor.d.ts +151 -0
  470. package/types/trismegisto-angular-recurrence-editor.d.ts.map +1 -0
  471. package/types/trismegisto-angular-release-timeline.d.ts +79 -0
  472. package/types/trismegisto-angular-release-timeline.d.ts.map +1 -0
  473. package/types/trismegisto-angular-report-history.d.ts +144 -0
  474. package/types/trismegisto-angular-report-history.d.ts.map +1 -0
  475. package/types/trismegisto-angular-report-schedule.d.ts +138 -0
  476. package/types/trismegisto-angular-report-schedule.d.ts.map +1 -0
  477. package/types/trismegisto-angular-resource-calendar.d.ts +107 -0
  478. package/types/trismegisto-angular-resource-calendar.d.ts.map +1 -0
  479. package/types/trismegisto-angular-resource-usage.d.ts +91 -0
  480. package/types/trismegisto-angular-resource-usage.d.ts.map +1 -0
  481. package/types/trismegisto-angular-return-request.d.ts +158 -0
  482. package/types/trismegisto-angular-return-request.d.ts.map +1 -0
  483. package/types/trismegisto-angular-risk-register.d.ts +130 -0
  484. package/types/trismegisto-angular-risk-register.d.ts.map +1 -0
  485. package/types/trismegisto-angular-save-status.d.ts +67 -0
  486. package/types/trismegisto-angular-save-status.d.ts.map +1 -0
  487. package/types/trismegisto-angular-service-map.d.ts +111 -0
  488. package/types/trismegisto-angular-service-map.d.ts.map +1 -0
  489. package/types/trismegisto-angular-service-status.d.ts +82 -0
  490. package/types/trismegisto-angular-service-status.d.ts.map +1 -0
  491. package/types/trismegisto-angular-shipping.d.ts +221 -0
  492. package/types/trismegisto-angular-shipping.d.ts.map +1 -0
  493. package/types/trismegisto-angular-sidebar.d.ts +1 -0
  494. package/types/trismegisto-angular-sidebar.d.ts.map +1 -1
  495. package/types/trismegisto-angular-skip-link.d.ts +53 -0
  496. package/types/trismegisto-angular-skip-link.d.ts.map +1 -0
  497. package/types/trismegisto-angular-sla-summary.d.ts +104 -0
  498. package/types/trismegisto-angular-sla-summary.d.ts.map +1 -0
  499. package/types/trismegisto-angular-slot-picker.d.ts +128 -0
  500. package/types/trismegisto-angular-slot-picker.d.ts.map +1 -0
  501. package/types/trismegisto-angular-split-button.d.ts +81 -0
  502. package/types/trismegisto-angular-split-button.d.ts.map +1 -0
  503. package/types/trismegisto-angular-status-badge.d.ts +40 -0
  504. package/types/trismegisto-angular-status-badge.d.ts.map +1 -0
  505. package/types/trismegisto-angular-status-select.d.ts +76 -0
  506. package/types/trismegisto-angular-status-select.d.ts.map +1 -0
  507. package/types/trismegisto-angular-storage-usage.d.ts +82 -0
  508. package/types/trismegisto-angular-storage-usage.d.ts.map +1 -0
  509. package/types/trismegisto-angular-swimlane-board.d.ts +114 -0
  510. package/types/trismegisto-angular-swimlane-board.d.ts.map +1 -0
  511. package/types/trismegisto-angular-sync-status.d.ts +191 -0
  512. package/types/trismegisto-angular-sync-status.d.ts.map +1 -0
  513. package/types/trismegisto-angular-tag-input.d.ts +121 -0
  514. package/types/trismegisto-angular-tag-input.d.ts.map +1 -0
  515. package/types/trismegisto-angular-task-card.d.ts +106 -0
  516. package/types/trismegisto-angular-task-card.d.ts.map +1 -0
  517. package/types/trismegisto-angular-task-detail.d.ts +248 -0
  518. package/types/trismegisto-angular-task-detail.d.ts.map +1 -0
  519. package/types/trismegisto-angular-textarea.d.ts +31 -1
  520. package/types/trismegisto-angular-textarea.d.ts.map +1 -1
  521. package/types/trismegisto-angular-time-range.d.ts +92 -0
  522. package/types/trismegisto-angular-time-range.d.ts.map +1 -0
  523. package/types/trismegisto-angular-tour.d.ts +116 -0
  524. package/types/trismegisto-angular-tour.d.ts.map +1 -0
  525. package/types/trismegisto-angular-trace-waterfall.d.ts +111 -0
  526. package/types/trismegisto-angular-trace-waterfall.d.ts.map +1 -0
  527. package/types/trismegisto-angular-transaction.d.ts +542 -0
  528. package/types/trismegisto-angular-transaction.d.ts.map +1 -0
  529. package/types/trismegisto-angular-tree-select.d.ts +197 -0
  530. package/types/trismegisto-angular-tree-select.d.ts.map +1 -0
  531. package/types/trismegisto-angular-unsaved-changes.d.ts +101 -0
  532. package/types/trismegisto-angular-unsaved-changes.d.ts.map +1 -0
  533. package/types/trismegisto-angular-uptime-bar.d.ts +90 -0
  534. package/types/trismegisto-angular-uptime-bar.d.ts.map +1 -0
  535. package/types/trismegisto-angular-user-card.d.ts +126 -0
  536. package/types/trismegisto-angular-user-card.d.ts.map +1 -0
  537. package/types/trismegisto-angular-vehicle-plate.d.ts +107 -0
  538. package/types/trismegisto-angular-vehicle-plate.d.ts.map +1 -0
  539. package/types/trismegisto-angular-webhook.d.ts +244 -0
  540. package/types/trismegisto-angular-webhook.d.ts.map +1 -0
  541. package/types/trismegisto-angular-workflow-diagram.d.ts +136 -0
  542. package/types/trismegisto-angular-workflow-diagram.d.ts.map +1 -0
  543. package/types/trismegisto-angular-workflow-i18n.d.ts +358 -0
  544. package/types/trismegisto-angular-workflow-i18n.d.ts.map +1 -0
  545. package/types/trismegisto-angular-workload.d.ts +64 -0
  546. package/types/trismegisto-angular-workload.d.ts.map +1 -0
  547. package/types/trismegisto-angular-workspace.d.ts +79 -7
  548. package/types/trismegisto-angular-workspace.d.ts.map +1 -1
  549. package/types/trismegisto-angular.d.ts +119 -9
  550. package/types/trismegisto-angular.d.ts.map +1 -1
@@ -0,0 +1,677 @@
1
+ import * as i0 from '@angular/core';
2
+ import { input, booleanAttribute, computed, ChangeDetectionStrategy, Component, output, signal, viewChild, afterRenderEffect } from '@angular/core';
3
+ import { computeCartTotals, pluralMessage, formatMessage, freeShippingRemaining, lineTotal, clampQuantity } from '@trismegisto/primitives';
4
+ import { ButtonComponent } from '@trismegisto/angular/button';
5
+ import { localCatalog, formatLocale, formatMoney } from '@trismegisto/angular/commerce-format';
6
+ import { IconButtonComponent } from '@trismegisto/angular/icon-button';
7
+ import { ICON_ARROW, ICON_IMAGE, ICON_LIST, ICON_TAG, ICON_TIMES, ICON_TRASH, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
8
+ import { InputComponent } from '@trismegisto/angular/input';
9
+ import { ProgressComponent } from '@trismegisto/angular/progress';
10
+
11
+ // Textos das peças de `@trismegisto/angular/cart` em pt-BR, en e es — fora do HERMES_MESSAGES de propósito
12
+ // (o pt-BR do catálogo geral vai embutido em todo app). O componente escolhe pelo idioma ativo
13
+ // (`HermesI18nService.pick`) e o app sobrescreve qualquer texto pelo input `texts`.
14
+ const CART_MESSAGES_PT_BR = {
15
+ cart: {
16
+ heading: 'Carrinho',
17
+ label: 'Itens do carrinho',
18
+ empty: 'Seu carrinho está vazio.',
19
+ remove: 'Remover {name}',
20
+ quantityOf: 'Quantidade de {name}',
21
+ each: '{amount} cada',
22
+ coupon: 'Cupom de desconto',
23
+ applyCoupon: 'Aplicar',
24
+ removeDiscount: 'Remover desconto {label}',
25
+ checkout: 'Finalizar compra',
26
+ freeShippingLeft: 'Faltam {amount} para o frete grátis',
27
+ freeShippingReached: 'Você ganhou frete grátis',
28
+ removed: '{name} saiu do carrinho.',
29
+ updated: 'Quantidade de {name}: {count}.',
30
+ maxReached: 'Máximo de {count} por pedido.',
31
+ },
32
+ summary: {
33
+ heading: 'Resumo do pedido',
34
+ subtotal: 'Subtotal',
35
+ subtotalItems: { one: 'Subtotal ({count} item)', other: 'Subtotal ({count} itens)' },
36
+ discount: 'Desconto',
37
+ shipping: 'Frete',
38
+ shippingPending: 'A calcular',
39
+ tax: 'Impostos',
40
+ total: 'Total',
41
+ savings: 'Você economiza {amount}',
42
+ free: 'Grátis',
43
+ },
44
+ };
45
+ const CART_MESSAGES_EN = {
46
+ cart: {
47
+ heading: 'Cart',
48
+ label: 'Cart items',
49
+ empty: 'Your cart is empty.',
50
+ remove: 'Remove {name}',
51
+ quantityOf: 'Quantity of {name}',
52
+ each: '{amount} each',
53
+ coupon: 'Discount code',
54
+ applyCoupon: 'Apply',
55
+ removeDiscount: 'Remove discount {label}',
56
+ checkout: 'Check out',
57
+ freeShippingLeft: '{amount} away from free shipping',
58
+ freeShippingReached: 'You got free shipping',
59
+ removed: '{name} was removed from the cart.',
60
+ updated: 'Quantity of {name}: {count}.',
61
+ maxReached: 'Up to {count} per order.',
62
+ },
63
+ summary: {
64
+ heading: 'Order summary',
65
+ subtotal: 'Subtotal',
66
+ subtotalItems: { one: 'Subtotal ({count} item)', other: 'Subtotal ({count} items)' },
67
+ discount: 'Discount',
68
+ shipping: 'Shipping',
69
+ shippingPending: 'Calculated at checkout',
70
+ tax: 'Taxes',
71
+ total: 'Total',
72
+ savings: 'You save {amount}',
73
+ free: 'Free',
74
+ },
75
+ };
76
+ const CART_MESSAGES_ES = {
77
+ cart: {
78
+ heading: 'Carrito',
79
+ label: 'Artículos del carrito',
80
+ empty: 'Tu carrito está vacío.',
81
+ remove: 'Quitar {name}',
82
+ quantityOf: 'Cantidad de {name}',
83
+ each: '{amount} c/u',
84
+ coupon: 'Cupón de descuento',
85
+ applyCoupon: 'Aplicar',
86
+ removeDiscount: 'Quitar descuento {label}',
87
+ checkout: 'Finalizar compra',
88
+ freeShippingLeft: 'Faltan {amount} para el envío gratis',
89
+ freeShippingReached: 'Tienes envío gratis',
90
+ removed: '{name} salió del carrito.',
91
+ updated: 'Cantidad de {name}: {count}.',
92
+ maxReached: 'Máximo de {count} por pedido.',
93
+ },
94
+ summary: {
95
+ heading: 'Resumen del pedido',
96
+ subtotal: 'Subtotal',
97
+ subtotalItems: { one: 'Subtotal ({count} artículo)', other: 'Subtotal ({count} artículos)' },
98
+ discount: 'Descuento',
99
+ shipping: 'Envío',
100
+ shippingPending: 'Por calcular',
101
+ tax: 'Impuestos',
102
+ total: 'Total',
103
+ savings: 'Ahorras {amount}',
104
+ free: 'Gratis',
105
+ },
106
+ };
107
+ const CART_MESSAGES = { 'pt-BR': CART_MESSAGES_PT_BR, en: CART_MESSAGES_EN, es: CART_MESSAGES_ES };
108
+
109
+ const CART_ICONS = [ICON_ARROW, ICON_IMAGE, ICON_LIST, ICON_TAG, ICON_TIMES, ICON_TRASH];
110
+
111
+ let sequence = 0;
112
+ /**
113
+ * Resumo de valores de um pedido ou carrinho (`hm-order-summary`): subtotal com a contagem de itens, cada
114
+ * desconto, frete ("A calcular" enquanto não houver, "Grátis" quando zero), impostos e o total.
115
+ *
116
+ * ```html
117
+ * <hm-order-summary [lines]="itens" [discounts]="cupons" [shipping]="frete" currency="BRL" />
118
+ * ```
119
+ *
120
+ * - Calcula com `computeCartTotals` (`@trismegisto/primitives`), em centavos, a partir das linhas; o
121
+ * app que já tem o total do servidor passa `totals` e o cálculo local fica de lado.
122
+ * - É uma lista de descrição (`<dl>`) sob um título: cada valor tem o próprio rótulo para leitor de tela.
123
+ * - O slot padrão vai depois do total (botão de finalizar, aviso de troca).
124
+ */
125
+ class OrderSummaryComponent {
126
+ #icons = useHermesIcons(CART_ICONS);
127
+ lines = input([], ...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
128
+ discounts = input([], ...(ngDevMode ? [{ debugName: "discounts" }] : /* istanbul ignore next */ []));
129
+ /** Frete; `null` = ainda não calculado ("A calcular"). */
130
+ shipping = input(null, ...(ngDevMode ? [{ debugName: "shipping" }] : /* istanbul ignore next */ []));
131
+ /** Imposto já calculado (valor). */
132
+ tax = input(null, ...(ngDevMode ? [{ debugName: "tax" }] : /* istanbul ignore next */ []));
133
+ /** Alíquota em % sobre (subtotal − desconto), quando o app não manda `tax`. */
134
+ taxRate = input(null, ...(ngDevMode ? [{ debugName: "taxRate" }] : /* istanbul ignore next */ []));
135
+ currency = input('BRL', ...(ngDevMode ? [{ debugName: "currency" }] : /* istanbul ignore next */ []));
136
+ /** Totais prontos (do servidor): vencem o cálculo local. */
137
+ totals = input(null, ...(ngDevMode ? [{ debugName: "totals" }] : /* istanbul ignore next */ []));
138
+ /** Título. Vazio = "Resumo do pedido". */
139
+ heading = input('', ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
140
+ headingLevel = input(2, ...(ngDevMode ? [{ debugName: "headingLevel" }] : /* istanbul ignore next */ []));
141
+ hideHeading = input(false, { ...(ngDevMode ? { debugName: "hideHeading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
142
+ /** Mostra "Você economiza R$ X" (descontos + preços "de" dos itens). */
143
+ showSavings = input(false, { ...(ngDevMode ? { debugName: "showSavings" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
144
+ /** Espaçamento menor (lateral de checkout, gaveta). */
145
+ compact = input(false, { ...(ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
146
+ /** Sobrescreve textos do catálogo da peça (`CART_MESSAGES_PT_BR`). */
147
+ texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
148
+ #text = localCatalog(CART_MESSAGES, CART_MESSAGES_PT_BR, () => this.texts());
149
+ #locale = formatLocale();
150
+ headingId = `hm-order-summary-${++sequence}`;
151
+ text = computed(() => this.#text().summary, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
152
+ result = computed(() => this.totals() ??
153
+ computeCartTotals({
154
+ lines: this.lines(),
155
+ discounts: this.discounts(),
156
+ shipping: this.shipping(),
157
+ tax: this.tax(),
158
+ taxRate: this.taxRate(),
159
+ currency: this.currency(),
160
+ }), ...(ngDevMode ? [{ debugName: "result" }] : /* istanbul ignore next */ []));
161
+ subtotalLabel = computed(() => {
162
+ const count = this.result().itemCount;
163
+ return count > 0 ? pluralMessage(this.text().subtotalItems, count, this.#locale()) : this.text().subtotal;
164
+ }, ...(ngDevMode ? [{ debugName: "subtotalLabel" }] : /* istanbul ignore next */ []));
165
+ shippingText = computed(() => {
166
+ const shipping = this.result().shipping;
167
+ if (shipping === null)
168
+ return this.text().shippingPending;
169
+ return shipping === 0 ? this.#text().summary.free : this.money(shipping);
170
+ }, ...(ngDevMode ? [{ debugName: "shippingText" }] : /* istanbul ignore next */ []));
171
+ savings = computed(() => this.result().discount + this.result().itemSavings, ...(ngDevMode ? [{ debugName: "savings" }] : /* istanbul ignore next */ []));
172
+ savingsText = computed(() => formatMessage(this.text().savings, { amount: this.money(this.savings()) }), ...(ngDevMode ? [{ debugName: "savingsText" }] : /* istanbul ignore next */ []));
173
+ money(value) {
174
+ return formatMoney(value, this.currency(), this.#locale());
175
+ }
176
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: OrderSummaryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
177
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: OrderSummaryComponent, isStandalone: true, selector: "hm-order-summary", inputs: { lines: { classPropertyName: "lines", publicName: "lines", isSignal: true, isRequired: false, transformFunction: null }, discounts: { classPropertyName: "discounts", publicName: "discounts", isSignal: true, isRequired: false, transformFunction: null }, shipping: { classPropertyName: "shipping", publicName: "shipping", isSignal: true, isRequired: false, transformFunction: null }, tax: { classPropertyName: "tax", publicName: "tax", isSignal: true, isRequired: false, transformFunction: null }, taxRate: { classPropertyName: "taxRate", publicName: "taxRate", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, totals: { classPropertyName: "totals", publicName: "totals", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, hideHeading: { classPropertyName: "hideHeading", publicName: "hideHeading", isSignal: true, isRequired: false, transformFunction: null }, showSavings: { classPropertyName: "showSavings", publicName: "showSavings", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.hm-order-summary--compact": "compact()" }, classAttribute: "hm-order-summary" }, ngImport: i0, template: `
178
+ @if (!hideHeading()) {
179
+ <div class="hm-order-summary__heading" role="heading" [attr.aria-level]="headingLevel()" [id]="headingId">
180
+ {{ heading() || text().heading }}
181
+ </div>
182
+ }
183
+ <dl class="hm-order-summary__rows" [attr.aria-labelledby]="hideHeading() ? null : headingId">
184
+ <div class="hm-order-summary__row">
185
+ <dt>{{ subtotalLabel() }}</dt>
186
+ <dd>{{ money(result().subtotal) }}</dd>
187
+ </div>
188
+ @for (discount of result().discounts; track discount.id) {
189
+ @if (discount.amount > 0) {
190
+ <div class="hm-order-summary__row hm-order-summary__row--discount">
191
+ <dt>{{ discount.label || text().discount }}</dt>
192
+ <dd>{{ money(-discount.amount) }}</dd>
193
+ </div>
194
+ }
195
+ }
196
+ @if (!result().discounts.length && result().discount > 0) {
197
+ <div class="hm-order-summary__row hm-order-summary__row--discount">
198
+ <dt>{{ text().discount }}</dt>
199
+ <dd>{{ money(-result().discount) }}</dd>
200
+ </div>
201
+ }
202
+ <div class="hm-order-summary__row">
203
+ <dt>{{ text().shipping }}</dt>
204
+ <dd [class.hm-order-summary__free]="result().shipping === 0">{{ shippingText() }}</dd>
205
+ </div>
206
+ @if (result().tax > 0) {
207
+ <div class="hm-order-summary__row">
208
+ <dt>{{ text().tax }}</dt>
209
+ <dd>{{ money(result().tax) }}</dd>
210
+ </div>
211
+ }
212
+ <div class="hm-order-summary__row hm-order-summary__row--total">
213
+ <dt>{{ text().total }}</dt>
214
+ <dd>{{ money(result().total) }}</dd>
215
+ </div>
216
+ </dl>
217
+ @if (showSavings() && savings() > 0) {
218
+ <p class="hm-order-summary__savings">{{ savingsText() }}</p>
219
+ }
220
+ <ng-content />
221
+ `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
222
+ }
223
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: OrderSummaryComponent, decorators: [{
224
+ type: Component,
225
+ args: [{
226
+ selector: 'hm-order-summary',
227
+ changeDetection: ChangeDetectionStrategy.OnPush,
228
+ host: { class: 'hm-order-summary', '[class.hm-order-summary--compact]': 'compact()' },
229
+ template: `
230
+ @if (!hideHeading()) {
231
+ <div class="hm-order-summary__heading" role="heading" [attr.aria-level]="headingLevel()" [id]="headingId">
232
+ {{ heading() || text().heading }}
233
+ </div>
234
+ }
235
+ <dl class="hm-order-summary__rows" [attr.aria-labelledby]="hideHeading() ? null : headingId">
236
+ <div class="hm-order-summary__row">
237
+ <dt>{{ subtotalLabel() }}</dt>
238
+ <dd>{{ money(result().subtotal) }}</dd>
239
+ </div>
240
+ @for (discount of result().discounts; track discount.id) {
241
+ @if (discount.amount > 0) {
242
+ <div class="hm-order-summary__row hm-order-summary__row--discount">
243
+ <dt>{{ discount.label || text().discount }}</dt>
244
+ <dd>{{ money(-discount.amount) }}</dd>
245
+ </div>
246
+ }
247
+ }
248
+ @if (!result().discounts.length && result().discount > 0) {
249
+ <div class="hm-order-summary__row hm-order-summary__row--discount">
250
+ <dt>{{ text().discount }}</dt>
251
+ <dd>{{ money(-result().discount) }}</dd>
252
+ </div>
253
+ }
254
+ <div class="hm-order-summary__row">
255
+ <dt>{{ text().shipping }}</dt>
256
+ <dd [class.hm-order-summary__free]="result().shipping === 0">{{ shippingText() }}</dd>
257
+ </div>
258
+ @if (result().tax > 0) {
259
+ <div class="hm-order-summary__row">
260
+ <dt>{{ text().tax }}</dt>
261
+ <dd>{{ money(result().tax) }}</dd>
262
+ </div>
263
+ }
264
+ <div class="hm-order-summary__row hm-order-summary__row--total">
265
+ <dt>{{ text().total }}</dt>
266
+ <dd>{{ money(result().total) }}</dd>
267
+ </div>
268
+ </dl>
269
+ @if (showSavings() && savings() > 0) {
270
+ <p class="hm-order-summary__savings">{{ savingsText() }}</p>
271
+ }
272
+ <ng-content />
273
+ `,
274
+ }]
275
+ }], propDecorators: { lines: [{ type: i0.Input, args: [{ isSignal: true, alias: "lines", required: false }] }], discounts: [{ type: i0.Input, args: [{ isSignal: true, alias: "discounts", required: false }] }], shipping: [{ type: i0.Input, args: [{ isSignal: true, alias: "shipping", required: false }] }], tax: [{ type: i0.Input, args: [{ isSignal: true, alias: "tax", required: false }] }], taxRate: [{ type: i0.Input, args: [{ isSignal: true, alias: "taxRate", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], totals: [{ type: i0.Input, args: [{ isSignal: true, alias: "totals", required: false }] }], heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], hideHeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideHeading", required: false }] }], showSavings: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSavings", required: false }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
276
+
277
+ /**
278
+ * Carrinho de compras (`hm-cart`): linhas com imagem, variante, preço e quantidade, remoção, cupom,
279
+ * barra de frete grátis e o resumo (`hm-order-summary`) com o botão de finalizar.
280
+ *
281
+ * ```html
282
+ * <hm-cart
283
+ * [lines]="carrinho.itens()" [discounts]="carrinho.cupons()" [shipping]="frete()"
284
+ * [freeShippingThreshold]="299" (quantityChange)="carrinho.alterar($event)" (remove)="carrinho.remover($event)"
285
+ * (applyCoupon)="carrinho.aplicar($event)" (checkout)="irParaPagamento()" />
286
+ * ```
287
+ *
288
+ * - Controlado: o carrinho só PEDE (troca de quantidade, remoção, cupom) e mostra as `lines` que receber;
289
+ * validar estoque e cupom é do app (devolva `couponError` quando o cupom não vale).
290
+ * - A quantidade respeita 1..`maxQuantity` da linha. Remover anuncia "X saiu do carrinho." e leva o foco
291
+ * para a lista, para quem navega por teclado não ficar perdido quando a linha some.
292
+ * - `readonly` mostra as linhas sem controles (revisão do pedido antes de pagar).
293
+ */
294
+ class CartComponent {
295
+ #icons = useHermesIcons(CART_ICONS);
296
+ lines = input([], ...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
297
+ discounts = input([], ...(ngDevMode ? [{ debugName: "discounts" }] : /* istanbul ignore next */ []));
298
+ shipping = input(null, ...(ngDevMode ? [{ debugName: "shipping" }] : /* istanbul ignore next */ []));
299
+ tax = input(null, ...(ngDevMode ? [{ debugName: "tax" }] : /* istanbul ignore next */ []));
300
+ taxRate = input(null, ...(ngDevMode ? [{ debugName: "taxRate" }] : /* istanbul ignore next */ []));
301
+ currency = input('BRL', ...(ngDevMode ? [{ debugName: "currency" }] : /* istanbul ignore next */ []));
302
+ /** Subtotal a partir do qual o frete é grátis (mostra a barra de progresso). `null` = sem barra. */
303
+ freeShippingThreshold = input(null, ...(ngDevMode ? [{ debugName: "freeShippingThreshold" }] : /* istanbul ignore next */ []));
304
+ heading = input('', ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
305
+ headingLevel = input(2, ...(ngDevMode ? [{ debugName: "headingLevel" }] : /* istanbul ignore next */ []));
306
+ hideHeading = input(false, { ...(ngDevMode ? { debugName: "hideHeading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
307
+ emptyText = input('', ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
308
+ showCoupon = input(true, { ...(ngDevMode ? { debugName: "showCoupon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
309
+ /** Erro do último cupom (devolvido pelo app). */
310
+ couponError = input('', ...(ngDevMode ? [{ debugName: "couponError" }] : /* istanbul ignore next */ []));
311
+ applyingCoupon = input(false, { ...(ngDevMode ? { debugName: "applyingCoupon" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
312
+ showCheckout = input(true, { ...(ngDevMode ? { debugName: "showCheckout" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
313
+ checkoutLabel = input('', ...(ngDevMode ? [{ debugName: "checkoutLabel" }] : /* istanbul ignore next */ []));
314
+ checkingOut = input(false, { ...(ngDevMode ? { debugName: "checkingOut" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
315
+ /** Só leitura: sem quantidade editável, remoção nem cupom. */
316
+ readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
317
+ quantityChange = output();
318
+ remove = output();
319
+ applyCoupon = output();
320
+ removeDiscount = output();
321
+ checkout = output();
322
+ /** Sobrescreve textos do catálogo da peça (`CART_MESSAGES_PT_BR`). */
323
+ texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
324
+ #text = localCatalog(CART_MESSAGES, CART_MESSAGES_PT_BR, () => this.texts());
325
+ #locale = formatLocale();
326
+ text = computed(() => this.#text().cart, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
327
+ coupon = signal('', ...(ngDevMode ? [{ debugName: "coupon" }] : /* istanbul ignore next */ []));
328
+ announcement = signal('', ...(ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []));
329
+ list = viewChild('list', ...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
330
+ /** Linha cuja remoção foi pedida: quando ela sumir de `lines`, o foco vai para a lista. */
331
+ #removing = signal(null, ...(ngDevMode ? [{ debugName: "#removing" }] : /* istanbul ignore next */ []));
332
+ summaryHeadingLevel = computed(() => Math.min(6, this.headingLevel() + 1), ...(ngDevMode ? [{ debugName: "summaryHeadingLevel" }] : /* istanbul ignore next */ []));
333
+ freeShipping = computed(() => {
334
+ const threshold = this.freeShippingThreshold();
335
+ if (threshold === null || threshold <= 0 || !this.lines().length)
336
+ return null;
337
+ const subtotal = computeCartTotals({ lines: this.lines(), currency: this.currency() }).subtotal;
338
+ const missing = freeShippingRemaining(subtotal, threshold, this.currency());
339
+ const label = missing > 0 ? formatMessage(this.text().freeShippingLeft, { amount: this.money(missing) }) : this.text().freeShippingReached;
340
+ return { value: Math.min(subtotal, threshold), max: threshold, label, done: missing === 0 };
341
+ }, ...(ngDevMode ? [{ debugName: "freeShipping" }] : /* istanbul ignore next */ []));
342
+ constructor() {
343
+ afterRenderEffect(() => {
344
+ const pending = this.#removing();
345
+ if (!pending || this.lines().some((line) => line.id === pending))
346
+ return;
347
+ this.#removing.set(null);
348
+ this.list()?.nativeElement.focus();
349
+ });
350
+ }
351
+ money(value) {
352
+ return formatMoney(value, this.currency(), this.#locale());
353
+ }
354
+ lineAmount(line) {
355
+ return lineTotal(line, this.currency());
356
+ }
357
+ eachText(line) {
358
+ return formatMessage(this.text().each, { amount: this.money(line.unitPrice) });
359
+ }
360
+ quantityLabel(line) {
361
+ return formatMessage(this.text().quantityOf, { name: line.name });
362
+ }
363
+ maxHint(line) {
364
+ return line.maxQuantity && line.quantity >= line.maxQuantity ? formatMessage(this.text().maxReached, { count: line.maxQuantity }) : '';
365
+ }
366
+ removeLabel(line) {
367
+ return formatMessage(this.text().remove, { name: line.name });
368
+ }
369
+ removeDiscountLabel(discount) {
370
+ return formatMessage(this.text().removeDiscount, { label: discount.label });
371
+ }
372
+ changeQuantity(line, value) {
373
+ const number = typeof value === 'number' ? value : Number(value);
374
+ if (!Number.isFinite(number))
375
+ return;
376
+ const quantity = clampQuantity(number, 1, line.maxQuantity ?? null);
377
+ if (quantity === line.quantity)
378
+ return;
379
+ this.quantityChange.emit({ lineId: line.id, quantity });
380
+ this.announcement.set(formatMessage(this.text().updated, { name: line.name, count: quantity }));
381
+ }
382
+ requestRemove(line) {
383
+ this.#removing.set(line.id);
384
+ this.remove.emit(line.id);
385
+ this.announcement.set(formatMessage(this.text().removed, { name: line.name }));
386
+ }
387
+ submitCoupon() {
388
+ const code = this.coupon().trim();
389
+ if (code)
390
+ this.applyCoupon.emit(code);
391
+ }
392
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: CartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
393
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: CartComponent, isStandalone: true, selector: "hm-cart", inputs: { lines: { classPropertyName: "lines", publicName: "lines", isSignal: true, isRequired: false, transformFunction: null }, discounts: { classPropertyName: "discounts", publicName: "discounts", isSignal: true, isRequired: false, transformFunction: null }, shipping: { classPropertyName: "shipping", publicName: "shipping", isSignal: true, isRequired: false, transformFunction: null }, tax: { classPropertyName: "tax", publicName: "tax", isSignal: true, isRequired: false, transformFunction: null }, taxRate: { classPropertyName: "taxRate", publicName: "taxRate", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, freeShippingThreshold: { classPropertyName: "freeShippingThreshold", publicName: "freeShippingThreshold", isSignal: true, isRequired: false, transformFunction: null }, heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, hideHeading: { classPropertyName: "hideHeading", publicName: "hideHeading", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, showCoupon: { classPropertyName: "showCoupon", publicName: "showCoupon", isSignal: true, isRequired: false, transformFunction: null }, couponError: { classPropertyName: "couponError", publicName: "couponError", isSignal: true, isRequired: false, transformFunction: null }, applyingCoupon: { classPropertyName: "applyingCoupon", publicName: "applyingCoupon", isSignal: true, isRequired: false, transformFunction: null }, showCheckout: { classPropertyName: "showCheckout", publicName: "showCheckout", isSignal: true, isRequired: false, transformFunction: null }, checkoutLabel: { classPropertyName: "checkoutLabel", publicName: "checkoutLabel", isSignal: true, isRequired: false, transformFunction: null }, checkingOut: { classPropertyName: "checkingOut", publicName: "checkingOut", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { quantityChange: "quantityChange", remove: "remove", applyCoupon: "applyCoupon", removeDiscount: "removeDiscount", checkout: "checkout" }, host: { properties: { "class.hm-cart--readonly": "readonly()" }, classAttribute: "hm-cart" }, viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: `
394
+ <div class="hm-cart__main">
395
+ @if (!hideHeading()) {
396
+ <div class="hm-cart__heading" role="heading" [attr.aria-level]="headingLevel()">{{ heading() || text().heading }}</div>
397
+ }
398
+ @if (freeShipping(); as progress) {
399
+ <div class="hm-cart__free-shipping">
400
+ <hm-progress
401
+ [value]="progress.value"
402
+ [max]="progress.max"
403
+ [label]="progress.label"
404
+ [intent]="progress.done ? 'success' : 'accent'"
405
+ size="small"
406
+ />
407
+ </div>
408
+ }
409
+ @if (lines().length) {
410
+ <ul #list class="hm-cart__lines" tabindex="-1" [attr.aria-label]="text().label">
411
+ @for (line of lines(); track line.id) {
412
+ <li class="hm-cart__line">
413
+ <span class="hm-cart__thumb" aria-hidden="true">
414
+ @if (line.image) {
415
+ <img [src]="line.image" alt="" />
416
+ } @else {
417
+ <hm-icon shape="image" />
418
+ }
419
+ </span>
420
+ <div class="hm-cart__info">
421
+ <span class="hm-cart__name">{{ line.name }}</span>
422
+ @if (line.variant) {
423
+ <span class="hm-cart__meta">{{ line.variant }}</span>
424
+ }
425
+ @if (line.quantity > 1) {
426
+ <span class="hm-cart__meta">{{ eachText(line) }}</span>
427
+ }
428
+ </div>
429
+ @if (readonly()) {
430
+ <span class="hm-cart__qty-readonly">× {{ line.quantity }}</span>
431
+ } @else {
432
+ <hm-input
433
+ class="hm-cart__qty"
434
+ type="number"
435
+ labelHidden
436
+ [label]="quantityLabel(line)"
437
+ [value]="line.quantity"
438
+ [min]="1"
439
+ [max]="line.maxQuantity ?? null"
440
+ [step]="1"
441
+ [hint]="maxHint(line)"
442
+ (valueChange)="changeQuantity(line, $event)"
443
+ />
444
+ }
445
+ <span class="hm-cart__total">
446
+ @if (line.compareAtUnitPrice && line.compareAtUnitPrice > line.unitPrice) {
447
+ <s class="hm-cart__compare" aria-hidden="true">{{ money(line.compareAtUnitPrice * line.quantity) }}</s>
448
+ }
449
+ {{ money(lineAmount(line)) }}
450
+ </span>
451
+ @if (!readonly()) {
452
+ <hm-icon-button
453
+ class="hm-cart__remove"
454
+ icon="trash"
455
+ emphasis="subtle"
456
+ size="small"
457
+
458
+ [label]="removeLabel(line)"
459
+ (clicked)="requestRemove(line)"
460
+ />
461
+ }
462
+ </li>
463
+ }
464
+ </ul>
465
+ } @else {
466
+ <p class="hm-cart__empty">{{ emptyText() || text().empty }}</p>
467
+ }
468
+ <p class="hm-visually-hidden" aria-live="polite">{{ announcement() }}</p>
469
+ </div>
470
+
471
+ <hm-order-summary
472
+ class="hm-cart__summary"
473
+ [lines]="lines()"
474
+ [discounts]="discounts()"
475
+ [shipping]="shipping()"
476
+ [tax]="tax()"
477
+ [taxRate]="taxRate()"
478
+ [currency]="currency()"
479
+ [headingLevel]="summaryHeadingLevel()"
480
+ showSavings
481
+ >
482
+ @if (showCoupon() && !readonly()) {
483
+ <form class="hm-cart__coupon" (submit)="$event.preventDefault(); submitCoupon()">
484
+ <hm-input
485
+ class="hm-cart__coupon-field"
486
+ [label]="text().coupon"
487
+ [value]="coupon()"
488
+ [error]="couponError()"
489
+ autocomplete="off"
490
+ (valueChange)="coupon.set($any($event) ?? '')"
491
+ />
492
+ <hm-button type="submit" emphasis="medium" [loading]="applyingCoupon()" [disabled]="!coupon().trim()">{{ text().applyCoupon }}</hm-button>
493
+ </form>
494
+ }
495
+ @if (discounts().length && !readonly()) {
496
+ <ul class="hm-cart__discounts">
497
+ @for (discount of discounts(); track discount.id) {
498
+ <li class="hm-cart__discount">
499
+ <hm-icon shape="tag" aria-hidden="true" />
500
+ <span>{{ discount.label }}</span>
501
+ <hm-icon-button
502
+ icon="times"
503
+ emphasis="subtle"
504
+ size="small"
505
+
506
+ [label]="removeDiscountLabel(discount)"
507
+ (clicked)="removeDiscount.emit(discount.id)"
508
+ />
509
+ </li>
510
+ }
511
+ </ul>
512
+ }
513
+ @if (showCheckout()) {
514
+ <hm-button
515
+ class="hm-cart__checkout"
516
+ block
517
+ iconEnd="arrow-right"
518
+ [disabled]="!lines().length"
519
+ [loading]="checkingOut()"
520
+ (clicked)="checkout.emit()"
521
+ >{{ checkoutLabel() || text().checkout }}</hm-button>
522
+ }
523
+ <ng-content />
524
+ </hm-order-summary>
525
+ `, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: IconButtonComponent, selector: "hm-icon-button", inputs: ["label", "icon", "solid", "iconDirection", "emphasis", "intent", "size", "disabled", "toggle", "pressed", "keyShortcuts"], outputs: ["pressedChange", "clicked"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: InputComponent, selector: "hm-input", inputs: ["value", "label", "type", "placeholder", "icon", "labelHidden", "hint", "prefix", "suffix", "prefixIcon", "mask", "maskValue", "min", "max", "step", "stepButtons", "maxLength", "autocomplete", "inputMode"], outputs: ["valueChange"] }, { kind: "component", type: OrderSummaryComponent, selector: "hm-order-summary", inputs: ["lines", "discounts", "shipping", "tax", "taxRate", "currency", "totals", "heading", "headingLevel", "hideHeading", "showSavings", "compact", "texts"] }, { kind: "component", type: ProgressComponent, selector: "hm-progress", inputs: ["value", "max", "label", "labelHidden", "showValue", "indeterminate", "intent", "size", "hint", "shape"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
526
+ }
527
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: CartComponent, decorators: [{
528
+ type: Component,
529
+ args: [{
530
+ selector: 'hm-cart',
531
+ imports: [ButtonComponent, IconButtonComponent, IconComponent, InputComponent, OrderSummaryComponent, ProgressComponent],
532
+ changeDetection: ChangeDetectionStrategy.OnPush,
533
+ host: { class: 'hm-cart', '[class.hm-cart--readonly]': 'readonly()' },
534
+ template: `
535
+ <div class="hm-cart__main">
536
+ @if (!hideHeading()) {
537
+ <div class="hm-cart__heading" role="heading" [attr.aria-level]="headingLevel()">{{ heading() || text().heading }}</div>
538
+ }
539
+ @if (freeShipping(); as progress) {
540
+ <div class="hm-cart__free-shipping">
541
+ <hm-progress
542
+ [value]="progress.value"
543
+ [max]="progress.max"
544
+ [label]="progress.label"
545
+ [intent]="progress.done ? 'success' : 'accent'"
546
+ size="small"
547
+ />
548
+ </div>
549
+ }
550
+ @if (lines().length) {
551
+ <ul #list class="hm-cart__lines" tabindex="-1" [attr.aria-label]="text().label">
552
+ @for (line of lines(); track line.id) {
553
+ <li class="hm-cart__line">
554
+ <span class="hm-cart__thumb" aria-hidden="true">
555
+ @if (line.image) {
556
+ <img [src]="line.image" alt="" />
557
+ } @else {
558
+ <hm-icon shape="image" />
559
+ }
560
+ </span>
561
+ <div class="hm-cart__info">
562
+ <span class="hm-cart__name">{{ line.name }}</span>
563
+ @if (line.variant) {
564
+ <span class="hm-cart__meta">{{ line.variant }}</span>
565
+ }
566
+ @if (line.quantity > 1) {
567
+ <span class="hm-cart__meta">{{ eachText(line) }}</span>
568
+ }
569
+ </div>
570
+ @if (readonly()) {
571
+ <span class="hm-cart__qty-readonly">× {{ line.quantity }}</span>
572
+ } @else {
573
+ <hm-input
574
+ class="hm-cart__qty"
575
+ type="number"
576
+ labelHidden
577
+ [label]="quantityLabel(line)"
578
+ [value]="line.quantity"
579
+ [min]="1"
580
+ [max]="line.maxQuantity ?? null"
581
+ [step]="1"
582
+ [hint]="maxHint(line)"
583
+ (valueChange)="changeQuantity(line, $event)"
584
+ />
585
+ }
586
+ <span class="hm-cart__total">
587
+ @if (line.compareAtUnitPrice && line.compareAtUnitPrice > line.unitPrice) {
588
+ <s class="hm-cart__compare" aria-hidden="true">{{ money(line.compareAtUnitPrice * line.quantity) }}</s>
589
+ }
590
+ {{ money(lineAmount(line)) }}
591
+ </span>
592
+ @if (!readonly()) {
593
+ <hm-icon-button
594
+ class="hm-cart__remove"
595
+ icon="trash"
596
+ emphasis="subtle"
597
+ size="small"
598
+
599
+ [label]="removeLabel(line)"
600
+ (clicked)="requestRemove(line)"
601
+ />
602
+ }
603
+ </li>
604
+ }
605
+ </ul>
606
+ } @else {
607
+ <p class="hm-cart__empty">{{ emptyText() || text().empty }}</p>
608
+ }
609
+ <p class="hm-visually-hidden" aria-live="polite">{{ announcement() }}</p>
610
+ </div>
611
+
612
+ <hm-order-summary
613
+ class="hm-cart__summary"
614
+ [lines]="lines()"
615
+ [discounts]="discounts()"
616
+ [shipping]="shipping()"
617
+ [tax]="tax()"
618
+ [taxRate]="taxRate()"
619
+ [currency]="currency()"
620
+ [headingLevel]="summaryHeadingLevel()"
621
+ showSavings
622
+ >
623
+ @if (showCoupon() && !readonly()) {
624
+ <form class="hm-cart__coupon" (submit)="$event.preventDefault(); submitCoupon()">
625
+ <hm-input
626
+ class="hm-cart__coupon-field"
627
+ [label]="text().coupon"
628
+ [value]="coupon()"
629
+ [error]="couponError()"
630
+ autocomplete="off"
631
+ (valueChange)="coupon.set($any($event) ?? '')"
632
+ />
633
+ <hm-button type="submit" emphasis="medium" [loading]="applyingCoupon()" [disabled]="!coupon().trim()">{{ text().applyCoupon }}</hm-button>
634
+ </form>
635
+ }
636
+ @if (discounts().length && !readonly()) {
637
+ <ul class="hm-cart__discounts">
638
+ @for (discount of discounts(); track discount.id) {
639
+ <li class="hm-cart__discount">
640
+ <hm-icon shape="tag" aria-hidden="true" />
641
+ <span>{{ discount.label }}</span>
642
+ <hm-icon-button
643
+ icon="times"
644
+ emphasis="subtle"
645
+ size="small"
646
+
647
+ [label]="removeDiscountLabel(discount)"
648
+ (clicked)="removeDiscount.emit(discount.id)"
649
+ />
650
+ </li>
651
+ }
652
+ </ul>
653
+ }
654
+ @if (showCheckout()) {
655
+ <hm-button
656
+ class="hm-cart__checkout"
657
+ block
658
+ iconEnd="arrow-right"
659
+ [disabled]="!lines().length"
660
+ [loading]="checkingOut()"
661
+ (clicked)="checkout.emit()"
662
+ >{{ checkoutLabel() || text().checkout }}</hm-button>
663
+ }
664
+ <ng-content />
665
+ </hm-order-summary>
666
+ `,
667
+ }]
668
+ }], ctorParameters: () => [], propDecorators: { lines: [{ type: i0.Input, args: [{ isSignal: true, alias: "lines", required: false }] }], discounts: [{ type: i0.Input, args: [{ isSignal: true, alias: "discounts", required: false }] }], shipping: [{ type: i0.Input, args: [{ isSignal: true, alias: "shipping", required: false }] }], tax: [{ type: i0.Input, args: [{ isSignal: true, alias: "tax", required: false }] }], taxRate: [{ type: i0.Input, args: [{ isSignal: true, alias: "taxRate", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], freeShippingThreshold: [{ type: i0.Input, args: [{ isSignal: true, alias: "freeShippingThreshold", required: false }] }], heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], hideHeading: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideHeading", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], showCoupon: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCoupon", required: false }] }], couponError: [{ type: i0.Input, args: [{ isSignal: true, alias: "couponError", required: false }] }], applyingCoupon: [{ type: i0.Input, args: [{ isSignal: true, alias: "applyingCoupon", required: false }] }], showCheckout: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCheckout", required: false }] }], checkoutLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkoutLabel", required: false }] }], checkingOut: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkingOut", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], quantityChange: [{ type: i0.Output, args: ["quantityChange"] }], remove: [{ type: i0.Output, args: ["remove"] }], applyCoupon: [{ type: i0.Output, args: ["applyCoupon"] }], removeDiscount: [{ type: i0.Output, args: ["removeDiscount"] }], checkout: [{ type: i0.Output, args: ["checkout"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }], list: [{ type: i0.ViewChild, args: ['list', { isSignal: true }] }] } });
669
+
670
+ // Ponto de import `@trismegisto/angular/cart` (secundário do ng-packagr).
671
+
672
+ /**
673
+ * Generated bundle index. Do not edit.
674
+ */
675
+
676
+ export { CART_MESSAGES, CART_MESSAGES_EN, CART_MESSAGES_ES, CART_MESSAGES_PT_BR, CartComponent, OrderSummaryComponent };
677
+ //# sourceMappingURL=trismegisto-angular-cart.mjs.map