@trismegisto/angular 3.3.10 → 3.3.12
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 +500 -500
- 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 +2 -2
- 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 +2 -2
- 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 +55 -11
- 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.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 +30 -30
- package/fesm2022/trismegisto-angular-message-divider.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-message-scroller.mjs +78 -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 +98 -98
- package/fesm2022/trismegisto-angular-prompt-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-prompt-suggestions.mjs +8 -8
- 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 +150 -150
- package/fesm2022/trismegisto-angular-questionnaire.mjs.map +1 -1
- 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.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 +88 -88
- 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.map +1 -1
- package/package.json +5 -5
- package/types/trismegisto-angular-data-grid.d.ts +27 -2
- package/types/trismegisto-angular-data-grid.d.ts.map +1 -1
|
@@ -163,50 +163,50 @@ class UptimeBarComponent {
|
|
|
163
163
|
items[next]?.focus();
|
|
164
164
|
}
|
|
165
165
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: UptimeBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
166
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: UptimeBarComponent, isStandalone: true, selector: "hm-uptime-bar", inputs: { samples: { classPropertyName: "samples", publicName: "samples", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null }, digits: { classPropertyName: "digits", publicName: "digits", isSignal: true, isRequired: false, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, showSummary: { classPropertyName: "showSummary", publicName: "showSummary", isSignal: true, isRequired: false, transformFunction: null }, showRange: { classPropertyName: "showRange", publicName: "showRange", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-uptime-bar" }, ngImport: i0, template: `
|
|
167
|
-
@if (!labelHidden() || showSummary()) {
|
|
168
|
-
<div class="hm-uptime-bar__header">
|
|
169
|
-
<span class="hm-uptime-bar__label" [class.hm-visually-hidden]="labelHidden()">{{ name() }}</span>
|
|
170
|
-
@if (showSummary()) {
|
|
171
|
-
<span class="hm-uptime-bar__summary">{{ summary() }}</span>
|
|
172
|
-
}
|
|
173
|
-
</div>
|
|
174
|
-
}
|
|
175
|
-
<div class="hm-uptime-bar__frame">
|
|
176
|
-
<ol class="hm-uptime-bar__track" [attr.aria-label]="listLabel()" (keydown)="onKeydown($event)" (mouseleave)="hovered.set(-1)">
|
|
177
|
-
@for (period of periods(); track period.start; let i = $index) {
|
|
178
|
-
<li
|
|
179
|
-
class="hm-uptime-bar__period"
|
|
180
|
-
[class]="'hm-uptime-bar__period--' + period.status"
|
|
181
|
-
[attr.tabindex]="i === tabStop() ? 0 : -1"
|
|
182
|
-
(focus)="onFocus(i)"
|
|
183
|
-
(blur)="focused.set(-1)"
|
|
184
|
-
(mouseenter)="hovered.set(i)"
|
|
185
|
-
>
|
|
186
|
-
<span class="hm-visually-hidden">{{ period.text }}@if (period.note) {&ngsp;<span>{{ period.note }}</span>}</span>
|
|
187
|
-
</li>
|
|
188
|
-
}
|
|
189
|
-
</ol>
|
|
190
|
-
@if (tip(); as active) {
|
|
191
|
-
<div
|
|
192
|
-
class="hm-uptime-bar__tip"
|
|
193
|
-
aria-hidden="true"
|
|
194
|
-
[style.inset-inline-start.%]="active.start"
|
|
195
|
-
[style.inset-inline-end.%]="active.end"
|
|
196
|
-
>
|
|
197
|
-
<span class="hm-uptime-bar__tip-text">{{ active.period.text }}</span>
|
|
198
|
-
@if (active.period.note) {
|
|
199
|
-
<span class="hm-uptime-bar__tip-note">{{ active.period.note }}</span>
|
|
200
|
-
}
|
|
201
|
-
</div>
|
|
202
|
-
}
|
|
203
|
-
</div>
|
|
204
|
-
@if (range(); as edges) {
|
|
205
|
-
<div class="hm-uptime-bar__range" aria-hidden="true">
|
|
206
|
-
<span>{{ edges.first }}</span>
|
|
207
|
-
<span>{{ edges.last }}</span>
|
|
208
|
-
</div>
|
|
209
|
-
}
|
|
166
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: UptimeBarComponent, isStandalone: true, selector: "hm-uptime-bar", inputs: { samples: { classPropertyName: "samples", publicName: "samples", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, thresholds: { classPropertyName: "thresholds", publicName: "thresholds", isSignal: true, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: true, isRequired: false, transformFunction: null }, digits: { classPropertyName: "digits", publicName: "digits", isSignal: true, isRequired: false, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, showSummary: { classPropertyName: "showSummary", publicName: "showSummary", isSignal: true, isRequired: false, transformFunction: null }, showRange: { classPropertyName: "showRange", publicName: "showRange", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-uptime-bar" }, ngImport: i0, template: `
|
|
167
|
+
@if (!labelHidden() || showSummary()) {
|
|
168
|
+
<div class="hm-uptime-bar__header">
|
|
169
|
+
<span class="hm-uptime-bar__label" [class.hm-visually-hidden]="labelHidden()">{{ name() }}</span>
|
|
170
|
+
@if (showSummary()) {
|
|
171
|
+
<span class="hm-uptime-bar__summary">{{ summary() }}</span>
|
|
172
|
+
}
|
|
173
|
+
</div>
|
|
174
|
+
}
|
|
175
|
+
<div class="hm-uptime-bar__frame">
|
|
176
|
+
<ol class="hm-uptime-bar__track" [attr.aria-label]="listLabel()" (keydown)="onKeydown($event)" (mouseleave)="hovered.set(-1)">
|
|
177
|
+
@for (period of periods(); track period.start; let i = $index) {
|
|
178
|
+
<li
|
|
179
|
+
class="hm-uptime-bar__period"
|
|
180
|
+
[class]="'hm-uptime-bar__period--' + period.status"
|
|
181
|
+
[attr.tabindex]="i === tabStop() ? 0 : -1"
|
|
182
|
+
(focus)="onFocus(i)"
|
|
183
|
+
(blur)="focused.set(-1)"
|
|
184
|
+
(mouseenter)="hovered.set(i)"
|
|
185
|
+
>
|
|
186
|
+
<span class="hm-visually-hidden">{{ period.text }}@if (period.note) {&ngsp;<span>{{ period.note }}</span>}</span>
|
|
187
|
+
</li>
|
|
188
|
+
}
|
|
189
|
+
</ol>
|
|
190
|
+
@if (tip(); as active) {
|
|
191
|
+
<div
|
|
192
|
+
class="hm-uptime-bar__tip"
|
|
193
|
+
aria-hidden="true"
|
|
194
|
+
[style.inset-inline-start.%]="active.start"
|
|
195
|
+
[style.inset-inline-end.%]="active.end"
|
|
196
|
+
>
|
|
197
|
+
<span class="hm-uptime-bar__tip-text">{{ active.period.text }}</span>
|
|
198
|
+
@if (active.period.note) {
|
|
199
|
+
<span class="hm-uptime-bar__tip-note">{{ active.period.note }}</span>
|
|
200
|
+
}
|
|
201
|
+
</div>
|
|
202
|
+
}
|
|
203
|
+
</div>
|
|
204
|
+
@if (range(); as edges) {
|
|
205
|
+
<div class="hm-uptime-bar__range" aria-hidden="true">
|
|
206
|
+
<span>{{ edges.first }}</span>
|
|
207
|
+
<span>{{ edges.last }}</span>
|
|
208
|
+
</div>
|
|
209
|
+
}
|
|
210
210
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
211
211
|
}
|
|
212
212
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: UptimeBarComponent, decorators: [{
|
|
@@ -215,50 +215,50 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
215
215
|
selector: 'hm-uptime-bar',
|
|
216
216
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
217
217
|
host: { class: 'hm-uptime-bar' },
|
|
218
|
-
template: `
|
|
219
|
-
@if (!labelHidden() || showSummary()) {
|
|
220
|
-
<div class="hm-uptime-bar__header">
|
|
221
|
-
<span class="hm-uptime-bar__label" [class.hm-visually-hidden]="labelHidden()">{{ name() }}</span>
|
|
222
|
-
@if (showSummary()) {
|
|
223
|
-
<span class="hm-uptime-bar__summary">{{ summary() }}</span>
|
|
224
|
-
}
|
|
225
|
-
</div>
|
|
226
|
-
}
|
|
227
|
-
<div class="hm-uptime-bar__frame">
|
|
228
|
-
<ol class="hm-uptime-bar__track" [attr.aria-label]="listLabel()" (keydown)="onKeydown($event)" (mouseleave)="hovered.set(-1)">
|
|
229
|
-
@for (period of periods(); track period.start; let i = $index) {
|
|
230
|
-
<li
|
|
231
|
-
class="hm-uptime-bar__period"
|
|
232
|
-
[class]="'hm-uptime-bar__period--' + period.status"
|
|
233
|
-
[attr.tabindex]="i === tabStop() ? 0 : -1"
|
|
234
|
-
(focus)="onFocus(i)"
|
|
235
|
-
(blur)="focused.set(-1)"
|
|
236
|
-
(mouseenter)="hovered.set(i)"
|
|
237
|
-
>
|
|
238
|
-
<span class="hm-visually-hidden">{{ period.text }}@if (period.note) {&ngsp;<span>{{ period.note }}</span>}</span>
|
|
239
|
-
</li>
|
|
240
|
-
}
|
|
241
|
-
</ol>
|
|
242
|
-
@if (tip(); as active) {
|
|
243
|
-
<div
|
|
244
|
-
class="hm-uptime-bar__tip"
|
|
245
|
-
aria-hidden="true"
|
|
246
|
-
[style.inset-inline-start.%]="active.start"
|
|
247
|
-
[style.inset-inline-end.%]="active.end"
|
|
248
|
-
>
|
|
249
|
-
<span class="hm-uptime-bar__tip-text">{{ active.period.text }}</span>
|
|
250
|
-
@if (active.period.note) {
|
|
251
|
-
<span class="hm-uptime-bar__tip-note">{{ active.period.note }}</span>
|
|
252
|
-
}
|
|
253
|
-
</div>
|
|
254
|
-
}
|
|
255
|
-
</div>
|
|
256
|
-
@if (range(); as edges) {
|
|
257
|
-
<div class="hm-uptime-bar__range" aria-hidden="true">
|
|
258
|
-
<span>{{ edges.first }}</span>
|
|
259
|
-
<span>{{ edges.last }}</span>
|
|
260
|
-
</div>
|
|
261
|
-
}
|
|
218
|
+
template: `
|
|
219
|
+
@if (!labelHidden() || showSummary()) {
|
|
220
|
+
<div class="hm-uptime-bar__header">
|
|
221
|
+
<span class="hm-uptime-bar__label" [class.hm-visually-hidden]="labelHidden()">{{ name() }}</span>
|
|
222
|
+
@if (showSummary()) {
|
|
223
|
+
<span class="hm-uptime-bar__summary">{{ summary() }}</span>
|
|
224
|
+
}
|
|
225
|
+
</div>
|
|
226
|
+
}
|
|
227
|
+
<div class="hm-uptime-bar__frame">
|
|
228
|
+
<ol class="hm-uptime-bar__track" [attr.aria-label]="listLabel()" (keydown)="onKeydown($event)" (mouseleave)="hovered.set(-1)">
|
|
229
|
+
@for (period of periods(); track period.start; let i = $index) {
|
|
230
|
+
<li
|
|
231
|
+
class="hm-uptime-bar__period"
|
|
232
|
+
[class]="'hm-uptime-bar__period--' + period.status"
|
|
233
|
+
[attr.tabindex]="i === tabStop() ? 0 : -1"
|
|
234
|
+
(focus)="onFocus(i)"
|
|
235
|
+
(blur)="focused.set(-1)"
|
|
236
|
+
(mouseenter)="hovered.set(i)"
|
|
237
|
+
>
|
|
238
|
+
<span class="hm-visually-hidden">{{ period.text }}@if (period.note) {&ngsp;<span>{{ period.note }}</span>}</span>
|
|
239
|
+
</li>
|
|
240
|
+
}
|
|
241
|
+
</ol>
|
|
242
|
+
@if (tip(); as active) {
|
|
243
|
+
<div
|
|
244
|
+
class="hm-uptime-bar__tip"
|
|
245
|
+
aria-hidden="true"
|
|
246
|
+
[style.inset-inline-start.%]="active.start"
|
|
247
|
+
[style.inset-inline-end.%]="active.end"
|
|
248
|
+
>
|
|
249
|
+
<span class="hm-uptime-bar__tip-text">{{ active.period.text }}</span>
|
|
250
|
+
@if (active.period.note) {
|
|
251
|
+
<span class="hm-uptime-bar__tip-note">{{ active.period.note }}</span>
|
|
252
|
+
}
|
|
253
|
+
</div>
|
|
254
|
+
}
|
|
255
|
+
</div>
|
|
256
|
+
@if (range(); as edges) {
|
|
257
|
+
<div class="hm-uptime-bar__range" aria-hidden="true">
|
|
258
|
+
<span>{{ edges.first }}</span>
|
|
259
|
+
<span>{{ edges.last }}</span>
|
|
260
|
+
</div>
|
|
261
|
+
}
|
|
262
262
|
`,
|
|
263
263
|
}]
|
|
264
264
|
}], propDecorators: { samples: [{ type: i0.Input, args: [{ isSignal: true, alias: "samples", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], thresholds: [{ type: i0.Input, args: [{ isSignal: true, alias: "thresholds", required: false }] }], dateFormat: [{ type: i0.Input, args: [{ isSignal: true, alias: "dateFormat", required: false }] }], digits: [{ type: i0.Input, args: [{ isSignal: true, alias: "digits", required: false }] }], labelHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelHidden", required: false }] }], showSummary: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSummary", required: false }] }], showRange: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRange", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trismegisto-angular-uptime-bar.mjs","sources":["../../src/uptime-bar/uptime-bar-messages.ts","../../src/uptime-bar/uptime-bar.component.ts","../../src/uptime-bar/index.ts","../../src/uptime-bar/trismegisto-angular-uptime-bar.ts"],"sourcesContent":["/** Textos do `hm-uptime-bar`. pt-BR embutido; en/es ao lado. O app sobrescreve frases pelo input `texts` do componente. */\r\nexport interface UptimeBarMessages {\r\n label: string;\r\n summary: string;\r\n listLabel: string;\r\n period: string;\r\n periodNoData: string;\r\n noData: string;\r\n}\r\n\r\nexport const UPTIME_BAR_MESSAGES_PT_BR: UptimeBarMessages = {\r\n label: 'Uptime',\r\n summary: '{percent} de uptime',\r\n listLabel: '{name}: uptime por período',\r\n period: '{date}: {percent}, {status}',\r\n periodNoData: '{date}: sem dados',\r\n noData: 'Sem dados',\r\n};\r\n\r\nexport const UPTIME_BAR_MESSAGES_EN: UptimeBarMessages = {\r\n label: 'Uptime',\r\n summary: '{percent} uptime',\r\n listLabel: '{name}: uptime per period',\r\n period: '{date}: {percent}, {status}',\r\n periodNoData: '{date}: no data',\r\n noData: 'No data',\r\n};\r\n\r\nexport const UPTIME_BAR_MESSAGES_ES: UptimeBarMessages = {\r\n label: 'Uptime',\r\n summary: '{percent} de uptime',\r\n listLabel: '{name}: uptime por período',\r\n period: '{date}: {percent}, {status}',\r\n periodNoData: '{date}: sin datos',\r\n noData: 'Sin datos',\r\n};\r\n","import { booleanAttribute, ChangeDetectionStrategy, Component, ElementRef, computed, inject, input, signal } from '@angular/core';\r\nimport { formatMessage } from '@trismegisto/primitives/i18n';\r\nimport { DEFAULT_UPTIME_THRESHOLDS, type HealthStatus, type MonitoringIntent, type UptimeSample, type UptimeThresholds, formatRatioPercent, healthIntent, uptimeHealth, uptimeRatio } from '@trismegisto/primitives/monitoring';\r\nimport { formatTimelineDate } from '@trismegisto/primitives/timeline';\r\nimport { isRtl } from '@trismegisto/angular/direction';\r\nimport { HermesI18nService } from '@trismegisto/angular/i18n';\r\nimport { type MonitoringTextMessages, pickMonitoringText } from '@trismegisto/angular/monitoring-text';\r\nimport { UPTIME_BAR_MESSAGES_EN, UPTIME_BAR_MESSAGES_ES, UPTIME_BAR_MESSAGES_PT_BR, type UptimeBarMessages } from './uptime-bar-messages';\r\n\r\n/** Formato padrão da data de cada período (um dia). */\r\nexport const UPTIME_BAR_DATE_FORMAT: Intl.DateTimeFormatOptions = Object.freeze({ dateStyle: 'medium' });\r\n\r\ninterface UptimePeriod {\r\n readonly start: number;\r\n readonly status: HealthStatus;\r\n readonly intent: MonitoringIntent;\r\n readonly text: string;\r\n readonly note: string;\r\n}\r\n\r\n/**\r\n * Barra de uptime: um traço por período (dia, hora), colorido pelo estado do período (`uptimeHealth`, ou o\r\n * `status` que o período trouxer), com o uptime total do intervalo (`uptimeRatio`) ao lado do nome.\r\n *\r\n * ```html\r\n * <hm-uptime-bar label=\"API pública\" [samples]=\"ultimos90Dias\" />\r\n * ```\r\n *\r\n * - A cor nunca vem sozinha: a altura do traço cai com a gravidade (cheio = operacional) e cada período tem\r\n * o texto completo (data, uptime, estado e a observação) — numa dica ao passar o mouse ou focar, e dentro\r\n * do próprio item da lista para o leitor de tela.\r\n * - Teclado: a barra é uma parada de Tab só; setas andam pelos períodos (respeitando `rtl`), Home/End vão\r\n * às pontas.\r\n * - `dateFormat` são as opções do `Intl.DateTimeFormat` (inclusive `timeZone`); o idioma é o do catálogo.\r\n */\r\n@Component({\r\n selector: 'hm-uptime-bar',\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: { class: 'hm-uptime-bar' },\r\n template: `\r\n @if (!labelHidden() || showSummary()) {\r\n <div class=\"hm-uptime-bar__header\">\r\n <span class=\"hm-uptime-bar__label\" [class.hm-visually-hidden]=\"labelHidden()\">{{ name() }}</span>\r\n @if (showSummary()) {\r\n <span class=\"hm-uptime-bar__summary\">{{ summary() }}</span>\r\n }\r\n </div>\r\n }\r\n <div class=\"hm-uptime-bar__frame\">\r\n <ol class=\"hm-uptime-bar__track\" [attr.aria-label]=\"listLabel()\" (keydown)=\"onKeydown($event)\" (mouseleave)=\"hovered.set(-1)\">\r\n @for (period of periods(); track period.start; let i = $index) {\r\n <li\r\n class=\"hm-uptime-bar__period\"\r\n [class]=\"'hm-uptime-bar__period--' + period.status\"\r\n [attr.tabindex]=\"i === tabStop() ? 0 : -1\"\r\n (focus)=\"onFocus(i)\"\r\n (blur)=\"focused.set(-1)\"\r\n (mouseenter)=\"hovered.set(i)\"\r\n >\r\n <span class=\"hm-visually-hidden\">{{ period.text }}@if (period.note) {&ngsp;<span>{{ period.note }}</span>}</span>\r\n </li>\r\n }\r\n </ol>\r\n @if (tip(); as active) {\r\n <div\r\n class=\"hm-uptime-bar__tip\"\r\n aria-hidden=\"true\"\r\n [style.inset-inline-start.%]=\"active.start\"\r\n [style.inset-inline-end.%]=\"active.end\"\r\n >\r\n <span class=\"hm-uptime-bar__tip-text\">{{ active.period.text }}</span>\r\n @if (active.period.note) {\r\n <span class=\"hm-uptime-bar__tip-note\">{{ active.period.note }}</span>\r\n }\r\n </div>\r\n }\r\n </div>\r\n @if (range(); as edges) {\r\n <div class=\"hm-uptime-bar__range\" aria-hidden=\"true\">\r\n <span>{{ edges.first }}</span>\r\n <span>{{ edges.last }}</span>\r\n </div>\r\n }\r\n `,\r\n})\r\nexport class UptimeBarComponent {\r\n /** Períodos em ordem de tempo (o mais antigo primeiro). */\r\n readonly samples = input<readonly UptimeSample[]>([]);\r\n /** Nome da barra (o serviço). Vazio = \"Uptime\" do catálogo. */\r\n readonly label = input('');\r\n /** Limiares que classificam o uptime de cada período. */\r\n readonly thresholds = input<UptimeThresholds>(DEFAULT_UPTIME_THRESHOLDS);\r\n /** Opções do `Intl.DateTimeFormat` da data de cada período. */\r\n readonly dateFormat = input<Intl.DateTimeFormatOptions>(UPTIME_BAR_DATE_FORMAT);\r\n /** Casas decimais das porcentagens. */\r\n readonly digits = input(2);\r\n /** Esconde o nome visualmente (ele continua no nome da lista de períodos). */\r\n readonly labelHidden = input(false, { transform: booleanAttribute });\r\n /** Mostra o uptime total ao lado do nome. */\r\n readonly showSummary = input(true, { transform: booleanAttribute });\r\n /** Mostra a data do primeiro e do último período embaixo da barra. */\r\n readonly showRange = input(true, { transform: booleanAttribute });\r\n\r\n /** Sobrescrita parcial dos textos (o app troca a frase sem mudar de idioma). */\r\n readonly texts = input<Partial<MonitoringTextMessages & UptimeBarMessages> | null>(null);\r\n\r\n readonly #i18n = inject(HermesI18nService);\r\n protected readonly text = computed(() =>\r\n pickMonitoringText(this.#i18n, { 'pt-BR': UPTIME_BAR_MESSAGES_PT_BR, en: UPTIME_BAR_MESSAGES_EN, es: UPTIME_BAR_MESSAGES_ES }, this.texts()),\r\n );\r\n readonly #host = inject<ElementRef<HTMLElement>>(ElementRef);\r\n\r\n protected readonly focused = signal(-1);\r\n protected readonly hovered = signal(-1);\r\n /** Período com a parada de Tab (o último focado; o mais recente no começo). */\r\n readonly #cursor = signal(-1);\r\n\r\n protected readonly name = computed(() => this.label() || this.text().label);\r\n\r\n /** Uptime médio dos períodos com dado; `null` sem nenhum. */\r\n readonly ratio = computed(() => uptimeRatio(this.samples()));\r\n\r\n protected readonly summary = computed(() => {\r\n const ratio = this.ratio();\r\n const text = this.text();\r\n if (ratio === null) return text.noData;\r\n return formatMessage(text.summary, { percent: formatRatioPercent(ratio, this.#i18n.formatLocale(), this.digits()) });\r\n });\r\n\r\n protected readonly listLabel = computed(() =>\r\n formatMessage(this.text().listLabel, { name: this.name() }),\r\n );\r\n\r\n protected readonly periods = computed<UptimePeriod[]>(() => {\r\n const locale = this.#i18n.formatLocale();\r\n const text = this.text();\r\n const format = this.dateFormat();\r\n const thresholds = this.thresholds();\r\n return this.samples().map((sample) => {\r\n const status = sample.status ?? uptimeHealth(sample.uptime, thresholds);\r\n const date = formatTimelineDate(sample.start, locale, format)?.text ?? '';\r\n const spoken =\r\n sample.uptime === null || !Number.isFinite(sample.uptime)\r\n ? formatMessage(text.periodNoData, { date })\r\n : formatMessage(text.period, {\r\n date,\r\n percent: formatRatioPercent(sample.uptime, locale, this.digits()),\r\n status: text.healthStatus[status],\r\n });\r\n return { start: sample.start, status, intent: healthIntent(status), text: spoken, note: sample.note ?? '' };\r\n });\r\n });\r\n\r\n protected readonly tabStop = computed(() => {\r\n const count = this.periods().length;\r\n const cursor = this.#cursor();\r\n return cursor >= 0 && cursor < count ? cursor : count - 1;\r\n });\r\n\r\n protected readonly range = computed(() => {\r\n const periods = this.samples();\r\n if (!this.showRange() || !periods.length) return null;\r\n const locale = this.#i18n.formatLocale();\r\n const format = this.dateFormat();\r\n return {\r\n first: formatTimelineDate(periods[0].start, locale, format)?.text ?? '',\r\n last: formatTimelineDate(periods[periods.length - 1].start, locale, format)?.text ?? '',\r\n };\r\n });\r\n\r\n /** Dica do período sob o mouse ou com foco, ancorada pela borda mais próxima (não sai da barra). */\r\n protected readonly tip = computed(() => {\r\n const periods = this.periods();\r\n const index = this.focused() >= 0 ? this.focused() : this.hovered();\r\n const period = periods[index];\r\n if (!period) return null;\r\n const count = periods.length;\r\n const firstHalf = index < count / 2;\r\n return {\r\n period,\r\n start: firstHalf ? (index / count) * 100 : null,\r\n end: firstHalf ? null : ((count - 1 - index) / count) * 100,\r\n };\r\n });\r\n\r\n protected onFocus(index: number): void {\r\n this.focused.set(index);\r\n this.#cursor.set(index);\r\n }\r\n\r\n protected onKeydown(event: KeyboardEvent): void {\r\n const count = this.periods().length;\r\n if (!count) return;\r\n const current = this.focused() >= 0 ? this.focused() : this.tabStop();\r\n const forward = isRtl(this.#host.nativeElement) ? 'ArrowLeft' : 'ArrowRight';\r\n const back = forward === 'ArrowRight' ? 'ArrowLeft' : 'ArrowRight';\r\n let next = current;\r\n if (event.key === forward) next = Math.min(count - 1, current + 1);\r\n else if (event.key === back) next = Math.max(0, current - 1);\r\n else if (event.key === 'Home') next = 0;\r\n else if (event.key === 'End') next = count - 1;\r\n else return;\r\n event.preventDefault();\r\n this.#cursor.set(next);\r\n const items = this.#host.nativeElement.querySelectorAll<HTMLElement>('.hm-uptime-bar__period');\r\n items[next]?.focus();\r\n }\r\n}\r\n","// Ponto de import `@trismegisto/angular/uptime-bar` (secundário do ng-packagr).\r\nexport * from './uptime-bar.component';\r\nexport * from './uptime-bar-messages';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAUO,MAAM,yBAAyB,GAAsB;AAC1D,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,SAAS,EAAE,4BAA4B;AACvC,IAAA,MAAM,EAAE,6BAA6B;AACrC,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,MAAM,EAAE,WAAW;;AAGd,MAAM,sBAAsB,GAAsB;AACvD,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,SAAS,EAAE,2BAA2B;AACtC,IAAA,MAAM,EAAE,6BAA6B;AACrC,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,MAAM,EAAE,SAAS;;AAGZ,MAAM,sBAAsB,GAAsB;AACvD,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,SAAS,EAAE,4BAA4B;AACvC,IAAA,MAAM,EAAE,6BAA6B;AACrC,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,MAAM,EAAE,WAAW;;;ACzBrB;AACO,MAAM,sBAAsB,GAA+B,MAAM,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE;AA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AA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,eAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA9CnB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAEU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAlD9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;oBACzB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE;AAChC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CT,EAAA,CAAA;AACF,iBAAA;;;ACpFD;;ACAA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"trismegisto-angular-uptime-bar.mjs","sources":["../../src/uptime-bar/uptime-bar-messages.ts","../../src/uptime-bar/uptime-bar.component.ts","../../src/uptime-bar/index.ts","../../src/uptime-bar/trismegisto-angular-uptime-bar.ts"],"sourcesContent":["/** Textos do `hm-uptime-bar`. pt-BR embutido; en/es ao lado. O app sobrescreve frases pelo input `texts` do componente. */\nexport interface UptimeBarMessages {\n label: string;\n summary: string;\n listLabel: string;\n period: string;\n periodNoData: string;\n noData: string;\n}\n\nexport const UPTIME_BAR_MESSAGES_PT_BR: UptimeBarMessages = {\n label: 'Uptime',\n summary: '{percent} de uptime',\n listLabel: '{name}: uptime por período',\n period: '{date}: {percent}, {status}',\n periodNoData: '{date}: sem dados',\n noData: 'Sem dados',\n};\n\nexport const UPTIME_BAR_MESSAGES_EN: UptimeBarMessages = {\n label: 'Uptime',\n summary: '{percent} uptime',\n listLabel: '{name}: uptime per period',\n period: '{date}: {percent}, {status}',\n periodNoData: '{date}: no data',\n noData: 'No data',\n};\n\nexport const UPTIME_BAR_MESSAGES_ES: UptimeBarMessages = {\n label: 'Uptime',\n summary: '{percent} de uptime',\n listLabel: '{name}: uptime por período',\n period: '{date}: {percent}, {status}',\n periodNoData: '{date}: sin datos',\n noData: 'Sin datos',\n};\n","import { booleanAttribute, ChangeDetectionStrategy, Component, ElementRef, computed, inject, input, signal } from '@angular/core';\nimport { formatMessage } from '@trismegisto/primitives/i18n';\nimport { DEFAULT_UPTIME_THRESHOLDS, type HealthStatus, type MonitoringIntent, type UptimeSample, type UptimeThresholds, formatRatioPercent, healthIntent, uptimeHealth, uptimeRatio } from '@trismegisto/primitives/monitoring';\nimport { formatTimelineDate } from '@trismegisto/primitives/timeline';\nimport { isRtl } from '@trismegisto/angular/direction';\nimport { HermesI18nService } from '@trismegisto/angular/i18n';\nimport { type MonitoringTextMessages, pickMonitoringText } from '@trismegisto/angular/monitoring-text';\nimport { UPTIME_BAR_MESSAGES_EN, UPTIME_BAR_MESSAGES_ES, UPTIME_BAR_MESSAGES_PT_BR, type UptimeBarMessages } from './uptime-bar-messages';\n\n/** Formato padrão da data de cada período (um dia). */\nexport const UPTIME_BAR_DATE_FORMAT: Intl.DateTimeFormatOptions = Object.freeze({ dateStyle: 'medium' });\n\ninterface UptimePeriod {\n readonly start: number;\n readonly status: HealthStatus;\n readonly intent: MonitoringIntent;\n readonly text: string;\n readonly note: string;\n}\n\n/**\n * Barra de uptime: um traço por período (dia, hora), colorido pelo estado do período (`uptimeHealth`, ou o\n * `status` que o período trouxer), com o uptime total do intervalo (`uptimeRatio`) ao lado do nome.\n *\n * ```html\n * <hm-uptime-bar label=\"API pública\" [samples]=\"ultimos90Dias\" />\n * ```\n *\n * - A cor nunca vem sozinha: a altura do traço cai com a gravidade (cheio = operacional) e cada período tem\n * o texto completo (data, uptime, estado e a observação) — numa dica ao passar o mouse ou focar, e dentro\n * do próprio item da lista para o leitor de tela.\n * - Teclado: a barra é uma parada de Tab só; setas andam pelos períodos (respeitando `rtl`), Home/End vão\n * às pontas.\n * - `dateFormat` são as opções do `Intl.DateTimeFormat` (inclusive `timeZone`); o idioma é o do catálogo.\n */\n@Component({\n selector: 'hm-uptime-bar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-uptime-bar' },\n template: `\n @if (!labelHidden() || showSummary()) {\n <div class=\"hm-uptime-bar__header\">\n <span class=\"hm-uptime-bar__label\" [class.hm-visually-hidden]=\"labelHidden()\">{{ name() }}</span>\n @if (showSummary()) {\n <span class=\"hm-uptime-bar__summary\">{{ summary() }}</span>\n }\n </div>\n }\n <div class=\"hm-uptime-bar__frame\">\n <ol class=\"hm-uptime-bar__track\" [attr.aria-label]=\"listLabel()\" (keydown)=\"onKeydown($event)\" (mouseleave)=\"hovered.set(-1)\">\n @for (period of periods(); track period.start; let i = $index) {\n <li\n class=\"hm-uptime-bar__period\"\n [class]=\"'hm-uptime-bar__period--' + period.status\"\n [attr.tabindex]=\"i === tabStop() ? 0 : -1\"\n (focus)=\"onFocus(i)\"\n (blur)=\"focused.set(-1)\"\n (mouseenter)=\"hovered.set(i)\"\n >\n <span class=\"hm-visually-hidden\">{{ period.text }}@if (period.note) {&ngsp;<span>{{ period.note }}</span>}</span>\n </li>\n }\n </ol>\n @if (tip(); as active) {\n <div\n class=\"hm-uptime-bar__tip\"\n aria-hidden=\"true\"\n [style.inset-inline-start.%]=\"active.start\"\n [style.inset-inline-end.%]=\"active.end\"\n >\n <span class=\"hm-uptime-bar__tip-text\">{{ active.period.text }}</span>\n @if (active.period.note) {\n <span class=\"hm-uptime-bar__tip-note\">{{ active.period.note }}</span>\n }\n </div>\n }\n </div>\n @if (range(); as edges) {\n <div class=\"hm-uptime-bar__range\" aria-hidden=\"true\">\n <span>{{ edges.first }}</span>\n <span>{{ edges.last }}</span>\n </div>\n }\n `,\n})\nexport class UptimeBarComponent {\n /** Períodos em ordem de tempo (o mais antigo primeiro). */\n readonly samples = input<readonly UptimeSample[]>([]);\n /** Nome da barra (o serviço). Vazio = \"Uptime\" do catálogo. */\n readonly label = input('');\n /** Limiares que classificam o uptime de cada período. */\n readonly thresholds = input<UptimeThresholds>(DEFAULT_UPTIME_THRESHOLDS);\n /** Opções do `Intl.DateTimeFormat` da data de cada período. */\n readonly dateFormat = input<Intl.DateTimeFormatOptions>(UPTIME_BAR_DATE_FORMAT);\n /** Casas decimais das porcentagens. */\n readonly digits = input(2);\n /** Esconde o nome visualmente (ele continua no nome da lista de períodos). */\n readonly labelHidden = input(false, { transform: booleanAttribute });\n /** Mostra o uptime total ao lado do nome. */\n readonly showSummary = input(true, { transform: booleanAttribute });\n /** Mostra a data do primeiro e do último período embaixo da barra. */\n readonly showRange = input(true, { transform: booleanAttribute });\n\n /** Sobrescrita parcial dos textos (o app troca a frase sem mudar de idioma). */\n readonly texts = input<Partial<MonitoringTextMessages & UptimeBarMessages> | null>(null);\n\n readonly #i18n = inject(HermesI18nService);\n protected readonly text = computed(() =>\n pickMonitoringText(this.#i18n, { 'pt-BR': UPTIME_BAR_MESSAGES_PT_BR, en: UPTIME_BAR_MESSAGES_EN, es: UPTIME_BAR_MESSAGES_ES }, this.texts()),\n );\n readonly #host = inject<ElementRef<HTMLElement>>(ElementRef);\n\n protected readonly focused = signal(-1);\n protected readonly hovered = signal(-1);\n /** Período com a parada de Tab (o último focado; o mais recente no começo). */\n readonly #cursor = signal(-1);\n\n protected readonly name = computed(() => this.label() || this.text().label);\n\n /** Uptime médio dos períodos com dado; `null` sem nenhum. */\n readonly ratio = computed(() => uptimeRatio(this.samples()));\n\n protected readonly summary = computed(() => {\n const ratio = this.ratio();\n const text = this.text();\n if (ratio === null) return text.noData;\n return formatMessage(text.summary, { percent: formatRatioPercent(ratio, this.#i18n.formatLocale(), this.digits()) });\n });\n\n protected readonly listLabel = computed(() =>\n formatMessage(this.text().listLabel, { name: this.name() }),\n );\n\n protected readonly periods = computed<UptimePeriod[]>(() => {\n const locale = this.#i18n.formatLocale();\n const text = this.text();\n const format = this.dateFormat();\n const thresholds = this.thresholds();\n return this.samples().map((sample) => {\n const status = sample.status ?? uptimeHealth(sample.uptime, thresholds);\n const date = formatTimelineDate(sample.start, locale, format)?.text ?? '';\n const spoken =\n sample.uptime === null || !Number.isFinite(sample.uptime)\n ? formatMessage(text.periodNoData, { date })\n : formatMessage(text.period, {\n date,\n percent: formatRatioPercent(sample.uptime, locale, this.digits()),\n status: text.healthStatus[status],\n });\n return { start: sample.start, status, intent: healthIntent(status), text: spoken, note: sample.note ?? '' };\n });\n });\n\n protected readonly tabStop = computed(() => {\n const count = this.periods().length;\n const cursor = this.#cursor();\n return cursor >= 0 && cursor < count ? cursor : count - 1;\n });\n\n protected readonly range = computed(() => {\n const periods = this.samples();\n if (!this.showRange() || !periods.length) return null;\n const locale = this.#i18n.formatLocale();\n const format = this.dateFormat();\n return {\n first: formatTimelineDate(periods[0].start, locale, format)?.text ?? '',\n last: formatTimelineDate(periods[periods.length - 1].start, locale, format)?.text ?? '',\n };\n });\n\n /** Dica do período sob o mouse ou com foco, ancorada pela borda mais próxima (não sai da barra). */\n protected readonly tip = computed(() => {\n const periods = this.periods();\n const index = this.focused() >= 0 ? this.focused() : this.hovered();\n const period = periods[index];\n if (!period) return null;\n const count = periods.length;\n const firstHalf = index < count / 2;\n return {\n period,\n start: firstHalf ? (index / count) * 100 : null,\n end: firstHalf ? null : ((count - 1 - index) / count) * 100,\n };\n });\n\n protected onFocus(index: number): void {\n this.focused.set(index);\n this.#cursor.set(index);\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const count = this.periods().length;\n if (!count) return;\n const current = this.focused() >= 0 ? this.focused() : this.tabStop();\n const forward = isRtl(this.#host.nativeElement) ? 'ArrowLeft' : 'ArrowRight';\n const back = forward === 'ArrowRight' ? 'ArrowLeft' : 'ArrowRight';\n let next = current;\n if (event.key === forward) next = Math.min(count - 1, current + 1);\n else if (event.key === back) next = Math.max(0, current - 1);\n else if (event.key === 'Home') next = 0;\n else if (event.key === 'End') next = count - 1;\n else return;\n event.preventDefault();\n this.#cursor.set(next);\n const items = this.#host.nativeElement.querySelectorAll<HTMLElement>('.hm-uptime-bar__period');\n items[next]?.focus();\n }\n}\n","// Ponto de import `@trismegisto/angular/uptime-bar` (secundário do ng-packagr).\nexport * from './uptime-bar.component';\nexport * from './uptime-bar-messages';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAUO,MAAM,yBAAyB,GAAsB;AAC1D,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,SAAS,EAAE,4BAA4B;AACvC,IAAA,MAAM,EAAE,6BAA6B;AACrC,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,MAAM,EAAE,WAAW;;AAGd,MAAM,sBAAsB,GAAsB;AACvD,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,OAAO,EAAE,kBAAkB;AAC3B,IAAA,SAAS,EAAE,2BAA2B;AACtC,IAAA,MAAM,EAAE,6BAA6B;AACrC,IAAA,YAAY,EAAE,iBAAiB;AAC/B,IAAA,MAAM,EAAE,SAAS;;AAGZ,MAAM,sBAAsB,GAAsB;AACvD,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,OAAO,EAAE,qBAAqB;AAC9B,IAAA,SAAS,EAAE,4BAA4B;AACvC,IAAA,MAAM,EAAE,6BAA6B;AACrC,IAAA,YAAY,EAAE,mBAAmB;AACjC,IAAA,MAAM,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iBAAA,EAAA,aAAA,EAAA,UAAA,EAAA,aAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,WAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,eAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EA9CnB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAEU,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAlD9B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;oBACzB,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,eAAe,EAAE;AAChC,oBAAA,QAAQ,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CT,EAAA,CAAA;AACF,iBAAA;;;ACpFD;;ACAA;;AAEG;;"}
|
|
@@ -72,11 +72,11 @@ class RoleBadgeComponent {
|
|
|
72
72
|
text = computed(() => (this.owner() ? this.t().owner : this.name()), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
73
73
|
classes = computed(() => `hm-role-badge${this.owner() ? ' hm-role-badge--owner' : this.tone() === 'elevated' ? ' hm-role-badge--elevated' : ''}`, ...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
74
74
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RoleBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
75
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: RoleBadgeComponent, isStandalone: true, selector: "hm-role-badge", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, owner: { classPropertyName: "owner", publicName: "owner", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `
|
|
76
|
-
@if (owner() || icon()) {
|
|
77
|
-
<hm-icon class="hm-role-badge__icon" [shape]="owner() ? 'crown' : icon()" />
|
|
78
|
-
}
|
|
79
|
-
<span class="hm-role-badge__text">{{ text() }}</span>
|
|
75
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: RoleBadgeComponent, isStandalone: true, selector: "hm-role-badge", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, owner: { classPropertyName: "owner", publicName: "owner", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class": "classes()" } }, ngImport: i0, template: `
|
|
76
|
+
@if (owner() || icon()) {
|
|
77
|
+
<hm-icon class="hm-role-badge__icon" [shape]="owner() ? 'crown' : icon()" />
|
|
78
|
+
}
|
|
79
|
+
<span class="hm-role-badge__text">{{ text() }}</span>
|
|
80
80
|
`, isInline: true, dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
81
81
|
}
|
|
82
82
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: RoleBadgeComponent, decorators: [{
|
|
@@ -88,11 +88,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
88
88
|
host: {
|
|
89
89
|
'[class]': 'classes()',
|
|
90
90
|
},
|
|
91
|
-
template: `
|
|
92
|
-
@if (owner() || icon()) {
|
|
93
|
-
<hm-icon class="hm-role-badge__icon" [shape]="owner() ? 'crown' : icon()" />
|
|
94
|
-
}
|
|
95
|
-
<span class="hm-role-badge__text">{{ text() }}</span>
|
|
91
|
+
template: `
|
|
92
|
+
@if (owner() || icon()) {
|
|
93
|
+
<hm-icon class="hm-role-badge__icon" [shape]="owner() ? 'crown' : icon()" />
|
|
94
|
+
}
|
|
95
|
+
<span class="hm-role-badge__text">{{ text() }}</span>
|
|
96
96
|
`,
|
|
97
97
|
}]
|
|
98
98
|
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], owner: [{ type: i0.Input, args: [{ isSignal: true, alias: "owner", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -134,38 +134,38 @@ class UserCardComponent {
|
|
|
134
134
|
texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
135
135
|
t = computed(() => ({ ...this.#i18n.pick(USER_CARD_MESSAGES, USER_CARD_MESSAGES_PT_BR), ...this.texts() }), ...(ngDevMode ? [{ debugName: "t" }] : /* istanbul ignore next */ []));
|
|
136
136
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: UserCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
137
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: UserCardComponent, isStandalone: true, selector: "hm-user-card", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, jobTitle: { classPropertyName: "jobTitle", publicName: "jobTitle", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, email: { classPropertyName: "email", publicName: "email", isSignal: true, isRequired: false, transformFunction: null }, imageUrl: { classPropertyName: "imageUrl", publicName: "imageUrl", isSignal: true, isRequired: false, transformFunction: null }, presence: { classPropertyName: "presence", publicName: "presence", isSignal: true, isRequired: false, transformFunction: null }, roleName: { classPropertyName: "roleName", publicName: "roleName", isSignal: true, isRequired: false, transformFunction: null }, owner: { classPropertyName: "owner", publicName: "owner", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.hm-people-card--compact": "compact()" }, classAttribute: "hm-people-card" }, ngImport: i0, template: `
|
|
138
|
-
<div class="hm-people-card__head">
|
|
139
|
-
<hm-account-avatar class="hm-people-card__avatar" [size]="compact() ? 'medium' : 'large'" [name]="name()" [imageUrl]="imageUrl()" [presence]="presence()" />
|
|
140
|
-
<div class="hm-people-card__identity">
|
|
141
|
-
<p class="hm-people-card__name" [attr.role]="headingLevel() ? 'heading' : null" [attr.aria-level]="headingLevel() || null">{{ name() }}</p>
|
|
142
|
-
@if (jobTitle()) {
|
|
143
|
-
<p class="hm-people-card__title">{{ jobTitle() }}</p>
|
|
144
|
-
}
|
|
145
|
-
@if (roleName() || owner()) {
|
|
146
|
-
<p class="hm-people-card__badges">
|
|
147
|
-
@if (owner()) {
|
|
148
|
-
<hm-role-badge owner />
|
|
149
|
-
}
|
|
150
|
-
@if (roleName()) {
|
|
151
|
-
<hm-role-badge [name]="roleName()" />
|
|
152
|
-
}
|
|
153
|
-
</p>
|
|
154
|
-
}
|
|
155
|
-
</div>
|
|
156
|
-
</div>
|
|
157
|
-
@if (description()) {
|
|
158
|
-
<p class="hm-people-card__description">{{ description() }}</p>
|
|
159
|
-
}
|
|
160
|
-
@if (email()) {
|
|
161
|
-
<p class="hm-people-card__line">
|
|
162
|
-
<hm-icon class="hm-people-card__line-icon" shape="envelope" />
|
|
163
|
-
<span class="hm-visually-hidden">{{ t().email }}:</span>
|
|
164
|
-
<a class="hm-people-card__link" [href]="'mailto:' + email()">{{ email() }}</a>
|
|
165
|
-
</p>
|
|
166
|
-
}
|
|
167
|
-
<div class="hm-people-card__meta"><ng-content select="[userCardMeta]" /></div>
|
|
168
|
-
<div class="hm-people-card__actions"><ng-content /></div>
|
|
137
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: UserCardComponent, isStandalone: true, selector: "hm-user-card", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, jobTitle: { classPropertyName: "jobTitle", publicName: "jobTitle", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, email: { classPropertyName: "email", publicName: "email", isSignal: true, isRequired: false, transformFunction: null }, imageUrl: { classPropertyName: "imageUrl", publicName: "imageUrl", isSignal: true, isRequired: false, transformFunction: null }, presence: { classPropertyName: "presence", publicName: "presence", isSignal: true, isRequired: false, transformFunction: null }, roleName: { classPropertyName: "roleName", publicName: "roleName", isSignal: true, isRequired: false, transformFunction: null }, owner: { classPropertyName: "owner", publicName: "owner", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.hm-people-card--compact": "compact()" }, classAttribute: "hm-people-card" }, ngImport: i0, template: `
|
|
138
|
+
<div class="hm-people-card__head">
|
|
139
|
+
<hm-account-avatar class="hm-people-card__avatar" [size]="compact() ? 'medium' : 'large'" [name]="name()" [imageUrl]="imageUrl()" [presence]="presence()" />
|
|
140
|
+
<div class="hm-people-card__identity">
|
|
141
|
+
<p class="hm-people-card__name" [attr.role]="headingLevel() ? 'heading' : null" [attr.aria-level]="headingLevel() || null">{{ name() }}</p>
|
|
142
|
+
@if (jobTitle()) {
|
|
143
|
+
<p class="hm-people-card__title">{{ jobTitle() }}</p>
|
|
144
|
+
}
|
|
145
|
+
@if (roleName() || owner()) {
|
|
146
|
+
<p class="hm-people-card__badges">
|
|
147
|
+
@if (owner()) {
|
|
148
|
+
<hm-role-badge owner />
|
|
149
|
+
}
|
|
150
|
+
@if (roleName()) {
|
|
151
|
+
<hm-role-badge [name]="roleName()" />
|
|
152
|
+
}
|
|
153
|
+
</p>
|
|
154
|
+
}
|
|
155
|
+
</div>
|
|
156
|
+
</div>
|
|
157
|
+
@if (description()) {
|
|
158
|
+
<p class="hm-people-card__description">{{ description() }}</p>
|
|
159
|
+
}
|
|
160
|
+
@if (email()) {
|
|
161
|
+
<p class="hm-people-card__line">
|
|
162
|
+
<hm-icon class="hm-people-card__line-icon" shape="envelope" />
|
|
163
|
+
<span class="hm-visually-hidden">{{ t().email }}:</span>
|
|
164
|
+
<a class="hm-people-card__link" [href]="'mailto:' + email()">{{ email() }}</a>
|
|
165
|
+
</p>
|
|
166
|
+
}
|
|
167
|
+
<div class="hm-people-card__meta"><ng-content select="[userCardMeta]" /></div>
|
|
168
|
+
<div class="hm-people-card__actions"><ng-content /></div>
|
|
169
169
|
`, isInline: true, dependencies: [{ kind: "component", type: AccountAvatarComponent, selector: "hm-account-avatar", inputs: ["name", "imageUrl", "size", "loading", "presence", "texts"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: RoleBadgeComponent, selector: "hm-role-badge", inputs: ["name", "owner", "tone", "icon", "texts"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
170
170
|
}
|
|
171
171
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: UserCardComponent, decorators: [{
|
|
@@ -175,38 +175,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
175
175
|
imports: [AccountAvatarComponent, IconComponent, RoleBadgeComponent],
|
|
176
176
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
177
177
|
host: { class: 'hm-people-card', '[class.hm-people-card--compact]': 'compact()' },
|
|
178
|
-
template: `
|
|
179
|
-
<div class="hm-people-card__head">
|
|
180
|
-
<hm-account-avatar class="hm-people-card__avatar" [size]="compact() ? 'medium' : 'large'" [name]="name()" [imageUrl]="imageUrl()" [presence]="presence()" />
|
|
181
|
-
<div class="hm-people-card__identity">
|
|
182
|
-
<p class="hm-people-card__name" [attr.role]="headingLevel() ? 'heading' : null" [attr.aria-level]="headingLevel() || null">{{ name() }}</p>
|
|
183
|
-
@if (jobTitle()) {
|
|
184
|
-
<p class="hm-people-card__title">{{ jobTitle() }}</p>
|
|
185
|
-
}
|
|
186
|
-
@if (roleName() || owner()) {
|
|
187
|
-
<p class="hm-people-card__badges">
|
|
188
|
-
@if (owner()) {
|
|
189
|
-
<hm-role-badge owner />
|
|
190
|
-
}
|
|
191
|
-
@if (roleName()) {
|
|
192
|
-
<hm-role-badge [name]="roleName()" />
|
|
193
|
-
}
|
|
194
|
-
</p>
|
|
195
|
-
}
|
|
196
|
-
</div>
|
|
197
|
-
</div>
|
|
198
|
-
@if (description()) {
|
|
199
|
-
<p class="hm-people-card__description">{{ description() }}</p>
|
|
200
|
-
}
|
|
201
|
-
@if (email()) {
|
|
202
|
-
<p class="hm-people-card__line">
|
|
203
|
-
<hm-icon class="hm-people-card__line-icon" shape="envelope" />
|
|
204
|
-
<span class="hm-visually-hidden">{{ t().email }}:</span>
|
|
205
|
-
<a class="hm-people-card__link" [href]="'mailto:' + email()">{{ email() }}</a>
|
|
206
|
-
</p>
|
|
207
|
-
}
|
|
208
|
-
<div class="hm-people-card__meta"><ng-content select="[userCardMeta]" /></div>
|
|
209
|
-
<div class="hm-people-card__actions"><ng-content /></div>
|
|
178
|
+
template: `
|
|
179
|
+
<div class="hm-people-card__head">
|
|
180
|
+
<hm-account-avatar class="hm-people-card__avatar" [size]="compact() ? 'medium' : 'large'" [name]="name()" [imageUrl]="imageUrl()" [presence]="presence()" />
|
|
181
|
+
<div class="hm-people-card__identity">
|
|
182
|
+
<p class="hm-people-card__name" [attr.role]="headingLevel() ? 'heading' : null" [attr.aria-level]="headingLevel() || null">{{ name() }}</p>
|
|
183
|
+
@if (jobTitle()) {
|
|
184
|
+
<p class="hm-people-card__title">{{ jobTitle() }}</p>
|
|
185
|
+
}
|
|
186
|
+
@if (roleName() || owner()) {
|
|
187
|
+
<p class="hm-people-card__badges">
|
|
188
|
+
@if (owner()) {
|
|
189
|
+
<hm-role-badge owner />
|
|
190
|
+
}
|
|
191
|
+
@if (roleName()) {
|
|
192
|
+
<hm-role-badge [name]="roleName()" />
|
|
193
|
+
}
|
|
194
|
+
</p>
|
|
195
|
+
}
|
|
196
|
+
</div>
|
|
197
|
+
</div>
|
|
198
|
+
@if (description()) {
|
|
199
|
+
<p class="hm-people-card__description">{{ description() }}</p>
|
|
200
|
+
}
|
|
201
|
+
@if (email()) {
|
|
202
|
+
<p class="hm-people-card__line">
|
|
203
|
+
<hm-icon class="hm-people-card__line-icon" shape="envelope" />
|
|
204
|
+
<span class="hm-visually-hidden">{{ t().email }}:</span>
|
|
205
|
+
<a class="hm-people-card__link" [href]="'mailto:' + email()">{{ email() }}</a>
|
|
206
|
+
</p>
|
|
207
|
+
}
|
|
208
|
+
<div class="hm-people-card__meta"><ng-content select="[userCardMeta]" /></div>
|
|
209
|
+
<div class="hm-people-card__actions"><ng-content /></div>
|
|
210
210
|
`,
|
|
211
211
|
}]
|
|
212
212
|
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], jobTitle: [{ type: i0.Input, args: [{ isSignal: true, alias: "jobTitle", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], email: [{ type: i0.Input, args: [{ isSignal: true, alias: "email", required: false }] }], imageUrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageUrl", required: false }] }], presence: [{ type: i0.Input, args: [{ isSignal: true, alias: "presence", required: false }] }], roleName: [{ type: i0.Input, args: [{ isSignal: true, alias: "roleName", required: false }] }], owner: [{ type: i0.Input, args: [{ isSignal: true, alias: "owner", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -242,22 +242,22 @@ class TeamCardComponent {
|
|
|
242
242
|
t = computed(() => ({ ...this.#i18n.pick(USER_CARD_MESSAGES, USER_CARD_MESSAGES_PT_BR), ...this.texts() }), ...(ngDevMode ? [{ debugName: "t" }] : /* istanbul ignore next */ []));
|
|
243
243
|
countText = computed(() => pluralMessage(this.t().memberCount, this.memberCount() ?? this.members().length, this.#i18n.formatLocale()), ...(ngDevMode ? [{ debugName: "countText" }] : /* istanbul ignore next */ []));
|
|
244
244
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TeamCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
245
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TeamCardComponent, isStandalone: true, selector: "hm-team-card", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, members: { classPropertyName: "members", publicName: "members", isSignal: true, isRequired: false, transformFunction: null }, memberCount: { classPropertyName: "memberCount", publicName: "memberCount", isSignal: true, isRequired: false, transformFunction: null }, maxAvatars: { classPropertyName: "maxAvatars", publicName: "maxAvatars", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.hm-people-card--compact": "compact()" }, classAttribute: "hm-people-card hm-people-card--team" }, ngImport: i0, template: `
|
|
246
|
-
<div class="hm-people-card__head">
|
|
247
|
-
<span class="hm-people-card__emblem"><hm-icon class="hm-people-card__emblem-icon" [shape]="icon()" /></span>
|
|
248
|
-
<div class="hm-people-card__identity">
|
|
249
|
-
<p class="hm-people-card__name" [attr.role]="headingLevel() ? 'heading' : null" [attr.aria-level]="headingLevel() || null">{{ name() }}</p>
|
|
250
|
-
<p class="hm-people-card__title">{{ countText() }}</p>
|
|
251
|
-
</div>
|
|
252
|
-
</div>
|
|
253
|
-
@if (description()) {
|
|
254
|
-
<p class="hm-people-card__description">{{ description() }}</p>
|
|
255
|
-
}
|
|
256
|
-
@if (members().length) {
|
|
257
|
-
<hm-avatar-group class="hm-people-card__members" size="small" [people]="members()" [max]="maxAvatars()" [total]="memberCount()" [label]="name()" />
|
|
258
|
-
}
|
|
259
|
-
<div class="hm-people-card__meta"><ng-content select="[teamCardMeta]" /></div>
|
|
260
|
-
<div class="hm-people-card__actions"><ng-content /></div>
|
|
245
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TeamCardComponent, isStandalone: true, selector: "hm-team-card", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, members: { classPropertyName: "members", publicName: "members", isSignal: true, isRequired: false, transformFunction: null }, memberCount: { classPropertyName: "memberCount", publicName: "memberCount", isSignal: true, isRequired: false, transformFunction: null }, maxAvatars: { classPropertyName: "maxAvatars", publicName: "maxAvatars", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, compact: { classPropertyName: "compact", publicName: "compact", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.hm-people-card--compact": "compact()" }, classAttribute: "hm-people-card hm-people-card--team" }, ngImport: i0, template: `
|
|
246
|
+
<div class="hm-people-card__head">
|
|
247
|
+
<span class="hm-people-card__emblem"><hm-icon class="hm-people-card__emblem-icon" [shape]="icon()" /></span>
|
|
248
|
+
<div class="hm-people-card__identity">
|
|
249
|
+
<p class="hm-people-card__name" [attr.role]="headingLevel() ? 'heading' : null" [attr.aria-level]="headingLevel() || null">{{ name() }}</p>
|
|
250
|
+
<p class="hm-people-card__title">{{ countText() }}</p>
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
@if (description()) {
|
|
254
|
+
<p class="hm-people-card__description">{{ description() }}</p>
|
|
255
|
+
}
|
|
256
|
+
@if (members().length) {
|
|
257
|
+
<hm-avatar-group class="hm-people-card__members" size="small" [people]="members()" [max]="maxAvatars()" [total]="memberCount()" [label]="name()" />
|
|
258
|
+
}
|
|
259
|
+
<div class="hm-people-card__meta"><ng-content select="[teamCardMeta]" /></div>
|
|
260
|
+
<div class="hm-people-card__actions"><ng-content /></div>
|
|
261
261
|
`, isInline: true, dependencies: [{ kind: "component", type: AvatarGroupComponent, selector: "hm-avatar-group", inputs: ["people", "max", "size", "label", "total"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
262
262
|
}
|
|
263
263
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TeamCardComponent, decorators: [{
|
|
@@ -267,22 +267,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
267
267
|
imports: [AvatarGroupComponent, IconComponent],
|
|
268
268
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
269
269
|
host: { class: 'hm-people-card hm-people-card--team', '[class.hm-people-card--compact]': 'compact()' },
|
|
270
|
-
template: `
|
|
271
|
-
<div class="hm-people-card__head">
|
|
272
|
-
<span class="hm-people-card__emblem"><hm-icon class="hm-people-card__emblem-icon" [shape]="icon()" /></span>
|
|
273
|
-
<div class="hm-people-card__identity">
|
|
274
|
-
<p class="hm-people-card__name" [attr.role]="headingLevel() ? 'heading' : null" [attr.aria-level]="headingLevel() || null">{{ name() }}</p>
|
|
275
|
-
<p class="hm-people-card__title">{{ countText() }}</p>
|
|
276
|
-
</div>
|
|
277
|
-
</div>
|
|
278
|
-
@if (description()) {
|
|
279
|
-
<p class="hm-people-card__description">{{ description() }}</p>
|
|
280
|
-
}
|
|
281
|
-
@if (members().length) {
|
|
282
|
-
<hm-avatar-group class="hm-people-card__members" size="small" [people]="members()" [max]="maxAvatars()" [total]="memberCount()" [label]="name()" />
|
|
283
|
-
}
|
|
284
|
-
<div class="hm-people-card__meta"><ng-content select="[teamCardMeta]" /></div>
|
|
285
|
-
<div class="hm-people-card__actions"><ng-content /></div>
|
|
270
|
+
template: `
|
|
271
|
+
<div class="hm-people-card__head">
|
|
272
|
+
<span class="hm-people-card__emblem"><hm-icon class="hm-people-card__emblem-icon" [shape]="icon()" /></span>
|
|
273
|
+
<div class="hm-people-card__identity">
|
|
274
|
+
<p class="hm-people-card__name" [attr.role]="headingLevel() ? 'heading' : null" [attr.aria-level]="headingLevel() || null">{{ name() }}</p>
|
|
275
|
+
<p class="hm-people-card__title">{{ countText() }}</p>
|
|
276
|
+
</div>
|
|
277
|
+
</div>
|
|
278
|
+
@if (description()) {
|
|
279
|
+
<p class="hm-people-card__description">{{ description() }}</p>
|
|
280
|
+
}
|
|
281
|
+
@if (members().length) {
|
|
282
|
+
<hm-avatar-group class="hm-people-card__members" size="small" [people]="members()" [max]="maxAvatars()" [total]="memberCount()" [label]="name()" />
|
|
283
|
+
}
|
|
284
|
+
<div class="hm-people-card__meta"><ng-content select="[teamCardMeta]" /></div>
|
|
285
|
+
<div class="hm-people-card__actions"><ng-content /></div>
|
|
286
286
|
`,
|
|
287
287
|
}]
|
|
288
288
|
}], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], members: [{ type: i0.Input, args: [{ isSignal: true, alias: "members", required: false }] }], memberCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "memberCount", required: false }] }], maxAvatars: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxAvatars", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], compact: [{ type: i0.Input, args: [{ isSignal: true, alias: "compact", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|