@omnia/velcron 8.0.92-vnext → 8.0.93-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/actions/Alert.js +1 -1
- package/actions/Array.js +9 -2
- package/actions/Clone.d.ts +2 -0
- package/actions/Clone.js +11 -0
- package/actions/Date.d.ts +3 -0
- package/actions/Date.js +29 -0
- package/actions/Http.js +23 -6
- package/actions/IActionHandler.d.ts +1 -0
- package/actions/Timer.d.ts +4 -0
- package/actions/Timer.js +80 -0
- package/actions/index.d.ts +3 -0
- package/actions/index.js +3 -0
- package/internal-do-not-import-from-here/shared/models/Broadcasting.js +1 -1
- package/internal-do-not-import-from-here/shared/models/DynamicState.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/Equals.js +33 -3
- package/internal-do-not-import-from-here/shared/models/Future.d.ts +17 -1
- package/internal-do-not-import-from-here/shared/models/Future.js +26 -5
- package/internal-do-not-import-from-here/shared/models/Guid.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/Guid.js +13 -6
- package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +27 -0
- package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +7 -1
- package/internal-do-not-import-from-here/shared/models/Realtime.d.ts +1 -13
- package/internal-do-not-import-from-here/shared/models/Realtime.js +1 -22
- package/internal-do-not-import-from-here/shared/models/StronglyTypedId.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/StronglyTypedId.js +2 -0
- package/internal-do-not-import-from-here/shared/models/Tokens.d.ts +1 -0
- package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.d.ts +7 -1
- package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.js +5 -1
- package/internal-do-not-import-from-here/shared/models/Workers.js +1 -1
- package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.d.ts +13 -0
- package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.js +20 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +67 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +7 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.d.ts +7 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.d.ts +14 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.js +15 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +30 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.d.ts +15 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.d.ts +8 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +15 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +40 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +39 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +8 -0
- package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +11 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.d.ts +3 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.d.ts +4 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.js +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/index.js +8 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +10 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +5 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.js +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/hub/social/index.js +5 -0
- package/internal-do-not-import-from-here/shared/models/index.d.ts +5 -1
- package/internal-do-not-import-from-here/shared/models/index.js +5 -1
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.d.ts +44 -46
- package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.js +7 -13
- package/internal-do-not-import-from-here/shared/models/theming/ChromeDefinition.d.ts +25 -0
- package/internal-do-not-import-from-here/shared/models/theming/ChromeDefinition.js +2 -0
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +8 -7
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +5 -4
- package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.js +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +22 -13
- package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +8 -10
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.d.ts +5 -0
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.js +2 -2
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +3 -5
- package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +4 -30
- package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +1 -1
- package/internal-do-not-import-from-here/shared/models/theming/index.js +2 -1
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +87 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.js +2 -0
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.js +2 -0
- package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +2 -0
- package/internal-do-not-import-from-here/shared/models/velcron/index.js +5 -0
- package/models/ActionHooks.d.ts +12 -0
- package/models/ActionHooks.js +2 -0
- package/models/Enums.js +7 -7
- package/models/VelcronDefinitions.d.ts +79 -88
- package/models/VelcronDefinitions.js +1 -1
- package/models/VelcronPropertyEditorDefinitions.d.ts +268 -19
- package/models/VelcronPropertyEditorDefinitions.js +114 -2
- package/models/VelcronTypes.d.ts +1 -1
- package/models/ViewModelAndContext.d.ts +1 -1
- package/models/index.d.ts +1 -1
- package/models/index.js +1 -1
- package/package.json +1 -1
- package/parser/VelcronActions.d.ts +8 -2
- package/parser/VelcronActions.js +23 -3
- package/parser/VelcronConstants.d.ts +13 -4
- package/parser/VelcronConstants.js +14 -5
- package/parser/VelcronData.d.ts +3 -2
- package/parser/VelcronData.js +21 -13
- package/parser/VelcronPropertyEditors.js +1 -1
- package/parser/VelcronRenderers.d.ts +2 -1
- package/parser/VelcronRenderers.js +22 -21
- package/parser/VelcronStyles.d.ts +2 -1
- package/parser/VelcronStyles.js +168 -65
- package/stores/ReactivitySystem.d.ts +2 -2
- package/stores/ReactivitySystem.js +1 -1
- package/stores/VelcronColorSchema.d.ts +9 -8
- package/stores/VelcronTheming.d.ts +4 -3
- package/stores/VelcronTheming.js +15 -3
- package/stores/index.d.ts +0 -1
- package/stores/index.js +1 -1
- package/templatebuilder/editor/VelcronContentEditor.d.ts +26 -2
- package/templatebuilder/editor/VelcronContentEditor.js +164 -4
- package/templatebuilder/editor/VelcronEditorBuilder.d.ts +3 -0
- package/templatebuilder/editor/VelcronEditorBuilder.js +10 -0
- package/templatebuilder/editor/VelcronEditorBuilder2.d.ts +15 -0
- package/templatebuilder/editor/VelcronEditorBuilder2.js +106 -0
- package/templatebuilder/editor/VelcronEditorBuilderBase.d.ts +1 -1
- package/templatebuilder/editor/VelcronPropertyMappingEditorBuilder.d.ts +9 -0
- package/templatebuilder/editor/VelcronPropertyMappingEditorBuilder.js +30 -0
- package/templatebuilder/index.d.ts +1 -0
- package/templatebuilder/index.js +1 -0
- package/templatebuilder/state/VelcronBlockHeaderStateBuilder.d.ts +0 -0
- package/templatebuilder/state/VelcronBlockHeaderStateBuilder.js +38 -0
- package/templatebuilder/state/VelcronColorSchemaBuilder.d.ts +10 -5
- package/templatebuilder/state/VelcronColorSchemaBuilder.js +18 -6
- package/templatebuilder/state/VelcronContentStateBuilder.d.ts +7 -13
- package/templatebuilder/state/VelcronContentStateBuilder.js +26 -18
- package/templatebuilder/state/VelcronImageStateBuilder.d.ts +2 -4
- package/templatebuilder/state/VelcronImageStateBuilder.js +10 -4
- package/templatebuilder/state/VelcronPropertyMappingStateBuilder.d.ts +12 -0
- package/templatebuilder/state/VelcronPropertyMappingStateBuilder.js +35 -0
- package/templatebuilder/state/VelcronStateBuilder.d.ts +5 -1
- package/templatebuilder/state/VelcronStateBuilder.js +8 -0
- package/templatebuilder/state/VelcronStateBuilderBase.d.ts +7 -3
- package/templatebuilder/state/VelcronStateBuilderBase.js +8 -4
- package/templatebuilder/state/VelcronTextContentBuilder.d.ts +32 -0
- package/templatebuilder/state/VelcronTextContentBuilder.js +110 -0
- package/templatebuilder/useVelcronEditorBuilder.d.ts +2 -0
- package/templatebuilder/useVelcronEditorBuilder.js +9 -0
- package/internal-do-not-import-from-here/shared/models/Bring.d.ts +0 -23
- package/internal-do-not-import-from-here/shared/models/theming/OmniaThemes.d.ts +0 -5
- package/internal-do-not-import-from-here/shared/models/theming/OmniaThemes.js +0 -18
- package/stores/VelcronBlueprint.d.ts +0 -39
- package/stores/VelcronBlueprint.js +0 -55
- /package/internal-do-not-import-from-here/shared/models/{Bring.js → DynamicState.js} +0 -0
- /package/{models/VelcronEvents.js → internal-do-not-import-from-here/shared/models/HttpCommon.js} +0 -0
- /package/{models → internal-do-not-import-from-here/shared/models/velcron}/VelcronEvents.d.ts +0 -0
|
@@ -1,20 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition } from "@omnia/velcron/internal-do-not-import-from-here/shared/models";
|
|
2
2
|
import { VelcroncomponentArrayType, VelcronPrimitiveType } from "./VelcronTypes";
|
|
3
3
|
import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, VelcronActionTypes, VelcronVerticalAlignments } from "./Enums";
|
|
4
|
-
import {
|
|
4
|
+
import { ActivityRendererReference, DynamicState, VelcronDefinition, useVelcronThemingStore } from "..";
|
|
5
5
|
import { GuidValue, PropertyConfiguration, PropertyValue, PropertyDefinition, PropertySetupBase } from "@omnia/fx/models";
|
|
6
6
|
import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
|
|
7
|
-
import { useVelcronBlueprintStore } from "../stores/VelcronBlueprint";
|
|
8
7
|
export interface ResolvedComponentRenderer {
|
|
9
8
|
component: unknown;
|
|
10
9
|
definition: VelcronDefinition;
|
|
11
10
|
customComponent?: boolean;
|
|
12
11
|
}
|
|
13
12
|
export interface BuiltInComponentRenderers {
|
|
14
|
-
"
|
|
13
|
+
"velcron": unknown;
|
|
14
|
+
"flex": unknown;
|
|
15
|
+
"row": unknown;
|
|
16
|
+
"column": unknown;
|
|
15
17
|
"card": unknown;
|
|
16
18
|
"text": unknown;
|
|
17
19
|
"image": unknown;
|
|
20
|
+
"video": unknown;
|
|
18
21
|
"button": unknown;
|
|
19
22
|
"text-input": unknown;
|
|
20
23
|
"progress-circle": unknown;
|
|
@@ -26,12 +29,14 @@ export interface BuiltInComponentRenderers {
|
|
|
26
29
|
"markdown": unknown;
|
|
27
30
|
"slot": unknown;
|
|
28
31
|
"property": unknown;
|
|
32
|
+
"checkbox": unknown;
|
|
33
|
+
"reference": unknown;
|
|
34
|
+
"radio": unknown;
|
|
29
35
|
}
|
|
30
36
|
export interface ColorSchemaReference {
|
|
31
37
|
name: string;
|
|
32
38
|
schema: string;
|
|
33
39
|
}
|
|
34
|
-
export type DynamicState = object;
|
|
35
40
|
export interface OnItemRenderedHookResult {
|
|
36
41
|
cssClass: string;
|
|
37
42
|
containerRenderer?: VelcronContainerRenderer;
|
|
@@ -42,21 +47,21 @@ export interface VelcronRenderContext {
|
|
|
42
47
|
currentContext: DynamicState;
|
|
43
48
|
theming?: ReturnType<typeof useVelcronThemingStore>;
|
|
44
49
|
colors?: ReturnType<typeof useVelcronColorSchemaStore>;
|
|
45
|
-
blueprints?: ReturnType<typeof useVelcronBlueprintStore>;
|
|
46
50
|
actions?: {
|
|
47
|
-
[name: string]:
|
|
51
|
+
[name: string]: Array<string>;
|
|
48
52
|
};
|
|
49
53
|
components?: Array<VelcronCustomComponentDefinition>;
|
|
50
54
|
properties?: {
|
|
51
55
|
[name: string]: VelcronPrimitiveType | VelcroncomponentArrayType;
|
|
52
56
|
};
|
|
53
57
|
computed?: {
|
|
54
|
-
[name: string]:
|
|
58
|
+
[name: string]: Array<string>;
|
|
55
59
|
};
|
|
56
60
|
parent?: VelcronRenderContext;
|
|
57
61
|
hooks?: VelcronRenderContextHooks;
|
|
58
62
|
eventHandlers?: VelcronRenderContextEventHandlers;
|
|
59
63
|
editMode?: boolean;
|
|
64
|
+
disposers: Array<() => void>;
|
|
60
65
|
}
|
|
61
66
|
export interface VelcronRenderContextEventHandlers {
|
|
62
67
|
receiving?: {
|
|
@@ -69,6 +74,7 @@ export interface VelcronRenderContextHooks {
|
|
|
69
74
|
onItemSelected?: ((item: VelcronDefinition) => void);
|
|
70
75
|
onItemRendered?: ((item: VelcronDefinition) => OnItemRenderedHookResult);
|
|
71
76
|
onItemCreatedProps?: ((item: VelcronDefinition) => object);
|
|
77
|
+
onLoadReference?: ((reference: ActivityRendererReference) => Promise<VelcronDefinition>);
|
|
72
78
|
}
|
|
73
79
|
export interface VelcronContainerRenderer {
|
|
74
80
|
definition: VelcronDefinition;
|
|
@@ -93,39 +99,11 @@ export interface VelcronActionWithCondition extends VelcronActionWithAutoAwait {
|
|
|
93
99
|
trueAction: VelcronAction;
|
|
94
100
|
falseAction: VelcronAction;
|
|
95
101
|
}
|
|
96
|
-
/**
|
|
97
|
-
* Velcron definition base
|
|
98
|
-
*/
|
|
99
|
-
export interface VelcronDefinitionBase {
|
|
100
|
-
/**
|
|
101
|
-
* The component type
|
|
102
|
-
*/
|
|
103
|
-
type: string;
|
|
104
|
-
/**
|
|
105
|
-
* Custom friendly name of the definition
|
|
106
|
-
*/
|
|
107
|
-
name?: string;
|
|
108
|
-
/**
|
|
109
|
-
* Used for render cache if not specified we auto set it.
|
|
110
|
-
*/
|
|
111
|
-
key?: string;
|
|
112
|
-
}
|
|
113
|
-
export interface VelcronDefinition extends VelcronDefinitionBase, VelcronDimensionStyling {
|
|
114
|
-
body?: Array<VelcronDefinition>;
|
|
115
|
-
style?: VelcronStyling;
|
|
116
|
-
foreach?: string;
|
|
117
|
-
if?: string;
|
|
118
|
-
events?: VelcronEvent;
|
|
119
|
-
}
|
|
120
102
|
export type VelcronBindableProp<TPropType = string> = TPropType | string;
|
|
121
103
|
export interface VelcronDefinitionWithEditMode extends VelcronDefinition {
|
|
122
104
|
edit?: VelcronBindableProp<boolean>;
|
|
123
105
|
bind?: VelcronBindableProp;
|
|
124
106
|
}
|
|
125
|
-
interface VelcronDimensionStyling {
|
|
126
|
-
margin?: VelcronSpacing;
|
|
127
|
-
padding?: VelcronSpacing;
|
|
128
|
-
}
|
|
129
107
|
export interface VelcronColorStyling {
|
|
130
108
|
colorSchemaType?: string;
|
|
131
109
|
colorType?: string;
|
|
@@ -135,75 +113,54 @@ export interface VelcronColorStyling {
|
|
|
135
113
|
}
|
|
136
114
|
export interface VelcronTextStyling {
|
|
137
115
|
text: string;
|
|
116
|
+
placeholder?: string;
|
|
138
117
|
typography?: string;
|
|
139
118
|
size?: string;
|
|
140
119
|
}
|
|
141
|
-
export interface VelcronStyling {
|
|
142
|
-
margin?: number;
|
|
143
|
-
marginTop?: number;
|
|
144
|
-
marginRight?: number;
|
|
145
|
-
marginBottom?: number;
|
|
146
|
-
marginLeft?: number;
|
|
147
|
-
padding?: number;
|
|
148
|
-
paddingTop?: number;
|
|
149
|
-
paddingRight?: number;
|
|
150
|
-
paddingBottom?: number;
|
|
151
|
-
paddingLeft?: number;
|
|
152
|
-
height?: number | string;
|
|
153
|
-
width?: number | string;
|
|
154
|
-
}
|
|
155
120
|
export interface VelcronCardStyling extends VelcronStyling {
|
|
156
121
|
elevation: number;
|
|
157
122
|
}
|
|
158
|
-
export interface VelcronSpacing {
|
|
159
|
-
top?: number | string;
|
|
160
|
-
right?: number | string;
|
|
161
|
-
bottom?: number | string;
|
|
162
|
-
left?: number | string;
|
|
163
|
-
}
|
|
164
123
|
export interface VelcronIcon {
|
|
165
124
|
type: VelcronIconTypes;
|
|
166
125
|
name: string;
|
|
167
126
|
}
|
|
168
|
-
export interface
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
name?: string;
|
|
172
|
-
body?: Array<VelcronDefinition>;
|
|
173
|
-
events?: VelcronOnLoadEvent & VelcronOnEditModeEvent;
|
|
174
|
-
actions?: {
|
|
175
|
-
[name: string]: [];
|
|
176
|
-
};
|
|
177
|
-
components?: Array<VelcronCustomComponentDefinition>;
|
|
178
|
-
propEditors?: Array<VelcronPropertyEditor>;
|
|
179
|
-
state?: TState;
|
|
180
|
-
computed?: {
|
|
181
|
-
[name: string]: [];
|
|
182
|
-
};
|
|
183
|
-
}
|
|
184
|
-
export interface VelcronComponentDefinition extends VelcronDefinition {
|
|
185
|
-
type: string;
|
|
186
|
-
events: any;
|
|
187
|
-
properties: [];
|
|
188
|
-
icon: any;
|
|
127
|
+
export interface VelcronRenderProp {
|
|
128
|
+
required?: boolean;
|
|
129
|
+
defaultValue?: any;
|
|
189
130
|
}
|
|
190
131
|
/*** Built-in Components *********************************************************************/
|
|
191
|
-
export interface
|
|
192
|
-
type: "
|
|
132
|
+
export interface VelcronFlexDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
133
|
+
type: "flex";
|
|
193
134
|
events?: VelcronOnPressEvent;
|
|
194
|
-
direction?: VelcronBindableProp<"row" | "column" | "row-reverse" | "column-reverse">;
|
|
195
|
-
columnStyle?: object;
|
|
196
|
-
hAlign?: VelcronHorizontalAlignments;
|
|
197
|
-
vAlign?: VelcronVerticalAlignments;
|
|
198
|
-
grow?: number;
|
|
199
|
-
absolute?: VelcronSpacing;
|
|
200
135
|
border?: VelcronBorder;
|
|
201
136
|
borderRadius?: VelcronDimensions;
|
|
137
|
+
}
|
|
138
|
+
export interface VelcronFlexRowDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
139
|
+
type: "row";
|
|
140
|
+
events?: VelcronOnPressEvent;
|
|
141
|
+
direction?: VelcronBindableProp<"row" | "row-reverse">;
|
|
142
|
+
absolute?: VelcronSpacing;
|
|
143
|
+
hideOverflow?: boolean;
|
|
144
|
+
wrap?: boolean;
|
|
145
|
+
gapX?: number | string;
|
|
146
|
+
gapY?: number | string;
|
|
147
|
+
alignX?: VelcronHorizontalAlignments;
|
|
148
|
+
alignY?: VelcronVerticalAlignments;
|
|
149
|
+
grow?: number | "default";
|
|
202
150
|
width?: number | string;
|
|
203
151
|
minWidth?: number | string;
|
|
204
152
|
height?: number | string;
|
|
205
153
|
minHeight?: number | string;
|
|
206
154
|
}
|
|
155
|
+
export interface VelcronFlexColumnDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
156
|
+
type: "column";
|
|
157
|
+
events?: VelcronOnPressEvent;
|
|
158
|
+
grow?: number;
|
|
159
|
+
alignY?: VelcronVerticalAlignments;
|
|
160
|
+
absolute?: VelcronSpacing;
|
|
161
|
+
width?: number | string;
|
|
162
|
+
minWidth?: number | string;
|
|
163
|
+
}
|
|
207
164
|
export interface VelcronCardDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
208
165
|
type: "card";
|
|
209
166
|
style?: VelcronCardStyling;
|
|
@@ -223,18 +180,30 @@ export declare enum VelcronImageRatios {
|
|
|
223
180
|
}
|
|
224
181
|
export interface VelcronImageDefinition extends VelcronDefinition {
|
|
225
182
|
type: "image";
|
|
226
|
-
|
|
183
|
+
url?: VelcronBindableProp<string>;
|
|
184
|
+
bind?: VelcronBindableProp<string>;
|
|
227
185
|
ratio?: VelcronImageRatios | string;
|
|
186
|
+
width?: number | string;
|
|
187
|
+
height?: number | string;
|
|
228
188
|
cover?: VelcronBindableProp<boolean>;
|
|
229
189
|
borderRadius?: VelcronDimensions;
|
|
230
190
|
events?: VelcronOnPressEvent;
|
|
231
191
|
}
|
|
192
|
+
export interface VelcronVideoDefinition extends VelcronDefinition {
|
|
193
|
+
type: "video";
|
|
194
|
+
url?: VelcronBindableProp<string>;
|
|
195
|
+
bind?: VelcronBindableProp<string>;
|
|
196
|
+
aspectRatio?: VelcronBindableProp<"16:9" | "4:3" | "1:1">;
|
|
197
|
+
autoplay?: VelcronBindableProp<boolean>;
|
|
198
|
+
muted?: VelcronBindableProp<boolean>;
|
|
199
|
+
}
|
|
232
200
|
export interface VelcronButtonDefinition extends VelcronDefinition {
|
|
233
201
|
type: "button";
|
|
234
202
|
text: string;
|
|
235
203
|
icon?: VelcronIcon;
|
|
236
204
|
disabled?: boolean;
|
|
237
205
|
events?: VelcronOnPressEvent;
|
|
206
|
+
size?: string;
|
|
238
207
|
}
|
|
239
208
|
export interface VelcronTextInputDefinition extends VelcronDefinition {
|
|
240
209
|
type: "text-input";
|
|
@@ -277,6 +246,7 @@ export interface VelcronBorder extends VelcronDimensions {
|
|
|
277
246
|
colorType?: string;
|
|
278
247
|
toned?: boolean;
|
|
279
248
|
opacity?: number;
|
|
249
|
+
width?: number;
|
|
280
250
|
}
|
|
281
251
|
export interface VelcronChipDefinition extends VelcronDefinition {
|
|
282
252
|
type: "chip";
|
|
@@ -289,18 +259,39 @@ export interface VelcronSlotDefinition extends VelcronDefinition {
|
|
|
289
259
|
type: "slot";
|
|
290
260
|
bind: VelcronBindableProp<string>;
|
|
291
261
|
}
|
|
262
|
+
export interface VelcronReferencefinition extends VelcronDefinition {
|
|
263
|
+
type: "reference";
|
|
264
|
+
to: ActivityRendererReference;
|
|
265
|
+
}
|
|
292
266
|
export interface VelcronPropertyDefinition extends VelcronDefinition {
|
|
293
267
|
type: "property";
|
|
294
268
|
bind: VelcronBindableProp<string>;
|
|
295
269
|
}
|
|
270
|
+
export interface VelcronCheckboxDefinition extends VelcronDefinition {
|
|
271
|
+
type: "checkbox";
|
|
272
|
+
label: VelcronBindableProp<string>;
|
|
273
|
+
value: string;
|
|
274
|
+
bind: VelcronBindableProp<string>;
|
|
275
|
+
disabled: VelcronBindableProp<boolean>;
|
|
276
|
+
events: VelcronOnUpdatedEvent;
|
|
277
|
+
}
|
|
278
|
+
export interface VelcronRadioDefinition extends VelcronDefinition {
|
|
279
|
+
type: "radio";
|
|
280
|
+
label: VelcronBindableProp<string>;
|
|
281
|
+
value: string;
|
|
282
|
+
bind: VelcronBindableProp<string>;
|
|
283
|
+
disabled: VelcronBindableProp<boolean>;
|
|
284
|
+
events: VelcronOnUpdatedEvent;
|
|
285
|
+
}
|
|
296
286
|
export interface VelcronPropertyDefinitionValue {
|
|
297
287
|
definitionId: GuidValue;
|
|
298
288
|
value: PropertyValue;
|
|
299
289
|
configuration: PropertyConfiguration<PropertyDefinition<any, any, any, PropertySetupBase>>;
|
|
300
290
|
}
|
|
301
|
-
export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
|
|
302
291
|
export type VelcronRenderProps<TDefinition> = {
|
|
303
292
|
definition: TDefinition;
|
|
304
293
|
renderContext: VelcronRenderContext;
|
|
305
294
|
};
|
|
306
|
-
export {
|
|
295
|
+
export type VelcronAppRendererProps = VelcronRenderProps<VelcronAppDefinition> & {
|
|
296
|
+
rootApp: boolean;
|
|
297
|
+
};
|
|
@@ -5,4 +5,4 @@ var VelcronImageRatios;
|
|
|
5
5
|
(function (VelcronImageRatios) {
|
|
6
6
|
VelcronImageRatios["square"] = "square";
|
|
7
7
|
VelcronImageRatios["landscape"] = "landscape";
|
|
8
|
-
})(VelcronImageRatios
|
|
8
|
+
})(VelcronImageRatios || (exports.VelcronImageRatios = VelcronImageRatios = {}));
|
|
@@ -1,17 +1,7 @@
|
|
|
1
|
-
import { VelcronImageRatios } from "@omnia/fx-models";
|
|
1
|
+
import { TypographySize, TypographyType, VelcronImageRatios, VelcronPropertyEditor, VelcronSpacing } from "@omnia/fx-models";
|
|
2
2
|
export interface ResolvedPropertyEditor {
|
|
3
3
|
editor: VelcronPropertyEditor;
|
|
4
4
|
}
|
|
5
|
-
export interface VelcronPropertyEditor<TSettings = any> {
|
|
6
|
-
name?: string;
|
|
7
|
-
category?: string;
|
|
8
|
-
type: BuiltInPropertyEditorType | string;
|
|
9
|
-
settings?: TSettings;
|
|
10
|
-
stateMapping?: string;
|
|
11
|
-
propertyMapping?: boolean;
|
|
12
|
-
multiple?: boolean;
|
|
13
|
-
component?: unknown;
|
|
14
|
-
}
|
|
15
5
|
export interface BuiltInPropertyEditors {
|
|
16
6
|
text: unknown;
|
|
17
7
|
slider: unknown;
|
|
@@ -22,9 +12,9 @@ export interface BuiltInPropertyEditors {
|
|
|
22
12
|
icon: unknown;
|
|
23
13
|
image: unknown;
|
|
24
14
|
typography: unknown;
|
|
15
|
+
spacing: unknown;
|
|
25
16
|
"color-schema-type": unknown;
|
|
26
17
|
}
|
|
27
|
-
export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "color-schema-type";
|
|
28
18
|
export declare enum BuiltInPropertyEditorTypes {
|
|
29
19
|
text = "text",
|
|
30
20
|
slider = "slider",
|
|
@@ -35,6 +25,7 @@ export declare enum BuiltInPropertyEditorTypes {
|
|
|
35
25
|
icon = "icon",
|
|
36
26
|
image = "image",
|
|
37
27
|
typography = "typography",
|
|
28
|
+
spacing = "spacing",
|
|
38
29
|
"color-schema-type" = "color-schema-type"
|
|
39
30
|
}
|
|
40
31
|
export interface VelcronSliderPropertyEditorSettings {
|
|
@@ -42,13 +33,29 @@ export interface VelcronSliderPropertyEditorSettings {
|
|
|
42
33
|
max: number;
|
|
43
34
|
step: number;
|
|
44
35
|
}
|
|
36
|
+
export interface VelcronTypographyEditorSettings {
|
|
37
|
+
type: "title" | "text";
|
|
38
|
+
}
|
|
39
|
+
export interface VelcronMarkdownEditorSettings {
|
|
40
|
+
placeholder: string;
|
|
41
|
+
}
|
|
42
|
+
export interface VelcronSpacingEditorSettings {
|
|
43
|
+
individualSelection: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface VelcronTextEditorSettings {
|
|
46
|
+
type: TypographyType;
|
|
47
|
+
placeholder: string;
|
|
48
|
+
}
|
|
45
49
|
export interface VelcronSliderPropertyEditor extends VelcronPropertyEditor<VelcronSliderPropertyEditorSettings> {
|
|
46
50
|
type: "slider";
|
|
47
51
|
}
|
|
48
|
-
export interface VelcronTextPropertyEditor extends VelcronPropertyEditor<
|
|
52
|
+
export interface VelcronTextPropertyEditor extends VelcronPropertyEditor<VelcronTextEditorSettings> {
|
|
49
53
|
type: "text";
|
|
50
54
|
}
|
|
51
|
-
export interface
|
|
55
|
+
export interface VelcronEnterprisePropertyEditor extends VelcronPropertyEditor<any> {
|
|
56
|
+
type: "enterprise-property";
|
|
57
|
+
}
|
|
58
|
+
export interface VelcronTypographyPropertyEditor extends VelcronPropertyEditor<VelcronTypographyEditorSettings> {
|
|
52
59
|
type: "typography";
|
|
53
60
|
}
|
|
54
61
|
export interface VelcronSwitchPropertyEditor extends VelcronPropertyEditor<any> {
|
|
@@ -66,19 +73,261 @@ export interface VelcronColorSchemaPropertyEditor extends VelcronPropertyEditor<
|
|
|
66
73
|
export interface VelcronIconPropertyEditor extends VelcronPropertyEditor<any> {
|
|
67
74
|
type: "icon";
|
|
68
75
|
}
|
|
69
|
-
export interface VelcronMarkdownPropertyEditor extends VelcronPropertyEditor<
|
|
76
|
+
export interface VelcronMarkdownPropertyEditor extends VelcronPropertyEditor<VelcronMarkdownEditorSettings> {
|
|
70
77
|
type: "markdown";
|
|
71
78
|
}
|
|
72
79
|
export interface VelcronImagePropertyEditor extends VelcronPropertyEditor<any> {
|
|
73
80
|
type: "image";
|
|
74
81
|
}
|
|
82
|
+
export interface VelcronSpacingPropertyEditor extends VelcronPropertyEditor<VelcronSpacingEditorSettings> {
|
|
83
|
+
type: "spacing";
|
|
84
|
+
}
|
|
85
|
+
export interface VelcronState {
|
|
86
|
+
images?: VelcronImagesState;
|
|
87
|
+
styling?: VelcronStylingState;
|
|
88
|
+
colorSchemas?: VelcronColorSchemasState;
|
|
89
|
+
content?: VelcronContentState;
|
|
90
|
+
header?: VelcronHeaderState;
|
|
91
|
+
properties?: VelcronPropertiesState;
|
|
92
|
+
spacing?: VelcronSpacingState;
|
|
93
|
+
}
|
|
94
|
+
export interface VelcronSpacingState {
|
|
95
|
+
chrome?: VelcronSpacing;
|
|
96
|
+
}
|
|
97
|
+
export interface VelcronHeaderState {
|
|
98
|
+
title?: VelcronTextState;
|
|
99
|
+
icon?: string;
|
|
100
|
+
}
|
|
101
|
+
export interface VelcronTextState {
|
|
102
|
+
text?: string;
|
|
103
|
+
placeholder?: string;
|
|
104
|
+
typography?: VelcronTypographyState;
|
|
105
|
+
}
|
|
106
|
+
export interface VelcronTypographyState {
|
|
107
|
+
type?: TypographyType;
|
|
108
|
+
size?: TypographySize;
|
|
109
|
+
toned?: boolean;
|
|
110
|
+
}
|
|
75
111
|
export interface VelcronContentState {
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
112
|
+
caption?: VelcronTextState;
|
|
113
|
+
main?: VelcronTextState;
|
|
114
|
+
title?: VelcronTextState;
|
|
115
|
+
summary?: VelcronTextState;
|
|
116
|
+
}
|
|
117
|
+
export interface VelcronPropertiesState {
|
|
118
|
+
user: any;
|
|
119
|
+
mappings: Array<any>;
|
|
120
|
+
}
|
|
121
|
+
export interface VelcronImagesState {
|
|
122
|
+
main?: VelcronImageState;
|
|
123
|
+
alt1?: VelcronImageState;
|
|
124
|
+
alt2?: VelcronImageState;
|
|
80
125
|
}
|
|
81
126
|
export interface VelcronImageState {
|
|
82
127
|
url?: string;
|
|
83
128
|
ratio?: VelcronImageRatios;
|
|
129
|
+
caption?: VelcronTextState;
|
|
130
|
+
width?: number;
|
|
131
|
+
height?: number;
|
|
132
|
+
}
|
|
133
|
+
export interface VelcronStylingState {
|
|
134
|
+
}
|
|
135
|
+
export interface VelcronColorSchemasState {
|
|
136
|
+
main: VelcronColorSchemaState;
|
|
84
137
|
}
|
|
138
|
+
export interface VelcronColorSchemaState {
|
|
139
|
+
type?: string;
|
|
140
|
+
filled?: boolean;
|
|
141
|
+
}
|
|
142
|
+
export declare const VelcronImagesStateBinding: {
|
|
143
|
+
main: {
|
|
144
|
+
editor: string;
|
|
145
|
+
url: string;
|
|
146
|
+
ratio: string;
|
|
147
|
+
caption: string;
|
|
148
|
+
width: string;
|
|
149
|
+
height: string;
|
|
150
|
+
};
|
|
151
|
+
alt1: {
|
|
152
|
+
editor: string;
|
|
153
|
+
url: string;
|
|
154
|
+
ratio: string;
|
|
155
|
+
caption: string;
|
|
156
|
+
width: string;
|
|
157
|
+
height: string;
|
|
158
|
+
};
|
|
159
|
+
alt2: {
|
|
160
|
+
editor: string;
|
|
161
|
+
url: string;
|
|
162
|
+
ratio: string;
|
|
163
|
+
caption: string;
|
|
164
|
+
width: string;
|
|
165
|
+
height: string;
|
|
166
|
+
};
|
|
167
|
+
};
|
|
168
|
+
export declare const VelcronHeaderStateBinding: {
|
|
169
|
+
title: {
|
|
170
|
+
text: string;
|
|
171
|
+
placeholder: string;
|
|
172
|
+
typography: {
|
|
173
|
+
editor: any;
|
|
174
|
+
type: any;
|
|
175
|
+
size: any;
|
|
176
|
+
toned: any;
|
|
177
|
+
};
|
|
178
|
+
};
|
|
179
|
+
icon: string;
|
|
180
|
+
};
|
|
181
|
+
export declare const VelcronContentStateBinding: {
|
|
182
|
+
title: {
|
|
183
|
+
text: string;
|
|
184
|
+
placeholder: string;
|
|
185
|
+
typography: {
|
|
186
|
+
editor: any;
|
|
187
|
+
type: any;
|
|
188
|
+
size: any;
|
|
189
|
+
toned: any;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
192
|
+
main: {
|
|
193
|
+
text: string;
|
|
194
|
+
placeholder: string;
|
|
195
|
+
typography: {
|
|
196
|
+
editor: any;
|
|
197
|
+
type: any;
|
|
198
|
+
size: any;
|
|
199
|
+
toned: any;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
caption: {
|
|
203
|
+
text: string;
|
|
204
|
+
placeholder: string;
|
|
205
|
+
typography: {
|
|
206
|
+
editor: any;
|
|
207
|
+
type: any;
|
|
208
|
+
size: any;
|
|
209
|
+
toned: any;
|
|
210
|
+
};
|
|
211
|
+
};
|
|
212
|
+
summary: {
|
|
213
|
+
text: string;
|
|
214
|
+
placeholder: string;
|
|
215
|
+
typography: {
|
|
216
|
+
editor: any;
|
|
217
|
+
type: any;
|
|
218
|
+
size: any;
|
|
219
|
+
toned: any;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
};
|
|
223
|
+
export declare const VelcronColorSchemasStateBinding: {
|
|
224
|
+
main: {
|
|
225
|
+
type: string;
|
|
226
|
+
filled: string;
|
|
227
|
+
};
|
|
228
|
+
};
|
|
229
|
+
export declare const VelcronSpacingStateBinding: {
|
|
230
|
+
chrome: {
|
|
231
|
+
top: string;
|
|
232
|
+
right: string;
|
|
233
|
+
bottom: string;
|
|
234
|
+
left: string;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
export declare const VelcronStateBinding: {
|
|
238
|
+
colorSchemas: {
|
|
239
|
+
main: {
|
|
240
|
+
type: string;
|
|
241
|
+
filled: string;
|
|
242
|
+
};
|
|
243
|
+
};
|
|
244
|
+
images: {
|
|
245
|
+
main: {
|
|
246
|
+
editor: string;
|
|
247
|
+
url: string;
|
|
248
|
+
ratio: string;
|
|
249
|
+
caption: string;
|
|
250
|
+
width: string;
|
|
251
|
+
height: string;
|
|
252
|
+
};
|
|
253
|
+
alt1: {
|
|
254
|
+
editor: string;
|
|
255
|
+
url: string;
|
|
256
|
+
ratio: string;
|
|
257
|
+
caption: string;
|
|
258
|
+
width: string;
|
|
259
|
+
height: string;
|
|
260
|
+
};
|
|
261
|
+
alt2: {
|
|
262
|
+
editor: string;
|
|
263
|
+
url: string;
|
|
264
|
+
ratio: string;
|
|
265
|
+
caption: string;
|
|
266
|
+
width: string;
|
|
267
|
+
height: string;
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
content: {
|
|
271
|
+
title: {
|
|
272
|
+
text: string;
|
|
273
|
+
placeholder: string;
|
|
274
|
+
typography: {
|
|
275
|
+
editor: any;
|
|
276
|
+
type: any;
|
|
277
|
+
size: any;
|
|
278
|
+
toned: any;
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
main: {
|
|
282
|
+
text: string;
|
|
283
|
+
placeholder: string;
|
|
284
|
+
typography: {
|
|
285
|
+
editor: any;
|
|
286
|
+
type: any;
|
|
287
|
+
size: any;
|
|
288
|
+
toned: any;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
caption: {
|
|
292
|
+
text: string;
|
|
293
|
+
placeholder: string;
|
|
294
|
+
typography: {
|
|
295
|
+
editor: any;
|
|
296
|
+
type: any;
|
|
297
|
+
size: any;
|
|
298
|
+
toned: any;
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
summary: {
|
|
302
|
+
text: string;
|
|
303
|
+
placeholder: string;
|
|
304
|
+
typography: {
|
|
305
|
+
editor: any;
|
|
306
|
+
type: any;
|
|
307
|
+
size: any;
|
|
308
|
+
toned: any;
|
|
309
|
+
};
|
|
310
|
+
};
|
|
311
|
+
};
|
|
312
|
+
header: {
|
|
313
|
+
title: {
|
|
314
|
+
text: string;
|
|
315
|
+
placeholder: string;
|
|
316
|
+
typography: {
|
|
317
|
+
editor: any;
|
|
318
|
+
type: any;
|
|
319
|
+
size: any;
|
|
320
|
+
toned: any;
|
|
321
|
+
};
|
|
322
|
+
};
|
|
323
|
+
icon: string;
|
|
324
|
+
};
|
|
325
|
+
spacing: {
|
|
326
|
+
chrome: {
|
|
327
|
+
top: string;
|
|
328
|
+
right: string;
|
|
329
|
+
bottom: string;
|
|
330
|
+
left: string;
|
|
331
|
+
};
|
|
332
|
+
};
|
|
333
|
+
};
|