lf-pagebuilder-vue 0.0.54 → 0.0.56

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 @@ interface ComponentField {
4
4
  label: string;
5
5
  type: string;
6
6
  mappedTo?: string;
7
- example_value?: string | boolean;
7
+ example_value?: string | boolean | any[];
8
8
  }
9
9
  interface ComponentObject {
10
10
  id?: string;
@@ -1,10 +1,22 @@
1
1
  import { PropType } from 'vue';
2
+ interface ListItemsDef {
3
+ type: 'text' | 'select' | 'textArea' | 'boolean' | 'object';
4
+ options?: string[];
5
+ options_labels?: string[];
6
+ fields?: Array<{
7
+ name: string;
8
+ label: string;
9
+ type: string;
10
+ options?: string[];
11
+ options_labels?: string[];
12
+ }>;
13
+ }
2
14
  interface ComponentField {
3
15
  name: string;
4
16
  label: string;
5
- type: 'text' | 'textArea' | 'image' | 'video' | 'select' | 'boolean';
17
+ type: 'text' | 'textArea' | 'image' | 'video' | 'select' | 'boolean' | 'list';
6
18
  mandatory?: boolean;
7
- example_value?: string | boolean;
19
+ example_value?: string | boolean | any[];
8
20
  options?: string[];
9
21
  image_cuts?: Array<{
10
22
  width: number;
@@ -14,6 +26,7 @@ interface ComponentField {
14
26
  }>;
15
27
  exclusive_group?: string;
16
28
  exclusive_group_label?: string;
29
+ items?: ListItemsDef;
17
30
  }
18
31
  interface ComponentObject {
19
32
  id?: string;
@@ -34,7 +47,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
34
47
  default: boolean;
35
48
  };
36
49
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
37
- fieldUpdated: (fieldName: string, value: string | boolean) => any;
50
+ fieldUpdated: (fieldName: string, value: string | boolean | any[]) => any;
38
51
  exclusiveFieldChanged: (groupName: string, activeFieldName: string) => any;
39
52
  }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
40
53
  object: {
@@ -50,7 +63,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
50
63
  default: boolean;
51
64
  };
52
65
  }>> & Readonly<{
53
- onFieldUpdated?: ((fieldName: string, value: string | boolean) => any) | undefined;
66
+ onFieldUpdated?: ((fieldName: string, value: string | boolean | any[]) => any) | undefined;
54
67
  onExclusiveFieldChanged?: ((groupName: string, activeFieldName: string) => any) | undefined;
55
68
  }>, {
56
69
  showForm: boolean;
@@ -2,9 +2,9 @@ import { PropType } from 'vue';
2
2
  interface ComponentField {
3
3
  name: string;
4
4
  label: string;
5
- type: 'text' | 'textArea' | 'image' | 'video' | 'select' | 'boolean';
5
+ type: 'text' | 'textArea' | 'image' | 'video' | 'select' | 'boolean' | 'list';
6
6
  mandatory?: boolean;
7
- example_value?: string | boolean;
7
+ example_value?: string | boolean | any[];
8
8
  mappedTo?: string;
9
9
  options?: string[];
10
10
  image_cuts?: Array<{
@@ -14,6 +14,18 @@ interface ComponentField {
14
14
  required?: boolean;
15
15
  }>;
16
16
  exclusive_group?: string;
17
+ items?: {
18
+ type: 'text' | 'select' | 'textArea' | 'boolean' | 'object';
19
+ options?: string[];
20
+ options_labels?: string[];
21
+ fields?: Array<{
22
+ name: string;
23
+ label: string;
24
+ type: string;
25
+ options?: string[];
26
+ options_labels?: string[];
27
+ }>;
28
+ };
17
29
  }
18
30
  interface RepeatData {
19
31
  dynamicUpdate?: boolean;
@@ -0,0 +1,30 @@
1
+ interface SubField {
2
+ name: string;
3
+ label: string;
4
+ type: 'text' | 'select' | 'textArea' | 'boolean';
5
+ options?: string[];
6
+ options_labels?: string[];
7
+ }
8
+ interface ItemsDef {
9
+ type: 'text' | 'select' | 'textArea' | 'boolean' | 'object';
10
+ options?: string[];
11
+ options_labels?: string[];
12
+ fields?: SubField[];
13
+ }
14
+ interface ListFieldDef {
15
+ name: string;
16
+ label: string;
17
+ type: 'list';
18
+ mandatory?: boolean;
19
+ items: ItemsDef;
20
+ }
21
+ type __VLS_Props = {
22
+ field: ListFieldDef;
23
+ modelValue: (string | boolean | Record<string, any>)[];
24
+ };
25
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
26
+ "update:modelValue": (value: (string | boolean | Record<string, any>)[]) => any;
27
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
28
+ "onUpdate:modelValue"?: ((value: (string | boolean | Record<string, any>)[]) => any) | undefined;
29
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
30
+ export default _default;