@trismegisto/angular 3.3.8 → 3.3.10
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/LICENSE +56 -56
- package/README.md +136 -136
- package/fesm2022/trismegisto-angular-access-control.mjs +300 -300
- package/fesm2022/trismegisto-angular-access-control.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-accordion.mjs +2 -2
- package/fesm2022/trismegisto-angular-accordion.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-account-avatar.mjs +28 -28
- package/fesm2022/trismegisto-angular-account-avatar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-account-closure.mjs +72 -72
- package/fesm2022/trismegisto-angular-account-closure.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-account-forms.mjs +274 -274
- package/fesm2022/trismegisto-angular-account-forms.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-account-switcher.mjs +88 -88
- package/fesm2022/trismegisto-angular-account-switcher.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-address.mjs +152 -152
- package/fesm2022/trismegisto-angular-address.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-agent.mjs +712 -327
- package/fesm2022/trismegisto-angular-agent.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-alert-history.mjs +134 -134
- package/fesm2022/trismegisto-angular-alert-history.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-alert-rule-editor.mjs +166 -166
- package/fesm2022/trismegisto-angular-alert-rule-editor.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-alert.mjs +28 -28
- package/fesm2022/trismegisto-angular-alert.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-anchor-nav.mjs +36 -36
- package/fesm2022/trismegisto-angular-anchor-nav.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-announcer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-api-exchange.mjs +2 -2
- package/fesm2022/trismegisto-angular-api-exchange.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-appointment-details.mjs +2 -2
- package/fesm2022/trismegisto-angular-appointment-details.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-approval.mjs +102 -102
- package/fesm2022/trismegisto-angular-approval.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-assignee.mjs +120 -120
- package/fesm2022/trismegisto-angular-assignee.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-attachment.mjs +7 -3
- package/fesm2022/trismegisto-angular-attachment.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-availability-editor.mjs +2 -2
- package/fesm2022/trismegisto-angular-availability-editor.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-avatar-group.mjs +30 -30
- package/fesm2022/trismegisto-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-backlog.mjs +122 -122
- package/fesm2022/trismegisto-angular-backlog.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-badge.mjs +20 -20
- package/fesm2022/trismegisto-angular-badge.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-billing.mjs +432 -432
- package/fesm2022/trismegisto-angular-billing.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-bottom-navigation.mjs +78 -78
- package/fesm2022/trismegisto-angular-bottom-navigation.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-bottom-sheet.mjs +170 -170
- package/fesm2022/trismegisto-angular-bottom-sheet.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-breadcrumb.mjs +124 -124
- package/fesm2022/trismegisto-angular-breadcrumb.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-bubble.mjs +56 -56
- package/fesm2022/trismegisto-angular-bubble.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-bulk-input.mjs +2 -2
- package/fesm2022/trismegisto-angular-bulk-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-button-group.mjs +34 -34
- package/fesm2022/trismegisto-angular-button-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-button.mjs +2 -2
- package/fesm2022/trismegisto-angular-button.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-card-container.mjs +280 -280
- package/fesm2022/trismegisto-angular-card-container.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-card.mjs +2 -2
- package/fesm2022/trismegisto-angular-card.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-carousel.mjs +2 -2
- package/fesm2022/trismegisto-angular-carousel.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-cart.mjs +352 -352
- package/fesm2022/trismegisto-angular-cart.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-cascader.mjs +2 -2
- package/fesm2022/trismegisto-angular-cascader.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-certificate-viewer.mjs +322 -322
- package/fesm2022/trismegisto-angular-certificate-viewer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-change-history.mjs +80 -80
- package/fesm2022/trismegisto-angular-change-history.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-checkbox-group.mjs +2 -2
- package/fesm2022/trismegisto-angular-checkbox-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-checkbox.mjs +2 -2
- package/fesm2022/trismegisto-angular-checkbox.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-chip.mjs +72 -72
- package/fesm2022/trismegisto-angular-chip.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-code-diff.mjs +2 -2
- package/fesm2022/trismegisto-angular-code-diff.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-code-input.mjs +2 -2
- package/fesm2022/trismegisto-angular-code-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-code-viewer.mjs +78 -5
- package/fesm2022/trismegisto-angular-code-viewer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-color-picker.mjs +2 -2
- package/fesm2022/trismegisto-angular-color-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-combobox-multi.mjs +2 -2
- package/fesm2022/trismegisto-angular-combobox-multi.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-combobox.mjs +2 -2
- package/fesm2022/trismegisto-angular-combobox.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-command-palette.mjs +258 -258
- package/fesm2022/trismegisto-angular-command-palette.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-commerce-format.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-connection-wizard.mjs +2 -2
- package/fesm2022/trismegisto-angular-connection-wizard.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-consent.mjs +116 -116
- package/fesm2022/trismegisto-angular-consent.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-copy-button.mjs +28 -28
- package/fesm2022/trismegisto-angular-copy-button.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-credentials-form.mjs +76 -76
- package/fesm2022/trismegisto-angular-credentials-form.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-data-grid.mjs +6 -6
- package/fesm2022/trismegisto-angular-data-grid.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-data-source-picker.mjs +2 -2
- package/fesm2022/trismegisto-angular-data-source-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-date-picker.mjs +38 -38
- package/fesm2022/trismegisto-angular-date-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-datetime-picker.mjs +2 -2
- package/fesm2022/trismegisto-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-deadline.mjs +90 -90
- package/fesm2022/trismegisto-angular-deadline.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-deploy-pipeline.mjs +98 -98
- package/fesm2022/trismegisto-angular-deploy-pipeline.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-description-list.mjs +188 -188
- package/fesm2022/trismegisto-angular-description-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-dialog.mjs +54 -54
- package/fesm2022/trismegisto-angular-dialog.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-direction.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-divider.mjs +8 -8
- package/fesm2022/trismegisto-angular-divider.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-drag-drop.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-drawer.mjs +2 -2
- package/fesm2022/trismegisto-angular-drawer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-dropdown.mjs +36 -36
- package/fesm2022/trismegisto-angular-dropdown.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-dual-list.mjs +2 -2
- package/fesm2022/trismegisto-angular-dual-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-empty.mjs +10 -10
- package/fesm2022/trismegisto-angular-empty.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-endpoint-card.mjs +2 -2
- package/fesm2022/trismegisto-angular-endpoint-card.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-entity-picker.mjs +66 -66
- package/fesm2022/trismegisto-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-environment-picker.mjs +90 -90
- package/fesm2022/trismegisto-angular-environment-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-event-calendar.mjs +2 -2
- package/fesm2022/trismegisto-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-execution-status.mjs +108 -108
- package/fesm2022/trismegisto-angular-execution-status.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-fab.mjs +94 -94
- package/fesm2022/trismegisto-angular-fab.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-feature-flags.mjs +2 -2
- package/fesm2022/trismegisto-angular-feature-flags.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-field-mapping.mjs +2 -2
- package/fesm2022/trismegisto-angular-field-mapping.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-file-list.mjs +2 -2
- package/fesm2022/trismegisto-angular-file-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-file-permissions.mjs +2 -2
- package/fesm2022/trismegisto-angular-file-permissions.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-file-upload.mjs +2 -2
- package/fesm2022/trismegisto-angular-file-upload.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-file-versions.mjs +2 -2
- package/fesm2022/trismegisto-angular-file-versions.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-filter-bar.mjs +2 -2
- package/fesm2022/trismegisto-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-finance.mjs +376 -376
- package/fesm2022/trismegisto-angular-finance.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-floating-window.mjs +2 -2
- package/fesm2022/trismegisto-angular-floating-window.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-form-error-summary.mjs +38 -38
- package/fesm2022/trismegisto-angular-form-error-summary.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-form-required-hint.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-forms.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-gantt.mjs +144 -144
- package/fesm2022/trismegisto-angular-gantt.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-geometric-texture.mjs +2 -2
- package/fesm2022/trismegisto-angular-geometric-texture.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-global-search.mjs +36 -36
- package/fesm2022/trismegisto-angular-global-search.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-header.mjs +2 -2
- package/fesm2022/trismegisto-angular-header.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-health-status.mjs +42 -42
- package/fesm2022/trismegisto-angular-health-status.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-i18n.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-icon-button.mjs +2 -2
- package/fesm2022/trismegisto-angular-icon-button.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-icon.mjs +2 -1
- package/fesm2022/trismegisto-angular-icon.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-identity-document.mjs +2 -2
- 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.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 +2 -2
- package/fesm2022/trismegisto-angular-image-crop.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-image-gallery.mjs +4 -4
- package/fesm2022/trismegisto-angular-image-gallery.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-incident.mjs +382 -382
- package/fesm2022/trismegisto-angular-incident.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-input.mjs +2 -2
- package/fesm2022/trismegisto-angular-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-integration-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-integration.mjs +8 -8
- package/fesm2022/trismegisto-angular-integration.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-invoice.mjs +186 -186
- package/fesm2022/trismegisto-angular-invoice.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-item.mjs +2 -2
- package/fesm2022/trismegisto-angular-item.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-json-viewer.mjs +2 -2
- package/fesm2022/trismegisto-angular-json-viewer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-kanban.mjs +194 -194
- package/fesm2022/trismegisto-angular-kanban.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-legend.mjs +44 -44
- package/fesm2022/trismegisto-angular-legend.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-level-badge.mjs +74 -74
- package/fesm2022/trismegisto-angular-level-badge.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-list-editor.mjs +2 -2
- package/fesm2022/trismegisto-angular-list-editor.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-loading-square.mjs +12 -12
- package/fesm2022/trismegisto-angular-loading-square.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-location-select.mjs +84 -84
- package/fesm2022/trismegisto-angular-location-select.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-log-viewer.mjs +2 -2
- package/fesm2022/trismegisto-angular-log-viewer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-maintenance-window.mjs +112 -112
- package/fesm2022/trismegisto-angular-maintenance-window.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-member-list.mjs +142 -142
- package/fesm2022/trismegisto-angular-member-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-mention-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-menu-button.mjs +2 -2
- package/fesm2022/trismegisto-angular-menu-button.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-menu.mjs +2 -2
- package/fesm2022/trismegisto-angular-menu.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-menubar.mjs +68 -68
- package/fesm2022/trismegisto-angular-menubar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-message-divider.mjs +37 -29
- package/fesm2022/trismegisto-angular-message-divider.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-message-scroller.mjs +92 -78
- package/fesm2022/trismegisto-angular-message-scroller.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-message.mjs +130 -130
- package/fesm2022/trismegisto-angular-message.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-metric-explorer.mjs +186 -186
- package/fesm2022/trismegisto-angular-metric-explorer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-modal.mjs +2 -2
- package/fesm2022/trismegisto-angular-modal.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-monitoring-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-month-picker.mjs +2 -2
- package/fesm2022/trismegisto-angular-month-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-motion.mjs +6 -6
- package/fesm2022/trismegisto-angular-motion.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-navigation-menu.mjs +204 -204
- package/fesm2022/trismegisto-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-number-field.mjs +4 -4
- package/fesm2022/trismegisto-angular-number-field.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-observability-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-order.mjs +172 -172
- package/fesm2022/trismegisto-angular-order.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-org-chart.mjs +294 -294
- package/fesm2022/trismegisto-angular-org-chart.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-page-header.mjs +100 -100
- package/fesm2022/trismegisto-angular-page-header.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-paginator.mjs +2 -2
- package/fesm2022/trismegisto-angular-paginator.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-password-strength.mjs +56 -56
- package/fesm2022/trismegisto-angular-password-strength.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-payment-fields.mjs +312 -312
- package/fesm2022/trismegisto-angular-payment-fields.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-payment-form.mjs +126 -126
- package/fesm2022/trismegisto-angular-payment-form.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-payment-method.mjs +94 -94
- package/fesm2022/trismegisto-angular-payment-method.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-pdf-viewer.mjs +2 -2
- package/fesm2022/trismegisto-angular-pdf-viewer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-permission-matrix.mjs +138 -138
- package/fesm2022/trismegisto-angular-permission-matrix.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-pipes.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-popconfirm.mjs +42 -42
- package/fesm2022/trismegisto-angular-popconfirm.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-popover.mjs +110 -110
- package/fesm2022/trismegisto-angular-popover.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-price.mjs +44 -44
- package/fesm2022/trismegisto-angular-price.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-product.mjs +404 -404
- package/fesm2022/trismegisto-angular-product.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-progress.mjs +152 -152
- package/fesm2022/trismegisto-angular-progress.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-prompt-input.mjs +251 -0
- package/fesm2022/trismegisto-angular-prompt-input.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-prompt-suggestions.mjs +17 -10
- package/fesm2022/trismegisto-angular-prompt-suggestions.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-property-view.mjs +252 -252
- package/fesm2022/trismegisto-angular-property-view.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-questionnaire.mjs +420 -0
- package/fesm2022/trismegisto-angular-questionnaire.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-radio.mjs +2 -2
- package/fesm2022/trismegisto-angular-radio.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-rating.mjs +2 -2
- package/fesm2022/trismegisto-angular-rating.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-reason-dialog.mjs +40 -40
- package/fesm2022/trismegisto-angular-reason-dialog.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-recurrence-editor.mjs +2 -2
- package/fesm2022/trismegisto-angular-recurrence-editor.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-release-timeline.mjs +64 -64
- package/fesm2022/trismegisto-angular-release-timeline.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-reorder-list.mjs +2 -2
- package/fesm2022/trismegisto-angular-reorder-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-report-history.mjs +2 -2
- package/fesm2022/trismegisto-angular-report-history.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-report-schedule.mjs +2 -2
- package/fesm2022/trismegisto-angular-report-schedule.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-resource-calendar.mjs +2 -2
- package/fesm2022/trismegisto-angular-resource-calendar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-resource-usage.mjs +62 -62
- package/fesm2022/trismegisto-angular-resource-usage.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-return-request.mjs +102 -102
- package/fesm2022/trismegisto-angular-return-request.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-rich-text.mjs +2 -2
- package/fesm2022/trismegisto-angular-rich-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-risk-register.mjs +182 -182
- package/fesm2022/trismegisto-angular-risk-register.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-save-status.mjs +42 -42
- package/fesm2022/trismegisto-angular-save-status.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-search-field.mjs +2 -2
- package/fesm2022/trismegisto-angular-search-field.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-segmented-control.mjs +2 -2
- package/fesm2022/trismegisto-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-select.mjs +2 -2
- package/fesm2022/trismegisto-angular-select.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-service-map.mjs +188 -188
- package/fesm2022/trismegisto-angular-service-map.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-service-status.mjs +142 -142
- package/fesm2022/trismegisto-angular-service-status.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-session-recovery.mjs +12 -12
- package/fesm2022/trismegisto-angular-session-recovery.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-settings.mjs +46 -46
- package/fesm2022/trismegisto-angular-settings.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-shipping.mjs +166 -166
- package/fesm2022/trismegisto-angular-shipping.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-shortcut-list.mjs +2 -2
- package/fesm2022/trismegisto-angular-shortcut-list.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-sidebar.mjs +40 -40
- package/fesm2022/trismegisto-angular-sidebar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-skeleton.mjs +46 -46
- package/fesm2022/trismegisto-angular-skeleton.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-skip-link.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-sla-summary.mjs +146 -146
- package/fesm2022/trismegisto-angular-sla-summary.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-slider.mjs +2 -2
- package/fesm2022/trismegisto-angular-slider.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-slot-picker.mjs +2 -2
- package/fesm2022/trismegisto-angular-slot-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-spinner.mjs +22 -22
- package/fesm2022/trismegisto-angular-spinner.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-split-button.mjs +62 -62
- package/fesm2022/trismegisto-angular-split-button.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-splitter.mjs +40 -40
- package/fesm2022/trismegisto-angular-splitter.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-stat-card.mjs +2 -2
- package/fesm2022/trismegisto-angular-stat-card.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-stat-group.mjs +74 -74
- package/fesm2022/trismegisto-angular-stat-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-state-page.mjs +22 -22
- package/fesm2022/trismegisto-angular-state-page.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-state-screen.mjs +2 -2
- package/fesm2022/trismegisto-angular-state-screen.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-status-badge.mjs +10 -10
- package/fesm2022/trismegisto-angular-status-badge.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-status-select.mjs +44 -44
- package/fesm2022/trismegisto-angular-status-select.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-stepper.mjs +34 -34
- package/fesm2022/trismegisto-angular-stepper.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-storage-usage.mjs +2 -2
- package/fesm2022/trismegisto-angular-storage-usage.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-swimlane-board.mjs +80 -80
- package/fesm2022/trismegisto-angular-swimlane-board.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-switch.mjs +2 -2
- package/fesm2022/trismegisto-angular-switch.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-sync-status.mjs +4 -4
- package/fesm2022/trismegisto-angular-sync-status.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tab-bar.mjs +2 -2
- package/fesm2022/trismegisto-angular-tab-bar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tabs.mjs +4 -4
- package/fesm2022/trismegisto-angular-tabs.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tag-input.mjs +2 -2
- package/fesm2022/trismegisto-angular-tag-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tag.mjs +12 -12
- package/fesm2022/trismegisto-angular-tag.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-task-card.mjs +188 -188
- package/fesm2022/trismegisto-angular-task-card.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-task-detail.mjs +398 -398
- package/fesm2022/trismegisto-angular-task-detail.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-testing.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-textarea.mjs +2 -2
- package/fesm2022/trismegisto-angular-textarea.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-theme-builder.mjs +2 -2
- package/fesm2022/trismegisto-angular-theme-builder.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-theme-picker.mjs +2 -2
- package/fesm2022/trismegisto-angular-theme-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-theme.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-time-picker.mjs +2 -2
- package/fesm2022/trismegisto-angular-time-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-time-range.mjs +2 -2
- package/fesm2022/trismegisto-angular-time-range.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-timeline.mjs +92 -92
- package/fesm2022/trismegisto-angular-timeline.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-toast.mjs +38 -38
- package/fesm2022/trismegisto-angular-toast.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-toggle-group.mjs +30 -30
- package/fesm2022/trismegisto-angular-toggle-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-toggletip.mjs +56 -56
- package/fesm2022/trismegisto-angular-toggletip.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-toolbar.mjs +6 -6
- package/fesm2022/trismegisto-angular-toolbar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tooltip.mjs +1 -0
- package/fesm2022/trismegisto-angular-tooltip.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tour.mjs +102 -102
- package/fesm2022/trismegisto-angular-tour.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-trace-waterfall.mjs +242 -242
- package/fesm2022/trismegisto-angular-trace-waterfall.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-trace.mjs +103 -74
- package/fesm2022/trismegisto-angular-trace.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-transaction.mjs +238 -238
- package/fesm2022/trismegisto-angular-transaction.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tree-select.mjs +4 -4
- package/fesm2022/trismegisto-angular-tree-select.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tree.mjs +2 -2
- package/fesm2022/trismegisto-angular-tree.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-unsaved-changes.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-uptime-bar.mjs +88 -88
- package/fesm2022/trismegisto-angular-uptime-bar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-user-card.mjs +106 -106
- package/fesm2022/trismegisto-angular-user-card.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-vehicle-plate.mjs +2 -2
- package/fesm2022/trismegisto-angular-vehicle-plate.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-webhook.mjs +4 -4
- package/fesm2022/trismegisto-angular-webhook.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-wizard.mjs +2 -2
- package/fesm2022/trismegisto-angular-wizard.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workflow-diagram.mjs +240 -240
- package/fesm2022/trismegisto-angular-workflow-diagram.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workflow-i18n.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workload.mjs +98 -98
- package/fesm2022/trismegisto-angular-workload.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workspace-persistence.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workspace.mjs +4 -4
- package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-zoom.mjs.map +1 -1
- package/fesm2022/trismegisto-angular.mjs +4 -2
- package/fesm2022/trismegisto-angular.mjs.map +1 -1
- package/package.json +13 -5
- package/types/trismegisto-angular-agent.d.ts +103 -4
- package/types/trismegisto-angular-agent.d.ts.map +1 -1
- package/types/trismegisto-angular-attachment.d.ts +5 -2
- package/types/trismegisto-angular-attachment.d.ts.map +1 -1
- package/types/trismegisto-angular-bubble.d.ts +1 -1
- package/types/trismegisto-angular-code-viewer.d.ts +40 -3
- package/types/trismegisto-angular-code-viewer.d.ts.map +1 -1
- package/types/trismegisto-angular-icon.d.ts +2 -1
- package/types/trismegisto-angular-icon.d.ts.map +1 -1
- package/types/trismegisto-angular-message-divider.d.ts +4 -2
- package/types/trismegisto-angular-message-divider.d.ts.map +1 -1
- package/types/trismegisto-angular-message-scroller.d.ts +5 -0
- package/types/trismegisto-angular-message-scroller.d.ts.map +1 -1
- package/types/trismegisto-angular-prompt-input.d.ts +100 -0
- package/types/trismegisto-angular-prompt-input.d.ts.map +1 -0
- package/types/trismegisto-angular-prompt-suggestions.d.ts +3 -1
- package/types/trismegisto-angular-prompt-suggestions.d.ts.map +1 -1
- package/types/trismegisto-angular-questionnaire.d.ts +97 -0
- package/types/trismegisto-angular-questionnaire.d.ts.map +1 -0
- package/types/trismegisto-angular-tooltip.d.ts.map +1 -1
- package/types/trismegisto-angular-trace.d.ts +11 -4
- package/types/trismegisto-angular-trace.d.ts.map +1 -1
- package/types/trismegisto-angular.d.ts +5 -3
- package/types/trismegisto-angular.d.ts.map +1 -1
|
@@ -1,17 +1,19 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { inject, computed, input, model, ChangeDetectionStrategy, Component, booleanAttribute, output, signal, effect } from '@angular/core';
|
|
3
3
|
import { ButtonComponent } from '@trismegisto/angular/button';
|
|
4
|
-
import { ICON_ANGLE, ICON_CHECK_CIRCLE, ICON_CIRCLE, ICON_DETAILS, ICON_FILE, ICON_FOLDER, ICON_LAMP_SPARK, ICON_LINK,
|
|
4
|
+
import { ICON_ANGLE, ICON_CHECK_CIRCLE, ICON_CIRCLE, ICON_DETAILS, ICON_FILE, ICON_FOLDER, ICON_LAMP_SPARK, ICON_LINK, ICON_REDO, ICON_TASKS, ICON_TIMES_CIRCLE, ICON_WRENCH, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
|
|
5
5
|
import { HermesI18nService } from '@trismegisto/angular/i18n';
|
|
6
|
+
import { TRACE_MESSAGES, TRACE_MESSAGES_PT_BR, TraceComponent, TraceItemComponent } from '@trismegisto/angular/trace';
|
|
6
7
|
import { PopoverComponent, PopoverTriggerDirective } from '@trismegisto/angular/popover';
|
|
7
8
|
import { pluralMessage, formatMessage } from '@trismegisto/primitives/i18n';
|
|
8
9
|
import { ProgressComponent } from '@trismegisto/angular/progress';
|
|
9
|
-
import {
|
|
10
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
10
11
|
import * as i1 from '@angular/forms';
|
|
11
12
|
import { FormsModule } from '@angular/forms';
|
|
12
13
|
import { CodeViewerComponent } from '@trismegisto/angular/code-viewer';
|
|
13
14
|
import { SelectComponent } from '@trismegisto/angular/select';
|
|
14
15
|
import { TreeComponent, TreeNodeTemplateDirective } from '@trismegisto/angular/tree';
|
|
16
|
+
import { CODE_LANGUAGE_TEXT } from '@trismegisto/primitives/code-syntax';
|
|
15
17
|
|
|
16
18
|
const AGENT_MESSAGES_PT_BR = {
|
|
17
19
|
approve: 'Aprovar',
|
|
@@ -45,6 +47,15 @@ const AGENT_MESSAGES_PT_BR = {
|
|
|
45
47
|
testsFailed: { one: '{count} falhou', other: '{count} falharam' },
|
|
46
48
|
testsSkipped: { one: '{count} ignorado', other: '{count} ignorados' },
|
|
47
49
|
frames: { one: '{count} chamada', other: '{count} chamadas' },
|
|
50
|
+
taskFailed: 'Com falha',
|
|
51
|
+
subagentDetails: 'Modelo e ferramentas',
|
|
52
|
+
testsOther: 'Outros testes',
|
|
53
|
+
internalFrames: { one: '{count} chamada interna', other: '{count} chamadas internas' },
|
|
54
|
+
opensInNewTab: '(abre em nova aba)',
|
|
55
|
+
searchResultsLabel: 'Resultados da busca',
|
|
56
|
+
toolInput: 'Parâmetros',
|
|
57
|
+
toolOutput: 'Resultado',
|
|
58
|
+
toolError: 'Erro',
|
|
48
59
|
};
|
|
49
60
|
const AGENT_MESSAGES_EN = {
|
|
50
61
|
approve: 'Approve',
|
|
@@ -78,6 +89,15 @@ const AGENT_MESSAGES_EN = {
|
|
|
78
89
|
testsFailed: { one: '{count} failed', other: '{count} failed' },
|
|
79
90
|
testsSkipped: { one: '{count} skipped', other: '{count} skipped' },
|
|
80
91
|
frames: { one: '{count} call', other: '{count} calls' },
|
|
92
|
+
taskFailed: 'Failed',
|
|
93
|
+
subagentDetails: 'Model and tools',
|
|
94
|
+
testsOther: 'Other tests',
|
|
95
|
+
internalFrames: { one: '{count} internal call', other: '{count} internal calls' },
|
|
96
|
+
opensInNewTab: '(opens in a new tab)',
|
|
97
|
+
searchResultsLabel: 'Search results',
|
|
98
|
+
toolInput: 'Input',
|
|
99
|
+
toolOutput: 'Output',
|
|
100
|
+
toolError: 'Error',
|
|
81
101
|
};
|
|
82
102
|
const AGENT_MESSAGES_ES = {
|
|
83
103
|
approve: 'Aprobar',
|
|
@@ -111,6 +131,15 @@ const AGENT_MESSAGES_ES = {
|
|
|
111
131
|
testsFailed: { one: '{count} falló', other: '{count} fallaron' },
|
|
112
132
|
testsSkipped: { one: '{count} omitida', other: '{count} omitidas' },
|
|
113
133
|
frames: { one: '{count} llamada', other: '{count} llamadas' },
|
|
134
|
+
taskFailed: 'Con fallos',
|
|
135
|
+
subagentDetails: 'Modelo y herramientas',
|
|
136
|
+
testsOther: 'Otras pruebas',
|
|
137
|
+
internalFrames: { one: '{count} llamada interna', other: '{count} llamadas internas' },
|
|
138
|
+
opensInNewTab: '(se abre en una pestaña nueva)',
|
|
139
|
+
searchResultsLabel: 'Resultados de la búsqueda',
|
|
140
|
+
toolInput: 'Parámetros',
|
|
141
|
+
toolOutput: 'Resultado',
|
|
142
|
+
toolError: 'Error',
|
|
114
143
|
};
|
|
115
144
|
/** Catálogos por idioma, para `HermesI18nService.pick`. */
|
|
116
145
|
const AGENT_MESSAGES = {
|
|
@@ -119,7 +148,7 @@ const AGENT_MESSAGES = {
|
|
|
119
148
|
es: AGENT_MESSAGES_ES,
|
|
120
149
|
};
|
|
121
150
|
|
|
122
|
-
const AGENT_ICONS = [ICON_ANGLE, ICON_CHECK_CIRCLE, ICON_CIRCLE, ICON_DETAILS, ICON_FILE, ICON_FOLDER, ICON_LAMP_SPARK, ICON_LINK,
|
|
151
|
+
const AGENT_ICONS = [ICON_ANGLE, ICON_CHECK_CIRCLE, ICON_CIRCLE, ICON_DETAILS, ICON_FILE, ICON_FOLDER, ICON_LAMP_SPARK, ICON_LINK, ICON_REDO, ICON_TASKS, ICON_TIMES_CIRCLE, ICON_WRENCH];
|
|
123
152
|
|
|
124
153
|
let sequence$1 = 0;
|
|
125
154
|
/** Os textos da família, com a sobrescrita do input `texts` da peça. */
|
|
@@ -133,27 +162,44 @@ class AgentDisclosureComponent {
|
|
|
133
162
|
heading = input.required(...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
134
163
|
detail = input('', ...(ngDevMode ? [{ debugName: "detail" }] : /* istanbul ignore next */ []));
|
|
135
164
|
icon = input('', ...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
165
|
+
/** Estado do trabalho, no lugar do ícone. */
|
|
166
|
+
status = input(null, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
136
167
|
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
137
168
|
panelId = `hm-agent-disclosure-${++sequence$1}`;
|
|
169
|
+
#i18n = inject(HermesI18nService);
|
|
170
|
+
statusText = computed(() => {
|
|
171
|
+
const status = this.status();
|
|
172
|
+
return status ? this.#i18n.pick(TRACE_MESSAGES, TRACE_MESSAGES_PT_BR)[status] : '';
|
|
173
|
+
}, ...(ngDevMode ? [{ debugName: "statusText" }] : /* istanbul ignore next */ []));
|
|
138
174
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentDisclosureComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
139
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentDisclosureComponent, isStandalone: true, selector: "hm-agent-disclosure", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, detail: { classPropertyName: "detail", publicName: "detail", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { classAttribute: "hm-agent-disclosure" }, ngImport: i0, template: `
|
|
140
|
-
<button
|
|
141
|
-
type="button"
|
|
142
|
-
class="hm-agent-disclosure__trigger"
|
|
143
|
-
[attr.aria-expanded]="open()"
|
|
144
|
-
[attr.aria-controls]="panelId"
|
|
145
|
-
(click)="open.set(!open())"
|
|
146
|
-
>
|
|
147
|
-
@if (
|
|
148
|
-
<
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
175
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentDisclosureComponent, isStandalone: true, selector: "hm-agent-disclosure", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, detail: { classPropertyName: "detail", publicName: "detail", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { classAttribute: "hm-agent-disclosure" }, ngImport: i0, template: `
|
|
176
|
+
<button
|
|
177
|
+
type="button"
|
|
178
|
+
class="hm-agent-disclosure__trigger"
|
|
179
|
+
[attr.aria-expanded]="open()"
|
|
180
|
+
[attr.aria-controls]="panelId"
|
|
181
|
+
(click)="open.set(!open())"
|
|
182
|
+
>
|
|
183
|
+
@if (status(); as current) {
|
|
184
|
+
<span class="hm-agent-disclosure__mark" [attr.data-status]="current" aria-hidden="true">
|
|
185
|
+
@switch (current) {
|
|
186
|
+
@case ('running') { <span class="hm-spinner"></span> }
|
|
187
|
+
@case ('done') { <hm-icon shape="check-circle" /> }
|
|
188
|
+
@case ('error') { <hm-icon shape="times-circle" /> }
|
|
189
|
+
@default { <hm-icon shape="circle" /> }
|
|
190
|
+
}
|
|
191
|
+
</span>
|
|
192
|
+
<span class="hm-visually-hidden">{{ statusText() }}</span>
|
|
193
|
+
} @else if (icon()) {
|
|
194
|
+
<hm-icon class="hm-agent-disclosure__icon" [shape]="icon()" aria-hidden="true" />
|
|
195
|
+
}
|
|
196
|
+
<span class="hm-agent-disclosure__heading">{{ heading() }}</span>
|
|
197
|
+
@if (detail()) {
|
|
198
|
+
<span class="hm-agent-disclosure__detail">{{ detail() }}</span>
|
|
199
|
+
}
|
|
200
|
+
<hm-icon class="hm-agent-disclosure__chevron" shape="angle" aria-hidden="true" />
|
|
201
|
+
</button>
|
|
202
|
+
<div class="hm-agent-disclosure__panel" [id]="panelId" [hidden]="!open()"><ng-content /></div>
|
|
157
203
|
`, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
158
204
|
}
|
|
159
205
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentDisclosureComponent, decorators: [{
|
|
@@ -163,27 +209,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
163
209
|
imports: [IconComponent],
|
|
164
210
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
165
211
|
host: { class: 'hm-agent-disclosure' },
|
|
166
|
-
template: `
|
|
167
|
-
<button
|
|
168
|
-
type="button"
|
|
169
|
-
class="hm-agent-disclosure__trigger"
|
|
170
|
-
[attr.aria-expanded]="open()"
|
|
171
|
-
[attr.aria-controls]="panelId"
|
|
172
|
-
(click)="open.set(!open())"
|
|
173
|
-
>
|
|
174
|
-
@if (
|
|
175
|
-
<
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
212
|
+
template: `
|
|
213
|
+
<button
|
|
214
|
+
type="button"
|
|
215
|
+
class="hm-agent-disclosure__trigger"
|
|
216
|
+
[attr.aria-expanded]="open()"
|
|
217
|
+
[attr.aria-controls]="panelId"
|
|
218
|
+
(click)="open.set(!open())"
|
|
219
|
+
>
|
|
220
|
+
@if (status(); as current) {
|
|
221
|
+
<span class="hm-agent-disclosure__mark" [attr.data-status]="current" aria-hidden="true">
|
|
222
|
+
@switch (current) {
|
|
223
|
+
@case ('running') { <span class="hm-spinner"></span> }
|
|
224
|
+
@case ('done') { <hm-icon shape="check-circle" /> }
|
|
225
|
+
@case ('error') { <hm-icon shape="times-circle" /> }
|
|
226
|
+
@default { <hm-icon shape="circle" /> }
|
|
227
|
+
}
|
|
228
|
+
</span>
|
|
229
|
+
<span class="hm-visually-hidden">{{ statusText() }}</span>
|
|
230
|
+
} @else if (icon()) {
|
|
231
|
+
<hm-icon class="hm-agent-disclosure__icon" [shape]="icon()" aria-hidden="true" />
|
|
232
|
+
}
|
|
233
|
+
<span class="hm-agent-disclosure__heading">{{ heading() }}</span>
|
|
234
|
+
@if (detail()) {
|
|
235
|
+
<span class="hm-agent-disclosure__detail">{{ detail() }}</span>
|
|
236
|
+
}
|
|
237
|
+
<hm-icon class="hm-agent-disclosure__chevron" shape="angle" aria-hidden="true" />
|
|
238
|
+
</button>
|
|
239
|
+
<div class="hm-agent-disclosure__panel" [id]="panelId" [hidden]="!open()"><ng-content /></div>
|
|
184
240
|
`,
|
|
185
241
|
}]
|
|
186
|
-
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], detail: [{ type: i0.Input, args: [{ isSignal: true, alias: "detail", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }] } });
|
|
242
|
+
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], detail: [{ type: i0.Input, args: [{ isSignal: true, alias: "detail", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }] } });
|
|
187
243
|
|
|
188
244
|
let sequence = 0;
|
|
189
245
|
/**
|
|
@@ -204,24 +260,24 @@ class ToolConfirmationComponent {
|
|
|
204
260
|
text = useAgentMessages(this.texts);
|
|
205
261
|
headingId = `hm-tool-confirmation-${++sequence}`;
|
|
206
262
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ToolConfirmationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
207
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ToolConfirmationComponent, isStandalone: true, selector: "hm-tool-confirmation", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { approved: "approved", denied: "denied" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-labelledby": "headingId" }, classAttribute: "hm-agent-card hm-tool-confirmation" }, ngImport: i0, template: `
|
|
208
|
-
<hm-icon class="hm-agent-card__icon" [shape]="icon()" aria-hidden="true" />
|
|
209
|
-
<div class="hm-agent-card__body">
|
|
210
|
-
<p class="hm-agent-card__heading" [id]="headingId">{{ heading() }}</p>
|
|
211
|
-
@if (description()) {
|
|
212
|
-
<p class="hm-agent-card__description">{{ description() }}</p>
|
|
213
|
-
}
|
|
214
|
-
</div>
|
|
215
|
-
<div class="hm-agent-card__actions">
|
|
216
|
-
@switch (state()) {
|
|
217
|
-
@case ('approved') { <span class="hm-tool-confirmation__result" role="status">{{ text().approved }}</span> }
|
|
218
|
-
@case ('denied') { <span class="hm-tool-confirmation__result" role="status">{{ text().denied }}</span> }
|
|
219
|
-
@default {
|
|
220
|
-
<hm-button size="small" emphasis="medium" [disabled]="busy()" (clicked)="denied.emit()">{{ text().deny }}</hm-button>
|
|
221
|
-
<hm-button size="small" emphasis="high" [loading]="busy()" (clicked)="approved.emit()">{{ text().approve }}</hm-button>
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
</div>
|
|
263
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ToolConfirmationComponent, isStandalone: true, selector: "hm-tool-confirmation", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, state: { classPropertyName: "state", publicName: "state", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { approved: "approved", denied: "denied" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-labelledby": "headingId" }, classAttribute: "hm-agent-card hm-tool-confirmation" }, ngImport: i0, template: `
|
|
264
|
+
<hm-icon class="hm-agent-card__icon" [shape]="icon()" aria-hidden="true" />
|
|
265
|
+
<div class="hm-agent-card__body">
|
|
266
|
+
<p class="hm-agent-card__heading" [id]="headingId">{{ heading() }}</p>
|
|
267
|
+
@if (description()) {
|
|
268
|
+
<p class="hm-agent-card__description">{{ description() }}</p>
|
|
269
|
+
}
|
|
270
|
+
</div>
|
|
271
|
+
<div class="hm-agent-card__actions">
|
|
272
|
+
@switch (state()) {
|
|
273
|
+
@case ('approved') { <span class="hm-tool-confirmation__result" role="status">{{ text().approved }}</span> }
|
|
274
|
+
@case ('denied') { <span class="hm-tool-confirmation__result" role="status">{{ text().denied }}</span> }
|
|
275
|
+
@default {
|
|
276
|
+
<hm-button size="small" emphasis="medium" [disabled]="busy()" (clicked)="denied.emit()">{{ text().deny }}</hm-button>
|
|
277
|
+
<hm-button size="small" emphasis="high" [loading]="busy()" (clicked)="approved.emit()">{{ text().approve }}</hm-button>
|
|
278
|
+
}
|
|
279
|
+
}
|
|
280
|
+
</div>
|
|
225
281
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
226
282
|
}
|
|
227
283
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ToolConfirmationComponent, decorators: [{
|
|
@@ -231,24 +287,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
231
287
|
imports: [ButtonComponent, IconComponent],
|
|
232
288
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
233
289
|
host: { class: 'hm-agent-card hm-tool-confirmation', role: 'group', '[attr.aria-labelledby]': 'headingId' },
|
|
234
|
-
template: `
|
|
235
|
-
<hm-icon class="hm-agent-card__icon" [shape]="icon()" aria-hidden="true" />
|
|
236
|
-
<div class="hm-agent-card__body">
|
|
237
|
-
<p class="hm-agent-card__heading" [id]="headingId">{{ heading() }}</p>
|
|
238
|
-
@if (description()) {
|
|
239
|
-
<p class="hm-agent-card__description">{{ description() }}</p>
|
|
240
|
-
}
|
|
241
|
-
</div>
|
|
242
|
-
<div class="hm-agent-card__actions">
|
|
243
|
-
@switch (state()) {
|
|
244
|
-
@case ('approved') { <span class="hm-tool-confirmation__result" role="status">{{ text().approved }}</span> }
|
|
245
|
-
@case ('denied') { <span class="hm-tool-confirmation__result" role="status">{{ text().denied }}</span> }
|
|
246
|
-
@default {
|
|
247
|
-
<hm-button size="small" emphasis="medium" [disabled]="busy()" (clicked)="denied.emit()">{{ text().deny }}</hm-button>
|
|
248
|
-
<hm-button size="small" emphasis="high" [loading]="busy()" (clicked)="approved.emit()">{{ text().approve }}</hm-button>
|
|
249
|
-
}
|
|
250
|
-
}
|
|
251
|
-
</div>
|
|
290
|
+
template: `
|
|
291
|
+
<hm-icon class="hm-agent-card__icon" [shape]="icon()" aria-hidden="true" />
|
|
292
|
+
<div class="hm-agent-card__body">
|
|
293
|
+
<p class="hm-agent-card__heading" [id]="headingId">{{ heading() }}</p>
|
|
294
|
+
@if (description()) {
|
|
295
|
+
<p class="hm-agent-card__description">{{ description() }}</p>
|
|
296
|
+
}
|
|
297
|
+
</div>
|
|
298
|
+
<div class="hm-agent-card__actions">
|
|
299
|
+
@switch (state()) {
|
|
300
|
+
@case ('approved') { <span class="hm-tool-confirmation__result" role="status">{{ text().approved }}</span> }
|
|
301
|
+
@case ('denied') { <span class="hm-tool-confirmation__result" role="status">{{ text().denied }}</span> }
|
|
302
|
+
@default {
|
|
303
|
+
<hm-button size="small" emphasis="medium" [disabled]="busy()" (clicked)="denied.emit()">{{ text().deny }}</hm-button>
|
|
304
|
+
<hm-button size="small" emphasis="high" [loading]="busy()" (clicked)="approved.emit()">{{ text().approve }}</hm-button>
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
</div>
|
|
252
308
|
`,
|
|
253
309
|
}]
|
|
254
310
|
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], state: [{ type: i0.Input, args: [{ isSignal: true, alias: "state", required: false }] }], busy: [{ type: i0.Input, args: [{ isSignal: true, alias: "busy", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }], approved: [{ type: i0.Output, args: ["approved"] }], denied: [{ type: i0.Output, args: ["denied"] }] } });
|
|
@@ -262,22 +318,22 @@ class AgentSourcesComponent {
|
|
|
262
318
|
text = useAgentMessages(this.texts);
|
|
263
319
|
heading = computed(() => pluralMessage(this.text().sources, this.sources().length, this.#i18n.formatLocale()), ...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
264
320
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentSourcesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
265
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentSourcesComponent, isStandalone: true, selector: "hm-agent-sources", inputs: { sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-sources" }, ngImport: i0, template: `
|
|
266
|
-
@if (sources().length) {
|
|
267
|
-
<hm-agent-disclosure icon="link" [heading]="heading()">
|
|
268
|
-
<ul class="hm-agent-sources__list">
|
|
269
|
-
@for (source of sources(); track source.url) {
|
|
270
|
-
<li>
|
|
271
|
-
<a class="hm-agent-sources__link" [href]="source.url" target="_blank" rel="noopener noreferrer">{{ source.title }}</a>
|
|
272
|
-
@if (source.description) {
|
|
273
|
-
<p class="hm-agent-sources__description">{{ source.description }}</p>
|
|
274
|
-
}
|
|
275
|
-
</li>
|
|
276
|
-
}
|
|
277
|
-
</ul>
|
|
278
|
-
</hm-agent-disclosure>
|
|
279
|
-
}
|
|
280
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "open"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
321
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentSourcesComponent, isStandalone: true, selector: "hm-agent-sources", inputs: { sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-sources" }, ngImport: i0, template: `
|
|
322
|
+
@if (sources().length) {
|
|
323
|
+
<hm-agent-disclosure icon="link" [heading]="heading()">
|
|
324
|
+
<ul class="hm-agent-sources__list">
|
|
325
|
+
@for (source of sources(); track source.url) {
|
|
326
|
+
<li>
|
|
327
|
+
<a class="hm-agent-sources__link" [href]="source.url" target="_blank" rel="noopener noreferrer">{{ source.title }}<span class="hm-visually-hidden"> {{ text().opensInNewTab }}</span></a>
|
|
328
|
+
@if (source.description) {
|
|
329
|
+
<p class="hm-agent-sources__description">{{ source.description }}</p>
|
|
330
|
+
}
|
|
331
|
+
</li>
|
|
332
|
+
}
|
|
333
|
+
</ul>
|
|
334
|
+
</hm-agent-disclosure>
|
|
335
|
+
}
|
|
336
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "status", "open"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
281
337
|
}
|
|
282
338
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentSourcesComponent, decorators: [{
|
|
283
339
|
type: Component,
|
|
@@ -286,21 +342,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
286
342
|
imports: [AgentDisclosureComponent],
|
|
287
343
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
288
344
|
host: { class: 'hm-agent-sources' },
|
|
289
|
-
template: `
|
|
290
|
-
@if (sources().length) {
|
|
291
|
-
<hm-agent-disclosure icon="link" [heading]="heading()">
|
|
292
|
-
<ul class="hm-agent-sources__list">
|
|
293
|
-
@for (source of sources(); track source.url) {
|
|
294
|
-
<li>
|
|
295
|
-
<a class="hm-agent-sources__link" [href]="source.url" target="_blank" rel="noopener noreferrer">{{ source.title }}</a>
|
|
296
|
-
@if (source.description) {
|
|
297
|
-
<p class="hm-agent-sources__description">{{ source.description }}</p>
|
|
298
|
-
}
|
|
299
|
-
</li>
|
|
300
|
-
}
|
|
301
|
-
</ul>
|
|
302
|
-
</hm-agent-disclosure>
|
|
303
|
-
}
|
|
345
|
+
template: `
|
|
346
|
+
@if (sources().length) {
|
|
347
|
+
<hm-agent-disclosure icon="link" [heading]="heading()">
|
|
348
|
+
<ul class="hm-agent-sources__list">
|
|
349
|
+
@for (source of sources(); track source.url) {
|
|
350
|
+
<li>
|
|
351
|
+
<a class="hm-agent-sources__link" [href]="source.url" target="_blank" rel="noopener noreferrer">{{ source.title }}<span class="hm-visually-hidden"> {{ text().opensInNewTab }}</span></a>
|
|
352
|
+
@if (source.description) {
|
|
353
|
+
<p class="hm-agent-sources__description">{{ source.description }}</p>
|
|
354
|
+
}
|
|
355
|
+
</li>
|
|
356
|
+
}
|
|
357
|
+
</ul>
|
|
358
|
+
</hm-agent-disclosure>
|
|
359
|
+
}
|
|
304
360
|
`,
|
|
305
361
|
}]
|
|
306
362
|
}], propDecorators: { sources: [{ type: i0.Input, args: [{ isSignal: true, alias: "sources", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -313,14 +369,14 @@ class InlineCitationComponent {
|
|
|
313
369
|
text = useAgentMessages(this.texts);
|
|
314
370
|
label = computed(() => formatMessage(this.text().citation, { index: this.index(), title: this.source().title }), ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
315
371
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: InlineCitationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
316
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: InlineCitationComponent, isStandalone: true, selector: "hm-inline-citation", inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: true, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-inline-citation" }, ngImport: i0, template: `
|
|
317
|
-
<button type="button" class="hm-inline-citation__trigger" [attr.aria-label]="label()" [hmPopoverTrigger]="details">{{ index() }}</button>
|
|
318
|
-
<hm-popover #details [heading]="source().title" [arrow]="false">
|
|
319
|
-
@if (source().description) {
|
|
320
|
-
<p class="hm-agent-sources__description">{{ source().description }}</p>
|
|
321
|
-
}
|
|
322
|
-
<a class="hm-agent-sources__link" [href]="source().url" target="_blank" rel="noopener noreferrer">{{ source().url }}</a>
|
|
323
|
-
</hm-popover>
|
|
372
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: InlineCitationComponent, isStandalone: true, selector: "hm-inline-citation", inputs: { index: { classPropertyName: "index", publicName: "index", isSignal: true, isRequired: true, transformFunction: null }, source: { classPropertyName: "source", publicName: "source", isSignal: true, isRequired: true, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-inline-citation" }, ngImport: i0, template: `
|
|
373
|
+
<button type="button" class="hm-inline-citation__trigger" [attr.aria-label]="label()" [hmPopoverTrigger]="details">{{ index() }}</button>
|
|
374
|
+
<hm-popover #details [heading]="source().title" [arrow]="false">
|
|
375
|
+
@if (source().description) {
|
|
376
|
+
<p class="hm-agent-sources__description">{{ source().description }}</p>
|
|
377
|
+
}
|
|
378
|
+
<a class="hm-agent-sources__link" [href]="source().url" target="_blank" rel="noopener noreferrer">{{ source().url }}<span class="hm-visually-hidden"> {{ text().opensInNewTab }}</span></a>
|
|
379
|
+
</hm-popover>
|
|
324
380
|
`, isInline: true, dependencies: [{ kind: "component", type: PopoverComponent, selector: "hm-popover", inputs: ["open", "heading", "headingLevel", "label", "describedBy", "side", "align", "arrow", "closable", "closeLabel", "closeOnOutsideClick", "openOn", "openDelay", "closeDelay"], outputs: ["openChange"] }, { kind: "directive", type: PopoverTriggerDirective, selector: "[hmPopoverTrigger]", inputs: ["hmPopoverTrigger"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
325
381
|
}
|
|
326
382
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: InlineCitationComponent, decorators: [{
|
|
@@ -330,14 +386,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
330
386
|
imports: [PopoverComponent, PopoverTriggerDirective],
|
|
331
387
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
332
388
|
host: { class: 'hm-inline-citation' },
|
|
333
|
-
template: `
|
|
334
|
-
<button type="button" class="hm-inline-citation__trigger" [attr.aria-label]="label()" [hmPopoverTrigger]="details">{{ index() }}</button>
|
|
335
|
-
<hm-popover #details [heading]="source().title" [arrow]="false">
|
|
336
|
-
@if (source().description) {
|
|
337
|
-
<p class="hm-agent-sources__description">{{ source().description }}</p>
|
|
338
|
-
}
|
|
339
|
-
<a class="hm-agent-sources__link" [href]="source().url" target="_blank" rel="noopener noreferrer">{{ source().url }}</a>
|
|
340
|
-
</hm-popover>
|
|
389
|
+
template: `
|
|
390
|
+
<button type="button" class="hm-inline-citation__trigger" [attr.aria-label]="label()" [hmPopoverTrigger]="details">{{ index() }}</button>
|
|
391
|
+
<hm-popover #details [heading]="source().title" [arrow]="false">
|
|
392
|
+
@if (source().description) {
|
|
393
|
+
<p class="hm-agent-sources__description">{{ source().description }}</p>
|
|
394
|
+
}
|
|
395
|
+
<a class="hm-agent-sources__link" [href]="source().url" target="_blank" rel="noopener noreferrer">{{ source().url }}<span class="hm-visually-hidden"> {{ text().opensInNewTab }}</span></a>
|
|
396
|
+
</hm-popover>
|
|
341
397
|
`,
|
|
342
398
|
}]
|
|
343
399
|
}], propDecorators: { index: [{ type: i0.Input, args: [{ isSignal: true, alias: "index", required: true }] }], source: [{ type: i0.Input, args: [{ isSignal: true, alias: "source", required: true }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -363,11 +419,11 @@ class ReasoningComponent {
|
|
|
363
419
|
effect(() => this.open.set(this.streaming()));
|
|
364
420
|
}
|
|
365
421
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ReasoningComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
366
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: ReasoningComponent, isStandalone: true, selector: "hm-reasoning", inputs: { streaming: { classPropertyName: "streaming", publicName: "streaming", isSignal: true, isRequired: false, transformFunction: null }, seconds: { classPropertyName: "seconds", publicName: "seconds", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-reasoning" }, ngImport: i0, template: `
|
|
367
|
-
<hm-agent-disclosure icon="lamp-spark" [heading]="heading()" [open]="open()" (openChange)="open.set($event)">
|
|
368
|
-
<div class="hm-reasoning__content"><ng-content /></div>
|
|
369
|
-
</hm-agent-disclosure>
|
|
370
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "open"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
422
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: ReasoningComponent, isStandalone: true, selector: "hm-reasoning", inputs: { streaming: { classPropertyName: "streaming", publicName: "streaming", isSignal: true, isRequired: false, transformFunction: null }, seconds: { classPropertyName: "seconds", publicName: "seconds", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-reasoning" }, ngImport: i0, template: `
|
|
423
|
+
<hm-agent-disclosure icon="lamp-spark" [heading]="heading()" [open]="open()" (openChange)="open.set($event)">
|
|
424
|
+
<div class="hm-reasoning__content"><ng-content /></div>
|
|
425
|
+
</hm-agent-disclosure>
|
|
426
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "status", "open"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
371
427
|
}
|
|
372
428
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ReasoningComponent, decorators: [{
|
|
373
429
|
type: Component,
|
|
@@ -376,10 +432,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
376
432
|
imports: [AgentDisclosureComponent],
|
|
377
433
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
378
434
|
host: { class: 'hm-reasoning' },
|
|
379
|
-
template: `
|
|
380
|
-
<hm-agent-disclosure icon="lamp-spark" [heading]="heading()" [open]="open()" (openChange)="open.set($event)">
|
|
381
|
-
<div class="hm-reasoning__content"><ng-content /></div>
|
|
382
|
-
</hm-agent-disclosure>
|
|
435
|
+
template: `
|
|
436
|
+
<hm-agent-disclosure icon="lamp-spark" [heading]="heading()" [open]="open()" (openChange)="open.set($event)">
|
|
437
|
+
<div class="hm-reasoning__content"><ng-content /></div>
|
|
438
|
+
</hm-agent-disclosure>
|
|
383
439
|
`,
|
|
384
440
|
}]
|
|
385
441
|
}], ctorParameters: () => [], propDecorators: { streaming: [{ type: i0.Input, args: [{ isSignal: true, alias: "streaming", required: false }] }], seconds: [{ type: i0.Input, args: [{ isSignal: true, alias: "seconds", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -387,21 +443,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
387
443
|
class AgentPlanComponent {
|
|
388
444
|
#icons = useHermesIcons(AGENT_ICONS);
|
|
389
445
|
heading = input.required(...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
446
|
+
/** O que o plano resolve, acima das etapas. */
|
|
447
|
+
description = input('', ...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
|
|
390
448
|
steps = input([], ...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
|
|
391
449
|
texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
392
450
|
text = useAgentMessages(this.texts);
|
|
393
451
|
done = computed(() => this.steps().filter((step) => step.status === 'done').length, ...(ngDevMode ? [{ debugName: "done" }] : /* istanbul ignore next */ []));
|
|
394
452
|
progress = computed(() => formatMessage(this.text().planProgress, { done: this.done(), total: this.steps().length }), ...(ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []));
|
|
395
453
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentPlanComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
396
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentPlanComponent, isStandalone: true, selector: "hm-agent-plan", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-card hm-agent-card--column hm-agent-plan" }, ngImport: i0, template: `
|
|
397
|
-
<p class="hm-agent-card__heading">{{ heading() }}</p>
|
|
398
|
-
|
|
399
|
-
<hm-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
454
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentPlanComponent, isStandalone: true, selector: "hm-agent-plan", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-card hm-agent-card--column hm-agent-plan" }, ngImport: i0, template: `
|
|
455
|
+
<p class="hm-agent-card__heading">{{ heading() }}</p>
|
|
456
|
+
@if (description()) { <p class="hm-agent-card__description">{{ description() }}</p> }
|
|
457
|
+
<hm-progress size="small" [value]="done()" [max]="steps().length || 1" [label]="progress()" [showValue]="false" />
|
|
458
|
+
<hm-trace [label]="text().stepsLabel">
|
|
459
|
+
@for (step of steps(); track step.id) {
|
|
460
|
+
<hm-trace-item [heading]="step.label" [status]="step.status" />
|
|
461
|
+
}
|
|
462
|
+
</hm-trace>
|
|
463
|
+
`, isInline: true, dependencies: [{ kind: "component", type: ProgressComponent, selector: "hm-progress", inputs: ["value", "max", "label", "labelHidden", "showValue", "indeterminate", "intent", "size", "hint", "shape"] }, { kind: "component", type: TraceComponent, selector: "hm-trace", inputs: ["label"] }, { kind: "component", type: TraceItemComponent, selector: "hm-trace-item", inputs: ["heading", "detail", "status", "expandable", "open", "href", "external", "texts"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
405
464
|
}
|
|
406
465
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentPlanComponent, decorators: [{
|
|
407
466
|
type: Component,
|
|
@@ -410,17 +469,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
410
469
|
imports: [ProgressComponent, TraceComponent, TraceItemComponent],
|
|
411
470
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
412
471
|
host: { class: 'hm-agent-card hm-agent-card--column hm-agent-plan' },
|
|
413
|
-
template: `
|
|
414
|
-
<p class="hm-agent-card__heading">{{ heading() }}</p>
|
|
415
|
-
|
|
416
|
-
<hm-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
472
|
+
template: `
|
|
473
|
+
<p class="hm-agent-card__heading">{{ heading() }}</p>
|
|
474
|
+
@if (description()) { <p class="hm-agent-card__description">{{ description() }}</p> }
|
|
475
|
+
<hm-progress size="small" [value]="done()" [max]="steps().length || 1" [label]="progress()" [showValue]="false" />
|
|
476
|
+
<hm-trace [label]="text().stepsLabel">
|
|
477
|
+
@for (step of steps(); track step.id) {
|
|
478
|
+
<hm-trace-item [heading]="step.label" [status]="step.status" />
|
|
479
|
+
}
|
|
480
|
+
</hm-trace>
|
|
421
481
|
`,
|
|
422
482
|
}]
|
|
423
|
-
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], steps: [{ type: i0.Input, args: [{ isSignal: true, alias: "steps", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
483
|
+
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], steps: [{ type: i0.Input, args: [{ isSignal: true, alias: "steps", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
424
484
|
/** Uma tarefa de um agente, com os passos conforme ele os executa. */
|
|
425
485
|
class AgentTaskComponent {
|
|
426
486
|
#icons = useHermesIcons(AGENT_ICONS);
|
|
@@ -430,23 +490,37 @@ class AgentTaskComponent {
|
|
|
430
490
|
texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
431
491
|
text = useAgentMessages(this.texts);
|
|
432
492
|
open = signal(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
493
|
+
/** Resume os passos: uma falha pesa mais que o andamento; sem passos, fica o ícone. */
|
|
494
|
+
status = computed(() => {
|
|
495
|
+
const steps = this.steps();
|
|
496
|
+
if (!steps.length)
|
|
497
|
+
return null;
|
|
498
|
+
if (steps.some((step) => step.status === 'error'))
|
|
499
|
+
return 'error';
|
|
500
|
+
if (steps.some((step) => step.status === 'running'))
|
|
501
|
+
return 'running';
|
|
502
|
+
return steps.every((step) => step.status === 'done') ? 'done' : 'pending';
|
|
503
|
+
}, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
504
|
+
detail = computed(() => {
|
|
505
|
+
const progress = formatMessage(this.text().planProgress, {
|
|
506
|
+
done: this.steps().filter((step) => step.status === 'done').length,
|
|
507
|
+
total: this.steps().length,
|
|
508
|
+
});
|
|
509
|
+
return this.status() === 'error' ? `${progress} · ${this.text().taskFailed}` : progress;
|
|
510
|
+
}, ...(ngDevMode ? [{ debugName: "detail" }] : /* istanbul ignore next */ []));
|
|
437
511
|
constructor() {
|
|
438
512
|
effect(() => this.open.set(this.expanded()));
|
|
439
513
|
}
|
|
440
514
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentTaskComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
441
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentTaskComponent, isStandalone: true, selector: "hm-agent-task", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-task" }, ngImport: i0, template: `
|
|
442
|
-
<hm-agent-disclosure icon="tasks" [heading]="heading()" [detail]="detail()" [open]="open()" (openChange)="open.set($event)">
|
|
443
|
-
<hm-trace [label]="text().stepsLabel">
|
|
444
|
-
@for (step of steps(); track step.id) {
|
|
445
|
-
<hm-trace-item [heading]="step.label" [status]="step.status" />
|
|
446
|
-
}
|
|
447
|
-
</hm-trace>
|
|
448
|
-
</hm-agent-disclosure>
|
|
449
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "open"], outputs: ["openChange"] }, { kind: "component", type: TraceComponent, selector: "hm-trace", inputs: ["label"] }, { kind: "component", type: TraceItemComponent, selector: "hm-trace-item", inputs: ["heading", "detail", "status", "expandable", "texts"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
515
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentTaskComponent, isStandalone: true, selector: "hm-agent-task", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-task" }, ngImport: i0, template: `
|
|
516
|
+
<hm-agent-disclosure icon="tasks" [status]="status()" [heading]="heading()" [detail]="detail()" [open]="open()" (openChange)="open.set($event)">
|
|
517
|
+
<hm-trace [label]="text().stepsLabel">
|
|
518
|
+
@for (step of steps(); track step.id) {
|
|
519
|
+
<hm-trace-item [heading]="step.label" [status]="step.status" />
|
|
520
|
+
}
|
|
521
|
+
</hm-trace>
|
|
522
|
+
</hm-agent-disclosure>
|
|
523
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "status", "open"], outputs: ["openChange"] }, { kind: "component", type: TraceComponent, selector: "hm-trace", inputs: ["label"] }, { kind: "component", type: TraceItemComponent, selector: "hm-trace-item", inputs: ["heading", "detail", "status", "expandable", "open", "href", "external", "texts"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
450
524
|
}
|
|
451
525
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentTaskComponent, decorators: [{
|
|
452
526
|
type: Component,
|
|
@@ -455,14 +529,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
455
529
|
imports: [AgentDisclosureComponent, TraceComponent, TraceItemComponent],
|
|
456
530
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
457
531
|
host: { class: 'hm-agent-task' },
|
|
458
|
-
template: `
|
|
459
|
-
<hm-agent-disclosure icon="tasks" [heading]="heading()" [detail]="detail()" [open]="open()" (openChange)="open.set($event)">
|
|
460
|
-
<hm-trace [label]="text().stepsLabel">
|
|
461
|
-
@for (step of steps(); track step.id) {
|
|
462
|
-
<hm-trace-item [heading]="step.label" [status]="step.status" />
|
|
463
|
-
}
|
|
464
|
-
</hm-trace>
|
|
465
|
-
</hm-agent-disclosure>
|
|
532
|
+
template: `
|
|
533
|
+
<hm-agent-disclosure icon="tasks" [status]="status()" [heading]="heading()" [detail]="detail()" [open]="open()" (openChange)="open.set($event)">
|
|
534
|
+
<hm-trace [label]="text().stepsLabel">
|
|
535
|
+
@for (step of steps(); track step.id) {
|
|
536
|
+
<hm-trace-item [heading]="step.label" [status]="step.status" />
|
|
537
|
+
}
|
|
538
|
+
</hm-trace>
|
|
539
|
+
</hm-agent-disclosure>
|
|
466
540
|
`,
|
|
467
541
|
}]
|
|
468
542
|
}], ctorParameters: () => [], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], steps: [{ type: i0.Input, args: [{ isSignal: true, alias: "steps", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -475,49 +549,73 @@ class AgentQueueComponent {
|
|
|
475
549
|
pending = computed(() => this.items().filter((item) => !item.done), ...(ngDevMode ? [{ debugName: "pending" }] : /* istanbul ignore next */ []));
|
|
476
550
|
completed = computed(() => this.items().filter((item) => item.done), ...(ngDevMode ? [{ debugName: "completed" }] : /* istanbul ignore next */ []));
|
|
477
551
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentQueueComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
478
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentQueueComponent, isStandalone: true, selector: "hm-agent-queue", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "text().queueLabel" }, classAttribute: "hm-agent-card hm-agent-card--column hm-agent-queue" }, ngImport: i0, template: `
|
|
479
|
-
@if (pending().length) {
|
|
480
|
-
<p class="hm-agent-queue__title">{{ text().queuePending }} ({{ pending().length }})</p>
|
|
481
|
-
<ul class="hm-agent-queue__list">
|
|
482
|
-
@for (item of pending(); track item.id) {
|
|
483
|
-
<li class="hm-agent-queue__item"
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
552
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentQueueComponent, isStandalone: true, selector: "hm-agent-queue", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "text().queueLabel" }, classAttribute: "hm-agent-card hm-agent-card--column hm-agent-queue" }, ngImport: i0, template: `
|
|
553
|
+
@if (pending().length) {
|
|
554
|
+
<p class="hm-agent-queue__title">{{ text().queuePending }} ({{ pending().length }})</p>
|
|
555
|
+
<ul class="hm-agent-queue__list">
|
|
556
|
+
@for (item of pending(); track item.id) {
|
|
557
|
+
<li class="hm-agent-queue__item">
|
|
558
|
+
@if (item.description) {
|
|
559
|
+
<hm-agent-disclosure icon="circle" [heading]="item.label">{{ item.description }}</hm-agent-disclosure>
|
|
560
|
+
} @else {
|
|
561
|
+
<hm-icon shape="circle" aria-hidden="true" />{{ item.label }}
|
|
562
|
+
}
|
|
563
|
+
</li>
|
|
564
|
+
}
|
|
565
|
+
</ul>
|
|
566
|
+
}
|
|
567
|
+
@if (completed().length) {
|
|
568
|
+
<p class="hm-agent-queue__title">{{ text().queueDone }} ({{ completed().length }})</p>
|
|
569
|
+
<ul class="hm-agent-queue__list">
|
|
570
|
+
@for (item of completed(); track item.id) {
|
|
571
|
+
<li class="hm-agent-queue__item hm-agent-queue__item--done">
|
|
572
|
+
@if (item.description) {
|
|
573
|
+
<hm-agent-disclosure icon="check-circle" [heading]="item.label">{{ item.description }}</hm-agent-disclosure>
|
|
574
|
+
} @else {
|
|
575
|
+
<hm-icon shape="check-circle" aria-hidden="true" />{{ item.label }}
|
|
576
|
+
}
|
|
577
|
+
</li>
|
|
578
|
+
}
|
|
579
|
+
</ul>
|
|
580
|
+
}
|
|
581
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "status", "open"], outputs: ["openChange"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
496
582
|
}
|
|
497
583
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentQueueComponent, decorators: [{
|
|
498
584
|
type: Component,
|
|
499
585
|
args: [{
|
|
500
586
|
selector: 'hm-agent-queue',
|
|
501
|
-
imports: [IconComponent],
|
|
587
|
+
imports: [AgentDisclosureComponent, IconComponent],
|
|
502
588
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
503
589
|
host: { class: 'hm-agent-card hm-agent-card--column hm-agent-queue', role: 'group', '[attr.aria-label]': 'text().queueLabel' },
|
|
504
|
-
template: `
|
|
505
|
-
@if (pending().length) {
|
|
506
|
-
<p class="hm-agent-queue__title">{{ text().queuePending }} ({{ pending().length }})</p>
|
|
507
|
-
<ul class="hm-agent-queue__list">
|
|
508
|
-
@for (item of pending(); track item.id) {
|
|
509
|
-
<li class="hm-agent-queue__item"
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
590
|
+
template: `
|
|
591
|
+
@if (pending().length) {
|
|
592
|
+
<p class="hm-agent-queue__title">{{ text().queuePending }} ({{ pending().length }})</p>
|
|
593
|
+
<ul class="hm-agent-queue__list">
|
|
594
|
+
@for (item of pending(); track item.id) {
|
|
595
|
+
<li class="hm-agent-queue__item">
|
|
596
|
+
@if (item.description) {
|
|
597
|
+
<hm-agent-disclosure icon="circle" [heading]="item.label">{{ item.description }}</hm-agent-disclosure>
|
|
598
|
+
} @else {
|
|
599
|
+
<hm-icon shape="circle" aria-hidden="true" />{{ item.label }}
|
|
600
|
+
}
|
|
601
|
+
</li>
|
|
602
|
+
}
|
|
603
|
+
</ul>
|
|
604
|
+
}
|
|
605
|
+
@if (completed().length) {
|
|
606
|
+
<p class="hm-agent-queue__title">{{ text().queueDone }} ({{ completed().length }})</p>
|
|
607
|
+
<ul class="hm-agent-queue__list">
|
|
608
|
+
@for (item of completed(); track item.id) {
|
|
609
|
+
<li class="hm-agent-queue__item hm-agent-queue__item--done">
|
|
610
|
+
@if (item.description) {
|
|
611
|
+
<hm-agent-disclosure icon="check-circle" [heading]="item.label">{{ item.description }}</hm-agent-disclosure>
|
|
612
|
+
} @else {
|
|
613
|
+
<hm-icon shape="check-circle" aria-hidden="true" />{{ item.label }}
|
|
614
|
+
}
|
|
615
|
+
</li>
|
|
616
|
+
}
|
|
617
|
+
</ul>
|
|
618
|
+
}
|
|
521
619
|
`,
|
|
522
620
|
}]
|
|
523
621
|
}], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -525,14 +623,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
525
623
|
class ChainOfThoughtComponent {
|
|
526
624
|
#icons = useHermesIcons(AGENT_ICONS);
|
|
527
625
|
summary = input.required(...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
|
|
626
|
+
/** Começa aberto (os passos à vista). */
|
|
627
|
+
expanded = input(false, { ...(ngDevMode ? { debugName: "expanded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
528
628
|
texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
529
629
|
text = useAgentMessages(this.texts);
|
|
630
|
+
open = signal(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
631
|
+
constructor() {
|
|
632
|
+
effect(() => this.open.set(this.expanded()));
|
|
633
|
+
}
|
|
530
634
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ChainOfThoughtComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
531
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: ChainOfThoughtComponent, isStandalone: true, selector: "hm-chain-of-thought", inputs: { summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: true, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-chain-of-thought" }, ngImport: i0, template: `
|
|
532
|
-
<hm-agent-disclosure icon="lamp-spark" [heading]="summary()">
|
|
533
|
-
<hm-trace [label]="text().stepsLabel"><ng-content /></hm-trace>
|
|
534
|
-
</hm-agent-disclosure>
|
|
535
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "open"], outputs: ["openChange"] }, { kind: "component", type: TraceComponent, selector: "hm-trace", inputs: ["label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
635
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: ChainOfThoughtComponent, isStandalone: true, selector: "hm-chain-of-thought", inputs: { summary: { classPropertyName: "summary", publicName: "summary", isSignal: true, isRequired: true, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-chain-of-thought" }, ngImport: i0, template: `
|
|
636
|
+
<hm-agent-disclosure icon="lamp-spark" [heading]="summary()" [open]="open()" (openChange)="open.set($event)">
|
|
637
|
+
<hm-trace [label]="text().stepsLabel"><ng-content /></hm-trace>
|
|
638
|
+
</hm-agent-disclosure>
|
|
639
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "status", "open"], outputs: ["openChange"] }, { kind: "component", type: TraceComponent, selector: "hm-trace", inputs: ["label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
536
640
|
}
|
|
537
641
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ChainOfThoughtComponent, decorators: [{
|
|
538
642
|
type: Component,
|
|
@@ -541,13 +645,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
541
645
|
imports: [AgentDisclosureComponent, TraceComponent],
|
|
542
646
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
543
647
|
host: { class: 'hm-chain-of-thought' },
|
|
544
|
-
template: `
|
|
545
|
-
<hm-agent-disclosure icon="lamp-spark" [heading]="summary()">
|
|
546
|
-
<hm-trace [label]="text().stepsLabel"><ng-content /></hm-trace>
|
|
547
|
-
</hm-agent-disclosure>
|
|
648
|
+
template: `
|
|
649
|
+
<hm-agent-disclosure icon="lamp-spark" [heading]="summary()" [open]="open()" (openChange)="open.set($event)">
|
|
650
|
+
<hm-trace [label]="text().stepsLabel"><ng-content /></hm-trace>
|
|
651
|
+
</hm-agent-disclosure>
|
|
548
652
|
`,
|
|
549
653
|
}]
|
|
550
|
-
}], propDecorators: { summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: true }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
654
|
+
}], ctorParameters: () => [], propDecorators: { summary: [{ type: i0.Input, args: [{ isSignal: true, alias: "summary", required: true }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
551
655
|
/** O trabalho de um agente auxiliar: título, estado e o que ele fez (`hm-trace-item` ou resultado projetados). */
|
|
552
656
|
class SubagentComponent {
|
|
553
657
|
#icons = useHermesIcons(AGENT_ICONS);
|
|
@@ -555,12 +659,35 @@ class SubagentComponent {
|
|
|
555
659
|
/** O que o auxiliar faz, ou a duração. */
|
|
556
660
|
detail = input('', ...(ngDevMode ? [{ debugName: "detail" }] : /* istanbul ignore next */ []));
|
|
557
661
|
status = input('running', ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
662
|
+
/** O pedido que o auxiliar recebeu, no alto do conteúdo. */
|
|
663
|
+
task = input('', ...(ngDevMode ? [{ debugName: "task" }] : /* istanbul ignore next */ []));
|
|
664
|
+
/** O modelo que ele usa. */
|
|
665
|
+
model = input('', ...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
|
|
666
|
+
/** As ferramentas que ele pode chamar. */
|
|
667
|
+
tools = input([], ...(ngDevMode ? [{ debugName: "tools" }] : /* istanbul ignore next */ []));
|
|
668
|
+
texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
669
|
+
text = useAgentMessages(this.texts);
|
|
670
|
+
open = signal(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
671
|
+
constructor() {
|
|
672
|
+
// Aberto enquanto trabalha, para acompanhar; ao terminar, fica como a pessoa deixou.
|
|
673
|
+
effect(() => {
|
|
674
|
+
if (this.status() === 'running')
|
|
675
|
+
this.open.set(true);
|
|
676
|
+
});
|
|
677
|
+
}
|
|
558
678
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SubagentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
559
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
560
|
-
<hm-agent-disclosure
|
|
561
|
-
<
|
|
562
|
-
|
|
563
|
-
|
|
679
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: SubagentComponent, isStandalone: true, selector: "hm-subagent", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, detail: { classPropertyName: "detail", publicName: "detail", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, task: { classPropertyName: "task", publicName: "task", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, tools: { classPropertyName: "tools", publicName: "tools", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-status": "status()" }, classAttribute: "hm-subagent" }, ngImport: i0, template: `
|
|
680
|
+
<hm-agent-disclosure [status]="status()" [heading]="heading()" [detail]="detail()" [open]="open()" (openChange)="open.set($event)">
|
|
681
|
+
@if (task()) { <p class="hm-subagent__task">{{ task() }}</p> }
|
|
682
|
+
@if (model() || tools().length) {
|
|
683
|
+
<ul class="hm-agent-chips" [attr.aria-label]="text().subagentDetails">
|
|
684
|
+
@if (model()) { <li class="hm-agent-chip">{{ model() }}</li> }
|
|
685
|
+
@for (tool of tools(); track tool) { <li class="hm-agent-chip">{{ tool }}</li> }
|
|
686
|
+
</ul>
|
|
687
|
+
}
|
|
688
|
+
<ng-content />
|
|
689
|
+
</hm-agent-disclosure>
|
|
690
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "status", "open"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
564
691
|
}
|
|
565
692
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: SubagentComponent, decorators: [{
|
|
566
693
|
type: Component,
|
|
@@ -569,13 +696,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
569
696
|
imports: [AgentDisclosureComponent],
|
|
570
697
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
571
698
|
host: { class: 'hm-subagent', '[attr.data-status]': 'status()' },
|
|
572
|
-
template: `
|
|
573
|
-
<hm-agent-disclosure
|
|
574
|
-
<
|
|
575
|
-
|
|
699
|
+
template: `
|
|
700
|
+
<hm-agent-disclosure [status]="status()" [heading]="heading()" [detail]="detail()" [open]="open()" (openChange)="open.set($event)">
|
|
701
|
+
@if (task()) { <p class="hm-subagent__task">{{ task() }}</p> }
|
|
702
|
+
@if (model() || tools().length) {
|
|
703
|
+
<ul class="hm-agent-chips" [attr.aria-label]="text().subagentDetails">
|
|
704
|
+
@if (model()) { <li class="hm-agent-chip">{{ model() }}</li> }
|
|
705
|
+
@for (tool of tools(); track tool) { <li class="hm-agent-chip">{{ tool }}</li> }
|
|
706
|
+
</ul>
|
|
707
|
+
}
|
|
708
|
+
<ng-content />
|
|
709
|
+
</hm-agent-disclosure>
|
|
576
710
|
`,
|
|
577
711
|
}]
|
|
578
|
-
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], detail: [{ type: i0.Input, args: [{ isSignal: true, alias: "detail", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }] } });
|
|
712
|
+
}], ctorParameters: () => [], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], detail: [{ type: i0.Input, args: [{ isSignal: true, alias: "detail", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], task: [{ type: i0.Input, args: [{ isSignal: true, alias: "task", required: false }] }], model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], tools: [{ type: i0.Input, args: [{ isSignal: true, alias: "tools", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
579
713
|
/** Quanto do contexto do modelo a conversa já usou. Avisa em cor quando está perto do limite. */
|
|
580
714
|
class ContextUsageComponent {
|
|
581
715
|
#icons = useHermesIcons(AGENT_ICONS);
|
|
@@ -616,12 +750,12 @@ class ModelSelectorComponent {
|
|
|
616
750
|
texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
617
751
|
text = useAgentMessages(this.texts);
|
|
618
752
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ModelSelectorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
619
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ModelSelectorComponent, isStandalone: true, selector: "hm-model-selector", inputs: { models: { classPropertyName: "models", publicName: "models", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { classAttribute: "hm-model-selector" }, ngImport: i0, template: `
|
|
620
|
-
<hm-select [label]="label() || text().modelLabel" [labelHidden]="labelHidden()" [(value)]="value">
|
|
621
|
-
@for (option of models(); track option.id) {
|
|
622
|
-
<option [value]="option.id">{{ option.label }}</option>
|
|
623
|
-
}
|
|
624
|
-
</hm-select>
|
|
753
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ModelSelectorComponent, isStandalone: true, selector: "hm-model-selector", inputs: { models: { classPropertyName: "models", publicName: "models", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { classAttribute: "hm-model-selector" }, ngImport: i0, template: `
|
|
754
|
+
<hm-select [label]="label() || text().modelLabel" [labelHidden]="labelHidden()" [(value)]="value">
|
|
755
|
+
@for (option of models(); track option.id) {
|
|
756
|
+
<option [value]="option.id">{{ option.label }}</option>
|
|
757
|
+
}
|
|
758
|
+
</hm-select>
|
|
625
759
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.NgSelectOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "directive", type: i1.ɵNgSelectMultipleOption, selector: "option", inputs: ["ngValue", "value"] }, { kind: "component", type: SelectComponent, selector: "hm-select", inputs: ["value", "label", "labelHidden", "hint"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
626
760
|
}
|
|
627
761
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ModelSelectorComponent, decorators: [{
|
|
@@ -631,12 +765,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
631
765
|
imports: [FormsModule, SelectComponent],
|
|
632
766
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
633
767
|
host: { class: 'hm-model-selector' },
|
|
634
|
-
template: `
|
|
635
|
-
<hm-select [label]="label() || text().modelLabel" [labelHidden]="labelHidden()" [(value)]="value">
|
|
636
|
-
@for (option of models(); track option.id) {
|
|
637
|
-
<option [value]="option.id">{{ option.label }}</option>
|
|
638
|
-
}
|
|
639
|
-
</hm-select>
|
|
768
|
+
template: `
|
|
769
|
+
<hm-select [label]="label() || text().modelLabel" [labelHidden]="labelHidden()" [(value)]="value">
|
|
770
|
+
@for (option of models(); track option.id) {
|
|
771
|
+
<option [value]="option.id">{{ option.label }}</option>
|
|
772
|
+
}
|
|
773
|
+
</hm-select>
|
|
640
774
|
`,
|
|
641
775
|
}]
|
|
642
776
|
}], propDecorators: { models: [{ type: i0.Input, args: [{ isSignal: true, alias: "models", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], labelHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelHidden", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -648,9 +782,9 @@ class CheckpointComponent {
|
|
|
648
782
|
restore = output();
|
|
649
783
|
text = useAgentMessages(this.texts);
|
|
650
784
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: CheckpointComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
651
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: CheckpointComponent, isStandalone: true, selector: "hm-checkpoint", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { restore: "restore" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "label() || text().checkpoint" }, classAttribute: "hm-checkpoint" }, ngImport: i0, template: `
|
|
652
|
-
<span class="hm-checkpoint__label">{{ label() || text().checkpoint }}</span>
|
|
653
|
-
<hm-button size="small" emphasis="medium" icon="redo" (clicked)="restore.emit()">{{ text().restore }}</hm-button>
|
|
785
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.24", type: CheckpointComponent, isStandalone: true, selector: "hm-checkpoint", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { restore: "restore" }, host: { attributes: { "role": "group" }, properties: { "attr.aria-label": "label() || text().checkpoint" }, classAttribute: "hm-checkpoint" }, ngImport: i0, template: `
|
|
786
|
+
<span class="hm-checkpoint__label">{{ label() || text().checkpoint }}</span>
|
|
787
|
+
<hm-button size="small" emphasis="medium" icon="redo" (clicked)="restore.emit()">{{ text().restore }}</hm-button>
|
|
654
788
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
655
789
|
}
|
|
656
790
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: CheckpointComponent, decorators: [{
|
|
@@ -660,9 +794,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
660
794
|
imports: [ButtonComponent],
|
|
661
795
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
662
796
|
host: { class: 'hm-checkpoint', role: 'group', '[attr.aria-label]': 'label() || text().checkpoint' },
|
|
663
|
-
template: `
|
|
664
|
-
<span class="hm-checkpoint__label">{{ label() || text().checkpoint }}</span>
|
|
665
|
-
<hm-button size="small" emphasis="medium" icon="redo" (clicked)="restore.emit()">{{ text().restore }}</hm-button>
|
|
797
|
+
template: `
|
|
798
|
+
<span class="hm-checkpoint__label">{{ label() || text().checkpoint }}</span>
|
|
799
|
+
<hm-button size="small" emphasis="medium" icon="redo" (clicked)="restore.emit()">{{ text().restore }}</hm-button>
|
|
666
800
|
`,
|
|
667
801
|
}]
|
|
668
802
|
}], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }], restore: [{ type: i0.Output, args: ["restore"] }] } });
|
|
@@ -696,15 +830,15 @@ class FileTreeComponent {
|
|
|
696
830
|
return { added: this.text().fileAdded, modified: this.text().fileModified, deleted: this.text().fileDeleted }[status];
|
|
697
831
|
}
|
|
698
832
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: FileTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
699
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: FileTreeComponent, isStandalone: true, selector: "hm-file-tree", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { classAttribute: "hm-file-tree" }, ngImport: i0, template: `
|
|
700
|
-
<hm-tree [nodes]="nodes()" [label]="label() || text().filesLabel" [selectable]="false" [(expanded)]="expanded">
|
|
701
|
-
<ng-template hmTreeNode let-node>
|
|
702
|
-
<span class="hm-file-tree__name">{{ node.label }}</span>
|
|
703
|
-
@if (statusText(node.id); as status) {
|
|
704
|
-
<span class="hm-file-tree__status" [attr.data-status]="statusOf(node.id)">{{ status }}</span>
|
|
705
|
-
}
|
|
706
|
-
</ng-template>
|
|
707
|
-
</hm-tree>
|
|
833
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: FileTreeComponent, isStandalone: true, selector: "hm-file-tree", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, expanded: { classPropertyName: "expanded", publicName: "expanded", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { expanded: "expandedChange" }, host: { classAttribute: "hm-file-tree" }, ngImport: i0, template: `
|
|
834
|
+
<hm-tree [nodes]="nodes()" [label]="label() || text().filesLabel" [selectable]="false" [(expanded)]="expanded">
|
|
835
|
+
<ng-template hmTreeNode let-node>
|
|
836
|
+
<span class="hm-file-tree__name">{{ node.label }}</span>
|
|
837
|
+
@if (statusText(node.id); as status) {
|
|
838
|
+
<span class="hm-file-tree__status" [attr.data-status]="statusOf(node.id)">{{ status }}</span>
|
|
839
|
+
}
|
|
840
|
+
</ng-template>
|
|
841
|
+
</hm-tree>
|
|
708
842
|
`, isInline: true, dependencies: [{ kind: "component", type: TreeComponent, selector: "hm-tree", inputs: ["nodes", "label", "emptyMessage", "selectable", "selectionMode", "selection", "selected", "expanded", "activeId", "loadChildren", "draggable", "canDrop", "nodeActions"], outputs: ["selectionChange", "expandedChange", "activeIdChange", "changed", "activated", "moved", "nodeAction"] }, { kind: "directive", type: TreeNodeTemplateDirective, selector: "ng-template[hmTreeNode]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
709
843
|
}
|
|
710
844
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: FileTreeComponent, decorators: [{
|
|
@@ -714,15 +848,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
714
848
|
imports: [TreeComponent, TreeNodeTemplateDirective],
|
|
715
849
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
716
850
|
host: { class: 'hm-file-tree' },
|
|
717
|
-
template: `
|
|
718
|
-
<hm-tree [nodes]="nodes()" [label]="label() || text().filesLabel" [selectable]="false" [(expanded)]="expanded">
|
|
719
|
-
<ng-template hmTreeNode let-node>
|
|
720
|
-
<span class="hm-file-tree__name">{{ node.label }}</span>
|
|
721
|
-
@if (statusText(node.id); as status) {
|
|
722
|
-
<span class="hm-file-tree__status" [attr.data-status]="statusOf(node.id)">{{ status }}</span>
|
|
723
|
-
}
|
|
724
|
-
</ng-template>
|
|
725
|
-
</hm-tree>
|
|
851
|
+
template: `
|
|
852
|
+
<hm-tree [nodes]="nodes()" [label]="label() || text().filesLabel" [selectable]="false" [(expanded)]="expanded">
|
|
853
|
+
<ng-template hmTreeNode let-node>
|
|
854
|
+
<span class="hm-file-tree__name">{{ node.label }}</span>
|
|
855
|
+
@if (statusText(node.id); as status) {
|
|
856
|
+
<span class="hm-file-tree__status" [attr.data-status]="statusOf(node.id)">{{ status }}</span>
|
|
857
|
+
}
|
|
858
|
+
</ng-template>
|
|
859
|
+
</hm-tree>
|
|
726
860
|
`,
|
|
727
861
|
}]
|
|
728
862
|
}], propDecorators: { files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], expanded: [{ type: i0.Input, args: [{ isSignal: true, alias: "expanded", required: false }] }, { type: i0.Output, args: ["expandedChange"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -755,12 +889,12 @@ class AgentTerminalComponent {
|
|
|
755
889
|
return code === null ? '' : formatMessage(this.text().terminalExit, { code });
|
|
756
890
|
}, ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
757
891
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentTerminalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
758
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentTerminalComponent, isStandalone: true, selector: "hm-agent-terminal", inputs: { command: { classPropertyName: "command", publicName: "command", isSignal: true, isRequired: false, transformFunction: null }, output: { classPropertyName: "output", publicName: "output", isSignal: true, isRequired: false, transformFunction: null }, running: { classPropertyName: "running", publicName: "running", isSignal: true, isRequired: false, transformFunction: null }, exitCode: { classPropertyName: "exitCode", publicName: "exitCode", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-terminal" }, ngImport: i0, template: `
|
|
759
|
-
<hm-code-viewer [code]="content()" language="bash" [label]="label() || text().terminalLabel" [showLineNumbers]="false" [wrap]="true" />
|
|
760
|
-
@if (status()) {
|
|
761
|
-
<p class="hm-agent-terminal__status" role="status" [attr.data-failed]="failed() ? '' : null">{{ status() }}</p>
|
|
762
|
-
}
|
|
763
|
-
`, isInline: true, dependencies: [{ kind: "component", type: CodeViewerComponent, selector: "hm-code-viewer", inputs: ["code", "language", "filename", "label", "showLineNumbers", "firstLineNumber", "highlightLines", "wrap", "tabSize", "copyable", "header", "virtualize", "virtualizeThreshold", "revealInvisibles"], outputs: ["copied", "tokenized"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
892
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentTerminalComponent, isStandalone: true, selector: "hm-agent-terminal", inputs: { command: { classPropertyName: "command", publicName: "command", isSignal: true, isRequired: false, transformFunction: null }, output: { classPropertyName: "output", publicName: "output", isSignal: true, isRequired: false, transformFunction: null }, running: { classPropertyName: "running", publicName: "running", isSignal: true, isRequired: false, transformFunction: null }, exitCode: { classPropertyName: "exitCode", publicName: "exitCode", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-terminal" }, ngImport: i0, template: `
|
|
893
|
+
<hm-code-viewer [code]="content()" language="bash" [label]="label() || text().terminalLabel" [showLineNumbers]="false" [wrap]="true" />
|
|
894
|
+
@if (status()) {
|
|
895
|
+
<p class="hm-agent-terminal__status" role="status" [attr.data-failed]="failed() ? '' : null">{{ status() }}</p>
|
|
896
|
+
}
|
|
897
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CodeViewerComponent, selector: "hm-code-viewer", inputs: ["code", "language", "filename", "label", "showLineNumbers", "firstLineNumber", "highlightLines", "wrap", "tabSize", "copyable", "header", "virtualize", "virtualizeThreshold", "revealInvisibles", "addedLines", "removedLines", "size", "variant", "maxHeight", "collapsedLines", "texts"], outputs: ["copied", "tokenized"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
764
898
|
}
|
|
765
899
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentTerminalComponent, decorators: [{
|
|
766
900
|
type: Component,
|
|
@@ -769,11 +903,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
769
903
|
imports: [CodeViewerComponent],
|
|
770
904
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
771
905
|
host: { class: 'hm-agent-terminal' },
|
|
772
|
-
template: `
|
|
773
|
-
<hm-code-viewer [code]="content()" language="bash" [label]="label() || text().terminalLabel" [showLineNumbers]="false" [wrap]="true" />
|
|
774
|
-
@if (status()) {
|
|
775
|
-
<p class="hm-agent-terminal__status" role="status" [attr.data-failed]="failed() ? '' : null">{{ status() }}</p>
|
|
776
|
-
}
|
|
906
|
+
template: `
|
|
907
|
+
<hm-code-viewer [code]="content()" language="bash" [label]="label() || text().terminalLabel" [showLineNumbers]="false" [wrap]="true" />
|
|
908
|
+
@if (status()) {
|
|
909
|
+
<p class="hm-agent-terminal__status" role="status" [attr.data-failed]="failed() ? '' : null">{{ status() }}</p>
|
|
910
|
+
}
|
|
777
911
|
`,
|
|
778
912
|
}]
|
|
779
913
|
}], propDecorators: { command: [{ type: i0.Input, args: [{ isSignal: true, alias: "command", required: false }] }], output: [{ type: i0.Input, args: [{ isSignal: true, alias: "output", required: false }] }], running: [{ type: i0.Input, args: [{ isSignal: true, alias: "running", required: false }] }], exitCode: [{ type: i0.Input, args: [{ isSignal: true, alias: "exitCode", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -794,41 +928,86 @@ class TestResultsComponent {
|
|
|
794
928
|
[count('skipped'), this.text().testsSkipped],
|
|
795
929
|
].filter(([total]) => total > 0).map(([total, message]) => pluralMessage(message, total, locale));
|
|
796
930
|
}, ...(ngDevMode ? [{ debugName: "summary" }] : /* istanbul ignore next */ []));
|
|
931
|
+
/** Vazia quando nenhum teste diz a que arquivo pertence: aí a lista sai corrida. */
|
|
932
|
+
suites = computed(() => {
|
|
933
|
+
if (!this.tests().some((test) => test.suite))
|
|
934
|
+
return [];
|
|
935
|
+
const groups = new Map();
|
|
936
|
+
for (const test of this.tests()) {
|
|
937
|
+
const name = test.suite || this.text().testsOther;
|
|
938
|
+
groups.set(name, [...(groups.get(name) ?? []), test]);
|
|
939
|
+
}
|
|
940
|
+
return [...groups].map(([name, tests]) => ({ name, tests, failed: tests.filter((test) => test.status === 'failed').length }));
|
|
941
|
+
}, ...(ngDevMode ? [{ debugName: "suites" }] : /* istanbul ignore next */ []));
|
|
942
|
+
suiteDetail(suite) {
|
|
943
|
+
const locale = this.#i18n.formatLocale();
|
|
944
|
+
if (suite.failed)
|
|
945
|
+
return pluralMessage(this.text().testsFailed, suite.failed, locale);
|
|
946
|
+
return pluralMessage(this.text().testsPassed, suite.tests.filter((test) => test.status === 'passed').length, locale);
|
|
947
|
+
}
|
|
797
948
|
traceStatus(test) {
|
|
798
949
|
return TEST_STATUS[test.status];
|
|
799
950
|
}
|
|
800
951
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TestResultsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
801
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TestResultsComponent, isStandalone: true, selector: "hm-test-results", inputs: { tests: { classPropertyName: "tests", publicName: "tests", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-card hm-agent-card--column hm-test-results" }, ngImport: i0, template: `
|
|
802
|
-
<p class="hm-test-results__summary">
|
|
803
|
-
@for (part of summary(); track part) { <span>{{ part }}</span> }
|
|
804
|
-
</p>
|
|
805
|
-
<
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
952
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TestResultsComponent, isStandalone: true, selector: "hm-test-results", inputs: { tests: { classPropertyName: "tests", publicName: "tests", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-card hm-agent-card--column hm-test-results" }, ngImport: i0, template: `
|
|
953
|
+
<p class="hm-test-results__summary">
|
|
954
|
+
@for (part of summary(); track part) { <span>{{ part }}</span> }
|
|
955
|
+
</p>
|
|
956
|
+
<ng-template #list let-tests let-label="label">
|
|
957
|
+
<hm-trace [label]="label">
|
|
958
|
+
@for (test of tests; track test.id) {
|
|
959
|
+
<hm-trace-item [heading]="test.name" [status]="traceStatus(test)" [expandable]="!!test.detail">
|
|
960
|
+
@if (test.detail) { <pre class="hm-agent-pre">{{ test.detail }}</pre> }
|
|
961
|
+
</hm-trace-item>
|
|
962
|
+
}
|
|
963
|
+
</hm-trace>
|
|
964
|
+
</ng-template>
|
|
965
|
+
@if (suites().length) {
|
|
966
|
+
<hm-trace [label]="text().testsLabel">
|
|
967
|
+
@for (suite of suites(); track suite.name) {
|
|
968
|
+
<!-- Abre de início só o arquivo com falha: é ali que a pessoa vai olhar. -->
|
|
969
|
+
<hm-trace-item [heading]="suite.name" [status]="suite.failed ? 'error' : 'done'" [detail]="suiteDetail(suite)" expandable [open]="suite.failed > 0">
|
|
970
|
+
<ng-container *ngTemplateOutlet="list; context: { $implicit: suite.tests, label: suite.name }" />
|
|
971
|
+
</hm-trace-item>
|
|
972
|
+
}
|
|
973
|
+
</hm-trace>
|
|
974
|
+
} @else {
|
|
975
|
+
<ng-container *ngTemplateOutlet="list; context: { $implicit: tests(), label: text().testsLabel }" />
|
|
976
|
+
}
|
|
977
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TraceComponent, selector: "hm-trace", inputs: ["label"] }, { kind: "component", type: TraceItemComponent, selector: "hm-trace-item", inputs: ["heading", "detail", "status", "expandable", "open", "href", "external", "texts"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
813
978
|
}
|
|
814
979
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TestResultsComponent, decorators: [{
|
|
815
980
|
type: Component,
|
|
816
981
|
args: [{
|
|
817
982
|
selector: 'hm-test-results',
|
|
818
|
-
imports: [TraceComponent, TraceItemComponent],
|
|
983
|
+
imports: [NgTemplateOutlet, TraceComponent, TraceItemComponent],
|
|
819
984
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
820
985
|
host: { class: 'hm-agent-card hm-agent-card--column hm-test-results' },
|
|
821
|
-
template: `
|
|
822
|
-
<p class="hm-test-results__summary">
|
|
823
|
-
@for (part of summary(); track part) { <span>{{ part }}</span> }
|
|
824
|
-
</p>
|
|
825
|
-
<
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
986
|
+
template: `
|
|
987
|
+
<p class="hm-test-results__summary">
|
|
988
|
+
@for (part of summary(); track part) { <span>{{ part }}</span> }
|
|
989
|
+
</p>
|
|
990
|
+
<ng-template #list let-tests let-label="label">
|
|
991
|
+
<hm-trace [label]="label">
|
|
992
|
+
@for (test of tests; track test.id) {
|
|
993
|
+
<hm-trace-item [heading]="test.name" [status]="traceStatus(test)" [expandable]="!!test.detail">
|
|
994
|
+
@if (test.detail) { <pre class="hm-agent-pre">{{ test.detail }}</pre> }
|
|
995
|
+
</hm-trace-item>
|
|
996
|
+
}
|
|
997
|
+
</hm-trace>
|
|
998
|
+
</ng-template>
|
|
999
|
+
@if (suites().length) {
|
|
1000
|
+
<hm-trace [label]="text().testsLabel">
|
|
1001
|
+
@for (suite of suites(); track suite.name) {
|
|
1002
|
+
<!-- Abre de início só o arquivo com falha: é ali que a pessoa vai olhar. -->
|
|
1003
|
+
<hm-trace-item [heading]="suite.name" [status]="suite.failed ? 'error' : 'done'" [detail]="suiteDetail(suite)" expandable [open]="suite.failed > 0">
|
|
1004
|
+
<ng-container *ngTemplateOutlet="list; context: { $implicit: suite.tests, label: suite.name }" />
|
|
1005
|
+
</hm-trace-item>
|
|
1006
|
+
}
|
|
1007
|
+
</hm-trace>
|
|
1008
|
+
} @else {
|
|
1009
|
+
<ng-container *ngTemplateOutlet="list; context: { $implicit: tests(), label: text().testsLabel }" />
|
|
1010
|
+
}
|
|
832
1011
|
`,
|
|
833
1012
|
}]
|
|
834
1013
|
}], propDecorators: { tests: [{ type: i0.Input, args: [{ isSignal: true, alias: "tests", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -842,46 +1021,252 @@ class StackTraceComponent {
|
|
|
842
1021
|
#i18n = inject(HermesI18nService);
|
|
843
1022
|
text = useAgentMessages(this.texts);
|
|
844
1023
|
framesLabel = computed(() => pluralMessage(this.text().frames, this.frames().length, this.#i18n.formatLocale()), ...(ngDevMode ? [{ debugName: "framesLabel" }] : /* istanbul ignore next */ []));
|
|
1024
|
+
ownFrames = computed(() => this.frames().filter((frame) => !frame.internal), ...(ngDevMode ? [{ debugName: "ownFrames" }] : /* istanbul ignore next */ []));
|
|
1025
|
+
internalFrames = computed(() => this.frames().filter((frame) => frame.internal), ...(ngDevMode ? [{ debugName: "internalFrames" }] : /* istanbul ignore next */ []));
|
|
1026
|
+
internalLabel = computed(() => pluralMessage(this.text().internalFrames, this.internalFrames().length, this.#i18n.formatLocale()), ...(ngDevMode ? [{ debugName: "internalLabel" }] : /* istanbul ignore next */ []));
|
|
845
1027
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: StackTraceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
846
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: StackTraceComponent, isStandalone: true, selector: "hm-stack-trace", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, frames: { classPropertyName: "frames", publicName: "frames", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-card hm-agent-card--column hm-stack-trace" }, ngImport: i0, template: `
|
|
847
|
-
<p class="hm-stack-trace__error"><strong>{{ name() }}</strong>@if (message()) {: {{ message() }}}</p>
|
|
848
|
-
@if (frames().length) {
|
|
849
|
-
<hm-agent-disclosure [heading]="framesLabel()">
|
|
850
|
-
<
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
1028
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: StackTraceComponent, isStandalone: true, selector: "hm-stack-trace", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, message: { classPropertyName: "message", publicName: "message", isSignal: true, isRequired: false, transformFunction: null }, frames: { classPropertyName: "frames", publicName: "frames", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-card hm-agent-card--column hm-stack-trace" }, ngImport: i0, template: `
|
|
1029
|
+
<p class="hm-stack-trace__error"><strong>{{ name() }}</strong>@if (message()) {: {{ message() }}}</p>
|
|
1030
|
+
@if (frames().length) {
|
|
1031
|
+
<hm-agent-disclosure [heading]="framesLabel()">
|
|
1032
|
+
<ng-template #list let-rows>
|
|
1033
|
+
<ol class="hm-stack-trace__frames">
|
|
1034
|
+
@for (frame of rows; track $index) {
|
|
1035
|
+
<li><code>{{ frame.fn }}</code>
|
|
1036
|
+
@if (frame.file) {
|
|
1037
|
+
@if (frame.href) {
|
|
1038
|
+
<a class="hm-stack-trace__file hm-stack-trace__file--link" [href]="frame.href">{{ frame.file }}@if (frame.line) {:{{ frame.line }}}</a>
|
|
1039
|
+
} @else {
|
|
1040
|
+
<span class="hm-stack-trace__file">{{ frame.file }}@if (frame.line) {:{{ frame.line }}}</span>
|
|
1041
|
+
}
|
|
1042
|
+
}
|
|
1043
|
+
</li>
|
|
1044
|
+
}
|
|
1045
|
+
</ol>
|
|
1046
|
+
</ng-template>
|
|
1047
|
+
<!-- As chamadas do próprio código vêm primeiro; as do framework ficam recolhidas. -->
|
|
1048
|
+
<ng-container *ngTemplateOutlet="list; context: { $implicit: ownFrames() }" />
|
|
1049
|
+
@if (internalFrames().length) {
|
|
1050
|
+
<hm-agent-disclosure [heading]="internalLabel()">
|
|
1051
|
+
<ng-container *ngTemplateOutlet="list; context: { $implicit: internalFrames() }" />
|
|
1052
|
+
</hm-agent-disclosure>
|
|
1053
|
+
}
|
|
1054
|
+
</hm-agent-disclosure>
|
|
1055
|
+
}
|
|
1056
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AgentDisclosureComponent, selector: "hm-agent-disclosure", inputs: ["heading", "detail", "icon", "status", "open"], outputs: ["openChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
860
1057
|
}
|
|
861
1058
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: StackTraceComponent, decorators: [{
|
|
862
1059
|
type: Component,
|
|
863
1060
|
args: [{
|
|
864
1061
|
selector: 'hm-stack-trace',
|
|
865
|
-
imports: [AgentDisclosureComponent],
|
|
1062
|
+
imports: [AgentDisclosureComponent, NgTemplateOutlet],
|
|
866
1063
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
867
1064
|
host: { class: 'hm-agent-card hm-agent-card--column hm-stack-trace' },
|
|
868
|
-
template: `
|
|
869
|
-
<p class="hm-stack-trace__error"><strong>{{ name() }}</strong>@if (message()) {: {{ message() }}}</p>
|
|
870
|
-
@if (frames().length) {
|
|
871
|
-
<hm-agent-disclosure [heading]="framesLabel()">
|
|
872
|
-
<
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
1065
|
+
template: `
|
|
1066
|
+
<p class="hm-stack-trace__error"><strong>{{ name() }}</strong>@if (message()) {: {{ message() }}}</p>
|
|
1067
|
+
@if (frames().length) {
|
|
1068
|
+
<hm-agent-disclosure [heading]="framesLabel()">
|
|
1069
|
+
<ng-template #list let-rows>
|
|
1070
|
+
<ol class="hm-stack-trace__frames">
|
|
1071
|
+
@for (frame of rows; track $index) {
|
|
1072
|
+
<li><code>{{ frame.fn }}</code>
|
|
1073
|
+
@if (frame.file) {
|
|
1074
|
+
@if (frame.href) {
|
|
1075
|
+
<a class="hm-stack-trace__file hm-stack-trace__file--link" [href]="frame.href">{{ frame.file }}@if (frame.line) {:{{ frame.line }}}</a>
|
|
1076
|
+
} @else {
|
|
1077
|
+
<span class="hm-stack-trace__file">{{ frame.file }}@if (frame.line) {:{{ frame.line }}}</span>
|
|
1078
|
+
}
|
|
1079
|
+
}
|
|
1080
|
+
</li>
|
|
1081
|
+
}
|
|
1082
|
+
</ol>
|
|
1083
|
+
</ng-template>
|
|
1084
|
+
<!-- As chamadas do próprio código vêm primeiro; as do framework ficam recolhidas. -->
|
|
1085
|
+
<ng-container *ngTemplateOutlet="list; context: { $implicit: ownFrames() }" />
|
|
1086
|
+
@if (internalFrames().length) {
|
|
1087
|
+
<hm-agent-disclosure [heading]="internalLabel()">
|
|
1088
|
+
<ng-container *ngTemplateOutlet="list; context: { $implicit: internalFrames() }" />
|
|
1089
|
+
</hm-agent-disclosure>
|
|
1090
|
+
}
|
|
1091
|
+
</hm-agent-disclosure>
|
|
1092
|
+
}
|
|
881
1093
|
`,
|
|
882
1094
|
}]
|
|
883
1095
|
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: false }] }], frames: [{ type: i0.Input, args: [{ isSignal: true, alias: "frames", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
884
1096
|
|
|
1097
|
+
/** Texto pronto para o leitor de código: string vai como veio; o resto, como JSON indentado. */
|
|
1098
|
+
function toCode(value) {
|
|
1099
|
+
if (value === undefined || value === null || value === '')
|
|
1100
|
+
return '';
|
|
1101
|
+
if (typeof value === 'string')
|
|
1102
|
+
return value;
|
|
1103
|
+
try {
|
|
1104
|
+
return JSON.stringify(value, null, 2) ?? '';
|
|
1105
|
+
}
|
|
1106
|
+
catch {
|
|
1107
|
+
return String(value);
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
/**
|
|
1111
|
+
* Uma ferramenta que o agente chamou (rodar um comando, ler um arquivo, consultar uma API), do pedido ao resultado.
|
|
1112
|
+
* Enquanto roda é uma linha com o estado; quando há parâmetros, resultado ou erro, a linha abre e mostra cada um.
|
|
1113
|
+
* Dentro de um `hm-trace` vira uma das etapas dele; sozinha, monta a própria lista.
|
|
1114
|
+
*
|
|
1115
|
+
* Pedido de aprovação não é etapa: fica fora, num `hm-tool-confirmation`, até a pessoa responder.
|
|
1116
|
+
*
|
|
1117
|
+
* ```html
|
|
1118
|
+
* <hm-trace label="Etapas da resposta">
|
|
1119
|
+
* <hm-agent-tool heading="Consultou os servidores" detail="Produção" status="done" [parameters]="{ env: 'prod' }" [result]="servers" />
|
|
1120
|
+
* </hm-trace>
|
|
1121
|
+
* ```
|
|
1122
|
+
*/
|
|
1123
|
+
class AgentToolComponent {
|
|
1124
|
+
#icons = useHermesIcons(AGENT_ICONS);
|
|
1125
|
+
/** O que a ferramenta faz, no tempo certo ("Consultando os servidores", "Consultou os servidores"). */
|
|
1126
|
+
heading = input.required(...(ngDevMode ? [{ debugName: "heading" }] : /* istanbul ignore next */ []));
|
|
1127
|
+
/** Texto curto ao lado (o alvo, a duração). */
|
|
1128
|
+
detail = input('', ...(ngDevMode ? [{ debugName: "detail" }] : /* istanbul ignore next */ []));
|
|
1129
|
+
status = input('running', ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
1130
|
+
/** O que o agente mandou para a ferramenta. Texto vai como veio; objeto vira JSON. */
|
|
1131
|
+
parameters = input(undefined, ...(ngDevMode ? [{ debugName: "parameters" }] : /* istanbul ignore next */ []));
|
|
1132
|
+
/** O que a ferramenta devolveu. */
|
|
1133
|
+
result = input(undefined, ...(ngDevMode ? [{ debugName: "result" }] : /* istanbul ignore next */ []));
|
|
1134
|
+
/** Por que falhou (texto pronto). */
|
|
1135
|
+
error = input('', ...(ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []));
|
|
1136
|
+
/** Se o conteúdo está aberto. */
|
|
1137
|
+
open = model(false, ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
1138
|
+
texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
1139
|
+
text = useAgentMessages(this.texts);
|
|
1140
|
+
inTrace = !!inject(TraceComponent, { optional: true });
|
|
1141
|
+
parametersCode = computed(() => toCode(this.parameters()), ...(ngDevMode ? [{ debugName: "parametersCode" }] : /* istanbul ignore next */ []));
|
|
1142
|
+
resultCode = computed(() => toCode(this.result()), ...(ngDevMode ? [{ debugName: "resultCode" }] : /* istanbul ignore next */ []));
|
|
1143
|
+
hasBody = computed(() => !!(this.parametersCode() || this.resultCode() || this.error()), ...(ngDevMode ? [{ debugName: "hasBody" }] : /* istanbul ignore next */ []));
|
|
1144
|
+
languageOf(value) {
|
|
1145
|
+
return typeof value === 'string' ? CODE_LANGUAGE_TEXT.id : 'json';
|
|
1146
|
+
}
|
|
1147
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentToolComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1148
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentToolComponent, isStandalone: true, selector: "hm-agent-tool", inputs: { heading: { classPropertyName: "heading", publicName: "heading", isSignal: true, isRequired: true, transformFunction: null }, detail: { classPropertyName: "detail", publicName: "detail", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, parameters: { classPropertyName: "parameters", publicName: "parameters", isSignal: true, isRequired: false, transformFunction: null }, result: { classPropertyName: "result", publicName: "result", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange" }, host: { properties: { "attr.data-status": "status()" }, classAttribute: "hm-agent-tool" }, ngImport: i0, template: `
|
|
1149
|
+
<ng-template #item>
|
|
1150
|
+
<hm-trace-item [heading]="heading()" [detail]="detail()" [status]="status()" [expandable]="hasBody()" [(open)]="open">
|
|
1151
|
+
@if (parametersCode()) {
|
|
1152
|
+
<div class="hm-agent-tool__section">
|
|
1153
|
+
<p class="hm-agent-tool__label">{{ text().toolInput }}</p>
|
|
1154
|
+
<hm-code-viewer [code]="parametersCode()" [language]="languageOf(parameters())" [label]="text().toolInput" size="small" [showLineNumbers]="false" [wrap]="true" header="hide" />
|
|
1155
|
+
</div>
|
|
1156
|
+
}
|
|
1157
|
+
@if (resultCode()) {
|
|
1158
|
+
<div class="hm-agent-tool__section">
|
|
1159
|
+
<p class="hm-agent-tool__label">{{ text().toolOutput }}</p>
|
|
1160
|
+
<hm-code-viewer [code]="resultCode()" [language]="languageOf(result())" [label]="text().toolOutput" size="small" [showLineNumbers]="false" [wrap]="true" header="hide" />
|
|
1161
|
+
</div>
|
|
1162
|
+
}
|
|
1163
|
+
@if (error()) {
|
|
1164
|
+
<div class="hm-agent-tool__section">
|
|
1165
|
+
<p class="hm-agent-tool__label">{{ text().toolError }}</p>
|
|
1166
|
+
<p class="hm-agent-tool__error">{{ error() }}</p>
|
|
1167
|
+
</div>
|
|
1168
|
+
}
|
|
1169
|
+
</hm-trace-item>
|
|
1170
|
+
</ng-template>
|
|
1171
|
+
@if (inTrace) {
|
|
1172
|
+
<ng-container *ngTemplateOutlet="item" />
|
|
1173
|
+
} @else {
|
|
1174
|
+
<hm-trace [label]="heading()"><ng-container *ngTemplateOutlet="item" /></hm-trace>
|
|
1175
|
+
}
|
|
1176
|
+
`, isInline: true, dependencies: [{ kind: "component", type: CodeViewerComponent, selector: "hm-code-viewer", inputs: ["code", "language", "filename", "label", "showLineNumbers", "firstLineNumber", "highlightLines", "wrap", "tabSize", "copyable", "header", "virtualize", "virtualizeThreshold", "revealInvisibles", "addedLines", "removedLines", "size", "variant", "maxHeight", "collapsedLines", "texts"], outputs: ["copied", "tokenized"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TraceComponent, selector: "hm-trace", inputs: ["label"] }, { kind: "component", type: TraceItemComponent, selector: "hm-trace-item", inputs: ["heading", "detail", "status", "expandable", "open", "href", "external", "texts"], outputs: ["openChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1177
|
+
}
|
|
1178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentToolComponent, decorators: [{
|
|
1179
|
+
type: Component,
|
|
1180
|
+
args: [{
|
|
1181
|
+
selector: 'hm-agent-tool',
|
|
1182
|
+
imports: [CodeViewerComponent, NgTemplateOutlet, TraceComponent, TraceItemComponent],
|
|
1183
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1184
|
+
host: { class: 'hm-agent-tool', '[attr.data-status]': 'status()' },
|
|
1185
|
+
template: `
|
|
1186
|
+
<ng-template #item>
|
|
1187
|
+
<hm-trace-item [heading]="heading()" [detail]="detail()" [status]="status()" [expandable]="hasBody()" [(open)]="open">
|
|
1188
|
+
@if (parametersCode()) {
|
|
1189
|
+
<div class="hm-agent-tool__section">
|
|
1190
|
+
<p class="hm-agent-tool__label">{{ text().toolInput }}</p>
|
|
1191
|
+
<hm-code-viewer [code]="parametersCode()" [language]="languageOf(parameters())" [label]="text().toolInput" size="small" [showLineNumbers]="false" [wrap]="true" header="hide" />
|
|
1192
|
+
</div>
|
|
1193
|
+
}
|
|
1194
|
+
@if (resultCode()) {
|
|
1195
|
+
<div class="hm-agent-tool__section">
|
|
1196
|
+
<p class="hm-agent-tool__label">{{ text().toolOutput }}</p>
|
|
1197
|
+
<hm-code-viewer [code]="resultCode()" [language]="languageOf(result())" [label]="text().toolOutput" size="small" [showLineNumbers]="false" [wrap]="true" header="hide" />
|
|
1198
|
+
</div>
|
|
1199
|
+
}
|
|
1200
|
+
@if (error()) {
|
|
1201
|
+
<div class="hm-agent-tool__section">
|
|
1202
|
+
<p class="hm-agent-tool__label">{{ text().toolError }}</p>
|
|
1203
|
+
<p class="hm-agent-tool__error">{{ error() }}</p>
|
|
1204
|
+
</div>
|
|
1205
|
+
}
|
|
1206
|
+
</hm-trace-item>
|
|
1207
|
+
</ng-template>
|
|
1208
|
+
@if (inTrace) {
|
|
1209
|
+
<ng-container *ngTemplateOutlet="item" />
|
|
1210
|
+
} @else {
|
|
1211
|
+
<hm-trace [label]="heading()"><ng-container *ngTemplateOutlet="item" /></hm-trace>
|
|
1212
|
+
}
|
|
1213
|
+
`,
|
|
1214
|
+
}]
|
|
1215
|
+
}], propDecorators: { heading: [{ type: i0.Input, args: [{ isSignal: true, alias: "heading", required: true }] }], detail: [{ type: i0.Input, args: [{ isSignal: true, alias: "detail", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], parameters: [{ type: i0.Input, args: [{ isSignal: true, alias: "parameters", required: false }] }], result: [{ type: i0.Input, args: [{ isSignal: true, alias: "result", required: false }] }], error: [{ type: i0.Input, args: [{ isSignal: true, alias: "error", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
1216
|
+
/** O endereço de cada resultado de uma busca, como etiqueta que abre a página. Vai dentro de uma etapa. */
|
|
1217
|
+
class AgentSearchResultsComponent {
|
|
1218
|
+
#icons = useHermesIcons(AGENT_ICONS);
|
|
1219
|
+
sources = input([], ...(ngDevMode ? [{ debugName: "sources" }] : /* istanbul ignore next */ []));
|
|
1220
|
+
/** Nome acessível da lista. Padrão: "Resultados da busca". */
|
|
1221
|
+
label = input('', ...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
1222
|
+
texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
1223
|
+
text = useAgentMessages(this.texts);
|
|
1224
|
+
/** Só o domínio, sem o `www.`; endereço que não abre como URL aparece inteiro. */
|
|
1225
|
+
hostOf(url) {
|
|
1226
|
+
try {
|
|
1227
|
+
return new URL(url).hostname.replace(/^www\./, '');
|
|
1228
|
+
}
|
|
1229
|
+
catch {
|
|
1230
|
+
return url;
|
|
1231
|
+
}
|
|
1232
|
+
}
|
|
1233
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentSearchResultsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1234
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AgentSearchResultsComponent, isStandalone: true, selector: "hm-agent-search-results", inputs: { sources: { classPropertyName: "sources", publicName: "sources", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-agent-search-results" }, ngImport: i0, template: `
|
|
1235
|
+
@if (sources().length) {
|
|
1236
|
+
<ul class="hm-agent-chips" [attr.aria-label]="label() || text().searchResultsLabel">
|
|
1237
|
+
@for (source of sources(); track source.url) {
|
|
1238
|
+
<li>
|
|
1239
|
+
<a class="hm-agent-chip" [href]="source.url" target="_blank" rel="noopener noreferrer" [attr.title]="source.title">
|
|
1240
|
+
{{ hostOf(source.url) }}<span class="hm-visually-hidden">: {{ source.title }} {{ text().opensInNewTab }}</span>
|
|
1241
|
+
</a>
|
|
1242
|
+
</li>
|
|
1243
|
+
}
|
|
1244
|
+
</ul>
|
|
1245
|
+
}
|
|
1246
|
+
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1247
|
+
}
|
|
1248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AgentSearchResultsComponent, decorators: [{
|
|
1249
|
+
type: Component,
|
|
1250
|
+
args: [{
|
|
1251
|
+
selector: 'hm-agent-search-results',
|
|
1252
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1253
|
+
host: { class: 'hm-agent-search-results' },
|
|
1254
|
+
template: `
|
|
1255
|
+
@if (sources().length) {
|
|
1256
|
+
<ul class="hm-agent-chips" [attr.aria-label]="label() || text().searchResultsLabel">
|
|
1257
|
+
@for (source of sources(); track source.url) {
|
|
1258
|
+
<li>
|
|
1259
|
+
<a class="hm-agent-chip" [href]="source.url" target="_blank" rel="noopener noreferrer" [attr.title]="source.title">
|
|
1260
|
+
{{ hostOf(source.url) }}<span class="hm-visually-hidden">: {{ source.title }} {{ text().opensInNewTab }}</span>
|
|
1261
|
+
</a>
|
|
1262
|
+
</li>
|
|
1263
|
+
}
|
|
1264
|
+
</ul>
|
|
1265
|
+
}
|
|
1266
|
+
`,
|
|
1267
|
+
}]
|
|
1268
|
+
}], propDecorators: { sources: [{ type: i0.Input, args: [{ isSignal: true, alias: "sources", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
1269
|
+
|
|
885
1270
|
// Ponto de import `@trismegisto/angular/agent` (secundário do ng-packagr): o que o public-api e as outras pastas usam
|
|
886
1271
|
// daqui. Ao criar arquivo público novo na pasta, acrescente a linha.
|
|
887
1272
|
|
|
@@ -889,5 +1274,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
889
1274
|
* Generated bundle index. Do not edit.
|
|
890
1275
|
*/
|
|
891
1276
|
|
|
892
|
-
export { AGENT_MESSAGES, AGENT_MESSAGES_EN, AGENT_MESSAGES_ES, AGENT_MESSAGES_PT_BR, AgentPlanComponent, AgentQueueComponent, AgentSourcesComponent, AgentTaskComponent, AgentTerminalComponent, ChainOfThoughtComponent, CheckpointComponent, ContextUsageComponent, FileTreeComponent, InlineCitationComponent, ModelSelectorComponent, ReasoningComponent, StackTraceComponent, SubagentComponent, TestResultsComponent, ToolConfirmationComponent };
|
|
1277
|
+
export { AGENT_MESSAGES, AGENT_MESSAGES_EN, AGENT_MESSAGES_ES, AGENT_MESSAGES_PT_BR, AgentPlanComponent, AgentQueueComponent, AgentSearchResultsComponent, AgentSourcesComponent, AgentTaskComponent, AgentTerminalComponent, AgentToolComponent, ChainOfThoughtComponent, CheckpointComponent, ContextUsageComponent, FileTreeComponent, InlineCitationComponent, ModelSelectorComponent, ReasoningComponent, StackTraceComponent, SubagentComponent, TestResultsComponent, ToolConfirmationComponent };
|
|
893
1278
|
//# sourceMappingURL=trismegisto-angular-agent.mjs.map
|