@omnia/velcron 8.0.97-vnext → 8.0.98-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/Array.js +9 -2
- package/actions/Clone.d.ts +2 -0
- package/actions/Clone.js +11 -0
- package/actions/Date.d.ts +1 -1
- package/actions/Date.js +2 -4
- package/actions/Http.js +23 -6
- package/actions/index.d.ts +1 -0
- package/actions/index.js +1 -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 +76 -86
- package/models/VelcronDefinitions.js +1 -1
- package/models/VelcronPropertyEditorDefinitions.d.ts +259 -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 +7 -1
- package/parser/VelcronActions.js +20 -3
- package/parser/VelcronConstants.d.ts +6 -1
- package/parser/VelcronConstants.js +7 -2
- package/parser/VelcronData.d.ts +3 -2
- package/parser/VelcronData.js +13 -12
- package/parser/VelcronPropertyEditors.js +1 -1
- package/parser/VelcronRenderers.d.ts +2 -1
- package/parser/VelcronRenderers.js +20 -20
- 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/VelcronEditorBuilder2.d.ts +15 -0
- package/templatebuilder/editor/VelcronEditorBuilder2.js +106 -0
- package/templatebuilder/editor/VelcronEditorBuilderBase.d.ts +1 -1
- package/templatebuilder/editor/VelcronPropertyMappingEditorBuilder.js +1 -1
- 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 +3 -2
- package/templatebuilder/state/VelcronPropertyMappingStateBuilder.js +12 -5
- package/templatebuilder/state/VelcronStateBuilder.d.ts +2 -1
- 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,7 +47,6 @@ 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
51
|
[name: string]: Array<string>;
|
|
48
52
|
};
|
|
@@ -70,6 +74,7 @@ export interface VelcronRenderContextHooks {
|
|
|
70
74
|
onItemSelected?: ((item: VelcronDefinition) => void);
|
|
71
75
|
onItemRendered?: ((item: VelcronDefinition) => OnItemRenderedHookResult);
|
|
72
76
|
onItemCreatedProps?: ((item: VelcronDefinition) => object);
|
|
77
|
+
onLoadReference?: ((reference: ActivityRendererReference) => Promise<VelcronDefinition>);
|
|
73
78
|
}
|
|
74
79
|
export interface VelcronContainerRenderer {
|
|
75
80
|
definition: VelcronDefinition;
|
|
@@ -94,39 +99,11 @@ export interface VelcronActionWithCondition extends VelcronActionWithAutoAwait {
|
|
|
94
99
|
trueAction: VelcronAction;
|
|
95
100
|
falseAction: VelcronAction;
|
|
96
101
|
}
|
|
97
|
-
/**
|
|
98
|
-
* Velcron definition base
|
|
99
|
-
*/
|
|
100
|
-
export interface VelcronDefinitionBase {
|
|
101
|
-
/**
|
|
102
|
-
* The component type
|
|
103
|
-
*/
|
|
104
|
-
type: string;
|
|
105
|
-
/**
|
|
106
|
-
* Custom friendly name of the definition
|
|
107
|
-
*/
|
|
108
|
-
name?: string;
|
|
109
|
-
/**
|
|
110
|
-
* Used for render cache if not specified we auto set it.
|
|
111
|
-
*/
|
|
112
|
-
key?: string;
|
|
113
|
-
}
|
|
114
|
-
export interface VelcronDefinition extends VelcronDefinitionBase, VelcronDimensionStyling {
|
|
115
|
-
body?: Array<VelcronDefinition>;
|
|
116
|
-
style?: VelcronStyling;
|
|
117
|
-
foreach?: string;
|
|
118
|
-
if?: string;
|
|
119
|
-
events?: VelcronEvent;
|
|
120
|
-
}
|
|
121
102
|
export type VelcronBindableProp<TPropType = string> = TPropType | string;
|
|
122
103
|
export interface VelcronDefinitionWithEditMode extends VelcronDefinition {
|
|
123
104
|
edit?: VelcronBindableProp<boolean>;
|
|
124
105
|
bind?: VelcronBindableProp;
|
|
125
106
|
}
|
|
126
|
-
interface VelcronDimensionStyling {
|
|
127
|
-
margin?: VelcronSpacing;
|
|
128
|
-
padding?: VelcronSpacing;
|
|
129
|
-
}
|
|
130
107
|
export interface VelcronColorStyling {
|
|
131
108
|
colorSchemaType?: string;
|
|
132
109
|
colorType?: string;
|
|
@@ -136,75 +113,54 @@ export interface VelcronColorStyling {
|
|
|
136
113
|
}
|
|
137
114
|
export interface VelcronTextStyling {
|
|
138
115
|
text: string;
|
|
116
|
+
placeholder?: string;
|
|
139
117
|
typography?: string;
|
|
140
118
|
size?: string;
|
|
141
119
|
}
|
|
142
|
-
export interface VelcronStyling {
|
|
143
|
-
margin?: number;
|
|
144
|
-
marginTop?: number;
|
|
145
|
-
marginRight?: number;
|
|
146
|
-
marginBottom?: number;
|
|
147
|
-
marginLeft?: number;
|
|
148
|
-
padding?: number;
|
|
149
|
-
paddingTop?: number;
|
|
150
|
-
paddingRight?: number;
|
|
151
|
-
paddingBottom?: number;
|
|
152
|
-
paddingLeft?: number;
|
|
153
|
-
height?: number | string;
|
|
154
|
-
width?: number | string;
|
|
155
|
-
}
|
|
156
120
|
export interface VelcronCardStyling extends VelcronStyling {
|
|
157
121
|
elevation: number;
|
|
158
122
|
}
|
|
159
|
-
export interface VelcronSpacing {
|
|
160
|
-
top?: number | string;
|
|
161
|
-
right?: number | string;
|
|
162
|
-
bottom?: number | string;
|
|
163
|
-
left?: number | string;
|
|
164
|
-
}
|
|
165
123
|
export interface VelcronIcon {
|
|
166
124
|
type: VelcronIconTypes;
|
|
167
125
|
name: string;
|
|
168
126
|
}
|
|
169
|
-
export interface
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
name?: string;
|
|
173
|
-
body?: Array<VelcronDefinition>;
|
|
174
|
-
events?: VelcronOnLoadEvent & VelcronOnEditModeEvent;
|
|
175
|
-
actions?: {
|
|
176
|
-
[name: string]: Array<string>;
|
|
177
|
-
};
|
|
178
|
-
components?: Array<VelcronCustomComponentDefinition>;
|
|
179
|
-
propEditors?: Array<VelcronPropertyEditor>;
|
|
180
|
-
state?: TState;
|
|
181
|
-
computed?: {
|
|
182
|
-
[name: string]: Array<string>;
|
|
183
|
-
};
|
|
184
|
-
}
|
|
185
|
-
export interface VelcronComponentDefinition extends VelcronDefinition {
|
|
186
|
-
type: string;
|
|
187
|
-
events?: any;
|
|
188
|
-
properties?: [];
|
|
189
|
-
icon?: any;
|
|
127
|
+
export interface VelcronRenderProp {
|
|
128
|
+
required?: boolean;
|
|
129
|
+
defaultValue?: any;
|
|
190
130
|
}
|
|
191
131
|
/*** Built-in Components *********************************************************************/
|
|
192
|
-
export interface
|
|
193
|
-
type: "
|
|
132
|
+
export interface VelcronFlexDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
133
|
+
type: "flex";
|
|
194
134
|
events?: VelcronOnPressEvent;
|
|
195
|
-
direction?: VelcronBindableProp<"row" | "column" | "row-reverse" | "column-reverse">;
|
|
196
|
-
columnStyle?: object;
|
|
197
|
-
hAlign?: VelcronHorizontalAlignments;
|
|
198
|
-
vAlign?: VelcronVerticalAlignments;
|
|
199
|
-
grow?: number;
|
|
200
|
-
absolute?: VelcronSpacing;
|
|
201
135
|
border?: VelcronBorder;
|
|
202
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";
|
|
203
150
|
width?: number | string;
|
|
204
151
|
minWidth?: number | string;
|
|
205
152
|
height?: number | string;
|
|
206
153
|
minHeight?: number | string;
|
|
207
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
|
+
}
|
|
208
164
|
export interface VelcronCardDefinition extends VelcronDefinition, VelcronColorStyling {
|
|
209
165
|
type: "card";
|
|
210
166
|
style?: VelcronCardStyling;
|
|
@@ -224,18 +180,30 @@ export declare enum VelcronImageRatios {
|
|
|
224
180
|
}
|
|
225
181
|
export interface VelcronImageDefinition extends VelcronDefinition {
|
|
226
182
|
type: "image";
|
|
227
|
-
|
|
183
|
+
url?: VelcronBindableProp<string>;
|
|
184
|
+
bind?: VelcronBindableProp<string>;
|
|
228
185
|
ratio?: VelcronImageRatios | string;
|
|
186
|
+
width?: number | string;
|
|
187
|
+
height?: number | string;
|
|
229
188
|
cover?: VelcronBindableProp<boolean>;
|
|
230
189
|
borderRadius?: VelcronDimensions;
|
|
231
190
|
events?: VelcronOnPressEvent;
|
|
232
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
|
+
}
|
|
233
200
|
export interface VelcronButtonDefinition extends VelcronDefinition {
|
|
234
201
|
type: "button";
|
|
235
202
|
text: string;
|
|
236
203
|
icon?: VelcronIcon;
|
|
237
204
|
disabled?: boolean;
|
|
238
205
|
events?: VelcronOnPressEvent;
|
|
206
|
+
size?: string;
|
|
239
207
|
}
|
|
240
208
|
export interface VelcronTextInputDefinition extends VelcronDefinition {
|
|
241
209
|
type: "text-input";
|
|
@@ -278,6 +246,7 @@ export interface VelcronBorder extends VelcronDimensions {
|
|
|
278
246
|
colorType?: string;
|
|
279
247
|
toned?: boolean;
|
|
280
248
|
opacity?: number;
|
|
249
|
+
width?: number;
|
|
281
250
|
}
|
|
282
251
|
export interface VelcronChipDefinition extends VelcronDefinition {
|
|
283
252
|
type: "chip";
|
|
@@ -290,18 +259,39 @@ export interface VelcronSlotDefinition extends VelcronDefinition {
|
|
|
290
259
|
type: "slot";
|
|
291
260
|
bind: VelcronBindableProp<string>;
|
|
292
261
|
}
|
|
262
|
+
export interface VelcronReferencefinition extends VelcronDefinition {
|
|
263
|
+
type: "reference";
|
|
264
|
+
to: ActivityRendererReference;
|
|
265
|
+
}
|
|
293
266
|
export interface VelcronPropertyDefinition extends VelcronDefinition {
|
|
294
267
|
type: "property";
|
|
295
268
|
bind: VelcronBindableProp<string>;
|
|
296
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
|
+
}
|
|
297
286
|
export interface VelcronPropertyDefinitionValue {
|
|
298
287
|
definitionId: GuidValue;
|
|
299
288
|
value: PropertyValue;
|
|
300
289
|
configuration: PropertyConfiguration<PropertyDefinition<any, any, any, PropertySetupBase>>;
|
|
301
290
|
}
|
|
302
|
-
export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
|
|
303
291
|
export type VelcronRenderProps<TDefinition> = {
|
|
304
292
|
definition: TDefinition;
|
|
305
293
|
renderContext: VelcronRenderContext;
|
|
306
294
|
};
|
|
307
|
-
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 {
|
|
@@ -45,10 +36,20 @@ export interface VelcronSliderPropertyEditorSettings {
|
|
|
45
36
|
export interface VelcronTypographyEditorSettings {
|
|
46
37
|
type: "title" | "text";
|
|
47
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
|
+
}
|
|
48
49
|
export interface VelcronSliderPropertyEditor extends VelcronPropertyEditor<VelcronSliderPropertyEditorSettings> {
|
|
49
50
|
type: "slider";
|
|
50
51
|
}
|
|
51
|
-
export interface VelcronTextPropertyEditor extends VelcronPropertyEditor<
|
|
52
|
+
export interface VelcronTextPropertyEditor extends VelcronPropertyEditor<VelcronTextEditorSettings> {
|
|
52
53
|
type: "text";
|
|
53
54
|
}
|
|
54
55
|
export interface VelcronEnterprisePropertyEditor extends VelcronPropertyEditor<any> {
|
|
@@ -72,22 +73,261 @@ export interface VelcronColorSchemaPropertyEditor extends VelcronPropertyEditor<
|
|
|
72
73
|
export interface VelcronIconPropertyEditor extends VelcronPropertyEditor<any> {
|
|
73
74
|
type: "icon";
|
|
74
75
|
}
|
|
75
|
-
export interface VelcronMarkdownPropertyEditor extends VelcronPropertyEditor<
|
|
76
|
+
export interface VelcronMarkdownPropertyEditor extends VelcronPropertyEditor<VelcronMarkdownEditorSettings> {
|
|
76
77
|
type: "markdown";
|
|
77
78
|
}
|
|
78
79
|
export interface VelcronImagePropertyEditor extends VelcronPropertyEditor<any> {
|
|
79
80
|
type: "image";
|
|
80
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
|
+
}
|
|
81
111
|
export interface VelcronContentState {
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
112
|
+
caption?: VelcronTextState;
|
|
113
|
+
main?: VelcronTextState;
|
|
114
|
+
title?: VelcronTextState;
|
|
115
|
+
summary?: VelcronTextState;
|
|
86
116
|
}
|
|
87
117
|
export interface VelcronPropertiesState {
|
|
88
|
-
|
|
118
|
+
user: any;
|
|
119
|
+
mappings: Array<any>;
|
|
120
|
+
}
|
|
121
|
+
export interface VelcronImagesState {
|
|
122
|
+
main?: VelcronImageState;
|
|
123
|
+
alt1?: VelcronImageState;
|
|
124
|
+
alt2?: VelcronImageState;
|
|
89
125
|
}
|
|
90
126
|
export interface VelcronImageState {
|
|
91
127
|
url?: string;
|
|
92
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;
|
|
137
|
+
}
|
|
138
|
+
export interface VelcronColorSchemaState {
|
|
139
|
+
type?: string;
|
|
140
|
+
filled?: boolean;
|
|
93
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
|
+
};
|