@cratis/scene.model 4.2.1 → 4.3.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/IconReference.ts +22 -0
- package/common/index.ts +2 -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/common/IconReference.js +18 -0
- package/dist/cjs/common/IconReference.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 +57 -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/index.js +118 -0
- package/dist/cjs/index.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/IconReference.d.ts +7 -0
- package/dist/esm/common/IconReference.d.ts.map +1 -0
- package/dist/esm/common/IconReference.js +16 -0
- package/dist/esm/common/IconReference.js.map +1 -0
- package/dist/esm/common/index.d.ts +2 -0
- package/dist/esm/common/index.d.ts.map +1 -1
- package/dist/esm/common/index.js +2 -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 +41 -0
- package/dist/esm/editing/DiagnosticCode.d.ts.map +1 -0
- package/dist/esm/editing/DiagnosticCode.js +55 -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/index.d.ts +4 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +59 -0
- package/dist/esm/index.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 +58 -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/index.ts +4 -0
- package/package.json +1 -1
- 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,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
|
+
|
|
4
|
+
import { BindingExpression } from './BindingExpression';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Where activating something takes the user: a screen, named rather than addressed. Turning the name into a
|
|
8
|
+
* URL, query string or native deep link is a renderer's job, the same as for a `NavigateAction`.
|
|
9
|
+
*/
|
|
10
|
+
export interface DestinationReference {
|
|
11
|
+
/** The name of the screen to go to. */
|
|
12
|
+
screen: string;
|
|
13
|
+
|
|
14
|
+
/** The values for the screen's route parameters, keyed by parameter name. */
|
|
15
|
+
routeParameterBindings?: Record<string, BindingExpression>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export const DestinationReferencePropertyNames: (keyof DestinationReference)[] = ['screen', 'routeParameterBindings'];
|
|
@@ -0,0 +1,22 @@
|
|
|
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
|
+
/**
|
|
5
|
+
* A qualified reference to one icon: the library it comes from, its key within that library and an optional
|
|
6
|
+
* style variant. This is the renderer-neutral, persisted form of an icon choice.
|
|
7
|
+
*
|
|
8
|
+
* Identity is all three fields. A label, a display name, a CSS class, an SVG or a position in a catalog is
|
|
9
|
+
* never identity - none of them survive a library upgrade, and a persisted choice has to.
|
|
10
|
+
*/
|
|
11
|
+
export interface IconReference {
|
|
12
|
+
/** The stable identity of the icon library package the icon belongs to. */
|
|
13
|
+
library: string;
|
|
14
|
+
|
|
15
|
+
/** The stable key of the icon within `library`. */
|
|
16
|
+
key: string;
|
|
17
|
+
|
|
18
|
+
/** The style variant (outlined, filled, ...), when the library has them. */
|
|
19
|
+
variant?: string;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export const IconReferencePropertyNames: (keyof IconReference)[] = ['library', 'key', 'variant'];
|
package/common/index.ts
CHANGED
|
@@ -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
|
+
import type { PropertyDescriptor } from './PropertyDescriptor';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Describes the items of a `Collection` property.
|
|
8
|
+
*
|
|
9
|
+
* An item is a record with a stable `id` (assigned by whoever creates it, never an array index) plus the fields
|
|
10
|
+
* `properties` describes. Field paths are relative to the item and are single names.
|
|
11
|
+
*/
|
|
12
|
+
export interface CollectionItemDescriptor {
|
|
13
|
+
/** What one item is called, for a host's "add ..." affordance. */
|
|
14
|
+
label?: string;
|
|
15
|
+
|
|
16
|
+
/** The fields of one item. */
|
|
17
|
+
properties: PropertyDescriptor[];
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export const CollectionItemDescriptorPropertyNames: (keyof CollectionItemDescriptor)[] = ['label', 'properties'];
|
|
@@ -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
|
+
/**
|
|
5
|
+
* One thing a consumer may do to a collection a template author has exposed. Each is granted on its own: allowing
|
|
6
|
+
* a consumer to add an item says nothing about removing or reordering one.
|
|
7
|
+
*/
|
|
8
|
+
export enum CollectionOperation {
|
|
9
|
+
/** Add an item. */
|
|
10
|
+
Add = 'add',
|
|
11
|
+
|
|
12
|
+
/** Remove an item the consumer added. */
|
|
13
|
+
Remove = 'remove',
|
|
14
|
+
|
|
15
|
+
/** Change where an item the consumer added sits. */
|
|
16
|
+
Reorder = 'reorder',
|
|
17
|
+
|
|
18
|
+
/** Change the field values of an item the consumer added. */
|
|
19
|
+
EditFields = 'edit-fields',
|
|
20
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
import { PropertyDescriptor } from './PropertyDescriptor';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* What can be edited on one component a package provides.
|
|
8
|
+
*
|
|
9
|
+
* Packages contribute these alongside the components themselves (a bundle's `descriptors`), through the same
|
|
10
|
+
* package mechanism that already carries components, layouts and themes - there is no second registry to keep in
|
|
11
|
+
* step.
|
|
12
|
+
*/
|
|
13
|
+
export interface ComponentDescriptor {
|
|
14
|
+
/**
|
|
15
|
+
* The component this describes, as the package names it: `<package>:<bare name>`, the same key a bundle
|
|
16
|
+
* registers the component under (for example `Cratis.Components:dataTable`).
|
|
17
|
+
*/
|
|
18
|
+
component: string;
|
|
19
|
+
|
|
20
|
+
/** A human-readable name for a palette or an inspector title. */
|
|
21
|
+
displayName?: string;
|
|
22
|
+
|
|
23
|
+
description?: string;
|
|
24
|
+
|
|
25
|
+
/** Names a specialised editor for the component as a whole, when its properties are not edited one by one. */
|
|
26
|
+
editorKind?: string;
|
|
27
|
+
|
|
28
|
+
properties: PropertyDescriptor[];
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export const ComponentDescriptorPropertyNames: (keyof ComponentDescriptor)[] = [
|
|
32
|
+
'component', 'displayName', 'description', 'editorKind', 'properties',
|
|
33
|
+
];
|
|
@@ -0,0 +1,32 @@
|
|
|
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
|
+
import { LayoutChildPlacement } from './LayoutChildPlacement';
|
|
5
|
+
import { LayoutType } from './LayoutType';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* What a layout type can do - the row of the capability matrix an editor consults to decide what to offer.
|
|
9
|
+
*/
|
|
10
|
+
export interface LayoutCapabilities {
|
|
11
|
+
/** Whether children can be inserted into it. */
|
|
12
|
+
acceptsChildren: boolean;
|
|
13
|
+
|
|
14
|
+
/** The most children it can hold, when it is limited. */
|
|
15
|
+
maximumChildren?: number;
|
|
16
|
+
|
|
17
|
+
/** Whether position comes from order or from per-child placement. */
|
|
18
|
+
childPlacement: LayoutChildPlacement;
|
|
19
|
+
|
|
20
|
+
/** Whether children can span several columns or rows. */
|
|
21
|
+
supportsGridSpan: boolean;
|
|
22
|
+
|
|
23
|
+
/** Whether it can vary by width and height size class. */
|
|
24
|
+
supportsSizeClassVariants: boolean;
|
|
25
|
+
|
|
26
|
+
/** The layout types it can be changed into, some of them lossily. */
|
|
27
|
+
convertibleTo: LayoutType[];
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export const LayoutCapabilitiesPropertyNames: (keyof LayoutCapabilities)[] = [
|
|
31
|
+
'acceptsChildren', 'maximumChildren', 'childPlacement', 'supportsGridSpan', 'supportsSizeClassVariants', 'convertibleTo',
|
|
32
|
+
];
|
|
@@ -0,0 +1,16 @@
|
|
|
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
|
+
/**
|
|
5
|
+
* How a layout type decides where its children go.
|
|
6
|
+
*/
|
|
7
|
+
export enum LayoutChildPlacement {
|
|
8
|
+
/** It holds no children. */
|
|
9
|
+
None = 'none',
|
|
10
|
+
|
|
11
|
+
/** By order: a child's position is its place in the sequence, and the layout reflows. */
|
|
12
|
+
Ordered = 'ordered',
|
|
13
|
+
|
|
14
|
+
/** By placement: each child carries its own position and size. */
|
|
15
|
+
Positioned = 'positioned',
|
|
16
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
/**
|
|
5
|
+
* Every layout type the model can express, as an editor addresses it. A flow container's kind and a panel's
|
|
6
|
+
* concrete type are both layout types, so "change this row to a column" and "change this stack to a wrap panel"
|
|
7
|
+
* are the same operation.
|
|
8
|
+
*/
|
|
9
|
+
export enum LayoutType {
|
|
10
|
+
FlowRow = 'flowRow',
|
|
11
|
+
FlowColumn = 'flowColumn',
|
|
12
|
+
FlowGrid = 'flowGrid',
|
|
13
|
+
|
|
14
|
+
/** A flow leaf: positions one element within a flow tree. */
|
|
15
|
+
FlowLeaf = 'flowLeaf',
|
|
16
|
+
|
|
17
|
+
/** A flow leaf that positions one of a layout's own slots. */
|
|
18
|
+
FlowSlotLeaf = 'flowSlotLeaf',
|
|
19
|
+
|
|
20
|
+
/** A freeform arrangement: one placement variant per size class. */
|
|
21
|
+
Freeform = 'freeform',
|
|
22
|
+
|
|
23
|
+
StackPanel = 'stackPanel',
|
|
24
|
+
WrapPanel = 'wrapPanel',
|
|
25
|
+
DockPanel = 'dockPanel',
|
|
26
|
+
GridPanel = 'gridPanel',
|
|
27
|
+
Canvas = 'canvas',
|
|
28
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
import { LayoutCapabilities } from './LayoutCapabilities';
|
|
5
|
+
import { LayoutType } from './LayoutType';
|
|
6
|
+
import { PropertyDescriptor } from './PropertyDescriptor';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* What can be edited on one layout type, and what the type can do.
|
|
10
|
+
*/
|
|
11
|
+
export interface LayoutTypeDescriptor {
|
|
12
|
+
/** The layout type's identity. */
|
|
13
|
+
type: LayoutType;
|
|
14
|
+
|
|
15
|
+
label: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
capabilities: LayoutCapabilities;
|
|
18
|
+
|
|
19
|
+
/** The type's own editable properties; `path` is a property name on the node. */
|
|
20
|
+
properties: PropertyDescriptor[];
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export const LayoutTypeDescriptorPropertyNames: (keyof LayoutTypeDescriptor)[] = [
|
|
24
|
+
'type', 'label', 'description', 'capabilities', 'properties',
|
|
25
|
+
];
|
|
@@ -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
|
+
/**
|
|
5
|
+
* One allowed value of an `Enum` property.
|
|
6
|
+
*/
|
|
7
|
+
export interface PropertyChoice {
|
|
8
|
+
value: string | number;
|
|
9
|
+
label: string;
|
|
10
|
+
description?: string;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export const PropertyChoicePropertyNames: (keyof PropertyChoice)[] = ['value', 'label', 'description'];
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
import { QueryResultShape } from '../queries';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* The limits a property's value has to stay within. Every limit is optional; an absent one means no limit.
|
|
8
|
+
*/
|
|
9
|
+
export interface PropertyConstraints {
|
|
10
|
+
/** The property must have a value. */
|
|
11
|
+
required?: boolean;
|
|
12
|
+
|
|
13
|
+
/** The smallest allowed number. */
|
|
14
|
+
minimum?: number;
|
|
15
|
+
|
|
16
|
+
/** The largest allowed number. */
|
|
17
|
+
maximum?: number;
|
|
18
|
+
|
|
19
|
+
/** The number must be a whole number. */
|
|
20
|
+
integer?: boolean;
|
|
21
|
+
|
|
22
|
+
minimumLength?: number;
|
|
23
|
+
maximumLength?: number;
|
|
24
|
+
|
|
25
|
+
/** A regular expression a string must match in full. */
|
|
26
|
+
pattern?: string;
|
|
27
|
+
|
|
28
|
+
/** The fewest items a collection may hold. */
|
|
29
|
+
minimumItems?: number;
|
|
30
|
+
|
|
31
|
+
/** The most items a collection may hold. */
|
|
32
|
+
maximumItems?: number;
|
|
33
|
+
|
|
34
|
+
/** For a `QueryReference`: the result shapes the component can bind to. Absent means any. */
|
|
35
|
+
resultShapes?: `${QueryResultShape}`[];
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export const PropertyConstraintsPropertyNames: (keyof PropertyConstraints)[] = [
|
|
39
|
+
'required', 'minimum', 'maximum', 'integer', 'minimumLength', 'maximumLength', 'pattern',
|
|
40
|
+
'minimumItems', 'maximumItems', 'resultShapes',
|
|
41
|
+
];
|
|
@@ -0,0 +1,55 @@
|
|
|
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
|
+
import { CollectionItemDescriptor } from './CollectionItemDescriptor';
|
|
5
|
+
import { PropertyChoice } from './PropertyChoice';
|
|
6
|
+
import { PropertyConstraints } from './PropertyConstraints';
|
|
7
|
+
import { PropertyValueType } from './PropertyValueType';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Describes one editable property of a node: where it lives, what it is called, what it may hold and how a host
|
|
11
|
+
* should edit it. A descriptor is plain data, so packages ship them and Studio reads them without loading a
|
|
12
|
+
* component.
|
|
13
|
+
*/
|
|
14
|
+
export interface PropertyDescriptor {
|
|
15
|
+
/**
|
|
16
|
+
* Where the value lives. For an `ExternalComponent` it is a key (or dotted key path) in the element's
|
|
17
|
+
* `properties` bag; for a model-native node such as a flow container it is the node's own property name.
|
|
18
|
+
*/
|
|
19
|
+
path: string;
|
|
20
|
+
|
|
21
|
+
/** The label an editor shows. */
|
|
22
|
+
label: string;
|
|
23
|
+
|
|
24
|
+
/** The editor section the property belongs to. */
|
|
25
|
+
group: string;
|
|
26
|
+
|
|
27
|
+
valueType: PropertyValueType;
|
|
28
|
+
|
|
29
|
+
/** The allowed values of an `Enum` property. */
|
|
30
|
+
choices?: PropertyChoice[];
|
|
31
|
+
|
|
32
|
+
/** The value in effect when none is set. */
|
|
33
|
+
default?: unknown;
|
|
34
|
+
|
|
35
|
+
constraints?: PropertyConstraints;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Names a specialised editor. A host maps the name to its own editor - an icon picker, a query binder - and
|
|
39
|
+
* falls back to the default editor for `valueType` when it does not know the name.
|
|
40
|
+
*/
|
|
41
|
+
editorKind?: string;
|
|
42
|
+
|
|
43
|
+
/** A sentence of help for the editor. */
|
|
44
|
+
description?: string;
|
|
45
|
+
|
|
46
|
+
/** Describes the items of a `Collection` property. Required when `valueType` is `Collection`. */
|
|
47
|
+
item?: CollectionItemDescriptor;
|
|
48
|
+
|
|
49
|
+
/** The value is shown but never edited. */
|
|
50
|
+
readOnly?: boolean;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export const PropertyDescriptorPropertyNames: (keyof PropertyDescriptor)[] = [
|
|
54
|
+
'path', 'label', 'group', 'valueType', 'choices', 'default', 'constraints', 'editorKind', 'description', 'item', 'readOnly',
|
|
55
|
+
];
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
/**
|
|
5
|
+
* The kind of value a property holds. It decides what a value must look like to be accepted, and gives a host a
|
|
6
|
+
* default editor to show - unless the descriptor names a specialised `editorKind`.
|
|
7
|
+
*/
|
|
8
|
+
export enum PropertyValueType {
|
|
9
|
+
String = 'string',
|
|
10
|
+
Number = 'number',
|
|
11
|
+
Boolean = 'boolean',
|
|
12
|
+
|
|
13
|
+
/** One of the descriptor's `choices`. */
|
|
14
|
+
Enum = 'enum',
|
|
15
|
+
|
|
16
|
+
/** An {@link IconReference}. The icon catalog is owned by the icon libraries, not by the model. */
|
|
17
|
+
Icon = 'icon',
|
|
18
|
+
|
|
19
|
+
/** A {@link DestinationReference}. */
|
|
20
|
+
Destination = 'destination',
|
|
21
|
+
|
|
22
|
+
/** A {@link QueryBinding}. */
|
|
23
|
+
QueryReference = 'queryReference',
|
|
24
|
+
|
|
25
|
+
/** An ordered list of items, each described by the descriptor's `item`. */
|
|
26
|
+
Collection = 'collection',
|
|
27
|
+
|
|
28
|
+
/** A structured value the descriptor's own `editorKind` knows how to edit. */
|
|
29
|
+
Object = 'object',
|
|
30
|
+
}
|
|
@@ -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
|
+
export * from './PropertyValueType';
|
|
5
|
+
export * from './PropertyChoice';
|
|
6
|
+
export * from './PropertyConstraints';
|
|
7
|
+
export * from './CollectionItemDescriptor';
|
|
8
|
+
export * from './PropertyDescriptor';
|
|
9
|
+
export * from './ComponentDescriptor';
|
|
10
|
+
export * from './CollectionOperation';
|
|
11
|
+
export * from './LayoutType';
|
|
12
|
+
export * from './LayoutChildPlacement';
|
|
13
|
+
export * from './LayoutCapabilities';
|
|
14
|
+
export * from './LayoutTypeDescriptor';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const DestinationReferencePropertyNames = [
|
|
6
|
+
'screen',
|
|
7
|
+
'routeParameterBindings'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.DestinationReferencePropertyNames = DestinationReferencePropertyNames;
|
|
11
|
+
//# sourceMappingURL=DestinationReference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DestinationReference.js","sources":["../../../common/DestinationReference.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 { BindingExpression } from './BindingExpression';\n\n/**\n * Where activating something takes the user: a screen, named rather than addressed. Turning the name into a\n * URL, query string or native deep link is a renderer's job, the same as for a `NavigateAction`.\n */\nexport interface DestinationReference {\n /** The name of the screen to go to. */\n screen: string;\n\n /** The values for the screen's route parameters, keyed by parameter name. */\n routeParameterBindings?: Record<string, BindingExpression>;\n}\n\nexport const DestinationReferencePropertyNames: (keyof DestinationReference)[] = ['screen', 'routeParameterBindings'];\n"],"names":["DestinationReferencePropertyNames"],"mappings":";;AAAA;AACA;MAgBaA,iCAAAA,GAAoE;AAAC,IAAA,QAAA;AAAU,IAAA;;;"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* A qualified reference to one icon: the library it comes from, its key within that library and an optional
|
|
7
|
+
* style variant. This is the renderer-neutral, persisted form of an icon choice.
|
|
8
|
+
*
|
|
9
|
+
* Identity is all three fields. A label, a display name, a CSS class, an SVG or a position in a catalog is
|
|
10
|
+
* never identity - none of them survive a library upgrade, and a persisted choice has to.
|
|
11
|
+
*/ const IconReferencePropertyNames = [
|
|
12
|
+
'library',
|
|
13
|
+
'key',
|
|
14
|
+
'variant'
|
|
15
|
+
];
|
|
16
|
+
|
|
17
|
+
exports.IconReferencePropertyNames = IconReferencePropertyNames;
|
|
18
|
+
//# sourceMappingURL=IconReference.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"IconReference.js","sources":["../../../common/IconReference.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 * A qualified reference to one icon: the library it comes from, its key within that library and an optional\n * style variant. This is the renderer-neutral, persisted form of an icon choice.\n *\n * Identity is all three fields. A label, a display name, a CSS class, an SVG or a position in a catalog is\n * never identity - none of them survive a library upgrade, and a persisted choice has to.\n */\nexport interface IconReference {\n /** The stable identity of the icon library package the icon belongs to. */\n library: string;\n\n /** The stable key of the icon within `library`. */\n key: string;\n\n /** The style variant (outlined, filled, ...), when the library has them. */\n variant?: string;\n}\n\nexport const IconReferencePropertyNames: (keyof IconReference)[] = ['library', 'key', 'variant'];\n"],"names":["IconReferencePropertyNames"],"mappings":";;AAAA;AACA;AAEA;;;;;;UAkBaA,0BAAAA,GAAsD;AAAC,IAAA,SAAA;AAAW,IAAA,KAAA;AAAO,IAAA;;;"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const CollectionItemDescriptorPropertyNames = [
|
|
6
|
+
'label',
|
|
7
|
+
'properties'
|
|
8
|
+
];
|
|
9
|
+
|
|
10
|
+
exports.CollectionItemDescriptorPropertyNames = CollectionItemDescriptorPropertyNames;
|
|
11
|
+
//# sourceMappingURL=CollectionItemDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionItemDescriptor.js","sources":["../../../descriptors/CollectionItemDescriptor.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 type { PropertyDescriptor } from './PropertyDescriptor';\n\n/**\n * Describes the items of a `Collection` property.\n *\n * An item is a record with a stable `id` (assigned by whoever creates it, never an array index) plus the fields\n * `properties` describes. Field paths are relative to the item and are single names.\n */\nexport interface CollectionItemDescriptor {\n /** What one item is called, for a host's \"add ...\" affordance. */\n label?: string;\n\n /** The fields of one item. */\n properties: PropertyDescriptor[];\n}\n\nexport const CollectionItemDescriptorPropertyNames: (keyof CollectionItemDescriptor)[] = ['label', 'properties'];\n"],"names":["CollectionItemDescriptorPropertyNames"],"mappings":";;AAAA;AACA;MAkBaA,qCAAAA,GAA4E;AAAC,IAAA,OAAA;AAAS,IAAA;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* One thing a consumer may do to a collection a template author has exposed. Each is granted on its own: allowing
|
|
7
|
+
* a consumer to add an item says nothing about removing or reordering one.
|
|
8
|
+
*/ var CollectionOperation = /*#__PURE__*/ function(CollectionOperation) {
|
|
9
|
+
/** Add an item. */ CollectionOperation["Add"] = "add";
|
|
10
|
+
/** Remove an item the consumer added. */ CollectionOperation["Remove"] = "remove";
|
|
11
|
+
/** Change where an item the consumer added sits. */ CollectionOperation["Reorder"] = "reorder";
|
|
12
|
+
/** Change the field values of an item the consumer added. */ CollectionOperation["EditFields"] = "edit-fields";
|
|
13
|
+
return CollectionOperation;
|
|
14
|
+
}({});
|
|
15
|
+
|
|
16
|
+
exports.CollectionOperation = CollectionOperation;
|
|
17
|
+
//# sourceMappingURL=CollectionOperation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CollectionOperation.js","sources":["../../../descriptors/CollectionOperation.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 thing a consumer may do to a collection a template author has exposed. Each is granted on its own: allowing\n * a consumer to add an item says nothing about removing or reordering one.\n */\nexport enum CollectionOperation {\n /** Add an item. */\n Add = 'add',\n\n /** Remove an item the consumer added. */\n Remove = 'remove',\n\n /** Change where an item the consumer added sits. */\n Reorder = 'reorder',\n\n /** Change the field values of an item the consumer added. */\n EditFields = 'edit-fields',\n}\n"],"names":["CollectionOperation"],"mappings":";;AAAA;AACA;AAEA;;;IAIO,IAAKA,mBAAAA,iBAAAA,SAAAA,mBAAAA,EAAAA;wBACS,mBAAA,CAAA,KAAA,CAAA,GAAA,KAAA;8CAGsB,mBAAA,CAAA,QAAA,CAAA,GAAA,QAAA;yDAGW,mBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;kEAGS,mBAAA,CAAA,YAAA,CAAA,GAAA,aAAA;AAVnDA,IAAAA,OAAAA,mBAAAA;AAYX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const ComponentDescriptorPropertyNames = [
|
|
6
|
+
'component',
|
|
7
|
+
'displayName',
|
|
8
|
+
'description',
|
|
9
|
+
'editorKind',
|
|
10
|
+
'properties'
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
exports.ComponentDescriptorPropertyNames = ComponentDescriptorPropertyNames;
|
|
14
|
+
//# sourceMappingURL=ComponentDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ComponentDescriptor.js","sources":["../../../descriptors/ComponentDescriptor.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 { PropertyDescriptor } from './PropertyDescriptor';\n\n/**\n * What can be edited on one component a package provides.\n *\n * Packages contribute these alongside the components themselves (a bundle's `descriptors`), through the same\n * package mechanism that already carries components, layouts and themes - there is no second registry to keep in\n * step.\n */\nexport interface ComponentDescriptor {\n /**\n * The component this describes, as the package names it: `<package>:<bare name>`, the same key a bundle\n * registers the component under (for example `Cratis.Components:dataTable`).\n */\n component: string;\n\n /** A human-readable name for a palette or an inspector title. */\n displayName?: string;\n\n description?: string;\n\n /** Names a specialised editor for the component as a whole, when its properties are not edited one by one. */\n editorKind?: string;\n\n properties: PropertyDescriptor[];\n}\n\nexport const ComponentDescriptorPropertyNames: (keyof ComponentDescriptor)[] = [\n 'component', 'displayName', 'description', 'editorKind', 'properties',\n];\n"],"names":["ComponentDescriptorPropertyNames"],"mappings":";;AAAA;AACA;MA6BaA,gCAAAA,GAAkE;AAC3E,IAAA,WAAA;AAAa,IAAA,aAAA;AAAe,IAAA,aAAA;AAAe,IAAA,YAAA;AAAc,IAAA;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const LayoutCapabilitiesPropertyNames = [
|
|
6
|
+
'acceptsChildren',
|
|
7
|
+
'maximumChildren',
|
|
8
|
+
'childPlacement',
|
|
9
|
+
'supportsGridSpan',
|
|
10
|
+
'supportsSizeClassVariants',
|
|
11
|
+
'convertibleTo'
|
|
12
|
+
];
|
|
13
|
+
|
|
14
|
+
exports.LayoutCapabilitiesPropertyNames = LayoutCapabilitiesPropertyNames;
|
|
15
|
+
//# sourceMappingURL=LayoutCapabilities.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutCapabilities.js","sources":["../../../descriptors/LayoutCapabilities.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 { LayoutChildPlacement } from './LayoutChildPlacement';\nimport { LayoutType } from './LayoutType';\n\n/**\n * What a layout type can do - the row of the capability matrix an editor consults to decide what to offer.\n */\nexport interface LayoutCapabilities {\n /** Whether children can be inserted into it. */\n acceptsChildren: boolean;\n\n /** The most children it can hold, when it is limited. */\n maximumChildren?: number;\n\n /** Whether position comes from order or from per-child placement. */\n childPlacement: LayoutChildPlacement;\n\n /** Whether children can span several columns or rows. */\n supportsGridSpan: boolean;\n\n /** Whether it can vary by width and height size class. */\n supportsSizeClassVariants: boolean;\n\n /** The layout types it can be changed into, some of them lossily. */\n convertibleTo: LayoutType[];\n}\n\nexport const LayoutCapabilitiesPropertyNames: (keyof LayoutCapabilities)[] = [\n 'acceptsChildren', 'maximumChildren', 'childPlacement', 'supportsGridSpan', 'supportsSizeClassVariants', 'convertibleTo',\n];\n"],"names":["LayoutCapabilitiesPropertyNames"],"mappings":";;AAAA;AACA;MA4BaA,+BAAAA,GAAgE;AACzE,IAAA,iBAAA;AAAmB,IAAA,iBAAA;AAAmB,IAAA,gBAAA;AAAkB,IAAA,kBAAA;AAAoB,IAAA,2BAAA;AAA6B,IAAA;;;"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* How a layout type decides where its children go.
|
|
7
|
+
*/ var LayoutChildPlacement = /*#__PURE__*/ function(LayoutChildPlacement) {
|
|
8
|
+
/** It holds no children. */ LayoutChildPlacement["None"] = "none";
|
|
9
|
+
/** By order: a child's position is its place in the sequence, and the layout reflows. */ LayoutChildPlacement["Ordered"] = "ordered";
|
|
10
|
+
/** By placement: each child carries its own position and size. */ LayoutChildPlacement["Positioned"] = "positioned";
|
|
11
|
+
return LayoutChildPlacement;
|
|
12
|
+
}({});
|
|
13
|
+
|
|
14
|
+
exports.LayoutChildPlacement = LayoutChildPlacement;
|
|
15
|
+
//# sourceMappingURL=LayoutChildPlacement.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutChildPlacement.js","sources":["../../../descriptors/LayoutChildPlacement.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 a layout type decides where its children go.\n */\nexport enum LayoutChildPlacement {\n /** It holds no children. */\n None = 'none',\n\n /** By order: a child's position is its place in the sequence, and the layout reflows. */\n Ordered = 'ordered',\n\n /** By placement: each child carries its own position and size. */\n Positioned = 'positioned',\n}\n"],"names":["LayoutChildPlacement"],"mappings":";;AAAA;AACA;AAEA;;IAGO,IAAKA,oBAAAA,iBAAAA,SAAAA,oBAAAA,EAAAA;iCACkB,oBAAA,CAAA,MAAA,CAAA,GAAA,MAAA;8FAG6D,oBAAA,CAAA,SAAA,CAAA,GAAA,SAAA;uEAGvB,oBAAA,CAAA,YAAA,CAAA,GAAA,YAAA;AAPxDA,IAAAA,OAAAA,oBAAAA;AASX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* Every layout type the model can express, as an editor addresses it. A flow container's kind and a panel's
|
|
7
|
+
* concrete type are both layout types, so "change this row to a column" and "change this stack to a wrap panel"
|
|
8
|
+
* are the same operation.
|
|
9
|
+
*/ var LayoutType = /*#__PURE__*/ function(LayoutType) {
|
|
10
|
+
LayoutType["FlowRow"] = "flowRow";
|
|
11
|
+
LayoutType["FlowColumn"] = "flowColumn";
|
|
12
|
+
LayoutType["FlowGrid"] = "flowGrid";
|
|
13
|
+
/** A flow leaf: positions one element within a flow tree. */ LayoutType["FlowLeaf"] = "flowLeaf";
|
|
14
|
+
/** A flow leaf that positions one of a layout's own slots. */ LayoutType["FlowSlotLeaf"] = "flowSlotLeaf";
|
|
15
|
+
/** A freeform arrangement: one placement variant per size class. */ LayoutType["Freeform"] = "freeform";
|
|
16
|
+
LayoutType["StackPanel"] = "stackPanel";
|
|
17
|
+
LayoutType["WrapPanel"] = "wrapPanel";
|
|
18
|
+
LayoutType["DockPanel"] = "dockPanel";
|
|
19
|
+
LayoutType["GridPanel"] = "gridPanel";
|
|
20
|
+
LayoutType["Canvas"] = "canvas";
|
|
21
|
+
return LayoutType;
|
|
22
|
+
}({});
|
|
23
|
+
|
|
24
|
+
exports.LayoutType = LayoutType;
|
|
25
|
+
//# sourceMappingURL=LayoutType.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutType.js","sources":["../../../descriptors/LayoutType.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 * Every layout type the model can express, as an editor addresses it. A flow container's kind and a panel's\n * concrete type are both layout types, so \"change this row to a column\" and \"change this stack to a wrap panel\"\n * are the same operation.\n */\nexport enum LayoutType {\n FlowRow = 'flowRow',\n FlowColumn = 'flowColumn',\n FlowGrid = 'flowGrid',\n\n /** A flow leaf: positions one element within a flow tree. */\n FlowLeaf = 'flowLeaf',\n\n /** A flow leaf that positions one of a layout's own slots. */\n FlowSlotLeaf = 'flowSlotLeaf',\n\n /** A freeform arrangement: one placement variant per size class. */\n Freeform = 'freeform',\n\n StackPanel = 'stackPanel',\n WrapPanel = 'wrapPanel',\n DockPanel = 'dockPanel',\n GridPanel = 'gridPanel',\n Canvas = 'canvas',\n}\n"],"names":["LayoutType"],"mappings":";;AAAA;AACA;AAEA;;;;IAKO,IAAKA,UAAAA,iBAAAA,SAAAA,UAAAA,EAAAA;;;;kEAKmD,UAAA,CAAA,UAAA,CAAA,GAAA,UAAA;mEAGC,UAAA,CAAA,cAAA,CAAA,GAAA,cAAA;yEAGM,UAAA,CAAA,UAAA,CAAA,GAAA,UAAA;;;;;;AAX1DA,IAAAA,OAAAA,UAAAA;AAmBX,CAAA,CAAA,EAAA;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const LayoutTypeDescriptorPropertyNames = [
|
|
6
|
+
'type',
|
|
7
|
+
'label',
|
|
8
|
+
'description',
|
|
9
|
+
'capabilities',
|
|
10
|
+
'properties'
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
exports.LayoutTypeDescriptorPropertyNames = LayoutTypeDescriptorPropertyNames;
|
|
14
|
+
//# sourceMappingURL=LayoutTypeDescriptor.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LayoutTypeDescriptor.js","sources":["../../../descriptors/LayoutTypeDescriptor.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 { LayoutCapabilities } from './LayoutCapabilities';\nimport { LayoutType } from './LayoutType';\nimport { PropertyDescriptor } from './PropertyDescriptor';\n\n/**\n * What can be edited on one layout type, and what the type can do.\n */\nexport interface LayoutTypeDescriptor {\n /** The layout type's identity. */\n type: LayoutType;\n\n label: string;\n description?: string;\n capabilities: LayoutCapabilities;\n\n /** The type's own editable properties; `path` is a property name on the node. */\n properties: PropertyDescriptor[];\n}\n\nexport const LayoutTypeDescriptorPropertyNames: (keyof LayoutTypeDescriptor)[] = [\n 'type', 'label', 'description', 'capabilities', 'properties',\n];\n"],"names":["LayoutTypeDescriptorPropertyNames"],"mappings":";;AAAA;AACA;MAqBaA,iCAAAA,GAAoE;AAC7E,IAAA,MAAA;AAAQ,IAAA,OAAA;AAAS,IAAA,aAAA;AAAe,IAAA,cAAA;AAAgB,IAAA;;;"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
/**
|
|
6
|
+
* One allowed value of an `Enum` property.
|
|
7
|
+
*/ const PropertyChoicePropertyNames = [
|
|
8
|
+
'value',
|
|
9
|
+
'label',
|
|
10
|
+
'description'
|
|
11
|
+
];
|
|
12
|
+
|
|
13
|
+
exports.PropertyChoicePropertyNames = PropertyChoicePropertyNames;
|
|
14
|
+
//# 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,19 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// Copyright (c) Cratis. All rights reserved.
|
|
4
|
+
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
|
5
|
+
const PropertyConstraintsPropertyNames = [
|
|
6
|
+
'required',
|
|
7
|
+
'minimum',
|
|
8
|
+
'maximum',
|
|
9
|
+
'integer',
|
|
10
|
+
'minimumLength',
|
|
11
|
+
'maximumLength',
|
|
12
|
+
'pattern',
|
|
13
|
+
'minimumItems',
|
|
14
|
+
'maximumItems',
|
|
15
|
+
'resultShapes'
|
|
16
|
+
];
|
|
17
|
+
|
|
18
|
+
exports.PropertyConstraintsPropertyNames = PropertyConstraintsPropertyNames;
|
|
19
|
+
//# sourceMappingURL=PropertyConstraints.js.map
|