@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"trismegisto-angular-account-switcher.mjs","sources":["../../src/account-switcher/account-switcher-messages.ts","../../src/account-switcher/icons.generated.ts","../../src/account-switcher/account-switcher.component.ts","../../src/account-switcher/index.ts","../../src/account-switcher/trismegisto-angular-account-switcher.ts"],"sourcesContent":["\r\n// Textos do troca de conta (pt-BR/en/es). Ficam na pasta do componente, fora do HERMES_MESSAGES compartilhado,\r\n// para não pesar no bundle de quem não usa a peça. O componente escolhe pelo idioma ativo do\r\n// `HermesI18nService` (`pick`) e aceita sobrescrita parcial por input.\r\n\r\nexport interface AccountSwitcherMessages {\r\n label: string;\r\n current: string;\r\n switchTo: string;\r\n signedOut: string;\r\n add: string;\r\n signOut: string;\r\n signOutAll: string;\r\n manage: string;\r\n}\r\n\r\nexport const ACCOUNT_SWITCHER_MESSAGES_PT_BR: AccountSwitcherMessages = {\r\n label: \"Contas\",\r\n current: \"Conta atual\",\r\n switchTo: \"Entrar como {name}\",\r\n signedOut: \"Sessão encerrada\",\r\n add: \"Adicionar outra conta\",\r\n signOut: \"Sair de {name}\",\r\n signOutAll: \"Sair de todas as contas\",\r\n manage: \"Gerenciar conta\",\r\n};\r\n\r\nexport const ACCOUNT_SWITCHER_MESSAGES_EN: AccountSwitcherMessages = {\r\n label: \"Accounts\",\r\n current: \"Current account\",\r\n switchTo: \"Sign in as {name}\",\r\n signedOut: \"Signed out\",\r\n add: \"Add another account\",\r\n signOut: \"Sign out of {name}\",\r\n signOutAll: \"Sign out of all accounts\",\r\n manage: \"Manage account\",\r\n};\r\n\r\nexport const ACCOUNT_SWITCHER_MESSAGES_ES: AccountSwitcherMessages = {\r\n label: \"Cuentas\",\r\n current: \"Cuenta actual\",\r\n switchTo: \"Entrar como {name}\",\r\n signedOut: \"Sesión cerrada\",\r\n add: \"Añadir otra cuenta\",\r\n signOut: \"Cerrar sesión de {name}\",\r\n signOutAll: \"Cerrar sesión en todas las cuentas\",\r\n manage: \"Gestionar cuenta\",\r\n};\r\n\r\n/** Catálogos por idioma, para `HermesI18nService.pick`. */\r\nexport const ACCOUNT_SWITCHER_MESSAGES: Readonly<Record<string, AccountSwitcherMessages>> = {\r\n 'pt-BR': ACCOUNT_SWITCHER_MESSAGES_PT_BR,\r\n en: ACCOUNT_SWITCHER_MESSAGES_EN,\r\n es: ACCOUNT_SWITCHER_MESSAGES_ES,\r\n};\r\n","// GERADO por scripts/generate-internal-icons.mjs — não editar à mão.\n// Ícones que esta pasta usa por dentro; cada @Component/@Directive daqui os registra com\n// `readonly #icons = useHermesIcons(ACCOUNT_SWITCHER_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_ANGLE,\n ICON_LOGOUT,\n ICON_USER_PLUS,\n} from '@trismegisto/angular/icon';\n\nexport const ACCOUNT_SWITCHER_ICONS: readonly RegisteredIcon[] = [ICON_ANGLE, ICON_LOGOUT, ICON_USER_PLUS];\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input, output } from '@angular/core';\r\nimport { AccountEntry, orderAccounts } from '@trismegisto/primitives/account';\r\nimport { formatMessage } from '@trismegisto/primitives/i18n';\r\nimport { AccountAvatarComponent } from '@trismegisto/angular/account-avatar';\r\nimport { ButtonComponent } from '@trismegisto/angular/button';\r\nimport { HermesI18nService } from '@trismegisto/angular/i18n';\r\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\r\nimport { ACCOUNT_SWITCHER_MESSAGES, ACCOUNT_SWITCHER_MESSAGES_PT_BR, type AccountSwitcherMessages } from './account-switcher-messages';\r\nimport { ACCOUNT_SWITCHER_ICONS } from './icons.generated';\r\n\r\n/**\r\n * Troca de conta: a conta atual em destaque (com \"Gerenciar conta\"), as outras contas guardadas como botões\r\n * \"Entrar como…\", \"Adicionar outra conta\" e \"Sair de todas as contas\". Cabe num `hm-popover` aberto pelo\r\n * avatar do cabeçalho, ou numa página.\r\n *\r\n * ```html\r\n * <hm-account-switcher [accounts]=\"accounts\" currentId=\"ana\" (switchTo)=\"use($event)\" (add)=\"signInAnother()\" (signOutAll)=\"exit()\" />\r\n * ```\r\n *\r\n * - Conta com sessão expirada (`signedOut`) aparece marcada; trocar para ela é o app pedindo para entrar de novo.\r\n * - Só UI + eventos: nenhuma sessão é trocada aqui.\r\n */\r\n@Component({\r\n selector: 'hm-account-switcher',\r\n imports: [AccountAvatarComponent, ButtonComponent, IconComponent],\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n host: { class: 'hm-account-switcher' },\r\n template: `\r\n @if (current(); as account) {\r\n <div class=\"hm-account-switcher__current\">\r\n <hm-account-avatar size=\"large\" [name]=\"account.name\" [imageUrl]=\"account.imageUrl\" />\r\n <div class=\"hm-account-switcher__who\">\r\n <span class=\"hm-visually-hidden\">{{ t().current }}:</span>\r\n <span class=\"hm-account-switcher__name\">{{ account.name }}</span>\r\n @if (account.email) {\r\n <span class=\"hm-account-switcher__detail\">{{ account.email }}</span>\r\n }\r\n @if (account.organization) {\r\n <span class=\"hm-account-switcher__detail\">{{ account.organization }}</span>\r\n }\r\n </div>\r\n @if (manageable()) {\r\n <hm-button emphasis=\"medium\" size=\"small\" (clicked)=\"manage.emit(account)\">{{ t().manage }}</hm-button>\r\n }\r\n </div>\r\n }\r\n @if (others().length) {\r\n <ul class=\"hm-account-switcher__list\" [attr.aria-label]=\"t().label\">\r\n @for (account of others(); track account.id) {\r\n <li>\r\n <button type=\"button\" class=\"hm-account-switcher__account\" [attr.aria-label]=\"switchLabel(account)\" (click)=\"switchTo.emit(account)\">\r\n <hm-account-avatar size=\"small\" [name]=\"account.name\" [imageUrl]=\"account.imageUrl\" />\r\n <span class=\"hm-account-switcher__who\">\r\n <span class=\"hm-account-switcher__name\">{{ account.name }}</span>\r\n <span class=\"hm-account-switcher__detail\">{{ account.email || account.organization }}</span>\r\n @if (account.signedOut) {\r\n <span class=\"hm-account-switcher__signed-out\">{{ t().signedOut }}</span>\r\n }\r\n </span>\r\n <hm-icon class=\"hm-account-switcher__chevron\" shape=\"angle\" direction=\"right\" />\r\n </button>\r\n </li>\r\n }\r\n </ul>\r\n }\r\n <div class=\"hm-account-switcher__footer\">\r\n @if (allowAdd()) {\r\n <hm-button emphasis=\"minimal\" size=\"small\" icon=\"user-plus\" (clicked)=\"add.emit()\">{{ t().add }}</hm-button>\r\n }\r\n <hm-button emphasis=\"minimal\" size=\"small\" icon=\"logout\" (clicked)=\"signOutAll.emit()\">{{ accounts().length > 1 ? t().signOutAll : signOutCurrent() }}</hm-button>\r\n </div>\r\n `,\r\n})\r\nexport class AccountSwitcherComponent {\r\n readonly #icons = useHermesIcons(ACCOUNT_SWITCHER_ICONS);\r\n readonly accounts = input.required<readonly AccountEntry[]>();\r\n /** Id da conta em uso. */\r\n readonly currentId = input<string | null>(null);\r\n /** Botão \"Adicionar outra conta\". */\r\n readonly allowAdd = input(true, { transform: booleanAttribute });\r\n /** Botão \"Gerenciar conta\" na conta atual. */\r\n readonly manageable = input(true, { transform: booleanAttribute });\r\n /** Sobrescrita parcial dos textos (padrão: o catálogo do idioma ativo). */\r\n readonly texts = input<Partial<AccountSwitcherMessages>>({});\r\n\r\n readonly switchTo = output<AccountEntry>();\r\n readonly add = output<void>();\r\n readonly manage = output<AccountEntry>();\r\n /** Sair (de todas, ou da única conta). */\r\n readonly signOutAll = output<void>();\r\n\r\n readonly #i18n = inject(HermesI18nService);\r\n protected readonly t = computed<AccountSwitcherMessages>(() => ({\r\n ...this.#i18n.pick(ACCOUNT_SWITCHER_MESSAGES, ACCOUNT_SWITCHER_MESSAGES_PT_BR),\r\n ...this.texts(),\r\n }));\r\n private readonly ordered = computed(() => orderAccounts(this.accounts(), this.currentId()));\r\n protected readonly current = computed(() => this.ordered().find((a) => a.id === this.currentId()) ?? null);\r\n protected readonly others = computed(() => this.ordered().filter((a) => a.id !== this.currentId()));\r\n protected readonly signOutCurrent = computed(() => formatMessage(this.t().signOut, { name: this.current()?.name ?? '' }));\r\n\r\n protected switchLabel(account: AccountEntry): string {\r\n const label = formatMessage(this.t().switchTo, { name: account.name });\r\n return account.signedOut ? `${label} (${this.t().signedOut})` : label;\r\n }\r\n}\r\n","// Ponto de import `@trismegisto/angular/account-switcher` (secundário do ng-packagr). Ao criar arquivo público novo\r\n// na pasta, acrescente a linha.\r\nexport * from './account-switcher-messages';\r\nexport * from './account-switcher.component';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AACA;AACA;AACA;AAaO,MAAM,+BAA+B,GAA4B;AACtE,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,QAAQ,EAAE,oBAAoB;AAC9B,IAAA,SAAS,EAAE,kBAAkB;AAC7B,IAAA,GAAG,EAAE,uBAAuB;AAC5B,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,UAAU,EAAE,yBAAyB;AACrC,IAAA,MAAM,EAAE,iBAAiB;;AAGpB,MAAM,4BAA4B,GAA4B;AACnE,IAAA,KAAK,EAAE,UAAU;AACjB,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,QAAQ,EAAE,mBAAmB;AAC7B,IAAA,SAAS,EAAE,YAAY;AACvB,IAAA,GAAG,EAAE,qBAAqB;AAC1B,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,UAAU,EAAE,0BAA0B;AACtC,IAAA,MAAM,EAAE,gBAAgB;;AAGnB,MAAM,4BAA4B,GAA4B;AACnE,IAAA,KAAK,EAAE,SAAS;AAChB,IAAA,OAAO,EAAE,eAAe;AACxB,IAAA,QAAQ,EAAE,oBAAoB;AAC9B,IAAA,SAAS,EAAE,gBAAgB;AAC3B,IAAA,GAAG,EAAE,oBAAoB;AACzB,IAAA,OAAO,EAAE,yBAAyB;AAClC,IAAA,UAAU,EAAE,oCAAoC;AAChD,IAAA,MAAM,EAAE,kBAAkB;;AAG5B;AACO,MAAM,yBAAyB,GAAsD;AAC1F,IAAA,OAAO,EAAE,+BAA+B;AACxC,IAAA,EAAE,EAAE,4BAA4B;AAChC,IAAA,EAAE,EAAE,4BAA4B;;;AC3C3B,MAAM,sBAAsB,GAA8B,CAAC,UAAU,EAAE,WAAW,EAAE,cAAc,CAAC;;ACA1G;;;;;;;;;;;AAWG;MAoDU,wBAAw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AAA,EAAA,SAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAE,aAAa,EAAA,QAAA,EAAA,SAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,WAAA,EAAA,MAAA,EAAA,OAAA,EAAA,OAAA,EAAA,QAAA,EAAA,MAAA,EAAA,SAAA,EAAA,OAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAiDrD,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAnDpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,OAAO,EAAE,CAAC,sBAAsB,EAAE,eAAe,EAAE,aAAa,CAAC;oBACjE,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,qBAAqB,EAAE;AACtC,oBAAA,QAAQ,EAAE,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4CT,EAAA,CAAA;AACF,iBAAA;;;ACxED;AACA;;ACDA;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"trismegisto-angular-account-switcher.mjs","sources":["../../src/account-switcher/account-switcher-messages.ts","../../src/account-switcher/icons.generated.ts","../../src/account-switcher/account-switcher.component.ts","../../src/account-switcher/index.ts","../../src/account-switcher/trismegisto-angular-account-switcher.ts"],"sourcesContent":["\n// Textos do troca de conta (pt-BR/en/es). Ficam na pasta do componente, fora do HERMES_MESSAGES compartilhado,\n// para não pesar no bundle de quem não usa a peça. O componente escolhe pelo idioma ativo do\n// `HermesI18nService` (`pick`) e aceita sobrescrita parcial por input.\n\nexport interface AccountSwitcherMessages {\n label: string;\n current: string;\n switchTo: string;\n signedOut: string;\n add: string;\n signOut: string;\n signOutAll: string;\n manage: string;\n}\n\nexport const ACCOUNT_SWITCHER_MESSAGES_PT_BR: AccountSwitcherMessages = {\n label: \"Contas\",\n current: \"Conta atual\",\n switchTo: \"Entrar como {name}\",\n signedOut: \"Sessão encerrada\",\n add: \"Adicionar outra conta\",\n signOut: \"Sair de {name}\",\n signOutAll: \"Sair de todas as contas\",\n manage: \"Gerenciar conta\",\n};\n\nexport const ACCOUNT_SWITCHER_MESSAGES_EN: AccountSwitcherMessages = {\n label: \"Accounts\",\n current: \"Current account\",\n switchTo: \"Sign in as {name}\",\n signedOut: \"Signed out\",\n add: \"Add another account\",\n signOut: \"Sign out of {name}\",\n signOutAll: \"Sign out of all accounts\",\n manage: \"Manage account\",\n};\n\nexport const ACCOUNT_SWITCHER_MESSAGES_ES: AccountSwitcherMessages = {\n label: \"Cuentas\",\n current: \"Cuenta actual\",\n switchTo: \"Entrar como {name}\",\n signedOut: \"Sesión cerrada\",\n add: \"Añadir otra cuenta\",\n signOut: \"Cerrar sesión de {name}\",\n signOutAll: \"Cerrar sesión en todas las cuentas\",\n manage: \"Gestionar cuenta\",\n};\n\n/** Catálogos por idioma, para `HermesI18nService.pick`. */\nexport const ACCOUNT_SWITCHER_MESSAGES: Readonly<Record<string, AccountSwitcherMessages>> = {\n 'pt-BR': ACCOUNT_SWITCHER_MESSAGES_PT_BR,\n en: ACCOUNT_SWITCHER_MESSAGES_EN,\n es: ACCOUNT_SWITCHER_MESSAGES_ES,\n};\n","// GERADO por scripts/generate-internal-icons.mjs — não editar à mão.\n// Ícones que esta pasta usa por dentro; cada @Component/@Directive daqui os registra com\n// `readonly #icons = useHermesIcons(ACCOUNT_SWITCHER_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_ANGLE,\n ICON_LOGOUT,\n ICON_USER_PLUS,\n} from '@trismegisto/angular/icon';\n\nexport const ACCOUNT_SWITCHER_ICONS: readonly RegisteredIcon[] = [ICON_ANGLE, ICON_LOGOUT, ICON_USER_PLUS];\n","import { booleanAttribute, ChangeDetectionStrategy, Component, computed, inject, input, output } from '@angular/core';\nimport { AccountEntry, orderAccounts } from '@trismegisto/primitives/account';\nimport { formatMessage } from '@trismegisto/primitives/i18n';\nimport { AccountAvatarComponent } from '@trismegisto/angular/account-avatar';\nimport { ButtonComponent } from '@trismegisto/angular/button';\nimport { HermesI18nService } from '@trismegisto/angular/i18n';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { ACCOUNT_SWITCHER_MESSAGES, ACCOUNT_SWITCHER_MESSAGES_PT_BR, type AccountSwitcherMessages } from './account-switcher-messages';\nimport { ACCOUNT_SWITCHER_ICONS } from './icons.generated';\n\n/**\n * Troca de conta: a conta atual em destaque (com \"Gerenciar conta\"), as outras contas guardadas como botões\n * \"Entrar como…\", \"Adicionar outra conta\" e \"Sair de todas as contas\". Cabe num `hm-popover` aberto pelo\n * avatar do cabeçalho, ou numa página.\n *\n * ```html\n * <hm-account-switcher [accounts]=\"accounts\" currentId=\"ana\" (switchTo)=\"use($event)\" (add)=\"signInAnother()\" (signOutAll)=\"exit()\" />\n * ```\n *\n * - Conta com sessão expirada (`signedOut`) aparece marcada; trocar para ela é o app pedindo para entrar de novo.\n * - Só UI + eventos: nenhuma sessão é trocada aqui.\n */\n@Component({\n selector: 'hm-account-switcher',\n imports: [AccountAvatarComponent, ButtonComponent, IconComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-account-switcher' },\n template: `\n @if (current(); as account) {\n <div class=\"hm-account-switcher__current\">\n <hm-account-avatar size=\"large\" [name]=\"account.name\" [imageUrl]=\"account.imageUrl\" />\n <div class=\"hm-account-switcher__who\">\n <span class=\"hm-visually-hidden\">{{ t().current }}:</span>\n <span class=\"hm-account-switcher__name\">{{ account.name }}</span>\n @if (account.email) {\n <span class=\"hm-account-switcher__detail\">{{ account.email }}</span>\n }\n @if (account.organization) {\n <span class=\"hm-account-switcher__detail\">{{ account.organization }}</span>\n }\n </div>\n @if (manageable()) {\n <hm-button emphasis=\"medium\" size=\"small\" (clicked)=\"manage.emit(account)\">{{ t().manage }}</hm-button>\n }\n </div>\n }\n @if (others().length) {\n <ul class=\"hm-account-switcher__list\" [attr.aria-label]=\"t().label\">\n @for (account of others(); track account.id) {\n <li>\n <button type=\"button\" class=\"hm-account-switcher__account\" [attr.aria-label]=\"switchLabel(account)\" (click)=\"switchTo.emit(account)\">\n <hm-account-avatar size=\"small\" [name]=\"account.name\" [imageUrl]=\"account.imageUrl\" />\n <span class=\"hm-account-switcher__who\">\n <span class=\"hm-account-switcher__name\">{{ account.name }}</span>\n <span class=\"hm-account-switcher__detail\">{{ account.email || account.organization }}</span>\n @if (account.signedOut) {\n <span class=\"hm-account-switcher__signed-out\">{{ t().signedOut }}</span>\n }\n </span>\n <hm-icon class=\"hm-account-switcher__chevron\" shape=\"angle\" direction=\"right\" />\n </button>\n </li>\n }\n </ul>\n }\n <div class=\"hm-account-switcher__footer\">\n @if (allowAdd()) {\n <hm-button emphasis=\"minimal\" size=\"small\" icon=\"user-plus\" (clicked)=\"add.emit()\">{{ t().add }}</hm-button>\n }\n <hm-button emphasis=\"minimal\" size=\"small\" icon=\"logout\" (clicked)=\"signOutAll.emit()\">{{ accounts().length > 1 ? t().signOutAll : signOutCurrent() }}</hm-button>\n </div>\n `,\n})\nexport class AccountSwitcherComponent {\n readonly #icons = useHermesIcons(ACCOUNT_SWITCHER_ICONS);\n readonly accounts = input.required<readonly AccountEntry[]>();\n /** Id da conta em uso. */\n readonly currentId = input<string | null>(null);\n /** Botão \"Adicionar outra conta\". */\n readonly allowAdd = input(true, { transform: booleanAttribute });\n /** Botão \"Gerenciar conta\" na conta atual. */\n readonly manageable = input(true, { transform: booleanAttribute });\n /** Sobrescrita parcial dos textos (padrão: o catálogo do idioma ativo). */\n readonly texts = input<Partial<AccountSwitcherMessages>>({});\n\n readonly switchTo = output<AccountEntry>();\n readonly add = output<void>();\n readonly manage = output<AccountEntry>();\n /** Sair (de todas, ou da única conta). */\n readonly signOutAll = output<void>();\n\n readonly #i18n = inject(HermesI18nService);\n protected readonly t = computed<AccountSwitcherMessages>(() => ({\n ...this.#i18n.pick(ACCOUNT_SWITCHER_MESSAGES, ACCOUNT_SWITCHER_MESSAGES_PT_BR),\n ...this.texts(),\n }));\n private readonly ordered = computed(() => orderAccounts(this.accounts(), this.currentId()));\n protected readonly current = computed(() => this.ordered().find((a) => a.id === this.currentId()) ?? null);\n protected readonly others = computed(() => this.ordered().filter((a) => a.id !== this.currentId()));\n protected readonly signOutCurrent = computed(() => formatMessage(this.t().signOut, { name: this.current()?.name ?? '' }));\n\n protected switchLabel(account: AccountEntry): string {\n const label = formatMessage(this.t().switchTo, { name: account.name });\n return account.signedOut ? `${label} (${this.t().signedOut})` : label;\n }\n}\n","// Ponto de import `@trismegisto/angular/account-switcher` (secundário do ng-packagr). Ao criar arquivo público novo\n// na pasta, acrescente a linha.\nexport * from './account-switcher-messages';\nexport * from './account-switcher.component';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AACA;AACA;AACA;AAaO,MAAM,+BAA+B,GAA4B;AACtE,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,OAAO,EAAE,aAAa;AACtB,IAAA,QAAQ,EAAE,oBAAoB;AAC9B,IAAA,SAAS,EAAE,kBAAkB;AAC7B,IAAA,GAAG,EAAE,uBAAuB;AAC5B,IAAA,OAAO,EAAE,gBAAgB;AACzB,IAAA,UAAU,EAAE,yBAAyB;AACrC,IAAA,MAAM,EAAE,iBAAiB;;AAGpB,MAAM,4BAA4B,GAA4B;AACnE,IAAA,KAAK,EAAE,UAAU;AACjB,IAAA,OAAO,EAAE,iBAAiB;AAC1B,IAAA,QAAQ,EAAE,mBAAmB;AAC7B,IAAA,SAAS,EAAE,YAAY;AACvB,IAAA,GAAG,EAAE,qBAAqB;AAC1B,IAAA,OAAO,EAAE,oBAAoB;AAC7B,IAAA,UAAU,EAAE,0BAA0B;AACtC,IAAA,MAAM,EAAE,gBAAgB;;AAGnB,MAAM,4BA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xED;AACA;;ACDA;;AAEG;;"}
|
|
@@ -141,34 +141,34 @@ class AddressCardComponent {
|
|
|
141
141
|
editLabel = computed(() => formatMessage(this.text().edit, { label: this.#name() }), ...(ngDevMode ? [{ debugName: "editLabel" }] : /* istanbul ignore next */ []));
|
|
142
142
|
removeLabel = computed(() => formatMessage(this.text().remove, { label: this.#name() }), ...(ngDevMode ? [{ debugName: "removeLabel" }] : /* istanbul ignore next */ []));
|
|
143
143
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AddressCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
144
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AddressCardComponent, isStandalone: true, selector: "hm-address-card", inputs: { address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, isDefault: { classPropertyName: "isDefault", publicName: "isDefault", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, showCountry: { classPropertyName: "showCountry", publicName: "showCountry", isSignal: true, isRequired: false, transformFunction: null }, countryName: { classPropertyName: "countryName", publicName: "countryName", isSignal: true, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { edit: "edit", remove: "remove" }, host: { properties: { "class.hm-address-card--plain": "plain()" }, classAttribute: "hm-address-card" }, ngImport: i0, template: `
|
|
145
|
-
<div class="hm-address-card__header">
|
|
146
|
-
@if (icon()) {
|
|
147
|
-
<hm-icon class="hm-address-card__icon" [shape]="icon()" />
|
|
148
|
-
}
|
|
149
|
-
@if (label()) {
|
|
150
|
-
<span class="hm-address-card__label">{{ label() }}</span>
|
|
151
|
-
}
|
|
152
|
-
<ng-content select="[heading]" />
|
|
153
|
-
@if (isDefault()) {
|
|
154
|
-
<hm-tag [name]="text().isDefault" color="info" />
|
|
155
|
-
}
|
|
156
|
-
@if (actions()) {
|
|
157
|
-
<span class="hm-address-card__actions">
|
|
158
|
-
<hm-icon-button icon="pencil" emphasis="subtle" size="small" [label]="editLabel()" (clicked)="edit.emit()" />
|
|
159
|
-
<hm-icon-button icon="trash" emphasis="subtle" size="small" [label]="removeLabel()" (clicked)="remove.emit()" />
|
|
160
|
-
</span>
|
|
161
|
-
}
|
|
162
|
-
</div>
|
|
163
|
-
<address class="hm-address-card__lines">
|
|
164
|
-
@for (line of lines(); track $index) {
|
|
165
|
-
<span class="hm-address-card__line" [class.hm-address-card__line--recipient]="$first && !!address().recipient">{{ line }}</span>
|
|
166
|
-
}
|
|
167
|
-
@if (address().phone) {
|
|
168
|
-
<span class="hm-address-card__line hm-address-card__line--muted">{{ address().phone }}</span>
|
|
169
|
-
}
|
|
170
|
-
</address>
|
|
171
|
-
<ng-content />
|
|
144
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AddressCardComponent, isStandalone: true, selector: "hm-address-card", inputs: { address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, isDefault: { classPropertyName: "isDefault", publicName: "isDefault", isSignal: true, isRequired: false, transformFunction: null }, actions: { classPropertyName: "actions", publicName: "actions", isSignal: true, isRequired: false, transformFunction: null }, showCountry: { classPropertyName: "showCountry", publicName: "showCountry", isSignal: true, isRequired: false, transformFunction: null }, countryName: { classPropertyName: "countryName", publicName: "countryName", isSignal: true, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { edit: "edit", remove: "remove" }, host: { properties: { "class.hm-address-card--plain": "plain()" }, classAttribute: "hm-address-card" }, ngImport: i0, template: `
|
|
145
|
+
<div class="hm-address-card__header">
|
|
146
|
+
@if (icon()) {
|
|
147
|
+
<hm-icon class="hm-address-card__icon" [shape]="icon()" />
|
|
148
|
+
}
|
|
149
|
+
@if (label()) {
|
|
150
|
+
<span class="hm-address-card__label">{{ label() }}</span>
|
|
151
|
+
}
|
|
152
|
+
<ng-content select="[heading]" />
|
|
153
|
+
@if (isDefault()) {
|
|
154
|
+
<hm-tag [name]="text().isDefault" color="info" />
|
|
155
|
+
}
|
|
156
|
+
@if (actions()) {
|
|
157
|
+
<span class="hm-address-card__actions">
|
|
158
|
+
<hm-icon-button icon="pencil" emphasis="subtle" size="small" [label]="editLabel()" (clicked)="edit.emit()" />
|
|
159
|
+
<hm-icon-button icon="trash" emphasis="subtle" size="small" [label]="removeLabel()" (clicked)="remove.emit()" />
|
|
160
|
+
</span>
|
|
161
|
+
}
|
|
162
|
+
</div>
|
|
163
|
+
<address class="hm-address-card__lines">
|
|
164
|
+
@for (line of lines(); track $index) {
|
|
165
|
+
<span class="hm-address-card__line" [class.hm-address-card__line--recipient]="$first && !!address().recipient">{{ line }}</span>
|
|
166
|
+
}
|
|
167
|
+
@if (address().phone) {
|
|
168
|
+
<span class="hm-address-card__line hm-address-card__line--muted">{{ address().phone }}</span>
|
|
169
|
+
}
|
|
170
|
+
</address>
|
|
171
|
+
<ng-content />
|
|
172
172
|
`, isInline: true, dependencies: [{ kind: "component", type: IconButtonComponent, selector: "hm-icon-button", inputs: ["label", "icon", "solid", "iconDirection", "emphasis", "intent", "size", "disabled", "toggle", "pressed", "keyShortcuts"], outputs: ["pressedChange", "clicked"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: TagComponent, selector: "hm-tag", inputs: ["name", "color", "compact"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
173
173
|
}
|
|
174
174
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AddressCardComponent, decorators: [{
|
|
@@ -178,34 +178,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
178
178
|
imports: [IconButtonComponent, IconComponent, TagComponent],
|
|
179
179
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
180
180
|
host: { class: 'hm-address-card', '[class.hm-address-card--plain]': 'plain()' },
|
|
181
|
-
template: `
|
|
182
|
-
<div class="hm-address-card__header">
|
|
183
|
-
@if (icon()) {
|
|
184
|
-
<hm-icon class="hm-address-card__icon" [shape]="icon()" />
|
|
185
|
-
}
|
|
186
|
-
@if (label()) {
|
|
187
|
-
<span class="hm-address-card__label">{{ label() }}</span>
|
|
188
|
-
}
|
|
189
|
-
<ng-content select="[heading]" />
|
|
190
|
-
@if (isDefault()) {
|
|
191
|
-
<hm-tag [name]="text().isDefault" color="info" />
|
|
192
|
-
}
|
|
193
|
-
@if (actions()) {
|
|
194
|
-
<span class="hm-address-card__actions">
|
|
195
|
-
<hm-icon-button icon="pencil" emphasis="subtle" size="small" [label]="editLabel()" (clicked)="edit.emit()" />
|
|
196
|
-
<hm-icon-button icon="trash" emphasis="subtle" size="small" [label]="removeLabel()" (clicked)="remove.emit()" />
|
|
197
|
-
</span>
|
|
198
|
-
}
|
|
199
|
-
</div>
|
|
200
|
-
<address class="hm-address-card__lines">
|
|
201
|
-
@for (line of lines(); track $index) {
|
|
202
|
-
<span class="hm-address-card__line" [class.hm-address-card__line--recipient]="$first && !!address().recipient">{{ line }}</span>
|
|
203
|
-
}
|
|
204
|
-
@if (address().phone) {
|
|
205
|
-
<span class="hm-address-card__line hm-address-card__line--muted">{{ address().phone }}</span>
|
|
206
|
-
}
|
|
207
|
-
</address>
|
|
208
|
-
<ng-content />
|
|
181
|
+
template: `
|
|
182
|
+
<div class="hm-address-card__header">
|
|
183
|
+
@if (icon()) {
|
|
184
|
+
<hm-icon class="hm-address-card__icon" [shape]="icon()" />
|
|
185
|
+
}
|
|
186
|
+
@if (label()) {
|
|
187
|
+
<span class="hm-address-card__label">{{ label() }}</span>
|
|
188
|
+
}
|
|
189
|
+
<ng-content select="[heading]" />
|
|
190
|
+
@if (isDefault()) {
|
|
191
|
+
<hm-tag [name]="text().isDefault" color="info" />
|
|
192
|
+
}
|
|
193
|
+
@if (actions()) {
|
|
194
|
+
<span class="hm-address-card__actions">
|
|
195
|
+
<hm-icon-button icon="pencil" emphasis="subtle" size="small" [label]="editLabel()" (clicked)="edit.emit()" />
|
|
196
|
+
<hm-icon-button icon="trash" emphasis="subtle" size="small" [label]="removeLabel()" (clicked)="remove.emit()" />
|
|
197
|
+
</span>
|
|
198
|
+
}
|
|
199
|
+
</div>
|
|
200
|
+
<address class="hm-address-card__lines">
|
|
201
|
+
@for (line of lines(); track $index) {
|
|
202
|
+
<span class="hm-address-card__line" [class.hm-address-card__line--recipient]="$first && !!address().recipient">{{ line }}</span>
|
|
203
|
+
}
|
|
204
|
+
@if (address().phone) {
|
|
205
|
+
<span class="hm-address-card__line hm-address-card__line--muted">{{ address().phone }}</span>
|
|
206
|
+
}
|
|
207
|
+
</address>
|
|
208
|
+
<ng-content />
|
|
209
209
|
`,
|
|
210
210
|
}]
|
|
211
211
|
}], propDecorators: { address: [{ type: i0.Input, args: [{ isSignal: true, alias: "address", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], isDefault: [{ type: i0.Input, args: [{ isSignal: true, alias: "isDefault", required: false }] }], actions: [{ type: i0.Input, args: [{ isSignal: true, alias: "actions", required: false }] }], showCountry: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCountry", required: false }] }], countryName: [{ type: i0.Input, args: [{ isSignal: true, alias: "countryName", required: false }] }], plain: [{ type: i0.Input, args: [{ isSignal: true, alias: "plain", required: false }] }], edit: [{ type: i0.Output, args: ["edit"] }], remove: [{ type: i0.Output, args: ["remove"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -439,11 +439,11 @@ class AddressFieldComponent extends HermesFormFieldBase {
|
|
|
439
439
|
return formatAddressLines({ ...this.value(), country: this.activeCountry() }, { countryName });
|
|
440
440
|
}
|
|
441
441
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AddressFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
442
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AddressFieldComponent, isStandalone: true, selector: "hm-address-field", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, country: { classPropertyName: "country", publicName: "country", isSignal: true, isRequired: false, transformFunction: null }, countries: { classPropertyName: "countries", publicName: "countries", isSignal: true, isRequired: false, transformFunction: null }, states: { classPropertyName: "states", publicName: "states", isSignal: true, isRequired: false, transformFunction: null }, cities: { classPropertyName: "cities", publicName: "cities", isSignal: true, isRequired: false, transformFunction: null }, statesLoading: { classPropertyName: "statesLoading", publicName: "statesLoading", isSignal: true, isRequired: false, transformFunction: null }, citiesLoading: { classPropertyName: "citiesLoading", publicName: "citiesLoading", isSignal: true, isRequired: false, transformFunction: null }, showRecipient: { classPropertyName: "showRecipient", publicName: "showRecipient", isSignal: true, isRequired: false, transformFunction: null }, showPhone: { classPropertyName: "showPhone", publicName: "showPhone", isSignal: true, isRequired: false, transformFunction: null }, requiredFields: { classPropertyName: "requiredFields", publicName: "requiredFields", isSignal: true, isRequired: false, transformFunction: null }, hiddenFields: { classPropertyName: "hiddenFields", publicName: "hiddenFields", isSignal: true, isRequired: false, transformFunction: null }, showErrors: { classPropertyName: "showErrors", publicName: "showErrors", isSignal: true, isRequired: false, transformFunction: null }, lookingUp: { classPropertyName: "lookingUp", publicName: "lookingUp", isSignal: true, isRequired: false, transformFunction: null }, section: { classPropertyName: "section", publicName: "section", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, legendHidden: { classPropertyName: "legendHidden", publicName: "legendHidden", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", postalCodeComplete: "postalCodeComplete", countryChange: "countryChange", regionChange: "regionChange" }, host: { properties: { "attr.aria-busy": "lookingUp() ? \"true\" : null" }, classAttribute: "hm-address-field" }, usesInheritance: true, ngImport: i0, template: "<fieldset class=\"hm-address-field__fieldset\" [disabled]=\"isDisabled()\" [attr.aria-describedby]=\"error() ? errorId : null\">\
|
|
442
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AddressFieldComponent, isStandalone: true, selector: "hm-address-field", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, country: { classPropertyName: "country", publicName: "country", isSignal: true, isRequired: false, transformFunction: null }, countries: { classPropertyName: "countries", publicName: "countries", isSignal: true, isRequired: false, transformFunction: null }, states: { classPropertyName: "states", publicName: "states", isSignal: true, isRequired: false, transformFunction: null }, cities: { classPropertyName: "cities", publicName: "cities", isSignal: true, isRequired: false, transformFunction: null }, statesLoading: { classPropertyName: "statesLoading", publicName: "statesLoading", isSignal: true, isRequired: false, transformFunction: null }, citiesLoading: { classPropertyName: "citiesLoading", publicName: "citiesLoading", isSignal: true, isRequired: false, transformFunction: null }, showRecipient: { classPropertyName: "showRecipient", publicName: "showRecipient", isSignal: true, isRequired: false, transformFunction: null }, showPhone: { classPropertyName: "showPhone", publicName: "showPhone", isSignal: true, isRequired: false, transformFunction: null }, requiredFields: { classPropertyName: "requiredFields", publicName: "requiredFields", isSignal: true, isRequired: false, transformFunction: null }, hiddenFields: { classPropertyName: "hiddenFields", publicName: "hiddenFields", isSignal: true, isRequired: false, transformFunction: null }, showErrors: { classPropertyName: "showErrors", publicName: "showErrors", isSignal: true, isRequired: false, transformFunction: null }, lookingUp: { classPropertyName: "lookingUp", publicName: "lookingUp", isSignal: true, isRequired: false, transformFunction: null }, section: { classPropertyName: "section", publicName: "section", isSignal: true, isRequired: false, transformFunction: null }, legend: { classPropertyName: "legend", publicName: "legend", isSignal: true, isRequired: false, transformFunction: null }, legendHidden: { classPropertyName: "legendHidden", publicName: "legendHidden", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", postalCodeComplete: "postalCodeComplete", countryChange: "countryChange", regionChange: "regionChange" }, host: { properties: { "attr.aria-busy": "lookingUp() ? \"true\" : null" }, classAttribute: "hm-address-field" }, usesInheritance: true, ngImport: i0, template: "<fieldset class=\"hm-address-field__fieldset\" [disabled]=\"isDisabled()\" [attr.aria-describedby]=\"error() ? errorId : null\">\n <legend class=\"hm-address-field__legend\" [class.hm-visually-hidden]=\"legendHidden()\">{{ legend() || text().legend }}</legend>\n\n <div class=\"hm-address-field__grid\">\n @for (field of fields(); track field) {\n <div class=\"hm-address-field__field\" [class]=\"'hm-address-field__field--' + field\" (focusout)=\"onFieldBlur(field, $event)\">\n @switch (field) {\n @case ('country') {\n <hm-combobox\n [label]=\"label('country')\"\n [options]=\"countryOptions()\"\n [value]=\"activeCountry()\"\n [required]=\"isRequiredField('country')\"\n [error]=\"fieldError('country')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('country', $event)\"\n />\n }\n @case ('region') {\n @if (stateOptions(); as options) {\n <hm-combobox\n [label]=\"label('region')\"\n [options]=\"options\"\n [value]=\"fieldValue('region')\"\n [loading]=\"statesLoading()\"\n [required]=\"isRequiredField('region')\"\n [error]=\"fieldError('region')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('region', $event)\"\n />\n } @else {\n <hm-input\n [label]=\"label('region')\"\n [value]=\"fieldValue('region')\"\n [autocomplete]=\"autocomplete('region')\"\n [required]=\"isRequiredField('region')\"\n [error]=\"fieldError('region')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('region', $event)\"\n />\n }\n }\n @case ('city') {\n @if (cityOptions(); as options) {\n <hm-combobox\n [label]=\"label('city')\"\n [options]=\"options\"\n [value]=\"fieldValue('city')\"\n [loading]=\"citiesLoading()\"\n [required]=\"isRequiredField('city')\"\n [error]=\"fieldError('city')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('city', $event)\"\n />\n } @else {\n <hm-input\n [label]=\"label('city')\"\n [value]=\"fieldValue('city')\"\n [autocomplete]=\"autocomplete('city')\"\n [required]=\"isRequiredField('city')\"\n [error]=\"fieldError('city')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('city', $event)\"\n />\n }\n }\n @case ('postalCode') {\n <hm-input\n [label]=\"label('postalCode')\"\n [value]=\"fieldValue('postalCode')\"\n [mask]=\"mask()\"\n maskValue=\"masked\"\n [hint]=\"postalHint()\"\n [autocomplete]=\"autocomplete('postalCode')\"\n [inputMode]=\"mask() && !mask().includes('A') ? 'numeric' : ''\"\n [required]=\"isRequiredField('postalCode')\"\n [error]=\"fieldError('postalCode')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('postalCode', $event)\"\n />\n }\n @case ('phone') {\n <hm-input\n [label]=\"label('phone')\"\n type=\"tel\"\n [value]=\"fieldValue('phone')\"\n [mask]=\"phoneMask()\"\n maskValue=\"masked\"\n [autocomplete]=\"autocomplete('phone')\"\n [required]=\"isRequiredField('phone')\"\n [error]=\"fieldError('phone')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('phone', $event)\"\n />\n }\n @default {\n <hm-input\n [label]=\"label(field)\"\n [value]=\"fieldValue(field)\"\n [autocomplete]=\"autocomplete(field)\"\n [required]=\"isRequiredField(field)\"\n [error]=\"fieldError(field)\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField(field, $event)\"\n />\n }\n }\n </div>\n }\n </div>\n\n @if (error()) {\n <p class=\"hm-field__error\" [id]=\"errorId\" role=\"alert\">{{ error() }}</p>\n }\n</fieldset>\n", dependencies: [{ kind: "component", type: InputComponent, selector: "hm-input", inputs: ["value", "label", "type", "placeholder", "icon", "labelHidden", "hint", "prefix", "suffix", "prefixIcon", "mask", "maskValue", "min", "max", "step", "stepButtons", "maxLength", "autocomplete", "inputMode"], outputs: ["valueChange"] }, { kind: "component", type: ComboboxComponent, selector: "hm-combobox", inputs: ["label", "options", "value", "placeholder", "icon", "hint", "size", "labelHidden", "clearable", "loading", "allowCustomValue"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
443
443
|
}
|
|
444
444
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AddressFieldComponent, decorators: [{
|
|
445
445
|
type: Component,
|
|
446
|
-
args: [{ selector: 'hm-address-field', imports: [InputComponent, ComboboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-address-field', '[attr.aria-busy]': 'lookingUp() ? "true" : null' }, template: "<fieldset class=\"hm-address-field__fieldset\" [disabled]=\"isDisabled()\" [attr.aria-describedby]=\"error() ? errorId : null\">\
|
|
446
|
+
args: [{ selector: 'hm-address-field', imports: [InputComponent, ComboboxComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-address-field', '[attr.aria-busy]': 'lookingUp() ? "true" : null' }, template: "<fieldset class=\"hm-address-field__fieldset\" [disabled]=\"isDisabled()\" [attr.aria-describedby]=\"error() ? errorId : null\">\n <legend class=\"hm-address-field__legend\" [class.hm-visually-hidden]=\"legendHidden()\">{{ legend() || text().legend }}</legend>\n\n <div class=\"hm-address-field__grid\">\n @for (field of fields(); track field) {\n <div class=\"hm-address-field__field\" [class]=\"'hm-address-field__field--' + field\" (focusout)=\"onFieldBlur(field, $event)\">\n @switch (field) {\n @case ('country') {\n <hm-combobox\n [label]=\"label('country')\"\n [options]=\"countryOptions()\"\n [value]=\"activeCountry()\"\n [required]=\"isRequiredField('country')\"\n [error]=\"fieldError('country')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('country', $event)\"\n />\n }\n @case ('region') {\n @if (stateOptions(); as options) {\n <hm-combobox\n [label]=\"label('region')\"\n [options]=\"options\"\n [value]=\"fieldValue('region')\"\n [loading]=\"statesLoading()\"\n [required]=\"isRequiredField('region')\"\n [error]=\"fieldError('region')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('region', $event)\"\n />\n } @else {\n <hm-input\n [label]=\"label('region')\"\n [value]=\"fieldValue('region')\"\n [autocomplete]=\"autocomplete('region')\"\n [required]=\"isRequiredField('region')\"\n [error]=\"fieldError('region')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('region', $event)\"\n />\n }\n }\n @case ('city') {\n @if (cityOptions(); as options) {\n <hm-combobox\n [label]=\"label('city')\"\n [options]=\"options\"\n [value]=\"fieldValue('city')\"\n [loading]=\"citiesLoading()\"\n [required]=\"isRequiredField('city')\"\n [error]=\"fieldError('city')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('city', $event)\"\n />\n } @else {\n <hm-input\n [label]=\"label('city')\"\n [value]=\"fieldValue('city')\"\n [autocomplete]=\"autocomplete('city')\"\n [required]=\"isRequiredField('city')\"\n [error]=\"fieldError('city')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('city', $event)\"\n />\n }\n }\n @case ('postalCode') {\n <hm-input\n [label]=\"label('postalCode')\"\n [value]=\"fieldValue('postalCode')\"\n [mask]=\"mask()\"\n maskValue=\"masked\"\n [hint]=\"postalHint()\"\n [autocomplete]=\"autocomplete('postalCode')\"\n [inputMode]=\"mask() && !mask().includes('A') ? 'numeric' : ''\"\n [required]=\"isRequiredField('postalCode')\"\n [error]=\"fieldError('postalCode')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('postalCode', $event)\"\n />\n }\n @case ('phone') {\n <hm-input\n [label]=\"label('phone')\"\n type=\"tel\"\n [value]=\"fieldValue('phone')\"\n [mask]=\"phoneMask()\"\n maskValue=\"masked\"\n [autocomplete]=\"autocomplete('phone')\"\n [required]=\"isRequiredField('phone')\"\n [error]=\"fieldError('phone')\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField('phone', $event)\"\n />\n }\n @default {\n <hm-input\n [label]=\"label(field)\"\n [value]=\"fieldValue(field)\"\n [autocomplete]=\"autocomplete(field)\"\n [required]=\"isRequiredField(field)\"\n [error]=\"fieldError(field)\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"setField(field, $event)\"\n />\n }\n }\n </div>\n }\n </div>\n\n @if (error()) {\n <p class=\"hm-field__error\" [id]=\"errorId\" role=\"alert\">{{ error() }}</p>\n }\n</fieldset>\n" }]
|
|
447
447
|
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], country: [{ type: i0.Input, args: [{ isSignal: true, alias: "country", required: false }] }], countries: [{ type: i0.Input, args: [{ isSignal: true, alias: "countries", required: false }] }], states: [{ type: i0.Input, args: [{ isSignal: true, alias: "states", required: false }] }], cities: [{ type: i0.Input, args: [{ isSignal: true, alias: "cities", required: false }] }], statesLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "statesLoading", required: false }] }], citiesLoading: [{ type: i0.Input, args: [{ isSignal: true, alias: "citiesLoading", required: false }] }], showRecipient: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRecipient", required: false }] }], showPhone: [{ type: i0.Input, args: [{ isSignal: true, alias: "showPhone", required: false }] }], requiredFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "requiredFields", required: false }] }], hiddenFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "hiddenFields", required: false }] }], showErrors: [{ type: i0.Input, args: [{ isSignal: true, alias: "showErrors", required: false }] }], lookingUp: [{ type: i0.Input, args: [{ isSignal: true, alias: "lookingUp", required: false }] }], section: [{ type: i0.Input, args: [{ isSignal: true, alias: "section", required: false }] }], legend: [{ type: i0.Input, args: [{ isSignal: true, alias: "legend", required: false }] }], legendHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendHidden", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }], postalCodeComplete: [{ type: i0.Output, args: ["postalCodeComplete"] }], countryChange: [{ type: i0.Output, args: ["countryChange"] }], regionChange: [{ type: i0.Output, args: ["regionChange"] }] } });
|
|
448
448
|
|
|
449
449
|
let sequence = 0;
|
|
@@ -477,39 +477,39 @@ class AddressPickerComponent {
|
|
|
477
477
|
return formatAddressLines(item.address);
|
|
478
478
|
}
|
|
479
479
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AddressPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
480
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AddressPickerComponent, isStandalone: true, selector: "hm-address-picker", inputs: { addresses: { classPropertyName: "addresses", publicName: "addresses", 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 }, legendHidden: { classPropertyName: "legendHidden", publicName: "legendHidden", isSignal: true, isRequired: false, transformFunction: null }, allowAdd: { classPropertyName: "allowAdd", publicName: "allowAdd", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", add: "add" }, host: { classAttribute: "hm-address-picker" }, ngImport: i0, template: `
|
|
481
|
-
<fieldset class="hm-choice-list">
|
|
482
|
-
<legend class="hm-choice-list__legend" [class.hm-visually-hidden]="legendHidden()">{{ label() || text().pickerLabel }}</legend>
|
|
483
|
-
@for (item of addresses(); track item.id) {
|
|
484
|
-
<label class="hm-choice" [class.hm-choice--checked]="item.id === value()" [class.hm-choice--disabled]="!!item.disabled">
|
|
485
|
-
<input
|
|
486
|
-
type="radio"
|
|
487
|
-
class="hm-choice__control"
|
|
488
|
-
[name]="name"
|
|
489
|
-
[value]="item.id"
|
|
490
|
-
[checked]="item.id === value()"
|
|
491
|
-
[disabled]="!!item.disabled"
|
|
492
|
-
(change)="value.set(item.id)"
|
|
493
|
-
/>
|
|
494
|
-
<span class="hm-choice__body">
|
|
495
|
-
<span class="hm-choice__title">
|
|
496
|
-
@if (item.label) {
|
|
497
|
-
<span>{{ item.label }}</span>
|
|
498
|
-
}
|
|
499
|
-
@if (item.isDefault) {
|
|
500
|
-
<hm-tag [name]="text().isDefault" color="info" />
|
|
501
|
-
}
|
|
502
|
-
</span>
|
|
503
|
-
@for (line of linesOf(item); track $index) {
|
|
504
|
-
<span class="hm-choice__line">{{ line }}</span>
|
|
505
|
-
}
|
|
506
|
-
</span>
|
|
507
|
-
</label>
|
|
508
|
-
}
|
|
509
|
-
</fieldset>
|
|
510
|
-
@if (allowAdd()) {
|
|
511
|
-
<hm-button class="hm-address-picker__add" emphasis="minimal" icon="plus" (clicked)="add.emit()">{{ text().addNew }}</hm-button>
|
|
512
|
-
}
|
|
480
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AddressPickerComponent, isStandalone: true, selector: "hm-address-picker", inputs: { addresses: { classPropertyName: "addresses", publicName: "addresses", 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 }, legendHidden: { classPropertyName: "legendHidden", publicName: "legendHidden", isSignal: true, isRequired: false, transformFunction: null }, allowAdd: { classPropertyName: "allowAdd", publicName: "allowAdd", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", add: "add" }, host: { classAttribute: "hm-address-picker" }, ngImport: i0, template: `
|
|
481
|
+
<fieldset class="hm-choice-list">
|
|
482
|
+
<legend class="hm-choice-list__legend" [class.hm-visually-hidden]="legendHidden()">{{ label() || text().pickerLabel }}</legend>
|
|
483
|
+
@for (item of addresses(); track item.id) {
|
|
484
|
+
<label class="hm-choice" [class.hm-choice--checked]="item.id === value()" [class.hm-choice--disabled]="!!item.disabled">
|
|
485
|
+
<input
|
|
486
|
+
type="radio"
|
|
487
|
+
class="hm-choice__control"
|
|
488
|
+
[name]="name"
|
|
489
|
+
[value]="item.id"
|
|
490
|
+
[checked]="item.id === value()"
|
|
491
|
+
[disabled]="!!item.disabled"
|
|
492
|
+
(change)="value.set(item.id)"
|
|
493
|
+
/>
|
|
494
|
+
<span class="hm-choice__body">
|
|
495
|
+
<span class="hm-choice__title">
|
|
496
|
+
@if (item.label) {
|
|
497
|
+
<span>{{ item.label }}</span>
|
|
498
|
+
}
|
|
499
|
+
@if (item.isDefault) {
|
|
500
|
+
<hm-tag [name]="text().isDefault" color="info" />
|
|
501
|
+
}
|
|
502
|
+
</span>
|
|
503
|
+
@for (line of linesOf(item); track $index) {
|
|
504
|
+
<span class="hm-choice__line">{{ line }}</span>
|
|
505
|
+
}
|
|
506
|
+
</span>
|
|
507
|
+
</label>
|
|
508
|
+
}
|
|
509
|
+
</fieldset>
|
|
510
|
+
@if (allowAdd()) {
|
|
511
|
+
<hm-button class="hm-address-picker__add" emphasis="minimal" icon="plus" (clicked)="add.emit()">{{ text().addNew }}</hm-button>
|
|
512
|
+
}
|
|
513
513
|
`, 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: TagComponent, selector: "hm-tag", inputs: ["name", "color", "compact"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
514
514
|
}
|
|
515
515
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AddressPickerComponent, decorators: [{
|
|
@@ -519,39 +519,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
519
519
|
imports: [ButtonComponent, TagComponent],
|
|
520
520
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
521
521
|
host: { class: 'hm-address-picker' },
|
|
522
|
-
template: `
|
|
523
|
-
<fieldset class="hm-choice-list">
|
|
524
|
-
<legend class="hm-choice-list__legend" [class.hm-visually-hidden]="legendHidden()">{{ label() || text().pickerLabel }}</legend>
|
|
525
|
-
@for (item of addresses(); track item.id) {
|
|
526
|
-
<label class="hm-choice" [class.hm-choice--checked]="item.id === value()" [class.hm-choice--disabled]="!!item.disabled">
|
|
527
|
-
<input
|
|
528
|
-
type="radio"
|
|
529
|
-
class="hm-choice__control"
|
|
530
|
-
[name]="name"
|
|
531
|
-
[value]="item.id"
|
|
532
|
-
[checked]="item.id === value()"
|
|
533
|
-
[disabled]="!!item.disabled"
|
|
534
|
-
(change)="value.set(item.id)"
|
|
535
|
-
/>
|
|
536
|
-
<span class="hm-choice__body">
|
|
537
|
-
<span class="hm-choice__title">
|
|
538
|
-
@if (item.label) {
|
|
539
|
-
<span>{{ item.label }}</span>
|
|
540
|
-
}
|
|
541
|
-
@if (item.isDefault) {
|
|
542
|
-
<hm-tag [name]="text().isDefault" color="info" />
|
|
543
|
-
}
|
|
544
|
-
</span>
|
|
545
|
-
@for (line of linesOf(item); track $index) {
|
|
546
|
-
<span class="hm-choice__line">{{ line }}</span>
|
|
547
|
-
}
|
|
548
|
-
</span>
|
|
549
|
-
</label>
|
|
550
|
-
}
|
|
551
|
-
</fieldset>
|
|
552
|
-
@if (allowAdd()) {
|
|
553
|
-
<hm-button class="hm-address-picker__add" emphasis="minimal" icon="plus" (clicked)="add.emit()">{{ text().addNew }}</hm-button>
|
|
554
|
-
}
|
|
522
|
+
template: `
|
|
523
|
+
<fieldset class="hm-choice-list">
|
|
524
|
+
<legend class="hm-choice-list__legend" [class.hm-visually-hidden]="legendHidden()">{{ label() || text().pickerLabel }}</legend>
|
|
525
|
+
@for (item of addresses(); track item.id) {
|
|
526
|
+
<label class="hm-choice" [class.hm-choice--checked]="item.id === value()" [class.hm-choice--disabled]="!!item.disabled">
|
|
527
|
+
<input
|
|
528
|
+
type="radio"
|
|
529
|
+
class="hm-choice__control"
|
|
530
|
+
[name]="name"
|
|
531
|
+
[value]="item.id"
|
|
532
|
+
[checked]="item.id === value()"
|
|
533
|
+
[disabled]="!!item.disabled"
|
|
534
|
+
(change)="value.set(item.id)"
|
|
535
|
+
/>
|
|
536
|
+
<span class="hm-choice__body">
|
|
537
|
+
<span class="hm-choice__title">
|
|
538
|
+
@if (item.label) {
|
|
539
|
+
<span>{{ item.label }}</span>
|
|
540
|
+
}
|
|
541
|
+
@if (item.isDefault) {
|
|
542
|
+
<hm-tag [name]="text().isDefault" color="info" />
|
|
543
|
+
}
|
|
544
|
+
</span>
|
|
545
|
+
@for (line of linesOf(item); track $index) {
|
|
546
|
+
<span class="hm-choice__line">{{ line }}</span>
|
|
547
|
+
}
|
|
548
|
+
</span>
|
|
549
|
+
</label>
|
|
550
|
+
}
|
|
551
|
+
</fieldset>
|
|
552
|
+
@if (allowAdd()) {
|
|
553
|
+
<hm-button class="hm-address-picker__add" emphasis="minimal" icon="plus" (clicked)="add.emit()">{{ text().addNew }}</hm-button>
|
|
554
|
+
}
|
|
555
555
|
`,
|
|
556
556
|
}]
|
|
557
557
|
}], propDecorators: { addresses: [{ type: i0.Input, args: [{ isSignal: true, alias: "addresses", 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 }] }], legendHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "legendHidden", required: false }] }], allowAdd: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowAdd", required: false }] }], add: [{ type: i0.Output, args: ["add"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -580,20 +580,20 @@ class AddressViewComponent {
|
|
|
580
580
|
plain = input(false, { ...(ngDevMode ? { debugName: "plain" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
581
581
|
lines = computed(() => formatAddressLines(this.address() ?? {}, { countryName: this.countryName(), includeRecipient: this.showRecipient() }), ...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
|
|
582
582
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AddressViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
583
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AddressViewComponent, isStandalone: true, selector: "hm-address-view", inputs: { address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: true, transformFunction: null }, countryName: { classPropertyName: "countryName", publicName: "countryName", isSignal: true, isRequired: false, transformFunction: null }, showRecipient: { classPropertyName: "showRecipient", publicName: "showRecipient", isSignal: true, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-address-view" }, ngImport: i0, template: `
|
|
584
|
-
@if (plain()) {
|
|
585
|
-
<p class="hm-address-view__body">
|
|
586
|
-
@for (line of lines(); track $index) {
|
|
587
|
-
<span class="hm-address-view__line">{{ line }}</span>
|
|
588
|
-
}
|
|
589
|
-
</p>
|
|
590
|
-
} @else {
|
|
591
|
-
<address class="hm-address-view__body">
|
|
592
|
-
@for (line of lines(); track $index) {
|
|
593
|
-
<span class="hm-address-view__line">{{ line }}</span>
|
|
594
|
-
}
|
|
595
|
-
</address>
|
|
596
|
-
}
|
|
583
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: AddressViewComponent, isStandalone: true, selector: "hm-address-view", inputs: { address: { classPropertyName: "address", publicName: "address", isSignal: true, isRequired: true, transformFunction: null }, countryName: { classPropertyName: "countryName", publicName: "countryName", isSignal: true, isRequired: false, transformFunction: null }, showRecipient: { classPropertyName: "showRecipient", publicName: "showRecipient", isSignal: true, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "hm-address-view" }, ngImport: i0, template: `
|
|
584
|
+
@if (plain()) {
|
|
585
|
+
<p class="hm-address-view__body">
|
|
586
|
+
@for (line of lines(); track $index) {
|
|
587
|
+
<span class="hm-address-view__line">{{ line }}</span>
|
|
588
|
+
}
|
|
589
|
+
</p>
|
|
590
|
+
} @else {
|
|
591
|
+
<address class="hm-address-view__body">
|
|
592
|
+
@for (line of lines(); track $index) {
|
|
593
|
+
<span class="hm-address-view__line">{{ line }}</span>
|
|
594
|
+
}
|
|
595
|
+
</address>
|
|
596
|
+
}
|
|
597
597
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
598
598
|
}
|
|
599
599
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: AddressViewComponent, decorators: [{
|
|
@@ -602,20 +602,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
602
602
|
selector: 'hm-address-view',
|
|
603
603
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
604
604
|
host: { class: 'hm-address-view' },
|
|
605
|
-
template: `
|
|
606
|
-
@if (plain()) {
|
|
607
|
-
<p class="hm-address-view__body">
|
|
608
|
-
@for (line of lines(); track $index) {
|
|
609
|
-
<span class="hm-address-view__line">{{ line }}</span>
|
|
610
|
-
}
|
|
611
|
-
</p>
|
|
612
|
-
} @else {
|
|
613
|
-
<address class="hm-address-view__body">
|
|
614
|
-
@for (line of lines(); track $index) {
|
|
615
|
-
<span class="hm-address-view__line">{{ line }}</span>
|
|
616
|
-
}
|
|
617
|
-
</address>
|
|
618
|
-
}
|
|
605
|
+
template: `
|
|
606
|
+
@if (plain()) {
|
|
607
|
+
<p class="hm-address-view__body">
|
|
608
|
+
@for (line of lines(); track $index) {
|
|
609
|
+
<span class="hm-address-view__line">{{ line }}</span>
|
|
610
|
+
}
|
|
611
|
+
</p>
|
|
612
|
+
} @else {
|
|
613
|
+
<address class="hm-address-view__body">
|
|
614
|
+
@for (line of lines(); track $index) {
|
|
615
|
+
<span class="hm-address-view__line">{{ line }}</span>
|
|
616
|
+
}
|
|
617
|
+
</address>
|
|
618
|
+
}
|
|
619
619
|
`,
|
|
620
620
|
}]
|
|
621
621
|
}], propDecorators: { address: [{ type: i0.Input, args: [{ isSignal: true, alias: "address", required: true }] }], countryName: [{ type: i0.Input, args: [{ isSignal: true, alias: "countryName", required: false }] }], showRecipient: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRecipient", required: false }] }], plain: [{ type: i0.Input, args: [{ isSignal: true, alias: "plain", required: false }] }] } });
|