db5 0.6.30 → 0.7.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/package.json +1 -42
- package/README.md +0 -3
- package/bin/astnCompact.mjs +0 -3
- package/bin/astnExpand.mjs +0 -3
- package/dist/schemaHost.d.ts +0 -2
- package/dist/schemaHost.js +0 -8
- package/dist/schemaHost.js.map +0 -1
- package/dist/src/implementations/getSchemaSchemaBuilder.d.ts +0 -2
- package/dist/src/implementations/getSchemaSchemaBuilder.js +0 -33
- package/dist/src/implementations/getSchemaSchemaBuilder.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/generics/IReadonlyDictionary.d.ts +0 -13
- package/dist/src/implementations/inMemoryDataset/generics/IReadonlyDictionary.js +0 -3
- package/dist/src/implementations/inMemoryDataset/generics/IReadonlyDictionary.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/generics/IReference.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/generics/IReference.js +0 -3
- package/dist/src/implementations/inMemoryDataset/generics/IReference.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/generics/index.d.ts +0 -2
- package/dist/src/implementations/inMemoryDataset/generics/index.js +0 -15
- package/dist/src/implementations/inMemoryDataset/generics/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/Global.d.ts +0 -5
- package/dist/src/implementations/inMemoryDataset/implementation/Global.js +0 -13
- package/dist/src/implementations/inMemoryDataset/implementation/Global.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/Root.d.ts +0 -22
- package/dist/src/implementations/inMemoryDataset/implementation/Root.js +0 -55
- package/dist/src/implementations/inMemoryDataset/implementation/Root.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/asyncAPIImplementation.d.ts +0 -7
- package/dist/src/implementations/inMemoryDataset/implementation/asyncAPIImplementation.js +0 -467
- package/dist/src/implementations/inMemoryDataset/implementation/asyncAPIImplementation.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/buildAPIImplementation.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/buildAPIImplementation.js +0 -243
- package/dist/src/implementations/inMemoryDataset/implementation/buildAPIImplementation.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/ChangeController.d.ts +0 -35
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/ChangeController.js +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/ChangeController.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/createChangeController.d.ts +0 -2
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/createChangeController.js +0 -215
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/createChangeController.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/index.d.ts +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/index.js +0 -14
- package/dist/src/implementations/inMemoryDataset/implementation/changeControl/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/copyEntry.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/copyEntry.js +0 -72
- package/dist/src/implementations/inMemoryDataset/implementation/copyEntry.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/createDataset.d.ts +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/createDataset.js +0 -48
- package/dist/src/implementations/inMemoryDataset/implementation/createDataset.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Array.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Array.js +0 -27
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Array.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Dictionary.d.ts +0 -38
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Dictionary.js +0 -85
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Dictionary.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Maybe.d.ts +0 -6
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Maybe.js +0 -23
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Maybe.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Mutable.d.ts +0 -6
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Mutable.js +0 -16
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Mutable.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveCollection.d.ts +0 -22
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveCollection.js +0 -94
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveCollection.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveValue.d.ts +0 -42
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveValue.js +0 -122
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/ReactiveValue.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Subscribers.d.ts +0 -6
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Subscribers.js +0 -21
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/Subscribers.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/index.d.ts +0 -7
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/index.js +0 -20
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/raw.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/raw.js +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/genericimp/raw.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/initializeNode.d.ts +0 -4
- package/dist/src/implementations/inMemoryDataset/implementation/initializeNode.js +0 -59
- package/dist/src/implementations/inMemoryDataset/implementation/initializeNode.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Collection.d.ts +0 -56
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Collection.js +0 -127
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Collection.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Comments.d.ts +0 -11
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Comments.js +0 -23
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Comments.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Component.d.ts +0 -9
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Component.js +0 -16
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Component.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/ErrorManager.d.ts +0 -32
- package/dist/src/implementations/inMemoryDataset/implementation/internals/ErrorManager.js +0 -114
- package/dist/src/implementations/inMemoryDataset/implementation/internals/ErrorManager.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Node.d.ts +0 -12
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Node.js +0 -34
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Node.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/StateGroup.d.ts +0 -36
- package/dist/src/implementations/inMemoryDataset/implementation/internals/StateGroup.js +0 -74
- package/dist/src/implementations/inMemoryDataset/implementation/internals/StateGroup.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Value.d.ts +0 -21
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Value.js +0 -68
- package/dist/src/implementations/inMemoryDataset/implementation/internals/Value.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/internals/index.d.ts +0 -7
- package/dist/src/implementations/inMemoryDataset/implementation/internals/index.js +0 -20
- package/dist/src/implementations/inMemoryDataset/implementation/internals/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/index.d.ts +0 -0
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/index.js +0 -3
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serialize.d.ts +0 -5
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serialize.js +0 -99
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serialize.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeInstanceData.d.ts +0 -12
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeInstanceData.js +0 -238
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeInstanceData.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.d.ts +0 -2
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.js +0 -175
- package/dist/src/implementations/inMemoryDataset/implementation/serialize/serializeMetaData.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/index.d.ts +0 -1
- package/dist/src/implementations/inMemoryDataset/index.js +0 -6
- package/dist/src/implementations/inMemoryDataset/index.js.map +0 -1
- package/dist/src/implementations/inMemoryDataset/types.d.ts +0 -45
- package/dist/src/implementations/inMemoryDataset/types.js +0 -3
- package/dist/src/implementations/inMemoryDataset/types.js.map +0 -1
- package/dist/src/implementations/index.d.ts +0 -3
- package/dist/src/implementations/index.js +0 -16
- package/dist/src/implementations/index.js.map +0 -1
- package/dist/src/implementations/makeNativeHTTPrequest.d.ts +0 -4
- package/dist/src/implementations/makeNativeHTTPrequest.js +0 -76
- package/dist/src/implementations/makeNativeHTTPrequest.js.map +0 -1
- package/dist/src/index.d.ts +0 -3
- package/dist/src/index.js +0 -16
- package/dist/src/index.js.map +0 -1
- package/dist/src/interfaces/SchemaHost.d.ts +0 -4
- package/dist/src/interfaces/SchemaHost.js +0 -3
- package/dist/src/interfaces/SchemaHost.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/asyncAPI.d.ts +0 -96
- package/dist/src/interfaces/asyncAPI/asyncAPI.js +0 -3
- package/dist/src/interfaces/asyncAPI/asyncAPI.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/generic/index.d.ts +0 -1
- package/dist/src/interfaces/asyncAPI/generic/index.js +0 -14
- package/dist/src/interfaces/asyncAPI/generic/index.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/generic/subscribables.d.ts +0 -15
- package/dist/src/interfaces/asyncAPI/generic/subscribables.js +0 -3
- package/dist/src/interfaces/asyncAPI/generic/subscribables.js.map +0 -1
- package/dist/src/interfaces/asyncAPI/index.d.ts +0 -2
- package/dist/src/interfaces/asyncAPI/index.js +0 -15
- package/dist/src/interfaces/asyncAPI/index.js.map +0 -1
- package/dist/src/interfaces/index.d.ts +0 -2
- package/dist/src/interfaces/index.js +0 -15
- package/dist/src/interfaces/index.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/NOPSideEffects.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/deserialize/NOPSideEffects.js +0 -106
- package/dist/src/parserSpecific/implementation/deserialize/NOPSideEffects.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/createDeserializer.d.ts +0 -24
- package/dist/src/parserSpecific/implementation/deserialize/createDeserializer.js +0 -177
- package/dist/src/parserSpecific/implementation/deserialize/createDeserializer.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/createSchemaDeserializer.d.ts +0 -6
- package/dist/src/parserSpecific/implementation/deserialize/createSchemaDeserializer.js +0 -102
- package/dist/src/parserSpecific/implementation/deserialize/createSchemaDeserializer.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/deserializeTextIntoDataset.d.ts +0 -14
- package/dist/src/parserSpecific/implementation/deserialize/deserializeTextIntoDataset.js +0 -151
- package/dist/src/parserSpecific/implementation/deserialize/deserializeTextIntoDataset.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/printDeserializeDiagnostic.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/deserialize/printDeserializeDiagnostic.js +0 -68
- package/dist/src/parserSpecific/implementation/deserialize/printDeserializeDiagnostic.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaDeserializationError.d.ts +0 -7
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaDeserializationError.js +0 -69
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaDeserializationError.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaError.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaError.js +0 -60
- package/dist/src/parserSpecific/implementation/deserialize/printInternalSchemaError.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/printLoadDocumentDiagnostic.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/deserialize/printLoadDocumentDiagnostic.js +0 -75
- package/dist/src/parserSpecific/implementation/deserialize/printLoadDocumentDiagnostic.js.map +0 -1
- package/dist/src/parserSpecific/implementation/deserialize/printSchemaSchemaError.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/deserialize/printSchemaSchemaError.js +0 -64
- package/dist/src/parserSpecific/implementation/deserialize/printSchemaSchemaError.js.map +0 -1
- package/dist/src/parserSpecific/implementation/ide-integration/createCodeCompletionFinder.d.ts +0 -3
- package/dist/src/parserSpecific/implementation/ide-integration/createCodeCompletionFinder.js +0 -65
- package/dist/src/parserSpecific/implementation/ide-integration/createCodeCompletionFinder.js.map +0 -1
- package/dist/src/parserSpecific/implementation/ide-integration/createHoverTextFinder.d.ts +0 -5
- package/dist/src/parserSpecific/implementation/ide-integration/createHoverTextFinder.js +0 -44
- package/dist/src/parserSpecific/implementation/ide-integration/createHoverTextFinder.js.map +0 -1
- package/dist/src/parserSpecific/implementation/ide-integration/isPositionBeforeLocation.d.ts +0 -2
- package/dist/src/parserSpecific/implementation/ide-integration/isPositionBeforeLocation.js +0 -10
- package/dist/src/parserSpecific/implementation/ide-integration/isPositionBeforeLocation.js.map +0 -1
- package/dist/src/parserSpecific/implementation/index.d.ts +0 -7
- package/dist/src/parserSpecific/implementation/index.js +0 -24
- package/dist/src/parserSpecific/implementation/index.js.map +0 -1
- package/dist/src/parserSpecific/index.d.ts +0 -2
- package/dist/src/parserSpecific/index.js +0 -15
- package/dist/src/parserSpecific/index.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/Dataset.d.ts +0 -27
- package/dist/src/parserSpecific/interfaces/Dataset.js +0 -10
- package/dist/src/parserSpecific/interfaces/Dataset.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/DeserializationDiagnostic.d.ts +0 -12
- package/dist/src/parserSpecific/interfaces/DeserializationDiagnostic.js +0 -6
- package/dist/src/parserSpecific/interfaces/DeserializationDiagnostic.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/ExternalSchemaDeserializationError.d.ts +0 -3
- package/dist/src/parserSpecific/interfaces/ExternalSchemaDeserializationError.js +0 -3
- package/dist/src/parserSpecific/interfaces/ExternalSchemaDeserializationError.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/LoadDocumentDiagnostic.d.ts +0 -33
- package/dist/src/parserSpecific/interfaces/LoadDocumentDiagnostic.js +0 -3
- package/dist/src/parserSpecific/interfaces/LoadDocumentDiagnostic.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/ResolveExternalSchema.d.ts +0 -11
- package/dist/src/parserSpecific/interfaces/ResolveExternalSchema.js +0 -3
- package/dist/src/parserSpecific/interfaces/ResolveExternalSchema.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/SchemaAndSideEffects.d.ts +0 -8
- package/dist/src/parserSpecific/interfaces/SchemaAndSideEffects.js +0 -3
- package/dist/src/parserSpecific/interfaces/SchemaAndSideEffects.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/SchemaDerializationErrors.d.ts +0 -19
- package/dist/src/parserSpecific/interfaces/SchemaDerializationErrors.js +0 -3
- package/dist/src/parserSpecific/interfaces/SchemaDerializationErrors.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/SchemaSchemaBuilder.d.ts +0 -4
- package/dist/src/parserSpecific/interfaces/SchemaSchemaBuilder.js +0 -3
- package/dist/src/parserSpecific/interfaces/SchemaSchemaBuilder.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/SchemaSchemaError.d.ts +0 -9
- package/dist/src/parserSpecific/interfaces/SchemaSchemaError.js +0 -3
- package/dist/src/parserSpecific/interfaces/SchemaSchemaError.js.map +0 -1
- package/dist/src/parserSpecific/interfaces/index.d.ts +0 -9
- package/dist/src/parserSpecific/interfaces/index.js +0 -22
- package/dist/src/parserSpecific/interfaces/index.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Dictionary.d.ts +0 -15
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Dictionary.js +0 -81
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Dictionary.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/NOPSideEffects.d.ts +0 -2
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/NOPSideEffects.js +0 -113
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/NOPSideEffects.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Reference.d.ts +0 -9
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Reference.js +0 -44
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/Reference.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/createTypedParserDefinitions.d.ts +0 -3
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/createTypedParserDefinitions.js +0 -110
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/createTypedParserDefinitions.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/definitions.d.ts +0 -45
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/definitions.js +0 -3
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/definitions.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/deserialize.d.ts +0 -2
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/deserialize.js +0 -405
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/deserialize.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/index.d.ts +0 -4
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/index.js +0 -98
- package/dist/src/plugins/schemas/mrshl/metadata@0.1/index.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Dictionary.d.ts +0 -15
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Dictionary.js +0 -81
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Dictionary.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Reference.d.ts +0 -9
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Reference.js +0 -44
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/Reference.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createDeserializer.d.ts +0 -3
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createDeserializer.js +0 -387
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createDeserializer.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createSchemaAndSideEffects.d.ts +0 -6
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createSchemaAndSideEffects.js +0 -84
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createSchemaAndSideEffects.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createTypedParserDefinitions.d.ts +0 -3
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createTypedParserDefinitions.js +0 -131
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/createTypedParserDefinitions.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/index.d.ts +0 -2
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/index.js +0 -15
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/index.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/sideEffects.d.ts +0 -4
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/sideEffects.js +0 -233
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/sideEffects.js.map +0 -1
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/types.d.ts +0 -64
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/types.js +0 -3
- package/dist/src/plugins/schemas/mrshl/schemaschema@0.1/types.js.map +0 -1
- package/dist/tsbin/astnCompact.d.ts +0 -1
- package/dist/tsbin/astnCompact.js +0 -5
- package/dist/tsbin/astnCompact.js.map +0 -1
- package/dist/tsbin/astnExpand.d.ts +0 -1
- package/dist/tsbin/astnExpand.js +0 -5
- package/dist/tsbin/astnExpand.js.map +0 -1
- package/dist/tsbin/serialize.d.ts +0 -2
- package/dist/tsbin/serialize.js +0 -79
- package/dist/tsbin/serialize.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw.js","sourceRoot":"","sources":["../../../../../../src/implementations/inMemoryDataset/implementation/genericimp/raw.ts"],"names":[],"mappings":""}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import * as astncore from "astn-core";
|
|
2
|
-
import { Node } from "./internals";
|
|
3
|
-
import { IParentErrorsAggregator, ErrorManager } from "./internals/ErrorManager";
|
|
4
|
-
export declare function initializeNode(node: Node, definition: astncore.NodeDefinition, errorManager: ErrorManager, errorsAggregator: IParentErrorsAggregator, subEntriesErrorsAggregator: IParentErrorsAggregator, createdInNewContext: boolean): void;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.initializeNode = void 0;
|
|
4
|
-
const asyncAPIImplementation_1 = require("./asyncAPIImplementation");
|
|
5
|
-
const internals_1 = require("./internals");
|
|
6
|
-
const Component_1 = require("./internals/Component");
|
|
7
|
-
const StateGroup_1 = require("./internals/StateGroup");
|
|
8
|
-
const Value_1 = require("./internals/Value");
|
|
9
|
-
function assertUnreachable(_x) {
|
|
10
|
-
throw new Error("Unreachable");
|
|
11
|
-
}
|
|
12
|
-
function initializeNode(node, definition, errorManager, errorsAggregator, subEntriesErrorsAggregator, createdInNewContext) {
|
|
13
|
-
definition.properties.forEach((property, key) => {
|
|
14
|
-
switch (property.type[0]) {
|
|
15
|
-
case "dictionary": {
|
|
16
|
-
const $ = property.type[1];
|
|
17
|
-
const collection = new internals_1.Collection({ type: ["dictionary", $] }, subEntriesErrorsAggregator, new internals_1.Dictionary(property.type[1].key, (oldValue, newValue) => {
|
|
18
|
-
asyncAPIImplementation_1.checkDuplicates(collection, oldValue);
|
|
19
|
-
asyncAPIImplementation_1.checkDuplicates(collection, newValue);
|
|
20
|
-
}));
|
|
21
|
-
node.collections.add(key, collection);
|
|
22
|
-
break;
|
|
23
|
-
}
|
|
24
|
-
case "list": {
|
|
25
|
-
const $ = property.type[1];
|
|
26
|
-
const collection = new internals_1.Collection({ type: ["list", $] }, subEntriesErrorsAggregator, null);
|
|
27
|
-
node.collections.add(key, collection);
|
|
28
|
-
break;
|
|
29
|
-
}
|
|
30
|
-
case "component": {
|
|
31
|
-
const $ = property.type[1];
|
|
32
|
-
const comp = new Component_1.Component($, errorManager, errorsAggregator, subEntriesErrorsAggregator, createdInNewContext);
|
|
33
|
-
node.components.add(key, comp);
|
|
34
|
-
break;
|
|
35
|
-
}
|
|
36
|
-
case "tagged union": {
|
|
37
|
-
const $ = property.type[1];
|
|
38
|
-
const sg = new StateGroup_1.StateGroup($, errorManager, errorsAggregator, subEntriesErrorsAggregator, createdInNewContext);
|
|
39
|
-
node.taggedUnions.add(key, sg);
|
|
40
|
-
break;
|
|
41
|
-
}
|
|
42
|
-
case "simple string": {
|
|
43
|
-
const $ = property.type[1];
|
|
44
|
-
node.values.add(key, new Value_1.Value($, errorsAggregator, createdInNewContext, errorManager));
|
|
45
|
-
break;
|
|
46
|
-
}
|
|
47
|
-
case "multiline string": {
|
|
48
|
-
throw new Error("IMPLEMENT ME: MULTILINE STRING");
|
|
49
|
-
// const $ = property.type[1]
|
|
50
|
-
// node.values.add(key, new Value($, errorsAggregator, createdInNewContext, errorManager))
|
|
51
|
-
// break
|
|
52
|
-
}
|
|
53
|
-
default:
|
|
54
|
-
return assertUnreachable(property.type[0]);
|
|
55
|
-
}
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
exports.initializeNode = initializeNode;
|
|
59
|
-
//# sourceMappingURL=initializeNode.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"initializeNode.js","sourceRoot":"","sources":["../../../../../src/implementations/inMemoryDataset/implementation/initializeNode.ts"],"names":[],"mappings":";;;AACA,qEAA0D;AAC1D,2CAA0D;AAC1D,qDAAiD;AAEjD,uDAAmD;AACnD,6CAAyC;AAEzC,SAAS,iBAAiB,CAAK,EAAS;IACpC,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAA;AAClC,CAAC;AAED,SAAgB,cAAc,CAC1B,IAAU,EACV,UAAmC,EACnC,YAA0B,EAC1B,gBAAyC,EACzC,0BAAmD,EACnD,mBAA4B;IAE5B,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE;QAC5C,QAAQ,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;YACtB,KAAK,YAAY,CAAC,CAAC;gBACf,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;gBAC1B,MAAM,UAAU,GAAG,IAAI,sBAAU,CAC7B,EAAE,IAAI,EAAE,CAAC,YAAY,EAAE,CAAC,CAAC,EAAE,EAC3B,0BAA0B,EAC1B,IAAI,sBAAU,CACV,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,GAAG,EACpB,CAAC,QAAgB,EAAE,QAAgB,EA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AQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;gBAC1B,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,aAAK,CAAC,CAAC,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,YAAY,CAAC,CAAC,CAAA;gBACvF,MAAK;aACR;YACD,KAAK,kBAAkB,CAAC,CAAC;gBACrB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAA;gBACjD,6BAA6B;gBAC7B,0FAA0F;gBAC1F,QAAQ;aACX;YACD;gBACI,OAAO,iBAAiB,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAA;SACjD;IACL,CAAC,CAAC,CAAA;AACN,CAAC;AA3ED,wCA2EC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import * as g from "../genericimp";
|
|
2
|
-
import * as astncore from "astn-core";
|
|
3
|
-
import { FlexibleErrorsAggregator, IParentErrorsAggregator, ErrorManager } from "./ErrorManager";
|
|
4
|
-
import { Node } from "./Node";
|
|
5
|
-
import { Comments } from "./Comments";
|
|
6
|
-
import { ISubscribableValue } from "../../../../interfaces/asyncAPI/generic";
|
|
7
|
-
import { Global } from "../Global";
|
|
8
|
-
import { Value } from "./Value";
|
|
9
|
-
export declare class Entry {
|
|
10
|
-
readonly errorsAggregator: FlexibleErrorsAggregator;
|
|
11
|
-
readonly subentriesErrorsAggregator: FlexibleErrorsAggregator;
|
|
12
|
-
readonly node: Node;
|
|
13
|
-
readonly comments: Comments;
|
|
14
|
-
readonly key: Value | null;
|
|
15
|
-
constructor(nodeDefinition: astncore.NodeDefinition, errorManager: ErrorManager, dictionary: Dictionary | null);
|
|
16
|
-
}
|
|
17
|
-
export declare type EntryStatus = ["active"] | [
|
|
18
|
-
"inactive",
|
|
19
|
-
{
|
|
20
|
-
readonly reason: ["deleted"] | ["moved"];
|
|
21
|
-
}
|
|
22
|
-
];
|
|
23
|
-
export declare class EntryPlaceholder {
|
|
24
|
-
readonly status: g.ReactiveValue<EntryStatus>;
|
|
25
|
-
readonly isPurged: g.ReactiveValue<boolean>;
|
|
26
|
-
readonly isAdded: g.ReactiveValue<boolean>;
|
|
27
|
-
readonly entry: Entry;
|
|
28
|
-
readonly node: Node;
|
|
29
|
-
readonly parent: Collection;
|
|
30
|
-
readonly hasSubEntryErrors: ISubscribableValue<boolean>;
|
|
31
|
-
readonly tempSubEntryErrorsCount: g.ReactiveValue<number>;
|
|
32
|
-
constructor(entry: Entry, parent: Collection, isAdded: boolean);
|
|
33
|
-
}
|
|
34
|
-
export declare class Dictionary {
|
|
35
|
-
readonly duplicatesCheckFunction: (oldValue: string, newValue: string) => void;
|
|
36
|
-
readonly keyDefinition: astncore.SimpleStringDefinition;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @param keyPropertyName
|
|
40
|
-
* @param keyProperty
|
|
41
|
-
* @param duplicatesCheckFunction a function that can be used to subscribe to the keys of the entries to check for duplicates
|
|
42
|
-
*/
|
|
43
|
-
constructor(keyDefinition: astncore.SimpleStringDefinition, duplicatesCheckFunction: (oldValue: string, newValue: string) => void);
|
|
44
|
-
}
|
|
45
|
-
export declare class Collection {
|
|
46
|
-
readonly errorsAggregator: IParentErrorsAggregator;
|
|
47
|
-
readonly entries: g.ReactiveArray<EntryPlaceholder>;
|
|
48
|
-
readonly nodeDefinition: astncore.NodeDefinition;
|
|
49
|
-
readonly dictionary: Dictionary | null;
|
|
50
|
-
readonly comments: Comments;
|
|
51
|
-
constructor(definition: {
|
|
52
|
-
type: ["list", astncore.ListDefinition] | ["dictionary", astncore.DictionaryDefinition];
|
|
53
|
-
}, errorsAggregator: IParentErrorsAggregator, dictionary: Dictionary | null);
|
|
54
|
-
}
|
|
55
|
-
export declare function addEntry(collection: Collection, entryPlaceholder: EntryPlaceholder): void;
|
|
56
|
-
export declare function createEntry(nodeDefinition: astncore.NodeDefinition, collection: Collection, global: Global): Entry;
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint
|
|
3
|
-
"max-classes-per-file": off,
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
8
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
o[k2] = m[k];
|
|
11
|
-
}));
|
|
12
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
-
}) : function(o, v) {
|
|
15
|
-
o["default"] = v;
|
|
16
|
-
});
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
-
if (mod && mod.__esModule) return mod;
|
|
19
|
-
var result = {};
|
|
20
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
-
__setModuleDefault(result, mod);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.createEntry = exports.addEntry = exports.Collection = exports.Dictionary = exports.EntryPlaceholder = exports.Entry = void 0;
|
|
26
|
-
const g = __importStar(require("../genericimp"));
|
|
27
|
-
const ErrorManager_1 = require("./ErrorManager");
|
|
28
|
-
const Node_1 = require("./Node");
|
|
29
|
-
const Comments_1 = require("./Comments");
|
|
30
|
-
const initializeNode_1 = require("../initializeNode");
|
|
31
|
-
const Value_1 = require("./Value");
|
|
32
|
-
function assertUnreachable(_x) {
|
|
33
|
-
throw new Error("unreachable");
|
|
34
|
-
}
|
|
35
|
-
class Entry {
|
|
36
|
-
constructor(nodeDefinition, errorManager, dictionary) {
|
|
37
|
-
this.errorsAggregator = new ErrorManager_1.FlexibleErrorsAggregator();
|
|
38
|
-
this.subentriesErrorsAggregator = new ErrorManager_1.FlexibleErrorsAggregator();
|
|
39
|
-
this.comments = new Comments_1.Comments();
|
|
40
|
-
this.key = dictionary === null ? null : new Value_1.Value(dictionary.keyDefinition, this.errorsAggregator, true, errorManager);
|
|
41
|
-
this.node = new Node_1.Node(node => {
|
|
42
|
-
initializeNode_1.initializeNode(node, nodeDefinition, errorManager, this.errorsAggregator, this.subentriesErrorsAggregator, true);
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
exports.Entry = Entry;
|
|
47
|
-
class EntryPlaceholder {
|
|
48
|
-
constructor(entry, parent, isAdded) {
|
|
49
|
-
this.status = new g.ReactiveValue(["active"]);
|
|
50
|
-
this.isPurged = new g.ReactiveValue(false);
|
|
51
|
-
this.entry = entry;
|
|
52
|
-
this.node = entry.node;
|
|
53
|
-
this.parent = parent;
|
|
54
|
-
this.isAdded = new g.ReactiveValue(isAdded);
|
|
55
|
-
this.hasSubEntryErrors = new g.DerivedReactiveValue(entry.subentriesErrorsAggregator.errorCount, ec => ec > 0);
|
|
56
|
-
this.tempSubEntryErrorsCount = this.entry.subentriesErrorsAggregator.errorCount;
|
|
57
|
-
// this.dictionaryData = {
|
|
58
|
-
// currentKeyValue: key.getValue(),
|
|
59
|
-
// keyProperty: key,
|
|
60
|
-
// }
|
|
61
|
-
// key.value.su bscribeToValue(newKey => {
|
|
62
|
-
// //new value
|
|
63
|
-
// if (this.status.get()[0] === "active") {
|
|
64
|
-
// this.parent.checkDuplicates(newKey, $["key property"])
|
|
65
|
-
// }
|
|
66
|
-
// if (this.dictionaryData === null) {
|
|
67
|
-
// throw new Error("missing dictionary data")
|
|
68
|
-
// }
|
|
69
|
-
// //old value
|
|
70
|
-
// if (this.status.get()[0] === "active") {
|
|
71
|
-
// this.parent.checkDuplicates(this.dictionaryData.currentKey, $["key property"])
|
|
72
|
-
// this.dictionaryData.currentKey = newKey
|
|
73
|
-
// }
|
|
74
|
-
// })
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.EntryPlaceholder = EntryPlaceholder;
|
|
78
|
-
class Dictionary {
|
|
79
|
-
/**
|
|
80
|
-
*
|
|
81
|
-
* @param keyPropertyName
|
|
82
|
-
* @param keyProperty
|
|
83
|
-
* @param duplicatesCheckFunction a function that can be used to subscribe to the keys of the entries to check for duplicates
|
|
84
|
-
*/
|
|
85
|
-
constructor(keyDefinition, duplicatesCheckFunction) {
|
|
86
|
-
this.duplicatesCheckFunction = duplicatesCheckFunction;
|
|
87
|
-
this.keyDefinition = keyDefinition;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
exports.Dictionary = Dictionary;
|
|
91
|
-
class Collection {
|
|
92
|
-
constructor(definition, errorsAggregator, dictionary) {
|
|
93
|
-
this.entries = new g.ReactiveArray();
|
|
94
|
-
this.comments = new Comments_1.Comments();
|
|
95
|
-
this.errorsAggregator = errorsAggregator;
|
|
96
|
-
this.dictionary = dictionary;
|
|
97
|
-
this.nodeDefinition = (() => {
|
|
98
|
-
switch (definition.type[0]) {
|
|
99
|
-
case "dictionary": {
|
|
100
|
-
const $ = definition.type[1];
|
|
101
|
-
return $.node;
|
|
102
|
-
}
|
|
103
|
-
case "list": {
|
|
104
|
-
const $ = definition.type[1];
|
|
105
|
-
return $.node;
|
|
106
|
-
}
|
|
107
|
-
default:
|
|
108
|
-
return assertUnreachable(definition.type[0]);
|
|
109
|
-
}
|
|
110
|
-
})();
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
exports.Collection = Collection;
|
|
114
|
-
function addEntry(collection, entryPlaceholder) {
|
|
115
|
-
entryPlaceholder.entry.errorsAggregator.attach(entryPlaceholder.parent.errorsAggregator);
|
|
116
|
-
entryPlaceholder.entry.subentriesErrorsAggregator.attach(entryPlaceholder.parent.errorsAggregator);
|
|
117
|
-
collection.entries.addEntry(entryPlaceholder);
|
|
118
|
-
}
|
|
119
|
-
exports.addEntry = addEntry;
|
|
120
|
-
function createEntry(nodeDefinition, collection, global) {
|
|
121
|
-
const entryImp = new Entry(nodeDefinition, global.errorManager, collection.dictionary);
|
|
122
|
-
const entryPlaceHolder = new EntryPlaceholder(entryImp, collection, true);
|
|
123
|
-
addEntry(collection, entryPlaceHolder);
|
|
124
|
-
return entryImp;
|
|
125
|
-
}
|
|
126
|
-
exports.createEntry = createEntry;
|
|
127
|
-
//# sourceMappingURL=Collection.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Collection.js","sourceRoot":"","sources":["../../../../../../src/implementations/inMemoryDataset/implementation/internals/Collection.ts"],"names":[],"mappings":";AAAA;;EAEE;;;;;;;;;;;;;;;;;;;;;;AAEF,iDAAkC;AAElC,iDAAgG;AAChG,iCAA6B;AAC7B,yCAAqC;AACrC,sDAAkD;AAGlD,mCAA+B;AAE/B,SAAS,iBAAiB,CAAK,EAAS;IACpC,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAA;AAClC,CAAC;AAED,MAAa,KAAK;IAMd,YACI,cAAuC,EACvC,YAA0B,EAC1B,UAA6B;QARjB,qBAAgB,GAAG,IAAI,uCAAwB,EAAE,CAAA;QACjD,+BAA0B,GAAG,IAAI,uCAAwB,EAAE,CAAA;QAE3D,aAAQ,GAAG,IAAI,mBAAQ,EAAE,CAAA;QAOrC,IAAI,CAAC,GAAG,GAAG,UAAU,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,aAAK,CAC7C,UAAU,CAAC,aAAa,EACxB,IAAI,CAAC,gBAAgB,EACrB,IAAI,EACJ,YAAY,CACf,CAAA;QACD,IAAI,CAAC,IAAI,GAAG,IAAI,WAAI,CAChB,IAAI,CAAC,EAAE;YACH,+BAAc,CACV,IAAI,EACJ,cAAc,EACd,YAAY,EACZ,IAAI,CAAC,gBAAgB,EACrB,IAAI,CAAC,0BAA0B,EAC/B,IAAI,CACP,CAAA;QACL,CAAC,CACJ,CAAA;IACL,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AAC,UAAU,CACxB,CAAA;IACD,MAAM,gBAAgB,GAAG,IAAI,gBAAgB,CAAC,QAAQ,EAAE,UAAU,EAAE,IAAI,CAAC,CAAA;IACzE,QAAQ,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAA;IACtC,OAAO,QAAQ,CAAA;AACnB,CAAC;AAbD,kCAaC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare type CommentType = ["block"] | ["line"];
|
|
2
|
-
export declare class Comment {
|
|
3
|
-
readonly value: string;
|
|
4
|
-
readonly type: CommentType;
|
|
5
|
-
constructor(value: string, type: CommentType);
|
|
6
|
-
}
|
|
7
|
-
export declare class Comments {
|
|
8
|
-
private readonly imp;
|
|
9
|
-
addComment(comment: string, type: CommentType): void;
|
|
10
|
-
getComments(): Comment[];
|
|
11
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Comments = exports.Comment = void 0;
|
|
4
|
-
class Comment {
|
|
5
|
-
constructor(value, type) {
|
|
6
|
-
this.value = value;
|
|
7
|
-
this.type = type;
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
exports.Comment = Comment;
|
|
11
|
-
class Comments {
|
|
12
|
-
constructor() {
|
|
13
|
-
this.imp = [];
|
|
14
|
-
}
|
|
15
|
-
addComment(comment, type) {
|
|
16
|
-
this.imp.push(new Comment(comment, type));
|
|
17
|
-
}
|
|
18
|
-
getComments() {
|
|
19
|
-
return this.imp;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
exports.Comments = Comments;
|
|
23
|
-
//# sourceMappingURL=Comments.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Comments.js","sourceRoot":"","sources":["../../../../../../src/implementations/inMemoryDataset/implementation/internals/Comments.ts"],"names":[],"mappings":";;;AAIA,MAAa,OAAO;IAGhB,YAAY,KAAa,EAAE,IAAiB;QACxC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IACpB,CAAC;CACJ;AAPD,0BAOC;AAED,MAAa,QAAQ;IAArB;QACqB,QAAG,GAAc,EAAE,CAAA;IAOxC,CAAC;IANG,UAAU,CAAC,OAAe,EAAE,IAAiB;QACzC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,IAAI,OAAO,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAA;IAC7C,CAAC;IACD,WAAW;QACP,OAAO,IAAI,CAAC,GAAG,CAAA;IACnB,CAAC;CACJ;AARD,4BAQC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as astncore from "astn-core";
|
|
2
|
-
import { Node } from "./Node";
|
|
3
|
-
import { Comments } from "./Comments";
|
|
4
|
-
import { IParentErrorsAggregator, ErrorManager } from "./ErrorManager";
|
|
5
|
-
export declare class Component {
|
|
6
|
-
readonly node: Node;
|
|
7
|
-
readonly comments: Comments;
|
|
8
|
-
constructor(definition: astncore.ComponentDefinition, errorManager: ErrorManager, errorsAggregator: IParentErrorsAggregator, subEntriesErrorsAggregator: IParentErrorsAggregator, createdInNewContext: boolean);
|
|
9
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Component = void 0;
|
|
4
|
-
const Node_1 = require("./Node");
|
|
5
|
-
const Comments_1 = require("./Comments");
|
|
6
|
-
const initializeNode_1 = require("../initializeNode");
|
|
7
|
-
class Component {
|
|
8
|
-
constructor(definition, errorManager, errorsAggregator, subEntriesErrorsAggregator, createdInNewContext) {
|
|
9
|
-
this.comments = new Comments_1.Comments();
|
|
10
|
-
this.node = new Node_1.Node(node => {
|
|
11
|
-
initializeNode_1.initializeNode(node, definition.type.get().node, errorManager, errorsAggregator, subEntriesErrorsAggregator, createdInNewContext);
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
exports.Component = Component;
|
|
16
|
-
//# sourceMappingURL=Component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Component.js","sourceRoot":"","sources":["../../../../../../src/implementations/inMemoryDataset/implementation/internals/Component.ts"],"names":[],"mappings":";;;AACA,iCAA6B;AAC7B,yCAAqC;AAErC,sDAAkD;AAElD,MAAa,SAAS;IAGlB,YACI,UAAwC,EACxC,YAA0B,EAC1B,gBAAyC,EACzC,0BAAmD,EACnD,mBAA4B;QANhB,aAAQ,GAAG,IAAI,mBAAQ,EAAE,CAAA;QAQrC,IAAI,CAAC,IAAI,GAAG,IAAI,WAAI,CAChB,IAAI,CAAC,EAAE;YACH,+BAAc,CACV,IAAI,EACJ,UAAU,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,EAC1B,YAAY,EACZ,gBAAgB,EAChB,0BAA0B,EAC1B,mBAAmB,CACtB,CAAA;QACL,CAAC,CACJ,CAAA;IACL,CAAC;CACJ;AAvBD,8BAuBC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import { IFocussable } from "../../../../interfaces/asyncAPI/asyncAPI";
|
|
2
|
-
import { ISubscribableValue } from "../../../../interfaces/asyncAPI";
|
|
3
|
-
import * as g from "../genericimp";
|
|
4
|
-
export declare class ValidationError {
|
|
5
|
-
readonly focussable: g.ReactiveValue<g.Maybe<IFocussable>>;
|
|
6
|
-
constructor(focussable: g.ReactiveValue<g.Maybe<IFocussable>>);
|
|
7
|
-
}
|
|
8
|
-
export declare class PotentialError {
|
|
9
|
-
readonly isInErrorState: ISubscribableValue<boolean>;
|
|
10
|
-
private currentError;
|
|
11
|
-
private readonly errorsAggregator;
|
|
12
|
-
private readonly errorManager;
|
|
13
|
-
private readonly focussable;
|
|
14
|
-
constructor(isInErrorState: ISubscribableValue<boolean>, errorsAggregator: IParentErrorsAggregator, errorManager: ErrorManager, focussable: g.ReactiveValue<g.Maybe<IFocussable>>);
|
|
15
|
-
}
|
|
16
|
-
export interface IParentErrorsAggregator {
|
|
17
|
-
isAttached: g.ReactiveValue<boolean>;
|
|
18
|
-
add(amount: number): void;
|
|
19
|
-
}
|
|
20
|
-
export declare class FlexibleErrorsAggregator implements IParentErrorsAggregator {
|
|
21
|
-
readonly isAttached: g.ReactiveValue<boolean>;
|
|
22
|
-
readonly errorCount: g.ReactiveValue<number>;
|
|
23
|
-
private currentErrorCount;
|
|
24
|
-
private readonly parent;
|
|
25
|
-
constructor();
|
|
26
|
-
add(errorCount: number): void;
|
|
27
|
-
detach(): void;
|
|
28
|
-
attach(parent: IParentErrorsAggregator): void;
|
|
29
|
-
}
|
|
30
|
-
export declare class ErrorManager {
|
|
31
|
-
readonly validationErrors: g.ReactiveArray<ValidationError>;
|
|
32
|
-
}
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint
|
|
3
|
-
"max-classes-per-file": off,
|
|
4
|
-
*/
|
|
5
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
8
|
-
}) : (function(o, m, k, k2) {
|
|
9
|
-
if (k2 === undefined) k2 = k;
|
|
10
|
-
o[k2] = m[k];
|
|
11
|
-
}));
|
|
12
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
13
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
14
|
-
}) : function(o, v) {
|
|
15
|
-
o["default"] = v;
|
|
16
|
-
});
|
|
17
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
18
|
-
if (mod && mod.__esModule) return mod;
|
|
19
|
-
var result = {};
|
|
20
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
21
|
-
__setModuleDefault(result, mod);
|
|
22
|
-
return result;
|
|
23
|
-
};
|
|
24
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.ErrorManager = exports.FlexibleErrorsAggregator = exports.PotentialError = exports.ValidationError = void 0;
|
|
26
|
-
const g = __importStar(require("../genericimp"));
|
|
27
|
-
class ValidationError {
|
|
28
|
-
constructor(focussable) {
|
|
29
|
-
this.focussable = focussable;
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
exports.ValidationError = ValidationError;
|
|
33
|
-
class PotentialError {
|
|
34
|
-
constructor(isInErrorState, errorsAggregator, errorManager, focussable) {
|
|
35
|
-
this.currentError = null;
|
|
36
|
-
this.isInErrorState = isInErrorState;
|
|
37
|
-
this.errorsAggregator = errorsAggregator;
|
|
38
|
-
this.errorManager = errorManager;
|
|
39
|
-
this.focussable = focussable;
|
|
40
|
-
this.isInErrorState.subscribeToValue(inErrorState => {
|
|
41
|
-
if (inErrorState) {
|
|
42
|
-
if (this.currentError === null) {
|
|
43
|
-
//switching to error
|
|
44
|
-
errorsAggregator.add(1);
|
|
45
|
-
const err = new ValidationError(this.focussable);
|
|
46
|
-
this.currentError = err;
|
|
47
|
-
this.errorManager.validationErrors.addEntry(this.currentError);
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
if (this.currentError !== null) {
|
|
52
|
-
//switching to no error
|
|
53
|
-
errorsAggregator.add(-1);
|
|
54
|
-
this.errorManager.validationErrors.removeEntry(this.currentError);
|
|
55
|
-
this.currentError = null;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
});
|
|
59
|
-
this.errorsAggregator.isAttached.subscribeToValue(isAtttached => {
|
|
60
|
-
if (isAtttached) {
|
|
61
|
-
if (this.currentError !== null) {
|
|
62
|
-
this.errorManager.validationErrors.addEntry(this.currentError);
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
if (this.currentError !== null) {
|
|
67
|
-
this.errorManager.validationErrors.removeEntry(this.currentError);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
exports.PotentialError = PotentialError;
|
|
74
|
-
class FlexibleErrorsAggregator {
|
|
75
|
-
constructor() {
|
|
76
|
-
this.isAttached = new g.ReactiveValue(true);
|
|
77
|
-
this.errorCount = new g.ReactiveValue(0);
|
|
78
|
-
this.currentErrorCount = 0;
|
|
79
|
-
this.parent = new g.Mutable(new g.Maybe(null));
|
|
80
|
-
this.errorCount.subscribeToValue(newErrorCount => {
|
|
81
|
-
this.parent.get().ifExists(p => {
|
|
82
|
-
p.add(newErrorCount - this.currentErrorCount);
|
|
83
|
-
this.currentErrorCount = newErrorCount;
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
add(errorCount) {
|
|
88
|
-
this.errorCount.update(this.errorCount.get() + errorCount);
|
|
89
|
-
}
|
|
90
|
-
detach() {
|
|
91
|
-
this.parent.get().map(p => {
|
|
92
|
-
p.add(-this.errorCount.get());
|
|
93
|
-
this.parent.update(new g.Maybe(null));
|
|
94
|
-
}, () => {
|
|
95
|
-
throw new Error("already detached");
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
attach(parent) {
|
|
99
|
-
this.parent.get().map(_p => {
|
|
100
|
-
throw new Error("already attached");
|
|
101
|
-
}, () => {
|
|
102
|
-
parent.add(this.errorCount.get());
|
|
103
|
-
this.parent.update(new g.Maybe(parent));
|
|
104
|
-
});
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
exports.FlexibleErrorsAggregator = FlexibleErrorsAggregator;
|
|
108
|
-
class ErrorManager {
|
|
109
|
-
constructor() {
|
|
110
|
-
this.validationErrors = new g.ReactiveArray();
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
exports.ErrorManager = ErrorManager;
|
|
114
|
-
//# sourceMappingURL=ErrorManager.js.map
|
package/dist/src/implementations/inMemoryDataset/implementation/internals/ErrorManager.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorManager.js","sourceRoot":"","sources":["../../../../../../src/implementations/inMemoryDataset/implementation/internals/ErrorManager.ts"],"names":[],"mappings":";AAAA;;EAEE;;;;;;;;;;;;;;;;;;;;;;AAIF,iDAAkC;AAElC,MAAa,eAAe;IAExB,YAAY,UAAiD;QACzD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;IAChC,CAAC;CACJ;AALD,0CAKC;AAED,MAAa,cAAc;IAOvB,YACI,cAA2C,EAC3C,gBAAyC,EACzC,YAA0B,EAC1B,UAAiD;QAT7C,iBAAY,GAA2B,IAAI,CAAA;QAW/C,IAAI,CAAC,cAAc,GAAG,cAAc,CAAA;QACpC,IAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAA;QACxC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAA;QAChC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAA;QAC5B,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,YAAY,CAAC,EAAE;YAChD,IAAI,YAAY,EAAE;gBACd,IAAI,IAAI,CAAC,YAAY,KAAK,IAAI,EAAE;oBAC5B,oBAAoB;oBACpB,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAA;oBACvB,MAAM,GAAG,GAAG,IAAI,eAAe,CAAC,IAAI,CAAC,UAAU,CAAC,CAAA;oBAChD,IAAI,CAAC,YAAY,GAAG,GAAG,CAAA;oBACvB,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,QAAQ,CAAC,IAAI,CAAC,YAAY,CAAC,CAAA;iBACjE;aACJ;iBAAM;gBACH,IAAI,IAAI,CAAC,YAAY,KAAK,IAAI,EAAE;oBAC5B,uBAAuB;oBACvB,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAA;oBACxB,IAAI,CAAC,YAAY,CAAC,gBAAgB,CAAC,WAAW,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QACzB,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,GAAG,UAAU,CAAC,CAAA;IAC9D,CAAC;IACM,MAAM;QACT,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CACjB,CAAC,CAAC,EAAE;YACA,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAA;YAC7B,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAA0B,IAAI,CAAC,CAAC,CAAA;QAClE,CAAC,EACD,GAAG,EAAE;YACD,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;QACvC,CAAC,CACJ,CAAA;IACL,CAAC;IACM,MAAM,CAAC,MAA+B;QACzC,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CACjB,EAAE,CAAC,EAAE;YACD,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAA;QACvC,CAAC,EACD,GAAG,EAAE;YACD,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,CAAC,CAAA;YACjC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAA;QAC3C,CAAC,CACJ,CAAA;IACL,CAAC;CACJ;AAtCD,4DAsCC;AAED,MAAa,YAAY;IAAzB;QACoB,qBAAgB,GAAG,IAAI,CAAC,CAAC,aAAa,EAAmB,CAAA;IAC7E,CAAC;CAAA;AAFD,oCAEC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import * as g from "../genericimp";
|
|
2
|
-
import { Collection } from "./Collection";
|
|
3
|
-
import { Component } from "./Component";
|
|
4
|
-
import { StateGroup } from "./StateGroup";
|
|
5
|
-
import { Value } from "./Value";
|
|
6
|
-
export declare class Node {
|
|
7
|
-
readonly collections: g.Dictionary<Collection>;
|
|
8
|
-
readonly components: g.Dictionary<Component>;
|
|
9
|
-
readonly taggedUnions: g.Dictionary<StateGroup>;
|
|
10
|
-
readonly values: g.Dictionary<Value>;
|
|
11
|
-
constructor(initialize: (node: Node) => void);
|
|
12
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
-
}) : (function(o, m, k, k2) {
|
|
6
|
-
if (k2 === undefined) k2 = k;
|
|
7
|
-
o[k2] = m[k];
|
|
8
|
-
}));
|
|
9
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
10
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
11
|
-
}) : function(o, v) {
|
|
12
|
-
o["default"] = v;
|
|
13
|
-
});
|
|
14
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
15
|
-
if (mod && mod.__esModule) return mod;
|
|
16
|
-
var result = {};
|
|
17
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
18
|
-
__setModuleDefault(result, mod);
|
|
19
|
-
return result;
|
|
20
|
-
};
|
|
21
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
22
|
-
exports.Node = void 0;
|
|
23
|
-
const g = __importStar(require("../genericimp"));
|
|
24
|
-
class Node {
|
|
25
|
-
constructor(initialize) {
|
|
26
|
-
this.collections = new g.Dictionary({});
|
|
27
|
-
this.components = new g.Dictionary({});
|
|
28
|
-
this.taggedUnions = new g.Dictionary({});
|
|
29
|
-
this.values = new g.Dictionary({});
|
|
30
|
-
initialize(this);
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
exports.Node = Node;
|
|
34
|
-
//# sourceMappingURL=Node.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Node.js","sourceRoot":"","sources":["../../../../../../src/implementations/inMemoryDataset/implementation/internals/Node.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,iDAAkC;AAMlC,MAAa,IAAI;IAMb,YACI,UAAgC;QANpB,gBAAW,GAAG,IAAI,CAAC,CAAC,UAAU,CAAa,EAAE,CAAC,CAAA;QAC9C,eAAU,GAAG,IAAI,CAAC,CAAC,UAAU,CAAY,EAAE,CAAC,CAAA;QAC5C,iBAAY,GAAG,IAAI,CAAC,CAAC,UAAU,CAAa,EAAE,CAAC,CAAA;QAC/C,WAAM,GAAG,IAAI,CAAC,CAAC,UAAU,CAAQ,EAAE,CAAC,CAAA;QAKhD,UAAU,CAAC,IAAI,CAAC,CAAA;IACpB,CAAC;CACJ;AAXD,oBAWC"}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import * as g from "../genericimp";
|
|
2
|
-
import * as asyncAPI from "../../../../interfaces/asyncAPI/asyncAPI";
|
|
3
|
-
import * as astncore from "astn-core";
|
|
4
|
-
import { FlexibleErrorsAggregator, IParentErrorsAggregator, ErrorManager } from "./ErrorManager";
|
|
5
|
-
import { Node } from "./Node";
|
|
6
|
-
import { Comments } from "./Comments";
|
|
7
|
-
import { Global } from "../Global";
|
|
8
|
-
export declare class State {
|
|
9
|
-
readonly key: string;
|
|
10
|
-
readonly errorsAggregator: FlexibleErrorsAggregator;
|
|
11
|
-
readonly subentriesErrorsAggregator: FlexibleErrorsAggregator;
|
|
12
|
-
readonly node: Node;
|
|
13
|
-
readonly isCurrentState: g.ReactiveValue<boolean>;
|
|
14
|
-
constructor(key: string, initializeStateNode: (node: Node, errorsAggregator: IParentErrorsAggregator, subentriesErrorsAggregator: IParentErrorsAggregator) => void);
|
|
15
|
-
}
|
|
16
|
-
export declare type StateGroupChangeStatus = ["not changed"] | [
|
|
17
|
-
"changed",
|
|
18
|
-
{
|
|
19
|
-
readonly originalStateName: string;
|
|
20
|
-
}
|
|
21
|
-
];
|
|
22
|
-
export declare class StateGroup {
|
|
23
|
-
readonly statesOverTime: g.ReactiveArray<State>;
|
|
24
|
-
readonly currentState: g.Mutable<State>;
|
|
25
|
-
readonly currentStateKey: g.ReactiveValue<string>;
|
|
26
|
-
readonly createdInNewContext: g.ReactiveValue<boolean>;
|
|
27
|
-
readonly changeStatus: g.ReactiveValue<StateGroupChangeStatus>;
|
|
28
|
-
readonly thisEntryErrorsAggregator: IParentErrorsAggregator;
|
|
29
|
-
readonly subentriesErrorsAggregator: IParentErrorsAggregator;
|
|
30
|
-
readonly initialState: State;
|
|
31
|
-
readonly comments: Comments;
|
|
32
|
-
readonly focussable: g.ReactiveValue<g.Maybe<asyncAPI.IFocussable>>;
|
|
33
|
-
constructor(definition: astncore.TaggedUnionDefinition, errorManager: ErrorManager, thisEntryErrorsAggregator: IParentErrorsAggregator, subentriesErrorsAggregator: IParentErrorsAggregator, createdInNewContext: boolean);
|
|
34
|
-
}
|
|
35
|
-
export declare function setInitializedState(stateGroup: StateGroup, state: State): void;
|
|
36
|
-
export declare function initializeState(definition: astncore.OptionDefinition, sgImp: StateGroup, stateName: string, global: Global, _onError: (errorMessage: string) => void): State;
|