@omnia/velcron 8.0.151-dev → 8.0.152-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.
@@ -1,4 +1,4 @@
1
- import { BackgroundDefinition, BlueprintsReference, ColorSchemaType, ColorValue, FillDefinition } from "./ThemeDefinitionV2";
1
+ import { BackgroundDefinition, BlueprintsReference, ColorSchemaType, ColorValue, FillDefinition, FillDefinitionValue } from "./ThemeDefinitionV2";
2
2
  import { SpacingDefinition, Spacing } from "./Spacing";
3
3
  import { TypographyValue } from "./Typography";
4
4
  export interface BoxDimensions extends Spacing {
@@ -130,7 +130,7 @@ export interface TabsBlueprint extends Blueprint {
130
130
  };
131
131
  }
132
132
  export interface TextBlueprint extends Blueprint {
133
- color?: FillDefinition;
133
+ color?: FillDefinitionValue;
134
134
  typography?: TypographyValue;
135
135
  }
136
136
  export interface IconBlueprint extends Blueprint {
@@ -135,6 +135,8 @@ export interface FillDefinition {
135
135
  acrylic?: boolean;
136
136
  opacity?: number;
137
137
  }
138
+ export type FillVariant = "variant1" | "variant2" | "variant3";
139
+ export type FillDefinitionValue = FillVariant | FillDefinition | ColorValue;
138
140
  export interface LinearGradientFillDefinition extends FillDefinition {
139
141
  degrees: number;
140
142
  }
@@ -1,4 +1,5 @@
1
1
  import { GuidValue } from "../Guid";
2
+ import { FillDefinition } from "./ThemeDefinitionV2";
2
3
  export interface TypographyBlueprint {
3
4
  name: string;
4
5
  font?: {
@@ -6,25 +7,50 @@ export interface TypographyBlueprint {
6
7
  family: string;
7
8
  cdn?: string;
8
9
  };
10
+ fills?: {
11
+ variant1?: FillDefinition;
12
+ variant2?: FillDefinition;
13
+ variant3?: FillDefinition;
14
+ };
9
15
  title: {
10
16
  xl: TypographyDefinition;
11
17
  l: TypographyDefinition;
12
18
  m: TypographyDefinition;
13
19
  s: TypographyDefinition;
14
20
  xs: TypographyDefinition;
21
+ font?: {
22
+ id: GuidValue;
23
+ family: string;
24
+ cdn?: string;
25
+ };
15
26
  };
16
27
  text: {
17
28
  l: TypographyDefinition;
18
29
  m: TypographyDefinition;
19
30
  s: TypographyDefinition;
20
31
  xs: TypographyDefinition;
32
+ font?: {
33
+ id: GuidValue;
34
+ family: string;
35
+ cdn?: string;
36
+ };
21
37
  };
22
38
  navigation: {
23
39
  l: TypographyDefinition;
24
40
  m: TypographyDefinition;
41
+ font?: {
42
+ id: GuidValue;
43
+ family: string;
44
+ cdn?: string;
45
+ };
25
46
  };
26
47
  link: {
27
48
  m: TypographyDefinition;
49
+ font?: {
50
+ id: GuidValue;
51
+ family: string;
52
+ cdn?: string;
53
+ };
28
54
  };
29
55
  }
30
56
  export interface TypographyDefinition {
@@ -1,3 +1,4 @@
1
+ import { IFontAwesomeIcon } from "@omnia/fx-models";
1
2
  import { DynamicState } from "../DynamicState";
2
3
  import { VelcronEvent, VelcronOnEditModeEvent, VelcronOnLoadEvent, VelcronOnPersistingStateEvent, VelcronOnSavingEvent } from "./VelcronEvents";
3
4
  /**
@@ -57,9 +58,10 @@ export interface VelcronComponentDefinition extends VelcronDefinition {
57
58
  icon?: any;
58
59
  }
59
60
  export type VelcronCustomComponentDefinition = VelcronComponentDefinition;
60
- export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "color-schema-type" | "spacing";
61
- export interface VelcronPropertyEditor<TSettings = any> {
61
+ export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "spacing" | "color-schema-type" | "reference";
62
+ export interface VelcronStateEditor<TSettings = any> {
62
63
  name?: string;
64
+ icon?: IFontAwesomeIcon;
63
65
  category?: string;
64
66
  type: BuiltInPropertyEditorType | string;
65
67
  settings?: TSettings;
@@ -78,7 +80,7 @@ export interface VelcronAppDefinition<TState extends DynamicState = DynamicState
78
80
  [name: string]: Array<string>;
79
81
  };
80
82
  components?: Array<VelcronCustomComponentDefinition>;
81
- propEditors?: Array<VelcronPropertyEditor>;
83
+ editors?: Array<VelcronStateEditor>;
82
84
  state?: TState;
83
85
  computed?: {
84
86
  [name: string]: Array<string>;
@@ -34,6 +34,7 @@ export interface BuiltInComponentRenderers {
34
34
  "radio": unknown;
35
35
  "rive": unknown;
36
36
  "lottie": unknown;
37
+ "slide-panel": unknown;
37
38
  }
38
39
  export interface ColorSchemaReference {
39
40
  name: string;
@@ -248,9 +249,9 @@ export interface VelcronIconDefinition extends VelcronDefinition, VelcronColorSt
248
249
  }
249
250
  export interface VelcronMarkdownDefinition extends VelcronDefinitionWithEditMode, VelcronColorStyling, VelcronTextStyling {
250
251
  type: "markdown";
251
- value: VelcronBindableProp<string>;
252
- placeholder: VelcronBindableProp<string>;
253
- events: VelcronOnUpdatedEvent;
252
+ value?: VelcronBindableProp<string>;
253
+ placeholder?: VelcronBindableProp<string>;
254
+ events?: VelcronOnUpdatedEvent;
254
255
  }
255
256
  export interface VelcronRiveDefinition extends VelcronDefinition {
256
257
  type: "rive";
@@ -270,6 +271,17 @@ export interface VelcronLottieDefinition extends VelcronDefinition {
270
271
  direction?: VelcronBindableProp<"normal" | "reverse">;
271
272
  hover?: VelcronBindableProp<boolean>;
272
273
  }
274
+ export interface VelcronSlidePanelDefinition extends VelcronDefinition {
275
+ type: "slide-panel";
276
+ slidesPerView?: VelcronBindableProp<number>;
277
+ pagination?: VelcronBindableProp<boolean>;
278
+ navigation?: VelcronBindableProp<boolean>;
279
+ scrollbar?: VelcronBindableProp<boolean>;
280
+ autoplay?: VelcronBindableProp<boolean>;
281
+ loop?: VelcronBindableProp<boolean>;
282
+ style?: VelcronCardStyling;
283
+ events?: VelcronOnPressEvent;
284
+ }
273
285
  export interface VelcronDimensions {
274
286
  top: number | string;
275
287
  right: number | string;
@@ -1,34 +1,10 @@
1
- import { TypographySize, TypographyType, VelcronImageRatios, VelcronPropertyEditor, VelcronSpacing } from "@omnia/fx-models";
1
+ import { TypographySize, TypographyType, VelcronImageRatios, VelcronStateEditor, VelcronSpacing, BuiltInPropertyEditorType } from "@omnia/fx-models";
2
2
  export interface ResolvedPropertyEditor {
3
- editor: VelcronPropertyEditor;
4
- }
5
- export interface BuiltInPropertyEditors {
6
- text: unknown;
7
- slider: unknown;
8
- switch: unknown;
9
- alignment: unknown;
10
- color: unknown;
11
- markdown: unknown;
12
- icon: unknown;
13
- image: unknown;
14
- typography: unknown;
15
- spacing: unknown;
16
- "color-schema-type": unknown;
17
- reference: unknown;
18
- }
19
- export declare enum BuiltInPropertyEditorTypes {
20
- text = "text",
21
- slider = "slider",
22
- switch = "switch",
23
- alignment = "alignment",
24
- color = "color",
25
- markdown = "markdown",
26
- icon = "icon",
27
- image = "image",
28
- typography = "typography",
29
- spacing = "spacing",
30
- "color-schema-type" = "color-schema-type"
3
+ editor: VelcronStateEditor;
31
4
  }
5
+ export type BuiltInPropertyEditorMap = {
6
+ [key in BuiltInPropertyEditorType]: unknown;
7
+ };
32
8
  export interface VelcronSliderPropertyEditorSettings {
33
9
  min: number;
34
10
  max: number;
@@ -47,43 +23,43 @@ export interface VelcronTextEditorSettings {
47
23
  type: TypographyType;
48
24
  placeholder: string;
49
25
  }
50
- export interface VelcronSliderPropertyEditor extends VelcronPropertyEditor<VelcronSliderPropertyEditorSettings> {
26
+ export interface VelcronSliderPropertyEditor extends VelcronStateEditor<VelcronSliderPropertyEditorSettings> {
51
27
  type: "slider";
52
28
  }
53
- export interface VelcronTextPropertyEditor extends VelcronPropertyEditor<VelcronTextEditorSettings> {
29
+ export interface VelcronTextPropertyEditor extends VelcronStateEditor<VelcronTextEditorSettings> {
54
30
  type: "text";
55
31
  }
56
- export interface VelcronEnterprisePropertyEditor extends VelcronPropertyEditor<any> {
32
+ export interface VelcronEnterprisePropertyEditor extends VelcronStateEditor<any> {
57
33
  type: "enterprise-property";
58
34
  }
59
- export interface VelcronTypographyPropertyEditor extends VelcronPropertyEditor<VelcronTypographyEditorSettings> {
35
+ export interface VelcronTypographyPropertyEditor extends VelcronStateEditor<VelcronTypographyEditorSettings> {
60
36
  type: "typography";
61
37
  }
62
- export interface VelcronSwitchPropertyEditor extends VelcronPropertyEditor<any> {
38
+ export interface VelcronSwitchPropertyEditor extends VelcronStateEditor<any> {
63
39
  type: "switch";
64
40
  }
65
- export interface VelcronAlignmentPropertyEditor extends VelcronPropertyEditor<any> {
41
+ export interface VelcronAlignmentPropertyEditor extends VelcronStateEditor<any> {
66
42
  type: "alignment";
67
43
  }
68
- export interface VelcronColorPropertyEditor extends VelcronPropertyEditor<any> {
44
+ export interface VelcronColorPropertyEditor extends VelcronStateEditor<any> {
69
45
  type: "color";
70
46
  }
71
- export interface VelcronColorSchemaPropertyEditor extends VelcronPropertyEditor<any> {
47
+ export interface VelcronColorSchemaPropertyEditor extends VelcronStateEditor<any> {
72
48
  type: "color-schema-type";
73
49
  }
74
- export interface VelcronIconPropertyEditor extends VelcronPropertyEditor<any> {
50
+ export interface VelcronIconPropertyEditor extends VelcronStateEditor<any> {
75
51
  type: "icon";
76
52
  }
77
- export interface VelcronMarkdownPropertyEditor extends VelcronPropertyEditor<VelcronMarkdownEditorSettings> {
53
+ export interface VelcronMarkdownPropertyEditor extends VelcronStateEditor<VelcronMarkdownEditorSettings> {
78
54
  type: "markdown";
79
55
  }
80
- export interface VelcronImagePropertyEditor extends VelcronPropertyEditor<any> {
56
+ export interface VelcronImagePropertyEditor extends VelcronStateEditor<any> {
81
57
  type: "image";
82
58
  }
83
- export interface VelcronSpacingPropertyEditor extends VelcronPropertyEditor<VelcronSpacingEditorSettings> {
59
+ export interface VelcronSpacingPropertyEditor extends VelcronStateEditor<VelcronSpacingEditorSettings> {
84
60
  type: "spacing";
85
61
  }
86
- export interface VelcronReferencePropertyEditor extends VelcronPropertyEditor<any> {
62
+ export interface VelcronReferencePropertyEditor extends VelcronStateEditor<any> {
87
63
  type: "reference";
88
64
  }
89
65
  export interface VelcronState {
@@ -1,21 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VelcronStateBinding = exports.VelcronSpacingStateBinding = exports.VelcronColorSchemasStateBinding = exports.VelcronContentStateBinding = exports.VelcronHeaderStateBinding = exports.VelcronImagesStateBinding = exports.BuiltInPropertyEditorTypes = void 0;
4
- // export type BuiltInPropertyEditorType = "text" | "slider" | "switch" | "alignment" | "color" | "markdown" | "icon" | "image" | "typography" | "color-schema-type" | "spacing" ;
5
- var BuiltInPropertyEditorTypes;
6
- (function (BuiltInPropertyEditorTypes) {
7
- BuiltInPropertyEditorTypes["text"] = "text";
8
- BuiltInPropertyEditorTypes["slider"] = "slider";
9
- BuiltInPropertyEditorTypes["switch"] = "switch";
10
- BuiltInPropertyEditorTypes["alignment"] = "alignment";
11
- BuiltInPropertyEditorTypes["color"] = "color";
12
- BuiltInPropertyEditorTypes["markdown"] = "markdown";
13
- BuiltInPropertyEditorTypes["icon"] = "icon";
14
- BuiltInPropertyEditorTypes["image"] = "image";
15
- BuiltInPropertyEditorTypes["typography"] = "typography";
16
- BuiltInPropertyEditorTypes["spacing"] = "spacing";
17
- BuiltInPropertyEditorTypes["color-schema-type"] = "color-schema-type";
18
- })(BuiltInPropertyEditorTypes || (exports.BuiltInPropertyEditorTypes = BuiltInPropertyEditorTypes = {}));
3
+ exports.VelcronStateBinding = exports.VelcronSpacingStateBinding = exports.VelcronColorSchemasStateBinding = exports.VelcronContentStateBinding = exports.VelcronHeaderStateBinding = exports.VelcronImagesStateBinding = void 0;
4
+ const builtInPropertyEditors = {
5
+ text: undefined,
6
+ slider: undefined,
7
+ switch: undefined,
8
+ alignment: undefined,
9
+ color: undefined,
10
+ markdown: undefined,
11
+ icon: undefined,
12
+ image: undefined,
13
+ typography: undefined,
14
+ spacing: undefined,
15
+ "color-schema-type": undefined,
16
+ reference: undefined,
17
+ };
19
18
  exports.VelcronImagesStateBinding = {
20
19
  main: {
21
20
  editor: "{{images.main.url}}",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.151-dev",
4
+ "version": "8.0.152-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -23,6 +23,7 @@ export declare const VelcronConstants: {
23
23
  reference: string;
24
24
  rive: string;
25
25
  lottie: string;
26
+ "slide-panel": string;
26
27
  };
27
28
  events: {
28
29
  idTokenStart: string;
@@ -25,7 +25,8 @@ exports.VelcronConstants = {
25
25
  checkbox: "checkbox",
26
26
  reference: "reference",
27
27
  rive: "rive",
28
- lottie: "lottie"
28
+ lottie: "lottie",
29
+ "slide-panel": "slide-panel",
29
30
  },
30
31
  events: {
31
32
  idTokenStart: "$ev{",
@@ -1,9 +1,9 @@
1
- import { BuiltInPropertyEditors, ResolvedPropertyEditor } from "../models";
1
+ import { BuiltInPropertyEditorMap, ResolvedPropertyEditor } from "../models";
2
2
  export declare class VelcronPropertyEditors {
3
3
  private static editors;
4
4
  static registerEditor(type: string, editor: any): void;
5
5
  static hasEditors(): boolean;
6
6
  static hasEditor(type: string): any;
7
- static registerEditors(editors: BuiltInPropertyEditors): void;
7
+ static registerEditors(editors: BuiltInPropertyEditorMap): void;
8
8
  static getEditor(editor: string): ResolvedPropertyEditor;
9
9
  }
@@ -8,7 +8,7 @@ export declare const useVelcronColorSchemaStore: (newStateWithName?: string) =>
8
8
  onContainer: ColorDefinition;
9
9
  isContainer: boolean;
10
10
  name: string;
11
- colorSchemaType: "info" | "error" | "primary" | "secondary" | ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "neutral" | "warning" | "notification" | "background" | "dynamic";
11
+ colorSchemaType: "primary" | "secondary" | ColorSchemaTypes | "accent1" | "accent2" | "accent3" | "neutral" | "warning" | "notification" | "background" | "error" | "info" | "dynamic";
12
12
  id: import("@omnia/fx-models").GuidValue;
13
13
  };
14
14
  get: {
@@ -1,9 +1,9 @@
1
- import { VelcronPropertyEditor } from "@omnia/fx-models";
1
+ import { VelcronStateEditor } from "@omnia/fx-models";
2
2
  import { VelcronEditorBuilder } from "./VelcronEditorBuilder";
3
3
  import { VelcronEditorBuilderBase } from "./VelcronEditorBuilderBase";
4
4
  export declare class VelcronColorSchemaEditorBuilder extends VelcronEditorBuilderBase {
5
5
  private editor;
6
6
  constructor(builder: any);
7
7
  add(): VelcronEditorBuilder;
8
- protected internalBuild(): VelcronPropertyEditor<any>[];
8
+ protected internalBuild(): VelcronStateEditor<any>[];
9
9
  }
@@ -1,4 +1,4 @@
1
- import { VelcronPropertyEditor } from "@omnia/fx-models";
1
+ import { VelcronStateEditor } from "@omnia/fx-models";
2
2
  import { VelcronEditorBuilderBase } from "./VelcronEditorBuilderBase";
3
3
  export declare class VelcronContentEditorBuilder extends VelcronEditorBuilderBase {
4
4
  private mainEditor;
@@ -34,5 +34,5 @@ export declare class VelcronContentEditorBuilder extends VelcronEditorBuilderBas
34
34
  addPropertyMappingEditor: (title?: string) => VelcronContentEditorBuilder;
35
35
  addTypographyEditor: (title?: string, type?: "text" | "title") => VelcronContentEditorBuilder;
36
36
  };
37
- protected internalBuild(): VelcronPropertyEditor<any>[];
37
+ protected internalBuild(): VelcronStateEditor<any>[];
38
38
  }
@@ -1,4 +1,4 @@
1
- import { VelcronPropertyEditor } from "@omnia/fx-models";
1
+ import { VelcronStateEditor } from "@omnia/fx-models";
2
2
  import { VelcronContentEditorBuilder } from "./VelcronContentEditor";
3
3
  import { VelcronColorSchemaEditorBuilder } from "./VelcronColorSchemaEditor";
4
4
  import { VelcronImageEditorBuilder } from "./VelcronImageEditor";
@@ -12,5 +12,5 @@ export declare class VelcronEditorBuilder {
12
12
  colorSchemaType(): VelcronColorSchemaEditorBuilder;
13
13
  image(): VelcronImageEditorBuilder;
14
14
  properties(): VelcronPropertyMappingEditorBuilder;
15
- build(): VelcronPropertyEditor<any>[];
15
+ build(): VelcronStateEditor<any>[];
16
16
  }
@@ -1,4 +1,4 @@
1
- import { TypographyType, VelcronPropertyEditor, VelcronTypographyEditorSettings } from "@omnia/fx-models";
1
+ import { TypographyType, VelcronStateEditor, VelcronTypographyEditorSettings } from "@omnia/fx-models";
2
2
  export declare class VelcronEditorBuilder2 {
3
3
  private editors;
4
4
  private formatStateMapping;
@@ -11,5 +11,5 @@ export declare class VelcronEditorBuilder2 {
11
11
  blockHeaderEditor: () => VelcronEditorBuilder2;
12
12
  typographyEditor: (stateMapping: string, settings: VelcronTypographyEditorSettings) => VelcronEditorBuilder2;
13
13
  };
14
- build(): VelcronPropertyEditor<any>[];
14
+ build(): VelcronStateEditor<any>[];
15
15
  }
@@ -1,9 +1,9 @@
1
- import { VelcronPropertyEditor } from "@omnia/fx-models";
1
+ import { VelcronStateEditor } from "@omnia/fx-models";
2
2
  import { VelcronEditorBuilder } from "./VelcronEditorBuilder";
3
3
  export declare abstract class VelcronEditorBuilderBase {
4
4
  protected builder: VelcronEditorBuilder;
5
5
  constructor(builder: VelcronEditorBuilder);
6
6
  done(): VelcronEditorBuilder;
7
- build(): VelcronPropertyEditor<any>[];
8
- protected abstract internalBuild(): Array<VelcronPropertyEditor>;
7
+ build(): VelcronStateEditor<any>[];
8
+ protected abstract internalBuild(): Array<VelcronStateEditor>;
9
9
  }
@@ -1,4 +1,4 @@
1
- import { VelcronPropertyEditor } from "@omnia/fx-models";
1
+ import { VelcronStateEditor } from "@omnia/fx-models";
2
2
  import { VelcronEditorBuilder } from "./VelcronEditorBuilder";
3
3
  import { VelcronEditorBuilderBase } from "./VelcronEditorBuilderBase";
4
4
  export declare class VelcronImageEditorBuilder extends VelcronEditorBuilderBase {
@@ -7,5 +7,5 @@ export declare class VelcronImageEditorBuilder extends VelcronEditorBuilderBase
7
7
  main: {
8
8
  add: () => VelcronEditorBuilder;
9
9
  };
10
- protected internalBuild(): VelcronPropertyEditor<any>[];
10
+ protected internalBuild(): VelcronStateEditor<any>[];
11
11
  }
@@ -1,9 +1,9 @@
1
- import { VelcronPropertyEditor } from "@omnia/fx-models";
1
+ import { VelcronStateEditor } from "@omnia/fx-models";
2
2
  import { VelcronEditorBuilder } from "./VelcronEditorBuilder";
3
3
  import { VelcronEditorBuilderBase } from "./VelcronEditorBuilderBase";
4
4
  export declare class VelcronPropertyMappingEditorBuilder extends VelcronEditorBuilderBase {
5
5
  private editor;
6
6
  constructor(builder: any);
7
7
  add(): VelcronEditorBuilder;
8
- protected internalBuild(): VelcronPropertyEditor<any>[];
8
+ protected internalBuild(): VelcronStateEditor<any>[];
9
9
  }