@trismegisto/angular 3.3.2 → 3.3.4
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/fesm2022/trismegisto-angular-access-control.mjs +823 -0
- package/fesm2022/trismegisto-angular-access-control.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-account-avatar.mjs +54 -3
- package/fesm2022/trismegisto-angular-account-avatar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-account-closure.mjs +221 -0
- package/fesm2022/trismegisto-angular-account-closure.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-account-forms.mjs +924 -0
- package/fesm2022/trismegisto-angular-account-forms.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-account-switcher.mjs +202 -0
- package/fesm2022/trismegisto-angular-account-switcher.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-address.mjs +631 -0
- package/fesm2022/trismegisto-angular-address.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-alert-history.mjs +294 -0
- package/fesm2022/trismegisto-angular-alert-history.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-alert-rule-editor.mjs +450 -0
- package/fesm2022/trismegisto-angular-alert-rule-editor.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-anchor-nav.mjs +157 -0
- package/fesm2022/trismegisto-angular-anchor-nav.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-announcer.mjs +79 -0
- package/fesm2022/trismegisto-angular-announcer.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-api-exchange.mjs +202 -0
- package/fesm2022/trismegisto-angular-api-exchange.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-appointment-details.mjs +254 -0
- package/fesm2022/trismegisto-angular-appointment-details.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-approval.mjs +242 -0
- package/fesm2022/trismegisto-angular-approval.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-assignee.mjs +271 -0
- package/fesm2022/trismegisto-angular-assignee.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-attachment.mjs +1 -1
- package/fesm2022/trismegisto-angular-attachment.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-availability-editor.mjs +187 -0
- package/fesm2022/trismegisto-angular-availability-editor.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-avatar-group.mjs +1 -1
- package/fesm2022/trismegisto-angular-avatar-group.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-backlog.mjs +244 -0
- package/fesm2022/trismegisto-angular-backlog.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-billing.mjs +1007 -0
- package/fesm2022/trismegisto-angular-billing.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-bottom-navigation.mjs +203 -0
- package/fesm2022/trismegisto-angular-bottom-navigation.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-bottom-sheet.mjs +428 -0
- package/fesm2022/trismegisto-angular-bottom-sheet.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-card-container.mjs +1 -1
- package/fesm2022/trismegisto-angular-card-container.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-cart.mjs +677 -0
- package/fesm2022/trismegisto-angular-cart.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-cascader.mjs +419 -0
- package/fesm2022/trismegisto-angular-cascader.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-change-history.mjs +148 -0
- package/fesm2022/trismegisto-angular-change-history.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-code-diff.mjs +2 -2
- package/fesm2022/trismegisto-angular-code-diff.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-color-picker.mjs +145 -0
- package/fesm2022/trismegisto-angular-color-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-combobox-multi.mjs +6 -4
- package/fesm2022/trismegisto-angular-combobox-multi.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-commerce-format.mjs +103 -0
- package/fesm2022/trismegisto-angular-commerce-format.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-connection-wizard.mjs +159 -0
- package/fesm2022/trismegisto-angular-connection-wizard.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-consent.mjs +382 -0
- package/fesm2022/trismegisto-angular-consent.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-credentials-form.mjs +461 -0
- package/fesm2022/trismegisto-angular-credentials-form.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-data-grid.mjs +690 -18
- package/fesm2022/trismegisto-angular-data-grid.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-data-source-picker.mjs +115 -0
- package/fesm2022/trismegisto-angular-data-source-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-date-picker.mjs +99 -10
- package/fesm2022/trismegisto-angular-date-picker.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-datetime-picker.mjs +183 -0
- package/fesm2022/trismegisto-angular-datetime-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-deadline.mjs +326 -0
- package/fesm2022/trismegisto-angular-deadline.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-deploy-pipeline.mjs +259 -0
- package/fesm2022/trismegisto-angular-deploy-pipeline.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-drawer.mjs +11 -5
- package/fesm2022/trismegisto-angular-drawer.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-endpoint-card.mjs +143 -0
- package/fesm2022/trismegisto-angular-endpoint-card.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-entity-picker.mjs +246 -0
- package/fesm2022/trismegisto-angular-entity-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-environment-picker.mjs +217 -0
- package/fesm2022/trismegisto-angular-environment-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-event-calendar.mjs +234 -11
- package/fesm2022/trismegisto-angular-event-calendar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-execution-status.mjs +211 -0
- package/fesm2022/trismegisto-angular-execution-status.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-feature-flags.mjs +153 -0
- package/fesm2022/trismegisto-angular-feature-flags.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-field-mapping.mjs +178 -0
- package/fesm2022/trismegisto-angular-field-mapping.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-file-list.mjs +222 -0
- package/fesm2022/trismegisto-angular-file-list.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-file-permissions.mjs +273 -0
- package/fesm2022/trismegisto-angular-file-permissions.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-file-upload.mjs +1 -1
- package/fesm2022/trismegisto-angular-file-upload.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-file-versions.mjs +139 -0
- package/fesm2022/trismegisto-angular-file-versions.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-filter-bar.mjs +1 -1
- package/fesm2022/trismegisto-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-finance.mjs +912 -0
- package/fesm2022/trismegisto-angular-finance.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-form-error-summary.mjs +195 -0
- package/fesm2022/trismegisto-angular-form-error-summary.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-forms.mjs +21 -3
- package/fesm2022/trismegisto-angular-forms.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-gantt.mjs +453 -0
- package/fesm2022/trismegisto-angular-gantt.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-header.mjs +22 -5
- package/fesm2022/trismegisto-angular-header.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-health-status.mjs +204 -0
- package/fesm2022/trismegisto-angular-health-status.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-icon.mjs +96 -1
- package/fesm2022/trismegisto-angular-icon.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-identity-document.mjs +274 -0
- package/fesm2022/trismegisto-angular-identity-document.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-image-gallery.mjs +320 -0
- package/fesm2022/trismegisto-angular-image-gallery.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-incident.mjs +735 -0
- package/fesm2022/trismegisto-angular-incident.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-input.mjs +2 -1
- package/fesm2022/trismegisto-angular-input.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-integration-text.mjs +82 -0
- package/fesm2022/trismegisto-angular-integration-text.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-integration.mjs +423 -0
- package/fesm2022/trismegisto-angular-integration.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-invoice.mjs +381 -0
- package/fesm2022/trismegisto-angular-invoice.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-json-viewer.mjs +388 -0
- package/fesm2022/trismegisto-angular-json-viewer.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-kanban.mjs +49 -9
- package/fesm2022/trismegisto-angular-kanban.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-level-badge.mjs +192 -0
- package/fesm2022/trismegisto-angular-level-badge.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-location-select.mjs +213 -0
- package/fesm2022/trismegisto-angular-location-select.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-log-viewer.mjs +260 -0
- package/fesm2022/trismegisto-angular-log-viewer.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-maintenance-window.mjs +286 -0
- package/fesm2022/trismegisto-angular-maintenance-window.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-member-list.mjs +303 -0
- package/fesm2022/trismegisto-angular-member-list.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-mention-text.mjs +44 -0
- package/fesm2022/trismegisto-angular-mention-text.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-menu.mjs +10 -4
- package/fesm2022/trismegisto-angular-menu.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-message.mjs +132 -7
- package/fesm2022/trismegisto-angular-message.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-metric-explorer.mjs +367 -0
- package/fesm2022/trismegisto-angular-metric-explorer.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-modal.mjs +14 -5
- package/fesm2022/trismegisto-angular-modal.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-monitoring-text.mjs +121 -0
- package/fesm2022/trismegisto-angular-monitoring-text.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-month-picker.mjs +232 -0
- package/fesm2022/trismegisto-angular-month-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-navigation-menu.mjs +68 -9
- package/fesm2022/trismegisto-angular-navigation-menu.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-number-field.mjs +275 -0
- package/fesm2022/trismegisto-angular-number-field.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-observability-text.mjs +244 -0
- package/fesm2022/trismegisto-angular-observability-text.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-order.mjs +443 -0
- package/fesm2022/trismegisto-angular-order.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-org-chart.mjs +678 -0
- package/fesm2022/trismegisto-angular-org-chart.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-password-strength.mjs +204 -0
- package/fesm2022/trismegisto-angular-password-strength.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-payment-fields.mjs +818 -0
- package/fesm2022/trismegisto-angular-payment-fields.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-payment-form.mjs +405 -0
- package/fesm2022/trismegisto-angular-payment-form.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-payment-method.mjs +331 -0
- package/fesm2022/trismegisto-angular-payment-method.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-pdf-viewer.mjs +113 -0
- package/fesm2022/trismegisto-angular-pdf-viewer.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-permission-matrix.mjs +266 -0
- package/fesm2022/trismegisto-angular-permission-matrix.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-pipes.mjs +171 -2
- package/fesm2022/trismegisto-angular-pipes.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-popconfirm.mjs +239 -0
- package/fesm2022/trismegisto-angular-popconfirm.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-popover.mjs +6 -2
- package/fesm2022/trismegisto-angular-popover.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-price.mjs +276 -0
- package/fesm2022/trismegisto-angular-price.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-product.mjs +800 -0
- package/fesm2022/trismegisto-angular-product.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-progress.mjs +119 -4
- package/fesm2022/trismegisto-angular-progress.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-rating.mjs +166 -0
- package/fesm2022/trismegisto-angular-rating.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-reason-dialog.mjs +137 -0
- package/fesm2022/trismegisto-angular-reason-dialog.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-recurrence-editor.mjs +429 -0
- package/fesm2022/trismegisto-angular-recurrence-editor.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-release-timeline.mjs +175 -0
- package/fesm2022/trismegisto-angular-release-timeline.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-report-history.mjs +251 -0
- package/fesm2022/trismegisto-angular-report-history.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-report-schedule.mjs +240 -0
- package/fesm2022/trismegisto-angular-report-schedule.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-resource-calendar.mjs +172 -0
- package/fesm2022/trismegisto-angular-resource-calendar.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-resource-usage.mjs +208 -0
- package/fesm2022/trismegisto-angular-resource-usage.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-return-request.mjs +316 -0
- package/fesm2022/trismegisto-angular-return-request.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-rich-text.mjs +1 -1
- package/fesm2022/trismegisto-angular-rich-text.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-risk-register.mjs +342 -0
- package/fesm2022/trismegisto-angular-risk-register.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-save-status.mjs +166 -0
- package/fesm2022/trismegisto-angular-save-status.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-service-map.mjs +471 -0
- package/fesm2022/trismegisto-angular-service-map.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-service-status.mjs +278 -0
- package/fesm2022/trismegisto-angular-service-status.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-shipping.mjs +410 -0
- package/fesm2022/trismegisto-angular-shipping.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-sidebar.mjs +3 -0
- package/fesm2022/trismegisto-angular-sidebar.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-skip-link.mjs +74 -0
- package/fesm2022/trismegisto-angular-skip-link.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-sla-summary.mjs +349 -0
- package/fesm2022/trismegisto-angular-sla-summary.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-slot-picker.mjs +229 -0
- package/fesm2022/trismegisto-angular-slot-picker.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-split-button.mjs +190 -0
- package/fesm2022/trismegisto-angular-split-button.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-status-badge.mjs +80 -0
- package/fesm2022/trismegisto-angular-status-badge.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-status-select.mjs +156 -0
- package/fesm2022/trismegisto-angular-status-select.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-storage-usage.mjs +136 -0
- package/fesm2022/trismegisto-angular-storage-usage.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-swimlane-board.mjs +237 -0
- package/fesm2022/trismegisto-angular-swimlane-board.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-sync-status.mjs +269 -0
- package/fesm2022/trismegisto-angular-sync-status.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-tag-input.mjs +345 -0
- package/fesm2022/trismegisto-angular-tag-input.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-task-card.mjs +315 -0
- package/fesm2022/trismegisto-angular-task-card.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-task-detail.mjs +737 -0
- package/fesm2022/trismegisto-angular-task-detail.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-textarea.mjs +129 -8
- package/fesm2022/trismegisto-angular-textarea.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-time-range.mjs +201 -0
- package/fesm2022/trismegisto-angular-time-range.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-toast.mjs +135 -34
- package/fesm2022/trismegisto-angular-toast.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-tour.mjs +385 -0
- package/fesm2022/trismegisto-angular-tour.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-trace-waterfall.mjs +511 -0
- package/fesm2022/trismegisto-angular-trace-waterfall.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-transaction.mjs +616 -0
- package/fesm2022/trismegisto-angular-transaction.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-tree-select.mjs +444 -0
- package/fesm2022/trismegisto-angular-tree-select.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-tree.mjs +1 -1
- package/fesm2022/trismegisto-angular-tree.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-unsaved-changes.mjs +147 -0
- package/fesm2022/trismegisto-angular-unsaved-changes.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-uptime-bar.mjs +271 -0
- package/fesm2022/trismegisto-angular-uptime-bar.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-user-card.mjs +298 -0
- package/fesm2022/trismegisto-angular-user-card.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-vehicle-plate.mjs +245 -0
- package/fesm2022/trismegisto-angular-vehicle-plate.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-webhook.mjs +358 -0
- package/fesm2022/trismegisto-angular-webhook.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-wizard.mjs +2 -2
- package/fesm2022/trismegisto-angular-wizard.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workflow-diagram.mjs +441 -0
- package/fesm2022/trismegisto-angular-workflow-diagram.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-workflow-i18n.mjs +890 -0
- package/fesm2022/trismegisto-angular-workflow-i18n.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-workload.mjs +172 -0
- package/fesm2022/trismegisto-angular-workload.mjs.map +1 -0
- package/fesm2022/trismegisto-angular-workspace-persistence.mjs +3 -2
- package/fesm2022/trismegisto-angular-workspace-persistence.mjs.map +1 -1
- package/fesm2022/trismegisto-angular-workspace.mjs +229 -44
- package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
- package/fesm2022/trismegisto-angular.mjs +117 -7
- package/fesm2022/trismegisto-angular.mjs.map +1 -1
- package/package.json +449 -5
- package/types/trismegisto-angular-access-control.d.ts +330 -0
- package/types/trismegisto-angular-access-control.d.ts.map +1 -0
- package/types/trismegisto-angular-account-avatar.d.ts +18 -1
- package/types/trismegisto-angular-account-avatar.d.ts.map +1 -1
- package/types/trismegisto-angular-account-closure.d.ts +85 -0
- package/types/trismegisto-angular-account-closure.d.ts.map +1 -0
- package/types/trismegisto-angular-account-forms.d.ts +381 -0
- package/types/trismegisto-angular-account-forms.d.ts.map +1 -0
- package/types/trismegisto-angular-account-switcher.d.ts +60 -0
- package/types/trismegisto-angular-account-switcher.d.ts.map +1 -0
- package/types/trismegisto-angular-address.d.ts +267 -0
- package/types/trismegisto-angular-address.d.ts.map +1 -0
- package/types/trismegisto-angular-alert-history.d.ts +77 -0
- package/types/trismegisto-angular-alert-history.d.ts.map +1 -0
- package/types/trismegisto-angular-alert-rule-editor.d.ts +123 -0
- package/types/trismegisto-angular-alert-rule-editor.d.ts.map +1 -0
- package/types/trismegisto-angular-anchor-nav.d.ts +78 -0
- package/types/trismegisto-angular-anchor-nav.d.ts.map +1 -0
- package/types/trismegisto-angular-announcer.d.ts +49 -0
- package/types/trismegisto-angular-announcer.d.ts.map +1 -0
- package/types/trismegisto-angular-api-exchange.d.ts +155 -0
- package/types/trismegisto-angular-api-exchange.d.ts.map +1 -0
- package/types/trismegisto-angular-appointment-details.d.ts +123 -0
- package/types/trismegisto-angular-appointment-details.d.ts.map +1 -0
- package/types/trismegisto-angular-approval.d.ts +109 -0
- package/types/trismegisto-angular-approval.d.ts.map +1 -0
- package/types/trismegisto-angular-assignee.d.ts +120 -0
- package/types/trismegisto-angular-assignee.d.ts.map +1 -0
- package/types/trismegisto-angular-availability-editor.d.ts +100 -0
- package/types/trismegisto-angular-availability-editor.d.ts.map +1 -0
- package/types/trismegisto-angular-backlog.d.ts +98 -0
- package/types/trismegisto-angular-backlog.d.ts.map +1 -0
- package/types/trismegisto-angular-billing.d.ts +851 -0
- package/types/trismegisto-angular-billing.d.ts.map +1 -0
- package/types/trismegisto-angular-bottom-navigation.d.ts +83 -0
- package/types/trismegisto-angular-bottom-navigation.d.ts.map +1 -0
- package/types/trismegisto-angular-bottom-sheet.d.ts +121 -0
- package/types/trismegisto-angular-bottom-sheet.d.ts.map +1 -0
- package/types/trismegisto-angular-cart.d.ts +267 -0
- package/types/trismegisto-angular-cart.d.ts.map +1 -0
- package/types/trismegisto-angular-cascader.d.ts +133 -0
- package/types/trismegisto-angular-cascader.d.ts.map +1 -0
- package/types/trismegisto-angular-change-history.d.ts +58 -0
- package/types/trismegisto-angular-change-history.d.ts.map +1 -0
- package/types/trismegisto-angular-color-picker.d.ts +73 -0
- package/types/trismegisto-angular-color-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-combobox-multi.d.ts +3 -1
- package/types/trismegisto-angular-combobox-multi.d.ts.map +1 -1
- package/types/trismegisto-angular-commerce-format.d.ts +43 -0
- package/types/trismegisto-angular-commerce-format.d.ts.map +1 -0
- package/types/trismegisto-angular-connection-wizard.d.ts +110 -0
- package/types/trismegisto-angular-connection-wizard.d.ts.map +1 -0
- package/types/trismegisto-angular-consent.d.ts +142 -0
- package/types/trismegisto-angular-consent.d.ts.map +1 -0
- package/types/trismegisto-angular-credentials-form.d.ts +242 -0
- package/types/trismegisto-angular-credentials-form.d.ts.map +1 -0
- package/types/trismegisto-angular-data-grid.d.ts +382 -48
- package/types/trismegisto-angular-data-grid.d.ts.map +1 -1
- package/types/trismegisto-angular-data-source-picker.d.ts +73 -0
- package/types/trismegisto-angular-data-source-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-date-picker.d.ts +75 -4
- package/types/trismegisto-angular-date-picker.d.ts.map +1 -1
- package/types/trismegisto-angular-datetime-picker.d.ts +89 -0
- package/types/trismegisto-angular-datetime-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-deadline.d.ts +143 -0
- package/types/trismegisto-angular-deadline.d.ts.map +1 -0
- package/types/trismegisto-angular-deploy-pipeline.d.ts +100 -0
- package/types/trismegisto-angular-deploy-pipeline.d.ts.map +1 -0
- package/types/trismegisto-angular-drawer.d.ts +6 -3
- package/types/trismegisto-angular-drawer.d.ts.map +1 -1
- package/types/trismegisto-angular-endpoint-card.d.ts +113 -0
- package/types/trismegisto-angular-endpoint-card.d.ts.map +1 -0
- package/types/trismegisto-angular-entity-picker.d.ts +88 -0
- package/types/trismegisto-angular-entity-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-environment-picker.d.ts +72 -0
- package/types/trismegisto-angular-environment-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-event-calendar.d.ts +52 -6
- package/types/trismegisto-angular-event-calendar.d.ts.map +1 -1
- package/types/trismegisto-angular-execution-status.d.ts +76 -0
- package/types/trismegisto-angular-execution-status.d.ts.map +1 -0
- package/types/trismegisto-angular-feature-flags.d.ts +97 -0
- package/types/trismegisto-angular-feature-flags.d.ts.map +1 -0
- package/types/trismegisto-angular-field-mapping.d.ts +118 -0
- package/types/trismegisto-angular-field-mapping.d.ts.map +1 -0
- package/types/trismegisto-angular-file-list.d.ts +136 -0
- package/types/trismegisto-angular-file-list.d.ts.map +1 -0
- package/types/trismegisto-angular-file-permissions.d.ts +171 -0
- package/types/trismegisto-angular-file-permissions.d.ts.map +1 -0
- package/types/trismegisto-angular-file-versions.d.ts +93 -0
- package/types/trismegisto-angular-file-versions.d.ts.map +1 -0
- package/types/trismegisto-angular-finance.d.ts +623 -0
- package/types/trismegisto-angular-finance.d.ts.map +1 -0
- package/types/trismegisto-angular-form-error-summary.d.ts +98 -0
- package/types/trismegisto-angular-form-error-summary.d.ts.map +1 -0
- package/types/trismegisto-angular-forms.d.ts +14 -1
- package/types/trismegisto-angular-forms.d.ts.map +1 -1
- package/types/trismegisto-angular-gantt.d.ts +128 -0
- package/types/trismegisto-angular-gantt.d.ts.map +1 -0
- package/types/trismegisto-angular-header.d.ts +5 -1
- package/types/trismegisto-angular-header.d.ts.map +1 -1
- package/types/trismegisto-angular-health-status.d.ts +71 -0
- package/types/trismegisto-angular-health-status.d.ts.map +1 -0
- package/types/trismegisto-angular-icon.d.ts +96 -1
- package/types/trismegisto-angular-icon.d.ts.map +1 -1
- package/types/trismegisto-angular-identity-document.d.ts +112 -0
- package/types/trismegisto-angular-identity-document.d.ts.map +1 -0
- package/types/trismegisto-angular-image-gallery.d.ts +129 -0
- package/types/trismegisto-angular-image-gallery.d.ts.map +1 -0
- package/types/trismegisto-angular-incident.d.ts +212 -0
- package/types/trismegisto-angular-incident.d.ts.map +1 -0
- package/types/trismegisto-angular-input.d.ts.map +1 -1
- package/types/trismegisto-angular-integration-text.d.ts +42 -0
- package/types/trismegisto-angular-integration-text.d.ts.map +1 -0
- package/types/trismegisto-angular-integration.d.ts +283 -0
- package/types/trismegisto-angular-integration.d.ts.map +1 -0
- package/types/trismegisto-angular-invoice.d.ts +221 -0
- package/types/trismegisto-angular-invoice.d.ts.map +1 -0
- package/types/trismegisto-angular-json-viewer.d.ts +117 -0
- package/types/trismegisto-angular-json-viewer.d.ts.map +1 -0
- package/types/trismegisto-angular-kanban.d.ts +38 -3
- package/types/trismegisto-angular-kanban.d.ts.map +1 -1
- package/types/trismegisto-angular-level-badge.d.ts +87 -0
- package/types/trismegisto-angular-level-badge.d.ts.map +1 -0
- package/types/trismegisto-angular-location-select.d.ts +80 -0
- package/types/trismegisto-angular-location-select.d.ts.map +1 -0
- package/types/trismegisto-angular-log-viewer.d.ts +125 -0
- package/types/trismegisto-angular-log-viewer.d.ts.map +1 -0
- package/types/trismegisto-angular-maintenance-window.d.ts +89 -0
- package/types/trismegisto-angular-maintenance-window.d.ts.map +1 -0
- package/types/trismegisto-angular-member-list.d.ts +80 -0
- package/types/trismegisto-angular-member-list.d.ts.map +1 -0
- package/types/trismegisto-angular-mention-text.d.ts +28 -0
- package/types/trismegisto-angular-mention-text.d.ts.map +1 -0
- package/types/trismegisto-angular-menu.d.ts +4 -1
- package/types/trismegisto-angular-menu.d.ts.map +1 -1
- package/types/trismegisto-angular-message.d.ts +31 -2
- package/types/trismegisto-angular-message.d.ts.map +1 -1
- package/types/trismegisto-angular-metric-explorer.d.ts +117 -0
- package/types/trismegisto-angular-metric-explorer.d.ts.map +1 -0
- package/types/trismegisto-angular-modal.d.ts +1 -0
- package/types/trismegisto-angular-modal.d.ts.map +1 -1
- package/types/trismegisto-angular-monitoring-text.d.ts +57 -0
- package/types/trismegisto-angular-monitoring-text.d.ts.map +1 -0
- package/types/trismegisto-angular-month-picker.d.ts +104 -0
- package/types/trismegisto-angular-month-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-navigation-menu.d.ts +35 -2
- package/types/trismegisto-angular-navigation-menu.d.ts.map +1 -1
- package/types/trismegisto-angular-number-field.d.ts +148 -0
- package/types/trismegisto-angular-number-field.d.ts.map +1 -0
- package/types/trismegisto-angular-observability-text.d.ts +85 -0
- package/types/trismegisto-angular-observability-text.d.ts.map +1 -0
- package/types/trismegisto-angular-order.d.ts +268 -0
- package/types/trismegisto-angular-order.d.ts.map +1 -0
- package/types/trismegisto-angular-org-chart.d.ts +145 -0
- package/types/trismegisto-angular-org-chart.d.ts.map +1 -0
- package/types/trismegisto-angular-password-strength.d.ts +74 -0
- package/types/trismegisto-angular-password-strength.d.ts.map +1 -0
- package/types/trismegisto-angular-payment-fields.d.ts +450 -0
- package/types/trismegisto-angular-payment-fields.d.ts.map +1 -0
- package/types/trismegisto-angular-payment-form.d.ts +189 -0
- package/types/trismegisto-angular-payment-form.d.ts.map +1 -0
- package/types/trismegisto-angular-payment-method.d.ts +238 -0
- package/types/trismegisto-angular-payment-method.d.ts.map +1 -0
- package/types/trismegisto-angular-pdf-viewer.d.ts +70 -0
- package/types/trismegisto-angular-pdf-viewer.d.ts.map +1 -0
- package/types/trismegisto-angular-permission-matrix.d.ts +70 -0
- package/types/trismegisto-angular-permission-matrix.d.ts.map +1 -0
- package/types/trismegisto-angular-pipes.d.ts +108 -2
- package/types/trismegisto-angular-pipes.d.ts.map +1 -1
- package/types/trismegisto-angular-popconfirm.d.ts +115 -0
- package/types/trismegisto-angular-popconfirm.d.ts.map +1 -0
- package/types/trismegisto-angular-popover.d.ts +3 -1
- package/types/trismegisto-angular-popover.d.ts.map +1 -1
- package/types/trismegisto-angular-price.d.ts +185 -0
- package/types/trismegisto-angular-price.d.ts.map +1 -0
- package/types/trismegisto-angular-product.d.ts +391 -0
- package/types/trismegisto-angular-product.d.ts.map +1 -0
- package/types/trismegisto-angular-progress.d.ts +20 -3
- package/types/trismegisto-angular-progress.d.ts.map +1 -1
- package/types/trismegisto-angular-rating.d.ts +83 -0
- package/types/trismegisto-angular-rating.d.ts.map +1 -0
- package/types/trismegisto-angular-reason-dialog.d.ts +65 -0
- package/types/trismegisto-angular-reason-dialog.d.ts.map +1 -0
- package/types/trismegisto-angular-recurrence-editor.d.ts +151 -0
- package/types/trismegisto-angular-recurrence-editor.d.ts.map +1 -0
- package/types/trismegisto-angular-release-timeline.d.ts +79 -0
- package/types/trismegisto-angular-release-timeline.d.ts.map +1 -0
- package/types/trismegisto-angular-report-history.d.ts +144 -0
- package/types/trismegisto-angular-report-history.d.ts.map +1 -0
- package/types/trismegisto-angular-report-schedule.d.ts +138 -0
- package/types/trismegisto-angular-report-schedule.d.ts.map +1 -0
- package/types/trismegisto-angular-resource-calendar.d.ts +107 -0
- package/types/trismegisto-angular-resource-calendar.d.ts.map +1 -0
- package/types/trismegisto-angular-resource-usage.d.ts +91 -0
- package/types/trismegisto-angular-resource-usage.d.ts.map +1 -0
- package/types/trismegisto-angular-return-request.d.ts +158 -0
- package/types/trismegisto-angular-return-request.d.ts.map +1 -0
- package/types/trismegisto-angular-risk-register.d.ts +130 -0
- package/types/trismegisto-angular-risk-register.d.ts.map +1 -0
- package/types/trismegisto-angular-save-status.d.ts +67 -0
- package/types/trismegisto-angular-save-status.d.ts.map +1 -0
- package/types/trismegisto-angular-service-map.d.ts +111 -0
- package/types/trismegisto-angular-service-map.d.ts.map +1 -0
- package/types/trismegisto-angular-service-status.d.ts +82 -0
- package/types/trismegisto-angular-service-status.d.ts.map +1 -0
- package/types/trismegisto-angular-shipping.d.ts +221 -0
- package/types/trismegisto-angular-shipping.d.ts.map +1 -0
- package/types/trismegisto-angular-sidebar.d.ts +1 -0
- package/types/trismegisto-angular-sidebar.d.ts.map +1 -1
- package/types/trismegisto-angular-skip-link.d.ts +53 -0
- package/types/trismegisto-angular-skip-link.d.ts.map +1 -0
- package/types/trismegisto-angular-sla-summary.d.ts +104 -0
- package/types/trismegisto-angular-sla-summary.d.ts.map +1 -0
- package/types/trismegisto-angular-slot-picker.d.ts +128 -0
- package/types/trismegisto-angular-slot-picker.d.ts.map +1 -0
- package/types/trismegisto-angular-split-button.d.ts +81 -0
- package/types/trismegisto-angular-split-button.d.ts.map +1 -0
- package/types/trismegisto-angular-status-badge.d.ts +40 -0
- package/types/trismegisto-angular-status-badge.d.ts.map +1 -0
- package/types/trismegisto-angular-status-select.d.ts +76 -0
- package/types/trismegisto-angular-status-select.d.ts.map +1 -0
- package/types/trismegisto-angular-storage-usage.d.ts +82 -0
- package/types/trismegisto-angular-storage-usage.d.ts.map +1 -0
- package/types/trismegisto-angular-swimlane-board.d.ts +114 -0
- package/types/trismegisto-angular-swimlane-board.d.ts.map +1 -0
- package/types/trismegisto-angular-sync-status.d.ts +191 -0
- package/types/trismegisto-angular-sync-status.d.ts.map +1 -0
- package/types/trismegisto-angular-tag-input.d.ts +121 -0
- package/types/trismegisto-angular-tag-input.d.ts.map +1 -0
- package/types/trismegisto-angular-task-card.d.ts +106 -0
- package/types/trismegisto-angular-task-card.d.ts.map +1 -0
- package/types/trismegisto-angular-task-detail.d.ts +248 -0
- package/types/trismegisto-angular-task-detail.d.ts.map +1 -0
- package/types/trismegisto-angular-textarea.d.ts +31 -1
- package/types/trismegisto-angular-textarea.d.ts.map +1 -1
- package/types/trismegisto-angular-time-range.d.ts +92 -0
- package/types/trismegisto-angular-time-range.d.ts.map +1 -0
- package/types/trismegisto-angular-toast.d.ts +50 -11
- package/types/trismegisto-angular-toast.d.ts.map +1 -1
- package/types/trismegisto-angular-tour.d.ts +116 -0
- package/types/trismegisto-angular-tour.d.ts.map +1 -0
- package/types/trismegisto-angular-trace-waterfall.d.ts +111 -0
- package/types/trismegisto-angular-trace-waterfall.d.ts.map +1 -0
- package/types/trismegisto-angular-transaction.d.ts +542 -0
- package/types/trismegisto-angular-transaction.d.ts.map +1 -0
- package/types/trismegisto-angular-tree-select.d.ts +197 -0
- package/types/trismegisto-angular-tree-select.d.ts.map +1 -0
- package/types/trismegisto-angular-unsaved-changes.d.ts +101 -0
- package/types/trismegisto-angular-unsaved-changes.d.ts.map +1 -0
- package/types/trismegisto-angular-uptime-bar.d.ts +90 -0
- package/types/trismegisto-angular-uptime-bar.d.ts.map +1 -0
- package/types/trismegisto-angular-user-card.d.ts +126 -0
- package/types/trismegisto-angular-user-card.d.ts.map +1 -0
- package/types/trismegisto-angular-vehicle-plate.d.ts +107 -0
- package/types/trismegisto-angular-vehicle-plate.d.ts.map +1 -0
- package/types/trismegisto-angular-webhook.d.ts +244 -0
- package/types/trismegisto-angular-webhook.d.ts.map +1 -0
- package/types/trismegisto-angular-workflow-diagram.d.ts +136 -0
- package/types/trismegisto-angular-workflow-diagram.d.ts.map +1 -0
- package/types/trismegisto-angular-workflow-i18n.d.ts +358 -0
- package/types/trismegisto-angular-workflow-i18n.d.ts.map +1 -0
- package/types/trismegisto-angular-workload.d.ts +64 -0
- package/types/trismegisto-angular-workload.d.ts.map +1 -0
- package/types/trismegisto-angular-workspace-persistence.d.ts +5 -4
- package/types/trismegisto-angular-workspace-persistence.d.ts.map +1 -1
- package/types/trismegisto-angular-workspace.d.ts +79 -7
- package/types/trismegisto-angular-workspace.d.ts.map +1 -1
- package/types/trismegisto-angular.d.ts +120 -10
- package/types/trismegisto-angular.d.ts.map +1 -1
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { model, input, booleanAttribute, computed, inject, ElementRef, signal, effect, untracked, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { EMPTY_TIME_RANGE, isTimeRangeOrdered, timeRangeMinutes, formatMessage, isOvernightTimeRange, normalizeTimeRange, toIsoTimeValue, isSameTimeRange } from '@trismegisto/primitives';
|
|
4
|
+
import { HermesFormFieldBase } from '@trismegisto/angular/forms';
|
|
5
|
+
import { HermesI18nService } from '@trismegisto/angular/i18n';
|
|
6
|
+
import { ICON_EXCLAMATION_TRIANGLE, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
|
|
7
|
+
import { TimePickerComponent } from '@trismegisto/angular/time-picker';
|
|
8
|
+
|
|
9
|
+
// Textos do hm-time-range, fora do HERMES_MESSAGES de propósito: só entram no bundle de quem usa a peça.
|
|
10
|
+
// `{duration}` = a duração montada com `durationHours`/`durationMinutes`/`durationBoth` (`{hours}`/`{minutes}`).
|
|
11
|
+
const TIME_RANGE_MESSAGES_PT_BR = {
|
|
12
|
+
start: 'Início',
|
|
13
|
+
end: 'Fim',
|
|
14
|
+
order: 'O horário final precisa ser depois do inicial.',
|
|
15
|
+
orderOvernight: 'O horário final precisa ser diferente do inicial.',
|
|
16
|
+
incomplete: 'Informe o início e o fim.',
|
|
17
|
+
overnight: 'termina no dia seguinte',
|
|
18
|
+
duration: 'Duração: {duration}',
|
|
19
|
+
durationHours: '{hours} h',
|
|
20
|
+
durationMinutes: '{minutes} min',
|
|
21
|
+
durationBoth: '{hours} h {minutes} min',
|
|
22
|
+
};
|
|
23
|
+
const TIME_RANGE_MESSAGES_EN = {
|
|
24
|
+
start: 'Start',
|
|
25
|
+
end: 'End',
|
|
26
|
+
order: 'The end time must be after the start time.',
|
|
27
|
+
orderOvernight: 'The end time must differ from the start time.',
|
|
28
|
+
incomplete: 'Enter both the start and the end.',
|
|
29
|
+
overnight: 'ends the next day',
|
|
30
|
+
duration: 'Duration: {duration}',
|
|
31
|
+
durationHours: '{hours} h',
|
|
32
|
+
durationMinutes: '{minutes} min',
|
|
33
|
+
durationBoth: '{hours} h {minutes} min',
|
|
34
|
+
};
|
|
35
|
+
const TIME_RANGE_MESSAGES_ES = {
|
|
36
|
+
start: 'Inicio',
|
|
37
|
+
end: 'Fin',
|
|
38
|
+
order: 'La hora final debe ser posterior a la inicial.',
|
|
39
|
+
orderOvernight: 'La hora final debe ser distinta de la inicial.',
|
|
40
|
+
incomplete: 'Indique el inicio y el fin.',
|
|
41
|
+
overnight: 'termina al día siguiente',
|
|
42
|
+
duration: 'Duración: {duration}',
|
|
43
|
+
durationHours: '{hours} h',
|
|
44
|
+
durationMinutes: '{minutes} min',
|
|
45
|
+
durationBoth: '{hours} h {minutes} min',
|
|
46
|
+
};
|
|
47
|
+
const TIME_RANGE_MESSAGES = { 'pt-BR': TIME_RANGE_MESSAGES_PT_BR, en: TIME_RANGE_MESSAGES_EN, es: TIME_RANGE_MESSAGES_ES };
|
|
48
|
+
|
|
49
|
+
const TIME_RANGE_ICONS = [ICON_EXCLAMATION_TRIANGLE];
|
|
50
|
+
|
|
51
|
+
let sequence = 0;
|
|
52
|
+
/**
|
|
53
|
+
* Faixa de horário (expediente, janela de entrega, turno): dois `hm-time-picker` — início e fim — num
|
|
54
|
+
* grupo com um rótulo. O valor é um `TimeRange` (`{ start, end }`, `HH:mm` ou `null` em cada ponta) num
|
|
55
|
+
* controle só, como o `hm-date-range-picker`.
|
|
56
|
+
*
|
|
57
|
+
* **Fim depois do início**: com as duas pontas preenchidas e o fim no mesmo horário ou antes do início, o
|
|
58
|
+
* campo mostra o erro do catálogo na hora (sem esperar o blur) e marca o fim como inválido. Para o
|
|
59
|
+
* formulário ficar inválido também, use `TimeRangeValidators.order` no controle (a mensagem do erro
|
|
60
|
+
* `timeRangeOrder` já vem pronta). Com `overnight`, um fim antes do início vale como "termina no dia
|
|
61
|
+
* seguinte" (turno 22:00–06:00) e só o fim igual ao início é recusado (`TimeRangeValidators.orderOvernight`).
|
|
62
|
+
*
|
|
63
|
+
* `showDuration` escreve a duração embaixo ("Duração: 8 h 30 min"). Mesmo contrato dos outros campos
|
|
64
|
+
* (`HermesFormFieldBase`): Reactive Forms, `[(ngModel)]`, Signal Forms ou `[(value)]`.
|
|
65
|
+
*/
|
|
66
|
+
class TimeRangeComponent extends HermesFormFieldBase {
|
|
67
|
+
#icons = useHermesIcons(TIME_RANGE_ICONS);
|
|
68
|
+
value = model(EMPTY_TIME_RANGE, ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
69
|
+
label = input.required(...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
70
|
+
labelHidden = input(false, { ...(ngDevMode ? { debugName: "labelHidden" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
71
|
+
hint = input('', ...(ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []));
|
|
72
|
+
/** Primeiro horário aceito nas duas pontas (`HH:mm`). Número (o `min()` do Signal Forms) é ignorado. */
|
|
73
|
+
min = input(null, ...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
|
|
74
|
+
/** Último horário aceito nas duas pontas (`HH:mm`). Número é ignorado, como no `min`. */
|
|
75
|
+
max = input(null, ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
|
|
76
|
+
interval = input(30, ...(ngDevMode ? [{ debugName: "interval" }] : /* istanbul ignore next */ []));
|
|
77
|
+
hourCycle = input(null, ...(ngDevMode ? [{ debugName: "hourCycle" }] : /* istanbul ignore next */ []));
|
|
78
|
+
/** Aceita fim antes do início como "termina no dia seguinte". */
|
|
79
|
+
overnight = input(false, { ...(ngDevMode ? { debugName: "overnight" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
80
|
+
/** Mostra a duração da faixa embaixo do campo. */
|
|
81
|
+
showDuration = input(false, { ...(ngDevMode ? { debugName: "showDuration" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
82
|
+
/** Nome da ponta inicial (padrão: catálogo, "Início"). */
|
|
83
|
+
startLabel = input('', ...(ngDevMode ? [{ debugName: "startLabel" }] : /* istanbul ignore next */ []));
|
|
84
|
+
/** Nome da ponta final (padrão: catálogo, "Fim"). */
|
|
85
|
+
endLabel = input('', ...(ngDevMode ? [{ debugName: "endLabel" }] : /* istanbul ignore next */ []));
|
|
86
|
+
/** Textos próprios (sobrescrevem os do catálogo da peça, por chave). */
|
|
87
|
+
texts = input({}, ...(ngDevMode ? [{ debugName: "texts" }] : /* istanbul ignore next */ []));
|
|
88
|
+
/** `min`/`max` em texto (o número que o Signal Forms liga é ignorado). */
|
|
89
|
+
minValue = computed(() => {
|
|
90
|
+
const v = this.min();
|
|
91
|
+
return typeof v === 'string' ? v : null;
|
|
92
|
+
}, ...(ngDevMode ? [{ debugName: "minValue" }] : /* istanbul ignore next */ []));
|
|
93
|
+
maxValue = computed(() => {
|
|
94
|
+
const v = this.max();
|
|
95
|
+
return typeof v === 'string' ? v : null;
|
|
96
|
+
}, ...(ngDevMode ? [{ debugName: "maxValue" }] : /* istanbul ignore next */ []));
|
|
97
|
+
#i18n = inject(HermesI18nService);
|
|
98
|
+
text = computed(() => ({
|
|
99
|
+
...this.#i18n.pick(TIME_RANGE_MESSAGES, TIME_RANGE_MESSAGES_PT_BR),
|
|
100
|
+
...this.texts(),
|
|
101
|
+
}), ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
|
|
102
|
+
valueModel = this.value;
|
|
103
|
+
id = `hm-time-range-${++sequence}`;
|
|
104
|
+
labelId = `${this.id}-label`;
|
|
105
|
+
hintId = `${this.id}-hint`;
|
|
106
|
+
errorId = `${this.id}-error`;
|
|
107
|
+
durationId = `${this.id}-duration`;
|
|
108
|
+
#host = inject(ElementRef).nativeElement;
|
|
109
|
+
startPart = signal(null, ...(ngDevMode ? [{ debugName: "startPart" }] : /* istanbul ignore next */ []));
|
|
110
|
+
endPart = signal(null, ...(ngDevMode ? [{ debugName: "endPart" }] : /* istanbul ignore next */ []));
|
|
111
|
+
#left = signal(false, ...(ngDevMode ? [{ debugName: "#left" }] : /* istanbul ignore next */ []));
|
|
112
|
+
orderInvalid = computed(() => !isTimeRangeOrdered({ start: this.startPart(), end: this.endPart() }, this.overnight()), ...(ngDevMode ? [{ debugName: "orderInvalid" }] : /* istanbul ignore next */ []));
|
|
113
|
+
durationText = computed(() => {
|
|
114
|
+
if (!this.showDuration())
|
|
115
|
+
return '';
|
|
116
|
+
const range = { start: this.startPart(), end: this.endPart() };
|
|
117
|
+
const minutes = timeRangeMinutes(range, this.overnight());
|
|
118
|
+
if (minutes == null)
|
|
119
|
+
return '';
|
|
120
|
+
const t = this.text();
|
|
121
|
+
const hours = Math.floor(minutes / 60);
|
|
122
|
+
const rest = minutes % 60;
|
|
123
|
+
const amount = hours && rest
|
|
124
|
+
? formatMessage(t.durationBoth, { hours, minutes: rest })
|
|
125
|
+
: hours
|
|
126
|
+
? formatMessage(t.durationHours, { hours })
|
|
127
|
+
: formatMessage(t.durationMinutes, { minutes: rest });
|
|
128
|
+
const base = formatMessage(t.duration, { duration: amount });
|
|
129
|
+
return isOvernightTimeRange(range) ? `${base} (${t.overnight})` : base;
|
|
130
|
+
}, ...(ngDevMode ? [{ debugName: "durationText" }] : /* istanbul ignore next */ []));
|
|
131
|
+
rangeError = computed(() => {
|
|
132
|
+
const t = this.text();
|
|
133
|
+
if (this.orderInvalid())
|
|
134
|
+
return this.overnight() ? t.orderOvernight : t.order;
|
|
135
|
+
if (this.#left() && !!this.startPart() !== !!this.endPart())
|
|
136
|
+
return t.incomplete;
|
|
137
|
+
return this.errorText();
|
|
138
|
+
}, ...(ngDevMode ? [{ debugName: "rangeError" }] : /* istanbul ignore next */ []));
|
|
139
|
+
describedBy = computed(() => [this.durationText() ? this.durationId : '', this.hint() ? this.hintId : '', this.rangeError() ? this.errorId : '']
|
|
140
|
+
.filter(Boolean)
|
|
141
|
+
.join(' ') || null, ...(ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []));
|
|
142
|
+
constructor() {
|
|
143
|
+
super();
|
|
144
|
+
// Valor vindo de fora (patchValue, reset, `[(value)]`) reescreve as pontas.
|
|
145
|
+
effect(() => {
|
|
146
|
+
const range = normalizeTimeRange(this.value());
|
|
147
|
+
untracked(() => {
|
|
148
|
+
this.startPart.set(range.start);
|
|
149
|
+
this.endPart.set(range.end);
|
|
150
|
+
});
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
writeValue(value) {
|
|
154
|
+
this.#left.set(false);
|
|
155
|
+
super.writeValue(normalizeTimeRange(value));
|
|
156
|
+
}
|
|
157
|
+
/** O `timeRangeOrder` dos `TimeRangeValidators` sai com o texto do catálogo (o do app vence). */
|
|
158
|
+
errorMessages() {
|
|
159
|
+
const t = this.text();
|
|
160
|
+
return { timeRangeOrder: this.overnight() ? t.orderOvernight : t.order, ...this.messages() };
|
|
161
|
+
}
|
|
162
|
+
onStart(time) {
|
|
163
|
+
this.startPart.set(toIsoTimeValue(time));
|
|
164
|
+
this.#sync();
|
|
165
|
+
}
|
|
166
|
+
onEnd(time) {
|
|
167
|
+
this.endPart.set(toIsoTimeValue(time));
|
|
168
|
+
this.#sync();
|
|
169
|
+
}
|
|
170
|
+
#sync() {
|
|
171
|
+
const next = { start: this.startPart(), end: this.endPart() };
|
|
172
|
+
if (isSameTimeRange(next, this.value()))
|
|
173
|
+
return;
|
|
174
|
+
this.commit(next);
|
|
175
|
+
}
|
|
176
|
+
onFocusOut(event) {
|
|
177
|
+
const next = event.relatedTarget;
|
|
178
|
+
if (next && this.#host.contains(next))
|
|
179
|
+
return;
|
|
180
|
+
if (next instanceof Element && next.closest('.hm-time-picker__list'))
|
|
181
|
+
return;
|
|
182
|
+
this.#left.set(true);
|
|
183
|
+
this.markTouched();
|
|
184
|
+
}
|
|
185
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TimeRangeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
186
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: TimeRangeComponent, isStandalone: true, selector: "hm-time-range", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, labelHidden: { classPropertyName: "labelHidden", publicName: "labelHidden", isSignal: true, isRequired: false, transformFunction: null }, hint: { classPropertyName: "hint", publicName: "hint", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, interval: { classPropertyName: "interval", publicName: "interval", isSignal: true, isRequired: false, transformFunction: null }, hourCycle: { classPropertyName: "hourCycle", publicName: "hourCycle", isSignal: true, isRequired: false, transformFunction: null }, overnight: { classPropertyName: "overnight", publicName: "overnight", isSignal: true, isRequired: false, transformFunction: null }, showDuration: { classPropertyName: "showDuration", publicName: "showDuration", isSignal: true, isRequired: false, transformFunction: null }, startLabel: { classPropertyName: "startLabel", publicName: "startLabel", isSignal: true, isRequired: false, transformFunction: null }, endLabel: { classPropertyName: "endLabel", publicName: "endLabel", isSignal: true, isRequired: false, transformFunction: null }, texts: { classPropertyName: "texts", publicName: "texts", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { listeners: { "focusout": "onFocusOut($event)" }, classAttribute: "hm-field hm-time-range" }, usesInheritance: true, ngImport: i0, template: "<div\n class=\"hm-field hm-time-range__group\"\n role=\"group\"\n [attr.aria-labelledby]=\"labelId\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <div class=\"hm-field__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <span class=\"hm-field__label\" [id]=\"labelId\">{{ label() }}</span>\n @if (isRequired()) {\n <span class=\"hm-field__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div class=\"hm-time-range__parts\">\n <hm-time-picker\n class=\"hm-time-range__start\"\n labelHidden\n [label]=\"startLabel() || text().start\"\n [value]=\"startPart()\"\n [min]=\"minValue()\"\n [max]=\"maxValue()\"\n [interval]=\"interval()\"\n [hourCycle]=\"hourCycle()\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"onStart($event)\"\n />\n <span class=\"hm-time-range__sep\" aria-hidden=\"true\">\u2013</span>\n <hm-time-picker\n class=\"hm-time-range__end\"\n [class.hm-time-range__end--invalid]=\"orderInvalid()\"\n labelHidden\n [label]=\"endLabel() || text().end\"\n [value]=\"endPart()\"\n [min]=\"minValue()\"\n [max]=\"maxValue()\"\n [interval]=\"interval()\"\n [hourCycle]=\"hourCycle()\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"onEnd($event)\"\n />\n </div>\n\n @if (durationText()) {\n <p class=\"hm-field__hint hm-time-range__duration\" [id]=\"durationId\">{{ durationText() }}</p>\n }\n @if (hint()) {\n <p class=\"hm-field__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (rangeError()) {\n <p class=\"hm-field__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n {{ rangeError() }}\n </p>\n }\n</div>\n", dependencies: [{ kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: TimePickerComponent, selector: "hm-time-picker", inputs: ["value", "label", "labelHidden", "hint", "placeholder", "min", "max", "interval", "hourCycle"], outputs: ["valueChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
187
|
+
}
|
|
188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: TimeRangeComponent, decorators: [{
|
|
189
|
+
type: Component,
|
|
190
|
+
args: [{ selector: 'hm-time-range', imports: [IconComponent, TimePickerComponent], changeDetection: ChangeDetectionStrategy.OnPush, host: { class: 'hm-field hm-time-range', '(focusout)': 'onFocusOut($event)' }, template: "<div\n class=\"hm-field hm-time-range__group\"\n role=\"group\"\n [attr.aria-labelledby]=\"labelId\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <div class=\"hm-field__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <span class=\"hm-field__label\" [id]=\"labelId\">{{ label() }}</span>\n @if (isRequired()) {\n <span class=\"hm-field__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div class=\"hm-time-range__parts\">\n <hm-time-picker\n class=\"hm-time-range__start\"\n labelHidden\n [label]=\"startLabel() || text().start\"\n [value]=\"startPart()\"\n [min]=\"minValue()\"\n [max]=\"maxValue()\"\n [interval]=\"interval()\"\n [hourCycle]=\"hourCycle()\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"onStart($event)\"\n />\n <span class=\"hm-time-range__sep\" aria-hidden=\"true\">\u2013</span>\n <hm-time-picker\n class=\"hm-time-range__end\"\n [class.hm-time-range__end--invalid]=\"orderInvalid()\"\n labelHidden\n [label]=\"endLabel() || text().end\"\n [value]=\"endPart()\"\n [min]=\"minValue()\"\n [max]=\"maxValue()\"\n [interval]=\"interval()\"\n [hourCycle]=\"hourCycle()\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"onEnd($event)\"\n />\n </div>\n\n @if (durationText()) {\n <p class=\"hm-field__hint hm-time-range__duration\" [id]=\"durationId\">{{ durationText() }}</p>\n }\n @if (hint()) {\n <p class=\"hm-field__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (rangeError()) {\n <p class=\"hm-field__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n {{ rangeError() }}\n </p>\n }\n</div>\n" }]
|
|
191
|
+
}], ctorParameters: () => [], propDecorators: { 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: true }] }], labelHidden: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelHidden", required: false }] }], hint: [{ type: i0.Input, args: [{ isSignal: true, alias: "hint", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], interval: [{ type: i0.Input, args: [{ isSignal: true, alias: "interval", required: false }] }], hourCycle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hourCycle", required: false }] }], overnight: [{ type: i0.Input, args: [{ isSignal: true, alias: "overnight", required: false }] }], showDuration: [{ type: i0.Input, args: [{ isSignal: true, alias: "showDuration", required: false }] }], startLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "startLabel", required: false }] }], endLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "endLabel", required: false }] }], texts: [{ type: i0.Input, args: [{ isSignal: true, alias: "texts", required: false }] }] } });
|
|
192
|
+
|
|
193
|
+
// Ponto de import `@trismegisto/angular/time-range` (secundário do ng-packagr): o que o public-api e as outras pastas
|
|
194
|
+
// usam daqui. Ao criar arquivo público novo na pasta, acrescente a linha.
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Generated bundle index. Do not edit.
|
|
198
|
+
*/
|
|
199
|
+
|
|
200
|
+
export { TIME_RANGE_MESSAGES, TIME_RANGE_MESSAGES_EN, TIME_RANGE_MESSAGES_ES, TIME_RANGE_MESSAGES_PT_BR, TimeRangeComponent };
|
|
201
|
+
//# sourceMappingURL=trismegisto-angular-time-range.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trismegisto-angular-time-range.mjs","sources":["../../src/time-range/time-range-messages.ts","../../src/time-range/icons.generated.ts","../../src/time-range/time-range.component.ts","../../src/time-range/time-range.component.html","../../src/time-range/index.ts","../../src/time-range/trismegisto-angular-time-range.ts"],"sourcesContent":["// Textos do hm-time-range, fora do HERMES_MESSAGES de propósito: só entram no bundle de quem usa a peça.\n// `{duration}` = a duração montada com `durationHours`/`durationMinutes`/`durationBoth` (`{hours}`/`{minutes}`).\n\nexport interface TimeRangeMessages {\n start: string;\n end: string;\n order: string;\n orderOvernight: string;\n incomplete: string;\n overnight: string;\n duration: string;\n durationHours: string;\n durationMinutes: string;\n durationBoth: string;\n}\n\nexport const TIME_RANGE_MESSAGES_PT_BR: TimeRangeMessages = {\n start: 'Início',\n end: 'Fim',\n order: 'O horário final precisa ser depois do inicial.',\n orderOvernight: 'O horário final precisa ser diferente do inicial.',\n incomplete: 'Informe o início e o fim.',\n overnight: 'termina no dia seguinte',\n duration: 'Duração: {duration}',\n durationHours: '{hours} h',\n durationMinutes: '{minutes} min',\n durationBoth: '{hours} h {minutes} min',\n};\n\nexport const TIME_RANGE_MESSAGES_EN: TimeRangeMessages = {\n start: 'Start',\n end: 'End',\n order: 'The end time must be after the start time.',\n orderOvernight: 'The end time must differ from the start time.',\n incomplete: 'Enter both the start and the end.',\n overnight: 'ends the next day',\n duration: 'Duration: {duration}',\n durationHours: '{hours} h',\n durationMinutes: '{minutes} min',\n durationBoth: '{hours} h {minutes} min',\n};\n\nexport const TIME_RANGE_MESSAGES_ES: TimeRangeMessages = {\n start: 'Inicio',\n end: 'Fin',\n order: 'La hora final debe ser posterior a la inicial.',\n orderOvernight: 'La hora final debe ser distinta de la inicial.',\n incomplete: 'Indique el inicio y el fin.',\n overnight: 'termina al día siguiente',\n duration: 'Duración: {duration}',\n durationHours: '{hours} h',\n durationMinutes: '{minutes} min',\n durationBoth: '{hours} h {minutes} min',\n};\n\nexport const TIME_RANGE_MESSAGES = { 'pt-BR': TIME_RANGE_MESSAGES_PT_BR, en: TIME_RANGE_MESSAGES_EN, es: TIME_RANGE_MESSAGES_ES };\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(TIME_RANGE_ICONS);`.\nimport type { RegisteredIcon } from '@trismegisto/icons';\nimport {\n ICON_EXCLAMATION_TRIANGLE,\n} from '@trismegisto/angular/icon';\n\nexport const TIME_RANGE_ICONS: readonly RegisteredIcon[] = [ICON_EXCLAMATION_TRIANGLE];\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n model,\n signal,\n untracked,\n} from '@angular/core';\nimport {\n EMPTY_TIME_RANGE,\n IsoTime,\n TimeHourCycle,\n TimeRange,\n formatMessage,\n isOvernightTimeRange,\n isSameTimeRange,\n isTimeRangeOrdered,\n normalizeTimeRange,\n timeRangeMinutes,\n toIsoTimeValue,\n} from '@trismegisto/primitives';\nimport { HermesFormFieldBase } from '@trismegisto/angular/forms';\nimport { HermesI18nService } from '@trismegisto/angular/i18n';\nimport { TIME_RANGE_MESSAGES, TIME_RANGE_MESSAGES_PT_BR, TimeRangeMessages } from './time-range-messages';\nimport { IconComponent, useHermesIcons } from '@trismegisto/angular/icon';\nimport { TimePickerComponent } from '@trismegisto/angular/time-picker';\nimport { TIME_RANGE_ICONS } from './icons.generated';\n\nexport type { TimeRange } from '@trismegisto/primitives';\n\nlet sequence = 0;\n\n/**\n * Faixa de horário (expediente, janela de entrega, turno): dois `hm-time-picker` — início e fim — num\n * grupo com um rótulo. O valor é um `TimeRange` (`{ start, end }`, `HH:mm` ou `null` em cada ponta) num\n * controle só, como o `hm-date-range-picker`.\n *\n * **Fim depois do início**: com as duas pontas preenchidas e o fim no mesmo horário ou antes do início, o\n * campo mostra o erro do catálogo na hora (sem esperar o blur) e marca o fim como inválido. Para o\n * formulário ficar inválido também, use `TimeRangeValidators.order` no controle (a mensagem do erro\n * `timeRangeOrder` já vem pronta). Com `overnight`, um fim antes do início vale como \"termina no dia\n * seguinte\" (turno 22:00–06:00) e só o fim igual ao início é recusado (`TimeRangeValidators.orderOvernight`).\n *\n * `showDuration` escreve a duração embaixo (\"Duração: 8 h 30 min\"). Mesmo contrato dos outros campos\n * (`HermesFormFieldBase`): Reactive Forms, `[(ngModel)]`, Signal Forms ou `[(value)]`.\n */\n@Component({\n selector: 'hm-time-range',\n imports: [IconComponent, TimePickerComponent],\n templateUrl: './time-range.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { class: 'hm-field hm-time-range', '(focusout)': 'onFocusOut($event)' },\n})\nexport class TimeRangeComponent extends HermesFormFieldBase<TimeRange> {\n readonly #icons = useHermesIcons(TIME_RANGE_ICONS);\n readonly value = model<TimeRange>(EMPTY_TIME_RANGE);\n readonly label = input.required<string>();\n readonly labelHidden = input(false, { transform: booleanAttribute });\n readonly hint = input('');\n /** Primeiro horário aceito nas duas pontas (`HH:mm`). Número (o `min()` do Signal Forms) é ignorado. */\n readonly min = input<IsoTime | number | null | undefined>(null);\n /** Último horário aceito nas duas pontas (`HH:mm`). Número é ignorado, como no `min`. */\n readonly max = input<IsoTime | number | null | undefined>(null);\n readonly interval = input(30);\n readonly hourCycle = input<TimeHourCycle | null>(null);\n /** Aceita fim antes do início como \"termina no dia seguinte\". */\n readonly overnight = input(false, { transform: booleanAttribute });\n /** Mostra a duração da faixa embaixo do campo. */\n readonly showDuration = input(false, { transform: booleanAttribute });\n /** Nome da ponta inicial (padrão: catálogo, \"Início\"). */\n readonly startLabel = input('');\n /** Nome da ponta final (padrão: catálogo, \"Fim\"). */\n readonly endLabel = input('');\n /** Textos próprios (sobrescrevem os do catálogo da peça, por chave). */\n readonly texts = input<Partial<TimeRangeMessages>>({});\n\n /** `min`/`max` em texto (o número que o Signal Forms liga é ignorado). */\n protected readonly minValue = computed(() => {\n const v = this.min();\n return typeof v === 'string' ? v : null;\n });\n protected readonly maxValue = computed(() => {\n const v = this.max();\n return typeof v === 'string' ? v : null;\n });\n readonly #i18n = inject(HermesI18nService);\n protected readonly text = computed<TimeRangeMessages>(() => ({\n ...this.#i18n.pick(TIME_RANGE_MESSAGES, TIME_RANGE_MESSAGES_PT_BR),\n ...this.texts(),\n }));\n protected readonly valueModel = this.value;\n protected readonly id = `hm-time-range-${++sequence}`;\n protected readonly labelId = `${this.id}-label`;\n protected readonly hintId = `${this.id}-hint`;\n protected readonly errorId = `${this.id}-error`;\n protected readonly durationId = `${this.id}-duration`;\n readonly #host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n protected readonly startPart = signal<IsoTime | null>(null);\n protected readonly endPart = signal<IsoTime | null>(null);\n readonly #left = signal(false);\n\n protected readonly orderInvalid = computed(\n () => !isTimeRangeOrdered({ start: this.startPart(), end: this.endPart() }, this.overnight()),\n );\n protected readonly durationText = computed(() => {\n if (!this.showDuration()) return '';\n const range = { start: this.startPart(), end: this.endPart() };\n const minutes = timeRangeMinutes(range, this.overnight());\n if (minutes == null) return '';\n const t = this.text();\n const hours = Math.floor(minutes / 60);\n const rest = minutes % 60;\n const amount =\n hours && rest\n ? formatMessage(t.durationBoth, { hours, minutes: rest })\n : hours\n ? formatMessage(t.durationHours, { hours })\n : formatMessage(t.durationMinutes, { minutes: rest });\n const base = formatMessage(t.duration, { duration: amount });\n return isOvernightTimeRange(range) ? `${base} (${t.overnight})` : base;\n });\n protected readonly rangeError = computed(() => {\n const t = this.text();\n if (this.orderInvalid()) return this.overnight() ? t.orderOvernight : t.order;\n if (this.#left() && !!this.startPart() !== !!this.endPart()) return t.incomplete;\n return this.errorText();\n });\n protected readonly describedBy = computed(\n () =>\n [this.durationText() ? this.durationId : '', this.hint() ? this.hintId : '', this.rangeError() ? this.errorId : '']\n .filter(Boolean)\n .join(' ') || null,\n );\n\n constructor() {\n super();\n // Valor vindo de fora (patchValue, reset, `[(value)]`) reescreve as pontas.\n effect(() => {\n const range = normalizeTimeRange(this.value());\n untracked(() => {\n this.startPart.set(range.start);\n this.endPart.set(range.end);\n });\n });\n }\n\n override writeValue(value: TimeRange): void {\n this.#left.set(false);\n super.writeValue(normalizeTimeRange(value));\n }\n\n /** O `timeRangeOrder` dos `TimeRangeValidators` sai com o texto do catálogo (o do app vence). */\n protected override errorMessages(): Readonly<Record<string, string>> {\n const t = this.text();\n return { timeRangeOrder: this.overnight() ? t.orderOvernight : t.order, ...this.messages() };\n }\n\n protected onStart(time: string | null): void {\n this.startPart.set(toIsoTimeValue(time));\n this.#sync();\n }\n\n protected onEnd(time: string | null): void {\n this.endPart.set(toIsoTimeValue(time));\n this.#sync();\n }\n\n #sync(): void {\n const next: TimeRange = { start: this.startPart(), end: this.endPart() };\n if (isSameTimeRange(next, this.value())) return;\n this.commit(next);\n }\n\n protected onFocusOut(event: FocusEvent): void {\n const next = event.relatedTarget as Node | null;\n if (next && this.#host.contains(next)) return;\n if (next instanceof Element && next.closest('.hm-time-picker__list')) return;\n this.#left.set(true);\n this.markTouched();\n }\n}\n","<div\n class=\"hm-field hm-time-range__group\"\n role=\"group\"\n [attr.aria-labelledby]=\"labelId\"\n [attr.aria-describedby]=\"describedBy()\"\n>\n <div class=\"hm-field__label-row\" [class.hm-visually-hidden]=\"labelHidden()\">\n <span class=\"hm-field__label\" [id]=\"labelId\">{{ label() }}</span>\n @if (isRequired()) {\n <span class=\"hm-field__required\">{{ fieldText.required }}</span>\n }\n </div>\n\n <div class=\"hm-time-range__parts\">\n <hm-time-picker\n class=\"hm-time-range__start\"\n labelHidden\n [label]=\"startLabel() || text().start\"\n [value]=\"startPart()\"\n [min]=\"minValue()\"\n [max]=\"maxValue()\"\n [interval]=\"interval()\"\n [hourCycle]=\"hourCycle()\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"onStart($event)\"\n />\n <span class=\"hm-time-range__sep\" aria-hidden=\"true\">–</span>\n <hm-time-picker\n class=\"hm-time-range__end\"\n [class.hm-time-range__end--invalid]=\"orderInvalid()\"\n labelHidden\n [label]=\"endLabel() || text().end\"\n [value]=\"endPart()\"\n [min]=\"minValue()\"\n [max]=\"maxValue()\"\n [interval]=\"interval()\"\n [hourCycle]=\"hourCycle()\"\n [disabled]=\"isDisabled()\"\n (valueChange)=\"onEnd($event)\"\n />\n </div>\n\n @if (durationText()) {\n <p class=\"hm-field__hint hm-time-range__duration\" [id]=\"durationId\">{{ durationText() }}</p>\n }\n @if (hint()) {\n <p class=\"hm-field__hint\" [id]=\"hintId\">{{ hint() }}</p>\n }\n @if (rangeError()) {\n <p class=\"hm-field__error\" [id]=\"errorId\" role=\"alert\">\n <hm-icon shape=\"exclamation-triangle\" />\n {{ rangeError() }}\n </p>\n }\n</div>\n","// Ponto de import `@trismegisto/angular/time-range` (secundário do ng-packagr): o que o public-api e as outras pastas\n// usam daqui. Ao criar arquivo público novo na pasta, acrescente a linha.\nexport * from './time-range.component';\nexport * from './time-range-messages';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;AACA;AAeO,MAAM,yBAAyB,GAAsB;AAC1D,IAAA,KAAK,EAAE,QAAQ;AACf,IAAA,GAAG,EAAE,KAAK;AACV,IAAA,KAAK,EAAE,gDAAgD;AACvD,IAAA,cAAc,EAAE,mDAAmD;AACnE,IAAA,UAAU,EAAE,2BAA2B;AACvC,IAAA,SAAS,EAAE,yBAAyB;AACpC,IAAA,QAAQ,EAAE,qBAAqB;AAC/B,IAAA,aAAa,EAAE,WAAW;AAC1B,IAAA,eAAe,EAAE,eAAe;AAChC,IAAA,YAAY,EAAE,yBAAyB;;AAGlC,MAAM,sBAAsB,GAAsB;AACvD,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,GAAG,EAAE,KAAK;A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EAAA,EAAA,KAAA,EAAA,EAAA,iBAAA,EAAA,OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,OAAA,EAAA,EAAA,KAAA,EAAA,aAAA,EAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,UAAA,EAAA,oBAAA,EAAA,EAAA,cAAA,EAAA,wBAAA,EAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EC1D/B,0tDAuDA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDFY,aAAa,oJAAE,mBAAmB,EAAA,QAAA,EAAA,gBAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,OAAA,EAAA,aAAA,EAAA,MAAA,EAAA,aAAA,EAAA,KAAA,EAAA,KAAA,EAAA,UAAA,EAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA;;4FAKjC,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAP9B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,eAAe,WAChB,CAAC,aAAa,EAAE,mBAAmB,CAAC,mBAE5B,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC,EAAE,KAAK,EAAE,wBAAwB,EAAE,YAAY,EAAE,oBAAoB,EAAE,EAAA,QAAA,EAAA,0tDAAA,EAAA;;;AExD/E;AACA;;ACDA;;AAEG;;"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { signal, Injectable, inject, ElementRef, PLATFORM_ID, input, output, computed, effect, untracked, DestroyRef, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { signal, Injectable, inject, ElementRef, PLATFORM_ID, input, output, computed, effect, untracked, DestroyRef, ChangeDetectionStrategy, Component, InjectionToken, viewChildren, afterRenderEffect } from '@angular/core';
|
|
4
|
+
import { alertIcon, alertRole, createToastStore, toastStackLayout, TOAST_STACK_VISIBLE } from '@trismegisto/primitives';
|
|
3
5
|
import { ICON_CHECK_CIRCLE, ICON_EXCLAMATION_TRIANGLE, ICON_INFO_CIRCLE, ICON_TIMES, ICON_TIMES_CIRCLE, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
|
|
4
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
5
|
-
import { alertIcon, alertRole, createToastStore } from '@trismegisto/primitives';
|
|
6
6
|
import { HERMES_MESSAGES } from '@trismegisto/angular/i18n';
|
|
7
7
|
import { IconButtonComponent } from '@trismegisto/angular/icon-button';
|
|
8
8
|
|
|
@@ -128,6 +128,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
128
128
|
}, template: "<span class=\"hm-toast__badge\" aria-hidden=\"true\"><hm-icon [shape]=\"icon()\" /></span>\n<div class=\"hm-toast__body\">\n <p class=\"hm-toast__title\">{{ titleVisible() }}</p>\n <p class=\"hm-toast__message\">{{ message() }}</p>\n @if (actionLabel()) {\n <button type=\"button\" class=\"hm-toast__action\" (click)=\"action.emit()\">{{ actionLabel() }}</button>\n }\n</div>\n<hm-icon-button class=\"hm-toast__close\" icon=\"times\" emphasis=\"subtle\" size=\"small\" [label]=\"text.close\" (clicked)=\"close()\" />\n@if (duration() > 0) {\n <!-- Uma barra nova a cada dura\u00E7\u00E3o nova: a anima\u00E7\u00E3o recome\u00E7a junto com o rel\u00F3gio. -->\n @for (run of [duration()]; track run) {\n <span class=\"hm-toast__timer\" aria-hidden=\"true\" [style.animation-duration.ms]=\"run\"></span>\n }\n}\n" }]
|
|
129
129
|
}], ctorParameters: () => [], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], message: [{ type: i0.Input, args: [{ isSignal: true, alias: "message", required: true }] }], duration: [{ type: i0.Input, args: [{ isSignal: true, alias: "duration", required: false }] }], actionLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "actionLabel", required: false }] }], action: [{ type: i0.Output, args: ["action"] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
130
130
|
|
|
131
|
+
const HERMES_TOAST_CONFIG = new InjectionToken('HERMES_TOAST_CONFIG', {
|
|
132
|
+
providedIn: 'root',
|
|
133
|
+
factory: () => ({}),
|
|
134
|
+
});
|
|
135
|
+
/**
|
|
136
|
+
* Configura a pilha de avisos do app (canto, sempre aberta, quantos visíveis). É o jeito de mexer na pilha que
|
|
137
|
+
* outro pacote monta, como a do `spine-layout`: `providers: [provideHermesToast({ position: 'bottom-end' })]`.
|
|
138
|
+
*/
|
|
139
|
+
function provideHermesToast(config) {
|
|
140
|
+
return { provide: HERMES_TOAST_CONFIG, useValue: config };
|
|
141
|
+
}
|
|
131
142
|
/**
|
|
132
143
|
* Fila única de avisos flutuantes do app. Quem desenha é o `hm-toast-stack` (montado uma vez, no
|
|
133
144
|
* layout); qualquer parte do app só chama `success`/`error`/... aqui.
|
|
@@ -198,25 +209,54 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
198
209
|
}], ctorParameters: () => [] });
|
|
199
210
|
|
|
200
211
|
/**
|
|
201
|
-
* Onde os avisos do `HermesToastService` aparecem: uma
|
|
202
|
-
* da linha. Monte uma vez, no layout do app (`<router-outlet /><hm-toast-stack />`).
|
|
212
|
+
* Onde os avisos do `HermesToastService` aparecem: uma pilha fixa num canto da tela (padrão: em cima, do lado do
|
|
213
|
+
* fim da linha). Monte uma vez, no layout do app (`<router-outlet /><hm-toast-stack />`).
|
|
203
214
|
*
|
|
204
|
-
* -
|
|
205
|
-
*
|
|
206
|
-
*
|
|
207
|
-
*
|
|
208
|
-
*
|
|
215
|
+
* - Recolhida (padrão), como cartas empilhadas: o mais novo na frente, encostado na borda; os anteriores espiam
|
|
216
|
+
* atrás dele, menores, só uma faixa de cada (no topo, por baixo; embaixo, por cima). Passam de `visibleToasts`
|
|
217
|
+
* (3): ficam escondidos, mas continuam na fila e reaparecem quando os da frente fecham.
|
|
218
|
+
* - Ponteiro ou foco na pilha a abrem: os visíveis inteiros, um depois do outro (no topo, para baixo; embaixo, para
|
|
219
|
+
* cima), e pausam todos os avisos; só quando os dois saem ela recolhe e a contagem continua de onde parou
|
|
220
|
+
* (WCAG 2.2.1). `expand` deixa sempre aberta (aí só ponteiro/foco pausam).
|
|
221
|
+
* - Os recolhidos atrás e os escondidos ficam `inert` e fora da árvore de acessibilidade: o Tab entra pelo da
|
|
222
|
+
* frente, o que já abre a pilha e libera os outros.
|
|
223
|
+
* - Fechar o aviso que tem o foco leva o foco ao aviso vizinho ou, se era o último, de volta para onde ele
|
|
224
|
+
* estava antes de entrar na pilha.
|
|
225
|
+
* - Não há região viva em volta: cada cartão já se anuncia pelo próprio papel, ao entrar (sempre na frente).
|
|
209
226
|
* - Montada mais de uma vez (o `spine-layout` já monta uma), só a primeira que continua na tela desenha:
|
|
210
227
|
* o aviso nunca aparece em dobro.
|
|
228
|
+
* - `position`, `expand` e `visibleToasts` vazios caem no `provideHermesToast()` (é por ele que se configura a
|
|
229
|
+
* pilha que outro pacote monta, como a do `spine-layout`).
|
|
211
230
|
*/
|
|
212
231
|
class ToastStackComponent {
|
|
213
232
|
#icons = useHermesIcons(TOAST_ICONS);
|
|
214
233
|
service = inject(HermesToastService);
|
|
215
234
|
stack = inject(ElementRef);
|
|
235
|
+
#config = inject(HERMES_TOAST_CONFIG);
|
|
236
|
+
/** Canto da tela. Vazio: o do `provideHermesToast()`, ou `'top-end'`. */
|
|
237
|
+
position = input(undefined, ...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
238
|
+
/** Sempre aberta (todos os visíveis inteiros), sem precisar de ponteiro/foco. Vazio: o do provider, ou `false`. */
|
|
239
|
+
expand = input(undefined, ...(ngDevMode ? [{ debugName: "expand" }] : /* istanbul ignore next */ []));
|
|
240
|
+
/** Quantos aparecem de cada vez; os outros esperam escondidos na fila. Vazio: o do provider, ou 3. */
|
|
241
|
+
visibleToasts = input(undefined, ...(ngDevMode ? [{ debugName: "visibleToasts" }] : /* istanbul ignore next */ []));
|
|
242
|
+
resolvedPosition = computed(() => this.position() ?? this.#config.position ?? 'top-end', ...(ngDevMode ? [{ debugName: "resolvedPosition" }] : /* istanbul ignore next */ []));
|
|
243
|
+
#interacting = signal(false, ...(ngDevMode ? [{ debugName: "#interacting" }] : /* istanbul ignore next */ []));
|
|
244
|
+
expanded = computed(() => (this.expand() ?? this.#config.expand ?? false) || this.#interacting(), ...(ngDevMode ? [{ debugName: "expanded" }] : /* istanbul ignore next */ []));
|
|
216
245
|
/** Só a pilha ativa desenha; as outras montadas ao mesmo tempo ficam vazias. */
|
|
217
246
|
visible = computed(() => (this.service.activeStack() === this ? this.service.toasts() : []), ...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
247
|
+
// Altura natural (px) de cada cartão, medida no navegador; os recolhidos atrás não são medidos (estão com a
|
|
248
|
+
// altura do da frente), ficam com a última medida.
|
|
249
|
+
#heights = signal(new Map(), ...(ngDevMode ? [{ debugName: "#heights" }] : /* istanbul ignore next */ []));
|
|
250
|
+
layout = computed(() => toastStackLayout(this.visible().map((t) => t.id), this.#heights(), { expanded: this.expanded(), visible: this.visibleToasts() ?? this.#config.visibleToasts ?? TOAST_STACK_VISIBLE }), ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
251
|
+
entries = computed(() => {
|
|
252
|
+
const byId = new Map(this.visible().map((t) => [t.id, t]));
|
|
253
|
+
return this.layout().slots.map((slot) => ({ slot, toast: byId.get(slot.id) }));
|
|
254
|
+
}, ...(ngDevMode ? [{ debugName: "entries" }] : /* istanbul ignore next */ []));
|
|
255
|
+
cards = viewChildren(ToastComponent, { ...(ngDevMode ? { debugName: "cards" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
218
256
|
constructor() {
|
|
219
257
|
inject(DestroyRef).onDestroy(this.service.attachStack(this));
|
|
258
|
+
if (isPlatformBrowser(inject(PLATFORM_ID)) && typeof ResizeObserver !== 'undefined')
|
|
259
|
+
this.#measure();
|
|
220
260
|
}
|
|
221
261
|
hovered = false;
|
|
222
262
|
focused = false;
|
|
@@ -267,9 +307,11 @@ class ToastStackComponent {
|
|
|
267
307
|
this.service.dismiss(id);
|
|
268
308
|
}
|
|
269
309
|
#moveFocusFrom(id) {
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
const
|
|
310
|
+
// Vizinho na ordem da tela (o de trás, que vai ocupar o lugar; senão o da frente), só entre os visíveis:
|
|
311
|
+
// o escondido ainda está `inert` neste instante.
|
|
312
|
+
const shown = this.layout().slots.filter((s) => !s.hidden);
|
|
313
|
+
const index = shown.findIndex((s) => s.id === id);
|
|
314
|
+
const neighbour = shown[index + 1] ?? shown[index - 1];
|
|
273
315
|
const target = neighbour ? this.#element(neighbour.id)?.querySelector('button') : null;
|
|
274
316
|
if (target) {
|
|
275
317
|
target.focus();
|
|
@@ -300,24 +342,73 @@ class ToastStackComponent {
|
|
|
300
342
|
if (want === this.paused)
|
|
301
343
|
return;
|
|
302
344
|
this.paused = want;
|
|
345
|
+
this.#interacting.set(want);
|
|
303
346
|
this.#hold.held.set(want);
|
|
304
347
|
if (want)
|
|
305
348
|
this.service.pause();
|
|
306
349
|
else
|
|
307
350
|
this.service.resume();
|
|
308
351
|
}
|
|
352
|
+
/** Observa a altura de cada cartão (entra/sai junto com a lista) para a pilha saber onde pôr cada um. */
|
|
353
|
+
#measure() {
|
|
354
|
+
const observed = new Set();
|
|
355
|
+
const observer = new ResizeObserver((records) => {
|
|
356
|
+
let next = null;
|
|
357
|
+
for (const { target } of records) {
|
|
358
|
+
const card = target;
|
|
359
|
+
const id = card.dataset['toastId'];
|
|
360
|
+
// Recolhido atrás está com a altura do da frente: não é a dele.
|
|
361
|
+
if (!id || !card.isConnected || card.dataset['toastState'] === 'behind')
|
|
362
|
+
continue;
|
|
363
|
+
const height = card.offsetHeight;
|
|
364
|
+
if (height === (next ?? this.#heights()).get(id))
|
|
365
|
+
continue;
|
|
366
|
+
next ??= new Map(this.#heights());
|
|
367
|
+
next.set(id, height);
|
|
368
|
+
}
|
|
369
|
+
if (next)
|
|
370
|
+
this.#heights.set(next);
|
|
371
|
+
});
|
|
372
|
+
afterRenderEffect(() => {
|
|
373
|
+
const cards = new Set(this.cards().map((ref) => ref.nativeElement));
|
|
374
|
+
for (const card of observed) {
|
|
375
|
+
if (cards.has(card))
|
|
376
|
+
continue;
|
|
377
|
+
observer.unobserve(card);
|
|
378
|
+
observed.delete(card);
|
|
379
|
+
}
|
|
380
|
+
for (const card of cards) {
|
|
381
|
+
if (observed.has(card))
|
|
382
|
+
continue;
|
|
383
|
+
observer.observe(card);
|
|
384
|
+
observed.add(card);
|
|
385
|
+
}
|
|
386
|
+
// Esquece a altura de quem saiu da fila.
|
|
387
|
+
const ids = new Set(this.visible().map((t) => t.id));
|
|
388
|
+
const heights = this.#heights();
|
|
389
|
+
if ([...heights.keys()].some((id) => !ids.has(id))) {
|
|
390
|
+
this.#heights.set(new Map([...heights].filter(([id]) => ids.has(id))));
|
|
391
|
+
}
|
|
392
|
+
});
|
|
393
|
+
inject(DestroyRef).onDestroy(() => observer.disconnect());
|
|
394
|
+
}
|
|
309
395
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: ToastStackComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
310
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ToastStackComponent, isStandalone: true, selector: "hm-toast-stack", host: { listeners: { "pointerenter": "onPointer(true)", "pointerleave": "onPointer(false)", "focusin": "onFocusIn($event)", "focusout": "onFocusOut($event)" }, classAttribute: "hm-toast-stack" }, ngImport: i0, template: `
|
|
311
|
-
@for (
|
|
396
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: ToastStackComponent, isStandalone: true, selector: "hm-toast-stack", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, expand: { classPropertyName: "expand", publicName: "expand", isSignal: true, isRequired: false, transformFunction: null }, visibleToasts: { classPropertyName: "visibleToasts", publicName: "visibleToasts", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "pointerenter": "onPointer(true)", "pointerleave": "onPointer(false)", "focusin": "onFocusIn($event)", "focusout": "onFocusOut($event)" }, properties: { "class.hm-toast-stack--expanded": "expanded()", "attr.data-position": "resolvedPosition()", "style.--hm-toast-count": "layout().count", "style.--hm-toast-front-height": "layout().frontHeight ? layout().frontHeight + \"px\" : null", "style.--hm-toast-visible-height": "layout().visibleHeight + \"px\"" }, classAttribute: "hm-toast-stack" }, viewQueries: [{ propertyName: "cards", predicate: ToastComponent, descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: `
|
|
397
|
+
@for (entry of entries(); track entry.slot.id) {
|
|
312
398
|
<hm-toast
|
|
313
|
-
[attr.data-toast-id]="
|
|
314
|
-
[
|
|
315
|
-
[
|
|
316
|
-
[
|
|
317
|
-
[
|
|
318
|
-
[
|
|
319
|
-
|
|
320
|
-
|
|
399
|
+
[attr.data-toast-id]="entry.slot.id"
|
|
400
|
+
[attr.data-toast-state]="entry.slot.hidden ? 'hidden' : entry.slot.behind ? 'behind' : null"
|
|
401
|
+
[attr.inert]="entry.slot.hidden || entry.slot.behind ? '' : null"
|
|
402
|
+
[attr.aria-hidden]="entry.slot.hidden || entry.slot.behind ? 'true' : null"
|
|
403
|
+
[style.--hm-toast-index]="entry.slot.hidden ? layout().count : entry.slot.index"
|
|
404
|
+
[style.--hm-toast-before]="entry.slot.before + 'px'"
|
|
405
|
+
[variant]="entry.toast.variant"
|
|
406
|
+
[title]="entry.toast.title"
|
|
407
|
+
[message]="entry.toast.message"
|
|
408
|
+
[duration]="fullDuration(entry.toast)"
|
|
409
|
+
[actionLabel]="entry.toast.action?.label ?? ''"
|
|
410
|
+
(action)="runAction(entry.toast)"
|
|
411
|
+
(closed)="dismiss(entry.toast.id)"
|
|
321
412
|
/>
|
|
322
413
|
}
|
|
323
414
|
`, isInline: true, dependencies: [{ kind: "component", type: ToastComponent, selector: "hm-toast", inputs: ["variant", "title", "message", "duration", "actionLabel"], outputs: ["action", "closed"] }], viewProviders: [ToastHold], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
@@ -328,16 +419,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
328
419
|
selector: 'hm-toast-stack',
|
|
329
420
|
imports: [ToastComponent],
|
|
330
421
|
template: `
|
|
331
|
-
@for (
|
|
422
|
+
@for (entry of entries(); track entry.slot.id) {
|
|
332
423
|
<hm-toast
|
|
333
|
-
[attr.data-toast-id]="
|
|
334
|
-
[
|
|
335
|
-
[
|
|
336
|
-
[
|
|
337
|
-
[
|
|
338
|
-
[
|
|
339
|
-
|
|
340
|
-
|
|
424
|
+
[attr.data-toast-id]="entry.slot.id"
|
|
425
|
+
[attr.data-toast-state]="entry.slot.hidden ? 'hidden' : entry.slot.behind ? 'behind' : null"
|
|
426
|
+
[attr.inert]="entry.slot.hidden || entry.slot.behind ? '' : null"
|
|
427
|
+
[attr.aria-hidden]="entry.slot.hidden || entry.slot.behind ? 'true' : null"
|
|
428
|
+
[style.--hm-toast-index]="entry.slot.hidden ? layout().count : entry.slot.index"
|
|
429
|
+
[style.--hm-toast-before]="entry.slot.before + 'px'"
|
|
430
|
+
[variant]="entry.toast.variant"
|
|
431
|
+
[title]="entry.toast.title"
|
|
432
|
+
[message]="entry.toast.message"
|
|
433
|
+
[duration]="fullDuration(entry.toast)"
|
|
434
|
+
[actionLabel]="entry.toast.action?.label ?? ''"
|
|
435
|
+
(action)="runAction(entry.toast)"
|
|
436
|
+
(closed)="dismiss(entry.toast.id)"
|
|
341
437
|
/>
|
|
342
438
|
}
|
|
343
439
|
`,
|
|
@@ -345,13 +441,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
345
441
|
viewProviders: [ToastHold],
|
|
346
442
|
host: {
|
|
347
443
|
class: 'hm-toast-stack',
|
|
444
|
+
'[class.hm-toast-stack--expanded]': 'expanded()',
|
|
445
|
+
'[attr.data-position]': 'resolvedPosition()',
|
|
446
|
+
'[style.--hm-toast-count]': 'layout().count',
|
|
447
|
+
'[style.--hm-toast-front-height]': 'layout().frontHeight ? layout().frontHeight + "px" : null',
|
|
448
|
+
'[style.--hm-toast-visible-height]': 'layout().visibleHeight + "px"',
|
|
348
449
|
'(pointerenter)': 'onPointer(true)',
|
|
349
450
|
'(pointerleave)': 'onPointer(false)',
|
|
350
451
|
'(focusin)': 'onFocusIn($event)',
|
|
351
452
|
'(focusout)': 'onFocusOut($event)',
|
|
352
453
|
},
|
|
353
454
|
}]
|
|
354
|
-
}], ctorParameters: () => [] });
|
|
455
|
+
}], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], expand: [{ type: i0.Input, args: [{ isSignal: true, alias: "expand", required: false }] }], visibleToasts: [{ type: i0.Input, args: [{ isSignal: true, alias: "visibleToasts", required: false }] }], cards: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => ToastComponent), { ...{ read: ElementRef }, isSignal: true }] }] } });
|
|
355
456
|
|
|
356
457
|
// Ponto de import `@trismegisto/angular/toast` (secundário do ng-packagr): o que o public-api e as outras pastas usam
|
|
357
458
|
// daqui. Gerado em 2026-10-03; ao criar arquivo público novo na pasta, acrescente a linha.
|
|
@@ -360,5 +461,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
360
461
|
* Generated bundle index. Do not edit.
|
|
361
462
|
*/
|
|
362
463
|
|
|
363
|
-
export { HermesToastService, ToastComponent, ToastStackComponent };
|
|
464
|
+
export { HERMES_TOAST_CONFIG, HermesToastService, ToastComponent, ToastStackComponent, provideHermesToast };
|
|
364
465
|
//# sourceMappingURL=trismegisto-angular-toast.mjs.map
|