@mat3ra/wode 2026.5.23-0 → 2026.6.5-0
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/.babelrc +1 -1
- package/dist/js/Subworkflow.d.ts +714 -0
- package/dist/js/Subworkflow.js +397 -0
- package/dist/js/Workflow.d.ts +82 -0
- package/dist/js/Workflow.js +286 -0
- package/dist/js/WorkflowDesignerMaterial.d.ts +21 -0
- package/dist/js/WorkflowDesignerMaterial.js +26 -0
- package/dist/js/context/mixins/ApplicationContextMixin.d.ts +10 -0
- package/dist/js/context/mixins/ApplicationContextMixin.js +10 -17
- package/dist/js/context/mixins/MaterialContextMixin.d.ts +18 -0
- package/dist/js/context/mixins/MaterialContextMixin.js +14 -38
- package/dist/js/context/mixins/MaterialsContextMixin.d.ts +10 -0
- package/dist/js/context/mixins/MaterialsContextMixin.js +11 -17
- package/dist/js/context/mixins/MaterialsSetContextMixin.d.ts +14 -0
- package/dist/js/context/mixins/MaterialsSetContextMixin.js +21 -23
- package/dist/js/context/providers/BoundaryConditionsFormDataManager.d.ts +30 -0
- package/dist/js/context/providers/BoundaryConditionsFormDataManager.js +62 -0
- package/dist/js/context/providers/CollinearMagnetizationDataManager.d.ts +42 -0
- package/dist/js/context/providers/CollinearMagnetizationDataManager.js +101 -0
- package/dist/js/context/providers/Hubbard/HubbardContextManagerLegacy.d.ts +29 -0
- package/dist/js/context/providers/Hubbard/HubbardContextManagerLegacy.js +69 -0
- package/dist/js/context/providers/Hubbard/HubbardContextProvider.d.ts +20 -0
- package/dist/js/context/providers/Hubbard/HubbardContextProvider.js +47 -0
- package/dist/js/context/providers/Hubbard/HubbardJContextManager.d.ts +22 -0
- package/dist/js/context/providers/Hubbard/HubbardJContextManager.js +61 -0
- package/dist/js/context/providers/Hubbard/HubbardUContextManager.d.ts +22 -0
- package/dist/js/context/providers/Hubbard/HubbardUContextManager.js +57 -0
- package/dist/js/context/providers/Hubbard/HubbardVContextManager.d.ts +22 -0
- package/dist/js/context/providers/Hubbard/HubbardVContextManager.js +79 -0
- package/dist/js/context/providers/IonDynamicsDataManager.d.ts +27 -0
- package/dist/js/context/providers/IonDynamicsDataManager.js +48 -0
- package/dist/js/context/providers/MLSettingsDataManager.d.ts +24 -0
- package/dist/js/context/providers/MLSettingsDataManager.js +42 -0
- package/dist/js/context/providers/MLTrainTestSplitDataManager.d.ts +23 -0
- package/dist/js/context/providers/MLTrainTestSplitDataManager.js +40 -0
- package/dist/js/context/providers/NEBFormDataManager.d.ts +23 -0
- package/dist/js/context/providers/NEBFormDataManager.js +39 -0
- package/dist/js/context/providers/NonCollinearMagnetizationDataManager.d.ts +78 -0
- package/dist/js/context/providers/NonCollinearMagnetizationDataManager.js +181 -0
- package/dist/js/context/providers/PlanewaveCutoffDataManager.d.ts +26 -0
- package/dist/js/context/providers/PlanewaveCutoffDataManager.js +69 -0
- package/dist/js/context/providers/PointsGrid/IGridFormDataManager.d.ts +13 -0
- package/dist/js/context/providers/PointsGrid/IGridFormDataManager.js +23 -0
- package/dist/js/context/providers/PointsGrid/KGridFormDataManager.d.ts +15 -0
- package/dist/js/context/providers/PointsGrid/KGridFormDataManager.js +30 -0
- package/dist/js/context/providers/PointsGrid/PointsGridFormDataProvider.d.ts +171 -0
- package/dist/js/context/providers/PointsGrid/PointsGridFormDataProvider.js +270 -0
- package/dist/js/context/providers/PointsGrid/QGridFormDataManager.d.ts +13 -0
- package/dist/js/context/providers/PointsGrid/QGridFormDataManager.js +23 -0
- package/dist/js/context/providers/PointsPath/ExplicitKPath2PIBAFormDataManager.d.ts +10 -0
- package/dist/js/context/providers/PointsPath/ExplicitKPath2PIBAFormDataManager.js +19 -0
- package/dist/js/context/providers/PointsPath/ExplicitKPathFormDataManager.d.ts +9 -0
- package/dist/js/context/providers/PointsPath/ExplicitKPathFormDataManager.js +18 -0
- package/dist/js/context/providers/PointsPath/IPathFormDataManager.d.ts +8 -0
- package/dist/js/context/providers/PointsPath/IPathFormDataManager.js +17 -0
- package/dist/js/context/providers/PointsPath/KPathFormDataManager.d.ts +8 -0
- package/dist/js/context/providers/PointsPath/KPathFormDataManager.js +17 -0
- package/dist/js/context/providers/PointsPath/PointsPathFormDataProvider.d.ts +40 -0
- package/dist/js/context/providers/PointsPath/PointsPathFormDataProvider.js +125 -0
- package/dist/js/context/providers/PointsPath/QPathFormDataManager.d.ts +8 -0
- package/dist/js/context/providers/PointsPath/QPathFormDataManager.js +17 -0
- package/dist/js/context/providers/base/ContextProvider.d.ts +75 -0
- package/dist/js/context/providers/base/ContextProvider.js +87 -0
- package/dist/js/context/providers/base/JSONSchemaDataProvider.d.ts +16 -0
- package/dist/js/context/providers/base/JSONSchemaDataProvider.js +17 -0
- package/dist/js/context/providers/base/JSONSchemaFormDataProvider.d.ts +19 -0
- package/dist/js/context/providers/base/JSONSchemaFormDataProvider.js +32 -0
- package/dist/js/context/providers/by_application/espresso/QENEBInputDataManager.d.ts +26 -0
- package/dist/js/context/providers/by_application/espresso/QENEBInputDataManager.js +54 -0
- package/dist/js/context/providers/by_application/espresso/QEPWXInputDataManager.d.ts +78 -0
- package/dist/js/context/providers/by_application/espresso/QEPWXInputDataManager.js +104 -0
- package/dist/js/context/providers/by_application/nwchem/NWChemInputDataManager.d.ts +36 -0
- package/dist/js/context/providers/by_application/nwchem/NWChemInputDataManager.js +58 -0
- package/dist/js/context/providers/by_application/vasp/VASPInputDataManager.d.ts +36 -0
- package/dist/js/context/providers/by_application/vasp/VASPInputDataManager.js +56 -0
- package/dist/js/context/providers/by_application/vasp/VASPNEBInputDataManager.d.ts +30 -0
- package/dist/js/context/providers/by_application/vasp/VASPNEBInputDataManager.js +50 -0
- package/dist/js/context/providers/index.d.ts +92 -0
- package/dist/js/context/providers/index.js +107 -0
- package/dist/js/context/providers/settings.d.ts +7 -0
- package/dist/js/context/providers/settings.js +11 -33
- package/dist/js/convergence/ConvergenceParameter.d.ts +26 -0
- package/dist/js/convergence/ConvergenceParameter.js +13 -0
- package/dist/js/convergence/NonUniformKGridConvergence.d.ts +12 -0
- package/dist/js/convergence/NonUniformKGridConvergence.js +31 -0
- package/dist/js/convergence/UniformKGridConvergence.d.ts +8 -0
- package/dist/js/convergence/UniformKGridConvergence.js +22 -0
- package/dist/js/convergence/factory.d.ts +8 -0
- package/dist/js/convergence/factory.js +18 -0
- package/dist/js/enums.d.ts +62 -0
- package/dist/js/enums.js +66 -61
- package/dist/js/generated/AssertionUnitSchemaMixin.d.ts +5 -0
- package/dist/js/generated/AssertionUnitSchemaMixin.js +27 -0
- package/dist/js/generated/AssignmentUnitSchemaMixin.d.ts +5 -0
- package/dist/js/generated/AssignmentUnitSchemaMixin.js +33 -0
- package/dist/js/generated/BaseUnitSchemaMixin.d.ts +5 -0
- package/dist/js/generated/BaseUnitSchemaMixin.js +57 -0
- package/dist/js/generated/ConditionUnitSchemaMixin.d.ts +5 -0
- package/dist/js/generated/ConditionUnitSchemaMixin.js +51 -0
- package/dist/js/generated/ExecutionUnitInputSchemaMixin.d.ts +5 -0
- package/dist/js/generated/ExecutionUnitInputSchemaMixin.js +27 -0
- package/dist/js/generated/ExecutionUnitSchemaMixin.d.ts +5 -0
- package/dist/js/generated/ExecutionUnitSchemaMixin.js +45 -0
- package/dist/js/generated/IOUnitSchemaMixin.d.ts +5 -0
- package/dist/js/generated/IOUnitSchemaMixin.js +33 -0
- package/dist/js/generated/MapUnitSchemaMixin.d.ts +5 -0
- package/dist/js/generated/MapUnitSchemaMixin.js +27 -0
- package/dist/js/generated/ReduceUnitSchemaMixin.d.ts +5 -0
- package/dist/js/generated/ReduceUnitSchemaMixin.js +27 -0
- package/dist/js/generated/StatusSchemaMixin.d.ts +5 -0
- package/dist/js/generated/StatusSchemaMixin.js +21 -0
- package/dist/js/generated/SubworkflowSchemaMixin.d.ts +5 -0
- package/dist/js/generated/SubworkflowSchemaMixin.js +51 -0
- package/dist/js/generated/SubworkflowUnitSchemaMixin.d.ts +5 -0
- package/dist/js/generated/SubworkflowUnitSchemaMixin.js +15 -0
- package/dist/js/generated/WorkflowSchemaMixin.d.ts +5 -0
- package/dist/js/generated/WorkflowSchemaMixin.js +51 -0
- package/dist/js/index.d.ts +13 -0
- package/dist/js/index.js +66 -176
- package/dist/js/units/AssertionUnit.d.ts +20 -0
- package/dist/js/units/AssertionUnit.js +33 -0
- package/dist/js/units/AssignmentUnit.d.ts +17 -0
- package/dist/js/units/AssignmentUnit.js +35 -0
- package/dist/js/units/BaseUnit.d.ts +39 -0
- package/dist/js/units/BaseUnit.js +70 -0
- package/dist/js/units/ConditionUnit.d.ts +17 -0
- package/dist/js/units/ConditionUnit.js +37 -0
- package/dist/js/units/ExecutionUnit.d.ts +115 -0
- package/dist/js/units/ExecutionUnit.js +181 -0
- package/dist/js/units/ExecutionUnitInput.d.ts +22 -0
- package/dist/js/units/ExecutionUnitInput.js +47 -0
- package/dist/js/units/IOUnit.d.ts +16 -0
- package/dist/js/units/IOUnit.js +31 -0
- package/dist/js/units/MapUnit.d.ts +34 -0
- package/dist/js/units/MapUnit.js +46 -0
- package/dist/js/units/ReduceUnit.d.ts +16 -0
- package/dist/js/units/ReduceUnit.js +30 -0
- package/dist/js/units/SubworkflowUnit.d.ts +16 -0
- package/dist/js/units/SubworkflowUnit.js +28 -0
- package/dist/js/units/factory.d.ts +31 -0
- package/dist/js/units/factory.js +65 -47
- package/dist/js/units/index.d.ts +14 -0
- package/dist/js/units/index.js +25 -81
- package/dist/js/units/mixins/RuntimeItemsUILogicMixin.d.ts +26 -0
- package/dist/js/units/mixins/RuntimeItemsUILogicMixin.js +50 -0
- package/dist/js/utils/baseUnits.d.ts +2 -0
- package/dist/js/utils/baseUnits.js +11 -0
- package/dist/js/utils/index.d.ts +3 -0
- package/dist/js/utils/index.js +39 -0
- package/dist/js/utils/subworkflow.d.ts +2 -0
- package/dist/js/utils/subworkflow.js +29 -0
- package/dist/js/utils/underscoreStringSlugify.d.ts +6 -0
- package/dist/js/utils/underscoreStringSlugify.js +32 -0
- package/dist/js/utils/units.d.ts +4 -0
- package/dist/js/utils/units.js +16 -0
- package/dist/js/utils/workflow.d.ts +9 -0
- package/dist/js/utils/workflow.js +67 -0
- package/dist/js/workflows/default.d.ts +3 -0
- package/dist/js/workflows/default.js +43 -39
- package/dist/js/workflows/workflow.d.ts +4404 -0
- package/dist/js/workflows/workflow.js +310 -306
- package/package.json +56 -44
- package/src/js/Subworkflow.ts +532 -0
- package/src/js/Workflow.ts +390 -0
- package/src/js/context/mixins/ApplicationContextMixin.ts +21 -0
- package/src/js/context/mixins/MaterialContextMixin.ts +35 -0
- package/src/js/context/mixins/MaterialsContextMixin.ts +24 -0
- package/src/js/context/mixins/MaterialsSetContextMixin.ts +42 -0
- package/src/js/context/providers/BoundaryConditionsFormDataManager.ts +88 -0
- package/src/js/context/providers/CollinearMagnetizationDataManager.ts +140 -0
- package/src/js/context/providers/Hubbard/HubbardContextManagerLegacy.ts +93 -0
- package/src/js/context/providers/Hubbard/HubbardContextProvider.ts +85 -0
- package/src/js/context/providers/Hubbard/HubbardJContextManager.ts +82 -0
- package/src/js/context/providers/Hubbard/HubbardUContextManager.ts +78 -0
- package/src/js/context/providers/Hubbard/HubbardVContextManager.ts +100 -0
- package/src/js/context/providers/IonDynamicsDataManager.ts +64 -0
- package/src/js/context/providers/MLSettingsDataManager.ts +61 -0
- package/src/js/context/providers/MLTrainTestSplitDataManager.ts +59 -0
- package/src/js/context/providers/NEBFormDataManager.ts +57 -0
- package/src/js/context/providers/NonCollinearMagnetizationDataManager.ts +229 -0
- package/src/js/context/providers/PlanewaveCutoffDataManager.ts +110 -0
- package/src/js/context/providers/PointsGrid/IGridFormDataManager.ts +36 -0
- package/src/js/context/providers/PointsGrid/KGridFormDataManager.ts +46 -0
- package/src/js/context/providers/PointsGrid/PointsGridFormDataProvider.ts +371 -0
- package/src/js/context/providers/PointsGrid/QGridFormDataManager.ts +36 -0
- package/src/js/context/providers/PointsPath/ExplicitKPath2PIBAFormDataManager.ts +26 -0
- package/src/js/context/providers/PointsPath/ExplicitKPathFormDataManager.ts +24 -0
- package/src/js/context/providers/PointsPath/IPathFormDataManager.ts +22 -0
- package/src/js/context/providers/PointsPath/KPathFormDataManager.ts +22 -0
- package/src/js/context/providers/PointsPath/PointsPathFormDataProvider.ts +192 -0
- package/src/js/context/providers/PointsPath/QPathFormDataManager.ts +22 -0
- package/src/js/context/providers/base/ContextProvider.ts +150 -0
- package/src/js/context/providers/base/JSONSchemaDataProvider.ts +31 -0
- package/src/js/context/providers/base/JSONSchemaFormDataProvider.ts +38 -0
- package/src/js/context/providers/by_application/espresso/QENEBInputDataManager.ts +107 -0
- package/src/js/context/providers/by_application/espresso/QEPWXInputDataManager.ts +178 -0
- package/src/js/context/providers/by_application/nwchem/NWChemInputDataManager.ts +93 -0
- package/src/js/context/providers/by_application/vasp/VASPInputDataManager.ts +89 -0
- package/src/js/context/providers/by_application/vasp/VASPNEBInputDataManager.ts +92 -0
- package/src/js/context/providers/index.ts +155 -0
- package/src/js/context/providers/settings.ts +13 -0
- package/src/js/convergence/ConvergenceParameter.ts +37 -0
- package/src/js/convergence/NonUniformKGridConvergence.ts +38 -0
- package/src/js/convergence/UniformKGridConvergence.ts +26 -0
- package/src/js/convergence/factory.ts +18 -0
- package/src/js/{enums.js → enums.ts} +27 -22
- package/src/js/generated/AssertionUnitSchemaMixin.ts +34 -0
- package/src/js/generated/AssignmentUnitSchemaMixin.ts +40 -0
- package/src/js/generated/BaseUnitSchemaMixin.ts +64 -0
- package/src/js/generated/ConditionUnitSchemaMixin.ts +58 -0
- package/src/js/generated/ExecutionUnitInputSchemaMixin.ts +36 -0
- package/src/js/generated/ExecutionUnitSchemaMixin.ts +52 -0
- package/src/js/generated/IOUnitSchemaMixin.ts +40 -0
- package/src/js/generated/MapUnitSchemaMixin.ts +34 -0
- package/src/js/generated/ReduceUnitSchemaMixin.ts +34 -0
- package/src/js/generated/StatusSchemaMixin.ts +28 -0
- package/src/js/generated/SubworkflowSchemaMixin.ts +58 -0
- package/src/js/generated/SubworkflowUnitSchemaMixin.ts +22 -0
- package/src/js/generated/WorkflowSchemaMixin.ts +58 -0
- package/src/js/index.ts +44 -0
- package/src/js/units/AssertionUnit.ts +49 -0
- package/src/js/units/AssignmentUnit.ts +49 -0
- package/src/js/units/BaseUnit.ts +117 -0
- package/src/js/units/ConditionUnit.ts +52 -0
- package/src/js/units/ExecutionUnit.ts +274 -0
- package/src/js/units/ExecutionUnitInput.ts +71 -0
- package/src/js/units/IOUnit.ts +43 -0
- package/src/js/units/MapUnit.ts +59 -0
- package/src/js/units/ReduceUnit.ts +46 -0
- package/src/js/units/SubworkflowUnit.ts +44 -0
- package/src/js/units/factory.ts +131 -0
- package/src/js/units/index.ts +27 -0
- package/src/js/units/mixins/RuntimeItemsUILogicMixin.ts +81 -0
- package/src/js/utils/baseUnits.ts +11 -0
- package/src/js/utils/index.ts +3 -0
- package/src/js/utils/units.ts +23 -0
- package/src/js/utils/workflow.ts +69 -0
- package/src/js/workflows/{default.js → default.ts} +8 -1
- package/build_workflows.js +0 -65
- package/dist/js/context/context.js +0 -49
- package/dist/js/context/mixins/JobContextMixin.js +0 -39
- package/dist/js/context/mixins/MethodDataContextMixin.js +0 -48
- package/dist/js/context/mixins/WorkflowContextMixin.js +0 -28
- package/dist/js/context/providers/BoundaryConditionsFormDataProvider.js +0 -84
- package/dist/js/context/providers/CollinearMagnetizationContextProvider.js +0 -96
- package/dist/js/context/providers/HubbardContextProviderLegacy.js +0 -68
- package/dist/js/context/providers/HubbardJContextProvider.js +0 -67
- package/dist/js/context/providers/HubbardUContextProvider.js +0 -70
- package/dist/js/context/providers/HubbardVContextProvider.js +0 -92
- package/dist/js/context/providers/IonDynamicsContextProvider.js +0 -58
- package/dist/js/context/providers/MLSettingsContextProvider.js +0 -51
- package/dist/js/context/providers/MLTrainTestSplitContextProvider.js +0 -47
- package/dist/js/context/providers/NEBFormDataProvider.js +0 -42
- package/dist/js/context/providers/NonCollinearMagnetizationContextProvider.js +0 -187
- package/dist/js/context/providers/PlanewaveCutoffsContextProvider.js +0 -67
- package/dist/js/context/providers/PointsGridFormDataProvider.js +0 -263
- package/dist/js/context/providers/PointsPathFormDataProvider.js +0 -147
- package/dist/js/context/providers/by_application/ExecutableContextProvider.js +0 -25
- package/dist/js/context/providers/by_application/espresso/QENEBContextProvider.js +0 -61
- package/dist/js/context/providers/by_application/espresso/QEPWXContextProvider.js +0 -150
- package/dist/js/context/providers/by_application/nwchem/NWChemTotalEnergyContextProvider.js +0 -85
- package/dist/js/context/providers/by_application/vasp/VASPContextProvider.js +0 -65
- package/dist/js/context/providers/by_application/vasp/VASPNEBContextProvider.js +0 -57
- package/dist/js/context/providers.js +0 -199
- package/dist/js/patch.js +0 -19
- package/dist/js/subworkflows/convergence/non_uniform_kgrid.js +0 -31
- package/dist/js/subworkflows/convergence/parameter.js +0 -70
- package/dist/js/subworkflows/convergence/uniform_kgrid.js +0 -26
- package/dist/js/subworkflows/convergence.js +0 -189
- package/dist/js/subworkflows/create.js +0 -293
- package/dist/js/subworkflows/dynamic/espresso/getQpointIrrep.js +0 -34
- package/dist/js/subworkflows/dynamic/index.js +0 -19
- package/dist/js/subworkflows/dynamic/surfaceEnergy.js +0 -67
- package/dist/js/subworkflows/index.js +0 -19
- package/dist/js/units/assertion.js +0 -37
- package/dist/js/units/assignment.js +0 -42
- package/dist/js/units/base.js +0 -91
- package/dist/js/units/builders/AssertionUnitConfigBuilder.js +0 -34
- package/dist/js/units/builders/AssignmentUnitConfigBuilder.js +0 -41
- package/dist/js/units/builders/ExecutionUnitConfigBuilder.js +0 -67
- package/dist/js/units/builders/IOUnitConfigBuilder.js +0 -54
- package/dist/js/units/builders/UnitConfigBuilder.js +0 -85
- package/dist/js/units/builders/index.js +0 -18
- package/dist/js/units/condition.js +0 -52
- package/dist/js/units/execution.js +0 -225
- package/dist/js/units/io.js +0 -148
- package/dist/js/units/map.js +0 -38
- package/dist/js/units/processing.js +0 -41
- package/dist/js/units/reduce.js +0 -24
- package/dist/js/units/subworkflow.js +0 -23
- package/dist/js/workflows/create.js +0 -318
- package/dist/js/workflows/index.js +0 -113
- package/dist/js/workflows/relaxation.js +0 -38
- package/src/js/context/context.js +0 -47
- package/src/js/context/mixins/ApplicationContextMixin.js +0 -19
- package/src/js/context/mixins/JobContextMixin.js +0 -36
- package/src/js/context/mixins/MaterialContextMixin.js +0 -41
- package/src/js/context/mixins/MaterialsContextMixin.js +0 -18
- package/src/js/context/mixins/MaterialsSetContextMixin.js +0 -24
- package/src/js/context/mixins/MethodDataContextMixin.js +0 -48
- package/src/js/context/mixins/WorkflowContextMixin.js +0 -25
- package/src/js/context/providers/BoundaryConditionsFormDataProvider.js +0 -72
- package/src/js/context/providers/CollinearMagnetizationContextProvider.js +0 -105
- package/src/js/context/providers/HubbardContextProviderLegacy.js +0 -67
- package/src/js/context/providers/HubbardJContextProvider.js +0 -65
- package/src/js/context/providers/HubbardUContextProvider.js +0 -95
- package/src/js/context/providers/HubbardVContextProvider.js +0 -96
- package/src/js/context/providers/IonDynamicsContextProvider.js +0 -44
- package/src/js/context/providers/MLSettingsContextProvider.js +0 -45
- package/src/js/context/providers/MLTrainTestSplitContextProvider.js +0 -43
- package/src/js/context/providers/NEBFormDataProvider.js +0 -33
- package/src/js/context/providers/NonCollinearMagnetizationContextProvider.js +0 -179
- package/src/js/context/providers/PlanewaveCutoffsContextProvider.js +0 -65
- package/src/js/context/providers/PointsGridFormDataProvider.js +0 -271
- package/src/js/context/providers/PointsPathFormDataProvider.js +0 -163
- package/src/js/context/providers/by_application/ExecutableContextProvider.js +0 -17
- package/src/js/context/providers/by_application/espresso/QENEBContextProvider.js +0 -58
- package/src/js/context/providers/by_application/espresso/QEPWXContextProvider.js +0 -168
- package/src/js/context/providers/by_application/nwchem/NWChemTotalEnergyContextProvider.js +0 -89
- package/src/js/context/providers/by_application/vasp/VASPContextProvider.js +0 -58
- package/src/js/context/providers/by_application/vasp/VASPNEBContextProvider.js +0 -48
- package/src/js/context/providers/settings.js +0 -38
- package/src/js/context/providers.js +0 -140
- package/src/js/index.js +0 -57
- package/src/js/patch.js +0 -12
- package/src/js/subworkflows/convergence/enums.js +0 -12
- package/src/js/subworkflows/convergence/factory.js +0 -15
- package/src/js/subworkflows/convergence/non_uniform_kgrid.js +0 -28
- package/src/js/subworkflows/convergence/parameter.js +0 -58
- package/src/js/subworkflows/convergence/uniform_kgrid.js +0 -22
- package/src/js/subworkflows/convergence.js +0 -196
- package/src/js/subworkflows/create.js +0 -220
- package/src/js/subworkflows/dynamic/espresso/getQpointIrrep.js +0 -35
- package/src/js/subworkflows/dynamic/index.js +0 -8
- package/src/js/subworkflows/dynamic/surfaceEnergy.js +0 -124
- package/src/js/subworkflows/index.js +0 -2
- package/src/js/subworkflows/subworkflow.js +0 -345
- package/src/js/units/assertion.js +0 -29
- package/src/js/units/assignment.js +0 -34
- package/src/js/units/base.js +0 -97
- package/src/js/units/builders/AssertionUnitConfigBuilder.js +0 -28
- package/src/js/units/builders/AssignmentUnitConfigBuilder.js +0 -36
- package/src/js/units/builders/ExecutionUnitConfigBuilder.js +0 -59
- package/src/js/units/builders/IOUnitConfigBuilder.js +0 -53
- package/src/js/units/builders/UnitConfigBuilder.js +0 -92
- package/src/js/units/builders/index.js +0 -15
- package/src/js/units/condition.js +0 -47
- package/src/js/units/execution.js +0 -267
- package/src/js/units/factory.js +0 -53
- package/src/js/units/index.js +0 -25
- package/src/js/units/io.js +0 -163
- package/src/js/units/map.js +0 -33
- package/src/js/units/processing.js +0 -39
- package/src/js/units/reduce.js +0 -17
- package/src/js/units/subworkflow.js +0 -15
- package/src/js/utils.js +0 -73
- package/src/js/workflows/create.js +0 -227
- package/src/js/workflows/index.js +0 -98
- package/src/js/workflows/relaxation.js +0 -42
- package/src/js/workflows/workflow.js +0 -388
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
interface ConvergenceParameterProps {
|
|
2
|
+
initialValue: number | [number, number, number];
|
|
3
|
+
}
|
|
4
|
+
export type ConvergenceParameterConfig = ConvergenceParameterProps & {
|
|
5
|
+
increment?: string | number;
|
|
6
|
+
};
|
|
7
|
+
export type UnitContext = {
|
|
8
|
+
data: {
|
|
9
|
+
dimensions: [string, string, string];
|
|
10
|
+
shifts: [0, 0, 0];
|
|
11
|
+
};
|
|
12
|
+
isUsingJinjaVariables: true;
|
|
13
|
+
};
|
|
14
|
+
export default abstract class ConvergenceParameter {
|
|
15
|
+
abstract readonly name: "N_k" | "N_k_nonuniform";
|
|
16
|
+
abstract readonly finalValue: string;
|
|
17
|
+
abstract readonly increment: string;
|
|
18
|
+
abstract readonly unitContext: UnitContext;
|
|
19
|
+
readonly initialValue: string;
|
|
20
|
+
constructor({ initialValue }: ConvergenceParameterProps);
|
|
21
|
+
useVariablesFromUnitContext(_flowchartId: string): {
|
|
22
|
+
scope: string;
|
|
23
|
+
name: string;
|
|
24
|
+
}[];
|
|
25
|
+
}
|
|
26
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
class ConvergenceParameter {
|
|
4
|
+
constructor({ initialValue }) {
|
|
5
|
+
this.initialValue =
|
|
6
|
+
typeof initialValue === "string" ? initialValue : JSON.stringify(initialValue);
|
|
7
|
+
}
|
|
8
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars, class-methods-use-this
|
|
9
|
+
useVariablesFromUnitContext(_flowchartId) {
|
|
10
|
+
return [];
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
exports.default = ConvergenceParameter;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import ConvergenceParameter, { type ConvergenceParameterConfig, type UnitContext } from "./ConvergenceParameter";
|
|
2
|
+
export default class NonUniformKGridConvergence extends ConvergenceParameter {
|
|
3
|
+
readonly increment: string;
|
|
4
|
+
readonly name: "N_k_nonuniform";
|
|
5
|
+
readonly finalValue: "N_k_nonuniform";
|
|
6
|
+
readonly unitContext: UnitContext;
|
|
7
|
+
constructor({ initialValue, increment }: ConvergenceParameterConfig);
|
|
8
|
+
useVariablesFromUnitContext(flowchartId: string): {
|
|
9
|
+
scope: string;
|
|
10
|
+
name: string;
|
|
11
|
+
}[];
|
|
12
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ConvergenceParameter_1 = __importDefault(require("./ConvergenceParameter"));
|
|
7
|
+
class NonUniformKGridConvergence extends ConvergenceParameter_1.default {
|
|
8
|
+
constructor({ initialValue, increment }) {
|
|
9
|
+
super({ initialValue });
|
|
10
|
+
this.name = "N_k_nonuniform";
|
|
11
|
+
this.finalValue = "N_k_nonuniform";
|
|
12
|
+
this.unitContext = {
|
|
13
|
+
data: {
|
|
14
|
+
dimensions: [`{{${this.name}[0]}}`, `{{${this.name}[1]}}`, `{{${this.name}[2]}}`],
|
|
15
|
+
shifts: [0, 0, 0],
|
|
16
|
+
},
|
|
17
|
+
isUsingJinjaVariables: true,
|
|
18
|
+
};
|
|
19
|
+
this.increment = `[${this.initialValue}[i] + math.floor(iteration * ${increment || ""} * float(context['kgrid']['reciprocalVectorRatios'][i])) for i in range(3)]`;
|
|
20
|
+
}
|
|
21
|
+
// eslint-disable-next-line class-methods-use-this
|
|
22
|
+
useVariablesFromUnitContext(flowchartId) {
|
|
23
|
+
return [
|
|
24
|
+
{
|
|
25
|
+
scope: flowchartId,
|
|
26
|
+
name: "context",
|
|
27
|
+
},
|
|
28
|
+
];
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.default = NonUniformKGridConvergence;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import ConvergenceParameter, { type ConvergenceParameterConfig, type UnitContext } from "./ConvergenceParameter";
|
|
2
|
+
export default class UniformKGridConvergence extends ConvergenceParameter {
|
|
3
|
+
readonly increment: string;
|
|
4
|
+
readonly name: "N_k";
|
|
5
|
+
readonly finalValue: "N_k + 0";
|
|
6
|
+
readonly unitContext: UnitContext;
|
|
7
|
+
constructor({ initialValue, increment }: ConvergenceParameterConfig);
|
|
8
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ConvergenceParameter_1 = __importDefault(require("./ConvergenceParameter"));
|
|
7
|
+
class UniformKGridConvergence extends ConvergenceParameter_1.default {
|
|
8
|
+
constructor({ initialValue, increment }) {
|
|
9
|
+
super({ initialValue });
|
|
10
|
+
this.name = "N_k";
|
|
11
|
+
this.finalValue = `${this.name} + 0`;
|
|
12
|
+
this.unitContext = {
|
|
13
|
+
data: {
|
|
14
|
+
dimensions: [`{{${this.name}}}`, `{{${this.name}}}`, `{{${this.name}}}`],
|
|
15
|
+
shifts: [0, 0, 0],
|
|
16
|
+
},
|
|
17
|
+
isUsingJinjaVariables: true,
|
|
18
|
+
};
|
|
19
|
+
this.increment = `${this.name} + ${increment || ""}`;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
exports.default = UniformKGridConvergence;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type ConvergenceParameterConfig } from "./ConvergenceParameter";
|
|
2
|
+
import NonUniformKGridConvergence from "./NonUniformKGridConvergence";
|
|
3
|
+
import UniformKGridConvergence from "./UniformKGridConvergence";
|
|
4
|
+
type FactoryParams = ConvergenceParameterConfig & {
|
|
5
|
+
name: "N_k" | "N_k_nonuniform";
|
|
6
|
+
};
|
|
7
|
+
export declare function createConvergenceParameter({ name, ...params }: FactoryParams): NonUniformKGridConvergence | UniformKGridConvergence;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.createConvergenceParameter = createConvergenceParameter;
|
|
7
|
+
const NonUniformKGridConvergence_1 = __importDefault(require("./NonUniformKGridConvergence"));
|
|
8
|
+
const UniformKGridConvergence_1 = __importDefault(require("./UniformKGridConvergence"));
|
|
9
|
+
function createConvergenceParameter({ name, ...params }) {
|
|
10
|
+
switch (name) {
|
|
11
|
+
case "N_k":
|
|
12
|
+
return new UniformKGridConvergence_1.default(params);
|
|
13
|
+
case "N_k_nonuniform":
|
|
14
|
+
return new NonUniformKGridConvergence_1.default(params);
|
|
15
|
+
default:
|
|
16
|
+
throw new Error(`Invalid convergence parameter name: ${name}`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
export declare const UNIT_TYPES: {
|
|
2
|
+
readonly convergence: "convergence";
|
|
3
|
+
readonly exit: "exit";
|
|
4
|
+
readonly execution: "execution";
|
|
5
|
+
readonly map: "map";
|
|
6
|
+
readonly reduce: "reduce";
|
|
7
|
+
readonly assignment: "assignment";
|
|
8
|
+
readonly condition: "condition";
|
|
9
|
+
readonly subworkflow: "subworkflow";
|
|
10
|
+
readonly io: "io";
|
|
11
|
+
readonly assertion: "assertion";
|
|
12
|
+
};
|
|
13
|
+
export declare enum UnitType {
|
|
14
|
+
convergence = "convergence",
|
|
15
|
+
exit = "exit",
|
|
16
|
+
execution = "execution",
|
|
17
|
+
map = "map",
|
|
18
|
+
reduce = "reduce",
|
|
19
|
+
assignment = "assignment",
|
|
20
|
+
condition = "condition",
|
|
21
|
+
subworkflow = "subworkflow",
|
|
22
|
+
io = "io",
|
|
23
|
+
assertion = "assertion"
|
|
24
|
+
}
|
|
25
|
+
export declare enum UnitTag {
|
|
26
|
+
hasConvergenceParam = "hasConvergenceParam",
|
|
27
|
+
hasConvergenceResult = "hasConvergenceResult"
|
|
28
|
+
}
|
|
29
|
+
export declare enum UnitStatus {
|
|
30
|
+
idle = "idle",
|
|
31
|
+
active = "active",
|
|
32
|
+
finished = "finished",
|
|
33
|
+
error = "error",
|
|
34
|
+
warning = "warning"
|
|
35
|
+
}
|
|
36
|
+
export declare const WORKFLOW_STATUSES: {
|
|
37
|
+
readonly "up-to-date": "up-to-date";
|
|
38
|
+
readonly outdated: "outdated";
|
|
39
|
+
};
|
|
40
|
+
export declare const TAB_NAVIGATION_CONFIG: {
|
|
41
|
+
readonly overview: {
|
|
42
|
+
readonly itemName: "Overview";
|
|
43
|
+
readonly className: "";
|
|
44
|
+
readonly href: "sw-overview";
|
|
45
|
+
};
|
|
46
|
+
readonly importantSettings: {
|
|
47
|
+
readonly itemName: "Important settings";
|
|
48
|
+
readonly className: "";
|
|
49
|
+
readonly href: "sw-important-settings";
|
|
50
|
+
};
|
|
51
|
+
readonly detailedView: {
|
|
52
|
+
readonly itemName: "Detailed view";
|
|
53
|
+
readonly className: "";
|
|
54
|
+
readonly href: "sw-detailed-view";
|
|
55
|
+
};
|
|
56
|
+
readonly compute: {
|
|
57
|
+
readonly itemName: "Compute";
|
|
58
|
+
readonly className: "";
|
|
59
|
+
readonly href: "sw-compute";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
export declare const UNIT_NAME_INVALID_CHARS = "/";
|
package/dist/js/enums.js
CHANGED
|
@@ -1,65 +1,70 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
// actively used
|
|
18
|
-
execution: "execution",
|
|
19
|
-
map: "map",
|
|
20
|
-
reduce: "reduce",
|
|
21
|
-
assignment: "assignment",
|
|
22
|
-
condition: "condition",
|
|
23
|
-
subworkflow: "subworkflow",
|
|
24
|
-
processing: "processing",
|
|
25
|
-
io: "io",
|
|
26
|
-
assertion: "assertion"
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.UNIT_NAME_INVALID_CHARS = exports.TAB_NAVIGATION_CONFIG = exports.WORKFLOW_STATUSES = exports.UnitStatus = exports.UnitTag = exports.UnitType = exports.UNIT_TYPES = void 0;
|
|
4
|
+
exports.UNIT_TYPES = {
|
|
5
|
+
// not currently used
|
|
6
|
+
convergence: "convergence",
|
|
7
|
+
exit: "exit",
|
|
8
|
+
// actively used
|
|
9
|
+
execution: "execution",
|
|
10
|
+
map: "map",
|
|
11
|
+
reduce: "reduce",
|
|
12
|
+
assignment: "assignment",
|
|
13
|
+
condition: "condition",
|
|
14
|
+
subworkflow: "subworkflow",
|
|
15
|
+
io: "io",
|
|
16
|
+
assertion: "assertion",
|
|
27
17
|
};
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
18
|
+
var UnitType;
|
|
19
|
+
(function (UnitType) {
|
|
20
|
+
UnitType["convergence"] = "convergence";
|
|
21
|
+
UnitType["exit"] = "exit";
|
|
22
|
+
UnitType["execution"] = "execution";
|
|
23
|
+
UnitType["map"] = "map";
|
|
24
|
+
UnitType["reduce"] = "reduce";
|
|
25
|
+
UnitType["assignment"] = "assignment";
|
|
26
|
+
UnitType["condition"] = "condition";
|
|
27
|
+
UnitType["subworkflow"] = "subworkflow";
|
|
28
|
+
UnitType["io"] = "io";
|
|
29
|
+
UnitType["assertion"] = "assertion";
|
|
30
|
+
})(UnitType || (exports.UnitType = UnitType = {}));
|
|
31
|
+
var UnitTag;
|
|
32
|
+
(function (UnitTag) {
|
|
33
|
+
UnitTag["hasConvergenceParam"] = "hasConvergenceParam";
|
|
34
|
+
UnitTag["hasConvergenceResult"] = "hasConvergenceResult";
|
|
35
|
+
})(UnitTag || (exports.UnitTag = UnitTag = {}));
|
|
36
|
+
var UnitStatus;
|
|
37
|
+
(function (UnitStatus) {
|
|
38
|
+
UnitStatus["idle"] = "idle";
|
|
39
|
+
UnitStatus["active"] = "active";
|
|
40
|
+
UnitStatus["finished"] = "finished";
|
|
41
|
+
UnitStatus["error"] = "error";
|
|
42
|
+
UnitStatus["warning"] = "warning";
|
|
43
|
+
})(UnitStatus || (exports.UnitStatus = UnitStatus = {}));
|
|
44
|
+
exports.WORKFLOW_STATUSES = {
|
|
45
|
+
"up-to-date": "up-to-date",
|
|
46
|
+
outdated: "outdated",
|
|
34
47
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
48
|
+
exports.TAB_NAVIGATION_CONFIG = {
|
|
49
|
+
overview: {
|
|
50
|
+
itemName: "Overview",
|
|
51
|
+
className: "",
|
|
52
|
+
href: "sw-overview",
|
|
53
|
+
},
|
|
54
|
+
importantSettings: {
|
|
55
|
+
itemName: "Important settings",
|
|
56
|
+
className: "",
|
|
57
|
+
href: "sw-important-settings",
|
|
58
|
+
},
|
|
59
|
+
detailedView: {
|
|
60
|
+
itemName: "Detailed view",
|
|
61
|
+
className: "",
|
|
62
|
+
href: "sw-detailed-view",
|
|
63
|
+
},
|
|
64
|
+
compute: {
|
|
65
|
+
itemName: "Compute",
|
|
66
|
+
className: "",
|
|
67
|
+
href: "sw-compute",
|
|
68
|
+
},
|
|
38
69
|
};
|
|
39
|
-
|
|
40
|
-
"up-to-date": "up-to-date",
|
|
41
|
-
outdated: "outdated"
|
|
42
|
-
};
|
|
43
|
-
const TAB_NAVIGATION_CONFIG = exports.TAB_NAVIGATION_CONFIG = {
|
|
44
|
-
overview: {
|
|
45
|
-
itemName: "Overview",
|
|
46
|
-
className: "",
|
|
47
|
-
href: "sw-overview"
|
|
48
|
-
},
|
|
49
|
-
importantSettings: {
|
|
50
|
-
itemName: "Important settings",
|
|
51
|
-
className: "",
|
|
52
|
-
href: "sw-important-settings"
|
|
53
|
-
},
|
|
54
|
-
detailedView: {
|
|
55
|
-
itemName: "Detailed view",
|
|
56
|
-
className: "",
|
|
57
|
-
href: "sw-detailed-view"
|
|
58
|
-
},
|
|
59
|
-
compute: {
|
|
60
|
-
itemName: "Compute",
|
|
61
|
-
className: "",
|
|
62
|
-
href: "sw-compute"
|
|
63
|
-
}
|
|
64
|
-
};
|
|
65
|
-
const UNIT_NAME_INVALID_CHARS = exports.UNIT_NAME_INVALID_CHARS = "/";
|
|
70
|
+
exports.UNIT_NAME_INVALID_CHARS = "/";
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
+
import type { AssertionUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
|
+
export type AssertionUnitSchemaMixin = AssertionUnitMixinSchema;
|
|
4
|
+
export type AssertionUnitInMemoryEntity = InMemoryEntity & AssertionUnitSchemaMixin;
|
|
5
|
+
export declare function assertionUnitSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & AssertionUnitSchemaMixin;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assertionUnitSchemaMixin = assertionUnitSchemaMixin;
|
|
4
|
+
function assertionUnitSchemaMixin(item) {
|
|
5
|
+
// @ts-expect-error
|
|
6
|
+
const properties = {
|
|
7
|
+
get type() {
|
|
8
|
+
return this.prop("type");
|
|
9
|
+
},
|
|
10
|
+
set type(value) {
|
|
11
|
+
this.setProp("type", value);
|
|
12
|
+
},
|
|
13
|
+
get statement() {
|
|
14
|
+
return this.requiredProp("statement");
|
|
15
|
+
},
|
|
16
|
+
set statement(value) {
|
|
17
|
+
this.setProp("statement", value);
|
|
18
|
+
},
|
|
19
|
+
get errorMessage() {
|
|
20
|
+
return this.prop("errorMessage");
|
|
21
|
+
},
|
|
22
|
+
set errorMessage(value) {
|
|
23
|
+
this.setProp("errorMessage", value);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
27
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
+
import type { AssignmentUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
|
+
export type AssignmentUnitSchemaMixin = AssignmentUnitMixinSchema;
|
|
4
|
+
export type AssignmentUnitInMemoryEntity = InMemoryEntity & AssignmentUnitSchemaMixin;
|
|
5
|
+
export declare function assignmentUnitSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & AssignmentUnitSchemaMixin;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assignmentUnitSchemaMixin = assignmentUnitSchemaMixin;
|
|
4
|
+
function assignmentUnitSchemaMixin(item) {
|
|
5
|
+
// @ts-expect-error
|
|
6
|
+
const properties = {
|
|
7
|
+
get type() {
|
|
8
|
+
return this.prop("type");
|
|
9
|
+
},
|
|
10
|
+
set type(value) {
|
|
11
|
+
this.setProp("type", value);
|
|
12
|
+
},
|
|
13
|
+
get input() {
|
|
14
|
+
return this.prop("input");
|
|
15
|
+
},
|
|
16
|
+
set input(value) {
|
|
17
|
+
this.setProp("input", value);
|
|
18
|
+
},
|
|
19
|
+
get operand() {
|
|
20
|
+
return this.requiredProp("operand");
|
|
21
|
+
},
|
|
22
|
+
set operand(value) {
|
|
23
|
+
this.setProp("operand", value);
|
|
24
|
+
},
|
|
25
|
+
get value() {
|
|
26
|
+
return this.requiredProp("value");
|
|
27
|
+
},
|
|
28
|
+
set value(value) {
|
|
29
|
+
this.setProp("value", value);
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
33
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
+
import type { WorkflowBaseUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
|
+
export type BaseUnitSchemaMixin = WorkflowBaseUnitMixinSchema;
|
|
4
|
+
export type BaseUnitInMemoryEntity = InMemoryEntity & BaseUnitSchemaMixin;
|
|
5
|
+
export declare function baseUnitSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & BaseUnitSchemaMixin;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.baseUnitSchemaMixin = baseUnitSchemaMixin;
|
|
4
|
+
function baseUnitSchemaMixin(item) {
|
|
5
|
+
// @ts-expect-error
|
|
6
|
+
const properties = {
|
|
7
|
+
get isDraft() {
|
|
8
|
+
return this.prop("isDraft");
|
|
9
|
+
},
|
|
10
|
+
set isDraft(value) {
|
|
11
|
+
this.setProp("isDraft", value);
|
|
12
|
+
},
|
|
13
|
+
get type() {
|
|
14
|
+
return this.requiredProp("type");
|
|
15
|
+
},
|
|
16
|
+
set type(value) {
|
|
17
|
+
this.setProp("type", value);
|
|
18
|
+
},
|
|
19
|
+
get name() {
|
|
20
|
+
return this.prop("name");
|
|
21
|
+
},
|
|
22
|
+
set name(value) {
|
|
23
|
+
this.setProp("name", value);
|
|
24
|
+
},
|
|
25
|
+
get status() {
|
|
26
|
+
return this.prop("status");
|
|
27
|
+
},
|
|
28
|
+
set status(value) {
|
|
29
|
+
this.setProp("status", value);
|
|
30
|
+
},
|
|
31
|
+
get head() {
|
|
32
|
+
return this.prop("head");
|
|
33
|
+
},
|
|
34
|
+
set head(value) {
|
|
35
|
+
this.setProp("head", value);
|
|
36
|
+
},
|
|
37
|
+
get flowchartId() {
|
|
38
|
+
return this.requiredProp("flowchartId");
|
|
39
|
+
},
|
|
40
|
+
set flowchartId(value) {
|
|
41
|
+
this.setProp("flowchartId", value);
|
|
42
|
+
},
|
|
43
|
+
get next() {
|
|
44
|
+
return this.prop("next");
|
|
45
|
+
},
|
|
46
|
+
set next(value) {
|
|
47
|
+
this.setProp("next", value);
|
|
48
|
+
},
|
|
49
|
+
get enableRender() {
|
|
50
|
+
return this.prop("enableRender");
|
|
51
|
+
},
|
|
52
|
+
set enableRender(value) {
|
|
53
|
+
this.setProp("enableRender", value);
|
|
54
|
+
},
|
|
55
|
+
};
|
|
56
|
+
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
57
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
+
import type { ConditionUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
|
+
export type ConditionUnitSchemaMixin = ConditionUnitMixinSchema;
|
|
4
|
+
export type ConditionUnitInMemoryEntity = InMemoryEntity & ConditionUnitSchemaMixin;
|
|
5
|
+
export declare function conditionUnitSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & ConditionUnitSchemaMixin;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.conditionUnitSchemaMixin = conditionUnitSchemaMixin;
|
|
4
|
+
function conditionUnitSchemaMixin(item) {
|
|
5
|
+
// @ts-expect-error
|
|
6
|
+
const properties = {
|
|
7
|
+
get type() {
|
|
8
|
+
return this.prop("type");
|
|
9
|
+
},
|
|
10
|
+
set type(value) {
|
|
11
|
+
this.setProp("type", value);
|
|
12
|
+
},
|
|
13
|
+
get input() {
|
|
14
|
+
return this.requiredProp("input");
|
|
15
|
+
},
|
|
16
|
+
set input(value) {
|
|
17
|
+
this.setProp("input", value);
|
|
18
|
+
},
|
|
19
|
+
get statement() {
|
|
20
|
+
return this.requiredProp("statement");
|
|
21
|
+
},
|
|
22
|
+
set statement(value) {
|
|
23
|
+
this.setProp("statement", value);
|
|
24
|
+
},
|
|
25
|
+
get then() {
|
|
26
|
+
return this.requiredProp("then");
|
|
27
|
+
},
|
|
28
|
+
set then(value) {
|
|
29
|
+
this.setProp("then", value);
|
|
30
|
+
},
|
|
31
|
+
get else() {
|
|
32
|
+
return this.requiredProp("else");
|
|
33
|
+
},
|
|
34
|
+
set else(value) {
|
|
35
|
+
this.setProp("else", value);
|
|
36
|
+
},
|
|
37
|
+
get maxOccurrences() {
|
|
38
|
+
return this.requiredProp("maxOccurrences");
|
|
39
|
+
},
|
|
40
|
+
set maxOccurrences(value) {
|
|
41
|
+
this.setProp("maxOccurrences", value);
|
|
42
|
+
},
|
|
43
|
+
get throwException() {
|
|
44
|
+
return this.prop("throwException");
|
|
45
|
+
},
|
|
46
|
+
set throwException(value) {
|
|
47
|
+
this.setProp("throwException", value);
|
|
48
|
+
},
|
|
49
|
+
};
|
|
50
|
+
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
51
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
+
import type { ExecutionUnitInputItemSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
|
+
export type ExecutionUnitInputSchemaMixin = ExecutionUnitInputItemSchema;
|
|
4
|
+
export type ExecutionUnitInputInMemoryEntity = InMemoryEntity & ExecutionUnitInputSchemaMixin;
|
|
5
|
+
export declare function executionUnitInputSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & ExecutionUnitInputSchemaMixin;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executionUnitInputSchemaMixin = executionUnitInputSchemaMixin;
|
|
4
|
+
function executionUnitInputSchemaMixin(item) {
|
|
5
|
+
// @ts-expect-error
|
|
6
|
+
const properties = {
|
|
7
|
+
get template() {
|
|
8
|
+
return this.requiredProp("template");
|
|
9
|
+
},
|
|
10
|
+
set template(value) {
|
|
11
|
+
this.setProp("template", value);
|
|
12
|
+
},
|
|
13
|
+
get rendered() {
|
|
14
|
+
return this.prop("rendered");
|
|
15
|
+
},
|
|
16
|
+
set rendered(value) {
|
|
17
|
+
this.setProp("rendered", value);
|
|
18
|
+
},
|
|
19
|
+
get isManuallyChanged() {
|
|
20
|
+
return this.requiredProp("isManuallyChanged");
|
|
21
|
+
},
|
|
22
|
+
set isManuallyChanged(value) {
|
|
23
|
+
this.setProp("isManuallyChanged", value);
|
|
24
|
+
},
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
27
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
+
import type { ExecutionUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
|
+
export type ExecutionUnitSchemaMixin = ExecutionUnitMixinSchema;
|
|
4
|
+
export type ExecutionUnitInMemoryEntity = InMemoryEntity & ExecutionUnitSchemaMixin;
|
|
5
|
+
export declare function executionUnitSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & ExecutionUnitSchemaMixin;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.executionUnitSchemaMixin = executionUnitSchemaMixin;
|
|
4
|
+
function executionUnitSchemaMixin(item) {
|
|
5
|
+
// @ts-expect-error
|
|
6
|
+
const properties = {
|
|
7
|
+
get type() {
|
|
8
|
+
return this.requiredProp("type");
|
|
9
|
+
},
|
|
10
|
+
set type(value) {
|
|
11
|
+
this.setProp("type", value);
|
|
12
|
+
},
|
|
13
|
+
get application() {
|
|
14
|
+
return this.requiredProp("application");
|
|
15
|
+
},
|
|
16
|
+
set application(value) {
|
|
17
|
+
this.setProp("application", value);
|
|
18
|
+
},
|
|
19
|
+
get executable() {
|
|
20
|
+
return this.requiredProp("executable");
|
|
21
|
+
},
|
|
22
|
+
set executable(value) {
|
|
23
|
+
this.setProp("executable", value);
|
|
24
|
+
},
|
|
25
|
+
get flavor() {
|
|
26
|
+
return this.requiredProp("flavor");
|
|
27
|
+
},
|
|
28
|
+
set flavor(value) {
|
|
29
|
+
this.setProp("flavor", value);
|
|
30
|
+
},
|
|
31
|
+
get input() {
|
|
32
|
+
return this.requiredProp("input");
|
|
33
|
+
},
|
|
34
|
+
set input(value) {
|
|
35
|
+
this.setProp("input", value);
|
|
36
|
+
},
|
|
37
|
+
get context() {
|
|
38
|
+
return this.requiredProp("context");
|
|
39
|
+
},
|
|
40
|
+
set context(value) {
|
|
41
|
+
this.setProp("context", value);
|
|
42
|
+
},
|
|
43
|
+
};
|
|
44
|
+
Object.defineProperties(item, Object.getOwnPropertyDescriptors(properties));
|
|
45
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { InMemoryEntity } from "@mat3ra/code/dist/js/entity";
|
|
2
|
+
import type { DataIOUnitMixinSchema } from "@mat3ra/esse/dist/js/types";
|
|
3
|
+
export type IOUnitSchemaMixin = DataIOUnitMixinSchema;
|
|
4
|
+
export type IOUnitInMemoryEntity = InMemoryEntity & IOUnitSchemaMixin;
|
|
5
|
+
export declare function iOUnitSchemaMixin<T extends InMemoryEntity>(item: InMemoryEntity): asserts item is T & IOUnitSchemaMixin;
|