@cratis/event-models 0.136.0 → 0.136.3
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/dist/screen-editor/ScreenEditor/Collections/orderedItems.d.ts +2 -1
- package/dist/screen-editor/ScreenEditor/Host/ScreenEditorController.d.ts +3 -1
- package/dist/screen-editor/ScreenEditor/Inspector/DestinationReferenceFields.d.ts +15 -0
- package/dist/screen-editor/ScreenEditor/Inspector/OutletListEditor.d.ts +9 -0
- package/dist/screen-editor/ScreenEditor/Inspector/ScreenEditorStrings.d.ts +23 -0
- package/dist/screen-editor/ScreenEditor/Session/EditSession.d.ts +1 -0
- package/dist/screen-editor/index.js +2648 -2345
- package/dist/screen-editor/screen-editor.css +1 -1
- package/package.json +3 -3
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { type InspectedProperty, type SceneEdit } from '@cratis/scene.model';
|
|
1
|
+
import { type DestinationReference, type InspectedProperty, type SceneEdit } from '@cratis/scene.model';
|
|
2
2
|
import type { OrderedItem, OrderedItemCapabilities, OrderedItemProposal } from '@cratis/components/ConfigurationEditor';
|
|
3
3
|
export interface SceneOrderedItem extends OrderedItem {
|
|
4
4
|
values: Record<string, unknown>;
|
|
5
|
+
destinationReference?: DestinationReference;
|
|
5
6
|
}
|
|
6
7
|
export declare function toOrderedItems(property: InspectedProperty): {
|
|
7
8
|
items: SceneOrderedItem[];
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { CanvasPlacement } from '../Document/placeOnCanvas';
|
|
2
|
-
import type { NodeInspection, SceneDiagnostic, SceneDocument, SceneEdit, SceneElement } from '@cratis/scene.model';
|
|
2
|
+
import type { Form, NodeInspection, Outlet, SceneDiagnostic, SceneDocument, SceneEdit, SceneElement } from '@cratis/scene.model';
|
|
3
3
|
import type { EditingContext } from '@cratis/scene.engine';
|
|
4
4
|
import type { Ownership } from '../Structure/Ownership';
|
|
5
5
|
import type { StructureEdit } from '../Structure/StructureEdit';
|
|
@@ -43,6 +43,8 @@ export interface ScreenEditorController {
|
|
|
43
43
|
remove: (elementId: string) => void;
|
|
44
44
|
canRemove: (elementId: string) => boolean;
|
|
45
45
|
setProperty: (property: NodeInspection['properties'][number], value: unknown) => void;
|
|
46
|
+
setScreenForms: (forms: Form[], label: string) => void;
|
|
47
|
+
setScreenTemplateOutlets: (templateName: string, outlets: Outlet[], label: string) => void;
|
|
46
48
|
undo: () => void;
|
|
47
49
|
redo: () => void;
|
|
48
50
|
canUndo: boolean;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { DestinationReference } from '@cratis/scene.model';
|
|
2
|
+
import type { ConfigurationDestination } from '@cratis/components/ConfigurationEditor';
|
|
3
|
+
import type { ScreenEditorStrings } from './ScreenEditorStrings';
|
|
4
|
+
export interface DestinationReferenceFieldsProps {
|
|
5
|
+
id: string;
|
|
6
|
+
label: string;
|
|
7
|
+
value: DestinationReference | undefined;
|
|
8
|
+
destinations: readonly ConfigurationDestination[];
|
|
9
|
+
outlets: readonly string[];
|
|
10
|
+
dialogTemplates: readonly string[];
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
strings: ScreenEditorStrings['properties']['destination'];
|
|
13
|
+
onChange: (destination: DestinationReference | undefined) => void;
|
|
14
|
+
}
|
|
15
|
+
export declare const DestinationReferenceFields: ({ id, label, value, destinations, outlets, dialogTemplates, disabled, strings, onChange }: DestinationReferenceFieldsProps) => import("react").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Outlet } from '@cratis/scene.model';
|
|
2
|
+
import type { ScreenEditorStrings } from './ScreenEditorStrings';
|
|
3
|
+
export interface OutletListEditorProps {
|
|
4
|
+
outlets: readonly Outlet[];
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
strings: ScreenEditorStrings['properties']['outlets'];
|
|
7
|
+
onChange: (outlets: Outlet[]) => void;
|
|
8
|
+
}
|
|
9
|
+
export declare const OutletListEditor: ({ outlets, disabled, strings, onChange }: OutletListEditorProps) => import("react").JSX.Element;
|
|
@@ -70,6 +70,28 @@ export interface ScreenEditorStrings {
|
|
|
70
70
|
anyScope: string;
|
|
71
71
|
missing: (template: string) => string;
|
|
72
72
|
};
|
|
73
|
+
outlets: {
|
|
74
|
+
label: string;
|
|
75
|
+
name: string;
|
|
76
|
+
description: string;
|
|
77
|
+
add: string;
|
|
78
|
+
remove: string;
|
|
79
|
+
moveUp: string;
|
|
80
|
+
moveDown: string;
|
|
81
|
+
unnamed: string;
|
|
82
|
+
newOutletName: string;
|
|
83
|
+
};
|
|
84
|
+
destination: {
|
|
85
|
+
label: string;
|
|
86
|
+
screen: string;
|
|
87
|
+
noScreen: string;
|
|
88
|
+
missingScreen: (screen: string) => string;
|
|
89
|
+
route: string;
|
|
90
|
+
routePlaceholder: string;
|
|
91
|
+
outlet: string;
|
|
92
|
+
dialog: string;
|
|
93
|
+
clear: string;
|
|
94
|
+
};
|
|
73
95
|
forms: {
|
|
74
96
|
label: string;
|
|
75
97
|
add: string;
|
|
@@ -79,6 +101,7 @@ export interface ScreenEditorStrings {
|
|
|
79
101
|
manual: string;
|
|
80
102
|
fieldLabel: string;
|
|
81
103
|
sourceProperty: string;
|
|
104
|
+
fieldComposition: string;
|
|
82
105
|
remove: string;
|
|
83
106
|
};
|
|
84
107
|
binding: {
|
|
@@ -15,6 +15,7 @@ export interface ScreenEditSession {
|
|
|
15
15
|
export declare const maximumHistory = 100;
|
|
16
16
|
export declare function openSession(document: SceneDocument): ScreenEditSession;
|
|
17
17
|
export declare function applyToSession(session: ScreenEditSession, edit: SceneEdit, context: EditingContext, label: string): ScreenEditSession;
|
|
18
|
+
export declare function changeDocumentInSession(session: ScreenEditSession, document: SceneDocument, label: string): ScreenEditSession;
|
|
18
19
|
export declare function applyAllToSession(session: ScreenEditSession, edits: SceneEdit[], context: EditingContext, label: string): ScreenEditSession;
|
|
19
20
|
export declare const canUndo: (session: ScreenEditSession) => boolean;
|
|
20
21
|
export declare const canRedo: (session: ScreenEditSession) => boolean;
|