lf-pagebuilder-vue 0.0.15 → 0.0.16
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/README.md +45 -22
- package/dist/components/BodySection.vue.d.ts +55 -0
- package/dist/components/ColConfig.vue.d.ts +55 -0
- package/dist/components/ComponentsBox.vue.d.ts +36 -0
- package/dist/components/FeedComponent.vue.d.ts +72 -0
- package/dist/components/FieldsForm.vue.d.ts +55 -0
- package/dist/components/GlobalConfig.vue.d.ts +81 -0
- package/dist/components/InitialComponent.vue.d.ts +93 -0
- package/dist/components/Pagebuilder.vue.d.ts +31 -0
- package/dist/components/RowConfig.vue.d.ts +38 -0
- package/dist/components/SourceFilter.vue.d.ts +36 -0
- package/dist/index.d.ts +95 -663
- package/dist/limbo/index.d.ts +10 -0
- package/dist/limbo/tokenHandler.d.ts +81 -0
- package/dist/limbo.cjs +1 -0
- package/dist/limbo.d.ts +3 -0
- package/dist/limbo.js +90 -0
- package/dist/mocks/libreria-astro-lefebvre.d.ts +77 -0
- package/dist/symfony-entry.d.ts +29 -0
- package/package.json +10 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,663 +1,95 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
[
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
section: StringConstructor;
|
|
97
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
98
|
-
globalPageConfiguration: PropType<PageSection_3[]>;
|
|
99
|
-
rowIndex: {
|
|
100
|
-
type: NumberConstructor;
|
|
101
|
-
required: true;
|
|
102
|
-
};
|
|
103
|
-
columnIndex: {
|
|
104
|
-
type: NumberConstructor;
|
|
105
|
-
required: true;
|
|
106
|
-
};
|
|
107
|
-
fullwidthMode: BooleanConstructor;
|
|
108
|
-
addCol: PropType<(rowIndex: number, colIndex: number, section: string, direction?: "left" | "right") => void>;
|
|
109
|
-
updateColConfig: PropType<(rowIndex: number, columnIndex: number, section: string, width: string, gap: string, flexDirection: string) => void>;
|
|
110
|
-
removeCol: PropType<(rowIndex: number, colIndex: number, section: string) => void>;
|
|
111
|
-
addComponentFunction: PropType<(rowIndex: number, columnIndex: number, section: string) => void>;
|
|
112
|
-
moveCol: PropType<(rowIndex: number, colIndex: number, section: string, direction?: "left" | "right") => void>;
|
|
113
|
-
section: StringConstructor;
|
|
114
|
-
}>> & Readonly<{}>, {
|
|
115
|
-
fullwidthMode: boolean;
|
|
116
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
117
|
-
|
|
118
|
-
export declare interface ColumnConfig {
|
|
119
|
-
width?: string;
|
|
120
|
-
gap?: string;
|
|
121
|
-
flexDirection?: string;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
declare interface ColumnToInsert {
|
|
125
|
-
rowIndex: number | null;
|
|
126
|
-
columnIndex: number | null;
|
|
127
|
-
section: string | null;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
declare interface ColumnToInsert_2 {
|
|
131
|
-
rowIndex: number | null;
|
|
132
|
-
columnIndex: number | null;
|
|
133
|
-
section: string | null;
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
export declare interface ComponentField {
|
|
137
|
-
name: string;
|
|
138
|
-
label: string;
|
|
139
|
-
type: 'text' | 'textArea' | 'image' | 'select' | 'boolean';
|
|
140
|
-
mandatory?: boolean;
|
|
141
|
-
example_value?: string | boolean;
|
|
142
|
-
options?: string[];
|
|
143
|
-
image_cuts?: ImageCut[];
|
|
144
|
-
mappedTo?: string;
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
declare interface ComponentField_2 {
|
|
148
|
-
name: string;
|
|
149
|
-
label: string;
|
|
150
|
-
type: string;
|
|
151
|
-
mappedTo?: string;
|
|
152
|
-
example_value?: string | boolean;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
declare interface ComponentField_3 {
|
|
156
|
-
name: string;
|
|
157
|
-
label: string;
|
|
158
|
-
type: 'text' | 'textArea' | 'image' | 'select' | 'boolean';
|
|
159
|
-
mandatory?: boolean;
|
|
160
|
-
example_value?: string | boolean;
|
|
161
|
-
options?: string[];
|
|
162
|
-
image_cuts?: Array<{
|
|
163
|
-
width: number;
|
|
164
|
-
height: number;
|
|
165
|
-
label: string;
|
|
166
|
-
required?: boolean;
|
|
167
|
-
}>;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
declare interface ComponentField_4 {
|
|
171
|
-
name: string;
|
|
172
|
-
label: string;
|
|
173
|
-
type: 'text' | 'textArea' | 'image' | 'select' | 'boolean';
|
|
174
|
-
mandatory?: boolean;
|
|
175
|
-
example_value?: string | boolean;
|
|
176
|
-
mappedTo?: string;
|
|
177
|
-
options?: string[];
|
|
178
|
-
image_cuts?: Array<{
|
|
179
|
-
width: number;
|
|
180
|
-
height: number;
|
|
181
|
-
label: string;
|
|
182
|
-
required?: boolean;
|
|
183
|
-
}>;
|
|
184
|
-
}
|
|
185
|
-
|
|
186
|
-
declare interface ComponentObject {
|
|
187
|
-
id?: string;
|
|
188
|
-
name: string;
|
|
189
|
-
fields: ComponentField_2[];
|
|
190
|
-
repeat_data?: FinalCriteria | null;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
declare interface ComponentObject_2 {
|
|
194
|
-
id?: string;
|
|
195
|
-
name: string;
|
|
196
|
-
fields: ComponentField_3[];
|
|
197
|
-
}
|
|
198
|
-
|
|
199
|
-
declare interface ComponentObject_3 {
|
|
200
|
-
id?: string;
|
|
201
|
-
name: string;
|
|
202
|
-
component_name: string;
|
|
203
|
-
description: string;
|
|
204
|
-
category: string;
|
|
205
|
-
framework: string;
|
|
206
|
-
tags: string[];
|
|
207
|
-
fields: ComponentField_4[];
|
|
208
|
-
repeat_data?: RepeatData_2 | null;
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
export declare const ComponentsBox: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
|
|
212
|
-
isComponentMode: boolean;
|
|
213
|
-
fullwidthMode: boolean;
|
|
214
|
-
columnToInsert: ColumnToInsert;
|
|
215
|
-
addComponentToColumn: (component: any) => void;
|
|
216
|
-
renderApiDomain: string;
|
|
217
|
-
toggleComponentModeFunction: () => void;
|
|
218
|
-
isProduction: boolean;
|
|
219
|
-
components: Record<string, any>;
|
|
220
|
-
excludedCategories?: string[];
|
|
221
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps_2<{
|
|
222
|
-
isComponentMode: boolean;
|
|
223
|
-
fullwidthMode: boolean;
|
|
224
|
-
columnToInsert: ColumnToInsert;
|
|
225
|
-
addComponentToColumn: (component: any) => void;
|
|
226
|
-
renderApiDomain: string;
|
|
227
|
-
toggleComponentModeFunction: () => void;
|
|
228
|
-
isProduction: boolean;
|
|
229
|
-
components: Record<string, any>;
|
|
230
|
-
excludedCategories?: string[];
|
|
231
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
232
|
-
|
|
233
|
-
declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
234
|
-
isProduction?: boolean;
|
|
235
|
-
debugMode?: boolean;
|
|
236
|
-
submitForm?: boolean;
|
|
237
|
-
inputId?: string | null;
|
|
238
|
-
excludeComponentTypes?: string[];
|
|
239
|
-
/** Public Key de Limbo (pk_xxx) - Si se proporciona, se inicializa Limbo automáticamente */
|
|
240
|
-
limboPublicKey?: string;
|
|
241
|
-
/** URL del endpoint proxy para obtener tokens (default: '/api/limbo-token') */
|
|
242
|
-
limboTokenEndpoint?: string;
|
|
243
|
-
}>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
|
|
244
|
-
isProduction?: boolean;
|
|
245
|
-
debugMode?: boolean;
|
|
246
|
-
submitForm?: boolean;
|
|
247
|
-
inputId?: string | null;
|
|
248
|
-
excludeComponentTypes?: string[];
|
|
249
|
-
/** Public Key de Limbo (pk_xxx) - Si se proporciona, se inicializa Limbo automáticamente */
|
|
250
|
-
limboPublicKey?: string;
|
|
251
|
-
/** URL del endpoint proxy para obtener tokens (default: '/api/limbo-token') */
|
|
252
|
-
limboTokenEndpoint?: string;
|
|
253
|
-
}>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
254
|
-
export { _default as Pagebuilder }
|
|
255
|
-
export default _default;
|
|
256
|
-
|
|
257
|
-
export declare const FeedComponent: DefineComponent<ExtractPropTypes< {
|
|
258
|
-
object: {
|
|
259
|
-
type: PropType<ComponentObject>;
|
|
260
|
-
required: true;
|
|
261
|
-
};
|
|
262
|
-
toggleFeedSection: {
|
|
263
|
-
type: PropType<() => void>;
|
|
264
|
-
required: true;
|
|
265
|
-
};
|
|
266
|
-
updateObjectByFeedContent: {
|
|
267
|
-
type: PropType<(mappeo: Array<{
|
|
268
|
-
fieldName: string;
|
|
269
|
-
mappedTo: string;
|
|
270
|
-
value: any;
|
|
271
|
-
}>, criteria: FinalCriteria | null) => void>;
|
|
272
|
-
required: true;
|
|
273
|
-
};
|
|
274
|
-
isProduction: {
|
|
275
|
-
type: BooleanConstructor;
|
|
276
|
-
default: boolean;
|
|
277
|
-
};
|
|
278
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
279
|
-
object: {
|
|
280
|
-
type: PropType<ComponentObject>;
|
|
281
|
-
required: true;
|
|
282
|
-
};
|
|
283
|
-
toggleFeedSection: {
|
|
284
|
-
type: PropType<() => void>;
|
|
285
|
-
required: true;
|
|
286
|
-
};
|
|
287
|
-
updateObjectByFeedContent: {
|
|
288
|
-
type: PropType<(mappeo: Array<{
|
|
289
|
-
fieldName: string;
|
|
290
|
-
mappedTo: string;
|
|
291
|
-
value: any;
|
|
292
|
-
}>, criteria: FinalCriteria | null) => void>;
|
|
293
|
-
required: true;
|
|
294
|
-
};
|
|
295
|
-
isProduction: {
|
|
296
|
-
type: BooleanConstructor;
|
|
297
|
-
default: boolean;
|
|
298
|
-
};
|
|
299
|
-
}>> & Readonly<{}>, {
|
|
300
|
-
isProduction: boolean;
|
|
301
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
302
|
-
|
|
303
|
-
declare interface FeedCriteria {
|
|
304
|
-
name: string;
|
|
305
|
-
url: string;
|
|
306
|
-
}
|
|
307
|
-
|
|
308
|
-
export declare interface FieldMapping {
|
|
309
|
-
fieldName: string;
|
|
310
|
-
mappedTo: string;
|
|
311
|
-
}
|
|
312
|
-
|
|
313
|
-
export declare const FieldsForm: DefineComponent<ExtractPropTypes< {
|
|
314
|
-
object: {
|
|
315
|
-
type: PropType<ComponentObject_2>;
|
|
316
|
-
required: true;
|
|
317
|
-
};
|
|
318
|
-
toggleShowForm: {
|
|
319
|
-
type: PropType<() => void>;
|
|
320
|
-
required: true;
|
|
321
|
-
};
|
|
322
|
-
showForm: {
|
|
323
|
-
type: BooleanConstructor;
|
|
324
|
-
default: boolean;
|
|
325
|
-
};
|
|
326
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
327
|
-
fieldUpdated: (fieldName: string, value: string | boolean) => void;
|
|
328
|
-
}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
329
|
-
object: {
|
|
330
|
-
type: PropType<ComponentObject_2>;
|
|
331
|
-
required: true;
|
|
332
|
-
};
|
|
333
|
-
toggleShowForm: {
|
|
334
|
-
type: PropType<() => void>;
|
|
335
|
-
required: true;
|
|
336
|
-
};
|
|
337
|
-
showForm: {
|
|
338
|
-
type: BooleanConstructor;
|
|
339
|
-
default: boolean;
|
|
340
|
-
};
|
|
341
|
-
}>> & Readonly<{
|
|
342
|
-
onFieldUpdated?: ((fieldName: string, value: string | boolean) => any) | undefined;
|
|
343
|
-
}>, {
|
|
344
|
-
showForm: boolean;
|
|
345
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
346
|
-
|
|
347
|
-
declare interface FinalCriteria {
|
|
348
|
-
dynamicUpdate?: boolean;
|
|
349
|
-
elementCount?: number;
|
|
350
|
-
orientation?: 'horizontal' | 'vertical';
|
|
351
|
-
name?: string;
|
|
352
|
-
url?: string;
|
|
353
|
-
mapping?: Array<{
|
|
354
|
-
fieldName: string;
|
|
355
|
-
mappedTo: string;
|
|
356
|
-
}>;
|
|
357
|
-
}
|
|
358
|
-
|
|
359
|
-
export declare const GlobalConfig: DefineComponent<ExtractPropTypes< {
|
|
360
|
-
isComponentMode: BooleanConstructor;
|
|
361
|
-
fullwidthMode: BooleanConstructor;
|
|
362
|
-
debugMode: BooleanConstructor;
|
|
363
|
-
submitForm: BooleanConstructor;
|
|
364
|
-
toggleComponentModeFunction: PropType<() => void>;
|
|
365
|
-
toggleFullwidthMode: PropType<() => void>;
|
|
366
|
-
importConfigurationFunction: PropType<(config: any) => void>;
|
|
367
|
-
globalPageConfiguration: PropType<PageSection_4[]>;
|
|
368
|
-
sectionSelected: StringConstructor;
|
|
369
|
-
availableSections: PropType<string[]>;
|
|
370
|
-
parametersPageConfiguration: PropType<PageParameters_2>;
|
|
371
|
-
renderApiDomain: StringConstructor;
|
|
372
|
-
inputId: PropType<string | null>;
|
|
373
|
-
}>, {
|
|
374
|
-
validateSeo: () => void;
|
|
375
|
-
importConfig: Ref<string, string>;
|
|
376
|
-
showAdvancedConfig: Ref<boolean, boolean>;
|
|
377
|
-
previewFunction: () => void;
|
|
378
|
-
importFunction: () => void;
|
|
379
|
-
exportFunction: () => void;
|
|
380
|
-
saveButtonAction: () => void;
|
|
381
|
-
loadFromLocalStorage: () => void;
|
|
382
|
-
toggleExpandScreen: () => void;
|
|
383
|
-
sectionWidth: WritableComputedRef<string, string>;
|
|
384
|
-
isSaved: Ref<boolean, boolean>;
|
|
385
|
-
componentRoot: Ref<HTMLElement | null, HTMLElement | null>;
|
|
386
|
-
}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("update:sectionSelected" | "update:parametersPageConfiguration.global.sidebarEnabled" | "update:parametersPageConfiguration.global.renderAsBodyPart" | "update:parametersPageConfiguration.global.headSlot" | "update:parametersPageConfiguration.global.bodyBeginSlot" | "update:parametersPageConfiguration.global.footerSlot" | "update:parametersPageConfiguration.seo.robots" | "update:parametersPageConfiguration.seo.title" | "update:parametersPageConfiguration.seo.description")[], "update:sectionSelected" | "update:parametersPageConfiguration.global.sidebarEnabled" | "update:parametersPageConfiguration.global.renderAsBodyPart" | "update:parametersPageConfiguration.global.headSlot" | "update:parametersPageConfiguration.global.bodyBeginSlot" | "update:parametersPageConfiguration.global.footerSlot" | "update:parametersPageConfiguration.seo.robots" | "update:parametersPageConfiguration.seo.title" | "update:parametersPageConfiguration.seo.description", PublicProps, Readonly<ExtractPropTypes< {
|
|
387
|
-
isComponentMode: BooleanConstructor;
|
|
388
|
-
fullwidthMode: BooleanConstructor;
|
|
389
|
-
debugMode: BooleanConstructor;
|
|
390
|
-
submitForm: BooleanConstructor;
|
|
391
|
-
toggleComponentModeFunction: PropType<() => void>;
|
|
392
|
-
toggleFullwidthMode: PropType<() => void>;
|
|
393
|
-
importConfigurationFunction: PropType<(config: any) => void>;
|
|
394
|
-
globalPageConfiguration: PropType<PageSection_4[]>;
|
|
395
|
-
sectionSelected: StringConstructor;
|
|
396
|
-
availableSections: PropType<string[]>;
|
|
397
|
-
parametersPageConfiguration: PropType<PageParameters_2>;
|
|
398
|
-
renderApiDomain: StringConstructor;
|
|
399
|
-
inputId: PropType<string | null>;
|
|
400
|
-
}>> & Readonly<{
|
|
401
|
-
"onUpdate:sectionSelected"?: ((...args: any[]) => any) | undefined;
|
|
402
|
-
"onUpdate:parametersPageConfiguration.global.sidebarEnabled"?: ((...args: any[]) => any) | undefined;
|
|
403
|
-
"onUpdate:parametersPageConfiguration.global.renderAsBodyPart"?: ((...args: any[]) => any) | undefined;
|
|
404
|
-
"onUpdate:parametersPageConfiguration.global.headSlot"?: ((...args: any[]) => any) | undefined;
|
|
405
|
-
"onUpdate:parametersPageConfiguration.global.bodyBeginSlot"?: ((...args: any[]) => any) | undefined;
|
|
406
|
-
"onUpdate:parametersPageConfiguration.global.footerSlot"?: ((...args: any[]) => any) | undefined;
|
|
407
|
-
"onUpdate:parametersPageConfiguration.seo.robots"?: ((...args: any[]) => any) | undefined;
|
|
408
|
-
"onUpdate:parametersPageConfiguration.seo.title"?: ((...args: any[]) => any) | undefined;
|
|
409
|
-
"onUpdate:parametersPageConfiguration.seo.description"?: ((...args: any[]) => any) | undefined;
|
|
410
|
-
}>, {
|
|
411
|
-
isComponentMode: boolean;
|
|
412
|
-
fullwidthMode: boolean;
|
|
413
|
-
debugMode: boolean;
|
|
414
|
-
submitForm: boolean;
|
|
415
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
416
|
-
|
|
417
|
-
export declare interface ImageCut {
|
|
418
|
-
width: number;
|
|
419
|
-
height: number;
|
|
420
|
-
label: string;
|
|
421
|
-
required?: boolean;
|
|
422
|
-
}
|
|
423
|
-
|
|
424
|
-
export declare const InitialComponent: DefineComponent<ExtractPropTypes< {
|
|
425
|
-
object: {
|
|
426
|
-
type: PropType<ComponentObject_3>;
|
|
427
|
-
required: true;
|
|
428
|
-
};
|
|
429
|
-
columnToInsert: PropType<ColumnToInsert_2>;
|
|
430
|
-
isComponentMode: BooleanConstructor;
|
|
431
|
-
fullwidthMode: BooleanConstructor;
|
|
432
|
-
addComponentToColumn: PropType<(component: any) => void>;
|
|
433
|
-
removeComponent: PropType<(obj: any, section: string) => void>;
|
|
434
|
-
cloneComponent: PropType<(obj: any, section: string) => void>;
|
|
435
|
-
section: StringConstructor;
|
|
436
|
-
renderApiDomain: StringConstructor;
|
|
437
|
-
insideComponentBox: {
|
|
438
|
-
type: BooleanConstructor;
|
|
439
|
-
default: boolean;
|
|
440
|
-
};
|
|
441
|
-
isProduction: {
|
|
442
|
-
type: BooleanConstructor;
|
|
443
|
-
default: boolean;
|
|
444
|
-
};
|
|
445
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
446
|
-
object: {
|
|
447
|
-
type: PropType<ComponentObject_3>;
|
|
448
|
-
required: true;
|
|
449
|
-
};
|
|
450
|
-
columnToInsert: PropType<ColumnToInsert_2>;
|
|
451
|
-
isComponentMode: BooleanConstructor;
|
|
452
|
-
fullwidthMode: BooleanConstructor;
|
|
453
|
-
addComponentToColumn: PropType<(component: any) => void>;
|
|
454
|
-
removeComponent: PropType<(obj: any, section: string) => void>;
|
|
455
|
-
cloneComponent: PropType<(obj: any, section: string) => void>;
|
|
456
|
-
section: StringConstructor;
|
|
457
|
-
renderApiDomain: StringConstructor;
|
|
458
|
-
insideComponentBox: {
|
|
459
|
-
type: BooleanConstructor;
|
|
460
|
-
default: boolean;
|
|
461
|
-
};
|
|
462
|
-
isProduction: {
|
|
463
|
-
type: BooleanConstructor;
|
|
464
|
-
default: boolean;
|
|
465
|
-
};
|
|
466
|
-
}>> & Readonly<{}>, {
|
|
467
|
-
isProduction: boolean;
|
|
468
|
-
isComponentMode: boolean;
|
|
469
|
-
fullwidthMode: boolean;
|
|
470
|
-
insideComponentBox: boolean;
|
|
471
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
472
|
-
|
|
473
|
-
export declare interface PageBuilderConfig {
|
|
474
|
-
pageConfig: PageSection[];
|
|
475
|
-
paramsConfig: PageParameters;
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
export declare interface PageColumn {
|
|
479
|
-
config: ColumnConfig;
|
|
480
|
-
components: PageComponent[];
|
|
481
|
-
}
|
|
482
|
-
|
|
483
|
-
export declare interface PageComponent {
|
|
484
|
-
id?: string;
|
|
485
|
-
name: string;
|
|
486
|
-
component_name: string;
|
|
487
|
-
description: string;
|
|
488
|
-
category: string;
|
|
489
|
-
framework: string;
|
|
490
|
-
tags: string[];
|
|
491
|
-
fields: ComponentField[];
|
|
492
|
-
repeat_data?: RepeatData;
|
|
493
|
-
}
|
|
494
|
-
|
|
495
|
-
export declare interface PageParameters {
|
|
496
|
-
global: {
|
|
497
|
-
sidebarEnabled: boolean;
|
|
498
|
-
headSlot: string;
|
|
499
|
-
bodyBeginSlot: string;
|
|
500
|
-
footerSlot: string;
|
|
501
|
-
};
|
|
502
|
-
seo: {
|
|
503
|
-
title: string;
|
|
504
|
-
description: string;
|
|
505
|
-
robots: string;
|
|
506
|
-
};
|
|
507
|
-
}
|
|
508
|
-
|
|
509
|
-
declare interface PageParameters_2 {
|
|
510
|
-
global: {
|
|
511
|
-
sidebarEnabled: boolean;
|
|
512
|
-
renderAsBodyPart: boolean;
|
|
513
|
-
headSlot: string;
|
|
514
|
-
bodyBeginSlot: string;
|
|
515
|
-
footerSlot: string;
|
|
516
|
-
};
|
|
517
|
-
seo: {
|
|
518
|
-
title: string;
|
|
519
|
-
description: string;
|
|
520
|
-
robots: string;
|
|
521
|
-
};
|
|
522
|
-
}
|
|
523
|
-
|
|
524
|
-
export declare interface PageRow {
|
|
525
|
-
config: RowConfigType;
|
|
526
|
-
columns: PageColumn[];
|
|
527
|
-
}
|
|
528
|
-
|
|
529
|
-
export declare interface PageSection {
|
|
530
|
-
section: string;
|
|
531
|
-
config: SectionConfig;
|
|
532
|
-
rows: PageRow[];
|
|
533
|
-
}
|
|
534
|
-
|
|
535
|
-
declare interface PageSection_2 {
|
|
536
|
-
section: string;
|
|
537
|
-
config: any;
|
|
538
|
-
rows: any[];
|
|
539
|
-
}
|
|
540
|
-
|
|
541
|
-
declare interface PageSection_3 {
|
|
542
|
-
section: string;
|
|
543
|
-
config: any;
|
|
544
|
-
rows: Array<{
|
|
545
|
-
config: any;
|
|
546
|
-
columns: Array<{
|
|
547
|
-
config: {
|
|
548
|
-
width?: string;
|
|
549
|
-
gap?: string;
|
|
550
|
-
flexDirection?: string;
|
|
551
|
-
};
|
|
552
|
-
components: any[];
|
|
553
|
-
}>;
|
|
554
|
-
}>;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
declare interface PageSection_4 {
|
|
558
|
-
section: string;
|
|
559
|
-
config: {
|
|
560
|
-
width?: string;
|
|
561
|
-
};
|
|
562
|
-
rows: any[];
|
|
563
|
-
}
|
|
564
|
-
|
|
565
|
-
declare interface PageSection_5 {
|
|
566
|
-
section: string;
|
|
567
|
-
config: any;
|
|
568
|
-
rows: Array<{
|
|
569
|
-
config: {
|
|
570
|
-
padding?: string;
|
|
571
|
-
gap?: string;
|
|
572
|
-
width?: string;
|
|
573
|
-
};
|
|
574
|
-
columns: any[];
|
|
575
|
-
}>;
|
|
576
|
-
}
|
|
577
|
-
|
|
578
|
-
export declare interface RepeatData {
|
|
579
|
-
dynamicUpdate?: boolean;
|
|
580
|
-
elementCount?: number;
|
|
581
|
-
orientation?: 'horizontal' | 'vertical';
|
|
582
|
-
name?: string;
|
|
583
|
-
url?: string;
|
|
584
|
-
mapping?: FieldMapping[];
|
|
585
|
-
}
|
|
586
|
-
|
|
587
|
-
declare interface RepeatData_2 {
|
|
588
|
-
dynamicUpdate?: boolean;
|
|
589
|
-
elementCount?: number;
|
|
590
|
-
orientation?: 'horizontal' | 'vertical';
|
|
591
|
-
name?: string;
|
|
592
|
-
url?: string;
|
|
593
|
-
mapping?: Array<{
|
|
594
|
-
fieldName: string;
|
|
595
|
-
mappedTo: string;
|
|
596
|
-
}>;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
export declare const RowConfig: DefineComponent<ExtractPropTypes< {
|
|
600
|
-
rowIndex: {
|
|
601
|
-
type: NumberConstructor;
|
|
602
|
-
required: true;
|
|
603
|
-
};
|
|
604
|
-
updateRowConfig: PropType<(rowIndex: number, section: string, padding: string, gap: string, width: string) => void>;
|
|
605
|
-
removeRow: PropType<(index: number, section: string) => void>;
|
|
606
|
-
addRow: PropType<(index: number | null, section: string) => void>;
|
|
607
|
-
globalPageConfiguration: PropType<PageSection_5[]>;
|
|
608
|
-
section: StringConstructor;
|
|
609
|
-
moveRow: PropType<(rowIndex: number, section: string, direction: "up" | "down") => void>;
|
|
610
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
611
|
-
rowIndex: {
|
|
612
|
-
type: NumberConstructor;
|
|
613
|
-
required: true;
|
|
614
|
-
};
|
|
615
|
-
updateRowConfig: PropType<(rowIndex: number, section: string, padding: string, gap: string, width: string) => void>;
|
|
616
|
-
removeRow: PropType<(index: number, section: string) => void>;
|
|
617
|
-
addRow: PropType<(index: number | null, section: string) => void>;
|
|
618
|
-
globalPageConfiguration: PropType<PageSection_5[]>;
|
|
619
|
-
section: StringConstructor;
|
|
620
|
-
moveRow: PropType<(rowIndex: number, section: string, direction: "up" | "down") => void>;
|
|
621
|
-
}>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
622
|
-
|
|
623
|
-
export declare interface RowConfigType {
|
|
624
|
-
padding?: string;
|
|
625
|
-
gap?: string;
|
|
626
|
-
width?: string;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
export declare interface SectionConfig {
|
|
630
|
-
width?: string;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
export declare const SourceFilter: DefineComponent<ExtractPropTypes< {
|
|
634
|
-
onSubmit: {
|
|
635
|
-
type: PropType<(data: any[]) => void>;
|
|
636
|
-
required: true;
|
|
637
|
-
};
|
|
638
|
-
updateFeedCriteria: {
|
|
639
|
-
type: PropType<(criteria: FeedCriteria) => void>;
|
|
640
|
-
required: true;
|
|
641
|
-
};
|
|
642
|
-
isProduction: {
|
|
643
|
-
type: BooleanConstructor;
|
|
644
|
-
default: boolean;
|
|
645
|
-
};
|
|
646
|
-
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes< {
|
|
647
|
-
onSubmit: {
|
|
648
|
-
type: PropType<(data: any[]) => void>;
|
|
649
|
-
required: true;
|
|
650
|
-
};
|
|
651
|
-
updateFeedCriteria: {
|
|
652
|
-
type: PropType<(criteria: FeedCriteria) => void>;
|
|
653
|
-
required: true;
|
|
654
|
-
};
|
|
655
|
-
isProduction: {
|
|
656
|
-
type: BooleanConstructor;
|
|
657
|
-
default: boolean;
|
|
658
|
-
};
|
|
659
|
-
}>> & Readonly<{}>, {
|
|
660
|
-
isProduction: boolean;
|
|
661
|
-
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
662
|
-
|
|
663
|
-
export { }
|
|
1
|
+
import { default as Pagebuilder } from './components/Pagebuilder.vue';
|
|
2
|
+
import { default as BodySection } from './components/BodySection.vue';
|
|
3
|
+
import { default as ColConfig } from './components/ColConfig.vue';
|
|
4
|
+
import { default as ComponentsBox } from './components/ComponentsBox.vue';
|
|
5
|
+
import { default as FeedComponent } from './components/FeedComponent.vue';
|
|
6
|
+
import { default as FieldsForm } from './components/FieldsForm.vue';
|
|
7
|
+
import { default as GlobalConfig } from './components/GlobalConfig.vue';
|
|
8
|
+
import { default as InitialComponent } from './components/InitialComponent.vue';
|
|
9
|
+
import { default as RowConfig } from './components/RowConfig.vue';
|
|
10
|
+
import { default as SourceFilter } from './components/SourceFilter.vue';
|
|
11
|
+
|
|
12
|
+
export { Pagebuilder, BodySection, ColConfig, ComponentsBox, FeedComponent, FieldsForm, GlobalConfig, InitialComponent, RowConfig, SourceFilter, };
|
|
13
|
+
export default Pagebuilder;
|
|
14
|
+
export interface PageSection {
|
|
15
|
+
section: string;
|
|
16
|
+
config: SectionConfig;
|
|
17
|
+
rows: PageRow[];
|
|
18
|
+
}
|
|
19
|
+
export interface SectionConfig {
|
|
20
|
+
width?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface PageRow {
|
|
23
|
+
config: RowConfigType;
|
|
24
|
+
columns: PageColumn[];
|
|
25
|
+
}
|
|
26
|
+
export interface RowConfigType {
|
|
27
|
+
padding?: string;
|
|
28
|
+
gap?: string;
|
|
29
|
+
width?: string;
|
|
30
|
+
}
|
|
31
|
+
export interface PageColumn {
|
|
32
|
+
config: ColumnConfig;
|
|
33
|
+
components: PageComponent[];
|
|
34
|
+
}
|
|
35
|
+
export interface ColumnConfig {
|
|
36
|
+
width?: string;
|
|
37
|
+
gap?: string;
|
|
38
|
+
flexDirection?: string;
|
|
39
|
+
}
|
|
40
|
+
export interface PageComponent {
|
|
41
|
+
id?: string;
|
|
42
|
+
name: string;
|
|
43
|
+
component_name: string;
|
|
44
|
+
description: string;
|
|
45
|
+
category: string;
|
|
46
|
+
framework: string;
|
|
47
|
+
tags: string[];
|
|
48
|
+
fields: ComponentField[];
|
|
49
|
+
repeat_data?: RepeatData;
|
|
50
|
+
}
|
|
51
|
+
export interface ComponentField {
|
|
52
|
+
name: string;
|
|
53
|
+
label: string;
|
|
54
|
+
type: 'text' | 'textArea' | 'image' | 'select' | 'boolean';
|
|
55
|
+
mandatory?: boolean;
|
|
56
|
+
example_value?: string | boolean;
|
|
57
|
+
options?: string[];
|
|
58
|
+
image_cuts?: ImageCut[];
|
|
59
|
+
mappedTo?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface ImageCut {
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
label: string;
|
|
65
|
+
required?: boolean;
|
|
66
|
+
}
|
|
67
|
+
export interface RepeatData {
|
|
68
|
+
dynamicUpdate?: boolean;
|
|
69
|
+
elementCount?: number;
|
|
70
|
+
orientation?: 'horizontal' | 'vertical';
|
|
71
|
+
name?: string;
|
|
72
|
+
url?: string;
|
|
73
|
+
mapping?: FieldMapping[];
|
|
74
|
+
}
|
|
75
|
+
export interface FieldMapping {
|
|
76
|
+
fieldName: string;
|
|
77
|
+
mappedTo: string;
|
|
78
|
+
}
|
|
79
|
+
export interface PageParameters {
|
|
80
|
+
global: {
|
|
81
|
+
sidebarEnabled: boolean;
|
|
82
|
+
headSlot: string;
|
|
83
|
+
bodyBeginSlot: string;
|
|
84
|
+
footerSlot: string;
|
|
85
|
+
};
|
|
86
|
+
seo: {
|
|
87
|
+
title: string;
|
|
88
|
+
description: string;
|
|
89
|
+
robots: string;
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
export interface PageBuilderConfig {
|
|
93
|
+
pageConfig: PageSection[];
|
|
94
|
+
paramsConfig: PageParameters;
|
|
95
|
+
}
|