@omnia/fx 8.0.148-dev → 8.0.150-dev
Sign up to get free protection for your applications and to get access to all the features.
- package/internal-do-not-import-from-here/ux/TokenBasedRouter.d.ts +6 -4
- package/internal-do-not-import-from-here/ux/UxModels.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/admin/AdminRouter.d.ts +0 -1
- package/internal-do-not-import-from-here/ux/journey/stores/JourneyRouterStore.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/velcron/components/definitionpicker/VelcronDefinitionPicker.d.ts +8 -8
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronDefinitions.d.ts +4 -2
- package/internal-do-not-import-from-here/ux/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +4 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/components/AddApp.d.ts +51 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/components/AddComponent.d.ts +50 -15
- package/internal-do-not-import-from-here/ux/velcron/editor/components/AppExplorer.d.ts +61 -15
- package/internal-do-not-import-from-here/ux/velcron/editor/components/EditorCanvas.css.d.ts +0 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/components/EditorCanvas.d.ts +51 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/components/StateTree.d.ts +63 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/components/panels/edit-component/PropertiesPanel.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/velcron/editor/models/BuiltInDescriptors.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/models/Enums.d.ts +5 -0
- package/internal-do-not-import-from-here/ux/velcron/editor/models/VelcronDescriptors.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/velcron/editor/stores/VelcronEditorStore.d.ts +53 -15
- package/internal-do-not-import-from-here/ux/velcron/renderer/propertyeditors/ReferenceEditor.d.ts +62 -0
- package/package.json +2 -2
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ITokenBasedRouteContext, TokenBasedRouteStateData, IMessageBusTopicSubscription, TokenBasedRoute, InstanceLifetimes } from "../models";
|
2
2
|
import { SetupFactoryContext } from "@omnia/fx";
|
3
3
|
interface SetupRouterContext extends SetupFactoryContext {
|
4
|
-
defineRoute
|
4
|
+
defineRoute<T1 extends TokenBasedRoute, T2 extends TokenBasedRouteStateData>(buildContextPath: (routeContext: T1) => string, resolveRouteFromPath: (path: string) => T1): InternalTokenRouter<T1, T2>;
|
5
5
|
}
|
6
6
|
export declare function defineRouter<InferReturnSetup>(token: string, setup: (ctx: SetupRouterContext) => InferReturnSetup, lifeTime?: InstanceLifetimes): () => InferReturnSetup;
|
7
7
|
export declare abstract class TokenBasedRouter<T1 extends TokenBasedRoute, T2 extends TokenBasedRouteStateData> {
|
@@ -14,7 +14,7 @@ export declare abstract class TokenBasedRouter<T1 extends TokenBasedRoute, T2 ex
|
|
14
14
|
private readonly token;
|
15
15
|
private _tokenExistsOnUrl;
|
16
16
|
private _routeContext;
|
17
|
-
constructor(token: string);
|
17
|
+
constructor(token: string, autoResolveContext?: boolean);
|
18
18
|
/**
|
19
19
|
* Build the path base on the current context
|
20
20
|
*
|
@@ -27,16 +27,18 @@ export declare abstract class TokenBasedRouter<T1 extends TokenBasedRoute, T2 ex
|
|
27
27
|
protected protectedNavigate(title: string, route: T1, stateData?: T2, replaceState?: boolean): void;
|
28
28
|
protected protectedClearRoute(): void;
|
29
29
|
protected combinePathParts(...parts: string[]): string;
|
30
|
-
|
30
|
+
protected resolveContext(stateDataFromBrowserPopState?: T2): void;
|
31
31
|
static getRouterUrl(): string;
|
32
32
|
private static buildPath;
|
33
33
|
private static resolveTokenBasedContext;
|
34
34
|
private static ensureNoSlashAtTheBeginningAndTheEnd;
|
35
35
|
private static init;
|
36
36
|
}
|
37
|
-
declare class InternalTokenRouter<T1 extends TokenBasedRoute, T2 extends TokenBasedRouteStateData> extends TokenBasedRouter<T1,
|
37
|
+
declare class InternalTokenRouter<T1 extends TokenBasedRoute, T2 extends TokenBasedRouteStateData> extends TokenBasedRouter<T1, T2> {
|
38
38
|
buildContextPath: (routeContext: T1) => string;
|
39
39
|
resolveRouteFromPath: (path: string) => T1;
|
40
40
|
constructor(token: string, buildContextPath: (routeContext: T1) => string, resolveRouteFromPath: (path: string) => T1);
|
41
|
+
clearRoute(): void;
|
42
|
+
navigate(title: string, context: T1, stateData?: T2): void;
|
41
43
|
}
|
42
44
|
export {};
|
@@ -20,7 +20,6 @@ declare class InternalAdminRouter extends TokenBasedRouter<AdminRoute, TokenBase
|
|
20
20
|
* Override protected function logic
|
21
21
|
*/
|
22
22
|
protected protectedClearRoute(): void;
|
23
|
-
updateRouteContext(context: AdminRoute): void;
|
24
23
|
navigateRoot(title: string, manifestId: GuidValue, urlSegment?: string): void;
|
25
24
|
navigatePath(title: string, path: string): void;
|
26
25
|
clearRoute(): void;
|
@@ -66,6 +66,6 @@ export declare const useJourneyRouterStore: () => {
|
|
66
66
|
removeBlade(blade: JourneyBladeRouter): void;
|
67
67
|
};
|
68
68
|
events: {
|
69
|
-
onMutatedBlades: import("
|
69
|
+
onMutatedBlades: import("@omnia/fx").MessageBusExposeOnlySubscription<InternalJourneyBladeRouter[]>;
|
70
70
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
71
71
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { GuidValue, IIcon,
|
1
|
+
import { GuidValue, IIcon, VelcronState } from "@omnia/fx-models";
|
2
2
|
import { VNodeChild } from "vue";
|
3
3
|
type Variant = "dialog" | "panel" | "editor" | "default";
|
4
4
|
declare const _default: {
|
@@ -116,13 +116,13 @@ declare const _default: {
|
|
116
116
|
colors?: any;
|
117
117
|
}>> & {
|
118
118
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
119
|
-
onAdd?: (
|
119
|
+
onAdd?: () => any;
|
120
120
|
onSelected?: (id: GuidValue) => any;
|
121
121
|
"onDefinition:enter"?: (id: GuidValue) => any;
|
122
122
|
"onDefinition:leave"?: (id: GuidValue) => any;
|
123
123
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
124
124
|
selected: (id: GuidValue) => any;
|
125
|
-
add: (
|
125
|
+
add: () => any;
|
126
126
|
"update:modelValue": (value: boolean) => any;
|
127
127
|
"definition:enter": (id: GuidValue) => any;
|
128
128
|
"definition:leave": (id: GuidValue) => any;
|
@@ -240,7 +240,7 @@ declare const _default: {
|
|
240
240
|
colors?: any;
|
241
241
|
}>> & {
|
242
242
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
243
|
-
onAdd?: (
|
243
|
+
onAdd?: () => any;
|
244
244
|
onSelected?: (id: GuidValue) => any;
|
245
245
|
"onDefinition:enter"?: (id: GuidValue) => any;
|
246
246
|
"onDefinition:leave"?: (id: GuidValue) => any;
|
@@ -369,7 +369,7 @@ declare const _default: {
|
|
369
369
|
colors?: any;
|
370
370
|
}>> & {
|
371
371
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
372
|
-
onAdd?: (
|
372
|
+
onAdd?: () => any;
|
373
373
|
onSelected?: (id: GuidValue) => any;
|
374
374
|
"onDefinition:enter"?: (id: GuidValue) => any;
|
375
375
|
"onDefinition:leave"?: (id: GuidValue) => any;
|
@@ -495,13 +495,13 @@ declare const _default: {
|
|
495
495
|
colors?: any;
|
496
496
|
}>> & {
|
497
497
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
498
|
-
onAdd?: (
|
498
|
+
onAdd?: () => any;
|
499
499
|
onSelected?: (id: GuidValue) => any;
|
500
500
|
"onDefinition:enter"?: (id: GuidValue) => any;
|
501
501
|
"onDefinition:leave"?: (id: GuidValue) => any;
|
502
502
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
503
503
|
selected: (id: GuidValue) => any;
|
504
|
-
add: (
|
504
|
+
add: () => any;
|
505
505
|
"update:modelValue": (value: boolean) => any;
|
506
506
|
"definition:enter": (id: GuidValue) => any;
|
507
507
|
"definition:leave": (id: GuidValue) => any;
|
@@ -595,7 +595,7 @@ declare const _default: {
|
|
595
595
|
exclusions?: GuidValue[];
|
596
596
|
}>, "onUpdate:modelValue" | "onAdd" | "onSelected" | "onDefinition:enter" | "onDefinition:leave"> & {
|
597
597
|
"onUpdate:modelValue"?: (value: boolean) => any;
|
598
|
-
onAdd?: (
|
598
|
+
onAdd?: () => any;
|
599
599
|
onSelected?: (id: GuidValue) => any;
|
600
600
|
"onDefinition:enter"?: (id: GuidValue) => any;
|
601
601
|
"onDefinition:leave"?: (id: GuidValue) => any;
|
@@ -64,6 +64,7 @@ export interface VelcronRenderContext {
|
|
64
64
|
eventHandlers?: VelcronRenderContextEventHandlersInstance;
|
65
65
|
editMode?: boolean;
|
66
66
|
disposers: Array<() => void>;
|
67
|
+
subApp?: boolean;
|
67
68
|
}
|
68
69
|
export interface VelcronRenderContextEventHandlers {
|
69
70
|
receiving?: {
|
@@ -82,7 +83,8 @@ export interface VelcronRenderContextEventHandlersInstance extends VelcronRender
|
|
82
83
|
export interface VelcronRenderContextHooks {
|
83
84
|
dialogVisibilityChanged?: ((visible: boolean) => void);
|
84
85
|
onItemSelected?: ((item: VelcronDefinition) => void);
|
85
|
-
wrapperStyleExtensions?: ((item: VelcronDefinition) => string);
|
86
|
+
wrapperStyleExtensions?: ((item: VelcronDefinition, renderContext: VelcronRenderContext) => string);
|
87
|
+
renderExtensions?: <TNodeType>(item: VelcronDefinition) => TNodeType;
|
86
88
|
appStyleExtension?: (() => string);
|
87
89
|
onItemCreatedProps?: ((item: VelcronDefinition) => object);
|
88
90
|
}
|
@@ -179,7 +181,7 @@ export interface VelcronCardDefinition extends VelcronDefinition, VelcronColorSt
|
|
179
181
|
}
|
180
182
|
export interface VelcronTextDefinition extends VelcronDefinitionWithEditMode, VelcronColorStyling, VelcronTextStyling {
|
181
183
|
type: "text";
|
182
|
-
value
|
184
|
+
value?: VelcronBindableProp<string>;
|
183
185
|
placeholder?: VelcronBindableProp<string>;
|
184
186
|
editLabel?: VelcronBindableProp;
|
185
187
|
lineClamp?: number;
|
@@ -14,6 +14,7 @@ export interface BuiltInPropertyEditors {
|
|
14
14
|
typography: unknown;
|
15
15
|
spacing: unknown;
|
16
16
|
"color-schema-type": unknown;
|
17
|
+
reference: unknown;
|
17
18
|
}
|
18
19
|
export declare enum BuiltInPropertyEditorTypes {
|
19
20
|
text = "text",
|
@@ -82,6 +83,9 @@ export interface VelcronImagePropertyEditor extends VelcronPropertyEditor<any> {
|
|
82
83
|
export interface VelcronSpacingPropertyEditor extends VelcronPropertyEditor<VelcronSpacingEditorSettings> {
|
83
84
|
type: "spacing";
|
84
85
|
}
|
86
|
+
export interface VelcronReferencePropertyEditor extends VelcronPropertyEditor<any> {
|
87
|
+
type: "reference";
|
88
|
+
}
|
85
89
|
export interface VelcronState {
|
86
90
|
images?: VelcronImagesState;
|
87
91
|
styling?: VelcronStylingState;
|
@@ -0,0 +1,51 @@
|
|
1
|
+
declare const _default: (props: {} & Omit<{}, never> & {
|
2
|
+
"v-slots"?: {
|
3
|
+
default?: import("vue").Slot;
|
4
|
+
} & {};
|
5
|
+
} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, never>) => {
|
6
|
+
$: import("vue").ComponentInternalInstance;
|
7
|
+
$data: {};
|
8
|
+
$props: {};
|
9
|
+
$attrs: {
|
10
|
+
[x: string]: unknown;
|
11
|
+
};
|
12
|
+
$refs: {
|
13
|
+
[x: string]: unknown;
|
14
|
+
};
|
15
|
+
$slots: Readonly<{
|
16
|
+
[name: string]: import("vue").Slot<any>;
|
17
|
+
}>;
|
18
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
19
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
20
|
+
$emit: (event: string, ...args: any[]) => void;
|
21
|
+
$el: any;
|
22
|
+
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
|
23
|
+
beforeCreate?: (() => void) | (() => void)[];
|
24
|
+
created?: (() => void) | (() => void)[];
|
25
|
+
beforeMount?: (() => void) | (() => void)[];
|
26
|
+
mounted?: (() => void) | (() => void)[];
|
27
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
28
|
+
updated?: (() => void) | (() => void)[];
|
29
|
+
activated?: (() => void) | (() => void)[];
|
30
|
+
deactivated?: (() => void) | (() => void)[];
|
31
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
32
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
33
|
+
destroyed?: (() => void) | (() => void)[];
|
34
|
+
unmounted?: (() => void) | (() => void)[];
|
35
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
36
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
37
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
38
|
+
};
|
39
|
+
$forceUpdate: () => void;
|
40
|
+
$nextTick: typeof import("vue").nextTick;
|
41
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
42
|
+
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
43
|
+
propsDefinition: {} & {
|
44
|
+
"v-slots"?: {
|
45
|
+
default?: import("vue").Slot;
|
46
|
+
} & {};
|
47
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, never>;
|
48
|
+
} & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
49
|
+
[key: string]: any;
|
50
|
+
}>;
|
51
|
+
export default _default;
|
@@ -1,16 +1,51 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
declare const _default: (props: {} & Omit<{}, never> & {
|
2
|
+
"v-slots"?: {
|
3
|
+
default?: import("vue").Slot;
|
4
|
+
} & {};
|
5
|
+
} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, never>) => {
|
6
|
+
$: import("vue").ComponentInternalInstance;
|
7
|
+
$data: {};
|
8
|
+
$props: {};
|
9
|
+
$attrs: {
|
10
|
+
[x: string]: unknown;
|
11
|
+
};
|
12
|
+
$refs: {
|
13
|
+
[x: string]: unknown;
|
14
|
+
};
|
15
|
+
$slots: Readonly<{
|
16
|
+
[name: string]: import("vue").Slot<any>;
|
17
|
+
}>;
|
18
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
19
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
20
|
+
$emit: (event: string, ...args: any[]) => void;
|
21
|
+
$el: any;
|
22
|
+
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
|
23
|
+
beforeCreate?: (() => void) | (() => void)[];
|
24
|
+
created?: (() => void) | (() => void)[];
|
25
|
+
beforeMount?: (() => void) | (() => void)[];
|
26
|
+
mounted?: (() => void) | (() => void)[];
|
27
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
28
|
+
updated?: (() => void) | (() => void)[];
|
29
|
+
activated?: (() => void) | (() => void)[];
|
30
|
+
deactivated?: (() => void) | (() => void)[];
|
31
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
32
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
33
|
+
destroyed?: (() => void) | (() => void)[];
|
34
|
+
unmounted?: (() => void) | (() => void)[];
|
35
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
36
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
37
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
38
|
+
};
|
39
|
+
$forceUpdate: () => void;
|
40
|
+
$nextTick: typeof import("vue").nextTick;
|
41
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
42
|
+
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
43
|
+
propsDefinition: {} & {
|
44
|
+
"v-slots"?: {
|
45
|
+
default?: import("vue").Slot;
|
46
|
+
} & {};
|
47
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, never>;
|
48
|
+
} & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
49
|
+
[key: string]: any;
|
50
|
+
}>;
|
16
51
|
export default _default;
|
@@ -1,16 +1,62 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
};
|
1
|
+
import { TreeViewItem } from "@omnia/fx-models";
|
2
|
+
export declare const AppExplorerVariantDefinitions: readonly ["default", "statebind"];
|
3
|
+
export type OAppExplorerVariants = typeof AppExplorerVariantDefinitions[number];
|
4
|
+
declare const _default: (props: {
|
5
|
+
variant?: "default" | "statebind";
|
6
|
+
} & Omit<{
|
7
|
+
"onItems:selected"?: (items: TreeViewItem<any>[]) => any;
|
8
|
+
}, "variant"> & {
|
9
|
+
"v-slots"?: {
|
10
|
+
default?: import("vue").Slot;
|
11
|
+
} & {};
|
12
|
+
} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "variant" | "emit:items:selected">) => {
|
13
|
+
$: import("vue").ComponentInternalInstance;
|
14
|
+
$data: {};
|
15
|
+
$props: {};
|
16
|
+
$attrs: {
|
17
|
+
[x: string]: unknown;
|
18
|
+
};
|
19
|
+
$refs: {
|
20
|
+
[x: string]: unknown;
|
21
|
+
};
|
22
|
+
$slots: Readonly<{
|
23
|
+
[name: string]: import("vue").Slot<any>;
|
24
|
+
}>;
|
25
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
26
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
27
|
+
$emit: (event: string, ...args: any[]) => void;
|
28
|
+
$el: any;
|
29
|
+
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
|
30
|
+
beforeCreate?: (() => void) | (() => void)[];
|
31
|
+
created?: (() => void) | (() => void)[];
|
32
|
+
beforeMount?: (() => void) | (() => void)[];
|
33
|
+
mounted?: (() => void) | (() => void)[];
|
34
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
35
|
+
updated?: (() => void) | (() => void)[];
|
36
|
+
activated?: (() => void) | (() => void)[];
|
37
|
+
deactivated?: (() => void) | (() => void)[];
|
38
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
39
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
40
|
+
destroyed?: (() => void) | (() => void)[];
|
41
|
+
unmounted?: (() => void) | (() => void)[];
|
42
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
43
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
44
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
45
|
+
};
|
46
|
+
$forceUpdate: () => void;
|
47
|
+
$nextTick: typeof import("vue").nextTick;
|
48
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
49
|
+
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
50
|
+
propsDefinition: {
|
51
|
+
variant?: "default" | "statebind";
|
52
|
+
} & {
|
53
|
+
"v-slots"?: {
|
54
|
+
default?: import("vue").Slot;
|
55
|
+
} & {};
|
56
|
+
} & {
|
57
|
+
"onItems:selected"?: (items: TreeViewItem<any>[]) => any;
|
58
|
+
} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "variant">;
|
59
|
+
} & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
60
|
+
[key: string]: any;
|
61
|
+
}>;
|
16
62
|
export default _default;
|
File without changes
|
@@ -0,0 +1,51 @@
|
|
1
|
+
declare const _default: (props: {} & Omit<{}, never> & {
|
2
|
+
"v-slots"?: {
|
3
|
+
default?: import("vue").Slot;
|
4
|
+
} & {};
|
5
|
+
} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, never>) => {
|
6
|
+
$: import("vue").ComponentInternalInstance;
|
7
|
+
$data: {};
|
8
|
+
$props: {};
|
9
|
+
$attrs: {
|
10
|
+
[x: string]: unknown;
|
11
|
+
};
|
12
|
+
$refs: {
|
13
|
+
[x: string]: unknown;
|
14
|
+
};
|
15
|
+
$slots: Readonly<{
|
16
|
+
[name: string]: import("vue").Slot<any>;
|
17
|
+
}>;
|
18
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
19
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
20
|
+
$emit: (event: string, ...args: any[]) => void;
|
21
|
+
$el: any;
|
22
|
+
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
|
23
|
+
beforeCreate?: (() => void) | (() => void)[];
|
24
|
+
created?: (() => void) | (() => void)[];
|
25
|
+
beforeMount?: (() => void) | (() => void)[];
|
26
|
+
mounted?: (() => void) | (() => void)[];
|
27
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
28
|
+
updated?: (() => void) | (() => void)[];
|
29
|
+
activated?: (() => void) | (() => void)[];
|
30
|
+
deactivated?: (() => void) | (() => void)[];
|
31
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
32
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
33
|
+
destroyed?: (() => void) | (() => void)[];
|
34
|
+
unmounted?: (() => void) | (() => void)[];
|
35
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
36
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
37
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
38
|
+
};
|
39
|
+
$forceUpdate: () => void;
|
40
|
+
$nextTick: typeof import("vue").nextTick;
|
41
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
42
|
+
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
43
|
+
propsDefinition: {} & {
|
44
|
+
"v-slots"?: {
|
45
|
+
default?: import("vue").Slot;
|
46
|
+
} & {};
|
47
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, never>;
|
48
|
+
} & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
49
|
+
[key: string]: any;
|
50
|
+
}>;
|
51
|
+
export default _default;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import { VelcronDataTypes } from "@omnia/fx-models";
|
2
|
+
import { VelcronComponentPropertyDescriptor } from "../models";
|
3
|
+
declare const _default: (props: {
|
4
|
+
descriptor: VelcronComponentPropertyDescriptor;
|
5
|
+
allowedDataTypes?: VelcronDataTypes[];
|
6
|
+
} & Omit<{
|
7
|
+
"onState:selected"?: (value: string) => any;
|
8
|
+
}, "descriptor" | "allowedDataTypes"> & {
|
9
|
+
"v-slots"?: {
|
10
|
+
default?: import("vue").Slot;
|
11
|
+
} & {};
|
12
|
+
} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "descriptor" | "allowedDataTypes" | "emit:state:selected">) => {
|
13
|
+
$: import("vue").ComponentInternalInstance;
|
14
|
+
$data: {};
|
15
|
+
$props: {};
|
16
|
+
$attrs: {
|
17
|
+
[x: string]: unknown;
|
18
|
+
};
|
19
|
+
$refs: {
|
20
|
+
[x: string]: unknown;
|
21
|
+
};
|
22
|
+
$slots: Readonly<{
|
23
|
+
[name: string]: import("vue").Slot<any>;
|
24
|
+
}>;
|
25
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
26
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
27
|
+
$emit: (event: string, ...args: any[]) => void;
|
28
|
+
$el: any;
|
29
|
+
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
|
30
|
+
beforeCreate?: (() => void) | (() => void)[];
|
31
|
+
created?: (() => void) | (() => void)[];
|
32
|
+
beforeMount?: (() => void) | (() => void)[];
|
33
|
+
mounted?: (() => void) | (() => void)[];
|
34
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
35
|
+
updated?: (() => void) | (() => void)[];
|
36
|
+
activated?: (() => void) | (() => void)[];
|
37
|
+
deactivated?: (() => void) | (() => void)[];
|
38
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
39
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
40
|
+
destroyed?: (() => void) | (() => void)[];
|
41
|
+
unmounted?: (() => void) | (() => void)[];
|
42
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
43
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
44
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
45
|
+
};
|
46
|
+
$forceUpdate: () => void;
|
47
|
+
$nextTick: typeof import("vue").nextTick;
|
48
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
49
|
+
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
50
|
+
propsDefinition: {
|
51
|
+
descriptor: VelcronComponentPropertyDescriptor;
|
52
|
+
allowedDataTypes?: VelcronDataTypes[];
|
53
|
+
} & {
|
54
|
+
"v-slots"?: {
|
55
|
+
default?: import("vue").Slot;
|
56
|
+
} & {};
|
57
|
+
} & {
|
58
|
+
"onState:selected"?: (value: string) => any;
|
59
|
+
} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "descriptor" | "allowedDataTypes">;
|
60
|
+
} & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
61
|
+
[key: string]: any;
|
62
|
+
}>;
|
63
|
+
export default _default;
|
@@ -1,16 +1,16 @@
|
|
1
1
|
declare const _default: {
|
2
|
-
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, () =>
|
2
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{}>>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{}>>, {}, true, {}, {}, {
|
3
3
|
P: {};
|
4
4
|
B: {};
|
5
5
|
D: {};
|
6
6
|
C: {};
|
7
7
|
M: {};
|
8
8
|
Defaults: {};
|
9
|
-
}, Readonly<import("vue").ExtractPropTypes<{}>>, () =>
|
9
|
+
}, Readonly<import("vue").ExtractPropTypes<{}>>, () => JSX.Element, {}, {}, {}, {}>;
|
10
10
|
__isFragment?: never;
|
11
11
|
__isTeleport?: never;
|
12
12
|
__isSuspense?: never;
|
13
|
-
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, () =>
|
13
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{}>>, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
14
14
|
propsDefinition: Omit<Readonly<{} & {}>, never>;
|
15
15
|
};
|
16
16
|
export default _default;
|
@@ -35,3 +35,4 @@ export declare const VelcronDialogComponentDescriptor: VelcronComponentDescripto
|
|
35
35
|
export declare const VelcronIconComponentDescriptor: VelcronComponentDescriptor;
|
36
36
|
export declare const VelcronChipComponentDescriptor: VelcronComponentDescriptor;
|
37
37
|
export declare const VelcronMarkdownComponentDescriptor: VelcronComponentDescriptor;
|
38
|
+
export declare const VelcronReferenceComponentDescriptor: VelcronComponentDescriptor;
|
@@ -4,3 +4,8 @@ export declare enum VelcronDescriptorTypes {
|
|
4
4
|
appData = 2,
|
5
5
|
dataMember = 3
|
6
6
|
}
|
7
|
+
export type AddVelcronComponentInsertionStrategy = "default" | "before" | "after" | "createnew";
|
8
|
+
export type AddVelcronComponentMode = {
|
9
|
+
show: boolean;
|
10
|
+
strategy?: AddVelcronComponentInsertionStrategy;
|
11
|
+
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { IIcon, VelcronPropertyEditor } from "@omnia/fx-models";
|
2
2
|
import { VelcronDataTypes } from "../../core/models/Enums";
|
3
|
-
import { VelcroncomponentArrayType, VelcronPrimitiveType } from "../../core/models/VelcronTypes";
|
3
|
+
import { VelcroncomponentArrayType, VelcronObjectType, VelcronPrimitiveType } from "../../core/models/VelcronTypes";
|
4
4
|
import { VelcronDescriptorTypes } from "./Enums";
|
5
5
|
export interface VelcronDescriptor {
|
6
6
|
descriptorType: VelcronDescriptorTypes;
|
@@ -24,7 +24,7 @@ export interface VelcronComponentPropertyDescriptor {
|
|
24
24
|
group?: string;
|
25
25
|
editor?: VelcronPropertyEditor<any>;
|
26
26
|
required?: boolean;
|
27
|
-
defaultValue?: VelcronPrimitiveType | VelcroncomponentArrayType
|
27
|
+
defaultValue?: VelcronPrimitiveType | VelcroncomponentArrayType | VelcronObjectType<{}>;
|
28
28
|
disableRemovePropertyOnEmptyOrFalse?: boolean;
|
29
29
|
label?: string;
|
30
30
|
}
|
@@ -1,8 +1,16 @@
|
|
1
1
|
import { TreeViewItem, VelcronAppDefinition, VelcronDefinition } from "@omnia/fx-models";
|
2
2
|
import { AppTreeItem, AppValidationState, editorModes } from "../models/Shared";
|
3
|
-
import { CodeEditorState, VelcronComponentDescriptor, codeEditorTabs } from "../models";
|
3
|
+
import { CodeEditorState, VelcronComponentDescriptor, codeEditorTabs, AddVelcronComponentMode } from "../models";
|
4
|
+
import { ThemeDefinitionV2, VelcronRenderContext } from "../../core";
|
5
|
+
type canvasMode = "split-spacing" | "design";
|
4
6
|
export declare const useVelcronEditorStore: () => {
|
7
|
+
get: {
|
8
|
+
getBodyTreeviewItem(): TreeViewItem<any>;
|
9
|
+
};
|
5
10
|
state: {
|
11
|
+
previewTheme: ThemeDefinitionV2;
|
12
|
+
previewRenderContext: VelcronRenderContext;
|
13
|
+
canvasMode: canvasMode;
|
6
14
|
appData: {};
|
7
15
|
appAsJson: string;
|
8
16
|
appDefinition: VelcronAppDefinition<object>;
|
@@ -12,8 +20,10 @@ export declare const useVelcronEditorStore: () => {
|
|
12
20
|
selectedAppTreeItem: TreeViewItem<AppTreeItem>;
|
13
21
|
editorMode: editorModes;
|
14
22
|
activeAppTreeItem: TreeViewItem<any>;
|
23
|
+
itemToCopy: TreeViewItem<AppTreeItem>;
|
15
24
|
history: string[];
|
16
|
-
showAddComponent:
|
25
|
+
showAddComponent: AddVelcronComponentMode;
|
26
|
+
showAddApp: boolean;
|
17
27
|
showAddDataObject: boolean;
|
18
28
|
showShare: boolean;
|
19
29
|
codeEditor: CodeEditorState;
|
@@ -52,7 +62,7 @@ export declare const useVelcronEditorStore: () => {
|
|
52
62
|
subscribe(fn: (key: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
53
63
|
};
|
54
64
|
showAddComponent: {
|
55
|
-
subscribe(fn: (
|
65
|
+
subscribe(fn: (mode: AddVelcronComponentMode) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
56
66
|
};
|
57
67
|
showShare: {
|
58
68
|
subscribe(fn: (show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -61,7 +71,10 @@ export declare const useVelcronEditorStore: () => {
|
|
61
71
|
subscribe(fn: (show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
62
72
|
};
|
63
73
|
addComponent: {
|
64
|
-
subscribe(fn: (descriptor: VelcronComponentDescriptor, parent?: TreeViewItem<AppTreeItem>, definition?: VelcronDefinition
|
74
|
+
subscribe(fn: (descriptor: VelcronComponentDescriptor, parent?: TreeViewItem<AppTreeItem>, definition?: VelcronDefinition, insertOptions?: {
|
75
|
+
beforeKey?: string;
|
76
|
+
afterKey?: string;
|
77
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
65
78
|
};
|
66
79
|
deleteComponent: {
|
67
80
|
subscribe(fn: (target: TreeViewItem<AppTreeItem>) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -81,8 +94,11 @@ export declare const useVelcronEditorStore: () => {
|
|
81
94
|
setActiveAppTreeItem: {
|
82
95
|
subscribe(fn: (key: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
83
96
|
};
|
97
|
+
copyComponent: {
|
98
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
99
|
+
};
|
84
100
|
pasteComponent: {
|
85
|
-
subscribe(fn: (
|
101
|
+
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
86
102
|
};
|
87
103
|
reloadApp: {
|
88
104
|
subscribe(fn: () => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -120,7 +136,7 @@ export declare const useVelcronEditorStore: () => {
|
|
120
136
|
subscribe(fn: (result: void, key: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
121
137
|
};
|
122
138
|
showAddComponent: {
|
123
|
-
subscribe(fn: (result: void,
|
139
|
+
subscribe(fn: (result: void, mode: AddVelcronComponentMode) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
124
140
|
};
|
125
141
|
showShare: {
|
126
142
|
subscribe(fn: (result: void, show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -129,7 +145,10 @@ export declare const useVelcronEditorStore: () => {
|
|
129
145
|
subscribe(fn: (result: void, show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
130
146
|
};
|
131
147
|
addComponent: {
|
132
|
-
subscribe(fn: (result: void, descriptor: VelcronComponentDescriptor, parent?: TreeViewItem<AppTreeItem>, definition?: VelcronDefinition
|
148
|
+
subscribe(fn: (result: void, descriptor: VelcronComponentDescriptor, parent?: TreeViewItem<AppTreeItem>, definition?: VelcronDefinition, insertOptions?: {
|
149
|
+
beforeKey?: string;
|
150
|
+
afterKey?: string;
|
151
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
133
152
|
};
|
134
153
|
deleteComponent: {
|
135
154
|
subscribe(fn: (result: void, target: TreeViewItem<AppTreeItem>) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -149,8 +168,11 @@ export declare const useVelcronEditorStore: () => {
|
|
149
168
|
setActiveAppTreeItem: {
|
150
169
|
subscribe(fn: (result: void, key: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
151
170
|
};
|
171
|
+
copyComponent: {
|
172
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
173
|
+
};
|
152
174
|
pasteComponent: {
|
153
|
-
subscribe(fn: (result: void
|
175
|
+
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
154
176
|
};
|
155
177
|
reloadApp: {
|
156
178
|
subscribe(fn: (result: void) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -188,7 +210,7 @@ export declare const useVelcronEditorStore: () => {
|
|
188
210
|
subscribe(fn: (failureReason: any, key: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
189
211
|
};
|
190
212
|
showAddComponent: {
|
191
|
-
subscribe(fn: (failureReason: any,
|
213
|
+
subscribe(fn: (failureReason: any, mode: AddVelcronComponentMode) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
192
214
|
};
|
193
215
|
showShare: {
|
194
216
|
subscribe(fn: (failureReason: any, show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -197,7 +219,10 @@ export declare const useVelcronEditorStore: () => {
|
|
197
219
|
subscribe(fn: (failureReason: any, show: boolean) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
198
220
|
};
|
199
221
|
addComponent: {
|
200
|
-
subscribe(fn: (failureReason: any, descriptor: VelcronComponentDescriptor, parent?: TreeViewItem<AppTreeItem>, definition?: VelcronDefinition
|
222
|
+
subscribe(fn: (failureReason: any, descriptor: VelcronComponentDescriptor, parent?: TreeViewItem<AppTreeItem>, definition?: VelcronDefinition, insertOptions?: {
|
223
|
+
beforeKey?: string;
|
224
|
+
afterKey?: string;
|
225
|
+
}) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
201
226
|
};
|
202
227
|
deleteComponent: {
|
203
228
|
subscribe(fn: (failureReason: any, target: TreeViewItem<AppTreeItem>) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -217,8 +242,11 @@ export declare const useVelcronEditorStore: () => {
|
|
217
242
|
setActiveAppTreeItem: {
|
218
243
|
subscribe(fn: (failureReason: any, key: string) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
219
244
|
};
|
245
|
+
copyComponent: {
|
246
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
247
|
+
};
|
220
248
|
pasteComponent: {
|
221
|
-
subscribe(fn: (failureReason: any
|
249
|
+
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
222
250
|
};
|
223
251
|
reloadApp: {
|
224
252
|
subscribe(fn: (failureReason: any) => void): import("@omnia/fx-models").IMessageBusSubscriptionHandler;
|
@@ -237,21 +265,28 @@ export declare const useVelcronEditorStore: () => {
|
|
237
265
|
setEditorMode(newState: editorModes): void;
|
238
266
|
syncState(): void;
|
239
267
|
setSelectedAppTreeItem(key: string): void;
|
240
|
-
showAddComponent(
|
268
|
+
showAddComponent(mode: AddVelcronComponentMode): void;
|
241
269
|
showShare(show: boolean): void;
|
242
270
|
showAddDataObject(show: boolean): void;
|
243
|
-
addComponent(descriptor: VelcronComponentDescriptor, parent?: TreeViewItem<AppTreeItem>, definition?: VelcronDefinition
|
271
|
+
addComponent(descriptor: VelcronComponentDescriptor, parent?: TreeViewItem<AppTreeItem>, definition?: VelcronDefinition, insertOptions?: {
|
272
|
+
beforeKey?: string;
|
273
|
+
afterKey?: string;
|
274
|
+
}): void;
|
244
275
|
deleteComponent(target: TreeViewItem<AppTreeItem>): void;
|
245
276
|
addDataMember(target: TreeViewItem<AppTreeItem>, propertyName: string, value: any): void;
|
246
277
|
deleteDataMember(target: TreeViewItem<AppTreeItem>): void;
|
247
278
|
renameDataMember(target: TreeViewItem<AppTreeItem>, newName: string): void;
|
248
279
|
updateDataMemberValue(target: TreeViewItem<AppTreeItem>, newValue: any): void;
|
249
280
|
setActiveAppTreeItem(key: string): void;
|
250
|
-
|
281
|
+
copyComponent(): void;
|
282
|
+
pasteComponent(): void;
|
251
283
|
reloadApp(): void;
|
252
284
|
updateHistory(): void;
|
253
285
|
};
|
254
286
|
events: {
|
287
|
+
onMutatedPreviewTheme: import("@omnia/fx").MessageBusExposeOnlySubscription<ThemeDefinitionV2>;
|
288
|
+
onMutatedPreviewRenderContext: import("@omnia/fx").MessageBusExposeOnlySubscription<VelcronRenderContext>;
|
289
|
+
onMutatedCanvasMode: import("@omnia/fx").MessageBusExposeOnlySubscription<canvasMode>;
|
255
290
|
onMutatedAppData: import("@omnia/fx").MessageBusExposeOnlySubscription<{}>;
|
256
291
|
onMutatedAppAsJson: import("@omnia/fx").MessageBusExposeOnlySubscription<string>;
|
257
292
|
onMutatedAppDefinition: import("@omnia/fx").MessageBusExposeOnlySubscription<VelcronAppDefinition<object>>;
|
@@ -261,8 +296,10 @@ export declare const useVelcronEditorStore: () => {
|
|
261
296
|
onMutatedSelectedAppTreeItem: import("@omnia/fx").MessageBusExposeOnlySubscription<TreeViewItem<AppTreeItem>>;
|
262
297
|
onMutatedEditorMode: import("@omnia/fx").MessageBusExposeOnlySubscription<editorModes>;
|
263
298
|
onMutatedActiveAppTreeItem: import("@omnia/fx").MessageBusExposeOnlySubscription<TreeViewItem<any>>;
|
299
|
+
onMutatedItemToCopy: import("@omnia/fx").MessageBusExposeOnlySubscription<TreeViewItem<AppTreeItem>>;
|
264
300
|
onMutatedHistory: import("@omnia/fx").MessageBusExposeOnlySubscription<string[]>;
|
265
|
-
onMutatedShowAddComponent: import("@omnia/fx").MessageBusExposeOnlySubscription<
|
301
|
+
onMutatedShowAddComponent: import("@omnia/fx").MessageBusExposeOnlySubscription<AddVelcronComponentMode>;
|
302
|
+
onMutatedShowAddApp: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
266
303
|
onMutatedShowAddDataObject: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
267
304
|
onMutatedShowShare: import("@omnia/fx").MessageBusExposeOnlySubscription<boolean>;
|
268
305
|
onMutatedCodeEditor: import("@omnia/fx").MessageBusExposeOnlySubscription<CodeEditorState>;
|
@@ -272,3 +309,4 @@ export declare const useVelcronEditorStore: () => {
|
|
272
309
|
}>;
|
273
310
|
} & Record<string, import("@omnia/fx-models").IMessageBusTopicPublishSubscriber<any>>;
|
274
311
|
};
|
312
|
+
export {};
|
package/internal-do-not-import-from-here/ux/velcron/renderer/propertyeditors/ReferenceEditor.d.ts
ADDED
@@ -0,0 +1,62 @@
|
|
1
|
+
import { VelcronRendererResolverReference } from "@omnia/fx-models";
|
2
|
+
declare const _default: (props: {
|
3
|
+
label?: string;
|
4
|
+
"v-model"?: VelcronRendererResolverReference;
|
5
|
+
"onUpdate:modelValue"?: (value: VelcronRendererResolverReference) => void;
|
6
|
+
modelValue?: VelcronRendererResolverReference;
|
7
|
+
} & Omit<{}, "label" | "v-model" | "onUpdate:modelValue" | "modelValue"> & {
|
8
|
+
"v-slots"?: {
|
9
|
+
default?: import("vue").Slot;
|
10
|
+
} & {};
|
11
|
+
} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "label" | "v-model" | "onUpdate:modelValue" | "modelValue">) => {
|
12
|
+
$: import("vue").ComponentInternalInstance;
|
13
|
+
$data: {};
|
14
|
+
$props: {};
|
15
|
+
$attrs: {
|
16
|
+
[x: string]: unknown;
|
17
|
+
};
|
18
|
+
$refs: {
|
19
|
+
[x: string]: unknown;
|
20
|
+
};
|
21
|
+
$slots: Readonly<{
|
22
|
+
[name: string]: import("vue").Slot<any>;
|
23
|
+
}>;
|
24
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
25
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>;
|
26
|
+
$emit: (event: string, ...args: any[]) => void;
|
27
|
+
$el: any;
|
28
|
+
$options: import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}> & {
|
29
|
+
beforeCreate?: (() => void) | (() => void)[];
|
30
|
+
created?: (() => void) | (() => void)[];
|
31
|
+
beforeMount?: (() => void) | (() => void)[];
|
32
|
+
mounted?: (() => void) | (() => void)[];
|
33
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
34
|
+
updated?: (() => void) | (() => void)[];
|
35
|
+
activated?: (() => void) | (() => void)[];
|
36
|
+
deactivated?: (() => void) | (() => void)[];
|
37
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
38
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
39
|
+
destroyed?: (() => void) | (() => void)[];
|
40
|
+
unmounted?: (() => void) | (() => void)[];
|
41
|
+
renderTracked?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
42
|
+
renderTriggered?: ((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[];
|
43
|
+
errorCaptured?: ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}>, info: string) => boolean | void)[];
|
44
|
+
};
|
45
|
+
$forceUpdate: () => void;
|
46
|
+
$nextTick: typeof import("vue").nextTick;
|
47
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
48
|
+
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
49
|
+
propsDefinition: {
|
50
|
+
label?: string;
|
51
|
+
"v-model"?: VelcronRendererResolverReference;
|
52
|
+
"onUpdate:modelValue"?: (value: VelcronRendererResolverReference) => void;
|
53
|
+
modelValue?: VelcronRendererResolverReference;
|
54
|
+
} & {
|
55
|
+
"v-slots"?: {
|
56
|
+
default?: import("vue").Slot;
|
57
|
+
} & {};
|
58
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "label" | "v-model" | "onUpdate:modelValue" | "modelValue">;
|
59
|
+
} & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
60
|
+
[key: string]: any;
|
61
|
+
}>;
|
62
|
+
export default _default;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@omnia/fx",
|
3
3
|
"license": "MIT",
|
4
|
-
"version": "8.0.
|
4
|
+
"version": "8.0.150-dev",
|
5
5
|
"description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
|
6
6
|
"scripts": {
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1",
|
@@ -20,7 +20,7 @@
|
|
20
20
|
],
|
21
21
|
"author": "Precio Fishbone",
|
22
22
|
"dependencies": {
|
23
|
-
"@omnia/fx-models": "8.0.
|
23
|
+
"@omnia/fx-models": "8.0.150-dev",
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
25
25
|
"broadcast-channel": "4.8.0",
|
26
26
|
"dayjs": "1.11.7",
|