@omnia/fx-models 8.0.276-dev → 8.0.277-dev
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +7 -4
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +4 -3
- package/internal-do-not-import-from-here/velcron/core/models/VelcronState.d.ts +8 -0
- package/internal-do-not-import-from-here/velcron/core/models/VelcronState.js +22 -18
- package/package.json +1 -1
- package/properties/datasource/DataSourcePropertyDisplayInformation.d.ts +3 -1
- package/properties/datasource/DataSourcePropertyDisplayInformation.js +3 -1
@@ -1,4 +1,4 @@
|
|
1
|
-
import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, VelcronEditor, ContainerBlueprint, BackgroundDefinition, ContainerVariant, IconBlueprint } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
1
|
+
import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, VelcronEditor, ContainerBlueprint, BackgroundDefinition, ContainerVariant, IconBlueprint, ButtonBlueprint } from "@omnia/fx-models/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
4
|
import { DynamicState, VelcronDefinition, VelcronEffects, useVelcronThemingStore } from "..";
|
@@ -240,13 +240,14 @@ export interface VelcronVideoDefinition extends VelcronDefinition {
|
|
240
240
|
autoplay?: VelcronBindableProp<boolean>;
|
241
241
|
muted?: VelcronBindableProp<boolean>;
|
242
242
|
}
|
243
|
-
export interface VelcronButtonDefinition extends VelcronDefinition {
|
243
|
+
export interface VelcronButtonDefinition extends VelcronDefinition, VelcronColorStyling {
|
244
244
|
type: "button";
|
245
245
|
text: string;
|
246
246
|
icon?: VelcronIcon;
|
247
247
|
disabled?: boolean;
|
248
248
|
events?: VelcronOnPressEvent;
|
249
249
|
size?: string;
|
250
|
+
blueprint?: VelcronBindableProp<ButtonBlueprint>;
|
250
251
|
}
|
251
252
|
export interface VelcronTextInputDefinition extends VelcronDefinition {
|
252
253
|
type: "text-input";
|
@@ -372,8 +373,10 @@ export interface VelcronPropertyDefinitionValue {
|
|
372
373
|
configuration: PropertyConfiguration<PropertyDefinition<any, any, any, PropertySetupBase>>;
|
373
374
|
}
|
374
375
|
export interface VelcronPropertyDefinitionValueResolver {
|
375
|
-
|
376
|
-
|
376
|
+
source?: IDataSourcePropertySelection;
|
377
|
+
}
|
378
|
+
export interface VelcronPropertyEditorValue {
|
379
|
+
[key: string]: VelcronPropertyDefinitionValueResolver;
|
377
380
|
}
|
378
381
|
export type VelcronRenderProps<TDefinition> = {
|
379
382
|
definition: TDefinition;
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts
CHANGED
@@ -37,15 +37,16 @@ export interface VelcronNumberEditorSettings {
|
|
37
37
|
step: number;
|
38
38
|
}
|
39
39
|
export interface VelcronPropertyMapping {
|
40
|
-
|
40
|
+
state: string;
|
41
|
+
title: string;
|
41
42
|
definitionId: guid;
|
42
|
-
|
43
|
+
dataSourceIds?: guid[];
|
43
44
|
}
|
44
45
|
export interface VelcronPropertyResolverEditorSettings {
|
45
46
|
properties: Array<VelcronPropertyMapping>;
|
46
47
|
}
|
47
48
|
export interface VelcronBlueprintEditorSettings {
|
48
|
-
type: "container" | "icon";
|
49
|
+
type: "container" | "icon" | "button";
|
49
50
|
}
|
50
51
|
export interface VelcronBackgroundEditorSettings {
|
51
52
|
type: "image" | "video";
|
@@ -71,8 +71,10 @@ export interface VelcronImageState {
|
|
71
71
|
}
|
72
72
|
export declare const VelcronImagesStateBinding: {
|
73
73
|
main: {
|
74
|
+
mediapickerImage: string;
|
74
75
|
editor: string;
|
75
76
|
url: string;
|
77
|
+
value: string;
|
76
78
|
ratio: string;
|
77
79
|
caption: string;
|
78
80
|
width: string;
|
@@ -81,6 +83,7 @@ export declare const VelcronImagesStateBinding: {
|
|
81
83
|
alt1: {
|
82
84
|
editor: string;
|
83
85
|
url: string;
|
86
|
+
value: string;
|
84
87
|
ratio: string;
|
85
88
|
caption: string;
|
86
89
|
width: string;
|
@@ -89,6 +92,7 @@ export declare const VelcronImagesStateBinding: {
|
|
89
92
|
alt2: {
|
90
93
|
editor: string;
|
91
94
|
url: string;
|
95
|
+
value: string;
|
92
96
|
ratio: string;
|
93
97
|
caption: string;
|
94
98
|
width: string;
|
@@ -129,8 +133,10 @@ export declare const VelcronStateBinding: {
|
|
129
133
|
};
|
130
134
|
images: {
|
131
135
|
main: {
|
136
|
+
mediapickerImage: string;
|
132
137
|
editor: string;
|
133
138
|
url: string;
|
139
|
+
value: string;
|
134
140
|
ratio: string;
|
135
141
|
caption: string;
|
136
142
|
width: string;
|
@@ -139,6 +145,7 @@ export declare const VelcronStateBinding: {
|
|
139
145
|
alt1: {
|
140
146
|
editor: string;
|
141
147
|
url: string;
|
148
|
+
value: string;
|
142
149
|
ratio: string;
|
143
150
|
caption: string;
|
144
151
|
width: string;
|
@@ -147,6 +154,7 @@ export declare const VelcronStateBinding: {
|
|
147
154
|
alt2: {
|
148
155
|
editor: string;
|
149
156
|
url: string;
|
157
|
+
value: string;
|
150
158
|
ratio: string;
|
151
159
|
caption: string;
|
152
160
|
width: string;
|
@@ -4,28 +4,32 @@ exports.VelcronStateBinding = exports.VelcronStateMapping = exports.VelcronImage
|
|
4
4
|
const models_1 = require("@omnia/fx-models/internal-do-not-import-from-here/shared/models");
|
5
5
|
exports.VelcronImagesStateBinding = {
|
6
6
|
main: {
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
7
|
+
mediapickerImage: (0, models_1.velcronBind)("images.main"),
|
8
|
+
editor: (0, models_1.velcronBind)("images.main.url"),
|
9
|
+
url: (0, models_1.velcronBind)("images.main.url"),
|
10
|
+
value: (0, models_1.velcronBind)("images.main.url"),
|
11
|
+
ratio: (0, models_1.velcronBind)("images.main.ratio"),
|
12
|
+
caption: (0, models_1.velcronBind)("images.main.caption"),
|
13
|
+
width: (0, models_1.velcronBind)("images.main.width"),
|
14
|
+
height: (0, models_1.velcronBind)("images.main.height"),
|
13
15
|
},
|
14
16
|
alt1: {
|
15
|
-
editor: "
|
16
|
-
url: "
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
editor: (0, models_1.velcronBind)("images.alt1.url"),
|
18
|
+
url: (0, models_1.velcronBind)("images.alt1.url"),
|
19
|
+
value: (0, models_1.velcronBind)("images.alt1.url"),
|
20
|
+
ratio: (0, models_1.velcronBind)("images.alt1.ratio"),
|
21
|
+
caption: (0, models_1.velcronBind)("images.alt1.caption"),
|
22
|
+
width: (0, models_1.velcronBind)("images.alt1.width"),
|
23
|
+
height: (0, models_1.velcronBind)("images.alt1.height"),
|
21
24
|
},
|
22
25
|
alt2: {
|
23
|
-
editor: "
|
24
|
-
url: "
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
26
|
+
editor: (0, models_1.velcronBind)("images.alt2.url"),
|
27
|
+
url: (0, models_1.velcronBind)("images.alt2.url"),
|
28
|
+
value: (0, models_1.velcronBind)("images.alt2.url"),
|
29
|
+
ratio: (0, models_1.velcronBind)("images.alt2.ratio"),
|
30
|
+
caption: (0, models_1.velcronBind)("images.alt2.caption"),
|
31
|
+
width: (0, models_1.velcronBind)("images.alt2.width"),
|
32
|
+
height: (0, models_1.velcronBind)("images.alt2.height"),
|
29
33
|
},
|
30
34
|
};
|
31
35
|
const VelcronContentStateBinding = {
|
package/package.json
CHANGED
@@ -8,7 +8,9 @@ export declare class DataSourcePropertyCategory {
|
|
8
8
|
constructor(id: guid, title: MultilingualString, order: number, builtIn: boolean);
|
9
9
|
}
|
10
10
|
export declare class DataSourcePropertyDisplayInformation {
|
11
|
+
name: string;
|
11
12
|
title: string;
|
12
13
|
category?: DataSourcePropertyCategory;
|
13
|
-
constructor(
|
14
|
+
constructor(name: string, // like property internal name use to query
|
15
|
+
title: string, category?: DataSourcePropertyCategory);
|
14
16
|
}
|
@@ -11,7 +11,9 @@ class DataSourcePropertyCategory {
|
|
11
11
|
}
|
12
12
|
exports.DataSourcePropertyCategory = DataSourcePropertyCategory;
|
13
13
|
class DataSourcePropertyDisplayInformation {
|
14
|
-
constructor(
|
14
|
+
constructor(name, // like property internal name use to query
|
15
|
+
title, category) {
|
16
|
+
this.name = name;
|
15
17
|
this.title = title;
|
16
18
|
this.category = category;
|
17
19
|
}
|