@omnia/fx-models 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.
package/Constants.d.ts CHANGED
@@ -51,6 +51,7 @@ export declare const Constants: {
51
51
  dalle: Guid;
52
52
  mediaflow: Guid;
53
53
  unsplash: Guid;
54
+ vimeo: Guid;
54
55
  };
55
56
  providerContextInject: Guid;
56
57
  };
package/Constants.js CHANGED
@@ -82,6 +82,7 @@ exports.Constants = {
82
82
  dalle: new models_1.Guid("69805036-0D70-421B-8B81-217978BB47A4"),
83
83
  mediaflow: new models_1.Guid("F3078399-C3B6-457D-8C2F-A4C8C39B5F27"),
84
84
  unsplash: new models_1.Guid("db11bef7-768d-4281-ad13-c938a4cdb6de"),
85
+ vimeo: new models_1.Guid("b213d44a-728f-4d28-a810-a2a5ed86a9b5")
85
86
  },
86
87
  providerContextInject: new models_1.Guid("950198af-fc0e-4a2e-9f73-394edccf1d8e"),
87
88
  },
package/ManifestIds.d.ts CHANGED
@@ -54,6 +54,7 @@ export declare class OmniaResourceManifests {
54
54
  static get Fx(): Guid;
55
55
  static get FxSpContexts(): Guid;
56
56
  static get FxUxVuetifyTextinput(): Guid;
57
+ static get FxUxVuetifyNumberinput(): Guid;
57
58
  static get FxUxVuetifySelect(): Guid;
58
59
  static get FxUxVuetifyTextarea(): Guid;
59
60
  static get LocalhostingCommands(): Guid;
@@ -69,6 +70,8 @@ export declare class OmniaResourceManifests {
69
70
  static get FxUxVDialog(): Guid;
70
71
  static get FxUxVuetifyAvatar(): Guid;
71
72
  static get FxUxVTreeView(): Guid;
73
+ static get FxUxVSpeedial(): Guid;
74
+ static get FxUxVMenu(): Guid;
72
75
  static get Vendor(): Guid;
73
76
  static get PhoneNumberLib(): Guid;
74
77
  static get FxTenantLanguage(): Guid;
@@ -312,6 +315,7 @@ export declare class OmniaWebComponentManifests {
312
315
  static get FxUxSharePointVideoSettings(): Guid;
313
316
  static get FxUxMicrosoftStreamProvider(): Guid;
314
317
  static get FxUxYoutubeProvider(): Guid;
318
+ static get FxUxVimeoProvider(): Guid;
315
319
  static get FxUxDallEProvider(): Guid;
316
320
  static get FxUxImageTransformer(): Guid;
317
321
  static get FxUxThemeDefinitionEditor(): Guid;
package/ManifestIds.js CHANGED
@@ -164,6 +164,9 @@ class OmniaResourceManifests {
164
164
  static get FxUxVuetifyTextinput() {
165
165
  return new models_1.Guid("181ff5d3-896f-4471-b516-3a347fe9e35d");
166
166
  }
167
+ static get FxUxVuetifyNumberinput() {
168
+ return new models_1.Guid("0fb99ef6-4899-4100-9e95-e33934baf823");
169
+ }
167
170
  static get FxUxVuetifySelect() {
168
171
  return new models_1.Guid("6d5f3edc-0fc0-4765-804b-b6583381f25d");
169
172
  }
@@ -233,6 +236,12 @@ class OmniaResourceManifests {
233
236
  static get FxUxVTreeView() {
234
237
  return new models_1.Guid("6d7b7ee9-0839-49fd-885e-513b17b6b023");
235
238
  }
239
+ static get FxUxVSpeedial() {
240
+ return new models_1.Guid("86e824ef-c893-4e64-b51c-fc91e1be4c85");
241
+ }
242
+ static get FxUxVMenu() {
243
+ return new models_1.Guid("2a6bef63-35c8-492b-9035-868016b1da20");
244
+ }
236
245
  static get Vendor() {
237
246
  return new models_1.Guid("6270b632-1f44-4146-bace-137131c0471b");
238
247
  }
@@ -955,6 +964,9 @@ class OmniaWebComponentManifests {
955
964
  return new models_1.Guid("E748B310-3FE4-4732-B899-3513D863035B");
956
965
  }
957
966
  //public static get FxUxYoutubeProviderRegistration(): Guid { return new Guid("0f90dfd5-fa8c-4e97-a840-3b3f3c5ee7d3"); }
967
+ static get FxUxVimeoProvider() {
968
+ return new models_1.Guid("9275FAF9-638C-486B-9EEF-0C7C38FCF12C");
969
+ }
958
970
  static get FxUxDallEProvider() {
959
971
  return new models_1.Guid("9ece4ebd-690f-43b7-95d5-3f72bcc590d1");
960
972
  }
@@ -1,5 +1,6 @@
1
+ import { ColorSchemaTypes } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
1
2
  export interface ThemeableComponentProps {
2
- colorSchemaType?: any;
3
+ colorSchemaType?: ColorSchemaTypes;
3
4
  container?: any;
4
5
  colors?: any;
5
6
  }
@@ -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>;
@@ -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",
@@ -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/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 } 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, 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/fx-models/internal-do-not-import-from-here/shared/models";
2
- import { VelcronImageRatios } from "./VelcronDefinitions";
1
+ import { BuiltInPropertyEditorType, TypographyType, VelcronEditor } from "@omnia/fx-models/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/fx-models/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/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
161
- };
162
- main: {
163
- text: string;
164
- placeholder: string;
165
- blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
166
- };
167
- caption: {
168
- text: string;
169
- placeholder: string;
170
- blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
171
- };
172
- summary: {
173
- text: string;
174
- placeholder: string;
175
- blueprint: import("@omnia/fx-models/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/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
230
- };
231
- main: {
232
- text: string;
233
- placeholder: string;
234
- blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
235
- };
236
- caption: {
237
- text: string;
238
- placeholder: string;
239
- blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
240
- };
241
- summary: {
242
- text: string;
243
- placeholder: string;
244
- blueprint: import("@omnia/fx-models/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/fx-models/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/fx-models/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
- };
@@ -0,0 +1,186 @@
1
+ import { BackgroundDefinition, ContainerBlueprint, ContainerVariant, TextBlueprint, TypographySize, TypographyType, VelcronSpacing } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
2
+ import { VelcronImageRatios } from "./VelcronDefinitions";
3
+ export interface VelcronState {
4
+ images?: VelcronImagesState;
5
+ container?: {
6
+ colorSchemaType?: string;
7
+ spacing?: VelcronSpacing;
8
+ blueprint?: ContainerBlueprint | ContainerVariant;
9
+ background?: BackgroundDefinition;
10
+ };
11
+ grid?: VelcronGridState;
12
+ colorSchemas?: VelcronColorSchemasState;
13
+ content?: VelcronContentState;
14
+ header?: VelcronHeaderState;
15
+ properties?: VelcronPropertiesState;
16
+ spacing?: VelcronSpacingState;
17
+ }
18
+ export interface VelcronGridState {
19
+ columnWidth?: number;
20
+ columns?: Array<object>;
21
+ gap?: string | number;
22
+ }
23
+ export interface VelcronSpacingState {
24
+ container?: VelcronSpacing;
25
+ }
26
+ export interface VelcronHeaderState {
27
+ title?: VelcronTextState;
28
+ icon?: string;
29
+ }
30
+ export interface VelcronTextState {
31
+ text?: string;
32
+ placeholder?: string;
33
+ typography?: VelcronTypographyState;
34
+ }
35
+ export interface VelcronTypographyState {
36
+ type?: TypographyType;
37
+ size?: TypographySize;
38
+ toned?: boolean;
39
+ }
40
+ export interface VelcronContentState {
41
+ caption?: VelcronTextState;
42
+ main?: VelcronTextState;
43
+ title?: VelcronTextState;
44
+ summary?: VelcronTextState;
45
+ }
46
+ export interface VelcronPropertiesState {
47
+ user: any;
48
+ mappings: Array<any>;
49
+ }
50
+ export interface VelcronImagesState {
51
+ main?: VelcronImageState;
52
+ alt1?: VelcronImageState;
53
+ alt2?: VelcronImageState;
54
+ }
55
+ export interface VelcronImageState {
56
+ url?: string;
57
+ ratio?: VelcronImageRatios;
58
+ caption?: VelcronTextState;
59
+ width?: number;
60
+ height?: number;
61
+ }
62
+ export interface VelcronStylingState {
63
+ }
64
+ export interface VelcronColorSchemasState {
65
+ main: string;
66
+ }
67
+ export declare const VelcronImagesStateBinding: {
68
+ main: {
69
+ editor: string;
70
+ url: string;
71
+ ratio: string;
72
+ caption: string;
73
+ width: string;
74
+ height: string;
75
+ };
76
+ alt1: {
77
+ editor: string;
78
+ url: string;
79
+ ratio: string;
80
+ caption: string;
81
+ width: string;
82
+ height: string;
83
+ };
84
+ alt2: {
85
+ editor: string;
86
+ url: string;
87
+ ratio: string;
88
+ caption: string;
89
+ width: string;
90
+ height: string;
91
+ };
92
+ };
93
+ export declare const VelcronStateMapping: {
94
+ grid: {
95
+ columns: string;
96
+ };
97
+ };
98
+ export declare const VelcronStateBinding: {
99
+ colorSchemas: {
100
+ main_depricated: {
101
+ value: string;
102
+ type: string;
103
+ filled: string;
104
+ };
105
+ };
106
+ container: {
107
+ colorSchemaType: string;
108
+ spacing: string;
109
+ blueprint: string;
110
+ background: {
111
+ value: string;
112
+ media: string;
113
+ };
114
+ };
115
+ images: {
116
+ main: {
117
+ editor: string;
118
+ url: string;
119
+ ratio: string;
120
+ caption: string;
121
+ width: string;
122
+ height: string;
123
+ };
124
+ alt1: {
125
+ editor: string;
126
+ url: string;
127
+ ratio: string;
128
+ caption: string;
129
+ width: string;
130
+ height: string;
131
+ };
132
+ alt2: {
133
+ editor: string;
134
+ url: string;
135
+ ratio: string;
136
+ caption: string;
137
+ width: string;
138
+ height: string;
139
+ };
140
+ };
141
+ content: {
142
+ title: {
143
+ text: string;
144
+ placeholder: string;
145
+ blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
146
+ };
147
+ main: {
148
+ text: string;
149
+ placeholder: string;
150
+ blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
151
+ };
152
+ caption: {
153
+ text: string;
154
+ placeholder: string;
155
+ blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
156
+ };
157
+ summary: {
158
+ text: string;
159
+ placeholder: string;
160
+ blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
161
+ };
162
+ };
163
+ grid: {
164
+ value: string;
165
+ columnWidth: string;
166
+ columns: string;
167
+ gap: string;
168
+ };
169
+ header: {
170
+ title: {
171
+ text: string;
172
+ placeholder: string;
173
+ blueprint: import("@omnia/fx-models/internal-do-not-import-from-here/shared/models").VelcronBindableProp<TextBlueprint>;
174
+ };
175
+ icon: string;
176
+ };
177
+ spacing: {
178
+ container: {
179
+ value: string;
180
+ top: string;
181
+ right: string;
182
+ bottom: string;
183
+ left: string;
184
+ };
185
+ };
186
+ };
@@ -0,0 +1,102 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VelcronStateBinding = exports.VelcronStateMapping = exports.VelcronImagesStateBinding = void 0;
4
+ const models_1 = require("@omnia/fx-models/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
+ const VelcronContentStateBinding = {
32
+ title: {
33
+ text: (0, models_1.velcronBind)("content.title.text"),
34
+ placeholder: (0, models_1.velcronBind)("content.title.placeholder"),
35
+ blueprint: (0, models_1.velcronBind)("content.title.blueprint")
36
+ },
37
+ main: {
38
+ text: (0, models_1.velcronBind)("content.main.text"),
39
+ placeholder: (0, models_1.velcronBind)("content.main.placeholder"),
40
+ blueprint: (0, models_1.velcronBind)("content.main.blueprint")
41
+ },
42
+ caption: {
43
+ text: (0, models_1.velcronBind)("content.caption.text"),
44
+ placeholder: (0, models_1.velcronBind)("content.caption.placeholder"),
45
+ blueprint: (0, models_1.velcronBind)("content.caption.blueprint")
46
+ },
47
+ summary: {
48
+ text: (0, models_1.velcronBind)("content.summary.text"),
49
+ placeholder: (0, models_1.velcronBind)("content.summary.placeholder"),
50
+ blueprint: (0, models_1.velcronBind)("content.summary.blueprint")
51
+ },
52
+ };
53
+ exports.VelcronStateMapping = {
54
+ grid: {
55
+ columns: "grid.columns",
56
+ },
57
+ };
58
+ exports.VelcronStateBinding = {
59
+ colorSchemas: {
60
+ main_depricated: {
61
+ value: (0, models_1.velcronBind)("colorSchemas.main"),
62
+ type: (0, models_1.velcronBind)("colorSchemas.main.type"),
63
+ filled: (0, models_1.velcronBind)("colorSchemas.main.filled")
64
+ }
65
+ },
66
+ container: {
67
+ colorSchemaType: (0, models_1.velcronBind)("$state.container.colorSchemaType"),
68
+ spacing: (0, models_1.velcronBind)("$state.container.spacing"),
69
+ blueprint: (0, models_1.velcronBind)("$state.container.blueprint"),
70
+ background: {
71
+ value: (0, models_1.velcronBind)("$state.container.background"),
72
+ media: (0, models_1.velcronBind)("$state.container.background.media")
73
+ }
74
+ },
75
+ images: exports.VelcronImagesStateBinding,
76
+ content: VelcronContentStateBinding,
77
+ grid: {
78
+ value: (0, models_1.velcronBind)("$state.grid"),
79
+ columnWidth: (0, models_1.velcronBind)("$state.grid.columnWidth"),
80
+ columns: (0, models_1.velcronBind)("$state.grid.columns"),
81
+ gap: (0, models_1.velcronBind)("$state.grid.gap"),
82
+ //rows:velcronBind("grid.rows"),
83
+ },
84
+ header: {
85
+ title: {
86
+ text: (0, models_1.velcronBind)("$state.header.title.text"),
87
+ placeholder: (0, models_1.velcronBind)("$state.header.title.placeholder"),
88
+ blueprint: (0, models_1.velcronBind)("$state.content.title.blueprint")
89
+ },
90
+ icon: (0, models_1.velcronBind)("$state.header.icon")
91
+ },
92
+ spacing: {
93
+ container: {
94
+ value: (0, models_1.velcronBind)("$state.spacing.chrome"),
95
+ top: (0, models_1.velcronBind)("{{spacing.chrome.top}}"),
96
+ right: (0, models_1.velcronBind)("{{spacing.chrome.right}}"),
97
+ bottom: (0, models_1.velcronBind)("{{spacing.chrome.bottom}}"),
98
+ left: (0, models_1.velcronBind)("{{spacing.chrome.left}}"),
99
+ }
100
+ }
101
+ //properties?:VelcronPropertiesState,
102
+ };
@@ -5,3 +5,4 @@ export * from "./Enums";
5
5
  export * from "./VelcronUnitProvider";
6
6
  export * from "./VelcronPropertyEditorDefinitions";
7
7
  export * from "./ActionHooks";
8
+ export * from "./VelcronState";
@@ -8,3 +8,4 @@ tslib_1.__exportStar(require("./Enums"), exports);
8
8
  tslib_1.__exportStar(require("./VelcronUnitProvider"), exports);
9
9
  tslib_1.__exportStar(require("./VelcronPropertyEditorDefinitions"), exports);
10
10
  tslib_1.__exportStar(require("./ActionHooks"), exports);
11
+ tslib_1.__exportStar(require("./VelcronState"), exports);
@@ -1,8 +1,8 @@
1
1
  import { GuidValue } from "../Exposes";
2
2
  import { PropertySource } from "./PropertySource";
3
3
  import { RefinerProperty } from "./RefinerProperty";
4
- import { SortProperty } from "./SortProperty";
5
4
  import { SearchProperty } from "./SearchProperty";
5
+ import { SortProperty } from "./SortProperty";
6
6
  export declare class OmniaUserSource implements PropertySource {
7
7
  readonly propertySourceId: GuidValue;
8
8
  constructor();
@@ -26,7 +26,12 @@ export declare class UserTypeOmniaSearchProperty extends SearchProperty {
26
26
  static Named: string;
27
27
  constructor(values: Array<string>);
28
28
  }
29
- export declare class UserOwnerIdOmniaSearchProperty extends SearchProperty {
29
+ export declare class UserScopeOmniaSearchProperty extends SearchProperty {
30
+ values: Array<string>;
31
+ static Named: string;
32
+ constructor(values: Array<string>);
33
+ }
34
+ export declare class UserScopeTypeOmniaSearchProperty extends SearchProperty {
30
35
  values: Array<string>;
31
36
  static Named: string;
32
37
  constructor(values: Array<string>);
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UserOwnerIdOmniaSearchProperty = exports.UserTypeOmniaSearchProperty = exports.SourceRelatedOmniaSearchProperty = exports.SourceRelatedOmniaSortProperty = exports.SourceRelatedOmniaRefinerProperty = exports.OmniaUserSource = void 0;
3
+ exports.UserScopeTypeOmniaSearchProperty = exports.UserScopeOmniaSearchProperty = exports.UserTypeOmniaSearchProperty = exports.SourceRelatedOmniaSearchProperty = exports.SourceRelatedOmniaSortProperty = exports.SourceRelatedOmniaRefinerProperty = exports.OmniaUserSource = void 0;
4
4
  const SearchProperty_1 = require("./SearchProperty");
5
5
  class OmniaUserSource {
6
6
  constructor() {
@@ -39,11 +39,19 @@ class UserTypeOmniaSearchProperty extends SearchProperty_1.SearchProperty {
39
39
  }
40
40
  }
41
41
  exports.UserTypeOmniaSearchProperty = UserTypeOmniaSearchProperty;
42
- class UserOwnerIdOmniaSearchProperty extends SearchProperty_1.SearchProperty {
43
- static { this.Named = "OwnerId"; }
42
+ class UserScopeOmniaSearchProperty extends SearchProperty_1.SearchProperty {
43
+ static { this.Named = "Scope"; }
44
44
  constructor(values) {
45
- super(UserOwnerIdOmniaSearchProperty.Named, values);
45
+ super(UserScopeOmniaSearchProperty.Named, values);
46
46
  this.values = values;
47
47
  }
48
48
  }
49
- exports.UserOwnerIdOmniaSearchProperty = UserOwnerIdOmniaSearchProperty;
49
+ exports.UserScopeOmniaSearchProperty = UserScopeOmniaSearchProperty;
50
+ class UserScopeTypeOmniaSearchProperty extends SearchProperty_1.SearchProperty {
51
+ static { this.Named = "ScopeType"; }
52
+ constructor(values) {
53
+ super(UserScopeTypeOmniaSearchProperty.Named, values);
54
+ this.values = values;
55
+ }
56
+ }
57
+ exports.UserScopeTypeOmniaSearchProperty = UserScopeTypeOmniaSearchProperty;
@@ -41,7 +41,7 @@ export declare const OAlertTypesName = "OAlertTypes";
41
41
  export declare const OButtonPresetDefinitions: readonly ["create", "remove", "delete", "ok", "cancel", "save", "close", "settings", "icon-add", "icon-comment", "icon-delete", "icon-edit", "icon-drag-handle", "icon-copy", "icon-code", "icon-close", "icon-back", "icon-more", "icon-navigate", "icon-preview", "icon-settings", "load-more", "retry", "remove", "approve", "copy-to-clipboard", "details", "next", "previous", "select", "view-more", "send-request"];
42
42
  export type OOxideButtonPresets = typeof OButtonPresetDefinitions[number];
43
43
  export declare const OButtonPresetsName = "OOxideButtonPresets";
44
- export declare const OButtonVariantDefinitions: readonly ["primary", "default", "toolbar", "opacity", "dial", "slim", "menu"];
44
+ export declare const OButtonVariantDefinitions: readonly ["primary", "default", "toolbar", "opacity", "dial", "slim", "menu", "overlay"];
45
45
  export type OButtonVariants = typeof OButtonVariantDefinitions[number];
46
46
  export declare const OButtonVariantsName = "OButtonVariants";
47
47
  /**Button Group */
@@ -31,7 +31,7 @@ exports.OAlertTypesName = "OAlertTypes";
31
31
  /**Button */
32
32
  exports.OButtonPresetDefinitions = ["create", "remove", "delete", "ok", "cancel", "save", "close", "settings", "icon-add", "icon-comment", "icon-delete", "icon-edit", "icon-drag-handle", "icon-copy", "icon-code", "icon-close", "icon-back", "icon-more", "icon-navigate", "icon-preview", "icon-settings", "load-more", "retry", "remove", "approve", "copy-to-clipboard", "details", "next", "previous", "select", "view-more", "send-request"];
33
33
  exports.OButtonPresetsName = "OOxideButtonPresets";
34
- exports.OButtonVariantDefinitions = ["primary", "default", "toolbar", "opacity", "dial", "slim", "menu"];
34
+ exports.OButtonVariantDefinitions = ["primary", "default", "toolbar", "opacity", "dial", "slim", "menu", "overlay"];
35
35
  exports.OButtonVariantsName = "OButtonVariants";
36
36
  /**Button Group */
37
37
  exports.OButtonGroupTypeDefinitions = ["default", "dial", "settings"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.162-dev",
4
+ "version": "8.0.164-dev",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -1,10 +1,9 @@
1
- import { DynamicState, GuidValue, ThemeDefinitionV2, VelcronAppDefinition } from "..";
1
+ import { DynamicState, GuidValue, VelcronAppDefinition } from "..";
2
2
  export type VelcronDefitinionRegistrationsTypes = "content" | "card" | "header" | "general" | "property" | "block-header" | "social" | "spacing";
3
3
  export interface VelcronDefinitionRegistration<TDefinitionState extends DynamicState = DynamicState> {
4
4
  id: GuidValue;
5
5
  definition: VelcronAppDefinition<TDefinitionState>;
6
6
  title: string;
7
- previewTheme?: ThemeDefinitionV2;
8
7
  category: VelcronDefitinionRegistrationsTypes;
9
8
  builtIn?: boolean;
10
9
  }