@cohesivesystems/presentation-core 0.1.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +55 -0
- package/dist/api-scope-request.d.ts +43 -0
- package/dist/api-scope-request.d.ts.map +1 -0
- package/dist/api-scope-request.js +96 -0
- package/dist/api-scope-request.js.map +1 -0
- package/dist/collection-chrome-icons.d.ts +18 -0
- package/dist/collection-chrome-icons.d.ts.map +1 -0
- package/dist/collection-chrome-icons.js +57 -0
- package/dist/collection-chrome-icons.js.map +1 -0
- package/dist/collection-chrome-runtime.d.ts +25 -0
- package/dist/collection-chrome-runtime.d.ts.map +1 -0
- package/dist/collection-chrome-runtime.js +72 -0
- package/dist/collection-chrome-runtime.js.map +1 -0
- package/dist/collection-chrome-slot-renderer-registry.d.ts +110 -0
- package/dist/collection-chrome-slot-renderer-registry.d.ts.map +1 -0
- package/dist/collection-chrome-slot-renderer-registry.js +136 -0
- package/dist/collection-chrome-slot-renderer-registry.js.map +1 -0
- package/dist/collection-selection-state.d.ts +18 -0
- package/dist/collection-selection-state.d.ts.map +1 -0
- package/dist/collection-selection-state.js +2 -0
- package/dist/collection-selection-state.js.map +1 -0
- package/dist/data-source-projection.d.ts +475 -0
- package/dist/data-source-projection.d.ts.map +1 -0
- package/dist/data-source-projection.js +880 -0
- package/dist/data-source-projection.js.map +1 -0
- package/dist/data-source-query-lowering.d.ts +35 -0
- package/dist/data-source-query-lowering.d.ts.map +1 -0
- package/dist/data-source-query-lowering.js +104 -0
- package/dist/data-source-query-lowering.js.map +1 -0
- package/dist/date-time-filter-model.d.ts +20 -0
- package/dist/date-time-filter-model.d.ts.map +1 -0
- package/dist/date-time-filter-model.js +115 -0
- package/dist/date-time-filter-model.js.map +1 -0
- package/dist/document-badge-icons.d.ts +4 -0
- package/dist/document-badge-icons.d.ts.map +1 -0
- package/dist/document-badge-icons.js +4 -0
- package/dist/document-badge-icons.js.map +1 -0
- package/dist/document-module.d.ts +268 -0
- package/dist/document-module.d.ts.map +1 -0
- package/dist/document-module.js +347 -0
- package/dist/document-module.js.map +1 -0
- package/dist/document-summary-model.d.ts +2 -0
- package/dist/document-summary-model.d.ts.map +1 -0
- package/dist/document-summary-model.js +2 -0
- package/dist/document-summary-model.js.map +1 -0
- package/dist/document-workspace-chrome-projection.d.ts +18 -0
- package/dist/document-workspace-chrome-projection.d.ts.map +1 -0
- package/dist/document-workspace-chrome-projection.js +35 -0
- package/dist/document-workspace-chrome-projection.js.map +1 -0
- package/dist/document-workspace-surface-slots.d.ts +75 -0
- package/dist/document-workspace-surface-slots.d.ts.map +1 -0
- package/dist/document-workspace-surface-slots.js +268 -0
- package/dist/document-workspace-surface-slots.js.map +1 -0
- package/dist/endpoint-executor.d.ts +62 -0
- package/dist/endpoint-executor.d.ts.map +1 -0
- package/dist/endpoint-executor.js +35 -0
- package/dist/endpoint-executor.js.map +1 -0
- package/dist/field-display-resolution.d.ts +5 -0
- package/dist/field-display-resolution.d.ts.map +1 -0
- package/dist/field-display-resolution.js +50 -0
- package/dist/field-display-resolution.js.map +1 -0
- package/dist/index.d.ts +90 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +89 -0
- package/dist/index.js.map +1 -0
- package/dist/module.d.ts +48 -0
- package/dist/module.d.ts.map +1 -0
- package/dist/module.js +108 -0
- package/dist/module.js.map +1 -0
- package/dist/navigation-shell-frame-renderer-registry.d.ts +12 -0
- package/dist/navigation-shell-frame-renderer-registry.d.ts.map +1 -0
- package/dist/navigation-shell-frame-renderer-registry.js +29 -0
- package/dist/navigation-shell-frame-renderer-registry.js.map +1 -0
- package/dist/navigation-shell-layout-runtime.d.ts +29 -0
- package/dist/navigation-shell-layout-runtime.d.ts.map +1 -0
- package/dist/navigation-shell-layout-runtime.js +50 -0
- package/dist/navigation-shell-layout-runtime.js.map +1 -0
- package/dist/navigation-shell-region-component-registry.d.ts +96 -0
- package/dist/navigation-shell-region-component-registry.d.ts.map +1 -0
- package/dist/navigation-shell-region-component-registry.js +108 -0
- package/dist/navigation-shell-region-component-registry.js.map +1 -0
- package/dist/navigation-shell-runtime.d.ts +48 -0
- package/dist/navigation-shell-runtime.d.ts.map +1 -0
- package/dist/navigation-shell-runtime.js +457 -0
- package/dist/navigation-shell-runtime.js.map +1 -0
- package/dist/navigation-shell-slot-renderer-registry.d.ts +15 -0
- package/dist/navigation-shell-slot-renderer-registry.d.ts.map +1 -0
- package/dist/navigation-shell-slot-renderer-registry.js +48 -0
- package/dist/navigation-shell-slot-renderer-registry.js.map +1 -0
- package/dist/navigation.d.ts +84 -0
- package/dist/navigation.d.ts.map +1 -0
- package/dist/navigation.js +167 -0
- package/dist/navigation.js.map +1 -0
- package/dist/object-path.d.ts +23 -0
- package/dist/object-path.d.ts.map +1 -0
- package/dist/object-path.js +63 -0
- package/dist/object-path.js.map +1 -0
- package/dist/page-host-renderer-registry.d.ts +119 -0
- package/dist/page-host-renderer-registry.d.ts.map +1 -0
- package/dist/page-host-renderer-registry.js +305 -0
- package/dist/page-host-renderer-registry.js.map +1 -0
- package/dist/presentation-action-endpoint-request-projection.d.ts +23 -0
- package/dist/presentation-action-endpoint-request-projection.d.ts.map +1 -0
- package/dist/presentation-action-endpoint-request-projection.js +117 -0
- package/dist/presentation-action-endpoint-request-projection.js.map +1 -0
- package/dist/presentation-action-endpoint.d.ts +24 -0
- package/dist/presentation-action-endpoint.d.ts.map +1 -0
- package/dist/presentation-action-endpoint.js +56 -0
- package/dist/presentation-action-endpoint.js.map +1 -0
- package/dist/presentation-action-icons.d.ts +4 -0
- package/dist/presentation-action-icons.d.ts.map +1 -0
- package/dist/presentation-action-icons.js +4 -0
- package/dist/presentation-action-icons.js.map +1 -0
- package/dist/presentation-action-result-state.d.ts +48 -0
- package/dist/presentation-action-result-state.d.ts.map +1 -0
- package/dist/presentation-action-result-state.js +109 -0
- package/dist/presentation-action-result-state.js.map +1 -0
- package/dist/presentation-action-runtime-binding.d.ts +48 -0
- package/dist/presentation-action-runtime-binding.d.ts.map +1 -0
- package/dist/presentation-action-runtime-binding.js +52 -0
- package/dist/presentation-action-runtime-binding.js.map +1 -0
- package/dist/presentation-action-runtime-diagnostics.d.ts +18 -0
- package/dist/presentation-action-runtime-diagnostics.d.ts.map +1 -0
- package/dist/presentation-action-runtime-diagnostics.js +69 -0
- package/dist/presentation-action-runtime-diagnostics.js.map +1 -0
- package/dist/presentation-action-runtime-labels.d.ts +15 -0
- package/dist/presentation-action-runtime-labels.d.ts.map +1 -0
- package/dist/presentation-action-runtime-labels.js +28 -0
- package/dist/presentation-action-runtime-labels.js.map +1 -0
- package/dist/presentation-action-runtime-projection.d.ts +17 -0
- package/dist/presentation-action-runtime-projection.d.ts.map +1 -0
- package/dist/presentation-action-runtime-projection.js +31 -0
- package/dist/presentation-action-runtime-projection.js.map +1 -0
- package/dist/presentation-badge-resolution.d.ts +8 -0
- package/dist/presentation-badge-resolution.d.ts.map +1 -0
- package/dist/presentation-badge-resolution.js +73 -0
- package/dist/presentation-badge-resolution.js.map +1 -0
- package/dist/presentation-collection-pagination.d.ts +32 -0
- package/dist/presentation-collection-pagination.d.ts.map +1 -0
- package/dist/presentation-collection-pagination.js +275 -0
- package/dist/presentation-collection-pagination.js.map +1 -0
- package/dist/presentation-content-diagnostics.d.ts +17 -0
- package/dist/presentation-content-diagnostics.d.ts.map +1 -0
- package/dist/presentation-content-diagnostics.js +61 -0
- package/dist/presentation-content-diagnostics.js.map +1 -0
- package/dist/presentation-content-resolution.d.ts +9 -0
- package/dist/presentation-content-resolution.d.ts.map +1 -0
- package/dist/presentation-content-resolution.js +19 -0
- package/dist/presentation-content-resolution.js.map +1 -0
- package/dist/presentation-data-source-binding-model.d.ts +81 -0
- package/dist/presentation-data-source-binding-model.d.ts.map +1 -0
- package/dist/presentation-data-source-binding-model.js +56 -0
- package/dist/presentation-data-source-binding-model.js.map +1 -0
- package/dist/presentation-data-source-runtime.d.ts +62 -0
- package/dist/presentation-data-source-runtime.d.ts.map +1 -0
- package/dist/presentation-data-source-runtime.js +80 -0
- package/dist/presentation-data-source-runtime.js.map +1 -0
- package/dist/presentation-design-intent-diagnostics.d.ts +25 -0
- package/dist/presentation-design-intent-diagnostics.d.ts.map +1 -0
- package/dist/presentation-design-intent-diagnostics.js +55 -0
- package/dist/presentation-design-intent-diagnostics.js.map +1 -0
- package/dist/presentation-icon-diagnostics.d.ts +45 -0
- package/dist/presentation-icon-diagnostics.d.ts.map +1 -0
- package/dist/presentation-icon-diagnostics.js +235 -0
- package/dist/presentation-icon-diagnostics.js.map +1 -0
- package/dist/presentation-icon-registry.d.ts +36 -0
- package/dist/presentation-icon-registry.d.ts.map +1 -0
- package/dist/presentation-icon-registry.js +81 -0
- package/dist/presentation-icon-registry.js.map +1 -0
- package/dist/presentation-navigation-action-runtime-bindings.d.ts +13 -0
- package/dist/presentation-navigation-action-runtime-bindings.d.ts.map +1 -0
- package/dist/presentation-navigation-action-runtime-bindings.js +29 -0
- package/dist/presentation-navigation-action-runtime-bindings.js.map +1 -0
- package/dist/presentation-pagination.d.ts +98 -0
- package/dist/presentation-pagination.d.ts.map +1 -0
- package/dist/presentation-pagination.js +427 -0
- package/dist/presentation-pagination.js.map +1 -0
- package/dist/presentation-projection-coverage.d.ts +38 -0
- package/dist/presentation-projection-coverage.d.ts.map +1 -0
- package/dist/presentation-projection-coverage.js +2429 -0
- package/dist/presentation-projection-coverage.js.map +1 -0
- package/dist/presentation-projection-diagnostics.d.ts +33 -0
- package/dist/presentation-projection-diagnostics.d.ts.map +1 -0
- package/dist/presentation-projection-diagnostics.js +17 -0
- package/dist/presentation-projection-diagnostics.js.map +1 -0
- package/dist/presentation-projection-trace.d.ts +97 -0
- package/dist/presentation-projection-trace.d.ts.map +1 -0
- package/dist/presentation-projection-trace.js +110 -0
- package/dist/presentation-projection-trace.js.map +1 -0
- package/dist/presentation-query-form-state.d.ts +15 -0
- package/dist/presentation-query-form-state.d.ts.map +1 -0
- package/dist/presentation-query-form-state.js +20 -0
- package/dist/presentation-query-form-state.js.map +1 -0
- package/dist/presentation-renderer-registry.d.ts +86 -0
- package/dist/presentation-renderer-registry.d.ts.map +1 -0
- package/dist/presentation-renderer-registry.js +108 -0
- package/dist/presentation-renderer-registry.js.map +1 -0
- package/dist/presentation-semantics.d.ts +288 -0
- package/dist/presentation-semantics.d.ts.map +1 -0
- package/dist/presentation-semantics.js +560 -0
- package/dist/presentation-semantics.js.map +1 -0
- package/dist/presentation-standards.d.ts +8 -0
- package/dist/presentation-standards.d.ts.map +1 -0
- package/dist/presentation-standards.js +9 -0
- package/dist/presentation-standards.js.map +1 -0
- package/dist/presentation-test-selectors.d.ts +146 -0
- package/dist/presentation-test-selectors.d.ts.map +1 -0
- package/dist/presentation-test-selectors.js +113 -0
- package/dist/presentation-test-selectors.js.map +1 -0
- package/dist/presentation-value-formatting.d.ts +12 -0
- package/dist/presentation-value-formatting.d.ts.map +1 -0
- package/dist/presentation-value-formatting.js +33 -0
- package/dist/presentation-value-formatting.js.map +1 -0
- package/dist/presentation-value-resolution.d.ts +7 -0
- package/dist/presentation-value-resolution.d.ts.map +1 -0
- package/dist/presentation-value-resolution.js +69 -0
- package/dist/presentation-value-resolution.js.map +1 -0
- package/dist/presentation-view-tree.d.ts +6 -0
- package/dist/presentation-view-tree.d.ts.map +1 -0
- package/dist/presentation-view-tree.js +15 -0
- package/dist/presentation-view-tree.js.map +1 -0
- package/dist/process-task-model.d.ts +80 -0
- package/dist/process-task-model.d.ts.map +1 -0
- package/dist/process-task-model.js +52 -0
- package/dist/process-task-model.js.map +1 -0
- package/dist/process-task-projection.d.ts +46 -0
- package/dist/process-task-projection.d.ts.map +1 -0
- package/dist/process-task-projection.js +233 -0
- package/dist/process-task-projection.js.map +1 -0
- package/dist/projected-action-status-projection.d.ts +18 -0
- package/dist/projected-action-status-projection.d.ts.map +1 -0
- package/dist/projected-action-status-projection.js +19 -0
- package/dist/projected-action-status-projection.js.map +1 -0
- package/dist/projected-activity-state-model.d.ts +22 -0
- package/dist/projected-activity-state-model.d.ts.map +1 -0
- package/dist/projected-activity-state-model.js +87 -0
- package/dist/projected-activity-state-model.js.map +1 -0
- package/dist/projected-collection-action-runtime-bindings.d.ts +12 -0
- package/dist/projected-collection-action-runtime-bindings.d.ts.map +1 -0
- package/dist/projected-collection-action-runtime-bindings.js +37 -0
- package/dist/projected-collection-action-runtime-bindings.js.map +1 -0
- package/dist/projected-collection-action-runtime-diagnostics.d.ts +23 -0
- package/dist/projected-collection-action-runtime-diagnostics.d.ts.map +1 -0
- package/dist/projected-collection-action-runtime-diagnostics.js +168 -0
- package/dist/projected-collection-action-runtime-diagnostics.js.map +1 -0
- package/dist/projected-collection-runtime.d.ts +475 -0
- package/dist/projected-collection-runtime.d.ts.map +1 -0
- package/dist/projected-collection-runtime.js +832 -0
- package/dist/projected-collection-runtime.js.map +1 -0
- package/dist/projected-document-action-diagnostics.d.ts +16 -0
- package/dist/projected-document-action-diagnostics.d.ts.map +1 -0
- package/dist/projected-document-action-diagnostics.js +113 -0
- package/dist/projected-document-action-diagnostics.js.map +1 -0
- package/dist/projected-document-action-enablements.d.ts +25 -0
- package/dist/projected-document-action-enablements.d.ts.map +1 -0
- package/dist/projected-document-action-enablements.js +38 -0
- package/dist/projected-document-action-enablements.js.map +1 -0
- package/dist/projected-document-action-projection.d.ts +45 -0
- package/dist/projected-document-action-projection.d.ts.map +1 -0
- package/dist/projected-document-action-projection.js +201 -0
- package/dist/projected-document-action-projection.js.map +1 -0
- package/dist/projected-document-action-runtime-profile-diagnostics.d.ts +16 -0
- package/dist/projected-document-action-runtime-profile-diagnostics.d.ts.map +1 -0
- package/dist/projected-document-action-runtime-profile-diagnostics.js +168 -0
- package/dist/projected-document-action-runtime-profile-diagnostics.js.map +1 -0
- package/dist/projected-document-action-runtime-profile.d.ts +64 -0
- package/dist/projected-document-action-runtime-profile.d.ts.map +1 -0
- package/dist/projected-document-action-runtime-profile.js +33 -0
- package/dist/projected-document-action-runtime-profile.js.map +1 -0
- package/dist/projected-document-action-status-notice-diagnostics.d.ts +10 -0
- package/dist/projected-document-action-status-notice-diagnostics.d.ts.map +1 -0
- package/dist/projected-document-action-status-notice-diagnostics.js +64 -0
- package/dist/projected-document-action-status-notice-diagnostics.js.map +1 -0
- package/dist/projected-document-badge-formatting.d.ts +2 -0
- package/dist/projected-document-badge-formatting.d.ts.map +1 -0
- package/dist/projected-document-badge-formatting.js +7 -0
- package/dist/projected-document-badge-formatting.js.map +1 -0
- package/dist/projected-document-editor-model.d.ts +4 -0
- package/dist/projected-document-editor-model.d.ts.map +1 -0
- package/dist/projected-document-editor-model.js +2 -0
- package/dist/projected-document-editor-model.js.map +1 -0
- package/dist/projected-document-field-navigation.d.ts +72 -0
- package/dist/projected-document-field-navigation.d.ts.map +1 -0
- package/dist/projected-document-field-navigation.js +143 -0
- package/dist/projected-document-field-navigation.js.map +1 -0
- package/dist/projected-document-field-semantics.d.ts +5 -0
- package/dist/projected-document-field-semantics.d.ts.map +1 -0
- package/dist/projected-document-field-semantics.js +16 -0
- package/dist/projected-document-field-semantics.js.map +1 -0
- package/dist/projected-document-workspace-data-source-bindings.d.ts +69 -0
- package/dist/projected-document-workspace-data-source-bindings.d.ts.map +1 -0
- package/dist/projected-document-workspace-data-source-bindings.js +81 -0
- package/dist/projected-document-workspace-data-source-bindings.js.map +1 -0
- package/dist/projected-document-workspace-notice-diagnostics.d.ts +12 -0
- package/dist/projected-document-workspace-notice-diagnostics.d.ts.map +1 -0
- package/dist/projected-document-workspace-notice-diagnostics.js +13 -0
- package/dist/projected-document-workspace-notice-diagnostics.js.map +1 -0
- package/dist/projected-input-form-runtime.d.ts +62 -0
- package/dist/projected-input-form-runtime.d.ts.map +1 -0
- package/dist/projected-input-form-runtime.js +2 -0
- package/dist/projected-input-form-runtime.js.map +1 -0
- package/dist/projected-process-task-notice-diagnostics.d.ts +13 -0
- package/dist/projected-process-task-notice-diagnostics.d.ts.map +1 -0
- package/dist/projected-process-task-notice-diagnostics.js +170 -0
- package/dist/projected-process-task-notice-diagnostics.js.map +1 -0
- package/dist/projected-query-form-runtime.d.ts +46 -0
- package/dist/projected-query-form-runtime.d.ts.map +1 -0
- package/dist/projected-query-form-runtime.js +2 -0
- package/dist/projected-query-form-runtime.js.map +1 -0
- package/dist/prompt-document-preview-projection.d.ts +46 -0
- package/dist/prompt-document-preview-projection.d.ts.map +1 -0
- package/dist/prompt-document-preview-projection.js +173 -0
- package/dist/prompt-document-preview-projection.js.map +1 -0
- package/dist/prompt-icons.d.ts +4 -0
- package/dist/prompt-icons.d.ts.map +1 -0
- package/dist/prompt-icons.js +4 -0
- package/dist/prompt-icons.js.map +1 -0
- package/dist/prompt-status-message-resolution.d.ts +18 -0
- package/dist/prompt-status-message-resolution.d.ts.map +1 -0
- package/dist/prompt-status-message-resolution.js +83 -0
- package/dist/prompt-status-message-resolution.js.map +1 -0
- package/dist/query-form-lowering.d.ts +16 -0
- package/dist/query-form-lowering.d.ts.map +1 -0
- package/dist/query-form-lowering.js +38 -0
- package/dist/query-form-lowering.js.map +1 -0
- package/dist/query-form-url-state.d.ts +44 -0
- package/dist/query-form-url-state.d.ts.map +1 -0
- package/dist/query-form-url-state.js +197 -0
- package/dist/query-form-url-state.js.map +1 -0
- package/dist/query-offset-page.d.ts +13 -0
- package/dist/query-offset-page.d.ts.map +1 -0
- package/dist/query-offset-page.js +24 -0
- package/dist/query-offset-page.js.map +1 -0
- package/dist/relation-query-input-form-target.d.ts +10 -0
- package/dist/relation-query-input-form-target.d.ts.map +1 -0
- package/dist/relation-query-input-form-target.js +30 -0
- package/dist/relation-query-input-form-target.js.map +1 -0
- package/dist/scope-selection.d.ts +94 -0
- package/dist/scope-selection.d.ts.map +1 -0
- package/dist/scope-selection.js +95 -0
- package/dist/scope-selection.js.map +1 -0
- package/dist/target-bindings.d.ts +39 -0
- package/dist/target-bindings.d.ts.map +1 -0
- package/dist/target-bindings.js +40 -0
- package/dist/target-bindings.js.map +1 -0
- package/dist/view-chrome-content-diagnostics.d.ts +8 -0
- package/dist/view-chrome-content-diagnostics.d.ts.map +1 -0
- package/dist/view-chrome-content-diagnostics.js +84 -0
- package/dist/view-chrome-content-diagnostics.js.map +1 -0
- package/dist/view-chrome-icons.d.ts +12 -0
- package/dist/view-chrome-icons.d.ts.map +1 -0
- package/dist/view-chrome-icons.js +50 -0
- package/dist/view-chrome-icons.js.map +1 -0
- package/dist/view-chrome-slot-renderer-registry.d.ts +19 -0
- package/dist/view-chrome-slot-renderer-registry.d.ts.map +1 -0
- package/dist/view-chrome-slot-renderer-registry.js +62 -0
- package/dist/view-chrome-slot-renderer-registry.js.map +1 -0
- package/package.json +53 -0
- package/src/api-scope-request.ts +186 -0
- package/src/collection-chrome-icons.ts +89 -0
- package/src/collection-chrome-runtime.ts +151 -0
- package/src/collection-chrome-slot-renderer-registry.ts +227 -0
- package/src/collection-selection-state.ts +32 -0
- package/src/data-source-projection.ts +2149 -0
- package/src/data-source-query-lowering.ts +217 -0
- package/src/date-time-filter-model.ts +156 -0
- package/src/document-badge-icons.ts +3 -0
- package/src/document-module.ts +741 -0
- package/src/document-summary-model.ts +1 -0
- package/src/document-workspace-chrome-projection.ts +62 -0
- package/src/document-workspace-surface-slots.ts +458 -0
- package/src/endpoint-executor.ts +122 -0
- package/src/field-display-resolution.ts +99 -0
- package/src/index.ts +104 -0
- package/src/module.ts +281 -0
- package/src/navigation-shell-frame-renderer-registry.ts +65 -0
- package/src/navigation-shell-layout-runtime.ts +124 -0
- package/src/navigation-shell-region-component-registry.ts +242 -0
- package/src/navigation-shell-runtime.ts +579 -0
- package/src/navigation-shell-slot-renderer-registry.ts +94 -0
- package/src/navigation.ts +364 -0
- package/src/object-path.ts +99 -0
- package/src/page-host-renderer-registry.ts +615 -0
- package/src/presentation-action-endpoint-request-projection.ts +223 -0
- package/src/presentation-action-endpoint.ts +130 -0
- package/src/presentation-action-icons.ts +3 -0
- package/src/presentation-action-result-state.ts +189 -0
- package/src/presentation-action-runtime-binding.ts +177 -0
- package/src/presentation-action-runtime-diagnostics.ts +120 -0
- package/src/presentation-action-runtime-labels.ts +57 -0
- package/src/presentation-action-runtime-projection.ts +67 -0
- package/src/presentation-badge-resolution.ts +138 -0
- package/src/presentation-collection-pagination.ts +436 -0
- package/src/presentation-content-diagnostics.ts +121 -0
- package/src/presentation-content-resolution.ts +46 -0
- package/src/presentation-data-source-binding-model.ts +140 -0
- package/src/presentation-data-source-runtime.ts +190 -0
- package/src/presentation-design-intent-diagnostics.ts +104 -0
- package/src/presentation-icon-diagnostics.ts +368 -0
- package/src/presentation-icon-registry.ts +181 -0
- package/src/presentation-navigation-action-runtime-bindings.ts +54 -0
- package/src/presentation-pagination.ts +694 -0
- package/src/presentation-projection-coverage.ts +3257 -0
- package/src/presentation-projection-diagnostics.ts +71 -0
- package/src/presentation-projection-trace.ts +293 -0
- package/src/presentation-query-form-state.ts +54 -0
- package/src/presentation-renderer-registry.ts +269 -0
- package/src/presentation-semantics.ts +1028 -0
- package/src/presentation-standards.ts +14 -0
- package/src/presentation-test-selectors.ts +312 -0
- package/src/presentation-value-formatting.ts +65 -0
- package/src/presentation-value-resolution.ts +100 -0
- package/src/presentation-view-tree.ts +33 -0
- package/src/process-task-model.ts +158 -0
- package/src/process-task-projection.ts +398 -0
- package/src/projected-action-status-projection.ts +43 -0
- package/src/projected-activity-state-model.ts +123 -0
- package/src/projected-collection-action-runtime-bindings.ts +76 -0
- package/src/projected-collection-action-runtime-diagnostics.ts +289 -0
- package/src/projected-collection-runtime.ts +1772 -0
- package/src/projected-document-action-diagnostics.ts +196 -0
- package/src/projected-document-action-enablements.ts +99 -0
- package/src/projected-document-action-projection.ts +464 -0
- package/src/projected-document-action-runtime-profile-diagnostics.ts +250 -0
- package/src/projected-document-action-runtime-profile.ts +133 -0
- package/src/projected-document-action-status-notice-diagnostics.ts +116 -0
- package/src/projected-document-badge-formatting.ts +7 -0
- package/src/projected-document-editor-model.ts +7 -0
- package/src/projected-document-field-navigation.ts +300 -0
- package/src/projected-document-field-semantics.ts +27 -0
- package/src/projected-document-workspace-data-source-bindings.ts +182 -0
- package/src/projected-document-workspace-notice-diagnostics.ts +41 -0
- package/src/projected-input-form-runtime.ts +86 -0
- package/src/projected-process-task-notice-diagnostics.ts +283 -0
- package/src/projected-query-form-runtime.ts +62 -0
- package/src/prompt-document-preview-projection.ts +345 -0
- package/src/prompt-icons.ts +3 -0
- package/src/prompt-status-message-resolution.ts +158 -0
- package/src/query-form-lowering.ts +77 -0
- package/src/query-form-url-state.ts +346 -0
- package/src/query-offset-page.ts +50 -0
- package/src/relation-query-input-form-target.ts +61 -0
- package/src/scope-selection.ts +201 -0
- package/src/target-bindings.ts +123 -0
- package/src/view-chrome-content-diagnostics.ts +139 -0
- package/src/view-chrome-icons.ts +81 -0
- package/src/view-chrome-slot-renderer-registry.ts +128 -0
|
@@ -0,0 +1,217 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
DataSourceDefinition,
|
|
3
|
+
DataSourceQueryEndpointBindingDefinition,
|
|
4
|
+
QueryFieldBindingDefinition,
|
|
5
|
+
QueryLoweringDefinition,
|
|
6
|
+
} from '@cohesivesystems/presentation-contracts'
|
|
7
|
+
import { queryLoweringKinds } from '@cohesivesystems/presentation-contracts'
|
|
8
|
+
import {
|
|
9
|
+
readObjectPath,
|
|
10
|
+
writeObjectPath,
|
|
11
|
+
writeObjectPathIfDefined,
|
|
12
|
+
} from './object-path'
|
|
13
|
+
|
|
14
|
+
export interface DataSourceQueryLoweringTransformContext {
|
|
15
|
+
readonly binding: QueryFieldBindingDefinition
|
|
16
|
+
readonly sourceValue: unknown
|
|
17
|
+
readonly target: Record<string, unknown>
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type DataSourceQueryLoweringTransform = (value: unknown, context: DataSourceQueryLoweringTransformContext) => unknown
|
|
21
|
+
|
|
22
|
+
export interface LowerDataSourceQueryValueOptions<TRequest extends object> {
|
|
23
|
+
readonly dataSource: Pick<DataSourceDefinition, 'Id' | 'Query'>
|
|
24
|
+
readonly defaultRequest?: Partial<TRequest>
|
|
25
|
+
readonly endpointId: string
|
|
26
|
+
readonly transforms?: Readonly<Record<string, DataSourceQueryLoweringTransform>>
|
|
27
|
+
readonly value: unknown
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export interface CreateDataSourceEndpointQueryRequestOptions<TRequest extends object> {
|
|
31
|
+
readonly dataSource: Pick<DataSourceDefinition, 'Id' | 'Query'>
|
|
32
|
+
readonly defaultRequest?: Partial<TRequest>
|
|
33
|
+
readonly endpointId: string
|
|
34
|
+
readonly paginationRequest?: object | null
|
|
35
|
+
readonly transforms?: Readonly<Record<string, DataSourceQueryLoweringTransform>>
|
|
36
|
+
readonly value?: unknown
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface CreateDataSourcePaginationRequestOptions {
|
|
40
|
+
readonly cursor?: string | null
|
|
41
|
+
readonly limit?: number | null
|
|
42
|
+
readonly offset?: number | null
|
|
43
|
+
readonly page?: number | null
|
|
44
|
+
readonly pageNumber?: number | null
|
|
45
|
+
readonly skip?: number | null
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export function createDataSourceEndpointQueryRequest<TRequest extends object>({
|
|
49
|
+
dataSource,
|
|
50
|
+
defaultRequest,
|
|
51
|
+
endpointId,
|
|
52
|
+
paginationRequest,
|
|
53
|
+
transforms,
|
|
54
|
+
value,
|
|
55
|
+
}: CreateDataSourceEndpointQueryRequestOptions<TRequest>): TRequest {
|
|
56
|
+
const loweredRequest = lowerDataSourceQueryValueToEndpointRequest<TRequest>({
|
|
57
|
+
dataSource,
|
|
58
|
+
defaultRequest,
|
|
59
|
+
endpointId,
|
|
60
|
+
transforms,
|
|
61
|
+
value: value ?? {},
|
|
62
|
+
})
|
|
63
|
+
|
|
64
|
+
return removeUndefinedProperties({
|
|
65
|
+
...(defaultRequest ?? {}),
|
|
66
|
+
...(loweredRequest ?? {}),
|
|
67
|
+
...(paginationRequest ?? {}),
|
|
68
|
+
}) as TRequest
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export function createDataSourcePaginationRequest(
|
|
72
|
+
dataSource: Pick<DataSourceDefinition, 'Query'>,
|
|
73
|
+
{
|
|
74
|
+
cursor,
|
|
75
|
+
limit,
|
|
76
|
+
offset,
|
|
77
|
+
page,
|
|
78
|
+
pageNumber,
|
|
79
|
+
skip,
|
|
80
|
+
}: CreateDataSourcePaginationRequestOptions,
|
|
81
|
+
): Record<string, unknown> {
|
|
82
|
+
const request = dataSource.Query?.Pagination?.Request
|
|
83
|
+
if (!request) {
|
|
84
|
+
return {}
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
const target: Record<string, unknown> = {}
|
|
88
|
+
writeObjectPathIfDefined(target, request.CursorField, cursor)
|
|
89
|
+
writeObjectPathIfDefined(target, request.LimitField, limit)
|
|
90
|
+
writeObjectPathIfDefined(target, request.OffsetField, offset)
|
|
91
|
+
writeObjectPathIfDefined(target, request.PageField, page)
|
|
92
|
+
writeObjectPathIfDefined(target, request.PageNumberField, pageNumber)
|
|
93
|
+
writeObjectPathIfDefined(target, request.SkipField, skip)
|
|
94
|
+
return target
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export function lowerDataSourceQueryValueToEndpointRequest<TRequest extends object>({
|
|
98
|
+
dataSource,
|
|
99
|
+
defaultRequest,
|
|
100
|
+
endpointId,
|
|
101
|
+
transforms = {},
|
|
102
|
+
value,
|
|
103
|
+
}: LowerDataSourceQueryValueOptions<TRequest>): TRequest | null {
|
|
104
|
+
const endpointBinding = findDataSourceQueryEndpointBinding(dataSource, endpointId)
|
|
105
|
+
const lowering = endpointBinding?.Lowerings.find(isPresentationValueToEndpointRequestLowering)
|
|
106
|
+
|
|
107
|
+
if (!lowering) {
|
|
108
|
+
return null
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
const request: Record<string, unknown> = {
|
|
112
|
+
...(defaultRequest ?? {}),
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
for (const fieldBinding of lowering.FieldBindings) {
|
|
116
|
+
const sourceValue = readObjectPath(value, fieldBinding.SourcePath)
|
|
117
|
+
const loweredValue = lowerFieldValue({
|
|
118
|
+
binding: fieldBinding,
|
|
119
|
+
sourceValue,
|
|
120
|
+
target: request,
|
|
121
|
+
transforms,
|
|
122
|
+
})
|
|
123
|
+
|
|
124
|
+
if (loweredValue !== undefined) {
|
|
125
|
+
writeObjectPath(request, fieldBinding.TargetPath, loweredValue)
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
return request as TRequest
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export function findDataSourceQueryEndpointBinding(
|
|
133
|
+
dataSource: Pick<DataSourceDefinition, 'Query'> | null | undefined,
|
|
134
|
+
endpointId: string,
|
|
135
|
+
): DataSourceQueryEndpointBindingDefinition | null {
|
|
136
|
+
return dataSource?.Query?.EndpointBindings.find(
|
|
137
|
+
(binding) => binding.EndpointId === endpointId,
|
|
138
|
+
) ?? null
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
function lowerFieldValue({
|
|
142
|
+
binding,
|
|
143
|
+
sourceValue,
|
|
144
|
+
target,
|
|
145
|
+
transforms,
|
|
146
|
+
}: {
|
|
147
|
+
readonly binding: QueryFieldBindingDefinition
|
|
148
|
+
readonly sourceValue: unknown
|
|
149
|
+
readonly target: Record<string, unknown>
|
|
150
|
+
readonly transforms: Readonly<Record<string, DataSourceQueryLoweringTransform>>
|
|
151
|
+
}) {
|
|
152
|
+
const initialValue =
|
|
153
|
+
sourceValue === undefined || sourceValue === null
|
|
154
|
+
? parseDefaultValue(binding.DefaultValue)
|
|
155
|
+
: sourceValue
|
|
156
|
+
const transform = binding.Transform ? transforms[binding.Transform] : undefined
|
|
157
|
+
|
|
158
|
+
if (!transform) {
|
|
159
|
+
return initialValue
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
return transform(initialValue, {
|
|
163
|
+
binding,
|
|
164
|
+
sourceValue,
|
|
165
|
+
target,
|
|
166
|
+
})
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
function isPresentationValueToEndpointRequestLowering(
|
|
170
|
+
lowering: QueryLoweringDefinition,
|
|
171
|
+
) {
|
|
172
|
+
return (
|
|
173
|
+
lowering.Kind === queryLoweringKinds.presentationValueToEndpointRequest ||
|
|
174
|
+
String(lowering.Kind).toLocaleLowerCase() === 'presentationvaluetoendpointrequest'
|
|
175
|
+
)
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
function parseDefaultValue(value: string | null | undefined) {
|
|
179
|
+
if (value === null || value === undefined) {
|
|
180
|
+
return undefined
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
const trimmed = value.trim()
|
|
184
|
+
if (
|
|
185
|
+
(trimmed.startsWith('[') && trimmed.endsWith(']')) ||
|
|
186
|
+
(trimmed.startsWith('{') && trimmed.endsWith('}'))
|
|
187
|
+
) {
|
|
188
|
+
try {
|
|
189
|
+
return JSON.parse(trimmed)
|
|
190
|
+
} catch {
|
|
191
|
+
return value
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
if (value === 'null') {
|
|
196
|
+
return null
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
if (value === 'true') {
|
|
200
|
+
return true
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
if (value === 'false') {
|
|
204
|
+
return false
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
const numberValue = Number(value)
|
|
208
|
+
return Number.isFinite(numberValue) && value.trim() !== '' ? numberValue : value
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
function removeUndefinedProperties(
|
|
212
|
+
value: Record<string, unknown>,
|
|
213
|
+
): Record<string, unknown> {
|
|
214
|
+
return Object.fromEntries(
|
|
215
|
+
Object.entries(value).filter(([, entryValue]) => entryValue !== undefined),
|
|
216
|
+
)
|
|
217
|
+
}
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
export const dateTimePresets = ['today', 'this-week', 'this-month', '30m', '1h', '2h', '6h'] as const
|
|
2
|
+
|
|
3
|
+
export type DateTimePreset = (typeof dateTimePresets)[number]
|
|
4
|
+
export type DateTimeFilterMode = 'preset' | 'range'
|
|
5
|
+
|
|
6
|
+
export interface DateTimeFilterValue {
|
|
7
|
+
readonly mode: DateTimeFilterMode
|
|
8
|
+
readonly preset: DateTimePreset
|
|
9
|
+
readonly afterLocal: string
|
|
10
|
+
readonly beforeLocal: string
|
|
11
|
+
readonly timezone: string
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface DateTimeRange {
|
|
15
|
+
readonly afterUtc?: string | null
|
|
16
|
+
readonly beforeUtc?: string | null
|
|
17
|
+
readonly timezone: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export function createDefaultDateTimeFilter(
|
|
21
|
+
timezone = resolveBrowserTimeZone(),
|
|
22
|
+
): DateTimeFilterValue {
|
|
23
|
+
return {
|
|
24
|
+
afterLocal: toDateTimeLocal(startOfToday()),
|
|
25
|
+
beforeLocal: '',
|
|
26
|
+
mode: 'preset',
|
|
27
|
+
preset: 'today',
|
|
28
|
+
timezone,
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export function normalizeDateTimeFilter(
|
|
33
|
+
value: DateTimeFilterValue,
|
|
34
|
+
): DateTimeFilterValue {
|
|
35
|
+
return {
|
|
36
|
+
afterLocal: value.afterLocal,
|
|
37
|
+
beforeLocal: value.beforeLocal,
|
|
38
|
+
mode: value.mode,
|
|
39
|
+
preset: isDateTimePreset(value.preset) ? value.preset : 'today',
|
|
40
|
+
timezone: value.timezone || resolveBrowserTimeZone(),
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export function resolveDateTimeFilterRange(
|
|
45
|
+
value: DateTimeFilterValue,
|
|
46
|
+
now = new Date(),
|
|
47
|
+
): DateTimeRange {
|
|
48
|
+
const timezone = value.timezone || resolveBrowserTimeZone()
|
|
49
|
+
|
|
50
|
+
if (value.mode === 'range') {
|
|
51
|
+
return {
|
|
52
|
+
afterUtc: localDateTimeToIso(value.afterLocal),
|
|
53
|
+
beforeUtc: localDateTimeToIso(value.beforeLocal),
|
|
54
|
+
timezone,
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
if (value.preset === 'today') {
|
|
59
|
+
return {
|
|
60
|
+
afterUtc: startOfToday(now).toISOString(),
|
|
61
|
+
beforeUtc: endOfToday(now).toISOString(),
|
|
62
|
+
timezone,
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
if (value.preset === 'this-week') {
|
|
67
|
+
return {
|
|
68
|
+
afterUtc: startOfThisWeek(now).toISOString(),
|
|
69
|
+
beforeUtc: null,
|
|
70
|
+
timezone,
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
if (value.preset === 'this-month') {
|
|
75
|
+
return {
|
|
76
|
+
afterUtc: startOfThisMonth(now).toISOString(),
|
|
77
|
+
beforeUtc: null,
|
|
78
|
+
timezone,
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
return {
|
|
83
|
+
afterUtc: new Date(now.getTime() - getPresetDurationMs(value.preset)).toISOString(),
|
|
84
|
+
beforeUtc: now.toISOString(),
|
|
85
|
+
timezone,
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export function isDateTimePreset(value: string): value is DateTimePreset {
|
|
90
|
+
return dateTimePresets.includes(value as DateTimePreset)
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function getPresetDurationMs(preset: DateTimePreset) {
|
|
94
|
+
switch (preset) {
|
|
95
|
+
case '30m':
|
|
96
|
+
return 30 * 60 * 1000
|
|
97
|
+
case '1h':
|
|
98
|
+
return 60 * 60 * 1000
|
|
99
|
+
case '2h':
|
|
100
|
+
return 2 * 60 * 60 * 1000
|
|
101
|
+
case '6h':
|
|
102
|
+
return 6 * 60 * 1000
|
|
103
|
+
case 'today':
|
|
104
|
+
case 'this-week':
|
|
105
|
+
case 'this-month':
|
|
106
|
+
return 0
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
function resolveBrowserTimeZone() {
|
|
111
|
+
return Intl.DateTimeFormat().resolvedOptions().timeZone || 'local'
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
function startOfToday(reference = new Date()) {
|
|
115
|
+
const date = new Date(reference)
|
|
116
|
+
date.setHours(0, 0, 0, 0)
|
|
117
|
+
return date
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
function endOfToday(reference = new Date()) {
|
|
121
|
+
const date = new Date(reference)
|
|
122
|
+
date.setHours(23, 59, 59, 999)
|
|
123
|
+
return date
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
function startOfThisWeek(reference = new Date()) {
|
|
127
|
+
const date = startOfToday(reference)
|
|
128
|
+
const day = date.getDay()
|
|
129
|
+
const daysSinceMonday = (day + 6) % 7
|
|
130
|
+
date.setDate(date.getDate() - daysSinceMonday)
|
|
131
|
+
return date
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
function startOfThisMonth(reference = new Date()) {
|
|
135
|
+
const date = startOfToday(reference)
|
|
136
|
+
date.setDate(1)
|
|
137
|
+
return date
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
function toDateTimeLocal(date: Date) {
|
|
141
|
+
const year = date.getFullYear()
|
|
142
|
+
const month = `${date.getMonth() + 1}`.padStart(2, '0')
|
|
143
|
+
const day = `${date.getDate()}`.padStart(2, '0')
|
|
144
|
+
const hours = `${date.getHours()}`.padStart(2, '0')
|
|
145
|
+
const minutes = `${date.getMinutes()}`.padStart(2, '0')
|
|
146
|
+
return `${year}-${month}-${day}T${hours}:${minutes}`
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
function localDateTimeToIso(value: string) {
|
|
150
|
+
if (!value) {
|
|
151
|
+
return null
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
const parsed = new Date(value)
|
|
155
|
+
return Number.isNaN(parsed.getTime()) ? null : parsed.toISOString()
|
|
156
|
+
}
|