@omnia/velcron 8.0.91-vnext → 8.0.92-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 +24 -15
- 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 +8 -4
- package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.js +2 -3
- 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 -33
- 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.d.ts +6 -0
- package/models/Enums.js +14 -7
- package/models/VelcronDefinitions.d.ts +95 -91
- package/models/VelcronDefinitions.js +1 -1
- package/models/VelcronPropertyEditorDefinitions.d.ts +268 -18
- 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 +15 -5
- package/parser/VelcronConstants.js +15 -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 +181 -72
- package/stores/ReactivitySystem.d.ts +2 -2
- package/stores/ReactivitySystem.js +1 -1
- package/stores/VelcronColorSchema.d.ts +10 -9
- 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,19 +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
|
+
import { GuidValue, PropertyConfiguration, PropertyValue, PropertyDefinition, PropertySetupBase } from "@omnia/fx/models";
|
|
5
6
|
import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
|
|
6
|
-
import { useVelcronBlueprintStore } from "../stores/VelcronBlueprint";
|
|
7
7
|
export interface ResolvedComponentRenderer {
|
|
8
8
|
component: unknown;
|
|
9
9
|
definition: VelcronDefinition;
|
|
10
10
|
customComponent?: boolean;
|
|
11
11
|
}
|
|
12
12
|
export interface BuiltInComponentRenderers {
|
|
13
|
-
"
|
|
13
|
+
"velcron": unknown;
|
|
14
|
+
"flex": unknown;
|
|
15
|
+
"row": unknown;
|
|
16
|
+
"column": unknown;
|
|
14
17
|
"card": unknown;
|
|
15
18
|
"text": unknown;
|
|
16
19
|
"image": unknown;
|
|
20
|
+
"video": unknown;
|
|
17
21
|
"button": unknown;
|
|
18
22
|
"text-input": unknown;
|
|
19
23
|
"progress-circle": unknown;
|
|
@@ -24,12 +28,15 @@ export interface BuiltInComponentRenderers {
|
|
|
24
28
|
"chip": unknown;
|
|
25
29
|
"markdown": unknown;
|
|
26
30
|
"slot": unknown;
|
|
31
|
+
"property": unknown;
|
|
32
|
+
"checkbox": unknown;
|
|
33
|
+
"reference": unknown;
|
|
34
|
+
"radio": unknown;
|
|
27
35
|
}
|
|
28
36
|
export interface ColorSchemaReference {
|
|
29
37
|
name: string;
|
|
30
38
|
schema: string;
|
|
31
39
|
}
|
|
32
|
-
export type DynamicState = object;
|
|
33
40
|
export interface OnItemRenderedHookResult {
|
|
34
41
|
cssClass: string;
|
|
35
42
|
containerRenderer?: VelcronContainerRenderer;
|
|
@@ -40,21 +47,21 @@ export interface VelcronRenderContext {
|
|
|
40
47
|
currentContext: DynamicState;
|
|
41
48
|
theming?: ReturnType<typeof useVelcronThemingStore>;
|
|
42
49
|
colors?: ReturnType<typeof useVelcronColorSchemaStore>;
|
|
43
|
-
blueprints?: ReturnType<typeof useVelcronBlueprintStore>;
|
|
44
50
|
actions?: {
|
|
45
|
-
[name: string]:
|
|
51
|
+
[name: string]: Array<string>;
|
|
46
52
|
};
|
|
47
53
|
components?: Array<VelcronCustomComponentDefinition>;
|
|
48
54
|
properties?: {
|
|
49
55
|
[name: string]: VelcronPrimitiveType | VelcroncomponentArrayType;
|
|
50
56
|
};
|
|
51
57
|
computed?: {
|
|
52
|
-
[name: string]:
|
|
58
|
+
[name: string]: Array<string>;
|
|
53
59
|
};
|
|
54
60
|
parent?: VelcronRenderContext;
|
|
55
61
|
hooks?: VelcronRenderContextHooks;
|
|
56
62
|
eventHandlers?: VelcronRenderContextEventHandlers;
|
|
57
63
|
editMode?: boolean;
|
|
64
|
+
disposers: Array<() => void>;
|
|
58
65
|
}
|
|
59
66
|
export interface VelcronRenderContextEventHandlers {
|
|
60
67
|
receiving?: {
|
|
@@ -67,6 +74,7 @@ export interface VelcronRenderContextHooks {
|
|
|
67
74
|
onItemSelected?: ((item: VelcronDefinition) => void);
|
|
68
75
|
onItemRendered?: ((item: VelcronDefinition) => OnItemRenderedHookResult);
|
|
69
76
|
onItemCreatedProps?: ((item: VelcronDefinition) => object);
|
|
77
|
+
onLoadReference?: ((reference: ActivityRendererReference) => Promise<VelcronDefinition>);
|
|
70
78
|
}
|
|
71
79
|
export interface VelcronContainerRenderer {
|
|
72
80
|
definition: VelcronDefinition;
|
|
@@ -91,38 +99,11 @@ export interface VelcronActionWithCondition extends VelcronActionWithAutoAwait {
|
|
|
91
99
|
trueAction: VelcronAction;
|
|
92
100
|
falseAction: VelcronAction;
|
|
93
101
|
}
|
|
94
|
-
/**
|
|
95
|
-
* Velcron definition base
|
|
96
|
-
*/
|
|
97
|
-
export interface VelcronDefinitionBase {
|
|
98
|
-
/**
|
|
99
|
-
* The component type
|
|
100
|
-
*/
|
|
101
|
-
type: string;
|
|
102
|
-
/**
|
|
103
|
-
* Custom friendly name of the definition
|
|
104
|
-
*/
|
|
105
|
-
name?: string;
|
|
106
|
-
/**
|
|
107
|
-
* Used for render cache if not specified we auto set it.
|
|
108
|
-
*/
|
|
109
|
-
key?: string;
|
|
110
|
-
}
|
|
111
|
-
export interface VelcronDefinition extends VelcronDefinitionBase, VelcronDimensionStyling {
|
|
112
|
-
body?: Array<VelcronDefinition>;
|
|
113
|
-
style?: VelcronStyling;
|
|
114
|
-
foreach?: string;
|
|
115
|
-
if?: string;
|
|
116
|
-
events?: VelcronEvent;
|
|
117
|
-
}
|
|
118
102
|
export type VelcronBindableProp<TPropType = string> = TPropType | string;
|
|
119
103
|
export interface VelcronDefinitionWithEditMode extends VelcronDefinition {
|
|
120
104
|
edit?: VelcronBindableProp<boolean>;
|
|
121
105
|
bind?: VelcronBindableProp;
|
|
122
106
|
}
|
|
123
|
-
interface VelcronDimensionStyling {
|
|
124
|
-
padding?: VelcronSpacing;
|
|
125
|
-
}
|
|
126
107
|
export interface VelcronColorStyling {
|
|
127
108
|
colorSchemaType?: string;
|
|
128
109
|
colorType?: string;
|
|
@@ -132,75 +113,54 @@ export interface VelcronColorStyling {
|
|
|
132
113
|
}
|
|
133
114
|
export interface VelcronTextStyling {
|
|
134
115
|
text: string;
|
|
116
|
+
placeholder?: string;
|
|
135
117
|
typography?: string;
|
|
136
118
|
size?: string;
|
|
137
119
|
}
|
|
138
|
-
export interface VelcronStyling {
|
|
139
|
-
margin?: number;
|
|
140
|
-
marginTop?: number;
|
|
141
|
-
marginRight?: number;
|
|
142
|
-
marginBottom?: number;
|
|
143
|
-
marginLeft?: number;
|
|
144
|
-
padding?: number;
|
|
145
|
-
paddingTop?: number;
|
|
146
|
-
paddingRight?: number;
|
|
147
|
-
paddingBottom?: number;
|
|
148
|
-
paddingLeft?: number;
|
|
149
|
-
height?: number | string;
|
|
150
|
-
width?: number | string;
|
|
151
|
-
}
|
|
152
120
|
export interface VelcronCardStyling extends VelcronStyling {
|
|
153
121
|
elevation: number;
|
|
154
122
|
}
|
|
155
|
-
export interface VelcronSpacing {
|
|
156
|
-
top?: number | string;
|
|
157
|
-
right?: number | string;
|
|
158
|
-
bottom?: number | string;
|
|
159
|
-
left?: number | string;
|
|
160
|
-
}
|
|
161
123
|
export interface VelcronIcon {
|
|
162
124
|
type: VelcronIconTypes;
|
|
163
125
|
name: string;
|
|
164
126
|
}
|
|
165
|
-
export interface
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
name: string;
|
|
169
|
-
body?: Array<VelcronDefinition>;
|
|
170
|
-
events?: VelcronOnLoadEvent & VelcronOnEditModeEvent;
|
|
171
|
-
actions?: {
|
|
172
|
-
[name: string]: [];
|
|
173
|
-
};
|
|
174
|
-
components?: Array<VelcronCustomComponentDefinition>;
|
|
175
|
-
propEditors?: Array<VelcronPropertyEditor>;
|
|
176
|
-
state?: TState;
|
|
177
|
-
computed?: {
|
|
178
|
-
[name: string]: [];
|
|
179
|
-
};
|
|
180
|
-
}
|
|
181
|
-
export interface VelcronComponentDefinition extends VelcronDefinition {
|
|
182
|
-
type: string;
|
|
183
|
-
events: any;
|
|
184
|
-
properties: [];
|
|
185
|
-
icon: any;
|
|
127
|
+
export interface VelcronRenderProp {
|
|
128
|
+
required?: boolean;
|
|
129
|
+
defaultValue?: any;
|
|
186
130
|
}
|
|
187
131
|
/*** Built-in Components *********************************************************************/
|
|
188
|
-
export interface
|
|
189
|
-
type: "
|
|
132
|
+
export interface VelcronFlexDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
133
|
+
type: "flex";
|
|
190
134
|
events?: VelcronOnPressEvent;
|
|
191
|
-
direction?: "row" | "column" | "row-reverse" | "column-reverse" | string;
|
|
192
|
-
columnStyle?: object;
|
|
193
|
-
horizontalAlignment?: VelcronHorizontalAlignments;
|
|
194
|
-
verticalAlignment?: VelcronVerticalAlignments;
|
|
195
|
-
grow?: number;
|
|
196
|
-
absolute?: VelcronSpacing;
|
|
197
135
|
border?: VelcronBorder;
|
|
198
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";
|
|
199
150
|
width?: number | string;
|
|
200
151
|
minWidth?: number | string;
|
|
201
152
|
height?: number | string;
|
|
202
153
|
minHeight?: number | string;
|
|
203
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
|
+
}
|
|
204
164
|
export interface VelcronCardDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
205
165
|
type: "card";
|
|
206
166
|
style?: VelcronCardStyling;
|
|
@@ -220,18 +180,30 @@ export declare enum VelcronImageRatios {
|
|
|
220
180
|
}
|
|
221
181
|
export interface VelcronImageDefinition extends VelcronDefinition {
|
|
222
182
|
type: "image";
|
|
223
|
-
|
|
224
|
-
|
|
183
|
+
url?: VelcronBindableProp<string>;
|
|
184
|
+
bind?: VelcronBindableProp<string>;
|
|
185
|
+
ratio?: VelcronImageRatios | string;
|
|
186
|
+
width?: number | string;
|
|
187
|
+
height?: number | string;
|
|
225
188
|
cover?: VelcronBindableProp<boolean>;
|
|
226
189
|
borderRadius?: VelcronDimensions;
|
|
227
190
|
events?: VelcronOnPressEvent;
|
|
228
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
|
+
}
|
|
229
200
|
export interface VelcronButtonDefinition extends VelcronDefinition {
|
|
230
201
|
type: "button";
|
|
231
202
|
text: string;
|
|
232
203
|
icon?: VelcronIcon;
|
|
233
204
|
disabled?: boolean;
|
|
234
205
|
events?: VelcronOnPressEvent;
|
|
206
|
+
size?: string;
|
|
235
207
|
}
|
|
236
208
|
export interface VelcronTextInputDefinition extends VelcronDefinition {
|
|
237
209
|
type: "text-input";
|
|
@@ -271,7 +243,10 @@ export interface VelcronDimensions {
|
|
|
271
243
|
left: number | string;
|
|
272
244
|
}
|
|
273
245
|
export interface VelcronBorder extends VelcronDimensions {
|
|
274
|
-
|
|
246
|
+
colorType?: string;
|
|
247
|
+
toned?: boolean;
|
|
248
|
+
opacity?: number;
|
|
249
|
+
width?: number;
|
|
275
250
|
}
|
|
276
251
|
export interface VelcronChipDefinition extends VelcronDefinition {
|
|
277
252
|
type: "chip";
|
|
@@ -282,12 +257,41 @@ export interface VelcronChipDefinition extends VelcronDefinition {
|
|
|
282
257
|
}
|
|
283
258
|
export interface VelcronSlotDefinition extends VelcronDefinition {
|
|
284
259
|
type: "slot";
|
|
285
|
-
bind: string
|
|
286
|
-
|
|
260
|
+
bind: VelcronBindableProp<string>;
|
|
261
|
+
}
|
|
262
|
+
export interface VelcronReferencefinition extends VelcronDefinition {
|
|
263
|
+
type: "reference";
|
|
264
|
+
to: ActivityRendererReference;
|
|
265
|
+
}
|
|
266
|
+
export interface VelcronPropertyDefinition extends VelcronDefinition {
|
|
267
|
+
type: "property";
|
|
268
|
+
bind: VelcronBindableProp<string>;
|
|
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
|
+
}
|
|
286
|
+
export interface VelcronPropertyDefinitionValue {
|
|
287
|
+
definitionId: GuidValue;
|
|
288
|
+
value: PropertyValue;
|
|
289
|
+
configuration: PropertyConfiguration<PropertyDefinition<any, any, any, PropertySetupBase>>;
|
|
287
290
|
}
|
|
288
|
-
export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
|
|
289
291
|
export type VelcronRenderProps<TDefinition> = {
|
|
290
292
|
definition: TDefinition;
|
|
291
293
|
renderContext: VelcronRenderContext;
|
|
292
294
|
};
|
|
293
|
-
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,16 +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
|
-
component?: unknown;
|
|
13
|
-
}
|
|
14
5
|
export interface BuiltInPropertyEditors {
|
|
15
6
|
text: unknown;
|
|
16
7
|
slider: unknown;
|
|
@@ -21,9 +12,9 @@ export interface BuiltInPropertyEditors {
|
|
|
21
12
|
icon: unknown;
|
|
22
13
|
image: unknown;
|
|
23
14
|
typography: unknown;
|
|
15
|
+
spacing: unknown;
|
|
24
16
|
"color-schema-type": unknown;
|
|
25
17
|
}
|
|
26
|
-
export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "color-schema-type";
|
|
27
18
|
export declare enum BuiltInPropertyEditorTypes {
|
|
28
19
|
text = "text",
|
|
29
20
|
slider = "slider",
|
|
@@ -34,6 +25,7 @@ export declare enum BuiltInPropertyEditorTypes {
|
|
|
34
25
|
icon = "icon",
|
|
35
26
|
image = "image",
|
|
36
27
|
typography = "typography",
|
|
28
|
+
spacing = "spacing",
|
|
37
29
|
"color-schema-type" = "color-schema-type"
|
|
38
30
|
}
|
|
39
31
|
export interface VelcronSliderPropertyEditorSettings {
|
|
@@ -41,13 +33,29 @@ export interface VelcronSliderPropertyEditorSettings {
|
|
|
41
33
|
max: number;
|
|
42
34
|
step: number;
|
|
43
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
|
+
}
|
|
44
49
|
export interface VelcronSliderPropertyEditor extends VelcronPropertyEditor<VelcronSliderPropertyEditorSettings> {
|
|
45
50
|
type: "slider";
|
|
46
51
|
}
|
|
47
|
-
export interface VelcronTextPropertyEditor extends VelcronPropertyEditor<
|
|
52
|
+
export interface VelcronTextPropertyEditor extends VelcronPropertyEditor<VelcronTextEditorSettings> {
|
|
48
53
|
type: "text";
|
|
49
54
|
}
|
|
50
|
-
export interface
|
|
55
|
+
export interface VelcronEnterprisePropertyEditor extends VelcronPropertyEditor<any> {
|
|
56
|
+
type: "enterprise-property";
|
|
57
|
+
}
|
|
58
|
+
export interface VelcronTypographyPropertyEditor extends VelcronPropertyEditor<VelcronTypographyEditorSettings> {
|
|
51
59
|
type: "typography";
|
|
52
60
|
}
|
|
53
61
|
export interface VelcronSwitchPropertyEditor extends VelcronPropertyEditor<any> {
|
|
@@ -65,19 +73,261 @@ export interface VelcronColorSchemaPropertyEditor extends VelcronPropertyEditor<
|
|
|
65
73
|
export interface VelcronIconPropertyEditor extends VelcronPropertyEditor<any> {
|
|
66
74
|
type: "icon";
|
|
67
75
|
}
|
|
68
|
-
export interface VelcronMarkdownPropertyEditor extends VelcronPropertyEditor<
|
|
76
|
+
export interface VelcronMarkdownPropertyEditor extends VelcronPropertyEditor<VelcronMarkdownEditorSettings> {
|
|
69
77
|
type: "markdown";
|
|
70
78
|
}
|
|
71
79
|
export interface VelcronImagePropertyEditor extends VelcronPropertyEditor<any> {
|
|
72
80
|
type: "image";
|
|
73
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
|
+
}
|
|
74
111
|
export interface VelcronContentState {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
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;
|
|
79
125
|
}
|
|
80
126
|
export interface VelcronImageState {
|
|
81
127
|
url?: string;
|
|
82
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;
|
|
83
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
|
+
};
|