@omnia/fx-models 8.0.264-dev → 8.0.266-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 +4 -1
- package/Constants.js +4 -1
- package/Exposes.d.ts +1 -1
- package/Exposes.js +1 -1
- package/ScopedPermissionRegistraion.d.ts +3 -4
- package/{markdown/MarkdownActionRegistration.d.ts → floweditor/FlowEditorActionRegistration.d.ts} +1 -1
- package/{markdown/MarkdownPluginRegistration.d.ts → floweditor/FlowEditorPluginRegistration.d.ts} +2 -1
- package/{markdown/MarkdownPluginSettings.d.ts → floweditor/FlowEditorPluginSettings.d.ts} +1 -1
- package/floweditor/index.d.ts +3 -0
- package/floweditor/index.js +6 -0
- package/internal-do-not-import-from-here/shared/models/theming/Blueprints.d.ts +2 -2
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.d.ts +6 -1
- package/internal-do-not-import-from-here/shared/models/velcron/VelcronReference.js +5 -0
- package/internal-do-not-import-from-here/velcron/core/models/VelcronDefinitions.d.ts +5 -5
- package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts +3 -3
- package/package.json +1 -1
- package/ux/FlowEditorApi.d.ts +24 -0
- package/ux/VelcronDefinitionApi.d.ts +25 -8
- package/ux/index.d.ts +1 -1
- package/ux/index.js +1 -1
- package/velcron/VelcronDefinitionRegistration.d.ts +4 -2
- package/markdown/index.d.ts +0 -3
- package/markdown/index.js +0 -6
- package/ux/MarkdownApi.d.ts +0 -24
- /package/{markdown/MarkdownActionRegistration.js → floweditor/FlowEditorActionRegistration.js} +0 -0
- /package/{markdown/MarkdownPluginRegistration.js → floweditor/FlowEditorPluginRegistration.js} +0 -0
- /package/{markdown/MarkdownPluginSettings.js → floweditor/FlowEditorPluginSettings.js} +0 -0
- /package/ux/{MarkdownApi.js → FlowEditorApi.js} +0 -0
package/Constants.d.ts
CHANGED
@@ -16,9 +16,10 @@ export declare const Constants: {
|
|
16
16
|
like: ActionHandlerRegistrationId;
|
17
17
|
};
|
18
18
|
components: {
|
19
|
-
|
19
|
+
flow: {
|
20
20
|
plugins: {
|
21
21
|
text: guid;
|
22
|
+
element: guid;
|
22
23
|
bold: guid;
|
23
24
|
italic: guid;
|
24
25
|
color: guid;
|
@@ -26,6 +27,8 @@ export declare const Constants: {
|
|
26
27
|
velcron: guid;
|
27
28
|
source: guid;
|
28
29
|
testdata: guid;
|
30
|
+
keyboardEvents: guid;
|
31
|
+
editorEvents: guid;
|
29
32
|
};
|
30
33
|
};
|
31
34
|
filterEngine: {
|
package/Constants.js
CHANGED
@@ -21,9 +21,10 @@ exports.Constants = {
|
|
21
21
|
like: ActionHandler_1.ActionHandlerRegistrationId.create((0, models_1.guid)("d838c061-1ef4-49cb-8d6d-cee8f67bd17f")),
|
22
22
|
},
|
23
23
|
components: {
|
24
|
-
|
24
|
+
flow: {
|
25
25
|
plugins: {
|
26
26
|
text: (0, models_1.guid)("a9edb1ed-9e97-4c1b-a3ec-9f66d1a97ff9"),
|
27
|
+
element: (0, models_1.guid)("32d51673-2a5a-4159-83c4-2c7960da8856"),
|
27
28
|
bold: (0, models_1.guid)("678ed68f-db27-444a-bc06-f86f8e6c86dc"),
|
28
29
|
italic: (0, models_1.guid)("4d6a3d2b-41c1-484a-ad4d-fe566c8be86e"),
|
29
30
|
color: (0, models_1.guid)("5b6dd221-0d30-4405-95c3-ca637f69d8ca"),
|
@@ -31,6 +32,8 @@ exports.Constants = {
|
|
31
32
|
velcron: (0, models_1.guid)("7c254dea-a4fc-486c-9189-618663e657a2"),
|
32
33
|
source: (0, models_1.guid)("9a0e6adc-5102-4628-ab10-e97391a77668"),
|
33
34
|
testdata: (0, models_1.guid)("ff9021ea-9a0f-424a-8c38-ae56849013cc"),
|
35
|
+
keyboardEvents: (0, models_1.guid)("97fd7ca7-2c64-473e-b327-5225aeabe54f"),
|
36
|
+
editorEvents: (0, models_1.guid)("6ad1cfa0-7ca1-430e-b381-f3a9a62dad51"),
|
34
37
|
}
|
35
38
|
},
|
36
39
|
filterEngine: {
|
package/Exposes.d.ts
CHANGED
@@ -138,7 +138,7 @@ export * from "./statuscodelayout";
|
|
138
138
|
export * from "./system-logs";
|
139
139
|
export * from "./ux";
|
140
140
|
export * from "./velcron";
|
141
|
-
export * from "./
|
141
|
+
export * from "./floweditor";
|
142
142
|
export * from "./versionedlayout";
|
143
143
|
export * from "./ScopedPermissionRegistraion";
|
144
144
|
export * from "./action-btn";
|
package/Exposes.js
CHANGED
@@ -150,7 +150,7 @@ tslib_1.__exportStar(require("./statuscodelayout"), exports);
|
|
150
150
|
tslib_1.__exportStar(require("./system-logs"), exports);
|
151
151
|
tslib_1.__exportStar(require("./ux"), exports);
|
152
152
|
tslib_1.__exportStar(require("./velcron"), exports);
|
153
|
-
tslib_1.__exportStar(require("./
|
153
|
+
tslib_1.__exportStar(require("./floweditor"), exports);
|
154
154
|
tslib_1.__exportStar(require("./versionedlayout"), exports);
|
155
155
|
tslib_1.__exportStar(require("./ScopedPermissionRegistraion"), exports);
|
156
156
|
tslib_1.__exportStar(require("./action-btn"), exports);
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import { PermissionInputSettings,
|
2
|
-
import { IPermissionInputApi } from "../ux";
|
1
|
+
import { PermissionInputSettings, guid } from "@omnia/fx-models";
|
3
2
|
export interface ScopedPermissionRegistraion {
|
4
3
|
title: string;
|
5
4
|
permissionInputSettings: PermissionInputSettings | any;
|
6
5
|
serviceId?: guid;
|
7
|
-
onValueUpdate?: (rolePermisssionSetting: Array<RolePermissionSetting>) => Promise<void>;
|
8
6
|
type?: TypePermission;
|
9
|
-
|
7
|
+
onSave?: () => Promise<boolean>;
|
8
|
+
elementToRender?: () => JSX.Element;
|
10
9
|
}
|
11
10
|
export declare enum TypePermission {
|
12
11
|
ProfileAdmin = 0,
|
package/{markdown/MarkdownActionRegistration.d.ts → floweditor/FlowEditorActionRegistration.d.ts}
RENAMED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { FontAwesomeIcon } from "@omnia/fx-models";
|
2
2
|
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
3
|
-
export interface
|
3
|
+
export interface FlowEditorActionRegistration {
|
4
4
|
id: guid;
|
5
5
|
icon: FontAwesomeIcon;
|
6
6
|
altText?: string;
|
package/{markdown/MarkdownPluginRegistration.d.ts → floweditor/FlowEditorPluginRegistration.d.ts}
RENAMED
@@ -1,8 +1,9 @@
|
|
1
1
|
import { guid } from "@omnia/fx-models/internal-do-not-import-from-here/shared/models";
|
2
|
-
export interface
|
2
|
+
export interface FlowEditorPluginRegistration {
|
3
3
|
id: guid;
|
4
4
|
text: string;
|
5
5
|
altText?: string;
|
6
6
|
hidden?: boolean;
|
7
|
+
mandatory?: boolean;
|
7
8
|
plugin: (settings: any) => any;
|
8
9
|
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
"use strict";
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
const tslib_1 = require("tslib");
|
4
|
+
tslib_1.__exportStar(require("./FlowEditorActionRegistration"), exports);
|
5
|
+
tslib_1.__exportStar(require("./FlowEditorPluginRegistration"), exports);
|
6
|
+
tslib_1.__exportStar(require("./FlowEditorPluginSettings"), exports);
|
@@ -4,7 +4,7 @@ import { TypographyFontDefinition, TypographyValue } from "./Typography";
|
|
4
4
|
export interface BoxDimensions extends Spacing {
|
5
5
|
}
|
6
6
|
import { TypographyBlueprint } from "./Typography";
|
7
|
-
import { guid, VelcronAppDefinition,
|
7
|
+
import { guid, VelcronAppDefinition, VelcronRendererResolverReference } from "@omnia/fx-models";
|
8
8
|
export interface Blueprints {
|
9
9
|
name?: string;
|
10
10
|
}
|
@@ -94,7 +94,7 @@ export interface ButtonBlueprint extends Blueprint {
|
|
94
94
|
alterCase?: boolean;
|
95
95
|
text?: TextBlueprint;
|
96
96
|
icon?: IconBlueprint;
|
97
|
-
viewTemplate?:
|
97
|
+
viewTemplate?: VelcronRendererResolverReference;
|
98
98
|
}
|
99
99
|
export interface ButtonBlueprints extends Blueprints {
|
100
100
|
text: {
|
@@ -1,12 +1,17 @@
|
|
1
|
+
import { DynamicState } from "../DynamicState";
|
1
2
|
import { guid } from "../Guid";
|
2
3
|
import { Id } from "../Id";
|
3
4
|
import { VelcronAppDefinition } from "./VelcronDefinition";
|
4
5
|
export type VelcronRendererId = Id<guid, "VelcronRendererId">;
|
5
6
|
export declare function VelcronRendererId(id: guid): VelcronRendererId;
|
7
|
+
export type VelcronResolverId = Id<guid, "VelcronResolverId">;
|
8
|
+
export declare function VelcronResolverId(id: guid): VelcronResolverId;
|
9
|
+
export declare const storageBasedVelcronResolverId: VelcronResolverId;
|
6
10
|
export interface VelcronRendererResolverReference {
|
7
11
|
id: VelcronRendererId;
|
8
|
-
resolver:
|
12
|
+
resolver: VelcronResolverId;
|
9
13
|
version: string;
|
14
|
+
state?: DynamicState;
|
10
15
|
}
|
11
16
|
export interface VelcronRendererReference {
|
12
17
|
id: VelcronRendererId;
|
@@ -1,4 +1,9 @@
|
|
1
1
|
"use strict";
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
+
exports.storageBasedVelcronResolverId = void 0;
|
3
4
|
exports.VelcronRendererId = VelcronRendererId;
|
5
|
+
exports.VelcronResolverId = VelcronResolverId;
|
6
|
+
const Guid_1 = require("../Guid");
|
4
7
|
function VelcronRendererId(id) { return id; }
|
8
|
+
function VelcronResolverId(id) { return id; }
|
9
|
+
exports.storageBasedVelcronResolverId = VelcronResolverId((0, Guid_1.guid)("11111111-1111-0000-1111-111111111111"));
|
@@ -4,6 +4,7 @@ import { AssignOperators, VelcronHorizontalAlignments, VelcronIconTypes, Velcron
|
|
4
4
|
import { DynamicState, VelcronDefinition, VelcronEffects, useVelcronThemingStore } from "..";
|
5
5
|
import { guid, PropertyConfiguration, PropertyValue, PropertyDefinition, PropertySetupBase } from "@omnia/fx/models";
|
6
6
|
import { useVelcronColorSchemaStore } from "../stores/VelcronColorSchema";
|
7
|
+
import { IDataSourcePropertySelection } from "internal/fx/ux/properties/models/PropertyPicker";
|
7
8
|
export interface ResolvedComponentRenderer {
|
8
9
|
component: unknown;
|
9
10
|
definition: VelcronDefinition;
|
@@ -26,7 +27,7 @@ export interface BuiltInComponentRenderers {
|
|
26
27
|
"dialog": unknown;
|
27
28
|
"icon": unknown;
|
28
29
|
"chip": unknown;
|
29
|
-
"
|
30
|
+
"flow": unknown;
|
30
31
|
"slot": unknown;
|
31
32
|
"property": unknown;
|
32
33
|
"checkbox": unknown;
|
@@ -276,8 +277,8 @@ export interface VelcronIconDefinition extends VelcronDefinition, VelcronColorSt
|
|
276
277
|
events?: VelcronOnPressEvent;
|
277
278
|
blueprint?: VelcronBindableProp<IconBlueprint>;
|
278
279
|
}
|
279
|
-
export interface
|
280
|
-
type: "
|
280
|
+
export interface VelcronFlowDefinition extends VelcronDefinition, VelcronColorStyling, VelcronTextStyling {
|
281
|
+
type: "flow";
|
281
282
|
value?: VelcronBindableProp<string>;
|
282
283
|
placeholder?: VelcronBindableProp<string>;
|
283
284
|
events?: VelcronOnUpdatedEvent;
|
@@ -372,8 +373,7 @@ export interface VelcronPropertyDefinitionValue {
|
|
372
373
|
}
|
373
374
|
export interface VelcronPropertyDefinitionValueResolver {
|
374
375
|
name: string;
|
375
|
-
|
376
|
-
path: string;
|
376
|
+
source: IDataSourcePropertySelection;
|
377
377
|
}
|
378
378
|
export type VelcronRenderProps<TDefinition> = {
|
379
379
|
definition: TDefinition;
|
package/internal-do-not-import-from-here/velcron/core/models/VelcronPropertyEditorDefinitions.d.ts
CHANGED
@@ -13,7 +13,7 @@ export interface VelcronSliderPropertyEditorSettings {
|
|
13
13
|
export interface VelcronTypographyEditorSettings {
|
14
14
|
type: "title" | "text";
|
15
15
|
}
|
16
|
-
export interface
|
16
|
+
export interface VelcronFlowEditorSettings {
|
17
17
|
placeholder: string;
|
18
18
|
}
|
19
19
|
export interface VelcronSpacingEditorSettings {
|
@@ -78,8 +78,8 @@ export interface VelcronColorSchemaPropertyEditor extends VelcronEditor<any> {
|
|
78
78
|
export interface VelcronIconPropertyEditor extends VelcronEditor<any> {
|
79
79
|
type: "icon";
|
80
80
|
}
|
81
|
-
export interface
|
82
|
-
type: "
|
81
|
+
export interface VelcronFlowPropertyEditor extends VelcronEditor<VelcronFlowEditorSettings> {
|
82
|
+
type: "flow";
|
83
83
|
}
|
84
84
|
export interface VelcronImagePropertyEditor extends VelcronEditor<any> {
|
85
85
|
type: "image";
|
package/package.json
CHANGED
@@ -0,0 +1,24 @@
|
|
1
|
+
import { FlowEditorPluginRegistration } from "@omnia/fx-models";
|
2
|
+
import { ApiPath } from "../Extends";
|
3
|
+
export interface IFlowEditorPluginRegistrationHandler {
|
4
|
+
getAll: () => Array<FlowEditorPluginRegistration>;
|
5
|
+
register: (plugins: FlowEditorPluginRegistration | FlowEditorPluginRegistration[]) => void;
|
6
|
+
}
|
7
|
+
export interface IFlowEditorPluginRegistration {
|
8
|
+
registration: Promise<IFlowEditorPluginRegistrationHandler>;
|
9
|
+
}
|
10
|
+
export interface IFlowEditorRegistrationApi {
|
11
|
+
plugins: IFlowEditorPluginRegistration;
|
12
|
+
}
|
13
|
+
declare module "./UxApi" {
|
14
|
+
interface IOmniaUxApi {
|
15
|
+
flow: IFlowEditorRegistrationApi;
|
16
|
+
}
|
17
|
+
interface IOmniaUxExtendApiManifest {
|
18
|
+
flow: {
|
19
|
+
plugins: {
|
20
|
+
registration: ApiPath;
|
21
|
+
};
|
22
|
+
};
|
23
|
+
}
|
24
|
+
}
|
@@ -1,18 +1,32 @@
|
|
1
|
-
import { VelcronDefinitionCategoryRegistration, VelcronDefinitionRegistration, VelcronDefinitionRendererTypeRegistration } from "@omnia/fx-models";
|
2
|
-
import { ApiPath } from "../Extends";
|
3
|
-
export
|
4
|
-
|
5
|
-
|
1
|
+
import { guid, VelcronDefinitionCategoryRegistration, VelcronDefinitionRegistration, VelcronDefinitionRendererTypeRegistration, VelcronAppDefinition, DynamicState, VelcronResolverId } from "@omnia/fx-models";
|
2
|
+
import { ApiPath, IExtendApiManifestWithConfiguration } from "../Extends";
|
3
|
+
export type VelcronTemplateRegistration<TState extends DynamicState> = {
|
4
|
+
id: guid;
|
5
|
+
definition: VelcronAppDefinition<TState>;
|
6
|
+
category?: guid;
|
7
|
+
typeMappingId?: guid;
|
8
|
+
};
|
9
|
+
export interface IVelcronCategoriesRegistrationHandler {
|
6
10
|
registerRendererType: (rendererType: VelcronDefinitionRendererTypeRegistration | VelcronDefinitionRendererTypeRegistration[]) => void;
|
7
11
|
getAllRendererTypes: () => Array<VelcronDefinitionRendererTypeRegistration>;
|
8
12
|
registerCategory: (category: VelcronDefinitionCategoryRegistration | VelcronDefinitionCategoryRegistration[]) => void;
|
9
13
|
getAllCategories: () => Array<VelcronDefinitionCategoryRegistration>;
|
10
14
|
}
|
15
|
+
export interface IVelcronDefinitionRegistrationHandler {
|
16
|
+
register(definitions: VelcronDefinitionRegistration | VelcronDefinitionRegistration[]): void;
|
17
|
+
getByResolver(resolverId: VelcronResolverId): Promise<Array<VelcronDefinitionRegistration>>;
|
18
|
+
getAll(): Promise<Array<VelcronDefinitionRegistration>>;
|
19
|
+
}
|
11
20
|
export interface IVelcronDefinitionRegistration {
|
12
|
-
|
21
|
+
registrations: Promise<IVelcronCategoriesRegistrationHandler>;
|
13
22
|
}
|
14
23
|
export interface IVelcronRegistrationApi {
|
15
|
-
|
24
|
+
categories: {
|
25
|
+
registrations: Promise<IVelcronCategoriesRegistrationHandler>;
|
26
|
+
};
|
27
|
+
definitions: {
|
28
|
+
registrations: Promise<IVelcronDefinitionRegistrationHandler>;
|
29
|
+
};
|
16
30
|
}
|
17
31
|
declare module "./UxApi" {
|
18
32
|
interface IOmniaUxApi {
|
@@ -20,8 +34,11 @@ declare module "./UxApi" {
|
|
20
34
|
}
|
21
35
|
interface IOmniaUxExtendApiManifest {
|
22
36
|
velcron: {
|
37
|
+
categories: {
|
38
|
+
registrations: ApiPath;
|
39
|
+
};
|
23
40
|
definitions: {
|
24
|
-
|
41
|
+
registrations: IExtendApiManifestWithConfiguration<guid>;
|
25
42
|
};
|
26
43
|
};
|
27
44
|
}
|
package/ux/index.d.ts
CHANGED
@@ -22,6 +22,6 @@ export * from "./MediaGalleryApi";
|
|
22
22
|
export * from "./DynamicPlaceholderApi";
|
23
23
|
export * from "./RouterApi";
|
24
24
|
export * from "./ScopedPermissionApi";
|
25
|
-
export * from "./
|
25
|
+
export * from "./FlowEditorApi";
|
26
26
|
export * from "./FontApi";
|
27
27
|
export { type Directives, type DirectiveDefinition, type IInternalDirectiveRegistration } from "./Directive";
|
package/ux/index.js
CHANGED
@@ -25,5 +25,5 @@ tslib_1.__exportStar(require("./MediaGalleryApi"), exports);
|
|
25
25
|
tslib_1.__exportStar(require("./DynamicPlaceholderApi"), exports);
|
26
26
|
tslib_1.__exportStar(require("./RouterApi"), exports);
|
27
27
|
tslib_1.__exportStar(require("./ScopedPermissionApi"), exports);
|
28
|
-
tslib_1.__exportStar(require("./
|
28
|
+
tslib_1.__exportStar(require("./FlowEditorApi"), exports);
|
29
29
|
tslib_1.__exportStar(require("./FontApi"), exports);
|
@@ -1,12 +1,14 @@
|
|
1
1
|
import { DynamicState, guid, VelcronAppDefinition } from "..";
|
2
2
|
export type VelcronDefitinionRegistrationsTypes = "content" | "card" | "header" | "general" | "property" | "block-header" | "social" | "spacing";
|
3
|
+
export type VelcronDefinitionRegistrationWithoutApp = Omit<VelcronDefinitionRegistration, "definition">;
|
3
4
|
export interface VelcronDefinitionRegistration<TDefinitionState extends DynamicState = DynamicState> {
|
4
5
|
id: guid;
|
5
6
|
definition: VelcronAppDefinition<TDefinitionState>;
|
6
7
|
title: string;
|
7
|
-
categories
|
8
|
-
rendererTypes
|
8
|
+
categories: Array<guid>;
|
9
|
+
rendererTypes: Array<guid>;
|
9
10
|
builtIn?: boolean;
|
11
|
+
reference?: boolean;
|
10
12
|
}
|
11
13
|
export interface VelcronDefinitionRendererTypeRegistration {
|
12
14
|
id: guid;
|
package/markdown/index.d.ts
DELETED
package/markdown/index.js
DELETED
@@ -1,6 +0,0 @@
|
|
1
|
-
"use strict";
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
3
|
-
const tslib_1 = require("tslib");
|
4
|
-
tslib_1.__exportStar(require("./MarkdownActionRegistration"), exports);
|
5
|
-
tslib_1.__exportStar(require("./MarkdownPluginRegistration"), exports);
|
6
|
-
tslib_1.__exportStar(require("./MarkdownPluginSettings"), exports);
|
package/ux/MarkdownApi.d.ts
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
import { MarkdownPluginRegistration } from "@omnia/fx-models";
|
2
|
-
import { ApiPath } from "../Extends";
|
3
|
-
export interface IMarkdownPluginRegistrationHandler {
|
4
|
-
getAll: () => Array<MarkdownPluginRegistration>;
|
5
|
-
register: (plugins: MarkdownPluginRegistration | MarkdownPluginRegistration[]) => void;
|
6
|
-
}
|
7
|
-
export interface IMarkdownPluginRegistration {
|
8
|
-
registration: Promise<IMarkdownPluginRegistrationHandler>;
|
9
|
-
}
|
10
|
-
export interface IMarkdownRegistrationApi {
|
11
|
-
plugins: IMarkdownPluginRegistration;
|
12
|
-
}
|
13
|
-
declare module "./UxApi" {
|
14
|
-
interface IOmniaUxApi {
|
15
|
-
markdown: IMarkdownRegistrationApi;
|
16
|
-
}
|
17
|
-
interface IOmniaUxExtendApiManifest {
|
18
|
-
markdown: {
|
19
|
-
plugins: {
|
20
|
-
registration: ApiPath;
|
21
|
-
};
|
22
|
-
};
|
23
|
-
}
|
24
|
-
}
|
/package/{markdown/MarkdownActionRegistration.js → floweditor/FlowEditorActionRegistration.js}
RENAMED
File without changes
|
/package/{markdown/MarkdownPluginRegistration.js → floweditor/FlowEditorPluginRegistration.js}
RENAMED
File without changes
|
File without changes
|
File without changes
|