arctrl 3.0.0__py3-none-any.whl
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.
- arctrl/__init__.py +23 -0
- arctrl/cwl.py +12 -0
- arctrl/py/CWL/__init__.py +0 -0
- arctrl/py/CWL/cwlprocessing_unit.py +221 -0
- arctrl/py/CWL/cwltypes.py +364 -0
- arctrl/py/CWL/decode.py +3532 -0
- arctrl/py/CWL/encode.py +1905 -0
- arctrl/py/CWL/expression_tool_description.py +192 -0
- arctrl/py/CWL/hash_helpers.py +60 -0
- arctrl/py/CWL/inputs.py +122 -0
- arctrl/py/CWL/operation_description.py +169 -0
- arctrl/py/CWL/outputs.py +171 -0
- arctrl/py/CWL/parameter_reference.py +74 -0
- arctrl/py/CWL/requirements.py +350 -0
- arctrl/py/CWL/tool_description.py +192 -0
- arctrl/py/CWL/workflow_description.py +181 -0
- arctrl/py/CWL/workflow_steps.py +354 -0
- arctrl/py/Contract/__init__.py +0 -0
- arctrl/py/Contract/arc.py +89 -0
- arctrl/py/Contract/arc_assay.py +125 -0
- arctrl/py/Contract/arc_investigation.py +88 -0
- arctrl/py/Contract/arc_run.py +291 -0
- arctrl/py/Contract/arc_study.py +126 -0
- arctrl/py/Contract/arc_workflow.py +213 -0
- arctrl/py/Contract/contract.py +153 -0
- arctrl/py/Contract/datamap.py +396 -0
- arctrl/py/Contract/git.py +116 -0
- arctrl/py/Contract/license.py +58 -0
- arctrl/py/Contract/validation_packages_config.py +107 -0
- arctrl/py/ContractIO/__init__.py +0 -0
- arctrl/py/ContractIO/contract_io.py +350 -0
- arctrl/py/ContractIO/file_system_helper.py +264 -0
- arctrl/py/Conversion/__init__.py +0 -0
- arctrl/py/Conversion/assay.py +151 -0
- arctrl/py/Conversion/basic.py +559 -0
- arctrl/py/Conversion/column_index.py +91 -0
- arctrl/py/Conversion/datamap.py +36 -0
- arctrl/py/Conversion/date_time.py +32 -0
- arctrl/py/Conversion/investigation.py +171 -0
- arctrl/py/Conversion/person.py +148 -0
- arctrl/py/Conversion/process.py +828 -0
- arctrl/py/Conversion/run.py +367 -0
- arctrl/py/Conversion/scholarly_article.py +163 -0
- arctrl/py/Conversion/study.py +99 -0
- arctrl/py/Conversion/table.py +229 -0
- arctrl/py/Conversion/workflow.py +680 -0
- arctrl/py/Core/Helper/__init__.py +0 -0
- arctrl/py/Core/Helper/collections_.py +512 -0
- arctrl/py/Core/Helper/date_time.py +26 -0
- arctrl/py/Core/Helper/hash_codes.py +60 -0
- arctrl/py/Core/Helper/identifier.py +290 -0
- arctrl/py/Core/Helper/orcid.py +42 -0
- arctrl/py/Core/Helper/printer.py +13 -0
- arctrl/py/Core/Helper/regex.py +554 -0
- arctrl/py/Core/Helper/sem_ver.py +71 -0
- arctrl/py/Core/Helper/url.py +148 -0
- arctrl/py/Core/Process/__init__.py +0 -0
- arctrl/py/Core/Process/column_index.py +280 -0
- arctrl/py/Core/Process/component.py +200 -0
- arctrl/py/Core/Process/factor.py +151 -0
- arctrl/py/Core/Process/factor_value.py +182 -0
- arctrl/py/Core/Process/material.py +74 -0
- arctrl/py/Core/Process/material_attribute.py +95 -0
- arctrl/py/Core/Process/material_attribute_value.py +184 -0
- arctrl/py/Core/Process/material_type.py +45 -0
- arctrl/py/Core/Process/process.py +477 -0
- arctrl/py/Core/Process/process_input.py +265 -0
- arctrl/py/Core/Process/process_output.py +235 -0
- arctrl/py/Core/Process/process_parameter_value.py +200 -0
- arctrl/py/Core/Process/process_sequence.py +435 -0
- arctrl/py/Core/Process/protocol.py +175 -0
- arctrl/py/Core/Process/protocol_parameter.py +98 -0
- arctrl/py/Core/Process/sample.py +82 -0
- arctrl/py/Core/Process/source.py +62 -0
- arctrl/py/Core/Table/__init__.py +0 -0
- arctrl/py/Core/Table/arc_table.py +1206 -0
- arctrl/py/Core/Table/arc_table_aux.py +1308 -0
- arctrl/py/Core/Table/arc_tables.py +574 -0
- arctrl/py/Core/Table/composite_cell.py +319 -0
- arctrl/py/Core/Table/composite_column.py +73 -0
- arctrl/py/Core/Table/composite_header.py +739 -0
- arctrl/py/Core/__init__.py +0 -0
- arctrl/py/Core/arc_types.py +5312 -0
- arctrl/py/Core/comment.py +128 -0
- arctrl/py/Core/comment_list.py +127 -0
- arctrl/py/Core/conversion.py +1375 -0
- arctrl/py/Core/data.py +247 -0
- arctrl/py/Core/data_context.py +157 -0
- arctrl/py/Core/data_file.py +112 -0
- arctrl/py/Core/datamap.py +217 -0
- arctrl/py/Core/identifier_setters.py +43 -0
- arctrl/py/Core/iproperty_value.py +36 -0
- arctrl/py/Core/ontology_annotation.py +298 -0
- arctrl/py/Core/ontology_source_reference.py +114 -0
- arctrl/py/Core/person.py +259 -0
- arctrl/py/Core/publication.py +161 -0
- arctrl/py/Core/template.py +231 -0
- arctrl/py/Core/templates.py +148 -0
- arctrl/py/Core/uri.py +11 -0
- arctrl/py/Core/value.py +188 -0
- arctrl/py/FileSystem/__init__.py +0 -0
- arctrl/py/FileSystem/commit.py +21 -0
- arctrl/py/FileSystem/default_gitattributes.py +1 -0
- arctrl/py/FileSystem/default_gitignore.py +1 -0
- arctrl/py/FileSystem/default_license.py +1 -0
- arctrl/py/FileSystem/file_system.py +58 -0
- arctrl/py/FileSystem/file_system_tree.py +483 -0
- arctrl/py/FileSystem/path.py +266 -0
- arctrl/py/Json/Datamap/__init__.py +0 -0
- arctrl/py/Json/Datamap/data_context.py +101 -0
- arctrl/py/Json/Datamap/datamap.py +53 -0
- arctrl/py/Json/Process/__init__.py +0 -0
- arctrl/py/Json/Process/assay_materials.py +46 -0
- arctrl/py/Json/Process/component.py +125 -0
- arctrl/py/Json/Process/factor.py +107 -0
- arctrl/py/Json/Process/factor_value.py +101 -0
- arctrl/py/Json/Process/material.py +226 -0
- arctrl/py/Json/Process/material_attribute.py +79 -0
- arctrl/py/Json/Process/material_attribute_value.py +101 -0
- arctrl/py/Json/Process/material_type.py +53 -0
- arctrl/py/Json/Process/process.py +296 -0
- arctrl/py/Json/Process/process_input.py +83 -0
- arctrl/py/Json/Process/process_output.py +67 -0
- arctrl/py/Json/Process/process_parameter_value.py +81 -0
- arctrl/py/Json/Process/protocol.py +354 -0
- arctrl/py/Json/Process/protocol_parameter.py +91 -0
- arctrl/py/Json/Process/sample.py +277 -0
- arctrl/py/Json/Process/source.py +214 -0
- arctrl/py/Json/Process/study_materials.py +52 -0
- arctrl/py/Json/Process/value.py +56 -0
- arctrl/py/Json/ROCrate/__init__.py +0 -0
- arctrl/py/Json/ROCrate/ldcontext.py +143 -0
- arctrl/py/Json/ROCrate/ldgraph.py +117 -0
- arctrl/py/Json/ROCrate/ldnode.py +304 -0
- arctrl/py/Json/ROCrate/ldref.py +44 -0
- arctrl/py/Json/ROCrate/ldvalue.py +102 -0
- arctrl/py/Json/Table/__init__.py +0 -0
- arctrl/py/Json/Table/arc_table.py +375 -0
- arctrl/py/Json/Table/cell_table.py +83 -0
- arctrl/py/Json/Table/composite_cell.py +136 -0
- arctrl/py/Json/Table/composite_header.py +67 -0
- arctrl/py/Json/Table/iotype.py +24 -0
- arctrl/py/Json/Table/oatable.py +82 -0
- arctrl/py/Json/Table/templates.py +281 -0
- arctrl/py/Json/__init__.py +0 -0
- arctrl/py/Json/assay.py +600 -0
- arctrl/py/Json/comment.py +206 -0
- arctrl/py/Json/context/rocrate/__init__.py +0 -0
- arctrl/py/Json/context/rocrate/isa_assay_context.py +101 -0
- arctrl/py/Json/context/rocrate/isa_comment_context.py +60 -0
- arctrl/py/Json/context/rocrate/isa_component_context.py +77 -0
- arctrl/py/Json/context/rocrate/isa_data_context.py +74 -0
- arctrl/py/Json/context/rocrate/isa_factor_context.py +74 -0
- arctrl/py/Json/context/rocrate/isa_factor_value_context.py +84 -0
- arctrl/py/Json/context/rocrate/isa_investigation_context.py +110 -0
- arctrl/py/Json/context/rocrate/isa_material_attribute_context.py +64 -0
- arctrl/py/Json/context/rocrate/isa_material_attribute_value_context.py +80 -0
- arctrl/py/Json/context/rocrate/isa_material_context.py +71 -0
- arctrl/py/Json/context/rocrate/isa_ontology_annotation_context.py +68 -0
- arctrl/py/Json/context/rocrate/isa_ontology_source_reference_context.py +75 -0
- arctrl/py/Json/context/rocrate/isa_organization_context.py +55 -0
- arctrl/py/Json/context/rocrate/isa_person_context.py +131 -0
- arctrl/py/Json/context/rocrate/isa_process_context.py +94 -0
- arctrl/py/Json/context/rocrate/isa_process_parameter_value_context.py +80 -0
- arctrl/py/Json/context/rocrate/isa_protocol_context.py +97 -0
- arctrl/py/Json/context/rocrate/isa_protocol_parameter_context.py +64 -0
- arctrl/py/Json/context/rocrate/isa_publication_context.py +78 -0
- arctrl/py/Json/context/rocrate/isa_sample_context.py +65 -0
- arctrl/py/Json/context/rocrate/isa_source_context.py +66 -0
- arctrl/py/Json/context/rocrate/isa_study_context.py +125 -0
- arctrl/py/Json/context/rocrate/property_value_context.py +73 -0
- arctrl/py/Json/context/rocrate/rocrate_context.py +81 -0
- arctrl/py/Json/converter_options.py +23 -0
- arctrl/py/Json/data.py +356 -0
- arctrl/py/Json/data_file.py +63 -0
- arctrl/py/Json/decode.py +271 -0
- arctrl/py/Json/encode.py +140 -0
- arctrl/py/Json/idtable.py +44 -0
- arctrl/py/Json/investigation.py +695 -0
- arctrl/py/Json/ontology_annotation.py +404 -0
- arctrl/py/Json/ontology_source_reference.py +255 -0
- arctrl/py/Json/person.py +658 -0
- arctrl/py/Json/property_value.py +359 -0
- arctrl/py/Json/publication.py +279 -0
- arctrl/py/Json/run.py +275 -0
- arctrl/py/Json/string_table.py +87 -0
- arctrl/py/Json/study.py +793 -0
- arctrl/py/Json/workflow.py +307 -0
- arctrl/py/JsonIO/Process/__init__.py +0 -0
- arctrl/py/JsonIO/Process/component.py +60 -0
- arctrl/py/JsonIO/Process/factor.py +36 -0
- arctrl/py/JsonIO/Process/factor_value.py +38 -0
- arctrl/py/JsonIO/Process/material.py +60 -0
- arctrl/py/JsonIO/Process/material_attribute.py +38 -0
- arctrl/py/JsonIO/Process/material_attribute_value.py +60 -0
- arctrl/py/JsonIO/Process/material_type.py +36 -0
- arctrl/py/JsonIO/Process/process.py +60 -0
- arctrl/py/JsonIO/Process/process_input.py +38 -0
- arctrl/py/JsonIO/Process/process_output.py +60 -0
- arctrl/py/JsonIO/Process/process_parameter_value.py +60 -0
- arctrl/py/JsonIO/Process/process_sequence.py +71 -0
- arctrl/py/JsonIO/Process/protocol.py +60 -0
- arctrl/py/JsonIO/Process/protocol_parameter.py +36 -0
- arctrl/py/JsonIO/Process/sample.py +60 -0
- arctrl/py/JsonIO/Process/source.py +60 -0
- arctrl/py/JsonIO/Process/study_materials.py +52 -0
- arctrl/py/JsonIO/Process/value.py +32 -0
- arctrl/py/JsonIO/Table/__init__.py +0 -0
- arctrl/py/JsonIO/Table/arc_table.py +103 -0
- arctrl/py/JsonIO/Table/composite_cell.py +36 -0
- arctrl/py/JsonIO/Table/composite_header.py +36 -0
- arctrl/py/JsonIO/Table/compression.py +67 -0
- arctrl/py/JsonIO/Table/iotype.py +36 -0
- arctrl/py/JsonIO/Table/templates.py +113 -0
- arctrl/py/JsonIO/__init__.py +0 -0
- arctrl/py/JsonIO/assay.py +113 -0
- arctrl/py/JsonIO/comment.py +80 -0
- arctrl/py/JsonIO/data.py +60 -0
- arctrl/py/JsonIO/data_file.py +58 -0
- arctrl/py/JsonIO/datamap.py +36 -0
- arctrl/py/JsonIO/decode.py +9 -0
- arctrl/py/JsonIO/encode.py +1 -0
- arctrl/py/JsonIO/investigation.py +91 -0
- arctrl/py/JsonIO/ldobject.py +106 -0
- arctrl/py/JsonIO/ontology_annotation.py +80 -0
- arctrl/py/JsonIO/ontology_source_reference.py +80 -0
- arctrl/py/JsonIO/person.py +82 -0
- arctrl/py/JsonIO/publication.py +82 -0
- arctrl/py/JsonIO/run.py +68 -0
- arctrl/py/JsonIO/study.py +114 -0
- arctrl/py/JsonIO/workflow.py +68 -0
- arctrl/py/ROCrate/ISAProfile/__init__.py +0 -0
- arctrl/py/ROCrate/ISAProfile/assay.py +70 -0
- arctrl/py/ROCrate/ISAProfile/data.py +65 -0
- arctrl/py/ROCrate/ISAProfile/dataset.py +24 -0
- arctrl/py/ROCrate/ISAProfile/investigation.py +73 -0
- arctrl/py/ROCrate/ISAProfile/lab_process.py +162 -0
- arctrl/py/ROCrate/ISAProfile/lab_protocol.py +37 -0
- arctrl/py/ROCrate/ISAProfile/person.py +72 -0
- arctrl/py/ROCrate/ISAProfile/property_value.py +98 -0
- arctrl/py/ROCrate/ISAProfile/sample.py +64 -0
- arctrl/py/ROCrate/ISAProfile/scholarly_article.py +98 -0
- arctrl/py/ROCrate/ISAProfile/study.py +74 -0
- arctrl/py/ROCrate/LDTypes/__init__.py +0 -0
- arctrl/py/ROCrate/LDTypes/comment.py +131 -0
- arctrl/py/ROCrate/LDTypes/computational_workflow.py +455 -0
- arctrl/py/ROCrate/LDTypes/computer_language.py +269 -0
- arctrl/py/ROCrate/LDTypes/create_action.py +303 -0
- arctrl/py/ROCrate/LDTypes/creative_work.py +566 -0
- arctrl/py/ROCrate/LDTypes/dataset.py +943 -0
- arctrl/py/ROCrate/LDTypes/defined_term.py +131 -0
- arctrl/py/ROCrate/LDTypes/file.py +281 -0
- arctrl/py/ROCrate/LDTypes/formal_parameter.py +431 -0
- arctrl/py/ROCrate/LDTypes/lab_process.py +352 -0
- arctrl/py/ROCrate/LDTypes/lab_protocol.py +395 -0
- arctrl/py/ROCrate/LDTypes/organization.py +83 -0
- arctrl/py/ROCrate/LDTypes/person.py +484 -0
- arctrl/py/ROCrate/LDTypes/postal_address.py +195 -0
- arctrl/py/ROCrate/LDTypes/property_value.py +952 -0
- arctrl/py/ROCrate/LDTypes/sample.py +202 -0
- arctrl/py/ROCrate/LDTypes/scholarly_article.py +229 -0
- arctrl/py/ROCrate/LDTypes/software_source_code.py +310 -0
- arctrl/py/ROCrate/LDTypes/workflow_invocation.py +48 -0
- arctrl/py/ROCrate/LDTypes/workflow_protocol.py +52 -0
- arctrl/py/ROCrate/__init__.py +0 -0
- arctrl/py/ROCrate/arc_rocrate_metadata.py +39 -0
- arctrl/py/ROCrate/dyn_obj_extensions.py +1 -0
- arctrl/py/ROCrate/helper.py +8 -0
- arctrl/py/ROCrate/ldcontext.py +406 -0
- arctrl/py/ROCrate/ldobject.py +1247 -0
- arctrl/py/ROCrate/rocrate_context.py +51 -0
- arctrl/py/Spreadsheet/AnnotationTable/__init__.py +0 -0
- arctrl/py/Spreadsheet/AnnotationTable/arc_table.py +203 -0
- arctrl/py/Spreadsheet/AnnotationTable/composite_cell.py +78 -0
- arctrl/py/Spreadsheet/AnnotationTable/composite_column.py +305 -0
- arctrl/py/Spreadsheet/AnnotationTable/composite_header.py +623 -0
- arctrl/py/Spreadsheet/DatamapTable/__init__.py +0 -0
- arctrl/py/Spreadsheet/DatamapTable/datamap_column.py +114 -0
- arctrl/py/Spreadsheet/DatamapTable/datamap_header.py +621 -0
- arctrl/py/Spreadsheet/DatamapTable/datamap_table.py +118 -0
- arctrl/py/Spreadsheet/Metadata/__init__.py +0 -0
- arctrl/py/Spreadsheet/Metadata/assays.py +125 -0
- arctrl/py/Spreadsheet/Metadata/comment.py +77 -0
- arctrl/py/Spreadsheet/Metadata/contacts.py +134 -0
- arctrl/py/Spreadsheet/Metadata/conversions.py +190 -0
- arctrl/py/Spreadsheet/Metadata/design_descriptors.py +34 -0
- arctrl/py/Spreadsheet/Metadata/factors.py +107 -0
- arctrl/py/Spreadsheet/Metadata/ontology_annotation.py +88 -0
- arctrl/py/Spreadsheet/Metadata/ontology_source_reference.py +96 -0
- arctrl/py/Spreadsheet/Metadata/protocols.py +146 -0
- arctrl/py/Spreadsheet/Metadata/publication.py +122 -0
- arctrl/py/Spreadsheet/Metadata/run.py +122 -0
- arctrl/py/Spreadsheet/Metadata/sparse_table.py +499 -0
- arctrl/py/Spreadsheet/Metadata/study.py +312 -0
- arctrl/py/Spreadsheet/Metadata/workflow.py +159 -0
- arctrl/py/Spreadsheet/__init__.py +0 -0
- arctrl/py/Spreadsheet/arc_assay.py +233 -0
- arctrl/py/Spreadsheet/arc_investigation.py +435 -0
- arctrl/py/Spreadsheet/arc_run.py +190 -0
- arctrl/py/Spreadsheet/arc_study.py +144 -0
- arctrl/py/Spreadsheet/arc_workflow.py +177 -0
- arctrl/py/Spreadsheet/assembly_info.py +1 -0
- arctrl/py/Spreadsheet/collection_aux.py +167 -0
- arctrl/py/Spreadsheet/datamap.py +43 -0
- arctrl/py/Spreadsheet/template.py +460 -0
- arctrl/py/ValidationPackages/__init__.py +0 -0
- arctrl/py/ValidationPackages/validation_package.py +82 -0
- arctrl/py/ValidationPackages/validation_packages_config.py +132 -0
- arctrl/py/WebRequest/__init__.py +0 -0
- arctrl/py/WebRequest/web_request.py +9 -0
- arctrl/py/WebRequest/web_request_py.py +135 -0
- arctrl/py/WorkflowGraph/__init__.py +0 -0
- arctrl/py/WorkflowGraph/adapters.py +141 -0
- arctrl/py/WorkflowGraph/build_options.py +45 -0
- arctrl/py/WorkflowGraph/builder.py +720 -0
- arctrl/py/WorkflowGraph/graph_types.py +260 -0
- arctrl/py/WorkflowGraph/query_helpers.py +76 -0
- arctrl/py/WorkflowGraph/reference_parsing.py +59 -0
- arctrl/py/WorkflowGraph/visualization_siren.py +574 -0
- arctrl/py/WorkflowGraph/workflow_graph.py +119 -0
- arctrl/py/Yaml/__init__.py +0 -0
- arctrl/py/Yaml/decode.py +1 -0
- arctrl/py/Yaml/encode.py +10 -0
- arctrl/py/Yaml/validation_package.py +77 -0
- arctrl/py/Yaml/validation_packages_config.py +86 -0
- arctrl/py/__init__.py +0 -0
- arctrl/py/arc.py +1891 -0
- arctrl/py/column_index.py +280 -0
- arctrl/py/conversion.py +142 -0
- arctrl/py/cross_async.py +76 -0
- arctrl/py/cwlrun_resolver.py +228 -0
- arctrl/py/fable_modules/dynamic_obj/__init__.py +0 -0
- arctrl/py/fable_modules/dynamic_obj/dyn_obj.py +136 -0
- arctrl/py/fable_modules/dynamic_obj/dynamic_obj.py +415 -0
- arctrl/py/fable_modules/dynamic_obj/fable_js.py +1 -0
- arctrl/py/fable_modules/dynamic_obj/fable_py.py +288 -0
- arctrl/py/fable_modules/dynamic_obj/hash_codes.py +82 -0
- arctrl/py/fable_modules/dynamic_obj/property_helper.py +25 -0
- arctrl/py/fable_modules/dynamic_obj/reflection_utils.py +87 -0
- arctrl/py/fable_modules/fable_library/__init__.py +0 -0
- arctrl/py/fable_modules/fable_library/array_.py +1528 -0
- arctrl/py/fable_modules/fable_library/async_.py +377 -0
- arctrl/py/fable_modules/fable_library/async_builder.py +379 -0
- arctrl/py/fable_modules/fable_library/big_int.py +330 -0
- arctrl/py/fable_modules/fable_library/bit_converter.py +131 -0
- arctrl/py/fable_modules/fable_library/boolean.py +26 -0
- arctrl/py/fable_modules/fable_library/char.py +237 -0
- arctrl/py/fable_modules/fable_library/choice.py +212 -0
- arctrl/py/fable_modules/fable_library/date.py +779 -0
- arctrl/py/fable_modules/fable_library/date_offset.py +79 -0
- arctrl/py/fable_modules/fable_library/decimal_.py +190 -0
- arctrl/py/fable_modules/fable_library/diagnostics.py +54 -0
- arctrl/py/fable_modules/fable_library/double.py +87 -0
- arctrl/py/fable_modules/fable_library/encoding.py +41 -0
- arctrl/py/fable_modules/fable_library/event.py +206 -0
- arctrl/py/fable_modules/fable_library/file.py +107 -0
- arctrl/py/fable_modules/fable_library/fsharp_collections.py +52 -0
- arctrl/py/fable_modules/fable_library/fsharp_core.py +123 -0
- arctrl/py/fable_modules/fable_library/global_.py +63 -0
- arctrl/py/fable_modules/fable_library/guid.py +41 -0
- arctrl/py/fable_modules/fable_library/int32.py +73 -0
- arctrl/py/fable_modules/fable_library/list.py +1788 -0
- arctrl/py/fable_modules/fable_library/long.py +240 -0
- arctrl/py/fable_modules/fable_library/mailbox_processor.py +179 -0
- arctrl/py/fable_modules/fable_library/map.py +1854 -0
- arctrl/py/fable_modules/fable_library/map_util.py +148 -0
- arctrl/py/fable_modules/fable_library/mutable_map.py +397 -0
- arctrl/py/fable_modules/fable_library/mutable_set.py +279 -0
- arctrl/py/fable_modules/fable_library/native.py +45 -0
- arctrl/py/fable_modules/fable_library/numeric.py +46 -0
- arctrl/py/fable_modules/fable_library/observable.py +222 -0
- arctrl/py/fable_modules/fable_library/option.py +128 -0
- arctrl/py/fable_modules/fable_library/path.py +62 -0
- arctrl/py/fable_modules/fable_library/range.py +117 -0
- arctrl/py/fable_modules/fable_library/reflection.py +463 -0
- arctrl/py/fable_modules/fable_library/reg_exp.py +137 -0
- arctrl/py/fable_modules/fable_library/resize_array.py +31 -0
- arctrl/py/fable_modules/fable_library/result.py +212 -0
- arctrl/py/fable_modules/fable_library/seq.py +1979 -0
- arctrl/py/fable_modules/fable_library/seq2.py +221 -0
- arctrl/py/fable_modules/fable_library/set.py +2414 -0
- arctrl/py/fable_modules/fable_library/singleton_local_time_zone.py +36 -0
- arctrl/py/fable_modules/fable_library/string_.py +573 -0
- arctrl/py/fable_modules/fable_library/system_collections_generic.py +462 -0
- arctrl/py/fable_modules/fable_library/system_text.py +237 -0
- arctrl/py/fable_modules/fable_library/task.py +116 -0
- arctrl/py/fable_modules/fable_library/task_builder.py +122 -0
- arctrl/py/fable_modules/fable_library/thread.py +5 -0
- arctrl/py/fable_modules/fable_library/time_span.py +283 -0
- arctrl/py/fable_modules/fable_library/timer.py +24 -0
- arctrl/py/fable_modules/fable_library/types.py +401 -0
- arctrl/py/fable_modules/fable_library/uri.py +109 -0
- arctrl/py/fable_modules/fable_library/util.py +2735 -0
- arctrl/py/fable_modules/fable_openpyxl/__init__.py +0 -0
- arctrl/py/fable_modules/fable_openpyxl/openpyxl.py +362 -0
- arctrl/py/fable_modules/fable_python/cognite-sdk/__init__.py +0 -0
- arctrl/py/fable_modules/fable_python/cognite-sdk/cognite_sdk.py +22 -0
- arctrl/py/fable_modules/fable_python/flask/__init__.py +0 -0
- arctrl/py/fable_modules/fable_python/flask/flask.py +34 -0
- arctrl/py/fable_modules/fable_python/jupyter/__init__.py +0 -0
- arctrl/py/fable_modules/fable_python/jupyter/ipy_widgets.py +47 -0
- arctrl/py/fable_modules/fable_python/jupyter/ipython.py +13 -0
- arctrl/py/fable_modules/fable_python/stdlib/__init__.py +0 -0
- arctrl/py/fable_modules/fable_python/stdlib/ast.py +1 -0
- arctrl/py/fable_modules/fable_python/stdlib/asyncio/__init__.py +0 -0
- arctrl/py/fable_modules/fable_python/stdlib/asyncio/events.py +17 -0
- arctrl/py/fable_modules/fable_python/stdlib/asyncio/futures.py +52 -0
- arctrl/py/fable_modules/fable_python/stdlib/asyncio/tasks.py +38 -0
- arctrl/py/fable_modules/fable_python/stdlib/base64_.py +1 -0
- arctrl/py/fable_modules/fable_python/stdlib/builtins_.py +38 -0
- arctrl/py/fable_modules/fable_python/stdlib/html.py +1 -0
- arctrl/py/fable_modules/fable_python/stdlib/json.py +1 -0
- arctrl/py/fable_modules/fable_python/stdlib/math_.py +1 -0
- arctrl/py/fable_modules/fable_python/stdlib/os_.py +1 -0
- arctrl/py/fable_modules/fable_python/stdlib/queue_.py +1 -0
- arctrl/py/fable_modules/fable_python/stdlib/string_.py +1 -0
- arctrl/py/fable_modules/fable_python/stdlib/sys_.py +30 -0
- arctrl/py/fable_modules/fable_python/stdlib/time_.py +1 -0
- arctrl/py/fable_modules/fable_python/stdlib/tk_inter.py +1 -0
- arctrl/py/fable_modules/fs_spreadsheet/Cells/__init__.py +0 -0
- arctrl/py/fable_modules/fs_spreadsheet/Cells/fs_cell.py +340 -0
- arctrl/py/fable_modules/fs_spreadsheet/Cells/fs_cells_collection.py +466 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/__init__.py +0 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/cell_builder.py +214 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/column_builder.py +139 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/dsl.py +50 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/expression.py +65 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/operators.py +9 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/row_builder.py +139 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/sheet_builder.py +118 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/table_builder.py +122 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/transform.py +463 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/types.py +314 -0
- arctrl/py/fable_modules/fs_spreadsheet/DSL/workbook_builder.py +106 -0
- arctrl/py/fable_modules/fs_spreadsheet/Json/__init__.py +0 -0
- arctrl/py/fable_modules/fs_spreadsheet/Json/cell.py +103 -0
- arctrl/py/fable_modules/fs_spreadsheet/Json/column.py +70 -0
- arctrl/py/fable_modules/fs_spreadsheet/Json/row.py +70 -0
- arctrl/py/fable_modules/fs_spreadsheet/Json/table.py +54 -0
- arctrl/py/fable_modules/fs_spreadsheet/Json/value.py +93 -0
- arctrl/py/fable_modules/fs_spreadsheet/Json/workbook.py +71 -0
- arctrl/py/fable_modules/fs_spreadsheet/Json/worksheet.py +216 -0
- arctrl/py/fable_modules/fs_spreadsheet/Ranges/__init__.py +0 -0
- arctrl/py/fable_modules/fs_spreadsheet/Ranges/fs_range.py +43 -0
- arctrl/py/fable_modules/fs_spreadsheet/Ranges/fs_range_address.py +190 -0
- arctrl/py/fable_modules/fs_spreadsheet/Ranges/fs_range_base.py +92 -0
- arctrl/py/fable_modules/fs_spreadsheet/Ranges/fs_range_column.py +77 -0
- arctrl/py/fable_modules/fs_spreadsheet/Ranges/fs_range_row.py +48 -0
- arctrl/py/fable_modules/fs_spreadsheet/Tables/__init__.py +0 -0
- arctrl/py/fable_modules/fs_spreadsheet/Tables/fs_table.py +461 -0
- arctrl/py/fable_modules/fs_spreadsheet/Tables/fs_table_field.py +117 -0
- arctrl/py/fable_modules/fs_spreadsheet/Tables/fs_table_row.py +23 -0
- arctrl/py/fable_modules/fs_spreadsheet/__init__.py +0 -0
- arctrl/py/fable_modules/fs_spreadsheet/fs_address.py +236 -0
- arctrl/py/fable_modules/fs_spreadsheet/fs_column.py +172 -0
- arctrl/py/fable_modules/fs_spreadsheet/fs_row.py +183 -0
- arctrl/py/fable_modules/fs_spreadsheet/fs_workbook.py +192 -0
- arctrl/py/fable_modules/fs_spreadsheet/fs_worksheet.py +610 -0
- arctrl/py/fable_modules/fs_spreadsheet/hash_codes.py +60 -0
- arctrl/py/fable_modules/fs_spreadsheet/sheet_builder.py +329 -0
- arctrl/py/fable_modules/fs_spreadsheet_py/__init__.py +0 -0
- arctrl/py/fable_modules/fs_spreadsheet_py/cell.py +60 -0
- arctrl/py/fable_modules/fs_spreadsheet_py/cell_type.py +50 -0
- arctrl/py/fable_modules/fs_spreadsheet_py/fs_extension.py +60 -0
- arctrl/py/fable_modules/fs_spreadsheet_py/json.py +47 -0
- arctrl/py/fable_modules/fs_spreadsheet_py/table.py +54 -0
- arctrl/py/fable_modules/fs_spreadsheet_py/workbook.py +41 -0
- arctrl/py/fable_modules/fs_spreadsheet_py/worksheet.py +52 -0
- arctrl/py/fable_modules/fs_spreadsheet_py/xlsx.py +37 -0
- arctrl/py/fable_modules/siren/__init__.py +0 -0
- arctrl/py/fable_modules/siren/config.py +1038 -0
- arctrl/py/fable_modules/siren/formatting.py +1121 -0
- arctrl/py/fable_modules/siren/siren.py +1941 -0
- arctrl/py/fable_modules/siren/siren_types.py +1229 -0
- arctrl/py/fable_modules/siren/theme_variables.py +517 -0
- arctrl/py/fable_modules/siren/util.py +37 -0
- arctrl/py/fable_modules/siren/yaml.py +101 -0
- arctrl/py/fable_modules/thoth_json_core/__init__.py +0 -0
- arctrl/py/fable_modules/thoth_json_core/decode.py +1614 -0
- arctrl/py/fable_modules/thoth_json_core/encode.py +305 -0
- arctrl/py/fable_modules/thoth_json_core/types.py +181 -0
- arctrl/py/fable_modules/thoth_json_python/__init__.py +0 -0
- arctrl/py/fable_modules/thoth_json_python/decode.py +112 -0
- arctrl/py/fable_modules/thoth_json_python/encode.py +72 -0
- arctrl/py/fable_modules/thoth_json_python/python.py +1 -0
- arctrl/py/fable_modules/yamlicious/Interop/__init__.py +0 -0
- arctrl/py/fable_modules/yamlicious/Interop/js_interop.py +1 -0
- arctrl/py/fable_modules/yamlicious/Interop/py_interop.py +7 -0
- arctrl/py/fable_modules/yamlicious/__init__.py +0 -0
- arctrl/py/fable_modules/yamlicious/decode.py +1784 -0
- arctrl/py/fable_modules/yamlicious/encode.py +84 -0
- arctrl/py/fable_modules/yamlicious/flow_to_block.py +994 -0
- arctrl/py/fable_modules/yamlicious/library.py +10 -0
- arctrl/py/fable_modules/yamlicious/persil.py +57 -0
- arctrl/py/fable_modules/yamlicious/preprocessing.py +99 -0
- arctrl/py/fable_modules/yamlicious/reader.py +739 -0
- arctrl/py/fable_modules/yamlicious/regex.py +29 -0
- arctrl/py/fable_modules/yamlicious/regex_active_patterns.py +265 -0
- arctrl/py/fable_modules/yamlicious/writer.py +175 -0
- arctrl/py/fable_modules/yamlicious/yamlicious_types.py +128 -0
- arctrl/py/json.py +389 -0
- arctrl/py/license.py +169 -0
- arctrl/py/rocrate_io.py +242 -0
- arctrl/py/template_web.py +23 -0
- arctrl/py/xlsx.py +212 -0
- arctrl/py/yaml.py +79 -0
- arctrl/rocrate.py +21 -0
- arctrl-3.0.0.dist-info/METADATA +157 -0
- arctrl-3.0.0.dist-info/RECORD +511 -0
- arctrl-3.0.0.dist-info/WHEEL +4 -0
- arctrl-3.0.0.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,1121 @@
|
|
|
1
|
+
from __future__ import annotations
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from typing import (Any, TypeVar)
|
|
4
|
+
from ..fable_library.list import (map as map_1, FSharpList, filter, of_array, choose, of_seq)
|
|
5
|
+
from ..fable_library.option import (default_arg, map, value as value_1)
|
|
6
|
+
from ..fable_library.seq import (map as map_2, to_list, delay, append, singleton, is_empty, collect)
|
|
7
|
+
from ..fable_library.seq2 import distinct
|
|
8
|
+
from ..fable_library.string_ import (to_text, printf, join, to_fail, initialize, replace, trim_end)
|
|
9
|
+
from ..fable_library.types import to_string as to_string_1
|
|
10
|
+
from ..fable_library.util import (int32_to_string, equals, structural_hash, IEnumerable_1)
|
|
11
|
+
from .siren_types import (NotePosition, Direction, FlowchartLinkTypes, FlowchartNodeTypes, SequenceMessageTypes, ClassMemberVisibility, ClassMemberClassifier, ClassRelationshipDirection, ClassRelationshipType, ClassCardinality, ERCardinalityType, ERKeyType, ERAttribute, GanttTags, GanttUnit, RDRiskType, RDVerifyMethod, RDRelationship, RequirementDiagramElement, GitCommitType, MindmapShape, MindmapElement, TimelineElement, SankeyElement, BlockBlockType, BlockArrowDirection)
|
|
12
|
+
from .util import Option_formatString
|
|
13
|
+
|
|
14
|
+
__B = TypeVar("__B")
|
|
15
|
+
|
|
16
|
+
def Siren_NotePosition__NotePosition_ToFormatString(this: NotePosition) -> str:
|
|
17
|
+
if this.tag == 1:
|
|
18
|
+
return "right of"
|
|
19
|
+
|
|
20
|
+
elif this.tag == 2:
|
|
21
|
+
return "left of"
|
|
22
|
+
|
|
23
|
+
else:
|
|
24
|
+
return "over"
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
def Generic_formatComment(txt: str) -> str:
|
|
29
|
+
return to_text(printf("%%%% %s"))(txt)
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def Generic_formatDirection(direction: Direction) -> str:
|
|
33
|
+
arg: str = to_string_1(direction)
|
|
34
|
+
return to_text(printf("direction %s"))(arg)
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def Generic_formatClickHref(id: str, url: str, tooltip: str | None=None) -> str:
|
|
38
|
+
def mapping(s: str, id: Any=id, url: Any=url, tooltip: Any=tooltip) -> str:
|
|
39
|
+
return to_text(printf(" \"%s\""))(s)
|
|
40
|
+
|
|
41
|
+
tooltip_1: str = default_arg(map(mapping, tooltip), "")
|
|
42
|
+
return to_text(printf("click %s href \"%s\"%s"))(id)(url)(tooltip_1)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
def Generic_formatNote(id: str, position: NotePosition | None, msg: str) -> str:
|
|
46
|
+
position_1: str = Siren_NotePosition__NotePosition_ToFormatString(default_arg(position, NotePosition(1)))
|
|
47
|
+
return to_text(printf("note %s %s : %s"))(position_1)(id)(msg)
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
def Generic_formatClassDef(class_name: str, styles0: FSharpList[tuple[str, str]]) -> str:
|
|
51
|
+
def mapping(tupled_arg: tuple[str, str], class_name: Any=class_name, styles0: Any=styles0) -> str:
|
|
52
|
+
return to_text(printf("%s:%s"))(tupled_arg[0])(tupled_arg[1])
|
|
53
|
+
|
|
54
|
+
styles: str = join(",", map_1(mapping, styles0))
|
|
55
|
+
return to_text(printf("classDef %s %s;"))(class_name)(styles)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
def Generic_formatClass(node_ids0: FSharpList[str], class_name: str) -> str:
|
|
59
|
+
ids: str = join(",", node_ids0)
|
|
60
|
+
return to_text(printf("class %s %s;"))(ids)(class_name)
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
def Siren_FlowchartLinkTypes__FlowchartLinkTypes_appendTextOption_Static(txt: str | None, arrow: str) -> str:
|
|
64
|
+
if txt is not None:
|
|
65
|
+
arg_1: str = value_1(txt)
|
|
66
|
+
return to_text(printf("%s|%s|"))(arrow)(arg_1)
|
|
67
|
+
|
|
68
|
+
else:
|
|
69
|
+
return arrow
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
def Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(this: FlowchartLinkTypes, added_length: int | None=None) -> str:
|
|
74
|
+
added_length_1: int = default_arg(added_length, 1) or 0
|
|
75
|
+
if added_length_1 < 1:
|
|
76
|
+
to_fail(printf("Minimum length of a link was set below 1: %i"))(added_length_1)
|
|
77
|
+
|
|
78
|
+
char: str = Siren_FlowchartLinkTypes__FlowchartLinkTypes_GetAddLengthChar(this)
|
|
79
|
+
def _arrow127(i: int, this: Any=this, added_length: Any=added_length) -> str:
|
|
80
|
+
return char
|
|
81
|
+
|
|
82
|
+
return initialize(added_length_1, _arrow127)
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
def Siren_FlowchartLinkTypes__FlowchartLinkTypes_GetAddLengthChar(this: FlowchartLinkTypes) -> str:
|
|
86
|
+
if (((((this.tag == 0) or (this.tag == 7)) or (this.tag == 8)) or (this.tag == 9)) or (this.tag == 10)) or (this.tag == 11):
|
|
87
|
+
return "-"
|
|
88
|
+
|
|
89
|
+
elif (this.tag == 2) or (this.tag == 3):
|
|
90
|
+
return "."
|
|
91
|
+
|
|
92
|
+
elif (this.tag == 4) or (this.tag == 5):
|
|
93
|
+
return "="
|
|
94
|
+
|
|
95
|
+
elif this.tag == 6:
|
|
96
|
+
return "~"
|
|
97
|
+
|
|
98
|
+
else:
|
|
99
|
+
return "-"
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
def Flowchart_formatMinimalNamedNode(id: str, name: str) -> str:
|
|
104
|
+
return ((("" + id) + "[") + name) + "]"
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def Flowchart_nodeTypeToFormatter(nodetype: FlowchartNodeTypes) -> Callable[[str, str], str]:
|
|
108
|
+
if nodetype.tag == 1:
|
|
109
|
+
def _arrow129(id_1: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
110
|
+
def _arrow128(name_1: str) -> str:
|
|
111
|
+
return ((("" + id_1) + "(") + name_1) + ")"
|
|
112
|
+
|
|
113
|
+
return _arrow128
|
|
114
|
+
|
|
115
|
+
return _arrow129
|
|
116
|
+
|
|
117
|
+
elif nodetype.tag == 2:
|
|
118
|
+
def _arrow131(id_2: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
119
|
+
def _arrow130(name_2: str) -> str:
|
|
120
|
+
return ((("" + id_2) + "([") + name_2) + "])"
|
|
121
|
+
|
|
122
|
+
return _arrow130
|
|
123
|
+
|
|
124
|
+
return _arrow131
|
|
125
|
+
|
|
126
|
+
elif nodetype.tag == 3:
|
|
127
|
+
def _arrow133(id_3: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
128
|
+
def _arrow132(name_3: str) -> str:
|
|
129
|
+
return ((("" + id_3) + "[[") + name_3) + "]]"
|
|
130
|
+
|
|
131
|
+
return _arrow132
|
|
132
|
+
|
|
133
|
+
return _arrow133
|
|
134
|
+
|
|
135
|
+
elif nodetype.tag == 4:
|
|
136
|
+
def _arrow135(id_4: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
137
|
+
def _arrow134(name_4: str) -> str:
|
|
138
|
+
return ((("" + id_4) + "[(") + name_4) + ")]"
|
|
139
|
+
|
|
140
|
+
return _arrow134
|
|
141
|
+
|
|
142
|
+
return _arrow135
|
|
143
|
+
|
|
144
|
+
elif nodetype.tag == 5:
|
|
145
|
+
def _arrow137(id_5: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
146
|
+
def _arrow136(name_5: str) -> str:
|
|
147
|
+
return ((("" + id_5) + "((") + name_5) + "))"
|
|
148
|
+
|
|
149
|
+
return _arrow136
|
|
150
|
+
|
|
151
|
+
return _arrow137
|
|
152
|
+
|
|
153
|
+
elif nodetype.tag == 6:
|
|
154
|
+
def _arrow139(id_6: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
155
|
+
def _arrow138(name_6: str) -> str:
|
|
156
|
+
return ((("" + id_6) + ">") + name_6) + "]"
|
|
157
|
+
|
|
158
|
+
return _arrow138
|
|
159
|
+
|
|
160
|
+
return _arrow139
|
|
161
|
+
|
|
162
|
+
elif nodetype.tag == 7:
|
|
163
|
+
def _arrow141(id_7: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
164
|
+
def _arrow140(name_7: str) -> str:
|
|
165
|
+
return to_text(printf("%s{%s}"))(id_7)(name_7)
|
|
166
|
+
|
|
167
|
+
return _arrow140
|
|
168
|
+
|
|
169
|
+
return _arrow141
|
|
170
|
+
|
|
171
|
+
elif nodetype.tag == 8:
|
|
172
|
+
def _arrow143(id_8: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
173
|
+
def _arrow142(name_8: str) -> str:
|
|
174
|
+
return to_text(printf("%s{{%s}}"))(id_8)(name_8)
|
|
175
|
+
|
|
176
|
+
return _arrow142
|
|
177
|
+
|
|
178
|
+
return _arrow143
|
|
179
|
+
|
|
180
|
+
elif nodetype.tag == 9:
|
|
181
|
+
def _arrow145(id_9: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
182
|
+
def _arrow144(name_9: str) -> str:
|
|
183
|
+
return to_text(printf("%s[/%s/]"))(id_9)(name_9)
|
|
184
|
+
|
|
185
|
+
return _arrow144
|
|
186
|
+
|
|
187
|
+
return _arrow145
|
|
188
|
+
|
|
189
|
+
elif nodetype.tag == 10:
|
|
190
|
+
def _arrow147(id_10: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
191
|
+
def _arrow146(name_10: str) -> str:
|
|
192
|
+
return to_text(printf("%s[\\%s\\]"))(id_10)(name_10)
|
|
193
|
+
|
|
194
|
+
return _arrow146
|
|
195
|
+
|
|
196
|
+
return _arrow147
|
|
197
|
+
|
|
198
|
+
elif nodetype.tag == 11:
|
|
199
|
+
def _arrow149(id_11: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
200
|
+
def _arrow148(name_11: str) -> str:
|
|
201
|
+
return to_text(printf("%s[/%s\\]"))(id_11)(name_11)
|
|
202
|
+
|
|
203
|
+
return _arrow148
|
|
204
|
+
|
|
205
|
+
return _arrow149
|
|
206
|
+
|
|
207
|
+
elif nodetype.tag == 12:
|
|
208
|
+
def _arrow151(id_12: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
209
|
+
def _arrow150(name_12: str) -> str:
|
|
210
|
+
return to_text(printf("%s[\\%s/]"))(id_12)(name_12)
|
|
211
|
+
|
|
212
|
+
return _arrow150
|
|
213
|
+
|
|
214
|
+
return _arrow151
|
|
215
|
+
|
|
216
|
+
elif nodetype.tag == 13:
|
|
217
|
+
def _arrow153(id_13: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
218
|
+
def _arrow152(name_13: str) -> str:
|
|
219
|
+
return to_text(printf("%s(((%s)))"))(id_13)(name_13)
|
|
220
|
+
|
|
221
|
+
return _arrow152
|
|
222
|
+
|
|
223
|
+
return _arrow153
|
|
224
|
+
|
|
225
|
+
else:
|
|
226
|
+
def _arrow155(id: str, nodetype: Any=nodetype) -> Callable[[str], str]:
|
|
227
|
+
def _arrow154(name: str) -> str:
|
|
228
|
+
return Flowchart_formatMinimalNamedNode(id, name)
|
|
229
|
+
|
|
230
|
+
return _arrow154
|
|
231
|
+
|
|
232
|
+
return _arrow155
|
|
233
|
+
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
def Flowchart_formatNode(id: str, name: str | None, shape: FlowchartNodeTypes) -> str:
|
|
237
|
+
return Flowchart_nodeTypeToFormatter(shape)(id)(default_arg(name, id))
|
|
238
|
+
|
|
239
|
+
|
|
240
|
+
def Flowchart_formatLinkType(link: FlowchartLinkTypes, msg: str | None=None, added_length: int | None=None) -> str:
|
|
241
|
+
return Siren_FlowchartLinkTypes__FlowchartLinkTypes_appendTextOption_Static(msg, (("-" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + "-") if (link.tag == 1) else ((("-" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + "-") if (link.tag == 2) else ((("-" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + "->") if (link.tag == 3) else ((("=" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + "=") if (link.tag == 4) else ((("=" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + ">") if (link.tag == 5) else ((("~" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + "~") if (link.tag == 6) else ((("-" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + "o") if (link.tag == 7) else ((("-" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + "x") if (link.tag == 8) else ((("<-" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + ">") if (link.tag == 9) else ((("o-" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + "o") if (link.tag == 10) else ((("x-" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + "x") if (link.tag == 11) else (("-" + Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F(link, added_length)) + ">"))))))))))))
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
def Flowchart_formatLink(n1: str, n2: str, link: FlowchartLinkTypes, msg: str | None=None, added_length: int | None=None) -> str:
|
|
245
|
+
return (n1 + Flowchart_formatLinkType(link, msg, added_length)) + n2
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
def Flowchart_formatSubgraph(id: str, name: str | None=None) -> str:
|
|
249
|
+
name_str: str
|
|
250
|
+
if name is not None:
|
|
251
|
+
arg: str = value_1(name)
|
|
252
|
+
name_str = to_text(printf("[%s]"))(arg)
|
|
253
|
+
|
|
254
|
+
else:
|
|
255
|
+
name_str = ""
|
|
256
|
+
|
|
257
|
+
return to_text(printf("subgraph %s%s"))(id)(name_str)
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
def Flowchart_formatLinkStyles(ids0: FSharpList[int], styles0: FSharpList[tuple[str, str]]) -> str:
|
|
261
|
+
def mapping(tupled_arg: tuple[str, str], ids0: Any=ids0, styles0: Any=styles0) -> str:
|
|
262
|
+
return to_text(printf("%s:%s"))(tupled_arg[0])(tupled_arg[1])
|
|
263
|
+
|
|
264
|
+
styles: str = join(",", map_1(mapping, styles0))
|
|
265
|
+
def mapping_1(value: int, ids0: Any=ids0, styles0: Any=styles0) -> str:
|
|
266
|
+
return int32_to_string(value)
|
|
267
|
+
|
|
268
|
+
ids: str = join(",", map_1(mapping_1, ids0))
|
|
269
|
+
return to_text(printf("linkStyle %s %s;"))(ids)(styles)
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
def Flowchart_formatNodeStyles(ids0: FSharpList[str], styles0: FSharpList[tuple[str, str]]) -> str:
|
|
273
|
+
def mapping(tupled_arg: tuple[str, str], ids0: Any=ids0, styles0: Any=styles0) -> str:
|
|
274
|
+
return to_text(printf("%s:%s"))(tupled_arg[0])(tupled_arg[1])
|
|
275
|
+
|
|
276
|
+
styles: str = join(",", map_1(mapping, styles0))
|
|
277
|
+
ids: str = join(",", ids0)
|
|
278
|
+
return to_text(printf("style %s %s;"))(ids)(styles)
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
def Sequence_formatMessageType(msg_type: SequenceMessageTypes) -> str:
|
|
282
|
+
if msg_type.tag == 1:
|
|
283
|
+
return "-->"
|
|
284
|
+
|
|
285
|
+
elif msg_type.tag == 2:
|
|
286
|
+
return "->>"
|
|
287
|
+
|
|
288
|
+
elif msg_type.tag == 3:
|
|
289
|
+
return "-->>"
|
|
290
|
+
|
|
291
|
+
elif msg_type.tag == 4:
|
|
292
|
+
return "-x"
|
|
293
|
+
|
|
294
|
+
elif msg_type.tag == 5:
|
|
295
|
+
return "--x"
|
|
296
|
+
|
|
297
|
+
elif msg_type.tag == 6:
|
|
298
|
+
return "-)"
|
|
299
|
+
|
|
300
|
+
elif msg_type.tag == 7:
|
|
301
|
+
return "--)"
|
|
302
|
+
|
|
303
|
+
else:
|
|
304
|
+
return "->"
|
|
305
|
+
|
|
306
|
+
|
|
307
|
+
|
|
308
|
+
def Sequence_formatMessage(a1: str, a2: str, msg_type: SequenceMessageTypes, msg: str, activate: bool | None=None) -> str:
|
|
309
|
+
active: str = ("+" if activate else "-") if (activate is not None) else ""
|
|
310
|
+
arg_1: str = Sequence_formatMessageType(msg_type)
|
|
311
|
+
return to_text(printf("%s%s%s%s: %s"))(a1)(arg_1)(active)(a2)(msg)
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
def Sequence_formatParticipant(name: str, alias: str | None=None) -> str:
|
|
315
|
+
def format(s: str, name: Any=name, alias: Any=alias) -> str:
|
|
316
|
+
return to_text(printf(" as %s"))(s)
|
|
317
|
+
|
|
318
|
+
alias_1: str = Option_formatString(format, alias)
|
|
319
|
+
return to_text(printf("participant %s%s"))(name)(alias_1)
|
|
320
|
+
|
|
321
|
+
|
|
322
|
+
def Sequence_formatActor(name: str, alias: str | None=None) -> str:
|
|
323
|
+
def format(s: str, name: Any=name, alias: Any=alias) -> str:
|
|
324
|
+
return to_text(printf(" as %s"))(s)
|
|
325
|
+
|
|
326
|
+
alias_1: str = Option_formatString(format, alias)
|
|
327
|
+
return to_text(printf("actor %s%s"))(name)(alias_1)
|
|
328
|
+
|
|
329
|
+
|
|
330
|
+
def Sequence_formatCreate(formatter: Callable[[str, str | None], str], name: str, alias: str | None=None) -> str:
|
|
331
|
+
arg: str = formatter(name, alias)
|
|
332
|
+
return to_text(printf("create %s"))(arg)
|
|
333
|
+
|
|
334
|
+
|
|
335
|
+
def Sequence_formatDestroy(id: str) -> str:
|
|
336
|
+
return to_text(printf("destroy %s"))(id)
|
|
337
|
+
|
|
338
|
+
|
|
339
|
+
def Sequence_formatBox(name: str, color: str | None=None) -> str:
|
|
340
|
+
def _arrow157(__unit: None=None, name: Any=name, color: Any=color) -> Callable[[str], str]:
|
|
341
|
+
clo: Callable[[str], str] = to_text(printf("%s "))
|
|
342
|
+
return clo
|
|
343
|
+
|
|
344
|
+
color_1: str = Option_formatString(_arrow157(), color)
|
|
345
|
+
return to_text(printf("box %s%s"))(color_1)(name)
|
|
346
|
+
|
|
347
|
+
|
|
348
|
+
def Sequence_formatNoteSpanning(id1: str, id2: str, position: NotePosition | None, msg: str) -> str:
|
|
349
|
+
position_1: str = Siren_NotePosition__NotePosition_ToFormatString(default_arg(position, NotePosition(1)))
|
|
350
|
+
return to_text(printf("note %s %s,%s : %s"))(position_1)(id1)(id2)(msg)
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
def Siren_ClassMemberVisibility__ClassMemberVisibility_ToFormatString(this: ClassMemberVisibility) -> str:
|
|
354
|
+
if this.tag == 1:
|
|
355
|
+
return "-"
|
|
356
|
+
|
|
357
|
+
elif this.tag == 2:
|
|
358
|
+
return "#"
|
|
359
|
+
|
|
360
|
+
elif this.tag == 3:
|
|
361
|
+
return "~"
|
|
362
|
+
|
|
363
|
+
elif this.tag == 4:
|
|
364
|
+
return this.fields[0]
|
|
365
|
+
|
|
366
|
+
else:
|
|
367
|
+
return "+"
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
|
|
371
|
+
def Siren_ClassMemberClassifier__ClassMemberClassifier_ToFormatString(this: ClassMemberClassifier) -> str:
|
|
372
|
+
if this.tag == 1:
|
|
373
|
+
return "$"
|
|
374
|
+
|
|
375
|
+
elif this.tag == 2:
|
|
376
|
+
return this.fields[0]
|
|
377
|
+
|
|
378
|
+
else:
|
|
379
|
+
return "*"
|
|
380
|
+
|
|
381
|
+
|
|
382
|
+
|
|
383
|
+
def Siren_ClassRelationshipDirection__ClassRelationshipDirection_ToFormatString_30230F9B(this: ClassRelationshipDirection, left: str, right: str, center: str) -> str:
|
|
384
|
+
if this.tag == 1:
|
|
385
|
+
return center + right
|
|
386
|
+
|
|
387
|
+
elif this.tag == 2:
|
|
388
|
+
return (left + center) + right
|
|
389
|
+
|
|
390
|
+
else:
|
|
391
|
+
return left + center
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
def Siren_ClassRelationshipDirection__ClassRelationshipDirection_ToFormatString_Z384F8060(this: ClassRelationshipDirection, edge: str, center: str) -> str:
|
|
396
|
+
if this.tag == 1:
|
|
397
|
+
return center + edge
|
|
398
|
+
|
|
399
|
+
elif this.tag == 2:
|
|
400
|
+
return (edge + center) + edge
|
|
401
|
+
|
|
402
|
+
else:
|
|
403
|
+
return edge + center
|
|
404
|
+
|
|
405
|
+
|
|
406
|
+
|
|
407
|
+
def Siren_ClassRelationshipType__ClassRelationshipType_ToFormatString_7464358D(this: ClassRelationshipType, direction: ClassRelationshipDirection | None=None, is_dotted: bool | None=None) -> str:
|
|
408
|
+
center: str = ".." if default_arg(is_dotted, False) else "--"
|
|
409
|
+
direct: ClassRelationshipDirection = default_arg(direction, ClassRelationshipDirection(1))
|
|
410
|
+
if this.tag == 1:
|
|
411
|
+
return Siren_ClassRelationshipDirection__ClassRelationshipDirection_ToFormatString_Z384F8060(direct, "*", center)
|
|
412
|
+
|
|
413
|
+
elif this.tag == 2:
|
|
414
|
+
return Siren_ClassRelationshipDirection__ClassRelationshipDirection_ToFormatString_Z384F8060(direct, "o", center)
|
|
415
|
+
|
|
416
|
+
elif this.tag == 3:
|
|
417
|
+
return Siren_ClassRelationshipDirection__ClassRelationshipDirection_ToFormatString_30230F9B(direct, "<", ">", center)
|
|
418
|
+
|
|
419
|
+
elif this.tag == 4:
|
|
420
|
+
return center
|
|
421
|
+
|
|
422
|
+
elif this.tag == 5:
|
|
423
|
+
return "--"
|
|
424
|
+
|
|
425
|
+
elif this.tag == 6:
|
|
426
|
+
return ".."
|
|
427
|
+
|
|
428
|
+
elif this.tag == 7:
|
|
429
|
+
return Siren_ClassRelationshipDirection__ClassRelationshipDirection_ToFormatString_30230F9B(direct, "<", ">", "..")
|
|
430
|
+
|
|
431
|
+
elif this.tag == 8:
|
|
432
|
+
return Siren_ClassRelationshipDirection__ClassRelationshipDirection_ToFormatString_30230F9B(direct, "<|", "|>", "..")
|
|
433
|
+
|
|
434
|
+
else:
|
|
435
|
+
return Siren_ClassRelationshipDirection__ClassRelationshipDirection_ToFormatString_30230F9B(direct, "<|", "|>", center)
|
|
436
|
+
|
|
437
|
+
|
|
438
|
+
|
|
439
|
+
def Siren_ClassCardinality__ClassCardinality_ToFormatString(this: ClassCardinality) -> str:
|
|
440
|
+
if this.tag == 1:
|
|
441
|
+
return "0..1"
|
|
442
|
+
|
|
443
|
+
elif this.tag == 2:
|
|
444
|
+
return "1..*"
|
|
445
|
+
|
|
446
|
+
elif this.tag == 3:
|
|
447
|
+
return "*"
|
|
448
|
+
|
|
449
|
+
elif this.tag == 4:
|
|
450
|
+
return "n"
|
|
451
|
+
|
|
452
|
+
elif this.tag == 5:
|
|
453
|
+
return "0..n"
|
|
454
|
+
|
|
455
|
+
elif this.tag == 6:
|
|
456
|
+
return "1..n"
|
|
457
|
+
|
|
458
|
+
elif this.tag == 7:
|
|
459
|
+
return this.fields[0]
|
|
460
|
+
|
|
461
|
+
else:
|
|
462
|
+
return "1"
|
|
463
|
+
|
|
464
|
+
|
|
465
|
+
|
|
466
|
+
def ClassDiagram_formatClass(id: str, name: str | None=None, generic: str | None=None) -> str:
|
|
467
|
+
def format(s: str, id: Any=id, name: Any=name, generic: Any=generic) -> str:
|
|
468
|
+
return to_text(printf("[\"%s\"]"))(s)
|
|
469
|
+
|
|
470
|
+
name_1: str = Option_formatString(format, name)
|
|
471
|
+
def format_1(s_1: str, id: Any=id, name: Any=name, generic: Any=generic) -> str:
|
|
472
|
+
return to_text(printf("~%s~"))(s_1)
|
|
473
|
+
|
|
474
|
+
generic_1: str = Option_formatString(format_1, generic)
|
|
475
|
+
return to_text(printf("class %s%s%s"))(id)(generic_1)(name_1)
|
|
476
|
+
|
|
477
|
+
|
|
478
|
+
def ClassDiagram_formatClassMember(name: str, visibility: ClassMemberVisibility | None=None, classifier: ClassMemberClassifier | None=None) -> str:
|
|
479
|
+
def format(x: str, name: Any=name, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
480
|
+
return x
|
|
481
|
+
|
|
482
|
+
def mapping(_arg: ClassMemberVisibility, name: Any=name, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
483
|
+
return Siren_ClassMemberVisibility__ClassMemberVisibility_ToFormatString(_arg)
|
|
484
|
+
|
|
485
|
+
def format_1(x_1: str, name: Any=name, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
486
|
+
return x_1
|
|
487
|
+
|
|
488
|
+
def mapping_1(_arg_1: ClassMemberClassifier, name: Any=name, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
489
|
+
return Siren_ClassMemberClassifier__ClassMemberClassifier_ToFormatString(_arg_1)
|
|
490
|
+
|
|
491
|
+
return (Option_formatString(format, map(mapping, visibility)) + name) + Option_formatString(format_1, map(mapping_1, classifier))
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
def ClassDiagram_formatGeneric(generic: str) -> str:
|
|
495
|
+
return replace(replace(generic, "<", "~"), ">", "~")
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
def ClassDiagram_formatClassAttr(name: str, generic: str | None=None, visibility: ClassMemberVisibility | None=None, classifier: ClassMemberClassifier | None=None) -> str:
|
|
499
|
+
def _arrow158(generic_1: str, name: Any=name, generic: Any=generic, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
500
|
+
return ClassDiagram_formatGeneric(generic_1)
|
|
501
|
+
|
|
502
|
+
generic_2: str = Option_formatString(_arrow158, generic)
|
|
503
|
+
def format(x: str, name: Any=name, generic: Any=generic, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
504
|
+
return x
|
|
505
|
+
|
|
506
|
+
def mapping(_arg: ClassMemberVisibility, name: Any=name, generic: Any=generic, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
507
|
+
return Siren_ClassMemberVisibility__ClassMemberVisibility_ToFormatString(_arg)
|
|
508
|
+
|
|
509
|
+
visibility_1: str = Option_formatString(format, map(mapping, visibility))
|
|
510
|
+
def format_1(x_1: str, name: Any=name, generic: Any=generic, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
511
|
+
return x_1
|
|
512
|
+
|
|
513
|
+
def mapping_1(_arg_1: ClassMemberClassifier, name: Any=name, generic: Any=generic, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
514
|
+
return Siren_ClassMemberClassifier__ClassMemberClassifier_ToFormatString(_arg_1)
|
|
515
|
+
|
|
516
|
+
classifier_1: str = Option_formatString(format_1, map(mapping_1, classifier))
|
|
517
|
+
_arg_2: str = to_text(printf("%s%s %s%s"))(visibility_1)(generic_2)(name)(classifier_1)
|
|
518
|
+
return _arg_2.strip()
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
def ClassDiagram_formatClassFunction(name: str, args: str | None=None, return_type: str | None=None, visibility: ClassMemberVisibility | None=None, classifier: ClassMemberClassifier | None=None) -> str:
|
|
522
|
+
def format(x: str, name: Any=name, args: Any=args, return_type: Any=return_type, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
523
|
+
return x
|
|
524
|
+
|
|
525
|
+
def mapping(_arg: ClassMemberVisibility, name: Any=name, args: Any=args, return_type: Any=return_type, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
526
|
+
return Siren_ClassMemberVisibility__ClassMemberVisibility_ToFormatString(_arg)
|
|
527
|
+
|
|
528
|
+
visibility_1: str = Option_formatString(format, map(mapping, visibility))
|
|
529
|
+
def format_1(x_1: str, name: Any=name, args: Any=args, return_type: Any=return_type, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
530
|
+
return x_1
|
|
531
|
+
|
|
532
|
+
def mapping_1(_arg_1: ClassMemberClassifier, name: Any=name, args: Any=args, return_type: Any=return_type, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
533
|
+
return Siren_ClassMemberClassifier__ClassMemberClassifier_ToFormatString(_arg_1)
|
|
534
|
+
|
|
535
|
+
classifier_1: str = Option_formatString(format_1, map(mapping_1, classifier))
|
|
536
|
+
args_1: str = ClassDiagram_formatGeneric(default_arg(args, ""))
|
|
537
|
+
def format_2(x_2: str, name: Any=name, args: Any=args, return_type: Any=return_type, visibility: Any=visibility, classifier: Any=classifier) -> str:
|
|
538
|
+
arg: str = ClassDiagram_formatGeneric(x_2)
|
|
539
|
+
return to_text(printf(" %s"))(arg)
|
|
540
|
+
|
|
541
|
+
return_type_1: str = Option_formatString(format_2, return_type)
|
|
542
|
+
return to_text(printf("%s%s(%s)%s%s"))(visibility_1)(name)(args_1)(return_type_1)(classifier_1)
|
|
543
|
+
|
|
544
|
+
|
|
545
|
+
def ClassDiagram_formatMember(id: str, label: str, visibility: ClassMemberVisibility | None=None, classifier: ClassMemberClassifier | None=None) -> str:
|
|
546
|
+
arg_1: str = ClassDiagram_formatClassMember(label, visibility, classifier)
|
|
547
|
+
return to_text(printf("%s : %s"))(id)(arg_1)
|
|
548
|
+
|
|
549
|
+
|
|
550
|
+
def ClassDiagram_formatAttr(id: str, name: str, generic: str | None=None, visibility: ClassMemberVisibility | None=None, classifier: ClassMemberClassifier | None=None) -> str:
|
|
551
|
+
arg_1: str = ClassDiagram_formatClassAttr(name, generic, visibility, classifier)
|
|
552
|
+
return to_text(printf("%s : %s"))(id)(arg_1)
|
|
553
|
+
|
|
554
|
+
|
|
555
|
+
def ClassDiagram_formatFunction(id: str, name: str, args: str | None=None, return_type: str | None=None, visibility: ClassMemberVisibility | None=None, classifier: ClassMemberClassifier | None=None) -> str:
|
|
556
|
+
arg_1: str = ClassDiagram_formatClassFunction(name, args, return_type, visibility, classifier)
|
|
557
|
+
return to_text(printf("%s : %s"))(id)(arg_1)
|
|
558
|
+
|
|
559
|
+
|
|
560
|
+
def ClassDiagram_formatRelationship0(id1: str, id2: str, link: str, label: str | None=None, cardinality1: ClassCardinality | None=None, cardinality2: ClassCardinality | None=None) -> str:
|
|
561
|
+
def format(s: str, id1: Any=id1, id2: Any=id2, link: Any=link, label: Any=label, cardinality1: Any=cardinality1, cardinality2: Any=cardinality2) -> str:
|
|
562
|
+
return to_text(printf(" \"%s\""))(s)
|
|
563
|
+
|
|
564
|
+
def mapping(_arg: ClassCardinality, id1: Any=id1, id2: Any=id2, link: Any=link, label: Any=label, cardinality1: Any=cardinality1, cardinality2: Any=cardinality2) -> str:
|
|
565
|
+
return Siren_ClassCardinality__ClassCardinality_ToFormatString(_arg)
|
|
566
|
+
|
|
567
|
+
car1: str = Option_formatString(format, map(mapping, cardinality1))
|
|
568
|
+
def format_1(s_1: str, id1: Any=id1, id2: Any=id2, link: Any=link, label: Any=label, cardinality1: Any=cardinality1, cardinality2: Any=cardinality2) -> str:
|
|
569
|
+
return to_text(printf("\"%s\" "))(s_1)
|
|
570
|
+
|
|
571
|
+
def mapping_1(_arg_1: ClassCardinality, id1: Any=id1, id2: Any=id2, link: Any=link, label: Any=label, cardinality1: Any=cardinality1, cardinality2: Any=cardinality2) -> str:
|
|
572
|
+
return Siren_ClassCardinality__ClassCardinality_ToFormatString(_arg_1)
|
|
573
|
+
|
|
574
|
+
car2: str = Option_formatString(format_1, map(mapping_1, cardinality2))
|
|
575
|
+
def format_2(l: str, id1: Any=id1, id2: Any=id2, link: Any=link, label: Any=label, cardinality1: Any=cardinality1, cardinality2: Any=cardinality2) -> str:
|
|
576
|
+
return to_text(printf(" : %s"))(l)
|
|
577
|
+
|
|
578
|
+
label_1: str = Option_formatString(format_2, label)
|
|
579
|
+
return to_text(printf("%s%s %s %s%s%s"))(id1)(car1)(link)(car2)(id2)(label_1)
|
|
580
|
+
|
|
581
|
+
|
|
582
|
+
def ClassDiagram_formatRelationship(id1: str, id2: str, rlts_type: ClassRelationshipType, label: str | None=None, cardinality1: ClassCardinality | None=None, cardinality2: ClassCardinality | None=None) -> str:
|
|
583
|
+
return ClassDiagram_formatRelationship0(id1, id2, Siren_ClassRelationshipType__ClassRelationshipType_ToFormatString_7464358D(rlts_type, None, None), label, cardinality1, cardinality2)
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
def ClassDiagram_formatRelationshipCustom(id1: str, id2: str, rlts_type: ClassRelationshipType, direction: ClassRelationshipDirection | None=None, dotted: bool | None=None, label: str | None=None, cardinality1: ClassCardinality | None=None, cardinality2: ClassCardinality | None=None) -> str:
|
|
587
|
+
return ClassDiagram_formatRelationship0(id1, id2, Siren_ClassRelationshipType__ClassRelationshipType_ToFormatString_7464358D(rlts_type, direction, dotted), label, cardinality1, cardinality2)
|
|
588
|
+
|
|
589
|
+
|
|
590
|
+
def ClassDiagram_formatAnnotation(id0: str | None, annotation: str) -> str:
|
|
591
|
+
if id0 is None:
|
|
592
|
+
return to_text(printf("<<%s>>"))(annotation)
|
|
593
|
+
|
|
594
|
+
else:
|
|
595
|
+
id: str = id0
|
|
596
|
+
return to_text(printf("<<%s>> %s"))(annotation)(id)
|
|
597
|
+
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
def ClassDiagram_formatNote(txt: str, id: str | None=None) -> str:
|
|
601
|
+
if id is not None:
|
|
602
|
+
arg: str = value_1(id)
|
|
603
|
+
return to_text(printf("note for %s \"%s\""))(arg)(txt)
|
|
604
|
+
|
|
605
|
+
else:
|
|
606
|
+
return to_text(printf("note \"%s\""))(txt)
|
|
607
|
+
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
def ClassDiagram_formatClassStyles(id: str, styles0: FSharpList[tuple[str, str]]) -> str:
|
|
611
|
+
def mapping(tupled_arg: tuple[str, str], id: Any=id, styles0: Any=styles0) -> str:
|
|
612
|
+
return to_text(printf("%s: %s"))(tupled_arg[0])(tupled_arg[1])
|
|
613
|
+
|
|
614
|
+
styles: str = join(",", map_1(mapping, styles0))
|
|
615
|
+
return to_text(printf("style %s %s"))(id)(styles)
|
|
616
|
+
|
|
617
|
+
|
|
618
|
+
def ClassDiagram_formatCssClass(ids0: FSharpList[str], class_name: str) -> str:
|
|
619
|
+
ids: str = join(",", ids0)
|
|
620
|
+
return to_text(printf("style \"%s\" %s;"))(ids)(class_name)
|
|
621
|
+
|
|
622
|
+
|
|
623
|
+
def StateDiagram_formatState(id: str, description: str | None=None) -> str:
|
|
624
|
+
def format(s: str, id: Any=id, description: Any=description) -> str:
|
|
625
|
+
return to_text(printf(" : %s"))(s)
|
|
626
|
+
|
|
627
|
+
description_1: str = Option_formatString(format, description)
|
|
628
|
+
return to_text(printf("%s%s"))(id)(description_1)
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
def StateDiagram_formatTransition(id1: str, id2: str, description: str | None=None) -> str:
|
|
632
|
+
def format(s: str, id1: Any=id1, id2: Any=id2, description: Any=description) -> str:
|
|
633
|
+
return to_text(printf(" : %s"))(s)
|
|
634
|
+
|
|
635
|
+
description_1: str = Option_formatString(format, description)
|
|
636
|
+
return to_text(printf("%s --> %s%s"))(id1)(id2)(description_1)
|
|
637
|
+
|
|
638
|
+
|
|
639
|
+
def StateDiagram_formatNoteWrapper(id: str, position: NotePosition | None=None) -> str:
|
|
640
|
+
position_1: str = Siren_NotePosition__NotePosition_ToFormatString(default_arg(position, NotePosition(1)))
|
|
641
|
+
return to_text(printf("note %s %s"))(position_1)(id)
|
|
642
|
+
|
|
643
|
+
|
|
644
|
+
def Siren_ERCardinalityType__ERCardinalityType_ToFormatString(this: ERCardinalityType) -> str:
|
|
645
|
+
if this.tag == 1:
|
|
646
|
+
return "one or many"
|
|
647
|
+
|
|
648
|
+
elif this.tag == 2:
|
|
649
|
+
return "zero or many"
|
|
650
|
+
|
|
651
|
+
elif this.tag == 3:
|
|
652
|
+
return "only one"
|
|
653
|
+
|
|
654
|
+
else:
|
|
655
|
+
return "one or zero"
|
|
656
|
+
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
def ERDiagram_formatEntityNode(id: str, alias: str | None=None) -> str:
|
|
660
|
+
def format(s: str, id: Any=id, alias: Any=alias) -> str:
|
|
661
|
+
return to_text(printf("[\"%s\"]"))(s)
|
|
662
|
+
|
|
663
|
+
alias_1: str = Option_formatString(format, alias)
|
|
664
|
+
return to_text(printf("%s%s"))(id)(alias_1)
|
|
665
|
+
|
|
666
|
+
|
|
667
|
+
def ERDiagram_formatEntityWrapper(id: str, alias: str | None=None) -> str:
|
|
668
|
+
return ERDiagram_formatEntityNode(id, alias) + " {"
|
|
669
|
+
|
|
670
|
+
|
|
671
|
+
def ERDiagram_formatAttribute(attr: ERAttribute) -> str:
|
|
672
|
+
def predicate(s_1: str, attr: Any=attr) -> bool:
|
|
673
|
+
return s_1 != ""
|
|
674
|
+
|
|
675
|
+
def mapping(_arg: ERKeyType, attr: Any=attr) -> str:
|
|
676
|
+
return to_string_1(_arg)
|
|
677
|
+
|
|
678
|
+
def format(s: str, attr: Any=attr) -> str:
|
|
679
|
+
return to_text(printf("\"%s\""))(s)
|
|
680
|
+
|
|
681
|
+
return join(" ", filter(predicate, of_array([attr.Type, attr.Name, join(", ", map_1(mapping, attr.Keys)), Option_formatString(format, attr.Comment)])))
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
def ERDiagram_formatRelationship(id1: str, card1: ERCardinalityType, id2: str, card2: ERCardinalityType, msg: str, is_optional: bool | None=None) -> str:
|
|
685
|
+
to_string: str = "optionally to" if default_arg(is_optional, False) else "to"
|
|
686
|
+
arg_1: str = Siren_ERCardinalityType__ERCardinalityType_ToFormatString(card1)
|
|
687
|
+
arg_3: str = Siren_ERCardinalityType__ERCardinalityType_ToFormatString(card2)
|
|
688
|
+
return to_text(printf("%s %s %s %s %s : %s"))(id1)(arg_1)(to_string)(arg_3)(id2)(msg)
|
|
689
|
+
|
|
690
|
+
|
|
691
|
+
def UserJourney_formatTask(name: str, score: Any, actors: Any | None=None) -> str:
|
|
692
|
+
def mapping(strings: __B | None=None, name: Any=name, score: Any=score, actors: Any=actors) -> str:
|
|
693
|
+
return join(", ", strings)
|
|
694
|
+
|
|
695
|
+
actors_1: str | None = map(mapping, actors)
|
|
696
|
+
def _arrow160(x: str | None=None, name: Any=name, score: Any=score, actors: Any=actors) -> str | None:
|
|
697
|
+
return x
|
|
698
|
+
|
|
699
|
+
return join(": ", choose(_arrow160, of_array([name, to_string_1(score), actors_1])))
|
|
700
|
+
|
|
701
|
+
|
|
702
|
+
def Siren_GanttTags__GanttTags_ToFormatString(this: GanttTags) -> str:
|
|
703
|
+
if this.tag == 1:
|
|
704
|
+
return "done"
|
|
705
|
+
|
|
706
|
+
elif this.tag == 2:
|
|
707
|
+
return "crit"
|
|
708
|
+
|
|
709
|
+
elif this.tag == 3:
|
|
710
|
+
return "milestone"
|
|
711
|
+
|
|
712
|
+
else:
|
|
713
|
+
return "active"
|
|
714
|
+
|
|
715
|
+
|
|
716
|
+
|
|
717
|
+
def Siren_GanttUnit__GanttUnit_ToFormatString(this: GanttUnit) -> str:
|
|
718
|
+
_arg: str = to_string_1(this)
|
|
719
|
+
return _arg.lower()
|
|
720
|
+
|
|
721
|
+
|
|
722
|
+
def Gantt_formatTask(title: str, tags: FSharpList[GanttTags], selfid: str | None=None, start_date: str | None=None, end_date: str | None=None) -> str:
|
|
723
|
+
def mapping(x: GanttTags, title: Any=title, tags: Any=tags, selfid: Any=selfid, start_date: Any=start_date, end_date: Any=end_date) -> str | None:
|
|
724
|
+
return Siren_GanttTags__GanttTags_ToFormatString(x)
|
|
725
|
+
|
|
726
|
+
class ObjectExpr161:
|
|
727
|
+
@property
|
|
728
|
+
def Equals(self) -> Callable[[str | None, str | None], bool]:
|
|
729
|
+
return equals
|
|
730
|
+
|
|
731
|
+
@property
|
|
732
|
+
def GetHashCode(self) -> Callable[[str | None], int]:
|
|
733
|
+
return structural_hash
|
|
734
|
+
|
|
735
|
+
tags_1: IEnumerable_1[str | None] = distinct(map_2(mapping, tags), ObjectExpr161())
|
|
736
|
+
def chooser(x_2: str | None=None, title: Any=title, tags: Any=tags, selfid: Any=selfid, start_date: Any=start_date, end_date: Any=end_date) -> str | None:
|
|
737
|
+
return x_2
|
|
738
|
+
|
|
739
|
+
def _arrow165(__unit: None=None, title: Any=title, tags: Any=tags, selfid: Any=selfid, start_date: Any=start_date, end_date: Any=end_date) -> IEnumerable_1[str | None]:
|
|
740
|
+
def _arrow164(__unit: None=None) -> IEnumerable_1[str | None]:
|
|
741
|
+
def _arrow163(__unit: None=None) -> IEnumerable_1[str | None]:
|
|
742
|
+
def _arrow162(__unit: None=None) -> IEnumerable_1[str | None]:
|
|
743
|
+
return singleton(end_date)
|
|
744
|
+
|
|
745
|
+
return append(singleton(start_date), delay(_arrow162))
|
|
746
|
+
|
|
747
|
+
return append(singleton(selfid), delay(_arrow163))
|
|
748
|
+
|
|
749
|
+
return append(tags_1, delay(_arrow164))
|
|
750
|
+
|
|
751
|
+
metadata: str = join(", ", choose(chooser, to_list(delay(_arrow165))))
|
|
752
|
+
return to_text(printf("%s : %s"))(title)(metadata)
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
def PieChart_formatData(name: str, value: Any) -> str:
|
|
756
|
+
return to_text(printf("\"%s\" : %A"))(name)(value)
|
|
757
|
+
|
|
758
|
+
|
|
759
|
+
def QuadrantChart_formatAxis(base0: str, req: str, opt: str | None=None) -> str:
|
|
760
|
+
if opt is None:
|
|
761
|
+
return base0 + req
|
|
762
|
+
|
|
763
|
+
else:
|
|
764
|
+
v: str = opt
|
|
765
|
+
return base0 + to_text(printf("%s --> %s"))(req)(v)
|
|
766
|
+
|
|
767
|
+
|
|
768
|
+
|
|
769
|
+
def QuadrantChart_formatXAxis(left: str, right: str | None=None) -> str:
|
|
770
|
+
return QuadrantChart_formatAxis("x-axis ", left, right)
|
|
771
|
+
|
|
772
|
+
|
|
773
|
+
def QuadrantChart_formatYAxis(bottom: str, top: str | None=None) -> str:
|
|
774
|
+
return QuadrantChart_formatAxis("y-axis ", bottom, top)
|
|
775
|
+
|
|
776
|
+
|
|
777
|
+
def QuadrantChart_formatPoint(name: str, x: float, y: float) -> str:
|
|
778
|
+
return to_text(printf("%s: [%.2f, %.2f]"))(name)(x)(y)
|
|
779
|
+
|
|
780
|
+
|
|
781
|
+
def Siren_RDRiskType__RDRiskType_ToFormatString(this: RDRiskType) -> str:
|
|
782
|
+
return to_string_1(this).lower()
|
|
783
|
+
|
|
784
|
+
|
|
785
|
+
def Siren_RDVerifyMethod__RDVerifyMethod_ToFormatString(this: RDVerifyMethod) -> str:
|
|
786
|
+
return to_string_1(this).lower()
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
def Siren_RDRelationship__RDRelationship_ToFormatString(this: RDRelationship) -> str:
|
|
790
|
+
return to_string_1(this).lower()
|
|
791
|
+
|
|
792
|
+
|
|
793
|
+
def RequirementDiagram_createRequirement(type0: str, name: str, id: str | None=None, text: str | None=None, risk: RDRiskType | None=None, methods: RDVerifyMethod | None=None) -> RequirementDiagramElement:
|
|
794
|
+
def mapping_4(Item: str, type0: Any=type0, name: Any=name, id: Any=id, text: Any=text, risk: Any=risk, methods: Any=methods) -> RequirementDiagramElement:
|
|
795
|
+
return RequirementDiagramElement(0, Item)
|
|
796
|
+
|
|
797
|
+
def chooser(x: str | None=None, type0: Any=type0, name: Any=name, id: Any=id, text: Any=text, risk: Any=risk, methods: Any=methods) -> str | None:
|
|
798
|
+
return x
|
|
799
|
+
|
|
800
|
+
def mapping(i: str, type0: Any=type0, name: Any=name, id: Any=id, text: Any=text, risk: Any=risk, methods: Any=methods) -> str:
|
|
801
|
+
return to_text(printf("id: \"%s\""))(i)
|
|
802
|
+
|
|
803
|
+
def mapping_1(t: str, type0: Any=type0, name: Any=name, id: Any=id, text: Any=text, risk: Any=risk, methods: Any=methods) -> str:
|
|
804
|
+
return to_text(printf("text: \"%s\""))(t)
|
|
805
|
+
|
|
806
|
+
def mapping_2(r: RDRiskType, type0: Any=type0, name: Any=name, id: Any=id, text: Any=text, risk: Any=risk, methods: Any=methods) -> str:
|
|
807
|
+
arg_2: str = Siren_RDRiskType__RDRiskType_ToFormatString(r)
|
|
808
|
+
return to_text(printf("risk: %s"))(arg_2)
|
|
809
|
+
|
|
810
|
+
def mapping_3(m: RDVerifyMethod, type0: Any=type0, name: Any=name, id: Any=id, text: Any=text, risk: Any=risk, methods: Any=methods) -> str:
|
|
811
|
+
arg_3: str = Siren_RDVerifyMethod__RDVerifyMethod_ToFormatString(m)
|
|
812
|
+
return to_text(printf("verifymethod: %s"))(arg_3)
|
|
813
|
+
|
|
814
|
+
children: FSharpList[RequirementDiagramElement] = map_1(mapping_4, choose(chooser, of_array([map(mapping, id), map(mapping_1, text), map(mapping_2, risk), map(mapping_3, methods)])))
|
|
815
|
+
return RequirementDiagramElement(1, to_text(printf("%s %s {"))(type0)(name), "}", children)
|
|
816
|
+
|
|
817
|
+
|
|
818
|
+
def RequirementDiagram_createElement(name: str, type0: str | None=None, docref: str | None=None) -> RequirementDiagramElement:
|
|
819
|
+
def mapping_2(Item: str, name: Any=name, type0: Any=type0, docref: Any=docref) -> RequirementDiagramElement:
|
|
820
|
+
return RequirementDiagramElement(0, Item)
|
|
821
|
+
|
|
822
|
+
def chooser(x: str | None=None, name: Any=name, type0: Any=type0, docref: Any=docref) -> str | None:
|
|
823
|
+
return x
|
|
824
|
+
|
|
825
|
+
def mapping(t: str, name: Any=name, type0: Any=type0, docref: Any=docref) -> str:
|
|
826
|
+
return to_text(printf("type: \"%s\""))(t)
|
|
827
|
+
|
|
828
|
+
def mapping_1(d: str, name: Any=name, type0: Any=type0, docref: Any=docref) -> str:
|
|
829
|
+
return to_text(printf("docRef: \"%s\""))(d)
|
|
830
|
+
|
|
831
|
+
children: FSharpList[RequirementDiagramElement] = map_1(mapping_2, choose(chooser, of_array([map(mapping, type0), map(mapping_1, docref)])))
|
|
832
|
+
return RequirementDiagramElement(1, to_text(printf("element %s {"))(name), "}", children)
|
|
833
|
+
|
|
834
|
+
|
|
835
|
+
def RequirementDiagram_formatRelationship(id1: str, id2: str, rlts_type: RDRelationship) -> str:
|
|
836
|
+
arg_1: str = Siren_RDRelationship__RDRelationship_ToFormatString(rlts_type)
|
|
837
|
+
return to_text(printf("%s - %s -> %s"))(id1)(arg_1)(id2)
|
|
838
|
+
|
|
839
|
+
|
|
840
|
+
def Siren_GitCommitType__GitCommitType_ToFormatString(this: GitCommitType) -> str:
|
|
841
|
+
return to_string_1(this).upper()
|
|
842
|
+
|
|
843
|
+
|
|
844
|
+
def Git_formatCommitType(commit_type: GitCommitType | None=None) -> str | None:
|
|
845
|
+
def mapping(s: GitCommitType, commit_type: Any=commit_type) -> str:
|
|
846
|
+
arg: str = Siren_GitCommitType__GitCommitType_ToFormatString(s)
|
|
847
|
+
return to_text(printf("type: %s"))(arg)
|
|
848
|
+
|
|
849
|
+
return map(mapping, commit_type)
|
|
850
|
+
|
|
851
|
+
|
|
852
|
+
def Git_formatTag(tag: str | None=None) -> str | None:
|
|
853
|
+
def mapping(s: str, tag: Any=tag) -> str:
|
|
854
|
+
return to_text(printf("tag: \"%s\""))(s)
|
|
855
|
+
|
|
856
|
+
return map(mapping, tag)
|
|
857
|
+
|
|
858
|
+
|
|
859
|
+
def Git_formatSelfID(selfid: str | None=None) -> str | None:
|
|
860
|
+
def mapping(s: str, selfid: Any=selfid) -> str:
|
|
861
|
+
return to_text(printf("id: \"%s\""))(s)
|
|
862
|
+
|
|
863
|
+
return map(mapping, selfid)
|
|
864
|
+
|
|
865
|
+
|
|
866
|
+
def Git_formatParentID(aprent_id: str | None=None) -> str | None:
|
|
867
|
+
def mapping(s: str, aprent_id: Any=aprent_id) -> str:
|
|
868
|
+
return to_text(printf("parent: \"%s\""))(s)
|
|
869
|
+
|
|
870
|
+
return map(mapping, aprent_id)
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
def Git_formatCommit(selfid: str | None=None, commit_type: GitCommitType | None=None, tag: str | None=None) -> str:
|
|
874
|
+
def chooser(x: str | None=None, selfid: Any=selfid, commit_type: Any=commit_type, tag: Any=tag) -> str | None:
|
|
875
|
+
return x
|
|
876
|
+
|
|
877
|
+
return join(" ", choose(chooser, of_array(["commit", Git_formatSelfID(selfid), Git_formatCommitType(commit_type), Git_formatTag(tag)])))
|
|
878
|
+
|
|
879
|
+
|
|
880
|
+
def Git_formatMerge(target_id: str, merge_id: str | None=None, commit_type: GitCommitType | None=None, tag: str | None=None) -> str:
|
|
881
|
+
def chooser(x: str | None=None, target_id: Any=target_id, merge_id: Any=merge_id, commit_type: Any=commit_type, tag: Any=tag) -> str | None:
|
|
882
|
+
return x
|
|
883
|
+
|
|
884
|
+
return join(" ", choose(chooser, of_array(["merge", target_id, Git_formatSelfID(merge_id), Git_formatCommitType(commit_type), Git_formatTag(tag)])))
|
|
885
|
+
|
|
886
|
+
|
|
887
|
+
def Git_formatCherryPick(commitid: str, parentid: str | None=None) -> str:
|
|
888
|
+
def chooser(x: str | None=None, commitid: Any=commitid, parentid: Any=parentid) -> str | None:
|
|
889
|
+
return x
|
|
890
|
+
|
|
891
|
+
return join(" ", choose(chooser, of_array(["cherry-pick", Git_formatSelfID(commitid), Git_formatParentID(parentid)])))
|
|
892
|
+
|
|
893
|
+
|
|
894
|
+
def Mindmap_formatNode(id: str, name: str | None, t: MindmapShape) -> str:
|
|
895
|
+
name_1: str = default_arg(name, id)
|
|
896
|
+
if t.tag == 1:
|
|
897
|
+
return to_text(printf("%s(%s)"))(id)(name_1)
|
|
898
|
+
|
|
899
|
+
elif t.tag == 2:
|
|
900
|
+
return to_text(printf("%s((%s))"))(id)(name_1)
|
|
901
|
+
|
|
902
|
+
elif t.tag == 3:
|
|
903
|
+
return to_text(printf("%s))%s(("))(id)(name_1)
|
|
904
|
+
|
|
905
|
+
elif t.tag == 4:
|
|
906
|
+
return to_text(printf("%s)%s("))(id)(name_1)
|
|
907
|
+
|
|
908
|
+
elif t.tag == 5:
|
|
909
|
+
return to_text(printf("%s{{%s}}"))(id)(name_1)
|
|
910
|
+
|
|
911
|
+
else:
|
|
912
|
+
return to_text(printf("%s[%s]"))(id)(name_1)
|
|
913
|
+
|
|
914
|
+
|
|
915
|
+
|
|
916
|
+
def Mindmap_handleNodeChildren(children: Any | None, opener: str) -> MindmapElement:
|
|
917
|
+
if (not is_empty(value_1(children))) if (children is not None) else False:
|
|
918
|
+
return MindmapElement(1, opener, "", of_seq(value_1(children)))
|
|
919
|
+
|
|
920
|
+
else:
|
|
921
|
+
return MindmapElement(0, opener)
|
|
922
|
+
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
def Timeline_formatSingle(header: str, data: str | None=None) -> str:
|
|
926
|
+
if data is not None:
|
|
927
|
+
event: str = data
|
|
928
|
+
return to_text(printf("%s : %s"))(header)(event)
|
|
929
|
+
|
|
930
|
+
else:
|
|
931
|
+
return header
|
|
932
|
+
|
|
933
|
+
|
|
934
|
+
|
|
935
|
+
def Timeline_createMultiple(header: str, data: FSharpList[str]) -> TimelineElement:
|
|
936
|
+
def mapping(s: str, header: Any=header, data: Any=data) -> TimelineElement:
|
|
937
|
+
return TimelineElement(0, ": " + s)
|
|
938
|
+
|
|
939
|
+
return TimelineElement(1, header, "", map_1(mapping, data))
|
|
940
|
+
|
|
941
|
+
|
|
942
|
+
def Sankey_formatLink(source: str, target: str, value: float) -> str:
|
|
943
|
+
source_1: str = replace(source, "\"", "\"\"")
|
|
944
|
+
target_1: str = replace(target, "\"", "\"\"")
|
|
945
|
+
return to_text(printf("\"%s\",\"%s\",%f"))(source_1)(target_1)(value)
|
|
946
|
+
|
|
947
|
+
|
|
948
|
+
def Sankey_createLinks(source: str, targets: FSharpList[tuple[str, float]]) -> SankeyElement:
|
|
949
|
+
def _arrow168(__unit: None=None, source: Any=source, targets: Any=targets) -> IEnumerable_1[SankeyElement]:
|
|
950
|
+
def _arrow167(match_value: tuple[str, float]) -> IEnumerable_1[SankeyElement]:
|
|
951
|
+
return singleton(SankeyElement(0, Sankey_formatLink(source, match_value[0], match_value[1])))
|
|
952
|
+
|
|
953
|
+
return collect(_arrow167, targets)
|
|
954
|
+
|
|
955
|
+
return SankeyElement(1, to_list(delay(_arrow168)))
|
|
956
|
+
|
|
957
|
+
|
|
958
|
+
def XYChart_formatData(data: FSharpList[str]) -> str:
|
|
959
|
+
return ("[" + join(", ", data)) + "]"
|
|
960
|
+
|
|
961
|
+
|
|
962
|
+
def XYChart_formatXAxis(name: str | None, data: FSharpList[str]) -> str:
|
|
963
|
+
def chooser(x: str | None=None, name: Any=name, data: Any=data) -> str | None:
|
|
964
|
+
return x
|
|
965
|
+
|
|
966
|
+
def mapping(name_1: str, name: Any=name, data: Any=data) -> str:
|
|
967
|
+
return to_text(printf("\"%s\""))(name_1)
|
|
968
|
+
|
|
969
|
+
return join(" ", choose(chooser, of_array(["x-axis", map(mapping, name), XYChart_formatData(data)])))
|
|
970
|
+
|
|
971
|
+
|
|
972
|
+
def XYChart_formatXAxisRange(name: str | None, data_: float, data__1: float) -> str:
|
|
973
|
+
data: tuple[float, float] = (data_, data__1)
|
|
974
|
+
def chooser(x: str | None=None, name: Any=name, data_: Any=data_, data__1: Any=data__1) -> str | None:
|
|
975
|
+
return x
|
|
976
|
+
|
|
977
|
+
def mapping(name_1: str, name: Any=name, data_: Any=data_, data__1: Any=data__1) -> str:
|
|
978
|
+
return to_text(printf("\"%s\""))(name_1)
|
|
979
|
+
|
|
980
|
+
return join(" ", choose(chooser, of_array(["x-axis", map(mapping, name), to_text(printf("%f --> %f"))(data[0])(data[1])])))
|
|
981
|
+
|
|
982
|
+
|
|
983
|
+
def XYChart_formatYAxis(name: str | None=None, data: tuple[float, float] | None=None) -> str:
|
|
984
|
+
def chooser(x: str | None=None, name: Any=name, data: Any=data) -> str | None:
|
|
985
|
+
return x
|
|
986
|
+
|
|
987
|
+
def mapping(name_1: str, name: Any=name, data: Any=data) -> str:
|
|
988
|
+
return to_text(printf("\"%s\""))(name_1)
|
|
989
|
+
|
|
990
|
+
def mapping_1(data_1: tuple[float, float], name: Any=name, data: Any=data) -> str:
|
|
991
|
+
return to_text(printf("%f --> %f"))(data_1[0])(data_1[1])
|
|
992
|
+
|
|
993
|
+
return join(" ", choose(chooser, of_array(["y-axis", map(mapping, name), map(mapping_1, data)])))
|
|
994
|
+
|
|
995
|
+
|
|
996
|
+
def XYChart_formatLine(data: FSharpList[float]) -> str:
|
|
997
|
+
def mapping(value: float, data: Any=data) -> str:
|
|
998
|
+
return to_string_1(value)
|
|
999
|
+
|
|
1000
|
+
arg: str = XYChart_formatData(map_1(mapping, data))
|
|
1001
|
+
return to_text(printf("line %s"))(arg)
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
def XYChart_formatBar(data: FSharpList[float]) -> str:
|
|
1005
|
+
def mapping(value: float, data: Any=data) -> str:
|
|
1006
|
+
return to_string_1(value)
|
|
1007
|
+
|
|
1008
|
+
arg: str = XYChart_formatData(map_1(mapping, data))
|
|
1009
|
+
return to_text(printf("bar %s"))(arg)
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
def Siren_BlockBlockType__BlockBlockType_ToFormatString_Z384F8060(this: BlockBlockType, id: str, label: str) -> str:
|
|
1013
|
+
if this.tag == 1:
|
|
1014
|
+
return to_text(printf("%s(\"%s\")"))(id)(label)
|
|
1015
|
+
|
|
1016
|
+
elif this.tag == 2:
|
|
1017
|
+
return to_text(printf("%s([\"%s\"])"))(id)(label)
|
|
1018
|
+
|
|
1019
|
+
elif this.tag == 3:
|
|
1020
|
+
return to_text(printf("%s[[\"%s\"]]"))(id)(label)
|
|
1021
|
+
|
|
1022
|
+
elif this.tag == 4:
|
|
1023
|
+
return to_text(printf("%s[(\"%s\")]"))(id)(label)
|
|
1024
|
+
|
|
1025
|
+
elif this.tag == 5:
|
|
1026
|
+
return to_text(printf("%s((\"%s\"))"))(id)(label)
|
|
1027
|
+
|
|
1028
|
+
elif this.tag == 6:
|
|
1029
|
+
return to_text(printf("%s>\"%s\"]"))(id)(label)
|
|
1030
|
+
|
|
1031
|
+
elif this.tag == 7:
|
|
1032
|
+
return to_text(printf("%s{\"%s\"}"))(id)(label)
|
|
1033
|
+
|
|
1034
|
+
elif this.tag == 8:
|
|
1035
|
+
return to_text(printf("%s{{\"%s\"}}"))(id)(label)
|
|
1036
|
+
|
|
1037
|
+
elif this.tag == 9:
|
|
1038
|
+
return to_text(printf("%s[/\"%s\"/]"))(id)(label)
|
|
1039
|
+
|
|
1040
|
+
elif this.tag == 10:
|
|
1041
|
+
return to_text(printf("%s[\\\"%s\"\\]"))(id)(label)
|
|
1042
|
+
|
|
1043
|
+
elif this.tag == 11:
|
|
1044
|
+
return to_text(printf("%s[/\"%s\"\\]"))(id)(label)
|
|
1045
|
+
|
|
1046
|
+
elif this.tag == 12:
|
|
1047
|
+
return to_text(printf("%s[\\\"%s\"/]"))(id)(label)
|
|
1048
|
+
|
|
1049
|
+
elif this.tag == 13:
|
|
1050
|
+
return to_text(printf("%s(((\"%s\")))"))(id)(label)
|
|
1051
|
+
|
|
1052
|
+
else:
|
|
1053
|
+
return to_text(printf("%s[\"%s\"]"))(id)(label)
|
|
1054
|
+
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
def Siren_BlockArrowDirection__BlockArrowDirection_ToFormatString(this: BlockArrowDirection) -> str:
|
|
1058
|
+
if this.tag == 6:
|
|
1059
|
+
return this.fields[0]
|
|
1060
|
+
|
|
1061
|
+
else:
|
|
1062
|
+
return to_string_1(this).lower()
|
|
1063
|
+
|
|
1064
|
+
|
|
1065
|
+
|
|
1066
|
+
def Block_formatBlockType(id: str, label: str | None, width: int | None, block_type: BlockBlockType) -> str:
|
|
1067
|
+
def mapping(w: int, id: Any=id, label: Any=label, width: Any=width, block_type: Any=block_type) -> str:
|
|
1068
|
+
return to_text(printf(":%i"))(w)
|
|
1069
|
+
|
|
1070
|
+
return Siren_BlockBlockType__BlockBlockType_ToFormatString_Z384F8060(block_type, id, default_arg(label, id)) + default_arg(map(mapping, width), "")
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
def Block_formatBlockArrow(id: str, label: str | None, direction: BlockArrowDirection) -> str:
|
|
1074
|
+
label_1: str = default_arg(label, id)
|
|
1075
|
+
direction_str: str = Siren_BlockArrowDirection__BlockArrowDirection_ToFormatString(direction)
|
|
1076
|
+
return to_text(printf("%s<[\"%s\"]>(%s)"))(id)(label_1)(direction_str)
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
def Block_formatEmptyBlockArrow(id: str, width: int | None, direction: BlockArrowDirection) -> str:
|
|
1080
|
+
def _arrow171(_arg: int, id: Any=id, width: Any=width, direction: Any=direction) -> str:
|
|
1081
|
+
return " "
|
|
1082
|
+
|
|
1083
|
+
label_str: str = initialize(default_arg(width, 3), _arrow171)
|
|
1084
|
+
direction_str: str = Siren_BlockArrowDirection__BlockArrowDirection_ToFormatString(direction)
|
|
1085
|
+
return to_text(printf("%s<[\"%s\"]>(%s)"))(id)(label_str)(direction_str)
|
|
1086
|
+
|
|
1087
|
+
|
|
1088
|
+
def Block_formatSpace(width: int | None=None) -> str:
|
|
1089
|
+
if width is not None:
|
|
1090
|
+
arg: int = value_1(width) or 0
|
|
1091
|
+
return to_text(printf("space:%i"))(arg)
|
|
1092
|
+
|
|
1093
|
+
else:
|
|
1094
|
+
return "space"
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
|
|
1098
|
+
def Block_formatLink(id1: str, id2: str, label: str | None=None) -> str:
|
|
1099
|
+
if label is not None:
|
|
1100
|
+
arg_1: str = value_1(label)
|
|
1101
|
+
return to_text(printf("%s-- \"%s\" -->%s"))(id1)(arg_1)(id2)
|
|
1102
|
+
|
|
1103
|
+
else:
|
|
1104
|
+
return to_text(printf("%s-->%s"))(id1)(id2)
|
|
1105
|
+
|
|
1106
|
+
|
|
1107
|
+
|
|
1108
|
+
def Block_formatStyle(id: str, styles: FSharpList[tuple[str, str]]) -> str:
|
|
1109
|
+
def mapping(tupled_arg: tuple[str, str], id: Any=id, styles: Any=styles) -> str:
|
|
1110
|
+
return to_text(printf("%s:%s"))(tupled_arg[0])(tupled_arg[1])
|
|
1111
|
+
|
|
1112
|
+
styles_1: str = join(",", map_1(mapping, styles))
|
|
1113
|
+
return to_text(printf("style %s %s;"))(id)(styles_1)
|
|
1114
|
+
|
|
1115
|
+
|
|
1116
|
+
def Block_formatClass(node_ids0: FSharpList[str], class_name: str) -> str:
|
|
1117
|
+
return trim_end(Generic_formatClass(node_ids0, class_name), ";")
|
|
1118
|
+
|
|
1119
|
+
|
|
1120
|
+
__all__ = ["Siren_NotePosition__NotePosition_ToFormatString", "Generic_formatComment", "Generic_formatDirection", "Generic_formatClickHref", "Generic_formatNote", "Generic_formatClassDef", "Generic_formatClass", "Siren_FlowchartLinkTypes__FlowchartLinkTypes_appendTextOption_Static", "Siren_FlowchartLinkTypes__FlowchartLinkTypes_AddedLengthLinker_71136F3F", "Siren_FlowchartLinkTypes__FlowchartLinkTypes_GetAddLengthChar", "Flowchart_formatMinimalNamedNode", "Flowchart_nodeTypeToFormatter", "Flowchart_formatNode", "Flowchart_formatLinkType", "Flowchart_formatLink", "Flowchart_formatSubgraph", "Flowchart_formatLinkStyles", "Flowchart_formatNodeStyles", "Sequence_formatMessageType", "Sequence_formatMessage", "Sequence_formatParticipant", "Sequence_formatActor", "Sequence_formatCreate", "Sequence_formatDestroy", "Sequence_formatBox", "Sequence_formatNoteSpanning", "Siren_ClassMemberVisibility__ClassMemberVisibility_ToFormatString", "Siren_ClassMemberClassifier__ClassMemberClassifier_ToFormatString", "Siren_ClassRelationshipDirection__ClassRelationshipDirection_ToFormatString_30230F9B", "Siren_ClassRelationshipDirection__ClassRelationshipDirection_ToFormatString_Z384F8060", "Siren_ClassRelationshipType__ClassRelationshipType_ToFormatString_7464358D", "Siren_ClassCardinality__ClassCardinality_ToFormatString", "ClassDiagram_formatClass", "ClassDiagram_formatClassMember", "ClassDiagram_formatGeneric", "ClassDiagram_formatClassAttr", "ClassDiagram_formatClassFunction", "ClassDiagram_formatMember", "ClassDiagram_formatAttr", "ClassDiagram_formatFunction", "ClassDiagram_formatRelationship0", "ClassDiagram_formatRelationship", "ClassDiagram_formatRelationshipCustom", "ClassDiagram_formatAnnotation", "ClassDiagram_formatNote", "ClassDiagram_formatClassStyles", "ClassDiagram_formatCssClass", "StateDiagram_formatState", "StateDiagram_formatTransition", "StateDiagram_formatNoteWrapper", "Siren_ERCardinalityType__ERCardinalityType_ToFormatString", "ERDiagram_formatEntityNode", "ERDiagram_formatEntityWrapper", "ERDiagram_formatAttribute", "ERDiagram_formatRelationship", "UserJourney_formatTask", "Siren_GanttTags__GanttTags_ToFormatString", "Siren_GanttUnit__GanttUnit_ToFormatString", "Gantt_formatTask", "PieChart_formatData", "QuadrantChart_formatAxis", "QuadrantChart_formatXAxis", "QuadrantChart_formatYAxis", "QuadrantChart_formatPoint", "Siren_RDRiskType__RDRiskType_ToFormatString", "Siren_RDVerifyMethod__RDVerifyMethod_ToFormatString", "Siren_RDRelationship__RDRelationship_ToFormatString", "RequirementDiagram_createRequirement", "RequirementDiagram_createElement", "RequirementDiagram_formatRelationship", "Siren_GitCommitType__GitCommitType_ToFormatString", "Git_formatCommitType", "Git_formatTag", "Git_formatSelfID", "Git_formatParentID", "Git_formatCommit", "Git_formatMerge", "Git_formatCherryPick", "Mindmap_formatNode", "Mindmap_handleNodeChildren", "Timeline_formatSingle", "Timeline_createMultiple", "Sankey_formatLink", "Sankey_createLinks", "XYChart_formatData", "XYChart_formatXAxis", "XYChart_formatXAxisRange", "XYChart_formatYAxis", "XYChart_formatLine", "XYChart_formatBar", "Siren_BlockBlockType__BlockBlockType_ToFormatString_Z384F8060", "Siren_BlockArrowDirection__BlockArrowDirection_ToFormatString", "Block_formatBlockType", "Block_formatBlockArrow", "Block_formatEmptyBlockArrow", "Block_formatSpace", "Block_formatLink", "Block_formatStyle", "Block_formatClass"]
|
|
1121
|
+
|