@omnia/fx-models 8.0.22-dev → 8.0.23-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.
@@ -11,6 +11,7 @@ export interface ResolvedComponentRenderer {
11
11
  customComponent?: boolean;
12
12
  }
13
13
  export interface BuiltInComponentRenderers {
14
+ "velcron": unknown;
14
15
  "view": unknown;
15
16
  "card": unknown;
16
17
  "text": unknown;
@@ -136,6 +137,7 @@ export interface VelcronColorStyling {
136
137
  }
137
138
  export interface VelcronTextStyling {
138
139
  text: string;
140
+ placeholder?: string;
139
141
  typography?: string;
140
142
  size?: string;
141
143
  }
@@ -319,4 +321,7 @@ export type VelcronRenderProps<TDefinition> = {
319
321
  definition: TDefinition;
320
322
  renderContext: VelcronRenderContext;
321
323
  };
324
+ export type VelcronAppRendererProps = VelcronRenderProps<VelcronAppDefinition> & {
325
+ rootApp: boolean;
326
+ };
322
327
  export {};
@@ -81,7 +81,7 @@ export interface VelcronImagePropertyEditor extends VelcronPropertyEditor<any> {
81
81
  export interface VelcronState {
82
82
  images?: VelcronImagesState;
83
83
  styling?: VelcronStylingState;
84
- colorSchema?: VelcronColorSchemaState;
84
+ colorSchemas?: VelcronColorSchemasState;
85
85
  content?: VelcronContentState;
86
86
  header?: VelcronHeaderState;
87
87
  properties?: VelcronPropertiesState;
@@ -90,20 +90,9 @@ export interface VelcronHeaderState {
90
90
  title?: VelcronTextState;
91
91
  icon?: string;
92
92
  }
93
- export declare const VelcronHeaderStateBinding: {
94
- title: {
95
- text: string;
96
- typography: {
97
- editor: any;
98
- type: any;
99
- size: any;
100
- toned: any;
101
- };
102
- };
103
- icon: string;
104
- };
105
93
  export interface VelcronTextState {
106
- text: string;
94
+ text?: string;
95
+ placeholder?: string;
107
96
  typography?: VelcronTypographyState;
108
97
  }
109
98
  export interface VelcronTypographyState {
@@ -131,7 +120,110 @@ export interface VelcronImageState {
131
120
  }
132
121
  export interface VelcronStylingState {
133
122
  }
123
+ export interface VelcronColorSchemasState {
124
+ main: VelcronColorSchemaState;
125
+ }
134
126
  export interface VelcronColorSchemaState {
135
127
  type?: string;
136
128
  filled?: boolean;
137
129
  }
130
+ export declare const VelcronImagesStateBinding: {
131
+ main: {
132
+ editor: string;
133
+ url: string;
134
+ ratio: string;
135
+ caption: string;
136
+ };
137
+ };
138
+ export declare const VelcronHeaderStateBinding: {
139
+ title: {
140
+ text: string;
141
+ placeholder: string;
142
+ typography: {
143
+ editor: any;
144
+ type: any;
145
+ size: any;
146
+ toned: any;
147
+ };
148
+ };
149
+ icon: string;
150
+ };
151
+ export declare const VelcronContentStateBinding: {
152
+ main: {
153
+ text: string;
154
+ placeholder: string;
155
+ typography: {
156
+ editor: any;
157
+ type: any;
158
+ size: any;
159
+ toned: any;
160
+ };
161
+ };
162
+ caption: {
163
+ text: string;
164
+ placeholder: string;
165
+ typography: {
166
+ editor: any;
167
+ type: any;
168
+ size: any;
169
+ toned: any;
170
+ };
171
+ };
172
+ };
173
+ export declare const VelcronColorSchemasStateBinding: {
174
+ main: {
175
+ type: string;
176
+ filled: string;
177
+ };
178
+ };
179
+ export declare const VelcronStateBinding: {
180
+ colorSchemas: {
181
+ main: {
182
+ type: string;
183
+ filled: string;
184
+ };
185
+ };
186
+ images: {
187
+ main: {
188
+ editor: string;
189
+ url: string;
190
+ ratio: string;
191
+ caption: string;
192
+ };
193
+ };
194
+ content: {
195
+ main: {
196
+ text: string;
197
+ placeholder: string;
198
+ typography: {
199
+ editor: any;
200
+ type: any;
201
+ size: any;
202
+ toned: any;
203
+ };
204
+ };
205
+ caption: {
206
+ text: string;
207
+ placeholder: string;
208
+ typography: {
209
+ editor: any;
210
+ type: any;
211
+ size: any;
212
+ toned: any;
213
+ };
214
+ };
215
+ };
216
+ header: {
217
+ title: {
218
+ text: string;
219
+ placeholder: string;
220
+ typography: {
221
+ editor: any;
222
+ type: any;
223
+ size: any;
224
+ toned: any;
225
+ };
226
+ };
227
+ icon: string;
228
+ };
229
+ };
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VelcronHeaderStateBinding = exports.BuiltInPropertyEditorTypes = void 0;
3
+ exports.VelcronStateBinding = exports.VelcronColorSchemasStateBinding = exports.VelcronContentStateBinding = exports.VelcronHeaderStateBinding = exports.VelcronImagesStateBinding = exports.BuiltInPropertyEditorTypes = void 0;
4
4
  var BuiltInPropertyEditorTypes;
5
5
  (function (BuiltInPropertyEditorTypes) {
6
6
  BuiltInPropertyEditorTypes["text"] = "text";
@@ -14,9 +14,18 @@ var BuiltInPropertyEditorTypes;
14
14
  BuiltInPropertyEditorTypes["typography"] = "typography";
15
15
  BuiltInPropertyEditorTypes["color-schema-type"] = "color-schema-type";
16
16
  })(BuiltInPropertyEditorTypes = exports.BuiltInPropertyEditorTypes || (exports.BuiltInPropertyEditorTypes = {}));
17
+ exports.VelcronImagesStateBinding = {
18
+ main: {
19
+ editor: "{{images.main.url}}",
20
+ url: "{{images.main.url}}",
21
+ ratio: "{{images.main.ratio}}",
22
+ caption: "{{images.main.caption}}"
23
+ },
24
+ };
17
25
  exports.VelcronHeaderStateBinding = {
18
26
  title: {
19
27
  text: "{{header.title.text}}",
28
+ placeholder: "{{header.title.placeholder}}",
20
29
  typography: {
21
30
  editor: "header.title.typography",
22
31
  type: "{{header.title.typography.type}}",
@@ -26,3 +35,38 @@ exports.VelcronHeaderStateBinding = {
26
35
  },
27
36
  icon: "{{header.icon}}"
28
37
  };
38
+ exports.VelcronContentStateBinding = {
39
+ main: {
40
+ text: "{{content.main.text}}",
41
+ placeholder: "{{content.main.placeholder}}",
42
+ typography: {
43
+ editor: "content.main.typography",
44
+ type: "{{content.main.typography.type}}",
45
+ size: "{{content.main.typography.size}}",
46
+ toned: "{{content.main.typography.toned}}",
47
+ }
48
+ },
49
+ caption: {
50
+ text: "{{content.caption.text}}",
51
+ placeholder: "{{content.caption.placeholder}}",
52
+ typography: {
53
+ editor: "content.caption.typography",
54
+ type: "{{content.caption.typography.type}}",
55
+ size: "{{content.caption.typography.size}}",
56
+ toned: "{{content.caption.typography.toned}}",
57
+ }
58
+ },
59
+ };
60
+ exports.VelcronColorSchemasStateBinding = {
61
+ main: {
62
+ type: "{{colorSchemas.main.type}}",
63
+ filled: "{{colorSchemas.main.filled}}"
64
+ }
65
+ };
66
+ exports.VelcronStateBinding = {
67
+ colorSchemas: exports.VelcronColorSchemasStateBinding,
68
+ images: exports.VelcronImagesStateBinding,
69
+ content: exports.VelcronContentStateBinding,
70
+ header: exports.VelcronHeaderStateBinding,
71
+ //properties?:VelcronPropertiesState,
72
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.22-dev",
4
+ "version": "8.0.23-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,4 +1,4 @@
1
- import { AdminNavigationBuiltInCategory, GuidValue } from "@omnia/fx-models";
1
+ import { AdminNavigationBuiltInCategory, Guid, GuidValue } from "@omnia/fx-models";
2
2
  import { AdminNavigationNode, NavigationNode } from "../admin";
3
3
  import { NavigationMenuNode, IMessageBusTopicSubscription } from "../Messaging";
4
4
  import { IRegisterAdminNavigationNode, IRegisterAdminNavigationMenuNode, INavigationNodeRegistration } from "./AdminApi";
@@ -18,7 +18,7 @@ export interface IInternalAdminApi extends IRegisterAdminNavigationNode, IRegist
18
18
  getNavigationNodeRegistrationsByCategory(category: string | AdminNavigationBuiltInCategory): Promise<AdminNavigationNodeRegistration[]>;
19
19
  getNavigationNodeRegistrationsByParentNodeId(parentId: GuidValue): Promise<AdminNavigationNodeRegistration[]>;
20
20
  onNavigationNodeRegistrationToParentAdded: () => IMessageBusTopicSubscription<{
21
- parentNodeId: GuidValue;
21
+ parentNodeId: Guid;
22
22
  node: AdminNavigationNodeRegistration;
23
23
  }>;
24
24
  onNavigationNodeRegistrationToCategoryAdded: () => IMessageBusTopicSubscription<{