@cratis/event-models 0.0.0-stage → 0.105.6
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/README.md +44 -2
- package/dist/Board/BoardActions.d.ts +37 -0
- package/dist/Board/BoardCanvas.d.ts +6 -0
- package/dist/Board/BoardCanvasChrome.d.ts +9 -0
- package/dist/Board/BoardCollectionView.d.ts +22 -0
- package/dist/Board/BoardCollections.d.ts +17 -0
- package/dist/Board/BoardContextValue.d.ts +8 -0
- package/dist/Board/BoardEditing.d.ts +22 -0
- package/dist/Board/BoardInteraction.d.ts +10 -0
- package/dist/Board/BoardInteractionContext.d.ts +3 -0
- package/dist/Board/BoardInteractionProvider.d.ts +6 -0
- package/dist/Board/BoardNavigation.d.ts +4 -0
- package/dist/Board/BoardProvider.d.ts +7 -0
- package/dist/Board/BoardReadOnlyContext.d.ts +1 -0
- package/dist/Board/BoardSelection.d.ts +5 -0
- package/dist/Board/BoardToolbar.d.ts +7 -0
- package/dist/Board/EventModelBoard.d.ts +13 -0
- package/dist/Board/EventModelBoardEditor.d.ts +16 -0
- package/dist/Board/EventModelBoardHandle.d.ts +5 -0
- package/dist/Board/HostedEventModelBoard.d.ts +18 -0
- package/dist/Board/boardMinimap.d.ts +20 -0
- package/dist/Board/index.d.ts +19 -0
- package/dist/Board/isLargeBoard.d.ts +4 -0
- package/dist/Board/useBoard.d.ts +2 -0
- package/dist/Cards/ArtifactCard.d.ts +17 -0
- package/dist/Cards/ArtifactCardKind.d.ts +5 -0
- package/dist/Cards/Card.d.ts +18 -0
- package/dist/Cards/CardAction.d.ts +12 -0
- package/dist/Cards/CardActionButton.d.ts +9 -0
- package/dist/Cards/CardCorner.d.ts +4 -0
- package/dist/Cards/CardNameInput.d.ts +11 -0
- package/dist/Cards/CardSurface.d.ts +6 -0
- package/dist/Cards/EventTags.d.ts +8 -0
- package/dist/Cards/autoFitTitle.d.ts +29 -0
- package/dist/Cards/cardColors.d.ts +30 -0
- package/dist/Cards/index.d.ts +12 -0
- package/dist/Cards/pascalCaseBreak.d.ts +20 -0
- package/dist/Cards/useAutoFitTitle.d.ts +21 -0
- package/dist/Collections/CollectionGrid.d.ts +28 -0
- package/dist/Collections/CollectionGridEditor.d.ts +16 -0
- package/dist/Collections/CollectionGridFeature.d.ts +19 -0
- package/dist/Collections/CollectionGridFeatureColumn.d.ts +26 -0
- package/dist/Collections/CollectionGridFeatureHeaderControls.d.ts +13 -0
- package/dist/Collections/CollectionGridModule.d.ts +23 -0
- package/dist/Collections/CollectionGridModuleHeaderControls.d.ts +8 -0
- package/dist/Collections/CollectionGridSlice.d.ts +19 -0
- package/dist/Collections/CollectionGridSliceHeaderControls.d.ts +14 -0
- package/dist/Collections/CollectionGridSlots.d.ts +20 -0
- package/dist/Collections/CollectionGridTemplate.d.ts +6 -0
- package/dist/Collections/CollectionMoveHandle.d.ts +12 -0
- package/dist/Collections/CollectionMoved.d.ts +4 -0
- package/dist/Collections/CollectionViewport.d.ts +27 -0
- package/dist/Collections/collectionGridLayout.d.ts +11 -0
- package/dist/Collections/collectionState.d.ts +24 -0
- package/dist/Collections/estimateCollectionSize.d.ts +7 -0
- package/dist/Collections/index.d.ts +13 -0
- package/dist/Collections/useCollectionMove.d.ts +10 -0
- package/dist/Collections/useCollectionsArea.d.ts +27 -0
- package/dist/Connections/Connectors.d.ts +23 -0
- package/dist/Connections/FlowNodeActor.d.ts +13 -0
- package/dist/Connections/SliceConnections.d.ts +7 -0
- package/dist/Connections/SliceConnectionsContext.d.ts +11 -0
- package/dist/Connections/computeSliceConnections.d.ts +23 -0
- package/dist/Connections/flowNodeOrder.d.ts +3 -0
- package/dist/Connections/index.d.ts +7 -0
- package/dist/Connections/useConnectionHighlight.d.ts +7 -0
- package/dist/Features/FeatureAddMenu.d.ts +10 -0
- package/dist/Features/FeatureColumnFrame.d.ts +10 -0
- package/dist/Features/FeatureGridSurface.d.ts +15 -0
- package/dist/Features/FeatureHeader.d.ts +21 -0
- package/dist/Features/FeatureHeaderAction.d.ts +12 -0
- package/dist/Features/FeatureHeaderCell.d.ts +10 -0
- package/dist/Features/FeatureHeaderMenu.d.ts +10 -0
- package/dist/Features/FeatureHeaderMenuAction.d.ts +14 -0
- package/dist/Features/FeatureHeaderSuggestion.d.ts +9 -0
- package/dist/Features/FeatureSuggestions.d.ts +4 -0
- package/dist/Features/FeaturesArea.d.ts +42 -0
- package/dist/Features/FeaturesReordered.d.ts +2 -0
- package/dist/Features/featureAreaState.d.ts +27 -0
- package/dist/Features/featureDropEdge.d.ts +2 -0
- package/dist/Features/featureHeaderMenuItems.d.ts +4 -0
- package/dist/Features/index.d.ts +12 -0
- package/dist/Features/useFeatureDrag.d.ts +16 -0
- package/dist/Features/useFeatureSlotTargets.d.ts +11 -0
- package/dist/Geometry/CurveAxis.d.ts +5 -0
- package/dist/Geometry/connectionCurve.d.ts +13 -0
- package/dist/Geometry/index.d.ts +5 -0
- package/dist/Geometry/linkGeometry.d.ts +62 -0
- package/dist/Geometry/pillLabelWidth.d.ts +38 -0
- package/dist/Geometry/rowLabelWidth.d.ts +1 -0
- package/dist/HeaderDragging/HeaderDragGhost.d.ts +6 -0
- package/dist/HeaderDragging/HeaderDragStart.d.ts +8 -0
- package/dist/HeaderDragging/HeaderDragState.d.ts +8 -0
- package/dist/HeaderDragging/createHeaderDragGhost.d.ts +1 -0
- package/dist/HeaderDragging/headerDropIndex.d.ts +5 -0
- package/dist/HeaderDragging/index.d.ts +8 -0
- package/dist/HeaderDragging/reorderedIds.d.ts +2 -0
- package/dist/HeaderDragging/useHeaderDragIntent.d.ts +8 -0
- package/dist/HeaderDragging/zoomOfAncestor.d.ts +1 -0
- package/dist/Headers/CollapseButton.d.ts +6 -0
- package/dist/Headers/DetailsToggle.d.ts +5 -0
- package/dist/Headers/EditableLabel.d.ts +10 -0
- package/dist/Headers/EntityErrorIndicator.d.ts +10 -0
- package/dist/Headers/EntityErrorKind.d.ts +6 -0
- package/dist/Headers/ErroredEntity.d.ts +17 -0
- package/dist/Headers/PillHeader.d.ts +25 -0
- package/dist/Headers/index.d.ts +7 -0
- package/dist/Icons/CogWheel.d.ts +1 -0
- package/dist/Icons/index.d.ts +1 -0
- package/dist/Layout/boardMetrics.d.ts +20 -0
- package/dist/Layout/index.d.ts +3 -0
- package/dist/Layout/sliceLayout.d.ts +14 -0
- package/dist/Layout/sliceRows.d.ts +7 -0
- package/dist/Links/ModuleCollectionLinks.d.ts +19 -0
- package/dist/Links/drawableLinks.d.ts +8 -0
- package/dist/Links/index.d.ts +2 -0
- package/dist/Links/linkState.d.ts +17 -0
- package/dist/Menus/MenuDropdown.d.ts +29 -0
- package/dist/Menus/index.d.ts +1 -0
- package/dist/Messages/EventModelMessages.d.ts +153 -0
- package/dist/Messages/EventModelMessagesContext.d.ts +3 -0
- package/dist/Messages/EventModelMessagesProvider.d.ts +7 -0
- package/dist/Messages/defaultEventModelMessages.d.ts +2 -0
- package/dist/Messages/index.d.ts +4 -0
- package/dist/Model/Actor.d.ts +9 -0
- package/dist/Model/ActorType.d.ts +5 -0
- package/dist/Model/Assignee.d.ts +8 -0
- package/dist/Model/AssigneeKind.d.ts +5 -0
- package/dist/Model/AutomationTrigger.d.ts +9 -0
- package/dist/Model/AutomationTriggerSchedule.d.ts +8 -0
- package/dist/Model/AutomationTriggerType.d.ts +6 -0
- package/dist/Model/CommandConcurrency.d.ts +9 -0
- package/dist/Model/CommandItem.d.ts +13 -0
- package/dist/Model/CommandPropertyRules.d.ts +5 -0
- package/dist/Model/CommandRule.d.ts +4 -0
- package/dist/Model/ConcurrencyBinding.d.ts +5 -0
- package/dist/Model/ConcurrencyValueSource.d.ts +5 -0
- package/dist/Model/EventConstraint.d.ts +4 -0
- package/dist/Model/EventConstraints.d.ts +5 -0
- package/dist/Model/EventItem.d.ts +11 -0
- package/dist/Model/EventModel.d.ts +11 -0
- package/dist/Model/ExternalEventItem.d.ts +6 -0
- package/dist/Model/Feature.d.ts +14 -0
- package/dist/Model/Module.d.ts +12 -0
- package/dist/Model/ModuleCollection.d.ts +10 -0
- package/dist/Model/ModuleCollectionLink.d.ts +6 -0
- package/dist/Model/PersonaReference.d.ts +5 -0
- package/dist/Model/Position.d.ts +4 -0
- package/dist/Model/QueryItem.d.ts +7 -0
- package/dist/Model/QueryParameter.d.ts +5 -0
- package/dist/Model/QueryParameterType.d.ts +8 -0
- package/dist/Model/ReadModelItem.d.ts +8 -0
- package/dist/Model/ScreenTemplate.d.ts +4 -0
- package/dist/Model/Slice.d.ts +31 -0
- package/dist/Model/SliceSpecification.d.ts +19 -0
- package/dist/Model/SliceStatus.d.ts +9 -0
- package/dist/Model/SliceType.d.ts +6 -0
- package/dist/Model/SpecificationCommand.d.ts +7 -0
- package/dist/Model/SpecificationError.d.ts +7 -0
- package/dist/Model/SpecificationErrorRuleKind.d.ts +5 -0
- package/dist/Model/SpecificationErrorRuleReference.d.ts +8 -0
- package/dist/Model/SpecificationGivenEvent.d.ts +7 -0
- package/dist/Model/SpecificationReadModel.d.ts +6 -0
- package/dist/Model/SpecificationRunOutcome.d.ts +5 -0
- package/dist/Model/SpecificationThenEvent.d.ts +7 -0
- package/dist/Model/StickyNote.d.ts +8 -0
- package/dist/Model/UserExperienceActor.d.ts +10 -0
- package/dist/Model/index.d.ts +43 -0
- package/dist/Modules/ModuleColumnFrame.d.ts +11 -0
- package/dist/Modules/ModuleDropIndicator.d.ts +1 -0
- package/dist/Modules/ModuleHeader.d.ts +20 -0
- package/dist/Modules/ModuleHeaderAction.d.ts +14 -0
- package/dist/Modules/ModuleHeaderCell.d.ts +7 -0
- package/dist/Modules/ModuleHeaderMenu.d.ts +10 -0
- package/dist/Modules/ModulePlaceholder.d.ts +6 -0
- package/dist/Modules/ModuleSurface.d.ts +15 -0
- package/dist/Modules/ModulesArea.d.ts +23 -0
- package/dist/Modules/ModulesReordered.d.ts +2 -0
- package/dist/Modules/index.d.ts +12 -0
- package/dist/Modules/moduleAreaState.d.ts +27 -0
- package/dist/Modules/moduleWidth.d.ts +2 -0
- package/dist/Modules/persistModuleChange.d.ts +1 -0
- package/dist/Modules/useModuleDrag.d.ts +15 -0
- package/dist/Pickers/EventReferencePicker.d.ts +10 -0
- package/dist/Pickers/PickerPanel.d.ts +16 -0
- package/dist/Pickers/index.d.ts +2 -0
- package/dist/Pickers/useDismissOnOutsidePointer.d.ts +2 -0
- package/dist/Presentation/DetailLevel.d.ts +20 -0
- package/dist/Presentation/EventModelPresentation.d.ts +8 -0
- package/dist/Presentation/EventModelPresentationContext.d.ts +3 -0
- package/dist/Presentation/EventModelPresentationProvider.d.ts +7 -0
- package/dist/Presentation/VisualizationMode.d.ts +1 -0
- package/dist/Presentation/defaultEventModelPresentation.d.ts +2 -0
- package/dist/Presentation/detailsVisibility.d.ts +12 -0
- package/dist/Presentation/index.d.ts +7 -0
- package/dist/Properties/SchemaTooltipProperties.d.ts +9 -0
- package/dist/Properties/TypeBadge.d.ts +10 -0
- package/dist/Properties/index.d.ts +3 -0
- package/dist/Properties/schemaProperties.d.ts +6 -0
- package/dist/Reading/DocumentNode.d.ts +22 -0
- package/dist/Reading/InvalidEventModelDocument.d.ts +4 -0
- package/dist/Reading/index.d.ts +4 -0
- package/dist/Reading/isKnownValue.d.ts +1 -0
- package/dist/Reading/readActors.d.ts +4 -0
- package/dist/Reading/readBoardItems.d.ts +5 -0
- package/dist/Reading/readEventModelDocument.d.ts +2 -0
- package/dist/Reading/readJsonSchema.d.ts +2 -0
- package/dist/Reading/readModules.d.ts +3 -0
- package/dist/Reading/readSlice.d.ts +3 -0
- package/dist/Reading/readSliceItems.d.ts +7 -0
- package/dist/Reading/readSpecification.d.ts +3 -0
- package/dist/References/EventNavigateButton.d.ts +5 -0
- package/dist/References/ExternalEventCard.d.ts +14 -0
- package/dist/References/index.d.ts +3 -0
- package/dist/References/useReferenceHover.d.ts +12 -0
- package/dist/RowLabels/ActorRowDragGhost.d.ts +5 -0
- package/dist/RowLabels/ActorRowDropIndicator.d.ts +1 -0
- package/dist/RowLabels/ActorsReordered.d.ts +3 -0
- package/dist/RowLabels/RowLabel.d.ts +19 -0
- package/dist/RowLabels/RowLabelAction.d.ts +8 -0
- package/dist/RowLabels/RowLabelBadge.d.ts +8 -0
- package/dist/RowLabels/RowLabelsColumn.d.ts +20 -0
- package/dist/RowLabels/RowLabelsColumnFrame.d.ts +7 -0
- package/dist/RowLabels/actorKinds.d.ts +8 -0
- package/dist/RowLabels/actorRows.d.ts +4 -0
- package/dist/RowLabels/index.d.ts +12 -0
- package/dist/RowLabels/rowTypeName.d.ts +3 -0
- package/dist/RowLabels/useActorRowDrag.d.ts +30 -0
- package/dist/Rows/CellAction.d.ts +8 -0
- package/dist/Rows/CellActionButton.d.ts +6 -0
- package/dist/Rows/CellCorner.d.ts +7 -0
- package/dist/Rows/CellCornerAction.d.ts +7 -0
- package/dist/Rows/CellCornerPlacement.d.ts +4 -0
- package/dist/Rows/Chat/ChatCell.d.ts +9 -0
- package/dist/Rows/Chat/index.d.ts +1 -0
- package/dist/Rows/Events/EventCard.d.ts +9 -0
- package/dist/Rows/Events/EventReferenceCard.d.ts +7 -0
- package/dist/Rows/Events/EventsCell.d.ts +12 -0
- package/dist/Rows/Events/SliceEvents.d.ts +11 -0
- package/dist/Rows/Events/index.d.ts +5 -0
- package/dist/Rows/Events/referenceableEvents.d.ts +2 -0
- package/dist/Rows/Interaction/InteractionCard.d.ts +14 -0
- package/dist/Rows/Interaction/InteractionCell.d.ts +31 -0
- package/dist/Rows/Interaction/InteractionMiniCard.d.ts +4 -0
- package/dist/Rows/Interaction/OptionalReadModel.d.ts +6 -0
- package/dist/Rows/Interaction/SliceInteraction.d.ts +11 -0
- package/dist/Rows/Interaction/index.d.ts +5 -0
- package/dist/Rows/RowType.d.ts +7 -0
- package/dist/Rows/System/SystemCell.d.ts +12 -0
- package/dist/Rows/System/TriggerControl.d.ts +8 -0
- package/dist/Rows/System/TriggerKind.d.ts +5 -0
- package/dist/Rows/System/index.d.ts +4 -0
- package/dist/Rows/System/triggerBadges.d.ts +4 -0
- package/dist/Rows/UserExperience/AddPrototypeButton.d.ts +7 -0
- package/dist/Rows/UserExperience/PrototypeTemplate.d.ts +6 -0
- package/dist/Rows/UserExperience/UiCell.d.ts +17 -0
- package/dist/Rows/UserExperience/addPrototypeMenuItems.d.ts +8 -0
- package/dist/Rows/UserExperience/index.d.ts +4 -0
- package/dist/Rows/eventRowAffordances.d.ts +5 -0
- package/dist/Rows/index.d.ts +12 -0
- package/dist/SliceDragging/SliceDragGestureVerdict.d.ts +5 -0
- package/dist/SliceDragging/SliceDragGhost.d.ts +6 -0
- package/dist/SliceDragging/SliceDropIndicator.d.ts +5 -0
- package/dist/SliceDragging/SliceDropTarget.d.ts +14 -0
- package/dist/SliceDragging/SliceDropVerdict.d.ts +4 -0
- package/dist/SliceDragging/SliceMoved.d.ts +2 -0
- package/dist/SliceDragging/ValidateSliceDrop.d.ts +3 -0
- package/dist/SliceDragging/dropIndicatorClassName.d.ts +1 -0
- package/dist/SliceDragging/index.d.ts +14 -0
- package/dist/SliceDragging/readSliceDragGesture.d.ts +5 -0
- package/dist/SliceDragging/readSlicePress.d.ts +20 -0
- package/dist/SliceDragging/sliceMove.d.ts +10 -0
- package/dist/SliceDragging/snapshotSlice.d.ts +8 -0
- package/dist/SliceDragging/useSliceDrag.d.ts +30 -0
- package/dist/SliceDragging/useSliceDragIntent.d.ts +10 -0
- package/dist/SliceTypes/SliceTypeIcon.d.ts +5 -0
- package/dist/SliceTypes/SliceTypeMenu.d.ts +6 -0
- package/dist/SliceTypes/index.d.ts +3 -0
- package/dist/SliceTypes/sliceTypeMenuItems.d.ts +7 -0
- package/dist/Slices/SliceColumn.d.ts +18 -0
- package/dist/Slices/SliceColumnFrame.d.ts +20 -0
- package/dist/Slices/SliceContext.d.ts +2 -0
- package/dist/Slices/SliceContextValue.d.ts +7 -0
- package/dist/Slices/SliceHeader.d.ts +14 -0
- package/dist/Slices/SliceHeaderAction.d.ts +10 -0
- package/dist/Slices/SliceHeaderSlice.d.ts +2 -0
- package/dist/Slices/SliceNames.d.ts +6 -0
- package/dist/Slices/SlicePlaceholder.d.ts +15 -0
- package/dist/Slices/SliceProvider.d.ts +10 -0
- package/dist/Slices/SliceRows.d.ts +28 -0
- package/dist/Slices/SlicesArea.d.ts +38 -0
- package/dist/Slices/createOptimisticSlice.d.ts +3 -0
- package/dist/Slices/index.d.ts +15 -0
- package/dist/Slices/resolveSliceReadOnly.d.ts +3 -0
- package/dist/Slices/sliceAreaState.d.ts +43 -0
- package/dist/Slices/useSlice.d.ts +3 -0
- package/dist/Specifications/GivenSection.d.ts +12 -0
- package/dist/Specifications/SpecificationAction.d.ts +19 -0
- package/dist/Specifications/SpecificationAddPicker.d.ts +11 -0
- package/dist/Specifications/SpecificationCollection.d.ts +16 -0
- package/dist/Specifications/SpecificationEditing.d.ts +20 -0
- package/dist/Specifications/SpecificationErrorCard.d.ts +5 -0
- package/dist/Specifications/SpecificationHeader.d.ts +14 -0
- package/dist/Specifications/SpecificationItemCard.d.ts +7 -0
- package/dist/Specifications/SpecificationItemKind.d.ts +5 -0
- package/dist/Specifications/SpecificationItemToOpen.d.ts +14 -0
- package/dist/Specifications/SpecificationRow.d.ts +8 -0
- package/dist/Specifications/SpecificationRunButton.d.ts +7 -0
- package/dist/Specifications/SpecificationRunState.d.ts +23 -0
- package/dist/Specifications/SpecificationSection.d.ts +8 -0
- package/dist/Specifications/SpecificationStatus.d.ts +14 -0
- package/dist/Specifications/ThenSection.d.ts +15 -0
- package/dist/Specifications/WhenSection.d.ts +12 -0
- package/dist/Specifications/index.d.ts +10 -0
- package/dist/Specifications/itemValues.d.ts +7 -0
- package/dist/Specifications/ruleErrors.d.ts +8 -0
- package/dist/Specifications/specificationCollectionState.d.ts +7 -0
- package/dist/Specifications/specificationEvents.d.ts +3 -0
- package/dist/Statuses/SliceStatusIcon.d.ts +5 -0
- package/dist/Statuses/SliceStatusPicker.d.ts +8 -0
- package/dist/Statuses/changeSliceStatus.d.ts +2 -0
- package/dist/Statuses/index.d.ts +4 -0
- package/dist/Statuses/sliceStatuses.d.ts +6 -0
- package/dist/StickyNotes/StickyNoteBounds.d.ts +6 -0
- package/dist/StickyNotes/StickyNoteChanges.d.ts +9 -0
- package/dist/StickyNotes/StickyNoteHandle.d.ts +4 -0
- package/dist/StickyNotes/StickyNoteState.d.ts +16 -0
- package/dist/StickyNotes/StickyNotes.d.ts +6 -0
- package/dist/StickyNotes/index.d.ts +6 -0
- package/dist/StickyNotes/isEditableTarget.d.ts +1 -0
- package/dist/Tooltips/AnchoredOverlay.d.ts +27 -0
- package/dist/Tooltips/GridTooltip.d.ts +21 -0
- package/dist/Tooltips/index.d.ts +2 -0
- package/dist/Viewport/index.d.ts +2 -0
- package/dist/Viewport/useInViewport.d.ts +3 -0
- package/dist/Viewport/viewportFlushScheduler.d.ts +7 -0
- package/dist/event-model-document.schema.json +827 -0
- package/dist/event-models.css +2 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +7682 -0
- package/dist/index.js.map +1 -0
- package/dist/theme.css +53 -0
- package/package.json +66 -3
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { EventModelMessages } from './EventModelMessages';
|
|
3
|
+
export interface EventModelMessagesProviderProps {
|
|
4
|
+
messages: EventModelMessages;
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const EventModelMessagesProvider: ({ messages, children }: EventModelMessagesProviderProps) => React.JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { AutomationTriggerSchedule } from './AutomationTriggerSchedule';
|
|
3
|
+
import type { AutomationTriggerType } from './AutomationTriggerType';
|
|
4
|
+
export interface AutomationTrigger {
|
|
5
|
+
type: AutomationTriggerType;
|
|
6
|
+
description: string;
|
|
7
|
+
schedule?: AutomationTriggerSchedule;
|
|
8
|
+
eventId?: Guid;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { ConcurrencyBinding } from './ConcurrencyBinding';
|
|
3
|
+
export interface CommandConcurrency {
|
|
4
|
+
scopeId?: Guid;
|
|
5
|
+
includeEventSource: boolean;
|
|
6
|
+
eventSourceType?: ConcurrencyBinding;
|
|
7
|
+
eventStreamType?: ConcurrencyBinding;
|
|
8
|
+
eventStreamId?: ConcurrencyBinding;
|
|
9
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { JsonSchema } from '@cratis/components/types';
|
|
3
|
+
import type { CommandConcurrency } from './CommandConcurrency';
|
|
4
|
+
import type { CommandPropertyRules } from './CommandPropertyRules';
|
|
5
|
+
export interface CommandItem {
|
|
6
|
+
id: Guid;
|
|
7
|
+
name: string;
|
|
8
|
+
schema: JsonSchema;
|
|
9
|
+
stateSchema: JsonSchema;
|
|
10
|
+
logicDescription: string;
|
|
11
|
+
rules?: CommandPropertyRules[];
|
|
12
|
+
concurrency?: CommandConcurrency;
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { JsonSchema } from '@cratis/components/types';
|
|
3
|
+
import type { EventConstraints } from './EventConstraints';
|
|
4
|
+
export interface EventItem {
|
|
5
|
+
id: Guid;
|
|
6
|
+
name: string;
|
|
7
|
+
schema: JsonSchema;
|
|
8
|
+
sourceEventId?: string;
|
|
9
|
+
tags?: string[];
|
|
10
|
+
constraints?: EventConstraints;
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { ModuleCollection } from './ModuleCollection';
|
|
3
|
+
import type { ModuleCollectionLink } from './ModuleCollectionLink';
|
|
4
|
+
import type { StickyNote } from './StickyNote';
|
|
5
|
+
export interface EventModel {
|
|
6
|
+
id: Guid;
|
|
7
|
+
name: string;
|
|
8
|
+
collections: ModuleCollection[];
|
|
9
|
+
stickyNotes: StickyNote[];
|
|
10
|
+
links: ModuleCollectionLink[];
|
|
11
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { ScreenTemplate } from './ScreenTemplate';
|
|
3
|
+
import type { Slice } from './Slice';
|
|
4
|
+
export interface Feature {
|
|
5
|
+
id: Guid;
|
|
6
|
+
name: string;
|
|
7
|
+
subFeatures: Feature[];
|
|
8
|
+
slices: Slice[];
|
|
9
|
+
collapsed: boolean;
|
|
10
|
+
rowCollapsed: boolean;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
screenTemplate?: ScreenTemplate;
|
|
13
|
+
commentCount: number;
|
|
14
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { Feature } from './Feature';
|
|
3
|
+
import type { ScreenTemplate } from './ScreenTemplate';
|
|
4
|
+
export interface Module {
|
|
5
|
+
id: Guid;
|
|
6
|
+
name: string;
|
|
7
|
+
features: Feature[];
|
|
8
|
+
collapsed: boolean;
|
|
9
|
+
sortOrder: number;
|
|
10
|
+
screenTemplate?: ScreenTemplate;
|
|
11
|
+
commentCount: number;
|
|
12
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { Actor } from './Actor';
|
|
3
|
+
import type { Module } from './Module';
|
|
4
|
+
import type { Position } from './Position';
|
|
5
|
+
export interface ModuleCollection {
|
|
6
|
+
id: Guid;
|
|
7
|
+
position: Position;
|
|
8
|
+
modules: Module[];
|
|
9
|
+
actors: Actor[];
|
|
10
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { Assignee } from './Assignee';
|
|
3
|
+
import type { AutomationTrigger } from './AutomationTrigger';
|
|
4
|
+
import type { CommandItem } from './CommandItem';
|
|
5
|
+
import type { EventItem } from './EventItem';
|
|
6
|
+
import type { ExternalEventItem } from './ExternalEventItem';
|
|
7
|
+
import type { QueryItem } from './QueryItem';
|
|
8
|
+
import type { ReadModelItem } from './ReadModelItem';
|
|
9
|
+
import type { SliceSpecification } from './SliceSpecification';
|
|
10
|
+
import type { SliceStatus } from './SliceStatus';
|
|
11
|
+
import type { SliceType } from './SliceType';
|
|
12
|
+
import type { UserExperienceActor } from './UserExperienceActor';
|
|
13
|
+
export interface Slice {
|
|
14
|
+
id: Guid;
|
|
15
|
+
name: string;
|
|
16
|
+
sliceType: SliceType;
|
|
17
|
+
description: string;
|
|
18
|
+
status: SliceStatus;
|
|
19
|
+
collapsed: boolean;
|
|
20
|
+
sortOrder: number;
|
|
21
|
+
command?: CommandItem;
|
|
22
|
+
readModel?: ReadModelItem;
|
|
23
|
+
externalEvents: ExternalEventItem[];
|
|
24
|
+
events: EventItem[];
|
|
25
|
+
queries: QueryItem[];
|
|
26
|
+
actors: UserExperienceActor[];
|
|
27
|
+
automationTrigger?: AutomationTrigger;
|
|
28
|
+
specifications: SliceSpecification[];
|
|
29
|
+
commentCount: number;
|
|
30
|
+
assignee?: Assignee;
|
|
31
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { SpecificationCommand } from './SpecificationCommand';
|
|
3
|
+
import type { SpecificationError } from './SpecificationError';
|
|
4
|
+
import type { SpecificationGivenEvent } from './SpecificationGivenEvent';
|
|
5
|
+
import type { SpecificationReadModel } from './SpecificationReadModel';
|
|
6
|
+
import type { SpecificationRunOutcome } from './SpecificationRunOutcome';
|
|
7
|
+
import type { SpecificationThenEvent } from './SpecificationThenEvent';
|
|
8
|
+
export interface SliceSpecification {
|
|
9
|
+
id: Guid;
|
|
10
|
+
name: string;
|
|
11
|
+
given: SpecificationGivenEvent[];
|
|
12
|
+
when?: SpecificationCommand;
|
|
13
|
+
givenReadModel?: SpecificationReadModel;
|
|
14
|
+
thenEvents: SpecificationThenEvent[];
|
|
15
|
+
thenErrors: SpecificationError[];
|
|
16
|
+
collapsed: boolean;
|
|
17
|
+
lastRunOutcome?: SpecificationRunOutcome;
|
|
18
|
+
lastRunMessage?: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { SpecificationErrorRuleKind } from './SpecificationErrorRuleKind';
|
|
3
|
+
export interface SpecificationErrorRuleReference {
|
|
4
|
+
kind: SpecificationErrorRuleKind;
|
|
5
|
+
itemId: Guid;
|
|
6
|
+
propertyName: string;
|
|
7
|
+
ruleType: string;
|
|
8
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { PrototypeLayout, UIElement } from '@cratis/scene';
|
|
2
|
+
import type { ActorType } from './ActorType';
|
|
3
|
+
export interface UserExperienceActor {
|
|
4
|
+
id: string;
|
|
5
|
+
type: ActorType;
|
|
6
|
+
elements: UIElement[];
|
|
7
|
+
layout: PrototypeLayout;
|
|
8
|
+
windowWidth: number;
|
|
9
|
+
windowHeight: number;
|
|
10
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export * from './Actor';
|
|
2
|
+
export * from './ActorType';
|
|
3
|
+
export * from './Assignee';
|
|
4
|
+
export * from './AssigneeKind';
|
|
5
|
+
export * from './AutomationTrigger';
|
|
6
|
+
export * from './AutomationTriggerSchedule';
|
|
7
|
+
export * from './AutomationTriggerType';
|
|
8
|
+
export * from './CommandConcurrency';
|
|
9
|
+
export * from './CommandItem';
|
|
10
|
+
export * from './CommandPropertyRules';
|
|
11
|
+
export * from './CommandRule';
|
|
12
|
+
export * from './ConcurrencyBinding';
|
|
13
|
+
export * from './ConcurrencyValueSource';
|
|
14
|
+
export * from './EventConstraint';
|
|
15
|
+
export * from './EventConstraints';
|
|
16
|
+
export * from './EventItem';
|
|
17
|
+
export * from './EventModel';
|
|
18
|
+
export * from './ExternalEventItem';
|
|
19
|
+
export * from './Feature';
|
|
20
|
+
export * from './Module';
|
|
21
|
+
export * from './ModuleCollection';
|
|
22
|
+
export * from './ModuleCollectionLink';
|
|
23
|
+
export * from './PersonaReference';
|
|
24
|
+
export * from './Position';
|
|
25
|
+
export * from './QueryItem';
|
|
26
|
+
export * from './QueryParameter';
|
|
27
|
+
export * from './QueryParameterType';
|
|
28
|
+
export * from './ReadModelItem';
|
|
29
|
+
export * from './ScreenTemplate';
|
|
30
|
+
export * from './Slice';
|
|
31
|
+
export * from './SliceSpecification';
|
|
32
|
+
export * from './SliceStatus';
|
|
33
|
+
export * from './SliceType';
|
|
34
|
+
export * from './SpecificationCommand';
|
|
35
|
+
export * from './SpecificationError';
|
|
36
|
+
export * from './SpecificationErrorRuleKind';
|
|
37
|
+
export * from './SpecificationErrorRuleReference';
|
|
38
|
+
export * from './SpecificationGivenEvent';
|
|
39
|
+
export * from './SpecificationReadModel';
|
|
40
|
+
export * from './SpecificationRunOutcome';
|
|
41
|
+
export * from './SpecificationThenEvent';
|
|
42
|
+
export * from './StickyNote';
|
|
43
|
+
export * from './UserExperienceActor';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
3
|
+
export interface ModuleColumnFrameProps {
|
|
4
|
+
moduleId: Guid;
|
|
5
|
+
collectionId?: Guid;
|
|
6
|
+
marginLeft: number;
|
|
7
|
+
dragging?: boolean;
|
|
8
|
+
ref?: Ref<HTMLDivElement>;
|
|
9
|
+
children?: ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const ModuleColumnFrame: ({ moduleId, collectionId, marginLeft, dragging, ref, children }: ModuleColumnFrameProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ModuleDropIndicator: () => import("react").JSX.Element;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { SliceStatus } from '../Model';
|
|
3
|
+
import { type HeaderDragStart } from '../HeaderDragging';
|
|
4
|
+
export interface ModuleHeaderProps {
|
|
5
|
+
moduleId: Guid;
|
|
6
|
+
name: string;
|
|
7
|
+
height: number;
|
|
8
|
+
collapsed: boolean;
|
|
9
|
+
onToggleCollapse?: () => void;
|
|
10
|
+
onAddModule?: () => void;
|
|
11
|
+
onAddFeature?: () => void;
|
|
12
|
+
onRenamed?: (moduleId: Guid, name: string) => void;
|
|
13
|
+
validateName?: (name: string) => string | undefined;
|
|
14
|
+
status?: SliceStatus;
|
|
15
|
+
detailsVisible?: boolean;
|
|
16
|
+
onToggleDetails?: () => void;
|
|
17
|
+
onDragStart?: (start: HeaderDragStart) => void;
|
|
18
|
+
error?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare const ModuleHeader: ({ moduleId, name, height, collapsed, onToggleCollapse, onAddModule, onAddFeature, onRenamed, validateName, status, detailsVisible, onToggleDetails, onDragStart, error, }: ModuleHeaderProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
3
|
+
export interface ModuleHeaderAction {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
description?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
tooltip?: string;
|
|
10
|
+
indicator?: boolean;
|
|
11
|
+
isSeparator?: boolean;
|
|
12
|
+
items?: readonly ModuleHeaderAction[];
|
|
13
|
+
onActivate: (moduleId: Guid, host: DOMRect) => void;
|
|
14
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export interface ModuleHeaderCellProps {
|
|
3
|
+
width: number;
|
|
4
|
+
collapsed: boolean;
|
|
5
|
+
children?: ReactNode;
|
|
6
|
+
}
|
|
7
|
+
export declare const ModuleHeaderCell: ({ width, collapsed, children }: ModuleHeaderCellProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
2
|
+
import type { ModuleHeaderAction } from './ModuleHeaderAction';
|
|
3
|
+
export interface ModuleHeaderMenuProps {
|
|
4
|
+
moduleId: Guid;
|
|
5
|
+
actions: readonly ModuleHeaderAction[];
|
|
6
|
+
onAddModule?: () => void;
|
|
7
|
+
onAddFeature?: () => void;
|
|
8
|
+
kind: 'options' | 'add';
|
|
9
|
+
}
|
|
10
|
+
export declare const ModuleHeaderMenu: ({ moduleId, actions, onAddModule, onAddFeature, kind }: ModuleHeaderMenuProps) => import("react").JSX.Element | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { ReactNode, Ref } from 'react';
|
|
2
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
3
|
+
export interface ModuleSurfaceProps {
|
|
4
|
+
moduleId: Guid;
|
|
5
|
+
collectionId: Guid;
|
|
6
|
+
index: number;
|
|
7
|
+
width: number;
|
|
8
|
+
collapsed: boolean;
|
|
9
|
+
dragging?: boolean;
|
|
10
|
+
frameRef?: Ref<HTMLDivElement>;
|
|
11
|
+
header: ReactNode;
|
|
12
|
+
template?: ReactNode;
|
|
13
|
+
content: ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const ModuleSurface: ({ moduleId, collectionId, index, width, collapsed, dragging, frameRef, header, template, content }: ModuleSurfaceProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { type ReactNode } from 'react';
|
|
2
|
+
import type { Guid } from '@cratis/fundamentals';
|
|
3
|
+
import { type HeaderDragStart } from '../HeaderDragging';
|
|
4
|
+
import { type ModuleAreaItem } from './moduleAreaState';
|
|
5
|
+
export interface ModulesAreaProps<T extends ModuleAreaItem> {
|
|
6
|
+
collectionId: Guid;
|
|
7
|
+
initialModules: T[];
|
|
8
|
+
onAddModule?: () => Promise<T | undefined>;
|
|
9
|
+
onModulesReordered?: (orderedIds: Guid[]) => Promise<boolean>;
|
|
10
|
+
onCollapseChanged?: (moduleId: Guid, collapsed: boolean) => Promise<boolean>;
|
|
11
|
+
onRenameModule?: (moduleId: Guid, name: string) => Promise<boolean>;
|
|
12
|
+
onPersistenceError?: (error: unknown) => void;
|
|
13
|
+
renderModule: (module: T, options: {
|
|
14
|
+
index: number;
|
|
15
|
+
dragging: boolean;
|
|
16
|
+
onDragStart?: (start: HeaderDragStart) => void;
|
|
17
|
+
onAddModule?: () => void;
|
|
18
|
+
onToggleCollapse?: () => void;
|
|
19
|
+
onRenamed?: (name: string) => void;
|
|
20
|
+
}) => ReactNode;
|
|
21
|
+
onModulesChanged?: (modules: T[]) => void;
|
|
22
|
+
}
|
|
23
|
+
export declare function ModulesArea<T extends ModuleAreaItem>({ collectionId, initialModules, onAddModule, onModulesReordered, onCollapseChanged, onRenameModule, onPersistenceError, renderModule, onModulesChanged, }: ModulesAreaProps<T>): import("react").JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export * from './ModuleColumnFrame';
|
|
2
|
+
export * from './ModuleDropIndicator';
|
|
3
|
+
export * from './ModuleHeader';
|
|
4
|
+
export * from './ModuleHeaderAction';
|
|
5
|
+
export * from './ModulesArea';
|
|
6
|
+
export * from './moduleAreaState';
|
|
7
|
+
export * from './moduleWidth';
|
|
8
|
+
export * from './ModuleHeaderCell';
|
|
9
|
+
export * from './ModulePlaceholder';
|
|
10
|
+
export * from './ModuleSurface';
|
|
11
|
+
export * from './ModulesReordered';
|
|
12
|
+
export * from './useModuleDrag';
|