@omnia/velcron 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/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/models/VelcronDefinitions.d.ts +5 -5
- package/models/VelcronPropertyEditorDefinitions.d.ts +3 -3
- package/package.json +1 -1
- package/parser/VelcronConstants.d.ts +1 -1
- package/parser/VelcronConstants.js +1 -1
- package/templatebuilder/VelcronEditorBuilder.d.ts +1 -1
- package/templatebuilder/VelcronEditorBuilder.js +2 -2
- package/templatebuilder/old/editor/VelcronContentEditor.js +1 -1
|
@@ -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;
|
|
@@ -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
|
@@ -7,7 +7,7 @@ export declare class VelcronEditorBuilder {
|
|
|
7
7
|
spacingEditor: (name: string, stateMapping: string, individualSelection?: boolean) => VelcronEditorBuilder;
|
|
8
8
|
imageEditor: (name: string, stateMapping: string) => VelcronEditorBuilder;
|
|
9
9
|
colorSchemaEditor: (name: string, stateMapping: string) => VelcronEditorBuilder;
|
|
10
|
-
|
|
10
|
+
flow: (name: string, stateMapping: string, placeholder?: string) => VelcronEditorBuilder;
|
|
11
11
|
textEditor: (name: string, stateMapping: string, typographyType: TypographyType, placeholder?: string) => VelcronEditorBuilder;
|
|
12
12
|
blockHeaderEditor: () => VelcronEditorBuilder;
|
|
13
13
|
typographyEditor: (stateMapping: string, settings: VelcronTypographyEditorSettings) => VelcronEditorBuilder;
|
|
@@ -54,10 +54,10 @@ class VelcronEditorBuilder {
|
|
|
54
54
|
});
|
|
55
55
|
return this;
|
|
56
56
|
},
|
|
57
|
-
|
|
57
|
+
flow: (name, stateMapping, placeholder) => {
|
|
58
58
|
this.editors.push({
|
|
59
59
|
name: name,
|
|
60
|
-
type: "
|
|
60
|
+
type: "flow",
|
|
61
61
|
state: this.formatStateMapping(stateMapping),
|
|
62
62
|
settings: {
|
|
63
63
|
placeholder: placeholder
|