@trismegisto/angular 3.3.3 → 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.
- package/fesm2022/trismegisto-angular-access-control.mjs +823 -0
- package/fesm2022/trismegisto-angular-access-control.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-account-avatar.mjs +54 -3
- package/fesm2022/trismegisto-angular-account-avatar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-account-closure.mjs +221 -0
- package/fesm2022/trismegisto-angular-account-closure.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-account-forms.mjs +924 -0
- package/fesm2022/trismegisto-angular-account-forms.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-account-switcher.mjs +202 -0
- package/fesm2022/trismegisto-angular-account-switcher.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-address.mjs +631 -0
- package/fesm2022/trismegisto-angular-address.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-alert-history.mjs +294 -0
- package/fesm2022/trismegisto-angular-alert-history.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-alert-rule-editor.mjs +450 -0
- package/fesm2022/trismegisto-angular-alert-rule-editor.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-anchor-nav.mjs +157 -0
- package/fesm2022/trismegisto-angular-anchor-nav.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-announcer.mjs +79 -0
- package/fesm2022/trismegisto-angular-announcer.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-api-exchange.mjs +202 -0
- package/fesm2022/trismegisto-angular-api-exchange.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-appointment-details.mjs +254 -0
- package/fesm2022/trismegisto-angular-appointment-details.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-approval.mjs +242 -0
- package/fesm2022/trismegisto-angular-approval.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-assignee.mjs +271 -0
- package/fesm2022/trismegisto-angular-assignee.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-attachment.mjs +1 -1
- package/fesm2022/trismegisto-angular-attachment.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-availability-editor.mjs +187 -0
- package/fesm2022/trismegisto-angular-availability-editor.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-avatar-group.mjs +1 -1
- package/fesm2022/trismegisto-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-backlog.mjs +244 -0
- package/fesm2022/trismegisto-angular-backlog.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-billing.mjs +1007 -0
- package/fesm2022/trismegisto-angular-billing.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-bottom-navigation.mjs +203 -0
- package/fesm2022/trismegisto-angular-bottom-navigation.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-bottom-sheet.mjs +428 -0
- package/fesm2022/trismegisto-angular-bottom-sheet.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-card-container.mjs +1 -1
- package/fesm2022/trismegisto-angular-card-container.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-cart.mjs +677 -0
- package/fesm2022/trismegisto-angular-cart.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-cascader.mjs +419 -0
- package/fesm2022/trismegisto-angular-cascader.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-change-history.mjs +148 -0
- package/fesm2022/trismegisto-angular-change-history.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-code-diff.mjs +2 -2
- package/fesm2022/trismegisto-angular-code-diff.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-color-picker.mjs +145 -0
- package/fesm2022/trismegisto-angular-color-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-combobox-multi.mjs +6 -4
- package/fesm2022/trismegisto-angular-combobox-multi.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-commerce-format.mjs +103 -0
- package/fesm2022/trismegisto-angular-commerce-format.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-connection-wizard.mjs +159 -0
- package/fesm2022/trismegisto-angular-connection-wizard.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-consent.mjs +382 -0
- package/fesm2022/trismegisto-angular-consent.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-credentials-form.mjs +461 -0
- package/fesm2022/trismegisto-angular-credentials-form.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-data-grid.mjs +690 -18
- package/fesm2022/trismegisto-angular-data-grid.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-data-source-picker.mjs +115 -0
- package/fesm2022/trismegisto-angular-data-source-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-date-picker.mjs +99 -10
- package/fesm2022/trismegisto-angular-date-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-datetime-picker.mjs +183 -0
- package/fesm2022/trismegisto-angular-datetime-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-deadline.mjs +326 -0
- package/fesm2022/trismegisto-angular-deadline.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-deploy-pipeline.mjs +259 -0
- package/fesm2022/trismegisto-angular-deploy-pipeline.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-drawer.mjs +11 -5
- package/fesm2022/trismegisto-angular-drawer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-endpoint-card.mjs +143 -0
- package/fesm2022/trismegisto-angular-endpoint-card.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-entity-picker.mjs +246 -0
- package/fesm2022/trismegisto-angular-entity-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-environment-picker.mjs +217 -0
- package/fesm2022/trismegisto-angular-environment-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-event-calendar.mjs +234 -11
- package/fesm2022/trismegisto-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-execution-status.mjs +211 -0
- package/fesm2022/trismegisto-angular-execution-status.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-feature-flags.mjs +153 -0
- package/fesm2022/trismegisto-angular-feature-flags.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-field-mapping.mjs +178 -0
- package/fesm2022/trismegisto-angular-field-mapping.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-file-list.mjs +222 -0
- package/fesm2022/trismegisto-angular-file-list.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-file-permissions.mjs +273 -0
- package/fesm2022/trismegisto-angular-file-permissions.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-file-upload.mjs +1 -1
- package/fesm2022/trismegisto-angular-file-upload.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-file-versions.mjs +139 -0
- package/fesm2022/trismegisto-angular-file-versions.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-filter-bar.mjs +1 -1
- package/fesm2022/trismegisto-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-finance.mjs +912 -0
- package/fesm2022/trismegisto-angular-finance.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-form-error-summary.mjs +195 -0
- package/fesm2022/trismegisto-angular-form-error-summary.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-forms.mjs +21 -3
- package/fesm2022/trismegisto-angular-forms.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-gantt.mjs +453 -0
- package/fesm2022/trismegisto-angular-gantt.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-header.mjs +22 -5
- package/fesm2022/trismegisto-angular-header.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-health-status.mjs +204 -0
- package/fesm2022/trismegisto-angular-health-status.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-icon.mjs +96 -1
- package/fesm2022/trismegisto-angular-icon.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-identity-document.mjs +274 -0
- package/fesm2022/trismegisto-angular-identity-document.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-image-gallery.mjs +320 -0
- package/fesm2022/trismegisto-angular-image-gallery.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-incident.mjs +735 -0
- package/fesm2022/trismegisto-angular-incident.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-input.mjs +2 -1
- package/fesm2022/trismegisto-angular-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-integration-text.mjs +82 -0
- package/fesm2022/trismegisto-angular-integration-text.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-integration.mjs +423 -0
- package/fesm2022/trismegisto-angular-integration.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-invoice.mjs +381 -0
- package/fesm2022/trismegisto-angular-invoice.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-json-viewer.mjs +388 -0
- package/fesm2022/trismegisto-angular-json-viewer.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-kanban.mjs +49 -9
- package/fesm2022/trismegisto-angular-kanban.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-level-badge.mjs +192 -0
- package/fesm2022/trismegisto-angular-level-badge.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-location-select.mjs +213 -0
- package/fesm2022/trismegisto-angular-location-select.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-log-viewer.mjs +260 -0
- package/fesm2022/trismegisto-angular-log-viewer.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-maintenance-window.mjs +286 -0
- package/fesm2022/trismegisto-angular-maintenance-window.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-member-list.mjs +303 -0
- package/fesm2022/trismegisto-angular-member-list.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-mention-text.mjs +44 -0
- package/fesm2022/trismegisto-angular-mention-text.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-menu.mjs +10 -4
- package/fesm2022/trismegisto-angular-menu.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-message.mjs +132 -7
- package/fesm2022/trismegisto-angular-message.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-metric-explorer.mjs +367 -0
- package/fesm2022/trismegisto-angular-metric-explorer.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-modal.mjs +14 -5
- package/fesm2022/trismegisto-angular-modal.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-monitoring-text.mjs +121 -0
- package/fesm2022/trismegisto-angular-monitoring-text.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-month-picker.mjs +232 -0
- package/fesm2022/trismegisto-angular-month-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-navigation-menu.mjs +68 -9
- package/fesm2022/trismegisto-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-number-field.mjs +275 -0
- package/fesm2022/trismegisto-angular-number-field.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-observability-text.mjs +244 -0
- package/fesm2022/trismegisto-angular-observability-text.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-order.mjs +443 -0
- package/fesm2022/trismegisto-angular-order.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-org-chart.mjs +678 -0
- package/fesm2022/trismegisto-angular-org-chart.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-password-strength.mjs +204 -0
- package/fesm2022/trismegisto-angular-password-strength.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-payment-fields.mjs +818 -0
- package/fesm2022/trismegisto-angular-payment-fields.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-payment-form.mjs +405 -0
- package/fesm2022/trismegisto-angular-payment-form.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-payment-method.mjs +331 -0
- package/fesm2022/trismegisto-angular-payment-method.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-pdf-viewer.mjs +113 -0
- package/fesm2022/trismegisto-angular-pdf-viewer.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-permission-matrix.mjs +266 -0
- package/fesm2022/trismegisto-angular-permission-matrix.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-pipes.mjs +171 -2
- package/fesm2022/trismegisto-angular-pipes.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-popconfirm.mjs +239 -0
- package/fesm2022/trismegisto-angular-popconfirm.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-popover.mjs +6 -2
- package/fesm2022/trismegisto-angular-popover.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-price.mjs +276 -0
- package/fesm2022/trismegisto-angular-price.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-product.mjs +800 -0
- package/fesm2022/trismegisto-angular-product.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-progress.mjs +119 -4
- package/fesm2022/trismegisto-angular-progress.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-rating.mjs +166 -0
- package/fesm2022/trismegisto-angular-rating.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-reason-dialog.mjs +137 -0
- package/fesm2022/trismegisto-angular-reason-dialog.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-recurrence-editor.mjs +429 -0
- package/fesm2022/trismegisto-angular-recurrence-editor.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-release-timeline.mjs +175 -0
- package/fesm2022/trismegisto-angular-release-timeline.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-report-history.mjs +251 -0
- package/fesm2022/trismegisto-angular-report-history.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-report-schedule.mjs +240 -0
- package/fesm2022/trismegisto-angular-report-schedule.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-resource-calendar.mjs +172 -0
- package/fesm2022/trismegisto-angular-resource-calendar.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-resource-usage.mjs +208 -0
- package/fesm2022/trismegisto-angular-resource-usage.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-return-request.mjs +316 -0
- package/fesm2022/trismegisto-angular-return-request.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-rich-text.mjs +1 -1
- package/fesm2022/trismegisto-angular-rich-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-risk-register.mjs +342 -0
- package/fesm2022/trismegisto-angular-risk-register.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-save-status.mjs +166 -0
- package/fesm2022/trismegisto-angular-save-status.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-service-map.mjs +471 -0
- package/fesm2022/trismegisto-angular-service-map.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-service-status.mjs +278 -0
- package/fesm2022/trismegisto-angular-service-status.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-shipping.mjs +410 -0
- package/fesm2022/trismegisto-angular-shipping.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-sidebar.mjs +3 -0
- package/fesm2022/trismegisto-angular-sidebar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-skip-link.mjs +74 -0
- package/fesm2022/trismegisto-angular-skip-link.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-sla-summary.mjs +349 -0
- package/fesm2022/trismegisto-angular-sla-summary.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-slot-picker.mjs +229 -0
- package/fesm2022/trismegisto-angular-slot-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-split-button.mjs +190 -0
- package/fesm2022/trismegisto-angular-split-button.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-status-badge.mjs +80 -0
- package/fesm2022/trismegisto-angular-status-badge.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-status-select.mjs +156 -0
- package/fesm2022/trismegisto-angular-status-select.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-storage-usage.mjs +136 -0
- package/fesm2022/trismegisto-angular-storage-usage.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-swimlane-board.mjs +237 -0
- package/fesm2022/trismegisto-angular-swimlane-board.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-sync-status.mjs +269 -0
- package/fesm2022/trismegisto-angular-sync-status.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-tag-input.mjs +345 -0
- package/fesm2022/trismegisto-angular-tag-input.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-task-card.mjs +315 -0
- package/fesm2022/trismegisto-angular-task-card.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-task-detail.mjs +737 -0
- package/fesm2022/trismegisto-angular-task-detail.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-textarea.mjs +129 -8
- package/fesm2022/trismegisto-angular-textarea.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-time-range.mjs +201 -0
- package/fesm2022/trismegisto-angular-time-range.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-tour.mjs +385 -0
- package/fesm2022/trismegisto-angular-tour.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-trace-waterfall.mjs +511 -0
- package/fesm2022/trismegisto-angular-trace-waterfall.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-transaction.mjs +616 -0
- package/fesm2022/trismegisto-angular-transaction.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-tree-select.mjs +444 -0
- package/fesm2022/trismegisto-angular-tree-select.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-tree.mjs +1 -1
- package/fesm2022/trismegisto-angular-tree.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-unsaved-changes.mjs +147 -0
- package/fesm2022/trismegisto-angular-unsaved-changes.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-uptime-bar.mjs +271 -0
- package/fesm2022/trismegisto-angular-uptime-bar.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-user-card.mjs +298 -0
- package/fesm2022/trismegisto-angular-user-card.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-vehicle-plate.mjs +245 -0
- package/fesm2022/trismegisto-angular-vehicle-plate.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-webhook.mjs +358 -0
- package/fesm2022/trismegisto-angular-webhook.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-wizard.mjs +2 -2
- package/fesm2022/trismegisto-angular-wizard.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workflow-diagram.mjs +441 -0
- package/fesm2022/trismegisto-angular-workflow-diagram.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-workflow-i18n.mjs +890 -0
- package/fesm2022/trismegisto-angular-workflow-i18n.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-workload.mjs +172 -0
- package/fesm2022/trismegisto-angular-workload.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-workspace.mjs +229 -44
- package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
- package/fesm2022/trismegisto-angular.mjs +116 -6
- package/fesm2022/trismegisto-angular.mjs.map +1 -1
- package/package.json +449 -5
- package/types/trismegisto-angular-access-control.d.ts +330 -0
- package/types/trismegisto-angular-access-control.d.ts.map +1 -0
- package/types/trismegisto-angular-account-avatar.d.ts +18 -1
- package/types/trismegisto-angular-account-avatar.d.ts.map +1 -1
- package/types/trismegisto-angular-account-closure.d.ts +85 -0
- package/types/trismegisto-angular-account-closure.d.ts.map +1 -0
- package/types/trismegisto-angular-account-forms.d.ts +381 -0
- package/types/trismegisto-angular-account-forms.d.ts.map +1 -0
- package/types/trismegisto-angular-account-switcher.d.ts +60 -0
- package/types/trismegisto-angular-account-switcher.d.ts.map +1 -0
- package/types/trismegisto-angular-address.d.ts +267 -0
- package/types/trismegisto-angular-address.d.ts.map +1 -0
- package/types/trismegisto-angular-alert-history.d.ts +77 -0
- package/types/trismegisto-angular-alert-history.d.ts.map +1 -0
- package/types/trismegisto-angular-alert-rule-editor.d.ts +123 -0
- package/types/trismegisto-angular-alert-rule-editor.d.ts.map +1 -0
- package/types/trismegisto-angular-anchor-nav.d.ts +78 -0
- package/types/trismegisto-angular-anchor-nav.d.ts.map +1 -0
- package/types/trismegisto-angular-announcer.d.ts +49 -0
- package/types/trismegisto-angular-announcer.d.ts.map +1 -0
- package/types/trismegisto-angular-api-exchange.d.ts +155 -0
- package/types/trismegisto-angular-api-exchange.d.ts.map +1 -0
- package/types/trismegisto-angular-appointment-details.d.ts +123 -0
- package/types/trismegisto-angular-appointment-details.d.ts.map +1 -0
- package/types/trismegisto-angular-approval.d.ts +109 -0
- package/types/trismegisto-angular-approval.d.ts.map +1 -0
- package/types/trismegisto-angular-assignee.d.ts +120 -0
- package/types/trismegisto-angular-assignee.d.ts.map +1 -0
- package/types/trismegisto-angular-availability-editor.d.ts +100 -0
- package/types/trismegisto-angular-availability-editor.d.ts.map +1 -0
- package/types/trismegisto-angular-backlog.d.ts +98 -0
- package/types/trismegisto-angular-backlog.d.ts.map +1 -0
- package/types/trismegisto-angular-billing.d.ts +851 -0
- package/types/trismegisto-angular-billing.d.ts.map +1 -0
- package/types/trismegisto-angular-bottom-navigation.d.ts +83 -0
- package/types/trismegisto-angular-bottom-navigation.d.ts.map +1 -0
- package/types/trismegisto-angular-bottom-sheet.d.ts +121 -0
- package/types/trismegisto-angular-bottom-sheet.d.ts.map +1 -0
- package/types/trismegisto-angular-cart.d.ts +267 -0
- package/types/trismegisto-angular-cart.d.ts.map +1 -0
- package/types/trismegisto-angular-cascader.d.ts +133 -0
- package/types/trismegisto-angular-cascader.d.ts.map +1 -0
- package/types/trismegisto-angular-change-history.d.ts +58 -0
- package/types/trismegisto-angular-change-history.d.ts.map +1 -0
- package/types/trismegisto-angular-color-picker.d.ts +73 -0
- package/types/trismegisto-angular-color-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-combobox-multi.d.ts +3 -1
- package/types/trismegisto-angular-combobox-multi.d.ts.map +1 -1
- package/types/trismegisto-angular-commerce-format.d.ts +43 -0
- package/types/trismegisto-angular-commerce-format.d.ts.map +1 -0
- package/types/trismegisto-angular-connection-wizard.d.ts +110 -0
- package/types/trismegisto-angular-connection-wizard.d.ts.map +1 -0
- package/types/trismegisto-angular-consent.d.ts +142 -0
- package/types/trismegisto-angular-consent.d.ts.map +1 -0
- package/types/trismegisto-angular-credentials-form.d.ts +242 -0
- package/types/trismegisto-angular-credentials-form.d.ts.map +1 -0
- package/types/trismegisto-angular-data-grid.d.ts +382 -48
- package/types/trismegisto-angular-data-grid.d.ts.map +1 -1
- package/types/trismegisto-angular-data-source-picker.d.ts +73 -0
- package/types/trismegisto-angular-data-source-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-date-picker.d.ts +75 -4
- package/types/trismegisto-angular-date-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-datetime-picker.d.ts +89 -0
- package/types/trismegisto-angular-datetime-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-deadline.d.ts +143 -0
- package/types/trismegisto-angular-deadline.d.ts.map +1 -0
- package/types/trismegisto-angular-deploy-pipeline.d.ts +100 -0
- package/types/trismegisto-angular-deploy-pipeline.d.ts.map +1 -0
- package/types/trismegisto-angular-drawer.d.ts +6 -3
- package/types/trismegisto-angular-drawer.d.ts.map +1 -1
- package/types/trismegisto-angular-endpoint-card.d.ts +113 -0
- package/types/trismegisto-angular-endpoint-card.d.ts.map +1 -0
- package/types/trismegisto-angular-entity-picker.d.ts +88 -0
- package/types/trismegisto-angular-entity-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-environment-picker.d.ts +72 -0
- package/types/trismegisto-angular-environment-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-event-calendar.d.ts +52 -6
- package/types/trismegisto-angular-event-calendar.d.ts.map +1 -1
- package/types/trismegisto-angular-execution-status.d.ts +76 -0
- package/types/trismegisto-angular-execution-status.d.ts.map +1 -0
- package/types/trismegisto-angular-feature-flags.d.ts +97 -0
- package/types/trismegisto-angular-feature-flags.d.ts.map +1 -0
- package/types/trismegisto-angular-field-mapping.d.ts +118 -0
- package/types/trismegisto-angular-field-mapping.d.ts.map +1 -0
- package/types/trismegisto-angular-file-list.d.ts +136 -0
- package/types/trismegisto-angular-file-list.d.ts.map +1 -0
- package/types/trismegisto-angular-file-permissions.d.ts +171 -0
- package/types/trismegisto-angular-file-permissions.d.ts.map +1 -0
- package/types/trismegisto-angular-file-versions.d.ts +93 -0
- package/types/trismegisto-angular-file-versions.d.ts.map +1 -0
- package/types/trismegisto-angular-finance.d.ts +623 -0
- package/types/trismegisto-angular-finance.d.ts.map +1 -0
- package/types/trismegisto-angular-form-error-summary.d.ts +98 -0
- package/types/trismegisto-angular-form-error-summary.d.ts.map +1 -0
- package/types/trismegisto-angular-forms.d.ts +14 -1
- package/types/trismegisto-angular-forms.d.ts.map +1 -1
- package/types/trismegisto-angular-gantt.d.ts +128 -0
- package/types/trismegisto-angular-gantt.d.ts.map +1 -0
- package/types/trismegisto-angular-header.d.ts +5 -1
- package/types/trismegisto-angular-header.d.ts.map +1 -1
- package/types/trismegisto-angular-health-status.d.ts +71 -0
- package/types/trismegisto-angular-health-status.d.ts.map +1 -0
- package/types/trismegisto-angular-icon.d.ts +96 -1
- package/types/trismegisto-angular-icon.d.ts.map +1 -1
- package/types/trismegisto-angular-identity-document.d.ts +112 -0
- package/types/trismegisto-angular-identity-document.d.ts.map +1 -0
- package/types/trismegisto-angular-image-gallery.d.ts +129 -0
- package/types/trismegisto-angular-image-gallery.d.ts.map +1 -0
- package/types/trismegisto-angular-incident.d.ts +212 -0
- package/types/trismegisto-angular-incident.d.ts.map +1 -0
- package/types/trismegisto-angular-input.d.ts.map +1 -1
- package/types/trismegisto-angular-integration-text.d.ts +42 -0
- package/types/trismegisto-angular-integration-text.d.ts.map +1 -0
- package/types/trismegisto-angular-integration.d.ts +283 -0
- package/types/trismegisto-angular-integration.d.ts.map +1 -0
- package/types/trismegisto-angular-invoice.d.ts +221 -0
- package/types/trismegisto-angular-invoice.d.ts.map +1 -0
- package/types/trismegisto-angular-json-viewer.d.ts +117 -0
- package/types/trismegisto-angular-json-viewer.d.ts.map +1 -0
- package/types/trismegisto-angular-kanban.d.ts +38 -3
- package/types/trismegisto-angular-kanban.d.ts.map +1 -1
- package/types/trismegisto-angular-level-badge.d.ts +87 -0
- package/types/trismegisto-angular-level-badge.d.ts.map +1 -0
- package/types/trismegisto-angular-location-select.d.ts +80 -0
- package/types/trismegisto-angular-location-select.d.ts.map +1 -0
- package/types/trismegisto-angular-log-viewer.d.ts +125 -0
- package/types/trismegisto-angular-log-viewer.d.ts.map +1 -0
- package/types/trismegisto-angular-maintenance-window.d.ts +89 -0
- package/types/trismegisto-angular-maintenance-window.d.ts.map +1 -0
- package/types/trismegisto-angular-member-list.d.ts +80 -0
- package/types/trismegisto-angular-member-list.d.ts.map +1 -0
- package/types/trismegisto-angular-mention-text.d.ts +28 -0
- package/types/trismegisto-angular-mention-text.d.ts.map +1 -0
- package/types/trismegisto-angular-menu.d.ts +4 -1
- package/types/trismegisto-angular-menu.d.ts.map +1 -1
- package/types/trismegisto-angular-message.d.ts +31 -2
- package/types/trismegisto-angular-message.d.ts.map +1 -1
- package/types/trismegisto-angular-metric-explorer.d.ts +117 -0
- package/types/trismegisto-angular-metric-explorer.d.ts.map +1 -0
- package/types/trismegisto-angular-modal.d.ts +1 -0
- package/types/trismegisto-angular-modal.d.ts.map +1 -1
- package/types/trismegisto-angular-monitoring-text.d.ts +57 -0
- package/types/trismegisto-angular-monitoring-text.d.ts.map +1 -0
- package/types/trismegisto-angular-month-picker.d.ts +104 -0
- package/types/trismegisto-angular-month-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-navigation-menu.d.ts +35 -2
- package/types/trismegisto-angular-navigation-menu.d.ts.map +1 -1
- package/types/trismegisto-angular-number-field.d.ts +148 -0
- package/types/trismegisto-angular-number-field.d.ts.map +1 -0
- package/types/trismegisto-angular-observability-text.d.ts +85 -0
- package/types/trismegisto-angular-observability-text.d.ts.map +1 -0
- package/types/trismegisto-angular-order.d.ts +268 -0
- package/types/trismegisto-angular-order.d.ts.map +1 -0
- package/types/trismegisto-angular-org-chart.d.ts +145 -0
- package/types/trismegisto-angular-org-chart.d.ts.map +1 -0
- package/types/trismegisto-angular-password-strength.d.ts +74 -0
- package/types/trismegisto-angular-password-strength.d.ts.map +1 -0
- package/types/trismegisto-angular-payment-fields.d.ts +450 -0
- package/types/trismegisto-angular-payment-fields.d.ts.map +1 -0
- package/types/trismegisto-angular-payment-form.d.ts +189 -0
- package/types/trismegisto-angular-payment-form.d.ts.map +1 -0
- package/types/trismegisto-angular-payment-method.d.ts +238 -0
- package/types/trismegisto-angular-payment-method.d.ts.map +1 -0
- package/types/trismegisto-angular-pdf-viewer.d.ts +70 -0
- package/types/trismegisto-angular-pdf-viewer.d.ts.map +1 -0
- package/types/trismegisto-angular-permission-matrix.d.ts +70 -0
- package/types/trismegisto-angular-permission-matrix.d.ts.map +1 -0
- package/types/trismegisto-angular-pipes.d.ts +108 -2
- package/types/trismegisto-angular-pipes.d.ts.map +1 -1
- package/types/trismegisto-angular-popconfirm.d.ts +115 -0
- package/types/trismegisto-angular-popconfirm.d.ts.map +1 -0
- package/types/trismegisto-angular-popover.d.ts +3 -1
- package/types/trismegisto-angular-popover.d.ts.map +1 -1
- package/types/trismegisto-angular-price.d.ts +185 -0
- package/types/trismegisto-angular-price.d.ts.map +1 -0
- package/types/trismegisto-angular-product.d.ts +391 -0
- package/types/trismegisto-angular-product.d.ts.map +1 -0
- package/types/trismegisto-angular-progress.d.ts +20 -3
- package/types/trismegisto-angular-progress.d.ts.map +1 -1
- package/types/trismegisto-angular-rating.d.ts +83 -0
- package/types/trismegisto-angular-rating.d.ts.map +1 -0
- package/types/trismegisto-angular-reason-dialog.d.ts +65 -0
- package/types/trismegisto-angular-reason-dialog.d.ts.map +1 -0
- package/types/trismegisto-angular-recurrence-editor.d.ts +151 -0
- package/types/trismegisto-angular-recurrence-editor.d.ts.map +1 -0
- package/types/trismegisto-angular-release-timeline.d.ts +79 -0
- package/types/trismegisto-angular-release-timeline.d.ts.map +1 -0
- package/types/trismegisto-angular-report-history.d.ts +144 -0
- package/types/trismegisto-angular-report-history.d.ts.map +1 -0
- package/types/trismegisto-angular-report-schedule.d.ts +138 -0
- package/types/trismegisto-angular-report-schedule.d.ts.map +1 -0
- package/types/trismegisto-angular-resource-calendar.d.ts +107 -0
- package/types/trismegisto-angular-resource-calendar.d.ts.map +1 -0
- package/types/trismegisto-angular-resource-usage.d.ts +91 -0
- package/types/trismegisto-angular-resource-usage.d.ts.map +1 -0
- package/types/trismegisto-angular-return-request.d.ts +158 -0
- package/types/trismegisto-angular-return-request.d.ts.map +1 -0
- package/types/trismegisto-angular-risk-register.d.ts +130 -0
- package/types/trismegisto-angular-risk-register.d.ts.map +1 -0
- package/types/trismegisto-angular-save-status.d.ts +67 -0
- package/types/trismegisto-angular-save-status.d.ts.map +1 -0
- package/types/trismegisto-angular-service-map.d.ts +111 -0
- package/types/trismegisto-angular-service-map.d.ts.map +1 -0
- package/types/trismegisto-angular-service-status.d.ts +82 -0
- package/types/trismegisto-angular-service-status.d.ts.map +1 -0
- package/types/trismegisto-angular-shipping.d.ts +221 -0
- package/types/trismegisto-angular-shipping.d.ts.map +1 -0
- package/types/trismegisto-angular-sidebar.d.ts +1 -0
- package/types/trismegisto-angular-sidebar.d.ts.map +1 -1
- package/types/trismegisto-angular-skip-link.d.ts +53 -0
- package/types/trismegisto-angular-skip-link.d.ts.map +1 -0
- package/types/trismegisto-angular-sla-summary.d.ts +104 -0
- package/types/trismegisto-angular-sla-summary.d.ts.map +1 -0
- package/types/trismegisto-angular-slot-picker.d.ts +128 -0
- package/types/trismegisto-angular-slot-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-split-button.d.ts +81 -0
- package/types/trismegisto-angular-split-button.d.ts.map +1 -0
- package/types/trismegisto-angular-status-badge.d.ts +40 -0
- package/types/trismegisto-angular-status-badge.d.ts.map +1 -0
- package/types/trismegisto-angular-status-select.d.ts +76 -0
- package/types/trismegisto-angular-status-select.d.ts.map +1 -0
- package/types/trismegisto-angular-storage-usage.d.ts +82 -0
- package/types/trismegisto-angular-storage-usage.d.ts.map +1 -0
- package/types/trismegisto-angular-swimlane-board.d.ts +114 -0
- package/types/trismegisto-angular-swimlane-board.d.ts.map +1 -0
- package/types/trismegisto-angular-sync-status.d.ts +191 -0
- package/types/trismegisto-angular-sync-status.d.ts.map +1 -0
- package/types/trismegisto-angular-tag-input.d.ts +121 -0
- package/types/trismegisto-angular-tag-input.d.ts.map +1 -0
- package/types/trismegisto-angular-task-card.d.ts +106 -0
- package/types/trismegisto-angular-task-card.d.ts.map +1 -0
- package/types/trismegisto-angular-task-detail.d.ts +248 -0
- package/types/trismegisto-angular-task-detail.d.ts.map +1 -0
- package/types/trismegisto-angular-textarea.d.ts +31 -1
- package/types/trismegisto-angular-textarea.d.ts.map +1 -1
- package/types/trismegisto-angular-time-range.d.ts +92 -0
- package/types/trismegisto-angular-time-range.d.ts.map +1 -0
- package/types/trismegisto-angular-tour.d.ts +116 -0
- package/types/trismegisto-angular-tour.d.ts.map +1 -0
- package/types/trismegisto-angular-trace-waterfall.d.ts +111 -0
- package/types/trismegisto-angular-trace-waterfall.d.ts.map +1 -0
- package/types/trismegisto-angular-transaction.d.ts +542 -0
- package/types/trismegisto-angular-transaction.d.ts.map +1 -0
- package/types/trismegisto-angular-tree-select.d.ts +197 -0
- package/types/trismegisto-angular-tree-select.d.ts.map +1 -0
- package/types/trismegisto-angular-unsaved-changes.d.ts +101 -0
- package/types/trismegisto-angular-unsaved-changes.d.ts.map +1 -0
- package/types/trismegisto-angular-uptime-bar.d.ts +90 -0
- package/types/trismegisto-angular-uptime-bar.d.ts.map +1 -0
- package/types/trismegisto-angular-user-card.d.ts +126 -0
- package/types/trismegisto-angular-user-card.d.ts.map +1 -0
- package/types/trismegisto-angular-vehicle-plate.d.ts +107 -0
- package/types/trismegisto-angular-vehicle-plate.d.ts.map +1 -0
- package/types/trismegisto-angular-webhook.d.ts +244 -0
- package/types/trismegisto-angular-webhook.d.ts.map +1 -0
- package/types/trismegisto-angular-workflow-diagram.d.ts +136 -0
- package/types/trismegisto-angular-workflow-diagram.d.ts.map +1 -0
- package/types/trismegisto-angular-workflow-i18n.d.ts +358 -0
- package/types/trismegisto-angular-workflow-i18n.d.ts.map +1 -0
- package/types/trismegisto-angular-workload.d.ts +64 -0
- package/types/trismegisto-angular-workload.d.ts.map +1 -0
- package/types/trismegisto-angular-workspace.d.ts +79 -7
- package/types/trismegisto-angular-workspace.d.ts.map +1 -1
- package/types/trismegisto-angular.d.ts +119 -9
- package/types/trismegisto-angular.d.ts.map +1 -1
|
@@ -0,0 +1,616 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, computed, ChangeDetectionStrategy, Component, output, signal } from '@angular/core';
|
|
3
|
+
import { TRANSACTION_STATUS_TONES, filterPayments, groupPaymentsByMonth, pluralMessage, sumAmounts, formatMessage, transactionNet, refundableAmount } from '@trismegisto/primitives';
|
|
4
|
+
import { localCatalog, formatLocale, formatDate, formatMoney } from '@trismegisto/angular/commerce-format';
|
|
5
|
+
import { IconButtonComponent } from '@trismegisto/angular/icon-button';
|
|
6
|
+
import { ICON_ARROW_BACK, ICON_RECEIPT_CARD, ICON_REFRESH, useHermesIcons } from '@trismegisto/angular/icon';
|
|
7
|
+
import { InputComponent } from '@trismegisto/angular/input';
|
|
8
|
+
import { PAYMENT_METHOD_MESSAGES, PAYMENT_METHOD_MESSAGES_PT_BR, paymentMethodName, PaymentMethodCardComponent } from '@trismegisto/angular/payment-method';
|
|
9
|
+
import { SelectComponent } from '@trismegisto/angular/select';
|
|
10
|
+
import { TagComponent } from '@trismegisto/angular/tag';
|
|
11
|
+
import { ButtonComponent } from '@trismegisto/angular/button';
|
|
12
|
+
import { CopyButtonComponent } from '@trismegisto/angular/copy-button';
|
|
13
|
+
import { TimelineComponent, TimelineItemComponent } from '@trismegisto/angular/timeline';
|
|
14
|
+
|
|
15
|
+
const TRANSACTION_ICONS = [ICON_ARROW_BACK, ICON_RECEIPT_CARD, ICON_REFRESH];
|
|
16
|
+
|
|
17
|
+
// Textos das peças de `@trismegisto/angular/transaction` em pt-BR, en e es — fora do HERMES_MESSAGES de propósito
|
|
18
|
+
// (o pt-BR do catálogo geral vai embutido em todo app). O componente escolhe pelo idioma ativo
|
|
19
|
+
// (`HermesI18nService.pick`) e o app sobrescreve qualquer texto pelo input `texts`.
|
|
20
|
+
const TRANSACTION_MESSAGES_PT_BR = {
|
|
21
|
+
transactionStatus: {
|
|
22
|
+
pending: 'Pendente',
|
|
23
|
+
authorized: 'Autorizado',
|
|
24
|
+
paid: 'Pago',
|
|
25
|
+
failed: 'Recusado',
|
|
26
|
+
cancelled: 'Cancelado',
|
|
27
|
+
refunded: 'Reembolsado',
|
|
28
|
+
'partially-refunded': 'Reembolso parcial',
|
|
29
|
+
disputed: 'Em disputa',
|
|
30
|
+
expired: 'Expirado',
|
|
31
|
+
},
|
|
32
|
+
transaction: {
|
|
33
|
+
heading: 'Transação',
|
|
34
|
+
amount: 'Valor',
|
|
35
|
+
status: 'Situação',
|
|
36
|
+
date: 'Data',
|
|
37
|
+
method: 'Meio de pagamento',
|
|
38
|
+
fees: 'Tarifas',
|
|
39
|
+
net: 'Valor líquido',
|
|
40
|
+
refunded: 'Reembolsado',
|
|
41
|
+
id: 'Identificador',
|
|
42
|
+
copyId: 'Copiar identificador',
|
|
43
|
+
counterparty: 'Contraparte',
|
|
44
|
+
description: 'Descrição',
|
|
45
|
+
received: 'Recebido',
|
|
46
|
+
sent: 'Enviado',
|
|
47
|
+
refund: 'Reembolsar',
|
|
48
|
+
retry: 'Tentar de novo',
|
|
49
|
+
timeline: 'Histórico da transação',
|
|
50
|
+
},
|
|
51
|
+
history: {
|
|
52
|
+
label: 'Histórico de pagamentos',
|
|
53
|
+
empty: 'Nenhum pagamento encontrado.',
|
|
54
|
+
date: 'Data',
|
|
55
|
+
description: 'Descrição',
|
|
56
|
+
method: 'Meio',
|
|
57
|
+
status: 'Situação',
|
|
58
|
+
amount: 'Valor',
|
|
59
|
+
receipt: 'Recibo de {description}',
|
|
60
|
+
search: 'Buscar pagamentos',
|
|
61
|
+
statusFilter: 'Situação',
|
|
62
|
+
allStatuses: 'Todas',
|
|
63
|
+
monthTotal: 'Total do mês: {amount}',
|
|
64
|
+
results: { one: '{count} pagamento', other: '{count} pagamentos' },
|
|
65
|
+
},
|
|
66
|
+
};
|
|
67
|
+
const TRANSACTION_MESSAGES_EN = {
|
|
68
|
+
transactionStatus: {
|
|
69
|
+
pending: 'Pending',
|
|
70
|
+
authorized: 'Authorized',
|
|
71
|
+
paid: 'Paid',
|
|
72
|
+
failed: 'Declined',
|
|
73
|
+
cancelled: 'Cancelled',
|
|
74
|
+
refunded: 'Refunded',
|
|
75
|
+
'partially-refunded': 'Partially refunded',
|
|
76
|
+
disputed: 'Disputed',
|
|
77
|
+
expired: 'Expired',
|
|
78
|
+
},
|
|
79
|
+
transaction: {
|
|
80
|
+
heading: 'Transaction',
|
|
81
|
+
amount: 'Amount',
|
|
82
|
+
status: 'Status',
|
|
83
|
+
date: 'Date',
|
|
84
|
+
method: 'Payment method',
|
|
85
|
+
fees: 'Fees',
|
|
86
|
+
net: 'Net amount',
|
|
87
|
+
refunded: 'Refunded',
|
|
88
|
+
id: 'ID',
|
|
89
|
+
copyId: 'Copy ID',
|
|
90
|
+
counterparty: 'Counterparty',
|
|
91
|
+
description: 'Description',
|
|
92
|
+
received: 'Received',
|
|
93
|
+
sent: 'Sent',
|
|
94
|
+
refund: 'Refund',
|
|
95
|
+
retry: 'Try again',
|
|
96
|
+
timeline: 'Transaction history',
|
|
97
|
+
},
|
|
98
|
+
history: {
|
|
99
|
+
label: 'Payment history',
|
|
100
|
+
empty: 'No payments found.',
|
|
101
|
+
date: 'Date',
|
|
102
|
+
description: 'Description',
|
|
103
|
+
method: 'Method',
|
|
104
|
+
status: 'Status',
|
|
105
|
+
amount: 'Amount',
|
|
106
|
+
receipt: 'Receipt for {description}',
|
|
107
|
+
search: 'Search payments',
|
|
108
|
+
statusFilter: 'Status',
|
|
109
|
+
allStatuses: 'All',
|
|
110
|
+
monthTotal: 'Month total: {amount}',
|
|
111
|
+
results: { one: '{count} payment', other: '{count} payments' },
|
|
112
|
+
},
|
|
113
|
+
};
|
|
114
|
+
const TRANSACTION_MESSAGES_ES = {
|
|
115
|
+
transactionStatus: {
|
|
116
|
+
pending: 'Pendiente',
|
|
117
|
+
authorized: 'Autorizado',
|
|
118
|
+
paid: 'Pagado',
|
|
119
|
+
failed: 'Rechazado',
|
|
120
|
+
cancelled: 'Cancelado',
|
|
121
|
+
refunded: 'Reembolsado',
|
|
122
|
+
'partially-refunded': 'Reembolso parcial',
|
|
123
|
+
disputed: 'En disputa',
|
|
124
|
+
expired: 'Vencido',
|
|
125
|
+
},
|
|
126
|
+
transaction: {
|
|
127
|
+
heading: 'Transacción',
|
|
128
|
+
amount: 'Importe',
|
|
129
|
+
status: 'Estado',
|
|
130
|
+
date: 'Fecha',
|
|
131
|
+
method: 'Medio de pago',
|
|
132
|
+
fees: 'Comisiones',
|
|
133
|
+
net: 'Importe neto',
|
|
134
|
+
refunded: 'Reembolsado',
|
|
135
|
+
id: 'Identificador',
|
|
136
|
+
copyId: 'Copiar identificador',
|
|
137
|
+
counterparty: 'Contraparte',
|
|
138
|
+
description: 'Descripción',
|
|
139
|
+
received: 'Recibido',
|
|
140
|
+
sent: 'Enviado',
|
|
141
|
+
refund: 'Reembolsar',
|
|
142
|
+
retry: 'Intentar de nuevo',
|
|
143
|
+
timeline: 'Historial de la transacción',
|
|
144
|
+
},
|
|
145
|
+
history: {
|
|
146
|
+
label: 'Historial de pagos',
|
|
147
|
+
empty: 'No se encontraron pagos.',
|
|
148
|
+
date: 'Fecha',
|
|
149
|
+
description: 'Descripción',
|
|
150
|
+
method: 'Medio',
|
|
151
|
+
status: 'Estado',
|
|
152
|
+
amount: 'Importe',
|
|
153
|
+
receipt: 'Recibo de {description}',
|
|
154
|
+
search: 'Buscar pagos',
|
|
155
|
+
statusFilter: 'Estado',
|
|
156
|
+
allStatuses: 'Todos',
|
|
157
|
+
monthTotal: 'Total del mes: {amount}',
|
|
158
|
+
results: { one: '{count} pago', other: '{count} pagos' },
|
|
159
|
+
},
|
|
160
|
+
};
|
|
161
|
+
const TRANSACTION_MESSAGES = { 'pt-BR': TRANSACTION_MESSAGES_PT_BR, en: TRANSACTION_MESSAGES_EN, es: TRANSACTION_MESSAGES_ES };
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Situação de uma transação de pagamento (`hm-transaction-status`): pendente, autorizado, pago, recusado,
|
|
165
|
+
* cancelado, reembolsado, reembolso parcial, em disputa ou expirado, num `hm-tag` com o tom certo.
|
|
166
|
+
*
|
|
167
|
+
* ```html
|
|
168
|
+
* <hm-transaction-status [status]="cobranca.situacao" />
|
|
169
|
+
* ```
|
|
170
|
+
*/
|
|
171
|
+
class TransactionStatusComponent {
|
|
172
|
+
#icons = useHermesIcons(TRANSACTION_ICONS);
|
|
173
|
+
status = input.required(...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
174
|
+
compact = input(false, { ...(ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
175
|
+
/** Sobrescreve textos do catálogo da peça (`TRANSACTION_MESSAGES_PT_BR`). */
|
|
176
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
177
|
+
#text = localCatalog(TRANSACTION_MESSAGES, TRANSACTION_MESSAGES_PT_BR, () => this.texts());
|
|
178
|
+
label = computed(() => this.#text().transactionStatus[this.status()] ?? this.status(), ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
179
|
+
tone = computed(() => TRANSACTION_STATUS_TONES[this.status()] ?? 'neutral', ...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
|
|
180
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TransactionStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
181
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: TransactionStatusComponent, isStandalone: true, selector: "hm-transaction-status", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, 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: { classAttribute: "hm-transaction-status" }, ngImport: i0, template: `<hm-tag [name]="label()" [color]="tone()" [compact]="compact()" />`, isInline: true, dependencies: [{ kind: "component", type: TagComponent, selector: "hm-tag", inputs: ["name", "color", "compact"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
182
|
+
}
|
|
183
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TransactionStatusComponent, decorators: [{
|
|
184
|
+
type: Component,
|
|
185
|
+
args: [{
|
|
186
|
+
selector: 'hm-transaction-status',
|
|
187
|
+
imports: [TagComponent],
|
|
188
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
189
|
+
host: { class: 'hm-transaction-status' },
|
|
190
|
+
template: `<hm-tag [name]="label()" [color]="tone()" [compact]="compact()" />`,
|
|
191
|
+
}]
|
|
192
|
+
}], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: true }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
193
|
+
|
|
194
|
+
const STATUSES = ['paid', 'pending', 'authorized', 'failed', 'refunded', 'partially-refunded', 'disputed', 'cancelled', 'expired'];
|
|
195
|
+
/**
|
|
196
|
+
* Histórico de pagamentos (`hm-payment-history`): uma tabela por mês (mais recente primeiro) com data,
|
|
197
|
+
* descrição, meio, situação e valor, o total do mês, busca por texto e filtro por situação, e o botão de
|
|
198
|
+
* recibo por linha.
|
|
199
|
+
*
|
|
200
|
+
* ```html
|
|
201
|
+
* <hm-payment-history [payments]="pagamentos()" receipts (receipt)="baixarRecibo($event)" (view)="abrir($event)" />
|
|
202
|
+
* ```
|
|
203
|
+
*
|
|
204
|
+
* - Cada mês é uma `<table>` com legenda (mês + total); valores de saída aparecem com sinal de menos.
|
|
205
|
+
* - Busca e filtro rodam aqui (`filterPayments`), sobre o que foi recebido; paginar uma lista enorme é do app.
|
|
206
|
+
* - O total do mês soma só o que foi pago (situações `paid` e `partially-refunded`).
|
|
207
|
+
*/
|
|
208
|
+
class PaymentHistoryComponent {
|
|
209
|
+
#icons = useHermesIcons(TRANSACTION_ICONS);
|
|
210
|
+
payments = input([], ...(ngDevMode ? [{ debugName: "payments" }] : /* istanbul ignore next */ []));
|
|
211
|
+
currency = input('BRL', ...(ngDevMode ? [{ debugName: "currency" }] : /* istanbul ignore next */ []));
|
|
212
|
+
showFilters = input(true, { ...(ngDevMode ? { debugName: "showFilters" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
213
|
+
/** Botão de recibo nas linhas pagas. */
|
|
214
|
+
receipts = input(false, { ...(ngDevMode ? { debugName: "receipts" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
215
|
+
/** A descrição vira botão que emite `view`. */
|
|
216
|
+
selectable = input(false, { ...(ngDevMode ? { debugName: "selectable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
217
|
+
emptyText = input('', ...(ngDevMode ? [{ debugName: "emptyText" }] : /* istanbul ignore next */ []));
|
|
218
|
+
receipt = output();
|
|
219
|
+
view = output();
|
|
220
|
+
/** Sobrescreve textos do catálogo da peça (`TRANSACTION_MESSAGES_PT_BR`). */
|
|
221
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
222
|
+
#text = localCatalog(TRANSACTION_MESSAGES, TRANSACTION_MESSAGES_PT_BR, () => this.texts());
|
|
223
|
+
#methods = localCatalog(PAYMENT_METHOD_MESSAGES, PAYMENT_METHOD_MESSAGES_PT_BR, () => null);
|
|
224
|
+
#locale = formatLocale();
|
|
225
|
+
texts_ = this.#text;
|
|
226
|
+
text = computed(() => this.#text().history, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
227
|
+
term = signal('', ...(ngDevMode ? [{ debugName: "term" }] : /* istanbul ignore next */ []));
|
|
228
|
+
status = signal('', ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
229
|
+
/** Só as situações presentes nos dados. */
|
|
230
|
+
statuses = computed(() => STATUSES.filter((status) => this.payments().some((record) => record.status === status)), ...(ngDevMode ? [{ debugName: "statuses" }] : /* istanbul ignore next */ []));
|
|
231
|
+
#filtered = computed(() => filterPayments(this.payments(), this.status() ? [this.status()] : [], this.term()), ...(ngDevMode ? [{ debugName: "#filtered" }] : /* istanbul ignore next */ []));
|
|
232
|
+
groups = computed(() => groupPaymentsByMonth(this.#filtered()), ...(ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []));
|
|
233
|
+
countText = computed(() => pluralMessage(this.text().results, this.#filtered().length, this.#locale()), ...(ngDevMode ? [{ debugName: "countText" }] : /* istanbul ignore next */ []));
|
|
234
|
+
monthName(month) {
|
|
235
|
+
return formatDate(month, this.#locale(), { month: 'long', year: 'numeric' });
|
|
236
|
+
}
|
|
237
|
+
monthTotal(items) {
|
|
238
|
+
const paid = items.filter((record) => record.status === 'paid' || record.status === 'partially-refunded');
|
|
239
|
+
const total = sumAmounts(paid.map((record) => (record.direction === 'in' ? record.amount : -record.amount)), this.currency());
|
|
240
|
+
return formatMessage(this.text().monthTotal, { amount: formatMoney(total, this.currency(), this.#locale()) });
|
|
241
|
+
}
|
|
242
|
+
dayText(record) {
|
|
243
|
+
return formatDate(record.date, this.#locale(), { day: '2-digit', month: 'short' });
|
|
244
|
+
}
|
|
245
|
+
methodText(record) {
|
|
246
|
+
return record.method ? paymentMethodName(record.method, this.#methods()) : '';
|
|
247
|
+
}
|
|
248
|
+
amountText(record) {
|
|
249
|
+
const value = record.direction === 'in' ? record.amount : -record.amount;
|
|
250
|
+
return formatMoney(value, record.currency ?? this.currency(), this.#locale());
|
|
251
|
+
}
|
|
252
|
+
receiptLabel(record) {
|
|
253
|
+
return formatMessage(this.text().receipt, { description: record.description || record.id });
|
|
254
|
+
}
|
|
255
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: PaymentHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
256
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: PaymentHistoryComponent, isStandalone: true, selector: "hm-payment-history", inputs: { payments: { classPropertyName: "payments", publicName: "payments", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, showFilters: { classPropertyName: "showFilters", publicName: "showFilters", isSignal: true, isRequired: false, transformFunction: null }, receipts: { classPropertyName: "receipts", publicName: "receipts", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { receipt: "receipt", view: "view" }, host: { classAttribute: "hm-payment-history" }, ngImport: i0, template: `
|
|
257
|
+
@if (showFilters()) {
|
|
258
|
+
<div class="hm-payment-history__filters" role="search">
|
|
259
|
+
<hm-input type="search" [label]="text().search" labelHidden [placeholder]="text().search" [value]="term()" (valueChange)="term.set($any($event) ?? '')" />
|
|
260
|
+
<hm-select [label]="text().statusFilter" [value]="status()" (valueChange)="status.set($any($event) ?? '')">
|
|
261
|
+
<option value="">{{ text().allStatuses }}</option>
|
|
262
|
+
@for (option of statuses(); track option) {
|
|
263
|
+
<option [value]="option">{{ texts_().transactionStatus[option] }}</option>
|
|
264
|
+
}
|
|
265
|
+
</hm-select>
|
|
266
|
+
<p class="hm-payment-history__count" aria-live="polite">{{ countText() }}</p>
|
|
267
|
+
</div>
|
|
268
|
+
}
|
|
269
|
+
@for (group of groups(); track group.key) {
|
|
270
|
+
<table class="hm-payment-history__table">
|
|
271
|
+
<caption class="hm-payment-history__caption">
|
|
272
|
+
<span class="hm-payment-history__month">{{ monthName(group.month) }}</span>&ngsp;
|
|
273
|
+
<span class="hm-payment-history__total">{{ monthTotal(group.items) }}</span>
|
|
274
|
+
</caption>
|
|
275
|
+
<thead>
|
|
276
|
+
<tr>
|
|
277
|
+
<th scope="col">{{ text().date }}</th>
|
|
278
|
+
<th scope="col">{{ text().description }}</th>
|
|
279
|
+
<th scope="col" class="hm-payment-history__col-method">{{ text().method }}</th>
|
|
280
|
+
<th scope="col">{{ text().status }}</th>
|
|
281
|
+
<th scope="col" class="hm-payment-history__col-amount">{{ text().amount }}</th>
|
|
282
|
+
@if (receipts()) {
|
|
283
|
+
<td></td>
|
|
284
|
+
}
|
|
285
|
+
</tr>
|
|
286
|
+
</thead>
|
|
287
|
+
<tbody>
|
|
288
|
+
@for (record of group.items; track record.id) {
|
|
289
|
+
<tr>
|
|
290
|
+
<td class="hm-payment-history__date">{{ dayText(record) }}</td>
|
|
291
|
+
<td>
|
|
292
|
+
@if (selectable()) {
|
|
293
|
+
<button type="button" class="hm-payment-history__link" (click)="view.emit(record)">{{ record.description || record.id }}</button>
|
|
294
|
+
} @else {
|
|
295
|
+
{{ record.description || record.id }}
|
|
296
|
+
}
|
|
297
|
+
</td>
|
|
298
|
+
<td class="hm-payment-history__col-method">{{ methodText(record) }}</td>
|
|
299
|
+
<td><hm-transaction-status [status]="record.status" [texts]="texts()" /></td>
|
|
300
|
+
<td class="hm-payment-history__col-amount" [class.hm-payment-history__amount--in]="record.direction === 'in'">{{ amountText(record) }}</td>
|
|
301
|
+
@if (receipts()) {
|
|
302
|
+
<td class="hm-payment-history__action">
|
|
303
|
+
@if (record.status === 'paid' || record.status === 'partially-refunded' || record.status === 'refunded') {
|
|
304
|
+
<hm-icon-button icon="receipt-card" emphasis="subtle" size="small" [label]="receiptLabel(record)" (clicked)="receipt.emit(record)" />
|
|
305
|
+
}
|
|
306
|
+
</td>
|
|
307
|
+
}
|
|
308
|
+
</tr>
|
|
309
|
+
}
|
|
310
|
+
</tbody>
|
|
311
|
+
</table>
|
|
312
|
+
} @empty {
|
|
313
|
+
<p class="hm-payment-history__empty">{{ emptyText() || text().empty }}</p>
|
|
314
|
+
}
|
|
315
|
+
`, isInline: true, dependencies: [{ 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: 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: SelectComponent, selector: "hm-select", inputs: ["value", "label", "labelHidden", "hint"], outputs: ["valueChange"] }, { kind: "component", type: TransactionStatusComponent, selector: "hm-transaction-status", inputs: ["status", "compact", "texts"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
316
|
+
}
|
|
317
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: PaymentHistoryComponent, decorators: [{
|
|
318
|
+
type: Component,
|
|
319
|
+
args: [{
|
|
320
|
+
selector: 'hm-payment-history',
|
|
321
|
+
imports: [IconButtonComponent, InputComponent, SelectComponent, TransactionStatusComponent],
|
|
322
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
323
|
+
host: { class: 'hm-payment-history' },
|
|
324
|
+
template: `
|
|
325
|
+
@if (showFilters()) {
|
|
326
|
+
<div class="hm-payment-history__filters" role="search">
|
|
327
|
+
<hm-input type="search" [label]="text().search" labelHidden [placeholder]="text().search" [value]="term()" (valueChange)="term.set($any($event) ?? '')" />
|
|
328
|
+
<hm-select [label]="text().statusFilter" [value]="status()" (valueChange)="status.set($any($event) ?? '')">
|
|
329
|
+
<option value="">{{ text().allStatuses }}</option>
|
|
330
|
+
@for (option of statuses(); track option) {
|
|
331
|
+
<option [value]="option">{{ texts_().transactionStatus[option] }}</option>
|
|
332
|
+
}
|
|
333
|
+
</hm-select>
|
|
334
|
+
<p class="hm-payment-history__count" aria-live="polite">{{ countText() }}</p>
|
|
335
|
+
</div>
|
|
336
|
+
}
|
|
337
|
+
@for (group of groups(); track group.key) {
|
|
338
|
+
<table class="hm-payment-history__table">
|
|
339
|
+
<caption class="hm-payment-history__caption">
|
|
340
|
+
<span class="hm-payment-history__month">{{ monthName(group.month) }}</span>&ngsp;
|
|
341
|
+
<span class="hm-payment-history__total">{{ monthTotal(group.items) }}</span>
|
|
342
|
+
</caption>
|
|
343
|
+
<thead>
|
|
344
|
+
<tr>
|
|
345
|
+
<th scope="col">{{ text().date }}</th>
|
|
346
|
+
<th scope="col">{{ text().description }}</th>
|
|
347
|
+
<th scope="col" class="hm-payment-history__col-method">{{ text().method }}</th>
|
|
348
|
+
<th scope="col">{{ text().status }}</th>
|
|
349
|
+
<th scope="col" class="hm-payment-history__col-amount">{{ text().amount }}</th>
|
|
350
|
+
@if (receipts()) {
|
|
351
|
+
<td></td>
|
|
352
|
+
}
|
|
353
|
+
</tr>
|
|
354
|
+
</thead>
|
|
355
|
+
<tbody>
|
|
356
|
+
@for (record of group.items; track record.id) {
|
|
357
|
+
<tr>
|
|
358
|
+
<td class="hm-payment-history__date">{{ dayText(record) }}</td>
|
|
359
|
+
<td>
|
|
360
|
+
@if (selectable()) {
|
|
361
|
+
<button type="button" class="hm-payment-history__link" (click)="view.emit(record)">{{ record.description || record.id }}</button>
|
|
362
|
+
} @else {
|
|
363
|
+
{{ record.description || record.id }}
|
|
364
|
+
}
|
|
365
|
+
</td>
|
|
366
|
+
<td class="hm-payment-history__col-method">{{ methodText(record) }}</td>
|
|
367
|
+
<td><hm-transaction-status [status]="record.status" [texts]="texts()" /></td>
|
|
368
|
+
<td class="hm-payment-history__col-amount" [class.hm-payment-history__amount--in]="record.direction === 'in'">{{ amountText(record) }}</td>
|
|
369
|
+
@if (receipts()) {
|
|
370
|
+
<td class="hm-payment-history__action">
|
|
371
|
+
@if (record.status === 'paid' || record.status === 'partially-refunded' || record.status === 'refunded') {
|
|
372
|
+
<hm-icon-button icon="receipt-card" emphasis="subtle" size="small" [label]="receiptLabel(record)" (clicked)="receipt.emit(record)" />
|
|
373
|
+
}
|
|
374
|
+
</td>
|
|
375
|
+
}
|
|
376
|
+
</tr>
|
|
377
|
+
}
|
|
378
|
+
</tbody>
|
|
379
|
+
</table>
|
|
380
|
+
} @empty {
|
|
381
|
+
<p class="hm-payment-history__empty">{{ emptyText() || text().empty }}</p>
|
|
382
|
+
}
|
|
383
|
+
`,
|
|
384
|
+
}]
|
|
385
|
+
}], propDecorators: { payments: [{ type: i0.Input, args: [{ isSignal: true, alias: "payments", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], showFilters: [{ type: i0.Input, args: [{ isSignal: true, alias: "showFilters", required: false }] }], receipts: [{ type: i0.Input, args: [{ isSignal: true, alias: "receipts", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], receipt: [{ type: i0.Output, args: ["receipt"] }], view: [{ type: i0.Output, args: ["view"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
386
|
+
|
|
387
|
+
const FAILED = ['failed', 'disputed', 'expired', 'cancelled'];
|
|
388
|
+
/**
|
|
389
|
+
* Histórico de uma transação (`hm-transaction-timeline`): cada mudança de situação na ordem em que
|
|
390
|
+
* aconteceu, sobre o `hm-timeline`. O último evento fica "em andamento" enquanto a transação está
|
|
391
|
+
* pendente ou autorizada, "com erro" quando terminou em recusa, disputa, expiração ou cancelamento.
|
|
392
|
+
*
|
|
393
|
+
* ```html
|
|
394
|
+
* <hm-transaction-timeline [events]="transacao.eventos" />
|
|
395
|
+
* ```
|
|
396
|
+
*/
|
|
397
|
+
class TransactionTimelineComponent {
|
|
398
|
+
#icons = useHermesIcons(TRANSACTION_ICONS);
|
|
399
|
+
events = input([], ...(ngDevMode ? [{ debugName: "events" }] : /* istanbul ignore next */ []));
|
|
400
|
+
orientation = input('vertical', ...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
401
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
402
|
+
/** Sobrescreve textos do catálogo da peça (`TRANSACTION_MESSAGES_PT_BR`). */
|
|
403
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
404
|
+
#text = localCatalog(TRANSACTION_MESSAGES, TRANSACTION_MESSAGES_PT_BR, () => this.texts());
|
|
405
|
+
text = this.#text;
|
|
406
|
+
/** Do mais antigo para o mais recente. */
|
|
407
|
+
ordered = computed(() => [...this.events()].sort((a, b) => new Date(a.date ?? 0).getTime() - new Date(b.date ?? 0).getTime()), ...(ngDevMode ? [{ debugName: "ordered" }] : /* istanbul ignore next */ []));
|
|
408
|
+
lastStatus = computed(() => {
|
|
409
|
+
const last = this.ordered().at(-1)?.status;
|
|
410
|
+
if (!last)
|
|
411
|
+
return 'pending';
|
|
412
|
+
if (FAILED.includes(last))
|
|
413
|
+
return 'error';
|
|
414
|
+
return last === 'pending' || last === 'authorized' ? 'current' : 'completed';
|
|
415
|
+
}, ...(ngDevMode ? [{ debugName: "lastStatus" }] : /* istanbul ignore next */ []));
|
|
416
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TransactionTimelineComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
417
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TransactionTimelineComponent, isStandalone: true, selector: "hm-transaction-timeline", inputs: { events: { classPropertyName: "events", publicName: "events", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-transaction-timeline" }, ngImport: i0, template: `
|
|
418
|
+
<hm-timeline [orientation]="orientation()" [label]="label() || text().transaction.timeline">
|
|
419
|
+
@for (event of ordered(); track $index) {
|
|
420
|
+
<hm-timeline-item
|
|
421
|
+
[label]="text().transactionStatus[event.status]"
|
|
422
|
+
[date]="event.date"
|
|
423
|
+
[description]="event.description ?? ''"
|
|
424
|
+
[status]="$last ? lastStatus() : 'completed'"
|
|
425
|
+
/>
|
|
426
|
+
}
|
|
427
|
+
</hm-timeline>
|
|
428
|
+
`, isInline: true, dependencies: [{ kind: "component", type: TimelineComponent, selector: "hm-timeline", inputs: ["orientation", "current", "outcome", "label", "dateFormat"] }, { kind: "component", type: TimelineItemComponent, selector: "hm-timeline-item", inputs: ["key", "label", "date", "description", "status", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
429
|
+
}
|
|
430
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TransactionTimelineComponent, decorators: [{
|
|
431
|
+
type: Component,
|
|
432
|
+
args: [{
|
|
433
|
+
selector: 'hm-transaction-timeline',
|
|
434
|
+
imports: [TimelineComponent, TimelineItemComponent],
|
|
435
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
436
|
+
host: { class: 'hm-transaction-timeline' },
|
|
437
|
+
template: `
|
|
438
|
+
<hm-timeline [orientation]="orientation()" [label]="label() || text().transaction.timeline">
|
|
439
|
+
@for (event of ordered(); track $index) {
|
|
440
|
+
<hm-timeline-item
|
|
441
|
+
[label]="text().transactionStatus[event.status]"
|
|
442
|
+
[date]="event.date"
|
|
443
|
+
[description]="event.description ?? ''"
|
|
444
|
+
[status]="$last ? lastStatus() : 'completed'"
|
|
445
|
+
/>
|
|
446
|
+
}
|
|
447
|
+
</hm-timeline>
|
|
448
|
+
`,
|
|
449
|
+
}]
|
|
450
|
+
}], propDecorators: { events: [{ type: i0.Input, args: [{ isSignal: true, alias: "events", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* Detalhe de uma transação (`hm-transaction-detail`): valor com sinal de entrada/saída, situação, data,
|
|
454
|
+
* meio de pagamento, contraparte, tarifas, reembolsado, valor líquido, identificador copiável, o histórico
|
|
455
|
+
* (`hm-transaction-timeline`) e as ações "Reembolsar" (pago, com saldo a devolver) e "Tentar de novo"
|
|
456
|
+
* (recusado).
|
|
457
|
+
*
|
|
458
|
+
* ```html
|
|
459
|
+
* <hm-transaction-detail [transaction]="t" (refund)="abrirReembolso(t)" (retry)="cobrarDeNovo(t)" />
|
|
460
|
+
* ```
|
|
461
|
+
*/
|
|
462
|
+
class TransactionDetailComponent {
|
|
463
|
+
#icons = useHermesIcons(TRANSACTION_ICONS);
|
|
464
|
+
transaction = input.required(...(ngDevMode ? [{ debugName: "transaction" }] : /* istanbul ignore next */ []));
|
|
465
|
+
showTimeline = input(true, { ...(ngDevMode ? { debugName: "showTimeline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
466
|
+
/** Oferece "Reembolsar" quando cabe. */
|
|
467
|
+
refundable = input(true, { ...(ngDevMode ? { debugName: "refundable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
468
|
+
/** Oferece "Tentar de novo" quando recusado. */
|
|
469
|
+
retryable = input(true, { ...(ngDevMode ? { debugName: "retryable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
470
|
+
refund = output();
|
|
471
|
+
retry = output();
|
|
472
|
+
/** Sobrescreve textos do catálogo da peça (`TRANSACTION_MESSAGES_PT_BR`). */
|
|
473
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
474
|
+
#text = localCatalog(TRANSACTION_MESSAGES, TRANSACTION_MESSAGES_PT_BR, () => this.texts());
|
|
475
|
+
#locale = formatLocale();
|
|
476
|
+
text = computed(() => this.#text().transaction, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
477
|
+
currency = computed(() => this.transaction().currency ?? 'BRL', ...(ngDevMode ? [{ debugName: "currency" }] : /* istanbul ignore next */ []));
|
|
478
|
+
direction = computed(() => this.transaction().direction ?? 'in', ...(ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []));
|
|
479
|
+
breakdown = computed(() => {
|
|
480
|
+
const t = this.transaction();
|
|
481
|
+
return transactionNet(t.amount, t.fees ?? 0, t.refunded ?? 0, this.currency());
|
|
482
|
+
}, ...(ngDevMode ? [{ debugName: "breakdown" }] : /* istanbul ignore next */ []));
|
|
483
|
+
directionText = computed(() => (this.direction() === 'in' ? this.text().received : this.text().sent), ...(ngDevMode ? [{ debugName: "directionText" }] : /* istanbul ignore next */ []));
|
|
484
|
+
amountText = computed(() => {
|
|
485
|
+
const value = this.direction() === 'in' ? this.transaction().amount : -this.transaction().amount;
|
|
486
|
+
return formatMoney(value, this.currency(), this.#locale(), { signDisplay: 'exceptZero' });
|
|
487
|
+
}, ...(ngDevMode ? [{ debugName: "amountText" }] : /* istanbul ignore next */ []));
|
|
488
|
+
dateText = computed(() => formatDate(this.transaction().date, this.#locale(), { dateStyle: 'medium', timeStyle: 'short' }), ...(ngDevMode ? [{ debugName: "dateText" }] : /* istanbul ignore next */ []));
|
|
489
|
+
canRefund = computed(() => {
|
|
490
|
+
const t = this.transaction();
|
|
491
|
+
return this.refundable() && (t.status === 'paid' || t.status === 'partially-refunded') && refundableAmount(t.amount, t.refunded ?? 0, this.currency()) > 0;
|
|
492
|
+
}, ...(ngDevMode ? [{ debugName: "canRefund" }] : /* istanbul ignore next */ []));
|
|
493
|
+
canRetry = computed(() => this.retryable() && this.transaction().status === 'failed', ...(ngDevMode ? [{ debugName: "canRetry" }] : /* istanbul ignore next */ []));
|
|
494
|
+
money(value) {
|
|
495
|
+
return formatMoney(value, this.currency(), this.#locale());
|
|
496
|
+
}
|
|
497
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TransactionDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
498
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TransactionDetailComponent, isStandalone: true, selector: "hm-transaction-detail", inputs: { transaction: { classPropertyName: "transaction", publicName: "transaction", isSignal: true, isRequired: true, transformFunction: null }, showTimeline: { classPropertyName: "showTimeline", publicName: "showTimeline", isSignal: true, isRequired: false, transformFunction: null }, refundable: { classPropertyName: "refundable", publicName: "refundable", isSignal: true, isRequired: false, transformFunction: null }, retryable: { classPropertyName: "retryable", publicName: "retryable", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { refund: "refund", retry: "retry" }, host: { classAttribute: "hm-transaction-detail" }, ngImport: i0, template: `
|
|
499
|
+
<div class="hm-transaction-detail__header">
|
|
500
|
+
<span class="hm-transaction-detail__direction">{{ directionText() }}</span>
|
|
501
|
+
<span class="hm-transaction-detail__amount" [class.hm-transaction-detail__amount--in]="direction() === 'in'">{{ amountText() }}</span>
|
|
502
|
+
<hm-transaction-status [status]="transaction().status" [texts]="texts()" />
|
|
503
|
+
</div>
|
|
504
|
+
@if (transaction().description) {
|
|
505
|
+
<p class="hm-transaction-detail__description">{{ transaction().description }}</p>
|
|
506
|
+
}
|
|
507
|
+
<dl class="hm-transaction-detail__facts">
|
|
508
|
+
<div class="hm-transaction-detail__fact"><dt>{{ text().date }}</dt><dd>{{ dateText() }}</dd></div>
|
|
509
|
+
@if (transaction().counterparty) {
|
|
510
|
+
<div class="hm-transaction-detail__fact"><dt>{{ text().counterparty }}</dt><dd>{{ transaction().counterparty }}</dd></div>
|
|
511
|
+
}
|
|
512
|
+
@if (transaction().method; as method) {
|
|
513
|
+
<div class="hm-transaction-detail__fact">
|
|
514
|
+
<dt>{{ text().method }}</dt>
|
|
515
|
+
<dd><hm-payment-method-card plain [method]="method" /></dd>
|
|
516
|
+
</div>
|
|
517
|
+
}
|
|
518
|
+
<div class="hm-transaction-detail__fact"><dt>{{ text().amount }}</dt><dd>{{ money(transaction().amount) }}</dd></div>
|
|
519
|
+
@if (breakdown().fees) {
|
|
520
|
+
<div class="hm-transaction-detail__fact"><dt>{{ text().fees }}</dt><dd>{{ money(-breakdown().fees) }}</dd></div>
|
|
521
|
+
}
|
|
522
|
+
@if (breakdown().refunded) {
|
|
523
|
+
<div class="hm-transaction-detail__fact"><dt>{{ text().refunded }}</dt><dd>{{ money(-breakdown().refunded) }}</dd></div>
|
|
524
|
+
}
|
|
525
|
+
<div class="hm-transaction-detail__fact hm-transaction-detail__fact--strong"><dt>{{ text().net }}</dt><dd>{{ money(breakdown().net) }}</dd></div>
|
|
526
|
+
<div class="hm-transaction-detail__fact">
|
|
527
|
+
<dt>{{ text().id }}</dt>
|
|
528
|
+
<dd class="hm-transaction-detail__id">
|
|
529
|
+
<code>{{ transaction().id }}</code>
|
|
530
|
+
<hm-copy-button [value]="transaction().id" [label]="text().copyId" size="small" />
|
|
531
|
+
</dd>
|
|
532
|
+
</div>
|
|
533
|
+
</dl>
|
|
534
|
+
@if (canRefund() || canRetry()) {
|
|
535
|
+
<div class="hm-transaction-detail__actions">
|
|
536
|
+
@if (canRefund()) {
|
|
537
|
+
<hm-button emphasis="medium" size="small" icon="arrow-back" (clicked)="refund.emit()">{{ text().refund }}</hm-button>
|
|
538
|
+
}
|
|
539
|
+
@if (canRetry()) {
|
|
540
|
+
<hm-button size="small" icon="refresh" (clicked)="retry.emit()">{{ text().retry }}</hm-button>
|
|
541
|
+
}
|
|
542
|
+
</div>
|
|
543
|
+
}
|
|
544
|
+
@if (transaction().events?.length && showTimeline()) {
|
|
545
|
+
<hm-transaction-timeline [events]="transaction().events ?? []" [texts]="texts()" />
|
|
546
|
+
}
|
|
547
|
+
`, 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: CopyButtonComponent, selector: "hm-copy-button", inputs: ["value", "label", "copiedLabel", "variant", "size", "disabled", "feedbackDuration"], outputs: ["copied", "copyFailed"] }, { kind: "component", type: PaymentMethodCardComponent, selector: "hm-payment-method-card", inputs: ["method", "actions", "plain", "now", "texts"], outputs: ["makeDefault", "remove"] }, { kind: "component", type: TransactionStatusComponent, selector: "hm-transaction-status", inputs: ["status", "compact", "texts"] }, { kind: "component", type: TransactionTimelineComponent, selector: "hm-transaction-timeline", inputs: ["events", "orientation", "label", "texts"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
548
|
+
}
|
|
549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TransactionDetailComponent, decorators: [{
|
|
550
|
+
type: Component,
|
|
551
|
+
args: [{
|
|
552
|
+
selector: 'hm-transaction-detail',
|
|
553
|
+
imports: [ButtonComponent, CopyButtonComponent, PaymentMethodCardComponent, TransactionStatusComponent, TransactionTimelineComponent],
|
|
554
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
555
|
+
host: { class: 'hm-transaction-detail' },
|
|
556
|
+
template: `
|
|
557
|
+
<div class="hm-transaction-detail__header">
|
|
558
|
+
<span class="hm-transaction-detail__direction">{{ directionText() }}</span>
|
|
559
|
+
<span class="hm-transaction-detail__amount" [class.hm-transaction-detail__amount--in]="direction() === 'in'">{{ amountText() }}</span>
|
|
560
|
+
<hm-transaction-status [status]="transaction().status" [texts]="texts()" />
|
|
561
|
+
</div>
|
|
562
|
+
@if (transaction().description) {
|
|
563
|
+
<p class="hm-transaction-detail__description">{{ transaction().description }}</p>
|
|
564
|
+
}
|
|
565
|
+
<dl class="hm-transaction-detail__facts">
|
|
566
|
+
<div class="hm-transaction-detail__fact"><dt>{{ text().date }}</dt><dd>{{ dateText() }}</dd></div>
|
|
567
|
+
@if (transaction().counterparty) {
|
|
568
|
+
<div class="hm-transaction-detail__fact"><dt>{{ text().counterparty }}</dt><dd>{{ transaction().counterparty }}</dd></div>
|
|
569
|
+
}
|
|
570
|
+
@if (transaction().method; as method) {
|
|
571
|
+
<div class="hm-transaction-detail__fact">
|
|
572
|
+
<dt>{{ text().method }}</dt>
|
|
573
|
+
<dd><hm-payment-method-card plain [method]="method" /></dd>
|
|
574
|
+
</div>
|
|
575
|
+
}
|
|
576
|
+
<div class="hm-transaction-detail__fact"><dt>{{ text().amount }}</dt><dd>{{ money(transaction().amount) }}</dd></div>
|
|
577
|
+
@if (breakdown().fees) {
|
|
578
|
+
<div class="hm-transaction-detail__fact"><dt>{{ text().fees }}</dt><dd>{{ money(-breakdown().fees) }}</dd></div>
|
|
579
|
+
}
|
|
580
|
+
@if (breakdown().refunded) {
|
|
581
|
+
<div class="hm-transaction-detail__fact"><dt>{{ text().refunded }}</dt><dd>{{ money(-breakdown().refunded) }}</dd></div>
|
|
582
|
+
}
|
|
583
|
+
<div class="hm-transaction-detail__fact hm-transaction-detail__fact--strong"><dt>{{ text().net }}</dt><dd>{{ money(breakdown().net) }}</dd></div>
|
|
584
|
+
<div class="hm-transaction-detail__fact">
|
|
585
|
+
<dt>{{ text().id }}</dt>
|
|
586
|
+
<dd class="hm-transaction-detail__id">
|
|
587
|
+
<code>{{ transaction().id }}</code>
|
|
588
|
+
<hm-copy-button [value]="transaction().id" [label]="text().copyId" size="small" />
|
|
589
|
+
</dd>
|
|
590
|
+
</div>
|
|
591
|
+
</dl>
|
|
592
|
+
@if (canRefund() || canRetry()) {
|
|
593
|
+
<div class="hm-transaction-detail__actions">
|
|
594
|
+
@if (canRefund()) {
|
|
595
|
+
<hm-button emphasis="medium" size="small" icon="arrow-back" (clicked)="refund.emit()">{{ text().refund }}</hm-button>
|
|
596
|
+
}
|
|
597
|
+
@if (canRetry()) {
|
|
598
|
+
<hm-button size="small" icon="refresh" (clicked)="retry.emit()">{{ text().retry }}</hm-button>
|
|
599
|
+
}
|
|
600
|
+
</div>
|
|
601
|
+
}
|
|
602
|
+
@if (transaction().events?.length && showTimeline()) {
|
|
603
|
+
<hm-transaction-timeline [events]="transaction().events ?? []" [texts]="texts()" />
|
|
604
|
+
}
|
|
605
|
+
`,
|
|
606
|
+
}]
|
|
607
|
+
}], propDecorators: { transaction: [{ type: i0.Input, args: [{ isSignal: true, alias: "transaction", required: true }] }], showTimeline: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTimeline", required: false }] }], refundable: [{ type: i0.Input, args: [{ isSignal: true, alias: "refundable", required: false }] }], retryable: [{ type: i0.Input, args: [{ isSignal: true, alias: "retryable", required: false }] }], refund: [{ type: i0.Output, args: ["refund"] }], retry: [{ type: i0.Output, args: ["retry"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
608
|
+
|
|
609
|
+
// Ponto de import `@trismegisto/angular/transaction` (secundário do ng-packagr).
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Generated bundle index. Do not edit.
|
|
613
|
+
*/
|
|
614
|
+
|
|
615
|
+
export { PaymentHistoryComponent, TRANSACTION_MESSAGES, TRANSACTION_MESSAGES_EN, TRANSACTION_MESSAGES_ES, TRANSACTION_MESSAGES_PT_BR, TransactionDetailComponent, TransactionStatusComponent, TransactionTimelineComponent };
|
|
616
|
+
//# sourceMappingURL=trismegisto-angular-transaction.mjs.map
|