@cratis/scene.model 4.2.1 → 4.4.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/common/DestinationReference.ts +18 -0
- package/common/index.ts +1 -0
- package/descriptors/CollectionItemDescriptor.ts +20 -0
- package/descriptors/CollectionOperation.ts +20 -0
- package/descriptors/ComponentDescriptor.ts +33 -0
- package/descriptors/LayoutCapabilities.ts +32 -0
- package/descriptors/LayoutChildPlacement.ts +16 -0
- package/descriptors/LayoutType.ts +28 -0
- package/descriptors/LayoutTypeDescriptor.ts +25 -0
- package/descriptors/PropertyChoice.ts +13 -0
- package/descriptors/PropertyConstraints.ts +41 -0
- package/descriptors/PropertyDescriptor.ts +55 -0
- package/descriptors/PropertyValueType.ts +30 -0
- package/descriptors/index.ts +14 -0
- package/dist/cjs/common/DestinationReference.js +11 -0
- package/dist/cjs/common/DestinationReference.js.map +1 -0
- package/dist/cjs/descriptors/CollectionItemDescriptor.js +11 -0
- package/dist/cjs/descriptors/CollectionItemDescriptor.js.map +1 -0
- package/dist/cjs/descriptors/CollectionOperation.js +17 -0
- package/dist/cjs/descriptors/CollectionOperation.js.map +1 -0
- package/dist/cjs/descriptors/ComponentDescriptor.js +14 -0
- package/dist/cjs/descriptors/ComponentDescriptor.js.map +1 -0
- package/dist/cjs/descriptors/LayoutCapabilities.js +15 -0
- package/dist/cjs/descriptors/LayoutCapabilities.js.map +1 -0
- package/dist/cjs/descriptors/LayoutChildPlacement.js +15 -0
- package/dist/cjs/descriptors/LayoutChildPlacement.js.map +1 -0
- package/dist/cjs/descriptors/LayoutType.js +25 -0
- package/dist/cjs/descriptors/LayoutType.js.map +1 -0
- package/dist/cjs/descriptors/LayoutTypeDescriptor.js +14 -0
- package/dist/cjs/descriptors/LayoutTypeDescriptor.js.map +1 -0
- package/dist/cjs/descriptors/PropertyChoice.js +14 -0
- package/dist/cjs/descriptors/PropertyChoice.js.map +1 -0
- package/dist/cjs/descriptors/PropertyConstraints.js +19 -0
- package/dist/cjs/descriptors/PropertyConstraints.js.map +1 -0
- package/dist/cjs/descriptors/PropertyDescriptor.js +20 -0
- package/dist/cjs/descriptors/PropertyDescriptor.js.map +1 -0
- package/dist/cjs/descriptors/PropertyValueType.js +22 -0
- package/dist/cjs/descriptors/PropertyValueType.js.map +1 -0
- package/dist/cjs/editing/AddCollectionItemEdit.js +15 -0
- package/dist/cjs/editing/AddCollectionItemEdit.js.map +1 -0
- package/dist/cjs/editing/ChangeLayoutTypeEdit.js +13 -0
- package/dist/cjs/editing/ChangeLayoutTypeEdit.js.map +1 -0
- package/dist/cjs/editing/DiagnosticCode.js +64 -0
- package/dist/cjs/editing/DiagnosticCode.js.map +1 -0
- package/dist/cjs/editing/DiagnosticSeverity.js +15 -0
- package/dist/cjs/editing/DiagnosticSeverity.js.map +1 -0
- package/dist/cjs/editing/EditCollectionItemEdit.js +16 -0
- package/dist/cjs/editing/EditCollectionItemEdit.js.map +1 -0
- package/dist/cjs/editing/EditTarget.js +14 -0
- package/dist/cjs/editing/EditTarget.js.map +1 -0
- package/dist/cjs/editing/EditingScope.js +12 -0
- package/dist/cjs/editing/EditingScope.js.map +1 -0
- package/dist/cjs/editing/EditingScopeKind.js +16 -0
- package/dist/cjs/editing/EditingScopeKind.js.map +1 -0
- package/dist/cjs/editing/EffectiveCollectionItem.js +15 -0
- package/dist/cjs/editing/EffectiveCollectionItem.js.map +1 -0
- package/dist/cjs/editing/EffectiveComponentConfiguration.js +13 -0
- package/dist/cjs/editing/EffectiveComponentConfiguration.js.map +1 -0
- package/dist/cjs/editing/EffectiveConfiguration.js +11 -0
- package/dist/cjs/editing/EffectiveConfiguration.js.map +1 -0
- package/dist/cjs/editing/EffectivePropertyValue.js +15 -0
- package/dist/cjs/editing/EffectivePropertyValue.js.map +1 -0
- package/dist/cjs/editing/ExposePropertyEdit.js +12 -0
- package/dist/cjs/editing/ExposePropertyEdit.js.map +1 -0
- package/dist/cjs/editing/InsertNodeEdit.js +15 -0
- package/dist/cjs/editing/InsertNodeEdit.js.map +1 -0
- package/dist/cjs/editing/InspectedCollectionItem.js +15 -0
- package/dist/cjs/editing/InspectedCollectionItem.js.map +1 -0
- package/dist/cjs/editing/InspectedProperty.js +18 -0
- package/dist/cjs/editing/InspectedProperty.js.map +1 -0
- package/dist/cjs/editing/MoveNodeEdit.js +14 -0
- package/dist/cjs/editing/MoveNodeEdit.js.map +1 -0
- package/dist/cjs/editing/NodeInspection.js +19 -0
- package/dist/cjs/editing/NodeInspection.js.map +1 -0
- package/dist/cjs/editing/NodeProvenance.js +11 -0
- package/dist/cjs/editing/NodeProvenance.js.map +1 -0
- package/dist/cjs/editing/ProvenanceKind.js +15 -0
- package/dist/cjs/editing/ProvenanceKind.js.map +1 -0
- package/dist/cjs/editing/RemoveCollectionItemEdit.js +14 -0
- package/dist/cjs/editing/RemoveCollectionItemEdit.js.map +1 -0
- package/dist/cjs/editing/RemoveNodeEdit.js +11 -0
- package/dist/cjs/editing/RemoveNodeEdit.js.map +1 -0
- package/dist/cjs/editing/ReorderCollectionItemEdit.js +15 -0
- package/dist/cjs/editing/ReorderCollectionItemEdit.js.map +1 -0
- package/dist/cjs/editing/ResetInstanceValueEdit.js +13 -0
- package/dist/cjs/editing/ResetInstanceValueEdit.js.map +1 -0
- package/dist/cjs/editing/ResetPropertyEdit.js +12 -0
- package/dist/cjs/editing/ResetPropertyEdit.js.map +1 -0
- package/dist/cjs/editing/SceneDiagnostic.js +17 -0
- package/dist/cjs/editing/SceneDiagnostic.js.map +1 -0
- package/dist/cjs/editing/SceneDocument.js +15 -0
- package/dist/cjs/editing/SceneDocument.js.map +1 -0
- package/dist/cjs/editing/SceneEditKind.js +27 -0
- package/dist/cjs/editing/SceneEditKind.js.map +1 -0
- package/dist/cjs/editing/SceneNodeKind.js +21 -0
- package/dist/cjs/editing/SceneNodeKind.js.map +1 -0
- package/dist/cjs/editing/SetInstanceValueEdit.js +14 -0
- package/dist/cjs/editing/SetInstanceValueEdit.js.map +1 -0
- package/dist/cjs/editing/SetPropertyEdit.js +13 -0
- package/dist/cjs/editing/SetPropertyEdit.js.map +1 -0
- package/dist/cjs/editing/UnexposePropertyEdit.js +13 -0
- package/dist/cjs/editing/UnexposePropertyEdit.js.map +1 -0
- package/dist/cjs/editing/ValueSource.js +15 -0
- package/dist/cjs/editing/ValueSource.js.map +1 -0
- package/dist/cjs/exposure/ContributedItem.js +14 -0
- package/dist/cjs/exposure/ContributedItem.js.map +1 -0
- package/dist/cjs/exposure/ExposedProperty.js +15 -0
- package/dist/cjs/exposure/ExposedProperty.js.map +1 -0
- package/dist/cjs/exposure/ExposureDeclaration.js +11 -0
- package/dist/cjs/exposure/ExposureDeclaration.js.map +1 -0
- package/dist/cjs/exposure/InstanceContribution.js +14 -0
- package/dist/cjs/exposure/InstanceContribution.js.map +1 -0
- package/dist/cjs/icons/IconEntry.js +22 -0
- package/dist/cjs/icons/IconEntry.js.map +1 -0
- package/dist/cjs/icons/IconLibrary.js +22 -0
- package/dist/cjs/icons/IconLibrary.js.map +1 -0
- package/dist/cjs/icons/IconReference.js +23 -0
- package/dist/cjs/icons/IconReference.js.map +1 -0
- package/dist/cjs/icons/iconReferences.js +61 -0
- package/dist/cjs/icons/iconReferences.js.map +1 -0
- package/dist/cjs/index.js +127 -0
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/packages/PackageKind.js +12 -1
- package/dist/cjs/packages/PackageKind.js.map +1 -1
- package/dist/cjs/packages/ScenePackage.js +2 -1
- package/dist/cjs/packages/ScenePackage.js.map +1 -1
- package/dist/cjs/queries/QueryArgumentBinding.js +11 -0
- package/dist/cjs/queries/QueryArgumentBinding.js.map +1 -0
- package/dist/cjs/queries/QueryBinding.js +13 -0
- package/dist/cjs/queries/QueryBinding.js.map +1 -0
- package/dist/cjs/queries/QueryCandidate.js +15 -0
- package/dist/cjs/queries/QueryCandidate.js.map +1 -0
- package/dist/cjs/queries/QueryOrigin.js +12 -0
- package/dist/cjs/queries/QueryOrigin.js.map +1 -0
- package/dist/cjs/queries/QueryOriginKind.js +14 -0
- package/dist/cjs/queries/QueryOriginKind.js.map +1 -0
- package/dist/cjs/queries/QueryParameter.js +14 -0
- package/dist/cjs/queries/QueryParameter.js.map +1 -0
- package/dist/cjs/queries/QueryResultBinding.js +13 -0
- package/dist/cjs/queries/QueryResultBinding.js.map +1 -0
- package/dist/cjs/queries/QueryResultField.js +14 -0
- package/dist/cjs/queries/QueryResultField.js.map +1 -0
- package/dist/cjs/queries/QueryResultShape.js +16 -0
- package/dist/cjs/queries/QueryResultShape.js.map +1 -0
- package/dist/esm/common/DestinationReference.d.ts +7 -0
- package/dist/esm/common/DestinationReference.d.ts.map +1 -0
- package/dist/esm/common/DestinationReference.js +9 -0
- package/dist/esm/common/DestinationReference.js.map +1 -0
- package/dist/esm/common/index.d.ts +1 -0
- package/dist/esm/common/index.d.ts.map +1 -1
- package/dist/esm/common/index.js +1 -0
- package/dist/esm/common/index.js.map +1 -1
- package/dist/esm/descriptors/CollectionItemDescriptor.d.ts +7 -0
- package/dist/esm/descriptors/CollectionItemDescriptor.d.ts.map +1 -0
- package/dist/esm/descriptors/CollectionItemDescriptor.js +9 -0
- package/dist/esm/descriptors/CollectionItemDescriptor.js.map +1 -0
- package/dist/esm/descriptors/CollectionOperation.d.ts +7 -0
- package/dist/esm/descriptors/CollectionOperation.d.ts.map +1 -0
- package/dist/esm/descriptors/CollectionOperation.js +15 -0
- package/dist/esm/descriptors/CollectionOperation.js.map +1 -0
- package/dist/esm/descriptors/ComponentDescriptor.d.ts +10 -0
- package/dist/esm/descriptors/ComponentDescriptor.d.ts.map +1 -0
- package/dist/esm/descriptors/ComponentDescriptor.js +12 -0
- package/dist/esm/descriptors/ComponentDescriptor.js.map +1 -0
- package/dist/esm/descriptors/LayoutCapabilities.d.ts +12 -0
- package/dist/esm/descriptors/LayoutCapabilities.d.ts.map +1 -0
- package/dist/esm/descriptors/LayoutCapabilities.js +13 -0
- package/dist/esm/descriptors/LayoutCapabilities.js.map +1 -0
- package/dist/esm/descriptors/LayoutChildPlacement.d.ts +6 -0
- package/dist/esm/descriptors/LayoutChildPlacement.d.ts.map +1 -0
- package/dist/esm/descriptors/LayoutChildPlacement.js +13 -0
- package/dist/esm/descriptors/LayoutChildPlacement.js.map +1 -0
- package/dist/esm/descriptors/LayoutType.d.ts +14 -0
- package/dist/esm/descriptors/LayoutType.d.ts.map +1 -0
- package/dist/esm/descriptors/LayoutType.js +23 -0
- package/dist/esm/descriptors/LayoutType.js.map +1 -0
- package/dist/esm/descriptors/LayoutTypeDescriptor.d.ts +12 -0
- package/dist/esm/descriptors/LayoutTypeDescriptor.d.ts.map +1 -0
- package/dist/esm/descriptors/LayoutTypeDescriptor.js +12 -0
- package/dist/esm/descriptors/LayoutTypeDescriptor.js.map +1 -0
- package/dist/esm/descriptors/PropertyChoice.d.ts +7 -0
- package/dist/esm/descriptors/PropertyChoice.d.ts.map +1 -0
- package/dist/esm/descriptors/PropertyChoice.js +12 -0
- package/dist/esm/descriptors/PropertyChoice.js.map +1 -0
- package/dist/esm/descriptors/PropertyConstraints.d.ts +15 -0
- package/dist/esm/descriptors/PropertyConstraints.d.ts.map +1 -0
- package/dist/esm/descriptors/PropertyConstraints.js +17 -0
- package/dist/esm/descriptors/PropertyConstraints.js.map +1 -0
- package/dist/esm/descriptors/PropertyDescriptor.d.ts +19 -0
- package/dist/esm/descriptors/PropertyDescriptor.d.ts.map +1 -0
- package/dist/esm/descriptors/PropertyDescriptor.js +18 -0
- package/dist/esm/descriptors/PropertyDescriptor.js.map +1 -0
- package/dist/esm/descriptors/PropertyValueType.d.ts +12 -0
- package/dist/esm/descriptors/PropertyValueType.d.ts.map +1 -0
- package/dist/esm/descriptors/PropertyValueType.js +20 -0
- package/dist/esm/descriptors/PropertyValueType.js.map +1 -0
- package/dist/esm/descriptors/index.d.ts +12 -0
- package/dist/esm/descriptors/index.d.ts.map +1 -0
- package/dist/esm/descriptors/index.js +12 -0
- package/dist/esm/descriptors/index.js.map +1 -0
- package/dist/esm/editing/AddCollectionItemEdit.d.ts +12 -0
- package/dist/esm/editing/AddCollectionItemEdit.d.ts.map +1 -0
- package/dist/esm/editing/AddCollectionItemEdit.js +13 -0
- package/dist/esm/editing/AddCollectionItemEdit.js.map +1 -0
- package/dist/esm/editing/ChangeLayoutTypeEdit.d.ts +10 -0
- package/dist/esm/editing/ChangeLayoutTypeEdit.d.ts.map +1 -0
- package/dist/esm/editing/ChangeLayoutTypeEdit.js +11 -0
- package/dist/esm/editing/ChangeLayoutTypeEdit.js.map +1 -0
- package/dist/esm/editing/DiagnosticCode.d.ts +47 -0
- package/dist/esm/editing/DiagnosticCode.d.ts.map +1 -0
- package/dist/esm/editing/DiagnosticCode.js +62 -0
- package/dist/esm/editing/DiagnosticCode.js.map +1 -0
- package/dist/esm/editing/DiagnosticSeverity.d.ts +5 -0
- package/dist/esm/editing/DiagnosticSeverity.d.ts.map +1 -0
- package/dist/esm/editing/DiagnosticSeverity.js +13 -0
- package/dist/esm/editing/DiagnosticSeverity.js.map +1 -0
- package/dist/esm/editing/EditCollectionItemEdit.d.ts +12 -0
- package/dist/esm/editing/EditCollectionItemEdit.d.ts.map +1 -0
- package/dist/esm/editing/EditCollectionItemEdit.js +14 -0
- package/dist/esm/editing/EditCollectionItemEdit.js.map +1 -0
- package/dist/esm/editing/EditTarget.d.ts +5 -0
- package/dist/esm/editing/EditTarget.d.ts.map +1 -0
- package/dist/esm/editing/EditTarget.js +12 -0
- package/dist/esm/editing/EditTarget.js.map +1 -0
- package/dist/esm/editing/EditingScope.d.ts +8 -0
- package/dist/esm/editing/EditingScope.d.ts.map +1 -0
- package/dist/esm/editing/EditingScope.js +10 -0
- package/dist/esm/editing/EditingScope.js.map +1 -0
- package/dist/esm/editing/EditingScopeKind.d.ts +7 -0
- package/dist/esm/editing/EditingScopeKind.d.ts.map +1 -0
- package/dist/esm/editing/EditingScopeKind.js +14 -0
- package/dist/esm/editing/EditingScopeKind.js.map +1 -0
- package/dist/esm/editing/EffectiveCollectionItem.d.ts +8 -0
- package/dist/esm/editing/EffectiveCollectionItem.d.ts.map +1 -0
- package/dist/esm/editing/EffectiveCollectionItem.js +13 -0
- package/dist/esm/editing/EffectiveCollectionItem.js.map +1 -0
- package/dist/esm/editing/EffectiveComponentConfiguration.d.ts +9 -0
- package/dist/esm/editing/EffectiveComponentConfiguration.d.ts.map +1 -0
- package/dist/esm/editing/EffectiveComponentConfiguration.js +11 -0
- package/dist/esm/editing/EffectiveComponentConfiguration.js.map +1 -0
- package/dist/esm/editing/EffectiveConfiguration.d.ts +8 -0
- package/dist/esm/editing/EffectiveConfiguration.d.ts.map +1 -0
- package/dist/esm/editing/EffectiveConfiguration.js +9 -0
- package/dist/esm/editing/EffectiveConfiguration.js.map +1 -0
- package/dist/esm/editing/EffectivePropertyValue.d.ts +12 -0
- package/dist/esm/editing/EffectivePropertyValue.d.ts.map +1 -0
- package/dist/esm/editing/EffectivePropertyValue.js +13 -0
- package/dist/esm/editing/EffectivePropertyValue.js.map +1 -0
- package/dist/esm/editing/ExposePropertyEdit.d.ts +9 -0
- package/dist/esm/editing/ExposePropertyEdit.d.ts.map +1 -0
- package/dist/esm/editing/ExposePropertyEdit.js +10 -0
- package/dist/esm/editing/ExposePropertyEdit.js.map +1 -0
- package/dist/esm/editing/InsertNodeEdit.d.ts +13 -0
- package/dist/esm/editing/InsertNodeEdit.d.ts.map +1 -0
- package/dist/esm/editing/InsertNodeEdit.js +13 -0
- package/dist/esm/editing/InsertNodeEdit.js.map +1 -0
- package/dist/esm/editing/InspectedCollectionItem.d.ts +8 -0
- package/dist/esm/editing/InspectedCollectionItem.d.ts.map +1 -0
- package/dist/esm/editing/InspectedCollectionItem.js +13 -0
- package/dist/esm/editing/InspectedCollectionItem.js.map +1 -0
- package/dist/esm/editing/InspectedProperty.d.ts +17 -0
- package/dist/esm/editing/InspectedProperty.d.ts.map +1 -0
- package/dist/esm/editing/InspectedProperty.js +16 -0
- package/dist/esm/editing/InspectedProperty.js.map +1 -0
- package/dist/esm/editing/MoveNodeEdit.d.ts +10 -0
- package/dist/esm/editing/MoveNodeEdit.d.ts.map +1 -0
- package/dist/esm/editing/MoveNodeEdit.js +12 -0
- package/dist/esm/editing/MoveNodeEdit.js.map +1 -0
- package/dist/esm/editing/NodeInspection.d.ts +19 -0
- package/dist/esm/editing/NodeInspection.d.ts.map +1 -0
- package/dist/esm/editing/NodeInspection.js +17 -0
- package/dist/esm/editing/NodeInspection.js.map +1 -0
- package/dist/esm/editing/NodeProvenance.d.ts +7 -0
- package/dist/esm/editing/NodeProvenance.d.ts.map +1 -0
- package/dist/esm/editing/NodeProvenance.js +9 -0
- package/dist/esm/editing/NodeProvenance.js.map +1 -0
- package/dist/esm/editing/ProvenanceKind.d.ts +6 -0
- package/dist/esm/editing/ProvenanceKind.d.ts.map +1 -0
- package/dist/esm/editing/ProvenanceKind.js +13 -0
- package/dist/esm/editing/ProvenanceKind.js.map +1 -0
- package/dist/esm/editing/RemoveCollectionItemEdit.d.ts +10 -0
- package/dist/esm/editing/RemoveCollectionItemEdit.d.ts.map +1 -0
- package/dist/esm/editing/RemoveCollectionItemEdit.js +12 -0
- package/dist/esm/editing/RemoveCollectionItemEdit.js.map +1 -0
- package/dist/esm/editing/RemoveNodeEdit.d.ts +7 -0
- package/dist/esm/editing/RemoveNodeEdit.d.ts.map +1 -0
- package/dist/esm/editing/RemoveNodeEdit.js +9 -0
- package/dist/esm/editing/RemoveNodeEdit.js.map +1 -0
- package/dist/esm/editing/ReorderCollectionItemEdit.d.ts +11 -0
- package/dist/esm/editing/ReorderCollectionItemEdit.d.ts.map +1 -0
- package/dist/esm/editing/ReorderCollectionItemEdit.js +13 -0
- package/dist/esm/editing/ReorderCollectionItemEdit.js.map +1 -0
- package/dist/esm/editing/ResetInstanceValueEdit.d.ts +9 -0
- package/dist/esm/editing/ResetInstanceValueEdit.d.ts.map +1 -0
- package/dist/esm/editing/ResetInstanceValueEdit.js +11 -0
- package/dist/esm/editing/ResetInstanceValueEdit.js.map +1 -0
- package/dist/esm/editing/ResetPropertyEdit.d.ts +8 -0
- package/dist/esm/editing/ResetPropertyEdit.d.ts.map +1 -0
- package/dist/esm/editing/ResetPropertyEdit.js +10 -0
- package/dist/esm/editing/ResetPropertyEdit.js.map +1 -0
- package/dist/esm/editing/SceneDiagnostic.d.ts +14 -0
- package/dist/esm/editing/SceneDiagnostic.d.ts.map +1 -0
- package/dist/esm/editing/SceneDiagnostic.js +15 -0
- package/dist/esm/editing/SceneDiagnostic.js.map +1 -0
- package/dist/esm/editing/SceneDocument.d.ts +13 -0
- package/dist/esm/editing/SceneDocument.d.ts.map +1 -0
- package/dist/esm/editing/SceneDocument.js +13 -0
- package/dist/esm/editing/SceneDocument.js.map +1 -0
- package/dist/esm/editing/SceneEdit.d.ts +16 -0
- package/dist/esm/editing/SceneEdit.d.ts.map +1 -0
- package/dist/esm/editing/SceneEdit.js +2 -0
- package/dist/esm/editing/SceneEdit.js.map +1 -0
- package/dist/esm/editing/SceneEditKind.d.ts +17 -0
- package/dist/esm/editing/SceneEditKind.d.ts.map +1 -0
- package/dist/esm/editing/SceneEditKind.js +25 -0
- package/dist/esm/editing/SceneEditKind.js.map +1 -0
- package/dist/esm/editing/SceneNodeKind.d.ts +12 -0
- package/dist/esm/editing/SceneNodeKind.d.ts.map +1 -0
- package/dist/esm/editing/SceneNodeKind.js +19 -0
- package/dist/esm/editing/SceneNodeKind.js.map +1 -0
- package/dist/esm/editing/SetInstanceValueEdit.d.ts +10 -0
- package/dist/esm/editing/SetInstanceValueEdit.d.ts.map +1 -0
- package/dist/esm/editing/SetInstanceValueEdit.js +12 -0
- package/dist/esm/editing/SetInstanceValueEdit.js.map +1 -0
- package/dist/esm/editing/SetPropertyEdit.d.ts +9 -0
- package/dist/esm/editing/SetPropertyEdit.d.ts.map +1 -0
- package/dist/esm/editing/SetPropertyEdit.js +11 -0
- package/dist/esm/editing/SetPropertyEdit.js.map +1 -0
- package/dist/esm/editing/UnexposePropertyEdit.d.ts +9 -0
- package/dist/esm/editing/UnexposePropertyEdit.d.ts.map +1 -0
- package/dist/esm/editing/UnexposePropertyEdit.js +11 -0
- package/dist/esm/editing/UnexposePropertyEdit.js.map +1 -0
- package/dist/esm/editing/ValueSource.d.ts +6 -0
- package/dist/esm/editing/ValueSource.d.ts.map +1 -0
- package/dist/esm/editing/ValueSource.js +13 -0
- package/dist/esm/editing/ValueSource.js.map +1 -0
- package/dist/esm/editing/index.d.ts +35 -0
- package/dist/esm/editing/index.d.ts.map +1 -0
- package/dist/esm/editing/index.js +35 -0
- package/dist/esm/editing/index.js.map +1 -0
- package/dist/esm/exposure/ContributedItem.d.ts +6 -0
- package/dist/esm/exposure/ContributedItem.d.ts.map +1 -0
- package/dist/esm/exposure/ContributedItem.js +12 -0
- package/dist/esm/exposure/ContributedItem.js.map +1 -0
- package/dist/esm/exposure/ExposedProperty.d.ts +11 -0
- package/dist/esm/exposure/ExposedProperty.d.ts.map +1 -0
- package/dist/esm/exposure/ExposedProperty.js +13 -0
- package/dist/esm/exposure/ExposedProperty.js.map +1 -0
- package/dist/esm/exposure/ExposureDeclaration.d.ts +7 -0
- package/dist/esm/exposure/ExposureDeclaration.d.ts.map +1 -0
- package/dist/esm/exposure/ExposureDeclaration.js +9 -0
- package/dist/esm/exposure/ExposureDeclaration.js.map +1 -0
- package/dist/esm/exposure/InstanceContribution.d.ts +10 -0
- package/dist/esm/exposure/InstanceContribution.d.ts.map +1 -0
- package/dist/esm/exposure/InstanceContribution.js +12 -0
- package/dist/esm/exposure/InstanceContribution.js.map +1 -0
- package/dist/esm/exposure/index.d.ts +5 -0
- package/dist/esm/exposure/index.d.ts.map +1 -0
- package/dist/esm/exposure/index.js +5 -0
- package/dist/esm/exposure/index.js.map +1 -0
- package/dist/esm/icons/IconEntry.d.ts +10 -0
- package/dist/esm/icons/IconEntry.d.ts.map +1 -0
- package/dist/esm/icons/IconEntry.js +20 -0
- package/dist/esm/icons/IconEntry.js.map +1 -0
- package/dist/esm/icons/IconLibrary.d.ts +9 -0
- package/dist/esm/icons/IconLibrary.d.ts.map +1 -0
- package/dist/esm/icons/IconLibrary.js +20 -0
- package/dist/esm/icons/IconLibrary.js.map +1 -0
- package/dist/esm/icons/IconReference.d.ts +7 -0
- package/dist/esm/icons/IconReference.d.ts.map +1 -0
- package/dist/esm/icons/IconReference.js +21 -0
- package/dist/esm/icons/IconReference.js.map +1 -0
- package/dist/esm/icons/iconReferences.d.ts +6 -0
- package/dist/esm/icons/iconReferences.d.ts.map +1 -0
- package/dist/esm/icons/iconReferences.js +56 -0
- package/dist/esm/icons/iconReferences.js.map +1 -0
- package/dist/esm/icons/index.d.ts +5 -0
- package/dist/esm/icons/index.d.ts.map +1 -0
- package/dist/esm/icons/index.js +5 -0
- package/dist/esm/icons/index.js.map +1 -0
- package/dist/esm/index.d.ts +5 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +62 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/packages/PackageKind.d.ts +2 -1
- package/dist/esm/packages/PackageKind.d.ts.map +1 -1
- package/dist/esm/packages/PackageKind.js +12 -1
- package/dist/esm/packages/PackageKind.js.map +1 -1
- package/dist/esm/packages/ScenePackage.d.ts +2 -0
- package/dist/esm/packages/ScenePackage.d.ts.map +1 -1
- package/dist/esm/packages/ScenePackage.js +2 -1
- package/dist/esm/packages/ScenePackage.js.map +1 -1
- package/dist/esm/queries/QueryArgumentBinding.d.ts +7 -0
- package/dist/esm/queries/QueryArgumentBinding.d.ts.map +1 -0
- package/dist/esm/queries/QueryArgumentBinding.js +9 -0
- package/dist/esm/queries/QueryArgumentBinding.js.map +1 -0
- package/dist/esm/queries/QueryBinding.d.ts +10 -0
- package/dist/esm/queries/QueryBinding.d.ts.map +1 -0
- package/dist/esm/queries/QueryBinding.js +11 -0
- package/dist/esm/queries/QueryBinding.js.map +1 -0
- package/dist/esm/queries/QueryCandidate.d.ts +14 -0
- package/dist/esm/queries/QueryCandidate.d.ts.map +1 -0
- package/dist/esm/queries/QueryCandidate.js +13 -0
- package/dist/esm/queries/QueryCandidate.js.map +1 -0
- package/dist/esm/queries/QueryOrigin.d.ts +8 -0
- package/dist/esm/queries/QueryOrigin.d.ts.map +1 -0
- package/dist/esm/queries/QueryOrigin.js +10 -0
- package/dist/esm/queries/QueryOrigin.js.map +1 -0
- package/dist/esm/queries/QueryOriginKind.d.ts +5 -0
- package/dist/esm/queries/QueryOriginKind.d.ts.map +1 -0
- package/dist/esm/queries/QueryOriginKind.js +12 -0
- package/dist/esm/queries/QueryOriginKind.js.map +1 -0
- package/dist/esm/queries/QueryParameter.d.ts +7 -0
- package/dist/esm/queries/QueryParameter.d.ts.map +1 -0
- package/dist/esm/queries/QueryParameter.js +12 -0
- package/dist/esm/queries/QueryParameter.js.map +1 -0
- package/dist/esm/queries/QueryResultBinding.d.ts +6 -0
- package/dist/esm/queries/QueryResultBinding.d.ts.map +1 -0
- package/dist/esm/queries/QueryResultBinding.js +11 -0
- package/dist/esm/queries/QueryResultBinding.js.map +1 -0
- package/dist/esm/queries/QueryResultField.d.ts +7 -0
- package/dist/esm/queries/QueryResultField.d.ts.map +1 -0
- package/dist/esm/queries/QueryResultField.js +12 -0
- package/dist/esm/queries/QueryResultField.js.map +1 -0
- package/dist/esm/queries/QueryResultShape.d.ts +6 -0
- package/dist/esm/queries/QueryResultShape.d.ts.map +1 -0
- package/dist/esm/queries/QueryResultShape.js +14 -0
- package/dist/esm/queries/QueryResultShape.js.map +1 -0
- package/dist/esm/queries/index.d.ts +10 -0
- package/dist/esm/queries/index.d.ts.map +1 -0
- package/dist/esm/queries/index.js +10 -0
- package/dist/esm/queries/index.js.map +1 -0
- package/dist/esm/tsconfig.tsbuildinfo +1 -1
- package/editing/AddCollectionItemEdit.ts +21 -0
- package/editing/ChangeLayoutTypeEdit.ts +22 -0
- package/editing/DiagnosticCode.ts +66 -0
- package/editing/DiagnosticSeverity.ts +11 -0
- package/editing/EditCollectionItemEdit.ts +23 -0
- package/editing/EditTarget.ts +13 -0
- package/editing/EditingScope.ts +24 -0
- package/editing/EditingScopeKind.ts +12 -0
- package/editing/EffectiveCollectionItem.ts +18 -0
- package/editing/EffectiveComponentConfiguration.ts +26 -0
- package/editing/EffectiveConfiguration.ts +23 -0
- package/editing/EffectivePropertyValue.ts +31 -0
- package/editing/ExposePropertyEdit.ts +18 -0
- package/editing/InsertNodeEdit.ts +30 -0
- package/editing/InspectedCollectionItem.ts +18 -0
- package/editing/InspectedProperty.ts +43 -0
- package/editing/MoveNodeEdit.ts +19 -0
- package/editing/NodeInspection.ts +46 -0
- package/editing/NodeProvenance.ts +16 -0
- package/editing/ProvenanceKind.ts +16 -0
- package/editing/RemoveCollectionItemEdit.ts +17 -0
- package/editing/RemoveNodeEdit.ts +14 -0
- package/editing/ReorderCollectionItemEdit.ts +20 -0
- package/editing/ResetInstanceValueEdit.ts +17 -0
- package/editing/ResetPropertyEdit.ts +15 -0
- package/editing/SceneDiagnostic.ts +34 -0
- package/editing/SceneDocument.ts +32 -0
- package/editing/SceneEdit.ts +36 -0
- package/editing/SceneEditKind.ts +23 -0
- package/editing/SceneNodeKind.ts +27 -0
- package/editing/SetInstanceValueEdit.ts +19 -0
- package/editing/SetPropertyEdit.ts +18 -0
- package/editing/UnexposePropertyEdit.ts +16 -0
- package/editing/ValueSource.ts +16 -0
- package/editing/index.ts +37 -0
- package/exposure/ContributedItem.ts +15 -0
- package/exposure/ExposedProperty.ts +46 -0
- package/exposure/ExposureDeclaration.ts +16 -0
- package/exposure/InstanceContribution.ts +36 -0
- package/exposure/index.ts +7 -0
- package/icons/IconEntry.ts +45 -0
- package/icons/IconLibrary.ts +42 -0
- package/icons/IconReference.ts +35 -0
- package/icons/iconReferences.ts +62 -0
- package/icons/index.ts +7 -0
- package/index.ts +5 -0
- package/package.json +1 -1
- package/packages/PackageKind.ts +14 -1
- package/packages/ScenePackage.ts +7 -0
- package/queries/QueryArgumentBinding.ts +17 -0
- package/queries/QueryBinding.ts +22 -0
- package/queries/QueryCandidate.ts +37 -0
- package/queries/QueryOrigin.ts +18 -0
- package/queries/QueryOriginKind.ts +13 -0
- package/queries/QueryParameter.ts +16 -0
- package/queries/QueryResultBinding.ts +15 -0
- package/queries/QueryResultField.ts +17 -0
- package/queries/QueryResultShape.ts +17 -0
- package/queries/index.ts +12 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* One allowed value of an `Enum` property.
|
|
5
|
+
*/ const PropertyChoicePropertyNames = [
|
|
6
|
+
'value',
|
|
7
|
+
'label',
|
|
8
|
+
'description'
|
|
9
|
+
];
|
|
10
|
+
|
|
11
|
+
export { PropertyChoicePropertyNames };
|
|
12
|
+
//# sourceMappingURL=PropertyChoice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyChoice.js","sources":["../../../descriptors/PropertyChoice.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * One allowed value of an `Enum` property.\n */\nexport interface PropertyChoice {\n value: string | number;\n label: string;\n description?: string;\n}\n\nexport const PropertyChoicePropertyNames: (keyof PropertyChoice)[] = ['value', 'label', 'description'];\n"],"names":["PropertyChoicePropertyNames"],"mappings":"AAAA;AACA;AAEA;;UASaA,2BAAAA,GAAwD;AAAC,IAAA,OAAA;AAAS,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QueryResultShape } from '../queries';
|
|
2
|
+
export interface PropertyConstraints {
|
|
3
|
+
required?: boolean;
|
|
4
|
+
minimum?: number;
|
|
5
|
+
maximum?: number;
|
|
6
|
+
integer?: boolean;
|
|
7
|
+
minimumLength?: number;
|
|
8
|
+
maximumLength?: number;
|
|
9
|
+
pattern?: string;
|
|
10
|
+
minimumItems?: number;
|
|
11
|
+
maximumItems?: number;
|
|
12
|
+
resultShapes?: `${QueryResultShape}`[];
|
|
13
|
+
}
|
|
14
|
+
export declare const PropertyConstraintsPropertyNames: (keyof PropertyConstraints)[];
|
|
15
|
+
//# sourceMappingURL=PropertyConstraints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyConstraints.d.ts","sourceRoot":"","sources":["../../../descriptors/PropertyConstraints.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAK9C,MAAM,WAAW,mBAAmB;IAEhC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAGnB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,CAAC;IAGvB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,YAAY,CAAC,EAAE,MAAM,CAAC;IAGtB,YAAY,CAAC,EAAE,GAAG,gBAAgB,EAAE,EAAE,CAAC;CAC1C;AAED,eAAO,MAAM,gCAAgC,EAAE,CAAC,MAAM,mBAAmB,CAAC,EAGzE,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const PropertyConstraintsPropertyNames = [
|
|
4
|
+
'required',
|
|
5
|
+
'minimum',
|
|
6
|
+
'maximum',
|
|
7
|
+
'integer',
|
|
8
|
+
'minimumLength',
|
|
9
|
+
'maximumLength',
|
|
10
|
+
'pattern',
|
|
11
|
+
'minimumItems',
|
|
12
|
+
'maximumItems',
|
|
13
|
+
'resultShapes'
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export { PropertyConstraintsPropertyNames };
|
|
17
|
+
//# sourceMappingURL=PropertyConstraints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyConstraints.js","sources":["../../../descriptors/PropertyConstraints.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { QueryResultShape } from '../queries';\n\n/**\n * The limits a property's value has to stay within. Every limit is optional; an absent one means no limit.\n */\nexport interface PropertyConstraints {\n /** The property must have a value. */\n required?: boolean;\n\n /** The smallest allowed number. */\n minimum?: number;\n\n /** The largest allowed number. */\n maximum?: number;\n\n /** The number must be a whole number. */\n integer?: boolean;\n\n minimumLength?: number;\n maximumLength?: number;\n\n /** A regular expression a string must match in full. */\n pattern?: string;\n\n /** The fewest items a collection may hold. */\n minimumItems?: number;\n\n /** The most items a collection may hold. */\n maximumItems?: number;\n\n /** For a `QueryReference`: the result shapes the component can bind to. Absent means any. */\n resultShapes?: `${QueryResultShape}`[];\n}\n\nexport const PropertyConstraintsPropertyNames: (keyof PropertyConstraints)[] = [\n 'required', 'minimum', 'maximum', 'integer', 'minimumLength', 'maximumLength', 'pattern',\n 'minimumItems', 'maximumItems', 'resultShapes',\n];\n"],"names":["PropertyConstraintsPropertyNames"],"mappings":"AAAA;AACA;MAoCaA,gCAAAA,GAAkE;AAC3E,IAAA,UAAA;AAAY,IAAA,SAAA;AAAW,IAAA,SAAA;AAAW,IAAA,SAAA;AAAW,IAAA,eAAA;AAAiB,IAAA,eAAA;AAAiB,IAAA,SAAA;AAC/E,IAAA,cAAA;AAAgB,IAAA,cAAA;AAAgB,IAAA;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { CollectionItemDescriptor } from './CollectionItemDescriptor';
|
|
2
|
+
import { PropertyChoice } from './PropertyChoice';
|
|
3
|
+
import { PropertyConstraints } from './PropertyConstraints';
|
|
4
|
+
import { PropertyValueType } from './PropertyValueType';
|
|
5
|
+
export interface PropertyDescriptor {
|
|
6
|
+
path: string;
|
|
7
|
+
label: string;
|
|
8
|
+
group: string;
|
|
9
|
+
valueType: PropertyValueType;
|
|
10
|
+
choices?: PropertyChoice[];
|
|
11
|
+
default?: unknown;
|
|
12
|
+
constraints?: PropertyConstraints;
|
|
13
|
+
editorKind?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
item?: CollectionItemDescriptor;
|
|
16
|
+
readOnly?: boolean;
|
|
17
|
+
}
|
|
18
|
+
export declare const PropertyDescriptorPropertyNames: (keyof PropertyDescriptor)[];
|
|
19
|
+
//# sourceMappingURL=PropertyDescriptor.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyDescriptor.d.ts","sourceRoot":"","sources":["../../../descriptors/PropertyDescriptor.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAOxD,MAAM,WAAW,kBAAkB;IAK/B,IAAI,EAAE,MAAM,CAAC;IAGb,KAAK,EAAE,MAAM,CAAC;IAGd,KAAK,EAAE,MAAM,CAAC;IAEd,SAAS,EAAE,iBAAiB,CAAC;IAG7B,OAAO,CAAC,EAAE,cAAc,EAAE,CAAC;IAG3B,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,WAAW,CAAC,EAAE,mBAAmB,CAAC;IAMlC,UAAU,CAAC,EAAE,MAAM,CAAC;IAGpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAGrB,IAAI,CAAC,EAAE,wBAAwB,CAAC;IAGhC,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,eAAO,MAAM,+BAA+B,EAAE,CAAC,MAAM,kBAAkB,CAAC,EAEvE,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const PropertyDescriptorPropertyNames = [
|
|
4
|
+
'path',
|
|
5
|
+
'label',
|
|
6
|
+
'group',
|
|
7
|
+
'valueType',
|
|
8
|
+
'choices',
|
|
9
|
+
'default',
|
|
10
|
+
'constraints',
|
|
11
|
+
'editorKind',
|
|
12
|
+
'description',
|
|
13
|
+
'item',
|
|
14
|
+
'readOnly'
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
export { PropertyDescriptorPropertyNames };
|
|
18
|
+
//# sourceMappingURL=PropertyDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyDescriptor.js","sources":["../../../descriptors/PropertyDescriptor.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { CollectionItemDescriptor } from './CollectionItemDescriptor';\nimport { PropertyChoice } from './PropertyChoice';\nimport { PropertyConstraints } from './PropertyConstraints';\nimport { PropertyValueType } from './PropertyValueType';\n\n/**\n * Describes one editable property of a node: where it lives, what it is called, what it may hold and how a host\n * should edit it. A descriptor is plain data, so packages ship them and Studio reads them without loading a\n * component.\n */\nexport interface PropertyDescriptor {\n /**\n * Where the value lives. For an `ExternalComponent` it is a key (or dotted key path) in the element's\n * `properties` bag; for a model-native node such as a flow container it is the node's own property name.\n */\n path: string;\n\n /** The label an editor shows. */\n label: string;\n\n /** The editor section the property belongs to. */\n group: string;\n\n valueType: PropertyValueType;\n\n /** The allowed values of an `Enum` property. */\n choices?: PropertyChoice[];\n\n /** The value in effect when none is set. */\n default?: unknown;\n\n constraints?: PropertyConstraints;\n\n /**\n * Names a specialised editor. A host maps the name to its own editor - an icon picker, a query binder - and\n * falls back to the default editor for `valueType` when it does not know the name.\n */\n editorKind?: string;\n\n /** A sentence of help for the editor. */\n description?: string;\n\n /** Describes the items of a `Collection` property. Required when `valueType` is `Collection`. */\n item?: CollectionItemDescriptor;\n\n /** The value is shown but never edited. */\n readOnly?: boolean;\n}\n\nexport const PropertyDescriptorPropertyNames: (keyof PropertyDescriptor)[] = [\n 'path', 'label', 'group', 'valueType', 'choices', 'default', 'constraints', 'editorKind', 'description', 'item', 'readOnly',\n];\n"],"names":["PropertyDescriptorPropertyNames"],"mappings":"AAAA;AACA;MAmDaA,+BAAAA,GAAgE;AACzE,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,OAAA;AAAS,IAAA,WAAA;AAAa,IAAA,SAAA;AAAW,IAAA,SAAA;AAAW,IAAA,aAAA;AAAe,IAAA,YAAA;AAAc,IAAA,aAAA;AAAe,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare enum PropertyValueType {
|
|
2
|
+
String = "string",
|
|
3
|
+
Number = "number",
|
|
4
|
+
Boolean = "boolean",
|
|
5
|
+
Enum = "enum",
|
|
6
|
+
Icon = "icon",
|
|
7
|
+
Destination = "destination",
|
|
8
|
+
QueryReference = "queryReference",
|
|
9
|
+
Collection = "collection",
|
|
10
|
+
Object = "object"
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=PropertyValueType.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyValueType.d.ts","sourceRoot":"","sources":["../../../descriptors/PropertyValueType.ts"],"names":[],"mappings":"AAOA,oBAAY,iBAAiB;IACzB,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,OAAO,YAAY;IAGnB,IAAI,SAAS;IAGb,IAAI,SAAS;IAGb,WAAW,gBAAgB;IAG3B,cAAc,mBAAmB;IAGjC,UAAU,eAAe;IAGzB,MAAM,WAAW;CACpB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* The kind of value a property holds. It decides what a value must look like to be accepted, and gives a host a
|
|
5
|
+
* default editor to show - unless the descriptor names a specialised `editorKind`.
|
|
6
|
+
*/ var PropertyValueType = /*#__PURE__*/ function(PropertyValueType) {
|
|
7
|
+
PropertyValueType["String"] = "string";
|
|
8
|
+
PropertyValueType["Number"] = "number";
|
|
9
|
+
PropertyValueType["Boolean"] = "boolean";
|
|
10
|
+
/** One of the descriptor's `choices`. */ PropertyValueType["Enum"] = "enum";
|
|
11
|
+
/** An {@link IconReference}. The icon catalog is owned by the icon libraries, not by the model. */ PropertyValueType["Icon"] = "icon";
|
|
12
|
+
/** A {@link DestinationReference}. */ PropertyValueType["Destination"] = "destination";
|
|
13
|
+
/** A {@link QueryBinding}. */ PropertyValueType["QueryReference"] = "queryReference";
|
|
14
|
+
/** An ordered list of items, each described by the descriptor's `item`. */ PropertyValueType["Collection"] = "collection";
|
|
15
|
+
/** A structured value the descriptor's own `editorKind` knows how to edit. */ PropertyValueType["Object"] = "object";
|
|
16
|
+
return PropertyValueType;
|
|
17
|
+
}({});
|
|
18
|
+
|
|
19
|
+
export { PropertyValueType };
|
|
20
|
+
//# sourceMappingURL=PropertyValueType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PropertyValueType.js","sources":["../../../descriptors/PropertyValueType.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The kind of value a property holds. It decides what a value must look like to be accepted, and gives a host a\n * default editor to show - unless the descriptor names a specialised `editorKind`.\n */\nexport enum PropertyValueType {\n String = 'string',\n Number = 'number',\n Boolean = 'boolean',\n\n /** One of the descriptor's `choices`. */\n Enum = 'enum',\n\n /** An {@link IconReference}. The icon catalog is owned by the icon libraries, not by the model. */\n Icon = 'icon',\n\n /** A {@link DestinationReference}. */\n Destination = 'destination',\n\n /** A {@link QueryBinding}. */\n QueryReference = 'queryReference',\n\n /** An ordered list of items, each described by the descriptor's `item`. */\n Collection = 'collection',\n\n /** A structured value the descriptor's own `editorKind` knows how to edit. */\n Object = 'object',\n}\n"],"names":["PropertyValueType"],"mappings":"AAAA;AACA;AAEA;;;IAIO,IAAKA,iBAAAA,iBAAAA,SAAAA,iBAAAA,EAAAA;;;;8CAK+B,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;wGAG0D,iBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;2CAG7D,iBAAA,CAAA,aAAA,CAAA,GAAA,aAAA;mCAGR,iBAAA,CAAA,gBAAA,CAAA,GAAA,gBAAA;gFAG6C,iBAAA,CAAA,YAAA,CAAA,GAAA,YAAA;mFAGG,iBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;AApBpEA,IAAAA,OAAAA,iBAAAA;AAsBX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './PropertyValueType';
|
|
2
|
+
export * from './PropertyChoice';
|
|
3
|
+
export * from './PropertyConstraints';
|
|
4
|
+
export * from './CollectionItemDescriptor';
|
|
5
|
+
export * from './PropertyDescriptor';
|
|
6
|
+
export * from './ComponentDescriptor';
|
|
7
|
+
export * from './CollectionOperation';
|
|
8
|
+
export * from './LayoutType';
|
|
9
|
+
export * from './LayoutChildPlacement';
|
|
10
|
+
export * from './LayoutCapabilities';
|
|
11
|
+
export * from './LayoutTypeDescriptor';
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../descriptors/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './PropertyValueType';
|
|
2
|
+
export * from './PropertyChoice';
|
|
3
|
+
export * from './PropertyConstraints';
|
|
4
|
+
export * from './CollectionItemDescriptor';
|
|
5
|
+
export * from './PropertyDescriptor';
|
|
6
|
+
export * from './ComponentDescriptor';
|
|
7
|
+
export * from './CollectionOperation';
|
|
8
|
+
export * from './LayoutType';
|
|
9
|
+
export * from './LayoutChildPlacement';
|
|
10
|
+
export * from './LayoutCapabilities';
|
|
11
|
+
export * from './LayoutTypeDescriptor';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../descriptors/index.ts"],"names":[],"mappings":"AAGA,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,uBAAuB,CAAC;AACtC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,uBAAuB,CAAC;AACtC,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { ContributedItem } from '../exposure';
|
|
2
|
+
import { SceneEditKind } from './SceneEditKind';
|
|
3
|
+
export interface AddCollectionItemEdit {
|
|
4
|
+
kind: SceneEditKind.AddCollectionItem;
|
|
5
|
+
instance?: string;
|
|
6
|
+
component: string;
|
|
7
|
+
path: string;
|
|
8
|
+
item: ContributedItem;
|
|
9
|
+
index?: number;
|
|
10
|
+
}
|
|
11
|
+
export declare const AddCollectionItemEditPropertyNames: (keyof AddCollectionItemEdit)[];
|
|
12
|
+
//# sourceMappingURL=AddCollectionItemEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddCollectionItemEdit.d.ts","sourceRoot":"","sources":["../../../editing/AddCollectionItemEdit.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,MAAM,WAAW,qBAAqB;IAClC,IAAI,EAAE,aAAa,CAAC,iBAAiB,CAAC;IACtC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,eAAe,CAAC;IAGtB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,eAAO,MAAM,kCAAkC,EAAE,CAAC,MAAM,qBAAqB,CAAC,EAA+D,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const AddCollectionItemEditPropertyNames = [
|
|
4
|
+
'kind',
|
|
5
|
+
'instance',
|
|
6
|
+
'component',
|
|
7
|
+
'path',
|
|
8
|
+
'item',
|
|
9
|
+
'index'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export { AddCollectionItemEditPropertyNames };
|
|
13
|
+
//# sourceMappingURL=AddCollectionItemEdit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddCollectionItemEdit.js","sources":["../../../editing/AddCollectionItemEdit.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { ContributedItem } from '../exposure';\nimport { SceneEditKind } from './SceneEditKind';\n\n/**\n * Adds an item to an exposed collection from a template instance.\n */\nexport interface AddCollectionItemEdit {\n kind: SceneEditKind.AddCollectionItem;\n instance?: string;\n component: string;\n path: string;\n item: ContributedItem;\n\n /** Where among the instance's own items. Absent appends. */\n index?: number;\n}\n\nexport const AddCollectionItemEditPropertyNames: (keyof AddCollectionItemEdit)[] = ['kind', 'instance', 'component', 'path', 'item', 'index'];\n"],"names":["AddCollectionItemEditPropertyNames"],"mappings":"AAAA;AACA;MAmBaA,kCAAAA,GAAsE;AAAC,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { LayoutType } from '../descriptors';
|
|
2
|
+
import { SceneEditKind } from './SceneEditKind';
|
|
3
|
+
export interface ChangeLayoutTypeEdit {
|
|
4
|
+
kind: SceneEditKind.ChangeLayoutType;
|
|
5
|
+
nodeId: string;
|
|
6
|
+
to: `${LayoutType}`;
|
|
7
|
+
acceptLoss?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export declare const ChangeLayoutTypeEditPropertyNames: (keyof ChangeLayoutTypeEdit)[];
|
|
10
|
+
//# sourceMappingURL=ChangeLayoutTypeEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangeLayoutTypeEdit.d.ts","sourceRoot":"","sources":["../../../editing/ChangeLayoutTypeEdit.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,MAAM,WAAW,oBAAoB;IACjC,IAAI,EAAE,aAAa,CAAC,gBAAgB,CAAC;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,EAAE,EAAE,GAAG,UAAU,EAAE,CAAC;IAMpB,UAAU,CAAC,EAAE,OAAO,CAAC;CACxB;AAED,eAAO,MAAM,iCAAiC,EAAE,CAAC,MAAM,oBAAoB,CAAC,EAA2C,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const ChangeLayoutTypeEditPropertyNames = [
|
|
4
|
+
'kind',
|
|
5
|
+
'nodeId',
|
|
6
|
+
'to',
|
|
7
|
+
'acceptLoss'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
export { ChangeLayoutTypeEditPropertyNames };
|
|
11
|
+
//# sourceMappingURL=ChangeLayoutTypeEdit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ChangeLayoutTypeEdit.js","sources":["../../../editing/ChangeLayoutTypeEdit.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { LayoutType } from '../descriptors';\nimport { SceneEditKind } from './SceneEditKind';\n\n/**\n * Changes a layout node into another layout type, keeping its children.\n */\nexport interface ChangeLayoutTypeEdit {\n kind: SceneEditKind.ChangeLayoutType;\n nodeId: string;\n to: `${LayoutType}`;\n\n /**\n * Whether the author has seen what the conversion drops and accepts it. Without it a lossy conversion is\n * refused with a diagnostic naming what would be lost.\n */\n acceptLoss?: boolean;\n}\n\nexport const ChangeLayoutTypeEditPropertyNames: (keyof ChangeLayoutTypeEdit)[] = ['kind', 'nodeId', 'to', 'acceptLoss'];\n"],"names":["ChangeLayoutTypeEditPropertyNames"],"mappings":"AAAA;AACA;MAoBaA,iCAAAA,GAAoE;AAAC,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,IAAA;AAAM,IAAA;;;"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
export declare enum DiagnosticCode {
|
|
2
|
+
UnknownNode = "unknownNode",
|
|
3
|
+
DuplicateElementId = "duplicateElementId",
|
|
4
|
+
UnknownScope = "unknownScope",
|
|
5
|
+
InvalidEdit = "invalidEdit",
|
|
6
|
+
UnknownProperty = "unknownProperty",
|
|
7
|
+
InvalidValue = "invalidValue",
|
|
8
|
+
ReadOnlyProperty = "readOnlyProperty",
|
|
9
|
+
NodeNotEditable = "nodeNotEditable",
|
|
10
|
+
MissingComponentDescriptor = "missingComponentDescriptor",
|
|
11
|
+
NotALayoutNode = "notALayoutNode",
|
|
12
|
+
LayoutTypeNotConvertible = "layoutTypeNotConvertible",
|
|
13
|
+
LossyConversionNotAccepted = "lossyConversionNotAccepted",
|
|
14
|
+
LossyConversion = "lossyConversion",
|
|
15
|
+
TargetDoesNotAcceptChildren = "targetDoesNotAcceptChildren",
|
|
16
|
+
UnknownSlot = "unknownSlot",
|
|
17
|
+
ContainmentCycle = "containmentCycle",
|
|
18
|
+
IndexOutOfRange = "indexOutOfRange",
|
|
19
|
+
ElementIdInUse = "elementIdInUse",
|
|
20
|
+
MaximumChildrenExceeded = "maximumChildrenExceeded",
|
|
21
|
+
NodeNotRemovable = "nodeNotRemovable",
|
|
22
|
+
MissingQuery = "missingQuery",
|
|
23
|
+
IncompatibleResultShape = "incompatibleResultShape",
|
|
24
|
+
MissingRequiredParameter = "missingRequiredParameter",
|
|
25
|
+
UnknownParameter = "unknownParameter",
|
|
26
|
+
ArgumentTypeMismatch = "argumentTypeMismatch",
|
|
27
|
+
UnresolvedArgumentSource = "unresolvedArgumentSource",
|
|
28
|
+
UnknownResultField = "unknownResultField",
|
|
29
|
+
ExposureTargetMissing = "exposureTargetMissing",
|
|
30
|
+
ExposureWidensOwner = "exposureWidensOwner",
|
|
31
|
+
ReExposureBroken = "reExposureBroken",
|
|
32
|
+
ContributionNotExposed = "contributionNotExposed",
|
|
33
|
+
ContributionTargetMissing = "contributionTargetMissing",
|
|
34
|
+
ContributionTypeMismatch = "contributionTypeMismatch",
|
|
35
|
+
ContributionOperationNotPermitted = "contributionOperationNotPermitted",
|
|
36
|
+
UnknownCollectionField = "unknownCollectionField",
|
|
37
|
+
CollectionItemNotFound = "collectionItemNotFound",
|
|
38
|
+
DuplicateCollectionItem = "duplicateCollectionItem",
|
|
39
|
+
UnknownInstance = "unknownInstance",
|
|
40
|
+
MissingIconLibrary = "missingIconLibrary",
|
|
41
|
+
MissingIcon = "missingIcon",
|
|
42
|
+
MissingIconVariant = "missingIconVariant",
|
|
43
|
+
IncompatibleIconLibrary = "incompatibleIconLibrary",
|
|
44
|
+
IconCatalogUnavailable = "iconCatalogUnavailable",
|
|
45
|
+
IconNotVerified = "iconNotVerified"
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=DiagnosticCode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiagnosticCode.d.ts","sourceRoot":"","sources":["../../../editing/DiagnosticCode.ts"],"names":[],"mappings":"AAOA,oBAAY,cAAc;IAEtB,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,YAAY,iBAAiB;IAC7B,WAAW,gBAAgB;IAG3B,eAAe,oBAAoB;IACnC,YAAY,iBAAiB;IAC7B,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,0BAA0B,+BAA+B;IAGzD,cAAc,mBAAmB;IACjC,wBAAwB,6BAA6B;IACrD,0BAA0B,+BAA+B;IACzD,eAAe,oBAAoB;IAGnC,2BAA2B,gCAAgC;IAC3D,WAAW,gBAAgB;IAC3B,gBAAgB,qBAAqB;IACrC,eAAe,oBAAoB;IACnC,cAAc,mBAAmB;IACjC,uBAAuB,4BAA4B;IACnD,gBAAgB,qBAAqB;IAGrC,YAAY,iBAAiB;IAC7B,uBAAuB,4BAA4B;IACnD,wBAAwB,6BAA6B;IACrD,gBAAgB,qBAAqB;IACrC,oBAAoB,yBAAyB;IAC7C,wBAAwB,6BAA6B;IACrD,kBAAkB,uBAAuB;IAGzC,qBAAqB,0BAA0B;IAC/C,mBAAmB,wBAAwB;IAC3C,gBAAgB,qBAAqB;IACrC,sBAAsB,2BAA2B;IACjD,yBAAyB,8BAA8B;IACvD,wBAAwB,6BAA6B;IACrD,iCAAiC,sCAAsC;IACvE,sBAAsB,2BAA2B;IACjD,sBAAsB,2BAA2B;IACjD,uBAAuB,4BAA4B;IACnD,eAAe,oBAAoB;IAGnC,kBAAkB,uBAAuB;IACzC,WAAW,gBAAgB;IAC3B,kBAAkB,uBAAuB;IACzC,uBAAuB,4BAA4B;IACnD,sBAAsB,2BAA2B;IACjD,eAAe,oBAAoB;CACtC"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* The reasons inspection, editing, binding validation and configuration resolution report a problem. A host
|
|
5
|
+
* switches on the code; the message is for a person.
|
|
6
|
+
*/ var DiagnosticCode = /*#__PURE__*/ function(DiagnosticCode) {
|
|
7
|
+
// Addressing
|
|
8
|
+
DiagnosticCode["UnknownNode"] = "unknownNode";
|
|
9
|
+
DiagnosticCode["DuplicateElementId"] = "duplicateElementId";
|
|
10
|
+
DiagnosticCode["UnknownScope"] = "unknownScope";
|
|
11
|
+
DiagnosticCode["InvalidEdit"] = "invalidEdit";
|
|
12
|
+
// Properties
|
|
13
|
+
DiagnosticCode["UnknownProperty"] = "unknownProperty";
|
|
14
|
+
DiagnosticCode["InvalidValue"] = "invalidValue";
|
|
15
|
+
DiagnosticCode["ReadOnlyProperty"] = "readOnlyProperty";
|
|
16
|
+
DiagnosticCode["NodeNotEditable"] = "nodeNotEditable";
|
|
17
|
+
DiagnosticCode["MissingComponentDescriptor"] = "missingComponentDescriptor";
|
|
18
|
+
// Layout
|
|
19
|
+
DiagnosticCode["NotALayoutNode"] = "notALayoutNode";
|
|
20
|
+
DiagnosticCode["LayoutTypeNotConvertible"] = "layoutTypeNotConvertible";
|
|
21
|
+
DiagnosticCode["LossyConversionNotAccepted"] = "lossyConversionNotAccepted";
|
|
22
|
+
DiagnosticCode["LossyConversion"] = "lossyConversion";
|
|
23
|
+
// Structure
|
|
24
|
+
DiagnosticCode["TargetDoesNotAcceptChildren"] = "targetDoesNotAcceptChildren";
|
|
25
|
+
DiagnosticCode["UnknownSlot"] = "unknownSlot";
|
|
26
|
+
DiagnosticCode["ContainmentCycle"] = "containmentCycle";
|
|
27
|
+
DiagnosticCode["IndexOutOfRange"] = "indexOutOfRange";
|
|
28
|
+
DiagnosticCode["ElementIdInUse"] = "elementIdInUse";
|
|
29
|
+
DiagnosticCode["MaximumChildrenExceeded"] = "maximumChildrenExceeded";
|
|
30
|
+
DiagnosticCode["NodeNotRemovable"] = "nodeNotRemovable";
|
|
31
|
+
// Query binding
|
|
32
|
+
DiagnosticCode["MissingQuery"] = "missingQuery";
|
|
33
|
+
DiagnosticCode["IncompatibleResultShape"] = "incompatibleResultShape";
|
|
34
|
+
DiagnosticCode["MissingRequiredParameter"] = "missingRequiredParameter";
|
|
35
|
+
DiagnosticCode["UnknownParameter"] = "unknownParameter";
|
|
36
|
+
DiagnosticCode["ArgumentTypeMismatch"] = "argumentTypeMismatch";
|
|
37
|
+
DiagnosticCode["UnresolvedArgumentSource"] = "unresolvedArgumentSource";
|
|
38
|
+
DiagnosticCode["UnknownResultField"] = "unknownResultField";
|
|
39
|
+
// Exposure and instance configuration
|
|
40
|
+
DiagnosticCode["ExposureTargetMissing"] = "exposureTargetMissing";
|
|
41
|
+
DiagnosticCode["ExposureWidensOwner"] = "exposureWidensOwner";
|
|
42
|
+
DiagnosticCode["ReExposureBroken"] = "reExposureBroken";
|
|
43
|
+
DiagnosticCode["ContributionNotExposed"] = "contributionNotExposed";
|
|
44
|
+
DiagnosticCode["ContributionTargetMissing"] = "contributionTargetMissing";
|
|
45
|
+
DiagnosticCode["ContributionTypeMismatch"] = "contributionTypeMismatch";
|
|
46
|
+
DiagnosticCode["ContributionOperationNotPermitted"] = "contributionOperationNotPermitted";
|
|
47
|
+
DiagnosticCode["UnknownCollectionField"] = "unknownCollectionField";
|
|
48
|
+
DiagnosticCode["CollectionItemNotFound"] = "collectionItemNotFound";
|
|
49
|
+
DiagnosticCode["DuplicateCollectionItem"] = "duplicateCollectionItem";
|
|
50
|
+
DiagnosticCode["UnknownInstance"] = "unknownInstance";
|
|
51
|
+
// Icons
|
|
52
|
+
DiagnosticCode["MissingIconLibrary"] = "missingIconLibrary";
|
|
53
|
+
DiagnosticCode["MissingIcon"] = "missingIcon";
|
|
54
|
+
DiagnosticCode["MissingIconVariant"] = "missingIconVariant";
|
|
55
|
+
DiagnosticCode["IncompatibleIconLibrary"] = "incompatibleIconLibrary";
|
|
56
|
+
DiagnosticCode["IconCatalogUnavailable"] = "iconCatalogUnavailable";
|
|
57
|
+
DiagnosticCode["IconNotVerified"] = "iconNotVerified";
|
|
58
|
+
return DiagnosticCode;
|
|
59
|
+
}({});
|
|
60
|
+
|
|
61
|
+
export { DiagnosticCode };
|
|
62
|
+
//# sourceMappingURL=DiagnosticCode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiagnosticCode.js","sources":["../../../editing/DiagnosticCode.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * The reasons inspection, editing, binding validation and configuration resolution report a problem. A host\n * switches on the code; the message is for a person.\n */\nexport enum DiagnosticCode {\n // Addressing\n UnknownNode = 'unknownNode',\n DuplicateElementId = 'duplicateElementId',\n UnknownScope = 'unknownScope',\n InvalidEdit = 'invalidEdit',\n\n // Properties\n UnknownProperty = 'unknownProperty',\n InvalidValue = 'invalidValue',\n ReadOnlyProperty = 'readOnlyProperty',\n NodeNotEditable = 'nodeNotEditable',\n MissingComponentDescriptor = 'missingComponentDescriptor',\n\n // Layout\n NotALayoutNode = 'notALayoutNode',\n LayoutTypeNotConvertible = 'layoutTypeNotConvertible',\n LossyConversionNotAccepted = 'lossyConversionNotAccepted',\n LossyConversion = 'lossyConversion',\n\n // Structure\n TargetDoesNotAcceptChildren = 'targetDoesNotAcceptChildren',\n UnknownSlot = 'unknownSlot',\n ContainmentCycle = 'containmentCycle',\n IndexOutOfRange = 'indexOutOfRange',\n ElementIdInUse = 'elementIdInUse',\n MaximumChildrenExceeded = 'maximumChildrenExceeded',\n NodeNotRemovable = 'nodeNotRemovable',\n\n // Query binding\n MissingQuery = 'missingQuery',\n IncompatibleResultShape = 'incompatibleResultShape',\n MissingRequiredParameter = 'missingRequiredParameter',\n UnknownParameter = 'unknownParameter',\n ArgumentTypeMismatch = 'argumentTypeMismatch',\n UnresolvedArgumentSource = 'unresolvedArgumentSource',\n UnknownResultField = 'unknownResultField',\n\n // Exposure and instance configuration\n ExposureTargetMissing = 'exposureTargetMissing',\n ExposureWidensOwner = 'exposureWidensOwner',\n ReExposureBroken = 'reExposureBroken',\n ContributionNotExposed = 'contributionNotExposed',\n ContributionTargetMissing = 'contributionTargetMissing',\n ContributionTypeMismatch = 'contributionTypeMismatch',\n ContributionOperationNotPermitted = 'contributionOperationNotPermitted',\n UnknownCollectionField = 'unknownCollectionField',\n CollectionItemNotFound = 'collectionItemNotFound',\n DuplicateCollectionItem = 'duplicateCollectionItem',\n UnknownInstance = 'unknownInstance',\n\n // Icons\n MissingIconLibrary = 'missingIconLibrary',\n MissingIcon = 'missingIcon',\n MissingIconVariant = 'missingIconVariant',\n IncompatibleIconLibrary = 'incompatibleIconLibrary',\n IconCatalogUnavailable = 'iconCatalogUnavailable',\n IconNotVerified = 'iconNotVerified',\n}\n"],"names":["DiagnosticCode"],"mappings":"AAAA;AACA;AAEA;;;IAIO,IAAKA,cAAAA,iBAAAA,SAAAA,cAAAA,EAAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAAA,IAAAA,OAAAA,cAAAA;AA0DX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiagnosticSeverity.d.ts","sourceRoot":"","sources":["../../../editing/DiagnosticSeverity.ts"],"names":[],"mappings":"AAOA,oBAAY,kBAAkB;IAC1B,KAAK,UAAU;IACf,OAAO,YAAY;CACtB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* How serious a diagnostic is. An edit with an `Error` is refused; a `Warning` is reported and the edit goes
|
|
5
|
+
* ahead.
|
|
6
|
+
*/ var DiagnosticSeverity = /*#__PURE__*/ function(DiagnosticSeverity) {
|
|
7
|
+
DiagnosticSeverity["Error"] = "error";
|
|
8
|
+
DiagnosticSeverity["Warning"] = "warning";
|
|
9
|
+
return DiagnosticSeverity;
|
|
10
|
+
}({});
|
|
11
|
+
|
|
12
|
+
export { DiagnosticSeverity };
|
|
13
|
+
//# sourceMappingURL=DiagnosticSeverity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DiagnosticSeverity.js","sources":["../../../editing/DiagnosticSeverity.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * How serious a diagnostic is. An edit with an `Error` is refused; a `Warning` is reported and the edit goes\n * ahead.\n */\nexport enum DiagnosticSeverity {\n Error = 'error',\n Warning = 'warning',\n}\n"],"names":["DiagnosticSeverity"],"mappings":"AAAA;AACA;AAEA;;;IAIO,IAAKA,kBAAAA,iBAAAA,SAAAA,kBAAAA,EAAAA;;;AAAAA,IAAAA,OAAAA,kBAAAA;AAGX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { SceneEditKind } from './SceneEditKind';
|
|
2
|
+
export interface EditCollectionItemEdit {
|
|
3
|
+
kind: SceneEditKind.EditCollectionItem;
|
|
4
|
+
instance?: string;
|
|
5
|
+
component: string;
|
|
6
|
+
path: string;
|
|
7
|
+
itemId: string;
|
|
8
|
+
field: string;
|
|
9
|
+
value: unknown;
|
|
10
|
+
}
|
|
11
|
+
export declare const EditCollectionItemEditPropertyNames: (keyof EditCollectionItemEdit)[];
|
|
12
|
+
//# sourceMappingURL=EditCollectionItemEdit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditCollectionItemEdit.d.ts","sourceRoot":"","sources":["../../../editing/EditCollectionItemEdit.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAKhD,MAAM,WAAW,sBAAsB;IACnC,IAAI,EAAE,aAAa,CAAC,kBAAkB,CAAC;IACvC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,mCAAmC,EAAE,CAAC,MAAM,sBAAsB,CAAC,EAE/E,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const EditCollectionItemEditPropertyNames = [
|
|
4
|
+
'kind',
|
|
5
|
+
'instance',
|
|
6
|
+
'component',
|
|
7
|
+
'path',
|
|
8
|
+
'itemId',
|
|
9
|
+
'field',
|
|
10
|
+
'value'
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
export { EditCollectionItemEditPropertyNames };
|
|
14
|
+
//# sourceMappingURL=EditCollectionItemEdit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditCollectionItemEdit.js","sources":["../../../editing/EditCollectionItemEdit.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { SceneEditKind } from './SceneEditKind';\n\n/**\n * Changes one field of an item an instance contributed.\n */\nexport interface EditCollectionItemEdit {\n kind: SceneEditKind.EditCollectionItem;\n instance?: string;\n component: string;\n path: string;\n itemId: string;\n\n /** The item field, as the collection's item descriptor states it. */\n field: string;\n value: unknown;\n}\n\nexport const EditCollectionItemEditPropertyNames: (keyof EditCollectionItemEdit)[] = [\n 'kind', 'instance', 'component', 'path', 'itemId', 'field', 'value',\n];\n"],"names":["EditCollectionItemEditPropertyNames"],"mappings":"AAAA;AACA;MAmBaA,mCAAAA,GAAwE;AACjF,IAAA,MAAA;AAAQ,IAAA,UAAA;AAAY,IAAA,WAAA;AAAa,IAAA,MAAA;AAAQ,IAAA,QAAA;AAAU,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditTarget.d.ts","sourceRoot":"","sources":["../../../editing/EditTarget.ts"],"names":[],"mappings":"AAMA,oBAAY,UAAU;IAElB,IAAI,SAAS;IAGb,QAAQ,aAAa;CACxB"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* Where an edit of a property goes.
|
|
5
|
+
*/ var EditTarget = /*#__PURE__*/ function(EditTarget) {
|
|
6
|
+
/** The node itself. */ EditTarget["Node"] = "node";
|
|
7
|
+
/** An instance contribution, because the node is inherited and the property is exposed. */ EditTarget["Instance"] = "instance";
|
|
8
|
+
return EditTarget;
|
|
9
|
+
}({});
|
|
10
|
+
|
|
11
|
+
export { EditTarget };
|
|
12
|
+
//# sourceMappingURL=EditTarget.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditTarget.js","sources":["../../../editing/EditTarget.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * Where an edit of a property goes.\n */\nexport enum EditTarget {\n /** The node itself. */\n Node = 'node',\n\n /** An instance contribution, because the node is inherited and the property is exposed. */\n Instance = 'instance',\n}\n"],"names":["EditTarget"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,UAAAA,iBAAAA,SAAAA,UAAAA,EAAAA;4BACa,UAAA,CAAA,MAAA,CAAA,GAAA,MAAA;gGAGoE,UAAA,CAAA,UAAA,CAAA,GAAA,UAAA;AAJjFA,IAAAA,OAAAA,UAAAA;AAMX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EditingScopeKind } from './EditingScopeKind';
|
|
2
|
+
export interface EditingScope {
|
|
3
|
+
kind: `${EditingScopeKind}`;
|
|
4
|
+
name: string;
|
|
5
|
+
layout?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const EditingScopePropertyNames: (keyof EditingScope)[];
|
|
8
|
+
//# sourceMappingURL=EditingScope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditingScope.d.ts","sourceRoot":"","sources":["../../../editing/EditingScope.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAMtD,MAAM,WAAW,YAAY;IACzB,IAAI,EAAE,GAAG,gBAAgB,EAAE,CAAC;IAG5B,IAAI,EAAE,MAAM,CAAC;IAOb,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,yBAAyB,EAAE,CAAC,MAAM,YAAY,CAAC,EAA+B,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
const EditingScopePropertyNames = [
|
|
4
|
+
'kind',
|
|
5
|
+
'name',
|
|
6
|
+
'layout'
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
export { EditingScopePropertyNames };
|
|
10
|
+
//# sourceMappingURL=EditingScope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditingScope.js","sources":["../../../editing/EditingScope.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\nimport { EditingScopeKind } from './EditingScopeKind';\n\n/**\n * The thing being edited. What it owns is local and editable; what an outer layout or template owns is inherited,\n * and can only be configured through what that owner exposed.\n */\nexport interface EditingScope {\n kind: `${EditingScopeKind}`;\n\n /** The name of the screen, template or layout. */\n name: string;\n\n /**\n * For a template scope: the name of the layout the template ultimately sits in. A template does not say\n * which layout it belongs to, so a document with several layouts needs to be told. A screen scope reads it\n * from the screen itself.\n */\n layout?: string;\n}\n\nexport const EditingScopePropertyNames: (keyof EditingScope)[] = ['kind', 'name', 'layout'];\n"],"names":["EditingScopePropertyNames"],"mappings":"AAAA;AACA;MAsBaA,yBAAAA,GAAoD;AAAC,IAAA,MAAA;AAAQ,IAAA,MAAA;AAAQ,IAAA;;;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditingScopeKind.d.ts","sourceRoot":"","sources":["../../../editing/EditingScopeKind.ts"],"names":[],"mappings":"AAMA,oBAAY,gBAAgB;IACxB,MAAM,WAAW;IACjB,cAAc,mBAAmB;IACjC,cAAc,mBAAmB;IACjC,MAAM,WAAW;CACpB"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* What is being edited. It decides what counts as local and what is inherited.
|
|
5
|
+
*/ var EditingScopeKind = /*#__PURE__*/ function(EditingScopeKind) {
|
|
6
|
+
EditingScopeKind["Screen"] = "screen";
|
|
7
|
+
EditingScopeKind["ScreenTemplate"] = "screenTemplate";
|
|
8
|
+
EditingScopeKind["DialogTemplate"] = "dialogTemplate";
|
|
9
|
+
EditingScopeKind["Layout"] = "layout";
|
|
10
|
+
return EditingScopeKind;
|
|
11
|
+
}({});
|
|
12
|
+
|
|
13
|
+
export { EditingScopeKind };
|
|
14
|
+
//# sourceMappingURL=EditingScopeKind.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EditingScopeKind.js","sources":["../../../editing/EditingScopeKind.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * What is being edited. It decides what counts as local and what is inherited.\n */\nexport enum EditingScopeKind {\n Screen = 'screen',\n ScreenTemplate = 'screenTemplate',\n DialogTemplate = 'dialogTemplate',\n Layout = 'layout',\n}\n"],"names":["EditingScopeKind"],"mappings":"AAAA;AACA;AAEA;;IAGO,IAAKA,gBAAAA,iBAAAA,SAAAA,gBAAAA,EAAAA;;;;;AAAAA,IAAAA,OAAAA,gBAAAA;AAKX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export interface EffectiveCollectionItem {
|
|
2
|
+
id: string;
|
|
3
|
+
values: Record<string, unknown>;
|
|
4
|
+
origin: string;
|
|
5
|
+
fixed: boolean;
|
|
6
|
+
}
|
|
7
|
+
export declare const EffectiveCollectionItemPropertyNames: (keyof EffectiveCollectionItem)[];
|
|
8
|
+
//# sourceMappingURL=EffectiveCollectionItem.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EffectiveCollectionItem.d.ts","sourceRoot":"","sources":["../../../editing/EffectiveCollectionItem.ts"],"names":[],"mappings":"AAMA,MAAM,WAAW,uBAAuB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGhC,MAAM,EAAE,MAAM,CAAC;IAGf,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,eAAO,MAAM,oCAAoC,EAAE,CAAC,MAAM,uBAAuB,CAAC,EAAwC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
2
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
3
|
+
/**
|
|
4
|
+
* One item of a collection after the owner's items and every instance's contributed items are put together.
|
|
5
|
+
*/ const EffectiveCollectionItemPropertyNames = [
|
|
6
|
+
'id',
|
|
7
|
+
'values',
|
|
8
|
+
'origin',
|
|
9
|
+
'fixed'
|
|
10
|
+
];
|
|
11
|
+
|
|
12
|
+
export { EffectiveCollectionItemPropertyNames };
|
|
13
|
+
//# sourceMappingURL=EffectiveCollectionItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EffectiveCollectionItem.js","sources":["../../../editing/EffectiveCollectionItem.ts"],"sourcesContent":["// Copyright (c) Cratis. All rights reserved.\n// Licensed under the MIT license. See LICENSE file in the project root for full license information.\n\n/**\n * One item of a collection after the owner's items and every instance's contributed items are put together.\n */\nexport interface EffectiveCollectionItem {\n id: string;\n values: Record<string, unknown>;\n\n /** `owner` for an item the template author wrote; otherwise the id of the instance that contributed it. */\n origin: string;\n\n /** An owner's item. Consumers cannot change or remove it. */\n fixed: boolean;\n}\n\nexport const EffectiveCollectionItemPropertyNames: (keyof EffectiveCollectionItem)[] = ['id', 'values', 'origin', 'fixed'];\n"],"names":["EffectiveCollectionItemPropertyNames"],"mappings":"AAAA;AACA;AAEA;;UAcaA,oCAAAA,GAA0E;AAAC,IAAA,IAAA;AAAM,IAAA,QAAA;AAAU,IAAA,QAAA;AAAU,IAAA;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { EffectivePropertyValue } from './EffectivePropertyValue';
|
|
2
|
+
export interface EffectiveComponentConfiguration {
|
|
3
|
+
component: string;
|
|
4
|
+
owner: string;
|
|
5
|
+
properties: Record<string, unknown>;
|
|
6
|
+
values: EffectivePropertyValue[];
|
|
7
|
+
}
|
|
8
|
+
export declare const EffectiveComponentConfigurationPropertyNames: (keyof EffectiveComponentConfiguration)[];
|
|
9
|
+
//# sourceMappingURL=EffectiveComponentConfiguration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EffectiveComponentConfiguration.d.ts","sourceRoot":"","sources":["../../../editing/EffectiveComponentConfiguration.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AAMlE,MAAM,WAAW,+BAA+B;IAE5C,SAAS,EAAE,MAAM,CAAC;IAGlB,KAAK,EAAE,MAAM,CAAC;IAGd,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAGpC,MAAM,EAAE,sBAAsB,EAAE,CAAC;CACpC;AAED,eAAO,MAAM,4CAA4C,EAAE,CAAC,MAAM,+BAA+B,CAAC,EAEjG,CAAC"}
|