@omnia/velcron 8.0.162-dev → 8.0.164-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.
Files changed (52) hide show
  1. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +4 -3
  2. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +6 -4
  3. package/models/Enums.d.ts +3 -16
  4. package/models/Enums.js +2 -20
  5. package/models/VelcronDefinitions.d.ts +8 -9
  6. package/models/VelcronPropertyEditorDefinitions.d.ts +27 -211
  7. package/models/VelcronPropertyEditorDefinitions.js +0 -87
  8. package/models/VelcronState.d.ts +186 -0
  9. package/models/VelcronState.js +102 -0
  10. package/models/index.d.ts +1 -0
  11. package/models/index.js +1 -0
  12. package/package.json +1 -1
  13. package/parser/VelcronData.d.ts +8 -7
  14. package/parser/VelcronData.js +32 -13
  15. package/parser/VelcronStyles.js +5 -5
  16. package/rules/IsEditMode.js +1 -1
  17. package/stores/VelcronColorSchema.d.ts +1 -1
  18. package/templatebuilder/VelcronEditorBuilder.d.ts +18 -0
  19. package/templatebuilder/{editor/VelcronEditorBuilder2.js → VelcronEditorBuilder.js} +46 -10
  20. package/templatebuilder/{editor → old/editor}/VelcronColorSchemaEditor.d.ts +2 -2
  21. package/templatebuilder/{editor → old/editor}/VelcronContentEditor.d.ts +2 -2
  22. package/templatebuilder/{editor → old/editor}/VelcronContentEditor.js +12 -12
  23. package/templatebuilder/{editor → old/editor}/VelcronEditorBuilder.d.ts +2 -2
  24. package/templatebuilder/{editor → old/editor}/VelcronEditorBuilderBase.d.ts +3 -3
  25. package/templatebuilder/{editor → old/editor}/VelcronImageEditor.d.ts +2 -2
  26. package/templatebuilder/{editor → old/editor}/VelcronImageEditor.js +1 -1
  27. package/templatebuilder/{editor → old/editor}/VelcronPropertyMappingEditorBuilder.d.ts +2 -2
  28. package/templatebuilder/{editor → old/editor}/VelcronPropertyMappingEditorBuilder.js +1 -1
  29. package/templatebuilder/useVelcronEditorBuilder.d.ts +2 -2
  30. package/templatebuilder/useVelcronEditorBuilder.js +2 -2
  31. package/templatebuilder/useVelcronTemplateBuilder.d.ts +3 -3
  32. package/templatebuilder/useVelcronTemplateBuilder.js +5 -5
  33. package/templatebuilder/editor/VelcronEditorBuilder2.d.ts +0 -15
  34. /package/templatebuilder/{editor → old/editor}/VelcronColorSchemaEditor.js +0 -0
  35. /package/templatebuilder/{editor → old/editor}/VelcronEditorBuilder.js +0 -0
  36. /package/templatebuilder/{editor → old/editor}/VelcronEditorBuilderBase.js +0 -0
  37. /package/templatebuilder/{state → old/state}/VelcronBlockHeaderStateBuilder.d.ts +0 -0
  38. /package/templatebuilder/{state → old/state}/VelcronBlockHeaderStateBuilder.js +0 -0
  39. /package/templatebuilder/{state → old/state}/VelcronColorSchemaBuilder.d.ts +0 -0
  40. /package/templatebuilder/{state → old/state}/VelcronColorSchemaBuilder.js +0 -0
  41. /package/templatebuilder/{state → old/state}/VelcronContentStateBuilder.d.ts +0 -0
  42. /package/templatebuilder/{state → old/state}/VelcronContentStateBuilder.js +0 -0
  43. /package/templatebuilder/{state → old/state}/VelcronImageStateBuilder.d.ts +0 -0
  44. /package/templatebuilder/{state → old/state}/VelcronImageStateBuilder.js +0 -0
  45. /package/templatebuilder/{state → old/state}/VelcronPropertyMappingStateBuilder.d.ts +0 -0
  46. /package/templatebuilder/{state → old/state}/VelcronPropertyMappingStateBuilder.js +0 -0
  47. /package/templatebuilder/{state → old/state}/VelcronStateBuilder.d.ts +0 -0
  48. /package/templatebuilder/{state → old/state}/VelcronStateBuilder.js +0 -0
  49. /package/templatebuilder/{state → old/state}/VelcronStateBuilderBase.d.ts +0 -0
  50. /package/templatebuilder/{state → old/state}/VelcronStateBuilderBase.js +0 -0
  51. /package/templatebuilder/{state → old/state}/VelcronTextContentBuilder.d.ts +0 -0
  52. /package/templatebuilder/{state → old/state}/VelcronTextContentBuilder.js +0 -0
@@ -129,10 +129,11 @@ export interface BackgroundDefinition {
129
129
  fill?: FillDefinitionValue;
130
130
  border?: BorderStylingDefinition;
131
131
  elevation?: number;
132
- media?: BackgroundMedia;
132
+ media?: BackgroundMediaDefinition;
133
133
  }
134
- export interface BackgroundMedia {
135
- type: "image" | "video";
134
+ export type BackgroundMedia = "image" | "video";
135
+ export interface BackgroundMediaDefinition {
136
+ type: BackgroundMedia;
136
137
  src: string;
137
138
  }
138
139
  export interface FillDefinition {
@@ -60,14 +60,16 @@ export interface VelcronComponentDefinition extends VelcronDefinition {
60
60
  icon?: any;
61
61
  }
62
62
  export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
63
- export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "container" | "reference";
64
- export interface VelcronStateEditor<TSettings = any> {
63
+ export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "blueprint" | "background" | "grid" | "reference";
64
+ export type EditorLocation = "inline " | "pane" | "toolbar";
65
+ export interface VelcronEditor<TSettings = any> {
65
66
  name?: string;
66
67
  icon?: IFontAwesomeIcon;
67
68
  category?: string;
69
+ locations?: (EditorLocation)[];
68
70
  type: BuiltInPropertyEditorType | string;
69
71
  settings?: TSettings;
70
- stateMapping?: string;
72
+ state?: string;
71
73
  propertyMapping?: boolean;
72
74
  multiple?: boolean;
73
75
  component?: unknown;
@@ -82,7 +84,7 @@ export interface VelcronAppDefinition<TState extends DynamicState = DynamicState
82
84
  [name: string]: Array<string>;
83
85
  };
84
86
  components?: Array<VelcronCustomComponentDefinition>;
85
- editors?: Array<VelcronStateEditor>;
87
+ editors?: Array<VelcronEditor>;
86
88
  state?: TState;
87
89
  computed?: {
88
90
  [name: string]: Array<string>;
package/models/Enums.d.ts CHANGED
@@ -16,22 +16,9 @@ export declare enum VelcronActionTypes {
16
16
  export declare enum VelcronIconTypes {
17
17
  fontAwesome = "fa"
18
18
  }
19
- export declare enum VelcronViewDirections {
20
- row = "row",
21
- column = "column",
22
- rowReverse = "row-reverse",
23
- columnRevers = "column-reverse"
24
- }
25
- export declare enum VelcronHorizontalAlignments {
26
- left = "left",
27
- center = "center",
28
- right = "right"
29
- }
30
- export declare enum VelcronVerticalAlignments {
31
- top = "top",
32
- center = "center",
33
- bottom = "bottom"
34
- }
19
+ export type VelcronViewDirections = "row" | "column" | "row-reverse" | "column-reverse";
20
+ export type VelcronHorizontalAlignments = "left" | "center" | "right";
21
+ export type VelcronVerticalAlignments = "top" | "center" | "bottom";
35
22
  export declare enum VelcronDataTypes {
36
23
  unknown = "unknown",
37
24
  object = "object",
package/models/Enums.js CHANGED
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VelcronDataTypes = exports.VelcronVerticalAlignments = exports.VelcronHorizontalAlignments = exports.VelcronViewDirections = exports.VelcronIconTypes = exports.VelcronActionTypes = exports.AssignOperators = void 0;
3
+ exports.VelcronDataTypes = exports.VelcronIconTypes = exports.VelcronActionTypes = exports.AssignOperators = void 0;
4
4
  var AssignOperators;
5
5
  (function (AssignOperators) {
6
6
  AssignOperators["equals"] = "=";
@@ -22,25 +22,6 @@ var VelcronIconTypes;
22
22
  (function (VelcronIconTypes) {
23
23
  VelcronIconTypes["fontAwesome"] = "fa";
24
24
  })(VelcronIconTypes || (exports.VelcronIconTypes = VelcronIconTypes = {}));
25
- var VelcronViewDirections;
26
- (function (VelcronViewDirections) {
27
- VelcronViewDirections["row"] = "row";
28
- VelcronViewDirections["column"] = "column";
29
- VelcronViewDirections["rowReverse"] = "row-reverse";
30
- VelcronViewDirections["columnRevers"] = "column-reverse";
31
- })(VelcronViewDirections || (exports.VelcronViewDirections = VelcronViewDirections = {}));
32
- var VelcronHorizontalAlignments;
33
- (function (VelcronHorizontalAlignments) {
34
- VelcronHorizontalAlignments["left"] = "left";
35
- VelcronHorizontalAlignments["center"] = "center";
36
- VelcronHorizontalAlignments["right"] = "right";
37
- })(VelcronHorizontalAlignments || (exports.VelcronHorizontalAlignments = VelcronHorizontalAlignments = {}));
38
- var VelcronVerticalAlignments;
39
- (function (VelcronVerticalAlignments) {
40
- VelcronVerticalAlignments["top"] = "top";
41
- VelcronVerticalAlignments["center"] = "center";
42
- VelcronVerticalAlignments["bottom"] = "bottom";
43
- })(VelcronVerticalAlignments || (exports.VelcronVerticalAlignments = VelcronVerticalAlignments = {}));
44
25
  var VelcronDataTypes;
45
26
  (function (VelcronDataTypes) {
46
27
  //Unknown = null
@@ -51,5 +32,6 @@ var VelcronDataTypes;
51
32
  VelcronDataTypes["boolean"] = "boolean";
52
33
  VelcronDataTypes["array"] = "array";
53
34
  VelcronDataTypes["componentArray"] = "componentArray";
35
+ //Depricated????
54
36
  VelcronDataTypes["bind"] = "bind";
55
37
  })(VelcronDataTypes || (exports.VelcronDataTypes = VelcronDataTypes = {}));
@@ -1,4 +1,4 @@
1
- import { VelcronOnUpdatedEvent, VelcronOnClosedEvent, VelcronOnCloseRequestedEvent, VelcronOnPressEvent, VelcronSpacing, VelcronStyling, VelcronCustomComponentDefinition, VelcronAppDefinition, VelcronRendererResolverReference, EventHook, Future, TextBlueprint, VelcronBindableProp, ContainerBlueprint, BackgroundDefinition, VelcronStateEditor } from "@omnia/velcron/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 } 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
4
  import { DynamicState, VelcronDefinition, useVelcronThemingStore } from "..";
@@ -85,11 +85,11 @@ export interface VelcronRenderContextEventHandlersInstance extends VelcronRender
85
85
  }
86
86
  export interface VelcronRenderContextHooks {
87
87
  dialogVisibilityChanged?: ((visible: boolean) => void);
88
- onItemSelected?: ((item: VelcronDefinition) => void);
88
+ onItemSelected?: ((item: VelcronDefinition, renderContext: VelcronRenderContext) => void);
89
89
  wrapperStyleExtensions?: ((item: VelcronDefinition, renderContext: VelcronRenderContext) => string);
90
- renderExtensions?: <TNodeType>(item: VelcronDefinition) => TNodeType;
90
+ renderExtensions?: <TNodeType>(item: VelcronDefinition, renderContext: VelcronRenderContext) => TNodeType;
91
91
  appStyleExtension?: (() => string);
92
- onItemCreatedProps?: ((item: VelcronDefinition) => object);
92
+ onItemCreatedProps?: ((item: VelcronDefinition, renderContext: VelcronRenderContext) => object);
93
93
  }
94
94
  export interface VelcronContainerRenderer {
95
95
  definition: VelcronDefinition;
@@ -161,7 +161,7 @@ export interface VelcronFlexRowDefinition extends VelcronDefinition, VelcronColo
161
161
  events?: VelcronOnPressEvent;
162
162
  direction?: VelcronBindableProp<"row" | "row-reverse">;
163
163
  absolute?: VelcronSpacing;
164
- blueprint?: ContainerBlueprint;
164
+ blueprint?: ContainerBlueprint | ContainerVariant;
165
165
  background?: BackgroundDefinition;
166
166
  hideOverflow?: boolean;
167
167
  wrap?: boolean;
@@ -194,7 +194,6 @@ export interface VelcronTextDefinition extends VelcronDefinition, VelcronColorSt
194
194
  type: "text";
195
195
  value?: VelcronBindableProp;
196
196
  placeholder?: VelcronBindableProp;
197
- editLabel?: VelcronBindableProp;
198
197
  lineClamp?: VelcronBindableProp<number>;
199
198
  noWrap?: VelcronBindableProp<boolean>;
200
199
  wordBreak?: VelcronBindableProp<"none">;
@@ -295,9 +294,9 @@ export interface VelcronSlidePanelDefinition extends VelcronDefinition {
295
294
  style?: VelcronCardStyling;
296
295
  events?: VelcronOnPressEvent;
297
296
  }
298
- export interface VelcronEditorDefinition extends VelcronDefinition {
297
+ export interface VelcronEditorRendererDefinition extends VelcronDefinition {
299
298
  type: "editor";
300
- editor: VelcronStateEditor;
299
+ editor: VelcronEditor;
301
300
  value: VelcronBindableProp<string>;
302
301
  events?: VelcronOnUpdatedEvent;
303
302
  }
@@ -326,7 +325,7 @@ export interface VelcronSlotDefinition extends VelcronDefinition {
326
325
  }
327
326
  export interface VelcronReferenceDefinition extends VelcronDefinition {
328
327
  type: "reference";
329
- to: VelcronRendererResolverReference;
328
+ to: VelcronBindableProp<VelcronRendererResolverReference>;
330
329
  state: string;
331
330
  }
332
331
  export interface VelcronPropertyDefinition extends VelcronDefinitionWithEditMode {
@@ -1,7 +1,6 @@
1
- import { BuiltInPropertyEditorType, TextBlueprint, TypographySize, TypographyType, VelcronSpacing, VelcronStateEditor } from "@omnia/velcron/internal-do-not-import-from-here/shared/models";
2
- import { VelcronImageRatios } from "./VelcronDefinitions";
1
+ import { BuiltInPropertyEditorType, TypographyType, VelcronEditor } from "@omnia/velcron/internal-do-not-import-from-here/shared/models";
3
2
  export interface ResolvedPropertyEditor {
4
- editor: VelcronStateEditor;
3
+ editor: VelcronEditor;
5
4
  }
6
5
  export type BuiltInPropertyEditorMap = {
7
6
  [key in BuiltInPropertyEditorType]: unknown;
@@ -24,240 +23,57 @@ export interface VelcronTextEditorSettings {
24
23
  type: TypographyType;
25
24
  placeholder: string;
26
25
  }
27
- export interface VelcronSliderPropertyEditor extends VelcronStateEditor<VelcronSliderPropertyEditorSettings> {
26
+ export interface VelcronBlueprintEditorSettings {
27
+ type: "container" | "";
28
+ }
29
+ export interface VelcronBackgroundEditorSettings {
30
+ type: "image" | "video";
31
+ }
32
+ export interface VelcronSliderPropertyEditor extends VelcronEditor<VelcronSliderPropertyEditorSettings> {
28
33
  type: "slider";
29
34
  }
30
- export interface VelcronTextPropertyEditor extends VelcronStateEditor<VelcronTextEditorSettings> {
35
+ export interface VelcronTextPropertyEditor extends VelcronEditor<VelcronTextEditorSettings> {
31
36
  type: "text";
32
37
  }
33
- export interface VelcronEnterprisePropertyEditor extends VelcronStateEditor<any> {
38
+ export interface VelcronEnterprisePropertyEditor extends VelcronEditor<any> {
34
39
  type: "enterprise-property";
35
40
  }
36
- export interface VelcronTypographyPropertyEditor extends VelcronStateEditor<VelcronTypographyEditorSettings> {
41
+ export interface VelcronTypographyPropertyEditor extends VelcronEditor<VelcronTypographyEditorSettings> {
37
42
  type: "typography";
38
43
  }
39
- export interface VelcronContainerPropertyEditor extends VelcronStateEditor<any> {
40
- type: "container";
41
- }
42
- export interface VelcronSwitchPropertyEditor extends VelcronStateEditor<any> {
44
+ export interface VelcronSwitchPropertyEditor extends VelcronEditor<any> {
43
45
  type: "switch";
44
46
  }
45
- export interface VelcronAlignmentPropertyEditor extends VelcronStateEditor<any> {
47
+ export interface VelcronAlignmentPropertyEditor extends VelcronEditor<any> {
46
48
  type: "alignment";
47
49
  }
48
- export interface VelcronColorPropertyEditor extends VelcronStateEditor<any> {
50
+ export interface VelcronColorPropertyEditor extends VelcronEditor<any> {
49
51
  type: "color";
50
52
  }
51
- export interface VelcronColorSchemaPropertyEditor extends VelcronStateEditor<any> {
53
+ export interface VelcronColorSchemaPropertyEditor extends VelcronEditor<any> {
52
54
  type: "color-schema-type";
53
55
  }
54
- export interface VelcronIconPropertyEditor extends VelcronStateEditor<any> {
56
+ export interface VelcronIconPropertyEditor extends VelcronEditor<any> {
55
57
  type: "icon";
56
58
  }
57
- export interface VelcronMarkdownPropertyEditor extends VelcronStateEditor<VelcronMarkdownEditorSettings> {
59
+ export interface VelcronMarkdownPropertyEditor extends VelcronEditor<VelcronMarkdownEditorSettings> {
58
60
  type: "markdown";
59
61
  }
60
- export interface VelcronImagePropertyEditor extends VelcronStateEditor<any> {
62
+ export interface VelcronImagePropertyEditor extends VelcronEditor<any> {
61
63
  type: "image";
62
64
  }
63
- export interface VelcronSpacingPropertyEditor extends VelcronStateEditor<VelcronSpacingEditorSettings> {
65
+ export interface VelcronSpacingPropertyEditor extends VelcronEditor<VelcronSpacingEditorSettings> {
64
66
  type: "spacing";
65
67
  }
66
- export interface VelcronReferencePropertyEditor extends VelcronStateEditor<any> {
68
+ export interface VelcronReferencePropertyEditor extends VelcronEditor<any> {
67
69
  type: "reference";
68
70
  }
69
- export interface VelcronState {
70
- images?: VelcronImagesState;
71
- styling?: VelcronStylingState;
72
- colorSchemas?: VelcronColorSchemasState;
73
- content?: VelcronContentState;
74
- header?: VelcronHeaderState;
75
- properties?: VelcronPropertiesState;
76
- spacing?: VelcronSpacingState;
77
- }
78
- export interface VelcronSpacingState {
79
- chrome?: VelcronSpacing;
80
- }
81
- export interface VelcronHeaderState {
82
- title?: VelcronTextState;
83
- icon?: string;
84
- }
85
- export interface VelcronTextState {
86
- text?: string;
87
- placeholder?: string;
88
- typography?: VelcronTypographyState;
89
- }
90
- export interface VelcronTypographyState {
91
- type?: TypographyType;
92
- size?: TypographySize;
93
- toned?: boolean;
94
- }
95
- export interface VelcronContentState {
96
- caption?: VelcronTextState;
97
- main?: VelcronTextState;
98
- title?: VelcronTextState;
99
- summary?: VelcronTextState;
100
- }
101
- export interface VelcronPropertiesState {
102
- user: any;
103
- mappings: Array<any>;
71
+ export interface VelcronBlueprintEditor extends VelcronEditor<VelcronBlueprintEditorSettings> {
72
+ type: "blueprint";
104
73
  }
105
- export interface VelcronImagesState {
106
- main?: VelcronImageState;
107
- alt1?: VelcronImageState;
108
- alt2?: VelcronImageState;
74
+ export interface VelcronBackgroundEditor extends VelcronEditor<VelcronBackgroundEditorSettings> {
75
+ type: "background";
109
76
  }
110
- export interface VelcronImageState {
111
- url?: string;
112
- ratio?: VelcronImageRatios;
113
- caption?: VelcronTextState;
114
- width?: number;
115
- height?: number;
77
+ export interface VelcronGridEditor extends VelcronEditor<any> {
78
+ type: "grid";
116
79
  }
117
- export interface VelcronStylingState {
118
- }
119
- export interface VelcronColorSchemasState {
120
- main: string;
121
- }
122
- export declare const VelcronImagesStateBinding: {
123
- main: {
124
- editor: string;
125
- url: string;
126
- ratio: string;
127
- caption: string;
128
- width: string;
129
- height: string;
130
- };
131
- alt1: {
132
- editor: string;
133
- url: string;
134
- ratio: string;
135
- caption: string;
136
- width: string;
137
- height: string;
138
- };
139
- alt2: {
140
- editor: string;
141
- url: string;
142
- ratio: string;
143
- caption: string;
144
- width: string;
145
- height: string;
146
- };
147
- };
148
- export declare const VelcronHeaderStateBinding: {
149
- title: {
150
- text: string;
151
- placeholder: string;
152
- blueprint: import("@omnia/velcron/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
153
- };
154
- icon: string;
155
- };
156
- export declare const VelcronContentStateBinding: {
157
- title: {
158
- text: string;
159
- placeholder: string;
160
- blueprint: import("@omnia/velcron/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
161
- };
162
- main: {
163
- text: string;
164
- placeholder: string;
165
- blueprint: import("@omnia/velcron/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
166
- };
167
- caption: {
168
- text: string;
169
- placeholder: string;
170
- blueprint: import("@omnia/velcron/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
171
- };
172
- summary: {
173
- text: string;
174
- placeholder: string;
175
- blueprint: import("@omnia/velcron/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
176
- };
177
- };
178
- export declare const VelcronColorSchemasStateBinding: {
179
- main: {
180
- type: string;
181
- filled: string;
182
- };
183
- };
184
- export declare const VelcronSpacingStateBinding: {
185
- chrome: {
186
- top: string;
187
- right: string;
188
- bottom: string;
189
- left: string;
190
- };
191
- };
192
- export declare const VelcronStateBinding: {
193
- colorSchemas: {
194
- main: {
195
- type: string;
196
- filled: string;
197
- };
198
- };
199
- images: {
200
- main: {
201
- editor: string;
202
- url: string;
203
- ratio: string;
204
- caption: string;
205
- width: string;
206
- height: string;
207
- };
208
- alt1: {
209
- editor: string;
210
- url: string;
211
- ratio: string;
212
- caption: string;
213
- width: string;
214
- height: string;
215
- };
216
- alt2: {
217
- editor: string;
218
- url: string;
219
- ratio: string;
220
- caption: string;
221
- width: string;
222
- height: string;
223
- };
224
- };
225
- content: {
226
- title: {
227
- text: string;
228
- placeholder: string;
229
- blueprint: import("@omnia/velcron/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
230
- };
231
- main: {
232
- text: string;
233
- placeholder: string;
234
- blueprint: import("@omnia/velcron/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
235
- };
236
- caption: {
237
- text: string;
238
- placeholder: string;
239
- blueprint: import("@omnia/velcron/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
240
- };
241
- summary: {
242
- text: string;
243
- placeholder: string;
244
- blueprint: import("@omnia/velcron/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
245
- };
246
- };
247
- header: {
248
- title: {
249
- text: string;
250
- placeholder: string;
251
- blueprint: import("@omnia/velcron/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
252
- };
253
- icon: string;
254
- };
255
- spacing: {
256
- chrome: {
257
- top: string;
258
- right: string;
259
- bottom: string;
260
- left: string;
261
- };
262
- };
263
- };
@@ -1,89 +1,2 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VelcronStateBinding = exports.VelcronSpacingStateBinding = exports.VelcronColorSchemasStateBinding = exports.VelcronContentStateBinding = exports.VelcronHeaderStateBinding = exports.VelcronImagesStateBinding = void 0;
4
- const models_1 = require("@omnia/velcron/internal-do-not-import-from-here/shared/models");
5
- exports.VelcronImagesStateBinding = {
6
- main: {
7
- editor: "{{images.main.url}}",
8
- url: "{{images.main.url}}",
9
- ratio: "{{images.main.ratio}}",
10
- caption: "{{images.main.caption}}",
11
- width: "{{images.main.width}}",
12
- height: "{{images.main.height}}",
13
- },
14
- alt1: {
15
- editor: "{{images.alt1.url}}",
16
- url: "{{images.alt1.url}}",
17
- ratio: "{{images.alt1.ratio}}",
18
- caption: "{{images.alt1.caption}}",
19
- width: "{{images.alt1.width}}",
20
- height: "{{images.alt1.height}}",
21
- },
22
- alt2: {
23
- editor: "{{images.alt2.url}}",
24
- url: "{{images.alt2.url}}",
25
- ratio: "{{images.alt2.ratio}}",
26
- caption: "{{images.alt2.caption}}",
27
- width: "{{images.alt2.width}}",
28
- height: "{{images.alt2.height}}",
29
- },
30
- };
31
- exports.VelcronHeaderStateBinding = {
32
- title: {
33
- text: (0, models_1.velcronBind)("header.title.text"),
34
- placeholder: (0, models_1.velcronBind)("header.title.placeholder"),
35
- blueprint: (0, models_1.velcronBind)("content.title.blueprint")
36
- },
37
- icon: (0, models_1.velcronBind)("header.icon")
38
- };
39
- exports.VelcronContentStateBinding = {
40
- title: {
41
- text: (0, models_1.velcronBind)("content.title.text"),
42
- placeholder: (0, models_1.velcronBind)("content.title.placeholder"),
43
- blueprint: (0, models_1.velcronBind)("content.title.blueprint")
44
- },
45
- main: {
46
- text: (0, models_1.velcronBind)("content.main.text"),
47
- placeholder: (0, models_1.velcronBind)("content.main.placeholder"),
48
- blueprint: (0, models_1.velcronBind)("content.main.blueprint")
49
- },
50
- caption: {
51
- text: (0, models_1.velcronBind)("content.caption.text"),
52
- placeholder: (0, models_1.velcronBind)("content.caption.placeholder"),
53
- blueprint: (0, models_1.velcronBind)("content.caption.blueprint")
54
- },
55
- summary: {
56
- text: (0, models_1.velcronBind)("content.summary.text"),
57
- placeholder: (0, models_1.velcronBind)("content.summary.placeholder"),
58
- blueprint: (0, models_1.velcronBind)("content.summary.blueprint")
59
- },
60
- };
61
- exports.VelcronColorSchemasStateBinding = {
62
- main: {
63
- type: (0, models_1.velcronBind)("colorSchemas.main.type"),
64
- filled: (0, models_1.velcronBind)("colorSchemas.main.filled")
65
- }
66
- };
67
- exports.VelcronSpacingStateBinding = {
68
- chrome: {
69
- "top": "{{spacing.chrome.top}}",
70
- "right": "{{spacing.chrome.right}}",
71
- "bottom": "{{spacing.chrome.bottom}}",
72
- "left": "{{spacing.chrome.left}}",
73
- }
74
- };
75
- // export interface VelcronSpacingState {
76
- // chrome?: VelcronDimensionState
77
- // }
78
- // export interface VelcronDimensionState {
79
- // margin?: VelcronSpacing;
80
- // padding?: VelcronSpacing;
81
- // }
82
- exports.VelcronStateBinding = {
83
- colorSchemas: exports.VelcronColorSchemasStateBinding,
84
- images: exports.VelcronImagesStateBinding,
85
- content: exports.VelcronContentStateBinding,
86
- header: exports.VelcronHeaderStateBinding,
87
- spacing: exports.VelcronSpacingStateBinding
88
- //properties?:VelcronPropertiesState,
89
- };