@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.
- 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,1007 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, computed, ChangeDetectionStrategy, Component, model, output } from '@angular/core';
|
|
3
|
+
import { billingPeriodAt, periodProgress, formatMessage, pluralMessage, planMonthlyPrice, yearlySavingsPercent, bestYearlySavings, comparisonRows, planFeatureValue, SUBSCRIPTION_STATUS_TONES, readUsage, USAGE_LEVEL_TONES } from '@trismegisto/primitives';
|
|
4
|
+
import { localCatalog, formatLocale, toDate, formatDate, formatMoney, formatNumber } from '@trismegisto/angular/commerce-format';
|
|
5
|
+
import { ICON_CHECK, ICON_CREDIT_CARD, ICON_MINUS, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
|
|
6
|
+
import { PriceComponent } from '@trismegisto/angular/price';
|
|
7
|
+
import { TagComponent } from '@trismegisto/angular/tag';
|
|
8
|
+
import { ButtonComponent } from '@trismegisto/angular/button';
|
|
9
|
+
import { SegmentedControlComponent } from '@trismegisto/angular/segmented-control';
|
|
10
|
+
|
|
11
|
+
// Textos das peças de `@trismegisto/angular/billing` 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 BILLING_MESSAGES_PT_BR = {
|
|
15
|
+
period: {
|
|
16
|
+
label: 'Período de cobrança',
|
|
17
|
+
range: '{start} a {end}',
|
|
18
|
+
dayOf: 'Dia {day} de {total}',
|
|
19
|
+
remaining: { one: 'Falta {count} dia', other: 'Faltam {count} dias' },
|
|
20
|
+
renews: 'Renova em {date}',
|
|
21
|
+
ends: 'Termina em {date}',
|
|
22
|
+
},
|
|
23
|
+
cycle: {
|
|
24
|
+
label: 'Ciclo de cobrança',
|
|
25
|
+
monthly: 'Mensal',
|
|
26
|
+
yearly: 'Anual',
|
|
27
|
+
yearlySave: 'Anual (até {percent}% off)',
|
|
28
|
+
perMonth: '/mês',
|
|
29
|
+
perYear: '/ano',
|
|
30
|
+
billedYearly: '{amount} cobrados por ano',
|
|
31
|
+
save: 'Economize {percent}%',
|
|
32
|
+
},
|
|
33
|
+
subscriptionStatus: {
|
|
34
|
+
trialing: 'Em teste',
|
|
35
|
+
active: 'Ativa',
|
|
36
|
+
'past-due': 'Pagamento pendente',
|
|
37
|
+
paused: 'Pausada',
|
|
38
|
+
cancelled: 'Cancelada',
|
|
39
|
+
expired: 'Expirada',
|
|
40
|
+
},
|
|
41
|
+
subscription: {
|
|
42
|
+
nextCharge: 'Próxima cobrança: {amount} em {date}',
|
|
43
|
+
trialEnds: 'Teste grátis até {date}',
|
|
44
|
+
cancelsOn: 'Acesso até {date}',
|
|
45
|
+
pastDue: 'Não conseguimos cobrar. Atualize a forma de pagamento.',
|
|
46
|
+
paymentMethod: 'Cobrado em {method}',
|
|
47
|
+
seats: { one: '{count} usuário', other: '{count} usuários' },
|
|
48
|
+
changePlan: 'Mudar de plano',
|
|
49
|
+
cancel: 'Cancelar assinatura',
|
|
50
|
+
resume: 'Reativar assinatura',
|
|
51
|
+
updatePayment: 'Atualizar pagamento',
|
|
52
|
+
},
|
|
53
|
+
plan: {
|
|
54
|
+
pickerLabel: 'Plano',
|
|
55
|
+
current: 'Plano atual',
|
|
56
|
+
custom: 'Sob consulta',
|
|
57
|
+
choose: 'Escolher {plan}',
|
|
58
|
+
contact: 'Fale com vendas',
|
|
59
|
+
included: 'Incluso',
|
|
60
|
+
notIncluded: 'Não incluso',
|
|
61
|
+
compare: 'Comparar planos',
|
|
62
|
+
feature: 'Recurso',
|
|
63
|
+
plans: 'Planos',
|
|
64
|
+
},
|
|
65
|
+
usage: {
|
|
66
|
+
of: '{used} de {limit}',
|
|
67
|
+
unlimited: '{used} (sem limite)',
|
|
68
|
+
remaining: 'Restam {amount}',
|
|
69
|
+
exceeded: '{amount} acima do limite',
|
|
70
|
+
warning: 'Perto do limite',
|
|
71
|
+
critical: 'Limite quase atingido',
|
|
72
|
+
exceededStatus: 'Limite excedido',
|
|
73
|
+
projected: 'No ritmo atual, chega a {amount} no fim do período',
|
|
74
|
+
},
|
|
75
|
+
};
|
|
76
|
+
const BILLING_MESSAGES_EN = {
|
|
77
|
+
period: {
|
|
78
|
+
label: 'Billing period',
|
|
79
|
+
range: '{start} – {end}',
|
|
80
|
+
dayOf: 'Day {day} of {total}',
|
|
81
|
+
remaining: { one: '{count} day left', other: '{count} days left' },
|
|
82
|
+
renews: 'Renews on {date}',
|
|
83
|
+
ends: 'Ends on {date}',
|
|
84
|
+
},
|
|
85
|
+
cycle: {
|
|
86
|
+
label: 'Billing cycle',
|
|
87
|
+
monthly: 'Monthly',
|
|
88
|
+
yearly: 'Yearly',
|
|
89
|
+
yearlySave: 'Yearly (up to {percent}% off)',
|
|
90
|
+
perMonth: '/mo',
|
|
91
|
+
perYear: '/yr',
|
|
92
|
+
billedYearly: '{amount} billed yearly',
|
|
93
|
+
save: 'Save {percent}%',
|
|
94
|
+
},
|
|
95
|
+
subscriptionStatus: {
|
|
96
|
+
trialing: 'Trial',
|
|
97
|
+
active: 'Active',
|
|
98
|
+
'past-due': 'Past due',
|
|
99
|
+
paused: 'Paused',
|
|
100
|
+
cancelled: 'Cancelled',
|
|
101
|
+
expired: 'Expired',
|
|
102
|
+
},
|
|
103
|
+
subscription: {
|
|
104
|
+
nextCharge: 'Next charge: {amount} on {date}',
|
|
105
|
+
trialEnds: 'Free trial until {date}',
|
|
106
|
+
cancelsOn: 'Access until {date}',
|
|
107
|
+
pastDue: "We couldn't charge you. Update your payment method.",
|
|
108
|
+
paymentMethod: 'Charged to {method}',
|
|
109
|
+
seats: { one: '{count} user', other: '{count} users' },
|
|
110
|
+
changePlan: 'Change plan',
|
|
111
|
+
cancel: 'Cancel subscription',
|
|
112
|
+
resume: 'Resume subscription',
|
|
113
|
+
updatePayment: 'Update payment',
|
|
114
|
+
},
|
|
115
|
+
plan: {
|
|
116
|
+
pickerLabel: 'Plan',
|
|
117
|
+
current: 'Current plan',
|
|
118
|
+
custom: 'Custom pricing',
|
|
119
|
+
choose: 'Choose {plan}',
|
|
120
|
+
contact: 'Contact sales',
|
|
121
|
+
included: 'Included',
|
|
122
|
+
notIncluded: 'Not included',
|
|
123
|
+
compare: 'Compare plans',
|
|
124
|
+
feature: 'Feature',
|
|
125
|
+
plans: 'Plans',
|
|
126
|
+
},
|
|
127
|
+
usage: {
|
|
128
|
+
of: '{used} of {limit}',
|
|
129
|
+
unlimited: '{used} (unlimited)',
|
|
130
|
+
remaining: '{amount} left',
|
|
131
|
+
exceeded: '{amount} over the limit',
|
|
132
|
+
warning: 'Approaching the limit',
|
|
133
|
+
critical: 'Limit almost reached',
|
|
134
|
+
exceededStatus: 'Limit exceeded',
|
|
135
|
+
projected: 'At the current pace, reaches {amount} by the end of the period',
|
|
136
|
+
},
|
|
137
|
+
};
|
|
138
|
+
const BILLING_MESSAGES_ES = {
|
|
139
|
+
period: {
|
|
140
|
+
label: 'Período de facturación',
|
|
141
|
+
range: '{start} al {end}',
|
|
142
|
+
dayOf: 'Día {day} de {total}',
|
|
143
|
+
remaining: { one: 'Falta {count} día', other: 'Faltan {count} días' },
|
|
144
|
+
renews: 'Se renueva el {date}',
|
|
145
|
+
ends: 'Termina el {date}',
|
|
146
|
+
},
|
|
147
|
+
cycle: {
|
|
148
|
+
label: 'Ciclo de facturación',
|
|
149
|
+
monthly: 'Mensual',
|
|
150
|
+
yearly: 'Anual',
|
|
151
|
+
yearlySave: 'Anual (hasta {percent}% menos)',
|
|
152
|
+
perMonth: '/mes',
|
|
153
|
+
perYear: '/año',
|
|
154
|
+
billedYearly: '{amount} facturados al año',
|
|
155
|
+
save: 'Ahorra {percent}%',
|
|
156
|
+
},
|
|
157
|
+
subscriptionStatus: {
|
|
158
|
+
trialing: 'En prueba',
|
|
159
|
+
active: 'Activa',
|
|
160
|
+
'past-due': 'Pago pendiente',
|
|
161
|
+
paused: 'Pausada',
|
|
162
|
+
cancelled: 'Cancelada',
|
|
163
|
+
expired: 'Vencida',
|
|
164
|
+
},
|
|
165
|
+
subscription: {
|
|
166
|
+
nextCharge: 'Próximo cobro: {amount} el {date}',
|
|
167
|
+
trialEnds: 'Prueba gratis hasta el {date}',
|
|
168
|
+
cancelsOn: 'Acceso hasta el {date}',
|
|
169
|
+
pastDue: 'No pudimos cobrar. Actualiza el medio de pago.',
|
|
170
|
+
paymentMethod: 'Se cobra en {method}',
|
|
171
|
+
seats: { one: '{count} usuario', other: '{count} usuarios' },
|
|
172
|
+
changePlan: 'Cambiar de plan',
|
|
173
|
+
cancel: 'Cancelar suscripción',
|
|
174
|
+
resume: 'Reactivar suscripción',
|
|
175
|
+
updatePayment: 'Actualizar pago',
|
|
176
|
+
},
|
|
177
|
+
plan: {
|
|
178
|
+
pickerLabel: 'Plan',
|
|
179
|
+
current: 'Plan actual',
|
|
180
|
+
custom: 'Precio a consultar',
|
|
181
|
+
choose: 'Elegir {plan}',
|
|
182
|
+
contact: 'Hablar con ventas',
|
|
183
|
+
included: 'Incluido',
|
|
184
|
+
notIncluded: 'No incluido',
|
|
185
|
+
compare: 'Comparar planes',
|
|
186
|
+
feature: 'Función',
|
|
187
|
+
plans: 'Planes',
|
|
188
|
+
},
|
|
189
|
+
usage: {
|
|
190
|
+
of: '{used} de {limit}',
|
|
191
|
+
unlimited: '{used} (sin límite)',
|
|
192
|
+
remaining: 'Quedan {amount}',
|
|
193
|
+
exceeded: '{amount} por encima del límite',
|
|
194
|
+
warning: 'Cerca del límite',
|
|
195
|
+
critical: 'Límite casi alcanzado',
|
|
196
|
+
exceededStatus: 'Límite superado',
|
|
197
|
+
projected: 'Al ritmo actual, llega a {amount} al final del período',
|
|
198
|
+
},
|
|
199
|
+
};
|
|
200
|
+
const BILLING_MESSAGES = { 'pt-BR': BILLING_MESSAGES_PT_BR, en: BILLING_MESSAGES_EN, es: BILLING_MESSAGES_ES };
|
|
201
|
+
|
|
202
|
+
const BILLING_ICONS = [ICON_CHECK, ICON_CREDIT_CARD, ICON_MINUS];
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* Período de cobrança (`hm-billing-period`): as datas do ciclo atual ("15 de out. a 14 de nov."), em que
|
|
206
|
+
* dia dele estamos, quantos dias faltam e quando renova (ou termina, com `endsAtPeriodEnd`).
|
|
207
|
+
*
|
|
208
|
+
* ```html
|
|
209
|
+
* <hm-billing-period [start]="ciclo.inicio" [end]="ciclo.fim" />
|
|
210
|
+
* <!-- ou pela âncora da assinatura -->
|
|
211
|
+
* <hm-billing-period [anchor]="assinatura.criadaEm" interval="month" />
|
|
212
|
+
* ```
|
|
213
|
+
*
|
|
214
|
+
* A barra de progresso é um medidor (`role="meter"`) com o texto "Dia 16 de 31".
|
|
215
|
+
*/
|
|
216
|
+
class BillingPeriodComponent {
|
|
217
|
+
#icons = useHermesIcons(BILLING_ICONS);
|
|
218
|
+
/** Início do período (inclusive). Com `end`, vence a âncora. */
|
|
219
|
+
start = input(null, ...(ngDevMode ? [{ debugName: "start" }] : /* istanbul ignore next */ []));
|
|
220
|
+
/** Fim do período (inclusive). */
|
|
221
|
+
end = input(null, ...(ngDevMode ? [{ debugName: "end" }] : /* istanbul ignore next */ []));
|
|
222
|
+
/** Data de início da assinatura, para calcular o período atual. */
|
|
223
|
+
anchor = input(null, ...(ngDevMode ? [{ debugName: "anchor" }] : /* istanbul ignore next */ []));
|
|
224
|
+
interval = input('month', ...(ngDevMode ? [{ debugName: "interval" }] : /* istanbul ignore next */ []));
|
|
225
|
+
/** Data de referência (padrão: hoje). */
|
|
226
|
+
now = input(null, ...(ngDevMode ? [{ debugName: "now" }] : /* istanbul ignore next */ []));
|
|
227
|
+
showProgress = input(true, { ...(ngDevMode ? { debugName: "showProgress" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
228
|
+
/** A assinatura termina no fim do período (cancelada): diz "Termina em" no lugar de "Renova em". */
|
|
229
|
+
endsAtPeriodEnd = input(false, { ...(ngDevMode ? { debugName: "endsAtPeriodEnd" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
230
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
231
|
+
/** Sobrescreve textos do catálogo da peça (`BILLING_MESSAGES_PT_BR`). */
|
|
232
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
233
|
+
#text = localCatalog(BILLING_MESSAGES, BILLING_MESSAGES_PT_BR, () => this.texts());
|
|
234
|
+
#locale = formatLocale();
|
|
235
|
+
text = computed(() => this.#text().period, ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
236
|
+
period = computed(() => {
|
|
237
|
+
const start = toDate(this.start());
|
|
238
|
+
const end = toDate(this.end());
|
|
239
|
+
if (start && end) {
|
|
240
|
+
const next = new Date(end.getFullYear(), end.getMonth(), end.getDate() + 1);
|
|
241
|
+
return { start, end, next };
|
|
242
|
+
}
|
|
243
|
+
const anchor = toDate(this.anchor());
|
|
244
|
+
return anchor ? billingPeriodAt(anchor, this.interval(), this.now() ?? new Date()) : null;
|
|
245
|
+
}, ...(ngDevMode ? [{ debugName: "period" }] : /* istanbul ignore next */ []));
|
|
246
|
+
progress = computed(() => {
|
|
247
|
+
const period = this.period();
|
|
248
|
+
return period ? periodProgress(period, this.now() ?? new Date()) : { totalDays: 1, elapsedDays: 0, remainingDays: 1, fraction: 0 };
|
|
249
|
+
}, ...(ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []));
|
|
250
|
+
#date = (value) => formatDate(value, this.#locale(), { day: 'numeric', month: 'short', year: 'numeric' });
|
|
251
|
+
rangeText = computed(() => {
|
|
252
|
+
const period = this.period();
|
|
253
|
+
return period ? formatMessage(this.text().range, { start: this.#date(period.start), end: this.#date(period.end) }) : '';
|
|
254
|
+
}, ...(ngDevMode ? [{ debugName: "rangeText" }] : /* istanbul ignore next */ []));
|
|
255
|
+
dayText = computed(() => formatMessage(this.text().dayOf, { day: this.progress().elapsedDays, total: this.progress().totalDays }), ...(ngDevMode ? [{ debugName: "dayText" }] : /* istanbul ignore next */ []));
|
|
256
|
+
remainingText = computed(() => pluralMessage(this.text().remaining, this.progress().remainingDays, this.#locale()), ...(ngDevMode ? [{ debugName: "remainingText" }] : /* istanbul ignore next */ []));
|
|
257
|
+
nextText = computed(() => {
|
|
258
|
+
const period = this.period();
|
|
259
|
+
if (!period)
|
|
260
|
+
return '';
|
|
261
|
+
return this.endsAtPeriodEnd()
|
|
262
|
+
? formatMessage(this.text().ends, { date: this.#date(period.end) })
|
|
263
|
+
: formatMessage(this.text().renews, { date: this.#date(period.next) });
|
|
264
|
+
}, ...(ngDevMode ? [{ debugName: "nextText" }] : /* istanbul ignore next */ []));
|
|
265
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: BillingPeriodComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
266
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: BillingPeriodComponent, isStandalone: true, selector: "hm-billing-period", inputs: { start: { classPropertyName: "start", publicName: "start", isSignal: true, isRequired: false, transformFunction: null }, end: { classPropertyName: "end", publicName: "end", isSignal: true, isRequired: false, transformFunction: null }, anchor: { classPropertyName: "anchor", publicName: "anchor", isSignal: true, isRequired: false, transformFunction: null }, interval: { classPropertyName: "interval", publicName: "interval", isSignal: true, isRequired: false, transformFunction: null }, now: { classPropertyName: "now", publicName: "now", isSignal: true, isRequired: false, transformFunction: null }, showProgress: { classPropertyName: "showProgress", publicName: "showProgress", isSignal: true, isRequired: false, transformFunction: null }, endsAtPeriodEnd: { classPropertyName: "endsAtPeriodEnd", publicName: "endsAtPeriodEnd", 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-billing-period" }, ngImport: i0, template: `
|
|
267
|
+
@if (period(); as p) {
|
|
268
|
+
<span class="hm-billing-period__label">{{ label() || text().label }}</span>
|
|
269
|
+
<span class="hm-billing-period__range">{{ rangeText() }}</span>
|
|
270
|
+
@if (showProgress()) {
|
|
271
|
+
<div
|
|
272
|
+
class="hm-billing-period__bar"
|
|
273
|
+
role="meter"
|
|
274
|
+
aria-valuemin="0"
|
|
275
|
+
[attr.aria-valuemax]="progress().totalDays"
|
|
276
|
+
[attr.aria-valuenow]="progress().elapsedDays"
|
|
277
|
+
[attr.aria-valuetext]="dayText()"
|
|
278
|
+
[attr.aria-label]="label() || text().label"
|
|
279
|
+
>
|
|
280
|
+
<span class="hm-billing-period__fill" [style.inline-size.%]="progress().fraction * 100"></span>
|
|
281
|
+
</div>
|
|
282
|
+
<span class="hm-billing-period__meta">
|
|
283
|
+
<span>{{ dayText() }}</span>
|
|
284
|
+
<span>{{ remainingText() }}</span>
|
|
285
|
+
</span>
|
|
286
|
+
}
|
|
287
|
+
<span class="hm-billing-period__next">{{ nextText() }}</span>
|
|
288
|
+
}
|
|
289
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
290
|
+
}
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: BillingPeriodComponent, decorators: [{
|
|
292
|
+
type: Component,
|
|
293
|
+
args: [{
|
|
294
|
+
selector: 'hm-billing-period',
|
|
295
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
296
|
+
host: { class: 'hm-billing-period' },
|
|
297
|
+
template: `
|
|
298
|
+
@if (period(); as p) {
|
|
299
|
+
<span class="hm-billing-period__label">{{ label() || text().label }}</span>
|
|
300
|
+
<span class="hm-billing-period__range">{{ rangeText() }}</span>
|
|
301
|
+
@if (showProgress()) {
|
|
302
|
+
<div
|
|
303
|
+
class="hm-billing-period__bar"
|
|
304
|
+
role="meter"
|
|
305
|
+
aria-valuemin="0"
|
|
306
|
+
[attr.aria-valuemax]="progress().totalDays"
|
|
307
|
+
[attr.aria-valuenow]="progress().elapsedDays"
|
|
308
|
+
[attr.aria-valuetext]="dayText()"
|
|
309
|
+
[attr.aria-label]="label() || text().label"
|
|
310
|
+
>
|
|
311
|
+
<span class="hm-billing-period__fill" [style.inline-size.%]="progress().fraction * 100"></span>
|
|
312
|
+
</div>
|
|
313
|
+
<span class="hm-billing-period__meta">
|
|
314
|
+
<span>{{ dayText() }}</span>
|
|
315
|
+
<span>{{ remainingText() }}</span>
|
|
316
|
+
</span>
|
|
317
|
+
}
|
|
318
|
+
<span class="hm-billing-period__next">{{ nextText() }}</span>
|
|
319
|
+
}
|
|
320
|
+
`,
|
|
321
|
+
}]
|
|
322
|
+
}], propDecorators: { start: [{ type: i0.Input, args: [{ isSignal: true, alias: "start", required: false }] }], end: [{ type: i0.Input, args: [{ isSignal: true, alias: "end", required: false }] }], anchor: [{ type: i0.Input, args: [{ isSignal: true, alias: "anchor", required: false }] }], interval: [{ type: i0.Input, args: [{ isSignal: true, alias: "interval", required: false }] }], now: [{ type: i0.Input, args: [{ isSignal: true, alias: "now", required: false }] }], showProgress: [{ type: i0.Input, args: [{ isSignal: true, alias: "showProgress", required: false }] }], endsAtPeriodEnd: [{ type: i0.Input, args: [{ isSignal: true, alias: "endsAtPeriodEnd", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
323
|
+
|
|
324
|
+
let sequence$1 = 0;
|
|
325
|
+
/**
|
|
326
|
+
* Escolha de plano (`hm-plan-picker`): cada plano é uma opção de rádio em cartão com nome, descrição,
|
|
327
|
+
* preço por mês no ciclo escolhido (o anual dividido por 12, com "R$ X cobrados por ano" e a economia),
|
|
328
|
+
* selo do plano e a marca de "Plano atual".
|
|
329
|
+
*
|
|
330
|
+
* ```html
|
|
331
|
+
* <hm-plan-picker [plans]="planos" cycle="yearly" [currentPlanId]="assinatura.planoId" [(value)]="planoEscolhido" />
|
|
332
|
+
* ```
|
|
333
|
+
*
|
|
334
|
+
* Para a vitrine com comparação de recursos, use o `hm-pricing-table`; este é o seletor compacto (troca
|
|
335
|
+
* de plano dentro do app, etapa de checkout).
|
|
336
|
+
*/
|
|
337
|
+
class PlanPickerComponent {
|
|
338
|
+
#icons = useHermesIcons(BILLING_ICONS);
|
|
339
|
+
plans = input([], ...(ngDevMode ? [{ debugName: "plans" }] : /* istanbul ignore next */ []));
|
|
340
|
+
/** Id do plano escolhido. */
|
|
341
|
+
value = model('', ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
342
|
+
cycle = input('monthly', ...(ngDevMode ? [{ debugName: "cycle" }] : /* istanbul ignore next */ []));
|
|
343
|
+
currency = input('BRL', ...(ngDevMode ? [{ debugName: "currency" }] : /* istanbul ignore next */ []));
|
|
344
|
+
/** Plano que a pessoa já tem (ganha o selo "Plano atual"). */
|
|
345
|
+
currentPlanId = input('', ...(ngDevMode ? [{ debugName: "currentPlanId" }] : /* istanbul ignore next */ []));
|
|
346
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
347
|
+
legendHidden = input(false, { ...(ngDevMode ? { debugName: "legendHidden" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
348
|
+
/** Sobrescreve textos do catálogo da peça (`BILLING_MESSAGES_PT_BR`). */
|
|
349
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
350
|
+
#text = localCatalog(BILLING_MESSAGES, BILLING_MESSAGES_PT_BR, () => this.texts());
|
|
351
|
+
#locale = formatLocale();
|
|
352
|
+
text = this.#text;
|
|
353
|
+
name = `hm-plan-picker-${++sequence$1}`;
|
|
354
|
+
/** Preço por mês no ciclo; `null` = o plano não é oferecido nesse ciclo (fica desabilitado). */
|
|
355
|
+
priceOf(plan) {
|
|
356
|
+
if (plan.custom)
|
|
357
|
+
return { amount: 0 };
|
|
358
|
+
const amount = planMonthlyPrice(plan, this.cycle(), this.currency());
|
|
359
|
+
return amount === null ? null : { amount };
|
|
360
|
+
}
|
|
361
|
+
yearlyText(plan) {
|
|
362
|
+
const text = this.#text().cycle;
|
|
363
|
+
const billed = formatMessage(text.billedYearly, { amount: formatMoney(plan.price.yearly ?? 0, this.currency(), this.#locale()) });
|
|
364
|
+
const savings = yearlySavingsPercent(plan.price);
|
|
365
|
+
return savings ? `${billed} · ${formatMessage(text.save, { percent: savings })}` : billed;
|
|
366
|
+
}
|
|
367
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: PlanPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
368
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: PlanPickerComponent, isStandalone: true, selector: "hm-plan-picker", inputs: { plans: { classPropertyName: "plans", publicName: "plans", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, cycle: { classPropertyName: "cycle", publicName: "cycle", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, currentPlanId: { classPropertyName: "currentPlanId", publicName: "currentPlanId", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, legendHidden: { classPropertyName: "legendHidden", publicName: "legendHidden", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { classAttribute: "hm-plan-picker" }, ngImport: i0, template: `
|
|
369
|
+
<fieldset class="hm-choice-list">
|
|
370
|
+
<legend class="hm-choice-list__legend" [class.hm-visually-hidden]="legendHidden()">{{ label() || text().plan.pickerLabel }}</legend>
|
|
371
|
+
@for (plan of plans(); track plan.id) {
|
|
372
|
+
<label
|
|
373
|
+
class="hm-choice"
|
|
374
|
+
[class.hm-choice--checked]="plan.id === value()"
|
|
375
|
+
[class.hm-choice--disabled]="!!plan.disabled || !priceOf(plan)"
|
|
376
|
+
[class.hm-choice--highlighted]="!!plan.highlighted"
|
|
377
|
+
>
|
|
378
|
+
<input
|
|
379
|
+
type="radio"
|
|
380
|
+
class="hm-choice__control"
|
|
381
|
+
[name]="name"
|
|
382
|
+
[value]="plan.id"
|
|
383
|
+
[checked]="plan.id === value()"
|
|
384
|
+
[disabled]="!!plan.disabled || !priceOf(plan)"
|
|
385
|
+
(change)="value.set(plan.id)"
|
|
386
|
+
/>
|
|
387
|
+
<span class="hm-choice__body">
|
|
388
|
+
<span class="hm-choice__title">
|
|
389
|
+
<span>{{ plan.name }}</span>
|
|
390
|
+
@if (plan.badge) {
|
|
391
|
+
<hm-tag [name]="plan.badge" color="primary" />
|
|
392
|
+
}
|
|
393
|
+
@if (plan.id === currentPlanId()) {
|
|
394
|
+
<hm-tag [name]="text().plan.current" color="info" />
|
|
395
|
+
}
|
|
396
|
+
</span>
|
|
397
|
+
@if (plan.description) {
|
|
398
|
+
<span class="hm-choice__line">{{ plan.description }}</span>
|
|
399
|
+
}
|
|
400
|
+
@if (cycle() === 'yearly' && plan.price.yearly) {
|
|
401
|
+
<span class="hm-choice__line">{{ yearlyText(plan) }}</span>
|
|
402
|
+
}
|
|
403
|
+
</span>
|
|
404
|
+
<span class="hm-choice__aside">
|
|
405
|
+
@if (plan.custom) {
|
|
406
|
+
{{ text().plan.custom }}
|
|
407
|
+
} @else if (priceOf(plan); as price) {
|
|
408
|
+
<hm-price [amount]="price.amount" [currency]="currency()" period="month" size="small" />
|
|
409
|
+
}
|
|
410
|
+
</span>
|
|
411
|
+
</label>
|
|
412
|
+
}
|
|
413
|
+
</fieldset>
|
|
414
|
+
`, isInline: true, dependencies: [{ kind: "component", type: PriceComponent, selector: "hm-price", inputs: ["amount", "compareAt", "currency", "size", "period", "unit", "showDiscount", "showSavings", "installments", "interestFree", "freeLabel", "texts"] }, { kind: "component", type: TagComponent, selector: "hm-tag", inputs: ["name", "color", "compact"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
415
|
+
}
|
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: PlanPickerComponent, decorators: [{
|
|
417
|
+
type: Component,
|
|
418
|
+
args: [{
|
|
419
|
+
selector: 'hm-plan-picker',
|
|
420
|
+
imports: [PriceComponent, TagComponent],
|
|
421
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
422
|
+
host: { class: 'hm-plan-picker' },
|
|
423
|
+
template: `
|
|
424
|
+
<fieldset class="hm-choice-list">
|
|
425
|
+
<legend class="hm-choice-list__legend" [class.hm-visually-hidden]="legendHidden()">{{ label() || text().plan.pickerLabel }}</legend>
|
|
426
|
+
@for (plan of plans(); track plan.id) {
|
|
427
|
+
<label
|
|
428
|
+
class="hm-choice"
|
|
429
|
+
[class.hm-choice--checked]="plan.id === value()"
|
|
430
|
+
[class.hm-choice--disabled]="!!plan.disabled || !priceOf(plan)"
|
|
431
|
+
[class.hm-choice--highlighted]="!!plan.highlighted"
|
|
432
|
+
>
|
|
433
|
+
<input
|
|
434
|
+
type="radio"
|
|
435
|
+
class="hm-choice__control"
|
|
436
|
+
[name]="name"
|
|
437
|
+
[value]="plan.id"
|
|
438
|
+
[checked]="plan.id === value()"
|
|
439
|
+
[disabled]="!!plan.disabled || !priceOf(plan)"
|
|
440
|
+
(change)="value.set(plan.id)"
|
|
441
|
+
/>
|
|
442
|
+
<span class="hm-choice__body">
|
|
443
|
+
<span class="hm-choice__title">
|
|
444
|
+
<span>{{ plan.name }}</span>
|
|
445
|
+
@if (plan.badge) {
|
|
446
|
+
<hm-tag [name]="plan.badge" color="primary" />
|
|
447
|
+
}
|
|
448
|
+
@if (plan.id === currentPlanId()) {
|
|
449
|
+
<hm-tag [name]="text().plan.current" color="info" />
|
|
450
|
+
}
|
|
451
|
+
</span>
|
|
452
|
+
@if (plan.description) {
|
|
453
|
+
<span class="hm-choice__line">{{ plan.description }}</span>
|
|
454
|
+
}
|
|
455
|
+
@if (cycle() === 'yearly' && plan.price.yearly) {
|
|
456
|
+
<span class="hm-choice__line">{{ yearlyText(plan) }}</span>
|
|
457
|
+
}
|
|
458
|
+
</span>
|
|
459
|
+
<span class="hm-choice__aside">
|
|
460
|
+
@if (plan.custom) {
|
|
461
|
+
{{ text().plan.custom }}
|
|
462
|
+
} @else if (priceOf(plan); as price) {
|
|
463
|
+
<hm-price [amount]="price.amount" [currency]="currency()" period="month" size="small" />
|
|
464
|
+
}
|
|
465
|
+
</span>
|
|
466
|
+
</label>
|
|
467
|
+
}
|
|
468
|
+
</fieldset>
|
|
469
|
+
`,
|
|
470
|
+
}]
|
|
471
|
+
}], propDecorators: { plans: [{ type: i0.Input, args: [{ isSignal: true, alias: "plans", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], cycle: [{ type: i0.Input, args: [{ isSignal: true, alias: "cycle", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], currentPlanId: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPlanId", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], legendHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendHidden", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
472
|
+
|
|
473
|
+
/**
|
|
474
|
+
* Tabela de preços (`hm-pricing-table`): alternador mensal/anual (com a maior economia anual no rótulo),
|
|
475
|
+
* um cartão por plano com preço por mês, descrição, recursos e o botão de escolher ("Fale com vendas" no
|
|
476
|
+
* plano sob consulta, "Plano atual" desabilitado no que a pessoa já tem) e, se quiser, a tabela
|
|
477
|
+
* comparativa com todos os recursos.
|
|
478
|
+
*
|
|
479
|
+
* ```html
|
|
480
|
+
* <hm-pricing-table [plans]="planos" [(cycle)]="ciclo" currentPlanId="basico" showComparison (choose)="assinar($event)" (contact)="falarComVendas()" />
|
|
481
|
+
* ```
|
|
482
|
+
*
|
|
483
|
+
* Recurso com `value` texto ("10 GB") aparece escrito; `true`/`false` viram "Incluso"/"Não incluso"
|
|
484
|
+
* (marca visual + texto para leitor de tela). As linhas da comparação se alinham pelo `id` do recurso.
|
|
485
|
+
*/
|
|
486
|
+
class PricingTableComponent {
|
|
487
|
+
#icons = useHermesIcons(BILLING_ICONS);
|
|
488
|
+
plans = input([], ...(ngDevMode ? [{ debugName: "plans" }] : /* istanbul ignore next */ []));
|
|
489
|
+
cycle = model('monthly', ...(ngDevMode ? [{ debugName: "cycle" }] : /* istanbul ignore next */ []));
|
|
490
|
+
currency = input('BRL', ...(ngDevMode ? [{ debugName: "currency" }] : /* istanbul ignore next */ []));
|
|
491
|
+
currentPlanId = input('', ...(ngDevMode ? [{ debugName: "currentPlanId" }] : /* istanbul ignore next */ []));
|
|
492
|
+
/** Mostra o alternador de ciclo (some quando nenhum plano tem preço anual). */
|
|
493
|
+
cycleToggle = input(true, { ...(ngDevMode ? { debugName: "cycleToggle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
494
|
+
showComparison = input(false, { ...(ngDevMode ? { debugName: "showComparison" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
495
|
+
headingLevel = input(3, ...(ngDevMode ? [{ debugName: "headingLevel" }] : /* istanbul ignore next */ []));
|
|
496
|
+
/** Pediu para escolher o plano (id). */
|
|
497
|
+
choose = output();
|
|
498
|
+
/** Pediu contato para o plano sob consulta (id). */
|
|
499
|
+
contact = output();
|
|
500
|
+
/** Sobrescreve textos do catálogo da peça (`BILLING_MESSAGES_PT_BR`). */
|
|
501
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
502
|
+
#text = localCatalog(BILLING_MESSAGES, BILLING_MESSAGES_PT_BR, () => this.texts());
|
|
503
|
+
#locale = formatLocale();
|
|
504
|
+
text = this.#text;
|
|
505
|
+
showCycle = computed(() => this.cycleToggle() && this.plans().some((plan) => !!plan.price.yearly), ...(ngDevMode ? [{ debugName: "showCycle" }] : /* istanbul ignore next */ []));
|
|
506
|
+
cycleOptions = computed(() => {
|
|
507
|
+
const text = this.text().cycle;
|
|
508
|
+
const savings = bestYearlySavings(this.plans());
|
|
509
|
+
return [
|
|
510
|
+
{ value: 'monthly', label: text.monthly },
|
|
511
|
+
{ value: 'yearly', label: savings ? formatMessage(text.yearlySave, { percent: savings }) : text.yearly },
|
|
512
|
+
];
|
|
513
|
+
}, ...(ngDevMode ? [{ debugName: "cycleOptions" }] : /* istanbul ignore next */ []));
|
|
514
|
+
rows = computed(() => comparisonRows(this.plans()), ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
515
|
+
monthly(plan) {
|
|
516
|
+
const amount = planMonthlyPrice(plan, this.cycle(), this.currency());
|
|
517
|
+
return amount === null ? null : { amount };
|
|
518
|
+
}
|
|
519
|
+
billedYearly(plan) {
|
|
520
|
+
return formatMessage(this.text().cycle.billedYearly, { amount: formatMoney(plan.price.yearly ?? 0, this.currency(), this.#locale()) });
|
|
521
|
+
}
|
|
522
|
+
chooseText(plan) {
|
|
523
|
+
return formatMessage(this.text().plan.choose, { plan: plan.name });
|
|
524
|
+
}
|
|
525
|
+
valueOf(plan, featureId) {
|
|
526
|
+
return planFeatureValue(plan, featureId);
|
|
527
|
+
}
|
|
528
|
+
isText(value) {
|
|
529
|
+
return typeof value === 'string';
|
|
530
|
+
}
|
|
531
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: PricingTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
532
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: PricingTableComponent, isStandalone: true, selector: "hm-pricing-table", inputs: { plans: { classPropertyName: "plans", publicName: "plans", isSignal: true, isRequired: false, transformFunction: null }, cycle: { classPropertyName: "cycle", publicName: "cycle", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, currentPlanId: { classPropertyName: "currentPlanId", publicName: "currentPlanId", isSignal: true, isRequired: false, transformFunction: null }, cycleToggle: { classPropertyName: "cycleToggle", publicName: "cycleToggle", isSignal: true, isRequired: false, transformFunction: null }, showComparison: { classPropertyName: "showComparison", publicName: "showComparison", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { cycle: "cycleChange", choose: "choose", contact: "contact" }, host: { classAttribute: "hm-pricing-table" }, ngImport: i0, template: `
|
|
533
|
+
@if (showCycle()) {
|
|
534
|
+
<div class="hm-pricing-table__cycle">
|
|
535
|
+
<hm-segmented-control [label]="text().cycle.label" [options]="cycleOptions()" [value]="cycle()" (valueChange)="cycle.set($any($event))" />
|
|
536
|
+
</div>
|
|
537
|
+
}
|
|
538
|
+
<ul class="hm-pricing-table__plans" [attr.aria-label]="text().plan.plans">
|
|
539
|
+
@for (plan of plans(); track plan.id) {
|
|
540
|
+
<li class="hm-pricing-table__plan" [class.hm-pricing-table__plan--highlighted]="!!plan.highlighted">
|
|
541
|
+
@if (plan.badge) {
|
|
542
|
+
<hm-tag class="hm-pricing-table__badge" [name]="plan.badge" color="primary" />
|
|
543
|
+
}
|
|
544
|
+
<div class="hm-pricing-table__name" role="heading" [attr.aria-level]="headingLevel()">{{ plan.name }}</div>
|
|
545
|
+
@if (plan.description) {
|
|
546
|
+
<p class="hm-pricing-table__description">{{ plan.description }}</p>
|
|
547
|
+
}
|
|
548
|
+
<div class="hm-pricing-table__price">
|
|
549
|
+
@if (plan.custom) {
|
|
550
|
+
<span class="hm-pricing-table__custom">{{ text().plan.custom }}</span>
|
|
551
|
+
} @else if (monthly(plan); as price) {
|
|
552
|
+
<hm-price [amount]="price.amount" [currency]="currency()" period="month" size="large" />
|
|
553
|
+
@if (cycle() === 'yearly' && plan.price.yearly) {
|
|
554
|
+
<span class="hm-pricing-table__billed">{{ billedYearly(plan) }}</span>
|
|
555
|
+
}
|
|
556
|
+
}
|
|
557
|
+
</div>
|
|
558
|
+
@if (plan.id === currentPlanId()) {
|
|
559
|
+
<hm-button emphasis="medium" block disabled>{{ text().plan.current }}</hm-button>
|
|
560
|
+
} @else if (plan.custom) {
|
|
561
|
+
<hm-button emphasis="medium" block (clicked)="contact.emit(plan.id)">{{ text().plan.contact }}</hm-button>
|
|
562
|
+
} @else {
|
|
563
|
+
<hm-button block [emphasis]="plan.highlighted ? 'high' : 'medium'" [disabled]="!!plan.disabled || !monthly(plan)" (clicked)="choose.emit(plan.id)">
|
|
564
|
+
{{ chooseText(plan) }}
|
|
565
|
+
</hm-button>
|
|
566
|
+
}
|
|
567
|
+
@if (plan.features?.length) {
|
|
568
|
+
<ul class="hm-pricing-table__features">
|
|
569
|
+
@for (feature of plan.features; track feature.id) {
|
|
570
|
+
<li class="hm-pricing-table__feature" [class.hm-pricing-table__feature--off]="feature.value === false">
|
|
571
|
+
<hm-icon [shape]="feature.value === false ? 'minus' : 'check'" />
|
|
572
|
+
<span>
|
|
573
|
+
@if (feature.value === false) {
|
|
574
|
+
<span class="hm-visually-hidden">{{ text().plan.notIncluded }}: </span>
|
|
575
|
+
}
|
|
576
|
+
{{ feature.label }}@if (isText(feature.value)) {: {{ feature.value }}}
|
|
577
|
+
</span>
|
|
578
|
+
</li>
|
|
579
|
+
}
|
|
580
|
+
</ul>
|
|
581
|
+
}
|
|
582
|
+
</li>
|
|
583
|
+
}
|
|
584
|
+
</ul>
|
|
585
|
+
@if (showComparison() && rows().length) {
|
|
586
|
+
<div class="hm-pricing-table__compare" tabindex="0" role="region" [attr.aria-label]="text().plan.compare">
|
|
587
|
+
<table class="hm-pricing-table__table">
|
|
588
|
+
<caption class="hm-pricing-table__caption">{{ text().plan.compare }}</caption>
|
|
589
|
+
<thead>
|
|
590
|
+
<tr>
|
|
591
|
+
<th scope="col">{{ text().plan.feature }}</th>
|
|
592
|
+
@for (plan of plans(); track plan.id) {
|
|
593
|
+
<th scope="col">{{ plan.name }}</th>
|
|
594
|
+
}
|
|
595
|
+
</tr>
|
|
596
|
+
</thead>
|
|
597
|
+
<tbody>
|
|
598
|
+
@for (row of rows(); track row.id) {
|
|
599
|
+
<tr>
|
|
600
|
+
<th scope="row">{{ row.label }}</th>
|
|
601
|
+
@for (plan of plans(); track plan.id) {
|
|
602
|
+
<td>
|
|
603
|
+
@if (isText(valueOf(plan, row.id))) {
|
|
604
|
+
{{ valueOf(plan, row.id) }}
|
|
605
|
+
} @else if (valueOf(plan, row.id)) {
|
|
606
|
+
<hm-icon shape="check" /><span class="hm-visually-hidden">{{ text().plan.included }}</span>
|
|
607
|
+
} @else {
|
|
608
|
+
<hm-icon shape="minus" /><span class="hm-visually-hidden">{{ text().plan.notIncluded }}</span>
|
|
609
|
+
}
|
|
610
|
+
</td>
|
|
611
|
+
}
|
|
612
|
+
</tr>
|
|
613
|
+
}
|
|
614
|
+
</tbody>
|
|
615
|
+
</table>
|
|
616
|
+
</div>
|
|
617
|
+
}
|
|
618
|
+
`, 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: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: PriceComponent, selector: "hm-price", inputs: ["amount", "compareAt", "currency", "size", "period", "unit", "showDiscount", "showSavings", "installments", "interestFree", "freeLabel", "texts"] }, { kind: "component", type: SegmentedControlComponent, selector: "hm-segmented-control", inputs: ["options", "value", "label", "size", "emphasis"], outputs: ["valueChange"] }, { kind: "component", type: TagComponent, selector: "hm-tag", inputs: ["name", "color", "compact"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
619
|
+
}
|
|
620
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: PricingTableComponent, decorators: [{
|
|
621
|
+
type: Component,
|
|
622
|
+
args: [{
|
|
623
|
+
selector: 'hm-pricing-table',
|
|
624
|
+
imports: [ButtonComponent, IconComponent, PriceComponent, SegmentedControlComponent, TagComponent],
|
|
625
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
626
|
+
host: { class: 'hm-pricing-table' },
|
|
627
|
+
template: `
|
|
628
|
+
@if (showCycle()) {
|
|
629
|
+
<div class="hm-pricing-table__cycle">
|
|
630
|
+
<hm-segmented-control [label]="text().cycle.label" [options]="cycleOptions()" [value]="cycle()" (valueChange)="cycle.set($any($event))" />
|
|
631
|
+
</div>
|
|
632
|
+
}
|
|
633
|
+
<ul class="hm-pricing-table__plans" [attr.aria-label]="text().plan.plans">
|
|
634
|
+
@for (plan of plans(); track plan.id) {
|
|
635
|
+
<li class="hm-pricing-table__plan" [class.hm-pricing-table__plan--highlighted]="!!plan.highlighted">
|
|
636
|
+
@if (plan.badge) {
|
|
637
|
+
<hm-tag class="hm-pricing-table__badge" [name]="plan.badge" color="primary" />
|
|
638
|
+
}
|
|
639
|
+
<div class="hm-pricing-table__name" role="heading" [attr.aria-level]="headingLevel()">{{ plan.name }}</div>
|
|
640
|
+
@if (plan.description) {
|
|
641
|
+
<p class="hm-pricing-table__description">{{ plan.description }}</p>
|
|
642
|
+
}
|
|
643
|
+
<div class="hm-pricing-table__price">
|
|
644
|
+
@if (plan.custom) {
|
|
645
|
+
<span class="hm-pricing-table__custom">{{ text().plan.custom }}</span>
|
|
646
|
+
} @else if (monthly(plan); as price) {
|
|
647
|
+
<hm-price [amount]="price.amount" [currency]="currency()" period="month" size="large" />
|
|
648
|
+
@if (cycle() === 'yearly' && plan.price.yearly) {
|
|
649
|
+
<span class="hm-pricing-table__billed">{{ billedYearly(plan) }}</span>
|
|
650
|
+
}
|
|
651
|
+
}
|
|
652
|
+
</div>
|
|
653
|
+
@if (plan.id === currentPlanId()) {
|
|
654
|
+
<hm-button emphasis="medium" block disabled>{{ text().plan.current }}</hm-button>
|
|
655
|
+
} @else if (plan.custom) {
|
|
656
|
+
<hm-button emphasis="medium" block (clicked)="contact.emit(plan.id)">{{ text().plan.contact }}</hm-button>
|
|
657
|
+
} @else {
|
|
658
|
+
<hm-button block [emphasis]="plan.highlighted ? 'high' : 'medium'" [disabled]="!!plan.disabled || !monthly(plan)" (clicked)="choose.emit(plan.id)">
|
|
659
|
+
{{ chooseText(plan) }}
|
|
660
|
+
</hm-button>
|
|
661
|
+
}
|
|
662
|
+
@if (plan.features?.length) {
|
|
663
|
+
<ul class="hm-pricing-table__features">
|
|
664
|
+
@for (feature of plan.features; track feature.id) {
|
|
665
|
+
<li class="hm-pricing-table__feature" [class.hm-pricing-table__feature--off]="feature.value === false">
|
|
666
|
+
<hm-icon [shape]="feature.value === false ? 'minus' : 'check'" />
|
|
667
|
+
<span>
|
|
668
|
+
@if (feature.value === false) {
|
|
669
|
+
<span class="hm-visually-hidden">{{ text().plan.notIncluded }}: </span>
|
|
670
|
+
}
|
|
671
|
+
{{ feature.label }}@if (isText(feature.value)) {: {{ feature.value }}}
|
|
672
|
+
</span>
|
|
673
|
+
</li>
|
|
674
|
+
}
|
|
675
|
+
</ul>
|
|
676
|
+
}
|
|
677
|
+
</li>
|
|
678
|
+
}
|
|
679
|
+
</ul>
|
|
680
|
+
@if (showComparison() && rows().length) {
|
|
681
|
+
<div class="hm-pricing-table__compare" tabindex="0" role="region" [attr.aria-label]="text().plan.compare">
|
|
682
|
+
<table class="hm-pricing-table__table">
|
|
683
|
+
<caption class="hm-pricing-table__caption">{{ text().plan.compare }}</caption>
|
|
684
|
+
<thead>
|
|
685
|
+
<tr>
|
|
686
|
+
<th scope="col">{{ text().plan.feature }}</th>
|
|
687
|
+
@for (plan of plans(); track plan.id) {
|
|
688
|
+
<th scope="col">{{ plan.name }}</th>
|
|
689
|
+
}
|
|
690
|
+
</tr>
|
|
691
|
+
</thead>
|
|
692
|
+
<tbody>
|
|
693
|
+
@for (row of rows(); track row.id) {
|
|
694
|
+
<tr>
|
|
695
|
+
<th scope="row">{{ row.label }}</th>
|
|
696
|
+
@for (plan of plans(); track plan.id) {
|
|
697
|
+
<td>
|
|
698
|
+
@if (isText(valueOf(plan, row.id))) {
|
|
699
|
+
{{ valueOf(plan, row.id) }}
|
|
700
|
+
} @else if (valueOf(plan, row.id)) {
|
|
701
|
+
<hm-icon shape="check" /><span class="hm-visually-hidden">{{ text().plan.included }}</span>
|
|
702
|
+
} @else {
|
|
703
|
+
<hm-icon shape="minus" /><span class="hm-visually-hidden">{{ text().plan.notIncluded }}</span>
|
|
704
|
+
}
|
|
705
|
+
</td>
|
|
706
|
+
}
|
|
707
|
+
</tr>
|
|
708
|
+
}
|
|
709
|
+
</tbody>
|
|
710
|
+
</table>
|
|
711
|
+
</div>
|
|
712
|
+
}
|
|
713
|
+
`,
|
|
714
|
+
}]
|
|
715
|
+
}], propDecorators: { plans: [{ type: i0.Input, args: [{ isSignal: true, alias: "plans", required: false }] }], cycle: [{ type: i0.Input, args: [{ isSignal: true, alias: "cycle", required: false }] }, { type: i0.Output, args: ["cycleChange"] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], currentPlanId: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentPlanId", required: false }] }], cycleToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "cycleToggle", required: false }] }], showComparison: [{ type: i0.Input, args: [{ isSignal: true, alias: "showComparison", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], choose: [{ type: i0.Output, args: ["choose"] }], contact: [{ type: i0.Output, args: ["contact"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Assinatura (`hm-subscription-card`): plano, situação, preço por ciclo, próxima cobrança, fim do teste
|
|
719
|
+
* ou do acesso, usuários, meio de cobrança e as ações que a situação pede — mudar de plano, cancelar,
|
|
720
|
+
* reativar (cancelada ou pausada) e atualizar o pagamento (pagamento pendente, com aviso).
|
|
721
|
+
*
|
|
722
|
+
* ```html
|
|
723
|
+
* <hm-subscription-card [subscription]="assinatura" (changePlan)="planos()" (cancel)="confirmarCancelamento()" />
|
|
724
|
+
* ```
|
|
725
|
+
*/
|
|
726
|
+
class SubscriptionCardComponent {
|
|
727
|
+
#icons = useHermesIcons(BILLING_ICONS);
|
|
728
|
+
subscription = input.required(...(ngDevMode ? [{ debugName: "subscription" }] : /* istanbul ignore next */ []));
|
|
729
|
+
headingLevel = input(3, ...(ngDevMode ? [{ debugName: "headingLevel" }] : /* istanbul ignore next */ []));
|
|
730
|
+
changePlan = output();
|
|
731
|
+
cancel = output();
|
|
732
|
+
resume = output();
|
|
733
|
+
updatePayment = output();
|
|
734
|
+
/** Esconde as ações (só leitura). */
|
|
735
|
+
readonly = input(false, { ...(ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
736
|
+
/** Sobrescreve textos do catálogo da peça (`BILLING_MESSAGES_PT_BR`). */
|
|
737
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
738
|
+
#text = localCatalog(BILLING_MESSAGES, BILLING_MESSAGES_PT_BR, () => this.texts());
|
|
739
|
+
#locale = formatLocale();
|
|
740
|
+
text = this.#text;
|
|
741
|
+
s = computed(() => this.#text().subscription, ...(ngDevMode ? [{ debugName: "s" }] : /* istanbul ignore next */ []));
|
|
742
|
+
currency = computed(() => this.subscription().currency ?? 'BRL', ...(ngDevMode ? [{ debugName: "currency" }] : /* istanbul ignore next */ []));
|
|
743
|
+
tone = computed(() => SUBSCRIPTION_STATUS_TONES[this.subscription().status], ...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
|
|
744
|
+
resumable = computed(() => {
|
|
745
|
+
const sub = this.subscription();
|
|
746
|
+
return sub.status === 'paused' || sub.status === 'cancelled' || (!!sub.cancelAt && sub.status === 'active');
|
|
747
|
+
}, ...(ngDevMode ? [{ debugName: "resumable" }] : /* istanbul ignore next */ []));
|
|
748
|
+
facts = computed(() => {
|
|
749
|
+
const sub = this.subscription();
|
|
750
|
+
const text = this.s();
|
|
751
|
+
const date = (value) => formatDate(value, this.#locale(), { day: 'numeric', month: 'long', year: 'numeric' });
|
|
752
|
+
const facts = [];
|
|
753
|
+
if (sub.status === 'trialing' && sub.trialEndsAt)
|
|
754
|
+
facts.push(formatMessage(text.trialEnds, { date: date(sub.trialEndsAt) }));
|
|
755
|
+
if (sub.cancelAt)
|
|
756
|
+
facts.push(formatMessage(text.cancelsOn, { date: date(sub.cancelAt) }));
|
|
757
|
+
else if (sub.nextBillingDate && (sub.status === 'active' || sub.status === 'trialing' || sub.status === 'past-due')) {
|
|
758
|
+
facts.push(formatMessage(text.nextCharge, { amount: formatMoney(sub.price, this.currency(), this.#locale()), date: date(sub.nextBillingDate) }));
|
|
759
|
+
}
|
|
760
|
+
if (sub.seats)
|
|
761
|
+
facts.push(pluralMessage(text.seats, sub.seats, this.#locale()));
|
|
762
|
+
if (sub.paymentMethod)
|
|
763
|
+
facts.push(formatMessage(text.paymentMethod, { method: sub.paymentMethod }));
|
|
764
|
+
return facts;
|
|
765
|
+
}, ...(ngDevMode ? [{ debugName: "facts" }] : /* istanbul ignore next */ []));
|
|
766
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SubscriptionCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
767
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: SubscriptionCardComponent, isStandalone: true, selector: "hm-subscription-card", inputs: { subscription: { classPropertyName: "subscription", publicName: "subscription", isSignal: true, isRequired: true, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", 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: { changePlan: "changePlan", cancel: "cancel", resume: "resume", updatePayment: "updatePayment" }, host: { properties: { "class.hm-subscription-card--attention": "subscription().status === 'past-due'" }, classAttribute: "hm-subscription-card" }, ngImport: i0, template: `
|
|
768
|
+
<div class="hm-subscription-card__header">
|
|
769
|
+
<div class="hm-subscription-card__plan" role="heading" [attr.aria-level]="headingLevel()">{{ subscription().planName }}</div>
|
|
770
|
+
<hm-tag [name]="text().subscriptionStatus[subscription().status]" [color]="tone()" />
|
|
771
|
+
</div>
|
|
772
|
+
<hm-price [amount]="subscription().price" [currency]="currency()" [period]="subscription().cycle === 'yearly' ? 'year' : 'month'" />
|
|
773
|
+
@if (subscription().status === 'past-due') {
|
|
774
|
+
<p class="hm-subscription-card__alert" role="alert">{{ s().pastDue }}</p>
|
|
775
|
+
}
|
|
776
|
+
<ul class="hm-subscription-card__facts">
|
|
777
|
+
@for (fact of facts(); track $index) {
|
|
778
|
+
<li>{{ fact }}</li>
|
|
779
|
+
}
|
|
780
|
+
</ul>
|
|
781
|
+
@if (!readonly()) {
|
|
782
|
+
<div class="hm-subscription-card__actions">
|
|
783
|
+
@if (subscription().status === 'past-due') {
|
|
784
|
+
<hm-button size="small" icon="credit-card" (clicked)="updatePayment.emit()">{{ s().updatePayment }}</hm-button>
|
|
785
|
+
}
|
|
786
|
+
@if (resumable()) {
|
|
787
|
+
<hm-button size="small" (clicked)="resume.emit()">{{ s().resume }}</hm-button>
|
|
788
|
+
} @else if (subscription().status !== 'expired') {
|
|
789
|
+
<hm-button emphasis="medium" size="small" (clicked)="changePlan.emit()">{{ s().changePlan }}</hm-button>
|
|
790
|
+
@if (!subscription().cancelAt) {
|
|
791
|
+
<hm-button emphasis="minimal" intent="danger" size="small" (clicked)="cancel.emit()">{{ s().cancel }}</hm-button>
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
</div>
|
|
795
|
+
}
|
|
796
|
+
`, 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: PriceComponent, selector: "hm-price", inputs: ["amount", "compareAt", "currency", "size", "period", "unit", "showDiscount", "showSavings", "installments", "interestFree", "freeLabel", "texts"] }, { kind: "component", type: TagComponent, selector: "hm-tag", inputs: ["name", "color", "compact"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
797
|
+
}
|
|
798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SubscriptionCardComponent, decorators: [{
|
|
799
|
+
type: Component,
|
|
800
|
+
args: [{
|
|
801
|
+
selector: 'hm-subscription-card',
|
|
802
|
+
imports: [ButtonComponent, PriceComponent, TagComponent],
|
|
803
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
804
|
+
host: { class: 'hm-subscription-card', '[class.hm-subscription-card--attention]': "subscription().status === 'past-due'" },
|
|
805
|
+
template: `
|
|
806
|
+
<div class="hm-subscription-card__header">
|
|
807
|
+
<div class="hm-subscription-card__plan" role="heading" [attr.aria-level]="headingLevel()">{{ subscription().planName }}</div>
|
|
808
|
+
<hm-tag [name]="text().subscriptionStatus[subscription().status]" [color]="tone()" />
|
|
809
|
+
</div>
|
|
810
|
+
<hm-price [amount]="subscription().price" [currency]="currency()" [period]="subscription().cycle === 'yearly' ? 'year' : 'month'" />
|
|
811
|
+
@if (subscription().status === 'past-due') {
|
|
812
|
+
<p class="hm-subscription-card__alert" role="alert">{{ s().pastDue }}</p>
|
|
813
|
+
}
|
|
814
|
+
<ul class="hm-subscription-card__facts">
|
|
815
|
+
@for (fact of facts(); track $index) {
|
|
816
|
+
<li>{{ fact }}</li>
|
|
817
|
+
}
|
|
818
|
+
</ul>
|
|
819
|
+
@if (!readonly()) {
|
|
820
|
+
<div class="hm-subscription-card__actions">
|
|
821
|
+
@if (subscription().status === 'past-due') {
|
|
822
|
+
<hm-button size="small" icon="credit-card" (clicked)="updatePayment.emit()">{{ s().updatePayment }}</hm-button>
|
|
823
|
+
}
|
|
824
|
+
@if (resumable()) {
|
|
825
|
+
<hm-button size="small" (clicked)="resume.emit()">{{ s().resume }}</hm-button>
|
|
826
|
+
} @else if (subscription().status !== 'expired') {
|
|
827
|
+
<hm-button emphasis="medium" size="small" (clicked)="changePlan.emit()">{{ s().changePlan }}</hm-button>
|
|
828
|
+
@if (!subscription().cancelAt) {
|
|
829
|
+
<hm-button emphasis="minimal" intent="danger" size="small" (clicked)="cancel.emit()">{{ s().cancel }}</hm-button>
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
</div>
|
|
833
|
+
}
|
|
834
|
+
`,
|
|
835
|
+
}]
|
|
836
|
+
}], propDecorators: { subscription: [{ type: i0.Input, args: [{ isSignal: true, alias: "subscription", required: true }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], changePlan: [{ type: i0.Output, args: ["changePlan"] }], cancel: [{ type: i0.Output, args: ["cancel"] }], resume: [{ type: i0.Output, args: ["resume"] }], updatePayment: [{ type: i0.Output, args: ["updatePayment"] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
837
|
+
|
|
838
|
+
let sequence = 0;
|
|
839
|
+
/**
|
|
840
|
+
* Medidor de uso de um recurso do plano (`hm-usage-meter`): quanto foi usado do limite ("7,2 GB de 10 GB"),
|
|
841
|
+
* barra com aviso perto do limite e alarme ao passar dele, quanto resta e, com `periodFraction`, a
|
|
842
|
+
* projeção para o fim do período no ritmo atual.
|
|
843
|
+
*
|
|
844
|
+
* ```html
|
|
845
|
+
* <hm-usage-meter label="Armazenamento" [used]="7.2" [limit]="10" unit="GB" [periodFraction]="0.6" />
|
|
846
|
+
* ```
|
|
847
|
+
*
|
|
848
|
+
* É um `role="meter"` com o texto inteiro em `aria-valuetext`; o nível (perto do limite, excedido) também
|
|
849
|
+
* vem escrito, não só na cor. `limit` nulo = sem limite (sem barra).
|
|
850
|
+
*/
|
|
851
|
+
class UsageMeterComponent {
|
|
852
|
+
#icons = useHermesIcons(BILLING_ICONS);
|
|
853
|
+
label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
854
|
+
used = input.required(...(ngDevMode ? [{ debugName: "used" }] : /* istanbul ignore next */ []));
|
|
855
|
+
/** Limite do plano; `null` = ilimitado. */
|
|
856
|
+
limit = input(null, ...(ngDevMode ? [{ debugName: "limit" }] : /* istanbul ignore next */ []));
|
|
857
|
+
/** Unidade escrita depois dos números ("GB", "usuários"). */
|
|
858
|
+
unit = input('', ...(ngDevMode ? [{ debugName: "unit" }] : /* istanbul ignore next */ []));
|
|
859
|
+
thresholds = input({}, ...(ngDevMode ? [{ debugName: "thresholds" }] : /* istanbul ignore next */ []));
|
|
860
|
+
/** Fração do período de cobrança já corrida (0–1), para projetar o uso no fim. */
|
|
861
|
+
periodFraction = input(null, ...(ngDevMode ? [{ debugName: "periodFraction" }] : /* istanbul ignore next */ []));
|
|
862
|
+
compact = input(false, { ...(ngDevMode ? { debugName: "compact" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
863
|
+
/** Sobrescreve textos do catálogo da peça (`BILLING_MESSAGES_PT_BR`). */
|
|
864
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
865
|
+
#text = localCatalog(BILLING_MESSAGES, BILLING_MESSAGES_PT_BR, () => this.texts());
|
|
866
|
+
#locale = formatLocale();
|
|
867
|
+
labelId = `hm-usage-meter-${++sequence}`;
|
|
868
|
+
reading = computed(() => readUsage(this.used(), this.limit(), this.thresholds()), ...(ngDevMode ? [{ debugName: "reading" }] : /* istanbul ignore next */ []));
|
|
869
|
+
tone = computed(() => USAGE_LEVEL_TONES[this.reading().level], ...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
|
|
870
|
+
valueNow = computed(() => Math.min(this.reading().used, this.reading().limit ?? 0), ...(ngDevMode ? [{ debugName: "valueNow" }] : /* istanbul ignore next */ []));
|
|
871
|
+
fillPercent = computed(() => Math.min(100, this.reading().fraction * 100), ...(ngDevMode ? [{ debugName: "fillPercent" }] : /* istanbul ignore next */ []));
|
|
872
|
+
#projected = computed(() => {
|
|
873
|
+
const fraction = this.periodFraction();
|
|
874
|
+
if (fraction === null || fraction <= 0 || fraction >= 1)
|
|
875
|
+
return null;
|
|
876
|
+
return this.reading().used / fraction;
|
|
877
|
+
}, ...(ngDevMode ? [{ debugName: "#projected" }] : /* istanbul ignore next */ []));
|
|
878
|
+
projectedPercent = computed(() => {
|
|
879
|
+
const projected = this.#projected();
|
|
880
|
+
const limit = this.reading().limit;
|
|
881
|
+
return projected === null || !limit ? null : Math.min(100, (projected / limit) * 100);
|
|
882
|
+
}, ...(ngDevMode ? [{ debugName: "projectedPercent" }] : /* istanbul ignore next */ []));
|
|
883
|
+
#amount(value) {
|
|
884
|
+
const number = formatNumber(value, this.#locale(), 1);
|
|
885
|
+
return this.unit() ? `${number} ${this.unit()}` : number;
|
|
886
|
+
}
|
|
887
|
+
valueText = computed(() => {
|
|
888
|
+
const reading = this.reading();
|
|
889
|
+
const text = this.#text().usage;
|
|
890
|
+
return reading.limit === null
|
|
891
|
+
? formatMessage(text.unlimited, { used: this.#amount(reading.used) })
|
|
892
|
+
: formatMessage(text.of, { used: this.#amount(reading.used), limit: this.#amount(reading.limit) });
|
|
893
|
+
}, ...(ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []));
|
|
894
|
+
statusText = computed(() => {
|
|
895
|
+
const text = this.#text().usage;
|
|
896
|
+
switch (this.reading().level) {
|
|
897
|
+
case 'warning':
|
|
898
|
+
return text.warning;
|
|
899
|
+
case 'critical':
|
|
900
|
+
return text.critical;
|
|
901
|
+
case 'exceeded':
|
|
902
|
+
return text.exceededStatus;
|
|
903
|
+
default:
|
|
904
|
+
return '';
|
|
905
|
+
}
|
|
906
|
+
}, ...(ngDevMode ? [{ debugName: "statusText" }] : /* istanbul ignore next */ []));
|
|
907
|
+
detailText = computed(() => {
|
|
908
|
+
const reading = this.reading();
|
|
909
|
+
const text = this.#text().usage;
|
|
910
|
+
if (reading.limit === null)
|
|
911
|
+
return '';
|
|
912
|
+
return reading.overage > 0
|
|
913
|
+
? formatMessage(text.exceeded, { amount: this.#amount(reading.overage) })
|
|
914
|
+
: formatMessage(text.remaining, { amount: this.#amount(reading.remaining ?? 0) });
|
|
915
|
+
}, ...(ngDevMode ? [{ debugName: "detailText" }] : /* istanbul ignore next */ []));
|
|
916
|
+
spoken = computed(() => [this.valueText(), this.statusText(), this.detailText()].filter(Boolean).join('. '), ...(ngDevMode ? [{ debugName: "spoken" }] : /* istanbul ignore next */ []));
|
|
917
|
+
projectionText = computed(() => {
|
|
918
|
+
const projected = this.#projected();
|
|
919
|
+
if (projected === null || this.reading().level === 'exceeded')
|
|
920
|
+
return '';
|
|
921
|
+
return formatMessage(this.#text().usage.projected, { amount: this.#amount(projected) });
|
|
922
|
+
}, ...(ngDevMode ? [{ debugName: "projectionText" }] : /* istanbul ignore next */ []));
|
|
923
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: UsageMeterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
924
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: UsageMeterComponent, isStandalone: true, selector: "hm-usage-meter", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, used: { classPropertyName: "used", publicName: "used", isSignal: true, isRequired: true, transformFunction: null }, limit: { classPropertyName: "limit", publicName: "limit", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null }, periodFraction: { classPropertyName: "periodFraction", publicName: "periodFraction", 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-usage-meter hm-usage-meter--' + tone()", "class.hm-usage-meter--compact": "compact()" } }, ngImport: i0, template: `
|
|
925
|
+
<div class="hm-usage-meter__header">
|
|
926
|
+
<span class="hm-usage-meter__label" [id]="labelId">{{ label() }}</span>
|
|
927
|
+
<span class="hm-usage-meter__value">{{ valueText() }}</span>
|
|
928
|
+
</div>
|
|
929
|
+
@if (reading().limit !== null) {
|
|
930
|
+
<div
|
|
931
|
+
class="hm-usage-meter__bar"
|
|
932
|
+
role="meter"
|
|
933
|
+
aria-valuemin="0"
|
|
934
|
+
[attr.aria-valuemax]="reading().limit"
|
|
935
|
+
[attr.aria-valuenow]="valueNow()"
|
|
936
|
+
[attr.aria-valuetext]="spoken()"
|
|
937
|
+
[attr.aria-labelledby]="labelId"
|
|
938
|
+
>
|
|
939
|
+
<span class="hm-usage-meter__fill" [style.inline-size.%]="fillPercent()"></span>
|
|
940
|
+
@if (projectedPercent() !== null) {
|
|
941
|
+
<span class="hm-usage-meter__projection" [style.inset-inline-start.%]="projectedPercent()" aria-hidden="true"></span>
|
|
942
|
+
}
|
|
943
|
+
</div>
|
|
944
|
+
}
|
|
945
|
+
<div class="hm-usage-meter__footer">
|
|
946
|
+
@if (statusText()) {
|
|
947
|
+
<span class="hm-usage-meter__status">{{ statusText() }}</span>
|
|
948
|
+
}
|
|
949
|
+
@if (detailText()) {
|
|
950
|
+
<span class="hm-usage-meter__detail">{{ detailText() }}</span>
|
|
951
|
+
}
|
|
952
|
+
</div>
|
|
953
|
+
@if (projectionText()) {
|
|
954
|
+
<p class="hm-usage-meter__projection-text">{{ projectionText() }}</p>
|
|
955
|
+
}
|
|
956
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
957
|
+
}
|
|
958
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: UsageMeterComponent, decorators: [{
|
|
959
|
+
type: Component,
|
|
960
|
+
args: [{
|
|
961
|
+
selector: 'hm-usage-meter',
|
|
962
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
963
|
+
host: { '[class]': "'hm-usage-meter hm-usage-meter--' + tone()", '[class.hm-usage-meter--compact]': 'compact()' },
|
|
964
|
+
template: `
|
|
965
|
+
<div class="hm-usage-meter__header">
|
|
966
|
+
<span class="hm-usage-meter__label" [id]="labelId">{{ label() }}</span>
|
|
967
|
+
<span class="hm-usage-meter__value">{{ valueText() }}</span>
|
|
968
|
+
</div>
|
|
969
|
+
@if (reading().limit !== null) {
|
|
970
|
+
<div
|
|
971
|
+
class="hm-usage-meter__bar"
|
|
972
|
+
role="meter"
|
|
973
|
+
aria-valuemin="0"
|
|
974
|
+
[attr.aria-valuemax]="reading().limit"
|
|
975
|
+
[attr.aria-valuenow]="valueNow()"
|
|
976
|
+
[attr.aria-valuetext]="spoken()"
|
|
977
|
+
[attr.aria-labelledby]="labelId"
|
|
978
|
+
>
|
|
979
|
+
<span class="hm-usage-meter__fill" [style.inline-size.%]="fillPercent()"></span>
|
|
980
|
+
@if (projectedPercent() !== null) {
|
|
981
|
+
<span class="hm-usage-meter__projection" [style.inset-inline-start.%]="projectedPercent()" aria-hidden="true"></span>
|
|
982
|
+
}
|
|
983
|
+
</div>
|
|
984
|
+
}
|
|
985
|
+
<div class="hm-usage-meter__footer">
|
|
986
|
+
@if (statusText()) {
|
|
987
|
+
<span class="hm-usage-meter__status">{{ statusText() }}</span>
|
|
988
|
+
}
|
|
989
|
+
@if (detailText()) {
|
|
990
|
+
<span class="hm-usage-meter__detail">{{ detailText() }}</span>
|
|
991
|
+
}
|
|
992
|
+
</div>
|
|
993
|
+
@if (projectionText()) {
|
|
994
|
+
<p class="hm-usage-meter__projection-text">{{ projectionText() }}</p>
|
|
995
|
+
}
|
|
996
|
+
`,
|
|
997
|
+
}]
|
|
998
|
+
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], used: [{ type: i0.Input, args: [{ isSignal: true, alias: "used", required: true }] }], limit: [{ type: i0.Input, args: [{ isSignal: true, alias: "limit", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }], periodFraction: [{ type: i0.Input, args: [{ isSignal: true, alias: "periodFraction", required: false }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
999
|
+
|
|
1000
|
+
// Ponto de import `@trismegisto/angular/billing` (secundário do ng-packagr).
|
|
1001
|
+
|
|
1002
|
+
/**
|
|
1003
|
+
* Generated bundle index. Do not edit.
|
|
1004
|
+
*/
|
|
1005
|
+
|
|
1006
|
+
export { BILLING_MESSAGES, BILLING_MESSAGES_EN, BILLING_MESSAGES_ES, BILLING_MESSAGES_PT_BR, BillingPeriodComponent, PlanPickerComponent, PricingTableComponent, SubscriptionCardComponent, UsageMeterComponent };
|
|
1007
|
+
//# sourceMappingURL=trismegisto-angular-billing.mjs.map
|