@omnia/velcron 8.0.113-vnext → 8.0.114-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 (124) hide show
  1. package/actions/Array.js +9 -2
  2. package/actions/Clone.d.ts +2 -0
  3. package/actions/Clone.js +11 -0
  4. package/actions/index.d.ts +1 -0
  5. package/actions/index.js +1 -0
  6. package/internal-do-not-import-from-here/shared/models/Broadcasting.js +1 -1
  7. package/internal-do-not-import-from-here/shared/models/Equals.js +5 -6
  8. package/internal-do-not-import-from-here/shared/models/Future.d.ts +13 -0
  9. package/internal-do-not-import-from-here/shared/models/Future.js +19 -0
  10. package/internal-do-not-import-from-here/shared/models/Guid.d.ts +1 -0
  11. package/internal-do-not-import-from-here/shared/models/Guid.js +13 -6
  12. package/internal-do-not-import-from-here/shared/models/HttpCommon.d.ts +27 -0
  13. package/internal-do-not-import-from-here/shared/models/OmniaSharedBootstrapData.d.ts +2 -1
  14. package/internal-do-not-import-from-here/shared/models/Realtime.d.ts +1 -13
  15. package/internal-do-not-import-from-here/shared/models/Realtime.js +1 -22
  16. package/internal-do-not-import-from-here/shared/models/StronglyTypedId.d.ts +3 -0
  17. package/internal-do-not-import-from-here/shared/models/Tokens.d.ts +1 -0
  18. package/internal-do-not-import-from-here/shared/models/WorkerProxyFuncs.d.ts +2 -2
  19. package/internal-do-not-import-from-here/shared/models/Workers.js +1 -1
  20. package/internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.d.ts +2 -0
  21. package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.d.ts +13 -0
  22. package/internal-do-not-import-from-here/shared/models/hub/TempSocialReactions.js +20 -0
  23. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.d.ts +45 -7
  24. package/internal-do-not-import-from-here/shared/models/hub/activities/Activity.js +4 -6
  25. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.d.ts +3 -2
  26. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityChannel.js +2 -3
  27. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.d.ts +14 -0
  28. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityDefinition.js +15 -0
  29. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.d.ts +30 -0
  30. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityFeed.js +2 -0
  31. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.d.ts +9 -3
  32. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRenderer.js +2 -3
  33. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.d.ts +8 -0
  34. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivityRendererLoadingReferences.js +2 -0
  35. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.d.ts +5 -1
  36. package/internal-do-not-import-from-here/shared/models/hub/activities/ActivitySender.js +2 -3
  37. package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.d.ts +25 -3
  38. package/internal-do-not-import-from-here/shared/models/hub/activities/IdentityActivity.js +11 -3
  39. package/internal-do-not-import-from-here/shared/models/hub/activities/index.d.ts +3 -1
  40. package/internal-do-not-import-from-here/shared/models/hub/activities/index.js +3 -1
  41. package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.d.ts +3 -0
  42. package/internal-do-not-import-from-here/shared/models/hub/fileupload/FileOwnerId.js +5 -0
  43. package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.d.ts +4 -0
  44. package/internal-do-not-import-from-here/shared/models/hub/fileupload/TemporaryFileId.js +5 -0
  45. package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.d.ts +2 -0
  46. package/internal-do-not-import-from-here/shared/models/hub/fileupload/index.js +5 -0
  47. package/internal-do-not-import-from-here/shared/models/hub/index.d.ts +4 -0
  48. package/internal-do-not-import-from-here/shared/models/hub/index.js +4 -0
  49. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.d.ts +10 -0
  50. package/internal-do-not-import-from-here/shared/models/hub/social/HubComment.js +2 -0
  51. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.d.ts +5 -0
  52. package/internal-do-not-import-from-here/shared/models/hub/social/HubReaction.js +2 -0
  53. package/internal-do-not-import-from-here/shared/models/hub/social/index.d.ts +2 -0
  54. package/internal-do-not-import-from-here/shared/models/hub/social/index.js +5 -0
  55. package/internal-do-not-import-from-here/shared/models/index.d.ts +3 -1
  56. package/internal-do-not-import-from-here/shared/models/index.js +3 -1
  57. package/internal-do-not-import-from-here/shared/models/theming/ChromeDefinition.d.ts +16 -0
  58. package/internal-do-not-import-from-here/shared/models/theming/ChromeDefinition.js +2 -0
  59. package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.d.ts +84 -0
  60. package/internal-do-not-import-from-here/shared/models/theming/ComponentDefinitions.js +12 -0
  61. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.d.ts +2 -2
  62. package/internal-do-not-import-from-here/shared/models/theming/SharedBlueprintMethods.js +8 -7
  63. package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.d.ts +11 -4
  64. package/internal-do-not-import-from-here/shared/models/theming/SpacingSetting.js +1 -1
  65. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.d.ts +38 -15
  66. package/internal-do-not-import-from-here/shared/models/theming/ThemeDefinitionV2.js +8 -10
  67. package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.d.ts +10 -0
  68. package/internal-do-not-import-from-here/shared/models/theming/TypographyDefinition.js +2 -2
  69. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.d.ts +3 -5
  70. package/internal-do-not-import-from-here/shared/models/theming/UseThemeMethods.js +4 -30
  71. package/internal-do-not-import-from-here/shared/models/theming/index.d.ts +2 -2
  72. package/internal-do-not-import-from-here/shared/models/theming/index.js +3 -2
  73. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.d.ts +87 -0
  74. package/internal-do-not-import-from-here/shared/models/velcron/VelcronDefinition.js +2 -0
  75. package/internal-do-not-import-from-here/shared/models/velcron/VelcronEvents.js +2 -0
  76. package/internal-do-not-import-from-here/shared/models/velcron/index.d.ts +2 -0
  77. package/internal-do-not-import-from-here/shared/models/velcron/index.js +5 -0
  78. package/models/Enums.js +7 -7
  79. package/models/VelcronDefinitions.d.ts +71 -87
  80. package/models/VelcronDefinitions.js +1 -1
  81. package/models/VelcronPropertyEditorDefinitions.d.ts +229 -16
  82. package/models/VelcronPropertyEditorDefinitions.js +114 -2
  83. package/models/VelcronTypes.d.ts +1 -1
  84. package/models/ViewModelAndContext.d.ts +1 -1
  85. package/models/index.d.ts +0 -1
  86. package/models/index.js +0 -1
  87. package/package.json +1 -1
  88. package/parser/VelcronActions.js +3 -3
  89. package/parser/VelcronConstants.d.ts +6 -1
  90. package/parser/VelcronConstants.js +7 -2
  91. package/parser/VelcronData.d.ts +3 -2
  92. package/parser/VelcronData.js +6 -6
  93. package/parser/VelcronPropertyEditors.js +1 -1
  94. package/parser/VelcronRenderers.d.ts +2 -2
  95. package/parser/VelcronRenderers.js +2 -2
  96. package/parser/VelcronStyles.d.ts +2 -1
  97. package/parser/VelcronStyles.js +168 -65
  98. package/stores/ReactivitySystem.js +1 -1
  99. package/stores/VelcronColorSchema.d.ts +9 -8
  100. package/stores/VelcronTheming.d.ts +4 -3
  101. package/stores/VelcronTheming.js +15 -3
  102. package/stores/index.d.ts +0 -1
  103. package/stores/index.js +1 -1
  104. package/templatebuilder/editor/VelcronEditorBuilder2.d.ts +15 -0
  105. package/templatebuilder/editor/VelcronEditorBuilder2.js +106 -0
  106. package/templatebuilder/editor/VelcronEditorBuilderBase.d.ts +1 -1
  107. package/templatebuilder/index.d.ts +1 -0
  108. package/templatebuilder/index.js +1 -0
  109. package/templatebuilder/state/VelcronBlockHeaderStateBuilder.d.ts +0 -0
  110. package/templatebuilder/state/VelcronBlockHeaderStateBuilder.js +38 -0
  111. package/templatebuilder/useVelcronEditorBuilder.d.ts +2 -0
  112. package/templatebuilder/useVelcronEditorBuilder.js +9 -0
  113. package/internal-do-not-import-from-here/shared/models/Bring.d.ts +0 -24
  114. package/internal-do-not-import-from-here/shared/models/hub/activities/FeedResult.d.ts +0 -9
  115. package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.d.ts +0 -63
  116. package/internal-do-not-import-from-here/shared/models/theming/BlueprintDefinition.js +0 -18
  117. package/internal-do-not-import-from-here/shared/models/theming/OmniaThemes.d.ts +0 -5
  118. package/internal-do-not-import-from-here/shared/models/theming/OmniaThemes.js +0 -18
  119. package/stores/VelcronBlueprint.d.ts +0 -39
  120. package/stores/VelcronBlueprint.js +0 -55
  121. /package/internal-do-not-import-from-here/shared/models/{Bring.js → HttpCommon.js} +0 -0
  122. /package/internal-do-not-import-from-here/shared/models/{hub/activities/FeedResult.js → StronglyTypedId.js} +0 -0
  123. /package/{models/VelcronEvents.js → internal-do-not-import-from-here/shared/models/hub/ExternalIdentityId.js} +0 -0
  124. /package/{models → internal-do-not-import-from-here/shared/models/velcron}/VelcronEvents.d.ts +0 -0
@@ -1,17 +1,7 @@
1
- import { TypographySize, TypographyType, 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<any> {
52
+ export interface VelcronTextPropertyEditor extends VelcronPropertyEditor<VelcronTextEditorSettings> {
52
53
  type: "text";
53
54
  }
54
55
  export interface VelcronEnterprisePropertyEditor extends VelcronPropertyEditor<any> {
@@ -72,21 +73,34 @@ 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<any> {
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
+ }
81
85
  export interface VelcronState {
82
86
  images?: VelcronImagesState;
83
87
  styling?: VelcronStylingState;
84
- colorSchema?: VelcronColorSchemaState;
88
+ colorSchemas?: VelcronColorSchemasState;
85
89
  content?: VelcronContentState;
90
+ header?: VelcronHeaderState;
86
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;
87
100
  }
88
101
  export interface VelcronTextState {
89
- text: string;
102
+ text?: string;
103
+ placeholder?: string;
90
104
  typography?: VelcronTypographyState;
91
105
  }
92
106
  export interface VelcronTypographyState {
@@ -106,15 +120,214 @@ export interface VelcronPropertiesState {
106
120
  }
107
121
  export interface VelcronImagesState {
108
122
  main?: VelcronImageState;
123
+ alt1?: VelcronImageState;
124
+ alt2?: VelcronImageState;
109
125
  }
110
126
  export interface VelcronImageState {
111
127
  url?: string;
112
128
  ratio?: VelcronImageRatios;
113
129
  caption?: VelcronTextState;
130
+ width?: number;
131
+ height?: number;
114
132
  }
115
133
  export interface VelcronStylingState {
116
134
  }
135
+ export interface VelcronColorSchemasState {
136
+ main: VelcronColorSchemaState;
137
+ }
117
138
  export interface VelcronColorSchemaState {
118
139
  type?: string;
119
140
  filled?: boolean;
120
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
+ };
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BuiltInPropertyEditorTypes = void 0;
3
+ exports.VelcronStateBinding = exports.VelcronSpacingStateBinding = exports.VelcronColorSchemasStateBinding = exports.VelcronContentStateBinding = exports.VelcronHeaderStateBinding = exports.VelcronImagesStateBinding = exports.BuiltInPropertyEditorTypes = void 0;
4
+ // export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "color-schema-type" | "spacing" ;
4
5
  var BuiltInPropertyEditorTypes;
5
6
  (function (BuiltInPropertyEditorTypes) {
6
7
  BuiltInPropertyEditorTypes["text"] = "text";
@@ -12,5 +13,116 @@ var BuiltInPropertyEditorTypes;
12
13
  BuiltInPropertyEditorTypes["icon"] = "icon";
13
14
  BuiltInPropertyEditorTypes["image"] = "image";
14
15
  BuiltInPropertyEditorTypes["typography"] = "typography";
16
+ BuiltInPropertyEditorTypes["spacing"] = "spacing";
15
17
  BuiltInPropertyEditorTypes["color-schema-type"] = "color-schema-type";
16
- })(BuiltInPropertyEditorTypes = exports.BuiltInPropertyEditorTypes || (exports.BuiltInPropertyEditorTypes = {}));
18
+ })(BuiltInPropertyEditorTypes || (exports.BuiltInPropertyEditorTypes = BuiltInPropertyEditorTypes = {}));
19
+ exports.VelcronImagesStateBinding = {
20
+ main: {
21
+ editor: "{{images.main.url}}",
22
+ url: "{{images.main.url}}",
23
+ ratio: "{{images.main.ratio}}",
24
+ caption: "{{images.main.caption}}",
25
+ width: "{{images.main.width}}",
26
+ height: "{{images.main.height}}",
27
+ },
28
+ alt1: {
29
+ editor: "{{images.alt1.url}}",
30
+ url: "{{images.alt1.url}}",
31
+ ratio: "{{images.alt1.ratio}}",
32
+ caption: "{{images.alt1.caption}}",
33
+ width: "{{images.alt1.width}}",
34
+ height: "{{images.alt1.height}}",
35
+ },
36
+ alt2: {
37
+ editor: "{{images.alt2.url}}",
38
+ url: "{{images.alt2.url}}",
39
+ ratio: "{{images.alt2.ratio}}",
40
+ caption: "{{images.alt2.caption}}",
41
+ width: "{{images.alt2.width}}",
42
+ height: "{{images.alt2.height}}",
43
+ },
44
+ };
45
+ exports.VelcronHeaderStateBinding = {
46
+ title: {
47
+ text: "{{header.title.text}}",
48
+ placeholder: "{{header.title.placeholder}}",
49
+ typography: {
50
+ editor: "header.title.typography",
51
+ type: "{{header.title.typography.type}}",
52
+ size: "{{header.title.typography.size}}",
53
+ toned: "{{header.title.typography.toned}}",
54
+ }
55
+ },
56
+ icon: "{{header.icon}}"
57
+ };
58
+ exports.VelcronContentStateBinding = {
59
+ title: {
60
+ text: "{{content.title.text}}",
61
+ placeholder: "{{content.title.placeholder}}",
62
+ typography: {
63
+ editor: "content.title.typography",
64
+ type: "{{content.title.typography.type}}",
65
+ size: "{{content.title.typography.size}}",
66
+ toned: "{{content.title.typography.toned}}",
67
+ }
68
+ },
69
+ main: {
70
+ text: "{{content.main.text}}",
71
+ placeholder: "{{content.main.placeholder}}",
72
+ typography: {
73
+ editor: "content.main.typography",
74
+ type: "{{content.main.typography.type}}",
75
+ size: "{{content.main.typography.size}}",
76
+ toned: "{{content.main.typography.toned}}",
77
+ }
78
+ },
79
+ caption: {
80
+ text: "{{content.caption.text}}",
81
+ placeholder: "{{content.caption.placeholder}}",
82
+ typography: {
83
+ editor: "content.caption.typography",
84
+ type: "{{content.caption.typography.type}}",
85
+ size: "{{content.caption.typography.size}}",
86
+ toned: "{{content.caption.typography.toned}}",
87
+ }
88
+ },
89
+ summary: {
90
+ text: "{{content.summary.text}}",
91
+ placeholder: "{{content.summary.placeholder}}",
92
+ typography: {
93
+ editor: "content.summary.typography",
94
+ type: "{{content.summary.typography.type}}",
95
+ size: "{{content.summary.typography.size}}",
96
+ toned: "{{content.summary.typography.toned}}",
97
+ }
98
+ },
99
+ };
100
+ exports.VelcronColorSchemasStateBinding = {
101
+ main: {
102
+ type: "{{colorSchemas.main.type}}",
103
+ filled: "{{colorSchemas.main.filled}}"
104
+ }
105
+ };
106
+ exports.VelcronSpacingStateBinding = {
107
+ chrome: {
108
+ "top": "{{spacing.chrome.top}}",
109
+ "right": "{{spacing.chrome.right}}",
110
+ "bottom": "{{spacing.chrome.bottom}}",
111
+ "left": "{{spacing.chrome.left}}",
112
+ }
113
+ };
114
+ // export interface VelcronSpacingState {
115
+ // chrome?: VelcronDimensionState
116
+ // }
117
+ // export interface VelcronDimensionState {
118
+ // margin?: VelcronSpacing;
119
+ // padding?: VelcronSpacing;
120
+ // }
121
+ exports.VelcronStateBinding = {
122
+ colorSchemas: exports.VelcronColorSchemasStateBinding,
123
+ images: exports.VelcronImagesStateBinding,
124
+ content: exports.VelcronContentStateBinding,
125
+ header: exports.VelcronHeaderStateBinding,
126
+ spacing: exports.VelcronSpacingStateBinding
127
+ //properties?:VelcronPropertiesState,
128
+ };
@@ -1,4 +1,4 @@
1
- import { VelcronDefinition } from "./VelcronDefinitions";
1
+ import { VelcronDefinition } from "@omnia/fx-models";
2
2
  export type VelcronPrimitiveType = string | number | boolean;
3
3
  export type VelcronArrayType<T> = Array<T>;
4
4
  export type VelcronObjectType<T extends Object> = T;
@@ -1,4 +1,4 @@
1
- import { VelcronAppDefinition } from "./VelcronDefinitions";
1
+ import { VelcronAppDefinition } from "@omnia/fx-models";
2
2
  export interface AppJson {
3
3
  app: VelcronAppDefinition;
4
4
  }
package/models/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  export * from "./VelcronDefinitions";
2
2
  export * from "./ViewModelAndContext";
3
- export * from "./VelcronEvents";
4
3
  export * from "./VelcronTypes";
5
4
  export * from "./Enums";
6
5
  export * from "./VelcronUnitProvider";
package/models/index.js CHANGED
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./VelcronDefinitions"), exports);
5
5
  tslib_1.__exportStar(require("./ViewModelAndContext"), exports);
6
- tslib_1.__exportStar(require("./VelcronEvents"), exports);
7
6
  tslib_1.__exportStar(require("./VelcronTypes"), exports);
8
7
  tslib_1.__exportStar(require("./Enums"), exports);
9
8
  tslib_1.__exportStar(require("./VelcronUnitProvider"), exports);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.113-vnext",
4
+ "version": "8.0.114-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -433,7 +433,7 @@ class VelcronActions {
433
433
  }
434
434
  else {
435
435
  //Try get it from ViewModel
436
- castedValue = VelcronData_1.VelcronData.getOrSetObjectByPathUsingRenderContext(action, castedValue);
436
+ castedValue = VelcronData_1.VelcronData.getOrSet(action, castedValue);
437
437
  }
438
438
  }
439
439
  params.push({ dataType: dataType, value: castedValue });
@@ -451,13 +451,13 @@ class VelcronActions {
451
451
  return params;
452
452
  }
453
453
  }
454
+ exports.VelcronActions = VelcronActions;
454
455
  VelcronActions._actionHandlers = null;
455
456
  VelcronActions.actionHooks = {};
456
- exports.VelcronActions = VelcronActions;
457
457
  var VelcronActionParameterDataType;
458
458
  (function (VelcronActionParameterDataType) {
459
459
  VelcronActionParameterDataType[VelcronActionParameterDataType["text"] = 0] = "text";
460
460
  VelcronActionParameterDataType[VelcronActionParameterDataType["number"] = 1] = "number";
461
461
  VelcronActionParameterDataType[VelcronActionParameterDataType["boolean"] = 2] = "boolean";
462
462
  VelcronActionParameterDataType[VelcronActionParameterDataType["pointer"] = 3] = "pointer";
463
- })(VelcronActionParameterDataType = exports.VelcronActionParameterDataType || (exports.VelcronActionParameterDataType = {}));
463
+ })(VelcronActionParameterDataType || (exports.VelcronActionParameterDataType = VelcronActionParameterDataType = {}));
@@ -1,10 +1,13 @@
1
1
  export declare const VelcronConstants: {
2
2
  components: {
3
3
  velcron: string;
4
- view: string;
4
+ flex: string;
5
+ row: string;
6
+ column: string;
5
7
  card: string;
6
8
  text: string;
7
9
  image: string;
10
+ video: string;
8
11
  button: string;
9
12
  "text-input": string;
10
13
  "progress-circle": string;
@@ -16,6 +19,8 @@ export declare const VelcronConstants: {
16
19
  markdown: string;
17
20
  slot: string;
18
21
  property: string;
22
+ checkbox: string;
23
+ reference: string;
19
24
  };
20
25
  events: {
21
26
  idTokenStart: string;
@@ -4,10 +4,13 @@ exports.VelcronConstants = void 0;
4
4
  exports.VelcronConstants = {
5
5
  components: {
6
6
  velcron: "velcron",
7
- view: "view",
7
+ flex: "flex",
8
+ row: "row",
9
+ column: "column",
8
10
  card: "card",
9
11
  text: "text",
10
12
  image: "image",
13
+ video: "video",
11
14
  button: "button",
12
15
  "text-input": "text-input",
13
16
  "progress-circle": "progress-circle",
@@ -18,7 +21,9 @@ exports.VelcronConstants = {
18
21
  chip: "chip",
19
22
  markdown: "markdown",
20
23
  slot: "slot",
21
- property: "property"
24
+ property: "property",
25
+ checkbox: "checkbox",
26
+ reference: "reference"
22
27
  },
23
28
  events: {
24
29
  idTokenStart: "$ev{",
@@ -1,4 +1,5 @@
1
- import { VelcronAppDefinition, VelcronDefinition, VelcronRenderContext, DeferredPromise, VelcronBindableProp } from "../models";
1
+ import { VelcronRenderContext, DeferredPromise, VelcronBindableProp } from "../models";
2
+ import { VelcronAppDefinition, VelcronDefinition } from "..";
2
3
  export interface ParseResult<T> {
3
4
  is: boolean;
4
5
  value: T;
@@ -25,7 +26,7 @@ export declare class VelcronData {
25
26
  static isObject(value: any): boolean;
26
27
  static extendObject(obj: any): any;
27
28
  static getOrSetObjectByPath<T>(object: Object, path: string, value?: any): T | null;
28
- static getOrSetObjectByPathUsingRenderContext<T>(renderContext: VelcronRenderContext, path: string, value?: any): T;
29
+ static getOrSet<T>(renderContext: VelcronRenderContext, path: string, value?: any): T;
29
30
  static getTokens(template: any, removeBrackets: boolean): string[];
30
31
  static ensureEventId(event: string): string;
31
32
  static ensureKeys(ui: VelcronDefinition | VelcronAppDefinition, generateNewKeys?: boolean): void;
@@ -12,7 +12,7 @@ class VelcronData {
12
12
  }
13
13
  const tokens = this.getTokens(text, false);
14
14
  tokens.forEach((token) => {
15
- let data = this.getOrSetObjectByPathUsingRenderContext(renderContext, token.replace(/\s*{{\s*|\s*}}\s*/g, ""));
15
+ let data = this.getOrSet(renderContext, token.replace(/\s*{{\s*|\s*}}\s*/g, ""));
16
16
  if (data instanceof TextValue_1.TextValue) {
17
17
  data = data.value;
18
18
  }
@@ -224,7 +224,7 @@ class VelcronData {
224
224
  }
225
225
  else {
226
226
  //Try get value from rootContext or currentContext
227
- value = VelcronData.getOrSetObjectByPathUsingRenderContext(renderContext, value);
227
+ value = VelcronData.getOrSet(renderContext, value);
228
228
  }
229
229
  }
230
230
  }
@@ -244,7 +244,7 @@ class VelcronData {
244
244
  runEvaluation = true;
245
245
  }
246
246
  }
247
- const existingVal = VelcronData.getOrSetObjectByPathUsingRenderContext(renderContext, path);
247
+ const existingVal = VelcronData.getOrSet(renderContext, path);
248
248
  if (assignOperator === models_1.AssignOperators.equals || assignOperator === models_1.AssignOperators.equalsExclamation) {
249
249
  //debugger;
250
250
  if (typeof existingVal === "boolean" && typeof value !== "boolean") {
@@ -286,7 +286,7 @@ class VelcronData {
286
286
  }
287
287
  else {
288
288
  //try get value from render context
289
- const localVal = VelcronData.getOrSetObjectByPathUsingRenderContext(renderContext, value);
289
+ const localVal = VelcronData.getOrSet(renderContext, value);
290
290
  if (localVal !== undefined && localVal !== null) {
291
291
  value = localVal;
292
292
  }
@@ -495,7 +495,7 @@ class VelcronData {
495
495
  }
496
496
  return object;
497
497
  }
498
- static getOrSetObjectByPathUsingRenderContext(renderContext, path, value = undefined) {
498
+ static getOrSet(renderContext, path, value = undefined) {
499
499
  let result;
500
500
  if (VelcronData.isUndefined(path)) {
501
501
  return result;
@@ -638,5 +638,5 @@ class VelcronData {
638
638
  return { promise, reject, resolve };
639
639
  }
640
640
  }
641
- VelcronData.variables = {};
642
641
  exports.VelcronData = VelcronData;
642
+ VelcronData.variables = {};
@@ -36,5 +36,5 @@ class VelcronPropertyEditors {
36
36
  return result;
37
37
  }
38
38
  }
39
- VelcronPropertyEditors.editors = {};
40
39
  exports.VelcronPropertyEditors = VelcronPropertyEditors;
40
+ VelcronPropertyEditors.editors = {};
@@ -1,5 +1,5 @@
1
- import { BuiltInComponentRenderers, ResolvedComponentRenderer, VelcronDefinition, VelcronRenderContext } from "../models";
2
- import { DynamicState } from "..";
1
+ import { BuiltInComponentRenderers, ResolvedComponentRenderer, VelcronRenderContext } from "../models";
2
+ import { DynamicState, VelcronDefinition } from "..";
3
3
  export declare class VelcronRenderers {
4
4
  private static components;
5
5
  static registerComponent(type: string, component: any): void;
@@ -73,7 +73,7 @@ class VelcronRenderers {
73
73
  computed: currentRenderCtx.computed,
74
74
  colors: currentRenderCtx.colors,
75
75
  editMode: currentRenderCtx.editMode,
76
- blueprints: currentRenderCtx.blueprints,
76
+ //blueprints: currentRenderCtx.blueprints,
77
77
  disposers: currentRenderCtx.disposers,
78
78
  properties: currentRenderCtx.properties,
79
79
  };
@@ -122,5 +122,5 @@ class VelcronRenderers {
122
122
  return result;
123
123
  }
124
124
  }
125
- VelcronRenderers.components = {};
126
125
  exports.VelcronRenderers = VelcronRenderers;
126
+ VelcronRenderers.components = {};
@@ -1,5 +1,6 @@
1
- import { VelcronBorder, VelcronColorStyling, VelcronDefinition, VelcronDimensions, VelcronRenderContext } from "../models";
1
+ import { VelcronBorder, VelcronColorStyling, VelcronDimensions, VelcronRenderContext } from "../models";
2
2
  import { VelcronUnitProvider } from "../models/VelcronUnitProvider";
3
+ import { VelcronDefinition } from "..";
3
4
  export declare class VelcronStyles {
4
5
  static styleProvider: (baseStyles: object, definition: VelcronDefinition, renderCtx: VelcronRenderContext) => any;
5
6
  static unitProvider: VelcronUnitProvider;