@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,735 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, inject, computed, ChangeDetectionStrategy, Component, numberAttribute, output, booleanAttribute, signal } from '@angular/core';
|
|
3
|
+
import { incidentSeverityIntent, formatMessage, incidentStatusIntent, incidentActions, formatObservabilityDuration } from '@trismegisto/primitives';
|
|
4
|
+
import { HermesI18nService } from '@trismegisto/angular/i18n';
|
|
5
|
+
import { OBSERVABILITY_TEXT_BY_LOCALE, OBSERVABILITY_TEXT_MESSAGES_PT_BR } from '@trismegisto/angular/observability-text';
|
|
6
|
+
import { ICON_ARROW, ICON_ARROW_SEND, ICON_ASSIGN_USER, ICON_BELL_SYMBOL, ICON_BULLSEYE, ICON_CHECK, ICON_CHECK_CIRCLE, ICON_EXCLAMATION_CIRCLE, ICON_EXCLAMATION_TRIANGLE, ICON_HEXAGON_EXCLAMATION, ICON_INFO_CIRCLE, ICON_MONITOR_HEARTBEAT, ICON_REFRESH, ICON_SEARCH, ICON_USER, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
|
|
7
|
+
import { AccountAvatarComponent } from '@trismegisto/angular/account-avatar';
|
|
8
|
+
import { ButtonComponent } from '@trismegisto/angular/button';
|
|
9
|
+
import { SelectComponent } from '@trismegisto/angular/select';
|
|
10
|
+
import { TextareaComponent } from '@trismegisto/angular/textarea';
|
|
11
|
+
|
|
12
|
+
/** Ícone de cada severidade: a forma muda junto com a cor. */
|
|
13
|
+
const INCIDENT_SEVERITY_ICONS = {
|
|
14
|
+
critical: 'hexagon-exclamation',
|
|
15
|
+
high: 'exclamation-triangle',
|
|
16
|
+
medium: 'exclamation-circle',
|
|
17
|
+
low: 'info-circle',
|
|
18
|
+
};
|
|
19
|
+
/** Ícone de cada estado do incidente. */
|
|
20
|
+
const INCIDENT_STATUS_ICONS = {
|
|
21
|
+
triggered: 'bell-symbol',
|
|
22
|
+
acknowledged: 'check',
|
|
23
|
+
investigating: 'search',
|
|
24
|
+
identified: 'bullseye',
|
|
25
|
+
monitoring: 'monitor-heartbeat',
|
|
26
|
+
resolved: 'check-circle',
|
|
27
|
+
};
|
|
28
|
+
/** Ícone de cada ação. */
|
|
29
|
+
const INCIDENT_ACTION_ICONS = {
|
|
30
|
+
acknowledge: 'check',
|
|
31
|
+
escalate: 'arrow-up',
|
|
32
|
+
resolve: 'check-circle',
|
|
33
|
+
reopen: 'refresh',
|
|
34
|
+
assign: 'assign-user',
|
|
35
|
+
};
|
|
36
|
+
const dateFormats = new Map();
|
|
37
|
+
/** Data e hora curtas no idioma do catálogo. */
|
|
38
|
+
function formatIncidentTime(time, locale) {
|
|
39
|
+
let format = dateFormats.get(locale);
|
|
40
|
+
if (!format)
|
|
41
|
+
dateFormats.set(locale, (format = new Intl.DateTimeFormat(locale, { dateStyle: 'short', timeStyle: 'short' })));
|
|
42
|
+
return format.format(time);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
const INCIDENT_MESSAGES_PT_BR = {
|
|
46
|
+
service: 'Serviço',
|
|
47
|
+
assignee: 'Responsável',
|
|
48
|
+
unassigned: 'Sem responsável',
|
|
49
|
+
started: 'Início',
|
|
50
|
+
duration: 'Duração',
|
|
51
|
+
resolvedAfter: 'Resolvido em {duration}',
|
|
52
|
+
actions: 'Ações de {title}',
|
|
53
|
+
summary: 'Resumo',
|
|
54
|
+
impact: 'Impacto',
|
|
55
|
+
updates: 'Atualizações',
|
|
56
|
+
noUpdates: 'Nenhuma atualização ainda.',
|
|
57
|
+
assignLabel: 'Responsável',
|
|
58
|
+
assignPlaceholder: 'Escolha alguém',
|
|
59
|
+
assignButton: 'Atribuir',
|
|
60
|
+
postLabel: 'Nova atualização',
|
|
61
|
+
postButton: 'Publicar atualização',
|
|
62
|
+
by: 'por {author}',
|
|
63
|
+
statusChanged: 'Status alterado para {status}',
|
|
64
|
+
};
|
|
65
|
+
const INCIDENT_MESSAGES_EN = {
|
|
66
|
+
service: 'Service',
|
|
67
|
+
assignee: 'Assignee',
|
|
68
|
+
unassigned: 'Unassigned',
|
|
69
|
+
started: 'Started',
|
|
70
|
+
duration: 'Duration',
|
|
71
|
+
resolvedAfter: 'Resolved in {duration}',
|
|
72
|
+
actions: 'Actions for {title}',
|
|
73
|
+
summary: 'Summary',
|
|
74
|
+
impact: 'Impact',
|
|
75
|
+
updates: 'Updates',
|
|
76
|
+
noUpdates: 'No updates yet.',
|
|
77
|
+
assignLabel: 'Assignee',
|
|
78
|
+
assignPlaceholder: 'Choose someone',
|
|
79
|
+
assignButton: 'Assign',
|
|
80
|
+
postLabel: 'New update',
|
|
81
|
+
postButton: 'Post update',
|
|
82
|
+
by: 'by {author}',
|
|
83
|
+
statusChanged: 'Status changed to {status}',
|
|
84
|
+
};
|
|
85
|
+
const INCIDENT_MESSAGES_ES = {
|
|
86
|
+
service: 'Servicio',
|
|
87
|
+
assignee: 'Responsable',
|
|
88
|
+
unassigned: 'Sin responsable',
|
|
89
|
+
started: 'Inicio',
|
|
90
|
+
duration: 'Duración',
|
|
91
|
+
resolvedAfter: 'Resuelto en {duration}',
|
|
92
|
+
actions: 'Acciones de {title}',
|
|
93
|
+
summary: 'Resumen',
|
|
94
|
+
impact: 'Impacto',
|
|
95
|
+
updates: 'Actualizaciones',
|
|
96
|
+
noUpdates: 'Todavía no hay actualizaciones.',
|
|
97
|
+
assignLabel: 'Responsable',
|
|
98
|
+
assignPlaceholder: 'Elige a alguien',
|
|
99
|
+
assignButton: 'Asignar',
|
|
100
|
+
postLabel: 'Nueva actualización',
|
|
101
|
+
postButton: 'Publicar actualización',
|
|
102
|
+
by: 'por {author}',
|
|
103
|
+
statusChanged: 'Estado cambiado a {status}',
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
const INCIDENT_ICONS = [ICON_ARROW, ICON_ARROW_SEND, ICON_ASSIGN_USER, ICON_BELL_SYMBOL, ICON_BULLSEYE, ICON_CHECK, ICON_CHECK_CIRCLE, ICON_EXCLAMATION_CIRCLE, ICON_EXCLAMATION_TRIANGLE, ICON_HEXAGON_EXCLAMATION, ICON_INFO_CIRCLE, ICON_MONITOR_HEARTBEAT, ICON_REFRESH, ICON_SEARCH, ICON_USER];
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* Selo de severidade (`hm-incident-severity`): ícone + texto no tom de `incidentSeverityIntent`. A forma do
|
|
110
|
+
* ícone muda com a severidade (não só a cor) e o leitor de tela ouve "Severidade Crítica".
|
|
111
|
+
*
|
|
112
|
+
* ```html
|
|
113
|
+
* <hm-incident-severity severity="critical" />
|
|
114
|
+
* ```
|
|
115
|
+
*/
|
|
116
|
+
class IncidentSeverityComponent {
|
|
117
|
+
#icons = useHermesIcons(INCIDENT_ICONS);
|
|
118
|
+
severity = input.required(...(ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []));
|
|
119
|
+
#i18n = inject(HermesI18nService);
|
|
120
|
+
#text = computed(() => this.#i18n.pick(OBSERVABILITY_TEXT_BY_LOCALE, OBSERVABILITY_TEXT_MESSAGES_PT_BR), ...(ngDevMode ? [{ debugName: "#text" }] : /* istanbul ignore next */ []));
|
|
121
|
+
intent = computed(() => incidentSeverityIntent(this.severity()), ...(ngDevMode ? [{ debugName: "intent" }] : /* istanbul ignore next */ []));
|
|
122
|
+
icon = computed(() => INCIDENT_SEVERITY_ICONS[this.severity()] ?? INCIDENT_SEVERITY_ICONS.low, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
123
|
+
text = computed(() => this.#text().severity[this.severity()] ?? this.severity(), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
124
|
+
spoken = computed(() => formatMessage(this.#text().severityLabel, { severity: this.text() }), ...(ngDevMode ? [{ debugName: "spoken" }] : /* istanbul ignore next */ []));
|
|
125
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IncidentSeverityComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
126
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: IncidentSeverityComponent, isStandalone: true, selector: "hm-incident-severity", inputs: { severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "hm-incident-chip-host" }, ngImport: i0, template: `
|
|
127
|
+
<span [class]="'hm-incident-chip hm-incident-chip--' + intent()">
|
|
128
|
+
<hm-icon class="hm-incident-chip__icon" [shape]="icon()" />
|
|
129
|
+
<span class="hm-visually-hidden">{{ spoken() }}</span>
|
|
130
|
+
<span aria-hidden="true">{{ text() }}</span>
|
|
131
|
+
</span>
|
|
132
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
133
|
+
}
|
|
134
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IncidentSeverityComponent, decorators: [{
|
|
135
|
+
type: Component,
|
|
136
|
+
args: [{
|
|
137
|
+
selector: 'hm-incident-severity',
|
|
138
|
+
imports: [IconComponent],
|
|
139
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
140
|
+
host: { class: 'hm-incident-chip-host' },
|
|
141
|
+
template: `
|
|
142
|
+
<span [class]="'hm-incident-chip hm-incident-chip--' + intent()">
|
|
143
|
+
<hm-icon class="hm-incident-chip__icon" [shape]="icon()" />
|
|
144
|
+
<span class="hm-visually-hidden">{{ spoken() }}</span>
|
|
145
|
+
<span aria-hidden="true">{{ text() }}</span>
|
|
146
|
+
</span>
|
|
147
|
+
`,
|
|
148
|
+
}]
|
|
149
|
+
}], propDecorators: { severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: true }] }] } });
|
|
150
|
+
/**
|
|
151
|
+
* Selo do estado de um incidente (`hm-incident-status`): ícone + texto no tom de `incidentStatusIntent`;
|
|
152
|
+
* o leitor de tela ouve "Status Investigando".
|
|
153
|
+
*/
|
|
154
|
+
class IncidentStatusComponent {
|
|
155
|
+
#icons = useHermesIcons(INCIDENT_ICONS);
|
|
156
|
+
status = input.required(...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
157
|
+
#i18n = inject(HermesI18nService);
|
|
158
|
+
#text = computed(() => this.#i18n.pick(OBSERVABILITY_TEXT_BY_LOCALE, OBSERVABILITY_TEXT_MESSAGES_PT_BR), ...(ngDevMode ? [{ debugName: "#text" }] : /* istanbul ignore next */ []));
|
|
159
|
+
intent = computed(() => incidentStatusIntent(this.status()), ...(ngDevMode ? [{ debugName: "intent" }] : /* istanbul ignore next */ []));
|
|
160
|
+
icon = computed(() => INCIDENT_STATUS_ICONS[this.status()] ?? INCIDENT_STATUS_ICONS.triggered, ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
161
|
+
text = computed(() => this.#text().incidentStatus[this.status()] ?? this.status(), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
162
|
+
spoken = computed(() => formatMessage(this.#text().statusLabel, { status: this.text() }), ...(ngDevMode ? [{ debugName: "spoken" }] : /* istanbul ignore next */ []));
|
|
163
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IncidentStatusComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
164
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: IncidentStatusComponent, isStandalone: true, selector: "hm-incident-status", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null } }, host: { classAttribute: "hm-incident-chip-host" }, ngImport: i0, template: `
|
|
165
|
+
<span [class]="'hm-incident-chip hm-incident-chip--subtle hm-incident-chip--' + intent()">
|
|
166
|
+
<hm-icon class="hm-incident-chip__icon" [shape]="icon()" />
|
|
167
|
+
<span class="hm-visually-hidden">{{ spoken() }}</span>
|
|
168
|
+
<span aria-hidden="true">{{ text() }}</span>
|
|
169
|
+
</span>
|
|
170
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
171
|
+
}
|
|
172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IncidentStatusComponent, decorators: [{
|
|
173
|
+
type: Component,
|
|
174
|
+
args: [{
|
|
175
|
+
selector: 'hm-incident-status',
|
|
176
|
+
imports: [IconComponent],
|
|
177
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
178
|
+
host: { class: 'hm-incident-chip-host' },
|
|
179
|
+
template: `
|
|
180
|
+
<span [class]="'hm-incident-chip hm-incident-chip--subtle hm-incident-chip--' + intent()">
|
|
181
|
+
<hm-icon class="hm-incident-chip__icon" [shape]="icon()" />
|
|
182
|
+
<span class="hm-visually-hidden">{{ spoken() }}</span>
|
|
183
|
+
<span aria-hidden="true">{{ text() }}</span>
|
|
184
|
+
</span>
|
|
185
|
+
`,
|
|
186
|
+
}]
|
|
187
|
+
}], propDecorators: { status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: true }] }] } });
|
|
188
|
+
|
|
189
|
+
let sequence$1 = 0;
|
|
190
|
+
/**
|
|
191
|
+
* Cartão de incidente (`hm-incident-card`): severidade e status em selo (ícone + texto), id, título, serviço
|
|
192
|
+
* afetado, responsável (avatar + nome, ou "Sem responsável"), início e duração, e as ações que o estado
|
|
193
|
+
* atual aceita (`incidentActions`). Só apresenta: cada ação sai por `(action)` com o tipo e o app decide.
|
|
194
|
+
*
|
|
195
|
+
* ```html
|
|
196
|
+
* <hm-incident-card [incident]="incidente" [now]="agora" (action)="agir(incidente, $event)" />
|
|
197
|
+
* ```
|
|
198
|
+
*
|
|
199
|
+
* - `href` faz do título um link para o detalhe.
|
|
200
|
+
* - `now` fixa o "agora" da duração de um incidente aberto (padrão: a hora do cálculo).
|
|
201
|
+
* - `actions="false"` esconde a fileira de ações (lista só de leitura).
|
|
202
|
+
*/
|
|
203
|
+
class IncidentCardComponent {
|
|
204
|
+
#icons = useHermesIcons(INCIDENT_ICONS);
|
|
205
|
+
incident = input.required(...(ngDevMode ? [{ debugName: "incident" }] : /* istanbul ignore next */ []));
|
|
206
|
+
/** "Agora" da duração (ms). `null` = hora do cálculo. */
|
|
207
|
+
now = input(null, ...(ngDevMode ? [{ debugName: "now" }] : /* istanbul ignore next */ []));
|
|
208
|
+
/** Nível do título (padrão 3; `0` = parágrafo). */
|
|
209
|
+
headingLevel = input(3, { ...(ngDevMode ? { debugName: "headingLevel" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v, 3) });
|
|
210
|
+
/** Link do detalhe; vazio = título só texto. */
|
|
211
|
+
href = input('', ...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
|
|
212
|
+
/** Mostra as ações do estado atual. */
|
|
213
|
+
actions = input(true, { ...(ngDevMode ? { debugName: "actions" } : /* istanbul ignore next */ {}), transform: (v) => v !== false && v !== 'false' });
|
|
214
|
+
/** Ação pedida pela pessoa. */
|
|
215
|
+
action = output();
|
|
216
|
+
/** Sobrescrita parcial dos textos (o app troca a frase sem mudar de idioma). */
|
|
217
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
218
|
+
#i18n = inject(HermesI18nService);
|
|
219
|
+
titleId = `hm-incident-card-${++sequence$1}`;
|
|
220
|
+
text = computed(() => ({
|
|
221
|
+
...this.#i18n.pick({ 'pt-BR': INCIDENT_MESSAGES_PT_BR, en: INCIDENT_MESSAGES_EN, es: INCIDENT_MESSAGES_ES }, INCIDENT_MESSAGES_PT_BR),
|
|
222
|
+
...(this.texts() ?? {}),
|
|
223
|
+
}), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
224
|
+
#common = computed(() => this.#i18n.pick(OBSERVABILITY_TEXT_BY_LOCALE, OBSERVABILITY_TEXT_MESSAGES_PT_BR), ...(ngDevMode ? [{ debugName: "#common" }] : /* istanbul ignore next */ []));
|
|
225
|
+
available = computed(() => incidentActions(this.incident().status), ...(ngDevMode ? [{ debugName: "available" }] : /* istanbul ignore next */ []));
|
|
226
|
+
started = computed(() => formatIncidentTime(this.incident().startedAt, this.#i18n.formatLocale()), ...(ngDevMode ? [{ debugName: "started" }] : /* istanbul ignore next */ []));
|
|
227
|
+
startedIso = computed(() => new Date(this.incident().startedAt).toISOString(), ...(ngDevMode ? [{ debugName: "startedIso" }] : /* istanbul ignore next */ []));
|
|
228
|
+
duration = computed(() => {
|
|
229
|
+
const incident = this.incident();
|
|
230
|
+
const end = incident.resolvedAt ?? this.now() ?? Date.now();
|
|
231
|
+
return formatObservabilityDuration(Math.max(0, end - incident.startedAt), this.#common().units, this.#i18n.formatLocale());
|
|
232
|
+
}, ...(ngDevMode ? [{ debugName: "duration" }] : /* istanbul ignore next */ []));
|
|
233
|
+
actionsLabel = computed(() => formatMessage(this.text().actions, { title: this.incident().title }), ...(ngDevMode ? [{ debugName: "actionsLabel" }] : /* istanbul ignore next */ []));
|
|
234
|
+
actionText(item) {
|
|
235
|
+
return this.#common().actions[item];
|
|
236
|
+
}
|
|
237
|
+
actionIcon(item) {
|
|
238
|
+
return INCIDENT_ACTION_ICONS[item];
|
|
239
|
+
}
|
|
240
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IncidentCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
241
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: IncidentCardComponent, isStandalone: true, selector: "hm-incident-card", inputs: { incident: { classPropertyName: "incident", publicName: "incident", isSignal: true, isRequired: true, transformFunction: null }, now: { classPropertyName: "now", publicName: "now", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { action: "action" }, host: { properties: { "class.hm-incident-card--resolved": "incident().status === 'resolved'", "attr.data-severity": "incident().severity" }, classAttribute: "hm-incident-card" }, ngImport: i0, template: `
|
|
242
|
+
<article class="hm-incident-card__frame" [attr.aria-labelledby]="titleId">
|
|
243
|
+
<div class="hm-incident-card__top">
|
|
244
|
+
<hm-incident-severity [severity]="incident().severity" />
|
|
245
|
+
<hm-incident-status [status]="incident().status" />
|
|
246
|
+
<span class="hm-incident-card__id">{{ incident().id }}</span>
|
|
247
|
+
</div>
|
|
248
|
+
<p
|
|
249
|
+
class="hm-incident-card__title"
|
|
250
|
+
[id]="titleId"
|
|
251
|
+
[attr.role]="headingLevel() ? 'heading' : null"
|
|
252
|
+
[attr.aria-level]="headingLevel() || null"
|
|
253
|
+
>
|
|
254
|
+
@if (href()) {
|
|
255
|
+
<a class="hm-incident-card__link" [attr.href]="href()">{{ incident().title }}</a>
|
|
256
|
+
} @else {
|
|
257
|
+
{{ incident().title }}
|
|
258
|
+
}
|
|
259
|
+
</p>
|
|
260
|
+
|
|
261
|
+
<dl class="hm-incident-card__meta">
|
|
262
|
+
@if (incident().service) {
|
|
263
|
+
<div class="hm-incident-card__fact">
|
|
264
|
+
<dt>{{ text().service }}</dt>
|
|
265
|
+
<dd>{{ incident().service }}</dd>
|
|
266
|
+
</div>
|
|
267
|
+
}
|
|
268
|
+
<div class="hm-incident-card__fact">
|
|
269
|
+
<dt>{{ text().assignee }}</dt>
|
|
270
|
+
<dd class="hm-incident-card__person">
|
|
271
|
+
@if (incident().assignee; as person) {
|
|
272
|
+
<hm-account-avatar size="small" [name]="person.name" [imageUrl]="person.imageUrl" />
|
|
273
|
+
<span>{{ person.name }}</span>
|
|
274
|
+
} @else {
|
|
275
|
+
<hm-icon class="hm-incident-card__unassigned-icon" shape="user" />
|
|
276
|
+
<span class="hm-incident-card__unassigned">{{ text().unassigned }}</span>
|
|
277
|
+
}
|
|
278
|
+
</dd>
|
|
279
|
+
</div>
|
|
280
|
+
<div class="hm-incident-card__fact">
|
|
281
|
+
<dt>{{ text().started }}</dt>
|
|
282
|
+
<dd><time [attr.datetime]="startedIso()">{{ started() }}</time></dd>
|
|
283
|
+
</div>
|
|
284
|
+
<div class="hm-incident-card__fact">
|
|
285
|
+
<dt>{{ text().duration }}</dt>
|
|
286
|
+
<dd>{{ duration() }}</dd>
|
|
287
|
+
</div>
|
|
288
|
+
</dl>
|
|
289
|
+
|
|
290
|
+
@if (actions() && available().length) {
|
|
291
|
+
<div class="hm-incident-card__actions" role="group" [attr.aria-label]="actionsLabel()">
|
|
292
|
+
@for (item of available(); track item; let first = $first) {
|
|
293
|
+
<hm-button
|
|
294
|
+
size="small"
|
|
295
|
+
[emphasis]="first ? 'medium' : 'minimal'"
|
|
296
|
+
[icon]="actionIcon(item)"
|
|
297
|
+
(clicked)="action.emit(item)"
|
|
298
|
+
>{{ actionText(item) }}</hm-button>
|
|
299
|
+
}
|
|
300
|
+
</div>
|
|
301
|
+
}
|
|
302
|
+
</article>
|
|
303
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AccountAvatarComponent, selector: "hm-account-avatar", inputs: ["name", "imageUrl", "size", "loading", "presence", "texts"] }, { kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: IncidentSeverityComponent, selector: "hm-incident-severity", inputs: ["severity"] }, { kind: "component", type: IncidentStatusComponent, selector: "hm-incident-status", inputs: ["status"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
304
|
+
}
|
|
305
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IncidentCardComponent, decorators: [{
|
|
306
|
+
type: Component,
|
|
307
|
+
args: [{
|
|
308
|
+
selector: 'hm-incident-card',
|
|
309
|
+
imports: [AccountAvatarComponent, ButtonComponent, IconComponent, IncidentSeverityComponent, IncidentStatusComponent],
|
|
310
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
311
|
+
host: {
|
|
312
|
+
class: 'hm-incident-card',
|
|
313
|
+
'[class.hm-incident-card--resolved]': "incident().status === 'resolved'",
|
|
314
|
+
'[attr.data-severity]': 'incident().severity',
|
|
315
|
+
},
|
|
316
|
+
template: `
|
|
317
|
+
<article class="hm-incident-card__frame" [attr.aria-labelledby]="titleId">
|
|
318
|
+
<div class="hm-incident-card__top">
|
|
319
|
+
<hm-incident-severity [severity]="incident().severity" />
|
|
320
|
+
<hm-incident-status [status]="incident().status" />
|
|
321
|
+
<span class="hm-incident-card__id">{{ incident().id }}</span>
|
|
322
|
+
</div>
|
|
323
|
+
<p
|
|
324
|
+
class="hm-incident-card__title"
|
|
325
|
+
[id]="titleId"
|
|
326
|
+
[attr.role]="headingLevel() ? 'heading' : null"
|
|
327
|
+
[attr.aria-level]="headingLevel() || null"
|
|
328
|
+
>
|
|
329
|
+
@if (href()) {
|
|
330
|
+
<a class="hm-incident-card__link" [attr.href]="href()">{{ incident().title }}</a>
|
|
331
|
+
} @else {
|
|
332
|
+
{{ incident().title }}
|
|
333
|
+
}
|
|
334
|
+
</p>
|
|
335
|
+
|
|
336
|
+
<dl class="hm-incident-card__meta">
|
|
337
|
+
@if (incident().service) {
|
|
338
|
+
<div class="hm-incident-card__fact">
|
|
339
|
+
<dt>{{ text().service }}</dt>
|
|
340
|
+
<dd>{{ incident().service }}</dd>
|
|
341
|
+
</div>
|
|
342
|
+
}
|
|
343
|
+
<div class="hm-incident-card__fact">
|
|
344
|
+
<dt>{{ text().assignee }}</dt>
|
|
345
|
+
<dd class="hm-incident-card__person">
|
|
346
|
+
@if (incident().assignee; as person) {
|
|
347
|
+
<hm-account-avatar size="small" [name]="person.name" [imageUrl]="person.imageUrl" />
|
|
348
|
+
<span>{{ person.name }}</span>
|
|
349
|
+
} @else {
|
|
350
|
+
<hm-icon class="hm-incident-card__unassigned-icon" shape="user" />
|
|
351
|
+
<span class="hm-incident-card__unassigned">{{ text().unassigned }}</span>
|
|
352
|
+
}
|
|
353
|
+
</dd>
|
|
354
|
+
</div>
|
|
355
|
+
<div class="hm-incident-card__fact">
|
|
356
|
+
<dt>{{ text().started }}</dt>
|
|
357
|
+
<dd><time [attr.datetime]="startedIso()">{{ started() }}</time></dd>
|
|
358
|
+
</div>
|
|
359
|
+
<div class="hm-incident-card__fact">
|
|
360
|
+
<dt>{{ text().duration }}</dt>
|
|
361
|
+
<dd>{{ duration() }}</dd>
|
|
362
|
+
</div>
|
|
363
|
+
</dl>
|
|
364
|
+
|
|
365
|
+
@if (actions() && available().length) {
|
|
366
|
+
<div class="hm-incident-card__actions" role="group" [attr.aria-label]="actionsLabel()">
|
|
367
|
+
@for (item of available(); track item; let first = $first) {
|
|
368
|
+
<hm-button
|
|
369
|
+
size="small"
|
|
370
|
+
[emphasis]="first ? 'medium' : 'minimal'"
|
|
371
|
+
[icon]="actionIcon(item)"
|
|
372
|
+
(clicked)="action.emit(item)"
|
|
373
|
+
>{{ actionText(item) }}</hm-button>
|
|
374
|
+
}
|
|
375
|
+
</div>
|
|
376
|
+
}
|
|
377
|
+
</article>
|
|
378
|
+
`,
|
|
379
|
+
}]
|
|
380
|
+
}], propDecorators: { incident: [{ type: i0.Input, args: [{ isSignal: true, alias: "incident", required: true }] }], now: [{ type: i0.Input, args: [{ isSignal: true, alias: "now", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], action: [{ type: i0.Output, args: ["action"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
381
|
+
|
|
382
|
+
let sequence = 0;
|
|
383
|
+
/**
|
|
384
|
+
* Detalhe de um incidente (`hm-incident-detail`): cabeçalho com severidade, status e id; título; serviço,
|
|
385
|
+
* início e duração; o campo de atribuição (escolhe um dos `responders` e emite `assign` com o id); as ações do
|
|
386
|
+
* estado atual (`incidentActions`, menos `assign`, que já é o campo); resumo e impacto; e a linha do tempo das
|
|
387
|
+
* atualizações, da mais recente para a mais antiga, com o formulário opcional de nova atualização (`post`).
|
|
388
|
+
*
|
|
389
|
+
* ```html
|
|
390
|
+
* <hm-incident-detail [incident]="inc" [updates]="atualizacoes" [responders]="plantao" postable
|
|
391
|
+
* (action)="agir($event)" (assign)="atribuir($event)" (post)="publicar($event)" />
|
|
392
|
+
* ```
|
|
393
|
+
*
|
|
394
|
+
* Não guarda nada: o app aplica a atribuição, a ação ou a atualização e devolve o incidente novo.
|
|
395
|
+
*/
|
|
396
|
+
class IncidentDetailComponent {
|
|
397
|
+
#icons = useHermesIcons(INCIDENT_ICONS);
|
|
398
|
+
incident = input.required(...(ngDevMode ? [{ debugName: "incident" }] : /* istanbul ignore next */ []));
|
|
399
|
+
/** Atualizações em qualquer ordem; são mostradas da mais recente para a mais antiga. */
|
|
400
|
+
updates = input([], ...(ngDevMode ? [{ debugName: "updates" }] : /* istanbul ignore next */ []));
|
|
401
|
+
/** Quem pode assumir o incidente; vazio = sem campo de atribuição. */
|
|
402
|
+
responders = input([], ...(ngDevMode ? [{ debugName: "responders" }] : /* istanbul ignore next */ []));
|
|
403
|
+
/** "Agora" da duração (ms). `null` = hora do cálculo. */
|
|
404
|
+
now = input(null, ...(ngDevMode ? [{ debugName: "now" }] : /* istanbul ignore next */ []));
|
|
405
|
+
/** Nível do título (padrão 2); as seções ficam um nível abaixo. */
|
|
406
|
+
headingLevel = input(2, { ...(ngDevMode ? { debugName: "headingLevel" } : /* istanbul ignore next */ {}), transform: (v) => (numberAttribute(v, 2) || 2) });
|
|
407
|
+
/** Mostra o formulário de nova atualização. */
|
|
408
|
+
postable = input(false, { ...(ngDevMode ? { debugName: "postable" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
409
|
+
/** Sobrescrita parcial dos textos (o app troca a frase sem mudar de idioma). */
|
|
410
|
+
texts = input(null, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
411
|
+
/** Ação pedida (reconhecer, escalar, resolver, reabrir). */
|
|
412
|
+
action = output();
|
|
413
|
+
/** Id da pessoa escolhida no campo de atribuição. */
|
|
414
|
+
assign = output();
|
|
415
|
+
/** Texto da nova atualização (sem espaços nas pontas). */
|
|
416
|
+
post = output();
|
|
417
|
+
#i18n = inject(HermesI18nService);
|
|
418
|
+
text = computed(() => ({
|
|
419
|
+
...this.#i18n.pick({ 'pt-BR': INCIDENT_MESSAGES_PT_BR, en: INCIDENT_MESSAGES_EN, es: INCIDENT_MESSAGES_ES }, INCIDENT_MESSAGES_PT_BR),
|
|
420
|
+
...(this.texts() ?? {}),
|
|
421
|
+
}), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
422
|
+
#common = computed(() => this.#i18n.pick(OBSERVABILITY_TEXT_BY_LOCALE, OBSERVABILITY_TEXT_MESSAGES_PT_BR), ...(ngDevMode ? [{ debugName: "#common" }] : /* istanbul ignore next */ []));
|
|
423
|
+
#id = `hm-incident-detail-${++sequence}`;
|
|
424
|
+
ids = {
|
|
425
|
+
title: `${this.#id}-title`,
|
|
426
|
+
summary: `${this.#id}-summary`,
|
|
427
|
+
impact: `${this.#id}-impact`,
|
|
428
|
+
updates: `${this.#id}-updates`,
|
|
429
|
+
};
|
|
430
|
+
/** Escolha do campo de atribuição (rascunho até "Atribuir"). */
|
|
431
|
+
assignee = signal('', ...(ngDevMode ? [{ debugName: "assignee" }] : /* istanbul ignore next */ []));
|
|
432
|
+
draft = signal('', ...(ngDevMode ? [{ debugName: "draft" }] : /* istanbul ignore next */ []));
|
|
433
|
+
subLevel = computed(() => Math.min(6, this.headingLevel() + 1), ...(ngDevMode ? [{ debugName: "subLevel" }] : /* istanbul ignore next */ []));
|
|
434
|
+
available = computed(() => incidentActions(this.incident().status).filter((a) => a !== 'assign'), ...(ngDevMode ? [{ debugName: "available" }] : /* istanbul ignore next */ []));
|
|
435
|
+
ordered = computed(() => this.updates().slice().sort((a, b) => b.at - a.at), ...(ngDevMode ? [{ debugName: "ordered" }] : /* istanbul ignore next */ []));
|
|
436
|
+
canAssign = computed(() => !!this.assignee() && this.assignee() !== this.incident().assignee?.id, ...(ngDevMode ? [{ debugName: "canAssign" }] : /* istanbul ignore next */ []));
|
|
437
|
+
duration = computed(() => {
|
|
438
|
+
const incident = this.incident();
|
|
439
|
+
const end = incident.resolvedAt ?? this.now() ?? Date.now();
|
|
440
|
+
return formatObservabilityDuration(Math.max(0, end - incident.startedAt), this.#common().units, this.#i18n.formatLocale());
|
|
441
|
+
}, ...(ngDevMode ? [{ debugName: "duration" }] : /* istanbul ignore next */ []));
|
|
442
|
+
actionsLabel = computed(() => formatMessage(this.text().actions, { title: this.incident().title }), ...(ngDevMode ? [{ debugName: "actionsLabel" }] : /* istanbul ignore next */ []));
|
|
443
|
+
time(at) {
|
|
444
|
+
return formatIncidentTime(at, this.#i18n.formatLocale());
|
|
445
|
+
}
|
|
446
|
+
iso(at) {
|
|
447
|
+
return new Date(at).toISOString();
|
|
448
|
+
}
|
|
449
|
+
byText(author) {
|
|
450
|
+
return formatMessage(this.text().by, { author });
|
|
451
|
+
}
|
|
452
|
+
changedText(update) {
|
|
453
|
+
return update.status ? formatMessage(this.text().statusChanged, { status: this.#common().incidentStatus[update.status] }) : '';
|
|
454
|
+
}
|
|
455
|
+
actionText(item) {
|
|
456
|
+
return this.#common().actions[item];
|
|
457
|
+
}
|
|
458
|
+
actionIcon(item) {
|
|
459
|
+
return INCIDENT_ACTION_ICONS[item];
|
|
460
|
+
}
|
|
461
|
+
submitAssign() {
|
|
462
|
+
if (this.canAssign())
|
|
463
|
+
this.assign.emit(this.assignee());
|
|
464
|
+
}
|
|
465
|
+
submitPost() {
|
|
466
|
+
const text = this.draft().trim();
|
|
467
|
+
if (!text)
|
|
468
|
+
return;
|
|
469
|
+
this.post.emit(text);
|
|
470
|
+
this.draft.set('');
|
|
471
|
+
}
|
|
472
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IncidentDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
473
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: IncidentDetailComponent, isStandalone: true, selector: "hm-incident-detail", inputs: { incident: { classPropertyName: "incident", publicName: "incident", isSignal: true, isRequired: true, transformFunction: null }, updates: { classPropertyName: "updates", publicName: "updates", isSignal: true, isRequired: false, transformFunction: null }, responders: { classPropertyName: "responders", publicName: "responders", isSignal: true, isRequired: false, transformFunction: null }, now: { classPropertyName: "now", publicName: "now", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, postable: { classPropertyName: "postable", publicName: "postable", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { action: "action", assign: "assign", post: "post" }, host: { classAttribute: "hm-incident-detail" }, ngImport: i0, template: `
|
|
474
|
+
<header class="hm-incident-detail__header">
|
|
475
|
+
<div class="hm-incident-card__top">
|
|
476
|
+
<hm-incident-severity [severity]="incident().severity" />
|
|
477
|
+
<hm-incident-status [status]="incident().status" />
|
|
478
|
+
<span class="hm-incident-card__id">{{ incident().id }}</span>
|
|
479
|
+
</div>
|
|
480
|
+
<p class="hm-incident-detail__title" [id]="ids.title" role="heading" [attr.aria-level]="headingLevel()">
|
|
481
|
+
{{ incident().title }}
|
|
482
|
+
</p>
|
|
483
|
+
<dl class="hm-incident-card__meta">
|
|
484
|
+
@if (incident().service) {
|
|
485
|
+
<div class="hm-incident-card__fact">
|
|
486
|
+
<dt>{{ text().service }}</dt>
|
|
487
|
+
<dd>{{ incident().service }}</dd>
|
|
488
|
+
</div>
|
|
489
|
+
}
|
|
490
|
+
<div class="hm-incident-card__fact">
|
|
491
|
+
<dt>{{ text().assignee }}</dt>
|
|
492
|
+
<dd class="hm-incident-card__person">
|
|
493
|
+
@if (incident().assignee; as person) {
|
|
494
|
+
<hm-account-avatar size="small" [name]="person.name" [imageUrl]="person.imageUrl" />
|
|
495
|
+
<span>{{ person.name }}</span>
|
|
496
|
+
} @else {
|
|
497
|
+
<hm-icon class="hm-incident-card__unassigned-icon" shape="user" />
|
|
498
|
+
<span class="hm-incident-card__unassigned">{{ text().unassigned }}</span>
|
|
499
|
+
}
|
|
500
|
+
</dd>
|
|
501
|
+
</div>
|
|
502
|
+
<div class="hm-incident-card__fact">
|
|
503
|
+
<dt>{{ text().started }}</dt>
|
|
504
|
+
<dd><time [attr.datetime]="iso(incident().startedAt)">{{ time(incident().startedAt) }}</time></dd>
|
|
505
|
+
</div>
|
|
506
|
+
<div class="hm-incident-card__fact">
|
|
507
|
+
<dt>{{ text().duration }}</dt>
|
|
508
|
+
<dd>{{ duration() }}</dd>
|
|
509
|
+
</div>
|
|
510
|
+
</dl>
|
|
511
|
+
</header>
|
|
512
|
+
|
|
513
|
+
<div class="hm-incident-detail__controls">
|
|
514
|
+
@if (responders().length) {
|
|
515
|
+
<form class="hm-incident-detail__assign" (submit)="$event.preventDefault(); submitAssign()">
|
|
516
|
+
<hm-select [label]="text().assignLabel" [value]="assignee()" (valueChange)="assignee.set($event)">
|
|
517
|
+
<option value="">{{ text().assignPlaceholder }}</option>
|
|
518
|
+
@for (person of responders(); track person.id) {
|
|
519
|
+
<option [value]="person.id">{{ person.name }}</option>
|
|
520
|
+
}
|
|
521
|
+
</hm-select>
|
|
522
|
+
<hm-button type="submit" emphasis="medium" icon="assign-user" [disabled]="!canAssign()">{{ text().assignButton }}</hm-button>
|
|
523
|
+
</form>
|
|
524
|
+
}
|
|
525
|
+
@if (available().length) {
|
|
526
|
+
<div class="hm-incident-card__actions" role="group" [attr.aria-label]="actionsLabel()">
|
|
527
|
+
@for (item of available(); track item; let first = $first) {
|
|
528
|
+
<hm-button
|
|
529
|
+
size="small"
|
|
530
|
+
[emphasis]="first ? 'high' : 'medium'"
|
|
531
|
+
[intent]="item === 'escalate' ? 'danger' : 'primary'"
|
|
532
|
+
[icon]="actionIcon(item)"
|
|
533
|
+
(clicked)="action.emit(item)"
|
|
534
|
+
>{{ actionText(item) }}</hm-button>
|
|
535
|
+
}
|
|
536
|
+
</div>
|
|
537
|
+
}
|
|
538
|
+
</div>
|
|
539
|
+
|
|
540
|
+
@if (incident().summary) {
|
|
541
|
+
<div class="hm-incident-detail__section">
|
|
542
|
+
<p class="hm-incident-detail__subtitle" [id]="ids.summary" role="heading" [attr.aria-level]="subLevel()">{{ text().summary }}</p>
|
|
543
|
+
<p class="hm-incident-detail__prose">{{ incident().summary }}</p>
|
|
544
|
+
</div>
|
|
545
|
+
}
|
|
546
|
+
@if (incident().impact) {
|
|
547
|
+
<div class="hm-incident-detail__section">
|
|
548
|
+
<p class="hm-incident-detail__subtitle" [id]="ids.impact" role="heading" [attr.aria-level]="subLevel()">{{ text().impact }}</p>
|
|
549
|
+
<p class="hm-incident-detail__prose">{{ incident().impact }}</p>
|
|
550
|
+
</div>
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
<div class="hm-incident-detail__section">
|
|
554
|
+
<p class="hm-incident-detail__subtitle" [id]="ids.updates" role="heading" [attr.aria-level]="subLevel()">{{ text().updates }}</p>
|
|
555
|
+
@if (postable()) {
|
|
556
|
+
<form class="hm-incident-detail__post" (submit)="$event.preventDefault(); submitPost()">
|
|
557
|
+
<hm-textarea [label]="text().postLabel" [rows]="2" autoGrow [value]="draft()" (valueChange)="draft.set($event)" />
|
|
558
|
+
<div class="hm-incident-detail__post-actions">
|
|
559
|
+
<hm-button type="submit" icon="arrow-send" [disabled]="!draft().trim()">{{ text().postButton }}</hm-button>
|
|
560
|
+
</div>
|
|
561
|
+
</form>
|
|
562
|
+
}
|
|
563
|
+
@if (ordered().length) {
|
|
564
|
+
<ol class="hm-incident-detail__updates">
|
|
565
|
+
@for (update of ordered(); track update.id) {
|
|
566
|
+
<li class="hm-incident-detail__update">
|
|
567
|
+
<span class="hm-incident-detail__marker" aria-hidden="true"></span>
|
|
568
|
+
<div class="hm-incident-detail__update-body">
|
|
569
|
+
<div class="hm-incident-detail__update-head">
|
|
570
|
+
<time [attr.datetime]="iso(update.at)">{{ time(update.at) }}</time>
|
|
571
|
+
@if (update.author) {
|
|
572
|
+
<span class="hm-incident-detail__author">{{ byText(update.author) }}</span>
|
|
573
|
+
}
|
|
574
|
+
</div>
|
|
575
|
+
@if (update.status) {
|
|
576
|
+
<p class="hm-incident-detail__change">
|
|
577
|
+
<span class="hm-visually-hidden">{{ changedText(update) }}</span>
|
|
578
|
+
<hm-incident-status aria-hidden="true" [status]="update.status" />
|
|
579
|
+
</p>
|
|
580
|
+
}
|
|
581
|
+
<p class="hm-incident-detail__prose">{{ update.text }}</p>
|
|
582
|
+
</div>
|
|
583
|
+
</li>
|
|
584
|
+
}
|
|
585
|
+
</ol>
|
|
586
|
+
} @else {
|
|
587
|
+
<p class="hm-incident-detail__none">{{ text().noUpdates }}</p>
|
|
588
|
+
}
|
|
589
|
+
</div>
|
|
590
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AccountAvatarComponent, selector: "hm-account-avatar", inputs: ["name", "imageUrl", "size", "loading", "presence", "texts"] }, { kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: IncidentSeverityComponent, selector: "hm-incident-severity", inputs: ["severity"] }, { kind: "component", type: IncidentStatusComponent, selector: "hm-incident-status", inputs: ["status"] }, { kind: "component", type: SelectComponent, selector: "hm-select", inputs: ["value", "label", "labelHidden", "hint"], outputs: ["valueChange"] }, { kind: "component", type: TextareaComponent, selector: "hm-textarea", inputs: ["value", "label", "hint", "placeholder", "maxLength", "rows", "autoGrow", "labelHidden", "loading", "maxRows", "submitKey", "mentionCandidates", "mentionTrigger", "texts"], outputs: ["valueChange", "submitted", "mentioned"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
591
|
+
}
|
|
592
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: IncidentDetailComponent, decorators: [{
|
|
593
|
+
type: Component,
|
|
594
|
+
args: [{
|
|
595
|
+
selector: 'hm-incident-detail',
|
|
596
|
+
imports: [
|
|
597
|
+
AccountAvatarComponent,
|
|
598
|
+
ButtonComponent,
|
|
599
|
+
IconComponent,
|
|
600
|
+
IncidentSeverityComponent,
|
|
601
|
+
IncidentStatusComponent,
|
|
602
|
+
SelectComponent,
|
|
603
|
+
TextareaComponent,
|
|
604
|
+
],
|
|
605
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
606
|
+
host: { class: 'hm-incident-detail' },
|
|
607
|
+
template: `
|
|
608
|
+
<header class="hm-incident-detail__header">
|
|
609
|
+
<div class="hm-incident-card__top">
|
|
610
|
+
<hm-incident-severity [severity]="incident().severity" />
|
|
611
|
+
<hm-incident-status [status]="incident().status" />
|
|
612
|
+
<span class="hm-incident-card__id">{{ incident().id }}</span>
|
|
613
|
+
</div>
|
|
614
|
+
<p class="hm-incident-detail__title" [id]="ids.title" role="heading" [attr.aria-level]="headingLevel()">
|
|
615
|
+
{{ incident().title }}
|
|
616
|
+
</p>
|
|
617
|
+
<dl class="hm-incident-card__meta">
|
|
618
|
+
@if (incident().service) {
|
|
619
|
+
<div class="hm-incident-card__fact">
|
|
620
|
+
<dt>{{ text().service }}</dt>
|
|
621
|
+
<dd>{{ incident().service }}</dd>
|
|
622
|
+
</div>
|
|
623
|
+
}
|
|
624
|
+
<div class="hm-incident-card__fact">
|
|
625
|
+
<dt>{{ text().assignee }}</dt>
|
|
626
|
+
<dd class="hm-incident-card__person">
|
|
627
|
+
@if (incident().assignee; as person) {
|
|
628
|
+
<hm-account-avatar size="small" [name]="person.name" [imageUrl]="person.imageUrl" />
|
|
629
|
+
<span>{{ person.name }}</span>
|
|
630
|
+
} @else {
|
|
631
|
+
<hm-icon class="hm-incident-card__unassigned-icon" shape="user" />
|
|
632
|
+
<span class="hm-incident-card__unassigned">{{ text().unassigned }}</span>
|
|
633
|
+
}
|
|
634
|
+
</dd>
|
|
635
|
+
</div>
|
|
636
|
+
<div class="hm-incident-card__fact">
|
|
637
|
+
<dt>{{ text().started }}</dt>
|
|
638
|
+
<dd><time [attr.datetime]="iso(incident().startedAt)">{{ time(incident().startedAt) }}</time></dd>
|
|
639
|
+
</div>
|
|
640
|
+
<div class="hm-incident-card__fact">
|
|
641
|
+
<dt>{{ text().duration }}</dt>
|
|
642
|
+
<dd>{{ duration() }}</dd>
|
|
643
|
+
</div>
|
|
644
|
+
</dl>
|
|
645
|
+
</header>
|
|
646
|
+
|
|
647
|
+
<div class="hm-incident-detail__controls">
|
|
648
|
+
@if (responders().length) {
|
|
649
|
+
<form class="hm-incident-detail__assign" (submit)="$event.preventDefault(); submitAssign()">
|
|
650
|
+
<hm-select [label]="text().assignLabel" [value]="assignee()" (valueChange)="assignee.set($event)">
|
|
651
|
+
<option value="">{{ text().assignPlaceholder }}</option>
|
|
652
|
+
@for (person of responders(); track person.id) {
|
|
653
|
+
<option [value]="person.id">{{ person.name }}</option>
|
|
654
|
+
}
|
|
655
|
+
</hm-select>
|
|
656
|
+
<hm-button type="submit" emphasis="medium" icon="assign-user" [disabled]="!canAssign()">{{ text().assignButton }}</hm-button>
|
|
657
|
+
</form>
|
|
658
|
+
}
|
|
659
|
+
@if (available().length) {
|
|
660
|
+
<div class="hm-incident-card__actions" role="group" [attr.aria-label]="actionsLabel()">
|
|
661
|
+
@for (item of available(); track item; let first = $first) {
|
|
662
|
+
<hm-button
|
|
663
|
+
size="small"
|
|
664
|
+
[emphasis]="first ? 'high' : 'medium'"
|
|
665
|
+
[intent]="item === 'escalate' ? 'danger' : 'primary'"
|
|
666
|
+
[icon]="actionIcon(item)"
|
|
667
|
+
(clicked)="action.emit(item)"
|
|
668
|
+
>{{ actionText(item) }}</hm-button>
|
|
669
|
+
}
|
|
670
|
+
</div>
|
|
671
|
+
}
|
|
672
|
+
</div>
|
|
673
|
+
|
|
674
|
+
@if (incident().summary) {
|
|
675
|
+
<div class="hm-incident-detail__section">
|
|
676
|
+
<p class="hm-incident-detail__subtitle" [id]="ids.summary" role="heading" [attr.aria-level]="subLevel()">{{ text().summary }}</p>
|
|
677
|
+
<p class="hm-incident-detail__prose">{{ incident().summary }}</p>
|
|
678
|
+
</div>
|
|
679
|
+
}
|
|
680
|
+
@if (incident().impact) {
|
|
681
|
+
<div class="hm-incident-detail__section">
|
|
682
|
+
<p class="hm-incident-detail__subtitle" [id]="ids.impact" role="heading" [attr.aria-level]="subLevel()">{{ text().impact }}</p>
|
|
683
|
+
<p class="hm-incident-detail__prose">{{ incident().impact }}</p>
|
|
684
|
+
</div>
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
<div class="hm-incident-detail__section">
|
|
688
|
+
<p class="hm-incident-detail__subtitle" [id]="ids.updates" role="heading" [attr.aria-level]="subLevel()">{{ text().updates }}</p>
|
|
689
|
+
@if (postable()) {
|
|
690
|
+
<form class="hm-incident-detail__post" (submit)="$event.preventDefault(); submitPost()">
|
|
691
|
+
<hm-textarea [label]="text().postLabel" [rows]="2" autoGrow [value]="draft()" (valueChange)="draft.set($event)" />
|
|
692
|
+
<div class="hm-incident-detail__post-actions">
|
|
693
|
+
<hm-button type="submit" icon="arrow-send" [disabled]="!draft().trim()">{{ text().postButton }}</hm-button>
|
|
694
|
+
</div>
|
|
695
|
+
</form>
|
|
696
|
+
}
|
|
697
|
+
@if (ordered().length) {
|
|
698
|
+
<ol class="hm-incident-detail__updates">
|
|
699
|
+
@for (update of ordered(); track update.id) {
|
|
700
|
+
<li class="hm-incident-detail__update">
|
|
701
|
+
<span class="hm-incident-detail__marker" aria-hidden="true"></span>
|
|
702
|
+
<div class="hm-incident-detail__update-body">
|
|
703
|
+
<div class="hm-incident-detail__update-head">
|
|
704
|
+
<time [attr.datetime]="iso(update.at)">{{ time(update.at) }}</time>
|
|
705
|
+
@if (update.author) {
|
|
706
|
+
<span class="hm-incident-detail__author">{{ byText(update.author) }}</span>
|
|
707
|
+
}
|
|
708
|
+
</div>
|
|
709
|
+
@if (update.status) {
|
|
710
|
+
<p class="hm-incident-detail__change">
|
|
711
|
+
<span class="hm-visually-hidden">{{ changedText(update) }}</span>
|
|
712
|
+
<hm-incident-status aria-hidden="true" [status]="update.status" />
|
|
713
|
+
</p>
|
|
714
|
+
}
|
|
715
|
+
<p class="hm-incident-detail__prose">{{ update.text }}</p>
|
|
716
|
+
</div>
|
|
717
|
+
</li>
|
|
718
|
+
}
|
|
719
|
+
</ol>
|
|
720
|
+
} @else {
|
|
721
|
+
<p class="hm-incident-detail__none">{{ text().noUpdates }}</p>
|
|
722
|
+
}
|
|
723
|
+
</div>
|
|
724
|
+
`,
|
|
725
|
+
}]
|
|
726
|
+
}], propDecorators: { incident: [{ type: i0.Input, args: [{ isSignal: true, alias: "incident", required: true }] }], updates: [{ type: i0.Input, args: [{ isSignal: true, alias: "updates", required: false }] }], responders: [{ type: i0.Input, args: [{ isSignal: true, alias: "responders", required: false }] }], now: [{ type: i0.Input, args: [{ isSignal: true, alias: "now", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], postable: [{ type: i0.Input, args: [{ isSignal: true, alias: "postable", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }], action: [{ type: i0.Output, args: ["action"] }], assign: [{ type: i0.Output, args: ["assign"] }], post: [{ type: i0.Output, args: ["post"] }] } });
|
|
727
|
+
|
|
728
|
+
// Ponto de import `@trismegisto/angular/incident`: cartão e detalhe de incidente, selos de severidade e status.
|
|
729
|
+
|
|
730
|
+
/**
|
|
731
|
+
* Generated bundle index. Do not edit.
|
|
732
|
+
*/
|
|
733
|
+
|
|
734
|
+
export { INCIDENT_ACTION_ICONS, INCIDENT_MESSAGES_EN, INCIDENT_MESSAGES_ES, INCIDENT_MESSAGES_PT_BR, INCIDENT_SEVERITY_ICONS, INCIDENT_STATUS_ICONS, IncidentCardComponent, IncidentDetailComponent, IncidentSeverityComponent, IncidentStatusComponent, formatIncidentTime };
|
|
735
|
+
//# sourceMappingURL=trismegisto-angular-incident.mjs.map
|