@decaf-ts/ui-decorators 0.20.7 → 0.20.9
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/dist/ui-decorators.cjs +2 -1059
- package/dist/ui-decorators.cjs.map +1 -0
- package/dist/ui-decorators.js +2 -1090
- package/dist/ui-decorators.js.map +1 -0
- package/lib/cjs/dashboard/constants.cjs +2 -2
- package/lib/cjs/dashboard/constants.cjs.map +1 -0
- package/lib/cjs/dashboard/decorators.cjs +2 -2
- package/lib/cjs/dashboard/decorators.cjs.map +1 -0
- package/lib/cjs/dashboard/index.cjs +2 -2
- package/lib/cjs/dashboard/index.cjs.map +1 -0
- package/lib/cjs/dashboard/reader.cjs +2 -2
- package/lib/cjs/dashboard/reader.cjs.map +1 -0
- package/lib/cjs/dashboard/registry.cjs +2 -2
- package/lib/cjs/dashboard/registry.cjs.map +1 -0
- package/lib/cjs/dashboard/types.cjs +2 -2
- package/lib/cjs/dashboard/types.cjs.map +1 -0
- package/lib/cjs/graph/GraphExecutionStateMapper.cjs +2 -2
- package/lib/cjs/graph/GraphExecutionStateMapper.cjs.map +1 -0
- package/lib/cjs/graph/GraphResolution.cjs +2 -2
- package/lib/cjs/graph/GraphResolution.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphConnectionPolicy.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphCredentialReference.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphCredentialReference.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphCredentialRequirement.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphDynamicPortRule.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphIconReference.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphIconReference.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs +11 -2
- package/lib/cjs/graph/catalog/GraphManifestCompiler.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodeCapability.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphNodeCapability.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphNodeDisplayManifest.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodeManifest.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphNodeManifest.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphNodeManifestSerialization.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphNodeMethodManifest.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphNodePolicyManifest.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphParameterBase.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphParameterBase.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphParameterDefinition.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphParameterOption.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphParameterOption.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphParameterValidation.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphParameterValidation.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphPortManifest.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphPortManifest.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphResourceLocatorMode.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphValueSchema.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphValueSchema.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphValueSchemaDerivation.cjs.map +1 -0
- package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs +2 -2
- package/lib/cjs/graph/catalog/GraphVisibilityExpression.cjs.map +1 -0
- package/lib/cjs/graph/catalog/index.cjs +2 -2
- package/lib/cjs/graph/catalog/index.cjs.map +1 -0
- package/lib/cjs/graph/constants.cjs +76 -11
- package/lib/cjs/graph/constants.cjs.map +1 -0
- package/lib/cjs/graph/decorators.cjs +2 -2
- package/lib/cjs/graph/decorators.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs +2 -2
- package/lib/cjs/graph/document/GraphDecoratedWorkflowCompiler.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphEdgeInstance.cjs +2 -2
- package/lib/cjs/graph/document/GraphEdgeInstance.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphEndpoint.cjs +2 -2
- package/lib/cjs/graph/document/GraphEndpoint.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphJsonValue.cjs +2 -2
- package/lib/cjs/graph/document/GraphJsonValue.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphLoopConfiguration.cjs +2 -2
- package/lib/cjs/graph/document/GraphLoopConfiguration.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphNodeBinding.cjs +2 -2
- package/lib/cjs/graph/document/GraphNodeBinding.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphNodeInstance.cjs +2 -2
- package/lib/cjs/graph/document/GraphNodeInstance.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphWorkflowDocument.cjs +2 -2
- package/lib/cjs/graph/document/GraphWorkflowDocument.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs +2 -2
- package/lib/cjs/graph/document/GraphWorkflowDocumentBuilder.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs +2 -2
- package/lib/cjs/graph/document/GraphWorkflowDocumentReader.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs +2 -2
- package/lib/cjs/graph/document/GraphWorkflowDocumentSerializer.cjs.map +1 -0
- package/lib/cjs/graph/document/GraphWorkflowUiState.cjs +2 -2
- package/lib/cjs/graph/document/GraphWorkflowUiState.cjs.map +1 -0
- package/lib/cjs/graph/document/index.cjs +2 -2
- package/lib/cjs/graph/document/index.cjs.map +1 -0
- package/lib/cjs/graph/index.cjs +2 -2
- package/lib/cjs/graph/index.cjs.map +1 -0
- package/lib/cjs/graph/nodes/agents/agent.cjs +2 -2
- package/lib/cjs/graph/nodes/agents/agent.cjs.map +1 -0
- package/lib/cjs/graph/nodes/base.cjs +2 -2
- package/lib/cjs/graph/nodes/base.cjs.map +1 -0
- package/lib/cjs/graph/nodes/boundary/input-value.cjs +2 -2
- package/lib/cjs/graph/nodes/boundary/input-value.cjs.map +1 -0
- package/lib/cjs/graph/nodes/category-styles.cjs +2 -2
- package/lib/cjs/graph/nodes/category-styles.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/break.cjs +3 -3
- package/lib/cjs/graph/nodes/flow-control/break.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs +3 -3
- package/lib/cjs/graph/nodes/flow-control/error-boundary.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs +3 -3
- package/lib/cjs/graph/nodes/flow-control/human-approval.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/if.cjs +2 -2
- package/lib/cjs/graph/nodes/flow-control/if.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs +3 -3
- package/lib/cjs/graph/nodes/flow-control/parallel.cjs.map +1 -0
- package/lib/cjs/graph/nodes/flow-control/switch.cjs +12 -7
- package/lib/cjs/graph/nodes/flow-control/switch.cjs.map +1 -0
- package/lib/cjs/graph/nodes/index.cjs +2 -2
- package/lib/cjs/graph/nodes/index.cjs.map +1 -0
- package/lib/cjs/graph/nodes/loops/foreach.cjs +2 -2
- package/lib/cjs/graph/nodes/loops/foreach.cjs.map +1 -0
- package/lib/cjs/graph/nodes/loops/until.cjs +3 -3
- package/lib/cjs/graph/nodes/loops/until.cjs.map +1 -0
- package/lib/cjs/graph/nodes/loops/while.cjs +3 -3
- package/lib/cjs/graph/nodes/loops/while.cjs.map +1 -0
- package/lib/cjs/graph/nodes/manifests.cjs +17 -13
- package/lib/cjs/graph/nodes/manifests.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/chat.cjs +3 -3
- package/lib/cjs/graph/nodes/triggers/chat.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/event.cjs +3 -3
- package/lib/cjs/graph/nodes/triggers/event.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/form.cjs +3 -3
- package/lib/cjs/graph/nodes/triggers/form.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/manual.cjs +2 -2
- package/lib/cjs/graph/nodes/triggers/manual.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/schedule.cjs +3 -3
- package/lib/cjs/graph/nodes/triggers/schedule.cjs.map +1 -0
- package/lib/cjs/graph/nodes/triggers/webhook.cjs +3 -3
- package/lib/cjs/graph/nodes/triggers/webhook.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/code.cjs +3 -3
- package/lib/cjs/graph/nodes/utility/code.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/delay.cjs +3 -3
- package/lib/cjs/graph/nodes/utility/delay.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/log.cjs +3 -3
- package/lib/cjs/graph/nodes/utility/log.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/map.cjs +3 -3
- package/lib/cjs/graph/nodes/utility/map.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/merge.cjs +2 -2
- package/lib/cjs/graph/nodes/utility/merge.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/return.cjs +3 -3
- package/lib/cjs/graph/nodes/utility/return.cjs.map +1 -0
- package/lib/cjs/graph/nodes/utility/utility-log.cjs +3 -3
- package/lib/cjs/graph/nodes/utility/utility-log.cjs.map +1 -0
- package/lib/cjs/graph/overrides/Metadata.cjs +2 -2
- package/lib/cjs/graph/overrides/Metadata.cjs.map +1 -0
- package/lib/cjs/graph/overrides/Rendering.cjs +2 -2
- package/lib/cjs/graph/overrides/Rendering.cjs.map +1 -0
- package/lib/cjs/graph/overrides/index.cjs +2 -2
- package/lib/cjs/graph/overrides/index.cjs.map +1 -0
- package/lib/cjs/graph/overrides/overrides.cjs +2 -2
- package/lib/cjs/graph/overrides/overrides.cjs.map +1 -0
- package/lib/cjs/graph/reader.cjs +5 -2
- package/lib/cjs/graph/reader.cjs.map +1 -0
- package/lib/cjs/graph/registry.cjs +2 -2
- package/lib/cjs/graph/registry.cjs.map +1 -0
- package/lib/cjs/graph/snapshot.cjs +2 -2
- package/lib/cjs/graph/snapshot.cjs.map +1 -0
- package/lib/cjs/graph/types.cjs +2 -2
- package/lib/cjs/graph/types.cjs.map +1 -0
- package/lib/cjs/index.cjs +5 -5
- package/lib/cjs/index.cjs.map +1 -0
- package/lib/cjs/model/Renderable.cjs +2 -2
- package/lib/cjs/model/Renderable.cjs.map +1 -0
- package/lib/cjs/model/decorators.cjs +2 -2
- package/lib/cjs/model/decorators.cjs.map +1 -0
- package/lib/cjs/model/index.cjs +2 -2
- package/lib/cjs/model/index.cjs.map +1 -0
- package/lib/cjs/model/model.cjs +2 -2
- package/lib/cjs/model/model.cjs.map +1 -0
- package/lib/cjs/model/overrides.cjs +2 -2
- package/lib/cjs/model/overrides.cjs.map +1 -0
- package/lib/cjs/overrides/ModelBuilderExtensions.cjs +2 -2
- package/lib/cjs/overrides/ModelBuilderExtensions.cjs.map +1 -0
- package/lib/cjs/overrides/index.cjs +2 -2
- package/lib/cjs/overrides/index.cjs.map +1 -0
- package/lib/cjs/ui/DecafComponent.cjs +2 -2
- package/lib/cjs/ui/DecafComponent.cjs.map +1 -0
- package/lib/cjs/ui/DecafEventHandler.cjs +2 -2
- package/lib/cjs/ui/DecafEventHandler.cjs.map +1 -0
- package/lib/cjs/ui/DecafTranslateService.cjs +2 -2
- package/lib/cjs/ui/DecafTranslateService.cjs.map +1 -0
- package/lib/cjs/ui/Rendering.cjs +2 -2
- package/lib/cjs/ui/Rendering.cjs.map +1 -0
- package/lib/cjs/ui/UIValidator.cjs +2 -2
- package/lib/cjs/ui/UIValidator.cjs.map +1 -0
- package/lib/cjs/ui/constants.cjs +2 -2
- package/lib/cjs/ui/constants.cjs.map +1 -0
- package/lib/cjs/ui/decorators.cjs +2 -2
- package/lib/cjs/ui/decorators.cjs.map +1 -0
- package/lib/cjs/ui/errors.cjs +2 -2
- package/lib/cjs/ui/errors.cjs.map +1 -0
- package/lib/cjs/ui/index.cjs +2 -2
- package/lib/cjs/ui/index.cjs.map +1 -0
- package/lib/cjs/ui/interfaces/IDecafModal.cjs +2 -2
- package/lib/cjs/ui/interfaces/IDecafModal.cjs.map +1 -0
- package/lib/cjs/ui/interfaces/IDecafRouter.cjs +2 -2
- package/lib/cjs/ui/interfaces/IDecafRouter.cjs.map +1 -0
- package/lib/cjs/ui/interfaces/IDecafSpinner.cjs +2 -2
- package/lib/cjs/ui/interfaces/IDecafSpinner.cjs.map +1 -0
- package/lib/cjs/ui/interfaces/IDecafToast.cjs +2 -2
- package/lib/cjs/ui/interfaces/IDecafToast.cjs.map +1 -0
- package/lib/cjs/ui/interfaces/index.cjs +2 -2
- package/lib/cjs/ui/interfaces/index.cjs.map +1 -0
- package/lib/cjs/ui/overrides.cjs +2 -2
- package/lib/cjs/ui/overrides.cjs.map +1 -0
- package/lib/cjs/ui/types.cjs +2 -2
- package/lib/cjs/ui/types.cjs.map +1 -0
- package/lib/cjs/ui/utils.cjs +2 -2
- package/lib/cjs/ui/utils.cjs.map +1 -0
- package/lib/cjs/ui/validator.cjs +2 -2
- package/lib/cjs/ui/validator.cjs.map +1 -0
- package/lib/cjs/user-requests/UserRequestHandler.cjs +2 -2
- package/lib/cjs/user-requests/UserRequestHandler.cjs.map +1 -0
- package/lib/cjs/user-requests/constants.cjs +2 -2
- package/lib/cjs/user-requests/constants.cjs.map +1 -0
- package/lib/cjs/user-requests/decorators.cjs +2 -2
- package/lib/cjs/user-requests/decorators.cjs.map +1 -0
- package/lib/cjs/user-requests/errors.cjs +2 -2
- package/lib/cjs/user-requests/errors.cjs.map +1 -0
- package/lib/cjs/user-requests/index.cjs +2 -2
- package/lib/cjs/user-requests/index.cjs.map +1 -0
- package/lib/cjs/user-requests/types.cjs +2 -2
- package/lib/cjs/user-requests/types.cjs.map +1 -0
- package/lib/esm/dashboard/constants.js +1 -1
- package/lib/esm/dashboard/constants.js.map +1 -0
- package/lib/esm/dashboard/decorators.js +1 -1
- package/lib/esm/dashboard/decorators.js.map +1 -0
- package/lib/esm/dashboard/index.js +1 -1
- package/lib/esm/dashboard/index.js.map +1 -0
- package/lib/esm/dashboard/reader.js +1 -1
- package/lib/esm/dashboard/reader.js.map +1 -0
- package/lib/esm/dashboard/registry.js +1 -1
- package/lib/esm/dashboard/registry.js.map +1 -0
- package/lib/esm/dashboard/types.js +1 -1
- package/lib/esm/dashboard/types.js.map +1 -0
- package/lib/esm/graph/GraphExecutionStateMapper.js +1 -1
- package/lib/esm/graph/GraphExecutionStateMapper.js.map +1 -0
- package/lib/esm/graph/GraphResolution.js +1 -1
- package/lib/esm/graph/GraphResolution.js.map +1 -0
- package/lib/esm/graph/catalog/GraphConnectionPolicy.js +1 -1
- package/lib/esm/graph/catalog/GraphConnectionPolicy.js.map +1 -0
- package/lib/esm/graph/catalog/GraphCredentialReference.js +1 -1
- package/lib/esm/graph/catalog/GraphCredentialReference.js.map +1 -0
- package/lib/esm/graph/catalog/GraphCredentialRequirement.js +1 -1
- package/lib/esm/graph/catalog/GraphCredentialRequirement.js.map +1 -0
- package/lib/esm/graph/catalog/GraphDynamicPortRule.js +1 -1
- package/lib/esm/graph/catalog/GraphDynamicPortRule.js.map +1 -0
- package/lib/esm/graph/catalog/GraphIconReference.js +1 -1
- package/lib/esm/graph/catalog/GraphIconReference.js.map +1 -0
- package/lib/esm/graph/catalog/GraphManifestCompiler.js +10 -1
- package/lib/esm/graph/catalog/GraphManifestCompiler.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodeCapability.js +1 -1
- package/lib/esm/graph/catalog/GraphNodeCapability.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js +1 -1
- package/lib/esm/graph/catalog/GraphNodeDisplayManifest.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodeManifest.js +1 -1
- package/lib/esm/graph/catalog/GraphNodeManifest.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js +1 -1
- package/lib/esm/graph/catalog/GraphNodeManifestSerialization.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodeMethodManifest.js +1 -1
- package/lib/esm/graph/catalog/GraphNodeMethodManifest.js.map +1 -0
- package/lib/esm/graph/catalog/GraphNodePolicyManifest.js +1 -1
- package/lib/esm/graph/catalog/GraphNodePolicyManifest.js.map +1 -0
- package/lib/esm/graph/catalog/GraphParameterBase.js +1 -1
- package/lib/esm/graph/catalog/GraphParameterBase.js.map +1 -0
- package/lib/esm/graph/catalog/GraphParameterDefinition.js +1 -1
- package/lib/esm/graph/catalog/GraphParameterDefinition.js.map +1 -0
- package/lib/esm/graph/catalog/GraphParameterOption.js +1 -1
- package/lib/esm/graph/catalog/GraphParameterOption.js.map +1 -0
- package/lib/esm/graph/catalog/GraphParameterValidation.js +1 -1
- package/lib/esm/graph/catalog/GraphParameterValidation.js.map +1 -0
- package/lib/esm/graph/catalog/GraphPortManifest.js +1 -1
- package/lib/esm/graph/catalog/GraphPortManifest.js.map +1 -0
- package/lib/esm/graph/catalog/GraphResourceLocatorMode.js +1 -1
- package/lib/esm/graph/catalog/GraphResourceLocatorMode.js.map +1 -0
- package/lib/esm/graph/catalog/GraphValueSchema.js +1 -1
- package/lib/esm/graph/catalog/GraphValueSchema.js.map +1 -0
- package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js +1 -1
- package/lib/esm/graph/catalog/GraphValueSchemaDerivation.js.map +1 -0
- package/lib/esm/graph/catalog/GraphVisibilityExpression.js +1 -1
- package/lib/esm/graph/catalog/GraphVisibilityExpression.js.map +1 -0
- package/lib/esm/graph/catalog/index.js +1 -1
- package/lib/esm/graph/catalog/index.js.map +1 -0
- package/lib/esm/graph/constants.js +73 -9
- package/lib/esm/graph/constants.js.map +1 -0
- package/lib/esm/graph/decorators.js +1 -1
- package/lib/esm/graph/decorators.js.map +1 -0
- package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js +1 -1
- package/lib/esm/graph/document/GraphDecoratedWorkflowCompiler.js.map +1 -0
- package/lib/esm/graph/document/GraphEdgeInstance.js +1 -1
- package/lib/esm/graph/document/GraphEdgeInstance.js.map +1 -0
- package/lib/esm/graph/document/GraphEndpoint.js +1 -1
- package/lib/esm/graph/document/GraphEndpoint.js.map +1 -0
- package/lib/esm/graph/document/GraphJsonValue.js +1 -1
- package/lib/esm/graph/document/GraphJsonValue.js.map +1 -0
- package/lib/esm/graph/document/GraphLoopConfiguration.js +1 -1
- package/lib/esm/graph/document/GraphLoopConfiguration.js.map +1 -0
- package/lib/esm/graph/document/GraphNodeBinding.js +1 -1
- package/lib/esm/graph/document/GraphNodeBinding.js.map +1 -0
- package/lib/esm/graph/document/GraphNodeInstance.js +1 -1
- package/lib/esm/graph/document/GraphNodeInstance.js.map +1 -0
- package/lib/esm/graph/document/GraphWorkflowDocument.js +1 -1
- package/lib/esm/graph/document/GraphWorkflowDocument.js.map +1 -0
- package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js +1 -1
- package/lib/esm/graph/document/GraphWorkflowDocumentBuilder.js.map +1 -0
- package/lib/esm/graph/document/GraphWorkflowDocumentReader.js +1 -1
- package/lib/esm/graph/document/GraphWorkflowDocumentReader.js.map +1 -0
- package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js +1 -1
- package/lib/esm/graph/document/GraphWorkflowDocumentSerializer.js.map +1 -0
- package/lib/esm/graph/document/GraphWorkflowUiState.js +1 -1
- package/lib/esm/graph/document/GraphWorkflowUiState.js.map +1 -0
- package/lib/esm/graph/document/index.js +1 -1
- package/lib/esm/graph/document/index.js.map +1 -0
- package/lib/esm/graph/index.js +1 -1
- package/lib/esm/graph/index.js.map +1 -0
- package/lib/esm/graph/nodes/agents/agent.js +1 -1
- package/lib/esm/graph/nodes/agents/agent.js.map +1 -0
- package/lib/esm/graph/nodes/base.js +1 -1
- package/lib/esm/graph/nodes/base.js.map +1 -0
- package/lib/esm/graph/nodes/boundary/input-value.js +1 -1
- package/lib/esm/graph/nodes/boundary/input-value.js.map +1 -0
- package/lib/esm/graph/nodes/category-styles.js +1 -1
- package/lib/esm/graph/nodes/category-styles.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/break.js +2 -2
- package/lib/esm/graph/nodes/flow-control/break.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/error-boundary.js +2 -2
- package/lib/esm/graph/nodes/flow-control/error-boundary.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/human-approval.js +2 -2
- package/lib/esm/graph/nodes/flow-control/human-approval.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/if.js +1 -1
- package/lib/esm/graph/nodes/flow-control/if.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/parallel.js +2 -2
- package/lib/esm/graph/nodes/flow-control/parallel.js.map +1 -0
- package/lib/esm/graph/nodes/flow-control/switch.js +12 -7
- package/lib/esm/graph/nodes/flow-control/switch.js.map +1 -0
- package/lib/esm/graph/nodes/index.js +1 -1
- package/lib/esm/graph/nodes/index.js.map +1 -0
- package/lib/esm/graph/nodes/loops/foreach.js +1 -1
- package/lib/esm/graph/nodes/loops/foreach.js.map +1 -0
- package/lib/esm/graph/nodes/loops/until.js +2 -2
- package/lib/esm/graph/nodes/loops/until.js.map +1 -0
- package/lib/esm/graph/nodes/loops/while.js +2 -2
- package/lib/esm/graph/nodes/loops/while.js.map +1 -0
- package/lib/esm/graph/nodes/manifests.js +16 -12
- package/lib/esm/graph/nodes/manifests.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/chat.js +2 -2
- package/lib/esm/graph/nodes/triggers/chat.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/event.js +2 -2
- package/lib/esm/graph/nodes/triggers/event.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/form.js +2 -2
- package/lib/esm/graph/nodes/triggers/form.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/manual.js +1 -1
- package/lib/esm/graph/nodes/triggers/manual.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/schedule.js +2 -2
- package/lib/esm/graph/nodes/triggers/schedule.js.map +1 -0
- package/lib/esm/graph/nodes/triggers/webhook.js +2 -2
- package/lib/esm/graph/nodes/triggers/webhook.js.map +1 -0
- package/lib/esm/graph/nodes/utility/code.js +2 -2
- package/lib/esm/graph/nodes/utility/code.js.map +1 -0
- package/lib/esm/graph/nodes/utility/delay.js +2 -2
- package/lib/esm/graph/nodes/utility/delay.js.map +1 -0
- package/lib/esm/graph/nodes/utility/log.js +2 -2
- package/lib/esm/graph/nodes/utility/log.js.map +1 -0
- package/lib/esm/graph/nodes/utility/map.js +2 -2
- package/lib/esm/graph/nodes/utility/map.js.map +1 -0
- package/lib/esm/graph/nodes/utility/merge.js +1 -1
- package/lib/esm/graph/nodes/utility/merge.js.map +1 -0
- package/lib/esm/graph/nodes/utility/return.js +2 -2
- package/lib/esm/graph/nodes/utility/return.js.map +1 -0
- package/lib/esm/graph/nodes/utility/utility-log.js +2 -2
- package/lib/esm/graph/nodes/utility/utility-log.js.map +1 -0
- package/lib/esm/graph/overrides/Metadata.js +1 -1
- package/lib/esm/graph/overrides/Metadata.js.map +1 -0
- package/lib/esm/graph/overrides/Rendering.js +1 -1
- package/lib/esm/graph/overrides/Rendering.js.map +1 -0
- package/lib/esm/graph/overrides/index.js +1 -1
- package/lib/esm/graph/overrides/index.js.map +1 -0
- package/lib/esm/graph/overrides/overrides.js +1 -1
- package/lib/esm/graph/overrides/overrides.js.map +1 -0
- package/lib/esm/graph/reader.js +4 -1
- package/lib/esm/graph/reader.js.map +1 -0
- package/lib/esm/graph/registry.js +1 -1
- package/lib/esm/graph/registry.js.map +1 -0
- package/lib/esm/graph/snapshot.js +1 -1
- package/lib/esm/graph/snapshot.js.map +1 -0
- package/lib/esm/graph/types.js +1 -1
- package/lib/esm/graph/types.js.map +1 -0
- package/lib/esm/index.js +4 -4
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/model/Renderable.js +1 -1
- package/lib/esm/model/Renderable.js.map +1 -0
- package/lib/esm/model/decorators.js +1 -1
- package/lib/esm/model/decorators.js.map +1 -0
- package/lib/esm/model/index.js +1 -1
- package/lib/esm/model/index.js.map +1 -0
- package/lib/esm/model/model.js +1 -1
- package/lib/esm/model/model.js.map +1 -0
- package/lib/esm/model/overrides.js +1 -1
- package/lib/esm/model/overrides.js.map +1 -0
- package/lib/esm/overrides/ModelBuilderExtensions.js +1 -1
- package/lib/esm/overrides/ModelBuilderExtensions.js.map +1 -0
- package/lib/esm/overrides/index.js +1 -1
- package/lib/esm/overrides/index.js.map +1 -0
- package/lib/esm/ui/DecafComponent.js +1 -1
- package/lib/esm/ui/DecafComponent.js.map +1 -0
- package/lib/esm/ui/DecafEventHandler.js +1 -1
- package/lib/esm/ui/DecafEventHandler.js.map +1 -0
- package/lib/esm/ui/DecafTranslateService.js +1 -1
- package/lib/esm/ui/DecafTranslateService.js.map +1 -0
- package/lib/esm/ui/Rendering.js +1 -1
- package/lib/esm/ui/Rendering.js.map +1 -0
- package/lib/esm/ui/UIValidator.js +1 -1
- package/lib/esm/ui/UIValidator.js.map +1 -0
- package/lib/esm/ui/constants.js +1 -1
- package/lib/esm/ui/constants.js.map +1 -0
- package/lib/esm/ui/decorators.js +1 -1
- package/lib/esm/ui/decorators.js.map +1 -0
- package/lib/esm/ui/errors.js +1 -1
- package/lib/esm/ui/errors.js.map +1 -0
- package/lib/esm/ui/index.js +1 -1
- package/lib/esm/ui/index.js.map +1 -0
- package/lib/esm/ui/interfaces/IDecafModal.js +1 -1
- package/lib/esm/ui/interfaces/IDecafModal.js.map +1 -0
- package/lib/esm/ui/interfaces/IDecafRouter.js +1 -1
- package/lib/esm/ui/interfaces/IDecafRouter.js.map +1 -0
- package/lib/esm/ui/interfaces/IDecafSpinner.js +1 -1
- package/lib/esm/ui/interfaces/IDecafSpinner.js.map +1 -0
- package/lib/esm/ui/interfaces/IDecafToast.js +1 -1
- package/lib/esm/ui/interfaces/IDecafToast.js.map +1 -0
- package/lib/esm/ui/interfaces/index.js +1 -1
- package/lib/esm/ui/interfaces/index.js.map +1 -0
- package/lib/esm/ui/overrides.js +1 -1
- package/lib/esm/ui/overrides.js.map +1 -0
- package/lib/esm/ui/types.js +1 -1
- package/lib/esm/ui/types.js.map +1 -0
- package/lib/esm/ui/utils.js +1 -1
- package/lib/esm/ui/utils.js.map +1 -0
- package/lib/esm/ui/validator.js +1 -1
- package/lib/esm/ui/validator.js.map +1 -0
- package/lib/esm/user-requests/UserRequestHandler.js +1 -1
- package/lib/esm/user-requests/UserRequestHandler.js.map +1 -0
- package/lib/esm/user-requests/constants.js +1 -1
- package/lib/esm/user-requests/constants.js.map +1 -0
- package/lib/esm/user-requests/decorators.js +1 -1
- package/lib/esm/user-requests/decorators.js.map +1 -0
- package/lib/esm/user-requests/errors.js +1 -1
- package/lib/esm/user-requests/errors.js.map +1 -0
- package/lib/esm/user-requests/index.js +1 -1
- package/lib/esm/user-requests/index.js.map +1 -0
- package/lib/esm/user-requests/types.js +1 -1
- package/lib/esm/user-requests/types.js.map +1 -0
- package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.cts +17 -0
- package/lib/types/graph/catalog/GraphNodeDisplayManifest.d.mts +17 -0
- package/lib/types/graph/constants.d.cts +101 -6
- package/lib/types/graph/constants.d.mts +101 -6
- package/lib/types/graph/document/GraphNodeInstance.d.cts +20 -0
- package/lib/types/graph/document/GraphNodeInstance.d.mts +20 -0
- package/lib/types/graph/document/GraphWorkflowUiState.d.cts +8 -0
- package/lib/types/graph/document/GraphWorkflowUiState.d.mts +8 -0
- package/lib/types/index.d.cts +3 -3
- package/lib/types/index.d.mts +3 -3
- package/package.json +3 -1
|
@@ -10,6 +10,28 @@ export declare enum PortDirection {
|
|
|
10
10
|
CONNECTION = "connection"
|
|
11
11
|
}
|
|
12
12
|
export type GraphNodeKind = string;
|
|
13
|
+
/**
|
|
14
|
+
* Node face silhouette (D1, DECAF-50 §4.5). Manifest-authoritative: the
|
|
15
|
+
* projected node geometry renders this shape and its corner radius instead of a
|
|
16
|
+
* hardcoded template CSS value.
|
|
17
|
+
*/
|
|
18
|
+
export type GraphNodeShape = "rounded" | "square" | "pill";
|
|
19
|
+
/**
|
|
20
|
+
* Manifest-declared, value-driven display rule (D1, DECAF-50 §4.5). The manifest
|
|
21
|
+
* `display` metadata is the single authority for node geometry; content-driven
|
|
22
|
+
* growth is expressed here and evaluated from the node instance's parameters —
|
|
23
|
+
* never as a hardcoded per-node formula or a direct DOM style write.
|
|
24
|
+
*/
|
|
25
|
+
export type GraphNodeSizeRule = {
|
|
26
|
+
/** Rule kind. Only `parameterCount` is defined: growth tracks an array parameter's length. */
|
|
27
|
+
type: "parameterCount";
|
|
28
|
+
/** Node-instance parameter whose item count drives the growth (e.g. `cases`). */
|
|
29
|
+
parameter: string;
|
|
30
|
+
/** Dimension that grows. */
|
|
31
|
+
dimension: "height" | "width";
|
|
32
|
+
/** Increment added per parameter item. */
|
|
33
|
+
perItem: number;
|
|
34
|
+
};
|
|
13
35
|
export type GraphConnectionRule = {
|
|
14
36
|
allowSelf?: boolean;
|
|
15
37
|
allowMultiple?: boolean;
|
|
@@ -30,6 +52,22 @@ export type GraphNodeMetadata = {
|
|
|
30
52
|
maxChildren?: number;
|
|
31
53
|
minWidth?: number;
|
|
32
54
|
width?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Node face silhouette (D1, DECAF-50 §4.5). Manifest-authoritative;
|
|
57
|
+
* folded into the manifest display fields by the D1 revision.
|
|
58
|
+
*/
|
|
59
|
+
shape?: GraphNodeShape;
|
|
60
|
+
/**
|
|
61
|
+
* Node corner radius in pixels (D1, DECAF-50 §4.5). Manifest-authoritative;
|
|
62
|
+
* folded into the manifest display fields by the D1 revision.
|
|
63
|
+
*/
|
|
64
|
+
cornerRadius?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Manifest-declared, value-driven display rules (D1, DECAF-50 §4.5). Content
|
|
67
|
+
* growth (e.g. Switch case count) is expressed here and evaluated from the
|
|
68
|
+
* node instance's parameters — never hardcoded per-node formulas.
|
|
69
|
+
*/
|
|
70
|
+
sizeRules?: GraphNodeSizeRule[];
|
|
33
71
|
connectionRules?: GraphConnectionRule;
|
|
34
72
|
metadata?: Record<string, unknown>;
|
|
35
73
|
/**
|
|
@@ -222,6 +260,21 @@ export type GraphNodeDefinition = {
|
|
|
222
260
|
ui?: Record<string, any>;
|
|
223
261
|
graph?: GraphNodeMetadata;
|
|
224
262
|
ports: GraphPortDefinition[];
|
|
263
|
+
/**
|
|
264
|
+
* Node face silhouette (D1, DECAF-50 §4.5), copied from
|
|
265
|
+
* {@link GraphNodeMetadata.shape} by `graphDefinitionOf`.
|
|
266
|
+
*/
|
|
267
|
+
shape?: GraphNodeShape;
|
|
268
|
+
/**
|
|
269
|
+
* Node corner radius in pixels (D1, DECAF-50 §4.5), copied from
|
|
270
|
+
* {@link GraphNodeMetadata.cornerRadius} by `graphDefinitionOf`.
|
|
271
|
+
*/
|
|
272
|
+
cornerRadius?: number;
|
|
273
|
+
/**
|
|
274
|
+
* Manifest-declared, value-driven display rules (D1, DECAF-50 §4.5), copied
|
|
275
|
+
* from {@link GraphNodeMetadata.sizeRules} by `graphDefinitionOf`.
|
|
276
|
+
*/
|
|
277
|
+
sizeRules?: GraphNodeSizeRule[];
|
|
225
278
|
/**
|
|
226
279
|
* Effective color resolved from the category registry (or the node's
|
|
227
280
|
* explicit `color` override). Computed by `graphDefinitionOf`.
|
|
@@ -262,6 +315,33 @@ export interface GraphCategoryStyle {
|
|
|
262
315
|
* color/icon is set on the node.
|
|
263
316
|
*/
|
|
264
317
|
export declare const GRAPH_DEFAULT_CATEGORY_STYLE: GraphCategoryStyle;
|
|
318
|
+
/**
|
|
319
|
+
* Fallback node size in pixels when a manifest declares no `width`/`height`
|
|
320
|
+
* (D1, DECAF-50 §4.5). The manifest display remains the authority; this value
|
|
321
|
+
* only fills an absent manifest dimension, never overriding a declared one.
|
|
322
|
+
*/
|
|
323
|
+
export declare const GRAPH_DEFAULT_NODE_SIZE = 96;
|
|
324
|
+
/**
|
|
325
|
+
* Default node corner radius in pixels (D1, DECAF-50 §4.5) applied only when the
|
|
326
|
+
* manifest declares no `cornerRadius`. Folded into the manifest display fields by
|
|
327
|
+
* the D1 revision; no template CSS pins the radius.
|
|
328
|
+
*/
|
|
329
|
+
export declare const GRAPH_DEFAULT_NODE_CORNER_RADIUS = 18;
|
|
330
|
+
/**
|
|
331
|
+
* Evaluates a node definition's manifest-declared, value-driven display rules
|
|
332
|
+
* (D1, DECAF-50 §4.5) against per-parameter item counts. Content growth is
|
|
333
|
+
* driven by the manifest, never by hardcoded per-node formulas: each matching
|
|
334
|
+
* `parameterCount` rule adds `perItem * count` to its dimension. Falls back to the
|
|
335
|
+
* manifest `width`/`height` when no rule applies.
|
|
336
|
+
*
|
|
337
|
+
* @param definition - The manifest definition carrying `width`/`height`/`sizeRules`.
|
|
338
|
+
* @param parameterCounts - Item counts keyed by parameter id (e.g. `cases`).
|
|
339
|
+
* @returns The resolved `{ width, height }` in pixels.
|
|
340
|
+
*/
|
|
341
|
+
export declare function graphNodeSizeOf(definition: Pick<GraphNodeDefinition, "width" | "height" | "sizeRules">, parameterCounts?: Record<string, number>): {
|
|
342
|
+
width: number;
|
|
343
|
+
height: number;
|
|
344
|
+
};
|
|
265
345
|
/**
|
|
266
346
|
* Registers a category style (color + optional icon) in the global registry.
|
|
267
347
|
* Call this at module init time (e.g. in the engine's node declarations) to
|
|
@@ -273,15 +353,30 @@ export declare function registerGraphCategoryStyle(category: string, style: Grap
|
|
|
273
353
|
*/
|
|
274
354
|
export declare function graphCategoryStyleOf(category?: string): GraphCategoryStyle;
|
|
275
355
|
/**
|
|
276
|
-
* Resolves the effective color for a node
|
|
277
|
-
*
|
|
356
|
+
* Resolves the effective color for a node (D7/G3-22, DECAF-50 §4.5).
|
|
357
|
+
*
|
|
358
|
+
* The **category base colour is authoritative**: every node of a registered
|
|
359
|
+
* category renders that one base colour, so same-category nodes never diverge.
|
|
360
|
+
* An explicit per-node `color` is an override applied at this single precedence
|
|
361
|
+
* point — it only wins when the category has no registered base style.
|
|
362
|
+
*
|
|
363
|
+
* @param explicitColor - The node's explicit per-node colour override, when any.
|
|
364
|
+
* @param category - The node's display category.
|
|
365
|
+
* @param override - A user-applied per-node colour override; wins over everything.
|
|
366
|
+
* @returns The resolved colour.
|
|
278
367
|
*/
|
|
279
|
-
export declare function resolveEffectiveColor(explicitColor?: string, category?: string): string;
|
|
368
|
+
export declare function resolveEffectiveColor(explicitColor?: string, category?: string, override?: string): string;
|
|
280
369
|
/**
|
|
281
|
-
* Resolves the effective icon for a node
|
|
282
|
-
* category icon
|
|
370
|
+
* Resolves the effective icon for a node (D7/G3-22, DECAF-50 §4.5). The
|
|
371
|
+
* **category base icon is authoritative**; an explicit per-node `icon` is an
|
|
372
|
+
* override applied at this single precedence point.
|
|
373
|
+
*
|
|
374
|
+
* @param explicitIcon - The node's explicit per-node icon override, when any.
|
|
375
|
+
* @param category - The node's display category.
|
|
376
|
+
* @param override - A user-applied per-node icon override; wins over everything.
|
|
377
|
+
* @returns The resolved icon name.
|
|
283
378
|
*/
|
|
284
|
-
export declare function resolveEffectiveIcon(explicitIcon?: string, category?: string): string;
|
|
379
|
+
export declare function resolveEffectiveIcon(explicitIcon?: string, category?: string, override?: string): string;
|
|
285
380
|
import type { GraphRunStatus } from "./types.d.cts";
|
|
286
381
|
/**
|
|
287
382
|
* Disabled-node execution semantics (DECAF-50 §4.9).
|
|
@@ -10,6 +10,28 @@ export declare enum PortDirection {
|
|
|
10
10
|
CONNECTION = "connection"
|
|
11
11
|
}
|
|
12
12
|
export type GraphNodeKind = string;
|
|
13
|
+
/**
|
|
14
|
+
* Node face silhouette (D1, DECAF-50 §4.5). Manifest-authoritative: the
|
|
15
|
+
* projected node geometry renders this shape and its corner radius instead of a
|
|
16
|
+
* hardcoded template CSS value.
|
|
17
|
+
*/
|
|
18
|
+
export type GraphNodeShape = "rounded" | "square" | "pill";
|
|
19
|
+
/**
|
|
20
|
+
* Manifest-declared, value-driven display rule (D1, DECAF-50 §4.5). The manifest
|
|
21
|
+
* `display` metadata is the single authority for node geometry; content-driven
|
|
22
|
+
* growth is expressed here and evaluated from the node instance's parameters —
|
|
23
|
+
* never as a hardcoded per-node formula or a direct DOM style write.
|
|
24
|
+
*/
|
|
25
|
+
export type GraphNodeSizeRule = {
|
|
26
|
+
/** Rule kind. Only `parameterCount` is defined: growth tracks an array parameter's length. */
|
|
27
|
+
type: "parameterCount";
|
|
28
|
+
/** Node-instance parameter whose item count drives the growth (e.g. `cases`). */
|
|
29
|
+
parameter: string;
|
|
30
|
+
/** Dimension that grows. */
|
|
31
|
+
dimension: "height" | "width";
|
|
32
|
+
/** Increment added per parameter item. */
|
|
33
|
+
perItem: number;
|
|
34
|
+
};
|
|
13
35
|
export type GraphConnectionRule = {
|
|
14
36
|
allowSelf?: boolean;
|
|
15
37
|
allowMultiple?: boolean;
|
|
@@ -30,6 +52,22 @@ export type GraphNodeMetadata = {
|
|
|
30
52
|
maxChildren?: number;
|
|
31
53
|
minWidth?: number;
|
|
32
54
|
width?: number;
|
|
55
|
+
/**
|
|
56
|
+
* Node face silhouette (D1, DECAF-50 §4.5). Manifest-authoritative;
|
|
57
|
+
* folded into the manifest display fields by the D1 revision.
|
|
58
|
+
*/
|
|
59
|
+
shape?: GraphNodeShape;
|
|
60
|
+
/**
|
|
61
|
+
* Node corner radius in pixels (D1, DECAF-50 §4.5). Manifest-authoritative;
|
|
62
|
+
* folded into the manifest display fields by the D1 revision.
|
|
63
|
+
*/
|
|
64
|
+
cornerRadius?: number;
|
|
65
|
+
/**
|
|
66
|
+
* Manifest-declared, value-driven display rules (D1, DECAF-50 §4.5). Content
|
|
67
|
+
* growth (e.g. Switch case count) is expressed here and evaluated from the
|
|
68
|
+
* node instance's parameters — never hardcoded per-node formulas.
|
|
69
|
+
*/
|
|
70
|
+
sizeRules?: GraphNodeSizeRule[];
|
|
33
71
|
connectionRules?: GraphConnectionRule;
|
|
34
72
|
metadata?: Record<string, unknown>;
|
|
35
73
|
/**
|
|
@@ -222,6 +260,21 @@ export type GraphNodeDefinition = {
|
|
|
222
260
|
ui?: Record<string, any>;
|
|
223
261
|
graph?: GraphNodeMetadata;
|
|
224
262
|
ports: GraphPortDefinition[];
|
|
263
|
+
/**
|
|
264
|
+
* Node face silhouette (D1, DECAF-50 §4.5), copied from
|
|
265
|
+
* {@link GraphNodeMetadata.shape} by `graphDefinitionOf`.
|
|
266
|
+
*/
|
|
267
|
+
shape?: GraphNodeShape;
|
|
268
|
+
/**
|
|
269
|
+
* Node corner radius in pixels (D1, DECAF-50 §4.5), copied from
|
|
270
|
+
* {@link GraphNodeMetadata.cornerRadius} by `graphDefinitionOf`.
|
|
271
|
+
*/
|
|
272
|
+
cornerRadius?: number;
|
|
273
|
+
/**
|
|
274
|
+
* Manifest-declared, value-driven display rules (D1, DECAF-50 §4.5), copied
|
|
275
|
+
* from {@link GraphNodeMetadata.sizeRules} by `graphDefinitionOf`.
|
|
276
|
+
*/
|
|
277
|
+
sizeRules?: GraphNodeSizeRule[];
|
|
225
278
|
/**
|
|
226
279
|
* Effective color resolved from the category registry (or the node's
|
|
227
280
|
* explicit `color` override). Computed by `graphDefinitionOf`.
|
|
@@ -262,6 +315,33 @@ export interface GraphCategoryStyle {
|
|
|
262
315
|
* color/icon is set on the node.
|
|
263
316
|
*/
|
|
264
317
|
export declare const GRAPH_DEFAULT_CATEGORY_STYLE: GraphCategoryStyle;
|
|
318
|
+
/**
|
|
319
|
+
* Fallback node size in pixels when a manifest declares no `width`/`height`
|
|
320
|
+
* (D1, DECAF-50 §4.5). The manifest display remains the authority; this value
|
|
321
|
+
* only fills an absent manifest dimension, never overriding a declared one.
|
|
322
|
+
*/
|
|
323
|
+
export declare const GRAPH_DEFAULT_NODE_SIZE = 96;
|
|
324
|
+
/**
|
|
325
|
+
* Default node corner radius in pixels (D1, DECAF-50 §4.5) applied only when the
|
|
326
|
+
* manifest declares no `cornerRadius`. Folded into the manifest display fields by
|
|
327
|
+
* the D1 revision; no template CSS pins the radius.
|
|
328
|
+
*/
|
|
329
|
+
export declare const GRAPH_DEFAULT_NODE_CORNER_RADIUS = 18;
|
|
330
|
+
/**
|
|
331
|
+
* Evaluates a node definition's manifest-declared, value-driven display rules
|
|
332
|
+
* (D1, DECAF-50 §4.5) against per-parameter item counts. Content growth is
|
|
333
|
+
* driven by the manifest, never by hardcoded per-node formulas: each matching
|
|
334
|
+
* `parameterCount` rule adds `perItem * count` to its dimension. Falls back to the
|
|
335
|
+
* manifest `width`/`height` when no rule applies.
|
|
336
|
+
*
|
|
337
|
+
* @param definition - The manifest definition carrying `width`/`height`/`sizeRules`.
|
|
338
|
+
* @param parameterCounts - Item counts keyed by parameter id (e.g. `cases`).
|
|
339
|
+
* @returns The resolved `{ width, height }` in pixels.
|
|
340
|
+
*/
|
|
341
|
+
export declare function graphNodeSizeOf(definition: Pick<GraphNodeDefinition, "width" | "height" | "sizeRules">, parameterCounts?: Record<string, number>): {
|
|
342
|
+
width: number;
|
|
343
|
+
height: number;
|
|
344
|
+
};
|
|
265
345
|
/**
|
|
266
346
|
* Registers a category style (color + optional icon) in the global registry.
|
|
267
347
|
* Call this at module init time (e.g. in the engine's node declarations) to
|
|
@@ -273,15 +353,30 @@ export declare function registerGraphCategoryStyle(category: string, style: Grap
|
|
|
273
353
|
*/
|
|
274
354
|
export declare function graphCategoryStyleOf(category?: string): GraphCategoryStyle;
|
|
275
355
|
/**
|
|
276
|
-
* Resolves the effective color for a node
|
|
277
|
-
*
|
|
356
|
+
* Resolves the effective color for a node (D7/G3-22, DECAF-50 §4.5).
|
|
357
|
+
*
|
|
358
|
+
* The **category base colour is authoritative**: every node of a registered
|
|
359
|
+
* category renders that one base colour, so same-category nodes never diverge.
|
|
360
|
+
* An explicit per-node `color` is an override applied at this single precedence
|
|
361
|
+
* point — it only wins when the category has no registered base style.
|
|
362
|
+
*
|
|
363
|
+
* @param explicitColor - The node's explicit per-node colour override, when any.
|
|
364
|
+
* @param category - The node's display category.
|
|
365
|
+
* @param override - A user-applied per-node colour override; wins over everything.
|
|
366
|
+
* @returns The resolved colour.
|
|
278
367
|
*/
|
|
279
|
-
export declare function resolveEffectiveColor(explicitColor?: string, category?: string): string;
|
|
368
|
+
export declare function resolveEffectiveColor(explicitColor?: string, category?: string, override?: string): string;
|
|
280
369
|
/**
|
|
281
|
-
* Resolves the effective icon for a node
|
|
282
|
-
* category icon
|
|
370
|
+
* Resolves the effective icon for a node (D7/G3-22, DECAF-50 §4.5). The
|
|
371
|
+
* **category base icon is authoritative**; an explicit per-node `icon` is an
|
|
372
|
+
* override applied at this single precedence point.
|
|
373
|
+
*
|
|
374
|
+
* @param explicitIcon - The node's explicit per-node icon override, when any.
|
|
375
|
+
* @param category - The node's display category.
|
|
376
|
+
* @param override - A user-applied per-node icon override; wins over everything.
|
|
377
|
+
* @returns The resolved icon name.
|
|
283
378
|
*/
|
|
284
|
-
export declare function resolveEffectiveIcon(explicitIcon?: string, category?: string): string;
|
|
379
|
+
export declare function resolveEffectiveIcon(explicitIcon?: string, category?: string, override?: string): string;
|
|
285
380
|
import type { GraphRunStatus } from "./types.d.mts";
|
|
286
381
|
/**
|
|
287
382
|
* Disabled-node execution semantics (DECAF-50 §4.9).
|
|
@@ -2,6 +2,21 @@ import type { GraphInputBinding, GraphOutputBinding } from "./GraphNodeBinding.d
|
|
|
2
2
|
import type { GraphJsonValue } from "./GraphJsonValue.d.cts";
|
|
3
3
|
import type { GraphLoopConfiguration } from "./GraphLoopConfiguration.d.cts";
|
|
4
4
|
import type { GraphNodeUiState } from "./GraphWorkflowUiState.d.cts";
|
|
5
|
+
/**
|
|
6
|
+
* Document-carried UI data-pinning state (D4, DECAF-50 §4.22). Data pinning
|
|
7
|
+
* freezes the node's parameter values so downstream runs reuse them, and is a
|
|
8
|
+
* distinct concept from the engine's cache pinning (`GraphPinning`): this state is
|
|
9
|
+
* written into the canonical document and survives save/load round-trips.
|
|
10
|
+
*/
|
|
11
|
+
export interface GraphNodePinState {
|
|
12
|
+
/**
|
|
13
|
+
* Parameter values frozen when the node was pinned. Downstream runs apply this
|
|
14
|
+
* snapshot on top of the node's live parameters.
|
|
15
|
+
*/
|
|
16
|
+
parameters: Record<string, GraphJsonValue>;
|
|
17
|
+
/** ISO-8601 timestamp of when the pin was captured, when known. */
|
|
18
|
+
pinnedAt?: string;
|
|
19
|
+
}
|
|
5
20
|
export interface GraphNodeInstance {
|
|
6
21
|
id: string;
|
|
7
22
|
kind: string;
|
|
@@ -13,4 +28,9 @@ export interface GraphNodeInstance {
|
|
|
13
28
|
metadata?: Record<string, GraphJsonValue>;
|
|
14
29
|
loop?: GraphLoopConfiguration;
|
|
15
30
|
ui?: GraphNodeUiState;
|
|
31
|
+
/**
|
|
32
|
+
* UI data-pinning state (D4, DECAF-50 §4.22). Present iff the node is
|
|
33
|
+
* pinned; the frozen parameter snapshot is what downstream runs reuse.
|
|
34
|
+
*/
|
|
35
|
+
pinned?: GraphNodePinState;
|
|
16
36
|
}
|
|
@@ -2,6 +2,21 @@ import type { GraphInputBinding, GraphOutputBinding } from "./GraphNodeBinding.d
|
|
|
2
2
|
import type { GraphJsonValue } from "./GraphJsonValue.d.mts";
|
|
3
3
|
import type { GraphLoopConfiguration } from "./GraphLoopConfiguration.d.mts";
|
|
4
4
|
import type { GraphNodeUiState } from "./GraphWorkflowUiState.d.mts";
|
|
5
|
+
/**
|
|
6
|
+
* Document-carried UI data-pinning state (D4, DECAF-50 §4.22). Data pinning
|
|
7
|
+
* freezes the node's parameter values so downstream runs reuse them, and is a
|
|
8
|
+
* distinct concept from the engine's cache pinning (`GraphPinning`): this state is
|
|
9
|
+
* written into the canonical document and survives save/load round-trips.
|
|
10
|
+
*/
|
|
11
|
+
export interface GraphNodePinState {
|
|
12
|
+
/**
|
|
13
|
+
* Parameter values frozen when the node was pinned. Downstream runs apply this
|
|
14
|
+
* snapshot on top of the node's live parameters.
|
|
15
|
+
*/
|
|
16
|
+
parameters: Record<string, GraphJsonValue>;
|
|
17
|
+
/** ISO-8601 timestamp of when the pin was captured, when known. */
|
|
18
|
+
pinnedAt?: string;
|
|
19
|
+
}
|
|
5
20
|
export interface GraphNodeInstance {
|
|
6
21
|
id: string;
|
|
7
22
|
kind: string;
|
|
@@ -13,4 +28,9 @@ export interface GraphNodeInstance {
|
|
|
13
28
|
metadata?: Record<string, GraphJsonValue>;
|
|
14
29
|
loop?: GraphLoopConfiguration;
|
|
15
30
|
ui?: GraphNodeUiState;
|
|
31
|
+
/**
|
|
32
|
+
* UI data-pinning state (D4, DECAF-50 §4.22). Present iff the node is
|
|
33
|
+
* pinned; the frozen parameter snapshot is what downstream runs reuse.
|
|
34
|
+
*/
|
|
35
|
+
pinned?: GraphNodePinState;
|
|
16
36
|
}
|
|
@@ -13,6 +13,14 @@ export type GraphNodeUiState = {
|
|
|
13
13
|
width?: number;
|
|
14
14
|
height?: number;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Explicit user resize flag (D1, DECAF-50 §4.5). Only a genuine user resize
|
|
18
|
+
* sets this; a carried default or template CSS never wins over the manifest
|
|
19
|
+
* display. `ui.size` is honoured by projection only when this is `true`.
|
|
20
|
+
*/
|
|
21
|
+
resized?: boolean;
|
|
22
|
+
/** Explicit user per-node colour override (D7, DECAF-50 §4.5), when any. */
|
|
23
|
+
color?: string;
|
|
16
24
|
expanded?: boolean;
|
|
17
25
|
selectedTab?: string;
|
|
18
26
|
};
|
|
@@ -13,6 +13,14 @@ export type GraphNodeUiState = {
|
|
|
13
13
|
width?: number;
|
|
14
14
|
height?: number;
|
|
15
15
|
};
|
|
16
|
+
/**
|
|
17
|
+
* Explicit user resize flag (D1, DECAF-50 §4.5). Only a genuine user resize
|
|
18
|
+
* sets this; a carried default or template CSS never wins over the manifest
|
|
19
|
+
* display. `ui.size` is honoured by projection only when this is `true`.
|
|
20
|
+
*/
|
|
21
|
+
resized?: boolean;
|
|
22
|
+
/** Explicit user per-node colour override (D7, DECAF-50 §4.5), when any. */
|
|
23
|
+
color?: string;
|
|
16
24
|
expanded?: boolean;
|
|
17
25
|
selectedTab?: string;
|
|
18
26
|
};
|
package/lib/types/index.d.cts
CHANGED
|
@@ -16,19 +16,19 @@ export * from "./dashboard/index.d.cts";
|
|
|
16
16
|
* @const VERSION
|
|
17
17
|
* @memberOf module:ui-decorators
|
|
18
18
|
*/
|
|
19
|
-
export declare const VERSION = "0.20.
|
|
19
|
+
export declare const VERSION = "0.20.8";
|
|
20
20
|
/**
|
|
21
21
|
* @description Represents the current commit hash of the module build.
|
|
22
22
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
23
23
|
* the placeholder with the actual commit hash at publish time.
|
|
24
24
|
* @const COMMIT
|
|
25
25
|
*/
|
|
26
|
-
export declare const COMMIT = "
|
|
26
|
+
export declare const COMMIT = "0285f65";
|
|
27
27
|
/**
|
|
28
28
|
* @description Represents the full version string of the module.
|
|
29
29
|
* @summary Stores the semver version and commit hash for the package.
|
|
30
30
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
31
31
|
* @const FULL_VERSION
|
|
32
32
|
*/
|
|
33
|
-
export declare const FULL_VERSION = "0.20.
|
|
33
|
+
export declare const FULL_VERSION = "0.20.8-0285f65";
|
|
34
34
|
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
package/lib/types/index.d.mts
CHANGED
|
@@ -16,19 +16,19 @@ export * from "./dashboard/index.d.mts";
|
|
|
16
16
|
* @const VERSION
|
|
17
17
|
* @memberOf module:ui-decorators
|
|
18
18
|
*/
|
|
19
|
-
export declare const VERSION = "0.20.
|
|
19
|
+
export declare const VERSION = "0.20.8";
|
|
20
20
|
/**
|
|
21
21
|
* @description Represents the current commit hash of the module build.
|
|
22
22
|
* @summary Stores the current git commit hash for the package. The build replaces
|
|
23
23
|
* the placeholder with the actual commit hash at publish time.
|
|
24
24
|
* @const COMMIT
|
|
25
25
|
*/
|
|
26
|
-
export declare const COMMIT = "
|
|
26
|
+
export declare const COMMIT = "0285f65";
|
|
27
27
|
/**
|
|
28
28
|
* @description Represents the full version string of the module.
|
|
29
29
|
* @summary Stores the semver version and commit hash for the package.
|
|
30
30
|
* The build replaces the placeholder with the actual `<version>-<commit>` value at publish time.
|
|
31
31
|
* @const FULL_VERSION
|
|
32
32
|
*/
|
|
33
|
-
export declare const FULL_VERSION = "0.20.
|
|
33
|
+
export declare const FULL_VERSION = "0.20.8-0285f65";
|
|
34
34
|
export declare const PACKAGE_NAME = "@decaf-ts/ui-decorators";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@decaf-ts/ui-decorators",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.9",
|
|
4
4
|
"description": "Extension of decorator validation to ui elements to allow for web integration",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -128,6 +128,8 @@
|
|
|
128
128
|
"main": "./lib/cjs/index.cjs",
|
|
129
129
|
"module": "./lib/esm/index.js",
|
|
130
130
|
"sideEffects": [
|
|
131
|
+
"./lib/esm/index.js",
|
|
132
|
+
"./lib/cjs/index.cjs",
|
|
131
133
|
"./lib/esm/overrides/index.js",
|
|
132
134
|
"./lib/esm/graph/overrides/index.js",
|
|
133
135
|
"./lib/esm/graph/overrides/overrides.js",
|