@trismegisto/angular 3.3.3 → 3.3.5
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-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.mjs +229 -44
- package/fesm2022/trismegisto-angular-workspace.mjs.map +1 -1
- package/fesm2022/trismegisto-angular.mjs +116 -6
- 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-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.d.ts +79 -7
- package/types/trismegisto-angular-workspace.d.ts.map +1 -1
- package/types/trismegisto-angular.d.ts +119 -9
- package/types/trismegisto-angular.d.ts.map +1 -1
|
@@ -1,19 +1,35 @@
|
|
|
1
1
|
import { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { input, booleanAttribute, output, inject, PLATFORM_ID, ElementRef, computed, viewChild,
|
|
4
|
-
import { MIN_SPLIT_RATIO, MAX_SPLIT_RATIO, cyclicPanelNeighbor, panelIdsInOrder, findPanelContainingTab, workspaceKeyAction, TAB_DRAG_TYPE, dropZone,
|
|
3
|
+
import { signal, input, booleanAttribute, output, inject, PLATFORM_ID, ElementRef, computed, viewChild, effect, DestroyRef, afterNextRender, ChangeDetectionStrategy, Component, contentChild, untracked } from '@angular/core';
|
|
4
|
+
import { MIN_SPLIT_RATIO, MAX_SPLIT_RATIO, formatMessage, canSplitPanel, pluralMessage, cyclicPanelNeighbor, panelIdsInOrder, findPanelContainingTab, workspaceKeyAction, TAB_DRAG_TYPE, dropZone, dropZoneDirection, dragAnnouncementText, createWorkspaceStore } from '@trismegisto/primitives';
|
|
5
5
|
import { HERMES_MESSAGES } from '@trismegisto/angular/i18n';
|
|
6
6
|
import { MenuComponent } from '@trismegisto/angular/menu';
|
|
7
|
+
import { MenuButtonComponent } from '@trismegisto/angular/menu-button';
|
|
8
|
+
import { ICON_ARROW, ICON_ARROW_LR, ICON_GRID_LAYOUT, ICON_NODE, ICON_PANEL_CENTER, ICON_PANEL_SPLIT, ICON_TIMES, ICON_WINDOW_RESTORE, useHermesIcons, IconComponent } from '@trismegisto/angular/icon';
|
|
7
9
|
import { SplitterComponent } from '@trismegisto/angular/splitter';
|
|
8
10
|
import { TabBarComponent } from '@trismegisto/angular/tab-bar';
|
|
9
11
|
import { HermesDragDropService } from '@trismegisto/angular/drag-drop';
|
|
10
|
-
import { ICON_NODE, useHermesIcons } from '@trismegisto/angular/icon';
|
|
11
12
|
|
|
12
|
-
const WORKSPACE_ICONS = [ICON_NODE];
|
|
13
|
+
const WORKSPACE_ICONS = [ICON_ARROW, ICON_ARROW_LR, ICON_GRID_LAYOUT, ICON_NODE, ICON_PANEL_CENTER, ICON_PANEL_SPLIT, ICON_TIMES, ICON_WINDOW_RESTORE];
|
|
13
14
|
|
|
14
15
|
let splitSequence = 0;
|
|
15
16
|
/** As 5 regiões de soltura de um painel; a posição no serviço de arrastar e soltar é o índice nesta lista. */
|
|
16
17
|
const DROP_REGIONS = ['center', 'left', 'right', 'top', 'bottom'];
|
|
18
|
+
/** Ordem dos botões da bússola no documento (o desenho é de grade: cima, esquerda, centro, direita, baixo). */
|
|
19
|
+
const COMPASS_REGIONS = ['top', 'left', 'center', 'right', 'bottom'];
|
|
20
|
+
/** Painel de cada área de trabalho (pelo store) sob o ponteiro durante um arrasto de aba: a bússola aparece nele, mesmo
|
|
21
|
+
* fora dos botões (onde, no próprio painel da aba, soltar não faz nada e o serviço o trata como "fora"). */
|
|
22
|
+
const hoveredPanels = new WeakMap();
|
|
23
|
+
function hoveredPanelOf(store) {
|
|
24
|
+
let hovered = hoveredPanels.get(store);
|
|
25
|
+
if (!hovered) {
|
|
26
|
+
hovered = signal(null);
|
|
27
|
+
hoveredPanels.set(store, hovered);
|
|
28
|
+
}
|
|
29
|
+
return hovered;
|
|
30
|
+
}
|
|
31
|
+
/** O ícone `panel-split` mostra a metade de cima; as outras são ele girado. */
|
|
32
|
+
const COMPASS_DIRECTIONS = { top: '', bottom: 'down', left: 'left', right: 'right', center: '' };
|
|
17
33
|
/**
|
|
18
34
|
* Um nó da árvore do `hm-workspace`: ou é um painel-folha (fileira de abas + conteúdo projetado),
|
|
19
35
|
* ou é uma divisão (dois nós filhos dentro de um `hm-splitter`) — recursivo, se renderiza a
|
|
@@ -25,11 +41,18 @@ class WorkspaceNodeComponent {
|
|
|
25
41
|
node = input.required(...(ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []));
|
|
26
42
|
path = input([], ...(ngDevMode ? [{ debugName: "path" }] : /* istanbul ignore next */ []));
|
|
27
43
|
store = input.required(...(ngDevMode ? [{ debugName: "store" }] : /* istanbul ignore next */ []));
|
|
44
|
+
/** A árvore inteira (a raiz): o limite da grade é sobre ela, não sobre este nó. */
|
|
45
|
+
tree = input.required(...(ngDevMode ? [{ debugName: "tree" }] : /* istanbul ignore next */ []));
|
|
28
46
|
focusedPanelId = input.required(...(ngDevMode ? [{ debugName: "focusedPanelId" }] : /* istanbul ignore next */ []));
|
|
29
47
|
panelLabels = input.required(...(ngDevMode ? [{ debugName: "panelLabels" }] : /* istanbul ignore next */ []));
|
|
30
48
|
contentTemplate = input.required(...(ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
31
49
|
/** Ver `hm-workspace`: mantém as abas inativas montadas, escondidas. */
|
|
32
50
|
keepAlive = input(false, { ...(ngDevMode ? { debugName: "keepAlive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
51
|
+
/** Ver `hm-workspace`: `false` = nenhum caminho divide nem move aba entre painéis. */
|
|
52
|
+
split = input(true, { ...(ngDevMode ? { debugName: "split" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
53
|
+
/** Ver `hm-workspace`: limite de painéis lado a lado / empilhados (`null` = sem limite). */
|
|
54
|
+
maxColumns = input(null, ...(ngDevMode ? [{ debugName: "maxColumns" }] : /* istanbul ignore next */ []));
|
|
55
|
+
maxRows = input(null, ...(ngDevMode ? [{ debugName: "maxRows" }] : /* istanbul ignore next */ []));
|
|
33
56
|
/** O `+` de algum painel (não importa quão fundo na árvore) — borbulha até a raiz. O motor não
|
|
34
57
|
* sabe o que uma aba nova deveria conter (apresentacional, como o resto da base); quem consome
|
|
35
58
|
* decide via `store().openTab(panelId, novaAba)`. */
|
|
@@ -64,6 +87,8 @@ class WorkspaceNodeComponent {
|
|
|
64
87
|
}, ...(ngDevMode ? [{ debugName: "activeTab" }] : /* istanbul ignore next */ []));
|
|
65
88
|
contentRegionId = computed(() => `hm-workspace-content-${this.leaf()?.id ?? ''}`, ...(ngDevMode ? [{ debugName: "contentRegionId" }] : /* istanbul ignore next */ []));
|
|
66
89
|
panelLabel = computed(() => this.panelLabels().get(this.leaf()?.id ?? '') ?? '', ...(ngDevMode ? [{ debugName: "panelLabel" }] : /* istanbul ignore next */ []));
|
|
90
|
+
/** Nome do botão de painéis: "Painéis" com o nome do painel (vários painéis = vários botões iguais na tela). */
|
|
91
|
+
panelMenuLabel = computed(() => formatMessage(this.text.panelMenu, { panel: this.panelLabel() }), ...(ngDevMode ? [{ debugName: "panelMenuLabel" }] : /* istanbul ignore next */ []));
|
|
67
92
|
contentEl = viewChild('contentEl', ...(ngDevMode ? [{ debugName: "contentEl" }] : /* istanbul ignore next */ []));
|
|
68
93
|
// ---------------------------------------------------------------- menu de contexto (§4: o
|
|
69
94
|
// caminho de dividir/fechar que não depende de arrasto — funciona em qualquer input, inclusive
|
|
@@ -71,20 +96,87 @@ class WorkspaceNodeComponent {
|
|
|
71
96
|
menuAnchor = signal(null, ...(ngDevMode ? [{ debugName: "menuAnchor" }] : /* istanbul ignore next */ []));
|
|
72
97
|
menuTabId = signal('', ...(ngDevMode ? [{ debugName: "menuTabId" }] : /* istanbul ignore next */ []));
|
|
73
98
|
menuItems = computed(() => {
|
|
99
|
+
// Sem divisão, todos os itens deste menu são de painel: não há o que oferecer.
|
|
100
|
+
if (!this.split())
|
|
101
|
+
return [];
|
|
102
|
+
const single = this.panelLabels().size <= 1;
|
|
74
103
|
const items = [
|
|
75
|
-
|
|
76
|
-
|
|
104
|
+
this.splitItem('split-right', this.text.splitRight, 'row'),
|
|
105
|
+
this.splitItem('split-down', this.text.splitDown, 'column'),
|
|
77
106
|
];
|
|
78
107
|
// Só faz sentido "mover pra outro painel" havendo outro painel — com um só, o item não teria
|
|
79
108
|
// destino. Caminho sem arrasto pra `moveTab` (zone 'center'), exigido pela definição de pronto
|
|
80
109
|
// do handoff (§11: teclado/menu cobrem a MESMA operação que o arrasto, "mover aba", não só
|
|
81
110
|
// dividir/fechar).
|
|
82
|
-
if (
|
|
111
|
+
if (!single)
|
|
83
112
|
items.push({ id: 'move-to-other-panel', label: this.text.moveToOtherPanel, separatorAbove: true });
|
|
84
|
-
items.push({
|
|
113
|
+
items.push({
|
|
114
|
+
id: 'close-panel', label: this.text.closePanel, separatorAbove: true, danger: true,
|
|
115
|
+
...(single ? { disabled: true, description: this.text.singlePanel } : {}),
|
|
116
|
+
});
|
|
85
117
|
return items;
|
|
86
118
|
}, ...(ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []));
|
|
119
|
+
/** Menu do botão no fim da fileira de abas (com a divisão ligada): dividir, juntar e fechar o painel. */
|
|
120
|
+
panelMenuItems = computed(() => {
|
|
121
|
+
const single = this.panelLabels().size <= 1;
|
|
122
|
+
return [
|
|
123
|
+
this.splitItem('split-beside', this.text.splitBeside, 'row', 'arrow-lr'),
|
|
124
|
+
this.splitItem('split-below', this.text.splitDown, 'column', 'arrow-bottom'),
|
|
125
|
+
{
|
|
126
|
+
id: 'merge-panels', label: this.text.mergePanels, icon: 'window-restore', separatorAbove: true,
|
|
127
|
+
...(single ? { disabled: true, description: this.text.singlePanel } : {}),
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
id: 'close-this-panel', label: this.text.closeThisPanel, icon: 'times', separatorAbove: true, danger: true,
|
|
131
|
+
description: single ? this.text.singlePanel : this.text.closeThisPanelHint,
|
|
132
|
+
...(single ? { disabled: true } : {}),
|
|
133
|
+
},
|
|
134
|
+
];
|
|
135
|
+
}, ...(ngDevMode ? [{ debugName: "panelMenuItems" }] : /* istanbul ignore next */ []));
|
|
136
|
+
/** Item de dividir: desabilitado, com o motivo, quando a divisão estouraria o limite da grade. */
|
|
137
|
+
splitItem(id, label, direction, icon) {
|
|
138
|
+
const reason = this.splitBlockedReason(direction);
|
|
139
|
+
return { id, label, ...(icon ? { icon } : {}), ...(reason ? { disabled: true, description: reason } : {}) };
|
|
140
|
+
}
|
|
141
|
+
limits = computed(() => ({ maxColumns: this.maxColumns(), maxRows: this.maxRows() }), ...(ngDevMode ? [{ debugName: "limits" }] : /* istanbul ignore next */ []));
|
|
142
|
+
/** Dividir este painel em `direction` cabe no limite? Com `movingTabId`, a aba arrastada pode esvaziar a origem. */
|
|
143
|
+
canSplit(direction, movingTabId) {
|
|
144
|
+
const leaf = this.leaf();
|
|
145
|
+
return !!leaf && canSplitPanel(this.tree(), leaf.id, direction, this.limits(), movingTabId);
|
|
146
|
+
}
|
|
147
|
+
/** Por que não dá para dividir em `direction` (vazio = dá). */
|
|
148
|
+
splitBlockedReason(direction) {
|
|
149
|
+
if (this.canSplit(direction))
|
|
150
|
+
return '';
|
|
151
|
+
const locale = this.catalog.meta.locale;
|
|
152
|
+
return direction === 'row'
|
|
153
|
+
? pluralMessage(this.text.columnLimit, this.maxColumns() ?? 0, locale)
|
|
154
|
+
: pluralMessage(this.text.rowLimit, this.maxRows() ?? 0, locale);
|
|
155
|
+
}
|
|
156
|
+
choosePanelAction(action) {
|
|
157
|
+
const leaf = this.leaf();
|
|
158
|
+
if (!leaf || !this.split())
|
|
159
|
+
return;
|
|
160
|
+
switch (action) {
|
|
161
|
+
case 'split-beside':
|
|
162
|
+
if (this.canSplit('row'))
|
|
163
|
+
this.splitInDirection(leaf, leaf.tabs.activeId, 'row');
|
|
164
|
+
break;
|
|
165
|
+
case 'split-below':
|
|
166
|
+
if (this.canSplit('column'))
|
|
167
|
+
this.splitInDirection(leaf, leaf.tabs.activeId, 'column');
|
|
168
|
+
break;
|
|
169
|
+
case 'merge-panels':
|
|
170
|
+
this.store().mergePanels(leaf.id);
|
|
171
|
+
break;
|
|
172
|
+
case 'close-this-panel':
|
|
173
|
+
this.store().closePanel(leaf.id);
|
|
174
|
+
break;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
87
177
|
openTabMenu(event) {
|
|
178
|
+
if (this.menuItems().length === 0)
|
|
179
|
+
return;
|
|
88
180
|
this.menuTabId.set(event.id);
|
|
89
181
|
this.menuAnchor.set(event.anchor);
|
|
90
182
|
}
|
|
@@ -108,15 +200,17 @@ class WorkspaceNodeComponent {
|
|
|
108
200
|
}
|
|
109
201
|
chooseMenuAction(action) {
|
|
110
202
|
const leaf = this.leaf();
|
|
111
|
-
if (!leaf)
|
|
203
|
+
if (!leaf || !this.split())
|
|
112
204
|
return;
|
|
113
205
|
const tabId = this.menuTabId();
|
|
114
206
|
switch (action) {
|
|
115
207
|
case 'split-right':
|
|
116
|
-
this.
|
|
208
|
+
if (this.canSplit('row'))
|
|
209
|
+
this.splitInDirection(leaf, tabId, 'row');
|
|
117
210
|
break;
|
|
118
211
|
case 'split-down':
|
|
119
|
-
this.
|
|
212
|
+
if (this.canSplit('column'))
|
|
213
|
+
this.splitInDirection(leaf, tabId, 'column');
|
|
120
214
|
break;
|
|
121
215
|
case 'move-to-other-panel': {
|
|
122
216
|
const neighbor = cyclicPanelNeighbor(panelIdsInOrder(this.store().getState().root), leaf.id, 1);
|
|
@@ -150,6 +244,8 @@ class WorkspaceNodeComponent {
|
|
|
150
244
|
const leaf = this.leaf();
|
|
151
245
|
if (!leaf)
|
|
152
246
|
return;
|
|
247
|
+
if (!this.split())
|
|
248
|
+
return;
|
|
153
249
|
const from = findPanelContainingTab(this.store().getState().root, event.id);
|
|
154
250
|
if (from && from !== leaf.id)
|
|
155
251
|
this.store().moveTab(event.id, from, leaf.id, 'center', event.index);
|
|
@@ -165,7 +261,8 @@ class WorkspaceNodeComponent {
|
|
|
165
261
|
if (!leaf)
|
|
166
262
|
return;
|
|
167
263
|
const action = workspaceKeyAction(event, panelIdsInOrder(this.store().getState().root), leaf.id);
|
|
168
|
-
|
|
264
|
+
// Sem divisão, só trocar o foco entre painéis (de uma árvore que já veio dividida) continua valendo.
|
|
265
|
+
if (!action || (!this.split() && action.type !== 'focus-panel'))
|
|
169
266
|
return;
|
|
170
267
|
event.preventDefault();
|
|
171
268
|
switch (action.type) {
|
|
@@ -178,7 +275,8 @@ class WorkspaceNodeComponent {
|
|
|
178
275
|
this.focusPanelTab(action.panelId);
|
|
179
276
|
break;
|
|
180
277
|
case 'split-panel':
|
|
181
|
-
this.
|
|
278
|
+
if (this.canSplit(action.direction))
|
|
279
|
+
this.splitInDirection(leaf, leaf.tabs.activeId, action.direction);
|
|
182
280
|
break;
|
|
183
281
|
case 'close-panel':
|
|
184
282
|
this.store().closePanel(leaf.id);
|
|
@@ -200,12 +298,35 @@ class WorkspaceNodeComponent {
|
|
|
200
298
|
// ---------------------------------------------------------------- arrastar aba pra outro painel
|
|
201
299
|
// (§6.1). Serviço de arrastar e soltar da lib (Pointer Events: mouse, caneta, toque com toque longo; e
|
|
202
300
|
// teclado com anúncios). A aba é pega no `hm-tab-bar` (item do tipo `TAB_DRAG_TYPE`); cada painel é uma
|
|
203
|
-
// zona com posições próprias — as 5 regiões (`DROP_REGIONS`)
|
|
204
|
-
//
|
|
205
|
-
//
|
|
206
|
-
//
|
|
207
|
-
//
|
|
301
|
+
// zona com posições próprias — as 5 regiões (`DROP_REGIONS`). Com a aba sobre o painel aparece a BÚSSOLA no meio
|
|
302
|
+
// dele: cinco botões (cima, esquerda, centro, direita, baixo), cada um com o desenho da parte do painel que a aba vai
|
|
303
|
+
// ocupar; soltar num botão de borda divide naquela direção, e no centro (ou em qualquer outro ponto do painel) leva a
|
|
304
|
+
// aba para dentro dele. A prévia (`data-drop-zone`) pinta a área que a aba vai ocupar. Borda que estouraria o limite
|
|
305
|
+
// da grade (`maxColumns`/`maxRows`) fica desabilitada na bússola. A fileira de abas de cada painel é uma zona mais
|
|
306
|
+
// interna (vence no sobrevoo) com o mesmo `tabGroup` (o store): soltar nela põe a aba naquela posição exata
|
|
307
|
+
// (`receiveTab`). Teclado (aba pega com Ctrl+Espaço): no painel, as setas escolhem o botão da bússola; a seta oposta
|
|
308
|
+
// volta ao centro; repetir a seta da borda (ou uma borda desabilitada) passa para a zona seguinte/anterior.
|
|
208
309
|
dropIndicator = signal(null, ...(ngDevMode ? [{ debugName: "dropIndicator" }] : /* istanbul ignore next */ []));
|
|
310
|
+
/** Uma aba deste store está em arrasto (o painel a aceita). */
|
|
311
|
+
dragActive = signal(false, ...(ngDevMode ? [{ debugName: "dragActive" }] : /* istanbul ignore next */ []));
|
|
312
|
+
/** O painel é o destino atual do arrasto (ponteiro ou teclado). */
|
|
313
|
+
dragOver = signal(false, ...(ngDevMode ? [{ debugName: "dragOver" }] : /* istanbul ignore next */ []));
|
|
314
|
+
hoveredPanel = computed(() => hoveredPanelOf(this.store()), ...(ngDevMode ? [{ debugName: "hoveredPanel" }] : /* istanbul ignore next */ []));
|
|
315
|
+
/** A aba em arrasto (registrada quando o serviço pergunta se o painel aceita). */
|
|
316
|
+
draggedTabId = signal(null, ...(ngDevMode ? [{ debugName: "draggedTabId" }] : /* istanbul ignore next */ []));
|
|
317
|
+
compassRegions = COMPASS_REGIONS;
|
|
318
|
+
/** A bússola aparece no painel sob a aba arrastada (ou escolhido pelo teclado). */
|
|
319
|
+
compassVisible = computed(() => {
|
|
320
|
+
const leaf = this.leaf();
|
|
321
|
+
return this.split() && !!leaf && this.dragActive() && (this.dragOver() || this.hoveredPanel()() === leaf.id);
|
|
322
|
+
}, ...(ngDevMode ? [{ debugName: "compassVisible" }] : /* istanbul ignore next */ []));
|
|
323
|
+
/** O ícone de cada botão e o giro dele. */
|
|
324
|
+
compassIcon(region) {
|
|
325
|
+
return region === 'center' ? 'panel-center' : 'panel-split';
|
|
326
|
+
}
|
|
327
|
+
compassDirection(region) {
|
|
328
|
+
return COMPASS_DIRECTIONS[region];
|
|
329
|
+
}
|
|
209
330
|
panelHost = viewChild('panelEl', ...(ngDevMode ? [{ debugName: "panelHost" }] : /* istanbul ignore next */ []));
|
|
210
331
|
catalog = inject(HERMES_MESSAGES);
|
|
211
332
|
/** O painel como zona do serviço (só folha; numa divisão fica desligada). */
|
|
@@ -246,11 +367,14 @@ class WorkspaceNodeComponent {
|
|
|
246
367
|
});
|
|
247
368
|
}
|
|
248
369
|
handleDragOver(event, panelEl) {
|
|
249
|
-
if (!event.dataTransfer?.types.includes(TAB_DRAG_TYPE))
|
|
370
|
+
if (!this.split() || !event.dataTransfer?.types.includes(TAB_DRAG_TYPE))
|
|
250
371
|
return;
|
|
251
372
|
event.preventDefault();
|
|
252
373
|
event.stopPropagation();
|
|
253
|
-
|
|
374
|
+
// O arrasto nativo não diz qual aba é antes de soltar: borda que estouraria o limite vira centro.
|
|
375
|
+
const zone = dropZone(panelEl.getBoundingClientRect(), event.clientX, event.clientY);
|
|
376
|
+
const direction = dropZoneDirection(zone);
|
|
377
|
+
this.dropIndicator.set(direction && !this.canSplit(direction) ? 'center' : zone);
|
|
254
378
|
}
|
|
255
379
|
handleDragLeave(event, panelEl) {
|
|
256
380
|
const to = event.relatedTarget;
|
|
@@ -263,13 +387,16 @@ class WorkspaceNodeComponent {
|
|
|
263
387
|
const zone = this.dropIndicator();
|
|
264
388
|
this.dropIndicator.set(null);
|
|
265
389
|
const leaf = this.leaf();
|
|
266
|
-
if (!tabId || !zone || !leaf)
|
|
390
|
+
if (!tabId || !zone || !leaf || !this.split())
|
|
267
391
|
return;
|
|
268
392
|
event.preventDefault();
|
|
269
393
|
event.stopPropagation();
|
|
270
394
|
const fromPanelId = findPanelContainingTab(this.store().getState().root, tabId);
|
|
271
395
|
if (!fromPanelId)
|
|
272
396
|
return;
|
|
397
|
+
const direction = dropZoneDirection(zone);
|
|
398
|
+
if (direction && !this.canSplit(direction, tabId))
|
|
399
|
+
return;
|
|
273
400
|
this.store().moveTab(tabId, fromPanelId, leaf.id, zone);
|
|
274
401
|
}
|
|
275
402
|
// ---------------------------------------------------------------- zona do serviço (5 regiões)
|
|
@@ -285,20 +412,48 @@ class WorkspaceNodeComponent {
|
|
|
285
412
|
const id = this.tabIdOf(item);
|
|
286
413
|
return !!id && !!this.leaf()?.tabs.tabs.some((t) => t.id === id);
|
|
287
414
|
}
|
|
415
|
+
/** A região leva a algum lugar para a aba arrastada: o centro, se ela não é deste painel; a borda, se a divisão cabe
|
|
416
|
+
* no limite (e, sendo a aba deste painel, se sobra outra aba nele). */
|
|
417
|
+
regionAllowed(region, tabId = this.draggedTabId()) {
|
|
418
|
+
const leaf = this.leaf();
|
|
419
|
+
if (!leaf || !tabId)
|
|
420
|
+
return false;
|
|
421
|
+
const here = leaf.tabs.tabs.some((t) => t.id === tabId);
|
|
422
|
+
const direction = dropZoneDirection(region);
|
|
423
|
+
if (!direction)
|
|
424
|
+
return !here;
|
|
425
|
+
if (here && leaf.tabs.tabs.length <= 1)
|
|
426
|
+
return false;
|
|
427
|
+
return this.canSplit(direction, tabId);
|
|
428
|
+
}
|
|
429
|
+
/** O botão da bússola sob o ponto (ou `null` fora deles). */
|
|
430
|
+
compassRegionAt(point) {
|
|
431
|
+
const buttons = this.panelHost()?.nativeElement.querySelectorAll('[data-hm-compass-region]') ?? [];
|
|
432
|
+
for (const button of Array.from(buttons)) {
|
|
433
|
+
const r = button.getBoundingClientRect();
|
|
434
|
+
if (r.width > 0 && point.x >= r.left && point.x <= r.right && point.y >= r.top && point.y <= r.bottom) {
|
|
435
|
+
return button.dataset['hmCompassRegion'];
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
return null;
|
|
439
|
+
}
|
|
288
440
|
regionLabel(region) {
|
|
289
441
|
const t = this.catalog.workspace;
|
|
290
442
|
const templates = { center: '{panel}', left: t.dropLeft, right: t.dropRight, top: t.dropTop, bottom: t.dropBottom };
|
|
291
443
|
return formatMessage(templates[region], { panel: this.panelLabel() });
|
|
292
444
|
}
|
|
293
|
-
/** Teclado dentro do painel: seta = borda; oposta = centro; repetir a da borda = sair
|
|
294
|
-
regionStep(index, key) {
|
|
445
|
+
/** Teclado dentro do painel: seta = borda; oposta = centro; repetir a da borda (ou ir a uma desabilitada) = sair. */
|
|
446
|
+
regionStep(item, index, key) {
|
|
295
447
|
const region = DROP_REGIONS[index] ?? 'center';
|
|
296
448
|
const byKey = { ArrowLeft: 'left', ArrowRight: 'right', ArrowUp: 'top', ArrowDown: 'bottom' };
|
|
297
449
|
const wanted = byKey[key];
|
|
298
450
|
if (!wanted || region === wanted)
|
|
299
451
|
return null;
|
|
300
452
|
const opposite = { left: 'right', right: 'left', top: 'bottom', bottom: 'top', center: 'center' };
|
|
301
|
-
|
|
453
|
+
const next = opposite[wanted] === region ? 'center' : wanted;
|
|
454
|
+
if (next !== 'center' && !this.regionAllowed(next, this.tabIdOf(item)))
|
|
455
|
+
return null;
|
|
456
|
+
return DROP_REGIONS.indexOf(next);
|
|
302
457
|
}
|
|
303
458
|
createPanelTarget() {
|
|
304
459
|
// eslint-disable-next-line @typescript-eslint/no-this-alias
|
|
@@ -308,10 +463,13 @@ class WorkspaceNodeComponent {
|
|
|
308
463
|
return node.panelHost()?.nativeElement ?? node.host.nativeElement;
|
|
309
464
|
},
|
|
310
465
|
label: () => this.panelLabel(),
|
|
311
|
-
|
|
466
|
+
// Sem divisão o painel não é zona de soltura: a aba só se move dentro da própria fileira.
|
|
467
|
+
disabled: () => !this.split() || !this.leaf() || !this.panelHost(),
|
|
312
468
|
accepts: (item) => {
|
|
313
|
-
|
|
469
|
+
const tabId = this.tabIdOf(item);
|
|
470
|
+
if (!tabId)
|
|
314
471
|
return false;
|
|
472
|
+
this.draggedTabId.set(tabId);
|
|
315
473
|
// A única aba do próprio painel não tem para onde ir dentro dele.
|
|
316
474
|
return !(this.fromHere(item) && (this.leaf()?.tabs.tabs.length ?? 0) <= 1);
|
|
317
475
|
},
|
|
@@ -319,18 +477,26 @@ class WorkspaceNodeComponent {
|
|
|
319
477
|
columns: () => 1,
|
|
320
478
|
items: () => [],
|
|
321
479
|
placeholderTemplate: () => null,
|
|
322
|
-
setState: () =>
|
|
480
|
+
setState: (active, over) => {
|
|
481
|
+
this.dragActive.set(active);
|
|
482
|
+
this.dragOver.set(active && over);
|
|
483
|
+
if (!active) {
|
|
484
|
+
this.draggedTabId.set(null);
|
|
485
|
+
this.hoveredPanel().set(null);
|
|
486
|
+
}
|
|
487
|
+
},
|
|
323
488
|
pointerIndex: (item, point) => {
|
|
324
|
-
const
|
|
325
|
-
if (!
|
|
326
|
-
return null;
|
|
327
|
-
const region = dropZone(el.getBoundingClientRect(), point.x, point.y);
|
|
328
|
-
// Centro do próprio painel: soltar ali não muda nada — conta como "fora".
|
|
329
|
-
if (region === 'center' && this.fromHere(item))
|
|
489
|
+
const leaf = this.leaf();
|
|
490
|
+
if (!this.panelHost() || !leaf)
|
|
330
491
|
return null;
|
|
331
|
-
|
|
492
|
+
this.hoveredPanel().set(leaf.id);
|
|
493
|
+
const tabId = this.tabIdOf(item);
|
|
494
|
+
// Sobre um botão da bússola: a região dele (desabilitado = nada). Fora deles: o centro (mover para cá) — que no
|
|
495
|
+
// próprio painel não muda nada e conta como "fora".
|
|
496
|
+
const region = this.compassRegionAt(point) ?? 'center';
|
|
497
|
+
return this.regionAllowed(region, tabId) ? DROP_REGIONS.indexOf(region) : null;
|
|
332
498
|
},
|
|
333
|
-
keyboardIndex: (
|
|
499
|
+
keyboardIndex: (item, index, key) => this.regionStep(item, index, key),
|
|
334
500
|
announcement: (kind, item, index) => kind === 'grabbed'
|
|
335
501
|
? null
|
|
336
502
|
: dragAnnouncementText({ kind, label: item.label(), zone: this.regionLabel(DROP_REGIONS[index] ?? 'center') }, this.catalog.dragDrop),
|
|
@@ -339,27 +505,27 @@ class WorkspaceNodeComponent {
|
|
|
339
505
|
const leaf = this.leaf();
|
|
340
506
|
const tabId = this.tabIdOf(item);
|
|
341
507
|
const region = DROP_REGIONS[index] ?? 'center';
|
|
342
|
-
if (!leaf || !tabId)
|
|
508
|
+
if (!leaf || !tabId || !this.split())
|
|
343
509
|
return;
|
|
344
510
|
const from = findPanelContainingTab(this.store().getState().root, tabId);
|
|
345
|
-
if (!from || (from === leaf.id && region === 'center'))
|
|
511
|
+
if (!from || (from === leaf.id && region === 'center') || !this.regionAllowed(region, tabId))
|
|
346
512
|
return;
|
|
347
513
|
this.store().moveTab(tabId, from, leaf.id, region);
|
|
348
514
|
},
|
|
349
515
|
};
|
|
350
516
|
}
|
|
351
517
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: WorkspaceNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
352
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: WorkspaceNodeComponent, isStandalone: true, selector: "hm-workspace-node", inputs: { node: { classPropertyName: "node", publicName: "node", isSignal: true, isRequired: true, transformFunction: null }, path: { classPropertyName: "path", publicName: "path", isSignal: true, isRequired: false, transformFunction: null }, store: { classPropertyName: "store", publicName: "store", isSignal: true, isRequired: true, transformFunction: null }, focusedPanelId: { classPropertyName: "focusedPanelId", publicName: "focusedPanelId", isSignal: true, isRequired: true, transformFunction: null }, panelLabels: { classPropertyName: "panelLabels", publicName: "panelLabels", isSignal: true, isRequired: true, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: true, transformFunction: null }, keepAlive: { classPropertyName: "keepAlive", publicName: "keepAlive", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { newTabRequested: "newTabRequested" }, host: { properties: { "class.hm-workspace-node--split": "node().kind === 'split'", "class.hm-workspace-node--row": "splitNode()?.direction === 'row'", "class.hm-workspace-node--column": "splitNode()?.direction === 'column'" }, classAttribute: "hm-workspace-node" }, viewQueries: [{ propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true, isSignal: true }, { propertyName: "panelHost", first: true, predicate: ["panelEl"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Painel-folha: fileira de abas + conte\u00FAdo projetado da aba ativa. `role=\"region\"` d\u00E1 a cada\n painel um marco pro leitor de tela navegar direto (\"Painel 2 de 3\") \u2014 sem isto, um workspace\n de v\u00E1rios pain\u00E9is \u00E9 indistingu\u00EDvel de um bloco de texto qualquer. -->\n@if (leaf(); as leaf) {\n <section\n #panelEl\n class=\"hm-workspace-node__panel\"\n role=\"region\"\n [attr.aria-label]=\"panelLabel()\"\n [attr.data-hm-panel-id]=\"leaf.id\"\n [attr.data-drop-zone]=\"dropIndicator()\"\n [class.hm-workspace-node__panel--focused]=\"leaf.id === focusedPanelId()\"\n (focusin)=\"onFocusIn()\"\n (keydown)=\"onKeydown($event)\"\n >\n <hm-tab-bar\n
|
|
518
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: WorkspaceNodeComponent, isStandalone: true, selector: "hm-workspace-node", inputs: { node: { classPropertyName: "node", publicName: "node", isSignal: true, isRequired: true, transformFunction: null }, path: { classPropertyName: "path", publicName: "path", isSignal: true, isRequired: false, transformFunction: null }, store: { classPropertyName: "store", publicName: "store", isSignal: true, isRequired: true, transformFunction: null }, tree: { classPropertyName: "tree", publicName: "tree", isSignal: true, isRequired: true, transformFunction: null }, focusedPanelId: { classPropertyName: "focusedPanelId", publicName: "focusedPanelId", isSignal: true, isRequired: true, transformFunction: null }, panelLabels: { classPropertyName: "panelLabels", publicName: "panelLabels", isSignal: true, isRequired: true, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: true, transformFunction: null }, keepAlive: { classPropertyName: "keepAlive", publicName: "keepAlive", isSignal: true, isRequired: false, transformFunction: null }, split: { classPropertyName: "split", publicName: "split", isSignal: true, isRequired: false, transformFunction: null }, maxColumns: { classPropertyName: "maxColumns", publicName: "maxColumns", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { newTabRequested: "newTabRequested" }, host: { properties: { "class.hm-workspace-node--split": "node().kind === 'split'", "class.hm-workspace-node--row": "splitNode()?.direction === 'row'", "class.hm-workspace-node--column": "splitNode()?.direction === 'column'" }, classAttribute: "hm-workspace-node" }, viewQueries: [{ propertyName: "contentEl", first: true, predicate: ["contentEl"], descendants: true, isSignal: true }, { propertyName: "panelHost", first: true, predicate: ["panelEl"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- Painel-folha: fileira de abas + conte\u00FAdo projetado da aba ativa. `role=\"region\"` d\u00E1 a cada\n painel um marco pro leitor de tela navegar direto (\"Painel 2 de 3\") \u2014 sem isto, um workspace\n de v\u00E1rios pain\u00E9is \u00E9 indistingu\u00EDvel de um bloco de texto qualquer. -->\n@if (leaf(); as leaf) {\n <section\n #panelEl\n class=\"hm-workspace-node__panel\"\n role=\"region\"\n [attr.aria-label]=\"panelLabel()\"\n [attr.data-hm-panel-id]=\"leaf.id\"\n [attr.data-drop-zone]=\"dropIndicator()\"\n [class.hm-workspace-node__panel--focused]=\"leaf.id === focusedPanelId()\"\n (focusin)=\"onFocusIn()\"\n (keydown)=\"onKeydown($event)\"\n >\n <!-- Fileira de abas e, com a divis\u00E3o ligada, o bot\u00E3o de pain\u00E9is no fim dela (dividir, juntar, fechar). -->\n <div class=\"hm-workspace-node__bar\">\n <hm-tab-bar\n [tabs]=\"leaf.tabs.tabs\"\n [active]=\"leaf.tabs.activeId\"\n [contentId]=\"contentRegionId()\"\n [label]=\"panelLabel()\"\n [tabGroup]=\"split() ? store() : null\"\n (activated)=\"activateTab($event)\"\n (closed)=\"closeTab($event)\"\n (reordered)=\"reorderTab($event)\"\n (tabReceived)=\"receiveTab($event)\"\n (contextMenuRequested)=\"openTabMenu($event)\"\n (newTabRequested)=\"newTabRequested.emit(leaf.id)\"\n />\n @if (split()) {\n <hm-menu-button\n class=\"hm-workspace-node__panel-menu\"\n size=\"small\"\n icon=\"grid-layout\"\n align=\"end\"\n [showArrow]=\"false\"\n [label]=\"panelMenuLabel()\"\n [items]=\"panelMenuItems()\"\n (chosen)=\"choosePanelAction($event)\"\n />\n }\n </div>\n\n <!-- tabindex pra quem navega s\u00F3 por teclado conseguir rolar quando o conte\u00FAdo projetado\n estoura a altura do painel (achado real de auditoria com axe-core: \"scrollable-region-\n focusable\" \u2014 uma regi\u00E3o com overflow:auto e sem alvo de foco n\u00E3o \u00E9 alcan\u00E7\u00E1vel s\u00F3 de\n teclado; mesmo padr\u00E3o j\u00E1 corrigido em `#conteudo` do shell do site, ver CLAUDE.md \u00A77). -->\n <div #contentEl class=\"hm-workspace-node__content\" [id]=\"contentRegionId()\" tabindex=\"0\">\n @if (keepAlive()) {\n <!-- Uma p\u00E1gina viva por aba: a troca s\u00F3 alterna `hidden`, sem destruir a tela. -->\n @for (tab of leaf.tabs.tabs; track tab.id) {\n <div class=\"hm-workspace-node__tabpanel\" [hidden]=\"tab.id !== activeTab().id\">\n <ng-container [ngTemplateOutlet]=\"contentTemplate()\" [ngTemplateOutletContext]=\"{ $implicit: tab, panelId: leaf.id, active: tab.id === activeTab().id }\" />\n </div>\n }\n } @else {\n <ng-container [ngTemplateOutlet]=\"contentTemplate()\" [ngTemplateOutletContext]=\"{ $implicit: activeTab(), panelId: leaf.id, active: true }\" />\n }\n </div>\n\n <!-- B\u00FAssola do arrasto: s\u00F3 visual (aria-hidden) \u2014 o leitor de tela ouve a regi\u00E3o pelo an\u00FAncio do servi\u00E7o de\n arrastar e soltar (\"Painel 2 de 3, dividir \u00E0 direita\"). Quem decide a regi\u00E3o \u00E9 o ponto sobre os bot\u00F5es. -->\n @if (compassVisible()) {\n <div class=\"hm-workspace-node__compass\" aria-hidden=\"true\">\n @for (region of compassRegions; track region) {\n <span\n class=\"hm-workspace-node__compass-button hm-workspace-node__compass-button--{{ region }}\"\n [attr.data-hm-compass-region]=\"region\"\n [class.hm-workspace-node__compass-button--active]=\"dropIndicator() === region\"\n [class.hm-workspace-node__compass-button--disabled]=\"!regionAllowed(region)\"\n >\n <hm-icon [shape]=\"compassIcon(region)\" [direction]=\"compassDirection(region)\" [solid]=\"true\" />\n </span>\n }\n </div>\n }\n\n <hm-menu [anchor]=\"menuAnchor()\" [items]=\"menuItems()\" [label]=\"panelLabel()\" (chosen)=\"chooseMenuAction($event)\" (closed)=\"closeMenu()\" />\n </section>\n}\n\n<!-- Divis\u00E3o: os dois lados se renderizam recursivamente dentro de um `hm-splitter` (o grid de tr\u00EAs\n trilhas e o separador arrast\u00E1vel/teclado s\u00E3o dele). A fra\u00E7\u00E3o `ratio` (0\u20131) do estado vira a\n `position` em % do splitter, com os mesmos limites do store (`MIN/MAX_SPLIT_RATIO`). -->\n@if (splitNode(); as pair) {\n <hm-splitter\n [orientation]=\"splitterOrientation()\"\n [position]=\"splitPosition()\"\n (positionChange)=\"resizeSplit($event)\"\n [min]=\"minPosition\"\n [max]=\"maxPosition\"\n [defaultPosition]=\"50\"\n [label]=\"text.resizeSplit\"\n [controls]=\"primaryId\"\n >\n <hm-workspace-node\n primary\n class=\"hm-workspace-node__child\"\n [id]=\"primaryId\"\n [node]=\"pair.a\"\n [path]=\"pathA()\"\n [store]=\"store()\"\n [focusedPanelId]=\"focusedPanelId()\"\n [panelLabels]=\"panelLabels()\"\n [contentTemplate]=\"contentTemplate()\"\n [keepAlive]=\"keepAlive()\"\n [split]=\"split()\"\n [tree]=\"tree()\"\n [maxColumns]=\"maxColumns()\"\n [maxRows]=\"maxRows()\"\n (newTabRequested)=\"newTabRequested.emit($event)\"\n />\n\n <hm-workspace-node\n secondary\n class=\"hm-workspace-node__child\"\n [node]=\"pair.b\"\n [path]=\"pathB()\"\n [store]=\"store()\"\n [focusedPanelId]=\"focusedPanelId()\"\n [panelLabels]=\"panelLabels()\"\n [contentTemplate]=\"contentTemplate()\"\n [keepAlive]=\"keepAlive()\"\n [split]=\"split()\"\n [tree]=\"tree()\"\n [maxColumns]=\"maxColumns()\"\n [maxRows]=\"maxRows()\"\n (newTabRequested)=\"newTabRequested.emit($event)\"\n />\n </hm-splitter>\n}\n", dependencies: [{ kind: "component", type: WorkspaceNodeComponent, selector: "hm-workspace-node", inputs: ["node", "path", "store", "tree", "focusedPanelId", "panelLabels", "contentTemplate", "keepAlive", "split", "maxColumns", "maxRows"], outputs: ["newTabRequested"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: TabBarComponent, selector: "hm-tab-bar", inputs: ["tabs", "active", "label", "allowNewTab", "contentId", "tabGroup"], outputs: ["activated", "closed", "reordered", "newTabRequested", "contextMenuRequested", "tabReceived"] }, { kind: "component", type: MenuComponent, selector: "hm-menu", inputs: ["anchor", "items", "label", "layer", "closeOnCheck", "initialFocus"], outputs: ["chosen", "closed", "checkedChange", "navigate", "pointerOutside"] }, { kind: "component", type: MenuButtonComponent, selector: "hm-menu-button", inputs: ["label", "icon", "items", "showArrow", "align", "side", "size", "shape", "layer", "closeOnCheck", "disabled"], outputs: ["chosen", "checkedChange"] }, { kind: "component", type: IconComponent, selector: "hm-icon", inputs: ["shape", "direction", "size", "solid", "badge", "status", "flip", "inverse", "label"] }, { kind: "component", type: SplitterComponent, selector: "hm-splitter", inputs: ["orientation", "position", "min", "max", "step", "largeStep", "label", "controls", "defaultPosition", "collapsible"], outputs: ["positionChange", "dragEnd"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
353
519
|
}
|
|
354
520
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: WorkspaceNodeComponent, decorators: [{
|
|
355
521
|
type: Component,
|
|
356
|
-
args: [{ selector: 'hm-workspace-node', imports: [NgTemplateOutlet, TabBarComponent, MenuComponent, SplitterComponent, WorkspaceNodeComponent], host: {
|
|
522
|
+
args: [{ selector: 'hm-workspace-node', imports: [NgTemplateOutlet, TabBarComponent, MenuComponent, MenuButtonComponent, IconComponent, SplitterComponent, WorkspaceNodeComponent], host: {
|
|
357
523
|
class: 'hm-workspace-node',
|
|
358
524
|
'[class.hm-workspace-node--split]': "node().kind === 'split'",
|
|
359
525
|
'[class.hm-workspace-node--row]': "splitNode()?.direction === 'row'",
|
|
360
526
|
'[class.hm-workspace-node--column]': "splitNode()?.direction === 'column'",
|
|
361
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- Painel-folha: fileira de abas + conte\u00FAdo projetado da aba ativa. `role=\"region\"` d\u00E1 a cada\n painel um marco pro leitor de tela navegar direto (\"Painel 2 de 3\") \u2014 sem isto, um workspace\n de v\u00E1rios pain\u00E9is \u00E9 indistingu\u00EDvel de um bloco de texto qualquer. -->\n@if (leaf(); as leaf) {\n <section\n #panelEl\n class=\"hm-workspace-node__panel\"\n role=\"region\"\n [attr.aria-label]=\"panelLabel()\"\n [attr.data-hm-panel-id]=\"leaf.id\"\n [attr.data-drop-zone]=\"dropIndicator()\"\n [class.hm-workspace-node__panel--focused]=\"leaf.id === focusedPanelId()\"\n (focusin)=\"onFocusIn()\"\n (keydown)=\"onKeydown($event)\"\n >\n <hm-tab-bar\n
|
|
362
|
-
}], ctorParameters: () => [], propDecorators: { node: [{ type: i0.Input, args: [{ isSignal: true, alias: "node", required: true }] }], path: [{ type: i0.Input, args: [{ isSignal: true, alias: "path", required: false }] }], store: [{ type: i0.Input, args: [{ isSignal: true, alias: "store", required: true }] }], focusedPanelId: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedPanelId", required: true }] }], panelLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelLabels", required: true }] }], contentTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTemplate", required: true }] }], keepAlive: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepAlive", required: false }] }], newTabRequested: [{ type: i0.Output, args: ["newTabRequested"] }], contentEl: [{ type: i0.ViewChild, args: ['contentEl', { isSignal: true }] }], panelHost: [{ type: i0.ViewChild, args: ['panelEl', { isSignal: true }] }] } });
|
|
527
|
+
}, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- Painel-folha: fileira de abas + conte\u00FAdo projetado da aba ativa. `role=\"region\"` d\u00E1 a cada\n painel um marco pro leitor de tela navegar direto (\"Painel 2 de 3\") \u2014 sem isto, um workspace\n de v\u00E1rios pain\u00E9is \u00E9 indistingu\u00EDvel de um bloco de texto qualquer. -->\n@if (leaf(); as leaf) {\n <section\n #panelEl\n class=\"hm-workspace-node__panel\"\n role=\"region\"\n [attr.aria-label]=\"panelLabel()\"\n [attr.data-hm-panel-id]=\"leaf.id\"\n [attr.data-drop-zone]=\"dropIndicator()\"\n [class.hm-workspace-node__panel--focused]=\"leaf.id === focusedPanelId()\"\n (focusin)=\"onFocusIn()\"\n (keydown)=\"onKeydown($event)\"\n >\n <!-- Fileira de abas e, com a divis\u00E3o ligada, o bot\u00E3o de pain\u00E9is no fim dela (dividir, juntar, fechar). -->\n <div class=\"hm-workspace-node__bar\">\n <hm-tab-bar\n [tabs]=\"leaf.tabs.tabs\"\n [active]=\"leaf.tabs.activeId\"\n [contentId]=\"contentRegionId()\"\n [label]=\"panelLabel()\"\n [tabGroup]=\"split() ? store() : null\"\n (activated)=\"activateTab($event)\"\n (closed)=\"closeTab($event)\"\n (reordered)=\"reorderTab($event)\"\n (tabReceived)=\"receiveTab($event)\"\n (contextMenuRequested)=\"openTabMenu($event)\"\n (newTabRequested)=\"newTabRequested.emit(leaf.id)\"\n />\n @if (split()) {\n <hm-menu-button\n class=\"hm-workspace-node__panel-menu\"\n size=\"small\"\n icon=\"grid-layout\"\n align=\"end\"\n [showArrow]=\"false\"\n [label]=\"panelMenuLabel()\"\n [items]=\"panelMenuItems()\"\n (chosen)=\"choosePanelAction($event)\"\n />\n }\n </div>\n\n <!-- tabindex pra quem navega s\u00F3 por teclado conseguir rolar quando o conte\u00FAdo projetado\n estoura a altura do painel (achado real de auditoria com axe-core: \"scrollable-region-\n focusable\" \u2014 uma regi\u00E3o com overflow:auto e sem alvo de foco n\u00E3o \u00E9 alcan\u00E7\u00E1vel s\u00F3 de\n teclado; mesmo padr\u00E3o j\u00E1 corrigido em `#conteudo` do shell do site, ver CLAUDE.md \u00A77). -->\n <div #contentEl class=\"hm-workspace-node__content\" [id]=\"contentRegionId()\" tabindex=\"0\">\n @if (keepAlive()) {\n <!-- Uma p\u00E1gina viva por aba: a troca s\u00F3 alterna `hidden`, sem destruir a tela. -->\n @for (tab of leaf.tabs.tabs; track tab.id) {\n <div class=\"hm-workspace-node__tabpanel\" [hidden]=\"tab.id !== activeTab().id\">\n <ng-container [ngTemplateOutlet]=\"contentTemplate()\" [ngTemplateOutletContext]=\"{ $implicit: tab, panelId: leaf.id, active: tab.id === activeTab().id }\" />\n </div>\n }\n } @else {\n <ng-container [ngTemplateOutlet]=\"contentTemplate()\" [ngTemplateOutletContext]=\"{ $implicit: activeTab(), panelId: leaf.id, active: true }\" />\n }\n </div>\n\n <!-- B\u00FAssola do arrasto: s\u00F3 visual (aria-hidden) \u2014 o leitor de tela ouve a regi\u00E3o pelo an\u00FAncio do servi\u00E7o de\n arrastar e soltar (\"Painel 2 de 3, dividir \u00E0 direita\"). Quem decide a regi\u00E3o \u00E9 o ponto sobre os bot\u00F5es. -->\n @if (compassVisible()) {\n <div class=\"hm-workspace-node__compass\" aria-hidden=\"true\">\n @for (region of compassRegions; track region) {\n <span\n class=\"hm-workspace-node__compass-button hm-workspace-node__compass-button--{{ region }}\"\n [attr.data-hm-compass-region]=\"region\"\n [class.hm-workspace-node__compass-button--active]=\"dropIndicator() === region\"\n [class.hm-workspace-node__compass-button--disabled]=\"!regionAllowed(region)\"\n >\n <hm-icon [shape]=\"compassIcon(region)\" [direction]=\"compassDirection(region)\" [solid]=\"true\" />\n </span>\n }\n </div>\n }\n\n <hm-menu [anchor]=\"menuAnchor()\" [items]=\"menuItems()\" [label]=\"panelLabel()\" (chosen)=\"chooseMenuAction($event)\" (closed)=\"closeMenu()\" />\n </section>\n}\n\n<!-- Divis\u00E3o: os dois lados se renderizam recursivamente dentro de um `hm-splitter` (o grid de tr\u00EAs\n trilhas e o separador arrast\u00E1vel/teclado s\u00E3o dele). A fra\u00E7\u00E3o `ratio` (0\u20131) do estado vira a\n `position` em % do splitter, com os mesmos limites do store (`MIN/MAX_SPLIT_RATIO`). -->\n@if (splitNode(); as pair) {\n <hm-splitter\n [orientation]=\"splitterOrientation()\"\n [position]=\"splitPosition()\"\n (positionChange)=\"resizeSplit($event)\"\n [min]=\"minPosition\"\n [max]=\"maxPosition\"\n [defaultPosition]=\"50\"\n [label]=\"text.resizeSplit\"\n [controls]=\"primaryId\"\n >\n <hm-workspace-node\n primary\n class=\"hm-workspace-node__child\"\n [id]=\"primaryId\"\n [node]=\"pair.a\"\n [path]=\"pathA()\"\n [store]=\"store()\"\n [focusedPanelId]=\"focusedPanelId()\"\n [panelLabels]=\"panelLabels()\"\n [contentTemplate]=\"contentTemplate()\"\n [keepAlive]=\"keepAlive()\"\n [split]=\"split()\"\n [tree]=\"tree()\"\n [maxColumns]=\"maxColumns()\"\n [maxRows]=\"maxRows()\"\n (newTabRequested)=\"newTabRequested.emit($event)\"\n />\n\n <hm-workspace-node\n secondary\n class=\"hm-workspace-node__child\"\n [node]=\"pair.b\"\n [path]=\"pathB()\"\n [store]=\"store()\"\n [focusedPanelId]=\"focusedPanelId()\"\n [panelLabels]=\"panelLabels()\"\n [contentTemplate]=\"contentTemplate()\"\n [keepAlive]=\"keepAlive()\"\n [split]=\"split()\"\n [tree]=\"tree()\"\n [maxColumns]=\"maxColumns()\"\n [maxRows]=\"maxRows()\"\n (newTabRequested)=\"newTabRequested.emit($event)\"\n />\n </hm-splitter>\n}\n" }]
|
|
528
|
+
}], ctorParameters: () => [], propDecorators: { node: [{ type: i0.Input, args: [{ isSignal: true, alias: "node", required: true }] }], path: [{ type: i0.Input, args: [{ isSignal: true, alias: "path", required: false }] }], store: [{ type: i0.Input, args: [{ isSignal: true, alias: "store", required: true }] }], tree: [{ type: i0.Input, args: [{ isSignal: true, alias: "tree", required: true }] }], focusedPanelId: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusedPanelId", required: true }] }], panelLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelLabels", required: true }] }], contentTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTemplate", required: true }] }], keepAlive: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepAlive", required: false }] }], split: [{ type: i0.Input, args: [{ isSignal: true, alias: "split", required: false }] }], maxColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxColumns", required: false }] }], maxRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxRows", required: false }] }], newTabRequested: [{ type: i0.Output, args: ["newTabRequested"] }], contentEl: [{ type: i0.ViewChild, args: ['contentEl', { isSignal: true }] }], panelHost: [{ type: i0.ViewChild, args: ['panelEl', { isSignal: true }] }] } });
|
|
363
529
|
|
|
364
530
|
/**
|
|
365
531
|
* Área de trabalho em painéis, estilo VS Code: dividir, mover aba entre painéis, redimensionar,
|
|
@@ -382,6 +548,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImpo
|
|
|
382
548
|
* painel"/"Fechar painel"; e os atalhos (`Ctrl+Shift+\`/`Ctrl+Shift+Enter` dividem o painel focado,
|
|
383
549
|
* `Ctrl+Shift+W` fecha — nunca só `Ctrl+W`, que o navegador reserva; `Ctrl+Alt+Seta` move o foco entre
|
|
384
550
|
* painéis, `Ctrl+Alt+Shift+Seta` move a aba ATIVA pro painel vizinho).
|
|
551
|
+
*
|
|
552
|
+
* Com a divisão ligada (padrão), arrastar uma aba sobre um painel mostra a bússola no meio dele (cinco botões: as quatro
|
|
553
|
+
* metades e o centro, com a prévia da área que a aba vai ocupar), e o fim da fileira de abas de cada painel tem o botão
|
|
554
|
+
* de painéis (dividir ao lado/abaixo, juntar todos, fechar este). `maxColumns`/`maxRows` limitam a grade.
|
|
555
|
+
*
|
|
556
|
+
* Com `[split]="false"` a área fica com as abas no painel que já existe: nenhum caminho divide nem move aba entre
|
|
557
|
+
* painéis (arrasto só reordena dentro da fileira; o menu de contexto e os atalhos de dividir/mover/fechar painel
|
|
558
|
+
* somem). Uma árvore já dividida que chegue por `providedStore` continua desenhada como está.
|
|
385
559
|
*/
|
|
386
560
|
class WorkspaceComponent {
|
|
387
561
|
#icons = useHermesIcons(WORKSPACE_ICONS);
|
|
@@ -394,6 +568,17 @@ class WorkspaceComponent {
|
|
|
394
568
|
* cada troca de aba -- preserva estado, filtros, rolagem e requisições em andamento. Custa memória
|
|
395
569
|
* proporcional às abas abertas; por isso é opt-in (padrão `false`: só a aba ativa existe). */
|
|
396
570
|
keepAlive = input(false, { ...(ngDevMode ? { debugName: "keepAlive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
571
|
+
/** Deixa a pessoa dividir a área em painéis e mover abas entre eles (arrasto até a borda ou outro painel, menu de
|
|
572
|
+
* contexto da aba e atalhos). `false` = só o painel que já existe: arrastar reordena dentro da fileira, o menu de
|
|
573
|
+
* contexto não tem os itens de painel e os atalhos de dividir/mover/fechar painel não fazem nada. */
|
|
574
|
+
split = input(true, { ...(ngDevMode ? { debugName: "split" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
575
|
+
/** No máximo tantos painéis lado a lado (`null` = sem limite). Toda divisão oferecida à pessoa respeita: a bússola
|
|
576
|
+
* do arrasto, o botão de painéis, o menu de contexto e os atalhos desabilitam o que estouraria. Com
|
|
577
|
+
* `maxColumns`/`maxRows` 2, os painéis cabem nos quatro cantos. O store em si não limita (é API de programa): quem
|
|
578
|
+
* divide por código consulta `canSplitPanel`. */
|
|
579
|
+
maxColumns = input(null, ...(ngDevMode ? [{ debugName: "maxColumns" }] : /* istanbul ignore next */ []));
|
|
580
|
+
/** No máximo tantos painéis empilhados (`null` = sem limite). Ver `maxColumns`. */
|
|
581
|
+
maxRows = input(null, ...(ngDevMode ? [{ debugName: "maxRows" }] : /* istanbul ignore next */ []));
|
|
397
582
|
/**
|
|
398
583
|
* Nome da região (`aria-label`). Padrão do catálogo ("Área de trabalho"). Duas áreas de trabalho
|
|
399
584
|
* na mesma tela precisam de nomes diferentes (axe `landmark-unique`) — caso real: o demo do
|
|
@@ -459,12 +644,12 @@ class WorkspaceComponent {
|
|
|
459
644
|
focusedPanelId = computed(() => this.state()?.focusedPanelId ?? '', ...(ngDevMode ? [{ debugName: "focusedPanelId" }] : /* istanbul ignore next */ []));
|
|
460
645
|
template = computed(() => this.contentTemplate(), ...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
|
|
461
646
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: WorkspaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
462
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: WorkspaceComponent, isStandalone: true, selector: "hm-workspace", inputs: { initialTabs: { classPropertyName: "initialTabs", publicName: "initialTabs", isSignal: true, isRequired: false, transformFunction: null }, initialActiveId: { classPropertyName: "initialActiveId", publicName: "initialActiveId", isSignal: true, isRequired: false, transformFunction: null }, keepAlive: { classPropertyName: "keepAlive", publicName: "keepAlive", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, providedStore: { classPropertyName: "providedStore", publicName: "providedStore", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stateChange: "stateChange", newTabRequested: "newTabRequested" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- O `<ng-template #content>` que o consumidor projeta dentro de `<hm-workspace>` \u00E9 lido via\n `contentChild` no componente \u2014 n\u00E3o precisa de `<ng-content>` aqui (mesmo padr\u00E3o do `#detail`\n do `hm-data-grid`). -->\n@if (store(); as workspaceStore) {\n @if (root(); as node) {\n <!-- role=\"region\" na raiz: o divisor arrast\u00E1vel entre dois pain\u00E9is n\u00E3o \u00E9, ele mesmo, um\n landmark (\u00E9 decorativo/interativo, n\u00E3o conte\u00FAdo) \u2014 sem um landmark envolvendo a \u00E1rvore\n inteira, ele ficaria fora de qualquer regi\u00E3o (achado real de auditoria com axe-core:\n \"region\"). Pain\u00E9is individuais continuam com o pr\u00F3prio role=\"region\" deles, aninhado\n aqui dentro \u2014 landmarks aninhados s\u00E3o v\u00E1lidos. -->\n <div class=\"hm-workspace\" role=\"region\" [attr.aria-label]=\"label() || text.regionLabel\">\n <hm-workspace-node\n [node]=\"node\"\n [store]=\"workspaceStore\"\n [focusedPanelId]=\"focusedPanelId()\"\n [panelLabels]=\"panelLabels()\"\n [contentTemplate]=\"template()\"\n [keepAlive]=\"keepAlive()\"\n (newTabRequested)=\"newTabRequested.emit($event)\"\n />\n </div>\n }\n}\n", dependencies: [{ kind: "component", type: WorkspaceNodeComponent, selector: "hm-workspace-node", inputs: ["node", "path", "store", "focusedPanelId", "panelLabels", "contentTemplate", "keepAlive"], outputs: ["newTabRequested"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
647
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.24", type: WorkspaceComponent, isStandalone: true, selector: "hm-workspace", inputs: { initialTabs: { classPropertyName: "initialTabs", publicName: "initialTabs", isSignal: true, isRequired: false, transformFunction: null }, initialActiveId: { classPropertyName: "initialActiveId", publicName: "initialActiveId", isSignal: true, isRequired: false, transformFunction: null }, keepAlive: { classPropertyName: "keepAlive", publicName: "keepAlive", isSignal: true, isRequired: false, transformFunction: null }, split: { classPropertyName: "split", publicName: "split", isSignal: true, isRequired: false, transformFunction: null }, maxColumns: { classPropertyName: "maxColumns", publicName: "maxColumns", isSignal: true, isRequired: false, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, providedStore: { classPropertyName: "providedStore", publicName: "providedStore", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { stateChange: "stateChange", newTabRequested: "newTabRequested" }, queries: [{ propertyName: "contentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: "<!-- O `<ng-template #content>` que o consumidor projeta dentro de `<hm-workspace>` \u00E9 lido via\n `contentChild` no componente \u2014 n\u00E3o precisa de `<ng-content>` aqui (mesmo padr\u00E3o do `#detail`\n do `hm-data-grid`). -->\n@if (store(); as workspaceStore) {\n @if (root(); as node) {\n <!-- role=\"region\" na raiz: o divisor arrast\u00E1vel entre dois pain\u00E9is n\u00E3o \u00E9, ele mesmo, um\n landmark (\u00E9 decorativo/interativo, n\u00E3o conte\u00FAdo) \u2014 sem um landmark envolvendo a \u00E1rvore\n inteira, ele ficaria fora de qualquer regi\u00E3o (achado real de auditoria com axe-core:\n \"region\"). Pain\u00E9is individuais continuam com o pr\u00F3prio role=\"region\" deles, aninhado\n aqui dentro \u2014 landmarks aninhados s\u00E3o v\u00E1lidos. -->\n <div class=\"hm-workspace\" role=\"region\" [attr.aria-label]=\"label() || text.regionLabel\">\n <hm-workspace-node\n [node]=\"node\"\n [store]=\"workspaceStore\"\n [focusedPanelId]=\"focusedPanelId()\"\n [panelLabels]=\"panelLabels()\"\n [contentTemplate]=\"template()\"\n [keepAlive]=\"keepAlive()\"\n [split]=\"split()\"\n [tree]=\"node\"\n [maxColumns]=\"maxColumns()\"\n [maxRows]=\"maxRows()\"\n (newTabRequested)=\"newTabRequested.emit($event)\"\n />\n </div>\n }\n}\n", dependencies: [{ kind: "component", type: WorkspaceNodeComponent, selector: "hm-workspace-node", inputs: ["node", "path", "store", "tree", "focusedPanelId", "panelLabels", "contentTemplate", "keepAlive", "split", "maxColumns", "maxRows"], outputs: ["newTabRequested"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
463
648
|
}
|
|
464
649
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.24", ngImport: i0, type: WorkspaceComponent, decorators: [{
|
|
465
650
|
type: Component,
|
|
466
|
-
args: [{ selector: 'hm-workspace', imports: [WorkspaceNodeComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- O `<ng-template #content>` que o consumidor projeta dentro de `<hm-workspace>` \u00E9 lido via\n `contentChild` no componente \u2014 n\u00E3o precisa de `<ng-content>` aqui (mesmo padr\u00E3o do `#detail`\n do `hm-data-grid`). -->\n@if (store(); as workspaceStore) {\n @if (root(); as node) {\n <!-- role=\"region\" na raiz: o divisor arrast\u00E1vel entre dois pain\u00E9is n\u00E3o \u00E9, ele mesmo, um\n landmark (\u00E9 decorativo/interativo, n\u00E3o conte\u00FAdo) \u2014 sem um landmark envolvendo a \u00E1rvore\n inteira, ele ficaria fora de qualquer regi\u00E3o (achado real de auditoria com axe-core:\n \"region\"). Pain\u00E9is individuais continuam com o pr\u00F3prio role=\"region\" deles, aninhado\n aqui dentro \u2014 landmarks aninhados s\u00E3o v\u00E1lidos. -->\n <div class=\"hm-workspace\" role=\"region\" [attr.aria-label]=\"label() || text.regionLabel\">\n <hm-workspace-node\n [node]=\"node\"\n [store]=\"workspaceStore\"\n [focusedPanelId]=\"focusedPanelId()\"\n [panelLabels]=\"panelLabels()\"\n [contentTemplate]=\"template()\"\n [keepAlive]=\"keepAlive()\"\n (newTabRequested)=\"newTabRequested.emit($event)\"\n />\n </div>\n }\n}\n" }]
|
|
467
|
-
}], ctorParameters: () => [], propDecorators: { initialTabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialTabs", required: false }] }], initialActiveId: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialActiveId", required: false }] }], keepAlive: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepAlive", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], providedStore: [{ type: i0.Input, args: [{ isSignal: true, alias: "providedStore", required: false }] }], stateChange: [{ type: i0.Output, args: ["stateChange"] }], newTabRequested: [{ type: i0.Output, args: ["newTabRequested"] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { isSignal: true }] }] } });
|
|
651
|
+
args: [{ selector: 'hm-workspace', imports: [WorkspaceNodeComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- O `<ng-template #content>` que o consumidor projeta dentro de `<hm-workspace>` \u00E9 lido via\n `contentChild` no componente \u2014 n\u00E3o precisa de `<ng-content>` aqui (mesmo padr\u00E3o do `#detail`\n do `hm-data-grid`). -->\n@if (store(); as workspaceStore) {\n @if (root(); as node) {\n <!-- role=\"region\" na raiz: o divisor arrast\u00E1vel entre dois pain\u00E9is n\u00E3o \u00E9, ele mesmo, um\n landmark (\u00E9 decorativo/interativo, n\u00E3o conte\u00FAdo) \u2014 sem um landmark envolvendo a \u00E1rvore\n inteira, ele ficaria fora de qualquer regi\u00E3o (achado real de auditoria com axe-core:\n \"region\"). Pain\u00E9is individuais continuam com o pr\u00F3prio role=\"region\" deles, aninhado\n aqui dentro \u2014 landmarks aninhados s\u00E3o v\u00E1lidos. -->\n <div class=\"hm-workspace\" role=\"region\" [attr.aria-label]=\"label() || text.regionLabel\">\n <hm-workspace-node\n [node]=\"node\"\n [store]=\"workspaceStore\"\n [focusedPanelId]=\"focusedPanelId()\"\n [panelLabels]=\"panelLabels()\"\n [contentTemplate]=\"template()\"\n [keepAlive]=\"keepAlive()\"\n [split]=\"split()\"\n [tree]=\"node\"\n [maxColumns]=\"maxColumns()\"\n [maxRows]=\"maxRows()\"\n (newTabRequested)=\"newTabRequested.emit($event)\"\n />\n </div>\n }\n}\n" }]
|
|
652
|
+
}], ctorParameters: () => [], propDecorators: { initialTabs: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialTabs", required: false }] }], initialActiveId: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialActiveId", required: false }] }], keepAlive: [{ type: i0.Input, args: [{ isSignal: true, alias: "keepAlive", required: false }] }], split: [{ type: i0.Input, args: [{ isSignal: true, alias: "split", required: false }] }], maxColumns: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxColumns", required: false }] }], maxRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxRows", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], providedStore: [{ type: i0.Input, args: [{ isSignal: true, alias: "providedStore", required: false }] }], stateChange: [{ type: i0.Output, args: ["stateChange"] }], newTabRequested: [{ type: i0.Output, args: ["newTabRequested"] }], contentTemplate: [{ type: i0.ContentChild, args: ['content', { isSignal: true }] }] } });
|
|
468
653
|
|
|
469
654
|
// Ponto de import `@trismegisto/angular/workspace` (secundário do ng-packagr): o que o public-api e as outras pastas usam
|
|
470
655
|
// daqui. Gerado em 2026-10-03; ao criar arquivo público novo na pasta, acrescente a linha.
|