@omnia/fx 8.0.559-dev → 8.0.560-dev
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/internal-do-not-import-from-here/ux/aurora/admin/theme-designer/componentblueprints/store/ComponentEditorStore.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/aurora/admin/theme-designer/themes/store/ThemeEditorStore.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/editorchrome/stores/EditorChromeStoreV2.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/DefineLayoutEditorCanvas.d.ts +10 -2
- package/internal-do-not-import-from-here/ux/layoutcanvas/editor/LayoutEditorCanvas.d.ts +4 -219
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasEditorStore.d.ts +6 -2
- package/internal-do-not-import-from-here/ux/layoutcanvas/stores/LayoutCanvasStoreV2.d.ts +5 -1
- package/internal-do-not-import-from-here/ux/monaco/MonacoEditor.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/column/Column.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/column/Column.stylex.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/rollup/views/CardView.d.ts +3 -1
- package/internal-do-not-import-from-here/ux/velcron/editor/hooks/canvasEditorHooks.d.ts +7 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/hooks/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/store/VelcronCanvasStoreV2.d.ts +96 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/store/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/store/tempDefinition.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/views/DefineVelcronCanvasConfig.d.ts +358 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/views/DefineVelcronEditorView.d.ts +266 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/views/DefineVelcronTemplatesConfig.d.ts +357 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/views/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/editor_old/VelcronEditor.d.ts +27 -0
- package/internal-do-not-import-from-here/ux/velcron/editor_old/components/panels/edit-component/StylingPanel.d.ts +16 -0
- package/internal-do-not-import-from-here/ux/velcron/editor_old/components/panels/edit-editors/EditEditorsPanel.d.ts +16 -0
- package/internal-do-not-import-from-here/ux/versionedlayout/editor/views/DefineDefaultView.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/versionedlayout/stores/VersionedLayoutEditorStoreV2.d.ts +1 -1
- package/internal-do-not-import-from-here/wctypings.d.ts +12 -3
- package/package.json +2 -2
- /package/internal-do-not-import-from-here/ux/velcron/editor/{components/AddDataObject.d.ts → drawers/settings/VelcronSettingsPanel.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/editor/{components/CodeEditor.d.ts → drawers/source-code/VelcronSourceDefinitionPanel.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/VelcronEditor.css.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/VelcronEditorAction.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/VelcronEditorClickHandler.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/AddApp.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor/components/panels/edit-component/ConditionalStatements.d.ts → editor_old/components/AddDataObject.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/AddItem.css.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/AddItem.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/AppExplorer.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor/components/panels/edit-component/EventsPanel.d.ts → editor_old/components/CodeEditor.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/ComponentStyles.css.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/ContextMenu.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/EditComponentPane.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/EditDataPane.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/EditDefinitionPropertiesPane.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/EditEditorsPane.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/EditorCanvas.css.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/EditorCanvas.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/StateTree.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor/components/panels/edit-component/StylingPanel.d.ts → editor_old/components/panels/edit-component/ConditionalStatements.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor/components/panels/edit-editors/EditEditorsPanel.d.ts → editor_old/components/panels/edit-component/EventsPanel.d.ts} +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/panels/edit-component/PropertiesPanel.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/components/panels/edit-data/EditDataMemberPanel.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/CodeEditor.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/ComponentDescriptors.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/ComponentPropertyDescriptorTemplates.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/ComponentePropertiesGroupDescriptorTemplates.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/Enums.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/EventDescriptors.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/Shared.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/StateDescriptors.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/VelcronDescriptors.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/VelcronEditorDescriptors.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/models/index.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/stores/VelcronComponentStore.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/stores/VelcronEditorStore.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/stores/index.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/templates/ComponentTemplates.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/templates/ContentTemplates.d.ts +0 -0
- /package/internal-do-not-import-from-here/ux/velcron/{editor → editor_old}/templates/EditorTemplates.d.ts +0 -0
package/internal-do-not-import-from-here/ux/velcron/editor/views/DefineVelcronCanvasConfig.d.ts
ADDED
|
@@ -0,0 +1,358 @@
|
|
|
1
|
+
import { guid } from "@omnia/fx-models";
|
|
2
|
+
import { useEditorChromeStore } from "@omnia/fx/ux";
|
|
3
|
+
import { ChromeActionItem, EditorChromeConfiguration } from "@omnia/fx/ux/editor";
|
|
4
|
+
export declare const defineVelcronEditorCanvasConfiguration: (param1: {
|
|
5
|
+
state: {
|
|
6
|
+
id: guid;
|
|
7
|
+
finishedLoading: boolean;
|
|
8
|
+
compactMode: boolean;
|
|
9
|
+
navigation: {
|
|
10
|
+
configuration: import("@omnia/fx/ux/editor").EditorChromeNavigationConfiguration;
|
|
11
|
+
enabled: boolean;
|
|
12
|
+
show: boolean;
|
|
13
|
+
};
|
|
14
|
+
drawers: {
|
|
15
|
+
right: {
|
|
16
|
+
panel: {
|
|
17
|
+
settings: import("@omnia/fx/ux/editor").EditorChromePanel;
|
|
18
|
+
show: boolean;
|
|
19
|
+
actions: ChromeActionItem[];
|
|
20
|
+
footerToolbar: {
|
|
21
|
+
actionsLeft: ChromeActionItem[];
|
|
22
|
+
actionsCenter: ChromeActionItem[];
|
|
23
|
+
actionsRight: ChromeActionItem[];
|
|
24
|
+
ExtendActionsRight: ChromeActionItem[];
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
canvas: {
|
|
28
|
+
enabled: boolean;
|
|
29
|
+
show: boolean;
|
|
30
|
+
customScroll: boolean;
|
|
31
|
+
header: {
|
|
32
|
+
enabled: boolean;
|
|
33
|
+
icon: import("@omnia/fx-models").IIcon;
|
|
34
|
+
title: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
views: {
|
|
40
|
+
active: import("@omnia/fx/ux").EditorChromeViewRegistration;
|
|
41
|
+
registrations: import("@omnia/fx/ux").EditorChromeViewRegistration[];
|
|
42
|
+
history: {
|
|
43
|
+
items: {
|
|
44
|
+
id: guid;
|
|
45
|
+
timestamp: number;
|
|
46
|
+
}[];
|
|
47
|
+
currentIndex: number;
|
|
48
|
+
maxSize: number;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
canvasSettings: {
|
|
52
|
+
scroll: {
|
|
53
|
+
store: {
|
|
54
|
+
state: {
|
|
55
|
+
elementRef: HTMLElement;
|
|
56
|
+
elementId: string;
|
|
57
|
+
disableScrolling: boolean;
|
|
58
|
+
height: string;
|
|
59
|
+
width: string;
|
|
60
|
+
scrollingDirection: import("@omnia/fx-models").OScrollTypesCombination;
|
|
61
|
+
coordinates: {
|
|
62
|
+
readonly left: number;
|
|
63
|
+
readonly right: number;
|
|
64
|
+
readonly top: number;
|
|
65
|
+
readonly bottom: number;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
events: import("../../../mobile").StoreEvents<{
|
|
69
|
+
elementRef: HTMLElement;
|
|
70
|
+
elementId: string;
|
|
71
|
+
disableScrolling: boolean;
|
|
72
|
+
height: string;
|
|
73
|
+
width: string;
|
|
74
|
+
scrollingDirection: import("@omnia/fx-models").OScrollTypesCombination;
|
|
75
|
+
coordinates: {
|
|
76
|
+
readonly left: number;
|
|
77
|
+
readonly right: number;
|
|
78
|
+
readonly top: number;
|
|
79
|
+
readonly bottom: number;
|
|
80
|
+
};
|
|
81
|
+
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
|
82
|
+
actions: import("../../../mobile").StoreReturnDefineAction<{
|
|
83
|
+
scroll: () => void;
|
|
84
|
+
setDisableScrolling: (disable: boolean) => void;
|
|
85
|
+
calculateDynamicHeight: () => void;
|
|
86
|
+
setHeight: (height: string) => void;
|
|
87
|
+
setWidth: (width: string) => void;
|
|
88
|
+
setScrolling: (scrolling: import("@omnia/fx-models").OScrollTypesCombination) => void;
|
|
89
|
+
calculateScrollHeight: (referenceElementIds: string[]) => void;
|
|
90
|
+
isElementNameStillInView: (elementName: string) => boolean;
|
|
91
|
+
isElementIdStillInView: (elementId: string) => boolean;
|
|
92
|
+
scrollToStart: () => void;
|
|
93
|
+
scrollToElementId: (elementId: string, anchor?: import("@omnia/fx/ux").AnchorPosition, handler?: (target: HTMLElement, container: HTMLElement) => void, immediate?: boolean) => void;
|
|
94
|
+
scrollToElementName: (elementName: string, anchor?: import("@omnia/fx/ux").AnchorPosition) => void;
|
|
95
|
+
scrollToElement: (element: HTMLElement, anchor?: import("@omnia/fx/ux").AnchorPosition, handler?: (target: HTMLElement, container: HTMLElement) => void) => void;
|
|
96
|
+
scrollToSelector: (selector: string, anchor?: import("@omnia/fx/ux").AnchorPosition, handler?: (target: HTMLElement, container: HTMLElement) => void, immediate?: boolean) => void;
|
|
97
|
+
}>;
|
|
98
|
+
get: {
|
|
99
|
+
readonly coordinates: {
|
|
100
|
+
readonly left: number;
|
|
101
|
+
readonly right: number;
|
|
102
|
+
readonly top: number;
|
|
103
|
+
readonly bottom: number;
|
|
104
|
+
};
|
|
105
|
+
readonly scrollPosition: number;
|
|
106
|
+
};
|
|
107
|
+
} & {
|
|
108
|
+
dispose?: () => void;
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
zoom: {
|
|
112
|
+
enabled: boolean;
|
|
113
|
+
level: number;
|
|
114
|
+
};
|
|
115
|
+
displaySize: {
|
|
116
|
+
enabled: boolean;
|
|
117
|
+
value: "l" | "s" | "m";
|
|
118
|
+
store: {
|
|
119
|
+
state: {
|
|
120
|
+
width: string;
|
|
121
|
+
zoomLevel: number;
|
|
122
|
+
};
|
|
123
|
+
events: import("../../../mobile").StoreEvents<{
|
|
124
|
+
width: string;
|
|
125
|
+
zoomLevel: number;
|
|
126
|
+
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
|
127
|
+
actions: import("../../../mobile").StoreReturnDefineAction<{
|
|
128
|
+
setWidth: (width: string) => void;
|
|
129
|
+
resetWidth: () => void;
|
|
130
|
+
setBreakPoint: (breakPoint: import("@omnia/fx-models").DisplayBreakpointTypes) => void;
|
|
131
|
+
resetZoomLevel: () => void;
|
|
132
|
+
setZoomLevel: (zoomLevel: number) => void;
|
|
133
|
+
}>;
|
|
134
|
+
get: {};
|
|
135
|
+
} & {
|
|
136
|
+
dispose?: () => void;
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
};
|
|
140
|
+
notificationMessage: {
|
|
141
|
+
key: guid;
|
|
142
|
+
message: string;
|
|
143
|
+
show: boolean;
|
|
144
|
+
timeout: number;
|
|
145
|
+
customRenderer: string;
|
|
146
|
+
};
|
|
147
|
+
operations: {
|
|
148
|
+
id: guid;
|
|
149
|
+
loading: boolean;
|
|
150
|
+
}[];
|
|
151
|
+
};
|
|
152
|
+
actions: import("../../../mobile").StoreReturnDefineAction<{
|
|
153
|
+
canvas: () => {
|
|
154
|
+
syncDisplaySettings: () => Promise<void>;
|
|
155
|
+
setDisplayBreakPoint: (value: import("@omnia/fx-models").DisplayBreakpointTypes) => void;
|
|
156
|
+
zoomIn: (step?: number) => void;
|
|
157
|
+
zoomOut: (step?: number) => void;
|
|
158
|
+
setZoom: (level: number) => void;
|
|
159
|
+
resetZoom: () => void;
|
|
160
|
+
};
|
|
161
|
+
editor: () => {
|
|
162
|
+
resetForNewActiveConfiguration: () => void;
|
|
163
|
+
};
|
|
164
|
+
views: () => {
|
|
165
|
+
register: (editorView: import("@omnia/fx/ux/editor").EditorChromeView | import("@omnia/fx/ux/editor").EditorChromeView[]) => void;
|
|
166
|
+
active: {
|
|
167
|
+
set: (view: import("@omnia/fx/ux/editor").EditorChromeView, addToHistory?: boolean) => void;
|
|
168
|
+
clear: () => void;
|
|
169
|
+
configuration: {
|
|
170
|
+
set: (configuration: EditorChromeConfiguration) => void;
|
|
171
|
+
};
|
|
172
|
+
};
|
|
173
|
+
remove: (view: import("@omnia/fx/ux/editor").EditorChromeView) => void;
|
|
174
|
+
history: {
|
|
175
|
+
removeCurrent: () => void;
|
|
176
|
+
goBack: () => boolean;
|
|
177
|
+
goForward: () => boolean;
|
|
178
|
+
addToHistory: (view: import("@omnia/fx/ux/editor").EditorChromeView) => void;
|
|
179
|
+
clear: () => void;
|
|
180
|
+
};
|
|
181
|
+
};
|
|
182
|
+
showNotification: (message: import("@omnia/fx-models").NotificationMessage) => void;
|
|
183
|
+
operations: () => {
|
|
184
|
+
create: (showLoading?: boolean) => import("@omnia/fx-models").Future<null>;
|
|
185
|
+
setLoading: () => import("@omnia/fx-models").Future<null>;
|
|
186
|
+
register: (showLoading?: boolean) => guid;
|
|
187
|
+
unregister: (operationId: guid) => boolean;
|
|
188
|
+
clear: () => void;
|
|
189
|
+
waitForCompletion: () => Promise<void>;
|
|
190
|
+
};
|
|
191
|
+
navigation: () => {
|
|
192
|
+
register: (navigationItem: import("@omnia/fx/ux/editor").EditorChromeNavigationConfiguration) => void;
|
|
193
|
+
show: (value: boolean) => void;
|
|
194
|
+
toggle: () => void;
|
|
195
|
+
};
|
|
196
|
+
drawers: () => {
|
|
197
|
+
right: {
|
|
198
|
+
panel: {
|
|
199
|
+
show: (panel: import("@omnia/fx/ux/editor").EditorChromePanel) => void;
|
|
200
|
+
footerToolbar: {
|
|
201
|
+
add: {
|
|
202
|
+
action: (action: ChromeActionItem | ChromeActionItem[], position?: "left" | "center" | "right" | "extended-right") => void;
|
|
203
|
+
};
|
|
204
|
+
};
|
|
205
|
+
close: () => void;
|
|
206
|
+
};
|
|
207
|
+
canvas: {
|
|
208
|
+
configure: (header: {
|
|
209
|
+
icon?: import("@omnia/fx-models").IIcon;
|
|
210
|
+
title?: string;
|
|
211
|
+
enabled?: boolean;
|
|
212
|
+
}, customScroll?: boolean) => void;
|
|
213
|
+
toolbar: {
|
|
214
|
+
enable: (value: boolean) => void;
|
|
215
|
+
};
|
|
216
|
+
syncButtons: (currentId: guid) => void;
|
|
217
|
+
toggle: () => void;
|
|
218
|
+
show: (value: boolean) => void;
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
init: () => void;
|
|
223
|
+
dispose: () => void;
|
|
224
|
+
}>;
|
|
225
|
+
get: {
|
|
226
|
+
views: {
|
|
227
|
+
active: () => import("@omnia/fx/ux/editor").EditorChromeView;
|
|
228
|
+
all: () => import("@omnia/fx/ux/editor").EditorChromeView[];
|
|
229
|
+
byId: (id: guid) => import("@omnia/fx/ux/editor").EditorChromeView;
|
|
230
|
+
};
|
|
231
|
+
operations: {
|
|
232
|
+
all: () => guid[];
|
|
233
|
+
has: (operationId: guid) => boolean;
|
|
234
|
+
count: () => number;
|
|
235
|
+
};
|
|
236
|
+
history: () => {
|
|
237
|
+
view: import("@omnia/fx/ux/editor").EditorChromeView;
|
|
238
|
+
id: guid;
|
|
239
|
+
timestamp: number;
|
|
240
|
+
}[];
|
|
241
|
+
};
|
|
242
|
+
rules: {
|
|
243
|
+
showLoading: () => boolean;
|
|
244
|
+
history: {
|
|
245
|
+
canGoBack: () => boolean;
|
|
246
|
+
canGoForward: () => boolean;
|
|
247
|
+
};
|
|
248
|
+
views: {
|
|
249
|
+
hasActive: () => boolean;
|
|
250
|
+
active: {
|
|
251
|
+
configuration: {
|
|
252
|
+
hasActive: () => boolean;
|
|
253
|
+
hasBackgNavigation: () => boolean;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
utils: {
|
|
259
|
+
configuration: {
|
|
260
|
+
extend: (target: EditorChromeConfiguration, configuration: EditorChromeConfiguration) => void;
|
|
261
|
+
};
|
|
262
|
+
};
|
|
263
|
+
} & {
|
|
264
|
+
dispose?: () => void;
|
|
265
|
+
}) => {
|
|
266
|
+
configuration: EditorChromeConfiguration;
|
|
267
|
+
store: {
|
|
268
|
+
state: {
|
|
269
|
+
editing: {
|
|
270
|
+
definition: import("@omnia/fx-models").VelcronAppDefinition<object>;
|
|
271
|
+
};
|
|
272
|
+
source: {
|
|
273
|
+
editMode: import("../store").CodeViewMode;
|
|
274
|
+
json: {
|
|
275
|
+
app: string;
|
|
276
|
+
appState: string;
|
|
277
|
+
appBody: string;
|
|
278
|
+
appEditors: string;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
drawerMode: "settings" | "picker" | "definition-structure" | "code-editor";
|
|
282
|
+
selection: {
|
|
283
|
+
item: import("@omnia/fx-models").VelcronDefinition;
|
|
284
|
+
};
|
|
285
|
+
settings: {
|
|
286
|
+
colorSchemaType: string;
|
|
287
|
+
canvasMode: {
|
|
288
|
+
current: "preview" | "design";
|
|
289
|
+
previous: "preview" | "design";
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
};
|
|
293
|
+
events: import("../../../mobile").StoreEvents<{
|
|
294
|
+
editing: {
|
|
295
|
+
definition: import("@omnia/fx-models").VelcronAppDefinition<object>;
|
|
296
|
+
};
|
|
297
|
+
source: {
|
|
298
|
+
editMode: import("../store").CodeViewMode;
|
|
299
|
+
json: {
|
|
300
|
+
app: string;
|
|
301
|
+
appState: string;
|
|
302
|
+
appBody: string;
|
|
303
|
+
appEditors: string;
|
|
304
|
+
};
|
|
305
|
+
};
|
|
306
|
+
drawerMode: "settings" | "picker" | "definition-structure" | "code-editor";
|
|
307
|
+
selection: {
|
|
308
|
+
item: import("@omnia/fx-models").VelcronDefinition;
|
|
309
|
+
};
|
|
310
|
+
settings: {
|
|
311
|
+
colorSchemaType: string;
|
|
312
|
+
canvasMode: {
|
|
313
|
+
current: "preview" | "design";
|
|
314
|
+
previous: "preview" | "design";
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
|
318
|
+
actions: import("../../../mobile").StoreReturnDefineAction<{
|
|
319
|
+
editor: () => import("../../../mobile").StoreReturnDefineAction<{
|
|
320
|
+
selectItem: (item: import("@omnia/fx-models").VelcronDefinition) => void;
|
|
321
|
+
}>;
|
|
322
|
+
show: () => import("../../../mobile").StoreReturnDefineAction<{
|
|
323
|
+
sourcePanel: (action: "show" | "hide" | "toggle") => void;
|
|
324
|
+
settingsPanel: (action: "show" | "hide" | "toggle") => void;
|
|
325
|
+
}>;
|
|
326
|
+
canvas: () => import("../../../mobile").StoreReturnDefineAction<{
|
|
327
|
+
setMode: (mode: "preview" | "design") => void;
|
|
328
|
+
}>;
|
|
329
|
+
template: () => import("../../../mobile").StoreReturnDefineAction<{
|
|
330
|
+
update: () => {
|
|
331
|
+
byJson: (json: string) => void;
|
|
332
|
+
};
|
|
333
|
+
edit: () => {
|
|
334
|
+
byResolverReference: (ref: import("@omnia/fx-models").VelcronRendererResolverReference) => void;
|
|
335
|
+
definition: (definition: import("@omnia/fx-models").VelcronAppDefinition) => void;
|
|
336
|
+
};
|
|
337
|
+
}>;
|
|
338
|
+
init: (editorChromeStoreRef: ReturnType<typeof useEditorChromeStore>) => void;
|
|
339
|
+
}>;
|
|
340
|
+
get: {
|
|
341
|
+
ready: () => import("@omnia/fx-models").Future<void>;
|
|
342
|
+
canvas: {
|
|
343
|
+
mode: () => "preview" | "design";
|
|
344
|
+
};
|
|
345
|
+
};
|
|
346
|
+
rules: {
|
|
347
|
+
is: {
|
|
348
|
+
selected: (item: import("@omnia/fx-models").VelcronDefinition) => boolean;
|
|
349
|
+
editorEmpty: () => boolean;
|
|
350
|
+
settingsActive: () => boolean;
|
|
351
|
+
codeEditorActive: () => boolean;
|
|
352
|
+
};
|
|
353
|
+
};
|
|
354
|
+
} & {
|
|
355
|
+
dispose?: () => void;
|
|
356
|
+
};
|
|
357
|
+
refresh(): void;
|
|
358
|
+
};
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { guid } from "@omnia/fx/models";
|
|
2
|
+
import { EditorChromeView } from "@omnia/fx/ux/editor";
|
|
3
|
+
export declare const defineVelcronEditorView: (param1: {
|
|
4
|
+
state: {
|
|
5
|
+
id: guid;
|
|
6
|
+
finishedLoading: boolean;
|
|
7
|
+
compactMode: boolean;
|
|
8
|
+
navigation: {
|
|
9
|
+
configuration: import("@omnia/fx/ux/editor").EditorChromeNavigationConfiguration;
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
show: boolean;
|
|
12
|
+
};
|
|
13
|
+
drawers: {
|
|
14
|
+
right: {
|
|
15
|
+
panel: {
|
|
16
|
+
settings: import("@omnia/fx/ux/editor").EditorChromePanel;
|
|
17
|
+
show: boolean;
|
|
18
|
+
actions: import("@omnia/fx/ux/editor").ChromeActionItem[];
|
|
19
|
+
footerToolbar: {
|
|
20
|
+
actionsLeft: import("@omnia/fx/ux/editor").ChromeActionItem[];
|
|
21
|
+
actionsCenter: import("@omnia/fx/ux/editor").ChromeActionItem[];
|
|
22
|
+
actionsRight: import("@omnia/fx/ux/editor").ChromeActionItem[];
|
|
23
|
+
ExtendActionsRight: import("@omnia/fx/ux/editor").ChromeActionItem[];
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
canvas: {
|
|
27
|
+
enabled: boolean;
|
|
28
|
+
show: boolean;
|
|
29
|
+
customScroll: boolean;
|
|
30
|
+
header: {
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
icon: import("@omnia/fx-models").IIcon;
|
|
33
|
+
title: string;
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
};
|
|
38
|
+
views: {
|
|
39
|
+
active: import("@omnia/fx/ux").EditorChromeViewRegistration;
|
|
40
|
+
registrations: import("@omnia/fx/ux").EditorChromeViewRegistration[];
|
|
41
|
+
history: {
|
|
42
|
+
items: {
|
|
43
|
+
id: guid;
|
|
44
|
+
timestamp: number;
|
|
45
|
+
}[];
|
|
46
|
+
currentIndex: number;
|
|
47
|
+
maxSize: number;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
canvasSettings: {
|
|
51
|
+
scroll: {
|
|
52
|
+
store: {
|
|
53
|
+
state: {
|
|
54
|
+
elementRef: HTMLElement;
|
|
55
|
+
elementId: string;
|
|
56
|
+
disableScrolling: boolean;
|
|
57
|
+
height: string;
|
|
58
|
+
width: string;
|
|
59
|
+
scrollingDirection: import("@omnia/fx-models").OScrollTypesCombination;
|
|
60
|
+
coordinates: {
|
|
61
|
+
readonly left: number;
|
|
62
|
+
readonly right: number;
|
|
63
|
+
readonly top: number;
|
|
64
|
+
readonly bottom: number;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
events: import("../../../mobile").StoreEvents<{
|
|
68
|
+
elementRef: HTMLElement;
|
|
69
|
+
elementId: string;
|
|
70
|
+
disableScrolling: boolean;
|
|
71
|
+
height: string;
|
|
72
|
+
width: string;
|
|
73
|
+
scrollingDirection: import("@omnia/fx-models").OScrollTypesCombination;
|
|
74
|
+
coordinates: {
|
|
75
|
+
readonly left: number;
|
|
76
|
+
readonly right: number;
|
|
77
|
+
readonly top: number;
|
|
78
|
+
readonly bottom: number;
|
|
79
|
+
};
|
|
80
|
+
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
|
81
|
+
actions: import("../../../mobile").StoreReturnDefineAction<{
|
|
82
|
+
scroll: () => void;
|
|
83
|
+
setDisableScrolling: (disable: boolean) => void;
|
|
84
|
+
calculateDynamicHeight: () => void;
|
|
85
|
+
setHeight: (height: string) => void;
|
|
86
|
+
setWidth: (width: string) => void;
|
|
87
|
+
setScrolling: (scrolling: import("@omnia/fx-models").OScrollTypesCombination) => void;
|
|
88
|
+
calculateScrollHeight: (referenceElementIds: string[]) => void;
|
|
89
|
+
isElementNameStillInView: (elementName: string) => boolean;
|
|
90
|
+
isElementIdStillInView: (elementId: string) => boolean;
|
|
91
|
+
scrollToStart: () => void;
|
|
92
|
+
scrollToElementId: (elementId: string, anchor?: import("@omnia/fx/ux").AnchorPosition, handler?: (target: HTMLElement, container: HTMLElement) => void, immediate?: boolean) => void;
|
|
93
|
+
scrollToElementName: (elementName: string, anchor?: import("@omnia/fx/ux").AnchorPosition) => void;
|
|
94
|
+
scrollToElement: (element: HTMLElement, anchor?: import("@omnia/fx/ux").AnchorPosition, handler?: (target: HTMLElement, container: HTMLElement) => void) => void;
|
|
95
|
+
scrollToSelector: (selector: string, anchor?: import("@omnia/fx/ux").AnchorPosition, handler?: (target: HTMLElement, container: HTMLElement) => void, immediate?: boolean) => void;
|
|
96
|
+
}>;
|
|
97
|
+
get: {
|
|
98
|
+
readonly coordinates: {
|
|
99
|
+
readonly left: number;
|
|
100
|
+
readonly right: number;
|
|
101
|
+
readonly top: number;
|
|
102
|
+
readonly bottom: number;
|
|
103
|
+
};
|
|
104
|
+
readonly scrollPosition: number;
|
|
105
|
+
};
|
|
106
|
+
} & {
|
|
107
|
+
dispose?: () => void;
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
zoom: {
|
|
111
|
+
enabled: boolean;
|
|
112
|
+
level: number;
|
|
113
|
+
};
|
|
114
|
+
displaySize: {
|
|
115
|
+
enabled: boolean;
|
|
116
|
+
value: "l" | "s" | "m";
|
|
117
|
+
store: {
|
|
118
|
+
state: {
|
|
119
|
+
width: string;
|
|
120
|
+
zoomLevel: number;
|
|
121
|
+
};
|
|
122
|
+
events: import("../../../mobile").StoreEvents<{
|
|
123
|
+
width: string;
|
|
124
|
+
zoomLevel: number;
|
|
125
|
+
}, Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>>;
|
|
126
|
+
actions: import("../../../mobile").StoreReturnDefineAction<{
|
|
127
|
+
setWidth: (width: string) => void;
|
|
128
|
+
resetWidth: () => void;
|
|
129
|
+
setBreakPoint: (breakPoint: import("@omnia/fx-models").DisplayBreakpointTypes) => void;
|
|
130
|
+
resetZoomLevel: () => void;
|
|
131
|
+
setZoomLevel: (zoomLevel: number) => void;
|
|
132
|
+
}>;
|
|
133
|
+
get: {};
|
|
134
|
+
} & {
|
|
135
|
+
dispose?: () => void;
|
|
136
|
+
};
|
|
137
|
+
};
|
|
138
|
+
};
|
|
139
|
+
notificationMessage: {
|
|
140
|
+
key: guid;
|
|
141
|
+
message: string;
|
|
142
|
+
show: boolean;
|
|
143
|
+
timeout: number;
|
|
144
|
+
customRenderer: string;
|
|
145
|
+
};
|
|
146
|
+
operations: {
|
|
147
|
+
id: guid;
|
|
148
|
+
loading: boolean;
|
|
149
|
+
}[];
|
|
150
|
+
};
|
|
151
|
+
actions: import("../../../mobile").StoreReturnDefineAction<{
|
|
152
|
+
canvas: () => {
|
|
153
|
+
syncDisplaySettings: () => Promise<void>;
|
|
154
|
+
setDisplayBreakPoint: (value: import("@omnia/fx-models").DisplayBreakpointTypes) => void;
|
|
155
|
+
zoomIn: (step?: number) => void;
|
|
156
|
+
zoomOut: (step?: number) => void;
|
|
157
|
+
setZoom: (level: number) => void;
|
|
158
|
+
resetZoom: () => void;
|
|
159
|
+
};
|
|
160
|
+
editor: () => {
|
|
161
|
+
resetForNewActiveConfiguration: () => void;
|
|
162
|
+
};
|
|
163
|
+
views: () => {
|
|
164
|
+
register: (editorView: EditorChromeView | EditorChromeView[]) => void;
|
|
165
|
+
active: {
|
|
166
|
+
set: (view: EditorChromeView, addToHistory?: boolean) => void;
|
|
167
|
+
clear: () => void;
|
|
168
|
+
configuration: {
|
|
169
|
+
set: (configuration: import("@omnia/fx/ux/editor").EditorChromeConfiguration) => void;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
remove: (view: EditorChromeView) => void;
|
|
173
|
+
history: {
|
|
174
|
+
removeCurrent: () => void;
|
|
175
|
+
goBack: () => boolean;
|
|
176
|
+
goForward: () => boolean;
|
|
177
|
+
addToHistory: (view: EditorChromeView) => void;
|
|
178
|
+
clear: () => void;
|
|
179
|
+
};
|
|
180
|
+
};
|
|
181
|
+
showNotification: (message: import("@omnia/fx-models").NotificationMessage) => void;
|
|
182
|
+
operations: () => {
|
|
183
|
+
create: (showLoading?: boolean) => import("@omnia/fx-models").Future<null>;
|
|
184
|
+
setLoading: () => import("@omnia/fx-models").Future<null>;
|
|
185
|
+
register: (showLoading?: boolean) => guid;
|
|
186
|
+
unregister: (operationId: guid) => boolean;
|
|
187
|
+
clear: () => void;
|
|
188
|
+
waitForCompletion: () => Promise<void>;
|
|
189
|
+
};
|
|
190
|
+
navigation: () => {
|
|
191
|
+
register: (navigationItem: import("@omnia/fx/ux/editor").EditorChromeNavigationConfiguration) => void;
|
|
192
|
+
show: (value: boolean) => void;
|
|
193
|
+
toggle: () => void;
|
|
194
|
+
};
|
|
195
|
+
drawers: () => {
|
|
196
|
+
right: {
|
|
197
|
+
panel: {
|
|
198
|
+
show: (panel: import("@omnia/fx/ux/editor").EditorChromePanel) => void;
|
|
199
|
+
footerToolbar: {
|
|
200
|
+
add: {
|
|
201
|
+
action: (action: import("@omnia/fx/ux/editor").ChromeActionItem | import("@omnia/fx/ux/editor").ChromeActionItem[], position?: "left" | "center" | "right" | "extended-right") => void;
|
|
202
|
+
};
|
|
203
|
+
};
|
|
204
|
+
close: () => void;
|
|
205
|
+
};
|
|
206
|
+
canvas: {
|
|
207
|
+
configure: (header: {
|
|
208
|
+
icon?: import("@omnia/fx-models").IIcon;
|
|
209
|
+
title?: string;
|
|
210
|
+
enabled?: boolean;
|
|
211
|
+
}, customScroll?: boolean) => void;
|
|
212
|
+
toolbar: {
|
|
213
|
+
enable: (value: boolean) => void;
|
|
214
|
+
};
|
|
215
|
+
syncButtons: (currentId: guid) => void;
|
|
216
|
+
toggle: () => void;
|
|
217
|
+
show: (value: boolean) => void;
|
|
218
|
+
};
|
|
219
|
+
};
|
|
220
|
+
};
|
|
221
|
+
init: () => void;
|
|
222
|
+
dispose: () => void;
|
|
223
|
+
}>;
|
|
224
|
+
get: {
|
|
225
|
+
views: {
|
|
226
|
+
active: () => EditorChromeView;
|
|
227
|
+
all: () => EditorChromeView[];
|
|
228
|
+
byId: (id: guid) => EditorChromeView;
|
|
229
|
+
};
|
|
230
|
+
operations: {
|
|
231
|
+
all: () => guid[];
|
|
232
|
+
has: (operationId: guid) => boolean;
|
|
233
|
+
count: () => number;
|
|
234
|
+
};
|
|
235
|
+
history: () => {
|
|
236
|
+
view: EditorChromeView;
|
|
237
|
+
id: guid;
|
|
238
|
+
timestamp: number;
|
|
239
|
+
}[];
|
|
240
|
+
};
|
|
241
|
+
rules: {
|
|
242
|
+
showLoading: () => boolean;
|
|
243
|
+
history: {
|
|
244
|
+
canGoBack: () => boolean;
|
|
245
|
+
canGoForward: () => boolean;
|
|
246
|
+
};
|
|
247
|
+
views: {
|
|
248
|
+
hasActive: () => boolean;
|
|
249
|
+
active: {
|
|
250
|
+
configuration: {
|
|
251
|
+
hasActive: () => boolean;
|
|
252
|
+
hasBackgNavigation: () => boolean;
|
|
253
|
+
};
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
utils: {
|
|
258
|
+
configuration: {
|
|
259
|
+
extend: (target: import("@omnia/fx/ux/editor").EditorChromeConfiguration, configuration: import("@omnia/fx/ux/editor").EditorChromeConfiguration) => void;
|
|
260
|
+
};
|
|
261
|
+
};
|
|
262
|
+
} & {
|
|
263
|
+
dispose?: () => void;
|
|
264
|
+
}) => {
|
|
265
|
+
view: EditorChromeView;
|
|
266
|
+
};
|