@trismegisto/angular 3.3.10 → 3.3.11
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
|
@@ -125,61 +125,61 @@ class ProductCardComponent {
|
|
|
125
125
|
return !stock || isPurchasable(resolveStockLevel(stock));
|
|
126
126
|
}, ...(ngDevMode ? [{ debugName: "purchasable" }] : /* istanbul ignore next */ []));
|
|
127
127
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ProductCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
128
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ProductCardComponent, isStandalone: true, selector: "hm-product-card", inputs: { product: { classPropertyName: "product", publicName: "product", isSignal: true, isRequired: true, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, showAction: { classPropertyName: "showAction", publicName: "showAction", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, adding: { classPropertyName: "adding", publicName: "adding", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { addToCart: "addToCart", view: "view" }, host: { properties: { "class.hm-product-card--horizontal": "layout() === 'horizontal'", "class.hm-product-card--unavailable": "!purchasable()" }, classAttribute: "hm-product-card" }, ngImport: i0, template: `
|
|
129
|
-
<div class="hm-product-card__media">
|
|
130
|
-
@if (product().image) {
|
|
131
|
-
<img class="hm-product-card__image" [src]="product().image" [alt]="product().imageAlt ?? ''" loading="lazy" />
|
|
132
|
-
} @else {
|
|
133
|
-
<span class="hm-product-card__placeholder" aria-hidden="true"><hm-icon shape="image" /></span>
|
|
134
|
-
}
|
|
135
|
-
@if (product().badge) {
|
|
136
|
-
<span class="hm-product-card__badge">{{ product().badge }}</span>
|
|
137
|
-
}
|
|
138
|
-
</div>
|
|
139
|
-
<div class="hm-product-card__body">
|
|
140
|
-
@if (product().brand) {
|
|
141
|
-
<span class="hm-product-card__brand">{{ product().brand }}</span>
|
|
142
|
-
}
|
|
143
|
-
<div class="hm-product-card__name" role="heading" [attr.aria-level]="headingLevel()">
|
|
144
|
-
@if (product().href) {
|
|
145
|
-
<a class="hm-product-card__link" [href]="product().href">{{ product().name }}</a>
|
|
146
|
-
} @else {
|
|
147
|
-
<button type="button" class="hm-product-card__link" (click)="view.emit(product())">{{ product().name }}</button>
|
|
148
|
-
}
|
|
149
|
-
</div>
|
|
150
|
-
<hm-price
|
|
151
|
-
class="hm-product-card__price"
|
|
152
|
-
[amount]="product().price"
|
|
153
|
-
[compareAt]="product().compareAt ?? null"
|
|
154
|
-
[currency]="currency()"
|
|
155
|
-
[installments]="product().installments ?? 0"
|
|
156
|
-
[interestFree]="!!product().interestFree"
|
|
157
|
-
/>
|
|
158
|
-
@if (product().stock; as stock) {
|
|
159
|
-
<hm-stock-status
|
|
160
|
-
class="hm-product-card__stock"
|
|
161
|
-
[quantity]="stock.quantity"
|
|
162
|
-
[lowThreshold]="stock.lowThreshold ?? 5"
|
|
163
|
-
[backorder]="!!stock.backorder"
|
|
164
|
-
[preorder]="!!stock.preorder"
|
|
165
|
-
/>
|
|
166
|
-
}
|
|
167
|
-
<div class="hm-product-card__extra"><ng-content select="[extra]" /></div>
|
|
168
|
-
@if (showAction()) {
|
|
169
|
-
<hm-button
|
|
170
|
-
class="hm-product-card__action"
|
|
171
|
-
[emphasis]="layout() === 'horizontal' ? 'medium' : 'high'"
|
|
172
|
-
size="small"
|
|
173
|
-
icon="shopping-cart"
|
|
174
|
-
[block]="layout() === 'vertical'"
|
|
175
|
-
[disabled]="!purchasable()"
|
|
176
|
-
[loading]="adding()"
|
|
177
|
-
(clicked)="addToCart.emit(product())"
|
|
178
|
-
>
|
|
179
|
-
{{ purchasable() ? actionLabel() || text().addToCart : text().unavailable }}<span class="hm-visually-hidden">: {{ product().name }}</span>
|
|
180
|
-
</hm-button>
|
|
181
|
-
}
|
|
182
|
-
</div>
|
|
128
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ProductCardComponent, isStandalone: true, selector: "hm-product-card", inputs: { product: { classPropertyName: "product", publicName: "product", isSignal: true, isRequired: true, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, showAction: { classPropertyName: "showAction", publicName: "showAction", isSignal: true, isRequired: false, transformFunction: null }, actionLabel: { classPropertyName: "actionLabel", publicName: "actionLabel", isSignal: true, isRequired: false, transformFunction: null }, adding: { classPropertyName: "adding", publicName: "adding", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { addToCart: "addToCart", view: "view" }, host: { properties: { "class.hm-product-card--horizontal": "layout() === 'horizontal'", "class.hm-product-card--unavailable": "!purchasable()" }, classAttribute: "hm-product-card" }, ngImport: i0, template: `
|
|
129
|
+
<div class="hm-product-card__media">
|
|
130
|
+
@if (product().image) {
|
|
131
|
+
<img class="hm-product-card__image" [src]="product().image" [alt]="product().imageAlt ?? ''" loading="lazy" />
|
|
132
|
+
} @else {
|
|
133
|
+
<span class="hm-product-card__placeholder" aria-hidden="true"><hm-icon shape="image" /></span>
|
|
134
|
+
}
|
|
135
|
+
@if (product().badge) {
|
|
136
|
+
<span class="hm-product-card__badge">{{ product().badge }}</span>
|
|
137
|
+
}
|
|
138
|
+
</div>
|
|
139
|
+
<div class="hm-product-card__body">
|
|
140
|
+
@if (product().brand) {
|
|
141
|
+
<span class="hm-product-card__brand">{{ product().brand }}</span>
|
|
142
|
+
}
|
|
143
|
+
<div class="hm-product-card__name" role="heading" [attr.aria-level]="headingLevel()">
|
|
144
|
+
@if (product().href) {
|
|
145
|
+
<a class="hm-product-card__link" [href]="product().href">{{ product().name }}</a>
|
|
146
|
+
} @else {
|
|
147
|
+
<button type="button" class="hm-product-card__link" (click)="view.emit(product())">{{ product().name }}</button>
|
|
148
|
+
}
|
|
149
|
+
</div>
|
|
150
|
+
<hm-price
|
|
151
|
+
class="hm-product-card__price"
|
|
152
|
+
[amount]="product().price"
|
|
153
|
+
[compareAt]="product().compareAt ?? null"
|
|
154
|
+
[currency]="currency()"
|
|
155
|
+
[installments]="product().installments ?? 0"
|
|
156
|
+
[interestFree]="!!product().interestFree"
|
|
157
|
+
/>
|
|
158
|
+
@if (product().stock; as stock) {
|
|
159
|
+
<hm-stock-status
|
|
160
|
+
class="hm-product-card__stock"
|
|
161
|
+
[quantity]="stock.quantity"
|
|
162
|
+
[lowThreshold]="stock.lowThreshold ?? 5"
|
|
163
|
+
[backorder]="!!stock.backorder"
|
|
164
|
+
[preorder]="!!stock.preorder"
|
|
165
|
+
/>
|
|
166
|
+
}
|
|
167
|
+
<div class="hm-product-card__extra"><ng-content select="[extra]" /></div>
|
|
168
|
+
@if (showAction()) {
|
|
169
|
+
<hm-button
|
|
170
|
+
class="hm-product-card__action"
|
|
171
|
+
[emphasis]="layout() === 'horizontal' ? 'medium' : 'high'"
|
|
172
|
+
size="small"
|
|
173
|
+
icon="shopping-cart"
|
|
174
|
+
[block]="layout() === 'vertical'"
|
|
175
|
+
[disabled]="!purchasable()"
|
|
176
|
+
[loading]="adding()"
|
|
177
|
+
(clicked)="addToCart.emit(product())"
|
|
178
|
+
>
|
|
179
|
+
{{ purchasable() ? actionLabel() || text().addToCart : text().unavailable }}<span class="hm-visually-hidden">: {{ product().name }}</span>
|
|
180
|
+
</hm-button>
|
|
181
|
+
}
|
|
182
|
+
</div>
|
|
183
183
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: PriceComponent, selector: "hm-price", inputs: ["amount", "compareAt", "currency", "size", "period", "unit", "showDiscount", "showSavings", "installments", "interestFree", "freeLabel", "texts"] }, { kind: "component", type: StockStatusComponent, selector: "hm-stock-status", inputs: ["quantity", "lowThreshold", "backorder", "preorder", "showCount", "texts"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
184
184
|
}
|
|
185
185
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ProductCardComponent, decorators: [{
|
|
@@ -193,61 +193,61 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
193
193
|
'[class.hm-product-card--horizontal]': "layout() === 'horizontal'",
|
|
194
194
|
'[class.hm-product-card--unavailable]': '!purchasable()',
|
|
195
195
|
},
|
|
196
|
-
template: `
|
|
197
|
-
<div class="hm-product-card__media">
|
|
198
|
-
@if (product().image) {
|
|
199
|
-
<img class="hm-product-card__image" [src]="product().image" [alt]="product().imageAlt ?? ''" loading="lazy" />
|
|
200
|
-
} @else {
|
|
201
|
-
<span class="hm-product-card__placeholder" aria-hidden="true"><hm-icon shape="image" /></span>
|
|
202
|
-
}
|
|
203
|
-
@if (product().badge) {
|
|
204
|
-
<span class="hm-product-card__badge">{{ product().badge }}</span>
|
|
205
|
-
}
|
|
206
|
-
</div>
|
|
207
|
-
<div class="hm-product-card__body">
|
|
208
|
-
@if (product().brand) {
|
|
209
|
-
<span class="hm-product-card__brand">{{ product().brand }}</span>
|
|
210
|
-
}
|
|
211
|
-
<div class="hm-product-card__name" role="heading" [attr.aria-level]="headingLevel()">
|
|
212
|
-
@if (product().href) {
|
|
213
|
-
<a class="hm-product-card__link" [href]="product().href">{{ product().name }}</a>
|
|
214
|
-
} @else {
|
|
215
|
-
<button type="button" class="hm-product-card__link" (click)="view.emit(product())">{{ product().name }}</button>
|
|
216
|
-
}
|
|
217
|
-
</div>
|
|
218
|
-
<hm-price
|
|
219
|
-
class="hm-product-card__price"
|
|
220
|
-
[amount]="product().price"
|
|
221
|
-
[compareAt]="product().compareAt ?? null"
|
|
222
|
-
[currency]="currency()"
|
|
223
|
-
[installments]="product().installments ?? 0"
|
|
224
|
-
[interestFree]="!!product().interestFree"
|
|
225
|
-
/>
|
|
226
|
-
@if (product().stock; as stock) {
|
|
227
|
-
<hm-stock-status
|
|
228
|
-
class="hm-product-card__stock"
|
|
229
|
-
[quantity]="stock.quantity"
|
|
230
|
-
[lowThreshold]="stock.lowThreshold ?? 5"
|
|
231
|
-
[backorder]="!!stock.backorder"
|
|
232
|
-
[preorder]="!!stock.preorder"
|
|
233
|
-
/>
|
|
234
|
-
}
|
|
235
|
-
<div class="hm-product-card__extra"><ng-content select="[extra]" /></div>
|
|
236
|
-
@if (showAction()) {
|
|
237
|
-
<hm-button
|
|
238
|
-
class="hm-product-card__action"
|
|
239
|
-
[emphasis]="layout() === 'horizontal' ? 'medium' : 'high'"
|
|
240
|
-
size="small"
|
|
241
|
-
icon="shopping-cart"
|
|
242
|
-
[block]="layout() === 'vertical'"
|
|
243
|
-
[disabled]="!purchasable()"
|
|
244
|
-
[loading]="adding()"
|
|
245
|
-
(clicked)="addToCart.emit(product())"
|
|
246
|
-
>
|
|
247
|
-
{{ purchasable() ? actionLabel() || text().addToCart : text().unavailable }}<span class="hm-visually-hidden">: {{ product().name }}</span>
|
|
248
|
-
</hm-button>
|
|
249
|
-
}
|
|
250
|
-
</div>
|
|
196
|
+
template: `
|
|
197
|
+
<div class="hm-product-card__media">
|
|
198
|
+
@if (product().image) {
|
|
199
|
+
<img class="hm-product-card__image" [src]="product().image" [alt]="product().imageAlt ?? ''" loading="lazy" />
|
|
200
|
+
} @else {
|
|
201
|
+
<span class="hm-product-card__placeholder" aria-hidden="true"><hm-icon shape="image" /></span>
|
|
202
|
+
}
|
|
203
|
+
@if (product().badge) {
|
|
204
|
+
<span class="hm-product-card__badge">{{ product().badge }}</span>
|
|
205
|
+
}
|
|
206
|
+
</div>
|
|
207
|
+
<div class="hm-product-card__body">
|
|
208
|
+
@if (product().brand) {
|
|
209
|
+
<span class="hm-product-card__brand">{{ product().brand }}</span>
|
|
210
|
+
}
|
|
211
|
+
<div class="hm-product-card__name" role="heading" [attr.aria-level]="headingLevel()">
|
|
212
|
+
@if (product().href) {
|
|
213
|
+
<a class="hm-product-card__link" [href]="product().href">{{ product().name }}</a>
|
|
214
|
+
} @else {
|
|
215
|
+
<button type="button" class="hm-product-card__link" (click)="view.emit(product())">{{ product().name }}</button>
|
|
216
|
+
}
|
|
217
|
+
</div>
|
|
218
|
+
<hm-price
|
|
219
|
+
class="hm-product-card__price"
|
|
220
|
+
[amount]="product().price"
|
|
221
|
+
[compareAt]="product().compareAt ?? null"
|
|
222
|
+
[currency]="currency()"
|
|
223
|
+
[installments]="product().installments ?? 0"
|
|
224
|
+
[interestFree]="!!product().interestFree"
|
|
225
|
+
/>
|
|
226
|
+
@if (product().stock; as stock) {
|
|
227
|
+
<hm-stock-status
|
|
228
|
+
class="hm-product-card__stock"
|
|
229
|
+
[quantity]="stock.quantity"
|
|
230
|
+
[lowThreshold]="stock.lowThreshold ?? 5"
|
|
231
|
+
[backorder]="!!stock.backorder"
|
|
232
|
+
[preorder]="!!stock.preorder"
|
|
233
|
+
/>
|
|
234
|
+
}
|
|
235
|
+
<div class="hm-product-card__extra"><ng-content select="[extra]" /></div>
|
|
236
|
+
@if (showAction()) {
|
|
237
|
+
<hm-button
|
|
238
|
+
class="hm-product-card__action"
|
|
239
|
+
[emphasis]="layout() === 'horizontal' ? 'medium' : 'high'"
|
|
240
|
+
size="small"
|
|
241
|
+
icon="shopping-cart"
|
|
242
|
+
[block]="layout() === 'vertical'"
|
|
243
|
+
[disabled]="!purchasable()"
|
|
244
|
+
[loading]="adding()"
|
|
245
|
+
(clicked)="addToCart.emit(product())"
|
|
246
|
+
>
|
|
247
|
+
{{ purchasable() ? actionLabel() || text().addToCart : text().unavailable }}<span class="hm-visually-hidden">: {{ product().name }}</span>
|
|
248
|
+
</hm-button>
|
|
249
|
+
}
|
|
250
|
+
</div>
|
|
251
251
|
`,
|
|
252
252
|
}]
|
|
253
253
|
}], propDecorators: { product: [{ type: i0.Input, args: [{ isSignal: true, alias: "product", required: true }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], showAction: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAction", required: false }] }], actionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionLabel", required: false }] }], adding: [{ type: i0.Input, args: [{ isSignal: true, alias: "adding", required: false }] }], addToCart: [{ type: i0.Output, args: ["addToCart"] }], view: [{ type: i0.Output, args: ["view"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -310,39 +310,39 @@ class VariantPickerComponent {
|
|
|
310
310
|
this.variantChange.emit(this.variant());
|
|
311
311
|
}
|
|
312
312
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: VariantPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
313
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: VariantPickerComponent, isStandalone: true, selector: "hm-variant-picker", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, variants: { classPropertyName: "variants", publicName: "variants", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", variantChange: "variantChange" }, host: { classAttribute: "hm-variant-picker" }, ngImport: i0, template: `
|
|
314
|
-
@for (group of groups(); track group.option.id) {
|
|
315
|
-
<fieldset class="hm-variant-picker__group">
|
|
316
|
-
<legend class="hm-variant-picker__legend">{{ group.legend }}</legend>
|
|
317
|
-
<div class="hm-variant-picker__values">
|
|
318
|
-
@for (item of group.values; track item.value.id) {
|
|
319
|
-
<label
|
|
320
|
-
class="hm-variant-picker__value"
|
|
321
|
-
[class.hm-variant-picker__value--swatch]="!!item.value.swatch"
|
|
322
|
-
[class.hm-variant-picker__value--checked]="item.checked"
|
|
323
|
-
[class.hm-variant-picker__value--unavailable]="item.state === 'unavailable'"
|
|
324
|
-
[class.hm-variant-picker__value--missing]="item.state === 'missing'"
|
|
325
|
-
>
|
|
326
|
-
<input
|
|
327
|
-
type="radio"
|
|
328
|
-
class="hm-variant-picker__control"
|
|
329
|
-
[name]="group.name"
|
|
330
|
-
[value]="item.value.id"
|
|
331
|
-
[checked]="item.checked"
|
|
332
|
-
[disabled]="item.state === 'missing'"
|
|
333
|
-
[attr.aria-label]="item.spoken"
|
|
334
|
-
(change)="pick(group.option.id, item.value.id)"
|
|
335
|
-
/>
|
|
336
|
-
@if (item.value.swatch) {
|
|
337
|
-
<span class="hm-variant-picker__swatch" [style.background]="item.value.swatch" aria-hidden="true"></span>
|
|
338
|
-
} @else {
|
|
339
|
-
<span class="hm-variant-picker__text" aria-hidden="true">{{ item.value.label }}</span>
|
|
340
|
-
}
|
|
341
|
-
</label>
|
|
342
|
-
}
|
|
343
|
-
</div>
|
|
344
|
-
</fieldset>
|
|
345
|
-
}
|
|
313
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: VariantPickerComponent, isStandalone: true, selector: "hm-variant-picker", inputs: { options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: true, transformFunction: null }, variants: { classPropertyName: "variants", publicName: "variants", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", variantChange: "variantChange" }, host: { classAttribute: "hm-variant-picker" }, ngImport: i0, template: `
|
|
314
|
+
@for (group of groups(); track group.option.id) {
|
|
315
|
+
<fieldset class="hm-variant-picker__group">
|
|
316
|
+
<legend class="hm-variant-picker__legend">{{ group.legend }}</legend>
|
|
317
|
+
<div class="hm-variant-picker__values">
|
|
318
|
+
@for (item of group.values; track item.value.id) {
|
|
319
|
+
<label
|
|
320
|
+
class="hm-variant-picker__value"
|
|
321
|
+
[class.hm-variant-picker__value--swatch]="!!item.value.swatch"
|
|
322
|
+
[class.hm-variant-picker__value--checked]="item.checked"
|
|
323
|
+
[class.hm-variant-picker__value--unavailable]="item.state === 'unavailable'"
|
|
324
|
+
[class.hm-variant-picker__value--missing]="item.state === 'missing'"
|
|
325
|
+
>
|
|
326
|
+
<input
|
|
327
|
+
type="radio"
|
|
328
|
+
class="hm-variant-picker__control"
|
|
329
|
+
[name]="group.name"
|
|
330
|
+
[value]="item.value.id"
|
|
331
|
+
[checked]="item.checked"
|
|
332
|
+
[disabled]="item.state === 'missing'"
|
|
333
|
+
[attr.aria-label]="item.spoken"
|
|
334
|
+
(change)="pick(group.option.id, item.value.id)"
|
|
335
|
+
/>
|
|
336
|
+
@if (item.value.swatch) {
|
|
337
|
+
<span class="hm-variant-picker__swatch" [style.background]="item.value.swatch" aria-hidden="true"></span>
|
|
338
|
+
} @else {
|
|
339
|
+
<span class="hm-variant-picker__text" aria-hidden="true">{{ item.value.label }}</span>
|
|
340
|
+
}
|
|
341
|
+
</label>
|
|
342
|
+
}
|
|
343
|
+
</div>
|
|
344
|
+
</fieldset>
|
|
345
|
+
}
|
|
346
346
|
`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
347
347
|
}
|
|
348
348
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: VariantPickerComponent, decorators: [{
|
|
@@ -351,39 +351,39 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
351
351
|
selector: 'hm-variant-picker',
|
|
352
352
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
353
353
|
host: { class: 'hm-variant-picker' },
|
|
354
|
-
template: `
|
|
355
|
-
@for (group of groups(); track group.option.id) {
|
|
356
|
-
<fieldset class="hm-variant-picker__group">
|
|
357
|
-
<legend class="hm-variant-picker__legend">{{ group.legend }}</legend>
|
|
358
|
-
<div class="hm-variant-picker__values">
|
|
359
|
-
@for (item of group.values; track item.value.id) {
|
|
360
|
-
<label
|
|
361
|
-
class="hm-variant-picker__value"
|
|
362
|
-
[class.hm-variant-picker__value--swatch]="!!item.value.swatch"
|
|
363
|
-
[class.hm-variant-picker__value--checked]="item.checked"
|
|
364
|
-
[class.hm-variant-picker__value--unavailable]="item.state === 'unavailable'"
|
|
365
|
-
[class.hm-variant-picker__value--missing]="item.state === 'missing'"
|
|
366
|
-
>
|
|
367
|
-
<input
|
|
368
|
-
type="radio"
|
|
369
|
-
class="hm-variant-picker__control"
|
|
370
|
-
[name]="group.name"
|
|
371
|
-
[value]="item.value.id"
|
|
372
|
-
[checked]="item.checked"
|
|
373
|
-
[disabled]="item.state === 'missing'"
|
|
374
|
-
[attr.aria-label]="item.spoken"
|
|
375
|
-
(change)="pick(group.option.id, item.value.id)"
|
|
376
|
-
/>
|
|
377
|
-
@if (item.value.swatch) {
|
|
378
|
-
<span class="hm-variant-picker__swatch" [style.background]="item.value.swatch" aria-hidden="true"></span>
|
|
379
|
-
} @else {
|
|
380
|
-
<span class="hm-variant-picker__text" aria-hidden="true">{{ item.value.label }}</span>
|
|
381
|
-
}
|
|
382
|
-
</label>
|
|
383
|
-
}
|
|
384
|
-
</div>
|
|
385
|
-
</fieldset>
|
|
386
|
-
}
|
|
354
|
+
template: `
|
|
355
|
+
@for (group of groups(); track group.option.id) {
|
|
356
|
+
<fieldset class="hm-variant-picker__group">
|
|
357
|
+
<legend class="hm-variant-picker__legend">{{ group.legend }}</legend>
|
|
358
|
+
<div class="hm-variant-picker__values">
|
|
359
|
+
@for (item of group.values; track item.value.id) {
|
|
360
|
+
<label
|
|
361
|
+
class="hm-variant-picker__value"
|
|
362
|
+
[class.hm-variant-picker__value--swatch]="!!item.value.swatch"
|
|
363
|
+
[class.hm-variant-picker__value--checked]="item.checked"
|
|
364
|
+
[class.hm-variant-picker__value--unavailable]="item.state === 'unavailable'"
|
|
365
|
+
[class.hm-variant-picker__value--missing]="item.state === 'missing'"
|
|
366
|
+
>
|
|
367
|
+
<input
|
|
368
|
+
type="radio"
|
|
369
|
+
class="hm-variant-picker__control"
|
|
370
|
+
[name]="group.name"
|
|
371
|
+
[value]="item.value.id"
|
|
372
|
+
[checked]="item.checked"
|
|
373
|
+
[disabled]="item.state === 'missing'"
|
|
374
|
+
[attr.aria-label]="item.spoken"
|
|
375
|
+
(change)="pick(group.option.id, item.value.id)"
|
|
376
|
+
/>
|
|
377
|
+
@if (item.value.swatch) {
|
|
378
|
+
<span class="hm-variant-picker__swatch" [style.background]="item.value.swatch" aria-hidden="true"></span>
|
|
379
|
+
} @else {
|
|
380
|
+
<span class="hm-variant-picker__text" aria-hidden="true">{{ item.value.label }}</span>
|
|
381
|
+
}
|
|
382
|
+
</label>
|
|
383
|
+
}
|
|
384
|
+
</div>
|
|
385
|
+
</fieldset>
|
|
386
|
+
}
|
|
387
387
|
`,
|
|
388
388
|
}]
|
|
389
389
|
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], variants: [{ type: i0.Input, args: [{ isSignal: true, alias: "variants", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], variantChange: [{ type: i0.Output, args: ["variantChange"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -495,86 +495,86 @@ class ProductDetailComponent {
|
|
|
495
495
|
this.addToCart.emit({ variant: this.variant(), selection: this.selection(), quantity: clampQuantity(this.quantity(), 1, this.#quantityCap()) });
|
|
496
496
|
}
|
|
497
497
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ProductDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
498
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ProductDetailComponent, isStandalone: true, selector: "hm-product-detail", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, images: { classPropertyName: "images", publicName: "images", isSignal: true, isRequired: false, transformFunction: null }, price: { classPropertyName: "price", publicName: "price", isSignal: true, isRequired: true, transformFunction: null }, compareAt: { classPropertyName: "compareAt", publicName: "compareAt", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, installments: { classPropertyName: "installments", publicName: "installments", isSignal: true, isRequired: false, transformFunction: null }, interestFree: { classPropertyName: "interestFree", publicName: "interestFree", isSignal: true, isRequired: false, transformFunction: null }, sku: { classPropertyName: "sku", publicName: "sku", isSignal: true, isRequired: false, transformFunction: null }, stock: { classPropertyName: "stock", publicName: "stock", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, variants: { classPropertyName: "variants", publicName: "variants", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, quantity: { classPropertyName: "quantity", publicName: "quantity", isSignal: true, isRequired: false, transformFunction: null }, maxQuantity: { classPropertyName: "maxQuantity", publicName: "maxQuantity", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, adding: { classPropertyName: "adding", publicName: "adding", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", quantity: "quantityChange", addToCart: "addToCart" }, host: { classAttribute: "hm-product-detail" }, ngImport: i0, template: `
|
|
499
|
-
<div class="hm-product-detail__gallery" role="group" [attr.aria-label]="galleryLabel()">
|
|
500
|
-
<div class="hm-product-detail__stage">
|
|
501
|
-
@if (activeImage(); as image) {
|
|
502
|
-
<img class="hm-product-detail__image" [src]="image.src" [alt]="image.alt" />
|
|
503
|
-
} @else {
|
|
504
|
-
<span class="hm-product-detail__placeholder" aria-hidden="true"><hm-icon shape="image" /></span>
|
|
505
|
-
}
|
|
506
|
-
</div>
|
|
507
|
-
@if (images().length > 1) {
|
|
508
|
-
<div class="hm-product-detail__thumbs">
|
|
509
|
-
@for (image of images(); track $index) {
|
|
510
|
-
<button
|
|
511
|
-
type="button"
|
|
512
|
-
class="hm-product-detail__thumb"
|
|
513
|
-
[class.hm-product-detail__thumb--active]="$index === imageIndex()"
|
|
514
|
-
[attr.aria-label]="thumbLabel($index)"
|
|
515
|
-
[attr.aria-pressed]="$index === imageIndex() ? 'true' : 'false'"
|
|
516
|
-
(click)="imageIndex.set($index)"
|
|
517
|
-
>
|
|
518
|
-
<img [src]="image.src" alt="" />
|
|
519
|
-
</button>
|
|
520
|
-
}
|
|
521
|
-
</div>
|
|
522
|
-
}
|
|
523
|
-
</div>
|
|
524
|
-
|
|
525
|
-
<div class="hm-product-detail__info">
|
|
526
|
-
@if (brand()) {
|
|
527
|
-
<span class="hm-product-detail__brand">{{ brand() }}</span>
|
|
528
|
-
}
|
|
529
|
-
<div class="hm-product-detail__name" role="heading" [attr.aria-level]="headingLevel()">{{ name() }}</div>
|
|
530
|
-
@if (sku()) {
|
|
531
|
-
<span class="hm-product-detail__sku">{{ skuText() }}</span>
|
|
532
|
-
}
|
|
533
|
-
<hm-price
|
|
534
|
-
size="large"
|
|
535
|
-
[amount]="effectivePrice()"
|
|
536
|
-
[compareAt]="effectiveCompareAt()"
|
|
537
|
-
[currency]="currency()"
|
|
538
|
-
[installments]="installments()"
|
|
539
|
-
[interestFree]="interestFree()"
|
|
540
|
-
showSavings
|
|
541
|
-
/>
|
|
542
|
-
@if (effectiveStock(); as stock) {
|
|
543
|
-
<hm-stock-status
|
|
544
|
-
[quantity]="stock.quantity"
|
|
545
|
-
[lowThreshold]="stock.lowThreshold ?? 5"
|
|
546
|
-
[backorder]="!!stock.backorder"
|
|
547
|
-
[preorder]="!!stock.preorder"
|
|
548
|
-
/>
|
|
549
|
-
}
|
|
550
|
-
<div class="hm-product-detail__description"><ng-content select="[description]" /></div>
|
|
551
|
-
@if (options().length) {
|
|
552
|
-
<hm-variant-picker [options]="options()" [variants]="variants()" [(selection)]="selection" />
|
|
553
|
-
}
|
|
554
|
-
<div class="hm-product-detail__buy">
|
|
555
|
-
<hm-input
|
|
556
|
-
class="hm-product-detail__quantity"
|
|
557
|
-
type="number"
|
|
558
|
-
[label]="text().quantity"
|
|
559
|
-
[value]="quantity()"
|
|
560
|
-
[min]="1"
|
|
561
|
-
[max]="maxQuantity()"
|
|
562
|
-
[step]="1"
|
|
563
|
-
(valueChange)="setQuantity($event)"
|
|
564
|
-
/>
|
|
565
|
-
<hm-button
|
|
566
|
-
class="hm-product-detail__add"
|
|
567
|
-
icon="shopping-cart"
|
|
568
|
-
[disabled]="!canBuy()"
|
|
569
|
-
[loading]="adding()"
|
|
570
|
-
(clicked)="requestAdd()"
|
|
571
|
-
>{{ purchasable() ? text().addToCart : text().unavailable }}</hm-button>
|
|
572
|
-
</div>
|
|
573
|
-
@if (missingText()) {
|
|
574
|
-
<p class="hm-product-detail__hint">{{ missingText() }}</p>
|
|
575
|
-
}
|
|
576
|
-
<ng-content />
|
|
577
|
-
</div>
|
|
498
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ProductDetailComponent, isStandalone: true, selector: "hm-product-detail", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: true, transformFunction: null }, brand: { classPropertyName: "brand", publicName: "brand", isSignal: true, isRequired: false, transformFunction: null }, images: { classPropertyName: "images", publicName: "images", isSignal: true, isRequired: false, transformFunction: null }, price: { classPropertyName: "price", publicName: "price", isSignal: true, isRequired: true, transformFunction: null }, compareAt: { classPropertyName: "compareAt", publicName: "compareAt", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, installments: { classPropertyName: "installments", publicName: "installments", isSignal: true, isRequired: false, transformFunction: null }, interestFree: { classPropertyName: "interestFree", publicName: "interestFree", isSignal: true, isRequired: false, transformFunction: null }, sku: { classPropertyName: "sku", publicName: "sku", isSignal: true, isRequired: false, transformFunction: null }, stock: { classPropertyName: "stock", publicName: "stock", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null }, variants: { classPropertyName: "variants", publicName: "variants", isSignal: true, isRequired: false, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, quantity: { classPropertyName: "quantity", publicName: "quantity", isSignal: true, isRequired: false, transformFunction: null }, maxQuantity: { classPropertyName: "maxQuantity", publicName: "maxQuantity", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, adding: { classPropertyName: "adding", publicName: "adding", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", quantity: "quantityChange", addToCart: "addToCart" }, host: { classAttribute: "hm-product-detail" }, ngImport: i0, template: `
|
|
499
|
+
<div class="hm-product-detail__gallery" role="group" [attr.aria-label]="galleryLabel()">
|
|
500
|
+
<div class="hm-product-detail__stage">
|
|
501
|
+
@if (activeImage(); as image) {
|
|
502
|
+
<img class="hm-product-detail__image" [src]="image.src" [alt]="image.alt" />
|
|
503
|
+
} @else {
|
|
504
|
+
<span class="hm-product-detail__placeholder" aria-hidden="true"><hm-icon shape="image" /></span>
|
|
505
|
+
}
|
|
506
|
+
</div>
|
|
507
|
+
@if (images().length > 1) {
|
|
508
|
+
<div class="hm-product-detail__thumbs">
|
|
509
|
+
@for (image of images(); track $index) {
|
|
510
|
+
<button
|
|
511
|
+
type="button"
|
|
512
|
+
class="hm-product-detail__thumb"
|
|
513
|
+
[class.hm-product-detail__thumb--active]="$index === imageIndex()"
|
|
514
|
+
[attr.aria-label]="thumbLabel($index)"
|
|
515
|
+
[attr.aria-pressed]="$index === imageIndex() ? 'true' : 'false'"
|
|
516
|
+
(click)="imageIndex.set($index)"
|
|
517
|
+
>
|
|
518
|
+
<img [src]="image.src" alt="" />
|
|
519
|
+
</button>
|
|
520
|
+
}
|
|
521
|
+
</div>
|
|
522
|
+
}
|
|
523
|
+
</div>
|
|
524
|
+
|
|
525
|
+
<div class="hm-product-detail__info">
|
|
526
|
+
@if (brand()) {
|
|
527
|
+
<span class="hm-product-detail__brand">{{ brand() }}</span>
|
|
528
|
+
}
|
|
529
|
+
<div class="hm-product-detail__name" role="heading" [attr.aria-level]="headingLevel()">{{ name() }}</div>
|
|
530
|
+
@if (sku()) {
|
|
531
|
+
<span class="hm-product-detail__sku">{{ skuText() }}</span>
|
|
532
|
+
}
|
|
533
|
+
<hm-price
|
|
534
|
+
size="large"
|
|
535
|
+
[amount]="effectivePrice()"
|
|
536
|
+
[compareAt]="effectiveCompareAt()"
|
|
537
|
+
[currency]="currency()"
|
|
538
|
+
[installments]="installments()"
|
|
539
|
+
[interestFree]="interestFree()"
|
|
540
|
+
showSavings
|
|
541
|
+
/>
|
|
542
|
+
@if (effectiveStock(); as stock) {
|
|
543
|
+
<hm-stock-status
|
|
544
|
+
[quantity]="stock.quantity"
|
|
545
|
+
[lowThreshold]="stock.lowThreshold ?? 5"
|
|
546
|
+
[backorder]="!!stock.backorder"
|
|
547
|
+
[preorder]="!!stock.preorder"
|
|
548
|
+
/>
|
|
549
|
+
}
|
|
550
|
+
<div class="hm-product-detail__description"><ng-content select="[description]" /></div>
|
|
551
|
+
@if (options().length) {
|
|
552
|
+
<hm-variant-picker [options]="options()" [variants]="variants()" [(selection)]="selection" />
|
|
553
|
+
}
|
|
554
|
+
<div class="hm-product-detail__buy">
|
|
555
|
+
<hm-input
|
|
556
|
+
class="hm-product-detail__quantity"
|
|
557
|
+
type="number"
|
|
558
|
+
[label]="text().quantity"
|
|
559
|
+
[value]="quantity()"
|
|
560
|
+
[min]="1"
|
|
561
|
+
[max]="maxQuantity()"
|
|
562
|
+
[step]="1"
|
|
563
|
+
(valueChange)="setQuantity($event)"
|
|
564
|
+
/>
|
|
565
|
+
<hm-button
|
|
566
|
+
class="hm-product-detail__add"
|
|
567
|
+
icon="shopping-cart"
|
|
568
|
+
[disabled]="!canBuy()"
|
|
569
|
+
[loading]="adding()"
|
|
570
|
+
(clicked)="requestAdd()"
|
|
571
|
+
>{{ purchasable() ? text().addToCart : text().unavailable }}</hm-button>
|
|
572
|
+
</div>
|
|
573
|
+
@if (missingText()) {
|
|
574
|
+
<p class="hm-product-detail__hint">{{ missingText() }}</p>
|
|
575
|
+
}
|
|
576
|
+
<ng-content />
|
|
577
|
+
</div>
|
|
578
578
|
`, isInline: true, dependencies: [{ kind: "component", type: ButtonComponent, selector: "hm-button", inputs: ["emphasis", "intent", "size", "type", "icon", "iconDirection", "iconEnd", "disabled", "loading", "loadingState", "block", "link", "newTab", "caret", "inMenu", "toggle", "pressed"], outputs: ["loadingStateChange", "pressedChange", "clicked"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { 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: PriceComponent, selector: "hm-price", inputs: ["amount", "compareAt", "currency", "size", "period", "unit", "showDiscount", "showSavings", "installments", "interestFree", "freeLabel", "texts"] }, { kind: "component", type: StockStatusComponent, selector: "hm-stock-status", inputs: ["quantity", "lowThreshold", "backorder", "preorder", "showCount", "texts"] }, { kind: "component", type: VariantPickerComponent, selector: "hm-variant-picker", inputs: ["options", "variants", "selection", "texts"], outputs: ["selectionChange", "variantChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
579
579
|
}
|
|
580
580
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ProductDetailComponent, decorators: [{
|
|
@@ -584,86 +584,86 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
584
584
|
imports: [ButtonComponent, IconComponent, InputComponent, PriceComponent, StockStatusComponent, VariantPickerComponent],
|
|
585
585
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
586
586
|
host: { class: 'hm-product-detail' },
|
|
587
|
-
template: `
|
|
588
|
-
<div class="hm-product-detail__gallery" role="group" [attr.aria-label]="galleryLabel()">
|
|
589
|
-
<div class="hm-product-detail__stage">
|
|
590
|
-
@if (activeImage(); as image) {
|
|
591
|
-
<img class="hm-product-detail__image" [src]="image.src" [alt]="image.alt" />
|
|
592
|
-
} @else {
|
|
593
|
-
<span class="hm-product-detail__placeholder" aria-hidden="true"><hm-icon shape="image" /></span>
|
|
594
|
-
}
|
|
595
|
-
</div>
|
|
596
|
-
@if (images().length > 1) {
|
|
597
|
-
<div class="hm-product-detail__thumbs">
|
|
598
|
-
@for (image of images(); track $index) {
|
|
599
|
-
<button
|
|
600
|
-
type="button"
|
|
601
|
-
class="hm-product-detail__thumb"
|
|
602
|
-
[class.hm-product-detail__thumb--active]="$index === imageIndex()"
|
|
603
|
-
[attr.aria-label]="thumbLabel($index)"
|
|
604
|
-
[attr.aria-pressed]="$index === imageIndex() ? 'true' : 'false'"
|
|
605
|
-
(click)="imageIndex.set($index)"
|
|
606
|
-
>
|
|
607
|
-
<img [src]="image.src" alt="" />
|
|
608
|
-
</button>
|
|
609
|
-
}
|
|
610
|
-
</div>
|
|
611
|
-
}
|
|
612
|
-
</div>
|
|
613
|
-
|
|
614
|
-
<div class="hm-product-detail__info">
|
|
615
|
-
@if (brand()) {
|
|
616
|
-
<span class="hm-product-detail__brand">{{ brand() }}</span>
|
|
617
|
-
}
|
|
618
|
-
<div class="hm-product-detail__name" role="heading" [attr.aria-level]="headingLevel()">{{ name() }}</div>
|
|
619
|
-
@if (sku()) {
|
|
620
|
-
<span class="hm-product-detail__sku">{{ skuText() }}</span>
|
|
621
|
-
}
|
|
622
|
-
<hm-price
|
|
623
|
-
size="large"
|
|
624
|
-
[amount]="effectivePrice()"
|
|
625
|
-
[compareAt]="effectiveCompareAt()"
|
|
626
|
-
[currency]="currency()"
|
|
627
|
-
[installments]="installments()"
|
|
628
|
-
[interestFree]="interestFree()"
|
|
629
|
-
showSavings
|
|
630
|
-
/>
|
|
631
|
-
@if (effectiveStock(); as stock) {
|
|
632
|
-
<hm-stock-status
|
|
633
|
-
[quantity]="stock.quantity"
|
|
634
|
-
[lowThreshold]="stock.lowThreshold ?? 5"
|
|
635
|
-
[backorder]="!!stock.backorder"
|
|
636
|
-
[preorder]="!!stock.preorder"
|
|
637
|
-
/>
|
|
638
|
-
}
|
|
639
|
-
<div class="hm-product-detail__description"><ng-content select="[description]" /></div>
|
|
640
|
-
@if (options().length) {
|
|
641
|
-
<hm-variant-picker [options]="options()" [variants]="variants()" [(selection)]="selection" />
|
|
642
|
-
}
|
|
643
|
-
<div class="hm-product-detail__buy">
|
|
644
|
-
<hm-input
|
|
645
|
-
class="hm-product-detail__quantity"
|
|
646
|
-
type="number"
|
|
647
|
-
[label]="text().quantity"
|
|
648
|
-
[value]="quantity()"
|
|
649
|
-
[min]="1"
|
|
650
|
-
[max]="maxQuantity()"
|
|
651
|
-
[step]="1"
|
|
652
|
-
(valueChange)="setQuantity($event)"
|
|
653
|
-
/>
|
|
654
|
-
<hm-button
|
|
655
|
-
class="hm-product-detail__add"
|
|
656
|
-
icon="shopping-cart"
|
|
657
|
-
[disabled]="!canBuy()"
|
|
658
|
-
[loading]="adding()"
|
|
659
|
-
(clicked)="requestAdd()"
|
|
660
|
-
>{{ purchasable() ? text().addToCart : text().unavailable }}</hm-button>
|
|
661
|
-
</div>
|
|
662
|
-
@if (missingText()) {
|
|
663
|
-
<p class="hm-product-detail__hint">{{ missingText() }}</p>
|
|
664
|
-
}
|
|
665
|
-
<ng-content />
|
|
666
|
-
</div>
|
|
587
|
+
template: `
|
|
588
|
+
<div class="hm-product-detail__gallery" role="group" [attr.aria-label]="galleryLabel()">
|
|
589
|
+
<div class="hm-product-detail__stage">
|
|
590
|
+
@if (activeImage(); as image) {
|
|
591
|
+
<img class="hm-product-detail__image" [src]="image.src" [alt]="image.alt" />
|
|
592
|
+
} @else {
|
|
593
|
+
<span class="hm-product-detail__placeholder" aria-hidden="true"><hm-icon shape="image" /></span>
|
|
594
|
+
}
|
|
595
|
+
</div>
|
|
596
|
+
@if (images().length > 1) {
|
|
597
|
+
<div class="hm-product-detail__thumbs">
|
|
598
|
+
@for (image of images(); track $index) {
|
|
599
|
+
<button
|
|
600
|
+
type="button"
|
|
601
|
+
class="hm-product-detail__thumb"
|
|
602
|
+
[class.hm-product-detail__thumb--active]="$index === imageIndex()"
|
|
603
|
+
[attr.aria-label]="thumbLabel($index)"
|
|
604
|
+
[attr.aria-pressed]="$index === imageIndex() ? 'true' : 'false'"
|
|
605
|
+
(click)="imageIndex.set($index)"
|
|
606
|
+
>
|
|
607
|
+
<img [src]="image.src" alt="" />
|
|
608
|
+
</button>
|
|
609
|
+
}
|
|
610
|
+
</div>
|
|
611
|
+
}
|
|
612
|
+
</div>
|
|
613
|
+
|
|
614
|
+
<div class="hm-product-detail__info">
|
|
615
|
+
@if (brand()) {
|
|
616
|
+
<span class="hm-product-detail__brand">{{ brand() }}</span>
|
|
617
|
+
}
|
|
618
|
+
<div class="hm-product-detail__name" role="heading" [attr.aria-level]="headingLevel()">{{ name() }}</div>
|
|
619
|
+
@if (sku()) {
|
|
620
|
+
<span class="hm-product-detail__sku">{{ skuText() }}</span>
|
|
621
|
+
}
|
|
622
|
+
<hm-price
|
|
623
|
+
size="large"
|
|
624
|
+
[amount]="effectivePrice()"
|
|
625
|
+
[compareAt]="effectiveCompareAt()"
|
|
626
|
+
[currency]="currency()"
|
|
627
|
+
[installments]="installments()"
|
|
628
|
+
[interestFree]="interestFree()"
|
|
629
|
+
showSavings
|
|
630
|
+
/>
|
|
631
|
+
@if (effectiveStock(); as stock) {
|
|
632
|
+
<hm-stock-status
|
|
633
|
+
[quantity]="stock.quantity"
|
|
634
|
+
[lowThreshold]="stock.lowThreshold ?? 5"
|
|
635
|
+
[backorder]="!!stock.backorder"
|
|
636
|
+
[preorder]="!!stock.preorder"
|
|
637
|
+
/>
|
|
638
|
+
}
|
|
639
|
+
<div class="hm-product-detail__description"><ng-content select="[description]" /></div>
|
|
640
|
+
@if (options().length) {
|
|
641
|
+
<hm-variant-picker [options]="options()" [variants]="variants()" [(selection)]="selection" />
|
|
642
|
+
}
|
|
643
|
+
<div class="hm-product-detail__buy">
|
|
644
|
+
<hm-input
|
|
645
|
+
class="hm-product-detail__quantity"
|
|
646
|
+
type="number"
|
|
647
|
+
[label]="text().quantity"
|
|
648
|
+
[value]="quantity()"
|
|
649
|
+
[min]="1"
|
|
650
|
+
[max]="maxQuantity()"
|
|
651
|
+
[step]="1"
|
|
652
|
+
(valueChange)="setQuantity($event)"
|
|
653
|
+
/>
|
|
654
|
+
<hm-button
|
|
655
|
+
class="hm-product-detail__add"
|
|
656
|
+
icon="shopping-cart"
|
|
657
|
+
[disabled]="!canBuy()"
|
|
658
|
+
[loading]="adding()"
|
|
659
|
+
(clicked)="requestAdd()"
|
|
660
|
+
>{{ purchasable() ? text().addToCart : text().unavailable }}</hm-button>
|
|
661
|
+
</div>
|
|
662
|
+
@if (missingText()) {
|
|
663
|
+
<p class="hm-product-detail__hint">{{ missingText() }}</p>
|
|
664
|
+
}
|
|
665
|
+
<ng-content />
|
|
666
|
+
</div>
|
|
667
667
|
`,
|
|
668
668
|
}]
|
|
669
669
|
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: true }] }], brand: [{ type: i0.Input, args: [{ isSignal: true, alias: "brand", required: false }] }], images: [{ type: i0.Input, args: [{ isSignal: true, alias: "images", required: false }] }], price: [{ type: i0.Input, args: [{ isSignal: true, alias: "price", required: true }] }], compareAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "compareAt", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], installments: [{ type: i0.Input, args: [{ isSignal: true, alias: "installments", required: false }] }], interestFree: [{ type: i0.Input, args: [{ isSignal: true, alias: "interestFree", required: false }] }], sku: [{ type: i0.Input, args: [{ isSignal: true, alias: "sku", required: false }] }], stock: [{ type: i0.Input, args: [{ isSignal: true, alias: "stock", required: false }] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], variants: [{ type: i0.Input, args: [{ isSignal: true, alias: "variants", required: false }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], quantity: [{ type: i0.Input, args: [{ isSignal: true, alias: "quantity", required: false }] }, { type: i0.Output, args: ["quantityChange"] }], maxQuantity: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxQuantity", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], adding: [{ type: i0.Input, args: [{ isSignal: true, alias: "adding", required: false }] }], addToCart: [{ type: i0.Output, args: ["addToCart"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
@@ -710,40 +710,40 @@ class ProductListComponent {
|
|
|
710
710
|
countText = computed(() => pluralMessage(this.text().count, this.products().length, this.#locale()), ...(ngDevMode ? [{ debugName: "countText" }] : /* istanbul ignore next */ []));
|
|
711
711
|
skeletons = computed(() => Array.from({ length: Math.max(1, this.skeletonCount()) }, (_, index) => index), ...(ngDevMode ? [{ debugName: "skeletons" }] : /* istanbul ignore next */ []));
|
|
712
712
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ProductListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
713
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ProductListComponent, isStandalone: true, selector: "hm-product-list", inputs: { products: { classPropertyName: "products", publicName: "products", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, showAction: { classPropertyName: "showAction", publicName: "showAction", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, skeletonCount: { classPropertyName: "skeletonCount", publicName: "skeletonCount", isSignal: true, isRequired: false, transformFunction: null }, addingId: { classPropertyName: "addingId", publicName: "addingId", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { addToCart: "addToCart", view: "view" }, host: { properties: { "class.hm-product-list--list": "layout() === 'list'", "attr.aria-busy": "loading() ? \"true\" : null" }, classAttribute: "hm-product-list" }, ngImport: i0, template: `
|
|
714
|
-
@if (showCount()) {
|
|
715
|
-
<p class="hm-product-list__count" aria-live="polite">{{ loading() ? text().loading : countText() }}</p>
|
|
716
|
-
}
|
|
717
|
-
@if (loading()) {
|
|
718
|
-
<ul class="hm-product-list__items" [attr.aria-label]="label() || text().listLabel">
|
|
719
|
-
@for (slot of skeletons(); track slot) {
|
|
720
|
-
<li class="hm-product-list__item hm-product-list__item--skeleton" aria-hidden="true">
|
|
721
|
-
<span class="hm-product-list__bone hm-product-list__bone--media"></span>
|
|
722
|
-
<span class="hm-product-list__bone"></span>
|
|
723
|
-
<span class="hm-product-list__bone hm-product-list__bone--short"></span>
|
|
724
|
-
</li>
|
|
725
|
-
}
|
|
726
|
-
</ul>
|
|
727
|
-
} @else if (products().length) {
|
|
728
|
-
<ul class="hm-product-list__items" [attr.aria-label]="label() || text().listLabel">
|
|
729
|
-
@for (product of products(); track product.id) {
|
|
730
|
-
<li class="hm-product-list__item">
|
|
731
|
-
<hm-product-card
|
|
732
|
-
[product]="product"
|
|
733
|
-
[currency]="currency()"
|
|
734
|
-
[layout]="cardLayout()"
|
|
735
|
-
[headingLevel]="headingLevel()"
|
|
736
|
-
[showAction]="showAction()"
|
|
737
|
-
[adding]="addingId() === product.id"
|
|
738
|
-
(addToCart)="addToCart.emit($event)"
|
|
739
|
-
(view)="view.emit($event)"
|
|
740
|
-
/>
|
|
741
|
-
</li>
|
|
742
|
-
}
|
|
743
|
-
</ul>
|
|
744
|
-
} @else {
|
|
745
|
-
<p class="hm-product-list__empty">{{ emptyText() || text().empty }}</p>
|
|
746
|
-
}
|
|
713
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ProductListComponent, isStandalone: true, selector: "hm-product-list", inputs: { products: { classPropertyName: "products", publicName: "products", isSignal: true, isRequired: false, transformFunction: null }, currency: { classPropertyName: "currency", publicName: "currency", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, headingLevel: { classPropertyName: "headingLevel", publicName: "headingLevel", isSignal: true, isRequired: false, transformFunction: null }, showAction: { classPropertyName: "showAction", publicName: "showAction", isSignal: true, isRequired: false, transformFunction: null }, showCount: { classPropertyName: "showCount", publicName: "showCount", isSignal: true, isRequired: false, transformFunction: null }, emptyText: { classPropertyName: "emptyText", publicName: "emptyText", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, skeletonCount: { classPropertyName: "skeletonCount", publicName: "skeletonCount", isSignal: true, isRequired: false, transformFunction: null }, addingId: { classPropertyName: "addingId", publicName: "addingId", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { addToCart: "addToCart", view: "view" }, host: { properties: { "class.hm-product-list--list": "layout() === 'list'", "attr.aria-busy": "loading() ? \"true\" : null" }, classAttribute: "hm-product-list" }, ngImport: i0, template: `
|
|
714
|
+
@if (showCount()) {
|
|
715
|
+
<p class="hm-product-list__count" aria-live="polite">{{ loading() ? text().loading : countText() }}</p>
|
|
716
|
+
}
|
|
717
|
+
@if (loading()) {
|
|
718
|
+
<ul class="hm-product-list__items" [attr.aria-label]="label() || text().listLabel">
|
|
719
|
+
@for (slot of skeletons(); track slot) {
|
|
720
|
+
<li class="hm-product-list__item hm-product-list__item--skeleton" aria-hidden="true">
|
|
721
|
+
<span class="hm-product-list__bone hm-product-list__bone--media"></span>
|
|
722
|
+
<span class="hm-product-list__bone"></span>
|
|
723
|
+
<span class="hm-product-list__bone hm-product-list__bone--short"></span>
|
|
724
|
+
</li>
|
|
725
|
+
}
|
|
726
|
+
</ul>
|
|
727
|
+
} @else if (products().length) {
|
|
728
|
+
<ul class="hm-product-list__items" [attr.aria-label]="label() || text().listLabel">
|
|
729
|
+
@for (product of products(); track product.id) {
|
|
730
|
+
<li class="hm-product-list__item">
|
|
731
|
+
<hm-product-card
|
|
732
|
+
[product]="product"
|
|
733
|
+
[currency]="currency()"
|
|
734
|
+
[layout]="cardLayout()"
|
|
735
|
+
[headingLevel]="headingLevel()"
|
|
736
|
+
[showAction]="showAction()"
|
|
737
|
+
[adding]="addingId() === product.id"
|
|
738
|
+
(addToCart)="addToCart.emit($event)"
|
|
739
|
+
(view)="view.emit($event)"
|
|
740
|
+
/>
|
|
741
|
+
</li>
|
|
742
|
+
}
|
|
743
|
+
</ul>
|
|
744
|
+
} @else {
|
|
745
|
+
<p class="hm-product-list__empty">{{ emptyText() || text().empty }}</p>
|
|
746
|
+
}
|
|
747
747
|
`, isInline: true, dependencies: [{ kind: "component", type: ProductCardComponent, selector: "hm-product-card", inputs: ["product", "currency", "layout", "headingLevel", "showAction", "actionLabel", "adding", "texts"], outputs: ["addToCart", "view"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
748
748
|
}
|
|
749
749
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ProductListComponent, decorators: [{
|
|
@@ -753,40 +753,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
753
753
|
imports: [ProductCardComponent],
|
|
754
754
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
755
755
|
host: { class: 'hm-product-list', '[class.hm-product-list--list]': "layout() === 'list'", '[attr.aria-busy]': 'loading() ? "true" : null' },
|
|
756
|
-
template: `
|
|
757
|
-
@if (showCount()) {
|
|
758
|
-
<p class="hm-product-list__count" aria-live="polite">{{ loading() ? text().loading : countText() }}</p>
|
|
759
|
-
}
|
|
760
|
-
@if (loading()) {
|
|
761
|
-
<ul class="hm-product-list__items" [attr.aria-label]="label() || text().listLabel">
|
|
762
|
-
@for (slot of skeletons(); track slot) {
|
|
763
|
-
<li class="hm-product-list__item hm-product-list__item--skeleton" aria-hidden="true">
|
|
764
|
-
<span class="hm-product-list__bone hm-product-list__bone--media"></span>
|
|
765
|
-
<span class="hm-product-list__bone"></span>
|
|
766
|
-
<span class="hm-product-list__bone hm-product-list__bone--short"></span>
|
|
767
|
-
</li>
|
|
768
|
-
}
|
|
769
|
-
</ul>
|
|
770
|
-
} @else if (products().length) {
|
|
771
|
-
<ul class="hm-product-list__items" [attr.aria-label]="label() || text().listLabel">
|
|
772
|
-
@for (product of products(); track product.id) {
|
|
773
|
-
<li class="hm-product-list__item">
|
|
774
|
-
<hm-product-card
|
|
775
|
-
[product]="product"
|
|
776
|
-
[currency]="currency()"
|
|
777
|
-
[layout]="cardLayout()"
|
|
778
|
-
[headingLevel]="headingLevel()"
|
|
779
|
-
[showAction]="showAction()"
|
|
780
|
-
[adding]="addingId() === product.id"
|
|
781
|
-
(addToCart)="addToCart.emit($event)"
|
|
782
|
-
(view)="view.emit($event)"
|
|
783
|
-
/>
|
|
784
|
-
</li>
|
|
785
|
-
}
|
|
786
|
-
</ul>
|
|
787
|
-
} @else {
|
|
788
|
-
<p class="hm-product-list__empty">{{ emptyText() || text().empty }}</p>
|
|
789
|
-
}
|
|
756
|
+
template: `
|
|
757
|
+
@if (showCount()) {
|
|
758
|
+
<p class="hm-product-list__count" aria-live="polite">{{ loading() ? text().loading : countText() }}</p>
|
|
759
|
+
}
|
|
760
|
+
@if (loading()) {
|
|
761
|
+
<ul class="hm-product-list__items" [attr.aria-label]="label() || text().listLabel">
|
|
762
|
+
@for (slot of skeletons(); track slot) {
|
|
763
|
+
<li class="hm-product-list__item hm-product-list__item--skeleton" aria-hidden="true">
|
|
764
|
+
<span class="hm-product-list__bone hm-product-list__bone--media"></span>
|
|
765
|
+
<span class="hm-product-list__bone"></span>
|
|
766
|
+
<span class="hm-product-list__bone hm-product-list__bone--short"></span>
|
|
767
|
+
</li>
|
|
768
|
+
}
|
|
769
|
+
</ul>
|
|
770
|
+
} @else if (products().length) {
|
|
771
|
+
<ul class="hm-product-list__items" [attr.aria-label]="label() || text().listLabel">
|
|
772
|
+
@for (product of products(); track product.id) {
|
|
773
|
+
<li class="hm-product-list__item">
|
|
774
|
+
<hm-product-card
|
|
775
|
+
[product]="product"
|
|
776
|
+
[currency]="currency()"
|
|
777
|
+
[layout]="cardLayout()"
|
|
778
|
+
[headingLevel]="headingLevel()"
|
|
779
|
+
[showAction]="showAction()"
|
|
780
|
+
[adding]="addingId() === product.id"
|
|
781
|
+
(addToCart)="addToCart.emit($event)"
|
|
782
|
+
(view)="view.emit($event)"
|
|
783
|
+
/>
|
|
784
|
+
</li>
|
|
785
|
+
}
|
|
786
|
+
</ul>
|
|
787
|
+
} @else {
|
|
788
|
+
<p class="hm-product-list__empty">{{ emptyText() || text().empty }}</p>
|
|
789
|
+
}
|
|
790
790
|
`,
|
|
791
791
|
}]
|
|
792
792
|
}], propDecorators: { products: [{ type: i0.Input, args: [{ isSignal: true, alias: "products", required: false }] }], currency: [{ type: i0.Input, args: [{ isSignal: true, alias: "currency", required: false }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], headingLevel: [{ type: i0.Input, args: [{ isSignal: true, alias: "headingLevel", required: false }] }], showAction: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAction", required: false }] }], showCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "showCount", required: false }] }], emptyText: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyText", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], skeletonCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "skeletonCount", required: false }] }], addingId: [{ type: i0.Input, args: [{ isSignal: true, alias: "addingId", required: false }] }], addToCart: [{ type: i0.Output, args: ["addToCart"] }], view: [{ type: i0.Output, args: ["view"] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|