@trismegisto/angular 3.3.14 → 3.4.0
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/README.md +22 -4
- package/fesm2022/trismegisto-angular-access-control.mjs +21 -264
- package/fesm2022/trismegisto-angular-access-control.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-accordion.mjs +3 -39
- package/fesm2022/trismegisto-angular-accordion.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-account-avatar.mjs +2 -27
- package/fesm2022/trismegisto-angular-account-avatar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-account-closure.mjs +8 -58
- package/fesm2022/trismegisto-angular-account-closure.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-account-forms.mjs +32 -235
- package/fesm2022/trismegisto-angular-account-forms.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-account-switcher.mjs +8 -44
- package/fesm2022/trismegisto-angular-account-switcher.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-address.mjs +28 -149
- package/fesm2022/trismegisto-angular-address.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-agent.mjs +26 -206
- package/fesm2022/trismegisto-angular-agent.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-alert-history.mjs +14 -77
- package/fesm2022/trismegisto-angular-alert-history.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-alert-rule-editor.mjs +17 -178
- package/fesm2022/trismegisto-angular-alert-rule-editor.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-alert.mjs +17 -53
- package/fesm2022/trismegisto-angular-alert.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-anchor-nav.mjs +4 -10
- package/fesm2022/trismegisto-angular-anchor-nav.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-api-exchange.mjs +11 -110
- package/fesm2022/trismegisto-angular-api-exchange.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-appointment-details.mjs +20 -181
- package/fesm2022/trismegisto-angular-appointment-details.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-approval.mjs +10 -36
- package/fesm2022/trismegisto-angular-approval.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-assignee.mjs +8 -24
- package/fesm2022/trismegisto-angular-assignee.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-attachment.mjs +22 -72
- package/fesm2022/trismegisto-angular-attachment.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-availability-editor.mjs +12 -97
- package/fesm2022/trismegisto-angular-availability-editor.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-avatar-group.mjs +3 -9
- package/fesm2022/trismegisto-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-backlog.mjs +9 -31
- package/fesm2022/trismegisto-angular-backlog.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-billing.mjs +41 -276
- package/fesm2022/trismegisto-angular-billing.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-bottom-navigation.mjs +4 -19
- package/fesm2022/trismegisto-angular-bottom-navigation.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-bottom-sheet.mjs +25 -56
- package/fesm2022/trismegisto-angular-bottom-sheet.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-breadcrumb.mjs +9 -15
- package/fesm2022/trismegisto-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-bubble.mjs +5 -16
- package/fesm2022/trismegisto-angular-bubble.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-bulk-input.mjs +23 -97
- package/fesm2022/trismegisto-angular-bulk-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-button-group.mjs +3 -17
- package/fesm2022/trismegisto-angular-button-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-card-container.mjs +12 -27
- package/fesm2022/trismegisto-angular-card-container.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-carousel.mjs +16 -16
- package/fesm2022/trismegisto-angular-carousel.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-cart.mjs +26 -124
- package/fesm2022/trismegisto-angular-cart.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-cascader.mjs +40 -140
- package/fesm2022/trismegisto-angular-cascader.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-certificate-viewer.mjs +15 -92
- package/fesm2022/trismegisto-angular-certificate-viewer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-change-history.mjs +3 -17
- package/fesm2022/trismegisto-angular-change-history.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-charts.mjs +796 -0
- package/fesm2022/trismegisto-angular-charts.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-checkbox-group.mjs +3 -11
- package/fesm2022/trismegisto-angular-checkbox-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-chip.mjs +2 -7
- package/fesm2022/trismegisto-angular-chip.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-code-diff.mjs +47 -127
- package/fesm2022/trismegisto-angular-code-diff.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-code-input.mjs +5 -2
- package/fesm2022/trismegisto-angular-code-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-code-viewer.mjs +53 -356
- package/fesm2022/trismegisto-angular-code-viewer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-color-picker.mjs +18 -48
- package/fesm2022/trismegisto-angular-color-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-combobox-multi.mjs +5 -15
- package/fesm2022/trismegisto-angular-combobox-multi.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-combobox.mjs +50 -169
- package/fesm2022/trismegisto-angular-combobox.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-command-palette.mjs +56 -130
- package/fesm2022/trismegisto-angular-command-palette.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-commerce-format.mjs +4 -64
- package/fesm2022/trismegisto-angular-commerce-format.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-connection-wizard.mjs +10 -49
- package/fesm2022/trismegisto-angular-connection-wizard.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-consent.mjs +9 -82
- package/fesm2022/trismegisto-angular-consent.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-copy-button.mjs +5 -57
- package/fesm2022/trismegisto-angular-copy-button.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-credentials-form.mjs +16 -141
- package/fesm2022/trismegisto-angular-credentials-form.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-data-grid.mjs +223 -1107
- package/fesm2022/trismegisto-angular-data-grid.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-data-source-picker.mjs +11 -35
- package/fesm2022/trismegisto-angular-data-source-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-date-picker.mjs +75 -155
- package/fesm2022/trismegisto-angular-date-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-datetime-picker.mjs +17 -49
- package/fesm2022/trismegisto-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-deadline.mjs +38 -91
- package/fesm2022/trismegisto-angular-deadline.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-deploy-pipeline.mjs +19 -55
- package/fesm2022/trismegisto-angular-deploy-pipeline.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-description-list.mjs +11 -18
- package/fesm2022/trismegisto-angular-description-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-dialog.mjs +5 -16
- package/fesm2022/trismegisto-angular-dialog.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-direction.mjs +3 -17
- package/fesm2022/trismegisto-angular-direction.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-drag-drop.mjs +85 -624
- package/fesm2022/trismegisto-angular-drag-drop.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-drawer.mjs +18 -50
- package/fesm2022/trismegisto-angular-drawer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-dropdown.mjs +4 -15
- package/fesm2022/trismegisto-angular-dropdown.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-dual-list.mjs +5 -7
- package/fesm2022/trismegisto-angular-dual-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-endpoint-card.mjs +7 -87
- package/fesm2022/trismegisto-angular-endpoint-card.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-entity-picker.mjs +12 -90
- package/fesm2022/trismegisto-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-environment-picker.mjs +13 -50
- package/fesm2022/trismegisto-angular-environment-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-event-calendar.mjs +42 -164
- package/fesm2022/trismegisto-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-execution-status.mjs +16 -24
- package/fesm2022/trismegisto-angular-execution-status.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-fab.mjs +34 -58
- package/fesm2022/trismegisto-angular-fab.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-feature-flags.mjs +11 -73
- package/fesm2022/trismegisto-angular-feature-flags.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-field-mapping.mjs +19 -107
- package/fesm2022/trismegisto-angular-field-mapping.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-file-list.mjs +10 -137
- package/fesm2022/trismegisto-angular-file-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-file-permissions.mjs +16 -146
- package/fesm2022/trismegisto-angular-file-permissions.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-file-upload.mjs +26 -86
- package/fesm2022/trismegisto-angular-file-upload.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-file-versions.mjs +11 -64
- package/fesm2022/trismegisto-angular-file-versions.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-filter-bar.mjs +40 -76
- package/fesm2022/trismegisto-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-finance.mjs +35 -280
- package/fesm2022/trismegisto-angular-finance.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-floating-window.mjs +28 -127
- package/fesm2022/trismegisto-angular-floating-window.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-form-error-summary.mjs +4 -22
- package/fesm2022/trismegisto-angular-form-error-summary.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-forms.mjs +14 -25
- package/fesm2022/trismegisto-angular-forms.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-gantt.mjs +25 -70
- package/fesm2022/trismegisto-angular-gantt.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-global-search.mjs +23 -85
- package/fesm2022/trismegisto-angular-global-search.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-header.mjs +9 -24
- package/fesm2022/trismegisto-angular-header.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-health-status.mjs +10 -85
- package/fesm2022/trismegisto-angular-health-status.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-i18n.mjs +27 -132
- package/fesm2022/trismegisto-angular-i18n.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-icon.mjs +6 -1
- package/fesm2022/trismegisto-angular-icon.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-identity-document.mjs +19 -94
- package/fesm2022/trismegisto-angular-identity-document.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-attention.mjs +2 -2
- package/fesm2022/trismegisto-angular-illustration-attention.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-error.mjs +2 -2
- package/fesm2022/trismegisto-angular-illustration-error.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-journey-end.mjs +2 -2
- package/fesm2022/trismegisto-angular-illustration-journey-end.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-locked.mjs +2 -2
- package/fesm2022/trismegisto-angular-illustration-locked.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-no-permission.mjs +2 -2
- package/fesm2022/trismegisto-angular-illustration-no-permission.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-no-results.mjs +2 -2
- package/fesm2022/trismegisto-angular-illustration-no-results.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-not-found.mjs +2 -2
- package/fesm2022/trismegisto-angular-illustration-not-found.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-session-expired.mjs +2 -2
- package/fesm2022/trismegisto-angular-illustration-session-expired.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-shared.mjs +3 -23
- package/fesm2022/trismegisto-angular-illustration-shared.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-success.mjs +2 -2
- package/fesm2022/trismegisto-angular-illustration-success.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-illustration-unlocked.mjs +2 -2
- package/fesm2022/trismegisto-angular-illustration-unlocked.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-image-crop.mjs +52 -358
- package/fesm2022/trismegisto-angular-image-crop.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-image-gallery.mjs +28 -94
- package/fesm2022/trismegisto-angular-image-gallery.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-incident.mjs +17 -113
- package/fesm2022/trismegisto-angular-incident.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-input.mjs +12 -73
- package/fesm2022/trismegisto-angular-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-integration-text.mjs +5 -61
- package/fesm2022/trismegisto-angular-integration-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-integration.mjs +17 -175
- package/fesm2022/trismegisto-angular-integration.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-invoice.mjs +12 -125
- package/fesm2022/trismegisto-angular-invoice.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-json-viewer.mjs +27 -168
- package/fesm2022/trismegisto-angular-json-viewer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-kanban.mjs +15 -26
- package/fesm2022/trismegisto-angular-kanban.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-level-badge.mjs +6 -11
- package/fesm2022/trismegisto-angular-level-badge.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-list-editor.mjs +5 -18
- package/fesm2022/trismegisto-angular-list-editor.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-location-select.mjs +26 -47
- package/fesm2022/trismegisto-angular-location-select.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-log-viewer.mjs +13 -53
- package/fesm2022/trismegisto-angular-log-viewer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-maintenance-window.mjs +10 -80
- package/fesm2022/trismegisto-angular-maintenance-window.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-map.mjs +2203 -0
- package/fesm2022/trismegisto-angular-map.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-member-list.mjs +28 -76
- package/fesm2022/trismegisto-angular-member-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-menu-button.mjs +6 -6
- package/fesm2022/trismegisto-angular-menu-button.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-menu.mjs +45 -117
- package/fesm2022/trismegisto-angular-menu.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-menubar.mjs +6 -10
- package/fesm2022/trismegisto-angular-menubar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-message-scroller.mjs +33 -167
- package/fesm2022/trismegisto-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-message.mjs +7 -58
- package/fesm2022/trismegisto-angular-message.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-metric-explorer.mjs +12 -110
- package/fesm2022/trismegisto-angular-metric-explorer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-modal.mjs +14 -39
- package/fesm2022/trismegisto-angular-modal.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-monitoring-text.mjs +5 -103
- package/fesm2022/trismegisto-angular-monitoring-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-month-picker.mjs +27 -72
- package/fesm2022/trismegisto-angular-month-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-motion.mjs +39 -163
- package/fesm2022/trismegisto-angular-motion.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-navigation-menu.mjs +33 -134
- package/fesm2022/trismegisto-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-number-field.mjs +14 -48
- package/fesm2022/trismegisto-angular-number-field.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-observability-text.mjs +3 -236
- package/fesm2022/trismegisto-angular-observability-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-order.mjs +18 -126
- package/fesm2022/trismegisto-angular-order.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-org-chart.mjs +26 -123
- package/fesm2022/trismegisto-angular-org-chart.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-page-header.mjs +2 -4
- package/fesm2022/trismegisto-angular-page-header.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-paginator.mjs +20 -25
- package/fesm2022/trismegisto-angular-paginator.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-password-strength.mjs +4 -76
- package/fesm2022/trismegisto-angular-password-strength.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-payment-fields.mjs +18 -254
- package/fesm2022/trismegisto-angular-payment-fields.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-payment-form.mjs +19 -130
- package/fesm2022/trismegisto-angular-payment-form.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-payment-method.mjs +10 -122
- package/fesm2022/trismegisto-angular-payment-method.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-pdf-viewer.mjs +7 -41
- package/fesm2022/trismegisto-angular-pdf-viewer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-permission-matrix.mjs +4 -34
- package/fesm2022/trismegisto-angular-permission-matrix.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-pipes.mjs +13 -101
- package/fesm2022/trismegisto-angular-pipes.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-popconfirm.mjs +11 -27
- package/fesm2022/trismegisto-angular-popconfirm.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-popover.mjs +61 -222
- package/fesm2022/trismegisto-angular-popover.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-price.mjs +16 -98
- package/fesm2022/trismegisto-angular-price.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-product.mjs +38 -132
- package/fesm2022/trismegisto-angular-product.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-progress.mjs +7 -25
- package/fesm2022/trismegisto-angular-progress.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-prompt-input.mjs +7 -52
- package/fesm2022/trismegisto-angular-prompt-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-prompt-suggestions.mjs +4 -12
- package/fesm2022/trismegisto-angular-prompt-suggestions.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-property-view.mjs +13 -14
- package/fesm2022/trismegisto-angular-property-view.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-questionnaire.mjs +28 -99
- package/fesm2022/trismegisto-angular-questionnaire.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-radio.mjs +4 -8
- package/fesm2022/trismegisto-angular-radio.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-rating.mjs +8 -28
- package/fesm2022/trismegisto-angular-rating.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-reason-dialog.mjs +4 -3
- package/fesm2022/trismegisto-angular-reason-dialog.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-recurrence-editor.mjs +21 -306
- package/fesm2022/trismegisto-angular-recurrence-editor.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-release-timeline.mjs +6 -46
- package/fesm2022/trismegisto-angular-release-timeline.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-reorder-list.mjs +7 -22
- package/fesm2022/trismegisto-angular-reorder-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-report-history.mjs +24 -177
- package/fesm2022/trismegisto-angular-report-history.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-report-schedule.mjs +19 -125
- package/fesm2022/trismegisto-angular-report-schedule.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-resource-calendar.mjs +14 -64
- package/fesm2022/trismegisto-angular-resource-calendar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-resource-usage.mjs +9 -89
- package/fesm2022/trismegisto-angular-resource-usage.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-return-request.mjs +21 -107
- package/fesm2022/trismegisto-angular-return-request.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-rich-text.mjs +100 -1078
- package/fesm2022/trismegisto-angular-rich-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-risk-register.mjs +10 -55
- package/fesm2022/trismegisto-angular-risk-register.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-save-status.mjs +4 -34
- package/fesm2022/trismegisto-angular-save-status.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-search-field.mjs +11 -24
- package/fesm2022/trismegisto-angular-search-field.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-segmented-control.mjs +4 -26
- package/fesm2022/trismegisto-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-service-map.mjs +24 -191
- package/fesm2022/trismegisto-angular-service-map.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-service-status.mjs +17 -57
- package/fesm2022/trismegisto-angular-service-status.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-session-recovery.mjs +3 -32
- package/fesm2022/trismegisto-angular-session-recovery.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-settings.mjs +26 -50
- package/fesm2022/trismegisto-angular-settings.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-shipping.mjs +11 -135
- package/fesm2022/trismegisto-angular-shipping.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-shortcut-list.mjs +30 -73
- package/fesm2022/trismegisto-angular-shortcut-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-sidebar.mjs +16 -39
- package/fesm2022/trismegisto-angular-sidebar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-skip-link.mjs +4 -10
- package/fesm2022/trismegisto-angular-skip-link.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-sla-summary.mjs +10 -122
- package/fesm2022/trismegisto-angular-sla-summary.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-slider.mjs +16 -49
- package/fesm2022/trismegisto-angular-slider.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-slot-picker.mjs +31 -122
- package/fesm2022/trismegisto-angular-slot-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-spine-audit.mjs +1123 -0
- package/fesm2022/trismegisto-angular-spine-audit.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-apps.technical-eMYcFdZd.mjs +95 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-apps.technical-eMYcFdZd.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-apps.usage-C0F_MlCo.mjs +92 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-apps.usage-C0F_MlCo.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-audit.technical-DDNiWP35.mjs +43 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-audit.technical-DDNiWP35.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-audit.usage-IdXMruv5.mjs +64 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-audit.usage-IdXMruv5.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-audit.component-CBXhh-iC.mjs +42 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-audit.component-CBXhh-iC.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client-picker.component-B3rVvnJs.mjs +70 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client-picker.component-B3rVvnJs.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client.component-cxncrQTB.mjs +780 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-client.component-cxncrQTB.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-delete-CXDC4Og6.mjs +48 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-delete-CXDC4Og6.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-groups.component-C7j0R1RD.mjs +647 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-groups.component-C7j0R1RD.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-login-attempts.component-CZXKTG-H.mjs +41 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-login-attempts.component-CZXKTG-H.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-news-page.component-Dl-kjuul.mjs +368 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-news-page.component-Dl-kjuul.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-ratings-page.component-CX6tKCB3.mjs +575 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-ratings-page.component-CX6tKCB3.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-suggestions-page.component-D8Hi7H-I.mjs +3470 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service-suggestions-page.component-D8Hi7H-I.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service.component-Bu_Jz4TS.mjs +895 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-auto-service.component-Bu_Jz4TS.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-home.component-DFa8tG6V.mjs +149 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-home.component-DFa8tG6V.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.technical-CQkFtjaw.mjs +37 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.technical-CQkFtjaw.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.usage-BMgLNu7W.mjs +60 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-login-attempts.usage-BMgLNu7W.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-optional-id.validator-COEdvZMD.mjs +12 -0
- package/fesm2022/trismegisto-angular-spine-auto-service-optional-id.validator-COEdvZMD.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-auto-service.mjs +237 -0
- package/fesm2022/trismegisto-angular-spine-auto-service.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-graphql.mjs +181 -0
- package/fesm2022/trismegisto-angular-spine-graphql.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-layout-ai-agent-chat.component-BgV6hNNQ.mjs +503 -0
- package/fesm2022/trismegisto-angular-spine-layout-ai-agent-chat.component-BgV6hNNQ.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-layout-ai-agent-page.component-Dio9azFT.mjs +119 -0
- package/fesm2022/trismegisto-angular-spine-layout-ai-agent-page.component-Dio9azFT.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-layout-suggestions-page.component-CYcqjY8s.mjs +577 -0
- package/fesm2022/trismegisto-angular-spine-layout-suggestions-page.component-CYcqjY8s.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-layout-trismegisto-angular-spine-layout-CB0MMMrV.mjs +8678 -0
- package/fesm2022/trismegisto-angular-spine-layout-trismegisto-angular-spine-layout-CB0MMMrV.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-layout.mjs +2 -0
- package/fesm2022/trismegisto-angular-spine-layout.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-modal.mjs +143 -0
- package/fesm2022/trismegisto-angular-spine-modal.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-notification.mjs +74 -0
- package/fesm2022/trismegisto-angular-spine-notification.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-routing.mjs +317 -0
- package/fesm2022/trismegisto-angular-spine-routing.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-shell.mjs +409 -0
- package/fesm2022/trismegisto-angular-spine-shell.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine-side-panel.mjs +143 -0
- package/fesm2022/trismegisto-angular-spine-side-panel.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-spine.mjs +875 -0
- package/fesm2022/trismegisto-angular-spine.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-split-button.mjs +10 -22
- package/fesm2022/trismegisto-angular-split-button.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-splitter.mjs +6 -15
- package/fesm2022/trismegisto-angular-splitter.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-state-page.mjs +11 -28
- package/fesm2022/trismegisto-angular-state-page.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-state-screen.mjs +3 -3
- package/fesm2022/trismegisto-angular-state-screen.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-status-badge.mjs +3 -21
- package/fesm2022/trismegisto-angular-status-badge.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-status-select.mjs +15 -31
- package/fesm2022/trismegisto-angular-status-select.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-stepper.mjs +5 -13
- package/fesm2022/trismegisto-angular-stepper.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-storage-usage.mjs +15 -74
- package/fesm2022/trismegisto-angular-storage-usage.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-swimlane-board.mjs +6 -33
- package/fesm2022/trismegisto-angular-swimlane-board.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-sync-status.mjs +24 -156
- package/fesm2022/trismegisto-angular-sync-status.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tab-bar.mjs +14 -53
- package/fesm2022/trismegisto-angular-tab-bar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tabs.mjs +20 -66
- package/fesm2022/trismegisto-angular-tabs.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tag-input.mjs +16 -64
- package/fesm2022/trismegisto-angular-tag-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-task-card.mjs +10 -9
- package/fesm2022/trismegisto-angular-task-card.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-task-detail.mjs +40 -68
- package/fesm2022/trismegisto-angular-task-detail.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-terminal.mjs +263 -0
- package/fesm2022/trismegisto-angular-terminal.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-textarea.mjs +20 -88
- package/fesm2022/trismegisto-angular-textarea.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-theme-builder.mjs +17 -43
- package/fesm2022/trismegisto-angular-theme-builder.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-time-picker.mjs +28 -60
- package/fesm2022/trismegisto-angular-time-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-time-range.mjs +12 -78
- package/fesm2022/trismegisto-angular-time-range.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-toast.mjs +19 -44
- package/fesm2022/trismegisto-angular-toast.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-toggle-group.mjs +10 -54
- package/fesm2022/trismegisto-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-toggletip.mjs +7 -24
- package/fesm2022/trismegisto-angular-toggletip.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-toolbar.mjs +11 -109
- package/fesm2022/trismegisto-angular-toolbar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tooltip.mjs +22 -158
- package/fesm2022/trismegisto-angular-tooltip.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tour.mjs +14 -59
- package/fesm2022/trismegisto-angular-tour.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-trace-waterfall.mjs +25 -155
- package/fesm2022/trismegisto-angular-trace-waterfall.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-trace.mjs +4 -31
- package/fesm2022/trismegisto-angular-trace.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-transaction.mjs +14 -170
- package/fesm2022/trismegisto-angular-transaction.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tree-select.mjs +11 -72
- package/fesm2022/trismegisto-angular-tree-select.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tree.mjs +135 -341
- package/fesm2022/trismegisto-angular-tree.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-unsaved-changes.mjs +16 -47
- package/fesm2022/trismegisto-angular-unsaved-changes.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-uptime-bar.mjs +14 -53
- package/fesm2022/trismegisto-angular-uptime-bar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-user-card.mjs +4 -34
- package/fesm2022/trismegisto-angular-user-card.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-vehicle-plate.mjs +20 -87
- package/fesm2022/trismegisto-angular-vehicle-plate.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-webhook.mjs +23 -196
- package/fesm2022/trismegisto-angular-webhook.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-wizard.mjs +24 -45
- package/fesm2022/trismegisto-angular-wizard.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workflow-diagram.mjs +12 -74
- package/fesm2022/trismegisto-angular-workflow-diagram.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workflow-i18n.mjs +11 -852
- package/fesm2022/trismegisto-angular-workflow-i18n.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workload.mjs +3 -3
- package/fesm2022/trismegisto-angular-workload.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workspace-persistence.mjs +3 -41
- package/fesm2022/trismegisto-angular-workspace-persistence.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workspace.mjs +12 -40
- package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-zoom.mjs +12 -24
- package/fesm2022/trismegisto-angular-zoom.mjs.map +1 -1
- package/package.json +102 -6
- package/spine/README.md +404 -0
- package/types/trismegisto-angular-access-control.d.ts +9 -84
- package/types/trismegisto-angular-access-control.d.ts.map +1 -1
- package/types/trismegisto-angular-accordion.d.ts +0 -5
- package/types/trismegisto-angular-accordion.d.ts.map +1 -1
- package/types/trismegisto-angular-account-avatar.d.ts +1 -7
- package/types/trismegisto-angular-account-avatar.d.ts.map +1 -1
- package/types/trismegisto-angular-account-closure.d.ts +4 -23
- package/types/trismegisto-angular-account-closure.d.ts.map +1 -1
- package/types/trismegisto-angular-account-forms.d.ts +6 -67
- package/types/trismegisto-angular-account-forms.d.ts.map +1 -1
- package/types/trismegisto-angular-account-switcher.d.ts +5 -20
- package/types/trismegisto-angular-account-switcher.d.ts.map +1 -1
- package/types/trismegisto-angular-address.d.ts +5 -49
- package/types/trismegisto-angular-address.d.ts.map +1 -1
- package/types/trismegisto-angular-agent.d.ts +45 -124
- package/types/trismegisto-angular-agent.d.ts.map +1 -1
- package/types/trismegisto-angular-alert-history.d.ts +12 -38
- package/types/trismegisto-angular-alert-history.d.ts.map +1 -1
- package/types/trismegisto-angular-alert-rule-editor.d.ts +8 -46
- package/types/trismegisto-angular-alert-rule-editor.d.ts.map +1 -1
- package/types/trismegisto-angular-alert.d.ts.map +1 -1
- package/types/trismegisto-angular-anchor-nav.d.ts +4 -16
- package/types/trismegisto-angular-anchor-nav.d.ts.map +1 -1
- package/types/trismegisto-angular-api-exchange.d.ts +3 -10
- package/types/trismegisto-angular-api-exchange.d.ts.map +1 -1
- package/types/trismegisto-angular-appointment-details.d.ts +5 -11
- package/types/trismegisto-angular-appointment-details.d.ts.map +1 -1
- package/types/trismegisto-angular-approval.d.ts +5 -19
- package/types/trismegisto-angular-approval.d.ts.map +1 -1
- package/types/trismegisto-angular-assignee.d.ts +2 -1
- package/types/trismegisto-angular-assignee.d.ts.map +1 -1
- package/types/trismegisto-angular-attachment.d.ts +2 -8
- package/types/trismegisto-angular-attachment.d.ts.map +1 -1
- package/types/trismegisto-angular-availability-editor.d.ts +6 -22
- package/types/trismegisto-angular-availability-editor.d.ts.map +1 -1
- package/types/trismegisto-angular-avatar-group.d.ts +2 -5
- package/types/trismegisto-angular-avatar-group.d.ts.map +1 -1
- package/types/trismegisto-angular-backlog.d.ts +4 -10
- package/types/trismegisto-angular-backlog.d.ts.map +1 -1
- package/types/trismegisto-angular-billing.d.ts +11 -83
- package/types/trismegisto-angular-billing.d.ts.map +1 -1
- package/types/trismegisto-angular-bottom-navigation.d.ts +3 -18
- package/types/trismegisto-angular-bottom-navigation.d.ts.map +1 -1
- package/types/trismegisto-angular-bottom-sheet.d.ts +3 -23
- package/types/trismegisto-angular-bottom-sheet.d.ts.map +1 -1
- package/types/trismegisto-angular-breadcrumb.d.ts +2 -9
- package/types/trismegisto-angular-breadcrumb.d.ts.map +1 -1
- package/types/trismegisto-angular-bubble.d.ts +2 -15
- package/types/trismegisto-angular-bubble.d.ts.map +1 -1
- package/types/trismegisto-angular-bulk-input.d.ts.map +1 -1
- package/types/trismegisto-angular-button-group.d.ts.map +1 -1
- package/types/trismegisto-angular-card-container.d.ts.map +1 -1
- package/types/trismegisto-angular-carousel.d.ts.map +1 -1
- package/types/trismegisto-angular-cart.d.ts +3 -41
- package/types/trismegisto-angular-cart.d.ts.map +1 -1
- package/types/trismegisto-angular-cascader.d.ts +3 -26
- package/types/trismegisto-angular-cascader.d.ts.map +1 -1
- package/types/trismegisto-angular-certificate-viewer.d.ts +6 -4
- package/types/trismegisto-angular-certificate-viewer.d.ts.map +1 -1
- package/types/trismegisto-angular-change-history.d.ts +2 -10
- package/types/trismegisto-angular-change-history.d.ts.map +1 -1
- package/types/trismegisto-angular-charts.d.ts +305 -0
- package/types/trismegisto-angular-charts.d.ts.map +1 -0
- package/types/trismegisto-angular-checkbox-group.d.ts.map +1 -1
- package/types/trismegisto-angular-chip.d.ts.map +1 -1
- package/types/trismegisto-angular-code-diff.d.ts.map +1 -1
- package/types/trismegisto-angular-code-input.d.ts.map +1 -1
- package/types/trismegisto-angular-code-viewer.d.ts +38 -93
- package/types/trismegisto-angular-code-viewer.d.ts.map +1 -1
- package/types/trismegisto-angular-color-picker.d.ts +3 -18
- package/types/trismegisto-angular-color-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-combobox-multi.d.ts.map +1 -1
- package/types/trismegisto-angular-combobox.d.ts +8 -25
- package/types/trismegisto-angular-combobox.d.ts.map +1 -1
- package/types/trismegisto-angular-command-palette.d.ts +8 -34
- package/types/trismegisto-angular-command-palette.d.ts.map +1 -1
- package/types/trismegisto-angular-commerce-format.d.ts +2 -24
- package/types/trismegisto-angular-commerce-format.d.ts.map +1 -1
- package/types/trismegisto-angular-connection-wizard.d.ts +5 -28
- package/types/trismegisto-angular-connection-wizard.d.ts.map +1 -1
- package/types/trismegisto-angular-consent.d.ts +4 -30
- package/types/trismegisto-angular-consent.d.ts.map +1 -1
- package/types/trismegisto-angular-copy-button.d.ts +2 -2
- package/types/trismegisto-angular-copy-button.d.ts.map +1 -1
- package/types/trismegisto-angular-credentials-form.d.ts +6 -54
- package/types/trismegisto-angular-credentials-form.d.ts.map +1 -1
- package/types/trismegisto-angular-data-grid.d.ts +58 -208
- package/types/trismegisto-angular-data-grid.d.ts.map +1 -1
- package/types/trismegisto-angular-data-source-picker.d.ts +6 -19
- package/types/trismegisto-angular-data-source-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-date-picker.d.ts +13 -27
- package/types/trismegisto-angular-date-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-datetime-picker.d.ts +3 -17
- package/types/trismegisto-angular-datetime-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-deadline.d.ts +3 -3
- package/types/trismegisto-angular-deadline.d.ts.map +1 -1
- package/types/trismegisto-angular-deploy-pipeline.d.ts +11 -23
- package/types/trismegisto-angular-deploy-pipeline.d.ts.map +1 -1
- package/types/trismegisto-angular-description-list.d.ts.map +1 -1
- package/types/trismegisto-angular-dialog.d.ts +4 -9
- package/types/trismegisto-angular-dialog.d.ts.map +1 -1
- package/types/trismegisto-angular-direction.d.ts +1 -19
- package/types/trismegisto-angular-direction.d.ts.map +1 -1
- package/types/trismegisto-angular-drag-drop.d.ts +22 -71
- package/types/trismegisto-angular-drag-drop.d.ts.map +1 -1
- package/types/trismegisto-angular-drawer.d.ts +1 -4
- package/types/trismegisto-angular-drawer.d.ts.map +1 -1
- package/types/trismegisto-angular-dropdown.d.ts +2 -3
- package/types/trismegisto-angular-dropdown.d.ts.map +1 -1
- package/types/trismegisto-angular-dual-list.d.ts.map +1 -1
- package/types/trismegisto-angular-endpoint-card.d.ts +6 -27
- package/types/trismegisto-angular-endpoint-card.d.ts.map +1 -1
- package/types/trismegisto-angular-entity-picker.d.ts +6 -30
- package/types/trismegisto-angular-entity-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-environment-picker.d.ts +7 -22
- package/types/trismegisto-angular-environment-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-event-calendar.d.ts +6 -17
- package/types/trismegisto-angular-event-calendar.d.ts.map +1 -1
- package/types/trismegisto-angular-execution-status.d.ts +3 -1
- package/types/trismegisto-angular-execution-status.d.ts.map +1 -1
- package/types/trismegisto-angular-fab.d.ts +2 -12
- package/types/trismegisto-angular-fab.d.ts.map +1 -1
- package/types/trismegisto-angular-feature-flags.d.ts +3 -10
- package/types/trismegisto-angular-feature-flags.d.ts.map +1 -1
- package/types/trismegisto-angular-field-mapping.d.ts +3 -38
- package/types/trismegisto-angular-field-mapping.d.ts.map +1 -1
- package/types/trismegisto-angular-file-list.d.ts +7 -21
- package/types/trismegisto-angular-file-list.d.ts.map +1 -1
- package/types/trismegisto-angular-file-permissions.d.ts +3 -10
- package/types/trismegisto-angular-file-permissions.d.ts.map +1 -1
- package/types/trismegisto-angular-file-upload.d.ts +3 -2
- package/types/trismegisto-angular-file-upload.d.ts.map +1 -1
- package/types/trismegisto-angular-file-versions.d.ts +2 -10
- package/types/trismegisto-angular-file-versions.d.ts.map +1 -1
- package/types/trismegisto-angular-filter-bar.d.ts +2 -3
- package/types/trismegisto-angular-filter-bar.d.ts.map +1 -1
- package/types/trismegisto-angular-finance.d.ts +12 -108
- package/types/trismegisto-angular-finance.d.ts.map +1 -1
- package/types/trismegisto-angular-floating-window.d.ts +6 -21
- package/types/trismegisto-angular-floating-window.d.ts.map +1 -1
- package/types/trismegisto-angular-form-error-summary.d.ts +3 -23
- package/types/trismegisto-angular-form-error-summary.d.ts.map +1 -1
- package/types/trismegisto-angular-forms.d.ts +5 -2
- package/types/trismegisto-angular-forms.d.ts.map +1 -1
- package/types/trismegisto-angular-gantt.d.ts +3 -12
- package/types/trismegisto-angular-gantt.d.ts.map +1 -1
- package/types/trismegisto-angular-global-search.d.ts +2 -27
- package/types/trismegisto-angular-global-search.d.ts.map +1 -1
- package/types/trismegisto-angular-header.d.ts.map +1 -1
- package/types/trismegisto-angular-health-status.d.ts +6 -23
- package/types/trismegisto-angular-health-status.d.ts.map +1 -1
- package/types/trismegisto-angular-i18n.d.ts +11 -54
- package/types/trismegisto-angular-i18n.d.ts.map +1 -1
- package/types/trismegisto-angular-icon.d.ts +6 -1
- package/types/trismegisto-angular-icon.d.ts.map +1 -1
- package/types/trismegisto-angular-identity-document.d.ts +3 -22
- package/types/trismegisto-angular-identity-document.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-attention.d.ts +2 -2
- package/types/trismegisto-angular-illustration-attention.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-error.d.ts +2 -2
- package/types/trismegisto-angular-illustration-error.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-journey-end.d.ts +2 -2
- package/types/trismegisto-angular-illustration-journey-end.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-locked.d.ts +2 -2
- package/types/trismegisto-angular-illustration-locked.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-no-permission.d.ts +2 -2
- package/types/trismegisto-angular-illustration-no-permission.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-no-results.d.ts +2 -2
- package/types/trismegisto-angular-illustration-no-results.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-not-found.d.ts +2 -2
- package/types/trismegisto-angular-illustration-not-found.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-session-expired.d.ts +2 -2
- package/types/trismegisto-angular-illustration-session-expired.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-shared.d.ts +1 -22
- package/types/trismegisto-angular-illustration-shared.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-success.d.ts +2 -2
- package/types/trismegisto-angular-illustration-success.d.ts.map +1 -1
- package/types/trismegisto-angular-illustration-unlocked.d.ts +2 -2
- package/types/trismegisto-angular-illustration-unlocked.d.ts.map +1 -1
- package/types/trismegisto-angular-image-crop.d.ts +10 -31
- package/types/trismegisto-angular-image-crop.d.ts.map +1 -1
- package/types/trismegisto-angular-image-gallery.d.ts +4 -26
- package/types/trismegisto-angular-image-gallery.d.ts.map +1 -1
- package/types/trismegisto-angular-incident.d.ts +8 -70
- package/types/trismegisto-angular-incident.d.ts.map +1 -1
- package/types/trismegisto-angular-input.d.ts +4 -6
- package/types/trismegisto-angular-input.d.ts.map +1 -1
- package/types/trismegisto-angular-integration-text.d.ts +4 -33
- package/types/trismegisto-angular-integration-text.d.ts.map +1 -1
- package/types/trismegisto-angular-integration.d.ts +9 -70
- package/types/trismegisto-angular-integration.d.ts.map +1 -1
- package/types/trismegisto-angular-invoice.d.ts +5 -70
- package/types/trismegisto-angular-invoice.d.ts.map +1 -1
- package/types/trismegisto-angular-json-viewer.d.ts +3 -32
- package/types/trismegisto-angular-json-viewer.d.ts.map +1 -1
- package/types/trismegisto-angular-kanban.d.ts.map +1 -1
- package/types/trismegisto-angular-level-badge.d.ts +6 -4
- package/types/trismegisto-angular-level-badge.d.ts.map +1 -1
- package/types/trismegisto-angular-list-editor.d.ts.map +1 -1
- package/types/trismegisto-angular-location-select.d.ts +7 -17
- package/types/trismegisto-angular-location-select.d.ts.map +1 -1
- package/types/trismegisto-angular-log-viewer.d.ts +3 -35
- package/types/trismegisto-angular-log-viewer.d.ts.map +1 -1
- package/types/trismegisto-angular-maintenance-window.d.ts +7 -26
- package/types/trismegisto-angular-maintenance-window.d.ts.map +1 -1
- package/types/trismegisto-angular-map.d.ts +701 -0
- package/types/trismegisto-angular-map.d.ts.map +1 -0
- package/types/trismegisto-angular-member-list.d.ts +8 -29
- package/types/trismegisto-angular-member-list.d.ts.map +1 -1
- package/types/trismegisto-angular-menu-button.d.ts.map +1 -1
- package/types/trismegisto-angular-menu.d.ts +2 -11
- package/types/trismegisto-angular-menu.d.ts.map +1 -1
- package/types/trismegisto-angular-menubar.d.ts.map +1 -1
- package/types/trismegisto-angular-message-scroller.d.ts +4 -22
- package/types/trismegisto-angular-message-scroller.d.ts.map +1 -1
- package/types/trismegisto-angular-message.d.ts +4 -18
- package/types/trismegisto-angular-message.d.ts.map +1 -1
- package/types/trismegisto-angular-metric-explorer.d.ts +12 -73
- package/types/trismegisto-angular-metric-explorer.d.ts.map +1 -1
- package/types/trismegisto-angular-modal.d.ts +1 -2
- package/types/trismegisto-angular-modal.d.ts.map +1 -1
- package/types/trismegisto-angular-monitoring-text.d.ts +4 -41
- package/types/trismegisto-angular-monitoring-text.d.ts.map +1 -1
- package/types/trismegisto-angular-month-picker.d.ts +7 -21
- package/types/trismegisto-angular-month-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-motion.d.ts +5 -11
- package/types/trismegisto-angular-motion.d.ts.map +1 -1
- package/types/trismegisto-angular-navigation-menu.d.ts +3 -13
- package/types/trismegisto-angular-navigation-menu.d.ts.map +1 -1
- package/types/trismegisto-angular-number-field.d.ts.map +1 -1
- package/types/trismegisto-angular-observability-text.d.ts +1 -84
- package/types/trismegisto-angular-observability-text.d.ts.map +1 -1
- package/types/trismegisto-angular-order.d.ts +78 -136
- package/types/trismegisto-angular-order.d.ts.map +1 -1
- package/types/trismegisto-angular-org-chart.d.ts +5 -37
- package/types/trismegisto-angular-org-chart.d.ts.map +1 -1
- package/types/trismegisto-angular-page-header.d.ts +3 -3
- package/types/trismegisto-angular-page-header.d.ts.map +1 -1
- package/types/trismegisto-angular-paginator.d.ts.map +1 -1
- package/types/trismegisto-angular-password-strength.d.ts +3 -30
- package/types/trismegisto-angular-password-strength.d.ts.map +1 -1
- package/types/trismegisto-angular-payment-fields.d.ts +4 -67
- package/types/trismegisto-angular-payment-fields.d.ts.map +1 -1
- package/types/trismegisto-angular-payment-form.d.ts +10 -49
- package/types/trismegisto-angular-payment-form.d.ts.map +1 -1
- package/types/trismegisto-angular-payment-method.d.ts +7 -44
- package/types/trismegisto-angular-payment-method.d.ts.map +1 -1
- package/types/trismegisto-angular-pdf-viewer.d.ts +5 -22
- package/types/trismegisto-angular-pdf-viewer.d.ts.map +1 -1
- package/types/trismegisto-angular-permission-matrix.d.ts +3 -16
- package/types/trismegisto-angular-permission-matrix.d.ts.map +1 -1
- package/types/trismegisto-angular-pipes.d.ts +4 -30
- package/types/trismegisto-angular-pipes.d.ts.map +1 -1
- package/types/trismegisto-angular-popconfirm.d.ts +6 -19
- package/types/trismegisto-angular-popconfirm.d.ts.map +1 -1
- package/types/trismegisto-angular-popover.d.ts +7 -15
- package/types/trismegisto-angular-popover.d.ts.map +1 -1
- package/types/trismegisto-angular-price.d.ts +6 -38
- package/types/trismegisto-angular-price.d.ts.map +1 -1
- package/types/trismegisto-angular-product.d.ts +3 -33
- package/types/trismegisto-angular-product.d.ts.map +1 -1
- package/types/trismegisto-angular-progress.d.ts +3 -5
- package/types/trismegisto-angular-progress.d.ts.map +1 -1
- package/types/trismegisto-angular-prompt-input.d.ts +5 -38
- package/types/trismegisto-angular-prompt-input.d.ts.map +1 -1
- package/types/trismegisto-angular-prompt-suggestions.d.ts +2 -11
- package/types/trismegisto-angular-prompt-suggestions.d.ts.map +1 -1
- package/types/trismegisto-angular-property-view.d.ts.map +1 -1
- package/types/trismegisto-angular-questionnaire.d.ts +5 -23
- package/types/trismegisto-angular-questionnaire.d.ts.map +1 -1
- package/types/trismegisto-angular-radio.d.ts.map +1 -1
- package/types/trismegisto-angular-rating.d.ts +4 -16
- package/types/trismegisto-angular-rating.d.ts.map +1 -1
- package/types/trismegisto-angular-reason-dialog.d.ts.map +1 -1
- package/types/trismegisto-angular-recurrence-editor.d.ts +5 -16
- package/types/trismegisto-angular-recurrence-editor.d.ts.map +1 -1
- package/types/trismegisto-angular-release-timeline.d.ts +7 -41
- package/types/trismegisto-angular-release-timeline.d.ts.map +1 -1
- package/types/trismegisto-angular-reorder-list.d.ts.map +1 -1
- package/types/trismegisto-angular-report-history.d.ts +8 -21
- package/types/trismegisto-angular-report-history.d.ts.map +1 -1
- package/types/trismegisto-angular-report-schedule.d.ts +4 -17
- package/types/trismegisto-angular-report-schedule.d.ts.map +1 -1
- package/types/trismegisto-angular-resource-calendar.d.ts +3 -10
- package/types/trismegisto-angular-resource-calendar.d.ts.map +1 -1
- package/types/trismegisto-angular-resource-usage.d.ts +6 -57
- package/types/trismegisto-angular-resource-usage.d.ts.map +1 -1
- package/types/trismegisto-angular-return-request.d.ts +11 -51
- package/types/trismegisto-angular-return-request.d.ts.map +1 -1
- package/types/trismegisto-angular-rich-text.d.ts +21 -57
- package/types/trismegisto-angular-rich-text.d.ts.map +1 -1
- package/types/trismegisto-angular-risk-register.d.ts +5 -26
- package/types/trismegisto-angular-risk-register.d.ts.map +1 -1
- package/types/trismegisto-angular-save-status.d.ts +4 -20
- package/types/trismegisto-angular-save-status.d.ts.map +1 -1
- package/types/trismegisto-angular-search-field.d.ts +2 -2
- package/types/trismegisto-angular-search-field.d.ts.map +1 -1
- package/types/trismegisto-angular-segmented-control.d.ts.map +1 -1
- package/types/trismegisto-angular-service-map.d.ts +15 -52
- package/types/trismegisto-angular-service-map.d.ts.map +1 -1
- package/types/trismegisto-angular-service-status.d.ts +6 -28
- package/types/trismegisto-angular-service-status.d.ts.map +1 -1
- package/types/trismegisto-angular-session-recovery.d.ts +2 -6
- package/types/trismegisto-angular-session-recovery.d.ts.map +1 -1
- package/types/trismegisto-angular-settings.d.ts +2 -5
- package/types/trismegisto-angular-settings.d.ts.map +1 -1
- package/types/trismegisto-angular-shipping.d.ts +13 -59
- package/types/trismegisto-angular-shipping.d.ts.map +1 -1
- package/types/trismegisto-angular-shortcut-list.d.ts +13 -51
- package/types/trismegisto-angular-shortcut-list.d.ts.map +1 -1
- package/types/trismegisto-angular-sidebar.d.ts +1 -1
- package/types/trismegisto-angular-sidebar.d.ts.map +1 -1
- package/types/trismegisto-angular-skip-link.d.ts +3 -16
- package/types/trismegisto-angular-skip-link.d.ts.map +1 -1
- package/types/trismegisto-angular-sla-summary.d.ts +8 -45
- package/types/trismegisto-angular-sla-summary.d.ts.map +1 -1
- package/types/trismegisto-angular-slider.d.ts +2 -2
- package/types/trismegisto-angular-slider.d.ts.map +1 -1
- package/types/trismegisto-angular-slot-picker.d.ts +4 -17
- package/types/trismegisto-angular-slot-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-spine-audit.d.ts +749 -0
- package/types/trismegisto-angular-spine-audit.d.ts.map +1 -0
- package/types/trismegisto-angular-spine-auto-service.d.ts +143 -0
- package/types/trismegisto-angular-spine-auto-service.d.ts.map +1 -0
- package/types/trismegisto-angular-spine-graphql.d.ts +47 -0
- package/types/trismegisto-angular-spine-graphql.d.ts.map +1 -0
- package/types/trismegisto-angular-spine-layout.d.ts +3572 -0
- package/types/trismegisto-angular-spine-layout.d.ts.map +1 -0
- package/types/trismegisto-angular-spine-modal.d.ts +70 -0
- package/types/trismegisto-angular-spine-modal.d.ts.map +1 -0
- package/types/trismegisto-angular-spine-notification.d.ts +38 -0
- package/types/trismegisto-angular-spine-notification.d.ts.map +1 -0
- package/types/trismegisto-angular-spine-routing.d.ts +175 -0
- package/types/trismegisto-angular-spine-routing.d.ts.map +1 -0
- package/types/trismegisto-angular-spine-shell.d.ts +138 -0
- package/types/trismegisto-angular-spine-shell.d.ts.map +1 -0
- package/types/trismegisto-angular-spine-side-panel.d.ts +68 -0
- package/types/trismegisto-angular-spine-side-panel.d.ts.map +1 -0
- package/types/trismegisto-angular-spine.d.ts +344 -0
- package/types/trismegisto-angular-spine.d.ts.map +1 -0
- package/types/trismegisto-angular-split-button.d.ts +3 -13
- package/types/trismegisto-angular-split-button.d.ts.map +1 -1
- package/types/trismegisto-angular-splitter.d.ts.map +1 -1
- package/types/trismegisto-angular-state-page.d.ts +4 -29
- package/types/trismegisto-angular-state-page.d.ts.map +1 -1
- package/types/trismegisto-angular-state-screen.d.ts.map +1 -1
- package/types/trismegisto-angular-status-badge.d.ts +2 -4
- package/types/trismegisto-angular-status-badge.d.ts.map +1 -1
- package/types/trismegisto-angular-status-select.d.ts +2 -9
- package/types/trismegisto-angular-status-select.d.ts.map +1 -1
- package/types/trismegisto-angular-stepper.d.ts.map +1 -1
- package/types/trismegisto-angular-storage-usage.d.ts +4 -13
- package/types/trismegisto-angular-storage-usage.d.ts.map +1 -1
- package/types/trismegisto-angular-swimlane-board.d.ts +4 -6
- package/types/trismegisto-angular-swimlane-board.d.ts.map +1 -1
- package/types/trismegisto-angular-sync-status.d.ts +10 -63
- package/types/trismegisto-angular-sync-status.d.ts.map +1 -1
- package/types/trismegisto-angular-tab-bar.d.ts +5 -16
- package/types/trismegisto-angular-tab-bar.d.ts.map +1 -1
- package/types/trismegisto-angular-tabs.d.ts +1 -5
- package/types/trismegisto-angular-tabs.d.ts.map +1 -1
- package/types/trismegisto-angular-tag-input.d.ts +3 -23
- package/types/trismegisto-angular-tag-input.d.ts.map +1 -1
- package/types/trismegisto-angular-task-card.d.ts +5 -9
- package/types/trismegisto-angular-task-card.d.ts.map +1 -1
- package/types/trismegisto-angular-task-detail.d.ts +7 -25
- package/types/trismegisto-angular-task-detail.d.ts.map +1 -1
- package/types/trismegisto-angular-terminal.d.ts +90 -0
- package/types/trismegisto-angular-terminal.d.ts.map +1 -0
- package/types/trismegisto-angular-textarea.d.ts +4 -10
- package/types/trismegisto-angular-textarea.d.ts.map +1 -1
- package/types/trismegisto-angular-theme-builder.d.ts +2 -3
- package/types/trismegisto-angular-theme-builder.d.ts.map +1 -1
- package/types/trismegisto-angular-time-picker.d.ts +0 -1
- package/types/trismegisto-angular-time-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-time-range.d.ts +3 -23
- package/types/trismegisto-angular-time-range.d.ts.map +1 -1
- package/types/trismegisto-angular-toast.d.ts +1 -1
- package/types/trismegisto-angular-toast.d.ts.map +1 -1
- package/types/trismegisto-angular-toggle-group.d.ts +3 -3
- package/types/trismegisto-angular-toggle-group.d.ts.map +1 -1
- package/types/trismegisto-angular-toggletip.d.ts +2 -2
- package/types/trismegisto-angular-toggletip.d.ts.map +1 -1
- package/types/trismegisto-angular-toolbar.d.ts +2 -4
- package/types/trismegisto-angular-toolbar.d.ts.map +1 -1
- package/types/trismegisto-angular-tooltip.d.ts +3 -26
- package/types/trismegisto-angular-tooltip.d.ts.map +1 -1
- package/types/trismegisto-angular-tour.d.ts +3 -21
- package/types/trismegisto-angular-tour.d.ts.map +1 -1
- package/types/trismegisto-angular-trace-waterfall.d.ts +10 -50
- package/types/trismegisto-angular-trace-waterfall.d.ts.map +1 -1
- package/types/trismegisto-angular-trace.d.ts +4 -15
- package/types/trismegisto-angular-trace.d.ts.map +1 -1
- package/types/trismegisto-angular-transaction.d.ts +9 -63
- package/types/trismegisto-angular-transaction.d.ts.map +1 -1
- package/types/trismegisto-angular-tree-select.d.ts +4 -26
- package/types/trismegisto-angular-tree-select.d.ts.map +1 -1
- package/types/trismegisto-angular-tree.d.ts +2 -3
- package/types/trismegisto-angular-tree.d.ts.map +1 -1
- package/types/trismegisto-angular-unsaved-changes.d.ts +6 -20
- package/types/trismegisto-angular-unsaved-changes.d.ts.map +1 -1
- package/types/trismegisto-angular-uptime-bar.d.ts +4 -16
- package/types/trismegisto-angular-uptime-bar.d.ts.map +1 -1
- package/types/trismegisto-angular-user-card.d.ts +4 -14
- package/types/trismegisto-angular-user-card.d.ts.map +1 -1
- package/types/trismegisto-angular-vehicle-plate.d.ts +3 -26
- package/types/trismegisto-angular-vehicle-plate.d.ts.map +1 -1
- package/types/trismegisto-angular-webhook.d.ts +17 -86
- package/types/trismegisto-angular-webhook.d.ts.map +1 -1
- package/types/trismegisto-angular-wizard.d.ts +6 -3
- package/types/trismegisto-angular-wizard.d.ts.map +1 -1
- package/types/trismegisto-angular-workflow-diagram.d.ts +3 -19
- package/types/trismegisto-angular-workflow-diagram.d.ts.map +1 -1
- package/types/trismegisto-angular-workflow-i18n.d.ts +7 -340
- package/types/trismegisto-angular-workflow-i18n.d.ts.map +1 -1
- package/types/trismegisto-angular-workload.d.ts.map +1 -1
- package/types/trismegisto-angular-workspace-persistence.d.ts +3 -13
- package/types/trismegisto-angular-workspace-persistence.d.ts.map +1 -1
- package/types/trismegisto-angular-workspace.d.ts.map +1 -1
- package/types/trismegisto-angular-zoom.d.ts.map +1 -1
|
@@ -0,0 +1,1123 @@
|
|
|
1
|
+
import { HttpParams, HttpClient, HttpHeaders } from '@angular/common/http';
|
|
2
|
+
import { auditParamEntries, auditApiBase, auditAppsUrl, auditPagerTotal, AUDIT_TOP_PAGE_SIZE, worstOutcome, buildSpanTimeline, AuditCursorPager, AUDIT_METHODS, AUDIT_OUTCOMES, AUDIT_TOP_KINDS, buildAuditQuery, auditErrorCode, parseAuditDate } from '@trismegisto/spine/audit';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { inject, Injectable, input, output, computed, ChangeDetectionStrategy, Component, signal, effect, untracked, DestroyRef } from '@angular/core';
|
|
5
|
+
import { firstValueFrom, merge, debounceTime, distinctUntilChanged } from 'rxjs';
|
|
6
|
+
import { AuthorizationService } from '@orfeu/angular/core';
|
|
7
|
+
import { loginAttemptParamEntries, loginAttemptsUrl, LOGIN_ATTEMPT_RESULTS, LOGIN_ATTEMPT_METHODS, LOGIN_ATTEMPT_REASONS, defaultAttemptsPeriod, attemptsPeriodToWindow } from '@trismegisto/spine/login-attempts';
|
|
8
|
+
import { AlertComponent } from '@trismegisto/angular/alert';
|
|
9
|
+
import { ButtonComponent } from '@trismegisto/angular/button';
|
|
10
|
+
import { DataGridCellDirective, DataGridComponent } from '@trismegisto/angular/data-grid';
|
|
11
|
+
import { DrawerComponent } from '@trismegisto/angular/drawer';
|
|
12
|
+
import { FilterBarComponent } from '@trismegisto/angular/filter-bar';
|
|
13
|
+
import { ProgressComponent } from '@trismegisto/angular/progress';
|
|
14
|
+
import { SegmentedControlComponent } from '@trismegisto/angular/segmented-control';
|
|
15
|
+
import { SkeletonComponent } from '@trismegisto/angular/skeleton';
|
|
16
|
+
import { StatCardComponent } from '@trismegisto/angular/stat-card';
|
|
17
|
+
import { StateScreenComponent } from '@trismegisto/angular/state-screen';
|
|
18
|
+
import { SwitchComponent } from '@trismegisto/angular/switch';
|
|
19
|
+
import { TagComponent } from '@trismegisto/angular/tag';
|
|
20
|
+
import { formatMessage, pluralMessage } from '@trismegisto/primitives/i18n';
|
|
21
|
+
import { Router } from '@angular/router';
|
|
22
|
+
import { SPINE_MESSAGES, SPINE_ADMIN_API } from '@trismegisto/angular/spine';
|
|
23
|
+
import { IconButtonComponent } from '@trismegisto/angular/icon-button';
|
|
24
|
+
import { SpinnerComponent } from '@trismegisto/angular/spinner';
|
|
25
|
+
import { createAuditFormat, auditUnitText, AUDIT_LEVELS, AUDIT_PERMISSIONS, AUDIT_ACTORS, auditDetailsJson } from '@trismegisto/spine/audit-format';
|
|
26
|
+
import * as i1 from '@angular/forms';
|
|
27
|
+
import { FormGroup, FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
28
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
29
|
+
import { AccountAvatarComponent } from '@trismegisto/angular/account-avatar';
|
|
30
|
+
import { CardComponent } from '@trismegisto/angular/card';
|
|
31
|
+
import { ComboboxComponent } from '@trismegisto/angular/combobox';
|
|
32
|
+
import { DateRangePickerComponent } from '@trismegisto/angular/date-picker';
|
|
33
|
+
import { InputComponent } from '@trismegisto/angular/input';
|
|
34
|
+
|
|
35
|
+
/** Monta a query string: vazio/`null` some, lista repete a chave (`app_id=a&app_id=b`). */
|
|
36
|
+
function auditParams(query, page = {}) {
|
|
37
|
+
return auditParamEntries(query, page).reduce((params, [key, value]) => params.append(key, value), new HttpParams());
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** Query string da listagem: só os campos com valor. */
|
|
41
|
+
function loginAttemptParams(query) {
|
|
42
|
+
return loginAttemptParamEntries(query).reduce((params, [key, value]) => params.append(key, value), new HttpParams());
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* HTTP da auditoria (só leitura), igual nos dois escopos: cada método recebe a `base` já resolvida
|
|
47
|
+
* por `auditApiBase` (`{adminApi}/admin/audit` ou `{adminApi}/auto-service/:clientId/audit`). O
|
|
48
|
+
* recorte do escopo `client` é do servidor — nada aqui decide o que a pessoa pode ver.
|
|
49
|
+
*/
|
|
50
|
+
class SpineAuditService {
|
|
51
|
+
http = inject(HttpClient);
|
|
52
|
+
auth = inject(AuthorizationService);
|
|
53
|
+
get headers() {
|
|
54
|
+
return new HttpHeaders({ 'x-access-token': this.auth.getToken() ?? '' });
|
|
55
|
+
}
|
|
56
|
+
events(base, query, page = {}) {
|
|
57
|
+
return firstValueFrom(this.http.get(`${base}/events`, { headers: this.headers, params: auditParams(query, page) }));
|
|
58
|
+
}
|
|
59
|
+
/** Uma linha por AÇÃO (raiz do trace + agregados dos spans), mesmos filtros/cursor de `events`. */
|
|
60
|
+
actions(base, query, page = {}) {
|
|
61
|
+
return firstValueFrom(this.http.get(`${base}/actions`, { headers: this.headers, params: auditParams(query, page) }));
|
|
62
|
+
}
|
|
63
|
+
event(base, eventId, occurredAt) {
|
|
64
|
+
const params = new HttpParams().set('occurred_at', occurredAt);
|
|
65
|
+
return firstValueFrom(this.http.get(`${base}/events/${encodeURIComponent(eventId)}`, { headers: this.headers, params }));
|
|
66
|
+
}
|
|
67
|
+
/** `occurredAt` (opcional) = o do evento de origem: o servidor limita a busca da cadeia a ±1 dia dele. */
|
|
68
|
+
trace(base, traceId, occurredAt) {
|
|
69
|
+
const params = occurredAt ? new HttpParams().set('occurred_at', occurredAt) : undefined;
|
|
70
|
+
return firstValueFrom(this.http.get(`${base}/traces/${encodeURIComponent(traceId)}`, { headers: this.headers, params }));
|
|
71
|
+
}
|
|
72
|
+
/** Resumo (KPIs + linha do tempo). `tops: false` pula os rankings — a tela os pagina por `tops()`. */
|
|
73
|
+
stats(base, query, opts = {}) {
|
|
74
|
+
let params = auditParams(query);
|
|
75
|
+
if (opts.tops === false)
|
|
76
|
+
params = params.set('tops', 'false');
|
|
77
|
+
return firstValueFrom(this.http.get(`${base}/stats`, { headers: this.headers, params }));
|
|
78
|
+
}
|
|
79
|
+
/** Um ranking paginado (`apps` | `operations` | `users`) com os mesmos filtros/janela do resumo. */
|
|
80
|
+
tops(base, kind, query, page) {
|
|
81
|
+
return firstValueFrom(this.http.get(`${base}/tops/${encodeURIComponent(kind)}`, { headers: this.headers, params: auditParams(query, page) }));
|
|
82
|
+
}
|
|
83
|
+
/** Apps para o filtro (`{ apps: [{ id, name }] }` — `/admin/apps` ou `/auto-service/:clientId/apps`). */
|
|
84
|
+
apps(url) {
|
|
85
|
+
return firstValueFrom(this.http.get(url, { headers: this.headers }));
|
|
86
|
+
}
|
|
87
|
+
/** Uma página das tentativas de login (`url` = `loginAttemptsUrl`), mais recentes primeiro, com o total do filtro. */
|
|
88
|
+
loginAttempts(url, query) {
|
|
89
|
+
return firstValueFrom(this.http.get(url, { headers: this.headers, params: loginAttemptParams(query) }));
|
|
90
|
+
}
|
|
91
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SpineAuditService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
92
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SpineAuditService, providedIn: 'root' });
|
|
93
|
+
}
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SpineAuditService, decorators: [{
|
|
95
|
+
type: Injectable,
|
|
96
|
+
args: [{ providedIn: 'root' }]
|
|
97
|
+
}] });
|
|
98
|
+
|
|
99
|
+
let nextId = 0;
|
|
100
|
+
/**
|
|
101
|
+
* Card de ranking da Auditoria ("Operações", "Usuários", "Por aplicação") com paginação compacta
|
|
102
|
+
* no servidor: `x–y de N` + anterior/próxima. Durante a troca de página as linhas atuais continuam
|
|
103
|
+
* (esmaecidas, `aria-busy`), sem esqueleto. A barra é proporcional ao `max` (o 1º item da 1ª página),
|
|
104
|
+
* então as páginas seguintes não "enchem" de novo. Clicar num item emite `picked` (vira filtro).
|
|
105
|
+
*/
|
|
106
|
+
class SpineAuditTopCardComponent {
|
|
107
|
+
heading = input.required(...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
108
|
+
rows = input.required(...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
109
|
+
/** Quantos itens o ranking tem no total (todas as páginas). */
|
|
110
|
+
total = input(0, ...(ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []));
|
|
111
|
+
offset = input(0, ...(ngDevMode ? [{ debugName: "offset" }] : /* istanbul ignore next */ []));
|
|
112
|
+
pageSize = input(5, ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
|
|
113
|
+
/** Referência da barra (o maior total do ranking); 0 = o maior da página. */
|
|
114
|
+
max = input(0, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
|
|
115
|
+
loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
116
|
+
failed = input(false, ...(ngDevMode ? [{ debugName: "failed" }] : /* istanbul ignore next */ []));
|
|
117
|
+
picked = output();
|
|
118
|
+
/** Novo `offset` pedido (anterior/próxima). */
|
|
119
|
+
offsetChange = output();
|
|
120
|
+
messages = inject(SPINE_MESSAGES);
|
|
121
|
+
text = this.messages.autoServiceAudit;
|
|
122
|
+
locale = this.messages.meta.locale;
|
|
123
|
+
fmt = formatMessage;
|
|
124
|
+
headingId = `spine-audit-top-${nextId++}`;
|
|
125
|
+
reference = computed(() => Math.max(1, this.max(), ...this.rows().map((r) => r.total)), ...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
|
|
126
|
+
range = computed(() => {
|
|
127
|
+
const from = Math.min(this.total(), this.offset() + 1);
|
|
128
|
+
const to = Math.min(this.total(), this.offset() + Math.max(this.rows().length, 1));
|
|
129
|
+
return formatMessage(this.text.topsRange, { from: this.number(from), to: this.number(to), total: this.number(this.total()) });
|
|
130
|
+
}, ...(ngDevMode ? [{ debugName: "range" }] : /* istanbul ignore next */ []));
|
|
131
|
+
go(direction) {
|
|
132
|
+
const next = Math.max(0, this.offset() + direction * this.pageSize());
|
|
133
|
+
if (next !== this.offset() && next < this.total())
|
|
134
|
+
this.offsetChange.emit(next);
|
|
135
|
+
}
|
|
136
|
+
/** Fatia (em % da própria barra) de falhas/negados dentro do total da linha. */
|
|
137
|
+
share(part, total) {
|
|
138
|
+
return total > 0 ? Math.min(100, (part / total) * 100) : 0;
|
|
139
|
+
}
|
|
140
|
+
bar(total) {
|
|
141
|
+
return Math.max(2, Math.round((total / this.reference()) * 100));
|
|
142
|
+
}
|
|
143
|
+
number(n) {
|
|
144
|
+
return new Intl.NumberFormat(this.locale).format(n ?? 0);
|
|
145
|
+
}
|
|
146
|
+
plural(message, count) {
|
|
147
|
+
return pluralMessage(message, count, this.locale);
|
|
148
|
+
}
|
|
149
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SpineAuditTopCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
150
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: SpineAuditTopCardComponent, isStandalone: true, selector: "spine-audit-top-card", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: true, transformFunction: null }, total: { classPropertyName: "total", publicName: "total", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, failed: { classPropertyName: "failed", publicName: "failed", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { picked: "picked", offsetChange: "offsetChange" }, ngImport: i0, template: `
|
|
151
|
+
<section class="card card-block top" [attr.aria-labelledby]="headingId" [attr.aria-busy]="loading()">
|
|
152
|
+
<div class="top__head">
|
|
153
|
+
<h3 class="top__title" [id]="headingId">{{ heading() }}</h3>
|
|
154
|
+
@if (loading() && rows().length) {
|
|
155
|
+
<hm-spinner size="small" [label]="text.updating" />
|
|
156
|
+
}
|
|
157
|
+
</div>
|
|
158
|
+
@if (rows().length) {
|
|
159
|
+
<ol class="rank" [class.rank--busy]="loading()" [attr.start]="offset() + 1">
|
|
160
|
+
@for (row of rows(); track row.key) {
|
|
161
|
+
<li>
|
|
162
|
+
<button type="button" class="rank__item" [attr.title]="row.hint || fmt(text.filterBy, { name: row.name })"
|
|
163
|
+
[disabled]="row.disabled" (click)="picked.emit(row)">
|
|
164
|
+
<span class="rank__name">
|
|
165
|
+
{{ row.name }}
|
|
166
|
+
@if (row.suffix) { <span class="muted"> · {{ row.suffix }}</span> }
|
|
167
|
+
</span>
|
|
168
|
+
<span class="rank__value">
|
|
169
|
+
{{ number(row.total) }}
|
|
170
|
+
@if (row.failures) { <span class="rank__fail"> · {{ plural(text.failureCount, row.failures) }}</span> }
|
|
171
|
+
@if (row.denied) { <span class="rank__denied"> · {{ plural(text.deniedCount, row.denied) }}</span> }
|
|
172
|
+
</span>
|
|
173
|
+
<span class="rank__track" aria-hidden="true">
|
|
174
|
+
<!-- A barra é a própria linha (sempre cheia): sucesso, falhas e negados na proporção dela. -->
|
|
175
|
+
<span class="rank__bar">
|
|
176
|
+
@if (row.failures) { <span class="rank__seg rank__seg--fail" [style.width.%]="share(row.failures, row.total)"></span> }
|
|
177
|
+
@if (row.denied) { <span class="rank__seg rank__seg--denied" [style.width.%]="share(row.denied, row.total)"></span> }
|
|
178
|
+
</span>
|
|
179
|
+
</span>
|
|
180
|
+
</button>
|
|
181
|
+
</li>
|
|
182
|
+
}
|
|
183
|
+
</ol>
|
|
184
|
+
@if (failed()) {
|
|
185
|
+
<p class="muted top__error" role="status">{{ text.topsError }}</p>
|
|
186
|
+
}
|
|
187
|
+
} @else if (loading()) {
|
|
188
|
+
<hm-skeleton shape="list" [count]="pageSize()" [label]="text.loading" />
|
|
189
|
+
} @else {
|
|
190
|
+
<p class="muted">{{ failed() ? text.topsError : text.noTop }}</p>
|
|
191
|
+
}
|
|
192
|
+
@if (total() > 0) {
|
|
193
|
+
<div class="top__pager">
|
|
194
|
+
<span class="top__range" role="status">{{ range() }}</span>
|
|
195
|
+
@if (total() > pageSize()) {
|
|
196
|
+
<span class="top__buttons">
|
|
197
|
+
<hm-icon-button [label]="fmt(text.topsPrevious, { name: heading() })" icon="angle" iconDirection="left"
|
|
198
|
+
emphasis="subtle" size="small" [disabled]="offset() <= 0 || loading()" (clicked)="go(-1)" />
|
|
199
|
+
<hm-icon-button [label]="fmt(text.topsNext, { name: heading() })" icon="angle" iconDirection="right"
|
|
200
|
+
emphasis="subtle" size="small" [disabled]="offset() + pageSize() >= total() || loading()" (clicked)="go(1)" />
|
|
201
|
+
</span>
|
|
202
|
+
}
|
|
203
|
+
</div>
|
|
204
|
+
}
|
|
205
|
+
</section>
|
|
206
|
+
`, isInline: true, dependencies: [{ kind: "component", type: IconButtonComponent, selector: "hm-icon-button", inputs: ["label", "icon", "solid", "iconDirection", "emphasis", "intent", "size", "disabled", "toggle", "pressed", "keyShortcuts"], outputs: ["pressedChange", "clicked"] }, { kind: "component", type: SkeletonComponent, selector: "hm-skeleton", inputs: ["shape", "count", "label"] }, { kind: "component", type: SpinnerComponent, selector: "hm-spinner", inputs: ["size", "inverse", "label", "labelVisible", "decorative", "done", "doneLabel"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
207
|
+
}
|
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SpineAuditTopCardComponent, decorators: [{
|
|
209
|
+
type: Component,
|
|
210
|
+
args: [{
|
|
211
|
+
selector: 'spine-audit-top-card',
|
|
212
|
+
imports: [IconButtonComponent, SkeletonComponent, SpinnerComponent],
|
|
213
|
+
template: `
|
|
214
|
+
<section class="card card-block top" [attr.aria-labelledby]="headingId" [attr.aria-busy]="loading()">
|
|
215
|
+
<div class="top__head">
|
|
216
|
+
<h3 class="top__title" [id]="headingId">{{ heading() }}</h3>
|
|
217
|
+
@if (loading() && rows().length) {
|
|
218
|
+
<hm-spinner size="small" [label]="text.updating" />
|
|
219
|
+
}
|
|
220
|
+
</div>
|
|
221
|
+
@if (rows().length) {
|
|
222
|
+
<ol class="rank" [class.rank--busy]="loading()" [attr.start]="offset() + 1">
|
|
223
|
+
@for (row of rows(); track row.key) {
|
|
224
|
+
<li>
|
|
225
|
+
<button type="button" class="rank__item" [attr.title]="row.hint || fmt(text.filterBy, { name: row.name })"
|
|
226
|
+
[disabled]="row.disabled" (click)="picked.emit(row)">
|
|
227
|
+
<span class="rank__name">
|
|
228
|
+
{{ row.name }}
|
|
229
|
+
@if (row.suffix) { <span class="muted"> · {{ row.suffix }}</span> }
|
|
230
|
+
</span>
|
|
231
|
+
<span class="rank__value">
|
|
232
|
+
{{ number(row.total) }}
|
|
233
|
+
@if (row.failures) { <span class="rank__fail"> · {{ plural(text.failureCount, row.failures) }}</span> }
|
|
234
|
+
@if (row.denied) { <span class="rank__denied"> · {{ plural(text.deniedCount, row.denied) }}</span> }
|
|
235
|
+
</span>
|
|
236
|
+
<span class="rank__track" aria-hidden="true">
|
|
237
|
+
<!-- A barra é a própria linha (sempre cheia): sucesso, falhas e negados na proporção dela. -->
|
|
238
|
+
<span class="rank__bar">
|
|
239
|
+
@if (row.failures) { <span class="rank__seg rank__seg--fail" [style.width.%]="share(row.failures, row.total)"></span> }
|
|
240
|
+
@if (row.denied) { <span class="rank__seg rank__seg--denied" [style.width.%]="share(row.denied, row.total)"></span> }
|
|
241
|
+
</span>
|
|
242
|
+
</span>
|
|
243
|
+
</button>
|
|
244
|
+
</li>
|
|
245
|
+
}
|
|
246
|
+
</ol>
|
|
247
|
+
@if (failed()) {
|
|
248
|
+
<p class="muted top__error" role="status">{{ text.topsError }}</p>
|
|
249
|
+
}
|
|
250
|
+
} @else if (loading()) {
|
|
251
|
+
<hm-skeleton shape="list" [count]="pageSize()" [label]="text.loading" />
|
|
252
|
+
} @else {
|
|
253
|
+
<p class="muted">{{ failed() ? text.topsError : text.noTop }}</p>
|
|
254
|
+
}
|
|
255
|
+
@if (total() > 0) {
|
|
256
|
+
<div class="top__pager">
|
|
257
|
+
<span class="top__range" role="status">{{ range() }}</span>
|
|
258
|
+
@if (total() > pageSize()) {
|
|
259
|
+
<span class="top__buttons">
|
|
260
|
+
<hm-icon-button [label]="fmt(text.topsPrevious, { name: heading() })" icon="angle" iconDirection="left"
|
|
261
|
+
emphasis="subtle" size="small" [disabled]="offset() <= 0 || loading()" (clicked)="go(-1)" />
|
|
262
|
+
<hm-icon-button [label]="fmt(text.topsNext, { name: heading() })" icon="angle" iconDirection="right"
|
|
263
|
+
emphasis="subtle" size="small" [disabled]="offset() + pageSize() >= total() || loading()" (clicked)="go(1)" />
|
|
264
|
+
</span>
|
|
265
|
+
}
|
|
266
|
+
</div>
|
|
267
|
+
}
|
|
268
|
+
</section>
|
|
269
|
+
`,
|
|
270
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
271
|
+
}]
|
|
272
|
+
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: true }] }], total: [{ type: i0.Input, args: [{ isSignal: true, alias: "total", required: false }] }], offset: [{ type: i0.Input, args: [{ isSignal: true, alias: "offset", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], failed: [{ type: i0.Input, args: [{ isSignal: true, alias: "failed", required: false }] }], picked: [{ type: i0.Output, args: ["picked"] }], offsetChange: [{ type: i0.Output, args: ["offsetChange"] }] } });
|
|
273
|
+
|
|
274
|
+
/** Eventos por página da tabela, de saída (o servidor aceita até 200 — `AUDIT_MAX_PAGE_SIZE`). */
|
|
275
|
+
const AUDIT_PAGE_SIZE = 10;
|
|
276
|
+
/** Opções do seletor de eventos por página (todas dentro do `limit` máximo do servidor). */
|
|
277
|
+
const AUDIT_PAGE_SIZES = [10, 25, 50, 100, 200];
|
|
278
|
+
/** Intervalo da atualização automática (opcional, desligada por padrão). */
|
|
279
|
+
const AUDIT_AUTO_REFRESH_MS = 30_000;
|
|
280
|
+
const NO_VALUE = '—';
|
|
281
|
+
const EMPTY_TOP = { items: [], total: 0, offset: 0, max: 0, loading: false, failed: false };
|
|
282
|
+
/**
|
|
283
|
+
* A tela de Auditoria — a MESMA no auto-serviço e no painel central do argos admin. Só muda o escopo:
|
|
284
|
+
* - `scope="client"` + `clientId`: `{adminApi}/auto-service/:clientId/audit/*`, apps do projeto do client
|
|
285
|
+
* (recorte feito no servidor);
|
|
286
|
+
* - `scope="admin"`: `{adminApi}/admin/audit/*`, todos os apps (guard `admin:audit:*` no servidor).
|
|
287
|
+
* `adminApi` vem do input ou do `SPINE_ADMIN_API` (que o `provideAutoService` já fornece).
|
|
288
|
+
*
|
|
289
|
+
* Unidade: por padrão a tela lê AÇÕES (`GET .../actions`, uma linha por trace, coluna "Spans", detalhe
|
|
290
|
+
* com os spans numa linha do tempo); o alternador "Ações | Eventos" volta à leitura por registro. KPIs,
|
|
291
|
+
* linha do tempo e rankings seguem a unidade escolhida (`unit=` nas agregações).
|
|
292
|
+
*
|
|
293
|
+
* Conteúdo: período rápido (ou datas da faixa de filtros, que vencem), filtros, KPIs (falhas/negados
|
|
294
|
+
* clicáveis viram filtro), linha do tempo, 3 rankings paginados no servidor (`tops/:kind`), a tabela
|
|
295
|
+
* paginada no servidor (cursor) e o detalhe/cadeia (trace) de um evento.
|
|
296
|
+
*
|
|
297
|
+
* Recarga sem piscar: trocar de página (ou atualizar) mantém as linhas atuais à vista com um indicador
|
|
298
|
+
* por cima — a grade só mostra esqueleto na 1ª carga. Toda resposta carrega um número de sequência e a
|
|
299
|
+
* que chega fora de ordem (página/consulta já trocada) é descartada.
|
|
300
|
+
*
|
|
301
|
+
* Importe só de código carregado sob demanda (rota lazy, `import()`): o ponto `@trismegisto/angular/spine/audit`
|
|
302
|
+
* existe para a tela não entrar no bundle inicial de quem só usa o resto do spine.
|
|
303
|
+
*/
|
|
304
|
+
class SpineAuditComponent {
|
|
305
|
+
/** `admin` = painel central (todos os apps); `client` = apps do projeto do `clientId`. */
|
|
306
|
+
scope = input.required(...(ngDevMode ? [{ debugName: "scope" }] : /* istanbul ignore next */ []));
|
|
307
|
+
/** Obrigatório com `scope="client"`. */
|
|
308
|
+
clientId = input(null, ...(ngDevMode ? [{ debugName: "clientId" }] : /* istanbul ignore next */ []));
|
|
309
|
+
/** Base do argos admin-server; sem ele, vale o `SPINE_ADMIN_API`. */
|
|
310
|
+
adminApi = input(null, ...(ngDevMode ? [{ debugName: "adminApi" }] : /* istanbul ignore next */ []));
|
|
311
|
+
service = inject(SpineAuditService);
|
|
312
|
+
tokenApi = inject(SPINE_ADMIN_API, { optional: true });
|
|
313
|
+
messages = inject(SPINE_MESSAGES);
|
|
314
|
+
text = this.messages.autoServiceAudit;
|
|
315
|
+
locale = this.messages.meta.locale;
|
|
316
|
+
fmt = formatMessage;
|
|
317
|
+
/** Rótulos e formatação da tela: o `createAuditFormat` do núcleo, o mesmo da casca React. */
|
|
318
|
+
f = createAuditFormat(this.text, this.locale);
|
|
319
|
+
/** Base dos endpoints do escopo; muda → tudo recomeça (filtros, página, detalhe). */
|
|
320
|
+
base = computed(() => auditApiBase(this.adminApi() || this.tokenApi, this.scope(), this.clientId()), ...(ngDevMode ? [{ debugName: "base" }] : /* istanbul ignore next */ []));
|
|
321
|
+
appsUrl = computed(() => auditAppsUrl(this.adminApi() || this.tokenApi, this.scope(), this.clientId()), ...(ngDevMode ? [{ debugName: "appsUrl" }] : /* istanbul ignore next */ []));
|
|
322
|
+
period = signal('24h', ...(ngDevMode ? [{ debugName: "period" }] : /* istanbul ignore next */ []));
|
|
323
|
+
/** Ações (uma linha por trace) ou eventos (cada registro). */
|
|
324
|
+
unit = signal('actions', ...(ngDevMode ? [{ debugName: "unit" }] : /* istanbul ignore next */ []));
|
|
325
|
+
byActions = computed(() => this.unit() === 'actions', ...(ngDevMode ? [{ debugName: "byActions" }] : /* istanbul ignore next */ []));
|
|
326
|
+
unitOptions = [
|
|
327
|
+
{ value: 'actions', label: this.text.unitActions },
|
|
328
|
+
{ value: 'events', label: this.text.unitEvents },
|
|
329
|
+
];
|
|
330
|
+
/** Textos que mudam com a unidade. */
|
|
331
|
+
unitText = computed(() => auditUnitText(this.text, this.unit()), ...(ngDevMode ? [{ debugName: "unitText" }] : /* istanbul ignore next */ []));
|
|
332
|
+
filterValue = signal({}, ...(ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []));
|
|
333
|
+
apps = signal([], ...(ngDevMode ? [{ debugName: "apps" }] : /* istanbul ignore next */ []));
|
|
334
|
+
stats = signal(null, ...(ngDevMode ? [{ debugName: "stats" }] : /* istanbul ignore next */ []));
|
|
335
|
+
events = signal([], ...(ngDevMode ? [{ debugName: "events" }] : /* istanbul ignore next */ []));
|
|
336
|
+
loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
337
|
+
pageLoading = signal(false, ...(ngDevMode ? [{ debugName: "pageLoading" }] : /* istanbul ignore next */ []));
|
|
338
|
+
pageFailed = signal(false, ...(ngDevMode ? [{ debugName: "pageFailed" }] : /* istanbul ignore next */ []));
|
|
339
|
+
pageState = signal({ page: 1, size: AUDIT_PAGE_SIZE }, ...(ngDevMode ? [{ debugName: "pageState" }] : /* istanbul ignore next */ []));
|
|
340
|
+
pageSizes = AUDIT_PAGE_SIZES;
|
|
341
|
+
/** A página mostrada (posição + "tem mais") e o total exato quando a lista já chegou ao fim. */
|
|
342
|
+
loaded = signal(null, ...(ngDevMode ? [{ debugName: "loaded" }] : /* istanbul ignore next */ []));
|
|
343
|
+
listEnd = signal(null, ...(ngDevMode ? [{ debugName: "listEnd" }] : /* istanbul ignore next */ []));
|
|
344
|
+
/** Total do rodapé da tabela. */
|
|
345
|
+
total = computed(() => auditPagerTotal(this.stats()?.total, this.listEnd(), this.loaded()), ...(ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []));
|
|
346
|
+
errorKind = signal(null, ...(ngDevMode ? [{ debugName: "errorKind" }] : /* istanbul ignore next */ []));
|
|
347
|
+
errorDetail = signal('', ...(ngDevMode ? [{ debugName: "errorDetail" }] : /* istanbul ignore next */ []));
|
|
348
|
+
lastUpdated = signal(null, ...(ngDevMode ? [{ debugName: "lastUpdated" }] : /* istanbul ignore next */ []));
|
|
349
|
+
autoRefresh = signal(false, ...(ngDevMode ? [{ debugName: "autoRefresh" }] : /* istanbul ignore next */ []));
|
|
350
|
+
/** Esqueleto da grade só quando ainda não há linha nenhuma para mostrar (1ª carga). */
|
|
351
|
+
gridSkeleton = computed(() => this.loading() && this.events().length === 0, ...(ngDevMode ? [{ debugName: "gridSkeleton" }] : /* istanbul ignore next */ []));
|
|
352
|
+
/** Recarga com linhas à vista: elas ficam, com o indicador por cima. */
|
|
353
|
+
gridBusy = computed(() => (this.loading() || this.pageLoading()) && this.events().length > 0, ...(ngDevMode ? [{ debugName: "gridBusy" }] : /* istanbul ignore next */ []));
|
|
354
|
+
tops = {
|
|
355
|
+
apps: signal(EMPTY_TOP),
|
|
356
|
+
operations: signal(EMPTY_TOP),
|
|
357
|
+
users: signal(EMPTY_TOP),
|
|
358
|
+
};
|
|
359
|
+
topPageSize = AUDIT_TOP_PAGE_SIZE;
|
|
360
|
+
detailOpen = signal(false, ...(ngDevMode ? [{ debugName: "detailOpen" }] : /* istanbul ignore next */ []));
|
|
361
|
+
selected = signal(null, ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
|
|
362
|
+
detailLoading = signal(false, ...(ngDevMode ? [{ debugName: "detailLoading" }] : /* istanbul ignore next */ []));
|
|
363
|
+
detailFailed = signal(false, ...(ngDevMode ? [{ debugName: "detailFailed" }] : /* istanbul ignore next */ []));
|
|
364
|
+
trace = signal(null, ...(ngDevMode ? [{ debugName: "trace" }] : /* istanbul ignore next */ []));
|
|
365
|
+
/** A ação aberta (linha da tabela por ações): agregados que o detalhe do evento raiz não traz. */
|
|
366
|
+
selectedAction = signal(null, ...(ngDevMode ? [{ debugName: "selectedAction" }] : /* istanbul ignore next */ []));
|
|
367
|
+
/** O detalhe mostra a ação (o raiz dela), não um span qualquer da cadeia. */
|
|
368
|
+
showingAction = computed(() => {
|
|
369
|
+
const a = this.selectedAction();
|
|
370
|
+
return !!a && a.event_id === this.selected()?.event_id;
|
|
371
|
+
}, ...(ngDevMode ? [{ debugName: "showingAction" }] : /* istanbul ignore next */ []));
|
|
372
|
+
/** Resultado do cabeçalho do detalhe: o da ação (pior dos spans) ou o do evento. */
|
|
373
|
+
headOutcome = computed(() => {
|
|
374
|
+
if (!this.showingAction())
|
|
375
|
+
return this.selected()?.outcome;
|
|
376
|
+
const spans = this.trace()?.items;
|
|
377
|
+
if (spans?.length)
|
|
378
|
+
return worstOutcome(spans.map((s) => s.outcome));
|
|
379
|
+
return this.selectedAction().outcome ?? this.selected()?.outcome;
|
|
380
|
+
}, ...(ngDevMode ? [{ debugName: "headOutcome" }] : /* istanbul ignore next */ []));
|
|
381
|
+
/** Os spans da cadeia numa linha do tempo (hierarquia por parent_span_id). */
|
|
382
|
+
spanTimeline = computed(() => {
|
|
383
|
+
const tr = this.trace();
|
|
384
|
+
return tr ? buildSpanTimeline(tr.items) : null;
|
|
385
|
+
}, ...(ngDevMode ? [{ debugName: "spanTimeline" }] : /* istanbul ignore next */ []));
|
|
386
|
+
traceLoading = signal(false, ...(ngDevMode ? [{ debugName: "traceLoading" }] : /* istanbul ignore next */ []));
|
|
387
|
+
traceFailed = signal(false, ...(ngDevMode ? [{ debugName: "traceFailed" }] : /* istanbul ignore next */ []));
|
|
388
|
+
/** Consulta da última carga — a troca de página usa a mesma (mesma janela absoluta). */
|
|
389
|
+
query = null;
|
|
390
|
+
/** Cursores da consulta atual (consulta nova = pager novo). */
|
|
391
|
+
pager = new AuditCursorPager();
|
|
392
|
+
/** Descartam respostas velhas (consulta/página/ranking/detalhe já trocados). */
|
|
393
|
+
seq = 0;
|
|
394
|
+
pageSeq = 0;
|
|
395
|
+
detailSeq = 0;
|
|
396
|
+
topSeq = { apps: 0, operations: 0, users: 0 };
|
|
397
|
+
periodOptions = [
|
|
398
|
+
{ value: '1h', label: this.text.periodLastHour },
|
|
399
|
+
{ value: '6h', label: this.text.period6h },
|
|
400
|
+
{ value: '24h', label: this.text.period24h },
|
|
401
|
+
{ value: '7d', label: this.text.period7d },
|
|
402
|
+
{ value: '30d', label: this.text.period30d },
|
|
403
|
+
];
|
|
404
|
+
/** Há mais de um app à vista: coluna, filtro e ranking "por aplicação" aparecem. */
|
|
405
|
+
multiApp = computed(() => this.apps().length > 1 || this.tops.apps().total > 1, ...(ngDevMode ? [{ debugName: "multiApp" }] : /* istanbul ignore next */ []));
|
|
406
|
+
/** As datas da faixa estão valendo (a escolha rápida fica sem efeito). */
|
|
407
|
+
customDates = computed(() => {
|
|
408
|
+
const dates = this.filterValue().dates;
|
|
409
|
+
return !!dates && !!(dates.start || dates.end);
|
|
410
|
+
}, ...(ngDevMode ? [{ debugName: "customDates" }] : /* istanbul ignore next */ []));
|
|
411
|
+
hasFilters = computed(() => Object.keys(this.filterValue()).length > 0, ...(ngDevMode ? [{ debugName: "hasFilters" }] : /* istanbul ignore next */ []));
|
|
412
|
+
selectedOutcome = computed(() => this.filterValue().outcome ?? null, ...(ngDevMode ? [{ debugName: "selectedOutcome" }] : /* istanbul ignore next */ []));
|
|
413
|
+
storageKey = computed(() => `spine-audit-${this.scope()}`, ...(ngDevMode ? [{ debugName: "storageKey" }] : /* istanbul ignore next */ []));
|
|
414
|
+
filterFields = computed(() => {
|
|
415
|
+
const t = this.text;
|
|
416
|
+
const options = (values, label) => values.map((v) => ({ value: v, label: label(v) }));
|
|
417
|
+
const fields = [{ key: 'dates', label: t.filterDates, type: 'date-range' }];
|
|
418
|
+
if (this.multiApp()) {
|
|
419
|
+
fields.push({ key: 'app', label: t.filterApp, type: 'multiselect', options: this.apps().map((a) => ({ value: a.id, label: a.name })) });
|
|
420
|
+
}
|
|
421
|
+
fields.push({ key: 'user', label: t.filterUser, type: 'text', placeholder: t.userPlaceholder }, { key: 'operation', label: t.filterOperation, type: 'text', placeholder: t.operationPlaceholder }, { key: 'method', label: t.filterMethod, type: 'select', options: options(AUDIT_METHODS, (m) => this.methodLabel(m)) }, { key: 'outcome', label: t.filterOutcome, type: 'select', options: options(AUDIT_OUTCOMES, (o) => this.outcomeLabel(o)) });
|
|
422
|
+
// Por ação, "só ações do usuário" não se aplica (toda linha já é uma ação).
|
|
423
|
+
if (!this.byActions())
|
|
424
|
+
fields.push({ key: 'entry', label: t.filterEntry, type: 'boolean' });
|
|
425
|
+
fields.push({ key: 'level', label: t.filterLevel, type: 'select', options: options(AUDIT_LEVELS, (l) => this.levelLabel(l)) }, { key: 'permission_result', label: t.filterPermission, type: 'select', options: options(AUDIT_PERMISSIONS, (p) => this.permissionLabel(p)) }, { key: 'actor_type', label: t.filterActor, type: 'select', options: options(AUDIT_ACTORS, (a) => this.actorLabel(a)) }, { key: 'status', label: t.filterStatus, type: 'text', placeholder: t.statusPlaceholder }, { key: 'trace_id', label: t.filterTrace, type: 'text', placeholder: t.tracePlaceholder }, { key: 'user_id', label: t.filterUserId, type: 'text', placeholder: t.userIdPlaceholder });
|
|
426
|
+
return fields;
|
|
427
|
+
}, ...(ngDevMode ? [{ debugName: "filterFields" }] : /* istanbul ignore next */ []));
|
|
428
|
+
errorSituation = computed(() => {
|
|
429
|
+
const kind = this.errorKind();
|
|
430
|
+
return kind === 'forbidden' ? 'forbidden' : kind === 'range' || kind === 'invalid' ? 'attention' : 'error';
|
|
431
|
+
}, ...(ngDevMode ? [{ debugName: "errorSituation" }] : /* istanbul ignore next */ []));
|
|
432
|
+
errorText = computed(() => {
|
|
433
|
+
switch (this.errorKind()) {
|
|
434
|
+
case 'forbidden': return this.scope() === 'admin' ? this.text.forbiddenAdmin : this.text.forbidden;
|
|
435
|
+
case 'range': return this.text.rangeTooLarge;
|
|
436
|
+
case 'invalid': return formatMessage(this.text.invalidFilter, { detail: this.errorDetail() }).trim();
|
|
437
|
+
default: return this.text.errorText;
|
|
438
|
+
}
|
|
439
|
+
}, ...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
440
|
+
empty = computed(() => !this.loading() && !this.errorKind() && !!this.stats() && this.stats().total === 0 && this.events().length === 0, ...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
|
|
441
|
+
columns = computed(() => {
|
|
442
|
+
const t = this.text;
|
|
443
|
+
const cols = [
|
|
444
|
+
{ key: 'occurred_at', title: t.colWhen, value: (e) => this.dateTime(e.occurred_at), initialWidth: '11rem' },
|
|
445
|
+
];
|
|
446
|
+
if (this.multiApp())
|
|
447
|
+
cols.push({ key: 'app', title: t.colApp, value: (e) => e.app_name ?? NO_VALUE });
|
|
448
|
+
cols.push({ key: 'user', title: t.colUser, value: (e) => this.userName(e) },
|
|
449
|
+
// Só o identificador; a descrição fica na dica da célula e no detalhe do evento.
|
|
450
|
+
{ key: 'operation', title: t.colOperation, value: (e) => this.operationName(e) });
|
|
451
|
+
if (this.byActions()) {
|
|
452
|
+
cols.push({ key: 'spans', title: t.colSpans, value: (e) => this.number(e.span_count ?? 1), align: 'end', initialWidth: '5rem' });
|
|
453
|
+
}
|
|
454
|
+
cols.push({ key: 'method', title: t.colMethod, value: (e) => this.methodLabel(e.operation_method), initialWidth: '8rem' }, { key: 'outcome', title: t.colOutcome, value: (e) => this.outcomeLabel(e.outcome), initialWidth: '8rem' }, { key: 'status', title: t.colStatus, value: (e) => (e.status == null ? NO_VALUE : String(e.status)), align: 'end', initialWidth: '5rem' }, { key: 'duration', title: t.colDuration, value: (e) => this.duration(e.duration_ms), align: 'end', initialWidth: '7rem' });
|
|
455
|
+
return cols.map((c) => ({ sortable: false, filterable: false, ...c }));
|
|
456
|
+
}, ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
457
|
+
rowId = (e) => e.event_id;
|
|
458
|
+
timelineBars = computed(() => this.f.timelineBars(this.stats(), this.unit()), ...(ngDevMode ? [{ debugName: "timelineBars" }] : /* istanbul ignore next */ []));
|
|
459
|
+
timelineEdges = computed(() => this.f.timelineEdges(this.stats()), ...(ngDevMode ? [{ debugName: "timelineEdges" }] : /* istanbul ignore next */ []));
|
|
460
|
+
hasTimeline = computed(() => (this.stats()?.timeline ?? []).some((b) => b.total > 0), ...(ngDevMode ? [{ debugName: "hasTimeline" }] : /* istanbul ignore next */ []));
|
|
461
|
+
topOperationRows = computed(() => this.f.topOperationRows(this.tops.operations().items, this.multiApp()), ...(ngDevMode ? [{ debugName: "topOperationRows" }] : /* istanbul ignore next */ []));
|
|
462
|
+
topUserRows = computed(() => this.f.topUserRows(this.tops.users().items), ...(ngDevMode ? [{ debugName: "topUserRows" }] : /* istanbul ignore next */ []));
|
|
463
|
+
topAppRows = computed(() => this.f.topAppRows(this.tops.apps().items), ...(ngDevMode ? [{ debugName: "topAppRows" }] : /* istanbul ignore next */ []));
|
|
464
|
+
detailFields = computed(() => this.f.detailFields(this.selected()), ...(ngDevMode ? [{ debugName: "detailFields" }] : /* istanbul ignore next */ []));
|
|
465
|
+
detailsJson = computed(() => auditDetailsJson(this.selected()?.details), ...(ngDevMode ? [{ debugName: "detailsJson" }] : /* istanbul ignore next */ []));
|
|
466
|
+
constructor() {
|
|
467
|
+
// Escopo/client novo (ou o primeiro): zera filtros/detalhe e carrega de novo. `untracked` porque a
|
|
468
|
+
// carga lê `period`/`filterValue` — essas mudanças recarregam pelos próprios handlers.
|
|
469
|
+
effect(() => {
|
|
470
|
+
const base = this.base();
|
|
471
|
+
const appsUrl = this.appsUrl();
|
|
472
|
+
untracked(() => {
|
|
473
|
+
// 1ª carga: filtros e evento vindos da URL (links do dashboard: `?from&to&app_id&event_id…`).
|
|
474
|
+
const fromUrl = this.urlConsumed ? null : this.readUrlState();
|
|
475
|
+
this.urlConsumed = true;
|
|
476
|
+
this.filterValue.set(fromUrl?.filters ?? {});
|
|
477
|
+
this.firstPage();
|
|
478
|
+
this.closeDetail();
|
|
479
|
+
this.events.set([]);
|
|
480
|
+
this.loaded.set(null);
|
|
481
|
+
this.listEnd.set(null);
|
|
482
|
+
this.stats.set(null);
|
|
483
|
+
for (const kind of AUDIT_TOP_KINDS)
|
|
484
|
+
this.tops[kind].set(EMPTY_TOP);
|
|
485
|
+
void this.loadApps(appsUrl);
|
|
486
|
+
if (base) {
|
|
487
|
+
void this.reload().then(() => {
|
|
488
|
+
if (fromUrl?.event) {
|
|
489
|
+
if (this.byActions())
|
|
490
|
+
void this.openAction({ ...fromUrl.event, span_count: 0 });
|
|
491
|
+
else
|
|
492
|
+
void this.openEvent(fromUrl.event);
|
|
493
|
+
}
|
|
494
|
+
});
|
|
495
|
+
}
|
|
496
|
+
});
|
|
497
|
+
});
|
|
498
|
+
// Atualização automática (opcional): só quando nada está carregando.
|
|
499
|
+
effect((onCleanup) => {
|
|
500
|
+
if (!this.autoRefresh())
|
|
501
|
+
return;
|
|
502
|
+
const timer = setInterval(() => {
|
|
503
|
+
if (!this.loading() && !this.pageLoading())
|
|
504
|
+
void this.reload();
|
|
505
|
+
}, AUDIT_AUTO_REFRESH_MS);
|
|
506
|
+
onCleanup(() => clearInterval(timer));
|
|
507
|
+
});
|
|
508
|
+
}
|
|
509
|
+
router = inject(Router, { optional: true });
|
|
510
|
+
urlConsumed = false;
|
|
511
|
+
/** Filtros/evento da query string (`from`, `to` ISO; `app_id` repetível; demais filtros pelo nome). */
|
|
512
|
+
readUrlState() {
|
|
513
|
+
if (!this.router)
|
|
514
|
+
return null;
|
|
515
|
+
const q = this.router.parseUrl(this.router.url).queryParamMap;
|
|
516
|
+
if (!q.keys.length)
|
|
517
|
+
return null;
|
|
518
|
+
const filters = {};
|
|
519
|
+
const day = (iso) => (iso ? iso.slice(0, 10) : null);
|
|
520
|
+
if (q.has('from') || q.has('to'))
|
|
521
|
+
filters['dates'] = { start: day(q.get('from')), end: day(q.get('to')) };
|
|
522
|
+
const apps = q.getAll('app_id');
|
|
523
|
+
if (apps.length)
|
|
524
|
+
filters['app'] = apps;
|
|
525
|
+
for (const key of ['user', 'operation', 'method', 'outcome', 'level', 'permission_result', 'actor_type', 'status', 'trace_id', 'user_id']) {
|
|
526
|
+
const v = q.get(key);
|
|
527
|
+
if (v)
|
|
528
|
+
filters[key] = v;
|
|
529
|
+
}
|
|
530
|
+
if (q.get('entry') === 'true')
|
|
531
|
+
filters['entry'] = true;
|
|
532
|
+
const unit = q.get('unit');
|
|
533
|
+
if (unit === 'actions' || unit === 'events')
|
|
534
|
+
this.unit.set(unit);
|
|
535
|
+
const eventId = q.get('event_id');
|
|
536
|
+
const occurredAt = q.get('occurred_at');
|
|
537
|
+
const event = eventId && occurredAt ? { event_id: eventId, occurred_at: occurredAt, trace_id: q.get('trace_id') ?? undefined } : null;
|
|
538
|
+
return { filters: filters, event: event };
|
|
539
|
+
}
|
|
540
|
+
// ---- ações ------------------------------------------------------------------------------------
|
|
541
|
+
setPeriod(value) {
|
|
542
|
+
if (value === this.period())
|
|
543
|
+
return;
|
|
544
|
+
this.period.set(value);
|
|
545
|
+
this.firstPage();
|
|
546
|
+
void this.reload();
|
|
547
|
+
}
|
|
548
|
+
setUnit(value) {
|
|
549
|
+
if (value === this.unit() || (value !== 'actions' && value !== 'events'))
|
|
550
|
+
return;
|
|
551
|
+
this.unit.set(value);
|
|
552
|
+
this.closeDetail();
|
|
553
|
+
this.firstPage();
|
|
554
|
+
void this.reload();
|
|
555
|
+
}
|
|
556
|
+
setFilters(value) {
|
|
557
|
+
this.filterValue.set(value);
|
|
558
|
+
this.firstPage();
|
|
559
|
+
void this.reload();
|
|
560
|
+
}
|
|
561
|
+
firstPage() {
|
|
562
|
+
this.pageState.update((s) => ({ ...s, page: 1 }));
|
|
563
|
+
}
|
|
564
|
+
clearFilters() {
|
|
565
|
+
this.setFilters({});
|
|
566
|
+
}
|
|
567
|
+
/** Clique num item de ranking ou atalho: vira filtro (soma aos que já estão). */
|
|
568
|
+
filterBy(key, value) {
|
|
569
|
+
if (!value || (Array.isArray(value) && !value.length))
|
|
570
|
+
return;
|
|
571
|
+
this.setFilters({ ...this.filterValue(), [key]: value });
|
|
572
|
+
}
|
|
573
|
+
pickTop(kind, row) {
|
|
574
|
+
if (kind === 'apps') {
|
|
575
|
+
this.filterBy('app', [row.key]);
|
|
576
|
+
}
|
|
577
|
+
else if (kind === 'operations') {
|
|
578
|
+
this.filterBy('operation', row.key.slice(row.key.indexOf('|') + 1));
|
|
579
|
+
}
|
|
580
|
+
else {
|
|
581
|
+
const user = this.tops.users().items.find((u) => (u.user_id ?? u.user_name ?? '') === row.key);
|
|
582
|
+
if (user?.user_name)
|
|
583
|
+
this.filterBy('user', user.user_name);
|
|
584
|
+
else if (user?.user_id)
|
|
585
|
+
this.filterBy('user_id', user.user_id);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
/** KPI "Falhas"/"Negados" clicável: liga/desliga o filtro de resultado. */
|
|
589
|
+
toggleOutcome(outcome, on) {
|
|
590
|
+
const next = { ...this.filterValue() };
|
|
591
|
+
if (on)
|
|
592
|
+
next['outcome'] = outcome;
|
|
593
|
+
else
|
|
594
|
+
delete next['outcome'];
|
|
595
|
+
this.setFilters(next);
|
|
596
|
+
}
|
|
597
|
+
/** Recarrega resumo, rankings e a página atual com a janela recalculada (`now` novo, cursores descartados). */
|
|
598
|
+
async reload() {
|
|
599
|
+
const base = this.base();
|
|
600
|
+
const seq = ++this.seq;
|
|
601
|
+
const pageSeq = ++this.pageSeq;
|
|
602
|
+
this.pager = new AuditCursorPager();
|
|
603
|
+
this.pageLoading.set(false);
|
|
604
|
+
this.pageFailed.set(false);
|
|
605
|
+
this.errorKind.set(null);
|
|
606
|
+
this.errorDetail.set('');
|
|
607
|
+
if (!base)
|
|
608
|
+
return;
|
|
609
|
+
const built = buildAuditQuery(this.period(), this.filterValue(), new Date());
|
|
610
|
+
if (!built.ok) {
|
|
611
|
+
this.query = null;
|
|
612
|
+
this.clearData();
|
|
613
|
+
this.errorKind.set('range');
|
|
614
|
+
return;
|
|
615
|
+
}
|
|
616
|
+
// Por ação, `entry` não se aplica; `unit` faz stats/tops contarem na unidade escolhida.
|
|
617
|
+
const query = { ...built.query, unit: this.unit() };
|
|
618
|
+
if (this.byActions())
|
|
619
|
+
delete query.entry;
|
|
620
|
+
this.query = query;
|
|
621
|
+
this.loading.set(true);
|
|
622
|
+
for (const kind of AUDIT_TOP_KINDS)
|
|
623
|
+
void this.loadTop(kind, 0);
|
|
624
|
+
try {
|
|
625
|
+
const pager = this.pager;
|
|
626
|
+
const { page, size } = this.pageState();
|
|
627
|
+
const [stats, result] = await Promise.all([
|
|
628
|
+
this.service.stats(base, query, { tops: false }),
|
|
629
|
+
pager.page((page - 1) * size, size, this.fetcher(base, query)),
|
|
630
|
+
]);
|
|
631
|
+
if (seq !== this.seq)
|
|
632
|
+
return;
|
|
633
|
+
this.stats.set(stats);
|
|
634
|
+
// Uma troca de página feita durante a recarga (mesma consulta) vence a página desta carga.
|
|
635
|
+
if (pageSeq === this.pageSeq)
|
|
636
|
+
this.showPage(result, size, pager);
|
|
637
|
+
this.lastUpdated.set(new Date());
|
|
638
|
+
}
|
|
639
|
+
catch (err) {
|
|
640
|
+
if (seq !== this.seq)
|
|
641
|
+
return;
|
|
642
|
+
this.clearData();
|
|
643
|
+
this.setError(err);
|
|
644
|
+
}
|
|
645
|
+
finally {
|
|
646
|
+
if (seq === this.seq)
|
|
647
|
+
this.loading.set(false);
|
|
648
|
+
}
|
|
649
|
+
}
|
|
650
|
+
/** Rodapé da tabela mudou de página ou de itens por página: busca só aquela página, mesma consulta. */
|
|
651
|
+
async changePage(state) {
|
|
652
|
+
this.pageState.set(state);
|
|
653
|
+
const query = this.query;
|
|
654
|
+
const base = this.base();
|
|
655
|
+
if (!query || !base)
|
|
656
|
+
return;
|
|
657
|
+
const seq = this.seq;
|
|
658
|
+
const pageSeq = ++this.pageSeq;
|
|
659
|
+
const pager = this.pager;
|
|
660
|
+
const current = () => seq === this.seq && pageSeq === this.pageSeq;
|
|
661
|
+
this.pageLoading.set(true);
|
|
662
|
+
this.pageFailed.set(false);
|
|
663
|
+
try {
|
|
664
|
+
const result = await pager.page((state.page - 1) * state.size, state.size, this.fetcher(base, query));
|
|
665
|
+
if (current())
|
|
666
|
+
this.showPage(result, state.size, pager);
|
|
667
|
+
}
|
|
668
|
+
catch {
|
|
669
|
+
if (current())
|
|
670
|
+
this.pageFailed.set(true);
|
|
671
|
+
}
|
|
672
|
+
finally {
|
|
673
|
+
if (current())
|
|
674
|
+
this.pageLoading.set(false);
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
/** Card de ranking pediu outra página (mesma consulta da última carga). */
|
|
678
|
+
async loadTop(kind, offset) {
|
|
679
|
+
const base = this.base();
|
|
680
|
+
const query = this.query;
|
|
681
|
+
if (!base || !query)
|
|
682
|
+
return;
|
|
683
|
+
const seq = ++this.topSeq[kind];
|
|
684
|
+
const state = this.tops[kind];
|
|
685
|
+
state.update((s) => ({ ...s, loading: true, failed: false }));
|
|
686
|
+
try {
|
|
687
|
+
const page = await this.service.tops(base, kind, query, { offset, limit: AUDIT_TOP_PAGE_SIZE });
|
|
688
|
+
if (seq !== this.topSeq[kind])
|
|
689
|
+
return;
|
|
690
|
+
const items = page.items ?? [];
|
|
691
|
+
state.update((s) => ({
|
|
692
|
+
items, total: page.total ?? items.length, offset, loading: false, failed: false,
|
|
693
|
+
max: offset === 0 ? (items[0]?.total ?? 0) : s.max,
|
|
694
|
+
}));
|
|
695
|
+
}
|
|
696
|
+
catch {
|
|
697
|
+
if (seq === this.topSeq[kind])
|
|
698
|
+
state.update((s) => ({ ...s, loading: false, failed: true }));
|
|
699
|
+
}
|
|
700
|
+
}
|
|
701
|
+
fetcher(base, query) {
|
|
702
|
+
return query.unit === 'events'
|
|
703
|
+
? (cursor, limit) => this.service.events(base, query, { limit, cursor })
|
|
704
|
+
: (cursor, limit) => this.service.actions(base, query, { limit, cursor });
|
|
705
|
+
}
|
|
706
|
+
showPage(result, size, pager) {
|
|
707
|
+
this.events.set(result.items);
|
|
708
|
+
this.loaded.set(result);
|
|
709
|
+
this.listEnd.set(pager.end);
|
|
710
|
+
// Pedido além do fim (o total encolheu): o pager devolveu a última página que existe.
|
|
711
|
+
const page = Math.floor(result.offset / size) + 1;
|
|
712
|
+
if (page !== this.pageState().page || size !== this.pageState().size)
|
|
713
|
+
this.pageState.set({ page, size });
|
|
714
|
+
}
|
|
715
|
+
clearData() {
|
|
716
|
+
this.stats.set(null);
|
|
717
|
+
this.events.set([]);
|
|
718
|
+
this.loaded.set(null);
|
|
719
|
+
this.listEnd.set(null);
|
|
720
|
+
for (const kind of AUDIT_TOP_KINDS) {
|
|
721
|
+
this.topSeq[kind]++;
|
|
722
|
+
this.tops[kind].set(EMPTY_TOP);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
/** Clique numa linha da tabela: por ação abre o raiz e já carrega os spans; por evento, só o evento. */
|
|
726
|
+
openRow(row) {
|
|
727
|
+
if (this.byActions())
|
|
728
|
+
void this.openAction(row);
|
|
729
|
+
else
|
|
730
|
+
void this.openEvent(row);
|
|
731
|
+
}
|
|
732
|
+
/** Abre uma ação: o detalhe do evento raiz + a linha do tempo dos spans (trace) carregada junto. */
|
|
733
|
+
async openAction(action) {
|
|
734
|
+
const opening = this.openEvent(action);
|
|
735
|
+
this.selectedAction.set(action);
|
|
736
|
+
if (action.trace_id)
|
|
737
|
+
void this.showTrace();
|
|
738
|
+
await opening;
|
|
739
|
+
}
|
|
740
|
+
/** Abre o detalhe com o resumo da linha e completa com o evento inteiro. Da cadeia, mantém a cadeia. */
|
|
741
|
+
async openEvent(event, keepTrace = false) {
|
|
742
|
+
const base = this.base();
|
|
743
|
+
if (!base)
|
|
744
|
+
return;
|
|
745
|
+
const seq = ++this.detailSeq;
|
|
746
|
+
const sameTrace = keepTrace && !!event.trace_id && this.trace() !== null && this.selected()?.trace_id === event.trace_id;
|
|
747
|
+
if (!sameTrace)
|
|
748
|
+
this.selectedAction.set(null);
|
|
749
|
+
this.selected.set(event);
|
|
750
|
+
this.detailOpen.set(true);
|
|
751
|
+
this.detailFailed.set(false);
|
|
752
|
+
if (!sameTrace) {
|
|
753
|
+
this.trace.set(null);
|
|
754
|
+
this.traceFailed.set(false);
|
|
755
|
+
}
|
|
756
|
+
this.detailLoading.set(true);
|
|
757
|
+
try {
|
|
758
|
+
const detail = await this.service.event(base, event.event_id, event.occurred_at);
|
|
759
|
+
if (seq === this.detailSeq)
|
|
760
|
+
this.selected.set({ ...event, ...detail });
|
|
761
|
+
}
|
|
762
|
+
catch {
|
|
763
|
+
if (seq === this.detailSeq)
|
|
764
|
+
this.detailFailed.set(true);
|
|
765
|
+
}
|
|
766
|
+
finally {
|
|
767
|
+
if (seq === this.detailSeq)
|
|
768
|
+
this.detailLoading.set(false);
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
async showTrace() {
|
|
772
|
+
const base = this.base();
|
|
773
|
+
const origin = this.selected();
|
|
774
|
+
const traceId = origin?.trace_id;
|
|
775
|
+
if (!base || !traceId)
|
|
776
|
+
return;
|
|
777
|
+
const seq = this.detailSeq;
|
|
778
|
+
this.traceLoading.set(true);
|
|
779
|
+
this.traceFailed.set(false);
|
|
780
|
+
try {
|
|
781
|
+
const trace = await this.service.trace(base, traceId, origin.occurred_at);
|
|
782
|
+
if (seq === this.detailSeq)
|
|
783
|
+
this.trace.set({ items: trace.items ?? [], hidden_count: trace.hidden_count ?? 0 });
|
|
784
|
+
}
|
|
785
|
+
catch {
|
|
786
|
+
if (seq === this.detailSeq)
|
|
787
|
+
this.traceFailed.set(true);
|
|
788
|
+
}
|
|
789
|
+
finally {
|
|
790
|
+
if (seq === this.detailSeq)
|
|
791
|
+
this.traceLoading.set(false);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
/** "Filtrar a tabela por este trace" (do detalhe): fecha o detalhe e aplica o filtro. */
|
|
795
|
+
filterByTrace(traceId) {
|
|
796
|
+
if (!traceId)
|
|
797
|
+
return;
|
|
798
|
+
this.closeDetail();
|
|
799
|
+
this.filterBy('trace_id', traceId);
|
|
800
|
+
}
|
|
801
|
+
onDetailOpenChange(open) {
|
|
802
|
+
if (!open)
|
|
803
|
+
this.closeDetail();
|
|
804
|
+
}
|
|
805
|
+
closeDetail() {
|
|
806
|
+
this.detailSeq++;
|
|
807
|
+
this.detailOpen.set(false);
|
|
808
|
+
this.detailLoading.set(false);
|
|
809
|
+
this.selectedAction.set(null);
|
|
810
|
+
this.trace.set(null);
|
|
811
|
+
this.traceLoading.set(false);
|
|
812
|
+
this.traceFailed.set(false);
|
|
813
|
+
}
|
|
814
|
+
async loadApps(url) {
|
|
815
|
+
if (!url) {
|
|
816
|
+
this.apps.set([]);
|
|
817
|
+
return;
|
|
818
|
+
}
|
|
819
|
+
try {
|
|
820
|
+
const res = await this.service.apps(url);
|
|
821
|
+
if (url !== this.appsUrl())
|
|
822
|
+
return;
|
|
823
|
+
const apps = (res.apps ?? []).map((a) => ({ id: a.id, name: a.name }));
|
|
824
|
+
this.apps.set(apps.sort((a, b) => a.name.localeCompare(b.name, this.locale)));
|
|
825
|
+
}
|
|
826
|
+
catch {
|
|
827
|
+
// Sem a lista (ex.: sem permissão de listar apps), o filtro de aplicação some; o resto não depende dela.
|
|
828
|
+
if (url === this.appsUrl())
|
|
829
|
+
this.apps.set([]);
|
|
830
|
+
}
|
|
831
|
+
}
|
|
832
|
+
setError(err) {
|
|
833
|
+
const { status, code, detail } = auditErrorCode(err);
|
|
834
|
+
if (code === 'range_too_large')
|
|
835
|
+
this.errorKind.set('range');
|
|
836
|
+
else if (status === 403)
|
|
837
|
+
this.errorKind.set('forbidden');
|
|
838
|
+
else if (status === 400 && (code === 'invalid_filter' || code === 'invalid_cursor')) {
|
|
839
|
+
this.errorKind.set('invalid');
|
|
840
|
+
this.errorDetail.set(detail);
|
|
841
|
+
}
|
|
842
|
+
else
|
|
843
|
+
this.errorKind.set('generic');
|
|
844
|
+
}
|
|
845
|
+
// ---- formatação -------------------------------------------------------------------------------
|
|
846
|
+
number(n) {
|
|
847
|
+
return this.f.number(n);
|
|
848
|
+
}
|
|
849
|
+
plural(message, count) {
|
|
850
|
+
return this.f.plural(message, count);
|
|
851
|
+
}
|
|
852
|
+
share(part) {
|
|
853
|
+
return this.f.share(part, this.stats()?.total ?? 0);
|
|
854
|
+
}
|
|
855
|
+
dateTime(iso) {
|
|
856
|
+
return this.f.dateTime(iso);
|
|
857
|
+
}
|
|
858
|
+
time(iso) {
|
|
859
|
+
const d = parseAuditDate(iso);
|
|
860
|
+
return d ? new Intl.DateTimeFormat(this.locale, { timeStyle: 'medium' }).format(d) : iso;
|
|
861
|
+
}
|
|
862
|
+
clock(d) {
|
|
863
|
+
return this.f.clock(d);
|
|
864
|
+
}
|
|
865
|
+
duration(ms) {
|
|
866
|
+
return this.f.duration(ms);
|
|
867
|
+
}
|
|
868
|
+
userName(e) {
|
|
869
|
+
return this.f.userName(e);
|
|
870
|
+
}
|
|
871
|
+
/** Rótulo acessível de uma linha da linha do tempo dos spans. */
|
|
872
|
+
spanAria(row) {
|
|
873
|
+
return this.f.spanAria(row);
|
|
874
|
+
}
|
|
875
|
+
/** Dica da célula "Spans": aplicações envolvidas (+ spans de fora do escopo). */
|
|
876
|
+
spansHint(a) {
|
|
877
|
+
return this.f.spansHint(a);
|
|
878
|
+
}
|
|
879
|
+
/** Nome da operação = o identificador (a descrição é complemento: dica e detalhe). */
|
|
880
|
+
operationName(e) {
|
|
881
|
+
return this.f.operationName(e);
|
|
882
|
+
}
|
|
883
|
+
methodLabel(method) {
|
|
884
|
+
return this.f.methodLabel(method);
|
|
885
|
+
}
|
|
886
|
+
levelLabel(level) {
|
|
887
|
+
return this.f.levelLabel(level);
|
|
888
|
+
}
|
|
889
|
+
permissionLabel(result) {
|
|
890
|
+
return this.f.permissionLabel(result);
|
|
891
|
+
}
|
|
892
|
+
actorLabel(actor) {
|
|
893
|
+
return this.f.actorLabel(actor);
|
|
894
|
+
}
|
|
895
|
+
outcomeLabel(outcome) {
|
|
896
|
+
return this.f.outcomeLabel(outcome);
|
|
897
|
+
}
|
|
898
|
+
outcomeColor(outcome) {
|
|
899
|
+
return this.f.outcomeColor(outcome);
|
|
900
|
+
}
|
|
901
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SpineAuditComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
902
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: SpineAuditComponent, isStandalone: true, selector: "spine-audit", inputs: { scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: true, transformFunction: null }, clientId: { classPropertyName: "clientId", publicName: "clientId", isSignal: true, isRequired: false, transformFunction: null }, adminApi: { classPropertyName: "adminApi", publicName: "adminApi", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"audit\" [attr.aria-busy]=\"loading() || pageLoading()\">\n <!-- Per\u00EDodo (escolha r\u00E1pida; as datas da faixa de filtros vencem) + atualizar. -->\n <div class=\"audit__toolbar\">\n <!-- Unidade: por a\u00E7\u00E3o (uma linha por trace, padr\u00E3o) ou por evento (cada registro). -->\n <hm-segmented-control\n [label]=\"text.unitLabel\"\n [options]=\"unitOptions\"\n [value]=\"unit()\"\n (valueChange)=\"setUnit($event)\"\n size=\"small\"\n emphasis=\"action\"\n />\n <hm-segmented-control\n [label]=\"text.period\"\n [options]=\"periodOptions\"\n [value]=\"period()\"\n (valueChange)=\"setPeriod($event)\"\n size=\"small\"\n emphasis=\"action\"\n />\n @if (customDates()) {\n <span class=\"muted audit__period-note\">{{ text.periodFromFilters }}</span>\n }\n <span class=\"audit__toolbar-end\">\n @if (lastUpdated(); as at) {\n <span class=\"muted audit__updated\" aria-live=\"polite\">{{ fmt(text.updatedAt, { time: clock(at) }) }}</span>\n }\n <hm-switch [label]=\"text.autoRefresh\" [value]=\"autoRefresh()\" (valueChange)=\"autoRefresh.set($event)\" />\n <hm-button emphasis=\"medium\" size=\"small\" icon=\"refresh\" [loading]=\"loading()\" (clicked)=\"reload()\">{{ text.refresh }}</hm-button>\n </span>\n </div>\n\n <hm-filter-bar\n class=\"audit__filters\"\n [label]=\"text.filters\"\n [filters]=\"filterFields()\"\n [value]=\"filterValue()\"\n (valueChange)=\"setFilters($event)\"\n [savedFilters]=\"true\"\n [storageKey]=\"storageKey()\"\n />\n\n @if (errorKind()) {\n <hm-state-screen\n class=\"audit__state\"\n [situation]=\"errorSituation()\"\n [heading]=\"text.errorTitle\"\n [description]=\"errorText()\"\n [action]=\"errorKind() === 'generic' ? text.retry : (hasFilters() ? text.clearFilters : '')\"\n actionIcon=\"refresh\"\n (actionTriggered)=\"errorKind() === 'generic' ? reload() : clearFilters()\"\n />\n } @else if (empty()) {\n <hm-state-screen\n class=\"audit__state\"\n situation=\"empty\"\n [heading]=\"unitText().emptyTitle\"\n [description]=\"text.emptyText\"\n [action]=\"hasFilters() ? text.clearFilters : ''\"\n (actionTriggered)=\"clearFilters()\"\n />\n } @else {\n <!-- KPIs: falhas/negados s\u00E3o filtros (altern\u00E2ncia). -->\n <section class=\"audit__kpis\" [attr.aria-label]=\"text.kpis\">\n <hm-stat-card\n icon=\"list\"\n [label]=\"unitText().kpiTotal\"\n [value]=\"number(stats()?.total ?? 0)\"\n [description]=\"unitText().kpiTotalDescription\"\n [loading]=\"loading() && !stats()\"\n />\n <hm-stat-card\n icon=\"error-standard\"\n [label]=\"text.kpiFailures\"\n [value]=\"number(stats()?.by_outcome?.failure ?? 0)\"\n [intent]=\"(stats()?.by_outcome?.failure ?? 0) > 0 ? 'danger' : 'neutral'\"\n [description]=\"fmt(text.kpiFilterHint, { share: share(stats()?.by_outcome?.failure ?? 0) })\"\n [loading]=\"loading() && !stats()\"\n selectable\n [selected]=\"selectedOutcome() === 'failure'\"\n (selectedChange)=\"toggleOutcome('failure', $event)\"\n />\n <hm-stat-card\n icon=\"ban\"\n [label]=\"text.kpiDenied\"\n [value]=\"number(stats()?.by_outcome?.denied ?? 0)\"\n [intent]=\"(stats()?.by_outcome?.denied ?? 0) > 0 ? 'warning' : 'neutral'\"\n [description]=\"fmt(text.kpiFilterHint, { share: share(stats()?.by_outcome?.denied ?? 0) })\"\n [loading]=\"loading() && !stats()\"\n selectable\n [selected]=\"selectedOutcome() === 'denied'\"\n (selectedChange)=\"toggleOutcome('denied', $event)\"\n />\n </section>\n\n <!-- Linha do tempo: barras empilhadas em CSS (sucesso embaixo, falha, negado). Cada barra tem\n o resumo em texto (title + aria-label); o gr\u00E1fico n\u00E3o \u00E9 a \u00FAnica forma de ler o n\u00FAmero. -->\n <section class=\"card card-block audit__timeline\" aria-labelledby=\"audit-timeline-title\">\n <h3 class=\"audit__section-title\" id=\"audit-timeline-title\">{{ text.timeline }}</h3>\n @if (hasTimeline()) {\n <ol class=\"timeline\" [attr.aria-label]=\"fmt(unitText().timelineSummary, { from: timelineEdges()?.from ?? '', to: timelineEdges()?.to ?? '' })\">\n @for (bar of timelineBars(); track bar.key) {\n <li class=\"timeline__bar\" [attr.title]=\"bar.summary\" [attr.aria-label]=\"bar.summary\">\n <span class=\"timeline__seg timeline__seg--denied\" [style.height.%]=\"bar.denied\"></span>\n <span class=\"timeline__seg timeline__seg--fail\" [style.height.%]=\"bar.fail\"></span>\n <span class=\"timeline__seg timeline__seg--ok\" [style.height.%]=\"bar.ok\"></span>\n </li>\n }\n </ol>\n <div class=\"timeline__axis\" aria-hidden=\"true\">\n <span>{{ timelineEdges()?.from }}</span>\n <span>{{ timelineEdges()?.to }}</span>\n </div>\n <ul class=\"timeline__legend\">\n <li><span class=\"swatch swatch--ok\"></span>{{ text.outcomeSuccess }}</li>\n <li><span class=\"swatch swatch--fail\"></span>{{ text.outcomeFailure }}</li>\n <li><span class=\"swatch swatch--denied\"></span>{{ text.outcomeDenied }}</li>\n </ul>\n } @else if (loading()) {\n <hm-skeleton shape=\"card\" [label]=\"text.loading\" />\n } @else {\n <p class=\"muted\">{{ unitText().timelineEmpty }}</p>\n }\n </section>\n\n <!-- Rankings paginados no servidor (tops/:kind). Clicar num item vira filtro. -->\n <div class=\"audit__tops\" [class.audit__tops--three]=\"multiApp()\">\n @if (multiApp()) {\n <spine-audit-top-card\n class=\"audit__top audit__top--apps\"\n [heading]=\"text.topApps\"\n [rows]=\"topAppRows()\"\n [total]=\"tops.apps().total\"\n [offset]=\"tops.apps().offset\"\n [max]=\"tops.apps().max\"\n [pageSize]=\"topPageSize\"\n [loading]=\"tops.apps().loading\"\n [failed]=\"tops.apps().failed\"\n (offsetChange)=\"loadTop('apps', $event)\"\n (picked)=\"pickTop('apps', $event)\"\n />\n }\n <spine-audit-top-card\n class=\"audit__top audit__top--operations\"\n [heading]=\"text.topOperations\"\n [rows]=\"topOperationRows()\"\n [total]=\"tops.operations().total\"\n [offset]=\"tops.operations().offset\"\n [max]=\"tops.operations().max\"\n [pageSize]=\"topPageSize\"\n [loading]=\"tops.operations().loading\"\n [failed]=\"tops.operations().failed\"\n (offsetChange)=\"loadTop('operations', $event)\"\n (picked)=\"pickTop('operations', $event)\"\n />\n <spine-audit-top-card\n class=\"audit__top audit__top--users\"\n [heading]=\"text.topUsers\"\n [rows]=\"topUserRows()\"\n [total]=\"tops.users().total\"\n [offset]=\"tops.users().offset\"\n [max]=\"tops.users().max\"\n [pageSize]=\"topPageSize\"\n [loading]=\"tops.users().loading\"\n [failed]=\"tops.users().failed\"\n (offsetChange)=\"loadTop('users', $event)\"\n (picked)=\"pickTop('users', $event)\"\n />\n </div>\n\n <!-- Tabela: pagina\u00E7\u00E3o no servidor. A grade n\u00E3o corta nada ([paginated]=false): mostra a p\u00E1gina que veio\n (limit = itens por p\u00E1gina) e o rodap\u00E9 usa o total do resumo (mesma consulta). Esqueleto s\u00F3 na 1\u00AA\n carga; nas seguintes as linhas ficam e o indicador aparece por cima (sem piscar). -->\n <div class=\"audit__grid\" [class.audit__grid--busy]=\"gridBusy()\" [attr.aria-busy]=\"gridBusy()\">\n @if (gridBusy()) {\n <hm-progress class=\"audit__grid-progress\" indeterminate [label]=\"text.updating\" labelHidden />\n }\n <hm-data-grid\n [caption]=\"unitText().caption\"\n [columns]=\"columns()\"\n [rows]=\"events()\"\n [rowId]=\"rowId\"\n [loading]=\"gridSkeleton()\"\n [filterable]=\"false\"\n [paginated]=\"false\"\n [totalItems]=\"total()\"\n [pageState]=\"pageState()\"\n (pageStateChange)=\"changePage($event)\"\n [pageSizes]=\"pageSizes\"\n [itemsLabel]=\"unitText().pageItems\"\n [pageSizeLabel]=\"text.pageSize\"\n remoteSort\n rowClickable\n (rowClicked)=\"openRow($event)\"\n >\n <ng-template hmCell=\"operation\" let-item>\n <span class=\"audit__op\" [attr.title]=\"item.operation_label || null\">{{ operationName(item) }}</span>\n </ng-template>\n <ng-template hmCell=\"spans\" let-item>\n <span class=\"audit__spans\" [attr.title]=\"spansHint(item) || null\">\n {{ number(item.span_count ?? 1) }}\n @if (item.orphan) {\n <hm-tag class=\"audit__orphan\" [name]=\"text.orphanTag\" color=\"neutral\" />\n }\n </span>\n </ng-template>\n <ng-template hmCell=\"outcome\" let-item>\n <hm-tag [name]=\"outcomeLabel(item.outcome)\" [color]=\"outcomeColor(item.outcome)\" />\n </ng-template>\n </hm-data-grid>\n </div>\n\n @if (pageFailed()) {\n <hm-alert class=\"audit__page-error\" variant=\"error\" size=\"small\">{{ unitText().pageError }}</hm-alert>\n }\n }\n</div>\n\n<!-- Detalhe do evento + a cadeia (trace). -->\n<hm-drawer [open]=\"detailOpen()\" (openChange)=\"onDetailOpenChange($event)\" [heading]=\"showingAction() ? text.actionDetailHeading : text.detailHeading\">\n @if (selected(); as ev) {\n <div class=\"detail\">\n <div class=\"detail__head\">\n <strong class=\"detail__title\">{{ operationName(ev) }}</strong>\n <hm-tag [name]=\"outcomeLabel(headOutcome())\" [color]=\"outcomeColor(headOutcome())\" />\n </div>\n @if (showingAction() && selectedAction()?.orphan) {\n <hm-alert class=\"detail__orphan\" variant=\"info\" size=\"small\">{{ text.orphanNote }}</hm-alert>\n }\n @if (ev.operation_label && ev.operation_identifier) {\n <p class=\"muted detail__description\">{{ ev.operation_label }}</p>\n }\n\n @if (detailLoading()) {\n <p class=\"muted\" role=\"status\">{{ text.detailLoading }}</p>\n }\n @if (detailFailed()) {\n <hm-alert variant=\"warning\" size=\"small\">{{ text.detailError }}</hm-alert>\n }\n\n <dl class=\"detail__list\">\n @for (field of detailFields(); track field.label) {\n <div class=\"detail__row\">\n <dt>{{ field.label }}</dt>\n <dd>\n @if (field.code) { <code>{{ field.value }}</code> } @else { {{ field.value }} }\n </dd>\n </div>\n }\n </dl>\n\n @if (detailsJson()) {\n <h3 class=\"audit__section-title\">{{ text.fieldDetails }}</h3>\n <pre class=\"detail__json\">{{ detailsJson() }}</pre>\n }\n\n <!-- Por a\u00E7\u00E3o, os spans sobem para logo abaixo do cabe\u00E7alho (order no CSS); por evento, ficam no fim. -->\n @if (ev.trace_id) {\n <div class=\"detail__chain\" [class.detail__chain--first]=\"showingAction()\">\n <div class=\"detail__actions\">\n @if (!trace() && !traceLoading()) {\n <hm-button emphasis=\"medium\" size=\"small\" icon=\"tree-view\" (clicked)=\"showTrace()\">{{ text.viewTrace }}</hm-button>\n }\n <hm-button emphasis=\"minimal\" size=\"small\" icon=\"filter\" (clicked)=\"filterByTrace(ev.trace_id)\">{{ text.filterByTrace }}</hm-button>\n </div>\n @if (traceLoading()) {\n <p class=\"muted\" role=\"status\">{{ text.traceLoading }}</p>\n }\n @if (traceFailed()) {\n <hm-alert variant=\"error\" size=\"small\">{{ text.traceError }}</hm-alert>\n }\n @if (trace(); as tr) {\n <section class=\"trace\" aria-labelledby=\"audit-trace-title\">\n <h3 class=\"audit__section-title\" id=\"audit-trace-title\">{{ showingAction() ? text.spansHeading : text.traceHeading }}</h3>\n @if (tr.hidden_count) {\n <hm-alert class=\"trace__hidden\" variant=\"info\" size=\"small\">{{ plural(text.traceHidden, tr.hidden_count) }}</hm-alert>\n }\n @if (!tr.items.length) {\n <p class=\"muted\">{{ text.traceEmpty }}</p>\n } @else if (spanTimeline(); as tl) {\n <p class=\"muted trace__summary\">{{ fmt(text.spansSummary, { count: number(tl.rows.length), duration: duration(tl.totalMs) }) }}</p>\n <!-- Linha do tempo: cada span \u00E9 uma linha (recuo = profundidade pela cadeia parent_span_id) com a\n barra posicionada no tempo, proporcional \u00E0 dura\u00E7\u00E3o. O texto da linha (e o aria-label) traz\n tudo o que a barra mostra. -->\n <ol class=\"spans\">\n @for (row of tl.rows; track row.event.event_id) {\n <li class=\"spans__item\" [class.spans__item--current]=\"row.event.event_id === ev.event_id\">\n <button type=\"button\" class=\"spans__link\"\n [attr.aria-current]=\"row.event.event_id === ev.event_id ? 'true' : null\"\n [attr.aria-label]=\"spanAria(row)\"\n (click)=\"openEvent(row.event, true)\">\n <span class=\"spans__head\" [style.padding-inline-start.rem]=\"row.depth * 1\">\n <span class=\"spans__app\">{{ row.event.app_name ?? '' }}</span>\n <code class=\"spans__op\">{{ operationName(row.event) }}</code>\n </span>\n <hm-tag class=\"spans__tag\" [name]=\"outcomeLabel(row.event.outcome)\" [color]=\"outcomeColor(row.event.outcome)\" />\n <span class=\"spans__dur\">{{ duration(row.event.duration_ms) }}</span>\n <span class=\"spans__track\" aria-hidden=\"true\">\n <span class=\"spans__bar spans__bar--{{ row.event.outcome }}\" [style.left.%]=\"row.left\" [style.width.%]=\"row.width\"></span>\n </span>\n </button>\n </li>\n }\n </ol>\n }\n </section>\n }\n </div>\n }\n </div>\n }\n</hm-drawer>\n", dependencies: [{ kind: "component", type: AlertComponent, selector: "hm-alert", inputs: ["variant", "appearance", "heading", "closable", "size", "showIcon", "link", "linkLabel", "linkTarget", "dismissKey", "duration"], outputs: ["closed"] }, { 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: "directive", type: DataGridCellDirective, selector: "ng-template[hmCell]", inputs: ["hmCell"] }, { kind: "component", type: DataGridComponent, selector: "hm-data-grid", inputs: ["columns", "rows", "rowId", "caption", "rowActions", "loading", "error", "emptyMessage", "noResultsMessage", "filterable", "paginated", "pageState", "pagination", "totalItems", "sort", "selectable", "selectionMode", "selection", "rowSelectable", "rowSelectableReason", "rowDetailDisabled", "rowDetailHidden", "virtual", "rowHeight", "pinnedColumns", "columnState", "pageSizes", "fillHeight", "maxHeight", "bordered", "rowState", "rowClickable", "remoteSearch", "remoteSort", "itemsLabel", "pageSizeLabel", "exportable", "exportFileName", "groupBy", "aggregates", "aggregateFormatter", "persistKey", "persistStorage", "advancedFilter", "filterQuery", "columnManager", "columnOrder", "striped", "columnGroups", "editMode", "editBatch", "texts", "treeChildren", "treeHasChildren", "treeExpanded", "treePagination", "treeChildPageSize", "searchTerm"], outputs: ["pageStateChange", "sortChange", "selectionChange", "pinnedColumnsChange", "columnStateChange", "actionTriggered", "detailToggled", "rowClicked", "clearFiltersRequested", "filteredChange", "searchTermChanged", "groupByChange", "filterQueryChange", "columnOrderChange", "editSaved", "editStarted", "editCanceled", "treeExpandedChange", "treeToggled", "searchTermChange", "detailPaneToggled"] }, { kind: "component", type: DrawerComponent, selector: "hm-drawer", inputs: ["open", "heading", "size", "position", "pinned", "scope", "closeLabel", "closable", "closeOnBackdrop", "beforeClose"], outputs: ["openChange", "closed"] }, { kind: "component", type: FilterBarComponent, selector: "hm-filter-bar", inputs: ["filters", "value", "label", "savedFilters", "storageKey", "storage", "applyDefault"], outputs: ["valueChange", "savedChange", "savedApplied"] }, { kind: "component", type: ProgressComponent, selector: "hm-progress", inputs: ["value", "max", "label", "labelHidden", "showValue", "indeterminate", "intent", "size", "hint", "shape"] }, { kind: "component", type: SegmentedControlComponent, selector: "hm-segmented-control", inputs: ["options", "value", "label", "size", "emphasis"], outputs: ["valueChange"] }, { kind: "component", type: SkeletonComponent, selector: "hm-skeleton", inputs: ["shape", "count", "label"] }, { kind: "component", type: SpineAuditTopCardComponent, selector: "spine-audit-top-card", inputs: ["heading", "rows", "total", "offset", "pageSize", "max", "loading", "failed"], outputs: ["picked", "offsetChange"] }, { kind: "component", type: StatCardComponent, selector: "hm-stat-card", inputs: ["icon", "label", "value", "intent", "fill", "description", "details", "trend", "hint", "size", "selectable", "selected", "loading"], outputs: ["selectedChange"] }, { kind: "component", type: StateScreenComponent, selector: "hm-state-screen", inputs: ["heading", "description", "situation", "action", "actionIcon"], outputs: ["actionTriggered"] }, { kind: "component", type: SwitchComponent, selector: "hm-switch", inputs: ["value", "label", "hint", "labelPosition", "loading"], outputs: ["valueChange"] }, { kind: "component", type: TagComponent, selector: "hm-tag", inputs: ["name", "color", "compact"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
903
|
+
}
|
|
904
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SpineAuditComponent, decorators: [{
|
|
905
|
+
type: Component,
|
|
906
|
+
args: [{ selector: 'spine-audit', imports: [
|
|
907
|
+
AlertComponent, ButtonComponent, DataGridCellDirective, DataGridComponent, DrawerComponent, FilterBarComponent,
|
|
908
|
+
ProgressComponent, SegmentedControlComponent, SkeletonComponent, SpineAuditTopCardComponent, StatCardComponent, StateScreenComponent,
|
|
909
|
+
SwitchComponent, TagComponent,
|
|
910
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"audit\" [attr.aria-busy]=\"loading() || pageLoading()\">\n <!-- Per\u00EDodo (escolha r\u00E1pida; as datas da faixa de filtros vencem) + atualizar. -->\n <div class=\"audit__toolbar\">\n <!-- Unidade: por a\u00E7\u00E3o (uma linha por trace, padr\u00E3o) ou por evento (cada registro). -->\n <hm-segmented-control\n [label]=\"text.unitLabel\"\n [options]=\"unitOptions\"\n [value]=\"unit()\"\n (valueChange)=\"setUnit($event)\"\n size=\"small\"\n emphasis=\"action\"\n />\n <hm-segmented-control\n [label]=\"text.period\"\n [options]=\"periodOptions\"\n [value]=\"period()\"\n (valueChange)=\"setPeriod($event)\"\n size=\"small\"\n emphasis=\"action\"\n />\n @if (customDates()) {\n <span class=\"muted audit__period-note\">{{ text.periodFromFilters }}</span>\n }\n <span class=\"audit__toolbar-end\">\n @if (lastUpdated(); as at) {\n <span class=\"muted audit__updated\" aria-live=\"polite\">{{ fmt(text.updatedAt, { time: clock(at) }) }}</span>\n }\n <hm-switch [label]=\"text.autoRefresh\" [value]=\"autoRefresh()\" (valueChange)=\"autoRefresh.set($event)\" />\n <hm-button emphasis=\"medium\" size=\"small\" icon=\"refresh\" [loading]=\"loading()\" (clicked)=\"reload()\">{{ text.refresh }}</hm-button>\n </span>\n </div>\n\n <hm-filter-bar\n class=\"audit__filters\"\n [label]=\"text.filters\"\n [filters]=\"filterFields()\"\n [value]=\"filterValue()\"\n (valueChange)=\"setFilters($event)\"\n [savedFilters]=\"true\"\n [storageKey]=\"storageKey()\"\n />\n\n @if (errorKind()) {\n <hm-state-screen\n class=\"audit__state\"\n [situation]=\"errorSituation()\"\n [heading]=\"text.errorTitle\"\n [description]=\"errorText()\"\n [action]=\"errorKind() === 'generic' ? text.retry : (hasFilters() ? text.clearFilters : '')\"\n actionIcon=\"refresh\"\n (actionTriggered)=\"errorKind() === 'generic' ? reload() : clearFilters()\"\n />\n } @else if (empty()) {\n <hm-state-screen\n class=\"audit__state\"\n situation=\"empty\"\n [heading]=\"unitText().emptyTitle\"\n [description]=\"text.emptyText\"\n [action]=\"hasFilters() ? text.clearFilters : ''\"\n (actionTriggered)=\"clearFilters()\"\n />\n } @else {\n <!-- KPIs: falhas/negados s\u00E3o filtros (altern\u00E2ncia). -->\n <section class=\"audit__kpis\" [attr.aria-label]=\"text.kpis\">\n <hm-stat-card\n icon=\"list\"\n [label]=\"unitText().kpiTotal\"\n [value]=\"number(stats()?.total ?? 0)\"\n [description]=\"unitText().kpiTotalDescription\"\n [loading]=\"loading() && !stats()\"\n />\n <hm-stat-card\n icon=\"error-standard\"\n [label]=\"text.kpiFailures\"\n [value]=\"number(stats()?.by_outcome?.failure ?? 0)\"\n [intent]=\"(stats()?.by_outcome?.failure ?? 0) > 0 ? 'danger' : 'neutral'\"\n [description]=\"fmt(text.kpiFilterHint, { share: share(stats()?.by_outcome?.failure ?? 0) })\"\n [loading]=\"loading() && !stats()\"\n selectable\n [selected]=\"selectedOutcome() === 'failure'\"\n (selectedChange)=\"toggleOutcome('failure', $event)\"\n />\n <hm-stat-card\n icon=\"ban\"\n [label]=\"text.kpiDenied\"\n [value]=\"number(stats()?.by_outcome?.denied ?? 0)\"\n [intent]=\"(stats()?.by_outcome?.denied ?? 0) > 0 ? 'warning' : 'neutral'\"\n [description]=\"fmt(text.kpiFilterHint, { share: share(stats()?.by_outcome?.denied ?? 0) })\"\n [loading]=\"loading() && !stats()\"\n selectable\n [selected]=\"selectedOutcome() === 'denied'\"\n (selectedChange)=\"toggleOutcome('denied', $event)\"\n />\n </section>\n\n <!-- Linha do tempo: barras empilhadas em CSS (sucesso embaixo, falha, negado). Cada barra tem\n o resumo em texto (title + aria-label); o gr\u00E1fico n\u00E3o \u00E9 a \u00FAnica forma de ler o n\u00FAmero. -->\n <section class=\"card card-block audit__timeline\" aria-labelledby=\"audit-timeline-title\">\n <h3 class=\"audit__section-title\" id=\"audit-timeline-title\">{{ text.timeline }}</h3>\n @if (hasTimeline()) {\n <ol class=\"timeline\" [attr.aria-label]=\"fmt(unitText().timelineSummary, { from: timelineEdges()?.from ?? '', to: timelineEdges()?.to ?? '' })\">\n @for (bar of timelineBars(); track bar.key) {\n <li class=\"timeline__bar\" [attr.title]=\"bar.summary\" [attr.aria-label]=\"bar.summary\">\n <span class=\"timeline__seg timeline__seg--denied\" [style.height.%]=\"bar.denied\"></span>\n <span class=\"timeline__seg timeline__seg--fail\" [style.height.%]=\"bar.fail\"></span>\n <span class=\"timeline__seg timeline__seg--ok\" [style.height.%]=\"bar.ok\"></span>\n </li>\n }\n </ol>\n <div class=\"timeline__axis\" aria-hidden=\"true\">\n <span>{{ timelineEdges()?.from }}</span>\n <span>{{ timelineEdges()?.to }}</span>\n </div>\n <ul class=\"timeline__legend\">\n <li><span class=\"swatch swatch--ok\"></span>{{ text.outcomeSuccess }}</li>\n <li><span class=\"swatch swatch--fail\"></span>{{ text.outcomeFailure }}</li>\n <li><span class=\"swatch swatch--denied\"></span>{{ text.outcomeDenied }}</li>\n </ul>\n } @else if (loading()) {\n <hm-skeleton shape=\"card\" [label]=\"text.loading\" />\n } @else {\n <p class=\"muted\">{{ unitText().timelineEmpty }}</p>\n }\n </section>\n\n <!-- Rankings paginados no servidor (tops/:kind). Clicar num item vira filtro. -->\n <div class=\"audit__tops\" [class.audit__tops--three]=\"multiApp()\">\n @if (multiApp()) {\n <spine-audit-top-card\n class=\"audit__top audit__top--apps\"\n [heading]=\"text.topApps\"\n [rows]=\"topAppRows()\"\n [total]=\"tops.apps().total\"\n [offset]=\"tops.apps().offset\"\n [max]=\"tops.apps().max\"\n [pageSize]=\"topPageSize\"\n [loading]=\"tops.apps().loading\"\n [failed]=\"tops.apps().failed\"\n (offsetChange)=\"loadTop('apps', $event)\"\n (picked)=\"pickTop('apps', $event)\"\n />\n }\n <spine-audit-top-card\n class=\"audit__top audit__top--operations\"\n [heading]=\"text.topOperations\"\n [rows]=\"topOperationRows()\"\n [total]=\"tops.operations().total\"\n [offset]=\"tops.operations().offset\"\n [max]=\"tops.operations().max\"\n [pageSize]=\"topPageSize\"\n [loading]=\"tops.operations().loading\"\n [failed]=\"tops.operations().failed\"\n (offsetChange)=\"loadTop('operations', $event)\"\n (picked)=\"pickTop('operations', $event)\"\n />\n <spine-audit-top-card\n class=\"audit__top audit__top--users\"\n [heading]=\"text.topUsers\"\n [rows]=\"topUserRows()\"\n [total]=\"tops.users().total\"\n [offset]=\"tops.users().offset\"\n [max]=\"tops.users().max\"\n [pageSize]=\"topPageSize\"\n [loading]=\"tops.users().loading\"\n [failed]=\"tops.users().failed\"\n (offsetChange)=\"loadTop('users', $event)\"\n (picked)=\"pickTop('users', $event)\"\n />\n </div>\n\n <!-- Tabela: pagina\u00E7\u00E3o no servidor. A grade n\u00E3o corta nada ([paginated]=false): mostra a p\u00E1gina que veio\n (limit = itens por p\u00E1gina) e o rodap\u00E9 usa o total do resumo (mesma consulta). Esqueleto s\u00F3 na 1\u00AA\n carga; nas seguintes as linhas ficam e o indicador aparece por cima (sem piscar). -->\n <div class=\"audit__grid\" [class.audit__grid--busy]=\"gridBusy()\" [attr.aria-busy]=\"gridBusy()\">\n @if (gridBusy()) {\n <hm-progress class=\"audit__grid-progress\" indeterminate [label]=\"text.updating\" labelHidden />\n }\n <hm-data-grid\n [caption]=\"unitText().caption\"\n [columns]=\"columns()\"\n [rows]=\"events()\"\n [rowId]=\"rowId\"\n [loading]=\"gridSkeleton()\"\n [filterable]=\"false\"\n [paginated]=\"false\"\n [totalItems]=\"total()\"\n [pageState]=\"pageState()\"\n (pageStateChange)=\"changePage($event)\"\n [pageSizes]=\"pageSizes\"\n [itemsLabel]=\"unitText().pageItems\"\n [pageSizeLabel]=\"text.pageSize\"\n remoteSort\n rowClickable\n (rowClicked)=\"openRow($event)\"\n >\n <ng-template hmCell=\"operation\" let-item>\n <span class=\"audit__op\" [attr.title]=\"item.operation_label || null\">{{ operationName(item) }}</span>\n </ng-template>\n <ng-template hmCell=\"spans\" let-item>\n <span class=\"audit__spans\" [attr.title]=\"spansHint(item) || null\">\n {{ number(item.span_count ?? 1) }}\n @if (item.orphan) {\n <hm-tag class=\"audit__orphan\" [name]=\"text.orphanTag\" color=\"neutral\" />\n }\n </span>\n </ng-template>\n <ng-template hmCell=\"outcome\" let-item>\n <hm-tag [name]=\"outcomeLabel(item.outcome)\" [color]=\"outcomeColor(item.outcome)\" />\n </ng-template>\n </hm-data-grid>\n </div>\n\n @if (pageFailed()) {\n <hm-alert class=\"audit__page-error\" variant=\"error\" size=\"small\">{{ unitText().pageError }}</hm-alert>\n }\n }\n</div>\n\n<!-- Detalhe do evento + a cadeia (trace). -->\n<hm-drawer [open]=\"detailOpen()\" (openChange)=\"onDetailOpenChange($event)\" [heading]=\"showingAction() ? text.actionDetailHeading : text.detailHeading\">\n @if (selected(); as ev) {\n <div class=\"detail\">\n <div class=\"detail__head\">\n <strong class=\"detail__title\">{{ operationName(ev) }}</strong>\n <hm-tag [name]=\"outcomeLabel(headOutcome())\" [color]=\"outcomeColor(headOutcome())\" />\n </div>\n @if (showingAction() && selectedAction()?.orphan) {\n <hm-alert class=\"detail__orphan\" variant=\"info\" size=\"small\">{{ text.orphanNote }}</hm-alert>\n }\n @if (ev.operation_label && ev.operation_identifier) {\n <p class=\"muted detail__description\">{{ ev.operation_label }}</p>\n }\n\n @if (detailLoading()) {\n <p class=\"muted\" role=\"status\">{{ text.detailLoading }}</p>\n }\n @if (detailFailed()) {\n <hm-alert variant=\"warning\" size=\"small\">{{ text.detailError }}</hm-alert>\n }\n\n <dl class=\"detail__list\">\n @for (field of detailFields(); track field.label) {\n <div class=\"detail__row\">\n <dt>{{ field.label }}</dt>\n <dd>\n @if (field.code) { <code>{{ field.value }}</code> } @else { {{ field.value }} }\n </dd>\n </div>\n }\n </dl>\n\n @if (detailsJson()) {\n <h3 class=\"audit__section-title\">{{ text.fieldDetails }}</h3>\n <pre class=\"detail__json\">{{ detailsJson() }}</pre>\n }\n\n <!-- Por a\u00E7\u00E3o, os spans sobem para logo abaixo do cabe\u00E7alho (order no CSS); por evento, ficam no fim. -->\n @if (ev.trace_id) {\n <div class=\"detail__chain\" [class.detail__chain--first]=\"showingAction()\">\n <div class=\"detail__actions\">\n @if (!trace() && !traceLoading()) {\n <hm-button emphasis=\"medium\" size=\"small\" icon=\"tree-view\" (clicked)=\"showTrace()\">{{ text.viewTrace }}</hm-button>\n }\n <hm-button emphasis=\"minimal\" size=\"small\" icon=\"filter\" (clicked)=\"filterByTrace(ev.trace_id)\">{{ text.filterByTrace }}</hm-button>\n </div>\n @if (traceLoading()) {\n <p class=\"muted\" role=\"status\">{{ text.traceLoading }}</p>\n }\n @if (traceFailed()) {\n <hm-alert variant=\"error\" size=\"small\">{{ text.traceError }}</hm-alert>\n }\n @if (trace(); as tr) {\n <section class=\"trace\" aria-labelledby=\"audit-trace-title\">\n <h3 class=\"audit__section-title\" id=\"audit-trace-title\">{{ showingAction() ? text.spansHeading : text.traceHeading }}</h3>\n @if (tr.hidden_count) {\n <hm-alert class=\"trace__hidden\" variant=\"info\" size=\"small\">{{ plural(text.traceHidden, tr.hidden_count) }}</hm-alert>\n }\n @if (!tr.items.length) {\n <p class=\"muted\">{{ text.traceEmpty }}</p>\n } @else if (spanTimeline(); as tl) {\n <p class=\"muted trace__summary\">{{ fmt(text.spansSummary, { count: number(tl.rows.length), duration: duration(tl.totalMs) }) }}</p>\n <!-- Linha do tempo: cada span \u00E9 uma linha (recuo = profundidade pela cadeia parent_span_id) com a\n barra posicionada no tempo, proporcional \u00E0 dura\u00E7\u00E3o. O texto da linha (e o aria-label) traz\n tudo o que a barra mostra. -->\n <ol class=\"spans\">\n @for (row of tl.rows; track row.event.event_id) {\n <li class=\"spans__item\" [class.spans__item--current]=\"row.event.event_id === ev.event_id\">\n <button type=\"button\" class=\"spans__link\"\n [attr.aria-current]=\"row.event.event_id === ev.event_id ? 'true' : null\"\n [attr.aria-label]=\"spanAria(row)\"\n (click)=\"openEvent(row.event, true)\">\n <span class=\"spans__head\" [style.padding-inline-start.rem]=\"row.depth * 1\">\n <span class=\"spans__app\">{{ row.event.app_name ?? '' }}</span>\n <code class=\"spans__op\">{{ operationName(row.event) }}</code>\n </span>\n <hm-tag class=\"spans__tag\" [name]=\"outcomeLabel(row.event.outcome)\" [color]=\"outcomeColor(row.event.outcome)\" />\n <span class=\"spans__dur\">{{ duration(row.event.duration_ms) }}</span>\n <span class=\"spans__track\" aria-hidden=\"true\">\n <span class=\"spans__bar spans__bar--{{ row.event.outcome }}\" [style.left.%]=\"row.left\" [style.width.%]=\"row.width\"></span>\n </span>\n </button>\n </li>\n }\n </ol>\n }\n </section>\n }\n </div>\n }\n </div>\n }\n</hm-drawer>\n" }]
|
|
911
|
+
}], ctorParameters: () => [], propDecorators: { scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: true }] }], clientId: [{ type: i0.Input, args: [{ isSignal: true, alias: "clientId", required: false }] }], adminApi: [{ type: i0.Input, args: [{ isSignal: true, alias: "adminApi", required: false }] }] } });
|
|
912
|
+
|
|
913
|
+
/** Tentativas por página, de saída (o servidor aceita até 200). */
|
|
914
|
+
const LOGIN_ATTEMPTS_PAGE_SIZE = 50;
|
|
915
|
+
const LOGIN_ATTEMPTS_PAGE_SIZES = [20, 50, 100];
|
|
916
|
+
const RESULT_COLORS = {
|
|
917
|
+
success: 'success', failure: 'danger', cancelled: 'neutral',
|
|
918
|
+
};
|
|
919
|
+
/**
|
|
920
|
+
* A tela de Tentativas de login (`auth.auth_attempts` do argos): quando, quem (usuário ou o que foi digitado), de qual
|
|
921
|
+
* IP e navegador, por qual método, com que resultado e, nas falhas, o motivo. Só leitura, com filtros e paginação no
|
|
922
|
+
* servidor. A mesma no painel central e no auto-serviço; só muda o escopo:
|
|
923
|
+
* - `scope="client"` + `clientId`: `{adminApi}/auto-service/:clientId/attempts`, só as tentativas na aplicação do
|
|
924
|
+
* client (recorte feito no servidor) -- sem as colunas Realm e Client;
|
|
925
|
+
* - `scope="admin"`: `{adminApi}/admin/attempts`, todos os realms (operação `admin:attempts:list`); `realmId` filtra.
|
|
926
|
+
* `adminApi` vem do input ou do `SPINE_ADMIN_API` (que o `provideAutoService` já fornece).
|
|
927
|
+
*
|
|
928
|
+
* Importe só de código carregado sob demanda (rota lazy, `import()`), como a `SpineAuditComponent`.
|
|
929
|
+
*/
|
|
930
|
+
class SpineLoginAttemptsComponent {
|
|
931
|
+
/** `admin` = painel central (todos os realms); `client` = só as tentativas na aplicação do `clientId`. */
|
|
932
|
+
scope = input.required(...(ngDevMode ? [{ debugName: "scope" }] : /* istanbul ignore next */ []));
|
|
933
|
+
/** Obrigatório com `scope="client"`. */
|
|
934
|
+
clientId = input(null, ...(ngDevMode ? [{ debugName: "clientId" }] : /* istanbul ignore next */ []));
|
|
935
|
+
/** Só no escopo `admin`: filtra por realm (vazio = todos). */
|
|
936
|
+
realmId = input(null, ...(ngDevMode ? [{ debugName: "realmId" }] : /* istanbul ignore next */ []));
|
|
937
|
+
/** Base do argos admin-server; sem ele, vale o `SPINE_ADMIN_API`. */
|
|
938
|
+
adminApi = input(null, ...(ngDevMode ? [{ debugName: "adminApi" }] : /* istanbul ignore next */ []));
|
|
939
|
+
service = inject(SpineAuditService);
|
|
940
|
+
tokenApi = inject(SPINE_ADMIN_API, { optional: true });
|
|
941
|
+
messages = inject(SPINE_MESSAGES);
|
|
942
|
+
text = this.messages.loginAttempts;
|
|
943
|
+
dateFormat = new Intl.DateTimeFormat(this.messages.meta.locale, { dateStyle: 'short', timeStyle: 'medium' });
|
|
944
|
+
url = computed(() => loginAttemptsUrl(this.adminApi() || this.tokenApi, this.scope(), this.clientId()), ...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
|
|
945
|
+
attempts = signal([], ...(ngDevMode ? [{ debugName: "attempts" }] : /* istanbul ignore next */ []));
|
|
946
|
+
total = signal(0, ...(ngDevMode ? [{ debugName: "total" }] : /* istanbul ignore next */ []));
|
|
947
|
+
loading = signal(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
948
|
+
loadError = signal(null, ...(ngDevMode ? [{ debugName: "loadError" }] : /* istanbul ignore next */ []));
|
|
949
|
+
pageState = signal({ page: 1, size: LOGIN_ATTEMPTS_PAGE_SIZE }, ...(ngDevMode ? [{ debugName: "pageState" }] : /* istanbul ignore next */ []));
|
|
950
|
+
showAdvancedFilters = signal(false, ...(ngDevMode ? [{ debugName: "showAdvancedFilters" }] : /* istanbul ignore next */ []));
|
|
951
|
+
pageSizes = LOGIN_ATTEMPTS_PAGE_SIZES;
|
|
952
|
+
all = { value: '', label: this.text.all };
|
|
953
|
+
resultOptions = [
|
|
954
|
+
this.all, ...LOGIN_ATTEMPT_RESULTS.map((value) => ({ value, label: this.text.results[value] })),
|
|
955
|
+
];
|
|
956
|
+
methodOptions = [
|
|
957
|
+
this.all, ...LOGIN_ATTEMPT_METHODS.map((value) => ({ value, label: this.text.methods[value] })),
|
|
958
|
+
];
|
|
959
|
+
reasonOptions = [
|
|
960
|
+
this.all, ...LOGIN_ATTEMPT_REASONS.map((value) => ({ value, label: this.text.reasons[value] })),
|
|
961
|
+
];
|
|
962
|
+
periodPresets = ['today', 'last7Days', 'last30Days', 'thisMonth', 'lastMonth'];
|
|
963
|
+
filtersForm = new FormGroup({
|
|
964
|
+
period: new FormControl(defaultAttemptsPeriod(), { nonNullable: true }),
|
|
965
|
+
user: new FormControl('', { nonNullable: true }),
|
|
966
|
+
ip: new FormControl('', { nonNullable: true }),
|
|
967
|
+
result: new FormControl('', { nonNullable: true }),
|
|
968
|
+
method: new FormControl('', { nonNullable: true }),
|
|
969
|
+
reason: new FormControl('', { nonNullable: true }),
|
|
970
|
+
});
|
|
971
|
+
columns = computed(() => {
|
|
972
|
+
const t = this.text;
|
|
973
|
+
const cols = [
|
|
974
|
+
{ key: 'created_at', title: t.colDate, value: (a) => a.created_at, sortable: false },
|
|
975
|
+
{ key: 'result', title: t.colResult, value: (a) => this.resultLabel(a.result), sortable: false },
|
|
976
|
+
{ key: 'method', title: t.colMethod, value: (a) => this.methodLabel(a.method), sortable: false },
|
|
977
|
+
{ key: 'user', title: t.colUser, value: (a) => a.user_username ?? a.username ?? '', sortable: false },
|
|
978
|
+
{ key: 'reason', title: t.colReason, value: (a) => this.reasonLabel(a.reason), sortable: false },
|
|
979
|
+
{ key: 'ip', title: t.colIp, value: (a) => a.ip ?? '', sortable: false },
|
|
980
|
+
];
|
|
981
|
+
if (this.scope() === 'admin') {
|
|
982
|
+
cols.push({ key: 'realm', title: t.colRealm, value: (a) => a.realm_name ?? a.realm_id, sortable: false }, { key: 'client', title: t.colClient, value: (a) => a.client_name ?? '', sortable: false });
|
|
983
|
+
}
|
|
984
|
+
cols.push({ key: 'user_agent', title: t.colUserAgent, value: (a) => a.user_agent ?? '', sortable: false, hideable: true });
|
|
985
|
+
return cols;
|
|
986
|
+
}, ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
987
|
+
rowActions = [
|
|
988
|
+
{ id: 'filter-ip', icon: 'search', label: this.text.filterByIp },
|
|
989
|
+
{ id: 'filter-user', icon: 'users', label: this.text.filterByUser },
|
|
990
|
+
];
|
|
991
|
+
rowId = (a) => a.id;
|
|
992
|
+
/** Só a resposta da consulta mais recente vale (filtros mudam enquanto outra ainda está em andamento). */
|
|
993
|
+
requestSeq = 0;
|
|
994
|
+
constructor() {
|
|
995
|
+
const { user, ip, period, result, method, reason } = this.filtersForm.controls;
|
|
996
|
+
const destroyRef = inject(DestroyRef);
|
|
997
|
+
merge(merge(user.valueChanges, ip.valueChanges).pipe(debounceTime(350), distinctUntilChanged()), period.valueChanges, result.valueChanges, method.valueChanges, reason.valueChanges).pipe(takeUntilDestroyed(destroyRef)).subscribe(() => this.applyFilters());
|
|
998
|
+
// Escopo (url) ou realm mudou: recomeça da página 1.
|
|
999
|
+
effect(() => {
|
|
1000
|
+
this.url();
|
|
1001
|
+
this.realmId();
|
|
1002
|
+
untracked(() => void this.load(1));
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
methodLabel(method) {
|
|
1006
|
+
return this.text.methods[method] ?? method;
|
|
1007
|
+
}
|
|
1008
|
+
resultLabel(result) {
|
|
1009
|
+
return this.text.results[result] ?? result;
|
|
1010
|
+
}
|
|
1011
|
+
resultColor(result) {
|
|
1012
|
+
return RESULT_COLORS[result] ?? 'neutral';
|
|
1013
|
+
}
|
|
1014
|
+
reasonLabel(code) {
|
|
1015
|
+
if (!code)
|
|
1016
|
+
return '';
|
|
1017
|
+
return this.text.reasons[code] ?? code;
|
|
1018
|
+
}
|
|
1019
|
+
formatDate(iso) {
|
|
1020
|
+
const d = new Date(iso);
|
|
1021
|
+
return Number.isNaN(d.getTime()) ? iso : this.dateFormat.format(d);
|
|
1022
|
+
}
|
|
1023
|
+
onPageStateChange(state) {
|
|
1024
|
+
void this.load(state.page, state.size);
|
|
1025
|
+
}
|
|
1026
|
+
applyFilters() {
|
|
1027
|
+
void this.load(1);
|
|
1028
|
+
}
|
|
1029
|
+
clearFilters() {
|
|
1030
|
+
this.filtersForm.reset({ period: defaultAttemptsPeriod(), user: '', ip: '', result: '', method: '', reason: '' }, { emitEvent: false });
|
|
1031
|
+
this.applyFilters();
|
|
1032
|
+
}
|
|
1033
|
+
onRowAction(event) {
|
|
1034
|
+
const a = event.row;
|
|
1035
|
+
if (event.action === 'filter-ip') {
|
|
1036
|
+
if (!a.ip)
|
|
1037
|
+
return;
|
|
1038
|
+
this.filtersForm.controls.ip.setValue(a.ip, { emitEvent: false });
|
|
1039
|
+
}
|
|
1040
|
+
if (event.action === 'filter-user') {
|
|
1041
|
+
const who = a.user_username ?? a.username;
|
|
1042
|
+
if (!who)
|
|
1043
|
+
return;
|
|
1044
|
+
this.filtersForm.controls.user.setValue(who, { emitEvent: false });
|
|
1045
|
+
}
|
|
1046
|
+
this.applyFilters();
|
|
1047
|
+
}
|
|
1048
|
+
async load(page = 1, size = this.pageState().size) {
|
|
1049
|
+
const url = this.url();
|
|
1050
|
+
const seq = ++this.requestSeq;
|
|
1051
|
+
if (!url) {
|
|
1052
|
+
this.attempts.set([]);
|
|
1053
|
+
this.total.set(0);
|
|
1054
|
+
this.loading.set(false);
|
|
1055
|
+
return;
|
|
1056
|
+
}
|
|
1057
|
+
const f = this.filtersForm.getRawValue();
|
|
1058
|
+
this.loading.set(true);
|
|
1059
|
+
this.loadError.set(null);
|
|
1060
|
+
try {
|
|
1061
|
+
const res = await this.service.loginAttempts(url, {
|
|
1062
|
+
page, limit: size,
|
|
1063
|
+
...attemptsPeriodToWindow(f.period),
|
|
1064
|
+
realm: this.scope() === 'admin' ? this.realmId() || undefined : undefined,
|
|
1065
|
+
user: f.user.trim() || undefined,
|
|
1066
|
+
ip: f.ip.trim() || undefined,
|
|
1067
|
+
result: f.result || undefined,
|
|
1068
|
+
method: f.method || undefined,
|
|
1069
|
+
reason: f.reason || undefined,
|
|
1070
|
+
});
|
|
1071
|
+
if (seq !== this.requestSeq)
|
|
1072
|
+
return;
|
|
1073
|
+
this.attempts.set(res.items);
|
|
1074
|
+
this.total.set(res.total);
|
|
1075
|
+
this.pageState.set({ page, size });
|
|
1076
|
+
}
|
|
1077
|
+
catch (err) {
|
|
1078
|
+
if (seq !== this.requestSeq)
|
|
1079
|
+
return;
|
|
1080
|
+
this.attempts.set([]);
|
|
1081
|
+
this.total.set(0);
|
|
1082
|
+
this.loadError.set(this.errorMessage(err));
|
|
1083
|
+
}
|
|
1084
|
+
finally {
|
|
1085
|
+
if (seq === this.requestSeq)
|
|
1086
|
+
this.loading.set(false);
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
errorMessage(err) {
|
|
1090
|
+
const { status, code, detail } = auditErrorCode(err);
|
|
1091
|
+
if (status === 403)
|
|
1092
|
+
return this.scope() === 'admin' ? this.text.forbiddenAdmin : this.text.forbiddenClient;
|
|
1093
|
+
const why = detail || code;
|
|
1094
|
+
return why ? formatMessage(this.text.loadErrorDetail, { detail: why }) : this.text.loadError;
|
|
1095
|
+
}
|
|
1096
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SpineLoginAttemptsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1097
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: SpineLoginAttemptsComponent, isStandalone: true, selector: "spine-login-attempts", inputs: { scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: true, transformFunction: null }, clientId: { classPropertyName: "clientId", publicName: "clientId", isSignal: true, isRequired: false, transformFunction: null }, realmId: { classPropertyName: "realmId", publicName: "realmId", isSignal: true, isRequired: false, transformFunction: null }, adminApi: { classPropertyName: "adminApi", publicName: "adminApi", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"attempts\">\n <div class=\"attempts__actions\">\n <hm-button emphasis=\"medium\" icon=\"refresh\" [disabled]=\"loading()\" (clicked)=\"load(pageState().page)\">{{ text.refresh }}</hm-button>\n </div>\n\n @if (loadError(); as message) {\n <hm-alert variant=\"error\" [closable]=\"true\" (closed)=\"loadError.set(null)\">{{ message }}</hm-alert>\n }\n\n <hm-card>\n <div class=\"attempts__filters\" [formGroup]=\"filtersForm\">\n <div class=\"attempts__row\">\n <hm-input class=\"attempts__search\" [label]=\"text.user\" [placeholder]=\"text.userPlaceholder\" formControlName=\"user\" (keyup.enter)=\"applyFilters()\" />\n <hm-date-range-picker class=\"attempts__period\" [label]=\"text.period\" formControlName=\"period\" [presets]=\"periodPresets\" />\n <hm-combobox class=\"attempts__field\" [label]=\"text.result\" formControlName=\"result\" [options]=\"resultOptions\" />\n <hm-combobox class=\"attempts__field\" [label]=\"text.method\" formControlName=\"method\" [options]=\"methodOptions\" />\n <div class=\"attempts__buttons\">\n <hm-button emphasis=\"medium\" (clicked)=\"clearFilters()\">{{ text.clear }}</hm-button>\n <hm-button emphasis=\"minimal\" [iconEnd]=\"showAdvancedFilters() ? 'chevron-up' : 'chevron-down'\" (clicked)=\"showAdvancedFilters.update(v => !v)\">\n {{ text.advancedFilters }}\n </hm-button>\n </div>\n </div>\n @if (showAdvancedFilters()) {\n <div class=\"attempts__row\">\n <hm-input class=\"attempts__field\" [label]=\"text.ip\" formControlName=\"ip\" [placeholder]=\"text.ipPlaceholder\" [hint]=\"text.ipHint\" />\n <hm-combobox class=\"attempts__field attempts__field--wide\" [label]=\"text.reason\" formControlName=\"reason\" [options]=\"reasonOptions\" />\n </div>\n }\n </div>\n </hm-card>\n\n <hm-card>\n <hm-data-grid\n [caption]=\"text.caption\"\n [columns]=\"columns()\"\n [rows]=\"attempts()\"\n [rowId]=\"rowId\"\n [rowActions]=\"rowActions\"\n [loading]=\"loading()\"\n [filterable]=\"false\"\n [paginated]=\"false\"\n [totalItems]=\"total()\"\n [pageState]=\"pageState()\"\n (pageStateChange)=\"onPageStateChange($event)\"\n [pageSizes]=\"pageSizes\"\n [itemsLabel]=\"text.pageItems\"\n [pageSizeLabel]=\"text.pageSize\"\n (actionTriggered)=\"onRowAction($event)\"\n >\n <!-- Data/hora no fuso do navegador (a API manda ISO em UTC). -->\n <ng-template hmCell=\"created_at\" let-a>{{ formatDate(a.created_at) }}</ng-template>\n <ng-template hmCell=\"result\" let-a>\n <hm-tag [name]=\"resultLabel(a.result)\" [color]=\"resultColor(a.result)\" />\n </ng-template>\n <ng-template hmCell=\"user\" let-a>\n @if (a.user_id) {\n <span class=\"attempts__person\">\n <hm-account-avatar size=\"small\" [name]=\"a.user_name || a.user_username || ''\" [imageUrl]=\"a.user_picture\" />\n <span class=\"attempts__user\">\n <span class=\"attempts__user-name\">{{ a.user_name || a.user_username }}</span>\n <span class=\"attempts__user-detail\">{{ a.user_username }}@if (a.user_email) { \u00B7 {{ a.user_email }} }</span>\n </span>\n </span>\n } @else if (a.username) {\n <span class=\"attempts__user\">\n <span class=\"attempts__user-name\">{{ a.username }}</span>\n <span class=\"attempts__user-detail\">{{ text.noMatchingUser }}</span>\n </span>\n } @else {\n <span class=\"attempts__muted\">\u2014</span>\n }\n </ng-template>\n <ng-template hmCell=\"reason\" let-a>\n @if (a.reason) { {{ reasonLabel(a.reason) }} } @else { <span class=\"attempts__muted\">\u2014</span> }\n </ng-template>\n <ng-template hmCell=\"ip\" let-a>\n @if (a.ip) { <code class=\"attempts__ip\">{{ a.ip }}</code> } @else { <span class=\"attempts__muted\">\u2014</span> }\n </ng-template>\n <ng-template hmCell=\"client\" let-a>\n @if (a.client_name) { {{ a.client_name }} } @else { <span class=\"attempts__muted\">\u2014</span> }\n </ng-template>\n <ng-template hmCell=\"user_agent\" let-a>\n @if (a.user_agent) { <span class=\"attempts__ua\" [attr.title]=\"a.user_agent\">{{ a.user_agent }}</span> } @else { <span class=\"attempts__muted\">\u2014</span> }\n </ng-template>\n </hm-data-grid>\n </hm-card>\n</div>\n", dependencies: [{ kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: AccountAvatarComponent, selector: "hm-account-avatar", inputs: ["name", "imageUrl", "size", "loading", "presence", "texts"] }, { kind: "component", type: AlertComponent, selector: "hm-alert", inputs: ["variant", "appearance", "heading", "closable", "size", "showIcon", "link", "linkLabel", "linkTarget", "dismissKey", "duration"], outputs: ["closed"] }, { 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: CardComponent, selector: "hm-card", inputs: ["heading", "icon", "selected", "fill", "media", "mediaAlt", "mediaDecorative", "mediaPosition"] }, { kind: "component", type: ComboboxComponent, selector: "hm-combobox", inputs: ["label", "options", "value", "placeholder", "icon", "hint", "size", "labelHidden", "clearable", "loading", "allowCustomValue"], outputs: ["valueChange"] }, { kind: "directive", type: DataGridCellDirective, selector: "ng-template[hmCell]", inputs: ["hmCell"] }, { kind: "component", type: DataGridComponent, selector: "hm-data-grid", inputs: ["columns", "rows", "rowId", "caption", "rowActions", "loading", "error", "emptyMessage", "noResultsMessage", "filterable", "paginated", "pageState", "pagination", "totalItems", "sort", "selectable", "selectionMode", "selection", "rowSelectable", "rowSelectableReason", "rowDetailDisabled", "rowDetailHidden", "virtual", "rowHeight", "pinnedColumns", "columnState", "pageSizes", "fillHeight", "maxHeight", "bordered", "rowState", "rowClickable", "remoteSearch", "remoteSort", "itemsLabel", "pageSizeLabel", "exportable", "exportFileName", "groupBy", "aggregates", "aggregateFormatter", "persistKey", "persistStorage", "advancedFilter", "filterQuery", "columnManager", "columnOrder", "striped", "columnGroups", "editMode", "editBatch", "texts", "treeChildren", "treeHasChildren", "treeExpanded", "treePagination", "treeChildPageSize", "searchTerm"], outputs: ["pageStateChange", "sortChange", "selectionChange", "pinnedColumnsChange", "columnStateChange", "actionTriggered", "detailToggled", "rowClicked", "clearFiltersRequested", "filteredChange", "searchTermChanged", "groupByChange", "filterQueryChange", "columnOrderChange", "editSaved", "editStarted", "editCanceled", "treeExpandedChange", "treeToggled", "searchTermChange", "detailPaneToggled"] }, { kind: "component", type: DateRangePickerComponent, selector: "hm-date-range-picker", inputs: ["value", "label", "labelHidden", "hint", "min", "max", "valueFormat", "presets"], outputs: ["valueChange"] }, { kind: "component", type: InputComponent, selector: "hm-input", inputs: ["value", "label", "type", "placeholder", "icon", "labelHidden", "hint", "prefix", "suffix", "prefixIcon", "mask", "maskValue", "min", "max", "step", "stepButtons", "maxLength", "autocomplete", "inputMode"], outputs: ["valueChange"] }, { kind: "component", type: TagComponent, selector: "hm-tag", inputs: ["name", "color", "compact"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1098
|
+
}
|
|
1099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SpineLoginAttemptsComponent, decorators: [{
|
|
1100
|
+
type: Component,
|
|
1101
|
+
args: [{ selector: 'spine-login-attempts', imports: [
|
|
1102
|
+
ReactiveFormsModule, AccountAvatarComponent, AlertComponent, ButtonComponent, CardComponent, ComboboxComponent, DataGridCellDirective, DataGridComponent,
|
|
1103
|
+
DateRangePickerComponent, InputComponent, TagComponent,
|
|
1104
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"attempts\">\n <div class=\"attempts__actions\">\n <hm-button emphasis=\"medium\" icon=\"refresh\" [disabled]=\"loading()\" (clicked)=\"load(pageState().page)\">{{ text.refresh }}</hm-button>\n </div>\n\n @if (loadError(); as message) {\n <hm-alert variant=\"error\" [closable]=\"true\" (closed)=\"loadError.set(null)\">{{ message }}</hm-alert>\n }\n\n <hm-card>\n <div class=\"attempts__filters\" [formGroup]=\"filtersForm\">\n <div class=\"attempts__row\">\n <hm-input class=\"attempts__search\" [label]=\"text.user\" [placeholder]=\"text.userPlaceholder\" formControlName=\"user\" (keyup.enter)=\"applyFilters()\" />\n <hm-date-range-picker class=\"attempts__period\" [label]=\"text.period\" formControlName=\"period\" [presets]=\"periodPresets\" />\n <hm-combobox class=\"attempts__field\" [label]=\"text.result\" formControlName=\"result\" [options]=\"resultOptions\" />\n <hm-combobox class=\"attempts__field\" [label]=\"text.method\" formControlName=\"method\" [options]=\"methodOptions\" />\n <div class=\"attempts__buttons\">\n <hm-button emphasis=\"medium\" (clicked)=\"clearFilters()\">{{ text.clear }}</hm-button>\n <hm-button emphasis=\"minimal\" [iconEnd]=\"showAdvancedFilters() ? 'chevron-up' : 'chevron-down'\" (clicked)=\"showAdvancedFilters.update(v => !v)\">\n {{ text.advancedFilters }}\n </hm-button>\n </div>\n </div>\n @if (showAdvancedFilters()) {\n <div class=\"attempts__row\">\n <hm-input class=\"attempts__field\" [label]=\"text.ip\" formControlName=\"ip\" [placeholder]=\"text.ipPlaceholder\" [hint]=\"text.ipHint\" />\n <hm-combobox class=\"attempts__field attempts__field--wide\" [label]=\"text.reason\" formControlName=\"reason\" [options]=\"reasonOptions\" />\n </div>\n }\n </div>\n </hm-card>\n\n <hm-card>\n <hm-data-grid\n [caption]=\"text.caption\"\n [columns]=\"columns()\"\n [rows]=\"attempts()\"\n [rowId]=\"rowId\"\n [rowActions]=\"rowActions\"\n [loading]=\"loading()\"\n [filterable]=\"false\"\n [paginated]=\"false\"\n [totalItems]=\"total()\"\n [pageState]=\"pageState()\"\n (pageStateChange)=\"onPageStateChange($event)\"\n [pageSizes]=\"pageSizes\"\n [itemsLabel]=\"text.pageItems\"\n [pageSizeLabel]=\"text.pageSize\"\n (actionTriggered)=\"onRowAction($event)\"\n >\n <!-- Data/hora no fuso do navegador (a API manda ISO em UTC). -->\n <ng-template hmCell=\"created_at\" let-a>{{ formatDate(a.created_at) }}</ng-template>\n <ng-template hmCell=\"result\" let-a>\n <hm-tag [name]=\"resultLabel(a.result)\" [color]=\"resultColor(a.result)\" />\n </ng-template>\n <ng-template hmCell=\"user\" let-a>\n @if (a.user_id) {\n <span class=\"attempts__person\">\n <hm-account-avatar size=\"small\" [name]=\"a.user_name || a.user_username || ''\" [imageUrl]=\"a.user_picture\" />\n <span class=\"attempts__user\">\n <span class=\"attempts__user-name\">{{ a.user_name || a.user_username }}</span>\n <span class=\"attempts__user-detail\">{{ a.user_username }}@if (a.user_email) { \u00B7 {{ a.user_email }} }</span>\n </span>\n </span>\n } @else if (a.username) {\n <span class=\"attempts__user\">\n <span class=\"attempts__user-name\">{{ a.username }}</span>\n <span class=\"attempts__user-detail\">{{ text.noMatchingUser }}</span>\n </span>\n } @else {\n <span class=\"attempts__muted\">\u2014</span>\n }\n </ng-template>\n <ng-template hmCell=\"reason\" let-a>\n @if (a.reason) { {{ reasonLabel(a.reason) }} } @else { <span class=\"attempts__muted\">\u2014</span> }\n </ng-template>\n <ng-template hmCell=\"ip\" let-a>\n @if (a.ip) { <code class=\"attempts__ip\">{{ a.ip }}</code> } @else { <span class=\"attempts__muted\">\u2014</span> }\n </ng-template>\n <ng-template hmCell=\"client\" let-a>\n @if (a.client_name) { {{ a.client_name }} } @else { <span class=\"attempts__muted\">\u2014</span> }\n </ng-template>\n <ng-template hmCell=\"user_agent\" let-a>\n @if (a.user_agent) { <span class=\"attempts__ua\" [attr.title]=\"a.user_agent\">{{ a.user_agent }}</span> } @else { <span class=\"attempts__muted\">\u2014</span> }\n </ng-template>\n </hm-data-grid>\n </hm-card>\n</div>\n" }]
|
|
1105
|
+
}], ctorParameters: () => [], propDecorators: { scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: true }] }], clientId: [{ type: i0.Input, args: [{ isSignal: true, alias: "clientId", required: false }] }], realmId: [{ type: i0.Input, args: [{ isSignal: true, alias: "realmId", required: false }] }], adminApi: [{ type: i0.Input, args: [{ isSignal: true, alias: "adminApi", required: false }] }] } });
|
|
1106
|
+
|
|
1107
|
+
/*
|
|
1108
|
+
* @trismegisto/angular/spine/audit — as telas de auditoria do argos admin-server, as mesmas para o painel central
|
|
1109
|
+
* (`scope="admin"`) e para o auto-serviço (`scope="client"` + `clientId`): Ações (`SpineAuditComponent`, leitura de
|
|
1110
|
+
* `audit.events`) e Tentativas de login (`SpineLoginAttemptsComponent`, leitura de `auth.auth_attempts`).
|
|
1111
|
+
*
|
|
1112
|
+
* Este ponto de entrada EXPORTA o componente: importe-o só de código carregado sob demanda (rota lazy,
|
|
1113
|
+
* `import('@trismegisto/angular/spine/audit')`). O `@trismegisto/angular/spine/auto-service` só o alcança por `import()`
|
|
1114
|
+
* dentro dos chunks das telas dele — `scripts/check-lazy.mjs` falha se o arquivo do ponto `auto-service`
|
|
1115
|
+
* passar a importá-lo estaticamente.
|
|
1116
|
+
*/
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* Generated bundle index. Do not edit.
|
|
1120
|
+
*/
|
|
1121
|
+
|
|
1122
|
+
export { AUDIT_AUTO_REFRESH_MS, AUDIT_PAGE_SIZE, AUDIT_PAGE_SIZES, LOGIN_ATTEMPTS_PAGE_SIZE, LOGIN_ATTEMPTS_PAGE_SIZES, SpineAuditComponent, SpineAuditService, SpineAuditTopCardComponent, SpineLoginAttemptsComponent, auditParams, loginAttemptParams };
|
|
1123
|
+
//# sourceMappingURL=trismegisto-angular-spine-audit.mjs.map
|