zerocodejs 1.0.1-beta.2 → 1.0.1-beta.20
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.ja.md +199 -0
- package/README.md +128 -102
- package/dist/components/ZeroCodeCMS.vue.d.ts +7 -0
- package/dist/components/ZeroCodeCMS.vue.d.ts.map +1 -1
- package/dist/components/ZeroCodeEditor.vue.d.ts +60 -1
- package/dist/components/ZeroCodeEditor.vue.d.ts.map +1 -1
- package/dist/components/ZeroCodeStudio.vue.d.ts +398 -0
- package/dist/components/ZeroCodeStudio.vue.d.ts.map +1 -0
- package/dist/core/composables/useZeroCodeData.d.ts +3 -0
- package/dist/core/composables/useZeroCodeData.d.ts.map +1 -1
- package/dist/core/composables/useZeroCodeRenderer.d.ts.map +1 -1
- package/dist/core/renderer/renderer.d.ts +30 -1
- package/dist/core/renderer/renderer.d.ts.map +1 -1
- package/dist/core/utils/css-manager.d.ts.map +1 -1
- package/dist/core/utils/dom-utils.d.ts +3 -0
- package/dist/core/utils/dom-utils.d.ts.map +1 -1
- package/dist/core/utils/edit-panel-fields.d.ts +17 -0
- package/dist/core/utils/edit-panel-fields.d.ts.map +1 -0
- package/dist/core/utils/field-extractor.d.ts.map +1 -1
- package/dist/core/utils/i18n-setup.d.ts.map +1 -1
- package/dist/core/utils/image-utils.d.ts.map +1 -1
- package/dist/core/utils/logger.d.ts +5 -0
- package/dist/core/utils/logger.d.ts.map +1 -0
- package/dist/core/utils/path-utils.d.ts +5 -1
- package/dist/core/utils/path-utils.d.ts.map +1 -1
- package/dist/core/utils/sanitize.d.ts +6 -0
- package/dist/core/utils/sanitize.d.ts.map +1 -1
- package/dist/core/utils/storage.d.ts +0 -1
- package/dist/core/utils/storage.d.ts.map +1 -1
- package/dist/core/utils/template-processor.d.ts +6 -1
- package/dist/core/utils/template-processor.d.ts.map +1 -1
- package/dist/core/utils/template-regex.d.ts +0 -1
- package/dist/core/utils/template-regex.d.ts.map +1 -1
- package/dist/core/utils/template-utils.d.ts +3 -1
- package/dist/core/utils/template-utils.d.ts.map +1 -1
- package/dist/features/add/components/AddPanel.vue.d.ts.map +1 -1
- package/dist/features/add/composables/useAddMode.d.ts +7 -1
- package/dist/features/add/composables/useAddMode.d.ts.map +1 -1
- package/dist/features/data-viewer/components/DataViewer.vue.d.ts +1 -0
- package/dist/features/data-viewer/components/DataViewer.vue.d.ts.map +1 -1
- package/dist/features/delete/components/DeletePanel.vue.d.ts.map +1 -1
- package/dist/features/delete/composables/useDeleteMode.d.ts.map +1 -1
- package/dist/features/editor/components/ContextMenu.vue.d.ts.map +1 -1
- package/dist/features/editor/components/EditPanel.vue.d.ts +1 -4
- package/dist/features/editor/components/EditPanel.vue.d.ts.map +1 -1
- package/dist/features/editor/components/ImageSelectModal.vue.d.ts +1 -7
- package/dist/features/editor/components/ImageSelectModal.vue.d.ts.map +1 -1
- package/dist/features/editor/components/RichTextEditor.vue.d.ts.map +1 -1
- package/dist/features/editor/components/SettingsPanel.vue.d.ts.map +1 -1
- package/dist/features/editor/components/Toolbar.vue.d.ts.map +1 -1
- package/dist/features/editor/composables/useClickHandlers.d.ts.map +1 -1
- package/dist/features/editor/composables/useEditMode.d.ts +4 -16
- package/dist/features/editor/composables/useEditMode.d.ts.map +1 -1
- package/dist/features/editor/composables/useOutlineManager.d.ts.map +1 -1
- package/dist/features/images-manager/components/ImagesManagerPanel.vue.d.ts +2 -0
- package/dist/features/images-manager/components/ImagesManagerPanel.vue.d.ts.map +1 -1
- package/dist/features/parts-manager/components/MonacoEditor.vue.d.ts +3 -1
- package/dist/features/parts-manager/components/MonacoEditor.vue.d.ts.map +1 -1
- package/dist/features/parts-manager/components/PartsManagerPanel.vue.d.ts +44 -1
- package/dist/features/parts-manager/components/PartsManagerPanel.vue.d.ts.map +1 -1
- package/dist/features/parts-manager/composables/usePartsManager.d.ts +15 -1
- package/dist/features/parts-manager/composables/usePartsManager.d.ts.map +1 -1
- package/dist/features/preview/PreviewArea.vue.d.ts.map +1 -1
- package/dist/features/reorder/components/ReorderPanel.vue.d.ts.map +1 -1
- package/dist/features/reorder/composables/useReorderMode.d.ts +3 -1
- package/dist/features/reorder/composables/useReorderMode.d.ts.map +1 -1
- package/dist/i18n/index.d.ts +36 -2
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n/locales/en.d.ts +18 -1
- package/dist/i18n/locales/en.d.ts.map +1 -1
- package/dist/i18n/locales/ja.d.ts +18 -1
- package/dist/i18n/locales/ja.d.ts.map +1 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/ssr-entry.d.ts +6 -0
- package/dist/ssr-entry.d.ts.map +1 -0
- package/dist/types/index.d.ts +7 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/web-components/zcode-cms.d.ts.map +1 -1
- package/dist/web-components/zcode-editor.d.ts.map +1 -1
- package/dist/web-components/zcode-studio.d.ts +28 -0
- package/dist/web-components/zcode-studio.d.ts.map +1 -0
- package/dist/zerocode-ssr.es.js +1409 -0
- package/dist/zerocode.es.js +15764 -15347
- package/dist/zerocode.umd.js +68 -72
- package/dist/zerocodejs.css +1 -1
- package/package.json +27 -7
- package/dist/__tests__/fixtures/sample-data.d.ts +0 -23
- package/dist/__tests__/fixtures/sample-data.d.ts.map +0 -1
- package/dist/__tests__/fixtures/sample-templates.d.ts +0 -25
- package/dist/__tests__/fixtures/sample-templates.d.ts.map +0 -1
- package/dist/core/utils/component-initializer.test.d.ts +0 -2
- package/dist/core/utils/component-initializer.test.d.ts.map +0 -1
- package/dist/core/utils/field-extractor.test.d.ts +0 -2
- package/dist/core/utils/field-extractor.test.d.ts.map +0 -1
- package/dist/core/utils/image-utils.test.d.ts +0 -2
- package/dist/core/utils/image-utils.test.d.ts.map +0 -1
- package/dist/core/utils/path-utils.test.d.ts +0 -2
- package/dist/core/utils/path-utils.test.d.ts.map +0 -1
- package/dist/core/utils/storage.test.d.ts +0 -2
- package/dist/core/utils/storage.test.d.ts.map +0 -1
- package/dist/core/utils/template-processor.test.d.ts +0 -2
- package/dist/core/utils/template-processor.test.d.ts.map +0 -1
- package/dist/core/utils/template-utils.test.d.ts +0 -2
- package/dist/core/utils/template-utils.test.d.ts.map +0 -1
- package/dist/core/utils/validation.test.d.ts +0 -2
- package/dist/core/utils/validation.test.d.ts.map +0 -1
- package/dist/css/common.css +0 -677
- package/dist/css/docs.css +0 -396
- package/dist/css/index.css +0 -1039
- package/dist/css/page.css +0 -290
- package/dist/css/sample.css +0 -26
- package/dist/css/site-common.css +0 -218
- package/dist/footer.html +0 -10
- package/dist/header.html +0 -10
- package/dist/images/customer-avatar.jpg +0 -0
- package/dist/images/default-avatar.jpg +0 -0
- package/dist/images/default.jpg +0 -0
- package/dist/images/hero-bg.jpg +0 -0
- package/dist/images/kv_image.jpg +0 -0
- package/dist/images/page-specific-hero.jpg +0 -0
- package/dist/images/sample-1.jpg +0 -0
- package/dist/images/sample-2.jpg +0 -0
- package/dist/images/sample-3.jpg +0 -0
- package/dist/images/zcode_top_01.png +0 -0
- package/dist/js/accordion.js +0 -24
- package/dist/js/common.js +0 -1093
- package/dist/web-component.d.ts +0 -14
- package/dist/web-component.d.ts.map +0 -1
- package/dist/zerocode.es.js.map +0 -1
- package/dist/zerocode.umd.js.map +0 -1
|
@@ -40,6 +40,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
40
40
|
config?: string;
|
|
41
41
|
endpoints?: string;
|
|
42
42
|
backendData?: string;
|
|
43
|
+
hideFixedSaveButton?: boolean;
|
|
44
|
+
saveRequestSource?: "cms" | "studio";
|
|
43
45
|
}> & Readonly<{}>, {
|
|
44
46
|
getData: (path?: string) => unknown;
|
|
45
47
|
setData: (pathOrData: string | Partial<ZeroCodeData>, value?: unknown) => void;
|
|
@@ -70,6 +72,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
70
72
|
allowedParts?: string[];
|
|
71
73
|
}> | undefined;
|
|
72
74
|
slotOnly?: boolean | undefined;
|
|
75
|
+
outlinePosition?: "inner" | undefined;
|
|
73
76
|
}[];
|
|
74
77
|
}[];
|
|
75
78
|
individual: {
|
|
@@ -85,6 +88,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
85
88
|
allowedParts?: string[];
|
|
86
89
|
}> | undefined;
|
|
87
90
|
slotOnly?: boolean | undefined;
|
|
91
|
+
outlinePosition?: "inner" | undefined;
|
|
88
92
|
}[];
|
|
89
93
|
}[];
|
|
90
94
|
special: {
|
|
@@ -100,6 +104,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
100
104
|
allowedParts?: string[];
|
|
101
105
|
}> | undefined;
|
|
102
106
|
slotOnly?: boolean | undefined;
|
|
107
|
+
outlinePosition?: "inner" | undefined;
|
|
103
108
|
}[];
|
|
104
109
|
}[];
|
|
105
110
|
};
|
|
@@ -183,6 +188,8 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
183
188
|
config?: string;
|
|
184
189
|
endpoints?: string;
|
|
185
190
|
backendData?: string;
|
|
191
|
+
hideFixedSaveButton?: boolean;
|
|
192
|
+
saveRequestSource?: "cms" | "studio";
|
|
186
193
|
}> & Readonly<{}>, {
|
|
187
194
|
getData: (path?: string) => unknown;
|
|
188
195
|
setData: (pathOrData: string | Partial<ZeroCodeData>, value?: unknown) => void;
|
|
@@ -213,6 +220,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
213
220
|
allowedParts?: string[];
|
|
214
221
|
}> | undefined;
|
|
215
222
|
slotOnly?: boolean | undefined;
|
|
223
|
+
outlinePosition?: "inner" | undefined;
|
|
216
224
|
}[];
|
|
217
225
|
}[];
|
|
218
226
|
individual: {
|
|
@@ -228,6 +236,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
228
236
|
allowedParts?: string[];
|
|
229
237
|
}> | undefined;
|
|
230
238
|
slotOnly?: boolean | undefined;
|
|
239
|
+
outlinePosition?: "inner" | undefined;
|
|
231
240
|
}[];
|
|
232
241
|
}[];
|
|
233
242
|
special: {
|
|
@@ -243,6 +252,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
243
252
|
allowedParts?: string[];
|
|
244
253
|
}> | undefined;
|
|
245
254
|
slotOnly?: boolean | undefined;
|
|
255
|
+
outlinePosition?: "inner" | undefined;
|
|
246
256
|
}[];
|
|
247
257
|
}[];
|
|
248
258
|
};
|
|
@@ -281,9 +291,52 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
281
291
|
partsManagerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
282
292
|
cmsData: ZeroCodeData;
|
|
283
293
|
config?: Partial<CMSConfig>;
|
|
294
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
284
295
|
}> & Readonly<{}>, {
|
|
285
296
|
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
286
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
297
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
298
|
+
partOptionsRef: HTMLDivElement;
|
|
299
|
+
monacoEditorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
300
|
+
modelValue: string;
|
|
301
|
+
language?: string;
|
|
302
|
+
theme?: "vs" | "vs-dark" | "hc-black";
|
|
303
|
+
readOnly?: boolean;
|
|
304
|
+
minimap?: boolean;
|
|
305
|
+
height?: string;
|
|
306
|
+
autoHeight?: boolean;
|
|
307
|
+
maxHeight?: number;
|
|
308
|
+
enableSuggestions?: boolean;
|
|
309
|
+
}> & Readonly<{
|
|
310
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
311
|
+
}>, {
|
|
312
|
+
insertTextAtCursor(text: string): void;
|
|
313
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
314
|
+
"update:modelValue": (value: string) => any;
|
|
315
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
316
|
+
editorContainer: HTMLDivElement;
|
|
317
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
318
|
+
P: {};
|
|
319
|
+
B: {};
|
|
320
|
+
D: {};
|
|
321
|
+
C: {};
|
|
322
|
+
M: {};
|
|
323
|
+
Defaults: {};
|
|
324
|
+
}, Readonly<{
|
|
325
|
+
modelValue: string;
|
|
326
|
+
language?: string;
|
|
327
|
+
theme?: "vs" | "vs-dark" | "hc-black";
|
|
328
|
+
readOnly?: boolean;
|
|
329
|
+
minimap?: boolean;
|
|
330
|
+
height?: string;
|
|
331
|
+
autoHeight?: boolean;
|
|
332
|
+
maxHeight?: number;
|
|
333
|
+
enableSuggestions?: boolean;
|
|
334
|
+
}> & Readonly<{
|
|
335
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
336
|
+
}>, {
|
|
337
|
+
insertTextAtCursor(text: string): void;
|
|
338
|
+
}, {}, {}, {}, {}> | null;
|
|
339
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
287
340
|
P: {};
|
|
288
341
|
B: {};
|
|
289
342
|
D: {};
|
|
@@ -293,16 +346,19 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
293
346
|
}, Readonly<{
|
|
294
347
|
cmsData: ZeroCodeData;
|
|
295
348
|
config?: Partial<CMSConfig>;
|
|
349
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
296
350
|
}> & Readonly<{}>, {
|
|
297
351
|
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
298
352
|
}, {}, {}, {}, {}> | null;
|
|
299
353
|
imagesManagerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
300
354
|
cmsData: ZeroCodeData;
|
|
301
355
|
config?: Partial<CMSConfig>;
|
|
356
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
302
357
|
}> & Readonly<{}>, {
|
|
303
358
|
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
304
359
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
305
360
|
fileInput: HTMLInputElement;
|
|
361
|
+
replaceFileInputRef: HTMLInputElement;
|
|
306
362
|
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
307
363
|
P: {};
|
|
308
364
|
B: {};
|
|
@@ -313,12 +369,14 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
313
369
|
}, Readonly<{
|
|
314
370
|
cmsData: ZeroCodeData;
|
|
315
371
|
config?: Partial<CMSConfig>;
|
|
372
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
316
373
|
}> & Readonly<{}>, {
|
|
317
374
|
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
318
375
|
}, {}, {}, {}, {}> | null;
|
|
319
376
|
dataViewerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
320
377
|
cmsData: ZeroCodeData;
|
|
321
378
|
config?: Partial<CMSConfig>;
|
|
379
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
322
380
|
}> & Readonly<{}>, {
|
|
323
381
|
internalActiveTab: Ref<"page" | "parts" | "images", "page" | "parts" | "images">;
|
|
324
382
|
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
@@ -332,6 +390,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
332
390
|
}, Readonly<{
|
|
333
391
|
cmsData: ZeroCodeData;
|
|
334
392
|
config?: Partial<CMSConfig>;
|
|
393
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
335
394
|
}> & Readonly<{}>, {
|
|
336
395
|
internalActiveTab: Ref<"page" | "parts" | "images", "page" | "parts" | "images">;
|
|
337
396
|
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ZeroCodeEditor.vue.d.ts","sourceRoot":"","sources":["../../src/components/ZeroCodeEditor.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ZeroCodeEditor.vue.d.ts","sourceRoot":"","sources":["../../src/components/ZeroCodeEditor.vue"],"names":[],"mappings":"AA4KA;AA0qBA,OAAO,EAAmC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAUhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,UAAU,CAAC;AAIvD,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,mBAAmB,CAAC,EAAE,OAAO,CAAC;CAC/B,CAAC;AAkMF,iBAAS,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAevC;AAED,iBAAS,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAIjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA1PD,CA1oBc;;;;;;;;;;;;;;;;wCA0oBd,CA1oBc;;;;;;;;;;;;;;;;wCA0oBd,CA1oBc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA0oBd,CA1oBc;;;;;;;;;;;;;;;;wCA0oBd,CA1oBc;;;;;;;;;;;;;;;;wCA0oBd,CA1oBc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+jDd,wBASG"}
|
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import { ZeroCodeData, CMSConfig } from '../types';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
locale?: string;
|
|
5
|
+
page?: string;
|
|
6
|
+
cssCommon?: string;
|
|
7
|
+
cssIndividual?: string;
|
|
8
|
+
cssSpecial?: string;
|
|
9
|
+
partsCommon?: string;
|
|
10
|
+
partsIndividual?: string;
|
|
11
|
+
partsSpecial?: string;
|
|
12
|
+
imagesCommon?: string;
|
|
13
|
+
imagesIndividual?: string;
|
|
14
|
+
imagesSpecial?: string;
|
|
15
|
+
config?: string;
|
|
16
|
+
endpoints?: string;
|
|
17
|
+
backendData?: string;
|
|
18
|
+
};
|
|
19
|
+
declare function getData(path?: string): unknown;
|
|
20
|
+
declare function setData(path: string | Record<string, unknown>, value?: unknown): unknown;
|
|
21
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
22
|
+
getData: typeof getData;
|
|
23
|
+
setData: typeof setData;
|
|
24
|
+
allowDynamicContentInteraction: import('vue').ComputedRef<NonNullable<boolean | undefined>>;
|
|
25
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
26
|
+
cmsRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
27
|
+
locale?: string;
|
|
28
|
+
page?: string;
|
|
29
|
+
cssCommon?: string;
|
|
30
|
+
cssIndividual?: string;
|
|
31
|
+
cssSpecial?: string;
|
|
32
|
+
partsCommon?: string;
|
|
33
|
+
partsIndividual?: string;
|
|
34
|
+
partsSpecial?: string;
|
|
35
|
+
imagesCommon?: string;
|
|
36
|
+
imagesIndividual?: string;
|
|
37
|
+
imagesSpecial?: string;
|
|
38
|
+
config?: string;
|
|
39
|
+
endpoints?: string;
|
|
40
|
+
backendData?: string;
|
|
41
|
+
hideFixedSaveButton?: boolean;
|
|
42
|
+
saveRequestSource?: "cms" | "studio";
|
|
43
|
+
}> & Readonly<{}>, {
|
|
44
|
+
getData: (path?: string) => unknown;
|
|
45
|
+
setData: (pathOrData: string | Partial<ZeroCodeData>, value?: unknown) => void;
|
|
46
|
+
validateData: typeof import('../core/utils/validation').validateData;
|
|
47
|
+
cmsData: {
|
|
48
|
+
page: {
|
|
49
|
+
[x: string]: unknown;
|
|
50
|
+
id: string;
|
|
51
|
+
part_id: string;
|
|
52
|
+
slots?: Record<string, import('..').ComponentData[] | import('..').SlotConfig> | undefined;
|
|
53
|
+
}[];
|
|
54
|
+
css: {
|
|
55
|
+
common?: string | undefined;
|
|
56
|
+
individual?: string | undefined;
|
|
57
|
+
special?: string | undefined;
|
|
58
|
+
};
|
|
59
|
+
parts: {
|
|
60
|
+
common: {
|
|
61
|
+
id: string;
|
|
62
|
+
type: string;
|
|
63
|
+
description: string;
|
|
64
|
+
parts: {
|
|
65
|
+
id: string;
|
|
66
|
+
title: string;
|
|
67
|
+
description: string;
|
|
68
|
+
body: string;
|
|
69
|
+
slots?: Record<string, {
|
|
70
|
+
allowedParts?: string[];
|
|
71
|
+
}> | undefined;
|
|
72
|
+
slotOnly?: boolean | undefined;
|
|
73
|
+
outlinePosition?: "inner" | undefined;
|
|
74
|
+
}[];
|
|
75
|
+
}[];
|
|
76
|
+
individual: {
|
|
77
|
+
id: string;
|
|
78
|
+
type: string;
|
|
79
|
+
description: string;
|
|
80
|
+
parts: {
|
|
81
|
+
id: string;
|
|
82
|
+
title: string;
|
|
83
|
+
description: string;
|
|
84
|
+
body: string;
|
|
85
|
+
slots?: Record<string, {
|
|
86
|
+
allowedParts?: string[];
|
|
87
|
+
}> | undefined;
|
|
88
|
+
slotOnly?: boolean | undefined;
|
|
89
|
+
outlinePosition?: "inner" | undefined;
|
|
90
|
+
}[];
|
|
91
|
+
}[];
|
|
92
|
+
special: {
|
|
93
|
+
id: string;
|
|
94
|
+
type: string;
|
|
95
|
+
description: string;
|
|
96
|
+
parts: {
|
|
97
|
+
id: string;
|
|
98
|
+
title: string;
|
|
99
|
+
description: string;
|
|
100
|
+
body: string;
|
|
101
|
+
slots?: Record<string, {
|
|
102
|
+
allowedParts?: string[];
|
|
103
|
+
}> | undefined;
|
|
104
|
+
slotOnly?: boolean | undefined;
|
|
105
|
+
outlinePosition?: "inner" | undefined;
|
|
106
|
+
}[];
|
|
107
|
+
}[];
|
|
108
|
+
};
|
|
109
|
+
images: {
|
|
110
|
+
common: {
|
|
111
|
+
id: string;
|
|
112
|
+
name: string;
|
|
113
|
+
url: string;
|
|
114
|
+
mimeType?: string | undefined;
|
|
115
|
+
needsUpload?: boolean | undefined;
|
|
116
|
+
}[];
|
|
117
|
+
individual: {
|
|
118
|
+
id: string;
|
|
119
|
+
name: string;
|
|
120
|
+
url: string;
|
|
121
|
+
mimeType?: string | undefined;
|
|
122
|
+
needsUpload?: boolean | undefined;
|
|
123
|
+
}[];
|
|
124
|
+
special: {
|
|
125
|
+
id: string;
|
|
126
|
+
name: string;
|
|
127
|
+
url: string;
|
|
128
|
+
mimeType?: string | undefined;
|
|
129
|
+
needsUpload?: boolean | undefined;
|
|
130
|
+
}[];
|
|
131
|
+
};
|
|
132
|
+
backendData?: Record<string, unknown> | undefined;
|
|
133
|
+
};
|
|
134
|
+
currentMode: Ref<import('../features/editor/composables/useEditorMode').EditorMode, import('../features/editor/composables/useEditorMode').EditorMode>;
|
|
135
|
+
switchMode: (mode: import('../features/editor/composables/useEditorMode').EditorMode) => void;
|
|
136
|
+
allowDynamicContentInteraction: Ref<NonNullable<boolean | undefined>, NonNullable<boolean | undefined>>;
|
|
137
|
+
devRightPadding: Ref<NonNullable<boolean | undefined>, NonNullable<boolean | undefined>>;
|
|
138
|
+
devRightPaddingValue: import('vue').ComputedRef<NonNullable<boolean | undefined>>;
|
|
139
|
+
settingsPanelOpen: Ref<boolean, boolean>;
|
|
140
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
141
|
+
containerRef: HTMLDivElement;
|
|
142
|
+
previewAreaRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
143
|
+
cmsData: ZeroCodeData;
|
|
144
|
+
fullPageHtml: string;
|
|
145
|
+
onAddClick?: (path: string) => void;
|
|
146
|
+
allowDynamicContentInteraction?: boolean;
|
|
147
|
+
}> & Readonly<{}>, {
|
|
148
|
+
previewArea: Ref<HTMLElement | null, HTMLElement | null>;
|
|
149
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
150
|
+
previewArea: HTMLDivElement;
|
|
151
|
+
htmlContainer: HTMLDivElement;
|
|
152
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
153
|
+
P: {};
|
|
154
|
+
B: {};
|
|
155
|
+
D: {};
|
|
156
|
+
C: {};
|
|
157
|
+
M: {};
|
|
158
|
+
Defaults: {};
|
|
159
|
+
}, Readonly<{
|
|
160
|
+
cmsData: ZeroCodeData;
|
|
161
|
+
fullPageHtml: string;
|
|
162
|
+
onAddClick?: (path: string) => void;
|
|
163
|
+
allowDynamicContentInteraction?: boolean;
|
|
164
|
+
}> & Readonly<{}>, {
|
|
165
|
+
previewArea: Ref<HTMLElement | null, HTMLElement | null>;
|
|
166
|
+
}, {}, {}, {}, {}> | null;
|
|
167
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
168
|
+
P: {};
|
|
169
|
+
B: {};
|
|
170
|
+
D: {};
|
|
171
|
+
C: {};
|
|
172
|
+
M: {};
|
|
173
|
+
Defaults: {};
|
|
174
|
+
}, Readonly<{
|
|
175
|
+
locale?: string;
|
|
176
|
+
page?: string;
|
|
177
|
+
cssCommon?: string;
|
|
178
|
+
cssIndividual?: string;
|
|
179
|
+
cssSpecial?: string;
|
|
180
|
+
partsCommon?: string;
|
|
181
|
+
partsIndividual?: string;
|
|
182
|
+
partsSpecial?: string;
|
|
183
|
+
imagesCommon?: string;
|
|
184
|
+
imagesIndividual?: string;
|
|
185
|
+
imagesSpecial?: string;
|
|
186
|
+
config?: string;
|
|
187
|
+
endpoints?: string;
|
|
188
|
+
backendData?: string;
|
|
189
|
+
hideFixedSaveButton?: boolean;
|
|
190
|
+
saveRequestSource?: "cms" | "studio";
|
|
191
|
+
}> & Readonly<{}>, {
|
|
192
|
+
getData: (path?: string) => unknown;
|
|
193
|
+
setData: (pathOrData: string | Partial<ZeroCodeData>, value?: unknown) => void;
|
|
194
|
+
validateData: typeof import('../core/utils/validation').validateData;
|
|
195
|
+
cmsData: {
|
|
196
|
+
page: {
|
|
197
|
+
[x: string]: unknown;
|
|
198
|
+
id: string;
|
|
199
|
+
part_id: string;
|
|
200
|
+
slots?: Record<string, import('..').ComponentData[] | import('..').SlotConfig> | undefined;
|
|
201
|
+
}[];
|
|
202
|
+
css: {
|
|
203
|
+
common?: string | undefined;
|
|
204
|
+
individual?: string | undefined;
|
|
205
|
+
special?: string | undefined;
|
|
206
|
+
};
|
|
207
|
+
parts: {
|
|
208
|
+
common: {
|
|
209
|
+
id: string;
|
|
210
|
+
type: string;
|
|
211
|
+
description: string;
|
|
212
|
+
parts: {
|
|
213
|
+
id: string;
|
|
214
|
+
title: string;
|
|
215
|
+
description: string;
|
|
216
|
+
body: string;
|
|
217
|
+
slots?: Record<string, {
|
|
218
|
+
allowedParts?: string[];
|
|
219
|
+
}> | undefined;
|
|
220
|
+
slotOnly?: boolean | undefined;
|
|
221
|
+
outlinePosition?: "inner" | undefined;
|
|
222
|
+
}[];
|
|
223
|
+
}[];
|
|
224
|
+
individual: {
|
|
225
|
+
id: string;
|
|
226
|
+
type: string;
|
|
227
|
+
description: string;
|
|
228
|
+
parts: {
|
|
229
|
+
id: string;
|
|
230
|
+
title: string;
|
|
231
|
+
description: string;
|
|
232
|
+
body: string;
|
|
233
|
+
slots?: Record<string, {
|
|
234
|
+
allowedParts?: string[];
|
|
235
|
+
}> | undefined;
|
|
236
|
+
slotOnly?: boolean | undefined;
|
|
237
|
+
outlinePosition?: "inner" | undefined;
|
|
238
|
+
}[];
|
|
239
|
+
}[];
|
|
240
|
+
special: {
|
|
241
|
+
id: string;
|
|
242
|
+
type: string;
|
|
243
|
+
description: string;
|
|
244
|
+
parts: {
|
|
245
|
+
id: string;
|
|
246
|
+
title: string;
|
|
247
|
+
description: string;
|
|
248
|
+
body: string;
|
|
249
|
+
slots?: Record<string, {
|
|
250
|
+
allowedParts?: string[];
|
|
251
|
+
}> | undefined;
|
|
252
|
+
slotOnly?: boolean | undefined;
|
|
253
|
+
outlinePosition?: "inner" | undefined;
|
|
254
|
+
}[];
|
|
255
|
+
}[];
|
|
256
|
+
};
|
|
257
|
+
images: {
|
|
258
|
+
common: {
|
|
259
|
+
id: string;
|
|
260
|
+
name: string;
|
|
261
|
+
url: string;
|
|
262
|
+
mimeType?: string | undefined;
|
|
263
|
+
needsUpload?: boolean | undefined;
|
|
264
|
+
}[];
|
|
265
|
+
individual: {
|
|
266
|
+
id: string;
|
|
267
|
+
name: string;
|
|
268
|
+
url: string;
|
|
269
|
+
mimeType?: string | undefined;
|
|
270
|
+
needsUpload?: boolean | undefined;
|
|
271
|
+
}[];
|
|
272
|
+
special: {
|
|
273
|
+
id: string;
|
|
274
|
+
name: string;
|
|
275
|
+
url: string;
|
|
276
|
+
mimeType?: string | undefined;
|
|
277
|
+
needsUpload?: boolean | undefined;
|
|
278
|
+
}[];
|
|
279
|
+
};
|
|
280
|
+
backendData?: Record<string, unknown> | undefined;
|
|
281
|
+
};
|
|
282
|
+
currentMode: Ref<import('../features/editor/composables/useEditorMode').EditorMode, import('../features/editor/composables/useEditorMode').EditorMode>;
|
|
283
|
+
switchMode: (mode: import('../features/editor/composables/useEditorMode').EditorMode) => void;
|
|
284
|
+
allowDynamicContentInteraction: Ref<NonNullable<boolean | undefined>, NonNullable<boolean | undefined>>;
|
|
285
|
+
devRightPadding: Ref<NonNullable<boolean | undefined>, NonNullable<boolean | undefined>>;
|
|
286
|
+
devRightPaddingValue: import('vue').ComputedRef<NonNullable<boolean | undefined>>;
|
|
287
|
+
settingsPanelOpen: Ref<boolean, boolean>;
|
|
288
|
+
}, {}, {}, {}, {}> | null;
|
|
289
|
+
partsManagerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
290
|
+
cmsData: ZeroCodeData;
|
|
291
|
+
config?: Partial<CMSConfig>;
|
|
292
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
293
|
+
}> & Readonly<{}>, {
|
|
294
|
+
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
295
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
296
|
+
partOptionsRef: HTMLDivElement;
|
|
297
|
+
monacoEditorRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
298
|
+
modelValue: string;
|
|
299
|
+
language?: string;
|
|
300
|
+
theme?: "vs" | "vs-dark" | "hc-black";
|
|
301
|
+
readOnly?: boolean;
|
|
302
|
+
minimap?: boolean;
|
|
303
|
+
height?: string;
|
|
304
|
+
autoHeight?: boolean;
|
|
305
|
+
maxHeight?: number;
|
|
306
|
+
enableSuggestions?: boolean;
|
|
307
|
+
}> & Readonly<{
|
|
308
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
309
|
+
}>, {
|
|
310
|
+
insertTextAtCursor(text: string): void;
|
|
311
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
312
|
+
"update:modelValue": (value: string) => any;
|
|
313
|
+
}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
314
|
+
editorContainer: HTMLDivElement;
|
|
315
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
316
|
+
P: {};
|
|
317
|
+
B: {};
|
|
318
|
+
D: {};
|
|
319
|
+
C: {};
|
|
320
|
+
M: {};
|
|
321
|
+
Defaults: {};
|
|
322
|
+
}, Readonly<{
|
|
323
|
+
modelValue: string;
|
|
324
|
+
language?: string;
|
|
325
|
+
theme?: "vs" | "vs-dark" | "hc-black";
|
|
326
|
+
readOnly?: boolean;
|
|
327
|
+
minimap?: boolean;
|
|
328
|
+
height?: string;
|
|
329
|
+
autoHeight?: boolean;
|
|
330
|
+
maxHeight?: number;
|
|
331
|
+
enableSuggestions?: boolean;
|
|
332
|
+
}> & Readonly<{
|
|
333
|
+
"onUpdate:modelValue"?: ((value: string) => any) | undefined;
|
|
334
|
+
}>, {
|
|
335
|
+
insertTextAtCursor(text: string): void;
|
|
336
|
+
}, {}, {}, {}, {}> | null;
|
|
337
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
338
|
+
P: {};
|
|
339
|
+
B: {};
|
|
340
|
+
D: {};
|
|
341
|
+
C: {};
|
|
342
|
+
M: {};
|
|
343
|
+
Defaults: {};
|
|
344
|
+
}, Readonly<{
|
|
345
|
+
cmsData: ZeroCodeData;
|
|
346
|
+
config?: Partial<CMSConfig>;
|
|
347
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
348
|
+
}> & Readonly<{}>, {
|
|
349
|
+
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
350
|
+
}, {}, {}, {}, {}> | null;
|
|
351
|
+
imagesManagerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
352
|
+
cmsData: ZeroCodeData;
|
|
353
|
+
config?: Partial<CMSConfig>;
|
|
354
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
355
|
+
}> & Readonly<{}>, {
|
|
356
|
+
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
357
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
358
|
+
fileInput: HTMLInputElement;
|
|
359
|
+
replaceFileInputRef: HTMLInputElement;
|
|
360
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
361
|
+
P: {};
|
|
362
|
+
B: {};
|
|
363
|
+
D: {};
|
|
364
|
+
C: {};
|
|
365
|
+
M: {};
|
|
366
|
+
Defaults: {};
|
|
367
|
+
}, Readonly<{
|
|
368
|
+
cmsData: ZeroCodeData;
|
|
369
|
+
config?: Partial<CMSConfig>;
|
|
370
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
371
|
+
}> & Readonly<{}>, {
|
|
372
|
+
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
373
|
+
}, {}, {}, {}, {}> | null;
|
|
374
|
+
dataViewerRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
375
|
+
cmsData: ZeroCodeData;
|
|
376
|
+
config?: Partial<CMSConfig>;
|
|
377
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
378
|
+
}> & Readonly<{}>, {
|
|
379
|
+
internalActiveTab: Ref<"page" | "parts" | "images", "page" | "parts" | "images">;
|
|
380
|
+
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
381
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
382
|
+
P: {};
|
|
383
|
+
B: {};
|
|
384
|
+
D: {};
|
|
385
|
+
C: {};
|
|
386
|
+
M: {};
|
|
387
|
+
Defaults: {};
|
|
388
|
+
}, Readonly<{
|
|
389
|
+
cmsData: ZeroCodeData;
|
|
390
|
+
config?: Partial<CMSConfig>;
|
|
391
|
+
fixedCategory?: "common" | "individual" | "special";
|
|
392
|
+
}> & Readonly<{}>, {
|
|
393
|
+
internalActiveTab: Ref<"page" | "parts" | "images", "page" | "parts" | "images">;
|
|
394
|
+
activeCategory: Ref<"common" | "individual" | "special", "common" | "individual" | "special">;
|
|
395
|
+
}, {}, {}, {}, {}> | null;
|
|
396
|
+
}, HTMLDivElement>;
|
|
397
|
+
export default _default;
|
|
398
|
+
//# sourceMappingURL=ZeroCodeStudio.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ZeroCodeStudio.vue.d.ts","sourceRoot":"","sources":["../../src/components/ZeroCodeStudio.vue"],"names":[],"mappings":"AAyKA;AA0lBA,OAAO,EAAmC,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAUhE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAI7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,UAAU,CAAC;AAI1C,KAAK,WAAW,GAAG;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC;AAoKF,iBAAS,OAAO,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAavC;AAED,iBAAS,OAAO,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,CAAC,EAAE,OAAO,GAAG,OAAO,CAIjF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCAxND,CA3jBuC;;;;;;;;;;;;;;;;wCA2jBvC,CA3jBuC;;;;;;;;;;;;;;;;wCA2jBvC,CA3jBuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wCA2jBvC,CA3jBuC;;;;;;;;;;;;;;;;wCA2jBvC,CA3jBuC;;;;;;;;;;;;;;;;wCA2jBvC,CA3jBuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAi6CvC,wBASG"}
|
|
@@ -26,6 +26,7 @@ export declare function useZeroCodeData(props: ZeroCodeDataProps): {
|
|
|
26
26
|
allowedParts?: string[];
|
|
27
27
|
}> | undefined;
|
|
28
28
|
slotOnly?: boolean | undefined;
|
|
29
|
+
outlinePosition?: "inner" | undefined;
|
|
29
30
|
}[];
|
|
30
31
|
}[];
|
|
31
32
|
individual: {
|
|
@@ -41,6 +42,7 @@ export declare function useZeroCodeData(props: ZeroCodeDataProps): {
|
|
|
41
42
|
allowedParts?: string[];
|
|
42
43
|
}> | undefined;
|
|
43
44
|
slotOnly?: boolean | undefined;
|
|
45
|
+
outlinePosition?: "inner" | undefined;
|
|
44
46
|
}[];
|
|
45
47
|
}[];
|
|
46
48
|
special: {
|
|
@@ -56,6 +58,7 @@ export declare function useZeroCodeData(props: ZeroCodeDataProps): {
|
|
|
56
58
|
allowedParts?: string[];
|
|
57
59
|
}> | undefined;
|
|
58
60
|
slotOnly?: boolean | undefined;
|
|
61
|
+
outlinePosition?: "inner" | undefined;
|
|
59
62
|
}[];
|
|
60
63
|
}[];
|
|
61
64
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useZeroCodeData.d.ts","sourceRoot":"","sources":["../../../src/core/composables/useZeroCodeData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"useZeroCodeData.d.ts","sourceRoot":"","sources":["../../../src/core/composables/useZeroCodeData.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAInE,wBAAgB,eAAe,CAAC,KAAK,EAAE,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;oCAgBhC,CAAC;;;;;;;;;;;;;;;;oCAAD,CAAC;;;;;;;;;;;;;;;;oCAAD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoCC,MAAM,KAAG,OAAO;0BAiBX,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,UAAU,OAAO,KAAG,IAAI;EA2BpF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useZeroCodeRenderer.d.ts","sourceRoot":"","sources":["../../../src/core/composables/useZeroCodeRenderer.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useZeroCodeRenderer.d.ts","sourceRoot":"","sources":["../../../src/core/composables/useZeroCodeRenderer.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAYzE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,YAAY,EAAE,sBAAsB,GAAE,OAAc;;uCAoBlF,aAAa,SAClB,MAAM,mBACI,GAAG,CAAC,MAAM,CAAC,KAC1B,MAAM;uBApBiB,MAAM,KAAG,QAAQ,GAAG,IAAI;EAiDnD"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { ZeroCodeData } from '../../types';
|
|
1
|
+
import { ZeroCodeData, ComponentData, PartData } from '../../types';
|
|
2
|
+
import { ProcessTemplateOptions } from '../utils/template-processor';
|
|
2
3
|
/**
|
|
3
4
|
* レンダリングエラー
|
|
4
5
|
*/
|
|
@@ -7,6 +8,34 @@ export declare class RenderError extends Error {
|
|
|
7
8
|
path: string;
|
|
8
9
|
constructor(code: 'PART_NOT_FOUND' | 'CIRCULAR_REFERENCE' | 'PARSE_ERROR', path: string, message: string);
|
|
9
10
|
}
|
|
11
|
+
export interface RenderComponentCoreContext {
|
|
12
|
+
findPart: (partId: string) => PartData | null;
|
|
13
|
+
enableEditorAttributes: boolean;
|
|
14
|
+
imagesCommon: Array<{
|
|
15
|
+
id: string;
|
|
16
|
+
url: string;
|
|
17
|
+
}>;
|
|
18
|
+
imagesIndividual: Array<{
|
|
19
|
+
id: string;
|
|
20
|
+
url: string;
|
|
21
|
+
}>;
|
|
22
|
+
imagesSpecial: Array<{
|
|
23
|
+
id: string;
|
|
24
|
+
url: string;
|
|
25
|
+
}>;
|
|
26
|
+
backendData?: Record<string, unknown>;
|
|
27
|
+
options?: ProcessTemplateOptions;
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* コンポーネントをHTMLにレンダリングする共通処理
|
|
31
|
+
* 循環参照・パーツ未検出時は RenderError を throw
|
|
32
|
+
*/
|
|
33
|
+
export declare function renderComponentCore(component: ComponentData, path: string, processedPaths: Set<string>, context: RenderComponentCoreContext, renderChild: (childComponent: ComponentData, childPath: string) => string): string;
|
|
34
|
+
/**
|
|
35
|
+
* CSSデータから<style>タグのHTML文字列を生成する
|
|
36
|
+
* 順序は common → individual → special(PageCSSManager と同一)
|
|
37
|
+
*/
|
|
38
|
+
export declare function renderCssToHtml(css: ZeroCodeData['css'] | undefined | null): string;
|
|
10
39
|
/**
|
|
11
40
|
* データからHTMLを生成(サーバーサイド/クライアントサイド両対応)
|
|
12
41
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/core/renderer/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"renderer.d.ts","sourceRoot":"","sources":["../../../src/core/renderer/renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAA0B,KAAK,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AAIlG;;GAEG;AACH,qBAAa,WAAY,SAAQ,KAAK;IAE3B,IAAI,EAAE,gBAAgB,GAAG,oBAAoB,GAAG,aAAa;IAC7D,IAAI,EAAE,MAAM;gBADZ,IAAI,EAAE,gBAAgB,GAAG,oBAAoB,GAAG,aAAa,EAC7D,IAAI,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM;CAKlB;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,CAAC,MAAM,EAAE,MAAM,KAAK,QAAQ,GAAG,IAAI,CAAC;IAC9C,sBAAsB,EAAE,OAAO,CAAC;IAChC,YAAY,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,gBAAgB,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACrD,aAAa,EAAE,KAAK,CAAC;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAClD,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtC,OAAO,CAAC,EAAE,sBAAsB,CAAC;CAClC;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,CACjC,SAAS,EAAE,aAAa,EACxB,IAAI,EAAE,MAAM,EACZ,cAAc,EAAE,GAAG,CAAC,MAAM,CAAC,EAC3B,OAAO,EAAE,0BAA0B,EACnC,WAAW,EAAE,CAAC,cAAc,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,KAAK,MAAM,GACxE,MAAM,CAsCR;AAID;;;GAGG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,YAAY,CAAC,KAAK,CAAC,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAQnF;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAC1B,IAAI,EAAE,YAAY,EAClB,OAAO,GAAE;IACP,sBAAsB,CAAC,EAAE,OAAO,CAAC;CAC7B,GACL,MAAM,CAmDR"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"css-manager.d.ts","sourceRoot":"","sources":["../../../src/core/utils/css-manager.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"css-manager.d.ts","sourceRoot":"","sources":["../../../src/core/utils/css-manager.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,qBAAa,cAAc;IACzB,OAAO,CAAC,aAAa,CAA4C;IACjE,OAAO,CAAC,SAAS,CAAyC;IAE1D;;OAEG;IACH,YAAY,CAAC,SAAS,EAAE,UAAU,GAAG,WAAW,GAAG,IAAI,GAAG,IAAI;IAO9D;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI;IAc3B;;OAEG;IACH,gBAAgB,CAAC,MAAM,EAAE;QAAE,MAAM,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,MAAM,CAAC;QAAC,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI;IAkB1F;;OAEG;IACH,OAAO,CAAC,mBAAmB;IAkB3B;;OAEG;IACH,SAAS,CAAC,QAAQ,GAAE,MAAkB,GAAG,IAAI;IAQ7C;;OAEG;IACH,YAAY,IAAI,IAAI;IAOpB;;OAEG;IACH,OAAO,IAAI,IAAI;CAIhB"}
|