@omnia/fx-models 8.0.88-vnext → 8.0.91-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.
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +8 -2
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.js +1 -1
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +22 -15
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.js +1 -0
- package/oxide/OxideTypeDefinitions.d.ts +1 -1
- package/oxide/OxideTypeDefinitions.js +1 -1
- package/package.json +1 -1
- package/ux/ThemingApi.d.ts +19 -0
- package/ux/ThemingApi.js +2 -0
- package/ux/VelcronDefinitionApi.d.ts +24 -0
- package/ux/VelcronDefinitionApi.js +2 -0
- package/ux/index.d.ts +2 -0
- package/ux/index.js +2 -0
@@ -7,7 +7,7 @@ import { useVelcronBlueprintStore } from "../stores/VelcronBlueprint";
|
|
7
7
|
export interface ResolvedComponentRenderer {
|
8
8
|
component: unknown;
|
9
9
|
definition: VelcronDefinition;
|
10
|
-
customComponent
|
10
|
+
customComponent?: boolean;
|
11
11
|
}
|
12
12
|
export interface BuiltInComponentRenderers {
|
13
13
|
"view": unknown;
|
@@ -23,6 +23,7 @@ export interface BuiltInComponentRenderers {
|
|
23
23
|
"icon": unknown;
|
24
24
|
"chip": unknown;
|
25
25
|
"markdown": unknown;
|
26
|
+
"slot": unknown;
|
26
27
|
}
|
27
28
|
export interface ColorSchemaReference {
|
28
29
|
name: string;
|
@@ -215,7 +216,7 @@ export interface VelcronTextDefinition extends VelcronDefinitionWithEditMode, Ve
|
|
215
216
|
}
|
216
217
|
export declare enum VelcronImageRatios {
|
217
218
|
square = "square",
|
218
|
-
landscape = "
|
219
|
+
landscape = "landscape"
|
219
220
|
}
|
220
221
|
export interface VelcronImageDefinition extends VelcronDefinition {
|
221
222
|
type: "image";
|
@@ -279,6 +280,11 @@ export interface VelcronChipDefinition extends VelcronDefinition {
|
|
279
280
|
disabled?: boolean;
|
280
281
|
events?: VelcronOnPressEvent;
|
281
282
|
}
|
283
|
+
export interface VelcronSlotDefinition extends VelcronDefinition {
|
284
|
+
type: "slot";
|
285
|
+
bind: string;
|
286
|
+
value: VelcroncomponentArrayType;
|
287
|
+
}
|
282
288
|
export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
|
283
289
|
export type VelcronRenderProps<TDefinition> = {
|
284
290
|
definition: TDefinition;
|
@@ -4,5 +4,5 @@ exports.VelcronImageRatios = void 0;
|
|
4
4
|
var VelcronImageRatios;
|
5
5
|
(function (VelcronImageRatios) {
|
6
6
|
VelcronImageRatios["square"] = "square";
|
7
|
-
VelcronImageRatios["landscape"] = "
|
7
|
+
VelcronImageRatios["landscape"] = "landscape";
|
8
8
|
})(VelcronImageRatios = exports.VelcronImageRatios || (exports.VelcronImageRatios = {}));
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts
CHANGED
@@ -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?: boolean;
|
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
|
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
|
-
|
71
|
-
|
75
|
+
content: {
|
76
|
+
caption?: string;
|
77
|
+
main?: string;
|
78
|
+
};
|
72
79
|
}
|
73
80
|
export interface VelcronImageState {
|
74
|
-
url
|
75
|
-
ratio
|
81
|
+
url?: string;
|
82
|
+
ratio?: VelcronImageRatios;
|
76
83
|
}
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.js
CHANGED
@@ -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
@@ -0,0 +1,19 @@
|
|
1
|
+
import { ThemeDefinitionV2 } from "@omnia/fx-models";
|
2
|
+
import { ApiPath } from "../Extends";
|
3
|
+
export interface IThemeRegistrationApiHandler {
|
4
|
+
getAll(): any;
|
5
|
+
register(definitions: ThemeDefinitionV2 | ThemeDefinitionV2[]): any;
|
6
|
+
}
|
7
|
+
export interface IThemeRegistrationApi {
|
8
|
+
registration: Promise<IThemeRegistrationApiHandler>;
|
9
|
+
}
|
10
|
+
declare module "./UxApi" {
|
11
|
+
interface IOmniaUxApi {
|
12
|
+
theming: IThemeRegistrationApi;
|
13
|
+
}
|
14
|
+
interface IOmniaUxExtendApiManifest {
|
15
|
+
theming: {
|
16
|
+
registration: ApiPath;
|
17
|
+
};
|
18
|
+
}
|
19
|
+
}
|
package/ux/ThemingApi.js
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
import { VelcronDefinitionRegistration } from "@omnia/fx-models";
|
2
|
+
import { ApiPath } from "../Extends";
|
3
|
+
export interface IVelcronDefinitionRegistrationHandler {
|
4
|
+
getAll(): any;
|
5
|
+
register(definitions: VelcronDefinitionRegistration | VelcronDefinitionRegistration[]): any;
|
6
|
+
}
|
7
|
+
export interface IVelcronDefinitionRegistration {
|
8
|
+
registration: Promise<IVelcronDefinitionRegistrationHandler>;
|
9
|
+
}
|
10
|
+
export interface IVelcronRegistrationApi {
|
11
|
+
definitions: IVelcronDefinitionRegistration;
|
12
|
+
}
|
13
|
+
declare module "./UxApi" {
|
14
|
+
interface IOmniaUxApi {
|
15
|
+
velcron: IVelcronRegistrationApi;
|
16
|
+
}
|
17
|
+
interface IOmniaUxExtendApiManifest {
|
18
|
+
velcron: {
|
19
|
+
definitions: {
|
20
|
+
registration: ApiPath;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
}
|
24
|
+
}
|
package/ux/index.d.ts
CHANGED
package/ux/index.js
CHANGED
@@ -18,3 +18,5 @@ tslib_1.__exportStar(require("./LinkHandlerApi"), exports);
|
|
18
18
|
tslib_1.__exportStar(require("./FeatureManagementApi"), exports);
|
19
19
|
tslib_1.__exportStar(require("./FeatureValidatorBase"), exports);
|
20
20
|
tslib_1.__exportStar(require("./SidePanelApi"), exports);
|
21
|
+
tslib_1.__exportStar(require("./VelcronDefinitionApi"), exports);
|
22
|
+
tslib_1.__exportStar(require("./ThemingApi"), exports);
|