@omnia/fx-models 8.0.88-vnext → 8.0.90-vnext

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.
@@ -2,6 +2,15 @@ import { VelcronImageRatios } 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?: string;
12
+ component?: unknown;
13
+ }
5
14
  export interface BuiltInPropertyEditors {
6
15
  text: unknown;
7
16
  slider: unknown;
@@ -12,17 +21,9 @@ export interface BuiltInPropertyEditors {
12
21
  icon: unknown;
13
22
  image: unknown;
14
23
  typography: unknown;
24
+ "color-schema-type": unknown;
15
25
  }
16
- export interface VelcronPropertyEditor<TSettings = any> {
17
- name?: string;
18
- category?: string;
19
- type: BuiltInPropertyEditorType | string;
20
- settings?: TSettings;
21
- stateMapping?: string;
22
- propertyMapping?: string;
23
- component?: unknown;
24
- }
25
- export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography";
26
+ export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "color-schema-type";
26
27
  export declare enum BuiltInPropertyEditorTypes {
27
28
  text = "text",
28
29
  slider = "slider",
@@ -32,7 +33,8 @@ export declare enum BuiltInPropertyEditorTypes {
32
33
  markdown = "markdown",
33
34
  icon = "icon",
34
35
  image = "image",
35
- typography = "typography"
36
+ typography = "typography",
37
+ "color-schema-type" = "color-schema-type"
36
38
  }
37
39
  export interface VelcronSliderPropertyEditorSettings {
38
40
  min: number;
@@ -57,6 +59,9 @@ export interface VelcronAlignmentPropertyEditor extends VelcronPropertyEditor<an
57
59
  export interface VelcronColorPropertyEditor extends VelcronPropertyEditor<any> {
58
60
  type: "color";
59
61
  }
62
+ export interface VelcronColorSchemaPropertyEditor extends VelcronPropertyEditor<any> {
63
+ type: "color-schema-type";
64
+ }
60
65
  export interface VelcronIconPropertyEditor extends VelcronPropertyEditor<any> {
61
66
  type: "icon";
62
67
  }
@@ -67,10 +72,12 @@ export interface VelcronImagePropertyEditor extends VelcronPropertyEditor<any> {
67
72
  type: "image";
68
73
  }
69
74
  export interface VelcronContentState {
70
- caption: string;
71
- main: string;
75
+ content: {
76
+ caption?: string;
77
+ main?: string;
78
+ };
72
79
  }
73
80
  export interface VelcronImageState {
74
- url: string;
75
- ratio: VelcronImageRatios;
81
+ url?: string;
82
+ ratio?: VelcronImageRatios;
76
83
  }
@@ -12,4 +12,5 @@ var BuiltInPropertyEditorTypes;
12
12
  BuiltInPropertyEditorTypes["icon"] = "icon";
13
13
  BuiltInPropertyEditorTypes["image"] = "image";
14
14
  BuiltInPropertyEditorTypes["typography"] = "typography";
15
+ BuiltInPropertyEditorTypes["color-schema-type"] = "color-schema-type";
15
16
  })(BuiltInPropertyEditorTypes = exports.BuiltInPropertyEditorTypes || (exports.BuiltInPropertyEditorTypes = {}));
@@ -96,7 +96,7 @@ export declare const VerticalAlignmentDefinitions: readonly ["top", "center", "b
96
96
  export type OVerticalAlignments = typeof VerticalAlignmentDefinitions[number];
97
97
  export declare const VerticalAlignmentsName = "OVerticalAlignments";
98
98
  /** Select */
99
- export declare const SelectTypeDefinitions: readonly ["default", "add", "picker"];
99
+ export declare const SelectTypeDefinitions: readonly ["default", "add", "picker", "combobox"];
100
100
  export type SelectTypes = typeof SelectTypeDefinitions[number];
101
101
  export declare const SelectTypesName = "SelectTypes";
102
102
  /** Tabs */
@@ -73,7 +73,7 @@ exports.HorizontalAlignmentsName = "OHorizontalAlignments";
73
73
  exports.VerticalAlignmentDefinitions = ["top", "center", "bottom"];
74
74
  exports.VerticalAlignmentsName = "OVerticalAlignments";
75
75
  /** Select */
76
- exports.SelectTypeDefinitions = ["default", "add", "picker"];
76
+ exports.SelectTypeDefinitions = ["default", "add", "picker", "combobox"];
77
77
  exports.SelectTypesName = "SelectTypes";
78
78
  /** Tabs */
79
79
  exports.ScrollOffsetTypeDefinitions = ["dialog", "drawer"];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx-models",
3
3
  "license": "MIT",
4
- "version": "8.0.88-vnext",
4
+ "version": "8.0.90-vnext",
5
5
  "description": "Provide Omnia Fx Models Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"