@trismegisto/angular 3.3.2 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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-toast.mjs +135 -34
- package/fesm2022/trismegisto-angular-toast.mjs.map +1 -1
- 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-persistence.mjs +3 -2
- package/fesm2022/trismegisto-angular-workspace-persistence.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workspace.mjs +229 -44
- package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
- package/fesm2022/trismegisto-angular.mjs +117 -7
- 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-toast.d.ts +50 -11
- package/types/trismegisto-angular-toast.d.ts.map +1 -1
- 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-persistence.d.ts +5 -4
- package/types/trismegisto-angular-workspace-persistence.d.ts.map +1 -1
- 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 +120 -10
- package/types/trismegisto-angular.d.ts.map +1 -1
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, booleanAttribute, numberAttribute, output, inject, computed, signal, DOCUMENT, afterNextRender, effect, untracked, DestroyRef, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { ScrollSpy, findInPageTarget, moveFocusTo } from '@trismegisto/primitives';
|
|
4
|
+
import { HermesI18nService } from '@trismegisto/angular/i18n';
|
|
5
|
+
|
|
6
|
+
const ANCHOR_NAV_MESSAGES_PT_BR = { label: 'Nesta página' };
|
|
7
|
+
const ANCHOR_NAV_MESSAGES_EN = { label: 'On this page' };
|
|
8
|
+
const ANCHOR_NAV_MESSAGES_ES = { label: 'En esta página' };
|
|
9
|
+
const ANCHOR_NAV_MESSAGES = {
|
|
10
|
+
'pt-BR': ANCHOR_NAV_MESSAGES_PT_BR,
|
|
11
|
+
pt: ANCHOR_NAV_MESSAGES_PT_BR,
|
|
12
|
+
en: ANCHOR_NAV_MESSAGES_EN,
|
|
13
|
+
es: ANCHOR_NAV_MESSAGES_ES,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
/** Depois de um clique, o item clicado fica ativo durante a rolagem até ele (a rolagem suave passa pelas outras). */
|
|
17
|
+
const CLICK_LOCK_MS = 900;
|
|
18
|
+
let sequence = 0;
|
|
19
|
+
/**
|
|
20
|
+
* Índice da página com scrollspy ("Nesta página"): os links levam a cada seção e o item da seção que está
|
|
21
|
+
* em leitura fica marcado enquanto a pessoa rola.
|
|
22
|
+
*
|
|
23
|
+
* ```html
|
|
24
|
+
* <hm-anchor-nav [items]="secoes" sticky [offset]="64" />
|
|
25
|
+
* <section id="visao-geral">…</section>
|
|
26
|
+
* <section id="instalacao">…</section>
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* - O item atual tem `aria-current="location"` (não `page`: é um lugar dentro da página), além do destaque.
|
|
30
|
+
* - O clique rola até a seção e põe o foco nela — o próximo Tab continua de lá — sem mudar a URL (num app
|
|
31
|
+
* com `<base href>` um `#id` recarregaria a página).
|
|
32
|
+
* - `offset` é a altura do que fica fixo no topo da área que rola (um cabeçalho): a seção conta como em
|
|
33
|
+
* leitura quando passa dessa linha. A área que rola é achada sozinha (o ancestral rolável da primeira
|
|
34
|
+
* seção, ou a janela).
|
|
35
|
+
* - `prefers-reduced-motion`: a rolagem é instantânea.
|
|
36
|
+
*/
|
|
37
|
+
class AnchorNavComponent {
|
|
38
|
+
/** Seções da página, na ordem em que aparecem. */
|
|
39
|
+
items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
40
|
+
/** Título visível e nome da navegação. Vazio = "Nesta página" do catálogo. */
|
|
41
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
42
|
+
/** Esconde o título da vista (continua sendo o nome da navegação). */
|
|
43
|
+
hideTitle = input(false, { ...(ngDevMode ? { debugName: "hideTitle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
44
|
+
/** Altura (px) do que fica fixo no topo da área que rola. */
|
|
45
|
+
offset = input(0, { ...(ngDevMode ? { debugName: "offset" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
46
|
+
/** Rolagem suave no clique (instantânea com `prefers-reduced-motion`). */
|
|
47
|
+
smooth = input(true, { ...(ngDevMode ? { debugName: "smooth" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
48
|
+
/** Gruda o índice no topo enquanto a página rola (`position: sticky`). */
|
|
49
|
+
sticky = input(false, { ...(ngDevMode ? { debugName: "sticky" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
50
|
+
/** A seção em leitura mudou (id, ou `null` antes da primeira). */
|
|
51
|
+
activeChange = output();
|
|
52
|
+
/** Textos próprios (cada chave vence o catálogo do componente). */
|
|
53
|
+
texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
54
|
+
i18n = inject(HermesI18nService);
|
|
55
|
+
text = computed(() => ({ ...this.i18n.pick(ANCHOR_NAV_MESSAGES, ANCHOR_NAV_MESSAGES_PT_BR), ...this.texts() }), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
56
|
+
titleId = `hm-anchor-nav-${++sequence}`;
|
|
57
|
+
/** Id da seção em leitura. */
|
|
58
|
+
active = signal(null, ...(ngDevMode ? [{ debugName: "active" }] : /* istanbul ignore next */ []));
|
|
59
|
+
document = inject(DOCUMENT);
|
|
60
|
+
spy = null;
|
|
61
|
+
lockedUntil = 0;
|
|
62
|
+
constructor() {
|
|
63
|
+
afterNextRender(() => {
|
|
64
|
+
this.spy = new ScrollSpy(this.document, {
|
|
65
|
+
ids: () => this.items().map((item) => item.id),
|
|
66
|
+
offset: () => this.offset(),
|
|
67
|
+
onChange: (id) => {
|
|
68
|
+
if (Date.now() < this.lockedUntil)
|
|
69
|
+
return;
|
|
70
|
+
this.setActive(id);
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
this.spy.observe();
|
|
74
|
+
});
|
|
75
|
+
// Lista nova (seções carregadas depois): mede de novo.
|
|
76
|
+
effect(() => {
|
|
77
|
+
this.items();
|
|
78
|
+
untracked(() => this.spy?.observe());
|
|
79
|
+
});
|
|
80
|
+
inject(DestroyRef).onDestroy(() => this.spy?.disconnect());
|
|
81
|
+
}
|
|
82
|
+
/** Leva à seção `id` (rola e foca). */
|
|
83
|
+
scrollTo(id) {
|
|
84
|
+
const target = findInPageTarget(id, this.document);
|
|
85
|
+
if (!target)
|
|
86
|
+
return false;
|
|
87
|
+
this.lockedUntil = Date.now() + (this.smooth() ? CLICK_LOCK_MS : 0);
|
|
88
|
+
this.setActive(id);
|
|
89
|
+
return moveFocusTo(target, { smooth: this.smooth() });
|
|
90
|
+
}
|
|
91
|
+
go(event, id) {
|
|
92
|
+
event.preventDefault();
|
|
93
|
+
this.scrollTo(id);
|
|
94
|
+
}
|
|
95
|
+
setActive(id) {
|
|
96
|
+
if (this.active() === id)
|
|
97
|
+
return;
|
|
98
|
+
this.active.set(id);
|
|
99
|
+
this.activeChange.emit(id);
|
|
100
|
+
}
|
|
101
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AnchorNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
102
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AnchorNavComponent, isStandalone: true, selector: "hm-anchor-nav", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, hideTitle: { classPropertyName: "hideTitle", publicName: "hideTitle", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, smooth: { classPropertyName: "smooth", publicName: "smooth", isSignal: true, isRequired: false, transformFunction: null }, sticky: { classPropertyName: "sticky", publicName: "sticky", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeChange: "activeChange" }, host: { properties: { "class.hm-anchor-nav-host--sticky": "sticky()" }, classAttribute: "hm-anchor-nav-host" }, ngImport: i0, template: `
|
|
103
|
+
<nav class="hm-anchor-nav" [attr.aria-labelledby]="titleId">
|
|
104
|
+
<p class="hm-anchor-nav__title" [id]="titleId" [class.hm-visually-hidden]="hideTitle()">{{ label() || text().label }}</p>
|
|
105
|
+
<ul class="hm-anchor-nav__list">
|
|
106
|
+
@for (item of items(); track item.id) {
|
|
107
|
+
<li class="hm-anchor-nav__item" [class.hm-anchor-nav__item--sub]="item.level === 2">
|
|
108
|
+
<a
|
|
109
|
+
class="hm-anchor-nav__link"
|
|
110
|
+
[class.hm-anchor-nav__link--current]="active() === item.id"
|
|
111
|
+
[href]="'#' + item.id"
|
|
112
|
+
[attr.aria-current]="active() === item.id ? 'location' : null"
|
|
113
|
+
(click)="go($event, item.id)"
|
|
114
|
+
>{{ item.label }}</a
|
|
115
|
+
>
|
|
116
|
+
</li>
|
|
117
|
+
}
|
|
118
|
+
</ul>
|
|
119
|
+
</nav>
|
|
120
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
121
|
+
}
|
|
122
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AnchorNavComponent, decorators: [{
|
|
123
|
+
type: Component,
|
|
124
|
+
args: [{
|
|
125
|
+
selector: 'hm-anchor-nav',
|
|
126
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
127
|
+
host: { class: 'hm-anchor-nav-host', '[class.hm-anchor-nav-host--sticky]': 'sticky()' },
|
|
128
|
+
template: `
|
|
129
|
+
<nav class="hm-anchor-nav" [attr.aria-labelledby]="titleId">
|
|
130
|
+
<p class="hm-anchor-nav__title" [id]="titleId" [class.hm-visually-hidden]="hideTitle()">{{ label() || text().label }}</p>
|
|
131
|
+
<ul class="hm-anchor-nav__list">
|
|
132
|
+
@for (item of items(); track item.id) {
|
|
133
|
+
<li class="hm-anchor-nav__item" [class.hm-anchor-nav__item--sub]="item.level === 2">
|
|
134
|
+
<a
|
|
135
|
+
class="hm-anchor-nav__link"
|
|
136
|
+
[class.hm-anchor-nav__link--current]="active() === item.id"
|
|
137
|
+
[href]="'#' + item.id"
|
|
138
|
+
[attr.aria-current]="active() === item.id ? 'location' : null"
|
|
139
|
+
(click)="go($event, item.id)"
|
|
140
|
+
>{{ item.label }}</a
|
|
141
|
+
>
|
|
142
|
+
</li>
|
|
143
|
+
}
|
|
144
|
+
</ul>
|
|
145
|
+
</nav>
|
|
146
|
+
`,
|
|
147
|
+
}]
|
|
148
|
+
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], hideTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideTitle", required: false }] }], offset: [{ type: i0.Input, args: [{ isSignal: true, alias: "offset", required: false }] }], smooth: [{ type: i0.Input, args: [{ isSignal: true, alias: "smooth", required: false }] }], sticky: [{ type: i0.Input, args: [{ isSignal: true, alias: "sticky", required: false }] }], activeChange: [{ type: i0.Output, args: ["activeChange"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
149
|
+
|
|
150
|
+
// Ponto de import `@trismegisto/angular/anchor-nav` (secundário do ng-packagr).
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Generated bundle index. Do not edit.
|
|
154
|
+
*/
|
|
155
|
+
|
|
156
|
+
export { ANCHOR_NAV_MESSAGES, ANCHOR_NAV_MESSAGES_EN, ANCHOR_NAV_MESSAGES_ES, ANCHOR_NAV_MESSAGES_PT_BR, AnchorNavComponent };
|
|
157
|
+
//# sourceMappingURL=trismegisto-angular-anchor-nav.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trismegisto-angular-anchor-nav.mjs","sources":["../../src/anchor-nav/anchor-nav-messages.ts","../../src/anchor-nav/anchor-nav.component.ts","../../src/anchor-nav/index.ts","../../src/anchor-nav/trismegisto-angular-anchor-nav.ts"],"sourcesContent":["/** Textos do `hm-anchor-nav`, fora do catálogo compartilhado. */\nexport interface AnchorNavMessages {\n readonly label: string;\n}\n\nexport const ANCHOR_NAV_MESSAGES_PT_BR: AnchorNavMessages = { label: 'Nesta página' };\nexport const ANCHOR_NAV_MESSAGES_EN: AnchorNavMessages = { label: 'On this page' };\nexport const ANCHOR_NAV_MESSAGES_ES: AnchorNavMessages = { label: 'En esta página' };\n\nexport const ANCHOR_NAV_MESSAGES = {\n 'pt-BR': ANCHOR_NAV_MESSAGES_PT_BR,\n pt: ANCHOR_NAV_MESSAGES_PT_BR,\n en: ANCHOR_NAV_MESSAGES_EN,\n es: ANCHOR_NAV_MESSAGES_ES,\n} as const;\n","import {\n ChangeDetectionStrategy,\n Component,\n DOCUMENT,\n DestroyRef,\n afterNextRender,\n booleanAttribute,\n computed,\n effect,\n inject,\n input,\n numberAttribute,\n output,\n signal,\n untracked,\n} from '@angular/core';\nimport { ScrollSpy, findInPageTarget, moveFocusTo } from '@trismegisto/primitives';\nimport { HermesI18nService } from '@trismegisto/angular/i18n';\nimport { ANCHOR_NAV_MESSAGES, ANCHOR_NAV_MESSAGES_PT_BR, AnchorNavMessages } from './anchor-nav-messages';\n\n/** Um item do índice: o id da seção na página e o texto do link. */\nexport interface AnchorNavItem {\n readonly id: string;\n readonly label: string;\n /** 1 = seção, 2 = subseção (recuada). Padrão: 1. */\n readonly level?: 1 | 2;\n}\n\n/** Depois de um clique, o item clicado fica ativo durante a rolagem até ele (a rolagem suave passa pelas outras). */\nconst CLICK_LOCK_MS = 900;\n\nlet sequence = 0;\n\n/**\n * Índice da página com scrollspy (\"Nesta página\"): os links levam a cada seção e o item da seção que está\n * em leitura fica marcado enquanto a pessoa rola.\n *\n * ```html\n * <hm-anchor-nav [items]=\"secoes\" sticky [offset]=\"64\" />\n * <section id=\"visao-geral\">…</section>\n * <section id=\"instalacao\">…</section>\n * ```\n *\n * - O item atual tem `aria-current=\"location\"` (não `page`: é um lugar dentro da página), além do destaque.\n * - O clique rola até a seção e põe o foco nela — o próximo Tab continua de lá — sem mudar a URL (num app\n * com `<base href>` um `#id` recarregaria a página).\n * - `offset` é a altura do que fica fixo no topo da área que rola (um cabeçalho): a seção conta como em\n * leitura quando passa dessa linha. A área que rola é achada sozinha (o ancestral rolável da primeira\n * seção, ou a janela).\n * - `prefers-reduced-motion`: a rolagem é instantânea.\n */\n@Component({\n selector: 'hm-anchor-nav',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-anchor-nav-host', '[class.hm-anchor-nav-host--sticky]': 'sticky()' },\n template: `\n <nav class=\"hm-anchor-nav\" [attr.aria-labelledby]=\"titleId\">\n <p class=\"hm-anchor-nav__title\" [id]=\"titleId\" [class.hm-visually-hidden]=\"hideTitle()\">{{ label() || text().label }}</p>\n <ul class=\"hm-anchor-nav__list\">\n @for (item of items(); track item.id) {\n <li class=\"hm-anchor-nav__item\" [class.hm-anchor-nav__item--sub]=\"item.level === 2\">\n <a\n class=\"hm-anchor-nav__link\"\n [class.hm-anchor-nav__link--current]=\"active() === item.id\"\n [href]=\"'#' + item.id\"\n [attr.aria-current]=\"active() === item.id ? 'location' : null\"\n (click)=\"go($event, item.id)\"\n >{{ item.label }}</a\n >\n </li>\n }\n </ul>\n </nav>\n `,\n})\nexport class AnchorNavComponent {\n /** Seções da página, na ordem em que aparecem. */\n readonly items = input<readonly AnchorNavItem[]>([]);\n /** Título visível e nome da navegação. Vazio = \"Nesta página\" do catálogo. */\n readonly label = input('');\n /** Esconde o título da vista (continua sendo o nome da navegação). */\n readonly hideTitle = input(false, { transform: booleanAttribute });\n /** Altura (px) do que fica fixo no topo da área que rola. */\n readonly offset = input(0, { transform: numberAttribute });\n /** Rolagem suave no clique (instantânea com `prefers-reduced-motion`). */\n readonly smooth = input(true, { transform: booleanAttribute });\n /** Gruda o índice no topo enquanto a página rola (`position: sticky`). */\n readonly sticky = input(false, { transform: booleanAttribute });\n\n /** A seção em leitura mudou (id, ou `null` antes da primeira). */\n readonly activeChange = output<string | null>();\n\n /** Textos próprios (cada chave vence o catálogo do componente). */\n readonly texts = input<Partial<AnchorNavMessages>>({});\n\n private readonly i18n = inject(HermesI18nService);\n protected readonly text = computed<AnchorNavMessages>(() => ({ ...this.i18n.pick<AnchorNavMessages>(ANCHOR_NAV_MESSAGES, ANCHOR_NAV_MESSAGES_PT_BR), ...this.texts() }));\n protected readonly titleId = `hm-anchor-nav-${++sequence}`;\n /** Id da seção em leitura. */\n readonly active = signal<string | null>(null);\n\n private readonly document = inject(DOCUMENT);\n private spy: ScrollSpy | null = null;\n private lockedUntil = 0;\n\n constructor() {\n afterNextRender(() => {\n this.spy = new ScrollSpy(this.document, {\n ids: () => this.items().map((item) => item.id),\n offset: () => this.offset(),\n onChange: (id) => {\n if (Date.now() < this.lockedUntil) return;\n this.setActive(id);\n },\n });\n this.spy.observe();\n });\n // Lista nova (seções carregadas depois): mede de novo.\n effect(() => {\n this.items();\n untracked(() => this.spy?.observe());\n });\n inject(DestroyRef).onDestroy(() => this.spy?.disconnect());\n }\n\n /** Leva à seção `id` (rola e foca). */\n scrollTo(id: string): boolean {\n const target = findInPageTarget(id, this.document);\n if (!target) return false;\n this.lockedUntil = Date.now() + (this.smooth() ? CLICK_LOCK_MS : 0);\n this.setActive(id);\n return moveFocusTo(target, { smooth: this.smooth() });\n }\n\n protected go(event: Event, id: string): void {\n event.preventDefault();\n this.scrollTo(id);\n }\n\n private setActive(id: string | null): void {\n if (this.active() === id) return;\n this.active.set(id);\n this.activeChange.emit(id);\n }\n}\n","// Ponto de import `@trismegisto/angular/anchor-nav` (secundário do ng-packagr).\nexport * from './anchor-nav.component';\nexport * from './anchor-nav-messages';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAKa,yBAAyB,GAAsB,EAAE,KAAK,EAAE,cAAc;MACtE,sBAAsB,GAAsB,EAAE,KAAK,EAAE,cAAc;MACnE,sBAAsB,GAAsB,EAAE,KAAK,EAAE,gBAAgB;AAE3E,MAAM,mBAAmB,GAAG;AACjC,IAAA,OAAO,EAAE,yBAAyB;A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OCUMENT, Injectable, input, effect, Directive } from '@angular/core';
|
|
3
|
+
import { liveAnnouncer } from '@trismegisto/primitives';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Anunciador público de live region (o `announce()` do `@trismegisto/primitives` no documento do app).
|
|
7
|
+
* Para dizer ao leitor de tela o que mudou sem mover o foco: o resultado de uma busca, o fim de uma
|
|
8
|
+
* operação demorada, a falha de um envio.
|
|
9
|
+
*
|
|
10
|
+
* ```ts
|
|
11
|
+
* private readonly announcer = inject(HermesAnnouncer);
|
|
12
|
+
* this.announcer.announce(`${n} resultados`); // educado (padrão)
|
|
13
|
+
* this.announcer.announce('Conexão perdida', 'assertive'); // interrompe o que o leitor está lendo
|
|
14
|
+
* ```
|
|
15
|
+
*
|
|
16
|
+
* - `polite` espera o leitor terminar a frase atual; `assertive` interrompe. Use `assertive` só para o
|
|
17
|
+
* que não pode esperar (erro que impede continuar, sessão expirando).
|
|
18
|
+
* - O texto some da região depois de `clearAfter` ms (padrão 7 s), para quem navega a página depois não
|
|
19
|
+
* tropeçar num aviso velho. Repetir o mesmo texto anuncia de novo.
|
|
20
|
+
* - Não anuncie o que já é anunciado: os componentes da lib com região viva própria (toast, spinner,
|
|
21
|
+
* badge com `label`, `hm-save-status`) já falam sozinhos.
|
|
22
|
+
*/
|
|
23
|
+
class HermesAnnouncer {
|
|
24
|
+
document = inject(DOCUMENT);
|
|
25
|
+
/** Anuncia `message`. Resolve quando o texto foi escrito na região. */
|
|
26
|
+
announce(message, politeness = 'polite', options = {}) {
|
|
27
|
+
return liveAnnouncer(this.document).announce(message, politeness, options);
|
|
28
|
+
}
|
|
29
|
+
/** Esvazia as regiões (ou só uma) e cancela o anúncio pendente. */
|
|
30
|
+
clear(politeness) {
|
|
31
|
+
liveAnnouncer(this.document).clear(politeness);
|
|
32
|
+
}
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: HermesAnnouncer, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
34
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: HermesAnnouncer, providedIn: 'root' });
|
|
35
|
+
}
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: HermesAnnouncer, decorators: [{
|
|
37
|
+
type: Injectable,
|
|
38
|
+
args: [{ providedIn: 'root' }]
|
|
39
|
+
}] });
|
|
40
|
+
/**
|
|
41
|
+
* Anuncia o texto sempre que ele muda, sem código no componente:
|
|
42
|
+
* `<span [hmAnnounce]="resultCount()">{{ resultCount() }}</span>` — ou num `<ng-container>`. O primeiro
|
|
43
|
+
* valor não é anunciado (é o estado inicial da tela, lido no fluxo normal); texto vazio não anuncia.
|
|
44
|
+
*/
|
|
45
|
+
class HermesAnnounceDirective {
|
|
46
|
+
/** Texto a anunciar quando mudar. */
|
|
47
|
+
hmAnnounce = input('', ...(ngDevMode ? [{ debugName: "hmAnnounce" }] : /* istanbul ignore next */ []));
|
|
48
|
+
/** `polite` (padrão) ou `assertive`. */
|
|
49
|
+
hmAnnouncePoliteness = input('polite', ...(ngDevMode ? [{ debugName: "hmAnnouncePoliteness" }] : /* istanbul ignore next */ []));
|
|
50
|
+
announcer = inject(HermesAnnouncer);
|
|
51
|
+
first = true;
|
|
52
|
+
constructor() {
|
|
53
|
+
effect(() => {
|
|
54
|
+
const value = this.hmAnnounce();
|
|
55
|
+
const text = value == null ? '' : String(value);
|
|
56
|
+
if (this.first) {
|
|
57
|
+
this.first = false;
|
|
58
|
+
return;
|
|
59
|
+
}
|
|
60
|
+
if (text)
|
|
61
|
+
void this.announcer.announce(text, this.hmAnnouncePoliteness());
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: HermesAnnounceDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
65
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.24", type: HermesAnnounceDirective, isStandalone: true, selector: "[hmAnnounce]", inputs: { hmAnnounce: { classPropertyName: "hmAnnounce", publicName: "hmAnnounce", isSignal: true, isRequired: false, transformFunction: null }, hmAnnouncePoliteness: { classPropertyName: "hmAnnouncePoliteness", publicName: "hmAnnouncePoliteness", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 });
|
|
66
|
+
}
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: HermesAnnounceDirective, decorators: [{
|
|
68
|
+
type: Directive,
|
|
69
|
+
args: [{ selector: '[hmAnnounce]' }]
|
|
70
|
+
}], ctorParameters: () => [], propDecorators: { hmAnnounce: [{ type: i0.Input, args: [{ isSignal: true, alias: "hmAnnounce", required: false }] }], hmAnnouncePoliteness: [{ type: i0.Input, args: [{ isSignal: true, alias: "hmAnnouncePoliteness", required: false }] }] } });
|
|
71
|
+
|
|
72
|
+
// Ponto de import `@trismegisto/angular/announcer` (secundário do ng-packagr).
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Generated bundle index. Do not edit.
|
|
76
|
+
*/
|
|
77
|
+
|
|
78
|
+
export { HermesAnnounceDirective, HermesAnnouncer };
|
|
79
|
+
//# sourceMappingURL=trismegisto-angular-announcer.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trismegisto-angular-announcer.mjs","sources":["../../src/announcer/announcer.service.ts","../../src/announcer/index.ts","../../src/announcer/trismegisto-angular-announcer.ts"],"sourcesContent":["import { DOCUMENT, Directive, Injectable, effect, inject, input } from '@angular/core';\nimport { AnnounceOptions, AnnouncePoliteness, liveAnnouncer } from '@trismegisto/primitives';\n\n/**\n * Anunciador público de live region (o `announce()` do `@trismegisto/primitives` no documento do app).\n * Para dizer ao leitor de tela o que mudou sem mover o foco: o resultado de uma busca, o fim de uma\n * operação demorada, a falha de um envio.\n *\n * ```ts\n * private readonly announcer = inject(HermesAnnouncer);\n * this.announcer.announce(`${n} resultados`); // educado (padrão)\n * this.announcer.announce('Conexão perdida', 'assertive'); // interrompe o que o leitor está lendo\n * ```\n *\n * - `polite` espera o leitor terminar a frase atual; `assertive` interrompe. Use `assertive` só para o\n * que não pode esperar (erro que impede continuar, sessão expirando).\n * - O texto some da região depois de `clearAfter` ms (padrão 7 s), para quem navega a página depois não\n * tropeçar num aviso velho. Repetir o mesmo texto anuncia de novo.\n * - Não anuncie o que já é anunciado: os componentes da lib com região viva própria (toast, spinner,\n * badge com `label`, `hm-save-status`) já falam sozinhos.\n */\n@Injectable({ providedIn: 'root' })\nexport class HermesAnnouncer {\n private readonly document = inject(DOCUMENT);\n\n /** Anuncia `message`. Resolve quando o texto foi escrito na região. */\n announce(message: string, politeness: AnnouncePoliteness = 'polite', options: AnnounceOptions = {}): Promise<void> {\n return liveAnnouncer(this.document).announce(message, politeness, options);\n }\n\n /** Esvazia as regiões (ou só uma) e cancela o anúncio pendente. */\n clear(politeness?: AnnouncePoliteness): void {\n liveAnnouncer(this.document).clear(politeness);\n }\n}\n\n/**\n * Anuncia o texto sempre que ele muda, sem código no componente:\n * `<span [hmAnnounce]=\"resultCount()\">{{ resultCount() }}</span>` — ou num `<ng-container>`. O primeiro\n * valor não é anunciado (é o estado inicial da tela, lido no fluxo normal); texto vazio não anuncia.\n */\n@Directive({ selector: '[hmAnnounce]' })\nexport class HermesAnnounceDirective {\n /** Texto a anunciar quando mudar. */\n readonly hmAnnounce = input<string | number | null | undefined>('');\n /** `polite` (padrão) ou `assertive`. */\n readonly hmAnnouncePoliteness = input<AnnouncePoliteness>('polite');\n\n private readonly announcer = inject(HermesAnnouncer);\n private first = true;\n\n constructor() {\n effect(() => {\n const value = this.hmAnnounce();\n const text = value == null ? '' : String(value);\n if (this.first) {\n this.first = false;\n return;\n }\n if (text) void this.announcer.announce(text, this.hmAnnouncePoliteness());\n });\n }\n}\n","// Ponto de import `@trismegisto/angular/announcer` (secundário do ng-packagr).\nexport * from './announcer.service';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAGA;;;;;;;;;;;;;;;;;AAiBG;MAEU,eAAe,CAAA;AACT,IAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;;AAG5C,IAAA,QAAQ,CAAC,OAAe,EAAE,aAAiC,QAAQ,EAAE,UAA2B,EAAE,EAAA;AAChG,QAAA,OAAO,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,QAAQ,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,CAAC;IAC5E;;AAGA,IAAA,KAAK,CAAC,UAA+B,EAAA;QACnC,aAAa,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,KAAK,CAAC,UAAU,CAAC;IAChD;wGAXW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAf,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cADF,MAAM,EAAA,CAAA;;4FACnB,eAAe,EAAA,UAAA,EAAA,CAAA;kBAD3B,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;AAelC;;;;AAIG;MAEU,uBAAuB,CAAA;;AAEzB,IAAA,UAAU,GAAG,KAAK,CAAqC,EAAE,iFAAC;;AAE1D,IAAA,oBAAoB,GAAG,KAAK,CAAqB,QAAQ,2FAAC;AAElD,IAAA,SAAS,GAAG,MAAM,CAAC,eAAe,CAAC;IAC5C,KAAK,GAAG,IAAI;AAEpB,IAAA,WAAA,GAAA;QACE,MAAM,CAAC,MAAK;AACV,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,UAAU,EAAE;AAC/B,YAAA,MAAM,IAAI,GAAG,KAAK,IAAI,IAAI,GAAG,EAAE,GAAG,MAAM,CAAC,KAAK,CAAC;AAC/C,YAAA,IAAI,IAAI,CAAC,KAAK,EAAE;AACd,gBAAA,IAAI,CAAC,KAAK,GAAG,KAAK;gBAClB;YACF;AACA,YAAA,IAAI,IAAI;AAAE,gBAAA,KAAK,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC,oBAAoB,EAAE,CAAC;AAC3E,QAAA,CAAC,CAAC;IACJ;wGAnBW,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAvB,uBAAuB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,YAAA,EAAA,UAAA,EAAA,YAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,oBAAA,EAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,UAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAvB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBADnC,SAAS;mBAAC,EAAE,QAAQ,EAAE,cAAc,EAAE;;;ACzCvC;;ACAA;;AAEG;;"}
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, inject, computed, signal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import { CODE_LANGUAGE_JSON, splitUrl, formatMessage, httpStatusClass, HTTP_REASON_PHRASES, formatHttpBody, headerValue, bodyLanguage, formatDurationMs, bodyBytes, formatFileSize, toCurl, normalizeHeaders, isSensitiveHeader, maskHeaderValue } from '@trismegisto/primitives';
|
|
5
|
+
import { HERMES_MESSAGES, HermesI18nService } from '@trismegisto/angular/i18n';
|
|
6
|
+
import { ButtonComponent } from '@trismegisto/angular/button';
|
|
7
|
+
import { CodeViewerComponent } from '@trismegisto/angular/code-viewer';
|
|
8
|
+
import { CopyButtonComponent } from '@trismegisto/angular/copy-button';
|
|
9
|
+
import { TabComponent, TabsComponent } from '@trismegisto/angular/tabs';
|
|
10
|
+
import { ICON_EYE, ICON_EYE_CLOSE, ICON_UNKNOWN, useHermesIcons } from '@trismegisto/angular/icon';
|
|
11
|
+
|
|
12
|
+
const API_EXCHANGE_MESSAGES_PT_BR = {
|
|
13
|
+
label: 'Requisição {method} {path}',
|
|
14
|
+
request: 'Requisição',
|
|
15
|
+
response: 'Resposta',
|
|
16
|
+
requestHeaders: 'Cabeçalhos da requisição',
|
|
17
|
+
responseHeaders: 'Cabeçalhos da resposta',
|
|
18
|
+
body: 'Corpo',
|
|
19
|
+
query: 'Parâmetros de consulta',
|
|
20
|
+
noBody: 'Sem corpo.',
|
|
21
|
+
noHeaders: 'Sem cabeçalhos.',
|
|
22
|
+
name: 'Nome',
|
|
23
|
+
value: 'Valor',
|
|
24
|
+
duration: 'Duração',
|
|
25
|
+
size: 'Tamanho',
|
|
26
|
+
statusClasses: {
|
|
27
|
+
informational: 'informativo',
|
|
28
|
+
success: 'sucesso',
|
|
29
|
+
redirect: 'redirecionamento',
|
|
30
|
+
clientError: 'erro do cliente',
|
|
31
|
+
serverError: 'erro do servidor',
|
|
32
|
+
unknown: 'desconhecido',
|
|
33
|
+
},
|
|
34
|
+
statusLabel: 'Status {status}, {class}',
|
|
35
|
+
pending: 'Aguardando resposta…',
|
|
36
|
+
networkError: 'Sem resposta: {error}',
|
|
37
|
+
copyCurl: 'Copiar como cURL',
|
|
38
|
+
copiedCurl: 'Comando copiado',
|
|
39
|
+
reveal: 'Mostrar valores sensíveis',
|
|
40
|
+
hide: 'Ocultar valores sensíveis',
|
|
41
|
+
masked: 'valor oculto',
|
|
42
|
+
};
|
|
43
|
+
const API_EXCHANGE_MESSAGES_EN = {
|
|
44
|
+
label: '{method} {path} request',
|
|
45
|
+
request: 'Request',
|
|
46
|
+
response: 'Response',
|
|
47
|
+
requestHeaders: 'Request headers',
|
|
48
|
+
responseHeaders: 'Response headers',
|
|
49
|
+
body: 'Body',
|
|
50
|
+
query: 'Query parameters',
|
|
51
|
+
noBody: 'No body.',
|
|
52
|
+
noHeaders: 'No headers.',
|
|
53
|
+
name: 'Name',
|
|
54
|
+
value: 'Value',
|
|
55
|
+
duration: 'Duration',
|
|
56
|
+
size: 'Size',
|
|
57
|
+
statusClasses: {
|
|
58
|
+
informational: 'informational',
|
|
59
|
+
success: 'success',
|
|
60
|
+
redirect: 'redirect',
|
|
61
|
+
clientError: 'client error',
|
|
62
|
+
serverError: 'server error',
|
|
63
|
+
unknown: 'unknown',
|
|
64
|
+
},
|
|
65
|
+
statusLabel: 'Status {status}, {class}',
|
|
66
|
+
pending: 'Waiting for the response…',
|
|
67
|
+
networkError: 'No response: {error}',
|
|
68
|
+
copyCurl: 'Copy as cURL',
|
|
69
|
+
copiedCurl: 'Command copied',
|
|
70
|
+
reveal: 'Show sensitive values',
|
|
71
|
+
hide: 'Hide sensitive values',
|
|
72
|
+
masked: 'hidden value',
|
|
73
|
+
};
|
|
74
|
+
const API_EXCHANGE_MESSAGES_ES = {
|
|
75
|
+
label: 'Solicitud {method} {path}',
|
|
76
|
+
request: 'Solicitud',
|
|
77
|
+
response: 'Respuesta',
|
|
78
|
+
requestHeaders: 'Encabezados de la solicitud',
|
|
79
|
+
responseHeaders: 'Encabezados de la respuesta',
|
|
80
|
+
body: 'Cuerpo',
|
|
81
|
+
query: 'Parámetros de consulta',
|
|
82
|
+
noBody: 'Sin cuerpo.',
|
|
83
|
+
noHeaders: 'Sin encabezados.',
|
|
84
|
+
name: 'Nombre',
|
|
85
|
+
value: 'Valor',
|
|
86
|
+
duration: 'Duración',
|
|
87
|
+
size: 'Tamaño',
|
|
88
|
+
statusClasses: {
|
|
89
|
+
informational: 'informativo',
|
|
90
|
+
success: 'éxito',
|
|
91
|
+
redirect: 'redirección',
|
|
92
|
+
clientError: 'error del cliente',
|
|
93
|
+
serverError: 'error del servidor',
|
|
94
|
+
unknown: 'desconocido',
|
|
95
|
+
},
|
|
96
|
+
statusLabel: 'Estado {status}, {class}',
|
|
97
|
+
pending: 'Esperando la respuesta…',
|
|
98
|
+
networkError: 'Sin respuesta: {error}',
|
|
99
|
+
copyCurl: 'Copiar como cURL',
|
|
100
|
+
copiedCurl: 'Comando copiado',
|
|
101
|
+
reveal: 'Mostrar valores sensibles',
|
|
102
|
+
hide: 'Ocultar valores sensibles',
|
|
103
|
+
masked: 'valor oculto',
|
|
104
|
+
};
|
|
105
|
+
/** Catálogos por idioma, no formato do `HermesI18nService.pick`. */
|
|
106
|
+
const API_EXCHANGE_MESSAGES = { 'pt-BR': API_EXCHANGE_MESSAGES_PT_BR, en: API_EXCHANGE_MESSAGES_EN, es: API_EXCHANGE_MESSAGES_ES };
|
|
107
|
+
|
|
108
|
+
const API_EXCHANGE_ICONS = [ICON_EYE, ICON_EYE_CLOSE, ICON_UNKNOWN];
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* JSON (o caso de quase toda API) vai com a gramática embutida, para destacar sem o app registrar linguagem; as
|
|
112
|
+
* outras seguem pelo id e o `hm-code-viewer` resolve com as linguagens que o app registrou.
|
|
113
|
+
*/
|
|
114
|
+
function viewerLanguage(id) {
|
|
115
|
+
return id === 'json' ? CODE_LANGUAGE_JSON : id;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Visor de uma troca HTTP (requisição e resposta) para telas de desenvolvedor — console de API, log de
|
|
119
|
+
* webhook, depurador de integração: método, URL, status com a classe ("404 Not Found", erro do cliente),
|
|
120
|
+
* duração e tamanho no topo; abas com o corpo da resposta (JSON indentado e destacado no `hm-code-viewer`), os
|
|
121
|
+
* cabeçalhos da resposta e a requisição (parâmetros de consulta, cabeçalhos e corpo). Cabeçalhos de segredo
|
|
122
|
+
* (`Authorization`, `Cookie`, `X-Api-Key` e os de `sensitiveHeaders`) ficam mascarados até a pessoa pedir;
|
|
123
|
+
* "Copiar como cURL" também sai mascarado. Sem `response`: aguardando (`pending`) ou falha de rede (`error`).
|
|
124
|
+
*
|
|
125
|
+
* Acessibilidade: o status é texto com a classe por extenso (a cor do selo é reforço); as abas são o
|
|
126
|
+
* `hm-tabs`; os cabeçalhos são tabelas com cabeçalho de coluna; o botão de mostrar segredos é de alternância
|
|
127
|
+
* (`aria-pressed`).
|
|
128
|
+
*/
|
|
129
|
+
class ApiExchangeComponent {
|
|
130
|
+
#icons = useHermesIcons(API_EXCHANGE_ICONS);
|
|
131
|
+
request = input.required(...(ngDevMode ? [{ debugName: "request" }] : /* istanbul ignore next */ []));
|
|
132
|
+
response = input(null, ...(ngDevMode ? [{ debugName: "response" }] : /* istanbul ignore next */ []));
|
|
133
|
+
/** Falha sem resposta (rede, tempo esgotado): o texto do erro. */
|
|
134
|
+
error = input('', ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
135
|
+
/** Outros cabeçalhos a mascarar, além dos padrão. */
|
|
136
|
+
sensitiveHeaders = input([], ...(ngDevMode ? [{ debugName: "sensitiveHeaders" }] : /* istanbul ignore next */ []));
|
|
137
|
+
/** Mostra "Copiar como cURL" (padrão). */
|
|
138
|
+
copyable = input(true, ...(ngDevMode ? [{ debugName: "copyable" }] : /* istanbul ignore next */ []));
|
|
139
|
+
/** Sobrescreve textos do catálogo da peça (parcial). */
|
|
140
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
141
|
+
messages = inject(HERMES_MESSAGES);
|
|
142
|
+
i18n = inject(HermesI18nService);
|
|
143
|
+
text = computed(() => ({ ...this.i18n.pick(API_EXCHANGE_MESSAGES, API_EXCHANGE_MESSAGES_PT_BR), ...this.texts() }), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
144
|
+
locale = computed(() => this.messages.meta.locale, ...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
145
|
+
reveal = signal(false, ...(ngDevMode ? [{ debugName: "reveal" }] : /* istanbul ignore next */ []));
|
|
146
|
+
method = computed(() => (this.request().method ?? 'GET').toUpperCase(), ...(ngDevMode ? [{ debugName: "method" }] : /* istanbul ignore next */ []));
|
|
147
|
+
url = computed(() => splitUrl(this.request().url), ...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
|
|
148
|
+
label = computed(() => formatMessage(this.text().label, { method: this.method(), path: this.url().path }), ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
149
|
+
statusClass = computed(() => httpStatusClass(this.response()?.status), ...(ngDevMode ? [{ debugName: "statusClass" }] : /* istanbul ignore next */ []));
|
|
150
|
+
statusText = computed(() => {
|
|
151
|
+
const r = this.response();
|
|
152
|
+
if (!r)
|
|
153
|
+
return '';
|
|
154
|
+
return `${r.status} ${r.statusText || HTTP_REASON_PHRASES[r.status] || ''}`.trim();
|
|
155
|
+
}, ...(ngDevMode ? [{ debugName: "statusText" }] : /* istanbul ignore next */ []));
|
|
156
|
+
statusLabel = computed(() => formatMessage(this.text().statusLabel, { status: this.statusText(), class: this.text().statusClasses[this.statusClass()] }), ...(ngDevMode ? [{ debugName: "statusLabel" }] : /* istanbul ignore next */ []));
|
|
157
|
+
responseBody = computed(() => {
|
|
158
|
+
const r = this.response();
|
|
159
|
+
return r ? formatHttpBody(r.body, headerValue(r.headers, 'content-type')) : '';
|
|
160
|
+
}, ...(ngDevMode ? [{ debugName: "responseBody" }] : /* istanbul ignore next */ []));
|
|
161
|
+
responseLanguage = computed(() => viewerLanguage(bodyLanguage(headerValue(this.response()?.headers, 'content-type'), this.responseBody())), ...(ngDevMode ? [{ debugName: "responseLanguage" }] : /* istanbul ignore next */ []));
|
|
162
|
+
requestBody = computed(() => formatHttpBody(this.request().body, headerValue(this.request().headers, 'content-type')), ...(ngDevMode ? [{ debugName: "requestBody" }] : /* istanbul ignore next */ []));
|
|
163
|
+
requestLanguage = computed(() => viewerLanguage(bodyLanguage(headerValue(this.request().headers, 'content-type'), this.requestBody())), ...(ngDevMode ? [{ debugName: "requestLanguage" }] : /* istanbul ignore next */ []));
|
|
164
|
+
duration = computed(() => formatDurationMs(this.response()?.durationMs, this.locale()), ...(ngDevMode ? [{ debugName: "duration" }] : /* istanbul ignore next */ []));
|
|
165
|
+
size = computed(() => {
|
|
166
|
+
const r = this.response();
|
|
167
|
+
if (!r)
|
|
168
|
+
return '';
|
|
169
|
+
const bytes = r.size ?? (this.responseBody() ? bodyBytes(this.responseBody()) : null);
|
|
170
|
+
return bytes == null ? '' : formatFileSize(bytes, this.locale());
|
|
171
|
+
}, ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
172
|
+
requestHeaders = computed(() => this.headers(this.request().headers), ...(ngDevMode ? [{ debugName: "requestHeaders" }] : /* istanbul ignore next */ []));
|
|
173
|
+
responseHeaders = computed(() => this.headers(this.response()?.headers), ...(ngDevMode ? [{ debugName: "responseHeaders" }] : /* istanbul ignore next */ []));
|
|
174
|
+
hasSensitive = computed(() => [...this.requestHeaders(), ...this.responseHeaders()].some((h) => h.sensitive), ...(ngDevMode ? [{ debugName: "hasSensitive" }] : /* istanbul ignore next */ []));
|
|
175
|
+
curl = computed(() => toCurl(this.request()), ...(ngDevMode ? [{ debugName: "curl" }] : /* istanbul ignore next */ []));
|
|
176
|
+
errorText = computed(() => (this.error() ? formatMessage(this.text().networkError, { error: this.error() }) : ''), ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
177
|
+
headers(input) {
|
|
178
|
+
return normalizeHeaders(input).map(([name, value]) => {
|
|
179
|
+
const sensitive = isSensitiveHeader(name, this.sensitiveHeaders());
|
|
180
|
+
return { name, value: sensitive && !this.reveal() ? maskHeaderValue(value) : value, sensitive };
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
toggleReveal() {
|
|
184
|
+
this.reveal.update((v) => !v);
|
|
185
|
+
}
|
|
186
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ApiExchangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
187
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ApiExchangeComponent, isStandalone: true, selector: "hm-api-exchange", inputs: { request: { classPropertyName: "request", publicName: "request", isSignal: true, isRequired: true, transformFunction: null }, response: { classPropertyName: "response", publicName: "response", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, sensitiveHeaders: { classPropertyName: "sensitiveHeaders", publicName: "sensitiveHeaders", isSignal: true, isRequired: false, transformFunction: null }, copyable: { classPropertyName: "copyable", publicName: "copyable", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-api-exchange" }, ngImport: i0, template: "<section class=\"hm-api-exchange__frame\" [attr.aria-label]=\"label()\">\n <div class=\"hm-api-exchange__summary\">\n <span class=\"hm-api-exchange__method\" [attr.data-method]=\"method()\">{{ method() }}</span>\n <code class=\"hm-api-exchange__url\">{{ request().url }}</code>\n <div class=\"hm-api-exchange__facts\">\n @if (response()) {\n <span class=\"hm-api-exchange__status\" [attr.data-class]=\"statusClass()\">\n <span aria-hidden=\"true\">{{ statusText() }}</span><span class=\"hm-visually-hidden\">{{ statusLabel() }}</span>\n </span>\n @if (duration()) {\n <span class=\"hm-api-exchange__fact\"><span class=\"hm-visually-hidden\">{{ text().duration }}: </span>{{ duration() }}</span>\n }\n @if (size()) {\n <span class=\"hm-api-exchange__fact\"><span class=\"hm-visually-hidden\">{{ text().size }}: </span>{{ size() }}</span>\n }\n } @else if (errorText()) {\n <span class=\"hm-api-exchange__status\" data-class=\"serverError\">{{ errorText() }}</span>\n } @else {\n <span class=\"hm-api-exchange__fact\" role=\"status\">{{ text().pending }}</span>\n }\n </div>\n <div class=\"hm-api-exchange__tools\">\n @if (hasSensitive()) {\n <hm-button emphasis=\"minimal\" size=\"small\" [icon]=\"reveal() ? 'eye-close' : 'eye'\" toggle [pressed]=\"reveal()\" (clicked)=\"toggleReveal()\">\n {{ reveal() ? text().hide : text().reveal }}\n </hm-button>\n }\n @if (copyable()) {\n <hm-copy-button variant=\"text\" size=\"small\" [value]=\"curl()\" [label]=\"text().copyCurl\" [copiedLabel]=\"text().copiedCurl\" />\n }\n </div>\n </div>\n\n <hm-tabs [label]=\"label()\">\n @if (response()) {\n <hm-tab id=\"response\" [label]=\"text().response\">\n @if (responseBody()) {\n <hm-code-viewer [code]=\"responseBody()\" [language]=\"responseLanguage()\" [label]=\"text().response + ', ' + text().body\" />\n } @else {\n <p class=\"hm-api-exchange__empty\">{{ text().noBody }}</p>\n }\n </hm-tab>\n <hm-tab id=\"response-headers\" [label]=\"text().responseHeaders\" [count]=\"responseHeaders().length\">\n <ng-container *ngTemplateOutlet=\"headersTable; context: { $implicit: responseHeaders(), caption: text().responseHeaders }\" />\n </hm-tab>\n }\n <hm-tab id=\"request\" [label]=\"text().request\">\n @if (url().query.length) {\n <p class=\"hm-api-exchange__section\">{{ text().query }}</p>\n <div class=\"hm-api-exchange__table-wrap\">\n <table class=\"hm-api-exchange__table\">\n <caption class=\"hm-visually-hidden\">{{ text().query }}</caption>\n <thead><tr><th scope=\"col\">{{ text().name }}</th><th scope=\"col\">{{ text().value }}</th></tr></thead>\n <tbody>\n @for (pair of url().query; track $index) {\n <tr><td><code>{{ pair[0] }}</code></td><td><code>{{ pair[1] }}</code></td></tr>\n }\n </tbody>\n </table>\n </div>\n }\n <p class=\"hm-api-exchange__section\">{{ text().requestHeaders }}</p>\n <ng-container *ngTemplateOutlet=\"headersTable; context: { $implicit: requestHeaders(), caption: text().requestHeaders }\" />\n <p class=\"hm-api-exchange__section\">{{ text().body }}</p>\n @if (requestBody()) {\n <hm-code-viewer [code]=\"requestBody()\" [language]=\"requestLanguage()\" [label]=\"text().request + ', ' + text().body\" />\n } @else {\n <p class=\"hm-api-exchange__empty\">{{ text().noBody }}</p>\n }\n </hm-tab>\n </hm-tabs>\n</section>\n\n<ng-template #headersTable let-rows let-caption=\"caption\">\n @if (rows.length) {\n <div class=\"hm-api-exchange__table-wrap\">\n <table class=\"hm-api-exchange__table\">\n <caption class=\"hm-visually-hidden\">{{ caption }}</caption>\n <thead><tr><th scope=\"col\">{{ text().name }}</th><th scope=\"col\">{{ text().value }}</th></tr></thead>\n <tbody>\n @for (header of rows; track $index) {\n <tr>\n <td><code>{{ header.name }}</code></td>\n <td>\n <code>{{ header.value }}</code>\n @if (header.sensitive && !reveal()) {\n <span class=\"hm-visually-hidden\">, {{ text().masked }}</span>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n } @else {\n <p class=\"hm-api-exchange__empty\">{{ text().noHeaders }}</p>\n }\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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: CodeViewerComponent, selector: "hm-code-viewer", inputs: ["code", "language", "filename", "label", "showLineNumbers", "firstLineNumber", "highlightLines", "wrap", "tabSize", "copyable", "header", "virtualize", "virtualizeThreshold", "revealInvisibles"], outputs: ["copied", "tokenized"] }, { kind: "component", type: CopyButtonComponent, selector: "hm-copy-button", inputs: ["value", "label", "copiedLabel", "variant", "size", "disabled", "feedbackDuration"], outputs: ["copied", "copyFailed"] }, { kind: "component", type: TabComponent, selector: "hm-tab", inputs: ["id", "label", "disabled", "count", "route", "exact", "destroyOnHide"] }, { kind: "component", type: TabsComponent, selector: "hm-tabs", inputs: ["label", "active", "orientation", "mode", "overflow", "fillHeight", "noPanelGap"], outputs: ["activeChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
188
|
+
}
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ApiExchangeComponent, decorators: [{
|
|
190
|
+
type: Component,
|
|
191
|
+
args: [{ selector: 'hm-api-exchange', imports: [NgTemplateOutlet, ButtonComponent, CodeViewerComponent, CopyButtonComponent, TabComponent, TabsComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-api-exchange' }, template: "<section class=\"hm-api-exchange__frame\" [attr.aria-label]=\"label()\">\n <div class=\"hm-api-exchange__summary\">\n <span class=\"hm-api-exchange__method\" [attr.data-method]=\"method()\">{{ method() }}</span>\n <code class=\"hm-api-exchange__url\">{{ request().url }}</code>\n <div class=\"hm-api-exchange__facts\">\n @if (response()) {\n <span class=\"hm-api-exchange__status\" [attr.data-class]=\"statusClass()\">\n <span aria-hidden=\"true\">{{ statusText() }}</span><span class=\"hm-visually-hidden\">{{ statusLabel() }}</span>\n </span>\n @if (duration()) {\n <span class=\"hm-api-exchange__fact\"><span class=\"hm-visually-hidden\">{{ text().duration }}: </span>{{ duration() }}</span>\n }\n @if (size()) {\n <span class=\"hm-api-exchange__fact\"><span class=\"hm-visually-hidden\">{{ text().size }}: </span>{{ size() }}</span>\n }\n } @else if (errorText()) {\n <span class=\"hm-api-exchange__status\" data-class=\"serverError\">{{ errorText() }}</span>\n } @else {\n <span class=\"hm-api-exchange__fact\" role=\"status\">{{ text().pending }}</span>\n }\n </div>\n <div class=\"hm-api-exchange__tools\">\n @if (hasSensitive()) {\n <hm-button emphasis=\"minimal\" size=\"small\" [icon]=\"reveal() ? 'eye-close' : 'eye'\" toggle [pressed]=\"reveal()\" (clicked)=\"toggleReveal()\">\n {{ reveal() ? text().hide : text().reveal }}\n </hm-button>\n }\n @if (copyable()) {\n <hm-copy-button variant=\"text\" size=\"small\" [value]=\"curl()\" [label]=\"text().copyCurl\" [copiedLabel]=\"text().copiedCurl\" />\n }\n </div>\n </div>\n\n <hm-tabs [label]=\"label()\">\n @if (response()) {\n <hm-tab id=\"response\" [label]=\"text().response\">\n @if (responseBody()) {\n <hm-code-viewer [code]=\"responseBody()\" [language]=\"responseLanguage()\" [label]=\"text().response + ', ' + text().body\" />\n } @else {\n <p class=\"hm-api-exchange__empty\">{{ text().noBody }}</p>\n }\n </hm-tab>\n <hm-tab id=\"response-headers\" [label]=\"text().responseHeaders\" [count]=\"responseHeaders().length\">\n <ng-container *ngTemplateOutlet=\"headersTable; context: { $implicit: responseHeaders(), caption: text().responseHeaders }\" />\n </hm-tab>\n }\n <hm-tab id=\"request\" [label]=\"text().request\">\n @if (url().query.length) {\n <p class=\"hm-api-exchange__section\">{{ text().query }}</p>\n <div class=\"hm-api-exchange__table-wrap\">\n <table class=\"hm-api-exchange__table\">\n <caption class=\"hm-visually-hidden\">{{ text().query }}</caption>\n <thead><tr><th scope=\"col\">{{ text().name }}</th><th scope=\"col\">{{ text().value }}</th></tr></thead>\n <tbody>\n @for (pair of url().query; track $index) {\n <tr><td><code>{{ pair[0] }}</code></td><td><code>{{ pair[1] }}</code></td></tr>\n }\n </tbody>\n </table>\n </div>\n }\n <p class=\"hm-api-exchange__section\">{{ text().requestHeaders }}</p>\n <ng-container *ngTemplateOutlet=\"headersTable; context: { $implicit: requestHeaders(), caption: text().requestHeaders }\" />\n <p class=\"hm-api-exchange__section\">{{ text().body }}</p>\n @if (requestBody()) {\n <hm-code-viewer [code]=\"requestBody()\" [language]=\"requestLanguage()\" [label]=\"text().request + ', ' + text().body\" />\n } @else {\n <p class=\"hm-api-exchange__empty\">{{ text().noBody }}</p>\n }\n </hm-tab>\n </hm-tabs>\n</section>\n\n<ng-template #headersTable let-rows let-caption=\"caption\">\n @if (rows.length) {\n <div class=\"hm-api-exchange__table-wrap\">\n <table class=\"hm-api-exchange__table\">\n <caption class=\"hm-visually-hidden\">{{ caption }}</caption>\n <thead><tr><th scope=\"col\">{{ text().name }}</th><th scope=\"col\">{{ text().value }}</th></tr></thead>\n <tbody>\n @for (header of rows; track $index) {\n <tr>\n <td><code>{{ header.name }}</code></td>\n <td>\n <code>{{ header.value }}</code>\n @if (header.sensitive && !reveal()) {\n <span class=\"hm-visually-hidden\">, {{ text().masked }}</span>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n } @else {\n <p class=\"hm-api-exchange__empty\">{{ text().noHeaders }}</p>\n }\n</ng-template>\n" }]
|
|
192
|
+
}], propDecorators: { request: [{ type: i0.Input, args: [{ isSignal: true, alias: "request", required: true }] }], response: [{ type: i0.Input, args: [{ isSignal: true, alias: "response", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], sensitiveHeaders: [{ type: i0.Input, args: [{ isSignal: true, alias: "sensitiveHeaders", required: false }] }], copyable: [{ type: i0.Input, args: [{ isSignal: true, alias: "copyable", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
193
|
+
|
|
194
|
+
// Ponto de import `@trismegisto/angular/api-exchange` (secundário do ng-packagr): o que o public-api e as outras pastas usam
|
|
195
|
+
// daqui. Ao criar arquivo público novo na pasta, acrescente a linha.
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Generated bundle index. Do not edit.
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
export { API_EXCHANGE_MESSAGES, API_EXCHANGE_MESSAGES_EN, API_EXCHANGE_MESSAGES_ES, API_EXCHANGE_MESSAGES_PT_BR, ApiExchangeComponent };
|
|
202
|
+
//# sourceMappingURL=trismegisto-angular-api-exchange.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trismegisto-angular-api-exchange.mjs","sources":["../../src/api-exchange/api-exchange-messages.ts","../../src/api-exchange/icons.generated.ts","../../src/api-exchange/api-exchange.component.ts","../../src/api-exchange/api-exchange.component.html","../../src/api-exchange/index.ts","../../src/api-exchange/trismegisto-angular-api-exchange.ts"],"sourcesContent":["import type { CalendarFilesMessages } from '@trismegisto/primitives';\n\n// Textos da peça desta pasta, fora do HERMES_MESSAGES (o pt-BR daquele vai embutido em todo componente; este só\n// entra no bundle de quem usa a peça). O componente escolhe pelo idioma com `HermesI18nService.pick`.\nexport type ApiExchangeMessages = CalendarFilesMessages['apiExchange'];\n\nexport const API_EXCHANGE_MESSAGES_PT_BR: ApiExchangeMessages = {\n label: 'Requisição {method} {path}',\n request: 'Requisição',\n response: 'Resposta',\n requestHeaders: 'Cabeçalhos da requisição',\n responseHeaders: 'Cabeçalhos da resposta',\n body: 'Corpo',\n query: 'Parâmetros de consulta',\n noBody: 'Sem corpo.',\n noHeaders: 'Sem cabeçalhos.',\n name: 'Nome',\n value: 'Valor',\n duration: 'Duração',\n size: 'Tamanho',\n statusClasses: {\n informational: 'informativo',\n success: 'sucesso',\n redirect: 'redirecionamento',\n clientError: 'erro do cliente',\n serverError: 'erro do servidor',\n unknown: 'desconhecido',\n },\n statusLabel: 'Status {status}, {class}',\n pending: 'Aguardando resposta…',\n networkError: 'Sem resposta: {error}',\n copyCurl: 'Copiar como cURL',\n copiedCurl: 'Comando copiado',\n reveal: 'Mostrar valores sensíveis',\n hide: 'Ocultar valores sensíveis',\n masked: 'valor oculto',\n};\n\nexport const API_EXCHANGE_MESSAGES_EN: ApiExchangeMessages = {\n label: '{method} {path} request',\n request: 'Request',\n response: 'Response',\n requestHeaders: 'Request headers',\n responseHeaders: 'Response headers',\n body: 'Body',\n query: 'Query parameters',\n noBody: 'No body.',\n noHeaders: 'No headers.',\n name: 'Name',\n value: 'Value',\n duration: 'Duration',\n size: 'Size',\n statusClasses: {\n informational: 'informational',\n success: 'success',\n redirect: 'redirect',\n clientError: 'client error',\n serverError: 'server error',\n unknown: 'unknown',\n },\n statusLabel: 'Status {status}, {class}',\n pending: 'Waiting for the response…',\n networkError: 'No response: {error}',\n copyCurl: 'Copy as cURL',\n copiedCurl: 'Command copied',\n reveal: 'Show sensitive values',\n hide: 'Hide sensitive values',\n masked: 'hidden value',\n};\n\nexport const API_EXCHANGE_MESSAGES_ES: ApiExchangeMessages = {\n label: 'Solicitud {method} {path}',\n request: 'Solicitud',\n response: 'Respuesta',\n requestHeaders: 'Encabezados de la solicitud',\n responseHeaders: 'Encabezados de la respuesta',\n body: 'Cuerpo',\n query: 'Parámetros de consulta',\n noBody: 'Sin cuerpo.',\n noHeaders: 'Sin encabezados.',\n name: 'Nombre',\n value: 'Valor',\n duration: 'Duración',\n size: 'Tamaño',\n statusClasses: {\n informational: 'informativo',\n success: 'éxito',\n redirect: 'redirección',\n clientError: 'error del cliente',\n serverError: 'error del servidor',\n unknown: 'desconocido',\n },\n statusLabel: 'Estado {status}, {class}',\n pending: 'Esperando la respuesta…',\n networkError: 'Sin respuesta: {error}',\n copyCurl: 'Copiar como cURL',\n copiedCurl: 'Comando copiado',\n reveal: 'Mostrar valores sensibles',\n hide: 'Ocultar valores sensibles',\n masked: 'valor oculto',\n};\n\n/** Catálogos por idioma, no formato do `HermesI18nService.pick`. */\nexport const API_EXCHANGE_MESSAGES: Readonly<Record<string, ApiExchangeMessages>> = { 'pt-BR': API_EXCHANGE_MESSAGES_PT_BR, en: API_EXCHANGE_MESSAGES_EN, es: API_EXCHANGE_MESSAGES_ES };\n","// GERADO por scripts/generate-internal-icons.mjs — não editar à mão.\n// Ícones que esta pasta usa por dentro; cada @Component/@Directive daqui os registra com\n// `readonly #icons = useHermesIcons(API_EXCHANGE_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_EYE,\n ICON_EYE_CLOSE,\n ICON_UNKNOWN,\n} from '@trismegisto/angular/icon';\n\nexport const API_EXCHANGE_ICONS: readonly RegisteredIcon[] = [ICON_EYE, ICON_EYE_CLOSE, ICON_UNKNOWN];\n","import { ChangeDetectionStrategy, Component, computed, inject, input, signal } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n type CodeLanguage,\n type HttpHeadersInput,\n CODE_LANGUAGE_JSON,\n HTTP_REASON_PHRASES,\n bodyBytes,\n bodyLanguage,\n formatDurationMs,\n formatFileSize,\n formatHttpBody,\n formatMessage,\n headerValue,\n httpStatusClass,\n isSensitiveHeader,\n maskHeaderValue,\n normalizeHeaders,\n splitUrl,\n toCurl,\n} from '@trismegisto/primitives';\nimport { HERMES_MESSAGES, HermesI18nService } from '@trismegisto/angular/i18n';\nimport { ButtonComponent } from '@trismegisto/angular/button';\nimport { CodeViewerComponent } from '@trismegisto/angular/code-viewer';\nimport { CopyButtonComponent } from '@trismegisto/angular/copy-button';\nimport { TabComponent, TabsComponent } from '@trismegisto/angular/tabs';\nimport { useHermesIcons } from '@trismegisto/angular/icon';\nimport { API_EXCHANGE_MESSAGES, API_EXCHANGE_MESSAGES_PT_BR, type ApiExchangeMessages } from './api-exchange-messages';\nimport { API_EXCHANGE_ICONS } from './icons.generated';\n\nexport type { HttpHeadersInput, HttpMethod, HttpStatusClass } from '@trismegisto/primitives';\n\n/**\n * JSON (o caso de quase toda API) vai com a gramática embutida, para destacar sem o app registrar linguagem; as\n * outras seguem pelo id e o `hm-code-viewer` resolve com as linguagens que o app registrou.\n */\nfunction viewerLanguage(id: string): string | CodeLanguage {\n return id === 'json' ? CODE_LANGUAGE_JSON : id;\n}\n\n/** A requisição mostrada. `body` texto ou objeto (vira JSON). */\nexport interface ApiRequest {\n readonly method?: string;\n readonly url: string;\n readonly headers?: HttpHeadersInput;\n readonly body?: unknown;\n}\n\n/** A resposta. `statusText` sem valor usa a frase padrão do protocolo; `size` sem valor mede o corpo. */\nexport interface ApiResponse {\n readonly status: number;\n readonly statusText?: string;\n readonly headers?: HttpHeadersInput;\n readonly body?: unknown;\n readonly durationMs?: number | null;\n readonly size?: number | null;\n}\n\n/**\n * Visor de uma troca HTTP (requisição e resposta) para telas de desenvolvedor — console de API, log de\n * webhook, depurador de integração: método, URL, status com a classe (\"404 Not Found\", erro do cliente),\n * duração e tamanho no topo; abas com o corpo da resposta (JSON indentado e destacado no `hm-code-viewer`), os\n * cabeçalhos da resposta e a requisição (parâmetros de consulta, cabeçalhos e corpo). Cabeçalhos de segredo\n * (`Authorization`, `Cookie`, `X-Api-Key` e os de `sensitiveHeaders`) ficam mascarados até a pessoa pedir;\n * \"Copiar como cURL\" também sai mascarado. Sem `response`: aguardando (`pending`) ou falha de rede (`error`).\n *\n * Acessibilidade: o status é texto com a classe por extenso (a cor do selo é reforço); as abas são o\n * `hm-tabs`; os cabeçalhos são tabelas com cabeçalho de coluna; o botão de mostrar segredos é de alternância\n * (`aria-pressed`).\n */\n@Component({\n selector: 'hm-api-exchange',\n imports: [NgTemplateOutlet, ButtonComponent, CodeViewerComponent, CopyButtonComponent, TabComponent, TabsComponent],\n templateUrl: './api-exchange.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-api-exchange' },\n})\nexport class ApiExchangeComponent {\n readonly #icons = useHermesIcons(API_EXCHANGE_ICONS);\n\n readonly request = input.required<ApiRequest>();\n readonly response = input<ApiResponse | null>(null);\n /** Falha sem resposta (rede, tempo esgotado): o texto do erro. */\n readonly error = input('');\n /** Outros cabeçalhos a mascarar, além dos padrão. */\n readonly sensitiveHeaders = input<readonly string[]>([]);\n /** Mostra \"Copiar como cURL\" (padrão). */\n readonly copyable = input(true);\n /** Sobrescreve textos do catálogo da peça (parcial). */\n readonly texts = input<Partial<ApiExchangeMessages> | null>(null);\n\n private readonly messages = inject(HERMES_MESSAGES);\n private readonly i18n = inject(HermesI18nService);\n protected readonly text = computed<ApiExchangeMessages>(() => ({ ...this.i18n.pick(API_EXCHANGE_MESSAGES, API_EXCHANGE_MESSAGES_PT_BR), ...this.texts() }));\n protected readonly locale = computed(() => this.messages.meta.locale);\n protected readonly reveal = signal(false);\n\n protected readonly method = computed(() => (this.request().method ?? 'GET').toUpperCase());\n protected readonly url = computed(() => splitUrl(this.request().url));\n protected readonly label = computed(() => formatMessage(this.text().label, { method: this.method(), path: this.url().path }));\n\n protected readonly statusClass = computed(() => httpStatusClass(this.response()?.status));\n protected readonly statusText = computed(() => {\n const r = this.response();\n if (!r) return '';\n return `${r.status} ${r.statusText || HTTP_REASON_PHRASES[r.status] || ''}`.trim();\n });\n protected readonly statusLabel = computed(() =>\n formatMessage(this.text().statusLabel, { status: this.statusText(), class: this.text().statusClasses[this.statusClass()] }),\n );\n\n protected readonly responseBody = computed(() => {\n const r = this.response();\n return r ? formatHttpBody(r.body, headerValue(r.headers, 'content-type')) : '';\n });\n protected readonly responseLanguage = computed(() => viewerLanguage(bodyLanguage(headerValue(this.response()?.headers, 'content-type'), this.responseBody())));\n protected readonly requestBody = computed(() => formatHttpBody(this.request().body, headerValue(this.request().headers, 'content-type')));\n protected readonly requestLanguage = computed(() => viewerLanguage(bodyLanguage(headerValue(this.request().headers, 'content-type'), this.requestBody())));\n\n protected readonly duration = computed(() => formatDurationMs(this.response()?.durationMs, this.locale()));\n protected readonly size = computed(() => {\n const r = this.response();\n if (!r) return '';\n const bytes = r.size ?? (this.responseBody() ? bodyBytes(this.responseBody()) : null);\n return bytes == null ? '' : formatFileSize(bytes, this.locale());\n });\n\n protected readonly requestHeaders = computed(() => this.headers(this.request().headers));\n protected readonly responseHeaders = computed(() => this.headers(this.response()?.headers));\n protected readonly hasSensitive = computed(() => [...this.requestHeaders(), ...this.responseHeaders()].some((h) => h.sensitive));\n protected readonly curl = computed(() => toCurl(this.request()));\n protected readonly errorText = computed(() => (this.error() ? formatMessage(this.text().networkError, { error: this.error() }) : ''));\n\n private headers(input: HttpHeadersInput): { name: string; value: string; sensitive: boolean }[] {\n return normalizeHeaders(input).map(([name, value]) => {\n const sensitive = isSensitiveHeader(name, this.sensitiveHeaders());\n return { name, value: sensitive && !this.reveal() ? maskHeaderValue(value) : value, sensitive };\n });\n }\n\n protected toggleReveal(): void {\n this.reveal.update((v) => !v);\n }\n}\n","<section class=\"hm-api-exchange__frame\" [attr.aria-label]=\"label()\">\n <div class=\"hm-api-exchange__summary\">\n <span class=\"hm-api-exchange__method\" [attr.data-method]=\"method()\">{{ method() }}</span>\n <code class=\"hm-api-exchange__url\">{{ request().url }}</code>\n <div class=\"hm-api-exchange__facts\">\n @if (response()) {\n <span class=\"hm-api-exchange__status\" [attr.data-class]=\"statusClass()\">\n <span aria-hidden=\"true\">{{ statusText() }}</span><span class=\"hm-visually-hidden\">{{ statusLabel() }}</span>\n </span>\n @if (duration()) {\n <span class=\"hm-api-exchange__fact\"><span class=\"hm-visually-hidden\">{{ text().duration }}: </span>{{ duration() }}</span>\n }\n @if (size()) {\n <span class=\"hm-api-exchange__fact\"><span class=\"hm-visually-hidden\">{{ text().size }}: </span>{{ size() }}</span>\n }\n } @else if (errorText()) {\n <span class=\"hm-api-exchange__status\" data-class=\"serverError\">{{ errorText() }}</span>\n } @else {\n <span class=\"hm-api-exchange__fact\" role=\"status\">{{ text().pending }}</span>\n }\n </div>\n <div class=\"hm-api-exchange__tools\">\n @if (hasSensitive()) {\n <hm-button emphasis=\"minimal\" size=\"small\" [icon]=\"reveal() ? 'eye-close' : 'eye'\" toggle [pressed]=\"reveal()\" (clicked)=\"toggleReveal()\">\n {{ reveal() ? text().hide : text().reveal }}\n </hm-button>\n }\n @if (copyable()) {\n <hm-copy-button variant=\"text\" size=\"small\" [value]=\"curl()\" [label]=\"text().copyCurl\" [copiedLabel]=\"text().copiedCurl\" />\n }\n </div>\n </div>\n\n <hm-tabs [label]=\"label()\">\n @if (response()) {\n <hm-tab id=\"response\" [label]=\"text().response\">\n @if (responseBody()) {\n <hm-code-viewer [code]=\"responseBody()\" [language]=\"responseLanguage()\" [label]=\"text().response + ', ' + text().body\" />\n } @else {\n <p class=\"hm-api-exchange__empty\">{{ text().noBody }}</p>\n }\n </hm-tab>\n <hm-tab id=\"response-headers\" [label]=\"text().responseHeaders\" [count]=\"responseHeaders().length\">\n <ng-container *ngTemplateOutlet=\"headersTable; context: { $implicit: responseHeaders(), caption: text().responseHeaders }\" />\n </hm-tab>\n }\n <hm-tab id=\"request\" [label]=\"text().request\">\n @if (url().query.length) {\n <p class=\"hm-api-exchange__section\">{{ text().query }}</p>\n <div class=\"hm-api-exchange__table-wrap\">\n <table class=\"hm-api-exchange__table\">\n <caption class=\"hm-visually-hidden\">{{ text().query }}</caption>\n <thead><tr><th scope=\"col\">{{ text().name }}</th><th scope=\"col\">{{ text().value }}</th></tr></thead>\n <tbody>\n @for (pair of url().query; track $index) {\n <tr><td><code>{{ pair[0] }}</code></td><td><code>{{ pair[1] }}</code></td></tr>\n }\n </tbody>\n </table>\n </div>\n }\n <p class=\"hm-api-exchange__section\">{{ text().requestHeaders }}</p>\n <ng-container *ngTemplateOutlet=\"headersTable; context: { $implicit: requestHeaders(), caption: text().requestHeaders }\" />\n <p class=\"hm-api-exchange__section\">{{ text().body }}</p>\n @if (requestBody()) {\n <hm-code-viewer [code]=\"requestBody()\" [language]=\"requestLanguage()\" [label]=\"text().request + ', ' + text().body\" />\n } @else {\n <p class=\"hm-api-exchange__empty\">{{ text().noBody }}</p>\n }\n </hm-tab>\n </hm-tabs>\n</section>\n\n<ng-template #headersTable let-rows let-caption=\"caption\">\n @if (rows.length) {\n <div class=\"hm-api-exchange__table-wrap\">\n <table class=\"hm-api-exchange__table\">\n <caption class=\"hm-visually-hidden\">{{ caption }}</caption>\n <thead><tr><th scope=\"col\">{{ text().name }}</th><th scope=\"col\">{{ text().value }}</th></tr></thead>\n <tbody>\n @for (header of rows; track $index) {\n <tr>\n <td><code>{{ header.name }}</code></td>\n <td>\n <code>{{ header.value }}</code>\n @if (header.sensitive && !reveal()) {\n <span class=\"hm-visually-hidden\">, {{ text().masked }}</span>\n }\n </td>\n </tr>\n }\n </tbody>\n </table>\n </div>\n } @else {\n <p class=\"hm-api-exchange__empty\">{{ text().noHeaders }}</p>\n }\n</ng-template>\n","// Ponto de import `@trismegisto/angular/api-exchange` (secundário do ng-packagr): o que o public-api e as outras pastas usam\n// daqui. Ao criar arquivo público novo na pasta, acrescente a linha.\nexport * from './api-exchange.component';\nexport * from './api-exchange-messages';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAMO,MAAM,2BAA2B,GAAwB;AAC9D,IAAA,KAAK,EAAE,4BAA4B;AACnC,IAAA,OAAO,EAAE,YAAY;AACrB,IAAA,QAAQ,EAAE,UAAU;AACpB,IAAA,cAAc,EAAE,0BAA0B;AAC1C,IAAA,eAAe,EAAE,wBAAwB;AACzC,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,KAAK,EAAE,wBAAwB;AAC/B,IAAA,MAAM,EAAE,YAAY;AACpB,IAAA,SAAS,EAAE,iBAAiB;AAC5B,IAAA,IAAI,EAAE,MAAM;AACZ,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,QAAQ,EAAE,SAAS;AACnB,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,aAAa,EAAE;AACb,QAAA,aAAa,EAAE,aAAa;AAC5B,QAAA,OAAO,EAAE,SAAS;AAClB,QAAA,QAAQ,EAAE,kBAAkB;AAC5B,QAAA,WAAW,EAAE,iBAAiB;AAC9B,QAAA,WAAW,EAAE,kBAAkB;AAC/B,QAAA,OAAO,EAAE,cAAc;AACxB,KAAA;AACD,IAAA,WAAW,EAAE,0BAA0B;AACvC,IAAA,OAAO,EAAE,sBAAsB;AAC/B,IAAA,YAAY,EAAE,uBAAuB;AACrC,IAAA,QAAQ,EAAE,kBAAkB;AAC5B,IAAA,UAAU,EAAE,iBAAiB;AAC7B,IAAA,MAAM,EAAE,2BAA2B;AACnC,IAAA,I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