@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.
@@ -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, VelcronRendererReference } from "@omnia/fx-models";
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?: VelcronRendererReference;
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: string;
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
- "markdown": unknown;
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 VelcronMarkdownDefinition extends VelcronDefinition, VelcronColorStyling, VelcronTextStyling {
280
- type: "markdown";
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
- provider: string;
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 VelcronMarkdownEditorSettings {
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 VelcronMarkdownPropertyEditor extends VelcronEditor<VelcronMarkdownEditorSettings> {
82
- type: "markdown";
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.264-dev",
4
+ "version": "8.0.266-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -16,7 +16,7 @@ export declare const VelcronConstants: {
16
16
  dialog: string;
17
17
  icon: string;
18
18
  chip: string;
19
- markdown: string;
19
+ flow: string;
20
20
  slot: string;
21
21
  property: string;
22
22
  checkbox: string;
@@ -19,7 +19,7 @@ exports.VelcronConstants = {
19
19
  dialog: "dialog",
20
20
  icon: "icon",
21
21
  chip: "chip",
22
- markdown: "markdown",
22
+ flow: "flow",
23
23
  slot: "slot",
24
24
  property: "property",
25
25
  checkbox: "checkbox",
@@ -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
- markdownEditor: (name: string, stateMapping: string, placeholder?: string) => VelcronEditorBuilder;
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
- markdownEditor: (name, stateMapping, placeholder) => {
57
+ flow: (name, stateMapping, placeholder) => {
58
58
  this.editors.push({
59
59
  name: name,
60
- type: "markdown",
60
+ type: "flow",
61
61
  state: this.formatStateMapping(stateMapping),
62
62
  settings: {
63
63
  placeholder: placeholder
@@ -22,7 +22,7 @@ class VelcronContentEditorBuilder extends VelcronEditorBuilderBase_1.VelcronEdit
22
22
  if (!this.mainEditor) {
23
23
  this.mainEditor = {
24
24
  name: "Body",
25
- type: "markdown",
25
+ type: "flow",
26
26
  state: "content.main.text"
27
27
  };
28
28
  }